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
f715f7bf4b93c295a0c3cffefa0ff9abbb0ba3ab5b4047b20ee086fd743e3ca8
<?php class FilterCollection {}; class CoreFilters extends FilterCollection { static function first($value) { return $value[0]; } static function last($value) { return $value[count($value) - 1]; } static function join($value, $delimiter = ', ') { return join($del...
PHP
wp-content/plugins/templates/h2o/h2o/filters.php
bolozer/pass
gpl-2.0
10,751
341
codeparrot/github-code
3159624f33ebff340c5fae3029af3aa107f7c44dac2fceb79fbfccd43ef188fd
/* * linux/arch/arm/kernel/traps.c * * Copyright (C) 1995-2009 Russell King * Fragments that appear the same as linux/arch/i386/kernel/traps.c (C) Linus Torvalds * * 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 * publ...
C
arch/arm/kernel/traps.c
tibere86/GPe-5.0.1-M8
gpl-2.0
17,359
760
codeparrot/github-code
182e2849406636d731ca4b3774e6461087a3914f1c3efc1c138954e78778001e
#include <stdio.h> #include <readline/readline.h> #include <readline/history.h> #include <malloc.h> #define PROMPT ">" void getline(char *buf,int *num,int max_num) { static int line_len = 0; static char *line = NULL; static char *line_pointer = NULL; static int len = 0; int tmp_len; char *buf...
C
uboot1.1.6/board/MAI/bios_emulator/scitech/src/v86bios/command.c
daydaygit/flrelse
gpl-3.0
753
39
codeparrot/github-code
1b0fd46707f4bc4867bb9f36d7154357c44579c40508e390366a1eabbda46370
/* * Copyright 2000-2012 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
Java
platform/vcs-impl/src/com/intellij/openapi/vcs/impl/VcsDirectoryMappingStorage.java
caot/intellij-community
apache-2.0
1,861
60
codeparrot/github-code
5a2a4354453837a2994c44301e259cb2cb2a1069e7df46abd1b96b2752e63f3f
/* * 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
src/main/java/org/elasticsearch/action/admin/indices/segments/IndicesSegmentsAction.java
OnePaaS/elasticsearch
apache-2.0
1,612
46
codeparrot/github-code
c0aa9a62731f501454ae99fe71622ccb10ff8857956a85cb5e2568c84ac1a0f0
/** ****************************************************************************** * @file stm32f3xx_ll_gpio.c * @author MCD Application Team * @version V1.4.0 * @date 16-December-2016 * @brief GPIO LL module driver. ****************************************************************************** ...
C
targets/TARGET_STM/TARGET_STM32F3/device/stm32f3xx_ll_gpio.c
RonEld/mbed
apache-2.0
11,361
305
codeparrot/github-code
214ffe3581f6c980aa83a7d14a4356787faa052077052b4e606b6088bc52a97e
/* * Copyright 2006 The Android Open Source Project * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkThread.h" int32_t sk_atomic_inc(int32_t* addr) { int32_t value = *addr; *addr = value + 1; return value; } int32_t sk_atomic_add(...
C++
src/ports/SkThread_none.cpp
TeamCarbonXtremeARMv6/android_external_skia
bsd-3-clause
902
44
codeparrot/github-code
aaefb2278ed400562e21a6942abb83228b2f79987d6718e09f493756b4b23d94
/* { dg-do compile { target { powerpc*-*-* && lp64 } } } */ /* { dg-skip-if "" { powerpc*-*-darwin* } { "*" } { "" } } */ /* { dg-require-effective-target powerpc_vsx_ok } */ /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power7" } } */ /* { dg-options "-O2 -ftree-vectorize -mcpu=power7...
C
gcc/testsuite/gcc.target/powerpc/vsx-vector-2.c
embecosm/gcc
gpl-2.0
2,738
154
codeparrot/github-code
42967c2edf6321e0a34a932b01aba9854b47d3ece84c25d94c9caf5bf58f9445
// SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2005-2010 IBM Corporation * * Author: * Mimi Zohar <zohar@us.ibm.com> * Kylene Hall <kjhall@us.ibm.com> * * File: evm_main.c * implements evm_inode_setxattr, evm_inode_post_setxattr, * evm_inode_removexattr, and evm_verifyxattr */ #include <linux/in...
C
security/integrity/evm/evm_main.c
rperier/linux-rockchip
gpl-2.0
16,330
595
codeparrot/github-code
842a8a69f8da337c2ad9fb6d8023fd698d2f14107d40360dbbb973e0ab61c436
/* * mm/page-writeback.c * * Copyright (C) 2002, Linus Torvalds. * Copyright (C) 2007 Red Hat, Inc., Peter Zijlstra <pzijlstr@redhat.com> * * Contains functions related to writing back dirty pages at the * address_space level. * * 10Apr2002 Andrew Morton * Initial version */ #include <linux/kernel.h> #incl...
C
mm/page-writeback.c
crseanpaul/exynos-drm-next
gpl-2.0
71,514
2,318
codeparrot/github-code
9b9ae44afa089431dd510776c29e59103bf3f46006732ec32aa4c504a0e85be0
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/threading/sequenced_worker_pool.h" #include <algorithm> #include "base/bind.h" #include "base/compiler_specific.h" #include "base/mem...
C++
external/chromium_org/base/threading/sequenced_worker_pool_unittest.cc
qtekfun/htcDesire820Kernel
gpl-2.0
33,383
937
codeparrot/github-code
d5ceaca3e9bd536b278cb779e4db05165a0488ed15b890560ea9789f8b8dca73
require 'formula' class Tcc < Formula homepage 'http://bellard.org/tcc/' url 'http://download.savannah.gnu.org/releases/tinycc/tcc-0.9.26.tar.bz2' sha1 '7110354d3637d0e05f43a006364c897248aed5d0' bottle do sha256 "6361d686961e63328e2e084e346df9a0f3bea8f4c1aa7a48b627b528b76b5622" => :yosemite sha256 "d9...
Ruby
Library/Formula/tcc.rb
gijzelaerr/homebrew
bsd-2-clause
1,168
44
codeparrot/github-code
6b76b3864c617bdfaaadd7ac81c092cb32df4630de560566465c9ba894fc9f35
$(document).ready(function(){ // === Sidebar navigation === // $('.submenu > a').click(function(e) { e.preventDefault(); var submenu = $(this).siblings('ul'); var li = $(this).parents('li'); var submenus = $('#sidebar li.submenu ul'); var submenus_parents = $('#sidebar li.submenu'); if(li.hasClas...
JavaScript
web/matrix-admin-package/HTML/js/matrix.js
e29ckg/bb
bsd-3-clause
4,026
167
codeparrot/github-code
ee7424ac0724acbe85348efd831a21d555d49c7cce82a15a6538f0535e351678
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import openerp from openerp.report.interface import report_int import openerp.tools as tools from openerp.tools.safe_eval import safe_eval as eval from lxml import etree from openerp.report import render, report_sxw imp...
Python
src/openerp/report/printscreen/ps_list.py
vileopratama/vitech
mit
11,008
253
codeparrot/github-code
ca278fe0b4407bb0bd5d482b303073107614c39a24d56240cbfd93ba770cd7c8
// 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. /*++ Module Name: shmobjectmgr.cpp Abstract: Shared memory based object manager --*/ #include "shmo...
C++
src/pal/src/objmgr/shmobjectmanager.cpp
cmckinsey/coreclr
mit
39,756
1,568
codeparrot/github-code
2ffa3c995dd3616cba216c219d0b2bcfe35f1ee7237b25a040b18d1768501688
/****************************************************************************** * * Copyright(c) 2007 - 2011 Realtek 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 ...
C
drivers/amlogic/wifi/rtl8xxx_EU/hal/OUTSRC/odm_interface.h
samnazarko/vero2-linux
gpl-2.0
7,695
394
codeparrot/github-code
f8cd8d8e6a79ed771ac5e27b462ba9476bc02598a7084c0f14faceac4bd73c0a
/* Copyright 2012,2013 Jun Wako <wakojun@gmail.com> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version. This program is distribute...
C
keyboards/cannonkeys/db60/keymaps/default/keymap.c
kmtoki/qmk_firmware
gpl-2.0
2,530
46
codeparrot/github-code
bbc819fab1a6fd9c6e7c7198479644a93c58366d3769fd022fb798510f341580
import math, random, datetime def perform_ignore_interrupt(f): while True: try: return f() except IOError as ex: if ex.errno != errno.EINTR: raise # end_date should be of the format YYYY-MM-DD - default is today # interval should be of the format NUMBER (day...
Python
test/rdb_workloads/stress_workloads/x_stress_util.py
KSanthanam/rethinkdb
agpl-3.0
3,021
78
codeparrot/github-code
d69bce70cd6ac70e0b9d84899b82cd35b2b7c340859ede2c6dea4f3db6ea10bc
/* * Tegra2 pulse width frequency modulator definitions * * Copyright (c) 2011 The Chromium OS Authors. * See file CREDITS for list of people who contributed to this * project. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * p...
C
uboot/u-boot-dm6291/arch/arm/cpu/armv7/tegra20/pwm.c
lxl1140989/dmsdk
gpl-2.0
2,932
102
codeparrot/github-code
133f56dfbc2717d0aaa8599b16307d68042f1acc35501e47022f8ad1bef3f192
/* * Copyright 2006 Andi Kleen, SUSE Labs. * Subject to the GNU Public License, v.2 * * Fast user context implementation of clock_gettime, gettimeofday, and time. * * 32 Bit compat layer by Stefani Seibold <stefani@seibold.net> * sponsored by Rohde & Schwarz GmbH & Co. KG Munich/Germany * * The code should ha...
C
arch/x86/entry/vdso/vclock_gettime.c
codeaurora-unoffical/linux-msm
gpl-2.0
6,104
241
codeparrot/github-code
0bbd1baf0c0a9211a7bc0301b3838e1a930b5d5e40a849badd47dade4891f80a
/* * Copyright 2017 Advanced Micro Devices, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, m...
C
drivers/gpu/drm/amd/display/dc/dml/display_mode_lib.h
mpe/powerpc
gpl-2.0
2,944
92
codeparrot/github-code
00ef7c8f70114d52cffd6cb18c00fb71377dcfeacb5a09a714faa85d5ca1a457
// SPDX-License-Identifier: GPL-2.0 /* * SuperH Mobile I2C Controller * * Copyright (C) 2014-19 Wolfram Sang <wsa@sang-engineering.com> * Copyright (C) 2008 Magnus Damm * * Portions of the code based on out-of-tree driver i2c-sh7343.c * Copyright (c) 2006 Carlos Munoz <carlos@kenati.com> */ #include <linux/clk...
C
drivers/i2c/busses/i2c-sh_mobile.c
openwrt-es/linux
gpl-2.0
29,110
1,013
codeparrot/github-code
23d6ec5e99afc1adee261d4bc2928018ec76acdbad7a69ebb53c010a2a5f7c1e
import multiprocessing import time import random import sys # # Functions used by test code # def calculate(func, args): result = func(*args) return '%s says that %s%s = %s' % ( multiprocessing.current_process().name, func.__name__, args, result ) def calculatestar(args): return c...
Python
python/Doc/includes/mp_pool.py
Kiddinglife/kidding-engine
lgpl-3.0
3,892
154
codeparrot/github-code
18bf289a5ee872a86dc59042dc2055deff8dc238d86a620e4558f22b4932f88b
YUI.add('widget-stdmod', function(Y) { /** * Provides standard module support for Widgets through an extension. * * @module widget-stdmod */ var L = Y.Lang, Node = Y.Node, UA = Y.UA, Widget = Y.Widget, EMPTY = "", HD = "hd", BD = "bd", FT = "ft", ...
JavaScript
ajax/libs/yui/3.5.0pr2/widget-stdmod/widget-stdmod.js
amoyeh/cdnjs
mit
29,327
768
codeparrot/github-code
f1d380a0227e91eac9eb22e7b99f2ab4ba4d3fc2e10e3441cf27a3e68300cf30
/* * User level driver support for input subsystem * * Heavily based on evdev.c by Vojtech Pavlik * * 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
drivers/input/misc/uinput.c
nazgee/igep-kernel
gpl-2.0
19,962
843
codeparrot/github-code
411eb128752931cd7c71e34517fba6b407e47caa0e55e2466b56007d3146c1fe
/* Bullet Continuous Collision Detection and Physics Library Copyright (c) 2003-2006 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. Permiss...
C
src/bullet/BulletCollision/CollisionShapes/btBox2dShape.h
Meumeu/PMD
gpl-3.0
9,581
370
codeparrot/github-code
3d698bd7089f4a408cd7ac055fc848ef7add7e35df8e086552b9ea8749ff3a44
/** * Copyright (C) ARM Limited 2010-2014. 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 "gator.h" #include <linux/netdevice.h> #include ...
C
kernel_dvfs/linux-linaro-tracking-gem5/drivers/gator/gator_events_net.c
lokeshjindal15/pd-gem5
bsd-3-clause
4,232
173
codeparrot/github-code
158aad98b24f82b1e98302f66e94f2880c53eeb4c15f5ed58e9354ba28973fd2
// // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // // // File: clsload.hpp // // // // ============================================================================ #ifndef _H_CLSLOAD #define _H_CLSLOAD #inclu...
C++
src/vm/clsload.hpp
ktos/coreclr
mit
46,116
1,092
codeparrot/github-code
c1f721176378181c2bb60fcd4c4ee93dcae46c79fb86d53fd6c861ce1aef6ca7
// 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.IO; namespace System.Net.NetworkInformation { internal class LinuxIPv4InterfaceProperties : UnixIP...
C#
src/System.Net.NetworkInformation/src/System/Net/NetworkInformation/LinuxIPv4InterfaceProperties.cs
BrennanConroy/corefx
mit
3,058
68
codeparrot/github-code
04e3201c20d8b7360f19c4b430f58a265887919aa9d0b9db303a26b505bb79f7
var _ = require('../../../../src/util') var def = require('../../../../src/directives/style') var Vue = require('../../../../src/vue') function checkPrefixedProp (prop) { var el = document.createElement('div') var upper = prop.charAt(0).toUpperCase() + prop.slice(1) if (!(prop in el.style)) { var prefixes = ...
JavaScript
test/unit/specs/directives/style_spec.js
wangjun/vue
mit
3,036
109
codeparrot/github-code
7e9d10579d575357b130a1c111a1e6ed76f47aead2894d1c2ed708d0b5abb0d7
/* * Copyright 2008 Advanced Micro Devices, Inc. * Copyright 2008 Red Hat Inc. * Copyright 2009 Jerome Glisse. * * 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, in...
C
linux-5.4/drivers/gpu/drm/radeon/r600_cs.c
BPI-SINOVOIP/BPI-Mainline-kernel
gpl-2.0
76,737
2,536
codeparrot/github-code
02438f6f7c08fc1dd415dacb602351f63ace1a943159b3d7844ee46b27397441
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_POWERPC_TLBFLUSH_RADIX_H #define _ASM_POWERPC_TLBFLUSH_RADIX_H struct vm_area_struct; struct mm_struct; struct mmu_gather; static inline int mmu_get_ap(int psize) { return mmu_psize_defs[psize].ap; } #ifdef CONFIG_PPC_RADIX_MMU extern void radix__tlbiel_all(unsign...
C
arch/powerpc/include/asm/book3s/64/tlbflush-radix.h
koct9i/linux
gpl-2.0
2,924
79
codeparrot/github-code
f69bb4e3b3ec0fcb0473a01aa5e57adeb84ee203db5fd716663ef8e85ad2397c
/* * Combined Ethernet driver for Motorola MPC8xx and MPC82xx. * * Copyright (c) 2003 Intracom S.A. * by Pantelis Antoniou <panto@intracom.gr> * * 2005 (c) MontaVista Software, Inc. * Vitaly Bordug <vbordug@ru.mvista.com> * * Heavily based on original FEC driver by Dan Malek <dan@embeddededge.com> * and modi...
C
drivers/net/fs_enet/fs_enet-main.c
AccentureMobilityServices/kernel
gpl-2.0
27,448
1,191
codeparrot/github-code
3cb3bb52c26c122b7083058e0545ebca20f23c940868e7a211036c4d830e2ba1
local msgserver = require "snax.msgserver" local crypt = require "crypt" local skynet = require "skynet" local loginservice = tonumber(...) local server = {} local users = {} local username_map = {} local internal_id = 0 -- login server disallow multi login, so login_handler never be reentry -- call by login server ...
Lua
skynet/examples/login/gated.lua
xingshuo/frame_sync_model
mit
2,201
90
codeparrot/github-code
fcb8bfda0f3c5468963bf1a5c634b95bacc410f045473952c2ec80f640b230cd
// SPDX-License-Identifier: GPL-2.0+ /* * PCI Hot Plug Controller Driver for System z * * Copyright 2012 IBM Corp. * * Author(s): * Jan Glauber <jang@linux.vnet.ibm.com> */ #define KMSG_COMPONENT "zpci" #define pr_fmt(fmt) KMSG_COMPONENT ": " fmt #include <linux/kernel.h> #include <linux/slab.h> #include <li...
C
drivers/pci/hotplug/s390_pci_hpc.c
HarveyHunt/linux
gpl-2.0
4,387
214
codeparrot/github-code
7b48926c163bcd609af5224d00a6f58b71cd6da4651ae3104c66dbba591cf9de
# -*- coding: utf-8 -*- from django.conf import settings from django.contrib.sitemaps import Sitemap from django.core.urlresolvers import reverse from django.utils.translation import get_language, activate from oscar.core.loading import get_model Product = get_model('catalogue', 'Product') Category = get_model('catalo...
Python
sites/sandbox/apps/sitemaps.py
ahmetdaglarbas/e-commerce
bsd-3-clause
1,779
71
codeparrot/github-code
95670362df8e46968fc93d3e39d80dd4cba2ccf1cf711a92534333a1fa1c0ebb
/* ranlib.h -- archive library index member definition for GNU. Copyright 1990, 1991 Free Software Foundation, 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 2 of the License,...
C
user/gdb/include/aout/ranlib.h
rhuitl/uClinux
gpl-2.0
2,485
63
codeparrot/github-code
1befa8f9e795ff748d4b9d7c248a34967c98f23d73e3d95ad4bec3c1518b4eb9
// Type definitions for non-npm package DiskQuotaTypeLibrary 1.0 // Project: https://msdn.microsoft.com/en-us/library/windows/desktop/bb773938(v=vs.85).aspx // Definitions by: Zev Spitz <https://github.com/zspitz> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 /// <refere...
TypeScript
types/activex-diskquota/index.d.ts
borisyankov/DefinitelyTyped
mit
4,981
150
codeparrot/github-code
cbb57b66c8429565c23744ae2bcbc26cf7713744f5683c085718ed10bcad5702
/* * Copyright (C) 2006 George Staikos <staikos@kde.org> * Copyright (C) 2006 Alexey Proskuryakov <ap@nypop.com> * Copyright (C) 2007 Apple Computer, Inc. All rights reserved. * Copyright (C) 2007-2009 Torch Mobile, Inc. * * This library is free software; you can redistribute it and/or * modify it under th...
C
wtf/unicode/wince/UnicodeWinCE.h
Irrelon/iOS-JavaScript-Bridge
lgpl-2.1
6,790
178
codeparrot/github-code
d93da3695db540e62b77bc901377e26150fdeff99b6518f3485c3cc3ad5cc822
define([ "dojo/_base/array", // array.forEach "dojo/_base/declare", // declare "dojo/dom-attr", // domAttr.set "dojo/_base/kernel", // kernel.deprecated "dojo/keys", // keys.END keys.HOME "dojo/_base/lang", // lang.hitch "./registry", "./_Container", "./_FocusMixin", "./_KeyNavMixin" ], function(array, declar...
JavaScript
www/js/dijit/_KeyNavContainer.js
avz-cmf/zaboy-middleware
gpl-3.0
4,135
129
codeparrot/github-code
3f7d6bc5d787e2ff24ddd4075f74874a08b50ac308589199284d524110341051
##===- lib/ExecutionEngine/JIT/Makefile --------------------*- Makefile -*-===## # # The LLVM Compiler Infrastructure # # This file is distributed under the University of Illinois Open Source # License. See LICENSE.TXT for details. # ##===-------------------------------------------------------------...
Makefile
thirdparty/llvm/lib/ExecutionEngine/JIT/Makefile
wrmsr/lljvm
mit
985
39
codeparrot/github-code
96c47401835d8492fccaa298889048fb52a288bcf7e2a91d52c3a0138cb8ef37
#ifndef _PERF_UI_BROWSER_H_ #define _PERF_UI_BROWSER_H_ 1 #include <linux/types.h> #define HE_COLORSET_TOP 50 #define HE_COLORSET_MEDIUM 51 #define HE_COLORSET_NORMAL 52 #define HE_COLORSET_SELECTED 53 #define HE_COLORSET_CODE 54 #define HE_COLORSET_ADDR 55 #define HE_COLORSET_ROOT 56 struct ui_browser { u64 ...
C
tools/perf/ui/browser.h
shirishpargaonkar/cifsclient
gpl-2.0
3,133
75
codeparrot/github-code
8349b2be7cdbf77df4e897929e57b4fc86dc1831c11a4ee9411ccea7a3a9eb1c
/* * oxfw_stream.c - a part of driver for OXFW970/971 based devices * * Copyright (c) 2014 Takashi Sakamoto * * Licensed under the terms of the GNU General Public License, version 2. */ #include "oxfw.h" #include <linux/delay.h> #define AVC_GENERIC_FRAME_MAXIMUM_BYTES 512 #define CALLBACK_TIMEOUT 200 /* * Acc...
C
sound/firewire/oxfw/oxfw-stream.c
Taeung/tip
gpl-2.0
16,975
734
codeparrot/github-code
ac8365ae8e86933133db215c100801edb866c3c26b406f24bc8f30a5ad9cc3de
// Boost.Geometry (aka GGL, Generic Geometry Library) // Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands. // Copyright (c) 2008-2012 Bruno Lalande, Paris, France. // Copyright (c) 2009-2012 Mateusz Loskot, London, UK. // Parts of Boost.Geometry are redesigned from Geodan's Geographic Library ...
C++
vendors/boost/include/boost/geometry/strategies/default_area_result.hpp
alexisVallet/animation-character-identification
gpl-3.0
1,685
52
codeparrot/github-code
5c968b3dc5883dc63662eefacfda7df1f74ee10927ce4035f6e7d56393abc129
/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may...
Java
components/camel-gae/src/main/java/org/apache/camel/component/gae/auth/GAuthException.java
coderczp/camel
apache-2.0
1,247
39
codeparrot/github-code
d3d28a16b1cef7c8918f77fc7636a52c6262e3386697e794b7da2ae288c4afd8
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
Java
tseenliu/FedHDFS-hadoop-src/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/record/meta/TypeID.java
tseen/Federated-HDFS
apache-2.0
3,450
118
codeparrot/github-code
10646e8a94965c9378419249a07ad6b0bd8d1eecb16a49c74181fa13911d8ec6
/*-----------------------------------------------------------------------------+ Copyright (c) 2007-2009: Joachim Faulhaber +------------------------------------------------------------------------------+ Copyright (c) 1999-2006: Cortex Software GmbH, Kantstrasse 57, Berlin +--------------------------------------------...
C++
venv/bin/libs/icl/example/itvset_shell_/itvset_shell.cpp
NixaSoftware/CVis
apache-2.0
3,889
133
codeparrot/github-code
c017c26312c2bc71672954833e22f0adca7cd01230b5cda403a4e9bdef53a7c0
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <link rel="shortcut icon" type="image/ico" href="http://www.datatables.net/favicon.ico"> <meta name="viewport" content="initial-scale=1.0, maximum-scale=2.0"> <title>KeyTable example - Focus cell custom styling</title> <link rel="stylesheet" type="text/css" href...
HTML
web/bundles/web/temacsgwebapp/third/DataTables/extensions/KeyTable/examples/styling/focusStyle.html
deduar/SGTT
mit
17,466
656
codeparrot/github-code
43883ccb5ac38d527fbf7c5b40fd4000539669af03ce085890ef2519912db80f
require "digest/md5" require "tempfile" require_relative "base" module VagrantPlugins module Chef module Provisioner class ChefApply < Base def provision install_chef verify_binary(chef_binary_path("chef-apply")) command = "chef-apply" command << " \"#{targ...
Ruby
plugins/provisioners/chef/provisioner/chef_apply.rb
sni/vagrant
mit
2,231
73
codeparrot/github-code
62443a4c57cda2db0965a28ae594029f1cdd15e146271a4b02e5aaa9d6a9e2eb
/* * tps65910.c -- TI tps65910 * * Copyright 2010 Texas Instruments Inc. * * Author: Graeme Gregory <gg@slimlogic.co.uk> * Author: Jorge Eduardo Candelaria <jedu@slimlogic.co.uk> * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public Licens...
C
drivers/regulator/tps65910-regulator.c
uraran/rk3066-kernel
gpl-2.0
32,905
1,339
codeparrot/github-code
73b611e78a6845b9874c2b4484b2c3fcf448ab861a18c8f471437d519f0f72ba
/** * Copyright (c) 2010-2015, openHAB.org and others. * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html */ package org...
Java
bundles/binding/org.openhab.binding.pilight/src/main/java/org/openhab/binding/pilight/internal/communication/Response.java
bakrus/openhab
epl-1.0
820
38
codeparrot/github-code
2fb88eed0d02c43097e11fb55f15576250f9d0fe827acd1c18dfa235e9a70543
<?php /** * @package WPSEO\Admin */ if ( ! defined( 'WPSEO_VERSION' ) ) { header( 'Status: 403 Forbidden' ); header( 'HTTP/1.1 403 Forbidden' ); exit(); } $options = WPSEO_Options::get_all(); $yform = Yoast_Form::get_instance(); $yform->admin_header( true, 'wpseo_titles' ); ?> <h2 class="nav-tab-wrapper" id=...
PHP
wp-content/plugins/wordpress-seo/admin/pages/metas.php
gyllensand/nakednative
gpl-2.0
12,990
241
codeparrot/github-code
a96dcf215e7def90bd71d94a806b71f006840685c7f784eeeac85a113885aca6
/*! @file ilu_dpivotL.c * \brief Performs numerical pivoting * * <pre> * -- SuperLU routine (version 4.0) -- * Lawrence Berkeley National Laboratory * June 30, 2009 * </pre> */ #include <math.h> #include <stdlib.h> #include "slu_ddefs.h" #ifndef SGN #define SGN(x) ((x)>=0?1:-1) #endif /*! \brief * * <pre...
C
scipy/sparse/linalg/dsolve/SuperLU/SRC/ilu_dpivotL.c
maciejkula/scipy
bsd-3-clause
7,290
275
codeparrot/github-code
a1b39398e0beeb2f1ba33723362edde7c39d2e781aa70a0b9ffec3bc55131af7
// SPDX-License-Identifier: GPL-2.0-only /* * Hardware modules present on the OMAP54xx chips * * Copyright (C) 2013 Texas Instruments Incorporated - https://www.ti.com * * Paul Walmsley * Benoit Cousson * * This file is automatically generated from the OMAP hardware databases. * We respectfully ask that any mo...
C
arch/arm/mach-omap2/omap_hwmod_54xx_data.c
aristeu/linux-2.6
gpl-2.0
11,656
468
codeparrot/github-code
180548f46995152df639612ccd9d38ee466477d71b902b21f7ef20b18cee045a
#include <linux/kernel.h> #include <linux/string.h> #include <asm/io.h> #include <mach/io.h> #include <linux/rk_screen.h> #include "rk2928_lvds.h" static void rk_output_lvds(rk_screen *screen) { LVDSWrReg(m_PDN_CBG(1)|m_PD_PLL(0)|m_PDN(1)|m_OEN(0) \ |m_DS(DS_10PF)|m_MSBSEL(DATA_D0_MSB) \ |m_OUT_FORMAT(scr...
C
kernel/drivers/video/rockchip/transmitter/rk2928_lvds.c
s20121035/rk3288_android5.1_repo
gpl-3.0
1,595
64
codeparrot/github-code
1a8dac728594502d11d488ff932aa3a8f84ba55dc2f5a04fc14d35ebf4c19da5
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
Java
tools/stress/src/org/apache/cassandra/stress/util/NoopResultLogger.java
carlyeks/cassandra
apache-2.0
1,180
45
codeparrot/github-code
454035265c84aa463b06e13e700f0032279d6d6f9643107c7412d25aa7d92a8a
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net> 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 h...
Lua
package/ramips/ui/luci-mtk/src/modules/rpc/luasrc/controller/rpc.lua
feiying1460/witi-openwrt
gpl-2.0
4,443
167
codeparrot/github-code
e6b378545cd9ce90f25b1b247e154be6ab0ca9d7ca9bb322e4bc4f3f6fd6b171
#ifndef __EXTENTMAP__ #define __EXTENTMAP__ #include <linux/rbtree.h> #include <linux/refcount.h> #define EXTENT_MAP_LAST_BYTE ((u64)-4) #define EXTENT_MAP_HOLE ((u64)-3) #define EXTENT_MAP_INLINE ((u64)-2) #define EXTENT_MAP_DELALLOC ((u64)-1) /* bits for the flags field */ #define EXTENT_FLAG_PINNED 0 /* this entr...
C
linux/fs/btrfs/extent_map.h
mkvdv/au-linux-kernel-autumn-2017
gpl-3.0
2,633
95
codeparrot/github-code
f13aad5f0d9e608d95c639723078f27d61c353803dc9832659e638d30dc27fde
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chromecast/common/cast_resource_delegate.h" #include "base/files/file_path.h" #include "base/path_service.h" #include "ui/gfx/image/image.h" n...
C++
third_party/webrtc/src/chromium/src/chromecast/common/cast_resource_delegate.cc
Teamxrtc/webrtc-streaming-node
mit
2,924
108
codeparrot/github-code
31df9153a08d851706a3dd49a5a35c29eddcfc14b7b83ae511e9648f6d3876c9
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using System.Diagnostics; using Internal.Cryptography; namespace System.Security.Cryptography { public class AsnEncodedData { protected ...
C#
src/System.Security.Cryptography.Encoding/src/System/Security/Cryptography/AsnEncodedData.cs
vs-team/corefx
mit
2,351
94
codeparrot/github-code
423530d6d10c2ea3fe99fd7aae66bec18076d2831a13b268c0a3fe0747a82862
' Copyright (c) Microsoft. All rights reserved. ' Licensed under the MIT license. See LICENSE file in the project root for full license information. Imports System Imports System.Diagnostics Imports System.Linq Imports System.Linq.Expressions Imports System.Reflection Namespace Global.Microsoft.VisualBasic.CompilerS...
Visual Basic
src/Microsoft.VisualBasic/src/Microsoft/VisualBasic/CompilerServices/Utils.vb
vs-team/corefx
mit
17,588
389
codeparrot/github-code
453a59ba5fb8354a5e54417473e2235c5e0d827daf35380d028866f07901be3a
' Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. '----------------------------------------------------------------------------------------------------------- ' Defines a base class that is inherited by the w...
Visual Basic
src/Tools/Source/CompilerGeneratorTools/Source/VisualBasicSyntaxGenerator/Util/WriteUtils.vb
droyad/roslyn
apache-2.0
35,436
940
codeparrot/github-code
8d4c263d5c54d56cf492276702f6fb8b7e8b4dac2d6051236b01601e7e85b2cf
import datetime import os import re import time from pprint import pformat from urllib import urlencode, quote from urlparse import urljoin try: from cStringIO import StringIO except ImportError: from StringIO import StringIO try: # The mod_python version is more efficient, so try importing it first. fr...
Python
sfcs/django/http/__init__.py
tjsavage/sfcsdatabase
bsd-3-clause
23,818
661
codeparrot/github-code
cd7141b05b9c408349bd25f7744c742d961ae4545a7db1103c6f6be2b77d39ff
/* * Copyright (c) 2007-2014 Nicira, Inc. * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT...
C
virt/net/openvswitch/flow_table.c
AiJiaZone/linux-4.0
gpl-2.0
19,322
783
codeparrot/github-code
9c3a98881a16a66db1c5f97baff522c53bda55eb751179a6e61d05d8abf7bb01
/* * Copyright (c) 2013, Mellanox Technologies inc. 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 th...
C
hotpot-kernel/drivers/infiniband/hw/mlx5/mr.c
WukLab/Hotpot
gpl-2.0
22,905
1,008
codeparrot/github-code
916d27fb1e5e4c056dcd33f8579cd339302cafd2927fafbfc48c46e6153f91b2
# # (c) 2015, Peter Sprygada <psprygada@ansible.com> # # Copyright (c) 2016 Dell Inc. # # This file is part of Ansible # # Ansible 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 Licens...
Python
lib/ansible/utils/module_docs_fragments/dellos9.py
tsdmgz/ansible
gpl-3.0
2,591
68
codeparrot/github-code
ade5e453a5c5f4d2558e6645f5eade0815de5d4eb9eec78fc125af7724d1ba40
// $Id: SV_Shared_Memory.cpp 80826 2008-03-04 14:51:23Z wotte $ #include "ace/SV_Shared_Memory.h" #include "ace/Log_Msg.h" #if !defined (__ACE_INLINE__) #include "ace/SV_Shared_Memory.inl" #endif /* __ACE_INLINE__ */ ACE_RCSID(ace, SV_Shared_Memory, "$Id: SV_Shared_Memory.cpp 80826 2008-03-04 14:51:23Z wotte $") AC...
C++
externals/ace/SV_Shared_Memory.cpp
Archives/ro_core
gpl-2.0
2,884
89
codeparrot/github-code
8012e35f7c5379d6c0da2df3768de936daab49bfc4370757c1875b2c117fbff7
import { Oid } from './oid'; import { Repository } from './repository'; import { Buf } from './buf'; export class Object { static size(type: Object.TYPE): number; static lookup(repo: Repository, id: Oid, type: Object.TYPE): Promise<Object>; static lookupPrefix(repo: Repository, id: Oid, len: number, type: ...
TypeScript
types/nodegit/object.d.ts
borisyankov/DefinitelyTyped
mit
1,004
38
codeparrot/github-code
9ec35adada1f0cd3bd2d1c1575ff25e4f12de07aa1be66263e6d782e920afbec
/*************************************************************************** * Copyright (C) 2007 by Pavel Chromy * * chromy@asix.cz * * * * This pr...
C
src/flash/ocl/at91sam7x/dcc.c
yangshanjin/openOCD
gpl-2.0
2,143
52
codeparrot/github-code
63b488c321a8474eef8e847d9e11a020007af4d3fe0c40cdb67879892eb6433d
/* * Copyright (C) 2008-2015 TrinityCore <http://www.trinitycore.org/> * Copyright (C) 2006-2009 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/> * * 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 ...
C++
src/server/scripts/Raid/Kalimdor/TempleOfAhnQiraj/boss_huhuran.cpp
m-uu/loa
gpl-2.0
4,649
165
codeparrot/github-code
0a1dcd77aae70e254b3abf9b838af207509d88c4e2e94939288fd22efdea67c1
// SPDX-License-Identifier: GPL-2.0 /* * cfg80211 MLME SAP interface * * Copyright (c) 2009, Jouni Malinen <j@w1.fi> * Copyright (c) 2015 Intel Deutschland GmbH */ #include <linux/kernel.h> #include <linux/module.h> #include <linux/etherdevice.h> #include <linux/netdevice.h> #include <linux/nl80211.h> #include <...
C
net/wireless/mlme.c
codeaurora-unoffical/linux-msm
gpl-2.0
24,142
906
codeparrot/github-code
e3b391a6499a5d9509d010efe507c5a4a585d663401d824a52dd469138417f85
/* * dir.c * * Copyright (C) 1995, 1996 by Volker Lendecke * Modified for big endian by J.F. Chadima and David S. Miller * Modified 1997 Peter Waltenberg, Bill Hawes, David Woodhouse for 2.1 dcache * Modified 1998, 1999 Wolfram Pienkoss for NLS * Modified 1999 Wolfram Pienkoss for directory caching * Mod...
C
fs/ncpfs/dir.c
nuxeh/linux
gpl-2.0
31,267
1,234
codeparrot/github-code
a084a5497331dce2b131bf824974f05c91807dc2065aece3d2115a6219fa55f8
from sympy.core.logic import _fuzzy_group from sympy.logic.boolalg import conjuncts from sympy.assumptions import Q, ask class AskHandler(object): """Base class that all Ask Handlers must inherit""" pass class CommonHandler(AskHandler): """Defines some useful methods common to most Handlers """ @st...
Python
sympy/assumptions/handlers/common.py
grevutiu-gabriel/sympy
bsd-3-clause
3,168
121
codeparrot/github-code
d1e5228f719c80907e6e9b2bfb583dacb88d9312f41c16bae31ba6a308c46045
/* * Based on arch/arm/include/asm/mmu_context.h * * Copyright (C) 1996 Russell King. * Copyright (C) 2012 ARM Ltd. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * * This...
C
linux/arch/arm64/include/asm/mmu_context.h
dperezde/little-penguin
gpl-2.0
5,548
199
codeparrot/github-code
ef78935130aa640799ea9bf5dca9e7428a2dd0e65fce1194313c3c2ec20df8aa
/* * filter to ouput only 1 every n frame, or only the I (key)frame * * The parameters are: * * [I] | [i]num * * if you call the filter with I (uppercase) as the parameter * ... -vf framestep=I ... * then ONLY the keyframes are outputted. * For DVD it means, generally, one every 15 frames (IBBPBBPBBPBBP...
C
third_party/ffmpeg/libavfilter/libmpcodecs/vf_framestep.c
ashishlal/pjproject-2.0.1
gpl-2.0
6,108
206
codeparrot/github-code
f92bb8b901317c4886da8da1ef1b7edd06f8e547260ac712fd64de74c9bfc4c1
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
Scala
mllib-local/src/main/scala/org/apache/spark/ml/linalg/BLAS.scala
lvdongr/spark
apache-2.0
22,067
746
codeparrot/github-code
226e39ff0f649665a8a3f106772ee1fcb2529a0692bfa95e1da7e8acbf44508d
/* * Copyright 2000-2013 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
Java
python/rest/src/com/jetbrains/rest/psi/RestInlineBlock.java
asedunov/intellij-community
apache-2.0
1,483
51
codeparrot/github-code
cdbe157b207197ab82338d911bc8332e5f07a2596fbc364336e2e86e5d0aac07
/* * Linux cfgp2p driver * * Copyright (C) 1999-2013, Broadcom Corporation * * Unless you and Broadcom execute a separate written software license * agreement governing use of this software, this software is licensed to you * under the terms of the GNU General Public License version 2 (the "GPL"), * avail...
C
drivers/net/wireless/bcmdhd4339/wl_cfgp2p.c
crpalmer/android_kernel_samsung_msm8974
gpl-2.0
78,646
2,740
codeparrot/github-code
84e667dc52cdff49d45364d0e96c8efb181119857f4a7d1d812052773376f94b
// SPDX-License-Identifier: GPL-2.0+ /* * Driver for Realtek PCI-Express card reader * * Copyright(c) 2009-2013 Realtek Semiconductor Corp. All rights reserved. * * Author: * Wei WANG (wei_wang@realsil.com.cn) * Micky Ching (micky_ching@realsil.com.cn) */ #include <linux/blkdev.h> #include <linux/kthread.h...
C
linux-5.8/drivers/staging/rts5208/rtsx_transport.c
CSE3320/kernel-code
gpl-2.0
18,868
771
codeparrot/github-code
8113161a735c6e1a3d0aef6d273f7aa8623bd2076ad1c6742258e163e143c8de
/* * Fault injection for both 32 and 64bit guests. * * Copyright (C) 2012,2013 - ARM Ltd * Author: Marc Zyngier <marc.zyngier@arm.com> * * Based on arch/arm/kvm/emulate.c * Copyright (C) 2012 - Virtual Open Systems and Columbia University * Author: Christoffer Dall <c.dall@virtualopensystems.com> * * This pro...
C
linux-4.19/arch/arm64/kvm/inject_fault.c
BPI-SINOVOIP/BPI-Mainline-kernel
gpl-2.0
5,450
189
codeparrot/github-code
d70d6bbdc171b5c8e1146c15b7e8a0f1aabc2ff4e260e9994cbfe6def84bd196
<?php // Copyright (C) 2006 Rod Roark <rod@sunsetsystems.com> // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License // as published by the Free Software Foundation; either version 2 // of the License, or (at your option) any later versio...
PHP
interface/fax/faxq.php
stephenwaite/cmsopenemr
gpl-3.0
10,068
308
codeparrot/github-code
6ec929d2f9b284fc34f384ec7365159b95d4998d8245b222eb71d2d33b33e67f
/* * Apple Peripheral System Controller (PSC) * * The PSC is used on the AV Macs to control IO functions not handled * by the VIAs (Ethernet, DSP, SCC). * * TO DO: * * Try to figure out what's going on in pIFR5 and pIFR6. There seem to be * persisant interrupt conditions in those registers and I have no idea w...
C
virt/arch/m68k/mac/psc.c
talnoah/android_kernel_htc_dlx
gpl-2.0
4,259
183
codeparrot/github-code
5c5bea80f225041df1bffdd5163740d81dc4020a53a9035266cc1a3ecd4d3ab4
// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (C) 2012 Intel Corporation * Author: Liu Jinsong <jinsong.liu@intel.com> * Author: Jiang Yunhong <yunhong.jiang@intel.com> */ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt #include <linux/kernel.h> #include <linux/module.h> #include <linux/init.h> #i...
C
drivers/xen/xen-acpi-memhotplug.c
openwrt-es/linux
gpl-2.0
11,617
476
codeparrot/github-code
9f4ad24df7b83acf180ee33dc8c1b024d3b642022a05f5cf0a2028a03b93cd24
<?php /** * Debug/Status page * * @author WooThemes * @category Admin * @package WooCommerce/Admin/System Status * @version 2.2.0 */ if ( ! defined( 'ABSPATH' ) ) { exit; } /** * WC_Admin_Status Class. */ class WC_Admin_Status { /** * Handles output of the reports page in admin. */ pu...
PHP
wp/soulshape.earth/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-status.php
befair/soulShape
agpl-3.0
12,201
346
codeparrot/github-code
b981c36e7143b5901f896d884dc9aaecf137c70e62a3d0e2d47ae6fb9e2489a7
/* * Copyright (c) 2009,2012 Samsung Electronics Co., Ltd. * http://www.samsung.com/ * * Base S5P UART resource and device definitions * * 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 Fo...
C
unionfs-3.10.y/arch/arm/plat-samsung/s5p-dev-uart.c
prasidh09/cse506
gpl-2.0
2,263
90
codeparrot/github-code
bf2232ce5b937a3fd0f9ee004ec50500d7f613efb85174736912067ef87369aa
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import {ApplicationRef, NgModuleRef} from '@angular/core'; import {bindAction, profile} from '../../util'; import {...
TypeScript
modules/benchmarks/src/tree/ng2_switch/init.ts
ValtoFrameworks/Angular-2
mit
1,053
41
codeparrot/github-code
f78b93b4cc634797098f72264f32726782d2da22eeb1d65ba5b827905ddbf9eb
/* global wp, pwsL10n, wc_password_strength_meter_params */ jQuery( function( $ ) { /** * Password Strength Meter class. */ var wc_password_strength_meter = { /** * Initialize strength meter actions. */ init: function() { $( document.body ) .on( 'keyup change', 'form.register #reg_password, for...
JavaScript
wp-content/woocommerce/assets/js/frontend/password-strength-meter.js
aspirin1988/virazh
gpl-2.0
3,236
109
codeparrot/github-code
a722de822902af7a2ccc98d55bd8fe17984a9c2727715cf55bff3c0d3c7386cd
/* * 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
linux/drivers/staging/lustre/lustre/obdclass/linux/linux-module.c
dperezde/little-penguin
gpl-2.0
10,868
458
codeparrot/github-code
28aa84c989c316f846416a3d93dd64c8d23e2b159d00fe09b6fce6351bd8247b
<?php if (class_exists('ParagonIE_Sodium_Core_Curve25519_Fe', false)) { return; } /** * Class ParagonIE_Sodium_Core_Curve25519_Fe * * This represents a Field Element */ class ParagonIE_Sodium_Core_Curve25519_Fe implements ArrayAccess { /** * @var array<int, int> */ protected $container = arr...
PHP
wp/wp-includes/sodium_compat/src/Core/Curve25519/Fe.php
CityOfPhiladelphia/phila.gov
gpl-2.0
2,977
124
codeparrot/github-code
66abd3aacda46ef8810bdab6259524a229837d9c251a13e06a0a59540686ca75
/* * Copyright 2012 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
linux/drivers/gpu/drm/nouveau/nvkm/engine/disp/rootnv50.c
mkvdv/au-linux-kernel-autumn-2017
gpl-3.0
13,342
446
codeparrot/github-code
cb74c17d79a3286d73a6316d9563df41db2b81d6cb98dc1fe6492532d1be0554
/* * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. * * Copyright (C) 2000 Silicon Graphics, Inc. * Copyright (C) 2005 Ralf Baechle <ralf@linux-mips.org> */ #ifndef __ASM_MACH_IP27_KERNEL_ENTR...
C
oss/linux/linux-4.7/arch/mips/include/asm/mach-ip27/kernel-entry-init.h
geminy/aidear
gpl-3.0
2,773
107
codeparrot/github-code
0b4737755d6887ca659555f3ede4571a664a83dee2d77e7329182d880d2ba48c
// See README.txt for information and build instructions. import com.example.tutorial.AddressBookProtos.AddressBook; import com.example.tutorial.AddressBookProtos.Person; import java.io.BufferedReader; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io...
Java
thirdparty/sources/protobuf/examples/AddPerson.java
gwq5210/litlib
gpl-3.0
2,976
96
codeparrot/github-code
b792829aedc289d3bd69b9e73292fb268f17eeba6ed2d3d5a193dd1d013f9085
/* * linux/arch/arm/mach-sa1100/leds-badge4.c * * Author: Christopher Hoover <ch@hpl.hp.com> * Copyright (C) 2002 Hewlett-Packard Company * * 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 ...
C
snapgear_linux/linux-2.6.21.1/arch/arm/mach-sa1100/leds-badge4.c
impedimentToProgress/UCI-BlueChip
mit
2,773
112
codeparrot/github-code
f04164896eb911d8019dfe6ecbc50879b8386e986c64e286dc26ac6ec4a75747
<?php /** * Drupal_Sniffs_Semantics_FunctionTSniff * * PHP version 5 * * @category PHP * @package PHP_CodeSniffer * @link http://pear.php.net/package/PHP_CodeSniffer */ /** * Check the usage of the t() function to not escape translateable strings with back * slashes. Also checks that the first argument ...
PHP
src/Drupal/Sniffs/Semantics/FunctionTSniff.php
RobLoach/PHP_CodeSniffer_Drupal
gpl-2.0
4,137
121
codeparrot/github-code
29261c425c1010f4c7fa17cf2e3f4765fd2c1fbb9b14d10242530450751fc383
// SPDX-License-Identifier: GPL-2.0 /* Copyright (c) 2019 HiSilicon Limited. */ #include <crypto/akcipher.h> #include <crypto/curve25519.h> #include <crypto/dh.h> #include <crypto/ecc_curve.h> #include <crypto/ecdh.h> #include <crypto/rng.h> #include <crypto/internal/akcipher.h> #include <crypto/internal/kpp.h> #includ...
C
drivers/crypto/hisilicon/hpre/hpre_crypto.c
rperier/linux
gpl-2.0
51,633
2,151
codeparrot/github-code
c5601058d54d51c5f8d4f79bb61f28509b489a7ad98e908474e6b3d54c56c466
/* */ "format cjs"; "use strict"; exports.__esModule = true; // istanbul ignore next function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } // istanbul ignore next function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeEr...
JavaScript
test/basic/jspm_packages/npm/babel-core@5.8.9/lib/transformation/file/logger.js
pauldijou/outdated
apache-2.0
2,393
109
codeparrot/github-code
6faa8ff0e1bfdf8f5784fc32c51cf82fb8c53af85164a9314ca24e45b7b21d9b
<?php /** * RSS2 Feed Template for displaying RSS2 Comments feed. * * @package WordPress */ header('Content-Type: ' . feed_content_type('rss2') . '; charset=' . get_option('blog_charset'), true); echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>'; /** This action is documented in wp-includ...
PHP
www/wp-includes/feed-rss2-comments.php
lliss/wordpress-test
gpl-2.0
3,656
102
codeparrot/github-code
dbb27f7c836409c8dfeadb3974757cce55e9c0b72285e4264859da606898e90f
 (function () { "use strict"; jQuery(function () { ko.applyBindings(cdnViewModel()); //Manage CDNs jQuery("#manageButton").click(function () { window.location = "../Lists/CDNs"; return false; }); //Inject CDNs jQuery("#injectButton")....
JavaScript
cdnManager/cdnManager/Scripts/App.js
dafunkphenomenon/dev
mit
16,285
413
codeparrot/github-code
9c5e0d1fecb9c8f843f702b22ea108c8d22baee741137b3263a63631500bc1eb
//=========================================== // The following is for 8723B 2Ant BT Co-exist definition //=========================================== #define BT_AUTO_REPORT_ONLY_8723B_2ANT 1 #define BT_INFO_8723B_2ANT_B_FTP BIT7 #define BT_INFO_8723B_2ANT_B_A2DP BIT6 #define BT_INFO_8723B_2ANT_B_H...
C
linux-3.14.52/drivers/net/wireless/rtl818x/rtl8188eu/hal/OUTSRC-BTCoexist/HalBtc8723b2Ant.h
sdphome/UHF_Reader
gpl-3.0
5,098
187
codeparrot/github-code
bc4db39fac885dd325d2f78804fbf740960f8397685e74950f5971dbc7e3ce65
// SPDX-License-Identifier: GPL-2.0 /* * kexec_file for arm64 * * Copyright (C) 2018 Linaro Limited * Author: AKASHI Takahiro <takahiro.akashi@linaro.org> * * Most code is derived from arm64 port of kexec-tools */ #define pr_fmt(fmt) "kexec_file: " fmt #include <linux/ioport.h> #include <linux/kernel.h> #inclu...
C
arch/arm64/kernel/machine_kexec_file.c
rperier/linux-rockchip
gpl-2.0
4,374
183
codeparrot/github-code