max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
5,169
<gh_stars>1000+ { "name": "VitalSignsHandler", "version": "0.0.1", "summary": "VitalSignsHandler is ios framework. If you need to handler ECG or PPG data use it.", "description": "This framework was developer of Higher School of Information Technology and Information Sys-tems of Kazan Federal University....
438
429
<reponame>nipunsadvilkar/pysbd import pytest from pysbd.languages import LANGUAGE_CODES, Language def test_lang_code2instance_mapping(): for code, language_module in LANGUAGE_CODES.items(): assert Language.get_language_code(code) == language_module def test_exception_on_no_lang_code_provided(): with ...
257
789
<filename>lsm/lsm.cpp #include "lsm.h" #include <iostream> #include <string> #include <variant> #include <vector> #include <fstream> #include <limits> #include <bitset> #include <filesystem> #include "MurmurHash3.h" #include <cassert> void BloomFilter::insert_key(int32_t k) { uint32_t seed = 1; uint32_t key_hash; ...
2,751
832
<gh_stars>100-1000 package com.litesuits.http.impl.apache; import com.litesuits.http.data.Consts; import com.litesuits.http.exception.HttpClientException; import com.litesuits.http.impl.apache.entity.FileEntity; import com.litesuits.http.impl.apache.entity.InputStreamEntity; import com.litesuits.http.impl.apache.entit...
1,032
8,851
from django.db import transaction from django.http import HttpResponseRedirect from django.shortcuts import redirect from django.urls import reverse from django.utils.translation import gettext as _ from django.utils.translation import gettext_lazy from django.views.generic.edit import BaseCreateView, BaseDeleteView, B...
3,627
5,678
"""Test the datasets loader. Skipped if datasets is not already downloaded to data_home. """ # Authors: <NAME> <<EMAIL>> # <NAME> # License: MIT import pytest from imblearn.datasets import fetch_datasets from sklearn.utils._testing import SkipTest DATASET_SHAPE = { "ecoli": (336, 7), "optical_digit...
1,248
3,266
package org.antlr.gunit.swingui.model; import javax.swing.JComponent; import javax.swing.JLabel; /** * * @author scai */ public class TestCaseInputFile implements ITestCaseInput { private String fileName; public TestCaseInputFile(String file) { this.fileName = file; } public String getL...
236
852
<reponame>ckamtsikis/cmssw #ifndef _BTAGGER_SIGNEDIMPACTPARAMETER3D_H_ #define _BTAGGER_SIGNEDIMPACTPARAMETER3D_H_ #include "TrackingTools/TrajectoryState/interface/TrajectoryStateOnSurface.h" #include "DataFormats/GeometryCommonDetAlgo/interface/Measurement1D.h" #include "TrackingTools/TransientTrack/interface/Transie...
811
500
from flask import redirect, url_for def get_scope_redirect(type): redirects = { "scope": url_for("admin.scope"), "blacklist": url_for("admin.blacklist"), "default": url_for("admin.admin"), } return redirect(redirects.get(type, "default"))
111
517
/* * Copyright (c) 2010. All rights reserved. */ package ro.isdc.wro.manager.factory; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertSame; import static org.junit.Assert.assertTrue; import java.io.ByteArrayInputStream; import java.util.C...
6,089
2,151
<reponame>zipated/src // 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 "media/capture/video/chromeos/camera_device_context.h" namespace media { CameraDeviceContext::CameraDeviceContext( st...
870
1,433
/* * Copyright (c) 2016, 2017, 2018, 2019 FabricMC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicabl...
805
692
import torch import torch.nn as nn import torch.nn.functional as F import os import math try: # CUDA kernel assert not ('FORCE_NATIVE' in os.environ and os.environ['FORCE_NATIVE']) # add FORCE_NATIVE in env to force native from cuda_op.fused_act import FusedLeakyReLU, fused_leaky_relu from cuda_op.upfird...
6,280
5,169
<reponame>Gantios/Specs { "name": "MappedinVenueFormat", "version": "1.0.7", "summary": "This is a library to download mvf files", "homepage": "https://mappedin.com", "module_name": "MappedinVenueFormat", "license": { "type": "Commercial", "file": "LICENSE" }, "authors": { "<NAME>": "<EMAIL>...
369
1,503
#include "textformat.hpp" using Microsoft::WRL::ComPtr; DWRITE_FONT_STYLE dwrite_style(const FontOpts& fo) { if (fo & FontOpts::Italic) return DWRITE_FONT_STYLE_ITALIC; return DWRITE_FONT_STYLE_NORMAL; } DWRITE_FONT_WEIGHT dwrite_weight(const FontOpts& fo) { if (fo & FontOpts::Normal) return DWRITE_FONT_WEIGHT...
1,080
2,603
/* * FreeRTOS V202107.00 * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. 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, incl...
3,116
3,702
/* * 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 * distribu...
2,329
4,879
#pragma once #include "map/booking_filter_params.hpp" #include "map/everywhere_search_params.hpp" #include "map/search_product_info.hpp" #include "search/result.hpp" #include <functional> #include <vector> namespace search { // An on-results-callback that should be used for search over all // maps. // // *NOTE* the...
426
5,169
{ "name": "HideKeyboardWhenTappedAround", "version": "1.0.0", "summary": "As the name suggest, it hides the keyboard when user tapped around.", "description": "It hides the keyboard when user tapped anywhere around a UIViewController.", "homepage": "https://github.com/Shritesh99/HideKeyboardWhenTappedAround",...
284
348
{"nom":"Laneuvelotte","dpt":"Meurthe-et-Moselle","inscrits":359,"abs":71,"votants":288,"blancs":6,"nuls":42,"exp":240,"res":[{"panneau":"1","voix":155},{"panneau":"2","voix":85}]}
77
2,338
for (int c0 = 1; c0 <= 101; c0 += 1) for (int c1 = (c0 % 2) + c0; c1 <= 400; c1 += 2) s0(c0, c1);
60
1,644
<gh_stars>1000+ // Copyright 2017 The Nomulus 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 // // Unle...
1,213
812
package edu.stanford.nlp.sempre.interactive.test; import static org.testng.AssertJUnit.assertEquals; import java.util.*; import java.util.function.Predicate; import fig.basic.*; import edu.stanford.nlp.sempre.*; import edu.stanford.nlp.sempre.Parser.Spec; import edu.stanford.nlp.sempre.interactive.InteractiveBeamPar...
2,526
318
<reponame>adam11grafik/maven-surefire package org.apache.maven.surefire.its; /* * 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...
2,448
450
package com.zhizus.forest.controller; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; /** * Created by Dempe on 2016/12/29. */ @Controller @RequestMapping("/configuration") public class ConfigurationController { }
83
6,904
<reponame>wonism/anypixel { "name": "anypixel-emulator", "version": "1.0.0", "main": "index.js", "license" : "Apache-2.0", "scripts": { "build": "browserify -d src/emulator.js > index.js" } }
95
1,338
/* * Copyright 2017 Haiku, Inc. All rights reserved. * Distributed under the terms of the MIT License. */ #ifndef _BSD_ENDIAN_H_ #define _BSD_ENDIAN_H_ #include_next <endian.h> #include <features.h> #ifdef _DEFAULT_SOURCE #include <config/HaikuConfig.h> #include <support/ByteOrder.h> #include <support/SupportDe...
1,164
348
<filename>docs/data/leg-t2/078/07806367.json {"nom":"Mareil-Marly","circ":"6ème circonscription","dpt":"Yvelines","inscrits":2609,"abs":1070,"votants":1539,"blancs":48,"nuls":9,"exp":1482,"res":[{"nuance":"REM","nom":"<NAME>","voix":856},{"nuance":"LR","nom":"<NAME>","voix":626}]}
118
653
//===- ArithmeticOps.cpp - MLIR Arithmetic dialect ops implementation -----===// // // 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 // //===---------------------------...
9,867
704
<filename>monero/external/supercop/crypto_sign/ed25519/amd64-51-30k/ge25519_base.c<gh_stars>100-1000 #include "ge25519.h" /* Base point in P^3 coordinates (with Z=1) */ const ge25519 ge25519_base = {{{0x00062d608f25d51a, 0x000412a4b4f6592a, 0x00075b7171a4b31d, 0x0001ff60527118fe, 0x000216936d3cd6e5}}, ...
363
308
<gh_stars>100-1000 import unittest import torch from torchvision.transforms import Compose, ToTensor from super_gradients.training.transforms.transforms import Rescale, RandomRescale, CropImageAndMask, PadShortToCropSize from PIL import Image from super_gradients.training.datasets.segmentation_datasets.segmentation_da...
3,787
1,116
<gh_stars>1000+ /********************************************************************* * Software License Agreement (BSD License) * * Copyright (c) 2011, <NAME>, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the ...
3,336
14,668
<reponame>zealoussnow/chromium // 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. package org.chromium.chrome.browser.download.home.filter; import org.chromium.components.offline_items_collection.OfflineI...
415
416
<gh_stars>100-1000 // // CSSearchableItemAttributeSet_Images.h // CoreSpotlight // // Copyright © 2015 Apple. All rights reserved. // #import <CoreSpotlight/CSSearchableItemAttributeSet.h> NS_ASSUME_NONNULL_BEGIN @interface CSSearchableItemAttributeSet (CSImages) //The height of the item in pixels (ie Image heig...
1,300
335
{ "word": "Notwithstanding", "definitions": [ "In spite of." ], "parts-of-speech": "Preposition" }
56
392
{"name":"seven_zip","version":"2.0.2","description":"Installs/Configures the 7-zip file archiver","long_description":"[![Cookbook Version](http://img.shields.io/cookbook/v/seven_zip.svg)](https://supermarket.chef.io/cookbooks/seven_zip)\n[![Build status](https://ci.appveyor.com/api/projects/status/y1lsnlkd2b3q6gfd/bran...
1,374
6,851
from pyramid.config import Configurator from pyramid.response import Response def hello_world(request): return Response('Hello world!') def goodbye_world(request): return Response('Goodbye world!') config = Configurator() config.add_view(hello_world) config.add_view(goodbye_world, name='goodbye') app = confi...
105
4,339
/* * 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 ...
2,903
634
/* * Copyright 2000-2015 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
951
466
<filename>libgpos/include/gpos/common/CSyncHashtable.h //--------------------------------------------------------------------------- // Greenplum Database // Copyright (C) 2008 Greenplum, Inc. // // @filename: // CSyncHashtable.h // // @doc: // Allocation-less static hashtable; // Manages client objects without addi...
2,314
1,830
/* * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH under * one or more contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright ownership. * Licensed under the Zeebe Community License 1.1. You may not use this file * ...
1,261
427
//===- YAMLOutputStyle.cpp ------------------------------------ *- C++ --*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
2,666
460
/* * Copyright (C) 1999 <NAME> (<EMAIL>) * (C) 1999 <NAME> (<EMAIL>) * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License ...
2,408
4,013
<reponame>cclauss/checkov import unittest import hcl2 from checkov.common.models.enums import CheckResult from checkov.terraform.checks.resource.gcp.GoogleSubnetworkLoggingEnabled import check class TestGoogleSubnetworkLoggingEnabled(unittest.TestCase): def test_failure(self): hcl_res = hcl2.loads(""" ...
772
3,372
<reponame>MC-JY/aws-sdk-java /* * Copyright 2016-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apac...
2,450
1,367
<reponame>developer-inspur/SwissArmyKnife<gh_stars>1000+ package com.wanjian.sak.layer.impl_tmp; import android.content.Context; import android.graphics.drawable.Drawable; import android.view.View; import com.wanjian.sak.R; /** * Created by wanjian on 2016/10/24. */ @Deprecated public class InfoLayer { public...
441
348
<filename>docs/data/leg-t1/080/08005442.json {"nom":"Hombleux","circ":"5ème circonscription","dpt":"Somme","inscrits":805,"abs":433,"votants":372,"blancs":4,"nuls":4,"exp":364,"res":[{"nuance":"UDI","nom":"<NAME>","voix":163},{"nuance":"FN","nom":"M. <NAME>","voix":89},{"nuance":"FI","nom":"M. <NAME>","voix":54},{"nuan...
241
892
{ "schema_version": "1.2.0", "id": "GHSA-8857-6ch2-mpr7", "modified": "2022-04-29T01:26:35Z", "published": "2022-04-29T01:26:35Z", "aliases": [ "CVE-2003-0525" ], "details": "The getCanonicalPath function in Windows NT 4.0 may free memory that it does not own and cause heap corruption, which allows at...
570
1,655
#ifndef FILEITERABLES_HPP_ #define FILEITERABLES_HPP_ #include "RecursiveFileIterator.hpp" #include "FileIterator.hpp" namespace Tungsten { class FileIterable { Path _path; Path _extension; public: FileIterable(const Path &p, const Path &extension) : _path(p), _extension(extension) { }...
484
945
/* * 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 ...
7,853
348
<filename>docs/data/leg-t2/080/08004098.json<gh_stars>100-1000 {"nom":"Bettembos","circ":"4ème circonscription","dpt":"Somme","inscrits":83,"abs":35,"votants":48,"blancs":5,"nuls":1,"exp":42,"res":[{"nuance":"FN","nom":"<NAME>","voix":29},{"nuance":"REM","nom":"<NAME>","voix":13}]}
119
636
package cn.org.atool.fluent.mybatis.generator.shared2.dao.impl; import cn.org.atool.fluent.mybatis.generator.shared2.dao.base.HomeAddressBaseDao; import cn.org.atool.fluent.mybatis.generator.shared2.dao.intf.HomeAddressDao; import org.springframework.stereotype.Repository; /** * HomeAddressDaoImpl: 数据操作接口实现 * <p> ...
273
535
/* * 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 ...
7,305
2,970
<filename>scripts/cluster-serving/overall-correctness-check.py from os import system # build zoo package -> install zoo package -> install and start Redis and Flink -> start cluster serving system("../../zoo/make-dist.sh && \ echo install zoo package && \ cd ../../pyzoo && \ pwd && \ py...
958
4,036
<gh_stars>1000+ class Base(object): class C(object): pass def meth(self): pass class Derived(Base): def meth(self): super(Derived, self).meth() super(Derived, self).x class Derived2(Base): def meth(self): pass class C(object): pass
131
558
<reponame>jiashiwen/redissyncer-server package syncer.replica.event.iter.datatype; public class BatchedKeyStringValueStringEvent extends BatchedKeyValuePairEvent<byte[], byte[]> { private static final long serialVersionUID = 1L; }
77
1,838
// Feature tests of parsing Checked C interop annotations that declare // an alternate checked pointer type for a variable or member with // unchecked pointer type. // // The following lines are for the LLVM test harness: // // RUN: %clang_cc1 -verify %s #include <stdchecked.h> // // parameters with interop type anno...
1,568
2,107
<filename>outdated/win/gem/load_img.c<gh_stars>1000+ /* * $NHDT-Date: 1432512809 2015/05/25 00:13:29 $ $NHDT-Branch: master $:$NHDT-Revision: 1.5 $ */ #define __TCC_COMPAT__ #include <stdio.h> #include <string.h> #include <osbind.h> #include <memory.h> #include <aesbind.h> #include <vdibind.h> #include <gemfast.h> #...
4,975
616
/* * Copyright (C) 2015 <NAME> & <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 a...
720
930
package com.foxinmy.weixin4j.mp.message; import java.io.Serializable; import com.foxinmy.weixin4j.tuple.NotifyTuple; /** * 客服消息(48小时内不限制发送次数) * * @author jinyu(<EMAIL>) * @date 2014年4月4日 * @since JDK 1.6 * @see com.foxinmy.weixin4j.tuple.Text * @see com.foxinmy.weixin4j.tuple.Image * @see com....
593
648
import os.path as osp import numpy as np import pytest from mmcv.utils import assert_dict_has_keys from mmaction.datasets import AudioFeatureDataset from .base import BaseTestDataset class TestAudioFeatureDataset(BaseTestDataset): def test_audio_feature_dataset(self): audio_dataset = AudioFeatureDatase...
1,286
2,270
/* ============================================================================== This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited JUCE is an open source library subject to commercial or open-source licensing. By using JUCE, you agree to the terms of...
1,293
4,526
<gh_stars>1000+ #include <test.hpp> #include <vtzero/feature.hpp> #include <vtzero/layer.hpp> #include <vtzero/vector_tile.hpp> TEST_CASE("default constructed feature") { vtzero::feature feature{}; REQUIRE_FALSE(feature.valid()); REQUIRE_FALSE(feature); REQUIRE(feature.id() == 0); REQUIRE_FALSE(...
1,184
1,127
// Copyright (C) 2018-2022 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #pragma once #include <tuple> #include <vector> #include <string> #include <memory> #include "shared_test_classes/base/layer_test_utils.hpp" #include "base/behavior_test_utils.hpp" #include "ngraph_functions/builders.hpp" #includ...
785
2,151
<filename>third_party/angle/src/libANGLE/renderer/d3d/d3d11/IndexBuffer11.h<gh_stars>1000+ // // Copyright (c) 2012 The ANGLE 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. // // IndexBuffer11.h: Defines the D3D11 IndexBuffe...
532
13,885
<filename>filament/src/details/Texture.h /* * Copyright (C) 2015 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...
1,747
15,577
<reponame>tianyiYoung/ClickHouse<filename>src/AggregateFunctions/AggregateFunctionDeltaSumTimestamp.h #pragma once #include <type_traits> #include <experimental/type_traits> #include <IO/ReadHelpers.h> #include <IO/WriteHelpers.h> #include <Columns/ColumnVector.h> #include <DataTypes/DataTypesDecimal.h> #include <Da...
2,633
11,356
/*-----------------------------------------------------------------------------+ Copyright (c) 2008-2009: <NAME> +------------------------------------------------------------------------------+ Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENCE.txt or copy at h...
2,129
2,151
<filename>catapult_build/temp_deployment_dir.py #!/usr/bin/python # Copyright 2015 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import contextlib import os import shutil import tempfile @contextlib.contextmanager def ...
375
563
<gh_stars>100-1000 package com.gentics.mesh.context; import com.gentics.mesh.core.data.branch.HibBranch; import com.gentics.mesh.core.data.project.HibProject; import com.gentics.mesh.core.data.schema.HibSchemaVersion; import com.gentics.mesh.core.endpoint.migration.MigrationStatusHandler; import com.gentics.mesh.core....
379
1,091
<gh_stars>1000+ /* * Copyright (c) 2015-2020, Oracle and/or its affiliates. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/li...
1,699
4,559
// // SUTouchBarButtonGroup.h // Sparkle // // Created by <NAME> on 05/01/2017. // Copyright © 2017 Sparkle Project. All rights reserved. // #if SPARKLE_BUILD_UI_BITS || !BUILDING_SPARKLE #import <Cocoa/Cocoa.h> NS_ASSUME_NONNULL_BEGIN @interface SUTouchBarButtonGroup : NSViewController @property (nonatomic, r...
187
4,036
// Generated automatically from com.google.common.collect.Range for testing purposes package com.google.common.collect; import com.google.common.base.Predicate; import com.google.common.collect.BoundType; import com.google.common.collect.DiscreteDomain; import com.google.common.collect.RangeGwtSerializationDependenci...
926
2,138
<gh_stars>1000+ package org.jeecgframework.web.cgform.enhance; import java.text.SimpleDateFormat; import java.util.Date; import net.sf.json.JSONObject; import org.apache.commons.lang.math.RandomUtils; /** * 订单号生成规则实现类 * @author YanDong */ public class OrderNumFillRule implements IFillRuleHandler{ @Override pu...
349
485
<gh_stars>100-1000 # !/usr/bin/python # -*- coding: utf-8 -*- # @time : 2020/1/9 21:44 # @author : Mo # @function: CRF from macropodus.network.base.graph import graph from macropodus.network.layers.crf import CRF import tensorflow as tf class CRFGraph(graph): def __init__(self, hyper_parameters): ""...
1,166
190,993
# 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 applicab...
1,137
539
<filename>nRF Toolbox/BGM/Model/ContinuousGlucoseReading.h // // ContinuousGlucoseReading.h // nRF Toolbox // // Created by <NAME> on 28/04/16. // Copyright © 2016 Nordic Semiconductor. All rights reserved. // #import <Foundation/Foundation.h> #import "ContinuousGlucoseFeatureData.h" typedef enum { MG_DL = 0, ...
1,020
428
void start(__attribute__((annotate("an annotation"))) int);
17
10,504
import pytest from pymilvus import DataType, ParamError, BaseException from utils import * from constants import * ADD_TIMEOUT = 60 uid = "test_insert" field_name = default_float_vec_field_name binary_field_name = default_binary_vec_field_name default_single_query = { "bool": { "must": [ {"vect...
18,962
1,940
<gh_stars>1000+ package org.opentech.activities; import android.content.Intent; import android.graphics.Color; import android.net.Uri; import android.os.Bundle; import android.support.v7.app.ActionBarActivity; import android.support.v7.widget.Toolbar; import android.text.TextUtils; import android.util.Log; import andr...
1,086
14,668
// Copyright 2016 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. package org.chromium.net.smoke; import android.content.Context; import org.json.JSONObject; import org.chromium.net.ExperimentalCronetEngine; import j...
983
310
{ "name": "Metro (iOS)", "description": "A news app.", "url": "https://itunes.apple.com/us/app/id465059515" }
48
369
<gh_stars>100-1000 // Copyright (c) 2017-2021, <NAME>. All rights reserved. // For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md #ifndef DATECOMMON_H #define DATECOMMON_H #include "time_conversion_factory.hpp" #include <Utils.hpp> #include <date/date.h> #include <random> using Clock = std::chro...
5,401
495
<reponame>StudistCorporation/media-for-mobile<filename>domain/src/main/java/org/m4m/domain/pipeline/OutputFormatChangedHandler.java /* * Copyright 2014-2016 Media for Mobile * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You ...
967
553
#include "jsb_cocos2dx_pluginx_auto.hpp" #include "jsb_pluginx_spidermonkey_specifics.h" #include "jsb_pluginx_basic_conversions.h" using namespace pluginx; #include "PluginManager.h" #include "ProtocolAnalytics.h" #include "ProtocolIAP.h" #include "ProtocolAds.h" #include "ProtocolShare.h" #include "ProtocolSocial.h" ...
26,672
2,151
// Copyright 2016 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_STORAGE_STORAGE_INFO_FETCHER_H_ #define CHROME_BROWSER_STORAGE_STORAGE_INFO_FETCHER_H_ #include "base/memory/ref_counted.h" #inclu...
762
7,150
<reponame>LaudateCorpus1/Learn-Algorithms // FROM:http://www.gowrikumar.com/c/ #include <stdlib.h> #include <stdio.h> void Error(char* s) { printf(s); return; } int main() { int *p; p = malloc(sizeof(int)); if(p == NULL) { Error("Could not allocate the memory\...
447
388
// // Copyright (C) 2009-2012 <NAME> (Tonkikh) // // 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 BOOSTER_TEST_H #define BOOSTER_TEST_H #include <stdexcept> #include <sstream> #define TEST(X) ...
243
371
<reponame>StepNeverStop/RLs from typing import Dict, List import torch as th import torch.nn as nn from rls.nn.mlps import MLP from rls.nn.represent_nets import RepresentationNetwork class QTranBase(nn.Module): def __init__(self, n_agents, state_spec, rep_net_...
1,667
2,219
<gh_stars>1000+ // Copyright (c) 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. #include "net/base/prioritized_task_runner.h" #include <algorithm> #include "base/bind.h" #include "base/task_runner.h" #include "ba...
1,248
1,057
<filename>script/testdata/exec_caller_from_witness.c #include "ckb_syscalls.h" int main() { int argc = 3; char *argv[] = {"a", "b", "c"}; syscall(2043, 0, 1, 1, 0, argc, argv); return -1; }
104
575
// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "content/browser/renderer_host/input/touch_action_filter.h" #include "content/browser/renderer_host/event_with_latency_info.h" #include "testing/...
28,128
713
<filename>leetcode.com/python/310_Minimum_Height_Trees.py from collections import deque class Solution(object): def findMinHeightTrees(self, n, edges): """ :type n: int :type edges: List[List[int]] :rtype: List[int] """ if n <= 0: return [] # wit...
1,004
1,338
/* * Copyright 2010, <NAME>, <EMAIL>. * Distributed under the terms of the MIT License. */ #include "HIDCollection.h" #include "HIDParser.h" #include "HIDReport.h" #include <File.h> #include <stdio.h> #include <stdlib.h> #include <string.h> int main(int argc, char *argv[]) { if (argc < 2) { printf("usage: %s...
477
325
#include "TestListener.hpp" #include <iostream> #include <chrono> #include <ctime> void TestListener::setCallbacks(std::function<void ()> &&codePreLoadCallback, std::function<void ()> &&codePostLoadCallback) { m_codePreLoadCallback = std::move(codePreLoadCallback); m_codePostLoadCallback = std::move(codePostL...
561
636
<gh_stars>100-1000 package cn.org.atool.fluent.mybatis.processor.base; import cn.org.atool.fluent.mybatis.processor.entity.CommonField; import cn.org.atool.fluent.mybatis.processor.filer.segment.*; import cn.org.atool.fluent.mybatis.utility.MybatisUtil; import com.squareup.javapoet.ClassName; import lombok.AccessLevel...
2,210
6,045
<filename>hug/__main__.py import hug hug.development_runner.hug.interface.cli()
31
3,285
<filename>oneflow/xrt/tensorrt/ops/op_kernel.h /* Copyright 2020 The OneFlow 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...
917
1,455
// ---------------------------------------------------------------------------- // - Open3D: www.open3d.org - // ---------------------------------------------------------------------------- // The MIT License (MIT) // // Copyright (c) 2018-2021 www.open3d.org // // Perm...
797
492
<filename>2019/07/30/Create Custom Commands in Flask/flask_commands_example/app.py<gh_stars>100-1000 from flask import Flask import click from flask.cli import with_appcontext from flask_sqlalchemy import SQLAlchemy app = Flask(__name__) app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///db.sqlite3' db = SQL...
205