max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
10,340 | <gh_stars>1000+
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); ... | 1,297 |
1,411 | <gh_stars>1000+
#pragma once
#include <array>
#include <fc/crypto/bigint.hpp>
#include <fc/crypto/common.hpp>
#include <fc/crypto/sha256.hpp>
#include <fc/crypto/sha512.hpp>
#include <fc/crypto/openssl.hpp>
#include <fc/fwd.hpp>
#include <fc/io/raw_fwd.hpp>
namespace fc {
namespace crypto { namespace r1 {
namespace d... | 2,836 |
476 | <filename>presto-jdbc/src/main/java/io/prestosql/jdbc/PrestoIntervalDayTime.java
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*... | 754 |
10,320 | import json
from pynamodb.exceptions import DoesNotExist
from todos.todo_model import TodoModel
def get(event, context):
try:
found_todo = TodoModel.get(hash_key=event['path']['todo_id'])
except DoesNotExist:
return {'statusCode': 404,
'body': json.dumps({'error_message': 'TOD... | 194 |
3,428 | {"id":"00095","group":"easy-ham-1","checksum":{"type":"MD5","value":"24caf7db5c45203f312f742f49385618"},"text":"From <EMAIL> Mon Sep 2 13:15:36 2002\nReturn-Path: <<EMAIL>>\nDelivered-To: zzzz@<EMAIL>.netnoteinc.com\nReceived: from localhost (localhost [127.0.0.1])\n\tby phobos.labs.netnoteinc.com (Postfix) with ESMT... | 1,038 |
2,288 | <reponame>Bladez1753/lightning
#ifndef LIGHTNING_PLUGINS_SPENDER_MULTIWITHDRAW_H
#define LIGHTNING_PLUGINS_SPENDER_MULTIWITHDRAW_H
#include "config.h"
#include <plugins/libplugin.h>
extern const struct plugin_command multiwithdraw_commands[];
extern const size_t num_multiwithdraw_commands;
#endif /* LIGHTNING_PLUGIN... | 143 |
324 | <reponame>tormath1/jclouds<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 Lice... | 1,626 |
11,616 | /**
* Copyright © 2016-2021 The Thingsboard 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 required by applicab... | 963 |
335 | <reponame>Safal08/Hacktoberfest-1<gh_stars>100-1000
{
"word": "Protocol",
"definitions": [
"The official procedure or system of rules governing affairs of state or diplomatic occasions.",
"The accepted or established code of procedure or behaviour in any group, organization, or situation.",
... | 238 |
800 | <filename>src_analysis/fuzzer_dependencies.py<gh_stars>100-1000
# 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... | 2,224 |
575 | // Copyright 2015 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_CHROMEOS_PRINTING_USB_PRINTER_DETECTOR_H_
#define CHROME_BROWSER_CHROMEOS_PRINTING_USB_PRINTER_DETECTOR_H_
#include <memory>
#inc... | 425 |
335 | <gh_stars>100-1000
{
"word": "Knowing",
"definitions": [
"Showing or suggesting that one has knowledge or awareness that is secret or known to only a few people.",
"Experienced or shrewd, especially excessively or prematurely so.",
"Done in full awareness or consciousness."
],
"p... | 119 |
1,670 | <filename>examples/twisted/wamp/work/newapi/test_newapi_cryptosign.py
from autobahn.twisted.component import Component, run
privkey_hex = '<KEY>'
# pubkey: 020b13239ca0f10a1c65feaf26e8dfca6e84c81d2509a2b7b75a7e5ee5ce4b66
component = Component(
transports='ws://localhost:8080/auth_ws',
realm='crossbardemo',
... | 269 |
348 | {"nom":"Attin","circ":"4ème circonscription","dpt":"Pas-de-Calais","inscrits":600,"abs":301,"votants":299,"blancs":2,"nuls":1,"exp":296,"res":[{"nuance":"REM","nom":"<NAME>","voix":106},{"nuance":"SOC","nom":"Mme <NAME>","voix":66},{"nuance":"LR","nom":"<NAME>","voix":66},{"nuance":"FN","nom":"M. <NAME>","voix":38},{"n... | 241 |
4,036 | // Generated automatically from org.springframework.jdbc.core.ParameterizedPreparedStatementSetter for testing purposes
package org.springframework.jdbc.core;
import java.sql.PreparedStatement;
public interface ParameterizedPreparedStatementSetter<T>
{
void setValues(PreparedStatement p0, T p1);
}
| 89 |
321 | <gh_stars>100-1000
// This file is generated by Ubpa::USRefl::AutoRefl
#pragma once
#include <USRefl/USRefl.h>
template<>
struct Ubpa::USRefl::TypeInfo<Ubpa::UECS::ArchetypeFilter> :
TypeInfoBase<Ubpa::UECS::ArchetypeFilter>
{
#ifdef UBPA_USREFL_NOT_USE_NAMEOF
static constexpr char name[28] = "Ubpa::UECS::Ar... | 317 |
4,681 | <filename>venv/Lib/site-packages/trio/_wait_for_object.py<gh_stars>1000+
import math
from . import _timeouts
import trio
from ._core._windows_cffi import (
ffi,
kernel32,
ErrorCodes,
raise_winerror,
_handle,
)
async def WaitForSingleObject(obj):
"""Async and cancellable variant of WaitForSingl... | 809 |
1,602 | <reponame>HarshCasper/modoboa
"""Django management command to import admin objects."""
import csv
import io
import os
import progressbar
from chardet.universaldetector import UniversalDetector
from django.core.management.base import BaseCommand, CommandError
from django.db import transaction
from django.utils.transl... | 2,222 |
318 | /* SCCS Id: @(#)macwin.h 3.4 1996/01/15 */
/* Copyright (c) <NAME>, Amsterdam, 1985. */
/* NetHack may be freely redistributed. See license for details. */
#ifndef MACWIN_H
# define MACWIN_H
#undef red /* undef internal color const strings from decl */
#undef green
#undef blue
#ifndef __MACH__
#include <windows.h>... | 2,421 |
6,436 | #include "ofApp.h"
ofPolyline poly;
unsigned int nearestIndex = 0;
float rotAngle = 0;
bool bRotate = false;
//--------------------------------------------------------------
void ofApp::setup(){
ofBackground(0);
}
//--------------------------------------------------------------
void ofApp::update(){
if(... | 3,141 |
315 | <filename>include/Tools/Thread_pinning/Thread_pinning.hpp
#ifndef THREAD_PINNING_HPP
#define THREAD_PINNING_HPP
#include <string>
namespace aff3ct
{
namespace tools
{
class Thread_pinning
{
public:
static void init();
static void destroy();
static void pin(const size_t puid);
static void unpin();
static std::st... | 170 |
422 | <reponame>build2/build2<gh_stars>100-1000
// file : libbuild2/rule.cxx -*- C++ -*-
// license : MIT; see accompanying LICENSE file
#include <libbuild2/rule.hxx>
#include <libbuild2/scope.hxx>
#include <libbuild2/target.hxx>
#include <libbuild2/context.hxx>
#include <libbuild2/algorithm.hxx>
#include <libbuild2... | 4,212 |
1,599 | <gh_stars>1000+
# This code is part of Qiskit.
#
# (C) Copyright IBM 2017, 2021.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifica... | 2,164 |
606 | <gh_stars>100-1000
/******************************************************************************
* Copyright 2017-2018 Baidu Robotic Vision 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 ma... | 2,451 |
376 | #pragma once
#include <Register/Utility.hpp>
namespace Kvasir {
//Flash controller
namespace FlashctrlFmsstart{ ///<Signature start address register
using Addr = Register::Address<0x400bc020,0x00000000,0x00000000,unsigned>;
///Signature generation start address (corresponds to AHB byte address ... | 638 |
1,428 | <reponame>saurabhcommand/Hello-world<filename>AlgoPy/insertionSort.py
def insertionSort(alist):
for index in range(1,len(alist)):
currentvalue = alist[index]
position = index
while position>0 and alist[position-1]>currentvalue:
alist[position]=alist[position-1]
position = position-... | 172 |
1,768 | // Copyright (c) 2003 Compaq Corporation. All rights reserved.
// Portions Copyright (c) 2003 Microsoft Corporation. All rights reserved.
package tla2sany.modanalyzer;
import java.util.Enumeration;
import java.util.Hashtable;
/**
* Each instance of this class basically is a map from ModulePointer objects to
* Mod... | 633 |
422 | package com.ansorgit.plugins.bash.editor.inspections.inspections;
import org.junit.Test;
public class ConvertBackquoteInspectionTest extends AbstractInspectionTestCase {
@Test
public void testOk() throws Exception {
doTest("convertBackquoteInspection/ok", ConvertBackquoteInspection.class, true);
... | 215 |
2,381 | <filename>docker-java-core/src/main/java/com/github/dockerjava/core/FramedInputStreamConsumer.java<gh_stars>1000+
package com.github.dockerjava.core;
import com.github.dockerjava.api.async.ResultCallback;
import com.github.dockerjava.api.model.Frame;
import com.github.dockerjava.api.model.StreamType;
import com.github... | 1,916 |
7,539 | from .cosine import CosineDistance, LogitCosineDistance, NegativeScaledDotProduct
from .euclidean import EuclideanDistance, EuclideanMean
from .hyperbolic import HyperbolicDistance, HyperbolicMean
__all__ = [
"EuclideanDistance",
"EuclideanMean",
"HyperbolicDistance",
"HyperbolicMean",
"CosineDista... | 143 |
422 | from runner import ProjectType
from glotter import project_test, project_fixture
def _get_expected(source):
with open(source.full_path) as file:
return file.read()
@project_fixture(ProjectType.Quine.key)
def quine(request):
request.param.build()
yield request.param
request.param.cleanup()
... | 173 |
5,169 | <filename>Specs/c/4/7/DYFAuthIDAndGestureLock/1.0.1/DYFAuthIDAndGestureLock.podspec.json<gh_stars>1000+
{
"name": "DYFAuthIDAndGestureLock",
"version": "1.0.1",
"summary": "Gesture passcode and TouchID/FaceID unlocking.",
"description": "Gesture passcode unlocking and TouchID (fingerprint) / FaceID (facial feat... | 394 |
7,272 | <reponame>saurabhkurve/DSA-Bootcamp-Java
package com.kunal.easy;
public class Fact {
public static void main(String[] args) {
int ans = fact(5);
System.out.println(ans);
}
static int fact(int n) {
if (n <= 1) {
return 1;
}
return n * fact(n-1);
}
}
| 161 |
1,031 | <filename>cacreader/swig-4.0.2/Examples/test-suite/java/overload_template_runme.java
import overload_template.*;
public class overload_template_runme {
static {
try {
System.loadLibrary("overload_template");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. ... | 1,978 |
819 | /*
* Copyright (c) 2016, 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. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
#ifndef FATAL_... | 1,432 |
634 | <filename>modules/desktop-awt/desktop-ui-impl/src/main/java/consulo/ui/desktop/internal/DesktopButtonImpl.java<gh_stars>100-1000
/*
* Copyright 2013-2017 consulo.io
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtai... | 884 |
2,550 | # coding=utf-8
import json
from flask import Response
from .base_class import ZmirrorTestBase
from .utils import *
class TestRedirection(ZmirrorTestBase):
"""testing using https://httpbin.org/"""
class C(ZmirrorTestBase.C):
my_host_name = 'b.test.com'
my_host_scheme = 'https://'
targ... | 1,263 |
2,151 | // 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 "content/test/mock_background_sync_controller.h"
namespace content {
void MockBackgroundSyncController::NotifyBackgroundSyncRegistered(
con... | 281 |
404 | <gh_stars>100-1000
package org.frameworkset.elasticsearch.client;
import org.apache.http.client.ResponseHandler;
import org.frameworkset.elasticsearch.ElasticSearch;
import org.frameworkset.elasticsearch.ElasticSearchException;
import org.frameworkset.elasticsearch.ElasticSearchHelper;
import org.frameworkset.elastics... | 34,054 |
321 | // Copyright 2019 DeepMind Technologies 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law ... | 1,023 |
626 | <gh_stars>100-1000
//package org.jsmart.zerocode.testhelp.tests.helloworldcustomclient;
//
//import org.jsmart.zerocode.core.domain.JsonTestCase;
//import org.jsmart.zerocode.core.domain.TargetEnv;
//import org.jsmart.zerocode.core.runner.ZeroCodeUnitRunner;
//import org.junit.Test;
//import org.junit.runner.RunWith;
/... | 226 |
1,056 | <filename>ide/refactoring.api/src/org/netbeans/modules/refactoring/plugins/CopyFile.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 copyright ownersh... | 1,696 |
2,151 | <reponame>kniefliu/WindowsSamples
//
// Copyright (c) 2013-2017 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// SystemInfo_win.cpp: implementation of the Windows-specific parts of SystemInfo.h
#include "gpu_i... | 3,047 |
2,151 | <filename>include/llvm/DebugInfo/PDB/DIA/DIASupport.h
//===- DIASupport.h - Common header includes for DIA ------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-... | 508 |
368 | <filename>include/quickhull/quickhull.h<gh_stars>100-1000
/*
* Copyright (c) 2016-2019 <NAME>
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
* Permission is granted to anyone to use t... | 714 |
516 | <filename>src/toil/test/cwl/download_directory_s3.json
{
"input_directory": {"class": "Directory", "location": "s3://toil-datasets/images/logos/"},
"input_filename": "toil-logo-draft.png"
}
| 81 |
14,668 | <reponame>chromium/chromium<filename>chrome/browser/ui/omnibox/chrome_omnibox_client.h
// 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_UI_OMNIBOX_CHROME_OMNIBOX_CLIENT_H_
#define ... | 1,865 |
628 | package com.zhaoxiaodan.miband;
import android.bluetooth.BluetoothDevice;
import android.bluetooth.BluetoothGatt;
import android.bluetooth.BluetoothGattCallback;
import android.bluetooth.BluetoothGattCharacteristic;
import android.bluetooth.BluetoothGattDescriptor;
import android.bluetooth.BluetoothProfile;
import and... | 3,472 |
5,079 | '''
Formatting
==========
The XF record is able to store explicit cell formatting attributes or the
attributes of a cell style. Explicit formatting includes the reference to
a cell style XF record. This allows to extend a defined cell style with
some explicit attributes. The formatting attributes are di... | 4,387 |
432 | package com.hccake.ballcat.auth.configuration;
import com.anji.captcha.service.CaptchaService;
import com.hccake.ballcat.auth.OAuth2AuthorizationServerProperties;
import com.hccake.ballcat.auth.filter.LoginCaptchaFilter;
import com.hccake.ballcat.auth.filter.LoginPasswordDecoderFilter;
import com.hccake.ballcat.common... | 820 |
301 | <reponame>SAP/iot-starterkit
package commons.api;
import java.io.IOException;
import commons.connectivity.HttpClient;
import commons.model.Authentication;
import commons.model.Capability;
import commons.model.Command;
import commons.model.Device;
import commons.model.Gateway;
import commons.model.GatewayProtocol;
imp... | 1,836 |
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.debug.holder;
import com.facebook.debug.debugoverlay.model.DebugOverlayTag;
/** No-op implementation of {@li... | 211 |
335 | <gh_stars>100-1000
{
"word": "Lacuna",
"definitions": [
"An unfilled space; a gap.",
"A missing portion in a book or manuscript.",
"A cavity or depression, especially in bone."
],
"parts-of-speech": "Noun"
} | 106 |
388 | <filename>RoundImageButton/src/java/example/MainPanel.java
// -*- mode:java; encoding:utf-8 -*-
// vim:set fileencoding=utf-8:
// @homepage@
package example;
import java.awt.*;
import java.awt.event.ItemEvent;
import java.awt.geom.Ellipse2D;
import java.util.Arrays;
import java.util.List;
import java.util.Objects;
im... | 4,054 |
2,494 | // Copyright 2012 the V8 project authors. 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 ... | 1,439 |
303 | /* Copyright (C) 2005-2011 <NAME> */
package com.lightcrafts.app;
import static com.lightcrafts.app.Locale.LOCALE;
import com.lightcrafts.image.ImageInfo;
import com.lightcrafts.image.metadata.ImageMetadata;
import com.lightcrafts.image.types.RawImageType;
import com.lightcrafts.platform.Platform;
import com.lightcra... | 5,095 |
10,320 | <filename>openwhisk-python-scheduled-cron/handler.py
import datetime
import os
def run(params):
current_time = datetime.datetime.now().time()
name = os.environ['__OW_ACTION_NAME']
print("Your cron function " + name + " ran at " + str(current_time))
return {}
| 101 |
1,008 | <filename>turms-server-common/src/main/java/io/lettuce/core/TurmsRedisCommandBuilder.java<gh_stars>1000+
/*
* Copyright (C) 2019 The Turms Project
* https://github.com/turms-im/turms
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Licens... | 1,922 |
324 | <reponame>akinaru/ssl-cert-dashboard<filename>release/libs/mongo/db/stats/fine_clock.h<gh_stars>100-1000
// fine_clock.h
/**
* Copyright (C) 2008 10gen Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* ... | 909 |
1,141 | <filename>EHenTaiViewer/QJProtectTool.h
//
// QJProtectTool.h
// EHenTaiViewer
//
// Created by QinJ on 2017/5/25.
// Copyright © 2017年 kayanouriko. All rights reserved.
//
//感谢maltsugar,终于明白了系统密码调用的方法
#import <Foundation/Foundation.h>
typedef NS_ENUM(NSInteger, QJProtectToolStatus) {
QJProtectToolStatusSucc... | 266 |
428 | /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* JOrbis
* Copyright (C) 2000 ymnk, JCraft,Inc.
*
* Written by: 2000 ymnk<<EMAIL>>
*
* Many thanks to
* Monty <<EMAIL>> and
* The XIPHOPHORUS Company http://www.xiph.org/ .
* JOrbis has been based on their awesome works, Vorbis codec.
*... | 8,742 |
828 | <filename>hasor-web/src/main/java/net/hasor/web/objects/CorsFilter.java
/*
* Copyright 2008-2009 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
*
* ... | 889 |
380 | <reponame>fanavarro/neosemantics<filename>src/main/java/n10s/experimental/ExperimentalImports.java
package n10s.experimental;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.nio.charset.Charset;
import java.util.HashMap;
import java.util.UUID;
import java.util.stream.Stream;
import n10s.RD... | 1,023 |
956 | <gh_stars>100-1000
import sys
import lockfile.linklockfile
import lockfile.mkdirlockfile
import lockfile.pidlockfile
import lockfile.symlinklockfile
from compliancetest import ComplianceTest
class TestLinkLockFile(ComplianceTest):
class_to_test = lockfile.linklockfile.LinkLockFile
class TestSymlinkLockFile(... | 351 |
369 | // Copyright (c) 2017-2021, <NAME>.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#pragma once
#include <Service/ServiceCreator.hpp>
#include <memory>
#include <vector>
namespace sys
{
class BaseServiceCreator; // Forward declaration
namespace graph
{
... | 419 |
742 | package org.support.project.ormapping.connection;
import java.sql.Connection;
import org.support.project.di.DI;
import org.support.project.di.Instance;
/**
* コネクションプールのインタフェース
*
* @author koda
*
*/
@DI(instance = Instance.Singleton)
public interface ConnectionPool {
Connection getConnectio... | 154 |
368 | <reponame>gta-chaos-mod/plugin-sdk
/*
Plugin-SDK (Grand Theft Auto 3) source file
Authors: GTA Community. See more here
https://github.com/DK22Pac/plugin-sdk
Do not delete this comment block. Respect others' work!
*/
#include "CMovingThing.h"
PLUGIN_SOURCE_FILE
int ctor_addr(CMovingThing) = ADDRESS_BY... | 622 |
356 | <gh_stars>100-1000
package me.zsj.interessant.widget;
import android.content.Context;
import android.util.AttributeSet;
import android.widget.FrameLayout;
/**
* @author zsj
*/
public class InsetsFrameLayout extends FrameLayout {
public InsetsFrameLayout(Context context) {
this(context, null);
}
... | 365 |
2,996 | <reponame>Elyahu41/Terasology
// Copyright 2021 The Terasology Foundation
// SPDX-License-Identifier: Apache-2.0
package org.terasology.engine.core.bootstrap;
import org.terasology.engine.context.Context;
import org.terasology.engine.core.module.ModuleManager;
import org.terasology.gestalt.naming.Name;
import java.l... | 482 |
6,457 | # License: Apache 2.0. See LICENSE file in root directory.
# Copyright(c) 2021 Intel Corporation. All Rights Reserved.
#test:device D455
#test:donotrun
import time
import threading
from queue import Queue
from rspy import test
import pyrealsense2 as rs
# Run RGB stream in D455 with 90 fps and find frame drops by che... | 2,406 |
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... | 2,518 |
715 | /*
* This source file is part of libRocket, the HTML/CSS Interface Middleware
*
* For the latest information, see http://www.librocket.com
*
* Copyright (c) 2008-2010 CodePoint Ltd, Shift Technology Ltd
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and assoc... | 1,087 |
1,552 | # -*- coding: utf-8 -*
"""import"""
import collections
import json
import unicodedata
from collections import OrderedDict
import six
from ..common.rule import MaxTruncation
from . import params
import os, tarfile
def append_name(name, postfix):
""" append name with postfix """
if name is None:
ret = N... | 9,655 |
2,338 | <filename>clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_adrw.c
// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py
// REQUIRES: aarch64-registered-target
// RUN: %clang_cc1 -triple aarch64-none-linux-gnu -target-feature +sve -fallow-half-arguments-and-returns -S -O1 -Werror -Wall -emit-ll... | 2,161 |
1,045 | import os
import six
from six.moves import cPickle
import time
import numpy as np
import modelarts.aibox.ops as ops
from modelarts.aibox.pipeline import Pipeline
import modelarts.aibox.types as types
_R_MEAN = 125.31
_G_MEAN = 122.95
_B_MEAN = 113.87
_CHANNEL_MEANS = [_R_MEAN, _G_MEAN, _B_MEAN]
_R_STD = 62.99
_G_ST... | 1,963 |
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... | 2,800 |
6,989 | <reponame>HeyLey/catboost
#pragma once
#ifdef USE_PYTHON3
#include <contrib/tools/python3/src/Include/pyctype.h>
#else
#include <contrib/tools/python/src/Include/pyctype.h>
#endif
| 81 |
416 | <filename>iPhoneOS14.5.sdk/System/Library/Frameworks/ARKit.framework/Headers/ARAppClipCodeAnchor.h
//
// ARAppClipCodeAnchor.h
// ARKit
//
// Copyright © 2017-2020 Apple Inc. All rights reserved.
//
#import <ARKit/ARAnchor.h>
NS_ASSUME_NONNULL_BEGIN
/**
A value describing app clip code URL decoding state.
*/
API_... | 549 |
399 | <reponame>PranavPurwar/procyon<filename>Procyon.Reflection/src/main/java/com/strobel/reflection/MemberListOptions.java
/*
* MemberListOptions.java
*
* Copyright (c) 2012 <NAME>
*
* This source code is subject to terms and conditions of the Apache License, Version 2.0.
* A copy of the license can be found in... | 310 |
301 | <reponame>jonghenhan/iotivity<filename>resource/c_common/experimental/byte_array.h
/******************************************************************
*
* Copyright 2015 Samsung Electronics All Rights Reserved.
*
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file ex... | 1,654 |
473 | /*
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
*/
#ifndef EL_NUMBER_THEORY_DYNAMIC_SIEVE_HPP
#define EL_NUMBER_... | 4,477 |
1,062 | //
// Generated by class-dump 3.5b1 (64 bit) (Debug version compiled Dec 3 2019 19:59:57).
//
// Copyright (C) 1997-2019 <NAME>.
//
#import <objc/NSObject.h>
@interface MFHTMLParser : NSObject
{
}
+ (id)plainTextFromHTMLSnippet:(id)arg1; // IMP=0x00000000000b302c
+ (id)plainTextFromHTML:(id)arg1; // IMP=0x0000... | 175 |
425 | <gh_stars>100-1000
{"query":"6 inch","prediction":{"topIntent":"sandwich","intents":{"sandwich":{"score":0.9882634}},"entities":{"number":[6],"dimension":[{"number":6,"units":"Inch"}],"$instance":{"number":[{"type":"builtin.number","text":"6","startIndex":0,"length":1,"modelTypeId":2,"modelType":"Prebuilt Entity Extrac... | 155 |
852 | from RecoTauTag.RecoTau.pfRecoTauProducerDef_cfi import pfRecoTauProducerDef
pfRecoTauProducer = pfRecoTauProducerDef.clone()
| 58 |
518 | {
"name": "Any.do",
"category": "Task & Project Management",
"start_url": "https://web.any.do/",
"icons": [
{
"src": "https://cdn.filestackcontent.com/bfEqDMbKSUmTx8YWgSut"
},
{
"src": "https://cdn.filestackcontent.com/Wtanv7rSw2C9VoBW3oXy",
"platform": "browserx"
}
],
"the... | 204 |
429 | <filename>plasmapy/plasma/sources/tests/test_openpmd_hdf5.py
import os
import pytest
from astropy import units as u
from typing import List, Tuple, Union
import plasmapy.plasma
from plasmapy.particles.data.test import data_dir
from plasmapy.plasma.exceptions import DataStandardError
from plasmapy.plasma.sources impo... | 2,303 |
450 | /*
* 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 ... | 560 |
309 | <reponame>andriyor/sphinx-gallery
# -*- coding: utf-8 -*-
r"""
Test utility functions
==================
"""
# Author: <NAME>
# License: 3-clause BSD
from __future__ import division, absolute_import, print_function
import sphinx_gallery.utils as utils
import pytest
@pytest.mark.parametrize('file_name', ('some/file... | 248 |
5,168 | <gh_stars>1000+
/**
* \file dnn/src/arm_common/pooling/do_max_pooling_3x3_s2x2_float.cpp
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* Unless required by applicable law or agreed to in writing,
* software distributed... | 229 |
7,482 | /*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
*/
#ifndef __SEP4020_H
#define __SEP4020_H
#include <rtthread.h>
/*Core definations*/
#define SVCMODE
#define Mode_USR 0x10
#define Mode_FIQ 0x11
#define M... | 33,815 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-9mm4-3grj-7cx7",
"modified": "2022-05-01T02:27:36Z",
"published": "2022-05-01T02:27:36Z",
"aliases": [
"CVE-2005-4463"
],
"details": "WordPress before 1.5.2 allows remote attackers to obtain sensitive information via a direct request to (1) wp-includes/vars.php... | 753 |
2,151 | /*
* This file is part of Wireless Display Software for Linux OS
*
* Copyright (C) 2014 Intel Corporation.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 o... | 1,558 |
473 | #include <stdio.h>
int main(void)
{
int a, b;
int result;
a = 0x1;
b = 0x80;
result = 0x2;
__asm
("1:\n\t"
"l.addi %0, %0, 0x1\n\t"
"l.sfeq %0, %1\n\t"
"l.bf 1b\n\t"
"l.nop\n\t"
: "+r"(a)
: "r"(b)
);
if (a != result) {
printf("sfeq erro... | 450 |
642 | /**
*
*/
package com.jeesuite.mybatis.crud.builder;
import org.apache.ibatis.jdbc.SQL;
import com.jeesuite.mybatis.crud.CrudMethods;
import com.jeesuite.mybatis.crud.helper.ColumnMapper;
import com.jeesuite.mybatis.crud.helper.EntityMapper;
import com.jeesuite.mybatis.crud.helper.TableMapper;
/**
* 批量插入
* @desc... | 408 |
1,338 | /*
* Copyright 2003-2011, Haiku, Inc. All rights reserved.
* Distributed under the terms of the MIT License.
*
* Authors:
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
*/
#include <arch/debug.h>
#include <arch_cpu.h>
#include <debug.h>
#include <elf.h>
#include <kernel.h>
#include <kimage.h>
#include <thread.h>
... | 3,700 |
1,374 | package def.dom;
public class HTMLModElement extends HTMLElement {
/**
* Sets or retrieves reference information about the object.
*/
public java.lang.String cite;
/**
* Sets or retrieves the date and time of a modification to the object.
*/
public java.lang.String dateTime;
... | 129 |
369 | /*
* Copyright © 2014 Cask Data, 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 t... | 548 |
743 | package pl.allegro.tech.hermes.integration.test;
import com.github.tomakehurst.wiremock.verification.LoggedRequest;
import org.assertj.core.api.AbstractAssert;
import java.util.Map;
import static org.assertj.core.api.Assertions.assertThat;
public class WiremockRequestAssertion extends AbstractAssert<WiremockRequest... | 323 |
19,438 | /*
* Copyright (c) 2021, <NAME> <<EMAIL>>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <LibJS/Runtime/Object.h>
#include <LibWasm/AbstractMachine/AbstractMachine.h>
#include <LibWeb/Forward.h>
#include <LibWeb/WebAssembly/WebAssemblyInstanceObjectPrototype.h>
#include <LibWeb/WebAssembly/Web... | 242 |
14,668 | // Copyright 2015 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.components.browser_ui.site_settings;
import androidx.annotation.Nullable;
import org.chromium.components.content_settings.ContentSe... | 853 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.