max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
1,250
// // YNSearch.h // YNSearch // // Created by YiSeungyoun on 2017. 4. 19.. // Copyright © 2017년 SeungyounYi. All rights reserved. // #import <UIKit/UIKit.h> //! Project version number for YNSearch. FOUNDATION_EXPORT double YNSearchVersionNumber; //! Project version string for YNSearch. FOUNDATION_EXPORT const un...
158
742
<filename>OpenTESArena/src/Rendering/RectangleRenderDefinition.h #ifndef RECTANGLE_RENDER_DEFINITION_H #define RECTANGLE_RENDER_DEFINITION_H #include <type_traits> #include "RenderTextureUtils.h" // Defines a rectangle and how to render it. template <typename T> class RectangleRenderDefinition { public: enum class...
240
517
package org.tensorflow.framework.op; import static org.tensorflow.framework.utils.CastHelper.cast; import java.util.Arrays; import java.util.List; import org.junit.jupiter.api.Test; import org.tensorflow.Operand; import org.tensorflow.framework.utils.TestSession; import org.tensorflow.ndarray.Shape; import org.tensor...
2,099
1,993
/* * Copyright 2013-2020 The OpenZipkin 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...
10,833
1,350
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.appservice.models; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import com.fasterxm...
1,198
1,350
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.devtestlabs.models; import com.azure.core.util.ExpandableStringEnum; import com.fasterxml.jackson.annotation.JsonCreator; import...
366
576
# Copyright 2014 Facebook, Inc. # You are hereby granted a non-exclusive, worldwide, royalty-free license to # use, copy, modify, and distribute this software in source code or binary # form for use in connection with the web services and APIs provided by # Facebook. # As with any software that integrates with the Fa...
598
647
<filename>USBPcapCMD/roothubs.h /* * Copyright (c) 2013 <NAME> <<EMAIL>> * * SPDX-License-Identifier: BSD-2-Clause */ #ifndef USBPCAP_CMD_ROOTHUBS_H #define USBPCAP_CMD_ROOTHUBS_H void init_non_standard_roothub_hwid(); void restart_all_usb_devices(); #endif /* USBPCAP_CMD_ROOTHUBS_H */
132
6,636
# -*- coding: utf-8 -*- from __future__ import print_function import random import numpy as np from sklearn.cross_validation import train_test_split from keras.preprocessing.image import ImageDataGenerator from keras.models import Sequential from keras.layers import Dense, Dropout, Activation, Flatten from keras.layer...
3,676
474
<gh_stars>100-1000 // // TuSDKGPUColorAdjustmentFilter.h // TuSDK // // Created by <NAME> on 15/4/29. // Copyright (c) 2015年 tusdk.com. All rights reserved. // #import "TuSDKFilterAdapter.h" #import "TuSDKFilterParameter.h" /** * 颜色调整滤镜 */ @interface TuSDKGPUColorAdjustmentFilter : TuSDKFilter<TuSDKFilterParame...
147
1,738
<filename>dev/Code/Tools/AzCodeGenerator/AZCodeGenerator/Output.h<gh_stars>1000+ /* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this ...
755
453
#include "headers/tanf4.h" static __inline float _tanf(float angle) { return spu_extract(_tanf4(spu_promote(angle, 0)), 0); }
54
1,594
<reponame>kbfl0912/nogotofail r''' Copyright 2014 Google Inc. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by...
400
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 ...
394
311
import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.util.Map.Entry; import org.thunlp.io.JsonUtil; public class OutputForDemo { /** * @param args */ public...
445
1,085
/* * Copyright (C) 2017-2019 Dremio Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable l...
1,087
14,668
<filename>content/browser/accessibility/test_browser_accessibility_delegate.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 CONTENT_BROWSER_ACCESSIBILITY_TEST_BROWSER_ACCESSIBILITY_DELEGATE_H_...
616
930
package com.dianping.pigeon.remoting.common.codec; /** * @author qi.yin * 2016/11/04 下午7:41. */ public enum SerializerType { INTERNAL_THRIFT((byte) 1, "internalThrift"), HESSIAN((byte) 2, "hessian"), JAVA((byte) 3, "java"), PROTO((byte) 5, "proto"), HESSIAN1((byte) 6, "hessian1"), ...
1,703
1,066
package org.gradle.profiler.result; import java.time.Duration; public interface Sample<T extends BuildInvocationResult> { String getName(); Duration extractFrom(T result); }
56
348
{"nom":"<NAME>'Iton","circ":"1ère circonscription","dpt":"Eure","inscrits":5368,"abs":2877,"votants":2491,"blancs":53,"nuls":23,"exp":2415,"res":[{"nuance":"REM","nom":"<NAME>","voix":1021},{"nuance":"FN","nom":"Mme <NAME>","voix":449},{"nuance":"FI","nom":"M. <NAME>","voix":298},{"nuance":"DIV","nom":"M. <NAME>","voix...
366
348
<filename>docs/data/leg-t2/039/03902047.json<gh_stars>100-1000 {"nom":"Bellefontaine","circ":"2ème circonscription","dpt":"Jura","inscrits":429,"abs":233,"votants":196,"blancs":14,"nuls":3,"exp":179,"res":[{"nuance":"LR","nom":"<NAME>","voix":106},{"nuance":"MDM","nom":"Mme <NAME>","voix":73}]}
122
12,718
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef __LINUX_TC_MIR_H #define __LINUX_TC_MIR_H #include <linux/types.h> #include <linux/pkt_cls.h> #define TCA_EGRESS_REDIR 1 /* packet redirect to EGRESS*/ #define TCA_EGRESS_MIRROR 2 /* mirror packet to EGRESS */ #define TCA_INGRESS_REDIR 3 /* pack...
351
335
<gh_stars>100-1000 { "word": "Ontogenesis", "definitions": [ "The development of an individual organism or anatomical or behavioural feature from the earliest stage to maturity." ], "parts-of-speech": "Noun" }
79
534
from typing import List import os import csv from babel.messages import extract from babel.messages import Catalog from babel.messages import pofile PROJECT = "Learn GDScript From Zero" VERSION = " " COPYRIGHT_HOLDER = "GDQuest" BUGS_ADDRESS = "https://github.com/GDQuest/learn-gdscript" def extract_application_mess...
2,877
2,206
/* * ****************************************************************************** * * * * * * This program and the accompanying materials are made available under the * * terms of the Apache License, Version 2.0 which is available at * * https://www.apache.org/licenses/LICENSE-2.0. * * * * See the NO...
393
2,151
<gh_stars>1000+ // 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 "components/zucchini/suffix_array.h" #include <stddef.h> #include <stdint.h> #include <algorithm> #include <initializer_list> #...
4,656
392
/************************************************************** * mex interface to Andy Liaw et al.'s C code (used in R package randomForest) * Added by <NAME> ( <EMAIL> ) * License: GPLv2 * Version: 0.02 * * Supporting file that has some declarations. ************************************************************...
138
590
/*! @file @author <NAME> @date 09/2008 */ #include "Precompiled.h" #include "SettingsWindow.h" #include "CommandManager.h" namespace tools { SettingsWindow::SettingsWindow() : mListSettings(nullptr), mTabSettings(nullptr) { } void SettingsWindow::OnInitialise(Control* _parent, MyGUI::Widget* _place, co...
695
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,267
984
/* * Copyright DataStax, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in wri...
4,011
333
<gh_stars>100-1000 from functools import update_wrapper, wraps, partial import copy # noinspection PyUnresolvedReferences import nb_log from function_scheduling_distributed_framework.set_frame_config import patch_frame_config, show_frame_config from function_scheduling_distributed_framework.helpers import (fabric_deplo...
8,888
302
#include "networkaccessmanagercapture.h" #include "every_cpp.h" namespace BrowserAutomationStudioFramework { NetworkAccessManagerCapture::NetworkAccessManagerCapture(QObject *parent) : QNetworkAccessManager(parent) { } void NetworkAccessManagerCapture::SetNetworkAccessManager(NetworkAccessMan...
854
7,801
<reponame>PETEICKL/kotlin<gh_stars>1000+ /* * Copyright 2010-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ #ifndef RUNTIME_MM_GC_H #define RUNTIME_MM_GC_H #include "gc/NoOpGC.hpp" namespace kotlin { namespace mm { // TODO: GC shoul...
210
2,151
/* * Copyright (C) 2013 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
1,466
1,144
<reponame>rlourette/TI_SDK_u-boot-2019.01<filename>u-boot-2019.01+gitAUTOINC+333c3e72d3-g333c3e72d3/board/bticino/mamoj/mamoj.c // SPDX-License-Identifier: GPL-2.0+ /* * Copyright (C) 2018 <NAME> <<EMAIL>> * Copyright (C) 2018 <NAME> <<EMAIL>> * Copyright (C) 2018 <NAME> <<EMAIL>> */ #include <common.h> #include <...
254
892
{ "schema_version": "1.2.0", "id": "GHSA-cx5r-83xq-rv5h", "modified": "2022-05-13T01:43:16Z", "published": "2022-05-13T01:43:16Z", "aliases": [ "CVE-2017-13827" ], "details": "An issue was discovered in certain Apple products. macOS before 10.13 is affected. The issue involves the \"kext tools\" compo...
413
879
<reponame>qianfei11/zstack package org.zstack.network.service.lb; import org.zstack.header.identity.rbac.RBACDescription; public class RBACInfo implements RBACDescription { @Override public void permissions() { permissionBuilder() .name("load-balancer") .normalAPIs("org...
390
3,933
bezctx * new_bezctx_hittest(double x, double y); double bezctx_hittest_report(bezctx *z, int *p_knot_idx);
52
1,067
// // MHMainFrameItemViewModel.h // WeChat // // Created by senba on 2017/10/20. // Copyright © 2017年 CoderMikeHe. All rights reserved. // #import <Foundation/Foundation.h> #import "MHLiveRoom.h" @interface MHMainFrameItemViewModel : NSObject /// LiveRoom @property (nonatomic, readonly, strong) MHLiveRoom *liveRo...
222
607
<gh_stars>100-1000 /* * This file is a part of the open source stm32plus library. * Copyright (c) 2011,2012,2013,2014 <NAME> <www.andybrown.me.uk> * Please see website for licensing terms. */ #pragma once namespace stm32plus { namespace usb { /* * Event class for device class data in */ str...
254
1,770
package com.willowtreeapps.hyperion.attr.collectors; import android.content.Context; import android.content.res.ColorStateList; import android.content.res.Resources; import android.graphics.drawable.ColorDrawable; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.core.view.MenuIt...
1,227
5,355
package graphql.validation.rules; import graphql.Internal; import graphql.language.NullValue; import graphql.language.Value; import graphql.schema.GraphQLType; import static graphql.schema.GraphQLNonNull.nonNull; import static graphql.schema.GraphQLTypeUtil.isList; import static graphql.schema.GraphQLTypeUtil.isNonN...
618
497
#include <stdafx.h> #include "LiveSettings.h" #include "Registry.h" /* ------------------------------------------------------------------- */ void CLiveSettings::LoadFromRegistry() { CRegistry reg; reg.LoadKey(REGENTRY_BASEKEY_LIVE, _T("StackingFlags"), m_dwStackingFlags); reg.LoadKey(REGENTRY_BASEKEY_LIVE, _T(...
1,541
852
<gh_stars>100-1000 #ifndef CondFormats_CastorObjects_AllObjects_h #define CondFormats_CastorObjects_AllObjects_h #include "CondFormats/CastorObjects/interface/CastorPedestals.h" #include "CondFormats/CastorObjects/interface/CastorPedestalWidths.h" #include "CondFormats/CastorObjects/interface/CastorGains.h" #include "...
332
551
#include "Etterna/Globals/global.h" #include "RageSoundUtil.h" #include "RageUtil/Utils/RageUtil.h" #include <algorithm> void RageSoundUtil::Attenuate(float* pBuf, int iSamples, float fVolume) { while (iSamples--) { *pBuf *= fVolume; ++pBuf; } } /* Pan buffer left or right; fPos is -1...+1. Buffer is assumed ...
1,063
518
<reponame>juanmendes/marge-bot import re import tempfile from . import git class RepoManager: def __init__(self, user, root_dir, timeout=None, reference=None): self._root_dir = root_dir self._user = user self._repos = {} self._timeout = timeout self._reference = reference...
1,258
721
{ "api_id": "lifesciences:v2beta", "name_pretty": "Cloud Life Sciences API", "distribution_name": "google-apis-lifesciences_v2beta", "language": "ruby", "library_type": "REST" }
86
852
<filename>Validation/EventGenerator/interface/TauDecay_CMSSW.h // -*- C++ -*- // // Package: TauNtuple // Class: TauDecay_CMSSW // /**\class TauDecay TauDecay_CMSSW.cc TauDataFormat/TauNtuple/src/TauDecay_CMSSW.cc Description: Bridge class for TauDecay when using HepMC Implementation: [Notes on impleme...
585
3,229
<filename>jar-infer/test-java-lib-jarinfer/src/main/java/com/uber/nullaway/jarinfer/toys/unannotated/Foo.java package com.uber.nullaway.jarinfer.toys.unannotated; public class Foo { private String foo; public Foo(String str) { if (str == null) str = "foo"; this.foo = str; } public boolean run(@Expect...
296
4,036
<filename>java/ql/test/stubs/spring-ldap-2.3.2/org/springframework/ldap/core/NameClassPairCallbackHandler.java package org.springframework.ldap.core; public interface NameClassPairCallbackHandler { }
66
324
<filename>src/crt/stack_protection.c #include <crt.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #ifndef STACK_CHK_GUARD_VALUE #if UINTPTR_MAX == UINT32_MAX #define STACK_CHK_GUARD_VALUE 0xa5f3cc8d #else #define STACK_CHK_GUARD_VALUE 0xdeadbeefa55a8572 #endif #endif #ifdef DISABLE_STACK_CHK_GUARD_RUNT...
485
1,292
<filename>sikuli-script/src/main/java/org/sikuli/script/ScriptRunner.java /* * Copyright 2010-2011, Sikuli.org * Released under the MIT License. * */ package org.sikuli.script; import java.io.*; import java.util.*; import javax.swing.*; import org.python.util.PythonInterpreter; import org.python.core.*; public c...
1,334
2,330
<filename>immediate_assignment_catcher.py<gh_stars>1000+ #!/usr/bin/python # -*- coding: utf-8 -*- # Author: Oros # 2016/10/06 # License : CC0 1.0 Universal """ Display SDCCH, Subchannel, Timeslot, HoppingChannel, ARFCN """ from scapy.all import sniff from optparse import OptionParser def find_assignment(x): """ 0...
1,899
679
<reponame>Grosskopf/openoffice<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 * regarding copyrig...
21,114
317
<reponame>Benefit-Zebra/ballistica /************************************************************************* * * * Open Dynamics Engine, Copyright (C) 2001,2002 <NAME>. * * All rights reserved. Email: <EMAIL> Web: www.q12.org * * * * This library is free software; you can redistribute it a...
3,524
728
<gh_stars>100-1000 /** * Copyright (c) 2010, Distributed Systems Group, University of Konstanz * * 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,149
368
from typing import Iterable, Optional from cutecharts.charts.basic import BasicChart class Bar(BasicChart): CHART_TYPE = "Bar" def set_options( self, labels: Iterable, x_label: str = "", y_label: str = "", y_tick_count: int = 3, colors: Optional[Iterable] = N...
622
4,081
<gh_stars>1000+ /* * The Alluxio Open Foundation licenses this work under the Apache License, version 2.0 * (the "License"). You may not use this work except in compliance with the License, which is * available at www.apache.org/licenses/LICENSE-2.0 * * This software is distributed on an "AS IS" basis, WITHOUT WAR...
477
2,690
# Copyright ClusterHQ Inc. See LICENSE file for details. """ Tests for ``flocker-diagnostics``. """ import os import tarfile from twisted.internet import reactor from twisted.python.filepath import FilePath from ...common.runner import run_ssh, download from ...testtools import AsyncTestCase, async_runner from ..t...
1,824
822
<reponame>yangyangkiki/pytorch-lightning-bolts import numpy as np import torch from torch import Tensor def tile(a: Tensor, dim: int, n_tile: int) -> Tensor: init_dim = a.size(dim) repeat_idx = [1] * a.dim() repeat_idx[dim] = n_tile a = a.repeat(*repeat_idx) order_index = torch.LongTensor(np.conca...
185
482
package org.nutz.boot.starter.prevent.duplicate.submit.annotation; /** * @author 黄川 <EMAIL> * @date: 2018/8/14 * 描述此类: */ public enum Type { CREATE, REMOVE }
83
977
<reponame>taptalk-io/meettalk-ios #ifndef REALM_UTIL_MISC_EXT_ERRORS_HPP #define REALM_UTIL_MISC_EXT_ERRORS_HPP #include <system_error> namespace realm { namespace util { /// FIXME: The intention is that this enum will be merged into, and subsumed by /// util::MiscErrors in `<realm/util/misc_errors.hpp>` in the core...
473
548
__version__ = "10.0.1"
13
2,061
/* * Copyright (c) 2017 <NAME> * Copyright (c) 2017 <NAME> * * HW Acceleration API (video decoding) decode sample * * This file is part of FFmpeg. * * FFmpeg is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Softwar...
3,586
32,544
<filename>testing-modules/groovy-spock/src/main/java/mocks/ItemProvider.java package mocks; import java.util.List; public interface ItemProvider { List<Item> getItems(List<String> itemIds); }
70
1,773
/* * The MIT License * * Copyright (c) 2009-2021 PrimeTek * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy...
935
2,858
/* * Copyright (c) Facebook, Inc. and its affiliates. * All rights reserved. * * This source code is licensed under the MIT-style license found in the * LICENSE file in the root directory of this source tree. */ #include "flashlight/lib/set/Hungarian.h" #include <assert.h> #include <limits> #include <vector> n...
4,145
1,350
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.containerregistry.models; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import com.f...
559
2,151
package com.google.typography.font.sfntly.table.opentype.contextsubst; import com.google.typography.font.sfntly.data.ReadableFontData; import com.google.typography.font.sfntly.table.opentype.component.OffsetRecordTable; public abstract class SubGenericRuleSet<T extends DoubleRecordTable> extends OffsetRecordTable<T> ...
360
435
/* * Copyright (C) 2014 <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 ...
5,336
1,056
<reponame>Antholoj/netbeans /* * 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 ...
7,456
1,479
<reponame>redmi111/ormlite-android<filename>src/main/java/com/j256/ormlite/android/apptools/BaseOrmLiteLoader.java package com.j256.ormlite.android.apptools; import java.util.List; import com.j256.ormlite.dao.Dao; import com.j256.ormlite.dao.Dao.DaoObserver; import android.content.AsyncTaskLoader; import android.con...
781
1,329
<filename>3rdparty/rang/test/test.cpp #define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN #include "doctest.h" #include "rang.hpp" #include <fstream> #include <string> using namespace std; using namespace rang; #if defined(__unix__) || defined(__unix) || defined(__linux__) #define OS_LINUX #elif defined(WIN32) || defined(_WI...
3,907
437
from ..common import DtoObject class SummonerSpellDto(DtoObject): pass class SummonerSpellListDto(DtoObject): pass
43
678
<gh_stars>100-1000 /** * This header is generated by class-dump-z 0.2b. * * Source: /System/Library/PrivateFrameworks/OfficeImport.framework/OfficeImport */ #import <OfficeImport/EDTable.h> #import <OfficeImport/XXUnknownSuperclass.h> @class EDReference, EDResources, NSString, EDCollection; __attribute__((visibi...
2,832
398
<gh_stars>100-1000 void android_main (struct android_app* app) { }
27
318
#ifndef PY_OPENGM_HDF5 #define PY_OPENGM_HDF5 // #define PY_ARRAY_UNIQUE_SYMBOL PyArrayHandleHdf5 #ifdef WITH_HDF5 #include <boost/python.hpp> #include <stdexcept> #include <stddef.h> #include <opengm/graphicalmodel/graphicalmodel.hxx> #include <opengm/graphicalmodel/graphicalmodel_hdf5.hxx> #include <opengm/pytho...
550
1,647
<reponame>davidbrochart/pythran<gh_stars>1000+ #ifndef PYTHONIC_NUMPY_RANDOM_EXPONENTIAL_HPP #define PYTHONIC_NUMPY_RANDOM_EXPONENTIAL_HPP #include "pythonic/include/numpy/random/generator.hpp" #include "pythonic/include/numpy/random/exponential.hpp" #include "pythonic/types/NoneType.hpp" #include "pythonic/types/nda...
570
879
<gh_stars>100-1000 package com.app.service; import com.app.dao.Dao; import com.app.dto.CategoryDto; import com.app.entity.BottomCategory; import com.app.entity.MiddleCategory; import com.app.entity.TopCategory; import java.util.List; import org.springframework.stereotype.Service; import org.springframework.transaction...
830
17,703
<reponame>dcillera/envoy<gh_stars>1000+ #include "source/common/buffer/buffer_impl.h" #include "source/extensions/filters/network/thrift_proxy/app_exception_impl.h" #include "test/extensions/filters/network/thrift_proxy/mocks.h" #include "gmock/gmock.h" #include "gtest/gtest.h" using testing::InSequence; using testi...
1,255
348
<gh_stars>100-1000 {"nom":"Vira","circ":"1ère circonscription","dpt":"Ariège","inscrits":131,"abs":64,"votants":67,"blancs":9,"nuls":3,"exp":55,"res":[{"nuance":"FI","nom":"<NAME>","voix":33},{"nuance":"REM","nom":"<NAME>","voix":22}]}
96
775
<reponame>ccdd13/thor /* Copyright (c) 2015, Cisco Systems All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditi...
12,573
852
import FWCore.ParameterSet.Config as cms # List of bins to ignore ignoreBinsDeStage2Omtf = [1, 14] # compares the unpacked OMTF regional muon collection to the emulated OMTF regional muon collection # only muons that do not match are filled in the histograms from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer l1t...
359
4,879
<filename>base/base_tests/bidirectional_map_tests.cpp #include "testing/testing.hpp" #include "base/bidirectional_map.hpp" #include "base/macros.hpp" #include <map> #include <string> #include <unordered_map> using namespace base; using namespace std; UNIT_TEST(BidirectionalMap_Smoke) { BidirectionalMap<int, strin...
873
2,635
<gh_stars>1000+ package com.cjj.sva.utils; import android.util.Log; /** * 这是一个神奇的类,神奇就是它可以打log,而你,不可以打我! * */ public final class LogHelper { public static final boolean mIsDebugMode = true;// 获取堆栈信息会影响性能,发布应用时记得关闭DebugMode private static final String TAG = "JJSearchView"; private static final String ...
617
350
<gh_stars>100-1000 { "name" : "MaximumImageFilter", "template_code_filename" : "BinaryFunctorFilter", "template_test_filename" : "ImageFilter", "constant_type" : "double", "number_of_inputs" : 2, "doc" : "Some global documentation", "pixel_types" : "BasicPixelIDTypeList", "members" : [], "tests" : [ ...
403
1,758
#include "Verification.h" #include "z3++.h" using namespace z3; using namespace souper; int main(int argc, char **argv) { context ctx; // auto K0 = std::make_shared<KnownZeroDomain>(ctx); // auto K1 = std::make_shared<KnownOneDomain>(ctx); // // ComposedDomain KnownZero({K0, K1}, ctx); // KnownZero.Ops["and...
755
2,518
// Copyright 2020 Google LLC // // 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 ...
819
482
package org.nutz.boot.starter.elasticsearch; import org.elasticsearch.client.transport.TransportClient; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.common.transport.TransportAddress; import org.elasticsearch.transport.client.PreBuiltTransportClient; import org.nutz.boot.annotation.PropD...
1,222
517
<reponame>jaybill/mimic1 DEF_STATIC_CONST_VAL_STRING(val_0000,"pau"); DEF_STATIC_CONST_VAL_STRING(val_0001,"BB"); DEF_STATIC_CONST_VAL_FLOAT(val_0002,2.000000); #define CTNODE_vid_gb_ap_cg_08_dur_NO_0001 3 DEF_STATIC_CONST_VAL_FLOAT(val_0003,0.000000); #define CTNODE_vid_gb_ap_cg_08_dur_NO_0000 4 DEF_STATIC_CONST_VAL_F...
319,775
5,169
{ "name": "BBTOnestepLoginKit", "version": "0.1.0", "summary": "A short description of BBTOnestepLoginKit.", "description": "一键登录sdk", "homepage": "<EMAIL>:bbt-client-components/BBTOnestepLoginKit.git", "license": { "type": "MIT", "file": "LICENSE" }, "authors": { "Matcha00": "<EMAIL>" }, ...
472
521
<reponame>0xflotus/voctomix class Response(object): def __init__(self, *args): self.args = args def __str__(self): return " ".join(map(str, self.args)) class OkResponse(Response): pass class NotifyResponse(Response): pass
109
335
{ "word": "Analogue", "definitions": [ "A person or thing seen as comparable to another.", "A compound with a molecular structure closely similar to that of another." ], "parts-of-speech": "Noun" }
84
315
import matplotlib.pyplot as plt from mpl_toolkits.basemap import Basemap def main(): bm = Basemap(projection="rotpole", o_lat_p=36.0, o_lon_p=180.0, llcrnrlat=-10.590603, urcrnrlat=46.591976, llcrnrlon=-139.08585, ...
410
344
<gh_stars>100-1000 package com.clickhouse.client.data; import java.io.EOFException; import java.io.IOException; import java.nio.charset.StandardCharsets; import java.util.ArrayList; import java.util.Collections; import java.util.EnumMap; import java.util.List; import java.util.Map; import com.clickhouse.client.ClickH...
5,163
848
/* * Copyright 2019 Xilinx Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
4,920
702
<reponame>littledivy/webview_deno { "$schema": "https://deno.land/x/denon/schema.json", "watch": false, "unstable": true, "allow": "all", "scripts": { "dev": { "cmd": "deno run scripts/dev.ts", "desc": "runs the dev command" }, "dev:blocking": { "cmd": "deno run scripts/dev.ts ex...
773
354
<reponame>iabernikhin/VK-GL-CTS #ifndef _TES3TESTCASE_HPP #define _TES3TESTCASE_HPP /*------------------------------------------------------------------------- * drawElements Quality Program OpenGL ES 3.0 Module * ------------------------------------------------- * * Copyright 2014 The Android Open Source Project ...
868
1,408
<filename>tools/cert_create/include/tbbr/tbb_ext.h<gh_stars>1000+ /* * Copyright (c) 2015-2020, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #ifndef TBB_EXT_H #define TBB_EXT_H #include "ext.h" /* TBBR extensions */ enum { TRUSTED_FW_NVCOUNTER_EXT, NON_TRUSTED_...
616
931
<gh_stars>100-1000 // Given an array of size n. Your task is to find three values (at distinct positions) whose sum is x. // (1<=n<=5000, 1<=x<=10^9) // Input: // 4 8 // 2 7 5 1 // Output: // 1 3 4 // Time complexity: O(n^2) // Concepts Involved: Sorting, Pointers #include<bits/stdc++.h> #define fl(i...
650