max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
624 | package com.pinterest.doctork.errors;
import java.lang.Exception;
public class ClusterInfoError extends Exception {
String[] errors;
public ClusterInfoError() {
this.errors = new String[1];
this.errors[0] = "Unknown error";
}
public ClusterInfoError(String... errors) {
this.errors =... | 185 |
416 | //
// MLModelMetadataKeys.h
// CoreML
//
// Copyright © 2017 Apple Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
/*!
* Keys to a dictionary that holds useful information about a model.
* All are optional with the aim of being helpful to a developer or user
* for descriptive purposes.
*/
typede... | 427 |
577 | <filename>bugtests/test333s3.py
import sys
def myfunc():
print "myfunc"
sys.exitfunc = myfunc
raise "Exc"
| 46 |
11,868 | <reponame>JigarJoshi/openapi-generator
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated b... | 417 |
435 | {
"copyright_text": "Creative Commons Attribution license (reuse allowed)",
"description": "<NAME>\nhttps://kiwi.pycon.org/schedule/presentation/116/\nToo often when developing Python web apps we first choose a framework and database, then code to their rules and restrictions. It's only later that we start thinking... | 327 |
435 | {
"description": "Ever since a moth was discovered in the Mark II computer we've dealt with bugs in software. This talk will show different methods for determining what the code is doing. We'll start with the lowly print statement and introduce advanced forms of logging. We'll also cover several Python debuggers and ... | 264 |
14,668 | <gh_stars>1000+
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/signin/cookie_reminter_factory.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/signin/id... | 435 |
18,697 | """
This file has tests to deploy apps in a project created in a cluster.
Test requirements:
Env variables - Cattle_url, Admin Token, User Token, Cluster Name
Test on at least 3 worker nodes
App versions are given in 'cataloglib_appversion.json' file
"""
import json
from .common import os
from .common import pytest
f... | 1,429 |
6,270 | <gh_stars>1000+
[
{
"type": "feature",
"category": "CodePipeline",
"description": "Add support for viewing details of each action execution belonging to past and latest pipeline executions that have occurred in customer's pipeline. The details include start/updated times, action execution re... | 359 |
2,753 | <filename>src/shogun/distance/KernelDistance.cpp<gh_stars>1000+
/*
* This software is distributed under BSD 3-clause license (see LICENSE file).
*
* Authors: <NAME>, <NAME>
*/
#include <shogun/lib/config.h>
#include <shogun/lib/common.h>
#include <shogun/io/SGIO.h>
#include <shogun/distance/KernelDistance.h>
#inc... | 572 |
716 | <reponame>rnui2k/vivisect<gh_stars>100-1000
from vivisect.symboliks.common import *
from vivisect.symboliks.effects import *
class SymbolikTranslator:
'''
The SymbolikTranslator is responsible for translating architecture specific
sequences of Envi Opcode objects into a sequence of purely symbolik effects.... | 1,283 |
2,728 | <gh_stars>1000+
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Gener... | 364 |
1,086 | <gh_stars>1000+
/* Copyright (c) 2013-2020 <NAME> <<EMAIL>> */
#ifndef GCOMBOBOX_H
#define GCOMBOBOX_H
#include <QApplication>
#include "ringqt.h"
#include <QComboBox>
extern "C" {
#include "ring.h"
}
class GComboBox : public QComboBox
{
Q_OBJECT
public:
struct VM *pVM;
struct List *pParaList;
ch... | 434 |
1,350 | <filename>sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/RegulatoryComplianceControlsImpl.java<gh_stars>1000+
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Gene... | 1,256 |
1,909 | package org.knowm.xchange.bitfinex.v2.dto.marketdata;
import static org.assertj.core.api.Assertions.assertThat;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.node.ArrayNode;
import com.fasterxml.jackson.databind.type.CollectionType;
import java.io.IOException;
import java.i... | 1,318 |
831 | /*
* Copyright (C) 2018 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,692 |
2,577 | <filename>engine-dmn/engine/src/test/java/org/camunda/bpm/dmn/engine/type/CustomDataTypeTransformerRegistryTest.java
/*
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
* under one or more contributor license agreements. See the NOTICE file
* distributed with this work for additional inform... | 1,140 |
4,538 | <gh_stars>1000+
/*
* Copyright (C) 2015-2020 Alibaba Group Holding Limited
*/
#ifndef AOS_PM_H
#define AOS_PM_H
typedef enum {
AOS_CHARGER_STAT_SHUTDOWN = 0,
AOS_CHARGER_STAT_CHECK,
AOS_CHARGER_STAT_TRICKLE,
AOS_CHARGER_STAT_PRE,
AOS_CHARGER_STAT_CC,
AOS_CHARGER_STAT_CV,
AOS_CHARGER_STAT... | 1,438 |
6,224 | /* SPDX-License-Identifier: MIT */
/******************************************************************************
* arch-arm.h
*
* Guest OS interface to ARM Xen.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"... | 2,826 |
4,081 | /*
* The Alluxio Open Foundation licenses this work under the Apache License, version 2.0
* (the "License"). You may not use this work except in compliance with the License, which is
* available at www.apache.org/licenses/LICENSE-2.0
*
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDI... | 561 |
4,829 | //
// Copyright <NAME> (<EMAIL>), <NAME> (<EMAIL>) 2014-2021
//
// 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)
//
#pragma once
#include "tl_writer_td.h"
#include <cstdint>
#include <string>
#include <vector>
nam... | 2,062 |
14,668 | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// MediaFileSystemRegistry registers pictures directories and media devices as
// File API filesystems and keeps track of the path to filesystem ID ma... | 1,816 |
3,066 | /*
* Licensed to Crate.io GmbH ("Crate") under one or more contributor
* license agreements. See the NOTICE file distributed with this work for
* additional information regarding copyright ownership. Crate licenses
* this file to you under the Apache License, Version 2.0 (the "License");
* you may not use this f... | 774 |
1,338 | /*
* Copyright 2005-2012 Haiku, Inc. All Rights Reserved.
* Distributed under the terms of the MIT License.
*/
#ifndef _WCTYPE_H_
#define _WCTYPE_H_
#include <wchar.h>
typedef int wctrans_t;
#ifdef __cplusplus
extern "C" {
#endif
extern int iswalnum(wint_t wc);
extern int iswalpha(wint_t wc);
extern int iswc... | 461 |
575 | // 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 CC_LAYERS_LAYER_LIST_ITERATOR_H_
#define CC_LAYERS_LAYER_LIST_ITERATOR_H_
#include <stdlib.h>
#include <vector>
#include "cc/cc_export.h"
names... | 492 |
372 | <filename>lwsecurity/servlets/src/com/likewise/auth/filter/spnego/LikewiseHttpServletRequestWrapper.java
/*
* Copyright (c) BeyondTrust Software. All rights reserved.
*
* Module Name:
*
* LikewiseHttpServletRequestWrapper.java
*
* Abstract:
*
* Likewise Authentication
*
* ... | 1,077 |
1,585 | /*
* Copyright (C) by Argonne National Laboratory.
* See COPYRIGHT in top-level directory.
*/
#include "mpl.h"
#include <dlfcn.h>
#include <assert.h>
#define CUDA_ERR_CHECK(ret) if (unlikely((ret) != cudaSuccess)) goto fn_fail
#define CU_ERR_CHECK(ret) if (unlikely((ret) != CUDA_SUCCESS)) goto fn_fail
typed... | 4,091 |
412 | /*******************************************************************\
Module: Abstract Interpretation
Author: <NAME>, <EMAIL>
\*******************************************************************/
/// \file
/// Abstract Interpretation Domain
///
/// An abstract domain is an over-approximation of a set of possible va... | 2,494 |
409 | //![includes]
#include <seqan/stream.h>
#include <seqan/seq_io.h>
//![includes]
//![custom_file]
namespace seqan
{
// Your custom file format.
struct MyFastaAdaptor_;
using MyFastaAdaptor = Tag<MyFastaAdaptor_>;
// Specilaize sequence input file with custom tag.
using MySeqFileIn = FormattedFile<Fastq, Input, MyFastaA... | 713 |
5,447 | """02. Train Image Classification with Auto Estimator
=====================================================
This tutorial goes through the basic steps of using GluonCV auto estimator to train an image classifier
with custom hyper-parameters.
"""
##########################################################
# Train with ... | 1,009 |
3,384 | //
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.
//
#pragma mark Blocks
typedef void (^CDUnknownBlockType)(void); // return type and parameters are unknown
#pragma mark -
//
// File: /Applications/Xcode.app/Contents/Developer/Platforms/... | 1,887 |
879 | package org.zstack.test.storage.backup.sftp;
import junit.framework.Assert;
import org.junit.Before;
import org.junit.Test;
import org.zstack.core.Platform;
import org.zstack.core.cloudbus.CloudBus;
import org.zstack.core.componentloader.ComponentLoader;
import org.zstack.core.config.GlobalConfigFacade;
import org.zst... | 1,472 |
348 | {"nom":"Mortagne-sur-Gironde","circ":"4ème circonscription","dpt":"Charente-Maritime","inscrits":772,"abs":436,"votants":336,"blancs":24,"nuls":4,"exp":308,"res":[{"nuance":"LR","nom":"<NAME>","voix":179},{"nuance":"REM","nom":"<NAME>","voix":129}]} | 98 |
1,031 | <filename>newton-3.14/sdk/dScene/dAnimationTrack.cpp
/////////////////////////////////////////////////////////////////////////////
// Name: dAnimationTrack.h
// Purpose:
// Author: <NAME>
// Modified by:
// Created: 22/05/2010 08:02:08
// RCS-ID:
// Copyright: Copyright (c) <2010> <Newton ... | 6,190 |
3,212 | <reponame>westdart/nifi
/*
* 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
* (... | 1,146 |
823 | package org.zalando.problem.spring.webflux.advice.http;
import org.apiguardian.api.API;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.server.NotAcceptableStatusException;
import org.springframework.web.server.ServerWebExc... | 361 |
768 | package net.engio.mbassy;
import net.engio.mbassy.bus.MBassador;
import net.engio.mbassy.bus.common.DeadMessage;
import net.engio.mbassy.common.ConcurrentExecutor;
import net.engio.mbassy.common.ListenerFactory;
import net.engio.mbassy.common.MessageBusTest;
import net.engio.mbassy.common.TestUtil;
import net.engio.mb... | 1,708 |
310 | <reponame>dekimir/RamFuzz
// Copyright 2016-2018 The RamFuzz contributors. 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/LI... | 902 |
1,192 | <reponame>clayne/DirectXShaderCompiler
// RUN: %clang_cc1 -triple i686 -fsyntax-only -verify %s
// RUN: %clang_cc1 -triple x86_64 -fsyntax-only -verify %s
void I(int i, int j) {
static const int BelowMin = -1;
static const int AboveMax = 32;
__asm__("xorl %0,%2"
: "=r"(i)
: "0"(i), "I"(j)); /... | 1,923 |
850 | <gh_stars>100-1000
/* Copyright 2017 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by ... | 463 |
3,055 | /*
u8x8_d_st75320.c
Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/)
Copyright (c) 2019, <EMAIL>
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... | 4,738 |
384 | /*
* Copyright 2002-2014 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | 3,087 |
335 | {
"word": "Inconvenience",
"definitions": [
"Cause trouble or difficulty to."
],
"parts-of-speech": "Verb"
} | 60 |
317 | <reponame>heralex/OTB<gh_stars>100-1000
/*
* Copyright (C) 2005-2020 Centre National d'Etudes Spatiales (CNES)
*
* This file is part of Orfeo Toolbox
*
* https://www.orfeo-toolbox.org/
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with t... | 710 |
4,213 | <gh_stars>1000+
from abc import abstractmethod
from inspect import Parameter
from typing import Optional, Tuple
from parso.tree import search_ancestor
from jedi.parser_utils import find_statement_documentation, clean_scope_docstring
from jedi.inference.utils import unite
from jedi.inference.base_value import ValueSet... | 10,260 |
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.communication.callingserver.implementation.models;
import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty... | 366 |
1,609 | #
# Copyright (C) 2000 <NAME>
#
""" unit tests for the Neural network trainer implementation
this basically works out **all** of the network code
"""
import unittest
from rdkit.ML.Neural.ActFuncs import Sigmoid, TanH
from rdkit.ML.Neural.NetNode import NetNode
from rdkit.ML.Neural.Network import Network
cla... | 1,060 |
596 | <gh_stars>100-1000
#pragma once
#include "Common/Common.h"
#include "ThreadEvent.h"
#include <thread>
#include <string>
class Runnable;
class ThreadManager;
class RunnableThread
{
friend class ThreadManager;
public:
RunnableThread();
virtual ~RunnableThread();
static Runnab... | 518 |
4,036 | <filename>python/ql/test/experimental/dataflow/typetracking/import_as_attr.py<gh_stars>1000+
from module import attr as attr_ref
x = attr_ref
def fun():
y = attr_ref
# The following should _not_ be a reference to the above module, since we don't actually import it.
z = module
| 98 |
1,844 | <filename>beatrix/src/test/java/org/killbill/billing/beatrix/integration/db/TestDBRouter.java
/*
* Copyright 2014-2018 Groupon, Inc
* Copyright 2014-2018 The Billing Project, LLC
*
* The Billing Project licenses this file to you under the Apache License, version 2.0
* (the "License"); you may not use this file exc... | 2,295 |
307 | <gh_stars>100-1000
/*
* Copyright 2017 Microsoft, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License")
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... | 753 |
190,993 | <filename>tensorflow/core/kernels/control_flow_ops.h
/* Copyright 2015 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/license... | 1,481 |
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.healthbot.fluent.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.management.Resource;
import com.azure.co... | 1,113 |
6,958 | <gh_stars>1000+
//
// BF16Backend.hpp
// MNN
//
// Created by MNN on 2020/01/26.
// Copyright © 2018, Alibaba Group Holding Limited
//
#ifndef BF16Backend_hpp
#define BF16Backend_hpp
#include "backend/cpu/CPUBackend.hpp"
#include "core/Macro.h"
#include "core/TensorUtils.hpp"
namespace MNN {
class BF16Backend : p... | 554 |
8,315 | <filename>epoxy-processortest/src/test/resources/RequireAbstractModelPassesClassWithAttribute.java
package com.airbnb.epoxy.configtest;
import com.airbnb.epoxy.EpoxyAttribute;
import com.airbnb.epoxy.EpoxyModel;
public abstract class RequireAbstractModelPassesClassWithAttribute extends EpoxyModel<Object> {
@EpoxyA... | 125 |
987 | <filename>bounter/tests/hashtable/test_htc_update.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Author: <NAME> <<EMAIL>>
# Copyright (C) 2017 Rare Technologies
#
# This code is distributed under the terms and conditions
# from the MIT License (MIT).
import unittest
from bounter import HashTable
long_long_max ... | 1,438 |
2,077 | <filename>Libraries/xcdriver/Sources/LicenseAction.cpp
/**
Copyright (c) 2016-present, Facebook, Inc.
All rights reserved.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree.
*/
#include <xcdriver/LicenseAction.h>
#include <string>
#incl... | 324 |
712 | <gh_stars>100-1000
/**
* Auto-configuration for Spring Cloud GCP Trace module related to Sleuth and Stackdriver integration.
*/
package org.springframework.cloud.gcp.autoconfigure.trace.sleuth;
| 56 |
335 | {
"word": "Untested",
"definitions": [
"(of an idea, product, or person) not subjected to examination, experiment, or experience; unproven."
],
"parts-of-speech": "Adjective"
} | 75 |
1,247 | // Copyright 2019 <NAME>. See LICENSE file for terms.
#include "test.hpp"
void func(int n, int k, int j) {
path_start();
int x=0;
if (n == 0) {
x++;
}
if (k == 0) {
x++;
}
if (j == 0) {
x++;
}
if (x == 3) {
path_goal();
}
// Not enough increments to reach 5.
volatile int t = ... | 205 |
432 | <reponame>lambdaxymox/DragonFlyBSD<gh_stars>100-1000
/* mpc_pow_d -- Raise a complex number to a double-precision power.
Copyright (C) 2009 INRIA
This file is part of GNU MPC.
GNU MPC is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by t... | 442 |
412 | /*******************************************************************\
Module: Loop Acceleration
Author: <NAME>
\*******************************************************************/
/// \file
/// Loop Acceleration
#ifndef CPROVER_GOTO_INSTRUMENT_ACCELERATE_ENUMERATING_LOOP_ACCELERATION_H
#define CPROVER_GOTO_INSTRU... | 815 |
2,671 | <filename>test/run/t392.py<gh_stars>1000+
# Ship class
class Ship:
def __init__(self, name):
self.name = name
self.thrust = False
def thrust(self):
self.thrust = True
print "Thrust", self.thrust
my_ship = Ship("a_name")
my_ship.thrust()
| 131 |
881 | from snakeeyes.blueprints.page.views import page
| 13 |
692 | /*
* Copyright (C) 2013, Northwestern University and Argonne National Laboratory
* See COPYRIGHT notice in top-level directory.
*/
/* $Id: header_consistency.c 2744 2016-12-28 16:25:22Z wkliao $ */
/* This program tests if PnetCDF can detect file header inconsistency and
* overwrite the inconsistent header with ... | 6,288 |
1,738 | <reponame>jeikabu/lumberyard
/*
* 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 provid... | 2,188 |
746 | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 4,022 |
613 | <filename>src/test/java/nl/jqno/equalsverifier/testhelpers/FactoryCacheFactory.java
package nl.jqno.equalsverifier.testhelpers;
import static nl.jqno.equalsverifier.internal.prefabvalues.factories.Factories.values;
import nl.jqno.equalsverifier.internal.prefabvalues.FactoryCache;
public final class FactoryCacheFacto... | 413 |
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.
#ifndef IOS_CHROME_BROWSER_SESSIONS_SCENE_UTIL_TEST_SUPPORT_H_
#define IOS_CHROME_BROWSER_SESSIONS_SCENE_UTIL_TEST_SUPPORT_... | 226 |
15,588 | /*
* 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 ... | 1,614 |
450 | //===---------------------------------------------------------------------===//
//
// The ONNC Project
//
// Copyright(c) 2018, The ONNC Team
//
// This file is part of the ONNC Project and is distributed under
// 3-clause BSD license (https://opensource.org/licenses/BSD-3-Clause)
//
// See ... | 1,153 |
515 | <filename>Libs/Widgets/ctkToolTipTrapper.h
/*=========================================================================
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 ... | 1,244 |
605 | <reponame>kasohong/mqcloud
package com.sohu.tv.mq.cloud.util;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletRequest;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.lang3.Str... | 2,670 |
348 | {"nom":"Sottevast","circ":"3ème circonscription","dpt":"Manche","inscrits":1025,"abs":501,"votants":524,"blancs":13,"nuls":0,"exp":511,"res":[{"nuance":"REM","nom":"<NAME>","voix":220},{"nuance":"FI","nom":"<NAME>","voix":94},{"nuance":"LR","nom":"<NAME>","voix":73},{"nuance":"FN","nom":"Mme <NAME>","voix":62},{"nuance... | 211 |
925 | <filename>tests/test_load.py
import pytest
import re
from test_layout import verify_frame_objects_via_dump
@pytest.mark.parametrize("invalid_layout,error_pos", [
('(', 1),
('()', 1),
('foo baar', 0),
('(foo baar', 1),
('((clients max:0 ))', 1),
('(clients)', 8),
('(clients )', 9),
('(s... | 3,362 |
2,542 | <reponame>gridgentoo/ServiceFabricAzure
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ----------------------------------------------------... | 9,582 |
416 | <gh_stars>100-1000
// This file is distributed under the MIT license.
// See the LICENSE file for details.
#include <visionaray/math/intersect.h> // hit_record
#include <visionaray/get_color.h>
using namespace visionaray;
int main()
{
#if defined GET_COLOR_FLOAT4
vector<3, float>* colors;
hit_record<basic... | 821 |
348 | {"nom":"Castelnou","circ":"4ème circonscription","dpt":"Pyrénées-Orientales","inscrits":331,"abs":170,"votants":161,"blancs":0,"nuls":27,"exp":134,"res":[{"nuance":"REM","nom":"<NAME>","voix":82},{"nuance":"FN","nom":"<NAME>","voix":52}]} | 95 |
419 | <gh_stars>100-1000
#pragma once
#include "EntityComponent.h"
#include "System/Core/Math/BoundingVolumes.h"
#include "System/Core/Math/Transform.h"
//-------------------------------------------------------------------------
namespace KRG
{
class KRG_ENGINE_CORE_API SpatialEntityComponent : public EntityComponent
... | 3,769 |
454 | <filename>apps/pretrained_compound/pretrain_gnns/pretrain_attrmask.py
#!/usr/bin/python
#-*-coding:utf-8-*-
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "Licens... | 2,758 |
886 | /*
* Copyright 2020 flow.ci
*
* 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 wr... | 1,134 |
456 | // SPDX-License-Identifier: BSD-3-Clause
// Copyright (c) 2019-2020 <NAME>
// All rights reserved.
#pragma once
#include <djvScene3D/IPrimitive.h>
#include <djvGeom/PointList.h>
namespace djv
{
namespace Scene3D
{
//! Poly-line primitive.
class PolyLinePrimitive : public IPrimitive
{... | 511 |
831 | /*
* Copyright (C) 2016 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,675 |
3,485 | <filename>simple-rules-spel/src/test/resources/composite-rule-invalid-empty-composing-rules.json<gh_stars>1000+
[
{
"name": "invalid rule",
"compositeRuleType": "UnitRuleGroup",
"priority": 1,
"composingRules": []
}
]
| 98 |
407 | package com.alibaba.tesla.appmanager.server.repository.mapper;
import com.alibaba.tesla.appmanager.server.repository.domain.RtTraitInstanceDO;
import com.alibaba.tesla.appmanager.server.repository.domain.RtTraitInstanceDOExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
... | 283 |
819 | <filename>PaddleCV/adversarial/advbox/models/__init__.py
"""
Models __init__.py
""" | 33 |
852 | <reponame>togawamanabu/RoboND-DeepRL-Project<filename>c/pyTorch.h
/*
* http://github.com/dusty-nv/jetson-reinforcement
*/
#ifndef __PY_TORCH_H_
#define __PY_TORCH_H_
#ifdef USE_PYTHON
#include <stdio.h>
#include <stdint.h>
#include <Python.h>
#include <TH/TH.h>
#include <THC/THC.h>
#include <THP.h>
#include <THCP... | 168 |
1,194 | package ca.uhn.fhir.jpa.cache.config;
import ca.uhn.fhir.jpa.cache.IResourceChangeListener;
import ca.uhn.fhir.jpa.cache.ResourceChangeListenerCache;
import ca.uhn.fhir.jpa.cache.ResourceChangeListenerCacheFactory;
import ca.uhn.fhir.jpa.searchparam.SearchParameterMap;
import org.springframework.context.annotation.Bea... | 288 |
447 | <gh_stars>100-1000
"""
Core auditing APIs.
"""
import logging
from dataclasses import dataclass
from typing import Iterator, List, Tuple
from pip_audit._dependency_source import DependencySource
from pip_audit._service import Dependency, VulnerabilityResult, VulnerabilityService
logger = logging.getLogger(__name__)
... | 604 |
665 | <filename>http/http_named_endpoint.h<gh_stars>100-1000
/* http_named_endpoint.h -*- C++ -*-
<NAME>, 9 November 2012
Copyright (c) 2012 mldb.ai inc. All rights reserved.
This file is part of MLDB. Copyright 2015 mldb.ai inc. All rights reserved.
*/
#pragma once
#inc... | 675 |
3,428 | <reponame>ghalimi/stdlib
{"id":"01362","group":"easy-ham-2","checksum":{"type":"MD5","value":"a63dddffa1f9903a480cd9aaaf6d16f3"},"text":"From <EMAIL> Fri Aug 9 15:34:57 2002\nReturn-Path: <<EMAIL>>\nDelivered-To: yyyy@<EMAIL>.netnoteinc.com\nReceived: from localhost (localhost [127.0.0.1])\n\tby phobos.labs.netnotein... | 1,608 |
1,163 | #!/usr/bin/env python3
# Copyright 2021 The IREE Authors
#
# Licensed 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
"""Diffs two local benchmark result JSON files.
Example usage:
python3 diff_l... | 978 |
1,546 | /*
* Copyright (C) 2017 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... | 7,557 |
562 | <reponame>rockandsalt/conan-center-index
#include <assert.h>
#include <stdbool.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <mikktspace.h>
static int GetNumFaces(const SMikkTSpaceContext *pContext)
{
return 0;
}
int main()
{
SMikkTSpaceInterface sInterface = {NULL};... | 202 |
343 | <reponame>nzeh/syzygy<gh_stars>100-1000
// Copyright 2011 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,633 |
2,550 | //
// Copyright 2021 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
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to ... | 2,055 |
467 | <reponame>retr0-13/armitage
package ui;
import java.io.*;
import msf.*;
import javax.swing.*;
import java.util.*;
/* upload a file to the team server... */
public class UploadFile implements Runnable {
protected FileInputStream in = null;
protected byte[] buffer = new byte[256 * 1024];
protected File fi... | 1,263 |
14,668 | // 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 "net/nqe/network_id.h"
#include <tuple>
#include "base/base64.h"
#include "base/strings/string_number_conversions.h"
#include "net/nqe/proto/ne... | 988 |
852 | <reponame>ckamtsikis/cmssw<gh_stars>100-1000
// -*- C++ -*-
#ifndef METReco_SpecificPFMETData_h
#define METReco_SpecificPFMETData_h
/// \class SpecificPFMETData
///
/// \short MET made from Particle Flow Candidates
///
/// \authors <NAME>, UIC & R.Remington, UFL
//__________________________________________________... | 440 |
531 | <filename>Adjust/sdk-core/src/main/java/com/adjust/sdk/AttributionHandler.java<gh_stars>100-1000
//
// AttributionHandler.java
// Adjust SDK
//
// Created by <NAME> (@nonelse) on 7th November 2014.
// Copyright (c) 2014-2018 Adjust GmbH. All rights reserved.
//
package com.adjust.sdk;
import android.net.Uri;
imp... | 4,187 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.