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 |
|---|---|---|---|---|---|---|---|---|
fef7b5b2cd0b9a635f877518e10483891f15dbe3faf84e116c9e55d844d03641 | /*
* Copyright 2012-15 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... | C | drivers/gpu/drm/amd/display/dc/dce80/dce80_resource.c | qzhuyan/linux | gpl-2.0 | 37,569 | 1,458 | codeparrot/github-code |
8c1dc526515cde5f3a556c9088d11423c0282b229b3fe41281a47056e9f86759 | /*
* linux/include/linux/mmc/core.h
*
* 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.
*/
#ifndef LINUX_MMC_CORE_H
#define LINUX_MMC_CORE_H
#include <linux/interrupt.h>
#include... | C | include/linux/mmc/core.h | n3ocort3x/Kernel_2.6.39.4_one_x | gpl-2.0 | 6,341 | 186 | codeparrot/github-code |
490e7129d96a9f1881b57885a67464abd490431624a0944bcc80af8da0c15c33 | /*
* drivers/usb/gadget/f_mtp_samsung.c
*
* Function Driver for USB MTP,
* f_mtp_samsung.c -- MTP Driver, for MTP development,
*
* Copyright (C) 2009 by Samsung Electronics,
* Author:Deepak M.G. <deepak.guru@samsung.com>,
* Author:Madhukar.J <madhukar.j@samsung.com>,
*
* This program is free software; you ca... | C | drivers/usb/gadget/f_mtp_samsung.c | jsgage/android_kernel_ba2x | gpl-2.0 | 42,210 | 1,645 | codeparrot/github-code |
812a9c39c51ee9022e404f0b751f8de201027a03c13f42611df6d2805cb6220e | /*
* platform.c - platform 'pseudo' bus for legacy devices
*
* Copyright (c) 2002-3 Patrick Mochel
* Copyright (c) 2002-3 Open Source Development Labs
*
* This file is released under the GPLv2
*
* Please see Documentation/driver-model/platform.txt for more
* information.
*/
#include <linux/string.h>
#include... | C | drivers/base/platform.c | percy-g2/android_kernel_sony_taoshan | gpl-2.0 | 30,680 | 1,194 | codeparrot/github-code |
2f86c37e917d2e624ec5107a27e7da2e7526d97baffea5fd19c1fc929f7d472a | /*
This file is provided under a dual BSD/GPLv2 license. When using or
redistributing this file, you may do so under either license.
GPL LICENSE SUMMARY
Copyright(c) 2010-2011 Texas Instruments Incorporated,
All rights reserved.
This program is free software; you can redistribute it and/or modify
it ... | C | sound/soc/omap/abe/abe_gain.c | smaeul/kernel_samsung_tuna | gpl-2.0 | 21,637 | 657 | codeparrot/github-code |
da5db1ea0aa6ed74391420c3a5bea7ad4ac87212998491c638b72c9da6d587e9 | /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
/***
This file is part of systemd.
Copyright 2014 Lennart Poettering
systemd 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... | C | src/resolve/resolved-dns-rr.c | suihkulokki/systemd | gpl-2.0 | 26,743 | 849 | codeparrot/github-code |
bf5508ed5f3f7f149cde05fb00b93a09728bdce0a6ce37f6ad97c809aa4a18d0 | /*
* Copyright 2005, Red Hat, Inc., Ingo Molnar
* Released under the General Public License (GPL).
*
* This file contains the spinlock/rwlock implementations for
* DEBUG_SPINLOCK.
*/
#include <linux/spinlock.h>
#include <linux/nmi.h>
#include <linux/interrupt.h>
#include <linux/debug_locks.h>
#include <linux/del... | C | lib/spinlock_debug.c | omnirom/android_kernel_oppo_r819 | gpl-2.0 | 7,661 | 316 | codeparrot/github-code |
16551a6b2853232270d0cca2f5c26568d43b7f89bcb456532cc33bc32c475cf8 | /*
* kernel/stop_machine.c
*
* Copyright (C) 2008, 2005 IBM Corporation.
* Copyright (C) 2008, 2005 Rusty Russell rusty@rustcorp.com.au
* Copyright (C) 2010 SUSE Linux Products GmbH
* Copyright (C) 2010 Tejun Heo <tj@kernel.org>
*
* This file is released under the GPLv2 and any later version.
*/
#include <li... | C | kernel/stop_machine.c | poondog/KANGAROO-kernel | gpl-2.0 | 13,267 | 491 | codeparrot/github-code |
e6f9c0923aab6fadd9421cb9f1af81c7bc587524faa96eb553f0821440062676 | <?php
/**
*
* Product table
*
* @package VirtueMart
* @subpackage Category
* @author jseros
* @link http://www.virtuemart.net
* @copyright Copyright (c) 2004 - 2010 VirtueMart Team. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* VirtueMart is free software. This version ... | PHP | tmp/install_56627787097ec/administrator/components/com_virtuemart/tables/categories.php | isengartz/food | gpl-2.0 | 6,942 | 254 | codeparrot/github-code |
87397b23157036a984bdeb01479e8fcb5c41c21aa13d05bc19d21c4f72eafd22 | /******************************************************************************
* Product: Adempiere ERP & CRM Smart Business Solution *
* Copyright (C) 1999-2006 ComPiere, Inc. All Rights Reserved. *
* This program is free software; you can redistribute it and/or modify it ... | Java | base/src/org/compiere/plaf/PlafRes_pt.java | erpcya/adempierePOS | gpl-2.0 | 6,341 | 134 | codeparrot/github-code |
0a8975605a962d375721799e498fe7bc7ee5c5a22db8806739fc45b2d975fb8c | /*
Unix SMB/CIFS implementation.
SMB torture tester
Copyright (C) Andrew Tridgell 1997-2003
Copyright (C) Jelmer Vernooij 2006
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation;... | C | source4/torture/rpc/rpc.c | Zentyal/samba | gpl-3.0 | 18,134 | 554 | codeparrot/github-code |
2ca0321c49ab55bd45422cded49c2e0f099c780516d6619cd262f4774560792a | /***************************************************************************
lj_coul.cpp
-------------------
W. Michael Brown (ORNL)
Class for acceleration of the lj/cut/coul/cut pair style.
__________________________________... | C++ | libs/lammps/lib/gpu/lal_lj_coul.cpp | ovilab/atomify-lammps | gpl-3.0 | 5,649 | 167 | codeparrot/github-code |
8cda23e436e5cc74cd6f4b6925717b948bca4f6208fd0757b1241b6e683968e6 | // 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.Threading.Tasks;
using Microsoft.CodeAnalysis.Text;
using Roslyn.Test.Utilities;
using Xunit;
namespace Microsoft.CodeAnalysis.Editor.CSharp.Un... | C# | src/EditorFeatures/CSharpTest2/Recommendations/ElifKeywordRecommenderTests.cs | mmitche/roslyn | apache-2.0 | 2,187 | 72 | codeparrot/github-code |
37e896219ed6359e7bfcc2d1ac5dbed90609c0f25c3793be8094474494d20c01 | /*
* 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 | server/src/main/java/org/elasticsearch/index/shard/ShardStateMetaData.java | scottsom/elasticsearch | apache-2.0 | 6,230 | 149 | codeparrot/github-code |
28741e5b32544197787557e6f6684acd54628b3334f4c2f7ce277e963943b6f6 | package io.dropwizard.hibernate;
import org.glassfish.jersey.server.internal.process.MappableException;
import org.glassfish.jersey.server.model.ResourceMethod;
import org.glassfish.jersey.server.monitoring.ApplicationEvent;
import org.glassfish.jersey.server.monitoring.ApplicationEventListener;
import org.glassfish.j... | Java | dropwizard-hibernate/src/main/java/io/dropwizard/hibernate/UnitOfWorkApplicationListener.java | shawnsmith/dropwizard | apache-2.0 | 4,481 | 111 | codeparrot/github-code |
7c2f0ac18f2e3ff88f1f7a57229a60a3f2b92601f8320bead1151210d333e3d1 | /*
* Copyright 2000-2009 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 | plugins/ant/src/com/intellij/lang/ant/config/actions/RemoveBuildFileAction.java | jwren/intellij-community | apache-2.0 | 1,281 | 37 | codeparrot/github-code |
7ca79b1196409945af0fc17e7abda93757040b1861f668f508b154823c06b59e | /**
*
* Copyright 2003-2007 Jive Software.
*
* 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 o... | Java | src/org/jivesoftware/smackx/vcardtemp/provider/VCardProvider.java | Soo000/SooChat | apache-2.0 | 10,835 | 347 | codeparrot/github-code |
4cea74a61cb60c96e2ddc2c9479c86c5e186df866c84a07d2c94e0e36bca17c0 | // Copyright 2009 the Sputnik authors. All rights reserved.
/**
* TypeError is subclass of Error from instanceof operator point of view
*
* @path ch11/11.8/11.8.6/S11.8.6_A5_T2.js
* @description Checking TypeError case
*/
var __t__err = new TypeError;
//CHECK#1
if (!(__t__err instanceof Error)) {
$ERROR('#1: T... | JavaScript | Jint.Tests.Ecma/TestCases/ch11/11.8/11.8.6/S11.8.6_A5_T2.js | sebastienros/jint | bsd-2-clause | 921 | 35 | codeparrot/github-code |
f741ab00e8379471fe5f48e9c27aac09aebec81d98b2af4d9db05fbfcad93e47 | #pragma once
#ifndef VERSION_CONTROL_XML_READER_H
#define VERSION_CONTROL_XML_READER_H
#include <QXmlStreamReader>
#include <QList>
//-----------------------------------------------------------------------------
struct SVNPartialLockInfo {
QString m_fileName;
QString m_userName;
QString m_hostName;
unsigned... | C | toonz/sources/toonz/versioncontrolxmlreader.h | tomosu/opentoonz | bsd-3-clause | 4,618 | 209 | codeparrot/github-code |
1b58b2c21aaf5fcff9cd596cca9288106f1d8217e5879872e22f014fc6f54086 | /*
This file is part of the GSM3 communications library for Arduino
-- Multi-transport communications platform
-- Fully asynchronous
-- Includes code for the Arduino-Telefonica GSM/GPRS Shield V1
-- Voice calls
-- SMS
-- TCP/IP connections
-- HTTP basic clients
This library has been developed by Telefónica Digital - P... | C++ | thirdparty/arduino/libraries/GSM/src/GSM3SoftSerial.cpp | Open-farm/openfarm-core-avr | mit | 12,541 | 525 | codeparrot/github-code |
0f57500275a4e85394b58c12e0ecbdf3db61cbe9dc89433b71357c660e8262b2 | <?php
/*
* This file is part of the Sylius package.
*
* (c) Paweł Jędrzejewski
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Sylius\Bundle\CoreBundle\Installer\Setup;
use Sylius\Component\Currency\Model\CurrencyInter... | PHP | src/Sylius/Bundle/CoreBundle/Installer/Setup/CurrencySetup.php | DorianCMore/Sylius | mit | 3,464 | 119 | codeparrot/github-code |
a7a9059db8d23a1abf2f483f8c3e8167241c1e8d1a47daa088c14457e023abf2 | // license:BSD-3-Clause
// copyright-holders:Nigel Barnes
/**********************************************************************
Joystick
**********************************************************************/
#include "emu.h"
#include "joystick.h"
//************************************************************... | C++ | src/devices/bus/bbc/joyport/joystick.cpp | johnparker007/mame | gpl-2.0 | 2,519 | 85 | codeparrot/github-code |
d6a6c1ed4922859ccf69313ddba869c23086218d1a70987b5a58319515802a0d | /*
* INET An implementation of the TCP/IP protocol suite for the LINUX
* operating system. INET is implemented using the BSD Socket
* interface as the means of communication with the user level.
*
* Routing netlink socket interface: protocol independent part.
*
* Authors: Alexey Kuznetsov, <kuznet@ms2.inr.... | C | net/core/rtnetlink.c | CryToCry96/android_kernel_mt6572 | gpl-2.0 | 52,263 | 2,151 | codeparrot/github-code |
e8cd347a3b23189bb6c70a442e8ffe1b69555d8d2b9e52b7d8e74a02f363ae57 | /*
* Fuel gauge driver for Maxim 17042 / 8966 / 8997
* Note that Maxim 8966 and 8997 are mfd and this is its subdevice.
*
* Copyright (C) 2011 Samsung Electronics
* MyungJoo Ham <myungjoo.ham@samsung.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU G... | C | drivers/power/supply/max17042_battery.c | zhiyisun/linux | gpl-2.0 | 32,548 | 1,201 | codeparrot/github-code |
61733bd7b60d2a29eb557f8fd9d801a3373de725b24a1c010bc5b99cffde93eb | #pragma once
#include "MediaScrollbar.h"
#include "MediaListView.h"
#include "../../Model/MediaModel.h"
class MediaCenterView :
public ATL::CWindowImpl<MediaCenterView>,
public MediaScrollbar,
public MediaListView
{
public:
DECLARE_WND_CLASS(L"SPlayer_MediaCenter")
BEGIN_MSG_MAP(MediaCenterVi... | C | src/apps/mplayerc/UserInterface/Renderer/MediaCenterView.h | chennqqi/splayer | gpl-2.0 | 1,535 | 48 | codeparrot/github-code |
620b56dec522f2964a1228e7b04345c5c06fe7cdaee787a61b2b3f9116dc06f1 | /*
* INET An implementation of the TCP/IP protocol suite for the LINUX
* operating system. INET is implemented using the BSD Socket
* interface as the means of communication with the user level.
*
* Definitions for the IP protocol.
*
* Version: @(#)ip.h 1.0.2 04/28/93
*
* Authors: Fred N. van Kempen, <wa... | C | toolchains/gcc-linaro-7.3.1-2018.05-x86_64_arm-linux-gnueabihf/arm-linux-gnueabihf/libc/usr/include/linux/ip.h | BPI-SINOVOIP/BPI-Mainline-kernel | gpl-2.0 | 4,635 | 176 | codeparrot/github-code |
9af2b5a5eddbb803dbe4c204697af50355bbea48fb4837bee53a3e8d4e521ef5 | /**
* @author mrdoob / http://mrdoob.com/
*/
THREE.WebGLExtensions = function ( gl ) {
var extensions = {};
this.get = function ( name ) {
if ( extensions[ name ] !== undefined ) {
return extensions[ name ];
}
var extension;
switch ( name ) {
case 'WEBGL_depth_texture':
extension = gl.getEx... | JavaScript | static/three.js/src/renderers/webgl/WebGLExtensions.js | reliableJARED/WebGL | gpl-3.0 | 1,496 | 59 | codeparrot/github-code |
734578959c2da94fb62901e9302c538b03408e252204bb2e7f42e7ea4e8ebf52 | //{namespace name=backend/application/main}
//{block name="backend/application/Shopware.form.field.Media"}
Ext.define('Shopware.form.field.Media', {
extend: 'Ext.form.FieldContainer',
/**
* List of short aliases for class names. Most useful for defining xtypes for widgets
* @type { String }
*/
... | JavaScript | themes/Backend/ExtJs/backend/base/application/Shopware.form.field.Media.js | megadruck/Shopware-Test1 | agpl-3.0 | 17,150 | 590 | codeparrot/github-code |
3daa7a4e378eb12e9fa200a4b9a70e03446d45942726ccfe20972bd859659c54 | #include "mupdf/fitz.h"
#define RLE_THRESHOLD 256
fz_glyph *
fz_keep_glyph(fz_context *ctx, fz_glyph *glyph)
{
return (fz_glyph *)fz_keep_storable(ctx, &glyph->storable);
}
void
fz_drop_glyph(fz_context *ctx, fz_glyph *glyph)
{
fz_drop_storable(ctx, &glyph->storable);
}
static void
fz_drop_glyph_imp(fz_context *c... | C | source/fitz/glyph.c | cgogolin/penandpdf | agpl-3.0 | 8,973 | 441 | codeparrot/github-code |
3c20739de6420a8d7c42783fabf6b08a5de3ed45a04192ed07cfb4848122df31 | <?php
/*
*
* ____ _ _ __ __ _ __ __ ____
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
* |_| \___/ \___... | PHP | src/pocketmine/event/player/PlayerInteractEvent.php | xpyctum/PocketMine-MP | lgpl-3.0 | 2,382 | 107 | codeparrot/github-code |
ef9e27531d46bf2614cba8c65ebfb3c673c2818a41229dc0c0ed3b7080255d8d | /*
* 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 | nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/controller/SnippetManager.java | mcgilman/nifi | apache-2.0 | 3,950 | 99 | codeparrot/github-code |
e9e0637d18d2113f24332455b863374930d07a29d1c6ea94843703872d16e43a | //
// Copyright (c) 2002-2010 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// Program.h: Defines the gl::Program class. Implements GL program objects
// and related functionality. [OpenGL ES 2.0.24] section 2.... | C | webkit/Source/ThirdParty/ANGLE/src/libGLESv2/Program.h | mogoweb/webkit_for_android5.1 | apache-2.0 | 7,838 | 229 | codeparrot/github-code |
fc5cb94ebc8f13e293ba33d054d6cf594126064ef60e736fa1bbce4dfea9869e | /**
* 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 | camel-core/src/main/java/org/apache/camel/model/config/StreamResequencerConfig.java | onders86/camel | apache-2.0 | 7,503 | 210 | codeparrot/github-code |
77de8f270879aa422288be6ee1b6508ea76ebb3f0688f5634b81485e5ae76443 | /**
* WinPR: Windows Portable Runtime
* WinPR Logger
*
* Copyright 2014 Armin Novak <armin.novak@thincast.com>
*
* 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.apa... | C | winpr/libwinpr/utils/wlog/CallbackAppender.c | clivest/FreeRDP | apache-2.0 | 3,477 | 152 | codeparrot/github-code |
c012fd6709e5e727d2f9e132306d76652754b5e4cabee08562dc24820d5b0f04 | /*
* Copyright 2015 Open Networking Laboratory
*
* 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 la... | Java | core/api/src/main/java/org/onosproject/net/group/DefaultGroupDescription.java | maxkondr/onos-porta | apache-2.0 | 6,391 | 205 | codeparrot/github-code |
21e5f0dfb1ccca2c9a277ba01ff6587611b05f1e5e027968307eeb1386be8629 | /*
* Copyright 2000-2016 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 | plugins/tasks/tasks-api/src/com/intellij/tasks/config/TaskSettings.java | hurricup/intellij-community | apache-2.0 | 1,544 | 52 | codeparrot/github-code |
4b6f49ad840740507bd5c0121c52a1ea98ad2daa44350067dc8b0a11d1e6d90d | /*
* Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you 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/li... | JavaScript | components/device-types/arduino-plugin/org.wso2.carbon.device.mgt.iot.arduino.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.arduino.analytics-view/public/js/arduino.js | Supun94/carbon-device-mgt-plugins | apache-2.0 | 5,411 | 181 | codeparrot/github-code |
984a8d6bd5cc94b16630b72b28572d319e70a7fc6266ea1cdd59e93716ca0dd6 | package com.commonsware.empublite;
import android.annotation.SuppressLint;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.webkit.WebViewFragment;
public class SimpleContentFragment extends WebViewFragment {
private static final S... | Java | EmPubLite-AndroidStudio/T9-Fragments/EmPubLite/app/src/main/java/com/commonsware/empublite/SimpleContentFragment.java | alexsh/cw-omnibus | apache-2.0 | 1,324 | 50 | codeparrot/github-code |
1251033d8cfab1f1b4ea329c8b3ba1c354c6fefa565fc9ee4161e0d4cdb1701f | /*
Copyright 2017 The Kubernetes Authors.
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 writing, ... | GO | pkg/kubelet/certificate/kubelet.go | abgworrall/kubernetes | apache-2.0 | 7,058 | 200 | codeparrot/github-code |
5bce5895e96849beb3f70f0c0081a0842567d0976e0403251c279845a85352ea | /*
* (c) 2001 Fabrice Bellard
* 2007 Marc Hoffman <marc.hoffman@analog.com>
*
* 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 ... | C | third_party/ffmpeg/libavcodec/dct-test.c | guorendong/iridium-browser-ubuntu | bsd-3-clause | 14,313 | 519 | codeparrot/github-code |
2fabbbec49e7fd78734e803292f5d00e3e9d99dbd70edfa04daf680dd8dc5868 | /*****************************************************************************
Copyright (c) 2011, Intel Corp.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source cod... | C | lapack-netlib/lapacke/src/lapacke_ssbgvd.c | hpanderson/OpenBLAS | bsd-3-clause | 4,066 | 95 | codeparrot/github-code |
4e8f15042753471508a9754ab4a741726712acb1d7e5ac7457d25394d0bc7bf5 | // 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 "ios/chrome/browser/application_context_impl.h"
#include "base/logging.h"
#include "components/translate/core/browser/translate_download_manager... | C++ | ios/chrome/browser/application_context_impl.cc | Jonekee/chromium.src | bsd-3-clause | 1,484 | 44 | codeparrot/github-code |
046f290862983c938c935500066b0163e8946e7da98a6dabfa02f74ed03f1cf4 | using System.Collections.Generic;
using Orchard.ContentManagement;
using Orchard.ContentManagement.MetaData;
using Orchard.ContentManagement.MetaData.Builders;
using Orchard.ContentManagement.MetaData.Models;
using Orchard.ContentManagement.ViewModels;
using Orchard.Localization;
namespace Orchard.AntiSpam.Settings {... | C# | src/Orchard.Web/Modules/Orchard.AntiSpam/Settings/SpamFilterPartSettingsEvents.cs | amandaharlin/cebdcore | bsd-3-clause | 1,473 | 39 | codeparrot/github-code |
6e248798f2f3b323e5ec055e4a0b16d8b0a13e366b9ebfec111c3023a4ae463d | # -*- coding: utf-8 -*-
"""Beautiful Soup bonus library: Unicode, Dammit
This library converts a bytestream to Unicode through any means
necessary. It is heavily based on code from Mark Pilgrim's Universal
Feed Parser. It works best on XML and HTML, but it does not rewrite the
XML or HTML to reflect a new encoding; th... | Python | venvdir/lib/python3.4/site-packages/bs4/dammit.py | znoland3/zachdemo | mit | 29,632 | 841 | codeparrot/github-code |
5522dffc6223f85279c076995593b04de87bddebe67c242f8f008f43c5dca697 | /*
* The MIT License
*
* Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, Seiji Sogabe, Tom Huybrechts
*
* 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 re... | Java | core/src/main/java/hudson/model/FileParameterDefinition.java | aldaris/jenkins | mit | 4,505 | 123 | codeparrot/github-code |
d08638dd3199e09d8e01e7b431d41795df7816355d744b4385c67da142f80cc2 | /* SPDX-License-Identifier: BSD-3-Clause-Clear */
/*
* Copyright (c) 2018-2019 The Linux Foundation. All rights reserved.
*/
#ifndef ATH11K_DP_RX_H
#define ATH11K_DP_RX_H
#include "core.h"
#include "rx_desc.h"
#include "debug.h"
#define DP_MAX_NWIFI_HDR_LEN 30
#define DP_RX_MPDU_ERR_FCS BIT(0)
#define DP_RX_MPDU... | C | drivers/net/wireless/ath/ath11k/dp_rx.h | chenshuo/linux-study | gpl-2.0 | 3,539 | 95 | codeparrot/github-code |
3ab648ea836b0d2152b0370ee5d22920793f78d1caae81501a7d02ab75bfc930 | /* Credentials management - see Documentation/security/credentials.txt
*
* Copyright (C) 2008 Red Hat, Inc. All Rights Reserved.
* Written by David Howells (dhowells@redhat.com)
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public Licence
* as pu... | C | include/linux/cred.h | wolverine2k/htc7x30-3.0 | gpl-2.0 | 11,965 | 392 | codeparrot/github-code |
31a89f4fdcc8f0a3e206dd8969e8dd43c942982724add3841847329d8dbdcaf0 | /* -*- c++ -*- ----------------------------------------------------------
LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
http://lammps.sandia.gov, Sandia National Laboratories
Steve Plimpton, sjplimp@sandia.gov
Copyright (2003) Sandia Corporation. Under the terms of Contract
DE-AC04... | C | src/USER-OMP/npair_omp.h | quang-ha/lammps | gpl-2.0 | 2,109 | 69 | codeparrot/github-code |
fada6fa987e7077651aefebe89f155f896613ecd0bd8d408e41a7cb675109f77 | #ifndef __ASM_MPSPEC_H
#define __ASM_MPSPEC_H
#include <linux/cpumask.h>
#include <asm/mpspec_def.h>
#include <mach_mpspec.h>
extern int mp_bus_id_to_type [MAX_MP_BUSSES];
extern int mp_bus_id_to_node [MAX_MP_BUSSES];
extern int mp_bus_id_to_local [MAX_MP_BUSSES];
extern int quad_local_to_mp_bus_id [NR_CPUS/4][4];
ex... | C | toolchain_mipsel/include/asm-i386/mpspec.h | cipibad/openrtd_2012 | gpl-2.0 | 3,069 | 84 | codeparrot/github-code |
e1ef45315867a96e50df44bd578077b467501721167dd9c58a5565d8a7245065 | /*
* Copyright (c) 2013-2014, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distribu... | C | drivers/scsi/ufs/ufs_quirks.c | davidmueller13/android_kernel_samsung_zeroflteskt | gpl-2.0 | 4,713 | 143 | codeparrot/github-code |
84bbe450b82c97bc800a2b7178f35ba14c28992ff40116e232eba37f61c61120 | /* { dg-do run { target { aarch64_sve_hw } } } */
/* { dg-options "-O2 -ftree-vectorize -ffast-math" } */
#include "reduc_1.c"
#define NUM_ELEMS(TYPE) (73 + sizeof (TYPE))
#define INIT_VECTOR(TYPE) \
TYPE a[NUM_ELEMS (TYPE) + 1]; \
for (int i = 0; i < NUM_ELEMS (TYPE) + 1; i++) \
{ \
a[i] =... | C | gcc/testsuite/gcc.target/aarch64/sve/reduc_1_run.c | Gurgel100/gcc | gpl-2.0 | 1,511 | 57 | codeparrot/github-code |
0aa2a43443cf48e997a4dfed88d6d1c0b31201bb82f6dd98005abe81b2648693 | <?php
/*********************************************************************
class.misc.php
Misc collection of useful generic helper functions.
Peter Rotich <peter@osticket.com>
Copyright (c) 2006-2013 osTicket
http://www.osticket.com
Released under the GNU General Public License WITHOUT ANY... | PHP | include/class.misc.php | pauluz/osTicket-1.8 | gpl-2.0 | 5,112 | 170 | codeparrot/github-code |
082b3b2d4fc4fa83ee0f7eb620dd0bd70a52c0cc567da25665f9ec6c1025960f | /*
* nl80211 userspace tool
*
* Copyright 2007, 2008 Johannes Berg <johannes@sipsolutions.net>
*/
#include <errno.h>
#include <stdio.h>
#include <string.h>
#include <net/if.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdbool.h>
#include <netlink/genl/genl.h>
#i... | C | utilities/iw/iw.c | seemoo-lab/nexmon | gpl-3.0 | 11,615 | 568 | codeparrot/github-code |
9d9668e978b5c67813b5afbf373ffadb73da8182f04f03a37bdacc3a2b556fa2 | /*
fatdir.c
Functions used by the newlib disc stubs to interface with
this library
Copyright (c) 2006 Michael "Chishm" Chisholm
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 mus... | C | wii/libogc/libfat/fatdir.c | spec-chum/RetroArch | gpl-3.0 | 17,804 | 613 | codeparrot/github-code |
7eece0c76ec80a08ecde561c371ef7f79ee19b33a0207fa51701c10befcc2555 | /*
ChibiOS/RT - Copyright (C) 2006,2007,2008,2009,2010,
2011,2012,2013 Giovanni Di Sirio.
This file is part of ChibiOS/RT.
ChibiOS/RT 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 Softw... | C | os/ports/GCC/ARMCMx/SAM4L/vectors.c | kvzhao/Embedded-ROS | gpl-3.0 | 15,162 | 307 | codeparrot/github-code |
d9e59a9aaeb5b140d937739b2bb62bdd0e7dc3051b38f323c9c8c512e092b859 | require 'fileutils'
module MiqConfigSssdLdap
class ConfigureApplianceSettingsError < StandardError; end
class ConfigureApplianceSettings
attr_reader :initial_settings
def initialize(initial_settings)
@initial_settings = initial_settings
end
def configure
LOGGER.debug("Invoked #{self.... | Ruby | tools/miq_config_sssd_ldap/configure_appliance_settings.rb | aufi/manageiq | apache-2.0 | 1,202 | 38 | codeparrot/github-code |
ded7983fccd38e1abf66150f467c2ab4b231c5b47c388a1f522f9fbf1f1585d9 | /*
* 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 | src/java/org/apache/cassandra/db/compaction/ActiveCompactions.java | jeromatron/cassandra | apache-2.0 | 2,708 | 74 | codeparrot/github-code |
0725cf42517612c31ada3d2fbdb9663a250291251901337cebf491b4863836fc | /*
* 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 | exec/java-exec/src/test/java/org/apache/drill/TestMergeFilterPlan.java | johnnywale/drill | apache-2.0 | 2,800 | 72 | codeparrot/github-code |
bdb9a81953b032546c47f56648dabd52d64030a9aa365d8b7a0f3d27bdd6f137 | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
namespace Microsoft.CodeAnalysis.Editor
{
internal static class PredefinedCompletionProviderNames
{
/// <summary>
/// Completion prov... | C# | src/EditorFeatures/Core/Extensibility/Completion/PredefinedCompletionProviderNames.cs | paladique/roslyn | apache-2.0 | 1,427 | 38 | codeparrot/github-code |
0dbbee697b31f3813d94eb9e5e087cdadd0c06dbbf10e8ff949406874b6a0317 | <?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2017 http://thinkphp.cn All rights reserved.
// +-------------------------------------------------... | PHP | thinkphp/library/think/cache/driver/Memcached.php | boystark/tpblog | apache-2.0 | 5,237 | 185 | codeparrot/github-code |
43e7fc381b5702da73e9bee8682eac45f7d22081e2b9429a018216cc86386097 | //===- RegionInfo.h - SESE region analysis ----------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | C | llvm/include/llvm/Analysis/RegionInfo.h | google/llvm-propeller | apache-2.0 | 36,036 | 1,029 | codeparrot/github-code |
aac3f32f7293e82028c08a196dabdfbce74b7e1fee308fb823ad9f5119089302 | /*
* Copyright 2014-present Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... | Java | src/com/facebook/buck/step/fs/TouchStep.java | bocon13/buck | apache-2.0 | 1,902 | 76 | codeparrot/github-code |
e75884c29d6ceef757cc1a6ed6afe744b2c53b539d2c2855abcbd061d795bc78 | /*
* 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/index/query/GeoDistanceQueryBuilder.java | weipinghe/elasticsearch | apache-2.0 | 12,106 | 302 | codeparrot/github-code |
f96abafcab29733acb6ff64716024c41fb1bdf8e304e10220b4a489dcd4a36bc | /*
* Copyright 2015-present Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... | Java | test/com/facebook/buck/io/TempDirectoryCreatorTest.java | Learn-Android-app/buck | apache-2.0 | 1,793 | 56 | codeparrot/github-code |
08e6873cdf13f9e7291d98b0ad08fb3398c9b4ba2a57e3a369ff529de5221a90 | /**
* Copyright (c) 2008-2011 The Open Source Geospatial Foundation
*
* Published under the BSD license.
* See http://svn.geoext.org/core/trunk/geoext/license.txt for the full text
* of the license.
*/
/**
* @include GeoExt/widgets/MapPanel.js
* @include GeoExt/widgets/tree/LayerNode.js
* @include GeoExt/wid... | JavaScript | static/scripts/gis/GeoExt/lib/GeoExt/widgets/tree/LayerLoader.js | sinsai/Sahana_eden | mit | 11,526 | 328 | codeparrot/github-code |
cd9fbbb716c14061215f34181d7a495b5a99d8e05722665d5cdf241a7692e064 | /* ----------------------------------------------------------------------
* Copyright (C) 2010-2014 ARM Limited. All rights reserved.
*
* $Date: 31. July 2014
* $Revision: V1.4.4
*
* Project: CMSIS DSP Library
* Title: arm_mat_mult_f32.c
*
* Description: Floating-point matr... | C | stm32f3/simple/Libraries/CMSIS/DSP_Lib/Source/MatrixFunctions/arm_mat_mult_f32.c | bitmarker/STM32F3_IAR_Template | mit | 9,585 | 287 | codeparrot/github-code |
098cb24a10944bfaf31f70a0406bb732751f8eec8fb98bd77b8c1c3179f193ac | #ifndef _QEMU_DISAS_H
#define _QEMU_DISAS_H
#include "qemu-common.h"
#ifdef NEED_CPU_H
/* Disassemble this for me please... (debugging). */
void disas(FILE *out, void *code, unsigned long size);
void target_disas(FILE *out, target_ulong code, target_ulong size, int flags);
/* The usual mess... FIXME: Remove this con... | C | qemu-shack-ibtc/disas.h | silverneko/HWs | mit | 1,277 | 46 | codeparrot/github-code |
ae40b45f5d0904f85ada2b5dc8de6e74ec2d3d92bf862a5ec06900e9c8c8ce35 | /* Copyright (c) 2006-2013 by OpenLayers Contributors (see authors.txt for
* full list of contributors). Published under the 2-clause BSD license.
* See license.txt in the OpenLayers distribution or repository for the
* full text of the license. */
/**
* @requires OpenLayers/Renderer.js
*/
/**
* Class: OpenLaye... | JavaScript | trunk/php/openlayers-master/lib/OpenLayers/Renderer/Canvas.js | pjhooker/monferratopaesaggi | mit | 33,642 | 919 | codeparrot/github-code |
8448976e600791e6d65aa533781dd0f3ca91306a093c567c31360721f2edd686 | from os import listdir, open as os_open, close as os_close, write as os_write, O_RDWR, O_NONBLOCK
from fcntl import ioctl
from boxbranding import getBoxType, getBrandOEM
import struct
from config import config, ConfigSubsection, ConfigInteger, ConfigYesNo, ConfigText, ConfigSlider
from Tools.Directories import pathExi... | Python | lib/python/Components/InputDevice.py | devclone/enigma2-9f38fd6 | gpl-2.0 | 9,159 | 242 | codeparrot/github-code |
6e531ca285aec3541042416b9f24bb132a36a4c4894c24697654c4ff8c8f75b6 | /* ServiceNotFoundException.java -- Thrown by invalid values.
Copyright (C) 2006 Free Software Foundation, Inc.
This file is part of GNU Classpath.
GNU Classpath is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation... | Java | src/classpath/javax/management/ServiceNotFoundException.java | taciano-perez/JamVM-PH | gpl-2.0 | 2,498 | 76 | codeparrot/github-code |
6e2061ba7a88bd3b52d7a939cb5d52fbb10578314dfcaa48759cf6c8f3bf10ae | <?php
/**
* @package Joomla.Site
* @subpackage com_contact
*
* @copyright Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
JHtml::_('behavior.core');
?>
<form action="<?php ... | PHP | components/com_contact/views/category/tmpl/default_items.php | shamsbd71/joomla-cms | gpl-2.0 | 5,575 | 139 | codeparrot/github-code |
b0cab1a3624df232957289c5440f0aedd9f180596c97b3297c4f26e22ff75b0b | #include "stdafx.h"
#include "WinMiscUtil.h"
#include "WinResUtil.h"
#include "resource.h"
#include "../NLS.h"
#include "VBA.h"
#include "Reg.h"
#include "../common/SystemGlobals.h"
#include "../common/movie.h"
#include <direct.h>
#include "Dialogs/GSACodeSelect.h"
#include "../gba/GBACheats.h"
#include "... | C++ | src/win32/WinMiscUtil.cpp | LingYunZhi/vba-rerecording | gpl-2.0 | 12,011 | 499 | codeparrot/github-code |
5c95c60242efa0336f01e0256d52f5c36f83cd03265b9df4852e474d9163975b | /*
* Copyright (C) 2013, Intel Corporation
* Copyright (C) 2015, Bin Meng <bmeng.cn@gmail.com>
*
* Ported from Intel released Quark UEFI BIOS
* QuarkSocPkg/QuarkNorthCluster/MemoryInit/Pei
*
* SPDX-License-Identifier: Intel
*/
#include <common.h>
#include <asm/arch/mrc.h>
#include <asm/arch/msg_port.h>
#includ... | C | u-boot15/arch/x86/cpu/quark/hte.c | mdxy2010/forlinux-ok6410 | gpl-2.0 | 11,583 | 397 | codeparrot/github-code |
c121b6f7146632b7636165d840be9126acb67af5c7d013ca0597e8e5d3851126 | /*
* File: arch/arm/plat-omap/fb.c
*
* Framebuffer device registration for TI OMAP platforms
*
* Copyright (C) 2006 Nokia Corporation
* Author: Imre Deak <imre.deak@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 publ... | C | arch/arm/plat-omap_bak/fb.c | xiaowei942/kernel-11 | gpl-2.0 | 9,060 | 345 | codeparrot/github-code |
2ed5c1d6d2855fc6fa3b0490b8a9f7b0282622fce37cf207aa2b4e57e759f798 | /*
* 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-yammer/src/main/java/org/apache/camel/component/yammer/model/EmailAddress.java | DariusX/camel | apache-2.0 | 1,323 | 44 | codeparrot/github-code |
9515958e08b65a9976c62908b6e58f0bf7d26e4f84470dc97b5ebc8c04680771 | # Copyright 2016 The TensorFlow Authors. 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.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | Python | tensorflow/contrib/learn/python/learn/utils/checkpoints.py | nanditav/15712-TensorFlow | apache-2.0 | 2,001 | 52 | codeparrot/github-code |
38ba3f711ad91ef26271d137edaac10876950da770b7e6691cd94ce0442ab636 | /**
* (C) 1999-2003 Lars Knoll (knoll@kde.org)
* (C) 2002-2003 Dirk Mueller (mueller@kde.org)
* Copyright (C) 2002, 2005, 2006, 2012 Apple Computer, Inc.
*
* 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 F... | C++ | third_party/WebKit/Source/core/css/CSSRuleList.cpp | zero-rp/miniblink49 | apache-2.0 | 1,464 | 61 | codeparrot/github-code |
e7f12fdfcfa2043c5ff3d65e4bb6ce10a271c1bba97944524a6a01734cc421fa | /*
* Copyright (c) 2013-2018, Arm Limited and affiliates.
* SPDX-License-Identifier: Apache-2.0
*
* 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/... | C | features/nanostack/sal-stack-nanostack/source/Security/PANA/pana.h | kjbracey-arm/mbed | apache-2.0 | 3,558 | 81 | codeparrot/github-code |
41481796af06858c16eb7ea86c6e6684709ed9ce546d881ddf23bd5fefad436e | /*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/
package org.elasticsearch.xpack.security.authc.ldap.support;
impor... | Java | x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/authc/ldap/support/LdapMetadataResolverTests.java | GlenRSmith/elasticsearch | apache-2.0 | 4,776 | 102 | codeparrot/github-code |
a1a4460d288b244f462bae1aa4cf90e34951ec25885c518bf73f49f2a6f41b28 | /*
* Copyright (C) 2008 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | Java | src/test/java/com/google/gson/InnerClassExclusionStrategyTest.java | MarlinL/Copy-Gson | apache-2.0 | 1,838 | 59 | codeparrot/github-code |
237ab74a44ac99a20a023be9c7b05ce2d8a251bcfdb14330663567cd8464c3d7 | /*
* Normalized hide address bar for iOS & Android
* (c) Scott Jehl, scottjehl.com
* MIT License
*/
(function( win ){
var doc = win.document;
// If there's a hash, or addEventListener is undefined, stop here
if( !location.hash && win.addEventListener ){
//scroll to 1
window.scrollTo( 0, 1 );
var scr... | JavaScript | app/assets/javascripts/libs/hide_addrbar.js | DevInSantos/devinsantos-events | mit | 1,018 | 38 | codeparrot/github-code |
600b8bd74e20ebdf08ab3bc3bea57f8326b186294afecbb978da71c6bb040593 | import {Component,OnInit} from '@angular/core';
import {Car} from '../../components/domain/car';
import {CarService} from '../../service/carservice';
import {SelectItem} from '../../../components/common/api';
@Component({
templateUrl: './datatablerowgroupdemo.html'
})
export class DataTableRowGroupDemo implements ... | TypeScript | src/app/showcase/components/datatable/datatablerowgroupdemo.ts | kojisaiki/primeng | mit | 991 | 38 | codeparrot/github-code |
29a93b322d718b6d1a59a5e356fcf358ef66c87cd9bd0a53b4e937b90d3f97c8 | /**
* Copyright (c) 2010-2016 by the respective copyright holders.
*
* 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
*/... | Java | bundles/binding/org.openhab.binding.plugwise/src/main/java/org/openhab/binding/plugwise/internal/PlugwiseBinding.java | lewie/openhab | epl-1.0 | 23,688 | 582 | codeparrot/github-code |
cca8ecc1a354f6001bc25c096cd227b0610c86dc5b944c38960b1c42e9b56621 | // SPDX-License-Identifier: GPL-2.0+
/*
* Common functions for in-kernel torture tests.
*
* Copyright (C) IBM Corporation, 2014
*
* Author: Paul E. McKenney <paulmck@linux.ibm.com>
* Based on kernel/rcu/torture.c.
*/
#define pr_fmt(fmt) fmt
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/ini... | C | kernel/torture.c | koct9i/linux | gpl-2.0 | 21,548 | 806 | codeparrot/github-code |
c72f1436f22e11471735dc1d67b9d2402b8d4552747cfe145a2e0941cc6b35e4 | /*
===========================================================================
Copyright (C) 1999 - 2005, Id Software, Inc.
Copyright (C) 2000 - 2013, Raven Software, Inc.
Copyright (C) 2001 - 2013, Activision, Inc.
Copyright (C) 2013 - 2015, OpenJK contributors
This file is part of the OpenJK source code.
OpenJK is ... | C++ | src/rd-vanilla/tr_light.cpp | cagelight/jaownt | gpl-2.0 | 11,849 | 435 | codeparrot/github-code |
3aba8ba6f8d5ec694b90036ae615f705f14a76be0f5218c4a8792d503a0a7ad2 | using System;
namespace Server.Items
{
public class BrokenCrystals : PeerlessKey
{
[Constructable]
public BrokenCrystals()
: base(0x2247)
{
this.Weight = 1;
this.Hue = 0x2B2;
}
public BrokenCrystals(Serial serial)
: base(s... | C# | Scripts/Services/Quests/Peerless System/Prism of Light/BrokenCrystals.cs | Jascen/UOSmart | gpl-2.0 | 975 | 48 | codeparrot/github-code |
c7d42f6afe4ec51a63afecfdf4febe2bb1d4633b75af1f4262aee5131d7137cd | /* Definition of `struct statvfs', information about a filesystem.
Copyright (C) 1998-2015 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as publi... | C | sysdeps/mach/hurd/bits/statvfs.h | wjflyhigh/glibc-2.21 | gpl-2.0 | 2,739 | 96 | codeparrot/github-code |
04bb94f441cffcb441faec3d724a8c136dd764e0ad06f23d01e53d4c2375be11 | /*
* Copyright 2012-2014 Freescale Semiconductor, Inc.
* Copyright (C) 2012 Marek Vasut <marex@denx.de>
* on behalf of DENX Software Engineering GmbH
*
* The code contained herein is licensed under the GNU General Public
* License. You may obtain a copy of the GNU General Public License
* Version 2 or later at t... | C | linux-3.10.17-imx/drivers/usb/chipidea/ci_hdrc_imx.c | xuhuashan/imx6q | gpl-2.0 | 14,096 | 559 | codeparrot/github-code |
09255c1da958a34ccc7ecdd5d6ccdd96ba8e8123672cc5f06674f147c37ad76d | // Copyright 2015 Dolphin Emulator Project
// Licensed under GPLv2+
// Refer to the license.txt file included.
#pragma once
#include <algorithm>
#include <string>
#include <wx/frame.h>
class GameListCtrl;
class wxCheckBox;
class wxChoice;
class wxListBox;
class wxNotebook;
class wxSpinCtrl;
class wxStaticText;
class... | C | Source/Core/DolphinWX/NetPlay/NetPlaySetupFrame.h | ligfx/dolphin | gpl-2.0 | 1,785 | 71 | codeparrot/github-code |
edef929ea83dd59f717e14686616653b49e012a315f5de7e71ae22d67cf0d73e | /*
* QEMU GRLIB IRQMP Emulator
*
* (Multiprocessor and extended interrupt not supported)
*
* Copyright (c) 2010-2011 AdaCore
*
* 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... | C | hw/grlib_irqmp.c | shuaiharry/QEMU | gpl-2.0 | 9,484 | 377 | codeparrot/github-code |
3bdc703e19e37570776f6cc06be8c12d5f11bc17d59faaba0ac7e964442f1976 | /**
* ag-grid - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v9.1.0
* @link http://www.ag-grid.com/
* @license MIT
*/
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto... | JavaScript | libs/aggrid/lib/rowModels/infinite/infiniteCache.js | twistedsymphony/vs_billboard_commander | gpl-3.0 | 15,971 | 359 | codeparrot/github-code |
4205417cc27cf2f5a6d312974251a14799fdac953d32aebe27dcec823ae75448 | package org.junit.internal;
import org.hamcrest.Description;
import org.hamcrest.Matcher;
import org.hamcrest.SelfDescribing;
import org.hamcrest.StringDescription;
/**
* An exception class used to implement <i>assumptions</i> (state in which a given test
* is meaningful and should or should not be executed). A tes... | Java | third_party/lcm/test/java/junit-4.11/org/junit/internal/AssumptionViolatedException.java | cheshirekow/codebase | gpl-3.0 | 2,651 | 87 | codeparrot/github-code |
d2065c9a5284282ba302e20c532d33d2e3aa7f0609cc4a8f9b2150bbbc26f0ac | /*
* 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 | modules/reindex/src/main/java/org/elasticsearch/index/reindex/RestDeleteByQueryAction.java | pozhidaevak/elasticsearch | apache-2.0 | 2,638 | 69 | codeparrot/github-code |
c8f098bbabd516eca38a8e5e34fda306f1dc757d8b1526794c0a4f7d69983f1f | /**
* 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 | tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/model/DataFormatOptionModel.java | jmandawg/camel | apache-2.0 | 2,831 | 111 | codeparrot/github-code |
0720e6c4d8f751b28a38de42bf599c6b0b0116b74ec2abee2b3c22bba5adb03e | /*
* Copyright 2012 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 "SkOffsetImageFilter.h"
#include "SkBitmap.h"
#include "SkMatrix.h"
#include "SkFlattenableBuffers.h"
bool SkOffsetImageFilter::onFilterImage(Pro... | C++ | src/effects/SkOffsetImageFilter.cpp | AOKP/external_skia | bsd-3-clause | 1,626 | 54 | codeparrot/github-code |
c8dd1d65212b73988265b1500d10fc419519567c14c4c9e6db972f26b37423a1 | /*
* Atomic operations that C can't guarantee us. Useful for
* resource counting etc.
*
* But use these as seldom as possible since they are slower than
* regular operations.
*
* Copyright (C) 2004-2006 Atmel Corporation
*
* This program is free software; you can redistribute it and/or modify
* it under the ... | C | oss/linux/linux-4.7/arch/avr32/include/asm/cmpxchg.h | geminy/aidear | gpl-3.0 | 2,870 | 116 | codeparrot/github-code |
0940eb8b41823a386461cc0ab6ec79cc8dacd2fc6fe7a3570470c45a0af2e121 | #ifndef __INC_DT2_COMMON_H
#define __INC_DT2_COMMON_H
#define ATAG_MV_UBOOT 0x41000403
struct tag_mv_uboot {
u32 uboot_version;
u32 tclk;
u32 sysclk;
u32 isUsbHost;
u32 overEthAddr;
u8 dt2_eeprom[256];
};
#define DT2_EEPROM_ADDR 0x50
#define DT2_EEPROM_OFFSET 0
#define DT2_EEPROM_LENGTH 256
#define DT2... | C | trunk/target/linux/orion/files/arch/arm/mach-orion5x/dt2-common.h | garyvan/openwrt | gpl-2.0 | 2,297 | 83 | codeparrot/github-code |
e0fda17207e3da97588b06b8328634684e918ff237f2ec0950cf8d22a4930c4c |
import * as createError from 'http-errors';
import * as express from 'express';
var app = express();
declare global {
namespace Express {
export interface Request {
user?: any
}
}
}
app.use(function (req, res, next) {
if (!req.user) return next(createError(401, 'Please login ... | TypeScript | types/http-errors/http-errors-tests.ts | smrq/DefinitelyTyped | mit | 2,308 | 87 | codeparrot/github-code |
d6579a45da44e3cc41165d27b04691e293bbd2ea24989d008e544e28cebda777 | // Boost.Bimap
//
// Copyright (c) 2006-2007 Matias Capeletto
//
// 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)
/// \file container_adaptor/sequence_container_adaptor.hpp
/// \brief Container adaptor to build a... | C++ | vegastrike/boost/1_35/boost/bimap/container_adaptor/sequence_container_adaptor.hpp | Ezeer/VegaStrike_win32FR | mit | 10,563 | 356 | codeparrot/github-code |
cb4672c59b1efc399003928fd55eee80eef791d2ca04f09af4812890d45f4b5d | /**
* Copyright (c) 2010-2016, 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.digitalstrom/src/main/java/org/openhab/binding/digitalstrom/internal/client/entity/impl/JSONCachedMeteringValueImpl.java | sedstef/openhab | epl-1.0 | 2,452 | 72 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.