max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
303 | <reponame>r-lyeh/scriptorium<gh_stars>100-1000
#include <stdio.h>
#include <stdlib.h>
int my_atoi(char *s) {
int res;
res = 0;
while (*s) {
if (*s < '0' || '9' < *s)
return 0;
res = res * 10 + (*s - '0');
++s;
}
return res;
}
int fib(int n) {
if (n < 2) ret... | 299 |
2,759 | # Copyright 2020 The TensorFlow 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 applicable law or agreed to i... | 785 |
1,350 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.databricks.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.fasterxm... | 636 |
2,151 | <filename>chrome/browser/notifications/non_persistent_notification_handler.cc
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/notifications/non_persistent_notification_handler.h... | 819 |
313 | //
// YBLGoodEvaluateDetailViewController.h
// YC168
//
// Created by 乔同新 on 2017/6/23.
// Copyright © 2017年 乔同新. All rights reserved.
//
#import "YBLMainViewController.h"
@class YBLOrderCommentsModel;
@interface YBLGoodEvaluateDetailViewController : YBLMainViewController
@property (nonatomic, strong) YBLOrderC... | 132 |
1,299 | /*
* Copyright 2015 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... | 2,137 |
16,831 | <filename>extensions/amp-analytics/0.1/vendors/alexametrics.json<gh_stars>1000+
{
"requests": {
"base": "https://${ampAtrkHost}/atrk.gif?account=${atrk_acct}&domain=${domain}",
"pageview": "${base}&jsv=amp-${ampVersion}&frame_height=${viewportHeight}&frame_width=${viewportWidth}&title=${title}&time=${timestam... | 391 |
634 | <gh_stars>100-1000
/*
* Copyright 2000-2009 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 469 |
343 | <filename>syzygy/pdb/pdb_type_info_records_unittest.cc
// Copyright 2015 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/l... | 7,687 |
626 | <reponame>zoercai/opencensus-java
/*
* Copyright 2018, OpenCensus 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
*
* Unles... | 1,020 |
6,304 | #!/usr/bin/env python
#
# Copyright 2017 Google Inc.
#
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Create the asset and upload it."""
import argparse
import os
import subprocess
import sys
import tempfile
import create
FILE_DIR = os.path.dirname(os.path... | 432 |
5,169 | <gh_stars>1000+
{
"name": "FireStoreHelper",
"swift_version": "3.2",
"version": "0.0.1",
"summary": "FireStore Helper provide the helper classes to use the Google FireStore efficiently.",
"description": "FireStoreHelper will provide the developer a easy access of FireStore , which will provide you a RealTimeD... | 258 |
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... | 485 |
399 | /*
* CallingConvention.java
*
* Copyright (c) 2012 <NAME>
*
* This source code is subject to terms and conditions of the Apache License, Version 2.0.
* A copy of the license can be found in the License.html file at the root of this distribution.
* By using this source code in any fashion, you are agreeing... | 370 |
420 | <gh_stars>100-1000
# Copyright (c) 2012-2016 Seafile Ltd.
import logging
from rest_framework import status
from rest_framework.authentication import SessionAuthentication
from rest_framework.permissions import IsAuthenticated
from rest_framework.response import Response
from rest_framework.views import APIView
from s... | 897 |
2,706 | <gh_stars>1000+
//============================================================================
//
// SSSS tt lll lll
// SS SS tt ll ll
// SS tttttt eeee ll ll aaaa
// SSSS tt ee ee ll ll aa
// SS tt eeeeee ll ll aaaaa -- "An Atar... | 23,262 |
708 | <filename>tasks/keypoint_match/MatchFinder/src/scannedScene.cpp<gh_stars>100-1000
#include "stdafx.h"
#include "scannedScene.h"
#include "imageHelper.h"
#include "normals.h"
#include "globalAppState.h"
#include "mLibFLANN.h"
#include "omp.h"
void ScannedScene::findKeyPoints()
{
m_keyPoints.clear();
const float d... | 9,642 |
359 | /**
* Touhou Community Reliant Automatic Patcher
* Main DLL
*
* ----
*
* Helper functions for non-contiguous files
*/
#pragma once
#include <thcrap.h>
#include <mutex>
#include <bp_file.h>
// Pointer to the stack just before calling ReadFile.
// Used to read and modify the ReadFile parameters before th... | 737 |
461 | import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
/**
* 和 Solution 的思路差不多,也是一个 AC 解
*/
public class Solution2 {
/**
* @param words
* @return
*/
public List<List<Integer>> palindromePairs(String[] words) {
List<List... | 1,402 |
1,350 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.authorization.fluent.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import co... | 1,454 |
9,156 | /**
* 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... | 17,279 |
13,885 | /*
* Copyright (C) 2021 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... | 1,523 |
532 | /* -------------------------------------------------------------------------- *
* OpenSim Moco: sandboxContact.cpp *
* -------------------------------------------------------------------------- *
* Copyright (c) 2017 Stanford University and the Authors *
... | 13,460 |
374 | <reponame>EMinsight/SARibbon
#ifndef SARIBBONPLUGINCOLLECTION_H
#define SARIBBONPLUGINCOLLECTION_H
#include <QDesignerCustomWidgetInterface>
namespace SA_PLUGIN {
/**
* @brief 所有saribobn的插件集合
*
* 参考QDesignerCustomWidgetCollectionInterface
*/
class SARibbonPluginCollection : public QObject, public QDesignerCustomWi... | 289 |
362 | <filename>art/art.h
/**
* author: UncP
* date: 2019-02-16
* license: BSD-3
**/
#ifndef _adapitve_radix_tree_h_
#define _adaptive_radix_tree_h_
#include <stddef.h>
typedef struct adaptive_radix_tree adaptive_radix_tree;
adaptive_radix_tree* new_adaptive_radix_tree();
void free_adaptive_radix_tr... | 241 |
422 | <reponame>crypticspawn/BashSupport
/*
* Copyright (c) <NAME>, <EMAIL>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required ... | 1,838 |
764 | // 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... | 5,374 |
1,655 | <filename>src/core/bsdfs/SmoothCoatBsdf.hpp
#ifndef SMOOTHCOATBSDF_HPP_
#define SMOOTHCOATBSDF_HPP_
#include "Bsdf.hpp"
namespace Tungsten {
class SmoothCoatBsdf : public Bsdf
{
float _ior;
float _thickness;
Vec3f _sigmaA;
std::shared_ptr<Bsdf> _substrate;
float _avgTransmittance;
Vec3f _sca... | 659 |
662 | <filename>alibaba-rsocket-core/src/main/java/com/alibaba/rsocket/metadata/BearerTokenMetadata.java<gh_stars>100-1000
package com.alibaba.rsocket.metadata;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.PooledByteBufAllocator;
import io.rsocket.metadata.AuthMetadataCodec;
import io.rsocket.metadata.WellKnownAut... | 917 |
5,169 | {
"name": "OneLoadNetwork",
"version": "0.1.3",
"summary": "Oneload network library",
"description": "OneLoad Network library to improve security.",
"homepage": "https://www.oneloadpk.com",
"license": "No one is allowed to use this library. It is belong to OneLoad.",
"authors": {
"<NAME>": "<EMAIL>"
... | 421 |
447 | /*
libSDL2pp - C++11 bindings/wrapper for SDL2
Copyright (C) 2014-2015 <NAME> <<EMAIL>>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use thi... | 768 |
1,658 | // Copyright (c) 2011-present, Facebook, Inc. All rights reserved.
// This source code is licensed under both the GPLv2 (found in the
// COPYING file in the root directory) and Apache 2.0 License
// (found in the LICENSE.Apache file in the root directory).
//
#pragma once
#include <string>
#include <vector>
#incl... | 1,009 |
14,668 | // 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 "third_party/blink/renderer/core/css/style_recalc.h"
#include "third_party/blink/renderer/core/dom/node_computed_style.h"
#include "third_party/... | 1,852 |
582 | <gh_stars>100-1000
// Copyright (c) 2020 The Firo Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
// An implementation of bip47 tests provided here: https://gist.github.com/SamouraiDev/6aad669604c5930864bd
#incl... | 6,228 |
1,178 | <filename>avionics/firmware/drivers/bcm_unified.h
/*
* Copyright 2020 Makani Technologies 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/LI... | 348 |
2,542 | <filename>src/test/current/source/NativeReplicatorStack/TestableService/TestableServiceProgress.h
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license informatio... | 596 |
450 | //=============================================================================
//
// Adventure Game Studio (AGS)
//
// Copyright (C) 1999-2011 <NAME> and 2011-20xx others
// The full list of copyright holders can be found in the Copyright.txt
// file, which is part of this source code distribution.
//
// The AGS sourc... | 800 |
5,079 | <filename>desktop/core/ext-py/py4j-0.9/src/py4j/tests/multithreadtest.py<gh_stars>1000+
"""
Created on Sep 17, 2010
@author: barthelemy
"""
from __future__ import unicode_literals, absolute_import
from threading import Thread
import unittest
from py4j.compat import range
from py4j.java_gateway import JavaGateway
fro... | 1,254 |
383 | /*
* Copyright 2016 Dhatim.
*
* 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 ... | 462 |
778 | <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... | 831 |
888 | # imports
import os
import time
import numpy as np
from six.moves import range
from six import string_types
import tensorflow as tf
from tensorflow.python.framework import ops
from tensorflow.python.ops import gen_nn_ops
from skimage.restoration import denoise_tv_bregman
from .utils import *
from .utils import con... | 7,357 |
2,305 | {
"name": "flexibility",
"version": "2.0.1",
"description": "A JavaScript polyfill for Flexbox",
"main": "lib/index.js",
"repository": "jonathantneal/flexibility",
"keywords": [
"flex",
"display",
"direction",
"wrap",
"flow",
"justify",
"content",
"align",
"items",
"c... | 886 |
758 | <gh_stars>100-1000
from functools import partial
import torch.nn as nn
from cvpods.layers import BatchNorm2d, NaiveSyncBatchNorm, FrozenBatchNorm2d
from cvpods.utils import env
def get_norm(norm, out_channels, **kwargs):
"""
Args:
norm (str or callable): either one of BN, SyncBN, FrozenBN, GN;
... | 753 |
355 | <gh_stars>100-1000
/*
* Copyright 2009 <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/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... | 2,822 |
381 | from rpython.jit.backend.llsupport.test.ztranslation_test import TranslationTestCallAssembler
from rpython.translator.translator import TranslationContext
from rpython.config.translationoption import DEFL_GC
class TestTranslationCallAssemblerZARCH(TranslationTestCallAssembler):
def _get_TranslationContext(self):
... | 166 |
14,668 | // Copyright 2021 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/updater/activity.h"
#include <string>
#include "base/notreached.h"
#include "chrome/updater/updater_scope.h"
namespace updater {
// T... | 207 |
1,383 | // =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2014 projectchrono.org
// All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file at the top level of t... | 306 |
3,494 | <filename>samples/_opengl/PostProcessingAA/assets/SMAA.h
/**
* Copyright (C) 2013 <NAME> (<EMAIL>)
* Copyright (C) 2013 <NAME> (<EMAIL>)
* Copyright (C) 2013 <NAME> (<EMAIL>)
* Copyright (C) 2013 <NAME> (<EMAIL>)
* Copyright (C) 2013 <NAME> (<EMAIL>)
*
* Permission is hereby granted, free of charge, to any perso... | 22,353 |
348 | <reponame>chamberone/Leaflet.PixiOverlay
{"nom":"Sainte-Opportune","circ":"3ème circonscription","dpt":"Orne","inscrits":169,"abs":65,"votants":104,"blancs":1,"nuls":7,"exp":96,"res":[{"nuance":"LR","nom":"<NAME>","voix":67},{"nuance":"REM","nom":"<NAME>","voix":29}]} | 111 |
901 | <reponame>Crablicious/MoonGen<filename>src/software-timestamping.c
#include <stdint.h>
#include <rte_config.h>
#include <rte_ethdev.h>
#include <rte_mempool.h>
#include <rte_mbuf.h>
#include <rte_cycles.h>
#include "rdtsc.h"
#include "lifecycle.h"
// software timestamping
void moongen_send_packet_with_timestamp(uin... | 263 |
460 | <reponame>manovotn/thorntail<filename>fractions/microprofile/microprofile-jwt/src/main/java/org/wildfly/swarm/microprofile/jwtauth/detect/MPJWTAuthWebXmlDetector.java
/**
*
* Copyright 2017 Red Hat, Inc, and individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you ma... | 655 |
1,428 | import java.util.Scanner;
import java.util.ArrayList;
public class Warungv2 {
static Scanner sc = new Scanner(System.in);
static String uname,pass,tipe,paket,pilihan_tipe,pilihan_paket,pilihan_bayar,jns_bank,jns_bayar,diskon,no_rek,cus1,cus2,cus3;
static int jml_beli,total,grandTotal,cash,hrg_cus1,hrg_cus2,hrg_cus3... | 11,053 |
1,110 | <reponame>malisit/onnx-tensorflow<filename>onnx_tf/handlers/backend/gather_elements.py
import tensorflow as tf
from onnx_tf.handlers.backend_handler import BackendHandler
from onnx_tf.handlers.handler import onnx_op
from .gather_and_scatter_mixin import GatherAndScatterMixin
@onnx_op("GatherElements")
class GatherEl... | 1,243 |
385 | <gh_stars>100-1000
package lb.library;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AbsListView;
import android.widget.AbsListView.OnScrollListener;
import android.widget.BaseAdapter;
import android.widget.SectionIndexer;
import android.widget.TextView;
public abstract class BasePin... | 1,102 |
1,738 | <reponame>jeikabu/lumberyard<filename>dev/Code/Framework/AzCore/AzCore/std/typetraits/object_traits.h<gh_stars>1000+
/*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distributi... | 673 |
485 | package com.github.florent37.carpaccio;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.github.florent37.carpaccio.mapping.MappingManager;
import com.github.florent37.carpaccio.model.CarpaccioAction;
import org.junit.B... | 6,309 |
666 | package com.didispace.scca.rest.domain;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.List;
/**
* Created by Anoyi on 2018/8/14.
* <p>
* Blog: https://anoyi.com/
* Github: https://github... | 172 |
2,534 | from django.conf.urls import url
from base import views as base_views
urlpatterns = [
url(r'',
base_views.ProtectedDataView.as_view(),
name='protected_data'),
]
| 74 |
6,717 | <reponame>crossmob/WinObjC
/*
* Mouse event handler for ConstraintBtns panel
*
* $Id: ConstraintBtnsActionListener.java,v 1.4 1999/12/16 02:10:01 gjb Exp $
*
*/
package EDU.Washington.grad.noth.cda;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
public final class ConstraintBtnsActionL... | 1,308 |
1,042 | <reponame>scottcgi/Mojoc
/*
* Copyright (c) scott.cgi All Rights Reserved.
*
* This source code belongs to project Mojoc, which is a pure C Game Engine hosted on GitHub.
* The Mojoc Game Engine is licensed under the MIT License, and will continue to be iterated with coding passion.
*
* License : https://github.c... | 3,831 |
706 | /*
* Copyright 2013-present Facebook, 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 a... | 3,987 |
545 | <reponame>jensanjo/QuadrupedRobot<filename>StanfordQuadruped/pupper/ServoCalibration.py
# WARNING: This file is machine generated. Edit at your own risk.
import numpy as np
MICROS_PER_RAD = 11.111 * 180.0 / np.pi
| 82 |
611 | // DejaLu
// Copyright (c) 2015 <NAME>. All rights reserved.
#ifndef __dejalu__HMMailDBAddFoldersOperation__
#define __dejalu__HMMailDBAddFoldersOperation__
#include <MailCore/MailCore.h>
#include "HMMailDBOperation.h"
#ifdef __cplusplus
namespace hermes {
class MailDBAddFoldersOperation : public MailDBOperatio... | 529 |
609 |
#ifndef __FONTS_H
#define __FONTS_H 1
// Fontes:
// Endereços das fonts presentes no CMOS BIOS.
// Esse enderço esta abaixo de 2MB, então
// temos identidade 1:1
#define BIOSFONT8X8 0x00000000000FFA6E //8x8
//#define BIOSFONT8X8 0x000FFA6E
//#define BIOSFONT8X8 0x000FFA6E
//#define BIOSFONT8X8 0x000FFA6E... | 321 |
799 | # Simple script to create a sha256 hash from agiven input
import hashlib
from hashlib import blake2b
import demistomock as demisto # noqa: F401
from CommonServerPython import * # noqa: F401
text = demisto.args()['text']
hashtype = demisto.args()['type']
if hashtype == "sha256":
h = hashlib.sha256()
h.updat... | 284 |
435 | {
"copyright_text": "Standard YouTube License",
"description": "PyconAR 2016 - Bah\u00eda Blanca\n\nProgramando bots charlatanes por <NAME>\n\nAudience level: Intermedia\n\nDescripci\u00f3n\n\nForefer alone?!... No con Python! En esta charla te muestro como programar un bot que sepa responder las preguntas que hace... | 507 |
794 |
#ifndef __CAAlertView__
#define __CAAlertView__
#include "basics/CAObject.h"
#include "basics/CASTLContainer.h"
#include <functional>
NS_CC_BEGIN
class CC_DLL CAAlertView : public CAObject
{
public:
static CAAlertView* create(const std::string& title, const std::string& message);
static CAAlertView* creat... | 357 |
765 | // clang-format off
// REQUIRES: lld
// RUN: %build --compiler=clang-cl --arch=32 --nodefaultlib -o %t.exe -- %s
// RUN: env LLDB_USE_NATIVE_PDB_READER=1 %lldb -f %t.exe -s \
// RUN: %p/Inputs/function-types-calling-conv.lldbinit | FileCheck %s
void __stdcall StdcallFn() {}
void __fastcall FastcallFn() {}
void ... | 364 |
476 | <reponame>SheldonHH/eosio.cdt
// Copyright 2013 <NAME>
// Distributed under Boost license
#ifdef __linux__
#define BOOST_TEST_DYN_LINK
#endif
#include <boost/test/unit_test.hpp>
#include <sstream>
#include <vector>
#include <utility>
#include <ctime>
#include <jsoncons/json.hpp>
#include <jsoncons/json_serializer.hpp... | 1,065 |
742 | # coding: utf-8
"""Test function in module."""
import ctypes
import pytest
from terminaltables.terminal_io import get_console_info, INVALID_HANDLE_VALUE, IS_WINDOWS
from tests.test_terminal_io import MockKernel32
def test():
"""Test function."""
# Test live WinError.
if IS_WINDOWS:
with pytest... | 275 |
3,262 | #pragma once
#include "task.h"
#include "halley/time/halleytime.h"
#include <list>
namespace Halley
{
class TaskSetListener
{
public:
virtual ~TaskSetListener() {}
virtual void onTaskAdded(const std::shared_ptr<TaskAnchor>& task) = 0;
virtual void onTaskTerminated(const std::shared_ptr<TaskAnchor>& task) = 0;... | 318 |
5,411 | <gh_stars>1000+
/**
* \file
* Copyright 2016 Microsoft
* Licensed under the MIT license. See LICENSE file in the project root for full license information.
*/
#ifndef __MONO_CONSOLE_WIN32_INTERNALS_H__
#define __MONO_CONSOLE_WIN32_INTERNALS_H__
#include <config.h>
#include <glib.h>
#include "mono/metadata/object.... | 205 |
14,668 | // Copyright (c) 2012 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 UI_WEB_DIALOGS_WEB_DIALOGS_EXPORT_H_
#define UI_WEB_DIALOGS_WEB_DIALOGS_EXPORT_H_
// Defines WEB_DIALOGS_EXPORT so that functionality impleme... | 373 |
742 | <filename>apps/point_cloud/image_common/image_transport/src/list_transports.cpp<gh_stars>100-1000
/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2009, <NAME>, Inc.
* All rights reserved.
*
* Redistribution and use in source and bi... | 2,001 |
13,648 | try:
import urandom as random
except ImportError:
try:
import random
except ImportError:
print("SKIP")
raise SystemExit
try:
random.randint
except AttributeError:
print("SKIP")
raise SystemExit
print("randrange")
for i in range(50):
assert 0 <= random.randrange(4) <... | 536 |
1,444 |
package mage.abilities.dynamicvalue.common;
import mage.abilities.Ability;
import mage.abilities.costs.Cost;
import mage.abilities.costs.common.ExileFromHandCost;
import mage.abilities.dynamicvalue.DynamicValue;
import mage.abilities.effects.Effect;
import mage.cards.Card;
import mage.game.Game;
/**
* Calculates th... | 537 |
3,489 | <reponame>Fillr/libpostal<filename>scripts/geodata/boundaries/names.py<gh_stars>1000+
import os
import random
import re
import six
import yaml
from collections import defaultdict
from geodata.configs.utils import nested_get, DoesNotExist, alternative_probabilities
from geodata.encoding import safe_decode
from geodata... | 3,426 |
3,680 | //
// Copyright 2016 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trad... | 2,917 |
3,372 | <gh_stars>1000+
/*
* Copyright 2020-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
*
*... | 321 |
1,449 | #include "search-images-cli-command.h"
#include <QCoreApplication>
#include <QEventLoop>
#include <QSet>
#include <QSettings>
#include <utility>
#include "downloader/download-query-group.h"
#include "loader/pack-loader.h"
#include "logger.h"
#include "models/image.h"
#include "models/page.h"
#include "models/profile.h"... | 1,008 |
988 | //------------------------------------------------------------------------------
// GB_positional_offset: return the offset of a positional operator
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, <NAME>, (c) 2017-2021, All Rights Reserved.
// SPDX-License-Ide... | 1,197 |
861 | package cn.springcloud.gray.server;
import cn.springcloud.gray.event.server.GrayEventObservable;
import cn.springcloud.gray.event.server.GrayEventObserver;
import cn.springcloud.gray.event.server.GrayEventTrigger;
import cn.springcloud.gray.server.module.user.UserModule;
import cn.springcloud.gray.server.oauth2.Oauth2... | 695 |
713 | <filename>client/hotrod-client/src/test/java/org/infinispan/client/hotrod/ObjectStorageRoutingTest.java
package org.infinispan.client.hotrod;
import static org.infinispan.commons.dataconversion.MediaType.APPLICATION_OBJECT_TYPE;
import static org.testng.AssertJUnit.assertEquals;
import static org.testng.AssertJUnit.as... | 864 |
5,169 | <reponame>Gantios/Specs<gh_stars>1000+
{
"name": "TouchPresenter",
"version": "2.2.0",
"summary": "TouchPresenter is a small helper to hightlight touches.",
"description": "If you want to create a rich video presentation of you app,\nyou need some kind of visualization for the touches since\nthey are not visibl... | 337 |
377 | {
"(March, 2015)": "(Maart, 2015)",
"Account": "Account",
"Contact us": "Contacteer ons",
"...explaining that you are interested in meeting them, not just looking for free accommodation.": "...leg uit dat je geïnteresseerd bent hen te ontmoeten en niet alleen opzoek bent naar een gratis accommodatie.",
... | 123 |
776 | import dash_bootstrap_components as dbc
from dash import html
from .util import make_subheading
popover = html.Div(
[
make_subheading("Popover", "popover"),
dbc.Button(
"Click to toggle popover", id="popover-target", color="danger"
),
dbc.Popover(
[
... | 288 |
1,408 | from .comms_channel import CommsChannel
from .headline_post import HeadlinePost
from .notification import Notification
from .pinned_message import PinnedMessage
from .user_stats import UserStats
__all__ = ("CommsChannel", "HeadlinePost", "Notification", "PinnedMessage", "UserStats")
| 78 |
450 | <reponame>dempeZheng/yysrv
/**
* 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 ... | 1,067 |
388 | <filename>SelectedTabTitleText/src/java/example/MainPanel.java<gh_stars>100-1000
// -*- mode:java; encoding:utf-8 -*-
// vim:set fileencoding=utf-8:
// @homepage@
package example;
import java.awt.*;
import java.net.URL;
import java.util.Arrays;
import java.util.List;
import java.util.Objects;
import java.util.Optiona... | 3,694 |
361 | <reponame>mzahran001/Trajectron-plus-plus<gh_stars>100-1000
import numpy as np
import pandas as pd
from collections import Sequence, OrderedDict
class RingBuffer(Sequence):
def __init__(self, capacity, dtype=float, allow_overwrite=True):
"""
Create a new ring buffer with the given capacity and ele... | 4,654 |
310 | <filename>doma-processor/src/main/java/org/seasar/doma/internal/apt/cttype/BiFunctionCtType.java
package org.seasar.doma.internal.apt.cttype;
import static org.seasar.doma.internal.util.AssertionUtil.assertNotNull;
import javax.lang.model.type.TypeMirror;
import org.seasar.doma.internal.apt.Context;
public class BiF... | 526 |
778 | /*
* Copyright (C) 2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "pipe_control_args.h"
#include "shared/source/helpers/hw_info.h"
namespace NEO {
void PipeControlArgs::adjustArgs(const HardwareInfo &hwInfo) {
}
} // namespace NEO
| 89 |
1,615 | <gh_stars>1000+
/**
* Created by MomoLuaNative.
* Copyright (c) 2020, Momo Group. All rights reserved.
*
* This source code is licensed under the MIT.
* For the full copyright and license information,please view the LICENSE file in the root directory of this source tree.
*/
//
// Created by Generator on 2020-10-1... | 14,468 |
1,374 | package def.dom;
@jsweet.lang.Interface
public abstract class IDBObjectStoreParameters extends def.js.Object {
@jsweet.lang.Optional
public jsweet.util.union.Union<String,String[]> keyPath;
@jsweet.lang.Optional
public Boolean autoIncrement;
}
| 86 |
12,278 | /*=============================================================================
Copyright (c) 2001-2011 <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)
=================================================... | 631 |
372 | <reponame>arithmetic1728/google-api-java-client-services<filename>clients/google-api-services-content/v2.1/1.31.0/com/google/api/services/content/model/RepricingRuleEligibleOfferMatcher.java<gh_stars>100-1000
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in co... | 1,977 |
520 | [{
"name": "A Busca do BI Perfeito - 3 Passos Indispensáveis",
"url": "http://www.binapratica.com.br/#!busca-bi-perfeito/cov8",
"type": "artigo",
"tags": [
"introdução"
],
"paid": false,
"author": {
"name": "<NAME>",
"url": "https://br.linkedin.com/in/grimaldo"
}
},{
"name": "Entendendo o ... | 279 |
348 | {"nom":"Fontaines-en-Duesmois","dpt":"Côte-d'Or","inscrits":112,"abs":14,"votants":98,"blancs":8,"nuls":2,"exp":88,"res":[{"panneau":"1","voix":62},{"panneau":"2","voix":26}]} | 79 |
2,189 | <filename>libraries/fc/src/interprocess/signals.cpp
#include <fc/asio.hpp>
#include <boost/asio/signal_set.hpp>
namespace fc
{
void set_signal_handler( std::function<void(int)> handler, int signal_num )
{
std::shared_ptr<boost::asio::signal_set> sig_set(new boost::asio::signal_set(fc::asio::default_io_servic... | 291 |
347 | package org.ovirt.engine.ui.common.widget.editor.generic;
import org.ovirt.engine.ui.common.widget.VisibilityRenderer;
import org.ovirt.engine.ui.common.widget.parser.generic.ToStringEntityModelParser;
/**
* Composite Editor that uses {@link org.ovirt.engine.ui.common.widget.editor.generic.EntityModelTextBox}.
*/
p... | 395 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.