max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
413
/* Copyright 2013-2021 MultiMC Contributors * * 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...
770
670
// OCHamcrest by <NAME>, http://qualitycoding.org/about/ // Copyright 2016 hamcrest.org. See LICENSE.txt #import <Foundation/Foundation.h> @interface NSInvocation (OCHamcrest) + (NSInvocation *)och_invocationWithTarget:(id)target selector:(SEL)selector; + (NSInvocation *)och_invocationOnObjectOfType:(Class)aClass...
132
7,746
/*++ Copyright (c) 2015 Microsoft Corporation Module Name: qe_mbp.h Abstract: Model-based projection utilities Author: <NAME> (nbjorner) 2015-5-28 Revision History: --*/ #pragma once #include "ast/ast.h" #include "util/params.h" #include "model/model.h" #include "math/simplex/model_based_opt.h" ...
731
2,428
<reponame>fuh/wechatpy # -*- coding: utf-8 -*- import json import time import logging import requests from wechatpy.client.base import BaseWeChatClient from wechatpy.exceptions import WeChatClientException from wechatpy.work.services import api logger = logging.getLogger(__name__) class WeChatServiceClient(BaseWeCh...
1,861
544
# KidsCanCode - Game Development with Pygame video series # Jumpy! (a platform game) - Part 3 # Video link: https://youtu.be/pN9pBx5ln40 # Gravity and Platforms import pygame as pg import random from settings import * from sprites import * class Game: def __init__(self): # initialize game window, etc ...
1,052
10,225
<filename>extensions/vault/model/src/main/java/io/quarkus/vault/runtime/client/dto/pki/VaultPKIGenerateCertificateResult.java package io.quarkus.vault.runtime.client.dto.pki; import io.quarkus.vault.runtime.client.dto.AbstractVaultDTO; public class VaultPKIGenerateCertificateResult extends AbstractVaultDTO<VaultPKIGe...
128
505
package de.rieckpil.blog; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class BookStoreClientApplication { public static void main(String[] args) { SpringApplication.run(BookStoreClientApplication.class, arg...
91
725
<gh_stars>100-1000 #pragma once // Utils includes #include <utils/Image.h> // Hyperion includes #include <hyperion/ImageProcessorFactory.h> #include <hyperion/LedString.h> #include <hyperion/ImageToLedsMap.h> // Black border includes #include <blackborder/BlackBorderProcessor.h> /// /// The ImageProcessor translat...
1,525
575
// 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 CHROMEOS_COMPONENTS_WEB_APPLICATIONS_TEST_SANDBOXED_WEB_UI_TEST_BASE_H_ #define CHROMEOS_COMPONENTS_WEB_APPLICATIONS_TEST_SANDBOXED_WEB_UI_TEST_BA...
819
343
/* $Id$ $Revision$ */ /* vim:set shiftwidth=4 ts=8: */ /************************************************************************* * Copyright (c) 2011 AT&T Intellectual Property * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1....
1,087
1,327
<reponame>markdryan/oneDNN /* * Copyright (C) 2021 Intel Corporation * * SPDX-License-Identifier: MIT * * @file ze_loader.h */ #ifndef _ZE_LOADER_H #define _ZE_LOADER_H #if defined(__cplusplus) #pragma once #endif #include "../ze_api.h" #if defined(__cplusplus) extern "C" { #endif typedef struct _zel_version...
803
707
import argparse import datetime import json import os from PIL import Image import pycococreatortools def get_arguments(): parser = argparse.ArgumentParser(description="transform mask annotation to coco annotation") parser.add_argument("--dataset", type=str, default='CIHP', help="name of dataset (CIHP, MHPv2...
854
679
/************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to y...
3,151
310
<gh_stars>100-1000 { "name": "Shake", "description": "Discontinued image compositing software.", "url": "https://en.wikipedia.org/wiki/Shake_(software)" }
57
1,459
/** @file ***************************************************************************** Declaration of interfaces for top-level SHA256 gadgets. ***************************************************************************** * @author This file is part of libsnark, developed by SCIPR Lab * and contr...
1,752
348
<filename>docs/data/leg-t2/067/06707491.json {"nom":"Tieffenbach","circ":"7ème circonscription","dpt":"Bas-Rhin","inscrits":246,"abs":134,"votants":112,"blancs":4,"nuls":1,"exp":107,"res":[{"nuance":"LR","nom":"<NAME>","voix":85},{"nuance":"REM","nom":"<NAME>","voix":22}]}
112
777
<filename>bert-quantization/bert-pyt-quantization/data/TextSharding.py # Copyright (c) 2019 NVIDIA CORPORATION. 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...
5,976
384
<filename>iOS/samples/SignInHelpers/include/SampleAccountActionFailureReason.h<gh_stars>100-1000 // // Copyright (c) Microsoft Corporation. All rights reserved. // #pragma once #import <Foundation/Foundation.h> // @brief MSA failure reason for sign in or sign out action typedef NS_ENUM(NSInteger, SampleAccountActio...
286
7,220
<filename>trax/models/research/predict_terraformer.py<gh_stars>1000+ # coding=utf-8 # Copyright 2021 The Trax 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.apach...
2,566
828
/* * Copyright (C) 2021 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...
1,252
14,668
<reponame>zealoussnow/chromium // 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 "third_party/blink/renderer/platform/media/web_content_decryption_module_session_impl.h" #include <memory> #incl...
6,875
303
<gh_stars>100-1000 x = (a for a in l) f(a for a in l) f(a + b for a, b in f())
42
777
<filename>third_party/WebKit/Source/core/editing/VisiblePosition.cpp /* * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights * reserved. * Portions Copyright (c) 2011 Motorola Mobility, Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modifica...
2,409
2,571
<reponame>Exusial/jittor<gh_stars>1000+ # *************************************************************** # Copyright (c) 2021 Jittor. All Rights Reserved. # Maintainers: <NAME> <<EMAIL>>. # This file is subject to the terms and conditions defined in # file 'LICENSE.txt', which is part of this source code package. # ...
215
2,496
/* * Copyright (C) 2017 Ignite Realtime Foundation. 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...
302
5,169
<reponame>Gantios/Specs<gh_stars>1000+ { "name": "AAInfographics", "version": "5.0.0", "summary": "📈📊📱📺💻An elegant and friendly data visualization chart framework for iOS, iPadOS and macOS. Extremely powerful ,supports line, spline, area, areaspline, column, bar, pie, scatter, angular gauges, arearange, area...
1,138
24,206
<reponame>chenxian01/easyexcel package com.alibaba.excel.analysis.v07.handlers; import com.alibaba.excel.context.xlsx.XlsxReadContext; /** * Cell Value Handler * * @author jipengfei */ public abstract class AbstractCellValueTagHandler extends AbstractXlsxTagHandler { @Override public void characters(Xlsx...
172
25,151
// Licensed to the Software Freedom Conservancy (SFC) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The SFC licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you m...
506
521
/* Copyright (C) 2007-2012 <NAME>. All Rights Reserved. Portions Copyright (C) 2012 SN Systems Ltd. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of version 2.1 of the GNU Lesser General Public License published by the Free Software Foundation. ...
1,672
1,968
////////////////////////////////////////////////////////////////////////////// // // This file is part of the Corona game engine. // For overview and more information on licensing please refer to README.md // Home page: https://github.com/coronalabs/corona // Contact: <EMAIL> // ///////////////////////////////////////...
742
1,392
from dataclasses import dataclass, field from enum import Enum from typing import Dict, List, NamedTuple, Optional from .const import ( FILL_MISSING_ADDRESS, MERCHANT_CODE, NP_TEST_URL, NP_URL, SHIPPING_COMPANY, SKU_AS_NAME, SP_CODE, TERMINAL_ID, USE_SANDBOX, ) class NPResponse(Na...
722
432
<filename>test/debug/crc32.c<gh_stars>100-1000 /* * cc crc32.c /usr/src/sys/libkern/{crc32.c,icrc32.c} -o ~/bin/crc32 */ #include <sys/types.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> uint32_t iscsi_crc32(const void *buf, size_t size); uint32_t iscsi_crc32_ext(const void *buf, size_t size, uint3...
459
627
/* Copyright 2019 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. * * TI INA3221 Current/Power monitor driver. */ #ifndef __CROS_EC_INA3221_H #define __CROS_EC_INA3221_H #define INA3221_REG_CONFIG 0x00 #define INA...
549
303
<gh_stars>100-1000 {"id":6362,"line-1":"<NAME>","line-2":"Mauritania","attribution":"©2015 CNES / Astrium, Cnes/Spot Image, DigitalGlobe, Landsat","url":"https://www.google.com/maps/@21.489721,-11.562430,14z/data=!3m1!1e3"}
95
5,865
<filename>api/api-shared-v9/src/main/java/com/thoughtworks/go/apiv9/admin/shared/representers/materials/SvnMaterialRepresenter.java /* * Copyright 2021 ThoughtWorks, 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...
584
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 NOTICE file distributed wit...
908
360
package indi.mybatis.flying.pojo; import java.util.Date; import org.apache.ibatis.type.JdbcType; import com.alibaba.fastjson.annotation.JSONField; import indi.mybatis.flying.annotations.FieldMapperAnnotation; import indi.mybatis.flying.annotations.TableMapperAnnotation; import indi.mybatis.flying.handler.ByteArrayH...
4,254
1,756
package com.libmailcore; /** Operation to render an IMAP message. */ public class IMAPMessageRenderingOperation extends IMAPOperation { public native String result(); }
46
1,144
// SPDX-License-Identifier: GPL-2.0+ /* * Copyright (c) 2011 The Chromium OS Authors. */ #include <common.h> #include <command.h> #include <mapmem.h> #include <trace.h> #include <asm/io.h> static int get_args(int argc, char * const argv[], char **buff, size_t *buff_ptr, size_t *buff_size) { if (argc < 2) r...
1,302
3,200
<filename>mindspore/lite/src/delegate/npu/op/strided_slice_npu.cc /** * Copyright 2020-2021 Huawei Technologies Co., Ltd * * 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....
2,744
729
""" @author: lileilei @file: ddd.py @time: 2018/4/13 13:24 """ ''' 字典的合并 ''' def hebingDict(dict_list: dict): dictMerged = {} for item in dict_list: try: dictMerged.update(eval(item)) except Exception as e: print(e) return dictMerged
154
777
<filename>chrome/browser/ui/website_settings/mock_permission_prompt.cc // 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. #include "chrome/browser/ui/website_settings/mock_permission_prompt.h" #include "b...
624
441
package org.basex.query.expr; import static org.basex.query.QueryText.*; import org.basex.query.*; import org.basex.query.util.index.*; import org.basex.query.util.list.*; import org.basex.query.value.item.*; import org.basex.query.var.*; import org.basex.util.*; import org.basex.util.hash.*; /** * Or expression. ...
755
1,144
/****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2006 ComPiere, Inc. All Rights Reserved. * * This program is free software; you can redistribute it and/or modify it * ...
997
678
/* pt::rde::critcl - critcl - layer 1 declarations * (c) PARAM functions */ #ifndef _P_INT_H #define _P_INT_H 1 #include <p.h> /* Public decls */ #include <param.h> /* PARAM architectural state */ #include <util.h> /* Tracing support */ typedef struct RDE_STRING { struct RDE_STRING* next; Tcl_Obj* ...
464
2,605
class Solution { vector<vector<int>> edges; vector<int> score; int longest(int v) { if(score[v] > 0) { return score[v]; } score[v] = 1; for(int b : edges[v]) { // O(M) = O(N*L) score[v] = max(score[v], longest(b) + 1); } return score[v]; } public: // O(N*L^2) int longestS...
694
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.datafactory.models; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import com.fasterx...
1,701
918
// This is a generated file! Please edit source .ksy file and use // kaitai-struct-compiler to rebuild #include "kaitai/quicktime_mov.h" namespace veles { namespace kaitai { namespace quicktime_mov { quicktime_mov_t::quicktime_mov_t(kaitai::kstream* p_io, kaitai::kstruct* p_parent, ...
7,120
678
<gh_stars>100-1000 /** * This header is generated by class-dump-z 0.2b. * * Source: /System/Library/PrivateFrameworks/iWorkImport.framework/iWorkImport */ #import <iWorkImport/iWorkImport-Structs.h> #import <iWorkImport/XXUnknownSuperclass.h> __attribute__((visibility("hidden"))) @interface GQPProcessorFactory :...
294
454
<gh_stars>100-1000 package io.vertx.up.uca.jooq.cache; import io.vertx.core.Future; import io.vertx.tp.plugin.cache.hit.CMessage; import org.aspectj.lang.ProceedingJoinPoint; import org.aspectj.lang.annotation.Around; import org.aspectj.lang.annotation.Aspect; import java.util.List; /** * @author <a href="http://ww...
3,329
432
package com.thefinestartist.ytpa.sample; import android.content.Intent; import android.os.Bundle; import android.os.Handler; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.Toolbar; import android.view.View; import android.widget.ImageButton; import android.widget.ImageView; import an...
4,465
9,953
<reponame>mathieui/twisted<gh_stars>1000+ # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Tests for L{twisted.web.resource}. """ from twisted.trial.unittest import TestCase from twisted.python.compat import _PY3 from twisted.web.error import UnsupportedMethod from twisted.web.resource imp...
3,830
1,510
/* * 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 ...
1,910
882
package water.api; import java.util.Properties; import water.NanoHTTPD; import water.util.RString; /** * * @author peta */ public class HTTP404 extends Request { private transient final Str _error = new Str(ERROR,"Unknown error"); public HTTP404() { _requestHelp = "Displays the HTTP 404 page with error ...
521
501
<filename>pyscf/cc/qcisd_slow.py #!/usr/bin/env python # Copyright 2014-2021 The PySCF Developers. 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.apac...
3,987
450
/*------------------------------------------------------------------------- * * pg_amop.h * definition of the system "amop" relation (pg_amop) * along with the relation's initial contents. * * The amop table identifies the operators associated with each index opclass. * * The primary key for this table is <...
14,040
1,602
/* $Source: bitbucket.org:berkeleylab/gasnet.git/other/gasnet_arch_arm.h $ * Description: GASNet ARM-specific Helpers (Internal code, not for client use) * Copyright 2018, The Regents of the University of California * Terms of use are as specified in license.txt * * This code is used by gasnet_asm.h, configure a...
1,715
336
import grpc import product_info_pb2 import product_info_pb2_grpc import time; def run(): # open a gRPC channel channel = grpc.insecure_channel('localhost:50051') # create a stub (client) stub = product_info_pb2_grpc.ProductInfoStub(channel) response = stub.addProduct(product_info_pb2.Product(name ...
210
4,462
from typing import Dict, List, Optional, Union import numpy as np import logging from dataclasses import dataclass from .model_base import BaseSurrogateModel from ..datatypes.common import FantasizedPendingEvaluation, Candidate from ..datatypes.hp_ranges_cs import HyperparameterRanges_CS from ..datatypes.tuning_job_st...
6,668
852
<filename>DPGAnalysis/Skims/python/cosmicTPSkim_cff.py import FWCore.ParameterSet.Config as cms from TrackPropagation.SteppingHelixPropagator.SteppingHelixPropagatorAny_cfi import * cosmictrackfinderP5TkCntFilter = cms.EDFilter("TrackCountFilter", src = cms.InputTag('cos...
1,682
1,581
<reponame>qaseleniumtesting01/GithubScannerCocoapods // // ADKCollectionViewDynamicSizeCell.h // AppDevKit // // Created by <NAME> on 6/8/15. // Copyright © 2015, Yahoo Inc. // Licensed under the terms of the BSD License. // Please see the LICENSE file in the project root for terms. // #import <UIKit/UIKit.h> @...
133
348
{"nom":"Montagny-Sainte-Félicité","circ":"4ème circonscription","dpt":"Oise","inscrits":305,"abs":152,"votants":153,"blancs":7,"nuls":1,"exp":145,"res":[{"nuance":"REM","nom":"<NAME>","voix":89},{"nuance":"LR","nom":"<NAME>","voix":56}]}
97
443
<filename>tests/changes/api/test_node_details.py<gh_stars>100-1000 from changes.testutils import APITestCase class NodeDetailsTest(APITestCase): def test_simple(self): node = self.create_node() path = '/api/0/nodes/{0}/'.format(node.id.hex) resp = self.client.get(path) assert resp...
177
4,403
package cn.hutool.poi.ofd; import cn.hutool.core.io.IORuntimeException; import cn.hutool.core.io.IoUtil; import cn.hutool.core.io.file.PathUtil; import org.ofdrw.font.Font; import org.ofdrw.layout.OFDDoc; import org.ofdrw.layout.edit.Annotation; import org.ofdrw.layout.element.Div; import org.ofdrw.layout.element.Img;...
1,277
364
package rsc.publisher; import java.util.Arrays; import java.util.concurrent.TimeUnit; import org.openjdk.jmh.annotations.*; import org.openjdk.jmh.infra.Blackhole; import org.reactivestreams.Publisher; import rsc.util.PerfSubscriber; /** * Example benchmark. Run from command line as * <br> * gradle jmh -Pjmh='P...
1,046
400
<gh_stars>100-1000 /* * * Copyright (c) 2013 - 2020 <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 appl...
2,923
7,272
<reponame>saurabhkurve/DSA-Bootcamp-Java package com.kunal.strings; import java.util.ArrayList; public class SubSeq { public static void main(String[] args) { // subseqAscii("", "abc"); System.out.println(subseqAsciiRet("", "abc")); } static void subseq(String p, String up) { if (u...
913
892
{ "schema_version": "1.2.0", "id": "GHSA-pmj4-hxrq-f9wh", "modified": "2022-01-09T00:00:24Z", "published": "2022-01-04T00:00:50Z", "aliases": [ "CVE-2021-24991" ], "details": "The WooCommerce PDF Invoices & Packing Slips WordPress plugin before 2.10.5 does not escape the tab and section parameters bef...
380
1,372
<reponame>Russ76/mrpt /* +------------------------------------------------------------------------+ | Mobile Robot Programming Toolkit (MRPT) | | https://www.mrpt.org/ | | ...
1,338
1,338
/* * Copyright (c) 2000-2008, <NAME> <<EMAIL>>, * Copyright (c) 2000-2008, <NAME> <<EMAIL>>, * All Rights Reserved. Distributed under the terms of the MIT license. */ /*! This class listens to a PlaybackManager The hooks are called by PlaybackManager after it executed a command, to keep every listener informe...
360
19,628
package com.didichuxing.doraemonkit.widget.tableview.intface; import android.view.MotionEvent; import android.view.View; public interface ITouch { /** * 用于判断是否请求不拦截事件 * 解决手势冲突问题 * * @param view * @param event */ void onDisallowInterceptEvent(View view, MotionEvent event); /...
212
575
<filename>chrome/browser/extensions/media_router_extension_access_logger_impl.h // 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 CHROME_BROWSER_EXTENSIONS_MEDIA_ROUTER_EXTENSION_ACCESS_LOGGER_IMP...
333
1,935
<reponame>parmance/HIP /* Copyright (c) 2021 Advanced Micro Devices, Inc. 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, including without limitation the...
1,622
538
<gh_stars>100-1000 #pragma once #include "Scanner.h" #include "BytePattern.h" enum HeartBeatSnesVersion: uint8_t; // see HeartBeatSnesFormat.h class HeartBeatSnesScanner: public VGMScanner { public: HeartBeatSnesScanner(void) { USE_EXTENSION(L"spc"); } virtual ~HeartBeatSnesScanner(void) { } virtu...
229
435
<gh_stars>100-1000 package com.github.airk.triggertest; import android.os.Bundle; import android.os.Handler; import android.os.HandlerThread; import android.os.Looper; import android.os.Message; import android.support.v7.app.AppCompatActivity; import android.util.Log; import android.view.View; import android.widget.Pr...
3,118
30,023
{ "config": { "abort": { "cannot_connect": "No se pudo conectar con el controlador con url {base_url}" }, "step": { "user": { "data": { "exclude": "Identificadores de dispositivos Vera a excluir de Home Assistant", ...
721
14,668
// Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // https://developers.google.com/protocol-buffers/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // ...
1,961
746
package org.protege.editor.owl.model.entity; import org.protege.editor.owl.ui.action.SelectedOWLEntityAction; import org.semanticweb.owlapi.model.OWLEntity; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.awt.*; import java.io.IOException; /** * <NAME> * Stanford Center for Biomedical Informat...
373
575
// 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. #ifndef IOS_WEB_VIEW_INTERNAL_PASSWORDS_WEB_VIEW_PASSWORD_MANAGER_LOG_ROUTER_FACTORY_H_ #define IOS_WEB_VIEW_INTERNAL_PASSWORDS_WEB_VIEW_PASSWORD_MANAGER_...
490
1,103
<gh_stars>1000+ # -*- coding: utf-8 -*- import datetime import os import zipfile from fooltrader.contract.files_contract import get_code_from_path from fooltrader.settings import FOOLTRADER_STORE_PATH, STOCK_END_CODE, STOCK_START_CODE def zip_dir(src_dir=FOOLTRADER_STORE_PATH, start_code=STOCK_START_CODE, end_code=...
1,563
493
/** * Copyright (C) 2016 Turi * All rights reserved. * * This software may be modified and distributed under the terms * of the BSD license. See the LICENSE file for details. */ /* * Copyright (c) 2009 Carnegie Mellon University. * All rights reserved. * * Licensed under the Apache License, Version 2....
4,044
430
import numpy as np # @manual=//deeplearning/trt/python:py_tensorrt import tensorrt as trt import torch from ..converter_registry import tensorrt_converter from .converter_utils import mark_as_int8_layer def common_activation( network, mod, input_val, activation_type, activation_dyn_range_fn, layer_name ): ...
938
685
<gh_stars>100-1000 import re word="jofwjoifA级哦啊接我金佛安fewfae慰剂serge" p = re.compile(r'\w', re.L) result = p.sub("", word) print(result)
83
3,084
// // Copyright (c) Microsoft Corporation. All Rights Reserved. // #include <ndis.h> #include <netiodef.h> #include <intsafe.h> #include <ntintsafe.h> #include "SxBase.h" #include "SxApi.h" #include "SxLibrary.h"
98
2,661
<filename>earth_enterprise/src/common/khBackTrace.h /* * Copyright 2017 Google 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 ...
390
414
// // RCDGroupConversationCell.h // SealTalk // // Created by 张改红 on 2019/7/19. // Copyright © 2019 RongCloud. All rights reserved. // #import <RongIMKit/RongIMKit.h> static NSString *_Nullable RCDGroupConversationCellIdentifier = @"RCDGroupConversationCellIdentifier"; NS_ASSUME_NONNULL_BEGIN @interface RCDGroup...
171
420
<reponame>MJochim/seahub #!/usr/bin/env python # encoding: utf-8 # Copyright (c) 2012-2016 Seafile Ltd. import sqlite3 import os import sys if len(sys.argv) != 2: print("usage: update.py <dbname>") sys.exit(-1) if not os.access(sys.argv[1], os.F_OK): print(("%s does not exist" % sys.argv[1])) sys.exi...
277
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; import com.azure.core.credential.TokenCredential; import com.azure.core.http.HttpClient; import com.azure.core.http...
7,484
640
#ifndef __CONFIG_Z88DK_H_ #define __CONFIG_Z88DK_H_ // Automatically Generated at Library Build Time #undef __Z88DK #define __Z88DK 2100 #endif
75
14,668
#!/usr/bin/env python3 # 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. """Runs captured sites framework recording and tests. $ tools/captured_sites/control.py [command] [arguments] Commands: chrome St...
6,805
841
<gh_stars>100-1000 package org.jboss.resteasy.test.resource.param.resource; import org.jboss.resteasy.test.resource.param.UriParamAsPrimitiveTest; import org.junit.Assert; import jakarta.ws.rs.GET; import jakarta.ws.rs.Path; import jakarta.ws.rs.PathParam; @Path("/long/wrapper/{arg}") public class UriParamAsPrimitiv...
210
1,439
/******************************************************************************* * Copyright 2018 <NAME> http://galenframework.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...
4,518
2,644
<reponame>CunningLearner/lk<filename>top/include/lk/list.h /* * Copyright (c) 2008 <NAME> * * Use of this source code is governed by a MIT-style * license that can be found in the LICENSE file or at * https://opensource.org/licenses/MIT */ #pragma once #include <lk/compiler.h> #include <stdbool.h> #include <stdd...
2,857
6,304
<reponame>rhencke/engine<filename>src/third_party/skia/src/gpu/GrDriverBugWorkarounds.cpp /* * Copyright 2018 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "include/gpu/GrDriverBugWorkarounds.h" #include "include/core/SkTypes.h" G...
539
1,091
/* * Copyright 2017-present Open Networking Foundation * * 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...
3,318
10,225
package io.quarkus.deployment.configuration.type; import java.util.Objects; /** * */ public final class OptionalOf extends ConverterType { private final ConverterType type; private int hashCode; public OptionalOf(final ConverterType type) { this.type = type; } public ConverterType getN...
436
850
<reponame>jacebrowning/voc<filename>python/common/org/python/exceptions/SyntaxWarning.java package org.python.exceptions; public class SyntaxWarning extends org.python.exceptions.Warning { public SyntaxWarning() { super(); } public SyntaxWarning(String msg) { super(msg); } public ...
175
384
/* This code is part of the tng binary trajectory format. * * Written by <NAME> * Copyright (c) 2012-2013, The GROMACS development team. * Check out http://www.gromacs.org for more information. * * * This program is free software; you can redistribute it and/or * modify it under the terms of the Revised BSD Lic...
26,248
1,144
package de.metas.contracts.commission.commissioninstance.businesslogic.sales.commissiontrigger; import de.metas.bpartner.BPartnerId; import de.metas.contracts.commission.Customer; import lombok.Builder; import lombok.NonNull; import lombok.Value; /* * #%L * de.metas.commission * %% * Copyright (C) 2019 metas GmbH...
573
922
/* * Hibernate Validator, declare and validate application constraints * * License: Apache License, Version 2.0 * See the license.txt file in the root directory or <http://www.apache.org/licenses/LICENSE-2.0>. */ package org.hibernate.validator.internal.engine.messageinterpolation.el; import jakarta.el.ELExceptio...
142