max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
2,023 | """
Simplest Windows Registry I/0
"""
import win32api
import win32con
def ReadRegistryValue(hiveKey, key, name=""):
""" Read one value from Windows registry. If 'name' is empty string, reads default value."""
data = typeId = None
try:
keyHandle = win32api.RegOpenKeyEx(hiveKey, key, 0, win32con.KEY_... | 1,217 |
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,701 |
777 | <gh_stars>100-1000
/*
* Artificial Intelligence for Humans
* Volume 1: Fundamental Algorithms
* C/C++ Version
* http://www.aifh.org
* http://www.jeffheaton.com
*
* Code repository:
* https://github.com/jeffheaton/aifh
* Copyright 2013 by <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "Licens... | 1,480 |
777 | // 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/ash/launcher/test/launcher_application_menu_item_model_test_api.h"
LauncherApplicationMenuItemModelTestAPI::
LauncherAppl... | 284 |
381 | <filename>helix-core/src/test/java/org/apache/helix/integration/paticipant/TestParticipantFreeze.java
package org.apache.helix.integration.paticipant;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for addit... | 4,243 |
999 | <reponame>aridwiprayogo/marquez<gh_stars>100-1000
package marquez;
import static org.assertj.core.api.Assertions.assertThat;
import com.fasterxml.jackson.core.type.TypeReference;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.ImmutableSe... | 6,587 |
546 | #ifndef MSNHYOLOINFO_H
#define MSNHYOLOINFO_H
#include <vector>
#include "Msnhnet/utils/MsnhTypes.h"
#include "Msnhnet/utils/MsnhException.h"
namespace Msnhnet
{
struct YoloInfo
{
YoloInfo(const int& outHeight, const int& outWidth, const int& outChannel)
:outHeight(outHeight),outWidth(outWidth),outChannel... | 1,169 |
3,562 | <reponame>kaiker19/incubator-doris<filename>be/src/glibc-compatibility/FastMemcpy.c
//=====================================================================
//
// FastMemcpy.c - <EMAIL>, 2015
//
// feature:
// 50% speed up in avg. vs standard memcpy (tested in vc2012/gcc4.9)
//
//========================================... | 2,695 |
2,151 | [
{
"cmd": [],
"name": "isolated_tests",
"~followup_annotations": [
"@@@STEP_LOG_LINE@details@isolated_tests: {'base_unittests': 'ffffffffffffffffffffffffffffffffffffffff'}@@@",
"@@@STEP_LOG_END@details@@@"
]
},
{
"name": "$result",
"recipe_result": null,
"status_code": 0
... | 152 |
852 | #include "RecoLuminosity/LumiProducer/interface/LumiCorrectionParamRcd.h"
#include "FWCore/Framework/interface/eventsetuprecord_registration_macro.h"
EVENTSETUP_RECORD_REG(LumiCorrectionParamRcd);
| 70 |
428 | /*
* Copyright (C) 2015 The Libphonenumber Authors
* Copyright (C) 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
*
* Unl... | 1,341 |
2,643 | #ifndef MM_CHANNEL_LIMIT_POLICY
#define MM_CHANNEL_LIMIT_POLICY
typedef enum {
MM_CHANNEL_UNLIMITED,
MM_CHANNEL_LIMIT_HARD,
MM_CHANNEL_LIMIT_SOFT,
} mm_channel_limit_policy_t;
#endif /* MM_CHANNEL_LIMIT_POLICY */
| 115 |
1,473 | /*
* Copyright 2018 NAVER Corp.
*
* 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 w... | 971 |
2,816 | /*!
* mpi.h - multi-precision integers for libtorsion
* Copyright (c) 2020, <NAME> (MIT License).
* https://github.com/bcoin-org/libtorsion
*
* A from-scratch reimplementation of GMP.
*/
#ifndef _TORSION_MPI_H
#define _TORSION_MPI_H
#include <limits.h>
#include <stddef.h>
#include <stdint.h>
#include <torsion/c... | 18,301 |
1,452 | <reponame>ZachMyers3/Yacht<gh_stars>1000+
from pydantic import BaseModel
from typing import Any, Optional
class Compose(BaseModel):
name: str
class ComposeWrite(Compose):
content: Optional[Any]
class ComposeRead(ComposeWrite):
path: str
| 90 |
1,100 | <reponame>WelsonAA/Intro-to-Java-Programming
import java.util.Scanner;
/*
Adapted by Sleekpanther from SquirrelCoder's initial idea from 29-Jan-17.
Uses arrays, even though they technically aren't introduced until chapter 7. But it simplifies this a lot
6.34 (Print calendar) Programming Exercise 3.21 uses Zeller's co... | 1,854 |
2,813 | package org.jabref.logic.layout.format;
import org.jabref.logic.layout.LayoutFormatter;
/**
* Formatter that returns the last page from the "pages" field, if set.
*
* For instance, if the pages field is set to "345-360" or "345--360",
* this formatter will return "360".
*/
public class LastPage implements Layout... | 295 |
2,151 | <reponame>fugu-helper/android_external_swiftshader<gh_stars>1000+
//===- ExecutionDriver.cpp - Allow execution of LLVM program --------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for d... | 9,377 |
1,343 | <filename>CWrapper/src/CWrapper.cpp
#include "Anime4KCPP.hpp"
#include "AC.h"
static std::string lastCoreError("No error");
static Anime4KCPP::ACInitializer initializer;
Anime4KCPP::Parameters getParameters(ac_parameters* c_parameters)
{
if (c_parameters == nullptr)
return Anime4KCPP::Parameters{};
... | 16,742 |
474 | <reponame>chenqian-dev/QNShortVideo-TuTu<filename>QNShortVideo-With-TuTu-iOS/tusdkfilterprocessormodule/tusdkfilterprocessormodule/TuSDKFramework/TuSDK.framework/Versions/A/Headers/SLGPUImageTwoInputFilter.h
#import "SLGPUImageFilter.h"
extern NSString *const LSQKGPUImageTwoInputTextureVertexShaderString;
@interface ... | 283 |
434 | /*
* mkdlinkfw
*
* Copyright (C) 2018 <NAME> <<EMAIL>>
*
* This tool is based on mktplinkfw.
* Copyright (C) 2009 <NAME> <<EMAIL>>
* Copyright (C) 2008,2009 <NAME> <<EMAIL>>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as publi... | 885 |
679 | <reponame>Grosskopf/openoffice<filename>main/extensions/source/abpilot/abspilot.cxx
/**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for addition... | 6,548 |
1,444 | <reponame>GabrielSturtevant/mage<filename>Mage.Sets/src/mage/cards/r/Reshape.java
package mage.cards.r;
import java.util.UUID;
import mage.abilities.costs.common.SacrificeTargetCost;
import mage.abilities.effects.common.search.SearchLibraryWithLessCMCPutInPlayEffect;
import mage.cards.CardImpl;
import mage.cards.Card... | 479 |
7,892 | <filename>lib-src/libsbsms/include/sbsms.h
// -*- mode: c++ -*-
#ifndef SBSMS_INCLUDE
#define SBSMS_INCLUDE
#include <stdio.h>
namespace _sbsms_ {
typedef float t_fft[2];
typedef t_fft audio;
typedef long long int SampleCountType;
typedef long long int TimeType;
typedef unsigned char TrackIndexType;
enum {
maxBan... | 1,575 |
1,355 | <filename>src/python/grid_fractional_boundary_condition_solver.cpp<gh_stars>1000+
// Copyright (c) 2018 <NAME>
//
// I am making my contributions/submissions to this project solely in my
// personal capacity and am not conveying any rights to any intellectual
// property of any third parties.
#include "grid_fractional... | 1,825 |
1,155 | <gh_stars>1000+
/*
*******************************************************************************
* Copyright (C) 2003-2014, International Business Machines
* Corporation and others. All Rights Reserved.
*******************************************************************************
*
* File prscmnts.cpp
*... | 3,101 |
343 | <reponame>nzeh/syzygy<filename>syzygy/block_graph/hot_patching_metadata.h<gh_stars>100-1000
// Copyright 2015 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License... | 652 |
583 | import os
import sys
import shutil
import subprocess
# Clear all incremental stuff
def clear_stuff():
if os.path.exists('objc'):
shutil.rmtree('objc')
if os.path.exists('object'):
shutil.rmtree('object')
if os.path.exists('flowc.debug'):
os.remove('flowc.debug')
if os.path.exists('flowc.bytecode'):
os.remo... | 1,766 |
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... | 5,958 |
10,225 | package io.quarkus.jdbc.h2.runtime.graal;
import com.oracle.svm.core.annotate.Delete;
import com.oracle.svm.core.annotate.TargetClass;
/**
* The org.h2.engine.Session represents the "Embedded Database" in H2.
* We remove this explicitly as it pulls in various things we can't support;
* rather than address them ind... | 166 |
665 | /*
* 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")... | 1,290 |
852 | <filename>Alignment/CommonAlignmentProducer/plugins/AlignmentProducerAsAnalyzer.cc
/**
* @package Alignment/CommonAlignmentProducer
* @file AlignmentProducerAsAnalyzer.cc
*
* @author <NAME> (<EMAIL>)
* @date 2015/07/16
*/
/*** Header file ***/
#include "AlignmentProducerAsAnalyzer.h"
#include "Co... | 1,031 |
8,315 | package com.airbnb.epoxy;
public class BasicModelWithFinalAttribute extends EpoxyModel<Object> {
@EpoxyAttribute final int value;
public BasicModelWithFinalAttribute() {
value = 0;
}
@Override
protected int getDefaultLayout() {
return 0;
}
} | 82 |
379 | /**
* Copyright 2016-2017 Sixt GmbH & Co. Autovermietung KG
* 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... | 4,462 |
923 | <reponame>riciche/SimpleCVReproduction
import torch
import torch.nn as nn
from torch.autograd import Variable
import torch.nn.functional as F
from torch.nn.utils.rnn import pack_padded_sequence, pad_packed_sequence, PackedSequence
class StackedRNN(nn.Module):
"""Stacked RNN
"""
def __init__(self, input_siz... | 482 |
1,056 | <gh_stars>1000+
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* ... | 2,471 |
637 | <gh_stars>100-1000
{ "multipass": true,
"plugins":
[ "removeDoctype",
"removeXMLProcInst",
"removeComments",
"removeMetadata",
"removeEditorsNSData",
"cleanupAttrs",
"minifyStyles",
"convertStyleToAttrs",
"cleanupIDs",
"removeRasterImages" ],
"js2svg": { "pretty": tru... | 149 |
3,301 | <reponame>okjay/Alink
package com.alibaba.alink.operator.stream.evaluation;
import org.apache.flink.types.Row;
import com.alibaba.alink.operator.stream.StreamOperator;
import com.alibaba.alink.operator.stream.source.MemSourceStreamOp;
import com.alibaba.alink.testutil.AlinkTestBase;
import org.junit.Test;
import jav... | 687 |
1,359 | <filename>src/main/java/com/kalessil/phpStorm/phpInspectionsEA/inspectors/ifs/IfReturnReturnSimplificationInspector.java
package com.kalessil.phpStorm.phpInspectionsEA.inspectors.ifs;
import com.intellij.codeInspection.LocalQuickFix;
import com.intellij.codeInspection.ProblemDescriptor;
import com.intellij.codeInspect... | 5,133 |
2,290 | package net.chrisrichardson.ftgo.restaurantservice.events;
import io.eventuate.tram.events.common.DomainEvent;
public interface RestaurantDomainEvent extends DomainEvent {
}
| 52 |
2,329 | /*
* 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 may ... | 685 |
335 | <reponame>Safal08/Hacktoberfest-1
{
"word": "Wold",
"definitions": [
"(in Britain) a piece of high, open uncultivated land or moor."
],
"parts-of-speech": "Noun"
} | 86 |
879 | package org.zstack.header.identity.rbac;
import org.zstack.header.exception.CloudRuntimeException;
import org.zstack.header.message.APIMessage;
import org.zstack.utils.FieldUtils;
import org.zstack.utils.Utils;
import org.zstack.utils.logging.CLogger;
import java.lang.reflect.Field;
import java.util.ArrayList;
import... | 1,016 |
3,167 | <filename>open_spiel/games/sheriff_test.cc
// Copyright 2019 DeepMind Technologies Ltd. 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.or... | 3,099 |
679 | <filename>main/svtools/inc/svtools/textdata.hxx
/**************************************************************
*
* 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 copyrigh... | 2,158 |
743 | <reponame>althink/hermes
package pl.allegro.tech.hermes.management.infrastructure.kafka.service;
import pl.allegro.tech.hermes.api.Subscription;
import pl.allegro.tech.hermes.api.Topic;
import pl.allegro.tech.hermes.management.domain.subscription.ConsumerGroupManager;
public class NoOpConsumerGroupManager implements ... | 151 |
30,023 | <gh_stars>1000+
{
"system_health": {
"info": {
"current_recorder_run": "Praegune k\u00e4ivitamise algusaeg",
"database_engine": "Andmebaasi mootor",
"database_version": "Andmebaasi versioon",
"estimated_db_size": "Andmebaasi hinnanguline suurus (MB)",
... | 212 |
419 | import numpy as np
import os.path as osp
import cv2
import torch
import torch.nn.functional as F
from pointmvsnet.utils.io import mkdir
from pointmvsnet.functions.functions import get_pixel_grids
def file_logger(data_batch, preds, step, output_dir, prefix):
step_dir = osp.join(output_dir, "{}_step{:05d}".format... | 1,743 |
615 | /* ************************************************************************
* Copyright 2014 Advanced Micro Devices, 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... | 2,450 |
3,010 | import os
def main():
print("Random number test")
r = os.urandom(32)
print(f"urandom TRNG string is {r}")
main()
| 53 |
374 | <gh_stars>100-1000
/******************************************************************************
* Copyright 1998-2019 Lawrence Livermore National Security, LLC and other
* HYPRE Project Developers. See the top-level COPYRIGHT file for details.
*
* SPDX-License-Identifier: (Apache-2.0 OR MIT)
*******************... | 53,555 |
1,738 | <filename>dev/Code/CryEngine/RenderDll/Common/RendElements/TerrainUtils/VTWrapper.h
/*
* 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 th... | 3,266 |
848 | /*
* Copyright 2019 Xilinx 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 ... | 1,298 |
14,668 | // Copyright (c) 2009 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.
// Byte level differential compression algorithm used by Courgette.
#ifndef COURGETTE_SIMPLE_DELTA_H_
#define COURGETTE_SIMPLE_DELTA_H_
#include "co... | 255 |
395 | from backpack.extensions.firstorder.gradient.convtranspose2d import GradConvTranspose2d
from backpack.extensions.firstorder.sum_grad_squared.convtranspose2d import (
SGSConvTranspose2d,
)
from .variance_base import VarianceBaseModule
class VarianceConvTranspose2d(VarianceBaseModule):
def __init__(self):
... | 201 |
410 | // Copyright(c) 2017 POLYGONTEK
//
// 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 i... | 820 |
852 | import FWCore.ParameterSet.Config as cms
process = cms.Process("SKIM")
process.configurationMetadata = cms.untracked.PSet(
version = cms.untracked.string('$Revision: 1.4 $'),
name = cms.untracked.string('$Source: /cvs/CMSSW/CMSSW/DPGAnalysis/Skims/python/EGPDSkim_cfg.py,v $'),
annotation = cms.untracked.s... | 2,650 |
14,668 | <gh_stars>1000+
// Copyright 2014 The Crashpad 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... | 1,126 |
672 | /*
* Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
*
* @APPLE_LICENSE_HEADER_START@
*
* This file contains Original Code and/or Modifications of Original Code
* as defined in and that are subject to the Apple Public Source License
* Version 2.0 (the 'License'). You may not use this file except in... | 3,515 |
339 | <filename>integration/broker-tests/tests-integration/tests-amqp/src/test/java/org/wso2/mb/integration/tests/amqp/functional/RedeliveryDelayTestCase.java<gh_stars>100-1000
/*
* Copyright (c) 2018, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you under the Apache License,
*... | 23,542 |
2,111 | <filename>algorithms/src/LocalizationAndMapping/registration_localization/fast_gicp/thirdparty/pybind11/tests/test_numpy_dtypes.py<gh_stars>1000+
# -*- coding: utf-8 -*-
import re
import pytest
import env # noqa: F401
from pybind11_tests import numpy_dtypes as m
np = pytest.importorskip("numpy")
@pytest.fixture(... | 6,949 |
860 | <gh_stars>100-1000
# Author: <NAME>
# Email: <EMAIL>
# License: MIT License
import pytest
import numpy as np
from gradient_free_optimizers import RandomAnnealingOptimizer
from .test_hill_climbing_para_init import hill_climbing_para
from ._base_para_test import _base_para_test_func
def objective_function(para):
... | 364 |
1,799 | // 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
//
// Unless required... | 1,200 |
1,467 | {
"version": "2.15.9",
"date": "2020-10-16",
"entries": [
{
"type": "feature",
"category": "AWS Organizations",
"description": "Documentation updates for AWS Organizations."
},
{
"type": "feature",
"category": "AWS Elemental... | 305 |
1,962 | /*
* Copyright 2019 Ververica GmbH
*
* 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 ... | 476 |
4,036 | import sys
import settings
import utils
import difflib
def ignore_line_ending(ch):
return difflib.IS_CHARACTER_JUNK(ch, ws=" \r\n")
def compare_files(file1, file2):
diff = difflib.ndiff(open(file1).readlines(),
open(file2).readlines(), None, ignore_line_ending)
ret = ""
for ... | 1,160 |
348 | <filename>docs/data/leg-t1/082/08202124.json<gh_stars>100-1000
{"nom":"Montbeton","circ":"2ème circonscription","dpt":"Tarn-et-Garonne","inscrits":2874,"abs":1470,"votants":1404,"blancs":58,"nuls":15,"exp":1331,"res":[{"nuance":"RDG","nom":"Mme <NAME>","voix":362},{"nuance":"FN","nom":"M. <NAME>","voix":322},{"nuance":... | 351 |
5,196 | /*
* Copyright 2018 The Cartographer 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... | 278 |
361 | <reponame>NickNYU/sofa-registry
/*
* 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 ... | 1,400 |
1,013 | /*!
@authors <NAME> (<EMAIL>)
@date 2014-2020
@copyright BSD-3-Clause
*/
#include <gtest/gtest.h>
#include <pyclustering/cluster/rock.hpp>
#include "samples.hpp"
#include "utenv_check.hpp"
using namespace pyclustering;
using namespace pyclustering::clst;
static void
template_length_process_data(const std::sha... | 1,498 |
496 | <filename>prescription_generator/helper/pdf_operations.py
from fpdf import FPDF
class PDF(FPDF):
def footer(self):
# Position at 1.5 cm from bottom
self.set_y(-15)
# Arial italic 8
self.set_font('Arial', 'I', 8)
# Text color in gray
self.set_text_color(128)
... | 864 |
799 | <filename>src/nicelee/ui/item/DownloadInfoPanel.java
package nicelee.ui.item;
import java.awt.Color;
import java.awt.Desktop;
import java.awt.Dimension;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.File;
import javax.swing.BorderFactory;
import javax.swing.JButton;... | 4,812 |
530 | package org.carlspring.strongbox.users.service;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import org.carlspring.strongbox.config.DataServiceConfig;
import org.carlspring.strongbox.config.UsersConfig;
import org.carlspring.strongbox.domai... | 908 |
1,127 | <filename>tools/mo/openvino/tools/mo/middle/PoolV2ToAttributedPool.py<gh_stars>1000+
# Copyright (C) 2018-2022 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
from openvino.tools.mo.graph.graph import Graph, rename_nodes
from openvino.tools.mo.middle.replacement import MiddleReplacementPattern
from openvino.to... | 931 |
761 | <reponame>NTForked/GridFluidSim3D
#ifndef DIFFUSEPARTICLE_T_H
#define DIFFUSEPARTICLE_T_H
#include "vector3_c.h"
typedef struct DiffuseParticle_t {
Vector3_t position;
Vector3_t velocity;
float lifetime;
char type;
} DiffuseParticle_t;
#endif | 109 |
363 | <reponame>roomanl/AndroidDownload
package cn.sddman.download.mvp.v;
public interface PlayerView {
void initPlayer();
void openVideo(String path);
void playPause();
void setTimeTextView(int currentPlayTimeMs, int durationTimeMs);
void updateUIPlayStation(int currentPlayTimeMs, int durationTimeMs);
... | 190 |
998 | // Copyright 2021 Phyronnaz
#pragma once
#include "CoreMinimal.h"
#include "VoxelFastNoiseBase.h"
template<typename T>
class TVoxelFastNoise_WhiteNoise : public T
{
public:
DEFINE_VOXEL_NOISE_CLASS()
v_flt GetWhiteNoise_2D(v_flt x, v_flt y) const;
v_flt GetWhiteNoiseInt_2D(int32 x, int32 y) const;
... | 299 |
726 | # Bresenham Line Algorithm (BLA) is one of the earliest algorithms developed
# in computer graphics. It is used for drawing lines. It is an efficient method because
# it involves only integer addition, subtractions, and multiplication operations.
# These operations can be performed very rapidly so lines can be gene... | 704 |
2,338 | //===- TapiUniversal.cpp --------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | 734 |
1,093 | <filename>lanzou/gui/dialogs/rename.py
from PyQt5.QtCore import Qt, pyqtSignal
from PyQt5.QtGui import QIcon
from PyQt5.QtWidgets import QDialog, QLabel, QGridLayout, QDialogButtonBox, QLineEdit, QTextEdit
from lanzou.gui.qss import dialog_qss_style
from lanzou.debug import SRC_DIR
class RenameDialog(QDialog):
o... | 2,789 |
1,382 | <gh_stars>1000+
# !/usr/bin/env python
# coding: utf-8
# Author: <NAME> <<EMAIL>>
# Author: <NAME> <<EMAIL>>
# License: BSD 3 clause
"""Test mlbox.model.classification.stacking_classifier module."""
import pytest
import pandas as pd
import numpy as np
from sklearn.linear_model import LogisticRegression
from mlbox.mode... | 2,069 |
14,668 | // 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.
#include "components/gwp_asan/client/sampling_malloc_shims.h"
#include <algorithm>
#include <utility>
#include "base/allocator/allocator_shim.h"
#includ... | 4,080 |
1,343 | <filename>core/include/ThreadPool.hpp
#ifndef ANIME4KCPP_CORE_THREADPOOL_HPP
#define ANIME4KCPP_CORE_THREADPOOL_HPP
#include<algorithm>
#include<thread>
#include<mutex>
#include<condition_variable>
#include<functional>
#include<future>
#include<memory>
#include<queue>
#include<vector>
#include<cstddef>
namespace Anim... | 1,240 |
11,094 | <reponame>microsoft/ai-edu
# Copyright (c) Microsoft. All rights reserved.
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
import numpy as np
from HelperClass.NeuralNet_1_2 import *
file_name = "../../data/ch07.npz"
def inference(net, reader):
xt_raw = np.arr... | 394 |
1,232 | <filename>tree/Yu/543.py
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Author: <NAME>
# ****************
# Descrption:
# 543. Diameter of Binary Tree
# Given a binary tree, you need to compute the length of the diameter of the tree.
# The diameter of a binary tree is the length of the longest path between any two
# nod... | 751 |
335 | <gh_stars>100-1000
{
"word": "Knuckleballer",
"definitions": [
"A pitcher whose pitching style largely involves throwing knuckleballs."
],
"parts-of-speech": "Noun"
} | 75 |
924 | <reponame>chrisw957/lora_gateway
/*
/ _____) _ | |
( (____ _____ ____ _| |_ _____ ____| |__
\____ \| ___ | (_ _) ___ |/ ___) _ \
_____) ) ____| | | || |_| ____( (___| | | |
(______/|_____)_|_|_| \__)_____)\____)_| |_|
(C)2013 Semtech
Description: SX1272 LoRa modem registers and ... | 2,868 |
4,585 | package com.beardedhen.androidbootstrap.api.attributes;
import android.content.Context;
import java.io.Serializable;
/**
* A Heading defines the text size and padding of its view. Bootstrap supports styles for H1-H6
* elements out of the box.
*/
public interface BootstrapHeading extends Serializable {
String... | 330 |
344 | /*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | 1,489 |
677 | <gh_stars>100-1000
/*
* Copyright (c) 2020 Bitdefender
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef _WINUM_CACHE_H_
#define _WINUM_CACHE_H_
#include "introcrt.h"
typedef struct _WIN_PROCESS_MODULE WIN_PROCESS_MODULE;
/// We can have up to this many exports pointing to the same RVA.
#define MAX_OFFSETS_PER_NAM... | 2,364 |
9,724 | <filename>tests/webgl_unmasked_vendor_webgl.c
#include <stdio.h>
#include <string.h>
#include <emscripten/html5.h>
#include <GLES2/gl2.h>
#include <webgl/webgl1_ext.h>
#include <assert.h>
int main()
{
EmscriptenWebGLContextAttributes attr;
emscripten_webgl_init_context_attributes(&attr);
attr.enableExtensionsByD... | 442 |
2,313 | <reponame>zhuangbility111/ComputeLibrary
/*
* Copyright (c) 2017-2021 Arm Limited.
*
* SPDX-License-Identifier: MIT
*
* 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 restrictio... | 13,071 |
348 | // --------------------------------------------------------------------------
// OpenMS -- Open-Source Mass Spectrometry
// --------------------------------------------------------------------------
// Copyright The OpenMS Team -- Eberhard Karls University Tuebingen,
// ETH Zurich, and Freie Universit... | 1,287 |
1,249 | #include <algorithm>
#include <cfloat>
#include <memory>
#include <vector>
#include <wayfire/plugin.hpp>
#include <wayfire/view.hpp>
#include <wayfire/view-access-interface.hpp>
#include <wayfire/signal-definitions.hpp>
#include <wayfire/view-transform.hpp>
#include <wayfire/parser/rule_parser.hpp>
#include <wayfire/l... | 2,541 |
549 | import argparse
import os
import logging
import sys
import itertools
import torch
from torch.utils.data import DataLoader, ConcatDataset
from torch.optim.lr_scheduler import CosineAnnealingLR, MultiStepLR
from vision.utils.misc import str2bool, Timer, freeze_net_layers, store_labels
from vision.ssd.ssd import MatchPr... | 9,779 |
550 | package play.mvc.results;
import play.exceptions.UnexpectedException;
import play.mvc.Http;
import play.mvc.Http.Request;
import play.mvc.Http.Response;
/**
* 302 Redirect
*/
public class RedirectToStatic extends Result {
String file;
public RedirectToStatic(String file) {
this.file = file;
... | 244 |
14,668 | <reponame>chromium/chromium
// Copyright (c) 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/memory/raw_ptr.h"
#include "gpu/command_buffer/service/gles2_cmd_decoder_passthrough.h"
#include <memory>
... | 89,743 |
818 | <filename>addons/common/tracing/decision-common/src/main/java/org/kie/kogito/tracing/decision/event/evaluate/EvaluateEvent.java
/*
* Copyright 2020 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Licen... | 3,804 |
5,169 | <gh_stars>1000+
{
"name": "BITLogMacro",
"version": "0.0.5",
"summary": "BITLogMacro.",
"description": "TODO: Add long description of the pod here.",
"homepage": "https://gitee.com/thekingfly/BGLogMacro",
"license": "MIT",
"authors": {
"thekingfly": "<EMAIL>"
},
"platforms": {
"ios": "8.0"
}... | 285 |
517 | <reponame>finesoft/java
// 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... | 31,115 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.