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
/******************************************************************************* * ALMA - Atacama Large Millimiter Array * (c) European Southern Observatory, 2006 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by th...
jbarriosc/ACSUFRO
LGPL/CommonSoftware/acsalarm/src/ACSAlarmSystemInterfaceFactory.cpp
C++
lgpl-2.1
13,541
// Copyright 2013 The Prometheus 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...
Stackdriver/stackdriver-prometheus
vendor/github.com/prometheus/prometheus/util/stats/query_stats.go
GO
apache-2.0
2,741
/* * 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...
Soya93/Extract-Refactoring
platform/platform-api/src/com/intellij/openapi/ui/MasterDetailsStateService.java
Java
apache-2.0
3,856
package org.apereo.cas.config.authentication.support; import org.apache.commons.lang3.tuple.Pair; import org.apereo.cas.configuration.CasConfigurationProperties; import org.apereo.cas.support.saml.authentication.principal.SamlService; import org.apereo.cas.support.saml.util.SamlCompliantUniqueTicketIdGenerator; import...
creamer/cas
support/cas-server-support-saml/src/main/java/org/apereo/cas/config/authentication/support/SamlUniqueTicketIdGeneratorConfiguration.java
Java
apache-2.0
1,725
/* * 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 ...
efikalti/vxquery
vxquery-core/src/main/java/org/apache/vxquery/runtime/functions/castable/AbstractCastableAsOperation.java
Java
apache-2.0
8,900
/* * Licensed to Elasticsearch under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not use this fi...
dmiszkiewicz/elasticsearch
src/main/java/org/elasticsearch/search/aggregations/TransportAggregationModule.java
Java
apache-2.0
5,346
/* * 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 ...
staslev/beam
sdks/java/extensions/sql/src/main/java/org/apache/beam/sdk/extensions/sql/impl/rel/BeamAggregationRel.java
Java
apache-2.0
7,497
/* * Copyright 2010 JBoss 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 i...
sutaakar/droolsjbpm-knowledge
kie-internal/src/main/java/org/kie/internal/task/api/model/InternalTask.java
Java
apache-2.0
1,795
// Copyright (C) 2016 the V8 project authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- es6id: 21.2.3 description: Super need to be called to initialize internals info: | 21.2.3 The RegExp Constructor ... The RegExp constructor is designed to be subclassab...
sebastienros/jint
Jint.Tests.Test262/test/language/statements/class/subclass/builtin-objects/RegExp/super-must-be-called.js
JavaScript
bsd-2-clause
804
/* Remote File-I/O communications Copyright (C) 2003, 2007, 2008, 2009, 2010 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 Free Software Foundation; ...
crazyleen/msp430-gdb-7.2a
gdb/remote-fileio.h
C
gpl-2.0
1,377
// 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 "ui/wm/core/capture_controller.h" #include "base/logging.h" #include "base/macros.h" #include "ui/aura/env.h" #include "ui/aura/test/test_wi...
geminy/aidear
oss/qt/qt-everywhere-opensource-src-5.9.0/qtwebengine/src/3rdparty/chromium/ui/views/corewm/desktop_capture_controller_unittest.cc
C++
gpl-3.0
6,776
package org.osmdroid.bonuspack.kml; import java.io.IOException; import java.io.Writer; import org.osmdroid.bonuspack.kml.KmlFeature.Styler; import org.osmdroid.bonuspack.overlays.BasicInfoWindow; import org.osmdroid.bonuspack.overlays.Polyline; import org.osmdroid.bonuspack.utils.BonusPackHelper; import org.osmdroid.u...
Crazyphil/osmbonuspack
OSMBonusPack/src/main/java/org/osmdroid/bonuspack/kml/KmlLineString.java
Java
lgpl-3.0
4,359
/* * Copyright (c) 2015 Spotify AB. * * 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,...
lucilecoutouly/heroic
heroic-core/src/main/java/com/spotify/heroic/consumer/CoreConsumersModule.java
Java
apache-2.0
3,053
/* * Copyright 2000-2010 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...
leafclick/intellij-community
plugins/ant/src/com/intellij/lang/ant/dom/AntStringResolver.java
Java
apache-2.0
3,706
/* * 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 ...
tzulitai/flink
flink-core/src/test/java/org/apache/flink/api/java/typeutils/runtime/kryo/KryoSerializerUpgradeTest.java
Java
apache-2.0
10,382
/* * Copyright 2000-2017 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 org.jetbrains.plugins.groovy.formatter.blocks; import com.intellij.formatting.*; import com.intellij.lang.ASTNode; import com.intellij.openapi.util.TextRange; imp...
jk1/intellij-community
plugins/groovy/src/org/jetbrains/plugins/groovy/formatter/blocks/GroovyBlock.java
Java
apache-2.0
7,207
/* * Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) 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 * * Un...
prabushi/devstudio-tooling-esb
plugins/org.wso2.developerstudio.visualdatamapper.diagram/src/org/wso2/developerstudio/datamapper/diagram/custom/dialogs/ConfigureReplaceOperatorDialog.java
Java
apache-2.0
6,943
// 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 "content/browser/web_package/signed_exchange_validity_pinger.h" #include "base/bind.h" #include "base/feature_list.h" #include "base/memory/ptr_...
chromium/chromium
content/browser/web_package/signed_exchange_validity_pinger.cc
C++
bsd-3-clause
6,754
from flask import Blueprint, jsonify, g from flask_httpauth import HTTPBasicAuth from .models import User from .errors import unauthorized from .decorators import json token = Blueprint('token', __name__) token_auth = HTTPBasicAuth() @token_auth.verify_password def verify_password(username, password): g.user = U...
NamPNQ/api-pycon2015
api/token.py
Python
mit
935
package org.knowm.xchange.coinbase.dto.account; import java.util.List; import org.knowm.xchange.coinbase.dto.CoinbasePagedResult; import org.knowm.xchange.coinbase.dto.account.CoinbaseUser.CoinbaseUserInfo; import org.knowm.xchange.coinbase.dto.marketdata.CoinbaseMoney; import com.fasterxml.jackson.annotation.JsonPr...
gaborkolozsy/XChange
xchange-coinbase/src/main/java/org/knowm/xchange/coinbase/dto/account/CoinbaseAccountChanges.java
Java
mit
1,567
/* Native-dependent code for GNU/Linux SPARC. Copyright (C) 2005-2017 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 Free Software Foundation; either v...
totalspectrum/binutils-propeller
gdb/sparc-linux-nat.c
C
gpl-2.0
2,043
/* * * 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...
ravihansa3000/stratos
components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/context/AutoscalerContext.java
Java
apache-2.0
10,549
// 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/profiles/profile.h" #include "chrome/browser/ui/browser.h" #include "chrome/browser/ui/tabs/tab_strip_model.h" #include "chrome/b...
danakj/chromium
chrome/browser/ui/webui/password_manager_internals/password_manager_internals_ui_browsertest.cc
C++
bsd-3-clause
7,736
/* Yacc library main function. Copyright (C) 2002 Free Software Foundation, Inc. This file is part of Bison, the GNU Compiler Compiler. 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...
sgraham/nope
third_party/bison/src/bison/2.4.1/bison-2.4.1-src/lib/main.c
C
bsd-3-clause
1,013
/* * Copyright 2016 Red Hat, Inc. and/or its affiliates * and other contributors as indicated by the @author tags. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apach...
mbaluch/keycloak
adapters/saml/core/src/main/java/org/keycloak/adapters/saml/descriptor/parsers/SamlDescriptorIDPKeysExtractor.java
Java
apache-2.0
4,225
/* * * 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...
throughsky/lywebank
hbase-server/src/test/java/org/apache/hadoop/hbase/TestNamespace.java
Java
apache-2.0
15,851
// Copyright 2000-2018 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 org.jetbrains.plugins.groovy.config; import com.intellij.openapi.roots.libraries.LibraryProperties; import com.intellij.openapi.util.Comparing; import org.jetbrains.annot...
goodwinnk/intellij-community
plugins/groovy/src/org/jetbrains/plugins/groovy/config/GroovyLibraryProperties.java
Java
apache-2.0
1,121
/** * Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies * * Please see distribution for license. */ package com.opengamma.analytics.math.statistics.distribution; import static org.testng.AssertJUnit.assertEquals; import org.testng.annotations.Test; import cern.jet.random.engine...
McLeodMoores/starling
projects/analytics/src/test/java/com/opengamma/analytics/math/statistics/distribution/StudentTOneTailedCriticalValueCalculatorTest.java
Java
apache-2.0
1,850
/** * 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...
winningsix/hive
ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDFOPNegative.java
Java
apache-2.0
3,338
/* mediastreamer2 library - modular sound and video processing and streaming Copyright (C) 2011 Belledonne Communications SARL. Author: Simon Morlat (simon.morlat@linphone.org) 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...
samueljero/linphone-mediastreamer2
tools/tones.c
C
gpl-2.0
3,476
/** * This file is part of Graylog. * * Graylog 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. * * Graylog is distributed in t...
berkeleydave/graylog2-server
graylog2-server/src/main/java/org/graylog2/streams/StreamService.java
Java
gpl-3.0
2,573
/* * 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.autoscaling.rest; import org.elas...
GlenRSmith/elasticsearch
x-pack/plugin/autoscaling/src/main/java/org/elasticsearch/xpack/autoscaling/rest/RestPutAutoscalingPolicyHandler.java
Java
apache-2.0
1,583
// Shortcut implements logic for getting a machine by it's "shortcut" name, // ie a partial machine name (o for orange, etc). package shortcut import ( "errors" "koding/klientctl/list" ) var ErrMachineNotFound = errors.New("Machine not found.") type Klient interface { RemoteList() (list.KiteInfos, error) } // Ma...
drewsetski/koding
go/src/koding/klientctl/shortcut/machinename.go
GO
apache-2.0
1,045
/* * Copyright 2017 Red Hat, Inc. and/or 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 app...
jomarko/kie-wb-common
kie-wb-common-forms/kie-wb-common-forms-editor/kie-wb-common-forms-editor-client/src/main/java/org/kie/workbench/common/forms/editor/client/resources/i18n/FormEditorConstants.java
Java
apache-2.0
6,245
/* * 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 ...
pjain1/druid
extensions-core/s3-extensions/src/main/java/org/apache/druid/data/input/s3/S3Entity.java
Java
apache-2.0
2,672
/* * 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
platform/vcs-impl/src/com/intellij/openapi/vcs/actions/CommonCheckinProjectAction.java
Java
apache-2.0
2,867
/* * Copyright (c) 2014 Cisco Systems, Inc. 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 distribution, * and is available at http://www.eclipse.org/legal/epl-v10.html */ package org....
mandeepdhami/controller
opendaylight/md-sal/sal-dom-broker/src/main/java/org/opendaylight/controller/md/sal/dom/broker/impl/AbstractDOMDataBroker.java
Java
epl-1.0
5,325
package packets import ( "bytes" "fmt" "io" ) //ConnackPacket is an internal representation of the fields of the //Connack MQTT packet type ConnackPacket struct { FixedHeader TopicNameCompression byte ReturnCode byte } func (ca *ConnackPacket) String() string { str := fmt.Sprintf("%s\n", ca.FixedHea...
schollz/find
vendor/github.com/schollz/org.eclipse.paho.mqtt.golang/packets/connack.go
GO
agpl-3.0
1,083
/* 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, ...
EnMasseProject/enmasse
vendor/sigs.k8s.io/controller-runtime/pkg/internal/log/log.go
GO
apache-2.0
967
package agent import ( "net/http" "strings" "github.com/hashicorp/nomad/nomad/structs" "github.com/hashicorp/raft" ) func (s *HTTPServer) OperatorRequest(resp http.ResponseWriter, req *http.Request) (interface{}, error) { path := strings.TrimPrefix(req.URL.Path, "/v1/operator/raft/") switch { case strings.Has...
chentex/maya
vendor/github.com/hashicorp/nomad/command/agent/operator_endpoint.go
GO
apache-2.0
2,028
/* * 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/java-exec/src/main/java/org/apache/drill/exec/physical/impl/aggregate/SpilledRecordBatch.java
Java
apache-2.0
6,564
//* 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...
harterj/moose
framework/src/actions/AddRelationshipManager.C
C++
lgpl-2.1
2,211
/* This file is part of Clementine. Copyright 2010, David Sansome <me@davidsansome.com> Clementine 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 optio...
admiral0/clementine
src/internet/lastfmurlhandler.cpp
C++
gpl-3.0
1,625
/* * 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 ...
samiunn/incubator-tinkerpop
gremlin-driver/src/main/java/org/apache/tinkerpop/gremlin/driver/simple/AbstractClient.java
Java
apache-2.0
3,881
package cz.metacentrum.perun.cabinet.bl; import cz.metacentrum.perun.core.api.exceptions.PerunException; /** * Basic exception thrown by Cabinet module. Reasons for throwing are * specified by ErrorCodes and usually by text message. * It extends PerunException to be handled same way as rest of exceptions in Perun....
jirmauritz/perun
perun-cabinet/src/main/java/cz/metacentrum/perun/cabinet/bl/CabinetException.java
Java
bsd-2-clause
1,391
/* * 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 ...
siosio/intellij-community
plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/codeInspection/validity/GroovyUnreachableStatementInspection.java
Java
apache-2.0
2,424
from __future__ import print_function from bokeh.util.browser import view from bokeh.document import Document from bokeh.embed import file_html from bokeh.resources import INLINE from bokeh.plotting import output_file from bokeh.models import Plot from bokeh.models import Range1d from bokeh.models import WheelZoomTo...
ptitjano/bokeh
examples/models/tile_source.py
Python
bsd-3-clause
1,316
/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ // vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4: #ident "$Id$" /* COPYING CONDITIONS NOTICE: This program is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by th...
ottok/mariadb-galera-10.0
storage/tokudb/ft-index/src/tests/test_db_env_set_errpfx.cc
C++
gpl-2.0
4,641
/* * Copyright 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in w...
mehdikwa/google-gin
test/com/google/gwt/inject/generated/rebind/FrameworkGenerator.java
Java
apache-2.0
4,858
// Copyright 2000-2018 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.python.refactoring.unwrap; import com.intellij.psi.PsiElement; import com.intellij.psi.util.PsiTreeUtil; import com.intellij.util.IncorrectOperationExceptio...
siosio/intellij-community
python/src/com/jetbrains/python/refactoring/unwrap/PyIfUnwrapper.java
Java
apache-2.0
1,801
#include "php_event.h" wxDEFINE_EVENT(wxEVT_PHP_FILE_RENAMED, PHPEvent); wxDEFINE_EVENT(wxEVT_PHP_FILES_REMOVED, PHPEvent); wxDEFINE_EVENT(wxEVT_PHP_FILES_ADDED, PHPEvent); wxDEFINE_EVENT(wxEVT_PHP_WORKSPACE_RENAMED, PHPEvent); wxDEFINE_EVENT(wxEVT_PHP_LOAD_URL, PHPEvent); wxDEFINE_EVENT(wxEVT_PHP_STACK_TRACE_ITEM_ACT...
StefanoBelloni/codelite
codelitephp/PHPParser/php_event.cpp
C++
gpl-2.0
1,345
package hcn import "encoding/json" // EndpointPolicyType are the potential Policies that apply to Endpoints. type EndpointPolicyType string // EndpointPolicyType const const ( PortMapping EndpointPolicyType = "PortMapping" ACL EndpointPolicyType = "ACL" QOS EndpointPolicyType = "QOS" L2Driv...
enisoc/kubernetes
vendor/github.com/Microsoft/hcsshim/hcn/hcnpolicy.go
GO
apache-2.0
7,209
/* 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, ...
wlan0/kubernetes
pkg/registry/rbac/clusterrole/storage/storage.go
GO
apache-2.0
1,834
// +build linux /* 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 app...
BugRoger/kubernetes
pkg/kubelet/network/exec/exec_test.go
GO
apache-2.0
10,475
/* 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, ...
coreydaley/origin
vendor/k8s.io/kubernetes/test/e2e/storage/vsphere/vsphere_utils.go
GO
apache-2.0
31,016
/* * Copyright 2010-2015 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 "l...
galaxynut/aws-sdk-java
aws-java-sdk-simpleworkflow/src/main/java/com/amazonaws/services/simpleworkflow/model/transform/DescribeDomainRequestMarshaller.java
Java
apache-2.0
3,101
/* * Copyright 2000-2011 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...
MichaelNedzelsky/intellij-community
java/idea-ui/src/com/intellij/ide/projectView/actions/CreateLibraryFromFilesDialog.java
Java
apache-2.0
6,603
package edu.stanford.nlp.ie.machinereading.domains.roth; import java.util.HashMap; import java.util.Map; import edu.stanford.nlp.ie.machinereading.BasicEntityExtractor; import edu.stanford.nlp.ie.machinereading.structure.EntityMentionFactory; public class RothEntityExtractor extends BasicEntityExtractor { private ...
kornev/CoreNLP
src/edu/stanford/nlp/ie/machinereading/domains/roth/RothEntityExtractor.java
Java
gpl-2.0
1,142
package edu.stanford.nlp.parser.common; import java.io.PrintWriter; import java.util.List; import edu.stanford.nlp.ling.HasWord; import edu.stanford.nlp.parser.KBestViterbiParser; import edu.stanford.nlp.trees.Tree; import edu.stanford.nlp.util.ScoredObject; public interface ParserQuery { boolean parse(List<? exte...
poojits/CoreNLP
src/edu/stanford/nlp/parser/common/ParserQuery.java
Java
gpl-2.0
1,647
/* * 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...
MichaelNedzelsky/intellij-community
plugins/ant/src/com/intellij/lang/ant/AntSupport.java
Java
apache-2.0
4,213
/* * 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...
jekey/presto
presto-main/src/main/java/com/facebook/presto/execution/QueryExecution.java
Java
apache-2.0
1,788
/* * 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...
caot/intellij-community
java/java-impl/src/com/intellij/codeInsight/template/macro/AnnotatedMacro.java
Java
apache-2.0
4,333
/* 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, ...
jnewland/kops
vendor/k8s.io/kubernetes/pkg/registry/certificates/certificates/strategy.go
GO
apache-2.0
6,717
package com.intellij.openapi.externalSystem.model.task; import com.intellij.openapi.externalSystem.model.ProjectSystemId; import com.intellij.openapi.project.Project; import com.intellij.openapi.project.ProjectManager; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; import java.io...
asedunov/intellij-community
platform/external-system-api/src/com/intellij/openapi/externalSystem/model/task/ExternalSystemTaskId.java
Java
apache-2.0
3,094
/* 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, ...
mahak/origin
vendor/k8s.io/kubernetes/test/e2e/framework/psp.go
GO
apache-2.0
7,017
/* 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...
yghannam/kubernetes
plugin/pkg/admission/initialresources/hawkular.go
GO
apache-2.0
1,037
/* * Copyright (c) 2014 TRUSTONIC LIMITED * All Rights Reserved. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * version 2 as published by the Free Software Foundation. * * This program is distributed in the hope that it will be u...
myjang0507/updatesource
drivers/gud/TlcTui/trustedui.c
C
gpl-2.0
2,784
/* Copyright 2014 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, ...
cu12/minikube
vendor/k8s.io/kubernetes/plugin/pkg/admission/securitycontext/scdeny/admission.go
GO
apache-2.0
3,410
package groups import ( "github.com/gophercloud/gophercloud" "github.com/gophercloud/gophercloud/openstack/networking/v2/extensions/security/rules" "github.com/gophercloud/gophercloud/pagination" ) // SecGroup represents a container for security group rules. type SecGroup struct { // The UUID for the security gro...
stardog-union/stardog-graviton
vendor/github.com/hashicorp/terraform/vendor/github.com/gophercloud/gophercloud/openstack/networking/v2/extensions/security/groups/results.go
GO
apache-2.0
2,682
/* 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, ...
kgrygiel/autoscaler
vertical-pod-autoscaler/vendor/k8s.io/kubernetes/plugin/pkg/admission/imagepolicy/config.go
GO
apache-2.0
3,214
package be.raildelays.batch.test; import be.raildelays.domain.Sens; import be.raildelays.domain.xls.ExcelRow; import org.springframework.batch.item.ExecutionContext; import org.springframework.batch.item.resource.ResourceContext; import org.springframework.batch.item.support.AbstractItemStreamItemReader; import org.sp...
almex/Raildelays
batch/src/it/java/be/raildelays/batch/test/DummyItemStreamReader.java
Java
mit
1,568
/* * JasperReports - Free Java Reporting Library. * Copyright (C) 2001 - 2014 TIBCO Software Inc. All rights reserved. * http://www.jaspersoft.com * * Unless you have purchased a commercial license agreement from Jaspersoft, * the following license terms apply: * * This program is part of JasperReports. * * J...
juniormesquitadandao/report4all
lib/src/net/sf/jasperreports/engine/analytics/dataset/DesignDataMeasure.java
Java
mit
3,800
import {BaseIfc} from "./BaseIfc" import {IfcGloballyUniqueId} from "./IfcGloballyUniqueId.g" import {IfcOwnerHistory} from "./IfcOwnerHistory.g" import {IfcLabel} from "./IfcLabel.g" import {IfcText} from "./IfcText.g" import {IfcRelAssigns} from "./IfcRelAssigns.g" import {IfcRelNests} from "./IfcRelNests.g" import ...
ikeough/IFC-gen
lang/typescript/src/IfcValveType.g.ts
TypeScript
mit
1,931
package client import ( "github.com/NebulousLabs/Sia/node/api" "github.com/NebulousLabs/Sia/types" ) // HostDbGet requests the /hostdb endpoint's resources. func (c *Client) HostDbGet() (hdg api.HostdbGet, err error) { err = c.get("/hostdb", &hdg) return } // HostDbActiveGet requests the /hostdb/active endpoint'...
NebulousLabs/Sia
node/api/client/hostdb.go
GO
mit
861
/* * Copyright (c) 2012. HappyDroids LLC, All rights reserved. */ package com.happydroids.droidtowers.events; import com.happydroids.droidtowers.entities.GridObject; import com.happydroids.droidtowers.math.GridPoint; public class GridObjectBoundsChangeEvent extends GridObjectEvent { protected GridPoint prevSize; ...
frigidplanet/droidtowers
src/com/happydroids/droidtowers/events/GridObjectBoundsChangeEvent.java
Java
mit
1,188
package mk.petrovski.weathergurumvp.ui.base; import android.support.annotation.NonNull; import javax.inject.Inject; import mk.petrovski.weathergurumvp.data.DataManager; import mk.petrovski.weathergurumvp.data.remote.helper.CompositeDisposableHelper; /** * Base class that implements the Presenter interface and provid...
nikacotAndroid/Weather-Guru-MVP
app/src/main/java/mk/petrovski/weathergurumvp/ui/base/BasePresenter.java
Java
mit
1,934
package engine.flink.core; import java.util.Properties; import org.apache.flink.api.java.tuple.Tuple2; import org.apache.flink.streaming.api.functions.sink.SinkFunction; import kafka.javaapi.producer.Producer; import kafka.producer.KeyedMessage; import kafka.producer.ProducerConfig; public class SendData...
FutureApp/stream-processing
a_programming/quickstart/src/main/java/engine/flink/core/SendDataToKafkaResultTopic.java
Java
mit
1,225
/** * SimplePanel.java Copyright (c) 2014 Robert R. Russell */ package com.rrbrussell.enigma_gui_swing.M3; import java.awt.BorderLayout; import java.util.Properties; import javax.swing.BoxLayout; import javax.swing.JButton; import javax.swing.JPanel; import com.rrbrussell.enigma_demonstration.M3Machine; /** * @a...
rrbrussell/enigma_gui_swing
src/com/rrbrussell/enigma_gui_swing/M3/SimplePanel.java
Java
mit
1,235
package coordinates import "math" // EarthRadius is the radium of the earth in meters const EarthRadius = 6371e3 // Point represents a point on earth type Point struct { Latitude float64 `json:"lat"` Longitude float64 `json:"lon"` } // ToRadians converts a number in degrees to radians func ToRadians(f float64) f...
sakisds/go-srtm
coordinates/coordinates.go
GO
mit
1,396
package services; import java.util.Calendar; import java.util.Collection; import java.util.Date; import javax.transaction.Transactional; import javax.validation.ConstraintViolationException; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import ...
Shipmee/Shipmee
src/test/java/services/ShipmentOfferTest.java
Java
mit
17,166
package io.sc.controller; import io.sc.utils.R; import io.sc.utils.ShiroUtils; import java.awt.image.BufferedImage; import java.io.IOException; import javax.imageio.ImageIO; import javax.servlet.ServletException; import javax.servlet.ServletOutputStream; import javax.servlet.http.HttpServletResponse; import org.apa...
toblackmagic/github-test
sc-shiro/src/main/java/io/sc/controller/SysLoginController.java
Java
mit
2,987
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
eamodio/vscode
src/vs/workbench/services/themes/electron-sandbox/nativeHostColorSchemeService.ts
TypeScript
mit
3,044
/* * Copyright (c) 2014, Tom Greasley <tom@greasley.com> * * 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...
schlafsack/heimdall
src/main/java/com/greasley/heimdall/HeimdallMediator.java
Java
mit
5,447
/* * Copyright (c) Jan 11, 2017 Systematic Testing Ltd. (www.systematictesting.com) to Present.. * All rights reserved. */ package com.systematictesting.automation.core.keywords.impl; import java.util.Map; import org.apache.commons.lang3.StringUtils; import com.systematictesting.automation.core.constants.Result;...
SystematicTesting/QDOS
st-qdos-core/src/main/java/com/systematictesting/automation/core/keywords/impl/Timeout.java
Java
mit
1,070
package org.libreoffice.example.helper; import java.io.File; import java.net.MalformedURLException; import java.net.URISyntaxException; import java.net.URL; import com.sun.star.deployment.PackageInformationProvider; import com.sun.star.deployment.XPackageInformationProvider; import com.sun.star.uno.Exception; import ...
smehrbrodt/libreoffice-starter-extension
source/org/libreoffice/example/helper/FileHelper.java
Java
mit
1,910
'use strict'; const Decimal = require('decimal.js'); console.log('Basic decimal arithmetic'); console.log(0.1 + 0.2); // 0.30000000000000004 console.log('\nInteger to decimal arithmetic'); const result = ((0.1 * 10) + (0.2 * 10)) / 10; console.log(result); // 0.3 console.log('\nIncorrect Compound Interest Calculatio...
Jacob-Friesen/obscurejs
2019/decimalOperations.js
JavaScript
mit
1,083
/** * */ package kodkod.test.pardinus.temporal; import static kodkod.test.util.Reflection.bounds; import static kodkod.test.util.Reflection.checks; import static kodkod.test.util.Reflection.instance; import static kodkod.test.util.Reflection.invokeAll; import static kodkod.test.util.Reflection.strategy; import stat...
nmacedo/Pardinus
src/test/java/kodkod/test/pardinus/temporal/UCoreTest.java
Java
mit
4,539
/****************************************************************************** * Spine Runtime Software License - Version 1.1 * * Copyright (c) 2013, Esoteric Software * All rights reserved. * * Redistribution and use in source and binary forms in whole or in part, with * or without modification, are permitte...
trungnt13/fasta-game
TNTEngine/src/com/esotericsoftware/spine/SkeletonRenderer.java
Java
mit
7,067
/* * GeneralHoughTransform.hpp * * Created on: 14 févr. 2014 * Author: jguillon */ #ifndef GENERALHOUGHTRANSFORM_HPP_ #define GENERALHOUGHTRANSFORM_HPP_ struct GHTPoint { double phi; double s; cv::Point y; double hits; }; class GeneralHoughTransform { protected: std::vector< std::vector<cv::Vec2f> >...
jguillon/generalized-hough-tranform
src/GeneralHoughTransform.hpp
C++
mit
1,428
/* * Copyright (C) 2011 Paul Burke * * 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 o...
Anoril/aFileChooser
src/com/ipaulpro/afilechooser/FileListAdapter.java
Java
mit
3,509
/** * Created by Papa on 10/15/2016. */ export interface ManyToOneStubReference { mtoEntityName: string; mtoParentObject: any; mtoRelationField: string; otmEntityField: string; otmEntityId: string | number; otmEntityName: string; } // For MtO mapping in bridged queries export class BridgedMtoMapper { // Map ...
russoturisto/QueryDSL-TypeScript
src/query/sql/query/result/entity/BridgedMtoMapper.ts
TypeScript
mit
2,023
package net.deviceone; import org.eclipse.jetty.server.Server; import org.eclipse.jetty.servlet.ServletContextHandler; import org.eclipse.jetty.servlet.ServletHolder; public class HttpService { public static void main(String[] args) throws Exception { Server server = new Server(8080); ServletContextHandler con...
do-project/code4do
HttpService/src/net/deviceone/HttpService.java
Java
mit
1,073
package com.xeiam.xchange.bitstamp.service.polling; import java.io.IOException; import com.xeiam.xchange.Exchange; import com.xeiam.xchange.bitstamp.Bitstamp; import com.xeiam.xchange.bitstamp.dto.marketdata.BitstampOrderBook; import com.xeiam.xchange.bitstamp.dto.marketdata.BitstampTicker; import com.xeiam.xchange.b...
joansmith/XChange
xchange-bitstamp/src/main/java/com/xeiam/xchange/bitstamp/service/polling/BitstampMarketDataServiceRaw.java
Java
mit
1,728
package com.dubaidrums.jems.service.impl; import java.util.Date; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import com.dubaidrums.jems.domain.JemsEvent; import co...
josephgvariam/jems
jems/src/main/java/com/dubaidrums/jems/service/impl/JemsQuotationServiceImpl.java
Java
mit
3,587
""" Django settings for annual_client_report project. For more information on this file, see https://docs.djangoproject.com/en/1.6/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.6/ref/settings/ """ # Build paths inside the project like this: os.path.join(BASE...
annual-client-report/Annual-Report
annual_client_report/settings.py
Python
mit
2,267
var meteorBabel = Npm.require('meteor-babel'); function validateExtraFeatures(extraFeatures) { if (extraFeatures) { check(extraFeatures, { // Modify options to enable React/JSX syntax. react: Match.Optional(Boolean), // Improve compatibility in older versions of Internet Explorer. jscript...
AnthonyAstige/meteor
packages/babel-compiler/babel.js
JavaScript
mit
1,210
package com.makofeng.nameless.widget; import android.content.Context; import android.util.AttributeSet; import android.widget.ImageView; public class SquareImageView extends ImageView { public SquareImageView(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); } public SquareIm...
MakoFeng/Nameless
app/src/main/java/com/makofeng/nameless/widget/SquareImageView.java
Java
mit
1,303
package com.nrg.kelly.config.actors; /** * Created by Andrew on 16/07/2015. */ public class EnemyBossConfig extends EnemyConfig { private int armourSpawnInterval; private int gunSpawnInterval; private PositionConfig endOfLevelPosition; private float endOfLevelVelocityX; private float endOfLevel...
nashrockgames/kelly
core/src/com/nrg/kelly/config/actors/EnemyBossConfig.java
Java
mit
1,409
#include <wrapper/Plugin.hpp> #include "Unwrapper.hpp" #include "Decoder.hpp" #include "Encoder.hpp" MediaioStatus ffmpegUnwrapperCreateInstance(void** handle) { Unwrapper* instance = new Unwrapper(); *handle = instance; return kMediaioStatusOK; } MediaioStatus ffmpegUnwrapperDeleteInstance(void** handle) { del...
media-io/plugins
src/plugin/ffmpeg/Ffmpeg.cpp
C++
mit
4,879
#pragma once #ifndef KENGINE_ANIMATION_FILE_PATH_LENGTH # define KENGINE_ANIMATION_FILE_PATH_LENGTH 128 #endif #include <string> #include <vector> #include "reflection.hpp" namespace kengine { struct AnimationComponent { unsigned int currentAnim = 0; // Index into AnimListComponent.anims float currentTime = 0.f...
phiste/kengine
components/data/AnimationComponent.hpp
C++
mit
1,468