max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
419 | <filename>Code/System/Core/Types/StringID.cpp
#include "StringID.h"
#include "System/Core/Memory/Memory.h"
#include "System/Core/Algorithm/Hash.h"
#include "System/Core/Threading/Threading.h"
//-------------------------------------------------------------------------
namespace KRG
{
class StringID_Custom... | 1,711 |
1,080 | //
// LSTPopViewSceneVC.h
// LSTPopView_Example
//
// Created by LoSenTrad on 2020/4/23.
// Copyright © 2020 <EMAIL>. All rights reserved.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface LSTPopViewSceneVC : UIViewController
@end
NS_ASSUME_NONNULL_END
| 113 |
419 | /*
* Copyright (C) 2015-2018 Alibaba Group Holding Limited
*/
#ifndef _ALCS_LOCALSETUP_H_
#define _ALCS_LOCALSETUP_H_
#include "iot_export.h"
void alcs_localsetup_init(void *adapter_handle, void* coap_handler, char *product_key,char *device_name);
void alcs_localsetup_add_sub_device (void *adapter_handle,char *p... | 155 |
544 | <gh_stars>100-1000
import ast
import os
from os.path import abspath
from pydoc import locate
import astunparse
class TypeBuilder(ast.NodeTransformer):
def __init__(self, type_schema, options):
"""
:type type_schema: office365.runtime.odata.odata_type.ODataType
:type options: dict
... | 1,236 |
758 | <gh_stars>100-1000
#include <vector>
#include "caffe/filler.hpp"
#include "caffe/layers/bias_layer.hpp"
#include "caffe/util/math_functions.hpp"
namespace caffe {
template <typename Ftype, typename Btype>
void BiasLayer<Ftype, Btype>::LayerSetUp(const vector<Blob*>& bottom,
const vector<Blob*>& top) {
if (bo... | 2,040 |
2,151 | /*
* Copyright 2015 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "GrBlend.h"
#include "../private/GrColor.h"
/**
* MaskedColor is used to evaluate the color and valid color component flags through the
* blending equation. Could possi... | 2,166 |
414 | <gh_stars>100-1000
from __future__ import annotations
from typing import Dict, Optional, Tuple
import warp.yul.ast as ast
from warp.yul.AstVisitor import AstVisitor
CallGraph = Dict[ast.FunctionDefinition, Tuple[ast.FunctionDefinition]]
class CallGraphBuilder(AstVisitor):
def __init__(self):
super().__... | 591 |
3,372 | <gh_stars>1000+
/*
* 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 copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* ... | 1,332 |
348 | <gh_stars>100-1000
{"nom":"Carnoux-en-Provence","circ":"9ème circonscription","dpt":"Bouches-du-Rhône","inscrits":5615,"abs":3448,"votants":2167,"blancs":123,"nuls":57,"exp":1987,"res":[{"nuance":"LR","nom":"<NAME>","voix":1126},{"nuance":"MDM","nom":"Mme <NAME>","voix":861}]} | 118 |
7,863 | // Stdafx.cpp : source file that includes just the standard includes
// VisEmacs.pch will be the pre-compiled header
// stdafx.obj will contain the pre-compiled type information
#include "stdafx.h"
#include "atlimpl.cpp"
| 72 |
584 | <reponame>HogenXue/android-advanced-light
package com.example.liuwangshu.moondagger2.model;
/**
* Created by Administrator on 2016/12/18 0018.
*/
public abstract class Engine {
public abstract String work();
}
| 73 |
3,102 | <filename>clang/test/CodeGenCXX/pr30731.cpp
// RUN: %clang_cc1 -triple i386-pc-win32 -emit-llvm -flto -std=c++11 -o - %s | FileCheck %s
struct A {
virtual ~A();
};
struct B {};
struct C {
virtual void f();
};
struct S : A, virtual B, C {
void f() override;
};
void f(S* s) { s->f(); }
// CHECK-LABEL: define ... | 172 |
2,341 | #
# Copyright 2016 Cluster Labs, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 1,297 |
1,996 | <filename>docs/search.json
{"Protocols/CollectionViewDelegateSlantedLayout.html#/c:@M@CollectionViewSlantedLayout@objc(pl)CollectionViewDelegateSlantedLayout(im)collectionView:layout:sizeForItemAt:":{"name":"collectionView(_:layout:sizeForItemAt:)","abstract":"<p>Asks the delegate for the size of the specified item’s c... | 1,343 |
544 | <filename>examples/sk_examples/IsolationForest_test.py
import numpy as np
from tods.sk_interface.detection_algorithm.IsolationForest_skinterface import IsolationForestSKI
from sklearn.metrics import precision_recall_curve
from sklearn.metrics import accuracy_score
from sklearn.metrics import confusion_matrix
from sklea... | 443 |
892 | <gh_stars>100-1000
{
"schema_version": "1.2.0",
"id": "GHSA-29w7-m72c-27vv",
"modified": "2022-04-30T18:19:36Z",
"published": "2022-04-30T18:19:36Z",
"aliases": [
"CVE-2002-0616"
],
"details": "The Macro Security Model in Microsoft Excel 2000 and 2002 for Windows allows remote attackers to execute cod... | 458 |
3,964 | import six
if six.PY3:
from datetime import datetime, timedelta
from cassandra.marshal import int64_unpack
from cassandra.cqltypes import DateType
# Fix for http://bugs.python.org/issue23517 issue
def deserialize(byts, protocol_version):
timestamp = int64_unpack(byts) / 1000.0
dt ... | 173 |
1,482 | anon = lambda a,
d=1: None
def foo(): pass
anon : source.python
: source.python
= : keyword.operator.assignment.python, source.python
: source.python
lambda : meta.lambda-function.python, source.python, storage.type.function.lambda.python
... | 709 |
14,668 | <reponame>zealoussnow/chromium
// 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 "services/viz/public/cpp/compositing/compositor_render_pass_id_mojom_traits.h"
#include "components/viz/common/qu... | 333 |
427 | //===-- main.cpp -------------------------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===------------------------------------------------------... | 143 |
720 | <filename>adaptive/tests/test_balancing_learner.py
import pytest
from adaptive.learner import BalancingLearner, Learner1D
from adaptive.runner import simple
strategies = ["loss", "loss_improvements", "npoints", "cycle"]
def test_balancing_learner_loss_cache():
learner = Learner1D(lambda x: x, bounds=(-1, 1))
... | 862 |
354 | /***********************************************************************************************************************
* OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC, and other contributors. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without m... | 11,372 |
370 | <filename>3rdparty/suitesparse-metis-for-windows-1.2.1/SuiteSparse/CXSparse/SourceWrappers/cs_spsolve_dl.o.c
#define CS_LONG
#include <../Source/cs_spsolve.c>
| 72 |
3,651 | <reponame>aberdev/orientdb<filename>core/src/test/java/com/orientechnologies/orient/core/sql/BatchUniqueProjectionRid.java
package com.orientechnologies.orient.core.sql;
import static org.junit.Assert.assertFalse;
import com.orientechnologies.orient.core.command.script.OCommandScript;
import com.orientechnologies.ori... | 570 |
3,934 | # This sample tests a complicated combination of ParamSpec usage.
# pyright: strict
from typing import Callable, TypeVar, overload
from typing_extensions import Concatenate, ParamSpec
_T = TypeVar("_T")
_R = TypeVar("_R")
_P = ParamSpec("_P")
@overload
def error_decorator(
error_codes: None = None,
) -> Callab... | 560 |
29,409 | package com.alibaba.p3c.pmd.lang.java.rule.other.java;
import java.text.SimpleDateFormat;
/**
* @author huawen.phw
* @date 2018/2/1
* Description:
*/
public class UseRightCaseForDateFormatRuleExam {
private static final String PATTERN= "yyyyMMdd";
public void exam1() {
SimpleDateFormat format =... | 588 |
367 | /*******************************************************************************
* 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/l... | 520 |
362 | <gh_stars>100-1000
// Copyright (c) 2018-2020, <NAME>. For more information see 'LICENSE'
#include "VPipelineCompiler.h"
#include "SpirvCompiler.h"
#include "PrivateDefines.h"
#include "framegraph/Shared/EnumUtils.h"
#include "framegraph/Shared/EnumToString.h"
#include "VCachedDebuggableShaderData.h"
#ifdef FG_ENABL... | 14,842 |
708 | #pragma once
class ImageHelper
{
public:
ImageHelper() {}
~ImageHelper() {}
// draw functions
template<typename T>
static void drawCircle(ml::BaseImage<T>& image, const ml::vec2f& center, float radius, const T& color) {
drawCircle(image, ml::math::round(center), ml::math::round(radius), color);
}
template<ty... | 1,250 |
438 | # Copyright 2014, Sandia Corporation. Under the terms of Contract
# DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains certain
# rights in this software.
import argparse
import subprocess
parser = argparse.ArgumentParser("Run all Toyplot regression tests.")
parser.add_argument("--show-diff", actio... | 208 |
399 | #pragma once
#include "shared/Utils.h"
#include "shared/UtilsVulkan.h"
struct ComputeBase
{
ComputeBase(VulkanRenderDevice& vkDev, const char* shaderName, uint32_t inputSize, uint32_t outputSize);
virtual ~ComputeBase();
inline void uploadInput(uint32_t offset, void* inData, uint32_t byteCount) {
uploadBufferD... | 383 |
784 | import numpy as np
from patsy import dmatrix, build_design_matrices, PatsyError
from sklearn.base import BaseEstimator, TransformerMixin
from sklearn.utils.validation import check_is_fitted
class PatsyTransformer(TransformerMixin, BaseEstimator):
"""
The patsy transformer offers a method to select the right c... | 659 |
529 | <filename>DeviceCode/include/AsyncProcCalls_decl.h
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright (c) Microsoft Corporation. All rights reserved.
////... | 1,316 |
2,151 | // 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 "chrome/browser/resource_coordinator/tab_manager_web_contents_data.h"
#include "base/metrics/histogram_macros.h"
#include "chrome/browser/browse... | 1,149 |
348 | {"nom":"Chasselas","circ":"1ère circonscription","dpt":"Saône-et-Loire","inscrits":128,"abs":64,"votants":64,"blancs":9,"nuls":2,"exp":53,"res":[{"nuance":"REM","nom":"<NAME>","voix":31},{"nuance":"LR","nom":"<NAME>","voix":22}]} | 94 |
493 | <filename>app/mon/mon_gui/src/widgets/ecalmon_tree_widget/ecalmon_tree_widget.h
/* ========================= eCAL LICENSE =================================
*
* Copyright (C) 2016 - 2019 Continental Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in... | 1,552 |
318 |
#include <tamtypes.h>
#include <kernel.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sifrpc.h>
#include <stdarg.h>
#include <fileio.h>
#include "mcsave_ee.h"
static unsigned sbuff[64] __attribute__((aligned (64)));
static unsigned rbuff[64] __attribute__((aligned (64)));
static ... | 1,465 |
1,403 | #ifndef CLIPPER_LIB_QUERY_PROCESSOR_H
#define CLIPPER_LIB_QUERY_PROCESSOR_H
#include <atomic>
#include <string>
#include <tuple>
#include <utility>
#include <folly/futures/Future.h>
#include "datatypes.hpp"
#include "metrics.hpp"
#include "persistent_state.hpp"
#include "rpc_service.hpp"
#include "selection_policies... | 551 |
8,865 | package com.taobao.android.builder.manager;
import com.android.build.api.transform.QualifiedContent;
import com.android.build.gradle.BaseExtension;
import com.android.build.gradle.FeatureExtension;
import com.android.build.gradle.api.BaseVariantOutput;
import com.android.build.gradle.api.FeatureVariant;
import com.and... | 3,879 |
660 | <reponame>lacc97/media-driver
/*
* Copyright (c) 2017, Intel Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to us... | 1,825 |
455 | <reponame>zmxdream/FlexFlow
/* Copyright 2018 Stanford, NVIDIA
*
* 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... | 5,004 |
416 | //
// Accessibility.h
// Accessibility
//
// Copyright © 2020 Apple Inc. All rights reserved.
//
#import <Accessibility/AXFoundation.h>
#import <Accessibility/AXColorUtilities.h>
#import <Accessibility/AXCustomContent.h>
| 72 |
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 ... | 346 |
575 | // 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 EXTENSIONS_BROWSER_API_DECLARATIVE_RULES_CACHE_DELEGATE_H__
#define EXTENSIONS_BROWSER_API_DECLARATIVE_RULES_CACHE_DELEGATE_H__
#include <memory>... | 1,670 |
313 | /*
* 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
*
* Unless required by applicable law or agreed t... | 4,100 |
1,040 | // Copyright (c) <NAME>
// Licensed under the MIT License
// ======================================================================
// Menu bar configuration dialog
// ======================================================================
#define STRICT 1
#include "Orbiter.h"
#include "Pane.h"
#include "MenuInfoBar.... | 3,231 |
1,461 | <reponame>TheBlindMick/MPU6050
/*
* Created by Joachim on 16/04/2019.
* Adapted from donated nonius code.
*
* Distributed under the Boost Software License, Version 1.0. (See accompanying
* file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
*/
// Dumb std::function implementation for c... | 1,958 |
1,105 | <filename>Source/Plugins/ApiSetView/main.c
/*******************************************************************************
*
* (C) COPYRIGHT AUTHORS, 2019 - 2021
*
* TITLE: MAIN.H
*
* VERSION: 1.11
*
* DATE: 11 June 2021
*
* WinObjEx64 ApiSetView plugin.
*
* THIS CODE AND INFORMATION IS PROVIDED ... | 7,235 |
892 | <reponame>westonsteimel/advisory-database-github
{
"schema_version": "1.2.0",
"id": "GHSA-v57r-q7qp-7jg8",
"modified": "2022-05-01T23:52:52Z",
"published": "2022-05-01T23:52:52Z",
"aliases": [
"CVE-2008-2735"
],
"details": "The HTTP server in Cisco Adaptive Security Appliance (ASA) 5500 devices 8.0 be... | 698 |
2,978 | <reponame>codemagicprotege/strimzi-kafka-operator
/*
* Copyright Strimzi authors.
* License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html).
*/
package io.strimzi.operator.cluster.operator.assembly;
import io.strimzi.api.kafka.model.KafkaRebalance;
import io.strimzi.api.kaf... | 2,305 |
3,799 | <filename>camera/camera-core/src/test/java/androidx/camera/core/internal/compat/ImageWriterCompatTest.java
/*
* Copyright 2020 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 co... | 694 |
2,389 | package io.kubernetes.client.openapi.models;
import io.kubernetes.client.fluent.VisitableBuilder;
import java.lang.Object;
import java.lang.Boolean;
public class V1ContainerStateTerminatedBuilder extends io.kubernetes.client.openapi.models.V1ContainerStateTerminatedFluentImpl<io.kubernetes.client.openapi.models.V1Cont... | 1,319 |
646 | import json
import os
import util.misc as utils
try:
from panopticapi.evaluation import pq_compute
except ImportError:
pass
class PanopticEvaluator(object):
def __init__(self, ann_file, ann_folder, output_dir="panoptic_eval"):
self.gt_json = ann_file
self.gt_folder = ann_folder
i... | 636 |
2,291 | <filename>issues/osmdroid_issue532.json
{
"id" : 532,
"status" : "Invalid",
"summary" : "Offline Map simply does not work!",
"labels" : [ "Type-Defect", "Priority-Medium" ],
"stars" : 0,
"commentCount" : 4,
"comments" : [ {
"id" : 0,
"commenterId" : 8757295757326907602,
"content" : "I have bee... | 1,518 |
582 | <reponame>Sphericone/archi
/*******************************************************************************
* Copyright (c) 2000, 2010 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accomp... | 302 |
631 | #ifndef EXPRESSION_H
#define EXPRESSION_H
#include "Core/Variational/var.h"
#include <queue>
#include <unordered_map>
#include <unordered_set>
namespace QPanda {
namespace Variational {
/**
* @brief A proxy class for the Variational::var
* @ingroup Variational
*/
class expression {
public:
/**
* @brief ... | 933 |
5,169 | <filename>Specs/a/9/2/SOSwift/2.4.1/SOSwift.podspec.json
{
"name": "SOSwift",
"version": "2.4.1",
"summary": "A swift implementation of Schema.org structured data vocabulary.",
"description": "Schema.org is a collaborative, community activity with a mission to create, maintain,\nand promote schemas for structur... | 406 |
513 | // https://www.interviewbit.com/problems/majority-element/
int Solution::majorityElement(const vector<int> &A) {
// Do not write main() function.
// Do not read input, instead use the arguments to the function.
// Do not print the output, instead return values as specified
// Still have a doubt. Checko... | 333 |
348 | <reponame>chamberone/Leaflet.PixiOverlay
{"nom":"Pradère-les-Bourguets","circ":"6ème circonscription","dpt":"Haute-Garonne","inscrits":320,"abs":145,"votants":175,"blancs":17,"nuls":4,"exp":154,"res":[{"nuance":"FI","nom":"<NAME>","voix":81},{"nuance":"REM","nom":"<NAME>","voix":73}]} | 118 |
1,338 | /*
* Copyright (C) 1999-2001 Free Software Foundation, Inc.
* This file is part of the GNU LIBICONV Library.
*
* The GNU LIBICONV Library is free software; you can redistribute it
* and/or modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either ve... | 3,120 |
3,259 | from geopy.geocoders import GeocodeEarth
from test.geocoders.pelias import BaseTestPelias
from test.geocoders.util import env
class TestGeocodeEarth(BaseTestPelias):
@classmethod
def make_geocoder(cls, **kwargs):
return GeocodeEarth(env['GEOCODEEARTH_KEY'],
**kwargs)
| 141 |
3,262 | /*
* Tencent is pleased to support the open source community by making Angel available.
*
* Copyright (C) 2017-2018 THL A29 Limited, a Tencent company. 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 m... | 870 |
10,340 | {
"title": "Alerts Heatmap [Azure Monitor][Activity Log]",
"visState": "{\"title\":\"Alerts Heatmap [Azure Monitor][Activity Log]\",\"type\":\"heatmap\",\"params\":{\"type\":\"heatmap\",\"addTooltip\":true,\"addLegend\":true,\"enableHover\":false,\"legendPosition\":\"right\",\"times\":[],\"colorsNumber\":4,\"colorS... | 704 |
20,453 | import numpy as np
from numpy import f2py
np.char
np.ctypeslib
np.emath
np.fft
np.lib
np.linalg
np.ma
np.matrixlib
np.polynomial
np.random
np.rec
np.testing
np.version
np.lib.format
np.lib.mixins
np.lib.scimath
np.lib.stride_tricks
np.ma.extras
np.polynomial.chebyshev
np.polynomial.hermite
np.polynomial.hermite_e
np.... | 281 |
972 | #
# Copyright 2017-2018 TWO SIGMA OPEN SOURCE, 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... | 33,240 |
1,686 | <reponame>sarthak-saxena/cef_node_webkit
// 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 "libcef/browser/extensions/chrome_api_registration.h"
#include "libcef/browser/extensions/extensions_bro... | 358 |
451 | <gh_stars>100-1000
/*
* Copyright 2019 WeBank
*
* 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... | 519 |
335 | <filename>B/Biochemistry_noun.json
{
"word": "Biochemistry",
"definitions": [
"The branch of science concerned with the chemical and physico-chemical processes and substances that occur within living organisms.",
"The processes and substances with which the science of biochemistry is concerned."... | 110 |
347 | package org.ovirt.engine.api.restapi.types;
import static org.ovirt.engine.api.model.StatisticKind.GAUGE;
import static org.ovirt.engine.api.model.StatisticUnit.BYTES;
import static org.ovirt.engine.api.model.StatisticUnit.SECONDS;
import java.util.List;
import org.ovirt.engine.api.model.BlockStatistic;
import org.o... | 2,978 |
372 | <reponame>yoshi-code-bot/google-api-java-client-services
/*
* 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 ... | 3,731 |
363 | <gh_stars>100-1000
# This file is part of the Open Data Cube, see https://opendatacube.org for more information
#
# Copyright (c) 2015-2020 ODC Contributors
# SPDX-License-Identifier: Apache-2.0
import pytest
from datacube.model import Dataset
from datacube.testutils.threads import FakeThreadPoolExecutor
from datacube.... | 1,609 |
831 | <reponame>phpc0de/idea-android
/*
* Copyright (C) 2018 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... | 622 |
451 | '''
Copyright (c) 2016-2017 Dell Inc. or its subsidiaries. All Rights Reserved.
'''
import fit_path # NOQA: unused import
import random
import time
import flogging
from nose.plugins.attrib import attr
from common import fit_common
from json import dumps
from nosedep import depends
# set up the logging
log = flogging... | 2,104 |
322 | <gh_stars>100-1000
package org.elasticsearch.index.analysis;
import com.chenlb.mmseg4j.*;
import com.chenlb.mmseg4j.analysis.MMSegTokenizer;
import org.apache.lucene.analysis.Tokenizer;
import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.env.Environment;
import org.elasticsearch.index.In... | 567 |
1,056 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 424 |
335 | <reponame>ford442/openmpt
/*
* SampleIO.cpp
* ------------
* Purpose: Central code for reading and writing samples. Create your SampleIO object and have a go at the ReadSample and WriteSample functions!
* Notes : Not all combinations of possible sample format combinations are implemented, especially for WriteSampl... | 14,163 |
892 | <filename>advisories/unreviewed/2022/05/GHSA-49rg-f69p-79rc/GHSA-49rg-f69p-79rc.json<gh_stars>100-1000
{
"schema_version": "1.2.0",
"id": "GHSA-49rg-f69p-79rc",
"modified": "2022-05-13T01:48:46Z",
"published": "2022-05-13T01:48:46Z",
"aliases": [
"CVE-2018-10355"
],
"details": "An authentication weakn... | 542 |
492 | package me.wcy.music.activity;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AlertDialog;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ListView;
import me.wcy.music.R;
import me.wcy.music.adapter.OnMoreClickListener;
import me... | 914 |
15,337 | <filename>saleor/menu/migrations/0003_auto_20180405_0854.py
# Generated by Django 2.0.3 on 2018-04-05 13:54
from django.db import migrations, models
def migrate_slug_to_name(apps, schema_editor):
Menu = apps.get_model("menu", "Menu")
for menu in Menu.objects.all():
menu.name = menu.slug
menu.... | 363 |
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 Common... | 132 |
358 | <gh_stars>100-1000
from __future__ import absolute_import, print_function, unicode_literals
from wolframclient.utils.api import aiohttp, requests
from wolframclient.utils.encoding import force_text
__all__ = ["wrap_response"]
class HTTPResponseAdapterBase(object):
""" Unify various request classes as a unique A... | 651 |
703 | #ifndef AE_FOUNDATION_MATHS_PLANE_INL
#define AE_FOUNDATION_MATHS_PLANE_INL
#include "../Math/Matrix.h"
namespace AE_NS_FOUNDATION
{
inline aePlane::aePlane (const aeVec3 &vNormal, float fDistToPlane)
{
CreatePlane (vNormal, fDistToPlane);
}
inline aePlane::aePlane (const aeVec3 &vNormal, con... | 1,273 |
3,673 | <filename>api/kernel/auxvec.h<gh_stars>1000+
#ifndef KERNEL_AUXVEC_H
#define KERNEL_AUXVEC_H
// From: https://github.com/torvalds/linux/blob/v3.19/include/uapi/linux/auxvec.h
/* Symbolic values for the entries in the auxiliary table
put on the initial stack */
#define AT_NULL 0 /* end of vector */
#define AT_IGN... | 786 |
348 | {"nom":"Prunay","circ":"4ème circonscription","dpt":"Marne","inscrits":790,"abs":428,"votants":362,"blancs":24,"nuls":4,"exp":334,"res":[{"nuance":"LR","nom":"<NAME>","voix":239},{"nuance":"FN","nom":"M. <NAME>","voix":95}]} | 90 |
864 | <reponame>luis-guilherme/mitra
#!/usr/bin/env python3
# Adobe Photoshop
from parsers import FType
from helpers import *
class parser(FType):
DESC = "PSD / Photoshop"
TYPE = "PSD"
MAGIC = b"8BPS"
COLOR_MODE_DATA_o = 0x1a # Size:4 Data:Size
IMAGE_RESOURCE_BLOCK_s = 12
def __init__(self, data=""):
FType.__in... | 636 |
303 | <reponame>xrtc-cc/xrtc
//
// AgoraEnumerates.h
// AgoraRtcEngineKit
//
// Copyright (c) 2018 Agora. All rights reserved.
//
#import <Foundation/Foundation.h>
/** Warning code.
Warning codes occur when the SDK encounters an error that may be recovered automatically. These are only notifications, and can generally be ... | 33,405 |
2,757 | <gh_stars>1000+
/* LibTomCrypt, modular cryptographic library -- <NAME>
*
* LibTomCrypt is a library that provides various cryptographic
* algorithms in a highly modular and flexible manner.
*
* The library is free for all purposes without any express
* guarantee it works.
*/
#include "tomcrypt_private.h"
/**
... | 966 |
1,682 | <reponame>haroldl/rest.li<gh_stars>1000+
/*
Copyright (c) 2012 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
Unles... | 2,853 |
460 | /**
* Copyright 2017 Red Hat, Inc, and individual contributors.
* <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>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless ... | 477 |
639 | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#include "cpu_helper.hpp"
#include "nnfusion/core/operators/generic_op/generic_op.hpp"
using namespace nnfusion::kernels;
LanguageUnit_p cpu::get_eigen_math_kernel(const std::string& name,
const std::... | 2,239 |
17,275 | package hudson;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import hudson.model.AbstractDescribableImpl;
import hudson.model.Describable;
import hudson.model.Descriptor;
import hudson.model.InvisibleAction;
import hudson.model.RootAction;
import hudson.util.ListBoxModel;
im... | 899 |
348 | {"nom":"Bas-Mauco","circ":"3ème circonscription","dpt":"Landes","inscrits":267,"abs":105,"votants":162,"blancs":9,"nuls":7,"exp":146,"res":[{"nuance":"REM","nom":"<NAME>","voix":76},{"nuance":"SOC","nom":"M. <NAME>","voix":70}]} | 93 |
450 | <reponame>LiuLeif/onnc<gh_stars>100-1000
//===- Sub.cpp ------------------------------------------------------------===//
//
// The ONNC Project
//
// See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#include <onnc/IR/Compute/Su... | 269 |
303 | <reponame>SuicideMonkey/Object-Detection-API-Tensorflow
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import tensorflow as tf
from tensorflow.python import pywrap_tensorflow as wrap
import sys
import os
import numpy as np
class SSD512:
def __init__(se... | 19,011 |
1,078 | <filename>Src/StdLib/Lib/test/crashers/warnings_del_crasher.py<gh_stars>1000+
"""
Expose a race in the _warnings module, which is the C backend for the
warnings module. The "_warnings" module tries to access attributes of the
"warnings" module (because of the API it has to support), but doing so
during interpreter shut... | 312 |
3,227 | <filename>Orthtree/benchmark/Orthtree/construction.cpp<gh_stars>1000+
#define CGAL_TRACE_STREAM std::cerr
#include "util.h"
#include <CGAL/Exact_predicates_exact_constructions_kernel.h>
#include <CGAL/Octree.h>
#include <CGAL/Search_traits_3.h>
#include <CGAL/Orthogonal_k_neighbor_search.h>
#include <iostream>
#in... | 856 |
1,821 | <gh_stars>1000+
/*
* Copyright 2018- The Pixie Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | 1,728 |
1,738 | /*
* 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 license below or t... | 13,166 |
1,303 | /*-------------------------------------------------------------------------
*
* unicode_norm.h
* Routines for normalizing Unicode strings
*
* These definitions are used by both frontend and backend code.
*
* Copyright (c) 2017, PostgreSQL Global Development Group
*
* src/include/common/unicode_norm.h
*
... | 188 |
1,059 | <reponame>CyberFlameGO/tilck
/* SPDX-License-Identifier: BSD-2-Clause */
#pragma once
#include <tilck/common/basic_defs.h>
struct list_node {
struct list_node *next;
struct list_node *prev;
};
struct list {
struct list_node *first;
struct list_node *last;
};
STATIC_ASSERT(sizeof(struct list) == sizeof(s... | 1,833 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.