code
stringlengths
572
46.5k
repo_name
stringlengths
7
62
path
stringlengths
6
247
language
stringclasses
7 values
license
stringclasses
15 values
size
int64
572
46.5k
/* Copyright 2020 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, ...
kubernetes/kops
pkg/model/components/openstack.go
GO
apache-2.0
2,270
/* * Copyright 2016 Christoph Böhme * * 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...
hbz/metafacture-core
metafacture-biblio/src/test/java/org/metafacture/biblio/iso2709/RecordFormatTest.java
Java
apache-2.0
3,581
package me.leolin.shortcutbadger.impl; import android.content.ComponentName; import android.content.Context; import android.content.Intent; import me.leolin.shortcutbadger.Badger; import me.leolin.shortcutbadger.ShortcutBadgeException; import me.leolin.shortcutbadger.ShortcutBadger; import java.util.Arrays; import j...
sxagan/cordova-plugin-hlpush
src/android/me/leolin/shortcutbadger/impl/AsusHomeLauncher.java
Java
apache-2.0
1,385
package org.zstack.core.cloudbus; import org.springframework.http.HttpEntity; import org.zstack.header.Component; import org.zstack.header.Service; import org.zstack.header.errorcode.ErrorCode; import org.zstack.header.exception.CloudConfigureFailException; import org.zstack.header.message.*; import javax.servlet.htt...
AlanJager/zstack
core/src/main/java/org/zstack/core/cloudbus/CloudBus.java
Java
apache-2.0
3,571
// Copyright 2020 the Exposure Notifications Verification Server 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...
google/exposure-notifications-verification-server
pkg/controller/apikey/enable.go
GO
apache-2.0
2,152
package com.yueny.demo.capture.demo.cardbin; import java.io.File; import java.util.List; import java.util.Map; import org.junit.Assert; import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import com.yueny.demo.capture.BaseBizTest; import com.yueny.rapid.lang.util.burrow.FileUtil; im...
yueny/pra
fileReader/src/test/java/com/yueny/demo/capture/demo/cardbin/CardBinServiceImplImplTest.java
Java
apache-2.0
1,079
/* * Copyright 2010-2012 The MyBatis 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 a...
lanyonm/mybatis-spring
src/test/java/org/mybatis/spring/support/SqlSessionDaoSupportTest.java
Java
apache-2.0
6,221
/* Copyright (C) 2014 KKBOX 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 ...
KKBOX/android_kktoolkit
src/com/kkbox/toolkit/api/KKAPIJsonBase.java
Java
apache-2.0
2,248
package com.koch.ambeth.cache.proxy; /*- * #%L * jambeth-cache * %% * Copyright (C) 2017 Koch Softwaredevelopment * %% * 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...
Dennis-Koch/ambeth
jambeth/jambeth-cache/src/main/java/com/koch/ambeth/cache/proxy/CachePostProcessor.java
Java
apache-2.0
7,662
/** * 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...
zouzhberk/ambaridemo
demo-server/src/main/java/org/apache/ambari/server/controller/internal/UserPrivilegeResourceProvider.java
Java
apache-2.0
10,284
package common import ( "context" "testing" "github.com/stretchr/testify/assert" ) func newTestContext() context.Context { ctx := context.TODO() ctx = context.WithValue(ctx, RequestIDKey{}, "123") // log level empty = default log level = INFO ctx = context.WithValue(ctx, LogLevelKey{}, "") return ctx } func...
lukaszbudnik/migrator
common/common_test.go
GO
apache-2.0
3,097
/** * Copyright 2016 Milinda Pathirage * <p> * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * <p> * http://www.apache.org/licenses/LICENSE-2.0 * <p> * Unless required by applicable la...
FreshetDMS/FDBench
fdbench-core/src/test/java/org/pathirage/fdbench/metrics/MetricsTest.java
Java
apache-2.0
2,112
package com.boliangshenghe.outteam.service; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.boliangshenghe.outteam.entity.Login; import com.boliangshenghe.outteam.repository.LoginMapper; /** 登录记录service * @author Administrator * */ @Service ...
superxuzj/outteamManage
src/main/java/com/boliangshenghe/outteam/service/LoginService.java
Java
apache-2.0
841
/* Copyright 2021 Telstra Open Source * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable la...
telstra/open-kilda
src-java/flowhs-topology/flowhs-storm-topology/src/main/java/org/openkilda/wfm/topology/flowhs/fsm/create/actions/FlowValidateAction.java
Java
apache-2.0
5,489
package b_trees_visualizer.graphic_interface.custom_panels; import b_trees_visualizer.graphic_interface.custom_panels.BTreeScrollPanel; import b_trees_visualizer.graphic_interface.custom_panels.NewExercisePanel; import b_trees_visualizer.graphic_interface.listeners.CheckTreeListener; import b_trees_visualizer.graphic_...
fedebaldo/BTreeVisualizerApplet
b_trees_visualizer/graphic_interface/custom_panels/DrawCheckRoot.java
Java
apache-2.0
1,949
package fr.sii.ogham.core.condition.provider; import static fr.sii.ogham.core.condition.fluent.Conditions.alwaysTrue; import fr.sii.ogham.core.builder.condition.RequiredProperties; import fr.sii.ogham.core.builder.condition.RequiredProperty; import fr.sii.ogham.core.condition.AndCondition; import fr.sii.ogham.core.co...
groupe-sii/ogham
ogham-core/src/main/java/fr/sii/ogham/core/condition/provider/RequiredPropertiesAnnotationProvider.java
Java
apache-2.0
1,729
# AdaBoost Classification import pandas as pd import os from sklearn import model_selection from sklearn.ensemble import AdaBoostClassifier dataDir = os.path.join(os.path.dirname(os.path.abspath('')), 'data') data = pd.read_csv(os.path.join(dataDir, 'Storm_anomalies_Clustered.csv')) #drop missing values data = data....
igabriel85/dmon-adp
misc/adaBoost.py
Python
apache-2.0
851
// Copyright 2019 MSolution.IO // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ...
trackit/trackit
reports/module_lambda_usage_report.go
GO
apache-2.0
5,717
/* Copyright 2020 The Knative 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, soft...
knative-sandbox/eventing-camel
pkg/reconciler/controller.go
GO
apache-2.0
2,178
/* Copyright 2015 Alfio Zappala 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...
runrightfast/runrightfast-vertx
runrightfast-vertx-core/src/main/java/co/runrightfast/vertx/core/eventbus/ResourceNotFoundException.java
Java
apache-2.0
1,172
/* * Copyright 2010-2016 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 "license" fil...
ambasta/aws-sdk-cpp
aws-cpp-sdk-ecr/source/model/PutImageRequest.cpp
C++
apache-2.0
1,608
/* * Copyright 2021 ThoughtWorks, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
GaneshSPatil/gocd
server/src/test-fast/java/com/thoughtworks/go/config/ConfigReposMaterialParseResultManagerTest.java
Java
apache-2.0
12,653
/* * 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 ...
ecarm002/incubator-asterixdb
asterixdb/asterix-runtime/src/main/java/org/apache/asterix/runtime/evaluators/functions/records/RecordUnwrapEvaluator.java
Java
apache-2.0
5,083
// Copyright 2014-2021 Aerospike, 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...
aerospike/aerospike-client-go
delete_command.go
GO
apache-2.0
2,653
/* * Copyright 2000-2013 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
ernestp/consulo
platform/lang-impl/src/com/intellij/execution/runners/AbstractConsoleRunnerWithHistory.java
Java
apache-2.0
10,305
#!/usr/bin/env python # for side effect import aliyuncli.aliyuncli as _ from aliyuncli import aliyunCliMain, aliyunCliParser, aliyunOpenApiData, aliyunExtensionCliHandler, response, \ aliyunCliHelp, aliyunCliUpgrade, aliyunCompleter import sys import os import codecs class NoUpgradeAliyunCommandLine(aliyunCliMai...
tg123/aliyuncli-onebinary
main.py
Python
apache-2.0
1,040
/* Copyright 2017 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, ...
NickrenREN/kubernetes
test/e2e_node/device_plugin.go
GO
apache-2.0
12,714
/* * 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 ...
PurelyApplied/geode
geode-core/src/test/java/org/apache/geode/internal/logging/LogServiceTest.java
Java
apache-2.0
4,807
/* Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed...
roberthafner/flowable-engine
modules/flowable-admin/src/main/java/org/activiti/service/engine/SubmittedFormService.java
Java
apache-2.0
2,866
/* * Copyright (C) 2013-2015 Mike Cunningham * * 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 a...
Emetophobe/PermissionViewer
app/src/main/java/com/emetophobe/permissionviewer/ui/applist/AppListAdapter.java
Java
apache-2.0
3,279
/* * */ package com.researchspace.dataverse.entities; import java.net.URL; import java.util.Optional; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; /** <pre> Copyright 2016 ResearchSpace Licensed under the Apache License, Version 2.0 (the "License"); you may not use this...
IQSS/dataverse-client-java
src/main/java/com/researchspace/dataverse/entities/Dataset.java
Java
apache-2.0
1,368
/** @file * * A brief file description * * @section license License * * 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...
davidbz/trafficserver
iocore/net/quic/QUICDebugNames.cc
C++
apache-2.0
10,110
/* * 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-servermigration/src/main/java/com/amazonaws/services/servermigration/model/transform/UpdateReplicationJobRequestProtocolMarshaller.java
Java
apache-2.0
2,808
package com.koch.ambeth.informationbus; /*- * #%L * jambeth-information-bus * %% * Copyright (C) 2017 Koch Softwaredevelopment * %% * 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...
Dennis-Koch/ambeth
ambeth-bundles/ambeth-information-bus/jar/src/main/java/com/koch/ambeth/informationbus/InformationBus.java
Java
apache-2.0
3,592
/* * #! * Ontopia Rest * #- * Copyright (C) 2001 - 2017 The Ontopia Project * #- * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 ...
ontopia/ontopia
ontopia-rest/src/test/java/net/ontopia/topicmaps/rest/v1/topic/ScopedResourceGETTest.java
Java
apache-2.0
4,759
package controller import ( "fmt" "reflect" "github.com/golang/glog" "k8s.io/apimachinery/pkg/util/sets" "k8s.io/apimachinery/pkg/watch" kapi "k8s.io/kubernetes/pkg/api" routeapi "github.com/openshift/origin/pkg/route/api" "github.com/openshift/origin/pkg/route/api/validation" "github.com/openshift/origin/p...
chlunde/origin
pkg/router/controller/extended_validator.go
GO
apache-2.0
3,114
/* * 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...
googleads/google-ads-java
google-ads-stubs-v9/src/main/java/com/google/ads/googleads/v9/services/stub/GrpcLifeEventServiceStub.java
Java
apache-2.0
6,027
/* * Copyright (c) Facebook, Inc. and its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applic...
JoelMarcey/buck
test/com/facebook/buck/cxx/CxxWriteArgsToFileStepTest.java
Java
apache-2.0
4,072
/* * 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 ...
lirui-apache/hive
ql/src/java/org/apache/hadoop/hive/ql/parse/type/ExprNodeDescExprFactory.java
Java
apache-2.0
32,286
/** * Copyright (C) 2016 - 2030 youtongluan. * * 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...
youtongluan/sumk
src/main/java/org/yx/http/start/JettyHandlerSupplier.java
Java
apache-2.0
2,358
/* * 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-bigtable
google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/FakeServiceHelper.java
Java
apache-2.0
2,296
/** * Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies * * Please see distribution for license. */ package com.opengamma.analytics.financial.model.option.definition; import javax.time.calendar.ZonedDateTime; import org.apache.commons.lang.ObjectUtils; import org.apache.commons.l...
charles-cooper/idylfin
src/com/opengamma/analytics/financial/model/option/definition/ExtremeSpreadOptionDefinition.java
Java
apache-2.0
3,638
/** * Copyright 2014 Fernando Rincon Martin <frm.rincon@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 requ...
frincon/abstractform
org.abstractform.binding.fluent/src/main/java/org/abstractform/binding/fluent/selector/BFSelector.java
Java
apache-2.0
2,816
/* * * 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"); y...
vincentpoon/hbase
hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestActiveMasterManager.java
Java
apache-2.0
11,347
/** * Copyright (c) Anton Johansson <antoon.johansson@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 require...
anton-johansson/svn-commit
src/test/java/com/antonjohansson/svncommit/core/utils/ConverterTest.java
Java
apache-2.0
2,279
/** * Copyright 2008-2017 Qualogy Solutions B.V. * * 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...
qafedev/qafe-platform
qafe-presentation/src/main/java/com/qualogy/qafe/presentation/handler/executors/OpenWindowExecute.java
Java
apache-2.0
3,997
/* * 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...
googleads/google-ads-java
google-ads-stubs-v10/src/main/java/com/google/ads/googleads/v10/services/stub/OfflineUserDataJobServiceStubSettings.java
Java
apache-2.0
17,996
package com.philliphsu.numberpadtimepicker; import android.content.Context; import android.util.AttributeSet; import android.view.View; import android.widget.TextView; import static com.philliphsu.numberpadtimepicker.Preconditions.checkNotNull; /** * Component that install {@link NumberPadTimePicker#LAYOUT_ALERT al...
philliphsu/NumberPadTimePicker
library/src/main/java/com/philliphsu/numberpadtimepicker/NumberPadTimePickerAlertComponent.java
Java
apache-2.0
1,355
/* * 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 require...
oliot-tsd/tsd-heroku
src/main/java/org/oliot/heroku/tsd/controllers/ProductDataRestController.java
Java
apache-2.0
5,277
/* * Copyright 2012-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...
tiarebalbi/spring-boot
spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/rsocket/RSocketServerAutoConfigurationTests.java
Java
apache-2.0
6,133
package dao.source; import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.util.Properties; import javax.persistence.EntityManager; import javax.persistence.EntityManagerFa...
jmarginier/smarthouse
SmartHouse/src/main/java/dao/source/JpaSource.java
Java
apache-2.0
923
/** * Copyright (C) 2015-Present McLeod Moores Software Limited. All rights reserved. */ package com.mcleodmoores.convention; import static com.opengamma.test.Assert.assertEqualsNoOrder; import static org.testng.Assert.assertEquals; import java.util.Arrays; import java.util.Collections; import java.util.List; imp...
McLeodMoores/starling
projects/validation/src/test/java/com/mcleodmoores/convention/IborCurveTypeConventionValidatorTest.java
Java
apache-2.0
10,536
/* * Copyright 2010-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 "license" fil...
JoyIfBam5/aws-sdk-cpp
aws-cpp-sdk-directconnect/source/model/CreateInterconnectResult.cpp
C++
apache-2.0
2,775
/* * 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-route53recoveryreadiness/src/main/java/com/amazonaws/services/route53recoveryreadiness/model/transform/UpdateCellRequestProtocolMarshaller.java
Java
apache-2.0
2,626
/* * Copyright 2015 MovingBlocks * * 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 ...
askneller/DestinationSol
main/src/org/destinationsol/menu/MainScreen.java
Java
apache-2.0
4,880
package com.test.admin.dao; import com.fight.job.admin.config.ApplicationInitializer; import com.fight.job.admin.config.SpringConfig; import com.fight.job.admin.config.SpringWebConfig; import com.fight.job.admin.dao.ExecutorInfoDao; import com.fight.job.core.enums.ExecutorStateEnum; import org.junit.Test; import org.j...
luoxn28/fight-job
fight-job-admin/src/test/java/com/test/admin/dao/ExecutorInfoTest.java
Java
apache-2.0
1,663
/* * 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-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/node/states/ReportResult.java
Java
apache-2.0
3,149
package data /* Copyright 2018 - 2020 Crunchy Data Solutions, 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 ...
the1forte/crunchy-containers
tools/test-harness/data/databases_test.go
GO
apache-2.0
1,051
package com.enjoy.love; import javax.sql.DataSource; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.EnableAutoConfiguration; import org.springframework.boot.autoconfigure.SpringBootApplication; imp...
520github/enjoy-love
src/main/java/com/enjoy/love/Application.java
Java
apache-2.0
2,056
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.vespa.config.server.maintenance; import com.yahoo.config.provision.ApplicationId; import com.yahoo.config.provision.ApplicationName; import com.yahoo.config.provision.InstanceName; import com.yaho...
vespa-engine/vespa
configserver/src/test/java/com/yahoo/vespa/config/server/maintenance/TenantsMaintainerTest.java
Java
apache-2.0
3,243
package org.onetwo.boot.core.web.service.impl; import java.io.InputStream; import org.onetwo.boot.core.web.utils.UploadOptions.ResizeConfig; import org.onetwo.boot.core.web.utils.UploadOptions.SnapshotConfig; import org.onetwo.boot.core.web.utils.UploadOptions.WaterMaskConfig; import org.onetwo.common.file.StoringFil...
wayshall/onetwo
core/modules/boot/src/main/java/org/onetwo/boot/core/web/service/impl/BootStoringFileContext.java
Java
apache-2.0
794
/* * 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...
consulo/consulo
modules/base/vcs-api/src/main/java/com/intellij/openapi/vcs/changes/committed/ChangeListFilteringStrategy.java
Java
apache-2.0
2,376
/* * Copyright 2013-2016 consulo.io * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
consulo/consulo
modules/desktop-awt/desktop-ui-impl/src/main/java/consulo/ui/desktop/internal/DesktopComboBoxImpl.java
Java
apache-2.0
2,720
package com.cn; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.view.Window; import android.widget.Button; import android.widget.ProgressBar; public class Main extends Activity implements OnClickListener { private ProgressBa...
ruixuekaifa/android--Demos
组件/进度条组件/and22/src/com/cn/Main.java
Java
apache-2.0
1,623
/** * Copyright 2016 William Van Woensel 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 ...
darth-willy/mobibench
MobiBenchWebService/src/main/java/wvw/mobibench/service/visitor/SPINFilterVisitor.java
Java
apache-2.0
1,719
package com.viskan.quartz.elasticsearch.http; /** * Defines a HTTP response. * * @author Anton Johansson */ public class HttpResponse { private final int responseCode; private final String responseMessage; private final String responseData; public HttpResponse(int responseCode, String responseMessage, String...
Viskan/quartz-elasticsearch-jobstore
src/main/java/com/viskan/quartz/elasticsearch/http/HttpResponse.java
Java
apache-2.0
932
/** * 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...
lucperkins/heron
storm-compatibility-examples/src/java/org/apache/storm/examples/spout/TestWordSpout.java
Java
apache-2.0
2,412
/* Copyright 2013-2014 Miguel Vicente Linares * * 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...
miviclin/droidengine2d-demos
src/com/miviclin/droidengine2ddemos/audio/musicplayback/MusicPlaybackDemoGameState.java
Java
apache-2.0
5,930
/* * Copyright (c) 2011-2018, Meituan Dianping. All Rights Reserved. * * 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 Y...
dianping/cat
cat-home/src/main/java/com/dianping/cat/system/page/router/config/RouterConfigHandler.java
Java
apache-2.0
9,694
/* * Copyright (C) 2016 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
androidx/media
libraries/extractor/src/test/java/androidx/media3/extractor/ts/SectionReaderTest.java
Java
apache-2.0
8,569
package com.rdas.configurations.database; import javax.sql.DataSource; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Primary; import org.springframework.core.io.ClassPathResource; import org.springframewor...
ranadas/spring-standalone-starter
src/main/java/com/rdas/configurations/database/DatabaseConfig.java
Java
artistic-2.0
2,411
package com.axelby.gpodder; import android.accounts.AbstractAccountAuthenticator; import android.accounts.Account; import android.accounts.AccountAuthenticatorResponse; import android.accounts.AccountManager; import android.accounts.NetworkErrorException; import android.app.Service; import android.content.Context; imp...
thasmin/Podax
src/main/java/com/axelby/gpodder/AuthenticationService.java
Java
bsd-2-clause
4,127
/* This file is a part of libcds - Concurrent Data Structures library (C) Copyright Maxim Khizhinsky (libcds.dev@gmail.com) 2006-2016 Source code repo: http://github.com/khizmax/libcds/ Download: http://sourceforge.net/projects/libcds/files/ Redistribution and use in source and binary forms, with...
eugenyk/libcds
test/unit/list/michael_rcu_sht.cpp
C++
bsd-2-clause
2,037
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved. #include "EnginePrivate.h" #include "Animation/AnimNode_BlendSpaceEvaluator.h" #include "Animation/BlendSpaceBase.h" ///////////////////////////////////////////////////// // FAnimNode_BlendSpaceEvaluator FAnimNode_BlendSpaceEvaluator::FAnimNode_BlendSpaceE...
PopCap/GameIdea
Engine/Source/Runtime/Engine/Private/Animation/AnimNode_BlendSpaceEvaluator.cpp
C++
bsd-2-clause
912
/* * Copyright (c) 2017, Matias Fontanini * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of c...
mfontanini/cppkafka
src/queue.cpp
C++
bsd-2-clause
3,570
package dshell.internal.process; import static dshell.internal.process.TaskConfig.Behavior.throwable; import static dshell.internal.process.TaskConfig.Behavior.timeout; import java.io.ByteArrayOutputStream; import java.lang.reflect.Constructor; import java.util.ArrayList; import java.util.List; import dshell.interna...
sekiguchi-nagisa/DShell
src/dshell/internal/process/ShellExceptionBuilder.java
Java
bsd-3-clause
3,452
// Copyright 2019 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/send_tab_to_self/send_tab_to_self_client_service.h" #include <memory> #include "base/time/time.h" #include "chrome/browser/send...
endlessm/chromium-browser
chrome/browser/send_tab_to_self/send_tab_to_self_client_service_unittest.cc
C++
bsd-3-clause
3,516
/* * Copyright (c) 2012, Harald Kuhr * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, this * list of condition...
haraldk/TwelveMonkeys
imageio/imageio-core/src/test/java/com/twelvemonkeys/imageio/ImageReaderBaseTest.java
Java
bsd-3-clause
12,873
package org.fhir.pascal.generator.analysis; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import org.fhir.pascal.generator.engine.Definitions; import org.hl7.fhir.r5.model.SearchParameter; import org.hl7.fhir.r5.model.StructureDefinition; public class Analysis { ...
grahamegrieve/fhirserver
utilities/generator/project/src/org/fhir/pascal/generator/analysis/Analysis.java
Java
bsd-3-clause
3,090
// Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ash/wm/lock_action_handler_layout_manager.h" #include <memory> #include <utility> #include "ash/keyboard/keyboard_controller_impl.h" #include ...
endlessm/chromium-browser
ash/wm/lock_action_handler_layout_manager_unittest.cc
C++
bsd-3-clause
28,929
// Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "third_party/blink/renderer/platform/scheduler/worker/non_main_thread_scheduler_helper.h" #include "third_party/blink/public/platform/task_type....
endlessm/chromium-browser
third_party/blink/renderer/platform/scheduler/worker/non_main_thread_scheduler_helper.cc
C++
bsd-3-clause
2,311
#include "Tudat/Astrodynamics/BasicAstrodynamics/physicalConstants.h" namespace tudat { namespace physical_constants { //! Function to get the length of a Julian day in seconds, with double precision. template< > double getJulianDay< double >( ) { return JULIAN_DAY; } //! Function to get the length of a Julian ...
JPelamatti/TudatDevelopment
Tudat/Astrodynamics/BasicAstrodynamics/physicalConstants.cpp
C++
bsd-3-clause
1,926
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/browsing_data/browsing_data_local_storage_helper.h" #include "base/bind.h" #include "base/message_loop.h" #include "chrome/b...
junmin-zhu/chromium-rivertrail
chrome/browser/browsing_data/browsing_data_local_storage_helper.cc
C++
bsd-3-clause
5,193
// Copyright (c) 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ash/system/message_center/message_center_ui_controller.h" #include <memory> #include "ash/system/message_center/metrics_utils.h" #include ...
endlessm/chromium-browser
ash/system/message_center/message_center_ui_controller.cc
C++
bsd-3-clause
4,908
package org.tbee.javafx.scene.layout.fxml; import javafx.beans.DefaultProperty; import javafx.scene.Node; import net.miginfocom.layout.CC; import net.miginfocom.layout.ConstraintParser; /** * This class provides some API enhancements to implement FXML (and this keep the original's API clean) * @author User...
UrsKR/miglayout
javafx/src/main/java/org/tbee/javafx/scene/layout/fxml/MigPane.java
Java
bsd-3-clause
2,009
// Copyright 2018 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chromeos/services/multidevice_setup/android_sms_app_installing_status_observer.h" #include "base/memory/ptr_util.h" #include "chromeos/componen...
endlessm/chromium-browser
chromeos/services/multidevice_setup/android_sms_app_installing_status_observer.cc
C++
bsd-3-clause
4,375
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'cycledetect.ui' # # Created by: PyQt5 UI code generator 5.12.3 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_CycleDetection(object): def setupUi(self, CycleDetection): ...
jaj42/dyngraph
graphysio/ui/cycledetect.py
Python
isc
1,725
/* For more information, please see: http://software.sci.utah.edu The MIT License Copyright (c) 2015 Scientific Computing and Imaging Institute, University of Utah. License for the specific language governing rights and limitations under Permission is hereby granted, free of charge, to any person o...
jcollfont/SCIRun
src/Interface/Modules/Visualization/GenerateStreamLinesDialog.cc
C++
mit
2,953
package de.robert_heim.unfuddle2bitbucket.cli; import org.apache.commons.cli.Option; import org.apache.commons.cli.OptionBuilder; import org.apache.commons.cli.Options; public class RuntimeOptions { // suppress static-access because commons-cli has a bad design of the // OptionBuilder in v1.2 and 1.3 is not release...
resteves/unfuddle2bitbucket
src/main/java/de/robert_heim/unfuddle2bitbucket/cli/RuntimeOptions.java
Java
mit
1,743
package refactorings.method; import java.util.ArrayList; import multirefactor.AccessFlags; import recoder.CrossReferenceServiceConfiguration; import recoder.convenience.TreeWalker; import recoder.java.declaration.MethodDeclaration; import recoder.kit.MiscKit; import recoder.kit.Problem; import recoder.kit.P...
mmohan01/ReFactory
src/refactorings/method/MakeMethodNonFinal.java
Java
mit
3,287
package org.corundummc.biomes.overworld.arboreal.taiga.mega; import org.corundummc.world.Location; import net.minecraft.world.biome.BiomeGenBase; import net.minecraft.world.biome.BiomeGenTaiga; import org.corundummc.biomes.overworld.arboreal.taiga.mega.MegaTaigaesqueBiome.MegaTaigaesqueBiomeType; public class MegaT...
vitruvianAnalogy/Corundum
Corundum/org/corundummc/biomes/overworld/arboreal/taiga/mega/MegaTaigaBiome.java
Java
mit
1,266
package aggregates import ( "strconv" "github.com/zimmski/tavor/token" ) // Len implements a aggregation token that returns the length of a LenToken token type Len struct { token token.LenToken } // NewLen returns a new instance of a Len token referencing the given LenToken token func NewLen(token token.LenToken...
ksmaheshkumar/tavor
token/aggregates/len.go
GO
mit
1,451
//%LICENSE//////////////////////////////////////////////////////////////// // // Licensed to The Open Group (TOG) under one or more contributor license // agreements. Refer to the OpenPegasusNOTICE.txt file distributed with // this work for additional information regarding copyright ownership. // Each contributor lice...
brunolauze/openpegasus-providers-old
src/Providers/UNIXProviders/LLDPEthernetPort/UNIX_LLDPEthernetPortProvider.cpp
C++
mit
9,985
package backend.command; import java.util.ArrayList; import java.util.HashMap; import slogo.Controller; import backend.command.control.UserDefinedCommand; /** * The Command superclass provides a framework for the different * commands that can be called by the user. The number of parameters must * be specified in o...
gsc9/SLogo
src/backend/command/Command.java
Java
mit
2,404
package com.qycloud.web.service.support; import javax.servlet.http.HttpServletRequest; import org.springframework.web.bind.annotation.ControllerAdvice; import org.springframework.web.bind.annotation.ExceptionHandler; import org.springframework.web.bind.annotation.ResponseBody; import com.conlect.oatos.dto.status.Err...
allanfish/facetime-demo
oatos_project/oatos_web/oatos_web/src/main/java/com/qycloud/web/service/support/BaseService.java
Java
mit
1,226
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
zyml/vscode
src/vs/workbench/parts/execution/electron-browser/terminal.contribution.ts
TypeScript
mit
6,145
#pragma once #include <QColor> #include <QRegularExpression> #include <QString> #include <unordered_map> #include "common/Aliases.hpp" #include "common/UniqueAccess.hpp" #define TWITCH_EMOTE_TEMPLATE \ "https://static-cdn.jtvnw.net/emoticons/v1/{id}/{scale}" namespace chatterino { struct Emote; using EmotePtr =...
Cranken/chatterino2
src/providers/twitch/TwitchEmotes.hpp
C++
mit
1,016
var pe = process.env, config = {}; /** * To conigure the bot, either set the values here directly - * or set environment variables. * SEE README.MD FOR DETAILS */ config.user = pe.targetUser || 'catalystcode', config.repo = pe.targetRepo || 'case-studies', config.botUser = pe.botUser || 'Epic-Stuff-Bot', confi...
cicorias/peer-review-bot
config.js
JavaScript
mit
1,510
/******************************************************************************* * Copyright (c) 2014 Rohde & Schwarz GmbH & Co. KG and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribu...
MarkZ3/cmake4cdt
org.eclipse.cdt.cmake4cdt/src/org/eclipse/cdt/cmake/newCMakeProject.java
Java
epl-1.0
5,555
/******************************************************************************* * Copyright (c) 2013, 2016 Red Hat, Inc. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is availabl...
eclipse/thym
plugins/org.eclipse.thym.ui/src/org/eclipse/thym/ui/wizard/export/NativeBinaryExportOperation.java
Java
epl-1.0
2,806