max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
303 | <reponame>poalimWeb/webauthndemo
// Copyright 2018 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 ap... | 409 |
373 | <filename>lib/replay_memory.py
from __future__ import print_function, division
import sys
import os
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
import sqlite3
import states
from config import Config
import random
import numpy as np
class ReplayMemory(object):
#instances = dict()
def __ini... | 7,619 |
1,025 | //=====================================================================
// Copyright (c) 2012 Advanced Micro Devices, Inc. All rights reserved.
//
/// \author GPU Developer Tools
/// \file $File: //devtools/main/CodeXL/Components/GpuProfiling/AMDTGpuProfiling/ProfileParam.h $
/// \version $Revision: #5 $
/// \brief : ... | 1,170 |
530 | package org.carlspring.strongbox.storage.repository;
import org.carlspring.strongbox.api.Describable;
/**
* @author mtodorov
*/
public enum RepositoryTypeEnum
implements Describable
{
HOSTED("hosted"),
PROXY("proxy"),
GROUP("group"),
VIRTUAL("virtual"); // Unsupported
private Strin... | 261 |
418 | package krasa.formatter.eclipse;
import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.module.Module;
import com.intellij.openapi.module.ModuleUtil;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.vfs.VirtualFile;
import com.intellij.psi.PsiFile;
import com.intellij.ui.Sor... | 3,743 |
441 | <gh_stars>100-1000
/*
* Original work: Copyright (c) 2014, Oculus VR, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* RakNet License.txt file in the licenses directory of this source tree. An additional grant
* of patent rights can be found in the RakN... | 3,137 |
16,461 | // Copyright 2018-present 650 Industries. All rights reserved.
#import <React/RCTBridgeModule.h>
#import <ExpoModulesCore/EXModuleRegistryProvider.h>
// An "adapter" over module registry, for given RCTBridge and NSString
// is able to provide an array of exported RCTBridgeModules. Override
// it and use in your AppDe... | 301 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-9cxr-7vrj-vpj8",
"modified": "2022-05-01T18:34:55Z",
"published": "2022-05-01T18:34:55Z",
"aliases": [
"CVE-2007-5589"
],
"details": "Multiple cross-site scripting (XSS) vulnerabilities in phpMyAdmin before 2.11.1.2 allow remote attackers to inject arbitrary we... | 1,342 |
3,690 | #define CATCH_CONFIG_MAIN
#include "../Catch/single_include/catch.hpp"
#include "solution.h"
TEST_CASE("Permutation Sequence", "[getPermutation]")
{
Solution s;
REQUIRE( s.getPermutation(3, 5) == "312" );
REQUIRE( s.getPermutation(8, 31492) == "72641583" );
}
| 118 |
8,805 | <filename>ios/Pods/boost-for-react-native/boost/fusion/adapted/struct/define_struct_inline.hpp
/*=============================================================================
Copyright (c) 2012 <NAME>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or c... | 782 |
1,093 | <gh_stars>1000+
/*
* Copyright 2002-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unle... | 682 |
543 | <gh_stars>100-1000
package com.riiablo.net;
import com.riiablo.net.packet.mcp.CreateGame;
import com.riiablo.net.packet.mcp.JoinGame;
import com.riiablo.net.packet.msi.StartInstance;
public class GameSession {
public String name;
public String password;
public String desc;
public int numPlayers;
public int ... | 452 |
840 | #ifndef SLOT_H
#define SLOT_H
#include <stdint.h>
#include "parser.h"
#include "socket.h"
#define MAX_DESC_PART_LEN 64
#define MAX_NODE_LIST 16
#define MAX_SLAVE_NODES 64
#define REDIS_CLUSTER_SLOTS 16384
struct context;
enum {
SLOT_UPDATE_UNKNOWN,
SLOT_UPDATE_INIT,
SLOT_UPDATE,
SLOT_RELOAD,
SLO... | 431 |
310 | <reponame>niansa/skylicht-engine
/*
!@
MIT License
Copyright (c) 2021 Skylicht Technology CO., LTD
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 limitatio... | 645 |
1,907 | <reponame>oktomus/appleseed<filename>src/thirdparty/bcd/bcd/SpikeRemovalFilter.h<gh_stars>1000+
// This file comes from the original BCD implementation,
// with minor changes to remove dependencies, unused code
// and re-formatting. Original license follows:
// This file is part of the reference implementation for the... | 774 |
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.applicationinsights.generated;
import com.azure.core.util.Context;
import com.azure.resourcemanager.applicationinsights.models.W... | 386 |
513 | void make(vector<int>& A, int curr, vector<bool> visited, vector<int> temp, vector<vector<int> >& ans){
int n = A.size();
curr = curr%n;
for(int i = curr; i < n; i++){
if(!visited[i]){
vector<int> temp1(temp);
vector<bool> visited1(visited);
temp1.push_b... | 610 |
3,428 | {"id":"00863","group":"easy-ham-1","checksum":{"type":"MD5","value":"f20cfe969a2e3162ce6ce19fd80188bd"},"text":"From <EMAIL> Thu Oct 3 12:55:28 2002\nReturn-Path: <<EMAIL>>\nDelivered-To: yyyy<EMAIL>.spamassassin.taint.org\nReceived: from localhost (jalapeno [127.0.0.1])\n\tby jmason.org (Postfix) with ESMTP id 2F78D... | 1,495 |
389 | <reponame>puradawid/aem-core-wcm-components
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~ Copyright 2021 Adobe
~
~ 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 L... | 1,951 |
1,338 | /*
* Copyright 2008 <NAME>, oliver.ruiz.dorantes_at_gmail.com
* Copyright 2008 <NAME>
* Copyright 2019-2020 Haiku, Inc.
* All rights reserved. Distributed under the terms of the MIT License.
*
* Authors:
* <NAME> <<EMAIL>>
*/
// https://www.bluetooth.com/specifications/assigned-numbers/company-identifiers
co... | 10,354 |
5,169 | <filename>Specs/6/e/f/ButtonWheel/0.1.1/ButtonWheel.podspec.json
{
"name": "ButtonWheel",
"version": "0.1.1",
"summary": "A wheel shaped object that holds a collection of buttons for iOS",
"description": "A wheel shaped object that holds a collection of buttons for iOS",
"homepage": "https://github.com/kysome... | 271 |
412 | <filename>regression/cbmc/null7/main.c<gh_stars>100-1000
#include <stdlib.h>
_Bool nondet_bool();
int main()
{
char *s = NULL;
char A[3];
_Bool s_is_set = 0;
if(nondet_bool())
{
s = A;
s_is_set = 1;
}
if(s_is_set)
{
unsigned len;
__CPROVER_assume(len < 3);
s += len;
}
if(s)
... | 184 |
14,668 | <reponame>zealoussnow/chromium
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "content/public/browser/swap_metrics_driver.h"
#include <memory>
#include "base/notreached.h"
#include "base/tim... | 218 |
301 | /******************************************************************
*
* Copyright 2016 Samsung Electronics 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://... | 333 |
479 | /**
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribu... | 584 |
2,151 | <gh_stars>1000+
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "build/build_config.h"
#include "headless/public/headless_shell.h"
#if defined(OS_WIN)
#include "content/public/app/sandbox_help... | 236 |
314 | <reponame>NeilsC/prestige<gh_stars>100-1000
import json
from http import HTTPStatus
from django.contrib.auth import get_user_model
from django.test import TestCase
from django.urls import reverse
APPLICATION_JSON = "application/json"
class SignupTests(TestCase):
fixtures = ["users.json"]
def test_signup_valid(se... | 1,405 |
4,339 | /*
* 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 n... | 1,305 |
30,023 | <filename>homeassistant/components/broadlink/__init__.py
"""The Broadlink integration."""
from __future__ import annotations
from dataclasses import dataclass, field
from homeassistant.config_entries import ConfigEntry
from homeassistant.core import HomeAssistant
from homeassistant.helpers.typing import ConfigType
f... | 525 |
313 | <gh_stars>100-1000
/*
* Copyright 2018 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 1,256 |
11,356 | // Copyright <NAME>, 2016-2017.
//
// 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)
#include <boost/stacktrace/stacktrace_fwd.hpp>
#include <boost/stacktrace.hpp>
#include <stdexcept>
#include <iostream>
#includ... | 4,366 |
333 | <reponame>JustinKyleJames/irods
#ifndef RS_DATA_OBJ_PHYMV_HPP
#define RS_DATA_OBJ_PHYMV_HPP
#include "rcConnect.h"
#include "dataObjInpOut.h"
#include "objInfo.h"
int rsDataObjPhymv( rsComm_t *rsComm, dataObjInp_t *dataObjInp, transferStat_t **transferStat );
int _rsDataObjPhymv( rsComm_t *rsComm, dataObjInp_t *dataO... | 184 |
2,360 | # 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)
from spack import *
class PyAenum(PythonPackage):
"""Advanced Enumerations (compatible with Python's stdlib Enum),
... | 228 |
2,811 | import os
import pytest
import tox
from tox._quickstart import (
ALTERNATIVE_CONFIG_NAME,
QUICKSTART_CONF,
list_modificator,
main,
post_process_input,
prepare_content,
)
ALL_PY_ENVS_AS_STRING = ", ".join(tox.PYTHON.QUICKSTART_PY_ENVS)
ALL_PY_ENVS_WO_LAST_AS_STRING = ", ".join(tox.PYTHON.QUICK... | 4,351 |
3,673 | <filename>test/posix/integration/stat/test.py<gh_stars>1000+
#!/usr/bin/env python3
from __future__ import print_function
from builtins import str
import sys
import os
from subprocess import call
from vmrunner import vmrunner
vm = vmrunner.vms[0]
num_outputs = 0
def increment(line):
global num_outputs
num_outp... | 715 |
17,809 | <filename>Release/samples/OAuth2Live/pch.h
/***
* Copyright (C) Microsoft. All rights reserved.
* Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
*
****/
#pragma once
#include "App.xaml.h"
#include "MainPage.xaml.h"
#include <collection.h>
#include <cpprest/h... | 147 |
2,542 | /*++
Copyright (c) Microsoft Corporation
Module Name:
DescTest.c
Abstract:
KXM Descriptor tests.
--*/
#include <getopt.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <string.h>
#include <sys/ioctl.h>
#include <linux/types.h>
#include <ctype.h>
#include <stdarg.h>... | 1,167 |
2,338 | //===----------------------------------------------------------------------===//
//
// 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
//
//===---------------------------... | 322 |
12,278 | #ifndef TEST_OPENCL_HEADER_HH
#define TEST_OPENCL_HEADER_HH
#include <stdio.h>
#define BOOST_UBLAS_ENABLE_OPENCL
#include <boost/numeric/ublas/opencl.hpp>
#include <boost/numeric/ublas/matrix.hpp>
#include <time.h>
#include <math.h>
namespace ublas = boost::numeric::ublas;
namespace opencl = boost::numeric::ublas:... | 744 |
1,088 | {
"name": "ivolo/disposable-email-domains",
"description": "disposable domains list",
"keywords": ["disposable", "domains"],
"license": "MIT",
"authors": [
{
"name": "<NAME>",
"email": "<EMAIL>",
"role": "Maintainer"
}
]
}
| 150 |
324 | <reponame>mortend/fuse-studio
#pragma once
#include <string>
bool acquire_lock(const std::string& lockfilename, std::chrono::seconds timeout);
| 49 |
312 | /*
* Copyright 2020 Rockchip Electronics 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... | 2,007 |
977 | #include <cstddef>
#include <limits>
#include <zlib.h>
#include <zconf.h> // for zlib
#include <realm/sync/noinst/compression.hpp>
#include <realm/util/assert.hpp>
#include <realm/util/aes_cryptor.hpp>
namespace {
constexpr std::size_t g_max_stream_avail =
(sizeof(uInt) < sizeof(size_t)) ? std::numeric_limits<u... | 17,953 |
411 | <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
... | 2,067 |
359 | <filename>hack/bin/deps.bzl
# Copyright 2021 The cert-manager 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 b... | 4,663 |
879 | package org.zstack.sdk;
public class DetachTagFromResourcesResult {
}
| 25 |
679 | <reponame>Grosskopf/openoffice
/**************************************************************
*
* 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... | 2,511 |
1,085 | /*
* Copyright (C) 2017-2019 Dremio Corporation
*
* 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 l... | 709 |
1,010 | [
{
"name": "Apache Pulsar Source and Sink",
"version": "0.1",
"docs": "https://github.com/hazelcast/hazelcast-jet-contrib/tree/master/pulsar",
"filename": "hazelcast-jet-contrib-pulsar-0.1.tar.gz",
"download": "https://github.com/hazelcast/hazelcast-jet-contrib/releases/down... | 827 |
362 | <filename>whois-query/src/main/java/net/ripe/db/whois/query/dao/AbuseValidationStatusDao.java
package net.ripe.db.whois.query.dao;
import net.ripe.db.whois.common.domain.CIString;
public interface AbuseValidationStatusDao {
boolean isSuspect(final CIString email);
}
| 103 |
974 | <filename>3rdparty/blend2d/src/blend2d/piperuntime_p.h<gh_stars>100-1000
// Blend2D - 2D Vector Graphics Powered by a JIT Compiler
//
// * Official Blend2D Home Page: https://blend2d.com
// * Official Github Repository: https://github.com/blend2d/blend2d
//
// Copyright (c) 2017-2020 The Blend2D Authors
//
// This so... | 2,930 |
348 | <gh_stars>100-1000
{"nom":"Mennouveaux","circ":"1ère circonscription","dpt":"Haute-Marne","inscrits":76,"abs":37,"votants":39,"blancs":5,"nuls":4,"exp":30,"res":[{"nuance":"LR","nom":"<NAME>","voix":20},{"nuance":"REM","nom":"<NAME>","voix":10}]} | 101 |
3,138 | # Lint as: python3
# Copyright 2019 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agr... | 1,778 |
524 | <reponame>Qt-Widgets/im-desktop-imported
#pragma once
#include "fetch_event.h"
#include "../persons_packet.h"
namespace core
{
namespace wim
{
class contactlist;
typedef std::map<std::string, std::shared_ptr<contactlist>> diffs_map;
class fetch_event_diff : public fetch_event, public... | 429 |
1,444 | package org.mage.test.cards.single.khm;
import mage.cards.Card;
import mage.constants.PhaseStep;
import mage.constants.Zone;
import org.junit.Assert;
import org.junit.Test;
import org.mage.test.serverside.base.CardTestPlayerBase;
/**
* @author JayDi85
*/
public class MoritteOfTheFrostTest extends CardTestPlayerBase... | 1,886 |
930 | <gh_stars>100-1000
package vip.mate.system.strategy;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Component;
import vip.mate.core.database.enums.DataScopeTypeEnum;
import vip.mate.system.dto.RoleDTO;
import vip.mate.system.service.ISysDepartService;
import java.util.ArrayList;
import java.u... | 370 |
679 | /**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... | 13,198 |
984 | <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
... | 2,748 |
1,603 | <reponame>pramodbiligiri/datahub<gh_stars>1000+
package com.linkedin.mxe;
import com.linkedin.pegasus2avro.mxe.FailedMetadataChangeEvent;
import com.linkedin.pegasus2avro.mxe.MetadataAuditEvent;
import com.linkedin.pegasus2avro.mxe.MetadataChangeEvent;
import java.util.Collections;
import java.util.HashMap;
import jav... | 575 |
369 | <reponame>bitigchi/MuditaOS
// Copyright (c) 2017-2021, Mudita <NAME>.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#pragma once
#include "DBMessage.hpp"
#include <MessageType.hpp>
#include <cstdint>
#include <string>
class DBServiceMessageBackup : public DBMessage
... | 293 |
3,301 | package com.alibaba.alink.params.regression;
import com.alibaba.alink.params.shared.colname.HasVectorColDefaultAsNull;
/**
* parameters of linear regression predictor.
*/
public interface LinearRegPredictParams<T> extends
RegPredictParams <T>,
HasVectorColDefaultAsNull <T> {
}
| 90 |
6,035 | <reponame>okasurya/react-native-code-push<gh_stars>1000+
//
// JWTAlgorithmESBase.h
// Pods
//
// Created by <NAME> on 12.02.17.
//
//
#import <Foundation/Foundation.h>
#import "JWTRSAlgorithm.h"
extern NSString *const JWTAlgorithmNameES256;
extern NSString *const JWTAlgorithmNameES384;
extern NSString *const JWTAl... | 234 |
310 | <gh_stars>100-1000
{
"name": "ThinkPad X220i",
"description": "A 12.5 inch PC laptop.",
"url": "http://www.thinkwiki.org/wiki/Category:X220i"
} | 61 |
1,738 | /*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or t... | 2,391 |
305 | //
// Copyright(c) 2016-2017 benikabocha.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
//
#ifndef SABA_VIEWER_SHADOWMAP_H_
#define SABA_VIEWER_SHADOWMAP_H_
#include <Saba/GL/GLObject.h>
#include <Saba/GL/GLSLUtil.h>
#include <vector>
#include <glm/mat4x4.hpp>
namespace saba
{
class Ca... | 810 |
1,615 | /**
* Created by MomoLuaNative.
* Copyright (c) 2019, Momo Group. All rights reserved.
*
* This source code is licensed under the MIT.
* For the full copyright and license information,please view the LICENSE file in the root directory of this source tree.
*/
package com.immomo.mls.global;
import android.co... | 614 |
602 | package org.corfudb.runtime.utils;
import static org.assertj.core.api.Java6Assertions.assertThat;
import static org.assertj.core.api.Java6Assertions.assertThatThrownBy;
import static org.corfudb.runtime.view.Layout.ReplicationMode.CHAIN_REPLICATION;
import static org.mockito.Matchers.anyString;
import static org.mocki... | 5,972 |
2,145 | from spektral.utils import misc
def test_misc():
l = [1, [2, 3], [4]]
flattened = misc.flatten_list(l)
assert flattened == [1, 2, 3, 4]
| 64 |
2,494 | <reponame>jxcore/jxcore<gh_stars>1000+
// Copyright & License details are available under JXCORE_LICENSE file
#ifndef SRC_JX_PROXY_H_
#define SRC_JX_PROXY_H_
#include <string>
#include <stdlib.h>
#if defined(__ANDROID__) && defined(JXCORE_EMBEDDED)
#ifndef JXCORE_ALOG_TAG
#define JXCORE_ALOG_TAG "jxcore-log"
#endif
#... | 1,288 |
1,056 | <reponame>timfel/netbeans
/*
* 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.... | 5,673 |
1,223 | /*
Copyright 2016 Nidium Inc. All rights reserved.
Use of this source code is governed by a MIT license
that can be found in the LICENSE file.
*/
#ifndef net_http_h__
#define net_http_h__
#include <string>
#include <http_parser.h>
#include <ape_netlib.h>
#include <ape_array.h>
#define HTTP_MAX_CL (1024ULL ... | 3,481 |
1,043 | package app.custom.binder.resource.objects;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import com.oath.micro.server.auto.discovery.Rest;
@Rest
@Path("/test")
public class SimpleApp {
@GET
public String myEndPoint(){
return "hello world!";
}
}
| 104 |
471 | <filename>forest-core/src/test/java/com/dtflys/test/http/retry/TestRetryWhen.java
package com.dtflys.test.http.retry;
import com.dtflys.forest.callback.RetryWhen;
import com.dtflys.forest.http.ForestRequest;
import com.dtflys.forest.http.ForestResponse;
public class TestRetryWhen implements RetryWhen {
/**
... | 245 |
2,542 | <filename>src/prod/src/ServiceModel/RemoteReplicatorAcknowledgementDetail.h
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ----------------... | 934 |
1,444 | package mage.target.common;
import mage.ObjectColor;
import mage.abilities.Ability;
import mage.abilities.dynamicvalue.common.ColorAssignment;
import mage.cards.Cards;
import mage.cards.CardsImpl;
import mage.filter.common.FilterControlledCreaturePermanent;
import mage.filter.common.FilterControlledPermanent;
import m... | 1,042 |
3,075 | <filename>powermock-core/src/main/java/org/powermock/core/transformers/MethodSignatures.java
package org.powermock.core.transformers;
import javassist.CtClass;
import javassist.CtMethod;
import javassist.NotFoundException;
import net.bytebuddy.description.method.MethodDescription;
import org.powermock.PowerMockInterna... | 1,436 |
388 | <reponame>Fl4v/botbuilder-python<filename>libraries/botbuilder-ai/botbuilder/ai/qna/utils/http_request_utils.py
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
import json
import platform
from typing import Any
import requests
from aiohttp import ClientResponse, C... | 2,138 |
504 | package org.dayatang.domain.ioc;
public interface Service2 {
String sayHello();
}
| 28 |
460 | /*
* TinyJS
*
* A single-file Javascript-alike engine
*
* Authored By <NAME> <<EMAIL>>
*
* Copyright (C) 2009 Pur3 Ltd
*
* 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 res... | 33,030 |
323 | <gh_stars>100-1000
#include "register_types.h"
#include "image_frames.h"
#include "image_frames_loader.h"
#include "image_frames_loader_gif.h"
#ifdef TOOLS_ENABLED
#include "editor/import/resource_importer_animated_texture.h"
#include "editor/import/resource_importer_sprite_frames.h"
#endif
static ImageFramesLoaderG... | 657 |
475 | // Copyright (c) 2015-2016 <NAME>
// License: Academic Free License ("AFL") v. 3.0
// AFL License page: http://opensource.org/licenses/AFL-3.0
// http://vittorioromeo.info | <EMAIL>
#pragma once
#define ECST_IMPL_NAMESPACE namespace ecst
#define ECST_IMPL_NAMESPACE_END
/// @macro Opens the `ecst` namespace.
#define ... | 180 |
367 | #include <pybind11/pybind11.h>
namespace py = pybind11;
namespace {
void overloadedFunction(int, float) {}
void overloadedFunction(int) {}
}
PYBIND11_MODULE(pybind, m) {
m
.def("overloaded_function", static_cast<void(*)(int, float)>(&overloadedFunction))
.def("overloaded_function", static_cast<... | 139 |
60,067 | #pragma once
#include <istream>
#include "c10/macros/Macros.h"
#include "caffe2/serialize/read_adapter_interface.h"
namespace caffe2 {
namespace serialize {
// this is a reader implemented by std::istream
class TORCH_API IStreamAdapter final : public ReadAdapterInterface {
public:
C10_DISABLE_COPY_AND_ASSIGN(ISt... | 231 |
2,542 | <reponame>AnthonyM/service-fabric
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ----------------------------------------------------------... | 284 |
746 | // Copyright (c) OpenMMLab. All rights reserved.
#ifndef MMDEPLOY_CSRC_EXPERIMENTAL_EXECUTION_INFERENCE_H_
#define MMDEPLOY_CSRC_EXPERIMENTAL_EXECUTION_INFERENCE_H_
#include "pipeline.h"
namespace mmdeploy::graph {
class Inference : public Node {
friend class InferenceParser;
public:
Sender<Value> Process(Sen... | 238 |
739 | <reponame>gregomebije1/ZtM-Job-Board<gh_stars>100-1000
{
"name": "<NAME>",
"img": "",
"email": "<EMAIL>",
"links": {
"website": "",
"linkedin": "https://www.linkedin.com/in/joel-dominic-lobo-99184a125",
"github": "https://github.com/jdominiclobo"
},
"jobTitle": "Full-Stack Deve... | 216 |
1,144 | <reponame>google-admin/mozc
# -*- coding: utf-8 -*-
# Copyright 2010-2021, Google 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:
#
# * Redistributions of source code must retain the ab... | 2,127 |
313 | <gh_stars>100-1000
//------------------------------------------------------------------------------
// GB_Semiring_new.h: definitions for GB_Semiring_new
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, <NAME>, (c) 2017-2022, All Rights Reserved.
// SPDX-Licens... | 237 |
3,710 | <filename>toonz/sources/include/tcg/hpp/mesh.hpp
#pragma once
#ifndef TCG_MESH_HPP
#define TCG_MESH_HPP
// tcg includes
#include "../mesh.h"
namespace tcg {
//************************************************************************
// Polygon Mesh methods
//*******************************************************... | 5,075 |
647 | /********************************* TRICK HEADER *******************************
PURPOSE: ( Test scheduling )
REFERENCE: ( None )
ASSUMPTIONS AND LIMITATIONS: ( None )
CLASS: ( environment )
LIBRARY DEPENDENCY: ( sched_environment.o )
PROGRAMMERS: ... | 287 |
453 | <reponame>amyspark/libjxl
// Copyright (c) the JPEG XL Project Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// This C++ example decodes a JPEG XL image progressively (input bytes are
// passed in chunks). The example outputs th... | 3,834 |
1,346 | <reponame>disrupted/Trakttv.bundle
from plugin.core.backup import BackupManager
from plugin.modules.scheduler.handlers.core.base import Handler
class BackupMaintenanceIntervalHandler(Handler):
key = 'backup.interval'
def run(self, job):
# Trigger backup maintenance
BackupManager.maintenance(b... | 121 |
480 | <reponame>weicao/galaxysql
/*
* 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/licenses/LICENSE-2.0
... | 732 |
627 | /* Copyright 2016 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*
* Standalone utility to parse EC panicinfo.
*/
#include <stdint.h>
#include <stdio.h>
#include "ec_panicinfo.h"
int main(int argc, char *argv[])
... | 187 |
2,462 | package com.sanshengshui.persistence;
import com.google.common.util.concurrent.ListenableFuture;
import java.util.List;
/**
* @author <NAME>
* @date 18-12-25 下午4:10
*/
public interface Dao<T> {
List<T> find();
T findById(Long id);
ListenableFuture<T> findByIdAsync(Long id);
T save(T t);
b... | 140 |
1,609 | package com.mossle.spi.rpc;
public class RpcConfiguration {
private String baseUrl;
private String accessKey;
private String accessSecret;
private RpcAuthHelper rpcAuthHelper;
public String getBaseUrl() {
return baseUrl;
}
public void setBaseUrl(String baseUrl) {
this.base... | 339 |
654 | /*
* Copyright (c) 2015-2021 "Neo Technology,"
* Network Engine for Objects in Lund AB [http://neotechnology.com]
*
* 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.ap... | 625 |
1,375 | /*
This code is written by kerukuro and released into public domain.
*/
#ifndef DIGESTPP_MIXIN_SHAKE_HPP
#define DIGESTPP_MIXIN_SHAKE_HPP
namespace digestpp
{
namespace mixin
{
/**
* \brief Defines additional public functions for cSHAKE128 and cSHAKE256.
* \sa hasher, cshake128, cshake256
*/
template<typename T>... | 811 |
563 | <gh_stars>100-1000
/*
src/checkbox.cpp -- Two-state check box widget
NanoGUI was developed by <NAME> <<EMAIL>>.
The widget drawing code is based on the NanoVG demo application
by <NAME>.
All rights reserved. Use of this source code is governed by a
BSD-style license that can be found in the LI... | 1,716 |
20,190 | <filename>tests/test_models/test_dense_heads/test_dense_heads_attr.py
# Copyright (c) OpenMMLab. All rights reserved.
import warnings
from terminaltables import AsciiTable
from mmdet.models import dense_heads
from mmdet.models.dense_heads import * # noqa: F401,F403
def test_dense_heads_test_attr():
"""Tests in... | 705 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.