max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
1,338 | /*
* Copyright 2004-2006, the Haiku project. All rights reserved.
* Distributed under the terms of the MIT License.
*
* Authors in chronological order:
* <EMAIL>
* <NAME>
* <NAME>
*/
#include "KeyboardView.h"
#include <Bitmap.h>
#include <Button.h>
#include <Catalog.h>
#include <InterfaceDefs.h>
#include ... | 931 |
356 | package com.zjb.volley.core.cache;
/**
* time: 2015/8/19
* description:
*
* @author sunjianfei
*/
public class NoCache implements Cache {
public NoCache() {
}
public void clear() {
}
public Entry get(String key) {
return null;
}
public void put(String key, Entry entry) {
... | 185 |
1,077 | <gh_stars>1000+
import json
import requests
from anime_downloader.sites.anime import Anime, AnimeEpisode, SearchResult
from anime_downloader.sites import helpers
class AnimeOnline(Anime, sitename='animeonline360'):
sitename = 'animeonline360'
@classmethod
def search(cls, query):
tr... | 765 |
14,668 | <gh_stars>1000+
// Copyright 2014 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/component_updater/chrome_component_updater_configurator.h"
#include <memory>
#include <string>
#include <vector>... | 2,935 |
1,405 | <reponame>jarekankowski/pegasus_spyware<filename>sample4/recompiled_java/sources/com/lenovo/safecenter/mmsutils/MMSReciver.java
package com.lenovo.safecenter.mmsutils;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import android.widget... | 1,876 |
672 |
// BUILD: $CC foo1.c -dynamiclib -install_name $RUN_DIR/libfoo1.dylib -o $BUILD_DIR/libfoo1.dylib
// BUILD: $CC foo2.c -dynamiclib -install_name $RUN_DIR/libfoo2.dylib -o $BUILD_DIR/libfoo2.dylib
// BUILD: $CC foo3.c -dynamiclib -install_name $RUN_DIR/libfoo3.dylib -o $BUILD_DIR/libfoo3.dylib
// BUILD: $CC main... | 1,996 |
834 | <filename>installer/centos-7-x86_64/run_scripts/setup.py
#!/usr/bin/env python3
# Copyright 2004-present Facebook. All Rights Reserved.
import argparse
import os
import platform
import shutil
import subprocess
import sys
def parse_args():
parser = argparse.ArgumentParser()
parser.add_argument(
"--rel... | 3,145 |
318 | package xyz.msws.nope.checks.movement.flight;
import org.bukkit.Bukkit;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.entity.EntityType;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerMoveEvent;
... | 831 |
2,583 | <reponame>onelsonic/armory
from arm.logicnode.arm_nodes import *
class SpawnObjectByNameNode(ArmLogicTreeNode):
"""Spawns an object bearing the given name, even if not present in the active scene"""
bl_idname = 'LNSpawnObjectByNameNode'
bl_label = 'Spawn Object By Name'
arm_version = 1
property0: ... | 363 |
1,109 | <gh_stars>1000+
/*******************************************************************************
* 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>
* htt... | 4,135 |
335 | <reponame>mrslezak/Engine
/*
Copyright (C) 2019 Quaternion Risk Management Ltd
All rights reserved.
This file is part of ORE, a free-software/open-source library
for transparent pricing and risk analysis - http://opensourcerisk.org
ORE is free software: you can redistribute it and/or modify it
under the terms o... | 1,048 |
480 | <reponame>weicao/galaxysql<gh_stars>100-1000
/*
* Copyright [2013-2021], Alibaba Group Holding Limited
*
* 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/lice... | 1,852 |
814 | import logging
import os
import numpy as np
import glob
import json
from dataclasses import dataclass
from typing import List, Dict, Callable, Tuple, Generator, Set, Sequence, Optional, Union
import torch
from tqdm import tqdm
from transformers import DataProcessor, PreTrainedTokenizer
from tython import Program, Tas... | 5,738 |
362 | #ifndef KGR_KANGARU_INCLUDE_KANGARU_AUTOCALL_HPP
#define KGR_KANGARU_INCLUDE_KANGARU_AUTOCALL_HPP
#include "detail/meta_list.hpp"
#include "detail/utils.hpp"
#include "detail/traits.hpp"
#include "detail/injected.hpp"
#include "detail/container_service.hpp"
#include "container.hpp"
namespace kgr {
namespace detail {
... | 750 |
1,052 | <reponame>tom-huntington/learn-c-the-hard-way-lectures<gh_stars>1000+
#include "minunit.h"
#include <dlfcn.h>
#include "statserve.h"
#include <lcthw/bstrlib.h>
#include <lcthw/ringbuffer.h>
#include <assert.h>
typedef struct LineTest {
char *line;
bstring result;
char *description;
} LineTest;
int attempt... | 882 |
348 | {"nom":"<NAME>","circ":"2ème circonscription","dpt":"Vendée","inscrits":3237,"abs":1830,"votants":1407,"blancs":100,"nuls":56,"exp":1251,"res":[{"nuance":"MDM","nom":"Mme <NAME>","voix":718},{"nuance":"LR","nom":"Mme <NAME>","voix":533}]} | 98 |
3,428 | <reponame>ghalimi/stdlib
{"id":"00620","group":"easy-ham-1","checksum":{"type":"MD5","value":"8d1ccac5b4a36e47f5f168c19e6ac573"},"text":"From <EMAIL> Wed Sep 18 17:43:34 2002\nReturn-Path: <<EMAIL>>\nDelivered-To: y<EMAIL>\nReceived: from localhost (jalapeno [127.0.0.1])\n\tby jmason.org (Postfix) with ESMTP id EA2331... | 1,148 |
852 | import FWCore.ParameterSet.Config as cms
process = cms.Process("TEST")
process.load("CondCore.DBCommon.CondDBCommon_cfi")
process.CondDBCommon.connect = cms.string("sqlite_file:tagDB.db")
process.CondDBCommon.DBParameters.messageLevel = 0
process.PoolDBESSource = cms.ESSource("PoolDBESSource",
process.CondDBCommo... | 549 |
798 | <filename>src/test/java/picard/illumina/parser/readers/LocsFileReaderTest.java
package picard.illumina.parser.readers;
import org.testng.Assert;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
import picard.PicardException;
import java.io.File;
public class LocsFileReaderTest {
pr... | 1,305 |
715 | #include<bits/stdc++.h>
#define max 1000
using namespace std;
int findLongestFromACell(int i, int j, int mat[max][max], int dp[max][max], int n){
if (i<0 || i>=n || j<0 || j>=n)
return 0;
if (dp[i][j] != -1)
return dp[i][j];
if (j<n-1 && ((mat[i][j] +1) == mat[i][j+1]))
return dp[i]... | 710 |
6,098 | <gh_stars>1000+
package water.rapids.ast.prims.filters.dropduplicates;
import water.Scope;
import water.fvec.Frame;
import water.fvec.Vec;
import water.rapids.Merge;
import water.util.ArrayUtils;
import java.util.Arrays;
/**
* Drops duplicated rows of a Frame
*/
public class DropDuplicateRows {
private static f... | 1,106 |
830 | /* Copyright 2016 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 law or agreed to in ... | 4,893 |
935 | <reponame>kITerE/managarm
#pragma once
#include <netserver/nic.hpp>
#include <core/virtio/core.hpp>
namespace nic::virtio {
std::shared_ptr<nic::Link> makeShared(std::unique_ptr<virtio_core::Transport>);
} // namespace nic::virtio
| 94 |
595 | <reponame>erique/embeddedsw
/******************************************************************************
* Copyright (C) 2018 – 2020 Xilinx, Inc. All rights reserved.
* SPDX-License-Identifier: MIT
******************************************************************************/
/************************************... | 4,208 |
9,402 | <gh_stars>1000+
//
// This program is used to split fsharp-deeptail.il into separate tests.
//
// Algorithm is just to split on the newline delimited ldstr opcodes
// within the main@ function, and generate file names from the ldstr,
// replacing special characters with underscores.
//
// git rm fsharp-deeptail-*
// rm... | 2,155 |
5,169 | <reponame>Gantios/Specs
{
"name": "ToolProject",
"version": "2.0.0",
"summary": "this is a convenience tool class for my working.",
"homepage": "https://github.com/afeng159/ToolClass",
"license": "MIT",
"authors": {
"<EMAIL>": "<EMAIL>"
},
"platforms": {
"ios": null
},
"source": {
"git":... | 218 |
679 | <filename>main/odk/examples/DevelopersGuide/OfficeDev/Linguistic/XSpellAlternatives_impl.java<gh_stars>100-1000
/**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed... | 1,006 |
5,169 | {
"name": "HJQCornerRadius",
"version": "0.0.1",
"summary": "A runTime to improve the performance of the CornerRadius framework of HJQCornerRadius.",
"homepage": "https://github.com/XiaoHanGe/HJQCornerRadius",
"license": {
"type": "MIT",
"file": "LICENSE"
},
"authors": {
"韩俊强": "<EMAIL>"
},
... | 244 |
1,561 | #include <stdio.h>
#include <webots/motor.h>
#include <webots/robot.h>
#include <webots/touch_sensor.h>
#include "../../../lib/ts_assertion.h"
#include "../../../lib/ts_utils.h"
#define TIME_STEP 16
int main(int argc, char **argv) {
ts_setup(argv[0]);
WbDeviceTag ts = wb_robot_get_device("touch sensor");
WbDe... | 428 |
317 | <filename>Modules/Learning/Supervised/include/otbSVMMachineLearningModel.hxx
/*
* Copyright (C) 2005-2020 Centre National d'Etudes Spatiales (CNES)
*
* This file is part of Orfeo Toolbox
*
* https://www.orfeo-toolbox.org/
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use ... | 2,400 |
7,746 | <reponame>jar-ben/z3
/*++
Copyright (c) 2011 Microsoft Corporation
Module Name:
probe.h
Abstract:
Evaluates/Probes a goal.
A probe is used to build tactics (aka strategies) that
makes decisions based on the structure of a goal.
The current implementation is very simple.
Author:
<NAME> (l... | 1,630 |
1,350 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.recoveryservicesbackup.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import ... | 1,160 |
3,102 | <filename>tools/clang/test/SemaCXX/alignment-of-derived-class.cpp
// RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++11
// expected-no-diagnostics
// Test that the alignment of a empty direct base class is correctly
// inherited by the derived class.
struct A {
} __attribute__ ((aligned(16)));
static_assert(__align... | 391 |
1,745 | <reponame>Milerius/bsf
//************************************ bs::framework - Copyright 2018 <NAME> **************************************//
//*********** Licensed under the MIT license. See LICENSE.md for full terms. This notice is not to be removed. ***********//
#include "String/BsUnicode.h"
#include "Platform/BsPla... | 2,801 |
1,958 | package com.freetymekiyan.algorithms.level.medium;
import java.util.Arrays;
/**
* 318. Maximum Product of Word Lengths
* <p>
* Given a string array words, find the maximum value of length(word[i]) * length(word[j]) where the two words do not
* share common letters. You may assume that each word will contain only ... | 667 |
756 | # -*- coding: utf-8 -*-
"""
Created on Mon Apr 9 11:45:59 2018
@author: tghosh
"""
import config
import numpy as np
import os
class GloVe:
def __init__(self, embd_dim=50):
if embd_dim not in [50, 100, 200, 300]:
raise ValueError('embedding dim should be one of [50, 100, 200, 300]')
... | 2,067 |
1,686 | <filename>pkg/remote/test/aws_ec2_subnet_multiple/aws_subnet-subnet-05810d3f933925f6d.res.golden.json<gh_stars>1000+
{
"Typ": "<KEY>
"Val": "<KEY>
"Err": null
} | 76 |
348 | <reponame>chamberone/Leaflet.PixiOverlay
{"nom":"Coray","circ":"6ème circonscription","dpt":"Finistère","inscrits":1356,"abs":669,"votants":687,"blancs":32,"nuls":30,"exp":625,"res":[{"nuance":"REM","nom":"<NAME>","voix":358},{"nuance":"LR","nom":"Mme <NAME>","voix":267}]} | 110 |
1,127 | // Copyright (C) 2018-2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "openvino/frontend/paddle/node_context.hpp"
#include "openvino/frontend/paddle/visibility.hpp"
#include "openvino/opsets/opset8.hpp"
namespace ov {
namespace frontend {
namespace paddle {
namespace op {
NamedOutputs matrix_... | 1,298 |
1,479 | <reponame>pratyushmahapatra/echo
#define arena_bin_index JEMALLOC_N(arena_bin_index)
#define arena_boot JEMALLOC_N(arena_boot)
#define arena_dalloc JEMALLOC_N(arena_dalloc)
#define arena_dalloc_bin JEMALLOC_N(arena_dalloc_bin)
#define arena_dalloc_large JEMALLOC_N(arena_dalloc_large)
#define arena_malloc JEMALLOC_N(are... | 4,810 |
1,532 | <reponame>OmegaZhou/MAgent
#ifndef MAGNET_RENDER_BACKEND_UTILITY_EXCEPTION_H_
#define MAGNET_RENDER_BACKEND_UTILITY_EXCEPTION_H_
#include <string>
#include <stdexcept>
#include "utility.h"
namespace magent {
namespace render {
class BaseException : public std::runtime_error {
public:
explicit BaseException(const... | 305 |
797 | //
// ALPHAConversion.h
// Alpha
//
// Created by <NAME> on 09/06/15.
// Copyright © 2015 Unified Sense. All rights reserved.
//
#import "ALPHADataConverterSource.h"
#import "ALPHAConverterManager.h"
| 78 |
4,283 | /*
* Copyright (c) 2008-2021, Hazelcast, 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 ... | 398 |
892 | <filename>advisories/unreviewed/2022/05/GHSA-2xxh-f8r3-hvvr/GHSA-2xxh-f8r3-hvvr.json
{
"schema_version": "1.2.0",
"id": "GHSA-2xxh-f8r3-hvvr",
"modified": "2022-05-13T01:45:34Z",
"published": "2022-05-13T01:45:34Z",
"aliases": [
"CVE-2017-3523"
],
"details": "Vulnerability in the MySQL Connectors comp... | 679 |
1,248 | #include "common.h"
#include "declarations.h"
#include "kernel/vc4_packet.h"
//returns max index
static uint32_t drawCommon(VkCommandBuffer commandBuffer, int32_t vertexOffset)
{
assert(commandBuffer);
_commandBuffer* cb = commandBuffer;
assert(((CLMarker*)getCPAptrFromOffset(cb->binCl.CPA, cb->binCl.currMarker... | 10,702 |
403 | /*
* Camunda Platform REST API
* OpenApi Spec for Camunda Platform REST API.
*
* The version of the OpenAPI document: 7.16.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.camu... | 3,279 |
504 | <reponame>steakknife/pcgeos
/***********************************************************************
*
* Copyright (c) Geoworks 1995 -- All Rights Reserved
*
* GEOWORKS CONFIDENTIAL
*
* PROJECT: Socket
* MODULE: PPP Driver
* FILE: slcompress.c
*
* AUTHOR: <NAME>: May 12, 1995
*
* ROU... | 9,416 |
764 | <filename>erc20/0x0f1Ed66c251BcB52ecF7E67ac64Bb72482048aDB.json
{
"symbol": "SEER",
"address": "0x0f1Ed66c251BcB52ecF7E67ac64Bb72482048aDB",
"overview":{
"en": "SEER is a Public Blockchain Platform For Sports Industry,Based on Graphene Toolkit.SEER USES the market mechanism to let users express their judg... | 722 |
519 | <reponame>dlsimple/rds_dbsync<gh_stars>100-1000
#ifndef PG_MISC_H
#define PG_MISC_H
#include "postgres_fe.h"
#include "lib/stringinfo.h"
#include "lib/stringinfo.h"
#include "common/fe_memutils.h"
#include "libpq-fe.h"
#include "access/transam.h"
#include "libpq/pqformat.h"
#include "pqexpbuffer.h"
#ifdef WIN32
... | 844 |
807 | /*
*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 law ... | 673 |
2,270 | /*
==============================================================================
This file is part of the JUCE library.
Copyright (c) 2020 - Raw Material Software Limited
JUCE is an open source library subject to commercial or open-source
licensing.
By using JUCE, you agree to the terms of... | 640 |
472 | import os
import torch
import logging
import numpy as np
import pickle
from common.speedometer import BatchEndParam
from common.utility.image_processing_cv import trans_coords_from_patch_to_org_3d
from common.utility.image_processing_cv import rescale_pose_from_patch_to_camera
from torch.nn.parallel.scatter_gather im... | 3,539 |
755 | <gh_stars>100-1000
/*
* Copyright (C) 2016 Airbnb, 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 applicab... | 2,627 |
669 | <reponame>vpisarev/onnxruntime
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#pragma once
#include <algorithm>
#include <functional>
#include <vector>
#include <cmath>
#include "core/common/common.h"
#include "core/common/path.h"
#include "core/framework/allocator.h"... | 795 |
852 | #ifndef L1Trigger_TrackFindingTMTT_L1track3D_h
#define L1Trigger_TrackFindingTMTT_L1track3D_h
#include "DataFormats/Math/interface/deltaPhi.h"
#include "L1Trigger/TrackFindingTMTT/interface/L1trackBase.h"
#include "L1Trigger/TrackFindingTMTT/interface/Settings.h"
#include "L1Trigger/TrackFindingTMTT/interface/Utility.... | 4,934 |
488 | <reponame>chauffer/BulletSharpUnity3d
#include "main.h"
extern "C"
{
EXPORT bool btCharacterControllerInterface_canJump(btCharacterControllerInterface* obj);
EXPORT void btCharacterControllerInterface_jump(btCharacterControllerInterface* obj);
EXPORT bool btCharacterControllerInterface_onGround(btCharacterControlle... | 329 |
1,826 | <gh_stars>1000+
package com.vladsch.flexmark.ext.jekyll.tag;
import com.vladsch.flexmark.util.ast.Block;
import com.vladsch.flexmark.util.ast.BlockContent;
import com.vladsch.flexmark.util.ast.Node;
import com.vladsch.flexmark.util.sequence.BasedSequence;
import org.jetbrains.annotations.NotNull;
import java.util.Lis... | 464 |
1,768 | // Copyright (c) 2003 Compaq Corporation. All rights reserved.
// Portions Copyright (c) 2003 Microsoft Corporation. All rights reserved.
// Last modified on Mon 30 Apr 2007 at 13:26:26 PST by lamport
// modified on Thu Nov 29 21:53:11 PST 2001 by yuanyu
package tlc2.util;
/** A <code>BitVector</code> is an ord... | 3,386 |
15,577 | <reponame>Vxider/ClickHouse
#include <Storages/MergeTree/MergeTreeReaderInMemory.h>
#include <Storages/MergeTree/MergeTreeDataPartInMemory.h>
#include <DataTypes/DataTypeArray.h>
#include <DataTypes/NestedUtils.h>
#include <Columns/ColumnArray.h>
namespace DB
{
namespace ErrorCodes
{
extern const int CANNOT_READ_... | 1,801 |
903 | <gh_stars>100-1000
"""
test_etl_job.py
~~~~~~~~~~~~~~~
This module contains unit tests for the transformation steps of the ETL
job defined in etl_job.py. It makes use of a local version of PySpark
that is bundled with the PySpark package.
"""
import unittest
import json
from pyspark.sql.functions import mean
from d... | 1,035 |
2,195 | """
Implements 'propagation', whereby terms from the full ConceptNet graph are
assigned vectors from the embeddings produced by retrofitting against the
reduced graph.
"""
import numpy as np
import pandas as pd
from scipy.sparse import diags
from conceptnet5.builders.reduce_assoc import ConceptNetAssociationGraph
fro... | 3,114 |
1,858 | /*
* Tencent is pleased to support the open source community by making TENCENT SOTER available.
* Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved.
* Licensed under the BSD 3-Clause License (the "License"); you may not use this file except in compliance with the License. You may obtain a co... | 940 |
451 | <reponame>kikislater/micmac
#include "StdAfx.h"
#include "TracePack.h"
using namespace std;
typedef struct
{
string name;
int (*func)( int, char ** );
} command_t;
int snapshot_func( int, char ** );
int list_func( int, char ** );
int getfile_func( int, char ** );
int setstate_func( int, char ** );
int pack_fr... | 16,052 |
834 | <filename>snippets/cpp/VS_Snippets_Winforms/Classic DataGridCell.DataGridCell Example/CPP/source.cpp
#using <System.dll>
#using <System.Windows.Forms.dll>
#using <System.Drawing.dll>
#using <System.Data.dll>
using namespace System;
using namespace System::Data;
using namespace System::Drawing;
using namespace System::... | 245 |
1,884 | package com.github.sarxos.webcam.ds.raspberrypi;
import java.util.Map;
import com.github.sarxos.webcam.WebcamDevice;
/**
* ClassName: RaspiyuvDriver <br/>
* Runs camera for specific time, and take uncompressed YUV/RGB capture at end
* if requested. date: Jan 31, 2019 10:57:58 AM <br/>
* java wrapper for raspiyuv... | 359 |
4,303 | <reponame>OAID/Halide
package com.example.helloandroidcamera2;
import android.util.Log;
/**
* Java wrappers for fast filters implemented in Halide.
*/
public class HalideFilters {
// Load native Halide shared library.
static {
System.loadLibrary("HelloAndroidCamera2");
}
/**
* Copy on... | 486 |
1,442 | <reponame>VersiraSec/epsilon-cfw
#ifndef SEQUENCE_VALUES_CONTROLLER_H
#define SEQUENCE_VALUES_CONTROLLER_H
#include "../../shared/sequence_store.h"
#include "../../shared/sequence_title_cell.h"
#include "../../shared/values_controller.h"
#include "interval_parameter_controller.h"
namespace Sequence {
class ValuesCon... | 1,318 |
506 | <reponame>sykeotic/GASShooter
// Copyright 2020 <NAME>.
#pragma once
#include "CoreMinimal.h"
#include "AttributeSet.h"
#include "AbilitySystemComponent.h"
#include "GSAttributeSetBase.generated.h"
// Uses macros from AttributeSet.h
#define ATTRIBUTE_ACCESSORS(ClassName, PropertyName) \
GAMEPLAYATTRIBUTE_PROPERTY_G... | 2,505 |
852 | <filename>CalibTracker/SiPixelESProducers/src/SiPixelGainCalibrationOfflineSimService.cc
/*
* =====================================================================================
*
* Filename: SiPixelGainCalibrationOfflineSimService.cc
*
* Description:
*
* Version: 1.0 (some functionality mo... | 1,300 |
428 | <filename>Java/Loon-Neo/src/loon/action/collision/CollisionHelper.java
/**
* Copyright 2008 - 2015 The Loon Game Engine 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
*
* ht... | 11,112 |
1,382 | /* PipeWire
*
* Copyright © 2020 <NAME>
* Copyright © 2021 <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 r... | 788 |
1,537 | <gh_stars>1000+
c.NotebookApp.ip = '0.0.0.0'
c.NotebookApp.notebook_dir = '/home/root/notebooks'
c.NotebookApp.password = '<PASSWORD>:<PASSWORD>'
c.NotebookApp.port = 9090
c.NotebookApp.iopub_data_rate_limit = 100000000
| 96 |
312 | /*
* Copyright 2016-2021 The jetcd 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... | 477 |
3,402 | {
"uuid" : "cd92588f-b987-4a12-c90f-e32c44346c64",
"version" : "2.1",
"name" : "twenty_dim",
"description" : "",
"lookups" : [ ],
"dimensions" : [ {
"table" : "DEFAULT.FIFTY_DIM",
"columns" : [ "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T"]
}],
... | 380 |
672 | <reponame>snowp/spectator
/*
* Copyright 2014-2019 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 require... | 1,270 |
584 | /*
Copyright 2013 Adobe
Distributed under 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 STLAB_ITERATOR_SET_NEXT_H... | 467 |
324 | @interface NSString (NSStringAdditions)
- (NSString*) URLEncodedString;
- (NSString*) URLDecodedString;
- (NSString*) md5;
@end
| 48 |
1,609 | <filename>src/main/java/org/springframework/session/Session.java<gh_stars>1000+
/*
* Copyright 2002-2015 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
... | 646 |
606 | /*
# _____ ___ ____ ___ ____
# ____| | ____| | | |____|
# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
#-----------------------------------------------------------------------
# Copyright 2005, ps2dev - http://www.ps2dev.org
# Licenced under GNU Library General Public Li... | 321 |
7,482 | <reponame>Davidfind/rt-thread<filename>bsp/imx6sx/iMX6_Platform_SDK/sdk/include/mx6sl/registers/regsssi.h
/*
* Copyright (c) 2012, Freescale Semiconductor, Inc.
* All rights reserved.
*
* THIS SOFTWARE IS PROVIDED BY FREESCALE "AS IS" AND ANY EXPRESS OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPL... | 79,626 |
5,714 | # Copyright (C) 2016-present the asyncpg authors and contributors
# <see AUTHORS file>
#
# This module is part of asyncpg and is released under
# the Apache 2.0 License: http://www.apache.org/licenses/LICENSE-2.0
"""Tests how asyncpg behaves in non-ideal conditions."""
import asyncio
import os
import platform
import ... | 1,116 |
10,182 | /*
* dex2jar - Tools to work with android .dex and java .class files
* Copyright (c) 2009-2013 Panxiaobo
*
* 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... | 5,427 |
12,004 | import asyncio
import pulumi
output = pulumi.Output.from_input(asyncio.sleep(1, "magic string"))
output.apply(print)
| 40 |
1,016 | <reponame>LiuStart/Musicoco
package com.duan.musicoco.detail.sheet;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.StaggeredGridLayoutManager;
import android.support.v7.widget.helper.ItemTouchHelper;
/**
* Created by DuanJiaNing on... | 1,282 |
889 | <reponame>limberc/HyperGAN
#From https://gist.github.com/EndingCredits/b5f35e84df10d46cfa716178d9c862a3
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from hypergan.gan_component import GANComponent
import hyperchamber as hc
import inspect
class BaseTrainH... | 424 |
713 | <reponame>cszn/USRNet
import argparse
import os
import requests
import re
"""
How to use:
download USRNet models:
python main_download_pretrained_models.py --models "USRNet" --model_dir "model_zoo"
"""
def download_pretrained_model(model_dir='model_zoo', model_name='dncnn3.pth'):
if os.path.exists(os.path... | 3,090 |
4,036 | struct Point2 {
int x;
int y;
};
struct Point3 : Point2 {
int z;
};
void f() {
Point2 p2;
Point3 p3;
p2 = p3;
}
void g() {
Point2* p2 = 0;
Point3* p3 = 0;
p2 = p3;
}
| 99 |
3,102 | template <typename T> struct A {
};
template <> struct A<int> {
struct B {
int f;
};
};
template <> struct A<bool> {
struct B {
int g;
};
};
template <typename T> constexpr int f() { return 0; }
template <> constexpr int f<int>() { return 4; }
| 105 |
4,054 | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.testrunner.legacy;
import java.util.Collection;
import java.util.logging.LogRecord;
/**
* @author mortent
*/
public interface LegacyTestRunner {
Collection<LogRecord> getLog(long aft... | 189 |
2,693 | <reponame>Chillee/benchmark
import inspect
import os
import sys
def _colored_string(string: str, color: str or int) -> str:
"""在终端中显示一串有颜色的文字
:param string: 在终端中显示的文字
:param color: 文字的颜色
:return:
"""
if isinstance(color, str):
color = {
"black": 30, "Black": 30, "BLACK": 30... | 3,559 |
581 | <reponame>ninniuz/sentry-java<gh_stars>100-1000
package io.sentry;
import java.lang.reflect.InvocationTargetException;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.NotNull;
@ApiStatus.Internal
public final class OptionsContainer<T> {
public @NotNull static <T> OptionsContainer<T> cr... | 256 |
2,671 | import _sk_fail; _sk_fail._("_MozillaCookieJar")
| 21 |
631 | <filename>activeweb/src/test/java/app/controllers/Ignore234Controller.java
package app.controllers;
import org.javalite.activeweb.AppController;
/**
* Created by igor on 4/29/14.
*/
public class Ignore234Controller extends AppController {
public void show(){
respond("ok");
}
}
| 101 |
317 | <reponame>heralex/OTB<filename>Modules/Filtering/Statistics/src/otbPatternSampler.cxx
/*
* Copyright (C) 2005-2020 Centre National d'Etudes Spatiales (CNES)
*
* This file is part of Orfeo Toolbox
*
* https://www.orfeo-toolbox.org/
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may... | 2,504 |
3,301 | package com.alibaba.alink.params.shared.iter;
import org.apache.flink.ml.api.misc.param.ParamInfo;
import org.apache.flink.ml.api.misc.param.ParamInfoFactory;
import org.apache.flink.ml.api.misc.param.WithParams;
public interface HasMaxIterDefaultAs10<T> extends WithParams <T> {
ParamInfo <Integer> MAX_ITER = Param... | 236 |
1,411 | #pragma once
#include <array>
#include <fc/crypto/bigint.hpp>
#include <fc/crypto/common.hpp>
#include <fc/crypto/openssl.hpp>
#include <fc/crypto/sha256.hpp>
#include <fc/crypto/sha512.hpp>
#include <fc/fwd.hpp>
#include <fc/io/raw_fwd.hpp>
namespace fc {
namespace ecc {
namespace detail {
class public_key_impl;
cla... | 4,032 |
2,285 | <gh_stars>1000+
import os
from samcli.lib.sync.flows.function_sync_flow import wait_for_function_update_complete
from samcli.lib.sync.sync_flow import ApiCallTypes
from unittest import TestCase
from unittest.mock import MagicMock, mock_open, patch
from samcli.lib.sync.flows.zip_function_sync_flow import ZipFunctionSy... | 4,519 |
809 | /**
* @file
* @brief Implementation of #memchr() function.
*
* @date 10.11.11
* @author <NAME>
*/
#include <string.h>
void *memchr(const void *s, int c, size_t n) {
const unsigned char *src = (const unsigned char *) s;
unsigned char d = c;
while (n--) {
if (*src == d)
return (void *) src;
src++;
}
... | 136 |
1,079 | // Copyright 2004-present Facebook. All Rights Reserved.
package com.facebook.react.uimanager.layoutanimation;
import javax.annotation.Nullable;
import javax.annotation.concurrent.NotThreadSafe;
import android.view.View;
import android.view.animation.Animation;
import com.facebook.react.bridge.ReadableMap;
import c... | 1,048 |
1,027 | <filename>brave/utility/importer/brave_profile_import_impl.h
// Copyright (c) 2017 The Brave 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 BRAVE_UTILITY_IMPORTER_BRAVE_PROFILE_IMPORT_IMPL_H_
#define BRAVE_UTILITY_IMPORTER_B... | 371 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.