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 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 "sync/engine/cryptographer_provider.h" namespace syncer { CryptographerProvider::CryptographerProvider() { } CryptographerProvider::~Cryptogra...
sencha/chromium-spacewalk
sync/engine/cryptographer_provider.cc
C++
bsd-3-clause
975
#ifndef _RINGBUFFER_H #define _RINGBUFFER_H #include <sys/types.h> typedef struct { char *buf; size_t len; } ringbuffer_data_t; typedef struct { char *buf; volatile size_t write_ptr; volatile size_t read_ptr; size_t size; size_t size_mask; int mlocked; char *helpbuf; size_t helpbufsize; } ringbuffer_t; ...
Coolstreamto/Coolto
src/driver/ringbuffer.h
C
gpl-2.0
1,155
package com.github.bordertech.wcomponents.examples.subordinate; import com.github.bordertech.wcomponents.Margin; import com.github.bordertech.wcomponents.Size; import com.github.bordertech.wcomponents.WContainer; import com.github.bordertech.wcomponents.WField; import com.github.bordertech.wcomponents.WFieldLayout; im...
marksreeves/wcomponents
wcomponents-examples/src/main/java/com/github/bordertech/wcomponents/examples/subordinate/SubordinateControlSimpleWMultiSelectExample.java
Java
gpl-3.0
2,130
// 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 "modules/screen_orientation/ScreenOrientationDispatcher.h" #include "public/platform/Platform.h" namespace blink { ScreenOrientationDispatcher...
geminy/aidear
oss/qt/qt-everywhere-opensource-src-5.9.0/qtwebengine/src/3rdparty/chromium/third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationDispatcher.cpp
C++
gpl-3.0
987
/* * Project: VizKit * Version: 2.3 * Date: 20090823 * File: VisualNotificationKey.h * */ /*************************************************************************** Copyright (c) 2004-2009 Heiko Wichmann (http://www.imagomat.de/vizkit) This software is provided 'as-is', without any expressed or impli...
jacknguyen92/projectm-1
src/projectM-iTunes-VizKit/source/VisualNotificationKey.h
C
lgpl-2.1
3,870
/* 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...
guoshimin/kubernetes
plugin/pkg/admission/securitycontext/scdeny/admission.go
GO
apache-2.0
2,312
/* * 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 ...
bowenli86/flink
flink-runtime/src/test/java/org/apache/flink/runtime/io/network/buffer/ReadOnlySlicedBufferTest.java
Java
apache-2.0
12,748
/* * 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 ...
anchela/jackrabbit-oak
oak-search-elastic/src/test/java/org/apache/jackrabbit/oak/plugins/index/elastic/index/ElasticDocumentMakerLargeStringPropertiesLogTest.java
Java
apache-2.0
8,952
// 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/components/tether/tether_disconnector_impl.h" #include "ash/components/tether/active_host.h" #include "ash/components/tether/device_id_teth...
chromium/chromium
ash/components/tether/tether_disconnector_impl.cc
C++
bsd-3-clause
5,339
package tests.compound; import org.checkerframework.common.aliasing.AliasingChecker; import org.checkerframework.common.basetype.BaseTypeChecker; import org.checkerframework.common.basetype.BaseTypeVisitor; import org.checkerframework.common.value.ValueChecker; import org.checkerframework.framework.qual.TypeQualifiers...
renatoathaydes/checker-framework
framework/tests/src/tests/compound/AnotherCompoundChecker.java
Java
gpl-2.0
1,544
/** * Copyright (C) 2014 - present by OpenGamma Inc. and the OpenGamma group of companies * * Please see distribution for license. */ package com.opengamma.sesame.irs; import java.math.BigDecimal; import java.util.Map; import java.util.Set; import org.threeten.bp.LocalDate; import org.threeten.bp.OffsetTime; imp...
codeaudit/OG-Platform
sesame/sesame-function/src/main/java/com/opengamma/sesame/irs/DiscountingInterestRateSwapCalculatorFactory.java
Java
apache-2.0
4,517
/* * 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 ...
mahak/hbase
hbase-it/src/test/java/org/apache/hadoop/hbase/CoprocClusterManager.java
Java
apache-2.0
5,719
/** * 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...
WANdisco/amplab-hive
serde/src/java/org/apache/hadoop/hive/serde2/lazybinary/objectinspector/LazyBinaryObjectInspectorFactory.java
Java
apache-2.0
5,336
/* 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, ...
camptocamp/conplicity
vendor/k8s.io/client-go/discovery/discovery_client.go
GO
apache-2.0
17,325
package org.opencloudb.response; import java.nio.ByteBuffer; import java.util.Collection; import org.opencloudb.MycatServer; import org.opencloudb.backend.BackendConnection; import org.opencloudb.config.Fields; import org.opencloudb.manager.ManagerConnection; import org.opencloudb.mysql.PacketUtil; import org.openclo...
wangjild/Mycat-Server
src/main/java/org/opencloudb/response/ShowSession.java
Java
apache-2.0
3,149
/* * 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...
facebook/buck
tools/ideabuck/src/com/facebook/buck/intellij/ideabuck/highlight/BcfgSyntaxHighlighter.java
Java
apache-2.0
4,379
package org.wso2.developerstudio.eclipse.gmf.esb.diagram.part; import org.eclipse.emf.common.ui.URIEditorInput; import org.eclipse.ui.IEditorInput; import org.eclipse.ui.IEditorMatchingStrategy; import org.eclipse.ui.IEditorReference; import org.eclipse.ui.PartInitException; /** * @generated */ public class EsbMatc...
chanakaudaya/developer-studio
esb/org.wso2.developerstudio.eclipse.gmf.esb.diagram/src/org/wso2/developerstudio/eclipse/gmf/esb/diagram/part/EsbMatchingStrategy.java
Java
apache-2.0
869
/* * Copyright 2016 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 appli...
shinfan/gcloud-java
google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/QueryParameterValueTest.java
Java
apache-2.0
9,490
package freenet.client.filter; import java.io.UnsupportedEncodingException; import freenet.l10n.NodeL10n; public class UnknownCharsetException extends DataFilterException { private static final long serialVersionUID = 1L; public final String charset; private UnknownCharsetException(String warning, String warnin...
saces/fred
src/freenet/client/filter/UnknownCharsetException.java
Java
gpl-2.0
1,135
/* * 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...
Teradata/presto
presto-raptor/src/main/java/com/facebook/presto/raptor/storage/StorageModule.java
Java
apache-2.0
5,198
/* * 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 ...
lukecwik/incubator-beam
runners/google-cloud-dataflow-java/worker/src/main/java/org/apache/beam/runners/dataflow/worker/CreateIsmShardKeyAndSortKeyDoFnFactory.java
Java
apache-2.0
5,125
/* 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, ...
shakamunyi/kubernetes
federation/registry/cluster/etcd/etcd.go
GO
apache-2.0
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 ...
jbonofre/beam
runners/apex/src/main/java/org/apache/beam/runners/apex/translation/operators/ApexReadUnboundedInputOperator.java
Java
apache-2.0
6,023
// 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 "sync/engine/traffic_recorder.h" #include "sync/protocol/sync.pb.h" #include "testing/gtest/include/gtest/gtest.h" namespace syncer { cons...
leighpauls/k2cro4
sync/engine/traffic_recorder_unittest.cc
C++
bsd-3-clause
1,407
/* Copyright 2005 Elliotte Rusty Harold This library is free software; you can redistribute it and/or modify it under the terms of version 2.1 of the GNU Lesser General Public License as published by the Free Software Foundation. This library is distributed in the hope that it will be useful, bu...
mmohan01/ReFactory
data/xom/xom-1.2b2/nu/xom/samples/inner/InnerFactory.java
Java
mit
1,166
/* 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/taglibs/NoCacheTag.java
Java
gpl-2.0
1,809
/* * Copyright (C) 2009-2017 Lightbend Inc. <https://www.lightbend.com> */ package javaguide.akka.inject; import javaguide.akka.ConfiguredActorProtocol; //#inject import akka.actor.ActorRef; import play.mvc.*; import scala.compat.java8.FutureConverters; import javax.inject.Inject; import javax.inject.Named; import ...
Shruti9520/playframework
documentation/manual/working/javaGuide/main/akka/code/javaguide/akka/inject/Application.java
Java
apache-2.0
885
/* * 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 ...
hequn8128/flink
flink-runtime/src/test/java/org/apache/flink/runtime/taskmanager/TestTaskBuilder.java
Java
apache-2.0
9,443
package com.capitalone.dashboard.collector; import com.amazonaws.services.autoscaling.AmazonAutoScaling; import com.amazonaws.services.cloudwatch.AmazonCloudWatchClient; import com.amazonaws.services.ec2.AmazonEC2Client; import com.capitalone.dashboard.model.CloudInstance; import com.capitalone.dashboard.model.CloudSu...
harish961/Hygieia-WFN
collectors/cloud/aws/src/main/java/com/capitalone/dashboard/collector/AWSCloudClient.java
Java
apache-2.0
2,080
// 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/web_applications/app_shim_registry_mac.h" #include "components/prefs/testing_pref_service.h" #include "testing/gtest/include/gte...
ric2b/Vivaldi-browser
chromium/chrome/browser/web_applications/app_shim_registry_mac_unittest.cc
C++
bsd-3-clause
7,248
// Copyright (c) 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 "ash/system/accessibility/accessibility_feature_disable_dialog.h" #include <memory> #include <utility> #include "ash/public/cpp/shell_windo...
ric2b/Vivaldi-browser
chromium/ash/system/accessibility/accessibility_feature_disable_dialog.cc
C++
bsd-3-clause
3,194
// Copyright 2020 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 "chromecast/browser/webui/cast_webui_message_handler.h" #include "base/logging.h" namespace chromecast { CastWebUIMessageHandler::CastWebUIMes...
ric2b/Vivaldi-browser
chromium/chromecast/browser/webui/cast_webui_message_handler.cc
C++
bsd-3-clause
1,060
/* * SonarQube, open source software quality management tool. * Copyright (C) 2008-2014 SonarSource * mailto:contact AT sonarsource DOT com * * SonarQube 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 Found...
dgageot/sonarqube
sonar-db/src/test/java/org/sonar/db/qualitygate/QualityGateConditionDaoTest.java
Java
lgpl-3.0
4,071
// 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 "remoting/host/server_log_entry_host.h" #include "base/strings/stringize_macros.h" #include "base/sys_info.h" #include "remoting/jingle_glue/ser...
TeamEOS/external_chromium_org
remoting/host/server_log_entry_host.cc
C++
bsd-3-clause
3,507
// Copyright 2016 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/presentation/presentation_connection_close_event.h" #include "third_party/blink/renderer/bindings/modules/v8...
chromium/chromium
third_party/blink/renderer/modules/presentation/presentation_connection_close_event.cc
C++
bsd-3-clause
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...
dennishuo/hadoop
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/monitor/ContainerMetrics.java
Java
apache-2.0
12,352
// 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 "components/signin/core/browser/test_signin_client.h" #include "base/logging.h" #include "base/thread_task_runner_handle.h" #include "components...
js0701/chromium-crosswalk
components/signin/core/browser/test_signin_client.cc
C++
bsd-3-clause
3,485
/** * $URL$ * $Id$ * * Copyright (c) 2006-2009 The Sakai Foundation * * Licensed under the Educational Community 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.opensource.org/licenses...
hackbuteer59/sakai
sitestats/sitestats-tool/src/java/org/sakaiproject/sitestats/tool/wicket/pages/OverviewPage.java
Java
apache-2.0
3,681
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.jetbrains.jsonSchema; import com.intellij.icons.AllIcons; import com.intellij.ide.FileIconProvider; import com.intellij.openapi.project.Project; import com.intellij.o...
smmribeiro/intellij-community
json/src/com/jetbrains/jsonSchema/JsonSchemaIconProvider.java
Java
apache-2.0
1,173
package com.salesmanager.test.catalog; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.OutputStream; import java.math.BigDeci...
xyz2410/shopizer
sm-core/src/test/java/com/salesmanager/test/catalog/ProductImagesTestCase.java
Java
gpl-2.0
7,477
// Package api provides endpoints for topic moderation system package api import ( "net/http" "net/url" "socialapi/models" "socialapi/workers/common/handler" "socialapi/workers/common/mux" "socialapi/workers/common/response" "socialapi/workers/email/emailsender" ) // AddHandlers added the internal handlers to ...
acbodine/koding
go/src/socialapi/workers/email/api/handler.go
GO
agpl-3.0
780
/* 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, ...
Wattpad/kubernetes-contrib
ingress/controllers/nginx/nginx/cors/main.go
GO
apache-2.0
1,252
/* * Copyright 2014 Red Hat Inc. and/or its affiliates and other contributors * as indicated by the @author tags. 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 *...
gregjones60/keycloak
wildfly/server-eap6-subsystem/src/main/java/org/keycloak/subsystem/server/as7/KeycloakSubsystemDefinition.java
Java
apache-2.0
3,404
/* Stub functions. Copyright (C) 2006-2016 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....
selmentdev/selment-toolchain
source/gcc-latest/libgcc/config/pa/stublib.c
C
gpl-3.0
2,649
/* * Copyright 2012-2017 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...
vakninr/spring-boot
spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/mustache/MustacheAutoConfiguration.java
Java
apache-2.0
3,695
/* * 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 ...
tmaret/sling
installer/it/src/test/java/org/apache/sling/installer/it/EventsDetector.java
Java
apache-2.0
3,081
/** * 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...
dlanza1/sqoop
src/java/org/apache/sqoop/mapreduce/postgresql/PostgreSQLCopyExportJob.java
Java
apache-2.0
3,973
/* * 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...
ivan-fedorov/intellij-community
platform/vcs-impl/src/com/intellij/openapi/vcs/changes/patch/CreatePatchConfigurationPanel.java
Java
apache-2.0
10,625
/* Copyright: © Copyright 2004 Apple Computer, Inc. All rights reserved. Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple Computer, Inc. ("Apple") in consideration of your agreement to the following terms, and your use, installation, modification or redistribution of this Apple software ...
akhudek/Soundflower
SoundflowerBed/AudioDeviceList.cpp
C++
gpl-2.0
3,448
/* * Copyright (c) 2005 Erwin Coumans http://continuousphysics.com/Bullet/ * * Permission to use, copy, modify, distribute and sell this software * and its documentation for any purpose is hereby granted without fee, * provided that the above copyright notice appear in all copies. * Erwin Coumans makes no r...
automenta/old-crittergod
src/physics/BulletDynamics/Vehicle/btWheelInfo.cpp
C++
gpl-3.0
1,893
/* * 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...
android-ia/platform_tools_idea
java/debugger/impl/src/com/intellij/debugger/codeinsight/RuntimeTypeEvaluator.java
Java
apache-2.0
4,820
// 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 "config.h" #include "core/html/track/AudioTrackList.h" namespace blink { PassRefPtrWillBeRawPtr<AudioTrackList> AudioTrackList::create(HTMLMedi...
guorendong/iridium-browser-ubuntu
third_party/WebKit/Source/core/html/track/AudioTrackList.cpp
C++
bsd-3-clause
874
/* Language independent support for printing types for GDB, the GNU debugger. Copyright (C) 1986-2015 Free Software Foundation, Inc. This file is part of GDB. 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 Fr...
armoredsoftware/protocol
measurer/gdb-7.9/gdb/typeprint.h
C
bsd-3-clause
2,565
/* * Copyright 2007-2008 Dave Griffith * * 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 ...
ahb0327/intellij-community
plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/codeInspection/control/GroovyLoopStatementThatDoesntLoopInspection.java
Java
apache-2.0
2,783
/* Unix SMB/CIFS implementation. SMB Transport encryption code. Copyright (C) Jeremy Allison 2007. 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, o...
javierag/samba
libcli/smb/smb_seal.h
C
gpl-3.0
1,398
/* 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, ...
rthallisey/ansible-service-broker
vendor/k8s.io/kubernetes/cmd/kube-controller-manager/app/autoscaling.go
GO
apache-2.0
4,158
// +build !linux,!windows /* 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 la...
crobby/oshinko-cli
vendor/k8s.io/kubernetes/pkg/kubelet/dockershim/helpers_unsupported.go
GO
apache-2.0
1,659
/* * 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...
android-ia/platform_tools_idea
java/idea-ui/src/com/intellij/facet/impl/ui/libraries/LibrariesValidationComponentImpl.java
Java
apache-2.0
2,666
package storage import ( "fmt" "encoding/json" "github.com/docker/distribution" "github.com/docker/distribution/context" "github.com/docker/distribution/manifest/manifestlist" "github.com/opencontainers/go-digest" ) // manifestListHandler is a ManifestHandler that covers schema2 manifest lists. type manifestLi...
crobby/oshinko-cli
vendor/github.com/openshift/origin/cmd/cluster-capacity/go/src/github.com/kubernetes-incubator/cluster-capacity/vendor/github.com/docker/distribution/registry/storage/manifestlisthandler.go
GO
apache-2.0
2,773
/* Copyright 2015 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...
justinholmes/kubernetes
pkg/registry/thirdpartyresourcedata/registry.go
GO
apache-2.0
3,781
/* Copyright 2018 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, ...
sallyom/origin
vendor/k8s.io/apiserver/pkg/storage/etcd3/lease_manager.go
GO
apache-2.0
4,961
/* * 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...
fireshort/spring-boot
spring-boot/src/test/java/org/springframework/boot/test/SpringApplicationIntegrationTestPropertyLocationTests.java
Java
apache-2.0
2,707
// Boost.Geometry (aka GGL, Generic Geometry Library) // Copyright (c) 2014 Barend Gehrels, Amsterdam, the Netherlands. // Copyright (c) 2014 Bruno Lalande, Paris, France. // Copyright (c) 2014 Mateusz Loskot, London, UK. // Copyright (c) 2014 Adam Wulkiewicz, Lodz, Poland. // Use, modification and distribution is su...
nealkruis/kiva
vendor/boost-1.61.0/boost/geometry/policies/robustness/robust_type.hpp
C++
gpl-3.0
1,547
/** * 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...
tseen/Federated-HDFS
tseenliu/FedHDFS-hadoop-src/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestFSImageWithAcl.java
Java
apache-2.0
8,182
package synchronization import ( "os" "testing" "github.com/mutagen-io/mutagen/pkg/encoding" "github.com/mutagen-io/mutagen/pkg/filesystem/behavior" "github.com/mutagen-io/mutagen/pkg/synchronization" "github.com/mutagen-io/mutagen/pkg/synchronization/core" ) const ( testYAMLConfiguration = ` mode: "two-way-r...
havoc-io/mutagen
pkg/configuration/synchronization/configuration_test.go
GO
mit
6,022
package com.dicoding.materialtab; import android.os.Bundle; import android.support.design.widget.TabLayout; import android.support.v4.view.ViewPager; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.Toolbar; import com.dicoding.materialtab.adapter.TabFragmentPagerAdapter; public clas...
adityanuar/DicodingAndroidNative1
MaterialTab/app/src/main/java/com/dicoding/materialtab/MainActivity.java
Java
mit
1,535
/** * The MIT License (MIT) * * Copyright (c) 2014 Daniel Schruhl * * 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 *...
xn--nding-jua/Ampdroid
app/src/main/java/com/racoon/ampdroid/MainActivity.java
Java
mit
28,057
function HandsontableDateEditorClass(instance) { this.isCellEdited = false; this.instance = instance; this.createElements(); this.bindEvents(); } Handsontable.helper.inherit(HandsontableDateEditorClass, HandsontableTextEditorClass); /** * @see HandsontableTextEditorClass.prototype.createElements */ ...
ermouth/jquery-handsontable
src/editors/dateEditor.js
JavaScript
mit
3,209
import { ContentNodeProgressResource } from 'kolibri.resources'; import { ContentNodeKinds } from 'kolibri.coreVue.vuex.constants'; import { assessmentMetaDataState } from 'kolibri.coreVue.vuex.mappers'; import { getContentNodeThumbnail } from 'kolibri.utils.contentNode'; import tail from 'lodash/tail'; // adds progre...
indirectlylit/kolibri
kolibri/plugins/learn/assets/src/modules/coreLearn/utils.js
JavaScript
mit
1,587
/* * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ package com.facebook.drawee.generic; import static com.facebook.drawee.drawable.ScalingUtils.ScaleType; import android.content.Context;...
s1rius/fresco
drawee/src/main/java/com/facebook/drawee/generic/GenericDraweeHierarchyInflater.java
Java
mit
13,356
#include "NaiveSpatialMedian.h" #include "KdTreeGeometry.h" #include "KdTreeNode.h" #include <Geometry.h> namespace Raytracer { namespace KdTreeConstruction { NaiveSpatialMedian::NaiveSpatialMedian() { } void NaiveSpatialMedian::Construct(KdTreeGeometry& geometry) { m_NumTriangles = geometry.GetNumTriangles();...
bryanlawsmith/Raytracing
Raytracer (Offline)/NaiveSpatialMedian.cpp
C++
mit
3,629
/* Copyright (c) 2010 McDowell http://illegalargumentexception.blogspot.co.uk/2010/09/java-systemconsole-ides-and-testing.html 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 restric...
marcandreuf/LotteryGame
src/main/java/org/console/TextDevice.java
Java
mit
1,750
package com.fionapet.business.consumer; import com.alibaba.fastjson.JSON; import com.fionapet.business.entity.ApproveStatusEntity; import com.fionapet.business.service.ApproveStatusEntityService; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.util.List; /** * Created by tom on 2016-07-18 11:09...
bqw5189/pet-hospital
fionapet-business/fionapet-business-consumer/src/main/java/com/fionapet/business/consumer/ApproveStatusEntityDemoAction.java
Java
mit
1,161
package com.faforever.client.remote; import com.faforever.client.remote.domain.SerializableMessage; import com.faforever.client.remote.io.QDataWriter; import com.google.gson.FieldNamingPolicy; import com.google.gson.Gson; import com.google.gson.GsonBuilder; import com.google.gson.stream.JsonWriter; import org.slf4j.Lo...
micheljung/downlords-faf-client
src/main/java/com/faforever/client/remote/JsonMessageSerializer.java
Java
mit
3,363
package com.leontg77.achievements; import org.bukkit.plugin.PluginDescriptionFile; import org.bukkit.plugin.java.JavaPlugin; import com.leontg77.achievements.commands.AchievementsCommand; import com.leontg77.achievements.listeners.AchievementListener; /** * Main class of the plugin. * * @author LeonTG77 */ publ...
LeonTG77/Achievements
src/com/leontg77/achievements/Main.java
Java
mit
1,094
/** * This program and the accompanying materials * are made available under the terms of the License * which accompanies this distribution in the file LICENSE.txt */ package com.archimatetool.canvas.factory; import org.eclipse.emf.ecore.EClass; import org.eclipse.gef.EditPart; import org.eclipse.jface.resource.Im...
archimatetool/archi
com.archimatetool.canvas/src/com/archimatetool/canvas/factory/CanvasModelUIProvider.java
Java
mit
1,773
package jupiterbrain import "fmt" // VSphereAPIError is returned when a function that communicates with the // vSphere API gets an error from the API that it can't recover from. type VSphereAPIError struct { // UnderlyingError is the error that was returned by the vSphere API. UnderlyingError error } func (e VSphe...
Tiger66639/jupiter-brain
src/github.com/travis-ci/jupiter-brain/errors.go
GO
mit
1,017
/* Copyright (c) 2014 code.fm 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, modify, merge, publish, distribute, s...
groestl/ductive
src/ductive/console/config/DefaultArgParsersConfig.java
Java
mit
1,427
/* * Hibernate, Relational Persistence for Idiomatic Java * * Copyright (c) 2008-2011, Red Hat Inc. or third-party contributors as * indicated by the @author tags or express copyright attribution * statements applied by the authors. All third-party contributions are * distributed under license by Red Hat Inc. *...
HerrB92/obp
OpenBeaconPackage/libraries/hibernate-release-4.2.7.SP1/project/hibernate-core/src/test/java/org/hibernate/test/annotations/access/xml/XmlAccessTest.java
Java
mit
8,400
/* * Copyright 2012-2020 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...
yangdd1205/spring-boot
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/env/OriginTrackedYamlLoader.java
Java
mit
4,865
package com.walkertribe.ian.protocol.core; import com.walkertribe.ian.enums.Origin; import com.walkertribe.ian.iface.PacketReader; import com.walkertribe.ian.iface.PacketWriter; import com.walkertribe.ian.protocol.Packet; import com.walkertribe.ian.protocol.core.SimpleEventPacket.SubType; /** * Enables/disables keys...
rjwut/ian
src/main/java/com/walkertribe/ian/protocol/core/KeyCaptureTogglePacket.java
Java
mit
1,269
package com.uprint.android_pack.cloudprint4androidmanager.receiver; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.net.ConnectivityManager; import android.net.NetworkInfo; import android.widget.Toast; import com.uprint.android_pack.cloudprint4an...
TonyChiangUSA/UPrint-Orange
app/src/main/java/com/uprint/android_pack/cloudprint4androidmanager/receiver/NetWorkBroadCast.java
Java
mit
1,184
/** * Copyright (c) 2014-2016 Dallin Wellington * */ #include <Scene/TransformSystem.h> #include <Math/Matrix4x4.h> using namespace Monsoon; using namespace Monsoon::Scene; TransformSystem::TransformSystem(Event::EventManager* eventManager) : System(eventManager) { } TransformSystem::~TransformSystem() { } void...
dead1ock/monsoon
Engine/Src/Scene/TransformSystem.cpp
C++
mit
4,045
package main import ( "os" "github.com/ghawk1ns/golf/Godeps/_workspace/src/github.com/op/go-logging" ) var log = logging.MustGetLogger("example") // Example format string. Everything except the message has a custom color // which is dependent on the log level. Many fields have a custom output // formatting too, e...
GHawk1ns/GoGolfers
Godeps/_workspace/src/github.com/op/go-logging/examples/example.go
GO
mit
1,577
package de.isse.JaCoP; import org.jacop.constraints.PrimitiveConstraint; import org.jacop.core.BooleanVar; import ua.cr2csop.constraints.Constraint; /** * Adds a weight to a primitive constraints * @author alexander * */ public class WrappedPrimitiveConstraint { private PrimitiveConstraint pc; private int weig...
nevik/constraint-relationships-csemiring
src/de/isse/JaCoP/WrappedPrimitiveConstraint.java
Java
mit
1,220
/* The MIT License (MIT) Copyright (c) 2014 Ahmad Barqawi (github.com/Barqawiz) 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...
Barqawiz/Database_Sqlite_Assets_Helper
Demo/Keep_Sample_Demo/src/com/iaraby/views/AddDialog.java
Java
mit
4,006
#include "dialog_close_button.h" #include "dialog_window.h" #include "solar/windows/rendering/window_renderer.h" #include "solar/windows/rendering/window_render_state_helpers.h" namespace solar { dialog_close_button::dialog_close_button(dialog_window& dialog_window) : window("dialog_close_button") , _dialog_wi...
jseward/solar
src/solar/windows/dialogs/dialog_close_button.cpp
C++
mit
1,139
/* The contents of this file are subject to the Mozilla Public License Version 1.1 (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.mozilla.org/MPL/ Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WAR...
zkkz/OrientalExpress
source/openfast/src/org/openfast/template/operator/ConstantOperatorCodec.java
Java
mit
2,603
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package com.azure.spring.data.cosmos; import com.azure.spring.data.cosmos.core.query.CosmosPageRequest; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.domain.Page; import org....
Azure/azure-sdk-for-java
sdk/cosmos/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/PageableRepositoryCodeSnippet.java
Java
mit
1,159
package net.winterly.rxjersey.server.rxjava2; import io.reactivex.Completable; import io.reactivex.Flowable; import io.reactivex.Maybe; import net.winterly.rxjersey.server.RxInvocationHandler; import org.glassfish.hk2.api.IterableProvider; import org.glassfish.jersey.server.AsyncContext; import javax.inject.Inject; i...
alex-shpak/rx-jersey
rxjava2-server/src/main/java/net/winterly/rxjersey/server/rxjava2/MaybeInvocationHandler.java
Java
mit
1,644
/* * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
koobonil/Boss2D
Boss2D/addon/_old/webrtc-qt5.11.2_for_boss/modules/desktop_capture/fallback_desktop_capturer_wrapper.cc
C++
mit
6,392
#ifndef EZ_FS_H #define EZ_FS_H #include <stddef.h> #include <stdint.h> #include "common.h" #include "fs_types.h" // File amounts #define MAX_FILES_NUM 10 #define ROOT_LIST_AMOUNT 12 #define MAX_FILE_NAME 256 #define BLOCK_SIZE 1024 #define METABLOCK_ADDRESS 512 #define DEFAULT_FILE_SIZE 1024 // Options #define ...
kratosaurion7/micros
ezfs.h
C
mit
2,704
package net.demo.netty.tinde; import java.net.InetSocketAddress; import java.util.concurrent.Executors; import org.jboss.netty.bootstrap.ServerBootstrap; import org.jboss.netty.channel.Channel; import org.jboss.netty.channel.ChannelPipeline; import org.jboss.netty.channel.ChannelPipelineFactory; import org.jboss.nett...
liufeiit/tulip
net/src/test/java/net/demo/netty/tinde/Server.java
Java
mit
3,068
package iso20022 // Unique and unambiguous way to identify a person. type PersonIdentification2 struct { // Number assigned by a license authority to a driver's license. DriversLicenseNumber *Max35Text `xml:"DrvrsLicNb"` // Number assigned by a social security agency. SocialSecurityNumber *Max35Text `xml:"SclSct...
fgrid/iso20022
PersonIdentification2.go
GO
mit
2,264
// // BFFont.c // // Copyright (c) 2011-2019 James Rodovich // // 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,...
ripeware/butterfly
quartz/BFFont.c
C
mit
6,969
package com.ocdsoft.bacta.swg.server.message.game; import com.ocdsoft.bacta.soe.message.GameNetworkMessage; import com.ocdsoft.bacta.soe.util.SOECRC32; import lombok.Getter; import com.ocdsoft.bacta.soe.message.Priority; import java.nio.ByteBuffer; /** 00 00 00 00 SOECRC32.hashCode(NewTicketActivityMessage...
bacta/pre-cu
src/main/java/com/ocdsoft/bacta/swg/server/message/game/NewTicketActivityMessage.java
Java
mit
654
/** * Copyright (c) 2015-2017 Angelo ZERR. * This program and the accompanying materials are made * available under the terms of the Eclipse Public License 2.0 * which is available at https://www.eclipse.org/legal/epl-2.0/ * * SPDX-License-Identifier: EPL-2.0 * * Contributors: * Angelo Zerr <angelo...
angelozerr/textmate.java
org.eclipse.tm4e.core/src/main/java/org/eclipse/tm4e/core/internal/css/CSSSelectorFactory.java
Java
mit
3,720
package de.outstare.kinosim.gui; import java.awt.BorderLayout; import java.awt.Color; import java.awt.Dimension; import java.awt.Font; import java.awt.event.ActionEvent; import java.time.LocalDate; import java.time.LocalTime; import java.util.ArrayList; import java.util.List; import java.util.Random; import javax.swi...
Loomie/KinoSim
app/src/main/java/de/outstare/kinosim/gui/ShowSimulatorGui.java
Java
mit
6,448
// Copyright Benoit Blanchon 2014 // MIT License // // Arduino JSON library // https://github.com/bblanchon/ArduinoJson #include <gtest/gtest.h> #include <ArduinoJson.h> class JsonVariant_Storage_Tests : public ::testing::Test { protected: template <typename T> void testValue(T expected) { _actual.set(expect...
0ddie/ArduinoJson
test/JsonVariant_Storage_Tests.cpp
C++
mit
1,748
#include "Meteor.h" Meteor::Meteor(std::shared_ptr<btDiscreteDynamicsWorld> world_ptr, glm::vec3 start_pos, glm::vec3 scale) : Entity(world_ptr, start_pos, scale) { type = EntityType::METEOR; mesh = GameModule::resources->GetMesh("cube"); } void Meteor::Init() { physic_body = std::make_unique<PhysicBody>(world.lo...
DevRaptor/space_ships
src/entity/Meteor.cpp
C++
mit
1,763