max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
1,884
# Copyright (c) OpenMMLab. All rights reserved. import argparse import os.path as osp import re import mmcv import numpy as np from mmedit.core.evaluation import connectivity, gradient_error, mse, sad def evaluate_one(args): """Function to evaluate one sample of data. Args: args (tuple): Informatio...
2,037
1,414
<filename>Real-Time Corruptor/BizHawk_RTC/waterbox/libsnes/bsnes/snes/smp/core/core.hpp struct SMPcore { virtual void op_io() = 0; virtual uint8 op_read(uint16 addr, eCDLog_Flags flags = eCDLog_Flags_CPUData) = 0; virtual void op_write(uint16 addr, uint8 data) = 0; void op_step(); #include "registers.hpp" ...
1,339
2,151
/* * Copyright (c) 2014 The Native Client Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ /* * This module is intended to keep track of memory calls that have been hooked * into a standard library. Because the IRT has a full i...
316
765
<gh_stars>100-1000 /***************************************************************************** Licensed to Accellera Systems Initiative Inc. (Accellera) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. ...
25,199
559
<reponame>sghill/msl /** * Copyright (c) 2014 Netflix, 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 * ...
355
14,668
<filename>content/browser/service_worker/service_worker_subresource_filter_browsertest.cc // Copyright 2021 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/strings/strcat.h" #include "content/public/test/b...
2,870
2,497
#!/usr/bin/env python3 import os import ptan import time import gym import argparse from lib import common, i2a import torch.optim as optim import torch import torch.nn.functional as F from tensorboardX import SummaryWriter ROLLOUTS_STEPS = 3 LEARNING_RATE = 1e-4 POLICY_LR = 1e-4 TEST_EVERY_BATCH = 100 if __name...
2,364
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,787
446
package com.plumdo.common.aop; import com.plumdo.common.constant.CoreConstant; import com.plumdo.common.exception.ExceptionFactory; import com.plumdo.common.model.Authentication; import com.plumdo.common.utils.ObjectUtils; import io.jsonwebtoken.Claims; import io.jsonwebtoken.Jwts; import org.aspectj.lang.ProceedingJo...
1,319
462
<filename>abr_browser_dir/chrome_data_dir/Default/Extensions/apdfllckaahabafndbhieahigkjlhalf/14.1_0/_locales/sk/messages.json { "appDesc": { "description": "App description.", "message": "Disk Google – vytvárajte, zdieľajte a ukladajte všetky svoje súbory na jednom mieste." }, "appName": { "...
172
1,198
<filename>toothpick-runtime/src/test/java/toothpick/concurrency/threads/ScopeToStringThread.java /* * Copyright 2019 <NAME> * Copyright 2019 <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 ...
351
17,085
<gh_stars>1000+ # Copyright (c) 2018 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 # # ...
770
344
<gh_stars>100-1000 /* * Copyright (c) 2014, Oracle America, Inc. * 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...
2,801
1,821
/* * Copyright 2018- The Pixie 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 ag...
815
32,467
#ifndef MBFL_NLS_UNI_H #define MBFL_NLS_UNI_H #include "mbfilter.h" extern const mbfl_language mbfl_language_uni; #endif /* MBFL_NLS_UNI_H */
72
2,084
<filename>archaius-core/src/main/java/com/netflix/config/samples/SampleApplicationWithDefaultConfiguration.java /** * Copyright 2014 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 Li...
991
423
<reponame>LunarFlash/Chaty<gh_stars>100-1000 // clang-format off /* * Firebase UI Bindings iOS Library * * Copyright © 2015 Firebase - All Rights Reserved * https://www.firebase.com * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following c...
1,745
485
package io.indexr.query.expr; public final class TypeCheckResult { public final String msg; public final boolean isSuccess; public TypeCheckResult(String msg, boolean isSuccess) { this.msg = msg; this.isSuccess = isSuccess; } public boolean isFailure() {return !isSuccess;} pu...
241
413
import sys from os import path, mkdir, listdir import numpy as np np.random.seed(1) import random random.seed(1) import cv2 import timeit from tqdm import tqdm from skimage import measure from multiprocessing import Pool from skimage.morphology import square, dilation, watershed root_data_folder = path.join('..', 'dat...
1,341
335
<gh_stars>100-1000 { "word": "Facade", "definitions": [ "The principal front of a building, that faces on to a street or open space.", "A deceptive outward appearance." ], "parts-of-speech": "Noun" }
92
422
"""dberrors: database exception classes for SQLObject. These classes are dictated by the DB API v2.0: http://www.python.org/topics/database/DatabaseAPI-2.0.html """ class Error(StandardError): pass class Warning(StandardError): pass class InterfaceError(Error): pass class DatabaseError(Error): pass class ...
163
953
/* * This file is part of Dependency-Track. * * 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 ...
564
412
<reponame>tobireinhard/cbmc public class MySubclassA extends MyConcreteClass { @Override public int num() { return 2 * super.num(); } }
55
892
{ "schema_version": "1.2.0", "id": "GHSA-3ph6-jhvp-76gj", "modified": "2022-05-13T01:44:23Z", "published": "2022-05-13T01:44:23Z", "aliases": [ "CVE-2017-17427" ], "details": "Radware Alteon devices with a firmware version between 31.0.0.0-31.0.3.0 are vulnerable to an adaptive-chosen ciphertext attac...
624
303
{"id":9575,"line-1":"Arizona","line-2":"United States","attribution":"©2016 DigitalGlobe, U.S. Geological Survey, USDA Farm Service Agency","url":"https://www.google.com/maps/@33.392341,-112.84785,17z/data=!3m1!1e3"}
79
628
<reponame>cobalt2727/FEX<filename>ThunkLibs/libxcb_glx/Guest.cpp /* $info$ tags: thunklibs|xcb-glx $end_info$ */ #include <xcb/glx.h> #include <xcb/xcbext.h> #include <stdio.h> #include <cstring> #include <map> #include <string> #include "common/Guest.h" #include <stdarg.h> #include "thunks.inl" #include "function_...
45,302
584
<filename>src/main/java/org/springframework/data/config/TypeFilterParser.java /* * Copyright 2010-2021 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * ...
2,378
3,049
<reponame>jsreid13/seldon-core package io.seldon.example.h2o.model; import java.io.IOException; import java.util.ArrayList; import java.util.List; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Component; import hex.genmodel.ModelMojoReader; import hex.genmodel.MojoMod...
777
575
// Copyright 2020 Proyectos y Sistemas de Mantenimiento SL (eProsima). // // 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 re...
903
1,780
/** * Created by G-Canvas Open Source Team. * Copyright (c) 2017, Alibaba, Inc. All rights reserved. * * This source code is licensed under the Apache Licence 2.0. * For the full copyright and license information, please view * the LICENSE file in the root directory of this source tree. */ #ifndef GCANVAS_GPATH2D_H #de...
953
348
<reponame>chamberone/Leaflet.PixiOverlay {"nom":"Munich","circ":"7ème circonscription","dpt":"Français établis hors de France","inscrits":15319,"abs":10840,"votants":4479,"blancs":3,"nuls":209,"exp":4267,"res":[{"nuance":"MDM","nom":"<NAME>","voix":2481},{"nuance":"SOC","nom":"<NAME>'","voix":669},{"nuance":"ECO","nom"...
353
8,238
<gh_stars>1000+ #include <stdio.h> #include <stdlib.h> typedef struct my_struct { struct my_struct* my_struct; int len; } my_struct; #define YCF_YIELD() int fun(char x){ my_struct s; my_struct* sp; int len = 55; s.len = 10; s.my_struct = NULL; sp = malloc(sizeof(my_struct)); sp->len = 10; sp->my...
518
1,647
package com.chenenyu.router.chain; import androidx.annotation.NonNull; import androidx.fragment.app.Fragment; import com.chenenyu.router.AptHub; import com.chenenyu.router.MatcherRegistry; import com.chenenyu.router.RealInterceptorChain; import com.chenenyu.router.RouteInterceptor; import com.chenenyu.router.RouteRes...
1,007
1,602
/* matrix22_mul.c. Contributed by <NAME> and <NAME>. THE FUNCTIONS IN THIS FILE ARE INTERNAL WITH MUTABLE INTERFACES. IT IS ONLY SAFE TO REACH THEM THROUGH DOCUMENTED INTERFACES. IN FACT, IT IS ALMOST GUARANTEED THAT THEY'LL CHANGE OR DISAPPEAR IN A FUTURE GNU MP RELEASE. Copyright 2003-2005, 2008, 200...
4,565
777
<gh_stars>100-1000 // 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 CC_LAYERS_LAYER_COLLECTIONS_H_ #define CC_LAYERS_LAYER_COLLECTIONS_H_ #include <memory> #include <unordered_map> #include <vec...
290
580
<reponame>ai-fast-track/mantisshrimp<filename>icevision/models/torchvision/loss_fn.py __all__ = ["loss_fn"] from icevision.imports import * def loss_fn(preds, targets) -> Tensor: return sum(preds.values())
82
303
/* Copyright (C) 2005-2011 <NAME> */ package com.lightcrafts.splash; import com.lightcrafts.platform.Platform; import javax.swing.*; import java.awt.image.BufferedImage; import java.awt.*; import java.awt.event.MouseEvent; import java.awt.event.MouseAdapter; public class AboutDialog extends JDialog { private c...
675
301
/****************************************************************** * * Copyright 2015 Samsung Electronics 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 * ...
18,789
377
<reponame>platschi/trustroots { "Report member": "Mitglied melden", "Report member {{username}} to support": "Mitglied {{username}} an das Support-Team melden", "You could continue to <1>home</1> or see <4>frequently asked questions</4>.": "Geh zur <1>Startseite</1> oder lies <4>häufig gestellte Fragen</4>....
649
2,338
<reponame>medismailben/llvm-project<gh_stars>1000+ // RUN: %check_clang_tidy %s abseil-duration-factory-scale %t -- -- -I%S/Inputs #include "absl/time/time.h" namespace std { typedef long long int64_t; } using int64_t = std::int64_t; void ScaleTest() { absl::Duration d; // Zeroes d = absl::Hours(0); // CHEC...
2,250
1,723
<reponame>FatiahBalo/python-ds class Node(): def __init__(self, val): self.val = val self.next = None def delete_last_occurrence(head, val): if not head: return None curr = head prev = None final_prev = None final_occ = None while curr != None: if curr.val...
326
764
<filename>erc20/0xCE5479efAe6faA2289dB6cF5E0E0B5EF6bEa16C7.json<gh_stars>100-1000 { "symbol": "BPC", "address": "0xCE5479efAe6faA2289dB6cF5E0E0B5EF6bEa16C7", "overview":{ "en": "<NAME> is the strategic investment of Blockchain Global Limited, which is a global blockchain technology commercialization and i...
706
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 "ui/compositor/test/test_compositor_host_x11.h" #include "base/bind.h" #include "base/compiler_specific.h" #include "base/memory/weak_ptr.h" #in...
804
983
<filename>test/fixtures/flow/options.json { "plugins": [ ["babel-plugin-flow-react-proptypes", { "omitRuntimeTypeExport": true }], "@babel/plugin-transform-flow-strip-types" ] }
84
12,252
<reponame>rmartinc/keycloak package org.keycloak.testsuite.ui.account2.page; import org.openqa.selenium.By; import org.openqa.selenium.WebElement; import org.openqa.selenium.support.FindBy; import java.util.Arrays; import java.util.List; import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest...
2,387
1,031
// Runtime test checking the %typemap(ignore) macro import ignore_parameter.*; public class ignore_parameter_runme { static { try { System.loadLibrary("ignore_parameter"); } catch (UnsatisfiedLinkError e) { System.err.println("Native code library failed to load. See the chapter on Dynamic Link...
619
715
<reponame>iabhimanyu/Algorithms<filename>Graphs/Minimum Spanning Tree/C++/data-structures/LinkedGraph.hpp #ifndef MST_LINKEDGRAPH_HPP_ #define MST_LINKEDGRAPH_HPP_ #include <string> #include "ArrayList.hpp" #include "LinkedList.hpp" #include "LinkedGraphEdge.hpp" class LinkedGraph { public: ArrayList<LinkedList<Li...
273
483
# -*- coding:utf-8 -*- class Solution: stack1 = [] stack2 = [] def push(self, node): # write code here self.stack1.append(node) def pop(self): # return xx if len(self.stack2)==0: while len(self.stack1)!=0: self.stack2.append(self.stack1[-1]) ...
231
2,542
<reponame>vishnuk007/service-fabric // ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // --------------------------------------------------------...
1,369
348
{"nom":"Targassonne","dpt":"Pyrénées-Orientales","inscrits":161,"abs":34,"votants":127,"blancs":22,"nuls":1,"exp":104,"res":[{"panneau":"1","voix":74},{"panneau":"2","voix":30}]}
75
1,524
<reponame>mohn93/BAFluidView #ifdef __OBJC__ #import <UIKit/UIKit.h> #else #ifndef FOUNDATION_EXPORT #if defined(__cplusplus) #define FOUNDATION_EXPORT extern "C" #else #define FOUNDATION_EXPORT extern #endif #endif #endif #import "BAFluidView.h" #import "Constants.h" #import "UIColor+ColorWithHex.h" FOUNDATION_EXPOR...
169
1,655
#include "ZipStreambuf.hpp" #include "ZipEntry.hpp" #include "math/MathUtil.hpp" #include "Debug.hpp" namespace Tungsten { static const uint64 InputBufferSize = TINFL_LZ_DICT_SIZE; static const uint64 OutputBufferSize = TINFL_LZ_DICT_SIZE; ZipInputStreambuf::ZipInputStreambuf(InputStreamHandle in, mz_zip_archive &...
2,639
562
import os from conans import ConanFile, tools, CMake class ZziplibConan(ConanFile): name = "zziplib" description = "The ZZIPlib provides read access on ZIP-archives and unpacked data" topics = ("conan", "zip", "archive", "decompression") url = "https://github.com/conan-io/conan-center-index" homep...
1,990
575
<gh_stars>100-1000 // Copyright 2020 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package org.chromium.components.content_capture; import static org.mockito.Mockito.doThrow; import static org.mockito.Mockito.spy; impo...
12,525
507
<filename>app/src/main/java/com/weihuagu/receiptnotice/util/DataBaseHolder.java package com.weihuagu.receiptnotice.util; import android.database.sqlite.SQLiteDatabase; import com.weihuagu.receiptnotice.DatabaseHelper; import com.weihuagu.receiptnotice.MainApplication; public class DataBaseHolder { //创建 SingleObj...
391
14,668
<filename>base/message_loop/timer_slack_unittest.cc // Copyright 2021 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/message_loop/timer_slack.h" #if defined(OS_MAC) #include "base/message_loop/message_pu...
3,035
441
import subprocess subprocess.Popen('python distribute.py --job_name="ps" --task_index=0', shell=True) subprocess.Popen('python distribute.py --job_name="worker" --task_index=0', shell=True) subprocess.Popen('python distribute.py --job_name="worker" --task_index=1', she...
188
3,614
package com.central.common.model; import java.util.List; import java.util.Set; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableName; import lombok.Data; import lombok.EqualsAndHashCode; /** * @author zlt */ @Data @EqualsAndHashCode(callSuper = false) @TableNam...
295
333
{ "name":"react-firebase", "description": "react-firebase built with generator-react-firebase", "repository": "https://github.com/testuser/react-firebase", "keywords": [ "generator-react-firebase", "react", "redux", "firebase", "redux-firebase", "react-redux-firebase", ] }
125
302
<filename>examples/print_tree.py # Prints the menu tree of the configuration. Dependencies between symbols can # sometimes implicitly alter the menu structure (see kconfig-language.txt), and # that's implemented too. # # Note: See the Kconfig.node_iter() function as well, which provides a simpler # interface for walkin...
801
660
package quick.pager.shop.model; import lombok.Data; import lombok.EqualsAndHashCode; import org.springframework.data.elasticsearch.annotations.Document; import quick.pager.shop.model.Model; /** * ES商品 * * @author siguiyang */ @EqualsAndHashCode(callSuper = true) @Data @Document(indexName = "es_goods", createIndex...
653
357
/* * Copyright © 2012-2015 VMware, 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 applica...
3,669
598
/* * * 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 * distri...
2,954
373
#include <UIKit/UIKit.h> #include "tensorflow/core/framework/op_kernel.h" #include "tensorflow/core/public/session.h" @interface TensorFlowInference: NSObject - (id) initWithModel:(NSString *)modelLocation; - (void) feed:(NSString *)inputName tensor:(tensorflow::Tensor)tensor; - (void) run:(NSArray *)outputNames ena...
175
372
/* * Copyright © BeyondTrust Software 2004 - 2019 * 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 * * Un...
4,325
449
# Copyright (c) OpenMMLab. All rights reserved. import warnings from mmdet.models.builder import MODELS ROTATED_BACKBONES = MODELS ROTATED_LOSSES = MODELS ROTATED_DETECTORS = MODELS ROTATED_ROI_EXTRACTORS = MODELS ROTATED_HEADS = MODELS ROTATED_NECKS = MODELS ROTATED_SHARED_HEADS = MODELS def build_backbone(cfg): ...
589
367
<gh_stars>100-1000 # coding: utf-8 from __future__ import absolute_import, unicode_literals from itertools import product import pytest from boxsdk.object.base_object import BaseObject from boxsdk.object.file import File from boxsdk.object.folder import Folder from boxsdk.object.group import Group from boxsdk.objec...
2,992
4,339
<filename>modules/core/src/main/java/org/apache/ignite/internal/visor/encryption/VisorReencryptionRateTaskArg.java /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright...
810
625
package issues.issue146; public abstract class Impl_2 extends Impl_1 { }
22
5,169
<gh_stars>1000+ { "name": "NBGaugeView", "version": "0.1.0", "summary": "NBGaugeView is a simple and customizable gauge control for iOS.", "description": "NBGaugeView is a simple donut used for displaying text in hollow circle.", "homepage": "https://github.com/nikhilbatra789/NBGaugeView", "license": { ...
273
310
{ "name": "SSC-32U", "description": "A USB-based servo controller.", "url": "http://www.lynxmotion.com/p-1032-ssc-32u-usb-servo-controller.aspx" }
65
312
<reponame>FMX/alchemy package com.dfire.platform.alchemy.api.function.aggregate; import com.dfire.platform.alchemy.api.function.StreamAggregateFunction; import com.dfire.platform.alchemy.api.util.GroovyCompiler; import org.apache.commons.lang3.StringUtils; import org.apache.flink.api.common.typeinfo.TypeInformation; i...
1,173
738
<reponame>liufangqi/hudi /* * 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...
1,799
4,538
<reponame>wanguojian/AliOS-Things #ifndef _NET_ATOMIC_H__ #define _NET_ATOMIC_H__ #include "net_defs.h" #include "cmsis_os.h" #include "cmsis.h" #include "net_debug.h" #include "hal_chipid.h" static __INLINE void atomic_set(atomic32_t *at, int val) { uint32_t ret; do { __LDREXW((volatile uint32_t *)&at...
1,415
2,728
<reponame>rsdoherty/azure-sdk-for-python # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R...
825
1,056
<filename>java/maven/src/org/netbeans/modules/maven/problems/MavenModelProblemsProvider.java /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The AS...
9,326
836
/* * Copyright (C) 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 at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appli...
893
2,989
package com.linkedin.databus.core; /* * * Copyright 2013 LinkedIn Corp. 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/LICENS...
404
1,114
import torch import torch.nn as nn import torch.nn.functional as F from ..initializer import create_initializer class Network(nn.Module): def __init__(self, config): super().__init__() model_config = config.model.vgg self.use_bn = model_config.use_bn n_channels = model_config.n_c...
1,776
360
""" Copyright (c) 2020 Huawei Technologies Co.,Ltd. openGauss is licensed under Mulan PSL v2. You can use this software according to the terms and conditions of the Mulan PSL v2. You may obtain a copy of Mulan PSL v2 at: http://license.coscl.org.cn/MulanPSL2 THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WI...
808
1,553
from plex.objects.core.base import Descriptor, Property class TranscodeSession(Descriptor): key = Property progress = Property(type=float) speed = Property(type=float) duration = Property(type=int) protocol = Property throttled = Property(type=int) # TODO this needs to cast: str -> int -> b...
215
835
/* * Copyright (C) 2015 Twitter, 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 agr...
1,244
2,707
<reponame>ronaldocan/jetlinks-community package org.jetlinks.community.network.mqtt.server; import io.vertx.mqtt.messages.MqttUnsubscribeMessage; public interface MqttUnSubscription { MqttUnsubscribeMessage getMessage(); void acknowledge(); }
90
2,338
//===-- tsan_ilist.h --------------------------------------------*- 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,910
316
#import <Foundation/Foundation.h> #import "MGLTypes.h" NS_ASSUME_NONNULL_BEGIN // Strings in the SDK targets must be retrieved from the framework bundle rather // than the main bundle, which is usually the application bundle. Redefining // these macros ensures that the framework bundle’s string tables are used at //...
510
1,338
/* insque(3C) routines This file is in the public domain. */ /* NAME insque, remque -- insert, remove an element from a queue SYNOPSIS struct qelem { struct qelem *q_forw; struct qelem *q_back; char q_data[]; }; void insque (struct qelem *elem, struct qelem *pred) void remque (struct qelem *elem) ...
371
715
<filename>Optimization/GradientDescent.py def GradientDescent(inputValue, learningRate, precision, maximumIterations, gradientFunction): previousStepSize = 1 iterationCounter = 0 while previousStepSize > precision and iterationCounter < maximumIterations: previousX = inputValue #Storing current x ...
328
437
/* * Copyright (C) 2014 <NAME> * Surviving with Android (http://www.survivingwithandroid.com) * * 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.o...
3,630
1,221
# Python Script Developed over the upload-local-file.sh # to use the requests library provided in python. The only # dependency to run this script is requests library. # Author: <NAME> # Linkedin: https://in.linkedin.com/in/arpit-goyal-ba599839 import json from email.mime.multipart import MIMEMultipart from email.mi...
756
1,350
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package com.azure.messaging.servicebus; import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.Test; import org.mockito.Mockito; import reactor.core.publisher.Sinks; import reactor.test.StepVerifier; import ...
2,700
8,629
#pragma once #include <vector> #include <Parsers/IAST.h> namespace DB { class ASTJSONPathRange : public IAST { public: String getID(char) const override { return "ASTJSONPathRange"; } ASTPtr clone() const override { return std::make_shared<ASTJSONPathRange>(*this); } /// Ranges to lookup in json array (...
195
1,448
//***************************************************************************** // //! \file w5500.h //! \brief W5500 HAL Header File. //! \version 1.0.0 //! \date 2013/10/21 //! \par Revision history //! <2015/02/05> Notice //! The version history is not updated after this point. //! Download the ...
32,223
703
<gh_stars>100-1000 #pragma once #include <PhysXPlugin/Components/PxComponent.h> struct ezPxJointLimitMode { using StorageType = ezInt8; enum Enum { NoLimit, HardLimit, SoftLimit, Default = NoLimit }; }; EZ_DECLARE_REFLECTABLE_TYPE(EZ_PHYSXPLUGIN_DLL, ezPxJointLimitMode); struct ezPxJointDr...
1,104
335
<gh_stars>100-1000 { "word": "Methane", "definitions": [ "A colourless, odourless flammable gas which is the main constituent of natural gas. It is the simplest member of the alkane series of hydrocarbons." ], "parts-of-speech": "Noun" }
97
809
/** * @file * * @date 11.10.10 * @author <NAME> * @author <NAME> */ #include <hal/reg.h> #include <util/math.h> #include <drivers/at91sam7s256.h> #include <drivers/nxt/lcd.h> #include <string.h> extern __u8 display_buffer[NXT_LCD_DEPTH+1][NXT_LCD_WIDTH]; static int display_x; static int display_y; __u8 font[N...
5,483
5,169
{ "name": "Bypass", "version": "1.0.1", "license": "Apache License, Version 2.0", "summary": "Bypass - Bypass renders markdown directly to UIViews instead of using an intermediary HTML format.", "homepage": "http://uncodin.github.io/bypass/", "authors": { "<NAME>": "<EMAIL>", "<NAME>": "<EMAIL>" }...
405
332
/* * Copyright 2013 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 applica...
748
348
<filename>docs/data/leg-t2/060/06004213.json<gh_stars>100-1000 {"nom":"Ermenonville","circ":"4ème circonscription","dpt":"Oise","inscrits":660,"abs":379,"votants":281,"blancs":11,"nuls":5,"exp":265,"res":[{"nuance":"REM","nom":"<NAME>","voix":134},{"nuance":"LR","nom":"<NAME>","voix":131}]}
118
1,014
{ "HHR": { "short_name": "HeadHunter Group PLC", "long_name": "HeadHunter Group PLC", "summary": "HeadHunter Group PLC, together with its subsidiaries, operates an online recruitment platform in Russia, Kazakhstan, Belarus, and internationally. The company offers employers and recruiters...
762
310
{ "name": "delimitMate", "description": "A vim plugin for auto-completing quotes, brackets etc.", "url": "https://github.com/Raimondi/delimitMate" }
57