max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
4,013 | import unittest
from checkov.terraform.context_parsers.registry import parser_registry
from tests.terraform.context_parsers.mock_context_parser import MockContextParser
import os
mock_definition = (os.path.dirname(os.path.realpath(__file__)) + '/mock_tf_files/mock.tf', {'mock': [
{
'mock_type': {
... | 356 |
392 | <reponame>Da-Krause/settlers-remake
/*******************************************************************************
* Copyright (c) 2015
*
* 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 w... | 984 |
5,169 | <filename>Specs/2/c/c/AXASDK/19.12/AXASDK.podspec.json
{
"name": "AXASDK",
"version": "19.12",
"summary": "A short description of AXASDK.",
"description": "TODO: Add long description of the pod here.",
"homepage": "https://github.com/Aruna-Sree/AXASDK.git",
"license": {
"type": "MIT",
"file": "LICEN... | 489 |
546 | #include "Msnhnet/hardware/MsnhSerialPort.h"
namespace Msnhnet
{
std::vector<Msnhnet::PortInfo> SerialPort::searchPorts()
{
return Msnhnet::list_ports();
}
SerialPort::SerialPort(const std::string &port, uint32_t baudrate, Timeout timeout, bytesize_t bytesize, parity_t parity, stopbits_t stopbits, flowcontrol_t f... | 155 |
965 | <gh_stars>100-1000
// Create "Customize" page
// CMFCRibbonBar m_wndRibbonBar
CMFCRibbonCustomizePropertyPage pageCustomize(&m_wndRibbonBar);
// Create a list of popular items:
CList<UINT, UINT> lstPopular;
lstPopular.AddTail(ID_FILE_NEW);
lstPopular.AddTail(ID_FILE_OPEN);
// add a custom category
pageCustomize.AddCu... | 140 |
14,668 | <gh_stars>1000+
/* Copyright (c) 2012 The Chromium Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
/* From pp_input_event.idl modified Thu Mar 28 10:52:59 2013. */
#ifndef PPAPI_C_PP_INPUT_EVENT_H_
#define PPAPI_C_PP_INPUT_EVENT... | 2,504 |
30,023 | """Provides the Canary DataUpdateCoordinator."""
from __future__ import annotations
from collections.abc import ValuesView
from datetime import timedelta
import logging
from async_timeout import timeout
from canary.api import Api, Location
from requests.exceptions import ConnectTimeout, HTTPError
from homeassistant.... | 841 |
3,702 | <gh_stars>1000+
// Copyright (c) YugaByte, Inc.
package com.yugabyte.yw.forms;
import play.data.validation.Constraints;
public class PagedRequestFormData<F, S> {
@Constraints.Required() public F filter;
@Constraints.Required() public S sortBy;
@Constraints.Required() public int offset;
@Constraints.Requir... | 118 |
746 | # Copyright 2019 The Texar 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 applicable ... | 7,613 |
793 | <filename>clang/test/Refactor/Extract/extract-reference-of-captured-variable.cpp
void takesPtr(int *x) { }
typedef struct {
int width, height;
} Rectangle;
void takesStructPtr(Rectangle *sp) { }
void variableTakesRef(int x, Rectangle r) {
int &y = x;
takesPtr(&y);
// CHECK1: (int &x) {\nint &y = x;\n takesPt... | 5,153 |
535 | # coding: utf-8
def controller(func):
def _controller(
query_arguments,
body_arguments,
get_query_argument,
get_body_argument
):
result = func(
query_arguments,
body_arguments,
get_query_argument,
get_body_... | 531 |
892 | <gh_stars>100-1000
#!/usr/bin/python2.7
# xdelta3 - delta compression tools and library -*- Mode: C++ -*-
# 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://ww... | 1,747 |
807 | {
"ConnectionStrings": {
"Default": "Server=(LocalDb)\\MSSQLLocalDB;Database=BookStore;Trusted_Connection=True",
"AbpPermissionManagement": "Server=(LocalDb)\\MSSQLLocalDB;Database=BookStore_SecondDb;Trusted_Connection=True",
"AbpSettingManagement": "Server=(LocalDb)\\MSSQLLocalDB;Database=BookStore_Secon... | 496 |
398 | <filename>joyrpc-extension/joyrpc-extension-core/src/main/java/io/joyrpc/extension/AbstractParametric.java
/**
*
*/
package io.joyrpc.extension;
/*-
* #%L
* joyrpc
* %%
* Copyright (C) 2019 joyrpc.io
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in c... | 5,082 |
905 | import binascii
from malwareconfig import crypto
from malwareconfig.common import Decoder
from malwareconfig.common import string_printable
class BlueBanana(Decoder):
decoder_name = "BlueBanana"
decoder__version = 1
decoder_author = "@kevthehermit"
decoder_description = "Decoder for Blue Banana"
... | 577 |
20,453 | <gh_stars>1000+
import os
ref_dir = os.path.join(os.path.dirname(__file__))
__all__ = sorted(f[:-3] for f in os.listdir(ref_dir) if f.endswith('.py') and
not f.startswith('__'))
for f in __all__:
__import__(__name__ + '.' + f)
del f, ref_dir
__doc__ = """\
Topical documentation
=====================... | 249 |
1,507 | <reponame>abitrolly/hashids.js<filename>package.json
{
"author": "hashids.org <<EMAIL>> (https://github.com/hashids)",
"name": "hashids",
"description": "Generate YouTube-like ids from numbers. Use Hashids when you do not want to expose your database ids to the user.",
"contributors": [
{
"name": "<NA... | 1,948 |
344 | <reponame>ilya-fedin/tg_owt
/*
* Copyright (c) 2020 The WebRTC 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 in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the ... | 1,337 |
1,291 | <gh_stars>1000+
# 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, softw... | 10,743 |
14,668 | <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.
package org.chromium.base;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.annota... | 1,608 |
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... | 931 |
575 | // 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.
#ifndef CHROME_BROWSER_PRINTING_CLOUD_PRINT_PRIVET_HTTP_ASYNCHRONOUS_FACTORY_H_
#define CHROME_BROWSER_PRINTING_CLOUD_PRINT_PRIVET_HTTP_ASYNCHRONOUS_FACTO... | 503 |
1,916 | #ifndef SimTK_SIMBODY_RIGID_BODY_NODE_SPEC_CUSTOM_H_
#define SimTK_SIMBODY_RIGID_BODY_NODE_SPEC_CUSTOM_H_
/* -------------------------------------------------------------------------- *
* Simbody(tm) *
* --------------------------------------------------... | 5,835 |
1,056 | package org.netbeans.test.java.hints;
public abstract class AbstractMethod {
public abstract void method(int i) ;
// System.out.println(i);
// }
public void test() {
method(3, "Hello World!");
method("Hello World!", 3);
method("Hello World!", 3, "");
method(3, 3,... | 144 |
386 | //////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2012, J3P LLC. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of... | 1,048 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-2xrc-mfj2-6vg5",
"modified": "2022-05-01T07:22:34Z",
"published": "2022-05-01T07:22:34Z",
"aliases": [
"CVE-2006-4863"
],
"details": "** DISPUTED ** Multiple PHP remote file inclusion vulnerabilities in Marc Cagninacci mcLinksCounter 1.1 allow remote attackers... | 767 |
5,169 | {
"name": "ARActivityIndicator",
"version": "1.0.1",
"summary": "ARActivityIndicator allow you to show indicator for a process",
"description": "\"ARActivityIndicator allow you to show indicator for a process. You can easily show and hide with a single line of code.\"",
"homepage": "https://github.com/AbdulRe... | 279 |
11,750 | from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Cumulative(_BaseTraceHierarchyType):
# class properties
# --------------------
_parent_path_str = "histogram"
_path_str = "histogram.cumulative"
_valid_props = {"currentbin", "direction",... | 2,951 |
348 | <gh_stars>100-1000
{"nom":"Kédange-sur-Canner","circ":"9ème circonscription","dpt":"Moselle","inscrits":834,"abs":489,"votants":345,"blancs":32,"nuls":1,"exp":312,"res":[{"nuance":"REM","nom":"Mme <NAME>","voix":177},{"nuance":"FN","nom":"Mme <NAME>","voix":135}]} | 110 |
1,100 | /*********************************************************************************
* (Use radio buttons) Write a GUI program as shown in Figure 16.36a. You can use *
* buttons to move the message to the left and right and use the radio buttons to *
* change the color for the message displayed. ... | 1,098 |
14,668 | <filename>media/filters/fuchsia/fuchsia_video_decoder.cc
// 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.
#include "media/filters/fuchsia/fuchsia_video_decoder.h"
#include <fuchsia/mediacodec/cpp/fidl.h... | 9,442 |
6,728 | <filename>csrc/includes/softmax.h
#pragma once
#include <cuda.h>
#include <cuda_fp16.h>
#include <stdio.h>
#include "custom_cuda_layers.h"
#include <fstream>
using namespace std;
template <typename T>
class Softmax {
public:
struct Config {
size_t batchSize;
size_t heads;
... | 781 |
5,169 | <reponame>Gantios/Specs
{
"name": "UPPaymentControl",
"version": "3.3.14",
"summary": "Unionpay SDK",
"description": "A unoffical unionpay SDK pod",
"homepage": "https://github.com/letspod/UPPaymentControl",
"license": {
"type": "MIT"
},
"authors": {
"TBXark": "<EMAIL>"
},
"source": {
"g... | 228 |
5,169 | <gh_stars>1000+
{
"name": "UserKit",
"version": "0.0.5",
"summary": "UserKit tracking library for iOS (Swift)",
"homepage": "http://www.mstage.io/",
"license": {
"type": "Apache License, Version 2.0",
"file": "LICENSE"
},
"authors": {
"mStage": "<EMAIL>"
},
"platforms": {
"ios": "8.0"
... | 270 |
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.implementation;
import com.azure.core.util.Context;
import com.azure.resourcemanager.automation.fluent.models.SourceC... | 3,191 |
348 | {"nom":"Condamine","circ":"5ème circonscription","dpt":"Ain","inscrits":268,"abs":132,"votants":136,"blancs":8,"nuls":3,"exp":125,"res":[{"nuance":"LR","nom":"<NAME>","voix":90},{"nuance":"REM","nom":"<NAME>","voix":35}]} | 87 |
348 | {"nom":"Bonneville","circ":"1ère circonscription","dpt":"Somme","inscrits":254,"abs":132,"votants":122,"blancs":7,"nuls":3,"exp":112,"res":[{"nuance":"FI","nom":"<NAME>","voix":67},{"nuance":"REM","nom":"M. <NAME>","voix":45}]} | 90 |
1,718 | <filename>passes/opt/opt_mem_widen.cc
/*
* yosys -- Yosys Open SYnthesis Suite
*
* Copyright (C) 2021 <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission... | 1,495 |
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.datalakeanalytics.models;
import com.azure.resourcemanager.datalakeanalytics.fluent.models.CapabilityInformationInner;
import ja... | 489 |
348 | {"nom":"Sainte-Mondane","circ":"4ème circonscription","dpt":"Dordogne","inscrits":222,"abs":108,"votants":114,"blancs":7,"nuls":3,"exp":104,"res":[{"nuance":"FI","nom":"<NAME>","voix":62},{"nuance":"REM","nom":"Mme <NAME>","voix":42}]} | 96 |
2,542 | <filename>src/prod/src/Lease/api/stdafx.h
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// --------------------------------------------------... | 178 |
1,174 | <gh_stars>1000+
package com.github.devnied.emvpcsccard;
import java.util.List;
import javax.smartcardio.Card;
import javax.smartcardio.CardException;
import javax.smartcardio.CardTerminal;
import javax.smartcardio.TerminalFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.github.devnied.em... | 853 |
337 | <gh_stars>100-1000
package c;
import a.MainKt;
class J {
void bar() {
MainKt.test();
}
}
| 56 |
3,436 | <reponame>theodelrieu/range-v3
/// \file
// Range v3 library
//
// Copyright <NAME> 2021-present
//
// Use, modification and distribution is subject to 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)
//
// Project home: https... | 2,374 |
311 | #ifndef I2C_BUS_READBYTE_H_
#define I2C_BUS_READBYTE_H_
NAN_METHOD(ReadByteAsync);
NAN_METHOD(ReadByteSync);
#endif // I2C_BUS_READBYTE_H_
| 68 |
14,668 | // 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.
#include "components/autofill/core/browser/webdata/autofill_wallet_metadata_sync_bridge.h"
#include <stddef.h>
#include <algorithm>
#include <memory>
#i... | 28,121 |
1,998 | <reponame>Aliacf21/BotBuilder-Samples
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
from .slot_filling_dialog import SlotFillingDialog
from .root_dialog import RootDialog
__all__ = ["RootDialog", "SlotFillingDialog"]
| 79 |
679 | <filename>main/dbaccess/source/core/dataaccess/documentdefinition.cxx
/**************************************************************
*
* 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... | 36,698 |
348 | /*
* Copyright 2010-2021 Australian Signals Directorate
*
* 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 appl... | 1,804 |
2,875 | <reponame>Anancha/OpenCV-Python-Tutorial
# -*- coding: utf-8 -*-
# @Time : 2017/7/17 下午12:03
# @Author : play4fun
# @File : 画圆圈.py
# @Software: PyCharm
"""
画圆圈.py:随机覆盖,不同颜色,
"""
from time import sleep
import cv2
import numpy as np
def click_event(event, x, y, flags, param):
'''
用左键点击屏幕,打印坐标
:param... | 681 |
2,144 | /**
* 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... | 476 |
333 | <gh_stars>100-1000
package com.alipay.api.domain;
import java.util.Date;
import java.util.List;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
import com.alipay.api.internal.mapping.ApiListField;
/**
* 业管平台立项信息DTO
*
* @author auto create
* @since 1.0, 2021-10-14... | 3,257 |
522 | <gh_stars>100-1000
import timeit
import math
def power(n,c):
"""return pi*2**n"""
return math.pi*c
for p in range(0,256):
c = str(2**p)
cmd = 'power(' + str(p) + ',' + c + ')'
print (p, timeit.timeit(cmd, number=10000, setup="from __main__ import power"))
| 127 |
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.
# -----------------------------------------------------... | 94 |
14,668 | // Copyright (c) 2020 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 CHROMEOS_DBUS_HERMES_HERMES_CLIENTS_H_
#define CHROMEOS_DBUS_HERMES_HERMES_CLIENTS_H_
#include "base/component_export.h"
namespace dbus {
cl... | 376 |
852 | #ifndef RecoLocalCalo_HGCalRecProducers_ComputeClusterTime_h
#define RecoLocalCalo_HGCalRecProducers_ComputeClusterTime_h
// user include files
#include <algorithm>
#include <cmath>
#include <numeric>
#include <vector>
#include <string>
// functions to select the hits to compute the time of a given cluster
// start w... | 723 |
2,151 | <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.
#include <linux/input.h>
#include <algorithm>
#include <bitset>
#include <cstdint>
#include <list>
#include <set>
#include <vector>
#incl... | 3,512 |
1,223 | # Copyright 2016 Nidium Inc. All rights reserved.
# Use of this source code is governed by a MIT license
# that can be found in the LICENSE file.
from dokumentor import *
NamespaceDoc("DebuggerCompartment", """For debugging purpose, Nidium use the <a href="https://developer.mozilla.org/en-US/docs/Tools/Debugger-API/D... | 1,011 |
4,047 | <reponame>kira78/meson
int rOne(void); | 18 |
2,661 | #ifndef SPACER_H
#define SPACER_H
#include <Qt/qlayoutitem.h>
class spacer : public QSpacerItem
{
public:
spacer() = default;
void setObjectName(const QString& oName) {}
void setOrientation(const Qt::Orientation& orient) {}
void setSizeType(const QSizePolicy& policy) {}
void setSizeHint(const QSi... | 143 |
560 | #!/usr/bin/env python
"""Tests for `pytorch_tabular` package."""
import pytest
import math
from sklearn.model_selection import train_test_split
from sklearn.preprocessing import QuantileTransformer, PowerTransformer
import numpy as np
from pytorch_tabular.config import DataConfig, OptimizerConfig, TrainerConfig
from p... | 3,264 |
1,641 | <filename>eth/vm/forks/london/state.py
from typing import Type
from eth_hash.auto import keccak
from eth_utils import (
encode_hex,
)
from eth.abc import (
AccountDatabaseAPI,
ComputationAPI,
MessageAPI,
SignedTransactionAPI,
StateAPI,
TransactionContextAPI,
TransactionExecutorAPI,
)
f... | 2,214 |
3,138 | <gh_stars>1000+
# Lint as: python3
# Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | 5,124 |
1,671 | <filename>documentation/manpages/tool/man-pandoc-filter.py
#!/usr/bin/env python3
#
# Copyright (c) .NET Foundation and contributors. All rights reserved.
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
#
import copy
from pandocfilters import toJSONFilters, Para, St... | 648 |
1,998 | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
import json
import os.path
from typing import List
from botbuilder.core import MessageFactory, TurnContext
from botbuilder.schema import Attachment, ChannelAccount
from helpers import DialogHelper
from .dialog_bot import Di... | 641 |
8,865 | <gh_stars>1000+
#define PNG_USER_PRIVATEBUILD "Skia build; no MNG features"
#define PNG_USER_DLLFNAME_POSTFIX "Sk"
#define PNG_NO_MNG_FEATURES
#define PNG_NO_READ_GAMMA
| 71 |
4,812 | //===- llvm/CodeGen/LiveRegUnits.h - Register Unit Set ----------*- C++ -*-===//
//
// 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,957 |
312 | // Copyright <NAME> 2015
#ifndef PURINE_CONNECTABLE
#define PURINE_CONNECTABLE
#include "dispatch/graph.hpp"
namespace purine {
class Connectable : public Graph {
friend Connectable& operator >> (Connectable& graph1,
Connectable& graph2);
friend Connectable& operator >> (const vector<Blob*>& bottom,
... | 291 |
1,047 | <reponame>Mu-L/MeshSync<gh_stars>1000+
#pragma once
namespace ms {
enum class ZUpCorrectionMode {
FlipYZ,
RotateX,
};
struct SceneImportSettings {
uint32_t flags = 0; // reserved
uint32_t mesh_split_unit = 0xffffffff;
int mesh_max_bone_influence = 4; // 4 or 255 (variable up to 255)
ZUpCorrec... | 158 |
1,162 | package io.digdag.standards.command;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.node.ObjectNode;
import com.google.common.base.Optional;
import io.digdag.client.config.Config;
import io.digdag.client.config.ConfigFactory;
import io.digdag.core.archive.ProjectArchiveLoader... | 1,741 |
335 | <filename>F/Fit_verb.json
{
"word": "Fit",
"definitions": [
"Be of the right shape and size for.",
"Try clothing on (someone) in order to make or alter it to the correct size.",
"Be of the right size, shape, or number to occupy a particular place.",
"Install or fix (something) in... | 249 |
365 | /*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be use... | 1,945 |
332 | <reponame>floschliep/ISHPermissionKit
//
// ISHPermissionRequestModernPhotoLibrary.h
// ISHPermissionKit
//
// Created by Hagi on 24/08/16.
// Copyright © 2016 iosphere GmbH. All rights reserved.
//
#import <ISHPermissionKit/ISHPermissionKit.h>
#ifdef ISHPermissionRequestPhotoLibraryEnabled
/**
* Permission re... | 171 |
372 | /*
* 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 distributed under t... | 1,016 |
936 | /*
* Copyright 2021, Yahoo Inc.
* Licensed under the Apache License, Version 2.0
* See LICENSE file in project root for terms.
*/
package com.yahoo.elide.core.datastore.inmemory;
import static com.yahoo.elide.core.dictionary.EntityDictionary.NO_VERSION;
import static org.junit.jupiter.api.Assertions.assertEquals;... | 1,029 |
310 | <reponame>dreeves/usesthis
{
"name": "Meatspace",
"description": "A web-based chat system.",
"url": "https://chat.meatspac.es"
} | 55 |
1,209 | <gh_stars>1000+
/*
u8g_com_arduino_common.c
shared procedures for the arduino communication procedures
Universal 8bit Graphics Library
Copyright (c) 2011, <EMAIL>
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that t... | 802 |
5,813 | <reponame>RomaKoks/druid<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 Apache Licen... | 891 |
3,402 | /*
* 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,367 |
852 | import FWCore.ParameterSet.Config as cms
process = cms.Process("TEST")
process.PoolDBESSource = cms.ESSource("PoolDBESSource",
loadAll = cms.bool(True),
toGet = cms.VPSet(cms.PSet(
record = cms.string('CSCGainsRcd'),
tag = cms.string('CSCGains_ideal')
),
cms.PSet(
recor... | 776 |
385 | <gh_stars>100-1000
import datetime
import uuid
import decimal
import pytest
from jupyterlab_sql.serializer import make_row_serializable
@pytest.mark.parametrize(
"test_input",
[
((1, "hello"),),
((1, {"some": "dict"}),),
((1, {"some": ["array", "in", "dict"]}),),
],
)
def test_ma... | 742 |
3,102 | // use-defs-2.h
#include "defs.h"
| 19 |
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.
#include "components/signin/core/browser/cookie_settings_util.h"
#include "components/content_settings/core/browser/cookie_settings.h"
#i... | 476 |
9,156 | /**
* 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,764 |
5,169 | {
"name": "Overcoat",
"version": "1.2",
"license": "MIT",
"summary": "Overcoat is an AFNetworking extension that makes it extremely simple for developers to use Mantle model objects with a REST client.",
"homepage": "https://github.com/gonzalezreal/Overcoat",
"authors": {
"<NAME>": "<EMAIL>"
},
"sou... | 375 |
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 ... | 8,112 |
366 | <reponame>pulkomandy/thekla_atlas<filename>src/thekla/thekla_atlas.cpp
#include "thekla_atlas.h"
#include <cfloat>
#include "nvmesh/halfedge/Edge.h"
#include "nvmesh/halfedge/Mesh.h"
#include "nvmesh/halfedge/Face.h"
#include "nvmesh/halfedge/Vertex.h"
#include "nvmesh/param/Atlas.h"
#include "nvmath/Vector.inl"
#i... | 3,875 |
14,668 | // Copyright 2020 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_EXTENSIONS_API_SEARCH_SEARCH_API_H_
#define CHROME_BROWSER_EXTENSIONS_API_SEARCH_SEARCH_API_H_
#include "extensions/browser/extens... | 226 |
994 | def answer(a, b):
a ^= b
b ^= a
a ^= b
return a, b
| 40 |
30,023 | <gh_stars>1000+
"""Utils needed for Google Hangouts."""
from hangups import CredentialsPrompt, GoogleAuthError, RefreshTokenCache
class Google2FAError(GoogleAuthError):
"""A Google authentication request failed."""
class HangoutsCredentials(CredentialsPrompt):
"""Google account credentials.
This imple... | 932 |
511 | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/protobuf/unittest_lazy_dependencies_enum.proto
#ifndef PROTOBUF_google_2fprotobuf_2funittest_5flazy_5fdependencies_5fenum_2eproto__INCLUDED
#define PROTOBUF_google_2fprotobuf_2funittest_5flazy_5fdependencies_5fenum_2eproto__INCLUDED
#includ... | 1,355 |
32,544 | <gh_stars>1000+
package com.baeldung.hibernate.pojo;
import javax.persistence.*;
import java.io.Serializable;
import java.sql.Date;
import java.sql.Time;
import java.sql.Timestamp;
import java.time.*;
import java.util.Calendar;
@Entity
public class TemporalValues implements Serializable {
@Id
@GeneratedValue... | 1,639 |
4,816 | <gh_stars>1000+
/**
* @file include/retdec/llvmir2hll/semantics/semantics/win_api_semantics/get_name_of_param/t.h
* @brief Initializes FuncParamNamesMap for WinAPI functions starting with T.
* @copyright (c) 2017 Avast Software, licensed under the MIT license
*/
#ifndef RETDEC_LLVMIR2HLL_SEMANTICS_SEMANTICS_WIN_API_SE... | 301 |
977 | package io.leangen.graphql.metadata.strategy.query;
import io.leangen.graphql.util.ClassUtils;
import io.leangen.graphql.util.Utils;
import java.lang.reflect.AnnotatedElement;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.util.List;
import java.util.Optional;
public class PropertyOpera... | 298 |
785 | /*
* Copyright © 2020 Apple Inc. and the ServiceTalk project 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requi... | 744 |
435 | <gh_stars>100-1000
{
"copyright_text": null,
"description": "In the past it was simpler and easier to think of building websites\nexclusively for desktop monitors capable of showing 1024x768 pixels,\nsitting on the desk of a non-impaired, English-speaking person. But\ntoday we need to embrace a much broader range o... | 609 |
2,542 | <filename>src/prod/ktl/src/tools/tests/KAsyncContext.cpp
#include "../kasynccontext/KAsyncContextTests.cpp"
| 42 |
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 ... | 11,968 |
15,577 | <filename>src/IO/UseSSL.h
#pragma once
#include <boost/noncopyable.hpp>
namespace DB
{
// http://stackoverflow.com/questions/18315472/https-request-in-c-using-poco
struct UseSSL : private boost::noncopyable
{
UseSSL();
~UseSSL();
};
}
| 100 |
335 | {
"word": "Filmography",
"definitions": [
"A list of films by one director or actor, or on one subject."
],
"parts-of-speech": "Noun"
} | 67 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.