max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
4,140
/* * 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 ...
986
2,151
// 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. #include "android_webview/browser/aw_safe_browsing_config_helper.h" #include "base/android/scoped_java_ref.h" #include "base/lazy_instance.h" #include "b...
381
14,668
// Copyright 2014 The Crashpad Authors. 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 ...
4,096
60,067
import argparse import sys import torch import torch.utils.benchmark as benchmark_utils try: from benchmarks.fastrnns.factory import lstm_creator except ImportError: from caffe2.benchmarks.fastrnns.factory import lstm_creator from torchvision.models import resnet50 def prepare_lstm_jit(bench_args): mod...
1,627
815
""" 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 math import numpy as np import logging from PIL import Image from PIL import ImageFont from PIL import ImageDraw from torch.nn import ...
1,703
12,278
<gh_stars>1000+ // © 2018 and later: Unicode, Inc. and others. // License & terms of use: http://www.unicode.org/copyright.html #include "unicode/utypes.h" #if !UCONFIG_NO_FORMATTING // Allow implicit conversion from char16_t* to UnicodeString for this file: // Helpful in toString methods and elsewhere. #define UNIS...
4,580
1,738
<filename>dev/Code/Sandbox/Plugins/CryDesigner/Tools/Modify/SubdivisionTool.h /* * 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 "License"). All use of this sof...
549
1,363
/* * Copyright 2019 liaochong * * 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 writin...
559
777
<filename>components/sync/base/data_type_histogram_unittest.cc // 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 "components/sync/base/data_type_histogram.h" #include "base/metrics/statistic...
873
764
<reponame>nguyenmv2/vim-test<gh_stars>100-1000 package org.vimtest.math; import org.vimtest.calc.Calculation; import junit.framework.TestCase; import junit.framework.Assert.*; public class MathTests extends TestCase { private int value1; private int value2; public MathTests(String testName) { super(testName)...
335
3,262
#pragma once #include "halley/utils/utils.h" #include "halley/text/halleystring.h" #include <set> namespace ticpp { class Document; } namespace Halley { class Path; class VSProjectManipulator { public: void load(Path path); void load(const Bytes& data); Bytes write(); std::set<String> getCompileFiles();...
255
2,179
<reponame>azexcy/shardingsphere /* * 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 ...
1,793
1,001
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
1,872
348
{"nom":"Brueil-en-Vexin","circ":"8ème circonscription","dpt":"Yvelines","inscrits":457,"abs":214,"votants":243,"blancs":14,"nuls":4,"exp":225,"res":[{"nuance":"LR","nom":"<NAME>","voix":181},{"nuance":"REM","nom":"<NAME>","voix":44}]}
95
7,353
/* -*- coding: utf-8 -*- * ---------------------------------------------------------------------- * Copyright © 2012-2013, RedJack, LLC. * All rights reserved. * * Please see the COPYING file in this distribution for license * details. * ---------------------------------------------------------------------- */ ...
361
392
""" Code for "i-RevNet: Deep Invertible Networks" https://openreview.net/pdf?id=HJsjkMb0Z ICLR 2018 """ import torch import torch.nn as nn from torch.nn import Parameter def split(x): n = int(x.size()[1]/2) x1 = x[:, :n, :, :].contiguous() x2 = x[:, n:, :, :].contiguous() return x1, x2 def merge(x...
1,295
1,127
/* * Copyright 2015 - 2022 <NAME> (<EMAIL>) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law o...
2,802
2,151
package com.android.systemui.recents.events.ui; import com.android.systemui.recents.events.EventBus.Event; /** * This event is sent when the user finished dragging in recents. */ public class DraggingInRecentsEndedEvent extends Event { public final float velocity; public DraggingInRecentsEndedEvent(float ...
119
387
<filename>src/MdCharm/util/gui/newversioninfodialog.h<gh_stars>100-1000 #ifndef NEWVERSIONINFODIALOG_H #define NEWVERSIONINFODIALOG_H #include <QDialog> #include <QGridLayout> #include <QTextBrowser> #include <QDialogButtonBox> #include <QPushButton> #include "configuration.h" class NewVersionInfoDialog : public QDi...
306
2,293
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * * ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. Yo...
3,475
2,337
<gh_stars>1000+ int stmt_expr_func(int y) { int x = ({ int z = 9; switch (y) { case 0: z += 3; case 1: goto lbl; case 2: return -42; default: z += 6; }; z += 6; lbl: ; z + (++y); }); return x + y; }
137
4,879
<filename>map/notifications/notification_queue.hpp #pragma once #include "metrics/eye_info.hpp" #include <deque> #include <memory> #include <string> namespace notifications { using Clock = std::chrono::system_clock; using Time = Clock::time_point; class NotificationCandidate { public: friend class NotificationMan...
841
675
// Copyright 2008-2016 <NAME> (http://conradsanderson.id.au) // Copyright 2008-2016 National ICT Australia (NICTA) // // 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.or...
531
435
{ "copyright_text": null, "description": "In this talk I show you how to set up a python and PostgreSQL based\nsystem which is easy to set up and easy to scale, provides ACID\nguarantees where they are needed and delays time-consistency between\nunrelated objects for scalability and availability where the latter ar...
615
1,093
/* * Copyright 2018 Snap Inc. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in wr...
2,082
348
<reponame>chamberone/Leaflet.PixiOverlay<gh_stars>100-1000 {"nom":"Louesme","circ":"4ème circonscription","dpt":"Côte-d'Or","inscrits":84,"abs":43,"votants":41,"blancs":3,"nuls":1,"exp":37,"res":[{"nuance":"LR","nom":"<NAME>","voix":22},{"nuance":"REM","nom":"Mme <NAME>","voix":15}]}
122
3,262
/* * Tencent is pleased to support the open source community by making Angel available. * * Copyright (C) 2017-2018 THL A29 Limited, a Tencent company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in * compliance with the License....
1,407
15,577
<filename>src/Coordination/WriteBufferFromNuraftBuffer.cpp<gh_stars>1000+ #include <Coordination/WriteBufferFromNuraftBuffer.h> #include <base/logger_useful.h> namespace DB { namespace ErrorCodes { extern const int CANNOT_WRITE_AFTER_END_OF_BUFFER; } void WriteBufferFromNuraftBuffer::nextImpl() { if (is_fini...
785
940
<gh_stars>100-1000 { "token": "<PASSWORD>", "full_token": "<PASSWORD>", "tap": "homebrew/cask", "name": [ "MJML" ], "desc": "Desktop app for MJML", "homepage": "https://mjmlio.github.io/mjml-app/", "url": "https://github.com/mjmlio/mjml-app/releases/download/v3.0.3/mjml-app-3.0.3-mac.dmg", "appcas...
324
2,293
from flask import Flask from dynaconf.contrib import FlaskDynaconf def create_app(**config): app = Flask(__name__) FlaskDynaconf(app, **config) return app
63
330
/* * Copyright 2021 Garena Online Private Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicabl...
1,188
567
package com.kennycason.kumo.padding; import com.kennycason.kumo.Word; /** * Created by kenny on 7/2/14. * * Add padding around words in the word cloud. */ public interface Padder { void pad(final Word word, final int padding); }
83
544
from office365.sharepoint.base_entity import BaseEntity class PickerSettings(BaseEntity): pass
29
1,531
<reponame>yanolja/ngrinder<filename>ngrinder-controller/src/test/java/org/ngrinder/home/service/HomeServiceTestWithAtom.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 * * h...
450
852
import FWCore.ParameterSet.Config as cms L1TriggerKeyListDummyExt = cms.ESProducer("L1TriggerKeyListDummyProdExt")
42
3,451
import bentoml from bentoml.adapters import JsonInput, TfTensorInput from bentoml.frameworks.tensorflow import TensorflowSavedModelArtifact @bentoml.env(infer_pip_packages=True) @bentoml.artifacts( [ TensorflowSavedModelArtifact('model1'), TensorflowSavedModelArtifact('model2'), Tensorflow...
367
597
# Copyright 2018 The Cornac Authors. 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 ...
951
2,793
/* * Copyright 2020 The Emscripten Authors. All rights reserved. * Emscripten is available under two separate licenses, the MIT license and the * University of Illinois/NCSA Open Source License. Both these licenses can be * found in the LICENSE file. */ #ifndef __emscripten_emmintrin_h__ #define __emscripten_emm...
23,710
992
<filename>media/src/androidTest/java/androidx/media/TestUtils.java /* * Copyright 2018 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://w...
2,286
4,339
/* * 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 ...
496
665
<gh_stars>100-1000 # SPDX-FileCopyrightText: 2021 <NAME> for Adafruit Industries # SPDX-License-Identifier: MIT import time import random import board import audiomp3 import audiopwmio from adafruit_crickit import crickit ss = crickit.seesaw # Crickit seesaw setup button = crickit.SIGNAL1 # momentary switch to trig...
1,245
1,585
<reponame>j-xiong/ompi /* * Copyright (c) 2004-2005 The University of Tennessee and The University * of Tennessee Research Foundation. All rights * reserved. * $COPYRIGHT$ * * Additional copyrights may follow * * $HEADER$ */ #ifndef PML_EXAMPLE_PTL_H_HAS_BEEN_I...
201
2,099
// // SGListViewController.h // demo-ios // // Created by Single on 2017/3/15. // Copyright © 2017年 single. All rights reserved. // #import <UIKit/UIKit.h> @interface SGListViewController : UITableViewController @end
79
1,350
<gh_stars>1000+ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import c...
3,762
5,813
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
1,116
514
package no.priv.garshol.duke.databases.es; import java.io.IOException; import no.priv.garshol.duke.ConfigLoader; import no.priv.garshol.duke.Configuration; import no.priv.garshol.duke.Database; import no.priv.garshol.duke.databases.es.ElasticSearchDatabase; import org.junit.Test; import org.xml.sax.SAXException; im...
240
312
<gh_stars>100-1000 /******************************************************************************* * Copyright (c) 2021 Eclipse RDF4J contributors. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Distribution License v1.0 * which accompanies th...
13,046
5,169
<reponame>Ray0218/Specs { "name": "LPRefreshControl", "version": "1.0.0", "summary": "refresh control util for SVPullToRefresh.", "description": "refresh control util for SVPullToRefresh easily and conveniently.", "homepage": "https://github.com/litt1e-p/LPRefreshControl", "license": { "type": "MIT" }...
316
317
<gh_stars>100-1000 extern int otb_6s_vegeta_( otb_6s_doublereal *r__ );
39
421
<filename>other_models/rscnn/utils/cinclude/group_points_wrapper.h int group_points_wrapper(int b, int c, int n, int npoints, int nsample, THCudaTensor *points_tensor, THCudaIntTensor *idx_tensor, THCudaTensor *out); int group_points_grad_wrapper(int b, int c, int n, int npoints, int nsample, THCudaTen...
176
1,354
<gh_stars>1000+ #!/usr/bin/python3 -OO # Copyright 2007-2021 The SABnzbd-Team <<EMAIL>> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) a...
6,976
1,444
package org.mage.card.arcane; import mage.abilities.icon.CardIcon; import mage.abilities.icon.CardIconCategory; import mage.abilities.icon.CardIconRenderSettings; import mage.abilities.icon.system.PlayableCountIcon; import mage.cards.MageCard; import mage.cards.MageCardAnimationSettings; import mage.cards.MageCardLoca...
8,961
1,822
// Copyright (c) 2013 <NAME> // // SPDX-License-Identifier: BSL-1.0 // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // This example demonstrates the use of the utility function // make_ready_future_after to orc...
469
672
<filename>velox/vector/BiasVector-inl.h<gh_stars>100-1000 /* * Copyright (c) Facebook, Inc. and 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.apach...
1,865
684
/* Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distribut...
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...
1,664
348
{"nom":"Balazé","circ":"5ème circonscription","dpt":"Ille-et-Vilaine","inscrits":1768,"abs":918,"votants":850,"blancs":36,"nuls":16,"exp":798,"res":[{"nuance":"LR","nom":"Mme <NAME>","voix":420},{"nuance":"REM","nom":"Mme <NAME>","voix":378}]}
100
449
<filename>include/platform/stm32f429/ioe.h #ifndef PLATFORM_STM32F429_IOE_H__ #define PLATFORM_STM32F429_IOE_H__ #include <platform/stm32f429/registers.h> #include <platform/link.h> #define IOE_I2C_CLK RCC_APB1ENR_I2C3EN #define IOE_I2C_SCL_GPIO_CLK RCC_AHB1ENR_GPIOAEN #define IOE_I2C_SDA_GPIO_CLK R...
2,178
640
#ifndef SCREEN_H_ #define SCREEN_H_ #include "types.h" typedef struct { unsigned char uid; //unique ID, to help identify the active screen _voidCallback *init; //func called on init _voidCallback *update; //func called between 2 vblank _voidCallback *updateVBlank; //func called each vblank _voidCallback *...
230
892
<filename>advisories/unreviewed/2022/05/GHSA-7cj7-cgpm-7cgj/GHSA-7cj7-cgpm-7cgj.json { "schema_version": "1.2.0", "id": "GHSA-7cj7-cgpm-7cgj", "modified": "2022-05-01T23:57:21Z", "published": "2022-05-01T23:57:21Z", "aliases": [ "CVE-2008-3173" ], "details": "Microsoft Internet Explorer allows web sit...
537
1,503
<reponame>Mu-L/nvui #include <catch2/catch.hpp> #include "object.hpp" #include <msgpack.hpp> #include <cstdint> TEST_CASE("Object correctly deserialies from msgpack") { SECTION("Deserializing an array of u64s") { msgpack::sbuffer pack_buf; std::vector<std::uint64_t> x {5, 2, 3, 4, 6}; msgpack::pack(pac...
569
765
<reponame>facorazza/python-skyfield<filename>skyfield/data/stellarium.py """Parse Stellarium data files.""" from collections import namedtuple StarName = namedtuple('StarName', 'hip name') def parse_constellations(lines): """Return a list of constellation outlines. Each constellation outline is a list of ed...
782
342
/* Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not...
4,588
315
<filename>remainder-service/src/main/java/com/apssouza/repositories/TodoRepository.java package com.apssouza.repositories; import com.apssouza.entities.ToDo; import java.util.List; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; /** * @author apssouza ...
191
310
<gh_stars>100-1000 { "name": "Evernote (Windows)", "description": "A Windows client for the note/image service.", "url": "https://evernote.com/" }
54
1,143
#!/usr/bin/env python # -*- coding: utf-8 -*- # # tests/client/gui_utilities.py # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, th...
1,291
8,664
<reponame>Taritsyn/ChakraCore //------------------------------------------------------------------------------------------------------- // Copyright (C) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. //---------------------------...
676
6,387
{ "name": "tfsec", "creator": "tfsec", "description": "A static analysis security scanner for your Terraform code. Discover problems with your infrastructure before hackers do.", "iconName": "tfsec", "categories": ["Code Scanning", "HCL"] }
83
2,960
#include <bits/stdc++.h> using namespace std; /** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode() : val(0), next(nullptr) {} * ListNode(int x) : val(x), next(nullptr) {} * ListNode(int x, ListNode *next) : val(x), next(next) {} * }; */ cl...
577
3,102
// Test this without pch. // RUN: %clang_cc1 -std=c++1z -include %S/cxx1z-init-statement.h -fsyntax-only -emit-llvm -o - %s // Test with pch. // RUN: %clang_cc1 -x c++ -std=c++1z -emit-pch -o %t %S/cxx1z-init-statement.h // RUN: %clang_cc1 -std=c++1z -include-pch %t -fsyntax-only -emit-llvm -o - %s void g0(void) { ...
260
777
<gh_stars>100-1000 // Copyright 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_CRONET_IOS_CRONET_C_FOR_GRPC_H_ #define COMPONENTS_CRONET_IOS_CRONET_C_FOR_GRPC_H_ #include "bidirectional_stream_c...
551
1,474
""" @author: <NAME> @contact: <EMAIL> """ import json import time import torch import os import os.path as osp from torchvision.datasets.utils import download_and_extract_archive from ...transforms.keypoint_detection import * from .keypoint_dataset import Hand21KeypointDataset from .util import * """ General util fu...
3,904
1,261
/** Onion HTTP server library Copyright (C) 2010-2018 <NAME> and others This library is free software; you can redistribute it and/or modify it under the terms of, at your choice: a. the Apache License Version 2.0. b. the GNU General Public License as published by the Free Software Foundation; either v...
451
2,151
<reponame>zipated/src // 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. #ifndef CHROME_BROWSER_DOWNLOAD_DOWNLOAD_SERVICE_FACTORY_H_ #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_SERVICE_FACTORY_H_ #include "b...
475
1,567
<reponame>shanbaoyin/paxosstore /* * 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 L...
5,404
3,428
<reponame>ghalimi/stdlib<filename>lib/node_modules/@stdlib/datasets/spam-assassin/data/spam-1/00300.834f370a21ca4f1774d5724b5443411c.json {"id":"00300","group":"spam-1","checksum":{"type":"MD5","value":"834f370a21ca4f1774d5724b5443411c"},"text":"From <EMAIL> Sat Sep 14 16:21:08 2002\nReturn-Path: <<EMAIL>>\nDelivered-...
1,279
1,059
/* SPDX-License-Identifier: BSD-2-Clause */ #define __FPU_MEMCPY_C__ /* * The code in this translation unit, in particular the *single* funcs defined * in fpu_memcpy.h have to be FAST, even in debug builds. It is important the * hot-patched fpu_cpy_single_256_nt, created by copying the once of the * fpu_cpy_*sing...
3,115
634
<gh_stars>100-1000 /* * 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 app...
538
8,865
<filename>atlas-gradle-plugin/dexpatch/src/main/java/com/taobao/android/dx/dex/file/TypeListItem.java<gh_stars>1000+ /* * Copyright (C) 2007 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 m...
1,446
1,435
{"loadBalancer":{"name":"new ord balancer","id":18940,"protocol":"HTTP","port":80,"algorithm":"UNSPECIFIED_FUTURE_ALGORITHM","status":"PENDING_UPDATE","cluster":{"name":"ztm-n06.lbaas.ord1.rackspace.net"},"nodes":[{"address":"10.181.231.202","id":94692,"port":80,"status":"ONLINE","condition":"ENABLED","weight":1}],"cre...
240
823
from functools import wraps from unittest import SkipTest def check_numpy(f): @wraps(f) def wrapper(*args, **kwargs): try: return f(*args, **kwargs) except RuntimeError as e: if 'NumPy' in str(e): raise SkipTest('Numpy package is not installed') ret...
148
571
<reponame>teverett/univocity-trader<filename>univocity-trader-core/src/test/java/com/univocity/trader/indicators/MACDTest.java package com.univocity.trader.indicators; import com.univocity.trader.candles.*; import com.univocity.trader.indicators.base.*; import org.apache.commons.lang3.*; import org.junit.*; import j...
3,965
457
<filename>TestScripts/C Tests/main.c<gh_stars>100-1000 //Copyright (c) 2013-2018 United States Government as represented by the Administrator of the //National Aeronautics and Space Administration. All Rights Reserved. #include "Test.h" #include "UDPTests.h" #include "DrefTests.h" #include "SimuTests.h" #include "CtrlT...
1,115
528
<filename>include/bitstream.h #ifndef ZFP_BITSTREAM_H #define ZFP_BITSTREAM_H #include <stddef.h> #include "zfp/types.h" #include "zfp/system.h" /* forward declaration of opaque type */ typedef struct bitstream bitstream; extern_ const size_t stream_word_bits; /* bit stream granularity */ #ifndef inline_ #ifdef __c...
825
1,073
/*===-- bitwriter_ocaml.c - LLVM OCaml Glue ---------------------*- C++ -*-===*\ |* *| |* The LLVM Compiler Infrastructure *| |* ...
1,112
676
<filename>app/src/main/java/com/alorma/github/sdk/bean/dto/request/RepoRequestDTO.java package com.alorma.github.sdk.bean.dto.request; import android.os.Parcel; import android.os.Parcelable; import com.google.gson.annotations.SerializedName; /** * Created by Bernat on 13/10/2014. */ public class RepoRequestDTO impl...
914
9,228
#!/usr/bin/env python3 # 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 torch from typing import Optional, Tuple from parlai.agents.transformer.modules import ( TransformerDecoder, ...
1,630
578
<filename>src/main/java/net/rubyeye/xmemcached/command/OperationStatus.java<gh_stars>100-1000 package net.rubyeye.xmemcached.command; /** * Command status. * * @author dennis * */ public enum OperationStatus { SENDING, WRITING, SENT, PROCESSING, DONE, CANCEL; }
102
5,379
// 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...
806
575
// Copyright 2018 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "gpu/ipc/service/image_decode_accelerator_stub.h" #include <stddef.h> #include <algorithm> #include <new> #include <utility> #include <vector> ...
7,619
5,079
<reponame>jestinepaul/pycryptodome /* ---- LTC_BASE64 Routines ---- */ #ifdef LTC_BASE64 int base64_encode(const unsigned char *in, unsigned long len, unsigned char *out, unsigned long *outlen); int base64_decode(const unsigned char *in, unsigned long len, unsigned c...
255
567
<reponame>TengKimhan/kumo package com.kennycason.kumo.padding; import com.kennycason.kumo.Word; import java.awt.*; import java.awt.image.BufferedImage; /** * Created by kenny on 7/2/14. */ public class RectanglePadder implements Padder { @Override public void pad(final Word word, final int padding) { ...
309
4,036
#Test module for the NameSpace QL class def func(): pass x = 0 y = 1 class Class: def meth(self): pass from module import x from module import z as y import module meth = Class.meth q = Class().meth() m_z = module.z # Hierarchical scopes #Global int = b"global" #Global or builtin if unknown(): ...
277
852
import FWCore.ParameterSet.Config as cms siStripGainESProducer = cms.ESProducer("SiStripGainESProducer", appendToDataLabel = cms.string(''), printDebug = cms.untracked.bool(False), AutomaticNormalization = cms.bool(False), APVGain = cms.VPSet( cms.PSet( Record = cms.string('SiStripA...
320
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 ...
712
1,483
/* * Copyright Lealone Database Group. * Licensed under the Server Side Public License, v 1. * Initial Developer: zhh */ package org.lealone.sql.query; import org.lealone.db.value.Value; // 最普通的查询 class QFlat extends QOperator { QFlat(Select select) { super(select); } @Override public vo...
470
3,402
/* * 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 ...
636
1,561
<filename>projects/robots/nvidia/jetbot/controllers/jetbot_basic_motion/jetbot_basic_motion.c<gh_stars>1000+ /* * Copyright 1996-2021 Cyberbotics Ltd. * * 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 th...
1,402
474
<gh_stars>100-1000 // // PLSSelectionView.h // PLShortVideoKitDemo // // Created by suntongmian on 2017/7/12. // Copyright © 2017年 Pili Engineering, Qiniu Inc. All rights reserved. // #import <UIKit/UIKit.h> @class PLSSelectionView; @protocol PLSSelectionViewDelegate <NSObject> -(void)selectionView:(PLSSelectio...
606
771
<filename>helpers/svg-gradient-map-filter.json { "name": "SVG Gradient Map Filter", "desc": "Create SVG Gradient Map Filters from given colors.", "url": "https://yoksel.github.io/svg-gradient-map/", "tags": [ "SVG" ], "maintainers": [ "yoksel" ], "addedAt": "2021-02-09" }
126