max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
1,332
#ifndef _LIBCURVE25519_INLINE_H_ #define _LIBCURVE25519_INLINE_H_ #if defined(__MINGW32__) || defined(__MINGW64__) #define __always_inline inline __attribute__ ((always_inline)) #endif #endif
86
1,738
<reponame>jeikabu/lumberyard<filename>dev/Code/Tools/SceneAPI/SceneCore/DataTypes/DataTypeUtilities.cpp /* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "Lice...
3,677
551
package com.android.adobot.tasks; import android.Manifest; import android.arch.persistence.room.Room; import android.content.ContentResolver; import android.content.Context; import android.content.SharedPreferences; import android.content.pm.PackageManager; import android.database.ContentObserver; import android.datab...
7,163
938
<reponame>LaudateCorpus1/swift-llvm //===- CoroEarly.cpp - Coroutine Early Function Pass ----------------------===// // // 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...
3,994
1,492
<filename>start-site/src/test/java/io/spring/start/site/extension/dependency/observability/ObservabilityProjectGenerationConfigurationTests.java<gh_stars>1000+ /* * Copyright 2012-2020 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file exc...
691
371
<filename>socceraction/vaep/base.py # -*- coding: utf-8 -*- """Implements the VAEP framework. Attributes ---------- xfns_default : list(callable) The default VAEP features. """ import math from typing import Any, Callable, Dict, List, Optional, Tuple import numpy as np import pandas as pd from sklearn.exceptions...
5,816
666
<gh_stars>100-1000 // // QIYITabbarItem.h // QIYIMiniProgram // // Created by Breakerror on 2018/3/1. // Copyright © 2018年 Breakerror. All rights reserved. // #import "QIYIInct.h" @interface QIYITabbarItem: UIView @property(nonatomic, assign, readwrite) BOOL selected; @property(nonatomic, strong, readwrite) ...
254
778
import KratosMultiphysics as Kratos class PouliotRecoveryTools: def __init__(self): pass def MakeRecoveryModelPart(self, model_part): edges_model_part = Kratos.ModelPart("Edges") set_of_all_edges = set() for elem in model_part.Elements: for i, first_node in enumerat...
330
1,133
/** * * PixelFlow | Copyright (C) 2017 <NAME> - www.thomasdiewald.com * * https://github.com/diwi/PixelFlow.git * * A Processing/Java library for high performance GPU-Computing. * MIT License: https://opensource.org/licenses/MIT * */ package Shadertoy.Shadertoy_ExpansiveReactionDiffusion; import java....
1,471
412
/*******************************************************************\ Module: Variables whose address is taken Author: <NAME> Date: March 2013 \*******************************************************************/ /// \file /// Variables whose address is taken #ifndef CPROVER_ANALYSES_DIRTY_H #define CPROVER_ANALY...
1,115
315
#include "Timing.h" namespace Fling { std::chrono::high_resolution_clock::time_point sStartTime; void Timing::Init() { sStartTime = std::chrono::high_resolution_clock::now(); } void Timing::Update() { double currentTime = GetTime(); m_deltaTime = (float)( currentTime - m_lastFrameStartTime ); // Calc...
528
1,040
// // MLRender.h // // Graphics interface for MusicLines // // Copyright (c) 1998-1999 Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- #ifndef _MLRender_ #define _MLRender_ #include <ddraw.h> // Loaded tiles are 3 16x16 (head, tail, dead) //...
2,250
1,817
/* * * * Copyright 2019-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 *...
537
360
<filename>src/test/java/indi/mybatis/flying/pojo/ProjRatio.java package indi.mybatis.flying.pojo; import java.io.Serializable; import javax.persistence.Id; import org.apache.ibatis.type.JdbcType; import indi.mybatis.flying.annotations.FieldMapperAnnotation; import indi.mybatis.flying.annotations.TableMappe...
702
1,350
<reponame>ppartarr/azure-sdk-for-java // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. /** * Package containing API for tracing. */ package com.azure.core.util.tracing;
67
5,964
/* * Copyright 2011 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 applic...
528
1,419
<reponame>Mattlk13/pybuilder # -*- coding: utf-8 -*- # # This file is part of PyBuilder # # Copyright 2011-2021 PyBuilder Team # # 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 # # ...
961
2,062
<reponame>TheVinhLuong102/Strawberry from enum import Enum import strawberry def test_repr_type(): @strawberry.type class MyType: s: str i: int b: bool f: float id: strawberry.ID assert ( repr(MyType("a", 1, True, 3.2, "123")) == "test_repr_type.<l...
278
1,283
package com.pengrad.telegrambot.request; import com.pengrad.telegrambot.model.MessageEntity; import com.pengrad.telegrambot.model.Poll; import com.pengrad.telegrambot.model.request.ParseMode; /** * <NAME> * 17 April 2019 */ public class SendPoll extends AbstractSendRequest<SendPoll> { public SendPoll(Object c...
613
519
// // EENavigationController.h // iOSBlogReader // // Created by everettjf on 16/4/27. // Copyright © 2016年 everettjf. All rights reserved. // #import <UIKit/UIKit.h> @interface EENavigationController : UINavigationController @end
87
2,517
// This file is part of CAF, the C++ Actor Framework. See the file LICENSE in // the main distribution directory for license terms and copyright or visit // https://github.com/actor-framework/actor-framework/blob/master/LICENSE. #pragma once #include "caf/actor_companion.hpp" #include "caf/config.hpp" #include "caf/m...
999
415
<filename>Volume_13/Number_4/Ruijters2008/examples/cubicRotate2D/demo.c<gh_stars>100-1000 /***************************************************************************** * Date: January 3, 2006 * Date: September 2, 2008: adapted the original program of <NAME> * to demonstrate CUDA based cubic B-spline interpo...
1,301
335
/* * unarchiver.h * ------------ * Purpose: archive loader * Notes : (currently none) * Authors: OpenMPT Devs * The OpenMPT source code is released under the BSD license. Read LICENSE for more details. */ #pragma once #include "openmpt/all/BuildSettings.hpp" #include "../common/FileReader.h" #include "archi...
725
17,703
#pragma once #include "envoy/server/configuration.h" #include "gmock/gmock.h" #include "instance.h" #include "tracer_factory.h" namespace Envoy { namespace Server { namespace Configuration { class MockTracerFactoryContext : public TracerFactoryContext { public: MockTracerFactoryContext(); ~MockTracerFactoryConte...
193
834
// Copyright 2004-present Facebook. All Rights Reserved. #include "fboss/agent/hw/bcm/BcmHostKey.h" #include "fboss/agent/test/LabelForwardingUtils.h" #include <gtest/gtest.h> namespace { auto constexpr kLinkLocal = "fe80::"; using namespace facebook::fboss; void verifyUnlabeledHostKey( const HostKey& key, ...
1,975
438
<reponame>yjfnypeu/Router /* * Copyright (C) 2017 Haoge * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
1,944
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 ...
1,343
313
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import libcst as cst import libcst.matchers as m from fixit import CstLintRule, InvalidTestCase as Invalid, ValidTestCase as Valid class No...
601
321
<filename>BTBManagerTelegram.py from btb_manager_telegram.__main__ import main, pre_run_main if __name__ == "__main__": pre_run_main() main()
61
2,693
<reponame>Chillee/benchmark import unittest import torch from fastNLP import Vocabulary, DataSet, Instance from fastNLP.embeddings.char_embedding import LSTMCharEmbedding, CNNCharEmbedding class TestCharEmbed(unittest.TestCase): def test_case_1(self): ds = DataSet([Instance(words=['hello', 'world']), In...
473
2,109
/* * Copyright (c) 2008 <NAME> * <EMAIL>andre.hamelin(@)gmail.com * Based on saltSHA1 format source. * * Intrinsics use: Copyright magnum 2012 and hereby released to the general * public under the following terms: * * Redistribution and use in source and binary forms, with or without * modification, is permitt...
6,360
355
<gh_stars>100-1000 // Copyright (c) 2015 // Author: <NAME> #include <std.hpp> using namespace std; #include <boost/static_assert.hpp> ////////////////////////////////////////// void case1() { BOOST_STATIC_ASSERT(2 == sizeof(short)); BOOST_STATIC_ASSERT(true); BOOST_STATIC_ASSERT_MSG(16 == 0x10, "test sta...
368
1,112
<reponame>berezhko/python-control # exception.py - exception definitions for the control package # # Author: <NAME> # Date: 31 May 2010 # # This file contains definitions of standard exceptions for the control package # # Copyright (c) 2010 by California Institute of Technology # All rights reserved. # # Redistribution...
818
2,358
<filename>test/pytest/test_integrate.py import numpy as np import os import sys sys.path.append(os.path.abspath(r'../lib')) import NumCppPy as NumCpp # noqa E402 #################################################################################### NUM_DECIMALS_ROUND = 1 #############################################...
1,236
348
{"nom":"Cours","circ":"3ème circonscription","dpt":"Lot-et-Garonne","inscrits":163,"abs":74,"votants":89,"blancs":4,"nuls":1,"exp":84,"res":[{"nuance":"REM","nom":"<NAME>","voix":51},{"nuance":"FN","nom":"M. <NAME>","voix":33}]}
94
852
<filename>RecoTracker/SpecialSeedGenerators/src/SimpleCosmicBONSeeder.cc // // Package: RecoTracker/TkSeedGenerator // Class: GlobalPixelLessSeedGenerator // // From CosmicSeedGenerator+SimpleCosmicBONSeeder, with changes by Giovanni // to seed Cosmics with B != 0 #include "RecoTracker/SpecialSeedGen...
12,148
2,113
<reponame>vbillet/Torque3D /* * Copyright 2006 Sony Computer Entertainment Inc. * * Licensed under the SCEA Shared Source License, Version 1.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://research.scea.com/scea_shared_source_l...
1,250
1,962
<reponame>appotry/blog_demos package com.bolingcavalry.minusservice.service.impl; import com.bolingcavalry.api.exception.MinusException; import com.bolingcavalry.api.service.MinusService; /** * @author wilzhao * @description 减法服务的实现,不支持负数 * @email <EMAIL> * @time 2018/10/13 14:24 */ public class Minus...
416
19,438
<gh_stars>1000+ /* * Copyright (c) 2021, <NAME> <<EMAIL>> * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include "Symbols.h" #include <AK/Types.h> namespace Video::VP9 { enum FrameType { KeyFrame, NonKeyFrame }; enum ColorSpace : u8 { Unknown = 0, Bt601 = 1, Bt709 = 2, Smpte...
1,264
2,151
/* * Copyright (C) 2016 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
1,435
1,609
<filename>Code/GraphMol/PartialCharges/Wrap/rdPartialCharges.cpp // $Id$ // // Copyright (C) 2003-2006 Rational Discovery LLC // // @@ All Rights Reserved @@ // This file is part of the RDKit. // The contents are covered by the terms of the BSD license // which is included in the file license.txt, found at the ro...
734
507
# terrascript/mysql/__init__.py import terrascript class mysql(terrascript.Provider): pass
33
335
<reponame>Safal08/Hacktoberfest-1 { "word": "Doctrinaire", "definitions": [ "Seeking to impose a doctrine in all circumstances without regard to practical considerations." ], "parts-of-speech": "Adjective" }
87
779
<reponame>Kudesnick/atlassian-python-api<gh_stars>100-1000 """ Bitbucket Cloud common package """
33
460
<filename>trunk/win/Source/Includes/QtIncludes/src/3rdparty/webkit/WebCore/platform/StaticConstructors.h /* * Copyright (C) 2006 Apple Computer, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Fr...
1,108
335
{ "word": "Grant", "definitions": [ "Agree to give or allow (something requested) to.", "Give (a right, power, property, etc.) formally or legally to.", "Agree or admit to (someone) that (something) is true." ], "parts-of-speech": "Verb" }
112
11,699
#include <unordered_map> #include "taichi/common/core.h" TI_NAMESPACE_BEGIN class Statistics { public: using value_type = float64; using counters_map = std::unordered_map<std::string, value_type>; Statistics() = default; void add(std::string key, value_type value = value_type(1)); void print(std::strin...
177
1,056
<reponame>timfel/netbeans<filename>enterprise/j2ee.ddloaders/src/org/netbeans/modules/j2ee/ddloaders/web/multiview/WelcomeFilesPanel.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 informat...
4,274
1,351
/** @file A brief file description @section license License 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 und...
1,333
753
<gh_stars>100-1000 from __future__ import print_function import dlib import inspect def print_element(name, fc, ff): isclass = inspect.isclass(eval(name)) ismodule = inspect.ismodule(eval(name)) if (isclass): print("* :class:`{0}`".format(name), file=fc) elif (not ismodule): print("* :f...
407
1,350
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.frontdoor.fluent.models; import com.azure.core.annotation.Fluent; import com.azure.core.annotation.JsonFlatten; import com.azure...
4,087
14,668
// 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. package com.android.webview.chromium; class WebViewChromiumFactoryProviderForR extends WebViewChromiumFactoryProvider { public static WebViewChromium...
175
2,151
<reponame>zipated/src /* * Copyright © 2010-2011 Linaro Limited * Copyright © 2013 Canonical Ltd * * This file is part of the glmark2 OpenGL (ES) 2.0 benchmark. * * glmark2 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 Soft...
724
362
<gh_stars>100-1000 package com.google.android.apps.common.testing.accessibility.framework.suggestions; import com.google.android.apps.common.testing.accessibility.framework.ResultMetadata; import com.google.android.apps.common.testing.accessibility.framework.checks.TextContrastCheck; import com.google.android.apps.com...
1,390
3,084
//////////////////////////////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2014 Microsoft Corporation. All Rights Reserved. // // Module Name: // CompletionFunctions_FastStreamInjectionCallouts.cpp // // Abstract: // This module contains prototypes ...
494
4,526
#ifndef OSRM_GUIDANCE_PARSING_TOOLKIT_HPP_ #define OSRM_GUIDANCE_PARSING_TOOLKIT_HPP_ #include <cstdint> #include <string> #include <boost/algorithm/string.hpp> #include <boost/tokenizer.hpp> #include "util/attributes.hpp" namespace osrm { namespace extractor { namespace guidance { // Public service vehicle lanes ...
1,506
317
<gh_stars>100-1000 { "extends": ["config:base"], "schedule": "every weekend", "packageRules": [ { "depTypeList": ["dependencies", "devDependencies"], "updateTypes": ["minor", "patch"], "rangeStrategy": "pin", "groupName": "minor and patch" }, { "depTypeList": ["dependenci...
213
859
#pragma once namespace cppwinrt { static auto get_start_time() { return std::chrono::high_resolution_clock::now(); } static auto get_elapsed_time(decltype(get_start_time()) const& start) { return std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::high_resolution_clo...
17,414
610
<gh_stars>100-1000 /* * Copyright (C) 2017 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 * * Unl...
1,059
1,674
from setuptools import setup, find_packages with open('README.md', 'r') as readmefile: readme = readmefile.read() setup( name='glitch_this', version='1.0.2', author='TotallyNotChase', author_email='<EMAIL>', description='A package to glitch images and GIFs, with highly customizable options!', ...
356
310
<gh_stars>100-1000 package org.ofbiz.common.image.scaler; import java.awt.image.BufferedImage; import java.io.IOException; import java.util.Collections; import java.util.HashMap; import java.util.Map; import org.ofbiz.base.util.Debug; import org.ofbiz.common.image.ImageTransform; import org.ofbiz.common.image.ImageTy...
3,148
1,921
<filename>crawl-ref/source/glwrapper.cc #include "AppHdr.h" #ifdef USE_TILE_LOCAL #include "glwrapper.h" ///////////////////////////////////////////////////////////////////////////// // VColour VColour VColour::white(255, 255, 255, 255); VColour VColour::black(0, 0, 0, 255); VColour VColour::transparent(0, 0, 0, 0)...
988
1,338
/* * Copyright 2008, Haiku Inc. All Rights Reserved. * Distributed under the terms of the MIT License. */ #ifndef _NET_KIT_H_ #define _NET_KIT_H_ #include <netdb.h> #include <netinet/in.h> #include <sys/socket.h> #include <NetAddress.h> #include <NetBuffer.h> #include <NetEndpoint.h> #endif // _NET_KIT_H_
127
928
#!/usr/bin/env python3 def shared_in_s1_and_s2(): return 'Hello from s2'
34
1,716
// // JKFoundation.h // JKCategories // // Created by Jakey on 16/5/29. // Copyright © 2016年 www.skyfox.org. All rights reserved. // #if __has_include(<JKCategories/JKFoundation.h>) #import <JKCategories/NSArray+JKBlock.h> #import <JKCategories/NSArray+JKSafeAccess.h> #import <JKCategories/NSBundle+JKAppIcon.h> #im...
2,741
2,151
<gh_stars>1000+ // 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 CONTENT_COMMON_SINGLE_REQUEST_URL_LOADER_FACTORY_H_ #define CONTENT_COMMON_SINGLE_REQUEST_URL_LOADER_FACTORY_H_ #include "service...
805
2,504
//********************************************************* // // Copyright (c) Microsoft. All rights reserved. // This code is licensed under the MIT License (MIT). // THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF // ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY // IMPLIED WARRANTIES OF FITNESS FOR A P...
1,586
451
<filename>CodeGenere/photogram/cREgDistDxDy_Fraser_PPaEqPPs.cpp // File Automatically generated by eLiSe #include "StdAfx.h" #include "cREgDistDxDy_Fraser_PPaEqPPs.h" cREgDistDxDy_Fraser_PPaEqPPs::cREgDistDxDy_Fraser_PPaEqPPs(): cElCompiledFonc(2) { AddIntRef (cIncIntervale("Intr",0,12)); Close(false); } ...
9,964
2,816
/* Generated by Snowball 2.0.0 - https://snowballstem.org/ */ #include "../runtime/header.h" #ifdef __cplusplus extern "C" { #endif extern int romanian_UTF_8_stem(struct SN_env * z); #ifdef __cplusplus } #endif static int r_vowel_suffix(struct SN_env * z); static int r_verb_suffix(struct SN_env * z); static int r_com...
19,232
623
<reponame>huoxingdawang/CrystalDiskInfo /*---------------------------------------------------------------------------*/ // Author : hiyohiyo // Mail : <EMAIL> // Web : https://crystalmark.info/ // License : The MIT License /*-------------------------------------------------------------------...
1,593
2,308
/** * Copyright 1999-2015 dangdang.com. * <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 License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law ...
481
3,102
// RUN: %clang_cc1 -triple arm64-apple-ios7.0 -target-abi darwinpcs -emit-llvm -o - %s | FileCheck %s // RUN: %clang_cc1 -triple aarch64-linux-gnu -emit-llvm -o - -x c %s | FileCheck %s --check-prefix=CHECK-GNU-C // RUN: %clang_cc1 -triple aarch64-linux-gnu -emit-llvm -o - %s | FileCheck %s --check-prefix=CHECK-GNU-CXX...
820
460
/* # This file is part of the Astrometry.net suite. # Licensed under a 3-clause BSD style license - see LICENSE */ #include "bl.h" #include "healpix.h" #include "mathutil.h" #include "starutil.h" il* healpix_region_search(int seed, il* seeds, int Nside, il* accepted, il* rejected, ...
2,122
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 ...
737
2,730
#include <Carbon/Carbon.h> #include "synthesize.h" #include "locale.h" #include "parse.h" #include "hotkey.h" #define internal static #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wdeprecated" internal inline void create_and_post_keyevent(uint16_t key, bool pressed) { CGPostKeyboardEvent((CGC...
989
4,342
<reponame>mmpio/RxPY<gh_stars>1000+ import unittest import rx from rx.testing import TestScheduler, ReactiveTest on_next = ReactiveTest.on_next on_completed = ReactiveTest.on_completed on_error = ReactiveTest.on_error subscribe = ReactiveTest.subscribe subscribed = ReactiveTest.subscribed disposed = ReactiveTest.disp...
726
590
package com.mploed.dddwithspring.scoring.scoringResult; import javax.persistence.*; @Entity @Table(name = "SCORING_RESULT") public class ScoringResultEntity { @Id @GeneratedValue private Long id; private String applicationNumber; private int scorePoints; private String scoreColor; @Embedded private Detail...
309
14,425
<filename>hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/ProgressableProgressListener.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 owne...
996
5,169
{ "name": "SurfPlaybook", "version": "1.2.2", "summary": "iOS framework for Playbook", "homepage": "https://github.com/surfstudio/SurfPlaybook", "license": { "type": "MIT", "file": "LICENSE" }, "authors": { "<NAME>": "<EMAIL>" }, "platforms": { "ios": "11.0" }, "swift_versions": "5...
254
16,461
<reponame>zakharchenkoAndrii/expo<gh_stars>1000+ /* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #import <ABI43_0_0React/ABI43_0_0RCTViewManager.h> @class ABI43_0_0RCTWrapperView...
203
1,142
<reponame>alliesaizan/fairlearn<filename>scripts/_utils.py # Copyright (c) Microsoft Corporation and Fairlearn contributors. # Licensed under the MIT License. import logging import os _logger = logging.getLogger(__file__) logging.basicConfig(level=logging.INFO) def _ensure_cwd_is_fairlearn_root_dir(): # To ensu...
431
695
""" =============================== K-means clustering - NumPy API =============================== The :meth:`pykeops.numpy.LazyTensor.argmin` reduction supported by KeOps :class:`pykeops.numpy.LazyTensor` allows us to perform **bruteforce nearest neighbor search** with four lines of code. It can thus be used to imple...
1,282
634
/* * Copyright 2000-2016 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
9,373
373
<gh_stars>100-1000 /* Copyright (C) 2017 Beijing Didi Infinity Technology and Development Co.,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.apache.org/licens...
1,341
6,831
<reponame>ajayiagbebaku/NFL-Model<filename>venv/Lib/site-packages/altair/examples/strip_plot.py<gh_stars>1000+ """ Simple Strip Plot ----------------- A simple example of how to make a strip plot. """ # category: simple charts import altair as alt from vega_datasets import data source = data.cars() alt.Chart(source)...
142
511
#include "rr.h" namespace rr { void HeapStatistics::Init() { ClassBuilder("HeapStatistics"). defineSingletonMethod("new", &initialize). defineMethod("total_heap_size", &total_heap_size). defineMethod("total_heap_size_executable", &total_heap_size_executable). defineMethod("total_physical_...
515
1,902
<filename>DiffAugment-biggan-imagenet/compare_gan/hooks.py # coding=utf-8 # Copyright 2018 Google LLC & <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/l...
1,909
1,144
<filename>u-boot-2019.01+gitAUTOINC+333c3e72d3-g333c3e72d3/drivers/ddr/microchip/ddr2.c // SPDX-License-Identifier: GPL-2.0+ /* * (c) 2015 <NAME> <<EMAIL>> * */ #include <common.h> #include <wait_bit.h> #include <linux/kernel.h> #include <linux/bitops.h> #include <mach/pic32.h> #include <mach/ddr.h> #include "ddr2_...
4,230
670
package com.hw.photomovie.opengl; import javax.microedition.khronos.opengles.GL11; import javax.microedition.khronos.opengles.GL11ExtensionPack; /** * @Author Jituo.Xuan * @Date 11:40:51 AM Mar 20, 2014 * @Comments:This mimics corresponding GL functions. */ public interface GLId { public int generateTexture()...
217
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 yo...
4,001
867
# This file is generated by codegen.py. DO NOT EDIT! from __future__ import annotations import uuid from typing import TYPE_CHECKING, Callable, List, Optional # 14: override Element from gaphor.core.modeling import Comment, Element from gaphor.core.modeling.properties import ( association, attribute, der...
18,268
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 ...
465
817
<gh_stars>100-1000 package com.github.sd4324530.fastweixin.api.entity; import com.alibaba.fastjson.annotation.JSONField; import com.github.sd4324530.fastweixin.api.enums.MenuType; import com.github.sd4324530.fastweixin.exception.WeixinException; import java.util.List; /** * 菜单按钮对象 * * @author peiyu */ public cla...
954
362
/* Dwarf Therapist Copyright (c) 2010 <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, copy, modify, merge, publish, dist...
757
1,441
<reponame>lyskevin/cpbook-code from heapq import heappush, heappop # Union-Find Disjoint Sets Library written in OOP manner # using both path compression and union by rank heuristics class UnionFind: # OOP style def __init__(self, N): self.p = [i for i in range(N)] se...
1,432
344
<reponame>FXyz/FXyz<filename>FXyz-Core/src/main/java/org/fxyz3d/shapes/primitives/helper/delaunay/jdt/Utils.java /* * Copyright (c) 2021, F(X)yz * Copyright (c) 2012 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated * documentation files (the "S...
657
7,482
<gh_stars>1000+ /* * Copyright (c) 2006-2021, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes */ #ifndef __PMU_H__ #define __PMU_H__ #include "board.h" /* Number of counters */ #define ARM_PMU_CNTER_NR 4 enum rt_hw_pmu_event_type { AR...
2,083
310
package org.seasar.doma.internal.jdbc.sql.node; import static org.seasar.doma.internal.util.AssertionUtil.assertNotNull; import org.seasar.doma.jdbc.JdbcUnsupportedOperationException; import org.seasar.doma.jdbc.SqlNode; public abstract class ValueNode extends AbstractSqlNode { protected final SqlLocation locatio...
484
626
<gh_stars>100-1000 from condition import NeverCondition DEFAULT_THROTTLING_TICK = 16 THROTTLING_TICK_UPPER_LIMIT = 64 THROTTLING_TICK_LOWER_LIMIT = 4 # put a counter and a max_count so can't get stuck? class Task(object): def __init__(self): self.memid = None self.interrupted = False self....
718
1,567
/* * Tencent is pleased to support the open source community by making PaxosStore available. * Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved. * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of...
1,452