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
a11a2f09f7152bc196c933ac97ee489d41c00b8d60694efde870e15ffada739b
#include <errno.h> #include <stdlib.h> #include <string.h> #include <assert.h> #include "util.h" // for log() #include "pqueue.h" #ifdef DEBUG_PQUEUE #define DEBUG_ON 1 #else #define DEBUG_ON 0 #endif #define DEBUG_CMD(_a) if (DEBUG_ON) { _a } #define MIN_CAPACITY 128 /* min allocated buffer for a packet */ stati...
C
user/pptp/pqueue.c
nmacs/lm3s-uclinux
gpl-2.0
5,852
235
codeparrot/github-code
d759eb37377f16b6a1b882fa8701bcdb97f92d598558bc21b30aa3e7733ad6ce
#include "msm_camera_vid_dsm.h" /* buffer size for dsm camera_vid client */ #define CAMERA_VID_RADAR_BUF_MAX 4096 /*#define CONFIG_MSMB_CAMERA_DEBUG*/ #undef CDBG #ifdef CONFIG_MSMB_CAMERA_DEBUG #define CDBG(fmt, args...) pr_err(fmt, ##args) #else #define CDBG(fmt, args...) do { } while (0) #endif char camera_vid_ds...
C
drivers/media/platform/msm/vidc/msm_camera_vid_dsm.c
Huawei-Kiwi/android_kernel_huawei_msm8939
gpl-2.0
1,650
72
codeparrot/github-code
869ca4aa28077cdf33bf63c94d9e7dde7e2998ed54e52a64e3ace46caf5be336
/* * Copyright (C) 2008-2014 TrinityCore <http://www.trinitycore.org/> * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2 of the License, or (at your * option) any later ve...
C
src/server/scripts/Outland/Auchindoun/ShadowLabyrinth/shadow_labyrinth.h
PhoenixiaGaming/WoP-v3
gpl-2.0
1,839
65
codeparrot/github-code
097a38bbe8c992c15ff8576752c9a77c03fabf7d0da514f50d949b33ae740ed3
/* * Quota code necessary even when VFS quota support is not compiled * into the kernel. The interesting stuff is over in dquot.c, here * we have symbols for initial quotactl(2) handling, the sysctl(2) * variables, etc - things needed even when quota support disabled. */ #include <linux/fs.h> #include <linux/nam...
C
kernel/fs/quota/quota.c
is00hcw/fastsocket
gpl-2.0
15,567
639
codeparrot/github-code
f873d3503cd059dc045db841c8b52cc859e80d8d6308643c7d8619732888ec6e
/* * Garmin GPS driver * * Copyright (C) 2004 Hermann Kneissel herkne@users.sourceforge.net * * The latest version of the driver can be found at * http://sourceforge.net/projects/garmin-gps/ * * This driver has been derived from v2.1 of the visor driver. * * This program is free software; you can redistribute...
C
linux-2.6.x/drivers/usb/serial/garmin_gps.c
ipwndev/DSLinux-Mirror
gpl-2.0
40,258
1,542
codeparrot/github-code
40facd32f9dcdbd5472293681127841382f6a512b33628f565a702c82fb6dce5
/*---------------------------------------------------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright (C) 2013 OpenFOAM Foundation \\/ M anipulation | -------------...
C++
src/postProcessing/functionObjects/utilities/setTimeStep/setTimeStepFunctionObject.C
Atizar/RapidCFD-dev
gpl-3.0
3,625
153
codeparrot/github-code
c1788f708fa8b4c3f2be69b4ef11e45ba5098e1ba04fd78aba6348beeffafb7f
<%! from xmodule.modulestore.django import loc_mapper %> % if context_course: <% ctx_loc = context_course.location locator = loc_mapper().translate_location(ctx_loc.course_id, ctx_loc, False, True) %> % endif % if settings.FEATURES.get('SEGMENT_IO'): <!-- begin Segment.io --> <script type="text/javascript"> ...
HTML
cms/templates/widgets/segment-io.html
XiaodunServerGroup/xiaodun-platform
agpl-3.0
1,584
44
codeparrot/github-code
f5505c5a2695d00b7742ce629d91e28cc58b9d6ae3e632da65df5edf59440c8a
/* GSnull * Copyright (C) 2002-2010 PCSX2 Dev Team * * PCSX2 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 Found- * ation, either version 3 of the License, or (at your option) any later version. * * P...
C++
plugins/GSnull/Windows/Win32.cpp
Pistachioman/pcsx2
lgpl-3.0
2,432
98
codeparrot/github-code
becc9e70b39e51cf55a53f073860314be96eeee1997f36cdd1f4552f4ed5a095
// 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. #nullable disable using System; using System.Collections.Immutable; using System.Diagnostics; using System.Linq; u...
C#
src/Compilers/CSharp/Portable/CodeGen/EmitStackAllocInitializer.cs
physhi/roslyn
apache-2.0
6,303
174
codeparrot/github-code
1a5f43b8fe69583123c2ac90e6e88d3703323a214a4be8f6ad487e24e8e6d653
/* * JBoss, Home of Professional Open Source * Copyright 2015, Red Hat, Inc. and/or its affiliates, and individual * contributors by the @authors tag. See the copyright.txt in the * distribution for a full listing of individual contributors. * * Licensed under the Apache License, Version 2.0 (the "License"); * y...
Java
websocket-endpoint/src/main/java/org/jboss/quickstarts/websocket/BidWebSocketEndpoint.java
rh-asharma/jboss-eap-quickstarts
apache-2.0
4,227
124
codeparrot/github-code
63eb2bdbb70617abb5e53674c9956577a8cda4adab054f03f0e4b2bdc6590eb8
package jadx.gui.treemodel; import jadx.api.Factory; import jadx.api.IJadxArgs; import jadx.api.JadxDecompiler; import jadx.api.JavaClass; import jadx.api.JavaPackage; import jadx.core.dex.nodes.ClassNode; import jadx.gui.JadxWrapper; import java.util.Arrays; import java.util.List; import org.junit.Before; import or...
Java
jadx-gui/src/test/java/jadx/gui/treemodel/JSourcesTest.java
wskplho/jadx
apache-2.0
2,733
107
codeparrot/github-code
040210e25aea38237e00dccba1cfd69115471f67cc3099b841bf83f29eeb9afa
;(function(window, document, undefined) { "use strict"; (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l....
JavaScript
web/themes/metronic/assets/global/plugins/bootstrap-sweetalert/sweetalert.js
richtermark/SMEAGOnline
mit
35,930
1,196
codeparrot/github-code
221dbc570a5c8a66c3d74a786bb406e3fde0a35e8fc861b8b396c268ac2207c3
<?php /** * Preprocessor using PHP's dom extension * * @file * @ingroup Parser */ /** * @ingroup Parser */ class Preprocessor_DOM implements Preprocessor { /** * @var Parser */ var $parser; var $memoryLimit; const CACHE_VERSION = 1; function __construct( $parser ) { $this->parser = $parser; $me...
PHP
old/wiki/includes/parser/Preprocessor_DOM.php
AKFourSeven/antoinekougblenou
mit
47,335
1,689
codeparrot/github-code
9e133d2b126d4b174b91f74fe3b6131be379b5b193da1722ea3ddd08f2b0470c
# Makefile for Sphinx documentation # # You can set these variables from the command line. SPHINXOPTS = SPHINXBUILD = sphinx-build PAPER = BUILDDIR = _build # User-friendly check for sphinx-build ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1) $(error The '$(SPHINXBUILD)' command w...
Makefile
docs/sphinx/Makefile
yamila-moreno/nikola
mit
6,762
178
codeparrot/github-code
72f8421df806f8abef6c8ed6e686b017b8a38b51e7eaa96fa55e0ebcabe815a9
/* $NoKeywords:$ */ /** * @file * * mtspd3.c * * Technology SPD supporting functions for DDR3 * * @xrefitem bom "File Content Label" "Release Content" * @e project: AGESA * @e sub-project: (Mem/Tech/DDR3) * @e \$Revision: 85961 $ @e \$Date: 2013-01-14 19:58:20 -0600 (Mon, 14 Jan 2013) $ * **/ /*************...
C
src/vendorcode/amd/agesa/f16kb/Proc/Mem/Tech/DDR3/mtspd3.c
lynxis/coreboot
gpl-2.0
40,705
1,203
codeparrot/github-code
fd845aa4316e805c7aaaa89ea2e719969bbebcb174aaad25414ebf1bf6ca6bb0
/* * Copyright (C) 2008-2013 TrinityCore <http://www.trinitycore.org/> * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2 of the License, or (at your * option) any later ve...
C++
src/server/scripts/Northrend/Ulduar/HallsOfStone/boss_maiden_of_grief.cpp
ziolo90211/Trinity
gpl-2.0
5,374
179
codeparrot/github-code
6840427079295c57fe0da01dfd6c5e20cefb4253be2cd443e4824dba949e074d
/* * ASPEED Real Time Clock * Joel Stanley <joel@jms.id.au> * * Copyright 2019 IBM Corp * SPDX-License-Identifier: GPL-2.0-or-later */ #include "qemu/osdep.h" #include "qemu-common.h" #include "hw/rtc/aspeed_rtc.h" #include "migration/vmstate.h" #include "qemu/log.h" #include "qemu/timer.h" #include "trace.h" ...
C
hw/rtc/aspeed_rtc.c
dslutz/qemu
gpl-2.0
4,476
182
codeparrot/github-code
b1cfed7c40c250e77c0b08e2d6cf53b5e1972755849512dd3d683c4fa0e4cabf
// 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/ui/views/location_bar/zoom_bubble_view.h" #include "base/i18n/rtl.h" #include "chrome/browser/chrome_notification_types.h" #...
C++
external/chromium_org/chrome/browser/ui/views/location_bar/zoom_bubble_view.cc
qtekfun/htcDesire820Kernel
gpl-2.0
8,648
253
codeparrot/github-code
dbfd63f8cf2c4e83559e17d72702bfaced137c2e65c50eff336936c910ef9eb0
/* * Copyright 2012-2019 the original author or 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
Java
spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/template/TemplateAvailabilityProviders.java
tiarebalbi/spring-boot
apache-2.0
6,044
169
codeparrot/github-code
d68ca2732737896f492ba78b67c734ed4dc7a964e1c3cf8de812ca1be74a9ef0
<?php slot('submenu') ?> <?php include_partial('submenu'); ?> <?php end_slot() ?> <?php $imgParam = array('size' => '180x180', 'alt' => '') ?> <?php echo $form->renderGlobalErrors() ?> <h2><?php echo __('%1% settings', array('%1%' => $form->getObject()->getCaption())) ?></h2> <?php if ($bannerList): ?> <div> <ul> <...
PHP
apps/pc_backend/modules/design/templates/bannerSuccess.php
cripure/openpne3
apache-2.0
2,447
78
codeparrot/github-code
b725a3d5445b364066332d386249d3f12092c6090add1e0492e6aa8fb5f3fb34
#pragma once #include <jni.h> #include "map/framework.hpp" #include "search/result.hpp" #include "platform/country_defines.hpp" #include "geometry/avg_vector.hpp" #include "base/deferred_task.hpp" #include "base/timer.hpp" #include "indexer/map_style.hpp" #include "std/map.hpp" #include "std/shared_ptr.hpp" #in...
C++
android/jni/com/mapswithme/maps/Framework.hpp
sidorov-panda/omim
apache-2.0
5,379
179
codeparrot/github-code
cbc9cdd672dd47814e6c4e62770d1bed2f2ed5ae3105dd0365c509b49c7eb866
/** * Copyright 2005-2014 The Kuali Foundation * * Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php * * Unless requ...
Java
rice-middleware/it/kim/src/test/java/org/kuali/rice/kim/test/service/GroupServiceRemoteTest.java
bhutchinson/rice
apache-2.0
2,199
66
codeparrot/github-code
066e8b23f95529ccb132a53988bdf74f7222d34e23af289832d2c32812332893
/* * Copyright (C) 2012 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/main/java/com/google/api/explorer/client/embedded/RequestBodyForm.java
rwl/api-explorer
apache-2.0
10,052
302
codeparrot/github-code
7a6dca4887a972e0533f5c1d72f17ce2bd6725372e055eeb0f5047e6ce7db8ef
/* * 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/ui-designer/src/com/intellij/uiDesigner/radComponents/LayoutManagerRegistry.java
asedunov/intellij-community
apache-2.0
5,731
143
codeparrot/github-code
80c6c7f3ff07f28fbaecb236d6a021eb12e291bc720b60b2e6df81c956c6bb73
// Copyright 2015 the V8 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. // Test that the methods for different TypedArray types have the same // identity. 'use strict'; let typedArrayConstructors = [ Uint8Array, Int8Ar...
JavaScript
v8_7_5/test/mjsunit/es6/typedarray-proto.js
weolar/miniblink49
apache-2.0
2,244
71
codeparrot/github-code
999198a135e6c6438a0ff45c394647154ba222e0dab33302b805a8d62ca79d4e
#!/usr/bin/env python # #===- git-clang-format - ClangFormat Git Integration ---------*- python -*--===# # # The LLVM Compiler Infrastructure # # This file is distributed under the University of Illinois Open Source # License. See LLVM-LICENSE.TXT for details. # #===---------------------------------...
Python
tools/formatting/git-clang-format.py
trizt/osquery
bsd-3-clause
18,615
489
codeparrot/github-code
576081a34c629f3e91145f556a8105b7b83966c0eaefc2c3d70067d2327718c9
/**************************************************************************** ** ** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/legal ** ** This file is part of the QtGui module of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL$ ** Commercial License Usage ** Licensees ...
C
thirdparty/qt53/include/QtGui/5.3.0/QtGui/private/qpaintengine_raster_p.h
imzcy/JavaScriptExecutable
mit
15,125
501
codeparrot/github-code
6a57e88613c144e8ed72c7bae79b390a92d6946d947e18fbd00449df4a491b24
using System.Threading.Tasks; using AllReady.Areas.Admin.Features.Events; using AllReady.Models; using Xunit; namespace AllReady.UnitTest.Areas.Admin.Features.Events { public class DeleteQueryHandlerShould : InMemoryContextTest { [Fact] public async Task ReturnCorrectData() ...
C#
AllReadyApp/Web-App/AllReady.UnitTest/Areas/Admin/Features/Events/DeleteQueryHandlerShould.cs
VishalMadhvani/allReady
mit
1,744
48
codeparrot/github-code
d37a438c7aa1072cc18104fd28ba8bfc67e96f939387fd0201bca101af3111f3
'use strict'; var _ = require('lodash'); var chai = require('chai'); var should = chai.should(); var expect = chai.expect; var bitcore = require('..'); var Opcode = bitcore.Opcode; describe('Opcode', function() { it('should create a new Opcode', function() { var opcode = new Opcode(5); should.exist(opcode)...
JavaScript
test/opcode.js
creditbit/creditbitcore-lib
mit
4,462
153
codeparrot/github-code
927a5e1e3aec5fd8afb737a0bc4c806f44e45ae8a2c12d7d9ed3a2d3963e6da9
<?php /** * WordPress backed post meta options management * * @author Justas Butkus <justas@butkus.lt> * @since 2012.10.02 * * @package AllInOneCalendar * @subpackage AllInOneCalendar.Model.Meta */ class Ai1ec_Meta_Post extends Ai1ec_Meta { /** * _fetch method * * Fetch actual post meta usi...
PHP
wp-content/plugins/all-in-one-event-calendar/app/model/class-ai1ec-meta-post.php
otavanopisto/kurnu
gpl-2.0
1,080
54
codeparrot/github-code
1fb640bc4a600c7e97d47d71302cf1af6fcbceee69e4c0c86ed0f8165c6658c4
/* Mapping table for IBM1164. Copyright (C) 2001, 2002 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Masahide Washizawa <washi@jp.ibm.com>, 2001. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General...
C
plugins/glibc-2.13-new/iconvdata/ibm1164.h
utds3lab/pemu
gpl-2.0
8,458
143
codeparrot/github-code
aa6186384f962a809e35c31115ddc2eaf4d5c45d6e919fa02464cb6d22730aa7
# -*- coding: utf-8 -*- ## ## This file is part of Invenio. ## Copyright (C) 2012 CERN. ## ## Invenio is free software; you can redistribute it and/or ## modify it under the terms of the GNU General Public License as ## published by the Free Software Foundation; either version 2 of the ## License, or (at your option) a...
Python
modules/webaccess/lib/external_authentication_openid.py
Panos512/invenio
gpl-2.0
6,658
195
codeparrot/github-code
03d076498005dca004146e90d695d5ea89a56869367e3a78cc0aa8660b9a180f
// 16bit code to handle system clocks. // // Copyright (C) 2008-2010 Kevin O'Connor <kevin@koconnor.net> // Copyright (C) 2002 MandrakeSoft S.A. // // This file may be distributed under the terms of the GNU LGPLv3 license. #include "biosvar.h" // SET_BDA #include "bregs.h" // struct bregs #include "hw/pic.h" // pic_...
C
src/clock.c
virt2x/seabios2
gpl-3.0
12,413
463
codeparrot/github-code
dfc590fcfd99817225661f4f1575854e3903791872f6c913b6147f6225c817c1
/* * Copyright 2017 Red Hat, Inc. and/or its affiliates * and other contributors as indicated by the @author tags. * * 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.apach...
Java
authz/policy/common/src/main/java/org/keycloak/authorization/policy/provider/js/ScriptCache.java
hmlnarik/keycloak
apache-2.0
4,352
156
codeparrot/github-code
4dbaa1a7910ce25513c86313c9166ffa029b0d116b8526df781799373afe119f
/* * 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/rest/BytesRestResponse.java
qwerty4030/elasticsearch
apache-2.0
7,267
187
codeparrot/github-code
ba90f2f1178ed00dc790663c70a2117eda9592925c7315cf73cfaefe036fefe2
/* * 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 ...
C++
hbase-native-client/src/async/get-test.cc
Guavus/hbase
apache-2.0
1,528
60
codeparrot/github-code
c5a283531425b38327aa547df4385a9fb44d86414b5edf6dec87c5dba434776b
namespace VRTK.Examples { using UnityEngine; public class Controller_Menu : MonoBehaviour { public GameObject menuObject; private GameObject clonedMenuObject; private bool menuInit = false; private bool menuActive = false; private void Start() { ...
C#
VRtest/Assets/VRTK/Examples/Resources/Scripts/Controller_Menu.cs
ALgespeelt/VRescaperoom
apache-2.0
1,554
54
codeparrot/github-code
7ae9e2b0a9ae5321d4975f45b601b8f256e56c2ad1131e3ef253274da2782a35
/* * 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-ec2/src/main/java/com/amazonaws/services/ec2/model/transform/DescribeImportSnapshotTasksRequestMarshaller.java
mahaliachante/aws-sdk-java
apache-2.0
3,719
89
codeparrot/github-code
c45b5431af438272360505516d6a8bcdf23671fdf3225bf09846896cce2caba6
/* * Copyright (c) 2009-2012, Salvatore Sanfilippo <antirez at gmail dot com> * Copyright (c) 2009-2012, Pieter Noordhuis <pcnoordhuis at gmail dot com> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following condition...
C
src/t_zset.c
diditaxi/redis
bsd-3-clause
93,605
2,857
codeparrot/github-code
fe81123cceeadb734d74caf2cb5979c5f06ec8e239a92b03255ba25834501c51
// 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.Diagnostics; using System.Runtime.InteropServices; namespace System.Net.Http { internal struct Cu...
C#
src/System.Net.Http/src/System/Net/Http/Unix/CurlResponseHeaderReader.cs
DnlHarvey/corefx
mit
9,651
302
codeparrot/github-code
fd7ead468cd1762c25cebd6e7549f15c228e15a1d491bff83bb78a88ae7713b5
/*************************************************************************/ /* particles.h */ /*************************************************************************/ /* This file is part of: */ /* ...
C
scene/3d/particles.h
gau-veldt/godot
mit
5,465
166
codeparrot/github-code
75d903d6bf10f5778750b59db8f09b16a22d4113da7a9606449fb9771c2eb551
<html> <!-- 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");...
HTML
www/samples/jsp/jsp2/simpletag/book.html
attrs/plexi.http
mit
1,678
38
codeparrot/github-code
56576b3795232705cc92b98cd7afc11c93a3afa11f6adb25e980070f35f82c26
/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ // vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4: #ident "$Id$" /* COPYING CONDITIONS NOTICE: This program is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by th...
C++
storage/tokudb/ft-index/portability/file.cc
louishust/mysql5.6.14_tokudb
gpl-2.0
18,053
572
codeparrot/github-code
bdb97227a950715ad0cc408d24a6fa38e6ca9f267858e191f583201eebfa0642
// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2014-2015 Hisilicon Limited. */ #include <linux/etherdevice.h> #include <linux/netdevice.h> #include <linux/spinlock.h> #include "hnae.h" #include "hns_dsaf_mac.h" #include "hns_dsaf_main.h" #include "hns_dsaf_ppe.h" #include "hns_dsaf_rcb.h" static s...
C
drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c
HinTak/linux
gpl-2.0
26,501
1,006
codeparrot/github-code
54fc9b68d97a65c0eea8124e3c8641f4b131814da777f59608ba9ddb837fdba5
function onLogin(player) local loginStr = "Welcome to " .. configManager.getString(configKeys.SERVER_NAME) .. "!" if player:getLastLoginSaved() <= 0 then loginStr = loginStr .. " Please choose your outfit." player:sendOutfitWindow() else if loginStr ~= "" then player:sendTextMessage(MESSAGE_STATUS_DEFAULT, ...
Lua
vc14/data/creaturescripts/scripts/login.lua
aspiraboo/kappa
gpl-2.0
1,082
37
codeparrot/github-code
4f05388021349deb77f9ea2793ceff75de5401e8c7d6dd94e25f3b3c173e4297
/* * $XFree86: xc/programs/Xserver/miext/shadow/shadow.h,v 1.6tsi Exp $ * * Copyright © 2000 Keith Packard * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that * the above copyright notice appear in all copies...
C
src/l4/pkg/l4con/examples/xf86_stub/include-xorg-7.1.0/shadow.h
MicroTrustRepos/microkernel
gpl-2.0
4,970
187
codeparrot/github-code
61e1138c018241db17ad33446658cad4d6e43f6863fd112aec62274cd598c104
/* Copyright (c) 2009-2011, Code Aurora Forum. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and * only version 2 as published by the Free Software Foundation. * * This program is distributed in the ho...
C
drivers/video/msm/mdss/mdnie_lite_tuning_chagall.c
slz/delidded-kernel-5.1.1-g900t-note3
gpl-2.0
51,809
1,777
codeparrot/github-code
d80eef0b062fab08aef3ff8504de27dabaf0e737bea203ebeff7f557ebaab01d
// Copyright 2014 Dolphin Emulator Project // Licensed under GPLv2+ // Refer to the license.txt file included. #pragma once #include <cstddef> #include "Common/CommonTypes.h" #include "Core/PowerPC/Jit64Common/EmuCodeBlock.h" struct TrampolineInfo; // a bit of a hack; the MMU results in more code ending up in the t...
C
Source/Core/Core/PowerPC/Jit64Common/TrampolineCache.h
LAGonauta/dolphin
gpl-2.0
952
32
codeparrot/github-code
d7c20ae42603e95aab0ffb5c44f6c4ecc97190ab7d11d8f4bdcdf5587d805600
// SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2015, 2016 ARM Ltd. */ #include <linux/uaccess.h> #include <linux/interrupt.h> #include <linux/cpu.h> #include <linux/kvm_host.h> #include <kvm/arm_vgic.h> #include <asm/kvm_mmu.h> #include "vgic.h" /* * Initialization rules: there are multiple stages to ...
C
virt/kvm/arm/vgic/vgic-init.c
koct9i/linux
gpl-2.0
13,571
539
codeparrot/github-code
7940c0d1f3c1206b933a2d08ff83036b0ab5b153d3122ba6b5d7af6f2b85aca3
/* Target-dependent code for Cygwin running on i386's, for GDB. Copyright (C) 2003-2015 Free Software Foundation, Inc. This file is part of GDB. 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 F...
C
gdb/i386-cygwin-tdep.c
cupertinomiranda/binutils
gpl-2.0
7,105
271
codeparrot/github-code
441989433fd8caf2f43f95befcdc852e6a0e628b94d6bb5ee52398d292e9c305
@charset "UTF-8"; /** * @package Joomla.Administrator * @subpackage templates.hathor * @copyright Copyright (C) 2005 - 2020 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt * @since 1.6 * * RTL CSS file for the color standard */ /** *...
CSS
administrator/templates/hathor/css/colour_standard_rtl.css
810/joomla-cms
gpl-2.0
7,013
371
codeparrot/github-code
e42e205cecdc88d07be73a6a35f18e8bbfbd51e0cd31ccc79c009e70d137113b
// Copyright 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 "chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.h" #include "base/bind.h" #include "base/logging.h" #include "base/metrics/histogram...
C++
external/chromium_org/chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc
s20121035/rk3288_android5.1_repo
gpl-3.0
25,297
676
codeparrot/github-code
c8e5d82f7dcd18dee8e8b18991a643b08f40dd653e41d768d7b98945a5733db8
/* * 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
artemis-protocols/artemis-amqp-protocol/src/main/java/org/apache/activemq/artemis/protocol/amqp/converter/AMQPContentTypeSupport.java
cshannon/activemq-artemis
apache-2.0
5,584
147
codeparrot/github-code
935ce2f0487a2efa420bd3cee76b90437213a9a8049ae36b151a325c16a445ae
/* * 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
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/rules/Rule.scala
maropu/spark
apache-2.0
1,472
37
codeparrot/github-code
7ebabf89e061f6df64824dfb525f10001ba57d8c28a27d9391cdee63fd640142
/* * 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/test/java/org/elasticsearch/cluster/UpdateSettingsValidationIT.java
strapdata/elassandra
apache-2.0
3,051
65
codeparrot/github-code
563e53ed20b71ab13a300c2ad86339db0aeef3d01efcbf94f5c6cdeaa912c9af
/* * Copyright 2016 Red Hat, Inc. and/or its affiliates * and other contributors as indicated by the @author tags. * * 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.apach...
Java
federation/ldap/src/main/java/org/keycloak/storage/ldap/idm/query/internal/GreaterThanCondition.java
didiez/keycloak
apache-2.0
1,669
53
codeparrot/github-code
1943aab5ca3d0375fc702298ff845d4b6795ba9d156a74df374b9a93a1bfa129
"""Stack loss data""" __docformat__ = 'restructuredtext' COPYRIGHT = """This is public domain. """ TITLE = __doc__ SOURCE = """ Brownlee, K. A. (1965), "Statistical Theory and Methodology in Science and Engineering", 2nd edition, New York:Wiley. """ DESCRSHORT = """Stack loss plant data of Brownlee (19...
Python
statsmodels/datasets/stackloss/data.py
hlin117/statsmodels
bsd-3-clause
1,907
66
codeparrot/github-code
8100a2a70dcbb3cc3325ea9b6353c39fb6abbfa2e5034aeba9cef12cfcdcba35
using System; using System.Collections.Generic; using System.Web.Mvc; using System.Web.Routing; using Autofac.Features.Metadata; using Orchard; using Orchard.Caching; using Orchard.ContentManagement; using Orchard.Localization; using Orchard.Mvc.Routes; using Orchard.OutputCache.Models; using Orchard.OutputCache.Servi...
C#
src/Orchard.Web/Modules/Orchard.OutputCache/Controllers/AdminController.cs
hanjia2014/HotTravel
bsd-3-clause
6,054
140
codeparrot/github-code
9e9ecb3a3a81c21b77ccfac799d91dcf68f4ea912567cfa0c6e7a6fda7623516
/* Copyright (c) 2012-2015 The SSDB 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 <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <errno.h> #include <string> #include <vector> #include <map> #inclu...
C++
tools/ssdb-bench.cpp
kmiku7/ssdb-annotated
bsd-3-clause
4,882
232
codeparrot/github-code
c65f048b00e030b7dbaad3c8473b270a1f716ca47e956b4ef01698bf20afbc06
/** * @file * Views listing behaviors. */ (function ($, Drupal) { "use strict"; /** * Filters the view listing tables by a text input search string. * * Text search input: input.views-filter-text * Target table: input.views-filter-text[data-table] * Source text: .views-table-filter-t...
JavaScript
web/core/modules/views_ui/js/views_ui.listing.js
komejo/d8demo-dev
mit
1,456
55
codeparrot/github-code
d2156a3931bc00027c319c63a60e8bce69af164c8257e1bb0876964334c7b757
/* cspcon.f -- translated by f2c (version 20061008). 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 -- in that order, at the end of...
C
slam_ext/external/clapack-3.2.1-CMAKE/SRC/cspcon.c
CreativeCimmons/ORB-SLAM-Android-app
gpl-2.0
5,243
196
codeparrot/github-code
cc259d58f8cfe2d0fd8d7ba12b036f5edb5bed9863aaaec092d3eeda8df1abba
package parse; import java.io.IOException; import java.io.StringReader; import java.nio.charset.Charset; import java.util.ArrayList; import java.util.List; import static org.testng.Assert.assertEquals; import org.testng.annotations.Test; import org.xml.sax.Attributes; import org.xml.sax.InputSource; import org.xml.sax...
Java
test/jdk/javax/xml/jaxp/testng/parse/EntityCharacterEventOrder.java
md-5/jdk10
gpl-2.0
3,717
117
codeparrot/github-code
ab6d652408e921bb0745f393150f12b098329bf9aa6d57a87855c7408854900e
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ package org.elasticsearch.xpack.ml.job.categorization; import org.apache.luce...
Java
x-pack/plugin/ml/src/test/java/org/elasticsearch/xpack/ml/job/categorization/MlClassicTokenizerTests.java
coding0011/elasticsearch
apache-2.0
2,619
61
codeparrot/github-code
e368cfe2df8f5407a217d6722cc10ec7ea355fd13aa359e56ca264d1c264225b
/* * 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
modules/core/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheReplicatedSynchronousCommitTest.java
leveyj/ignite
apache-2.0
6,360
205
codeparrot/github-code
e2f3cf7bff1ded706fa9a18fb8329e24d29b2b40dfa581180b498cadb4c855f1
/* Copyright (c) 2012, Broadcom Europe Ltd All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and t...
C
containers/avi/avi_reader.c
StealthMicro/userland
bsd-3-clause
58,394
1,522
codeparrot/github-code
51eee82287817a87cfd2a406d4827f609cf17c7045f69accc8a8e4b587e64bf8
/* * Copyright (c) 2002, 2005, 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/openjdk/jdk/src/share/classes/java/net/Inet4AddressImpl.java
rokn/Count_Words_2015
mit
3,091
75
codeparrot/github-code
d82a0a4db94adb633dbdd5bd73db113095319df2e80ac2c48de7617c01d1fbe1
#region License /* * WebSocketFrame.cs * * The MIT License * * Copyright (c) 2012-2014 sta.blockhead * * 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 ...
C#
unity/Cyber Maze/Assets/SocketIO/WebsocketSharp/WebSocketFrame.cs
dxhackers/cybermaze
mit
18,359
696
codeparrot/github-code
e5368ad58f6ac6e21abc47de2557377d074064f9c8a438337864ccebfb6e938b
#ifndef BUILD_LK #include <linux/string.h> #include <linux/kernel.h> #endif #include "lcm_drv.h" #ifdef BUILD_LK #include <platform/upmu_common.h> #include <platform/mt_gpio.h> #include <platform/mt_i2c.h> #include <platform/mt_pmic.h> #include <string.h> #elif defined(BUILD_UBOOT) #include <asm/arch/mt_gpio...
C
drivers/misc/mediatek/lcm/nt35595_fhd_dsi_vdo_truly_nt50358/nt35595_fhd_dsi_vdo_truly_nt50358.c
visi0nary/mt6735-kernel-3.10.61
gpl-2.0
33,606
1,289
codeparrot/github-code
5b5d7434684f880a720894006abe3b07be1240a575e3ed54e334024233935300
/* * KLSI KL5KUSB105 chip RS232 converter driver * * Copyright (C) 2001 Utz-Uwe Haus <haus@uuhaus.de> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the Lic...
C
go12/linux-2.6.28.10/drivers/usb/serial/kl5kusb105.c
kzlin129/tt-gpl
gpl-2.0
28,168
1,004
codeparrot/github-code
bdb8033e9650f0e072dd57f49cc6a319a8fb0c96952b266d3a5ee722ada9391f
// { dg-do assemble } #include<map> #include<iostream> #include<vector> #include<string> using namespace std; // empty parameter class with a minimal set of operations // if there are no weights for edges necessary struct Empty { public: Empty(int=0) {} bool operator<(const Empty&) const { return true;} };...
C++
uefi/gcc/gcc-4.6.3/gcc/testsuite/g++.old-deja/g++.robertl/eb109.C
SanDisk-Open-Source/SSD_Dashboard
gpl-2.0
2,174
76
codeparrot/github-code
9e61201d2092e54419c07986695e76f82e6e0a0e8d4dfc7ef807b7aa33d1134b
/* * Copyright (C) 2008-2014 TrinityCore <http://www.trinitycore.org/> * Copyright (C) 2005-2009 MaNGOS <http://getmangos.com/> * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either ver...
C++
src/server/game/Grids/ObjectGridLoader.cpp
bromacia/TrinityCore-SymboCore
gpl-2.0
9,251
265
codeparrot/github-code
6957f4f161d61a1ca20aca80683aa5659ee0a35c9a6935199232c297dee94747
#ifndef _ASM_POWERPC_OF_DEVICE_H #define _ASM_POWERPC_OF_DEVICE_H #ifdef __KERNEL__ #include <linux/device.h> #include <linux/of.h> /* * The of_device is a kind of "base class" that is a superset of * struct device for use by devices attached to an OF node and * probed using OF properties. */ struct of_device { ...
C
include/asm-powerpc/of_device.h
jkoelndorfer/android-kernel-msm
gpl-2.0
897
34
codeparrot/github-code
bffe3a8343fb7f5e13b3ee976b415fc9ec16f5eefeddecece1c95c09f1b50723
/* 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 ...
C
engines/lastexpress/entities/entity.h
lordhoto/scummvm
gpl-2.0
37,585
1,108
codeparrot/github-code
f5b3d127ce1c7b40089ca2412a3551fd2bf46011df88387d73d645f3d853c80d
/* * (C) Copyright 2008 Intel Corporation * Authors: * Andy Henroid <andrew.d.henroid@intel.com> * Venkatesh Pallipadi <venkatesh.pallipadi@intel.com> */ /* * Save DIMM power on Intel 7300-based platforms when all CPUs/cores * are idle, using the DIMM thermal throttling capability. * * This driver depends on ...
C
go12/linux-2.6.28.10/drivers/idle/i7300_idle.c
kzlin129/tt-gpl
gpl-2.0
16,046
610
codeparrot/github-code
d4bbaac70f5df4635766fccbe52be64f2003f38eba8802f5910984c6e6a8cc95
/* * Copyright (C) 2010 The Android 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 required by app...
C
lib/containers.h
spegelius/multirom
gpl-3.0
2,683
74
codeparrot/github-code
c86b88088a55f08935dfd65ef7a90a9e381f600fbe9cca69894dd0dd74e4b89b
""" ====================================================================== Compressive sensing: tomography reconstruction with L1 prior (Lasso) ====================================================================== This example shows the reconstruction of an image from a set of parallel projections, acquired along dif...
Python
examples/zh/applications/plot_tomography_l1_reconstruction.py
chenyyx/scikit-learn-doc-zh
gpl-3.0
5,478
150
codeparrot/github-code
628ed79c909ec49161305783a070ccfe564071306605ef934e7af4eaf2c3b30a
<?php // This file is part of Moodle - http://moodle.org/ // // Moodle is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // Moodle ...
PHP
repository/coursefiles/lib.php
gormster/moodle
gpl-3.0
8,449
220
codeparrot/github-code
21de050eb7c18a13104352b8808954339b7a2a465a5c6280ce14f3913e412826
/* * 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/tools/nodetool/TableStats.java
jeffjirsa/cassandra
apache-2.0
4,814
102
codeparrot/github-code
794449b4c690414883d31309ecbc93f56c375f9707bc6b14e47b7acc1bdb41bd
// 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.Immutable; using Microsoft.CodeAnalysis.DocumentationComments; namespace Microsoft.CodeAnalysis.MetadataAsSource { internal par...
C#
src/Features/Core/Portable/MetadataAsSource/AbstractMetadataAsSourceService.WrappedFieldSymbol.cs
MattWindsor91/roslyn
apache-2.0
1,537
42
codeparrot/github-code
9209d494cc25543574eadbdf47ab6aa5283f4c98e0d4de13f46b1dcf05d438ac
using Benchmark ################################################################################ # Benchmark to see whether loop is faster than matrix operation # # | Row | Function | Average | Relative | Replications | # |-----|--------------|-----------|----------|--------------| # | 1 | "relu_loop" | 0.0283...
Julia
benchmarks/loop-vs-whole.jl
appapantula/Mocha.jl
mit
1,654
62
codeparrot/github-code
ac40fcfd4f47af4859f754078a22f7660460becbf2e679537a8ce35893bea0d7
<?php namespace Concrete\Core\User\PrivateMessage; use \Concrete\Core\Legacy\DatabaseItemList; use Loader; use Concrete\Core\User\PrivateMessage\PrivateMessage as UserPrivateMessage; class PrivateMessageList extends DatabaseItemList { protected $itemsPerPage = 10; protected $mailbox; public function filterByMailb...
PHP
docs/concrete5/updates/concrete5.7.5.1_remote_updater/concrete/src/User/PrivateMessage/PrivateMessageList.php
LinkedOpenData/challenge2015
mit
954
32
codeparrot/github-code
c75cd384c50aa8423b2ca873368ef60254815607966081cd684dd759377cf1af
'use strict'; module.exports = function (grunt) { var Q = require('q'); var SauceTunnel = require('sauce-tunnel'); var TestRunner = require('../src/TestRunner')(grunt); Q.longStackSupport = true; function reportProgress(notification) { switch (notification.type) { case 'tunnelOpen': grunt.log...
JavaScript
tasks/saucelabs.js
marioestrada/grunt-saucelabs
mit
6,059
211
codeparrot/github-code
8dad0e50470243fd7a977aa5cc245a07fb6913fb20be9886efe6e8657012668a
<?php class PHP_Merchant_Paypal_Express_Checkout_Response extends PHP_Merchant_Paypal_Response { public function __construct( $response_str ) { parent::__construct( $response_str ); $p =& $this->params; // more readable checkout status if ( isset( $p['CHECKOUTSTATUS'] ) ) switch ( $p['CHECKOUTSTATUS'] ) { ...
PHP
wpsc-components/merchant-core-v3/gateways/php-merchant/gateways/paypal-express-checkout-response.php
JustinSainton/WP-e-Commerce
gpl-2.0
3,844
125
codeparrot/github-code
f94f90b82765ef22916dd528917566c219a058257ac90b171d61cc7e015b70b1
// Copyright (C) 2011 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 option)...
C++
uefi/gcc/gcc-4.6.3/libstdc++-v3/testsuite/26_numerics/accumulate/48750.cc
SanDisk-Open-Source/SSD_Dashboard
gpl-2.0
1,684
71
codeparrot/github-code
a916e601cc3d3753e4e52b9faf5963976e4719b6b67461c1a245adeba92d5326
/* Bit values & structures for resource limits. Alpha/Linux version. Copyright (C) 1994, 1996, 1997, 1998, 1999, 2000, 2004, 2005 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 GN...
C
uClibc/libc/sysdeps/linux/alpha/bits/resource.h
rhuitl/uClinux
gpl-2.0
6,970
226
codeparrot/github-code
8e17479a5496b8256d258ad777cc28b46eb77856fff97de23a0a7247dc5e90b0
<?php // This file is part of Moodle - http://moodle.org/ // // Moodle is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // Moodle ...
PHP
question/type/essay/question.php
cbradley456/moodle
gpl-3.0
5,683
151
codeparrot/github-code
f50dd527b98deb90f36c779c54599d249e918fdc8d4c9357f8833128727cbf47
/* Unix SMB/CIFS implementation. Copyright (C) Stefan (metze) Metzmacher 2005 Copyright (C) Guenther Deschner 2008 Copyright (C) Michael Adam 2008 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 Sof...
C
source3/libnet/libnet_dssync.c
javierag/samba
gpl-3.0
20,308
726
codeparrot/github-code
3b15e4123e5bb687f0386a802ed927c73bc33b37b9e777a2b6ea41b1b8b4ad7b
/* * 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-client-dto/src/main/java/org/apache/nifi/web/api/dto/provenance/ProvenanceEventDTO.java
mcgilman/nifi
apache-2.0
19,622
663
codeparrot/github-code
dcb7bc1026f5dbabf771e3cccc3a3b2d63f8fb2b5dca9ca5bbadeb585c83ed60
# Copyright (c) 2013 OpenStack Foundation # 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 ...
Python
neutron/plugins/ml2/drivers/type_gre.py
paninetworks/neutron
apache-2.0
3,250
96
codeparrot/github-code
936f6727e1b9b30acef6d8daf1c501b680fe685e7c5d86bdea8ce3eb9adeb192
// +build ignore package main import "reflect" // // This test is very sensitive to line-number perturbations! // Test of channels with reflection. var a, b int func chanreflect1() { ch := make(chan *int, 0) crv := reflect.ValueOf(ch) crv.Send(reflect.ValueOf(&a)) print(crv.Interface()) // @types ...
GO
x/tools/go/pointer/testdata/chanreflect1.go
muzining/net
bsd-3-clause
727
36
codeparrot/github-code
f91a78d89651668548c5878650910d4b7bea1e12dd5c5810eb42002ed550988d
/* * Copyright (C) 2005-2019 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 "threads/SystemClock.h" #include <chrono> #include <thread> namespace ConditionPoll { /** * This is us...
C
xbmc/test/MtTestUtils.h
xbmcin/XBMCinTC
gpl-2.0
1,165
46
codeparrot/github-code
ac33a081a85725f4f5d7d789e2a7116f276679d85a6bb02e08aeb72684497d8a
/* * Copyright (c) 2005 Sandia Corporation. Under the terms of Contract * DE-AC04-94AL85000 with Sandia Corporation, the U.S. Governement * retains certain rights in this software. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following con...
C
src/plugins/xdmExodus/exodusii/cbind/src/expvartab.c
wdicharry/xdm
gpl-3.0
13,114
394
codeparrot/github-code
db863d122a07ba49e294bf4cc85d3c1b4abc231337b310bbd12321c6afc8da37
/* * Indeo Video Interactive v5 compatible decoder * Copyright (c) 2009 Maxim Poliakovski * * 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 * ve...
C
plugin/include/libavcodec/indeo5.c
epik/wAMP
lgpl-2.1
27,730
833
codeparrot/github-code
29a6b0b10e4b6024c4de1575de4f36b748dcda283520e0a16ab80d9f4a06a8b7
/* * 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/AbstractBulkIndexByScrollRequestBuilder.java
StefanGor/elasticsearch
apache-2.0
1,905
47
codeparrot/github-code
c0198e8dcc63aacb545048a19cc3aea75ae2acf08b6ee5e644b673c1f70f6c6f
/* * 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
modules/core/src/main/java/org/apache/ignite/internal/pagemem/wal/record/delta/ReplaceRecord.java
samaitra/ignite
apache-2.0
2,560
93
codeparrot/github-code
1b27feb1952df39c1845a21a20fa35def024c5ed5627eb687238900f21c85150
/* 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 applicable law or agree...
TypeScript
tensorflow/tensorboard/components/vz_projector/data-provider.ts
anilmuthineni/tensorflow
apache-2.0
11,567
353
codeparrot/github-code
221620c29738fdf85667df41793b166692905b3d1b9f779f6f845ea913c84265
/* SPDX-License-Identifier: GPL-2.0 */ /* * camss-ispif.h * * Qualcomm MSM Camera Subsystem - ISPIF (ISP Interface) Module * * Copyright (c) 2013-2014, The Linux Foundation. All rights reserved. * Copyright (C) 2015-2018 Linaro Ltd. */ #ifndef QC_MSM_CAMSS_ISPIF_H #define QC_MSM_CAMSS_ISPIF_H #include <linux/cl...
C
linux-5.8/drivers/media/platform/qcom/camss/camss-ispif.h
CSE3320/kernel-code
gpl-2.0
1,670
79
codeparrot/github-code
cd23796f08e50765510d849e6d2eaf7298c657bb052fa905796c687c80aec18d
/* Copyright (C) 1989, 2000 Aladdin Enterprises. All rights reserved. */ /*$Id: ansi2knr.c,v 1.14 2003/09/06 05:36:56 eggert Exp $*/ /* Convert ANSI C function definitions to K&R ("traditional C") syntax */ /* ansi2knr is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY. No author or distrib...
C
win32/jpeg-8a/ansi2knr.c
andygrundman/libmediascan
lgpl-3.0
20,269
740
codeparrot/github-code
3d22df9fa071969c1f9bc7aaa4cad875178817ebe3639a1d43767d299a3ee34d
# encoding: utf-8 module Mongoid # Contains the bahviour around inspecting documents via inspect. # # @since 4.0.0 module Inspectable # Returns the class name plus its attributes. If using dynamic fields will # include those as well. # # @example Inspect the document. # person.inspect ...
Ruby
lib/mongoid/inspectable.rb
KoanHealth/mongoid
mit
1,674
67
codeparrot/github-code
aa10e7811b49f927d13dba31d945b6c351cded7c2b69ef5b5f643edb32caab2b
/* Copyright (c) 2012-2013, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and * only version 2 as published by the Free Software Foundation. * * This program is distributed in the...
C
block/test-iosched.c
mlachwani/Android-4.4.3-HTC-M8-Kernel-ATT
gpl-2.0
27,129
1,118
codeparrot/github-code