text
stringlengths
84
499k
source
stringclasses
6 values
slice
stringclasses
1 value
est_tokens
int32
24
143k
score
float32
<reponame>fuldaros/paperplane_kernel_wileyfox-spark /* * Copyright (c) 2008-2011 Atheros Communications Inc. * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in ...
code_c
code
5,515
null
/* * Copyright (C) 2015-2018 Alibaba Group Holding Limited */ #include "nghttp2_session.h" #include <string.h> #include <stddef.h> #include <stdio.h> #include <assert.h> #include <stdarg.h> #include "nghttp2_helper.h" #include "nghttp2_net.h" #include "nghttp2_priority_spec.h" #include "nghttp2_option.h" #include...
code_c
code
65,029
null
/* * Copyright 2010-2016 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 "license" fil...
code_c
code
5,938
null
<reponame>UScrypto/boolberry-opencl // Copyright (c) 2012-2013 The Cryptonote developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once #include <atomic> namespace unit_test { class call_counter { publi...
code_c
code
220
null
<reponame>ossimlabs/ossim-planet #ifndef ossimPlanetInteractionController_HEADER #define ossimPlanetInteractionController_HEADER // Control mapping configuration, notify sim of user input. // Events are discrete inputs, eg button presses, bound to actions. // Events beginning with a '-' are reserved for commandline a...
code_c
code
1,618
null
<filename>src/core/channel/channel_stack.c /* * * Copyright 2015, Google Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the ab...
code_c
code
2,245
null
// SPDX-License-Identifier: GPL-2.0+ /* * rcar_du_group.c -- R-Car Display Unit Channels Pair * * Copyright (C) 2013-2015 Renesas Electronics Corporation * * Contact: <NAME> (<EMAIL>) */ /* * The R8A7779 DU is split in per-CRTC resources (scan-out engine, blending * unit, timings generator, ...) and device-g...
code_c
code
2,966
null
/* * Copyright (c) 2016, Citrix Systems, Inc. * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright * notice, this ...
code_c
code
1,014
null
<gh_stars>1-10 /******************************************************************************* * Copyright @ Huawei Technologies Co., Ltd. 2017-2018. All rights reserved. ********************************************************************************/ #ifndef _SIGNTEST_H_ #define _SIGNTEST_H_ #define private public...
code_c
code
1,032
null
static void femul(uint64_t out[4], const uint64_t in1[4], const uint64_t in2[4]) { { const uint64_t x8 = in1[3]; { const uint64_t x9 = in1[2]; { const uint64_t x7 = in1[1]; { const uint64_t x5 = in1[0]; { const uint64_t x14 = in2[3]; { const uint64_t x15 = in2[2]; { const uint64_t x13 = in2[1]; { const ...
code_c
code
2,469
null
#pragma once #include<opencv2/highgui.hpp> #include<opencv2/highgui/highgui_c.h> using namespace cv; using namespace std; class Repair { int mainn(char*); int sum(int, int); };
code_c
code
51
null
/* +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ | Copyright (c) 1997-2012 The PHP Group | +---------...
code_c
code
930
null
/* linux/arch/arm/mach-s3c2416/s3c2416.c * * Copyright (c) 2009 <NAME> <<EMAIL>>, * as part of OpenInkpot project * Copyright (c) 2009 Promwad Innovation Company * <NAME> <<EMAIL>> * * Samsung S3C2416 Mobile CPU support * * This program is free software; you can redistribute it and/or modify * it under the te...
code_c
code
1,179
null
/* Copyright 2021 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 a...
code_c
code
315
null
<reponame>X018/CCTOOL /**************************************************************************** **************************************************************************** *** *** This header was automatically generated from a Linux kernel header *** of the same name, to make information necessary for user...
code_c
code
1,868
null
<gh_stars>0 /* * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it...
code_c
code
3,713
null
extern zend_class_entry *leevel_router_iurl_ce; ZEPHIR_INIT_CLASS(Leevel_Router_IUrl); ZEND_BEGIN_ARG_INFO_EX(arginfo_leevel_router_iurl_make, 0, 0, 1) ZEND_ARG_INFO(0, url) ZEND_ARG_ARRAY_INFO(0, params, 1) ZEND_ARG_INFO(0, subdomain) ZEND_ARG_INFO(0, suffix) ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO_EX(arginfo_...
code_c
code
219
null
<reponame>conte91/bitbox02-firmware<filename>test/unit-test/test_ui_components.c // Copyright 2019 Shift Cryptosecurity AG // // 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:...
code_c
code
1,702
null
// Copyright 2007, Google Inc. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditions ...
code_c
code
1,105
null
/* * A Pairing Heap implementation. * * "The Pairing Heap: A New Form of Self-Adjusting Heap" * https://www.cs.cmu.edu/~sleator/papers/pairing-heaps.pdf * * With auxiliary twopass list, described in a follow on paper. * * "Pairing Heaps: Experiments and Analysis" * http://citeseerx.ist.psu.edu/viewdoc/download...
code_c
code
3,118
null
/* LUFA Library Copyright (C) <NAME>, 2014. dean [at] fourwalledcubicle [dot] com www.lufa-lib.org */ /* Copyright 2014 <NAME> (dean [at] fourwalledcubicle [dot] com) Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is her...
code_c
code
2,358
null
#ifndef CRadialCtrl_h #define CRadialCtrl_h 1 /////////////////////////////////////////////////////////////////////////////// // Filename: CRadialCtrl.h // Author: <NAME> // Date: 10/07/99 // Remarks: Defines the CRadialCtrl class. /////////////////////////////////////////////////////////////////////////////// #if ...
code_c
code
1,173
null
/* VMS-specific "#include" directives for IP. */ #ifdef MULTINET #include "multinet_root:[multinet.include.sys]types.h" #include "multinet_root:[multinet.include]errno.h" #include "multinet_root:[multinet.include]netdb.h" #else /* MULTINET */ #include <sys/types.h> #include <errno.h> #include <netdb.h> #if __CR...
code_c
code
134
null
/******************************************************************************* * * Module Name: utmisc - common utility procedures * ******************************************************************************/ /* * Copyright (C) 2000 - 2004, <NAME> * All rights reserved. * * Redistribution and use in sour...
code_c
code
10,732
null
/*------------------------------------------------------------------------- * * pg_list.h * interface for PostgreSQL generic linked list package * * This package implements singly-linked homogeneous lists. * * It is important to have constant-time length, append, and prepend * operations. To achieve this, we ...
code_c
code
3,372
null
<filename>socketlib.c /* * Socket Library - Common socket functions, based on stevens networking book. * Copyright (c) <NAME> 2011 * All rights reserved. * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to d...
code_c
code
2,039
null
<filename>beken378/driver/ble/rw_ble/modules/common/api/common_endian.h /** **************************************************************************************** * * @file common_endian.h * * @brief Common endianness conversion functions * * Copyright (C) RivieraWaves 2009-2015 * * **************...
code_c
code
2,318
null
<reponame>sjcappella/avalanche /*--------------------------------------------------------------------*/ /*--- Private syscalls header. priv_syswrap-generic.h ---*/ /*--------------------------------------------------------------------*/ /* This file is part of Valgrind, a dynamic binary instrumentatio...
code_c
code
3,735
null
//===----------------------------------------------------------------------===// // // Peloton // // bind_node_visitor.h // // Identification: src/include/binder/binder_node_visitor.h // // Copyright (c) 2015-16, Carnegie Mellon University Database Group // //===---------------------------------...
code_c
code
622
null
/* * 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 ma...
code_c
code
1,443
null
<filename>external/sysroot/debian_sid_amd64-sysroot/usr/include/nspr/obsolete/pralarm.h /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, Y...
code_c
code
2,007
null
/*! * Copyright (c) 2015 by Contributors * \file channel_op_common.h * \brief common function used for concat and split channel * \author <NAME> */ #ifndef MXNET_OPERATOR_CHANNEL_OP_COMMON_H_ #define MXNET_OPERATOR_CHANNEL_OP_COMMON_H_ #include <dmlc/logging.h> #include <mxnet/operator.h> #include <vector> #include...
code_c
code
892
null
<reponame>brizolara/PdParty /* * A simple wrapper for minizip, adapted from ZipArchive * https://github.com/mattconnolly/ZipArchive.git * * Copyright (c) 2018 <NAME> <<EMAIL>> * * BSD Simplified License. * For information on usage and redistribution, and for a DISCLAIMER OF ALL * WARRANTIES, see the file, "LICE...
code_c
code
225
null
/* * Consumidor. */ #include <stdio.h> #include <stdlib.h> #include <sys/ipc.h> #include <sys/msg.h> #include <sys/types.h> typedef struct { long type; char content[100]; } message; #define MAILBOX 453 int main(int argc, char** argv) { int flag, msgflg, msqid; message m; // Cria estrutura de mensagem ...
code_c
code
206
null
<reponame>TrueFinch/Roguelike_game // // Created by truefinch on 14.07.18. // #pragma once #include <Enums.h> #include <string> #include <vector> #include <ncurses.h> #include <iostream> #include <fstream> class SumUpMenu { public: static SumUpMenu& Instance(); enums::GameState update(const int& key); void upd...
code_c
code
432
null
<gh_stars>1-10 #ifndef _DJS_ADJLIST_ALGORITHM_H_ #define _DJS_ADJLIST_ALGORITHM_H_ /* 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 3 of the License, or (at your o...
code_c
code
811
null
/* Copyright 2011 <NAME> <<EMAIL>> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version. This program is distributed in the hope tha...
code_c
code
349
null
/* $OpenBSD: lock.c,v 1.33 2016/05/28 16:11:10 tedu Exp $ */ /* $NetBSD: lock.c,v 1.8 1996/05/07 18:32:31 jtc Exp $ */ /* * Copyright (c) 1980, 1987, 1993 * The Regents of the University of California. All rights reserved. * * This code is derived from software contributed to Berkeley by * <NAME>. * * Redistri...
code_c
code
1,945
null
/* SPDX-License-Identifier: BSD-3-Clause * Copyright(c) 2010-2016 Intel Corporation */ #include <sys/queue.h> #include <stdio.h> #include <errno.h> #include <stdint.h> #include <string.h> #include <unistd.h> #include <stdarg.h> #include <inttypes.h> #include <netinet/in.h> #include <rte_byteorder.h> #include <rte_co...
code_c
code
28,385
null
#ifndef HALIDE_SIMPLIFY_VISITORS_H #define HALIDE_SIMPLIFY_VISITORS_H /** \file * The simplifier is separated into multiple compilation units with * this single shared header to speed up the build. This file is not * exported in Halide.h. */ #include "Bounds.h" #include "IRMatch.h" #include "IRVisitor.h" #include ...
code_c
code
3,120
null
<filename>contrib/cvs/src/cvsrc.c /* * Copyright (c) 1993 <NAME> * * Written by <NAME> `zoo' zuhn while at Cygnus Support * * You may distribute under the terms of the GNU General Public License as * specified in the README file that comes with the CVS source distribution. * */ #include "cvs.h" #include "ge...
code_c
code
1,116
null
<reponame>Rikoshet-234/xray-oxygen<filename>code/editors/xrRenderCommons/bone.h //---------------------------------------------------- // refs #pragma once class CBone; #define BI_NONE (u16(-1)) #define OGF_IKDATA_VERSION 0x0001 #define MAX_BONE_PARAMS 4 //*** Bone Instance *************************************...
code_c
code
4,357
null
<gh_stars>1-10 #ifndef IVE_BLENDFUNC #define IVE_BLENDFUNC 1 #include <osg/BlendFunc> #include "ReadWrite.h" namespace ive{ class BlendFunc : public osg::BlendFunc, public ReadWrite { public: void write(DataOutputStream* out); void read(DataInputStream* in); }; } #endif
code_c
code
78
null
<filename>magick/version.c /* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
code_c
code
6,447
null
<gh_stars>1-10 /* +----------------------------------------------------------------------+ | HipHop for PHP | +----------------------------------------------------------------------+ | Copyright (c) 2010-2016 Facebook, Inc. (http://www.facebook.com) ...
code_c
code
4,858
null
/* * Copyright (c) 2003-2004 Apple Computer, Inc. All rights reserved. * * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ * * This file contains Original Code and/or Modifications of Original Code * as defined in and that are subject to the Apple Public Source License * Version 2.0 (the 'License'). You may not use th...
code_c
code
1,818
null
<gh_stars>0 /** ****************************************************************************** * Xenia : Xbox 360 Emulator Research Project * ****************************************************************************** * Copyright 2014 <NAME>. All rights reserved. ...
code_c
code
312
null
/* * Copyright 1995-2017 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the Apache License 2.0 (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy * in the file LICENSE in the source distribution or at * https://www.openssl.org/source/l...
code_c
code
4,592
null
<reponame>suchto/ElastosRT //========================================================================= // Copyright (C) 2012 The Elastos 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 ...
code_c
code
509
null
<filename>win32/allegro-4.2/include/allegro/platform/albeos.h /* ______ ___ ___ * /\ _ \ /\_ \ /\_ \ * \ \ \L\ \\//\ \ \//\ \ __ __ _ __ ___ * \ \ __ \ \ \ \ \ \ \ /'__`\ /'_ `\/\`'__\/ __`\ * \ \ \/\ \ \_\ \_ \_\ \_/\ __//\ \L\ \ \ \//\ \L\ \ ...
code_c
code
814
null
<gh_stars>10-100 /****************************************************************************** * * Module Name: hwacpi - ACPI Hardware Initialization/Mode Interface * *****************************************************************************/ /* * Copyright (C) 2000 - 2008, Intel Corp. * All rights reserve...
code_c
code
1,645
null
#include "../randomness.h" int main(void) { unsigned int ret_val = 0; unsigned char dst[32]; // Test 1 unsigned char k1[] = {0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b}; unsigned char d1[] = {0x48, 0x69, 0x...
code_c
code
2,340
null
<gh_stars>0 /* * Copyright (C) 2017-2020 Intel Corporation * * SPDX-License-Identifier: MIT * */ #pragma once #include "shared/source/memory_manager/memory_constants.h" #include "opencl/source/gen_common/aub_mapper_base.h" #include "engine_node.h" namespace NEO { struct SKLFamily; template <> struct AUBFamily...
code_c
code
210
null
#pragma once #include <Columns/IColumn.h> #include <Columns/ColumnNullable.h> #include <Common/assert_cast.h> #include <Common/HashTable/HashTableKeyHolder.h> #include <Interpreters/AggregationCommon.h> namespace DB { namespace ErrorCodes { extern const int LOGICAL_ERROR; } namespace ColumnsHashing { /// Gener...
code_c
code
3,148
null
<reponame>00-01/gap_sdk /* * Copyright (C) 2018 GreenWaves Technologies * * 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 ...
code_c
code
376
null
<reponame>kazuyaujihara/rdkit // // Copyright (C) 2003-2006 Rational Discovery LLC // // @@ All Rights Reserved @@ // This file is part of the RDKit. // The contents are covered by the terms of the BSD license // which is included in the file license.txt, found at the root // of the RDKit source tree. // #includ...
code_c
code
752
null
/* this ALWAYS GENERATED file contains the definitions for the interfaces */ /* File created by MIDL compiler version 8.00.0603 */ /* @@MIDL_FILE_HEADING( ) */ #pragma warning( disable: 4049 ) /* more than 64k source lines */ /* verify that the <rpcndr.h> version is high enough to compile this file*/ #ifndef ...
code_c
code
2,756
null
<filename>Pods/FirebaseFirestore/Firestore/core/src/firebase/firestore/model/document.h /* * Copyright 2018 Google * * 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.a...
code_c
code
866
null
<filename>csb/cycle1/fileRev/p02/fileRevlseek.c #include <unistd.h> #include <fcntl.h> #include <sys/stat.h> #include <stdio.h> #include <string.h> int main(int argc, char* argv[]){ int fd,fd2,count=-1; char buffer,flag='y'; fd = open(argv[1],O_RDWR); if(fd!=-1){ fd2 ...
code_c
code
238
null
#include <stdlib.h> #include <stdio.h> #include "lib/gcd.h" #include "lib/debug.h" #define TARGET 12000 typedef struct { int numerator; int denominator; } Fraction; int main() { log_set_level(DEBUG); long long count = 0; Fraction upper = {1,2}; Fraction lower = {1,3}; // start/d = lower.numerator/...
code_c
code
337
null
<reponame>angstsmurf/fizmo /* stringmap.c * * This file is part of fizmo. * * Copyright (c) 2010-2012 <NAME>. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of s...
code_c
code
1,212
null
#pragma once #include <treemap/layouting/AbstractRow.h> #include <treemap/treemap_api.h> class TREEMAP_API Slice : public AbstractRow { public: Slice(const LinearizedTree * tree, const LinearizedBuffer<float> & weights, const Rect & availableSpace, float availableWeight); Slice(const LinearizedTree * tre...
code_c
code
147
null
/** ****************************************************************************** * Xenia : Xbox 360 Emulator Research Project * ****************************************************************************** * Copyright 2014 <NAME>. All rights reserved. *...
code_c
code
880
null
<filename>PWGGA/PHOSTasks/ClusterSelection/AliPHOSTriggerUtils.h #ifndef ALIPHOSTRIGGERUTILS_H #define ALIPHOSTRIGGERUTILS_H /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * See cxx source for full Copyright notice */ //_______________________________________...
code_c
code
1,146
null
<filename>src/Entities/Slot.h #pragma once #include "../Utils/Arduboy2Ext.h" struct Slot { private: uint8_t _char0; uint8_t _char1; uint8_t _char2; uint16_t _score; public: Slot() {}; uint8_t getChar0() { return _char0; } uint8_t getChar1() { return _ch...
code_c
code
184
null
/* Copyright (C) 2005,2009-2010 Electronic Arts, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditi...
code_c
code
14,180
null
// Copyright (C) 2003 <NAME> (<EMAIL>) // License: Boost Software License See LICENSE.txt for the full license. #ifndef DLIB_LINKER_KERNEl_1_ #define DLIB_LINKER_KERNEl_1_ #include "linker_kernel_abstract.h" #include "../threads.h" #include "../sockets.h" #include "../algs.h" namespace dlib { class linker ...
code_c
code
1,280
null
<reponame>tuxafgmur/OLD_Dhollmen_Kernel /****************************************************************************** ******************************************************************************* ** ** Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved. ** Copyright (C) 2004-2007 Red Hat, Inc. ...
code_c
code
590
null
// // SegmentView.h // timeboy // // Created by wenghengcong on 15/5/11. // Copyright (c) 2015年 JungleSong. All rights reserved. // #import <UIKit/UIKit.h> @interface SegmentView : UIView /** * 分段中所有的分段名称 */ @property (nonatomic ,strong)NSArray *segTitles; /** * 点击分段的block */ @property (nonatomic ,...
code_c
code
105
null
<reponame>jmarrama/hhvm<filename>hphp/hack/src/utils/realpath.c /** * Copyright (c) 2014, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the "hack" directory of this source tree. An additional grant * of patent rights can be found ...
code_c
code
313
null
<reponame>rbabari/blender<filename>extern/audaspace/include/Exception.h /******************************************************************************* * Copyright 2009-2016 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License....
code_c
code
1,508
null
<reponame>gubaojian/weexuikit /* * Copyright (C) 2003, 2009, 2012 Apple Inc. All rights reserved. * Copyright (C) 2013 Intel Corporation. All rights reserved. * * Portions are Copyright (C) 1998 Netscape Communications Corporation. * * Other contributors: * <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * <NAME> <<...
code_c
code
2,360
null
#if __i386__ || __x86_64__ static bool xnu_thread_get_gpr(RDebug *dbg, xnu_thread_t *thread); static xnu_thread_t* get_xnu_thread(RDebug *dbg, int tid); static bool xnu_x86_hwstep_enable64(RDebug *dbg, bool enable) { R_REG_T *state; int ret; xnu_thread_t *th = get_xnu_thread (dbg, dbg->tid); ret = xnu_thread_get_g...
code_c
code
518
null
/* LibTomCrypt, modular cryptographic library -- <NAME> * * LibTomCrypt is a library that provides various cryptographic * algorithms in a highly modular and flexible manner. * * The library is free for all purposes without any express * guarantee it works. * * <NAME>, <EMAIL>, http://libtomcrypt.com */ /** ...
code_c
code
301
null
<filename>mcp/priq.h #ifndef __PRIQ_H__ #define __PRIQ_H__ // convienence defines #define PRIQ_HIGH 1 #define PRIQ_NORMAL 2 #define PRIQ_LOW 3 typedef struct { void * data; int pri; } q_elem_t; typedef struct { q_elem_t *buf; int n, alloc; } pri_queue_t, *pri_queue; pri_queue priq_new(int size); void priq_push(pri_q...
code_c
code
142
null
#ifndef AICADSP_H #define AICADSP_H //the DSP Context struct _AICADSP { //Config UINT16 *AICARAM; UINT32 AICARAM_LENGTH; UINT32 RBP; //Ring buf pointer UINT32 RBL; //Delay ram (Ring buffer) size in words //context INT16 COEF[128*2]; //16 bit signed UINT16 MADRS[64*2]; //offsets (in words), 16 bit UINT16 MPRO...
code_c
code
244
null
<gh_stars>10-100 /* 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 ap...
code_c
code
1,290
null
<reponame>venkatvi/CarND-Capstone /* * Copyright (c) 2015, Nagoya University * 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 ...
code_c
code
1,316
null
<filename>util/cutest.c /** (this notice added by dstn) Copyright 2002-2003 <NAME>. Licensed under the zlib/libpng License: This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. ...
code_c
code
2,623
null
<filename>software/tcl_auto/ds9tools/ast/sla/refro.c #include "slalib.h" #include "slamac.h" static void atmt ( double, double, double, double, double, double, double, double, double, double, double, double, double*, double*, double* ); static void atms ( double, double, double, d...
code_c
code
4,818
null
/** * @file * Interface for boost string replace functions * @copyright * Copyright (c) 2015-2022 Parasoft Corporation * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * * Perm...
code_c
code
378
null
<reponame>Maxul/Aurora /* * QEMU System Emulator * * Copyright (c) 2003-2008 <NAME> * * 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 ...
code_c
code
7,463
null
<reponame>JunfengYang/gpdb<gh_stars>0 //--------------------------------------------------------------------------- // Greenplum Database // Copyright (C) 2012 EMC Corp. // // @filename: // CPhysicalLeftSemiHashJoin.h // // @doc: // Left semi hash join operator //------------------------------------------------------...
code_c
code
539
null
<gh_stars>1-10 /* Copyright 2015 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 appl...
code_c
code
5,645
null
#include "alphasparse/kernel_plain.h" #include "alphasparse/util.h" alphasparse_status_t ONAME(const ALPHA_Number alpha, const ALPHA_SPMAT_DIA *A, const ALPHA_Number *x, const ALPHA_Number beta, ALPHA_Number *y) { const ALPHA_INT m = A->rows; const ALPHA...
code_c
code
314
null
/* Copyright (c) 2016 <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sub...
code_c
code
443
null
// // Mergeable.h // Mergeable // // Created by <NAME> on 20171127. // Copyright © 2017年 tattn. All rights reserved. // #import <Foundation/Foundation.h> //! Project version number for Mergeable. FOUNDATION_EXPORT double MergeableVersionNumber; //! Project version string for Mergeable. FOUNDATION_EXPORT const un...
code_c
code
141
null
#pragma once #include <UI/Dialogs/Editors/propeditor/ipropeditor.h> namespace dialog::editor { class CMultiValuePropertyEditor : public IPropEditor { public: CMultiValuePropertyEditor( _In_ CWnd* pParentWnd, UINT uidTitle, const std::wstring& name, bool bIsAB, _In_opt_ LPMAPIPROP lpMAPIProp, ULO...
code_c
code
496
null
<filename>boards/nxp_rt1170_dc_rev.b/flash_algo_b0_silicon/Keil_JLink/rom/fsl_romapi.c /* * Copyright 2017-2020 NXP * All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #include "fsl_romapi.h" /******************************************************************************* * Definitions ********...
code_c
code
3,073
null
<filename>oski-1.0.1h/include/oski/oski_Tiz.h /** * \file include/oski/oski_Tiz.h * \brief Maps the default OSKI interface names to (int, complex_double). */ #if defined(OSKI_REBIND) /** Remove all bindings */ # define OSKI_UNBIND # include <oski/oski.h> # undef OSKI_UNBIND #endif /* Rebind */ #undef DEF_IND_...
code_c
code
147
null
<filename>zxidssofinalizetest.c /* zxidssofinalizetest.c - Test Processing of a7n by zxid_sso_finalize() * Copyright (c) 2006-2007 Symlabs (<EMAIL>), All Rights Reserved. * Author: <NAME> (<EMAIL>) * This is confidential unpublished proprietary source code of the author. * NO WARRANTY, not even implied warranties...
code_c
code
2,161
null
<filename>pybricks-micropython-master/pybricks/hubs/pb_type_primehub.c // SPDX-License-Identifier: MIT // Copyright (c) 2018-2020 The Pybricks Authors #include "py/mpconfig.h" #if PYBRICKS_PY_HUBS && PYBRICKS_HUB_PRIMEHUB #if !PYBRICKS_PY_COMMON_LIGHT_MATRIX || !PYBRICKS_PY_PARAMETERS_BUTTON #error "PYBRICKS_PY_COMM...
code_c
code
792
null
/** * @file * @brief BSD Sockets compatible API definitions * * An API for applications to use BSD Sockets like API. */ /* * Copyright (c) 2017-2018 Linaro Limited * Copyright (c) 2021 Nordic Semiconductor * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_NET_SOCKET_H_ #define ZEPHYR_INCLUDE...
code_c
code
7,912
null
<filename>private/net/snmp/subagent/hostmib/hrswpren.c /* * HrSWRunPerfEntry.c v0.10 * Generated in conjunction with Management Factory scripts: * script version: SNMPv1, 0.16, Apr 25, 1996 * project: D:\TEMP\EXAMPLE\HOSTMIB *****************************************************************...
code_c
code
4,175
null
<gh_stars>0 #include "sample-main.h" /* Get a universe of DMZ values */ DMXUniverse u; int selectedChannel=1; int currentLevel; int delta; void init(void) { /* 8MHz clock, no prescaling (DS, p. 48) */ CLKPR = (1 << CLKPCE); CLKPR = 0; init_lcd(); init_switches(); /* Initial...
code_c
code
566
null
<reponame>ktrzeciaknubisa/jxcore-binary-packaging<filename>deps/mozjs/src/jit/BaselineFrame.h /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * vim: set ts=8 sts=4 et sw=4 tw=99: * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL...
code_c
code
3,960
null
<filename>tests/transform/inline/inline_61/main.c int foo(int a){ return 89 + a; } int main(){ int n = 7; #pragma spf transform inline switch(n) { case 1: foo(0); break; case 2: foo(2); break; case 3: foo(34); break; } return 0; }
code_c
code
74
null
<reponame>fanhua0429/SmartUtils<filename>Example/Pods/Headers/Public/SmartUtils/SMTDebugHelper.h // // SMTDebugHelper.h // SMT-NT-iOS // // Created by 莫冰(平安科技智慧政务团队) on 2018/4/20. // Copyright © 2018年 pingan. All rights reserved. // #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> @interface SMTDebugHelpe...
code_c
code
253
null
<gh_stars>0 /* * * Confidential Information of Telekinesys Research Limited (t/a Havok). Not for disclosure or distribution without Havok's * prior written consent. This software contains code, techniques and know-how which is confidential and proprietary to Havok. * Product and Trade Secret source code contains tr...
code_c
code
910
null
<filename>cloud9_root/src/klee-uclibc/libc/misc/search/hsearch.c /* Copyright (C) 1993, 1995, 1996, 1997, 1998 Free Software Foundation, Inc. Contributed by <NAME> <<EMAIL>> 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 ...
code_c
code
482
null