max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
1,235
#include <iostream> using namespace std; int main() { // In union, all members share the same memory location. // // Unions can save us memory with different objects // sharing the memory location at different times. // union exampleUnion { int num; char c; // data can be either int or char }; // or }my...
175
1,603
import os import tornado.ioloop import tornado.httpserver from tornado.web import RequestHandler from tornado.gen import coroutine from react.render import render_component comments = [] class IndexHandler(RequestHandler): @coroutine def get(self): rendered = render_component( os.path.join(os...
610
335
<filename>S/Subsidiary_adjective.json { "word": "Subsidiary", "definitions": [ "Less important than but related or supplementary to something.", "(of a company) controlled by a holding or parent company." ], "parts-of-speech": "Adjective" }
100
1,306
<reponame>CanPisces/DexHunter /* * Copyright (C) 2011 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....
4,378
2,151
<filename>ios/chrome/browser/search_engines/search_engines_util.cc // Copyright 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. #include "ios/chrome/browser/search_engines/search_engines_util.h" #include <stddef.h>...
1,455
432
#include <sys/stat.h> #include <signal.h> #include <stdlib.h> #include <math.h> #include "fbg_fbdev.h" int keep_running = 1; void int_handler(int dummy) { keep_running = 0; } struct _fbg_img *flags_texture; struct _fragment_user_data { float xmotion; float ymotion; }; void *fragmentStart(struct _fbg *...
1,897
3,986
/* * Copyright (C) 2020 xuexiangjys(<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 by applicable la...
883
5,813
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
1,599
1,671
<reponame>rohankumardubey/ambry /** * Copyright 2020 LinkedIn Corp. 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 ...
812
1,333
/* * MIT License * * Copyright (c) 2020 International Business Machines * * 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 ...
815
310
<gh_stars>100-1000 package org.ofbiz.order.shoppinglist; import org.ofbiz.base.util.Debug; import org.ofbiz.base.util.UtilValidate; import org.ofbiz.entity.Delegator; import org.ofbiz.entity.util.EntityUtilProperties; import org.ofbiz.webapp.control.LoginWorker; import javax.servlet.http.Cookie; import javax.servlet....
3,017
528
/****************************************************************************** Copyright 2020 <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...
1,745
451
<filename>applis/OLD-Apero-OLD/cChoixImagesMicMac.cpp /*Header-MicMac-eLiSe-25/06/2007 MicMac : Multi Image Correspondances par Methodes Automatiques de Correlation eLiSe : ELements of an Image Software Environnement www.micmac.ign.fr Copyright : Institut Geographique National Author : <NAME...
5,163
32,544
<gh_stars>1000+ package com.baeldung.domain; import javax.validation.constraints.NotNull; import org.springframework.data.annotation.Id; import org.springframework.data.mongodb.core.mapping.Document; import java.io.Serializable; @Document(collection = "STUDENT") public class Student implements Serializable { @I...
698
6,304
<gh_stars>1000+ // Copyright 2020 Google LLC. // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. #include "tools/fiddle/examples.h" REG_FIDDLE(radial_gradient_test, 256, 256, false, 0) { void draw(SkCanvas* canvas) { #define SIZE 121 SkScalar half = SIZE * 0.5f; ...
378
307
<filename>plotoptix/install/__main__.py """ Install scripts for PlotOptiX extras. Documentation: https://plotoptix.rnd.team """ import sys def main(): if len(sys.argv) > 1: if sys.argv[1] == "denoiser": from plotoptix.install.denoiser import install_denoiser result = install_denoi...
449
611
package fr.adrienbrault.idea.symfony2plugin.tests.translation.parser; import fr.adrienbrault.idea.symfony2plugin.translation.dict.DomainFileMap; import fr.adrienbrault.idea.symfony2plugin.translation.parser.DomainMappings; import org.junit.Assert; import org.junit.Test; import java.io.File; import java.io.FileInputSt...
793
362
/* * Copyright (C) 2015 Google 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 to in ...
3,772
669
<gh_stars>100-1000 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #include "core/graph/node_attr_utils.h" #include "core/common/common.h" #include "core/framework/tensorprotoutils.h" using namespace ONNX_NAMESPACE; namespace onnxruntime::utils { static void SetNameA...
2,081
1,695
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distribut...
4,839
2,690
<reponame>NoahR02/Odin<gh_stars>1000+ template <typename T> struct PriorityQueue { Array<T> queue; int (* cmp) (T *q, isize i, isize j); void (* swap)(T *q, isize i, isize j); }; template <typename T> bool priority_queue_shift_down(PriorityQueue<T> *pq, isize i0, isize n) { // O(n log n) isize i = i0; isize j,...
1,172
3,380
<reponame>TysonHeart/dynomite #include <arpa/inet.h> #include <ctype.h> #include <errno.h> #include <netdb.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/socket.h> #include "dyn_conf.h" #include "dyn_core.h" #include "dyn_node_snitch.h" #include "dyn_string.h" #include "dyn_util.h" static...
1,293
577
<reponame>CyberFlameGO/exposure-notifications-android /* * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2....
488
861
<reponame>scotthufeng/spring-cloud-gray<gh_stars>100-1000 package cn.springcloud.gray.server.resources.rest; import cn.springcloud.gray.api.ApiRes; import cn.springcloud.gray.server.module.user.UserModule; import cn.springcloud.gray.server.module.user.domain.UserInfo; import cn.springcloud.gray.server.module.user.doma...
2,376
511
<filename>os/arch/arm/src/tiva/chip/lm4f_syscontrol.h /**************************************************************************** * * Copyright 2017 Samsung Electronics All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with t...
49,026
304
/* * 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 * * Unless required by...
1,349
3,457
<reponame>shareq2005/CarND-MPC-Project #include <Eigen/Core> #include <iostream> using namespace Eigen; using namespace std; template<typename Derived> Eigen::VectorBlock<Derived, 2> firstTwo(MatrixBase<Derived>& v) { return Eigen::VectorBlock<Derived, 2>(v.derived(), 0); } template<typename Derived> const Eigen::V...
283
319
/** * Copyright (c) 2011, The University of Southampton and the individual contributors. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * * Redistributions of source code must retain ...
2,467
345
<reponame>zhenbzha/Azure-DataFactory { "name": "HDInsightLinkedService", "properties": { "type": "HDInsight", "typeProperties": { "clusterUri": "https://<hdinsightclustername>.azurehdinsight.net/", "userName": "<hdiusername>", "location": "<hdiregion>", "password": "<<PASSWORD>>", ...
169
515
/*============================================================================= Library: CTK Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the ...
504
459
/* * This file is part of choco-solver, http://choco-solver.org/ * * Copyright (c) 2021, IMT Atlantique. All rights reserved. * * Licensed under the BSD 4-clause license. * * See LICENSE file in the project root for full license information. */ /** * Created by IntelliJ IDEA. * User: <NAME> * Date: 08/08/12 ...
2,906
1,350
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */ package com.microsoft.azure.eventgrid.models; import java.util.Map; import com.fasterxm...
935
370
<filename>src/xapian/backends/honey/honey_cursor.h /** @file honey_cursor.h * @brief HoneyCursor class */ /* Copyright (C) 2017,2018 <NAME> * * 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...
1,434
571
package me.devsaki.hentoid.viewholders; import android.view.View; import android.widget.TextView; import androidx.recyclerview.widget.RecyclerView; import com.mikepenz.fastadapter.FastAdapter; import com.mikepenz.fastadapter.adapters.ItemAdapter; import com.mikepenz.fastadapter.items.AbstractItem; import org.jetbra...
1,696
47,880
/* * Copyright (C) 2013 The Guava 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 agreed ...
549
6,289
<reponame>imownbey/Detox // // Bridging-Header.h // Detox // // Created by <NAME> (Wix) on 7/11/19. // Copyright © 2019 Wix. All rights reserved. // #import "UIApplication+MockedSharedApplication.h"
82
602
<reponame>maheshrajamani/stargate /* * Copyright The Stargate 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 requir...
581
588
<reponame>fmilano/CppMicroServices /*============================================================================= Library: CppMicroServices Copyright (c) The CppMicroServices developers. See the COPYRIGHT file at the top-level directory of this distribution and at https://github.com/CppMicroServices/CppMicro...
2,501
679
/************************************************************** * * 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 y...
12,738
445
#ifndef MULTIVERSO_TIMER_H_ #define MULTIVERSO_TIMER_H_ #include <chrono> #include <string> namespace multiverso { class Timer { public: Timer(); // Restart the timer void Start(); // Get elapsed milliseconds since last Timer::Start double elapse(); private: using Clock = std::chrono::high_resolution_...
165
394
<gh_stars>100-1000 /* * Copyright (c) 2016, WSO2 Inc. (http://wso2.com) 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-...
4,981
412
<reponame>mauguignard/cbmc<gh_stars>100-1000 #include "../sensitivity-test-common-files/pointer_to_array_sensitivity_tests.c"
50
3,804
//------------------------------------------------------------------------------ /* This file is part of rippled: https://github.com/ripple/rippled Copyright (c) 2012, 2013 Ripple Labs Inc. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby ...
747
1,056
/* * 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 ...
878
5,169
<reponame>Gantios/Specs { "name": "FairBidSDK", "version": "2.0.5", "summary": "Advertising SDK for mobile games.", "homepage": "https://developer.fyber.com/", "license": { "type": "Commercial", "text": "https://www.fyber.com/sdklicense/" }, "authors": "Fyber", "social_media_url": "https://www.f...
538
4,140
<reponame>FANsZL/hive /* * 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 (t...
1,000
2,996
<filename>engine/src/main/java/org/terasology/engine/core/internal/TimeLwjgl.java // Copyright 2021 The Terasology Foundation // SPDX-License-Identifier: Apache-2.0 package org.terasology.engine.core.internal; import org.lwjgl.glfw.GLFW; public final class TimeLwjgl extends TimeBase { public TimeLwjgl() { ...
193
335
{ "word": "Welfarism", "definitions": [ "The principles or policies associated with a welfare state." ], "parts-of-speech": "Noun" }
64
2,338
<filename>lldb/packages/Python/lldbsuite/test/commands/expression/macros/macro2.h #define HUNDRED 100 #define THOUSAND 1000 #define MILLION 1000000 #define MAX(a, b)\ ((a) > (b) ?\ (a):\ (b))
84
11,877
/* * Copyright 2016 <NAME>. 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 ...
519
409
// // snowflake.hpp // ************* // // Copyright (c) 2020 <NAME> (sharon at xandium dot io) // // Distributed under the MIT License. (See accompanying file LICENSE) // #pragma once #include "aegis/fwd.hpp" #include "aegis/config.hpp" #include <nlohmann/json.hpp> namespace aegis { /// Stores creation time and e...
2,409
337
<filename>mava/components/tf/modules/communication/base.py # python3 # Copyright 2021 InstaDeep Ltd. 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.ap...
669
4,071
<reponame>hitflame/x-deeplearning # Copyright (C) 2016-2018 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 ...
1,069
5,169
<reponame>Gantios/Specs { "name": "BNRSDKLib", "version": "0.1.0", "summary": "A short description of BNRSDKLib.", "description": "Utility , Category in BNRSDKLib", "homepage": "https://github.com/JustinYangJing/BNRSDK.git", "license": "MIT", "authors": { "JustinYang": "<EMAIL>" }, "platforms": { ...
248
32,544
package com.baeldung.concurrent.interrupt; public class CustomInterruptedException extends Exception { private static final long serialVersionUID = 1L; CustomInterruptedException(String message) { super(message); } }
77
1,353
<filename>sandbox/sandbox-common/src/main/java/com/twelvemonkeys/net/NetUtil.java<gh_stars>1000+ package com.twelvemonkeys.net; import com.twelvemonkeys.io.FileUtil; import com.twelvemonkeys.lang.StringUtil; import com.twelvemonkeys.util.CollectionUtil; import java.io.*; import java.net.*; import java.net.HttpURLConn...
20,986
373
/** @file * * Copyright (c) 2015, Hisilicon Limited. All rights reserved. * Copyright (c) 2015, Linaro Limited. All rights reserved. * * SPDX-License-Identifier: BSD-2-Clause-Patent * **/ #ifndef _MEMORY_MAP_GUID_H_ #define _MEMORY_MAP_GUID_H_ #define EFI_MEMORY_MAP_GUID \ { \ 0xf8870015,0x...
226
2,151
// Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package org.chromium.chrome.browser.offlinepages; import android.net.Uri; import android.support.test.InstrumentationRegistry; import android.support.tes...
14,451
416
<filename>iPhoneOS14.2.sdk/System/Library/Frameworks/NetworkExtension.framework/Headers/NEAppPushProvider.h /* * Copyright (c) 2020 Apple Inc. * All rights reserved. */ #ifndef __NE_INDIRECT__ #error "Please import the NetworkExtension module instead of this file directly." #endif NS_ASSUME_NONNULL_BEGIN /*! * @...
977
587
/* * Copyright (C) 2013 salesforce.com, 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 ...
495
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 "components/services/storage/public/mojom/buckets/bucket_id_mojom_traits.h" #include "components/services/storage/public/cpp/buckets/bucket_id.h...
344
544
<reponame>giladsharir/MNC-1 # -------------------------------------------------------- # Multitask Network Cascade # Written by <NAME> # Copyright (c) 2016, <NAME> # Licensed under The MIT License [see LICENSE for details] # -------------------------------------------------------- import caffe import cv2 import numpy ...
1,930
405
package org.jeecgframework.core.extend.hqlsearch.parse.impl; import org.jeecgframework.core.common.hibernate.qbc.CriteriaQuery; import org.jeecgframework.core.extend.hqlsearch.parse.IHqlParse; public class StringParseImpl implements IHqlParse { private static final String SUFFIX_COMMA = ","; private static final S...
1,032
406
/*************************************************************************** * tests/containers/test_vector_sizes.cpp * * Part of the STXXL. See http://stxxl.sourceforge.net * * Copyright (C) 2010 <NAME> <<EMAIL>> * * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICEN...
2,095
611
<gh_stars>100-1000 package fr.adrienbrault.idea.symfony2plugin.doctrine.metadata; import com.intellij.codeInsight.completion.*; import com.intellij.patterns.PlatformPatterns; import com.intellij.patterns.XmlPatterns; import com.intellij.psi.PsiElement; import com.intellij.util.ProcessingContext; import fr.adrienbrault...
1,103
3,897
/*************************************************************************************************/ /*! * \file * * \brief Device manager privacy module. * * Copyright (c) 2011-2019 Arm Ltd. All Rights Reserved. * * Copyright (c) 2019 Packetcraft, Inc. * * Licensed under the Apache License, Version 2.0...
8,318
3,553
<reponame>eugenebnd/fluent-bit<filename>plugins/in_nginx_exporter_metrics/nginx.h /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* Fluent Bit * ========== * Copyright (C) 2019-2021 The Fluent Bit Authors * Copyright (C) 2015-2018 Treasure Data Inc. * * Licensed under the Apach...
733
1,050
<filename>conf/nebula/offline/SlotToProfileVarMap.json<gh_stars>1000+ { "uid": [ "uid__visit_dynamic_count__1h__slot", "uid_did__visit_dynamic_count_top20__1h__slot", "uid_useragent__visit_dynamic_count_top20__1h__slot", "uid__visit_incident_count__1h__slot", "uid_geo_city__visit_dynamic_count_top...
350
554
package github.tornaco.xposedmoduletest.xposed.service; /** * Created by guohao4 on 2017/11/1. * Email: <EMAIL> */ public @interface PMRuleCheck { }
66
631
/* Copyright (c) 2017-2020 Origin Quantum Computing. All Right Reserved. Licensed under the Apache License 2.0 GraphDijkstra.h Author: Wangjing Created in 2018-8-31 Classes for get the shortes path of graph */ #ifndef METADATAVALIDITYFUNCTIONVECTOR_H #define METADATAVALIDITYFUNCTIONVECTOR_H #include "Core/Utilities...
1,735
1,893
<gh_stars>1000+ """ ANN module tests """ import os import tempfile import unittest import numpy as np from txtai.ann import ANNFactory, ANN class TestANN(unittest.TestCase): """ ANN tests. """ def testAnnoy(self): """ Test Annoy backend """ self.runTests("annoy", N...
2,514
2,013
"""Unit tests for the FileChecker class.""" from unittest import mock import pytest import flake8 from flake8 import checker @mock.patch("flake8.checker.FileChecker._make_processor", return_value=None) def test_repr(*args): """Verify we generate a correct repr.""" file_checker = checker.FileChecker( ...
551
856
// // Copyright © 2020 Arm Ltd and Contributors. All rights reserved. // SPDX-License-Identifier: MIT // #include "NeonLogicalNotWorkload.hpp" #include "NeonWorkloadUtils.hpp" #include <aclCommon/ArmComputeTensorHandle.hpp> #include <aclCommon/ArmComputeTensorUtils.hpp> #include <armnn/utility/PolymorphicDowncast.h...
894
491
import k2 s1 = ''' 0 1 0 0.1 0 1 1 0.2 1 1 2 0.3 1 2 -1 0.4 2 ''' s2 = ''' 0 1 1 1 0 1 2 2 1 2 -1 3 2 ''' a_fsa = k2.Fsa.from_str(s1) b_fsa = k2.Fsa.from_str(s2) c_fsa = k2.intersect(a_fsa, b_fsa) a_fsa.draw('a_fsa_intersect.svg', title='a_fsa') b_fsa.draw('b_fsa_intersect.svg', title='b_fsa') c_fsa.draw('c_fsa_inte...
212
407
package com.alibaba.smart.framework.engine.xml.parser; import javax.xml.namespace.QName; import javax.xml.stream.XMLStreamReader; import com.alibaba.smart.framework.engine.hook.LifeCycleHook; /** * XML处理器扩展点 Created by ettear on 16-4-12. */ public interface XmlParserFacade extends LifeCycleHook { /** * R...
310
1,475
/* * 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 not ...
556
3,477
// Copyright Microsoft and Project Verona Contributors. // SPDX-License-Identifier: MIT #include <verona.h> size_t do_nothing(size_t x) { return x; }
54
7,073
import sys def output(rc=0, stdout='', stderr='', count=1): if stdout: sys.stdout.write((stdout+'\n') * int(count)) if stderr: sys.stderr.write((stderr+'\n') * int(count)) return int(rc) if __name__ == '__main__': rc = output(*sys.argv[1:]) sys.exit(rc)
145
435
<filename>pycon-uk-2017/videos/pycon-uk-2017-docs-or-it-didn-t-happen.json { "copyright_text": "Standard YouTube License", "description": "**Apologies for the occasional mumbling in the audio over the presenter, a mic was left live next to the mixer for part of Thursday**\n\nIf you ever skimmed through a README, tr...
625
416
<reponame>ljz663/tencentcloud-sdk-java /* * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. 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...
9,392
319
from test.support import run_unittest, TESTFN import unittest import os import sunau nchannels = 2 sampwidth = 2 framerate = 8000 nframes = 100 class SunAUTest(unittest.TestCase): def setUp(self): self.f = None def tearDown(self): if self.f is not None: self.f.close() tr...
1,021
5,411
<reponame>thorium-cfx/fivem /* * This file is part of the CitizenFX project - http://citizen.re/ * * See LICENSE and MENTIONS in the root of the source tree for information * regarding licensing. */ #pragma once namespace rage { struct Vector3 { float x, y, z; private: float __pad; pu...
1,117
488
// # 1 "width.c" // # 1 "<built-in>" // # 1 "<command-line>" // # 1 "width.c" // # 18 "width.c" // # 1 "../../config.h" 1 // # 19 "width.c" 2 // # 1 "../uniwidth.h" 1 // # 22 "../uniwidth.h" // # 1 "../unitypes.h" 1 // # 22 "../unitypes.h" // # 1 "/usr/include/stdint.h" 1 3 4 // # 26 "/usr/include/stdint.h" 3 4 // # ...
15,483
4,606
<filename>examples/docs_snippets_crag/docs_snippets_crag/concepts/solids_pipelines/graph_provides_config.py from dagster import graph, op @op(config_schema={"n": float}) def add_n(context, number): return number + context.solid_config["n"] @op(config_schema={"m": float}) def multiply_by_m(context, number): ...
204
1,090
#include <math.h> double hypotenuse(double a, double b) { return sqrt(a*a + b*b); }
38
4,816
/** * @file src/llvmir2hll/ir/if_stmt.cpp * @brief Implementation of IfStmt. * @copyright (c) 2017 Avast Software, licensed under the MIT license */ #include "retdec/llvmir2hll/ir/expression.h" #include "retdec/llvmir2hll/ir/if_stmt.h" #include "retdec/llvmir2hll/ir/variable.h" #include "retdec/llvmir2hll/support/debu...
3,743
892
<reponame>westonsteimel/advisory-database-github<gh_stars>100-1000 { "schema_version": "1.2.0", "id": "GHSA-p62j-hrxm-xcxf", "modified": "2022-01-06T19:44:35Z", "published": "2022-01-06T23:53:35Z", "aliases": [ ], "summary": "Book page text, count, and author/title length is not limited in PocketMine-MP"...
1,183
684
/* Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distribut...
1,390
522
<filename>tests/timeinittest.cpp #include "rtptimeutilities.h" #include "rtpudpv4transmitter.h" #include <iostream> int main(void) { jrtplib::RTPUDPv4Transmitter trans(0); jrtplib::RTPTime t(0); std::cout << t.GetDouble() << std::endl; return 0; }
113
604
<reponame>xxoolm/IbEverythingExt<gh_stars>100-1000 #include "pch.h" #include "ipc.hpp" #include "helper.hpp" ib::Holder<Everythings::EverythingMT> ipc_ev; Everythings::EverythingMT::Version ipc_version; void ipc_init(std::wstring_view instance_name) { ipc_ev.create(instance_name); ipc_version = ipc_ev->get_v...
160
683
/* * Copyright The OpenTelemetry Authors * SPDX-License-Identifier: Apache-2.0 */ package io.opentelemetry.javaagent.instrumentation.api; final class CallDepthThreadLocalMap { private static final ClassValue<ThreadLocalDepth> TLS = new ClassValue<ThreadLocalDepth>() { @Override protected T...
245
302
#include "../cpu/isr.h" #include "../drivers/screen.h" #include "kernel.h" #include "../libc/string.h" #include "../memory/kheap.h" #include <stdint.h> void kernel_main() { isr_install(); irq_install(); fprint("Type something, it will go through the kernel\n" "Type END to halt the CPU or PAGE t...
341
479
// Copyright (C) 2015 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 applicable ...
512
1,346
<filename>app/src/main/java/com/huanchengfly/tieba/post/components/dialogs/BaseBottomSheetDialog.java package com.huanchengfly.tieba.post.components.dialogs; import android.content.Context; import android.view.View; import androidx.annotation.NonNull; import com.google.android.material.bottomsheet.BottomSheetDialog;...
392
14,425
<reponame>bzhaoopenstack/hadoop /** * 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 ...
956
5,964
<filename>src/compiler/branch-elimination.h // Copyright 2015 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. #ifndef V8_COMPILER_BRANCH_CONDITION_ELIMINATION_H_ #define V8_COMPILER_BRANCH_CONDITION_ELIMINATION_H_ #in...
1,143
314
<reponame>kolinkrewinkel/Multiplex // // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "CDStructures.h" @interface IDEIPAProcessor : NSObject { } + (id)sharedInstance; - (BOOL)compileBitcodeForPayloadAppAtPath:(id)arg1 toPath:(id...
371
916
package com.pancm.basics; import java.util.ArrayList; import java.util.Comparator; import java.util.HashSet; import java.util.Iterator; import java.util.LinkedHashSet; import java.util.List; import java.util.Set; import java.util.TreeSet; /** * * @Title: setTest * @Description: 重写set中的equals和hashcode * @Version:1.0...
4,058
2,293
/*---------------------------------------------------------------------------- * CMSIS-RTOS - RTX *---------------------------------------------------------------------------- * Name: RT_TASK.H * Purpose: Task functions and system start up. * Rev.: V4.79 *------------------------------...
957
1,473
/* * Autopsy * * Copyright 2020 Basis Technology Corp. * Contact: carrier <at> sleuthkit <dot> org * * 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/lice...
1,217