max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
2,023
<reponame>tdiprima/code class Files(tuple): def __new__(cls, *filePaths): files = [] try: for filePath in filePaths: files.append(open(filePath)) files[-1].__enter__() except: for file in files: file.close() raise else: return super(Files, cls).__new__(c...
206
432
<reponame>lambdaxymox/DragonFlyBSD<filename>contrib/binutils-2.27/binutils/objdump.h /* objdump.h Copyright (C) 2011-2016 Free Software Foundation, Inc. This file is part of GNU Binutils. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public Lice...
551
1,202
<reponame>gpaulsen/tvision #ifdef __BORLANDC__ #include <iomanip.h> #else #ifndef TVISION_COMPAT_IOMANIP_H #define TVISION_COMPAT_IOMANIP_H #include <iomanip> using std::resetiosflags; using std::setiosflags; using std::setbase; using std::setfill; using std::setprecision; using std::setw; #endif // TVISION_COMPAT_...
154
407
<reponame>iuskye/SREWorks<gh_stars>100-1000 package com.alibaba.sreworks.health.api.alert; import com.alibaba.fastjson.JSONObject; import com.alibaba.sreworks.health.api.BasicApi; import com.alibaba.sreworks.health.domain.req.alert.AlertInstanceCreateReq; import java.util.List; public interface AlertInstanceService ...
889
584
/* * Copyright 2012-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...
643
1,210
<filename>tools/SDKTool/src/common/tool_timer.py # -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making GameAISDK available. This source code file is licensed under the GNU General Public License Version 3. For full details, please refer to the file "LICENSE.txt" which is provide...
667
14,668
// 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 "content/browser/attribution_reporting/rate_limit_table.h" #include <memory> #include "base/bind.h" #include "base/files/file_util.h" #include ...
10,219
388
<filename>aws/metrics/accumulator.h /* * Copyright 2019 Amazon.com, Inc. 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,637
674
<reponame>laurentd75/CLK // // Tape.cpp // Clock Signal // // Created by <NAME> on 29/08/2016. // Copyright 2016 <NAME>. All rights reserved. // #include "Tape.hpp" #include <deque> #include "../../../Numeric/CRC.hpp" #include "../../../Storage/Tape/Parsers/Acorn.hpp" using namespace Analyser::Static::Acorn; s...
1,781
1,444
<reponame>GabrielSturtevant/mage<filename>Mage.Sets/src/mage/cards/s/SeismicAssault.java package mage.cards.s; import mage.abilities.Ability; import mage.abilities.common.SimpleActivatedAbility; import mage.abilities.costs.common.DiscardTargetCost; import mage.abilities.effects.common.DamageTargetEffect; import mage.c...
501
307
// The MIT License (MIT) // Copyright © 2015 AppsLandia. 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 ...
1,925
412
extern int getone(); #include <assert.h> int main(int argc, char** argv) { assert(getone()==1); } int altmain() { assert(getone()==0); }
63
861
/******************************************************************************* * Copyright 2014 Univocity Software Pty 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://...
900
415
/* A Simple Fluid Solver * by <NAME>, Alias|wavefront, 2001 * * See article: * <NAME>, * "A Simple Fluid Solver Based on the FFT" * Journal of Graphics Tools, 6(2), 2001 * * The article abstract and this code are online at: * http://www.acm.org/jgt/papers/Stam01 * * This code uses MIT's F...
1,764
397
import os import requests import shutil import time import tarfile import tempfile from studio.artifacts import artifacts_tracker from studio.util import util def _find_ignore_list(local_path: str): if os.path.isdir(local_path): base_dir = local_path else: base_dir, last_name = os.path.split(l...
3,505
675
<gh_stars>100-1000 #include "irender_queue.h" namespace Echo { void IRenderQueue::bindMethods() { CLASS_BIND_METHOD(IRenderQueue, getName); CLASS_BIND_METHOD(IRenderQueue, setName); CLASS_BIND_METHOD(IRenderQueue, isEnable); CLASS_BIND_METHOD(IRenderQueue, setEnable); CLASS_REGISTER_PROPERTY(IRenderQueue,...
175
777
<reponame>google-ar/chromium<filename>third_party/WebKit/Source/core/layout/LayoutBlock.h /* * Copyright (C) 1999 <NAME> (<EMAIL>) * (C) 1999 <NAME> (<EMAIL>) * (C) 2007 <NAME> (<EMAIL>) * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. * All rights reserve...
7,147
372
<reponame>flo-l/systemds<filename>src/main/java/org/apache/sysds/runtime/controlprogram/BasicProgramBlock.java<gh_stars>100-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 * re...
1,421
14,668
<reponame>zealoussnow/chromium<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. #ifndef IOS_CHROME_BROWSER_UI_OVERLAYS_INFOBAR_MODAL_PASSWORDS_PASSWORD_INFOBAR_MODAL_OVERLAY_COORDINATOR_H_...
315
17,242
// Copyright 2019 The MediaPipe 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 or a...
91,785
365
# -*- Mode: Python -*- # # Author: <NAME> <<EMAIL>> # Copyright 1997 by <NAME> # All Rights Reserved. # RCS_ID = '$Id: default_handler.py,v 1.8 2002/08/01 18:15:45 akuchling Exp $' # standard python modules import mimetypes import re import stat import string...
3,044
387
<filename>src/DlibDotNet.Native/dlib/image_transforms/colormaps/heatmap.cpp #include "heatmap.h"
38
2,048
<filename>app/src/main/java/com/ls/drupalcon/model/requests/SpeakersRequest.java<gh_stars>1000+ package com.ls.drupalcon.model.requests; import com.ls.drupal.DrupalClient; import com.ls.drupalcon.model.data.Speaker; import com.ls.http.base.BaseRequest; import java.util.Map; public class SpeakersRequest extends BaseS...
290
2,151
<reponame>google-ar/chromium<gh_stars>1000+ // Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef EXTENSIONS_RENDERER_STATIC_V8_EXTERNAL_ONE_BYTE_STRING_RESOURCE_H_ #define EXTENSIONS_RENDERER_STATIC_...
386
1,781
<filename>UltimateAndroidNormal/DemoOfUI/src/com/marshalchen/common/demoofui/sampleModules/AndroidViewHoverActivity.java package com.marshalchen.common.demoofui.sampleModules; import android.content.Context; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import android.support.v7.app....
2,807
422
{ "name": "oas-kit-common", "version": "1.0.8", "lockfileVersion": 1, "requires": true, "dependencies": { "fast-safe-stringify": { "version": "2.0.7", "resolved": "https://registry.npmjs.org/fast-safe-stringify/-/fast-safe-stringify-2.0.7.tgz", "integrity": "<KEY> } } }
148
778
# # 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...
2,113
8,844
# CHECK-TREE: { passthru <- rec passthru = \x -> x; decorated <- rec decorated = \x -> x; decorated = passthru(decorated); #record { passthru: passthru, decorated: decorated }} def passthru(x): return x @passthru def decorated(x): return x
90
2,659
/* * Copyright 2021 4Paradigm * * 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 w...
1,127
1,858
<reponame>Mu-L/flinkStreamSQL<gh_stars>1000+ package com.dtstack.flink.sql.sink.kafka; import com.dtstack.flink.sql.sink.kafka.table.KafkaSinkTableInfo; import com.dtstack.flink.sql.table.AbstractTargetTableInfo; import org.apache.flink.api.common.typeinfo.TypeInformation; import org.apache.flink.streaming.api.datastr...
1,164
2,984
<filename>core/src/test/java/org/apache/calcite/test/AbstractMaterializedViewTest.java /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licen...
3,611
964
# Copyright 2021 Google LLC # Copyright 2021 <NAME> # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
393
644
<reponame>afrigon/psd-tools """ Various utility functions for low-level binary processing. """ from __future__ import unicode_literals, print_function, division import logging import sys import struct import array try: unichr = unichr except NameError: unichr = chr logger = logging.getLogger(__name__) def p...
3,150
575
<reponame>iridium-browser/iridium-browser<gh_stars>100-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 "components/exo/ui_lock_controller.h" #include "ash/constants/ash_features.h" #inclu...
2,805
3,200
/** * Copyright 2020-2021 Huawei Technologies Co., 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 applicabl...
922
342
from django.test.testcases import TestCase from django.urls import reverse from parsifal.apps.authentication.tests.factories import UserFactory from parsifal.utils.test import login_redirect_url class TestUpdateProfileView(TestCase): @classmethod def setUpTestData(cls): cls.user = UserFactory(first_n...
1,015
1,056
<filename>java/j2ee.persistence/src/org/netbeans/modules/j2ee/persistence/wizard/unit/PersistenceUnitWizardPanel.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 cop...
1,271
898
<reponame>Diffblue-benchmarks/heroic<gh_stars>100-1000 /* * Copyright (c) 2015 Spotify AB. * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF...
1,162
1,987
<reponame>raccoongang/python-social-auth from social_core.backends.arcgis import ArcGISOAuth2
35
589
<reponame>ClaudioWaldvogel/inspectIT<gh_stars>100-1000 package rocks.inspectit.ui.rcp.editor.root; import org.eclipse.core.runtime.Assert; import org.eclipse.core.runtime.ListenerList; import org.eclipse.core.runtime.SafeRunner; import org.eclipse.jface.util.SafeRunnable; import org.eclipse.jface.viewers.IPostSelectio...
1,286
16,097
import time import tqdm class ShowProgress(): """ This is a simple wrapper around tqdm that includes a starting delay before printing. """ def __init__(self, iterable, total, desc, silent, start_delay): self.iter = iter(iterable) self.start_time = time.time() self.pbar = None ...
552
488
<filename>Plugins/BulletUnity/Native/iOS/btContactSolverInfo_wrap.h #include "main.h" extern "C" { EXPORT btContactSolverInfoData* btContactSolverInfoData_new(); EXPORT btScalar btContactSolverInfoData_getDamping(btContactSolverInfoData* obj); EXPORT btScalar btContactSolverInfoData_getErp(btContactSolverInfoData* ...
1,472
7,892
<reponame>joshrose/audacity<filename>lib-src/lv2/lv2/plugins/eg-scope.lv2/examploscope.c /* Copyright 2016 <NAME> <<EMAIL>> Copyright 2013 <NAME> <<EMAIL>> Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright...
5,113
414
// Licensed under Apache License version 2.0 package javax.jmdns.impl.tasks; import java.io.IOException; import java.util.Timer; import java.util.TimerTask; import javax.jmdns.impl.DNSIncoming; import javax.jmdns.impl.DNSOutgoing; import javax.jmdns.impl.DNSQuestion; import javax.jmdns.impl.DNSRecord; import javax.jm...
2,942
335
<reponame>Safal08/Hacktoberfest-1 { "word": "Literature", "definitions": [ "Written works, especially those considered of superior or lasting artistic merit.", "Books and writings published on a particular subject.", "Leaflets and other printed matter used to advertise products or give a...
124
416
<reponame>Zi0P4tch0/sdks<filename>iPhoneOS14.2.sdk/System/Library/Frameworks/GLKit.framework/Headers/GLKEffectPropertyTexture.h // // GLKEffectPropertyTexture.h // GLKEffects // // Copyright (c) 2011-2012 Apple Inc. All rights reserved. // #import <GLKit/GLKitBase.h> #if TARGET_OS_IPHONE #import <OpenGLES/ES2/gl.h> ...
786
6,958
<reponame>foreverlms/MNN<filename>source/backend/coreml/execution/CoreMLInterp.cpp // // CoreMLInterp.cpp // MNN // // Created by MNN on 2021/05/27. // Copyright © 2018, Alibaba Group Holding Limited // #include "CoreMLInterp.hpp" namespace MNN { CoreMLInterp::CoreMLInterp(MNN::Backend *b, const MNN::Op *op, con...
1,711
2,921
{ "name": "<NAME>", "website": "https://arpachain.io/", "description": "Arpa envisions to be a privacy-preserving computation network by leveraging Multi-Party Computation (MPC).", "explorer": "https://etherscan.io/token/0xBA50933C268F567BDC86E1aC131BE072C6B0b71a", "research": "https://research.bina...
217
648
{"resourceType":"DataElement","id":"DeviceRequest.basedOn","meta":{"lastUpdated":"2017-04-19T07:44:43.294+10:00"},"url":"http://hl7.org/fhir/DataElement/DeviceRequest.basedOn","status":"draft","experimental":true,"stringency":"fully-specified","element":[{"id":"DeviceRequest.basedOn","path":"DeviceRequest.basedOn","sho...
212
1,781
package chapter2.section3; import edu.princeton.cs.algs4.StdOut; import edu.princeton.cs.algs4.StdRandom; import util.ArrayUtil; import util.ArrayGenerator; import java.util.Map; /** * Created by <NAME> on 04/03/17. */ // Thanks to MrScislowski (https://github.com/MrScislowski) for fixing the rightSubArraySize com...
1,379
348
<gh_stars>100-1000 {"nom":"Saint-Jurs","circ":"1ère circonscription","dpt":"Alpes-de-Haute-Provence","inscrits":154,"abs":59,"votants":95,"blancs":16,"nuls":1,"exp":78,"res":[{"nuance":"REM","nom":"<NAME>","voix":64},{"nuance":"FN","nom":"<NAME>","voix":14}]}
106
1,443
<reponame>cssence/mit-license<filename>users/jryans.json { "copyright": "<NAME>", "url": "https://github.com/jryans", "email": "<EMAIL>", "theme": "double-windsor" }
74
28,056
<gh_stars>1000+ package com.alibaba.json.bvt.serializer; import java.lang.reflect.Field; import org.junit.Assert; import com.alibaba.fastjson.serializer.IntegerCodec; import com.alibaba.fastjson.serializer.SerializeConfig; import com.alibaba.fastjson.util.IdentityHashMap; import junit.framework.TestCase; ...
772
4,238
<filename>grr/client/grr_response_client/unprivileged/filesystem/tsk_test.py #!/usr/bin/env python from absl.testing import absltest from grr_response_client.unprivileged import test_lib from grr_response_client.unprivileged.filesystem import ntfs_image_test_lib from grr_response_client.unprivileged.proto import files...
549
575
// 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. #ifndef CHROME_BROWSER_OPTIMIZATION_GUIDE_BLINK_BLINK_OPTIMIZATION_GUIDE_INQUIRER_H_ #define CHROME_BROWSER_OPTIMIZATION_GUIDE_BLINK_BLINK_OPTIMIZATION_GU...
961
1,861
<reponame>iamdarshshah/spectrum // 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. #pragma once #include <spectrum/io/IEncodedImageSink.h> #include <cstddef> #include <fstream> #include <...
469
331
<filename>libraries/src/main/java/com/lauzy/freedom/librarys/view/decoration/GridItemDecorationDemo.java package com.lauzy.freedom.librarys.view.decoration; import android.content.Context; import android.content.res.TypedArray; import android.graphics.Canvas; import android.graphics.Rect; import android.graphics.drawa...
1,792
8,232
// Copyright (c) Microsoft Corporation. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // test <functional>, part 8 #define TEST_NAME "<functional>, part 8" #include "tdefs.h" #include <functional> #include <iostream> template <class T> const T& fake_lvalue(const T&& t) { // C++11 12.2 [class....
12,097
528
/****************************************************************************** Copyright 2020 <NAME> Licensed under the Apache License, Version 2.0 (the "License"), you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0...
3,334
1,144
<reponame>dram/metasfresh package de.metas.inoutcandidate.modelvalidator; /* * #%L * de.metas.swat.base * %% * Copyright (C) 2015 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 Fou...
1,342
515
<reponame>timgates42/LuaScriptCore // // Created by 冯鸿杰 on 2017/11/16. // #ifndef ANDROID_LUAJAVAEXPORTTYPEDESCRIPTOR_H #define ANDROID_LUAJAVAEXPORTTYPEDESCRIPTOR_H #include "LuaExportTypeDescriptor.hpp" #include <jni.h> #include <string> using namespace cn::vimfung::luascriptcore; /** * Java导出类型 */ class LuaJav...
639
1,099
<filename>chat/src/main/java/com/example/chat/adapter/holder/publicShare/BaseShareInfoViewHolder.java<gh_stars>1000+ package com.example.chat.adapter.holder.publicShare; import android.text.SpannableString; import android.text.SpannableStringBuilder; import android.text.Spanned; import android.text.style.DynamicDrawab...
2,587
1,444
<filename>Mage.Sets/src/mage/cards/w/WaterkinShaman.java package mage.cards.w; import mage.MageInt; import mage.abilities.common.EntersBattlefieldControlledTriggeredAbility; import mage.abilities.effects.common.continuous.BoostSourceEffect; import mage.abilities.keyword.FlyingAbility; import mage.cards.CardImpl; impor...
589
892
{ "schema_version": "1.2.0", "id": "GHSA-4cmw-rq6h-3v7m", "modified": "2021-12-09T00:01:50Z", "published": "2021-12-03T00:00:27Z", "aliases": [ "CVE-2021-40334" ], "details": "Missing Handler vulnerability in the proprietary management protocol (port TCP 5558) of Hitachi Energy FOX61x, XCM20 allows an...
467
582
package com.easy.securityOauth2Credentials.service.impl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.easy.securityOauth2Credentials.entity.Permission; import com.easy.securityOauth2Credentials.mapper.PermissionMapper; import com.easy.securityOauth2Credentials.service.IPermissionServi...
196
879
package com.bookstore.repository; import com.bookstore.view.GenreAndTitleView; import java.util.List; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; @Repository public interface GenreAndTitleViewRepository extends JpaRepository<GenreAndTitleView, Long> ...
127
313
../../../../../node_modules/react-native/ReactCommon/privatedata/PrivateDataBase.h
26
1,615
{ "name": "Default Environment", "image_tests": { "result_dir": "${project_dir}/Tests/data/results/${branch}/${build_config}", "ref_dir": "${project_dir}/Tests/data/refs/${branch}/${build_config}" } }
106
5,611
<reponame>jbn/docker-py from .resource import Model, Collection class Node(Model): """A node in a swarm.""" id_attribute = 'ID' @property def version(self): """ The version number of the service. If this is not the same as the server, the :py:meth:`update` function will not wo...
1,433
1,884
# Copyright (c) OpenMMLab. All rights reserved. from collections import defaultdict from .base_dataset import BaseDataset from .registry import DATASETS @DATASETS.register_module() class BaseMattingDataset(BaseDataset): """Base image matting dataset. """ def __init__(self, ann_file, pipeline, data_prefi...
747
679
<reponame>Grosskopf/openoffice /************************************************************** * * 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...
2,267
1,031
<gh_stars>1000+ import li_std_map_member a = li_std_map_member.mapita() a[1] = li_std_map_member.TestA() if (a[1].i != 1): raise RuntimeError("a[1] != 1") a[1].i = 2 if (a[1].i != 2): raise RuntimeError("a[1] != 2")
111
1,069
<reponame>Leopere/django-th from django.conf import settings from django.test.runner import DiscoverRunner class DiscoverRunnerTriggerHappy(DiscoverRunner): """ A Django test runner that uses unittest2 test discovery. """ def run_tests(self, test_labels, extra_tests=None, **kwargs): """ ...
594
5,169
<filename>Specs/b/2/e/ViewRow/0.7/ViewRow.podspec.json { "name": "ViewRow", "version": "0.7", "license": "MIT", "summary": "A UIView hosting row for use with the Eureka form library", "homepage": "https://github.com/EurekaCommunity/ViewRow", "source": { "git": "https://github.com/EurekaCommunity/ViewRow...
277
3,049
<filename>testing/docker/echo-model/EchoModel.py from seldon_core.user_model import SeldonComponent class EchoModel(SeldonComponent): def __init__(self): print("Initialising") def predict(self, X, features_names): print("Predict called") return X
104
911
package dan200.computercraft.shared.pocket.inventory; import dan200.computercraft.shared.computer.core.IComputer; import dan200.computercraft.shared.computer.core.IContainerComputer; import dan200.computercraft.shared.media.inventory.ContainerHeldItem; import dan200.computercraft.shared.pocket.items.ItemPocketComputer...
380
1,418
<gh_stars>1000+ package aima.core.util.math.geom.shapes; import aima.core.util.Util; /** * This class represents a vector in a two-dimensional Cartesian plot.<br/> * Simple arithmetic operations are supported. * * @author <NAME> * @author <NAME> * @author <NAME> * */ public final class Vector2D { /** * ...
1,492
1,745
//************************************ bs::framework - Copyright 2018 <NAME> **************************************// //*********** Licensed under the MIT license. See LICENSE.md for full terms. This notice is not to be removed. ***********// #include "Importer/BsShaderIncludeImporter.h" #include "Material/BsShaderIncl...
411
1,475
/* * 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,314
354
#ifndef _GLCLIMITTEST_HPP #define _GLCLIMITTEST_HPP /*------------------------------------------------------------------------- * OpenGL Conformance Test Suite * ----------------------------- * * Copyright (c) 2017 The Khronos Group Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you m...
781
2,649
<filename>gluon/gluoncv2/models/danet.py """ DANet for image segmentation, implemented in Gluon. Original paper: 'Dual Attention Network for Scene Segmentation,' https://arxiv.org/abs/1809.02983. """ __all__ = ['DANet', 'danet_resnetd50b_cityscapes', 'danet_resnetd101b_cityscapes', 'ScaleBlock'] import os im...
7,128
832
#Face Recognition with Google's Facenet Model #Author <NAME> (sefiks.com) #You can find the documentation of this code from the following link: #https://sefiks.com/2018/09/03/face-recognition-with-facenet-in-keras/ #Tested for TensorFlow 1.9.0, Keras 2.2.0 and Python 3.5.5 #----------------------- import...
1,917
37,508
<gh_stars>1000+ import os from typing import cast from selfdrive.hardware.base import HardwareBase from selfdrive.hardware.eon.hardware import Android from selfdrive.hardware.tici.hardware import Tici from selfdrive.hardware.pc.hardware import Pc EON = os.path.isfile('/EON') TICI = os.path.isfile('/TICI') PC = not (E...
176
429
/* * Copyright (c) 2021, <NAME>. All Rights Reserved. * * This file is part of Efficient Java Matrix Library (EJML). * * 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....
1,297
713
<gh_stars>100-1000 # https://www.algoexpert.io/questions/Two%20Number%20Sum # Solution 1 starts # O(n^2) time | O(1) space def twoNumberSum(array, targetSum): result_list = [] for i in range(0, len(array) - 1): first_number = array[i] for j in range(i + 1, len(array)): second_number...
686
1,469
/* * * Copyright 2015-2020 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requir...
1,569
575
<reponame>Ron423c/chromium<gh_stars>100-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 "chrome/browser/nearby_sharing/scheduling/fake_nearby_share_scheduler.h" #include <utility> FakeNe...
702
1,374
<reponame>norzak/jsweet package def.dom; public class ValidityState extends def.js.Object { public Boolean badInput; public Boolean customError; public Boolean patternMismatch; public Boolean rangeOverflow; public Boolean rangeUnderflow; public Boolean stepMismatch; public Boolean tooLong; ...
151
5,169
{ "name": "UpperNotificationController", "version": "0.1.1", "summary": "UpperNotificationController is core for appear notification to upper on app screen.", "homepage": "https://github.com/muukii/UpperNotificationController", "license": "MIT", "authors": { "muukii": "<EMAIL>" }, "source": { "g...
224
23,901
<gh_stars>1000+ // Copyright 2020 The 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...
705
3,066
<reponame>skofra0/crate /* * 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"); ...
1,029
2,113
//----------------------------------------------------------------------------- // Copyright (c) 2012 GarageGames, 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 restrictio...
7,804
14,668
{ "key": "<KEY>", "name": "Test Automation Provider Extension", "version": "1", "manifest_version": 2, "description": "Test Automation Provider Extension", "default_locale": "en", "background": { "scripts": ["connection_handler.js", "server.js", "background.js"] }, "content_security_policy": "defa...
764
2,003
// Copyright (c) 2013, Facebook, Inc. All rights reserved. // This source code is licensed under Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). // Copyright (c) 2018, Baidu.com, Inc. All Rights Reserved // Use of this source code is governed by a BSD-style license that can be // found...
1,398
3,034
/* * 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 n...
607
852
<reponame>Purva-Chaudhari/cmssw #include "Fireworks/Core/interface/FWSimpleProxyBuilderTemplate.h" #include "Fireworks/Core/interface/FWProxyBuilderBase.h" #include "Fireworks/Core/interface/Context.h" #include "Fireworks/Core/interface/FWEventItem.h" #include "Fireworks/Core/interface/FWGeometry.h" #include "SimDataFo...
2,903
747
# coding=utf-8 import mock import unittest from click.testing import CliRunner import yoda class TestWeather(unittest.TestCase): """ Test for the following commands: | Module: weather | command: weather """ def __init__(self, methodName="runTest"): super(TestWeather, self...
300
338
<reponame>vu-luong/ezyfox-server<filename>ezyfox-server-nio/src/test/java/com/tvd12/ezyfoxserver/nio/testing/ConcurrentLinkedListTest.java package com.tvd12.ezyfoxserver.nio.testing; import java.util.concurrent.ConcurrentLinkedQueue; public class ConcurrentLinkedListTest { public static void main(String[] args) { ...
348
2,151
<filename>content/renderer/media/stream/video_track_adapter_unittest.cc // 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 "content/renderer/media/stream/video_track_adapter.h" #include <limits> ...
2,620
930
package com.dianping.pigeon.util; import com.dianping.pigeon.log.LoggerLoader; import com.facebook.swift.codec.metadata.ReflectionHelper; import com.facebook.swift.service.ThriftService; import com.dianping.pigeon.log.Logger; import java.util.HashSet; import java.util.Set; /** * @author qi.yin * 2016/05/16...
1,769