max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
749
import socket import ssl import sys from ipaddress import IPv6Address, ip_address from os import PathLike, chmod from pathlib import Path from socket import AddressFamily, SocketKind from typing import Awaitable, List, Optional, Tuple, Union, cast, overload from .. import to_thread from ..abc import ( ConnectedUDP...
7,747
330
<filename>engine/runtime/src/main/java/org/enso/interpreter/node/controlflow/caseexpr/FileBranchNode.java package org.enso.interpreter.node.controlflow.caseexpr; import com.oracle.truffle.api.RootCallTarget; import com.oracle.truffle.api.dsl.Fallback; import com.oracle.truffle.api.dsl.Specialization; import com.oracle...
619
2,151
//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------...
459
477
<reponame>flying-sheep/goatools #!/usr/bin/env python """Ensure NEW results are equal to OLD results: read_ncbi_gene2go.""" from __future__ import print_function import os import collections as cx from goatools.anno.gaf_reader import GafReader from goatools.associations import dnld_annofile REPO = os.path.join(os.p...
2,181
190,993
<gh_stars>1000+ // Copyright 2021 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 // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by app...
981
1,673
<filename>test/ref/spill.c /* !!DESCRIPTION!! register spilling !!ORIGIN!! LCC 4.1 Testsuite !!LICENCE!! own, freely distributeable for non-profit. read CPYRIGHT.LCC */ #include "common.h" #include <stdio.h> int main(void) { printf("disassemble this program to check the generated code.\n"); ret...
747
2,990
<reponame>mohajain/GDevelop<filename>Core/GDCore/Project/ObjectGroup.h /* * GDevelop Core * Copyright 2008-2016 <NAME> (<EMAIL>). All rights * reserved. This project is released under the MIT License. */ #ifndef GDCORE_OBJECTGROUP_H #define GDCORE_OBJECTGROUP_H #include <utility> #include <vector> #inclu...
724
480
/* * Copyright [2013-2021], Alibaba Group Holding Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
4,881
317
<reponame>heralex/OTB<gh_stars>100-1000 /* * Copyright (C) 2005-2020 Centre National d'Etudes Spatiales (CNES) * * This file is part of Orfeo Toolbox * * https://www.orfeo-toolbox.org/ * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with t...
655
3,503
<filename>test_js/runner.py<gh_stars>1000+ """A python runner for nodejs test files.""" import os import subprocess import sys def check_tests(): """Run all tests.""" js_files = [f for f in os.listdir('.') if f.endswith('Spec.js')] results = dict() for spec in js_files: results[spec] = subpro...
257
356
<gh_stars>100-1000 ''' Peak Element using Binary Search Problem Statement: Given an array of size n, find the peak element. Peak element is the element which is greater than its neighbours. There may exist more than one peak element, so print any one. ''' def binary_search(...
745
1,350
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. /** * Package that contains all performance tests. */ package com.azure.data.appconfiguration.perf;
51
324
/* * 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,351
2,073
/** * 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,043
892
{ "schema_version": "1.2.0", "id": "GHSA-52rh-5rpj-c3w6", "modified": "2022-05-05T16:00:50Z", "published": "2022-05-05T16:00:50Z", "aliases": [ ], "summary": "Improper handling of multiline messages in node-irc", "details": "node-irc is a socket wrapper for the IRC protocol that extends Node.js' EventE...
921
938
{ "title": "Плавильня", "subText": "Могущественная плавильня в вашем распоряжении.", "hidden": ["structurereq", "sgui2"] }
94
3,227
#include <CGAL/Exact_integer.h> #include <CGAL/Homogeneous.h> #include <CGAL/OFF_to_nef_3.h> int main() { typedef CGAL::Homogeneous<CGAL::Exact_integer> Kernel; typedef CGAL::Nef_polyhedron_3<Kernel> Nef_3; Nef_3 N; std::size_t discarded = CGAL::OFF_to_nef_3 (std::cin, N, true); std::cout << "Nef ver...
354
435
# greaseweazle/tools/read.py # # Greaseweazle control script: Read Disk to Image. # # Written & released by <NAME> <<EMAIL>> # # This is free and unencumbered software released into the public domain. # See the file COPYING for more details, or visit <http://unlicense.org>. description = "Read a disk to the specified ...
2,790
321
/** * Most of the code in the Qalingo project is copyrighted Hoteia and licensed * under the Apache License Version 2.0 (release version 0.8.0) * http://www.apache.org/licenses/LICENSE-2.0 * * Copyright (c) Hoteia, 2012-2014 * http://www.hoteia.com - http://twitter.com/hoteia - <EMAIL> ...
398
592
// // MMTracker.h // LooseLeaf // // Created by <NAME> on 10/10/14. // Copyright (c) 2014 Milestone Made, LLC. All rights reserved. // #import <Foundation/Foundation.h> @interface MMStatTracker : NSObject + (MMStatTracker*)trackerWithName:(NSString*)name; + (MMStatTracker*)trackerWithName:(NSString*)name andTa...
160
2,952
/* Copyright (c) 2017, <NAME> 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 conditions and th...
1,308
852
#include "CondFormats/DataRecord/interface/L1MuTriggerPtScaleRcd.h" #include "FWCore/Framework/interface/eventsetuprecord_registration_macro.h" EVENTSETUP_RECORD_REG(L1MuTriggerPtScaleRcd);
72
1,817
package test.org.springdoc.api.app25.repo; import java.util.UUID; import test.org.springdoc.api.app25.model.Pet; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.web.bind.annotation.CrossOrigin; @CrossOrigin public interface PetRepo extends JpaRepository<Pet, UUID> { }
111
1,303
/* * Tencent is pleased to support the open source community by making TBase available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * * TBase is licensed under the BSD 3-Clause License, except for the third-party component listed below. * * A copy of the BSD 3-Clause Li...
5,542
4,879
#import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @protocol IMWMImageCoder - (UIImage * _Nullable)imageWithData:(NSData *)data; - (NSData * _Nullable)dataFromImage:(UIImage *)image; @end NS_ASSUME_NONNULL_END
90
527
<gh_stars>100-1000 #include "Grammar.h" bool Grammar::allowsLeft(OperandType left) const { return allowed_leftward_operands.find(left) != allowed_leftward_operands.end(); } bool Grammar::allowsRight(OperandType right) const { return allowed_rightward_operands.find(right) != allowed_rightward_operands.end(); } void...
275
396
<reponame>LJYcoder/DevRing package com.ljy.devring.websocket; import android.os.Looper; import android.os.SystemClock; import android.util.Log; import com.ljy.devring.DevRing; import com.ljy.devring.cache.support.MemoryCache; import com.ljy.devring.http.HttpConfig; import com.ljy.devring.http.support.RetryFunction; i...
11,694
4,339
<reponame>geertjanw/ignite<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...
1,114
19,529
.def("release", &MdApi::release) .def("init", &MdApi::init) .def("join", &MdApi::join) .def("registerFront", &MdApi::registerFront) .def("registerSpi", &MdApi::registerSpi) .def("subscribeMarketData", &MdApi::subscribeMarketData) .def("unSubscribeMarketData", &MdApi::unSubscribeMarketData) .def("reqUserLogin", &MdApi::...
337
368
<reponame>ScriptBox21/CsWinRT #include "pch.h" #include "iostream" using namespace winrt; using namespace Windows::Foundation; using namespace std; int main() { init_apartment(); AuthoringDemo::Example ex; ex.SampleProperty(42); wcout << ex.SampleProperty() << endl; wcout << ex.SayHello().c_str(...
193
17,004
# Generated by Django 2.2.13 on 2020-06-09 12:09 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("corporate", "0008_nullable_next_invoice_date"), ] operations = [ migrations.AddField( model_name="customer", name="...
180
480
<filename>polardbx-parser/src/test/java/com/alibaba/polardbx/druid/bvt/sql/mysql/visitor/UnionOrderTest.java /* * Copyright [2013-2021], Alibaba Group Holding Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obt...
1,245
347
/* * Copyright (c) 2020, NVIDIA 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/LICENSE-2.0 * * Unless required by applicable law ...
453
575
// 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 CHROME_BROWSER_CHROMEOS_FILEAPI_EXTERNAL_FILE_RESOLVER_H_ #define CHROME_BROWSER_CHROMEOS_FILEAPI_EXTERNAL_FILE_RESOLVER_H_ #include <memory> #in...
1,090
488
<reponame>ouankou/rose<filename>src/frontend/BinaryFormats/BinaryVxcoreParser.h #ifndef ROSE_BinaryAnalysis_VxcoreParser_H #define ROSE_BinaryAnalysis_VxcoreParser_H #include <featureTests.h> #ifdef ROSE_ENABLE_BINARY_ANALYSIS #include <Rose/BinaryAnalysis/InstructionSemantics2/BaseSemantics/RegisterState.h> #include...
2,891
2,151
// 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 ASH_SYSTEM_DATE_TRAY_SYSTEM_INFO_H_ #define ASH_SYSTEM_DATE_TRAY_SYSTEM_INFO_H_ #include <memory> #include "ash/ash_export.h" #include "ash/logi...
507
2,980
<reponame>gzdzss/shardingsphere-elasticjob /* * 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 Licens...
499
2,211
// Copyright (c) 2015 Intel Corporation. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package org.xwalk.core.xwview.test; import android.test.suitebuilder.annotation.SmallTest; import android.util.Log; import org.chromium.base.test.util....
2,387
404
from test_module import module_func_2 as oar module_func()
18
670
// // INKBrowserHandler.h // IntentKit // // Created by <NAME> on 11/26/13. // Copyright (c) 2013 <NAME>. All rights reserved. // #import "INKHandler.h" @class INKActivityPresenter; /** An instance of `INKBrowserHandler` opens http and https URLs in a third-party web browser. */ @interface INKBrowserHandler : IN...
278
1,040
//----------------------------------------------------------------------------- // File: rmshadow.cpp // // Desc: // // Copyright (C) 1998-1999 Microsoft Corporation. All Rights Reserved. //----------------------------------------------------------------------------- #include <d3drmwin.h> #define SAFE_RELEASE(x) if (x...
1,995
3,055
/* Fontname: -FreeType-SandyForest-Medium-R-Normal--16-160-72-72-P-48-ISO10646-1 Copyright: JayWright Glyphs: 17/111 BBX Build Mode: 0 */ const uint8_t u8g2_font_sandyforest_tn[193] U8G2_FONT_SECTION("u8g2_font_sandyforest_tn") = "\21\0\3\2\3\4\1\3\4\7\12\377\376\7\375\10\377\0\0\0\0\0\244 \4\200l*\11\254n%"...
445
803
<filename>test/logic_val.c #include "../libc/_raw_print.h" int main() { print_int(2 && 2); }
44
2,996
// Copyright 2021 The Terasology Foundation // SPDX-License-Identifier: Apache-2.0 package org.terasology.engine.telemetry.metrics; import com.snowplowanalytics.snowplow.tracker.events.Unstructured; import org.terasology.engine.entitySystem.entity.EntityRef; import org.terasology.engine.logic.players.LocalPlayer; impo...
688
14,668
<filename>media/cast/logging/stats_event_subscriber.h // Copyright 2014 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 MEDIA_CAST_LOGGING_STATS_EVENT_SUBSCRIBER_H_ #define MEDIA_CAST_LOGGING_STATS_EVENT_SUBSCRIB...
3,775
1,391
<filename>src/cmd/du.c<gh_stars>1000+ #include <u.h> #include <libc.h> extern vlong du(char*, Dir*); extern vlong k(vlong); extern void err(char*); extern int warn(char*); extern int seen(Dir*); int aflag; int fflag; int nflag; int sflag; int tflag; int uflag; int qflag; char *fmt = "%llud\t%s\n"; vlong blocksize = 1...
1,734
2,151
// Copyright (c) 2014 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 CONTENT_SHELL_RENDERER_LAYOUT_TEST_LAYOUT_TEST_CONTENT_RENDERER_CLIENT_H_ #define CONTENT_SHELL_RENDERER_LAYOUT_TEST_LAYOUT_TEST_CONTENT_RENDE...
539
5,439
<reponame>nikita-b/metrics package com.codahale.metrics; import org.openjdk.jcstress.annotations.Actor; import org.openjdk.jcstress.annotations.Expect; import org.openjdk.jcstress.annotations.JCStressTest; import org.openjdk.jcstress.annotations.Outcome; import org.openjdk.jcstress.annotations.State; import org.openjd...
521
1,013
/*! @authors <NAME> (<EMAIL>) @date 2014-2020 @copyright BSD-3-Clause */ #include <gtest/gtest.h> #include <algorithm> #include <pyclustering/utils/linalg.hpp> using namespace pyclustering::utils::linalg; TEST(utest_lingalg, subtract) { std::vector<double> a = { 2, 3, 4, 5 }; std:...
1,064
1,788
package com.fingerchar.api.web; import java.util.List; import java.util.stream.Collectors; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.util.StringUtils; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestMappi...
1,482
558
<filename>src/main/java/skadistats/clarity/model/s1/S1CombatLogIndices.java package skadistats.clarity.model.s1; import skadistats.clarity.model.GameEventDescriptor; public class S1CombatLogIndices { public S1CombatLogIndices(GameEventDescriptor descriptor) { typeIdx = descriptor.getIndexForKey("type"); ...
756
807
#!/usr/bin/env python """Tests for signer_ecdsa.""" import unittest from ct.proto import client_pb2 from ct.crypto.signing import signer_ecdsa PRIVATE_KEY_PEM = ("-----BEGIN EC PRIVATE KEY-----\n" "<KEY> "<KEY>" "<KEY>" "-----END EC PRIVATE KEY-----\n") class SignerEcdsaTest(unittest.TestCase):...
619
12,278
<reponame>Harshitha91/Tmdb-react-native-node // Copyright <NAME> 2006. // 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) #ifndef BOOST_PARAMETER_AUX_PREPROCESSOR_IMPL_ARITY_RANGE_HPP #define BOOST_PARAMETER_AUX_PR...
949
360
""" Copyright (c) 2020 Huawei Technologies Co.,Ltd. openGauss is licensed under Mulan PSL v2. You can use this software according to the terms and conditions of the Mulan PSL v2. You may obtain a copy of Mulan PSL v2 at: http://license.coscl.org.cn/MulanPSL2 THIS SOFTWARE IS PROVIDED ON AN "AS IS" ...
2,168
3,957
/* * Copyright 2018 <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 agreed to in ...
717
1,026
<gh_stars>1000+ from .common import assert_subpackage; assert_subpackage(__name__) from .common import PathIsh from .sqlite import sqlite_connect_immutable # TODO wonder if also need to open without WAL.. test this on read-only directory/db file def connect_readonly(db: PathIsh): import dataset # type: ignore ...
218
391
<reponame>isabella232/Lens-1<filename>lenssdk/src/main/java/com/qiyi/lens/ui/flowlayout/SearchFilterTagAdapter.java /* * * Copyright (C) 2020 iQIYI (www.iqiyi.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtai...
1,088
14,668
<filename>ash/public/cpp/external_arc/overlay/arc_overlay_controller.h // Copyright 2020 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef ASH_PUBLIC_CPP_EXTERNAL_ARC_OVERLAY_ARC_OVERLAY_CONTROLLER_H_ #define ASH_P...
320
304
<filename>cloudnet/src/main/java/de/dytanic/cloudnet/command/commands/CommandDebug.java /* * Copyright 2019-2021 CloudNetService team & contributors * * 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 ...
433
765
<gh_stars>100-1000 /* * Copyright (c) 2011 Google * 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 con...
1,672
3,345
<gh_stars>1000+ /** ****************************************************************************** * @file stm32f0xx_hal_flash_ex.c * @author MCD Application Team * @brief Extended FLASH HAL module driver. * * This file provides firmware functions to manage the following * fun...
12,500
901
{ "resource": { "openstack_networking_network_v2": { "tf-net": { "name": "tf-net", "admin_state_up": "true" } } }, "resource": { "openstack_networking_subnet_v2": { "tf-subnet": { "name": "tf-subnet", "network_id": "${openstack_networking_network_v2.tf-net.id}", "cidr": "192.168.2...
771
1,346
package com.ctrip.platform.dal.dao.task; import java.util.List; import java.util.Map; import com.ctrip.platform.dal.common.enums.DatabaseCategory; import com.ctrip.platform.dal.dao.DalClientFactory; import com.ctrip.platform.dal.dao.DalParser; import com.ctrip.platform.dal.dao.DalResultSetExtractor; import c...
2,017
333
<gh_stars>100-1000 # -*- coding: utf-8 -*- # @Author : ydf # @Time : 2019/8/8 0008 14:57 from function_scheduling_distributed_framework import PriorityConsumingControlConfig from test_frame.test_rpc.test_consume import add def show_result(status_and_result): print(status_and_result) add.clear() for i in rang...
242
1,068
<gh_stars>1000+ import sys import os from azure.mgmt.resource import ResourceManagementClient from azure.mgmt.compute import ComputeManagementClient from azure.identity import AzureCliCredential from azure.mgmt.network import NetworkManagementClient def change_instance_state(config, new_state, log): credential = ...
1,216
1,439
/******************************************************************************* * Copyright 2018 <NAME> http://galenframework.com * * 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...
667
1,858
package com.dtstack.flink.sql.side; import com.dtstack.flink.sql.enums.ECacheContentType; import com.dtstack.flink.sql.metric.MetricConstant; import com.dtstack.flink.sql.side.cache.AbstractSideCache; import com.dtstack.flink.sql.side.cache.CacheObj; import com.google.common.collect.Lists; import org.apache.flink.conf...
1,418
22,481
<gh_stars>1000+ """Support for QVR Pro NVR software by QNAP.""" import logging from pyqvrpro import Client from pyqvrpro.client import AuthenticationError, InsufficientPermissionsError from requests.exceptions import ConnectionError as RequestsConnectionError import voluptuous as vol from homeassistant.components.ca...
1,313
309
/** * Copyright 2018 The original 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...
531
380
<reponame>steventranjs/dynein-scheduler<filename>dynein-common/src/main/java/com/airbnb/dynein/common/token/JacksonTokenManager.java /** * Copyright 2019 Airbnb. Licensed under Apache-2.0. See LICENSE in the project root for license * information. */ package com.airbnb.dynein.common.token; import com.airbnb.dynein....
680
2,151
// 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. // // This file defines a helper class for selecting a supported language from a // set of candidates. #include "chrome/installer/util/language_select...
3,675
1,442
<gh_stars>1000+ #include "base64.h" #include "serial_number.h" #include <drivers/config/serial_number.h> #include <ion.h> namespace Ion { namespace Device { namespace SerialNumber { void copy(char * buffer) { const unsigned char * rawUniqueID = reinterpret_cast<const unsigned char *>(Config::UniqueDeviceIDAddress);...
141
3,428
{"id":"00209","group":"easy-ham-1","checksum":{"type":"MD5","value":"d685082621cfefa2f7a2e614b455258d"},"text":"From <EMAIL> Wed Aug 28 10:48:43 2002\nReturn-Path: <<EMAIL>>\nDelivered-To: zzzz@localhost.netnoteinc.com\nReceived: from localhost (localhost [127.0.0.1])\n\tby phobos.labs.netnoteinc.com (Postfix) with ES...
1,238
335
{ "word": "Heathen", "definitions": [ "A person who does not belong to a widely held religion (especially one who is not a Christian, Jew, or Muslim) as regarded by those who do.", "A follower of a polytheistic religion; a pagan.", "A person regarded as lacking culture or moral principle...
124
368
<reponame>gta-chaos-mod/plugin-sdk /* Plugin-SDK (Grand Theft Auto Vice City) header file Authors: GTA Community. See more here https://github.com/DK22Pac/plugin-sdk Do not delete this comment block. Respect others' work! */ #pragma once #include "PluginBase.h" #include "COnscreenTimer.h" #include "CCurrentVehicle.h" ...
181
3,239
/* * nghttp2 - HTTP/2 C Library * * Copyright (c) 2021 <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 * without limitation the rights to use, ...
1,848
14,668
<reponame>chromium/chromium // 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 DEVICE_VR_ANDROID_WEB_XR_PRESENTATION_STATE_H_ #define DEVICE_VR_ANDROID_WEB_XR_PRESENTATION_STATE_H_ #include <memor...
3,035
317
<gh_stars>100-1000 /* * Copyright (C) 2005-2020 Centre National d'Etudes Spatiales (CNES) * * This file is part of Orfeo Toolbox * * https://www.orfeo-toolbox.org/ * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You ma...
485
6,989
#pragma once #include <util/generic/yexception.h> #include <util/generic/strbuf.h> #include <util/generic/vector.h> /* Split string by rfc4180 */ namespace NCsvFormat { class CsvSplitter { public: CsvSplitter(TString& data, const char delimeter = ',', const char quote = '"') // quote = '\...
600
423
/*------------------------------------------------------------------------- * * hypopg_import.c: Import of some PostgreSQL private fuctions. * * This program is open source, licensed under the PostgreSQL license. * For license terms, see the LICENSE file. * * Copyright (c) 2008-2021, PostgreSQL Global Developmen...
711
725
# -*- coding: utf-8 -*- # Module for custom exceptions class MaterialNotFoundError(Exception): pass class DivisionError(Exception): pass
49
5,169
<reponame>Gantios/Specs<filename>Specs/9/e/7/Bluepill/5.5.3/Bluepill.podspec.json { "name": "Bluepill", "version": "5.5.3", "summary": "A tool to run iOS tests in parallel using multiple simulators.", "homepage": "https://github.com/linkedin/bluepill", "license": { "type": "BSD", "file": "LICENSE" }...
292
360
import numpy as np from yt.data_objects.profiles import create_profile from yt.testing import fake_particle_ds, fake_random_ds def test_update_data_grid(): ds = fake_random_ds(64, nprocs=8) ds.index dims = (32, 32, 32) grid_data = [ {"temperature": np.random.uniform(size=dims)} for i in range...
377
12,718
<filename>lib/libc/mingw/stdio/_ftime.c #define __CRT__NO_INLINE #include <sys/stat.h> #include <sys/timeb.h> /* FIXME: Relying on _USE_32BIT_TIME_T, which is a user-macro, during CRT compilation is plainly broken. Need an appropriate implementation to provide users the ability of compiling the CRT only with 32-bit t...
199
10,016
<reponame>eas5/zaproxy<filename>zap/src/main/java/org/zaproxy/zap/model/IllegalContextNameException.java /* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP is an HTTP/HTTPS proxy for assessing web application security. * * Copyright 2016 The ZAP Development Team * * Licensed under the Apache Licens...
757
2,151
// Copyright (c) 2016 The WebM 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 contributing projec...
1,148
493
<gh_stars>100-1000 package com.jdh.microcraft.entity.mob; import com.jdh.microcraft.Global; import com.jdh.microcraft.entity.Entity; import com.jdh.microcraft.entity.EntityItem; import com.jdh.microcraft.entity.EntityPlayer; import com.jdh.microcraft.entity.ai.AISlime; import com.jdh.microcraft.entity.particle.EntityS...
2,954
3,459
/* FCE Ultra - NES/Famicom Emulator * * Copyright notice for this file: * Copyright (C) 2015 CaH4e3, ClusteR * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of ...
2,267
456
package com.swingfrog.summer.test.repository.model; import com.swingfrog.summer.db.repository.annotation.CacheKey; import com.swingfrog.summer.db.repository.annotation.Column; import com.swingfrog.summer.db.repository.annotation.IndexKey; import com.swingfrog.summer.db.repository.annotation.PrimaryKey; import com.swin...
608
487
from textwrap import dedent def f(): arg = "text" return dedent( f"""\ some {arg} lorem ipsum """ )
79
465
<gh_stars>100-1000 """ Provides two Google Cloud Functions to infer models and obtain model meta information using the AI Platform Prediction API. """ import json from flask import current_app as app import googleapiclient.discovery def _generate_payload(sentence): """ Helper function to prep the payload d...
1,563
312
<filename>testing/src/main/java/io/quarkiverse/githubapp/testing/dsl/GitHubMockVerification.java package io.quarkiverse.githubapp.testing.dsl; @FunctionalInterface public interface GitHubMockVerification<T extends Throwable> { void verify(GitHubMockVerificationContext mocks) throws T; }
96
304
<gh_stars>100-1000 /* * Copyright 2019-2021 CloudNetService team & contributors * * 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 * *...
1,963
852
from HLTriggerOffline.Egamma.veryHighEtDQM_cfi import * from HLTriggerOffline.Egamma.singlePhotonRelaxedDQM_cfi import * from HLTriggerOffline.Egamma.singlePhotonDQM_cfi import * from HLTriggerOffline.Egamma.singleElectronRelaxedDQM_cfi import * from HLTriggerOffline.Egamma.singleElectronDQM_cfi import * from HLTrigge...
639
984
// Copyright (c) 2018-present Baidu, 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 b...
14,329
1,016
package com.duan.musicoco.app.manager; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.net.Uri; import android.os.Build; import android.support.annotation.NonNull; import android.support.v4.content.FileProvider; import com.duan.musicoco.R; import com.duan.mus...
3,380
14,668
<reponame>zealoussnow/chromium // Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef ASH_COMPONENTS_AUDIO_SOUNDS_H_ #define ASH_COMPONENTS_AUDIO_SOUNDS_H_ // This file declares sound resources keys f...
336
2,338
if (N >= 1) { for (int c1 = 1; c1 <= M; c1 += 1) S1(1, c1); for (int c0 = 2; c0 <= N; c0 += 1) { for (int c1 = 1; c1 <= M; c1 += 1) S2(c0 - 1, c1); for (int c1 = 1; c1 <= M; c1 += 1) S1(c0, c1); } for (int c1 = 1; c1 <= M; c1 += 1) S2(N, c1); }
174
772
{ "backward": "baglæns", "blocksUsed": "Brugte blokke: %1", "branches": "grene", "catColour": "Farve", "catControl": "Løkker", "catMath": "Matematik", "catProcedures": "Funktioner", "catTurtle": "Handlinger", "catVariables": "Variabler", "catLogic": "Logik", "colourTooltip": "Ændrer farven på blya...
1,952
1,823
<filename>scattertext/CorpusDF.py import pandas as pd from scattertext.DataFrameCorpus import DataFrameCorpus class CorpusDF(DataFrameCorpus): def __init__(self, df, X, mX, y, text_col, term_idx_store, ...
1,716