max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
2,151 | <gh_stars>1000+
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "services/content/service.h"
#include <utility>
#include "base/bind.h"
#include "base/macros.h"
#include "mojo/public/cpp/bindi... | 752 |
5,250 | /* 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... | 5,056 |
15,577 | #pragma once
#include <Processors/IProcessor.h>
#include <Processors/ISimpleTransform.h>
#include <Core/ColumnNumbers.h>
#include <Common/WeakHash.h>
namespace DB
{
/// Add IColumn::Selector to chunk (see SelectorInfo.h).
/// Selector is filled by formula (WeakHash(key_columns) * num_outputs / MAX_INT).
class AddingS... | 240 |
492 | <gh_stars>100-1000
from django.shortcuts import render
def index(request):
mydict = {'key1' : 'value1'}
mylist = [1, 2, 3, 4]
list_of_dictionaries = [{'user' : '832'}, {'user' : '3238'}, {'user' : '30293'}]
mybool = True
context = {'name' : 'Pretty Printed', 'mydict' : mydict, 'mylist' : mylist, 'm... | 227 |
1,093 | <reponame>StandCN/spring-integration
/*
* Copyright 2002-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/L... | 1,431 |
5,169 | <reponame>Gantios/Specs
{
"name": "EasyAuth",
"version": "1.0.4",
"summary": "This is private auth module",
"description": "This is authorization module for EasyPay UA applications",
"homepage": "https://gitlab.easypay.ua:14443/astakhov/easyauth.git",
"license": "LICENSE",
"authors": {
"<NAME>": "<EMA... | 413 |
2,792 | <gh_stars>1000+
# -*- coding:utf-8 -*-
# Author:hankcs
# Date: 2018-07-04 17:34
# 《自然语言处理入门》7.3.1 基于隐马尔可夫模型的词性标注
# 配套书籍:http://nlp.hankcs.com/book.php
# 讨论答疑:https://bbs.hankcs.com/
from pyhanlp import *
from tests.book.ch07.pku import PKU199801_TRAIN
HMMPOSTagger = JClass('com.hankcs.hanlp.model.hmm.HMMPOSTagger')
... | 644 |
422 | #pragma once
#include "TypeReader.h"
#include "GenericTypeReader.h"
// Keeps track of all the available TypeReader implementations.
class TypeReaderManager
{
public:
virtual ~TypeReaderManager();
void RegisterStandardTypes();
TypeReader* GetByReaderName(wstring const& readerName);
TypeReader* GetBy... | 332 |
750 | from unittest import TestCase
from piccolo.table import create_tables, drop_tables
from tests.example_apps.music.tables import Band, Manager
class TestDropTables(TestCase):
def setUp(self):
create_tables(Band, Manager)
def test_drop_tables(self):
"""
Make sure the tables are dropped.... | 251 |
1,056 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 2,487 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-v6c9-fgcv-6gvg",
"modified": "2022-05-13T01:39:18Z",
"published": "2022-05-13T01:39:18Z",
"aliases": [
"CVE-2013-2323"
],
"details": "HP SQL/MX 3.0 through 3.2 on NonStop servers, when SQL/MP Objects are used, allows remote authenticated users to bypass intende... | 373 |
827 | <gh_stars>100-1000
"""
Example of MRI response functions
=================================
Within this example we are going to plot the hemodynamic response function
(:term:`HRF`) model in :term:`SPM` together with the :term:`HRF` shape
proposed by G.Glover, as well as
their time and dispersion derivatives.
We also il... | 1,734 |
14,668 | // Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.chrome.browser.autofill_assistant;
import android.content.Context;
import android.view.LayoutInflater;
import org.chromium.chrome.b... | 273 |
320 | //
// OMSDK.h
// OMSDK
//
// Created by <NAME> on 10/16/20.
//
#import <Foundation/Foundation.h>
//! Project version number for OMSDK.
FOUNDATION_EXPORT double OMSDKVersionNumber;
//! Project version string for OMSDK.
FOUNDATION_EXPORT const unsigned char OMSDKVersionString[];
// In this header, you should impor... | 151 |
1,719 | /*
* Copyright 2006-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... | 1,050 |
6,036 | <reponame>dennyac/onnxruntime<filename>onnxruntime/contrib_ops/cpu/maxpool_with_mask.cc
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "maxpool_with_mask.h"
namespace onnxruntime {
namespace contrib {
ONNX_CPU_OPERATOR_TYPED_MS_KERNEL(
MaxpoolWithMask,
... | 192 |
952 | package com.rudecrab.rbac.mapper;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Pa... | 361 |
574 | <reponame>joeranbosma/ModelsGenesis
#!/usr/bin/env python
# coding: utf-8
# In[1]:
from __future__ import print_function
import warnings
warnings.filterwarnings('ignore')
import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' # or any {'0', '1', '2'}
import keras
print("keras = {}".format(keras.__version__))
import ten... | 2,575 |
372 | /* Editor Settings: expandtabs and use 4 spaces for indentation
* ex: set softtabstop=4 tabstop=8 expandtab shiftwidth=4: *
* -*- mode: c, c-basic-offset: 4 -*- */
/*
* Copyright © BeyondTrust Software 2004 - 2019
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you m... | 2,786 |
11,396 | <filename>awx/main/migrations/0008_v320_drop_v1_credential_fields.py
# -*- coding: utf-8 -*-
# Python
from __future__ import unicode_literals
# Django
from django.db import migrations
from django.db import models
# AWX
import awx.main.fields
class Migration(migrations.Migration):
dependencies = [
('mai... | 2,107 |
1,071 | /*
* Copyright 2018- The Pixie 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 applicable law or ag... | 1,587 |
739 | package enchcracker;
public class NativeException extends RuntimeException {
private static final long serialVersionUID = 1L;
public NativeException(String desc) {
super(desc);
}
}
| 55 |
421 | <filename>samples/snippets/cpp/VS_Snippets_Data/Classic WebData XmlValidatingReader.GetAttribute Example/CPP/source.cpp
// <Snippet1>
#using <System.Xml.dll>
using namespace System;
using namespace System::IO;
using namespace System::Xml;
int main()
{
//Create the validating reader.
XmlTextRead... | 268 |
686 | <filename>pentest-tool/pentest/libs/cms.py
#!/usr/bin/env python
#-*- coding:utf-8 -*-
'''
Pentestdb, a database for penetration test.
Copyright (c) 2015 alpha1e0
========================================================
CMS 识别
'''
import os
import sys
import requests as http
from commons import Log
from commons im... | 1,734 |
348 | <filename>docs/data/leg-t2/065/06501253.json
{"nom":"Lamarque-Rustaing","circ":"1ère circonscription","dpt":"Hautes-Pyrénées","inscrits":49,"abs":19,"votants":30,"blancs":3,"nuls":0,"exp":27,"res":[{"nuance":"REM","nom":"<NAME>","voix":21},{"nuance":"FI","nom":"<NAME>","voix":6}]} | 119 |
401 | <filename>liteflow-core/src/main/java/com/yomahub/liteflow/property/LiteflowConfigGetter.java
package com.yomahub.liteflow.property;
import cn.hutool.core.util.ObjectUtil;
import com.yomahub.liteflow.util.SpringAware;
/**
* liteflow的配置获取器
*/
public class LiteflowConfigGetter {
public static LiteflowConfig get(... | 414 |
805 | <reponame>shuipi100/kaldi<filename>src/cudamatrix/cu-packed-matrix-test.cc
// cudamatrix/cu-packed-matrix-test.cc
//
// Copyright 2013 <NAME>
// <NAME>
// See ../../COPYING for clarification regarding multiple authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not... | 3,379 |
14,668 | <reponame>zealoussnow/chromium
// Copyright 2021 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 "ash/app_list/app_list_model_provider.h"
#include "base/check.h"
#include "base/check_op.h"
namespace ash {
nam... | 524 |
746 | # Copyright (c) OpenMMLab. All rights reserved.
from typing import Dict, Optional, Sequence
import numpy as np
import onnx
import pyppl.common as pplcommon
import pyppl.nn as pplnn
import torch
from mmdeploy.utils import Backend, parse_device_id
from mmdeploy.utils.timer import TimeCounter
from ..base import BACKEND_... | 1,728 |
880 | /**
* Copyright 2019 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 1,007 |
6,218 | {
"name": "graphite-selector",
"issue": "",
"data": [
"graphite-selector.bar.baz 1 {TIME_S-1m}",
"graphite-selector.xxx.yy 2 {TIME_S-1m}",
"graphite-selector.bb.cc 3 {TIME_S-1m}",
"graphite-selector.a.baz 4 {TIME_S-1m}"],
"query": ["/api/v1/query?query=sort({__graphite__='graphite-selector.*.ba... | 289 |
45,293 | {
"1": {
"neg": {
"2": [
{
"specVersion": "0.1-464",
"casesNumber": 1,
"description": "type context for a nested type declaration of a parent type declaration does not include the type parameters of PD",
"path": "compiler/tests-spec/testData/diagnostics/linked... | 1,825 |
442 | from os import environ
from loader import Loader
import actions
LOADER = Loader()
def lambda_handler(event, context):
status = LOADER.personalize_cli.delete_event_tracker(
eventTrackerArn=event['eventTrackerArn']
) | 80 |
692 | package com.hubspot.singularity.smtp;
import com.hubspot.singularity.ExtendedTaskState;
import com.hubspot.singularity.SingularityDisastersData;
import com.hubspot.singularity.SingularityRequest;
import com.hubspot.singularity.SingularityTask;
import com.hubspot.singularity.SingularityTaskHistory;
import com.hubspot.s... | 507 |
2,151 | // Copyright (c) 2010 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 JINGLE_NOTIFIER_LISTENER_XML_ELEMENT_UTIL_H_
#define JINGLE_NOTIFIER_LISTENER_XML_ELEMENT_UTIL_H_
#include <string>
namespace buzz {
class X... | 281 |
316 | #import <Cocoa/Cocoa.h>
/// Circular slider with an arrow pointing north.
@interface MGLCompassCell : NSSliderCell
@end
| 43 |
384 | from django.core.management.base import BaseCommand
from django.core.management.utils import get_random_secret_key
class Command(BaseCommand):
help = "Generates a new SECRET_KEY that can be used in a project settings file."
requires_system_checks = False
def handle(self, *args, **options):
retur... | 107 |
7,940 | #ifndef multi_path_sploit_h
#define multi_path_sploit_h
bool mptcp_go(void);
#endif
| 39 |
504 | <reponame>steakknife/pcgeos<filename>Tools/utils/mallint.h
/* @(#)mallint.h 1.1 86/09/24 SMI*/
/*
* Copyright (c) 1986 by Sun Microsystems, Inc.
*
* $Id: mallint.h,v 1.4 96/05/20 18:56:21 dbaumann Exp $
*/
/*
* file: mallint.h
* description:
*
* Definitions for malloc.c and friends (realloc.c, mem... | 1,398 |
16,461 | #import <Foundation/Foundation.h>
#import "ABI41_0_0REANode.h"
#import <ABI41_0_0React/ABI41_0_0RCTBridgeModule.h>
#import <ABI41_0_0React/ABI41_0_0RCTUIManager.h>
@class ABI41_0_0REAModule;
typedef void (^ABI41_0_0REAOnAnimationCallback)(CADisplayLink *displayLink);
typedef void (^ABI41_0_0REANativeAnimationOp)(ABI... | 1,460 |
619 | /*
* Author: <NAME> <<EMAIL>>
* Copyright (c) 2014-2016 Intel Corporation.
*
* This program and the accompanying materials are made available under the
* terms of the The MIT License which is available at
* https://opensource.org/licenses/MIT.
*
* SPDX-License-Identifier: MIT
*/
#include <unistd.h>
#include <... | 983 |
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 "device/bluetooth/test/bluetooth_test_win.h"
#include <windows.devices.bluetooth.h>
#include <wrl/client.h>
#include <wrl/implements.h>
#includ... | 7,898 |
333 | <gh_stars>100-1000
package com.alipay.api.response;
import java.util.List;
import com.alipay.api.internal.mapping.ApiField;
import com.alipay.api.internal.mapping.ApiListField;
import com.alipay.api.domain.CampBaseDto;
import com.alipay.api.AlipayResponse;
/**
* ALIPAY API: koubei.marketing.campaign.activ... | 463 |
1,816 | class Cache:
def __init__(self, application, store_config=None):
self.application = application
self.drivers = {}
self.store_config = store_config or {}
self.options = {}
def add_driver(self, name, driver):
self.drivers.update({name: driver})
def set_configuration(s... | 844 |
14,668 | // Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "net/dns/https_record_rdata.h"
#include <fuzzer/FuzzedDataProvider.h>
#include <stdint.h>
#include <memory>
#include <set>
#include <string>
#... | 1,053 |
362 | <gh_stars>100-1000
// Copyright (c) 2016, Baidu.com, Inc. All Rights Reserved
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#pragma once
#include "error_code.h"
#include "boost/noncopyable.hpp"
#include <stdio.h>
namespace baidu {
namespace galaxy {
namespace ... | 286 |
1,929 | """
Remove
------
:mod:`textacy.preprocessing.remove`: Remove aspects of raw text that may be unwanted
for certain use cases.
"""
from __future__ import annotations
import re
import unicodedata
from typing import Collection, Optional
from . import resources
from .. import utils
def accents(text: str, *, fast: bool... | 1,663 |
678 | //
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.
//
#import "NSObject.h"
@interface FunctionSwitchUtil : NSObject
{
}
+ (void)setVoipOnlyExtStatusSwitch:(unsigned int)arg1 statusBit:(unsigned int)arg2 setOpen:(_Bool)arg3 sync:(_Bool)arg4... | 336 |
2,542 | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#include "stdafx.h"
using nam... | 1,811 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-9cmq-xm5p-pqc3",
"modified": "2022-04-29T01:27:53Z",
"published": "2022-04-29T01:27:53Z",
"aliases": [
"CVE-2003-1323"
],
"details": "Elm ME+ 2.4 before PL109S, when installed setgid mail and the operating system lacks POSIX saved ID support, allows local users... | 356 |
1,232 | <filename>tree/Yu/236.py
# Time: O(n)
# Space: O(1)
#
# Given a binary tree, find the lowest common ancestor (LCA)
# of two given nodes in the tree.
#
# According to the definition of LCA on Wikipedia: “The lowest
# common ancestor is defined between two nodes v and w as the
# lowest node in T that has both v and w as... | 712 |
1,510 | <filename>exec/java-exec/src/main/java/org/apache/drill/exec/resourcemgr/config/selectionpolicy/QueueSelectionPolicyFactory.java
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* re... | 645 |
1,595 | <filename>graphistry/tests/test_pygraphistry.py
# -*- coding: utf-8 -*-
import unittest
from graphistry import PyGraphistry
#TODO mock requests for testing actual effectful code
class TestPyGraphistry_Auth(unittest.TestCase):
def test_defaults(self):
assert PyGraphistry.store_token_creds_in_memory() is ... | 238 |
853 | <reponame>blin00/tinyssh
#include "uint32_pack_big.h"
/*
The 'uint32_pack_big' function converts 32-bit unsigned
integer into 4 bytes stored in big-endian format
*/
void uint32_pack_big(unsigned char *y, crypto_uint32 x) {
long long i;
for (i = 3; i >= 0; --i) { y[i] = x; x >>= 8; }
}
| 120 |
4,339 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 2,213 |
944 | <gh_stars>100-1000
#include <torch/csrc/jit/passes/subgraph_rewrite.h>
#include "core/util/prelude.h"
namespace trtorch {
namespace core {
namespace lowering {
namespace passes {
void RemoveDropout(std::shared_ptr<torch::jit::Graph>& graph) {
std::string dropout_pattern = R"IR(
graph(%input, %4, %5):
... | 1,499 |
436 | <gh_stars>100-1000
package com.jdon.jivejdon.presentation.action.query;
import com.jdon.controller.WebAppUtil;
import com.jdon.controller.model.PageIterator;
import com.jdon.jivejdon.spi.component.mapreduce.ThreadApprovedNewList;
import com.jdon.jivejdon.spi.component.mapreduce.ThreadDigList;
import com.jdon.jivejdon.... | 939 |
1,056 | <filename>ide/editor.macros/src/org/netbeans/modules/editor/macros/MacroDialogSupport.java
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF ... | 9,574 |
15,577 | <filename>src/Dictionaries/DictionarySourceHelpers.cpp
#include "DictionarySourceHelpers.h"
#include <Columns/ColumnsNumber.h>
#include <Core/ColumnWithTypeAndName.h>
#include <DataTypes/DataTypesNumber.h>
#include <IO/WriteHelpers.h>
#include "DictionaryStructure.h"
#include <Interpreters/Context.h>
#include <Core/Set... | 1,457 |
563 | <filename>mdm/orientdb-api/src/main/java/com/gentics/mesh/core/data/dao/PermissionRoots.java<gh_stars>100-1000
package com.gentics.mesh.core.data.dao;
import com.gentics.mesh.core.data.HibBaseElement;
/**
* Contains global roots of every element type where permissions can be assigned to.
*/
public interface Permiss... | 312 |
7,892 | /**********************************************************************
Audacity: A Digital Audio Editor
EBUR128.h
<NAME>
***********************************************************************/
#ifndef __EBUR128_H__
#define __EBUR128_H__
#include "Biquad.h"
#include <memory>
#include "SampleFormat.h"
#include <... | 570 |
14,668 | // Copyright (c) 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.
//
// Helper for tests that want to fill in a NetworkServiceConfig
#include "jingle/glue/network_service_config_test_util.h"
#include <memory>
#inclu... | 1,755 |
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... | 9,039 |
1,738 | <gh_stars>1000+
#
# 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 lic... | 556 |
780 | <filename>src/main/java/com/codeborne/selenide/conditions/Hidden.java
package com.codeborne.selenide.conditions;
import com.codeborne.selenide.CheckResult;
import com.codeborne.selenide.Condition;
import com.codeborne.selenide.Driver;
import org.openqa.selenium.StaleElementReferenceException;
import org.openqa.seleniu... | 348 |
317 | /*
$Id$
*======================================================================
*
* DISCLAIMER
*
* This material was prepared as an account of work sponsored by an
* agency of the United States Government. Neither the United States
* Government nor the United States Department of Energy, nor Battelle,
* nor a... | 2,340 |
828 | <reponame>Mrliu8023/mongo-tools
{"indexes":[{"v":{"$numberInt":"2"},"key":{"_id":{"$numberInt":"1"}},"name":"_id_"},{"v":{"$numberInt":"2"},"key":{"expireAt":{"$numberInt":"1"}},"name":"TenantMigrationDonorTTLIndex","expireAfterSeconds":{"$numberInt":"0"}}],"uuid":"75a80fb546f8489e907e935188d3053c","collectionName":"te... | 130 |
605 | <gh_stars>100-1000
//===--- RenamingOperation.cpp - ------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===--------... | 1,357 |
6,433 | <filename>buildTools/win32-x64/gbdk/libc/_modslong.c<gh_stars>1000+
/*-------------------------------------------------------------------------
_modslong.c - routine for modulus of 32 bit signed long
Written By - <NAME> . <EMAIL> (1999)
This library is free software; you can redistribute it and/or... | 2,398 |
441 | // Copyright 2009-2020 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
#pragma once
namespace embree
{
/* 4-wide SSE float type */
template<>
struct vfloat<4>
{
ALIGNED_STRUCT_(16);
typedef vboolf4 Bool;
typedef vint4 Int;
typedef vfloat4 Float;
enum { size = 4 }; ... | 13,648 |
14,668 | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef PPAPI_PROXY_AUDIO_INPUT_RESOURCE_H_
#define PPAPI_PROXY_AUDIO_INPUT_RESOURCE_H_
#include <stddef.h>
#include <stdint.h>
#include <memory>
#... | 1,876 |
1,521 | <filename>interactive_engine/gaia-adaptor/src/main/java/com/alibaba/graphscope/gaia/vineyard/store/VineyardConfig.java<gh_stars>1000+
package com.alibaba.graphscope.gaia.vineyard.store;
import com.alibaba.graphscope.gaia.config.GaiaConfig;
import com.alibaba.graphscope.gaia.store.GraphType;
import com.alibaba.maxgraph... | 625 |
1,293 | package manifold.templates.misc;
import manifold.rt.api.DisableStringLiteralTemplates;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class WhitespaceTest
{
@Test
public void testForNewLines()
{
assertEquals( "This is a ManTL (Manifold Template Language) file.\n" +
... | 1,204 |
17,337 | <gh_stars>1000+
#include <stdlib.h>
#include <string.h>
#include "vrclient_private.h"
#include "vrclient_defs.h"
#include "openvr_v0.9.4/openvr.h"
using namespace vr;
extern "C" {
#include "struct_converters.h"
#pragma pack(push, 8)
struct winRenderModel_TextureMap_t_094 {
uint16_t unWidth;
uint16_t unHeight;
... | 3,001 |
3,651 | <filename>core/src/main/java/com/orientechnologies/orient/core/sql/parser/OLimit.java
/* Generated By:JJTree: Do not edit this line. OLimit.java Version 4.3 */
/* JavaCCOptions:MULTI=true,NODE_USES_PARSER=false,VISITOR=true,TRACK_TOKENS=true,NODE_PREFIX=O,NODE_EXTENDS=,NODE_FACTORY=,SUPPORT_CLASS_VISIBILITY_PUBLIC=true... | 1,179 |
2,372 | //
// 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 the following disclaimer.
// * Redistributions in bin... | 1,288 |
782 | <gh_stars>100-1000
// Copyright (c) 2018 Intel Corporation
//
// 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 restriction, including without limitation the rights
// to use, copy, ... | 8,165 |
348 | <reponame>chamberone/Leaflet.PixiOverlay
{"nom":"<NAME>","circ":"5ème circonscription","dpt":"Isère","inscrits":2454,"abs":1577,"votants":877,"blancs":91,"nuls":16,"exp":770,"res":[{"nuance":"REM","nom":"<NAME>","voix":502},{"nuance":"LR","nom":"<NAME>","voix":268}]} | 109 |
2,648 | # Copyright 2018 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://www.apache.org/licenses/LICENSE-2.0
#
# or in the "license... | 4,098 |
56,632 | //*********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
// PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
... | 10,280 |
5,169 | {
"name": "MGRenterActionCenter",
"version": "0.0.2",
"license": "MIT License",
"summary": "MGRenterActionCenter",
"description": "MGRenterActionCenterMGRenterActionCenter",
"homepage": "https://github.com/mgzf/MGRenterActionCenter",
"authors": {
"Harly": "<EMAIL>"
},
"source": {
"git": "https... | 258 |
1,347 | <reponame>fserracant/mmskeleton<filename>mmskeleton/models/skeleton_head/__init__.py
from .simplehead import SimpleSkeletonHead | 42 |
5,912 | <gh_stars>1000+
# Intentionally empty
| 14 |
3,427 | /*
* Licensed to GraphHopper GmbH under one or more contributor
* license agreements. See the NOTICE file distributed with this work for
* additional information regarding copyright ownership.
*
* GraphHopper GmbH licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not ... | 6,992 |
1,470 | <reponame>oberblastmeister/comby
int depth_0() {}
| 20 |
766 | import itertools
import numpy as np
from . import common
class Interpolator:
def __init__(self, resolution=1024, width=128):
self.width = width
self.resolution = resolution
N = resolution * width
u = np.arange(-N, N, dtype=float)
window = np.cos(0.5 * np.pi * u / N) **... | 1,416 |
433 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package org.redkale.convert.bson;
import java.io.Serializable;
import java.lang.reflect.Type;
import java.util.*;
import jav... | 3,329 |
303 | <gh_stars>100-1000
{"id":78885,"line-1":"Dobrich","line-2":"Bulgaria","attribution":"©2016 CNES / Astrium, DigitalGlobe","url":"https://www.google.com/maps/@43.574564,28.154902,17z/data=!3m1!1e3"} | 86 |
816 | <gh_stars>100-1000
package com.jxtech.jbo.virtual;
import java.io.OutputStream;
import java.sql.Connection;
import java.util.List;
import java.util.Map;
import com.jxtech.jbo.BaseJboSet;
import com.jxtech.jbo.JboIFace;
import com.jxtech.jbo.base.JxUserInfo;
import com.jxtech.jbo.util.JxException;
/**
* 虚拟JboSet,不会进... | 1,840 |
1,880 | // Copyright 2016 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... | 792 |
4,071 | /* Copyright (C) 2016-2018 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 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 ... | 1,006 |
675 | /**********************************************************************
Copyright (c) 2016 Advanced Micro Devices, Inc. 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... | 1,761 |
1,144 | <reponame>dram/metasfresh
package de.metas.ui.web.process.view;
import java.lang.reflect.Method;
import org.adempiere.exceptions.AdempiereException;
import com.google.common.collect.ImmutableList;
import de.metas.i18n.ITranslatableString;
import de.metas.process.ProcessPreconditionsResolution;
import de.metas.proce... | 2,022 |
1,538 | // Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... | 1,548 |
1,013 | """!
@brief Pyclustering package that is used to exchange between python core and 'ccore'.
@authors <NAME> (<EMAIL>)
@date 2014-2020
@copyright BSD-3-Clause
"""
from ctypes import *
import collections.abc
import numpy
class pyclustering_package(Structure):
"""!
@brief pyclustering... | 5,124 |
14,668 | <gh_stars>1000+
// Copyright 2014 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 "ui/ozone/platform/headless/headless_window_manager.h"
namespace ui {
HeadlessWindowManager::HeadlessWindowManager() = default;... | 302 |
780 | <gh_stars>100-1000
from r2.lib import amqp, baseplate_integration, websockets
from reddit_place.controllers import get_activity_count, ActivityError
@baseplate_integration.with_root_span("job.place_activity")
def broadcast_activity():
try:
activity = get_activity_count()
websockets.send_broadcast... | 263 |
1,006 | /****************************************************************************
* sched/init/init.h
*
* 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... | 1,018 |
544 | import numpy as np
import cv2
import matplotlib.pyplot as plt
import torch
from tqdm import tqdm
from pathlib import Path
import os
import warnings
warnings.filterwarnings('ignore')
os.environ['CUDA_VISIBLE_DEVICES'] = "0"
openpose_dir = Path('./src/PoseEstimation/')
save_dir = Path('./data/target/')
save_dir.mkdir(... | 1,489 |
758 | <reponame>benjo456/django-admin-honeypot
#!/usr/bin/env python
import sys
from admin_honeypot import __version__, __description__, __license__
try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup, find_packages
setup(
name='django-admin-honeypot',
versi... | 579 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.