max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
2,338 | //===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | 288 |
1,444 | <gh_stars>1000+
package mage.cards.i;
import mage.abilities.Ability;
import mage.abilities.effects.OneShotEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.Outcome;
import mage.game.Game;
import mage.players.Player;
import mage.target.TargetPlayer;... | 827 |
2,971 | # Copyright 2020 - 2021 MONAI Consortium
# 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 wri... | 3,881 |
4,163 | """Denizen labels."""
from proselint.tools import memoize, preferred_forms_check
@memoize
def check(text):
"""Suggest the preferred forms.
source: Garner's Modern American Usage
source_url: http://bit.ly/1T4alrY
"""
err = "terms.denizen_labels.garner"
msg = "'{}' is the preferred denizen... | 1,667 |
2,743 | # Copyright (c) 2020-2021, NVIDIA CORPORATION.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agre... | 3,566 |
790 | #!/usr/bin/env python
#
# Copyright 2007 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 5,113 |
435 | <filename>warehouse/ingest-core/src/test/java/datawave/ingest/mapreduce/job/metrics/TestEventCountMetricsReceiver.java
package datawave.ingest.mapreduce.job.metrics;
/**
* A metrics receiver for the number of records.
*/
public class TestEventCountMetricsReceiver<OK,OV> extends BaseMetricsReceiver<OK,OV> {
... | 149 |
4,020 | <reponame>CrackerCat/Recaf<gh_stars>1000+
package me.coley.recaf.graph;
import me.coley.recaf.util.ClassUtil;
import org.objectweb.asm.ClassReader;
import java.util.Objects;
import java.util.stream.Stream;
/**
* Graph vertex with a {@link org.objectweb.asm.ClassReader} as the data.
*
* @param <G>
* The type of... | 737 |
9,717 | from colorama import Style
from contextlib import contextmanager
from typing import Any, Dict, Iterator
from queue import Queue, Empty
from xml.sax.saxutils import XMLGenerator
import codecs
import os
import sys
import time
import unicodedata
class Logger:
def __init__(self) -> None:
self.logfile = os.env... | 1,417 |
852 | <filename>CondFormats/DataRecord/src/EcalTPGFineGrainStripEERcd.cc
#include "CondFormats/DataRecord/interface/EcalTPGFineGrainStripEERcd.h"
#include "FWCore/Framework/interface/eventsetuprecord_registration_macro.h"
EVENTSETUP_RECORD_REG(EcalTPGFineGrainStripEERcd);
| 105 |
471 | <reponame>akashkj/commcare-hq
from django.test import SimpleTestCase
from smtplib import SMTPSenderRefused
from dimagi.utils.django.email import LARGE_FILE_SIZE_ERROR_CODE
from unittest.mock import create_autospec, patch, PropertyMock, ANY
from corehq.apps.reports import views
from corehq.apps.users.models import WebUs... | 3,321 |
1,073 | // RUN: clang-format -output-replacements-xml -sort-includes %s \
// RUN: | FileCheck -strict-whitespace %s
// CHECK: <?xml
// CHECK-NEXT: {{<replacements.*incomplete_format='false'}}
// CHECK-NEXT: {{<replacement.*#include <a> #include <b><}}
// CHECK-NEXT: {{<replacement.*> <}}
// CHECK-NEXT: {{<repl... | 159 |
648 | {"resourceType":"DataElement","id":"HealthcareService.telecom","meta":{"lastUpdated":"2017-04-19T07:44:43.294+10:00"},"url":"http://hl7.org/fhir/DataElement/HealthcareService.telecom","status":"draft","experimental":true,"stringency":"fully-specified","element":[{"id":"HealthcareService.telecom","path":"HealthcareServi... | 166 |
5,169 | {
"name": "SSReaderView",
"version": "0.0.1",
"summary": "A reader view for novel",
"platforms": {
"ios": "9.0"
},
"swift_versions": "5.0",
"homepage": "https://github.com/namesubai/SSReaderView.git",
"authors": {
"subai": "<EMAIL>"
},
"source": {
"git": "https://github.com/namesubai/SSR... | 214 |
713 | package org.infinispan.server.core.security.external;
import static org.infinispan.server.core.security.SubjectSaslServer.SUBJECT;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.util.concurrent.atomic.AtomicBoolean;
import javax.security.auth.Subject;
import javax.security.auth.cal... | 1,204 |
352 | /*
* Visitor.cpp
*
* This file is part of the XShaderCompiler project (Copyright (c) 2014-2018 by <NAME>)
* See "LICENSE.txt" for license information.
*/
#include "Visitor.h"
#include "AST.h"
#include "ReportIdents.h"
namespace Xsc
{
#define IMPLEMENT_VISIT_PROC(AST_NAME) \
void Visitor::Visit##AST_NAME(... | 2,249 |
384 | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribu... | 888 |
466 | from rdkit import Chem
import numpy as np
class Attribute:
def __init__(self, attr_type, name, one_hot=True, values=None):
if attr_type not in ['node', 'edge']:
raise ValueError('Invalid value for attribute type: must be "node" ' 'or "edge"')
self.attr_type = attr_type
self.nam... | 3,287 |
376 | #pragma once
#include <Register/Utility.hpp>
namespace Kvasir {
//Universal Asynchronous Receiver/Transmitter
namespace Uart0TasksStartrx{ ///<Start UART receiver
using Addr = Register::Address<0x40002000,0xffffffff,0x00000000,unsigned>;
}
namespace Uart0TasksStoprx{ ///<Stop UART receiver
... | 8,876 |
506 | <gh_stars>100-1000
package com.ewolff.microservice.order.kafka;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.greaterThan;
import static org.hamcrest.Matchers.is;
import org.junit.ClassRule;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.slf4j.Logger;
imp... | 985 |
1,251 | /**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
#ifndef _FA_TAGGEDTEXT_H_
#define _FA_TAGGEDTEXT_H_
#include "FAConfig.h"
#include "FATaggedTextA.h"
#include "FAArray_cont_t.h"
namespace BlingFire
{
class FAAllocatorA;
///
/// Tagged text ... | 568 |
578 | <filename>src/test/java/net/rubyeye/xmemcached/test/unittest/KestrelClientIT.java
package net.rubyeye.xmemcached.test.unittest;
import java.io.IOException;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Properties;
import... | 3,339 |
441 | <reponame>fanwenkai/Smooth-Line-View<filename>levinunnink-Smooth-Line-View/spline/CGPointArithmetic.h
/*
* CGPointArithmetic.h
* Curve
*
* A set of tools for doing CGPoint calculations. For efficiency, these are preprocessor macros
* instead of C functions.
*
* Created by <NAME> on 10-01-26.
* Copyright 20... | 344 |
663 | /*
* Copyright 2016-2017 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 ... | 1,101 |
2,360 | # Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class Lcov(MakefilePackage):
"""LCOV is a graphical front-end for GCC's coverage testing tool gco... | 388 |
344 | <reponame>gaoxiaoyang/webrtc<filename>modules/congestion_controller/goog_cc/acknowledged_bitrate_estimator.cc<gh_stars>100-1000
/*
* Copyright (c) 2017 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the ro... | 994 |
1,350 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.microsoft.azure.keyvault.cryptography;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
import com.microsoft.azure.keyvault.cryptography.algorithms.Aes128Cbc;
import co... | 1,379 |
348 | {"nom":"Bazoches-sur-Vesles","circ":"5ème circonscription","dpt":"Aisne","inscrits":341,"abs":192,"votants":149,"blancs":0,"nuls":1,"exp":148,"res":[{"nuance":"REM","nom":"M. <NAME>","voix":54},{"nuance":"FN","nom":"<NAME>","voix":31},{"nuance":"FI","nom":"M. <NAME>","voix":23},{"nuance":"DVD","nom":"M. <NAME>","voix":... | 246 |
777 | <gh_stars>100-1000
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef IOS_CHROME_BROWSER_UI_CONTEXTUAL_SEARCH_CONTEXTUAL_SEARCH_RESULTS_VIEW_H_
#define IOS_CHROME_BROWSER_UI_CONTEXTUAL_SEARCH_CONTE... | 773 |
327 | <reponame>ClickHouse/cpp-driver
/*
Copyright (c) DataStax, 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... | 9,343 |
5,169 | {
"name": "Shanyan",
"version": "0.0.1",
"summary": "A short description of Shanyan.",
"description": "Shanyan SDK.",
"homepage": "http://colorv.cn/Shanyan",
"license": "MIT",
"authors": {
"jichengcolorv": "<EMAIL>"
},
"platforms": {
"ios": "8.0"
},
"source": {
"git": "<EMAIL>:cvios/ve... | 208 |
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... | 1,755 |
4,036 | <gh_stars>1000+
// Generated automatically from com.google.common.collect.RegularImmutableSortedSet for testing purposes
package com.google.common.collect;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableSortedSet;
import com.google.common.collect.UnmodifiableIterator;
import... | 752 |
1,467 | /*
* Copyright Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file ... | 940 |
20,453 | <reponame>iam-abbas/numpy<filename>numpy/core/src/common/simd/avx512/maskop.h
#ifndef NPY_SIMD
#error "Not a standalone header, use simd/simd.h instead"
#endif
#ifndef _NPY_SIMD_AVX512_MASKOP_H
#define _NPY_SIMD_AVX512_MASKOP_H
/**
* Implements conditional addition and subtraction.
* e.g. npyv_ifadd_f32(m, a, b... | 1,540 |
7,892 | <filename>src/toolbars/MeterToolBar.h
/**********************************************************************
Audacity: A Digital Audio Editor
MeterToolbar.h
<NAME>
<NAME>
ToolBar to hold the VU Meter
**********************************************************************/
#ifndef __AUDACITY_METER_TOOLBA... | 539 |
460 | <filename>trunk/win/Source/BT_TexHelperManager.cpp
// Copyright 2012 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... | 3,652 |
831 | /*
* 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... | 2,773 |
335 | /*
* Copyright 2019-2020 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 ap... | 505 |
605 | //===-- Statistics.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
//
//===---------------------------... | 1,502 |
1,682 | /*
Copyright (c) 2019 LinkedIn Corp.
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... | 386 |
651 | package com.squareup.subzero.server;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import javax.ws.rs.ext.ExceptionMapper;
public class ServerExceptionMapper implements ExceptionMapper<Throwable> {
public Response toResponse(Throwable exception) {
return Response.status(400)
.enti... | 150 |
316 | #include "json_element.hpp"
#include "json_array.hpp"
#include "json_object.hpp"
#include "json_primitive.hpp"
namespace mbgl {
namespace android {
namespace gson {
jni::Local<jni::Object<JsonElement>> JsonElement::New(jni::JNIEnv& env, const mbgl::Value& value) {
static auto& primitive = jni::Class<JsonPrimitive... | 1,571 |
442 | <reponame>nicchagil/spring-framework<gh_stars>100-1000
/**
* Server-side support for the Jetty 9+ WebSocket API.
*/
package org.springframework.web.socket.server.jetty;
| 58 |
1,493 | /*******************************************************************************
* Copyright 2017 Bstek
*
* 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/l... | 727 |
3,212 | <reponame>YolandaMDavis/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,615 |
6,457 | // License: Apache 2.0. See LICENSE file in root directory.
// Copyright(c) 2015 Intel Corporation. All Rights Reserved.
#pragma once
#include <map>
#include <utility>
#include "device_hub.h"
#include "sync.h"
#include "profile.h"
#include "config.h"
#include "resolver.h"
#include "aggregator.h"
namespace librealse... | 970 |
1,025 | //==================================================================================
// Copyright (c) 2016 , Advanced Micro Devices, Inc. All rights reserved.
//
/// \author AMD Developer Tools Team
/// \file gdTextureImageProxy.cpp
///
//================================================================================... | 18,523 |
2,446 | /*
Copyright (C) 2017 Apple Inc. All Rights Reserved.
See LICENSE.txt for this sample’s licensing information
Abstract:
The app's view controller which presents viewable content.
*/
#import <UIKit/UIKit.h>
#import <QuartzCore/QuartzCore.h>
@class TiledPDFScrollView;
@interface DataViewController: UIViewContro... | 244 |
1,030 | <filename>built-in-policies/policyDefinitions/Key Vault/Certificates_Issuers_SupportedCAs.json
{
"properties": {
"displayName": "Certificates should be issued by the specified integrated certificate authority",
"policyType": "BuiltIn",
"mode": "Microsoft.KeyVault.Data",
"description": "Manage your org... | 916 |
546 | // See https://aka.ms/vscode-remote/devcontainer.json for format details.
{
"name": "HA unifiprotect",
"dockerFile": "Dockerfile",
"context": "..",
"appPort": [
"9123:9123"
],
"runArgs": [
"-v",
"${env:HOME}${env:USERPROFILE}/.ssh:/tmp/.ssh" // This is added so you can push from inside the container
],
"e... | 646 |
4,013 | from checkov.common.models.enums import CheckCategories
from checkov.common.models.consts import ANY_VALUE
from checkov.terraform.checks.resource.base_resource_value_check import BaseResourceValueCheck
class AKSNetworkPolicy(BaseResourceValueCheck):
def __init__(self):
name = "Ensure AKS cluster has Netwo... | 271 |
1,204 | <reponame>DiegoEliasCosta/gs-collections<gh_stars>1000+
/*
* Copyright 2015 <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
... | 1,366 |
2,151 | <gh_stars>1000+
// 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.
package org.chromium.chrome.browser.toolbar;
import static org.junit.Assert.assertEquals;
import static org.mockito.Mockito.when;
import ... | 2,756 |
464 | package dev.fiki.forgehax.main.services;
import dev.fiki.forgehax.api.event.SubscribeListener;
import dev.fiki.forgehax.api.events.game.PreGameTickEvent;
import dev.fiki.forgehax.api.extension.LocalPlayerEx;
import dev.fiki.forgehax.api.mod.ServiceMod;
import dev.fiki.forgehax.api.modloader.RegisterMod;
import lombok.... | 346 |
2,766 | ###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013-2021, <NAME>, <EMAIL>
#
from ..excel_comparison_test import ExcelComparisonTest
from ...workbook import Workbook
class TestCompareXLSXFiles(ExcelComparisonTest):
"""
Test file cre... | 648 |
323 | <reponame>MartinBalin/graalvm-demos
/*
* Copyright (c) 2021, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version ... | 1,033 |
8,273 | // Copyright 2010-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 in... | 1,467 |
465 | <reponame>no5ix/realtime-server<gh_stars>100-1000
#include <realtime_srv/RealtimeServer.h>
// #ifdef IS_LINUX
#include "Character.h"
#include "ExampleRedisCli.h"
#include "CharacterLuaBind.h"
#include "ExampleInputState.h"
#include "Robot.h"
using namespace realtime_srv;
class ExampleSrvForUe4DemoPlus : noncopya... | 855 |
1,442 | <gh_stars>1000+
#include "battery_timer.h"
#include "apps_container.h"
BatteryTimer::BatteryTimer() :
Timer(1)
{
}
bool BatteryTimer::fire() {
AppsContainer * container = AppsContainer::sharedAppsContainer();
bool needRedrawing = container->updateBatteryState();
if (Ion::Battery::level() == Ion::Battery::Char... | 144 |
995 | /*
* Copyright (c) 2018-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.
*/
#pragma once
#include <folly/portability/OpenSSL.h>
#include <openssl/evp.h>
#include <stdexcept>
nam... | 298 |
407 | <filename>core/src/main/java/com/alibaba/smart/framework/engine/xml/parser/ParseContext.java
package com.alibaba.smart.framework.engine.xml.parser;
import lombok.Data;
/**
* Created by ettear on 16-4-12.
*/
@Data
public class ParseContext {
private ParseContext parent;
private Object currentElement;
p... | 192 |
317 | <reponame>realcredit1/drafter<filename>test/refract/dsd/test-Ref.cc
//
// test/refract/dsd/test-Ref.cc
// test-librefract
//
// Created by <NAME> on 27/08/2017
// Copyright (c) 2017 Apiary Inc. All rights reserved.
//
#include <catch2/catch.hpp>
#include "refract/dsd/Ref.h"
using namespace refract;
using namespa... | 2,288 |
382 | <filename>clouddriver-yandex/src/main/java/com/netflix/spinnaker/clouddriver/yandex/provider/view/YandexInstanceProvider.java
/*
* Copyright 2020 YANDEX 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... | 1,170 |
4,054 | <gh_stars>1000+
{
"docs": [
{
"location": "/",
"text": "Read the Docs MkDocs Test Project\n\n\nThis is a test of \nMkDocs\n as it appears on \nRead the Docs\n.",
"title": "Read the Docs MkDocs Test Project"
},
{
"location": "/#read-the-docs-mkdocs-test-project",
"text": "Read... | 364 |
416 | <filename>runtime/classpath/src/main/java/org/springframework/roo/classpath/details/annotations/AbstractAnnotationAttributeValue.java
package org.springframework.roo.classpath.details.annotations;
import org.apache.commons.lang3.Validate;
import org.springframework.roo.model.JavaSymbolName;
/**
* Abstract base class... | 637 |
422 | <filename>python/setup.py<gh_stars>100-1000
# ----------------------------------------------------------------------
# Copyright (c) 2016, The Regents of the University of California All
# rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided tha... | 1,178 |
494 | package app.hanks.com.conquer.util;
import android.app.Activity;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.media.AudioManager;
import android.media.MediaPlayer;
import android.media.MediaPlayer.OnCompleti... | 4,289 |
436 | /**
* The MIT License
* Copyright (c) 2019- Nordic Institute for Interoperability Solutions (NIIS)
* Copyright (c) 2018 Estonian Information System Authority (RIA),
* Nordic Institute for Interoperability Solutions (NIIS), Population Register Centre (VRK)
* Copyright (c) 2015-2017 Estonian Information System Autho... | 4,079 |
2,628 | <filename>pony/orm/tests/test_get_pk.py
import unittest
from datetime import date
from pony.orm import *
from pony.orm.tests import setup_database, teardown_database
day = date.today()
db = Database()
class A(db.Entity):
b = Required("B")
c = Required("C")
PrimaryKey(b, c)
class B(db.Entity):
id = ... | 731 |
441 | <reponame>vinhig/rbfx
//
// Copyright (c) 2008-2020 the Urho3D project.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// t... | 2,712 |
348 | <reponame>chamberone/Leaflet.PixiOverlay
{"nom":"Caubios-Loos","dpt":"Pyrénées-Atlantiques","inscrits":414,"abs":60,"votants":354,"blancs":32,"nuls":9,"exp":313,"res":[{"panneau":"1","voix":246},{"panneau":"2","voix":67}]} | 96 |
5,788 | /*
* 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 ... | 521 |
764 | {"symbol": "APY","address": "0x95a4492F028aa1fd432Ea71146b433E7B4446611","overview":{"en": ""},"email": "","website": "https://apy.finance/","state": "NORMAL","links": {"blog": "https://medium.com/apy-finance","twitter": "https://twitter.com/apyfinance","telegram": "","github": ""}} | 105 |
945 | /*=========================================================================
*
* Copyright NumFOCUS
*
* 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.or... | 6,885 |
4,640 | # 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... | 1,588 |
476 | /*
* acl.c - Manage the ACL (Access Control List)
*
* Copyright (C) 2013 - 2015, <NAME> <<EMAIL>>
*
* This file is part of the shadowsocks-libev.
*
* shadowsocks-libev 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 Softw... | 1,651 |
1,766 | <reponame>aalonsog/licode
#include <algorithm>
#include "rtp/RtcpNackGenerator.h"
#include "rtp/RtpUtils.h"
namespace erizo {
DEFINE_LOGGER(RtcpNackGenerator, "rtp.RtcpNackGenerator");
static const int kMaxRetransmits = 2;
static const int kMaxNacks = 150;
static const int kMinNackDelayMs = 20;
static const int kNac... | 2,424 |
488 | #include "main.h"
extern "C"
{
EXPORT btPointCollector* btPointCollector_new();
EXPORT btScalar btPointCollector_getDistance(btPointCollector* obj);
EXPORT bool btPointCollector_getHasResult(btPointCollector* obj);
EXPORT void btPointCollector_getNormalOnBInWorld(btPointCollector* obj, btScalar* value);
EXPORT vo... | 267 |
515 | <reponame>paulo-e/caelum-stella<filename>stella-gateway-formas-pagamento/src/main/java/br/com/caelum/stella/gateway/redecard/RedecardSolicitacaoAutorizacaoPagamento.java
package br.com.caelum.stella.gateway.redecard;
import br.com.caelum.stella.gateway.core.IntegrationHandler;
/**
* Classe responsável por criar... | 765 |
356 | <gh_stars>100-1000
/*
Stock Span Problem
=======================================
You are given the price of a stock for N consecutive days
and are required to find the span of stock's price on ith day.
The span of a stock's price on a given day i, is the maximum
consecutive days before the (i+1)th day, for which the ... | 1,203 |
2,308 | /**
* Copyright 2016 vip.com.
* <p>
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 432 |
3,227 | // Copyright (c) 2020 GeometryFactory SARL (France).
// All rights reserved.
//
// This file is part of CGAL (www.cgal.org).
//
// $URL$
// $Id$
// SPDX-License-Identifier: LGPL-3.0-or-later OR LicenseRef-Commercial
//
//
// Author(s) : <NAME>
//
#ifndef CGAL_TANGENT_WEIGHTS_H
#define CGAL_TANGENT_WEIGHTS_H
// In... | 6,537 |
317 | <filename>library/src/main/java/com/seatgeek/placesautocomplete/model/DateTimePair.java
package com.seatgeek.placesautocomplete.model;
public final class DateTimePair {
/**
* "a number from 0–6, corresponding to the days of the week, starting on Sunday. For example, 2 means Tuesday"
*/
public final ... | 473 |
1,738 | <filename>dev/Code/Sandbox/Plugins/MaglevControlPanel/DetailWidget/FocusButtonWidget.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 ... | 586 |
977 | <gh_stars>100-1000
#pragma once
#include "Models/Model.hpp"
namespace acid {
/**
* @brief Resource that represents a cube model.
*/
class ACID_EXPORT CubeModel : public Model::Registrar<CubeModel> {
inline static const bool Registered = Register("cube");
public:
/**
* Creates a new cube model, or finds one with... | 396 |
314 | //
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.
//
#import "CDStructures.h"
#import <DVTKit/DVTTextAnnotation.h>
@class NSImage, NSString;
@interface DVTMessageBubbleAnnotation : DVTTextAnnotation
{
NSString *_messageBubbleText;
... | 697 |
2,542 | <gh_stars>1000+
// ------------------------------------------------------------
// 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
... | 818 |
3,428 | {"id":"00247","group":"easy-ham-2","checksum":{"type":"MD5","value":"50ea609a623c12f75df32997a35b45cb"},"text":"From <EMAIL> Tue Aug 6 11:52:20 2002\nReturn-Path: <<EMAIL>>\nDelivered-To: y<EMAIL>.netnoteinc.com\nReceived: from localhost (localhost [127.0.0.1])\n\tby phobos.labs.netnoteinc.com (Postfix) with ESMTP id... | 1,047 |
348 | <reponame>chamberone/Leaflet.PixiOverlay
{"nom":"Séailles","circ":"2ème circonscription","dpt":"Gers","inscrits":42,"abs":13,"votants":29,"blancs":4,"nuls":4,"exp":21,"res":[{"nuance":"SOC","nom":"<NAME>","voix":14},{"nuance":"REM","nom":"<NAME>","voix":7}]} | 109 |
665 | # Trinket IO demo - analog output
import board
from analogio import AnalogOut
aout = AnalogOut(board.D1)
while True:
# Count up from 0 to 65535, with 64 increment
# which ends up corresponding to the DAC's 10-bit range
for i in range(0, 65535, 64):
aout.value = i
| 102 |
4,036 |
int printf(const char *format, ...);
void test1()
{
long l;
void *ptr;
printf("%ld\n", l); // GOOD
printf("%d\n", l); // BAD
printf("%p\n", ptr); // GOOD
printf("%d\n", ptr); // BAD
printf("%u\n", ptr); // BAD
printf("%x\n", ptr); // BAD
}
| 111 |
343 | <filename>spring-cloud-alibaba-seata/seata-provider/seata-provider-order-api/src/main/java/com/funtl/spring/cloud/alibaba/seata/service/api/TbOrderService.java<gh_stars>100-1000
package com.funtl.spring.cloud.alibaba.seata.service.api;
import com.funtl.spring.cloud.alibaba.seata.domain.TbOrder;
public interface TbOrd... | 141 |
1,543 | <gh_stars>1000+
package com.vladmihalcea.hibernate.type.basic.internal;
import org.hibernate.type.descriptor.WrapperOptions;
import org.hibernate.type.descriptor.java.AbstractTypeDescriptor;
import java.time.Instant;
import java.time.LocalDate;
import java.time.MonthDay;
import java.time.ZoneId;
import java.util.Date... | 1,070 |
2,542 | <reponame>gridgentoo/ServiceFabricAzure<gh_stars>1000+
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// -------------------------------------... | 11,496 |
4,184 | <gh_stars>1000+
/**
* Copyright (c) 2007-2012, <NAME>
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice, this
... | 1,123 |
358 | <gh_stars>100-1000
"""
cx_Freeze command line tool (enable python -m cx_Freeze syntax)
"""
import cx_Freeze.cli
if __name__ == "__main__":
cx_Freeze.cli.main()
| 67 |
6,465 | <reponame>mszabo-wikia/dropwizard<gh_stars>1000+
package io.dropwizard.testing.junit5;
import org.junit.jupiter.api.Nested;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.AfterEachCallback;
import org.junit.jupiter.api.extension.ExtendWith;
import org.junit.jupiter.api.extension.ExtensionCon... | 3,868 |
852 | #include "RecoParticleFlow/PFProducer/interface/BlockElementLinkerBase.h"
#include "DataFormats/ParticleFlowReco/interface/PFCluster.h"
#include "DataFormats/ParticleFlowReco/interface/PFBlockElementCluster.h"
#include "RecoParticleFlow/PFClusterTools/interface/LinkByRecHit.h"
class ECALAndECALLinker : public BlockEle... | 759 |
862 | /*
* (c) Copyright 2020 Palantir Technologies 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 ... | 621 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.