max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
416 | <reponame>Zi0P4tch0/sdks<filename>iPhoneOS14.2.sdk/System/Library/Frameworks/CoreML.framework/Headers/MLMultiArrayShapeConstraintType.h<gh_stars>100-1000
//
// MLMultiArrayShapeConstraintType.h
// CoreML
//
// Copyright © 2018 Apple Inc. All rights reserved.
#import <Foundation/Foundation.h>
API_AVAILABLE(macos(1... | 256 |
3,212 | <reponame>westdart/nifi
/*
* 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
* (... | 4,156 |
6,224 | /*
* Copyright (c) 2020 <NAME>
*
* SPDX-License-Identifier: Apache-2.0
*/
/**
* This header defines replacements for inline
* ARM Cortex-M CMSIS intrinsics.
*/
#ifndef BOARDS_POSIX_NRF52_BSIM_CMSIS_H
#define BOARDS_POSIX_NRF52_BSIM_CMSIS_H
#ifdef __cplusplus
extern "C" {
#endif
/* Implement the following ARM... | 338 |
14,668 | /*
* testFuzzer.c: Test program for the custom entity loader used to fuzz
* with multiple inputs.
*
* See Copyright for the status of this software.
*/
#include <string.h>
#include <glob.h>
#include <libxml/parser.h>
#include <libxml/tree.h>
#include <libxml/xmlstring.h>
#include "fuzz.h"
#ifdef HAVE_HTML_FUZZER... | 2,030 |
402 | /*
* Copyright 2000-2021 Vaadin 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
*
* Unless required by applicable law or agreed to... | 1,811 |
3,084 | <filename>network/wlan/WDI/COMMON/QosGen.h
#ifndef __INC_QOSGEN_H
#define __INC_QOSGEN_H
//=============================================================================
// Prototype function for Debugging Qos.
//=============================================================================
#if DBG
//
// Descrip... | 3,399 |
3,783 | <gh_stars>1000+
package problems.medium;
import java.util.TreeMap;
/**
* Why Did you create this class? what does it do?
*/
public class MyCalendarTwo {
public static void main(String[] args) {
}
TreeMap<Integer, Integer> twice = new TreeMap<>();
TreeMap<Integer, Integer> once = new TreeMap<>();
... | 158 |
2,542 | <gh_stars>1000+
// ------------------------------------------------------------
// 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
... | 317 |
10,225 | package io.quarkus.grpc.common.runtime.graal;
import static io.grpc.InternalServiceProviders.getCandidatesViaHardCoded;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import com.oracle.svm.core.annotate.Alias;
import com.oracle.svm.core.annotate.Substitu... | 913 |
370 | <reponame>sungkyu-kim/keras-anomaly-detection
import zipfile
def unzip(path_to_zip_file, directory_to_extract_to):
zip_ref = zipfile.ZipFile(path_to_zip_file, 'r')
zip_ref.extractall(directory_to_extract_to)
zip_ref.close()
| 104 |
356 | <gh_stars>100-1000
package com.idrv.coach.bean;
/**
* time:2016/5/23
* description:相册
*
* @author sunjianfei
*/
public class Album {
//O:学员风采相册 1:教练风采相册
int albumType;
int pictureNumber;
String cover;
public int getAlbumType() {
return albumType;
}
public void setAlbumType(... | 309 |
348 | <reponame>chamberone/Leaflet.PixiOverlay
{"nom":"Eschbach-au-Val","circ":"2ème circonscription","dpt":"Haut-Rhin","inscrits":312,"abs":172,"votants":140,"blancs":7,"nuls":0,"exp":133,"res":[{"nuance":"LR","nom":"<NAME>","voix":82},{"nuance":"REM","nom":"<NAME>","voix":51}]} | 114 |
777 | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "core/animation/AnimationEffectTiming.h"
#include "bindings/core/v8/ExceptionState.h"
#include "bindings/core/v8/UnrestrictedDoubleOrString.h"
#... | 1,141 |
5,169 | <filename>Specs/9/5/2/MotionMachine/1.3.3/MotionMachine.podspec.json<gh_stars>1000+
{
"name": "MotionMachine",
"version": "1.3.3",
"swift_version": "4.2",
"license": {
"type": "MIT"
},
"summary": "An elegant, powerful, and modular animation library for Swift.",
"description": "MotionMachine provides a... | 380 |
852 | <filename>Geometry/TrackerSimData/python/trackerSimGeometry_TwentyFivePercentXML_cfi.py
import FWCore.ParameterSet.Config as cms
XMLIdealGeometryESSource = cms.ESSource("XMLIdealGeometryESSource",
geomXMLFiles = cms.vstring('Geometry/CMSCommonData/data/normal/cmsextent.xml',
'Geometry/CMSCommonData/data/c... | 2,855 |
4,962 | /*
* Copyright 2014 - Present <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 agree... | 4,019 |
2,542 | <filename>src/prod/src/api/wrappers/ComQueryResult.h
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ---------------------------------------... | 584 |
4,538 | """
Testing si7006 python driver
The below i2c configuration is needed in your board.json.
"si7006": {
"type": "I2C",
"port": 1,
"addrWidth": 7,
"freq": 400000,
"mode": "master",
"devAddr": 64
}
"""
from si7006 import SI7006
print("Testing si7006 ...")
si7006Dev = SI7006()
si7006Dev.open("si7006")
versio... | 254 |
373 | package com.dianrong.common.uniauth.server.data.entity.ext;
import com.dianrong.common.uniauth.server.data.entity.Permission;
public class PermissionExt extends Permission {
private Integer domainId;
protected Integer startIndex;
protected Integer wantCount;
public Integer getDomainId() {
return domainI... | 224 |
2,151 | <gh_stars>1000+
// 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 NET_THIRD_PARTY_QUIC_PLATFORM_IMPL_QUIC_SLEEP_IMPL_H_
#define NET_THIRD_PARTY_QUIC_PLATFORM_IMPL_QUIC_SLEEP_IMPL_H_
#include "bas... | 269 |
310 | {
"name": "NUC6i3SYK",
"description": "A tiny PC.",
"url": "https://ark.intel.com/products/89186/Intel-NUC-Kit-NUC6i3SYK"
}
| 62 |
327 | <reponame>yosianonymous31/MobileGuard<filename>app/src/main/java/com/ittianyu/mobileguard/domain/GridViewItemBean.java
package com.ittianyu.mobileguard.domain;
import com.ittianyu.mobileguard.strategy.OnClickListener;
/**
* Created by yu.
* gv_menu item bean
*/
public class GridViewItemBean {
private int icon... | 422 |
544 | import torch
import torch.nn as nn
import torch.nn.parallel
from torch.nn import functional
import torch.utils.data
import numpy as np
from utils.spectral_norm import spectral_norm
# Define a resnet block
class ResnetBlock(nn.Module):
def __init__(self, dim, padding_type, norm_layer, activation=nn.ReLU(True), use... | 2,752 |
464 | <reponame>LuciusMos/DI-engine<gh_stars>100-1000
from collections import namedtuple
import numpy as np
from ding.envs.common import EnvElement
class GfootballReward(EnvElement):
_name = "gfootballReward"
_reward_keys = ['reward_value']
Reward = namedtuple('Action', _reward_keys)
MinReward = -1.0
... | 733 |
4,126 | <filename>src/LightingThread.h
// LightingThread.h
// Interfaces to the cLightingThread class representing the thread that processes requests for lighting
/*
Lighting is done on whole chunks. For each chunk to be lighted, the whole 3x3 chunk area around it is read,
then it is processed, so that the middle chunk area... | 2,042 |
1,781 | <reponame>acety23/algorithms-sedgewick-wayne
package chapter6.eventdrivensimulation;
import chapter2.section4.PriorityQueueResize;
import edu.princeton.cs.algs4.StdRandom;
import util.StdDraw3D;
// 1-To run this class, make sure to import the following libraries to the project (they are in the lib/java3d folder):
// ... | 7,135 |
2,338 | //===- DWARFDebugInfoEntry.cpp --------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | 1,749 |
852 | #include "FWCore/Utilities/interface/thread_safety_macros.h"
CMS_THREAD_SAFE extern int external_int;
| 38 |
734 | <filename>modules/3rd_party/rpmalloc/rpallocator.cpp<gh_stars>100-1000
/*
,--. ,--. ,--. ,--.
,-' '-.,--.--.,--,--.,---.| |,-.,-' '-.`--' ,---. ,--,--, Copyright 2018
'-. .-'| .--' ,-. | .--'| /'-. .-',--.| .-. || \ Tracktion Software
| | | | \ '-' \ `--.... | 459 |
1,882 | /*-
* <<
* task
* ==
* Copyright (C) 2019 - 2020 sia
* ==
* 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 b... | 584 |
861 | package cn.springcloud.gray.decision.factory;
import org.springframework.beans.BeanUtils;
public abstract class AbstractGrayDecisionFactory<C> implements GrayDecisionFactory<C> {
private Class<C> configClass;
protected AbstractGrayDecisionFactory(Class<C> configClass) {
this.configClass = configClas... | 175 |
575 | <filename>chrome/browser/search_engines/chrome_template_url_service_client.h
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_SEARCH_ENGINES_CHROME_TEMPLATE_URL_SERVICE_CLIENT_H_
#... | 803 |
436 | {
"id": "paste-that-shizz",
"name": "Paste That Shizz",
"version": "0.0.1pre1",
"minAppVersion": "0.9.12",
"description": "Adds a paste command for when pasting is hard",
"author": "shabegom",
"authorUrl": "https://shbgm.ca",
"isDesktopOnly": false
}
| 118 |
763 | package org.batfish.coordinator.resources;
import static org.hamcrest.Matchers.equalTo;
import static org.junit.Assert.assertThat;
import org.batfish.referencelibrary.ServiceEndpoint;
import org.junit.Test;
public class ServiceEndpointBeanTest {
@Test
public void conversionToAndFrom() {
ServiceEndpoint endp... | 167 |
346 | <reponame>FluffyQuack/ja2-stracciatella<gh_stars>100-1000
#include "JA2Types.h"
enum BloodKind
{
HUMAN = 0,
CREATURE_ON_FLOOR = 1,
CREATURE_ON_ROOF = 2
};
#define NORMAL_HUMAN_SMELL_STRENGTH 10
#define COW_SMELL_STRENGTH 15
#define NORMAL_CREATURE_SMELL_STRENGTH 20
#define SMELL_TYPE_NUM_BIT... | 352 |
335 | <reponame>OotinnyoO1/N64Wasm
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Mupen64plus - ri_controller.h *
* Mupen64Plus homepage: http://code.google.com/p/mupen64plus/ *
* Copyright (C) 2014 <NAME> ... | 1,202 |
1,338 | /*
* Copyright (c) 2002-2011, Haiku Project. All rights reserved.
* Distributed under the terms of the Haiku license.
*
* Author(s):
* <NAME> (<EMAIL>)
*/
#include <signal.h>
#include <errno.h>
#include <OS.h>
#include <syscall_utils.h>
int
raise(int sig)
{
RETURN_AND_SET_ERRNO(send_signal(find_thread... | 136 |
3,384 | //
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.
//
#pragma mark Blocks
typedef void (^CDUnknownBlockType)(void); // return type and parameters are unknown
#pragma mark Named Structures
struct CGPoint {
double x;
double y;
};
s... | 29,106 |
451 | <gh_stars>100-1000
#include "StdAfx.h"
#include "PaireImg.h"
using namespace std;
PaireImg::PaireImg() : numImg2(-1) {}
PaireImg::PaireImg(int n, ElSTDNS string nom): numImg2(n), nomFichier(nom) {
nbPtsInit=0;
nbPts=0;
isAlign=true;
for (int i=0; i<5; i++)
moment[i]=0;
}
void Pair... | 952 |
839 | /**
* 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 m... | 800 |
2,073 | <reponame>thg-josh-coutinho/activemq<gh_stars>1000+
/**
* 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 Apa... | 1,548 |
884 | /*
* Copyright 2014 - 2021 Blazebit.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 1,162 |
5,447 | <reponame>Kh4L/gluon-cv<filename>gluoncv/model_zoo/simple_pose/pose_target.py
"""
Target generator for Simple Baselines for Human Pose Estimation and Tracking
(https://arxiv.org/abs/1804.06208)
---------------------------------------------
Copyright (c) Microsoft
Licensed under the MIT License.
Written by <NAME> (<EMA... | 1,751 |
32,544 | <reponame>DBatOWL/tutorials
package com.baeldung.concurrent.semaphore;
import java.util.concurrent.Semaphore;
public class SemaPhoreDemo {
static Semaphore semaphore = new Semaphore(10);
public void execute() throws InterruptedException {
System.out.println("Available permit : " + semaphore.availablePermits()... | 197 |
3,562 | // 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... | 5,792 |
521 | # -*- coding: utf-8 -*-
"""Test Python routines."""
# -----------------------------------------------------------------------------
# Imports
# -----------------------------------------------------------------------------
from ..python import _is_python, PythonFilter
# ---------------------------------------------... | 197 |
14,668 | <gh_stars>1000+
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/at_exit.h"
#include "base/command_line.h"
#include "base/message_loop/message_pump_type.h"
#include "base/run_loop.h"
#incl... | 345 |
1,056 | /*
* 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 ... | 1,155 |
746 | package io.openlineage.spark.agent.lifecycle.plan;
import io.openlineage.spark.agent.SparkAgentTestExtension;
import org.junit.jupiter.api.extension.ExtendWith;
@ExtendWith(SparkAgentTestExtension.class)
class JDBCRelationVisitorTest {}
| 84 |
1,546 | /////////////////////////////////////////////////////////////////////////////////////////////////
//
// Tencent is pleased to support the open source community by making libpag available.
//
// Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
//
// Licensed under the Apache License, Versio... | 392 |
2,268 | <filename>sp/src/utils/vbsp/manifest.h<gh_stars>1000+
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
//=====================================================================================//
#ifndef __MANIFEST_H
#define __MANIFEST_H
#ifdef _WIN32
#pragma once
#endif
#... | 869 |
4,339 | /*
* 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 ... | 2,707 |
799 | <filename>Packs/TrendMicroApex/Integrations/TrendMicroApex/test_data/add_file_command_mock.json
{
"result_code": 1,
"result_description": "Operation successful",
"result_content": "None"
} | 73 |
3,287 | <reponame>YuanyuanNi/azure-cli
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# -------------------------------------... | 465 |
526 | /* SPDX-License-Identifier: Apache-2.0 */
/* Copyright Contributors to the ODPi Egeria project. */
package org.odpi.openmetadata.conformance.workbenches;
/**
* The OpenMetadataConformanceWorkbench drives the execution of a batch of tests.
*/
public abstract class OpenMetadataConformanceWorkbench implements Runnable
... | 1,160 |
391 | /*
*
* Copyright (C) 2020 iQIYI (www.iqiyi.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... | 2,250 |
391 | <gh_stars>100-1000
#!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
'''
Splits a syntax tree by type and models the data within each type.
'''
import collections
impo... | 7,033 |
1,481 | <filename>full/src/test/java/apoc/data/email/ExtractEmailTest.java
package apoc.data.email;
import apoc.util.TestUtil;
import org.junit.Assert;
import org.junit.BeforeClass;
import org.junit.ClassRule;
import org.junit.Test;
import org.neo4j.test.rule.DbmsRule;
import org.neo4j.test.rule.ImpermanentDbmsRule;
import s... | 1,137 |
1,350 | <reponame>Shashi-rk/azure-sdk-for-java<gh_stars>1000+
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.microsoft.azure.spring.cloud.config;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.autoconfigur... | 388 |
612 | <reponame>jaxnb/icestorm
#!/usr/bin/env python3
from fuzzconfig import *
import numpy as np
import os
device_class = os.getenv("ICEDEVICE")
working_dir = "work_%s_ram40" % (device_class, )
os.system("rm -rf " + working_dir)
os.mkdir(working_dir)
for idx in range(num):
with open(working_dir + "/ram40_%02d.v" % ... | 2,920 |
5,169 | <reponame>Gantios/Specs
{
"name": "Dengage.Framework.Extensions",
"version": "1.0.5",
"summary": "Dengage.Framework.Extensions contains custom categories (Carousel Notification)",
"description": "Dengage.Framework.Extensions provides necessary classes and functions which handles notification for Rich Notificati... | 435 |
28,056 | package com.alibaba.json.bvt.path;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.JSONPath;
import com.alibaba.fastjson.parser.Feature;
import junit.framework.TestCase;
import java.util.HashMap;
import java.util.Map;
public... | 652 |
2,728 | <gh_stars>1000+
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator... | 195 |
338 | package com.tvd12.ezyfoxserver.testing.setting;
import static org.testng.Assert.assertEquals;
import org.testng.annotations.Test;
import com.tvd12.ezyfoxserver.constant.EzyEventType;
import com.tvd12.ezyfoxserver.context.EzyZoneContext;
import com.tvd12.ezyfoxserver.controller.EzyAbstractZoneEventController;
import ... | 2,681 |
903 | package org.develnext.jphp.core.tokenizer.token.expr.operator.cast;
import php.runtime.env.Environment;
import php.runtime.env.TraceInfo;
import php.runtime.memory.StringMemory;
import php.runtime.Memory;
import org.develnext.jphp.core.tokenizer.TokenMeta;
import org.develnext.jphp.core.tokenizer.TokenType;
public cl... | 323 |
946 | <reponame>hexrain/utymap<filename>core/src/mapcss/Color.hpp
#ifndef MAPCSS_COLOR_HPP_INCLUDED
#define MAPCSS_COLOR_HPP_INCLUDED
#include <algorithm>
#include <cstdint>
namespace utymap {
namespace mapcss {
/// Represents RGBA color.
struct Color final {
unsigned char r, g, b, a;
Color() : r(0), g(0), b(0), a(0)... | 606 |
17,703 | <gh_stars>1000+
#pragma once
#include <string>
#include <vector>
#include "envoy/access_log/access_log.h"
#include "envoy/config/core/v3/base.pb.h"
#include "envoy/http/header_map.h"
#include "source/common/protobuf/protobuf.h"
#include "source/common/router/header_formatter.h"
namespace Envoy {
namespace Router {
... | 884 |
356 | <reponame>majk1/netbeans-mmd-plugin
/*
* Copyright 2015-2018 <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 re... | 3,015 |
5,964 | // Copyright 2012 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#if V8_TARGET_ARCH_MIPS64
#include <memory>
#include "src/codegen.h"
#include "src/isolate.h"
#include "src/macro-assembler.h"
#include "src/mips64/si... | 11,422 |
435 | <filename>warehouse/query-core/src/test/java/datawave/query/RebuildingScannerTestHelper.java<gh_stars>100-1000
package datawave.query;
import datawave.accumulo.inmemory.InMemoryBatchScanner;
import datawave.accumulo.inmemory.InMemoryConnector;
import datawave.accumulo.inmemory.InMemoryInstance;
import datawave.accumul... | 14,151 |
2,151 | /*
* This file is part of Wireless Display Software for Linux OS
*
* Copyright (C) 2014 Intel Corporation.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 o... | 901 |
762 | #include "stdafx.hpp"
#include "Transform.hpp"
IGNORE_WARNINGS_PUSH
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/quaternion.hpp>
#include <glm/gtx/matrix_decompose.hpp>
#include <glm/mat4x4.hpp>
#include <glm/vec3.hpp>
#include "BulletDynamics/Dynamics/btRigidBody.h"
IGNORE_WARNINGS_POP
#include "Helpe... | 5,900 |
7,113 | /*
* Copyright (C) 2010-2101 Alibaba Group Holding Limited.
*
* 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 ... | 1,365 |
2,554 | #define _DEFAULT_SOURCE
#include <string.h>
#include "greatest/greatest.h"
#include "theft/theft.h"
#include "match.h"
static void *string_alloc_cb(struct theft *t, theft_hash seed, void *env) {
(void)env;
int limit = 128;
size_t sz = (size_t)(seed % limit) + 1;
char *str = malloc(sz + 1);
if (str == NULL) {
... | 1,715 |
1,056 | /*
* 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 ... | 3,653 |
5,169 | <reponame>Gantios/Specs
{
"name": "PlanetaryMaps",
"version": "1.0.1",
"summary": "iOS OpenGL Tiled Maps Viewer",
"description": "An iOS library that allows the developer to easily add a Google Earth style zoomable mapping view. It supports arbitrary zooming and panning and a clean API to draw lines and markers... | 384 |
892 | <gh_stars>100-1000
{
"schema_version": "1.2.0",
"id": "GHSA-wpgj-52pg-3797",
"modified": "2022-04-29T01:28:18Z",
"published": "2022-04-29T01:28:17Z",
"aliases": [
"CVE-2003-1568"
],
"details": "GoAhead WebServer before 2.1.6 allows remote attackers to cause a denial of service (NULL pointer dereferenc... | 376 |
2,380 | /**
*
* Copyright 2003-2007 Jive Software.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... | 1,521 |
4,345 | <reponame>awesome-archive/Coding-iOS
//
// CSTopicModel.h
// Coding_iOS
//
// Created by <NAME> on 15/7/15.
// Copyright (c) 2015年 Coding. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface CSTopicModel : NSObject
+ (NSArray*)latestUseTopiclist;
+ (void)addAnotherUseTopic:(NSString*)topicName;
... | 123 |
1,350 | <gh_stars>1000+
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.sqlvirtualmachine.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogg... | 2,631 |
3,787 | import os
import sys
additional_path = os.path.realpath('../')
if additional_path not in sys.path:
sys.path.append(additional_path)
| 48 |
32,544 | package com.baeldung.jersey.server;
import javax.ws.rs.FormParam;
import javax.ws.rs.HeaderParam;
import javax.ws.rs.PathParam;
public class ItemParam {
@HeaderParam("headerParam")
private String shopKey;
@PathParam("pathParam")
private String itemId;
@FormParam("formParam")
private String ... | 369 |
1,899 | <gh_stars>1000+
"""Test using user-defined models with sandman2."""
import json
from pytest_flask.fixtures import client
from tests.resources import (
GET_ERROR_MESSAGE,
INVALID_ACTION_MESSAGE,
)
model_module = 'tests.user_models'
database = 'blog.sqlite3'
def test_validate_get(client):
"""Do we get... | 1,401 |
583 | <reponame>392113274/ServerStatus-Hotaru
# -*- coding: utf-8 -*-
# Update by: https://github.com/CokeMine/ServerStatus-Hotaru
# 依赖于psutil跨平台库:
# 支持Python版本:2.6 to 3.7
# 支持操作系统: Linux, Windows, OSX, Sun Solaris, FreeBSD, OpenBSD and NetBSD, both 32-bit and 64-bit architectures
import socket
import time
import json
impor... | 2,996 |
3,102 | <reponame>clayne/DirectXShaderCompiler
// RUN: %clang_cc1 -fsyntax-only -verify %s -triple x86_64-apple-darwin9
// expected-no-diagnostics
// From <rdar://problem/12322000>. Do not warn about undefined behavior of parameter
// argument types in unreachable code in a macro.
#define VA_ARG_RDAR12322000(Marker, TYPE) ... | 257 |
372 | /* Editor Settings: expandtabs and use 4 spaces for indentation
* ex: set softtabstop=4 tabstop=8 expandtab shiftwidth=4: *
* -*- mode: c, c-basic-offset: 4 -*- */
/*
* Copyright © BeyondTrust Software 2004 - 2019
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you m... | 16,950 |
2,100 | /*
* Copyright (C) 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | 2,345 |
309 | /* ***** BEGIN LICENSE BLOCK *****
* JTransforms
* Copyright (c) 2007 onward, <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 source code must re... | 14,809 |
1,405 | package com.lenovo.lps.reaper.sdk.c;
import android.util.Log;
import android.util.Xml;
import com.lenovo.lps.reaper.sdk.b.a;
import com.lenovo.lps.reaper.sdk.e.b;
import java.util.List;
/* loaded from: classes.dex */
public final class c implements Runnable {
private final a a;
public c(a aVar) {
this... | 1,223 |
2,151 |
#ifndef I915_SW_PUBLIC_H
#define I915_SW_PUBLIC_H
struct i915_winsys;
struct i915_winsys * i915_sw_winsys_create(void);
#endif
| 64 |
8,194 | <reponame>zxsean/EhViewer
/*
* 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 applica... | 447 |
14,668 | <filename>chromecast/media/avsettings/avsettings_dummy.h
// Copyright 2019 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 CHROMECAST_MEDIA_AVSETTINGS_AVSETTINGS_DUMMY_H_
#define CHROMECAST_MEDIA_AVSETTINGS_AVSET... | 681 |
314 | <filename>src/nemesis-proto_ip.c
/*
* THE NEMESIS PROJECT
* Copyright (C) 2002, 2003 <NAME> <<EMAIL>>
* Original version submitted by ocsic <<EMAIL>>
*
* nemesis-proto_ip.c (IP Packet Generator)
*/
#include "nemesis-ip.h"
#include "nemesis.h"
int buildip(ETHERhdr *eth, IPhdr *ip, struct file *pd, struct file *i... | 821 |
2,232 | /*
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: <NAME>
*/
#pragma once
#include "kernel/environment.h"
namespace lean {
/** \brief Unfold any macro occurring in \c e that has trust level higher than the one
allowed in \c... | 236 |
1,091 | <reponame>ariscahyadi/onos-1.14-with-indopronos-app
/*
* Copyright 2017-present Open Networking Foundation
*
* 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... | 4,441 |
397 | // sciplot - a modern C++ scientific plotting library powered by gnuplot
// https://github.com/sciplot/sciplot
//
// Licensed under the MIT License <http://opensource.org/licenses/MIT>.
//
// Copyright (c) 2018-2021 <NAME>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this sof... | 1,426 |
455 | /* Added for Tor. */
#include "lib/cc/torint.h"
#define crypto_uint64 uint64_t
| 31 |
7,137 | package io.onedev.server.web.asset.codemirror;
import java.util.List;
import org.apache.wicket.markup.head.CssHeaderItem;
import org.apache.wicket.markup.head.HeaderItem;
import org.apache.wicket.markup.head.JavaScriptHeaderItem;
import org.apache.wicket.request.resource.CssResourceReference;
import org.apache.wicket... | 1,845 |
419 | <reponame>JuanluMorales/KRG
#include "EngineToolsUI.h"
#include "OrientationGuide.h"
#include "Engine/Core/Entity/EntityWorldManager.h"
#include "Engine/Core/Entity/EntityWorldDebugger.h"
#include "Engine/Core/Entity/EntityWorld.h"
#include "Engine/Core/Systems/WorldSystem_PlayerManager.h"
#include "System/Render/Imgui... | 6,961 |
743 | <reponame>silviuvergoti/pebble
/*
* Copyright (c) 2013 by <NAME>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
package com.mitchellbosecke.pebble.spring.config;
import com.mitchellbosecke.pebble.PebbleEngine;
import com.mitchellbo... | 752 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.