max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
904
{ "index": { "icon": "home", "title": "Angular Docs", "subtitle": "JavaScript", "menuTitle": "Docs Home", "banner": "The latest Angular release is <b>4.0</b>. Learn about the latest <a href='guide/change-log.html' title='Documentation change log'>updates to the documentation</a>. View the <a href=...
770
1,097
import os files = os.listdir('.') best_files = [] for f in files: if 'best.' in f and 'py' not in f: best_files.append(f) best_data = [] for f in best_files: with open(f) as ff: best_data.append(ff.readlines()) best_dict = {} for b in best_data: #print(b) b = b[0] tab_split =...
349
984
/* * 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 ...
776
14,668
<gh_stars>1000+ // Copyright 2020 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/gfx/geometry/insets_conversions.h" #include "base/numerics/safe_conversions.h" #include "ui/gfx/geometry/insets.h" #include ...
473
709
//----------------------------------------------- // // This file is part of the Siv3D Engine. // // Copyright (c) 2008-2021 <NAME> // Copyright (c) 2016-2021 OpenSiv3D Project // // Licensed under the MIT License. // //----------------------------------------------- # pragma once # include <Siv3D/Common.hpp> # inclu...
239
463
package mockit.asm.constantPool; import javax.annotation.*; public final class StringItem extends Item { @Nonnull @SuppressWarnings("NullableProblems") String strVal; StringItem() { super(0); strVal = ""; } public StringItem(@Nonnegative int index, int type, @Nonnull String strVal) { s...
340
14,564
package com.alibaba.datax.plugin.writer.util; /** * Copyright @ 2019 alibaba.com * All right reserved. * Function:Const * * @author <NAME> * @since 2019-03-29 */ final class Const { private Const() { } static final String OPENTSDB_ADDRESS = "http://localhost:8242"; static final String TSDB_ADD...
128
4,772
package example.service; import example.repo.Customer225Repository; import org.springframework.stereotype.Service; @Service public class Customer225Service { public Customer225Service(Customer225Repository repo) {} }
60
348
{"nom":"Frémainville","circ":"1ère circonscription","dpt":"Val-d'Oise","inscrits":375,"abs":183,"votants":192,"blancs":22,"nuls":8,"exp":162,"res":[{"nuance":"REM","nom":"<NAME>","voix":96},{"nuance":"LR","nom":"<NAME>","voix":66}]}
92
6,036
<gh_stars>1000+ //----------------------------------------------------------------------------- // // Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- #pragma once #include <winrt/Windows.Media.h> #include <winrt/Windows.Grap...
391
988
<gh_stars>100-1000 //------------------------------------------------------------------------------ // GB_convert_any_to_bitmap: convert any matrix to bitmap //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, <NAME>, (c) 2017-2021, All Rights Reserved. // SPDX-Li...
762
668
/** * 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 m...
1,008
318
<reponame>maxerbubba/visionworkbench // __BEGIN_LICENSE__ // Copyright (c) 2006-2013, United States Government as represented by the // Administrator of the National Aeronautics and Space Administration. All // rights reserved. // // The NASA Vision Workbench is licensed under the Apache License, // Version 2.0 (t...
604
393
<reponame>nFnK/otros-log-viewer /******************************************************************************* * Copyright 2011 <NAME> * <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 ...
555
2,728
/* * Phusion Passenger - https://www.phusionpassenger.com/ * Copyright (c) 2017 Phusion Holding B.V. * * "Passenger", "Phusion Passenger" and "Union Station" are registered * trademarks of Phusion Holding B.V. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this softw...
920
1,900
<filename>api/src/main/java/org/ehcache/config/Eviction.java /* * Copyright Terracotta, 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/LICE...
329
442
<reponame>vkhristenko/fpga-network-stack /************************************************ Copyright (c) 2019, Systems Group, ETH Zurich. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributio...
3,897
634
/* * Copyright 2000-2009 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...
332
579
/* * Copyright (c) 2020-2021 Valve Corporation * Copyright (c) 2020-2021 LunarG, 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...
5,003
6,115
#pragma once #include "common/Common.hpp" class RandomPointPoseGeneratorNoRoll { public: private: typedef common_utils::RandomGeneratorGaussianF RandomGeneratorGaussianF; typedef msr::airlib::Vector3r Vector3r; typedef msr::airlib::Quaternionr Quaternionr; typedef common_utils::Utils Utils; typede...
627
2,205
[ {"title": "ATX PC Computer Power Supply Troubleshooting", "expanded": true, "folder": true, "children": [ {"title": "Power comes on", "extraClasses": "yes", "children": [ {"title": "Live screen", "extraClasses": "yes", "children": [ {"title": "New build", "extraClasses": "yes", "children": [ {"title": ...
481
4,772
package example.repo; import example.model.Customer1990; import java.util.List; import org.springframework.data.repository.CrudRepository; public interface Customer1990Repository extends CrudRepository<Customer1990, Long> { List<Customer1990> findByLastName(String lastName); }
83
2,542
<filename>src/prod/src/api/wrappers/ComGetServiceNameResult.cpp // ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ----------------------------...
272
1,455
<reponame>Quantum64/spring-data-redis /* * Copyright 2011-2021 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/...
2,837
562
from freight.api.serializer import serialize from freight.testutils import TestCase class UserSerializerTest(TestCase): def test_simple(self): user = self.create_user() result = serialize(user) assert result["id"] == str(user.id) assert result["name"] == user.name
110
351
<gh_stars>100-1000 /******************************************************************************* * Copyright 2019 See AUTHORS file. * * 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 * * ht...
831
974
// Blend2D - 2D Vector Graphics Powered by a JIT Compiler // // * Official Blend2D Home Page: https://blend2d.com // * Official Github Repository: https://github.com/blend2d/blend2d // // Copyright (c) 2017-2020 The Blend2D Authors // // This software is provided 'as-is', without any express or implied // warranty. I...
2,310
1,025
#import <CoreData/CoreData.h> @interface NSPropertyDescription (CDEAdditions) #pragma mark - Convenience - (BOOL)isAttributeDescription_cde; - (BOOL)isRelationshipDescription_cde; @property (nonatomic, readonly) NSString *nameForDisplay_cde; @end
87
1,926
<gh_stars>1000+ __all__ = ['example'] # Don't look below, you wont understand this Python code :) I don't. from js2py.pyjs import * # setting scope var = Scope( JS_BUILTINS ) set_global_object(var) # Code follows: var.registers([u'sayHello', u'someVariable', u'Rectangle', u'$nonPyName']) @Js def PyJsHoisted_sayHello...
822
5,964
<gh_stars>1000+ #include "kxia64.h" #include "regia64.h" // // Pointer size in bytes // #define SizeofPointer 0x8 // // Process State Enumerated Type Values // #define ProcessInMemory 0x0 #define ProcessOutOfMemory 0x1 #define ProcessInTransition 0x2 // // Thread State Enumerated Type Values // #define Initialize...
19,254
831
<filename>designer/src/com/android/tools/idea/common/scene/draw/FancyStroke.java /* * 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 ...
5,852
554
<gh_stars>100-1000 /** * MIT License * * Copyright (c) 2020 ManBang Group * 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...
537
49,076
/* * Copyright 2002-2021 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
664
675
/* * H.265 video codec. * Copyright (c) 2013-2014 struktur AG, <NAME> <<EMAIL>> * * This file is part of libde265. * * libde265 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 Software Foundation, either version 3 o...
2,765
11,356
<gh_stars>1000+ /* Copyright © 2018 Apple Inc. All rights reserved. * * Use of this source code is governed by a BSD-3-clause license that can * be found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause */ #ifndef SPARSE_NN_HPP #define SPARSE_NN_HPP #include <core/export.hpp> #include <mo...
786
834
// Copyright 2004-present Facebook. All Rights Reserved. #pragma once #include "fboss/lib/fpga/HwMemoryRegion.h" namespace facebook::fboss { class MinipackPimController { public: explicit MinipackPimController(std::unique_ptr<FpgaMemoryRegion> io) : io_(std::move(io)) {} // TODO(pgardideh): this is temp...
204
2,151
<gh_stars>1000+ #!/usr/bin/python def gen_matrix(x, y = 0): if y == 0: y = x type = "mat" + str(x) if x != y: type = type + "x" + str(y) print type + " matrixCompMult(" + type + " x, " + type + " y)\n{" print " " + type + " z;" for i in range(x): print " z[" + str...
321
1,085
<gh_stars>1000+ from galaxy.security.validate_user_input import ( extract_domain, validate_email_str, validate_publicname_str, ) def test_extract_full_domain(): assert extract_domain("<EMAIL>") == "foo.com" assert extract_domain("<EMAIL>") == "foo.bar.com" def test_extract_base_domain(): # U...
411
348
<reponame>chamberone/Leaflet.PixiOverlay {"nom":"Tende","circ":"4ème circonscription","dpt":"Alpes-Maritimes","inscrits":1496,"abs":757,"votants":739,"blancs":21,"nuls":4,"exp":714,"res":[{"nuance":"REM","nom":"Mme <NAME>","voix":226},{"nuance":"FN","nom":"M. <NAME>","voix":146},{"nuance":"LR","nom":"M. <NAME>","voix":...
335
852
import FWCore.ParameterSet.Config as cms process = cms.Process("PERFORMANCESUMMARYWRITE") process.load("FWCore.MessageLogger.MessageLogger_cfi") process.load("Geometry.TrackerSimData.trackerSimGeometryXML_cfi") process.load("Geometry.TrackerGeometryBuilder.trackerGeometry_cfi") process.load("Geometry.TrackerNumberi...
511
2,023
<reponame>tdiprima/code ################################################################# ################################################################# import xmlrpclib from cherrypy.lib.filter.xmlrpcfilter import XmlRpcFilter from cherrypy import cpg from reportlab.pdfgen import canvas class Root: _cpFilterLis...
601
2,381
<reponame>kiview/docker-java<filename>docker-java-core/src/main/java/com/github/dockerjava/core/command/ResizeContainerCmdImpl.java package com.github.dockerjava.core.command; import com.github.dockerjava.api.command.ResizeContainerCmd; import com.github.dockerjava.api.exception.NotFoundException; import static com.g...
537
903
/* * Copyright 2019 Amazon.com, Inc. or its affiliates. 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. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" ...
1,200
335
<reponame>OotinnyoO1/N64Wasm /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Mupen64plus - cp0.h * * Mupen64Plus homepage: http://code.google.com/p/mupen64plus/ * * Copyright (C) 2002 Hacktarux ...
2,638
30,023
"""Tests for nx584 component."""
11
1,452
#ifndef QPSOLVER_PROBLEMGENERATOR_H #define QPSOLVER_PROBLEMGENERATOR_H #include "QpProblem.h" template<typename T> class ProblemGenerator { public: QpProblem<T> generateSparseMPC(s64 n_states, s64 n_control, s64 horizon, s64 n_constraint); }; #endif //QPSOLVER_PROBLEMGENERATOR_H
125
345
""" Copyright (c) 2016-2020 <NAME> http://www.keithsterling.com 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, m...
437
2,276
<reponame>barrosm/forecasting # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. """ This file contains utility functions for builing multiple linear regression models to forecast many time series individually. """ import pandas as pd from sklearn.linear_model import LinearRegression def fit...
1,243
2,151
<gh_stars>1000+ # 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. """Abstract injector class for GS requests.""" class FileNotFoundError(Exception): """Thrown by a subclass of CloudBucket when a file is ...
764
410
/* * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Softwa...
1,272
460
<gh_stars>100-1000 /**************************************************************************** ** ** Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (<EMAIL>) ** ** This file is part of the QtXmlPatterns module of the Qt Toolkit. ** ** $Q...
1,333
438
/* * led.c * * Created on: 19/08/2015 * Author: <NAME> * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ #include "led.h" #include "board_config.h" ...
1,871
2,691
// AUTOGENERATED FILE - DO NOT MODIFY! // This file generated by Djinni from derivings.djinni package com.dropbox.djinni.test; import javax.annotation.CheckForNull; import javax.annotation.Nonnull; public class RecordWithNestedDerivings implements Comparable<RecordWithNestedDerivings>, android.os.Parcelable { ...
1,300
1,131
<filename>engine/orchestration/src/main/java/org/apache/cloudstack/engine/datacenter/entity/api/ZoneEntityImpl.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 copyr...
1,931
739
<reponame>gregomebije1/ZtM-Job-Board<filename>Submissions/adamhartman5.json { "id": "60f844ef-f975-4b31-90f4-371f9b3af23f", "name": "<NAME>", "img": "https://avatars3.githubusercontent.com/u/29264098?s=460&v=4", "email":"", "links": { "website": "", "linkedin": "https://www.linkedin.com/in/adamhartman...
237
450
/* * 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 ...
511
317
<reponame>dinisAbranches/nwchem /* $Id$ *====================================================================== * * DISCLAIMER * * This material was prepared as an account of work sponsored by an * agency of the United States Government. Neither the United States * Government nor the United States Department o...
4,549
432
[ { "slug": "cft", "name": "Cft", "description": "Cft watches as you make changes to your server, and then creates puppet manifests for the resulting actions. Simplifies creating puppet configuration.", "tags": [ "linux", "open-source", "config-mgmt", "provisioning", "orc...
157
892
<filename>advisories/unreviewed/2022/05/GHSA-vhrg-v3cv-p247/GHSA-vhrg-v3cv-p247.json<gh_stars>100-1000 { "schema_version": "1.2.0", "id": "GHSA-vhrg-v3cv-p247", "modified": "2022-05-13T01:02:16Z", "published": "2022-05-13T01:02:16Z", "aliases": [ "CVE-2017-4995" ], "details": "An issue was discovered ...
1,033
749
<reponame>galek/HybridRenderingEngine #ifndef FILEMANAGER_H #define FILEMANAGER_H /* AUTHOR : <NAME> (angelo12 AT vt DOT edu) PROJECT : Hybrid Rendering Engine LICENSE : This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT) DATE : 2018-11-19 PURPOSE : Abstrac...
246
325
''' From MuGo:https://github.com/yhyu13/MuGo ''' from collections import defaultdict import functools import itertools import operator import random import re import time import utils.gtp as gtp import utils.go as go KGS_COLUMNS = 'ABCDEFGHJKLMNOPQRST' SGF_COLUMNS = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVW...
2,868
852
import FWCore.ParameterSet.Config as cms from Configuration.Geometry.GeometryDD4hepExtended2021_cff import *
35
852
#ifndef FWCore_ServiceRegistry_PathsAndConsumesOfModulesBase_h #define FWCore_ServiceRegistry_PathsAndConsumesOfModulesBase_h /**\class edm::PathsAndConsumesOfModulesBase Description: Contains information about paths and end paths as well as the modules on them. Also contains information about all modules that mig...
1,205
521
<filename>third_party/virtualbox/src/VBox/Frontends/VirtualBox/src/settings/UISettingsSerializer.cpp /* $Id: UISettingsSerializer.cpp $ */ /** @file * VBox Qt GUI - UISettingsSerializer class implementation. */ /* * Copyright (C) 2006-2017 Oracle Corporation * * This file is part of VirtualBox Open Source Edition...
6,250
5,133
/* * 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.collection.adder; import org.mapstruct.CollectionMappingStrategy; import org.mapstruct.Mapper; import org.mapstruct.ap.test.collection.adder....
274
7,113
<gh_stars>1000+ /* * Copyright (C) 2010-2101 Alibaba Group Holding 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 * * Unl...
2,983
879
package org.zstack.sdk; public class DeleteEcsSecurityGroupRemoteResult { }
26
965
<reponame>Outflier/PyAV from http.server import BaseHTTPRequestHandler from socketserver import TCPServer import threading import time import av from .common import TestCase, fate_suite PORT = 8002 CONTENT = open(fate_suite("mpeg2/mpeg2_field_encoding.ts"), "rb").read() # Needs to be long enough for all host OSes t...
909
310
<reponame>dreeves/usesthis { "name": "MiniStation Thunderbolt", "description": "An external Thunderbolt hard drive.", "url": "https://www.buffalotech.com/products/ministation-thunderbolt" }
64
332
#include <stdio.h> #include <stdlib.h> #include <pthread.h> #include <errno.h> #include "work.h" #include "threadpool.h" /** true after threadpool initialization */ static _Bool once; /** request thread and optional callback execution thread */ static threadpool_t *tpool; int work_global_init(void) { static int n...
479
679
<filename>main/svtools/source/uno/framestatuslistener.cxx /************************************************************** * * 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 * regardin...
7,251
310
{ "name": "140", "description": "An audio plugin that emulates the 140 reverberator.", "url": "http://www.uaudio.com/store/reverbs/emt-140.html" }
56
778
<filename>level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_api.cpp /* * Copyright (C) 2020-2021 Intel Corporation * * SPDX-License-Identifier: MIT * */ #include "test.h" #include "level_zero/core/test/unit_tests/fixtures/device_fixture.h" #include "level_zero/core/test/unit_tests/mocks/mock_cmdlist.h...
1,484
335
<reponame>Safal08/Hacktoberfest-1<filename>T/Taste_noun.json { "word": "Taste", "definitions": [ "The sensation of flavour perceived in the mouth and throat on contact with a substance.", "The faculty of perceiving taste.", "A small portion of food or drink taken as a sample.", "...
245
19,824
<reponame>pazams/keystone { "main": "dist/keystone-ui-icons-icons-GridIcon.cjs.js", "module": "dist/keystone-ui-icons-icons-GridIcon.esm.js" }
65
348
{"nom":"Martrin","circ":"3ème circonscription","dpt":"Aveyron","inscrits":218,"abs":99,"votants":119,"blancs":8,"nuls":10,"exp":101,"res":[{"nuance":"LR","nom":"<NAME>","voix":56},{"nuance":"REM","nom":"<NAME>","voix":45}]}
88
5,926
<reponame>raspberrypieman/brython<filename>www/tests/compression/test_huffman.py import huffman text = "this is an example of a huffman tree" text = """Pleurez, doux alcyons, ô vous, oiseaux sacrés, Oiseaux chers à Thétis, doux alcyons, pleurez. Elle a vécu, Myrto, la jeune Tarentine. Un vaisseau la portait aux bor...
749
367
package com.github.katjahahn.parser.sections.debug; import com.github.katjahahn.parser.Characteristic; /** * Represents the type of debug information. * * @author <NAME> * */ public enum DebugType implements Characteristic { /** * Unknown value */ UNKNOWN(0, "Unknown value"), /** * C...
1,026
8,629
<filename>src/Interpreters/tests/gtest_comparison_graph.cpp<gh_stars>1000+ #include <Interpreters/ComparisonGraph.h> #include <Parsers/ASTIdentifier.h> #include <Parsers/ExpressionListParsers.h> #include <Parsers/parseQuery.h> #include <Parsers/queryToString.h> #include <Common/FieldVisitorToString.h> #include <gtest/...
2,497
312
<gh_stars>100-1000 #include "disarm.h" /* Disassemble the given instruction of the given kind and return a string representing the instruction. The result * string may additionally include comments and more detailed information (like exact branch destination addresses). * Warning: the returned string is a thread-loc...
632
348
{"nom":"Plessis-Saint-Jean","circ":"3ème circonscription","dpt":"Yonne","inscrits":184,"abs":84,"votants":100,"blancs":11,"nuls":0,"exp":89,"res":[{"nuance":"REM","nom":"<NAME>","voix":46},{"nuance":"FN","nom":"<NAME>","voix":43}]}
92
1,755
<filename>Filters/Parallel/vtkPConvertToMultiBlockDataSet.h<gh_stars>1000+ /*========================================================================= Program: Visualization Toolkit Module: vtkPConvertToMultiBlockDataSet.h Copyright (c) <NAME>, <NAME>, <NAME> All rights reserved. See Copyright.txt or h...
773
1,330
/* * 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")...
3,141
777
<filename>tools/variations/fieldtrial_util.py # 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. import json import sys import fieldtrial_to_struct def _hex(ch): hv = hex(ord(ch)).replace('0x', '') hv.z...
1,397
763
package org.batfish.datamodel.matchers; import java.util.List; import javax.annotation.Nonnull; import org.batfish.datamodel.Ip; import org.batfish.datamodel.IpAccessList; import org.batfish.datamodel.IpsecDynamicPeerConfig; import org.batfish.datamodel.IpsecPeerConfig; import org.batfish.datamodel.IpsecStaticPeerConf...
1,439
1,277
from sklearn.model_selection import train_test_split from sklearn import svm from sklearn.metrics import accuracy_score from numpy import loadtxt import numpy as np import pickle import utils # Performs SVM classification on features extracted from penultimate layer of CNN model. TRAIN_FEATURES_FILE = './train-feats...
660
1,194
package ca.uhn.fhir.jaxrs.server.test; import ca.uhn.fhir.interceptor.api.IInterceptorService; import org.hl7.fhir.dstu3.model.Patient; import ca.uhn.fhir.context.FhirContext; import ca.uhn.fhir.jaxrs.server.AbstractJaxRsResourceProvider; /** * A dummy patient provider exposing no methods */ public class TestJaxR...
232
435
<filename>europython-2017/videos/antoine-fourmy-network-visualization-and-automation.json { "description": "Network automation and orchestration is the latest phase in the evolution\nof IP and optical networks.\nOver the last few years, network engineers have created a variety of\nlibraries and softwares to help them...
454
335
{ "word": "Screenplay", "definitions": [ "The script of a film, including acting instructions and scene directions." ], "parts-of-speech": "Noun" }
65
2,236
// // TABComponentLayerClassicSerializationImpl.h // AnimatedDemo // // Created by tigerAndBull on 2020/5/24. // Copyright © 2020 tigerAndBull. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @protocol TABComponentLayerSerializationInterface; @interface TABComponentLayerClassic...
137
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...
9,065
1,228
#pragma once #include <nano/lib/errors.hpp> #include <thread> namespace nano { class tomlconfig; /** Configuration options for RocksDB */ class rocksdb_config final { public: rocksdb_config () : enable{ using_rocksdb_in_tests () } { } nano::error serialize_toml (nano::tomlconfig & toml_a) const; nano::error ...
228
2,237
<filename>placeholderview-compiler/src/main/java/com/mindorks/placeholderview/compiler/RClassBuilder.java package com.mindorks.placeholderview.compiler; import com.mindorks.placeholderview.compiler.core.NameStore; import com.squareup.javapoet.ClassName; import com.squareup.javapoet.FieldSpec; import com.squareup.javap...
3,122
372
""" Generic test utilities. Based on scipy._libs._testutils """ import os import sys from typing import List, Optional __all__ = ["PytestTester"] class PytestTester(object): """ Pytest test runner entry point. """ def __init__(self, module_name: str) -> None: self.module_name = module_name...
1,178
514
<gh_stars>100-1000 #include <stdint.h> #include <stdbool.h> #include "console.h" #include "microwatt_soc.h" #include "io.h" #define UART_BAUDS 115200 /* * Core UART functions to implement for a port */ bool uart_is_std; static uint64_t uart_base; static unsigned long uart_divisor(unsigned long uart_freq, unsign...
2,067
3,102
<reponame>medismailben/llvm-project<gh_stars>1000+ // RUN: %clang -target armv6t2-eabi -### %s 2>&1 \ // RUN: | FileCheck %s -check-prefix CHECK-NO-EXECUTE-ONLY // RUN: %clang -target armv6t2-eabi -### -mexecute-only %s 2>&1 \ // RUN: | FileCheck %s -check-prefix CHECK-EXECUTE-ONLY // RUN: %clang -target armv6t...
1,499
3,172
<reponame>lp2333/PARL # Copyright (c) 2018 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 # # ...
640
2,661
/* * Copyright 2017 Google Inc. * Copyright 2020 The Open GEE Contributors * * 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...
1,700
3,066
<gh_stars>1000+ /* * Licensed to Crate.io GmbH ("Crate") under one or more contributor * license agreements. See the NOTICE file distributed with this work for * additional information regarding copyright ownership. Crate licenses * this file to you under the Apache License, Version 2.0 (the "License"); * you ma...
5,834
14,668
<reponame>zealoussnow/chromium // Copyright 2021 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 "ui/base/accelerators/accelerator_map.h" #include <utility> #include "testing/gtest/include/gtest/gtest.h" #incl...
2,700