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
/* * 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")...
howepeng/isis
core/metamodel/src/main/java/org/apache/isis/core/metamodel/facets/object/disabled/method/DisabledObjectFacetViaMethod.java
Java
apache-2.0
3,340
/* * Copyright 2017-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...
brettwooldridge/buck
src/com/facebook/buck/distributed/build_client/ConsoleEventsDispatcher.java
Java
apache-2.0
2,768
/* * 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 ...
Ben-Zvi/drill
exec/java-exec/src/test/java/org/apache/drill/exec/rpc/data/TestBitRpc.java
Java
apache-2.0
6,960
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ package org.elasticsearch.xpack.security.transport; import org.apa...
ern/elasticsearch
x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/transport/ServerTransportFilter.java
Java
apache-2.0
5,836
/* MIPS16 syscall wrappers. Copyright (C) 2013-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C 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; e...
Chilledheart/glibc
sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
C
gpl-2.0
1,130
package eu.excitementproject.eop.alignmentedas.p1eda.instances; import java.io.File; import java.util.Vector; import org.apache.uima.jcas.JCas; import weka.classifiers.bayes.NaiveBayes; import weka.classifiers.functions.Logistic; import weka.classifiers.functions.MultilayerPerceptron; import weka.classifiers.functio...
madhumita-git/Excitement-Open-Platform
alignmentedas/src/main/java/eu/excitementproject/eop/alignmentedas/p1eda/instances/SimpleWordCoverageIT.java
Java
gpl-3.0
7,827
/* * Kuali Coeus, a comprehensive research administration system for higher education. * * Copyright 2005-2015 Kuali, Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, eithe...
sanjupolus/KC6.oLatest
coeus-impl/src/main/java/org/kuali/kra/iacuc/noteattachment/IacucProtocolAttachmentServiceImpl.java
Java
agpl-3.0
3,546
//* This file is part of the MOOSE framework //* https://www.mooseframework.org //* //* All rights reserved, see COPYRIGHT for full restrictions //* https://github.com/idaholab/moose/blob/master/COPYRIGHT //* //* Licensed under LGPL 2.1, please see LICENSE for details //* https://www.gnu.org/licenses/lgpl-2.1.html #in...
nuclear-wizard/moose
framework/src/postprocessors/NodalL2Norm.C
C++
lgpl-2.1
1,151
/* * Copyright 2018 LINE Corporation * * LINE Corporation licenses this file to you under the Apache License, * version 2.0 (the "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at: * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless r...
anuraaga/armeria
retrofit2/src/main/java/com/linecorp/armeria/client/retrofit2/BlockingCallSubscriber.java
Java
apache-2.0
1,778
/* * 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 ...
ueshin/apache-flink
flink-state-backends/flink-statebackend-rocksdb/src/main/java/org/apache/flink/contrib/streaming/state/RocksDBStateUploader.java
Java
apache-2.0
5,397
/* * 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 ...
prateekm/samza
samza-core/src/test/java/org/apache/samza/clustermanager/container/placement/TestContainerPlacementMetadataStore.java
Java
apache-2.0
9,789
/* * 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 ...
mduerig/jackrabbit-oak
oak-security-spi/src/test/java/org/apache/jackrabbit/oak/spi/security/principal/CompositePrincipalProviderTest.java
Java
apache-2.0
5,559
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
mapr/incubator-tez
tez-dag/src/main/java/org/apache/tez/dag/history/HistoryEventHandler.java
Java
apache-2.0
4,430
package podnodeconstraints import ( "fmt" "io" "reflect" "github.com/golang/glog" admission "k8s.io/kubernetes/pkg/admission" kapi "k8s.io/kubernetes/pkg/api" kapierrors "k8s.io/kubernetes/pkg/api/errors" "k8s.io/kubernetes/pkg/api/unversioned" "k8s.io/kubernetes/pkg/apis/extensions" clientset "k8s.io/kube...
fabric8io/gofabric8
vendor/github.com/openshift/origin/pkg/scheduler/admission/podnodeconstraints/admission.go
GO
apache-2.0
5,993
/* * Copyright 2012-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 ap...
izestrea/spring-boot
spring-boot-integration-tests/spring-boot-gradle-tests/src/test/java/org/springframework/boot/gradle/WarPackagingTests.java
Java
apache-2.0
6,247
/* * Copyright 2002-2014 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
qobel/esoguproject
spring-framework/spring-expression/src/main/java/org/springframework/expression/spel/ast/OpLE.java
Java
apache-2.0
4,195
package com.xeiam.xchange.bitso; import java.io.IOException; import java.math.BigDecimal; import javax.ws.rs.Consumes; import javax.ws.rs.FormParam; import javax.ws.rs.POST; import javax.ws.rs.Path; import javax.ws.rs.Produces; import javax.ws.rs.core.MediaType; import com.xeiam.xchange.bitso.dto.BitsoException; imp...
Muffon/XChange
xchange-bitso/src/main/java/com/xeiam/xchange/bitso/BitsoAuthenticated.java
Java
mit
4,055
package com.zheng.upms.server.controller; import com.zheng.common.base.BaseController; import com.zheng.upms.dao.model.*; import com.zheng.upms.rpc.api.UpmsApiService; import com.zheng.upms.rpc.api.UpmsSystemService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.apache.shiro...
zjy1170/zjy
zheng/zheng-upms/zheng-upms-server/src/main/java/com/zheng/upms/server/controller/ManageController.java
Java
apache-2.0
1,988
/** * 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 * distribu...
apache/aurora
src/main/java/org/apache/aurora/scheduler/cron/quartz/CronLifecycle.java
Java
apache-2.0
3,197
/* Copyright 2021 The TensorFlow 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 applicable law or a...
tensorflow/tensorflow
tensorflow/core/data/service/common_test.cc
C++
apache-2.0
7,007
// 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 "third_party/blink/renderer/modules/webaudio/audio_graph_tracer.h" #include "third_party/blink/renderer/core/dom/document.h" #include "third_par...
chromium/chromium
third_party/blink/renderer/modules/webaudio/audio_graph_tracer.cc
C++
bsd-3-clause
4,961
// Copyright 2014 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/ui/passwords/manage_passwords_test.h" #include <utility> #include "base/bind.h" #include "base/strings/utf_string_conversions.h...
hujiajie/chromium-crosswalk
chrome/browser/ui/passwords/manage_passwords_test.cc
C++
bsd-3-clause
4,562
/* This file is part of Cyclos (www.cyclos.org). A project of the Social Trade Organisation (www.socialtrade.org). Cyclos is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of th...
robertoandrade/cyclos
src/nl/strohalm/cyclos/entities/members/Administrator.java
Java
gpl-2.0
2,900
/* * Copyright (c) 2002, 2017, 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 ...
YouDiSN/OpenJDK-Research
jdk9/jdk/src/java.base/share/classes/jdk/internal/misc/SharedSecrets.java
Java
gpl-2.0
12,186
/* Copyright IBM Corp. 2016 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 applicable law or agreed to in wri...
cophey/fabric
core/ledger/ledgerconfig/ledger_config.go
GO
apache-2.0
2,950
package org.apereo.cas.adaptors.x509.util; import org.apereo.cas.adaptors.x509.authentication.principal.X509CertificateCredential; import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.core.JsonToken; import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.data...
leleuj/cas
support/cas-server-support-x509-core/src/main/java/org/apereo/cas/adaptors/x509/util/X509CertificateCredentialJsonSerializer.java
Java
apache-2.0
1,982
package origin import ( "io/ioutil" "regexp" "time" "github.com/golang/glog" kapi "github.com/GoogleCloudPlatform/kubernetes/pkg/api" kapierror "github.com/GoogleCloudPlatform/kubernetes/pkg/api/errors" "github.com/GoogleCloudPlatform/kubernetes/pkg/fields" "github.com/GoogleCloudPlatform/kubernetes/pkg/labe...
senayar/origin
pkg/cmd/server/origin/ensure.go
GO
apache-2.0
7,841
/* GNU Objective C Runtime internal declarations Copyright (C) 1993-2017 Free Software Foundation, Inc. Contributed by Kresten Krab Thorup This file is part of GCC. GCC is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software ...
mickael-guene/gcc
libobjc/objc-private/runtime.h
C
gpl-2.0
3,007
/* This file is part of Cyclos (www.cyclos.org). A project of the Social Trade Organisation (www.socialtrade.org). Cyclos is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of th...
robertoandrade/cyclos
src/nl/strohalm/cyclos/controls/members/RemoveMemberAction.java
Java
gpl-2.0
1,724
/* This file is part of Cyclos (www.cyclos.org). A project of the Social Trade Organisation (www.socialtrade.org). Cyclos is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of th...
robertoandrade/cyclos
src/nl/strohalm/cyclos/services/elements/exceptions/MemberAlreadyInBrokeringsException.java
Java
gpl-2.0
1,623
/** * Copyright © 2002 Instituto Superior Técnico * * This file is part of FenixEdu Academic. * * FenixEdu Academic 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...
jcarvalho/fenixedu-academic
src/main/java/org/fenixedu/academic/domain/student/curriculum/CurriculumEntry.java
Java
lgpl-3.0
2,499
/* * 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...
hurricup/intellij-community
java/debugger/impl/src/com/intellij/debugger/engine/ClassInstanceMethodFilter.java
Java
apache-2.0
3,060
package org.hl7.fhir.instance.model.valuesets; /* Copyright (c) 2011+, HL7, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain th...
eug48/hapi-fhir
hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/ContractSubtypeEnumFactory.java
Java
apache-2.0
2,505
// 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 "components/guest_os/guest_os_engagement_metrics.h" #include <algorithm> #include <string> #include <utility> #include "base/test/metrics/histo...
scheib/chromium
components/guest_os/guest_os_engagement_metrics_unittest.cc
C++
bsd-3-clause
8,060
// 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 "components/viz/service/display_embedder/in_process_gpu_memory_buffer_manager.h" #include <utility> #include "base/bind.h" #include "base/threa...
scheib/chromium
components/viz/service/display_embedder/in_process_gpu_memory_buffer_manager.cc
C++
bsd-3-clause
5,273
package org.wso2.developerstudio.eclipse.gmf.esb.diagram.edit.commands; import org.eclipse.core.commands.ExecutionException; import org.eclipse.core.runtime.IAdaptable; import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.emf.ecore.EObject; import org.eclipse.gmf.runtime.common.core.command.CommandResu...
nwnpallewela/devstudio-tooling-esb
plugins/org.wso2.developerstudio.eclipse.gmf.esb.diagram/src/org/wso2/developerstudio/eclipse/gmf/esb/diagram/edit/commands/MediatorFlow9CreateCommand.java
Java
apache-2.0
2,857
/** * Copyright 2013 Red Hat, Inc. * * Red Hat licenses this file to you under the Apache License, version * 2.0 (the "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required...
janstey/fuse-1
components/examples/camel-example-sap/src/main/java/org/fusesource/sap/example/jaxb/FlightInfo.java
Java
apache-2.0
3,126
// (C) Copyright John Maddock 2010. // Use, modification and distribution are subject to the // Boost Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #include <boost/type_traits.hpp> // // Just check that each trait actually ex...
flingone/frameworks_base_cmds_remoted
libs/boost/libs/type_traits/test/type_traits_test.cpp
C++
apache-2.0
3,991
/* 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, ...
rajatchopra/origin
cmd/service-catalog/go/src/github.com/kubernetes-incubator/service-catalog/cmd/apiserver/app/server/run_server.go
GO
apache-2.0
4,766
package daemon import ( "encoding/json" "errors" "fmt" "os" "path/filepath" "runtime" "strings" "github.com/Microsoft/hcsshim" "github.com/Sirupsen/logrus" "github.com/docker/docker/container" "github.com/docker/docker/daemon/graphdriver" "github.com/docker/docker/daemon/graphdriver/windows" // register t...
errordeveloper/docker
daemon/daemon_windows.go
GO
apache-2.0
15,761
/* * 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 ...
johnnywale/drill
exec/vector/src/main/java/org/apache/drill/exec/record/metadata/RepeatedListColumnMetadata.java
Java
apache-2.0
3,792
/* ObjectInputStream.java -- Class used to read serialized objects Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. GNU Classpath is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License ...
shaotuanchen/sunflower_exp
tools/source/gcc-4.2.4/libjava/classpath/vm/reference/java/io/VMObjectInputStream.java
Java
bsd-3-clause
3,568
/* * 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...
wagnermarkd/presto
presto-main/src/main/java/com/facebook/presto/operator/aggregation/state/MultiKeyValuePairStateSerializer.java
Java
apache-2.0
1,998
"""Provides device conditions for remotes.""" from typing import Dict, List import voluptuous as vol from homeassistant.components.device_automation import toggle_entity from homeassistant.const import CONF_DOMAIN from homeassistant.core import HomeAssistant, callback from homeassistant.helpers.condition import Condi...
sdague/home-assistant
homeassistant/components/remote/device_condition.py
Python
apache-2.0
1,227
/* * 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 ...
jinhyukchang/gobblin
gobblin-utility/src/test/java/org/apache/gobblin/broker/GobblinBrokerConfTest.java
Java
apache-2.0
6,643
/* * 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...
vvv1559/intellij-community
java/java-impl/src/com/intellij/codeInspection/bulkOperation/BulkMethodInfo.java
Java
apache-2.0
5,183
/* * 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 ...
vikkyrk/incubator-beam
runners/flink/src/test/java/org/apache/beam/runners/flink/streaming/FlinkKeyGroupStateInternalsTest.java
Java
apache-2.0
10,783
/* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Written (W) 2013 Fernando J. Iglesias Garcia * Written (W)...
MikeLing/shogun
tests/unit/distance/EuclideanDistance_unittest.cc
C++
gpl-3.0
4,611
/* Copyright 2016 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, ...
xychu/kubernetes
pkg/controller/cronjob/cronjob_controller.go
GO
apache-2.0
15,440
/* Simple DirectMedia Layer Copyright (C) 1997-2019 Sam Lantinga <slouken@libsdl.org> This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this ...
libcrosswind/libcrosswind
external/sdl2/SDL2-2/src/video/android/SDL_androidmouse.h
C
gpl-3.0
1,282
/* * 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...
asedunov/intellij-community
plugins/javaFX/src/org/jetbrains/plugins/javaFX/refactoring/JavaFxRenameFxIdFieldProcessor.java
Java
apache-2.0
4,834
/* * Copyright 2000-2015 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...
siosio/intellij-community
plugins/gradle/tooling-extension-impl/src/org/jetbrains/plugins/gradle/tooling/internal/ear/EarModelImpl.java
Java
apache-2.0
2,429
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _PERF_UTIL_TRACE_EVENT_H #define _PERF_UTIL_TRACE_EVENT_H #include <traceevent/event-parse.h> #include <traceevent/trace-seq.h> #include "parse-events.h" struct machine; struct perf_sample; union perf_event; struct perf_tool; struct thread; struct tep_plugin_list; struc...
codeaurora-unoffical/linux-msm
tools/perf/util/trace-event.h
C
gpl-2.0
3,230
/* Copyright_License { XCSoar Glide Computer - http://www.xcsoar.org/ Copyright (C) 2000-2016 The XCSoar Project A detailed list of copyright holders can be found in the file "AUTHORS". This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License ...
matthewturnbull/xcsoar
src/InfoBoxes/Content/MacCready.hpp
C++
gpl-2.0
1,216
/* * Copyright 2000-2014 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
asedunov/intellij-community
plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/lang/psi/impl/statements/GrWhileStatementImpl.java
Java
apache-2.0
3,132
# Copyright 2010 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 applicable law or a...
dbremner/bite-project
server/models/bite_project.py
Python
apache-2.0
3,943
/* * Copyright 2014 NAVER Corp. * * 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 ...
dawidmalina/pinpoint
web/src/main/java/com/navercorp/pinpoint/web/applicationmap/histogram/ApplicationTimeHistogram.java
Java
apache-2.0
4,114
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ package org.elasticsearch.xpack.security.transport.netty4; import ...
GlenRSmith/elasticsearch
x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/transport/netty4/SecurityNetty4HttpServerTransport.java
Java
apache-2.0
4,257
/* Copyright 2016 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, ...
Stackdriver/heapster
vendor/k8s.io/kubernetes/pkg/kubectl/cmd/rollout/rollout_history.go
GO
apache-2.0
5,259
/* 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 use this fi...
stealthly/statsd-mesos-kafka
vendor/github.com/elodina/siesta/messages.go
GO
apache-2.0
5,894
/* 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, ...
dchen1107/kubernetes-1
pkg/kubelet/network/hostport/hostport_manager.go
GO
apache-2.0
10,945
/* Copyright 2016 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, ...
lavalamp/test-infra
velodrome/token-counter/influx.go
GO
apache-2.0
2,525
/* Copyright 2016 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, ...
jprukner/origin
vendor/k8s.io/kubernetes/pkg/registry/scheduledjob/etcd/etcd.go
GO
apache-2.0
3,658
/** * 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...
bruthe/hadoop-2.6.0r
src/yarn/server/org/apache/hadoop/yarn/server/nodemanager/webapp/ContainerLogsUtils.java
Java
apache-2.0
7,864
// Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // http://code.google.com/p/protobuf/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistri...
rcrane/kinetic-c
vendor/protobuf-2.6.0/src/google/protobuf/generated_message_reflection_unittest.cc
C++
mpl-2.0
31,313
/* Copyright (C) 2007-2014 Free Software Foundation, Inc. This file is part of GCC. GCC is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version. GCC is distribute...
periclesroalves/gcc-conair
libgcc/config/libbid/_mul_dd.c
C
gpl-2.0
1,206
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ package co...
ttalhouk/Game_On
node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/frescosupport/FrescoBasedReactTextInlineImageViewManager.java
Java
mit
2,292
/** * 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...
dennishuo/hadoop
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/fs/viewfs/TestViewFileSystemWithXAttrs.java
Java
apache-2.0
5,798
/* Copyright 2016 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, ...
linzhaoming/origin
vendor/k8s.io/kubernetes/pkg/cloudprovider/providers/vsphere/vclib/connection.go
GO
apache-2.0
6,109
/* * Copyright 2000-2014 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
akosyakov/intellij-community
plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/lang/completion/closureParameters/ClosureDescriptor.java
Java
apache-2.0
4,313
/*** Copyright (c) 2012 CommonsWare, 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 writin...
janzoner/cw-omnibus
MapsV2/MyLocationMNC/app/src/main/java/com/commonsware/android/mapsv2/mylocation/LegalNoticesActivity.java
Java
apache-2.0
1,217
/* Copyright 2015 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
vendor/k8s.io/apimachinery/pkg/util/json/json.go
GO
apache-2.0
3,487
/* Copyright 2015 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, ...
liggitt/origin
vendor/k8s.io/kubernetes/test/integration/metrics/metrics_test.go
GO
apache-2.0
4,110
package com.intellij.codeInsight.completion; import com.intellij.codeInsight.lookup.TypedLookupItem; import com.intellij.codeInsight.template.Template; import com.intellij.codeInsight.template.impl.LiveTemplateLookupElementImpl; import com.intellij.codeInsight.template.impl.TemplateImpl; import com.intellij.psi.JavaPs...
hurricup/intellij-community
java/java-impl/src/com/intellij/codeInsight/completion/SmartCompletionTemplateItem.java
Java
apache-2.0
1,633
/* Copyright 2016 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, ...
stevekuznetsov/origin
vendor/k8s.io/kubernetes/pkg/kubectl/cmd/options.go
GO
apache-2.0
1,256
/* Copyright 2014 The Kubernetes 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 applicable law or ag...
kuma-san/kubernetes
pkg/apiserver/authz.go
GO
apache-2.0
2,883
// SPDX-License-Identifier: ISC // Copyright (c) 2014-2020 Bitmark Inc. // Use of this source code is governed by an ISC // license that can be found in the LICENSE file. package rpccalls import ( "github.com/bitmark-inc/bitmarkd/merkle" "github.com/bitmark-inc/bitmarkd/rpc/transaction" ) // TransactionStatusData ...
bitmark-inc/bitmarkd
command/bitmark-cli/rpccalls/status.go
GO
isc
1,006
package com.dancingqueen.walladog.fragments; import android.os.Bundle; import android.support.design.widget.NavigationView; import android.support.v4.app.Fragment; import android.support.v4.widget.DrawerLayout; import android.support.v7.app.ActionBarDrawerToggle; import android.support.v7.app.AppCompatActivity; import...
bootcamptropa/android
app/src/main/java/com/dancingqueen/walladog/fragments/MainFragment.java
Java
mit
1,807
import { NgModule, ApplicationRef } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { HttpModule } from '@angular/http'; import { XHRBackend, RequestOptions } from '@angular/http'; import { AppComponent } from './app/app.component'; // Core services import { ApiService } from '...
SaloCreative/salo-cms
src/app/app.module.ts
TypeScript
mit
3,430
package org.knowm.xchange.huobi.service.streaming; import static org.knowm.xchange.huobi.service.streaming.HuobiSocketIOAdapters.adaptSymbol; import java.util.HashSet; import java.util.Set; import java.util.concurrent.BlockingQueue; import java.util.concurrent.LinkedBlockingQueue; import org.java_websocket.WebSocket...
mmithril/XChange
xchange-huobi/src/main/java/org/knowm/xchange/huobi/service/streaming/HuobiStreamingExchangeService.java
Java
mit
4,629
package com.eaglesakura.andriders.ui.navigation; import com.eaglesakura.andriders.R; import com.eaglesakura.andriders.ui.navigation.base.AppNavigationActivity; import com.eaglesakura.andriders.ui.navigation.plugin.PluginSettingFragmentMain; import com.eaglesakura.android.framework.delegate.activity.ContentHolderActivi...
eaglesakura/andriders-central-engine-v3
app/src/main/java/com/eaglesakura/andriders/ui/navigation/PluginSettingActivity.java
Java
mit
1,204
package com.fionapet.business.jms; import org.dubbo.x.entity.IdEntity; /** * Created by tom on 16/10/20. */ public class NoticeInfoBuilder { private WarehouseNoticeInfo warehouseNoticeInfo; public static NoticeInfoBuilder instance(){ NoticeInfoBuilder noticeInfoBuilder = new NoticeInfoBuilder(); ...
bqw5189/pet-hospital
fionapet-business/fionapet-business-service-provider/src/main/java/com/fionapet/business/jms/NoticeInfoBuilder.java
Java
mit
1,029
// Copyright © 2016 Viro Media. All rights reserved. // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, m...
viromedia/viro
android/viro_bridge/src/main/java/com/viromedia/bridge/component/VRTDirectionalLightManager.java
Java
mit
4,621
package iavanish.collegepal.Deadlines; import java.util.Collection; import retrofit.http.Body; import retrofit.http.GET; import retrofit.http.POST; import retrofit.http.Query; /** * Created by Himanshu on 4/18/2015. */ public interface DeadlineClientApi { @GET("/deadline") public Collection<Deadline> getD...
iavanish/CollegePal
CollegePal/app/src/main/java/iavanish/collegepal/Deadlines/DeadlineClientApi.java
Java
mit
1,036
import React from 'react'; import ReactDOM from 'react-dom'; import { createStore, compose, applyMiddleware } from 'redux'; import { ReduxRouter, reduxReactRouter } from 'redux-router'; import { Provider } from 'react-redux'; import createHistory from 'history/lib/createBrowserHistory'; import routes from './routes'; ...
OpenCollective/opencollective-website
frontend/src/client.js
JavaScript
mit
1,154
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
microsoft/vscode
src/vs/workbench/services/extensions/common/extensionHostProxy.ts
TypeScript
mit
2,110
/* * Copyright (c) Fundacion Jala. All rights reserved. * Licensed under the MIT license. See LICENSE file in the project root for full license information. */ package org.fundacionjala.oblivion.apex.grammar; import java.io.FileNotFoundException; import static org.fundacionjala.oblivion.apex.grammar.AbstractTestG...
fundacionjala/oblivion-netbeans-plugin
Parsing/test/unit/src/org/fundacionjala/oblivion/apex/grammar/SpecialKeywordAsIdentifierTest.java
Java
mit
3,585
package responses import ( "github.com/go-zero-boilerplate/facades/tasks" ) //NewResponse creates a new Response func NewResponse(status Status, body interface{}, formatter Formatter) *Response { return &Response{ Status: status, Body: body, Formatter: formatter, } } //NewResponseFromTaskError creat...
go-zero-boilerplate/facades
routing/responses/response.go
GO
mit
834
package core import ( "testing" ) // stripExecutabilityRecursive is used by stripExecutability for recursion. func stripExecutabilityRecursive(snapshot *Entry) { // If the entry is nil, then there's nothing to strip. if snapshot == nil { return } // Handle the stripping based on entry kind. if snapshot.Kind ...
havoc-io/mutagen
pkg/synchronization/core/executability_test.go
GO
mit
3,141
package swift_test import ( . "launchpad.net/gocheck" "launchpad.net/goose/identity" "launchpad.net/goose/testing/httpsuite" "launchpad.net/goose/testservices/openstackservice" ) func registerLocalTests() { Suite(&localLiveSuite{}) } // localLiveSuite runs tests from LiveTests using a fake // swift server that ...
kgrvamsi/stormio
src/launchpad.net/goose/swift/local_test.go
GO
mit
1,605
/******************************************************************************* * The MIT License (MIT) * * Copyright (c) 2015 - 2019 Dr. Marc Mültin (V2G Clarity) * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Sof...
V2GClarity/RISE-V2G
RISE-V2G-EVCC/src/main/java/com/v2gclarity/risev2g/evcc/states/WaitForMeteringReceiptRes.java
Java
mit
5,750
package clevergo import ( "github.com/clevergo/router" "github.com/clevergo/sessions" "github.com/valyala/fasthttp" ) // Router for managing request handlers. type Router struct { *router.Router middlewares []Middleware // Middlewares. sessionStore sessions.Store // Session store for Context. logger ...
headwindfly/clevergo
router.go
GO
mit
4,076
package xialu.strikingly; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import com.alibaba.fastjson.JSONObject; /** * main入口 * @author xialu */ public class MainGame { private static int SUBMIT_THRESHHOLD = 1140; private Logger logger = LogManager.getLogger("Strinkly"); p...
xialu4820723/sInterview
java edition/src/main/java/xialu/strikingly/MainGame.java
Java
mit
2,564
package com.weixin.servlet; import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.weixin.co...
ScorpionJay/wechat
src/main/java/com/weixin/servlet/OAuthServlet.java
Java
mit
1,400
package com.udacity.gamedev.icicles; import com.badlogic.gdx.graphics.Color; import com.badlogic.gdx.math.Vector2; public class Constants { public static final float WORLD_SIZE = 10.0f; public static final Color BACKGROUND_COLOR = Color.BLUE; public static final float PLAYER_HEAD_RADIUS = 0.5f; publ...
Ucamo/2D_Game_Development_with_LibGDX
1.7.07-Exercise-AddTheIcicles/core/src/com/udacity/gamedev/icicles/Constants.java
Java
mit
1,160
package com.clearlyspam23.GLE.basic.layers.tile.gui; import java.awt.BorderLayout; import java.awt.FlowLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JButton; import javax.swing.JDialog; import javax.swing.JPanel; import javax.swing.UIManager; import jav...
clearlyspam23/JAnGLE
src/main/java/com/clearlyspam23/GLE/basic/layers/tile/gui/TilesetLoadDialog.java
Java
mit
3,991
package org.ethereum.jsontestsuite; import org.ethereum.config.SystemProperties; import org.ethereum.core.BlockHeader; import org.json.simple.parser.ParseException; import org.junit.Before; import org.junit.FixMethodOrder; import org.junit.Test; import org.junit.runners.MethodSorters; import org.slf4j.Logger; import o...
gerbrand/ethereumj
ethereumj-core/src/test/java/org/ethereum/jsontestsuite/GitHubBasicTest.java
Java
mit
1,534
package com.codepath.apps.twitterclient.models; import java.util.List; import org.json.JSONException; import org.json.JSONObject; import com.activeandroid.Model; import com.activeandroid.annotation.Column; import com.activeandroid.annotation.Table; import com.activeandroid.query.Select; /* * This is a temporary, s...
newtonry/android-twitter
app/src/main/java/com/codepath/apps/twitterclient/models/SampleModel.java
Java
mit
1,259
/** * The MIT License * Copyright (c) 2011 Kuali Mobility Team * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, ...
tamerman/mobile-starting-framework
reporting/api/src/main/java/org/kuali/mobility/reporting/entity/File.java
Java
mit
2,937
# pyfc4 plugin: pcdm import rdflib from pyfc4.plugins.pcdm import models, examples # logging import logging logger = logging.getLogger(__name__) logger.setLevel(logging.DEBUG) def custom_resource_type_parser(repo, uri, get_response): logger.debug("PCDM plugin, custom resource type parser firing") # parse grap...
ghukill/pyfc4
pyfc4/plugins/pcdm/__init__.py
Python
mit
1,038