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
bf4c4cf4d29c5ca7af931df745942201156644f9ee55f74b0d9ff74f6d025913
/** * Plugin which allows items to be dropped onto a toolbar and be turned into new Toolbar items. * To use the plugin, you just need to provide a createItem implementation that takes the drop * data as an argument and returns an object that can be placed onto the toolbar. Example: * <pre> * Ext.create('Ext.ux.Too...
JavaScript
wsgi/container/pkgs/sencha/static/ext-4.2.2.1144/examples/ux/ToolbarDroppable.js
rch/flask-openshift
mit
4,771
152
codeparrot/github-code
aa6b04cc89a4769e0ab92825a504c58467f320f44d07b656569024565e09d327
/* * Copyright (c) 2011, Oracle and/or its affiliates. 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 of the License. * * This program is distribute...
Java
storage/ndb/clusterj/clusterj-test/src/main/java/testsuite/clusterj/model/DynamicPK.java
kbauskar/percona-server
gpl-2.0
1,496
56
codeparrot/github-code
7bfbb64989376291959b6c22a9f61137b94ff3953524857313ef56aed7f7a6ff
/** * 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-freemarker/src/test/java/org/apache/camel/component/freemarker/FreemarkerSetHeaderTest.java
snadakuduru/camel
apache-2.0
2,385
65
codeparrot/github-code
98b8801abf74672558df6c725c69da28ca9b3bc2ed6ceb3e0f6e66da6aace7ea
/* * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. * Copyright (C) 2008 Collabora Ltd. All rights reserved. * Copyright (C) 2008 Nuanti Ltd. * Copyright (C) 2008 INdT - Instituto Nokia de Tecnologia * Copyright (C) 2009-2010 ProFUSION embedded systems * Copyright (C) 2009-2011 Samsung Electronics * ...
C++
third_party/WebKit/Source/WebCore/plugins/efl/PluginPackageEfl.cpp
leighpauls/k2cro4
bsd-3-clause
5,301
169
codeparrot/github-code
a256c0d2fb853e215e2fc01bbad1cab52f42958778e70a1816eb25c37b5eafbb
#ifndef __ASM_ARM_CMPXCHG_H #define __ASM_ARM_CMPXCHG_H #include <linux/irqflags.h> #include <asm/barrier.h> #if defined(CONFIG_CPU_SA1100) || defined(CONFIG_CPU_SA110) /* * On the StrongARM, "swp" is terminally broken since it bypasses the * cache totally. This means that the cache becomes inconsistent, and, * s...
C
uefi/linux-source-3.8.0/arch/arm/include/asm/cmpxchg.h
SanDisk-Open-Source/SSD_Dashboard
gpl-2.0
5,648
249
codeparrot/github-code
e44dbc89be7cc52183443c11735c97e4515ba09f41000d5f6b92f593b682f2a2
/** * 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-jetty9/src/test/java/org/apache/camel/component/jetty/async/MyAsyncEndpoint.java
RohanHart/camel
apache-2.0
2,122
75
codeparrot/github-code
842ee0970b1dad98010d6f77a9563e7e557eacd018ff7c8757bfce939128d7a4
/* SCTP kernel implementation * (C) Copyright IBM Corp. 2001, 2004 * Copyright (c) 1999-2000 Cisco, Inc. * Copyright (c) 1999-2001 Motorola, Inc. * Copyright (c) 2001 Intel Corp. * * This file is part of the SCTP kernel implementation * * This SCTP implementation is free software; * you can redistribute it and...
C
include/net/sctp/constants.h
poondog/kangaroo-m7-mkII
gpl-2.0
8,813
328
codeparrot/github-code
0befca2213b83fa6a784c067de8afa55cea398eb915221035e8ecd09b1be9011
/* * * (C) COPYRIGHT 2008-2012 ARM Limited. All rights reserved. * * This program is free software and is provided to you under the terms of the GNU General Public License version 2 * as published by the Free Software Foundation, and any use by you of this program is subject to the terms of such GNU licence. * ...
C
drivers/gpu/vithar/ump/src/devicedrv/linux/ump_kernel_linux_mem.c
arshull/GalaTab3_KK_Kernel_T310
gpl-2.0
5,691
241
codeparrot/github-code
d0c209a1736c1f8173306509f61d2747b1bf2581e10f06e70709cabb1a17240e
<?php // This file is part of Moodle - http://moodle.org/ // // Moodle 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. // // Moodle ...
PHP
search/cli/indexer.php
andrewhancox/moodle
gpl-3.0
3,795
113
codeparrot/github-code
3713b3d678e63c3fa28de1f3bfb9d9ccfeb321588f79935c77e6ec70d1635138
/** * 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-jms/src/test/java/org/apache/camel/component/jms/issues/BruceHandlingBeanExceptionTest.java
ge0ffrey/camel
apache-2.0
3,124
81
codeparrot/github-code
011538d84f26fb51f425d57c2576f2ecc8f0f02a82b599d37170830b4b362da6
// SPDX-License-Identifier: GPL-2.0+ /* * Copyright (C) 2016 Freescale Semiconductor, Inc. * Copyright 2017-2018 NXP * Author: Dong Aisheng <aisheng.dong@nxp.com> */ #include <linux/irqchip.h> #include <linux/mfd/syscon.h> #include <linux/of_platform.h> #include <linux/regmap.h> #include <asm/mach/arch.h> #incl...
C
linux-5.4/arch/arm/mach-imx/mach-imx7ulp.c
BPI-SINOVOIP/BPI-Mainline-kernel
gpl-2.0
1,641
78
codeparrot/github-code
50d79b0283f254ae3e1648e6fbc25d91a85cf575fd6bacb63618d2ee1a5fb9f1
#undef TRACE_SYSTEM #define TRACE_SYSTEM writeback #if !defined(_TRACE_WRITEBACK_H) || defined(TRACE_HEADER_MULTI_READ) #define _TRACE_WRITEBACK_H #include <linux/backing-dev.h> #include <linux/device.h> #include <linux/writeback.h> struct wb_writeback_work; DECLARE_EVENT_CLASS(writeback_work_class, TP_PROTO(struc...
C
release/src-rt-7.x.main/src/linux/linux-2.6.36/include/trace/events/writeback.h
wkritzinger/asuswrt-merlin
gpl-2.0
4,687
160
codeparrot/github-code
3ccd8e96092c5babfc77b6b1184a2855c0516ab7a4979cc4c23454977888ad84
/* Highcharts JS v5.0.2 (2016-10-26) (c) 2009-2016 Torstein Honsi License: www.highcharts.com/license */ (function(w){"object"===typeof module&&module.exports?module.exports=w:w(Highcharts)})(function(w){(function(a){function l(a,b,d){this.init(a,b,d)}var t=a.each,u=a.extend,g=a.merge,n=a.splat;u(l.prototype,{init...
JavaScript
templates/backend/light/assets/plugin/chart/highcharts/js/highcharts-more.js
Keitaro-Bzh/MyERP
gpl-3.0
25,300
57
codeparrot/github-code
8a51e0fb7949a24d9bcfbda3357749fa411ab6544ca4bf3523a45846ffbf7aaa
/* * (C) Copyright 2003-2004 * Humboldt Solutions Ltd, adrian@humboldt.co.uk. * This is a combined i2c adapter and algorithm driver for the * MPC107/Tsi107 PowerPC northbridge and processors that include * the same I2C unit (8240, 8245, 85xx). * * Release 0.8 * * This file is licensed under the terms of the G...
C
linux/linux-kernel/drivers/i2c/busses/i2c-mpc.c
kv193/buildroot
gpl-2.0
20,461
789
codeparrot/github-code
03f6b6a35279f27e0eab7a71261dba0686f32b89dafafa96d2f602d764b56f39
/** * Copyright 2010 Mark Wyszomierski */ package com.joelapenna.foursquared.widget; import java.io.IOException; import java.util.Observable; import java.util.Observer; import android.content.Context; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.net.Uri; import android.os.H...
Java
main/src/com/joelapenna/foursquared/widget/FriendSearchAddFriendAdapter.java
aasaandinesh/foursquared
apache-2.0
6,293
185
codeparrot/github-code
a29c10228568ff38972cff8febef91c17a926c90dff0f0ec4ef16541c0367097
#include <linux/version.h> #include <asm/io.h> #include <linux/types.h> #include "XGIfb.h" #include "vb_def.h" #include "vgatypes.h" #include "vb_struct.h" #include "vb_util.h" #include "vb_setmode.h" #include "vb_ext.h" extern unsigned char XGI330_SoftSetting; extern unsigned char XGI330_OutputSelect; extern un...
C
release/src-rt-7.x.main/src/linux/linux-2.6.36/drivers/staging/xgifb/vb_ext.c
sigma-random/asuswrt-merlin
gpl-2.0
36,490
1,055
codeparrot/github-code
b6917d3e41d2734c12ee7f7b34e82cbd13150783845a0187b0d6f764cb5bc897
#include <dirent.h> #include <errno.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include <sys/types.h> #include <sys/stat.h> #include <sys/param.h> #include <fcntl.h> #include <unistd.h> #include <inttypes.h> #include "build-id.h" #include "util.h" #include "debug.h" #include "machine.h" #include "sym...
C
tools/perf/util/symbol.c
groeck/linux
gpl-2.0
44,680
1,951
codeparrot/github-code
59d56904837054e80b17c8cc9429c26a285285e6bf4f85fc467ba74b4ebdb63b
// 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. namespace MS.Internal.Xml.XPath { using System; using System.Xml; using System.Xml.XPath; using Syst...
C#
src/System.Private.Xml/src/System/Xml/XPath/Internal/XPathMultyIterator.cs
nbarbettini/corefx
mit
5,792
188
codeparrot/github-code
f6f7382117c1d6c93c1ce59d98d56fa3c8eaa3a938a28ef2be44448827be686b
/****************************************************************************** * * Copyright(c) 2003 - 2008 Intel Corporation. All rights reserved. * * 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 Fr...
C
src/drivers/net/wireless/iwlwifi/iwl-dev.h
felixhaedicke/nst-kernel
gpl-2.0
27,806
1,052
codeparrot/github-code
6e043b678436df33cf6b84a144eea94cae1a4394d85318f2be10f8e38b6c3a5a
\documentclass{article} \usepackage[fancyhdr,pdf]{latex2man} \input{common.tex} \begin{document} \begin{Name}{3}{unw\_get\_reg}{David Mosberger-Tang}{Programming Library}{unw\_get\_reg}unw\_get\_reg -- get register contents \end{Name} \section{Synopsis} \File{\#include $<$libunwind.h$>$}\\ \Type{int} \Func{unw\_g...
TeX
thirdparty/libunwind-0.99-beta/doc/unw_get_reg.tex
chillbu/cblib
apache-2.0
2,423
78
codeparrot/github-code
032ff0fb4a5b9c50bed5b55705b2e15b30d493eac00c0ad917cd0cc9f0d5d727
/* ========================================================= * vc_grid.js v1.0 * ========================================================= * Copyright 2014 Wpbakery * * Vc Grid * ========================================================= */ var VcGrid, vcGridSettings = { addItemsAnimation: 'zoomIn', mobileWindow...
JavaScript
wp-content/upgrade/js_composer1/js_composer/assets/js/components/vc_grid.js
mfarifudin/moromoro
gpl-2.0
7,734
243
codeparrot/github-code
05b579291ee07adfaa6a50673252ffb08c5f323a310783ac425a693c8cd78e99
/* * aQuantia Corporation Network Driver * Copyright (C) 2014-2017 aQuantia Corporation. All rights reserved * * 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. *...
C
linux/drivers/net/ethernet/aquantia/atlantic/aq_vec.h
eabatalov/au-linux-kernel-autumn-2017
gpl-3.0
1,418
43
codeparrot/github-code
f78158da9a6e78d3f770413ccf46fc4e0c8c7759316d2d76481dc29c8c52feb6
cordova.define("cordova-plugin-file.DirectoryReader", function(require, exports, module) { /* * * 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 A...
JavaScript
youwont/platforms/ios/www/plugins/cordova-plugin-file/www/DirectoryReader.js
ChiMarvine/chartreuse-triceratops
mit
2,729
76
codeparrot/github-code
f2a62e7e4c0baf7b78f4037083829afd52e34183f5a6128f8adfdd6890d6cfea
/** * 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
tseenliu/FedHDFS-hadoop-src/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/permission/TestFsPermission.java
tseen/Federated-HDFS
apache-2.0
24,274
709
codeparrot/github-code
76e76fbef9bd4d2d31ffd967b35047f1d99168c146aa5800754a2a1db6f6e398
YUI.add('recordset-sort', function(Y) { /** * Adds default and custom sorting functionality to the Recordset utility * @module recordset * @submodule recordset-sort */ var Compare = Y.ArraySort.compare, isValue = Y.Lang.isValue; /** * Plugin that adds default and custom sorting functionality to the Recordset ut...
JavaScript
ajax/libs/yui/3.3.0pr4/recordset/recordset-sort-debug.js
bootcdn/cdnjs
mit
5,535
208
codeparrot/github-code
b8034c1c4f351ea44a47ae0197624a436f2d388d4b4f7b9f601b7140f8e17a3d
/* An arena-like memory interface for the compiler. */ #ifndef Py_PYARENA_H #define Py_PYARENA_H #ifdef __cplusplus extern "C" { #endif typedef struct _arena PyArena; /* PyArena_New() and PyArena_Free() create a new arena and free it, respectively. Once an arena has been created, it can be used to a...
C
wrap/pyllbc/Python2.7.8/Include/pyarena.h
lailongwei/llbc
mit
2,693
63
codeparrot/github-code
76bcfb2355ab11ead50eb09ca115c15cfa8c8e75e3899c7333d6873a0b5ab8b7
var frontend = require('../controllers/frontend'), config = require('../config'), express = require('express'), utils = require('../utils'), frontendRoutes; frontendRoutes = function frontendRoutes(middleware) { var router = express.Router(), subdir = config.paths.subdir,...
JavaScript
psychopomp/Ghost-0.7.0/Ghost-0.7.0/core/server/routes/frontend.js
jw-psychopomp/NewOrleansGhostworks-theme
mit
3,176
88
codeparrot/github-code
f847282b386ce48b1dca0f11bb3dbf2dcc4dcf77ef86d107f641af50499e53f4
/* * TI DaVinci DM644x chip specific setup * * Author: Kevin Hilman, Deep Root Systems, LLC * * 2007 (c) Deep Root Systems, LLC. This file is licensed under * the terms of the GNU General Public License version 2. This program * is licensed "as is" without any warranty of any kind, whether express * or implied....
C
arch/arm/mach-davinci/dm644x.c
mbrugg/MC-EWIO-KERNEL-ORG
gpl-2.0
18,611
806
codeparrot/github-code
2d9d312e49281228f29138cfe2cb9b01892d8eb9534daa4a86cb2cdfda74425f
/* libc/sys/linux/termios.c - Terminal control */ /* Written 2000 by Werner Almesberger */ #include <errno.h> #include <sys/types.h> #include <sys/termios.h> #include <sys/ioctl.h> int tcgetattr(int fd,struct termios *termios_p) { return ioctl(fd,TCGETS,termios_p); } int tcsetattr(int fd,int optional_actions...
C
userland/newlib/newlib/libc/sys/linux/termios.c
GarethNelson/Zoidberg
gpl-2.0
1,115
73
codeparrot/github-code
8bf647bbcd0438f31cb20960ad18c2b83bdd539cc3beb596f285ffaca2ec318a
/* * USB network interface driver for Samsung Kalmia based LTE USB modem like the * Samsung GT-B3730 and GT-B3710. * * Copyright (C) 2011 Marius Bjoernstad Kotsbak <marius@kotsbak.com> * * Sponsored by Quicklink Video Distribution Services Ltd. * * Based on the cdc_eem module. * * This program is free softwar...
C
virt/drivers/net/usb/kalmia.c
AiJiaZone/linux-4.0
gpl-2.0
10,106
367
codeparrot/github-code
32c9ccb63f2d8de1dd8b35e203e736d8bc8605f3406bc673593b2bbf351634e1
/* HMac.java -- Copyright (C) 2001, 2002, 2003, 2006 Free Software Foundation, Inc. This file is a 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 of the ...
Java
uefi/gcc/gcc-4.6.3/libjava/classpath/gnu/javax/crypto/mac/HMac.java
SanDisk-Open-Source/SSD_Dashboard
gpl-2.0
9,934
264
codeparrot/github-code
456eb3e8e4aa57bbb6a5724d728e0756e298299483aaf6e9739135d822b92e89
/* DragSourceEvent.java -- Copyright (C) 2002 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 your opt...
Java
uefi/gcc/gcc-4.6.3/libjava/classpath/java/awt/dnd/DragSourceEvent.java
SanDisk-Open-Source/SSD_Dashboard
gpl-2.0
2,684
94
codeparrot/github-code
809895a884d600a19109f60e0decdb220aa90f60e81e4cd04c64c8ba81999581
/* * arch/arm/mach-ks8695/board-acs5k.c * * Brivo Systems LLC, ACS-5000 Master Board * * Copyright 2008 Simtec Electronics * Daniel Silverstone <dsilvers@simtec.co.uk> * * 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...
C
source/kernel/arch/arm/mach-ks8695/board-acs5k.c
mikedlowis-prototypes/albase
bsd-2-clause
5,464
233
codeparrot/github-code
28e914a01146a4f2367105c6f71b219bcaf542cd933c29ea26b8a308e1cce822
/* * Copyright (c) 2001-2002 by David Brownell * * 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 version. * * This progra...
C
linux-2.6.39/drivers/usb/host/ehci-dbg.c
chaoling/test123
gpl-2.0
29,243
1,084
codeparrot/github-code
e269ad4926e00d9f1a14aac26de1b6ee051858b961d52098a9d665b0ed78db63
{% load i18n admin_static %}<!DOCTYPE html> {% get_current_language as LANGUAGE_CODE %}{% get_current_language_bidi as LANGUAGE_BIDI %} <html lang="{{ LANGUAGE_CODE|default:"en-us" }}" {% if LANGUAGE_BIDI %}dir="rtl"{% endif %}> <head> <title>{% block title %}{% endblock %}</title> <link rel="stylesheet" type="text/css...
HTML
venv_2_7/lib/python2.7/site-packages/Django-1.9-py2.7.egg/django/contrib/admin/templates/admin/base.html
Vvucinic/Wander
artistic-2.0
3,301
89
codeparrot/github-code
4001feb5f6227fd979c7360b27541e9cac585ed7d220bc3bca7730cf3667a66a
/* * Renesas R-Car GPIO Support * * Copyright (C) 2013 Magnus Damm * * 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 * * This program is distributed in ...
C
virt/drivers/gpio/gpio-rcar.c
mericon/Xp_Kernel_LGH850
gpl-2.0
13,065
498
codeparrot/github-code
7da9e753553cd1ef290e2c56db3bff9ca9e8a7b5b95aa45f56887d5bee4576f7
/***************************************************************************** * wanmain.c WAN Multiprotocol Router Module. Main code. * * This module is completely hardware-independent and provides * the following common services for the WAN Link Drivers: * o WAN device management (registering, unregistering) * ...
C
net/wanrouter/wanmain.c
rex-xxx/Explay_A350_kernel_source_code
gpl-2.0
19,590
790
codeparrot/github-code
dbecc9342f41a5e7a59bbc509e74b39ec3af3454105ea9667170caa5ffa36f65
/**************************************************************************** Copyright (c) 2012-2013 cocos2d-x.org http://www.cocos2d-x.org 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...
Java
tillmap/cocos2d/plugin/plugins/alipay/proj.android/src/org/cocos2dx/plugin/IAPAlipay.java
cmdwin32/tileMapHomework
unlicense
10,464
345
codeparrot/github-code
e22fb9d8dca70d910e1ed509036385a11a7532739e449e5e02cdc681d641ee3d
/* Decimal 32-bit format module for the decNumber C Library. Copyright (C) 2005-2013 Free Software Foundation, Inc. Contributed by IBM Corporation. Author Mike Cowlishaw. This file is part of GCC. GCC is free software; you can redistribute it and/or modify it under the terms of the GNU General Public ...
C
measurer/gdb-7.9/libdecnumber/dpd/decimal32.c
armoredsoftware/protocol
bsd-3-clause
19,238
484
codeparrot/github-code
0450f3a83c3e83755a6e0a9d34ddf8006d7f50283e3ca95af3d35690f0a4311f
/* Copyright (c) 2002,2003,2005 CrystalClear Software, Inc. * Use, modification and distribution is subject to the * Boost Software License, Version 1.0. (See accompanying * file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt) * Author: Jeff Garland, Bart Garst */ #ifndef DATE_TIME_DATE_DST_TRANSITION_DA...
C++
xray/SDK/include/boost/date_time/dst_transition_generators.hpp
hpl1nk/nonamegame
gpl-3.0
2,275
76
codeparrot/github-code
68a5d904fd71a41e940006de315b481c380ca92afabceaaeb5c54f7341075348
SET @GUID := 62851; SET @TRIGGER := 4951; SET @ELM_BUNNY := 23837; SET @ELM_BUNNY_LARGE := 24110; SET @OACHANOA := 26648; SET @PEARL := 188422; UPDATE `gameobject_template` SET `AIName`='SmartGameObjectAI', `ScriptName`='' WHERE `entry`=@PEARL; UPDATE `creature_template` SET `speed_run`=2.14286, `faction_A`=190, `fac...
SQL
sql/updates/world/2013_05_23_00_world_misc.sql
EndScene/Catherine_4.3.4
gpl-2.0
10,587
97
codeparrot/github-code
93bb21e36e0e5f91d36f4fb7886fd0e5ace4686369211a83fdb1631747e04d8f
// Copyright 2013 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package runtime import "unsafe" type sigctxt struct { info *siginfo ctxt unsafe.Pointer } func (c *sigctxt) regs() *mcontextt { return &(*ucontextt)(c.ctx...
GO
src/runtime/signal_netbsd_386.go
arschles/go-1
bsd-3-clause
1,807
39
codeparrot/github-code
66dda1a31345daef7d726c0d99813e1d41f0dd2ec87fc142a573a44dbd99e07d
#ifndef EMITTERMANIP_H_62B23520_7C8E_11DE_8A39_0800200C9A66 #define EMITTERMANIP_H_62B23520_7C8E_11DE_8A39_0800200C9A66 #if defined(_MSC_VER) || \ (defined(__GNUC__) && (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || \ (__GNUC__ >= 4)) // GCC supports "pragma once" correc...
C
yaml/include/yaml-cpp/emittermanip.h
ArielSaldana/sunset
mit
3,147
138
codeparrot/github-code
53a2c38785f80fd96c2960d970ed75d132fc2e810191f88dbe618149b8283dc0
/* * Watchdog driver for IMX2 and later processors * * Copyright (C) 2010 Wolfram Sang, Pengutronix e.K. <w.sang@pengutronix.de> * * some parts adapted by similar drivers from Darius Augulis and Vladimir * Zapolskiy, additional improvements by Wim Van Sebroeck. * * This program is free software; you can redist...
C
linux/linux-kernel/drivers/watchdog/imx2_wdt.c
kv193/buildroot
gpl-2.0
9,539
363
codeparrot/github-code
d4fa59ca9c772656e1533b4de411f8881a89d110a5bd89b82f9d56a57727e28f
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __NV20_GR_H__ #define __NV20_GR_H__ #define nv20_gr(p) container_of((p), struct nv20_gr, base) #include "priv.h" struct nv20_gr { struct nvkm_gr base; struct nvkm_memory *ctxtab; }; int nv20_gr_new_(const struct nvkm_gr_func *, struct nvkm_device *, int, struct nvkm...
C
linux-4.19/drivers/gpu/drm/nouveau/nvkm/engine/gr/nv20.h
BPI-SINOVOIP/BPI-Mainline-kernel
gpl-2.0
942
36
codeparrot/github-code
52fbf788c347e5682bb6ebd9e672e32c461ad5b5e3c1c2c53a603dd00c1ea5f0
/*** -*- linux-c -*- ********************************************************** Driver for Atmel at76c502 at76c504 and at76c506 wireless cards. Copyright 2004 Simon Kelley. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License ...
C
unionfs-3.10.y/drivers/net/wireless/atmel_pci.c
prasidh09/cse506
gpl-2.0
2,287
78
codeparrot/github-code
b8dba4a2e8fc50109cf1233a16eba15f56b07e62203a418013e7cdcb15103ee3
/* * Interrupt driver for RICOH583 power management chip. * * Copyright (c) 2011-2012, NVIDIA CORPORATION. All rights reserved. * Author: Laxman dewangan <ldewangan@nvidia.com> * * based on code * Copyright (C) 2011 RICOH COMPANY,LTD * * This program is free software; you can redistribute it and/or modif...
C
virt/drivers/mfd/rc5t583-irq.c
AiJiaZone/linux-4.0
gpl-2.0
11,762
406
codeparrot/github-code
909ebf0c0597b9e175e4009fe44c2c7b3f157fd97441eb203bbe170700bf9124
/* 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...
Java
ttoApp/platforms/android/CordovaLib/src/org/apache/cordova/CordovaInterfaceImpl.java
shyampurk/tto-bluemix
mit
8,823
244
codeparrot/github-code
d53ba4669a68acab0e65ea3183c60942341056f442fd755a239425c62175c483
/* Copyright (C) 2009-2015 B.A.T.M.A.N. contributors: * * Marek Lindner * * 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 distributed in the hope that it...
C
net/batman-adv/gateway_client.h
hirojikmr/2015-10-28_kern_reading
gpl-2.0
1,861
49
codeparrot/github-code
9a6257343b14f899be8b93699ecc3b6101b6ca7a7f6aa13172b72346ee1c7f25
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Form; use Symfony\Component\OptionsResolver\OptionsRe...
PHP
vendors/silex/symfony/form/Symfony/Component/Form/AbstractTypeExtension.php
nandy-andy/performance-blog
gpl-2.0
2,315
89
codeparrot/github-code
1c29710cbfb8358bee2a8faebb55b616a1b63db2e08e830ad52f3428cb772b4a
#include <linux/err.h> #include <linux/kernel.h> #include <linux/init.h> #include <linux/io.h> #include <linux/platform_device.h> #include <linux/ata_platform.h> #include <asm/sibyte/board.h> #include <asm/sibyte/sb1250_genbus.h> #include <asm/sibyte/sb1250_regs.h> #if defined(CONFIG_SIBYTE_SWARM) || defined(CONFIG_S...
C
virt/arch/mips/sibyte/swarm/platform.c
mericon/Xp_Kernel_LGH850
gpl-2.0
3,516
140
codeparrot/github-code
865b1a105e10559513b6bd6e27f9efad369ae4b0b179e1b7f40caef3c9656b2f
# -*- coding: utf-8 -*- import cStringIO import datetime import functools import itertools import time import psycopg2 import pytz from openerp import models, api, _ from openerp.tools import DEFAULT_SERVER_DATE_FORMAT, DEFAULT_SERVER_DATETIME_FORMAT, ustr REFERENCING_FIELDS = set([None, 'id', '.id']) def only_ref_f...
Python
openerp/addons/base/ir/ir_fields.py
eino-makitalo/odoo
agpl-3.0
17,664
450
codeparrot/github-code
e84444a41885a5f0bbe16541ab3e866b8148864b5991a35c6c827a2259a759d2
/* * ADE7854/58/68/78 Polyphase Multifunction Energy Metering IC Driver (SPI Bus) * * Copyright 2010 Analog Devices Inc. * * Licensed under the GPL-2 or later. */ #include <linux/device.h> #include <linux/kernel.h> #include <linux/spi/spi.h> #include <linux/slab.h> #include <linux/module.h> #include <linux/iio/...
C
virt/drivers/staging/iio/meter/ade7854-spi.c
AiJiaZone/linux-4.0
gpl-2.0
7,182
327
codeparrot/github-code
c71d30f88650235f37be30cbf6e37f2886b72ce382df342c45a0574c715153ca
/* * Copyright (C) 2001-2004 by David Brownell * * 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 version. * * This progra...
C
kernelsource/msm/drivers/usb/host/ehci-hub.c
CoderSherlock/Mondroid
gpl-2.0
37,256
1,354
codeparrot/github-code
31c18a52689ff47d4beea8d7729d8520c315ded1b25d52415171803129135c1e
/* * linux/kernel/sys.c * * Copyright (C) 1991, 1992 Linus Torvalds */ #include <linux/export.h> #include <linux/mm.h> #include <linux/utsname.h> #include <linux/mman.h> #include <linux/reboot.h> #include <linux/prctl.h> #include <linux/highuid.h> #include <linux/fs.h> #include <linux/kmod.h> #include <linux/pe...
C
kernel/sys.c
bheu/raspberrypi_linux
gpl-2.0
58,052
2,409
codeparrot/github-code
eff90f757fa75bf3addcc168a3f76753013c140b92a83f0d17675f0ee6f12f7d
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* user-type.h: User-defined key type * * Copyright (C) 2005 Red Hat, Inc. All Rights Reserved. * Written by David Howells (dhowells@redhat.com) */ #ifndef _KEYS_USER_TYPE_H #define _KEYS_USER_TYPE_H #include <linux/key.h> #include <linux/rcupdate.h> #ifdef CONFIG_...
C
linux-5.8/include/keys/user-type.h
CSE3320/kernel-code
gpl-2.0
1,959
59
codeparrot/github-code
b325650ff40fa59c30791958a9a0c32094d1be1f6a1c7dff89ba3c6be7936abd
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ALPHA_CACHEFLUSH_H #define _ALPHA_CACHEFLUSH_H #include <linux/mm.h> /* Note that the following two definitions are _highly_ dependent on the contexts in which they are used in the kernel. I personally think it is criminal how loosely defined these macros are. *...
C
linux-5.8/arch/alpha/include/asm/cacheflush.h
CSE3320/kernel-code
gpl-2.0
2,039
63
codeparrot/github-code
18b7bc2072089ffac8ae8ce0edf26fc15e9ba7bf6ada4724846ff08e14adcccf
# This program is free software; you can redistribute it and/or modify # it under the terms of the (LGPL) GNU Lesser General Public License as # published by the Free Software Foundation; either version 3 of the # License, or (at your option) any later version. # # This program is distributed in the hope that it will ...
Python
svn-server/lib/suds/xsd/query.py
marcellodesales/svnedge-console
agpl-3.0
6,451
208
codeparrot/github-code
5b565e34db55590b9fa4be6fc73d3f862ea89a7aaa0109572c9bc039365dd5b2
/******************************************************************* * This file is part of the Emulex Linux Device Driver for * * Fibre Channel Host Bus Adapters. * * Copyright (C) 2004-2009 Emulex. All rights reserved. * * EMULEX and SLI are trademarks of Emulex. ...
C
uefi/linux-source-3.8.0/drivers/scsi/lpfc/lpfc_mbox.c
SanDisk-Open-Source/SSD_Dashboard
gpl-2.0
78,645
2,357
codeparrot/github-code
44d447e61ab6544590f03a4548f053d3f5a64a8de00a846c2fb9c27bf38fbbb3
/* { dg-do compile { target powerpc*-*-* } } */ /* { dg-require-effective-target powerpc_altivec_ok } */ /* { dg-options "-maltivec -mabi=altivec -O2" } */ /* Testcase by Richard Guenther and Steven Bosscher. Check that "easy" AltiVec constants are correctly synthesized if they need to be reloaded. */ typedef ...
C
uefi/gcc/gcc-4.6.3/gcc/testsuite/gcc.target/powerpc/altivec-splat.c
SanDisk-Open-Source/SSD_Dashboard
gpl-2.0
1,512
50
codeparrot/github-code
8f0ad143de0a5eae91c6e6db28bd59730c8fbe1c70474c78fe79d7e1a416ba39
/** @copyright Copyright (c) 2011 - 2013, INSIDE Secure Oy. All rights reserved. */ /* This header provides implementation definitions required by software modules. The definitions are used only in the implementation code including module internal header and implementation files. This header file shall n...
C
net/netfilter/interceptor/implementation_defs.h
drikinukoda/android_kernel_lge_e8lte
gpl-2.0
13,030
484
codeparrot/github-code
688c419ec9276e746d53c3bfc65d20b7e7ad2e49c4cdb143143d31698171d5ca
/* Copyright (c) 2000, 2012, Oracle and/or its affiliates. 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 of the License. This program is distributed i...
C++
packages/mariadb/deps/libmariadbclient/extra/yassl/taocrypt/include/hash.hpp
monkey/duda
apache-2.0
3,231
111
codeparrot/github-code
8f3024d71e79ecc09d6d9f633a31327a8b727ef858fb35e1450d9e25c175ad91
/* pci_sun4v.c: SUN4V specific PCI controller support. * * Copyright (C) 2006, 2007, 2008 David S. Miller (davem@davemloft.net) */ #include <linux/kernel.h> #include <linux/types.h> #include <linux/pci.h> #include <linux/init.h> #include <linux/slab.h> #include <linux/interrupt.h> #include <linux/percpu.h> #include...
C
unionfs-3.10.y/arch/sparc/kernel/pci_sun4v.c
prasidh09/cse506
gpl-2.0
24,298
1,025
codeparrot/github-code
f99907d68251f62511a239f6994908f9c896b20123d278aa16ca0a873c971874
/* * CPUMF HW sampler functions and internal structures * * Copyright IBM Corp. 2010 * Author(s): Heinz Graalfs <graalfs@de.ibm.com> */ #ifndef HWSAMPLER_H_ #define HWSAMPLER_H_ #include <linux/workqueue.h> struct hws_qsi_info_block /* QUERY SAMPLING information block */ { /* Bit(s) */ unsigned...
C
virt/arch/s390/oprofile/hwsampler.h
talnoah/android_kernel_htc_dlx
gpl-2.0
5,371
114
codeparrot/github-code
7f0ae2a93afaf78ec50e2b024acce2cddfdbb1b4508aafb791dbbdacd9727536
<?php //============================================================+ // File name : example_015.php // Begin : 2008-03-04 // Last Update : 2013-05-14 // // Description : Example 015 for TCPDF class // Bookmarks (Table of Content) // and Named Destinations. // // Author: Nicola Asuni...
PHP
www/lib/tcpdf/examples/example_015.php
aassou/Annahda
mit
5,632
162
codeparrot/github-code
e706059103ad5442edf95a97ba23d3cca00e974ad86ba5ff8e937e2c31c8bc55
/* * Copyright 2006 The Android Open Source Project * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkDisplayRandom.h" #include "SkInterpolator.h" enum SkDisplayRandom_Properties { SK_PROPERTY(random), SK_PROPERTY(seed) }; #if SK_USE...
C++
third_party/skia/src/animator/SkDisplayRandom.cpp
CTSRD-SOAAP/chromium-42.0.2311.135
bsd-3-clause
1,692
66
codeparrot/github-code
bcdfea33483a08bd037b2ac4d36f3724d788c27f3eac2e479ad8e0c48d9f5f0d
<!doctype html> <html> <head> <title>Legend Positions</title> <script src="../../dist/Chart.bundle.js"></script> <script src="../utils.js"></script> <style> canvas { -moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; } ....
HTML
wwwroot/lib/Chart.js/samples/legend/positions.html
mattgwagner/Cash-Flow-Projection
mit
3,955
122
codeparrot/github-code
fb1bcef4fb09984d0f178d1b37603cc20a1b711ffdc1198b620d21859c13c5eb
/* irq-mb93091.c: MB93091 FPGA interrupt handling * * Copyright (C) 2003 Red Hat, Inc. All Rights Reserved. * Written by David Howells (dhowells@redhat.com) * * 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 S...
C
virt/arch/frv/kernel/irq-mb93091.c
AiJiaZone/linux-4.0
gpl-2.0
3,623
158
codeparrot/github-code
acdd4b9c32322bcf051df1596bbe02a6ae3865a4bad0de249408288cc9f43d68
/* * lm75.c - Part of lm_sensors, Linux kernel modules for hardware * monitoring * Copyright (c) 1998, 1999 Frodo Looijaard <frodol@dds.nl> * * 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 Foundat...
C
drivers/hwmon/lm75.c
alan94jimenez/modified-shamu
gpl-2.0
16,128
601
codeparrot/github-code
5375caba5b2bba8b90e9e0f874c4526cc7cb434d465a3a27cf28535f23437e3d
/* * Driver for Broadcom 63xx SOCs integrated PHYs * * 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 version. */ #include ...
C
virt/drivers/net/phy/bcm63xx.c
mericon/Xp_Kernel_LGH850
gpl-2.0
3,318
125
codeparrot/github-code
ec448fa392a9a862f67a8cf482f8fff7bc5cfdee971e489bedd8f050c5740cb7
/* * caam - Freescale FSL CAAM support for ahash functions of crypto API * * Copyright 2011 Freescale Semiconductor, Inc. * * Based on caamalg.c crypto API driver. * * relationship of digest job descriptor or first job descriptor after init to * shared descriptors: * * --------------- ----...
C
source/drivers/crypto/caam/caamhash.c
ziqiaozhou/cachebar
gpl-2.0
55,101
1,853
codeparrot/github-code
823d6cd4981a4d0dbc079240b4d698c992869aae00edea26116699fe52fd2a4e
/* * Marvell Wireless LAN device driver: station RX data handling * * Copyright (C) 2011, Marvell International Ltd. * * This software file (the "File") is distributed by Marvell International * Ltd. under the terms of the GNU General Public License Version 2, June 1991 * (the "License"). You may use, redistrib...
C
linux-3.14/drivers/net/wireless/mwifiex/sta_rx.c
maoze/linux-3-14-for-arm
gpl-3.0
7,875
253
codeparrot/github-code
fc02e908f07c690db3f0e1fcb31c348581868ee62821e53f6cf6029bb220b074
/* * DM355 leopard board support * * Based on board-dm355-evm.c * * This file is licensed under the terms of the GNU General Public * License version 2. This program is licensed "as is" without any * warranty of any kind, whether express or implied. */ #include <linux/kernel.h> #include <linux/init.h> #include ...
C
linux-3.1.9/arch/arm/mach-davinci/board-dm355-leopard.c
sahdman/rpi_android_kernel
mit
7,134
280
codeparrot/github-code
194ef87fabea17748f025323a4cad19638eb37001cd9676247643bb35fac0279
/* -*- linux-c -*- ------------------------------------------------------- * * * Copyright (C) 1991, 1992 Linus Torvalds * Copyright 2007 rPath, Inc. - All Rights Reserved * * This file is part of the Linux kernel, and is made available under * the terms of the GNU General Public License version 2. * * ...
C
virt/arch/x86/boot/video.h
mericon/Xp_Kernel_LGH850
gpl-2.0
3,278
122
codeparrot/github-code
ecb9726af86062e943c912d7c1ca1c4bba57a992e0368bf4893b1f6302dbfd35
/* * Copyright (C) 2010-2012 B.A.T.M.A.N. contributors: * * Andreas Langer * * 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 distributed in the hope tha...
C
virt/net/batman-adv/unicast.h
talnoah/android_kernel_htc_dlx
gpl-2.0
1,924
59
codeparrot/github-code
3ba3efacf38408114232161767ab021170508123e332cfc0a527e51e0fd3271e
<?php declare(strict_types = 1); namespace LanguageServer; use LanguageServer\Index\ReadableIndex; use LanguageServer\Factory\SymbolInformationFactory; use LanguageServerProtocol\SymbolInformation; use Microsoft\PhpParser; use Microsoft\PhpParser\Node; use Microsoft\PhpParser\FunctionLike; use phpDocumentor\Reflectio...
PHP
src/DefinitionResolver.php
felixfbecker/php-language-server
isc
57,362
1,364
codeparrot/github-code
fcabfc851a0891def1673a893d857e7be784f932dfaba0d835390d652989a1dc
Vector = function(x,y) { this.x = x ; this.y = y ; } Vector.Zero = function() { return new Vector(0,0); } Vector.Sum = function(vector1,vector2) { return new Vector(parseFloat(vector1.x) + parseFloat(vector2.x), parseFloat(vector1.y) + parseFloat(vector2.y)) ; } Vector.Sub = function(vector1,vector2) { return n...
JavaScript
src/js/tools/Vector.js
dbyzero/chroma-minigame
isc
1,561
64
codeparrot/github-code
5b860a5f038735a17043b0da6d4f87e81ba411bc549d1fce6633383006729fb2
System.register(["angular2/src/facade/lang", "angular2/src/facade/collection", "angular2/change_detection", "./compile_step", "./compile_element", "./compile_control", "../util"], function($__export) { "use strict"; var isPresent, RegExpWrapper, MapWrapper, Parser, CompileStep, Compile...
JavaScript
application/lib/angular2/src/render/dom/compiler/property_binding_parser.js
denzp/pacman
isc
5,202
110
codeparrot/github-code
f84baf25eba55cb65e8cca53c8ab0f26be9024b9ed90f516d126bd2f8d51c49a
{% extends "base.html" %} {% block content %} <div class="container"> <h1>List of Jobs</h1> <button class="btn btn-warning" id="example-create-job">Create a Test Job</button> <table class="table"> <thead> <th>ID</th> <th>Title</th> <th>Status</th> <th>Modified</th> <th>See log.....
HTML
example/templates/example_job_status.html
ornl-ndav/django-remote-submission
isc
3,082
108
codeparrot/github-code
bd362358ab179be6b0bf337a516927a9fae558b47533afef4474ee9299af466f
<!DOCTYPE html> <title>30</title> <style> * { margin: 0; padding: 0; } </style> <body> <canvas id=C width=100 height=100></canvas> <script type="text/javascript"> h = window.innerHeight; w = window.innerWidth; s = Math.max(w, h); C.height = h; C.width = w; c = C.getContext("2d"); N = 64; P = new Array(N); for (i=0; i...
HTML
30/30.html
mastensg/52
isc
1,375
71
codeparrot/github-code
26cf2ee8ca257699cdac4a0d8d028b01635282de7d7333125dcd41d7210c3981
/*! * UI development toolkit for HTML5 (OpenUI5) * (c) Copyright 2009-2016 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ // Provides control sap.ui.commons.Carousel. sap.ui.define(['jquery.sap.global', './library', 'sap/ui/core/Control', 'sap/ui/core/Res...
JavaScript
openui5/sap/ui/commons/Carousel-dbg.js
dirga123/clr
isc
26,298
807
codeparrot/github-code
106b0775428cfbf81c5a3eae6f21679db062b0515ac4a27cfeaf62dcaf5f3a52
// 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. #if V8_TARGET_ARCH_S390 #include "src/api-arguments.h" #include "src/assembler-inl.h" #include "src/base/bits.h" #include "src/bootstrapper.h" #include...
C++
src/s390/code-stubs-s390.cc
bnoordhuis/v8.rs
isc
48,537
1,348
codeparrot/github-code
77cac892b48bcc4581a0582d9e908eeb82aa400d14418fbc5435cb1e4e2da9e2
var chai = require('chai'); var sinon = require('sinon'); var assert = chai.assert; var expect = chai.expect; var should = chai.should(); describe('MQTT Client - subscribe and unsubscribe', function() { var client; beforeEach(function(done) { client = new MqttClient({ host : 'localhost', port...
JavaScript
test/mqttClient.integration.subscribe.spec.js
orbitbot/web-mqtt-client
isc
1,586
74
codeparrot/github-code
f216ebdb4d15d9ceb330269852b204e72443448f0138d813f93c0a93778733e0
// Copyright (c) 2014-2017 The btcsuite developers // Use of this source code is governed by an ISC // license that can be found in the LICENSE file. package rpcclient import ( "bytes" "encoding/hex" "encoding/json" "github.com/btcsuite/btcd/btcjson" "github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/bt...
GO
rpcclient/rawtransactions.go
btcsuite/btcd
isc
32,751
885
codeparrot/github-code
253d821dd07cc0b10d71328e3319cae238ff38f4e68d9bb9a7d6b4cbc85c5380
//* $Id$ */ /* * Copyright (c) 2014--2015 Kristaps Dzonsons <kristaps@kcons.eu> * * 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 I...
C
extern.h
kristapsdz/gamelab
isc
14,101
404
codeparrot/github-code
9df19acd48a9fdfa611909eeba1fc17b44ce8323f0b81d129c9b0084c08147ad
/* Copyright (c) 2021 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 DISCLAI...
C
libc/src/search/tdelete.c
dennis95/dennix
isc
4,609
138
codeparrot/github-code
10263aa747829d05aeb2a75b35fdd595ab5ff039dd8a1386e87787393bcc8084
module Sessions class OmniAuthUsersController < BaseController before_action :set_user, only: :create attr_reader :auth_hash def create begin log_in(user) rescue redirect_to(action: 'failure') return end flash[:success] = 'Signed in' redirect_to(root...
Ruby
app/controllers/sessions/omni_auth_users_controller.rb
NerdDiffer/job_tracker
isc
801
43
codeparrot/github-code
487f8e26b055ce748011106a0784cfa004b8b9eb48f3452b30cb68e3f7ccae9f
/* logsoc - logs the SSH_ORIGINAL_COMMAND * * Usage: in authorized_keys set something like * command="/path/to/logsoc" ssh-... * command="/path/to/logsoc /some/other/command" ssh-... */ #include <errno.h> #include <stdlib.h> #include <string.h> #include <syslog.h> #include <unistd.h> /* limit length per RFC ...
C
logging/logsoc.c
thrig/scripts
isc
1,549
66
codeparrot/github-code
408d7d7cd008ecd93096633b91f835f0e541feffb2dacdb9fc0114feaab2fec5
/* $Id$ */ /* * %ISC_START_LICENSE% * --------------------------------------------------------------------- * Copyright 2018, Pittsburgh Supercomputing Center * All rights reserved. * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided...
C
pfl/opstats.c
pscedu/slash2-stable
isc
4,692
180
codeparrot/github-code
82d29ae89c94c02f9c9ba1e825070b56441f5067c399e5c5a3801bc44d6aab75
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace SimpleBlog.ViewModels { public class SidebarTag { public int Id { get; private set; } public string Name { get; private set; } public string Slug { get; private set; } public int Post...
C#
ViewModels/Layout.cs
bn1ck/SimpleBlog
isc
785
32
codeparrot/github-code
7b78fcef8b66763b825231bcfec6795f39c2053b3a3b5aeaffc0354ec1466d9b
"use strict"; var BuildingsUnitsConstruction; /** * The Buildings Units Construction is a plug-in that manages buildings and * units construction/productions. Buildings and units construction tasks are * scheduled using events, the plug-in handles the production progress along * with resource reduction. The plug-i...
JavaScript
engine/gameplay-plugins/mixed-plugins/buildingsunitsconstruction.js
jurca/futuremesh
isc
15,131
410
codeparrot/github-code
895333c7aff6a30655f4c82f599f7d6d12235b1a4a98336b96438dd32464f9e1
// Copyright (c) 2013-2017 The btcsuite developers // Use of this source code is governed by an ISC // license that can be found in the LICENSE file. package main import ( "bufio" "crypto/rand" "encoding/base64" "errors" "fmt" "io" "net" "os" "path/filepath" "runtime" "sort" "strconv" "strings" "time" ...
GO
config.go
aakselrod/btcd
isc
45,493
1,179
codeparrot/github-code
587735c540032106c01bf6e1a1d6d97f7a8d2612105690caf7460832b426b209
import { event as d3_event, select as d3_select } from 'd3-selection'; import { services } from '../services'; import { actionNoop } from '../actions'; import { behaviorEdit, behaviorDrag } from '../behavior'; import { geoVecSubtract, geoViewportEdge } from '../geo'; import { modeSelectNote } from './index'; ...
JavaScript
modules/modes/drag_note.js
ngageoint/hootenanny-ui
isc
2,866
127
codeparrot/github-code
7e200f402f88abd526343cdb28663f7212e0634dbdbd218d467009ad3b6f7bfc
/* Gobby - GTK-based collaborative text editor * Copyright (C) 2008-2015 Armin Burgmeier <armin@arbur.net> * * 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 al...
C++
code/dialogs/entry-dialog.cpp
dagopoot/gobby
isc
2,199
67
codeparrot/github-code
b14773c9f2c267a50ff65983693af1eac9d132fbc9ea45a412083f9717d8274d
'use strict' const resolve = require('@xmpp/resolve') function sc(socket, params) { return new Promise((resolve, reject) => { socket.once('error', reject) socket.connect(params, () => { socket.removeListener('error', reject) resolve() }) }) } function getURIs(domain) { return resolve(do...
JavaScript
packages/plugins/resolve/index.js
ggozad/node-xmpp
isc
1,953
85
codeparrot/github-code
d685a71f2be5fa7ae34946eb7e8d932fca80b6a45ace8955b973e5565673c5ef
var I = require('ski/i') var fninfo = require('fninfo') function collection () { var arr = [] arr.has = {} arr.add = function (x) { arr.push(x) arr.has[x] = true } return arr } function mapArgs (fn, mapObj) { mapObj = mapObj || {} var params = fninfo(fn).params var required = collection() va...
JavaScript
index.js
jden/mapargs
isc
4,282
218
codeparrot/github-code
d5ba0584f74698c4406c9f8824ba559f443c0dcb08610a1f856a97e74311edec
import { SprkAlertModule } from './sprk-alert.module'; import { SprkAlertComponent } from './sprk-alert.component'; import { markdownDocumentationLinkBuilder } from '../../../../../../../storybook-utilities/markdownDocumentationLinkBuilder'; // prettier-ignore // @ts-ignore import { moduleMetadata, Meta } from '@storyb...
TypeScript
angular/projects/spark-angular/src/lib/components/sprk-alert/sprk-alert.stories.ts
sparkdesignsystem/spark-design-system
mit
2,057
97
codeparrot/github-code
1d6a7169207a306cc5edf50dbb3c2f9dc9e7361c178661a95dacda331b98dd9c
#!/bin/bash # Script that: # - # MySQL privileged credentials myFile='/etc/mysql/debian.cnf' myUser=`grep user $myFile | awk '{print $3}' | uniq` myPass=`grep password $myFile | awk '{print $3}' | uniq` # Args that must be passed NEWDB=$1 # Easier to match user to db for now PASS=`mkpasswd ratmonkey` SITE_ROOT=$2 BRA...
Shell
util/mysqlcleardown.sh
codeenigma/deployments
mit
1,412
57
codeparrot/github-code
f6efa0593a39b87280298531988fc403f1d29b7de03f6576df9b77ab0b6d6b8c
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="robots" content="noindex"> <title>File Files.php | KKo Cache</title> <link rel="stylesheet" href="resources/style.css?e99947befd7bf673c6b43ff75e9e0f170c88a60e"> </head> <body> <div id="left"> <div id="menu"> <a href="index.html" title="Overview...
HTML
docs/source-class-KKo.Cache.Files.html
K-Ko/Cache
mit
15,679
215
codeparrot/github-code
01eceaf7f8dc97197b552de7f707cd2de6ecd270b9e221b99af467be2f626119
# SendImage.py: read an image from the command line, spit it out to DMX # Requires Python Image library: http://www.pythonware.com/products/pil/ # usage: Python SendImage.py test.png import Image import sys import os import time import colorsys from optparse import OptionParser #local classes import aurora class Ima...
Python
imagemunger.py
headrotor/aurora-server
mit
6,314
205
codeparrot/github-code