max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
1,894
# -*- coding: utf-8 -*- # VMware vSphere Python SDK # Copyright (c) 2008-2015 VMware, Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/lice...
2,199
787
<reponame>pietelite/SpongeAPI /* * This file is part of SpongeAPI, licensed under the MIT License (MIT). * * Copyright (c) SpongePowered <https://www.spongepowered.org> * Copyright (c) contributors * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated ...
842
5,941
<gh_stars>1000+ /* ArrayAdapter for bookmark lists Copyright 2013 Thincast Technologies GmbH, 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 http://mozilla.org/MPL/2.0/. *...
1,429
3,212
/* * 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 ...
833
453
/****************************************************************************** * Author: <NAME> <<EMAIL>> * * Copyright (C) 2014-2016 <NAME> <<EMAIL>> * * Licensed according to the included 'LICENSE' document * * This file is part of lua-lluv library. *******************************************************************...
843
3,102
<gh_stars>1000+ extern int template;
14
571
# Copyright 2015 Ufora 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 i...
389
3,710
#pragma once //------------------------------------------------------------------ // Iwa_TiledParticlesFx for Marnie // based on ParticlesFx by Digital Video //------------------------------------------------------------------ #ifndef IWA_TILEDPARTICLESFX_H #define IWA_TILEDPARTICLESFX_H #include "stdfx.h" #include "...
2,331
1,523
// 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...
350
349
package com.ray3k.skincomposer.dialog.scenecomposer.undoables; public class CheckBoxDeleteUndoable extends ActorDeleteUndoable { @Override public String getRedoString() { return "Redo \"Delete CheckBox\""; } @Override public String getUndoString() { return "Undo \"Delete CheckB...
132
777
// 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 ObjectPainter_h #define ObjectPainter_h #include "core/style/ComputedStyleConstants.h" #include "platform/RuntimeEnabledFeatures.h" #include "wtf...
2,891
349
<filename>app/src/main/java/com/fanfou/app/opensource/SendPage.java /******************************************************************************* * Copyright 2011, 2012, 2013 fanfou.com, Xiaoke, Zhang * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compli...
6,234
1,350
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.machinelearningservices.implementation; import com.azure.resourcemanager.machinelearningservices.fluent.models.UsageInner; impor...
578
386
<reponame>luzpaz/qvge /* This file is a part of QVGE - Qt Visual Graph Editor (c) 2016-2020 <NAME> (<EMAIL>) It can be used freely, maintaining the information above. */ #include "CTextLabelEdit.h" #include "CItem.h" #include <QTextCursor> #include <QTextDocument> #include <QKeyEvent> CTextLabelEdit::CTextLabelE...
887
1,921
#pragma once enum orb_type { ORB_ZOT, };
26
391
<filename>crowd_anki/history/anki_deck_archiver.py<gh_stars>100-1000 from dataclasses import dataclass from pathlib import Path from typing import Iterable, Callable from .anki_repo import AnkiRepo from .archiver import Archiver from ..anki.adapters.anki_deck import AnkiDeck from ..export.deck_exporter import DeckExpo...
291
2,151
<filename>native_client_sdk/src/libraries/nacl_io/include/sys/utsname.h /* 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. */ #ifndef LIBRARIES_NACL_IO_INCLUDE_SYS_UTSNAME_H_ #define LIBRARIES_NACL_IO_INCL...
286
648
{"resourceType":"DataElement","id":"ImagingStudy.series.numberOfInstances","meta":{"lastUpdated":"2015-10-24T07:41:03.495+11:00"},"url":"http://hl7.org/fhir/DataElement/ImagingStudy.series.numberOfInstances","status":"draft","experimental":true,"stringency":"fully-specified","element":[{"path":"ImagingStudy.series.numb...
217
1,835
package cc.cc1234.app.util; import cc.cc1234.app.fp.Try; import cc.cc1234.app.highlights.json.JsonHighlights; import cc.cc1234.app.highlights.properties.PropertiesHighlights; import cc.cc1234.app.highlights.xml.XmlHighlights; import org.fxmisc.richtext.model.StyleSpans; import java.util.Collection; import java.util.C...
497
16,483
/* * Copyright 1999-2019 Seata.io Group. * * 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 l...
1,161
531
/** * Copyright (c) 2011-2021, JFXtras * 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, this list of condi...
1,050
340
<filename>redant-core/src/main/java/com/redant/core/router/context/RouterContext.java package com.redant.core.router.context; import com.redant.core.render.RenderType; import com.redant.core.router.RouteResult; import io.netty.handler.codec.http.HttpMethod; /** * 路由上下文 * @author houyi.wh * @date 2017-10-20 */ pub...
243
2,292
from typing import Optional import eagerpy as ep import numpy as np from ..devutils import flatten from ..devutils import atleast_kd from ..types import Bounds from .gradient_descent_base import L1BaseGradientDescent from .gradient_descent_base import normalize_lp_norms class SparseL1DescentAttack(L1BaseGradientDe...
1,534
1,346
<filename>Trakttv.bundle/Contents/Libraries/Shared/CodernityDB/indexcreator.py #!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2011-2013 Codernity (http://codernity.com) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # Y...
14,391
306
<filename>vendor/vendor.json { "comment": "", "ignore": "test", "package": [ { "checksumSHA1": "OzddgAh0uv3ukKhWW7QFUEFbxow=", "path": "github.com/golang/snappy", "revision": "723cc1e459b8eea2dea4583200fd60757d40097a", "revisionTime": "2015-07-30T03:18:44Z" }, { "checksumSHA1": "nfsPW9mmBQaK2gKb...
2,457
764
{ "symbol": "KBFcoin", "address": "0x974e9d23313deC030F7604332f0dcfFfa33F4DF5", "overview":{ "en": "The participating nodes in KBF chain can be hotel operators, hotel suppliers, residents, various organizations in the alliance chain to form an interest related alliance to jointly maintain the healthy oper...
776
2,542
<reponame>vishnuk007/service-fabric // ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // --------------------------------------------------------...
627
5,169
<gh_stars>1000+ { "name": "YHUtiliitiesSDK", "version": "1.0.3", "summary": "公司基础SDK之一", "description": "通用帮助类SDK,提供各种便捷的Helper。例如:YHDataHelper、YHDeviceHelper、YHGestureHelper、YHImageHelper、YHViewHelper等", "homepage": "https://github.com/XmYlzYhkj/YHUtiliitiesSDK", "license": "MIT", "authors": { "XmYhk...
320
488
<reponame>maurizioabba/rose // t0519.cc // raise xfailure, but a preceding error reduces severity void foo() { x; // preceding error __cause_xfailure(); }
60
2,494
<reponame>ktrzeciaknubisa/jxcore-binary-packaging /* 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 http://mozilla.org/MPL/2.0/. */ /* * pkix_pl_ldapresponse.c * */ #include <fcntl.h> #include ...
11,689
3,777
<gh_stars>1000+ from jadi import component from aj.plugins.augeas.api import AugeasEndpoint, Augeas @component(AugeasEndpoint) class ResolvConfEndpoint(AugeasEndpoint): id = 'resolv' def get_augeas(self): return Augeas(modules=[{ 'name': 'Resolv', 'lens': 'Resolv.lns', ...
441
1,380
#ifndef SI_TX_H_ #define SI_TX_H_ /* * sophia database * sphia.org * * Copyright (c) <NAME> * BSD License */ typedef struct sitx sitx; struct sitx { int ro; sslist nodelist; si *index; }; void si_begin(sitx*, si*); void si_commit(sitx*); static inline void si_txtrack(sitx *x, sinode *n) { if (ss_listempty...
173
435
<filename>pycon-us-2019/videos/thea-flowers-break-the-cycle-three-excellent-python-tools-to-automate-repetitive-tasks.json { "copyright_text": null, "description": "Find yourself doing the same thing over and over again? Does it take\nmore than one command to run your tests? build your docs? publish your\nproject? ...
619
818
/* * Copyright 2020 Red Hat, Inc. and/or 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.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
841
454
<gh_stars>100-1000 package io.vertx.up.commune; import io.vertx.up.commune.config.Database; import io.vertx.up.commune.config.Integration; import io.vertx.up.commune.rule.RuleUnique; import io.vertx.up.eon.em.ChannelType; /* * Underway communication channel between * 1) API - Service * 2) Task - Service * * Inst...
488
373
<reponame>heatd/edk2-platforms /** @file Copyright (c) 2018, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #ifndef _PCH_H_HSIO_DX_H_ #define _PCH_H_HSIO_DX_H_ #define PCH_H_HSIO_VER_DX 0x34 extern UINT8 PchHChipsetInitTable_Dx[2180]; extern PCH_...
200
575
// 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 "chrome/browser/ui/android/autofill/autofill_popup_view_android.h" #include <memory> #include <utility> #include "base/android/jni_android....
2,808
5,169
{ "name": "ReSwiftConsumer", "version": "0.1.0", "summary": "Selective Property Consumer using ReSwift.", "description": "A Consumer for state changes. Using ReSwiftConsumer you can selectively observe property changes of ReSwift global state.", "homepage": "https://github.com/brownsoo/ReSwift-Consumer", "l...
295
389
<gh_stars>100-1000 /* * Copyright 2014 <NAME>, Inc. */ package gw.internal.gosu.compiler; import gw.util.GosuTestUtil; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.HashSet; public class NewExpressionTest extends ByteCodeTestBase { //## todo: Include test for no...
1,734
603
<reponame>ThreeDeeJay/FlexASIO #pragma once #include <windows.h> #include <string> namespace flexasio { std::string GetWindowsErrorString(DWORD error); }
62
1,127
// Copyright (C) 2018-2022 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include <gtest/gtest.h> #include <string> #include <memory> #include <ngraph/function.hpp> #include <ngraph/opsets/opset4.hpp> #include <ngraph/pass/manager.hpp> #include <transformations/common_optimizations/mish_fusion.hpp> #in...
1,086
2,161
import io import pickle import pytest from sklearn.linear_model import LinearRegression from tests.utils import get_regression_model_trainer, tmp_dir def pytest_addoption(parser): parser.addoption( "--fast", action="store_const", default=False, const=True, help="Run e2e tests fast" ) @pyte...
381
388
<reponame>ci-fuzz/cppcms #ifndef BOOSTER_SMART_PTR_WEAK_PTR_HPP_INCLUDED #define BOOSTER_SMART_PTR_WEAK_PTR_HPP_INCLUDED // // weak_ptr.hpp // // Copyright (c) 2001, 2002, 2003 <NAME> // // Distributed under the Boost Software License, Version 1.0. (See // accompanying file LICENSE_1_0.txt or copy at // http://www.b...
1,598
572
<reponame>BrunoPontesLira/live-de-python """Exemplo de um texto Simple""" from PIL import Image, ImageDraw im = Image.new( # Cria uma nova imagem 'RGB', (200, 200), 'green' ) draw = ImageDraw.Draw(im) draw.text((10, 10), 'Live de Python!') im.show('imagem_com_texto.jpg')
116
521
<filename>third_party/virtualbox/src/VBox/Additions/x11/x11include/xorg-server-1.1.0/OidStrs.h<gh_stars>100-1000 /* $Xorg: OidStrs.h,v 1.4 2001/03/14 18:45:40 pookie Exp $ */ /* (c) Copyright 1996 Hewlett-Packard Company (c) Copyright 1996 International Business Machines Corp. (c) Copyright 1996 Sun Microsystems, Inc. ...
2,333
12,278
<reponame>randolphwong/mcsema // Copyright <NAME> 2002. // 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) #ifndef OBJECT_FWD_DWA2002724_HPP # define OBJECT_FWD_DWA2002724_HPP # include <boost/python/detail/prefix....
181
372
<gh_stars>100-1000 #define APP_ERROR_XML_PARSE_FAILED 0x20000000 #define APP_ERROR_XML_DUPLICATED_ELEMENT 0x20000001 #define APP_ERROR_XML_MISSING_ELEMENT 0x20000002 #define APP_ERROR_XML_MISSING_ATTRIBUTE 0x20000002 #define APP_ERROR_XPATH_EVAL_FAILED 0x20000003 #define APP_ERROR_XML_REPORT_NOT_FOU...
212
511
/****************************************************************** * * Copyright 2016 Samsung Electronics 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 * ...
505
427
<gh_stars>100-1000 unsigned char asmFunc(unsigned char a, unsigned char b) { unsigned int la = a; unsigned int lb = b; unsigned int bigres; unsigned char res; __asm__ ("0:\n1:\n" : [bigres] "=la"(bigres) : [la] "0"(la), [lb] "c"(lb) : "edx", "cc"); res = bigres; return res; }
144
391
""" @author: <NAME> @contact: <EMAIL> """ import numpy as np from PIL import Image from torch.utils.data import Dataset from .utils.data import transforms as T from collections import OrderedDict from glob import glob import os.path as osp import json import torch class CommonDataset ( Dataset ): def __init__(sel...
5,501
587
<reponame>kiranmai-sfdev/aura<gh_stars>100-1000 /* * Copyright (C) 2013 salesforce.com, inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/...
923
2,177
package org.nutz.castor.castor; import org.nutz.castor.Castor; import org.nutz.castor.Castors; import org.nutz.castor.FailToCastObjectException; import org.nutz.lang.Mirror; import org.nutz.lang.Strings; import java.lang.reflect.Field; import java.lang.reflect.Method; @SuppressWarnings({"rawtypes"}) publ...
610
364
package com.linkedin.dagli.generator; import com.linkedin.dagli.producer.ProducerType; import com.linkedin.dagli.producer.RootProducer; /** * Generators do not have inputs but instead create new values which can then be fed as inputs to transformers. * * @param <R> The type of thing generated */ public interface...
475
1,085
/* * Copyright (C) 2017-2019 Dremio Corporation * * 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 l...
512
319
package eu.f3rog.blade.compiler.util; import com.squareup.javapoet.ClassName; import java.util.Comparator; /** * Class {@link ClassNameComparator} * * @author FrantisekGazo * @version 2015-12-06 */ public class ClassNameComparator implements Comparator<ClassName> { @Override public int compare(ClassNam...
256
6,285
<reponame>tanmoyopenroot/tslint<gh_stars>1000+ { "rules": { "adjacent-overload-signatures": [true, { "ignore-accessors": true }] } }
70
5,169
{ "name": "WPCommand", "version": "0.2.1", "summary": "基础库工具类、队列Alert,TextView、TextField、等", "description": "TODO: Add long description of the pod here.", "homepage": "https://github.com/MyNameWp/WPCommand", "license": { "type": "MIT", "file": "LICENSE" }, "authors": { "文平": "<EMAIL>" }, ...
404
348
<reponame>chamberone/Leaflet.PixiOverlay {"nom":"Villeneuve-les-Bordes","circ":"4ème circonscription","dpt":"Seine-et-Marne","inscrits":403,"abs":224,"votants":179,"blancs":8,"nuls":7,"exp":164,"res":[{"nuance":"LR","nom":"<NAME>","voix":108},{"nuance":"REM","nom":"M. <NAME>","voix":56}]}
119
2,151
// 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 ASH_WM_OVERVIEW_OVERVIEW_WINDOW_ANIMATION_OBSERVER_H_ #define ASH_WM_OVERVIEW_OVERVIEW_WINDOW_ANIMATION_OBSERVER_H_ #include <map> #include "bas...
534
851
<reponame>athiffau/alcinoe package com.alcinoe.appsflyer; import java.util.HashMap; import android.app.Application; import android.app.Activity; import android.content.Context; import com.appsflyer.AppsFlyerLib; import com.appsflyer.AppsFlyerConversionListener; public class ALAppsFlyer { /* https://stackoverflow...
562
2,959
from pathlib import Path from unittest import TestCase from unittest.mock import patch from parameterized import parameterized from samcli.commands._utils.template import get_template_data from samcli.lib.iac.cdk.utils import is_cdk_project class TestIsCDKProject(TestCase): @parameterized.expand( [ ...
709
555
<reponame>PopovVadim/ObjectivePGP // // Copyright (C) <NAME> <<EMAIL>> // This software is provided 'as-is', without any express or implied warranty. // // THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY // INTERNATIONAL COPYRIGHT LAW. USAGE IS BOUND TO THE LICENSE AGREEMENT. // This notice ma...
254
343
import logging from django.core.files.base import ContentFile from django.db import models from django.utils.encoding import force_text from django.utils.translation import ugettext_lazy as _, ugettext logger = logging.getLogger(name=__name__) class DatabaseFileModelMixin(models.Model): filename = models.CharFi...
953
2,617
/* Bullet Continuous Collision Detection and Physics Library Copyright (c) 2003-2006 <NAME> http://continuousphysics.com/Bullet/ This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is ...
436
521
#include <pthread.h> #include <stdint.h> #include <stdlib.h> extern "C" { void *cppnew() { return new uint32_t[10485760]; } void *in_thread(void *ignore) { return malloc(1024 * 1024 * 17); } void allocate_in_thread() { pthread_t thread_id; void *result; pthread_create(&thread_id, NULL, in_thread, NULL); pthr...
142
1,240
/* * Copyright (c) 2000-2007 Apple Inc. All rights reserved. * * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ * * This file contains Original Code and/or Modifications of Original Code * as defined in and that are subject to the Apple Public Source License * Version 2.0 (the 'License'). You may not use this file ex...
49,357
1,296
<filename>bindings/ios/MEGAContactRequestList.h /** * @file MEGAContactRequestList.h * @brief List of MEGAContactRequest objects * * (c) 2013-2015 by Mega Limited, Auckland, New Zealand * * This file is part of the MEGA SDK - Client Access Engine. * * Applications using the MEGA API must present a valid applica...
561
335
{ "word": "Gage", "definitions": [ "Offer (an object or one's life) as a guarantee of good faith." ], "parts-of-speech": "Verb" }
69
5,079
#make sure all tests in this file are dispatched to the same subprocess def setup(): pass def test_timeout(): "this test *should* fail when process-timeout=1" from time import sleep sleep(2) # check timeout will not prevent remaining tests dispatched to the same subprocess to continue to run def test_...
97
5,447
"""Prepare Cityscapes dataset. ======================== `Cityscapes <http://sceneparsing.csail.mit.edu/>`_ focuses on semantic understanding of urban street scenes. This tutorial help you to download Cityscapes and set it up for later experiments. .. image:: https://www.cityscapes-dataset.com/wordpress/wp-content/up...
690
310
<filename>gear/hardware/p/pine.3.json { "name": "Pine", "description": "A small messenger bag.", "url": "https://www.alchemygoods.com/collections/messenger-style-bags/products/pine-messenger-bag?variant=879963189" }
83
1,694
<filename>header6.6.1/FavTVViewController.h // // Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>. // #import "ShakeTvViewController.h" @class FavoritesItem; @interface FavTVViewController : ShakeT...
226
410
// Copyright(c) 2017 POLYGONTEK // // 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 i...
1,749
473
<reponame>pingjuiliao/cb-multios<gh_stars>100-1000 /* Author: <NAME> <<EMAIL>> Copyright (c) 2015 Cromulence LLC 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 wi...
5,568
812
package com.vpaliy.domain.model; import java.util.List; public class TrackSet { private MelophileTheme theme; private List<Track> tracks; public TrackSet() { } public TrackSet(MelophileTheme theme, List<Track> tracks) { this.theme = theme; this.tracks = tracks; } public MelophileTheme getThem...
241
20,453
from .common import Benchmark, get_squares_, get_indexes_, get_indexes_rand_ from os.path import join as pjoin import shutil from numpy import memmap, float32, array import numpy as np from tempfile import mkdtemp class Indexing(Benchmark): params = [["indexes_", "indexes_rand_"], ['I', ':,I', 'np....
1,339
678
<reponame>bzxy/cydia /** * This header is generated by class-dump-z 0.2b. * * Source: /System/Library/PrivateFrameworks/AppStoreUI.framework/AppStoreUI */ #import <AppStoreUI/XXUnknownSuperclass.h> #import <AppStoreUI/ISStoreURLOperationDelegate.h> @class NSString, ASConcernItem; @interface ASPostConcernOperatio...
528
2,232
/* Copyright (c) 2016 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: <NAME> */ #include <algorithm> #include "util/interrupt.h" #include "util/small_object_allocator.h" #include "library/trace.h" #include "library/util.h" #include "library/consta...
24,124
595
/* * Copyright (c) 2015, Xilinx Inc. and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ /* * @file linux/shmem.c * @brief Linux libmetal shared memory handling. */ #include <metal/shmem.h> #include <metal/sys.h> #include <metal/utilities.h> #include "shmem.h" extern int metal_...
312
372
<filename>clients/google-api-services-dataflow/v1b3/1.30.1/com/google/api/services/dataflow/model/IntegerGauge.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.or...
881
343
/* Copyright 2019-2022 <NAME> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.txt or copy at http://www.boost.org/LICENSE_1_0.txt) */ #include <lyra/lyra.hpp> #include "mini_test.hpp" #include <string> int main() { using namespace lyra; bfg::mini_test::scope test; { boo...
442
831
/* * Copyright (C) 2016 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
551
378
# -*- coding: utf-8 -*- from . import AuditTimeMixin from .. import db class DnsSerial(db.Model, AuditTimeMixin): __tablename__ = 'tb_dns_zone_serial' id = db.Column(db.Integer, primary_key=True) zone_name = db.Column(db.String(50), unique=True, nullable=False) zone_group = db.Column(db.String(64), ...
181
19,628
<gh_stars>1000+ package com.didichuxing.doraemonkit.config; /** * ================================================ * 作 者:jint(金台) * 版 本:1.0 * 创建日期:2020/4/26-14:35 * 描 述:Dokit 功能开关配置 * 修订历史: * ================================================ */ public class DokitSwitchConfig { private boolean align...
215
640
// Link.h: interface for the CLink class. // ////////////////////////////////////////////////////////////////////// #if !defined(AFX_LINK_H__C2CCD87E_3E0B_44EC_8DDD_92F8E52C37A7__INCLUDED_) #define AFX_LINK_H__C2CCD87E_3E0B_44EC_8DDD_92F8E52C37A7__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER...
415
1,056
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
1,698
1,072
<reponame>huangxiaoyu/Elephant<filename>app/src/main/java/com/jun/elephant/common/FragmentAdapter.java /* * Copyright 2016 Freelander * <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 Licens...
620
16,989
<reponame>jobechoi/bazel // Copyright 2020 The Bazel 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 // /...
699
2,542
// ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ #pragma once namespace TxnRep...
514
347
<reponame>jihwahn1018/ovirt-engine package org.ovirt.engine.core.bll.network.host; import java.util.Collections; import javax.inject.Inject; import org.ovirt.engine.core.bll.NonTransactiveCommandAttribute; import org.ovirt.engine.core.bll.context.CommandContext; import org.ovirt.engine.core.common.AuditLogType; impo...
2,043
411
# License: BSD 3 clause import unittest from numpy.testing import assert_almost_equal import numpy as np from tick.prox import ProxTV from tick.prox.tests.prox import TestProx class ProxTVTest(object): def test_ProxTV(self): """...Test of ProxTV """ coeffs = self.coeffs.copy().astype(se...
1,147
522
<filename>tensorflow/compiler/tests/depthwise_conv_op_test.py # Copyright 2015 The TensorFlow 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....
7,181
1,755
<gh_stars>1000+ #ifndef kiss_fft_exports_h #define kiss_fft_exports_h /**************************************************************** * Export parameters *****************************************************************/ /* * KISSFFT_DLL_EXPORT : * Enable exporting of functions when building a Windows DLL * KISSF...
274
7,746
/*++ Copyright (c) 2006 Microsoft Corporation Module Name: nat_set.h Abstract: Set of natural number with fast reset method. Author: <NAME> (leonardo) 2007-03-27. Revision History: --*/ #pragma once #include <climits> #include "util/vector.h" class nat_set { unsigned m_curr_timestamp;...
762
3,680
// // Copyright 2018 Pixar // // Licensed under the Apache License, Version 2.0 (the "Apache License") // with the following modification; you may not use this file except in // compliance with the Apache License and the following modification to it: // Section 6. Trademarks. is deleted and replaced with: // // 6. Trad...
667
700
# -*- coding: utf-8 -*- # The MIT License (MIT) - Copyright (c) 2016-2021 <NAME>. """ This package contains the handler functions for various EDA tools. """ from __future__ import ( # isort:skip absolute_import, division, print_function, unicode_literals, ) import os import os.path import sys from...
966
2,151
<reponame>lianhuaren/webrtc /* * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the ...
1,700
30,023
"""Constants for the Coolmaster integration.""" DATA_INFO = "info" DATA_COORDINATOR = "coordinator" DOMAIN = "coolmaster" DEFAULT_PORT = 10102 CONF_SUPPORTED_MODES = "supported_modes"
68
651
package com.ncipher.nfast.marshall; public abstract class M_CertType_CertBody implements Marshallable { public M_CertType_CertBody() { throw new RuntimeException("fake nCipher"); } }
61
1,338
<filename>src/add-ons/kernel/file_systems/shared/DeviceOpener.cpp /* * Copyright 2008-2010, <NAME>, <EMAIL>. * All rights reserved. Distributed under the terms of the MIT License. */ #include "file_systems/DeviceOpener.h" #ifndef FS_SHELL # include <errno.h> # include <Drivers.h> # include <fs_cache.h> #endif D...
962