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
0eae7af672a02b1b33cf70e8be38b6ba9fc730553c9e6fdc7ee6c207294939d5
package net.minecraftforge.debug; import java.util.ArrayList; import java.util.Collections; import java.util.List; import net.minecraft.block.BlockContainer; import net.minecraft.block.material.Material; import net.minecraft.block.properties.IProperty; import net.minecraft.block.properties.PropertyInteger; import net...
Java
src/test/java/net/minecraftforge/debug/ModelBakeEventDebug.java
luacs1998/MinecraftForge
lgpl-2.1
13,609
348
codeparrot/github-code
8a62a05a03dbb3ac4c53595539e83f7dad114ffe68438eb9ec925c9ac22ae46c
/* * netlink/netfilter/queue_msg.h Netfilter Queue Messages * * 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 version 2.1 * of the License. * * Copyright (c) 2007, 2008 Patrick McH...
C
include/netlink/netfilter/queue_msg.h
dsahern/libnl
lgpl-2.1
4,684
109
codeparrot/github-code
6ffe44f063b628e62835082d7cecaeda529cffd59fc30fb12bfded6c51f4f0f8
/* * Copyright (c) 2008, Google 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 * notice, this list of condi...
C++
webkit/Source/WebCore/platform/graphics/skia/GradientSkia.cpp
nawawi/wkhtmltopdf
lgpl-3.0
7,115
192
codeparrot/github-code
537fb6c6c8a6dfadce9b239a24b1b7fd0343cb2be11afbdab60f6d5b215b5e45
/*------------------------------------------------------------------*- 2_01_12h.C (v1.00) ------------------------------------------------------------------ *** THIS IS A *HYBRID* SCHEDULER FOR STANDARD 8051 / 8052 *** *** Uses T2 for timing, 16-bit auto reload *** *** 12 MHz oscillator -> 1...
C
Patterns_for_Time_Triggered_Emb/34/DAC_Spee/2_01_12h.c
hyller/CodeLibrary
unlicense
5,145
168
codeparrot/github-code
85524ce62ed479b4eb582e2a7ac6639eb6866d1a7a57328c18e9cea487249e27
/* See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * Esri Inc. 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 * ...
Java
src/com/esri/gpt/catalog/harvest/protocols/HarvestProtocolArcIms.java
GeoinformationSystems/GeoprocessingAppstore
apache-2.0
5,810
196
codeparrot/github-code
535b46c92a741fa1e96449c1db8e629a94cdc06735d8b31b1f22b9a51d4055c9
/* * Copyright (C) 2015 Twitter, 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...
Java
samples/app/src/main/java/com/example/app/digits/ContactsReceiver.java
vivekkiran/digits-android
apache-2.0
1,897
53
codeparrot/github-code
f9cbf492992df023d22329730ab2db644e8460e5f8c8150fd21e314a551d8988
/*========================================================================= * * Copyright NumFOCUS * * 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.or...
C
Modules/Filtering/Thresholding/include/itkYenThresholdImageFilter.h
BRAINSia/ITK
apache-2.0
3,973
107
codeparrot/github-code
0a998e5e7f4d2992fca10154d4ee9cc981cf201258d6cbf2f8f8d8bebaaf7808
/* * 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
core/trino-main/src/test/java/io/trino/operator/aggregation/TestLongVarianceAggregation.java
ebyhr/presto
apache-2.0
1,904
67
codeparrot/github-code
1914f35b529fde0d9296becd695db79cabe29004ad68d5ac1f87914e70f2862e
// register-web-ui-test.js // // Test that the home page shows an invitation to join // // Copyright 2012, E14N https://e14n.com/ // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // ...
JavaScript
test/register-web-ui-test.js
OpenSocial/pump.io
apache-2.0
4,694
122
codeparrot/github-code
53fe51ddd699d7eccfcc0aff9458d01c3f7d2abd614a5cbe6fd89aee2fb62acc
/** * 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
orc/src/test/org/apache/orc/impl/TestStringRedBlackTree.java
BUPTAnderson/apache-hive-2.1.1-src
apache-2.0
8,010
235
codeparrot/github-code
37a28d2cc6e970d0beec71cfd875c53c8e4239fa42baf13b121afb04e5845692
/*** Copyright (c) 2008-2012 CommonsWare, LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless required by applicable law or agreed to in w...
Java
Service/FakePlayer/src/com/commonsware/android/fakeplayer/FakePlayer.java
atishagrawal/cw-android
apache-2.0
1,352
42
codeparrot/github-code
31bc1c4da06ceefc8d6001510c90b4ba972e545128fd93462a2697079bcd4039
/* * 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
core/trino-main/src/test/java/io/trino/operator/aggregation/TestApproximateCountDistinctAggregations.java
electrum/presto
apache-2.0
2,695
62
codeparrot/github-code
9be62a57fba0566fba08d089707f35a425a9bcf8408a3d341ce5b218e6ab2b4f
/* * Copyright (c) 2012-2015 S-Core Co., 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...
JavaScript
apps/ide/src/plugins/webida.ide.search-result/search-result-controller.js
kyungmi/webida-client
apache-2.0
2,843
98
codeparrot/github-code
6cc792acaedeebf903260a63306ed35b90c971dafe3d1828c650b6e4e6fd3f25
/* * 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-raptor/src/test/java/com/facebook/presto/raptor/TestRaptorDistributedQueries.java
pwz3n0/presto
apache-2.0
3,260
85
codeparrot/github-code
4571bd8293ae6989180dbaa53670e64ce5b6cdc39b8f9fe177e8f30856baa316
# -*- coding:utf-8 -*- # Copyright 2015 NEC Corporation. # # # # Licensed under the Apache License, Version 2.0 (the "License"); # # you may not use this file except in compliance with the License...
Python
src/main/python/org/o3project/odenos/core/component/network/flow/ofpflow/ofp_flow_action_pop_mpls.py
haizawa/odenos
apache-2.0
1,666
44
codeparrot/github-code
87f2560807a8971e6831879e2dfdb95ea471cb0bfd2b7cea7f7ce4de159ab4e5
/* * Copyright 2014 Goldman Sachs. * * 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 ...
Java
collections/src/main/java/com/gs/collections/impl/multimap/list/MultiReaderFastListMultimap.java
gabby2212/gs-collections
apache-2.0
4,667
144
codeparrot/github-code
5672cd18b6f03d33801ad3cefd01ace47f15c5542a39f8779c44f8f57d13f52e
/* * 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 * * Unles...
Java
modules/components/analytics/core/generic/org.wso2.carbon.pc.analytics.core.generic/src/main/java/org/wso2/carbon/pc/analytics/core/generic/internal/AnalyticsServiceComponent.java
rmsamitha/product-pc
apache-2.0
2,302
57
codeparrot/github-code
484f0ecaed17fe909c8b0265fc69f60176bc9da2cca99cb2bbfa717068ccfa2e
//===--- MutexWin32.h - -----------------------------------------*- C++ -*-===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
C
include/swift/Runtime/MutexWin32.h
tkremenek/swift
apache-2.0
3,436
102
codeparrot/github-code
d706e157ce44ca46beabcf89b4abf7d2dec0e046e403c322969998aa5daf7286
package service import ( "encoding/json" "fmt" ) type ServiceRepr interface { Service() Service Serialize() ([]byte, error) } // ParseServiceRepr attempts parse using each of the ReprParsers in turn. Returns the first // result to not error, or the error from the last parser func ParseServiceRepr(body []byte, pa...
GO
services/service/representation.go
Dataman-Cloud/bamboo
apache-2.0
2,221
106
codeparrot/github-code
8fcfe33a1446737361c4852910047e1f409945cb22ee00394caf63440e9d1458
/* * 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
modules/ingest-common/src/main/java/org/elasticsearch/ingest/common/ConvertProcessor.java
gmarz/elasticsearch
apache-2.0
6,869
194
codeparrot/github-code
88072b551154484786bab6f8ac39b57cd2647c5bfa5eaf36dfc42f4edee12c4b
from cloudify import ctx from cloudify.exceptions import NonRecoverableError from cloudify.state import ctx_parameters as inputs import subprocess import os import re import sys import time import threading import platform from StringIO import StringIO from cloudify_rest_client import CloudifyClient from cloudify impo...
Python
src/test/resources/outputs/blueprints/openstack/tomcat/wrapper/Tomcat/tosca.interfaces.node.lifecycle.Standard/create/artifacts/tomcat-war-types/scripts/_a4c_tomcat_install.py
victorkeophila/alien4cloud-cloudify3-provider
apache-2.0
14,972
328
codeparrot/github-code
cc5c674ee59cc97144c386aa6ed52fb24443ecfad4f5bdef6defc93acdce5dc2
// This file is part of libigl, a simple c++ geometry processing library. // // Copyright (C) 2015 Alec Jacobson <alecjacobson@gmail.com> // // This Source Code Form is subject to the terms of the Mozilla Public License // v. 2.0. If a copy of the MPL was not distributed with this file, You can // obtain one at htt...
C++
thirdparty/igl/is_vertex_manifold.cpp
ygling2008/direct_edge_imu
apache-2.0
2,784
101
codeparrot/github-code
fffa0797553ef03c1a1b1afaac8bb4ebd27ff56746f28884404b88ed3a069071
/** * 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
examples/camel-example-fhir-auth-tx-spring-boot/src/main/java/sample/camel/MyCamelRouter.java
kevinearls/camel
apache-2.0
2,786
65
codeparrot/github-code
b78a2d233e32881590e95a1e4a721fd6af8656101da71428eec1f006d28970be
/* 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
cmd/kubeadm/app/phases/upgrade/postupgrade.go
bsalamat/kubernetes
apache-2.0
12,162
285
codeparrot/github-code
cec03d54cd77bcd8f036d9275c5bd3bcd5f6862e7ccc2ee0361ae36a48e0abd8
/** ****************************************************************************** * @file stm32f4xx_ll_dma.c * @author MCD Application Team * @brief DMA LL module driver. ****************************************************************************** * @attention * * <h2><center>&copy; COP...
C
hw/mcu/stm/stm32f4xx/src/ext/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_dma.c
andrzej-kaczmarek/apache-mynewt-core
apache-2.0
19,823
442
codeparrot/github-code
01af6321ccdc831ea1d17c56cbb2543e70a7785a7358b664776ba7398922dce7
/* * 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
oak-upgrade/src/main/java/org/apache/jackrabbit/oak/upgrade/cli/blob/LoopbackBlobStore.java
mreutegg/jackrabbit-oak
apache-2.0
4,214
116
codeparrot/github-code
29282461368d9d04be7d808b5e241846ca3d0b79557a03e593d7f2738afe0ee7
/** * FreeRDP: A Remote Desktop Protocol Implementation * * Copyright 2011-2014 Marc-Andre Moreau <marcandre.moreau@gmail.com> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * ...
C
server/shadow/Win/win_shadow.c
xproax/FreeRDP
apache-2.0
13,118
500
codeparrot/github-code
935aaa885efa6f818403e9fc4748f50f57e4987d10434b6ec8fd757e9be73280
// Copyright 2014 Invex Games http://invexgames.com // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 // Unless required by applicable law or agree...
C#
Scripts/SliderConfig.cs
QuantumCD/MaterialUI
apache-2.0
6,748
243
codeparrot/github-code
37e75d31985a618c664b447e106c89f2eadb561beb715bae84e827fd911b8e44
/* * reserved comment block * DO NOT REMOVE OR ALTER! */ /* * 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 ...
Java
classlib/java.xml/src/main/resources/META-INF/modules/java.xml/classes/com/sun/org/apache/bcel/internal/generic/INVOKEINTERFACE.java
mirkosertic/Bytecoder
apache-2.0
4,443
143
codeparrot/github-code
cab4786ec0c4aebaff3d782acd275b9029fe3e53a6857b5dd29ee0d86208d754
/** * Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies * * Please see distribution for license. */ package com.opengamma.analytics.math.curve; import com.opengamma.analytics.math.function.Function; import com.opengamma.util.ArgumentChecker; /** * A function that performs subtra...
Java
projects/OG-Analytics/src/main/java/com/opengamma/analytics/math/curve/SubtractCurveSpreadFunction.java
jeorme/OG-Platform
apache-2.0
2,054
78
codeparrot/github-code
16631375608c9bddb96c81d5edf4a140887d9c714447c9c452508ac6abcdaf81
/* * Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. 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.or...
Java
modules/siddhi-core/src/main/java/io/siddhi/core/query/selector/attribute/aggregator/MaxForeverAttributeAggregatorExecutor.java
wso2/siddhi
apache-2.0
11,651
363
codeparrot/github-code
e3795982cbb54a1d4990626e7801a5362ae967125cd912938ec0bf6be3d66bd9
/** * Copyright 2013 Netflix, 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 ...
Java
priam/src/main/java/com/netflix/priam/backup/IncrementalBackup.java
eg-eng/Priam
apache-2.0
3,837
128
codeparrot/github-code
bbf84568be76c2b16edf3bfe5bac6718d1c4328743c203c6275872b807e79b91
// // MessagePack for C++ static resolution routine // // Copyright (C) 2008-2015 FURUHASHI Sadayuki // // 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...
C++
include/msgpack/adaptor/set.hpp
vashstorm/msgpack-c
apache-2.0
4,878
158
codeparrot/github-code
cd2a93fe7d041070067f34e5681c2bd466679fe018349b68e3d7f10c707ce531
package origin import ( "crypto/md5" "crypto/x509" "fmt" "net/url" "code.google.com/p/go-uuid/uuid" "github.com/GoogleCloudPlatform/kubernetes/pkg/tools" "github.com/projectatomic/atomic-enterprise/pkg/auth/server/session" configapi "github.com/projectatomic/atomic-enterprise/pkg/cmd/server/api" "github.co...
GO
pkg/cmd/server/origin/auth_config.go
marsmensch/atomic-enterprise
apache-2.0
4,367
132
codeparrot/github-code
da21324bf0e869f2f969a06c1ae75fd9c73905c2bbff511d3da0c81c58c24de1
// // MPAdWebViewAgent.h // MoPub // // Copyright (c) 2013 MoPub. All rights reserved. // #import <Foundation/Foundation.h> #import "MPAdDestinationDisplayAgent.h" enum { MPAdWebViewEventAdDidAppear = 0, MPAdWebViewEventAdDidDisappear = 1 }; typedef NSUInteger MPAdWebViewEvent; @protocol MPAdWebViewA...
C
mopub/libproj/mopub/MoPubSDK/Internal/HTML/MPAdWebViewAgent.h
BlueRiverInteractive/robovm-ios-bindings
apache-2.0
1,544
55
codeparrot/github-code
0ae12266a991ef8a87d707836861878f97d897575389519ab2879f017203b6e6
/* * Copyright (c) Facebook, Inc. and its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applic...
Java
test/com/facebook/buck/util/concurrent/AssertScopeExclusiveAccessTest.java
facebook/buck
apache-2.0
1,506
44
codeparrot/github-code
ab7faf511a8ece2204a5b9b2f1f83089a163891d7d3b83e810f687650b39f813
/* * Copyright 2000-2015 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
Java
platform/core-api/src/com/intellij/openapi/application/ApplicationInfo.java
asedunov/intellij-community
apache-2.0
2,993
82
codeparrot/github-code
bdb48989014aadcbf5c466c13a9629fe1c7bc27a57ca6e331a289a5aa8213e9a
// // NSDataDetector+TFEasyCoder.h // TFEasyCoder // // Created by ztf on 16/10/26. // Copyright © 2016年 ztf. All rights reserved. // #import <UIKit/UIKit.h> #import <Foundation/Foundation.h> #import "TFEasyCoderConst.h" typedef void(^NSDataDetectorEasyCoderBlock) (NSDataDetector * ins); @interface NSDataDetecto...
C
demo-转场动画/demo-转场动画/TFEasyCoder/foundation/NSDataDetector+TFEasyCoder.h
shmxybfq/TFDemos
apache-2.0
1,832
49
codeparrot/github-code
931ee14afa7d0e3b99cca7aeeee02e85a5fb13c227cec9ffadc42d591b2e8f35
/** * 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-client/src/test/java/org/apache/hadoop/hbase/client/TestSnapshotFromAdmin.java
juwi/hbase
apache-2.0
7,718
165
codeparrot/github-code
da17f2c409e004688a8f435e6800590ae9b737d0a49701037227548d6619a939
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <META http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta content="Apache Forrest" name="Generator"> <meta name="Forrest-version" content="0.8"> <meta name="Forrest-skin-name" content="pe...
HTML
lib/fop-1.0/docs/license.html
lewismc/yax
apache-2.0
8,562
258
codeparrot/github-code
747e974ecd8384ed7d8fe028dbda0beecec99ed281f46f4bb8d544f048ffa96b
/** * 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
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/DFSClient.java
tomatoKiller/Hadoop_Source_Learn
apache-2.0
95,752
2,523
codeparrot/github-code
c04eee7c034c849a86040dc546357395faac4aa48b122ebfc73746c6cc04bbea
/* Copyright (C) 2008-2016 University of Massachusetts Amherst. This file is part of "FACTORIE" (Factor graphs, Imperative, Extensible) http://factorie.cs.umass.edu, http://github.com/factorie Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with...
Scala
src/main/scala/cc/factorie/model/Template.scala
strubell/factorie
apache-2.0
4,938
92
codeparrot/github-code
eb3854ebe72ea790a1bafb1184a3b969828c0765894a6c2a8333123f1f13b369
/* 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 applicable law or agreed to in ...
C
tensorflow/core/lib/random/random_distributions.h
awni/tensorflow
apache-2.0
15,770
442
codeparrot/github-code
c6d671a26bfa7389e9c392c17361449fa8885f01b4f8a4fd0f763c1b8f30fbe9
// ---------------------------------------------------------------------------------- // // Copyright Microsoft 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.apa...
C#
src/ResourceManager/Sql/Commands.Sql/Security/Cmdlet/DataMasking/SetAzureSqlDatabaseDataMaskingRule.cs
enavro/azure-powershell
apache-2.0
4,200
87
codeparrot/github-code
f6c405905d9f02b8db9b03ead6db122a95e630f6f8c948e91dc61d8bb595cc39
/** * Copyright (C) 2011 - present by OpenGamma Inc. and the OpenGamma group of companies * * Please see distribution for license. */ package com.opengamma.financial.analytics.volatility.surface; import com.opengamma.core.config.ConfigSource; import com.opengamma.engine.function.FunctionCompilationContext; import ...
Java
projects/OG-Financial/src/main/java/com/opengamma/financial/analytics/volatility/surface/ConfigDBFuturePriceCurveDefinitionSource.java
codeaudit/OG-Platform
apache-2.0
2,270
60
codeparrot/github-code
6730e695f15a4cf31933ac19f05a64b955db2ccd7cbc65120abea8d19fe688d8
#!/usr/bin/env python import errno import os import re import tempfile from hashlib import md5 class _FileCacheError(Exception): """Base exception class for FileCache related errors""" class _FileCache(object): DEPTH = 3 def __init__(self, root_directory=None): self._InitializeRootDirectory(ro...
Python
twitter/_file_cache.py
milmd90/TwitterBot
apache-2.0
5,588
162
codeparrot/github-code
8b057b49688e3330343d2b46b75b752c814b1ac2f5a966aa7ea2d45a61d41588
/* Copyright 2021 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
C
tensorflow/core/runtime_fallback/kernel/kernel_fallback_compat_request_state.h
tensorflow/tensorflow
apache-2.0
6,705
164
codeparrot/github-code
6707294164857017b6fac6ddd95e78c8a9951a0fabf669bc7fc25022d3c1b18b
/* Copyright 2016 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 ...
Java
toolkit/src/main/java/com/google/api/codegen/config/ResourceNameMessageConfig.java
googleapis/discovery-artifact-manager
apache-2.0
1,961
53
codeparrot/github-code
a3e7de08eb7586056820507f8b5fe13a5463a2bfc2742548884a5de53a8189ba
// Copyright 2014 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. #include "src/crankshaft/s390/lithium-s390.h" #include <sstream> #include "src/crankshaft/hydrogen-osr.h" #include "src/crankshaft/lithium-inl.h" #inc...
C++
v8_5_1/src/crankshaft/s390/lithium-s390.cc
weolar/miniblink49
apache-2.0
83,254
2,291
codeparrot/github-code
1462be590220bc62bd2aa96c6e0b5a1c599709a1e4e4fd01e05489e64dc6ce44
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Threading; using Microsoft.VisualStudio.LanguageServices.Implementation.CodeModel; using Microsoft.VisualStudio.LanguageServices.I...
C#
src/VisualStudio/Core/Impl/ProjectSystem/CPS/CPSProject_IProjectCodeModelProvider.cs
DustinCampbell/roslyn
apache-2.0
2,067
60
codeparrot/github-code
3ad60dbc9c97219584bf2ec9baaa8cad036269d5e7ffa75f1d1393a1ad7ed521
// 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.intellij.codeInspection; import com.intellij.analysis.JvmAnalysisBundle; import com.intellij.psi.CommonClassNames; import com.intellij.psi.PsiElement; import com.inte...
Java
jvm/jvm-analysis-impl/src/com/intellij/codeInspection/StringToUpperWithoutLocale2Inspection.java
goodwinnk/intellij-community
apache-2.0
3,686
85
codeparrot/github-code
7c54c67c3d75faf03bcd7fd1c2584baa27ad6b00373403463d306b981196e3b2
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/ui/views/panels/taskbar_window_thumbnailer_win.h" #include <dwmapi.h> #include "base/logging.h" #include "base/win/scoped_h...
C++
src/chrome/browser/ui/views/panels/taskbar_window_thumbnailer_win.cc
plxaye/chromium
apache-2.0
6,091
188
codeparrot/github-code
7cbdd58bda5f15e6ce748e327b9ecb5de93afd5fb867649f434b0dbc5ad4dfd0
using System.IO; using Moq; using NuGet.Test.Mocks; using Xunit; namespace NuGet.Test { public class XdtTransformTest { [Fact] public void AddPackageWithXdtTransformFile() { // Arrange var mockProjectSystem = new MockProjectSystem(); var mockReposito...
C#
test/Core.Test/XdtTransformTest.cs
dolkensp/node.net
apache-2.0
7,707
185
codeparrot/github-code
19fe5bd7f2c30adbd5e6cdaad12fd212eee70bfdba5a5ecece85106a94da90e5
/* Copyright 2017 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/compiler/xla/util.h
karllessard/tensorflow
apache-2.0
26,257
670
codeparrot/github-code
6d4a1815169b3d734856c62563bd608d7e6295db9a5bfbb27a817c5518e6fc29
/* * 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
flink-runtime/src/main/java/org/apache/flink/runtime/metrics/scope/ScopeFormats.java
WangTaoTheTonic/flink
apache-2.0
5,532
148
codeparrot/github-code
1b836f1c95cdc34431c032fb85c6ca882506033453a3779895693a7ed139b289
/** * 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/core/org/apache/hadoop/util/NativeCrc32.java
shakamunyi/hadoop-20
apache-2.0
5,310
154
codeparrot/github-code
a6db66e9fa8c36b679a6a9ccf4eae1c13ed42700b21fef8fbc6d8af3bffca780
/* * Copyright 2017 WSO2, Inc. (http://wso2.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law ...
Java
components/org.wso2.carbon.editor.log.appender/src/main/java/org/wso2/carbon/editor/log/appender/EditorConsoleAppender.java
minudika/carbon-analytics
apache-2.0
6,241
154
codeparrot/github-code
3b64bc03b8b2af5ee9846f99066408568321ee1bae3348b206e847e7d2b2fdb7
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
Perl
proton-c/bindings/perl/lib/qpid/proton/Messenger.pm
mbroadst/debian-qpid-cpp-old
apache-2.0
7,122
285
codeparrot/github-code
580704f75847762279b8964b16f799f5b7e84f5ed284c553cc86e313c59f13d1
/* * Copyright 2014-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://w...
Java
core/metrics-core-service/src/main/java/org/hawkular/metrics/core/service/transformers/TaggedDataPointCollector.java
tsegismont/hawkular-metrics
apache-2.0
3,340
87
codeparrot/github-code
075baf977755919c3ba8e346a5f10ba952d4833d196e9658079c1fe9a4286fe8
/* * ConnectBot: simple, powerful, open-source SSH client for Android * Copyright 2007 Kenny Root, Jeffrey Sharkey * * 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.a...
Java
app/src/main/java/org/connectbot/util/VolumePreference.java
Potass/ConnectBot
apache-2.0
2,105
73
codeparrot/github-code
d9583e30d06851cbb46a164501980863b1dbf7ee3b6e2fcf9b7f1a901a86a9ff
#!/usr/bin/env ruby # Encoding: utf-8 # # Author:: api.dklimkin@gmail.com (Danial Klimkin) # # Copyright:: Copyright 2012, Google Inc. All Rights Reserved. # # License:: Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # ...
Ruby
dfp_api/examples/v201411/user_team_association_service/delete_user_team_associations.rb
claimsmall/google-api-ads-ruby
apache-2.0
3,310
104
codeparrot/github-code
9af9bafbc9bf5d9b0a25f55d73fcc7192d98c451f8c087b2e8f7a6a2011877d1
/** * 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 m...
Java
common/mahout-distribution-0.7-hadoop1/math/target/generated-test-sources/org/apache/mahout/math/map/OpenIntLongHashMapTest.java
BigData-Lab-Frankfurt/HiBench-DSE
apache-2.0
11,143
368
codeparrot/github-code
55c5bc8f5f95c0730d1ea70ce56c7c7e21ac24df32b4d95a96d5092a8513e4c4
/* * 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
gobblin-restli/gobblin-throttling-service/gobblin-throttling-service-client/src/main/java/gobblin/util/limiter/stressTest/FixedOperationsStressor.java
ydai1124/gobblin-1
apache-2.0
1,650
51
codeparrot/github-code
975394f36bc71c13511f913b245707592215a84d076a7ea0920b5f8acfbed511
/* Copyright 2015 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, ...
GO
staging/src/k8s.io/client-go/transport/config.go
andrewsykim/kubernetes
apache-2.0
5,552
146
codeparrot/github-code
dd1caf9d932d1093f87d10890a78805ac53ba60a146ceba95ea724aec3c0b648
#!/usr/bin/env ruby # Encoding: utf-8 # # Author:: api.dklimkin@gmail.com (Danial Klimkin) # # Copyright:: Copyright 2011, Google Inc. All Rights Reserved. # # License:: Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # ...
Ruby
dfp_api/examples/v201408/inventory_service/get_ad_units_by_statement.rb
claimsmall/google-api-ads-ruby
apache-2.0
3,045
97
codeparrot/github-code
b418059ce2777b08f6b3307492fe9046fdd1d7b6198c75b5dbdd91b4bbee1f48
/* mbed Microcontroller Library ******************************************************************************* * Copyright (c) 2015, STMicroelectronics * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following condition...
C
libraries/mbed/targets/hal/TARGET_STM/TARGET_STM32F7/pwmout_api.c
hjjeon0608/mbed_for_W7500P
apache-2.0
6,733
222
codeparrot/github-code
97f0742b55ebf27670f5645a6684a2da9a3ea4785e567631330b5c8586427dfc
// 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. #ifndef DEVICE_BLUETOOTH_DBUS_FAKE_BLUETOOTH_MEDIA_TRANSPORT_CLIENT_H_ #define DEVICE_BLUETOOTH_DBUS_FAKE_BLUETOOTH_MEDIA_TRANSPORT_CLIENT_H_ #include <s...
C
third_party/webrtc/include/chromium/src/device/bluetooth/dbus/fake_bluetooth_media_transport_client.h
ssaroha/node-webrtc
bsd-2-clause
6,036
153
codeparrot/github-code
36041875bf7b9538671a8f77c284b72031fef2e3ff55514a5edc40c53b1429a3
// This file was procedurally generated from the following sources: // - src/dstr-binding-for-await/ary-ptrn-rest-id-iter-step-err.case // - src/dstr-binding-for-await/error/for-await-of-async-gen-var.template /*--- description: Error forwarding when IteratorStep returns an abrupt completion (for-await-of statement) es...
JavaScript
Jint.Tests.Test262/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-rest-id-iter-step-err.js
sebastienros/jint
bsd-2-clause
2,326
73
codeparrot/github-code
9137238afa6ebaf867fac7bd1c1466075657c4972cc9c7a5b35a6c9293dbab35
// This file was procedurally generated from the following sources: // - src/dstr-binding-for-await/obj-ptrn-id-init-fn-name-cover.case // - src/dstr-binding-for-await/default/for-await-of-async-gen-const.template /*--- description: SingleNameBinding assigns `name` to "anonymous" functions "through" cover grammar (for-...
JavaScript
Jint.Tests.Test262/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-id-init-fn-name-cover.js
sebastienros/jint
bsd-2-clause
2,244
66
codeparrot/github-code
e1cb8e65c0a99f5756c1f52f2dc6a7f41668b86191817587c8b5b2115c890c83
<?php /** * Used for sending editable mails, subject, from etc are stored in model */ class Kwc_Mail_Component extends Kwc_Mail_Abstract_Component { public static function getSettings() { $ret = parent::getSettings(); $ret['generators']['content'] = array( 'class' => 'Kwf_Component...
PHP
Kwc/Mail/Component.php
yacon/koala-framework
bsd-2-clause
3,217
93
codeparrot/github-code
ddeaf0d3eed3da18eb582fa298319111e39ad2e4b60f2ef049236789d5409886
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "content/renderer/dom_automation_controller.h" #include "base/bind.h" #include "base/bind_helpers.h" #include "base/json/json_string_value_s...
C++
content/renderer/dom_automation_controller.cc
ropik/chromium
bsd-3-clause
4,690
166
codeparrot/github-code
4fa45d25f04a200932fdbff5579759d769c2b9b45135fd4b365597924cce9d94
package org.scalaide.debug.internal.async import java.util.concurrent.atomic.AtomicReference import scala.collection.JavaConverters.asScalaBufferConverter import scala.concurrent.Future import org.eclipse.debug.core.DebugEvent import org.eclipse.jface.util.PropertyChangeEvent import org.scalaide.core.internal.ScalaP...
Scala
org.scala-ide.sdt.debug/src/org/scalaide/debug/internal/async/BreakOnDeadLetters.scala
dragos/scala-ide
bsd-3-clause
3,706
98
codeparrot/github-code
b98caa479d20b32040374d4fcf820da06e411371755b379b3cf3eee647d9d528
// // Copyright (C) 2003-2016 Sereina Riniker, Paolo Tosco // // @@ All Rights Reserved @@ // This file is part of the RDKit. // The contents are covered by the terms of the BSD license // which is included in the file license.txt, found at the root // of the RDKit source tree. // #include <RDGeneral/export.h> #...
C
Code/GraphMol/Trajectory/Trajectory.h
ptosco/rdkit
bsd-3-clause
4,447
106
codeparrot/github-code
e84c90e63027c3ec127fd92d8ef3fcd3acd2466249981b3aec8eb968a947e3ef
/* * Copyright (c) 2008-2015 The Open Source Geospatial Foundation * * Published under the BSD license. * See https://github.com/geoext/geoext2/blob/master/license.txt for the full * text of the license. */ /* * @include OpenLayers/Util.js * @requires GeoExt/Version.js */ /** * The permalink provider. * *...
JavaScript
src/GeoExt/state/PermalinkProvider.js
m-click/geoext2
bsd-3-clause
3,856
138
codeparrot/github-code
e56de0cc4c00f92ee1126bc32263d0091d583364b61483d89510a0831566ec70
// 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 "content/browser/service_worker/service_worker_database.h" #include <string> #include "base/files/file_util.h" #include "base/files/scoped_temp...
C++
content/browser/service_worker/service_worker_database_unittest.cc
CTSRD-SOAAP/chromium-42.0.2311.135
bsd-3-clause
59,746
1,506
codeparrot/github-code
1b4dcb350d301d1aaf150852a7d998b0aae3289be0e400641fec9af13cf6ccd1
package org.hisp.dhis.system.collection; /* * Copyright (c) 2004-2017, University of Oslo * 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 ab...
Java
dhis-2/dhis-support/dhis-support-system/src/main/java/org/hisp/dhis/system/collection/TaskLocalMap.java
troyel/dhis2-core
bsd-3-clause
2,264
66
codeparrot/github-code
b77a07a606be21726a02419ffb68c0a0bb9ffba39793a068ad40a4e79edab17b
/******************************************************* * Copyright (c) 2014, ArrayFire * All rights reserved. * * This file is distributed under 3-clause BSD license. * The complete license agreement can be obtained at: * http://arrayfire.com/licenses/BSD-3-Clause *****************************************************...
C++
src/backend/opencl/kernel/hsv_rgb.hpp
ghisvail/arrayfire
bsd-3-clause
2,405
88
codeparrot/github-code
fa15606046a7e5f468cdad852f874a248e7e532cb02db26836dedfda76828efe
/* * cblas_ctbmv.c * The program is a C interface to ctbmv. * * Keita Teranishi 5/20/98 * */ #include "cblas.h" #include "cblas_f77.h" void cblas_ctbmv(const CBLAS_LAYOUT layout, const CBLAS_UPLO Uplo, const CBLAS_TRANSPOSE TransA, const CBLAS_DIAG Diag, const int N, const int K...
C
lapack-netlib/CBLAS/src/cblas_ctbmv.c
buffer51/OpenBLAS
bsd-3-clause
3,945
159
codeparrot/github-code
b337c9729e04c5e9d5991a4cafce4826b4ced10c526bd50624d5b7844f6a0197
// Copyright 2018 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef SERVICES_SHAPE_DETECTION_BARCODE_DETECTION_PROVIDER_MAC_H_ #define SERVICES_SHAPE_DETECTION_BARCODE_DETECTION_PROVIDER_MAC_H_ #include <memory> #...
C
services/shape_detection/barcode_detection_provider_mac.h
chromium/chromium
bsd-3-clause
1,950
53
codeparrot/github-code
481f4c932efa598c904ff8c0c9df1e8da0f3aa242e8e84a3d81d4dbfb6ae5528
// This file comes from the original BCD implementation, // with minor changes to remove dependencies, unused code // and re-formatting. Original license follows: // This file is part of the reference implementation for the paper // Bayesian Collaborative Denoising for Monte-Carlo Rendering // Malik Boughida and T...
C
src/thirdparty/bcd/bcd/CovarianceMatrix.h
aytekaman/appleseed
mit
2,003
78
codeparrot/github-code
53c96fe5a63d027d225b267ba9e38c85158073e55a354c15ac7f97ed59783ec6
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable enable using System; using System.Collections.Generic; using System.Collections.Immutable; using System....
C#
src/ExpressionEvaluator/Core/Source/ExpressionCompiler/EvaluationContextBase.cs
abock/roslyn
mit
6,738
190
codeparrot/github-code
5c904b2f94763442097d3a56568982fb784a2f7de65971fa23c80604d4f77c23
-- MySQL dump 10.13 Distrib 5.7.14, for Win64 (x86_64) -- -- Host: localhost Database: administrador -- ------------------------------------------------------ -- Server version 5.7.14 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RE...
SQL
uploads/Productividad y Calidad/2017/BD-20170513.sql
safito/mep
mit
11,863
337
codeparrot/github-code
f7c304a7785abc7b103afb48a37e6a73de2b07fdd85881a0d059feb37d0a15b9
#ifndef __COMPATIBLECLASSES_H__ #define __COMPATIBLECLASSES_H__ #include "cocos2d.h" #include "../../BaseClasses/UIWidget.h" #include "../UIButton.h" #include "../UICheckBox.h" #include "../UIImageView.h" #include "../UILabel.h" #include "../UILabelAtlas.h" #include "../UILabelBMFont.h" #include "../UILoadingBar.h" #...
C
extensions/CocoStudio/GUI/UIWidgets/Compatible/CompatibleClasses.h
cnsuperx/Cocos2d-x-2.2.5
mit
1,792
59
codeparrot/github-code
caa65ffe4003f57df63b54444524cb2bd10f90d32dbf63b69ba8b8d5f165b862
<?php /** * Zend Framework (http://framework.zend.com/) * * @link http://github.com/zendframework/zf2 for the canonical source repository * @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License */ namespace ...
PHP
web/zend/library/Zend/File/Transfer/Adapter/AbstractAdapter.php
allengaller/a4c-nin-api
mit
44,097
1,505
codeparrot/github-code
6e496d0cbf4d56b37ec98ea6386071fbda1287b4360c65e1558ef7e34b64b46e
{- Parser.hs: Parser for the Flounder interface definition language Part of Flounder: a strawman device definition DSL for Barrelfish Copyright (c) 2009, ETH Zurich. All rights reserved. This file is distributed under the terms in the attached LICENSE file. If you do not ...
Haskell
tools/flounder/Parser.hs
joe9/barrelfish
mit
9,137
241
codeparrot/github-code
d61bdf1440f5bf0b6828b8faf885f3b2695fe6682befa4e1ba7922c0c8d78ecd
"""scons.Node.Alias Alias nodes. This creates a hash of global Aliases (dummy targets). """ # # Copyright (c) 2001 - 2014 The SCons Foundation # # 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 So...
Python
scons-local/SCons/Node/Alias.py
dezelin/scons
mit
4,197
153
codeparrot/github-code
8a307c9358f20dca755504c7e14fa554c97cebd45995ca49a82365048a4f3bd2
'use strict'; var _ = require('lodash'); var webpack = require('webpack'); var mergeWebpackConfig = function (config) { // Load webpackConfig only when using `grunt:webpack` // load of grunt tasks is faster var webpackConfig = require('./webpack.config'); return _.merge({}, webpackConfig, config, function (a,...
JavaScript
gruntfile.js
lCharlie123l/react-datepicker
mit
3,123
134
codeparrot/github-code
dc4cd295a26e567d5b0fd3f1ed98ff26c892c68cafaa0a7d011d64f2238930fe
import * as React from 'react'; import { Graph, Link, Node } from 'react-d3-graph'; const nodes = [ { id: 'node1', labelProperty: 'id' }, { id: 'node2', name: 'node2Name' }, { id: 'node3', size: { width: 100, height: 200, }, }, ]; type INode = typeof nod...
TypeScript
types/react-d3-graph/react-d3-graph-tests.tsx
markogresak/DefinitelyTyped
mit
4,139
105
codeparrot/github-code
b0d517ee687c3fc14fbdb4b2be09d454fb2a9865e891a1db087ecbb4b5bd3925
/*************************************************************************/ /* config_file.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
C++
core/io/config_file.cpp
Brickcaster/godot
mit
7,022
224
codeparrot/github-code
786a45e8e91b8b9987c339475ed8e20d89e3529ec9f909db5f095d9830a009a5
--- title: Switch meta: Toggle Switches --- <h3 class="subheader">Switches can be used instead of regular radio buttons to switch between two options. They are customizable and use styles that won't show on phones that don't support media queries. On these devices, they will appear as regular radio buttons.</h3> *** ...
HTML
doc/pages/components/switch.html
Laragh/foundation-master
mit
4,831
184
codeparrot/github-code
619196accf884a46b225970bddd40ae642b31e34f14bde0f900c4013c6a57361
$.widget("metro.slider", { version: "3.0.0", options: { position: 0, accuracy: 0, color: 'default', completeColor: 'default', markerColor: 'default', colors: false, showHint: false, permanentHint: false, hintPosition: 'top', verti...
JavaScript
js/widgets/slider.js
ckc/Metro-UI-CSS
mit
11,712
383
codeparrot/github-code
122bc366294919755d4d633de13d609a66d5fcf1f3c2c18cfd0ed0c8c1adcdec
/* SPDX-License-Identifier: BSD-3-Clause * Copyright(c) 2001-2020 Intel Corporation */ #ifndef _IGC_HW_H_ #define _IGC_HW_H_ #include "igc_osdep.h" #include "igc_regs.h" #include "igc_defines.h" struct igc_hw; #define IGC_DEV_ID_82542 0x1000 #define IGC_DEV_ID_82543GC_FIBER 0x1001 #define IGC_DEV_ID_82543GC_CO...
C
drivers/net/igc/base/igc_hw.h
john-mcnamara-intel/dpdk
mit
25,859
1,052
codeparrot/github-code
1c9d9c3d148091785782cd3e36e0b27b45e8a58d03f2529703be39007d3c26af
// Copyright (c) 2015 The Bitcoin Core developers // Copyright (c) 2015-2017 The Bitcoin Unlimited developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <vector> #include "prevector.h" #include "random.h" #include...
C++
src/test/prevector_tests.cpp
AllanDoensen/BitcoinUnlimited
mit
7,131
219
codeparrot/github-code
9ec80ea4104ba3b3d3bac817546230c6e2716b849b5266d178e4a82e1c1b3a98
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import ReactDOM from 'react-dom'; import Col from '../src/Col'; describe('Col', () => { it('Should set Offset of zero', () => { let instance = ReactTestUtils.renderIntoDocument( <Col xsOffset={0} smOffset={0} mdOffset={0} lg...
JavaScript
test/ColSpec.js
mmarcant/react-bootstrap
mit
2,095
56
codeparrot/github-code
41f5eb52ad34d08ff1c3dd0270a73aac6f0314b9b4e3a79d9d204840534c4201
/******************************************************************************* * Copyright (c) 2012-2017 Codenvy, S.A. * 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 ...
Java
ide/che-core-ide-app/src/test/java/org/eclipse/che/ide/editor/macro/EditorCurrentProjectNameMacroTest.java
gazarenkov/che-sketch
epl-1.0
1,916
65
codeparrot/github-code
1c5ccaf2265a7e871f18d062ff3f6f5691702ffbdd60240add0b25dd6f9fd9ca
/* * Copyright (C) 2013-2018 Team Kodi * This file is part of Kodi - https://kodi.tv * * SPDX-License-Identifier: GPL-2.0-or-later * See LICENSES/README.md for more information. */ #include "SettingUpdate.h" #include "ServiceBroker.h" #include "SettingDefinitions.h" #include "utils/StringUtils.h" #include "...
C++
xbmc/settings/lib/SettingUpdate.cpp
xbmcin/XBMCinTC
gpl-2.0
1,447
62
codeparrot/github-code
4005feb01cb6662ff4685bd0d52759afe43f2a9bd155d29c4d562fc0444e829c
/* SiI8620 Linux Driver Copyright (C) 2013 Silicon Image, Inc. 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 version 2. This program is distributed AS-IS WITHOUT ANY WARRANTY of any kind, whether ...
C
drivers/video/msm/mdss/Sii8620/mhl_linux_tx_POLLING.c
ztemt/NX506J_KitKat_kernel
gpl-2.0
92,253
3,252
codeparrot/github-code
307e4bffc2d645ad16512b2122dfb1ddc05035d3a8c9796937426773c98235bb
/* * linux/fs/namei.c * * Copyright (C) 1991, 1992 Linus Torvalds */ /* * Some corrections by tytso. */ /* [Feb 1997 T. Schoebel-Theuer] Complete rewrite of the pathname * lookup logic. */ /* [Feb-Apr 2000, AV] Rewrite to the new namespace architecture. */ #include <linux/init.h> #include <linux/module.h...
C
fs/namei.c
grate-driver/linux-2.6
gpl-2.0
72,160
2,931
codeparrot/github-code
886287a3291a455216803978de7b972cb8ce27fd9d19685c6d5951143d938408
/* * ProGuard -- shrinking, optimization, obfuscation, and preverification * of Java bytecode. * * Copyright (c) 2002-2009 Eric Lafortune (eric@graphics.cornell.edu) * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as publ...
Java
external/proguard/src/proguard/classfile/util/DynamicMemberReferenceInitializer.java
shakalaca/ASUS_ZenFone_A450CG
gpl-2.0
27,311
604
codeparrot/github-code
2dc047a1dc2b1ff06e9d83f9545830ceb257714d93c2785e62e4f2abfbef4ed5
// clang-format off /* Voro++ Copyright (c) 2008, The Regents of the University of California, through Lawrence Berkeley National Laboratory (subject to receipt of any required approvals from the U.S. Dept. of Energy). All rights reserved. Redistribution and use in source and binary forms, with or without modification...
C++
src/PTM/ptm_voronoi_cell.cpp
agiliopadua/lammps
gpl-2.0
66,283
1,480
codeparrot/github-code