max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
815 | <gh_stars>100-1000
"""
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.
"""
import contextlib
from typing import Optional, Sequence, Tuple, Union
import numpy as np
import torch
@contextlib.conte... | 7,427 |
661 | <gh_stars>100-1000
from .resnet import *
from .efficientnet import *
from .mobilenet import *
from .effnet import *
from .shufflenet import *
from .densenet import *
from .inception_v2 import InceptionV2
from .darknet import *
from .regnet import * | 82 |
2,609 | <reponame>vuvdoan/mockoon
{
"welcomeShown": true,
"analytics": true,
"logSizeLimit": 10000,
"maxLogsPerEnvironment": 50,
"truncateRouteName": true,
"environmentMenuSize": 100,
"routeMenuSize": 200,
"fakerLocale": "en",
"fakerSeed": null,
"lastChangelog": "9999.9.9",
"environments": [
null,
... | 184 |
400 | <gh_stars>100-1000
from lahja import BaseEvent, BroadcastConfig, ConnectionConfig
from lahja.exceptions import NoSubscribers
from lahja.tools import drivers as d
class Event(BaseEvent):
pass
def test_endpoint_broadcast_from_client_to_server(ipc_base_path, runner):
server_config = ConnectionConfig.from_name(... | 855 |
884 | <gh_stars>100-1000
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
import os
import unittest
from cdm.enums import CdmStatusLevel
from tests.common import async_test, TestHelper
class JsonSemanticVersionTest(u... | 1,402 |
3,100 | package com.airbnb.airpal.resources;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.core.Response;
import java.net.URI;
@Path("/")
public class RedirectRootResource {
@GET
public Response redirectToApp()
{
return Response.temporaryRedirect(URI.create("/app"))
... | 190 |
1,893 | """
Defines API paths for textractor endpoints.
"""
from typing import List
from fastapi import APIRouter, Body
from .. import application
router = APIRouter()
@router.get("/textract")
def textract(file: str):
"""
Extracts text from a file at path.
Args:
file: file to extract text
Return... | 262 |
2,151 | /* Generated by wayland-scanner 1.13.0 */
#ifndef GAMING_INPUT_UNSTABLE_V2_CLIENT_PROTOCOL_H
#define GAMING_INPUT_UNSTABLE_V2_CLIENT_PROTOCOL_H
#include <stdint.h>
#include <stddef.h>
#include "wayland-client.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* @page page_gaming_input_unstable_v2 The gaming_input_unst... | 4,903 |
571 | <filename>src/de/gurkenlabs/litiengine/environment/tilemap/TmxProperty.java
package de.gurkenlabs.litiengine.environment.tilemap;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* This annotat... | 227 |
20,995 | // Copyright 2020 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "include/cppgc/allocation.h"
#include "src/base/macros.h"
#include "src/heap/cppgc/marker.h"
#include "src/heap/cppgc/marking-visitor.h"
#inclu... | 2,466 |
7,883 |
# This recipe changes attributes of different type of blueprint actors.
# ...
walker_bp = world.get_blueprint_library().filter('walker.pedestrian.0002')
walker_bp.set_attribute('is_invincible', True)
# ...
# Changes attribute randomly by the recommended value
vehicle_bp = wolrd.get_blueprint_library().filter('vehicl... | 200 |
23,220 | package com.alibaba.otter.canal.adapter.launcher.monitor.remote;
/**
* 配置对应对象
*
* @author rewerma 2019-01-25 下午05:20:16
* @version 1.0.0
*/
public class ConfigItem {
private Long id;
private String category;
private String name;
private String content;
private long modifiedTime;
publ... | 429 |
381 | <filename>jaxrs/src/main/java/org/jboss/aerogear/unifiedpush/rest/registry/applications/iOSTokenVariantEndpoint.java
/**
* JBoss, Home of Professional Open Source
* Copyright Red Hat, Inc., and individual contributors.
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this f... | 3,458 |
5,079 | from django.conf.urls import include, url
from django.views import View
def view1(request):
pass
def view2(request):
pass
class View3(View):
pass
nested = ([
url(r'^view1/$', view1, name='view1'),
url(r'^view3/$', View3.as_view(), name='view3'),
], 'backend')
urlpatterns = [
url(r'^some... | 173 |
387 | #pragma once
#include <string>
#include "Keys.h"
namespace WinSys {
enum class ThreadState : uint32_t {
Initialized = 0,
Ready = 1,
Running = 2,
Standby = 3,
Terminated = 4,
Waiting = 5,
Transition = 6,
DeferredReady = 7,
GateWaitObsolete = 8,
WaitingForProcessInSwap = 9
};
enum class WaitReas... | 663 |
348 | <reponame>chamberone/Leaflet.PixiOverlay
{"nom":"Saint-Maigrin","circ":"4ème circonscription","dpt":"Charente-Maritime","inscrits":446,"abs":266,"votants":180,"blancs":14,"nuls":1,"exp":165,"res":[{"nuance":"REM","nom":"<NAME>","voix":93},{"nuance":"LR","nom":"<NAME>","voix":72}]} | 113 |
348 | <reponame>chamberone/Leaflet.PixiOverlay
{"nom":"Migny","circ":"2ème circonscription","dpt":"Indre","inscrits":97,"abs":53,"votants":44,"blancs":5,"nuls":5,"exp":34,"res":[{"nuance":"LR","nom":"<NAME>","voix":24},{"nuance":"MDM","nom":"<NAME>","voix":10}]} | 108 |
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_LAPACK_FUNCS_C_H
#define EL_LAPACK_FUNCS_C_H
#inclu... | 4,522 |
1,144 | package de.metas.rest_api.dataentry.impl;
import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.adempiere.util.lang.impl.TableRecordReference;
import com.google.common.annotations.VisibleForTesting;
import com.google.common.collect.ImmutableList;
import com.google... | 1,868 |
1,273 | package org.broadinstitute.hellbender.tools.dragstr;
import org.broadinstitute.hellbender.utils.Utils;
import java.util.*;
import java.util.stream.Collectors;
/**
* Collection of Dragstr Locus cases constraint to a particular period and (minimum) repeat-length
*/
public final class DragstrLocusCases extends Abstra... | 1,472 |
749 | <filename>roboticstoolbox/mobile/Animations.py
"""
Python Vehicle
@Author: <NAME>
@Author: <NAME>
"""
from abc import ABC, abstractmethod
import warnings
from math import pi, sin, cos, tan, atan2
import numpy as np
from scipy import integrate, linalg, interpolate
from pathlib import Path
import matplotlib.pyplot as plt... | 6,775 |
3,521 | <filename>kube_hunter/core/__init__.py<gh_stars>1000+
# flake8: noqa: E402
from . import types
from . import events
| 44 |
586 | # Generated by Django 2.2.12 on 2020-04-08 15:44
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('friendship', '0003_block_unique_together'),
]
operations = [
migrations.AlterModelOptions(
name='block',
options={'verbose_... | 170 |
10,876 | {
"name": "ttauri",
"version": "0.5.0",
"maintainers": "@takev",
"description": "A portable, low latency, retained-mode GUI framework written in C++.",
"homepage": "https://github.com/ttauri-project/ttauri",
"license": "BSL-1.0",
"supports": "windows & x64",
"dependencies": [
"vulkan",
"vulkan-m... | 135 |
1,781 | package com.marshalchen.common.uimodule.listviewanimations.itemmanipulation;
// TODO integrate in ExpandableListItemAdapter
public interface ExpandCollapseListener {
public void onItemExpanded(int position);
public void onItemCollapsed(int position);
}
| 77 |
544 | <gh_stars>100-1000
//
// NSDate+Format.h
// LFCategory
//
// Created by WangZhiWei on 16/5/19.
// Copyright © 2016年 youku. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface NSDate (LFFormatAdditions)
#pragma mark - 日期格式化
///======================================================================... | 871 |
4,339 | <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 License, Version 2.0
* (the "Lic... | 1,473 |
532 | <filename>Bindings/Python/tests/test_simulation_utilities.py
import os
import unittest
import opensim as osim
test_dir = os.path.join(os.path.dirname(os.path.abspath(osim.__file__)),
'tests')
class TestSimulationUtilities(unittest.TestCase):
def test_update_kinematics(self):
mode... | 297 |
2,406 | <filename>src/plugins/intel_gpu/include/intel_gpu/primitives/scatter_elements_update.hpp
// Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
///////////////////////////////////////////////////////////////////////////////////////////////////
#pragma once
#include "primitive.hpp"
name... | 709 |
3,690 | #define CATCH_CONFIG_MAIN
#include "../Catch/single_include/catch.hpp"
#include "solution.h"
TEST_CASE("Longest Common Prefix", "[longestCommonPrefix]")
{
Solution s;
SECTION( "common" )
{
std::vector<std::string> vec{"hello", "helo", "heat", "hey"};
REQUIRE( s.longestCommonPrefix(vec) == "... | 219 |
1,025 | //==================================================================================
// Copyright (c) 2016 , Advanced Micro Devices, Inc. All rights reserved.
//
/// \author AMD Developer Tools Team
/// \file pdStringConstants.h
///
//==================================================================================
... | 2,297 |
9,425 | <reponame>babs/salt<gh_stars>1000+
"""
Event constants used by listeners and servers, to be imported elsewhere in Salt code.
Do NOT, import any salt modules (salt.utils, salt.config, etc.) into this file,
as this may result in circular imports.
.. versionadded:: 3000
"""
# Constants for events on the minion bus
MINI... | 153 |
309 | <reponame>cw00dw0rd/pyGeno
import unittest
from pyGeno.Genome import *
import pyGeno.bootstrap as B
from pyGeno.importation.Genomes import *
from pyGeno.importation.SNPs import *
class pyGenoSNPTests(unittest.TestCase):
def setUp(self):
# try :
# B.importGenome("Human.GRCh37.75_Y-Only.tar.gz")
# except KeyEr... | 2,762 |
998 | <gh_stars>100-1000
// Copyright 2021 Phyronnaz
#include "Factories/VoxelDataAssetFromMeshImporterFactory.h"
#include "VoxelAssets/VoxelDataAsset.h"
#include "VoxelAssets/VoxelDataAssetData.h"
#include "VoxelFeedbackContext.h"
#include "VoxelImporters/VoxelMeshImporter.h"
#include "VoxelMessages.h"
#include "... | 379 |
1,144 | package org.adempiere.ad.dao.impl;
/*
* #%L
* de.metas.adempiere.adempiere.base
* %%
* Copyright (C) 2015 metas GmbH
* %%
* 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 ... | 1,695 |
412 |
int main(void)
{
int x = 1;
int y = 3;
int nondet;
if(nondet)
y = 4;
if(nondet)
x = 5;
__CPROVER_assert(x != y, "x != y");
__CPROVER_assert(y != x, "y != x");
__CPROVER_assert(!(x != y), "!(x != y)");
__CPROVER_assert(!(y != x), "!(y != x)");
__CPROVER_assert(x == y, "x == y");
__CPROVE... | 227 |
32,544 | <filename>spring-cloud-data-flow/batch-job/src/test/java/com/baeldung/spring/cloud/BatchJobApplicationIntegrationTest.java
package com.baeldung.spring.cloud;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.Cont... | 190 |
11,356 | <reponame>Bpowers4/turicreate
#ifndef BOOST_FSM_EVENT_INCLUDED
#define BOOST_FSM_EVENT_INCLUDED
// Copyright <NAME> 2002-2004
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
// See http://www.boost.org/li... | 452 |
1,133 | <reponame>vincentschut/isce2
//
// Author: <NAME>
// Copyright 2016
//
#ifndef AMPCOR_METHODS_H
#define AMPCOR_METHODS_H
#include <complex>
#include <ctime>
#include <vector>
#include "AmpcorFFT.h"
#include "Constants.h"
struct AmpcorMethods {
std::vector<double> filter;
double beta = .75;
double relfil... | 489 |
563 | package com.gentics.mesh.util;
import static com.gentics.mesh.core.rest.error.Errors.error;
import static io.netty.handler.codec.http.HttpResponseStatus.BAD_REQUEST;
import java.time.Instant;
import java.time.LocalDateTime;
import java.time.OffsetDateTime;
import java.time.ZoneId;
import java.time.ZoneOffset;
import ... | 1,142 |
413 | <filename>reproc/src/clock.windows.c<gh_stars>100-1000
#define _WIN32_WINNT _WIN32_WINNT_VISTA
#include "clock.h"
#include <windows.h>
int64_t now(void)
{
return (int64_t) GetTickCount64();
}
| 87 |
348 | <gh_stars>100-1000
{"nom":"Laruscade","circ":"11ème circonscription","dpt":"Gironde","inscrits":1879,"abs":1230,"votants":649,"blancs":5,"nuls":51,"exp":593,"res":[{"nuance":"REM","nom":"<NAME>","voix":298},{"nuance":"FN","nom":"<NAME>","voix":295}]} | 101 |
2,337 | <reponame>WSLUser/c2rust
// Unlike struct or union, there are no forward-declared enums in C. However,
// the Enlightenment Foundation Libraries, and possibly other code, contains
// code containing this pattern:
typedef enum _Evas_Filter_Support Evas_Filter_Support;
struct _Evas_Func
{
Evas_Filter_Support (*g... | 143 |
31,928 | from localstack.services.generic_proxy import UrlMatchingForwarder
class TestUrlMatchingForwarder:
def test_matches_with_root_path_without_host(self):
forwarder = UrlMatchingForwarder("/", "http://localhost")
assert not forwarder.matches("", "")
assert forwarder.matches("", "/")
a... | 5,525 |
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... | 803 |
778 | <reponame>262986832/pulsar<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... | 599 |
575 | // 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.
#include "chrome/browser/ui/webui/chromeos/emoji/emoji_ui.h"
#include "ash/public/cpp/tablet_mode.h"
#include "chrome/browser/profiles/profile.h"
#includ... | 1,691 |
1,178 | <reponame>leozz37/makani
#!/usr/bin/python
# Copyright 2020 Makani Technologies 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
#
# Unl... | 1,184 |
339 | <filename>integration/mediation-tests/tests-ui/src/test/java/org/wso2/carbon/esb/ui/test/proxyadmin/ESBJAVA_2841TestCase.java
/*
* Copyright (c) 2005-2014, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may no... | 2,057 |
995 | <gh_stars>100-1000
/*=============================================================================
Copyright (c) 2015 <NAME>
and.h
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
=====================... | 570 |
460 | #include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "list.h"
List* List_push(List **list, void *data) {
List *newnode;
if(!(newnode = malloc(sizeof(newnode)))) {
return NULL;
}
newnode->data = data;
newnode->next = *list;
*list = newnode;
fprintf(stdout, "list item data pointer %p.... | 580 |
617 | /*
* Copyright Beijing 58 Information Technology Co.,Ltd.
*
* 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... | 549 |
4,081 | /*
* The Alluxio Open Foundation licenses this work under the Apache License, version 2.0
* (the "License"). You may not use this work except in compliance with the License, which is
* available at www.apache.org/licenses/LICENSE-2.0
*
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDI... | 1,487 |
649 | {"name":"Adding an extraitem to a list with other items","testSteps":[{"number":1,"description":"Given that Jane has a todo list containing Buy some milk, Walk the dog","duration":7603,"startTime":1479990830673,"screenshots":[{"screenshot":"ebebbb33173ae061c12889e251a2df79.png"}],"result":"SUCCESS","children":[{"number... | 1,473 |
679 | <reponame>Grosskopf/openoffice
/**************************************************************
*
* 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... | 3,738 |
23,901 | <filename>etcmodel/models/wikihop/wikihop_eval.py
# coding=utf-8
# Copyright 2021 The Google Research 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/li... | 4,172 |
1,442 | #include "python_text_area.h"
#include "app.h"
#include <escher/palette.h>
#include <ion/unicode/utf8_helper.h>
#include <python/port/port.h>
/* py/parsenum.h is a C header which uses C keyword restrict.
* It does not exist in C++ so we define it here in order to be able to include
* py/parsenum.h header. */
#ifdef ... | 9,679 |
879 | <reponame>qianfei11/zstack<filename>test/src/test/java/org/zstack/test/multinodes/MultiNodeTestReply.java
package org.zstack.test.multinodes;
import org.zstack.header.message.MessageReply;
/**
*/
public class MultiNodeTestReply extends MessageReply {
private String managementNodeId;
public String getManagem... | 168 |
1,568 | class Stack:
def __init__(self):
self.stack = []
self.top = 0
def is_empty(self):
return (self.top == 0)
def push(self, item):
if self.top < len(self.stack):
self.stack[self.top] = item
else:
self.stack.append(item)
self.top += 1
def pop(self):
... | 214 |
507 | # terrascript/resource/innovationnorway/azure_preview.py
# Automatically generated by tools/makecode.py (24-Sep-2021 15:12:49 UTC)
import terrascript
class azurepreview_budget(terrascript.Resource):
pass
class azurepreview_subscription(terrascript.Resource):
pass
__all__ = [
"azurepreview_budget",
... | 126 |
1,061 | /*******************************************************************************
* Copyright 2014 See AUTHORS file.
*
* 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.a... | 438 |
6,036 | <filename>winml/lib/Api.Experimental/LearningModelOperatorSet.h<gh_stars>1000+
#pragma once
#include "LearningModelOperatorSet.g.h"
namespace WINML_EXPERIMENTALP {
struct LearningModelOperatorSet : LearningModelOperatorSetT<LearningModelOperatorSet>
{
LearningModelOperatorSet(winml_experimental::Lea... | 218 |
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.hybridcompute.fluent.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import co... | 804 |
1,880 | package sample;
import javax.inject.Inject;
/**
* Created by freemanliu on 3/19/18.
*/
public class T62 implements Tank {
@Inject
T62() {}
}
| 60 |
634 | /****************************************************************
* 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... | 3,331 |
1,091 | <gh_stars>1000+
/*
* Copyright 2016-present Open Networking Foundation
*
* 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 r... | 7,286 |
30,023 | """Tests for the Switch as X Cover platform."""
from homeassistant.components.cover import DOMAIN as COVER_DOMAIN
from homeassistant.components.switch import DOMAIN as SWITCH_DOMAIN
from homeassistant.components.switch_as_x.const import CONF_TARGET_DOMAIN, DOMAIN
from homeassistant.const import (
CONF_ENTITY_ID,
... | 1,596 |
1,648 | /*-
* SPDX-License-Identifier: BSD-3-Clause
*
* Copyright (c) 2015-2020 Amazon.com, Inc. or its affiliates.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of sou... | 11,182 |
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... | 501 |
5,169 | <filename>Specs/4/1/0/DetectImageColorsFramework/1.0.0/DetectImageColorsFramework.podspec.json<gh_stars>1000+
{
"name": "DetectImageColorsFramework",
"version": "1.0.0",
"summary": "Extracts 4 main colors from an image: primary, secondary, detail and background.",
"description": "Extracts 4 main colors from an ... | 332 |
5,169 | <reponame>Gantios/Specs
{
"name": "YLCommonKit",
"version": "0.0.4",
"summary": "我的基础库",
"description": "简单的整理,常用的分类",
"homepage": "https://github.com/xyl-private/YLCommonKit",
"license": {
"type": "MIT",
"file": "LICENSE"
},
"authors": {
"村雨灬龑": "<EMAIL>"
},
"platforms": {
"ios": "9... | 512 |
28,899 | from functools import reduce
import numpy as np
from pandas._config import get_option
def ensure_decoded(s):
"""
If we have bytes, decode them to unicode.
"""
if isinstance(s, (np.bytes_, bytes)):
s = s.decode(get_option("display.encoding"))
return s
def result_type_many(*arrays_and_dt... | 252 |
1,156 | <gh_stars>1000+
#----------------------------------------------
#--- Author : <NAME>
#--- Mail : <EMAIL>
#--- Date : 14th August 2019
#----------------------------------------------
import numpy as np
import cv2
import backbone
from utils.object_tracking_module import tracking_layer
... | 370 |
1,853 | <reponame>monocilindro/rtabmap
/*
Copyright (c) 2010-2021, <NAME> - IntRoLab - Universite de Sherbrooke
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 ret... | 1,817 |
558 | /* SPDX-License-Identifier: Apache-2.0 */
/*
* Copyright (C) 2020 Micron Technology, Inc. All rights reserved.
*/
#ifndef HSE_UTIL_COMPRESSION_H
#define HSE_UTIL_COMPRESSION_H
#include <hse_util/hse_err.h>
#include <hse_util/inttypes.h>
typedef uint compress_op_estimate_t(
const void *data,
uint len... | 393 |
854 | __________________________________________________________________________________________________
sample 4 ms submission
class Solution {
public:
int numMusicPlaylists(int N, int L, int K) {
long dp[N + 1][L + 1], mod = 1e9 + 7;
for (int i = K + 1; i <= N; ++i)
for (int j = i; j <= L; +... | 930 |
1,340 | <reponame>dummylung/MetalPetal<filename>Sources/MetalPetalObjectiveC/include/MTIPixelFormat.h<gh_stars>1000+
//
// MTIPixelFormat.h
// MetalPetal
//
// Created by <NAME> on 11/10/2017.
//
#import <Metal/Metal.h>
NS_ASSUME_NONNULL_BEGIN
FOUNDATION_EXPORT MTLPixelFormat const MTIPixelFormatUnspecified NS_REFINED_F... | 337 |
364 | <filename>src/main/java/rsc/parallel/ParallelOrderedPeek.java
package rsc.parallel;
import java.util.Objects;
import java.util.function.*;
import org.reactivestreams.*;
import rsc.subscriber.SubscriptionHelper;
import rsc.util.*;
/**
* Execute a Consumer in each 'rail' for the current element passing through.
*
... | 3,208 |
2,743 | <reponame>eshbeata/open-paperless
from __future__ import absolute_import, unicode_literals
from django.utils.translation import ugettext_lazy as _
from events.classes import Event
event_document_auto_check_in = Event(
name='checkouts_document_auto_check_in',
label=_('Document automatically checked in')
)
eve... | 220 |
868 | <reponame>AriCheng/flare
// Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
//
// Licensed under the BSD 3-Clause License (the "License"); you may not use this
// file except in compliance with the License. You may obtain a copy of the
// License at
//
// https://opensource.org/licenses/BSD-... | 518 |
793 | //=--- CommonBugCategories.h - Provides common issue categories -*- 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
//
//===---------------------------... | 300 |
2,105 | <gh_stars>1000+
[
{
"name": "Tabbed",
"displayName": "Tabbed",
"summary": "The most common style of navigation in mobile apps.",
"order": "0",
"licenses": "[React Navigation](https://github.com/react-navigation/react-navigation/blob/main/packages/core/LICENSE)",
"platform": "RN",
"language... | 155 |
30,023 | """The baf integration entities."""
from __future__ import annotations
from aiobafi6 import Device
from homeassistant.core import callback
from homeassistant.helpers import device_registry as dr
from homeassistant.helpers.device_registry import format_mac
from homeassistant.helpers.entity import DeviceInfo, Entity
... | 657 |
1,647 | #ifndef PYTHONIC_MATH_GAMMA_HPP
#define PYTHONIC_MATH_GAMMA_HPP
#include "pythonic/include/math/gamma.hpp"
#include "pythonic/utils/functor.hpp"
#include <cmath>
PYTHONIC_NS_BEGIN
namespace math
{
double gamma(double x)
{
return std::tgamma(x);
}
}
PYTHONIC_NS_END
#endif
| 141 |
348 | {"nom":"Ronquerolles","circ":"1ère circonscription","dpt":"Val-d'Oise","inscrits":623,"abs":321,"votants":302,"blancs":32,"nuls":7,"exp":263,"res":[{"nuance":"LR","nom":"<NAME>","voix":137},{"nuance":"REM","nom":"<NAME>","voix":126}]} | 92 |
309 | // Copyright 2020 the deepx authors.
// Author: <NAME> (<EMAIL>)
//
#pragma once
#include <deepx_core/common/any_map.h>
#include <deepx_core/common/stream.h>
#include <deepx_core/tensor/data_type.h>
#include <iostream>
#include <random>
#include <utility>
namespace deepx_core {
/*************************************... | 1,056 |
1,133 | #!/usr/bin/env python3
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Author: <NAME>
# Copyright 2010, by the California Institute of Technology. ALL RIGHTS RESERVED. United States Government Sponsorship acknowledged.
# Any commercial use must be negotiated with the Office of Tec... | 457 |
343 | /**
* Autogenerated by Thrift Compiler (0.9.3)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
package com.tim.packet;
import org.apache.thrift.scheme.IScheme;
import org.apache.thrift.scheme.SchemeFactory;
import org.apache.thrift.scheme.StandardScheme;
import org.apache.th... | 12,353 |
2,406 | # Copyright (C) 2018-2021 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import pytest
from common.onnx_layer_test_class import Caffe2OnnxLayerTest
test_data_3D = [
dict(input_shape=[1, 50, 50], output_shapes=[[1, 50, 25], [1, 50, 25]], axis=2),
dict(input_shape=[2, 50, 50], output_shapes=[[2, 20, ... | 5,529 |
6,098 | <filename>h2o-hive/src/main/java/water/hive/ImpersonationUtils.java
package water.hive;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.security.UserGroupInformation;
import java.io.IOException;
public class ImpersonationUtils {
public interface Callback { void call(String msg); }
... | 822 |
7,018 | <reponame>peterchenlc/Hippy
// Copyright (c) 2020 Tencent Corporation. All rights reserved.
#pragma once
#define TDF_BASE_EMBEDDER_ONLY
#define TDF_BASE_DISALLOW_COPY(TypeName) TypeName(const TypeName&) = delete
#define TDF_BASE_DISALLOW_ASSIGN(TypeName) TypeName& operator=(const TypeName&) = delete
#define TDF_BA... | 615 |
448 | # import opencv
import cv2
# Load the Cascade Classifier
face_cascade = cv2.CascadeClassifier("haarcascade_frontalface_default.xml")
# start web cam
cap = cv2.VideoCapture(0)
while True:
# read image from webcam
respose, color_img = cap.read()
# Convert to grayscale
gray_img = cv2.cvtColor(color_i... | 313 |
3,189 | //
// Generated by class-dump 3.5 (64 bit) (Debug version compiled May 11 2021 09:30:43).
//
// Copyright (C) 1997-2019 <NAME>.
//
#import <XCTest/NSObject-Protocol.h>
@class XCTNSPredicateExpectation;
@protocol XCTNSPredicateExpectationObject <NSObject>
@optional
- (_Bool)evaluatePredicateForExpectation:(XCTN... | 142 |
777 | <reponame>anuraaga/graphviz-java
/*
* Copyright © 2015 <NAME> (<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 ... | 750 |
575 | <reponame>iridium-browser/iridium-browser
// 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_SHARESHEET_DRIVE_SHARE_ACTION_H_
#define CHROME_BROWSER_SHARESHEET_DRIVE_SHARE_ACTION_H_
... | 428 |
2,209 | <reponame>yunnant/kungfu
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
#pragma once
/*! \file rx-map.hpp
\brief For each item from this observable use Selector to produce an item to emit from the new observable that is returne... | 1,831 |
107,386 | {"Action":"run","Test":"TestUnicode"}
{"Action":"output","Test":"TestUnicode","Output":"=== RUN TestUnicode\n"}
{"Action":"output","Test":"TestUnicode","Output":"Μπορώ να φάω σπασμένα γυαλιά χωρίς να πάθω τίποτα. Μπορώ να φάω σπασμένα γυαλιά χωρίς να πάθω τίποτα.\n"}
{"Action":"output","Test":"TestUnicode","Output":"... | 597 |
852 | <reponame>ckamtsikis/cmssw<filename>L1Trigger/L1TMuonBarrel/test/kalmanTools/validation.py
from __future__ import print_function
import ROOT,itertools,math #
from array import array #
from DataFormats.FWLite import Events, Handle
ROOT.FWLiteEnabler.enable()
#
tag='output'
##A class to keep BMTF data
... | 5,178 |
662 | import autopy
autopy.bitmap.capture_screen().save("screenshot.png")
| 24 |
1,346 | package com.ctrip.platform.dal.dao.datasource;
/**
* Created by taochen on 2019/8/7.
*/
public interface DataSourceSwitchListener {
void execute();
}
| 54 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.