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 |
|---|---|---|---|---|---|---|---|---|
8155d6e9ccac0eee96ce284f679ad9e1a168017f8a5d08d35000d20c6e2095bd | // ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// 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.apac... | C# | src/ResourceManager/Sql/Commands.Sql/Secure Connection/Model/DatabaseSecureConnectionPolicyModel.cs | atpham256/azure-powershell | apache-2.0 | 1,931 | 51 | codeparrot/github-code |
5c03eb52e151a7c0b3a4f434ba9084f37e8a16e1c41d79729d600cdcc2c5ad09 | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Collections.Generic;
using Microsoft.CodeAnalysis.Operations;
using Microsoft.CodeAnalysis.Shared.Utilities;
using Roslyn.Utilities;
namespace ... | C# | src/Features/Core/Portable/PopulateSwitch/PopulateSwitchHelpers.cs | mmitche/roslyn | apache-2.0 | 4,896 | 133 | codeparrot/github-code |
d0186fe3ee199a3ad8b57ce5c69242137cda87fa0706e29e08a66a89f65a335b | 'use strict';
angular.module('openshiftConsole')
.directive('overviewDeployment', function($location, $timeout, LabelFilter) {
return {
restrict: 'E',
scope: {
// Replication controller / deployment fields
rc: '=',
deploymentConfigId: '=',
deploymentConfigMissing: '=',
... | JavaScript | assets/app/scripts/directives/resources.js | domenicbove/origin | apache-2.0 | 3,240 | 124 | codeparrot/github-code |
6186b26c6a080c15f575855d013bcb46f5aa77c6c2c9099ff855214341612c7b | /*
* RealVideo 4 decoder
* copyright (c) 2007 Konstantin Shishkov
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License... | C | third_party/ffmpeg/libavcodec/rv40vlc2.h | shyamalschandra/sagetv | apache-2.0 | 33,390 | 707 | codeparrot/github-code |
4562dbfd692de083ec4fa8d2f77986d33c1734e944c1836f71f71a6302dae3f3 | <!DOCTYPE html>
<!--[if lt IE 7]>
<html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>
<html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>
<html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-eq... | HTML | resources/public/bower_components/ng-table/examples-old/demo32.html | sorlandoiii/dynasty-league | epl-1.0 | 6,229 | 166 | codeparrot/github-code |
21832d9e2d82c7913c92a3d69e2fec29910a9a3ccecb96c5185ce4461406642f | /*
* linux/ipc/namespace.c
* Copyright (C) 2006 Pavel Emelyanov <xemul@openvz.org> OpenVZ, SWsoft Inc.
*/
#include <linux/ipc.h>
#include <linux/msg.h>
#include <linux/ipc_namespace.h>
#include <linux/rcupdate.h>
#include <linux/nsproxy.h>
#include <linux/slab.h>
#include <linux/fs.h>
#include <linux/mount.h>
#incl... | C | kernel/ipc/namespace.c | augustayu/fastsocket | gpl-2.0 | 4,437 | 189 | codeparrot/github-code |
749b55d6e8d6e30100068fa3ef445f20ec1c278e54795dd65d2d6c5a77866956 | /*
* include/linux/muic/muic.h
*
* header file supporting MUIC common information
*
* Copyright (C) 2010 Samsung Electronics
* Seoyoung Jeong <seo0.jeong@samsung.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
... | C | include/linux/muic/muic.h | 7420dev/android_kernel_samsung_zeroflte | gpl-2.0 | 6,208 | 227 | codeparrot/github-code |
6c326e6c1fc4baff5cdcb9f263f5ff013176aa4074409905f80fc9e2b8fa5f4a | /*
* CHRP pci routines.
*/
#include <linux/kernel.h>
#include <linux/pci.h>
#include <linux/delay.h>
#include <linux/string.h>
#include <linux/init.h>
#include <asm/io.h>
#include <asm/pgtable.h>
#include <asm/irq.h>
#include <asm/hydra.h>
#include <asm/prom.h>
#include <asm/machdep.h>
#include <asm/sections.h>
#in... | C | kernel/arch/powerpc/platforms/chrp/pci.c | augustayu/fastsocket | gpl-2.0 | 10,671 | 380 | codeparrot/github-code |
39e249dbfcab040f7c9969e5345c70fbb093ab859f23b083148c994284977c94 | /*
* ff.h - a part of driver for RME Fireface series
*
* Copyright (c) 2015-2017 Takashi Sakamoto
*
* Licensed under the terms of the GNU General Public License, version 2.
*/
#ifndef SOUND_FIREFACE_H_INCLUDED
#define SOUND_FIREFACE_H_INCLUDED
#include <linux/device.h>
#include <linux/firewire.h>
#include <linu... | C | sound/firewire/fireface/ff.h | qzhuyan/linux | gpl-2.0 | 4,433 | 153 | codeparrot/github-code |
c92af328dd0bcbb4970de88ed7323021711e0ad0c3bb841a592331ec86bc8b76 | /*
* Implementation of the userspace SID hashtable.
*
* Author : Eamon Walsh, <ewalsh@epoch.ncsc.mil>
*/
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include "selinux_internal.h"
#include <selinux/avc.h>
#include "avc_sidtab.h"
#include "avc_internal.h"
static ... | C | libselinux/src/avc_sidtab.c | KubaKaszycki/kubux | gpl-3.0 | 2,894 | 153 | codeparrot/github-code |
e9738a470252cae7a3939ec7847efce5b47aecfb70e0d939353b55e069c1ffd4 | /* linpack/csvdc.f -- translated by f2c (version 20050501).
You must link the resulting object file with libf2c:
on Microsoft Windows system, link with libf2c.lib;
on Linux or Unix systems, link with .../path/to/libf2c.a -lm
or, if you install libf2c.a in a standard place, with -lf2c -lm
... | C | Modules/ThirdParty/VNL/src/vxl/v3p/netlib/linpack/csvdc.c | eile/ITK | apache-2.0 | 39,375 | 1,262 | codeparrot/github-code |
d1d9cb4f356bca9a1a567ebe368d4a6b1b9a39da79c754511cb63a3aaef6ff4c | // Type definitions for es6-promise
// Project: https://github.com/jakearchibald/ES6-Promise
// Definitions by: François de Campredon <https://github.com/fdecampredon>, vvakame <https://github.com/vvakame>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
interface Thenable<T> {
then<U>(onFulfille... | TypeScript | types/es6-promise/index.d.ts | AbraaoAlves/DefinitelyTyped | mit | 5,198 | 85 | codeparrot/github-code |
68f3f3fd87ffdd94398760cb959f80e3c7a46dec8a71c1e0207a8257e9913f42 | <?php
namespace Kunstmaan\GeneratorBundle\Generator;
use Symfony\Component\HttpKernel\Bundle\BundleInterface;
/**
* Generates all classes/files for a new page
*/
class PageGenerator extends KunstmaanGenerator
{
/**
* @var BundleInterface
*/
private $bundle;
/**
* @var string
*/
... | PHP | src/Kunstmaan/GeneratorBundle/Generator/PageGenerator.php | Amrit01/KunstmaanBundlesCMS | mit | 5,521 | 190 | codeparrot/github-code |
c31d6fd5a10430b87973e514e5e0bba185e9a51ae7c7855af5dfe32fe87a3bbd | function error_log(message, message_type, destination, extra_headers) {
// http://kevin.vanzonneveld.net
// + original by: Paul Hutchinson (http://restaurantthing.com/)
// + revised by: Brett Zamir (http://brett-zamir.me)
// % note 1: The dependencies, mail(), syslog(), and file_put_contents()
//... | JavaScript | experimental/errorfunc/error_log.js | cigraphics/phpjs | mit | 2,020 | 51 | codeparrot/github-code |
e27cb821d9fbc206a56d4abdae77061eed3612397a4aaf0d0a1a472ae6043ce1 | /*
* amrnb audio input device
*
* Copyright (C) 2008 Google, Inc.
* Copyright (C) 2008 HTC Corporation
* Copyright (c) 2009-2010, Code Aurora Forum. 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... | C | arch/arm/mach-msm/qdsp5v2/audio_amrnb_in.c | chrisch1974/htc7x30-2.6-flyer | gpl-2.0 | 22,485 | 859 | codeparrot/github-code |
b8bb498839186de150f2f6facd3c9a919458051f68cb78f9ea83bac3096147f9 | // 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 "chrome/browser/extensions/api/content_settings/content_settings_store.h"
#include <set>
#include "base/debug/alias.h"
#include "base/loggi... | C++ | external/chromium_org/chrome/browser/extensions/api/content_settings/content_settings_store.cc | qtekfun/htcDesire820Kernel | gpl-2.0 | 12,997 | 378 | codeparrot/github-code |
0397a9adca708b2a17fd9b5e918d9e182671c255a1b4574c43562e840fd610fb | <?php
class ControllerReportCustomerActivity extends Controller {
public function index() {
$this->load->language('report/customer_activity');
$this->document->setTitle($this->language->get('heading_title'));
if (isset($this->request->get['filter_customer'])) {
$filter_customer = $this->request->get['filter... | PHP | upload/admin/controller/report/customer_activity.php | latestthemes/opencart | gpl-3.0 | 5,935 | 167 | codeparrot/github-code |
8d67776d7f20778a08d05e14545b6ce7430db2bbc367541bde121f0a27d2c380 | //===--- ScratchBuffer.cpp - Scratch space for forming tokens -------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | C++ | src/llvm/tools/clang/lib/Lex/ScratchBuffer.cpp | jeltz/rust-debian-package | apache-2.0 | 2,830 | 74 | codeparrot/github-code |
d05b33c95eabecf518287bc89137894cf6ff96406d78502857b802ae4439c29a | <?php
/**
* Validates an integer representation of pixels according to the HTML spec.
*/
class HTMLPurifier_AttrDef_HTML_Pixels extends HTMLPurifier_AttrDef
{
protected $max;
public function __construct($max = null) {
$this->max = $max;
}
public function validate(... | PHP | puppet/garbage/website/files/DVWA/external/phpids/0.6/lib/IDS/vendors/htmlpurifier/HTMLPurifier/AttrDef/HTML/Pixels.php | cappetta/CyberCloud | apache-2.0 | 1,343 | 48 | codeparrot/github-code |
3900e420ee7daa53682937815c425d8a4dd04fb21f32b051afb8abe98e189078 | /*
* Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "l... | Java | aws-java-sdk-rds/src/main/java/com/amazonaws/services/rds/model/ResetDBParameterGroupResult.java | mahaliachante/aws-sdk-java | apache-2.0 | 3,865 | 119 | codeparrot/github-code |
b9fa8be88f9830fceae5f8e84057d85c47f9c4d2d2c70606372aedd337532448 | /******************************************************************************
*
* Module Name: nsrepair2 - Repair for objects returned by specific
* predefined methods
*
*****************************************************************************/
/*
* Copyright (C) 2000 - 2015, Intel... | C | virt/drivers/acpi/acpica/nsrepair2.c | AiJiaZone/linux-4.0 | gpl-2.0 | 31,111 | 980 | codeparrot/github-code |
e527d0c970cf76697325df393b80d517e557ba505c2705127289eef85fedd84a | /*
* Copyright (C) ST-Ericsson SA 2010
*
* License terms: GNU General Public License (GPL) version 2
* Author: Virupax Sadashivpetimath <virupax.sadashivpetimath@stericsson.com>
*
* RTC clock driver for the RTC part of the AB8500 Power management chip.
* Based on RTC clock driver for the AB3100 Analog Baseband C... | C | qca/src/linux/drivers/rtc/rtc-ab8500.c | itgb/opCloudRouter | gpl-2.0 | 12,132 | 471 | codeparrot/github-code |
ac6b5bba67afa9b60d249f98c63a2c50745ec5374e1a4af4d4f81f80c6a6ef34 | // { dg-options "-std=gnu++0x" }
// 2010-03-23 Paolo Carlini <paolo.carlini@oracle.com>
//
// Copyright (C) 2010-2013 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
// terms of the GNU General Pub... | C++ | libstdc++-v3/testsuite/20_util/is_literal_type/value.cc | pschorf/gcc-races | gpl-2.0 | 1,855 | 55 | codeparrot/github-code |
d103ebe908fc766c58cd14e7f3c9790f58de79b3e2c0118e47f334f0f42d5c2e | // Copyright (C) 2004-2013 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
// terms of the GNU General Public License as published by the
// Free Software Foundation; either version 3, or (at your op... | C++ | libstdc++-v3/testsuite/27_io/basic_istream/tellg/wchar_t/fstream.cc | atgreen/gcc | gpl-2.0 | 2,596 | 87 | codeparrot/github-code |
60ba9056a0a6d23173ad53651e9d9f75debca33fdd576ff67f87ab2375c440de | #include QMK_KEYBOARD_H
#include "debug.h"
#include "action_layer.h"
#define BASE 0 // default layer
#define FN1 1 // media layer
#define CAPS_CTL CTL_T(KC_CAPS) // Caps on tap, Ctrl on hold.
#define COPY LCTL(KC_V) // C-c Copy
#define PASTE LCTL(KC_V) // C-v Paste
#define ZM_NRM LCTL(KC_0) ... | C | layouts/community/ergodox/ab/keymap.c | kll/qmk_firmware | gpl-2.0 | 7,321 | 156 | codeparrot/github-code |
cf2ca9024c82da2fa16b63dc4eeab611039a79ff6b553a1c031ec8b311e42e9f | ! { dg-do compile }
! Test the patch for PR36374 in which the different
! symbols for 'foobar' would be incorrectly flagged as
! ambiguous in foo_mod.
!
! Contributed by Salvatore Filippone <sfilippone@uniroma2.it>
!
module s_foo_mod
type s_foo_type
real(kind(1.e0)) :: v
end type s_foo_type
interface foo... | FORTRAN | uefi/gcc/gcc-4.6.3/gcc/testsuite/gfortran.dg/generic_17.f90 | SanDisk-Open-Source/SSD_Dashboard | gpl-2.0 | 952 | 41 | codeparrot/github-code |
ffcf82c7a2aedef1877ca296779d02308fb8111530dff6f7a3b7d0d8f0db76be | /* $Id$ */
/*
* This file is part of OpenTTD.
* OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
* OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without... | C | src/base_media_base.h | supermerill/openttd | gpl-2.0 | 10,260 | 299 | codeparrot/github-code |
7cda13ba0bb6318eafe33ccb608d64530300f47f429f55e22276261ed655d2db | #ifndef _IFADDRS_H
#include <inet/ifaddrs.h>
#include <stdbool.h>
#include <stdint.h>
libc_hidden_proto (getifaddrs)
libc_hidden_proto (freeifaddrs)
struct in6addrinfo
{
enum {
in6ai_deprecated = 1,
in6ai_homeaddress = 2
} flags:8;
uint8_t prefixlen;
uint16_t :16;
uint32_t index;
uint32_t addr[4];... | C | oss/glibc/glibc-2.24/include/ifaddrs.h | geminy/aidear | gpl-3.0 | 758 | 34 | codeparrot/github-code |
a67786746282a1bdb3aa0139f5ffc31720c6b8455fca7dfcb0b7332208528bde | // 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 "chrome/browser/extensions/api/file_system/entry_watcher_service_factory.h"
#include "chrome/browser/extensions/api/file_system/entry_watcher_se... | C++ | external/chromium_org/chrome/browser/extensions/api/file_system/entry_watcher_service_factory.cc | s20121035/rk3288_android5.1_repo | gpl-3.0 | 1,309 | 38 | codeparrot/github-code |
143790adb51397193f367eb15590454ad43323dc0b3a986f883dea03e73af41f | <?php
use LibreNMS\Exceptions\InvalidIpException;
use LibreNMS\Util\IP;
echo '<div class="container-fluid">';
echo "<div class='row'>
<div class='col-md-12'>
<div class='panel panel-default panel-condensed'>
<div class='panel-heading'>";
if ($config['overview_show_sysDescr']) {
echo '... | PHP | html/includes/dev-overview-data.inc.php | wikimedia/operations-software-librenms | gpl-3.0 | 3,565 | 138 | codeparrot/github-code |
344e8a0d8304f1c8ffcf94c403d9eee301eae7325fc433b67bd41188e637fe99 | /*
* Copyright 2000-2014 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/src/com/jetbrains/python/codeInsight/stdlib/PyStdlibCanonicalPathProvider.java | akosyakov/intellij-community | apache-2.0 | 3,015 | 84 | codeparrot/github-code |
348f71af0dbb57a0df025e907cf482c5473b89078f8cab161982b330a17552fa | /*
* 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/test/java/org/elasticsearch/script/GroovyScriptIT.java | wimvds/elasticsearch | apache-2.0 | 7,046 | 142 | codeparrot/github-code |
39146558ac4b6ef2ab33dc5532ade7499dcbfc2d34d6a31e46a0ce04239e30d2 | /*
* 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 | core/src/test/scala/org/apache/spark/deploy/rest/SubmitRestProtocolSuite.scala | esi-mineset/spark | apache-2.0 | 12,949 | 327 | codeparrot/github-code |
791c948cdfdcebee6f5871337c0b6a8f5e996f3dbb9899fe32a53ef0af38e978 | /*
* 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 | modules/visor-console/src/main/scala/org/apache/ignite/visor/commands/alert/VisorAlertCommand.scala | alexzaitzev/ignite | apache-2.0 | 33,630 | 939 | codeparrot/github-code |
a6215a462acad9554f9a0049af99f37c96537f9c4860386077877f602b8a4720 | // Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MI... | Rust | src/test/run-pass/intrinsic-return-address.rs | barosl/rust | apache-2.0 | 1,043 | 44 | codeparrot/github-code |
8077af2a9d2e4a3c2a777e3804901a58ed78053769909676a084ba40f643b6b5 | var $ = require('common:widget/ui/jquery/jquery.js');
var UT = require('common:widget/ui/ut/ut.js');
var FBClient = {};
var TPL_CONF = require('home:widget/ui/facebook/fbclient-tpl.js');
/**
* Fackbook module init function
* @return {object} [description]
*/
var WIN = window,
DOC = document,
conf = WIN.conf.FBCli... | JavaScript | test/diff_fis3_smarty/product_code/hao123_fis3_smarty/home/widget/ui/facebook/fbclient.js | femxd/fxd | bsd-2-clause | 11,018 | 343 | codeparrot/github-code |
c3079680ad7d011b4a6695ddf29c9dfc5042ea55747d8181040ab4f7e8f41919 | /**
* 404 (Not Found) Handler
*
* Usage:
* return res.notFound();
* return res.notFound(err);
* return res.notFound(err, 'some/specific/notfound/view');
*
* e.g.:
* ```
* return res.notFound();
* ```
*
* NOTE:
* If a request doesn't match any explicit routes (i.e. `config/routes.js`)
* or route blueprint... | JavaScript | templates/api/responses/notFound.js | Karnith/sails-generate-backend-gulp | mit | 2,541 | 83 | codeparrot/github-code |
7c443f0030abe79e317f597be43ff6c36872380957369142a27447a9b58668ab | // 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.
package org.chromium.base;
import android.os.Looper;
import android.os.MessageQueue;
import android.os.SystemClock;
import android.util.Log;
import andro... | Java | third_party/webrtc/src/chromium/src/base/android/java/src/org/chromium/base/TraceEvent.java | Teamxrtc/webrtc-streaming-node | mit | 11,372 | 297 | codeparrot/github-code |
063ad2ccd3555adb92c0cb362e38dc57671b6f0bb40b1df5dcb32180664ff172 | (function(){var e=window.AmCharts;e.AmRectangularChart=e.Class({inherits:e.AmCoordinateChart,construct:function(a){e.AmRectangularChart.base.construct.call(this,a);this.theme=a;this.createEvents("zoomed","changed");this.marginRight=this.marginBottom=this.marginTop=this.marginLeft=20;this.depth3D=this.angle=0;this.plotA... | JavaScript | files/amcharts/3.21.0/xy.js | Asaf-S/jsdelivr | mit | 21,406 | 42 | codeparrot/github-code |
c957f48ca117624635dc01b63bb32a1f1dfe72077a4ce0eede651cb2b6f352b5 | /*
* Copyright (c) 2007-2012 SlimDX Group
*
* 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, ... | C | source/direct3d11/ImageLoadInformation11.h | dawnoble/slimdx | mit | 7,609 | 228 | codeparrot/github-code |
199f8f840b0a79ee05c4f4d6bf4ddf4c8c45d58568cf947da8a56ab4e0a935c8 | /*
* Simplified MAC Kernel (smack) security module
*
* This file contains the smack hook function implementations.
*
* Author:
* Casey Schaufler <casey@schaufler-ca.com>
*
* Copyright (C) 2007 Casey Schaufler <casey@schaufler-ca.com>
* Copyright (C) 2009 Hewlett-Packard Development Company, L.P.
* ... | C | security/smack/smack_lsm.c | pichina/linux-bcache | gpl-2.0 | 70,465 | 3,025 | codeparrot/github-code |
c3e41a4ecb02f1276e4c5755ce2901262cfe33c69c7773d1767b8ba99bbc1b75 | /*
* Copyright (C) 2005-2018 Team Kodi
* This file is part of Kodi - https://kodi.tv
*
* SPDX-License-Identifier: GPL-2.0-or-later
* See LICENSES/README.md for more information.
*/
#pragma once
#include "IDirectory.h"
#include "addons/AddonManager.h"
class CURL;
typedef std::shared_ptr<CFileItem> CFileItem... | C | xbmc/filesystem/AddonsDirectory.h | anthonyryan1/xbmc | gpl-2.0 | 1,985 | 58 | codeparrot/github-code |
333ab5a4c4632d8bd4e416748d42c7f68fea5153ebdd8badcd4b433c0123419e | /*
* Copyright (c) 2015, 张涛.
*
* 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 agreed to in... | Java | KJFrame/app/src/main/java/org/kymjs/blog/ui/widget/RecordButtonUtil.java | supercwn/KJFrameForAndroid | apache-2.0 | 5,054 | 191 | codeparrot/github-code |
b44198e74bacd42f65f6fe41f609a117b42ceba03917cf46e2989334d291d9cb | /*! ******************************************************************************
*
* Pentaho Data Integration
*
* Copyright (C) 2002-2017 by Hitachi Vantara : http://www.pentaho.com
*
*******************************************************************************
*
* Licensed under the Apache License, Version... | Java | plugins/salesforce/core/src/test/java/org/pentaho/di/trans/steps/salesforce/SalesforceStepTest.java | tkafalas/pentaho-kettle | apache-2.0 | 6,334 | 167 | codeparrot/github-code |
008164c6dd8a638a07d0009a20b02ce2c44aeeb5dba8e549649e97809ee6f6a6 | /**
* Copyright 2015 IBM Corp.
*
* 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 agreed to in wr... | JavaScript | red/api/theme.js | mikestebbins/node-red | apache-2.0 | 5,062 | 160 | codeparrot/github-code |
89b1a2499aa5c15e3d6bae4ed93db768085c15ca5804c1011813030e2b0e6d64 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Phaser Class: LoaderParser</title>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link type="text/css" rel="stylesheet" href="styles/default.css">
<link type="text/css" rel="stylesheet... | HTML | v2/docs/Phaser.LoaderParser.html | clark-stevenson/phaser | mit | 53,121 | 2,265 | codeparrot/github-code |
d3c6da7d241601f6930056f35223bce7424d7684717e7fd1bac7bdcc09859a18 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Phaser Source: src/animation/Animation.js</title>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link type="text/css" rel="stylesheet" href="styles/default.css">
<link type="text/css" ... | HTML | v2/docs/src_animation_Animation.js.html | clark-stevenson/phaser | mit | 65,600 | 2,243 | codeparrot/github-code |
6a85dea3c8ef40c0b36beb7d755d8fdc01e0afa1ad08e6afa3c0dda6addb6b63 | // 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.Buffers;
using System.Collections;
using System.Diagnostics;
using System.Runtime.InteropServices;
nam... | C# | src/Common/src/CoreLib/System/Environment.Variables.Windows.cs | BrennanConroy/corefx | mit | 6,424 | 167 | codeparrot/github-code |
406d820a26cfac0efd4690688654824105b312217392b09ea89779674d404f3e | /*************************************************************************/
/* area_2d.h */
/*************************************************************************/
/* This file is part of: */
/* ... | C | scene/2d/area_2d.h | OpenSocialGames/godot | mit | 5,625 | 187 | codeparrot/github-code |
ea9a3ff86de9fa5c6c7b06861c928672c1bfec62ee71bc8493d44420444543ef | /*! asynquence-contrib
v0.13.0 (c) Kyle Simpson
MIT License: http://getify.mit-license.org
*/
(function UMD(dependency,definition){
if (typeof module !== "undefined" && module.exports) {
// make dependency injection wrapper first
module.exports = function $$inject$dependency(dep) {
// only try to `requ... | JavaScript | ajax/libs/asynquence-contrib/0.13.0/contrib.src.js | x112358/cdnjs | mit | 50,727 | 2,249 | codeparrot/github-code |
8e0174a2a61061050651639972cd9fd9f6bf007f6012f180c9007ac7b9407e67 | /*
* Copyright (C) 2013-2017 Oracle Corporation
* This file is based on ast_mode.c
* Copyright 2012 Red Hat Inc.
* Parts based on xf86-video-ast
* Copyright (c) 2005 ASPEED Technology Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated document... | C | drivers/staging/vboxvideo/vbox_mode.c | jmahler/linux-next | gpl-2.0 | 25,976 | 868 | codeparrot/github-code |
1b136ac5cab3b9a69f805c79e5ff0e66dda9a68e336d72b715ed4239d8df7583 | /***************************************************************************
qgslayoutviewtooladdnodeitem.h
--------------------------
Date : October 2017
Copyright : (C) 2017 Nyall Dawson
Email : nyall dot d... | C | src/gui/layout/qgslayoutviewtooladdnodeitem.h | ghtmtt/QGIS | gpl-2.0 | 2,751 | 85 | codeparrot/github-code |
fda45c6197d70d4422c5406458facd60642c962e71525841cb8d94c33043382d | <?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>lxml.html</title>
<link rel="stylesheet" href="epydoc.css" type="text/css" />
<script typ... | HTML | hue-3.8.1-bluemix/desktop/core/ext-py/lxml/doc/html/api/lxml.html-module.html | vmanoria/bluemix-hue-filebrowser | gpl-2.0 | 56,518 | 1,242 | codeparrot/github-code |
c97dbfbce63cf5bc6395edc3a514ebcc903dfadddaa0aebd914a573a21da52bb | /*
* Copyright (c) 1997 Adrian Sun (asun@zoology.washington.edu)
* All rights reserved.
*/
#ifndef _ATALK_SERVER_CHILD_H
#define _ATALK_SERVER_CHILD_H 1
#include <sys/types.h>
#include <arpa/inet.h>
#include <pthread.h>
/* useful stuff for child processes. most of this is hidden in
* server_child.c to ease chan... | C | release/src/router/netatalk-3.0.5/include/atalk/server_child.h | ghmajx/asuswrt-merlin | gpl-2.0 | 2,623 | 58 | codeparrot/github-code |
0f5d14d2b8c23bdb36ece80bfe9a3235c4503dc07fbb723f8d4fae95a7335d07 | /*
* inode.c -- user mode filesystem api for usb gadget controllers
*
* Copyright (C) 2003-2004 David Brownell
* Copyright (C) 2003 Agilent Technologies
*
* 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 Soft... | C | drivers/usb/gadget/inode.c | DreamStar001/Vegito_vibe_k5 | gpl-2.0 | 53,765 | 2,156 | codeparrot/github-code |
9c67ae05dcd4643ba6ec4d2a0abbb28f55a9fec25b2a52476de7964aa6dcd75d | /*
* Copyright (c) 2002-2003, Intel Corporation. All rights reserved.
* Created by: rusty.lynch REMOVE-THIS AT intel DOT com
* This file is licensed under the GPL license. For the full content
* of this license, see the COPYING file at the top level of this
* source tree.
Test case for assertion #4 of the si... | C | testcases/open_posix_testsuite/conformance/interfaces/sigaction/4-93.c | heluxie/LTP | gpl-2.0 | 904 | 41 | codeparrot/github-code |
f15973e539e04c389df1045a4b54727eaf07b69b0f13515110324c2eded3c7cc | /*
CopyRight (C) 1999, Dmitry Obukhov, dso@usa.net
mailto: dso@usa.net
http://www.EmbeddedStuff.com
----------------------------------------------
Last modified 6 Apr 97
----------------------------------------------
Converts C (C++) source to HTML code fragment
with syntax highlighting.
Since program written... | C | elisp/cscope-15.7a/contrib/webcscope/hilite.c | kevintianbalance/.emacs.d | gpl-2.0 | 8,434 | 361 | codeparrot/github-code |
6e66502f967bf7a75770006c7e9ec21b1d691bfc889bb03f1867b506a055f8db | /*
* Copyright 2010-2011 Freescale Semiconductor, Inc.
*
* 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
* published by the Free Software Foundation; either... | C | software/custom_leds/fpga/software/spl_bsp/uboot-socfpga/board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c | JeremySavonet/Eurobot-2017-Moon-Village | gpl-3.0 | 11,737 | 447 | codeparrot/github-code |
b5b7356fea2edac08c78dd3eb87dfadbef41658d5cdd63a38e58514d51989e6c | /* GStreamer
* Copyright (C) 2008 David Schleef <ds@entropywave.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any la... | C | third-party/gstreamer/gst-plugins-bad-0.10.19/ext/cog/gstcms.h | cpopescu/whispermedialib | lgpl-3.0 | 2,607 | 72 | codeparrot/github-code |
9851fbefb762c3132373a37f918538787fdb4901c9a344edd04b4e27c18f2203 | /*=========================================================================
Program: Visualization Toolkit
Module: TaskParallelismWithPorts.h
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This so... | C | lib/vtk/include/Examples/ParallelProcessing/Generic/Cxx/TaskParallelismWithPorts.h | gisfromscratch/datavisualizer | apache-2.0 | 1,405 | 50 | codeparrot/github-code |
6a45c9a782640a5d3acc77623cbd426d9e8d293aa0e04715bc3164de4f49c00d | /*
* Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "l... | Java | aws-java-sdk-glacier/src/main/java/com/amazonaws/services/glacier/model/transform/InvalidParameterValueExceptionUnmarshaller.java | mahaliachante/aws-sdk-java | apache-2.0 | 2,012 | 52 | codeparrot/github-code |
068f4d9b8d322ccc99a59755cee469b710f82417bdd36b36417f90c968fad29c | /*
* Copyright (C) 2010-2013 The SINA WEIBO Open Source Project
*
* 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 require... | Java | weibosdk/src/main/java/com/sina/weibo/sdk/openapi/models/Status.java | zjupure/SneezeReader | apache-2.0 | 5,093 | 147 | codeparrot/github-code |
45af8770ce556fab644a0dc7e99a28031d6ec3c9fd5d3ffe87bb10c23edf602d | // Random number generator - requires a PRNG backend, e.g. prng4.js
// For best results, put code like
// <body onClick='rng_seed_time();' onKeyPress='rng_seed_time();'>
// in your main HTML document.
var rng_state;
var rng_pool;
var rng_pptr;
// Mix in a 32-bit integer into the pool
function rng_seed_int(x) {
rng... | JavaScript | www/lib/rsa/rng.js | enketosurvey/mo | apache-2.0 | 2,112 | 76 | codeparrot/github-code |
fc69a82bbcc639f3fa6fe903def82b25f3266882c02d178e8c7acd64f7d99176 | /*
* 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/search/aggregations/bucket/filter/InternalFilter.java | corochoone/elasticsearch | apache-2.0 | 2,222 | 63 | codeparrot/github-code |
4c1ca107406d730be771bb11a8da111b15422734c2a5ce32bdc177f8f8929e92 | /*
* Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code 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 ... | Java | testing/openjdk2/jaxws/src/share/jaxws_classes/com/sun/xml/internal/xsom/impl/parser/ParserContext.java | rokn/Count_Words_2015 | mit | 6,989 | 213 | codeparrot/github-code |
473252ec5cfe4cc509d10de2887d30ae65188cd942013156f3d1d94d59ddb182 | /* ScummVM - Graphic Adventure Engine
*
* ScummVM is the legal property of its developers, whose names
* are too numerous to list here. Please refer to the COPYRIGHT
* file distributed with this source distribution.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU... | C++ | engines/dm/inventory.cpp | alexbevi/scummvm | gpl-2.0 | 40,443 | 1,097 | codeparrot/github-code |
bef998ad0a0a608ec709ae1c30c6beb96f9f2c6e234ec480ce34dae2123fad65 | /* Update additional symbol information in symbol table at the given index.
Copyright (C) 2000, 2001, 2002 Red Hat, Inc.
This file is part of Red Hat elfutils.
Written by Ulrich Drepper <drepper@redhat.com>, 2000.
Red Hat elfutils is free software; you can redistribute it and/or modify
it under the term... | C | libelf/gelf_update_syminfo.c | AOKP/external_elfutils | gpl-2.0 | 4,328 | 114 | codeparrot/github-code |
d2825aef482d3227e44600668472eb2711c0a048deef4af0e963df9e303b3280 | //===-- DWARFCompileUnit.h --------------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | C | tdebug-llvm/llvm/include/llvm/DebugInfo/DWARF/DWARFCompileUnit.h | rutgers-apl/Atomicity-Violation-Detector | gpl-2.0 | 988 | 32 | codeparrot/github-code |
0d5c012f18e80bedb72bf2311a219431ed6ede571248799000309750ba211753 | /*
* Functions related to sysfs handling
*/
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <linux/bio.h>
#include <linux/blkdev.h>
#include <linux/blktrace_api.h>
#include "blk.h"
struct queue_sysfs_entry {
struct attribute attr;
ssize_t (*show)(struct request_queue *, char *... | C | block/blk-sysfs.c | vinay94185vinay/Hybrid | gpl-2.0 | 15,179 | 569 | codeparrot/github-code |
2967692b8a51b8111141dfb54238bb114a5809f0e521c54af41f93dfef5f38ac | /*
* lp5521.c - LP5521 LED Driver
*
* Copyright (C) 2007 Nokia Corporation
*
* Written by Mathias Nyman <mathias.nyman@nokia.com>
* Updated by Felipe Balbi <felipe.balbi@nokia.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as... | C | src/drivers/leds/leds-lp5521.c | felixhaedicke/nst-kernel | gpl-2.0 | 18,002 | 725 | codeparrot/github-code |
7fea2e4f58195fe98db636535eeaf339300d8984d9152feb8dad15989012841a | /*
* 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 n... | Java | frame/kafka-0.11.0/kafka-0.11.0.1-src/connect/runtime/src/main/java/org/apache/kafka/connect/runtime/standalone/StandaloneConfig.java | wangcy6/storm_app | apache-2.0 | 1,709 | 45 | codeparrot/github-code |
276445cd070d94aef8755e6065a1c7abea12183d111727cae45a2811b08e2743 | /**
* Update: 15-5-11
* Editor: qihongye
*/
var fs = require('fs');
var path = require('path');
var fis = require('../lib/fis.js');
var _ = fis.file;
var defaultSettings = (require('../lib/config.js')).DEFALUT_SETTINGS;
var expect = require('chai').expect;
var u = fis.util;
var config = null;
describe('config: co... | JavaScript | test/config.js | richard-chen-1985/fis3 | bsd-2-clause | 6,921 | 287 | codeparrot/github-code |
6cd7231f010c21c7432b24fe3f888e79310e4057e655642e73c30a4c1f5f4385 | // 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.
#ifndef NET_QUIC_QUIC_DATA_WRITER_H_
#define NET_QUIC_QUIC_DATA_WRITER_H_
#include <string>
#include "base/basictypes.h"
#include "base/logging.h"
#... | C | net/quic/quic_data_writer.h | aospx-kitkat/platform_external_chromium_org | bsd-3-clause | 2,749 | 81 | codeparrot/github-code |
2b2b83be6ad4bfa65dcbf4781c9c89485dafdfc88a8e452ca96ed9496a85fd95 | /*
* Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code 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 Softwa... | Java | testing/openjdk/jdk/test/javax/sound/midi/Gervill/SoftAudioSynthesizer/GetFormat.java | rokn/Count_Words_2015 | mit | 2,359 | 62 | codeparrot/github-code |
5e5eaa9e9eb8f24fced366c3ac081fec32a9f3110e83b94bfa06ed82f8c4582a | /*
* Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code 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 ... | Java | testing/openjdk2/jdk/src/share/classes/java/lang/CharacterName.java | rokn/Count_Words_2015 | mit | 4,017 | 109 | codeparrot/github-code |
4c50cb39d36f5e6a7b0082d0cad4f8f08231247a27cc968dbbf33887c7915726 | /*
* 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/discovery/zen/fd/MasterFaultDetection.java | himanshuag/elasticsearch | apache-2.0 | 19,229 | 438 | codeparrot/github-code |
62b84bb10c22b25aaa87c0ed9108f20187d447e0d603f0ae3de172ea02bd0f1f | /*
* Copyright (c) 2012, Freescale Semiconductor, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* o Redistributions of source code must retain the above copyright notice, this list... | C | bsp/imx6sx/iMX6_Platform_SDK/sdk/drivers/cpu_utility/src/cpu_workpoint.c | ArdaFu/rt-thread | apache-2.0 | 3,960 | 123 | codeparrot/github-code |
2dcf2a9c414d838ec986d5b3f659b1a0e258c9c760cc30ea7b9cd898ff35f8ac | /* ========================================================================== */
/* === ldlsymbolmex.c: LDLSYMBOL mexFunction =============================== */
/* ========================================================================== */
/* MATLAB interface for symbolic LDL' factorization using the LDL sparse mat... | C | external/fieldtrip-20160128/external/dmlt/external/gpstuff/SuiteSparse/LDL/MATLAB/ldlsymbolmex.c | pchrapka/brain-modelling | mit | 5,408 | 179 | codeparrot/github-code |
d0a875a442aef7b191fe4aec3236b621740cc5f28de358ca82f88be71a162f83 | (function( $ ) {
/**
* Activity reply object for the activity index screen
*
* @since 1.6
*/
var activityReply = {
/**
* Attach event handler functions to the relevant elements.
*
* @since 1.6
*/
init : function() {
$(document).on( 'click', '.row-actions a.reply', activityReply.open );
... | JavaScript | wp-content/plugins/buddypress/bp-activity/admin/js/admin.dev.js | jnishiyama/PebblesWP | gpl-2.0 | 4,291 | 167 | codeparrot/github-code |
c213b3382cb9dfa91a3ab8885523f4bcc4d815b48a2a7206370a0f09c61c5e15 | /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Copyright by The HDF Group. *
* Copyright by the Board of Trustees of the University of Illinois. *
* All rights reserved. *
* ... | C | strawberry-perl-5.20.0.1-32bit-portable/c/include/H5Tprivate.h | mishin/dwimperl-windows | gpl-2.0 | 7,285 | 165 | codeparrot/github-code |
d02d043cfd3d494265f076b516671f921638a6832ac9f46a0074be6aa8faaf77 | /**
* @preserve SelectNav.js (v. 0.1)
* Converts your <ul>/<ol> navigation into a dropdown list for small screens
* https://github.com/lukaszfiszer/selectnav.js
*/
window.selectnav = (function(){
"use strict";
var selectnav = function(element,options){
element = document.getElementById(element);
// r... | JavaScript | store.drupalengage.com/profiles/commerce_kickstart/libraries/selectnav.js/selectnav.js | rtdean93/drupalengage | gpl-2.0 | 3,922 | 156 | codeparrot/github-code |
8d3d6b46a9cfcb9bd7dbb7b21f4596380b563434e165428d7d352fcc7c35834e | /*
* kernel/power/suspend.c - Suspend to RAM and standby functionality.
*
* Copyright (c) 2003 Patrick Mochel
* Copyright (c) 2003 Open Source Development Lab
* Copyright (c) 2009 Rafael J. Wysocki <rjw@sisk.pl>, Novell Inc.
*
* This file is released under the GPLv2.
*/
#include <linux/string.h>
#include <linu... | C | kernel/power/suspend.c | HackerOO7/android_kernel_huawei_u8951 | gpl-2.0 | 8,165 | 353 | codeparrot/github-code |
00c1fdc626b668292480eae355bad32ee44a7dcbf12265247dadb92a69d07530 | /*-
* Copyright (c) 1983, 1992, 1993
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the abov... | C | winsup/cygwin/gmon.c | openrisc/or1k-src | gpl-2.0 | 7,486 | 296 | codeparrot/github-code |
22141e00515a45635daf85f22321c52c90652a5423dc5178889405cea47d9a7e | /*=============================================================================
Copyright (c) 2002-2015 Joel de Guzman
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
=========================================... | C++ | thirdparty/sources/boost_1_60_0/libs/spirit/example/x3/complex_number.cpp | gwq5210/litlib | gpl-3.0 | 3,196 | 99 | codeparrot/github-code |
efeb6823ecd51c7c437f614060b1a9a9565fba8d42a3b7f7bf44edea07c6a48d | #include "PresetMerge.hpp"
#include <iostream>
void PresetMerger::MergePresets(PresetOutputs & A, PresetOutputs & B, mathtype ratio, int gx, int gy)
{
mathtype invratio = mathval(1.0f) - ratio;
//Merge Simple Waveforms
//
// All the mess is because of Waveform 7, which is two lines.
//
A.wave_rot = math... | C++ | third_party/VisEngine/PresetMerge.cpp | neurocis/sagetv | apache-2.0 | 7,592 | 193 | codeparrot/github-code |
d5c6291e19e7a26c2902b10d7990a6516fe8f56a31e0030895d4b14208c934ba | function __processArg(obj, key) {
var arg = null;
if (obj) {
arg = obj[key] || null;
delete obj[key];
}
return arg;
}
function Controller() {
require("alloy/controllers/BaseController").apply(this, Array.prototype.slice.call(arguments));
this.__controllerPath = "index";
this... | JavaScript | test/apps/testing/ALOY-262/_generated/mobileweb/alloy/controllers/index.js | jvkops/alloy | apache-2.0 | 1,252 | 47 | codeparrot/github-code |
be326b2bf05f78e0899393d888d339924eba169f0ccad5979a29b171f3dccce9 | <?php
final class PhabricatorPolicyConfigOptions
extends PhabricatorApplicationConfigOptions {
public function getName() {
return pht('Policy');
}
public function getDescription() {
return pht('Options relating to object visibility.');
}
public function getFontIcon() {
return 'fa-lock';
}
... | PHP | src/applications/policy/config/PhabricatorPolicyConfigOptions.php | leolujuyi/phabricator | apache-2.0 | 2,669 | 73 | codeparrot/github-code |
ffd4157836adc12e73490de1e1063038d82f73d3d6c4281743eaa8c0060918a6 | /*
* 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 | client/rest-high-level/src/test/java/org/elasticsearch/client/ml/StopDatafeedResponseTests.java | nknize/elasticsearch | apache-2.0 | 1,469 | 43 | codeparrot/github-code |
6aad3ad88d725d13cf8d98d8cd8e05a0c6240a3040fb440253ec41860ab824c4 | import datetime
from decimal import Decimal
import types
import six
def is_protected_type(obj):
"""Determine if the object instance is of a protected type.
Objects of protected types are preserved as-is when passed to
force_unicode(strings_only=True).
"""
return isinstance(obj, (
six.inte... | Python | venv/lib/python3.5/site-packages/external/org_mozilla_bleach/bleach/encoding.py | unnikrishnankgs/va | bsd-2-clause | 2,277 | 63 | codeparrot/github-code |
48ad17cdaec69fc1b2e96e0a7e8966e4036f6b4a889d07eebce10c95de4470e3 | #include "cpu_profile.h"
#include "cpu_profile_node.h"
namespace nodex {
using v8::Array;
using v8::CpuProfile;
using v8::CpuProfileNode;
using v8::Handle;
using v8::Number;
using v8::Integer;
using v8::Local;
using v8::Object;
using v8::ObjectTemplate;
using v8::FunctionTemplate;
using v8::Strin... | C++ | src/cpu_profile.cc | node-inspector/v8-profiler | bsd-2-clause | 3,600 | 105 | codeparrot/github-code |
1fbdf45f0a4e8887de36bf55153ca7ae586c949c02a4ebd91cb66574b001caf7 | /*
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#include <s... | C++ | osquery/events/linux/inotify.cpp | honestme/osquery | bsd-3-clause | 8,994 | 299 | codeparrot/github-code |
911fd1ea90b96081ce1cad15343181eb70c4a993e6682493ce66db74a5d5de5a | // Copyright (c) 2013 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 "webkit/common/gpu/grcontext_for_webgraphicscontext3d.h"
#include "third_party/WebKit/public/platform/WebGraphicsContext3D.h"
#include "thir... | C++ | webkit/common/gpu/grcontext_for_webgraphicscontext3d.cc | aospx-kitkat/platform_external_chromium_org | bsd-3-clause | 2,195 | 71 | codeparrot/github-code |
8762363246fe1e130674e11bd3e2d0eed8230d92b596c92f09e82265a9ae30fe | // SPDX-License-Identifier: GPL-2.0
/* ePAPR hypervisor byte channel device driver
*
* Copyright 2009-2011 Freescale Semiconductor, Inc.
*
* Author: Timur Tabi <timur@freescale.com>
*
* This driver support three distinct interfaces, all of which are related to
* ePAPR hypervisor byte channels.
*
* 1) An early-... | C | drivers/tty/ehv_bytechan.c | rperier/linux | gpl-2.0 | 22,295 | 819 | codeparrot/github-code |
fbe75ce46ee5c78698dc66456ce709600425f9f7d0bd9ec1ce57b55b96e834df | # encoding: utf-8
require 'ffaker/address'
module Faker
module AddressDE
include Faker::Address
extend ModuleUtils
extend self
def zip_code
Faker.numerify ZIP_FORMATS.rand
end
def state
STATE.rand
end
def city
CITY.rand
end
def street_name
case ra... | Ruby | lib/ffaker/address_de.rb | hyfn/ffaker | mit | 656 | 43 | codeparrot/github-code |
b143fdca5405e2b1259a5b01fd91cbe1c375a5415c9d2dde5cb2aca6033df935 | // Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
// MIT License. See license.txt
get_server_fields = function(method, arg, table_field, doc, dt, dn, allow_edit, call_back) {
frappe.dom.freeze();
if($.isPlainObject(arg)) arg = JSON.stringify(arg);
return $c('runserverobj',
args={'method': m... | JavaScript | frappe/public/js/legacy/clientscriptAPI.js | pawaranand/phr_frappe | mit | 7,148 | 277 | codeparrot/github-code |
468b038ad9325d33ae11ddfa7cb2b7e13d87df523677a55c80127222a77b9c1d | /* bnx2x_cmn.h: Broadcom Everest network driver.
*
* Copyright (c) 2007-2011 Broadcom Corporation
*
* 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.
*
* Maintained by: Eilon Greenstein <e... | C | drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h | qubir/PhoenixA20_linux_sourcecode | gpl-2.0 | 39,494 | 1,574 | codeparrot/github-code |
e7f318bb8da80636387c0ef3c8efed3491d37a209619c8fdcd08930cb4e6ce4f | /*
* Copyright (c) 2002 The FFmpeg Project
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) an... | C | third_party/ffmpeg/libavcodec/wmv2dec.c | ashishlal/pjproject-2.0.1 | gpl-2.0 | 14,797 | 485 | codeparrot/github-code |
bfb216763ec203fed4a38ee7d80e2a563281cce2df3608924a5e7bb0db519065 | // 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/bind.h"
#include "base/debug/trace_event.h"
#include "base/logging.h"
#include "base/metrics/histogram.h"
#include "base/stl_util.h"
#i... | C++ | external/chromium_org/content/common/gpu/media/vaapi_video_decode_accelerator.cc | s20121035/rk3288_android5.1_repo | gpl-3.0 | 30,302 | 927 | codeparrot/github-code |
6ba9f84306e3ba42dcc653d029c8a54b83ecdeb959208691eb9618012c98bdf0 | // 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.
#ifndef CHROME_BROWSER_UI_WEBUI_OMNIBOX_OMNIBOX_UI_HANDLER_H_
#define CHROME_BROWSER_UI_WEBUI_OMNIBOX_OMNIBOX_UI_HANDLER_H_
#include "base/basictypes... | C | external/chromium_org/chrome/browser/ui/webui/omnibox/omnibox_ui_handler.h | s20121035/rk3288_android5.1_repo | gpl-3.0 | 2,944 | 76 | codeparrot/github-code |
6a9349c6da275a4fc460c02bb72db62d6d0507f0aaf211c7b3e6b3cefd1d4918 | package org.jsoup.parser;
import org.jsoup.helper.Validate;
import java.util.Arrays;
import java.util.Locale;
/**
CharacterReader consumes tokens off a string. To replace the old TokenQueue.
*/
final class CharacterReader {
static final char EOF = (char) -1;
private static final int maxCacheLen = 12;
... | Java | src/org/jsoup/parser/CharacterReader.java | rogerxaic/gestock | unlicense | 10,826 | 396 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.