max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
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 ... | 3,735 |
570 | <reponame>langston-barrett/souffle
/*
* Souffle - A Datalog Compiler
* Copyright (c) 2021, The Souffle Developers. All rights reserved
* Licensed under the Universal Permissive License v 1.0 as shown at:
* - https://opensource.org/licenses/UPL
* - <souffle root>/licenses/SOUFFLE-UPL.txt
*/
/*********************... | 1,612 |
6,034 | package cn.iocoder.mall.system.biz.dao.sms;
import cn.iocoder.mall.system.biz.dataobject.sms.SmsTemplateDO;
import cn.iocoder.mall.system.biz.dto.smsTemplate.ListSmsTemplateDTO;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomid... | 731 |
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.
#ifndef CHROME_ELF_THIRD_PARTY_DLLS_LOGS_H_
#define CHROME_ELF_THIRD_PARTY_DLLS_LOGS_H_
#include <windows.h>
#include <stdint.h>
#inclu... | 499 |
390 | //
// POP3ClientSession.h
//
// $Id: //poco/1.4/Net/include/Poco/Net/POP3ClientSession.h#1 $
//
// Library: Net
// Package: Mail
// Module: POP3ClientSession
//
// Definition of the POP3ClientSession class.
//
// Copyright (c) 2005-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// Permiss... | 2,101 |
3,372 | <filename>aws-java-sdk-fsx/src/main/java/com/amazonaws/services/fsx/AbstractAmazonFSxAsync.java
/*
* Copyright 2016-2021 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 ... | 4,836 |
1,041 | package org.querytest;
import io.ebean.DB;
import org.example.domain.Customer;
import org.example.domain.Order;
import org.example.domain.OrderDetail;
import org.example.domain.Product;
import org.junit.jupiter.api.Test;
import java.util.List;
import static org.assertj.core.api.Assertions.assertThat;
public class F... | 738 |
325 | //
// HJTabViewControllerPlugin_Base.h
// HJTabViewControllerDemo
//
// Created by haijiao on 2017/3/14.
// Copyright © 2017年 olinone. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
@class HJTabViewController;
/*
Subclasses can implement as necessary. The default is a nop.
*/
... | 325 |
370 | /** @file compactor.h
* @brief Compact a database, or merge and compact several.
*/
/* Copyright (C) 2003,2004,2005,2006,2007,2008,2009,2010,2011,2013,2014,2015,2018 <NAME>
* Copyright (C) 2008 Lemur Consulting Ltd
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of th... | 1,117 |
11,719 | <reponame>asm-jaime/facerec<gh_stars>1000+
from dlib import find_max_global, find_min_global
import dlib
from pytest import raises
from math import sin,cos,pi,exp,sqrt,pow
def test_global_optimization_nargs():
w0 = find_max_global(lambda *args: sum(args), [0, 0, 0], [1, 1, 1], 10)
w1 = find_min_global(lambda ... | 1,185 |
3,083 | // Copyright 2011-2016 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | 2,082 |
1,425 | /*
* 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 ... | 703 |
2,094 | ////////////////////////////////////////////////////////////////////////////////////////////////////
//
// Project: Embedded Learning Library (ELL)
// File: CompilableCodeNode_test.cpp (model)
// Authors: <NAME>
//
////////////////////////////////////////////////////////////////////////////////////////////////... | 1,986 |
411 | import java.io.FileNotFoundException;
import java.io.PrintStream;
class Foo {
public static char[] value = { ' ', ' ', 'a' , ' ' };
}
class TestStr {
public static String s = "Hello world";
public static int main (int x) {
s = "foo";
return s.length();
}
public static int append (in... | 260 |
1,174 | package com.github.devnied.emvnfccard.utils.reflect;
public class ReflectionTestUtils {
public static <T> T invokeMethod(Class<?> targetClass, String name, Object... args) {
return invokeMethod(null, targetClass, name, args);
}
public static <T> T invokeMethod( Object targetObject, String name,
... | 837 |
2,406 | <filename>inference-engine/tests/functional/plugin/conformance/test_runner/conformance_infra/include/conformance.hpp<gh_stars>1000+
// Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
namespace ConformanceTests {
extern const char* targetDevice;
extern const char* targetPluginName;
... | 140 |
1,056 | <reponame>timfel/netbeans
package test9;
public class CCTest9bii {
public static void main(String[] args) {
CCTest9a e; //Check that CCTest9a is in the CC
}
}
| 97 |
882 | package water.api;
import water.Boot;
public class StaticHTMLPage extends HTMLOnlyRequest {
private final String _html;
private final String _href;
public StaticHTMLPage(String file, String href) {
_href = href;
_html = Boot._init.loadContent(file);
}
@Override protected String build(Response respon... | 128 |
2,693 | import fastNLP as FN
import argparse
import os
import random
import numpy
import torch
def get_argparser():
parser = argparse.ArgumentParser()
parser.add_argument('--lr', type=float, required=True)
parser.add_argument('--w_decay', type=float, required=True)
parser.add_argument('--lr_decay', type=float... | 1,966 |
2,890 | package com.github.ltsopensource.spring.quartz;
import com.github.ltsopensource.core.domain.Action;
import com.github.ltsopensource.core.domain.Job;
import com.github.ltsopensource.tasktracker.Result;
import com.github.ltsopensource.tasktracker.runner.JobContext;
import com.github.ltsopensource.tasktracker.runner.JobR... | 533 |
789 | package io.advantageous.qbit.meta.swagger;
public class Employee {
Phone phone;
String name;
int age;
long iq;
byte byteA;
Byte byteB;
byte[] byteC;
Byte[] byteD;
float floatA;
Float floatB;
double dA;
Double dB;
}
| 119 |
693 | <filename>solo/losses/simclr.py
# Copyright 2021 solo-learn development 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 ... | 778 |
8,273 | # Copyright 2010 <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 required by applicable law or agreed to in writin... | 1,171 |
892 | <filename>advisories/unreviewed/2022/05/GHSA-2v5j-pf93-x5xr/GHSA-2v5j-pf93-x5xr.json
{
"schema_version": "1.2.0",
"id": "GHSA-2v5j-pf93-x5xr",
"modified": "2022-05-01T01:56:48Z",
"published": "2022-05-01T01:56:48Z",
"aliases": [
"CVE-2005-1247"
],
"details": "webadmin.exe in Novell Nsure Audit 1.0.1 a... | 598 |
739 | # This is the gtk-dependent __pyjamas__ module.
# In javascript this module is not needed, any imports of this module
# are removed by the translator.
""" This module interfaces between PyWebkitGTK and the Pyjamas API,
to get applications kick-started.
"""
import sys
from traceback import print_stack
main_frame =... | 759 |
334 | // Auto generated code, do not modify
package nxt.http.callers;
import nxt.http.APICall;
public class GetDGSPurchasesCall extends APICall.Builder<GetDGSPurchasesCall> {
private GetDGSPurchasesCall() {
super(ApiSpec.getDGSPurchases);
}
public static GetDGSPurchasesCall create() {
return ne... | 522 |
1,392 | <gh_stars>1000+
from collections import defaultdict
from ...core.models import EventPayload
from ...webhook.models import WebhookEvent
from ..core.dataloaders import DataLoader
class PayloadByIdLoader(DataLoader):
context_key = "payload_by_id"
def batch_load(self, keys):
payload = EventPayload.objec... | 379 |
2,151 | <gh_stars>1000+
// 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.
#ifndef CHROME_BROWSER_ANDROID_CHROME_BACKUP_WATCHER_H_
#define CHROME_BROWSER_ANDROID_CHROME_BACKUP_WATCHER_H_
#include <jni.h>
#includ... | 339 |
1,510 | /*
* 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 ... | 538 |
1,392 | package io.fabric8.maven.docker.access;
import com.google.gson.JsonObject;
public class NetworkCreateConfig {
final JsonObject createConfig = new JsonObject();
final String name;
public NetworkCreateConfig(String name) {
this.name = name;
createConfig.addProperty("Name", name);
}
... | 225 |
1,194 | <filename>hapi-fhir-jpaserver-cql/src/test/resources/r4/provider/test-executable-value-set.json
{
"resourceType": "ValueSet",
"id": "test-executable-value-set",
"meta" : {
"profile" : [
"http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-executablevalueset"
]
},
"url": "http://test.com/fhir/ValueSet/test-... | 626 |
2,073 | /**
* 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,096 |
862 | <filename>lock-api/src/test/java/com/palantir/lock/LockDescriptorTest.java
/*
* (c) Copyright 2018 Palantir Technologies Inc. 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 Li... | 1,570 |
953 | /*
* This file is part of Dependency-Track.
*
* 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 ... | 548 |
49,076 | /*
* Copyright 2002-2020 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... | 806 |
480 | <gh_stars>100-1000
#ifndef MLIBC_FILE_WINDOW
#define MLIBC_FILE_WINDOW
#include <abi-bits/abi.h>
#include <mlibc/allocator.hpp>
#include <mlibc/debug.hpp>
#include <mlibc/internal-sysdeps.hpp>
#include <internal-config.h>
struct file_window {
file_window(const char *path) {
int fd;
if(mlibc::sys_open("/etc/local... | 778 |
303 | # test slices; only 2 argument version supported by Micro Python at the moment
x = list(range(10))
a = 2
b = 4
c = 3
print(x[:])
print(x[::])
#print(x[::c])
print(x[:b])
print(x[:b:])
#print(x[:b:c])
print(x[a])
print(x[a:])
print(x[a::])
#print(x[a::c])
print(x[a:b])
print(x[a:b:])
#print(x[a:b:c])
# these should not... | 176 |
2,035 | <reponame>HyunSangHan/egjs-flicking
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"baseUrl": "./",
"outDir": "./out-tsc/spec",
"skipLibCheck": true,
"strict": false,
"jsx": "react-jsx",
"jsxImportSource": "preact",
"experimentalDecorators": true,
"paths": {
"@common/... | 318 |
581 | /*
* Copyright (c) 2002-2022 Gargoyle Software 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
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... | 7,209 |
458 | <filename>tests/python/open_data/glm/test_logistic.py<gh_stars>100-1000
import h2o4gpu
import sklearn
from sklearn.datasets import load_breast_cancer
from sklearn.model_selection import train_test_split
from sklearn import linear_model
from sklearn.metrics import accuracy_score
import numpy as np
def test_not_labels(... | 423 |
890 | <reponame>shahzadlone/vireo<gh_stars>100-1000
/*
* MIT License
*
* Copyright (c) 2017 Twitter
*
* 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 l... | 4,625 |
1,144 | /* SPDX-License-Identifier: GPL-2.0+ */
/*
* Copyright (C) 2012 Samsung Electronics
*
* Author: <NAME> <<EMAIL>>
* Author: <NAME> <<EMAIL>>
*/
#ifndef __ASM_ARM_ARCH_DSIM_H_
#define __ASM_ARM_ARCH_DSIM_H_
#ifndef __ASSEMBLY__
struct exynos_mipi_dsim {
unsigned int status;
unsigned int swrst;
unsigned int clk... | 2,551 |
671 | <reponame>mantvydasb/token-priv
#include "poptoke.h"
void
se_backup_priv_reg()
{
HKEY handle;
if (!RegCreateKeyExA(HKEY_LOCAL_MACHINE,
"SAM",
0,
NULL,
REG_OPTION_BACKUP_RESTORE,
KEY_SET_VALUE,
NULL,
&handle,
NULL) == ERROR_SUCCESS)
{
printf("[-] Failed to open reg; %d\n", GetLastError());
return... | 613 |
4,262 | /*
* 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,412 |
1,093 | /*
* Copyright 2017-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,402 |
627 | <reponame>junaruga/EmbeddedController
/* Copyright 2020 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
/* Mock of Device Policy Manager implementation */
#ifndef __MOCK_USB_PD_DPM_MOCK_H
#define __MOCK_USB_PD_DPM... | 233 |
450 | <reponame>ericoporto/ags-old
/***************************************************************************/
/* */
/* ftccmap.c */
/* ... | 6,513 |
914 | <filename>src/main/java/com/google/devrel/gmscore/tools/apk/arsc/XmlNamespaceChunk.java
package com.google.devrel.gmscore.tools.apk.arsc;
import java.io.DataOutput;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.util.Locale;
import javax.annotation.Nullable;
/** Represents the start/end of a name... | 595 |
668 | <gh_stars>100-1000
package com.tal.wangxiao.conan.common.model.query;
import com.tal.wangxiao.conan.common.entity.db.ScheduleExecution;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.data.jpa.domain.Specification;
import javax.persistence.criteria.Predicate;
im... | 420 |
649 | <filename>serenity-core/src/main/java/net/thucydides/core/webdriver/capabilities/W3CCapabilities.java
package net.thucydides.core.webdriver.capabilities;
import net.serenitybdd.core.environment.EnvironmentSpecificConfiguration;
import net.thucydides.core.util.EnvironmentVariables;
import net.thucydides.core.webdriver.... | 925 |
440 | <gh_stars>100-1000
/*========================== begin_copyright_notice ============================
Copyright (C) 2017-2021 Intel Corporation
SPDX-License-Identifier: MIT
============================= end_copyright_notice ===========================*/
#ifndef TARGET_GENXGOTOJOIN_H
#define TARGET_GENXGOTOJOIN_H
nam... | 652 |
578 | <gh_stars>100-1000
"""
skfuzzy.filters : Subpackage for filtering data, e.g. with Fuzzy Inference by
Else-action (FIRE) filters to denoise 1d or 2d data.
"""
__all__ = ['fire1d',
'fire2d']
from .fire import fire1d, fire2d
| 101 |
511 | <filename>framework/src/media/PlayerWorker.h<gh_stars>100-1000
/* ****************************************************************
*
* Copyright 2018 Samsung Electronics All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with th... | 368 |
777 | <reponame>google-ar/chromium<filename>components/startup_metric_utils/browser/startup_metric_utils.h
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_STARTUP_METRIC_UTILS_BROWSER_START... | 1,238 |
4,879 | <filename>coding/coding_tests/varint_test.cpp
#include "coding/varint.hpp"
#include "testing/testing.hpp"
#include "coding/byte_stream.hpp"
#include "base/macros.hpp"
#include "base/stl_helpers.hpp"
#include <vector>
using namespace std;
namespace
{
template <typename T> void TestVarUint(T const x)
{
vecto... | 2,269 |
45,293 | public final class C /* C*/ implements Base {
public C();// .ctor()
public void foo();// foo()
} | 34 |
348 | <gh_stars>100-1000
{"nom":"Bourguignon-sous-Coucy","dpt":"Aisne","inscrits":68,"abs":14,"votants":54,"blancs":7,"nuls":2,"exp":45,"res":[{"panneau":"2","voix":31},{"panneau":"1","voix":14}]} | 86 |
4,098 | <filename>Source/ThirdParty/ik/include/ik/solver_FABRIK.h
#ifndef IK_SOLVER_FABRIK_H
#define IK_SOLVER_FABRIK_H
#include "ik/config.h"
#include "ik/ordered_vector.h"
#include "ik/solver.h"
C_HEADER_BEGIN
struct fabrik_t
{
SOLVER_DATA_HEAD
};
int
solver_FABRIK_construct(ik_solver_t* solver);
void
solver_FABRIK_... | 222 |
435 | <gh_stars>100-1000
{
"copyright_text": null,
"description": "Dashboards are useful tools for data professionals from all levels and within different industries. From analysts who want to showcase the insights they have uncovered to researchers wanting to explain the results of their experiments, or developers wanti... | 468 |
537 | package com.zx.sms.codec.cmpp.msg;
/**
*
* @author Lihuanghe(<EMAIL>)
*/
public class DefaultHeader implements Header {
private static final long serialVersionUID = -3059342529838994125L;
private long headLength;
private long packetLength;
private long bodyLength;
private int commandId;
private ... | 679 |
669 | // Copyright (c) Facebook, Inc. and its affiliates.
#pragma once
#include <boost/functional/hash.hpp>
#include <mutex>
#include <optional>
#include <unordered_map>
#include <vector>
#include "event.h"
#include "types.h"
// BlockMap is a subset of the GameState which handles the chunk map. Generally,
// it is a map o... | 993 |
7,409 | <gh_stars>1000+
from datetime import datetime, timedelta, timezone
from unittest.mock import patch
import pytest
from posthog.async_migrations.definition import AsyncMigrationOperation
from posthog.async_migrations.test.util import create_async_migration
from posthog.async_migrations.utils import (
complete_migra... | 1,109 |
762 | <filename>tests/misc/test_crowding_distance.py
import os
import numpy as np
import pytest
from pymoo.algorithms.moo.nsga2 import calc_crowding_distance
from pymoo.config import get_pymoo
@pytest.mark.skip(reason="check if this is supposed to work or not at all")
def test_crowding_distance():
D = np.loadtxt(os.p... | 568 |
645 | <filename>tony-core/src/main/java/com/linkedin/tony/rpc/GetTaskInfosRequest.java<gh_stars>100-1000
/**
* Copyright 2018 LinkedIn Corporation. All rights reserved. Licensed under the BSD-2 Clause license.
* See LICENSE in the project root for license information.
*/
package com.linkedin.tony.rpc;
public interface Ge... | 104 |
6,140 | <reponame>laurenzberger/training-data-analyst
import argparse
import json
import os
from babyweight.trainer import model
import tensorflow as tf
if __name__ == "__main__":
parser = argparse.ArgumentParser()
parser.add_argument(
"--job-dir",
help="this model ignores this field, but it is requi... | 1,127 |
1,006 | <gh_stars>1000+
/****************************************************************************
* sched/timer/timer_initialize.c
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regard... | 1,223 |
1,707 | <gh_stars>1000+
#pragma once
//------------------------------------------------------------------------------
/**
@class Oryol::_priv::osxInputMgr
@ingroup _priv
@brief input manager wrapper for OSX without GLFW
*/
#include "Input/private/inputMgrBase.h"
namespace Oryol {
namespace _priv {
class osxInputM... | 486 |
657 | {
"desc": "Set the profile information for a user.",
"args": {
"user": {
"type": "user",
"required": false,
"example": "W1234567890",
"desc": "User to retrieve profile info for"
},
"name": {
"required": false,
"example": "first_name",
"desc": "Name... | 517 |
348 | <reponame>chamberone/Leaflet.PixiOverlay
{"nom":"Moulins","circ":"5ème circonscription","dpt":"Ille-et-Vilaine","inscrits":536,"abs":328,"votants":208,"blancs":11,"nuls":1,"exp":196,"res":[{"nuance":"REM","nom":"Mme <NAME>","voix":109},{"nuance":"LR","nom":"Mme <NAME>","voix":87}]} | 117 |
359 | <reponame>tavianator/bistring
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT license.
from ._alignment import *
from ._bistr import *
from ._builder import *
from ._token import *
| 63 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-34qx-f7ff-w7xc",
"modified": "2022-05-13T01:22:49Z",
"published": "2022-05-13T01:22:49Z",
"aliases": [
"CVE-2019-7300"
],
"details": "Artica Proxy 3.06.200056 allows remote attackers to execute arbitrary commands as root by reading the ressources/settings.inc l... | 508 |
5,169 | <reponame>Gantios/Specs
{
"name": "OptionMenu",
"version": "2.0.2",
"summary": "An option menu contains more than a style and theme (Material Bottom Sheet, PopOver, Horizontal) to view in iOS.",
"description": "It integrates with material design style and other styles to be easily configured for viewing as suit... | 364 |
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.automation.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.annotation.JsonFlatten;
import com.azure.core.... | 2,008 |
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.
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from cdm.objectmodel import CdmAttributeContext, CdmObject
from cdm.enums import Cdm... | 420 |
584 | /**
* Basic support for creating custom Spring namespaces and JavaConfig.
*/
@org.springframework.lang.NonNullApi
package org.springframework.data.config;
| 42 |
1,103 | # -*- coding: utf-8 -*-
from datetime import datetime
from elasticsearch_dsl import connections
from kafka import KafkaProducer
from fooltrader.api.computing import *
from fooltrader.api.event import *
from fooltrader.api.fundamental import *
from fooltrader.api.technical import *
from fooltrader.api.technical impor... | 1,690 |
1,056 | <reponame>timfel/netbeans
/*
* 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.... | 1,257 |
12,278 | <gh_stars>1000+
// Boost.Geometry (aka GGL, Generic Geometry Library)
// Unit Test
// Copyright (c) 2015, Oracle and/or its affiliates.
// Contributed and/or modified by <NAME>, on behalf of Oracle
// Contributed and/or modified by <NAME>, on behalf of Oracle
// Licensed under the Boost Software License version 1.0.... | 1,682 |
325 | // SPDX-License-Identifier: BSD-3-Clause
//
// Copyright(c) 2020 Intel Corporation. All rights reserved.
//
// Author: <NAME> <<EMAIL>>
#include <sof/common.h>
#include <sof/audio/audio_stream.h>
#include <sof/audio/tdfb/tdfb_comp.h>
#include <user/fir.h>
#include <user/tdfb.h>
#if TDFB_GENERIC
#include <sof/math/fi... | 2,414 |
56,632 | <reponame>thisisgopalmandal/opencv<filename>3rdparty/libjasper/jpc_t1cod.c
/*
* Copyright (c) 1999-2000 Image Power, Inc. and the University of
* British Columbia.
* Copyright (c) 2001-2003 <NAME>.
* All rights reserved.
*/
/* __START_OF_JASPER_LICENSE__
*
* JasPer License Version 2.0
*
* Copyright (c) 2001... | 6,891 |
340 | /* Auto-generated by genfincode_stat.sh - DO NOT EDIT! */
#if !defined(_rtpp_stream_fin_h)
#define _rtpp_stream_fin_h
#if !defined(RTPP_AUTOTRAP)
#define RTPP_AUTOTRAP() abort()
#else
extern int _naborts;
#endif
void rtpp_stream_fin(struct rtpp_stream *);
#if defined(RTPP_FINTEST)
void rtpp_stream_fintest(void);
#endif... | 158 |
311 | #!/usr/bin/env python
# encoding: utf-8
'''
@author: LoRexxar
@contact: <EMAIL>
@file: threadingpool.py
@time: 2020/4/7 14:30
@desc:
'''
import time
import threading
import traceback
from LSpider.settings import THREADPOOL_MAX_THREAD_NUM
from utils.log import logger
class ThreadPool:
"""
造一个线程池轮子
"""
... | 1,095 |
809 | <reponame>orangeyts/lenskit
/*
* LensKit, an open-source toolkit for recommender systems.
* Copyright 2014-2017 LensKit contributors (see CONTRIBUTORS.md)
* Copyright 2010-2014 Regents of the University of Minnesota
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this softwar... | 2,204 |
426 | <reponame>AlexVlk/ifcplusplus
/* Code generated by IfcQuery EXPRESS generator, www.ifcquery.com */
#pragma once
#include <vector>
#include <map>
#include <sstream>
#include <string>
#include "ifcpp/model/GlobalDefines.h"
#include "ifcpp/model/BasicTypes.h"
#include "ifcpp/model/BuildingObject.h"
// TYPE If... | 600 |
675 | <reponame>johndpope/echo
/*
* Copyright(c) Live2D Inc. All rights reserved.
*
* Use of this source code is governed by the Live2D Proprietary Software license
* that can be found at http://live2d.com/eula/live2d-proprietary-software-license-agreement_en.html.
*/
#ifndef LIVE2D_CUBISM_CORE_H
#define LIVE2D_CUBIS... | 4,652 |
2,542 | <filename>src/prod/src/Hosting2/ConfigureSecurityPrincipalReply.cpp<gh_stars>1000+
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ---------... | 452 |
318 | <filename>presentation/src/main/java/com/crazysunj/crazydaily/view/dialog/CrazyDailyAlertDialog.java
/*
Copyright 2017 <NAME>
<p>
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
<p>
htt... | 3,517 |
329 | <reponame>Duiesel/python-jsonschema-objects
import pytest
import python_jsonschema_objects as pjo
def test_simple_array_oneOf():
basicSchemaDefn = {
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Test",
"properties": {
"SimpleArrayOfNumberOrString": {"$ref": "#... | 491 |
1,002 | <filename>winrt/test.internal/mocks/MockCoreApplication.h<gh_stars>1000+
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// Licensed under the MIT License. See LICENSE.txt in the project root for license information.
#pragma once
namespace canvas
{
using namespace ABI::Windows::Foundation::Collect... | 1,041 |
692 | /************************************************************
This example shows how to recursively traverse a file
using H5Ovisit and H5Lvisit. The program prints all of
the objects in the file specified in FILE, then prints all
of the links in that file. The default file used by this
example implements t... | 1,380 |
303 | {"id":69960,"line-1":"Villeneuve-Loubet","line-2":"France","attribution":"©2016 DigitalGlobe","url":"https://www.google.com/maps/@43.626557,7.132338,17z/data=!3m1!1e3"} | 70 |
742 | // Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// 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 re... | 515 |
4,640 | <filename>python/tvm/contrib/hexagon/_ci_env_check.py
# 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... | 659 |
577 | <reponame>StefanPenndorf/FluentLenium
package org.fluentlenium.pages;
import static org.assertj.core.api.Assertions.assertThat;
import org.fluentlenium.core.FluentPage;
import org.fluentlenium.test.IntegrationFluentTest;
public class Page2 extends FluentPage {
@Override
public String getUrl() {
retu... | 183 |
2,151 | <gh_stars>1000+
// 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.
#include "net/third_party/quic/http/decoder/payload_decoders/quic_http_headers_payload_decoder.h"
#include <stddef.h>
#include <cstdint>... | 2,727 |
1,682 | <reponame>haroldl/rest.li
/*
Copyright (c) 2017 LinkedIn Corp.
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 a... | 3,540 |
575 | <reponame>sarang-apps/darshan_browser<filename>third_party/blink/renderer/modules/mediacapturefromelement/html_audio_element_capturer_source.cc
// 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 "... | 1,633 |
14,668 | <reponame>zealoussnow/chromium<filename>components/account_manager_core/chromeos/account_manager_unittest.cc
// 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 "components/account_manager_core/chr... | 10,112 |
879 | <filename>plugin/loadBalancer/src/main/java/org/zstack/network/service/lb/APIUpdateLoadBalancerListenerEvent.java<gh_stars>100-1000
package org.zstack.network.service.lb;
import org.zstack.header.message.APIEvent;
import org.zstack.header.rest.RestResponse;
/**
* Created by camile on 5/19/2017.
*/
@RestResponse(all... | 505 |
11,010 | /*
* Copyright (C) 2008 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,517 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.