max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
655
package com.samourai.wallet.util; import android.content.Context; import androidx.recyclerview.widget.LinearLayoutManager; public class LinearLayoutManagerWrapper extends LinearLayoutManager { public LinearLayoutManagerWrapper(Context context) { super(context); } @Override public boolean sup...
136
3,999
/UpdataConfig.dat;http.referer=added1;tags=firstmatch /x/xx/xxxxxxxxxxxxxxxxxxx/x/xxxxxx/xxxxxxxxxxxxxxx;http.user-agent=added2;tags=secondmatch
52
1,056
<reponame>timfel/netbeans /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2....
5,384
1,695
<filename>core/trino-main/src/main/java/io/trino/operator/scalar/InvokeFunction.java /* * 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,244
1,063
[ { "category": "s3", "description": "Fixed an issue where the request path was set incorrectly if access point name was present in key path.", "type": "bugfix" } ]
61
14,425
<gh_stars>1000+ /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the *...
1,105
2,674
from .purify import *
7
5,169
<filename>Specs/d/d/5/SafexPay/1.0.7/SafexPay.podspec.json { "name": "SafexPay", "version": "1.0.7", "summary": "SafexPay framework", "homepage": "https://bitbucket.org/safexpayment/safexpay_ios/src/master/", "description": "SafexPay framework for payments.", "license": { "type": "MIT", "file": "LIC...
404
1,057
<reponame>alexrs/linux-tracing-workshop<filename>nhttpslower.py #!/usr/bin/env python # # nhttpslower Snoops and prints Node.js HTTP requests slower than a threshold. # This tool is experimental and designed for teaching purposes # only; it is neither tested nor suitable for production wor...
2,610
589
// // KKJSBridgeConfig.h // KKJSBridge // // Created by <NAME> on 2019/7/25. // Copyright © 2019 karosli. All rights reserved. // #import <Foundation/Foundation.h> #import "KKJSBridgeAjaxDelegate.h" NS_ASSUME_NONNULL_BEGIN @class KKJSBridgeEngine; /** 配置 JSBridge 的行为,统一管理 Native 和 H5 侧对 JSBridge 的配置。 */ @inter...
1,665
796
<reponame>mehrdad-shokri/backdoorme<gh_stars>100-1000 #This is a template for your use to add additional modules. Modules are used to make a backdoor more potent, stealthy, or dangerous, but feel free to add anything you think might help! Places you need to input are designated by ~tildes~. from .module import * class...
296
453
<reponame>Public-Cloud-Projects/Zenko import socket import requests import requests.exceptions import pytest S3_ENDPOINTS = [ 's3.us-east-2.amazonaws.com', 's3-us-east-2.amazonaws.com', # TODO Extend this list, based on # https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region ] @pytest...
536
1,539
{ "x-restler-global-annotations": [ { "producer_endpoint": "/service/user", "producer_method": "POST", "producer_resource_name": "user-id", "consumer_param": "user-id" } ] }
99
8,238
<filename>erts/lib_src/yielding_c_fun/ycf_lists.h /* * %CopyrightBegin% * * Copyright Ericsson AB and <NAME> 2019. 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 ...
12,934
145,614
""" Implementation of regular expression matching with support for '.' and '*'. '.' Matches any single character. '*' Matches zero or more of the preceding element. The matching should cover the entire input string (not partial). """ def match_pattern(input_string: str, pattern: str) -> bool: """ uses bottom...
1,322
718
<reponame>plutoyuxie/mmgeneration _base_ = ['../singan/singan_fish.py'] model = dict( type='PESinGAN', generator=dict( type='SinGANMSGeneratorPE', interp_pad=True, noise_with_pad=True), discriminator=dict(norm_cfg=None)) train_cfg = dict(fixed_noise_with_pad=True) data = dict( train=dict( ...
209
852
import FWCore.ParameterSet.Config as cms from CommonTools.ParticleFlow.Isolation.photonPFIsolationDepositsPFBRECO_cff import * from CommonTools.ParticleFlow.Isolation.photonPFIsolationValuesPFBRECO_cff import * pfPhotonIsolationPFBRECOTask = cms.Task( photonPFIsolationDepositsPFBRECOTask , photonPFIsolationVa...
156
998
<filename>Source/Voxel/Private/VoxelRender/VoxelProcMeshBuffers.cpp // Copyright 2021 Phyronnaz #include "VoxelRender/VoxelProcMeshBuffers.h" #include "VoxelRender/IVoxelRenderer.h" #include "VoxelRender/VoxelRenderUtilities.h" DEFINE_VOXEL_MEMORY_STAT(STAT_VoxelProcMeshMemory); DEFINE_VOXEL_MEMORY_STAT(STAT_V...
1,090
1,139
<gh_stars>1000+ package com.journaldev.io.readfile; import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; public class ReadFileUsingBufferedReader { public static void main(String[] args) { BufferedReader reader; char[] buffer = new char[10]; try { reader = new BufferedReade...
225
322
<reponame>sumanth143/datepicker // // ViewController.h // // Created by <NAME> on 10.01.2015. // Copyright (c) 2015 Hydra Softworks. // Released under an MIT license: http://opensource.org/licenses/MIT // #import <UIKit/UIKit.h> @interface ViewController : UIViewController @end
102
2,151
<gh_stars>1000+ // Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "content/renderer/media/webrtc/webrtc_uma_histograms.h" #include "testing/gmock/include/gmock/gmock.h" #include "testing/gtest/i...
1,190
572
from kivymd.app import MDApp from kivymd.uix.card import MDCard from kivymd.uix.floatlayout import FloatLayout from kivymd.uix.button import MDRaisedButton from kivy.lang import Builder from kivymd.uix.behaviors import FocusBehavior KV = ''' Screen: BoxLayout: orientation: 'vertical' MDToolbar: ...
1,597
460
#include "../../../src/declarative/graphicsitems/qdeclarativeevents_p_p.h"
30
348
<reponame>chamberone/Leaflet.PixiOverlay {"nom":"<NAME>","circ":"3ème circonscription","dpt":"Orne","inscrits":83,"abs":34,"votants":49,"blancs":6,"nuls":0,"exp":43,"res":[{"nuance":"REM","nom":"<NAME>","voix":26},{"nuance":"LR","nom":"<NAME>","voix":17}]}
107
5,964
/* * Copyright 2012 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "gl/GrGLInterface.h" #include "gl/GrGLAssembleInterface.h" #define WIN32_LEAN_AND_MEAN #include <windows.h> #include "EGL/egl.h" static GrGLFuncPtr angle_get_gl_p...
377
9,959
<gh_stars>1000+ class SynchronizedNameStaticToInstanceRef { private Object read = new Object(); private static Object READ = new Object(); @lombok.Synchronized("read") static void test3() { System.out.println("three"); } }
76
642
<gh_stars>100-1000 #include <llvm-c/Core.h> #include <llvm-c/OrcBindings.h> #include <llvm-c/TargetMachine.h> #include <llvm/ExecutionEngine/ExecutionEngine.h> #include <llvm/IR/IRBuilder.h> #include <llvm/IR/LegacyPassManager.h> #include "OrcJit.h" namespace llvm { DEFINE_SIMPLE_CONVERSION_FUNCTIONS(std::shared_...
998
448
<reponame>miniksa/BuildXL<filename>Public/Src/Sandbox/Windows/DetoursServices/Assertions.cpp // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. #include "stdafx.h" _declspec(noinline) void _fail_assert() { R...
154
787
// OJ: https://leetcode.com/problems/dice-roll-simulation/ // Author: github.com/lzl124631x // Time: O(N) // Space: O(N) // Ref: https://leetcode.com/problems/dice-roll-simulation/discuss/403756/Java-Share-my-DP-solution class Solution { public: int dieSimulator(int n, vector<int>& A) { long mod = 1e9+7; ...
616
516
package org.asciidoctor.jruby.internal; import java.util.ArrayList; import java.util.List; import java.util.Map; import java.util.Map.Entry; import java.util.Set; import org.asciidoctor.Options; import org.asciidoctor.SafeMode; import org.asciidoctor.jruby.cli.AsciidoctorCliOptions; public class AsciidoctorUtils { ...
2,378
578
<filename>resources/profile_generator/profile_test.py<gh_stars>100-1000 import os import sys import string import shutil import random profile_number = 50 root_name = 'duck_test' if os.path.isdir(root_name): shutil.rmtree(root_name) os.mkdir(root_name) color_pool = [8, 16, 32, 64] def get_random_name(): return '...
531
324
<reponame>wuxianxingkong/octo-ns /* * Copyright (c) 2011-2018, <NAME>. All Rights Reserved. * * 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 licens...
1,628
4,345
<reponame>awesome-archive/Coding-iOS // // FileInfoViewController.h // Coding_iOS // // Created by Ease on 15/8/20. // Copyright (c) 2015年 Coding. All rights reserved. // #import "BaseViewController.h" #import "ProjectFile.h" @interface FileInfoViewController : BaseViewController + (instancetype)vcWithFile:(Proje...
121
1,707
<gh_stars>1000+ #pragma once //------------------------------------------------------------------------------ /** @brief Cocoa input-related defines (taken from and compatible with GLFW) */ #define ORYOL_OSXBRIDGE_WHEEL_DELTA 120 #define ORYOL_OSXBRIDGE_MOD_SHIFT 0x0001 #define ORYOL_OSXBRIDGE_MOD_CONTROL 0x0002...
4,919
365
<filename>extern/audaspace/include/fx/Envelope.h /******************************************************************************* * Copyright 2009-2016 <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 co...
725
2,260
#ifndef AISTATEMACHINE_H_ #define AISTATEMACHINE_H_ #include "AIState.h" namespace gameplay { class AIAgent; /** * Defines a simple AI state machine that can be used to program logic * for an AIAgent in a game. * * A state machine uses AIState objects to represent different states * of an object in the game. T...
1,397
1,540
<filename>testng-core/src/test/java/test/ignore/ignorePackage/IgnorePackageSample.java package test.ignore.ignorePackage; import org.testng.annotations.Test; public class IgnorePackageSample { @Test public void test() {} @Test public void test2() {} }
83
1,986
<reponame>PleXone2019/-esp32-snippets /** * Create a new BLE server. */ #include "BLEDevice.h" #include "BLEServer.h" #include "BLEUtils.h" #include "BLE2902.h" #include "BLEHIDDevice.h" #include "HIDKeyboardTypes.h" #include <esp_log.h> #include <string> #include <Task.h> #include "sdkconfig.h" static char LOG_TAG...
2,666
348
<reponame>chamberone/Leaflet.PixiOverlay<filename>docs/data/leg-t2/029/02906205.json {"nom":"Plounévézel","circ":"6ème circonscription","dpt":"Finistère","inscrits":914,"abs":376,"votants":538,"blancs":35,"nuls":4,"exp":499,"res":[{"nuance":"REM","nom":"<NAME>","voix":385},{"nuance":"LR","nom":"<NAME>","voix":114}]}
131
746
package org.protege.editor.owl.ui.breadcrumb; import org.hamcrest.MatcherAssert; import org.hamcrest.Matchers; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.Mock; import org.mockito.Mockito; import org.mockito.runners.MockitoJUnitRunner; import org.semanticweb.owl...
923
467
from urllib.request import urlopen import urllib.parse import webbrowser from sys import platform import os if platform == "linux" or platform == "linux2": chrome_path = '/usr/bin/google-chrome' elif platform == "darwin": chrome_path = 'open -a /Applications/Google\ Chrome.app' elif platform == "win32": ...
264
1,442
<filename>ion/src/device/n0100/kernel/drivers/config/led.h #ifndef ION_DEVICE_N0100_KERNEL_DRIVERS_CONFIG_LED_H #define ION_DEVICE_N0100_KERNEL_DRIVERS_CONFIG_LED_H #include <regs/regs.h> namespace Ion { namespace Device { namespace LED { namespace Config { using namespace Regs; static constexpr int RedChannel = 2;...
331
435
/** * Copyright (c) 2016-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the license found in the LICENSE file in * the root directory of this source tree. */ #import <Foundation/Foundation.h> /** View Controller put into FBMemoryProfilerContainerViewController should impl...
230
1,350
<filename>sdk/digitaltwins/azure-digitaltwins-core/src/test/java/com/azure/digitaltwins/core/EventRoutesTestBase.java<gh_stars>1000+ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package com.azure.digitaltwins.core; import com.azure.core.http.HttpClient; import com.az...
1,039
2,151
<filename>native_client/tests/pnacl_dynamic_loading/test_pll_tls.c /* * Copyright (c) 2016 The Native Client Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ /* This is an example library, for testing the ConvertToPSO pass. */ /...
539
332
<reponame>ericrbg/lean<filename>src/checker/text_import.cpp /* Copyright (c) 2017 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: <NAME> */ #include "checker/text_import.h" #include "kernel/environment.h" #include "kernel/inductive/inductive.h" #i...
4,734
1,102
/****************************************************************************** Created by <NAME>, 2016, <EMAIL> This file is part of the LibBoolEE library. This program is free software: you can redistribute it and/or modify it under the terms of the GNU lesser General Public License as published by the Free Softwar...
3,036
1,047
<gh_stars>1000+ #include "pch.h" #include "MeshSync/SceneGraph/msScene.h" #include "MeshSync/SceneGraph/msAnimation.h" namespace ms { template<class T> struct Equals { bool operator()(const T& a, const T& b) const { return mu::near_equal(a, b); } }; template<> struct Equals<int> { bool opera...
6,023
3,400
<reponame>yshgit/aeron /* * Copyright 2014-2021 Real Logic 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless require...
5,951
435
<reponame>allen91wu/data { "description": "At System1, data scientists are faced with the task of predicting\nrevenue and cost per click across millions of unique keywords that drive\ntraffic to our sites or monetize on a pay per click basis. This talk\nwill show a variety of techniques we use to extract the most inf...
703
389
/* * Copyright 2014 Guidewire Software, Inc. */ package gw.lang.parser; import java.util.HashMap; public class ExternalSymbolMapForMap extends ExternalSymbolMapBase { private HashMap<String, ISymbol> _externalSymbols; public ExternalSymbolMapForMap( HashMap<String, ISymbol> externalSymbols) { this(extern...
285
1,056
<filename>ide/projectuiapi/src/org/netbeans/modules/project/uiapi/OpenProjectsListener.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. The ASF...
1,452
650
/* * Copyright (c) 2018-2020, <NAME> <<EMAIL>> * * SPDX-License-Identifier: BSD-2-Clause */ #include "ProfileModel.h" #include "Profile.h" #include <LibGUI/FileIconProvider.h> #include <LibSymbolication/Symbolication.h> #include <stdio.h> namespace Profiler { ProfileModel::ProfileModel(Profile& profile) : m_...
2,456
317
<reponame>kodefear/CS6200_Sushant_Pritmani<gh_stars>100-1000 package com.googlecode.totallylazy.functions; import com.googlecode.totallylazy.Quadruple; public interface Function4<A, B, C, D, E> { E call(A a, B b, C c, D d) throws Exception; default E apply(final A a, final B b, final C c, final D d) { ...
209
302
<reponame>vadkasevas/BAS #include "languagechooserdevelopmentwidget.h" #include "ui_languagechooserdevelopmentwidget.h" #include <QMessageBox> #include <QPushButton> #include "flowlayout.h" #include "every_cpp.h" LanguageChooserDevelopmentWidget::LanguageChooserDevelopmentWidget(QWidget *parent) : QDialog(parent),...
1,351
476
<gh_stars>100-1000 /* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, so...
640
348
<gh_stars>100-1000 {"nom":"<NAME>","circ":"3ème circonscription","dpt":"Eure-et-Loir","inscrits":2007,"abs":1067,"votants":940,"blancs":52,"nuls":25,"exp":863,"res":[{"nuance":"LR","nom":"<NAME>","voix":559},{"nuance":"RDG","nom":"<NAME>","voix":304}]}
105
420
<reponame>hiliving/DelegationAdapter { "msgs": [ { "user": { "type": 2, "avatar": "https://raw.githubusercontent.com/xuehuayous/DelegationAdapter/master/sample/pic/zzb.png" }, "type": 1, "text": "看来我不应该来", "pic": "" }, { "user": { "type": 1, ...
2,340
715
#include <stdio.h> #include <limits.h> using namespace std; #define dir true #define n_dir false class grafo{ private: struct head_graph{ int **matriz_ad; int numvert; int numares; bool direct; }; bool criado = false; head_graph g; ...
1,724
777
<gh_stars>100-1000 // Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "net/proxy/proxy_config.h" #include "net/proxy/proxy_config_service_common_unittest.h" #include "net/proxy/proxy_info.h" #...
4,879
852
<gh_stars>100-1000 #include "CommonTools/UtilAlgos/interface/TFileService.h" #include "DataFormats/Provenance/interface/ModuleDescription.h" #include "FWCore/ServiceRegistry/interface/ActivityRegistry.h" #include "FWCore/ParameterSet/interface/ParameterSet.h" #include "FWCore/ServiceRegistry/interface/ModuleCallingCont...
1,442
507
<gh_stars>100-1000 # terrascript/resource/grafana.py __all__ = []
28
443
<reponame>alichry/revsh /* * This file contains the constants defining the inner workings of the message bus. This also seems to be an * appropriate space to describe network communication, from the initialization routine through to the expected * form of bytes on the message bus. This probably wont ever be formal ...
2,672
400
import os import sys import torch import cflearn from cflearn.misc.toolkit import eval_context from cflearn.misc.toolkit import download_reference # prepare folder = os.path.dirname(__file__) repo_name = "stylegan2-ada-pytorch-main" repo_path = os.path.join(folder, repo_name) url = "https://github.com/NVlabs/stylega...
519
371
<reponame>js882829/tars from django.contrib import admin from tars.application import models class ApplicationAdmin(admin.ModelAdmin): list_display = ('name',) admin.site.register(models.Application, ApplicationAdmin) class PackageAdmin(admin.ModelAdmin): list_display = ('name', 'version', 'application') a...
110
388
<gh_stars>100-1000 # Lint as: python3 # Copyright 2019 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
2,040
709
#include "platform.h" C_Errno_t(C_Int_t) Posix_FileSys_chdir(NullString8_t p) { return chdir((const char *) p); }
54
2,748
<gh_stars>1000+ /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "Lic...
717
1,178
<filename>avionics/motor/firmware/svpwm.c /* * 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....
5,141
501
package springboot.client; import io.netty.bootstrap.Bootstrap; import io.netty.channel.ChannelFuture; import io.netty.channel.ChannelOption; import io.netty.channel.EventLoopGroup; import io.netty.channel.nio.NioEventLoopGroup; import io.netty.channel.socket.nio.NioSocketChannel; import springboot.client.handler.Http...
551
852
#ifndef SimHcalNoiseStorage_h #define SimHcalNoiseStorage_h /** \class HcalNoiseStorage * * DataMixingModule is the EDProducer subclass * that overlays rawdata events on top of MC, * using real data for pileup simulation * This class is used to pass noise hits from the individual * Hcal channels to the new digit...
494
408
<filename>src/main/python/rlbot/parsing/directory_scanner.py import glob import os from configparser import NoSectionError, MissingSectionHeaderError, NoOptionError, ParsingError from typing import Set from rlbot.parsing.bot_config_bundle import BotConfigBundle, ScriptConfigBundle, get_bot_config_bundle, get_script_co...
575
348
<gh_stars>100-1000 {"nom":"Sarnois","circ":"2ème circonscription","dpt":"Oise","inscrits":272,"abs":110,"votants":162,"blancs":9,"nuls":4,"exp":149,"res":[{"nuance":"FN","nom":"<NAME>","voix":91},{"nuance":"REM","nom":"<NAME>","voix":58}]}
97
2,576
/* * Copyright (c) 2010-2020. Axon Framework * * 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 o...
2,746
787
<reponame>zhuohuwu0603/leetcode_cpp_lzl124631x<gh_stars>100-1000 // OJ: https://leetcode.com/problems/tallest-billboard // Author: github.com/lzl124631x // Time: O(NS) where N is the length of `rods`, // and S is the maximum of `sum(rods[i..j])` // Space: O(NS) // Ref: https://leetcode.com/articles/tallest-...
449
360
<reponame>Yanci0/openGauss-server /* -------------------------------------------------------------------- * guc_storage.h * * External declarations pertaining to backend/utils/misc/guc-file.l * and backend/utils/misc/guc/guc_storage.cpp * * Copyright (c) 2000-2012, PostgreSQL Global Development Group * Written b...
207
4,772
package example.repo; import example.model.Customer1916; import java.util.List; import org.springframework.data.repository.CrudRepository; public interface Customer1916Repository extends CrudRepository<Customer1916, Long> { List<Customer1916> findByLastName(String lastName); }
87
14,668
<reponame>zealoussnow/chromium<filename>third_party/blink/tools/blinkpy/web_tests/try_flag_unittest.py # Copyright 2017 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. import unittest from blinkpy.common.host_mock import ...
3,886
3,212
<filename>nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/controller/FlowSnippet.java<gh_stars>1000+ /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for ...
629
369
/** @file @brief Header @date 2015 @author Sensics, Inc. <http://sensics.com/osvr> */ // Copyright 2015 Sensics, 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 ...
670
493
/** * Copyright (C) 2016 Turi * All rights reserved. * * This software may be modified and distributed under the terms * of the BSD license. See the LICENSE file for details. */ #ifndef CACHE_STREAM_SINK_HPP #define CACHE_STREAM_SINK_HPP #include <iostream> #include <memory> #include <boost/iostreams/stream.hpp>...
727
1,738
<filename>dev/Gems/ScriptCanvas/Code/Editor/GraphCanvas/Components/NodeDescriptors/NodeDescriptorComponent.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 (th...
1,277
372
<reponame>yoshi-code-bot/google-api-java-client-services /* * 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 ...
1,167
3,508
<gh_stars>1000+ package com.fishercoder; import com.fishercoder.solutions._1588; import org.junit.BeforeClass; import org.junit.Test; import static junit.framework.TestCase.assertEquals; public class _1588Test { private static _1588.Solution1 solution1; @BeforeClass public static void setup() { ...
196
3,102
<reponame>LambdaMan/clang //====-- unittests/Frontend/PCHPreambleTest.cpp - FrontendAction tests ---====// // // 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,236
378
<filename>test/stack_torture1.c<gh_stars>100-1000 /* -*- Mode: c; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil; -*- */ #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <time.h> #include <string.h> #include <assert.h> #include <concurrent/concurrent.h> #include <concurrent/shortname.h> voi...
584
5,169
{ "name": "OMChainKit", "version": "1.0.0", "summary": "A complete API wrapper for Omnicha.in", "description": "Creating applications for Omnicoin couldn't be made simpler with this library.This library allows full access to the Omnicha.in API using delegates that make interactionswith the site very simple and ...
325
368
package ezvcard.property; import java.io.File; import java.io.IOException; import java.io.InputStream; import java.util.List; import java.util.Map; import ezvcard.VCard; import ezvcard.VCardVersion; import ezvcard.ValidationWarning; import ezvcard.parameter.KeyType; /* Copyright (c) 2012-2021, <NAME> All rights re...
2,347
1,529
<reponame>IgiArdiyanto/PINTO_model_zoo<gh_stars>1000+ import cv2 import time import numpy as np from openvino.inference_engine import IECore import os class Msg_chn_wacv20(): def __init__(self, model_path, device='CPU'): # Initialize model self.model = self.initialize_model(model_path, device) ...
2,197
2,023
"""Command-line tool for making self-extracting Python file. Call this program from your command line with one argument: (1) the file that you want to pack and compress (2) the output will be a file with a pyw ending The output can run on Windows where Python is installed.""" #####################################...
1,341
322
<filename>torch_ipex_py/cpu/runtime/runtime_utils.py import subprocess def get_num_nodes(): return int(subprocess.check_output('lscpu | grep Socket | awk \'{print $2}\'', shell=True)) def get_num_cores_per_node(): return int(subprocess.check_output('lscpu | grep Core | awk \'{print $4}\'', shell=True)) def g...
266
12,718
#define r0 0 #define r1 1 #define r2 2 #define r3 3 #define r4 4 #define r5 5 #define r6 6 #define r7 7 #define r8 8 #define r9 9 #define r10 10 #define r11 11 #define r12 12 #define r13 13 #define r14 14 #define r15 15 #define r16 16 #define r17 17 #define r18 18 #define r19 19 #define r20 20 #define r21 21 #define r2...
576
10,225
package io.quarkus.vertx.http.testrunner.metaannotations; import static io.restassured.RestAssured.given; import static org.hamcrest.CoreMatchers.is; import io.quarkus.test.junit.QuarkusTest; @QuarkusTest public class MetaET { @UnitTest public void t1() { given() .when().get("/hello/...
342
4,879
#pragma once #include "generator/feature_builder.hpp" #include "geometry/region2d.hpp" #include "geometry/tree4d.hpp" #include <string> #include <utility> #include <vector> namespace generator { class BoundaryPostcodesEnricher { public: explicit BoundaryPostcodesEnricher(std::string const & boundaryPostcodesFilen...
184
1,144
<gh_stars>1000+ /* SPDX-License-Identifier: GPL-2.0+ */ /* * (C) Copyright 2016 - <NAME> <<EMAIL>> */ #ifndef __PINCTRL_MESON_H__ #define __PINCTRL_MESON_H__ #include <linux/types.h> struct meson_pmx_group { const char *name; const unsigned int *pins; unsigned int num_pins; bool is_gpio; unsigned int reg; un...
1,312
3,182
<reponame>1337c0der/lombok-intellij-plugin import lombok.AccessLevel; import lombok.Setter; class Test { @Setter private float b; @Setter(AccessLevel.PROTECTED) private double c; @Setter(AccessLevel.PRIVATE) private String d; }
97
501
#!/usr/bin/env python ''' Use multi-grid to accelerate DFT numerical integration. ''' import numpy from pyscf.pbc import gto, dft from pyscf.pbc.dft import multigrid cell = gto.M( verbose = 4, a = numpy.eye(3)*3.5668, atom = '''C 0. 0. 0. C 0.8917 0.8917 0.8917 ...
668
6,224
/* * Xilinx Processor System Gigabit Ethernet controller (GEM) driver * * Copyright (c) 2021, Weidmueller Interface GmbH & Co. KG * SPDX-License-Identifier: Apache-2.0 * * Known current limitations / TODOs: * - Only supports 32-bit addresses in buffer descriptors, therefore * the ZynqMP APU (Cortex-A53 cores)...
23,547
979
<reponame>risingphoenix/SublimePHPCompanion import sublime import sublime_plugin import re class GotoDefinitionScopeCommand(sublime_plugin.TextCommand): def run(self, edit): run = GTDRun(self.view, self.view.window()) run.do() class GTDRun: def __init__(self, view, window): self.view ...
547
4,538
<reponame>wstong999/AliOS-Things /* * Copyright (C) 2015-2021 Alibaba Group Holding Limited */ #include <poll.h> #include <aos/hal/adc.h> #include <vfsdev/adc_dev.h> #include <devicevfs/devicevfs.h> #ifdef CONFIG_ADC_NUM #define PLATFORM_ADC_NUM CONFIG_ADC_NUM #else #define PLATFORM_ADC_NUM 4 #endif #if (PLATFOR...
3,251