max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
852 | #ifndef __RecoParticleFlow_Benchmark_Matchers__
#define __RecoParticleFlow_Benchmark_Matchers__
#include "DataFormats/Math/interface/deltaR.h"
#include "DataFormats/MuonReco/interface/MuonSelectors.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "FWCor... | 1,672 |
591 | <reponame>howyu88/vnpy2
/*!
@file
@copyright <NAME> and <NAME> 2015-2017
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
#ifndef BOOST_BRIGAND_ALGORITHMS_NONE_HPP
#define BOOST_BRIGAND_ALGORITHMS_NONE_HPP
#include <brigand/algorithms/all.hpp>
#include <brigand/algorithms/detail/non_n... | 1,086 |
329 | <reponame>zviri/pdftotree
from typing import Tuple
TOLERANCE = 5
def doOverlap(bbox1, bbox2):
"""
:param bbox1: bounding box of the first rectangle
:param bbox2: bounding box of the second rectangle
:return: 1 if the two rectangles overlap
"""
if bbox1[2] < bbox2[0] or bbox2[2] < bbox1[0]:
... | 2,571 |
1,350 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.ai.textanalytics.implementation;
import com.azure.ai.textanalytics.models.TextDocumentBatchStatistics;
import com.azure.ai.textanalytics.util.RecognizeCustomEntitiesResultCollection;
/**
* The helper cl... | 644 |
394 | <gh_stars>100-1000
/*
* Copyright (c) 2016 WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you 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
*
* ... | 1,204 |
1,581 | <gh_stars>1000+
//
// PullToRefreshExampleViewController.h
// AppDevKit
//
// Created by <NAME> on 12/6/15.
// Copyright © 2015, Yahoo Inc.
// Licensed under the terms of the BSD License.
// Please see the LICENSE file in the project root for terms.
//
#import <UIKit/UIKit.h>
@interface PullToRefreshExampleView... | 119 |
975 | from .http_proxy import HttpProxy, HttpUpstreamProxy
from .socks_proxy import SocksUpstreamProxy
__all__ = [
"HttpProxy", "HttpUpstreamProxy",
"SocksUpstreamProxy",
]
| 63 |
665 | import time
import array
import board
import busio
import audiobusio
import displayio
from adafruit_st7789 import ST7789
from adafruit_bitmap_font import bitmap_font
from adafruit_display_text import label
#---| User Configuration |---------------------------
SAMPLERATE = 16000
SAMPLES = 1024
THRESHOLD = 100
MIN_DELTA... | 1,605 |
310 | <reponame>dreeves/usesthis
{
"name": "EOS C500 Mark II",
"description": "A digital cinema camera.",
"url": "https://www.usa.canon.com/internet/portal/us/home/products/details/cameras/cinema-eos/cinema-eos-c500-mark-ii"
}
| 95 |
312 | <filename>core/sail/nativerdf/src/test/java/org/eclipse/rdf4j/sail/nativerdf/NativeGraphQueryResultTest.java
/*******************************************************************************
* Copyright (c) 2015 Eclipse RDF4J contributors, Aduna, and others.
* All rights reserved. This program and the accompanying mat... | 333 |
450 | <gh_stars>100-1000
import exceptions
class Data:
class DataError(exceptions.ValueError): pass
def __init__(self, value):
self.value = value
def get_value(self):
return self.value
| 81 |
597 | package com.xiaojukeji.kafka.manager.web.api.versionone.thirdpart;
import com.xiaojukeji.kafka.manager.common.entity.Result;
import com.xiaojukeji.kafka.manager.common.entity.ResultStatus;
import com.xiaojukeji.kafka.manager.common.entity.dto.op.topic.TopicCreationDTO;
import com.xiaojukeji.kafka.manager.common.entity... | 2,342 |
1,444 | package mage.cards.s;
import mage.MageInt;
import mage.abilities.costs.mana.ManaCostsImpl;
import mage.abilities.keyword.SpectacleAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubType;
import java.util.UUID;
/**
* @author TheElk801
*/
publ... | 390 |
575 | <gh_stars>100-1000
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/download/public/common/download_stats.h"
#include <map>
#include "base/callback.h"
#include "base/files/file_pat... | 12,051 |
410 | <filename>Giveme5W1H/examples/datasets/bbc/data/nodate/_50925424df5333e6032217a02669f9ec31f2cb4c8be41b60d7c8b161.json
{
"dId": "50925424df5333e6032217a02669f9ec31f2cb4c8be41b60d7c8b161",
"title": "Brown shrugs off economy fears",
"text": "<NAME> is to freeze petrol duty increases, fund a \u00a31bn package to avoi... | 1,003 |
837 | <gh_stars>100-1000
# -*- coding: utf-8 -*-
import time
from urllib.parse import urlparse
import requests
from utils import *
# 全局配置
config = getYmlConfig()
session = requests.session()
user = config['user']
# Cpdaily-Extension
extension = {
"lon": user['lon'],
"model": "PCRT00",
"appVersion": "8.0.8",
... | 5,004 |
320 | <filename>build/3rdparty_libraries.py
# Prints which 3rd party libraries are desired for the given configuration.
from components import requiredLibrariesFor
from configurations import getConfiguration
from libraries import allDependencies, librariesByName
from packages import iterDownloadablePackages
def main(platfo... | 337 |
377 | """Script demonstrating the use of `gym_pybullet_drones`' Gym interface.
Class TakeoffAviary is used as a learning env for the A2C and PPO algorithms.
Example
-------
In a terminal, run as:
$ python learn.py
Notes
-----
The boolean argument --rllib switches between `stable-baselines3` and `ray[rllib]`.
This is ... | 2,059 |
2,151 | // Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_SUBRESOURCE_FILTER_CONTENT_RENDERER_AD_DELAY_RENDERER_METADATA_PROVIDER_H_
#define COMPONENTS_SUBRESOURCE_FILTER_CONTENT_RENDERER_AD_DE... | 518 |
307 | <filename>bonecp/src/test/java/com/jolbox/bonecp/reportedIssues/BoneCpDataSourceTest.java
/**
* Copyright 2010 <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
*
* ... | 3,516 |
1,200 | #ifndef CarreraConsumer_H
#define CarreraConsumer_H
#include "SimpleCarreraClient.h"
#include "ServiceDiscoveryService.h"
#include <string>
#include <map>
#include <vector>
#include <pthread.h>
#include <thrift/concurrency/Thread.h>
#include <thrift/concurrency/Mutex.h>
#include <boost/shared_ptr.hpp>
#include <mutex... | 2,450 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-88xw-p4fq-6x82",
"modified": "2022-04-30T18:18:13Z",
"published": "2022-04-30T18:18:13Z",
"aliases": [
"CVE-2001-1532"
],
"details": "WebX stores authentication information in the HTTP_REFERER variable, which is included in URL links within bulletin board messa... | 385 |
777 | // 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 "ios/chrome/browser/ios_chrome_field_trials.h"
#include "base/metrics/field_trial.h"
#include "components/ntp_tiles/field_trial.h"
#include "com... | 257 |
354 | <filename>libs/krabs/kernel_guids.hpp
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#pragma once
#include <guiddef.h>
#include "compiler_check.hpp"
namespace krabs { namespace guids {
DEFINE_GUID ( /* 45d8cccd-... | 1,829 |
481 | <reponame>datapane/datapane
# flake8: noqa isort:skip
import os
import sys
from pathlib import Path
from unittest import mock
import subprocess
import pytest
if not (sys.platform == "linux" and sys.version_info.minor >= 7):
pytest.skip("skipping linux-only 3.7+ tests", allow_module_level=True)
import datapane as... | 2,259 |
1,472 | import json
from os import stat
JSONDecodeError = json.decoder.JSONDecodeError if hasattr(
json.decoder, "JSONDecodeError") else ValueError
class MuxError(Exception):
""" Mutex error """
class MuxConnectError(MuxError, ConnectionError):
""" Error when MessageType: Connect """
class WDAError(Exceptio... | 937 |
1,275 | <reponame>maiot-io/zenml
# Copyright (c) ZenML GmbH 2021. 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,769 |
870 | <gh_stars>100-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, Version 2.0 (the
... | 1,206 |
945 | /*=========================================================================
*
* Copyright NumFOCUS
*
* 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.or... | 1,027 |
938 | <reponame>SusionSuc/DevTools
/*
* Tencent is pleased to support the open source community by making wechat-matrix available.
* Copyright (C) 2018 THL A29 Limited, a Tencent company. All rights reserved.
* Licensed under the BSD 3-Clause License (the "License");
* you may not use this file except in compliance with ... | 1,841 |
1,511 | <filename>tests/cluecode/data/ics/iptables-extensions/libxt_connmark.c
/* Shared library add-on to iptables to add connmark matching support.
*
* (C) 2002,2004 MARA Systems AB <http://www.marasystems.com>
* by <NAME> <<EMAIL>>
* | 82 |
714 | <reponame>martbelko/OpenXLSX
#include <OpenXLSX.hpp>
#include <iostream>
using namespace std;
using namespace OpenXLSX;
int main()
{
cout << "********************************************************************************\n";
cout << "DEMO PROGRAM #02: Formulas\n";
cout << "***************************... | 969 |
369 | /** @file
@brief Header
@date 2015
@author
Sensics, Inc.
<http://sensics.com/osvr>
@author
<NAME>
*/
// Copyright 2015 Sensics, Inc.
// TypePack is part of OSVR-Core.
//
// Incorporates code from "meta":
// Copyright <NAME> 2014-2015
//
// Use, modification and distribution is subject to... | 568 |
1,444 | <reponame>GabrielSturtevant/mage<gh_stars>1000+
package mage.cards.f;
import java.util.UUID;
import mage.abilities.effects.Effect;
import mage.abilities.effects.common.DamageMultiEffect;
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
import mage.abilities.effects.common.TapTargetEffect;
import m... | 562 |
903 | /*
* 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,753 |
325 | package com.box.l10n.mojito.service.tm;
import com.google.common.cache.Cache;
import com.google.common.cache.CacheBuilder;
import com.google.common.cache.CacheLoader;
import com.google.common.cache.LoadingCache;
import org.springframework.stereotype.Component;
import java.util.Optional;
import java.util.regex.Matcher... | 478 |
610 | <filename>tools/invert.cpp
#include <algorithm>
#include <thread>
#include <vector>
#include "CLI/CLI.hpp"
#include "gsl/span"
#include "pstl/algorithm"
#include "pstl/execution"
#include "spdlog/spdlog.h"
#include "tbb/global_control.h"
#include "tbb/task_group.h"
#include "app.hpp"
#include "binary_collection.hpp"
... | 467 |
482 | <gh_stars>100-1000
package io.cattle.platform.util.resource;
import java.io.IOException;
import java.net.URL;
import java.util.List;
public interface ResourceLoader {
List<URL> getResources(String path) throws IOException;
}
| 76 |
777 | // Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_WEBSHARE_SHARE_SERVICE_IMPL_H_
#define CHROME_BROWSER_WEBSHARE_SHARE_SERVICE_IMPL_H_
#include <string>
#include "base/gtest_prod_... | 782 |
1,664 | /*
* 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,174 |
3,084 | <gh_stars>1000+
// Copyright (C) Microsoft Corporation, All Rights Reserved.
//
// Abstract:
// This module contains the implementation of entry and exit point of activity sample driver.
//
// Environment:
// Windows User-Mode Driver Framework (UMDF)
#pragma once
WDF_EXTERN_C_START
DRIVER_INITIAL... | 151 |
809 | <gh_stars>100-1000
/**
* @file
*
* @date Oct 15, 2013
* @author: <NAME>
*/
#ifndef THREAD_CANCEL_ENABLE_H_
#define THREAD_CANCEL_ENABLE_H_
#define CLEANUPS_QUANTITY \
OPTION_MODULE_GET(embox__kernel__thread__thread_cancel_enable, \
NUMBER, cleanups_quantity)
struct thread_cleanup {
void (*routine)(void *);... | 226 |
890 | /*
*
* Copyright 2019 Asylo 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 applicable law or agree... | 540 |
739 | <gh_stars>100-1000
{
"id": "575756b5-b3e7-4333-9667-61f540e5dd5e",
"name": "<NAME>",
"img": "https://res.cloudinary.com/jthouk/image/upload/w_200,c_fill,ar_1:1,g_auto,r_max/v1582802281/Profiles/IMG_0600_swphdi.png",
"email":"",
"links": {
"website": "https://jt.houk.space",
"linkedin": "https://www.li... | 253 |
1,273 | <filename>src/main/java/org/broadinstitute/hellbender/tools/spark/PileupSpark.java
package org.broadinstitute.hellbender.tools.spark;
import htsjdk.tribble.Feature;
import org.apache.spark.api.java.JavaRDD;
import org.apache.spark.api.java.JavaSparkContext;
import org.apache.spark.api.java.function.Function;
import or... | 3,817 |
689 | /*
* Copyright (C) Advanced Micro Devices, Inc. 2019. ALL RIGHTS RESERVED.
* See file LICENSE for terms.
*/
#ifndef UCT_ROCM_COPY_IFACE_H
#define UCT_ROCM_COPY_IFACE_H
#include <uct/base/uct_iface.h>
#include <hsa.h>
#define UCT_ROCM_COPY_TL_NAME "rocm_cpy"
typedef uint64_t uct_rocm_copy_iface_addr_t;
typed... | 456 |
3,215 | <filename>tests/fixtures/ubuntu-18.04/blkid-ip-udev-multi.json
[{"id_fs_uuid": "011527a0-c72a-4c00-a50e-ee90da26b6e2", "id_fs_uuid_enc": "011527a0-c72a-4c00-a50e-ee90da26b6e2", "id_fs_version": "1.0", "id_fs_type": "ext4", "id_fs_usage": "filesystem", "id_iolimit_minimum_io_size": 512, "id_iolimit_physical_sector_size"... | 490 |
777 | // Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef PRINTING_BACKEND_CUPS_IPP_UTIL_H_
#define PRINTING_BACKEND_CUPS_IPP_UTIL_H_
#include <vector>
#include "base/strings/string_piece.h"
#include "p... | 675 |
696 | <reponame>hwang-pku/Strata
/*
* Copyright (C) 2015 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.strata.product.swap;
import static com.opengamma.strata.collect.TestHelper.assertSerialization;
import static com.opengamma.strata.co... | 1,253 |
923 | <filename>Yet-Another-EfficientDet-Pytorch/efficientdet/utils.py
import itertools
import torch
import torch.nn as nn
import numpy as np
class BBoxTransform(nn.Module):
def forward(self, anchors, regression):
"""
decode_box_outputs adapted from https://github.com/google/automl/blob/master/efficient... | 2,403 |
692 | void
test_estimator ()
{
gsl_vector_view c;
gsl_matrix_view cov;
gsl_vector_view x;
double y, y_err;
double cov_ij[25] = {
4.271520, -0.526675, 0.957930, 0.267750, -0.103610,
-0.526675, 5.701680, -0.098080, 0.641845, 0.429780,
0.957930, -0.098080, 4.584790, 0.375865, 1.510810,
0... | 595 |
56,632 | <gh_stars>1000+
from __future__ import print_function
import sys
import cv2 as cv
## [global_variables]
use_mask = False
img = None
templ = None
mask = None
image_window = "Source Image"
result_window = "Result window"
match_method = 0
max_Trackbar = 5
## [global_variables]
def main(argv):
if (len(sys.argv) < 3... | 1,225 |
1,585 | /*
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
* University Research and Technology
* Corporation. All rights reserved.
* Copyright (c) 2004-2005 The University of Tennessee and The University
* of Tennessee Resea... | 1,492 |
2,151 | /*
* Copyright (c) 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 grant can be found
* in the file PATENTS. All contribut... | 3,117 |
806 | package com.fihtdc.push_system.lib.app;
import android.app.Service;
import android.content.Intent;
import android.graphics.Bitmap;
import android.os.Bundle;
import android.os.IBinder;
import android.os.RemoteException;
import com.fihtdc.push_system.lib.app.IFihPushReceiveService.Stub;
import com.fihtdc.push_system.lib... | 909 |
1,131 | <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, Version 2.0
// (the "L... | 2,481 |
1,062 | //
// Generated by class-dump 3.5b1 (64 bit) (Debug version compiled Dec 3 2019 19:59:57).
//
// Copyright (C) 1997-2019 <NAME>.
//
#import <objc/NSObject.h>
@interface MCImageJunkMetadata : NSObject
{
unsigned long long _pixelCount; // 8 = 0x8
unsigned long long _byteCount; // 16 = 0x10
BOOL _isAni... | 570 |
4,054 | <gh_stars>1000+
package org.eclipse.fx.drift.internal;
import java.time.Duration;
import java.util.LinkedList;
import java.util.Queue;
public class FPSCounter {
long lastFrame;
Queue<Long> framesTimes = new LinkedList<>();
double avgFps;
public void frame() {
long lastFrameDur = System.nanoTime() - lastFram... | 306 |
450 | #include <pspsdk.h>
#include <psppower.h>
#include <pspkernel.h>
#include <pspsuspend.h>
#include <pspsysevent.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <malloc.h>
#include "../kernel/kernel.h"
//#define DEBUG_MALLOC_P5
#ifdef DEBUG_MALLOC_P5
unsigned int malloc_p5_memory_used = 0;
#endif... | 1,718 |
3,102 | // Check that -no-integrated-as works when -target i386-pc-win32-macho or
// -target x86_64-pc-win32-macho is specified.
// RUN: %clang -### -c -target i386-pc-win32-macho -no-integrated-as %s 2> %t1
// RUN: FileCheck -check-prefix=X86 < %t1 %s
// RUN: %clang -### -c -target x86_64-pc-win32-macho -no-integrated-as %s ... | 252 |
623 | <filename>java/com/google/gerrit/entities/converter/PatchSetProtoConverter.java
// 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
//
//... | 1,438 |
945 | <reponame>the-gates-of-Zion/zero-shot-gcn
from __future__ import print_function
import argparse
import json
import numpy as np
import os
import pickle as pkl
import scipy.io as sio
import time
def test_imagenet_zero(fc_file_pred, has_train=1):
with open(classids_file_retrain) as fp:
classids = json.load(... | 4,008 |
2,724 | <filename>src/sap.ui.fl/test/sap/ui/fl/qunit/testResources/condenser/mixIndexNonIndexNonExisting.json
[
{
"id": "id_1576562312431_44_renameField",
"changeType": "renameField",
"reference": "sap.ui.rta.test.Component",
"content": {
"originalControlType": "sap.ui.comp.smartform.GroupElement"
},
"selector"... | 2,561 |
918 | /*
* 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 ... | 815 |
1,658 | /*
Copyright 2015 shizhefei(LuckyJayce)
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 writing, sof... | 1,603 |
813 | <gh_stars>100-1000
"""Utility functions for testing only."""
from contextlib import contextmanager
from multiprocessing import Process
import time
from bowtie import View
from bowtie._component import Component
def reset_uuid():
"""Reset the uuid counter for components."""
# pylint: disable=protected-access... | 207 |
2,399 | //
// SJClipsSaveResultToAlbumHandler.h
// SJVideoPlayer
//
// Created by 畅三江 on 2019/1/20.
// Copyright © 2019 畅三江. All rights reserved.
//
#import <Foundation/Foundation.h>
@protocol SJVideoPlayerClipsResult;
NS_ASSUME_NONNULL_BEGIN
typedef enum : NSUInteger {
SJClipsSaveResultToAlbumFailedReasonAuthDenied,... | 305 |
7,137 | <filename>server-core/src/main/java/io/onedev/server/web/util/LoadableDetachableDataProvider.java
package io.onedev.server.web.util;
import org.apache.wicket.extensions.markup.html.repeater.util.SortableDataProvider;
@SuppressWarnings("serial")
public abstract class LoadableDetachableDataProvider<T, S> extends Sortab... | 191 |
3,556 | <reponame>peng4217/scylla<filename>tests/test_loggings.py
import logging
def test_basic_logging(caplog):
caplog.set_level(logging.INFO)
logging.info('foo')
assert 'foo' in caplog.text
| 84 |
2,728 | <reponame>adityasingh1993/azure-core<filename>tests/async_tests/test_rest_trio_transport.py
# -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See LICENSE.txt in the project root for
# license informat... | 1,070 |
1,604 | import sys, re, json
from xml.etree import ElementTree
def insert_n(s, nb):
sout = ""
def sub(g):
if g.group(2):
a, b = int(g.group(1)), int(g.group(2)[1:])
return nb[-a - 1:-b or None]
else:
a = int(g.group(1))
return nb[-a - 1]
s = re.sub(r... | 2,070 |
1,561 | <filename>include/ode/ode/fluid_dynamics/fluid_dynamics.h
/*************************************************************************
* *
* Open Dynamics Engine, Copyright (C) 2001-2003 <NAME>. *
* All rights reserved. Email: <EMAIL> Web: ... | 5,137 |
553 | <filename>Example/MUKit/ImageCache/Cells/FlyImageTableViewCell.h
//
// FlyImageTableViewCell.h
// Demo
//
// Created by <NAME> on 4/14/16.
// Copyright © 2016 NorrisTong. All rights reserved.
//
#import "BaseTableViewCell.h"
@interface FlyImageTableViewCell : BaseTableViewCell
@end
| 102 |
377 | /**
* Copyright 2012 Impetus Infotech.
*
* 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 ag... | 3,442 |
1,734 | <reponame>Knase23/Starcraft2AiTesting
#include "sc2api/sc2_score.h"
#include <iostream>
#include <cassert>
#include "s2clientprotocol/sc2api.pb.h"
namespace sc2 {
CategoryScoreDetails::CategoryScoreDetails() :
none(0.0f),
army(0.0f),
economy(0.0f),
technology(0.0f),
upgrade(0.0f) {
}
VitalSc... | 570 |
918 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 3,464 |
1,083 | <filename>src/dale/Form/Literal/Literal.h
#ifndef DALE_FORM_LITERAL
#define DALE_FORM_LITERAL
#include "../../Context/Context.h"
#include "../../Node/Node.h"
#include "../../Units/Units.h"
namespace dale {
/*! Convert an integer token into a parse result.
* @param ctx The context.
* @param wanted_type The type of... | 984 |
2,757 | <filename>2021/quals/rev-polymorph/targets/make_all_builds.py
#!/usr/bin/python3
# Copyright 2021 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/lic... | 1,652 |
5,169 | {
"name": "iOS_SDK_Test",
"version": "1.0.0",
"summary": "iOS_SDK_Test for CocoaPod Testing",
"description": " A longer description of iOS_SDK_Test in Markdown format.\n\n * Think: Why did you write this? What is the focus? What does it do?\n * CocoaPods wil... | 538 |
622 | <reponame>ahakingdom/Rusthon
from runtime import *
'''
__getattr__, @property, and class attributes
'''
class A:
X = 'A'
## not allowed - will raise SyntaxError at compile time ##
def __getattr__(self, name):
if name == 'hello':
return 100
elif name == 'world':
return 200
else:
return 300
class B(A)... | 443 |
679 | <filename>main/comphelper/source/streaming/streamsection.cxx
/**************************************************************
*
* 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
* regar... | 1,393 |
1,306 | /*
* Copyright (C) 2012 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 6,675 |
803 | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#include "CcLayerUnit.hxx"
// Shouldn't _countof() be included in cc.hxx
#include <stdlib.h>
CUnitTest( CcCountofReturnsCorrectSize, 0x0, "Tests the _countof() operator." );
ERR CcCountofReturnsCorrectSize::ErrTest()
{
ERR err = JET_err... | 608 |
682 | /**CFile****************************************************************
FileName [sfmDec.c]
SystemName [ABC: Logic synthesis and verification system.]
PackageName [SAT-based optimization using internal don't-cares.]
Synopsis [SAT-based decomposition.]
Author [<NAME>]
Affiliation [UC Ber... | 45,891 |
66,985 | <reponame>techAi007/spring-boot<filename>spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/web/jetty/AbstractJettyMetricsBinder.java
/*
* Copyright 2012-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may no... | 602 |
852 | #include "CondCore/DBCommon/interface/DBWriter.h"
#include "CondCore/IOVService/interface/IOV.h"
#include "CondCore/MetaDataService/interface/MetaData.h"
#include "FWCore/Framework/interface/IOVSyncValue.h"
#include "SealKernel/Service.h"
#include "POOLCore/POOLContext.h"
#include "SealKernel/Context.h"
#include <strin... | 2,320 |
653 | <filename>llvm/tools/llvm-reduce/deltas/ReduceSpecialGlobals.cpp
//===- ReduceSpecialGlobals.cpp - Specialized Delta Pass ------------------===//
//
// 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: A... | 677 |
611 | // DejaLu
// Copyright (c) 2015 <NAME>. All rights reserved.
#ifndef __dejalu__HMMailDBAddFolderOperation__
#define __dejalu__HMMailDBAddFolderOperation__
#include <MailCore/MailCore.h>
#include "HMMailDBOperation.h"
#ifdef __cplusplus
namespace hermes {
class MailDBAddFolderOperation : public MailDBOperation {... | 350 |
679 | <filename>main/odk/examples/DevelopersGuide/Database/CodeSamples.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... | 4,538 |
2,151 | <gh_stars>1000+
# Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | 6,524 |
1,020 | <reponame>icse18-refactorings/RoboBinding
package org.robobinding.widget.ratingbar;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.junit.Assert.assertThat;
import static org.junit.Assert.assertTrue;
import org.junit.Before;
import org.junit.Test;
import org.robobinding.property.ValueModel;
import ... | 592 |
11,356 | // Copyright <NAME> 2013-2017
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
#ifndef BOOST_HANA_TEST_LAWS_RING_HPP
#define BOOST_HANA_TEST_LAWS_RING_HPP
#include <boost/hana/assert.hpp>
#include <boost/hana/bool.hpp>
#inc... | 2,274 |
513 | /*
* The MIT License
*
* Copyright (C) 2017-2019 <NAME> <<EMAIL>>
*
* 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 u... | 6,662 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-78qc-3rq5-vcqr",
"modified": "2022-02-05T00:00:41Z",
"published": "2022-02-03T00:00:20Z",
"aliases": [
"CVE-2021-41018"
],
"details": "A improper neutralization of special elements used in an os command ('os command injection') in Fortinet FortiWeb version 6.4.... | 362 |
1,056 | <filename>ide/xml.schema.model/test/unit/src/org/netbeans/modules/xml/schema/model/KeyRefTest.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. ... | 1,043 |
335 | {
"word": "Orchestra",
"definitions": [
"A group of instrumentalists, especially one combining string, woodwind, brass, and percussion sections and playing classical music.",
"The part of a theatre where the orchestra plays, typically in front of the stage and on a lower level.",
"The st... | 152 |
860 | <filename>src/test/gls/ch06/s05/JName1Test.java<gh_stars>100-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
... | 5,000 |
460 | package com.microsoft.playwright;
import org.junit.jupiter.api.Test;
import java.net.MalformedURLException;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;
public class TestBrowserContextBaseUrl extends TestBase {
@Test
void shouldConstr... | 1,357 |
854 | __________________________________________________________________________________________________
class Solution {
public int minKnightMoves(int x, int y) {
return (int)knightDistance(x, y);
}
public long knightDistance(long r, long c)
{
r = Math.abs(r); c = Math.abs(c);
if(r + c == 0)retu... | 228 |
419 | <gh_stars>100-1000
/* Copyright (C) 2016 RDA Technologies Limited and/or its affiliates("RDA").
* All rights reserved.
*
* This software is supplied "AS IS" without any warranties.
* RDA assumes no responsibility or liability for the use of the software,
* conveys no license or title under any patent, copyright, or mas... | 12,733 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.