max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
785 | /*
* Copyright © 2018, 2021 Apple Inc. and the ServiceTalk project 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... | 956 |
14,668 | // Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/printing/test_print_view_manager_for_request_preview.h"
#include <memory>
#include <utility>
#include "base/callback.h"
#includ... | 597 |
1,970 | <reponame>liufangqi/hudi<gh_stars>1000+
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache Licen... | 1,240 |
678 | <filename>glean/lang/clang/preprocessor.cpp<gh_stars>100-1000
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
* 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 "glean/lang/clang/preprocess... | 3,448 |
1,428 | #include <iostream>
using namespace std;
int main(){
cout<< "Hello World!\n";
}
| 31 |
314 | <reponame>DuncanBetts/morepath
import morepath
import dectate
def test_cleanup():
class App(morepath.App):
pass
dectate.commit(App)
# second commit should clean up after the first one, so we
# expect no conflict errors
dectate.commit(App)
| 101 |
1,909 | <filename>xchange-cexio/src/main/java/info/bitrich/xchangestream/cexio/dto/CexioWebSocketPongMessage.java
package info.bitrich.xchangestream.cexio.dto;
import com.fasterxml.jackson.annotation.JsonProperty;
import info.bitrich.xchangestream.cexio.CexioStreamingRawService;
public class CexioWebSocketPongMessage {
@J... | 227 |
988 | <filename>deps/GraphBLAS/Source/GB_concat.c
//------------------------------------------------------------------------------
// GB_concat: concatenate an array of matrices into a single matrix
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, <NAME>, (c) 2017-20... | 4,687 |
6,989 | <reponame>HeyLey/catboost
#include <stdlib.h>
#include <stdio.h>
#include "vars.h"
#include <util/system/platform.h>
#define main RealMain
#include "Modules/python.c"
#undef main
int main(int argc, char** argv) {
char* distArcPath = getenv("ARCADIA_ROOT_DISTBUILD");
char* pyPath = NULL;
char* mx = 0;
... | 603 |
348 | {"nom":"Conat","dpt":"Pyrénées-Orientales","inscrits":78,"abs":21,"votants":57,"blancs":11,"nuls":3,"exp":43,"res":[{"panneau":"1","voix":26},{"panneau":"2","voix":17}]} | 73 |
758 | import pytest
import random
import string
import os
import requests
import boto3
from fixtures import get_order, get_product, iam_auth # pylint: disable=import-error,no-name-in-module
from helpers import get_parameter # pylint: disable=import-error,no-name-in-module
@pytest.fixture(scope="module")
def products_table_... | 3,790 |
13,111 | <gh_stars>1000+
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "Lic... | 1,369 |
322 | #!/usr/bin/env python
"""
safe2bin.py - Simple safe(hex) to binary format converter
Copyright (c) 2006-2017 sqlmap developers (http://sqlmap.org/)
See the file 'doc/COPYING' for copying permission
"""
import binascii
import re
import string
import os
import sys
from optparse import OptionError
from optparse import ... | 1,726 |
1,073 | // -flto causes a switch to llvm-bc object files.
// RUN: %clang -ccc-print-phases -c %s -flto 2> %t
// RUN: FileCheck -check-prefix=CHECK-COMPILE-ACTIONS < %t %s
//
// CHECK-COMPILE-ACTIONS: 2: compiler, {1}, ir
// CHECK-COMPILE-ACTIONS: 3: backend, {2}, lto-bc
// RUN: %clang -ccc-print-phases %s -flto 2> %t
// RUN: ... | 1,152 |
575 | // 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.
#include "remoting/host/linux/x_server_clipboard.h"
#include <limits>
#include "base/callback.h"
#include "base/memory/ref_counted_memory.h"
#includ... | 5,681 |
308 | package org.getopentest.logging;
import static org.testng.Assert.*;
import org.testng.annotations.Test;
public class BaseLoggerNGTest {
public BaseLoggerNGTest() {
}
@Test
public void addSecretContainingRegexpChars() {
TestLogger testLogger = new TestLogger();
String regexSpecialChar... | 2,007 |
319 | <filename>image/image-feature-extraction/src/main/java/org/openimaj/image/model/asm/datasets/ShapeModelDatasets.java
/**
* 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,
*... | 5,330 |
945 | /*
* 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 ... | 3,170 |
528 | <reponame>anukaal/opytimizer
"""Flower Pollination Algorithm.
"""
import copy
import opytimizer.math.distribution as d
import opytimizer.math.random as r
import opytimizer.utils.exception as e
import opytimizer.utils.logging as log
from opytimizer.core import Optimizer
logger = log.get_logger(__name__)
class FPA(O... | 2,442 |
351 | <reponame>mgerdes/minigolf<filename>src/mcore/mcommon.h
#ifndef _MCOMMON_H
#define _MCOMMON_H
#include <stdbool.h>
void mstrncpy(char *dest, const char *src, int n);
unsigned char *mbase64_decode(const char *src, int len, int *dec_len);
char *mbase64_encode(const unsigned char *src, int len);
bool mwrite_file(const ... | 197 |
3,897 | /**
******************************************************************************
* @file stm32u5xx_hal_tim_ex.h
* @author MCD Application Team
* @brief Header file of TIM HAL Extended module.
******************************************************************************
* @attention
*
* Copyrigh... | 34,059 |
763 | <filename>projects/batfish-common-protocol/src/main/java/org/batfish/specifier/parboiled/UdpAppAstNode.java
package org.batfish.specifier.parboiled;
import com.google.common.collect.ImmutableList;
import java.util.List;
import java.util.Objects;
import javax.annotation.ParametersAreNonnullByDefault;
import org.batfish... | 426 |
348 | <reponame>chamberone/Leaflet.PixiOverlay
{"nom":"Broyes","circ":"5ème circonscription","dpt":"Marne","inscrits":288,"abs":169,"votants":119,"blancs":3,"nuls":1,"exp":115,"res":[{"nuance":"UDI","nom":"M. <NAME>","voix":84},{"nuance":"FN","nom":"<NAME>","voix":31}]} | 110 |
799 | import demistomock as demisto # noqa: F401
from CommonServerPython import * # noqa: F401
RED_HTML_STYLE = "color:#FF1744;text-align:center;font-size:800%;>"
GREEN_HTML_STYLE = "color:#00CD33;text-align:center;font-size:800%;>"
def main():
incident = demisto.incidents()
query = incident[0].get('CustomFields... | 302 |
308 | <reponame>yusufcakal/Modular-Architecture-Hexagonal-Demo-Project<filename>ticket-api/infra/src/test/java/com/hexagonaldemo/ticketapi/AbstractIT.java
package com.hexagonaldemo.ticketapi;
import com.hexagonaldemo.ticketapi.common.event.consumer.ReservationEventKafkaStreamTestConsumer;
import org.junit.jupiter.api.Before... | 285 |
956 | #include <Rcpp.h>
#include "nodes.h"
using namespace Rcpp;
void icicleLayout(Node* node, double x, double y) {
Rectangle r = {x, y, node->weight(), node->height()};
node->bounds = r;
std::vector<Node*> children = node->getChildren();
if (children.size() != 0) {
y += node->height();
for (unsigned int i ... | 473 |
2,201 | #!/usr/bin/env python3
"""
Copyright (c) 2020-2022 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by appli... | 4,885 |
1,604 | package org.bouncycastle.math.ec.custom.sec;
import java.math.BigInteger;
import org.bouncycastle.math.raw.Interleave;
import org.bouncycastle.math.raw.Nat;
import org.bouncycastle.math.raw.Nat576;
public class SecT571Field
{
private static final long M59 = -1L >>> 5;
private static final long[] ROOT_Z = ne... | 7,518 |
7,353 | <reponame>LK26/outline-client
/**
* @file BPredicate.h
* @author <NAME> <<EMAIL>>
*
* @section LICENSE
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* 1. Redistributions of source code must retain the above ... | 1,961 |
12,278 | ////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2016 by EMC Corporation, 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... | 696 |
1,056 | /*
* 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 ... | 1,986 |
3,200 | /**
* Copyright 2020 Huawei Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... | 14,309 |
1,144 | <reponame>dram/metasfresh<filename>backend/de.metas.marketing/base/src/main/java/de/metas/marketing/base/interceptor/MKTG_ContactPerson.java
package de.metas.marketing.base.interceptor;
import org.adempiere.ad.dao.IQueryBL;
import org.adempiere.ad.dao.IQueryUpdater;
import org.adempiere.ad.modelvalidator.annotations.I... | 1,433 |
3,507 | package com.xiaojinzi.component.cache;
import android.app.ActivityManager;
import android.content.Context;
import android.support.annotation.NonNull;
import com.xiaojinzi.component.support.Utils;
/**
* 构建 {@link Cache} 时,使用 {@link CacheType} 中声明的类型,来区分不同的模块
* 从而为不同的模块构建不同的缓存策略
*/
public interface CacheType {
... | 777 |
1,451 | <reponame>emanruoy/template.js
{
"name": "template_js",
"description": "A javascript template engine, simple, easy & extras, support webpack and fis",
"version": "0.8.0",
"author": {
"name": "yanhaijing",
"email": "<EMAIL>",
"url": "http://yanhaijing.com"
},
"repository": {
"type": "git",
... | 397 |
397 | <reponame>r4b3rt/wLogger
from abc import abstractmethod,ABCMeta
import datetime,time
class Adapter():
__metaclass__ = ABCMeta
save_engine = []
split_save = ['day', 'week', 'month' ,'year']
def __init__(self): pass
def _getTableName(self,table_key_name):
table_suffix = ''
save_... | 922 |
1,109 | <filename>src/main/java/org/cboard/pojo/DashboardUser.java<gh_stars>1000+
package org.cboard.pojo;
/**
* Created by yfyuan on 2016/12/2.
*/
public class DashboardUser {
private String userId;
private String loginName;
private String userName;
private String userPassword;
private String userStatus... | 436 |
392 | package io.logz.apollo.common;
import okhttp3.Response;
import org.rapidoid.http.MediaType;
import org.rapidoid.http.Req;
import java.nio.ByteBuffer;
/**
* Created by roiravhon on 3/21/17.
*/
public class ControllerCommon {
public static void assignJsonResponseToReq(Req req, int code, Object json) {
re... | 261 |
443 | import h5py
import os
# Note : Weights obtained from https://github.com/flyyufelix/DenseNet-Keras
f = h5py.File('densenet161_weights_tf.h5')
conv_weights = []
bn_weights = []
dense_classifier_weights = None
for name in f.attrs['layer_names']:
if 'data' in str(name):
continue
if 'zeropadding' in str... | 1,305 |
399 | package org.chromium.net.impl;
import java.nio.ByteBuffer;
import java.util.List;
import java.util.Map;
import java.util.concurrent.atomic.AtomicInteger;
import io.envoyproxy.envoymobile.engine.EnvoyHTTPStream;
/**
* CancelProofEnvoyStream is a consistency layer above the {@link EnvoyHTTPStream} preventing
* unwarr... | 2,059 |
890 | // Copyright (C) <2019> Intel Corporation
//
// SPDX-License-Identifier: Apache-2.0
#ifndef BUILDING_NODE_EXTENSION
#define BUILDING_NODE_EXTENSION
#endif
#include "MediaDefinitions.h"
#include "SipCallConnection.h"
#include "SipGateway.h"
using namespace v8;
Persistent<Function> SipCallConnection::constructor;
Sip... | 1,049 |
522 | package algs.example.gui.problems.tictactoe.variations.slide;
/**
* The slide state must store the current phase.
*
* @author <NAME>
* @version 1.0, 6/15/08
* @since 1.0
*/
public class SlideState {
/** Knows the current phase. */
private int phase;
/**
* Knows the current turnNumber.
* <p>
... | 418 |
1,442 | <gh_stars>1000+
#include "editor_controller.h"
#include "menu_controller.h"
#include "script_parameter_controller.h"
#include "app.h"
#include <escher/metric.h>
#include <ion.h>
using namespace Shared;
using namespace Escher;
namespace Code {
EditorController::EditorController(MenuController * menuController, App * ... | 2,165 |
1,056 | /*
* 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 ... | 1,604 |
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.datafactory.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.azure.r... | 4,273 |
4,224 | <filename>src/drivers/uavcan/uavcan_drivers/kinetis/driver/include/uavcan_kinetis/build_config.hpp
/*
* Copyright (C) 2015, 2018 <NAME> <<EMAIL>>
* Kinetis Port Author <NAME> <<EMAIL>>
*/
#pragma once
/**
* OS detection
*/
#ifndef UAVCAN_KINETIS_NUTTX
# error "Only NuttX is supported"
#endif
/**
* Number of in... | 323 |
451 | from config.redfish1_0_config import config
from config.auth import *
from config.settings import *
from logger import Log
from json import loads, dumps
import pexpect
import pxssh
import subprocess
LOG = Log(__name__)
class Auth(object):
"""
Class to abstract python authentication functionality
"""
@... | 617 |
6,465 | <filename>dropwizard-jdbi3/src/test/java/io/dropwizard/jdbi3/JdbiHealthCheckTest.java
package io.dropwizard.jdbi3;
import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.ArgumentMatchers.anyInt;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.verify;
import static... | 1,155 |
307 | //
// FCExtensionPipe.h
// Part of FCUtilities by <NAME>. See included LICENSE file for BSD license.
//
// A basic way for members of a shared iOS App Group container to pass messages to each other.
//
// Any given pipe identifier should be one-way within a process, and each pipe should only have one writer, e.g.:
//... | 371 |
3,428 | <reponame>ghalimi/stdlib
{"id":"00136","group":"easy-ham-1","checksum":{"type":"MD5","value":"c507301e643ec123aa6e487ce2e2e3e2"},"text":"From <EMAIL> Tue Oct 8 10:55:22 2002\nReturn-Path: <<EMAIL>>\nDelivered-To: zzzz@localhost.spamassassin.taint.org\nReceived: from localhost (jalapeno [127.0.0.1])\n\tby spamassassin... | 1,571 |
852 | import FWCore.ParameterSet.Config as cms
##____________________________________________________________________________||
muonTCMETValueMapProducer = cms.EDProducer(
"MuonTCMETValueMapProducer",
muonInputTag = cms.InputTag("muons"),
beamSpotInputTag = cms.InputTag("offlineBeamSpot"),
vertexIn... | 1,058 |
995 | <reponame>yusufcakmakk/zemberek-nlp<filename>apps/src/main/java/zemberek/apps/corpus/PreprocessTurkishCorpus.java
package zemberek.apps.corpus;
import com.beust.jcommander.Parameter;
import java.io.IOException;
import java.io.PrintWriter;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.ArrayLis... | 2,678 |
1,091 | <reponame>tohotforice/onos-sdwsn
/*
* Copyright 2016-present Open Networking Foundation
*
* 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... | 523 |
1,127 | // Copyright (C) 2018-2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include <debug.h>
#include "shared_test_classes/subgraph/reshape_squeeze_reshape_relu.hpp"
namespace SubgraphTestsDefinitions {
std::string ReshapeSqueezeReshapeRelu::getTestCaseName(const testing::TestParamInfo<ReshapeSqueeze... | 1,257 |
9,701 | <gh_stars>1000+
# How many labels are at max put into the output
# ranking, everything else will be cut off
LABEL_RANKING_LENGTH = 10
| 42 |
3,102 | // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
// Examples from CWG1056.
namespace Example1 {
template<class T> struct A;
template<class T> using B = A<T>;
template<class T> struct A {
struct C {};
B<T>::C bc; // ok, B<T> is the current instantiation.
};
template<class T> struct A<A<T>> {
... | 289 |
367 | {
"name": "grpc",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"install": " (cd books && npm install) & (cd orders && npm install) & (cd 'reverse_proxy' && npm install)",
"clean": " (cd books && npm run clean) & (cd ... | 193 |
645 | // Copyright 2013-2016 Stanford University
//
// 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 ag... | 1,395 |
732 | //
// AVIMConversation+Custon.h
// DSLolita
//
// Created by <NAME> on 15/6/5.
// Copyright (c) 2015年 samDing. All rights reserved.
//
#import "DSIMConfig.h"
#define CONV_TYPE @"type"
#define CONV_ATTR_TYPE_KEY @"attr.type"
#define CONV_MEMBERS_KEY @"m"
typedef enum : NSUInteger {
DSConvTypeSingle = 0,
... | 235 |
453 | // Copyright (c) the JPEG XL Project Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
#ifndef LIB_JXL_BASE_THREAD_POOL_INTERNAL_H_
#define LIB_JXL_BASE_THREAD_POOL_INTERNAL_H_
#include <stddef.h>
#include <cmath>
#include "jxl/p... | 607 |
777 | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_METRICS_PROFILER_TRACKING_SYNCHRONIZER_DELEGATE_H_
#define COMPONENTS_METRICS_PROFILER_TRACKING_SYNCHRONIZER_DELEGATE_H_
namespace me... | 319 |
460 | <reponame>cluesblues/google-oauth-java-client<gh_stars>100-1000
/*
* Copyright (c) 2011 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/LICE... | 4,918 |
2,112 | /*
* 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... | 2,913 |
1,159 | <reponame>dyuri/vizzu-lib<gh_stars>1000+
#ifndef TESTSTYLE_H
#define TESTSTYLE_H
#include <optional>
struct Foo
{
std::optional<double> foo;
std::optional<double> bar;
void visit(auto &visitor)
{
visitor
(foo, "foo")
(bar, "bar");
}
};
struct Baz
{
std::optional<double> baz;
std::optional<double> fob... | 261 |
392 | <gh_stars>100-1000
/*
* Copyright 2010-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
*
* Un... | 701 |
480 | /*
* Copyright [2013-2021], Alibaba Group Holding Limited
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 1,657 |
652 | <filename>PC/pythonnt_rc_d.h<gh_stars>100-1000
/* This file created by make_versioninfo.exe */
#define FIELD3 104884
#define MS_DLL_ID "3.3"
#ifndef _DEBUG
#define PYTHON_DLL_NAME "python33.dll"
#else
#define PYTHON_DLL_NAME "python33_d.dll"
#endif
| 109 |
12,718 | <reponame>aruniiird/zig<filename>lib/libc/musl/src/math/__invtrigl.h
#include <features.h>
/* shared by acosl, asinl and atan2l */
#define pio2_hi __pio2_hi
#define pio2_lo __pio2_lo
hidden extern const long double pio2_hi, pio2_lo;
hidden long double __invtrigl_R(long double z);
| 122 |
464 | package dev.fiki.forgehax.api.classloader;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLClassLoader;
import java.nio.file.FileSystem;
import java.nio.file.Files;
import java.nio.file.Path;
import static dev.fiki.forgehax.api.FileHelper.asFilePath;
/**
* ... | 658 |
348 | {"nom":"Saint-Saud-Lacoussière","circ":"3ème circonscription","dpt":"Dordogne","inscrits":678,"abs":247,"votants":431,"blancs":11,"nuls":1,"exp":419,"res":[{"nuance":"MDM","nom":"<NAME>","voix":131},{"nuance":"LR","nom":"Mme <NAME>","voix":103},{"nuance":"SOC","nom":"Mme <NAME>","voix":86},{"nuance":"FN","nom":"M. <NAM... | 227 |
1,663 | {
"name": "nunuStudio",
"description": "Javascript powered framework for 3D and VR applications that run directly on the browser without the need for additional plugins",
"version": "0.9",
"url": "https://www.nunustudio.org"
}
| 72 |
354 | #ifndef _SGLRCONTEXTWRAPPER_HPP
#define _SGLRCONTEXTWRAPPER_HPP
/*-------------------------------------------------------------------------
* drawElements Quality Program OpenGL ES Utilities
* ------------------------------------------------
*
* Copyright 2014 The Android Open Source Project
*
* Licensed under th... | 9,058 |
2,039 | package org.nd4j.linalg.api.indexing;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import org.nd4j.linalg.BaseNd4jTest;
import org.nd4j.linalg.api.ndarray.INDArray;
import org.nd4j.linalg.factory.Nd4j;
import org.nd4j.linalg.factory.Nd4jBackend;
import org.nd4j.linalg... | 3,100 |
412 |
class A
{
public void dummy()
{
// check some setup
assert this instanceof A;
}
public B b;
}
class B
{
public A a;
}
public class Main
{
public static void main(String[] args)
{
B B = new B();
}
}
| 94 |
2,151 | // Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "third_party/blink/renderer/core/workers/worker_module_tree_client.h"
#include "third_party/blink/renderer/bindings/core/v8/script_value.h"
#inc... | 701 |
477 | """Functions to read text or tsv files containing GO IDs and sections of GO IDs."""
from __future__ import print_function
import os
import sys
import re
import pkgutil
import importlib
from goatools.gosubdag.go_tasks import chk_goids
from goatools.grouper.hdrgos import HdrgosSections
from goatools.grouper.grprobj imp... | 4,376 |
309 | <gh_stars>100-1000
#ifndef RD_CPP_ANYSERIALIZER_H
#define RD_CPP_ANYSERIALIZER_H
#include "serialization/SerializationCtx.h"
#include "serialization/RdAny.h"
#include "thirdparty.hpp"
namespace rd
{
// region predeclared
class Buffer;
// endregion
class InternedAnySerializer
{
public:
static optional<InternedAny>... | 257 |
366 | // Copyright (c) 2014-2021 The Gridcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or https://opensource.org/licenses/mit-license.php.
#ifndef GRIDCOIN_SUPPORT_FILEHASH_H
#define GRIDCOIN_SUPPORT_FILEHASH_H
#include "serialize.h"
#include "streams.h"
#include "h... | 535 |
2,753 | <filename>src/shogun/machine/gp/LaplaceInference.h
/*
* Copyright (c) The Shogun Machine Learning Toolbox
* Written (w) 2014 <NAME>
* Written (W) 2013 <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following con... | 1,734 |
378 | <filename>dnsdb_common/dal/models/view_acl_subnets.py
# -*- coding: utf-8 -*-
from . import AuditTimeMixin, JsonMixin
from .. import db
class ViewAclSubnet(db.Model, AuditTimeMixin, JsonMixin):
__tablename__ = 'tb_view_acl_subnets'
id = db.Column(db.Integer, primary_key=True)
subnet = db.Column(db.String... | 411 |
493 | package com.novoda.downloadmanager.demo.migration;
import android.content.ContentResolver;
import android.database.CharArrayBuffer;
import android.database.ContentObserver;
import android.database.Cursor;
import android.database.DataSetObserver;
import android.net.Uri;
import android.os.Bundle;
import android.util.Log... | 2,614 |
401 | <gh_stars>100-1000
{
"tools": {
"GeoNamesOnTool": {
"keyin": "GeoNames On",
"description": "Turns on display of GeoName Markers"
},
"GeoNamesOffTool": {
"keyin": "GeoNames Off",
"description": "Turns off display of GeoName Markers"
},
"GeoNamesUpdateTool": {
"keyin": ... | 245 |
1,841 | <reponame>boudabass/noobs
#ifndef JSON_H
#define JSON_H
/* Json helper class
*
* Outsources the hard work to QJson
*
* Initial author: <NAME>
* Maintained by Raspberry Pi
*
* See LICENSE.txt for license details
*
*/
#include <QVariant>
class Json
{
public:
static QVariant parse(const QByteArray &json);
... | 186 |
764 | <filename>eos-token/ZION@ziongameseos.json
{
"symbol": "ZION",
"account_name": "ziongameseos",
"overview": {
"en": "Blockchain entertainment platform based on EOS"
},
"website": "https://zion.games"
} | 101 |
308 | <filename>scripts/plot_fid.py<gh_stars>100-1000
import pickle
import os
from tl2.proj.argparser import argparser_utils
from tl2.proj.matplot import plt_utils
def main(data_pkl,
data_key,
title,
outdir):
os.makedirs(outdir, exist_ok=True)
with open(data_pkl, 'rb') as f:
loaded_dat... | 564 |
556 | /*
* 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 ... | 510 |
17,242 | <reponame>virdio/mediapipe
// Copyright 2019 The MediaPipe 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 requ... | 1,387 |
335 | {
"word": "Nimble",
"definitions": [
"Quick and light in movement or action; agile.",
"(of the mind) able to think and understand quickly."
],
"parts-of-speech": "Adjective"
} | 83 |
1,144 | /*
*
* btusb_lite.h
*
*
*
* Copyright (C) 2011-2013 Broadcom Corporation.
*
*
*
* This software is licensed under the terms of the GNU General Public License,
* version 2, as published by the Free Software Foundation (the "GPL"), and may
* be copied, distributed, and modified under those terms.
*
* This p... | 2,182 |
1,694 | //
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>.
//
#import <MMCommon/MMObject.h>
@class NSArray;
@interface ABTestListWrap : MMObject
{
NSArray *_aryABTestItems;
NSArray *_aryABTestE... | 224 |
8,232 | // Copyright (c) Microsoft Corporation.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
// test <climits>
#define TEST_NAME "<climits>"
#include "tdefs.h"
#include <climits>
void test_cpp() { // test C++ header
static const char char_val[] = {CHAR_MAX, CHAR_MIN};
static const si... | 798 |
713 | <reponame>ScriptBox99/spiceai
import json
from pathlib import Path
from typing import Tuple
import numpy as np
import tensorflow as tf
from tensorflow import keras
from tensorflow.keras import optimizers
from tensorflow.keras import layers
import tensorflow_probability as tfp
from algorithms.agent_interface import Sp... | 5,185 |
1,066 | <filename>terminal/src/main/java/org/jline/terminal/impl/AbstractPty.java
/*
* Copyright (c) 2002-2019, the original author or authors.
*
* This software is distributable under the BSD license. See the terms of the
* BSD license in the documentation provided with this software.
*
* https://opensource.org/licenses... | 1,676 |
854 | __________________________________________________________________________________________________
sample 2 ms submission
class Solution {
public int uniqueLetterString(String S) {
int[] lastPosition = new int[26];
int[] contribution = new int[26];
int result = 0;
// at each... | 1,025 |
794 | <reponame>pjfanning/mina
/*
* 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, Versio... | 1,292 |
365 | package org.superboot.controller.sys;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.spr... | 828 |
1,682 | package com.linkedin.r2.message.rest;
import com.linkedin.data.ByteString;
import java.util.Collections;
/**
* Factory methods for {@link RestResponse}.
*/
public final class RestResponseFactory
{
private static final RestResponse NO_RESPONSE = new RestResponseImpl(
ByteString.empty(), Collections.<String,... | 207 |
466 | <filename>lib_common/src/test/java/com/gykj/zhumulangma/common/ExampleUnitTest.java
package com.gykj.zhumulangma.common;
import com.gykj.zhumulangma.common.net.exception.ExceptionRetry;
import org.junit.Test;
import java.util.Calendar;
import io.reactivex.Observable;
import io.reactivex.ObservableEmitter;
import io... | 1,265 |
1,882 | import unittest
import tempfile
import numpy as np
import pandas as pd
from supervised.preprocessing.exclude_missing_target import ExcludeRowsMissingTarget
class ExcludeRowsMissingTargetTest(unittest.TestCase):
def test_transform(self):
d_test = {
"col1": [1, 1, np.nan, 3],
"col2":... | 988 |
417 | /*
* 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 ... | 524 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.