max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
1,768 | <gh_stars>1000+
package org.lamport.tla.toolbox.tool.tlc.ui.util;
import java.util.Date;
import junit.framework.TestCase;
/**
* Tests for semantic helper
* @author <NAME>
* @version $Id$
*/
public class SemanticHelperTest extends TestCase
{
private SemanticHelper helper;
/**
* @see ... | 1,569 |
1,033 | package graphql.kickstart.autoconfigure.editor.voyager;
import static org.assertj.core.api.Assertions.assertThat;
import graphql.kickstart.autoconfigure.PermitAllWebFluxSecurity;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWi... | 722 |
303 | <gh_stars>100-1000
__author__ = 'spencergibb'
from . import Source
class Git(Source):
"""git source handler.
"""
def type(self):
return 'git'
def dest_dir(self, source):
dest_dir = "%s/%s" % (self.options.cache_dir, source['name'])
return dest_dir
def module_args(self,... | 304 |
5,964 | <reponame>madanagopaltcomcast/pxCore
// Copyright 2012 the V8 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.
#if V8_TARGET_ARCH_X87
#include "src/ic/ic.h"
#include "src/ic/ic-compiler.h"
namespace v8 {
namespace internal {... | 378 |
784 | <filename>app/src/main/java/com/gplibs/magicsurfaceview/MagicMultiSurface.java
package com.gplibs.magicsurfaceview;
import android.graphics.Bitmap;
import android.graphics.Rect;
import android.view.View;
public class MagicMultiSurface extends MagicBaseSurface<MagicMultiSurface> {
private MagicMultiSurfaceUpdater... | 2,223 |
3,702 | <reponame>mondeique/metatron-discovery<gh_stars>1000+
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | 548 |
411 | <gh_stars>100-1000
//
// Created by <NAME> on 26/11/15.
//
#ifndef LIB_INCLUDE_TICK_HAWKES_SIMULATION_HAWKES_KERNELS_HAWKES_KERNEL_0_H_
#define LIB_INCLUDE_TICK_HAWKES_SIMULATION_HAWKES_KERNELS_HAWKES_KERNEL_0_H_
// License: BSD 3 clause
#include "hawkes_kernel.h"
/**
* @class HawkesKernel0
* @brief Hawkes zero k... | 474 |
315 | <filename>src/Tools/Code/LDPC/Update_rule/MS/Update_rule_MS_simd.hxx
#include <limits>
#include "Tools/Code/LDPC/Update_rule/MS/Update_rule_MS_simd.hpp"
namespace aff3ct
{
namespace tools
{
template <typename R>
Update_rule_MS_simd<R>
::Update_rule_MS_simd()
: name("MS"), false_msk(false), zero((R)0), max(std::numeri... | 1,000 |
393 | /*******************************************************************************
* Copyright 2012 <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/lic... | 961 |
2,542 | <filename>src/prod/src/ServiceModel/management/FaultAnalysisService/InvokeDataLossDescription.cpp
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license informatio... | 1,304 |
839 | import sys
import os
import json
from django.db import transaction
from django.core.management.base import BaseCommand
from baserow.core.models import Group
from baserow.core.handler import CoreHandler
class Command(BaseCommand):
help = (
"Imports an exported JSON file and optionally a ZIP file containi... | 1,106 |
1,510 | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
package com.facebook.react.modules.systeminfo;
import android.annotation.SuppressLint;
import android.app.UiModeManager;
import a... | 959 |
30,023 | """Tests for the Ukraine Alarm integration."""
| 12 |
1,144 | <filename>backend/de.metas.ui.web.base/src/main/java/de/metas/ui/web/dashboard/json/JsonUserDashboardItemAddRequest.java
/*
* #%L
* metasfresh-webui-api
* %%
* Copyright (C) 2020 metas GmbH
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public ... | 626 |
354 | /*-------------------------------------------------------------------------
* drawElements Quality Program OpenGL ES 2.0 Module
* -------------------------------------------------
*
* Copyright 2014 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not ... | 3,555 |
607 | #ifndef CONST_DEFINE_H
# define CONST_DEFINE_H
# define CONST_DEFINE 1
#endif //! CONST_DEFINE_H
| 45 |
1,056 | <reponame>timfel/netbeans
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.... | 347 |
402 | package com.vaadin.flow.testnpmonlyfeatures.customfrontend;
import com.vaadin.flow.component.dependency.JavaScript;
import com.vaadin.flow.component.html.Div;
import com.vaadin.flow.router.Route;
@Route("com.vaadin.flow.testnpmonlyfeatures.customfrontend.CustomFrontendMainView")
@JavaScript("./javascript.js")
public ... | 135 |
987 | <reponame>Wormnest/MINGW-packages
/* Sample from example in GNU Make Manual
* (https://www.gnu.org/software/make/manual/html_node/Loaded-Object-Example.html#Loaded-Object-Example)
* with minor edits for error reporting.
*/
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <err... | 564 |
388 | /*
Difficulty: Hard
Runtime: beat 100% cpp code.
submission-url: https://leetcode.com/submissions/detail/158074027
*/
/*Given a string S, find the number of different non-empty palindromic subsequences in S, and return that number modulo 10^9 + 7.
A subsequence of a string S is obtained by deleting 0 or more characters... | 2,101 |
345 | #!/usr/bin/env python
"""This file is part of the django ERP project.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLD... | 1,568 |
3,508 | <gh_stars>1000+
package com.fishercoder.solutions;
import com.fishercoder.common.classes.TreeNode;
import java.util.HashMap;
import java.util.Map;
public class _337 {
public static class Solution1 {
//simple recursion without cacheing: 1189 ms
public int rob(TreeNode root) {
if (root... | 916 |
1,083 | <gh_stars>1000+
//===--- AST.h - Markup AST nodes -------------------------------*- C++ -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See htt... | 7,248 |
1,738 | <reponame>BadDevCode/lumberyard
import service
import message_utils
import errors
import uuid
from datetime import datetime
from datetime import timedelta
from botocore.exceptions import ClientError
from boto3.dynamodb.conditions import Attr
#****************************************************************
#POST to ad... | 3,992 |
1,700 | <filename>library/src/main/java/org/wysaid/texUtils/TextureRendererThreshold.java
package org.wysaid.texUtils;
/**
* Created by wysaid on 16/3/9.
* Mail: <EMAIL>
* blog: wysaid.org
*/
public class TextureRendererThreshold extends TextureRendererDrawOrigin {
private static final String fshThreshold = "" +
... | 688 |
5,903 | package org.pentaho.di.connections.vfs.provider;
import org.junit.Assert;
import org.junit.Test;
public class ConnectionFileNameParserTest {
private static final String CONNECTION_TEST = "Connection Test";
private static final String SOME_FILE_PATH_TXT = "/some/file/path.txt";
@Test
public void testExtractT... | 248 |
462 | <filename>mq-ui/src/main/java/com/ppdai/infrastructure/ui/spi/DefaultUserInfoHolder.java
package com.ppdai.infrastructure.ui.spi;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ppdai.infrastructure.mq.biz.dto.UserInfo;
im... | 365 |
8,271 | <gh_stars>1000+
<?hh // strict
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same dir... | 330 |
852 | import FWCore.ParameterSet.Config as cms
from DQM.DataScouting.razorScouting_cff import *
from DQM.DataScouting.dijetScouting_cff import *
from DQM.DataScouting.alphaTScouting_cff import *
#this file contains the sequence for data scouting
dataScoutingDQMSequence = cms.Sequence(scoutingRazorDQMSequence*scoutingDiJetD... | 127 |
9,095 | <filename>scipy/misc/tests/test_common.py<gh_stars>1000+
from numpy.testing import assert_equal, assert_almost_equal
from scipy.misc import face, ascent, electrocardiogram
def test_face():
assert_equal(face().shape, (768, 1024, 3))
def test_ascent():
assert_equal(ascent().shape, (512, 512))
def test_elec... | 223 |
1,066 | <filename>cppimport/checksum.py
import hashlib
import json
import logging
import struct
from cppimport.filepaths import make_absolute
_TAG = b"cppimport"
_FMT = struct.Struct("q" + str(len(_TAG)) + "s")
logger = logging.getLogger(__name__)
def is_checksum_valid(module_data):
"""
Load the saved checksum fro... | 1,277 |
793 | # coding: utf-8
import unittest
from unittest import mock
from getsub.util import choose_archive, choose_subtitle
class TestChoose(unittest.TestCase):
archive_dict = {
"sub1": {"lan": 1, "link": "link", "session": None},
"sub2": {"lan": 2, "link": "link", "session": None},
"sub3": {"lan... | 1,038 |
3,083 | /*
Copyright 2014 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 applicable law or agreed to in ... | 454 |
879 | package org.zstack.sdk;
public enum HostIommuStateType {
Enabled,
Disabled,
}
| 32 |
32,544 | package controllers;
import static org.junit.Assert.assertEquals;
import javax.inject.Inject;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import ninja.NinjaRunner;
import ninja.Result;
import services.UserService;
@RunWith(NinjaRunner.class)
public class ApiControllerMockUnitTest ... | 282 |
750 | <reponame>caixingcun/HtmlSpanner
/*
* Copyright (C) 2011 <NAME> <http://www.nightwhistler.net>
*
* 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... | 1,137 |
3,640 | package com.nytimes.android.external.store3;
import com.nytimes.android.external.store3.base.Fetcher;
import com.nytimes.android.external.store3.base.Persister;
import com.nytimes.android.external.store3.base.impl.BarCode;
import com.nytimes.android.external.store3.base.impl.Store;
import com.nytimes.android.external.... | 1,243 |
5,169 | {
"name": "SwiftyDflts",
"version": "0.2.2",
"summary": "Swifty and modern UserDefaults",
"description": "Strongly typed: You declare the type and default value upfront.\nCodable support: You can store any Codable value, like an enum.\nDebuggable: The data is stored as JSON-serialized values.\nLightweight: It's... | 329 |
4,054 | <reponame>Anlon-Burke/vespa
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.search.grouping.request;
/**
* @author baldersheim
*/
public abstract class MathFunctions {
/**
* Defines the different types of math functions that are ava... | 1,204 |
1,131 | //
// 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 ... | 882 |
2,333 | //
// IFlyVerifierUtil.h
// IFlyMSC
//
// Created by 张剑 on 15/4/28.
// Copyright (c) 2015年 iflytek. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
/**
* 身份验证工具类
*/
@interface IFlyVerifierUtil : NSObject
#pragma mark - ISV
/**
* 返回定长的随机数字字符串(不包含数字1,而且2和5不邻接)
*
* @param ... | 367 |
1,251 | /**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
#ifndef _FA_TOKENNFA2NFA_H_
#define _FA_TOKENNFA2NFA_H_
#include "FAConfig.h"
#include "FAAllocatorA.h"
#include "FAMultiMapA.h"
#include "FAMultiMap_judy.h"
#include "FASetUtils.h"
#include "FAFsmCo... | 6,860 |
351 | /* Copyright 2020 The TensorFlow Authors. All Rights Reserved.
Portions Copyright (c) Microsoft Corporation.
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/LICEN... | 11,266 |
617 | <reponame>jbdelcuv/openenclave
// Copyright (c) Open Enclave SDK contributors.
// Licensed under the MIT License.
#include <openenclave/corelibc/wchar.h>
size_t oe_wcslen(const wchar_t* s)
{
const wchar_t* a;
for (a = s; *s; s++)
;
return (size_t)(s - a);
}
| 126 |
343 | <filename>mayan/apps/mime_types/classes.py
import logging
from django.utils.module_loading import import_string
from .settings import setting_backend, setting_backend_arguments
logger = logging.getLogger(name=__name__)
class MIMETypeBackend:
@staticmethod
def get_backend_instance():
return import_s... | 322 |
1,382 | <filename>src/framing/bench/detector_benchmark.c<gh_stars>1000+
/*
* Copyright (c) 2007 - 2015 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including wit... | 1,582 |
7,482 | /*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2015-02-17 Bernard First version
* 2016-05-05 Bernard rename dfs_lwip to dfs_net.
*/
#ifndef DFS_NET_H__
#define DFS_NET_H__
#include <dfs_... | 224 |
20,765 | #ifndef __D3D11_IMPL_H__
#define __D3D11_IMPL_H__
namespace impl
{
namespace d3d11
{
void init();
}
}
#endif // __D3D11_IMPL_H__ | 74 |
1,179 | <filename>core/lib/libtomcrypt/src/misc/burn_stack.c<gh_stars>1000+
// SPDX-License-Identifier: BSD-2-Clause
/* LibTomCrypt, modular cryptographic library -- <NAME>
*
* LibTomCrypt is a library that provides various cryptographic
* algorithms in a highly modular and flexible manner.
*
* The library is free for all... | 249 |
717 | <reponame>mutouxia/kamiFaka
import requests
import hashlib
from urllib.parse import urlencode,unquote
class Ymq:
def __init__(self,payment='wechat'):
from service.util.pay.pay_config import get_config
# config = get_config('随便付')
self.web_url = get_config('web_url')
if payment == '... | 1,299 |
745 | #ifndef CK_FUNCTIONAL2_HPP
#define CK_FUNCTIONAL2_HPP
#include "functional.hpp"
#include "sequence.hpp"
namespace ck {
namespace detail {
template <class>
struct static_for_impl;
template <index_t... Is>
struct static_for_impl<Sequence<Is...>>
{
template <class F>
__host__ __device__ constexpr void operato... | 525 |
1,005 | <gh_stars>1000+
#ifndef TACO_UTIL_FILES_H
#define TACO_UTIL_FILES_H
#include <string>
#include <fstream>
namespace taco {
namespace util {
std::string sanitizePath(std::string path);
void openStream(std::fstream& stream, std::string path, std::fstream::openmode mode);
}}
#endif
| 111 |
341 |
package org.myproject.ms.monitoring;
public class ChainRunnable implements Runnable {
private static final String DEFAULT_SPAN_NAME = "async";
private final Chainer tracer;
private final ItemNamer spanNamer;
private final Runnable delegate;
private final String name;
private final Item parent;
public Ch... | 625 |
594 | # test speech module
import microbit
import speech
def test_funcs():
print('Testing basic functions')
ph = speech.translate('hello world')
assert ph == ' <NAME>'
speech.pronounce('PIHTHUN', pitch=32, speed=60, mouth=100, throat=150)
speech.say('hello')
speech.sing('YEHSTERDEY5')
def test_slee... | 382 |
2,219 | // Copyright (c) 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 QUICHE_QUIC_CORE_QPACK_QPACK_DECODER_STREAM_SENDER_H_
#define QUICHE_QUIC_CORE_QPACK_QPACK_DECODER_STREAM_SENDER_H_
#include <cstdint>
#incl... | 621 |
4,533 | # -*- coding: utf-8 -*-
import logging
import sys
try:
from rich.console import Console
from rich.logging import RichHandler
# configure logging here because some other later imported library does it first otherwise
# TODO: use a fileconfig
logging.basicConfig(
level=logging.INFO,
... | 218 |
427 | // RUN: %clang -target arm-none-eabi -### -c %s 2>&1 | FileCheck --check-prefix=STATIC %s
// RUN: %clang -target arm-none-eabi -fropi -### -c %s 2>&1 | FileCheck --check-prefix=ROPI %s
// RUN: %clang -target arm-none-eabi -frwpi -### -c %s 2>&1 | FileCheck --check-prefix=RWPI %s
// RUN: %cla... | 1,134 |
3,733 | <filename>packages/ui/cypress.json<gh_stars>1000+
{
"testFiles": "**/*.cy.{js,ts,jsx,tsx}",
"componentFolder": "client",
"supportFile": "cypress/support/index.ts",
"pluginsFile": "cypress/plugins/index.ts",
"fixturesFolder": false
}
| 96 |
1,233 | /*
* Copyright 2019 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | 465 |
2,659 | <reponame>lotabout/OpenMLDB<gh_stars>1000+
/*
* Copyright 2021 4Paradigm
*
* 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 r... | 8,379 |
843 | # Generated by Django 2.2.5 on 2019-09-12 13:35
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
import olympia.amo.fields
import olympia.amo.models
import olympia.translations.fields
class Migration(migrations.Migration):
in... | 3,471 |
825 | from yattag import Doc
from yattag import indent
import datetime
class Htmlpage:
htmlpages = dict()
def __init__(self, projectname = None):
if projectname is None: # Used for just an empty html page with the same style and template
self.doc, self.tag, self.text = Doc().tagtext()
... | 4,638 |
604 | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
import pytest
import ubelt as ub
import re
from xdoctest.utils import CaptureStdout
def test_timer_nonewline():
with CaptureStdout() as cap:
timer = ub.Timer(newline=False, verbose=1)
timer.t... | 672 |
504 | /***********************************************************************
*
* Copyright (c) Geoworks 1994 -- All Rights Reserved
*
* GEOWORKS CONFIDENTIAL
*
* PROJECT: PCGEOS
* MODULE: rawip.h
* FILE: rawip.h
*
* AUTHOR: <NAME>: Oct 14, 1994
*
* REVISION HISTORY:
* Date Name D... | 351 |
1,224 | <filename>examples.py/Fisica/buttons.py
"""
* Buttons and bodies
*
* by <NAME>
*
* This example shows how to create bodies.
* It also demonstrates the use of bodies as buttons.
"""
from fisica import Fisica, FWorld, FBox, FCircle, FPoly
boxButton = None
circleButton = None
polyButton = None
world = ... | 1,227 |
366 | /**
* Copyright 2019 Airbnb. Licensed under Apache-2.0. See License in the project root for license
* information.
*/
package com.airbnb.spinaltap.mysql.schema;
import com.airbnb.spinaltap.mysql.BinlogFilePos;
import com.airbnb.spinaltap.mysql.GtidSet;
import com.airbnb.spinaltap.mysql.MysqlSourceMetrics;
import co... | 6,645 |
3,631 | /*
* Copyright 2019 Red Hat, Inc. and/or its affiliates.
*
* 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 a... | 864 |
301 | {
"Geotab_database": "put your Geotab database name here",
"Geotab_username": "",
"Geotab_password": "",
"SAP_instance": "IoT Service instance without the domain name",
"SAP_landscape": "domain name, e.g. eu10.cp.iot.sap",
"SAP_tenantID": "a decimal number",
"SAP_username": "a user with admi... | 210 |
315 | #ifndef UNARYOP_H
#define UNARYOP_H
namespace aff3ct
{
namespace tools
{
// -------------------------------------------------------------------------- special function prototypes for templates
template <typename TI, typename TO>
using proto_uop = TO (*)(const TI a);
// -----------------------------------------------... | 268 |
12,278 | <gh_stars>1000+
//
// immer: immutable data structures for C++
// Copyright (C) 2016, 2017, 2018 <NAME>
//
// This software is distributed under the Boost Software License, Version 1.0.
// See accompanying file LICENSE or copy at http://boost.org/LICENSE_1_0.txt
//
#pragma once
#include <stdexcept>
#include <cstdint>... | 581 |
305 | <gh_stars>100-1000
package org.mamute.mail;
import br.com.caelum.vraptor.environment.Property;
import br.com.caelum.vraptor.simplemail.AsyncMailer;
import br.com.caelum.vraptor.simplemail.Mailer;
import br.com.caelum.vraptor.simplemail.template.BundleFormatter;
import br.com.caelum.vraptor.simplemail.template.Template... | 702 |
4,042 | <gh_stars>1000+
{
"home": {
"elementSelector": {
"name": "Bộ chọn phần tử",
"noAccess": "Không có quyền truy cập vào trang web này"
},
"workflow": {
"new": "Tạo quy trình mới",
"rename": "Đổi tên quy trình",
"delete": "Xóa quy trình"
},
}
}
| 195 |
333 | <gh_stars>100-1000
""" Zipimport module
"""
from pypy.interpreter.mixedmodule import MixedModule
class Module(MixedModule):
interpleveldefs = {
'zipimporter':'interp_zipimport.W_ZipImporter',
'_zip_directory_cache' : 'space.wrap(interp_zipimport.zip_cache)',
'ZipImportError': 'interp_zip... | 331 |
495 | <filename>src/test/json/cbor_parts_parser.cpp<gh_stars>100-1000
// Copyright (c) 2019-2021 Dr. <NAME> and <NAME>
// Please see LICENSE for license or visit https://github.com/taocpp/json/
#include "test.hpp"
#include "test_unhex.hpp"
#include <tao/json.hpp>
namespace tao::json
{
void unit_test()
{
{
... | 469 |
372 | <gh_stars>100-1000
/*
*
* (c) Copyright 1989 OPEN SOFTWARE FOUNDATION, INC.
* (c) Copyright 1989 HEWLETT-PACKARD COMPANY
* (c) Copyright 1989 DIGITAL EQUIPMENT CORPORATION
* To anyone who acknowledges that this file is provided "AS IS"
* without any express or implied warranty:
* permission to u... | 5,629 |
385 | package net.xpece.android.support.widget;
import androidx.annotation.IntDef;
import androidx.annotation.RestrictTo;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import static androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP;
import static net.xpece.android.support.widget.Simp... | 1,014 |
471 | package org.plantuml.idea.external;
import com.intellij.openapi.vfs.VirtualFile;
import org.jetbrains.annotations.Nullable;
import org.plantuml.idea.lang.annotator.SourceAnnotation;
import org.plantuml.idea.plantuml.ImageFormat;
import org.plantuml.idea.preview.Zoom;
import org.plantuml.idea.rendering.RenderCacheItem;... | 379 |
956 | /* SPDX-License-Identifier: BSD-3-Clause
* Copyright(c) 2010-2014 Intel Corporation
*/
#ifndef _RTE_ALARM_H_
#define _RTE_ALARM_H_
/**
* @file
*
* Alarm functions
*
* Simple alarm-clock functionality supplied by eal.
* Does not require hpet support.
*/
#ifdef __cplusplus
extern "C" {
#endif
#include <stdin... | 720 |
2,151 | /*
* Copyright (c) 2013 The Native Client 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 "native_client/src/trusted/service_runtime/sys_exception.h"
#include "native_client/src/shared/platform/nacl_sync_checked.h"
#in... | 1,178 |
435 | <filename>europython-2018/videos/elisabetta-bergamini-bad-hotel-again-find-your-perfect-match.json
{
"copyright_text": "Creative Commons Attribution license (reuse allowed)",
"description": "For most travellers, online reviews play a major role when it comes to\nchoosing which hotel to stay in. But can we actually ... | 514 |
5,250 | {
"toProcessDefinitionId": "someProcessId",
"toProcessDefinitionKey": "MyProcessKey",
"toProcessDefinitionVersion": 9,
"toProcessDefinitionTenantId": "admin",
"activityMappings": [
{
"fromActivityId": "originalActivity1",
"toActivityId": "newActivity1",
"newAssignee": "kermit"
},
... | 312 |
373 | <filename>examples/toy_env/run_toy_env_simple.py
"""Toy environment launcher. See the docs for more details about this environment.
"""
import numpy as np
from deer.agent import NeuralAgent
from deer.learning_algos.q_net_keras import MyQNetwork
from Toy_env import MyEnv as Toy_env
import deer.experiment.base_control... | 411 |
323 | <gh_stars>100-1000
/*
* Copyright (c) 2011-2022 Contributors to the Eclipse Foundation
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0, or the Apache License, Version 2.0
* which is ... | 502 |
507 | #ifndef JSONCONS_DETAIL_SPAN_HPP
#define JSONCONS_DETAIL_SPAN_HPP
#include <utility> // std::swap
#include <memory> // std::addressof
#include <type_traits> // std::enable_if, std::true_type, std::false_type
#include <jsoncons/config/compiler_support.hpp>
#include <jsoncons/more_type_traits.hpp>
#include <iterator>
#i... | 2,717 |
6,717 | //******************************************************************************
//
// Copyright (c) 2016 Microsoft Corporation. All rights reserved.
//
// This code is licensed under the MIT License (MIT).
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LI... | 413 |
558 | /* SPDX-License-Identifier: Apache-2.0 */
/*
* Copyright (C) 2015-2021 Micron Technology, Inc. All rights reserved.
*/
#ifndef HSE_CORE_TUPLE_H
#define HSE_CORE_TUPLE_H
#include <hse_util/inttypes.h>
#include <hse_util/hse_err.h>
#include <hse_util/key_util.h>
#include <hse_util/seqno.h>
#include <hse_ikvdb/key_h... | 1,989 |
712 | #include "Device.hpp"
#include "Enumerate.hpp"
#include "Instance.hpp"
#include "Surface.hpp"
#include "Utilities/Exception.hpp"
#include <algorithm>
#include <set>
namespace Vulkan {
namespace
{
std::vector<VkQueueFamilyProperties>::const_iterator FindQueue(
const std::vector<VkQueueFamilyProperties>& queueFamili... | 1,790 |
1,771 | /*
Copyright (c) 2010-2021, Intel 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 co... | 3,127 |
352 | <filename>src/test/java/helloworld/behavioral/state/HelloWorldStateContextTest.java
package helloworld.behavioral.state;
import org.junit.Test;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.is;
/**
* @author <EMAIL>
*/
public class HelloWorldStateContextTest {
@Test
... | 277 |
410 | <gh_stars>100-1000
////////////////////////////////////////////////////////////////////////////////
// //
// Copyright (C) 2011-2015, Armory Technologies, Inc. //
// Distributed under the GNU Affero General Public Licens... | 13,241 |
675 | <gh_stars>100-1000
#pragma once
#include "engine/core/scene/node.h"
namespace Echo
{
class CubeLightCustom : public Node
{
ECHO_CLASS(CubeLightCustom, Node)
public:
CubeLightCustom();
~CubeLightCustom();
// used for
const StringOption& getUsage() { return m_usage; }
void setUsage(const StringOption& ... | 203 |
4,535 | // Copyright 2018, Intel Corporation
#include "tile/codegen/tidy.h"
#include "base/util/logging.h"
#include "tile/codegen/alias.h"
#include "tile/stripe/stripe.h"
namespace vertexai {
namespace tile {
namespace codegen {
using namespace stripe; // NOLINT
bool NotUsedInRefs(Block* block, const std::string& idx_nam... | 2,221 |
335 | #include <Wire.h>
#include <SeeedOLED.h>
//#include <avr/pgmspace.h>
static unsigned char SeeedLogo[] ={
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x0... | 4,423 |
3,973 | // Project Calico BPF dataplane programs.
// Copyright (c) 2020-2021 Tigera, Inc. All rights reserved.
// SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
#ifndef __CALI_BPF_TC_H__
#define __CALI_BPF_TC_H__
#include "types.h"
static CALI_BPF_INLINE int calico_tc(struct __sk_buff *skb);
static CALI_BPF_INLINE... | 223 |
2,338 | //===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | 633 |
310 | {
"name": "<NAME>",
"description": "A 4K 360 degree camera.",
"url": "https://us.ricoh-imaging.com/index.php/cameras/theta-v"
}
| 57 |
32,544 | package com.baeldung.graylog;
import org.apache.log4j.Logger;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class GraylogDemoApplication {
private final static Logger LOG =
Logger.getLogger(Graylog... | 169 |
583 | from .filter import * | 5 |
670 | package com.hw.photomovie.segment.layer;
import android.graphics.PointF;
import android.graphics.RectF;
import com.hw.photomovie.opengl.BitmapTexture;
import com.hw.photomovie.opengl.GLESCanvas;
/**
* Created by huangwei on 2015/6/3.
*/
public class TestBaseLayer extends MovieLayer {
protected BitmapTexture mB... | 1,185 |
362 | <gh_stars>100-1000
import matplotlib.pyplot as plt
from brokenaxes import brokenaxes
import numpy as np
from matplotlib.gridspec import GridSpec
import datetime
import pytest
def test_standard():
fig = plt.figure(figsize=(5, 2))
bax = brokenaxes(
xlims=((0, 0.1), (0.4, 0.7)), ylims=((-1, 0.7), (0.79, ... | 1,435 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.