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 |
|---|---|---|---|---|---|---|---|---|
152a858bfc7202c70ab34f8bf1bae9cbd34542ca32cbd8061023c044f02b5424 | /*
* Copyright 2013 Red Hat Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, d... | C | virt/drivers/gpu/drm/nouveau/core/subdev/fb/ramnvc0.c | mericon/Xp_Kernel_LGH850 | gpl-2.0 | 21,106 | 734 | codeparrot/github-code |
aa492b37b34895a097deb622d93c163f19b89952d0fcc93551c4aefe2754a4a2 | /*
* Copyright (c) 2005 Cisco Systems. All rights reserved.
*
* This software is available to you under a choice of one of two
* licenses. You may choose to be licensed under the terms of the GNU
* General Public License (GPL) Version 2, available from the file
* COPYING in the main directory of this source tre... | C | virt/drivers/infiniband/ulp/srp/ib_srp.c | mericon/Xp_Kernel_LGH850 | gpl-2.0 | 90,486 | 3,374 | codeparrot/github-code |
5fcd6583ff20718dbb48ce79d7cd2160e350eb90a535b2e53342f3b62b14caee | /*
* SuperH HSPI bus driver
*
* Copyright (C) 2011 Kuninori Morimoto
*
* Based on spi-sh.c:
* Based on pxa2xx_spi.c:
* Copyright (C) 2011 Renesas Solutions Corp.
* Copyright (C) 2005 Stephen Street / StreetFire Sound Labs
*
* This program is free software; you can redistribute it and/or modify
* it under th... | C | virt/drivers/spi/spi-sh-hspi.c | AiJiaZone/linux-4.0 | gpl-2.0 | 6,671 | 322 | codeparrot/github-code |
422a15f945575b1bc7a31d049d580eeb92fd6150f841a59ba4e1a5a9d89ba6e4 | #ifndef __ASM_GENERIC_CMPXCHG_LOCAL_H
#define __ASM_GENERIC_CMPXCHG_LOCAL_H
#include <linux/types.h>
extern unsigned long wrong_size_cmpxchg(volatile void *ptr);
/*
* Generic version of __cmpxchg_local (disables interrupts). Takes an unsigned
* long parameter, supporting various types of architectures.
*/
static ... | C | src/l4/pkg/linux-26-headers/include/asm-generic/cmpxchg-local.h | MicroTrustRepos/microkernel | gpl-2.0 | 1,369 | 66 | codeparrot/github-code |
56b55cc2422feac57b7f594633960805bb608048d01a59ea2596a6571ce79557 | /* linux/arch/arm/plat-s3c64xx/dma.c
*
* Copyright 2009 Openmoko, Inc.
* Copyright 2009 Simtec Electronics
* Ben Dooks <ben@simtec.co.uk>
* http://armlinux.simtec.co.uk/
*
* S3C64XX DMA core
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public... | C | packages/wbsairback-kernel-image/wbsairback-kernel-image-3.2.43/arch/arm/mach-s3c64xx/dma.c | WhiteBearSolutions/WBSAirback | apache-2.0 | 16,715 | 753 | codeparrot/github-code |
b98c1a26697c5985779906fc4475ede53459f357dcac8b475a536667ad92c8bd | /*
* Au1000/Au1500/Au1100 AC97C controller driver for ASoC
*
* (c) 2011 Manuel Lauss <manuel.lauss@googlemail.com>
*
* based on the old ALSA driver originally written by
* Charles Eidsness <charles@cooper-street.com>
*/
#include <linux/init.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/... | C | uefi/linux-source-3.8.0/sound/soc/au1x/ac97c.c | SanDisk-Open-Source/SSD_Dashboard | gpl-2.0 | 8,515 | 353 | codeparrot/github-code |
e0cb7d023c51fee49066e69019867e2a8feccdd4e79980a51ff4523eaf554020 | YUI.add('widget-stack', function(Y) {
/**
* Provides stackable (z-index) support for Widgets through an extension.
*
* @module widget-stack
*/
var L = Y.Lang,
UA = Y.UA,
Node = Y.Node,
Widget = Y.Widget,
ZINDEX = "zIndex",
SHIM = "shim",
VISIBLE = "visible",
... | JavaScript | ajax/libs/yui/3.1.2/widget/widget-stack.js | dc-js/cdnjs | mit | 12,193 | 397 | codeparrot/github-code |
f1bd628e99f2b20dfbb1c5251d8d270deb6b759902bf31546ba75e3ca88d618f | /******************************************************************************
*
* Copyright(c) 2003 - 2011 Intel Corporation. All rights reserved.
*
* Portions of this file are derived from the ipw3945 project, as well
* as portions of the ieee80211 subsystem header files.
*
* This program is free software; yo... | C | packages/wbsairback-kernel-image/wbsairback-kernel-image-3.2.43/drivers/net/wireless/iwlegacy/iwl-rx.c | WhiteBearSolutions/WBSAirback | apache-2.0 | 9,445 | 283 | codeparrot/github-code |
4153a898b1a4443764c36b4b46dfa48cd483570a13016b5b13cc7ca9593f1d84 | /*
* Copyright (C) 2001 MandrakeSoft S.A.
* Copyright 2010 Red Hat, Inc. and/or its affiliates.
*
* MandrakeSoft S.A.
* 43, rue d'Aboukir
* 75002 Paris - France
* http://www.linux-mandrake.com/
* http://www.mandrakesoft.com/
*
* This library is free software; you can redistribute it and/or
... | C | virt/kvm/ioapic.c | ddk50/cbc-linux-kernel | gpl-2.0 | 15,012 | 604 | codeparrot/github-code |
6dd352240d81a3b26ea7a71b513010366e013113c523bc7a59f6b1efbd1e2915 | /*
* console.c: Routines that deal with sending and receiving IO
* to/from the current console device using the PROM.
*
* Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
*/
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/sched.h>
#include <asm/openprom.h>
#include <asm/op... | C | virt/arch/m68k/sun3/prom/console.c | JijonHyuni/HyperKernel-JB | gpl-2.0 | 4,002 | 171 | codeparrot/github-code |
f2c4fc27fdcb0b04c48de50fb47f595ff4b94843d06726925e3155d19d93fe93 | /*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this fi... | Java | core/src/main/java/org/elasticsearch/search/aggregations/support/FieldContext.java | weipinghe/elasticsearch | apache-2.0 | 2,122 | 63 | codeparrot/github-code |
163ed6bc5b47331607bd60ef8f5885110d224ebe4d0b9be3462faac397e94f67 | <?php
/**
* Zend Framework
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
* If you did not receive a copy of the license an... | PHP | zendlib/Zend/Config/Writer/Yaml.php | Arcavias/arcavias-demo | lgpl-3.0 | 4,142 | 145 | codeparrot/github-code |
6585f6c43877c974bc429c40e587c559a8fcf2044c2695cdebd8b6e6524591b1 | /*
* Driver for Lineage Compact Power Line series of power entry modules.
*
* Copyright (C) 2010, 2011 Ericsson AB.
*
* Documentation:
* http://www.lineagepower.com/oem/pdf/CPLI2C.pdf
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public Licens... | C | virt/drivers/hwmon/lineage-pem.c | AiJiaZone/linux-4.0 | gpl-2.0 | 15,263 | 548 | codeparrot/github-code |
b82a3498fe052148eb8b8d1b3392773db48247d3d04f1a9dea46b6d5962662d3 | /*
* f_eem.c -- USB CDC Ethernet (EEM) link function driver
*
* Copyright (C) 2003-2005,2008 David Brownell
* Copyright (C) 2008 Nokia Corporation
* Copyright (C) 2009 EF Johnson Technologies
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public ... | C | virt/drivers/usb/gadget/f_eem.c | JijonHyuni/HyperKernel-JB | gpl-2.0 | 14,383 | 566 | codeparrot/github-code |
60f51243ef7642a18e321d3b3a3e0f695e3e07dc5288fad85960b1325ee5bac4 | /*
* arch/arm/mach-ns9xxx/gpio.c
*
* Copyright (C) 2006,2007 by Digi International Inc.
* 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 as published by
* the Free Software Foundation.
*/
#include <l... | C | src/arch/arm/mach-ns9xxx/gpio.c | felixhaedicke/nst-kernel | gpl-2.0 | 2,982 | 148 | codeparrot/github-code |
4621f96bdeee28ec60a0b99882dc02100f59853bf75ca1ff80defb1a2bfe4aee | /*
* SELinux interface to the NetLabel subsystem
*
* Author: Paul Moore <paul@paul-moore.com>
*
*/
/*
* (c) Copyright Hewlett-Packard Development Company, L.P., 2006
*
* 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... | C | virt/security/selinux/include/netlabel.h | AiJiaZone/linux-4.0 | gpl-2.0 | 3,784 | 150 | codeparrot/github-code |
b8e5bacb3cbe05aab205b56833d82aa4b9e83625ba54bb2145c6feb92e22310e | /*
* Link physical devices with ACPI devices support
*
* Copyright (c) 2005 David Shaohua Li <shaohua.li@intel.com>
* Copyright (c) 2005 Intel Corp.
*
* This file is released under the GPLv2.
*/
#include <linux/init.h>
#include <linux/list.h>
#include <linux/device.h>
#include <linux/slab.h>
#include <linux/rwse... | C | release/src-rt-7.x.main/src/linux/linux-2.6.36/drivers/acpi/glue.c | wkritzinger/asuswrt-merlin | gpl-2.0 | 6,063 | 261 | codeparrot/github-code |
e8459cab6ebe39eaaa7941c4a532f1e86bf1b5012488e4d8938cc3237fef01d4 | /*!
Video.js Default Styles (http://videojs.com)
Version 4.12.12
Create your own skin at http://designer.videojs.com
*/
/* SKIN
================================================================================
The main class name for all skin-specific styles. To make your own skin,
replace all occurrences of 'vjs-defaul... | CSS | files/videojs/4.12.12/video-js.css | abishekrsrikaanth/jsdelivr | mit | 28,020 | 1,012 | codeparrot/github-code |
26a1d747354e2820f27a70e2506fff82869ac2d226bec1d666f3d06e377c8e9b | /*
* Back-end of the driver for virtual network devices. This portion of the
* driver exports a 'unified' network-device interface that can be accessed
* by any operating system that implements a compatible front end. A
* reference front-end implementation can be found in:
* drivers/net/xen-netfront.c
*
* Copyr... | C | unionfs-3.10.y/drivers/net/xen-netback/netback.c | prasidh09/cse506 | gpl-2.0 | 51,164 | 1,993 | codeparrot/github-code |
2eaec134f10db9c67d9fb4f91f498aec9316bc9663ce9845bd334ba5cede3456 | <?php
/*
* Copyright 2013 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | PHP | ytpl/src/Google/IO/Abstract.php | cn-aditya/thescene | gpl-2.0 | 10,871 | 340 | codeparrot/github-code |
a7ea0c4ef203618434577aff6183bfe83644656f39c2c67d9585063dbd31b901 | <!DOCTYPE html>
<!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]-->
<!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]-->
<!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!-->
<html lang="en" xmlns="http://www.w3.org/1999/html"> <!--<![endif]-->
<head>
<!-- Basic... | HTML | www/lib/font-awesome/src/3.2.1/icon/youtube/index.html | vinnylinck/listagram | mit | 10,059 | 209 | codeparrot/github-code |
708d92aa6afb247b119ab12b7623e9ec835e3224b26521bb00f90b0915469d9f | /*
* comedi/drivers/cb_pcidda.c
* Driver for the ComputerBoards / MeasurementComputing PCI-DDA series.
*
* Copyright (C) 2001 Ivan Martinez <ivanmr@altavista.com>
* Copyright (C) 2001 Frank Mori Hess <fmhess@users.sourceforge.net>
*
* COMEDI - Linux Control and Measurement Device Interface
* Copyright (C) 1997-... | C | media/drivers/staging/comedi/drivers/cb_pcidda.c | iwinoto/v4l-media_build | gpl-2.0 | 12,625 | 430 | codeparrot/github-code |
4ce398065d1639ab528cb31a18a33a99b6306c9a804ed5f962a3d154021541a8 | /* Copyright (c) 2013-2014, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the... | C | kernel/include/soc/qcom/smem.h | qtekfun/htcDesire820Kernel | gpl-2.0 | 6,915 | 242 | codeparrot/github-code |
bedd545446090662363a94bc9a939a5ec7711cc956faa1a0e4be181c571e0c1c | /**
* Danish translation
* @author Mark Topper (webman.io)
* @version 2014-12-19
*/
if (elFinder && elFinder.prototype && typeof(elFinder.prototype.i18) == 'object') {
elFinder.prototype.i18.da = {
translator : 'Mark Topper (webman.io)',
language : 'Language of translation in Danish',
direction : 'ltr',
... | JavaScript | webserver/code/fm/js/i18n/elfinder.da.js | Gymnae/mumblesoundboard | gpl-3.0 | 15,761 | 367 | codeparrot/github-code |
5bc6b07de56e4b9494d8a23da26d4bf52a2f4536e0cc4db27b72ea3c84c08504 | <?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/Http/ClientStatic.php | pdhwi/hwi_test | bsd-3-clause | 2,969 | 113 | codeparrot/github-code |
3d9a79ae94392dd89c21fc5e91eb3d104eccfa2826e05e6255ff9982bbadab2b | YUI.add('event-mouseenter', function(Y) {
/**
* Adds support for mouseenter/mouseleave events
* @module event
* @submodule event-mouseenter
*/
var Event = Y.Event,
Lang = Y.Lang,
plugins = Y.Env.evt.plugins,
listeners = {},
eventConfig = {
on: function(type, fn, el) {
var args = Y.Array(argume... | JavaScript | ajax/libs/yui/3.1.2/event/event-mouseenter-debug.js | rlugojr/cdnjs | mit | 4,692 | 187 | codeparrot/github-code |
ffafb86d28e8612b0ba44f5fc0daf9dfdc277c96132b232d73b05936e5e80f25 | class Libwps < Formula
desc "Library to import files in MS Works format"
homepage "http://libwps.sourceforge.net"
url "http://dev-www.libreoffice.org/src/libwps-0.4.2.tar.bz2"
sha256 "254b8aeb36a3b58eabf682b04a5a6cf9b01267e762c7dc57d4533b95f30dc587"
bottle do
cellar :any
sha256 "955cec0a064444c0c6db3... | Ruby | fetched_code/ruby/libwps.rb | rokn/Count_Words_2015 | mit | 1,554 | 44 | codeparrot/github-code |
ca897ad8a1509b95af5a9cbe15b198c5df11f712cb28cae3689ad967df67125e | /*
* Copyright (C) 2003 Ralf Baechle
*
* 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.
*
* Handler for RM700... | C | virt/arch/mips/kernel/irq-rm7000.c | AiJiaZone/linux-4.0 | gpl-2.0 | 1,293 | 50 | codeparrot/github-code |
54ee71b44377deca56998da50c31bcf2241f8d2f76bc847aec1d5cd6f62a34ec | /*
* linux/include/asm/setup.h
*
* Copyright (C) 1997-1999 Russell King
*
* 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.
*
* Structure passed to kernel to tell it about th... | C | virt/arch/arm/include/uapi/asm/setup.h | AiJiaZone/linux-4.0 | gpl-2.0 | 3,976 | 188 | codeparrot/github-code |
1005813aa67bd33a5208a355694332f53c94591bc95983dacafcb49ae85c097f | YUI.add('scrollview-base', function (Y, NAME) {
/**
* The scrollview-base module provides a basic ScrollView Widget, without scrollbar indicators
*
* @module scrollview
* @submodule scrollview-base
*/
var getClassName = Y.ClassNameManager.getClassName,
DOCUMENT = Y.config.doc,
WINDOW = Y.config.win,
I... | JavaScript | ajax/libs/yui/3.7.3/scrollview-base/scrollview-base.js | thetable/cdnjs | mit | 40,728 | 1,394 | codeparrot/github-code |
4f189bd51ae617fd6c61f0649236fed828f6c0b750dfb8d9332cad5f6585918f | /*
* zfcp device driver
*
* Interface to the FSF support functions.
*
* Copyright IBM Corporation 2002, 2009
*/
#ifndef FSF_H
#define FSF_H
#include <linux/pfn.h>
#include <linux/scatterlist.h>
#define FSF_QTCB_CURRENT_VERSION 0x00000001
/* FSF commands */
#define FSF_QTCB_FCP_CMND 0x00000001
#define FSF_Q... | C | openplatform/sdk/os/kernel-2.6.32/drivers/s390/scsi/zfcp_fsf.h | go2ev-devteam/Gplus_2159_0801 | gpl-2.0 | 12,911 | 454 | codeparrot/github-code |
d47b5bd7e7aab5915fb5f26b16b4cd0562887ed320ea97abd4d71e29545dec8b | /* Check that TRT happens for a signal sent to a non-existent process/thread, more than one thread.
#cc: additional_flags=-pthread
#notarget: cris*-*-elf
*/
#include <stdlib.h>
#include <stddef.h>
#include <stdio.h>
#include <unistd.h>
#include <pthread.h>
#include <sys/types.h>
#include <signal.h>
#include <errno.h>
... | C | user/gdb/sim/testsuite/sim/cris/c/sig12.c | rhuitl/uClinux | gpl-2.0 | 736 | 39 | codeparrot/github-code |
49452a4d1ae78fa9061e21b6bbba11a3a8f7fd3c0ba4180b61971c54297da5d1 | /*
* Copyright (C) 2008 Google, Inc.
* Copyright (C) 2008 HTC Corporation
* Copyright (c) 2012-2013 The Linux Foundation. All rights reserved.
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and
* may be copied, distribute... | C | sound/soc/msm/qdsp6v2/msm-pcm-q6-v2.h | ryrzy/LG-D802-G2-_Android_KK_D802v20a | gpl-2.0 | 2,603 | 112 | codeparrot/github-code |
16e33d575c45f6d241d344f1cc064c2c8991bd267961eba2b1fc59a550163593 | #include <core/os.h>
#include <core/class.h>
#include <core/engctx.h>
#include <core/enum.h>
#include <subdev/timer.h>
#include <subdev/fb.h>
#include <engine/graph.h>
#include "nv20.h"
#include "regs.h"
/*******************************************************************************
* Graphics object classes
***... | C | uefi/linux-source-3.8.0/drivers/gpu/drm/nouveau/core/engine/graph/nv34.c | SanDisk-Open-Source/SSD_Dashboard | gpl-2.0 | 5,348 | 169 | codeparrot/github-code |
cc1a17d337e2814ef138410a1782a34035c0a59d61a8166678b62d23217d0789 | /* ------------------------------------------------------------------------ *
* i2c-parport-light.c I2C bus over parallel port *
* ------------------------------------------------------------------------ *
Copyright (C) 2003-2007 Jean Delvare <khali@linux-fr.org>
Based on older i2c... | C | src/drivers/i2c/busses/i2c-parport-light.c | felixhaedicke/nst-kernel | gpl-2.0 | 6,142 | 242 | codeparrot/github-code |
084848c160219e563394ffb016a59e4c3e6745b5c5a38d826b9d16260fca141b | /*
* drivers/char/watchdog/pnx4008_wdt.c
*
* Watchdog driver for PNX4008 board
*
* Authors: Dmitry Chigirev <source@mvista.com>,
* Vitaly Wool <vitalywool@gmail.com>
* Based on sa1100 driver,
* Copyright (C) 2000 Oleg Drokin <green@crimea.edu>
*
* 2005-2006 (c) MontaVista Software, Inc. This file is lice... | C | release/src-rt-7.x.main/src/linux/linux-2.6.36/drivers/watchdog/pnx4008_wdt.c | wkritzinger/asuswrt-merlin | gpl-2.0 | 8,641 | 368 | codeparrot/github-code |
841a9447c85ac4ec951bf3302e5c5dcbf9e17a57104a0d5192c9da2c13626cb0 | /*
* Thomas Horsten <thh@lasat.com>
* Copyright (C) 2000 LASAT Networks A/S.
*
* This program is free software; you can distribute it and/or modify it
* under the terms of the GNU General Public License (Version 2) as
* published by the Free Software Foundation.
*
* This program is distributed in the hope i... | C | virt/arch/mips/lasat/reset.c | JijonHyuni/HyperKernel-JB | gpl-2.0 | 1,629 | 62 | codeparrot/github-code |
213f838dd96e4a5f9346ff26535e9337091f21a22bb22113bb6f71e3436d66a7 | <?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 | moodle/enrol/manual/externallib.php | rafaelperazzo/ufca-web | gpl-3.0 | 9,384 | 229 | codeparrot/github-code |
d2572268b79591d9b51334e957cc03ab5ed3e40a60b8667366b9db40d029c6ee | /*
* Copyright (C) 2010, Lars-Peter Clausen <lars@metafoo.de>
* JZ4740 platform timer 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, or ... | C | arch/mips/jz4740/timer.c | mbrugg/MC-EWIO-KERNEL-ORG | gpl-2.0 | 1,371 | 49 | codeparrot/github-code |
7756c6908013e978cbc6e978b6b1b48b25b0cbc370cd38ddc6148dbd36152bea | #ifndef _ASM_X86_NMI_H
#define _ASM_X86_NMI_H
#include <linux/pm.h>
#include <asm/irq.h>
#include <asm/io.h>
#ifdef ARCH_HAS_NMI_WATCHDOG
/**
* do_nmi_callback
*
* Check to see if a callback exists and execute it. Return 1
* if the handler exists and was handled successfully.
*/
int do_nmi_callback(struct pt_r... | C | openplatform/sdk/os/kernel-2.6.32/arch/x86/include/asm/nmi.h | go2ev-devteam/Gplus_2159_0801 | gpl-2.0 | 2,267 | 80 | codeparrot/github-code |
f762e5fde3a27b75142a2a598354b9cb8a4db23f9777e5db8b2b6b48a38d281b | /*
* linux/arch/arm/mach-omap1/clock.h
*
* Copyright (C) 2004 - 2005 Nokia corporation
* Written by Tuukka Tikkanen <tuukka.tikkanen@elektrobit.com>
* Based on clocks.h by Tony Lindgren, Gordon McNutt and RidgeRun, Inc
*
* This program is free software; you can redistribute it and/or modify
* it under the t... | C | openplatform/sdk/os/kernel-2.6.32/arch/arm/mach-omap1/clock.h | go2ev-devteam/Gplus_2159_0801 | gpl-2.0 | 18,633 | 670 | codeparrot/github-code |
158ffcc4af617d9e802fbb887469f29c596fd814d715736164d932dd708d2222 | <?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 | testauthorize/mod/lesson/backup/moodle2/backup_lesson_activity_task.class.php | sorted2323/msi | gpl-3.0 | 4,297 | 112 | codeparrot/github-code |
ce4098feaf9314ee2e07ad00d904b3361f6af0a41430e772161ae2a866c97904 | /*
* drivers/pcmcia/sa1100_assabet.c
*
* PCMCIA implementation routines for Assabet
*
*/
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/interrupt.h>
#include <linux/device.h>
#include <linux/init.h>
#include <mach/hardware.h>
#include <asm/mach-types.h>
#include <asm/... | C | openplatform/sdk/os/kernel-2.6.32/drivers/pcmcia/sa1100_assabet.c | go2ev-devteam/Gplus_2159_0801 | gpl-2.0 | 3,329 | 142 | codeparrot/github-code |
a28231b0cb340af758db1705f759115295391cc2344bf3618afda8ec023356b5 | /*
* ip_vs_xmit.c: various packet transmitters for IPVS
*
* Authors: Wensong Zhang <wensong@linuxvirtualserver.org>
* Julian Anastasov <ja@ssi.bg>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public Lic... | C | netasdf/netfilter/ipvs/ip_vs_xmit.c | sktjdgns1189/android_kernel_samsung_SHW-M290S | gpl-2.0 | 23,350 | 1,008 | codeparrot/github-code |
e31ee117e542fe7d9e62d87fba6b3f1d166032d7aaa5cddf58b22fe51477944f | import { expect } from 'chai';
import { Action } from 'redux-actions';
import { map } from 'rxjs/operators/map';
import { toArray } from 'rxjs/operators/toArray';
import { Subject } from 'rxjs/Subject';
import * as sinon from 'sinon';
import { ActionsObservable, combineEpics } from '../';
import {
TEpic,
} from '../m... | TypeScript | src/__tests__/combineEpics.spec.ts | beckend/redux-observable-ts | isc | 2,275 | 73 | codeparrot/github-code |
56b63dbe2a34cf934096b134bc87acb69eda557a239e65bc7b9e4d8b8679d238 | // @author jonatkins
// @name Highlight inactive portals
// @category Highlighter
// @version 0.1.0
// @description Use the portal fill color to denote if the portal is unclaimed with no recent activity. Shades of red from one week to one month, then tinted to purple for longer. May al... | JavaScript | plugins/highlight-forgotten.js | 3ch01c/ingress-intel-total-conversion | isc | 1,185 | 36 | codeparrot/github-code |
6901d6e2205091673ec6aa5c5514aae4d02db93e538e22c419696ee868c9cd09 | var handlers = {
stats: function (args, channel, persona_name, message, chatObject) {
var self = this;
var userId = chatObject.account_id;
if (!this.userCollection.ready) return;
this.userCollection.get(userId, function(user) {
self.userCollection.getRank(userId, function... | JavaScript | bot/plugins/trivia/handlers.js | devilesk/dota-trivia-bot | isc | 2,726 | 65 | codeparrot/github-code |
f92a4249ced8390d711e94ba645fe47b36420dd177fab498caed2ea4e8083081 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "./list.h"
void list_destroy(List *l) {
while (!list_empty(l))
(void) list_pop(l);
free(l);
}
List *list_create(void) {
List *l = (List *) malloc(sizeof(List));
if (l == NULL) {
perror("malloc");
abort();
} else {
l->tail = ... | C | src/list.c | mkopta/vzdaleni_pribuzni | isc | 2,940 | 163 | codeparrot/github-code |
3ffdbd96e91669d5bc6017418ea8dae7027cc1923a9626373fe8696042774501 | /*
* Copyright (c) 2008 James Molloy, Jörg Pfähler, Matthew Iselin
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "A... | C++ | src/subsys/posix/net-syscalls.cc | jmolloy/pedigree | isc | 23,481 | 755 | codeparrot/github-code |
a3f4fa2f33de42189dc9d170ec1c8a08a62faae7c4eae91342ddbb83cdda13c8 | import Vue from 'vue'
import VueRouter from 'vue-router'
import store from '@/store'
import ParametersForm from '@/components/parameters/ParametersForm'
Vue.use(VueRouter)
const routes = [
{
path: '/',
name: 'Dashboard',
component: () => import(/* webpackChunkName: "dashboard" */ '../views/Dashboard.v... | JavaScript | frontend/src/router/index.js | modoboa/modoboa | isc | 3,995 | 169 | codeparrot/github-code |
c9e1debafc3169b433b32fb7c5bf25c11cc2d2bff097ab0db5128a3a36d14c45 | #ifndef STAN_LANG_AST_FUN_IS_USER_DEFINED_DEF_HPP
#define STAN_LANG_AST_FUN_IS_USER_DEFINED_DEF_HPP
#include <stan/lang/ast.hpp>
#include <string>
#include <utility>
#include <vector>
namespace stan {
namespace lang {
bool is_user_defined(const fun& fx) {
return is_user_defined(fx.name_, fx.args_);
}... | C++ | httpstan/lib/stan/src/stan/lang/ast/fun/is_user_defined_def.hpp | ariddell/httpstan | isc | 989 | 35 | codeparrot/github-code |
7fa6061a1ac983b5a792b304df3ae5205a43bd3f7d4c5fcc488612a69568812c | import Key from './key';
import TransitionRecord from './transition-record';
/**
* The maximum number of history items
*/
const DEFAULT_LIMIT = 50;
/**
* A class responsible for keeping a history of transitions
*/
export default class TransitionHistory {
private stack: TransitionRecord[] = [];
private ind... | TypeScript | src/state-machine/transition-history.ts | davidchin/switchhub | isc | 2,198 | 91 | codeparrot/github-code |
7699a5a913f957e75a368b2646459d0f500b1b4f6628fcfbe13372c1b91ded69 | --- Raise events for surfaces at certain time intervals.
-- This module uses the @{Event} module.
-- @module Time
-- @usage require('stdlib/event/time')
-- @see event.time.lua
require('stdlib/core')
local Time = {_module_name = "Time"}
setmetatable(Time, {__index = require('stdlib/core')})
require('stdlib/event/event... | Lua | stdlib/event/time.lua | Afforess/Big_Brother | isc | 3,884 | 98 | codeparrot/github-code |
142592c7217cb8804a3ff0195fbcaaa8aeee8e4e544b8dfc76e0af8d9b08a94e | 'use strict';
var through = require('through'),
File = require('vinyl'),
vfs = require('vinyl-fs'),
slugg = require('slugg'),
Remarkable = require('remarkable'),
fs = require('fs'),
path = require('path'),
Handlebars = require('handlebars'),
extend = require('extend'),
combine = require('stream-combi... | JavaScript | streams/output/html.js | anandthakker/documentation | isc | 7,464 | 278 | codeparrot/github-code |
f17bcee25157554a73332317fff3e14e4c425191a4430314c1d3baa7240c55ba | /* global __coverage__ */
var fs = require('fs')
var glob = require('glob')
var micromatch = require('micromatch')
var mkdirp = require('mkdirp')
var Module = require('module')
var appendTransform = require('append-transform')
var cachingTransform = require('caching-transform')
var path = require('path')
var rimraf = r... | JavaScript | index.js | novemberborn/nyc | isc | 10,979 | 405 | codeparrot/github-code |
087d651527974081a462abdaf2045b6b330d8498d5e9d267bb4eae4f97ce9d60 | <!DOCTYPE html >
<html>
<head>
<title>BinaryExpressionAST - xyz.hyperreal.mos6502.BinaryExpressionAST</title>
<meta name="description" content="BinaryExpressionAST - xyz.hyperreal.mos6502.BinaryExpressionAST" />
<meta name="keywords" content="BinaryExpressionAST xyz.hyperreal.mos65... | HTML | docs/xyz/hyperreal/mos6502/BinaryExpressionAST.html | edadma/mos6502 | isc | 28,652 | 515 | codeparrot/github-code |
4ba4bf052021e907894fcc26c328e36cee679df033a7442bdc22febc2a339b80 | package de.teammt.mobiletennis.game.screens;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Input;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.scenes.scene2d.ui.Label;
import de.teammt.mobiletennis.game.MobileTennis;
import de.teammt.mobiletennis.game.managers.ScreenManager;
import de.teammt.... | Java | MobileTennis/android/src/de/teammt/mobiletennis/game/screens/AccelScreen.java | TeamMobileTennis/MobileTennis | isc | 2,492 | 94 | codeparrot/github-code |
3914830abf2850bce5beae697d5177609b820312572da8614562cfe0795bd76a | package Server;
/**
(c) Hack Wars 2008
Description: This is the main Hack Wars server bridge. It creates the underlying connections and routes packets
to actual players of the game.
*/
import com.plink.dolphinnet.*;
import com.plink.dolphinnet.util.*;
import util.*;
import java.io.*;
import java.math.*;
import java.... | Java | src/classes/Server/HackerServer.java | Demannu/hackwars-classic | isc | 47,634 | 1,065 | codeparrot/github-code |
b1052d9a00d1b0b7c6b1a3f62d284d6cefbf93f3101608dae9bfcb3087d0e93e | (function (window, document) {
var layout = document.getElementById('layout')
var menu = document.getElementById('menu')
var menuLink = document.getElementById('menuLink')
function toggleClass (element, newClass) {
var classes = Array.from((element.className).split(/\s+/))
var length = classes.length
... | JavaScript | public/js/hamburgermenu.js | ongmin/buy4me | isc | 855 | 34 | codeparrot/github-code |
ab0aa1fd666a163153aa66857614f4702c8c646ef272ae9ff2706359d3cd06b3 | <?php
/*
* Copyright (c) 2006-2017 Adipati Arya <jawircodes@gmail.com>,
* 2006-2017 http://sshcepat.com
*
* 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 cop... | PHP | application/libraries/Sshcepat.php | Adipatiarya/Ocs-Panel-Reborns | mit | 2,112 | 59 | codeparrot/github-code |
67c41fa10b16b374606330b38dd0b0557d0a1dbd68fe74a8028185025a50ceef | import React, { Component } from 'react'
import toastr from 'toastr'
import { bindActionCreators } from 'redux'
import { connect } from 'react-redux'
import classnames from 'classnames'
import { addSongToPlaylist, setSongIndex } from '../../actions/searchActions'
import apiConfig from '../../config/apiConfig'
class Me... | JavaScript | src/components/playlist/Player.js | RanjithNair/RJTube | mit | 4,260 | 166 | codeparrot/github-code |
4337eafa00df9cd17d94993d217911647a42879b8ff6632a35938c8e4b37efc1 |
var co = require('co')
var path = require('path')
var assert = require('assert')
var Walker = require('..')
function fixture(name) {
return path.join(__dirname, 'fixtures', name, 'index.js')
}
function defaults(walker, options) {
options = options || {}
walker.use(Walker.plugins.text(options))
walker.use(Wa... | JavaScript | test/js.js | xieren58/walker.js | mit | 2,855 | 118 | codeparrot/github-code |
fb73cda1d35729c47f88b126bad349c31270894aaebd519a72ac730af5a313e9 | package org.c4sg.mapper;
import org.c4sg.dto.CreateStoryDTO;
import org.c4sg.dto.StoryDTO;
import org.c4sg.entity.Story;
import org.modelmapper.ModelMapper;
import org.modelmapper.convention.MatchingStrategies;
import org.springframework.stereotype.Component;
import java.util.ArrayList;
import java.util.List;
import ... | Java | src/main/java/org/c4sg/mapper/StoryMapper.java | Code4SocialGood/c4sg-services | mit | 1,022 | 33 | codeparrot/github-code |
be06118b7d1e5d249f789e1b3f9848ec93f62965a4ea9ebf459e7a6e4a46704c | //--------------------------------------------------------------------------------------
// File: ScreenGrab.cpp
//
// Function for capturing a 2D texture and saving it to a file (aka a 'screenshot'
// when used on a Direct3D 11 Render Target).
//
// Note these functions are useful as a light-weight runtime screen grab... | C++ | DXUT/Core/ScreenGrab.cpp | YunHsiao/HSL11 | mit | 43,970 | 1,151 | codeparrot/github-code |
c275f928084d4439dc8ad6bf9ee7e44ae686742bed2939ca38aa51ef725632dd | /****************************************************************************/
/* Copyright (c) 2013, Trevin Liberty
*
* 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... | C++ | GameEngine/common/Collision/BoundingVolumes/AABoundingBox.cpp | TrevinLiberty/CaptainLucha | mit | 7,078 | 248 | codeparrot/github-code |
9fb167f4f009777ac23f9a17cd53fcaf02b40c0139bef2148a33373ec0d972a3 | <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Restaurants extends CI_Controller {
public $globalVar = array();
public function __construct()
{
parent::__construct();
$this->load->library('pagination');
$this->load->library("session");
$this->lo... | PHP | applications/frontend/controllers/restaurants.php | Joohelmer/Pdld | mit | 4,913 | 167 | codeparrot/github-code |
3a595e902970e7688b18734c62b42a55ad0f2c2c3b3beb47133b9b0e4e3ca759 | import React, { PureComponent } from 'react'
import { graphql } from 'gatsby'
import { Divider, Header, Label, Table } from 'semantic-ui-react'
import { Footer, Markdown } from '../components'
import Layout from './index'
class Reference extends PureComponent {
renderMethod(method) {
const fragment = [
<D... | JavaScript | docs/src/layouts/Reference.js | n6g7/redux-saga-firebase | mit | 3,599 | 146 | codeparrot/github-code |
d874c4accd6c94724a247938183c700b2d9c2d29625cb8cd283886289114f135 | # -*- coding: utf-8 -*-
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
__author__ = "Ole Christian Weidner"
__copyright__ = "Copyright 2012, Ole Christian Weidner"
__license__ = "MIT"
import sys, time, uuid
import getpass
import bliss.saga as saga
def run(remote_base_url, local_file_to_copy):
"""Test... | Python | test/compliance/file/03_copy_local_remote_etc.py | saga-project/bliss | mit | 2,709 | 90 | codeparrot/github-code |
45c501bf5745198e895756cffb9a887bef53596e3830dcfce463229880b8b821 | from marshmallow import Schema, fields, post_load
from marshmallow_enum import EnumField
from enum import IntFlag
from .. import models
from commandment.inventory import models as inventory_models
class ErrorChainItem(Schema):
LocalizedDescription = fields.String()
USEnglishDescription = fields.String()
E... | Python | commandment/mdm/response_schema.py | mosen/commandment | mit | 10,132 | 241 | codeparrot/github-code |
783c63172406036f661741b2ea92526bc302130466000817f62682b1b1ebb7c8 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>gaia-hydras: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min... | HTML | clean/Linux-x86_64-4.06.1-2.0.5/released/8.11.1/gaia-hydras/0.5.html | coq-bench/coq-bench.github.io | mit | 7,048 | 172 | codeparrot/github-code |
e3174be628dff1334cabffbece4cc5de3d650789eb4e9bdcc98996abe350a97b | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>streams: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css... | HTML | clean/Linux-x86_64-4.06.1-2.0.5/released/8.11.1/streams/8.8.0.html | coq-bench/coq-bench.github.io | mit | 7,343 | 175 | codeparrot/github-code |
f0092ad261338e17fb25dd91b2d5ffc6c42e13d5d0854c6b68a58fd2f0194939 | /* */
var test = require('tape');
var functionBind = require('../implementation');
var getCurrentContext = function() {
return this;
};
test('functionBind is a function', function(t) {
t.equal(typeof functionBind, 'function');
t.end();
});
test('non-functions', function(t) {
var nonFunctions = [true, false, []... | JavaScript | pistream/static/jspm_packages/npm/function-bind@1.1.0/test/index.js | francesconistri/p2ptv-pi | mit | 7,975 | 228 | codeparrot/github-code |
67e7b15cacb3a735c8e87b854c5448728f6ad9b4e9162ba146f393ee7bd98afd | <?php
namespace DataBreakers\DataApi\Sections;
use DataBreakers\DataApi\Api;
use DataBreakers\DataApi\Batch\EntitiesBatch;
use DataBreakers\DataApi\Exceptions\InvalidArgumentException;
use DataBreakers\DataApi\Exceptions\RequestFailedException;
use DataBreakers\DataApi\Order;
use DataBreakers\DataApi\Utils\Restrictio... | PHP | src/DataApi/Sections/EntitySection.php | DataBreakers/php-data-api-client | mit | 9,150 | 235 | codeparrot/github-code |
9211f9717f4822630d160777d88b6b5403301afc434b707f132ff44eefa436ea | import random
from pokemongo_bot import logger
from pokemongo_bot.base_task import BaseTask
from pokemongo_bot.worker_result import WorkerResult
from pokemongo_bot.human_behaviour import sleep
class CompleteTutorial(BaseTask):
SUPPORTED_TASK_API_VERSION = 1
def initialize(self):
self.api = self.bo... | Python | pokemongo_bot/cell_workers/complete_tutorial.py | Compjeff/PokemonGo-Bot | mit | 4,839 | 137 | codeparrot/github-code |
242e32207e588229ab92d9b383b834a8c716db976ae5e05ece9ae4897ebf8154 | /* helper functions */
function validateEmail(email){
var emailReg = new RegExp(/^(("[\w-\s]+")|([\w-]+(?:\.[\w-]+)*)|("[\w-\s]+")([\w-]+(?:\.[\w-]+)*))(@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][0-9]\.|1[0-9]{2}\.|[0-9]{1,2}\.))((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\.... | JavaScript | web/js/application.js | benaich/LogementBundle | mit | 2,227 | 65 | codeparrot/github-code |
05dd7adcbadc9a75b29291b84e7ac9ff5cfd1a362dd272fd3f9454c3340d0055 | #region License information
/*
Copyright (c) 2016 Togocoder (http://www.codeproject.com/Members/Kim-Togo)
This file is part of Gett.NET library that uses the Ge.tt REST API, http://ge.tt/developers
Gett.NET is a free library: you can redistribute it and/or modify as nessery
it under the terms of The Code P... | C# | Gett.NET/GettShares.cs | togocoder/Gett.NET | mit | 11,741 | 320 | codeparrot/github-code |
4719f9ba1ad66e794b3569d347eeeb092fa69915c19e005e21302765a8aa8a3d | import Selectivity from "../selectivity";
const DIACRITICS = {
"\u24B6": "A",
A: "A",
À: "A",
Á: "A",
Â: "A",
Ầ: "A",
Ấ: "A",
Ẫ: "A",
Ẩ: "A",
Ã: "A",
Ā: "A",
Ă: "A",
Ằ: "A",
Ắ: "A",
Ẵ: "A",
Ẳ: "A",
Ȧ: "A",
Ǡ: "A",
Ä: "A",
Ǟ: "A",
Ả: "A... | JavaScript | src/plugins/diacritics.js | arendjr/selectivity | mit | 11,276 | 862 | codeparrot/github-code |
8963c14297306efe6fe9189b2c422a29ac577bd6b2ac2e48b9dc18087ab558ad | package net.rdrei.android.wakimail.test.shadow;
import android.app.ActionBar;
import android.graphics.drawable.Drawable;
import android.view.View;
import android.widget.SpinnerAdapter;
public class ActionBarStub extends ActionBar {
@Override
public void show() {
}
@Override
public void setTitle(int arg0) {
}
... | Java | WAKiMail/src/test/java/net/rdrei/android/wakimail/test/shadow/ActionBarStub.java | passy/WAKiMail | mit | 3,118 | 217 | codeparrot/github-code |
6d36b4010059bc157ac5230f315a718d13b3478d496cd0224bc1610a5aefc97a | // function statement
function greet(name) {
console.log('Hello ', name);
}
greet('Will');
// function expression
var greetFunc = function(name) {
console.log('Hello ', name);
};
greetFunc('Will');
// immediately invoked function express (IIFE)
// See the parenthesis at the end? That invokes it immediately afte... | JavaScript | js_weird_parts/old/04/44/app.js | wlabatey/js_weird_parts | mit | 754 | 37 | codeparrot/github-code |
14e46b1077346132141d9406cd60287ba268b5ac55f1ac2cc0c416dc83857e67 | <?php
/****************************************************************************
* todoyu is published under the BSD License:
* http://www.opensource.org/licenses/bsd-license.php
*
* Copyright (c) 2012, snowflake productions GmbH, Switzerland
* All rights reserved.
*
* This script is part of the todoyu project.
* Th... | PHP | core/test/phpunit/TodoyuArrayTest.class.php | JoAutomation/todo-for-you | mit | 19,089 | 925 | codeparrot/github-code |
310329c7c0862d57c3e29a3fb366b285e8b3456a41e745727cb29348893cd167 | // @flow
import merge from '../utils/merge.js';
import isFunction from '../utils/isFunction.js';
import Promise from '../utils/promise.js';
/**
* Simple wrapper for native
* XMLHttpRequest
*
* BEWARE: Does not do any url checking,
* this should be implemented by the user
*/
export default class Fetch {
url: ... | JavaScript | src/xhr/Fetch.js | rubenhazelaar/kompo | mit | 4,786 | 204 | codeparrot/github-code |
324bc1f7eaab9cccc60ed69df892d0fd3d3a1143c8ecfe6e851d1e20c8e2f472 | package org.oauthsimple.http;
import org.oauthsimple.exceptions.OAuthException;
import org.oauthsimple.utils.StreamUtils;
import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.UnknownHostException;
import java.util.Map;
/**
* Represents an HTTP Response.
*
* @a... | Java | src/main/java/org/oauthsimple/http/Response.java | mcxiaoke/oauth-simple | mit | 2,968 | 116 | codeparrot/github-code |
d289b2dd99e083a68e52931272dcb52cb7a6b5a03c17fcf7dd8aacce0edcd0e9 | 'use strict';
var EventEmitter = require('events')
.EventEmitter,
colors = require('colors'),
debug = require('debug')('server'),
util = require('util');
var config = require('./config/config'),
db = require('./config/db'),
expressConf = require('./config/express');
util.inherits(Server, EventEmitter);
... | JavaScript | server/server.js | razvanz/dev-diary | mit | 2,024 | 90 | codeparrot/github-code |
16718ba5084d12d1122b1a4a820b7c833e8c05d1acff19ad515e4caf9db9592e | package com.ddsnowboard.fantasystocksandroid;
import android.content.Context;
import android.content.SharedPreferences;
import com.jameswk2.FantasyStocksAPI.FantasyStocksAPI;
import com.jameswk2.FantasyStocksAPI.User;
/**
* This is just a file for stuff and things
*/
public class Utilities {
// This stuff is ... | Java | FantasyStocksAndroid/app/src/main/java/com/ddsnowboard/fantasystocksandroid/Utilities.java | ddsnowboard/FantasyStocksAndroid | mit | 3,099 | 86 | codeparrot/github-code |
379c34b12e0dc29b432653812ad9bf1f1189994e8e88dea4770453318802d9de | /**
The MIT License (MIT)
Shaheed Ahmed Dewan Sagar
Email : sdewan64@gmail.com
Ahsanullah University of Science and Technology,Dhaka,Bangladesh.
Copyright (c) 2014
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation ... | JavaScript | uses_script/registrationformnav.js | sdewan64/ptc | mit | 2,788 | 93 | codeparrot/github-code |
b487deabe6a5fe99b652f942c5d43e3d1dfa1fa077757a32fe980589aa4fa0f7 | <?php
namespace Oro\Bundle\InstallerBundle;
use Symfony\Component\HttpKernel\Kernel;
/**
* Manage cli scripts while installing from package manager
*/
class ScriptManager
{
const ORO_INSTALLER_SCRIPT_FILE_NAME = 'install.php';
/**
* @var Kernel
*/
protected $kernel;
/**
* @var arra... | PHP | src/Oro/Bundle/InstallerBundle/ScriptManager.php | orocrm/platform | mit | 5,588 | 218 | codeparrot/github-code |
290cfd0687ed1a0d09036f238028611c1a74d5e5d7e410d0e373dfa9d98d6603 | using System;
using System.IO;
using System.Linq;
using System.Net;
using System.Net.Sockets;
using PlayerIOClient.Error;
using PlayerIOClient.Helpers;
namespace PlayerIOClient
{
/// <summary> Used to add a message handler to the OnMessage event of an instance of Connection. </summary>
public delegate void Me... | C# | OpenPlayerIO/Connection.cs | OpenPlayerIO/PlayerIOClient | mit | 5,032 | 119 | codeparrot/github-code |
bf2c13c8847e9b8508dba61a826c1737a229e0c72f31457114ea961c264e1936 | import $ from 'jquery';
import _ from 'underscore';
require('geonames-server-jquery-plugin/jquery.geonames.js');
const geonameDatasource = (services) => {
const {configService, localeService, recordEditorEvents} = services;
const tabContainerName = 'geonameTabContainer';
let autoActivateTabOnce = true;
... | JavaScript | src/components/record/recordEditor/plugins/geonameDatasource.js | lostdalek/Phraseanet-production-client | mit | 6,902 | 215 | codeparrot/github-code |
9199d589f1ee8bc0d1583e386dcdc3a3061ccbedb063f009171246541879ef17 | require 'io/console'
module Rubcat
class PrettyLogcat
attr_reader :opt, :last_tag
LOG_LEVELS = [:V, :D, :I, :W, :E, :F]
def initialize(options)
@opt = {
min_level: :V,
tag_length: 25,
split_tags: false
}.merge options
end
def parse_message(message)
m = ... | Ruby | lib/rubcat/pretty_logcat.rb | polamjag/rubcat | mit | 2,713 | 99 | codeparrot/github-code |
74871c5bccf05227e128024d60103a5f01076a7ff37677550a87c7f101e8635f | // Copyright (c) 2011-2015 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "sendcoinsentry.h"
#include "ui_sendcoinsentry.h"
#include "addressbookpage.h"
#include "addresstablemodel.h"
#incl... | C++ | src/qt/sendcoinsentry.cpp | hexxcointakeover/hexxcoin | mit | 8,220 | 267 | codeparrot/github-code |
b43afc09c23852c0b625ccf63204322ac82228ab0a75673aa9cd18895e64ff77 | <!DOCTYPE html>
<!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]-->
<!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]-->
<!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!-->
<html lang="en" xmlns="http://www.w3.org/1999/html"> <!--<![endif]-->
<head>
<!-- Basic... | HTML | bower_components/font-awesome/src/3.2.1/icon/bookmark-empty/index.html | vmetayer/co-brand | mit | 10,128 | 209 | codeparrot/github-code |
fc1b8740e50588117cda3c193ff2fbbbda70b0fb06272c3894a690f9c968fa13 | module EmberCart
class CartItem < ActiveRecord::Base
belongs_to :cartable, polymorphic: true
belongs_to :cart
belongs_to :parent, class_name: 'EmberCart::CartItem', foreign_key: :parent_id
has_many :children, class_name: 'EmberCart::CartItem', foreign_key: :parent_id, dependent: :destroy
accepts_... | Ruby | app/models/ember_cart/cart_item.rb | menglifang/ember-cart | mit | 1,788 | 65 | codeparrot/github-code |
7c0f0714754a3fcec6e2467075f84571c33b0db2fc638661588febde19ca1ea5 | module StackMaster
module StackEvents
class Fetcher
def self.fetch(*args)
new(*args).fetch
end
def initialize(stack_name, region, from: nil)
@stack_name = stack_name
@region = region
@from = from
end
def fetch
events = fetch_events
if... | Ruby | lib/stack_master/stack_events/fetcher.rb | bulletproofnetworks/stack_master | mit | 785 | 39 | codeparrot/github-code |
0bf952270b05ac91e370d444c9955588cdf15f66be219ca9e2f94310967b6b0f | // Simple usage for binding C++ class.
#include <mruby.h>
#include <mruby/compile.h>
#include "mrubybind.h"
#include <iostream>
using namespace std;
class Foo {
public:
Foo(int x) : x_(x) {
cout << "Foo::ctor(" << x << ")" << endl;
}
virtual ~Foo() {
cout << "Foo::dtor()" << endl;
}
int bar(int y) ... | C++ | test/class.cc | dycoon/mrubybind | mit | 1,087 | 60 | codeparrot/github-code |
b19b24f16c64700bb0869e1b5f3855dac0eb840fe1e9b3cf2cf859c01070b750 | //-------------------------------------------------------------------------------------
//Name:tipsWindow 2.2
//Author:By Await
//Date:2010-12-18
//WebSite:http://leotheme.cn
//---------------------------------------------------------------------------------------
;(function(){
$.tipsWindow=function(options){
d... | JavaScript | public/js/jquery.tipswindow-2.2.js | mz121star/expressshop | mit | 10,630 | 320 | codeparrot/github-code |
82f0751819e776ec518d9b0a29536b064396f7d071a14ee009851450b5068849 | /***********************************************************************************
Copyright (C) 2016 Mohammad D. Mottaghi
Under the terms of the MIT license, permission is granted to anyone to use, copy,
modify, publish, redistribute, and/or sell copies of this source code for any
commercial and non-commerci... | C++ | JerdyLib/htmlParser/HtmlElement.cpp | mmottaghi/Jerdy-Inspector | mit | 12,116 | 290 | codeparrot/github-code |
300b5afe09b7e31765cec3b4464685e1d6f7a22a181dd086ade8c7fe583adf37 | <?php
App::uses('CakeLog', 'Log');
/**
* ValidatorComponent
*
* @uses Component
*
* @author Pedro Ventura
* @copyright 2015 Pedro Ventura
* @license MIT
* @link https://github.com/elpeter/kickbox-cakephp
*/
class ValidatorComponent extends Component {
/**
* $mesage
*
* @var mixed
*
* @access public
... | PHP | Controller/Component/ValidatorComponent.php | pedroventura/kickbox-cakephp | mit | 2,243 | 109 | codeparrot/github-code |
8747152def6d9a4819e4624309d60df7c4286fc9c0f70f1461a0c0a64ab32d72 | # Copyright (c) 2006-2009 Mitch Garnaat http://garnaat.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 without restriction, including
# without limitation the rights to use, copy, modi... | Python | boto/rds/parametergroup.py | darcyliu/storyboard | mit | 7,126 | 202 | codeparrot/github-code |
cdd3868565106f91f2a80a23aebaed337944baa79f58dcef65d5e0ff66f95d08 |
let isUndefined = a => typeof a === 'undefined'
export default function (elem, {perspective, start, step, end, units = 'px', beginSet = true} = {}) {
perspective = isUndefined(perspective) ? 1000 : perspective
start = isUndefined(start) ? 0 : start
step = isUndefined(step) ? 1 : step
end = isUndefined(end) ? ... | JavaScript | src/scripts/approach.js | LeoVS09/just-site | mit | 1,284 | 41 | codeparrot/github-code |
d95dc86f411186ac171511ef4f2f07e51f0d027dbbacdfab2aab233e68856b9c | using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Media;
namespace MahApps.Metro.Controls
{
/// <summary>
/// A Button that allows the user to toggle between two states.
/// </summary>
[TemplateVisualState(Name =... | C# | ThirdPartyLibrary/MahApps.Metro/Controls/ToggleSwitchButton.cs | HansHuang/MusicFM | mit | 5,127 | 121 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.