max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
359 | <reponame>shubham-goel/idr
import plotly.graph_objs as go
import plotly.offline as offline
import numpy as np
import torch
from skimage import measure
import torchvision
import trimesh
from PIL import Image
from utils import rend_util
def plot(model, indices, model_outputs ,pose, rgb_gt, path, epoch, img_res, plot_nim... | 6,074 |
2,504 | <reponame>dujianxin/Windows-universal-samples
#include "pch.h"
#include "CameraRotationHelper.h"
CameraStarterKit::CameraRotationHelper::CameraRotationHelper(EnclosureLocation^ cameraEnclosureLocation)
{
_displayInformation = DisplayInformation::GetForCurrentView();
_orientationSensor = SimpleOrientation... | 3,562 |
372 | /* Editor Settings: expandtabs and use 4 spaces for indentation
* ex: set softtabstop=4 tabstop=8 expandtab shiftwidth=4: *
* -*- mode: c, c-basic-offset: 4 -*- */
/*
* Copyright © BeyondTrust Software 2004 - 2019
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you m... | 14,205 |
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.
package org.chromium.chrome.browser.password_entry_edit;
import static org.chromium.chrome.browser.password_entry_edit.CredentialEditMediator.CredentialE... | 5,605 |
573 | // Copyright 2016, 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 copyright notice,
// this list of conditions ... | 49,822 |
1,444 | package mage.cards.m;
import java.util.UUID;
import mage.abilities.effects.common.continuous.BoostTargetEffect;
import mage.abilities.effects.common.continuous.GainAbilityTargetEffect;
import mage.abilities.keyword.FlyingAbility;
import mage.abilities.keyword.JumpStartAbility;
import mage.cards.CardImpl;
import mage.c... | 513 |
526 | <reponame>rychagova/egeria<gh_stars>100-1000
/* SPDX-License-Identifier: Apache 2.0 */
/* Copyright Contributors to the ODPi Egeria project. */
package org.odpi.openmetadata.accessservices.governanceengine.rest;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonIgnore... | 1,310 |
637 | <reponame>buffsldr/ChromaColorPicker
//
// Copyright 2016 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
//
// Unless re... | 1,332 |
429 | <gh_stars>100-1000
/*
* Copyright (c) 2009-2020, <NAME>. All Rights Reserved.
*
* This file is part of Efficient Java Matrix Library (EJML).
*
* 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 Licens... | 1,448 |
590 | <filename>MyGUIEngine/include/MyGUI_Enumerator.h
/*
* This source file is part of MyGUI. For the latest info, see http://mygui.info/
* Distributed under the MIT License
* (See accompanying file COPYING.MIT or copy at http://opensource.org/licenses/MIT)
*/
#ifndef MYGUI_ENUMERATOR_H_
#define MYGUI_ENUMERATOR_H_
#i... | 883 |
3,428 | <filename>lib/node_modules/@stdlib/datasets/spam-assassin/data/easy-ham-1/02009.905783cbb4da8e14c78b45e7e22a024c.json
{"id":"02009","group":"easy-ham-1","checksum":{"type":"MD5","value":"905783cbb4da8e14c78b45e7e22a024c"},"text":"From <EMAIL> Thu Sep 26 16:43:32 2002\nReturn-Path: <<EMAIL>>\nDelivered-To: yyyy<EMAIL>a... | 538 |
1,630 | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
from abc import ABC
from torch import Tensor
class BaseHook(ABC):
"""This class allows users to add desired actions in specific time points
during training or evaluation.
:param priority: Priority in the printing, hooks with small priority will be printed... | 1,223 |
335 | <filename>components/cpp_utils/PCF8574.h
/*
* PCF8574.h
*
* Created on: Mar 2, 2017
* Author: kolban
*/
#ifndef COMPONENTS_CPP_UTILS_PCF8574_H_
#define COMPONENTS_CPP_UTILS_PCF8574_H_
#include "I2C.h"
/**
* @brief Encapsulate a %PCF8574 device.
*
* The %PCF8574 is a 8 bit %GPIO expander attached to %I2C... | 404 |
348 | <filename>docs/data/leg-t2/055/05501289.json
{"nom":"Levoncourt","circ":"1ère circonscription","dpt":"Meuse","inscrits":40,"abs":11,"votants":29,"blancs":2,"nuls":0,"exp":27,"res":[{"nuance":"UDI","nom":"M. <NAME>","voix":23},{"nuance":"REM","nom":"<NAME>","voix":4}]} | 110 |
1,109 | /*******************************************************************************
* Copyright 2016 Intuit
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.o... | 957 |
2,517 | <filename>libcaf_core/caf/telemetry/metric_type.hpp
// This file is part of CAF, the C++ Actor Framework. See the file LICENSE in
// the main distribution directory for license terms and copyright or visit
// https://github.com/actor-framework/actor-framework/blob/master/LICENSE.
#pragma once
namespace caf::telemetry... | 168 |
516 | {
"git.ignoreLimitWarning": true,
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll": true,
"source.fixAll.eslint": true,
"source.fixAll.markdownlint": false,
"source.fixAll.stylelint": true
},
"markdownlint.ignore": ["**/*.md"]
}
| 143 |
517 | /* Copyright 2020 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | 3,021 |
448 | /*
* Copyright 2017 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 2,298 |
348 | <filename>docs/data/leg-t2/077/07703103.json
{"nom":"Châtillon-la-Borde","circ":"3ème circonscription","dpt":"Seine-et-Marne","inscrits":182,"abs":97,"votants":85,"blancs":13,"nuls":1,"exp":71,"res":[{"nuance":"UDI","nom":"<NAME>","voix":51},{"nuance":"FN","nom":"<NAME>","voix":20}]} | 121 |
537 | #include <turbodbc_numpy/make_numpy_array.h>
#include <turbodbc_numpy/ndarrayobject.h>
#ifdef __GNUC__
#define EXTENSION __extension__
#else
#define EXTENSION
#endif
namespace turbodbc_numpy {
using pybind11::reinterpret_steal;
using pybind11::object;
object make_empty_numpy_array(numpy_type const & type)
{
np... | 1,488 |
816 | package com.jxtech.util;
import org.apache.poi.util.IOUtils;
import org.osgi.framework.Bundle;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.*;
import java.net.URL;
import java.nio.MappedByteBuffer;
import java.nio.channels.FileChannel;
import java.security.DigestInputStream;
import java.sec... | 6,747 |
306 | <reponame>EvelynYihuiYang/MCMOT
import os
import darknet as dn
import cv2
import time
import numpy
import copy
import cmp_det_label as cdl
from readAndSaveDarknetDetRes import readDetRes,saveDetRes
from readAnnotations import LoadLabel
from voc_eval import voc_eval
#读取文件列表
def LoadFileList(files):
fl = open(file... | 5,713 |
1,755 | #ifndef vtk_libproj_mangle_h
#define vtk_libproj_mangle_h
#define aacos vtklibproj_aacos
#define aasin vtklibproj_aasin
#define aatan2 vtklibproj_aatan2
#define adjlon vtklibproj_adjlon
#define asqrt vtklibproj_asqrt
#define auth_lat vtklibproj_auth_lat
#define bch2bps vtklibproj_bch2bps
#define bcheval vtklibproj_bch... | 19,133 |
1,146 | # Copyright 2021 The KServe 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 agreed to in wr... | 2,577 |
348 | {"nom":"Lalanne-Trie","circ":"1ère circonscription","dpt":"Hautes-Pyrénées","inscrits":89,"abs":38,"votants":51,"blancs":5,"nuls":3,"exp":43,"res":[{"nuance":"REM","nom":"<NAME>","voix":34},{"nuance":"FI","nom":"<NAME>","voix":9}]} | 96 |
2,728 | <gh_stars>1000+
# ------------------------------------
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# ------------------------------------
import json
import six
_has_json_body = lambda req: req.body and "json" in req.headers.get("Content-Type", "")
def json_attribute_matcher(r1, r2):
... | 218 |
8,851 | # -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2017-06-01 11:03
from django.db import migrations
from django.db.models import F
def forwards_func(apps, schema_editor):
Page = apps.get_model("wagtailcore", "Page")
Page.objects.filter(has_unpublished_changes=False).update(last_published_at=F('latest_re... | 215 |
387 | import sys
import importlib
import binascii
# Constants
PUSH0 = b'\x00' # An empty array of bytes is pushed onto the stack.
PUSHF = PUSH0
PUSHBYTES1 = b'\x01' # b'\x01-b'\x4B The next opcode bytes is data to be pushed onto the stack
PUSHBYTES2 = b'\x02'
PUSHBYTES3 = b'\x03'
PUSHBYTES4 = b'\x04'
PUSHBYTES5 = b'\x05'... | 3,830 |
350 | <filename>awebp/src/main/java/com/github/penfeizhou/animation/webp/WebPDrawable.java<gh_stars>100-1000
package com.github.penfeizhou.animation.webp;
import android.content.Context;
import com.github.penfeizhou.animation.FrameAnimationDrawable;
import com.github.penfeizhou.animation.decode.FrameSeqDecoder;
import com... | 603 |
2,293 | /* -*- buffer-read-only: t -*-
*
* overload.c
*
* Copyright (C) 1997, 1998, 2000, 2001, 2005, 2006, 2007 by <NAME>
* and others
*
* You may distribute under the terms of either the GNU General Public
* License or the Artistic License, as specified in the README file.
*
* !!!!!!! DO NOT EDIT ... | 1,244 |
1,056 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 1,284 |
1,139 | package com.journaldev.parameterizedtests;
import static org.junit.jupiter.api.Assertions.*;
import java.lang.annotation.ElementType;
import java.util.Arrays;
import java.util.EnumSet;
import java.util.stream.Stream;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.Argument... | 1,046 |
2,151 | // Copyright 2018 The Feed 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 agreed... | 1,979 |
1,290 | <filename>Z - Tool Box/LaZagne/Windows/lazagne/softwares/sysadmin/wsl.py
# -*- coding: utf-8 -*-
from lazagne.config.module_info import ModuleInfo
from lazagne.config.constant import constant
import os
class Wsl(ModuleInfo):
def __init__(self):
ModuleInfo.__init__(self, 'wsl', 'sysadmin')
def run(s... | 820 |
474 | package org.javacord.api.event.server;
import org.javacord.api.event.channel.server.voice.ServerVoiceChannelEvent;
/**
* A voice state update event.
* Provided only for the current logged in user.
*/
public interface VoiceStateUpdateEvent extends ServerVoiceChannelEvent {
/**
* Gets the session id provid... | 132 |
322 | {
"namenode": {
"heap" : "hadoop.memory.heapmemoryusage.used",
"nonheap" : "hadoop.memory.nonheapmemoryusage.used",
"fsnamesystemstate" : "hadoop.namenode.fsnamesystemstate.capacitytotal",
"capacityused" : "hadoop.namenode.dfs.capacityused",
"capacityremaining" : "hadoop.namenode.dfs.capacityremaining",
"b... | 786 |
303 | <reponame>satorumpen/node-pdfium-native<gh_stars>100-1000
// Copyright 2014 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
#include "../../inc... | 9,001 |
507 | <reponame>mjuenema/python-terrascript
# terrascript/provider/strongdm/sdm.py
# Automatically generated by tools/makecode.py (24-Sep-2021 15:26:26 UTC)
import terrascript
class sdm(terrascript.Provider):
"""strongDM Terraform Provider"""
__description__ = "strongDM Terraform Provider"
__namespace__ = "st... | 213 |
1,144 | <reponame>dram/metasfresh
/** Generated Model - DO NOT CHANGE */
package de.metas.printing.model;
import java.sql.ResultSet;
import java.util.Properties;
/** Generated Model for AD_PrinterHW
* @author metasfresh (generated)
*/
@SuppressWarnings("javadoc")
public class X_AD_PrinterHW extends org.compiere.model.PO ... | 995 |
640 | <gh_stars>100-1000
// Persistent RNN Includes
#include <prnn/detail/matrix/float_iterator.h>
#include <prnn/detail/matrix/dimension_transformations.h>
namespace prnn
{
namespace matrix
{
namespace detail
{
static Dimension advance(const Dimension& offset, const Dimension& size)
{
Dimension result;
bool car... | 1,598 |
1,306 | <reponame>CanPisces/DexHunter
/*
* Copyright (C) 2011 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.... | 2,724 |
312 | <reponame>RonRahaman/nekRS<filename>3rd_party/occa/include/occa/core/streamTag.hpp
#ifndef OCCA_CORE_STREAMTAG_HEADER
#define OCCA_CORE_STREAMTAG_HEADER
#include <iostream>
#include <occa/defines.hpp>
// Unfortunately we need to expose this in include
#include <occa/utils/gc.hpp>
namespace occa {
class modeDevice... | 1,218 |
359 | <gh_stars>100-1000
/*
* Copyright (C) 2017-2018, Xilinx Inc
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by the Free Software Foundation;
* either version 2 of the License, or (at your option) any later version.
* ... | 1,880 |
521 | <gh_stars>100-1000
/* Do not include this file directly. It is included at the end of <dix-config.h> */
/* Correctly set _XSERVER64 for OSX fat binaries */
#if defined(__LP64__) && !defined(_XSERVER64)
#define _XSERVER64 1
#elif !defined(__LP64__) && defined(_XSERVER64)
#undef _XSERVER64
#endif
| 112 |
331 | <filename>library/src/main/java/yellow5a5/clearscreenhelper/View/LinearRootView.java
package yellow5a5.clearscreenhelper.View;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.animation.ValueAnimator;
import android.content.Context;
import android.util.AttributeSet;
i... | 2,502 |
474 | <reponame>Sciss/pickling
package scala.pickling.javafieldfail;
public final class FakeByte {
private static final long serialVersionUID = 1L;
private final byte value;
public FakeByte(byte value) {
this.value = value;
}
public byte byteValue() {
return value;
}
}
| 116 |
2,023 | rows, cols = 3, 100000
A = np.random.randn(rows, cols)
B = [list(n) for n in A]
start = time()
i = np.argsort(A[0])
for n in xrange(len(A)):
A[n] = A[n][i]
print time() - start
start = time()
zipped = zip(*B)
zipped.sort()
B = zip(*zipped)
print time() - start
| 124 |
751 | /*
* The MIT License (MIT)
*
* Copyright (c) 2017-2020 <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, ... | 1,407 |
402 | <filename>flow-tests/test-root-context/src/test/java/com/vaadin/flow/uitest/ui/AbstractUpdateDivIT.java
/*
* Copyright 2000-2021 <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
... | 772 |
488 | <filename>bc-LSTM-pytorch/model.py
import math
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.autograd import Variable
if torch.cuda.is_available():
FloatTensor = torch.cuda.FloatTensor
LongTensor = torch.cuda.LongTensor
ByteTensor = torch.cuda.ByteTensor
else:
FloatTens... | 7,559 |
903 | <reponame>TsSaltan/jphp<gh_stars>100-1000
package org.develnext.jphp.core.tokenizer.token.stmt;
import org.develnext.jphp.core.tokenizer.TokenMeta;
import org.develnext.jphp.core.tokenizer.TokenType;
import org.develnext.jphp.core.tokenizer.token.CommentToken;
import org.develnext.jphp.core.tokenizer.token.expr.value.... | 961 |
4,610 | //
// ALMacViewController.h
// PureLayout Example-Mac
//
// Copyright (c) 2014-2015 <NAME>
// https://github.com/PureLayout/PureLayout
//
#import <Cocoa/Cocoa.h>
@interface ALMacViewController : NSViewController
- (void)nextDemo;
@end
| 91 |
844 | {
"github-username": "dhruvrawat101",
"favourite-emoji": "🙃",
"favourite-music": "https://soundcloud.com/thefatrat/thefatrat-xenogenesis-1",
"favourite-color": "#20c6e3"
}
| 81 |
327 | <gh_stars>100-1000
#pragma once
#include <winsock2.h>
// enum GL_PROGRAM_TARGET
#define GL_VERTEX_PROGRAM_ARB 0x8620
#define GL_FRAGMENT_PROGRAM_ARB 0x8804
// enum GL_PROGRAM_FORMAT
#define GL_PROGRAM_FORMAT_ASCII_ARB 0x8875
// enum GL_LIST_MODE
#define GL_COMPILE 0x1300
// enum GL_PRIMITIVE_TOPOLOGY
#define ... | 3,689 |
384 | <gh_stars>100-1000
import torch
import torch.nn as nn
from .cross_entropy_loss import _expand_binary_labels
from .utils import weight_reduce_loss
from ..registry import LOSSES
def cosine_embedding_loss(pred,
label,
weight=None,
margin=0.0,... | 834 |
1,830 | /*
* Copyright © 2017 camunda services GmbH (<EMAIL>)
*
* 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 applic... | 922 |
4,304 | #ifndef PASS_FLATTEN_H
#define PASS_FLATTEN_H
#include <platform.h>
#include "../ast/ast.h"
#include "../pass/pass.h"
PONY_EXTERN_C_BEGIN
ast_result_t flatten_typeparamref(pass_opt_t* opt, ast_t* ast);
ast_result_t pass_flatten(ast_t** astp, pass_opt_t* options);
PONY_EXTERN_C_END
#endif
| 135 |
1,005 | <gh_stars>1000+
#!/usr/bin/env python3
# This script runs the TACO CUDA tests on a pull request.
# Usage: python3 test-pr.py [--protocol=(https|ssh)] <PRnumber> [<Trynumber>]
# see test-pr.md for more details.
repo = "tensor-compiler/taco"
action_name = "CUDA build and test (manual)"
import os
import subprocess
imp... | 2,129 |
782 | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def constructMaximumBinaryTree(self, nums: List[int]) -> TreeNode:
stack = []
for x in nums:
node = TreeNode(... | 267 |
383 | <reponame>goncaloperes/robustness_metrics
# coding=utf-8
# Copyright 2021 The Robustness Metrics 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/license... | 1,453 |
1,433 | <filename>iotivity-1.0.1/resource/csdk/connectivity/common/inc/oic_logger_types.h
//******************************************************************
//
// Copyright 2014 Intel Mobile Communications GmbH All Rights Reserved.
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
//
// Licensed under the... | 1,077 |
2,025 | <reponame>mehrdad-shokri/phxpaxos<filename>plugin/logger_google/logger_google_impl.h
/*
Copyright (c) 2016 Tencent. See the AUTHORS file for names
of contributors.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by t... | 431 |
3,055 | <gh_stars>1000+
/*
Fontname: streamline_interface_essential_help
Copyright: <EMAIL>
Glyphs: 3/3
BBX Build Mode: 0
*/
const uint8_t u8g2_font_streamline_interface_essential_help_t[197] U8G2_FONT_SECTION("u8g2_font_streamline_interface_essential_help_t") =
"\3\0\4\2\5\5\3\3\6\25\25\0\0\25\0\25\0\0\0\0\0\0\250\... | 452 |
2,045 | """
Cross validation module.
Each fold of cross validation is a separate experiment, so we create a
separate Train object for each model and save all of the models together.
pylearn2/scripts/print_monitor_average.py can be used to analyze average
monitor channel values for the collection of saved models.
"""
__autho... | 3,451 |
595 | <gh_stars>100-1000
/******************************************************************************
* Copyright (C) 2007 - 2020 Xilinx, Inc. All rights reserved.
* SPDX-License-Identifier: MIT
******************************************************************************/
/*********************************************... | 3,996 |
892 | <gh_stars>100-1000
{
"schema_version": "1.2.0",
"id": "GHSA-x7gm-5fh7-5xr3",
"modified": "2022-05-02T06:10:14Z",
"published": "2022-05-02T06:10:14Z",
"aliases": [
"CVE-2010-0123"
],
"details": "The database backup implementation in Employee Timeclock Software 0.99 stores sensitive information under th... | 558 |
3,465 | from __future__ import division, absolute_import
import torch
import torch.utils.model_zoo as model_zoo
from torch import nn
from torch.nn import functional as F
__all__ = ['shufflenet']
model_urls = {
# training epoch = 90, top1 = 61.8
'imagenet':
'https://mega.nz/#!RDpUlQCY!tr_5xBEkelzDjveIYBBcGcovNCOrg... | 3,133 |
1,279 | #include <string.h>
#include "Math.hpp"
#include "ProcessCommon.hpp"
#include "ProcessRGB.hpp"
#include "Tables.hpp"
#include "Types.hpp"
#include "Vector.hpp"
#include <bx/endian.h>
#ifdef __SSE4_1__
# ifdef _MSC_VER
# include <intrin.h>
# include <Windows.h>
# else
# include <x86intrin.h>
# endif
#endi... | 13,042 |
2,466 | package org.jetbrains.skija.windows;
public class LibraryFinder {
private LibraryFinder() {
}
} | 33 |
456 | // SPDX-License-Identifier: BSD-3-Clause
// Copyright (c) 2004-2020 <NAME>
// All rights reserved.
#include <djvUIComponents/FileBrowserDialog.h>
#include <djvUIComponents/FileBrowser.h>
#include <djvSystem/Context.h>
#include <djvSystem/Path.h>
using namespace djv::Core;
namespace djv
{
namespace UIComponents... | 1,502 |
1,909 | package org.knowm.xchange.coinone.service;
import java.util.Base64;
import si.mazi.rescu.ParamsDigest;
import si.mazi.rescu.RestInvocation;
public class CoinonePayloadDigest implements ParamsDigest {
private CoinonePayloadDigest() {}
public static CoinonePayloadDigest createInstance() {
return new CoinoneP... | 184 |
442 | <filename>spring-test/src/main/java/org/springframework/test/context/TestConstructor.java
/*
* Copyright 2002-2019 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 Li... | 1,252 |
575 | <reponame>Ron423c/chromium
// 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.
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_LOADER_IDLENESS_DETECTOR_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_LOADER_IDLENESS_DET... | 1,037 |
673 | #include <lauxlib.h>
#include <lua.h>
#include <lualib.h>
#include <stdio.h>
static const luaL_Reg lazymodulelib[] = {
{NULL, NULL},
};
LUALIB_API int luaopen_lazymodule_1(lua_State *L)
{
#if LUA_VERSION_NUM == 501
luaL_register(L, "lazymodulelib", lazymodulelib);
#else
luaL_newlib(L, lazymodulelib);
#endif
r... | 181 |
632 | package com.qiniu.android.http.request.handler;
import com.qiniu.android.http.ResponseInfo;
import org.json.JSONObject;
public interface RequestShouldRetryHandler {
boolean shouldRetry(ResponseInfo responseInfo, JSONObject response);
}
| 72 |
19,438 | /*
* Copyright (c) 2021, <NAME> <<EMAIL>>
* Copyright (c) 2021, <NAME> <<EMAIL>>
* Copyright (c) 2021, <NAME> <<EMAIL>>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <LibGL/GL/gl.h>
// Point in 3D space
struct Vertex {
GLfloat x;
GLfloat y;
GLfloat z;
};
struct TexCoord {
... | 269 |
479 | <gh_stars>100-1000
#
# 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
#... | 791 |
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.
package org.chromium.components.page_info;
import android.content.Context;
import android.text.Layout;
import android.util.AttributeSet;
import androidx... | 1,647 |
309 | def get_inference_data_key(run_date, region, country="us"):
date_str = run_date.strftime("%Y%m%d")
return f"{country}/{date_str}/inference_data/{region}.nc"
def get_state_output_key(run_date, region, country="us"):
date_str = run_date.strftime("%Y%m%d")
return f"{country}/{date_str}/stateoutput/{regio... | 346 |
443 | <gh_stars>100-1000
# aswitch.py Switch and pushbutton classes for asyncio
# Delay_ms A retriggerable delay class. Can schedule a coro on timeout.
# Switch Simple debounced switch class for normally open grounded switch.
# Pushbutton extend the above to support logical state, long press and
# double-click events
# Teste... | 4,005 |
346 | <gh_stars>100-1000
from g_mlp_pytorch.g_mlp_pytorch import gMLP, gMLPVision, gMLPBlock, SpatialGatingUnit
| 48 |
411 | /*
* Copyright 2019 DeNA 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.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | 2,536 |
765 | <reponame>hyu-iot/gem5
/*****************************************************************************
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 ownershi... | 428 |
1,039 | //
// SULoginViewModel2.h
// MHDevelopExample
//
// Created by senba on 2017/6/15.
// Copyright © 2017年 CoderMikeHe. All rights reserved.
// MVVM With RAC 开发模式的 `登录界面的视图模型` -- VM
#import "SUViewModel2.h"
@interface SULoginViewModel2 : SUViewModel2
/// 手机号
@property (nonatomic, readwrite, copy) NSString *mobileP... | 308 |
477 | import logging
import os
import shutil
from django.core import management
from django.urls import reverse
from django.test import TestCase, override_settings
from django.conf import settings
from biostar.forum import models, views, search, tasks, feed
from biostar.utils.helpers import fake_request
from biostar.accounts... | 2,875 |
733 | <gh_stars>100-1000
# -*- coding: utf-8 -*-
import unittest
import os
import socket
import struct
from mock import MagicMock, call, patch
from ws4py.framing import Frame, \
OPCODE_CONTINUATION, OPCODE_TEXT, \
OPCODE_BINARY, OPCODE_CLOSE, OPCODE_PING, OPCODE_PONG
from ws4py.websocket import WebSocket
from ws4... | 3,100 |
926 | <filename>SHA256.h
#ifndef SHA256_H_
#define SHA256_H_
#include "Extender.h"
#include <openssl/sha.h>
class SHA256ex: public Extender
{
public:
SHA256ex();
virtual ~SHA256ex();
int GenerateSignature(vector<unsigned char> key, vector<unsigned char> message, unsigned char ** signature);
bool ValidateSignature(vecto... | 181 |
4,462 | <filename>core/src/autogluon/core/task/task.py
import copy
import logging
import argparse
import multiprocessing as mp
logger = logging.getLogger(__name__)
import time
import random
__all__ = ['Task']
class Task(object):
"""Individual training task, containing the lauch function, default arguments and
requir... | 1,021 |
351 | <reponame>richardstrnad/acitoolkit<filename>samples/aci-create-ospf-external.py
#!/usr/bin/env python
################################################################################
# _ ____ ___ _____ _ _ _ _ #
# / \ / ___|_ _| |_ _|__ ___ | | | _... | 2,374 |
17,703 | #include "envoy/common/exception.h"
#include "source/common/common/fmt.h"
#include "source/common/filesystem/directory_iterator_impl.h"
namespace Envoy {
namespace Filesystem {
DirectoryIteratorImpl::DirectoryIteratorImpl(const std::string& directory_path)
: DirectoryIterator(), find_handle_(INVALID_HANDLE_VALUE... | 667 |
5,411 | // 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.
#include "base/allocator/allocator_shim.h"
#include "base/allocator/allocator_shim_internals.h"
#include "third_party/tcmalloc/chromium/src/config.h"
#in... | 1,056 |
430 | <filename>tests/test_peak_normalization.py
import unittest
import numpy as np
import pytest
import torch
from numpy.testing import assert_almost_equal, assert_equal
from torch_audiomentations.augmentations.peak_normalization import PeakNormalization
class TestPeakNormalization(unittest.TestCase):
def test_apply... | 5,632 |
1,799 | // Copyright (c) 2021 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
//
// Unless required... | 1,499 |
589 | <gh_stars>100-1000
package rocks.inspectit.agent.java.core;
import java.util.EventListener;
/**
* The {@link ListListener} interface allows a class to react on events that change a list.
*
* @param <E>
* The content class of the list.
*
* @author <NAME>
*/
public interface ListListener<E> extends Ev... | 172 |
370 | /*
* WorldEdit, a Minecraft world manipulation toolkit
* Copyright (C) sk89q <http://www.sk89q.com>
* Copyright (C) WorldEdit team and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software F... | 1,118 |
798 | /*
* The MIT License
*
* Copyright (c) 2018 The Broad Institute
*
* 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... | 2,570 |
882 | <gh_stars>100-1000
package hex;
import javafx.application.Platform;
import javafx.beans.value.ChangeListener;
import javafx.beans.value.ObservableValue;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.embed.swing.JFXPanel;
import javafx.event.ActionEvent;
import javafx.... | 2,466 |
724 | <reponame>This-50m/vega<gh_stars>100-1000
# -*- coding:utf-8 -*-
# Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the MIT License.
# This program is distributed in the hope that it will be useful,
# b... | 1,039 |
578 | <reponame>raptoravis/two<filename>src/stl/ubuffer.h
#pragma once
#include <stl/swap.h>
#include <stl/initializer_list.h>
#include <stl/traits.h>
#include <stdint.h>
namespace stl {
typedef void (*ConstructPtr)(void* dest);
typedef void (*CopyConstructPtr)(void* dest, const void* src);
typedef void (*MoveConstruct... | 1,672 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.