max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
2,338
<filename>libcxx/test/std/algorithms/alg.modifying.operations/alg.generate/generate.pass.cpp //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. /...
614
348
<filename>docs/data/leg-t1/024/02401138.json<gh_stars>100-1000 {"nom":"Coulounieix-Chamiers","circ":"1ère circonscription","dpt":"Dordogne","inscrits":6197,"abs":3079,"votants":3118,"blancs":48,"nuls":31,"exp":3039,"res":[{"nuance":"REM","nom":"<NAME>","voix":1099},{"nuance":"FI","nom":"<NAME>","voix":581},{"nuance":"F...
269
835
package com.zzhoujay.markdown.style; import android.annotation.TargetApi; import android.graphics.Canvas; import android.graphics.Paint; import android.graphics.Path; import android.os.Build; import android.text.style.ReplacementSpan; import com.zzhoujay.markdown.util.NumberKit; /** * Created by zhou on 16-7-3. * ...
1,775
2,542
// ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ namespace TXRStatefulServiceBa...
2,043
664
/* * Copyright 2013-2020 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
977
751
<gh_stars>100-1000 /* * Copyright (c) 2021 Cisco 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 re...
445
4,036
#include "includefirsttarget.h" // has it's own include guard #ifndef INCLUDEFIRST_H #define INCLUDEFIRST_H // GOOD: this header file has an include guard. void includeFirstFunction(); #endif // INCLUDEFIRST_H
78
348
<gh_stars>100-1000 {"nom":"Brassy","circ":"4ème circonscription","dpt":"Somme","inscrits":61,"abs":36,"votants":25,"blancs":0,"nuls":0,"exp":25,"res":[{"nuance":"REM","nom":"<NAME>","voix":14},{"nuance":"FN","nom":"<NAME>","voix":11}]}
97
437
<gh_stars>100-1000 package com.fasterxml.jackson.dataformat.xml.lists; import java.util.*; import static org.junit.Assert.*; import static org.hamcrest.CoreMatchers.*; import static org.hamcrest.MatcherAssert.assertThat; import org.junit.*; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.ann...
836
429
<reponame>fqliao/MP-SPDZ<gh_stars>100-1000 /* * semi-party.cpp * */ #include "Math/gfp.h" #include "Protocols/SemiShare.h" #include "Tools/SwitchableOutput.h" #include "GC/SemiPrep.h" #include "Processor/FieldMachine.hpp" #include "Semi.hpp" #include "GC/ShareSecret.hpp" #include "Math/gfp.hpp" int main(int argc,...
188
965
CArray<CPoint, CPoint> myArray; // Add elements to the array. for (int i = 0; i < 10; i++) { myArray.Add(CPoint(i, 2 * i)); } // Modify all the points in the array. for (int i = 0; i <= myArray.GetUpperBound(); i++) { myArray[i].x = 0; }
104
5,908
package org.testcontainers.junit; import org.junit.Test; import org.testcontainers.containers.SeleniumUtils; import java.io.IOException; import java.util.jar.Manifest; import static org.rnorth.visibleassertions.VisibleAssertions.*; /** * Created by <NAME> */ public class SeleniumUtilsTest { @Test public...
424
1,958
package com.freetymekiyan.algorithms.level.medium; import org.junit.Assert; import org.testng.annotations.DataProvider; import org.testng.annotations.Test; public class WordSearchTest { @DataProvider(name = "examples") public Object[][] getExamples() { char[][] board = { {'A', 'B', 'C...
485
7,062
<gh_stars>1000+ // -*- Mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- // Copyright (c) 2008, Google Inc. // 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...
973
1,191
<reponame>macCesar/titanium_mobile<gh_stars>1000+ /** * Appcelerator Titanium Mobile * Copyright (c) 2009-2012 by Appcelerator, Inc. All Rights Reserved. * Licensed under the terms of the Apache Public License * Please see the LICENSE included with this distribution for details. */ package org.appcelerator.kroll; ...
1,305
892
{ "schema_version": "1.2.0", "id": "GHSA-rj8x-cp5p-j26r", "modified": "2022-05-12T00:01:26Z", "published": "2022-05-12T00:01:26Z", "aliases": [ "CVE-2021-3611" ], "details": "A stack overflow vulnerability was found in the Intel HD Audio device (intel-hda) of QEMU. A malicious guest could use this fla...
429
781
<gh_stars>100-1000 // file: source/core/memory_virtual.c //////////////////////////////////////////////////////////////// // // Virtual Memory // // ZPL_BEGIN_C_DECLS zpl_virtual_memory zpl_vm(void *data, zpl_isize size) { zpl_virtual_memory vm; vm.data = data; vm.size = size; return vm; } #if defin...
1,717
1,299
/* * 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 ...
643
859
<reponame>Ivoz/cleo<gh_stars>100-1000 from enum import Enum from typing import TYPE_CHECKING from typing import Iterable from typing import Optional from typing import Union from cleo._utils import strip_tags from cleo.formatters.formatter import Formatter if TYPE_CHECKING: from .section_output import SectionOut...
1,351
589
<filename>inspectit.shared.cs/src/main/java/rocks/inspectit/shared/cs/ci/sensor/method/impl/ApacheClientExchangeHandlerSensorConfig.java<gh_stars>100-1000 package rocks.inspectit.shared.cs.ci.sensor.method.impl; import javax.xml.bind.annotation.XmlRootElement; import rocks.inspectit.shared.all.instrumentation.config....
500
522
<filename>src/algs/model/network/OptimizedFlowNetwork.java package algs.model.network; import java.util.Iterator; import algs.model.list.DoubleLinkedList; /** * Store information regarding the graph in a two-dimensional matrix. * <p> * This optimized implementation computes the Ford-Fulkerson algorithm * entirel...
2,378
451
<reponame>Shlpeng/Qualitis<gh_stars>100-1000 /* * Copyright 2019 WeBank * * 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 req...
20,342
376
#pragma once #include <Register/Utility.hpp> namespace Kvasir { //Event System Interface namespace EvsysChannel{ ///<Channel using Addr = Register::Address<0x42000404,0xf080fef0,0x00000000,unsigned>; ///Channel Selection constexpr Register::FieldLocation<Addr,Register::maskFromRange(3,0)...
7,638
1,178
# Copyright 2020 Makani Technologies LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
3,906
1,162
<gh_stars>1000+ { "type": "service_account", "project_id": "dummy-project", "private_key_id": "1b74fe23959e7ebc0735590ebced3b6a7057ded0", "private_key": "-----<KEY>", "client_email": "<EMAIL>", "client_id": "103785715584895261604", "auth_uri": "https://accounts.google.com/o/oauth2/auth", "token_uri": "h...
243
1,760
<filename>third_party/protobuf/python/google/protobuf/pyext/repeated_composite_container.cc<gh_stars>1000+ // Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // https://developers.google.com/protocol-buffers/ // // Redistribution and use in source and binary forms...
8,753
3,793
/* Copyright 2009 - 2021 NoahFrame(NoahGameFrame) File creator: lvsheng.huang This source file is part of NoahGameFrame/NoahFrame. NoahGameFrame/NoahFrame is open-source software and you can redistribute it and/or modify it under the terms of the License; besides, anyone who use this file/software mus...
810
421
<filename>samples/snippets/cpp/VS_Snippets_CLR_System/system.Double.ToString/cpp/tostring1.cpp // ToStringCPP.cpp : main project file. // <Snippet4> using namespace System; using namespace System::Globalization; int main(array<System::String ^> ^args) { double value = 16325.62901; String^ specifier; ...
867
14,668
// 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. #include "ash/public/cpp/ambient/ambient_client.h" #include "base/check_op.h" namespace ash { namespace { AmbientClient* g_ambient_client = nullptr; ...
223
373
<reponame>heatd/edk2-platforms<filename>Silicon/Intel/WhitleySiliconPkg/Pch/SouthClusterLbg/Include/Register/PchRegsPsf.h /** @file Register definition for PSF component Conventions: Prefixes: Definitions beginning with "R_" are registers Definitions beginning with "B_" are bits within registers Defin...
15,011
1,269
<reponame>chiclaim/kotlin-study package lambda; /** * desc: * <p> * Created by Chiclaim on 2018/12/31 */ public class FunctionalInterface { public static void main(String[]args){ Button button = new Button(); button.setOnClickListener(new Button.OnClickListener() { @Override ...
288
323
<filename>vnpy/api/xtp/generator/xtp_td_source_on.cpp void onDisconnected(int extra, int extra) override { try { PYBIND11_OVERLOAD(void, TdApi, onDisconnected, extra, extra); } catch (const error_already_set &e) { cout << e.what() << endl; } }; void onError(const dict &error) override { try { PYBIND11_OV...
2,711
3,269
<filename>C++/minimum-number-of-removals-to-make-mountain-array.cpp<gh_stars>1000+ // Time: O(nlogn) // Space: O(n) class Solution { public: int minimumMountainRemovals(vector<int>& nums) { vector<int> left_lis_len(size(nums)); vector<int> lis; for (int i = 0; i + 1 < size(nums); ++i) { ...
590
521
#ifndef FOO #error FOO is not defined #endif #define XSTR(x) STR(x) #define STR(x) #x #pragma message "The value of __TIME__: " XSTR(__TIME__) #define STATIC_ASSERT( condition, name )\ typedef char assert_failed_ ## name [ (condition) ? 1 : -1 ]; void foo() { STATIC_ASSERT(__TIME__ == "redacted", time_must_be_re...
163
560
<filename>app/src/main/java/me/zhanghai/android/douya/util/GsonHelper.java<gh_stars>100-1000 /* * Copyright (c) 2015 <NAME> <<EMAIL>> * All Rights Reserved. */ package me.zhanghai.android.douya.util; import com.google.gson.Gson; import com.google.gson.GsonBuilder; import com.google.gson.JsonDeserializationContext;...
2,182
473
/* Copyright (c) 2009-2016, <NAME> All rights reserved. This file is part of Elemental and is under the BSD 2-Clause License, which can be found in the LICENSE file in the root directory, or at http://opensource.org/licenses/BSD-2-Clause */ #include <El.hpp> // NOTE: This definition is nearly identical...
2,989
2,023
<reponame>tdiprima/code #!/usr/bin/env python # win32shutdown.py import win32api import win32con import win32netcon import win32security import win32wnet def shutdown(host=None, user=None, passwrd=None, msg=None, timeout=0, force=1, reboot=0): """ Shuts down a remote computer, requires NT-BASED OS. ...
893
1,847
<reponame>tufeigunchu/orbit<gh_stars>1000+ // Copyright (c) 2021 The Orbit 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 ORBIT_GL_ACCESSIBLE_TRIANGLE_TOGGLE_H_ #define ORBIT_GL_ACCESSIBLE_TRIANGLE_TOGGLE_H_ #include "Acces...
463
1,457
<gh_stars>1000+ package org.kairosdb.core.http.rest; import ch.qos.logback.classic.Level; import com.google.common.base.Charsets; import com.google.common.collect.ImmutableMap; import com.google.common.io.Resources; import com.google.gson.GsonBuilder; import org.junit.Before; import org.junit.Test; import org.kairosdb...
4,849
1,821
<filename>util-validator/src/main/java/com/twitter/util/validation/constraints/UUID.java package com.twitter.util.validation.constraints; import java.lang.annotation.Documented; import java.lang.annotation.Repeatable; import java.lang.annotation.Retention; import java.lang.annotation.Target; import com.twitter.util.v...
564
1,311
// SPDX-FileCopyrightText: 2021 <NAME> // SPDX-License-Identifier: MIT #include <Jolt.h> #include <TriangleGrouper/TriangleGrouperClosestCentroid.h> #include <Geometry/MortonCode.h> namespace JPH { void TriangleGrouperClosestCentroid::Group(const VertexList &inVertices, const IndexedTriangleList &inTriangles, int i...
1,181
369
#define SOKOL_IMPL #include "sokol_app.h" void use_app_impl() { sapp_run({ }); }
43
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...
7,970
20,995
// Copyright 2021 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_WASM_STACKS_H_ #define V8_WASM_STACKS_H_ #if !V8_ENABLE_WEBASSEMBLY #error This header should only be included if WebAssembly is enabled. #e...
779
6,700
import pathlib import platform import shutil import tempfile import unittest import pykka from mopidy import core from mopidy.m3u.backend import M3UBackend from mopidy.models import Playlist, Track from tests import dummy_audio, path_to_data_dir from tests.m3u import generate_song class M3UPlaylistsProviderTest(un...
5,797
369
<filename>FreeRTOSv10.4.1/FreeRTOS/Demo/CORTEX_M4_ATSAM4L_Atmel_Studio/src/asf/sam/boards/sam4l_ek/init.c /** * \file * * \brief SAM4L-EK Board init. * * This file contains board initialization function. * * Copyright (c) 2012 - 2013 Atmel Corporation. All rights reserved. * * \asf_license_start * * \page Li...
3,216
361
package li.cil.oc2.common.entity; import li.cil.oc2.common.util.RegistryUtils; import net.minecraft.entity.Entity; import net.minecraft.entity.EntityClassification; import net.minecraft.entity.EntityType; import net.minecraftforge.fml.RegistryObject; import net.minecraftforge.registries.DeferredRegister; import net.mi...
367
305
//===-- ThreadMinidump.cpp ------------------------------------------------===// // // 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 // //===---------------------------...
1,631
1,799
package io.cucumber.plugin.event; import org.apiguardian.api.API; import java.time.Instant; @API(status = API.Status.STABLE) public interface Event { /** * Returns instant from epoch. * * @return time instant in Instant * @see Instant#now() */ Instant getInstant(); }
121
696
/* * Copyright (C) 2015 - present by OpenGamma Inc. and the OpenGamma group of companies * * Please see distribution for license. */ package com.opengamma.strata.product.deposit; import static com.opengamma.strata.basics.currency.Currency.GBP; import static com.opengamma.strata.basics.date.BusinessDayConventions.M...
2,930
1,514
<reponame>shubhangi013/owtf """ owtf.api.handlers.plugin ~~~~~~~~~~~~~~~~~~~~~~~~ """ import collections from owtf.api.handlers.base import APIRequestHandler from owtf.constants import MAPPINGS from owtf.lib import exceptions from owtf.lib.exceptions import APIError from owtf.managers.plugin import get_all_plugin_dic...
8,385
1,473
/* * Copyright 2018 NAVER Corp. * * 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 ...
584
345
<reponame>ddc/XivAlexander #pragma once namespace App { namespace Network { class SocketHook; } } namespace App::Feature { class AnimationLockLatencyHandler { struct Implementation; std::unique_ptr<Implementation> m_pImpl; public: AnimationLockLatencyHandler(Network::SocketHook* socketHook); ~Animation...
121
303
#ifndef SHUMATECHLOGO_BMP_H #define SHUMATECHLOGO_BMP_H static unsigned char ShumaTechLogo_bmp[] = { 0x42, 0x4d, 0x36, 0x45, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x36, 0x00, 0x00, 0x00, 0x28, 0x00, 0x00, 0x00, 0x8a, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x45, 0x0...
70,949
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...
3,521
8,315
package com.airbnb.epoxy; /** Helper to store relevant information about a model that we need to determine if it changed. */ class ModelState { long id; int hashCode; int position; EpoxyModel<?> model; /** * A link to the item with the same id in the other list when diffing two lists. This will be null ...
706
319
import unittest from jbrowse_selenium import JBrowseTest from selenium.webdriver.support.wait import WebDriverWait class JasmineTest( JBrowseTest, unittest.TestCase ): def baseURL( self ): if not self.base_url: superbase = super( JasmineTest, self ).baseURL() self.base_url = sup...
299
1,444
package mage.cards.e; import java.util.UUID; import mage.MageInt; import mage.abilities.common.BeginningOfUpkeepTriggeredAbility; import mage.abilities.effects.common.ReturnToHandChosenControlledPermanentEffect; import mage.abilities.keyword.FlyingAbility; import mage.cards.CardImpl; import mage.cards.CardSetInfo; i...
490
1,056
<filename>ide/bugtracking/test/unit/src/org/netbeans/modules/bugtracking/api/APITestRepository.java /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. ...
3,038
339
{ "id": "avg_execution_time_vs_task_id", "title": "Average Task Completion Times By User", "type": "gadget", "category": "Subscribers", "thumbnail": "store://gadget/avg_execution_time_vs_task_id/index.png", "settings": { "personalize": true }, "data": { "url": "store://gadget/avg_execution_time_...
212
14,668
<reponame>zealoussnow/chromium // 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. #include "chrome/browser/ash/login/saml/in_session_password_sync_manager_factory.h" #include "ash/constants/ash_features.h...
596
1,752
<gh_stars>1000+ package cn.myperf4j.base.metric.exporter.log.influxdb; import cn.myperf4j.base.metric.JvmBufferPoolMetrics; import cn.myperf4j.base.metric.formatter.JvmBufferPoolMetricsFormatter; import cn.myperf4j.base.metric.formatter.influxdb.InfluxJvmBufferPoolMetricsFormatter; import cn.myperf4j.base.metric.expor...
325
852
#include "FWCore/Framework/interface/MakerMacros.h" #include "CalibFormats/SiStripObjects/test/plugins/testSiStripHashedDetId.h" DEFINE_FWK_MODULE(testSiStripHashedDetId);
68
6,514
<filename>blade-auth/src/main/java/org/springblade/auth/granter/SocialTokenGranter.java /** * Copyright (c) 2018-2028, <NAME> 庄骞 (<EMAIL>). * <p> * 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 Licen...
1,174
2,577
<reponame>mdsarfarazalam840/camunda-bpm-platform<filename>engine/src/test/java/org/camunda/bpm/engine/test/api/authorization/batch/creation/HistoricProcessInstanceDeletionBatchAuthorizationTest.java /* * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH * under one or more contributor license...
1,194
1,085
/* * Copyright (C) 2017-2019 Dremio 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 l...
462
572
{".class": "MypyFile", "_fullname": "exemplo_2", "is_partial_stub_package": false, "is_stub": false, "names": {".class": "SymbolTable", "Optional": {".class": "SymbolTableNode", "cross_ref": "typing.Optional", "kind": "Gdef"}, "Union": {".class": "SymbolTableNode", "cross_ref": "typing.Union", "kind": "Gdef"}, "__doc__...
650
1,592
<reponame>DavisVaughan/xtensor /*************************************************************************** * Copyright (c) <NAME>, <NAME> and <NAME> * * Copyright (c) QuantStack * * * * Dis...
949
5,169
<filename>Specs/7/c/a/FrameworkTesting/0.0.7/FrameworkTesting.podspec.json { "name": "FrameworkTesting", "version": "0.0.7", "summary": "A testing framework", "description": "A testing framework about resource, internal Cocoapods usage, strings, etc...", "homepage": "https://github.com/ngo275", "license": "...
360
416
package org.simpleflatmapper.converter.impl; import org.simpleflatmapper.converter.Context; import org.simpleflatmapper.converter.ContextualConverter; public class CharSequenceShortConverter implements ContextualConverter<CharSequence, Short> { @Override public Short convert(CharSequence in, Context context) ...
174
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 ...
517
815
<reponame>MhmudAlpurd/IC-pytorchlite // Copyright (c) 2020 Facebook, Inc. and its affiliates. // 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. package org.pytorch.demo.objectdetection; import androidx.appcomp...
5,285
660
package quick.pager.shop.param.goods; public class GoodsPageParam { }
24
328
package com.poiji.deserialize.model.byid; import com.poiji.annotation.ExcelCell; /** * Created by hakan on 07/08/2018 */ public class Sample { @ExcelCell(0) private String month; @ExcelCell(1) private Double amount; @ExcelCell(2) private String other; public String getMonth() { ...
415
852
<gh_stars>100-1000 import FWCore.ParameterSet.Config as cms TrackerSimHitsBlock = cms.PSet( TrackerSimHits = cms.PSet( # Smallest charged particle pT for which SimHit's are saved (GeV/c) pTmin = cms.untracked.double(0.2), # Save SimHit's only for the first loop firstLoop = cms.untra...
215
819
#define DR_WAV_IMPLEMENTATION #include "../../dr_wav.h" #include <sndfile.h> #include "../common/dr_common.c" dr_handle g_libsndfile = NULL; typedef SNDFILE* (* pfn_sf_open_virtual)(SF_VIRTUAL_IO* sfvirtual, int mode, SF_INFO* sfinfo, void* user_data); typedef int (* pfn_sf_close) (SNDFILE* sndfile); t...
5,470
575
// Copyright 2019 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 CHROMECAST_MEDIA_AUDIO_MIXER_SERVICE_AUDIO_SOCKET_SERVICE_H_ #define CHROMECAST_MEDIA_AUDIO_MIXER_SERVICE_AUDIO_SOCKET_SERVICE_H_ #include <memor...
750
852
<gh_stars>100-1000 #ifndef DQM_SiStripCommissioningClients_CommissioningHistosUsingDb_H #define DQM_SiStripCommissioningClients_CommissioningHistosUsingDb_H #include "Geometry/Records/interface/TrackerTopologyRcd.h" #include "DataFormats/SiStripCommon/interface/SiStripConstants.h" #include "DQM/SiStripCommissioningCl...
1,015
700
from skidl import SKIDL, TEMPLATE, Part, Pin, SchLib SKIDL_lib_version = '0.0.1' supertex = SchLib(tool=SKIDL).add_parts(*[ Part(name='CL220K4-G',dest=TEMPLATE,tool=SKIDL,keywords='Constant Current LED Driver IC',description='Temperature Compensated Constant Current LED IC, D-PAK',ref_prefix='U',num_units=1,f...
4,185
897
<reponame>Khushboo85277/NeoAlgo ''' A program that returns the count of perfect squares less than or equal to a given number. It also displays those numbers which are perfect squares within the range of that number. The number should be greater than or equal to 1 ''' #importing math function as it will be used for...
378
828
/* * Copyright 2008-2009 the original author or 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 ap...
3,264
678
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "NSObject.h" @class NSString, UIImage; @protocol ShortVideoBarDelegate <NSObject> - (void)onCameraResign; - (void)onSightPictureTaken:(UIImage *)arg1 withFrontCamera:(_Bool)arg2...
270
1,556
import sys sys.path.append("") from micropython import const import time, machine import uasyncio as asyncio import aioble import bluetooth import random TIMEOUT_MS = 5000 _L2CAP_PSM = const(22) _L2CAP_MTU = const(512) _PAYLOAD_LEN = const(_L2CAP_MTU) _NUM_PAYLOADS = const(20) _RANDOM_SEED = 22 # Acting in per...
1,051
1,198
/* Copyright 2017-2019 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 t...
1,962
1,656
<reponame>HashZhang/spring-cloud-sleuth /* * Copyright 2013-2021 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/license...
1,102
986
#include "portaudiocpp/Exception.hxx" namespace portaudio { // ----------------------------------------------------------------------------------- // PaException: // ----------------------------------------------------------------------------------- ////// /// Wraps a PortAudio error into a PortAudioCpp PaExcep...
842
5,169
<filename>Specs/PPiFlatSegmentedControl/1.3/PPiFlatSegmentedControl.podspec.json { "name": "PPiFlatSegmentedControl", "version": "1.3", "platforms": { "ios": "5.0" }, "license": "MIT", "summary": "Flat UISegmentedControl for flat designs.", "homepage": "https://github.com/pepibumur/PPiFlatSegmentedCon...
311
3,066
<gh_stars>1000+ /* * Licensed to Crate.io GmbH ("Crate") under one or more contributor * license agreements. See the NOTICE file distributed with this work for * additional information regarding copyright ownership. Crate licenses * this file to you under the Apache License, Version 2.0 (the "License"); * you ma...
532
429
/* Generated by the protocol buffer compiler. DO NOT EDIT! */ /* Generated from: drpc_test.proto */ /* Do not generate deprecated warnings for self */ #ifndef PROTOBUF_C__NO_DEPRECATED #define PROTOBUF_C__NO_DEPRECATED #endif #include "drpc_test.pb-c.h" void hello__hello__init (Hello__Hello ...
2,979
428
<reponame>cping/LGame /** * Copyright 2008 - 2015 The Loon Game Engine 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 * * U...
15,513
400
<filename>lab8/src/6/include/os_constant.h #ifndef OS_CONSTANT_H #define OS_CONSTANT_H #define IDT_START_ADDRESS 0xc0008880 #define CODE_SELECTOR 0x20 #define STACK_SELECTOR 0x10 #define MAX_PROGRAM_NAME 16 #define MAX_PROGRAM_AMOUNT 16 #define MEMORY_SIZE_ADDRESS 0xc0007c00 #define PAGE_SIZE 4096 #define BITMAP_STA...
307
8,586
<filename>src/meta/processors/admin/ListSnapshotsProcessor.h /* Copyright (c) 2019 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License. */ #ifndef META_LISTSNAPSHOTSPROCESSOR_H_ #define META_LISTSNAPSHOTSPROCESSOR_H_ #include "meta/processors/BaseProcessor.h" namespace nebul...
301
1,755
/*========================================================================= Program: Visualization Toolkit Module: TestOrientedGlyphContour.cxx Copyright (c) <NAME>, <NAME>, <NAME> All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This software is distrib...
1,937
515
# Copyright (c) 2016-2020, <NAME> # License: MIT License import pytest import logging import ezdxf from ezdxf.entities.image import ImageDef, Image logger = logging.getLogger("ezdxf") @pytest.fixture(scope="module") def doc(): return ezdxf.new("R2000") @pytest.fixture(scope="module") def image_def(doc): r...
4,928
471
<reponame>akashkj/commcare-hq<gh_stars>100-1000 from collections import namedtuple from datetime import date, datetime, timedelta from django.contrib.humanize.templatetags.humanize import naturaltime from django.db.models import Q from django.urls import reverse from django.utils.functional import cached_property from...
16,495
4,262
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
3,230
1,694
<reponame>CrackerCat/iWeChat // // Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>. // #import <objc/NSObject.h> @class NSString; @interface TemplateWeappOPWrap : NSObject { unsigned int _weapp...
441
2,350
import unreal_engine as ue from unreal_engine.classes import SceneCaptureComponent2D from unreal_engine.enums import ESceneCaptureSource class Sight: def __init__(self): self.what_i_am_seeing = ue.create_transient_texture_render_target2d(512, 512) def pre_initialize_components(self): # add a...
364
14,668
// Copyright 2018 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/chrome_cleaner/zip_archiver/test_zip_archiver_util.h" #include <limits> #include <vector> #include "testing/gtest/include/gtest/gtest.h...
2,170
4,772
package example.repo; import example.model.Customer307; import java.util.List; import org.springframework.data.repository.CrudRepository; public interface Customer307Repository extends CrudRepository<Customer307, Long> { List<Customer307> findByLastName(String lastName); }
83