text stringlengths 84 499k | source stringclasses 6
values | slice stringclasses 1
value | est_tokens int32 24 143k | score float32 |
|---|---|---|---|---|
#include <stdio.h>
//while循环语句
/*
int main()
{
int a = 20;
while (a > 10)
{
scanf("%d", &a);
printf("a = %d\n", a);
}
return 0;
}
*/
//do...while循环语句
/*
int main()
{
int a = 1;
do //执行循环,直到while条件满足
{
a++;
printf("a = %d\n", a);
} while (a < 10... | code_c | code | 221 | null |
<reponame>urids/XSCALAMPI<gh_stars>1-10
/*
* Copyright (c) 2004-2007 The Trustees of Indiana University and Indiana
* University Research and Technology
* Corporation. All rights reserved.
* Copyright (c) 2004-2005 The University of Tennessee and The University
* ... | code_c | code | 1,002 | null |
<gh_stars>1000+
/*-------------------------------------------------------------------------
*
* rint.c
* rint() implementation
*
* By <NAME>, donated to the public domain
*
* IDENTIFICATION
* src/port/rint.c
*
*-------------------------------------------------------------------------
*/
#include "c.h"
#... | code_c | code | 670 | null |
<gh_stars>1-10
#include <stdint.h>
#include <stdlib.h>
#include <assert.h>
#include <stdio.h>
#include "gamma.h"
#include <stdbool.h>
#include <string.h>
int main() {
/*
scenario: test_random_actions
uuid: 225279945
*/
/*
random actions, total chaos
*/
gamma_t* board = gamma_new(4, 8, 6, 5);
assert( board != NULL );... | code_c | code | 1,559 | null |
<gh_stars>1-10
/**
* Copyright (c) 2015-present, Horcrux.
* All rights reserved.
*
* This source code is licensed under the MIT-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#import <Foundation/Foundation.h>
#import "UIBezierPath-Points.h"
#import "RNSVGPath.h"
#import "... | code_c | code | 161 | null |
<gh_stars>1-10
/*TEST
PATH='tests/ohioTest.c'
CCFLAGS=""
INPUT=""
OUTPUT='PE:0 result is 1.000000 + 2.000000i\n'
STATUS=0
SKIP=1
TEST*/
#include <stdio.h>
#include "mpi.h"
/* Ohio Supercomputer Center */
/* Modified to single rank -- pjm */
typedef struct {
double real,imag;
} complex;
void cprod(complex *in... | code_c | code | 352 | null |
#pragma once
#include <c10/util/overloaded.h>
#include <torch/expanding_array.h>
#include <torch/nn/cloneable.h>
#include <torch/nn/init.h>
#include <torch/nn/modules/common.h>
#include <torch/nn/modules/utils.h>
#include <torch/nn/options/conv.h>
#include <torch/nn/pimpl.h>
#include <torch/types.h>
#include <torch/... | code_c | code | 4,630 | null |
<filename>webrtc/include/third_party/blink/renderer/core/trustedtypes/trusted_script_url.h
// Copyright 2017 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_CORE_TRUSTEDTYPES_TRUSTED_SC... | code_c | code | 278 | null |
<filename>include/raptor/mapper.h
/*
* mapper.h
*
* Created on: Sep 2, 2017
* Author: <NAME>
*/
#ifndef SRC_RAPTOR_MAPPER_H_
#define SRC_RAPTOR_MAPPER_H_
#include <cstdint>
#include <memory>
#include <vector>
#include <sequences/sequence_file.h>
#include <containers/range.h>
#include <containers/target_hit... | code_c | code | 700 | null |
<reponame>soulslicer/QueueFTP<filename>QueueFTP.h<gh_stars>10-100
//
// QueueFTP.h
// nwTest
//
// Created by <NAME> on 22/10/12.
// Copyright (c) 2012 <NAME>. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <ASIHTTPRequest/ASINetworkQueue.h>
#import <ASIHTTPRequest/ASIFormDataRequest.h>
/******... | code_c | code | 811 | null |
<filename>altairz80source/i86_ops.c
/*
* Dos/PC Emulator
* Copyright (C) 1991 <NAME>
*
*
* The file is part of GDE.
*
* GDE 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 1, o... | code_c | code | 43,319 | null |
<reponame>arobert01/ITK
/*=========================================================================
*
* Copyright NumFOCUS
*
* 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
*
* ... | code_c | code | 1,611 | null |
<reponame>j3270/SAMD_Experiments
/**
* \file
*
* \brief HID Device Profile
*
* Copyright (c) 2017-2018 Microchip Technology Inc. and its subsidiaries.
*
* \asf_license_start
*
* \page License
*
* Subject to your compliance with these terms, you may use Microchip
* software and any derivatives exclusively wi... | code_c | code | 2,774 | null |
<reponame>andypohl/kent
/* gfxPoly - two dimensional polygon. */
#include "common.h"
#include "gfxPoly.h"
struct gfxPoly *gfxPolyNew()
/* Create new (empty) polygon */
{
struct gfxPoly *poly;
AllocVar(poly);
return poly;
}
void gfxPolyFree(struct gfxPoly **pPoly)
/* Free up resources associated with polygon */
{
st... | code_c | code | 247 | null |
/**
* @file writetest.c
* @author <NAME>
* @license MIT
* @date 2014
*/
#include "sg.h"
#include "opts.h"
#include "common.h"
// for perror
#include <stdio.h>
// for exit, EXIT_SUCCESS, EXIT_FAILURE, NULL
#include <stdlib.h>
// for S_IRUSR, S_IRGRP, S_IWUSR, S_IWGRP
#include <sys/stat.h>
// for open
#include <fc... | code_c | code | 456 | null |
<gh_stars>0
/**
* \file psa/crypto_config.h
* \brief PSA crypto configuration options (set of defines)
*
*/
#if defined(MBEDTLS_PSA_CRYPTO_CONFIG)
/**
* When #MBEDTLS_PSA_CRYPTO_CONFIG is enabled in mbedtls_config.h,
* this file determines which cryptographic mechanisms are enabled
* through the PSA Cryptography... | code_c | code | 1,502 | null |
<gh_stars>10-100
#pragma once
#include <string>
#include <vector>
#include <map>
#include <boost/algorithm/string.hpp>
#include "httpclientlog.h"
namespace
{
inline unsigned char tohex(const unsigned char x)
{
return (x > 9) ? (x - 10 + 'A') : (x + '0');
}
inline unsigned... | code_c | code | 1,427 | null |
/*
* If not stated otherwise in this file or this component's LICENSE file the
* following copyright and licenses apply:
*
* Copyright 2020 RDK Management
*
* 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 cop... | code_c | code | 8,752 | null |
/*
* This file is a part of the open source stm32plus library.
* Copyright (c) 2011,2012,2013 <NAME> <www.andybrown.me.uk>
* Please see website for licensing terms.
*/
#pragma once
// ensure the MCU series is correct
#ifndef STM32PLUS_F0
#error This class can only be used with the STM32F0 series
#endif... | code_c | code | 750 | null |
--- source4/librpc/rpc/pyrpc.c.orig 2019-12-06 10:11:08 UTC
+++ source4/librpc/rpc/pyrpc.c
@@ -17,6 +17,9 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+/* for memset_s() visibility */
+#define __STDC_WANT_LIB_EXT1__ 1
+
#include <Python.h>
#include "python/py3compat.h"
#include ... | code_c | code | 95 | null |
// license:BSD-3-Clause
// copyright-holders:<NAME>
/**********************************************************************
Sega SG-1000 expansion slot emulation
**********************************************************************
**********************************************************************/
#ifnde... | code_c | code | 718 | null |
<reponame>greenrazer/o3de<filename>Gems/EMotionFX/Code/EMotionFX/CommandSystem/Source/NodeGroupCommands.h<gh_stars>1-10
/*
* Copyright (c) Contributors to the Open 3D Engine Project.
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apac... | code_c | code | 933 | null |
#ifndef SHAREDMEMORY_H_777736932196
#define SHAREDMEMORY_H_777736932196
#include <stdlib.h>
#include <string.h>
#include <fcntl.h> /* For O_* constants */
#include "util.h"
#include "conf.h"
#include "client.h"
#include "channel.h"
#include "sharedmemory_struct.h"
void Sharedmemory_init( int bindport, int bindport6... | code_c | code | 132 | 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/svg/nsIDOMSVGAnimatedEnum.idl
*/
#ifndef __gen_nsIDOMSVGAnimatedEnum_h__
#define __gen_nsIDOMSVGAnimatedEnum_h__
#ifndef __gen_domstubs_h__
#include "domstubs.h"
#endif
/* For IDL files that ... | code_c | code | 1,078 | null |
<gh_stars>0
/*******************************************************************************
* File Name: I_Heartbeat.h
* Version 2.10
*
* Description:
* This file contains the function prototypes and constants used in
* the 8-bit Waveform DAC (WaveDAC8) Component.
*
************************************************... | code_c | code | 2,033 | null |
#pragma once
#include <string>
#include <iostream>
using namespace std;
#include <boost/dll.hpp>
using namespace boost;
#include "framework/framework_i.h"
#include "framework_ex/bundle_context_ex_i.h"
#include "framework_ex/service_ex_i.h"
#ifdef WIN32 // Windows环境
const char* c_dll_extname = ".dll";
#else ... | code_c | code | 590 | null |
<gh_stars>1-10
/*
* Copyright (c) 2018, Oracle and/or its affiliates.
*
* 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 copyrigh... | code_c | code | 7,530 | null |
<reponame>vitei/Usa<filename>Engine/HID/IGamepad.h
/****************************************************************************
// Usagi Engine, Copyright © Vitei, Inc. 2013
// Description: The abstract interface for a gamepad
*****************************************************************************/
#pragma once... | code_c | code | 319 | null |
#ifndef MMC_QUEUE_H
#define MMC_QUEUE_H
struct request;
struct task_struct;
struct mmc_blk_request {
struct mmc_request mrq;
struct mmc_command sbc;
struct mmc_command cmd;
struct mmc_command stop;
struct mmc_data data;
};
struct mmc_queue_req {
struct request *req;
struct mmc_blk_request brq;
struct scatt... | code_c | code | 357 | null |
<reponame>cakehonolulu/GameGirl<filename>render.c
#include <render.h>
#include <ppu.h>
#include <mmu.h>
#include <SDL2/SDL.h>
void m_sdl_draw_screen(m_dmg_t *m_dmg)
{
SDL_UpdateTexture(m_dmg->m_texture, NULL, m_dmg->ppu->framebuffer, 160 * sizeof(uint32_t));
SDL_RenderClear(m_dmg->m_renderer);
SDL_RenderCopy(m_dmg-... | code_c | code | 302 | null |
/**
******************************************************************************
* @file kms_platf_objects_interface.h
* @author MCD Application Team
* @brief This file contains definitions for Key Management Services (KMS)
* module platform objects management configuration interface
******... | code_c | code | 896 | null |
<filename>tests/merge4.h
#ifndef PHP_XDIFF_H
#define PHP_XDIFF_H
#foo
#define phpext_xdiff_ptr &diff_module_entry
#ifdef PHP_WIN32
#define PHP_XDIFF_API __declspec(dllexport)
#else
#define PHP_XDIFF_API
#endif
#ifdef ZTS
#include "TSRM.h"
#endif
PHP_MINIT_FUNCTION(foo);
PHP_MINFO_FUNCTION(foo);
PHP_FUNCTION(xdiff_... | code_c | code | 173 | null |
//===----------------------------------------------------------------------===//
//
// Peloton
//
// delete_plan.h
//
// Identification: src/backend/planner/delete_plan.h
//
// Copyright (c) 2015-16, Carnegie Mellon University Database Group
//
//===----------------------------------------------... | code_c | code | 424 | null |
<gh_stars>1-10
/*
* Copyright 2013, <NAME> <<EMAIL>>.
* All rights reserved. Distributed under the terms of the MIT License.
*/
#ifndef BITMAP_VIEW_H
#define BITMAP_VIEW_H
#include "SharedBitmap.h"
#include <View.h>
class BitmapView : public BView {
public:
BitmapView(const char* name);
virtual ~... | code_c | code | 266 | null |
#include "gen_table.h"
const uint8_t lex_classes[256] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x01, 0x03, 0x04, 0x05, 0x06, 0x07, 0x07, 0x07, 0x07, 0x0... | code_c | code | 52,472 | null |
<filename>scripts/4_World/Classes/UserActionsComponent/Actions/Continuous/ActionUseRangefinder.c<gh_stars>1-10
class ActionUseRangefinderCB : ActionContinuousBaseCB
{
override void CreateActionComponent()
{
m_ActionComponent = new CAContinuousTime( 1.0 );
}
};
class ActionUseRangefinder : ActionContinuousBase
{
... | code_c | code | 483 | null |
<gh_stars>0
#include <stdio.h>
int main() {
char ac[] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9,};
char *p = ac;
char *p1 = &ac[5];
printf("p =%p\n", p);
printf("p+1=%p\n", p + 1);
printf("p1=%p\n", p1);
printf("p1-p=%d\n", p1 - p);
int ai[] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9,};
int *q = ai;
... | code_c | code | 135 | null |
<reponame>jordanshoebox/webp<filename>internal/libwebp/include/webp.h
// Copyright 2014 <<EMAIL>{AT}<EMAIL>>. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
#ifndef WEBP_H_
#define WEBP_H_
#include <stddef.h>
#include <stdint.h>
... | code_c | code | 700 | null |
<filename>Linux/input.c
#include <stdio.h>
#include <stdlib.h> /* exit, malloc */
#include <string.h>
#include <ctype.h> /* isspace */
#include "defines.h" /* type definitions and macros for flags and MAX limits */
#include "structs.h" /* structures used (needs defines.h) */
#include "maindefs.h" /* ... | code_c | code | 3,884 | null |
<gh_stars>0
/*
* device-manager
*
* Copyright (c) 2015 Samsung Electronics Co., Ltd.
*
* 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
... | code_c | code | 358 | null |
// Copyright (c) <NAME>. All rights reserved.
// Licensed under the MIT License.
#pragma once
#include "apidef.h"
#include <ext/vector_int2.hpp>
#include <map>
struct SDL_KeyboardEvent;
namespace mipe3d
{
// ------------------------ keyboard ------------------------
enum class Key
{
UP,
DOWN,
LEFT,
... | code_c | code | 483 | null |
<filename>benchmarks/MinimumSpanningForest/Kruskal/MinimumSpanningForest.h
// This code is part of the project "Theoretically Efficient Parallel Graph
// Algorithms Can Be Fast and Scalable", presented at Symposium on Parallelism
// in Algorithms and Architectures, 2018.
// Copyright (c) 2018 <NAME>, <NAME>, and <NAME>... | code_c | code | 1,008 | null |
<gh_stars>1-10
/****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
... | code_c | code | 704 | null |
<reponame>finogeeks/mop-flutter-plugin<gh_stars>0
//
// MOP_setFinStoreConfigs.h
// mop
//
// Created by 王滔 on 2021/12/20.
//
#import "MOPBaseApi.h"
NS_ASSUME_NONNULL_BEGIN
@interface MOP_setFinStoreConfigs : MOPBaseApi
@property(nonatomic, strong) NSArray *storeConfigs;
@end
NS_ASSUME_NONNULL_END
| code_c | code | 87 | null |
/*
* Driver for Microtune MT2131 "QAM/8VSB single chip tuner"
*
* Copyright (c) 2006 <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 Licens... | code_c | code | 318 | null |
<reponame>ivanyang1984/chemIsArt
//
// AXRequestGenerator.h
// RTNetworking
//
// Created by casa on 14-5-14.
// Copyright (c) 2014年 anjuke. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface AIFRequestGenerator : NSObject
+ (instancetype)sharedInstance;
- (NSURLRequest *)generateGETRequestWit... | code_c | code | 316 | null |
#ifndef lint
static char Rcs_Id[] = "$Id: tree.c,v 1.56 1995/01/08 23:23:49 geoff Exp $";
#endif
/*
* tree.c - a hash style dictionary for user's personal words
*
* <NAME>, 1983
* Hash support added by <NAME>, 1987
*
* Copyright 1987, 1988, 1989, 1992, 1993, <NAME>, <NAME>, CA
* All rights reserved.
*
* Redis... | code_c | code | 6,617 | null |
#pragma once
#include <aml/array.h>
#include <aml/defs.h>
#include <aml/device.h>
#include <aml/functors.h>
#include <aml/handle.h>
#include <aml/immutable_array.h>
#include <aml/impl/expression.h>
namespace aml {
template <typename OpType, int Dim>
class Expression {
public:
Expression(const OpType &op, const Sha... | code_c | code | 6,488 | null |
<filename>Module 1/Chapter03/src/FreeCamera.h<gh_stars>10-100
#pragma once
#include "abstractcamera.h"
class CFreeCamera :
public CAbstractCamera
{
public:
CFreeCamera(void);
~CFreeCamera(void);
void Update();
void Walk(const float dt);
void Strafe(const float dt);
void Lift(const float dt);
void SetTr... | code_c | code | 154 | null |
/****************************************************************************
* boards/arm/tiva/tm4c1294-launchpad/src/tm4c_userleds.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 informatio... | code_c | code | 993 | null |
<reponame>corinnekrych/aerogear-ios
/*
* JBoss, Home of Professional Open Source.
* Copyright Red Hat, Inc., and individual contributors
*
* 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
... | code_c | code | 318 | null |
<filename>Kernel/sys/sound.c<gh_stars>0
#include "include/sound.h"
#include "include/timer.h"
#include "include/video.h"
static const int SOUND_DEBUG = 0;
//! output sound to speaker
void play(uint32_t frequency) {
if ((frequency<19) || (frequency>22000)) return;
//
frequency = 1193180L / frequency;
_outport(0... | code_c | code | 188 | null |
#include<stdio.h>
float a, b, c;
float soma (float a, float b) {
c = a + b;
return (c);
}
float subtrai (float a, float b) {
c = a - b;
return (c);
}
float multiplica (float a, float b) {
c = a*b;
return (c);
}
float divide (float a, float b) {
c = a/b;
return (c);
}
int main () {
printf("soma: ");
scanf("%f ... | code_c | code | 165 | null |
<reponame>wenmobo/WBTagsView<filename>WB_TagsViewDemo/WB_TagsView/WBTagsView/WBTagsView.h<gh_stars>0
//
// WB_TagsView.h
// WB_TagsView
//
// Created by WMB on 2017/9/10.
// Copyright © 2017年 文波. All rights reserved.
//
#import <UIKit/UIKit.h>
@class WBTagsView;
@protocol WB_TagsViewDelegate <NSObject>
@optional... | code_c | code | 818 | null |
//manuel.c - Vendor for the thief tailor in Tharis. Circe 9/9/04
#include <std.h>
inherit VENDOR;
void create() {
::create();
set_name("Manuel");
set_id(({"Manuel","manuel","shop keeper","shopkeeper","tailor","vendor"}));
set_short("Manuel, a massive dark-skinned human");
set("aggressive", 0);
set_l... | code_c | code | 468 | null |
<filename>XYLottery/XYLottery/Classes/Mian/UIPopover/XYPresentationController.h<gh_stars>10-100
//
// XYPresentationController.h
// XYLottery
//
// Created by 渠晓友 on 2017/8/2.
// Copyright © 2017年 渠晓友. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface XYPresentationController : UIPresentationController
... | code_c | code | 107 | null |
#ifndef __COMP_GEODESICS_H__
#define __COMP_GEODESICS_H__
#include <vector>
#include "geodesic_algorithm_exact.h"
#include "geodesic_algorithm_dijkstra.h"
using namespace std;
// Compute the geodesic distances from the source vertices to all other vertices
// on the mesh. Store output in the distances vector, which ... | code_c | code | 1,671 | null |
<gh_stars>0
/* Copyright 2018 Google LLC
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 applicable law or agreed to in writing, s... | code_c | code | 3,301 | null |
// --------------------------------------------------------------------------
// OpenMS -- Open-Source Mass Spectrometry
// --------------------------------------------------------------------------
// Copyright The OpenMS Team -- Eberhard Karls University Tuebingen,
// ETH Zurich, and Freie Universit... | code_c | code | 2,102 | null |
/** @file
The OEM Badging Protocol defines the interface to get the OEM badging
image with the display attribute. This protocol can be produced based on OEM badging images.
Copyright (c) 2006 - 2019 Intel Corporation. All rights reserved. <BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#ifnd... | code_c | code | 771 | null |
<filename>src/a2dp-codecs.h<gh_stars>10-100
/*
*
* BlueZ - Bluetooth protocol stack for Linux
*
* Copyright (C) 2006-2010 Nokia Corporation
* Copyright (C) 2004-2010 <NAME> <<EMAIL>>
* Copyright (C) 2018 <NAME> <<EMAIL>>
* Copyright (C) 2016-2019 <NAME>
*
*
* This library is free software; you ... | code_c | code | 4,263 | null |
#include <vcpkg/base/system_headers.h>
#include <catch2/catch.hpp>
#include <vcpkg/base/files.h>
#include <vcpkg/base/pragmas.h>
#include <vcpkg/statusparagraph.h>
#include <memory>
#define CHECK_EC(ec) \
do ... | code_c | code | 1,387 | null |
/*
* @brief This file contains CDC to I2C bridge example using USB ROM Drivers.
*
* @note
* Copyright(C) NXP Semiconductors, 2013
* All rights reserved.
*
* @par
* Software that is described herein is for illustrative purposes only
* which provides customers with programming information regarding the
* LPC pr... | code_c | code | 2,482 | null |
/*
* Universal Host Controller Interface driver for USB.
*
* Maintainer: <NAME> <<EMAIL>>
*
* (C) Copyright 1999 <NAME>
* (C) Copyright 1999-2002 <NAME>, <EMAIL>
* (C) Copyright 1999 <NAME>
* (C) Copyright 1999 <NAME>, <EMAIL>
* (C) Copyright 1999 <NAME>, <EMAIL>
* (C) Copyright 1999 <NAME>, <EMAIL>
* (C) Co... | code_c | code | 13,486 | null |
/*
==============================================================================
This file is part of the JUCE library.
Copyright (c) 2020 - Raw Material Software Limited
JUCE is an open source library subject to commercial or open-source
licensing.
By using JUCE, you agree to the terms of both the... | code_c | code | 833 | null |
<reponame>psung/dx-toolkit
// Copyright (C) 2013-2014 DNAnexus, Inc.
//
// This file is part of wig_importer.
//
// 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.... | code_c | code | 281 | null |
/*****************************************************************************
Copyright (c) 1995, 2020, Oracle and/or its affiliates.
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License, version 2.0, as published by the
Free Software Foundation.
... | code_c | code | 1,743 | null |
/* $NetBSD: cpu.c,v 1.25 2001/12/05 05:02:11 chs Exp $ */
/*-
* Copyright (c) 2001 <NAME>.
* Copyright (c) 1998, 1999, 2001 Internet Research Institute, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following con... | code_c | code | 2,696 | null |
<filename>net-next/arch/x86/crypto/crc32c-intel_glue.c
// SPDX-License-Identifier: GPL-2.0-only
/*
* Using hardware provided CRC32 instruction to accelerate the CRC32 disposal.
* CRC32C polynomial:0x1EDC6F41(BE)/0x82F63B78(LE)
* CRC32 is a new instruction in Intel SSE4.2, the reference can be found at:
* http://www... | code_c | code | 1,806 | null |
/*-
* Copyright 2016 <NAME>
*
* 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 wri... | code_c | code | 44,844 | null |
<reponame>OpenNuvoton/M071M_BSP<gh_stars>0
/****************************************************************************
* @file main.c
* @version V2.0
* $Revision: 5 $
* $Date: 14/06/30 4:51p $
* @brief Demonstrate how to trigger ADC by PWM.
* @note
* Copyright (C) 2014 Nuvoton Technology Corp. All righ... | code_c | code | 2,461 | null |
/*
* Copyright (C) 2011-2013 Red Hat, Inc. All rights reserved.
*
* This file is part of LVM2.
*
* This copyrighted material is made available to anyone wishing to use,
* modify, copy, or redistribute it subject to the terms and conditions
* of the GNU Lesser General Public License v.2.1.
*
* You should have r... | code_c | code | 7,827 | null |
/* +------------------------------------------------------------------------+
| Mobile Robot Programming Toolkit (MRPT) |
| http://www.mrpt.org/ |
| |
| Cop... | code_c | code | 644 | null |
<reponame>BeiJiaan/ace
// -*- C++ -*-
//=============================================================================
/**
* @file Codeset_Symbols.h
*
* $Id$
*
* Symbolic names for codeset ids.
*
* @author <NAME> (<EMAIL>)
*/
//=============================================================================
#... | code_c | code | 2,689 | null |
<reponame>Server2356/Sun-Kernel
/* SPDX-License-Identifier: BSD-3-Clause-Clear */
/*
* Copyright (c) 2019 The Linux Foundation. All rights reserved.
*/
#if !defined(_TRACE_H_) || defined(TRACE_HEADER_MULTI_READ)
#include <linux/tracepoint.h>
#include "core.h"
#define _TRACE_H_
/* create empty functions when traci... | code_c | code | 809 | null |
/**
* @file Json.c
* In this source, json is decoded using the following library.
* - Jansson : https://github.com/akheron/jansson
*/
#include <bolib.h>
#include <string.h>
#include <jansson.h>
#include <setjmp.h>
#include <assert.h>
#include "common/strres.h"
#include "common/Observer.h"
#include "common/Inser... | code_c | code | 3,164 | null |
/*
* DWARF2 debugging format - line information
*
* Copyright (C) 2006-2007 <NAME>
*
* 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
* no... | code_c | code | 10,523 | null |
<filename>iPodcast/iPodcast/Sections/Live/Models/WH_GiftModel.h
//
// WH_GiftModel.h
// iPodcast
//
// Created by ParkourH on 16/10/27.
// Copyright © 2016年 ParkourH. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "PresentModelAble.h"
@interface WH_GiftModel : NSObject <PresentModelAble>
@prope... | code_c | code | 220 | null |
<filename>normalbrick.h
#ifndef NORMALBRICK_H
#define NORMALBRICK_H
#include"abstractbrick.h"
class NormalBrick : public AbstractBrick
{
public:
NormalBrick(QGraphicsItem *parent=nullptr);
};
#endif // NORMALBRICK_H
| code_c | code | 63 | null |
// The MIT License
//
// Copyright (c) 2017-2018 by the author(s)
//
// 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,... | code_c | code | 1,671 | null |
<gh_stars>10-100
// CocoaUPnP by A&R Cambridge Ltd, http://www.arcam.co.uk
// Copyright 2015 Arcam. See LICENSE file.
#import <Foundation/Foundation.h>
@class UPPMediaRendererDevice;
@class UPPMediaItem;
@interface PlaybackManager : NSObject
@property (strong, nonatomic) UPPMediaRendererDevice *renderer;
- (void)pl... | code_c | code | 101 | null |
#ifndef dplyr_tools_RowwiseDataFrame_H
#define dplyr_tools_RowwiseDataFrame_H
#include <tools/SlicingIndex.h>
#include <dplyr/Result/RowwiseSubset.h>
#include <tools/SymbolString.h>
namespace dplyr {
class RowwiseDataFrame;
class RowwiseDataFrameIndexIterator {
public:
RowwiseDataFrameIndexIterator() : i(0) {}
... | code_c | code | 472 | null |
#pragma once
#include "MeshSync/SceneGraph/msMaterial.h"
namespace ms {
// correspond to Unity's Standard shader
class StandardMaterial : public Material
{
public:
void setColor(float4 v);
float4 getColor() const;
void setColorMap(const TextureRecord& v);
void setColorMap(TexturePtr v);
... | code_c | code | 609 | null |
// SPDX-License-Identifier: GPL-2.0+
/*
* Actions Semi Owl family serial console
*
* Copyright 2013 Actions Semi Inc.
* Author: Actions Semi, Inc.
*
* Copyright (c) 2016-2017 <NAME>
*/
#include <linux/clk.h>
#include <linux/console.h>
#include <linux/delay.h>
#include <linux/io.h>
#include <linux/module.h>
#inc... | code_c | code | 5,084 | null |
<filename>CallNativePlugin.h<gh_stars>0
//
// CallNativePlugin.h
// HXTest
//
// Created by gongliang on 2016/10/26.
// Copyright © 2016年 AB. All rights reserved.
//
#import <Cordova/CDV.h>
@interface CallNativePlugin : CDVPlugin
- (void)login:(CDVInvokedUrlCommand *)command;
- (void)videoCall:(CDVInvokedUrlCom... | code_c | code | 111 | null |
<reponame>codyd51/axle<gh_stars>100-1000
/*
* Copyright (c) 1990 The Regents of the University of California.
* All rights reserved.
*
* Redistribution and use in source and binary forms are permitted
* provided that the above copyright notice and this paragraph are
* duplicated in all such forms and that any doc... | code_c | code | 4,080 | null |
/**
* Copyright (c) 2015 - 2017, Nordic Semiconductor ASA
*
* 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... | code_c | code | 25,417 | null |
<filename>postgresql1commit/backend/nodes/equalfuncs.c
/*-------------------------------------------------------------------------
*
* equalfuncs.c--
* equal functions to compare the nodes
*
* Copyright (c) 1994, Regents of the University of California
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/b... | code_c | code | 4,213 | null |
<reponame>parsiad/FreeRDP<filename>libfreerdp/codec/rfx_neon.c
/*
FreeRDP: A Remote Desktop Protocol Implementation
RemoteFX Codec Library - NEON Optimizations
Copyright 2011 <NAME> <<EMAIL>>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance ... | code_c | code | 2,169 | null |
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#pragma once
namespace Manage... | code_c | code | 2,321 | null |
// Supported with union (c) 2018 Union team
#ifndef __ZRND_GLIDE__DRAW_H__VER0__
#define __ZRND_GLIDE__DRAW_H__VER0__
namespace Gothic_I_Classic {
struct zSRndGlide_AlphaPoly {
int alpha;
zTRnd_AlphaBlendFunc alpFunc;
zTRnd_PolyDrawMode dMode;
int numClipVert;
float vertCamSpaceZInv[zMAX_POLY_C... | code_c | code | 246 | null |
<gh_stars>100-1000
// 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 GPU_COMMAND_BUFFER_SERVICE_FRAMEBUFFER_MANAGER_H_
#define GPU_COMMAND_BUFFER_SERVICE_FRAMEBUFFER_MANAGER_H_
#include "base... | code_c | code | 1,877 | null |
//
// Created by Raymond_Lx on 2020/11/23.
//
#ifndef SIMPLELIBRARYMANAGESYSTEM_BOOKMANAGER_H
#define SIMPLELIBRARYMANAGESYSTEM_BOOKMANAGER_H
#include "DataManager.h"
struct BookManager_DataType {
int id;
std::string name;
std::string author;
int num;
int lent;
};
class BookManager : public Data... | code_c | code | 189 | null |
<gh_stars>1-10
// This is a generated source file for Chilkat version <ip>
#ifndef _C_CkHttpWH
#define _C_CkHttpWH
#include "chilkatDefs.h"
#include "Chilkat_C.h"
CK_C_VISIBLE_PUBLIC void CkHttpW_setAbortCheck(HCkHttpW cHandle, BOOL (*fnAbortCheck)(void));
CK_C_VISIBLE_PUBLIC void CkHttpW_setPercentDone(HCk... | code_c | code | 12,536 | null |
<reponame>npocmaka/Windows-Server-2003
/**************************************************************************************************************************
* HWIO.C SigmaTel STIR4200 hardware specific module (to access the registers)
**************************************************************************... | code_c | code | 19,096 | 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 may ... | code_c | code | 1,694 | null |
/* Copyright (C) 2013 Interactive Brokers LLC. All rights reserved. This code is subject to the terms
* and conditions of the IB API Non-Commercial License or the IB API Commercial License, as applicable. */
#pragma once
#include "ereadersignal.h"
namespace IBOfficial {
class EReaderWMSignal :
public EReaderSign... | code_c | code | 134 | 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 CHROME_BROWSER_GEOLOCATION_GEOLOCATION_INFOBAR_QUEUE_CONTROLLER_H_
#define CHROME_BROWSER_GEOLOCATION_GEOLOCATION_INFOBAR_QUEUE_CONTROLLER_H_
... | code_c | code | 1,074 | null |
/*
* Copyright (c) The Shogun Machine Learning Toolbox
* Written (w) 2012-2013 <NAME>
* Written (w) 2014 <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 | 3,493 | null |
<reponame>xieruishen/MK_III-Code
#ifndef CAN_API_H
#define CAN_API_H
#include <avr/io.h>
#include <inttypes.h>
#include <avr/interrupt.h>
#include <stdlib.h>
/* Message Identifiers */
#define CAN_ID_GLOBAL ((uint16_t) 0x00)
#define CAN_ID_PANIC ((uint16_t) 0x01)
#define CAN_ID_BRAKE_LIGHT ... | code_c | code | 727 | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.