id
stringlengths
64
64
content
stringlengths
500
100k
language
stringclasses
29 values
path
stringlengths
4
333
repo
stringlengths
5
116
license
stringclasses
15 values
size
int64
500
100k
lines
int64
26
8.06k
source
stringclasses
1 value
f6a607e570cb20e431f2cdc193b1402a14629bee9147d471362c9a392fc58343
/* base class for all resample operations * * properties: * - one in, one out * - not point-to-point * - size can change in any way * - bands, type, format etc. all fixed */ /* Copyright (C) 1991-2005 The National Gallery This library is free software; you can redistribute it and/or modify it ...
C
libvips/resample/resample.c
leiyangyou/libvips
lgpl-2.1
3,128
127
codeparrot/github-code
7c8f69a9a7622f4e5542ac4fb75e1856506e45a2be3520dedaefa8beda6f8666
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield * * This library is open source and may be redistributed and/or modified under * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or * (at your option) any later version. The full license is in LICENSE file * included with this...
C++
src/osgShadow/ShadowTechnique.cpp
stmh/osg
lgpl-2.1
2,966
108
codeparrot/github-code
a9ccfdb801bb6e0dfbd8a736df679211dc839d74ce2dc84bde686da949f79928
// Copyright (c)2008-2011, Preferred Infrastructure 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 the above copyright // ...
C
jubatus/util/lang/weak_ptr.h
gintenlabo/jubatus_core
lgpl-2.1
2,723
89
codeparrot/github-code
2624ff27b86b1935bc95f7cdd1ad92540eb4df3856f248f1fd19e9e790acbd17
/* * This library is part of OpenCms - * the Open Source Content Management System * * Copyright (c) Alkacon Software GmbH (http://www.alkacon.com) * * 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 the Free So...
Java
src/org/opencms/synchronize/Messages.java
it-tavis/opencms-core
lgpl-2.1
6,225
160
codeparrot/github-code
849b9522dbdb974a563c8358b81aaa1b9a97af213bafd7fe014bd7de049c38d9
// Copyright 2008-2016 Conrad Sanderson (http://conradsanderson.id.au) // Copyright 2008-2016 National ICT Australia (NICTA) // // 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...
C++
libs/armadillo/include/armadillo_bits/def_blas.hpp
numediart/MotionMachine
lgpl-2.1
10,257
149
codeparrot/github-code
4fa9e72f18e29b57891a8dc32a96530fd6d44392fee7bd4eb1011d3095ef0d77
// The libMesh Finite Element Library. // Copyright (C) 2002-2015 Benjamin S. Kirk, John W. Peterson, Roy H. Stogner // 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 the Free Software Foundation; either // version ...
C++
src/fe/fe_monomial_shape_0D.C
cahaynes/libmesh
lgpl-2.1
2,885
107
codeparrot/github-code
bfae48bd2dc92b6fdced4161f53f780dfad0769bc98bc676d38d71e5f1520ac2
/* * eXist Open Source Native XML Database * Copyright (C) 2001-2015 The eXist Project * * http://exist-db.org * * This program 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 2 ...
Java
exist-core/src/main/java/org/exist/storage/dom/CreatePageLoggable.java
windauer/exist
lgpl-2.1
2,956
94
codeparrot/github-code
818c10b6effa1da44ca399488c19a1f8f56a9b0ed36dbd8172014f00743990ac
/* * Copyright (C) the libgit2 contributors. All rights reserved. * * This file is part of libgit2, distributed under the GNU GPL v2 with * a Linking Exception. For full terms see the included COPYING file. */ #include "refs.h" #include "hash.h" #include "repository.h" #include "fileops.h" #include "filebuf.h" #i...
C
src/refs.c
jeffhostetler/public_libgit2
lgpl-2.1
28,578
1,300
codeparrot/github-code
5582180188b12d8666ddb2e1b4e009087c921584205d5529b102e0e7b345a871
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>is_valid (with message and strategy)</title> <link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css"> <meta name="generator" content="DocBook XSL Stylesheets V1.79.1"> <link rel="home" href="../....
HTML
cpp_component/3rdparty/boost/libs/geometry/doc/html/geometry/reference/algorithms/is_valid/is_valid_3_with_message_and_strategy.html
qianqians/abelkhan
lgpl-2.1
21,172
410
codeparrot/github-code
5249aa7ce02fbcf00fe04fc951ca9d8476ddefd310a07ec98e1708b2a9214053
// // AnalysisDecoder.cs // // Authors: // Alexander Chebaturkin (chebaturkin@gmail.com) // // Copyright (C) 2011 Alexander Chebaturkin // // 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 Softw...
C#
class/Mono.CodeContracts/Mono.CodeContracts.Static.Analysis.HeapAnalysis/AnalysisDecoder.cs
edwinspire/VSharp
lgpl-3.0
45,578
1,263
codeparrot/github-code
ba570a9a4b267ed97366d9d068ff7e2043cb7e86161589ef8eea0153531bd235
package co.paralleluniverse.galaxy.netty; import org.jboss.netty.util.ThreadNameDeterminer; import java.util.concurrent.ThreadPoolExecutor; /** * Some constants used for configuring netty thread pools. * * @author s.stupin */ public class NettyUtils { /** * Copy of {@link org.jboss.netty.channel.socket....
Java
src/main/java/co/paralleluniverse/galaxy/netty/NettyUtils.java
hsestupin/galaxy
lgpl-3.0
1,092
33
codeparrot/github-code
8b248ce962bedd4dbb8971885af96c560198e81e646ef0b3dac5c5ebbe552759
/* * @BEGIN LICENSE * * Psi4: an open-source quantum chemistry software package * * Copyright (c) 2007-2019 The Psi4 Developers. * * The copyrights for code used from other parties are included in * the corresponding files. * * This file is part of Psi4. * * Psi4 is free software; you can redistribute it an...
C
psi4/src/psi4/dfocc/arrays.h
CDSherrill/psi4
lgpl-3.0
15,562
395
codeparrot/github-code
520c22abe5d6f282f2a5488d011c86fdf1c5557657e36d5855f1ea417674fbba
/* -*-c++-*- */ /* osgEarth - Dynamic map generation toolkit for OpenSceneGraph * Copyright 2008-2014 Pelican Mapping * http://osgearth.org * * osgEarth 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...
C++
src/osgEarthUtil/Ocean.cpp
Riorlan/osgearth
lgpl-3.0
5,655
197
codeparrot/github-code
74963c78c23acf844007f260adf21af3fb31092a0868ab027df7e9a4c84ec43e
package fr.unice.polytech.isa.tcf.asynchronous; import fr.unice.polytech.isa.tcf.entities.Order; import org.apache.openejb.util.LogCategory; import javax.annotation.Resource; import javax.ejb.ActivationConfigProperty; import javax.ejb.MessageDriven; import javax.ejb.MessageDrivenContext; import javax.jms.*; import ja...
Java
j2e/src/main/java/fr/unice/polytech/isa/tcf/asynchronous/KitchenPrinter.java
polytechnice-si/4A_ISA_TheCookieFactory
lgpl-3.0
2,968
93
codeparrot/github-code
31db944beaf425c4afe8e4469c58b2b3f617502c53b13e3011229b63cba7a06d
// // Mono.Security.Protocol.Ntlm.MessageBase // abstract class for all NTLM messages // // Author: // Sebastien Pouliot <sebastien@ximian.com> // Atsushi Enomoto <atsushi@ximian.com> // // Copyright (C) 2003 Motus Technologies Inc. (http://www.motus.com) // Copyright (C) 2004, 2007 Novell, Inc (http://www.novell.com)...
C#
class/System.ServiceModel/Mono.Security.Protocol.Ntlm/MessageBase.cs
edwinspire/VSharp
lgpl-3.0
4,136
141
codeparrot/github-code
92833a88c01138e6191779d477fa8bdbda30da7d92324acd2e02cb1c8d4c94f7
#include <canopen_master/canopen.h> using namespace canopen; #pragma pack(push) /* push current alignment to stack */ #pragma pack(1) /* set alignment to 1 byte boundary */ struct EMCYid{ uint32_t id:29; uint32_t extended:1; uint32_t :1; uint32_t invalid:1; EMCYid(uint32_t val){ *(uint32_...
C++
canopen_master/src/emcy.cpp
mistoll/ros_canopen
lgpl-3.0
3,207
112
codeparrot/github-code
93c79e1f02d9319bb27d80c87adb9875008d7d776ac10677695c112369c1a922
/* * @BEGIN LICENSE * * Psi4: an open-source quantum chemistry software package * * Copyright (c) 2007-2019 The Psi4 Developers. * * The copyrights for code used from other parties are included in * the corresponding files. * * This file is part of Psi4. * * Psi4 is free software; you can redistribute it an...
C
psi4/src/psi4/mcscf/scf.h
CDSherrill/psi4
lgpl-3.0
7,816
221
codeparrot/github-code
06a7768cd8f23978b01f37e84e2b73990897a9fbf525d49064c48e43cb38fd49
package org.molgenis.ui.menumanager; import com.google.common.base.Predicate; import com.google.common.collect.Iterables; import com.google.common.collect.Lists; import com.google.common.collect.TreeTraverser; import org.molgenis.data.settings.AppSettings; import org.molgenis.file.FileStore; import org.molgenis.framew...
Java
molgenis-core-ui/src/main/java/org/molgenis/ui/menumanager/MenuManagerController.java
jjettenn/molgenis
lgpl-3.0
5,042
157
codeparrot/github-code
00e8758164cdbd9af5a2ab195978fecbb3a9c4862422ad8d7691e2826442f17e
/* * 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 ...
Java
src/org/apache/pig/impl/PigContext.java
kexianda/pig
apache-2.0
31,304
921
codeparrot/github-code
0b98a6b2720228060c8d0843bc1175b3c0bf1436848a40d98e990d72ef77e87a
/* * Copyright 2009-2012 The MyBatis Team * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requ...
Java
src/test/java/org/apache/ibatis/submitted/manyanno/AnnoPost.java
ekirkilevics/iBatis
apache-2.0
1,371
60
codeparrot/github-code
911564a0278085bdbd60d7394dee2a41cc50565c72c82e2406e477c12333c1df
/* * Copyright (c) 2010-2015 Pivotal Software, 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 req...
Java
gemfirexd/core/src/main/java/com/pivotal/gemfirexd/internal/iapi/jdbc/WrapperEngineBLOB.java
SnappyDataInc/snappy-store
apache-2.0
3,086
135
codeparrot/github-code
a1098bc2af91917d2cd88e0f2b3d630ff101fb003b050635ee62360a093cd070
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include <aws/waf-regional/WAFRegional_EXPORTS.h> #include <aws/core/utils/memory/stl/AWSString.h> #include <utility> namespace Aws { template<typename RESULT_TYPE> class AmazonWebServic...
C
aws-cpp-sdk-waf-regional/include/aws/waf-regional/model/GetChangeTokenResult.h
awslabs/aws-sdk-cpp
apache-2.0
3,025
92
codeparrot/github-code
90c02edb4d0de379764c021b8beccac06314257df1781a5bb64def366bd940f4
/* * Copyright 2012 OSBI Ltd * * 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...
JavaScript
saiku-ui/js/saiku/views/SelectionsModal.js
qixiaobo/saiku-self
apache-2.0
27,022
693
codeparrot/github-code
5ee95095d43525b75630fc0f0508f3a7826c3f838e1ec124d5d7c8ca74da4493
package io.cattle.platform.core.dao.impl; import io.cattle.platform.core.constants.AccountConstants; import io.cattle.platform.core.constants.CommonStatesConstants; import io.cattle.platform.core.constants.CredentialConstants; import io.cattle.platform.core.constants.ProjectConstants; import io.cattle.platform.core.co...
Java
modules/model/src/main/java/io/cattle/platform/core/dao/impl/AccountDaoImpl.java
rancherio/cattle
apache-2.0
4,262
118
codeparrot/github-code
06d6790c190365313fd872d280473bf1f057baf9fa04b64b27d3b451a2367a12
/* * 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 ...
Java
core-metadata/src/main/java/org/apache/kylin/measure/raw/RawSerializer.java
apache/kylin
apache-2.0
3,684
108
codeparrot/github-code
2804d3a6da8f010453502292ab91e5444853dc2fde4ddac8ef0868b5bb8bb1bc
/* * 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 ...
C++
src/test-integration/activemq/test/MapMessageTest.cpp
lleoha/activemq-cpp-debian
apache-2.0
6,967
178
codeparrot/github-code
535a2e1afcd3f9ed184aacda2d396f131adfed90013754e8090aa32525c79db2
package com.alamkanak.weekview.sample; import android.app.Activity; import android.graphics.RectF; import android.os.Bundle; import android.util.TypedValue; import android.view.Menu; import android.view.MenuItem; import android.widget.Toast; import com.alamkanak.weekview.WeekView; import com.alamkanak.weekview.WeekVi...
Java
sample/src/main/java/com/alamkanak/weekview/sample/MainActivity.java
0359xiaodong/Android-Week-View
apache-2.0
10,041
229
codeparrot/github-code
7d2db7a72415132ad900f74c05a7c0ef3dde146de1e52d05b392c274ce3ffd82
using Lucene.Net.Cli.CommandLine; using Lucene.Net.Demo; using System.Collections.Generic; namespace Lucene.Net.Cli { /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional informatio...
C#
src/dotnet/tools/lucene-cli/commands/demo/demo-search-files/DemoSearchFilesCommand.cs
apache/lucenenet
apache-2.0
4,793
128
codeparrot/github-code
415570e2d6117835a473e51d9293793174699faeda8fa9cc3646c6892ff53ba2
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include <aws/mediaconvert/MediaConvert_EXPORTS.h> #include <aws/mediaconvert/model/JobTemplate.h> #include <utility> namespace Aws { template<typename RESULT_TYPE> class AmazonWebServic...
C
aws-cpp-sdk-mediaconvert/include/aws/mediaconvert/model/GetJobTemplateResult.h
aws/aws-sdk-cpp
apache-2.0
2,029
73
codeparrot/github-code
ead06e8667f8b0ddb83736a79b7385d430190d6de648fd901a72ac0c9e47810f
/* * Copyright (C) 2015 Brian Wernick * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
Java
library/src/main/java/com/devbrackets/android/exomedia/DefaultControls.java
daimajia/ExoMedia
apache-2.0
20,361
594
codeparrot/github-code
34583112ea1152e03a76d8d78d32e62b79d15b20317a078235117d2e0f021c6e
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta name="format-detection" content="telephone=no" /> <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height" /> <title>Google Maps Plugin for Cordova</title> ...
HTML
example/Simple/index.html
gdi2290/phonegap-googlemaps-plugin
apache-2.0
15,547
509
codeparrot/github-code
3e2cabf16e80b89b5dd0ddef9cc21b4fbfa4fbff3d1f5473e3c640a40d249bcf
/** * 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...
Java
hedwig-server/src/test/java/org/apache/hedwig/server/subscriptions/StubSubscriptionManager.java
rvenkatesh25/bookkeeper
apache-2.0
2,169
53
codeparrot/github-code
b0a9cc56eeb7c9905dbe8b78d45c9ec91b6b5c8d4e2f9ec89c378b17fbfeb122
/* * M_APM - mapm_gcd.c * * Copyright (C) 2001 - 2007 Michael C. Ring * * Permission to use, copy, and distribute this software and its * documentation for any purpose with or without fee is hereby granted, * provided that the above copyright notice appear in all copies and * that both that copyrigh...
C
src/zorbatypes/mapm/mapm_gcd.c
bgarrels/zorba
apache-2.0
5,530
285
codeparrot/github-code
3979d63d8b671f09f0cf7b15aa1b1f8cd761039e2eebb5e2220060c18fe59cc3
/* * 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...
Java
presto-pinot/src/test/java/io/prestosql/pinot/TestBrokerQueries.java
treasure-data/presto
apache-2.0
6,120
138
codeparrot/github-code
6b5be4191e02c7c62eb2fff79e9c25e203a954ac914525df9dac1a9f834d0d49
/* 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, ...
GO
upup/pkg/fi/cloudup/gcetasks/targetpool.go
aledbf/kops
apache-2.0
3,309
125
codeparrot/github-code
f33702e8f0eef6bd019497addd0f88238d3f935ab06725dd38dc088cee9eeca5
/* * 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...
Java
streams/src/main/java/org/apache/kafka/streams/state/internals/KeyValueToTimestampedKeyValueByteStoreAdapter.java
noslowerdna/kafka
apache-2.0
4,463
131
codeparrot/github-code
22e1f3f1848bb67b4b96ba652f2db30ffe4d0d9fde0d1797e95607e69572f39d
/* * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights * Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "l...
Java
aws-java-sdk-cognitoidp/src/main/java/com/amazonaws/services/cognitoidp/model/transform/AddCustomAttributesResultJsonUnmarshaller.java
flofreud/aws-sdk-java
apache-2.0
1,732
52
codeparrot/github-code
cbaae0fef02d692ccaa23390d5d0e099a144cd82aa8c06d7edab1360a7fa7d36
/** * 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...
Java
hbase-server/src/main/java/org/apache/hadoop/hbase/io/FileLink.java
justintung/hbase
apache-2.0
16,375
495
codeparrot/github-code
fb06df46b7bd92592647cc4c9efb0b48b96ab8fcc9cff247fee8eb1d38c6e531
/* * 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 ...
Java
Lucas/src/test/java/org/apache/uima/lucas/indexer/analysis/LowerCaseFilterFactoryTest.java
jgrivolla/uima-addons
apache-2.0
1,696
50
codeparrot/github-code
0777708d974586fa64053c430dccfcfe672ecf835b1ca6a29369ef471c52dca6
/* * Copyright 2015 JBoss, by Red Hat, 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 ...
Java
uberfire-extensions/uberfire-layout-editor/uberfire-layout-editor-client/src/main/java/org/uberfire/ext/layout/editor/client/api/ModalConfigurationContext.java
karreiro/uberfire
apache-2.0
1,562
40
codeparrot/github-code
a370cb5a86f89e2cef1d141a0781e965acb6e290f2495f03de1da24bc08c3d4c
/** * * Copyright © 2014 Daniele Ricci * * 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...
Java
smack-sasl-provided/src/main/java/org/jivesoftware/smack/sasl/provided/SASLExternalMechanism.java
igniterealtime/Smack
apache-2.0
2,139
84
codeparrot/github-code
a2c0d99b8be96fc79725c8b5b191cafb04448c560819fc08abd1ebf542ec5ffd
/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation. * * 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 ...
C#
ToolBox/AlgoSeekOptionsConverter/AlgoSeekOptionsReader.cs
Mendelone/forex_trading
apache-2.0
11,204
306
codeparrot/github-code
026766284b79066d0feb39155e374cafc054534436d850f71b814e467831817c
package brooklyn.util.internal.ssh; import static brooklyn.util.net.Networking.checkPortValid; import static com.google.common.base.Preconditions.checkArgument; import static com.google.common.base.Preconditions.checkNotNull; import java.io.File; import java.util.Map; import java.util.Set; import brooklyn.util.os.Os...
Java
core/src/main/java/brooklyn/util/internal/ssh/SshAbstractTool.java
azharhashmi/brooklyn
apache-2.0
5,822
155
codeparrot/github-code
47ada9c3bbcc57886f78b242a8f2826ee7b55877831de20c0e156ea6640a6c16
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/ecs/model/UpdateContainerAgentRequest.h> #include <aws/core/utils/json/JsonSerializer.h> #include <utility> using namespace Aws::ECS::Model; using namespace Aws::Utils::Json; using nam...
C++
aws-cpp-sdk-ecs/source/model/UpdateContainerAgentRequest.cpp
awslabs/aws-sdk-cpp
apache-2.0
1,094
51
codeparrot/github-code
fa2e20f64493a0797872bfacfb0b818ea7f4ef961b094138cdf7895fe35e39cf
/* 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...
GO
Godeps/_workspace/src/k8s.io/kubernetes/pkg/kubectl/cmd/util/factory.go
fabianofranz/origin
apache-2.0
41,633
1,072
codeparrot/github-code
b375d7d47584c60a96f98db2bec5d10ae450bcc67fe1b03e3e000f731716642f
package com.thinkbiganalytics.metadata.api.template; /*- * #%L * thinkbig-metadata-api * %% * Copyright (C) 2017 ThinkBig Analytics * %% * 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...
Java
metadata/metadata-api/src/main/java/com/thinkbiganalytics/metadata/api/template/FeedManagerTemplate.java
peter-gergely-horvath/kylo
apache-2.0
2,215
108
codeparrot/github-code
fcddf3d5ff87ef62400e84616caf060c2fe0aec60cc3192097445f233b2015a0
/* * ModeShape (http://www.modeshape.org) * * 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...
Java
modeshape-jcr/src/main/java/org/modeshape/jcr/cache/document/LocalDocumentStore.java
flownclouds/modeshape
apache-2.0
16,085
431
codeparrot/github-code
ca0bdf229ae10c6f098cc3fa8fd386521eb4765eb2580677fc295c2de2c1982b
/* * Copyright 2007 Kasper B. Graversen * * 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...
Java
super-csv-declarative/src/main/java/com/github/dmn1k/supercsv/io/declarative/provider/ConvertCellProcessorProvider.java
dkschlos/super-csv-declarative
apache-2.0
2,162
61
codeparrot/github-code
6206f9f686cad722e47c0e9d60d530da172bea8e3eaaaf6e201cc54218acc0a0
/** * Copyright (C) 2010 the original author or authors. * See the notice.md file distributed with this work for additional * information regarding copyright ownership. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may...
Java
src/test/java/com/beust/jcommander/DefaultValueTest.java
cbeust/jcommander
apache-2.0
3,901
114
codeparrot/github-code
72d75002b7b6b197baddc33f48dacd77621a9b1938996c805b02f1e887f47f62
package net.sansa_stack.inference.spark.forwardchaining.triples import net.sansa_stack.inference.data.Jena import net.sansa_stack.inference.spark.data.model.RDFGraphNative import net.sansa_stack.inference.spark.rules.RuleExecutorNative import org.apache.jena.graph.Triple import org.apache.jena.reasoner.rulesys.Rule im...
Scala
sansa-inference/sansa-inference-spark/src/main/scala/net/sansa_stack/inference/spark/forwardchaining/triples/ForwardRuleReasonerNaive.scala
SANSA-Stack/SANSA-RDF
apache-2.0
2,279
81
codeparrot/github-code
b32c875a326d1a788d7fff964e6a0b6a718a21e6f36e095e0d75967dd51301f7
// Copyright (c) 2012 Ecma International. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- es5id: 15.2.3.6-3-134 description: > Object.defineProperty - 'value' property in 'Attributes' is own accessor property that overrides an inherited data property (8.10...
JavaScript
3rdParty/V8/V8-5.0.71.39/test/test262/data/test/built-ins/Object/defineProperty/15.2.3.6-3-134.js
m0ppers/arangodb
apache-2.0
844
31
codeparrot/github-code
4d40802ad29f4d6cc6eae00dd3c8079f4de0605df575f6474318e8de207889d4
/* * Scala.js (https://www.scala-js.org/) * * Copyright EPFL. * * Licensed under Apache License 2.0 * (https://www.apache.org/licenses/LICENSE-2.0). * * See the NOTICE file distributed with this work for * additional information regarding copyright ownership. */ package java.nio private[nio] object GenBuffe...
Scala
javalib/src/main/scala/java/nio/GenBuffer.scala
scala-js/scala-js
apache-2.0
4,426
184
codeparrot/github-code
88071213e841e3e281bc1d37b5cbb2133968d7056b914cf20a9fdf42a33d92c4
<?php /** * Copyright 2018 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 agr...
PHP
dev/src/Credentials/Command.php
chingor13/google-cloud-php
apache-2.0
2,586
76
codeparrot/github-code
cbb691a56a342aa46ae5f323bfe0bf3333889806d7ad18914a7104c974c04626
#pragma once #include "ItemHandler.h" #include "../World.h" #include "../Entities/Player.h" class cItemShearsHandler final: public cItemHandler { using Super = cItemHandler; public: using Super::Super; virtual bool OnDiggingBlock( cWorld * a_World, cPlayer * a_Player, const cItem & a_HeldItem, ...
C
src/Items/ItemShears.h
mc-server/MCServer
apache-2.0
1,572
99
codeparrot/github-code
7fcb122c6ca3727b8051e94a7b024a31a21b6c93fb188534baa1381527f34966
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/macie2/model/ApiCallDetails.h> #include <aws/core/utils/json/JsonSerializer.h> #include <utility> using namespace Aws::Utils::Json; using namespace Aws::Utils; namespace Aws { namespa...
C++
aws-cpp-sdk-macie2/source/model/ApiCallDetails.cpp
aws/aws-sdk-cpp
apache-2.0
1,919
103
codeparrot/github-code
29e26d06f5c70f901245a8e332f5e70119c4772d0ca1e91e1fea9050d08f1a8f
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compli...
Python
nova/db/sqlalchemy/migration.py
superstack/nova
apache-2.0
3,168
86
codeparrot/github-code
fc24475e4a4418ba871b0d0bf8d20344876a1f88a981ca8e2c6411af44187f63
// Copyright (C) 2012 The Android Open Source Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable ...
Java
gerrit-server/src/main/java/com/google/gerrit/server/plugins/Plugin.java
Saulis/gerrit
apache-2.0
4,497
167
codeparrot/github-code
f79cda50fdd3e21bbeffddc207736fdb3dd035616a46bfe60f26b0cafe4d95b7
/* * Copyright (c) 2015 Juniper Networks, Inc. All rights reserved. */ define([ 'jquery', 'underscore', 'co-test-utils', 'co-test-constants' ], function ($, _, cotu, cotc) { var defaultTestSuiteConfig = { class: '', groups: [], severity: cotc.SEVERITY_LOW }; var c...
JavaScript
webroot/test/ui/js/co.test.runner.js
nagakiran/contrail-web-core
apache-2.0
20,104
509
codeparrot/github-code
42aec513734e5d2b1b1aa05b2aa2c333b770bd5e5c1942c485a81d7143d55ed3
package org.apereo.cas.ticket.support; import org.apereo.cas.ticket.TicketState; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; import lombok.EqualsAndH...
Java
core/cas-server-core-tickets-api/src/main/java/org/apereo/cas/ticket/support/MultiTimeUseOrTimeoutExpirationPolicy.java
robertoschwald/cas
apache-2.0
4,826
136
codeparrot/github-code
66171b4f508d474ca3d4fc3a1d20eb165f122f8672cc166eb92a441f579c404f
/* * Trident - A Multithreaded Server Alternative * Copyright 2014 The TridentSDK Team * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2....
Java
src/main/java/net/tridentsdk/server/packets/play/out/PacketPlayOutUpdateEntityNBT.java
Twister915/Trident
apache-2.0
1,191
43
codeparrot/github-code
0d1e5523edc9fa3107e273e073861b35d987b4690c41183b4e752637329b8c32
/* * 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...
Java
core/src/test/java/org/elasticsearch/rest/BytesRestResponseTests.java
mmaracic/elasticsearch
apache-2.0
8,953
181
codeparrot/github-code
2ba4d92e0e6242fbd07d931c950ad042cf6cd487090db9b9682cdc122bf8db96
/* * Copyright 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
Java
subprojects/internal-performance-testing/src/main/groovy/org/gradle/performance/results/PerformanceScenario.java
gradle/gradle
apache-2.0
2,296
78
codeparrot/github-code
a1535864ccf3dec9c231e9deb0205e035db3f60f0c56d571c999b4cdebec8cb9
/* * Copyright 2021 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...
Java
kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLSimpleSetPredicateFactory.java
manstis/drools
apache-2.0
5,615
98
codeparrot/github-code
c6ae537145d2895b8b2d6fd9dd75307eeed43ddcfee77c55806f6a96c2495501
package org.wso2.siddhi.extension.popularhtag; import java.util.concurrent.atomic.AtomicInteger; import junit.framework.Assert; import org.apache.log4j.Logger; import org.junit.Before; import org.junit.Test; import org.wso2.siddhi.core.ExecutionPlanRuntime; import org.wso2.siddhi.core.SiddhiManager; import org.wso2....
Java
samples/USEAnalyticsSystem/src/election-siddhi-extensions/popularhtag/src/test/java/org/wso2/siddhi/extension/popularhtag/TopKTagsExtensionExtensionTestCase.java
wso2/wso2-marketing-demos
apache-2.0
3,395
75
codeparrot/github-code
445cd35f34fccd8181687643ca755d223cdba5c734c683244c2bf91314209d02
/* * 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...
Java
adapters/saml/core/src/main/java/org/keycloak/adapters/saml/profile/webbrowsersso/SamlEndpoint.java
jean-merelis/keycloak
apache-2.0
2,093
51
codeparrot/github-code
e761c22002967ac8835508eb5d7327884da638d29d781e8624fe54c9c3c70b2d
#include "extensions/tracers/zipkin/tracer.h" #include <chrono> #include "common/common/utility.h" #include "common/tracing/http_tracer_impl.h" #include "extensions/tracers/zipkin/util.h" #include "extensions/tracers/zipkin/zipkin_core_constants.h" namespace Envoy { namespace Extensions { namespace Tracers { namesp...
C++
source/extensions/tracers/zipkin/tracer.cc
istio/envoy
apache-2.0
4,434
138
codeparrot/github-code
6db3fd112d2c85b08c72081d44662efc77ae5c2e6b3c769613e5cf7dc4ee4526
/* * 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 ...
Java
hbase-server/src/test/java/org/apache/hadoop/hbase/quotas/TestSnapshotQuotaObserverChore.java
gustavoanatoly/hbase
apache-2.0
15,981
369
codeparrot/github-code
c40d4fda8fa5daca15b3fa6da93392d5ccc7a1aaf3d396e3631b24d2cf88a0b5
package org.hibernate.examples.mapping.usertype; import lombok.Getter; import lombok.Setter; import org.hibernate.annotations.*; import org.hibernate.examples.model.AbstractHibernateEntity; import org.hibernate.examples.utils.HashTool; import org.hibernate.examples.utils.ToStringHelper; import org.joda.time.DateTime; ...
Java
hibernate-examples/src/test/java/org/hibernate/examples/mapping/usertype/JodaDateTimeTZEntity.java
milcom/hibernate-redis
apache-2.0
1,708
60
codeparrot/github-code
d60fa6ca5649d7b484fa3a453417e50ddec85d03bb43a239eca18517f5421531
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/ec2/model/ReplaceTransitGatewayRouteResponse.h> #include <aws/core/utils/xml/XmlSerializer.h> #include <aws/core/AmazonWebServiceResult.h> #include <aws/core/utils/StringUtils.h> #includ...
C++
aws-cpp-sdk-ec2/source/model/ReplaceTransitGatewayRouteResponse.cpp
jt70471/aws-sdk-cpp
apache-2.0
1,765
58
codeparrot/github-code
c75809daea7f9c280545747ea1167d20440eee2fcbca81df36cf3b3fd8fc8ac8
/* Copyright 2006 - 2010 Intel Corporation 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...
C#
Global/UPnP/__ReadOnlyCollections.cs
dlna/DeveloperToolsForUPnP
apache-2.0
3,430
185
codeparrot/github-code
ea0d0fff015d8b17f868c4206aa25602c37ffab1f01ccd6be699aae064023777
// Copyright 2015 the V8 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. #ifndef V8_LOCKED_QUEUE_INL_H_ #define V8_LOCKED_QUEUE_INL_H_ #include "src/base/atomic-utils.h" #include "src/locked-queue.h" namespace v8 { namespac...
C
v8_7_5/src/locked-queue-inl.h
zero-rp/miniblink49
apache-2.0
2,096
92
codeparrot/github-code
8983ef9e485f1a4be12a72f4c9db60272eb30721d3f0fc19a4b917d67e10065f
/** * @file DistributedNodeConfig.h * @brief configuration of distributed node deployment * @author Jun Jiang * @date 2012-03-13 */ #ifndef DISTRIBUTED_NODE_CONFIG_H #define DISTRIBUTED_NODE_CONFIG_H namespace sf1r { struct DistributedNodeConfig { DistributedNodeConfig() : isSingleNode_(false) ...
C
source/core/configuration-manager/DistributedNodeConfig.h
izenecloud/sf1r-lite
apache-2.0
921
45
codeparrot/github-code
683d2fc46677a9940d657514e54d4b78d75d1893f93821bab0a4353952438ef3
/* 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...
Java
modules/flowable-idm-engine/src/main/java/org/flowable/idm/engine/impl/persistence/entity/data/impl/MybatisByteArrayDataManager.java
zwets/flowable-engine
apache-2.0
1,929
54
codeparrot/github-code
24cf635c058ab9edfffe654fd73f4d7a8ebcc67af588689f9d0b8804cecb81e9
/* 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...
Java
modules/flowable-bpmn-model/src/main/java/org/flowable/bpmn/model/Association.java
stephraleigh/flowable-engine
apache-2.0
1,893
64
codeparrot/github-code
94f27985003c3bdc84b8487d87835e1352da6cd1edd0ba8d2fde28aaea19f2ed
package cmd import ( "fmt" "io" "strings" "time" "github.com/spf13/cobra" "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/fields" "k8s.io/apimachinery/pkg/watch" "k8s.io/kubernetes/pkg/api/legacyscheme" kapi "k8s.io/kubernetes/pkg/apis/core" "k8...
GO
pkg/oc/cli/cmd/importimage.go
dobbymoodge/origin
apache-2.0
20,228
621
codeparrot/github-code
75a109baf7e5cb47cb73be57f6142cfbb128c3ef5c5717eaf5e355f6c94991e0
/* * 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 ...
Java
processing/src/test/java/org/apache/druid/query/IntervalChunkingQueryRunnerTest.java
dkhwangbo/druid
apache-2.0
3,703
109
codeparrot/github-code
c56e8d0cad3f4117ac00e770d5d7f6a4846a0fa1f653cb725c71d79d50abb4ec
#pragma once #include "BlockHandler.h" #include "ChunkInterface.h" class cBlockTallGrassHandler : public cBlockHandler { typedef cBlockHandler super; public: cBlockTallGrassHandler(BLOCKTYPE a_BlockType) : cBlockHandler(a_BlockType) { } virtual bool DoesIgnoreBuildCollision(cChunkInterface & a_ChunkInte...
C
src/Blocks/BlockTallGrass.h
nounoursheureux/MCServer
apache-2.0
2,270
90
codeparrot/github-code
b855f2def7eace89d1fde168434f928edb65e596e4b69a6232f293b10b733839
/* * Copyright 2015 Google Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
C++
visualizers/buffer_utils_pepper.cc
google/Safelight
apache-2.0
4,063
128
codeparrot/github-code
616b8fc2206fa006ae20015f69bceebef641ecfa8dfddfe0b74e92d8282f7f4f
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */ /* Copyright 2012 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the Licen...
JavaScript
util.js
jpambrun/jpx-medical
apache-2.0
45,189
1,569
codeparrot/github-code
968646901beb95bbc5b3b9e198c9b57833c196fdbadee230c926ab05a404f516
/* * 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...
Java
log4j-api/src/main/java/org/apache/logging/log4j/message/ThreadDumpMessage.java
codescale/logging-log4j2
apache-2.0
7,028
206
codeparrot/github-code
8e99889dd278b635e9c9d7f793dfe391f83247c54cd4c2033114bf39ac67a293
<div class="monitor" id="CIRCUIT_<%= name %>" style="position:relative;"> <% var displayName = name; var toolTip = ""; if(displayName.length > 32) { displayName = displayName.substring(0,4) + "..." + displayName.substring(displayName.length-20, displayName.length); toolTip = "title=\"" + name + "\""; } ...
HTML
runtime/src/main/resources/packaged/webapps/dashboard/WEB-INF/pages/resources/components/hystrixCommand/templates/hystrixCircuitContainer.html
flipkart-incubator/flux
apache-2.0
1,976
38
codeparrot/github-code
474318d9933ddbd62b885a8c35a52f0ad2b2f5d4fe940672482b52b78ce28dff
/* * 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 ...
Scala
core/src/main/scala/org/apache/spark/rdd/BinaryFileRDD.scala
gioenn/xSpark
apache-2.0
2,077
55
codeparrot/github-code
05c4d89ca205c87cf316301e6a89b55d352eae72f0c07bd528683ad019602011
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h> #include <aws/cognito-idp/CognitoIdentityProviderRequest.h> #include <aws/core/utils/memory/stl/AWSString.h> #include <utility...
C
aws-cpp-sdk-cognito-idp/include/aws/cognito-idp/model/DeleteIdentityProviderRequest.h
awslabs/aws-sdk-cpp
apache-2.0
4,019
130
codeparrot/github-code
2d0b9078e7fb9bb07b4ebc640c72a15518f9a0a8d2867ad48181e18b0eb1f3e4
package org.sagebionetworks; import org.sagebionetworks.aws.AwsClientFactory; import org.sagebionetworks.aws.SynapseS3Client; import com.amazonaws.services.kms.AWSKMS; import com.google.inject.Provides; /** * Provides dependency injection mapping for the StackConfiguration project. * */ public class StackConfigur...
Java
lib/stackConfiguration/src/main/java/org/sagebionetworks/StackConfigurationGuiceModule.java
xschildw/Synapse-Repository-Services
apache-2.0
992
35
codeparrot/github-code
6306a637ec76a35481b619ce3bacb335171e84f774121ec439faeacafd160c65
/* * 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...
Java
core/src/main/java/org/elasticsearch/index/mapper/internal/ParentFieldMapper.java
zhengxgs/elasticsearch-2.4.1
apache-2.0
17,581
416
codeparrot/github-code
c971d90d9f86c3dcef78783f805cb355e3b1dc6deb5cefe1f86da1f9249bb73d
/* * Copyright 2012 The Netty Project * * The Netty Project 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 ...
Java
src/main/java/org/jboss/netty/handler/codec/socks/SocksCmdResponse.java
KeyNexus/netty
apache-2.0
3,158
93
codeparrot/github-code
c62f4a55556b00f775f17bf1646bd4deb8fc93133f73973d9812c383c7afc05c
/****************************************************************************** * Copyright (c) 2006, 2010 VMware Inc. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * and Apache License v2.0 which accompanies this distr...
Java
test-support/src/main/java/org/eclipse/gemini/blueprint/test/internal/support/Activator.java
eclipse/gemini.blueprint
apache-2.0
2,050
51
codeparrot/github-code
d9fcda2ed463b480fd9399a0e378335d0d47da606dbc33c9723a846094f19cc5
/* * Copyright 2018-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...
Java
src/com/facebook/buck/features/python/toolchain/impl/LazyPythonPlatform.java
shs96c/buck
apache-2.0
3,629
106
codeparrot/github-code
a58f1bace7a8c86e3cb4fe674e1f89efb596e4f938a8b6afb9dd88fbe5257bd2
/** * Copyright 2015-2017 Red Hat, Inc, and individual contributors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless require...
Java
core/container/src/main/java/org/wildfly/swarm/internal/SwarmConfigMessages.java
wildfly-swarm/wildfly-swarm
apache-2.0
2,460
62
codeparrot/github-code
bf0a80c46ed1358f1d61ec818d4cc61ea3f20024e06c5df9591028f8e60ac984
/* * 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...
Java
server/src/main/java/org/elasticsearch/search/aggregations/bucket/BestBucketsDeferringCollector.java
gingerwizard/elasticsearch
apache-2.0
9,329
233
codeparrot/github-code
6258933cfa42f61b854b46e636a73c19177748ee7808500d122c9e8ef1d882a0
/* * DBeaver - Universal Database Manager * Copyright (C) 2010-2019 Serge Rider (serge@jkiss.org) * * 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/license...
Java
plugins/org.jkiss.dbeaver.lang/src/org/jkiss/dbeaver/lang/SCMRoot.java
liuyuanyuan/dbeaver
apache-2.0
2,003
72
codeparrot/github-code
4a07f8202eb8008ec6bf6c59939908cfbf329c90e7452cc32edd3556ae32806b
package org.nd4j.linalg.dataset.api.iterator; import org.nd4j.linalg.api.ndarray.INDArray; import org.nd4j.linalg.dataset.DataSet; import org.nd4j.linalg.factory.Nd4j; import org.nd4j.linalg.ops.transforms.Transforms; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.io.File; import java.io.IOExce...
Java
nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/dataset/api/iterator/StandardScaler.java
deeplearning4j/nd4j
apache-2.0
4,814
125
codeparrot/github-code
17683e66057d46470fd313b2db7f799073857ffb0a2e69cd7336328e6378c0cf
/* * 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...
Java
plugins/gradle/src/org/jetbrains/plugins/gradle/service/project/AbstractProjectImportErrorHandler.java
jk1/intellij-community
apache-2.0
3,012
73
codeparrot/github-code
79d9f00c68b1050144dcebf9552d91b3fec868b5ba14b3492ab074ee2044b6d7
;(function(root) { /** * Constructs a new cross storage client given the url to a hub. By default, * an iframe is created within the document body that points to the url. It * also accepts an options object, which may include a timeout, frameId, and * promise. The timeout, in milliseconds, is applied to e...
JavaScript
lib/client.js
emiljas/cross-storage
apache-2.0
14,264
447
codeparrot/github-code
e1c0f2d82c6653a00f8a93cd4e7c8e04bec78d22a670ee39d9b71622599cacfd
// Copyright 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 "base/power_monitor/power_monitor.h" #include "base/win/wrapped_window_proc.h" namespace base { namespace { const wchar_t kWindowClassName[] ...
C++
src/base/power_monitor/power_monitor_win.cc
plxaye/chromium
apache-2.0
3,694
112
codeparrot/github-code
f2313fa241ab26ca4403a5b2923b9a3ac372dd92fe92f8c18946ecec659e738f
/* Copyright 2019 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...
C++
tensorflow/python/lib/io/record_io_wrapper.cc
jhseu/tensorflow
apache-2.0
11,922
330
codeparrot/github-code
67f57168c84654faa4df2a2bb58a5c0ae30528314e2e13b8cc853c94504b162a
/* * Copyright 2005,2006 WSO2, Inc. http://www.wso2.org * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
Java
components/logging/org.wso2.carbon.logging.service/src/main/java/org/wso2/carbon/logging/service/appender/CarbonMemoryAppender.java
callkalpa/carbon-commons
apache-2.0
6,042
161
codeparrot/github-code
06f01d84d16ced5d1848f5737981d0faf25951d538deeaff875f1aa79de8cfcb
/* * 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 ...
Java
nifi-api/src/test/java/org/apache/nifi/processor/TestDataUnit.java
MikeThomsen/nifi
apache-2.0
1,919
45
codeparrot/github-code
940e73aef86eeec7989fa54d90cf97b2d9567a97f5ea769b4ddb7642e2a65ad6
/* * Copyright 2013 Nicolas Morel * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
Java
gwt-jackson/src/test/java/com/github/nmorel/gwtjackson/client/ser/date/DateJsonSerializerTest.java
nmorel/gwt-jackson
apache-2.0
1,249
39
codeparrot/github-code
a3380902341b0974a1e57a3d58029287a08773ba7b46cf5079a31c5529a8a517
#!/usr/bin/python # # Copyright 2014 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 b...
Python
python/v2.0/download_floodlight_tag.py
falbassini/googleads-dfa-reporting-samples
apache-2.0
1,952
62
codeparrot/github-code