max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
14,668 | <reponame>zealoussnow/chromium
// 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... | 8,766 |
537 | <reponame>shouxieai/tensorRT_Pro
import os
import cv2
import numpy as np
import pytrt as tp
# change current workspace
os.chdir("../workspace/")
def compile_detector_model(width, height):
width = tp.upbound(width)
height = tp.upbound(height)
index_of_reshape_layer = 0
def hook_reshape(name, shape):
... | 1,444 |
384 | /**
* 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... | 1,393 |
852 | #ifndef CalibCalorimetry_EcalLaserAnalyzer_EcalABAnalyzer_h
#define CalibCalorimetry_EcalLaserAnalyzer_EcalABAnalyzer_h
// $Id: EcalABAnalyzer.h
#include <memory>
#include <vector>
#include <map>
#include <FWCore/Framework/interface/one/EDAnalyzer.h>
#include <DataFormats/EcalDigi/interface/EcalDigiCollections.h>
#... | 1,306 |
2,542 | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#include "stdafx.h"
using nam... | 2,254 |
1,327 | /*******************************************************************************
* Copyright 2019-2022 Intel Corporation
* Copyright 2020-2022 FUJITSU LIMITED
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of... | 15,992 |
369 | /** @file
@brief Implementation
@date 2015
@author
Sensics, Inc.
<http://sensics.com/osvr>
*/
// Copyright 2015 Sensics, 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 L... | 7,382 |
460 | <filename>paoding-rose-web/src/main/java/net/paoding/rose/web/paramresolver/ServletRequestDataBinder.java
/*
* Copyright 2002-2011 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 ob... | 3,351 |
634 | /****************************************************************
* 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... | 790 |
937 | package cyclops.futurestream.react.lazy.futures;
import static org.hamcrest.Matchers.equalTo;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertThat;
import static org.junit.Assert.assertTrue;
import cyclops.futurestream.LazyReact;
import org.junit.Test;
public class AccessTest {
@Tes... | 422 |
335 | <gh_stars>100-1000
{
"word": "Insertion",
"definitions": [
"The action of inserting something.",
"The placing of a spacecraft or satellite into an orbit or trajectory.",
"The addition of extra DNA or RNA into a section of genetic material.",
"An amendment or addition inserted in ... | 218 |
7,464 | <reponame>mz1999/vjtools
package com.vip.vjtools.vjkit.collection;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.fail;
import static org.junit.Assert.assertFalse;
import java.util.Arrays;
import java.util.List;
import org.junit.Test;
import com.vip.vjtools.v... | 792 |
631 | <reponame>bluebird88/HIS
package com.neu.his.cloud.zuul.mapper;
import com.neu.his.cloud.zuul.model.SmsPermission;
import com.neu.his.cloud.zuul.model.SmsRolePermissionRelation;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* @ClassName: SmsRole... | 346 |
1,063 | # -*- coding: utf-8 -*-
from yacs.config import CfgNode
from .dim_processors_impl.identity import Identity
from .dim_processors_impl.l2_normalize import L2Normalize
from .dim_processors_impl.part_pca import PartPCA
from .dim_processors_impl.part_svd import PartSVD
from .dim_processors_impl.pca import PCA
from .dim_pr... | 217 |
1,179 | <gh_stars>1000+
// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2019, Broadcom
*/
#include <drivers/bcm_sotp.h>
#include <io.h>
#include <kernel/misc.h>
#include <kernel/pseudo_ta.h>
#define SOTP_SERVICE_UUID \
{0x6272636D, 0x2018, 0x1101, \
{0x42, 0x43, 0x4D, 0x5F, 0x53, 0x4F, 0x54, 0x50} }
enum ... | 969 |
473 | #include "libpov.h"
// \x00<> =/&\x01\x00\x48<cml><cml><\x01\xc0\x47\x43AAAAAAAAYYYY></\x01\xc0\x47\x43AAAAAAAAYYYY><XXXX></XXXX></cml></cml>\x07\x01\x00\x00\x00\x00\x05\x04\x04\x84\x00\x01\x06\x02\x00\x00\x00
unsigned char *cgc_memchr(unsigned char *buf, int c, cgc_size_t n)
{
cgc_size_t i;
for (i = 0; i < n;... | 2,020 |
1,484 | from anchore_engine.db import Image
from anchore_engine.services.policy_engine.engine.loaders import ImageLoader
def get_image():
img = Image()
img.user_id = "unit_test"
img.id = "da28a15dbf563fbc5a486f622b44970ee1bf10f48013bab640f403b06b278543"
return img
class TestLoadingJavaCPEs:
ANALYSIS_DA... | 2,603 |
1,210 | <gh_stars>1000+
#include <cstdio>
#include <cstdlib>
#define LOWBIT(x) ((x) & (-(x)))
#define COMPOSITE 0
#define PRIME 1
typedef long long ll;
using namespace std;
ll qpow(ll x, int y, int p)
{
if (y == 0) return 1;
ll h = qpow(x * x % p, y >> 1, p);
if ((y & 1) == 0) return h;
else return h * x % p;
}
bool ... | 452 |
892 | <gh_stars>100-1000
{
"schema_version": "1.2.0",
"id": "GHSA-6672-h2cg-jp6j",
"modified": "2022-05-17T00:01:26Z",
"published": "2022-05-17T00:01:26Z",
"aliases": [
"CVE-2022-1062"
],
"details": "The th23 Social WordPress plugin through 1.2.0 does not sanitise and escape some of its settings, which coul... | 387 |
1,372 | <gh_stars>1000+
# Copyright 2017 The go-python Authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
## py2/py3 compat
from __future__ import print_function
import pyerrors
def div(a, b):
try:
r = pyerrors.Div(a, b)
pr... | 297 |
319 | /**
* Copyright (c) 2011, The University of Southampton and the individual 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:
*
* * Redistributions of source code must retain ... | 1,903 |
854 | <reponame>timxor/leetcode-journal<gh_stars>100-1000
__________________________________________________________________________________________________
0ms
class Solution {
public boolean isValid(String s) {
char stack[] = new char[s.length()];
int top = -1;
char current;
for(int i = ... | 1,919 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-36gv-vcm7-9gf5",
"modified": "2022-05-02T03:31:42Z",
"published": "2022-05-02T03:31:42Z",
"aliases": [
"CVE-2009-2116"
],
"details": "Directory traversal vulnerability in admin.php in SkyBlueCanvas 1.1 r237 allows remote authenticated administrators to list dir... | 475 |
545 | #include <string>
#include <iostream>
#include <fstream>
bool containAscenderOrDescender(const std::string &s) {
// Upper case letters do not included.
const std::string ascenders_and_descenders{"<KEY>"};
return s.find_first_of(ascenders_and_descenders) != std::string::npos;
}
int main() {
std::string filenam... | 405 |
626 | package org.jsmart.zerocode.jupiter.demo;
import java.util.HashMap;
import java.util.Map;
import org.apache.commons.lang.text.StrSubstitutor;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.CsvSourc... | 850 |
1,780 | package io.seata.samples.sca.customer.feign;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
/**
* Created by yu.hb on 2019-10-30
*/
@FeignClient(value = "sca-provider")
public interface P... | 151 |
45,293 | <reponame>Mu-L/kotlin
public abstract interface KtInterface /* KtInterface*/ {
public abstract void defaultFun();// defaultFun()
public abstract void withoutBody();// withoutBody()
class DefaultImpls ...
} | 62 |
828 | # -*- coding:utf-8 -*-
__author__ = 'yangjian'
"""
"""
def r2_c(y_true, y_pred):
from tensorflow.keras import backend as K
import tensorflow as tf
y_true = tf.convert_to_tensor(y_true, dtype='float32')
y_pred = tf.convert_to_tensor(y_pred, dtype='float32')
SS_res = K.sum(K.square(y_true - y_pred)... | 210 |
396 | <gh_stars>100-1000
"""
version info
"""
# @modified 20170109 - Feature #1854: Ionosphere learn
# Added learn
# __version_info__ = ('1', '1', '0')
# @modified 20210614 - Branch #1444: thunder
# __version_info__ = ('2', '1', '0')
# __version_info__ = ('2', '1', '0')
# @modified 20211109 - Bug #4308: matrixprofile - fN on... | 469 |
1,276 | #include <cstdint>
#include "common.h"
namespace soa_size_t {
struct Point {
float x[N];
float y[N];
float z[N];
};
Point ps;
void compute() {
for (std::size_t i = 0; i < N; i++) {
ps.x[i] = ps.x[i] + ps.y[i] + ps.z[i];
}
}
}
| 139 |
9,717 | <reponame>collinwright/nixpkgs
{
"name": "matrix-recorder",
"version": "0.0.6",
"description": "A recorder that can record Matrix rooms you are a member of (including E2E-encrypted rooms).",
"author": "Hello Matrix <<EMAIL>>",
"main": "matrix-recorder.js",
"scripts": {
"start": "node matrix-recorder.js"... | 358 |
343 | import re
import requests
import json
import os
import pdfkit
from bs4 import BeautifulSoup
from urllib.parse import quote
html_template = """
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
</head>
<body>
<h1>{title}</h1>
<p>{text}</p>
</body>
</html>
"""
htmls = []
num = 0
def get_data(url):
... | 2,009 |
3,444 | /**
* Copyright (c) 2018, biezhi 王爵nice (<EMAIL>)
* <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 required by ap... | 378 |
348 | <reponame>chamberone/Leaflet.PixiOverlay
{"nom":"Siorac-de-Ribérac","circ":"3ème circonscription","dpt":"Dordogne","inscrits":213,"abs":72,"votants":141,"blancs":10,"nuls":13,"exp":118,"res":[{"nuance":"SOC","nom":"<NAME>","voix":65},{"nuance":"MDM","nom":"<NAME>","voix":53}]} | 118 |
4,054 | // Copyright 2019 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.hosted.ca.restapi.mock;
import com.yahoo.component.AbstractComponent;
import com.yahoo.container.jdisc.secretstore.SecretStore;
import java.util.HashMap;
import java.util.Map;
/**
... | 343 |
372 | <gh_stars>100-1000
import requests
import logging
from zipfile import ZipFile
import subprocess
import shlex
from pathlib import Path
import json
from time import sleep
logger = logging.getLogger(__name__)
logger.setLevel(logging.DEBUG)
message = ''
code = ''
retries = 10
SUCCESS = "SUCCESS"
FAILED = "FAILED"
def s... | 1,369 |
1,442 | #ifndef KANDINSKY_COLOR_H
#define KANDINSKY_COLOR_H
#include <stdint.h>
class KDColor {
public:
constexpr KDColor() : m_value(0) {}
// FIXME: This should not be needed, and is probably wasting CPU cycles
static constexpr KDColor RGB16(uint16_t rgb) {
return KDColor(rgb);
}
static constexpr KDColor RGB24... | 615 |
5,102 | package com.nepxion.discovery.plugin.strategy.sentinel.monitor.constant;
/**
* <p>Title: Nepxion Discovery</p>
* <p>Description: Nepxion Discovery</p>
* <p>Copyright: Copyright (c) 2017-2050</p>
* <p>Company: Nepxion</p>
* @author <NAME>
* @author <NAME>
* @version 1.0
*/
public class SentinelStrategyMonitorC... | 490 |
32,544 | package com.baeldung.hibernate.audit;
import java.util.Optional;
import org.springframework.data.domain.AuditorAware;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.context.SecurityContextHolder;
public class AuditorAwareImpl implements AuditorAware<String> {
@... | 187 |
5,937 | <filename>src/Microsoft.DotNet.Wpf/src/WpfGfx/core/hw/HwLinearGradientBrush.h
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
//-----------------------------------... | 862 |
482 | <reponame>m7onov/pgjdbc-ng
package com.impossibl.jdbc.spy;
import java.lang.reflect.InvocationTargetException;
import java.sql.Connection;
import java.sql.Driver;
import java.sql.DriverManager;
import java.sql.DriverPropertyInfo;
import java.sql.SQLException;
import java.sql.SQLFeatureNotSupportedException;
import jav... | 905 |
1,916 | /* -------------------------------------------------------------------------- *
* Simbody(tm): SimTKcommon *
* -------------------------------------------------------------------------- *
* This is part of the SimTK biosimulation toolkit originating from *
... | 5,746 |
995 | // Copyright (c) 2018-2019
// <NAME>
//
// 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)
//
// The authors gratefully acknowledge the support of
// Fraunhofer and Google in producing this work
// ... | 8,113 |
438 | <reponame>eaton-lab/toyplot
# 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.
"""Functionality for performing unit conversions.
"""
import numbers
import re
def convert(value, target, default=... | 1,351 |
521 | #include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <stdarg.h>
#include <errno.h>
#include <fcntl.h>
#include <libgen.h>
#include <signal.h>
#include <net/if.h>
#include <net/ethernet.h>
#include <sys/select.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <sys/un.h>
#includ... | 5,834 |
365 | <gh_stars>100-1000
import os
import build_utils
from build_utils import MINOS_ROOT
from minos_config import Log
from minos_config import TANK_DEFAULT_IP
from minos_config import TANK_DEFAULT_PORT
from minos_config import TANK_PREREQUISITE_PYTHON_LIBS
STOP_PROCESS_SCRIPT = os.getenv("STOP_PROCESS_SCRIPT")
TANK_ROOT ... | 645 |
16,461 | #import <AVFoundation/AVFoundation.h>
#import <ExpoModulesCore/EXViewManager.h>
#import <ExpoModulesCore/EXExportedModule.h>
#import <ExpoModulesCore/EXModuleRegistryConsumer.h>
#import <EXCamera/EXCamera.h>
@interface EXCameraManager : EXViewManager <EXModuleRegistryConsumer>
@end
| 99 |
1,872 | <reponame>dragontamer8740/PixivUtil2
{
"body": {
"id": "685832",
"title": "■2019 11月 おまけ",
"coverImageUrl": "https://pixiv.pximg.net/c/1200x630_90_a2_g5/fanbox/public/images/post/685832/cover/hxpGNTfnFeTUz4tK8hlJbBZU.jpeg",
"feeRequired": 250,
"publishedDatetime": "2019-12-01T01:26:40+09:00",
"updatedDatet... | 1,281 |
826 | <gh_stars>100-1000
#pragma once
#include <map>
#include <string>
namespace weserv {
namespace nginx {
/**
* Represents a non-streaming HTTP GET-request.
*/
class HTTPRequest {
public:
/**
* HTTPRequest constructor.
*/
HTTPRequest() = default;
/**
* Request properties.
*/
const... | 738 |
5,788 | /*
* 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,977 |
372 | <filename>clients/google-api-services-content/v2.1/1.31.0/com/google/api/services/content/model/AccountStatus.java
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org... | 1,635 |
5,169 | {
"name": "NetworkState",
"version": "0.0.2",
"summary": "A very easy way to determine NetworkState",
"description": "A simple way to determine the NetworkState for your application.\nNetworkState.isConnectedToNetwork() will return a bool and you are on your way.",
"homepage": "https://github.com/garethpaul/N... | 268 |
2,151 | <reponame>zipated/src
// 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.
#include <stdint.h>
#include "base/files/file_util.h"
#include "base/strings/string_number_conversions.h"
#include "chrome/browser/... | 185 |
373 | /** @file
@copyright
Copyright 2019 - 2021 Intel Corporation. <BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#ifndef _DDR4_SPD_REGS_H_
#define _DDR4_SPD_REGS_H_
//
// DDR4 SPD Spec 4.0 Register Definitions
//
/* Byte 132 (0x084) (Registered): RDIMM Thermal Heat Spreader Solution */
... | 661 |
4,640 | /*
* 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 ... | 1,320 |
1,473 | /*
* Copyright 2019 NAVER 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 applicable law or agreed to in w... | 517 |
514 | <reponame>programmerjake/microwatt
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <termios.h>
#include <unistd.h>
#include <poll.h>
#include "sim_vhpi_c.h"
/* Should we exit simulation on ctrl-c or pass it through? */
#define EXIT_ON_CTRL_C
static struct t... | 751 |
1,145 | #pragma once
#include <rapidjson/rapidjson.h>
#include <common/SignalVector.hpp>
#include "providers/irc/IrcChannel2.hpp"
#include "providers/irc/IrcServer.hpp"
class QAbstractTableModel;
namespace chatterino {
enum class IrcAuthType { Anonymous, Custom, Pass, Sasl };
struct IrcServerData {
QString host;
... | 567 |
8,629 | #pragma once
#include <Core/BackgroundSchedulePool.h>
#include <atomic>
#include <memory>
#include <string>
namespace DB
{
class FileLogDirectoryWatcher;
class DirectoryWatcherBase : WithContext
{
/// Most of code in this class is copy from the Poco project:
/// https://github.com/ClickHouse-Extras/poco/blo... | 1,062 |
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... | 906 |
940 | <filename>tests/examplefiles/noexcept.cpp
void* operator new (std::size_t size);
void* operator new (std::size_t size, const std::nothrow_t& nothrow_value) noexcept;
void* operator new (std::size_t size, const std::nothrow_t& nothrow_value)noexcept;
void* operator new (std::size_t size, const std::nothrow_t& nothrow_va... | 161 |
394 | <filename>jaxrs-delegates/src/test/java/org/wso2/msf4j/delegates/MediaTypeHeaderProviderTest.java
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. Th... | 1,222 |
794 | <reponame>kingBook/cross-2.1.5<filename>CrossApp/platform/win32/CCApplication.cpp
#include "CCApplication.h"
#include "CCEGLView.h"
#include "basics/CAApplication.h"
#include <algorithm>
#include "platform/CAFileUtils.h"
/**
@brief This function change the PVRFrame show/hide setting in register.
@param bEnable If t... | 3,142 |
310 | import dash
import dash_core_components as dcc
import dash_html_components as html
from dash.dependencies import Input, Output
import dash
import dash_bootstrap_components as dbc
from jupyter_dash import JupyterDash
from .apps import cohort_app
class cohort():
def __init__(self, x_test, model):
self.data ... | 931 |
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... | 1,129 |
5,939 | package io.grpc.override;
import java.util.logging.Level;
import java.util.logging.Logger;
import scala.Option;
import scala.Some;
import com.twitter.util.Local;
import io.grpc.Context;
import io.grpc.Context.Storage;
/**
* A default implementation of grpc-context's Storage that is compatible
* with Twitter `Fut... | 492 |
2,326 | <filename>src/rime/language.cc
//
// Copyright RIME Developers
// Distributed under the BSD License
//
#include <rime/common.h>
#include <rime/language.h>
namespace rime {
// "luna_pinyin.extra" has language component "luna_pinyin".
string Language::get_language_component(const string& name) {
size_t dot = name.fin... | 157 |
603 | /* Copyright (c) 2014-2018, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of ... | 2,447 |
528 | import numpy as np
from opytimark.markers.n_dimensional import Rastrigin, Sphere
from opytimizer import Opytimizer
from opytimizer.functions import WeightedFunction
from opytimizer.optimizers.swarm import PSO
from opytimizer.spaces import SearchSpace
# Random seed for experimental consistency
np.random.seed(0)
# Num... | 279 |
2,996 | <reponame>Elyahu41/Terasology
// Copyright 2021 The Terasology Foundation
// SPDX-License-Identifier: Apache-2.0
package org.terasology.engine.identity.storageServiceClient;
import org.terasology.engine.identity.ClientIdentity;
import org.terasology.engine.identity.PrivateIdentityCertificate;
import org.terasology.eng... | 551 |
852 |
#ifndef DataFormats_SiStripCommon_SiStripConstants_H
#define DataFormats_SiStripCommon_SiStripConstants_H
#include "DataFormats/SiStripCommon/interface/Constants.h"
#include "DataFormats/SiStripCommon/interface/ConstantsForCablingSource.h"
#include "DataFormats/SiStripCommon/interface/ConstantsForCommissioningAnalysi... | 365 |
5,169 | <reponame>Gantios/Specs
{
"name": "ZoomPlugin",
"version": "1.0.1",
"summary": "ZoomPlugin for FaceAPI",
"license": {
"type": "commercial",
"text": " MIT\n"
},
"homepage": "https://regulaforensics.com",
"authors": {
"RegulaForensics": "<EMAIL>"
},
"source": {
"http": "h... | 273 |
532 | #ifndef OPENSIM_MOCO_ABOUT_H_
#define OPENSIM_MOCO_ABOUT_H_
/* -------------------------------------------------------------------------- *
* OpenSim: About.h *
* -------------------------------------------------------------------------- *
* Copyright (c) 201... | 740 |
310 | package com.playtika.test.common.properties;
import com.github.dockerjava.api.model.Capability;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.With;
import org.springframework.validation.annotation.Validated;
import org.testcontainers.containers.BindMode;
import j... | 1,098 |
22,040 | <gh_stars>1000+
import pytest
from spacy.util import compile_prefix_regex
from spacy.lang.punctuation import TOKENIZER_PREFIXES
PUNCT_OPEN = ["(", "[", "{", "*"]
PUNCT_CLOSE = [")", "]", "}", "*"]
PUNCT_PAIRED = [("(", ")"), ("[", "]"), ("{", "}"), ("*", "*")]
@pytest.mark.parametrize("text", ["(", "((", "<"])
def ... | 1,784 |
2,674 | <gh_stars>1000+
// Copyright (c) 2018 Microsoft Corporation
// Licensed under the MIT license.
// Author: <NAME> <<EMAIL>>
#ifndef INTERACTION_CORE_HPP
#define INTERACTION_CORE_HPP
#include <stdlib.h> // free
#include <stddef.h> // size_t, ptrdiff_t
#include <limits> // numeric_limits
#include <atomic>
#include "ebm... | 1,324 |
1,540 | package test.listeners;
import org.testng.Assert;
import org.testng.TestNG;
import org.testng.annotations.Test;
import test.SimpleBaseTest;
public class ResultContextTest extends SimpleBaseTest {
@Test
public void testResultContext() {
TestNG tng = create(ResultContextListenerSample.class);
tng.run();
... | 141 |
407 | <filename>plugins/gui/src/selection_details_widget/tree_navigation/selection_tree_view.cpp
#include "gui/selection_details_widget/tree_navigation/selection_tree_view.h"
#include "gui/graph_widget/contexts/graph_context.h"
#include "gui/gui_globals.h"
#include "gui/selection_details_widget/tree_navigation/selection_tre... | 3,316 |
376 | <reponame>15five/django-pg-zero-downtime-migrations
# Generated by Django 3.0a1 on 2019-10-14 19:39
import django.contrib.postgres.indexes
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('good_flow_app', '0027_drop_brin_index'),
]
operations = [... | 296 |
403 | #include "vg_util.h"
#include <vg/vg.h>
#include <bx/bx.h>
#if VG_CONFIG_ENABLE_SIMD && BX_CPU_X86
#include <xmmintrin.h>
#include <immintrin.h>
#endif
BX_PRAGMA_DIAGNOSTIC_IGNORED_GCC("-Wimplicit-fallthrough=0")
namespace vgutil
{
bool invertMatrix3(const float* __restrict t, float* __restrict inv)
{
// nvgTransfo... | 9,781 |
2,322 | /*
* objsel.h
*
* Object Picker Dialog
*
* THIS SOFTWARE IS NOT COPYRIGHTED
*
* This source code is offered for use in the public domain. You may
* use, modify or distribute it freely.
*
* This code is distributed in the hope that it will be useful but
* WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLI... | 2,929 |
4,625 | <gh_stars>1000+
// Copyright 2017 JanusGraph 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 applica... | 1,611 |
381 | from rpython.rlib.parsing.regexparse import make_runner
def test_simple():
r = make_runner("a*")
assert r.recognize("aaaaa")
assert r.recognize("")
assert not r.recognize("aaaaaaaaaaaaaaaaaaaaaaaaaa ")
r = make_runner("a*bc|d")
assert r.recognize("aaaaabc")
assert r.recognize("bc")
as... | 3,092 |
1,264 | /*
* Copyright 2016-2021 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... | 531 |
5,169 | <reponame>Gantios/Specs
{
"name": "BOSEngine",
"version": "0.0.1",
"summary": "This is the framw work used for BOSEngine",
"description": "This is the framw work used for Bos activities",
"homepage": "https://github.com/appsfreedom1/BOS-Framework",
"license": "MIT",
"authors": {
"vishnu": "<EMAIL>"
... | 215 |
370 | #pragma once
#include "Trinity.TSL.CodeGen.h"
#include "OptionalFieldCalculator.h"
#include "AccessorType.h"
#include <string>
#include "SyntaxNode.h"
using std::string;
namespace Trinity
{
namespace Codegen
{
extern std::string target_namespace;
extern bool contains_substring_index;
... | 2,082 |
1,040 | <filename>Src/Vessel/Quadcopter/PropulsionSubsys.h
// Copyright (c) <NAME>
// Licensed under the MIT License
#ifndef __PROPULSIONSUBSYS_H
#define __PROPULSIONSUBSYS_H
#include "QuadcopterSubsys.h"
class Rotor;
class PropulsionSubsystem : public QuadcopterSubsystem {
public:
PropulsionSubsystem(Quadcopter *qc);
do... | 826 |
615 | /* ************************************************************************
* Copyright 2013 Advanced Micro Devices, 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... | 3,434 |
521 | /**
* @file src/dwarfparser/dwarf_resources.cpp
* @brief Implementation of classes representing resources.
* @copyright (c) 2017 Avast Software, licensed under the MIT license
*/
#include <iostream>
#include "retdec/dwarfparser/dwarf_resources.h"
using namespace std;
namespace retdec {
namespace dwarfparser {
... | 1,736 |
7,857 | <reponame>NeryHenrique/nodegui<gh_stars>1000+
#pragma once
#include <napi.h>
#include <QPointer>
#include "Extras/Export/export.h"
#include "QtWidgets/QWidget/qwidget_macro.h"
#include "nlcdnumber.hpp"
class DLL_EXPORT QLCDNumberWrap : public Napi::ObjectWrap<QLCDNumberWrap> {
QWIDGET_WRAPPED_METHODS_DECLARATION
... | 356 |
746 | package org.protege.editor.core;
/**
* <NAME>
* Stanford Center for Biomedical Informatics Research
* 7 Nov 2016
*/
public interface HasUpdateState {
/**
* Update the state of this object
*/
void updateState();
}
| 78 |
348 | <gh_stars>100-1000
{"nom":"Fargues-sur-Ourbise","circ":"2ème circonscription","dpt":"Lot-et-Garonne","inscrits":330,"abs":164,"votants":166,"blancs":13,"nuls":7,"exp":146,"res":[{"nuance":"REM","nom":"<NAME>","voix":91},{"nuance":"FN","nom":"<NAME>","voix":55}]} | 108 |
1,059 | /* SPDX-License-Identifier: BSD-2-Clause */
#include <tilck/common/basic_defs.h>
#include <tilck/common/assert.h>
#include <tilck/common/string_util.h>
#include <tilck/common/fat32_base.h>
/*
* The following code uses in many cases the CamelCase naming convention
* because it is based on the Microsoft's public doc... | 10,842 |
4,606 | from dagster import repository
@repository(name="repo_one")
def repo_one_symbol():
return []
@repository
def repo_two():
return []
| 53 |
1,850 | package com.alibaba.jvm.sandbox.repeater.plugin.core.impl;
import com.alibaba.jvm.sandbox.repeater.plugin.core.cache.RepeatCache;
import com.alibaba.jvm.sandbox.repeater.plugin.core.trace.SequenceGenerator;
import com.alibaba.jvm.sandbox.repeater.plugin.domain.Invocation;
import com.alibaba.jvm.sandbox.repeater.plugin... | 1,634 |
647 | <gh_stars>100-1000
import torch
import numpy as np
import torch.nn.functional as F
import torch.optim as optim
from deeprobust.graph.defense import GCN
from deeprobust.graph.global_attack import Random
from deeprobust.graph.targeted_attack import Nettack
from deeprobust.graph.utils import *
from deeprobust.graph.data i... | 1,621 |
634 | <filename>modules/base/analysis-impl/src/main/java/com/intellij/codeHighlighting/EditorBoundHighlightingPass.java
/*
* 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 ... | 559 |
877 | <filename>osint/gravatar.py
#!/usr/bin/env python
# Copyright (c) 2013, LCI Technology Group, LLC
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# Redistributions of source code must retain th... | 2,726 |
551 | #include "Etterna/Globals/global.h"
#include "ActorUtil.h"
#include "Quad.h"
#include "RageUtil/Graphics/RageTextureManager.h"
REGISTER_ACTOR_CLASS(Quad);
Quad::Quad()
{
Load(TEXTUREMAN->GetDefaultTextureID());
}
void
Quad::LoadFromNode(const XNode* pNode)
{
// HACK: Bypass Sprite's texture loading. Sprite should... | 148 |
1,599 | # This code is part of Qiskit.
#
# (C) Copyright IBM 2017, 2019.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivat... | 2,811 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.