max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
310 | <filename>alpha-zero/const.py
import torch
# GOMOKU
SPACE = 0.
BLACK = 1.
WHITE = 2.
SIZE = 8
# MCTS
CPUCT = 5
MCTSSIMNUM = 400
HISTORY = 3
TEMPTRIG = 8
# Dirichlet
DLEPS = .25
DLALPHA = .03
# Net params
IND = HISTORY * 2 + 2
OUTD = SIZE**2
BLOCKS = 10
RES_BLOCK_FILLTERS = 128
# Train params
USECUDA = torch.cuda.i... | 221 |
384 | from argparse import Namespace
import math
import time
import os
import dill as pickle
from tqdm import tqdm
import torch
import torch.nn.functional as F
import torch.optim as optim
from torchbenchmark.util.torchtext_legacy.field import Field
from torchbenchmark.util.torchtext_legacy.data import Dataset
from torchben... | 2,694 |
903 | #include "../../../src/corelib/animation/qpropertyanimation_p.h"
| 25 |
381 | import imp
import os
try:
import cpyext
except ImportError:
raise ImportError("No module named '_testcapi'")
import _pypy_testcapi
cfile = '_testcapimodule.c'
thisdir = os.path.dirname(__file__)
output_dir = _pypy_testcapi.get_hashed_dir(os.path.join(thisdir, cfile))
try:
fp, filename, description = imp.... | 296 |
515 | <filename>Libs/PluginFramework/Testing/org.commontk.eventadmintest/ctkEAScenario3TestSuite.cpp
/*=============================================================================
Library: CTK
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics
Licensed under the Apache L... | 2,526 |
787 | <gh_stars>100-1000
// OJ: https://leetcode.com/problems/friend-circles/
// Author: github.com/lzl124631x
// Time: O(N^2 * a(N)), where `a` is the inverse function of Ackermann function. O(a(N)) is faster than O(log(N)).
// Space: O(N)
class UnionFind {
private:
vector<int> rank;
vector<int> id;
int count;
... | 585 |
480 | /*
* Copyright 1999-2017 Alibaba Group Holding 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 applica... | 1,910 |
443 | <filename>migrations/versions/5844fbc9d9e4_add_flakyteststat_double_reruns.py
"""Add flakyteststat.double_reruns
Revision ID: 5844fbc9d9e4
Revises: 18c15<PASSWORD>2a21
Create Date: 2015-06-04 14:20:02.697048
"""
# revision identifiers, used by Alembic.
revision = '<KEY>'
down_revision = '18c150792a21'
from alembic ... | 217 |
1,062 | <filename>MailHeaders/Catalina/IMAP/IMAPDownload.h<gh_stars>1000+
//
// Generated by class-dump 3.5b1 (64 bit) (Debug version compiled Dec 3 2019 19:59:57).
//
// Copyright (C) 1997-2019 <NAME>.
//
#import <objc/NSObject.h>
@class NSData, NSError, NSMutableArray, NSProgress;
@interface IMAPDownload : NSObject
... | 622 |
1,020 | <gh_stars>1000+
package io.spring.core.article;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.MatcherAssert.assertThat;
import java.util.Arrays;
import org.junit.Test;
public class ArticleTest {
@Test
public void should_get_right_slug() {
Article article = new Article("a new title... | 480 |
403 | package org.camunda.bpm.demo.orderconfirmation.model;
import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Version;
@Entity
public class DiscountRuleEntry implements Serializable {
private static final long ser... | 566 |
2,288 | <reponame>michaelfolkson/lnhw<gh_stars>1000+
/* MIT (BSD) license - see LICENSE file for details */
#include <ccan/crypto/hmac_sha256/hmac_sha256.h>
#include <string.h>
#define IPAD 0x3636363636363636ULL
#define OPAD 0x5C5C5C5C5C5C5C5CULL
#define BLOCK_U64S (HMAC_SHA256_BLOCKSIZE / sizeof(uint64_t))
static inline vo... | 2,398 |
6,098 | <filename>h2o-docs/src/booklets/v2_2015/source/Python_Vignette_code_examples/python_descriptive_stats_single_column.py
df4["A"].mean()
# [nan]
df4["A"].mean(na_rm=True)
# [2.0] | 82 |
660 | /*
* Copyright (c) 2018-2019, Intel Corporation
*
* 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, merge, p... | 16,516 |
1,127 | <reponame>ryanloney/openvino-1
// Copyright (C) 2018-2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "mvn_kernel_bfyx_opt.h"
#include "kernel_selector_utils.h"
#include <algorithm>
#include <vector>
#include <string>
namespace kernel_selector {
ParamsKey MVNKernelBfyxOpt::GetSupportedKey()... | 2,853 |
2,197 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
#include "eventpipeeventprinter.h"
using std::vector;
using std::shared_ptr;
EventPipeEventPrinter::EventPipeEvent... | 5,523 |
2,434 | <reponame>SergKhram/swagger2markup
package io.github.swagger2markup.adoc.ast.impl;
import org.asciidoctor.ast.Block;
import org.asciidoctor.ast.StructuralNode;
import java.util.*;
public class BlockImpl extends StructuralNodeImpl implements Block {
private List<String> lines;
public BlockImpl(StructuralNod... | 793 |
2,583 | <reponame>onelsonic/armory
import bpy
from bpy.props import *
class TLM_LuxCoreSceneProperties(bpy.types.PropertyGroup):
#Luxcore specific here
tlm_luxcore_dir : StringProperty(
name="Luxcore Directory",
description="Standalone path to your LuxCoreRender binary.",
default="",
... | 136 |
2,002 | #pragma once
struct NotificationsLongRunningProcessFactory WrlFinal : public Microsoft::WRL::ClassFactory<>
{
HRESULT RuntimeClassInitialize() noexcept;
IFACEMETHODIMP CreateInstance(
_In_opt_ IUnknown* outer,
_In_ REFIID riid,
_COM_Outptr_ void** ppvObject) override;
priv... | 163 |
5,079 | from setuptools import setup
import textwrap
setup(name='MarkupPy',
version='1.14',
description='An HTML/XML generator',
url='https://github.com/tylerbakke/MarkupPy',
author='<NAME>',
author_email="<EMAIL>",
long_description=textwrap.dedent("""\
This is MarkupPy - a Python m... | 437 |
370 | /*
* Copyright (c) 2015-2019 Dubalu LLC
*
* 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, merge, pub... | 2,479 |
5,169 | {
"name": "SBUnits",
"version": "0.1.0",
"summary": "Dimensions, Units and Quantities",
"description": "A number without its unit of measure is meaningless at best and dangerous at worst. The unit\nprovides the context within which to interpret the value...",
"homepage": "http://github.com/EBGToo/SBUnits",
... | 212 |
309 | <filename>src/Cxx/DataStructures/OBBTreeExtractCells.cxx
#include <vtkSmartPointer.h>
#include <vtkSphereSource.h>
#include <vtkPoints.h>
#include <vtkIdList.h>
#include <vtkPolyData.h>
#include <vtkPointData.h>
#include <vtkLine.h>
#include <vtkLineSource.h>
#include <vtkExtractCells.h>
#include <vtkOBBTree.h>
#inclu... | 1,639 |
622 | //=====================================================================
// Copyright 2016 (c), Advanced Micro Devices, Inc. All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files(the "Software"), to deal
// in the So... | 42,785 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-qqfm-8ggf-xpch",
"modified": "2022-05-17T00:00:53Z",
"published": "2022-05-07T00:00:36Z",
"aliases": [
"CVE-2021-27751"
],
"details": "HCL Commerce is affected by an Insufficient Session Expiration vulnerability. After the session expires, in some circumstances... | 424 |
1,695 | <filename>plugin/trino-hive/src/test/java/io/trino/plugin/hive/TestRecordingMetastoreConfig.java<gh_stars>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... | 783 |
360 | /* ------------------------------------------------------------------------
*
* geqo_copy.cpp
*
* Portions Copyright (c) 2020 Huawei Technologies Co.,Ltd.
* Portions Copyright (c) 1996-2012, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* src/gaussk... | 685 |
502 | <filename>core/src/main/java/org/apache/iceberg/avro/MissingIds.java
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* ... | 904 |
666 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# gui.py
#
# Copyright 2017 <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 published by
# the Free Software Foundation; either version 2 of the License, or
# (at you... | 4,121 |
2,859 | /*
* FXGL - JavaFX Game Library. The MIT License (MIT).
* Copyright (c) AlmasB (<EMAIL>).
* See LICENSE for details.
*/
package com.almasb.fxgl.physics;
import com.almasb.fxgl.entity.Entity;
/**
* Handler for a collision that occurred between two entities.
* Subclasses should override only those callbacks they ... | 1,176 |
459 | package com.example.pocketknife;
import android.os.Parcel;
import android.os.Parcelable;
public class MyParcelable implements Parcelable {
public static final Creator<MyParcelable> CREATOR = new Creator<MyParcelable>() {
@Override
public MyParcelable createFromParcel(Parcel in) {
retur... | 505 |
377 | import requests
from .attacktemplate import AttackTemplate
from .base import Base
class NewBeeAttackDataset(Base):
"""
Data Source: https://github.com/NewBee119/Attack-Technique-Dataset
Author: NewBee119
This class is a wrapper for the above data set
"""
URL = 'https://raw.githubuserconte... | 436 |
581 | <filename>test/llvm_test_code/taint_analysis/taint_11.c<gh_stars>100-1000
#include <stdio.h>
int quk(int i) { return i; }
int baz(int i) { return quk(i); }
int bar(int i) { return baz(i); }
int foo(int i) {
return bar(i);
}
int main(int argc, char **argv) {
int y = foo(argc);
int a = 42;
int z = foo(a);
prin... | 171 |
369 | // Copyright (c) 2017-2021, Mudit<NAME>. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#include <UrcCreg.hpp>
#include <magic_enum.hpp>
using namespace at::urc;
auto Creg::isValid() const noexcept -> bool
{
return isExtended() || isShort();
}
auto Creg::isExtended() co... | 876 |
496 | <reponame>dubadub/vas3k.club<filename>club/exceptions.py
class ClubException(Exception):
default_code = "error"
default_title = "Что-то пошло не так"
default_message = "Никто не знает что произошло :("
def __init__(self, code=None, title=None, message=None, data=None):
self.code = code or self.... | 1,192 |
2,743 | from __future__ import unicode_literals
default_app_config = 'rest_api.apps.RESTAPIApp'
| 32 |
575 | // Copyright 2019 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_SCRIPT_IMPORT_MAP_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_SCRIPT_IMPORT_MAP_H_
#include "base/macros.h"
#inclu... | 1,463 |
4,036 | <gh_stars>1000+
// Generated automatically from org.apache.commons.collections4.OrderedMapIterator for testing purposes
package org.apache.commons.collections4;
import org.apache.commons.collections4.MapIterator;
import org.apache.commons.collections4.OrderedIterator;
public interface OrderedMapIterator<K, V> extend... | 126 |
4,140 | <reponame>FANsZL/hive<filename>ql/src/java/org/apache/hadoop/hive/ql/parse/WindowingComponentizer.java<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 cop... | 1,292 |
5,821 | <filename>metaflow/plugins/aws/batch/batch.py
import atexit
import json
import os
import select
import shlex
import time
from metaflow import util
from metaflow.datatools.s3tail import S3Tail
from metaflow.exception import MetaflowException, MetaflowInternalError
from metaflow.metaflow_config import (
BATCH_METADA... | 7,753 |
814 | <filename>torchrec/distributed/utils.py<gh_stars>100-1000
#!/usr/bin/env python3
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
from collections import Ordere... | 2,455 |
1,125 | <reponame>chefmramos85/monster-mash
// This file is part of libigl, a simple c++ geometry processing library.
//
// Copyright (C) 2020 <NAME> <<EMAIL>>
//
// This Source Code Form is subject to the terms of the Mozilla Public License
// v. 2.0. If a copy of the MPL was not distributed with this file, You can
// obtain ... | 814 |
32,544 | <filename>quarkus/src/test/java/com/baeldung/quarkus/utils/CustomTestProfile.java<gh_stars>1000+
package com.baeldung.quarkus.utils;
import io.quarkus.test.junit.QuarkusTestProfile;
import java.util.Collections;
import java.util.Map;
import java.util.Set;
public class CustomTestProfile implements QuarkusTestProfile ... | 257 |
335 | <filename>src/datagen/generated/assets/projecte/models/block/collector_mk2.json
{
"parent": "projecte:block/collector_mk1",
"textures": {
"top": "projecte:block/collectors/top_2"
}
} | 77 |
971 | #!/usr/bin/python
# Copyright (C) 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | 4,603 |
5,169 | <filename>Specs/4/2/b/FSnapChatLoading/1.0.5/FSnapChatLoading.podspec.json
{
"name": "FSnapChatLoading",
"version": "1.0.5",
"summary": "A loading tool similar to that in Snap Chat",
"description": "Loading tool similar to that in Snap Chat (framework)",
"homepage": "https://github.com/faisalbz/FSnapChatLoadi... | 269 |
335 | {
"word": "Pharmacognosy",
"definitions": [
"The branch of knowledge concerned with medicinal drugs obtained from plants or other natural sources."
],
"parts-of-speech": "Noun"
} | 71 |
984 | //
// corecrt_memcpy_s.h
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// Inline definitions of memcpy_s and memmove_s
//
#pragma once
#include <corecrt.h>
#include <errno.h>
#include <vcruntime_string.h>
#pragma warning(push)
#pragma warning(disable: _UCRT_DISABLED_WARNINGS)
_UCRT_DISABLE_C... | 2,105 |
834 | // Copyright 2004-present Facebook. All Rights Reserved.
#pragma once
extern "C" {
#include <bcm/mpls.h>
}
#include "fboss/agent/state/LabelForwardingAction.h"
#include "fboss/agent/state/LabelForwardingEntry.h"
namespace facebook::fboss::utility {
bcm_mpls_switch_action_t getLabelSwitchAction(
LabelNextHopEnt... | 248 |
451 | // File Automatically generated by eLiSe
#include "StdAfx.h"
#include "cREgDistDx_Four11x2.h"
cREgDistDx_Four11x2::cREgDistDx_Four11x2():
cElCompiledFonc(2)
{
AddIntRef (cIncIntervale("Intr",0,16));
Close(false);
}
void cREgDistDx_Four11x2::ComputeVal()
{
double tmp0_ = mLocRegDistu1_x - mLocFour11x2_... | 7,172 |
743 | <filename>hermes-common/src/main/java/pl/allegro/tech/hermes/domain/filtering/header/HeaderPredicate.java
package pl.allegro.tech.hermes.domain.filtering.header;
import pl.allegro.tech.hermes.domain.filtering.FilterableMessage;
import java.util.function.Predicate;
import java.util.regex.Pattern;
class HeaderPredicat... | 361 |
849 | <gh_stars>100-1000
#ifndef PROFILER_H
#define PROFILER_H
#include "rdtsc.h"
struct name_mapper {
int number;
const char* name;
};
extern name_mapper name_map[];
class profiling_checker {
public:
profiling_checker(int number);
~profiling_checker();
private:
int number_;
uint64_t start_time_;... | 248 |
473 | <gh_stars>100-1000
/*
* Copyright (C) <NAME> <<EMAIL>>
*
* 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, mod... | 589 |
364 | <reponame>spring-operator/reactive-streams-commons
package rsc.publisher;
import java.util.Objects;
import java.util.concurrent.atomic.AtomicIntegerFieldUpdater;
import java.util.function.BooleanSupplier;
import org.reactivestreams.Publisher;
import org.reactivestreams.Subscriber;
import rsc.subscriber.MultiSubscript... | 1,407 |
403 | package io.craft.atom.util.schedule;
import io.craft.atom.test.CaseCounter;
import io.craft.atom.util.schedule.ExpirationListener;
import io.craft.atom.util.schedule.TimingWheel;
import java.util.Date;
import java.util.Set;
import java.util.concurrent.TimeUnit;
import junit.framework.Assert;
import org.junit.After;... | 1,313 |
361 | <gh_stars>100-1000
# -*- coding: utf-8 -*-
#
# Copyright (c) 2019-2020 VMware, Inc. All Rights Reserved.
# SPDX-License-Identifier: BSD-2-Clause
"""
Execute cve-bin-tool
https://github.com/intel/cve-bin-tool
This plugin does not support installation of cve-bin-tool
The assumption is that cve-bin-tool is globally execu... | 567 |
401 | //
// TOPasscodeCircleImage.h
//
// Copyright 2017 <NAME>. All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
// deal in the Software without restriction, including without limitation th... | 819 |
546 | <filename>include/Msnhnet/robot/MsnhSegment.h
#ifndef SEGMENT_H
#define SEGMENT_H
#include "Msnhnet/robot/MsnhFrame.h"
#include "Msnhnet/robot/MsnhJoint.h"
namespace Msnhnet
{
class MsnhNet_API Segment
{
public:
Segment(const std::string &name, const Joint &joint=Joint(Joint::JOINT_FIXED),
const Fra... | 504 |
72,551 | //===--- MigratorOptions.h - Swift Migrator ---------------------*- C++ -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... | 584 |
988 | <filename>src/yvalve/perf.cpp
/*
* PROGRAM: JRD Access Method
* MODULE: perf.cpp
* DESCRIPTION: Performance monitoring routines
*
* The contents of this file are subject to the Interbase Public
* License Version 1.0 (the "License"); you may not use this file
* except in compliance with the License. You may obta... | 5,679 |
1,880 | # built-in
import re
from typing import Optional
# external
import attr
REX_AUTHOR = re.compile(r'^\s*(?P<name>.+?) \<(?P<mail>.+?)\>\s*$')
@attr.s()
class Author:
name = attr.ib(type=str)
mail = attr.ib(type=Optional[str], default=None)
@classmethod
def parse(cls, text: str) -> 'Author':
... | 288 |
376 | /**************************************************************************
Copyright 2015 <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 req... | 727 |
335 | <filename>V/Vasopressor_noun.json
{
"word": "Vasopressor",
"definitions": [
"A drug or other agent which causes the constriction of blood vessels."
],
"parts-of-speech": "Noun"
} | 83 |
2,338 | <reponame>mkinsner/llvm<gh_stars>1000+
// Run lines are sensitive to line numbers and come below the code.
#ifndef HEADER
#define HEADER
// Not a Doxygen comment. notdoxy1 NOT_DOXYGEN
void notdoxy1(void);
/* Not a Doxygen comment. notdoxy2 NOT_DOXYGEN */
void notdoxy2(void);
/*/ Not a Doxygen comment. notdoxy3 N... | 2,252 |
190,993 | <filename>tensorflow/compiler/mlir/tensorflow/tests/tf_saved_model/multi_arguments_results_v1.py
# Copyright 2019 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... | 1,711 |
377 | <reponame>rcorcs/llvm-mctoll
//===- ARMCreateJumpTable.cpp - Binary raiser utility llvm-mctoll ---------===//
//
// 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
//
//=... | 6,384 |
3,167 | <filename>open_spiel/algorithms/corr_dist/cce.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.apa... | 1,127 |
1,088 | <reponame>amznero/graph-learn
# Copyright 2020 Alibaba Group Holding Limited. 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/LICEN... | 1,571 |
352 | /*
*Author:GeneralSandman
*Code:https://github.com/GeneralSandman/TinyWeb
*E-mail:<EMAIL>
*Web:www.generalsandman.cn
*/
/*---XXX---
*
****************************************
*
*/
#include <tiny_base/log.h>
#include <tiny_base/exception.h>
#include <tiny_core/defer.h>
#include <iostream>
#include <deque>
#include <b... | 613 |
617 | #pragma once
#include "CoreMinimal.h"
#include "RTSOrderType.generated.h"
UENUM(BlueprintType)
enum class ERTSOrderType : uint8
{
/** Idle. */
ORDER_None,
/** Move to a destination in the world. */
ORDER_Move,
/** Attack another actor. */
ORDER_Attack,
/** Create a new construction site. */
ORDER_BeginCo... | 168 |
613 | <gh_stars>100-1000
package mezz.jei.plugins.vanilla.cooking.fuel;
import java.text.NumberFormat;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import net.minecraft.world.item.ItemStack;
import com.google.common.base.Preconditions;
import mezz.jei.api.gui.drawable.IDrawableAnimated;
... | 568 |
518 | package com.paypal.api.payments;
import com.paypal.base.rest.PayPalModel;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import java.util.List;
@Getter @Setter
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class TemplateData e... | 903 |
4,268 | <reponame>wenq1/duktape
/*
* Illustrate corner case string intern side effect behavior: when a finalizer
* is triggered during string interning it can potentially invalidate the
* string data pointer/length provided before the data has been copied.
*
* This would be quite difficult to trigger in practice. Thi... | 1,284 |
3,227 | <gh_stars>1000+
#include <CGAL/Exact_integer.h>
#include <CGAL/Homogeneous.h>
#include <CGAL/Nef_polyhedron_3.h>
#include <CGAL/IO/Nef_polyhedron_iostream_3.h>
typedef CGAL::Homogeneous<CGAL::Exact_integer> Kernel;
typedef CGAL::Nef_polyhedron_3<Kernel> Nef_polyhedron;
typedef Nef_polyhedron::Vertex_const_handle Verte... | 816 |
8,805 | // Boost.Geometry Index
//
// Copyright (c) 2011-2014 <NAME>, <NAME>.
//
// Use, modification and distribution is subject to the Boost Software License,
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef BOOST_GEOMETRY_INDEX_DETAIL_EXCEPTION_HPP
... | 895 |
492 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import warnings
import logging
import sys, os
import tornado.httpserver
import tornado.ioloop
import tornado.options
import tornado.web
from tornado.options import options, parse_command_line, add_parse_callback, OptionParser
from tornado.log import define_logging_options, ... | 4,282 |
423 | import pathlib
from typing import Optional, Sequence
from pysen import ComponentBase
def build(components: Sequence[ComponentBase], src_path: Optional[pathlib.Path]) -> int:
return 42
| 53 |
489 | /*****************************************************************************************
* *
* OpenSpace *
* ... | 2,025 |
370 | package com.vitco.app.util.components.progressbar;
import javax.swing.*;
/**
* A worker thread that encapsulates a task handled by a ProgressDialog.
*/
public abstract class ProgressWorker extends SwingWorker<Object, Object> {
@Override
protected abstract Object doInBackground() throws Exception;
}
| 89 |
381 | <reponame>wslblb/TestChat
package chen.testchat.bean;
import java.io.Serializable;
/**
* 项目名称: TestChat
* 创建人: 陈锦军
* 创建时间: 2016/10/15 23:29
* QQ: 1981367757
*/
public class RecentMsg implements Serializable {
private static final long serialVersionUID = 1L;
/**
... | 1,591 |
732 | /*
* Copyright 2014 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 at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | 11,929 |
628 | from enum import Flag
import json
import struct
import sys
from json_config_parse import parse_json
if (len(sys.argv) < 3):
sys.exit()
output_file = sys.argv[2]
asm_file = open(sys.argv[1], "r")
asm_text = asm_file.read()
asm_file.close()
json_text = asm_text.split(";%ifdef CONFIG")
if (len(json_text) > 1):
... | 468 |
1,150 | #pragma once
#include <esp_err.h>
#ifdef __cplusplus
extern "C"
{
#endif
#include <esp_http_server.h>
typedef struct {
httpd_handle_t hd;
int fd;
} async_resp_arg_t;
typedef void (*blinker_websocket_data_cb_t)(httpd_req_t *req, const char *payload);
esp_err_t blinker_websocket_async_print(async_resp_arg_t... | 237 |
495 | <reponame>cz3pearl/database-rider<gh_stars>100-1000
package com.github.database.rider.examples.cucumber.withoutcdi;
import com.github.database.rider.core.api.dataset.DataSetExecutor;
import com.github.database.rider.core.configuration.DataSetConfig;
import com.github.database.rider.core.connection.ConnectionHolderImpl... | 973 |
2,114 | package io.searchbox.core.search.aggregation;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
import static io.searchbox.core.search.aggregation.AggregationField.VALUES;
/**
* @author cfstout
*/
public class Percentil... | 663 |
1,909 | package org.knowm.xchange.deribit.v2.dto;
public enum GrantType {
/** using email and and password as when logging on to the website */
password,
/** using the access key and access secret that can be found on the API page on the website */
client_credentials,
/**
* using the access key that can be found ... | 177 |
1,350 | <gh_stars>1000+
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.billing.models;
import com.azure.core.annotation.Immutable;
import com.azure.core.util.logging.ClientLogger;
imp... | 667 |
480 | /* Copyright (c) 2013 Nordic Semiconductor. All Rights Reserved.
*
* The information contained herein is property of Nordic Semiconductor ASA.
* Terms and conditions of usage are described in detail in NORDIC
* SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
*
* Licensees are granted free, non-transferable use... | 5,675 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-j6px-jwvv-vpwq",
"modified": "2021-02-01T15:00:53Z",
"published": "2021-02-01T15:01:26Z",
"aliases": [
"CVE-2021-21277"
],
"summary": "Angular Expressions - Remote Code Execution",
"details": "### Impact\n\nThe vulnerability, reported by GoSecure Inc, allows ... | 1,214 |
471 | <reponame>madanagopaltcomcast/pxCore<filename>examples/pxScene2d/external/WinSparkle/3rdparty/wxWidgets/src/os2/dir.cpp
/////////////////////////////////////////////////////////////////////////////
// Name: src/os2/dir.cpp
// Purpose: wxDir implementation for OS/2
// Author: <NAME>
// Modified by: <NAME... | 4,672 |
386 | <filename>src/IECoreHoudini/plugin/Plugin.cpp
//////////////////////////////////////////////////////////////////////////
//
// Copyright 2010 Dr D Studios Pty Limited (ACN 127 184 954) (Dr. D Studios),
// its affiliates and/or its licensors.
//
// Copyright (c) 2010-2015, Image Engine Design Inc. All rights reserved... | 2,492 |
575 | // Copyright (c) 2012 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/prefetch/no_state_prefetch/no_state_prefetch_tab_helper.h"
#include "chrome/browser/prefetch/no_state_prefetch/no_state_pref... | 509 |
746 | // 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... | 2,533 |
435 | <reponame>allen91wu/data<gh_stars>100-1000
{
"description": "During this talk, I will share my experience gathered during the\ndevelopment of Allegro's visual search engine. I will present our entire\njourney from the plain idea through different modelling approaches up to\nits current solution. Finally, I will provi... | 462 |
2,406 | <filename>inference-engine/src/low_precision_transformations/include/low_precision/lpt_visibility.hpp
// Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#pragma once
#include "ngraph/visibility.hpp"
/**
* @file lpt_visibility.hpp
* @brief Defines visibility settings for Inferenc... | 188 |
359 | <reponame>shubham-goel/idr
import os
import torch
import numpy as np
import utils.general as utils
from utils import rend_util
class SceneDataset(torch.utils.data.Dataset):
"""Dataset for a class of objects, where each datapoint is a SceneInstanceDataset."""
def __init__(self,
train_cameras,... | 2,929 |
582 | /*******************************************************************************
* Copyright 2005, CHISEL Group, University of Victoria, Victoria, BC, Canada.
* All rights reserved. This program and the accompanying materials are made
* available under the terms of the Eclipse Public License v1.0 which
* accompanie... | 2,473 |
353 | package org.nutz.mock.servlet;
import javax.servlet.ServletInputStream;
public abstract class MockInputStream extends ServletInputStream {
public abstract void init();
public abstract void append(String name, String value);
}
| 69 |
4,758 | #!/usr/bin/env python
"""
Copyright (c) 2014-2021 Maltrail developers (https://github.com/stamparm/maltrail/)
See the file 'LICENSE' for copying permission
"""
from __future__ import print_function
# simple ignore rule mechanism configured by file 'misc/ignore_event.txt' and/or user defined `USER_IGNORELIST`
import ... | 548 |
1,105 | <filename>testsuite/blackbody-reg/run.py<gh_stars>1000+
#!/usr/bin/env python
# Copyright Contributors to the Open Shading Language project.
# SPDX-License-Identifier: BSD-3-Clause
# https://github.com/AcademySoftwareFoundation/OpenShadingLanguage
command += testshade("-g 200 200 blackbody_v_temperature -od uint8 -o... | 252 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.