max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
4,054 | <filename>messagebus_test/src/tests/speed/JavaClient.java
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
import com.yahoo.messagebus.*;
import com.yahoo.messagebus.test.*;
import com.yahoo.config.*;
import com.yahoo.messagebus.routing.*;
import com.yahoo.message... | 1,972 |
345 | <reponame>michael-hahn/django-lfs
import os
from django.core.management.base import BaseCommand
class Command(BaseCommand):
help = 'Regenerate thumbnails for Shop, Category and Image models if they are missing.'
def handle(self, *args, **options):
from django.conf import settings
from lfs.cor... | 747 |
5,620 | <reponame>zha0/how2heap<filename>glibc_2.23/house_of_roman.c
#define _GNU_SOURCE /* for RTLD_NEXT */
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <malloc.h>
#include <dlfcn.h>
char* shell = "/bin/sh\x00";
/*
Technique was tested on GLibC 2.23, 2.24 via the glibc_build.s... | 5,334 |
320 |
/**
* Write a description of class bubble here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class SortBubble
{ public static void main()
{ int i, j, temp;
int a[] = {4, 6, 3, 2, 1, 8}; //Can be taken as an input
int n = a.length;
for(i = 0; i < n -... | 619 |
415 | #include <stdio.h>
// The code is vulnerable on purpose
int main (int argc, char**argv) {
char buf[30];
sprintf(buf, "Provided value = %s", argv[1]);
puts(buf);
return(0);
}
| 81 |
528 | // This file is composed from parts from skia library (https://github.com/google/skia/)
// Please check skia license if it fits (https://github.com/google/skia/blob/master/LICENSE)
#if !defined(SK_CPU_BENDIAN) && !defined(SK_CPU_LENDIAN)
#if defined(__sparc) || defined(__sparc__) || \
defined(_POWER) || defi... | 1,379 |
14,668 | import itertools
__all__ = ["apply_mask"]
def apply_mask(data: bytes, mask: bytes) -> bytes:
"""
Apply masking to the data of a WebSocket message.
:param data: Data to mask
:param mask: 4-bytes mask
"""
if len(mask) != 4:
raise ValueError("mask must contain 4 bytes")
return by... | 140 |
7,451 | from ..field import Field
from ..scalars import String
class CustomField(Field):
def __init__(self, *args, **kwargs):
self.metadata = kwargs.pop("metadata", None)
super(CustomField, self).__init__(*args, **kwargs)
def test_mounted_type():
unmounted = String()
mounted = Field.mounted(unmo... | 222 |
1,431 | /* ====================================================================
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 Y... | 1,333 |
24,910 | from .keccak import SHA3
__all__ = ['SHA3']
| 19 |
636 | <gh_stars>100-1000
from indy import payment
import json
import pytest
get_auth_rule_resp = {
"result": {
"data": [{
"new_value": "0",
"constraint": {
"need_to_be_owner": False,
"sig_count": 1,
"metadata": {
"fees"... | 795 |
34,359 | /*++
Copyright (c) Microsoft Corporation
Licensed under the MIT license.
Module Name:
- IAccessibilityNotifier.hpp
Abstract:
- OneCore implementation of the IAccessibilityNotifier interface.
Author(s):
- <NAME> (HeGatta) 29-Mar-2017
--*/
#pragma once
#include "../inc/IAccessibilityNotifier.hpp"
... | 426 |
571 | """
Copyright 2021 Nirlep_5252_
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
d... | 664 |
852 | <filename>IOPool/Input/test/test_empty_old_formats_cfg.py
import FWCore.ParameterSet.Config as cms
import sys
process = cms.Process("OLDREAD")
process.source = cms.Source("PoolSource",
fileNames = cms.untracked.vstring("file:"+sys.argv[2]))
| 117 |
892 | <gh_stars>100-1000
{
"schema_version": "1.2.0",
"id": "GHSA-8w58-xxg8-xq44",
"modified": "2022-05-01T06:47:13Z",
"published": "2022-05-01T06:47:13Z",
"aliases": [
"CVE-2006-1229"
],
"details": "SQL injection vulnerability in search.asp in Hosting Controller 6.1 (Hotfix 2.9) allows remote attackers to ... | 508 |
619 | //
// Public.h
// Project
//
// Created by <NAME> on 11.07.17.
// Copyright © 2017 es.ppinera. All rights reserved.
//
#ifndef Public_h
#define Public_h
#endif /* Public_h */
| 71 |
1,137 | <reponame>jayten42/pororo<filename>tests/test_semantic_role_labeling.py
"""Test Semantic Role Labeling module"""
import unittest
from pororo import Pororo
class PororoSRLTester(unittest.TestCase):
def test_modules(self):
srl = Pororo(task="srl", lang="ko")
srl_res = srl("카터는 역삼에서 카카오브레인으로 출근한다.... | 217 |
9,782 | <reponame>willianfonseca/presto<filename>presto-hive/src/main/java/com/facebook/presto/hive/HiveZeroRowFileCreator.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://ww... | 2,797 |
478 | /*
Q Light Controller - Unit tests
qlccapability_test.h
Copyright (C) <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.txt
Unl... | 402 |
634 | # To use jupytext in binder
c.NotebookApp.contents_manager_class = 'jupytext.TextFileContentsManager' # noqa
c.ContentsManager.preferred_jupytext_formats_read = 'py:percent' # noqa
| 68 |
1,350 | <gh_stars>1000+
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.spring.cloud.context.core.util;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
/**
* Mapping an object's type to the object.
*/
public class TypeMap {
pr... | 355 |
356 | /**
* @author sunjianfei
* 此包包含了图片展示的各种样式,这些样式用户不必手动创建和调用,
* 可直接通过,ZjbImageLoader.create(url).setDisplayType(ZjbImageLoader.DISPLAY_SIMPLE)方式确定
*/
package com.zjb.loader.core.display; | 149 |
4,879 | package com.mapswithme.maps.purchase;
import androidx.annotation.StringRes;
import com.mapswithme.maps.R;
public enum BookmarksAllSubscriptionPage
{
GUIDES(R.string.all_pass_subscription_message_title,
R.string.all_pass_subscription_message_subtitle),
BOOKMARKS(R.string.all_pass_subscription_message_titl... | 388 |
634 | package com.intellij.openapi.roots.ui.configuration.projectRoot.daemon;
import com.intellij.icons.AllIcons;
import com.intellij.openapi.module.Module;
import com.intellij.openapi.roots.DependencyScope;
import com.intellij.openapi.util.text.StringUtil;
import consulo.roots.ui.configuration.ModulesConfigurator;
import c... | 911 |
379 | <filename>src/test/java/com/sixt/service/framework/kafka/EagerMessageQueueTest.java
package com.sixt.service.framework.kafka;
import org.apache.kafka.clients.consumer.ConsumerRecord;
import org.junit.Before;
import org.junit.Test;
import org.mockito.ArgumentCaptor;
import static org.assertj.core.api.Assertions.assert... | 531 |
1,738 | /*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or t... | 856 |
3,428 | <filename>lib/node_modules/@stdlib/datasets/spam-assassin/data/easy-ham-2/01276.2492bcd768a07a92ee22c4762db629a2.json
{"id":"01276","group":"easy-ham-2","checksum":{"type":"MD5","value":"2492bcd768a07a92ee22c4762db629a2"},"text":"From <EMAIL> Wed Aug 21 18:16:30 2002\nReturn-Path: <<EMAIL>>\nDelivered-To: y<EMAIL>.net... | 1,483 |
1,144 | package de.metas.dunning.model;
/** Generated Interface for C_DunningDoc_Line_Source
* @author Adempiere (generated)
*/
@SuppressWarnings("javadoc")
public interface I_C_DunningDoc_Line_Source
{
/** TableName=C_DunningDoc_Line_Source */
public static final String Table_Name = "C_DunningDoc_Line_Source";... | 4,040 |
1,008 | # File: genetic.py
# from chapter 3 of _Genetic Algorithms with Python_
#
# Author: <NAME> <<EMAIL>>
# Copyright (c) 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://... | 1,142 |
1,546 | <filename>quickstep/src/com/android/quickstep/FallbackActivityInterface.java<gh_stars>1000+
/*
* Copyright (C) 2019 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the L... | 2,925 |
348 | {"nom":"Lalanne","circ":"2ème circonscription","dpt":"Gers","inscrits":105,"abs":50,"votants":55,"blancs":3,"nuls":4,"exp":48,"res":[{"nuance":"SOC","nom":"<NAME>","voix":25},{"nuance":"REM","nom":"<NAME>","voix":23}]} | 89 |
942 | #include "TBackgroundProcessHandler"
#include "TWebApplication"
/*!
\class TBackgroundProcessHandler
\brief The TBackgroundProcessHandler class is used to handle events of a backgound process.
*/
TBackgroundProcessHandler::TBackgroundProcessHandler(QObject *parent) :
QObject(parent),
TDatabaseContext()
{... | 212 |
2,571 | // ***************************************************************
// Copyright (c) 2021
// <NAME> <<EMAIL>>.
// <NAME> <<EMAIL>>.
// All Rights Reserved.
// This file is subject to the terms and conditions defined in
// file 'LICENSE.txt', which is part of this source code package.
// **********************... | 378 |
310 | package org.seasar.doma.internal.apt.validator;
import java.util.Optional;
import java.util.OptionalDouble;
import java.util.OptionalInt;
import java.util.OptionalLong;
import org.seasar.doma.GeneratedValue;
import org.seasar.doma.GenerationType;
import org.seasar.doma.Id;
import org.seasar.doma.SequenceGenerator;
@S... | 304 |
20,995 | // 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.
#include "src/ic/stub-cache.h"
#include "src/ast/ast.h"
#include "src/base/bits.h"
#include "src/heap/heap-inl.h" // For InYoungGeneration().
#include... | 1,807 |
998 | <gh_stars>100-1000
// Copyright 2021 Phyronnaz
#pragma once
#include "CoreMinimal.h"
#include "VoxelValue.h"
#include "VoxelMinimal.h"
#include "VoxelDiff.h"
#include "UObject/Object.h"
#include "VoxelMultiplayerInterface.generated.h"
struct FVoxelMaterial;
struct FVoxelCompressedWorldSaveImpl;
class IV... | 204 |
311 | <reponame>timgraham/snowflake-connector-python<gh_stars>100-1000
#
# Copyright (c) 2012-2021 Snowflake Computing Inc. All rights reserved.
#
import os
import random
import string
from functools import partial
from logging import getLogger
from tempfile import TemporaryDirectory
from typing import (
TYPE_CHECKING,
... | 4,484 |
1,960 | <filename>lang/java/mapred/src/test/java/org/apache/avro/mapred/TestWordCount.java
/*
* 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... | 1,806 |
4,538 | <filename>hardware/chip/haas1000/drivers/platform/cmsis/inc/cmsis.h
/* mbed Microcontroller Library - CMSIS
* Copyright (C) 2009-2011 ARM Limited. All rights reserved.
*
* A generic CMSIS include header, pulling in LPC11U24 specifics
*/
#ifndef MBED_CMSIS_H
#define MBED_CMSIS_H
#ifdef __cplusplus
extern "C" {
#en... | 1,874 |
660 | // -*- mode: C++ -*-
//
// Copyright (c) 2007, 2008, 2009, 2010, 2011, 2015, 2017 The University of Utah
// All rights reserved.
//
// This file is part of `csmith', a random generator of C programs.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that th... | 1,398 |
5,169 | {
"name": "KLProgressHUD",
"version": "1.0.0",
"platforms": {
"ios": "10.0"
},
"license": {
"type": "MIT",
"file": "LICENSE"
},
"summary": "swift 编写带有进度条显示的HUD。",
"homepage": "https://github.com/KYangLei/KLProgressHUD.git",
"authors": {
"KYangLei": "<EMAIL>"
},
"source": {
"git... | 403 |
746 | package org.protege.editor.owl.ui.action.export.inferred;
import org.protege.editor.core.ui.wizard.Wizard;
import org.protege.editor.owl.OWLEditorKit;
import org.protege.editor.owl.ui.action.OntologyFormatPage;
import org.protege.editor.owl.ui.ontology.wizard.create.OntologyIDPanel;
import org.protege.editor.owl.ui.on... | 1,003 |
534 | {
"type": "mekanism:crystallizing",
"chemicalType": "slurry",
"input": {
"amount": 200,
"slurry": "mekanism:clean_gold"
},
"output": {
"item": "mekanism:crystal_gold"
}
} | 88 |
831 | /*
* Copyright (C) 2018 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 610 |
363 | package com.xunlei.downloadlib.parameter;
public class ServerResourceParam {
public String mCookie;
public String mRefUrl;
public int mResType;
public int mStrategy;
public String mUrl;
public ServerResourceParam(String str, String str2, String str3, int i, int i2) {
this.mUrl = str;
... | 447 |
1,178 | /*
* Definitions for talking to the CUDA. The CUDA is a microcontroller
* which controls the ADB, system power, RTC, and various other things.
*
* Copyright (C) 1996 <NAME>.
*/
#ifndef _LINUX_CUDA_H
#define _LINUX_CUDA_H
/* CUDA commands (2nd byte) */
#define CUDA_WARM_START 0
#define CUDA_AUTOPOLL 1
#define ... | 381 |
354 | <filename>framework/delibs/destream/deInStream.h
#ifndef _DEINSTREAM_H
#define _DEINSTREAM_H
/*-------------------------------------------------------------------------
* drawElements Stream Library
* ---------------------------
*
* Copyright 2014 The Android Open Source Project
*
* Licensed under the Apache Lice... | 631 |
1,592 | /*
* 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 ... | 1,185 |
1,374 | <gh_stars>1000+
/*
* TypeScript definitions to Java translator - http://www.jsweet.org
* Copyright (C) 2015 CINCHEO SAS <<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... | 1,158 |
2,151 | // 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 CHROME_SERVICES_FILE_UTIL_ZIP_FILE_CREATOR_H_
#define CHROME_SERVICES_FILE_UTIL_ZIP_FILE_CREATOR_H_
#include <vector>
#include "chrome/services/... | 509 |
348 | {"nom":"Escalles","circ":"7ème circonscription","dpt":"Pas-de-Calais","inscrits":198,"abs":86,"votants":112,"blancs":1,"nuls":5,"exp":106,"res":[{"nuance":"LR","nom":"<NAME>","voix":85},{"nuance":"FN","nom":"<NAME>","voix":21}]} | 94 |
1,078 | from __future__ import absolute_import, division, print_function
import stripe
TEST_RESOURCE_ID = "si_123"
class TestSubscriptionItem(object):
def test_is_listable(self, request_mock):
resources = stripe.SubscriptionItem.list(subscription="sub_123")
request_mock.assert_requested(
"g... | 1,498 |
1,391 | <reponame>newluhux/plan9port<filename>src/cmd/vbackup/diskftp.c<gh_stars>1000+
#include <u.h>
#include <libc.h>
#include <thread.h>
#include <sunrpc.h>
#include <nfs3.h>
#include <diskfs.h>
int debug;
void
usage(void)
{
fprint(2, "usage: fsview fspartition cmd\n");
fprint(2, "cmd is:\n");
fprint(2, "\tcat file\n")... | 1,167 |
9,472 | <gh_stars>1000+
#pragma once
#include <stdbool.h>
#include <Python.h>
#ifdef PIPELINE_PAIR
typedef struct {
bool is_task;
PyObject* request;
PyObject* task;
} PipelineEntry;
static inline bool
PipelineEntry_is_task(PipelineEntry entry)
{
return entry.is_task;
}
static inline void
PipelineEntry_DECREF(Pipe... | 707 |
728 | package org.sirix.node.interfaces.immutable;
/**
* Immutable value node (for instance text-, attribute-node...).
*
* @author <NAME>
*
*/
public interface ImmutableValueNode {
/**
* Return a byte array representation of the node value.
*
* @return the value of the node
*/
byte[] getRawValue();
... | 146 |
12,252 | /*
* Copyright 2016 Red Hat, Inc. and/or its affiliates
* and other contributors as indicated by the @author tags.
*
* 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.apach... | 1,563 |
504 | <reponame>smmccabe/dsl
package com.structurizr.dsl;
import com.structurizr.model.Enterprise;
import com.structurizr.model.Location;
import com.structurizr.model.Person;
import com.structurizr.model.SoftwareSystem;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
class M... | 1,117 |
2,023 | <filename>recipes/Python/415233_Getting_minmax_sequence_greaterless_thsome/recipe-415233.py
def min_gt(seq, val):
"""
Return smallest item in seq for which item > val applies.
None is returned if seq was empty or all items in seq were <= val.
>>> min_gt([1, 3, 6, 7], 4)
6
>>> min_gt([2, 4, 7, 1... | 655 |
1,901 | #ifndef StrokeManager_h
#define StrokeManager_h
#import <UIKit/UIKit.h>
#import "RecognizedInk.h"
NS_ASSUME_NONNULL_BEGIN
/**
* Protocol used by the `StrokeManager` to send requests back to the `ViewController` to update the
* display.
*/
@protocol StrokeManagerDelegate <NSObject>
/** Clears any temporary ink ma... | 900 |
118,175 | /*
* 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.
*/
package com.facebook.react.uimanager.events;
/**
* An interface that can be implemented by a {@link com.facebook.react.bridge.Rea... | 234 |
2,098 | #define MR_CHAN_C_
#include <pthread.h>
#include <sys/time.h>
#include <stdlib.h>
#include <errno.h>
#include <stdio.h>
#include <assert.h>
void *MRCHANNEL_CLOSED = (void *)"MRCHANNEL_CLOSED";
typedef struct chanItem {
void *ptr;
struct chanItem *next;
} chanItem;
typedef struct MRChannel {
chanItem *head;
c... | 1,488 |
4,283 | /*
* Copyright (c) 2008-2021, Hazelcast, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required ... | 2,555 |
367 | from enum import Enum
from typing import Dict, Any
from jwt.algorithms import get_default_algorithms
from cryptography.hazmat._types import (
_PRIVATE_KEY_TYPES,
_PUBLIC_KEY_TYPES,
)
# custom types
PrivateKey = _PRIVATE_KEY_TYPES
PublicKey = _PUBLIC_KEY_TYPES
JWTClaims = Dict[str, Any]
class EncryptionKeyFo... | 357 |
60,067 | #include <torch/csrc/jit/codegen/cuda/arith.h>
#include <torch/csrc/jit/codegen/cuda/executor.h>
#include <torch/csrc/jit/codegen/cuda/fusion.h>
#include <torch/csrc/jit/codegen/cuda/lower2device.h>
#include <torch/csrc/jit/codegen/cuda/scheduler/all_schedulers.h>
#include <benchmark/benchmark.h>
#include <cuda_runti... | 5,317 |
4,996 | <reponame>nishp77/lbry-sdk
from lbry.testcase import CommandTestCase
class AddressManagement(CommandTestCase):
async def test_address_list(self):
addresses = await self.out(self.daemon.jsonrpc_address_list())
self.assertItemCount(addresses, 27)
single = await self.out(self.daemon.jsonrpc... | 1,038 |
7,737 | <filename>ext/phalcon/html/helper/script.zep.c
#ifdef HAVE_CONFIG_H
#include "../../../ext_config.h"
#endif
#include <php.h>
#include "../../../php_ext.h"
#include "../../../ext.h"
#include <Zend/zend_operators.h>
#include <Zend/zend_exceptions.h>
#include <Zend/zend_interfaces.h>
#include "kernel/main.h"
#include ... | 874 |
501 | #!/usr/bin/env python
#
# Author: <NAME> <<EMAIL>>
#
'''
CCSD and CCSD(T) density matrices
'''
import numpy
from pyscf import gto, scf, cc, ao2mo
mol = gto.M(
atom = 'H 0 0 0; F 0 0 1.1',
basis = 'ccpvdz')
mf = scf.RHF(mol).run()
mycc = cc.CCSD(mf).run()
#
# CCSD density matrix in MO basis
#
dm1 = mycc.make... | 741 |
28,056 | package com.alibaba.json.bvt.kotlin;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.util.ASMUtils;
import junit.framework.TestCase;
import org.apache.commons.io.IOUtils;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.HashMap;
import java.ut... | 771 |
7,482 | /*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2020-1-13 Leo first version
*/
#include <board.h>
#include "drv_pwm.h"
#ifdef RT_USING_PWM
#if !defined(BSP_USING_TIM3_CH1) && !defined(BSP_USING... | 3,578 |
416 | <gh_stars>100-1000
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. 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/li... | 4,021 |
679 | <reponame>Grosskopf/openoffice<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
* regarding copyrig... | 2,867 |
1,062 | <gh_stars>1000+
//
// Generated by class-dump 3.5b1 (64 bit) (Debug version compiled Dec 3 2019 19:59:57).
//
// Copyright (C) 1997-2019 <NAME>.
//
#import "InteractiveComposeContext.h"
@class NSRunningApplication;
@interface ActivatingComposeContext : InteractiveComposeContext
{
NSRunningApplication *_res... | 318 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-5g96-p6qf-5h9j",
"modified": "2022-05-02T06:17:12Z",
"published": "2022-05-02T06:17:12Z",
"aliases": [
"CVE-2010-0921"
],
"details": "Cross-site request forgery (CSRF) vulnerability in IBM Lotus iNotes (aka Domino Web Access or DWA) before 229.281 for Domino 8.... | 545 |
2,928 | /**
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
*
* Do not edit this file as changes may cause incorrect behavior and will be lost
* once the code is regenerated.
*
* @generated by codegen project: GeneratePropsJavaInterface.js
*/
package com.facebook.react.... | 133 |
310 | <reponame>dreeves/usesthis
{
"name": "SAVE",
"description": "Static analysis software for developers.",
"url": "http://www.coverity.com/products/coverity-save/"
} | 59 |
5,169 | {
"name": "Titanium",
"version": "0.7",
"license": "None",
"summary": "Image viewer library",
"description": " A library that provides a way to view full screen images from thumbnail previews.\n",
"homepage": "https://github.com/Quri/Titanium",
"authors": {
"<NAME>": "<EMAIL>"
},
... | 219 |
349 | /*********************************************************************************
*
* Inviwo - Interactive Visualization Workshop
*
* Copyright (c) 2014-2021 Inviwo Foundation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided th... | 12,270 |
675 | #include "shader_node.h"
#ifdef ECHO_EDITOR_MODE
#include <nodeeditor/Connection>
namespace Echo
{
ShaderNode::ShaderNode()
: Object()
{
}
ShaderNode::~ShaderNode()
{
EditorApi.showObjectProperty(nullptr);
}
void ShaderNode::bindMethods()
{
CLASS_BIND_METHOD(ShaderNode, getVariableName);
CLASS_BIND... | 2,225 |
1,856 | #include <iostream>
#include <map>
#include <sstream>
#include <stdlib.h>
#include <string.h>
#include "PcapPlusPlusVersion.h"
#include "IPv4Layer.h"
#include "IPv6Layer.h"
#include "IPReassembly.h"
#include "PcapFileDevice.h"
#include "SystemUtils.h"
#include "getopt.h"
#define EXIT_WITH_ERROR(reason) do { \
printU... | 5,024 |
587 | <gh_stars>100-1000
//
// SPDX-License-Identifier: BSD-3-Clause
// Copyright (c) Contributors to the OpenEXR Project.
//
//-----------------------------------------------------------------------------
//
// class EnvmapImage
//
//-----------------------------------------------------------------------------
#include "E... | 2,521 |
2,151 | <reponame>google-ar/chromium
// Copyright 2016 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 "components/sync/base/hash_util.h"
#include "base/base64.h"
#include "base/sha1.h"
#include "components/sync/protoc... | 410 |
326 | // Boost.Geometry
// Copyright (c) 2021, Oracle and/or its affiliates.
// Contributed and/or modified by <NAME>, on behalf of Oracle
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef BOOST_GEOMETRY_ALGOR... | 761 |
2,594 | /*
* Copyright (C) 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 3,320 |
988 | /*
* 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 ... | 14,255 |
1,000 | # Copyright 2016, Cossack Labs 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 applicable law or agreed to in wri... | 1,926 |
834 | <gh_stars>100-1000
import sys
import os
# Only for testing
if os.path.exists('../swapy/__init__.py'):
sys.path.append(os.path.abspath('../'))
else:
sys.path.append(os.path.abspath('./'))
import swapy
from swapy.ext import api_docs
from swapy.testing import client
from swapy.middlewares import JsonMiddleware
ap... | 317 |
1,988 | <filename>src/lib/prov/openssl/openssl_rsa.cpp
/*
* RSA operations provided by OpenSSL
* (C) 2015 <NAME>
* (C) 2017 <NAME>
*
* Botan is released under the Simplified BSD License (see license.txt)
*/
#include <botan/internal/openssl.h>
#if defined(BOTAN_HAS_RSA)
#include <botan/rsa.h>
#include <botan/rng.h>
#include ... | 5,120 |
772 | <filename>dashboard/config/programming_expressions/spritelab/codestudio_ifStatement.json
{
"category": "Logic",
"config": {
"docFunc": "codestudio_ifStatement",
"func": "controls_if_if"
}
} | 83 |
2,816 | // Copyright 2004 The RE2 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 "re2/stringpiece.h"
#include <ostream>
#include "util/util.h"
namespace duckdb_re2 {
const StringPiece::size_type StringPiece::npos; // initiali... | 913 |
892 | <gh_stars>100-1000
{
"schema_version": "1.2.0",
"id": "GHSA-cq62-c6vp-pfrh",
"modified": "2022-05-05T02:48:14Z",
"published": "2022-05-05T02:48:14Z",
"aliases": [
"CVE-2013-0004"
],
"details": "Microsoft .NET Framework 1.0 SP3, 1.1 SP1, 2.0 SP2, 3.0 SP2, 3.5, 3.5.1, 4, and 4.5 does not properly valida... | 552 |
324 | /*
* 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 ... | 1,766 |
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.messaging.servicebus.implementation.models;
import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
impor... | 613 |
4,095 | /*
* Copyright 2011-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 4,142 |
505 | <gh_stars>100-1000
////////////////////////////////////////////////////////////////////////////////
// //
// Copyright (C) 2016, goatpig //
// Distributed under the MIT license ... | 8,517 |
826 | <filename>lib/yamlcpp/include/yaml-cpp/traits.h
#ifndef TRAITS_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define TRAITS_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#if defined(_MSC_VER) || \
(defined(__GNUC__) && (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || \
(__GNUC__ >= 4)) ... | 1,119 |
1,403 | package org.dynmap.forge_1_12_2.permissions;
import java.util.Set;
import net.minecraft.command.ICommandSender;
public interface PermissionProvider {
boolean has(ICommandSender sender, String permission);
boolean hasPermissionNode(ICommandSender sender, String permission);
Set<String> hasOfflinePer... | 136 |
434 | /*
* Copyright 2016 flipkart.com zjsonpatch.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | 425 |
749 | <filename>lib/Logger.cpp
// Copyright (c) 2014-2015 <NAME>
// SPDX-License-Identifier: BSL-1.0
#include <SoapySDR/Logger.hpp>
void SoapySDR::log(const LogLevel logLevel, const std::string &message)
{
return SoapySDR_log(logLevel, message.c_str());
}
void SoapySDR::vlogf(const SoapySDRLogLevel logLevel, const cha... | 237 |
2,854 | # Copyright 2020 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 1,366 |
4,329 | <gh_stars>1000+
{
"name": "react-server-redux",
"version": "1.0.0-alpha.2",
"description": "Redux support for React-Server",
"main": "target/index.js",
"scripts": {
"build": "gulp build",
"clean": "rimraf target npm-debug.log*",
"lint": "eslint src test",
"test": "ava test/*.spec.js",
"pre... | 380 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.