max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
454 | # Copyright (c) 2019 PaddlePaddle 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 applic... | 7,206 |
348 | <gh_stars>100-1000
{"nom":"Sequedin","circ":"11ème circonscription","dpt":"Nord","inscrits":3170,"abs":1682,"votants":1488,"blancs":87,"nuls":25,"exp":1376,"res":[{"nuance":"REM","nom":"<NAME>","voix":869},{"nuance":"FN","nom":"<NAME>","voix":507}]} | 101 |
937 | package cyclops.futurestream.react.simple;
import static org.hamcrest.Matchers.equalTo;
import static org.junit.Assert.assertThat;
import java.io.IOException;
import java.util.concurrent.atomic.AtomicInteger;
import org.junit.Before;
import org.junit.Test;
import cyclops.futurestream.SimpleReact;
import com.oath.cy... | 637 |
390 | /*
* Copyright 2015 Rackspace
*
* 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 ... | 2,002 |
9,402 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
#include "createdump.h"
#ifndef THUMB_CODE
#define THUMB_CODE 1
#endif
#ifndef __GLIBC__
typedef int __ptrace_request;
#endif
extern CrashInfo* g_crashInfo;
// Helper for UnwindN... | 6,755 |
319 | <gh_stars>100-1000
/**
* 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 sourc... | 3,789 |
703 | <reponame>Tekh-ops/ezEngine<gh_stars>100-1000
#include <EditorEngineProcessFramework/EditorEngineProcessFrameworkPCH.h>
#include <EditorEngineProcessFramework/EngineProcess/ViewRenderSettings.h>
#include <RendererCore/Components/FogComponent.h>
#include <RendererCore/Components/SkyBoxComponent.h>
#include <RendererCor... | 3,525 |
1,138 | from ssg.utils import parse_template_boolean_value
def preprocess(data, lang):
# Default value of default_is_enabled is false;
# When variable_name is set, this option is disabled.
# It is not easy to check if the value of an XCCDF Value is the default in a template.
data["default_is_enabled"] = parse... | 679 |
809 | /**
* @file
* @brief
*
* @date 11.03.13
* @author <NAME>
*/
#include <errno.h>
#include <sys/resource.h>
#include <kernel/task.h>
#include <errno.h>
#include <kernel/task/task_table.h>
#include <kernel/task/resource/u_area.h>
#include <util/math.h>
static int xetpriority_match(int which, id_t who, struct task *... | 864 |
629 | <reponame>tobaidullah/2
#! /usr/bin/env python
"""
Learning Series: Network Programmability Basics
Module: Network Controllers
Lesson: Program your own DNA with APIC-EM APIs
Author: <NAME> <<EMAIL>>
troubleshoot_full.py
Illustrate the following concepts:
- Automating common information gathering used in troubleshootin... | 2,102 |
939 | <filename>research/gam/gam/trainer/adversarial_sparse.py
# 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
#
# Un... | 2,375 |
703 | #pragma once
#include <Foundation/Containers/Bitfield.h>
#include <Foundation/Containers/HybridArray.h>
#include <Foundation/Strings/String.h>
#include <Foundation/Strings/StringBuilder.h>
#include <Foundation/Types/Bitflags.h>
#include <Foundation/Types/Enum.h>
// Standard operators for overloads of common data type... | 1,893 |
605 | <gh_stars>100-1000
// RUN: %clang_cc1 -triple arm64-apple-ios7 -target-feature +neon -ffreestanding -flax-vector-conversions=none -emit-llvm -o - %s | FileCheck %s
// REQUIRES: aarch64-registered-target || arm-registered-target
#include <arm_neon.h>
float64x2_t rnd5(float64x2_t a) { return vrndq_f64(a); }
// CHECK: ... | 467 |
990 | #coding:utf-8
import time
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
driver = webdriver.Firefox()
driver.get("http://www.baidu.com")
assert u"百度" in driver.title
elem = driver.find_element_by_name("wd")
elem.clear()
elem.send_keys(u"网络爬虫")
elem.send_keys(Keys.RETURN)
time.sleep(3)
a... | 166 |
504 | <reponame>steakknife/pcgeos
/***********************************************************************
*
* Copyright (c) Berkeley Softworks 1990 -- All Rights Reserved
*
* PROJECT: PCGEOS
* MODULE: vmAttr.c
* FILE: vmAttr.c
*
* AUTHOR: <NAME>: March 29, 1990
*
* ROUTINES:
* Name Des... | 1,424 |
372 | <reponame>kbore/pbis-open
/* Editor Settings: expandtabs and use 4 spaces for indentation
* ex: set softtabstop=4 tabstop=8 expandtab shiftwidth=4: *
* -*- mode: c, c-basic-offset: 4 -*- */
/*
* Copyright © BeyondTrust Software 2004 - 2019
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0... | 609 |
2,023 | """
CdCopy: Windows utility for copying contents of a CD/DVD to local hard disk with
most free space to a directory named for full name of CD/DVD.
It would be convenient to drag and drop a CD/DVD icon onto a local hard drive and
have the Windows GUI create a directory of the same full name as the CD/DVD
then copy CD/... | 1,503 |
380 | <gh_stars>100-1000
"""
Types for environment actions.
"""
from .handle import Handle
def key_for_code(code):
"""
Create a KeyAction with the given key code.
The result is None if the code is not found.
The result will have no 'event', so it will be
necessary to run with_event() on it.
"""
... | 1,366 |
28,056 | <filename>src/test/java/com/alibaba/json/bvt/parser/deser/FieldDeserializerTest.java
package com.alibaba.json.bvt.parser.deser;
import org.junit.Assert;
import junit.framework.TestCase;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONException;
public class FieldDeserializerTest extends TestCase {
... | 364 |
435 | <filename>pycon-au-2019/videos/machine-learning-and-cyber-security-detecting-malicious-urls-in-the-haystack.json
{
"copyright_text": null,
"description": "Today, security teams are in an increasingly one-sided battle to defend against a myriad of cyber attacks. Web-based attacks are often devastating, with conventi... | 499 |
1,958 | <gh_stars>1000+
package com.freetymekiyan.algorithms.level.medium;
/**
* Follow up for "Unique Paths":
* <p>
* Now consider if some obstacles are added to the grids. How many unique paths
* would there be?
* <p>
* An obstacle and empty space is marked as 1 and 0 respectively in the grid.
* <p>
* For example,
... | 683 |
3,049 | <filename>engine/src/test/java/io/seldon/engine/filters/TestXSSFilter.java
package io.seldon.engine.filters;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.verify;
import java.io.IOException;
import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.http.... | 307 |
652 | <filename>pkgs/ipywidgets-4.1.1-py27_0/lib/python2.7/site-packages/ipywidgets/widgets/widget_selection.py
"""Selection classes.
Represents an enumeration using a widget.
"""
# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
from collections import OrderedDict
from t... | 3,608 |
3,102 | <reponame>medismailben/llvm-project
// RUN: %clang_analyze_cc1 -analyzer-checker=core,debug.ExprInspection -analyzer-config c++-allocator-inlining=true -std=c++11 -verify -analyzer-config eagerly-assume=false %s
void clang_analyzer_eval(bool);
typedef __typeof__(sizeof(int)) size_t;
void *conjure();
void exit(int);
... | 545 |
439 | <filename>src/main/route/com/baidu/hsb/route/visitor/HPartitionVisitor.java
/**
* Baidu.com,Inc.
* Copyright (c) 2000-2013 All Rights Reserved.
*/
package com.baidu.hsb.route.visitor;
import java.util.HashSet;
import java.util.Set;
import com.baidu.hsb.parser.ast.expression.BinaryOperatorExpression;
import com.bai... | 15,383 |
2,151 | // 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.
#ifndef REMOTING_PROTOCOL_MOUSE_INPUT_FILTER_H_
#define REMOTING_PROTOCOL_MOUSE_INPUT_FILTER_H_
#include "base/compiler_specific.h"
#include "base/ma... | 443 |
1,144 | <filename>backend/de.metas.ui.web.base/src/main/java/de/metas/ui/web/order/pricingconditions/view/PricingConditionsRowData.java
package de.metas.ui.web.order.pricingconditions.view;
import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentMap;
import java.util.fun... | 2,380 |
648 | {"resourceType":"CodeSystem","id":"verificationresult-primary-source-type","meta":{"lastUpdated":"2019-11-01T09:29:23.356+11:00","profile":["http://hl7.org/fhir/StructureDefinition/shareablecodesystem"]},"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-wg","valueCode":"pa"},{"url":"http:... | 502 |
1,781 | <gh_stars>1000+
/*
* Copyright 2013 <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 by applicable law or agr... | 2,224 |
5,169 | <gh_stars>1000+
{
"name": "EMAccordionTableViewController",
"version": "0.5.3",
"summary": "EMAccordionTableViewController is a Expandable / Collapsable UITableView.",
"homepage": "https://github.com/ennioma/EMAccordionTableViewController",
"license": {
"type": "APACHE",
"file": "LICENSE"
},
"auth... | 341 |
558 | <reponame>Endava/cats<filename>src/test/java/com/endava/cats/fuzzer/fields/trailing/TrailingSingleCodePointEmojisInFieldsValidateTrimFuzzerTest.java
package com.endava.cats.fuzzer.fields.trailing;
import com.endava.cats.args.FilesArguments;
import com.endava.cats.fuzzer.http.ResponseCodeFamily;
import com.endava.cats.... | 1,258 |
317 | <filename>test/c/bits/countlz_zero_fail.c
#include "smack.h"
#include <assert.h>
#include <stdint.h>
// @expect error
// @flag --unroll=3
uint32_t ctlz32(uint32_t x) {
uint32_t n = 32;
uint32_t y;
y = x >> 16;
if (y != 0) {
n = n - 16;
x = y;
}
y = x >> 8;
if (y != 0) {
n = n - 8;
x = y... | 377 |
1,403 | <reponame>JustPugDev/dynmap
package org.dynmap.modsupport;
public interface ShulkerTextureFile extends TextureFile {
}
| 41 |
2,591 | <filename>liquibase-integration-tests/src/test/java/liquibase/test/DatabaseTest.java
package liquibase.test;
import liquibase.database.Database;
public interface DatabaseTest {
public void performTest(Database database) throws Exception;
}
| 74 |
735 | <reponame>wlbaker/mvel
package org.mvel2.marshalling;
import java.beans.BeanInfo;
import java.beans.IntrospectionException;
import java.beans.Introspector;
import java.beans.PropertyDescriptor;
import java.lang.reflect.Array;
import java.lang.reflect.Method;
import java.math.BigDecimal;
import java.math.BigInteger;
im... | 10,416 |
2,621 | <filename>Osiris/Hooks/VmtHook.h
#pragma once
#include <cstddef>
#include <cstdint>
#include <memory>
#include "../SDK/Platform.h"
class VmtHook {
public:
void init(void* base) noexcept;
void restore() const noexcept;
void hookAt(std::size_t index, void* fun) const noexcept;
template<typename T, std... | 325 |
764 | <gh_stars>100-1000
{
"symbol": "NEST",
"address": "0x04abEdA201850aC0124161F037Efd70c74ddC74C",
"overview": {
"en": "NEST is a decentralized financial (DeFi) service platform. At present, NEST DAPP based on Ethereum has been launched to centralize the digital asset mortgage lending function: support... | 717 |
4,163 | <filename>proselint/checks/skunked_terms/__init__.py<gh_stars>1000+
"""Avoid skunked terms."""
| 37 |
421 | <reponame>hamarb123/dotnet-api-docs<gh_stars>100-1000
// <snippet1>
#using <System.Web.dll>
#using <System.dll>
using namespace System;
using namespace System::Web::UI;
using namespace System::Web::UI::Adapters;
public ref class CustomControlAdapter: public ControlAdapter
{
protected:
virtual void Rende... | 298 |
304 | <reponame>IlyaOstashkov/CurrencyExchange
////////////////////////////////////////////////////////////////////////////////
//
// TYPHOON FRAMEWORK
// Copyright 2013, Typhoon Framework Contributors
// All Rights Reserved.
//
// NOTICE: The authors permit you to use, modify, and distribute this file
// in accordance ... | 153 |
737 | # -*- coding: utf-8 -*-
from abc import ABCMeta
from typing import Dict
from videoanalyst.utils import Registry
TRACK_DATAPIPELINES = Registry('TRACK_DATAPIPELINES')
VOS_DATAPIPELINES = Registry('VOS_DATAPIPELINES')
TASK_DATAPIPELINES = dict(
track=TRACK_DATAPIPELINES,
vos=VOS_DATAPIPELINES,
)
... | 776 |
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... | 5,495 |
566 | package org.kohsuke.args4j.spi;
import java.util.HashMap;
import java.util.Map;
import org.kohsuke.args4j.*;
/**
* Parses options into a {@link Map}.
*
* <pre><code>
* class Foo {
* {@literal @}Option(name="-P",handler={@link MapOptionHandler}.class)
* Map<String,String> args;
* }
* </code></pre>
*... | 1,088 |
937 | from django.core.management import call_command
from django.test import TestCase
from django.test.utils import override_settings
class TestRunManagePyCheck(TestCase):
@override_settings(
STRIPE_TEST_SECRET_KEY="sk_test_foo",
STRIPE_LIVE_SECRET_KEY="sk_live_foo",
STRIPE_TEST_PUBLIC_KEY="pk_... | 216 |
876 | #include <catch2/catch.hpp>
#include <rapidcheck/catch.h>
#include "util/GenUtils.h"
#include "util/ShrinkableUtils.h"
#include "util/Predictable.h"
using namespace rc;
using namespace rc::test;
TEST_CASE("gen::maybe") {
prop("if size is 0, generates only Nothing",
[](const Random &random) {
const ... | 1,007 |
858 | // Copyright (c) 2011-present, Facebook, Inc. All rights reserved.
// This source code is licensed under both the GPLv2 (found in the
// COPYING file in the root directory) and Apache 2.0 License
// (found in the LICENSE.Apache file in the root directory).
//
// This file implements the callback "bridge" between J... | 341 |
784 | package jforgame.server.game.skill.facade;
import jforgame.server.game.skill.message.ReqUseSkill;
import jforgame.socket.annotation.Controller;
import jforgame.socket.annotation.RequestMapping;
@Controller
public class SkillController {
@RequestMapping
public void reqUseSkill(long playerId, ReqUseSkill request) {
... | 104 |
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... | 1,405 |
328 | <gh_stars>100-1000
/*
* Copyright 2017-present The Material Motion 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... | 382 |
353 | package org.nutz.plugins.fiddler.server;
import java.security.KeyPair;
import java.security.Security;
import java.security.cert.X509Certificate;
import org.bouncycastle.jce.provider.BouncyCastleProvider;
import org.nutz.lang.Streams;
import org.nutz.log.Log;
import org.nutz.log.Logs;
import org.nutz.plugins.fiddler.c... | 1,981 |
4,772 | /*
* Copyright 2015-2021 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
*
* Unless required by a... | 278 |
1,338 | <filename>src/apps/installer/PartitionMenuItem.cpp
/*
* Copyright 2005, <NAME>. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#include <View.h>
#include <stdlib.h>
#include <string.h>
#include "PartitionMenuItem.h"
PartitionMenuItem::PartitionMenuItem(const char* name, const char* labe... | 363 |
1,315 | <gh_stars>1000+
/**
*
* @file CoroMapper.h
* @author <NAME>
*
* Copyright 2018, <NAME>. All rights reserved.
* https://github.com/an-tao/drogon
* Use of this source code is governed by a MIT license
* that can be found in the License file.
*
* Drogon
*
*/
#pragma once
#include <functional>
#include... | 10,969 |
355 | <filename>benchmark/src/main/java/net/tomp2p/SendDirectLocalProfiler.java
package net.tomp2p;
import net.tomp2p.futures.FutureChannelCreator;
import net.tomp2p.futures.FutureResponse;
import net.tomp2p.p2p.builder.SendDirectBuilder;
import net.tomp2p.peers.PeerAddress;
public class SendDirectLocalProfiler extends Sen... | 494 |
348 | <filename>src/toil/test/docs/scripts/tutorial_invokeworkflow.py<gh_stars>100-1000
from toil.common import Toil
from toil.job import Job
class HelloWorld(Job):
def __init__(self, message):
Job.__init__(self, memory="2G", cores=2, disk="3G")
self.message = message
def run(self, fileStore):
... | 255 |
453 | <gh_stars>100-1000
/* Misc. operating system stubs. */
#include <_ansi.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <signal.h>
/* _raise(), getpid(), and kill() are required by abort().
getpid/kill are prefixed with '_' because of MISSING_SYSCALL_NAMES. */
int _DEFUN(_raise,(sig),
int sig)
{
r... | 226 |
2,338 | <gh_stars>1000+
package graphs.traversal;
import java.util.ArrayList;
import java.util.Stack;
/*
* Strongly Connected Components (Directed Graphs) - Tarjan's Algorithm (DFS Variant)
*/
public class StronglyConnectedComponents1 {
static ArrayList<Integer>[] adjList;
static int V, counter, SCC, dfs_num[... | 510 |
852 | <gh_stars>100-1000
#ifndef DQM_SiStripMonitorHardware_SiStripSpyUnpacker_H
#define DQM_SiStripMonitorHardware_SiStripSpyUnpacker_H
#include "DataFormats/Common/interface/DetSetVector.h"
// Standard includes.
#include <vector>
#include <utility>
#include <cstdint>
// Other classes
class FEDRawDataCollection;
class FE... | 867 |
606 | <filename>util/compute_boundary_acc.py<gh_stars>100-1000
import numpy as np
import cv2
def get_disk_kernel(radius):
return cv2.getStructuringElement(cv2.MORPH_ELLIPSE, (radius*2+1, radius*2+1))
def compute_boundary_acc(gt, seg, mask):
gt = gt.astype(np.uint8)
seg = seg.astype(np.uint8)
mask = mask.as... | 1,275 |
3,787 | <filename>python/federatedml/framework/homo/test/blocks/test_loss_scatter.py
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# ... | 646 |
1,845 | package org.rajawali3d.debug;
import org.rajawali3d.Object3D;
import org.rajawali3d.materials.Material;
import org.rajawali3d.math.vector.Vector3;
import org.rajawali3d.primitives.Cube;
import org.rajawali3d.primitives.Cylinder;
import org.rajawali3d.primitives.NPrism;
/**
* @author <NAME> (<EMAIL>)
*/
public class... | 1,037 |
2,542 | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#pragma once
namespace Common... | 811 |
3,139 | //
// Created by <NAME> on 24/07/14.
//
#import <Foundation/Foundation.h>
@interface TestTableViewController : UITableViewController
@end | 47 |
487 | // Copyright 2017-2020 The Verible Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law o... | 2,238 |
463 | from typing import List, Tuple
import click
import labml_remote.distributed.torch_launch
from . import util
@click.command()
@click.option('--python-cmd', '--cmd', required=True, type=click.STRING, help='Python command to run')
@click.option('--nproc-per-node', required=True, type=click.INT, help='Number of process... | 734 |
461 | /*
* Academic License - for use in teaching, academic research, and meeting
* course requirements at degree granting institutions only. Not for
* government, commercial, or other organizational use.
*
* _coder_updateEKFQuatAtt_mex.h
*
* Code generation for function '_coder_updateEKFQuatAtt_mex'
*
*/
#ifndef ... | 308 |
839 | <filename>core/src/main/java/org/apache/cxf/ws/addressing/ContextUtils.java
/**
* 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 fi... | 9,200 |
601 | <gh_stars>100-1000
/*
* Copyright 2019-2021 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
*
* U... | 3,609 |
578 | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* 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 applic... | 1,445 |
6,443 | /*
* 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,766 |
1,932 | <reponame>ruoshuixuelabi/spring-cloud-code<gh_stars>1000+
package cn.springcloud.book.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bin... | 249 |
190,993 | <reponame>ashutom/tensorflow-upstream
/* Copyright 2018 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
... | 3,994 |
4,606 | <filename>examples/docs_snippets_crag/docs_snippets_crag_tests/intro_tutorial_tests/advanced/test_config.py
from docs_snippets_crag.intro_tutorial.advanced.configuring_ops.configurable_job import (
configurable_job,
)
from docs_snippets_crag.intro_tutorial.test_util import patch_cereal_requests
@patch_cereal_requ... | 246 |
3,705 | import numpy
from chainer import functions
from chainer import testing
@testing.parameterize(*testing.product_dict(
[
{'shape': (), 'pad_width': 1, 'mode': 'constant'},
{'shape': (2, 3), 'pad_width': 0, 'mode': 'constant'},
{'shape': (2, 3), 'pad_width': 1, 'mode': 'constant'},
{'... | 1,745 |
811 | {
"description": "Selectors - NEGATED Substring matching attribute selector on middle without declared namespace (css3-modsel-143)",
"selectors": {
"*|p, *|q, *|r, *|s, *|t": "css3-modsel-143.expected0.html",
"*|q, *|s, *|t": "css3-modsel-143.expected1.html",
"div.stub *|*:not([|title*=\"on ch\"])": "cs... | 169 |
348 | {"nom":"Dunkerque","circ":"13ème circonscription","dpt":"Nord","inscrits":50280,"abs":29082,"votants":21198,"blancs":1129,"nuls":340,"exp":19729,"res":[{"nuance":"DVG","nom":"<NAME>","voix":12703},{"nuance":"FN","nom":"<NAME>","voix":7026}]} | 97 |
422 | <gh_stars>100-1000
// -*- C++ -*- Copyright (c) Microsoft Corporation; see license.txt
#ifndef MESH_PROCESSING_LIBHH_PARALLELCOORDS_H_
#define MESH_PROCESSING_LIBHH_PARALLELCOORDS_H_
#include "libHh/Grid.h" // ravel_index()
#include "libHh/Parallel.h"
namespace hh {
// *** Iterate over {1, 2, D}-dimensional grids,... | 5,419 |
3,531 | <filename>src/misc/lv_timer.h
/**
* @file lv_timer.h
*/
#ifndef LV_TIMER_H
#define LV_TIMER_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
#include "../lv_conf_internal.h"
#include "../hal/lv_hal_tick.h"
#include <stdint.h>
#include <stdbool.h>
/*********... | 1,672 |
1,020 | package org.robobinding.codegen.presentationmodel;
import java.util.Set;
import org.robobinding.codegen.presentationmodel.differentpackage.CustomClass;
/**
* @since 1.0
* @author <NAME>
*
*/
public class DefineTryToCreateProperty implements VariousProperties {
@Override
public String getProp() {
return null... | 285 |
3,673 | <reponame>BlenderGamer/Open3D
// ----------------------------------------------------------------------------
// - Open3D: www.open3d.org -
// ----------------------------------------------------------------------------
// The MIT License (MIT)
//
// Copyright (c) 2018-... | 1,325 |
327 | import unittest
import numpy as np
from spectralcluster import utils
class TestComputeAffinityMatrix(unittest.TestCase):
"""Tests for the compute_affinity_matrix function."""
def test_4by2_matrix(self):
matrix = np.array([[3, 4], [-4, 3], [6, 8], [-3, -4]])
affinity = utils.compute_affinity_matrix(matri... | 1,266 |
511 | /*
*
* Copyright 2015-2016 gRPC authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... | 4,515 |
480 | <reponame>weicao/galaxysql<gh_stars>100-1000
/*
* Copyright [2013-2021], Alibaba Group Holding Limited
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/lice... | 2,165 |
392 | /*
* Abstract hash map.
*
* A hash map is a map which stores t -> u mappings in bins according to the
* hash of t.
*
* Hash maps do not allow duplicate items in the domain.
* Note that maps are not derived from the abstract collection class.
*/
#ifndef COLLECTIONS__ABSTRACT__HASH_MAP_HH
#define COLLECTIONS__AB... | 1,635 |
450 | <filename>tools/tpcds/tools/grammar.c
/*
* 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... | 4,117 |
310 | <filename>gear/hardware/s/sp-150suw.json
{
"name": "SP 150SUw",
"description": "A monochrome laser printer.",
"url": "http://support.ricoh.com/bb/html/dr_ut_e/apc/model/sp150suw/sp150suw.htm"
} | 87 |
2,691 | /* Copyright 2016-2021 <NAME>
*
* This file is part of Nuspell.
*
* Nuspell is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later versio... | 12,581 |
1,194 | package ca.uhn.fhir.jpa.provider.r4;
import org.hl7.fhir.r4.model.Questionnaire;
import org.hl7.fhir.instance.model.api.IBaseResource;
public class QuestionnaireResourceProviderR4 extends JpaResourceProviderR4<Questionnaire> {
@Override
public Class<? extends IBaseResource> getResourceType() {
return Questionnai... | 117 |
14,668 | <reponame>zealoussnow/chromium
// Copyright 2020 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 REMOTING_PROTOCOL_WEBRTC_EVENT_LOG_DATA_H_
#define REMOTING_PROTOCOL_WEBRTC_EVENT_LOG_DATA_H_
#include <cstdint>
#... | 855 |
5,411 | <reponame>thorium-cfx/fivem
// Copyright 2013 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 "base/one_shot_event.h"
#include "base/bind.h"
#include "base/run_loop.h"
#include "base/single_thread_task_runner.h... | 1,990 |
335 | <reponame>Safal08/Hacktoberfest-1
{
"word": "Deferential",
"definitions": [
"Showing deference; respectful."
],
"parts-of-speech": "Adjective"
} | 77 |
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.util;
import java.lang.reflect.Field;
import java.lang.refle... | 2,016 |
550 | <gh_stars>100-1000
import numpy as np
from glue.utils import unbroadcast, broadcast_to
__all__ = ['points_inside_poly', 'polygon_line_intersections', 'floodfill']
def points_inside_poly(x, y, vx, vy):
if x.dtype.kind == 'M' and vx.dtype.kind == 'M':
vx = vx.astype(x.dtype).astype(float)
x = x.a... | 1,620 |
1,144 | <filename>backend/de.metas.ui.web.base/src/main/java/de/metas/ui/web/order/attachmenteditor/OrderAttachmentRow.java
/*
* #%L
* de.metas.ui.web.base
* %%
* Copyright (C) 2021 metas GmbH
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public Licen... | 3,182 |
4,812 | //===----------------------- DispatchStage.h --------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | 988 |
640 | <reponame>gxw1/review_the_national_post-graduate_entrance_examination
/*
SysenterHook.H
Author: <your name>
Last Updated: 2006-02-12
This framework is generated by EasySYS 0.3.0
This template file is copying from QuickSYS 0.3.0 written by <NAME>
*/
#ifndef _SYSENTERHOOK_H
#define _SYSENTERHO... | 915 |
575 | // 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.
#ifndef ASH_WM_SPLITVIEW_SPLIT_VIEW_DIVIDER_HANDLER_VIEW_H_
#define ASH_WM_SPLITVIEW_SPLIT_VIEW_DIVIDER_HANDLER_VIEW_H_
#include <memory>
#include "ash/... | 657 |
1,907 | <gh_stars>1000+
//
// This source file is part of appleseed.
// Visit https://appleseedhq.net/ for additional information and resources.
//
// This software is released under the MIT license.
//
// Copyright (c) 2019 <NAME>, The appleseedhq Organization
//
// Permission is hereby granted, free of charge, to any person... | 6,538 |
663 | <reponame>mchelen-gov/integrations-core
# (C) Datadog, Inc. 2021-present
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)
from packaging.version import parse
from .constants import V2
from .v1.validator import get_v1_validators
from .v2.validator import get_v2_validators
def get_... | 233 |
1,292 |
// This file is a part of Simple-XX/SimpleKernel
// (https://github.com/Simple-XX/SimpleKernel).
//
// pmm.h for Simple-XX/SimpleKernel.
#ifndef _PMM_H_
#define _PMM_H_
#include "stddef.h"
#include "stdint.h"
#include "io.h"
#include "e820.h"
#include "common.h"
#include "firstfit.h"
class PMM {
private:
static... | 634 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.