max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
758 | /*
* Copyright 2015 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 1,406 |
892 | <gh_stars>100-1000
{
"schema_version": "1.2.0",
"id": "GHSA-2j2m-xp2x-2v76",
"modified": "2022-05-01T23:48:44Z",
"published": "2022-05-01T23:48:44Z",
"aliases": [
"CVE-2008-2308"
],
"details": "Unspecified vulnerability in Alias Manager in Apple Mac OS X 10.5.1 and earlier on Intel platforms allows lo... | 662 |
8,027 | #pragma once
#include <stdio.h>
void remote_function() {
printf("called remote_function\n");
fflush(stdout);
}
| 49 |
607 | <reponame>CrazyForks/Pixiv-Illustration-Collection-Backend
package dev.cheerfun.pixivic.biz.web.app.controller;
import dev.cheerfun.pixivic.biz.web.app.po.AppVersionInfo;
import dev.cheerfun.pixivic.biz.web.app.po.ExternalLink;
import dev.cheerfun.pixivic.biz.web.app.service.AppService;
import dev.cheerfun.pixivic.biz... | 956 |
2,151 | //
// Copyright (c) 2014 The ANGLE 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.
//
// Matrix:
// Helper class for doing matrix math.
//
#ifndef UTIL_MATRIX_H
#define UTIL_MATRIX_H
#include <export.h>
#include "common/v... | 816 |
323 | /*
* Copyright (c) 2012, Novell Inc.
*
* This program is licensed under the BSD license, read LICENSE.BSD
* for further information
*/
#include <sys/types.h>
#include <sys/stat.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <errno.h>
#include "pool.h"
#include "repo.h"... | 4,167 |
2,424 | """Auto-generated file, do not edit by hand. BT metadata"""
from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata
PHONE_METADATA_BT = PhoneMetadata(id='BT', country_code=None, international_prefix=None,
general_desc=PhoneNumberDesc(national_number_pattern='[14]\\d\\d(?:\\d{2})?', possible_length... | 268 |
2,151 | // Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/base_paths.h"
#include "base/files/file_path.h"
#include "base/path_service.h"
#include "chrome/browser/extensions/extension_apitest.h"
us... | 250 |
930 | <filename>src/surface_subset_quantity.cpp
// Copyright 2017-2019, <NAME> and the Polyscope contributors. http://polyscope.run.
#include "polyscope/surface_subset_quantity.h"
#include "polyscope/gl/materials/materials.h"
#include "polyscope/gl/shaders.h"
#include "polyscope/gl/shaders/cylinder_shaders.h"
#include "poly... | 1,093 |
3,861 | <filename>Protocols/AppleUITheme/AppleUITheme.c
#include <Library/UefiLib.h>
#include <Library/BaseMemoryLib.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/DebugLib.h>
#include <Library/UefiBootServicesTableLib.h>
#include <Library/UefiRuntimeServicesTableLib.h>
STATIC UINT32 mCurrentColor;... | 880 |
679 | <filename>main/sd/source/ui/inc/ins_paste.hxx<gh_stars>100-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
* re... | 510 |
480 |
#ifndef _SYS_PRCTL_H
#define _SYS_PRCTL_H
#include <stdint.h>
#define PR_SET_PDEATHSIG 1
#define PR_GET_PDEATHSIG 2
#define PR_GET_DUMPABLE 3
#define PR_SET_DUMPABLE 4
#define PR_GET_UNALIGN 5
#define PR_SET_UNALIGN 6
#define PR_UNALIGN_NOPRINT 1
#define PR_UNALIGN_SIGBUS 2
#define PR_GET_KEEPCAPS 7
#define PR_SET_K... | 1,505 |
302 | <reponame>rpavlik/directx-vs-templates
//
// Game.h
//
#pragma once
#include "StepTimer.h"
// A basic game implementation that creates a D3D11 device and
// provides a game loop.
class Game
{
public:
Game() noexcept;
~Game() = default;
Game(Game&&) = default;
Game& operator= (Ga... | 937 |
852 | /*
* FWL1MuonParticleLegoProxyBuilder.cc
* FWorks
*
* Created by <NAME> on 9/3/10.
*
*/
#include "Fireworks/Core/interface/FWSimpleProxyBuilderTemplate.h"
#include "Fireworks/Core/interface/BuilderUtils.h"
#include "DataFormats/L1Trigger/interface/L1MuonParticle.h"
class FWL1MuonParticleLegoProxyBuilder : p... | 738 |
1,096 | package com.alexjlockwood.example.delight;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.ImageView;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
public class PlayPauseStopActivity extends AppCompa... | 604 |
1,350 | <reponame>Shashi-rk/azure-sdk-for-java
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.quota.generated;
import com.azure.core.util.Context;
/** Samples for QuotaRequestStatus ... | 433 |
371 | package com.risk.riskmanage.knowledge.model;
import java.io.Serializable;
import com.risk.riskmanage.util.StringUtil;
/**
* ClassName:RuleContentVo <br/>
* Description: 规则内容实体类. <br/>
* @see
*/
public class RuleContent implements Serializable{
private static final long serialVersionUID = 1L;
/**
* ... | 1,055 |
369 | // Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#pragma once
#include <application-bell-settings/ApplicationBellSettings.hpp>
#include <apps-common/windows/AppWindow.hpp>
namespace gui
{
class BellSettingsHomeViewWindow : pub... | 246 |
480 | <gh_stars>100-1000
/*
* Copyright [2013-2021], 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
*
* Unl... | 1,627 |
335 | <filename>R/Restate_verb.json<gh_stars>100-1000
{
"word": "Restate",
"definitions": [
"State (something) again or differently, especially more clearly or convincingly."
],
"parts-of-speech": "Verb"
} | 87 |
956 | <gh_stars>100-1000
#!/router/bin/python
from control_plane_general_test import CControlPlaneGeneral_Test
from Client.trex_client import CTRexClient
import socket
from nose.tools import assert_raises, assert_equal, assert_not_equal
from common.trex_status_e import TRexStatus
from common.trex_exceptions import *
import ... | 2,912 |
528 | <reponame>JieyangChen7/zfp
#ifndef ZFP_ITERATOR1_H
#define ZFP_ITERATOR1_H
namespace zfp {
namespace internal {
namespace dim1 {
// random access const iterator that visits 1D array or view block by block
template <class Container>
class const_iterator : public const_handle<Container> {
public:
// typedefs for STL ... | 1,683 |
589 | <filename>inspectit.server.diagnosis/src/test/java/rocks/inspectit/server/diagnosis/service/data/DiagnosisHelperTest.java
package rocks.inspectit.server.diagnosis.service.data;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.is;
import java.sql.Timestamp;
import org.testng.a... | 876 |
681 | <gh_stars>100-1000
#include "driver2.h"
#include "d2mapasm.h"
#include "C/map.h"
#include "C/dr2roads.h"
u_int region_buffer_xor = 0;
u_int sdSelfModifyingCode = 8;
extern int sdLevel;
extern short* RoadMapDataRegions[4];
extern short* sdGetBSP(sdNode* node, XYPAIR* pos);
extern sdPlane* FindRoadInBSP(sdNode* node, ... | 2,556 |
1,755 | /*=========================================================================
Program: Visualization Toolkit
Module: vtkGarbageCollector.cxx
Copyright (c) <NAME>, <NAME>, <NAME>
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed ... | 9,789 |
473 | #ifndef GDBSTUB_H
#define GDBSTUB_H
#define DEFAULT_GDBSTUB_PORT "1234"
/* GDB breakpoint/watchpoint types */
#define GDB_BREAKPOINT_SW 0
#define GDB_BREAKPOINT_HW 1
#define GDB_WATCHPOINT_WRITE 2
#define GDB_WATCHPOINT_READ 3
#define GDB_WATCHPOINT_ACCESS 4
#ifdef NEED_CPU_H
typedef void (... | 1,131 |
6,098 | package water.util;
import org.joda.time.DurationFieldType;
import org.joda.time.Period;
import org.joda.time.PeriodType;
import org.joda.time.format.PeriodFormat;
import org.joda.time.format.PeriodFormatter;
import water.fvec.C1SChunk;
import water.fvec.C2SChunk;
import water.fvec.C4SChunk;
import water.fvec.Chunk;
... | 2,969 |
5,133 | <reponame>unshare/mapstruct<filename>processor/src/test/java/org/mapstruct/ap/test/constructor/manysourcearguments/ManySourceArgumentsConstructorMapper.java
/*
* Copyright MapStruct Authors.
*
* Licensed under the Apache License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0
*/
package org.map... | 311 |
620 | <reponame>thmclellan/PDF-Writer
/*
Source File : PDFObjectCastTest.cpp
Copyright 2011 <NAME> PDFWriter
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/... | 651 |
1,073 | # Copyright 2019 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | 3,180 |
682 | #ifndef LUT_STATS_H
#define LUT_STATS_H
#include <utility> //for pair<>
#include "vqm_dll.h"
void print_lut_stats(t_module* module);
void print_lut_carry_stats(t_module* module);
std::pair<bool,bool> is_carry_chain_lut(t_node* node);
#endif
| 107 |
381 | /*
MIT License
Copyright (c) 2014-2017 <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publi... | 3,473 |
852 | <gh_stars>100-1000
import FWCore.ParameterSet.Config as cms
from Configuration.Generator.PythiaUESettings_cfi import *
generator = cms.EDFilter("Pythia6GeneratorFilter",
pythiaPylistVerbosity = cms.untracked.int32(0),
filterEfficiency = cms.untracked.double(1.0),
pythiaHepMCVerbosity = cms.untracked.bool(F... | 884 |
3,631 | <gh_stars>1000+
/*
* Copyright 2020 Red Hat, Inc. and/or its affiliates.
*
* 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... | 694 |
856 | //
// Copyright © 2020 Arm Ltd and Contributors. All rights reserved.
// SPDX-License-Identifier: MIT
//
#include <catch.hpp>
#include <map>
#include "Decoder.hpp"
std::map<int, std::string> labels = {
{0, "a" },
{1, "b" },
{2, "c" },
{3, "d" },
{4, "e" },
{5, "f" },
... | 1,584 |
492 | <reponame>jupyter/tmpnb
from distutils.core import setup
import sys
if "develop" in sys.argv or any(arg.startswith("bdist") for arg in sys.argv):
import setuptools
setup_args = dict(
name="tmpnb",
version="0.1.0",
description="Tool for launching temporary Jupyter notebook servers",
url="https://gi... | 230 |
911 | <filename>lib.JBE/src/ee/ioc/cs/jbe/browser/detail/attributes/code/ErrorReportWindow.java<gh_stars>100-1000
/*
*
*/
package ee.ioc.cs.jbe.browser.detail.attributes.code;
import java.awt.Dimension;
import javax.swing.JDialog;
import javax.swing.JFrame;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
p... | 319 |
2,185 | /* kernel reads */
uint32_t seed_ins_source[]={
/* 4 byte */
0xc1f2adbd,
0xc291a469,
0xc291a46d,
0xc451b086,
0xc495874d,
0xc635b945,
0xc673b789,
0xc673b989,
0xc677a94d,
0xc677b94d,
0xc677b9c5,
0xc8538c8d,
};
/* not run */
#if 0
#endif
/* run */
#if 0
/* zero bytes */
uint32_t seed_ins_source[]={
0xc5e9a... | 3,236 |
1,410 | from urllib.parse import urlparse
from unittest.mock import MagicMock
from pulsar.apps.wsgi import wsgi_request
from pulsar.apps.http import HttpWsgiClient
async def test_wsgi_request(url=None, method=None, headers=None, **kwargs):
"""Create a valid WSGI request
:param url: optional path
:param method: ... | 397 |
2,151 | <reponame>zipated/src<gh_stars>1000+
// 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.
//
// Implementation of the collection of a stability file to a protocol buffer.
#ifndef COMPONENTS_BROWSER_WATCHER_S... | 520 |
607 |
class Something {};
| 6 |
3,428 | {"blank":"\nblank()\n Renders a blank screen.\n","currentSlide":"\ncurrentSlide\n Returns the current presentation slide index.\n","end":"\nend()\n Jumps to the last fragment of the last slide.\n","first":"\nfirst()\n Jumps to the first slide.\n","firstFragment":"\nfirstFragment()\n Jumps to the first fr... | 553 |
590 | <reponame>HareGun/xboot
#include <x.h>
#include <sandbox.h>
void sandbox_pm_shutdown(void)
{
sync();
reboot(RB_POWER_OFF);
}
void sandbox_pm_reboot(void)
{
sync();
reboot(RB_AUTOBOOT);
}
void sandbox_pm_sleep(void)
{
sync();
sandbox_sysfs_write_string("/sys/power/state", "mem");
}
| 134 |
2,917 | //
// DynamicColor.h
// DynamicColor
//
// Created by <NAME> on 16/07/2020.
// Copyright © 2020 <NAME>. All rights reserved.
//
#import <Foundation/Foundation.h>
//! Project version number for DynamicColor.
FOUNDATION_EXPORT double DynamicColorVersionNumber;
//! Project version string for DynamicColor.
FOUNDATIO... | 142 |
582 | /*******************************************************************************
* Copyright (c) 2004, 2010 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, an... | 1,028 |
348 | {"nom":"Ménétréols-sous-Vatan","circ":"2ème circonscription","dpt":"Indre","inscrits":103,"abs":35,"votants":68,"blancs":1,"nuls":1,"exp":66,"res":[{"nuance":"FN","nom":"<NAME>","voix":14},{"nuance":"MDM","nom":"<NAME>","voix":14},{"nuance":"LR","nom":"<NAME>","voix":11},{"nuance":"DVD","nom":"<NAME>","voix":9},{"nuanc... | 270 |
1,125 | // This file is part of libigl, a simple c++ geometry processing library.
//
// Copyright (C) 2013 <NAME> <<EMAIL>>
//
// This Source Code Form is subject to the terms of the Mozilla Public License
// v. 2.0. If a copy of the MPL was not distributed with this file, You can
// obtain one at http://mozilla.org/MPL/2.... | 734 |
1,350 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.quota.models;
import com.azure.core.util.Context;
import com.azure.resourcemanager.quota.fluent.models.CurrentQuotaLimitBaseInne... | 2,111 |
309 | #include <vtkSmartPointer.h>
#include <vtkPoints.h>
#include <vtkPolyData.h>
#include <vtkSphereSource.h>
#include <vtkMultiBlockMergeFilter.h>
#include <vtkMultiBlockDataSet.h>
int main(int, char *[])
{
vtkSmartPointer<vtkSphereSource> sphereSource1 =
vtkSmartPointer<vtkSphereSource>::New();
sphereSource1->U... | 449 |
2,671 | import _sk_fail; _sk_fail._("xdrlib")
| 17 |
2,338 | // RUN: %clang_cc1 -triple=x86_64-linux-gnu -emit-llvm -fstrict-vtable-pointers -o - %s \
// RUN: | FileCheck --check-prefixes=CHECK,CHECK-STRICT %s
// RUN: %clang_cc1 -triple=x86_64-linux-gnu -emit-llvm -o - %s \
// RUN: | FileCheck --check-prefixes=CHECK,CHECK-NONSTRICT %s
//===--------------------------------------... | 4,172 |
1,350 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.automation.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.annotation.JsonFlatten;
import com.azure.core.... | 2,311 |
388 | // Fullspeed interface for fuzzer
//
// This file provides a streamlined API for AFL to run the target process using the forkserver.
// It also implements a watchdog timer to monitor the forkserver for hangs and timeouts.
//
// In persistent mode, the watchdog is the only way we detect timeouts.
#include <Windows.h>
... | 2,321 |
521 | /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the Lic... | 1,605 |
535 | <reponame>MHASgamer/js-samples
{
"title": "Showing Pixel and Tile Coordinates",
"callback": "initMap",
"libraries": [],
"version": "weekly",
"tag": "map_coordinates",
"name": "map-coordinates"
}
| 79 |
335 | {
"word": "Token",
"definitions": [
"Done for the sake of appearances or as a symbolic gesture.",
"Denoting a member of a minority group included in an otherwise homogeneous set of people in order to give the appearance of diversity."
],
"parts-of-speech": "Adjective"
} | 99 |
348 | {"nom":"Sancy-les-Cheminots","circ":"5ème circonscription","dpt":"Aisne","inscrits":85,"abs":35,"votants":50,"blancs":0,"nuls":3,"exp":47,"res":[{"nuance":"REM","nom":"<NAME>","voix":25},{"nuance":"FN","nom":"<NAME>","voix":22}]} | 94 |
557 | <reponame>michelelacorte/candybar-library<gh_stars>100-1000
package com.dm.material.dashboard.candybar.items;
import android.content.pm.ResolveInfo;
/*
* CandyBar - Material Dashboard
*
* Copyright (c) 2014-2016 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not u... | 466 |
1,025 | <gh_stars>1000+
//------------------------------ kaCliLauncher.cpp ------------------------------
// C++.
#include <string>
#include <set>
#include <sstream>
#include <stdint.h>
// Infra.
#include <AMDTOSWrappers/Include/osThread.h>
#include <AMDTOSWrappers/Include/osFilePath.h>
#include <AMDTOSWrappers/Include/osDeb... | 13,692 |
310 | #ifndef SRC_IPC_H_
#define SRC_IPC_H_
#include <stdint.h>
#include "uv.h"
#include "ringbuffer.h"
#include "include/bud/ipc.h"
#include "src/error.h"
/* Forward declarations */
struct bud_config_s;
typedef enum bud_ipc_state_e bud_ipc_state_t;
typedef enum bud_ipc_ready_e bud_ipc_ready_t;
typedef struct bud_ipc_s... | 1,025 |
716 | import unittest
import numpy as np
from numpy.random import rand
import pinocchio as pin
from pinocchio import skew, unSkew, skewSquare
from test_case import PinocchioTestCase
class TestSpatial(PinocchioTestCase):
def test_skew(self):
v3 = rand(3)
self.assertApprox(v3, unSkew(skew(v3)))
... | 579 |
301 | <reponame>jongsunglee/test_iotivity<filename>service/easy-setup/mediator/richsdk/android/EasySetupCore/src/main/jni/JniGetEnrolleeStatusListener.cpp
/******************************************************************
*
* Copyright 2016 Samsung Electronics All Rights Reserved.
*
*
*
* Licensed under the Apache Lic... | 2,344 |
316 | // Copyright <NAME> 2018.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include "ui/components/styled_knobs.h"
#include "resources.h"
RESOURCE(Res, knob_skin);
RESOURCE(Res, slider_skin... | 780 |
852 | import FWCore.ParameterSet.Config as cms
ecalPedHists = cms.EDAnalyzer("EcalPedHists",
# sepecify list of samples to use
listSamples = cms.untracked.vint32(1, 2, 3),
EEdigiCollection = cms.InputTag("ecalEBunpacker","eeDigis"),
EBdigiCollection = cms.InputTag("ecalEBunpacker","ebDigis"),
# selection... | 311 |
473 | <filename>challenges/Flash_File_System/pov_1/pov.c
/*
Author: <NAME> <<EMAIL>>
Copyright (c) 2015 Cromulence LLC
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 wi... | 3,017 |
2,666 | <reponame>CogentEmbedded/uthash
/*
* =====================================================================================
*
* Filename: cache.c
*
* Description: A simple cache
*
* Version: 1.0
* Created: 04/11/2013 02:31:02 PM
* Revision: none
* Compiler: gcc
*
* ... | 1,948 |
892 | <filename>advisories/unreviewed/2022/05/GHSA-8gpg-jrjq-xx4m/GHSA-8gpg-jrjq-xx4m.json
{
"schema_version": "1.2.0",
"id": "GHSA-8gpg-jrjq-xx4m",
"modified": "2022-05-17T00:00:51Z",
"published": "2022-05-07T00:00:36Z",
"aliases": [
"CVE-2022-23802"
],
"details": "Joomla Guru extension 5.2.5 is affected b... | 494 |
1,327 | <filename>src/common/reduction_pd.hpp
/*******************************************************************************
* Copyright 2020-2021 Intel Corporation
*
* 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... | 2,136 |
450 | /*
* This API is subset plunit lib with http://www.apollo-pro.com/help/pl_unit_assertions.htm
*
*/
#include "postgres.h"
#include "funcapi.h"
#include "parser/parse_oper.h"
#include "utils/builtins.h"
#include "orafunc.h"
#include "builtins.h"
PG_FUNCTION_INFO_V1(plunit_assert_true);
PG_FUNCTION_INFO_V1(plunit_ass... | 4,607 |
2,406 | // Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
///
/// @file
///
/// @brief Application configuration Leon header
///
#ifndef _XLINKSEMAPHORE_H
#define _XLINKSEMAPHORE_H
# if (defined(_WIN32) || defined(_WIN64))
# include "win_pthread.h"
# include "win_semaphore.h"
# in... | 688 |
432 | <reponame>zgc/fabric-net-server
/*
* Copyright (c) 2018. Aberic - 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
*... | 398 |
2,046 | /**
* @file src/fileinfo/file_information/file_information_types/export_table.h
* @brief Export table.
* @copyright (c) 2017 Avast Software, licensed under the MIT license
*/
#ifndef FILEINFO_FILE_INFORMATION_FILE_INFORMATION_TYPES_EXPORT_TABLE_H
#define FILEINFO_FILE_INFORMATION_FILE_INFORMATION_TYPES_EXPORT_TABL... | 454 |
384 |
package org.holoeverywhere.util;
import android.os.Parcel;
import android.os.Parcelable;
public class SparseIntArray implements Cloneable, Parcelable {
public static final Creator<SparseIntArray> CREATOR = new Creator<SparseIntArray>() {
@Override
public SparseIntArray createFromParcel(Parcel sou... | 2,726 |
4,002 | package me.zeroX150.cornos.features.module.impl.external;
import me.zeroX150.cornos.Cornos;
import me.zeroX150.cornos.features.module.Module;
import me.zeroX150.cornos.features.module.ModuleType;
public class XRAY extends Module {
public XRAY() {
super("XRAY", "Tired of stripmining?", ModuleType.WORLD);
... | 251 |
1,405 | <gh_stars>1000+
package QQPIM;
public final class Act {
public static final Act E_ACT_CHANGE_CODE = new Act(4, 4, "E_ACT_CHANGE_CODE");
public static final Act E_ACT_CHANGE_TIME = new Act(7, 7, "E_ACT_CHANGE_TIME");
public static final Act E_ACT_CLOSE = new Act(5, 5, "E_ACT_CLOSE");
public static final... | 1,010 |
668 | /*
* Copyright (c) 2017, 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 copyright notice,... | 2,004 |
427 | <filename>externals/wasm-compiler/llvm/lib/CodeGen/ImplicitNullChecks.cpp<gh_stars>100-1000
//===-- ImplicitNullChecks.cpp - Fold null checks into memory accesses ----===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. ... | 7,642 |
4,697 | <filename>source/serializer/tmfile/tm2_serializer.h
/*
* 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 ... | 469 |
388 | import json
from os import path
from unittest.mock import patch
import aiounittest
# from botbuilder.ai.qna import QnAMakerEndpoint, QnAMaker, QnAMakerOptions
from botbuilder.ai.qna.dialogs import QnAMakerDialog
from botbuilder.schema import Activity, ActivityTypes
from botbuilder.core import ConversationState, Memory... | 3,042 |
476 | <filename>presto-main/src/main/java/io/prestosql/operator/GroupAggregationOperator.java
/*
* 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.... | 7,310 |
851 | import os
import shutil
import sys
import tempfile
import unittest
from attic.platform import acl_get, acl_set
from attic.testsuite import AtticTestCase
ACCESS_ACL = """
user::rw-
user:root:rw-:0
user:9999:r--:9999
group::r--
group:root:r--:0
group:9999:r--:9999
mask::rw-
other::r--
""".strip().encode('ascii')
DEFAU... | 1,863 |
23,439 | /*
* Copyright 1999-2018 Alibaba Group Holding 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 applica... | 782 |
343 | package org.cronhub.managesystem.commons.interceptor;
import org.apache.struts2.ServletActionContext;
import com.opensymphony.xwork2.ActionInvocation;
import com.opensymphony.xwork2.interceptor.AbstractInterceptor;
public class PageCharEnodeInterceptor extends AbstractInterceptor {
@Override
public String interce... | 170 |
372 | <reponame>MZehren/msaf<filename>tests/test_run.py
#!/usr/bin/env python
#
# Run me as follows:
# cd tests/
# nosetests
# For plotting and testing
from __future__ import print_function
import matplotlib
matplotlib.use('Agg')
matplotlib.rcParams.update(matplotlib.rcParamsDefault)
import matplotlib.style
matplotlib.style... | 3,570 |
1,418 | package aima.test.core.unit.logic.fol;
import java.util.List;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import aima.core.logic.fol.PredicateCollector;
import aima.core.logic.fol.domain.DomainFactory;
import aima.core.logic.fol.parsing.FOLParser;
import aima.core.logic.fol.pa... | 346 |
541 | // Copyright 2019 ETH Zürich, <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 notice,
// this list of conditions and the following dis... | 2,224 |
373 | package com.dianrong.common.uniauth.common.bean.request;
import java.util.List;
public class RoleParam extends Operator {
private static final long serialVersionUID = -1555945847793133921L;
private Integer id;
private String name;
private String description;
private Byte status;
private Integer roleCodeI... | 1,019 |
3,084 | <gh_stars>1000+
#pragma once
#define DEVICE_PROTOCOL_VALUE L"Multi-Transport Protocol ver 1.00"
#define DEVICE_FIRMWARE_VERSION_VALUE L"1.0.0.0"
#define DEVICE_POWER_LEVEL_VALUE 100
#define DEVICE_MODEL_VALUE L... | 2,230 |
398 | from functools import partial
import numpy as np
import pytest
from scvi.data import synthetic_iid
from scvi.model import SCVI
from scvi.model.base._differential import (
DifferentialComputation,
estimate_delta,
estimate_pseudocounts_offset,
)
from scvi.model.base._utils import _prepare_obs
def test_fea... | 1,894 |
416 | //
// CKShare.h
// CloudKit
//
// Copyright (c) 2016 Apple Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <CloudKit/CKRecord.h>
#import <CloudKit/CKShareParticipant.h>
NS_ASSUME_NONNULL_BEGIN
CK_EXTERN NSString * const CKRecordTypeShare NS_AVAILABLE(10_12, 10_0);
/* Predefined keys in the... | 1,338 |
1,130 | /*
Copyright (c) 2014, <NAME>
2-clause BSD license.
*/
#ifndef __LIMITS_H
#define __LIMITS_H
#define CHAR_BIT 8
#ifdef __SMALLER_C_SCHAR__
#define CHAR_MIN (-128)
#define CHAR_MAX 127
#endif
#ifdef __SMALLER_C_UCHAR__
#define CHAR_MIN 0
#define CHAR_MAX 255
#endif
#define SCHAR_MIN (-128)
#define SCHAR_MAX 127
... | 326 |
892 | <gh_stars>100-1000
{
"schema_version": "1.2.0",
"id": "GHSA-2mf8-3wf7-hj2g",
"modified": "2022-05-13T01:31:22Z",
"published": "2022-05-13T01:31:22Z",
"aliases": [
"CVE-2019-1752"
],
"details": "A vulnerability in the ISDN functions of Cisco IOS Software and Cisco IOS XE Software could allow an unauthe... | 559 |
690 | package com.artemis.weaver;
import org.objectweb.asm.AnnotationVisitor;
import org.objectweb.asm.ClassVisitor;
import org.objectweb.asm.Opcodes;
import com.artemis.Weaver;
class ProfileAnnotationRemoverWeaver extends ClassVisitor implements Opcodes {
public ProfileAnnotationRemoverWeaver(ClassVisitor cv) {
supe... | 186 |
347 | <filename>mapproxy/source/tile.py
# This file is part of the MapProxy project.
# Copyright (C) 2010 Omniscale <http://omniscale.de>
#
# 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... | 1,561 |
4,213 | foo = 'ns2_file!'
| 9 |
420 | import logging
from rest_framework import status
from rest_framework.authentication import SessionAuthentication
from rest_framework.permissions import IsAdminUser
from rest_framework.response import Response
from rest_framework.views import APIView
from seaserv import seafile_api, ccnet_api
from seahub.api2.authent... | 2,719 |
1,018 | /*
Copyright 2017 D-Wave Systems Inc
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, sof... | 927 |
324 | #ifndef __UINTMAX_T_H_
#define __UINTMAX_T_H_
typedef unsigned long long uintmax_t;
#endif //__UINTMAX_T_H_
| 53 |
2,151 | // Copyright (c) 2011 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 BASE_SYNCHRONIZATION_CANCELLATION_FLAG_H_
#define BASE_SYNCHRONIZATION_CANCELLATION_FLAG_H_
#include "base/synchronization/atomic_flag.h"
na... | 214 |
711 | /*
* Copyright 2016 JBoss Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | 411 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.