max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
854
<gh_stars>100-1000 __________________________________________________________________________________________________ sample 1 ms submission class Solution { public int slidingPuzzle(int[][] board) { if (noSolution(board)) return -1; int target = 42792; // 123450 = 001 010 011 100...
2,498
3,307
<filename>contrib/c/dynet_c/init.h #ifndef DYNET_C_INIT_H_ #define DYNET_C_INIT_H_ #include <dynet_c/define.h> /** * Opaque type of DynetParams. */ typedef struct dynetDynetParams dynetDynetParams_t; /** * Creates a new DynetParams object. * @param newobj Pointer to receive a handler. * @return Status code. */...
1,227
626
package org.jsmart.zerocode.core.zzignored.mocking; import com.github.tomakehurst.wiremock.client.WireMock; import com.github.tomakehurst.wiremock.junit.WireMockRule; import org.jboss.resteasy.client.ClientRequest; import org.jboss.resteasy.client.ClientResponse; import org.jboss.resteasy.client.core.executors.ApacheH...
951
348
<reponame>chamberone/Leaflet.PixiOverlay<gh_stars>100-1000 {"nom":"Nandy","circ":"11ème circonscription","dpt":"Seine-et-Marne","inscrits":4098,"abs":2298,"votants":1800,"blancs":15,"nuls":8,"exp":1777,"res":[{"nuance":"SOC","nom":"M. <NAME>","voix":595},{"nuance":"REM","nom":"Mme <NAME>","voix":468},{"nuance":"FI","no...
252
707
// Copyright (c) FIRST and other WPILib contributors. // Open Source Software; you can modify and/or share it under the terms of // the WPILib BSD license file in the root directory of this project. #include "HALSimHttpConnection.h" #include <uv.h> #include <string_view> #include <fmt/format.h> #include <wpi/MimeTy...
2,708
348
<reponame>chamberone/Leaflet.PixiOverlay<gh_stars>100-1000 {"nom":"Monnières","circ":"3ème circonscription","dpt":"Jura","inscrits":347,"abs":160,"votants":187,"blancs":14,"nuls":5,"exp":168,"res":[{"nuance":"MDM","nom":"<NAME>","voix":93},{"nuance":"LR","nom":"<NAME>","voix":75}]}
117
965
<gh_stars>100-1000 void MyFunc() { CComObjectStack<CMyClass2> Tempobj; //... }
39
767
import torch.nn as nn import torch.nn.functional as F from custom_layers.flatten_layer import FlattenLayer from custom_layers.se_block import SEBlock class ConvBuilder(nn.Module): def __init__(self, base_config): super(ConvBuilder, self).__init__() print('ConvBuilder initialized.') ...
3,990
345
import os import unittest from programy.utils.files.filewriter import ContentFileWriter from programy.utils.files.filewriter import FileWriterConfiguration from programytest.utils.files.utils import get_os_specific_path class ContentFileWriterTests(unittest.TestCase): def test_init(self): config = FileWr...
251
388
/* 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...
10,741
679
<filename>main/sal/inc/rtl/alloc.h /************************************************************** * * 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. ...
2,630
1,467
<filename>core/sdk-core/src/main/java/software/amazon/awssdk/core/retry/backoff/BackoffStrategy.java /* * Copyright 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 cop...
1,598
892
{ "schema_version": "1.2.0", "id": "GHSA-fh74-hm69-rqjw", "modified": "2021-05-24T21:20:41Z", "published": "2021-05-27T18:41:17Z", "aliases": [ "CVE-2019-19921" ], "summary": "procfs race condition with a shared volume mount", "details": "### Impact\nBy crafting a malicious root filesystem (with `/p...
1,727
580
<reponame>omonimus1/angorithm_AND_dataStructure // UVA01124.cpp : This file contains the 'main' function. Program execution begins and ends there. // #include <iostream> #include<string> using namespace std; int main() { string line; while (getline(cin, line)) { cout << line << endl; } }
122
3,477
<filename>src/parser/pass.h // Copyright Microsoft and Project Verona Contributors. // SPDX-License-Identifier: MIT #pragma once #include "dispatch.h" #include "fields.h" #include <iostream> namespace verona::parser { #define AST_PASS \ void pre(NodeDef& node) {} \ void post(NodeDef& node) {} template<typenam...
794
940
<gh_stars>100-1000 /* * disk.h - Generic disk driver * * Basilisk II (C) 1997-2008 <NAME> * * 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 Foundation; either version 2 of the License, or * (a...
458
5,156
<reponame>jalapenopuzzle/rr<filename>src/test/usb.c /* -*- Mode: C; tab-width: 8; c-basic-offset: 2; indent-tabs-mode: nil; -*- */ /* Based on https://github.com/ktossell/libuvc/blob/master/src/example.c Software License Agreement (BSD License) Copyright (C) 2010-2015 <NAME> All rights reserved. Redistribution and ...
1,653
3,372
/* * 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/apache2.0 * * or in the "licen...
14,878
5,169
{ "name": "GSLLivePlayer", "version": "1.1.1", "summary": "GSL LivePlayer", "description": "哥斯拉六路连麦", "homepage": "https://github.com/wangtongvip/GSLLivePlayer/blob/master/README.md", "license": { "type": "MIT", "file": "LICENSE" }, "authors": { "wangtong": "<EMAIL>" }, "platforms": { ...
444
15,577
<filename>src/Storages/VirtualColumnUtils.h #pragma once #include <Core/Block.h> #include <Interpreters/Context_fwd.h> #include <Parsers/IAST_fwd.h> #include <Storages/SelectQueryInfo.h> #include <unordered_set> namespace DB { class NamesAndTypesList; namespace VirtualColumnUtils { /// Adds to the select query ...
530
343
import logging import torch.nn as nn from networks.ops import SpectralNorm def conv5x5(in_planes, out_planes, stride=1, groups=1, dilation=1): """5x5 convolution with padding""" return nn.Conv2d(in_planes, out_planes, kernel_size=5, stride=stride, padding=2, groups=groups, bias=...
2,779
14,668
<gh_stars>1000+ // Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CONTENT_PUBLIC_TEST_MOCK_RENDER_THREAD_H_ #define CONTENT_PUBLIC_TEST_MOCK_RENDER_THREAD_H_ #include <stddef.h> #include <std...
2,012
460
#include "../../../tools/assistant/lib/fulltextsearch/qquery_p.h"
26
836
<filename>runner/android_junit_runner/java/androidx/test/internal/runner/listener/TraceRunListener.java /* * Copyright (C) 2021 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 c...
575
575
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_CAPTIVE_PORTAL_CAPTIVE_PORTAL_SERVICE_FACTORY_H_ #define CHROME_BROWSER_CAPTIVE_PORTAL_CAPTIVE_PORTAL_SERVICE_FACTORY_H_ #incl...
545
4,816
/** * @file include/retdec/config/config_exceptions.h * @brief Definitions of config exceptions. * @copyright (c) 2017 Avast Software, licensed under the MIT license */ #ifndef RETDEC_CONFIG_CONFIG_EXCEPTIONS_H #define RETDEC_CONFIG_CONFIG_EXCEPTIONS_H #include <exception> #include <string> namespace retdec { na...
762
789
from hailtop.hail_logging import configure_logging # configure logging before importing anything else configure_logging() from .memory import run # noqa: E402 pylint: disable=wrong-import-position run()
61
721
package crazypants.enderio.base.item.darksteel.upgrade.hoe; import java.util.List; import javax.annotation.Nonnull; import com.enderio.core.common.util.NNList; import crazypants.enderio.api.upgrades.IDarkSteelItem; import crazypants.enderio.api.upgrades.IDarkSteelUpgrade; import crazypants.enderio.api.upgrades.IRul...
640
364
<filename>implement/oglplus/enums/pixel_data_type_range.ipp // File implement/oglplus/enums/pixel_data_type_range.ipp // // Automatically generated file, DO NOT modify manually. // Edit the source 'source/enums/oglplus/pixel_data_type.txt' // or the 'source/enums/make_enum.py' script instead. // // Copyright 2010-...
1,207
2,960
#include <stdio.h> #include <stdlib.h> int removeElement(int *nums, int numsSize, int val) { int i, count = 0; for (i = 0; i < numsSize; i++) { if (nums[i] != val) { nums[count++] = nums[i]; } } return count; } int main(int argc, char **argv) { int i; int *nums = m...
314
1,256
#pragma once #include "FarPluginBase.hpp" #include "SystemApi.hpp" #include "strmix.hpp" #include "debug.h" #include "makeguid.h" #include "AnsiGuard.hpp" #include "D5D/d5dformat.h" #include "D5D/d5dlanguage.h" #include "../../API/module.hpp" class D5DModule; class D5DPlugin; class D5DArchive; class D5DLanguage; ...
195
3,799
<filename>core/core/src/main/java/androidx/core/content/pm/ShortcutInfoCompatSaver.java /* * Copyright 2018 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 a...
750
8,865
<filename>atlas-aapt/frameworks/base/libs/androidfw/tests/AttributeFinder_test.cpp /* * Copyright (C) 2014 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...
1,947
17,104
<filename>mars/boost/predef/architecture/x86/64.h /* Copyright <NAME> 2008-2015 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 BOOST_PREDEF_ARCHITECTURE_X86_64_H #define BOOST_PREDEF_ARCHITECTURE_X86_...
664
1,936
<filename>algorithms/map-optimization-legacy/test/test_remove_mission_test.cc #include <gtest/gtest.h> #include <maplab-common/test/testing-entrypoint.h> #include <maplab-common/test/testing-predicates.h> #include <vi-map/check-map-consistency.h> #include "map-optimization-legacy/test/6dof-vi-map-gen.h" namespace ma...
2,243
5,169
{ "name": "zzhengkit", "version": "1.0.0", "summary": "zzkit是自定义的控件.", "description": "zzkit 是一个用于测试podspec的工具", "homepage": "https://github.com/Zzzzzzhen/zzkit", "license": "MIT", "authors": { "zhaozheng": "<EMAIL>" }, "platforms": { "ios": "8.0" }, "source": { "git": "https://github....
224
766
"""Provides an internal interface for working with image features.""" __all__ = ["image"]
23
398
<gh_stars>100-1000 package io.joyrpc.spring.schema; /*- * #%L * joyrpc * %% * Copyright (C) 2019 joyrpc.io * %% * 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.apa...
800
2,099
<reponame>yuyedaidao/SGPlayer<filename>SGPlayer/Classes/Core/SGMetal/SGMetalModel.h // // SGMetalModel.h // MetalTest // // Created by Single on 2019/6/24. // Copyright © 2019 Single. All rights reserved. // #import <Metal/Metal.h> @interface SGMetalModel : NSObject - (instancetype)initWithDevice:(id<MTLDevice>)...
221
34,359
/*++ Copyright (c) Microsoft Corporation Module Name: - EventSynthesis.hpp Abstract: - Defined functions for converting strings/characters into events (for interactivity) Separated from types/convert. Author: - <NAME> (duhowett) 10-Feb-2021 --*/ #pragma once #include <deque> #include <memory> #include "../../t...
318
892
{ "schema_version": "1.2.0", "id": "GHSA-w5xq-qgqm-hj39", "modified": "2022-05-01T07:18:47Z", "published": "2022-05-01T07:18:47Z", "aliases": [ "CVE-2006-4449" ], "details": "Cross-site scripting (XSS) vulnerability in attachment.php in MyBulletinBoard (MyBB) 1.1.7 and possibly other versions allows r...
609
3,049
<reponame>juldou/seldon-core<gh_stars>1000+ package io.seldon.engine.util; import java.io.IOException; import java.nio.charset.Charset; import java.nio.file.Files; import java.nio.file.Paths; import java.util.Base64; public class TestUtils { public static byte[] readFileBytes(String path) throws IOException { ...
219
3,095
<filename>designer/lib/shared/qdesigner_propertyeditor.cpp /**************************************************************************** ** ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (<EMAIL>) ** ** This file is part of the Qt Designer of t...
2,358
1,133
<reponame>mikesep/comdb2 /* Copyright 2015 Bloomberg Finance L.P. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by ap...
694
409
//![initialization] #include <iostream> #include <seqan/index.h> using namespace seqan; int main() { StringSet<CharString> myStringSet; appendValue(myStringSet, "tobeornottobe"); appendValue(myStringSet, "thebeeonthecomb"); appendValue(myStringSet, "beingjohnmalkovich"); typedef Index<StringSet<C...
422
818
<filename>kogito-codegen-modules/kogito-codegen-openapi/src/test/java/org/kie/kogito/codegen/openapi/client/OpenApiClientCodegenTest.java /* * Copyright 2021 Red Hat, Inc. and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with...
2,647
1,025
<filename>CodeXL/Components/GpuDebugging/AMDTOpenCLServer/src/csOpenCLHandleMonitor.cpp //================================================================================== // Copyright (c) 2016 , Advanced Micro Devices, Inc. All rights reserved. // /// \author AMD Developer Tools Team /// \file csOpenCLHandleMonitor....
2,227
1,002
<reponame>ikeji/mozc-devices #!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2018 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/license...
889
348
<filename>docs/data/t2/031/31123.json {"nom":"Castillon-de-Larboust","dpt":"Haute-Garonne","inscrits":65,"abs":11,"votants":54,"blancs":9,"nuls":2,"exp":43,"res":[{"panneau":"1","voix":31},{"panneau":"2","voix":12}]}
93
17,703
<gh_stars>1000+ #include "source/common/tracing/http_tracer_impl.h" #include "source/extensions/tracers/zipkin/span_context.h" #include "source/extensions/tracers/zipkin/span_context_extractor.h" #include "test/test_common/utility.h" #include "gtest/gtest.h" namespace Envoy { namespace Extensions { namespace Tracers...
6,991
1,085
package org.conscrypt; import static org.conscrypt.TestUtils.installConscryptAsDefaultProvider; import org.junit.BeforeClass; import org.junit.runner.RunWith; import org.junit.runners.Suite; @RunWith(Suite.class) @Suite.SuiteClasses({ AddressUtilsTest.class, ApplicationProtocolSelectorAdapterTest.class, Client...
279
892
<reponame>westonsteimel/advisory-database-github { "schema_version": "1.2.0", "id": "GHSA-xfvx-2xc3-9vrp", "modified": "2022-05-01T07:38:50Z", "published": "2022-05-01T07:38:50Z", "aliases": [ "CVE-2006-6511" ], "details": "dadaIMC .99.3 uses an insufficiently restrictive FilesMatch directive in the i...
569
8,767
package org.jsoup.integration.servlets; import org.jsoup.integration.TestServer; import javax.servlet.http.Cookie; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; public class RedirectServlet extends BaseServlet { public static final String Url = TestServer.map(Redire...
513
9,402
<reponame>pyracanda/runtime // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. ///////////////////////////////////////////////////////////////////////////// //// // This file was auto-generated by a tool at 2020-07-21 14:05:39 // // ...
33,329
3,934
<filename>packages/pyright-internal/src/tests/samples/match2.py # This sample tests type checking for match statements (as # described in PEP 634) that contain sequence patterns. from typing import Any, Generic, List, Literal, Protocol, Tuple, TypeVar, Union def test_unknown(value_to_match): match value_to_match:...
6,683
777
<gh_stars>100-1000 // 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. #ifndef IOS_CHROME_TODAY_EXTENSION_NOTIFICATION_CENTER_BUTTON_H_ #define IOS_CHROME_TODAY_EXTENSION_NOTIFICATION_CENTER_BUTTON_H_ #imp...
717
313
<filename>titus-server-master/src/main/java/com/netflix/titus/master/endpoint/v2/rest/LeaderResource.java /* * Copyright 2018 Netflix, 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 a...
689
627
<filename>src/fuzzy/hamming.c // Copyright (c) 2014 <NAME>, MIT License // https://github.com/Rostepher/libstrcmp #include <assert.h> #include <stddef.h> #include <string.h> #include "common.h" /// Computes and returns the hamming distance between two strings. Both strings /// must have the same length and not be NU...
489
1,909
<filename>xchange-bitfinex/src/main/java/org/knowm/xchange/bitfinex/BitfinexResilience.java package org.knowm.xchange.bitfinex; import io.github.resilience4j.ratelimiter.RateLimiterConfig; import java.time.Duration; import org.knowm.xchange.client.ResilienceRegistries; public final class BitfinexResilience { publi...
354
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 REMOTING_PROTOCOL_SESSION_PLUGIN_H_ #define REMOTING_PROTOCOL_SESSION_PLUGIN_H_ #include <memory> #include "third_party/libjingle_xmpp/xmllite/x...
361
1,532
#ifndef MAGNET_RENDER_BACKEND_SOCKET_H_ #define MAGNET_RENDER_BACKEND_SOCKET_H_ #include <string> #include <websocketpp/common/connection_hdl.hpp> #include "utility/utility.h" namespace magent { namespace render { template <class T> class ISocket : public render::Unique { protected: const T args; public: e...
260
441
/** * XQuery expressions. */ package org.basex.query.expr;
20
1,352
<reponame>gitofzhu/RuoYi package com.ruoyi.quartz.domain; import com.fasterxml.jackson.annotation.JsonFormat; import com.ruoyi.common.annotation.Excel; import com.ruoyi.common.base.BaseEntity; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import lombok.Equa...
984
1,338
<reponame>Kirishikesan/haiku /* * Copyright 2006, Haiku. All rights reserved. * Distributed under the terms of the MIT License. * * Authors: * <NAME> <<EMAIL>> */ #include "FlatIconImporter.h" #include <new> #include <stdio.h> #include <Archivable.h> #include <DataIO.h> #include <Message.h> #include "AffineT...
5,919
2,757
/*++ Copyright (c) 2004 - 2007, 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 fou...
6,954
738
public class FactoryTest { public static void main(String[] args) { Product pencil = ProductFactory.getProduct("Pencil"); pencil.sell(); // sell Pencil !!! Product note = ProductFactory.getProduct("Note"); note.sell(); // sell Note !!! } } interface Product { public void s...
337
796
<reponame>donroyco/falco<filename>backend/core/management/commands/rundebugserver.py import os from django.contrib.staticfiles.management.commands import runserver class Command(runserver.Command): def handle(self, *args, **options): # Try to enable vscode debugger try: import ptvsd ...
343
2,338
<reponame>mkinsner/llvm<filename>libcxx/test/std/containers/sequences/array/array.tuple/get.pass.cpp //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license inform...
950
303
/* * 42TinyJS * * A fork of TinyJS with the goal to makes a more JavaScript/ECMA compliant engine * * Authored By <NAME> <<EMAIL>> * * Copyright (C) 2010-2015 ardisoft * * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the...
1,763
1,007
## # Exploit Title: RSLinx Classic - stack overflow # Date: 06/11/2019 # Exploit Author: <NAME> # CVE : CVE-2019-6553 # Advisory: https://www.tenable.com/security/research/tra-2019-11 # Affected Vendors/Device/Firmware: # - RSLinx Classic 4.10.00 and earlier ## import sys, socket, binascii from struct import * def u...
1,434
442
#!/usr/bin/python # -*- coding: utf-8 -*- """ Examples for Python-nvd3 is a Python wrapper for NVD3 graph library. NVD3 is an attempt to build re-usable charts and chart components for d3.js without taking away the power that d3.js gives you. Project location : https://github.com/areski/python-nvd3 """ from nvd3 imp...
675
3,380
{ "validation": [ { "gem_id": "e2e_nlg-validation-110", "meaning_representation": "name[Aromi], eatType[coffee shop], food[Chinese], customer rating[1 out of 5], area[riverside]", "references": [ "There is an Chinese coffee shop named Aromi near the rivers...
237
496
<gh_stars>100-1000 /* * Copyright (C) 2019 <NAME> * * Author: <NAME> <<EMAIL>> */ /* * Caution! * This file generated by the script "utils/lexbor/encoding/single-byte.py"! * Do not change this file! */ #ifndef LEXBOR_ENCODING_SINGLE_H #define LEXBOR_ENCODING_SINGLE_H #ifdef __cplusplus extern "C" { #endif ...
2,829
2,701
/* * Copyright (c) 2016 Cesanta Software Limited * All rights reserved * * 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 * Foundation; either version 2 of the License, or (at your option) any later vers...
531
303
<gh_stars>100-1000 #include <string.h> #include <inttypes.h> #include "lily_alloc.h" #include "lily_ast.h" #include "lily_value.h" #include "lily_emitter.h" #include "lily_opcode.h" #include "lily_emit_table.h" #include "lily_parser.h" #include "lily_opcode_table.h" #include "lily_cls_function.h" /** Emitter is resp...
72,864
1,139
<filename>CoreJavaProjects/JDBCPreparedStatementIN/src/com/journaldev/jdbc/preparedstatement/in/JDBCPreparedStatementDynamic.java package com.journaldev.jdbc.preparedstatement.in; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; public class JDBCP...
596
1,085
<gh_stars>1000+ /* * 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...
827
428
import torch from torch.autograd import Function from torch.cuda.amp import custom_bwd, custom_fwd import torchsparse.backend __all__ = ['spdevoxelize', 'calc_ti_weights'] def calc_ti_weights(coords: torch.Tensor, idx_query: torch.Tensor, scale: float = 1) -> torch.Tensor: ...
1,719
533
<gh_stars>100-1000 #include "saber/funcs/impl/x86/x86_utils.h" #include "saber/funcs/impl/x86/kernel/jit_avx512_core_u8s8s32x_conv_act_pool_kernel.h" namespace anakin { namespace saber { namespace jit { #define GET_OFF(field) offsetof(jit_conv_call_t, field) using namespace Xbyak; static inline void pick_loop_order(...
12,689
3,366
#ifndef _NOTQUERY_H #define _NOTQUERY_H #include<memory> using std::shared_ptr; #include<string> using std::string; #include"query.h" #include"query_base.h" class QueryResult; class TextQuery; class NotQuery :public Query_base { friend Query operator~(const Query&); //call Query's default copy constructor. NotQ...
206
1,341
<filename>ObjcExample/ObjcExample/Demo/GKPageScrollView/网易云音乐/GKWYHeaderView.h // // GKWYHeaderView.h // GKPageScrollView // // Created by QuintGao on 2018/10/28. // Copyright © 2018 QuintGao. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN #define kWYHeaderHeight (kScreenW * 500.0f / 750...
211
2,226
#pragma once #ifndef ES_APP_GUIS_GUI_GENERAL_SCREENSAVER_OPTIONS_H #define ES_APP_GUIS_GUI_GENERAL_SCREENSAVER_OPTIONS_H #include "GuiScreensaverOptions.h" class GuiGeneralScreensaverOptions : public GuiScreensaverOptions { public: GuiGeneralScreensaverOptions(Window* window, const char* title); virtual ~GuiGeneral...
183
1,025
package org.menacheri.zombie.domain; import org.menacheri.jetserver.app.GameRoom; import org.menacheri.jetserver.app.Task; import org.menacheri.jetserver.communication.DeliveryGuaranty.DeliveryGuarantyOptions; import org.menacheri.jetserver.communication.NettyMessageBuffer; import org.menacheri.jetserver.event.Events;...
637
903
<gh_stars>100-1000 #include "../../src/corelib/kernel/qfunctions_wince.h"
32
681
<reponame>nahimr/REDRIVER2 enum GameStates { STATE_NONE = 0, STATE_INITFRONTEND, STATE_FRONTEND, STATE_GAMESTART, STATE_GAMELAUNCH, // launch single game STATE_LADDER, // launch a mission ladder STATE_GAMEINIT, STATE_GAMELOOP, STATE_GAMECOMPLETE, STATE_FMVPLAY, }; // changes the state extern void SetState...
165
14,668
// 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 CONTENT_BROWSER_FONT_ACCESS_FONT_ENUMERATION_CACHE_WIN_H_ #define CONTENT_BROWSER_FONT_ACCESS_FONT_ENUMERATION_CACHE_WIN_H_ #include <dwrite.h> #...
771
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.hdinsight.models; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import com.fasterxml...
485
757
'''初始化''' from .videoplayer import VideoPlayer
20
1,615
// // MLNGalleryNavigatorView.h // MLN_Example // // Created by MOMO on 2019/11/7. // Copyright © 2019年 MoMo. All rights reserved. // #import <UIKit/UIKit.h> #define kMLNNavigatorHeight 55 NS_ASSUME_NONNULL_BEGIN @interface MLNGalleryNavigationBarItem : NSObject @property (nonatomic, copy) UIImage *image; @pro...
310
336
package me.saket.dank.utils.glide; import androidx.annotation.Nullable; import com.bumptech.glide.load.DataSource; import com.bumptech.glide.load.engine.GlideException; import com.bumptech.glide.request.RequestListener; import com.bumptech.glide.request.target.Target; import io.reactivex.exceptions.Exceptions; impor...
747
973
<reponame>bcaglayan/pcap4j<gh_stars>100-1000 /*_########################################################################## _## _## Copyright (C) 2012-2015 Pcap4J.org _## _########################################################################## */ package org.pcap4j.packet.namednumber; import java.util.Has...
2,538
435
{ "copyright_text": null, "description": "Python is a language that in a easy way allows to scale up from starter projects to complex applications for data processing and serving dynamic web pages. But as you increase complexity in your applications, it can be easy to introduce potential problems and vulnerabilitie...
412
785
<reponame>eddie4941/servicetalk<gh_stars>100-1000 /* * Copyright © 2020-2021 Apple Inc. and the ServiceTalk project 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:/...
1,464
679
<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 copyright ownership. The ASF license...
708
348
{"nom":"Chaumercenne","circ":"1ère circonscription","dpt":"Haute-Saône","inscrits":140,"abs":58,"votants":82,"blancs":0,"nuls":9,"exp":73,"res":[{"nuance":"REM","nom":"Mme <NAME>","voix":40},{"nuance":"FN","nom":"Mme <NAME>","voix":33}]}
96
524
<reponame>Qt-Widgets/im-desktop-imported<filename>gui/voip/VideoPanel.cpp<gh_stars>100-1000 #include "stdafx.h" #include "VideoPanel.h" #include "DetachedVideoWnd.h" #include "VoipTools.h" #include "MaskPanel.h" #include "../core_dispatcher.h" #include "../main_window/MainPage.h" #include "../main_window/MainWindow.h"...
5,738
14,668
// 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. package org.chromium.weblayer.test; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; import static org.chromium.co...
1,374
4,772
package example.repo; import example.model.Customer1668; import java.util.List; import org.springframework.data.repository.CrudRepository; public interface Customer1668Repository extends CrudRepository<Customer1668, Long> { List<Customer1668> findByLastName(String lastName); }
87
348
{"nom":"Saint-Léon","circ":"12ème circonscription","dpt":"Gironde","inscrits":268,"abs":148,"votants":120,"blancs":13,"nuls":4,"exp":103,"res":[{"nuance":"REM","nom":"Mme <NAME>","voix":52},{"nuance":"FI","nom":"M. <NAME>","voix":51}]}
95
82,518
<filename>research/lfads/plot_lfads.py # Copyright 2017 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 # #...
3,085