max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
322 | /*****************************************************************************
* Copyright [2019]
*
* 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/LICE... | 5,023 |
892 | <gh_stars>100-1000
{
"schema_version": "1.2.0",
"id": "GHSA-7386-4wm9-v7xr",
"modified": "2022-02-12T00:01:05Z",
"published": "2022-02-09T00:00:30Z",
"aliases": [
"CVE-2022-21805"
],
"details": "Reflected cross-site scripting vulnerability in the attached file name of php_mailform versions prior to Ve... | 413 |
3,897 | /*
* Copyright (c) 2018-2019, Arm Limited and affiliates.
* SPDX-License-Identifier: Apache-2.0
*
* 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/... | 600 |
348 | <reponame>chamberone/Leaflet.PixiOverlay<filename>docs/data/leg-t2/036/03602130.json
{"nom":"Montlevicq","circ":"2ème circonscription","dpt":"Indre","inscrits":103,"abs":37,"votants":66,"blancs":6,"nuls":1,"exp":59,"res":[{"nuance":"LR","nom":"M. <NAME>","voix":33},{"nuance":"MDM","nom":"<NAME>","voix":26}]} | 131 |
1,454 | /**
* The MIT License (MIT)
* Copyright (c) 2020 铭软科技(mingsoft.net)
* 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... | 1,018 |
1,968 | <filename>librtt/Rtt_PlatformVideoProvider.h<gh_stars>1000+
//////////////////////////////////////////////////////////////////////////////
//
// 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
//... | 412 |
4,403 | package cn.hutool.core.net;
import cn.hutool.core.util.CharsetUtil;
import org.junit.Assert;
import org.junit.Test;
public class UrlDecoderTest {
@Test
public void decodeForPathTest(){
Assert.assertEquals("+", URLDecoder.decodeForPath("+", CharsetUtil.CHARSET_UTF_8));
}
}
| 117 |
669 | <gh_stars>100-1000
from rbgt_pybind import (
Body,
Camera,
RegionModality,
RenderDataBody,
RendererGeometry,
# Tracker,
Viewer,
filesystem,
Transform3fA,
mat2t3fA,
t3fA2mat,
)
import os
import math
import time
import numpy as np
import cv2
class TestTracker(object):
d... | 2,577 |
8,586 | <gh_stars>1000+
/* Copyright (c) 2020 vesoft inc. All rights reserved.
*
* This source code is licensed under Apache 2.0 License.
*/
#ifndef COMMON_EXPRESSION_COLUMNEXPRESSION_H_
#define COMMON_EXPRESSION_COLUMNEXPRESSION_H_
#include "common/expression/Expression.h"
namespace nebula {
/**
* This is an internal t... | 435 |
375 | /*
* The MIT License
*
* Copyright (c) 2017 CloudBees, Inc.
*
* 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, co... | 1,544 |
335 | {
"word": "Brachistochrone",
"definitions": [
"A curve between two points along which a body can move under gravity in a shorter time than for any other curve."
],
"parts-of-speech": "Noun"
} | 78 |
384 | package yifeiyuan.practice.practicedemos.itemtouchhelper;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import yifeiyuan.practice.practicedemos.R;
import yifeiyuan.practice.practicedemos.base.ToolbarActivity;
/**
*
* todo 排序 拖动
*
*/
public class TouchHelperActivity extends To... | 458 |
507 | <reponame>mjuenema/python-terrascript
# terrascript/snowflake/r.py
# Automatically generated by tools/makecode.py ()
import warnings
warnings.warn(
"using the 'legacy layout' is deprecated", DeprecationWarning, stacklevel=2
)
import terrascript
class snowflake_account_grant(terrascript.Resource):
pass
cla... | 1,184 |
303 | <filename>src/main/java/com/google/webauthn/gaedemo/objects/AttestationExtension.java<gh_stars>100-1000
package com.google.webauthn.gaedemo.objects;
public interface AttestationExtension {
public enum Type {
CABLE,
}
public Type getType();
}
| 90 |
1,517 | <gh_stars>1000+
/*
* Copyright (C) 2008 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... | 397 |
2,338 | int main() {
asm volatile(
"vmov.f64 d0, #0.5\n\t"
"vmov.f64 d1, #1.5\n\t"
"vmov.f64 d2, #2.5\n\t"
"vmov.f64 d3, #3.5\n\t"
"vmov.f32 s8, #4.5\n\t"
"vmov.f32 s9, #5.5\n\t"
"vmov.f32 s10, #6.5\n\t"
"vmov.f32 s11, #7.5\n\t"
"\n\t"
"bkpt #0\n\t"
:
:
: "d0", "d... | 278 |
9,402 | <filename>src/mono/dlls/mscordbi/cordb-thread.h<gh_stars>1000+
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
//
// File: CORDB-THREAD.H
//
#ifndef __MONO_DEBUGGER_CORDB_THREAD_H__
#define __MONO_DEBUGGER_CORDB_THREAD_H__
#inclu... | 1,767 |
2,338 | // NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py
// RUN: %clang_cc1 -triple aarch64-linux-gnu -target-feature +neon \
// RUN: -target-feature +sha3 -S -emit-llvm -o - %s \
// RUN: | FileCheck %s
#include <arm_neon.h>
// CHECK-LABEL: @test_vsha512h(
// CHECK: call <2 x i64> @llvm.aarc... | 2,667 |
24,939 | <gh_stars>1000+
import asyncio
from mitmproxy import ctx
class KeepServing:
def load(self, loader):
loader.add_option(
"keepserving", bool, False,
"""
Continue serving after client playback, server playback or file
read. This option is ignored by interactive... | 548 |
695 | import time
import threading
class ProceedContainer:
tid_to_proceed = {
1: False,
2: False,
}
def exit_while_loop(tid):
ProceedContainer.tid_to_proceed[tid] = True
return 'ok'
def thread_func(tid):
while not ProceedContainer.tid_to_proceed[tid]: # The debugger should change th... | 281 |
5,964 | <gh_stars>1000+
// Copyright 2017 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/builtins/builtins-utils-gen.h"
#include "src/builtins/builtins.h"
#include "src/code-stub-assembler.h"
namespace v8 {
nam... | 438 |
3,651 | /*
*
* * Copyright 2015 OrientDB LTD (info(at)orientdb.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.org/licenses/LICENSE-2.0... | 770 |
1,375 | //
// VirtualBoxServiceProvider.h
// Vagrant Manager
//
// Copyright (c) 2014 Lanayo. All rights reserved.
//
#import "VirtualBoxMachineInfo.h"
#import "VirtualMachineServiceProvider.h"
@interface VirtualBoxServiceProvider : NSObject <VirtualMachineServiceProvider>
@end | 80 |
711 | <gh_stars>100-1000
/*
* Copyright 2015 JBoss 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... | 404 |
640 | <gh_stars>100-1000
#!/usr/bin/env python
# -*- encoding: utf8 -*-
import os, sys
print "I'm going to fork now - the child will write something to a pipe, and the parent will read it back"
r, w = os.pipe() # r,w是文件描述符, 不是文件对象
pid = os.fork()
if pid:
# 父进程
os.close(w) # 关闭一个文件描述符
r = os.fd... | 393 |
367 | #include <assert.h>
#include <stdlib.h>
#include <string.h>
#include <node_api.h>
#include "utils.h"
#define BUFFER_SIZE 512
#define VALUE_NAME_BUFFER_SIZE 64
#define OID_HEX_BUFFER_SIZE 64
#include "polodb.h"
#define STD_CALL(EXPR) \
ec = (EXPR); \
if (ec < 0) { \
napi_throw_type_error(env, NULL, PLDB_error... | 16,985 |
631 | /*
Copyright 2009-(CURRENT YEAR) <NAME>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | 440 |
1,313 | /*
* Copyright (c) 2021 Raspberry Pi (Trading) Ltd.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include "hardware/flash.h"
#include "pico/unique_id.h"
static_assert(PICO_UNIQUE_BOARD_ID_SIZE_BYTES == FLASH_UNIQUE_ID_SIZE_BYTES, "Board ID size must match flash ID size");
static pico_unique_board_id_t retrieved_... | 551 |
2,151 | <reponame>rhencke/engine
// 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 IOS_CHROME_APP_APPLICATION_DELEGATE_APP_STATE_H_
#define IOS_CHROME_APP_APPLICATION_DELEGATE_APP_STATE_H_
#import <UIKit... | 1,210 |
1,738 | <reponame>brianherrera/lumberyard<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 software is governed by the... | 359 |
809 | /**
* @file fpga.c
* @brief Load config to FPGA
* @author <NAME> <<EMAIL>>
* @version
* @date 28.01.2020
*/
#include <fcntl.h>
#include <stdint.h>
#include <stdio.h>
#include <unistd.h>
#include <drivers/fpga.h>
static void print_help(char **argv) {
printf("USAGE:\n");
printf("%s [load file_name | tftp file_n... | 850 |
735 | <reponame>wilx/xstream
/*
* Copyright (C) 2004, 2005 <NAME>.
* Copyright (C) 2006, 2007, 2018 XStream Committers.
* All rights reserved.
*
* The software in this package is published under the terms of the BSD
* style license a copy of which has been included with this distribution in
* the LICENSE.txt file.
*
... | 256 |
1,607 | /*
* 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 distributed under t... | 849 |
335 | /*
* Copyright 2019-2020 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | 1,130 |
435 | <filename>pycon-us-2016/videos/guillermo-perez-python-as-a-configuration-language-pycon-2016.json
{
"copyright_text": "Standard YouTube License",
"description": "Speaker: <NAME>\u00e9rez\n\nThe enormous size of Facebook's infrastructure and its \"\"Move Fast\"\" culture pose a challenge for the configuration framew... | 438 |
371 | <reponame>wuchunfu/EngineX
package com.risk.riskmanage.system.model.request;
import lombok.Data;
@Data
public class LoginInfoParam {
private String account;// 账号
private String password;// 密码
}
| 80 |
357 | <reponame>ChangXiaoning/jalangi2
# Copyright 2013 Samsung Information Systems America, 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... | 594 |
318 | <filename>sys/winnt/win32api.h
/* SCCS Id: @(#)win32api.h 3.4 $Date: 2002/07/24 08:25:21 $ */
/* Copyright (c) NetHack PC Development Team 1996 */
/* NetHack may be freely redistributed. See license for details. */
/*
* This header file is used to clear up some discrepencies with Visual C
* hea... | 279 |
453 | <filename>libc/newlib/libc/sys/sysvi386/dup2.c
#include <fcntl.h>
int
dup2 (int fd1, int fd2) {
close (fd2); /* ignore errors, if any */
return (fcntl (fd1, F_DUPFD, fd2));
}
| 91 |
403 | package io.craft.atom.rpc;
import io.craft.atom.io.Channel;
import io.craft.atom.io.IoHandler;
/**
* @author mindwind
* @version 1.0, Sep 22, 2014
*/
public abstract class RpcIoHandler implements IoHandler {
static final String RPC_CHANNEL = "rpc.channel";
@Override
public void channelOpened(Channel<byte[... | 252 |
389 | <reponame>kschoos/vivado-library
/******************************************************************************/
/* */
/* PmodCLS.c -- PmodCLS Example Projects */
/* ... | 4,508 |
369 | {
"externalDevices": {
"/AfterglowAx1Device": {
"deviceName": "microsoft0",
"server": "localhost:3884",
"descriptor": "external-devices/device-descriptors/Afterglow_AX1.json"
}
}
}
| 123 |
348 | {"nom":"Vero","circ":"1ère circonscription","dpt":"Corse-du-Sud","inscrits":377,"abs":222,"votants":155,"blancs":2,"nuls":1,"exp":152,"res":[{"nuance":"REG","nom":"<NAME>","voix":50},{"nuance":"LR","nom":"<NAME>","voix":38},{"nuance":"REM","nom":"Mme <NAME>","voix":27},{"nuance":"EXD","nom":"M. <NAME>","voix":14},{"nua... | 256 |
12,252 | <filename>testsuite/performance/tests/src/main/java/org/keycloak/performance/iteration/RandomIterator.java<gh_stars>1000+
package org.keycloak.performance.iteration;
import java.util.Iterator;
import java.util.List;
import java.util.concurrent.ThreadLocalRandom;
/**
*
* @author tkyjovsk
*/
public class RandomItera... | 244 |
379 | import numpy as np
from skrf_qtwidgets.analyzers import base_analyzer
import os
import skrf
from skrf_qtwidgets.cfg import example_data_dir
class DummyResource(object):
def __init__(self, *args, **kwargs):
pass
def close(self):
pass
class Analyzer(base_analyzer.Analyzer):
DEFAULT_VISA_... | 1,400 |
852 | import FWCore.ParameterSet.Config as cms
unpackedPatTrigger = cms.EDProducer(
"PATTriggerObjectStandAloneUnpacker"
, patTriggerObjectsStandAlone = cms.InputTag( 'selectedPatTrigger' )
, triggerResults = cms.InputTag( 'TriggerResults::HLT' )
)
| 96 |
495 | <gh_stars>100-1000
// Copyright (c) 2017-2021 Dr. <NAME> and <NAME>
// Please see LICENSE for license or visit https://github.com/taocpp/json/
#ifndef TAO_JSON_INTERNAL_HEXDUMP_HPP
#define TAO_JSON_INTERNAL_HEXDUMP_HPP
#include <sstream>
#include <string>
#include <utility>
namespace tao::json::internal
{
templat... | 363 |
1,281 | <filename>pytorch_toolbelt/zoo/__init__.py
from .classification import *
from .segmentation import *
| 34 |
5,169 | {
"name": "OCHuds",
"version": "1.3.0",
"summary": "A bunch of huds.",
"description": "A bunch of huds: Spinner, Progress, Message and Animated.",
"homepage": "https://github.com/OpenCraft/OCHuds",
"license": {
"type": "MIT",
"file": "LICENSE"
},
"authors": {
"<NAME>": "<EMAIL>"
},
"sour... | 347 |
10,876 | <filename>ports/presentmon/vcpkg.json
{
"name": "presentmon",
"version-semver": "1.7.0",
"description": "PresentMon is a tool to capture and analyze ETW events related to swap chain presentation on Windows.",
"supports": "windows & !uwp",
"features": {
"tools": {
"description": "Build tool PresentMo... | 118 |
389 | <gh_stars>100-1000
{
"id":"contentfragmentlist-45d72c7ea2",
":type": "core/wcm/components/contentfragmentlist/v1/contentfragmentlist",
"items": []
}
| 74 |
3,001 | package com.github.florent37.expectanim.listener;
import com.github.florent37.expectanim.ExpectAnim;
/**
* Created by florentchampigny on 21/02/2017.
*/
public interface AnimationStartListener {
void onAnimationStart(ExpectAnim expectAnim);
}
| 86 |
6,270 | <gh_stars>1000+
[
{
"type": "feature",
"category": "CloudWatchEvents",
"description": "Add support for SageMaker Model Builder Pipelines Targets to EventBridge"
},
{
"type": "feature",
"category": "CustomerProfiles",
"description": "This release adds an option... | 345 |
335 | <gh_stars>100-1000
{
"word": "Interrogatory",
"definitions": [
"A written question which is formally put to one party in a case by another party and which must be answered."
],
"parts-of-speech": "Noun"
} | 84 |
372 | ##
# The MIT License (MIT)
#
# Copyright (c) 2016 <NAME>
#
# 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, modify,... | 1,313 |
575 | <filename>chrome/browser/media/router/chrome_media_router_factory.cc
// 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.
#include "chrome/browser/media/router/chrome_media_router_factory.h"
#include "build... | 1,146 |
742 | <gh_stars>100-1000
package org.support.project.knowledge.vo.api;
public class GroupDetail extends Group {
/** 所属ユーザ数 */
private int userCount = 0;
/**
* @return the userCount
*/
public int getUserCount() {
return userCount;
}
/**
* @param userCount the userCount to set
... | 193 |
563 | """
This script
- creates a folder named "cifar10_c" under the same directory as 'CIFAR-10-C'
- extracts images from .npy files and save them as .jpg.
"""
import os
import sys
import numpy as np
import os.path as osp
from PIL import Image
from dassl.utils import mkdir_if_missing
def extract_and_save(images, labels, ... | 950 |
854 | __________________________________________________________________________________________________
sample 100 ms submission
class Solution:
def allPathsSourceTarget(self, graph: List[List[int]]) -> List[List[int]]:
n = len(graph)
paths = {}
for u in range(n-2, -1, -1):
... | 579 |
2,054 | <reponame>w136111526/zqcnn<gh_stars>1000+
#include "ZQ_CNN_Net.h"
#include "ZQ_CNN_MTCNN_AspectRatio.h"
#if defined(_WIN32)
#include "ZQlib/ZQ_PutTextCN.h"
#endif
#include <vector>
#include <iostream>
#include "opencv2/opencv.hpp"
#include "ZQ_CNN_CompileConfig.h"
#if ZQ_CNN_USE_BLAS_GEMM
#if __ARM_NEON
#include <openb... | 3,253 |
454 | <gh_stars>100-1000
# Copyright (c) 2020 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
#
# Unl... | 4,203 |
434 | <reponame>aqyoung/scan-Fox-scan<gh_stars>100-1000
#!/usr/bin/env python
#!-*- coding:utf-8 -*-
import json
import threading
import multiprocessing
import requests
from flask import Flask,render_template,request,session,jsonify,redirect
from libs.action import SqlMapAction,Spider_Handle,Save_Success_Target
from libs.f... | 1,775 |
790 | <gh_stars>100-1000
# This is just a kludge so that bdist_rpm doesn't guess wrong about the
# distribution name and version, if the egg_info command is going to alter
# them, another kludge to allow you to build old-style non-egg RPMs, and
# finally, a kludge to track .rpm files for uploading when run on Python <2.5.
f... | 966 |
416 | <gh_stars>100-1000
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/li... | 1,824 |
1,538 | <filename>src/kudu/util/throttler-test.cc
// 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 Licens... | 861 |
3,427 | <reponame>oli0044/graphhopper<gh_stars>1000+
/*
* Licensed to GraphHopper GmbH under one or more contributor
* license agreements. See the NOTICE file distributed with this work for
* additional information regarding copyright ownership.
*
* GraphHopper GmbH licenses this file to you under the Apache License,
... | 971 |
690 | <filename>artemis-core/artemis/src/main/java/com/artemis/link/EntityFieldMutator.java<gh_stars>100-1000
package com.artemis.link;
import com.artemis.Component;
import com.artemis.Entity;
import com.artemis.World;
import com.artemis.utils.reflect.Field;
import com.artemis.utils.reflect.ReflectionException;
class Entit... | 331 |
1,403 | /*
* Helper.h
*
* This file is part of the "LLGL" project (Copyright (c) 2015-2019 by <NAME>)
* See "LICENSE.txt" for license information.
*/
#ifndef LLGL_HELPER_H
#define LLGL_HELPER_H
#include "../Renderer/CheckedCast.h"
#include <LLGL/Export.h>
#include <algorithm>
#include <type_traits>
#include <memory>
#... | 3,160 |
5,169 | {
"name": "KICaptureKit",
"version": "0.0.2",
"summary": "KICaptureKit",
"description": "KICaptureKit",
"homepage": "https://github.com/smartwalle/KICaptureKit",
"license": "MIT",
"authors": {
"SmartWalle": "<EMAIL>"
},
"platforms": {
"ios": "7.0"
},
"source": {
"git": "https://github.... | 284 |
30,023 | """Config flow for Overkiz (by Somfy) integration."""
from __future__ import annotations
from collections.abc import Mapping
from typing import Any, cast
from aiohttp import ClientError
from pyoverkiz.client import OverkizClient
from pyoverkiz.const import SUPPORTED_SERVERS
from pyoverkiz.exceptions import (
BadC... | 2,895 |
2,151 | <reponame>zipated/src<filename>device/vr/vr_device_base_unittest.cc<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 "device/vr/vr_device.h"
#include <memory>
#include "base/mes... | 1,610 |
1,283 | #!/usr/bin/python
# -*- coding: utf8 -*-
# cp936
#
# The MIT License (MIT)
#
# Copyright (c) 2010-2017 fasiondog
#
# 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, includi... | 3,678 |
543 | /*
* Copyright 2017 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... | 507 |
367 | """Histograms of individual gradient transformations."""
import torch
from backpack.extensions import BatchGrad
from cockpit.quantities.bin_adaptation import NoAdaptation
from cockpit.quantities.quantity import SingleStepQuantity
from cockpit.quantities.utils_hists import histogram2d
from cockpit.quantities.utils_tra... | 4,869 |
3,459 | <reponame>werminghoff/Provenance
#ifndef __MD_MAP_REALTEC_H
#define __MD_MAP_REALTEC_H
MD_Cart_Type *MD_Make_Cart_Type_REALTEC(const md_game_info *ginfo, const uint8 *ROM, const uint32 ROM_size, const uint32 iparam, const char *sparam);
#endif
| 100 |
352 | # -*- coding: utf-8 -*-
from __future__ import print_function, unicode_literals
import os
import sys
import click
from sagify.log import logger
from sagify.commands import ASCII_LOGO
from sagify.config.config import ConfigManager
click.disable_unicode_literals_warning = True
@click.command()
@click.option(u"--imag... | 676 |
14,668 | # 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.
"""Presubmit checks for Share share_targets."""
def CheckVersionUpdatedInShareTargetList(input_api, output_api):
def IsShareTargetList(x):
retur... | 369 |
3,200 | <gh_stars>1000+
#!/usr/bin/python
#
# Copyright 2018-2021 Polyaxon, 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 require... | 318 |
511 | /****************************************************************************
*
* Copyright 2016 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... | 1,923 |
573 | <filename>tools/lint.py
#!/usr/bin/env python2.7
# Copyright 2015, VIXL authors
# 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 copyri... | 3,106 |
444 | <filename>orchestra/migrations/0028_snapshots_to_iterations.py<gh_stars>100-1000
# -*- coding: utf-8 -*-
# Generated by Django 1.9.5 on 2016-04-06 21:57
from __future__ import unicode_literals
import logging
from operator import itemgetter
from dateutil.parser import parse
from django.db import migrations
from django... | 1,936 |
2,989 | <filename>databus-core/databus-core-container/src/main/java/com/linkedin/databus2/core/container/monitoring/mbean/DbusHttpTotalStats.java
package com.linkedin.databus2.core.container.monitoring.mbean;
/*
*
* Copyright 2013 LinkedIn Corp. All rights reserved
*
* Licensed under the Apache License, Version 2.0 (the "L... | 5,958 |
754 | /*-
* <<
* UAVStack
* ==
* Copyright (C) 2016 - 2017 UAVStack
* ==
* 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 r... | 544 |
850 | <reponame>AlexChrisF/udacity<filename>tensorflow/core/util/env_var.h
/* Copyright 2016 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.ap... | 545 |
2,372 | //
// 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 conditions and the following disclaimer.
// * Redistributions in bin... | 1,449 |
3,285 | """
Copyright 2020 The OneFlow Authors. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agr... | 4,503 |
2,460 |
package io.fabric8.kubernetes.api.model.storage.v1beta1;
import java.util.HashMap;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude... | 2,544 |
343 | from rest_framework import serializers as rest_framework_serializers
from rest_framework.fields import ( # NOQA
BooleanField, CharField, ChoiceField, DateField, DateTimeField,
DecimalField, DictField, DurationField, EmailField, Field, FileField,
FilePathField, FloatField, HiddenField, HStoreField, IPAddres... | 1,154 |
1,473 | package com.navercorp.pinpoint.plugin.druid.interceptor;
import com.navercorp.pinpoint.bootstrap.context.MethodDescriptor;
import com.navercorp.pinpoint.bootstrap.context.SpanEventRecorder;
import com.navercorp.pinpoint.bootstrap.context.TraceContext;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.... | 466 |
1,738 | <filename>dev/Gems/ScriptCanvas/Code/Include/ScriptCanvas/Translation/GraphToCPlusPlus.cpp
/*
* 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 us... | 3,531 |
337 | package cn.ycbjie.ycaudioplayer.utils.encryption;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.io.OutputStream;
import java.security.Key;
import javax.crypto.Cipher;
import javax.crypto.CipherInputStream;
import javax.cr... | 2,347 |
601 | /**
* Query support for relational database repositories.
*/
@NonNullApi
package org.springframework.data.relational.repository.query;
import org.springframework.lang.NonNullApi;
| 52 |
2,041 | <filename>library/src/main/java/com/airbnb/android/airmapview/LeafletGoogleMapType.java
package com.airbnb.android.airmapview;
public class LeafletGoogleMapType extends LeafletMapType {
public LeafletGoogleMapType() {
super("Google");
}
}
| 83 |
474 | #include <Babylon/GraphicsPlatform.h>
#include <GraphicsImpl.h>
#include <Windows.h>
namespace Babylon
{
void GraphicsImpl::ConfigureBgfxPlatformData(const WindowConfiguration& config, bgfx::PlatformData& pd)
{
pd.ndt = nullptr;
pd.nwh = config.WindowPtr;
pd.context = nullptr;
... | 492 |
526 | /* SPDX-License-Identifier: Apache-2.0 */
/* Copyright Contributors to the ODPi Egeria project. */
package org.odpi.openmetadata.viewservices.serverauthor.api.rest;
import org.odpi.openmetadata.adminservices.configuration.properties.OMAGServerConfig;
import java.util.Arrays;
/**
* A server Author response contai... | 991 |
1,780 | <reponame>Nishu123328/phenomic<gh_stars>1000+
{
"name": "@phenomic/bs-platform",
"version": "1.0.0",
"publishConfig": {
"access": "public"
},
"repository": "https://github.com/phenomic/phenomic.git",
"homepage": "https://phenomic.io",
"license": "MIT",
"authors": [
"<NAME> (MoOx)"
],
"descri... | 302 |
313 | <filename>YBL365/Class/Category/Category/ViewModel/YBLCategoryViewModel.h
//
// YBLCategoryViewModel.h
// YBL365
//
// Created by 乔同新 on 2017/2/23.
// Copyright © 2017年 乔同新. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "YBLCategoryTreeModel.h"
@interface YBLCategoryViewModel : NSObject
@prop... | 227 |
429 | import os
import torch
import shutil
import torch.nn.functional as F
import time
#============================================
__author__ = "<NAME>"
__license__ = "MIT"
__maintainer__ = "<NAME>"
#============================================
'''
This file is mostly adapted from the PyTorch ImageNet example
'''
class... | 2,096 |
328 | package com.ctg.test.api.util;
import org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean;
import org.springframework.remoting.httpinvoker.SimpleHttpInvokerRequestExecutor;
import java.io.IOException;
import java.net.HttpURLConnection;
import java.util.HashMap;
import java.util.Map;
public class Htt... | 854 |
368 | /*
Plugin-SDK (Grand Theft Auto San Andreas) source file
Authors: GTA Community. See more here
https://github.com/DK22Pac/plugin-sdk
Do not delete this comment block. Respect others' work!
*/
#include "CDecisionSimple.h"
// Converted from thiscall void CDecisionSimple::Set(int *taskTypes,uchar *chances... | 345 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.