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 |
|---|---|---|---|---|---|---|---|---|
32a827a01d8befcf6675cd5ca8a14d2e04c5da0a8db8ded7b70aa8cdf9c8b160 | /******************************************************************************
Copyright(c) 2003 - 2005 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 Free Softw... | C | src/drivers/net/wireless/ipw2x00/libipw_tx.c | felixhaedicke/nst-kernel | gpl-2.0 | 15,894 | 547 | codeparrot/github-code |
8dc87cf16e0480956d30a04b70e04c721c743f8cbddb6fa52deaad7602320620 | /*
* Copyright (C) 2005,2006,2007,2008 IBM Corporation
*
* Authors:
* Kylene Hall <kjhall@us.ibm.com>
* Reiner Sailer <sailer@us.ibm.com>
* Mimi Zohar <zohar@us.ibm.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* publish... | C | source/security/integrity/ima/ima_fs.c | ziqiaozhou/cachebar | gpl-2.0 | 9,621 | 383 | codeparrot/github-code |
5f3c25e4d374f5f2f01bb4422bd4357028d0539e2d7e899c75b6dfffe0ce358c | // SPDX-License-Identifier: GPL-2.0
/*
* sys_ia32.c: Conversion between 32bit and 64bit native syscalls. Based on
* sys_sparc32
*
* Copyright (C) 2000 VA Linux Co
* Copyright (C) 2000 Don Dugger <n0ano@valinux.com>
* Copyright (C) 1999 Arun Sharma <arun.sharma@intel.com>
* Copyright (C) 1997,1998 ... | C | arch/x86/kernel/sys_ia32.c | chenshuo/linux-study | gpl-2.0 | 7,536 | 257 | codeparrot/github-code |
d80bf825ac9f25299d5cf0157278aaba09b909288ba1a378738cf5022d4e7283 | <div class="bs-docs-section">
<h1 id="tabs" class="page-header">Togglable tabs <small>tab.js</small></h1>
<h2 id="tabs-examples">Example tabs</h2>
<p>Add quick, dynamic tab functionality to transition through panes of local content, even via dropdown menus.</p>
<div class="bs-example bs-example-tabs">
<ul ... | HTML | zulm/docs/_includes/js/tabs.html | cauchif/Zulm.pk | mit | 7,985 | 145 | codeparrot/github-code |
3d5a1d96f7971a061137f487f205a748784df52812875fc68369bab207b26455 | <?php
/**
* @package Joomla.Site
* @subpackage Layout
*
* @copyright Copyright (C) 2005 - 2016 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('JPATH_BASE') or die;
JHtml::_('bootstrap.framework');
$canEdit = $displa... | PHP | web2/layouts/joomla/content/icons.php | yaelduckwen/lo_imaginario | mit | 1,642 | 47 | codeparrot/github-code |
a5dc29f3564ad55ab69cd3b81a9b0499aa465fb7c1f35bada4f443f56c25dc47 | /* Copyright (c) 2011-2012, Code Aurora Forum. 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 ho... | C | drivers/media/video/msm_zsl/msm_vfe7x27a.c | MoKee/android_kernel_samsung_d2 | gpl-2.0 | 16,328 | 746 | codeparrot/github-code |
214bb423c4de2e8d26b12fce4a0e291e65a1852f1af690e3a0133a2c40ebe76d | /*
* Intel Skylake I2S Machine Driver
*
* Copyright (C) 2014-2015, Intel Corporation. All rights reserved.
*
* Modified from:
* Intel Broadwell Wildcatpoint SST Audio
*
* Copyright (C) 2013, Intel Corporation. All rights reserved.
*
* This program is free software; you can redistribute it and/or
* modify... | C | virt/sound/soc/intel/boards/skl_rt286.c | AiJiaZone/linux-4.0 | gpl-2.0 | 6,653 | 260 | codeparrot/github-code |
9e8bc7dc6134b34ec4fce48cedbbe448a8b23629dacdb1fd1bf7af2b4c949915 | /*
* YAFFS: Yet Another Flash File System. A NAND-flash specific file system.
*
* Copyright (C) 2002-2010 Aleph One Ltd.
* for Toby Churchill Ltd and Brightstar Engineering
*
* Created by Charles Manning <charles@aleph1.co.uk>
*
* This program is free software; you can redistribute it and/or modify
* it unde... | C | target/linux/generic/files/fs/yaffs2/yaffs_verify.c | execuc/rm04-wifi-video-serial | gpl-2.0 | 15,650 | 627 | codeparrot/github-code |
c80917d5c06b6d5139c7354afbe8e8cac6885ab8b7835a566bf25a9580aecdf5 | /*
* Kernel Probes (KProbes)
*
* 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 program is distributed ... | C | uefi/linux-source-3.8.0/arch/x86/kernel/kprobes.c | SanDisk-Open-Source/SSD_Dashboard | gpl-2.0 | 33,190 | 1,131 | codeparrot/github-code |
9ae533b8a84acd33492d3e17d2fb0c574efc47408004560d8e2ff9487f392efa | // Copyright (c) 2010, Google Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditi... | C++ | thirdparty/breakpad/processor/cfi_frame_info_unittest.cc | neycho/tomahawk | gpl-3.0 | 19,207 | 546 | codeparrot/github-code |
02cf0f1ed6c2f68f875e76869bde05b1803a8ce51bc0458e25cec86b4ebf8d8d | /*
* linux/fs/nfs/nfs3proc.c
*
* Client-side NFSv3 procedures stubs.
*
* Copyright (C) 1997, Olaf Kirch
*/
#include <linux/mm.h>
#include <linux/errno.h>
#include <linux/string.h>
#include <linux/sunrpc/clnt.h>
#include <linux/slab.h>
#include <linux/nfs.h>
#include <linux/nfs3.h>
#include <linux/nfs_fs.h>
#i... | C | virt/fs/nfs/nfs3proc.c | mericon/Xp_Kernel_LGH850 | gpl-2.0 | 24,340 | 966 | codeparrot/github-code |
38f6d4662ecd114b9567fb9a11f36830fe46c18486a4471e89c0e1bf634baf51 | /*
This file is part of tgl-library
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This lib... | C | tgl/crypto/bn_altern.c | TehDmitry/tg-cli | gpl-2.0 | 4,468 | 147 | codeparrot/github-code |
8c9d2640e9e06b4af6e408a3e0ca25ed16b85080158b4f845a27cd8814fca7df | /*
* linux/fs/ext4/ioctl.c
*
* Copyright (C) 1993, 1994, 1995
* Remy Card (card@masi.ibp.fr)
* Laboratoire MASI - Institut Blaise Pascal
* Universite Pierre et Marie Curie (Paris VI)
*/
#include <linux/fs.h>
#include <linux/jbd2.h>
#include <linux/capability.h>
#include <linux/time.h>
#include <linux/compat.h>
... | C | spanfsv2-garbage-collection/ioctl.c | kangjunbin/SpanFS | gpl-2.0 | 17,172 | 692 | codeparrot/github-code |
5373415973c77fd68ff90b6d8b4ebecbbe9bff4a424aa1918c1582a568aa3436 | @REM
@REM Licensed to the Apache Software Foundation (ASF) under one or more
@REM contributor license agreements. See the NOTICE file distributed with
@REM this work for additional information regarding copyright ownership.
@REM The ASF licenses this file to You under the Apache License, Version 2.0
@REM (th... | Batchfile | support/apache-cassandra-2.2.1/bin/sstableloader.bat | mitch-kyle/message-board | apache-2.0 | 1,396 | 42 | codeparrot/github-code |
fdee2bb4bfd0fb7ebcb5e7d823eb45790a72b661df553436e7237544291e43b0 | <?php
class ModelAccountOrder extends Model {
public function getOrder($order_id) {
$order_query = $this->db->query("SELECT * FROM `" . DB_PREFIX . "order` WHERE order_id = '" . (int)$order_id . "' AND customer_id = '" . (int)$this->customer->getId() . "' AND order_status_id > '0'");
if ($order_query->num_rows) {... | PHP | www/catalog/model/account/order.php | fercamp09/expigo1 | gpl-3.0 | 8,457 | 171 | codeparrot/github-code |
71ad422d4af599889c684bdb820aa2c284aad9ea8c6e0dac2661b8b4282aa068 | // 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.Text;
using System.Diagnostics;
using System.Xml;
name... | C# | src/System.Private.DataContractSerialization/src/System/Runtime/Serialization/Json/JsonUriDataContract.cs | shahid-pk/corefx | mit | 1,029 | 33 | codeparrot/github-code |
100c8bb0608f6b9181a85d9dce6bb5b1e8ecf5891d12ea83be0227284530962b | /*
* Copyright (c) 2014 Samsung Electronics Co., Ltd.
* http://www.samsung.com
*
* EXYNOS - Power Management support
*
* 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.
*/
#inc... | C | arch/arm/mach-exynos/pm-exynos7420.c | SM-G920P/G920P-MM | gpl-2.0 | 11,483 | 299 | codeparrot/github-code |
a7a270fc537ad5881f1ce1075ba1deb843da3ffc3d0bd6fdfd46390630d24cbd | // PR middle-end/42760
// { dg-do compile }
template <typename T>
struct A
{
static T b (T it) { return it; }
};
template <typename T, typename U>
static U
baz (T x, T y, U z)
{
for (long n = y - x; n > 0; --n)
{
*z = *x;
++z;
}
};
template <typename T, typename U>
U
bar (T x, T y, U z)
{
b... | C++ | uefi/gcc/gcc-4.6.3/gcc/testsuite/g++.dg/torture/pr42760.C | SanDisk-Open-Source/SSD_Dashboard | gpl-2.0 | 566 | 47 | codeparrot/github-code |
2645edbd7cdf52a5cd633d1e28c6cc245dd9458050f73487c3d2d95ad2e34107 | /*******************************************************************************
* Agere Systems Inc.
* Wireless device driver for Linux (wlags49).
*
* Copyright (c) 1998-2003 Agere Systems Inc.
* All rights reserved.
* http://www.agere.com
*
* Initially developed by TriplePoint, Inc.
* http://www.triplepo... | C | packages/wbsairback-kernel-image/wbsairback-kernel-image-3.2.43/drivers/staging/wlags49_h2/wl_netdev.c | WhiteBearSolutions/WBSAirback | apache-2.0 | 61,511 | 2,038 | codeparrot/github-code |
9667237235a122747f6dcd31f36d0b7ca7ee36c0504525ddf838459b9caeac46 | /*
* netup-init.c
*
* NetUP Dual DVB-S2 CI driver
*
* Copyright (C) 2009 NetUP Inc.
* Copyright (C) 2009 Igor M. Liplianin <liplianin@netup.ru>
* Copyright (C) 2009 Abylay Ospan <aospan@netup.ru>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General P... | C | virt/drivers/media/video/cx23885/netup-init.c | talnoah/android_kernel_htc_dlx | gpl-2.0 | 2,828 | 126 | codeparrot/github-code |
4a2f9ac5241f2c1990d31af189d32728a3651c5462362898fdf86cb4ae63b8b1 | package com.iluwatar.servicelayer.wizard;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToMany;
import javax.pers... | Java | service-layer/src/main/java/com/iluwatar/servicelayer/wizard/Wizard.java | ooon/java-design-patterns | mit | 1,383 | 79 | codeparrot/github-code |
1ab287d8e3a4837add0a3934b3edef3de20c4807d6a4337ad2bc114af916a895 | #ifndef _LINUX_MEMBLOCK_H
#define _LINUX_MEMBLOCK_H
#ifdef __KERNEL__
#ifdef CONFIG_HAVE_MEMBLOCK
/*
* Logical memory blocks.
*
* Copyright (C) 2001 Peter Bergner, IBM Corp.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as publi... | C | linux/linux-kernel/include/linux/memblock.h | kv193/buildroot | gpl-2.0 | 8,164 | 252 | codeparrot/github-code |
b04090da8b9f636b1aa0bccfda5988911e7ee6fd704065fd3a5a8c25137bc779 | /*
* Copyright (C) 2009-2010, Lars-Peter Clausen <lars@metafoo.de>
* JZ4740 platform IRQ support
*
* 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, ... | C | kernel/drivers/irqchip/irq-ingenic.c | Seagate/SMR_FS-EXT4 | gpl-2.0 | 4,638 | 178 | codeparrot/github-code |
8fbd8813bd0f67e529748df4408ea4da53c10e87790f36c3c64c6239e61f1dbf | /*
* arch/powerpc/sysdev/ipic.c
*
* IPIC routines implementations.
*
* Copyright 2005 Freescale Semiconductor, Inc.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version... | C | kernel/arch/powerpc/sysdev/ipic.c | Seagate/SMR_FS-EXT4 | gpl-2.0 | 20,322 | 953 | codeparrot/github-code |
34e4599dd0782bd3ecca2425f29548228c0b1cc07204013bc9df0e76853dd09e | /***************************************************************************/
/* */
/* afangles.c */
/* */
/* Ro... | C | xynth/src/lib/freetype2/afangles.c | easion/os_sdk | apache-2.0 | 6,656 | 293 | codeparrot/github-code |
2567d4ea8ab3c0a00c95c299a47a2dae7c3588d75a1b46ac4fb247b1fb4da25d | /* -*- mode: c; c-basic-offset: 8; -*-
* vim: noexpandtab sw=8 ts=8 sts=0:
*
* dlmglue.h
*
* description here
*
* Copyright (C) 2002, 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 publish... | C | linux/fs/ocfs2/dlmglue.h | mkvdv/au-linux-kernel-autumn-2017 | gpl-3.0 | 6,469 | 192 | codeparrot/github-code |
3c74fdd95c97fb340d0a24610aa2f576db5cf67dd06359127555f3d0511b514b | /*
* linux/kernel/ptrace.c
*
* (C) Copyright 1999 Linus Torvalds
*
* Common interfaces for "ptrace()" which we do not want
* to continually duplicate across every architecture.
*/
#include <linux/capability.h>
#include <linux/export.h>
#include <linux/sched.h>
#include <linux/errno.h>
#include <linux/mm.h>
#inc... | C | unionfs-3.10.y/kernel/ptrace.c | prasidh09/cse506 | gpl-2.0 | 30,175 | 1,201 | codeparrot/github-code |
1bb551fc98ebd2bb91351adb83f7504c47733fc46c8b845e94542c17695245c6 | /*
LUFA Library
Copyright (C) Dean Camera, 2011.
dean [at] fourwalledcubicle [dot] com
www.lufa-lib.org
*/
/*
Copyright 2011 Dean Camera (dean [at] fourwalledcubicle [dot] com)
Permission to use, copy, modify, distribute, and sell this
software and its documentation ... | C | walrus_firmware/rosserial_teensyduino/teensyduino_sdk/arduino-1.0.6/hardware/arduino/bootloaders/caterina/Descriptors.c | RIVeR-Lab/walrus | bsd-3-clause | 9,324 | 267 | codeparrot/github-code |
ba8b705411c45afa8d7275e8179ce972819f4a17023824e277b6dea26aa024cb | <?php
/**
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
namespace ... | PHP | z/ZendFramework-2.4.3/library/Zend/View/Helper/HtmlTag.php | pdhwi/hwi_test | bsd-3-clause | 3,309 | 149 | codeparrot/github-code |
4b9f8e8d802c6510460f624b93dc775d5a7c64fc7b72af3d7608789519154381 | /*
* GPL HEADER START
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 only,
* as published by the Free Software Foundation.
*
* This program is distributed... | C | source/drivers/staging/lustre/lustre/ldlm/ldlm_internal.h | ziqiaozhou/cachebar | gpl-2.0 | 11,032 | 310 | codeparrot/github-code |
ffd7cd86f00daeacc1d6acef0af628f83fdc28658e9ac331a90f97577fceb7fe | /*
* Sonics Silicon Backplane PCI-Hostbus related functions.
*
* Copyright (C) 2005-2006 Michael Buesch <m@bues.ch>
* Copyright (C) 2005 Martin Langer <martin-langer@gmx.de>
* Copyright (C) 2005 Stefano Brivio <st3@riseup.net>
* Copyright (C) 2005 Danny van Dyk <kugelfang@gentoo.org>
* Copyright (C) 2005 Andreas... | C | virt/drivers/ssb/pci.c | talnoah/android_kernel_htc_dlx | gpl-2.0 | 31,762 | 1,045 | codeparrot/github-code |
19965e9586114a83eb34a31f897f6ef53da424e0ceda37202845c68c508940dd | /*
* linux/arch/arm/kernel/bios32.c
*
* PCI bios-type initialisation for PCI machines
*
* Bits taken from various places.
*/
#include <linux/export.h>
#include <linux/kernel.h>
#include <linux/pci.h>
#include <linux/slab.h>
#include <linux/init.h>
#include <linux/io.h>
#include <asm/mach-types.h>
#include <as... | C | virt/arch/arm/kernel/bios32.c | AiJiaZone/linux-4.0 | gpl-2.0 | 16,539 | 638 | codeparrot/github-code |
b171a069ac09e1fe7d5fd3232c82c04eeac946bd7d22a741ed4bc45006f12572 | // { dg-do assemble }
// Copyright (C) 2000 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 23 June 2000 <nathan@codesourcery.com>
// Origin GNATS bug report 69 from Glenn Ammons <ammons@cs.wisc.edu>
//
// A base which derives a virtual base hides declarations in the virtual base,
// even if that vi... | C++ | uefi/gcc/gcc-4.6.3/gcc/testsuite/g++.old-deja/g++.other/ambig3.C | SanDisk-Open-Source/SSD_Dashboard | gpl-2.0 | 844 | 35 | codeparrot/github-code |
957b99bda41dcc3c40f495b53bb85fd11d627fdad1e9440aaea1466b6dba2be0 | YUI.add('color-base', function (Y, NAME) {
/**
Color provides static methods for color conversion.
Y.Color.toRGB('f00'); // rgb(255, 0, 0)
Y.Color.toHex('rgb(255, 255, 0)'); // #ffff00
@module color
@submodule color-base
@class Color
@since 3.8.0
**/
var REGEX_HEX = /^#?([\da-fA-F]{2})([\da-fA-F]{2})([\da... | JavaScript | ajax/libs/yui/3.9.1/color-base/color-base.js | sajochiu/cdnjs | mit | 10,438 | 449 | codeparrot/github-code |
bdb39a9734a3e33c4d3437a7a94a8c30bf4986817c21979154367504b5265162 | // SPDX-License-Identifier: GPL-2.0-only
/*
* copyright (c) 2013 Freescale Semiconductor, Inc.
* Freescale IMX AHCI SATA platform driver
*
* based on the AHCI SATA platform driver by Jeff Garzik and Anton Vorontsov
*/
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include ... | C | linux-5.8/drivers/ata/ahci_imx.c | CSE3320/kernel-code | gpl-2.0 | 34,212 | 1,234 | codeparrot/github-code |
5d92c75798a81e6fe93b7b587b5f31eaf7ff719397469500ee8d0141c1010323 | <?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\Bridge\Monolog\Handler;
use Monolog\Handler\AbstractProcessingH... | PHP | vendor20150405/symfony/symfony/src/src/Symfony/Bridge/Monolog/Handler/ConsoleHandler.php | marguerrero/onlinefeedback | mit | 5,853 | 187 | codeparrot/github-code |
953408cd2570f0c83dc2fe39f7e4e388e41eeb05738aa69196a5f6ffcf6ba79e |
class Token(object):
def __init__(self, start_mark, end_mark):
self.start_mark = start_mark
self.end_mark = end_mark
def __repr__(self):
attributes = [key for key in self.__dict__
if not key.endswith('_mark')]
attributes.sort()
arguments = ', '.join(['%s=... | Python | ~/venvs/crawler/lib/python2.7/site-packages/yaml/tokens.py | cortext/crawtextV2 | mit | 2,573 | 105 | codeparrot/github-code |
e1bd482b5bbc5bb34a36ce7e8d4024758385fad20581190bcf9b016b323ef0dc | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 20010-2011 Hauke Heibel <hauke.heibel@gmail.com>
//
// This Source Code Form is subject to the terms of the Mozilla
// Public License v. 2.0. If a copy of the MPL was not distributed
// with this file, You can o... | C | xyCppUtils/ThirdParty/eigen/unsupported/Eigen/src/Splines/Spline.h | yxiong/xyMatlabUtils-release | mit | 16,815 | 475 | codeparrot/github-code |
ede4491b8e5bb235b2a05506dce0cea9bbd0a2703c44f5ff61bf33fa717c07cf | /**
* @license AngularJS v1.3.10
* (c) 2010-2014 Google, Inc. http://angularjs.org
* License: MIT
*/
(function(window, angular, undefined) {'use strict';
var $sanitizeMinErr = angular.$$minErr('$sanitize');
/**
* @ngdoc module
* @name ngSanitize
* @description
*
* # ngSanitize
*
* The `ngSanitize` module p... | JavaScript | ui/js/bower_components/textAngular/src/textAngular-sanitize.js | walgheraibi/StemCells | mit | 26,984 | 762 | codeparrot/github-code |
42c5f8c4e1c483803d954567d4c5c87ba69fa9cc2d55de53392bf3e66bdfb18c | /*
** This program searches an SQLite database file for the lengths and
** offsets for all TEXT or BLOB entries for a particular column of a
** particular table. The rowid, size and offset for the column are
** written to standard output. There are three arguments, which are the
** name of the database file, the tabl... | C | tool/offsets.c | shanshan1026/sqlcipher | bsd-3-clause | 8,393 | 330 | codeparrot/github-code |
37617213907df8cd039c7d755756b59d4f28ddf39e896b99048455fd1e9bd73c | /*
* Minimalistic braille device kernel support.
*
* By default, shows console messages on the braille device.
* Pressing Insert switches to VC browsing.
*
* Copyright (C) Samuel Thibault <samuel.thibault@ens-lyon.org>
*
* This program is free software ; you can redistribute it and/or modify
* it under the te... | C | src/drivers/accessibility/braille/braille_console.c | felixhaedicke/nst-kernel | gpl-2.0 | 8,194 | 393 | codeparrot/github-code |
80060fee7694a081cfd260ef39df5ccf188525b0bab59845cc666ceddf412898 | /*
* Copyright (C) 2003 Jana Saout <jana@saout.de>
*
* This file is released under the GPL.
*/
#include <linux/device-mapper.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/bio.h>
#define DM_MSG_PREFIX "zero"
/*
* Construct a dummy mapping that only returns zeros
*/
static int zero_ctr(st... | C | virt/drivers/md/dm-zero.c | AiJiaZone/linux-4.0 | gpl-2.0 | 1,518 | 85 | codeparrot/github-code |
0250e14fd95854e5c7c7a53bb249d3611031de6d56469659f5191d9281598a80 | /***************************************************************************/
/* */
/* cffpic.c */
/* */
/* Th... | C | svn/onscripter-read-only/jni/freetype/src/cff/cffpic.c | Z-Shang/onscripter-gbk | gpl-2.0 | 4,637 | 100 | codeparrot/github-code |
7bd3af31b72fc553c3ad2114cdf3d3e932eac002c554de8aba54899e0762a8c4 | /* vi: set sw=4 ts=4: */
/*
* reformime: parse MIME-encoded message
*
* Copyright (C) 2008 by Vladimir Dronnikov <dronnikov@gmail.com>
*
* Licensed under GPLv2, see file LICENSE in this source tree.
*/
//kbuild:lib-$(CONFIG_REFORMIME) += reformime.o mail.o
#include "libbb.h"
#include "mail.h"
#if 0
# define db... | C | user/busybox/mailutils/reformime.c | Bytewerk/uClinux-ipcam | gpl-2.0 | 7,295 | 279 | codeparrot/github-code |
36fc5778eda7503f25df5d75dcd8dd70e9bf7df20b387b3adcd05185391f23ab | /* SPDX-License-Identifier: GPL-2.0-only */
/*
* Defines for Mobile Industry Processor Interface (MIPI(R))
* Display Working Group standards: DSI, DCS, DBI, DPI
*
* Copyright (C) 2010 Guennadi Liakhovetski <g.liakhovetski@gmx.de>
* Copyright (C) 2006 Nokia Corporation
* Author: Imre Deak <imre.deak@nokia.com>
*/... | C | linux-5.8/include/video/mipi_display.h | CSE3320/kernel-code | gpl-2.0 | 5,074 | 151 | codeparrot/github-code |
57d2b373efb06625f139b772669d8110ab41334714fb9ff9148b1da202933d03 | YUI.add('escape', function(Y) {
/**
Provides utility methods for escaping strings.
@module escape
@class Escape
@static
@since 3.3.0
**/
var HTML_CHARS = {
'&': '&',
'<': '<',
'>': '>',
'"': '"',
"'": ''',
'/': '/',
'`': '`'
},... | JavaScript | ajax/libs/yui/3.4.1pr1/escape/escape.js | drewfreyling/cdnjs | mit | 2,360 | 90 | codeparrot/github-code |
88136ee61750a1a7b8817fe17a40ca93f906277b7c78c9b10ec5eca7f6c39c3d | // -*- C++ -*-
// Copyright (C) 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library 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
// Foundatio... | C++ | zap-2.3.0-windows/papilio-zap-ide/hardware/tools/g++_arm_none_eabi/arm-none-eabi/include/c++/4.4.1/ext/pb_ds/detail/resize_policy/hash_standard_resize_policy_imp.hpp | chcbaram/FPGA | mit | 6,302 | 250 | codeparrot/github-code |
3a505c6bc8ed31df1abcc09a7e478f083260c521359d7cf79deec0389319ec72 | /*******************************************************************
* 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 | linux_kernel_galaxyplayer-master/drivers/scsi/lpfc/lpfc_nportdisc.c | KOala888/GB_kernel | gpl-2.0 | 69,343 | 2,278 | codeparrot/github-code |
b24160bdd3db4f5eca89aeac6c171ba378d61491c443ac1e602cd57be814b87f | import React, {useState} from 'react';
import {
ScrollView,
StyleSheet,
Text,
TouchableOpacity,
Platform,
Linking,
} from 'react-native';
import AutoHeightWebView from 'react-native-autoheight-webview';
import {
autoHeightHtml0,
autoHeightHtml1,
autoHeightScript,
autoWidthHtml0,
autoWidthHtml1,... | JavaScript | demo/App.js | iou90/react-native-autoheight-webview | isc | 4,845 | 180 | codeparrot/github-code |
af1413ee859b51a66555dfb7184489881ff0a4b4968770e1364da512df290f41 | /*
* Copyright © 2015 <code@io7m.com> http://io7m.com
*
* 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 ... | Java | com.io7m.jcanephora.fake/src/main/java/com/io7m/jcanephora/fake/FakeArrayBuffers.java | io7m/jcanephora | isc | 7,054 | 253 | codeparrot/github-code |
1a2c7fa4db1c2c0ffe47362041a638c0e3a658c5005206d14225231358ed9d26 | // Copyright (c) 2019 The Decred developers
// Use of this source code is governed by an ISC
// license that can be found in the LICENSE file.
package lru
import (
"container/list"
"sync"
)
// kv represents a key-value pair.
type kv struct {
key interface{}
value interface{}
}
// KVCache provides a concurrenc... | GO | lru/kv.go | decred/dcrd | isc | 3,662 | 135 | codeparrot/github-code |
05517d4d016eb4e0ca6c46bc8ef87e13ecff3191cfdb728b125617bf2ae19583 | "use strict";
import clear from "rollup-plugin-clear";
import resolve from "rollup-plugin-node-resolve";
import commonjs from "rollup-plugin-commonjs";
import typescript from "rollup-plugin-typescript2";
import screeps from "rollup-plugin-screeps";
let cfg;
const dest = process.env.DEST;
if (!dest) {
console.log(... | JavaScript | rollup.config.js | thaelina/Screeps-ThaeOS | isc | 850 | 32 | codeparrot/github-code |
74f8fe11070a6288df7247ade70bbedd4438fb05cc55977e34a2d540cbcc448a | import { timeout as d3_timeout } from 'd3-timer';
export function uiFlash(context) {
var _flashTimer;
var _duration = 2000;
var _iconName = '#iD-icon-no';
var _iconClass = 'disabled';
var _text = '';
var _textClass;
function flash() {
if (_flashTimer) {
_flashTimer... | JavaScript | modules/ui/flash.js | morray/iD | isc | 2,966 | 117 | codeparrot/github-code |
20f990b7f3753947cdf3fcc6b401cbffe809d25971959c695e6f43aa44cb68cd | ////////////////////////////////////////////////////////////////////////////////
//
// TYPHOON FRAMEWORK
// Copyright 2013, Typhoon Framework Contributors
// All Rights Reserved.
//
// NOTICE: The authors permit you to use, modify, and distribute this file
// in accordance with the terms of the license agreement a... | C | Example/PocketForecast/PFAppDelegate.h | vangelov/Injineer | isc | 894 | 31 | codeparrot/github-code |
26396a090f14dced3bc2c105001a9cf3a53f6a64d545336404db0fb0b5c5c365 | "use strict";
const http_1 = require("http");
const WebSocketServer = require("ws");
const express = require("express");
const dgram = require("dgram");
const readUInt64BE = require("readuint64be");
const buffer_1 = require("buffer");
const _ = require("lodash");
// Health Insurrance:
process.on("uncaughtException", fu... | JavaScript | ts-node/b80e7f10257a0a2b7f29aee28a53e164f19fc5f2/98a6883f88ed207a422bce14e041cea9032231df.js | CraigglesO/peer-tracker | isc | 23,105 | 533 | codeparrot/github-code |
02e0954bd752c486a2f72eef7433e3ea36c636f46076d7dd45d613da4b45fbfd | # coding=utf-8
from django.utils.functional import SimpleLazyObject
from mongo_auth import get_user as mongo_auth_get_user
def get_user(request):
if not hasattr(request, '_cached_user'):
request._cached_user = mongo_auth_get_user(request)
return request._cached_user
class AuthenticationMiddleware(ob... | Python | mongo_auth/middleware.py | sv1jsb/django-angular | isc | 1,264 | 33 | codeparrot/github-code |
5c56510ebf74ecf036836afa4c8757f6cda06756355e88b38971e804806f5b98 | {-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE TypeFamilies #-}
-- | This module provides facilities for obtaining the types of
-- various Futhark constructs. Typically, you will need to execute
-- these in a context where type information is a... | Haskell | src/Futhark/IR/Prop/TypeOf.hs | HIPERFIT/futhark | isc | 5,812 | 186 | codeparrot/github-code |
5efb19293ab085d0eeaa08978eafef0eac15f388b482d56388b543dcee2fc5c0 | /* Fireworks demo written by Dave Ashley */
/* dash@xdr.com */
/* http://www.xdr.com/dash */
/* Sat Jun 13 02:46:09 PDT 1998 */
/* This is my first attempt at an SDL program */
/* See the SDL home page http://www.devolution.com/~slouken/projects/SDL/ */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#inclu... | C | src/user/applications/fire/fire.c | jmolloy/pedigree | isc | 9,770 | 508 | codeparrot/github-code |
f9ab7c2714816616d96cf638fd343ca1982e1e7e1087e31baa98887e8ab7b4cd | /*
* nextpnr -- Next Generation Place and Route
*
* Copyright (C) 2018-19 gatecat <gatecat@ds0.me>
* Copyright (C) 2020 Pepijn de Vos <pepijn@symbioticeda.com>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the ab... | C++ | gowin/pack.cc | SymbiFlow/nextpnr | isc | 29,471 | 773 | codeparrot/github-code |
511bdd3b5598c2f008422212c3cd96b20c0104f9cbf84acca8edd75be46e6190 | "use strict";
var CustomError = require('custom-error-instance');
var inventory = require('./inventory');
var menu = require('./menu');
var OrderError = CustomError('OrderError');
module.exports = function() {
var done = false;
var factory = {};
var store = {};
/**
... | JavaScript | restaurant/order.js | Gi60s/IT410 | isc | 2,025 | 69 | codeparrot/github-code |
f67a567a6b8929f82ec39832e824be9f5b5e2b92c0846fc4db98ee423d9e9529 | import Key from './key';
import SubscriberPayload from './subscriber-payload';
import Transition from './transition';
import TransitionHistory from './transition-history';
import TransitionSet from './transition-set';
/**
* A class responsible for performing the transition between states.
*/
export default class Tra... | TypeScript | src/state-machine/transitioner.ts | davidchin/switchhub | isc | 7,148 | 217 | codeparrot/github-code |
3e180c791f52aa162d3821bebcf0d27933f5a7c0f80cb4960ab2ff375f42f13b | // Copyright (c) 2016 The btcsuite developers
// Use of this source code is governed by an ISC
// license that can be found in the LICENSE file.
package rpctest
import (
"errors"
"math"
"math/big"
"runtime"
"time"
"github.com/ltcsuite/ltcd/blockchain"
"github.com/ltcsuite/ltcd/chaincfg"
"github.com/ltcsuite/... | GO | integration/rpctest/blockgen.go | ltcsuite/ltcd | isc | 6,534 | 224 | codeparrot/github-code |
86131f4c3210bda85e33e4f4b7e4cca943965ec7e53eab523c2f03f42d0a27b4 | #include "ThinObject.h"
#include "Object.h"
#include "SnowString.h"
#include "Exception.h"
namespace snow {
static volatile uintx global_object_id_counter = 1;
void ThinObject::init() {
m_Info.frozen = false;
m_Info.gc_lock = false;
// XXX: With multithreading, this will most certainly go wrong.
#ifdef ARCH... | C++ | src/runtime/ThinObject.cpp | simonask/snow-deprecated | isc | 1,014 | 38 | codeparrot/github-code |
9017708fb7273fd72b1eff9e140435b4ff91eedce2fe486e9f6c95068b4ad738 | package keyring
import (
"errors"
"sync"
)
var (
// ErrNotFound means the requested password was not found
ErrNotFound = errors.New("keyring: Password not found")
// ErrNoDefault means that no default keyring provider has been found
ErrNoDefault = errors.New("keyring: No suitable keyring provider found (check y... | GO | keyring.go | tmc/keyring | isc | 1,420 | 59 | codeparrot/github-code |
0e6dd0171e0869f5f5b5da2abbd09d91a60d15d6bd47004920a9c917cfdc893d | import {takeEvery} from 'redux-saga'
import {call, put, take, fork, select, cancel} from 'redux-saga/effects'
import * as Actions from './actions/actions'
let ws = null
const getUsername = state => state.username
function* createWebSocket(url) {
ws = new WebSocket(url)
let deferred, open_deferred, close_def... | JavaScript | frontend/src/sagas.js | anyley/chat-sinatra-react | isc | 4,180 | 179 | codeparrot/github-code |
f37f8c62621a77660b97bde77355bbc23439106af5125bc7d8ed3daa8ff2cf0d | using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.HttpsPolicy;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.SpaServices.AngularCli;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
namespace angular_portal_azure_201... | C# | angular-portal-azure-2018-10/Startup.cs | ardimedia/angular-portal-azure | isc | 2,227 | 71 | codeparrot/github-code |
d4d691f54c97c6760de7c2f0cf11c8d0277cb500c38a1fc28d6767fcbdf9eb6c | import React from 'react';
const isArray = x => Array.isArray(x);
const isString = x => typeof x === 'string' && x.length > 0;
const isSelector = x => isString(x) && (startsWith(x, '.') || startsWith(x, '#'));
const isChildren = x => /string|number|boolean/.test(typeof x) || isArray(x);
const startsWith = (string, sta... | JavaScript | src/index.js | Jador/react-hyperscript-helpers | isc | 3,497 | 101 | codeparrot/github-code |
80204825f8b8b67982f7c186376c38ca6b1fb5297e796b56a2f6991840ba9ccd | /**
* Created by Stefan on 9/19/2017
*/
/**
* Created by Stefan Endres on 08/16/2017.
*/
'use strict'
var http = require('http'),
https = require('https'),
url = require('url'),
util = require('util'),
fs = require('fs'),
path = require('path'),
sessions = require('./sessions'),
EventE... | JavaScript | lib/server.js | endresstefan/light-http-server | isc | 8,582 | 312 | codeparrot/github-code |
98a1baef247e57eb25c657830f7a78fddaa8f5d1f081e0da76b5e5caba8c52fd | using ReactiveUI;
using System;
using System.Diagnostics;
using System.IO;
using System.Reactive;
using System.Reactive.Disposables;
using System.Reactive.Linq;
using Microsoft.Win32;
namespace VisualStudioCleanup
{
static class OperatingSystemTasks
{
public static IObservable<Unit> TurnOffHyperV()
... | C# | VisualStudioCleanup/OperatingSystemTasks.cs | teobugslayer/VisualStudioCleanup | isc | 5,783 | 164 | codeparrot/github-code |
f8d7d3687caedbc65ddc98f0af0874405565bb0aaa9e780964da60cf27b4f477 | <?php
namespace Dictionary;
//----------------------------------------------------------------------------
require_once __DIR__ . '/node_interface.php';
interface Node_With_Phrases extends Node_Interface {
function add_phrase();
function get_phrase();
function get_phrases();
}
//--------------------------------... | PHP | traits/has_phrases.php | lkorczewski/dictionary-dev | isc | 1,081 | 52 | codeparrot/github-code |
56e35d7ae6e369b01b417ba22f3b3bbf87ac8d81f4e3f76f5a3569da03115c31 | 'use strict';
var expect = chai.expect;
function run(scope,done) {
done();
}
describe('SendCtrl', function(){
var rootScope, scope, controller_injector, dependencies, ctrl,
sendForm, network, timeout, spy, stub, mock, res, transaction, data;
beforeEach(module("rp"));
beforeEach(inject(function($rootSc... | JavaScript | test/unit/tabs/sendControllerSpec.js | yxxyun/ripple-client | isc | 17,667 | 624 | codeparrot/github-code |
9060157492543f782a9dc5cf395ed4adcd6bfd4978979579a45aec57f74b47ac | <?php
namespace Primus;
/**
* A quick and dirty dispatcher based on Aura.Dispatcher
* Using this cheap dispatcher since we need to support PHP 5.3. If we ever move to PHP 5.4 we should swap this out
* with Aura.Dispatcher
*
* @package Primus
*/
class Dispatcher
{
protected $methodParam = '';
protected $... | PHP | src/Primus/Dispatcher.php | dragonmantank/primus | isc | 1,529 | 59 | codeparrot/github-code |
3822c0b3e8d046f8a2b9fa0ccd8dceeadeb903518d5220475bc5cb43361b26fb | import * as React from 'react'
import { observer } from 'mobx-react'
const DevTools = require('mobx-react-devtools').default
@observer
class App extends React.Component<any, any> {
render() {
return (
<div>
<div>{this.props.appState.count}</div>
<button onClick={this.onReset}>
Sec... | TypeScript | dev/app.tsx | pinqy520/mobx-persist | mit | 1,666 | 54 | codeparrot/github-code |
e148c2088c25815189c923eac779b6ef4e6ff604f1e679093e0b8353b832f126 | package async
import (
"reflect"
)
/*
Filter allows you to filter out information from a slice in Waterfall mode.
You must call the Done function with false as its first argument if you do
not want the data to be present in the results. No other arguments will
affect the performance of this function. When calling ... | GO | filter.go | Southern/async | mit | 4,502 | 185 | codeparrot/github-code |
b5297bfd54142dd91cf6cef55df2abb93b16c011b4536c504945c5893cea42df | # -*- coding: utf-8 -*-
"""The initialization file for the Pywikibot framework."""
#
# (C) Pywikibot team, 2008-2014
#
# Distributed under the terms of the MIT license.
#
from __future__ import unicode_literals
__release__ = '2.0rc4'
__version__ = '$Id: e26392a530582f286edf2d99e729218b2e93405e $'
import datetime
imp... | Python | pywikibot/__init__.py | hperala/kontuwikibot | mit | 26,816 | 760 | codeparrot/github-code |
d1c4e3105462ecfbabc057c81e70916cdae1a83218a9f8b109588d683aa3f3c5 | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
| -------------------------------------------------------------------
| DATABASE CONNECTIVITY SETTINGS
| -------------------------------------------------------------------
| This file will contain the settings needed to access your database.
|
|... | PHP | PHP/parseql/application/config/database.php | pablojotaguardiola/ParseQL-Swift-To-MySQL | mit | 4,558 | 97 | codeparrot/github-code |
d867a3e586f178835da914626e47871f1255e0ad25b4bdcba3a78d5c7ce4ea6e | KB.component('task-move-position', function (containerElement, options) {
function getSelectedValue(id) {
var element = KB.dom(document).find('#' + id);
if (element) {
return parseInt(element.options[element.selectedIndex].value);
}
return null;
}
function get... | JavaScript | assets/js/components/task-move-position.js | lianguan/kanboard | mit | 5,050 | 165 | codeparrot/github-code |
bece399e019124c9835d1844d714592575441be284ba3afed5b1a50806aa7e42 | using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using System.Reflection;
using System.Text;
using EOLib.IO.Pub;
using EOLib.IO.Services;
using NUnit.Framework;
namespace EOLib.IO.Test.Pub
{
[TestFixture, ExcludeFromCodeCoverage]
public class EIFRecordT... | C# | EOLib.IO.Test/Pub/EIFRecordTest.cs | ethanmoffat/EndlessClient | mit | 11,475 | 313 | codeparrot/github-code |
460b694e11b15df1e333c7f22b3819ea556d1a5912fa648e6b9d158f0f485273 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>ramsey: 8 s</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="styleshe... | HTML | clean/Linux-x86_64-4.09.0-2.0.5/released/8.10.0/ramsey/8.10.0.html | coq-bench/coq-bench.github.io | mit | 8,374 | 191 | codeparrot/github-code |
ef7907fd5fc08e9a69d794561cb3608db9b338ff6bbde779af4c937c772be3bd | # import libraries
import urllib.request
from feedgen.feed import FeedGenerator
from post_parser import post_title, post_author, post_time, post_files_num
from misc import is_number
# info
baseurl = 'http://phya.snu.ac.kr/xe/underbbs/'
url ='http://phya.snu.ac.kr/xe/index.php?mid=underbbs&category=372' # notices + gen... | Python | update_general.py | seungwonpark/SNU_physics_board_rss | mit | 1,781 | 65 | codeparrot/github-code |
4b42bd16ed528ca27c224e254f14e8c88fd3de31b6dc52f332dbe83ab9b3388b | /*
Copyright 2017-2019 Igor Petrovic
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 | src/general/IO.h | paradajz/avr-core | mit | 1,324 | 33 | codeparrot/github-code |
ae3511d43f8cb88496b2b41ba42da81999547f18a60faddbb9a7087b90e1ebe1 | #!/usr/bin/env python
__version__= "$Version: $"
__rcsid__="$Id: $"
import matplotlib
#matplotlib.use('WX')
from wx import MilliSleep
from wx import SplashScreen, SPLASH_CENTRE_ON_SCREEN, SPLASH_TIMEOUT
import os
import sys
import warnings
from . import zpickle
from .utils import *
from .dialogs.waxy import *
from ... | Python | plasticity/run.py | bblais/plasticity | mit | 17,982 | 621 | codeparrot/github-code |
6c349b84a39863559d7a5311c165ceb2ac5b166ce40aacd7f2aaae1b3f375844 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web.UI;
using System.Data;
using System.Globalization;
using System.Web.UI.WebControls;
public partial class Detail : Page
{
public const string KeyDropDownData = "KeyDropDownData";
public const string KeyData = "KeyData";
pr... | C# | Website_internal/Detail.aspx.cs | BJB-SK/MK | mit | 12,740 | 381 | codeparrot/github-code |
618106327d571c70988875693b857ec5537c870f3bccb2965c3235e1d4bc7bc6 | import leon.lang._
object MergeSort {
sealed abstract class List
case class Cons(head:Int,tail:List) extends List
case class Nil() extends List
case class Pair(fst:List,snd:List)
def contents(l: List): Set[Int] = l match {
case Nil() => Set.empty
case Cons(x,xs) => contents(xs) ++ Set(x)
}
def... | Scala | testcases/verification/list-algorithms/MergeSort.scala | ericpony/scala-examples | mit | 1,761 | 66 | codeparrot/github-code |
f79999996bb7f0eefcb62254bf989c888834e14b84505e81711ac4f924d2684f | exports.definition = {
/**
* Add custom methods to your Model`s Records
* just define a function:
* ```js
* this.function_name = function(){
* //this == Record
* };
* ```
* This will automatically add the new method to your Record
*
* @class Definition
* @name Custom Record Me... | JavaScript | lib/base/methods.js | PhilWaldmann/openrecord | mit | 843 | 37 | codeparrot/github-code |
56daba7034a037adc52d584da6cd13b521c139097d3b526cb33ff75cfcd0d757 | /* ----------------------------------
* PUSH v2.0.0
* Licensed under The MIT License
* inspired by chris's jquery.pjax.js
* http://opensource.org/licenses/MIT
* ---------------------------------- */
!function () {
var noop = function () {};
// Pushstate cacheing
// ==================
var isScrolling;
... | JavaScript | js/push.js | vladikoff/ratchet | mit | 12,122 | 420 | codeparrot/github-code |
e366aec007f146aa72de3cab1aa0c2c71b390741ac1b88de066770cca58ad2ae | package io.mewbase.rwtest;
import io.mewbase.TestUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.File;
import java.io.RandomAccessFile;
/**
* Created by tim on 11/10/16.
*/
public class MemoryMappedFileRWTest implements RWTest {
private final static Logger logger = LoggerFactory... | Java | src/test/java/io/mewbase/rwtest/MemoryMappedFileRWTest.java | ssouris/mewbase | mit | 1,622 | 55 | codeparrot/github-code |
3580bfd7a5fb2074304a1f209eb7bf1930dd7b152685b2e3b1672946942737fa | /*
Bullet Continuous Collision Detection and Physics Library
Copyright (c) 2003-2007 Erwin Coumans http://continuousphysics.com/Bullet/
This software is provided 'as-is', without any express or implied warranty.
In no event will the authors be held liable for any damages arising from the use of this software.
P... | C++ | extern/bullet/Demos/HelloWorld/HelloWorld.cpp | sabov/jedi | mit | 6,257 | 181 | codeparrot/github-code |
dad387b09a34a749d613a08f6b7bd4f4e561f018efe01ba58cabab5dc1c43439 |
/*****************************************************
* Copyright (c) 2014 Colby Brown *
* This program is released under the MIT license. *
* For more information about the MIT license, *
* visit http://opensource.org/licenses/MIT *
*************************************... | JavaScript | public/js/volunteer.app.js | brobo/mumshoppe-dep | mit | 8,235 | 291 | codeparrot/github-code |
7760d3b6be8799f30f5111274ca0955985afa29377698f4d741a6360f529ac08 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Login Page - Photon Admin Panel Theme</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
<link rel="shortcut icon" href="ht... | HTML | lib/assets/images/photon/plugins/elrte/js/js/plugins/prettify/js/plugins/elrte.min.js.html | user-tony/photon-rails | mit | 14,532 | 197 | codeparrot/github-code |
0a7fd343b7ea26d1ea971bf6941758c07b0759c8aa217cb62c1fbf7735dc47c1 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Brian Schrader - D242</title>
<link rel="shortcut icon" href="/assets/images/favicon.ico">
<link rel="sty... | HTML | _site/2016/03/30/d242.html | Sonictherocketman/mirror.microblog | mit | 70,866 | 1,701 | codeparrot/github-code |
ac043d3761a7ad5cdb05828734978f2cbe2a1a01c1775980313b21cd7ca8f025 |
/* -----------------------------------------------------------------------------------------------------------
Software License for The Fraunhofer FDK AAC Codec Library for Android
© Copyright 1995 - 2013 Fraunhofer-Gesellschaft zur Förderung der angewandten Forschung e.V.
All rights reserved.
1. INTRODUCTION... | C++ | Blik2D/addon/fdk-aac-0.1.4_for_blik/libSBRenc/src/sbrenc_freq_sca.cpp | BonexGu/Blik2D-SDK | mit | 22,046 | 692 | codeparrot/github-code |
cc34446a80ec0f304e726c78af95d1f62f2b6f321a97e8d79a528f0683e31429 | // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information.
using System;
using TerraFX.ApplicationModel;
using TerraFX.Graphics;
using TerraFX.Numerics;
using static TerraFX.Utilities.UnsafeUtilities;
namespace TerraFX.Samples.Grap... | C# | samples/TerraFX/Graphics/HelloTransform.cs | terrafx/terrafx | mit | 7,929 | 183 | codeparrot/github-code |
c78e1931af17048028ff16073861194c05ffbb6316924491b230121d8c34b0a5 | <?php
/**
* Created by HKM Corporation.
* User: Hesk
* Date: 14年8月28日
* Time: 上午11:37
*/
abstract class SingleBase
{
protected $db, $table, $stock_operation, $app_comment;
protected $post_id, $lang, $content, $cate_list;
public function __construct($ID)
{
global $wpdb;
$this->post... | PHP | core/reuseable/SingleBase.php | jjhesk/v-server-sdk-bank | mit | 4,509 | 147 | codeparrot/github-code |
206c9d0f3a9f582fedceb5fa3d882a643daf73372a47213ad7eb9d10db8b9a3f | package equus.webstack.application;
import java.net.URI;
import javax.ws.rs.core.UriBuilder;
import lombok.Setter;
import lombok.SneakyThrows;
import lombok.val;
import lombok.extern.slf4j.Slf4j;
import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.webapp.WebAppContext;
@Slf4j
public class JettyStarter... | Java | src/test/java/equus/webstack/application/JettyStarter.java | equus52/java-web-stack | mit | 2,013 | 81 | codeparrot/github-code |
2ac90967d7a33b4264776126d7dabd9f198394e5b289bd0fd62840fbd209e406 | # frozen_string_literal: true
module M3u8
# DateRangeItem represents a #EXT-X-DATERANGE tag
class DateRangeItem
include M3u8
attr_accessor :id, :class_name, :start_date, :end_date, :duration,
:planned_duration, :scte35_cmd, :scte35_out, :scte35_in,
:end_on_next, :client_a... | Ruby | lib/m3u8/date_range_item.rb | sethdeckard/m3u8 | mit | 2,868 | 114 | codeparrot/github-code |
47e113c2578e7e3db509c3111d4fbf98e08f79876795bb904b4434a0f735217a | using System;
using System.Collections;
using System.Windows.Media;
using Microsoft.Win32;
using MS.Win32;
namespace System.Windows
{
/// <summary>
/// Contains properties that are queries into the system's various colors.
/// </summary>
public static class SystemColors
{
#region Colors... | C# | Cache/Libs/net46/wpf/src/Framework/System/Windows/SystemColors.cs | mind0n/hive | mit | 58,975 | 2,008 | codeparrot/github-code |
ab1ee2b4a67eb8df8c8378f1512b6b4b87a2e7867012133ccbd7381b98238032 | require 'bandcamp/band'
require 'bandcamp/album'
require 'bandcamp/track'
require 'bandcamp/request'
module Bandcamp
class Getter
def initialize request
@request = request
end
def track track_id
response = @request.track track_id
response.nil? ? nil : Track.new(response)
end
... | Ruby | lib/bandcamp/getter.rb | sleepycat/bandcamp_api | mit | 1,343 | 62 | codeparrot/github-code |
6ec4331b4edae61d4215fdd10c3472f6987a0ff11ef9eae4efa985eda8b81d88 | 'use strict';
var format = require('util').format
, scripts = require('./scripts')
, loadScriptSource = require('./load-script-source')
// Ports: https://code.google.com/p/chromium/codesearch#chromium/src/third_party/WebKit/Source/core/inspector/InspectorDebuggerAgent.cpp
function ignore(cb) { ... | JavaScript | lib/inspector/InspectorDebuggerAgent.js | thlorenz/debugium | mit | 5,597 | 149 | codeparrot/github-code |
416fc13b2f633355f9ef3dbd6bb64711d43710709b95fcd5abaf2ee562895ab5 | /* eslint no-console: 0 */
'use strict';
const fs = require('fs');
const mkdirp = require('mkdirp');
const rollup = require('rollup');
const nodeResolve = require('rollup-plugin-node-resolve');
const commonjs = require('rollup-plugin-commonjs');
const uglify = require('rollup-plugin-uglify');
const src = 'src';
con... | JavaScript | rollup-aot.config.js | marcandrews/angular2-rollup-investigation | mit | 2,085 | 91 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.