max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
1,338 | // MessageRunnerTestHelpers.h
#ifndef MESSAGE_RUNNER_TEST_HELPERS_H
#define MESSAGE_RUNNER_TEST_HELPERS_H
#include <Application.h>
#include <List.h>
enum {
MSG_RUNNER_MESSAGE = 'rmsg',
MSG_REPLY = 'rply',
};
// MessageRunnerTestHandler
class MessageRunnerTestHandler : public BHandler {
public:
MessageRunnerTes... | 570 |
5,937 | // 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.
/*++
Module Name:
slistutil.cpp
Abstract:
utilities for manipulating SLists
Environment:
User mod... | 309 |
7,407 | <gh_stars>1000+
# Copyright 2018 Google Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distr... | 1,098 |
475 | package org.micro.neural.idempotent;
import lombok.*;
import org.micro.neural.config.GlobalConfig;
import org.micro.neural.config.RuleConfig;
/**
* The Idempotent Config.
*
* @author lry
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public class I... | 199 |
346 | bool_one = False and False
print bool_one
bool_two = -(-(-(-2))) == -2 and 4 >= 16**0.5
bool_three = 19 % 4 != 300 / 10 / 10 and False
bool_four = -(1**2) < 2**0 and 10 % 10 <= 20 - 10 * 2
bool_five = True and True
| 89 |
1,091 | /*
* Copyright 2018-present Open Networking Foundation
*
* 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 appli... | 449 |
464 | from gym.envs.registration import register
register(id='MiniGrid-AKTDT-7x7-1-v0', entry_point='dizoo.minigrid.envs:AppleKeyToDoorTreasure_7x7_1')
register(id='MiniGrid-AKTDT-v0', entry_point='dizoo.minigrid.envs:AppleKeyToDoorTreasure')
register(id='MiniGrid-AKTDT-13x13-v0', entry_point='dizoo.minigrid.envs:AppleKey... | 296 |
679 | <filename>main/dbaccess/source/ui/dlg/DBSetupConnectionPages.hxx<gh_stars>100-1000
/**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additiona... | 4,727 |
309 | """
Define the recurrent entity network model.
"""
from __future__ import absolute_import
from __future__ import print_function
from __future__ import division
from functools import partial
import tensorflow as tf
from entity_networks.dynamic_memory_cell import DynamicMemoryCell
from entity_networks.model_ops import... | 3,372 |
3,102 | <filename>tools/clang/test/SemaCXX/attr-unused.cpp<gh_stars>1000+
// RUN: %clang_cc1 -verify -Wunused -Wused-but-marked-unused -fsyntax-only %s
namespace ns_unused { typedef int Int_unused __attribute__((unused)); }
namespace ns_not_unused { typedef int Int_not_unused; }
void f() {
ns_not_unused::Int_not_unused i1;... | 176 |
373 | <gh_stars>100-1000
# -*- coding: utf-8 -*-
'''
Created on 2015年9月2日
@author: hustcc
'''
from __future__ import absolute_import
from app.wraps import singleton_wrap
from app.wraps import wrapcache
import time
import redis
# 每秒中刷新一次
@wrapcache.wrapcache(timeout=10)
def new_request(host, port, password, charset='utf8')... | 988 |
456 | //===-- ClangForward.h ------------------------------------------*- C++ -*-===//
//
// 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
//
//===---------------------------... | 904 |
332 | <gh_stars>100-1000
// Copyright (c) Jython Developers
package org.python.core.stringlib;
import java.math.BigInteger;
import org.python.core.Py;
import org.python.core.PyInteger;
import org.python.core.PyLong;
import org.python.core.PyObject;
import org.python.core.PyBytes;
import org.python.core.PySystemState;
impor... | 12,145 |
1,473 | <gh_stars>1000+
/*
* Autopsy Forensic Browser
*
* Copyright 2019 Basis Technology Corp.
* Contact: carrier <at> sleuthkit <dot> org
*
* 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
*
... | 876 |
777 | // Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_GL_GL_ANGLE_UTIL_WIN_H_
#define UI_GL_GL_ANGLE_UTIL_WIN_H_
#include <d3d11.h>
#include <d3d9.h>
#include "base/win/scoped_comptr.h"
#include ... | 237 |
443 | <filename>augur/cli/util.py
#SPDX-License-Identifier: MIT
"""
Miscellaneous Augur library commands for controlling the backend components
"""
import os
import signal
import logging
from subprocess import call, run
import psutil
import click
import pandas as pd
import sqlalchemy as s
from augur.cli import initialize_... | 854 |
372 | <reponame>kbore/pbis-open
/* -*- mode: c++; -*-
*-----------------------------------------------------------------------------
* $RCSfile: QueueManagerWinService.h,v $
*
* See Copyright for the status of this software.
*
* The OpenSOAP Project
* http://opensoap.jp/
*-------------------------------------... | 217 |
4,345 | <gh_stars>1000+
//
// PrivateMessages.h
// Coding_iOS
//
// Created by <NAME> on 14-8-29.
// Copyright (c) 2014年 Coding. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "PrivateMessage.h"
@interface PrivateMessages : NSObject
@property (readwrite, nonatomic, strong) NSNumber *page, *pageSize, *t... | 409 |
3,287 | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | 243 |
2,308 | /**
* Copyright 2016 vip.com.
* <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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 350 |
823 | <filename>problem-violations/src/test/java/org/zalando/problem/violations/ConstraintViolationProblemTest.java
package org.zalando.problem.violations;
import org.junit.jupiter.api.Test;
import org.zalando.problem.Problem;
import java.util.ArrayList;
import java.util.List;
import static org.hamcrest.MatcherAssert.asse... | 470 |
1,284 | <reponame>huiseliming/MetadataCpp
// Copyright (C) 2017-2019 <NAME> <<EMAIL>>
// This file is subject to the license terms in the LICENSE file
// found in the top-level directory of this distribution.
#ifndef CPPAST_CPP_ENTITY_REF_HPP_INCLUDED
#define CPPAST_CPP_ENTITY_REF_HPP_INCLUDED
#include <vector>
#include <ty... | 1,838 |
413 | <filename>force-app/main/default/lwc/geGiftEntryFormApp/__tests__/data/getPicklistValuesMajorGift.json
{
"controllerValues": {},
"defaultValue": null,
"url": "/services/data/v52.0/ui-api/object-info/Opportunity/picklist-values/01211000003GQANAA4/Type",
"values": [
{
"attributes": null,
"label": ... | 234 |
343 | <filename>syzygy/bard/events/heap_size_event.cc
// 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 at
//
// http://www.apache.org/licenses... | 1,628 |
4,054 | <gh_stars>1000+
/*
* Copyright LWJGL. All rights reserved.
* License terms: https://www.lwjgl.org/license
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.egl;
import java.nio.*;
import org.lwjgl.system.*;
import static org.lwjgl.system.Checks.*;
import static org.lwjgl.system.JNI.*;
import static org.... | 1,499 |
370 | <reponame>daiwei89/wdai_petuum_public
// Author: Jinliang
#pragma once
#include <stdint.h>
#include <petuum_ps_common/oplog/abstract_append_only_buffer.hpp>
namespace petuum {
/*
* This is the append-only buffer type that's specially optimized for BATCH_INC
* operations. The buffer memory is organized as a list of... | 455 |
4,304 | <gh_stars>1000+
#ifndef REIFY_H
#define REIFY_H
#include <platform.h>
#include "../ast/ast.h"
#include "../pass/pass.h"
PONY_EXTERN_C_BEGIN
typedef struct deferred_reification_t
{
ast_t* ast;
ast_t* type_typeparams;
ast_t* type_typeargs;
ast_t* method_typeparams;
ast_t* method_typeargs;
ast_t* thistype;
... | 575 |
2,338 | <reponame>jhh67/chapel
//===-- COFFDump.h ----------------------------------------------*- C++ -*-===//
//
// 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
//
//===----... | 429 |
1,336 | /*
* 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 ... | 473 |
647 | import torch.nn as nn
import torch.nn.functional as F
import torchvision
import torchvision.transforms as transforms
import numpy as np
import matplotlib.pyplot as plt
import torch
import torch.optim as optim
import torch.utils.data as data_utils
from torch.autograd import Variable
from torchvision import models, data... | 560 |
7,892 | /*!********************************************************************
Audacity: A Digital Audio Editor
@name JournalWindowPaths.h
@brief utilities to identify corresponding windows between recording
and playback runs
<NAME>
**********************************************************************/
#ifnde... | 218 |
739 | #!/usr/bin/env python
""" Use this to help speed up manual conversion of e.g. GWT Java to e.g.
Pyjamas python
TODO: in java2pythonlinebyline and redofunctions, identify a list
of variables and functions, and do replace "variable" with "self.variable"
"""
import sys
import string
def import_gwt_to_pyjamas... | 4,170 |
394 | /*
* Copyright (c) 2016, WSO2 Inc. (http://wso2.com) 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 re... | 1,791 |
4,335 | <filename>arch/arm/cortex_a_r/src/task.c
/* ----------------------------------------------------------------------------
* Copyright (c) Huawei Technologies Co., Ltd. 2013-2020. All rights reserved.
* Description: Aarch32 Hw Task Implementation
* Author: <NAME>
* Create: 2013-01-01
* Redistribution and use in sour... | 1,523 |
3,102 |
#ifndef NO_RECORD_1
struct ReceivesPragma { };
#endif
#ifdef SET_FIRST_HEADER
#pragma pack (16)
#ifndef SET_SECOND_HEADER
// expected-note@-2 2 {{previous '#pragma pack' directive that modifies alignment is here}}
#else
// expected-note@-4 1 {{previous '#pragma pack' directive that modifies alignment is here}}
#endif... | 259 |
375 | <filename>core/core/src/main/java/io/lumify/core/model/lock/Lock.java
package io.lumify.core.model.lock;
import org.apache.curator.framework.recipes.locks.InterProcessLock;
import io.lumify.core.exception.LumifyException;
import io.lumify.core.util.LumifyLogger;
import io.lumify.core.util.LumifyLoggerFactory;
import ... | 592 |
606 | <reponame>AKuHAK/ps2sdk<gh_stars>100-1000
#include <stdlib.h>
#include <kernel.h>
#include <osd_config.h>
#include <rom0_info.h>
#include <gs_privileged.h>
#include <graph.h>
#include <graph_config.h>
/* y offset is non-interlaced */
GRAPH_MODE graph_mode[22] =
{
{ 0, 0, 0, 0, 0 }, // AUTO
{ 652, 26... | 5,042 |
841 | package org.jboss.resteasy.test.providers.jaxb.resource;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlRootElement;
@XmlRootElement
@XmlAccessorType(XmlAccessType.PROPERTY)
public class InheritanceDog extends InheritanceAnim... | 154 |
2,453 | //
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 30 2020 21:18:12).
//
// Copyright (C) 1997-2019 <NAME>.
//
@class NSError, NSSet;
@protocol IDEAccountDetailsRefresherDelegate
- (void)refresherDidFail:(NSError *)arg1;
- (void)refresherDidFinishWithTeamDescriptions:(NSSet *)arg1;
@end
| 124 |
647 | <reponame>gilbertguoze/trick<filename>include/trick/compat/sim_services/DataTypes/include/NumericValue.hh
#include "trick/NumericValue.hh"
| 52 |
1,033 | <gh_stars>1000+
package graphql.kickstart.autoconfigure.editor.playground;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
import org.springframework.boot.test.context.SpringBootTest;
import org.s... | 371 |
1,570 | /*===- TableGen'erated file -------------------------------------*- C++ -*-===*\
|* *|
|* Intrinsic Function Source Fragment *|
|* ... | 720 |
7,137 | package io.onedev.server.buildspec.job;
import java.io.Serializable;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import org.hibernate.validator.constraints.NotEmpty;
import io.onedev.commons.codeassist.InputSuggestion;
import io.onedev.k8shelper.KubernetesHelper;
import io... | 763 |
5,964 | <filename>third_party/WebKit/Source/core/animation/NumberSVGInterpolation.h
// 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.
#ifndef NumberSVGInterpolation_h
#define NumberSVGInterpolation_h
#include "c... | 755 |
1,172 | <filename>src/com/google/caja/parser/js/Identifier.java
// Copyright (C) 2007 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... | 1,957 |
329 | import pytest
import python_jsonschema_objects as pjo
@pytest.fixture
def test_instance():
schema = {
"title": "Example",
"properties": {
"stringProp": {"type": "string"},
"arrayProp": {"type": "array", "items": {"type": "string"}},
},
}
builder = pjo.Obje... | 590 |
26,932 | /* Copyright (c) 2007, Determina Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list... | 5,692 |
12,824 | package a;
public class B extends A { }
| 13 |
435 | {
"copyright_text": null,
"description": "Asyncio is a different way to think about how you program. In this talk we will talk about using asyncio to consume data from a bitcoin exchange offering a websocket endpoint.",
"duration": 2236,
"language": "eng",
"recorded": "2018-05-26",
"related_urls": [
{
... | 366 |
715 | <gh_stars>100-1000
#
# Copyright 2021 The FATE 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
#
# Unles... | 690 |
1,127 | // Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include <openvino/runtime/core.hpp>
#include <fstream>
#include "common_utils.h"
#include "reshape_utils.h"
#include "timetests_helper/timer.h"
#include "timetests_helper/utils.h"
/**
* @brief Function that contain executable p... | 2,316 |
432 | <filename>ballcat-extends/ballcat-extend-redis-module/src/main/java/com/hccake/extend/redis/moudle/bloom/BloomRedisModuleHelper.java
package com.hccake.extend.redis.moudle.bloom;
import com.hccake.extend.redis.moudle.AbstractRedisModuleHelper;
import io.lettuce.core.output.ArrayOutput;
import io.lettuce.core.output.Bo... | 2,475 |
404 | <reponame>techkey/PTVS
from threading import *
class MyThread(Thread):
def run(self):
print('hi')
x = True
while x:
pass
MyThread().start() | 67 |
6,497 | package com.sohu.cache.entity;
import lombok.Data;
import java.io.Serializable;
/**
* 应用和用户的对应关系
*
* @author leifu
*/
@Data
public class AppToUser implements Serializable {
private static final long serialVersionUID = 1326072190198022633L;
/**
* 自增id
*/
private Long id;... | 329 |
5,447 | <filename>docs/tutorials/action_recognition/demo_custom.py<gh_stars>1000+
"""9. Inference on your own videos using pre-trained models
===========================================================
In this tutorial, we provide a script for you to make human activity predictions on your own videos.
The only thing you need ... | 1,253 |
2,360 | <reponame>LiamBindle/spack
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
import subprocess
import sys
from spack import *
class NodeJs(Package):
"""Node.js is a ... | 3,088 |
370 | // =============================================================================
// === GPUQREngine/Include/GPUQREngine_FrontState.hpp ==========================
// =============================================================================
//
// The front state refers to the finite state machine model for factorizin... | 404 |
310 | <reponame>orekyuu/doma
package org.seasar.doma.jdbc.criteria.statement;
import java.util.Objects;
import java.util.function.Consumer;
import org.seasar.doma.jdbc.Config;
import org.seasar.doma.jdbc.PreparedSql;
import org.seasar.doma.jdbc.command.Command;
import org.seasar.doma.jdbc.command.UpdateCommand;
import org.s... | 865 |
1,338 | <reponame>Kirishikesan/haiku
/*
* Copyright 2003-2004 <NAME>. All rights reserved.
* Copyright 2017 Haiku, Inc. All rights reserved.
* Distributed under the terms of the MIT License.
*/
//-----------------------------------------------------------------------
// GeneralAddon saves the loaded settings.
// GeneralVi... | 1,151 |
457 | <reponame>kevinvandervlist/rewrite
/*
* Copyright 2020 the original author or authors.
* <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>
* https://www.apache.org/licenses/LICEN... | 5,873 |
629 | #include <unistd.h>
#include <stdlib.h>
#include <sys/wait.h>
#include <sys/types.h>
#include "streaming.h"
// Struct to hold the callback info
struct callback_info {
FILE *f;
void *data;
stream_callback cb;
};
/**
* Local callback that invokes the user specified callback with the pip
*/
static int stre... | 944 |
1,306 | <filename>lib/create-opengl-window.h<gh_stars>1000+
////////////////////////////////////////////////////////////////////////////////////
// The MIT License (MIT)
//
// Copyright (c) 2021 <NAME>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated docume... | 4,648 |
1,247 | // Copyright 2016-2020 Carnegie Mellon University. See LICENSE file for terms.
// Author: <NAME>
#include "prologimpl.hpp"
#include <cassert>
#include <sstream>
namespace pharos {
namespace prolog {
std::string FileNotFound::build_msg(const std::string & filename)
{
std::ostringstream os;
os << "Unable to loa... | 1,908 |
879 | <filename>plugin/loadBalancer/src/main/java/org/zstack/network/service/lb/APIAddServerGroupToLoadBalancerListenerMsg.java
package org.zstack.network.service.lb;
import org.springframework.http.HttpMethod;
import org.zstack.header.identity.Action;
import org.zstack.header.message.APIEvent;
import org.zstack.header.mess... | 860 |
945 | <gh_stars>100-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
... | 829 |
1,273 | package org.broadinstitute.hellbender.tools.spark.sv.discovery.alignment;
/**
* For symbolizing the change of strand from one alignment to the next
* of an assembly contig.
*/
public enum StrandSwitch {
NO_SWITCH, FORWARD_TO_REVERSE, REVERSE_TO_FORWARD;
}
| 88 |
380 | <reponame>hls-fpga-machine-learning/hls4ml
import pytest
import hls4ml
import tensorflow as tf
import numpy as np
from pathlib import Path
from tensorflow.keras import optimizers
from tensorflow.keras.layers import Input, Dense, Activation, Conv1D, Conv2D, \
Reshape, ELU, LeakyReLU, ... | 8,941 |
552 | <reponame>asheraryam/ETEngine
#pragma once
namespace et {
//=========
// Pointer
//=========
// static functionality
////////////////////////
//--------------------
// Ptr::CreateFromRaw
//
template <typename TDataType>
Ptr<TDataType> Ptr<TDataType>::CreateFromRaw(TDataType* const raw)
{
Ptr ret;
ret.m_Ptr = r... | 2,712 |
3,348 | import logging
from torch.optim.lr_scheduler import MultiStepLR, ExponentialLR, CosineAnnealingLR
from ptsemseg.schedulers.schedulers import WarmUpLR, ConstantLR, PolynomialLR
logger = logging.getLogger("ptsemseg")
key2scheduler = {
"constant_lr": ConstantLR,
"poly_lr": PolynomialLR,
"multi_step": Multi... | 677 |
428 | /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* JOrbis
* Copyright (C) 2000 ymnk, JCraft,Inc.
*
* Written by: 2000 ymnk<<EMAIL>>
*
* Many thanks to
* Monty <<EMAIL>> and
* The XIPHOPHORUS Company http://www.xiph.org/ .
* JOrbis has been based on their awesome works, Vorbis codec.
*... | 1,884 |
5,169 | <filename>Specs/a/d/d/SS-iOS-Toolbox/1.0/SS-iOS-Toolbox.podspec.json
{
"name": "SS-iOS-Toolbox",
"version": "1.0",
"summary": "Useful Toolbox for upcoming projects",
"description": "* Toolbox including:\n*\n* CoreDataManager\n* FileHelper\n* NetworkingMain\n* AlertController\n* CurrentViewControllerHelper",
"... | 300 |
892 | <filename>advisories/unreviewed/2022/05/GHSA-64j6-qhj9-rrxj/GHSA-64j6-qhj9-rrxj.json<gh_stars>100-1000
{
"schema_version": "1.2.0",
"id": "GHSA-64j6-qhj9-rrxj",
"modified": "2022-05-01T01:46:59Z",
"published": "2022-05-01T01:46:59Z",
"aliases": [
"CVE-2005-0078"
],
"details": "The KDE screen saver in ... | 575 |
1,602 | <gh_stars>1000+
/*
* Copyright 2021 Hewlett Packard Enterprise Development LP
* Other additional copyright holders may be indicated within.
*
* The entirety of this work is licensed under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
*
* Yo... | 502 |
777 | <reponame>google-ar/chromium<filename>third_party/WebKit/Source/core/editing/EditingStrategy.h
// 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.
#ifndef EditingStrategy_h
#define EditingStrategy_h
#inclu... | 494 |
622 | <reponame>galek/Compressonator
//=====================================================================
// Copyright 2016 (c), Advanced Micro Devices, Inc. All rights reserved.
//=====================================================================
#include "acoglwidget.h"
#include <math.h>
#include "qopengltexture.h"
... | 2,680 |
780 | #include "test.h"
void foo() { } | 13 |
334 | /*
* This file is part of Sponge, licensed under the MIT License (MIT).
*
* Copyright (c) SpongePowered <https://www.spongepowered.org>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Softwar... | 3,742 |
304 | import pook
import requests
def on_match(request, mock):
print('On match:', request, mock)
# Enable mock engine
pook.on()
pook.get('httpbin.org/ip',
reply=403, response_type='json',
response_headers={'pepe': 'lopez'},
response_json={'error': 'not found'},
callback=on_match)
... | 234 |
2,199 | <filename>bt-core/src/main/java/bt/metainfo/MetadataService.java
/*
* Copyright (c) 2016—2021 <NAME> and individual contributors.
*
* 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
*
* ... | 4,646 |
3,268 | <reponame>gjy5885/azure-sdk-for-net
{
"Entries": [
{
"RequestUri": "https://sb-jolovservicebus.servicebus.windows.net/$namespaceinfo?api-version=2021-05\u0026enrich=False",
"RequestMethod": "GET",
"RequestHeaders": {
"Authorization": "Sanitized",
"traceparent": "00-7c2433ac311404... | 1,149 |
432 | <gh_stars>100-1000
/* $FreeBSD$ */
/*-
* Copyright (c) 2016 <NAME>. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* ... | 2,962 |
644 | <reponame>jerlomy4ever/568_final_project
/*
pbrt source code Copyright(c) 1998-2010 <NAME> and <NAME>.
This file is part of pbrt.
pbrt 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... | 6,446 |
1,000 | # Copyright 2011-2015 ZackZK
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, so... | 1,591 |
2,377 | <gh_stars>1000+
/*
** Copyright 2014, The Android Open Source Project
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless req... | 4,445 |
23,439 | /*
* Copyright 1999-2018 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... | 2,716 |
408 | <reponame>Xovis/azure-service-operator
{
"$comment": "Here we check that if there are other fields present and 'additionalProperties' is not explicitly set then nothing additional is generated (this is against spec but see 'additionalProperties' comments in jsonast)",
"id": "https://test.test/schemas/2020-01-0... | 290 |
854 | __________________________________________________________________________________________________
sample 176 ms submission
class Solution:
def maximalRectangle(self, matrix: List[List[str]]) -> int:
# 这道题也要重点看
if not matrix or not matrix[0]:
return 0
nums = [int(''.join(row), ba... | 796 |
3,200 | /**
* Copyright 2021 Huawei Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... | 877 |
515 | <reponame>kraehlit/CTK
/*=========================================================================
Library: CTK
Copyright (c) Kitware 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 ... | 324 |
934 | <reponame>kmmao/frpMgr
/**
* Copyright (c) 2013-Now http://jeesite.com All rights reserved.
*/
package com.jeesite.modules.frp.service;
import java.util.List;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.jeesite.common.entity.Page;
impor... | 649 |
638 | #ifdef ALC_EXT_thread_local_context
ALC_IMPORT(alcSetThreadContext, PFNALCSETTHREADCONTEXTPROC);
ALC_IMPORT(alcGetThreadContext, PFNALCGETTHREADCONTEXTPROC);
#endif
#ifdef ALC_SOFT_loopback
ALC_IMPORT(alcLoopbackOpenDeviceSOFT, LPALCLOOPBACKOPENDEVICESOFT);
ALC_IMPORT(alcIsRenderFormatSupportedSOFT, LPALCISRENDERFORMA... | 302 |
1,508 | package org.knowm.xchange.kraken;
import org.knowm.xchange.currency.Currency;
import org.knowm.xchange.currency.CurrencyPair;
import org.knowm.xchange.dto.trade.LimitOrder;
import org.knowm.xchange.dto.trade.OpenOrders;
import org.knowm.xchange.exceptions.ExchangeException;
import org.knowm.xchange.kraken.dto.marketda... | 2,317 |
1,208 | //
// TLConversationViewController.h
// TLChat
//
// Created by 李伯坤 on 16/1/23.
// Copyright © 2016年 李伯坤. All rights reserved.
//
#import "TLViewController.h"
@interface TLConversationViewController : TLViewController
@end
| 92 |
318 | <filename>RebornCore/src/main/java/reborncore/mixin/common/MixinPlayerEntity.java<gh_stars>100-1000
/*
* This file is part of RebornCore, licensed under the MIT License (MIT).
*
* Copyright (c) 2021 TeamReborn
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and ... | 916 |
335 | from jmetal.algorithm.singleobjective.genetic_algorithm import GeneticAlgorithm
from jmetal.operator import BinaryTournamentSelection, PolynomialMutation, SBXCrossover
from jmetal.problem.singleobjective.unconstrained import Rastrigin
from jmetal.util.termination_criterion import StoppingByEvaluations
if __name__ == '... | 387 |
387 | <filename>VirtualDesktopAccessor/dllmain.h<gh_stars>100-1000
#pragma once
#include "stdafx.h"
#include "Win10Desktops.h"
#define DllExport __declspec( dllexport )
#define VDA_VirtualDesktopCreated 5
#define VDA_VirtualDesktopDestroyBegin 4
#define VDA_VirtualDesktopDestroyFailed 3
#define VDA_VirtualDesktopDestroye... | 7,821 |
519 | package kale.dbinding.util;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNull;
/**
* @author Kale
* @date 2016/4/12
*/
public class LetterUtilTest {
@Test
public void testGetUpperLetter() throws Exception {
String str;
str = Lett... | 506 |
2,025 | <reponame>hazemataya94/silicon<gh_stars>1000+
#pragma once
#include <type_traits>
#include <iod/sio.hh>
#include <iod/symbol.hh>
#include <iod/sio_utils.hh>
#include <iod/tuple_utils.hh>
#include <iod/callable_traits.hh>
#include <iod/di.hh>
#include <iod/bind_method.hh>
#include <silicon/di_factories.hh>
#include <si... | 3,101 |
658 | /*
* The MIT License
*
* Copyright (c) 2020-2021 JOML.
*
* 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, m... | 1,287 |
561 | /// Copyright 2016 Pinterest 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 t... | 676 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.