max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
612
<reponame>yerang823/landmark-detection # Copyright (c) Facebook, Inc. and its affiliates. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # # python GEN_MPII.py ##############################################################...
4,604
776
# -*- coding: utf-8 -*- # Max-Planck-Gesellschaft zur Förderung der Wissenschaften e.V. (MPG) is # holder of all proprietary rights on this computer program. # You can only use this computer program if you have closed # a license agreement with MPG or you get the right to use the computer # program from someone who is...
268
2,151
<filename>src/core/SkRefDict.cpp<gh_stars>1000+ /* * Copyright 2011 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkRefDict.h" #include "SkString.h" struct SkRefDict::Impl { Impl* fNext; SkString fName; SkRef...
991
372
/* * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under t...
1,603
13,846
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. package com.microsoft.signalr; final class HandshakeResponseMessage { private final String error; public HandshakeResponseMessage() { this(null); } public ...
150
335
<filename>K/Kenyapithecus_noun.json { "word": "Kenyapithecus", "definitions": [ "An extinct ape, Kenyapithecus wickeri, known from Middle Miocene fossil remains found at Fort Ternan, Kenya, dated to about 14 million years ago, and regarded by some as the ancestor of all great apes." ], "parts-of...
120
369
<reponame>Shiva-D/rtos-course<gh_stars>100-1000 /******************** (C) COPYRIGHT 2008 STMicroelectronics ******************** * File Name : stm32f10x_iwdg.h * Author : MCD Application Team * Version : V2.0.1 * Date : 06/13/2008 * Description : This file contains a...
1,477
2,482
/* * 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 ...
973
1,039
#include "Tracker.h" #include "BYTETracker.h" #include <fstream> NvMOTContext::NvMOTContext(const NvMOTConfig &configIn, NvMOTConfigResponse &configResponse) { configResponse.summaryStatus = NvMOTConfigStatus_OK; } NvMOTStatus NvMOTContext::processFrame(const NvMOTProcessParams *params, NvMOTTrackedObjBatch *pTra...
1,677
455
/** * 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...
3,179
4,071
package com.github.ompc.greys.core.util; import java.lang.reflect.*; import java.util.ArrayList; import java.util.Collections; import java.util.LinkedHashSet; import java.util.Set; /** * 反射工具类 Created by <EMAIL> on 15/5/18. */ public class GaReflectUtils { /** * 获取对象某个成员的值 * * @param <T> T ...
4,962
417
<reponame>Parcons/Torque3D /* * Copyright 2006 Sony Computer Entertainment Inc. * * Licensed under the SCEA Shared Source License, Version 1.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://research.scea.com/scea_shared_source_...
350
468
<reponame>bilke/UniCAVE<filename>OpenGLDLL/GLFunctions/WGL/WGL_NV_gpu_affinity_Include.h #define GLI_INCLUDE_WGL_NV_GPU_AFFINITY enum Main { WGL_ERROR_INCOMPATIBLE_AFFINITY_MASKS_NV = 0x20D0, WGL_ERROR_MISSING_AFFINITY_MASK_NV = 0x20D1, }; GLboolean wglEnumGpusNV(GLuint iGpuIndex, void* * phGp...
281
304
<gh_stars>100-1000 import sys import json as _json from .regex import isregex from .headers import HTTPHeaderDict from .helpers import trigger_methods from .matchers.url import protoregex if sys.version_info < (3,): # Python 2 from urlparse import urlparse, parse_qs, urlunparse else: ...
2,076
410
import uuid from rentomatic.domain.storageroom import StorageRoom def test_storageroom_model_init(): code = uuid.uuid4() storageroom = StorageRoom(code, size=200, price=10, longitude=-0.09998975, latitude=51.75436293) assert storageroom.code == c...
828
2,023
<reponame>tdiprima/code ''' Python 3 code. scipy.mgrid is a useful! This short implementation comes without installing numpy. Supports complex step. "3j" means "three equi-spaced numbers from the span including the ends". >>> print(mgrid[1:2:3j]) [1.0, 1.5, 2.0] Supports floating p...
1,113
14,668
<filename>extensions/shell/browser/system_logs/shell_system_logs_fetcher.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 "extensions/shell/browser/system_logs/shell_system_logs_fetcher.h" #...
322
3,531
<reponame>ggvl/lvgl<gh_stars>1000+ #include "../../lv_examples.h" #if LV_USE_MONKEY && LV_BUILD_EXAMPLES void lv_example_monkey_1(void) { /*Create pointer monkey test*/ lv_monkey_config_t config; lv_monkey_config_init(&config); config.type = LV_INDEV_TYPE_POINTER; config.period_range.min = 10; ...
205
9,734
// 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...
1,167
526
/* SPDX-License-Identifier: Apache 2.0 */ /* Copyright Contributors to the ODPi Egeria project. */ package org.odpi.openmetadata.commonservices.multitenant.ffdc.exceptions; import org.odpi.openmetadata.commonservices.ffdc.exceptions.OMAGCheckedExceptionBase; import org.odpi.openmetadata.frameworks.auditlog.messageset...
1,539
5,169
{ "name": "SocketIOChatClient", "version": "0.1.1", "summary": "A simple SocketIO client with live chat UI", "description": "A simple SocketIO client with live chat user interface", "homepage": "https://github.com/Chaatz/SocketIOChatClient", "license": "MIT", "authors": { "<NAME>": "<EMAIL>" }, "s...
294
340
//================================================================================================== /** EVE - Expressive Vector Engine Copyright : EVE Contributors & Maintainers SPDX-License-Identifier: MIT **/ //================================================================================================== #...
1,173
852
#include "FWCore/Framework/interface/Event.h" #include "EventFilter/L1TRawToDigi/plugins/PackerFactory.h" #include "GTTokens.h" #include "GlobalExtBlkPacker.h" namespace l1t { namespace stage2 { Blocks GlobalExtBlkPacker::pack(const edm::Event& event, const PackerTokens* toks) { edm::Handle<GlobalExtBlkBx...
785
3,153
# -*- coding: utf-8 -*- """ @author:XuMing(<EMAIL>) @description: """ import os import sys import numpy as np import torch sys.path.append('../..') from pycorrector.seq2seq import config from pycorrector.seq2seq.data_reader import SOS_TOKEN, EOS_TOKEN from pycorrector.seq2seq.data_reader import load_word_dict from ...
3,515
3,102
<reponame>medismailben/llvm-project // RUN: %clang_cc1 -triple x86_64-linux-gnu -fsyntax-only -ast-dump=json %s | FileCheck %s unsigned char implicitcast_0(unsigned int x) { return x; } signed char implicitcast_1(unsigned int x) { return x; } unsigned char implicitcast_2(signed int x) { return x; } signed cha...
26,990
14,668
<filename>ios/testing/earl_grey/base_earl_grey_test_case.h // Copyright 2019 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_TESTING_EARL_GREY_BASE_EARL_GREY_TEST_CASE_H_ #define IOS_TESTING_EARL_GREY_BASE_EA...
489
435
{ "copyright_text": null, "description": "Abstract\n~~~~~~~~\n\nOpenShift Origin \u00e8 la Platform-as-a-Service opensource di riferimento.\nBasata su Kubernetes e Docker, contiene features aggiuntive e\nintegrazioni con altri componenti che semplificano le pratiche di\nDevOps.\n\nDopo una breve introduzione ad Ope...
782
371
import numpy as np import pandas as pd from convokit.transformer import Transformer from convokit.speaker_convo_helpers.speaker_convo_attrs import SpeakerConvoAttrs from itertools import chain from collections import Counter from convokit.speaker_convo_helpers.speaker_convo_lifestage import SpeakerConvoLifestage from c...
5,478
581
import os import numpy as np import re from glove.glove import Glove from gensim.models import Doc2Vec from model_downloader import ModelDownloader from data_utils import TextTooShortException class WordVectorEmbedder: ''' generic class to embed words into word vectors ''' def __init__(self, mode...
2,313
656
# encoding:utf-8 import matplotlib matplotlib.use('Qt4Agg') import matplotlib.pyplot as plt ## 散点图 plt.scatter(200,200,marker='x') plt.show()
69
531
package com.adjust.sdk; /** * Created by pfms on 16/02/16. */ public interface OnSessionTrackingFailedListener { void onFinishedSessionTrackingFailed(AdjustSessionFailure failureResponseData); }
62
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 namespace s3d { namespace Scene {...
295
3,227
<reponame>ffteja/cgal // Copyright (c) 2003 INRIA Sophia-Antipolis (France). // All rights reserved. // // This file is part of CGAL (www.cgal.org) // // $URL$ // $Id$ // SPDX-License-Identifier: LGPL-3.0-or-later OR LicenseRef-Commercial // // // Author(s) : <NAME> #ifndef CGAL_INTERNAL_INTERSECTIONS_3_POINT_3_S...
443
2,338
""" Test that C++ template classes that have integer parameters work correctly. We must reconstruct the types correctly so the template types are correct and display correctly, and also make sure the expression parser works and is able the find all needed functions when evaluating expressions """ import lldb from lldb...
2,756
5,823
<reponame>onix39/engine<filename>shell/platform/glfw/headless_event_loop.h<gh_stars>1000+ // Copyright 2013 The Flutter 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 FLUTTER_SHELL_PLATFORM_GLFW_HEADLESS_EVENT_LOOP_H_ #defin...
424
561
<filename>startup/GafferOSLUI/oslExamples.py<gh_stars>100-1000 import Gaffer import GafferUI import GafferOSL GafferUI.Examples.registerExample( "Compositing/OSL Image Processing", "$GAFFER_ROOT/resources/examples/compositing/OSLImageProcessing.gfr", description = "Demonstrates the use of OSL networks and the OSLIm...
243
474
<reponame>DennyDai/angr-management<filename>angrmanagement/ui/widgets/qvextemps_viewer.py import logging from PySide2.QtWidgets import QFrame, QLabel, QVBoxLayout, QHBoxLayout, QScrollArea, QSizePolicy from PySide2.QtCore import Qt, QSize from .qast_viewer import QASTViewer l = logging.getLogger('ui.widgets.qvextemp...
1,160
1,587
<filename>spring-boot/exception-handling/src/main/java/io/reflectoring/exception/service/ProductService.java package io.reflectoring.exception.service; import io.reflectoring.exception.commons.I18Constants; import io.reflectoring.exception.entity.Category; import io.reflectoring.exception.entity.Product; import io.ref...
547
769
<reponame>chouxianyu/TFA from .coco_evaluation import COCOEvaluator from .evaluator import ( DatasetEvaluator, DatasetEvaluators, inference_context, inference_on_dataset, ) from .lvis_evaluation import LVISEvaluator from .pascal_voc_evaluation import PascalVOCDetectionEvaluator from .testing import prin...
157
406
#ifndef THEFT_AUTOSHRINK_H #define THEFT_AUTOSHRINK_H #include "theft_types_internal.h" #include <limits.h> #define AUTOSHRINK_ENV_TAG 0xa5 #define AUTOSHRINK_BIT_POOL_TAG 'B' struct autoshrink_bit_pool { /* Bits will always be rounded up to a multiple of 64 bits, * and be aligned as a uint64_t. */ uint...
2,128
436
/* * Copyright 2003-2009 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 applicable...
655
427
<reponame>JaminChan/eos_win<filename>externals/wasm-compiler/llvm/utils/opt-viewer/opt-viewer.py #!/usr/bin/env python2.7 from __future__ import print_function desc = '''Generate HTML output to visualize optimization records from the YAML files generated with -fsave-optimization-record and -fdiagnostics-show-hotness....
3,781
310
<reponame>dreeves/usesthis { "name": "OpenTable (iOS)", "description": "An app for making restaurant reservations.", "url": "https://itunes.apple.com/us/app/opentable-restaurant-reservations/id296581815" }
77
312
<filename>tools/console/src/test/java/org/eclipse/rdf4j/console/command/ConvertTest.java<gh_stars>100-1000 /******************************************************************************* * Copyright (c) 2018 Eclipse RDF4J contributors. * All rights reserved. This program and the accompanying materials * are made av...
1,051
1,602
<filename>third-party/libfabric/libfabric-src/include/rbtree.h<gh_stars>1000+ /* * Copyright (c) 2015 Cray Inc. All rights reserved. * * This software is available to you under a choice of one of two * licenses. You may choose to be licensed under the terms of the GNU * General Public License (GPL) Version 2, ava...
1,239
2,981
<filename>chrome/common/extensions/docs/examples/extensions/calendar/_locales/cs/messages.json {"name":{"message":"Kontrola Kalend\u00e1\u0159e Google (od spole\u010dnosti Google)"},"title":{"message":"Kontrola Kalend\u00e1\u0159e Google"},"description":{"message":"Umo\u017e\u0148uje rychle zobrazit \u010das, kter\u00f...
559
1,862
<reponame>devshop2019/mixlyTest #ifndef BLINKER_AUTO_SUBDEVICE_H #define BLINKER_AUTO_SUBDEVICE_H #if defined(BLINKER_WIFI_SUBDEVICE) #if ARDUINO >= 100 #include <Arduino.h> #else #include <WProgram.h> #endif #include <EEPROM.h> // #include "Blinker/BlinkerAuto.h" #include "Blinker/BlinkerConfig.h" #include...
997
558
/* Copyright 2019 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.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
1,286
713
<gh_stars>100-1000 # My solution using Hepa import heapq def findThreeLargestNumbers(array): hp = [] for num in array: if len(hp) < 3: heapq.heappush(hp, num) else: if hp[0] < num: heapq.heappop(hp) heapq.heappush(hp, num) return sorted(hp) # Solution providd by Algoexpert # O(n) time | O(1) sp...
564
695
<reponame>techkey/PTVS def r_a(a, b): return a def r_b(a, b): return b def r_str(): return '' def r_object(): return object() class A: def r_A(self): return type(self)()
102
678
/** * This header is generated by class-dump-z 0.2b. * * Source: /System/Library/PrivateFrameworks/GMM.framework/GMM */ #import <GMM/GMMWaypointFeedback.h> #import <GMM/XXUnknownSuperclass.h> @class NSString, NSMutableArray; __attribute__((visibility("hidden"))) @interface GMMWaypointFeedback : XXUnknownSupercla...
669
381
RPY_EXTERN char * jitlog_init(int); RPY_EXTERN void jitlog_try_init_using_env(void); RPY_EXTERN int jitlog_enabled(); RPY_EXTERN void jitlog_write_marked(char*, int); RPY_EXTERN void jitlog_teardown();
85
582
/** * This program and the accompanying materials * are made available under the terms of the License * which accompanies this distribution in the file LICENSE.txt */ package com.archimatetool.editor.propertysections; import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.ecore.EObject; import o...
2,440
2,757
/**@file Copyright (c) 2006, Intel Corporation. All rights reserved.<BR> This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/...
1,268
358
<reponame>liaoziyang/ContentAssist /* * Copyright 2014 * Software Science and Technology Lab. * Department of Computer Science, Ritsumeikan University */ package org.jtool.changerecorder.util; /** * Compares two strings. * @author <NAME> */ public class StringComparator { /** * Tests if two te...
606
7,076
<gh_stars>1000+ /* * Copyright (C) 2017. Uber Technologies * * 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...
690
1,338
<filename>src/bin/i2c/i2c.cpp /* * Copyright 2020, <NAME>, <EMAIL>. * Distributed under the terms of the MIT license. */ #include <errno.h> #include <fcntl.h> #include <getopt.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <Drivers.h> #include <AutoDeleter.h> #include...
871
622
<filename>Week 4/week4-076.Menu/test/MenuTest.java<gh_stars>100-1000 import fi.helsinki.cs.tmc.edutestutils.MockStdio; import fi.helsinki.cs.tmc.edutestutils.Points; import fi.helsinki.cs.tmc.edutestutils.ReflectionUtils; import fi.helsinki.cs.tmc.edutestutils.Reflex; import java.lang.reflect.Field; import java.lang.r...
3,500
808
// 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...
2,000
9,724
#include <unistd.h> #include <signal.h> #include "syscall.h" #include "libc.h" #ifdef __EMSCRIPTEN__ int __setxid_emscripten() { errno = EPERM; // we don't allow dynamic syscalls, and don't need to support these anyhow return -1; } #else struct ctx { int id, eid, sid; int nr, ret; }; static void do_setxid(void *p...
433
480
/* * Copyright [2013-2021], 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 * * Unless required by app...
932
12,278
<reponame>markuspf/velocypack //////////////////////////////////////////////////////////////////////////////// /// @brief Library to build up VPack documents. /// /// DISCLAIMER /// /// Copyright 2015 ArangoDB GmbH, Cologne, Germany /// /// Licensed under the Apache License, Version 2.0 (the "License"); /// you may not...
1,227
577
<filename>Lib/json/tests/test_dunderdict.py<gh_stars>100-1000 from cStringIO import StringIO from json.tests import PyTest, CTest class WrapDict(object): def __init__(self, d): # Force a copy of the items in d, otherwise __dict__ will be a # PyDictionary, instead of the desired PyStringMap for th...
545
405
<gh_stars>100-1000 # -*- coding: utf-8 -*- """ Created on Wed Sep 11 14:58:00 2019 @author: truthless """ import os from convlab.modules.word_policy.multiwoz.hdsa.predictor import HDSA_predictor from convlab.modules.word_policy.multiwoz.hdsa.generator import HDSA_generator from convlab.modules.policy.system.p...
439
416
<reponame>spring-operator/spring-roo package org.springframework.roo.classpath.layers; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNull; import java.util.Arrays; import org.junit.Test; import org.springframework.roo.model.JavaType; /** * Unit test of {@link MemberTypeAdditions...
610
335
{ "word": "Vignette", "definitions": [ "Portray (someone) in the style of a vignette.", "Produce (a photograph) in the style of a vignette by softening or shading away the edges of the subject." ], "parts-of-speech": "Verb" }
102
330
from pybamm import exp, constants def graphite_diffusivity_Kim2011(sto, T): """ Graphite diffusivity [1]. References ---------- .. [1] <NAME>., <NAME>., <NAME>., <NAME>., & <NAME>. (2011). Multi-domain modeling of lithium-ion batteries encompassing multi-physics in varied length scales. J...
318
463
#!/usr/bin/env python from mpi4py import MPI from pposgd_mpi.common import set_global_seeds from pposgd_mpi import bench from pposgd_mpi.common.mpi_fork import mpi_fork import os.path as osp import gym, logging from pposgd_mpi.common import logger import sys def wrap_train(env): from pposgd_mpi.common.atari_wrappe...
785
2,338
//===- TestAttributes.cpp - MLIR Test Dialect Attributes --------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
1,849
325
package com.box.l10n.mojito.cli.command; import com.beust.jcommander.IStringConverter; import com.beust.jcommander.ParameterException; import com.box.l10n.mojito.cli.filefinder.file.FileType; import com.box.l10n.mojito.cli.filefinder.file.FileTypes; import java.util.Arrays; /** * * @author jaurambault */ public cl...
397
314
<filename>schemas/gltf-2.0/extensions/KHR_materials_clearcoat/glTF.KHR_materials_clearcoat.schema.json { "$schema" : "http://json-schema.org/draft-04/schema", "title" : "KHR_materials_clearcoat glTF extension", "type" : "object", "description" : "glTF extension that defines the clearcoat material layer....
1,177
3,055
/* Fontname: -FreeType-FreeUniversal-Bold-R-Normal--49-490-72-72-P-243-ISO10646-1 Copyright: FreeUniveral (c) <NAME> 2009 Original Font Sil-Sophia Copyright (c) SIL International, 1994-2008. Glyphs: 45/243 BBX Build Mode: 0 */ const uint8_t u8g2_font_fub35_t_symbol[2713] U8G2_FONT_SECTION("u8g2_font_fub35_t...
4,855
346
{ "packagingVersion": "2.0", "name": "crate", "version": "0.1.0", "scm": "https://github.com/crate/crate-mesos-framework.git", "maintainer": "<EMAIL>", "description": "A Mesos Framework that allows running and resizing one or multiple Crate database clusters.", "website": "https://crate.io", "tags": ["d...
341
575
// 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. #ifndef CHROME_BROWSER_METRICS_USAGE_SCENARIO_WEBRTC_EVENT_PROVIDER_H_ #define CHROME_BROWSER_METRICS_USAGE_SCENARIO_WEBRTC_EVENT_PROVIDER_H_ #include "b...
1,273
319
<reponame>Kobting/ModTheSpire package com.evacipated.cardcrawl.modthespire; import com.google.gson.*; import com.google.gson.annotations.SerializedName; import com.vdurmont.semver4j.Semver; import com.vdurmont.semver4j.SemverException; import javax.swing.*; import java.io.*; import java.lang.reflect.Modifier; import ...
3,151
372
/* * travesty, pure C interface to steinberg VST3 SDK * Copyright (C) 2021 <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 notice and this * permission notice appear in all copies. * ...
1,125
2,338
<filename>clang-tools-extra/test/clang-reorder-fields/ClassSimpleCtor.cpp // RUN: clang-reorder-fields -record-name Foo -fields-order s1,x,z,s2 %s -- | FileCheck %s class Foo { public: Foo(); private: int x; // CHECK: {{^ const char \*s1;}} const char *s1; // CHECK-NEXT: {{^ int x;}} c...
348
812
package com.vpaliy.data.mapper; import android.content.Context; import android.icu.text.NumberFormat; import android.support.annotation.VisibleForTesting; import android.text.TextUtils; import com.vpaliy.data.Config; import com.vpaliy.data.R; import java.util.Arrays; import java.util.List; import java.util.Locale; i...
1,038
522
<filename>tensorflow/examples/wav_to_spectrogram/wav_to_spectrogram.cc /* Copyright 2017 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....
1,715
1,143
// ================================================================================================= // Copyright 2012 Twitter, Inc. // ------------------------------------------------------------------------------------------------- // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use ...
385
1,514
<reponame>fpmuniz/stepmania #include "global.h" #include "Screen.h" #include "PrefsManager.h" #include "RageSound.h" #include "RageLog.h" #include "ThemeManager.h" #include "ScreenManager.h" #include "ActorUtil.h" #include "InputEventPlus.h" #include "InputMapper.h" #define NEXT_SCREEN THEME->GetMetric (m_sName,"Next...
5,647
6,034
<reponame>ssSlowDown/onemall package cn.iocoder.mall.productservice.mq.producer; import cn.iocoder.mall.productservice.mq.producer.message.ProductUpdateMessage; import lombok.extern.slf4j.Slf4j; import org.apache.rocketmq.client.producer.SendResult; import org.apache.rocketmq.client.producer.SendStatus; import org.apa...
532
547
/* * Copyright 2011 <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 or agreed to in wr...
1,731
2,151
<filename>third_party/blink/renderer/core/paint/line_box_list_painter.cc // 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. #include "third_party/blink/renderer/core/paint/line_box_list_painter.h" #includ...
1,324
548
<filename>benchmark/tests/test_model/inceptionv3_pytorch/serving_model.json { "serving_type": "tensorrt", "input_model": "./model/inceptionv3.onnx", "export_path": "model_tensorrt", "input_names": [ "x.1" ], "input_formats": [ "channels_first" ], "output_names": [ "924" ], "input_signat...
216
491
<filename>source/unit_test/test_keras_nodes.h // Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except // in compliance with the License. You may obtain a copy of the License at // // http://www...
6,073
2,671
class A: def __len__(self): return 0 print bool(A()) class B: def __len__(self): return False print bool(B()) class C: def __nonzero__(self): return 0 print bool(C()) class D: def __nonzero__(self): return False print bool(D()) class E: def __len__(self): ...
297
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 ...
522
443
"""Index Job.{status,date_created} Revision ID: 4114cbbd0573 Revises: 5508859bed73 Create Date: 2014-01-06 11:28:15.691391 """ # revision identifiers, used by Alembic. revision = '<KEY>' down_revision = '5508859bed73' from alembic import op def upgrade(): op.create_index('idx_job_status_date_created', 'job', ...
164
356
package com.indeed.proctor.integration.sample; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.bind.annotation.RestController; import javax.servlet.http.HttpServletRequest; import static com.indeed.proctor.inte...
279
343
/* $Id$Revision: */ /* vim:set shiftwidth=4 ts=8: */ /************************************************************************* * Copyright (c) 2011 AT&T Intellectual Property * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 ...
601
14,668
<filename>chrome/browser/ui/web_applications/create_shortcut_browsertest.cc // 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 "base/files/file_path.h" #include "base/memory/scoped_refptr.h" #incl...
4,088
529
<reponame>adamchainz/django-postgres-extra<filename>psqlextra/models/partitioned.py<gh_stars>100-1000 from django.db.models.base import ModelBase from psqlextra.types import PostgresPartitioningMethod from .base import PostgresModel from .options import PostgresPartitionedModelOptions class PostgresPartitionedModel...
537
1,273
<reponame>sunboy0523/gatk package org.broadinstitute.hellbender.engine.spark; import org.broadinstitute.barclay.argparser.Argument; import java.io.Serializable; public class AssemblyRegionReadShardArgumentCollection implements Serializable { private static final long serialVersionUID = 1L; public static fin...
303
2,151
// 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 THIRD_PARTY_BLINK_RENDERER_CORE_TESTING_CORE_UNIT_TEST_HELPER_H_ #define THIRD_PARTY_BLINK_RENDERER_CORE_TESTING_CORE_UNIT_TEST_HELPER_H_ #includ...
1,212
679
/************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to y...
1,335
6,036
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #include "bias_gelu.h" #include "core/framework/tensorprotoutils.h" #include "onnx/defs/tensor_proto_util.h" #include "core/common/safeint.h" #include "core/framework/tensor.h" #include "core/providers/common.h" namespace ...
588
4,538
[ "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb", "ccccccccccccccccccccccc", "dddddddddddddddddddddddddddddddddddddddddddddddddddd" ]
82
4,551
<reponame>quipper/robolectric package org.robolectric.shadows; import android.app.Application; import android.app.LoadedApk; import android.content.pm.PackageManager.NameNotFoundException; import android.content.res.Resources; import android.os.Build.VERSION_CODES; import org.robolectric.annotation.Implementation; imp...
363
573
import os from dataclasses import dataclass from typing import Union, Type import pytest from sentinelhub import AwsTileRequest, AwsProductRequest, read_data, write_data, DataCollection, AwsConstants from sentinelhub.testing_utils import get_input_folder INPUT_FOLDER = get_input_folder(__file__) @dataclass class S...
2,724