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
1015d8444b2db4bfc5477e5011945509a8a82e047cea68ca7b883555d0221050
/* * cbe_regs.h * * This file is intended to hold the various register definitions for CBE * on-chip system devices (memory controller, IO controller, etc...) * * (C) Copyright IBM Corporation 2001,2006 * * Authors: Maximino Aguilar (maguilar@us.ibm.com) * David J. Erb (djerb@us.ibm.com) * * (c) 200...
C
virt/arch/powerpc/include/asm/cell-regs.h
AiJiaZone/linux-4.0
gpl-2.0
9,760
327
codeparrot/github-code
de5a7bb7cbf9cc14fae3cc04e7abf407440df2cd9656827c4a407f0be7141e72
/* { dg-require-effective-target freorder } */ /* { dg-options "-O2 -freorder-blocks-and-partition" } */ #include <stdlib.h> #if !defined(NO_LABEL_VALUES) && (!defined(STACK_SIZE) || STACK_SIZE >= 4000) && __INT_MAX__ >= 2147483647 typedef unsigned int uint32; typedef signed int sint32; typedef uint32 reg_t; typedef...
C
source/gcc-latest/gcc/testsuite/gcc.dg/tree-prof/comp-goto-1.c
selmentdev/selment-toolchain
gpl-3.0
3,371
167
codeparrot/github-code
b3bb508256d14356ebfe7d74ef43fd7dc5d45e420be4aabcde9aede10f8835c7
////////////////////////////////////////////////////////////// // ZoomCamera.js // Penelope iPhone Tutorial // // ZoomCamera is a simple camera that uses a zoom value to zoom // the camera in or out relatively from the default position set // in the editor. It can snap to zoom values when moving closer // to the speci...
JavaScript
unity/Assets/Standard Assets (Mobile)/Scripts/ZoomCamera.js
tomekjarosik/water
apache-2.0
2,966
83
codeparrot/github-code
1a71523149b6561ee68e89e1992ea04d0c21efff76ead6366f73edb1dbbd9acd
/* * Copyright (C) 2009-2010 B.A.T.M.A.N. contributors: * * Marek Lindner, Simon Wunderlich * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distribute...
C
net/batman-adv/originator.c
mbrugg/MC-EWIO-KERNEL-ORG
gpl-2.0
14,724
565
codeparrot/github-code
f5bcdea2a5472b0ba5660839b9c4a2f8cd331df5fa4164ab030be3709e264c72
/* arch/arm/mach-msm/qdsp5/adsp.h * * Copyright (C) 2008 Google, Inc. * Copyright (c) 2008-2010, 2012 The Linux Foundation. All rights reserved. * Author: Iliyan Malchev <ibm@android.com> * * This software is licensed under the terms of the GNU General Public * License version 2, as published by the Free Softwar...
C
kernel/arch/arm/mach-msm/qdsp5/adsp.h
simar7/singhdroid
gpl-2.0
11,123
362
codeparrot/github-code
e33918856272a1b1619fef2c478a14fab338d883891828e97c4f74e841acb4c4
// 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. using System; using System.Collections.Generic; using System.Diagnostics; using System.Xml; using System.Xml.Xsl; n...
C#
src/System.Private.Xml/src/System/Xml/Xsl/QIL/QilCloneVisitor.cs
jlin177/corefx
mit
4,550
148
codeparrot/github-code
10d3e7dae8f8fa1c8e6f3e7880e73d364116ccf09ffdcb63a1a36e80387775aa
/* SPDX-License-Identifier: GPL-2.0-only */ /* * * Copyright (C) 2012 ARM Limited */ #ifndef _LINUX_VEXPRESS_H #define _LINUX_VEXPRESS_H #include <linux/device.h> #include <linux/regmap.h> #define VEXPRESS_SITE_MB 0 #define VEXPRESS_SITE_DB1 1 #define VEXPRESS_SITE_DB2 2 #define VEXPRESS_SITE_MASTER 0xf /* C...
C
linux-5.4/include/linux/vexpress.h
BPI-SINOVOIP/BPI-Mainline-kernel
gpl-2.0
1,085
48
codeparrot/github-code
33157d0098b6f3925b855bf65e73f2214acb1cfc5c32db93db415186b6aba18f
/* Copyright (c) 2013-2015, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and * only version 2 as published by the Free Software Foundation. * * This program is distributed in the...
C
kernelsource/msm/drivers/platform/msm/ipa/ipa_qmi_service.h
CoderSherlock/Mondroid
gpl-2.0
4,039
114
codeparrot/github-code
2f7088cf7392bd8abf1e9d5e397bca05733a238e47814fa79842662cf2712d06
/* * HID driver for Kye/Genius devices not fully compliant with HID standard * * Copyright (c) 2009 Jiri Kosina * Copyright (c) 2009 Tomas Hanak * Copyright (c) 2012 Nikolai Kondrashov */ /* * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Publi...
C
ulinux/linux-3.10.61/drivers/hid/hid-kye.c
wurikiji/ttFS
gpl-2.0
18,451
423
codeparrot/github-code
3de392ff22a3ece1c51899f31e9896c32079a54ff3937b1a57a530ab1bbd92d5
// SPDX-License-Identifier: GPL-2.0-or-later /* RxRPC virtual connection handler, common bits. * * Copyright (C) 2007, 2016 Red Hat, Inc. All Rights Reserved. * Written by David Howells (dhowells@redhat.com) */ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt #include <linux/module.h> #include <linux/slab.h> #include ...
C
net/rxrpc/conn_object.c
GuillaumeSeren/linux
gpl-2.0
12,939
487
codeparrot/github-code
2b7f114d5487a1e2194746fae91e333b9056f2149062f00818908fdf609a9319
/** -*- linux-c -*- *********************************************************** * Linux PPP over Ethernet (PPPoX/PPPoE) Sockets * * PPPoX --- Generic PPP encapsulation socket family * PPPoE --- PPP over Ethernet (RFC 2516) * * * Version: 0.7.0 * * 070228 : Fix to allow multiple sessions with same remote MAC an...
C
virt/drivers/net/pppoe.c
JijonHyuni/HyperKernel-JB
gpl-2.0
28,167
1,209
codeparrot/github-code
e242590270e9979269cbc281c15db045391522b67b2265c981a6f0027d7964ac
/** * 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
components/camel-spring/src/test/java/org/apache/camel/language/spel/SpelRouteTest.java
jmandawg/camel
apache-2.0
2,254
51
codeparrot/github-code
d3a36be2ffcd10662a92ab4096a7c116e38c05aa252c5734758566824030941f
/** * UI-Router Extras: Sticky states, Future States, Deep State Redirect, Transition promise * Module: statevis * @version 0.1.0 * @link http://christopherthielen.github.io/ui-router-extras/ * @license MIT License, http://www.opensource.org/licenses/MIT */ (function(angular, undefined){ "use strict"; // statevis...
JavaScript
release/modular/ct-ui-router-extras.statevis.js
viewthespace/ui-router-extras
mit
6,854
194
codeparrot/github-code
0ff724572389fb1bdf5b7160a9fdabc16ebba7f5fcbfb12a165e523dca08dccc
/* Highcharts JS v4.1.2 (2015-02-27) (c) 2009-2013 Torstein Hønsi License: www.highcharts.com/license */ (function(c){function n(d,a,b){var e,f,g=a.options.chart.options3d,h=!1;b?(h=a.inverted,b=a.plotWidth/2,a=a.plotHeight/2,e=g.depth/2,f=A(g.depth,1)*A(g.viewDistance,0)):(b=a.plotLeft+a.plotWidth/2,a=a.plotTop+a...
JavaScript
public/js/highcharts-3d.js
wellscorp/acao_valores
bsd-3-clause
18,603
45
codeparrot/github-code
93d2f6f6cdf4cb762b3d72d5ba2c10938b24e7433e5e9767f246f5e17abc38c1
/* Copyright 2010 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. 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 of the License. This progra...
Java
storage/ndb/clusterj/clusterj-test/src/main/java/testsuite/clusterj/model/Employee.java
kbauskar/percona-server
gpl-2.0
1,329
44
codeparrot/github-code
19e08bf370f5847d207e284150a77858b065c54b71bbfc3356d89c3affea2da8
/** * 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
camel-core/src/test/java/org/apache/camel/processor/DeadLetterChannelPropagateCausedExceptionTest.java
coderczp/camel
apache-2.0
7,442
187
codeparrot/github-code
bd9d3b4209dfdac2de06b7e34e64ff585ddf6293266c4abe0497d6f6221c7c8d
#ifndef STATUS_H #define STATUS_H #include <stdio.h> #include "string-list.h" #include "color.h" #include "pathspec.h" enum color_wt_status { WT_STATUS_HEADER = 0, WT_STATUS_UPDATED, WT_STATUS_CHANGED, WT_STATUS_UNTRACKED, WT_STATUS_NOBRANCH, WT_STATUS_UNMERGED, WT_STATUS_LOCAL_BRANCH, WT_STATUS_REMOTE_BRANCH...
C
wt-status.h
peanhuang/git
gpl-2.0
2,758
113
codeparrot/github-code
eeafc81fa9f38fe312c8212a5c13621eca6e3149e3d467e73a733e7b97edbc65
/* * Remote control driver for the TV-card based on bt829 * * by Leonid Froenchenko <lfroen@galileo.co.il> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the Li...
C
drivers/staging/media/lirc/lirc_bt829.c
heukelum/linux
gpl-2.0
7,687
402
codeparrot/github-code
d222541c44cd5061d07ed7920ce42f160582c439c81ef0df08c70ea4e2463e8a
/** * 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
components/camel-spring-batch/src/test/java/org/apache/camel/component/spring/batch/SpringBatchJobLauncherTest.java
YMartsynkevych/camel
apache-2.0
2,525
69
codeparrot/github-code
104dcc6b717a2f7719972ee496dcd15695e77431a2df571391f4261408069129
/* * Copyright (C) 2010 Google Inc. All rights reserved. * Copyright (C) 2011 Igalia S.L. * Copyright (C) 2012 Samsung Electronics * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of so...
C++
third_party/WebKit/Tools/DumpRenderTree/efl/TextInputController.cpp
leighpauls/k2cro4
bsd-3-clause
7,854
179
codeparrot/github-code
dc8a772af237e42d0857ac6aa9f4f330312b731f21ddbab994f3efdbc1fd372b
/** * angular-strap * @version v2.0.0-rc.2 - 2014-01-29 * @link http://mgcrea.github.io/angular-strap * @author [object Object] * @license MIT License, http://www.opensource.org/licenses/MIT */ 'use strict'; angular.module('mgcrea.ngStrap.helpers.debounce', []).constant('debounce', function (func, wait, immediate...
JavaScript
packages/angular-strap/2.0.0-rc.2/modules/debounce.js
tmthrgd/pagespeed-libraries-cdnjs
mit
1,719
60
codeparrot/github-code
cedccb1903ab74fcd9c94f56012727b647274ef304ce5f5492c5e25e749cbf81
/* * Copyright 2013 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SkBitmapProcState_MatrixTemplates_DEFINED #define SkBitmapProcState_MatrixTemplates_DEFINED #include "SkMath.h" #include "SkMathPriv.h" template <typename TileProc, ...
C
third_party/skia/src/core/SkBitmapProcState_matrix_template.h
guorendong/iridium-browser-ubuntu
bsd-3-clause
4,254
125
codeparrot/github-code
0d42939aa4ff3301ccbf258c2ebdeb02720513c0484616365706ed4ff2c3059a
/* * linux/arch/arm/mach-sa1100/nanoengine.c * * Bright Star Engineering's nanoEngine board init code. * * Copyright (C) 2010 Marcelo Roberto Jimenez <mroberto@cpti.cetuc.puc-rio.br> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License v...
C
linux-4.19/arch/arm/mach-sa1100/nanoengine.c
BPI-SINOVOIP/BPI-Mainline-kernel
gpl-2.0
3,731
141
codeparrot/github-code
58ec48106701b4e505a9e814ee2a43feec454b6e0d9538a98731501ed1afe251
/* * Consumer interface the pin control subsystem * * Copyright (C) 2012 ST-Ericsson SA * Written on behalf of Linaro for ST-Ericsson * Based on bits of regulator core, gpio core and clk core * * Author: Linus Walleij <linus.walleij@linaro.org> * * License terms: GNU General Public License (GPL) version 2 */ ...
C
virt/include/linux/pinctrl/consumer.h
mericon/Xp_Kernel_LGH850
gpl-2.0
4,214
196
codeparrot/github-code
03af68fec4dd74f866b8bb919016e7d72934472dfa43a672e8fcabad10baccb7
#undef TRACE_SYSTEM #define TRACE_SYSTEM cpufreq_slim #if !defined(_TRACE_CPUFREQ_INTERACTIVE_H) || defined(TRACE_HEADER_MULTI_READ) #define _TRACE_CPUFREQ_INTERACTIVE_H #include <linux/tracepoint.h> DECLARE_EVENT_CLASS(set, TP_PROTO(u32 cpu_id, unsigned long targfreq, unsigned long actualfreq), TP_ARGS(...
C
include/trace/events/cpufreq_slim.h
barome/AK-onePone
gpl-2.0
2,503
87
codeparrot/github-code
09ec75ee4361e91e9461c237dc274efa10fd36a2520a0ae98da091624126f23f
/* drivers/input/touchscreen/synaptics_fw_updater.c * * Copyright (C) 2012 Samsung Electronics, Inc. * * This software is licensed under the terms of the GNU General Public * License version 2, as published by the Free Software Foundation, and * may be copied, distributed, and modified under those terms. * * Th...
C
drivers/input/touchscreen/synaptics_fw_updater.c
kularny/GeniSys.Kernel
gpl-2.0
14,223
516
codeparrot/github-code
573e70cac7fb2052c83f729658c924a15573d175818002d96395d941404fd3f4
/* * This is a module which is used for logging packets to userspace via * nfetlink. * * (C) 2005 by Harald Welte <laforge@netfilter.org> * * Based on the old ipv4-only ipt_ULOG.c: * (C) 2000-2004 by Harald Welte <laforge@netfilter.org> * * This program is free software; you can redistribute it and/or modify ...
C
src/net/netfilter/nfnetlink_log.c
felixhaedicke/nst-kernel
gpl-2.0
23,769
988
codeparrot/github-code
4f1dcd7e1166b0de7e41cfc300ce38ce4b744416143e83e3936621deb6d2ea05
/* * QLogic Fibre Channel HBA Driver * Copyright (c) 2003-2014 QLogic Corporation * * See LICENSE.qla2xxx for copyright and licensing details. */ #ifndef __QLA_NX2_H #define __QLA_NX2_H #define QSNT_ACK_TOV 30 #define INTENT_TO_RECOVER 0x01 #define PROCEED_TO_RECOVER 0x02 #define IDC_LOCK_RECOVERY_OWNER_...
C
virt/drivers/scsi/qla2xxx/qla_nx2.h
AiJiaZone/linux-4.0
gpl-2.0
16,794
602
codeparrot/github-code
0b5bcdedff364fe58ac48e51a803a3702ce93d9f73e1b4bcc59d93f18f629737
/* * iop13xx PCI support * Copyright (c) 2005-2006, Intel Corporation. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, * version 2, as published by the Free Software Foundation. * * This program is distributed in the...
C
linux-3.1.9/arch/arm/mach-iop13xx/pci.c
sahdman/rpi_android_kernel
mit
32,544
1,133
codeparrot/github-code
0eb45c1c60c9dcd54fc5cd420e6b4b0fe2ef9c72066b9b1135679248dd9584c8
/* * Copyright 2014 Cisco Systems, Inc. All rights reserved. * * This program is free software; you may redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; version 2 of the License. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WAR...
C
linux-4.3/drivers/scsi/snic/snic_trc.c
publicloudapp/csrutil
mit
4,017
182
codeparrot/github-code
9c6d030a9948e70d5d0290ddc785c872a6c51f375a5778d7229b07ac999bfb10
/* * Require-CSS RequireJS css! loader plugin * 0.1.2 * Guy Bedford 2013 * MIT */ /* * * Usage: * require(['css!./mycssFile']); * * Tested and working in (up to latest versions as of March 2013): * Android * iOS 6 * IE 6 - 10 * Chome 3 - 26 * Firefox 3.5 - 19 * Opera 10 - 12 * * browserling.com use...
JavaScript
views/js/lib/require-css/css.js
oat-sa/tao-core
gpl-2.0
4,393
169
codeparrot/github-code
9ea8bea31092ab6df422dda774b3f90993ffc5a356fd400d99ff78e287378a62
/* * linux/include/linux/mmc/card.h * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * * Card driver specific definitions. */ #ifndef LINUX_MMC_CARD_H #define LINUX_MMC_CARD...
C
include/linux/mmc/card.h
ivanmeler/android_kernel_samsung_zerolte
gpl-2.0
17,442
542
codeparrot/github-code
6ff6904601c63608969f6ffd4785d242bf26bf08a95ffee84a5da1938f88760d
/****************************************************************************** * * Copyright(c) 2009-2010 Realtek Corporation. * * This program is free software; you can redistribute it and/or modify it * under the terms of version 2 of the GNU General Public License as * published by the Free Software Foundati...
C
linux-eudyptula/drivers/staging/rtl8192ee/efuse.h
dperezde/little-penguin
gpl-2.0
3,271
128
codeparrot/github-code
dba98ac824132b3a426bb5733083b83b634a049fbf682c230fe09dc4844a633d
/* -*- mode: c; c-basic-offset: 8; -*- * * vim: noexpandtab sw=8 ts=8 sts=0: * * Copyright (C) 2004 Oracle. All rights reserved. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public * License as published by the Free Software Foundation; either...
C
unionfs-3.10.y/drivers/staging/zcache/ramster/tcp.c
prasidh09/cse506
gpl-2.0
62,345
2,249
codeparrot/github-code
5ef7b0d9c439ccc6dad00ecca90eb392357498606e10ab7e3129f1d157eb7d20
/* * Quicktags * * This is the HTML editor in WordPress. It can be attached to any textarea and will * append a toolbar above it. This script is self-contained (does not require external libraries). * * Run quicktags(settings) to initialize it, where settings is an object containing up to 3 properties: * settin...
JavaScript
wp-includes/js/quicktags.dev.js
andres-torres-marroquin/casa-camila
gpl-2.0
18,426
625
codeparrot/github-code
68bec242452469bc3a8f795ffb26aa429cd7e011d0ab1beeca48da4765b9435b
# # s390/Makefile # # This file is included by the global makefile so that you can add your own # architecture-specific flags and dependencies. Remember to do have actions # for "archclean" and "archdep" for cleaning up and making dependencies for # this architecture # # This file is subject to the terms and conditions...
Makefile
uefi/linux-source-3.8.0/arch/s390/Makefile
SanDisk-Open-Source/SSD_Dashboard
gpl-2.0
3,799
132
codeparrot/github-code
94f3d468cdfe425d41019a8526afd097f7a2e33ca248db24d442e1d418380714
/* cx231xx-cards.c - driver for Conexant Cx23100/101/102 USB video capture devices Copyright (C) 2008 <srinivasa.deevi at conexant dot com> Based on em28xx driver This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published ...
C
linux-2.6.39/drivers/media/video/cx231xx/cx231xx-cards.c
chaoling/test123
gpl-2.0
32,938
1,266
codeparrot/github-code
b66703ea3057dc288bbf1c71198b0eb5c955fb3ac777eeba8d5e87c0d4556686
/* * Mars MR97310A library * * The original mr97310a driver, which supported the Aiptek Pencam VGA+, is * Copyright (C) 2009 Kyle Guinn <elyk03@gmail.com> * * Support for the MR97310A cameras in addition to the Aiptek Pencam VGA+ * and for the routines for detecting and classifying these various cameras, * is C...
C
kernel/drivers/media/video/gspca/mr97310a.c
augustayu/fastsocket
gpl-2.0
34,528
1,272
codeparrot/github-code
62a1d43bdc5eab298df35b314fb358a1c5b8cec18aa20f9648a75b98d3a8caff
//****************************************************************************** // // Copyright (c) 2015 Microsoft Corporation. All rights reserved. // // This code is licensed under the MIT License (MIT). // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LI...
C++
Frameworks/WinRT/StarboardSwapChain.cpp
Kalvar/WinObjC
mit
3,851
110
codeparrot/github-code
345271da41e53be3d7684db458ca8d67d349ab7936218000430b94ef3cdcc882
/* QtDialogPeer.java -- Copyright (C) 2005, 2006 Free Software Foundation, Inc. This file is part of GNU Classpath. GNU Classpath is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at you...
Java
uefi/gcc/gcc-4.6.3/libjava/classpath/gnu/java/awt/peer/qt/QtDialogPeer.java
SanDisk-Open-Source/SSD_Dashboard
gpl-2.0
2,623
74
codeparrot/github-code
10f9d5f56e743fed9089220af63d2224dcea500838fa567015b9d7f42c4454ff
/* * Copyright 2012 The Nouveau community * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, p...
C
uefi/linux-source-3.8.0/drivers/gpu/drm/nouveau/core/subdev/therm/priv.h
SanDisk-Open-Source/SSD_Dashboard
gpl-2.0
2,692
74
codeparrot/github-code
69d66e4eea1a70d8275ac4764c8a67c59dad9a0fc1e22f8ea009f66976b08902
/* * Copyright 2012-2014 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
Java
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jdbc/DataSourceConfigMetadata.java
RainPlanter/spring-boot
apache-2.0
1,675
52
codeparrot/github-code
3b386a4b0a430f505ff16fb3b3651c9d60368fc53f9b074fcc942fe565880b55
/****************************************************************************** * Copyright(c) 2008 - 2010 Realtek Corporation. All rights reserved. * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR ...
C
linux-4.19/drivers/staging/rtl8192e/rtl819x_TSProc.c
BPI-SINOVOIP/BPI-Mainline-kernel
gpl-2.0
14,598
534
codeparrot/github-code
7e92166506bedabaefeb1d37e9e315631193fa5bb311359790b0371c386d18df
#if !defined(BOOST_PP_IS_ITERATING) ///// header body #ifndef BOOST_MPL_UNPACK_ARGS_HPP_INCLUDED #define BOOST_MPL_UNPACK_ARGS_HPP_INCLUDED // Copyright Aleksey Gurtovoy 2002-2004 // // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.bo...
C++
xray/SDK/include/boost/mpl/unpack_args.hpp
hpl1nk/nonamegame
gpl-3.0
3,673
151
codeparrot/github-code
6ef44fd4095851dd8293d5e17c212229e4677207e8b62301e4b298b593a0003c
/* Copyright (c) 2010-2012, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and * only version 2 as published by the Free Software Foundation. * * This program is distributed in the...
C
kernel/arch/arm/common/cpaccess.c
Jarbu12/Xperia-M-Kernel
gpl-3.0
8,869
358
codeparrot/github-code
8dcd3091749a24599edf120ad92307bd6ab859ab3eb720605a9f4910efa0cf4e
<?php /* "Contact Form to Database" Copyright (C) 2011-2014 Michael Simpson (email : michael.d.simpson@gmail.com) This file is part of Contact Form to Database. Contact Form to Database is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as pu...
PHP
wp-content/plugins/contact-form-7-to-database-extension/CFDBDataIterator.php
quoleaf/australasian-immigration
gpl-2.0
1,429
56
codeparrot/github-code
eb624a32954fa6aeeecb83b292b3a9f3cb24d34e5a67d0361f846185ed0e57f3
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * OpenFirmware helpers for memory drivers * * Copyright (C) 2012 Texas Instruments, Inc. * Copyright (C) 2020 Krzysztof Kozlowski <krzk@kernel.org> */ #ifndef __LINUX_MEMORY_OF_REG_H #define __LINUX_MEMORY_OF_REG_H #if defined(CONFIG_OF) && defined(CONFIG_DDR) c...
C
drivers/memory/of_memory.h
HinTak/linux
gpl-2.0
1,492
52
codeparrot/github-code
0008a47093be1acd4adbd342900c17ab5436bb40910a988496380941c08fe62a
describe('keyboardAttach directive', function() { beforeEach(module('ionic')); function setup() { var el, content; inject(function($compile, $rootScope) { el = angular.element('<div keyboard-attach></div>'); content = angular.element('<ion-content></ion-content>'); content.append(el); ...
JavaScript
test/unit/angular/directive/keyboardAttach.unit.js
TakayukiSakai/ionic
mit
2,020
57
codeparrot/github-code
56c7ced7fa9b37f381e90327fb1a21b309a65f1a87c943dfa281420f42158012
// Copyright (C) 2011 Milo Yip // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, dist...
C
wss/gameserver/include/rapidjson/internal/strtod.h
beyzend/wss
mit
9,343
286
codeparrot/github-code
34a63cc19fb748f8d4a113d89ebfc1614172cd6a0b39447b8dca76b90aab9b8d
/* * Copyright 2012-15 Advanced Micro Devices, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify...
C
linux-5.8/drivers/gpu/drm/amd/display/dc/basics/vector.c
CSE3320/kernel-code
gpl-2.0
6,875
310
codeparrot/github-code
a85deeec6d5f4717efe1d984a827728011ed733d88c6f4fa4237e4bf0bc8c6fc
+function ($) { 'use strict'; //var for check event at body can have only one. var event_body = false; // CONFIRMATION PUBLIC CLASS DEFINITION // =============================== var Confirmation = function (element, options) { var that = this; this.init('confirmation', element, options); $(element).on('...
JavaScript
workspace/myproject/myproject/templates/example/assets/global/plugins/bootstrap-confirmation/bootstrap-confirmation.js
liangazhou/django-rdp
apache-2.0
6,963
249
codeparrot/github-code
57e945d107484668f1b897eb316f9872b75e99bcb10ac16cfadb97abb13bc02d
/* * Definitions for the NVM Express interface * Copyright (c) 2011-2014, Intel Corporation. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, * version 2, as published by the Free Software Foundation. * * This program...
C
kernel/include/uapi/linux/nvme.h
tejaswanjari/SMR_FS-EXT4
gpl-2.0
12,513
589
codeparrot/github-code
d4de061b46029433341f02c49c74af5ce1c793744432faf9602a56f062464c88
/* * linux/fs/read_write.c * * Copyright (C) 1991, 1992 Linus Torvalds */ #include <linux/slab.h> #include <linux/stat.h> #include <linux/fcntl.h> #include <linux/file.h> #include <linux/uio.h> #include <linux/aio.h> #include <linux/fsnotify.h> #include <linux/security.h> #include <linux/export.h> #include <li...
C
linux-3.14/fs/read_write.c
maoze/linux-3-14-for-arm
gpl-3.0
28,259
1,267
codeparrot/github-code
c799163e4406f7b0b4b1a0161df9c962bf6a9f0df0e9ed51c278710260e3da09
/* * Cypress APA trackpad with I2C interface * * Author: Dudley Du <dudl@cypress.com> * * Copyright (C) 2015 Cypress Semiconductor, Inc. * * This file is subject to the terms and conditions of the GNU General Public * License. See the file COPYING in the main directory of this archive for * more details. */ ...
C
oss/linux/linux-4.7/drivers/input/mouse/cyapa_gen6.c
geminy/aidear
gpl-3.0
21,022
746
codeparrot/github-code
a0677d94bc1fa557754b99a3e4b11de80b1c5831accf7ca373875c1ae06f1a8c
/* Copyright (c) 2012-2014, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and * only version 2 as published by the Free Software Foundation. * * This program is distributed in the...
C
kernel/drivers/clk/qcom/clock-local2.c
shakalaca/ASUS_ZenFone_ZE500KL
gpl-2.0
54,343
2,162
codeparrot/github-code
d9070e22bbff7773d601aafb2b0fd7d551e830bc33ccd42d60c4781f4051a76a
// SPDX-License-Identifier: GPL-2.0 /* * SH7786 Setup * * Copyright (C) 2009 - 2011 Renesas Solutions Corp. * Kuninori Morimoto <morimoto.kuninori@renesas.com> * Paul Mundt <paul.mundt@renesas.com> * * Based on SH7785 Setup * * Copyright (C) 2007 Paul Mundt */ #include <linux/platform_device.h> #include <l...
C
linux-5.8/arch/sh/kernel/cpu/sh4a/setup-sh7786.c
CSE3320/kernel-code
gpl-2.0
23,507
842
codeparrot/github-code
a558b984132387272ed2bb3b6092f018f438f7e4d56edd5de1ecffc72840358b
<?php /** * @file * Contains \Drupal\views\Plugin\views\filter\GroupByNumeric. */ namespace Drupal\views\Plugin\views\filter; /** * Simple filter to handle greater than/less than filters * * @ingroup views_filter_handlers * * @ViewsFilter("groupby_numeric") */ class GroupByNumeric extends NumericFilter { ...
PHP
web/core/modules/views/src/Plugin/views/filter/GroupByNumeric.php
komejo/d8demo-dev
mit
1,906
63
codeparrot/github-code
d946330ca2aa5ebabbf798182bdee153964b33c89f0d34ef67bd9943e47ceecf
/* Shared library add-on to xtables for AUDIT * * (C) 2010-2011, Thomas Graf <tgraf@redhat.com> * (C) 2010-2011, Red Hat, Inc. * * This program is distributed under the terms of GNU GPL v2, 1991 */ #include <stdio.h> #include <string.h> #include <xtables.h> #include <linux/netfilter/xt_AUDIT.h> enum { O_AUDIT_T...
C
v0.9/tools/iptables-1.4.20/extensions/libxt_AUDIT.c
Stevenwork/Innov_code
lgpl-3.0
2,282
102
codeparrot/github-code
8cf020ab8c2b61d2e0f5afaf7ad499fef2ca33ff7b00ba7a28834aecc9282425
/* * Copyright 2013 Tilera Corporation. All Rights Reserved. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation, version 2. * * This program is distributed in the hope that it will ...
C
virt/arch/tile/kernel/kgdb.c
AiJiaZone/linux-4.0
gpl-2.0
15,076
496
codeparrot/github-code
561fa13bd6c5debb2c5ee4e0e465e23c949db5bbef52dc27802850b610fe6904
//! moment.js locale configuration //! locale : Malayalam [ml] //! author : Floyd Pink : https://github.com/floydpink ;(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' ...
JavaScript
資源/CCEI/handsontable/demo/bower_components/moment/locale/ml.js
stevemoore113/ch_web_-
mit
2,816
81
codeparrot/github-code
5afce9992030a7dd0f30f6dd2a126b6fb676093473463b46452704f73187b4b5
/*! * MediaElementPlayer * http://mediaelementjs.com/ * * Creates a controller bar for HTML5 <video> add <audio> tags * using jQuery and MediaElement.js (HTML5 Flash/Silverlight wrapper) * * Copyright 2010-2013, John Dyer (http://j.hn/) * License: MIT * */ if (typeof jQuery != 'undefined') { mejs.$ = jQuery;...
JavaScript
wp-content/themes/mana/framework/Pagebuilder/js/mediaelement/mediaelementplayer.js
rodrigodemingo/abu_dhabi_ports
gpl-2.0
86,303
3,164
codeparrot/github-code
346947c597fa4ae772ef188a6c0e67a980c0f263fb094aafa3baa31d762d5670
/* * Performance events ring-buffer code: * * Copyright (C) 2008 Thomas Gleixner <tglx@linutronix.de> * Copyright (C) 2008-2011 Red Hat, Inc., Ingo Molnar * Copyright (C) 2008-2011 Red Hat, Inc., Peter Zijlstra <pzijlstr@redhat.com> * Copyright © 2009 Paul Mackerras, IBM Corp. <paulus@au1.ibm.com> * * For...
C
linux-4.3/kernel/events/ring_buffer.c
publicloudapp/csrutil
mit
18,355
780
codeparrot/github-code
d94493f440963365e08a4045c1a3587cd64995db7321e7d33160f26b692a12a3
/* * Watchdog for the 7101 PMU version found in the ALi M1535 chipsets * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version * 2 of the License, or (at your option) any later ve...
C
virt/drivers/watchdog/alim1535_wdt.c
talnoah/android_kernel_htc_dlx
gpl-2.0
10,169
456
codeparrot/github-code
364f45b9b6816e54ff611dc9fbe6480e1d04f2f01fea1ff9252470c8b101fce8
IonicModule .factory('$ionicClickBlock', [ '$document', '$ionicBody', '$timeout', function($document, $ionicBody, $timeout) { var CSS_HIDE = 'click-block-hide'; var cbEle, fallbackTimer, pendingShow; function preventClick(ev) { ev.preventDefault(); ev.stopPropagation(); } function addClickBloc...
JavaScript
www/lib/ionic/js/angular/service/clickBlock.js
datauy/donderecicloApp
mit
1,134
48
codeparrot/github-code
740446ac4524743b86b56756f3e0c7e46c68cc6185ca5ac66af6756cc62ac110
/* * Copyright 2008 Intel Corporation <hong.liu@intel.com> * Copyright 2008 Red Hat <mjg@redhat.com> * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * ...
C
ubuntu/i915/intel_opregion.c
vmayoral/ubuntu-vivid
gpl-2.0
27,413
916
codeparrot/github-code
2f3a890c332fc58d8034cffec7eae24102d9451131ee5efb3c2d881a30147644
// SPDX-License-Identifier: GPL-2.0+ /* * das16.c * DAS16 driver * * COMEDI - Linux Control and Measurement Device Interface * Copyright (C) 2000 David A. Schleef <ds@schleef.org> * Copyright (C) 2000 Chris R. Baugher <baugher@enteract.com> * Copyright (C) 2001,2002 Frank Mori Hess <fmhess@users.sourceforge.net>...
C
drivers/staging/comedi/drivers/das16.c
GuillaumeSeren/linux
gpl-2.0
30,158
1,201
codeparrot/github-code
dab739e84c9d1b070b9a15680fb443869457dabf00e3f53eb6e25a48e6488634
/* * RTC class driver for "CMOS RTC": PCs, ACPI, etc * * Copyright (C) 1996 Paul Gortmaker (drivers/char/rtc.c) * Copyright (C) 2006 David Brownell (convert to new framework) * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as pub...
C
linux-3.14/drivers/rtc/rtc-cmos.c
maoze/linux-3-14-for-arm
gpl-3.0
30,787
1,234
codeparrot/github-code
7ebbd91527c96de092ecf079300864bb9bb40c30541d6ea3b5db5d1746cea05b
/** * hoverIntent is similar to jQuery's built-in "hover" function except that * instead of firing the onMouseOver event immediately, hoverIntent checks * to see if the user's mouse has slowed down (beneath the sensitivity * threshold) before firing the onMouseOver event. * * hoverIntent r6 // 2011.02.26 // jQuery 1.5...
JavaScript
wp-content/themes/simpleo/js/jquery.hoverIntent.js
msj624/meet
gpl-2.0
4,385
112
codeparrot/github-code
18533102ff812f2feef86d25d4df45f89df4872405f55f29f5eeb58a6952040e
/* * Purna Chandra Mandal,<purna.mandal@microchip.com> * Copyright (C) 2015 Microchip Technology Inc. All rights reserved. * * This program is free software; you can distribute it and/or modify it * under the terms of the GNU General Public License (Version 2) as * published by the Free Software Foundation. * ...
C
oss/linux/linux-4.7/drivers/clk/microchip/clk-core.h
geminy/aidear
gpl-3.0
2,510
85
codeparrot/github-code
024707cef8761d00e0814f65a4e861e316dfefe797799842c4c0769bb23c2e5e
#ifndef _LINUX_OF_PLATFORM_H #define _LINUX_OF_PLATFORM_H /* * Copyright (C) 2006 Benjamin Herrenschmidt, IBM Corp. * <benh@kernel.crashing.org> * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Softw...
C
linux_kernel_galaxyplayer-master/include/linux/of_platform.h
KOala888/GB_kernel
gpl-2.0
2,004
69
codeparrot/github-code
bd26dc2f6d144afcadddc451d764f04b13ae02d83b5ffba148909bf6b23146f4
/* * Ultra Wide Band * IE Received notification handling. * * Copyright (C) 2008 Cambridge Silicon Radio Ltd. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License version * 2 as published by the Free Software Foundation. * * This progr...
C
virt/drivers/uwb/ie-rcv.c
talnoah/android_kernel_htc_dlx
gpl-2.0
1,632
56
codeparrot/github-code
5dd4a0079b4673aada0af2ea7a04d96a307f3ea586f9b18ddba5818313ba526e
/* * This file is part of Fred's Mandelbrot. * * Fred's Mandelbrot is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Fred's M...
C
projects/mandelbrot-bench/mb-main.c
fredmorcos/attic
isc
1,340
56
codeparrot/github-code
59ff7de6779c527872036ef85ebc7bc7b30fad1c4eb05f28a9ab0051e5eab4d9
package config import java.io.File import java.util.concurrent.TimeUnit import akka.event.Logging.LogLevel import akka.util.Timeout import ccn.CCNWireFormat import ccn.packet.CCNName import com.typesafe.config.ConfigException.BadValue import com.typesafe.config.{Config, ConfigFactory} import monitor.Monitor.NodeLog ...
Scala
src/main/scala/config/NodeConfig.scala
cn-uofbasel/nfn-scala
isc
3,809
133
codeparrot/github-code
2a019ebb5759bd132f0f08577b0ff1dce078956a58765fa2745e22cc99d3725f
/* * Copyright (c) 2010 Eduard Burtescu * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLA...
C++
src/modules/drivers/common/usb-mass-storage/UsbMassStorageDevice.cc
jmolloy/pedigree
isc
7,691
229
codeparrot/github-code
47438cc7ede4460400f0aeeb6782e719ab40ea32e170bd649c68c20e130b5f10
import * as d3 from 'd3'; import { d3keybinding } from '../lib/d3.keybinding.js'; import { t, textDirection } from '../util/locale'; import { actionChangePreset } from '../actions/index'; import { operationDelete } from '../operations/index'; import { modeBrowse } from '../modes/index'; import { svgIcon } from '../svg/...
JavaScript
modules/ui/preset_list.js
edpop/iD
isc
9,736
296
codeparrot/github-code
4a06ab2d9d3ac8922ffb037d840776d7a3310d15961b38a9c41cb11fc861bfc8
/* $OpenBSD: mpls_shim.c,v 1.8 2014/12/05 15:50:04 mpi Exp $ */ /* * Copyright (C) 1999, 2000 and 2001 AYAME Project, WIDE Project. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1...
C
netmpls/mpls_shim.c
orumin/openbsd-efivars
isc
3,052
100
codeparrot/github-code
c306641dafa3cfeaf273cce3fe9c5d1f46c491c764ba049481b69e035de18c7e
// tStream.h // // A stream is an abstract base class that specifies a consistent and simple API for input and output. For example, if // a tool needs to write files to disk, or memory, or possibly a custom file system, it makes sense to use the tStream // API since it abstracts away the underlying device. Essentia...
C
Modules/System/Inc/System/tStream.h
bluescan/tacent
isc
2,626
61
codeparrot/github-code
082feecd17014dc4a1ceb18a0304b6714c2f90f62c8d07a179957a0efc47b91a
<?php defined('SYSPATH') or die('No direct script access.'); /** * Blog post functionality. * * @package MMI Blog * @author Me Make It * @copyright (c) 2010 Me Make It * @license http://www.memakeit.com/license */ class Kohana_MMI_Blog_Wordpress_Post extends MMI_Blog_Post { /** * @var string driver name ...
PHP
classes/kohana/mmi/blog/wordpress/post.php
memakeit/mmi-blog
isc
23,961
1,049
codeparrot/github-code
7afe835f180ca5a1b25e8d700cbfcf65161a28f2693f930eac6a20cf5c37d0ce
'use strict'; // the gulp task runner var gulp = require('gulp'); // Gulp plugins var $ = require('gulp-load-plugins')(); // NPM modules var wiredep = require('wiredep').stream; var browserSync = require('browser-sync').create(); // Paths var paths = { styles: { vanilla: ['src/styles/**/*.css'], sass: ...
JavaScript
generators/todoApp/templates/gulpfile.js
lean-stack/generator-lean-angular
isc
1,935
84
codeparrot/github-code
a24d86863e8b557cc3eb4850067bc9f5247d63a95138f6a4c30caafa1d81e3fa
package net.x4a42.volksempfaenger.service.playlistdownload; import android.content.Intent; import net.x4a42.volksempfaenger.Log; class IntentParser { public interface Listener { void onRun(); } private Listener listener; public IntentParser setListener(Listener listener) { t...
Java
app/src/main/java/net/x4a42/volksempfaenger/service/playlistdownload/IntentParser.java
steve-goldman/volksempfaenger
isc
949
51
codeparrot/github-code
eccf805054c089c99e75fdc49c9e84450e77bfd6dd3f751cd210a5010711731f
const Discoverer = require('./Discoverer'); const droplit = require('droplit-plugin'); const request = require('request-lite'); const EventEmitter = require('events').EventEmitter; const PollInterval = 1000 * 10; // in ms const StepSize = 10; const TempLower = 1200; // in Kelvins const TempUpper = 6500; // in Kelvins ...
JavaScript
projects/droplit-plugin-aurora-nanoleaf/src/Nanoleaf.js
droplit/droplit.io-edge
isc
16,920
572
codeparrot/github-code
b54f9bacf99b5f1d9ddaed2ca038472a91e475827a0eabaf7823f5b1d0b18c7b
module.exports = function (options) { options = options || {} if (!options.keepassClient) { throw new Error('needs options.keepassClient') } if (!options.appDataClient) { throw new Error('needs options.appDataClient') } if (!options.dialog) { throw new Error('needs options.dialog') } retur...
JavaScript
main/lib/handlers/pathDialog.js
gustavnikolaj/keepass-reader
isc
896
39
codeparrot/github-code
adcdcbd9e94db7ae0e48aaabca908bbb73c4bdff36d5f50d2d2aba1fd9b8d9f8
/* Pickard module @antouank 2014 */ 'use strict'; var Pickard, chromeCommunication = require('./lib/chrome-communication'), log = require('consologger'), PORT = 9500; // main Pickard object Pickard = function(){ var thisPickard = this, generateLoadPromise; // increments on every Runt...
JavaScript
index.js
AntouanK/Pickard
isc
2,455
107
codeparrot/github-code
975905879c91e00ea703f1c5a43fa6b244a28a297d2020c678b2265c5feb446e
/** converts all textareas to ACE Editors in place. Sets some default * options on the editor. Expects Prototype, ACE and mode-latex to be * loaded beforehand. */ if(line_offset_number == null) var line_offset_number = 0; // Does some not-so-nice hot swapping so we can offset the line numbers. // This is used to ...
JavaScript
web/app/assets/javascripts/aceify-textareas.js
breunigs/gnt-eval
isc
3,629
102
codeparrot/github-code
5ebea214499ae47d66469cb75345908305588b723b90e96d4aa70cacd59e94c9
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Onset detection =============== .. autosummary:: :toctree: generated/ onset_detect onset_backtrack onset_strength onset_strength_multi """ import numpy as np import scipy from ._cache import cache from . import core from . import util from .util.e...
Python
librosa/onset.py
bmcfee/librosa
isc
19,285
624
codeparrot/github-code
5ee95e1dc59b897ae164f5d8077faca161cc25e3b57099102be526cc79bc8da9
/* ISC license. */ #include <sys/types.h> #include <errno.h> #include <stdio.h> #include <skalibs/stralloc.h> #include <skalibs/djbunix.h> #include <skalibs/random.h> #include <skalibs/unix-transactional.h> int atomic_rm_rf_tmp (char const *filename, stralloc *tmp) { size_t tmpbase = tmp->len ; size_t start ; i...
C
src/libunixonacid/atomic_rm_rf_tmp.c
skarnet/skalibs
isc
801
34
codeparrot/github-code
2cd3be0d57c3695d843a84372192c4e23f307b443be975e0821ff96a8ea76f68
import time from cloudshell.cp.aws.common import retry_helper class SubnetWaiter(object): PENDING = 'pending' AVAILABLE = 'available' INSTANCE_STATES = [PENDING, AVAILABLE] def __init__(self, delay=10, timeout=10): """ :param delay: the time in seconds between ...
Python
package/cloudshell/cp/aws/domain/services/waiters/subnet.py
QualiSystems/AWS-Shell
isc
1,404
50
codeparrot/github-code
c670c0adee0b2402dd227bf94c4b7bb6e873200d1fd96a9fc5b1f12a5d505894
/** * Sorts an array by allowing multiple sorting criteria. * * It applies the Schwartzian transform: * https://en.wikipedia.org/wiki/Schwartzian_transform * * Author: David Rivera * Github: https://github.com/jherax * License: "MIT" * * You can fork this project on github: * https://github.com/jherax/array-...
JavaScript
src/sort-by.js
jherax/array-sort-by
isc
1,629
64
codeparrot/github-code
3602d17a907ed751581ebbe11d499bfa2c8ad6e0e29f29aa61f372b906e11731
/* Copyright (c) 2021, 2022 Dennis Wölfing * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR D...
C
libc/src/wctype/wctype.c
dennis95/dennix
isc
1,863
79
codeparrot/github-code
84cf10821679e5cde04150040b45e994d59813d3f138f42e0e1040ddba3e4e52
package de.afbb.bibo.ui.form; import java.net.ConnectException; import org.eclipse.core.databinding.DataBindingContext; import org.eclipse.jface.layout.GridDataFactory; import org.eclipse.swt.SWT; import org.eclipse.swt.layout.GridData; import org.eclipse.swt.layout.GridLayout; import org.eclipse.swt.widgets.Composit...
Java
bundles/de.afbb.bibo.ui/src/main/java/de/afbb/bibo/ui/form/BorrowerForm.java
FI13/afbb-bibo
isc
3,475
83
codeparrot/github-code
e0dfaabf28fd1dce3ac1ab5831fbab5bade04d1534b19e83942267c373f5707c
import pkg_resources from tiget.conf import settings class GitError(Exception): pass def get_config(name): repo = settings.core.repository if repo is None: raise GitError('no repository found') return repo.config[name] def is_repo_initialized(): repo = settings.core.repository if repo...
Python
tiget/git.py
natano/tiget
isc
872
38
codeparrot/github-code
3b996e0c27f771ed5ee4f21dd0a1524ea0290732fea51ba631e9afd3d650b3ab
'use strict'; const async = require('async'); const debug = require('debug')('server-shutdown'); const httpAdapter = require('./adapter/http'); const socketioAdapter = require('./adapter/socketio'); function noop() { // this function does nothing } class ServerShutdown { constructor() { this.sockets = new Set();...
JavaScript
src/server-shutdown.js
MitMaro/node-server-shutdown
isc
4,161
156
codeparrot/github-code
dbb2fa4107496306216be48fc349dcf07a6f106cf73eb0957c2f8cfda6355c43
 /***************************************************************************** * Ngaro for Mono / .NET * * Copyright (c) 2009 - 2011, Simon Waite and Charles Childers * * Please compile with `gmcs` as `mcs` seems to have a * simple Console.in implementation. ********************************************...
C#
vm/experimental/CSharp/RetroForth.cs
mrallc/retro
isc
19,704
702
codeparrot/github-code
ea0691b0016b0d20bc78db8fe9dab067a336a21aa64de8b88cb75c9dc1fb6165
/// <reference path="../../typings/tsd.d.ts" /> /// <reference path="utils.ts" /> /// <reference path="../common/models.ts" /> import Config = require("./config"); import Models = require("../common/models"); import Utils = require("./utils"); import Interfaces = require("./interfaces"); import moment = require("momen...
TypeScript
src/service/backtest.ts
bappelt/tribeca
isc
14,423
396
codeparrot/github-code
5dc8147f4b787bc0599fb1e0e8d2a75b099529e7d297aa71da0304be731bbf6b
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } }...
JavaScript
lib/Icons/RemoveFormat.js
souporserious/react-editable
isc
4,145
57
codeparrot/github-code
de1fa2e395b32e4665c38bf6708bf12b0ef9b98d98e03e013e60781e9b5045fd
package main import ( "fmt" log "github.com/cihub/seelog" "github.com/btcsuite/goleveldb/leveldb" "github.com/kac-/umint" "github.com/kac-/umint/utxo" "github.com/mably/btcnet" "github.com/mably/btcwire" "time" ) func findStake(outPoint *btcwire.OutPoint, db *leveldb.DB, params *btcnet.Params, fromTime int64...
GO
tools/findstake/findChain.go
kac-/umint
isc
1,543
59
codeparrot/github-code
878f4625bd1ef8088cd1700b75ba30a312468fccc3836d4db1a32c6aa66101f1
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package com.azure.storage.blob.options; import com.azure.storage.blob.models.BlobHttpHeaders; import com.azure.storage.blob.models.BlobRequestConditions; import java.util.Map; /** * Extended options that may be passed w...
Java
sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/options/PageBlobCreateOptions.java
selvasingh/azure-sdk-for-java
mit
3,328
120
codeparrot/github-code
1d98cface57cb55a240c4cf2c001d43a2c1726e52009e0bcf1dbc94bab46fbb8
// jQuery Plugin // wrapper // (function($){ //Meepers //| //->Level // | // -> Room // | // -> Tile // -> Sprite Sprite = function () { var self = this; self.x = 0; self.y = 0; self.dx = 0; self.dy = 0; self.dir = DIR_UP; self.speed = 0; self.size = 0; self.thre...
JavaScript
js/mp-oop.js
stevetranby/10k
mit
12,286
489
codeparrot/github-code
e69cc1a45b2d0408d02c95fb8fdd308a3c52560c47bf6afffffcc509d9301f97
#include "build_config_file_builder.h" #include "solar/strings/string_build.h" #include "solar/io/file_path_helpers.h" #include "peon/peon.h" namespace solar { build_config_file_builder::build_config_file_builder(file_system& file_system) : _file_system(file_system) { } build_config_file_builder::build_config_...
C++
src/peon/builders/build_config_file_builder.cpp
jseward/peon
mit
2,290
70
codeparrot/github-code
b403845fa291a7fed9214ae5208f016c377855d6b149a382d5d7630c91319600
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>stalmarck: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.c...
HTML
clean/Linux-x86_64-4.07.1-2.0.6/released/8.11.0/stalmarck/8.6.0.html
coq-bench/coq-bench.github.io
mit
6,830
163
codeparrot/github-code