max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
696 | <reponame>hwang-pku/Strata<filename>modules/product/src/test/java/com/opengamma/strata/product/common/BuySellTest.java
/*
* Copyright (C) 2015 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.strata.product.common;
import static com.... | 1,840 |
423 | <gh_stars>100-1000
#include <functorch/csrc/Interpreter.h>
#include <functorch/csrc/BatchedTensorImpl.h>
#include <functorch/csrc/TensorWrapper.h>
#include <functorch/csrc/VmapInterpreter.h>
#include <functorch/csrc/FunctionalizeInterpreter.h>
#include <functorch/csrc/ADInterpreters.h>
namespace at { namespace functor... | 1,578 |
346 | import json
import logging
import os
import shutil
from joblib import Parallel, delayed
from selenium.webdriver import Chrome
from .CompanyScraper import CompanyScraper
from .ConnectionScraper import ConnectionScraper
from .ProfileScraper import ProfileScraper
from .utils import HEADLESS_OPTIONS, split_lists
logger ... | 828 |
1,519 | <reponame>newjunwei/llvm-tutor
//=============================================================================
// FILE:
// MergeBB.cpp
//
// DESCRIPTION:
// Merges identical basic blocks into one. As an example, consider the CFG
// below. After the transformation, BB1 is merged into BB2.
// ----------------------... | 4,644 |
9,680 | <filename>test/vso_tools/build_wheel.py
from _common import build_wheel
build_wheel()
| 30 |
2,177 | /**
* 对于mapList的处理
*/
package org.nutz.mapl; | 27 |
72,551 | <filename>test/ScanDependencies/Inputs/CHeaders/H.h
#if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 110000
#include "I.h"
#endif
void funcH(void);
| 67 |
2,151 | /*
* Copyright (C) 2015 The Android Open Source Project
*
* 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 app... | 5,163 |
799 | <gh_stars>100-1000
JOB_TEMPLATE_LAUNCH_RES = {
"id": 1,
"type": "job",
"url": "/api/example",
"created": "2020-12-29T14:38:47.792496Z",
"modified": "2020-12-29T14:38:47.889460Z",
"name": "<NAME>",
"description": "",
"job_type": "run",
"inventory": 1,
"project": 4,
"playbook":... | 1,938 |
665 | <reponame>mldbai/mldb
/*************************************************************************
(c) Copyright 2003
<NAME>
adapted from SVDPACKC, which is
(c) Copyright 1993
University of T... | 25,899 |
448 | <reponame>Liorba/iceberg
/*
* Copyright 2018 Hortonworks
*
* 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 appli... | 1,555 |
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 <algorithm>
#include "base/bind.h"
#include "base/callback.h"
#include "base/memory/raw_ptr.h"
#include "components/cbor/values.h"
#include "dev... | 2,637 |
12,278 | <filename>3rdParty/boost/1.71.0/libs/math/test/test_autodiff_5.cpp<gh_stars>1000+
// Copyright <NAME> 2018 - 2019.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// https://www.boost.org/LICENSE_1_0.txt)
#include "test_autodif... | 2,246 |
310 | # Find the frequency of all-number hashids within 1_000_000 encodes for default settings
from multiprocessing import Pool, cpu_count
import hashids
import hashlib
procs = cpu_count()
num_tests = 1_000
num_iterations = 1_000_000
def find_frequency(i):
salt = hashlib.md5(bytes(i)).hexdigest()
print("Finding f... | 357 |
4,812 | <gh_stars>1000+
//===-- YAMLRemarkParser.h - Parser for YAML remarks ------------*- C++/-*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===-----------... | 1,416 |
2,921 | <filename>blockchains/smartchain/assets/0x4354a4F710182966E55EA30CFa807FA1b821a67b/info.json<gh_stars>1000+
{
"name": "<NAME>",
"type": "BEP20",
"symbol": "Foxy",
"decimals": 9,
"website": "https://foxynft.org/",
"description": "Foxy Equilibrium is an experimental, play to earn NFT game on the B... | 264 |
409 |
namespace xlang::param
{
struct hstring
{
hstring() noexcept : m_handle(nullptr) {}
hstring(hstring const& values) = delete;
hstring& operator=(hstring const& values) = delete;
hstring(std::nullptr_t) = delete;
~hstring() noexcept
{
xlang_delete_stri... | 1,956 |
480 | <gh_stars>100-1000
/*
* Copyright [2013-2021], 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
*
* Unl... | 1,223 |
4,767 | package com.roncoo.pay.trade.bo;
import javax.validation.constraints.Digits;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.math.BigDecimal;
/**
* 用户主扫请求Bo
*/
public class ScanPayRequestBo implements Serializable {
@Size(min = 16... | 2,550 |
1,382 | <filename>examples/firdespm_callback_example.c
//
// firdespm_callback_example.c
//
// This example demonstrates finite impulse response filter design
// using the Parks-McClellan algorithm with callback function for
// arbitrary response and weighting function.
//
// SEE ALSO: firdes_kaiser_example.c
#include <stdio.... | 1,499 |
523 | package io.github.droidkaigi.confsched2017.viewmodel;
import com.android.databinding.library.baseAdapters.BR;
import android.databinding.BaseObservable;
import android.databinding.Bindable;
import javax.inject.Inject;
import io.github.droidkaigi.confsched2017.di.scope.ActivityScope;
@ActivityScope
public class Too... | 274 |
1,233 | <reponame>calvin681/mantis<gh_stars>1000+
/*
* Copyright 2019 Netflix, 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
*
* Unl... | 3,022 |
2,472 | // Copyright (C) 2020 THL A29 Limited, a Tencent company. All rights reserved.
// Please refer to the license text that comes with this tendis open source
// project for additional information.
#ifdef _WIN32
#include <stdlib.h>
#include <assert.h>
#include <time.h>
#include <unistd.h>
#include <windows.h>
#include <W... | 686 |
348 | <filename>docs/data/leg-t2/054/05404147.json
{"nom":"Crion","circ":"4ème circonscription","dpt":"Meurthe-et-Moselle","inscrits":84,"abs":30,"votants":54,"blancs":7,"nuls":1,"exp":46,"res":[{"nuance":"LR","nom":"<NAME>","voix":28},{"nuance":"REM","nom":"<NAME>","voix":18}]} | 116 |
722 | //MIT License
//
//Copyright (c) 2019 <NAME>
//
//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, modify, merge, pub... | 5,080 |
619 | /*
* Author: <NAME> <<EMAIL>>
* Copyright (c) 2014 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 <iostream>
#include <signa... | 391 |
1,177 | {
"blurb": "Given an age in seconds, calculate how old someone is in terms of a given planet's solar years.",
"authors": [],
"contributors": [
"abhijitparida",
"behrtam",
"cmccandless",
"crsmi",
"Dog",
"gabriel376",
"gabriellhrn",
"ikhadykin",
"kytrinyx",
"lowks",
"N-Pa... | 322 |
414 | //
// RCDChatViewController.h
// RCloudMessage
//
// Created by Liv on 15/3/13.
// Copyright (c) 2015年 RongCloud. All rights reserved.
//
#import <RongIMKit/RongIMKit.h>
@interface RCDChatViewController : RCConversationViewController
@property (nonatomic, assign) BOOL needPopToRootView;
@end
| 106 |
1,755 | /*=========================================================================
Program: Visualization Toolkit
Module: TestPBRAnisotropy.cxx
Copyright (c) <NAME>, <NAME>, <NAME>
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed WI... | 1,834 |
442 | package domain;
/**
* 复杂一点的书
* @author JingQ at 2019-06-05
*/
public class ComplexBook extends BaseBook {
private String tag;
public ComplexBook() {}
public ComplexBook(String name, String tag) {
setName(name);
this.tag = tag;
}
@Override
public String getName() {
return super.getName() == null ? "C... | 171 |
381 | <reponame>jsalinaspolo/JGiven
package com.tngtech.jgiven.impl.inject;
import static java.util.stream.Collectors.toList;
import com.google.common.collect.Maps;
import com.tngtech.jgiven.annotation.ExpectedScenarioState;
import com.tngtech.jgiven.annotation.ProvidedScenarioState;
import com.tngtech.jgiven.annotation.Sc... | 2,892 |
575 | <filename>content/browser/appcache/appcache.cc
// 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.
#include "content/browser/appcache/appcache.h"
#include <stddef.h>
#include <algorithm>
#include <vec... | 4,376 |
491 | /**
*
* This is to be included only from ragged_ops.h.
*
* Copyright 2020 Xiaomi Corporation (authors: <NAME>
* <NAME>)
* Mobvoi Inc. (authors: <NAME>)
*
* See LICENSE for clarification regarding multiple authors
*
* Licensed ... | 648 |
600 | //-----------------------------------------------------------------------------
// File: XBUtil.h
//
// Desc: Shortcut macros and helper functions for the XBox samples
//
// Hist: 11.01.00 - New for November XDK release
// 12.01.00 - Moved input code to XBInput.cpp
// 12.15.00 - Changes for December XDK rel... | 3,496 |
1,144 | package de.metas.handlingunits.attribute.strategy.impl;
/*
* #%L
* de.metas.handlingunits.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, ... | 669 |
320 | <gh_stars>100-1000
#include "util.h"
std::string version_to_str(DWORD version)
{
BYTE *chunks = (BYTE*)&version;
std::stringstream stream;
stream << std::hex <<
(int)chunks[3] << "." <<
(int)chunks[2] << "." <<
(int)chunks[1] << "." <<
(int)chunks[0];
return stream.str(... | 589 |
2,151 | // Copyright (c) 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_TEST_CHROMEDRIVER_LOGGING_H_
#define CHROME_TEST_CHROMEDRIVER_LOGGING_H_
#include <memory>
#include <string>
#include <vector>
#inclu... | 1,085 |
3,494 | /*
Copyright (c) 2010, The Cinder Project (http://libcinder.org)
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 lis... | 702 |
640 | <gh_stars>100-1000
/*--------------------------------------------
《加密与解密(第四版)》
(c) 看雪学院 www.kanxue.com 2000-2018
----------------------------------------------*/
//mod1.cpp
#include "stdafx.h"
int _tmain(int argc, _TCHAR* argv[]) {
long long nNum;
scanf("%ld", &nNum);
printf("%d\r\n", argc % 3);
printf... | 176 |
335 | {
"word": "Misspelling",
"definitions": [
"An incorrect spelling of a word."
],
"parts-of-speech": "Noun"
} | 59 |
1,664 | <reponame>likenamehaojie/Apache-Ambari-ZH
/**
* 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 Li... | 568 |
1,812 | <reponame>1006079161/qpdf
#ifndef PL_AES_PDF_HH
#define PL_AES_PDF_HH
#include <qpdf/Pipeline.hh>
#include <qpdf/QPDFCryptoImpl.hh>
#include <memory>
// This pipeline implements AES-128 and AES-256 with CBC and block
// padding as specified in the PDF specification.
class Pl_AES_PDF: public Pipeline
{
public:
... | 713 |
605 | // RUN: %clang_cc1 -triple x86_64-linux-gnu -fsyntax-only -verify -fexceptions -fcxx-exceptions %s -std=c++14
// expected-error@+2 {{attribute 'target_clones' multiversioned functions do not yet support function templates}}
template<typename T, typename U>
int __attribute__((target_clones("sse4.2", "default"))) foo()... | 193 |
1,078 | <reponame>anael-seghezzi/CToy
#ifndef AL_UINTMAP_H
#define AL_UINTMAP_H
#include "AL/al.h"
#include "rwlock.h"
typedef struct UIntMap {
struct {
ALuint key;
ALvoid *value;
} *array;
ALsizei size;
ALsizei maxsize;
ALsizei limit;
RWLock lock;
} UIntMap;
extern UIntMap TlsDestruct... | 374 |
4,095 | <gh_stars>1000+
/**
* Core package for Redis Command Interface support through {@link io.lettuce.core.dynamic.RedisCommandFactory}.
*/
package io.lettuce.core.dynamic;
| 53 |
530 | /*******************************************************************************
* Copyright 2014 <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/... | 1,040 |
1,821 | <filename>util-benchmark/src/main/scala/com/twitter/json/TestFormat.java
package com.twitter.json;
public enum TestFormat {
json,
csv,
tsv;
}
| 57 |
1,350 | <reponame>Shashi-rk/azure-sdk-for-java
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.datafactory.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.util.l... | 2,336 |
1,144 | /******************************************************************************
* Product: Adempiere ERP & CRM Smart Business Solution *
* Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. *
* This program is free software, you can redistribute it and/or modify it *
... | 14,342 |
321 | <gh_stars>100-1000
#include "curl_http_form.h"
#include "curl/curl.h"
//#include <zlib.h>
namespace network {
CurlHttpForm::CurlHttpForm()
: formpost_(nullptr),
lastptr_(nullptr) {
}
CurlHttpForm::~CurlHttpForm() {
if (formpost_) {
curl_formfree(formpost_);
}
}
void CurlHttpForm::AddFileSection(const ... | 523 |
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.
// ------------------------------------------------------------
#pragma once
namespace Manage... | 588 |
518 | {
"name": "Mandrill",
"category": "Marketing & Analytics",
"start_url": "https://mandrillapp.com/login/",
"icons": [
{
"src": "https://cdn.filestackcontent.com/8K0tiOfDRCyMSbudXkUk",
"platform": "browserx"
}
],
"theme_color": "#C02439",
"scope": "https://mandrillapp.com",
"bx_legacy_... | 154 |
2,291 | <filename>issues/osmdroid_issue328.json
{
"id" : 328,
"status" : "Fixed",
"summary" : "Make MapView \"all arguments\" constructor public or protected",
"labels" : [ "Type-Enhancement", "Priority-Medium" ],
"stars" : 0,
"commentCount" : 4,
"comments" : [ {
"id" : 0,
"commenterId" : -847334526984765... | 769 |
436 | /*
*
* Copyright (C) 2020 iQIYI (www.iqiyi.com)
*
* 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 ... | 1,529 |
354 | <reponame>VetalDev/VK-GL-CTS
/* WARNING: This is auto-generated file. Do not modify, since changes will
* be lost! Modify the generating script instead.
*/
void getCoreDeviceExtensionsImpl (uint32_t coreVersion, ::std::vector<const char*>& dst)
{
if (coreVersion >= VK_API_VERSION_1_2)
{
dst.push_back("VK_KHR_sam... | 1,212 |
922 | <gh_stars>100-1000
//
// AppController.h
// Web2PDF Server
//
// Created by Jürgen on 13.09.06.
// Copyright 2006 Cultured Code.
// License: Creative Commons Attribution 2.5 License
// http://creativecommons.org/licenses/by/2.5/
//
#import <Cocoa/Cocoa.h>
@class GCDWebServer;
@interface WebServerContr... | 186 |
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... | 6,197 |
1,171 | <gh_stars>1000+
#
# Copyright (c) 2020 Idiap Research Institute, http://www.idiap.ch/
# Written by <NAME> <<EMAIL>>,
# <NAME> <<EMAIL>>
#
import os
from os import getenv
import unittest
import numpy as np
import torch
from torch.nn.init import normal_
from fast_transformers.aggregate import aggregate, broadcast
fro... | 8,858 |
459 | /**
* Copyright 2015-2017 DataStax, 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 agree... | 4,002 |
3,301 | package com.alibaba.alink.common.pyrunner.bridge;
import com.alibaba.alink.common.pyrunner.bridge.BasePythonBridge;
import com.alibaba.alink.common.pyrunner.bridge.DedicatedPythonBridge;
import com.alibaba.alink.common.pyrunner.bridge.SharedPythonBridge;
import com.alibaba.alink.common.pyrunner.PyMainHandle;
import co... | 456 |
735 | import torch
from torch import nn, einsum
import torch.nn.functional as F
from einops import rearrange, repeat
from perceiver_pytorch.perceiver_pytorch import exists, default, cache_fn, fourier_encode, PreNorm, FeedForward, Attention
# latent mixer
def Mixer(seq_len, mult = 4, dropout = 0.):
return nn.Sequentia... | 1,775 |
1,168 | /**
* The MIT License
* Copyright © 2010 JmxTrans team
*
* 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, mo... | 456 |
10,225 | package io.quarkus.it.rest;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
@Path("/envelope")
public class EnvelopeClassResource {
@Path("/payload")
@GET
@Produces("application/json")
public EnvelopeClass<PayloadClass> payloadClass() {
return new EnvelopeClass<>... | 147 |
4,716 | #!/usr/bin/env python3
import os
import sys
import json
import socket
import socketserver
from http import server
from pprint import pprint
from argparse import ArgumentParser
import typing as tp
RENDERERS: tp.List[tp.Callable] = []
def renderer(f):
"""Adds decorated function to renderers list."""
RENDERERS.... | 1,640 |
2,151 | <reponame>zipated/src<filename>services/resource_coordinator/resource_coordinator_service_unittest.cc
// 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.
#include <memory>
#include "base/macros.h"
#include... | 1,352 |
3,287 | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | 2,848 |
837 | <filename>src/ompl/base/samplers/informed/src/OrderedInfSampler.cpp<gh_stars>100-1000
/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2014, University of Toronto
* All rights reserved.
*
* Redistribution and use in source and binary ... | 2,670 |
529 | /* pmeth_lib.c */
/* Written by Dr <NAME> (<EMAIL>) for the OpenSSL
* project 2006.
*/
/* ====================================================================
* Copyright (c) 2006 The OpenSSL Project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modificati... | 6,913 |
2,151 | // Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_UI_DESKTOP_IOS_PROMOTION_SMS_SERVICE_H_
#define CHROME_BROWSER_UI_DESKTOP_IOS_PROMOTION_SMS_SERVICE_H_
#include <stddef.h>
#inclu... | 1,234 |
1,091 | /*
* Copyright (c) 2015-2020, Oracle and/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.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
... | 732 |
1,004 | <gh_stars>1000+
import asyncio
import inspect
import sys
def is_double_callable(application):
"""
Tests to see if an application is a legacy-style (double-callable) application.
"""
# Look for a hint on the object first
if getattr(application, "_asgi_single_callable", False):
return False
... | 722 |
462 | <reponame>kfischer-okarin/mamba<gh_stars>100-1000
from mamba import description, before, it, context
from expects import expect, be_none, be_a, be_true, be_false
from doublex import Spy
from mamba import reporter, runnable
from spec.object_mother import *
with description('Errors in hooks') as self:
with before.... | 2,094 |
852 | //
// File name: CMSDarkPairProduction
//
// Author: <NAME> (<EMAIL>)
// <NAME> (<EMAIL>)
// Creation date: 01.22.2015
// -------------------------------------------------------------------
//
#ifndef SimG4Core_CustomPhysics_CMSDarkPairProduction_h
#define SimG4Core_CustomPhysics_CMSDarkPairPr... | 580 |
322 | #if !defined(DUK_REPLACEMENTS_H_INCLUDED)
#define DUK_REPLACEMENTS_H_INCLUDED
#if !defined(DUK_SINGLE_FILE)
#if defined(DUK_USE_COMPUTED_INFINITY)
DUK_INTERNAL_DECL double duk_computed_infinity;
#endif
#if defined(DUK_USE_COMPUTED_NAN)
DUK_INTERNAL_DECL double duk_computed_nan;
#endif
#endif /* !DUK_SINGLE_FILE */
#... | 382 |
1,039 | /* SPDX-License-Identifier: MIT
*
* 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,
* modify, merge, publish, ... | 4,571 |
1,716 | /*
* Copyright 2013 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 ... | 4,151 |
4,216 | /**
* @file silhouette_score.hpp
* @author <NAME>
*
* The Silhouette metric.
*
* mlpack is free software; you may redistribute it and/or modify it under the
* terms of the 3-clause BSD license. You should have received a copy of the
* 3-clause BSD license along with mlpack. If not, see
* http://www.opensourc... | 1,425 |
575 | <gh_stars>100-1000
//
// DemoAlertView.h
// DJISdkDemo
//
// Copyright © 2015 DJI. All rights reserved.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
extern void ShowResult(NSString * format, ...);
typedef void (^DemoAlertViewActionBlock)(NSUInteger buttonIndex);
typedef void (^DemoAlertInputViewA... | 394 |
1,962 | <gh_stars>1000+
package com.bolingcavalry.service.impl;
import com.bolingcavalry.service.ConsumeModeService;
import com.bolingcavalry.service.OrderEvent;
import com.lmax.disruptor.EventTranslatorOneArg;
import lombok.extern.slf4j.Slf4j;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework... | 4,364 |
482 | package io.cattle.platform.iaas.api.auth.identity;
import io.cattle.platform.api.auth.Identity;
import io.cattle.platform.api.auth.Policy;
import io.cattle.platform.api.pubsub.manager.SubscribeManager;
import io.cattle.platform.archaius.util.ArchaiusUtil;
import io.cattle.platform.core.dao.AccountDao;
import io.cattle... | 3,066 |
345 | <gh_stars>100-1000
# Copyright (c) 2017-2020, <NAME> <<EMAIL>>
# All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
"""MPSSE command debug tracer."""
#pylint: disable-msg=missing-docstring
#pylint: disable-msg=too-many-instance-attributes
from binascii import hexlify
from collections import deque
from in... | 8,866 |
1,303 | <reponame>miusuncle/TBase
/*
* Tencent is pleased to support the open source community by making TBase available.
*
* Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved.
*
* TBase is licensed under the BSD 3-Clause License, except for the third-party component listed below.
*
* A c... | 4,622 |
341 |
#include "cpp-utilities/time_code.h"
#include <iostream>
#include <cstdio>
int main() {
constexpr int Count = 10;
using ms = std::chrono::microseconds;
auto time1 = time_code<ms, Count>([]() {
printf("Hello World\n");
});
std::cerr << "printf(\"Hello World\\n\") x 10, Took: " << time1.count() << " \xC2\xB5... | 228 |
427 | // RUN: %clang_cc1 -fsyntax-only -verify -ftemplate-backtrace-limit 2 %s
//
// FIXME: Disable this test when Clang was built with ASan, because ASan
// increases our per-frame stack usage enough that this test no longer fits
// within our normal stack space allocation.
// REQUIRES: not_asan
template<int N, typename T>... | 237 |
419 | <reponame>bt3ze/pcflib<filename>betteryao/OTExtension/util/Miracl/dssign.cpp
/*
* Digital Signature Algorithm (DSA)
*
* See Communications ACM July 1992, Vol. 35 No. 7
* This new standard for digital signatures has been proposed by
* the American National Institute of Standards and Technology (NIST)
* ... | 1,082 |
15,577 | <reponame>pdv-ru/ClickHouse<gh_stars>1000+
#pragma once
#include <Parsers/IParserBase.h>
namespace DB
{
/// Parses data type as ASTFunction
/// Examples: Int8, Array(Nullable(FixedString(16))), DOUBLE PRECISION, Nested(UInt32 CounterID, FixedString(2) UserAgentMajor)
class ParserDataType : public IParserBase
{
prote... | 164 |
567 | //
// Copyright 2020 BigQuery Utils
//
// 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... | 907 |
655 | <gh_stars>100-1000
import tensorflow as tf
class Add2DCell(tf.contrib.rnn.RNNCell):
"""Gated Recurrent Unit cell (cf. http://arxiv.org/abs/1406.1078)."""
def __init__(self, num_units, channels):
self._num_units = num_units
self._channels = channels
@property
def state_size(self):
... | 316 |
348 | {"nom":"Flaux","circ":"6ème circonscription","dpt":"Gard","inscrits":286,"abs":141,"votants":145,"blancs":18,"nuls":1,"exp":126,"res":[{"nuance":"REM","nom":"<NAME>","voix":71},{"nuance":"FN","nom":"<NAME>","voix":55}]} | 87 |
2,215 | <gh_stars>1000+
#
# Copyright (c) 2022 salesforce.com, inc.
# All rights reserved.
# SPDX-License-Identifier: BSD-3-Clause
# For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause
#
"""
Deep autoencoding Gaussian mixture model for anomaly detection (DAGMM)
"""
impor... | 6,978 |
190,993 | <reponame>EricRemmerswaal/tensorflow
# Copyright 2020 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICEN... | 1,024 |
1,564 | <filename>extensions/protobuf/src/main/java/org/modelmapper/protobuf/primitive/IntConverters.java<gh_stars>1000+
/*
* Copyright 2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may ... | 1,356 |
2,617 | <gh_stars>1000+
// Workaround to include D3D10.h with VS2003
#ifndef __out
#define __out
#endif
#ifndef __in
#define __in
#endif
#ifndef __inout
#define __inout
#endif
#ifndef __in_opt
#define __in_opt
#endif
#ifndef __out_opt
#define __out_opt
#endif
#ifndef __inout_opt
#define __inout_opt
#endif
#i... | 421 |
2,373 | <gh_stars>1000+
{
"use": "sig",
"kty": "EC",
"kid": "<KEY>",
"crv": "P-256",
"alg": "ES256",
"x": "JtPSvIKayHsCHobDnNWtOdoroh-MDwK<KEY>",
"y": "tP7xR5rpu6azzZsozdmzouyVByuTUDYSSAELTOAtu7g"
} | 126 |
1,350 | <filename>sdk/deploymentmanager/azure-resourcemanager-deploymentmanager/src/main/java/com/azure/resourcemanager/deploymentmanager/models/RestHealthCheckStepAttributes.java
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Gen... | 1,003 |
313 | <gh_stars>100-1000
//
// JSRequestTools.h
// JSLoadMoreServiceDemo
//
// Created by 乔同新 on 2017/8/7.
// Copyright © 2017年 乔同新. All rights reserved.
// Github: https://github.com/Josin22/JSLoadMoreService
#import <Foundation/Foundation.h>
@class RACSignal,JSFileConfig;
typedef NS_ENUM(NSInteger, RequestType) {
... | 827 |
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.net.http;
import java.lang.annotation.*;
import static java.lang.annotation.ElementType.METHOD;
import st... | 1,310 |
9,729 | {"commands":{"count":0,"time":0},"getmore":{"count":0,"time":0},"insert":{"count":0,"time":0},"queries":{"count":1,"time":23},"readLock":{"count":1,"time":23},"remove":{"count":0,"time":0},"total":{"count":1,"time":23},"update":{"count":0,"time":0},"writeLock":{"count":0,"time":0}}
| 97 |
3,386 | <filename>src/formats/ods.c<gh_stars>1000+
/*******************************************************************************
* Copyright (c) 2013-2021, <NAME> <<EMAIL>> *
* All rights reserved. *
* ... | 5,281 |
14,668 | // 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.
#ifndef ASH_PUBLIC_CPP_TAB_CLUSTER_TAB_CLUSTER_UI_CONTROLLER_H_
#define ASH_PUBLIC_CPP_TAB_CLUSTER_TAB_CLUSTER_UI_CONTROLLER_H_
#include <memory>
#inclu... | 677 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.