max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
9,953
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. from __future__ import division, absolute_import # System Imports import sys from twisted.trial import unittest try: import cPickle as pickle except ImportError: import pickle import io try: from cStringIO import StringIO as _old...
6,820
511
<filename>os/drivers/wireless/scsc/misc/panicmon.c<gh_stars>100-1000 /***************************************************************************** * * Copyright 2017 Samsung Electronics All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in c...
617
3,436
<reponame>seewpx/range-v3 //! [transform example] #include <iostream> #include <vector> #include <range/v3/view/transform.hpp> int main() { std::vector<int> numbers{1, 2, 3}; auto halved = numbers // Divide each integer by 2, converting it into a double | ranges::views::transform([](const int&...
178
4,054
<gh_stars>1000+ // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.config.subscription.impl; import com.yahoo.config.subscription.ConfigHandle; import com.yahoo.vespa.config.RawConfig; /** * A config handle which does not use the config class, b...
238
661
#ifndef _FMOD_IOS_H #define _FMOD_IOS_H /* [ENUM] [ [DESCRIPTION] Control whether the sound will use a the dedicated hardware decoder or a software codec. [REMARKS] Every devices has a single hardware decoder and unlimited software decoders. [SEE_ALSO] ] */ typedef enum FMOD_AUDIOQUEUE_CODECPOLI...
366
482
#ifndef FONT8X8_H #define FONT8X8_H #include <avr/pgmspace.h> extern const unsigned char font8x8[]; #endif
51
1,418
<reponame>Watch-Later/recipes #!/usr/bin/python3 # Read and analyse stdout of footprint.cc # $ sudo ./footprint 100000 | ./footprint.py from collections import OrderedDict import re, sys slabs = {} sections = [] section = None for line in sys.stdin: if m := re.match('===== (.*) =====', line): section_...
651
4,140
<reponame>FANsZL/hive<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,...
1,030
665
<reponame>opencirclesolutions/isis<filename>api/applib/src/test/java/org/apache/isis/applib/services/user/UserMemento_Test.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 * ...
6,770
681
<reponame>pkiraly/dataverse package edu.harvard.iq.dataverse.engine.command.impl; import edu.harvard.iq.dataverse.Dataset; import edu.harvard.iq.dataverse.DatasetServiceBean; import edu.harvard.iq.dataverse.Dataverse; import edu.harvard.iq.dataverse.DataverseLinkingServiceBean; import edu.harvard.iq.dataverse.Datavers...
8,114
1,826
<filename>flexmark-util/src/test/java/com/vladsch/flexmark/util/visitor/VisitorTestSuite.java package com.vladsch.flexmark.util.visitor; import org.junit.runner.RunWith; import org.junit.runners.Suite; @RunWith(Suite.class) @Suite.SuiteClasses({ NodeVisitorTest.class, }) public class VisitorTestSuite { }
126
619
/* * Author: <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * Copyright (c) 2015 Intel Corporation. * * This program and the accompanying materials are made available under the * terms of the The MIT License which is available at * https://opensource.org/licenses/MIT. * * SPDX-License-Identifier: MIT */ #includ...
900
346
<gh_stars>100-1000 // usage: plash map KEY [ CONTAINER ] // Map a container to a key. Use an empty container to delete a key. // // Example: // // $ plash build -f alpine // 342 // // $ plash map myfavorite 342 // // $ plash map myfavorite // 342 // // $ plash build --from-map myfavorite // 342 // // $ plash map myfavo...
857
2,151
<filename>ios/web/public/web_state/ui/crw_content_view.h // Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_CONTENT_VIEW_H_ #define IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_C...
529
305
package org.mamute.dao; import javax.inject.Inject; import org.hibernate.Query; import org.hibernate.Session; import org.mamute.infra.NotFoundException; import org.mamute.model.TagPage; public class TagPageDAO { private Session session; @Deprecated public TagPageDAO() { } @Inject public TagPageDAO(Session se...
308
582
/* * Copyright 2017 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 applica...
469
373
/* * #%L * ACS AEM Commons Bundle * %% * Copyright (C) 2015 Adobe * %% * 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...
955
354
/*********************************************************************************************************************** * OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC, and other contributors. All rights reserved. * * Redistribution and use in source and binary forms, with or without m...
2,336
416
<filename>sfm-map/src/main/java/org/simpleflatmapper/map/CaseInsensitiveEndsWithPredicate.java package org.simpleflatmapper.map; import org.simpleflatmapper.util.Named; import org.simpleflatmapper.util.OrManyPredicate; import org.simpleflatmapper.util.Predicate; public final class CaseInsensitiveEndsWithPredicate imp...
654
362
package net.danlew.gfycat; import android.app.Application; import dagger.Module; import dagger.Provides; import net.danlew.gfycat.service.GfycatService; import net.danlew.gfycat.ui.MainActivity; import javax.inject.Singleton; @Module( injects = MainActivity.class ) public class ServiceModule { private Appli...
200
2,106
<filename>blaze/compute/tests/test_chunks.py from odo import chunks from blaze import discover, into, compute, symbol from datashape.predicates import iscollection L = [1, 2, 3, 4, 5, 6] cL = chunks(list)([[1., 2., 3.], [4., 5., 6.]]) s = symbol('s', discover(cL)) def test_chunks_compute(): exprs = [s, s + 1, s...
401
367
import logging import urllib.request import re import requests ### # Scan focused on learning about the /privacy page, as per # https://github.com/18F/site-scanning/issues/89. # Set a default number of workers for a particular scan type. # Overridden by a --workers flag. XXX not actually overridden? workers = 50 d...
1,199
2,015
<filename>src/picotorrent/core/http/httpresponse.hpp #pragma once #include <QObject> #include <stdint.h> #include <vector> namespace pt { class HttpResponse : public QObject { Q_OBJECT public: HttpResponse(); virtual ~HttpResponse(); int statusCode; std::vector<c...
207
1,433
<gh_stars>1000+ /* * Copyright (c) 2016, 2017, 2018, 2019 FabricMC * * 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 requi...
923
1,489
package me.ele.amigo.utils; import android.content.Context; import android.support.test.InstrumentationRegistry; import android.support.test.runner.AndroidJUnit4; import java.io.File; import java.io.IOException; import me.ele.amigo.reflect.FieldUtils; import org.junit.Assert; import org.junit.Test; import org.junit.ru...
673
1,918
# Copyright 2021, The TensorFlow Federated Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
2,668
11,356
<reponame>koln67/shaka-packager // 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, with or without // modification, are permitted provided that the followin...
2,556
371
#include "platform.h" #include "platform_utils.h" #include "../../_stereokit.h" #include "../../log.h" #include "win32.h" #include "uwp.h" #include "linux.h" #include "android.h" #include "openxr.h" namespace sk { display_mode_ platform_mode = display_mode_none; /////////////////////////////////////////// bool pla...
2,225
379
// Copyright (c) 2020 PaddlePaddle 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...
488
892
<filename>advisories/unreviewed/2022/05/GHSA-5xjg-wggg-qh5w/GHSA-5xjg-wggg-qh5w.json { "schema_version": "1.2.0", "id": "GHSA-5xjg-wggg-qh5w", "modified": "2022-05-02T06:11:52Z", "published": "2022-05-02T06:11:52Z", "aliases": [ "CVE-2010-0358" ], "details": "Heap-based buffer overflow in the server i...
538
2,536
<reponame>KWik/munki<filename>code/client/munkilib/munkirepo/MWA2APIRepo.py # encoding: utf-8 '''Defines MWA2APIRepo plugin. See docstring for MWA2APIRepo class''' from __future__ import absolute_import, print_function import base64 import getpass import os import subprocess import tempfile try: # Python 2 fr...
4,341
1,113
<filename>app/src/main/java/org/estgroup/phphub/api/entity/TopicEntity.java package org.estgroup.phphub.api.entity; import org.estgroup.phphub.api.entity.element.Topic; import java.util.List; public class TopicEntity { protected List<Topic> data; public List<Topic> getData() { return data; } ...
265
582
<reponame>OLibutzki/moduliths /* * 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-...
929
478
/* Copyright (c) 2014 Aerys 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, distribute, sublicens...
2,508
809
/** * @file main.c * @brief Control FPGA leds with HPS * @author <NAME> <<EMAIL>> * @version * @date 29.01.2020 */ #include <stdio.h> #include <unistd.h> #include <mem/vmem.h> #include "hps_0.h" #include "led.h" int main(int argc, char **argv) { vmem_map_region(vmem_current_context(), (mmu...
432
310
<filename>gear/software/a/aquamacs.json { "name": "Aquamacs", "description": "A Mac OS X native version of Emacs.", "url": "http://aquamacs.org/" }
58
2,151
// Copyright 2013 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/undo/bookmark_undo_service.h" #include <stddef.h> #include <memory> #include "base/macros.h" #include "base/strings/utf_string_con...
7,325
777
<reponame>domenic/mojo // 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/url_request/data_protocol_handler.h" #include "net/url_request/url_request_data_job.h" namespace net { DataPro...
206
704
<gh_stars>100-1000 package com.netflix.governator.guice; import com.google.inject.Injector; /** * Action to perform after the injector is created. * * @author elandau */ public interface PostInjectorAction { public void call(Injector injector); }
87
7,857
#include "QtCore/QModelIndex/qmodelindex_wrap.h" #include "Extras/Utils/nutils.h" #include "QtCore/QVariant/qvariant_wrap.h" #include "core/Component/component_wrap.h" Napi::FunctionReference QModelIndexWrap::constructor; Napi::Object QModelIndexWrap::init(Napi::Env env, Napi::Object exports) { Napi::HandleScope s...
1,867
3,012
/** @file NULL Library class that reads Debug Mask variable and if it exists makes a HOB that contains the debug mask. Copyright (c) 2011, Apple, Inc. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <PiPei.h> #include <Library/HobLib.h> #include <Library/DebugL...
1,027
1,641
from eth_utils.toolz import ( curry, ) from eth import constants from eth._utils.numeric import ( unsigned_to_signed, signed_to_unsigned, ceil8, ) from eth.vm.computation import BaseComputation def add(computation: BaseComputation) -> None: """ Addition """ left, right = computation...
1,997
2,996
<gh_stars>1000+ // Copyright 2021 The Terasology Foundation // SPDX-License-Identifier: Apache-2.0 package org.terasology.engine.world.generation; public interface FacetProvider { /** * @param seed the seed value (typically used for random number generators) */ default void setSeed(long seed) { ...
191
852
<gh_stars>100-1000 #ifndef JetAlgorithms_QGLikelihoodCalculator_h #define JetAlgorithms_QGLikelihoodCalculator_h #include "CondFormats/JetMETObjects/interface/QGLikelihoodObject.h" /** * The QGLikelihoodCalculater calculates the likelihood for a jet * It takes information on the valid range of the tool, the binning...
778
1,755
"""Test the use of preconditions with VTK_EXPECTS() """ import sys import vtk from vtk.test import Testing class TestExpects(Testing.vtkTest): def testPoints(self): """Test the index limits for vtkPoints """ points = vtk.vtkPoints() p = (1.0, 2.0, 3.0) points.InsertNextPoin...
1,254
331
<reponame>HarkonenBade/agithub # Copyright 2012-2016 <NAME> and contributors # See COPYING for license details from agithub.base import API, ConnectionProperties, Client class DigitalOcean(API): """ Digital Ocean API """ def __init__(self, token=None, *args, **kwargs): props = ConnectionProper...
332
1,091
<reponame>MohiK98/onos /* * Copyright 2021-present Open Networking Foundation * * 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...
818
20,765
#include "file_utils.h" #include "string_utils.h" #include <fstream> #include <string> bool find_folder(const char* root, const char* prefix, std::string& dest) { return false; } bool find_folder(const std::string& root, const std::string& prefix, std::string& dest) { return find_folder(root.c_str(), prefix.c...
374
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...
2,551
6,717
//****************************************************************************** // // Copyright (c) 2016 Microsoft Corporation. All rights reserved. // // This code is licensed under the MIT License (MIT). // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LI...
466
4,816
<filename>include/retdec/bin2llvmir/optimizations/idioms/idioms_types.h /** * @file include/retdec/bin2llvmir/optimizations/idioms/idioms_types.h * @brief Instruction idioms analysis types * @copyright (c) 2017 Avast Software, licensed under the MIT license */ #ifndef RETDEC_BIN2LLVMIR_OPTIMIZATIONS_IDIOMS_IDIOMS_TYPE...
335
335
{ "word": "Headmaster", "definitions": [ "A man who is the head teacher in a school." ], "parts-of-speech": "Noun" }
63
419
<reponame>ajax7876/ElasticTransition-ObjC<filename>ElasticTransistionExample/NavigationExampleViewController.h // // NavigationExampleViewController.h // ElasticTransistionExample // // Created by Tigielle on 11/02/16. // Copyright © 2016 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @interface Navigati...
146
1,590
{ "parameters": { "api-version": "2018-08-01", "subscriptionId": "subid", "resourceGroupName": "rg1", "frontDoorName": "frontDoor1" }, "responses": { "200": { "body": { "value": [ { "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/f...
431
5,460
<reponame>gtourkas/moto """Exceptions raised by the timestreamwrite service."""
26
2,073
/** * 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...
802
5,133
<filename>processor/src/test/java/org/mapstruct/ap/test/selection/qualifier/iterable/RiverEntity.java /* * Copyright MapStruct Authors. * * Licensed under the Apache License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0 */ package org.mapstruct.ap.test.selection.qualifier.iterable; /** * *...
191
676
<filename>app/src/main/java/com/alorma/github/account/StartUpBootReceiver.java<gh_stars>100-1000 package com.alorma.github.account; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import com.alorma.github.GitskariosApplication; import com.alorma.github.injector....
479
356
/* * 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 applicable law or agreed to ...
477
2,230
/** * Copyright (c) 2017-present, Facebook, Inc. * 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. */ #include "save2json.h" #include "engine/cmd.h" #include "engine/cmd.gen.h" #include "engine/cmd_specific.gen.h" #...
2,713
852
<filename>RecoLocalCalo/HcalLaserReco/src/HcalLaserUnpacker.cc #include "DataFormats/FEDRawData/interface/FEDRawData.h" #include "DataFormats/HcalDigi/interface/HcalLaserDigi.h" #include "RecoLocalCalo/HcalLaserReco/src/HcalLaserUnpacker.h" #include "FWCore/Utilities/interface/Exception.h" #include <ostream> HcalLaser...
681
1,909
<gh_stars>1000+ package org.knowm.xchange.examples.bithumb.trade; import java.io.IOException; import java.math.BigDecimal; import org.knowm.xchange.Exchange; import org.knowm.xchange.bithumb.BithumbException; import org.knowm.xchange.bithumb.dto.account.BithumbOrder; import org.knowm.xchange.bithumb.service.BithumbTra...
2,298
575
// 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. #ifndef ASH_KEYBOARD_VIRTUAL_KEYBOARD_CONTROLLER_H_ #define ASH_KEYBOARD_VIRTUAL_KEYBOARD_CONTROLLER_H_ #include <stdint.h> #include "ash/ash_export.h" ...
922
8,747
// Copyright 2021 Espressif Systems (Shanghai) PTE 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 the License at // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicab...
581
984
<reponame>om-sharma/java-driver /* * Copyright DataStax, 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 ap...
703
510
<filename>scripts/lsdbus.py #!/usr/bin/env python3 import dbus.mainloop.glib dbus.mainloop.glib.DBusGMainLoop(set_as_default=True) bus = dbus.SystemBus() o = bus.get_object('org.freedesktop.DBus', '/org/freedesktop/DBus') o = dbus.Interface(o, 'org.freedesktop.DBus') ls = o.ListNames() for n in ls: if n[0] != ':...
255
2,338
// FIXME(dliew): Duplicated from `test/sanitizer_common/TestCases/Darwin/symbolizer-function-offset-dladdr.cpp`. // This case can be dropped once sanitizer_common tests work on iOS devices (rdar://problem/47333049). // NOTE: `detect_leaks=0` is necessary because with LSan enabled the dladdr // symbolizer actually leak...
612
654
<gh_stars>100-1000 /* icmp.c - Server response tests using ICMP echo requests Copyright (C) 2000, 2001 <NAME> Copyright (C) 2003, 2005, 2007, 2012 <NAME> This file is part of the pdnsd package. pdnsd is free software; you can redistribute it and/or modify it under the terms of the GNU General Public Lice...
7,407
372
<reponame>mgd-hin/systemds /* * 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...
1,480
406
<gh_stars>100-1000 /** 🍪 the_hyp0cr1t3 🍪 06.12.2020 17:26:32 **/ #ifdef W #include "k_II.h" #else #include <bits/stdc++.h> using namespace std; #endif #define pb emplace_back #define sz(x) int(x.size()) #define all(x) x.begin(), x.end() const int64_t DESPACITO = 2e18; const int INF = 2e9, MOD = 1e9...
435
526
<filename>open-metadata-implementation/access-services/community-profile/community-profile-client/src/main/java/org/odpi/openmetadata/accessservices/communityprofile/client/UserIdentityManagement.java<gh_stars>100-1000 /* SPDX-License-Identifier: Apache 2.0 */ /* Copyright Contributors to the ODPi Egeria project. */ p...
11,263
376
_base_ = [ '../../../_base_/datasets/fine_tune_based/base_voc.py', '../../../_base_/schedules/schedule.py', '../../../_base_/models/faster_rcnn_r50_caffe_fpn.py', '../../../_base_/default_runtime.py' ] # classes splits are predefined in FewShotVOCDataset data = dict( train=dict(classes='BASE_CLASSES...
318
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. #ifndef SERVICES_NETWORK_PROXY_RESOLVING_CLIENT_SOCKET_FACTORY_H_ #define SERVICES_NETWORK_PROXY_RESOLVING_CLIENT_SOCKET_FACTORY_H_ #include <memory> #i...
861
577
package org.fluentlenium.adapter; @FunctionalInterface public interface TriConsumer<U, V, W> { void accept(U arg1, V arg2, W arg3); }
52
12,278
<reponame>pyracanda/runtime #define LINUX_UC_FLAGS_OFF 0x000 #define LINUX_UC_LINK_OFF 0x004 #define LINUX_UC_STACK_OFF 0x008 #define LINUX_UC_MCONTEXT_OFF 0x018 #define LINUX_UC_SIGMASK_OFF 0x1b8 #define LINUX_SC_FLAGS_OFF 0x000 #define LINUX_SC_GR_OFF 0x004 #define LINUX_SC_FR_OFF ...
328
339
// // DRDViewController.h // Durandal // // Created by cendywang on 12/10/2015. // Copyright (c) 2015 cendywang. All rights reserved. // @import UIKit; @interface DRDViewController : UIViewController @end
77
915
<filename>testing/unittest/runtime_static_assert.h<gh_stars>100-1000 #pragma once #include <string> #include <thrust/detail/static_assert.h> #undef THRUST_STATIC_ASSERT #undef THRUST_STATIC_ASSERT_MSG #define THRUST_STATIC_ASSERT(B) unittest::assert_static((B), __FILE__, __LINE__); #define THRUST_STATIC_ASSERT_MSG(B...
1,270
701
package top.easelink.framework.customview; import android.content.Context; import android.content.res.TypedArray; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.graphics.Path; import android.text.TextUtils; import android.util.AttributeSet; import android.v...
2,390
1,664
<reponame>likenamehaojie/Apache-Ambari-ZH<filename>ambari-server/src/test/java/org/apache/ambari/server/api/AmbariErrorHandlerTest.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 informatio...
1,282
358
from copy import deepcopy from os.path import join from threading import Thread, Lock from typing import List, Union import matplotlib.pyplot as plt import numpy as np from sklearn.metrics import mean_squared_error from fedot.core.pipelines.pipeline import Pipeline from fedot.core.pipelines.node import Node from fedo...
3,313
335
<gh_stars>100-1000 { "word": "Catch", "definitions": [ "An act of catching something, typically a ball.", "A chance or act of catching the ball to dismiss a batsman.", "An amount of fish caught.", "A person considered desirable as a partner or spouse.", "A game in which a...
242
12,278
<filename>3rdParty/boost/1.71.0/libs/test/test/writing-test-ts/test-timeout-fail.cpp // (C) Copyright <NAME>, 2019 // 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) // See http://www.boost.org/libs/test for t...
251
945
<gh_stars>100-1000 /*========================================================================= * * Copyright NumFOCUS * * 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...
1,974
877
// @skip-test // Check that types on enum constants can be inferred. This test doesn't succeed for either kind of // WPI, because WPI doesn't learn anything about enum constants from how they're used. They also // cannot be assigned to, so there's no way for WPI to learn their types. import org.checkerframework.chec...
179
7,482
<reponame>Davidfind/rt-thread<gh_stars>1000+ /* * Copyright (c) 2012, Freescale Semiconductor, 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: * * o Redistributions of source code must...
22,019
305
<filename>aat/engine/dispatch/manager.py import sys import traceback from typing import cast, List, TYPE_CHECKING from .order_entry import StrategyManagerOrderEntryMixin, OrderManager from .periodic import PeriodicManagerMixin from .portfolio import StrategyManagerPortfolioMixin, PortfolioManager from .risk import St...
2,345
3,603
<gh_stars>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, softw...
656
820
from tempfile import mkstemp, mkdtemp import os import signal import sys from time import time, sleep from collections import defaultdict import cProfile import pstats import shutil import functools import multiprocessing import socket import sysconfig import concurrent from unittest import skip, skipIf, TestCase, Tes...
6,359
1,255
<reponame>RichardRanft/RakNet /* Copyright (c) 2009-2010 <NAME>. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, t...
1,833
348
<reponame>chamberone/Leaflet.PixiOverlay {"nom":"Valbelle","dpt":"Alpes-de-Haute-Provence","inscrits":221,"abs":50,"votants":171,"blancs":11,"nuls":4,"exp":156,"res":[{"panneau":"1","voix":91},{"panneau":"2","voix":65}]}
95
1,144
/* * #%L * de.metas.servicerepair.base * %% * Copyright (C) 2021 metas GmbH * %% * 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...
2,162
309
<filename>src/Cxx/PolyData/PointLocatorVisualization.cxx #include <vtkPointSource.h> #include <vtkSphereSource.h> #include <vtkPointLocator.h> #include <vtkSmartPointer.h> #include <vtkPolyData.h> #include <vtkSliderWidget.h> #include <vtkPolyDataMapper.h> #include <vtkActor.h> #include <vtkRenderWindow.h> #include <vt...
1,630
742
{ "scripts": { "gcp-build": "tsc function.ts" }, "dependencies": { "@google-cloud/functions-framework": "^1.0.0" }, "devDependencies": { "typescript": "^3.7.2" } }
91
10,225
<filename>independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/model/ContextResolvers.java package org.jboss.resteasy.reactive.server.model; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map;...
2,029
355
#include "CascadeFaceDetection.h" #include "CaffeBinding.h" #include "../Test/util/BoundingBox.inc.h" #include "../Test/TestFaceDetection.inc.h" #include "pyboostcvconverter.hpp" using namespace std; caffe::CaffeBinding* kCaffeBinding = new caffe::CaffeBinding(); namespace FaceInception { CascadeCNN* cascade; Cas...
2,014
623
<gh_stars>100-1000 // Copyright (C) 2009 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 requ...
603
1,217
#include <stdlib.h> #include <stdio.h> #include <vector> #include <string> #include <sstream> #include <iostream> #include <fstream> #include <stdexcept> #include <zlib.h> #include "arc_utilities/arc_exceptions.hpp" #include "arc_utilities/zlib_helpers.hpp" namespace ZlibHelpers { // MAKE SURE THE INPUT BUFFER IS ...
2,625
1,444
package mage.cards.b; import java.util.UUID; import mage.Mana; import mage.abilities.Ability; import mage.abilities.common.BeginningOfPreCombatMainTriggeredAbility; import mage.abilities.effects.OneShotEffect; import mage.abilities.effects.common.counter.AddCountersSourceEffect; import mage.cards.CardImpl; import mag...
1,330
722
// Copyright (C) 2019. Huawei Technologies Co., Ltd. All rights reserved. // 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,...
4,258
318
from flask import Blueprint, current_app, request from flask_login import current_user from ..models import Logs, db from ..util.custom_decorator import login_required import copy import json api = Blueprint('api', __name__) from . import api_msg_manage, module_manage, project_manage, report_manage, build_in_manage,...
662