max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
2,542 | <gh_stars>1000+
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#pragma once
... | 585 |
679 | /**************************************************************
*
* 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... | 21,304 |
466 | <reponame>wbaby/ReClassEx
#ifndef _RECLASS_PLUGIN_API_H_
#define _RECLASS_PLUGIN_API_H_
#include <afxwin.h>
#include <afxribbonbar.h>
#include <vector>
//
// ReClass Plugin Loading and Unloading - Not part of the plugin API.
//
VOID
LoadPlugins(
VOID
);
VOID
UnloadPlugins(
VOID
);
//
// ReClas... | 2,331 |
2,787 | <gh_stars>1000+
import pytest
from bless.ssh.public_keys.ed25519_public_key import ED25519PublicKey
from tests.ssh.vectors import EXAMPLE_ED25519_PUBLIC_KEY, EXAMPLE_ED25519_PUBLIC_KEY_A, \
EXAMPLE_ECDSA_PUBLIC_KEY, \
EXAMPLE_ED25519_PUBLIC_KEY_NO_DESCRIPTION
def test_valid_key():
pub_key = ED25519Public... | 472 |
14,668 | <reponame>zealoussnow/chromium
// 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 "components/autofill/core/common/password_form_fill_data.h"
#include <tuple>
#include <unordered_set>
#include "... | 608 |
804 | <reponame>kawarimidoll/Nocturn
{
"consumerKey": "94zDwusIkfQRIhb0uEYabeiiX",
"consumerSecret": "<KEY>"
}
| 54 |
310 | <filename>gear/hardware/b/bhm-jl.json
{
"name": "BHM-JL",
"description": "A semiconductor microscope.",
"url": "http://www.caeonline.com/listing/product/58589/olympus-bhm-jl"
} | 76 |
9,402 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
#ifndef __MANIFEST_H__
#define __MANIFEST_H__
#include <list>
#include "file_entry.h"
#include "header.h"
namespace bundle
{
// Bundle Manifest contains:
// Series of f... | 332 |
977 | <gh_stars>100-1000
/*************************************************************************
*
* Copyright 2016 Realm 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://... | 12,126 |
524 | #include "stdafx.h"
#include "urls_cache.h"
#include "../../libomicron/include/omicron/omicron.h"
#include "../../corelib/collection_helper.h"
#include "../configuration/app_config.h"
using namespace core;
using namespace urls;
struct protocol_url
{
const std::string url_;
const std::string_view url_deprec... | 1,310 |
471 | <reponame>kktsubota/piq<filename>tests/test_gmsd.py
import torch
import pytest
from skimage.io import imread
import numpy as np
from typing import Any, Tuple
from piq import gmsd, multi_scale_gmsd, GMSDLoss, MultiScaleGMSDLoss
LEAF_VARIABLE_ERROR_MESSAGE = 'Expected non None gradient of leaf variable'
@pytest.fixtu... | 4,767 |
748 | <filename>documentation/ServicePrincipal/package.json
{
"name": "azure-sp",
"author": "Microsoft Corporation",
"contributors": [
"<NAME> <<EMAIL>>"
],
"private": true,
"version": "0.1.0",
"description": "Sample script for creating a service principal in Azure.",
"tags": [
"azure",
"sdk"
],... | 360 |
5,079 | <gh_stars>1000+
#
# This file is part of pyasn1-modules software.
#
# Created by <NAME> with assistance from asn1ate v.0.6.0.
# Modified by <NAME> to add a map for use with opentypes.
#
# Copyright (c) 2019, Vigil Security, LLC
# License: http://snmplabs.com/pyasn1/license.html
#
# Update to Enhanced Security Services ... | 1,652 |
1,521 | <filename>interactive_engine/compiler/src/main/java/com/alibaba/maxgraph/server/query/NettyTraverserVertexProcessor.java<gh_stars>1000+
/**
* Copyright 2020 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 L... | 741 |
562 | <reponame>armandomeeuwenoord/freight
import hmac
from hashlib import sha256
from flask import current_app
from freight.testutils import TestCase
class WebhooksViewTest(TestCase):
def make_path(self, hook, action, app, env="production", digest=None):
key = f"{hook}/{action}/{app}/{env}"
if digest... | 467 |
1,536 | def run_round_results(self, out):
'''Called from logging/logging_run.py
THE MAIN FUNCTION FOR CREATING RESULTS FOR EACH ROUNDself.
Takes in the history object from model.fit() and handles it.
NOTE: The epoch level data will be dropped here each round.
'''
self._round_epochs = len(list(out.h... | 543 |
532 | """Unit tests for interface implementations in pyatv.protocols.mrp."""
import math
import pytest
from pyatv import exceptions
from pyatv.protocols.mrp import MrpAudio, messages, protobuf
DEVICE_UID = "F2204E63-BCAB-4941-80A0-06C46CB71391"
# This mock is _extremely_ basic, so needs to be adjusted heavily when addin... | 1,190 |
695 | <reponame>mdiazmel/keops<filename>rkeops/inst/include/binder/src/generic_red.cpp
#include <vector>
#include "keops_io.h"
#include "rkeops_data_type.h"
#include "rkeops_matrix.h"
// rkeops matrix type
using rkeops_base_matrix_t = rkeops::base_matrix< rkeops::type_t >;
using rkeops_matrix_t = rkeops::matrix< rkeops::ty... | 407 |
3,579 | /*
* Copyright 2015, The Querydsl Team (http://www.querydsl.com/team)
*
* 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 ... | 945 |
332 | <filename>example/app/integrations/stripe_example_integration.py
from billing.integrations.stripe_integration import StripeIntegration
from django.http import HttpResponseRedirect
from django.core.urlresolvers import reverse
class StripeExampleIntegration(StripeIntegration):
def transaction(self, request):
... | 210 |
5,823 | // Copyright 2013 The Flutter 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 SRC_LIB_UI_BASE_VIEW_MATH_H_
#define SRC_LIB_UI_BASE_VIEW_MATH_H_
#include <fuchsia/ui/gfx/cpp/fidl.h>
namespace scenic {
// Return a vec3 consi... | 1,695 |
480 | <filename>android/app/src/main/java/com/kerwin/wumei/fragment/device/AddDeviceTwoFragment.java<gh_stars>100-1000
/***************************************************************************
* 作者:kerwincui
* 时间:2021-06-08
* 邮箱:<EMAIL>
* 源码地址:https://gitee.com/kerwincui/wumei-smart
* author: kerwincui
* create: 202... | 738 |
4,054 | <gh_stars>1000+
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include "integerbase.h"
#include "floatbase.h"
#include <vespa/vespalib/util/rcuvector.h>
#include <limits>
namespace search {
template <typename B>
class SingleValueNumericAttribut... | 2,444 |
480 | /******************************************************************************
* 作者:kerwincui
* 时间:2021-06-08
* 邮箱:<EMAIL>
* 源码地址:https://gitee.com/kerwincui/wumei-smart
* author: kerwincui
* create: 2021-06-08
* email:<EMAIL>
* source:https://github.com/kerwincui/wumei-smart
*********************************... | 561 |
778 | package org.aion.utils;
import java.util.ArrayList;
import java.util.List;
import org.aion.util.file.NativeLoader;
public enum NativeLibrary {
COMMON("common"),
SODIUM("sodium"),
EQUIHASH("equihash"),
BLAKE2B("blake2b"),
FASTVM("fastvm"),
SOLIDITY("solidity");
private final String name;
... | 554 |
1,006 | /****************************************************************************
* drivers/wireless/bluetooth/bt_uart_generic.c
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regardin... | 841 |
1,408 | """Anonymizer root module."""
import logging
from .anonymizer_engine import AnonymizerEngine
from .deanonymize_engine import DeanonymizeEngine
# Set up default logging (with NullHandler)
logging.getLogger("presidio-anonymizer").addHandler(logging.NullHandler())
__all__ = ["AnonymizerEngine", "DeanonymizeEngine"]
| 96 |
3,651 | package com.orientechnologies.common.types;
/**
* This internal API please do not use it.
*
* @author <NAME> (a.lomakin-at-orientdb.com) <a
* href="mailto:<EMAIL>"><NAME></a>
* @since 19/12/14
*/
public class OModifiableBoolean {
private boolean value;
public OModifiableBoolean() {
value = false;
... | 191 |
875 | /*
* AWS IoT Device SDK for Embedded C 202108.00
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* 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... | 2,361 |
336 | <gh_stars>100-1000
{
"name": "Scut",
"description": "A collection of Sass utilities to ease and improve our implementations of common style-code patterns. Available on its own or as a Compass extension.",
"tags": [
"utilities",
"library",
"mixins",
"placeholders",
"typography",
"layout",
... | 141 |
3,100 | package com.airbnb.airpal.resources;
import com.airbnb.airpal.api.Job;
import com.airbnb.airpal.api.JobState;
import com.airbnb.airpal.api.queries.CreateSavedQueryBuilder;
import com.airbnb.airpal.api.queries.SavedQuery;
import com.airbnb.airpal.api.queries.UserSavedQuery;
import com.airbnb.airpal.core.AirpalUser;
imp... | 2,772 |
12,824 | package tastytest;
public class FromJavaObjectBox {
public static <T> T id(T t) {
return t;
}
}
| 40 |
4,744 | <gh_stars>1000+
# Copyright (c) 2014-present PlatformIO <<EMAIL>>
#
# 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... | 4,452 |
1,155 | /*
*******************************************************************************
* Copyright (C) 2007-2011, International Business Machines Corporation and *
* others. All Rights Reserved. *
*****************************************************************************... | 707 |
1,350 | <gh_stars>1000+
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.desktopvirtualization.fluent.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging... | 1,512 |
317 | <gh_stars>100-1000
import java.io.*;
public class Fragment{
public int numAtoms, numBonds, numZmatrix;
public AtomDefinition[] atom;
public BondDefinition[] bond;
public ZmatrixDefinition[] zmatrix;
public Fragment(){
};
void read(String fileName){
// System.out.println("Reading file "+... | 603 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-24rh-3pgw-777c",
"modified": "2022-04-29T01:27:51Z",
"published": "2022-04-29T01:27:51Z",
"aliases": [
"CVE-2003-1306"
],
"details": "Microsoft URLScan 2.5, with the RemoveServerHeader option enabled, allows remote attackers to obtain sensitive information (ser... | 448 |
6,989 | <filename>library/containers/stack_array/stack_array.cpp
#include "stack_array.h"
| 28 |
751 | <gh_stars>100-1000
/*
* Copyright (c) 2016-2019 Cisco and/or its affiliates.
* Copyright (c) 2019 Arm Limited
* Copyright (c) 2010-2017 Intel Corporation and/or its affiliates.
* Copyright (c) 2007-2009 <NAME> <EMAIL>
* Inspired from DPDK rte_ring.h (SPSC only) (derived from freebsd bufring.h).
* Licensed under t... | 8,471 |
2,320 | {
"name": "toposort",
"author": "<NAME> <<EMAIL>>",
"repo": "marcelklehr/toposort",
"description": "Topological sort of directed ascyclic graphs (like dependecy lists)",
"version": "0.2.10",
"keywords": [
"topological",
"sort",
"sorting",
"graphs",
"graph",
"dependency",
"list",
... | 198 |
1,240 | package com.eventyay.organizer.core.role.list;
import android.content.Context;
import android.os.Build;
import android.os.Bundle;
import android.view.ActionMode;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
impor... | 3,330 |
684 | /* 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
* distribut... | 825 |
2,151 | // Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef MEDIA_GPU_VAAPI_VAAPI_VP8_ACCELERATOR_H_
#define MEDIA_GPU_VAAPI_VAAPI_VP8_ACCELERATOR_H_
#include "base/sequence_checker.h"
#include "media/filt... | 493 |
1,997 | <gh_stars>1000+
/*
* Copyright 2019 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0/
*
* or in t... | 1,768 |
1,831 | <gh_stars>1000+
/**
* Copyright (c) 2019-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "logdevice/common/configuration/nodes/ShardStateTracker.h"
#include "logdevice/co... | 1,893 |
1,560 | # encoding: utf-8
"""
attributes.py
Created by <NAME> on 2015-03-31.
Copyright (c) 2009-2017 Exa Networks. All rights reserved.
License: 3-clause BSD. (See the COPYRIGHT file)
"""
from struct import pack
from struct import unpack
from struct import calcsize
from exabgp.netlink import NetLinkError
class AttributesE... | 810 |
23,439 | <reponame>joyeekk/nacos
/*
* 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
*
* Un... | 1,848 |
1,093 | /*
* Copyright 2018 Google, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License")
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... | 625 |
484 | <reponame>rayk47/predator
{"9UHSjxBopTLOMUWCMOtk1Q==":"mbr-122x81.jpg","CzqFwwuJzaWWJYvp49ep0A==":"predator-184x212.png","UGmsFq2ijwQ3OFh3WZSUyQ==":"mbr-1920x1280.jpg","XaRpZBryXuXsEhuhasmMDg==":"create-2000x971.png","K5CdEhVT+MJASuFgFlKZmw==":"runtest-2000x1250.png","3xvFQwssPIbTTHlRi3CTCg==":"see%20all%20tests-1148x5... | 565 |
6,958 | <reponame>foreverlms/MNN<gh_stars>1000+
//
// InterpPlugin.hpp
// MNN
//
// Created by MNN on b'2020/08/14'.
// Copyright © 2018, Alibaba Group Holding Limited
//
#ifndef InterpPlugin_hpp
#define InterpPlugin_hpp
#include <MNN/MNNDefine.h>
#include "CommonPlugin.hpp"
namespace MNN {
class InterpPlugin : public Com... | 564 |
1,261 | # BEGIN_LEGAL
#
# Copyright (c) 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 the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | 320 |
2,494 | <reponame>ktrzeciaknubisa/jxcore-binary-packaging<filename>deps/mozjs/src/gdb/run-tests.py
#!/usr/bin/env python
# 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.0/.
# run-t... | 6,130 |
1,353 | /*
* Copyright (c) 2012, <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice, this
* list of conditions and... | 1,302 |
16,761 | /*
* Copyright 2013-2019 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,207 |
3,783 | package problems.easy;
import problems.utils.TreeNode;
import java.util.HashMap;
import java.util.Map;
/**
* Created by sherxon on 4/23/17.
*/
public class BinaryTreeTIlt {
int sum=0;
Map<TreeNode, Integer> tilts= new HashMap<>();
Map<TreeNode, Integer> sums=new HashMap<>();
public static void mai... | 419 |
648 | <gh_stars>100-1000
{"resourceType":"DataElement","id":"ElementDefinition.short","meta":{"lastUpdated":"2017-04-19T07:44:43.294+10:00"},"url":"http://hl7.org/fhir/DataElement/ElementDefinition.short","status":"draft","experimental":true,"stringency":"fully-specified","element":[{"id":"ElementDefinition.short","extension... | 241 |
3,579 | package com.querydsl.example.dao;
import com.querydsl.core.types.Predicate;
import com.querydsl.example.dto.Person;
import java.util.List;
public interface PersonDao {
Person findById(long id);
List<Person> findAll(Predicate... where);
Person save(Person p);
long count();
void delete(Person ... | 118 |
931 | """
Given a linked list and two keys in it, swap nodes for two given keys.
Nodes should be swapped by changing links.
Swapping data of nodes may be expensive in many situations
when data contains many fields.
"""
"""
Input: 8 -> 5 -> 10 -> 7 -> 6 -> 11 -> 9 -... | 1,300 |
5,169 | <gh_stars>1000+
{
"name": "EYCNCityPicker",
"version": "0.0.2",
"summary": "iOS中国行政区域picker控件,数据来源于高德web API",
"homepage": "https://github.com/enix223/EYCNCityPicker",
"license": "MIT",
"authors": {
"<NAME>": "<EMAIL>"
},
"platforms": {
"ios": "8.0"
},
"source": {
"git": "https://github.... | 280 |
2,160 | # -*- coding: utf-8 -*-
# Generated by Django 1.9.9 on 2016-10-10 20:52
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations
def forwards(apps, schema_editor):
CascadeElement = apps.get_model('cmsplugin_cascade', 'CascadeElement')
for element in CascadeElem... | 710 |
1,031 |
import template_default_class_parms.*;
public class template_default_class_parms_runme {
static {
try {
System.loadLibrary("template_default_class_parms");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. See the chapter on Dynamic Linking Problems in the S... | 617 |
701 | package com.c9mj.platform.util.retrofit;
import com.blankj.utilcode.utils.NetworkUtils;
import com.c9mj.platform.App;
import com.c9mj.platform.live.mvp.model.LiveBaseBean;
import com.c9mj.platform.util.retrofit.exception.RetrofitException;
import org.reactivestreams.Publisher;
import java.io.File;
import java.util.c... | 3,159 |
879 | package org.zstack.header.identity;
import org.springframework.http.HttpMethod;
import org.zstack.header.message.APIEvent;
import org.zstack.header.message.APIMessage;
import org.zstack.header.message.APIParam;
import org.zstack.header.rest.RestRequest;
/**
* Created by frank on 7/9/2015.
*/
@Action(category = Acco... | 576 |
870 | <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 copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
... | 1,527 |
687 | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
import copy
import itertools
import logging
from contextlib import contextmanager
import torch
from detectron2.engine.train_loop import HookBase
logger = logging.getLogger(__name__)
class EMAState(object):
def __ini... | 2,930 |
7,701 | <filename>AspectsDemo/AspectsDemo/AspectsViewController.h<gh_stars>1000+
//
// AspectsViewController.h
// AspectsDemo
//
// Created by <NAME> on 05/05/14.
// Copyright (c) 2014 PSPDFKit GmbH. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface AspectsViewController : UIViewController
- (IBAction)buttonPre... | 130 |
713 | package org.infinispan.objectfilter.impl;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import org.infinispan.objectfilter.FilterCallback;
import org.infinispan.objectfilter.FilterSubscription;
import org.infinispan.objectfilter.SortField;
import org.infinisp... | 1,793 |
945 | <filename>server/src/main/java/org/apache/iotdb/db/mpp/plan/planner/plan/node/process/AggregationNode.java<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
* regard... | 3,156 |
1,019 | <reponame>DTForce/spring-fu
/*
* Copyright 2002-2018 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
*
* http://www.apache.org/licenses/LICENSE-2.0... | 427 |
410 | /* SPDX-License-Identifier: BSD-2-Clause */
/***********************************************************************;
* Copyright (c) 2015 - 2017, Intel Corporation
* All rights reserved.
***********************************************************************/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#inclu... | 1,039 |
16,989 | {
"name": "fine_grained_user_modules",
"version": "0.0.1",
"description": "prototype for using user's node_modules",
"dependencies": {
"example-module": "0.2.0"
}
}
| 72 |
335 | /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Mupen64plus - memory.h *
* Mupen64Plus homepage: http://code.google.com/p/mupen64plus/ *
* Copyright (C) 2002 Hacktarux *
* ... | 1,919 |
310 | <filename>gear/hardware/p/pcm-42.json<gh_stars>100-1000
{
"name": "PCM-42",
"description": "An audio signal processor.",
"url": "http://performermag.com/flashback-lexicon-pcm-42-digital-delay-processor/"
} | 82 |
535 | /*
* 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 ... | 4,623 |
515 | <gh_stars>100-1000
// Copyright (c) 2016- The Bitcoin XT developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <boost/test/unit_test.hpp>
#include "blockheaderprocessor.h"
#include "test/dummyconnman.h"
#include "te... | 2,137 |
1,705 | {
"active": true,
"synopsis": "Lake Formation: (New Service) AWS Lake Formation is a fully managed service that makes it easier for customers to build, secure and manage data lakes. AWS Lake Formation simplifies and automates many of the complex manual steps usually required to create data lakes including collecti... | 100 |
2,406 | // Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "behavior/infer_request/set_blob_by_type.hpp"
#include "common_test_utils/test_constants.hpp"
#include "conformance.hpp"
namespace {
using namespace ConformanceTests;
using namespace BehaviorTestsDefinitions;
const std::... | 1,282 |
1,056 | <filename>ide/libs.git/test/unit/src/org/netbeans/libs/git/jgit/commands/GetCommonAncestorTest.java<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 copyri... | 3,812 |
1,772 | from dateutil.relativedelta import relativedelta
from dojo.utils import get_system_setting
from django.utils import timezone
from django.utils.http import urlencode
from django.urls import reverse
from .dojo_test_case import DojoTestCase
from dojo.models import Risk_Acceptance, Finding, System_Settings
# from unittest.... | 5,195 |
634 | <filename>mailet/standard/src/main/java/org/apache/james/transport/mailets/debug/Counter.java
/****************************************************************
* Licensed to the Apache Software Foundation (ASF) under one *
* or more contributor license agreements. See the NOTICE file *
* distributed with this wor... | 846 |
5,049 | import pendulum
from pendulum import Time
def test_diff_in_hours_positive():
dt = Time(12, 34, 56)
assert dt.diff(dt.add(hours=2).add(seconds=3672)).in_hours() == 3
def test_diff_in_hours_negative_with_sign():
dt = Time(12, 34, 56)
assert dt.diff(dt.subtract(hours=2).add(seconds=3600), False).in_ho... | 4,510 |
421 | <filename>samples/snippets/cpp/VS_Snippets_Data/xmlprocessingapp/cpp/xmldomprocessing.cpp
// This is the main DLL file.
#include "stdafx.h"
#include "XMLDOMProcessing.h"
using namespace System;
using namespace System::Collections;
using namespace System::Collections::Generic;
using namespace System::Text;... | 7,405 |
4,569 | <reponame>adouhuges/java-learning<gh_stars>1000+
package com.brianway.learning.java.multithread.lock.example10;
/**
* Created by Brian on 2016/4/15.
*/
/**
* P238
* 类ReentrantReadWriteLock的使用:写写互斥
*/
public class Run10_ReadWriteLockBegin2 {
public static void main(String[] args) {
final Service2 serv... | 424 |
364 | package com.jslsolucoes.nginx.admin.agent.model.response.upstream;
import com.jslsolucoes.nginx.admin.agent.model.FileObject;
import com.jslsolucoes.nginx.admin.agent.model.response.NginxResponse;
public class NginxUpstreamReadResponse implements NginxResponse {
private FileObject fileObject;
public Ngin... | 225 |
442 | package org.jmqtt.mqtt.netty;
import io.netty.channel.Channel;
public interface ChannelEventListener {
/**
* channel connect event
*/
void onChannelConnect(String remoteAddr, Channel channel);
/**
* channel close
*/
void onChannelClose(String remoteAddr,Channel channel);
/**... | 186 |
3,436 | /// \file
// Range v3 library
//
// Copyright <NAME> 2014-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://github.com/ericniebler/range... | 1,834 |
6,541 | #define IPCOP_semop 1
#define IPCOP_semget 2
#define IPCOP_semctl 3
#define IPCOP_semtimedop 4
#define IPCOP_msgsnd 11
#define IPCOP_msgrcv 12
#define IPCOP_msgget 13
#define IPCOP_msgctl 14
#define IPCOP_shmat 21
#define IPCOP_shmdt 22
#define IPCOP_shmget 23
#define IPCOP_shmctl ... | 167 |
852 | #include "L1Trigger/L1TMuonOverlapPhase1/plugins/L1TMuonOverlapPhase1ParamsESProducer.h"
#include "CondFormats/L1TObjects/interface/L1TMuonOverlapParams.h"
#include "CondFormats/DataRecord/interface/L1TMuonOverlapParamsRcd.h"
#include "L1Trigger/L1TMuonOverlapPhase1/interface/Omtf/XMLConfigReader.h"
#include "FWCore/F... | 1,363 |
343 | <filename>internal/plugin/webp/gvloadimage_webp.c
/* $Id$ $Revision$ */
/* vim:set shiftwidth=4 ts=8: */
/*************************************************************************
* Copyright (c) 2011 AT&T Intellectual Property
* All rights reserved. This program and the accompanying materials
* are made available... | 2,358 |
473 | <filename>src/lapack_like/reflect/ExpandPacked.cpp
/*
Copyright (c) 2009-2016, <NAME>
All rights reserved.
This file is part of Elemental and is under the BSD 2-Clause License,
which can be found in the LICENSE file in the root directory, or at
http://opensource.org/licenses/BSD-2-Clause
*/
#include <... | 753 |
5,169 | {
"name": "Ant",
"version": "0.1.0",
"summary": "Ant is a modular programming tool for iOS developer.",
"description": "Ant is a modular programming tool for iOS developer.\nDeveloper can use Ant to make iOS programming easier when deal with module.",
"homepage": "https://github.com/hujewelz/Ant",
"license"... | 249 |
532 | /* -------------------------------------------------------------------------- *
* OpenSim Moco: CasOCProblem.cpp *
* -------------------------------------------------------------------------- *
* Copyright (c) 2018 Stanford University and the Authors *
... | 979 |
2,843 | /*
Copyright 2017 yangchong211(github.com/yangchong211)
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... | 3,659 |
1,473 | <gh_stars>1000+
/*
* Autopsy Forensic Browser
*
* Copyright 2020 Basis Technology Corp.
* Contact: carrier <at> sleuthkit <dot> org
*
* 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
*
... | 742 |
657 | # Generated by Django 2.1 on 2018-08-21 06:14
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("mainapp", "0063_auto_20180821_0820"),
]
operations = [
migrations.CreateModel(
name="PrivateRescueCamp",
fields=[
... | 3,197 |
511 | <filename>examples.py
#!/usr/bin/env python
"""
Usage examples for untangle
"""
import untangle
def access():
"""
Shows basic attribute access and node navigation.
"""
o = untangle.parse('<node id="5">This is cdata<subnode value="abc"/></node>')
return "Node id = %s, subnode value = %s" % (o.nod... | 573 |
381 | <gh_stars>100-1000
package com.tngtech.jgiven.example.selenium;
import com.tngtech.jgiven.CurrentStep;
import com.tngtech.jgiven.Stage;
import com.tngtech.jgiven.annotation.AfterStage;
import com.tngtech.jgiven.annotation.BeforeStage;
import com.tngtech.jgiven.annotation.ExpectedScenarioState;
import com.tngtech.jgive... | 599 |
3,495 | <gh_stars>1000+
/*
*
* Copyright (c) 2020 Project CHIP 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/... | 477 |
45,293 | package test;
public final class InheritMethodsDifferentReturnTypes {
public interface Super1 {
CharSequence foo();
String bar();
}
public interface Super2 {
String foo();
CharSequence bar();
}
public interface Sub extends Super1, Super2 {
}
}
| 113 |
335 | <reponame>Safal08/Hacktoberfest-1<gh_stars>100-1000
{
"word": "Dashing",
"definitions": [
"(of a man) attractive, adventurous, and full of confidence.",
"Stylish and fashionable."
],
"parts-of-speech": "Adjective"
} | 105 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.