text stringlengths 84 499k | source stringclasses 6
values | slice stringclasses 1
value | est_tokens int32 24 143k | score float32 |
|---|---|---|---|---|
<gh_stars>0
/* Derived from a test case in
https://sourceware.org/bugzilla/show_bug.cgi?id=1158. */
#include <dlfcn.h>
#include <stdio.h>
#include <stdlib.h>
static int
do_test (void)
{
for (int i = 0; i < 2; ++i)
{
void *dso = dlopen ("$ORIGIN/bug-atexit1-lib.so", RTLD_NOW);
void (*fn) (void) = ... | code_c | code | 144 | null |
#define dimof(x) (sizeof(x) / sizeof(x[0]))
#define arrayparam(x) dimof(x), x
void *LoadFile(const char *fileName, int* size = nullptr);
bool SaveFile(const char *fileName, const uint8_t* buf, int size);
double GetTime();
float Random();
void GoMyDir();
void Toast(const char *text);
void PlayBgm(const char *f... | code_c | code | 432 | null |
/*******************************************************************************
* This file is part of KaHyPar.
*
* Copyright (C) 2017 <NAME> <<EMAIL>>
* Copyright (C) 2017 <NAME> <<EMAIL>>
*
* KaHyPar is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License... | code_c | code | 1,328 | null |
/*
** ClanLib SDK
** Copyright (c) 1997-2020 The ClanLib Team
**
** 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.
**
** Permission is granted to anyone to use this software for a... | code_c | code | 1,105 | null |
<filename>moauth/moauth.h
/*
* Header file for moauth library
*
* Copyright © 2017-2019 by <NAME>
*
* Licensed under Apache License v2.0. See the file "LICENSE" for more
* information.
*/
#ifndef _MOAUTH_H_
# define _MOAUTH_H_
/*
* Types...
*/
typedef struct _moauth_s moauth_t; /* OAuth server connection ... | code_c | code | 471 | null |
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
*
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
*/
/*... | code_c | code | 6,216 | null |
/*=========================================================================
Program: ParaView
Module: pqComparativeRenderView.h
Copyright (c) 2005-2008 Sandia Corporation, Kitware Inc.
All rights reserved.
ParaView is a free software; you can redistribute it and/or modify it
under the terms of t... | code_c | code | 833 | null |
/* bfd back-end for TMS320C[34]x support
Copyright 1996, 1997, 2002, 2003, 2005, 2007, 2012
Free Software Foundation, Inc.
Contributed by <NAME> (<EMAIL>)
This file is part of BFD, the Binary File Descriptor library.
This program is free software; you can redistribute it and/or modify
it under the ... | code_c | code | 721 | null |
/****************************************************************************
Copyright (c) 2019 Cognitics, 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 with... | code_c | code | 2,748 | null |
//NOT ACTIVELY USED
// Network Screening Daemon [v0.1]
// Thorn@Shadowgate
// 12/15/94
// Daemons for Network Security
// screen_d.c
#include <std.h>
#include <security.h>
#include <daemons.h>
inherit DAEMON;
mapping bad_user, bad_mud;
process_incoming();
validate_user();
int cut_off_mud(string bad_mud);
cut_all_... | code_c | code | 478 | null |
#ifndef QTASKBARCONTROL_WIN_H
#define QTASKBARCONTROL_WIN_H
#include "qtaskbarcontrol_p.h"
#include <QWinTaskbarButton>
#include <QIcon>
#include <QColor>
class QWinTaskbarControl : public QTaskbarControlPrivate
{
public:
QWinTaskbarControl(QTaskbarControl *q_ptr);
void setWindow(QWindow *window) override;
bool s... | code_c | code | 230 | null |
typedef struct MemArenaShimEntry {
struct MemArenaShimEntry* next;
u8 data[0];
} MemArenaShimEntry;
// MemArenaShimEntry* -> void*
#define ENT_TO_PTR(e) (&(e)->data[0])
// void* -> MemArenaShimEntry*
#define PTR_TO_ENT(ptr) ( (MemArenaShimEntry*)(((u8*)(ptr)) - sizeof(MemArenaShimEntry)) )
static void* MemArenaS... | code_c | code | 510 | null |
<reponame>zhiqiang-hu/cell-phone-ux-demo
///////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT NOTICE
//
// The following open source license statement does not apply to any
// entity in the Exception List published by FMSoft.
//
// For more information... | code_c | code | 354 | null |
<filename>src/gen_uuid.c<gh_stars>10-100
/*
* gen_uuid.c --- generate a DCE-compatible uuid
*
* Copyright (C) 1996, 1997, 1998, 1999 <NAME>.
*
* %Begin-Header%
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* ... | code_c | code | 4,427 | null |
<filename>FBControlCore/Utility/FBControlCoreFrameworkLoader.h<gh_stars>0
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent righ... | code_c | code | 608 | null |
<reponame>ingramb/hlsl2glslfork<gh_stars>1-10
// Copyright (c) The HLSL2GLSLFork Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE.txt file.
#ifndef GLSL_STRUCT_H
#define GLSL_STRUCT_H
#include "glslCommon.h"
class GlslStruct
{
p... | code_c | code | 312 | null |
<gh_stars>0
#ifndef OPENGLWIDGET_H
#define OPENGLWIDGET_H
#include <QOpenGLWidget>
#include <QOpenGLFunctions_3_3_Core>
#include <QOpenGLDebugMessage>
#include <QTimer>
class Input;
class Camera;
class Interaction;
class Selection;
class DeferredRenderer;
class OpenGLWidget :
public QOpenGLWidget,
pr... | code_c | code | 439 | null |
<reponame>ruoranluomu/AliOS-Things<gh_stars>10-100
/******************************************************************
* *
* Copyright Mentor Graphics Corporation 2004 *
* ... | code_c | code | 1,302 | null |
#import "MWMCatalogCategory.h"
#include "Framework.h"
@interface MWMCatalogCategory (Convenience)
- (instancetype)initWithCategoryData:(kml::CategoryData const &)categoryData bookmarksCount:(uint64_t)count;
@end
| code_c | code | 61 | null |
#ifndef __config_h__
#define __config_h__
const char* getConfigValue(char* key);
#endif // __config_h__ | code_c | code | 30 | null |
<filename>tests/test_search_cmd.c<gh_stars>0
/*
MIT License
Copyright (c) 2019 <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
... | code_c | code | 1,628 | null |
<filename>BlocksKit/Core/NSMutableIndexSet+BlocksKit.h
//
// NSMutableIndexSet+BlocksKit.h
// BlocksKit
//
#import <Foundation/Foundation.h>
/** Block extensions for NSMutableIndexSet.
These utilities expound upon the BlocksKit additions to the immutable
superclass by allowing certain utilities to work on an ins... | code_c | code | 360 | null |
#ifndef QRSEARCHLISTVIEW_H
#define QRSEARCHLISTVIEW_H
#include <functional>
#include <QWidget>
#include "qrglobal.h"
#include "qrwidgets_global.h"
namespace Ui {
class QrSearchListview;
}
NS_QRWIDGETS_BEGIN
class QrListViewData;
class QrListVidewDelegate;
class QrSearchListviewPrivate;
class QRWIDGETSSHARED_EXP... | code_c | code | 237 | null |
<filename>src/gfx/include/userland/interface/khronos/ext/egl_khr_lock_surface_client.c
/*
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 ... | code_c | code | 1,974 | null |
/*
* Arm SCP/MCP Software
* Copyright (c) 2021, Arm Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef CONFIG_TIMER_H
#define CONFIG_TIMER_H
enum config_timer_refclk_sub_element_idx {
TC1_CONFIG_TIMER_DVFS_CPU_KLEIN,
TC1_CONFIG_TIMER_DVFS_CPU_MAKALU,
T... | code_c | code | 123 | null |
//
// BRGeneric.c
// Core
//
// Created by <NAME> on 6/19/19.
// Copyright © 2019 Breadwinner AG. All rights reserved.
//
// See the LICENSE file at the project root for license information.
// See the CONTRIBUTORS file at the project root for a list of contributors.
#include <stdlib.h>
#include <assert.h>
#incl... | code_c | code | 6,472 | null |
#import <MapKit/MKFoundation.h>
#import <MapKit/MKGeometry.h>
@import MapKit;
@import JavaScriptCore;
@protocol JSBNSObject;
@protocol JSBMKLocalSearchRequest <JSExport, JSBNSObject>
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
@property (nonatomic, copy) NSString *nat... | code_c | code | 123 | null |
/* linux/sound/soc/msm/msm7k-pcm.c
*
* Copyright (c) 2008-2009, 2012 The Linux Foundation. All rights reserved.
*
* All source code in this file is licensed under the following license except
* where indicated.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the ... | code_c | code | 5,231 | null |
/****************************************************************************
****************************************************************************
***
*** This header was automatically generated from a Linux kernel header
*** of the same name, to make information necessary for userspace to
*** call i... | code_c | code | 704 | null |
<filename>UTEngine/UI/MainWindow/Statusbar.h
#pragma once
#include "UI/Core/View.h"
class ImageBox;
class TextLabel;
class StatusbarItem;
class Statusbar : public HBoxView
{
public:
Statusbar(View* parent);
StatusbarItem* addItem(std::string text);
};
class StatusbarItem : public HBoxView
{
public:
StatusbarIte... | code_c | code | 113 | null |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef NET_URL_REQUEST_URL_REQUEST_CONTEXT_STORAGE_H_
#define NET_URL_REQUEST_URL_REQUEST_CONTEXT_STORAGE_H_
#include <memory>
#include "base/macro... | code_c | code | 1,745 | null |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/appstream/AppStream_EXPORTS.h>
#include <aws/appstream/model/Entitlement.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
... | code_c | code | 461 | null |
/*********************************************************************
* SEGGER MICROCONTROLLER GmbH & Co. KG *
* Solutions for real time microcontroller applications *
**********************************************************************
* ... | code_c | code | 1,139 | null |
//
// JavaScriptParserTest.h
// ParseKit
//
// Created by <NAME> on 3/27/13.
//
//
#import "TDTestScaffold.h"
@interface JavaScriptParserTest : XCTestCase
@end
| code_c | code | 47 | null |
<gh_stars>100-1000
// Copyright (c) 2014, the Dartino project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE.md file.
#ifndef SRC_VM_LOOKUP_CACHE_H_
#define SRC_VM_LOOKUP_CACHE_H_
#include "src/sh... | code_c | code | 596 | null |
<reponame>Luis-X/MagicCubePackage
//
// QMUIImagePickerPreviewViewController.h
// qmui
//
// Created by <NAME> on 15/5/3.
// Copyright (c) 2015年 QMUI Team. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "QMUIImagePreviewViewController.h"
#import "QMUIAsset.h"
@class QMUIButton;
@class QMUIImagePickerView... | code_c | code | 936 | null |
<gh_stars>0
#ifndef KATANA_LIBTSUBA_TSUBA_READGROUP_H_
#define KATANA_LIBTSUBA_TSUBA_READGROUP_H_
#include <future>
#include <list>
#include <memory>
#include "katana/Result.h"
#include "tsuba/AsyncOpGroup.h"
namespace tsuba {
/// Track multiple, outstanding async writes and provide a mechanism to ensure
/// that t... | code_c | code | 581 | null |
<filename>Pod/musicFramework/xml/PugiAttributeIterImpl.h
// MusicXML Class Library
// Copyright (c) by <NAME>
// Distributed under the MIT License
#pragma once
#include "../xml/XAttributeIterator.h"
#include "../xml/XAttributeIterImpl.h"
#include "../xml/PugiAttribute.h"
#include "../pugixml/pugixml.hpp"
namespace ... | code_c | code | 504 | null |
<filename>Pod/Classes/DLRWaterfallCollectionViewDelegateFlowLayout.h<gh_stars>1-10
//
// DLRWaterfallCollectionViewDelegateFlowLayout.h
// DLRWaterfallCollectionViewLayout
//
// Created by <NAME> on 4/3/15.
// Copyright (c) 2015 Detroit Labs, LLC. All rights reserved.
//
typedef NS_ENUM(NSInteger, DLRWaterfallSort... | code_c | code | 445 | null |
//
// TXThirdBindViewController.h
// TailorX
//
// Created by RogerChen on 17/03/2017.
// Copyright © 2017 utouu. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface TXThirdBindViewController : UIViewController
@end
| code_c | code | 65 | null |
<gh_stars>1-10
/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM e:/builds/moz2_slave/rel-2.0-xr-w32-bld/build/dom/interfaces/smil/nsIDOMTimeEvent.idl
*/
#ifndef __gen_nsIDOMTimeEvent_h__
#define __gen_nsIDOMTimeEvent_h__
#ifndef __gen_nsIDOMEvent_h__
#include "nsIDOMEvent.h"
#endif
/* For IDL files that don't want ... | code_c | code | 1,195 | null |
<gh_stars>1-10
/*
* Copyright (c) 2016 Intel Corporation.
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <string.h>
#include <zephyr/types.h>
#include <sys/__assert.h>
#include <disk/disk_access.h>
#include <errno.h>
#include <init.h>
#include <device.h>
#define RAMDISK_SECTOR_SIZE 512
#if defined(CONFIG_US... | code_c | code | 698 | null |
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
#ifndef _LINUX_UNISTD_H_
#define _LINUX_UNISTD_H_
/*
* Include machine specific syscall numbers
*/
#include <asm/unistd.h>
#endif /* _LINUX_UNISTD_H_ */
| code_c | code | 62 | null |
/*
* Copyright (C) 2005 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... | code_c | code | 456 | null |
<reponame>Xilinx/vmk180-trd
/*
* Copyright(c) 2019-2020 Xilinx, Inc. All rights reserved.
*
* This source code is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License,
* version 2, as published by the Free Software Foundation.
*
* This program... | code_c | code | 41,804 | null |
<reponame>wonderful666/marx-10.1.0
/*
* Huawei Touchscreen Driver
*
* Copyright (c) 2012-2019 Ilitek.
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and
* may be copied, distributed, and modified under those terms.
*
* ... | code_c | code | 2,981 | null |
<reponame>lsht312/schism
/*
* ACE/vis - Visualization of Flow and Transport
*
* <NAME> and <NAME>
*
* Copyright 1990-2003 Oregon Health and Science University
* All Rights Reserved
*
*
*/
/*
* adcircwin.c - read flows and set display parameters for
* ADCIRC flows (2d time dependent data)
*
*/
#ifndef lin... | code_c | code | 13,673 | null |
<filename>include/shell/shell_fprintf.h
/*
* Copyright (c) 2018 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef SHELL_FPRINTF_H__
#define SHELL_FPRINTF_H__
#include <zephyr.h>
#include <stdbool.h>
#include <stddef.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef void (*shell_fprintf... | code_c | code | 577 | null |
#include <pch.h>
#include "SympleCraft/World/Transform.h"
#include "SympleCraft/Math/Matrix.h"
Transform CreateTransform()
{
Transform transform = malloc(sizeof(struct Transform));
if (!transform)
return NULL;
transform->Translation = CreateVector();
transform->Rotation = CreateVector();
transform->Scale = Cr... | code_c | code | 740 | null |
<reponame>tswast/arrow
// 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... | code_c | code | 7,373 | null |
<reponame>Fookdies301/GrinPlusPlus
#pragma once
#include <Core/Models/BlockHeader.h>
#include <Core/Models/SpentOutput.h>
#include <Core/Traits/Batchable.h>
#include <unordered_map>
#include <memory>
// Forward Declarations
class BlockSums;
class FullBlock;
class Commitment;
class OutputLocation;
class Chain;
class ... | code_c | code | 677 | null |
<gh_stars>1-10
//===- llvm/ADT/SmallVector.h - 'Normally small' vectors --------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License.
// ==========================================================================... | code_c | code | 5,646 | null |
<filename>NerdyUI/Private/NERStaticTableView.h
//
// NERStaticTableView.h
// NerdyUI
//
// Created by nerdycat on 2016/11/9.
// Copyright © 2016 nerdycat. All rights reserved.
//
#import <UIKit/UIKit.h>
typedef enum : NSUInteger {
NERStaticSectionCheckStyleNone,
NERStaticSectionCheckStyleSingle,
NERSt... | code_c | code | 208 | null |
// Copyright (c) 2018-2020 The Blocknet developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BLOCKNET_QT_BLOCKNETWALLET_H
#define BLOCKNET_QT_BLOCKNETWALLET_H
#include <qt/blocknetcreateproposal.h>
#include <qt/bl... | code_c | code | 1,283 | null |
<filename>gst/elements/gvametapublish/gstgvametapublish.h
/*******************************************************************************
* Copyright (C) 2018-2019 Intel Corporation
*
* SPDX-License-Identifier: MIT
******************************************************************************/
#ifndef _GST_GVA_ME... | code_c | code | 618 | null |
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* o... | code_c | code | 492 | null |
<gh_stars>1-10
/*
* Copyright © 2012-2015 VMware, Inc. 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 req... | code_c | code | 1,688 | null |
<reponame>nicholasjalbert/Thrille
/*****************************************************************************
* thread.c: x264 threaded input module
*****************************************************************************
* Copyright (C) 2003-2009 x264 project
*
* Authors: <NAME> <<EMAIL>>
* <NAM... | code_c | code | 1,039 | null |
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef THIRD_PARTY_BLINK_RENDERER_MODULES_PEERCONNECTION_ADAPTERS_P2P_QUIC_TRANSPORT_H_
#define THIRD_PARTY_BLINK_RENDERER_MODULES_PEERCONNECTION_ADAPTER... | code_c | code | 1,725 | null |
// Copyright 2019 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SRC_VIRTUALIZATION_BIN_GUEST_VSHC_H_
#define SRC_VIRTUALIZATION_BIN_GUEST_VSHC_H_
#include <lib/async-loop/cpp/loop.h>
#include <lib/async-loop/de... | code_c | code | 232 | null |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include "event.h"
#define LOG_MESSAGES "/var/log/messages"
#define CMD_FILE_LINE_NUM "/usr/bin/wc -l %s | awk '{print $1}'"
#define CMD_EVENT_CODE_ABNORMAL "/usr/bin/sed -n '%u,%up' %s |grep 'code=\\[[1-9][0-9]*\\]'"
#define LEN_BUF 64
#... | code_c | code | 739 | null |
<reponame>Manderby/nalib
#include "../../NABuffer.h"
// /////////////////////////////////////
// Whole Buffer Functions
// /////////////////////////////////////
NA_DEF NAString* naNewStringWithBufferBase64Encoded(NABuffer* buffer, NABool appendEndSign){
NAInt totalbyteSize;
NAInt triples;
NAInt sizeremainder;
... | code_c | code | 2,622 | null |
/**
******************************************************************************
* @file stm32f0xx_ip_dbg.c
* @author MCD Application Team
* @version V1.4.0
* @date 24-July-2014
* @brief This file provides all STM32F0xx peripherals pointers initialization.
*************************************... | code_c | code | 2,001 | null |
<reponame>rafcabezas/FreeRDP
/**
* FreeRDP: A Remote Desktop Protocol client.
* Video Redirection Virtual Channel - Constants
*
* Copyright 2010-2011 <NAME>
* Copyright 2012 Hewlett-Packard Development Company, L.P.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file ... | code_c | code | 1,565 | null |
/**
* @file
* @brief
*
* @date 28.09.2012
* @author <NAME>
*/
#ifndef MEM_VMEM_H_
#define MEM_VMEM_H_
#include <hal/mmu.h>
#include <stddef.h>
#include <sys/mman.h>
#define VMEM_PAGE_SIZE MMU_PAGE_SIZE
#define VMEM_PAGE_MASK MMU_PAGE_MASK
#define VMEM_PAGE_WRITABLE (1 << 0)
#define VMEM_PAGE_... | code_c | code | 612 | null |
#pragma once
#ifndef _PATH_SEGMENT_
#define _PATH_SEGMENT_
// Engine headers.
#include <Path/Path.h>
/// <summary>
/// A complete cubic bezier curve which is used as a segment to create large paths.
/// </summary>
class Path::Segment final
{
public:
#pragma region Constructors and destructor
... | code_c | code | 1,514 | null |
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putchar_fd.c :+: :+: :+: ... | code_c | code | 620 | null |
/*
* RemoveNoSpawnAreaTask.h
*
* Created on: 16/05/2012
* Author: victor
*/
#ifndef REMOVENOSPAWNAREATASK_H_
#define REMOVENOSPAWNAREATASK_H_
#include "engine/engine.h"
#include "server/zone/objects/area/ActiveArea.h"
class RemoveNoSpawnAreaTask : public Task {
ManagedWeakReference<ActiveArea*> area;
pu... | code_c | code | 216 | null |
<reponame>Theodus/verona
// Copyright Microsoft and Project Verona Contributors.
// SPDX-License-Identifier: MIT
#pragma once
#include "../ds/forward_list.h"
#include "../region/region.h"
#include "../sched/epoch.h"
#include "../sched/schedulerthread.h"
#include "../test/systematic.h"
#include <queue>
namespace vero... | code_c | code | 746 | null |
//
// Copyright (C) 1998 Microsoft Corporation
//
#define UNICODE
#include <mm\mm.h>
#include <mm\array.h>
#include <mm\opt.h>
#include <mm\optl.h>
#include <mm\optdefl.h>
#include <mm\optclass.h>
#include <mm\classdefl.h>
#include <mm\bitmask.h>
#include <mm\reserve.h>
#in... | code_c | code | 373 | null |
<reponame>gavinp/chromium
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_RENDERER_AUTOFILL_PASSWORD_GENERATION_MANAGER_H_
#define CHROME_RENDERER_AUTOFILL_PASSWORD_GENERATION_MANAGER... | code_c | code | 533 | null |
//===- AttributeDetail.h - MLIR Affine Map details Class --------*- C++ -*-===//
//
// Copyright 2019 The MLIR 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
//
// htt... | code_c | code | 6,200 | null |
<reponame>faturita/mne-python<filename>mne/include/qt/QtQml/5.6.2/QtQml/private/qv4domerrors_p.h
/****************************************************************************
**
** Copyright (C) 2015 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the QtQml module of the Qt Toolki... | code_c | code | 957 | null |
<reponame>kunsonx/remill
/*
* Copyright (c) 2021 Trail of Bits, 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 req... | code_c | code | 391 | null |
/*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or t... | code_c | code | 1,516 | null |
/*******************************************************************************
* This file is part of Tiny3D (Tiny 3D Graphic Rendering Engine)
* Copyright (C) 2015-2020 <NAME>
* For latest info, see https://github.com/answerear/Tiny3D
*
* This program is free software: you can redistribute it and/or modify
*... | code_c | code | 3,058 | null |
#ifndef TSP_H
#define TSP_H
typedef struct tsp_problem_t_t tsp_problem_t;
typedef struct tsp_city_t_t tsp_city_t;
typedef struct element_t_t element_t;
void tsp_free_problem();
void tsp_init_problem(int num_cities);
int *tsp_create_random_solution();
float tsp_cost_function(element_t** solution);
struct tsp_problem... | code_c | code | 162 | null |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_CONTROLLER_H_
#define UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_CONTROLLER_H_
#pragma once
#include "base/s... | code_c | code | 706 | null |
<gh_stars>0
//
// VROAudioPlayeriOS.h
// ViroRenderer
//
// Created by <NAME> on 11/6/16.
// Copyright © 2016 Viro Media. All rights reserved.
//
#ifndef VROAudioPlayeriOS_h
#define VROAudioPlayeriOS_h
#include "VROAudioPlayer.h"
#include "VROSoundDataDelegate.h"
#include "VROSoundData.h"
#include <AVFoundation/A... | code_c | code | 683 | null |
#pragma once
#include "CoreMinimal.h"
#include "Engine/DataAsset.h"
#include "GibPartsList.generated.h"
class UStaticMesh;
class UNiagaraComponent;
class UMaterialInstance;
UCLASS(Blueprintable)
class UGibPartsList : public UDataAsset {
GENERATED_BODY()
public:
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta... | code_c | code | 166 | null |
//
// PCAppDelegate.h
// PCRotaryWheel
//
// Created by <NAME> on 04/20/2016.
// Copyright (c) 2016 <NAME>. All rights reserved.
//
@import UIKit;
@interface PCAppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
| code_c | code | 77 | null |
<filename>zircon/third_party/lib/acpica/source/components/dispatcher/dsutils.c<gh_stars>1-10
/*******************************************************************************
*
* Module Name: dsutils - Dispatcher utilities
*
******************************************************************************/
/*
* Copyr... | code_c | code | 8,388 | null |
#include "v3p_f2c.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef KR_headers
extern integer s_cmp();
logical l_le(a,b,la,lb) char *a, *b; ftnlen la, lb;
#else
extern integer s_cmp(char *, char *, ftnlen, ftnlen);
logical l_le(char *a, char *b, ftnlen la, ftnlen lb)
#endif
{
return(s_cmp(a,b,la,lb) <= 0);... | code_c | code | 101 | null |
<reponame>data-man/libfsm
/*
* Copyright 2008-2017 <NAME>
*
* See LICENCE for the full copyright terms.
*/
#ifndef FSM_INTERNAL_H
#define FSM_INTERNAL_H
#include <limits.h>
#include <stdlib.h>
#include <fsm/fsm.h>
#include <fsm/options.h>
#include "common/check.h"
struct bm;
struct edge_set;
struct state_set;
... | code_c | code | 1,130 | null |
/*
Copyright 2012 Aphid Mobile
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, software
d... | code_c | code | 533 | null |
#ifndef _ESBMC_SOLVERS_BOOLECTOR_BOOLECTOR_CONV_H_
#define _ESBMC_SOLVERS_BOOLECTOR_BOOLECTOR_CONV_H_
#include <cstdio>
#include <solvers/smt/smt_conv.h>
#include <util/irep2.h>
#include <util/namespace.h>
extern "C"
{
#include <boolector/boolector.h>
}
class btor_smt_ast : public solver_smt_ast<BoolectorNode *>
{
p... | code_c | code | 1,222 | null |
<reponame>nistefan/cmssw<filename>FastSimulation/ForwardDetectors/plugins/AcceptanceTableHelper.h
#ifndef FastSim_ProtonTaggerAcceptanceHelper_H
#define FastSim_ProtonTaggerAcceptanceHelper_H
/// Access to acceptance tables stored in ROOT file
/**
* Helper class to get actual values from acceptance tables stored as ... | code_c | code | 476 | null |
<reponame>mathxyz/math21<filename>src/ml/functions/batch_normalization/batch_normalization_cpu.h
/* Copyright 2015 The math21 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 Licen... | code_c | code | 447 | null |
<gh_stars>0
#ifndef OriginalLabel_h
#define OriginalLabel_h
/** This is free and unencumbered software released into the public domain.
The authors of ISIS do not claim copyright on the contents of this file.
For more details about the LICENSE terms and the AUTHORS, you will
find files of those names at the top level ... | code_c | code | 467 | null |
#ifndef OBASEGROUP_H__
#define OBASEGROUP_H__
enum
{
BASEGROUP_SUBFACTOR_CURVE = 1001,
BASEGROUP_SUBFACTOR_CURVE_REAL = 1002,
BASEGROUP_SUBFACTOR_CURVE_SLIDER = 1003,
BASEGROUP_SUBFACTOR_SURFACE_U = 1006,
BASEGROUP_SUBFACTOR_SURFACE_U_REAL = 1007,
BASEGROUP_SUBFACTOR_SURFACE_U_SLIDER = 1008,
BASEGROUP_SUBFACTOR... | code_c | code | 246 | null |
<reponame>magiskboy/jq-alternative
#include "./object.h"
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int __hash_function(char *key, int capacity) {
int sum = 0, i;
for (int i = 0; i < strlen((char *)key); ++i) {
sum += (int)key[i];
}
double ipart, fpart;
fpart = modf(su... | code_c | code | 433 | null |
/*
* Copyright (C) 2013-2014 Jolla Ltd.
* Contact: <NAME> <<EMAIL>>
*
* This file is part of qmf-notifications-plugin
*
* You may use this file under the terms of the BSD license as follows:
*
* "Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the ... | code_c | code | 982 | null |
<reponame>ezmaxinc/eZmax-SDK-c
#ifndef ezsignfolder_reorder_v1_request_TEST
#define ezsignfolder_reorder_v1_request_TEST
// the following is to include only the main from the first c file
#ifndef TEST_MAIN
#define TEST_MAIN
#define ezsignfolder_reorder_v1_request_MAIN
#endif // TEST_MAIN
#include <stdlib.h>
#include ... | code_c | code | 620 | null |
// =====================================================================================
// This software is licensed for use with Texas Instruments C28x
// family DSCs. This license was provided to you prior to installing
// the software. You may review this license by consulting a copy of
// the agreement in th... | code_c | code | 841 | null |
<filename>native_libs/src/Analysis.h
#pragma once
#include <map>
#include <memory>
#include <unordered_map>
#include <vector>
#include "Core/Common.h"
#include "Core/ArrowUtilities.h"
DFH_EXPORT std::shared_ptr<arrow::Table> countValues(const arrow::Column &column);
DFH_EXPORT std::shared_ptr<arrow::Column> calcula... | code_c | code | 1,164 | null |
<filename>src/drivers/distance_sensor/ll40ls/LidarLite.h<gh_stars>0
/****************************************************************************
*
* Copyright (c) 2014-2019 PX4 Development Team. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permi... | code_c | code | 940 | null |
/*
* kea.h
* LibKEA
*
* Created by <NAME> on 26/07/2013.
* Copyright 2013 LibKEA. All rights reserved.
*
* This file is part of LibKEA.
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal ... | code_c | code | 1,391 | null |
// This is a part of the Active Template Library.
// Copyright (C) 1996-1998 Microsoft Corporation
// All rights reserved.
//
// This source code is only intended as a supplement to the
// Active Template Library Reference and related
// electronic documentation provided with the library.
// See these sources fo... | code_c | code | 27,817 | null |
// Copyright (c) 2018-2020, <NAME>. For more information see 'LICENSE'
#pragma once
#include "serializing/ISerializable.h"
#include "serializing/Serializer.h"
#include "serializing/Deserializer.h"
namespace AE::Serializing
{
//
// Object Factory
//
class ObjectFactory
{
// types
private:
using Serialize_... | code_c | code | 1,578 | null |
<filename>fs/aio/aioc_contain.c
/****************************************************************************
* fs/aio/aioc_contain.c
*
* 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... | code_c | code | 1,284 | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.