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
/* * 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 n...
noslowerdna/kafka
clients/src/main/java/org/apache/kafka/clients/admin/ListConsumerGroupOffsetsResult.java
Java
apache-2.0
1,754
package com.mayalogy.mayu.core; import junit.framework.TestCase; public class TestFrequencyCounter extends TestCase { public void testUpdate() { FrequencyCounter fc = new FrequencyCounter(); fc.update("hello", 1); fc.update("hello", 1); fc.update("hello2", 1); fc.updat...
Mayalogy/mayu-core
src/test/java/com/mayalogy/mayu/core/TestFrequencyCounter.java
Java
apache-2.0
743
package com.taoswork.tallycheck.descriptor.mongo; import com.taoswork.tallycheck.descriptor.service.MetaInfoService; import com.taoswork.tallycheck.descriptor.service.MetaService; /** * Created by Gao Yuan on 2015/7/1. */ public class DynamicDataMetaRoot { /** * Kinds of service * * MetaService * ({...
tallycheck/data-support
meta-descriptor-mongo/src/main/java/com/taoswork/tallycheck/descriptor/mongo/DynamicDataMetaRoot.java
Java
apache-2.0
506
package com.linecy.mobilesafe.db.dao; import com.linecy.mobilesafe.R; import android.content.Context; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; /** * ¹éÊôµØ²éѯ¹¤¾ß * * @author linecy * */ public class AddressDao { // ¹éÊôµØÊý¾Ý¿â·¾¶ private static final String PASH = ...
linecyc/mobileSafe
src/com/linecy/mobilesafe/db/dao/AddressDao.java
Java
apache-2.0
2,696
package com.github.blahord.bettercollections.list.listIterator; import com.github.blahord.bettercollections.list.ArrayList; import com.github.blahord.bettercollections.list.listiterator.ExtensibleListIterator; import com.github.blahord.bettercollections.list.listiterator.ListIterator; import com.github.blahord.betterc...
Blahord/BetterCollections
src/test/java/com/github/blahord/bettercollections/list/listIterator/ExtensibleListIteratorAPITest.java
Java
apache-2.0
896
package com.cgl.eng.adapter; import java.util.List; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.TextView; public class OptionsAdapter extends BaseAdapter{ Context context;...
watsonak/qstn
src/com/cgl/eng/adapter/OptionsAdapter.java
Java
apache-2.0
1,216
package com.cloud.ha; import com.cloud.host.Host; import com.cloud.utils.component.Adapter; import com.cloud.vm.VirtualMachine; public interface FenceBuilder extends Adapter { /** * Fence off the vm. * * @param vm vm * @param host host where the vm was running on. */ public Boolean ...
remibergsma/cosmic
cosmic-core/api/src/main/java/com/cloud/ha/FenceBuilder.java
Java
apache-2.0
362
package se.citerus.cqrs.bookstore.ordercontext.order; import com.fasterxml.jackson.annotation.JsonProperty; import se.citerus.cqrs.bookstore.GenericId; import java.util.UUID; public class ProductId extends GenericId { public ProductId(@JsonProperty("id") String id) { super(id); } public static ProductId ...
citerus/bookstore-cqrs-example
order-context-parent/eventbus-contract/src/main/java/se/citerus/cqrs/bookstore/ordercontext/order/ProductId.java
Java
apache-2.0
396
package com.example.liangzi.coolweather.DB; import android.content.Context; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteDatabase.CursorFactory; import android.database.sqlite.SQLiteOpenHelper; /** * Created by liangzi on 2017/7/12. */ public class CoolWeatherOpenHelper exten...
liangzitheman/CoolWeather
app/src/main/java/com/example/liangzi/coolweather/DB/CoolWeatherOpenHelper.java
Java
apache-2.0
1,639
/* * Copyright 2003 - 2015 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-Install
src/main/efaps/ESJP/org/efaps/esjp/common/background/ExecutionBridge_Base.java
Java
apache-2.0
5,307
/* * Copyright 2016 peter. * * 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...
peter-mount/filesystem
filesystem-http/src/main/java/onl/area51/filesystem/http/client/package-info.java
Java
apache-2.0
669
// Copyright 2022 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 // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writi...
googleads/googleads-java-lib
modules/dfp_appengine/src/main/java/com/google/api/ads/admanager/jaxws/v202202/DaiAuthenticationKeyAction.java
Java
apache-2.0
1,659
/* * Created on Dec 26, 2010 * * 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...
yurloc/assertj-core
src/test/java/org/assertj/core/internal/strings/Strings_assertDoesNotContain_Test.java
Java
apache-2.0
3,023
package brooklyn.entity.rebind; import static com.google.common.base.Preconditions.checkArgument; import static com.google.common.base.Preconditions.checkNotNull; import java.io.File; import java.util.Collection; import java.util.List; import java.util.Map; import java.util.concurrent.TimeoutException; import org.sl...
azharhashmi/brooklyn
core/src/test/java/brooklyn/entity/rebind/RebindTestUtils.java
Java
apache-2.0
11,913
/* * 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-braket/src/main/java/com/amazonaws/services/braket/model/TagResourceResult.java
Java
apache-2.0
2,306
package com.flying.j2ee.webserviceclient; import org.apache.axiom.om.OMAbstractFactory; import org.apache.axiom.om.OMElement; import org.apache.axiom.om.OMFactory; import org.apache.axiom.om.OMNamespace; import org.apache.axis2.Constants; import org.apache.axis2.addressing.EndpointReference; import org.apache.axis2.cl...
wangshijun101/JavaSenior
J2EE/src/main/java/com/flying/j2ee/webserviceclient/AXIOMClient.java
Java
apache-2.0
2,573
package act.xio; /*- * #%L * ACT Framework * %% * Copyright (C) 2014 - 2017 ActFramework * %% * 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...
actframework/actframework
src/main/java/act/xio/NetworkDispatcher.java
Java
apache-2.0
1,281
/* * 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.core/src/com/tle/core/freetext/extracter/handler/CappedBodyContentHandler.java
Java
apache-2.0
2,760
/* * 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.core/src/com/tle/web/wizard/section/WizardSectionInfo.java
Java
apache-2.0
1,246
/******************************************************************************* "FreePastry" Peer-to-Peer Application Development Substrate Copyright 2002-2007, Rice University. Copyright 2006-2007, Max Planck Institute for Software Systems. All rights reserved. Redistribution and use in source and binary forms, ...
barnyard/pi
freepastry/src/org/mpisws/p2p/transport/peerreview/identity/IdentityTransportLayerImpl.java
Java
apache-2.0
9,724
package io.quarkus.websockets.client.runtime; import java.util.concurrent.Executor; import java.util.function.Supplier; public class ExecutorSupplier implements Supplier<Executor> { static volatile Executor executor; @Override public Executor get() { return executor; } }
quarkusio/quarkus
extensions/websockets/client/runtime/src/main/java/io/quarkus/websockets/client/runtime/ExecutorSupplier.java
Java
apache-2.0
300
/* * Copyright 2015 Francois Steyn - Adept Internet (PTY) LTD (francois.s@adept.co.za). * * 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...
AdeptInternet/auth-java
saml/src/main/java/org/adeptnet/auth/saml/SAMLConfigImpl.java
Java
apache-2.0
6,434
package com.bjlx.core.model.quora; import java.util.Date; import javax.validation.constraints.NotNull; import org.hibernate.validator.constraints.NotBlank; import com.bjlx.core.model.account.UserInfo; /** * 问答数据的基础类 * @author xiaozhi * */ public abstract class AbstractQuoraEntry { /** * 作者信息 */ @NotNull...
bujilvxing/core-model
src/main/java/com/bjlx/core/model/quora/AbstractQuoraEntry.java
Java
apache-2.0
1,056
/* * Copyright 2015 SIB Visions 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 ...
sibvisions/jvx.vert.x
src/com/sibvisions/vertx/io/HttpResponseOutputStream.java
Java
apache-2.0
2,986
package com.example.liu.skyline.gson; import com.google.gson.annotations.SerializedName; /** * Created by liu on 2017/4/5. */ public class Suggestion { @SerializedName("air") public Air air; //空气状况 @SerializedName("comf") public Comf comf; //舒适状况 @SerializedName("cw") ...
Dreaouth/Skyline
app/src/main/java/com/example/liu/skyline/gson/Suggestion.java
Java
apache-2.0
1,945
/* * Copyright 2016 Bjoern Bilger * * 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 t...
bbilger/jrestless
aws/core/jrestless-aws-core/src/main/java/com/jrestless/aws/service/io/ServiceResponse.java
Java
apache-2.0
1,004
// Copyright (C) 2006 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 t...
leshka890/android-rfc2445
src/com/rfc2445/antonchik/android/iter/InstanceGenerators.java
Java
apache-2.0
12,529
package com.yaconfig.server.message; import java.util.List; import io.netty.buffer.ByteBuf; import io.netty.channel.ChannelHandlerContext; import io.netty.handler.codec.ByteToMessageDecoder; public class YAServerMessageDecoder extends ByteToMessageDecoder{ @Override protected void decode(ChannelHandlerContext ctx...
lizhijumacc/YAConfig
src/main/java/com/yaconfig/server/message/YAServerMessageDecoder.java
Java
apache-2.0
1,181
/* * 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 not ...
shankarh/geode
geode-core/src/main/java/org/apache/geode/internal/cache/Oplog.java
Java
apache-2.0
288,949
/* * Copyright 2006-2015 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 app...
christophd/citrus
endpoints/citrus-rmi/src/main/java/com/consol/citrus/rmi/client/RmiClient.java
Java
apache-2.0
8,677
package ru.job4j.evennumberiterator; import org.junit.Test; import static org.hamcrest.core.Is.is; import static org.junit.Assert.assertThat; /** * Class for testing even numbers iterator. * @since 15/08/2017 * @version 1 **/ public class EvenNumbersArrayTest { /** * Test for even numbers iterator. ...
danailKondov/dkondov
chapter_005/src/test/java/ru/job4j/evennumberiterator/EvenNumbersArrayTest.java
Java
apache-2.0
676
package org.apache.solr.update; /* * 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...
terrancesnyder/solr-analytics
solr/core/src/java/org/apache/solr/update/SolrCoreState.java
Java
apache-2.0
3,073
package org.drools.base.extractors; import junit.framework.TestCase; public abstract class BaseClassFieldExtractorsTest extends TestCase { public abstract void testGetBooleanValue(); public abstract void testGetByteValue(); public abstract void testGetCharValue(); public abstract void testGetShort...
bobmcwhirter/drools
drools-core/src/test/java/org/drools/base/extractors/BaseClassFieldExtractorsTest.java
Java
apache-2.0
609
package com.jin.tool.util; import java.util.Calendar; public class Test { public static void testIdUtils(){ System.out.println(System.currentTimeMillis()); // IDUtils idWorker = new IDUtils(1, 1); IDUtils idWorker = new IDUtils(); idWorker.IDUtils(); long st...
SnailJin/jlg_lab
jlab-demo/src/main/java/com/jin/tool/util/Test.java
Java
apache-2.0
948
/* * Copyright 2013 Qubell, 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...
qubell/contrib-maven-qubell-plugin
qubell-maven-plugin/src/main/java/com/qubell/maven/plugin/commands/UpdateManifestCommand.java
Java
apache-2.0
1,363
/* * 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 ...
joshelser/accumulo
server/base/src/main/java/org/apache/accumulo/server/metrics/AbstractMetricsImpl.java
Java
apache-2.0
7,830
package gov.va.med.srcalc.domain.calculation; import gov.va.med.srcalc.domain.model.*; /** * A value of a {@link NumericalVariable}. */ public class NumericalValue implements Value { private final NumericalVariable fVariable; private final float fValue; /** * Constructs an instance for the giv...
VHAINNOVATIONS/ASRCM
srcalc/src/main/java/gov/va/med/srcalc/domain/calculation/NumericalValue.java
Java
apache-2.0
1,502
package demo.disordia.weatherme.db; import android.content.Context; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; /** * Project: WeatherMe * * @author: Disrodia * create time: 2015-03-20. * e-mail:1482219895@qq.com * Package:demo.disordia.weatherme.db * Descibe...
Disordia/WeatherMe
app/src/main/java/demo/disordia/weatherme/db/WeatherMeOpenHelper.java
Java
apache-2.0
1,719
package com.skycaster.geomapper.fragment; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v4.app.ListFragment; import com.skycaster.geomapper.activity.OffLineMapAdminActivity; import com.skycaster.geomapper.adapter.LocalMapListAdapter; /** * Created by 廖华凯 on 2017/6/8. ...
leoliao2008/GeoMapper
app/src/main/java/com/skycaster/geomapper/fragment/LocalMapListFragment.java
Java
apache-2.0
911
/* * Copyright 2010 Kevin Gaudin * * 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...
pfn/acra
src/main/java/org/acra/collector/SettingsCollector.java
Java
apache-2.0
6,394
import java.util.Random; import bwapi.Color; import bwapi.Game; import bwapi.Player; import bwapi.Position; import bwapi.TilePosition; import bwapi.Unit; import bwapi.UnitCommandType; import bwapi.UnitType; public class Builder extends AbstractUnitEntity { private boolean reserved = false; private Base...
artynko/ponozkabot
ExampleBot/src/Builder.java
Java
apache-2.0
5,961
/* * 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-waf/src/main/java/com/amazonaws/services/waf/model/DeleteLoggingConfigurationRequest.java
Java
apache-2.0
4,229
/* * Copyright 2013 Guidewire Software, Inc. */ package gw.plugin.ij.intentions; import com.google.common.collect.Lists; import com.intellij.openapi.extensions.AbstractExtensionPointBean; import com.intellij.openapi.extensions.ExtensionPointName; import com.intellij.openapi.extensions.Extensions; import com.intelli...
gosu-lang/old-gosu-repo
idea-gosu-plugin/src/main/java/gw/plugin/ij/intentions/QuickFixProviderExtensionBean.java
Java
apache-2.0
1,763
/* * SETTE - Symbolic Execution based Test Tool Evaluator * * SETTE is a tool to help the evaluation and comparison of symbolic execution based test input * generator tools. * * Budapest University of Technology and Economics (BME) * * Authors: Lajos Cseppentő <lajos.cseppento@inf.mit.bme.hu>, Zoltán Micskei <...
SETTE-Testing/sette-snippets
java/sette-snippets-core/snippet-src/hu/bme/mit/sette/snippets/_2_structures/dependencies/SegmentStructure.java
Java
apache-2.0
1,660
/* * Copyright 2016-present Facebook, 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...
justinmuller/buck
src/com/facebook/buck/haskell/HaskellBinaryDescription.java
Java
apache-2.0
9,765
/* * Copyright 2016 The OpenDCT 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...
enternoescape/opendct
src/main/java/opendct/capture/InfiniTVCaptureDevice.java
Java
apache-2.0
25,360
package io.virtdata.libbasics.shared.from_long.to_string; import io.virtdata.annotations.Example; import io.virtdata.annotations.ThreadSafeMapper; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.io.IOException; import java.nio.file.*; import java.nio.file.attribute.BasicFileAttributes; import jav...
virtualdataset/metagen-java
virtdata-lib-basics/src/main/java/io/virtdata/libbasics/shared/from_long/to_string/DirectoryLines.java
Java
apache-2.0
4,677
/** * */ package org.bgp4j.extension.snmp4j.config.nodes.impl; import java.net.InetAddress; import junit.framework.Assert; import org.apache.commons.configuration.ConfigurationException; import org.apache.commons.configuration.XMLConfiguration; import org.bgp4j.config.ConfigTestBase; import org.bgp4j.config.nodes...
rbieniek/BGP4J
extensions/snmp4j-easybox/src/test/java/org/bgp4j/extension/snmp4j/config/nodes/impl/EasyBoxConfigurationParserTest.java
Java
apache-2.0
2,754
package es.devera.maven.plugins.docker; import com.kpelykh.docker.client.DockerException; import org.apache.maven.plugin.MojoExecutionException; import org.apache.maven.plugin.MojoFailureException; import org.apache.maven.plugins.annotations.Mojo; /** * @author <a href="mailto:eduardo.devera@gmail.com">Eduardo de Ve...
etux/docker-maven-plugin
docker-maven-plugin/src/main/java/es/devera/maven/plugins/docker/DockerPullMojo.java
Java
apache-2.0
859
/* * Copyright 2017 Atypon Systems, 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 agre...
Atypon-OpenSource/wayf-cloud
src/main/java/com/atypon/wayf/dao/impl/UserDaoDbImpl.java
Java
apache-2.0
3,633
/* * 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 ...
jior/glaf
workspace/glaf-core/src/main/java/com/glaf/core/base/ColumnModel.java
Java
apache-2.0
7,736
package study.pmoreira.project7.entity; public class News { private String title; private String section; private long date; private String webUrl; public News(String title, String section, long date, String webUrl) { this.title = title; this.section = section; this.date =...
pedrofelipemm/Android-Basics-Nanodegree
Project7/app/src/main/java/study/pmoreira/project7/entity/News.java
Java
apache-2.0
607
/**************************************************************** * Licensed to the AOS Community (AOS) under one or more * * contributor license agreements. See the NOTICE file * * distributed with this work for additional information * * regarding copyright ownership. The AOS licenses this...
XClouded/t4f-core
java/concurrent/src/main/java/io/aos/concurrent/safe/CounterStaticRunnable.java
Java
apache-2.0
1,778
/* * Copyright 2000-2016 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...
xfournet/intellij-community
platform/lang-impl/src/com/intellij/refactoring/rename/RenameDialog.java
Java
apache-2.0
13,502
/* * Copyright 2012 Evernote Corporation * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this * list of con...
0359xiaodong/evernote-sdk-android
library/src/com/evernote/client/android/ClientFactory.java
Java
apache-2.0
11,951
package br.com.aexo.nimbleway.client.subprotocols.json; import br.com.aexo.nimbleway.client.messages.ClientMessage; import br.com.aexo.nimbleway.client.subprotocols.ClientEncoderMessage; public interface JsonEncoderMessage<T extends ClientMessage> extends ClientEncoderMessage<T> { }
euprogramador/nimbleway
nimbleway-client/src/main/java/br/com/aexo/nimbleway/client/subprotocols/json/JsonEncoderMessage.java
Java
apache-2.0
286
/** * 输入n个整数,找出其中最小的K个数。 * 例如输入4,5,1,6,2,7,3,8这8个数字,则最小的4个数字是1,2,3,4,。 */ public class Solution28 { public ArrayList<Integer> GetLeastNumbers_Solution(int[] input, int k) { ArrayList<Integer> list = new ArrayList<>(); if (k < 1 || k > input.length) return list; int[...
Jianfu-She/algorithms
algorithms-swordoffer/Solution28.java
Java
apache-2.0
1,676
package model.ability_management.ability.resource_abilities; import model.ability_management.ability.Ability; import model.resources.resourceVisitor.GoldVisitor; /** * Created by TheNotoriousOOP on 4/12/2017. * Class Description: * Responsibilities: */ public class DropOffGoldAbility extends Ability { public...
TheNotoriousOOP/Iteration3
src/main/model/ability_management/ability/resource_abilities/DropOffGoldAbility.java
Java
apache-2.0
539
package sonata.kernel.placement.pd; /** * Class to map ArtifactDependency objects from Sonata package descriptors. */ public class ArtifactDependency { private String name; private String url; private String md5; private String credentials; public String getName() { return name; } ...
aw32/son-sp-infrabstract
sandman/placement/src/main/java/sonata/kernel/placement/pd/ArtifactDependency.java
Java
apache-2.0
811
/* * 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...
wyukawa/presto
presto-main/src/test/java/io/prestosql/sql/query/TestGroupingSets.java
Java
apache-2.0
2,676
/** * Copyright 2011-2017 Asakusa Framework 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...
cocoatomo/asakusafw
core-project/asakusa-runtime/src/main/java/com/asakusafw/runtime/io/text/tabular/CharMap.java
Java
apache-2.0
3,879
/* * 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/commons/src/main/java/org/archive/io/warc/WARCWriter.java
Java
apache-2.0
19,989
/* * 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...
yonzhang/incubator-eagle
eagle-flink/src/main/java/org/apache/eagle/flink/AlertPublishEvent.java
Java
apache-2.0
5,631
/* * Copyright 2016-2018 shardingsphere.io. * <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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable l...
dangdangdotcom/sharding-jdbc
sharding-core/src/test/java/io/shardingsphere/core/parsing/integrate/jaxb/token/ExpectedIndexToken.java
Java
apache-2.0
1,210
/* * Copyright 2017 Ribose Inc. <https://www.ribose.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 applica...
phuonghuynh/aws-codecommit-trigger-plugin
hpi/src/main/java/com/ribose/jenkins/plugin/awscodecommittrigger/matchers/impl/ScmJobEventTriggerMatcher.java
Java
apache-2.0
6,900
/* * Copyright 2021 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-compute
google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalNetworkEndpointGroupsStubSettings.java
Java
apache-2.0
38,511
package com.epimorphics.registry.webapi.oauth2; import org.junit.Test; import java.util.HashMap; import java.util.Properties; import static org.junit.Assert.*; public class OAuth2ProviderPropertiesTest { private final Properties props = new Properties(); private final OAuth2Provider provider = new OAuth2ProviderP...
UKGovLD/registry-core
src/test/java/com/epimorphics/registry/webapi/oauth2/OAuth2ProviderPropertiesTest.java
Java
apache-2.0
3,165
/* * 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 ...
Wenpei/incubator-systemml
src/main/java/org/apache/sysml/runtime/instructions/spark/AppendMSPInstruction.java
Java
apache-2.0
10,911
/* * Copyright 2016-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
core/store/primitives/src/main/java/org/onosproject/store/primitives/impl/OnosCopycatClient.java
Java
apache-2.0
3,875
/* * Licensed to Crate under one or more contributor license agreements. * See the NOTICE file distributed with this work for additional * information regarding copyright ownership. Crate licenses this file * to you under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compl...
EvilMcJerkface/crate
server/src/main/java/io/crate/analyze/relations/ExcludedFieldProvider.java
Java
apache-2.0
2,456
package com.example.bumblebee.intelligentsurgicalknife.fragment; import android.app.Fragment; import android.os.Bundle; import android.support.annotation.Nullable; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import com.example.bumblebee.intelligentsurgicalknife.R; impo...
Bumble-B11/IntelligentSurgicalKnife
app/src/main/java/com/example/bumblebee/intelligentsurgicalknife/Fragment/OperateFragment.java
Java
apache-2.0
1,053
package com.tapglue.android.sims; public class DevicePayload { final int platform = 3; String token; String language; }
tapglue/android_sdk
tapglue-android-sdk/src/main/java/com/tapglue/android/sims/DevicePayload.java
Java
apache-2.0
133
package com.pbattles.usercollection; import com.google.common.collect.Lists; import com.pbattles.entity.UserInfo; import java.util.Collections; import java.util.List; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; /** * Created by Nazar_Sheremeta on 3/25/14. */ public class UserContainer imp...
Appius/PBattles.TV
backend/src/main/java/com/pbattles/usercollection/UserContainer.java
Java
apache-2.0
814
/* * 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 ...
StephanEwen/incubator-flink
flink-kubernetes/src/main/java/org/apache/flink/kubernetes/highavailability/KubernetesLeaderRetrievalDriver.java
Java
apache-2.0
5,504
package com.xe.demo.service; import java.util.ArrayList; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.xe.demo.common.annotation.ServiceLog; import com.xe.demo.common.pojo.AjaxResult; import com.xe.demo.common.utils.App...
hejingit/Skybird-WorkSpace
demo-boot/src/main/java/com/xe/demo/service/RoleService.java
Java
apache-2.0
2,704
package ch.plusminus.control; public enum OnlineState { ONLINE,OFFLINE }
silvan201/CTRL
src/ch/plusminus/control/OnlineState.java
Java
apache-2.0
75
/* * This code is subject to the HIEOS License, Version 1.0 * * Copyright(c) 2008-2009 Vangent, Inc. All rights reserved. * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY K...
kef/hieos
src/xutil/src/com/vangent/hieos/xutil/atna/XATNALogger.java
Java
apache-2.0
34,303
package cf.nearby.nearby.nurse; import android.os.Handler; import android.os.Message; import android.support.annotation.NonNull; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.content.Intent; import android.graphics.Typeface; import android.support.v4.content.ContextCompat; i...
pooi/Nearby
app/src/main/java/cf/nearby/nearby/nurse/EditMyInfoNurseActivity.java
Java
apache-2.0
14,499
/* * 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 ...
tillrohrmann/flink
flink-runtime/src/test/java/org/apache/flink/runtime/executiongraph/ExecutionGraphRestartTest.java
Java
apache-2.0
19,916
package com.planet_ink.coffee_mud.Abilities.Songs; 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 ...
bozimmerman/CoffeeMud
com/planet_ink/coffee_mud/Abilities/Songs/Song_Saudade.java
Java
apache-2.0
7,129
package ru.job4j.threadpool; import java.util.LinkedList; /** * SimpleThreadPool Class. * @author Anton Matsik (mailto: mtsk.anton@yandex.ru) * @since 01.12.2017 */ public class SimpleThreadPool { //list of working tasks for fulfillment private final LinkedList<Work> tasks; //pool of threads priv...
mtskanton/amatsik
chapter_006/src/main/java/ru/job4j/threadpool/SimpleThreadPool.java
Java
apache-2.0
2,693
/* * Copyright (c) 2016 Yahoo Inc. * Licensed under the terms of the Apache version 2.0 license. * See LICENSE file for terms. */ package com.yahoo.yqlplus.engine.internal.code; import com.fasterxml.jackson.core.JsonFactory; import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.databind.Ma...
slolars/yql-plus
yqlplus_engine/src/main/java/com/yahoo/yqlplus/engine/internal/code/CodeFormatter.java
Java
apache-2.0
10,506
package org.grobid.core.test; import java.io.File; import java.util.ArrayList; import java.util.List; import static org.hamcrest.CoreMatchers.is; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertThat; import static org.junit.Assert.assertEquals; import org.apache.commons.io.FileUtil...
kermitt2/grobid
grobid-core/src/test/java/org/grobid/core/test/TestCitationPatentParser.java
Java
apache-2.0
5,679
package com.marco.marplex.schoolbook.reminds; import android.content.Intent; import android.os.Bundle; import com.marco.marplex.schoolbook.DashboardActivity; import com.marco.marplex.schoolbook.Materia; import com.marco.marplex.schoolbook.R; import com.marco.marplex.schoolbook.VoteDialogActivity; import com.marco.mar...
Marplex/Schoolbook
app/src/main/java/com/marco/marplex/schoolbook/reminds/SpeechParser.java
Java
apache-2.0
6,435
package com.jacket.webapp.teacher.service; import com.github.abel533.entity.Example; import com.jacket.webapp.teacher.entity.ShortAnswerQuestion; import com.jacket.webapp.user.service.BaseService; import org.springframework.stereotype.Service; import java.util.List; /** * Created by jacket on 2016/4/28. ...
jacket1341214/Mywebsite
src/main/java/com/jacket/webapp/teacher/service/ShortAnswerQuestionService.java
Java
apache-2.0
1,229
/** * Copyright (C) 2014-2016 LinkedIn Corp. (pinot-core@linkedin.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 * * Unle...
sajavadi/pinot
pinot-common/src/main/java/com/linkedin/pinot/common/data/TimeFieldSpec.java
Java
apache-2.0
9,200
/* * Copyright 2017 Open Language for Internet of Things (Oliot) * * 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 requir...
oliot-tsd/tsd-heroku
src/main/java/org/oliot/heroku/tsd/models/schema/TSDCountryType.java
Java
apache-2.0
3,485
/* * Copyright (c) 2015 PocketHub * * 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 t...
hufsm/PocketHub
app/src/main/java/com/github/pockethub/ui/gist/GistQueriesPagerAdapter.java
Java
apache-2.0
2,010
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/ads/googleads/v9/services/google_ads_service.proto package com.google.ads.googleads.v9.services; /** * <pre> * A single operation (create, update, remove) on a resource. * </pre> * * Protobuf type {@code google.ads.googleads.v9.service...
googleads/google-ads-java
google-ads-stubs-v9/src/main/java/com/google/ads/googleads/v9/services/MutateOperation.java
Java
apache-2.0
772,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")...
darranl/directory-shared
ldap/schema/converter/src/main/java/org/apache/directory/api/converter/schema/SchemaToLdif.java
Java
apache-2.0
5,181
/* * 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 * * Un...
delebash/orientdb-parent
core/src/main/java/com/orientechnologies/orient/core/iterator/ORecordIteratorClusters.java
Java
apache-2.0
10,968
/* * Copyright 2015 Google Inc. 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 applica...
sduskis/cloud-bigtable-client
bigtable-client-core-parent/bigtable-client-core/src/test/java/com/google/cloud/bigtable/grpc/io/ChannelPoolTest.java
Java
apache-2.0
5,582
package net.bookong.tools.archive.slp; import java.nio.ByteBuffer; import net.bookong.tools.utils.ByteUtils; /** * PLS 文件格式解码器 * @author jiangxu * @see http://www.digitization.org/wiki/index.php?title=SLP */ public class Decoder { /** 文件头信息:版本 2.0N */ public static byte[] FILE_HEADER_VERSION = {0x...
bookong/game_archive
src/main/java/net/bookong/tools/archive/slp/Decoder.java
Java
apache-2.0
2,448
/* * (c) LibriCore * * Created on 11-ago-2004 * * T_MARC_CNTRY.java */ package org.folio.marccat.dao.persistence; /** * @author Maite * @version $Revision: 1.1 $, $Date: 2004/08/12 14:31:56 $ * @since 1.0 */ public class T_MARC_CNTRY extends T_SINGLE_LONGCHAR { }
atcult/mod-cataloging
src/main/java/org/folio/marccat/dao/persistence/T_MARC_CNTRY.java
Java
apache-2.0
276
package com.github.hayarobi.simple_config.load.preload; import static org.junit.Assert.*; import java.util.ArrayList; import java.util.List; import org.junit.After; import org.junit.Before; import org.junit.Ignore; import org.junit.Test; @Ignore public class ConfigClassScannerTest { private static final String SA...
hayarobi/simple-config
src/test/java/com/github/hayarobi/simple_config/load/preload/ConfigClassScannerTest.java
Java
apache-2.0
1,388
package sedion.jeffli.wmuitp.entity; import java.util.HashSet; import java.util.Set; import java.util.TreeSet; /** * StudentInfo entity. @author MyEclipse Persistence Tools */ public class StudentInfo implements java.io.Serializable { // Fields private Integer siId; private UserLogin userLogin; private Class...
JeffLi1993/itp
itp-web/wmuitp/src/sedion/jeffli/wmuitp/entity/StudentInfo.java
Java
apache-2.0
3,452
/* * 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 ...
Myasuka/systemml
src/main/java/org/apache/sysml/runtime/matrix/mapred/MMRJMRReducer.java
Java
apache-2.0
6,381
package com.commercetools.sunrise.common.ctp; import io.sphere.sdk.client.SphereClient; import io.sphere.sdk.producttypes.MetaProductType; import io.sphere.sdk.producttypes.ProductType; import io.sphere.sdk.producttypes.queries.ProductTypeQuery; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import play.Conf...
rfuertesp/pruebas2
common/app/com/commercetools/sunrise/common/ctp/ProductDataConfigProvider.java
Java
apache-2.0
2,281
package com.thetransactioncompany.cors; import java.net.URI; import java.net.URISyntaxException; import java.net.IDN; /** * Resource request origin (not validated), as defined in The Web Origin Concept * (RFC 6454). * * <p>Use {@link #validate} to check the origin syntax or if you want to query * its scheme, ...
esamson/cors-filter
src/com/thetransactioncompany/cors/Origin.java
Java
apache-2.0
2,134
package eu.modernmt.model.corpus; import eu.modernmt.lang.LanguageDirection; import eu.modernmt.model.corpus.*; import java.io.IOException; import java.util.Set; /** * Created by davide on 29/08/17. */ public class LazyMultilingualCorpus implements MultilingualCorpusWrapper { private final MultilingualCorpus ...
ModernMT/MMT
src/commons/src/main/java/eu/modernmt/model/corpus/LazyMultilingualCorpus.java
Java
apache-2.0
1,860