max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
427 | <reponame>TheXPerienceProject/android_external_compiler-rt
// RUN: %clang_esan_wset -O0 %s -o %t 2>&1
// RUN: %run %t 2>&1 | FileCheck %s
#include <stdlib.h>
#include <string.h>
#include <sys/mman.h>
#include <assert.h>
const int size = 0x1 << 25; // 523288 cache lines
const int line_size = 64;
int main(int argc, ch... | 447 |
1,510 | <reponame>sdgdsffdsfff/CRN<gh_stars>1000+
/*
* Copyright Ctrip.
*
* 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 require... | 392 |
529 | <gh_stars>100-1000
package com.esotericsoftware.yamlbeans.tokenizer;
import com.esotericsoftware.yamlbeans.tokenizer.Tokenizer.TokenizerException;
import org.junit.Test;
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.Iterato... | 3,286 |
2,313 | <filename>tests/test_multigpu.py
# Copyright 2021 The HuggingFace Team. 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... | 1,249 |
348 | <gh_stars>100-1000
{"nom":"Saint-Jean-de-Soudain","circ":"10ème circonscription","dpt":"Isère","inscrits":1082,"abs":622,"votants":460,"blancs":44,"nuls":10,"exp":406,"res":[{"nuance":"REM","nom":"<NAME>","voix":244},{"nuance":"FN","nom":"<NAME>","voix":162}]} | 105 |
2,906 | """Programmatic data set slicing: SF creation, monitoring utilities, and representation learning for slices."""
from .apply.core import PandasSFApplier, SFApplier # noqa: F401
from .modules.slice_combiner import SliceCombinerModule # noqa: F401
from .monitor import slice_dataframe # noqa: F401
from .sf.core import ... | 154 |
1,460 | <filename>src/include/qmdnsengine/record.h
/*
* The MIT License (MIT)
*
* Copyright (c) 2017 <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 wit... | 2,279 |
5,411 | #include <StdInc.h>
#if __has_include("NativeHandlerLogging.h") && defined(ENABLE_NATIVE_HANDLER_LOGGING)
#include <HttpClient.h>
#include <NativeHandlerLogging.h>
#include <Resource.h>
#include <ResourceManager.h>
#include <unordered_map>
#include <unordered_set>
#include <json.hpp>
static std::unordered_map<std:... | 998 |
9,491 | #!/usr/bin/env python3
# pyre-strict
import os
import subprocess
import sys
from typing import List
def arg_extract(args: List[str], arg: str) -> str:
index = args.index(arg)
value = args.pop(index + 1)
del args[index]
return value
if __name__ == "__main__":
# Parsing the arguments is not strai... | 1,587 |
11,356 | // Protocol Buffers - Google's data interchange format
// Copyright 2008 Google Inc. All rights reserved.
// https://developers.google.com/protocol-buffers/
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// ... | 1,642 |
2,757 | <gh_stars>1000+
/** @file
Header file for FSP-M Arch Config PPI for Dispatch mode
Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials are licensed and made available under
the terms and conditions of the BSD License which accompanies this distribut... | 639 |
363 | <gh_stars>100-1000
#!/usr/bin/env python
"""
Author(s): <NAME>
See LICENCE.txt for licensing and contact information.
"""
__all__ = ['dummy']
class Dummy(object):
def __getattr__(self, name):
def wrapper(*args, **kwargs):
pass
return wrapper
dummy = Dummy()
class Minimal(object):
... | 163 |
302 | ////////////////////////////////////////////////////////////////////////////////////////////////////
// This file is part of CosmoScout VR //
// and may be used under the terms of the MIT license. See the LICENSE file for details. //
// ... | 4,494 |
5,267 | <gh_stars>1000+
package io.swagger.v3.jaxrs2.petstore;
/**
* An Empty PetResource Class
*/
public class EmptyPetResource {
}
| 47 |
931 | <reponame>jahnvisrivastava100/CompetitiveProgrammingQuestionBank<gh_stars>100-1000
/*
Find a pair difference k using Two Pointer method.
input
6
2 7 10 15 57 246
47
output
10 57
We need to find the pair of numbers from the array such that their absolute difference is equal
to a particular number k. The time comple... | 452 |
818 | /*
GRT MIT License
Copyright (c) <2012> <<NAME>, Media Lab, 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, mo... | 7,667 |
1,337 | /*
* Copyright (c) 2008-2016 Haulmont.
*
* 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 agr... | 1,280 |
1,474 | <reponame>billzhonggz/Transfer-Learning-Library
__all__ = ['generalization']
__version__ = '0.3' | 35 |
495 | // Copyright (c) 2019-2021 Dr. <NAME> and <NAME>
// Please see LICENSE for license or visit https://github.com/taocpp/json/
#include <cstdio>
#include <iostream>
#include <tao/json.hpp>
namespace tao::json::events
{
struct printf_doubles
: public to_stream
{
using to_stream::to_stream;
void ... | 600 |
1,338 | <reponame>Kirishikesan/haiku
/*
* Copyright 2011, <NAME>, <EMAIL>.
* Distributed under the terms of the MIT License.
*/
#ifndef OLD_UNPACKING_NODE_ATTRIBUTES_H
#define OLD_UNPACKING_NODE_ATTRIBUTES_H
#include "NodeListener.h"
class PackageNode;
class OldUnpackingNodeAttributes : public OldNodeAttributes {
publ... | 258 |
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.... | 14,231 |
344 | <gh_stars>100-1000
package com.clickhouse.jdbc;
import java.util.Collection;
import java.util.Iterator;
import com.clickhouse.client.ClickHouseConfig;
import com.clickhouse.client.ClickHouseParameterizedQuery;
import com.clickhouse.client.ClickHouseUtils;
import com.clickhouse.client.ClickHouseValues;
/**
* A param... | 2,499 |
313 | <reponame>msilvey/grapl<filename>src/python/grapl_analyzerlib/tests/test_query_gen.py<gh_stars>100-1000
import unittest
import pytest
import hypothesis
from grapl_analyzerlib.prelude import GraphClient
from grapl_analyzerlib.nodes.lens import LensView, LensQuery
@pytest.mark.integration_test
class TestQueryGen(unitt... | 404 |
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.ai.anomalydetector.models;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
/** Defines ... | 516 |
679 | <filename>main/cosv/inc/cosv/datetime.hxx
/**************************************************************
*
* 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 owne... | 732 |
468 | import hyperjson
def test_docs():
assert hyperjson.dumps([{"key": "value"}, 81, True]
) == '[{"key":"value"},81,true]'
assert hyperjson.loads("""[{"key": "value"}, 81, true]""") == [
{u'key': u'value'}, 81, True]
| 119 |
1,336 | <reponame>ltp217/servicecomb-java-chassis
/*
* 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... | 1,744 |
925 | <gh_stars>100-1000
#include "theme.h"
using std::vector;
using std::string;
template<>
Finite<TitleWhen>::ValueList Finite<TitleWhen>::values = ValueListPlain {
{ TitleWhen::always, "always" },
{ TitleWhen::never, "never" },
{ TitleWhen::one_tab, "one_tab" },
{ TitleWhen::multiple_tabs, "multiple_tabs... | 2,973 |
1,418 | package aima.core.util;
import java.util.Iterator;
/**
* Java has standard interface for implementing iterators. The "foreach"
* construction makes it easy to loop over objects that provide the
* java.lang.Iterable interface. However Java does not have generators built
* into the language. This means that even a ... | 510 |
1,100 | <reponame>WelsonAA/Intro-to-Java-Programming
/*********************************************************************************
* (Geometry: two circles intersect?) Write a program that enables the user to *
* specify the location and size of the circles and displays whether the two *
* circles intersect, as sh... | 2,827 |
365 | <reponame>ThyeeZz/towhee
# Copyright 2021 Zilliz. 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
#
# Unless required b... | 1,037 |
686 | /* BSD 3-Clause License
*
* Copyright © 2008-2021, Jice and the libtcod contributors.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the ... | 1,550 |
482 | package io.cattle.platform.docker.machine.launch;
import io.cattle.platform.archaius.util.ArchaiusUtil;
import io.cattle.platform.core.model.Credential;
import io.cattle.platform.hazelcast.membership.ClusterService;
import io.cattle.platform.lock.definition.LockDefinition;
import io.cattle.platform.server.context.Serv... | 713 |
488 | #
# Author: <NAME>
#
# Copyright (c) 2018 Adobe Systems Incorporated. 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
#
# U... | 1,269 |
473 | #include "io.h"
int main(void)
{
long long rs, rt, ach, acl;
long long result, resulth, resultl;
rs = 0x00FFBBAA;
rt = 0x4B231000;
resulth = 0x4b0f01;
resultl = 0x71f8a000;
__asm
("multu $ac1, %2, %3\n\t"
"mfhi %0, $ac1\n\t"
"mflo %1, $ac1\n\t"
: "=r"(a... | 300 |
632 | /************************************************************************
Modifications Copyright 2017-2019 eBay Inc.
Author/Developer(s): <NAME>
Original Copyright:
See URL: https://github.com/datatechnology/cornerstone
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except ... | 1,178 |
355 | /*
* JBoss, Home of Professional Open Source
* Copyright 2019, Red Hat and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Les... | 882 |
335 | /*
* StreamEncoderSettings.h
* -----------------------
* Purpose: Exporting streamed music files.
* Notes : none
* Authors: <NAME>
* OpenMPT Devs
* The OpenMPT source code is released under the BSD license. Read LICENSE for more details.
*/
#pragma once
#include "openmpt/all/BuildSettings.hpp"
#inc... | 1,176 |
825 | <reponame>jiangkang/Hummer
//
// HMRecycleListViewListLayout.h
// Hummer
//
// Copyright © 2019年 didi. All rights reserved.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface HMRecycleListViewListLayout : UICollectionViewLayout
//默认垂直
@property (nonatomic) UICollectionViewScrollDirection scrollDirecti... | 233 |
2,100 | <reponame>isabella232/gapid
// Copyright (C) 2018 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 b... | 877 |
6,098 | <reponame>kernelrich/h2o-3<filename>h2o-genmodel-extensions/xgboost/src/main/java/hex/genmodel/algos/xgboost/OneHotEncoderFactory.java
package hex.genmodel.algos.xgboost;
import biz.k11i.xgboost.util.FVec;
import hex.genmodel.GenModel;
import java.io.Serializable;
class OneHotEncoderFactory implements Serializable {... | 1,606 |
634 | /*
* Copyright 2000-2014 JetBrains s.r.o.
*
* 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 agre... | 1,806 |
394 | <gh_stars>100-1000
/*
* Copyright (c) 2016, WSO2 Inc. (http://wso2.com) 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-... | 3,594 |
5,823 | <reponame>luoyibu/engine<filename>shell/platform/linux/fl_plugin_registrar_test.cc
// Copyright 2013 The Flutter 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 <gtk/gtk.h>
// Included first as it collides with the X11 head... | 502 |
391 | import numpy as np
import numba
from numbers import Integral
from itertools import zip_longest
from collections.abc import Iterable
from .._slicing import normalize_index
from .convert import convert_to_flat, uncompress_dimension, is_sorted
def getitem(x, key):
"""
GCXS arrays are stored by transposing and re... | 4,770 |
319 | //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
// Copyright (c) 2016-21, Lawrence Livermore National Security, LLC
// and RAJA project contributors. See the RAJA/LICENSE file for details.
//
// SPDX-License-Identifier: (BSD-3-Clause)
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~... | 1,015 |
1,808 | <gh_stars>1000+
// Local-Hyperion includes
#include "LedDevicePhilipsHue.h"
#include <ssdp/SSDPDiscover.h>
#include <utils/QStringUtils.h>
#include <chrono>
// Constants
namespace {
bool verbose = false;
// Configuration settings
const char CONFIG_HOST[] = "host";
const char CONFIG_PORT[] = "port";
const char CONF... | 18,477 |
852 | import FWCore.ParameterSet.Config as cms
process = cms.Process("TEST")
process.MessageLogger = cms.Service("MessageLogger",
cerr = cms.untracked.PSet(
enable = cms.untracked.bool(False)
),
cout = cms.untracked.PSet(
enable = cms.untracked.bool(True),
threshold = cms.untracked.strin... | 1,658 |
2,151 | <filename>third_party/elfutils/src/libdw/dwarf_getfuncs.c<gh_stars>1000+
/* Get function information.
Copyright (C) 2005, 2013 Red Hat, Inc.
This file is part of elfutils.
Written by <NAME> <<EMAIL>>, 2005.
This file is free software; you can redistribute it and/or modify
it under the terms of either
... | 1,285 |
427 | <reponame>Polidea/SiriusObfuscator
// RUN: %clang_cc1 -triple x86_64-apple-darwin9 %s -std=c++14 -fcoroutines-ts -fsyntax-only -Wignored-qualifiers -Wno-error=return-type -verify -fblocks -Wno-unreachable-code -Wno-unused-value
struct awaitable {
bool await_ready();
void await_suspend(); // FIXME: coroutine_handle... | 622 |
3,227 | #include <CGAL/Exact_integer.h>
#include <CGAL/Filtered_extended_homogeneous.h>
#include <CGAL/Nef_polyhedron_2.h>
typedef CGAL::Exact_integer RT;
typedef CGAL::Filtered_extended_homogeneous<RT> Extended_kernel;
typedef CGAL::Nef_polyhedron_2<Extended_kernel> Nef_polyhedron;
typedef Nef_polyhedron::Point Point; // a... | 1,566 |
1,299 | /*
* Copyright 2016 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
*
* Unless required by applicable law or agreed t... | 1,265 |
1,609 | package com.mossle.internal.sendmail.client;
import java.util.Map;
import javax.annotation.PostConstruct;
import javax.annotation.Resource;
import com.mossle.client.notification.SendmailClient;
import com.mossle.core.util.BaseDTO;
import com.mossle.spi.rpc.RestClientBuilder;
import com.mossle.spi.rpc.RpcAuthHelper... | 723 |
397 | <reponame>ilblackdragon/studio
class PostgresProvider(object):
"""Data provider for Postgres."""
def __init__(self, connection_uri):
# TODO: implement connection
pass
def add_experiment(self, experiment):
raise NotImplementedError()
def delete_experiment(self, experiment):
... | 569 |
435 | <gh_stars>100-1000
{
"copyright_text": null,
"description": "Eight short talks from high school students across Australia. They'll be talking about projects they've built with Python using machine learning, robotics, markov models and more!\n\nhttps://2019.pycon-au.org/education-showcase\n\nFri Aug 2 16:00:00 2019... | 452 |
745 | import numpy as np
import os
import audio
from tqdm import tqdm
from functools import partial
from concurrent.futures import ProcessPoolExecutor
def build_from_path(in_dir, out_dir):
index = 1
# executor = ProcessPoolExecutor(max_workers=4)
# futures = []
texts = []
with open(os.path.join(in_dir... | 576 |
1,475 | <reponame>mhansonp/geode<gh_stars>1000+
/*
* Licensed to the Apache Software Foundation (ASF) under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional information regarding
* copyright ownership. The ASF licenses this file to You under the Apache License, Vers... | 1,434 |
852 | import FWCore.ParameterSet.Config as cms
# -*-TCL-*-
IsolatorByDepositR03 = cms.PSet(
IsolatorPSet = cms.PSet(
ComponentName = cms.string('IsolatorByDeposit'),
ConeSizeType = cms.string('FixedConeSize'),
coneSize = cms.double(0.3)
)
)
| 129 |
3,372 | <filename>aws-java-sdk-cloudtrail/src/main/java/com/amazonaws/services/cloudtrail/model/InvalidTrailNameException.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 ... | 653 |
371 | <gh_stars>100-1000
import os
import pandas as pd
import numpy as np
from sklearn.preprocessing import Normalizer, normalize
from sklearn.decomposition import TruncatedSVD
from sklearn.metrics.pairwise import cosine_distances, paired_distances
from sklearn.cluster import KMeans
from sklearn.utils.extmath import random... | 15,932 |
1,103 | # -*- coding: utf-8 -*-
import json
import logging
from kafka import KafkaConsumer, TopicPartition
from fooltrader import KAFKA_HOST
from fooltrader.contract.kafka_contract import get_kafka_tick_topic
from fooltrader.utils.utils import to_timestamp
logger = logging.getLogger(__name__)
def get_latest_timestamp_orde... | 690 |
8,629 | #include <Interpreters/Context.h>
#include <Interpreters/InterpreterCheckQuery.h>
#include <Access/Common/AccessFlags.h>
#include <Storages/IStorage.h>
#include <Parsers/ASTCheckQuery.h>
#include <Processors/Sources/SourceFromSingleChunk.h>
#include <DataTypes/DataTypesNumber.h>
#include <DataTypes/DataTypeString.h>
#i... | 1,032 |
4,407 | <reponame>MarkHoo/rich<filename>asv.conf.json
{
"version": 1,
"project": "rich",
"project_url": "https://github.com/Textualize/rich",
"repo": ".",
"repo_subdir": "",
"install_command": [
"in-dir={env_dir} python -mpip install {wheel_file}"
],
"uninstall_command": [
"return-code=any python -mpip ... | 374 |
346 | <reponame>yasiriqbal1/concept-to-clinic-1
import numpy as np
import scipy.ndimage
import skimage
import skimage.measure
import skimage.filters
import skimage.morphology
import scipy.ndimage.morphology
import skimage.transform
import skimage.segmentation
import itertools
BRONCHIAL_THRESHOLD = -950
INITIAL_THRESHOLD = -... | 8,974 |
30,023 | <reponame>MrDelik/core
"""Define tests for the Tile config flow."""
from unittest.mock import patch
import pytest
from pytile.errors import InvalidAuthError, TileError
from homeassistant import data_entry_flow
from homeassistant.components.tile import DOMAIN
from homeassistant.config_entries import SOURCE_IMPORT, SOU... | 1,265 |
1,031 | #include <string>
/** Design a motor car from various components */
struct MotorCar {
/** Information about an opinion of the design of a car component */
struct DesignOpinion {
bool itrocks;
std::string reason;
static int AceDesignCount;
static int TotalDesignCount;
static int PercentScore();... | 340 |
2,793 | <gh_stars>1000+
#define COMMON_DIGEST_FOR_OPENSSL 1
#include <CommonCrypto/CommonDigest.h>
#define SHA1_BLOCK_LENGTH CC_SHA1_BLOCK_BYTES
#define SHA1_DIGEST_LENGTH CC_SHA1_DIGEST_LENGTH
#define SHA1_CTX CC_SHA1_CTX
static DEFINE_UPDATE_FUNC_FOR_UINT(SHA1)
static DEFINE_FINISH_FUNC_FROM_FINAL(SHA1)
#undef SHA1_Updat... | 194 |
2,291 | <filename>issues/osmdroid_issue107.json
{
"id" : 107,
"status" : "Fixed",
"summary" : "Conform to Developer Guidelines",
"labels" : [ "Type-Defect", "Priority-Medium" ],
"stars" : 0,
"commentCount" : 3,
"comments" : [ {
"id" : 0,
"commenterId" : -3160830107365654207,
"content" : "http://code.g... | 401 |
3,508 | package com.fishercoder.solutions;
public class _34 {
public static class Solution1 {
public int[] searchRange(int[] nums, int target) {
int[] range = new int[2];
range[0] = -1;
range[1] = -1;
if (nums == null || nums.length == 0) {
return ra... | 1,829 |
575 | <reponame>sarang-apps/darshan_browser
// Copyright 2019 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/public/browser/network_context_client_base.h"
#include "base/bind.h"
#include "base/files/file.h"... | 3,233 |
6,160 | /*
* 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,760 |
672 | <reponame>DogeCoding/iOSCompiledRuntime<gh_stars>100-1000
#include <unistd.h>
#include <pthread.h>
#include <errno.h>
#include <sys/event.h>
#include <darwintest.h>
/*
* <rdar://problem/30231213> close() of kqueue FD races with kqueue_scan park
*
* When close concurrent with poll goes wrong, the close hangs
* an... | 749 |
2,212 | <filename>tests/transformers/config_transformer_test.py<gh_stars>1000+
import configparser
import textwrap
import pytest
from detect_secrets.transformers.config import ConfigFileTransformer
from detect_secrets.transformers.config import EagerConfigFileTransformer
from detect_secrets.transformers.config import IniFile... | 1,676 |
2,151 | <filename>test/scenario/hardware_codecs.cc<gh_stars>1000+
/*
* Copyright 2018 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights gran... | 490 |
1,367 | <gh_stars>1000+
package com.wanjian.sak.support;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Path;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.util.Attribu... | 1,074 |
501 | /*
* 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 ma... | 541 |
493 | package com.novoda.downloadmanager.demo.migration;
import android.database.Cursor;
import com.google.common.truth.Truth;
import com.novoda.downloadmanager.Batch;
import com.novoda.downloadmanager.CompletedDownloadBatch;
import com.novoda.downloadmanager.CompletedDownloadFile;
import com.novoda.downloadmanager.Downloa... | 2,398 |
806 | <filename>scripts/mell/core/trainer.py
# coding=utf-8
# Copyright (c) 2020 Alibaba PAI team.
#
# 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... | 10,138 |
635 | <filename>src/Gon/sinaspyder.py
"""
新浪财经网:https://finance.sina.com.cn
公司要闻:https://finance.sina.com.cn/roll/index.d.html?cid=56592&page=1
个股点评:https://finance.sina.com.cn/roll/index.d.html?cid=56588&page=1
大盘评述:https://finance.sina.com.cn/roll/index.d.html?cid=56589&page=1
公司研究:http://stock.finance.sina.com.cn/stock/go... | 425 |
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 li... | 323 |
14,668 | <reponame>zealoussnow/chromium
// 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 <sstream>
#include "base/strings/string_number_conversions.h"
#include "base/strings/utf_string_conversions.h"
#in... | 1,128 |
1,144 | <filename>backend/de.metas.adempiere.adempiere/base/src/main/java/de/metas/impexp/processing/impl/ImportProcessFactory.java
package de.metas.impexp.processing.impl;
import javax.annotation.Nullable;
import org.adempiere.exceptions.AdempiereException;
import org.slf4j.Logger;
import de.metas.impexp.processing.IImport... | 1,052 |
716 | <filename>runtime/include/FuncArgMacros.h
/*
* 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
*
*/
/* clang-format off */
/**
* \file
* \brief Fortran RTE name bu... | 1,225 |
14,668 | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "headless/lib/headless_content_main_delegate.h"
#include <cstdint>
#include <memory>
#include <utility>
#include "base/base_switches.h"
#includ... | 6,287 |
400 | <gh_stars>100-1000
package org.ofdrw.core.pageDescription.color.colorSpace;
import org.dom4j.Element;
import org.ofdrw.core.OFDElement;
import org.ofdrw.core.basicType.ST_ID;
import org.ofdrw.core.basicType.ST_Loc;
/**
* 颜色空间
* <p>
* 本标准支持 GRAY、RGB、CMYK 颜色空间。除通过
* 设置各通道使用颜色空间内的任意颜色之外,还可
* 在颜色空间内定义调色板或指定相应颜色配置文件,... | 2,302 |
2,568 | <reponame>rkelly/twofactorauth<gh_stars>1000+
{
"BiggerPockets": {
"domain": "biggerpockets.com",
"url": "https://www.biggerpockets.com",
"tfa": [
"sms"
],
"documentation": "https://www.biggerpockets.com/forums/25/topics/232201",
"keywords": [
"social"
]
}
} | 148 |
356 | /* Dynamic thread pool group
(C) 2020-2021 <NAME> <http://www.nedproductions.biz/> (9 commits)
File Created: Dec 2020
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 in the accompanying file
Licence.t... | 7,338 |
402 | <gh_stars>100-1000
/**
* Copyright © 2018 spring-data-dynamodb (https://github.com/derjust/spring-data-dynamodb)
*
* 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.apac... | 2,665 |
1,904 | # -*- coding: utf-8 -*-
import os
import random
import sys
import time
import pytest
import tornado
import webtest
from tornado.testing import AsyncHTTPSTestCase
from webtest.app import AppError
from werobot.parser import parse_xml, process_message
from werobot.utils import generate_token, get_signature
@pytest.fi... | 4,065 |
4,184 | <gh_stars>1000+
/*
* Copyright (c) 2007-2011, <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS... | 870 |
9,682 | <reponame>vivekprcs/auto
/*
* Copyright 2018 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 applicab... | 1,831 |
458 | <reponame>swimos/swim
// Copyright 2015-2021 Swim 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 applic... | 3,282 |
5,169 | {
"authors": "Google, Inc.",
"description": "Google Spatial Audio SDK for iOS developers.",
"frameworks": [
"AudioToolbox",
"AVFoundation",
"MediaPlayer"
],
"homepage": "https://developers.google.com/vr/",
"libraries": [
"c++"
],
"license": {
"text": "Copyright 2018 Google",
"typ... | 405 |
2,542 | from typing import Optional, Tuple, Callable, cast
from ..types import Floats2d, Floats1d
from ..model import Model
from ..config import registry
from ..util import get_width
InT = Floats2d
OutT = Floats2d
@registry.layers("MultiSoftmax.v1")
def MultiSoftmax(nOs: Tuple[int, ...], nI: Optional[int] = None) -> Model... | 773 |
373 | <reponame>heatd/edk2-platforms<filename>Platform/Intel/PurleyOpenBoardPkg/BoardTiogaPass/Library/BoardInitLib/UsbOC.c
/** @file
Copyright (c) 2018, Intel Corporation. All rights reserved.<BR>
Copyright (c) 2021, American Megatrends International LLC.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#incl... | 1,221 |
5,490 | <reponame>spawn08/sqlmodel<filename>scripts/generate_select.py<gh_stars>1000+
from itertools import product
from pathlib import Path
from typing import List, Tuple
import black
from jinja2 import Template
from pydantic import BaseModel
template_path = Path(__file__).parent.parent / "sqlmodel/sql/expression.py.jinja2"... | 728 |
12,278 | <filename>arangosh/Benchmark/testcases/DocumentCrudTest.h
////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2014-2021 ArangoDB GmbH, Cologne, Germany
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version... | 1,246 |
419 | <gh_stars>100-1000
{
"PlaceholderDesc_Id": "Unique Id of the condition. This is only unique for this list not globally.",
"PlaceholderDesc_Condition": "Condition string of the object",
"PlaceholderDesc_ChildNode": "Node that will be run if the condition is true"
} | 86 |
564 | <reponame>ljf1239848066/CrazyShadow
package com.hitomi.cslibrary.base;
import android.support.annotation.IntDef;
/**
* Created by hitomi on 2016/10/10.
*/
@IntDef(flag = true, value = {CrazyShadowDirection.LEFT, CrazyShadowDirection.TOP,
CrazyShadowDirection.RIGHT, CrazyShadowDirection.BOTTOM,
Crazy... | 458 |
778 | <reponame>yunzhi-jake/tuplex<filename>tuplex/test/core/NonCompilableUDFTest.cc
//--------------------------------------------------------------------------------------------------------------------//
// //... | 4,028 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.