max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
335 | <filename>examples/27_wifi_matrix/components/Adafruit-GFX-Library/Adafruit_HT1632.h
#include "Adafruit_GFX.h"
#ifndef ADA_HT1632_H_
#define ADA_HT1632_H_
#if(ARDUINO >= 100)
#include <Arduino.h>
#else
#include <WProgram.h>
#endif
#define ADA_HT1632_READ 0x06
#define ADA_HT1632_WRITE 0x05
#define A... | 1,281 |
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... | 893 |
389 | /*
* Copyright 2014 Guidewire Software, Inc.
*/
package gw.internal.gosu.ir.compiler.bytecode.expression;
import gw.internal.gosu.ir.compiler.bytecode.AbstractBytecodeCompiler;
import gw.internal.gosu.ir.compiler.bytecode.IRBytecodeContext;
import gw.internal.gosu.ir.compiler.bytecode.IRBytecodeCompiler;
import gw.... | 1,437 |
836 | // This file is auto-generated, don't edit it. Thanks.
package com.alipay.easysdk.payment.huabei.models;
import com.aliyun.tea.*;
public class HuabeiConfig extends TeaModel {
@NameInMap("hb_fq_num")
@Validation(required = true)
public String hbFqNum;
@NameInMap("hb_fq_seller_percent")
@Validation... | 428 |
2,151 | <gh_stars>1000+
#!/usr/bin/python
# Copyright (c) 2014 The Native Client Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Tests for packages info."""
import json
import os
import sys
import unittest
sys.path.append(os.path.join(os.... | 3,174 |
711 | <filename>java110-bean/src/main/java/com/java110/vo/api/inspectionTaskDetail/ApiInspectionTaskDetailDataVo.java
package com.java110.vo.api.inspectionTaskDetail;
import com.java110.vo.api.junkRequirement.PhotoVo;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
public class ApiInspectionTask... | 1,173 |
379 | <reponame>oimchat/oim-fx
package com.onlyxiahui.im.message.server;
import com.onlyxiahui.im.message.Head;
public class ServerHead extends Head{
private String resultCode;
private String resultMessage;
public ServerHead() {
resultCode = code_success;
resultMessage = "";
}
public String getResultCode() {... | 196 |
327 | package com.honvay.cola.cloud.framework.starter.swagger;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
/**
* @author LIQIU
* @date 2018-4-3
**/
@Data
@ConfigurationProperties(prefix = "cola.swagger2")
public class Swagger2Properties {
private String basePackag... | 162 |
2,460 | /**
* Copyright (C) 2015 Red Hat, 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... | 919 |
810 | import pandas as pd
from feast import FeatureStore
from feast.infra.offline_stores.file import SavedDatasetFileStorage
from feast.dqm.profilers.ge_profiler import ge_profiler
from great_expectations.core.expectation_suite import ExpectationSuite
from great_expectations.dataset import PandasDataset
DELTA = 0.1 # con... | 1,082 |
5,169 | <filename>Specs/f/5/6/MyPodsLibrary/0.1.6/MyPodsLibrary.podspec.json
{
"name": "MyPodsLibrary",
"version": "0.1.6",
"summary": "pods is an easy-to-use logger.",
"description": "This library is used for Learning purpose.",
"homepage": "https://github.com/aravindg09/MyPodsLibrary",
"license": {
"type": "M... | 305 |
742 | <gh_stars>100-1000
package org.support.project.ormapping.config;
import java.io.InputStream;
import org.junit.Test;
import org.support.project.common.serialize.SerializeUtils;
import org.support.project.di.Container;
import org.support.project.ormapping.config.Connection;
import org.support.project.ormapping.... | 462 |
772 | <gh_stars>100-1000
{
"at": "لە",
"atFlower": "لە گوڵ",
"collect": "كۆبكەوە/خركەوە",
"collectiblePresent": "هەندێك گەنجینە هەیە",
"continue": "بەردەوام بە",
"corn": "دانەوێڵە/گەنمەشامی",
"dirE": "ڕۆژهەڵات",
"dirN": "باكور",
"dirS": "باشور",
"dirW": "ڕۆژئاوا",
"doCode": "بكە",
"elseCode": "یان",
... | 351 |
1,590 | <gh_stars>1000+
{
"parameters": {
"endpoint": "{endpoint}",
"api-version": "{apiVersion}",
"authorizeCopyRequest": {
"modelId": "{targetModelId}",
"description": "{targetModelDescription}"
}
},
"responses": {
"200": {
"body": {
"targetResourceId": "{targetResourceId}"... | 281 |
303 | <filename>www/draw/metadata/6/6228.json
{"id":6228,"line-1":"The Tuamotu and Gambier Islands","line-2":"French Polynesia","attribution":"©2015 DigitalGlobe","url":"https://www.google.com/maps/@-15.827476,-145.103672,17z/data=!3m1!1e3"} | 93 |
424 | package io.vertx.sqlclient.templates;
import java.time.LocalDateTime;
public class LocalDateTimePojo {
public LocalDateTime localDateTime;
}
| 47 |
2,210 | <reponame>browniebroke/django-grappelli
# added migrations here, because otherwise tests are not running as expected
# since the grappelli tests models are migrated before auth.user which leads
# to an issue with travis.
| 57 |
537 | <filename>src/test/java/es/rickyepoderi/wbxml/bind/wvcsp/WVCSPFeat.java
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost up... | 1,429 |
848 | <reponame>hito0512/Vitis-AI<gh_stars>100-1000
/*
* Copyright 2019 Xilinx Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* U... | 430 |
922 | /*
* Hibernate Validator, declare and validate application constraints
*
* License: Apache License, Version 2.0
* See the license.txt file in the root directory or <http://www.apache.org/licenses/LICENSE-2.0>.
*/
package org.hibernate.validator.internal.constraintvalidators.bv.number.bound;
import java.math.BigDe... | 284 |
3,181 | /*
* Copyright (C) 2013-2017 microG Project Team
*
* 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 ... | 500 |
335 | {
"word": "Conversion",
"definitions": [
"The process of changing or causing something to change from one form to another.",
"The adaptation of a building or part of a building for a new use.",
"A building that has been adapted for a new use.",
"The changing of real property into... | 350 |
1,143 | <reponame>zhouyijiaren/commons
// =================================================================================================
// Copyright 2011 Twitter, Inc.
// -------------------------------------------------------------------------------------------------
// Licensed under the Apache License, Version 2.0 (the ... | 1,639 |
2,151 | // Copyright 2017 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 "android_webview/browser/aw_field_trial_creator.h"
#include <memory>
#include <set>
#include <string>
#include <utility>
#include <vector>
#inc... | 1,709 |
501 | #!/usr/bin/env python
'''
This example shows a customized get_jk function that mixes different
treatments for J matrix (using DF integrals) and K matrix (using 4-index
ERIs).
'''
import numpy
import scipy.linalg
from pyscf import gto, scf
from pyscf import df
mol = gto.M(atom='Ne', basis='ccpvdz')
# HF reference wit... | 591 |
529 | ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright (c) Microsoft Corporation. All rights reserved.
///////////////////////////////////////////////////////... | 469 |
1,615 | from falcor import *
def render_graph_SVGF():
g = RenderGraph("SVGF")
loadRenderPassLibrary("GBuffer.dll")
loadRenderPassLibrary("MegakernelPathTracer.dll")
loadRenderPassLibrary("SVGFPass.dll")
SVGFPass = createPass("SVGFPass", {'Enabled': True, 'Iterations': 4, 'FeedbackTap': 1, 'VarianceEpsilon... | 909 |
598 | <reponame>stjordanis/imodels
import numpy as np
from typing import List
from imodels.rule_set.rule_fit import RuleFit
from imodels.util.score import score_linear
from sklearn.base import ClassifierMixin, RegressorMixin, BaseEstimator
from .util import extract_ensemble
class StableLinear(RuleFit):
def __init__(... | 1,825 |
2,151 | // Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/download/internal/background_service/in_memory_download.h"
#include "base/guid.h"
#include "base/message_loop/message_loop.h"
#inclu... | 2,282 |
335 | /*
Copyright (C) 2018 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 of the Modified BSD License... | 844 |
1,821 | <gh_stars>1000+
/*
* Copyright 2018- The Pixie 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 appl... | 3,395 |
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... | 681 |
12,895 | /*
* This file and its contents are licensed under the Timescale License.
* Please see the included NOTICE for copyright information and
* LICENSE-TIMESCALE for a copy of the license.
*/
/*
* Deltadelta is used to encode integers or integer-like objects (e.g. timestamps). It's input is a
* series of integers. fir... | 1,257 |
1,150 | # -*- coding: utf-8 -*-
class WechatBase(object):
"""SDK功能基类"""
@classmethod
def _transcoding(cls, data):
"""编码转换
:param data: 需要转换的数据
:return: 转换好的数据
"""
if not data:
return data
result = None
if isinstance(data, str) and hasattr(data,... | 969 |
2,428 | # -*- coding: utf-8 -*-
from typing import Dict
from optionaldict import optionaldict
from wechatpy.client.api.base import BaseWeChatAPI
class WeChatLiving(BaseWeChatAPI):
"""
企业微信直播接口
https://developer.work.weixin.qq.com/document/path/93633
"""
def create(
self,
anchor_userid: ... | 4,516 |
665 | <gh_stars>100-1000
/** MLDB-642_script_procedure_test.cc
<NAME>, 10 juillet 2015
Copyright (c) 2015 mldb.ai inc. All rights reserved.
This file is part of MLDB. Copyright 2015 mldb.ai inc. All rights reserved.
*/
#include "mldb/server/mldb_server.h"
#include "mldb/engine/plugin_collection.h"
#include "mld... | 2,571 |
727 | <filename>test/write.c<gh_stars>100-1000
// Tencent is pleased to support the open source community by making HaboMalHunter available.
// Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved.
// Licensed under the MIT License (the "License"); you may not use this file except in
// compliance with... | 497 |
20,295 | #include <iostream>
int main() {
int size = 10;
int* array = new int[size];
// Input
std::cout << "\nHow many numbers do want to enter in unsorted array : ";
std::cin >> size;
std::cout << "\nEnter the numbers for unsorted array : ";
for (int i = 0; i < size; i++) {
std::cin >> arra... | 509 |
471 | <reponame>nipun-gupta-e3183/jesque
/*
* Copyright 2016 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | 853 |
6,224 | <gh_stars>1000+
/*
* Copyright (c) 2021 BrainCo Inc.
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef _SOC_ARM_GIGADEVICE_GD32F3X0_SOC_H_
#define _SOC_ARM_GIGADEVICE_GD32F3X0_SOC_H_
#ifndef _ASMLANGUAGE
#include <devicetree.h>
#include <gd32f3x0.h>
#endif /* _ASMLANGUAGE */
#endif /* _SOC_ARM_GIGADEVICE_GD32F3X... | 171 |
6,270 | [
{
"type": "feature",
"category": "Comprehend",
"description": "Amazon Comprehend Custom Entities automatically trains entity recognition models using your entities and noun-based phrases. "
},
{
"type": "feature",
"category": "CostExplorer",
"description": "... | 453 |
2,649 | package json.chao.com.wanandroid.contract.wx;
import java.util.List;
import json.chao.com.wanandroid.base.presenter.AbstractPresenter;
import json.chao.com.wanandroid.base.view.AbstractView;
import json.chao.com.wanandroid.core.bean.wx.WxAuthor;
/**
* @author quchao
* @date 2018/10/31
*/
public interface WxContr... | 330 |
2,305 | <reponame>sky-dust-intelligence-bv/nni<gh_stars>1000+
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
import functools
import json
import os
from playhouse.sqlite_ext import SqliteExtDatabase
from nni.common.blob_utils import load_or_download_file
from .constants import DB_URLS, DATABASE_DI... | 500 |
3,084 | <reponame>ixjf/Windows-driver-samples<gh_stars>1000+
#pragma once
/**
* This class represents an abstraction of a contacts service content object
* Driver implementors should replace this with their own
* device I/O classes/libraries.
*/
#define CONTACTS_SERVICE_OBJECT_ID L"789DEF"
... | 1,831 |
571 | <filename>games/varooom-3d/include/models/fr_model_3d_items_small_tree.h
/*
* Copyright (c) 2021
* <NAME> <EMAIL>
* Licensed under the Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0) license
*/
#ifndef FR_MODEL_3D_ITEMS_SMALL_TREE_H
#define FR_MODEL_3D_ITEMS_SMALL_TREE_H
#include... | 1,356 |
1,414 | <reponame>redscientistlabs/Bizhawk50X-Vanguard
/*
* Glide64 - Glide video plugin for Nintendo 64 emulators.
* Copyright (c) 2002 Dave2001
*
* 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; eithe... | 3,964 |
1,738 | <filename>dev/Code/Framework/AzFramework/AzFramework/Render/Intersector.cpp
/*
* 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 ... | 4,097 |
1,501 | # Copyright 2020 The TensorFlow Quantum Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless req... | 2,673 |
362 | #include <catch2/catch.hpp>
#include <kangaru/kangaru.hpp>
TEST_CASE("kgr::service must be constructible", "[default_services]") {
struct Service {};
struct Definition : kgr::service<Service> {};
using return_value = decltype(kgr::container{}.service<Definition>());
REQUIRE(kgr::detail::is_service_valid<Defini... | 6,045 |
568 | /*
* Copyright 2013 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 1,603 |
1,416 | from tokenizers import ByteLevelBPETokenizer
from typing import Union, List
def train_tokenizer(
files: Union[str, List[str]],
dropout: float = None,
vocab_size: int = 1000,
min_frequency: int = 2,
prefix: str = "aitextgen",
save_path: str = "",
added_tokens: List[str] = [],
bos_token:... | 712 |
335 | {
"word": "Sos",
"definitions": [
"An international code signal of extreme distress, used especially by ships at sea.",
"An urgent appeal for help.",
"A message broadcast in an emergency in an attempt to contact a person whose whereabouts are not known."
],
"parts-of-speech": "No... | 110 |
8,657 | /* Copyright 2016 Google Inc. All Rights Reserved.
Distributed under MIT license.
See file LICENSE for detail or copy at https://opensource.org/licenses/MIT
*/
package org.brotli.dec;
import static org.junit.Assert.assertArrayEquals;
import static org.junit.Assert.fail;
import java.io.ByteArrayInputStream;
im... | 84,587 |
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.attestation.models;
import com.azure.core.util.ExpandableStringEnum;
import com.fasterxml.jackson.annotation.JsonCreator;
import... | 411 |
3,721 | #import <Foundation/Foundation.h>
@interface Hello : NSObject
+ (void)say:(NSString*)s;
@end
| 37 |
837 | /*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2010, Rice University
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions... | 3,393 |
1,029 | {"processes":{"9bba3810-e97f-46c5-ae00-ccdb2807135a":{"parent":"bd08283b-0c2d-4ee4-afb3-a3338eed383b","children":[]},"bd08283b-0c2d-4ee4-afb3-a3338eed383b":{"parent":null,"children":["9bba3810-e97f-46c5-ae00-ccdb2807135a"]}},"files":{"/Users/henry.steinhauer/Projekte/private_Projekte/swagger-ui-express/index.js":["9bba... | 182 |
778 | /*
Copyright (c) 2007-2010 iMatix Corporation
This file is part of 0MQ.
0MQ is free software; you can redistribute it and/or modify it under
the terms of the Lesser GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later versi... | 39,284 |
763 | package org.batfish.main;
import static org.hamcrest.Matchers.containsInAnyOrder;
import static org.hamcrest.Matchers.hasKey;
import static org.junit.Assert.assertThat;
import java.io.IOException;
import java.util.Map;
import org.batfish.common.plugin.IBatfish;
import org.batfish.datamodel.Configuration;
import org.j... | 517 |
3,097 | <reponame>liupeng68/-bilibili-
//
// YPWaterflowController.h
// Wuxianda
//
// Created by MichaelPPP on 16/7/8.
// Copyright © 2016年 michaelhuyp. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface YPWaterflowController : UIViewController
@end
| 101 |
3,799 | <reponame>semoro/androidx<filename>paging/samples/src/main/java/androidx/paging/samples/java/PagingSourceRxSample.java
/*
* Copyright 2021 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... | 1,240 |
5,169 | <filename>Specs/4/1/b/MaterialActionSheetController/1.0/MaterialActionSheetController.podspec.json
{
"name": "MaterialActionSheetController",
"version": "1.0",
"summary": "A Google like action sheet for iOS written in Swift.",
"description": "Lightweight and totally customizable. Create and present it the way y... | 457 |
468 | {
"name": "oyd",
"author": "<NAME>",
"license": "https://www.oyd.org.tr/lisans/",
"raster": "http://hexb.in/hexagons/oyd.png",
"vector": "http://hexb.in/vector/oyd.svg",
"description": "Free Software Association is a community of people defending the free software movement and the freedom of all people in t... | 167 |
1,772 | <reponame>mtcolman/django-DefectDojo<gh_stars>1000+
{
"status": "SCANNED",
"image_name": "example:latest",
"registry": "docker.example.com",
"disallowed": false,
"cves_counts": {
"total": 3,
"high": 2,
"medium": 1,
"low": 0,
"score_average": 0
},
"cves": [
{
"file": "/usr/lib... | 1,072 |
2,691 | package com.dropbox.djinni.test;
import junit.framework.TestCase;
import java.util.Date;
public class RecordWithDerivingsTest extends TestCase {
private final RecordWithDerivings record1 = new RecordWithDerivings((byte)1, (short)2, 3, 4, 5.0f, 6.0,
new Date(7), "String8");
private final RecordWi... | 1,083 |
512 | import responses
from binance.spot import Spot as Client
from tests.util import random_str
from tests.util import mock_http_response
from binance.error import ParameterRequiredError
mock_item = {"key_1": "value_1", "key_2": "value_2"}
mock_exception = {"code": -1, "msg": "error message"}
key = random_str()
listen_ke... | 339 |
852 | /*
* \class TSFit
*
* \author: <NAME> - CEA/Saclay
*/
#include <CalibCalorimetry/EcalLaserAnalyzer/interface/TSFit.h>
#include <cstdio>
#include <cmath>
#include <cstring>
//ClassImp(TSFit)
//------------------------------------------------------------------------
// TSFit provide fitting methods of pulses w... | 4,841 |
2,151 | // Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.content.common;
import org.chromium.base.ThreadUtils;
import org.chromium.base.annotations.JNINamespace;
import org.chromium.mojo.sy... | 286 |
2,151 | // 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.
#ifndef COMPONENTS_VIZ_SERVICE_FRAME_SINKS_DIRECT_LAYER_TREE_FRAME_SINK_H_
#define COMPONENTS_VIZ_SERVICE_FRAME_SINKS_DIRECT_LAYER_TREE_FRAME_SINK_H_
#in... | 1,753 |
575 | <reponame>iridium-browser/iridium-browser<filename>cc/metrics/jank_injector.h<gh_stars>100-1000
// 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.
#ifndef CC_METRICS_JANK_INJECTOR_H_
#define CC_METRICS_JAN... | 695 |
324 | from vergeml import ModelPlugin, model, train, predict, option, VergeMLError
from vergeml.display import DISPLAY
import numpy as np
import os
import os.path
import random
import csv
_TEMPLATE = """\
model: imagenet
# Uncomment for better ml list output:
# list:
# columns:
# - model
# - status
# - num-samples... | 7,244 |
458 | <reponame>niranjanchintu/hyscale
/**
* Copyright 2019 <NAME>, 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 requi... | 1,426 |
1,247 | from sqlalchemy.exc import SQLAlchemyError
from jet_bridge_base import status
from jet_bridge_base.configuration import configuration
from jet_bridge_base.responses.json import JSONResponse
from jet_bridge_base.utils.exceptions import validation_error_from_database_error
class DestroyAPIViewMixin(object):
def d... | 362 |
1,443 | {
"copyright": "<NAME>, https://vaibhavsingh97.me",
"url": "https://vaibhavsingh97.me",
"email": "<EMAIL>",
"theme": "material-teal",
"gravatar": true
}
| 72 |
319 | /**
* Copyright (c) 2011, The University of Southampton and the individual contributors.
* 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 ... | 1,326 |
340 | // Concord
//
// Copyright (c) 2020 VMware, Inc. All Rights Reserved.
//
// This product is licensed to you under the Apache 2.0 license (the
// "License"). You may not use this product except in compliance with the
// Apache 2.0 License.
//
// This product may include a number of subcomponents with separate copyright... | 374 |
14,425 | /**
* 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... | 471 |
1,144 | <reponame>dram/metasfresh
package de.metas.inbound.mail.config;
import java.util.List;
import java.util.Optional;
import java.util.Set;
import org.slf4j.Logger;
import org.springframework.stereotype.Component;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableSet;
import de.m... | 996 |
13,057 | /*
* Copyright (c) 2007 Mockito contributors
* This program is made available under the terms of the MIT License.
*/
package org.mockito.verification;
import org.mockito.Mockito;
/**
* VerificationAfterDelay is a {@link VerificationMode} that allows combining existing verification modes with an initial delay, e.g... | 748 |
852 | <reponame>ckamtsikis/cmssw<filename>DQM/RCTMonitor/interface/somedefinitions.h
#include "DQM/RCTMonitor/interface/RCTMonitor.h"
#include <cmath>
// Define statics for bins etc.
const unsigned int RCTMonitor::ETABINS = 22;
const float RCTMonitor::ETAMIN = -0.5;
const float RCTMonitor::ETAMAX = 21.5;
const unsigned int... | 725 |
493 | <filename>SchedulerTests/Tests/SubtasksTests.cpp
// The MIT License (MIT)
//
// Copyright (c) 2015 <NAME>, <NAME>
//
// 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 restr... | 2,829 |
1,545 | <reponame>smthkissinger/docker-images<gh_stars>1000+
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the... | 1,678 |
997 | <reponame>dkostic/liboqs
/**
* \file sha3.h
* \brief SHA3 and SHAKE functions; not part of the OQS public API
*
* Contains the API and documentation for SHA3 digest and SHAKE implementations.
*
* <b>Note this is not part of the OQS public API: implementations within liboqs can use these
* functions, but external... | 4,554 |
988 | <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
... | 3,933 |
3,227 | #include "Scene_polylines_item.h"
typedef Scene_polylines_item::Polylines_container Polylines_container;
auto split_polylines(const Polylines_container& input)
-> std::vector<Polylines_container::value_type>;
| 67 |
435 | {
"description": "In my talk I will explore the ethics of artificial intelligence. I will\nintroduce morality and ethics and will give examples in which areas\nartificial intelligence - or better phrased machine learning - is\nleading and will lead to ethical challenges. I will focus in my talk\nespecially on the dev... | 421 |
1,444 |
package mage.cards.n;
import java.util.UUID;
import mage.MageInt;
import mage.abilities.TriggeredAbilityImpl;
import mage.abilities.effects.Effect;
import mage.abilities.effects.common.continuous.BoostSourceEffect;
import mage.abilities.keyword.FlyingAbility;
import mage.abilities.keyword.ReachAbility;
import mage.ca... | 865 |
400 | <filename>capi/ctxs/context_cl.h
/*
* context_cl.h - private context for OpenCL modules
*
* Copyright (c) 2019 Intel 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
*
* ... | 1,302 |
411 | # License: BSD 3 clause
import numpy as np
from tick.base import actual_kwargs
from tick.base.learner import LearnerGLM
from .model_logreg import ModelLogReg
class LogisticRegression(LearnerGLM):
"""
Logistic regression learner, with many choices of penalization and
solvers.
Parameters
--------... | 3,700 |
666 | package com.renyu.slidingmenu.myview;
import android.content.Context;
import android.content.res.TypedArray;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewGroup;
import android.widget.HorizontalScrollView;
import com.nineoldandroids.view... | 1,697 |
918 | <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 "... | 433 |
1,444 | <reponame>FateRevoked/mage
package org.mage.test.cards.replacement;
import mage.constants.PhaseStep;
import mage.constants.Zone;
import org.junit.Test;
import org.mage.test.serverside.base.CardTestPlayerBase;
/**
* <NAME>
* Creature - Dryad Soldier 1/1 {G/W}
* If an instant or sorcery card would be put into a g... | 976 |
1,006 | <filename>drivers/usbhost/usbhost_registry.c
/****************************************************************************
* drivers/usbhost/usbhost_registry.c
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work ... | 476 |
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.
#include "content/test/fuzzer/fuzzer_support.h"
#include <string>
#include "base/feature_list.h"
#include "base/i18n/icu_util.h"
#include "content/commo... | 517 |
3,710 | #pragma once
#ifndef LOADFOLDERPOPUP_H
#define LOADFOLDERPOPUP_H
// TnzQt includes
#include "toonzqt/dvdialog.h"
//==============================================================
// Forward declarations
class TFilePath;
class DvDirTreeView;
//==============================================================
//***... | 482 |
2,151 | /*
* Copyright (C) 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 required by app... | 1,005 |
1,968 | <gh_stars>1000+
//////////////////////////////////////////////////////////////////////////////
//
// This file is part of the Corona game engine.
// For overview and more information on licensing please refer to README.md
// Home page: https://github.com/coronalabs/corona
// Contact: <EMAIL>
//
///////////////////////... | 374 |
72,551 | <reponame>gandhi56/swift
//===--- OwnershipVerifierStateDumper.cpp ---------------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2020 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
/... | 501 |
12,278 | // Copyright 2017 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... | 999 |
309 | from __future__ import print_function
import os
import sys
import time
import torch
import torch.optim as optim
import torch.backends.cudnn as cudnn
import torch.nn.functional as F
import argparse
import random
import numpy as np
from torchvision import transforms, datasets
import torchvision.models as models
from v... | 4,347 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.