max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
1,350 | <reponame>billwert/azure-sdk-for-java<gh_stars>1000+
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.applicationinsights.models;
import com.azure.resourcemanager.applicationins... | 630 |
388 | <filename>tests/experimental/101.corebot-bert-bidaf/bot/dialogs/__init__.py
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
"""Dialogs module"""
from .booking_dialog import BookingDialog
from .cancel_and_help_dialog import CancelAndHelpDialog
from .date_resolver_dialog... | 147 |
3,807 | /*
* Copyright 2019 Google
*
* 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... | 529 |
16,500 |
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
void abort( void ) {
fprintf( stderr, "Application aborted!\n" );
exit( -1 );
}
| 70 |
5,169 | {
"name": "SGPagesView",
"version": "2.0.0",
"summary": "fork from kingsic, just modify some codes for projects",
"homepage": "https://github.com/derekibw/SGPagesView",
"license": "MIT",
"authors": {
"derek": "<EMAIL>"
},
"platforms": {
"ios": "7.0"
},
"source": {
"git": "https://github.... | 197 |
2,039 | <reponame>RoelvandenBerg/tippecanoe
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <limits.h>
#include <math.h>
#include "memfile.hpp"
#include "pool.hpp"
int swizzlecmp(const char *a, const char *b) {
ssize_t alen = strlen(a);
ssize_t blen = strlen(b);
if (strcmp(a, b) == 0) {
return 0;
}
... | 1,251 |
419 | <filename>init/src/sdk_init.c
#include <sdk_init.h>
/*#########################################################################################*/
/*please don't change anything in the following function*/
void user_Init(T_INTERFACE_VTBL_TAG *pVtable);
T_INTERFACE_VTBL_TAG * g_InterfaceVtbl = 0;
typedef struct T_VTB... | 478 |
1,010 | <gh_stars>1000+
/*
* The Shadow Simulator
* See LICENSE for licensing information
*/
#include "main/host/futex.h"
#include <errno.h>
#include <glib.h>
#include <stdbool.h>
#include "lib/logger/logger.h"
#include "main/core/support/definitions.h"
#include "main/core/worker.h"
#include "main/host/syscall_types.h"
#... | 1,633 |
2,151 | /*
* Copyright (c) 2014 The WebM 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 root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributin... | 1,258 |
421 | <reponame>hamarb123/dotnet-api-docs
// System::Configuration::Install::InstallerCollection.Item(Int32)
/*
The following example demonstrates the 'Item(Int32)' method of the
'InstallerCollection' class. It creates 'AssemblyInstaller' instances
for 'MyAssembly1.exe' and 'MyAssembly2.exe'. These instances are added
... | 933 |
5,169 | {
"name": "SJSwiftSideMenuController",
"version": "0.1.1",
"summary": "SJSwiftSideMenuController is Side Menu Controller for both Side Left & Right Menu.",
"description": "SJSwiftSideMenuController is Side Menu Controller for both Side Left & Right Menu With Both type of Side menu That is SlideOver and SlideVie... | 351 |
313 | /*
* Copyright 2019 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | 343 |
1,350 | <reponame>Manny27nyc/azure-sdk-for-java
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.labservices.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.util.... | 1,951 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-mc47-5crj-3q7q",
"modified": "2022-05-02T04:00:48Z",
"published": "2022-05-02T04:00:48Z",
"aliases": [
"CVE-2009-5055"
],
"details": "Open Ticket Request System (OTRS) before 2.4.4 grants ticket access on the basis of single-digit substrings of the CustomerID v... | 434 |
777 | <reponame>google-ar/chromium
/*
* Copyright (C) 2004, 2008, 2009, 2010 Apple Inc. All rights reserved.
*
* 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 co... | 1,495 |
657 | {
"desc": "Opens a multi-person direct message or just a 1:1 direct message.",
"args": {
"channel": {
"example" : "G1234567890",
"required": false,
"desc" : "Resume a conversation by supplying an `im` or `mpim`'s ID. Or provide the `users` field instead."
},
"return_im": {
"e... | 495 |
3,710 | #pragma once
#ifndef TNZ_EXTUTIL_H
#define TNZ_EXTUTIL_H
/**
* @author <NAME> <<EMAIL>>
*/
#include "tcommon.h"
#include <tvectorimage.h>
#undef DVAPI
#undef DVVAR
#ifdef TNZEXT_EXPORTS
#define DVAPI DV_EXPORT_API
#define DVVAR DV_EXPORT_VAR
#else
#define DVAPI DV_IMPORT_API
#define DVVAR DV_IMPORT_VAR
#endif
#... | 2,048 |
304 | <filename>Pods/OCHamcrest/Source/Library/Collection/HCEvery.h
// OCHamcrest by <NAME>, http://qualitycoding.org/about/
// Copyright 2015 hamcrest.org. See LICENSE.txt
#import <OCHamcrest/HCDiagnosingMatcher.h>
@interface HCEvery : HCDiagnosingMatcher
@property (nonatomic, strong, readonly) id <HCMatcher> matcher;... | 374 |
343 | /*
* Copyright (c) 2016 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 root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... | 662 |
3,301 | package com.alibaba.alink.operator.batch.tensorflow;
import org.apache.flink.ml.api.misc.param.Params;
import com.alibaba.alink.operator.batch.utils.FlatModelMapBatchOp;
import com.alibaba.alink.operator.common.tensorflow.TFTableModelPredictFlatModelMapper;
import com.alibaba.alink.params.tensorflow.savedmodel.TFTabl... | 288 |
2,151 | <reponame>zipated/src
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef IOS_CHROME_BROWSER_UI_AUTHENTICATION_UNIFIED_CONSENT_UNIFIED_CONSENT_MEDIATOR_H_
#define IOS_CHROME_BROWSER_UI_AUTHENTICATIO... | 412 |
45,293 | <filename>compiler/testData/loadJava/compiledJava/kotlinSignature/propagation/parameter/InheritVarargPrimitive.java
package test;
public interface InheritVarargPrimitive {
public interface Super {
void foo(int... p);
void dummy(); // to avoid loading as SAM interface
}
public interface S... | 132 |
2,053 | #ifndef _rtmp_event_h_
#define _rtmp_event_h_
// 7.1.3. Shared Object Message (19, 16) (p24)
// AMF Shared Object Message Event
enum
{
RTMP_AMF_EVENT_USE = 1,
RTMP_AMF_EVENT_RELEASE = 2,
RTMP_AMF_EVENT_REQUEST_CHANGE = 3,
RTMP_AMF_EVENT_CHANGE = 4,
RTMP_AMF_EVENT_SUCCESS = 5,
RTMP_AMF_EVENT_SEND_MESSAGE... | 819 |
3,182 | <gh_stars>1000+
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.experimental.Delegate;
import lombok.extern.slf4j.Slf4j;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class Issue670 {
@Delegate(excludes = ExcludesDelegateMethods.class)
... | 2,183 |
488 | <gh_stars>100-1000
// t0499.cc
// ?: on enums const variable
enum E {a,b};
const E aa = a;
void f(E);
void foo()
{
f(true? aa : a);
}
| 69 |
1,014 | #ifndef GO_QUIC_SIMPLE_CRYPTO_SERVER_STREAM_HELPER_H_
#define GO_QUIC_SIMPLE_CRYPTO_SERVER_STREAM_HELPER_H_
#include "net/quic/core/crypto/quic_random.h"
#include "net/quic/core/quic_crypto_server_stream.h"
namespace net {
// Simple helper for server sessions which generates a new random
// connection ID for statele... | 373 |
583 | <reponame>DanWatkins/ProjectTemplates
///////////////////////////////////////////////////////////////////////////////////////////////////
// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)
///////////////////////////////////////////////////////////////////////////////////////////////////
/... | 697 |
313 | <gh_stars>100-1000
//
// KVNProgress.h
// KVNProgress
//
// Created by <NAME> on 24/05/14.
// Copyright (c) 2014 Pinch. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "KVNProgressConfiguration.h"
typedef NS_ENUM(NSUInteger, KVNProgressStyle) {
KVNProgressStyleHidden,
KVNProgressStyleProgress,
KVNProg... | 1,988 |
2,535 | #include "robust/relative_rotation_model.h"
const int RelativeRotation::MINIMAL_SAMPLES;
| 32 |
852 | #include "DataFormats/FEDRawData/interface/FEDNumbering.h"
#include "DataFormats/SiStripCommon/interface/SiStripFedKey.h"
#include "DataFormats/SiStripCommon/interface/ConstantsForHardwareSystems.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "DQM/SiStripMonitorHardware/interface/SiStripFEDSpyBu... | 13,459 |
435 | {
"description": "Testing code with Pytest is an absolute pleasure. Less boilerplate makes your test more concise and its fixtures system helps you share setup code while still keeping your tests clear and understandable. I'll tell you all about how to get basic unit testing done, and I'll show you how to use Voidspa... | 297 |
1,515 | package com.google.android.binder;
final class Empty {
}
| 20 |
622 | <reponame>Sam-Gao-Xin/Courses-<gh_stars>100-1000
package model;
public class Cashier extends Employee {
public static final double CASHIER_WAGE = 6.50;
private BurgerByte workBranch;
private boolean isRegisterOpen;
public Cashier(String name, int age, BurgerByte workBranch) {
super... | 560 |
3,799 | <filename>work/workmanager-multiprocess/src/main/java/androidx/work/multiprocess/RemoteWorkManagerImpl.java
/*
* Copyright 2020 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 c... | 5,028 |
407 | <reponame>LeoMobileDeveloper/QTEventBus
//
// ViewController.h
// Demo
//
// Created by Leo on 2018/7/23.
// Copyright © 2018年 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface ViewController : UIViewController
@end
| 88 |
395 | #ifndef _LIGHTTPD_FASTCGI_STREAM_H_
#define _LIGHTTPD_FASTCGI_STREAM_H_
#include <lighttpd/base.h>
#include <lighttpd/backends.h>
typedef struct liFastCGIBackendCallbacks liFastCGIBackendCallbacks;
typedef struct liFastCGIBackendWait liFastCGIBackendWait;
typedef struct liFastCGIBackendConnection liFastCGIBackendConn... | 744 |
2,329 | <reponame>alimate/spring-loaded<gh_stars>1000+
package iri;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
public class JLCGetDecField2 extends FormattingHelper {
public String run() throws Exception {
Method m = Class.class.getMethod("getDeclaredField", String.class);
Field f = (Field) m.invo... | 176 |
956 | <gh_stars>100-1000
#!/router/bin/python
from platform_cmd_link import *
import functional_general_test
from nose.tools import assert_equal
from nose.tools import assert_not_equal
class CCommandCache_Test(functional_general_test.CGeneralFunctional_Test):
def setUp(self):
self.cache = CCommandCache()
... | 1,193 |
415 | from markupsafe import escape
def run():
string = "<strong>Hello World!</strong>" * 1000
escape(string)
| 37 |
34,430 | package com.bumptech.glide.benchmark.data;
import android.os.ParcelFileDescriptor;
import androidx.annotation.Nullable;
import androidx.annotation.RawRes;
import androidx.test.core.app.ApplicationProvider;
import com.bumptech.glide.util.ByteBufferUtil;
import java.io.ByteArrayOutputStream;
import java.io.File;
import ... | 1,726 |
1,006 | <reponame>eenurkka/incubator-nuttx<filename>libs/libc/locale/lib_catalog.c
/****************************************************************************
* libs/libc/locale/lib_catalog.c
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file dist... | 4,169 |
440 | /*========================== begin_copyright_notice ============================
Copyright (C) 2017-2021 Intel Corporation
SPDX-License-Identifier: MIT
============================= end_copyright_notice ===========================*/
#pragma once
#include "GenISAIntrinsics/GenIntrinsicInst.h"
#include "common/LLVM... | 519 |
478 | <reponame>Illbatting/AdaptiveCards
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "pch.h"
#include "ActionHelpers.h"
#include "AdaptiveContainerRenderer.h"
#include "AdaptiveContainerRenderer.g.cpp"
#include "AdaptiveRenderArgs.h"
namespace winrt::AdaptiveCard... | 2,814 |
1,018 | #include "readqubo.h"
#include "stdheaders_shim.h"
#ifdef __cplusplus
extern "C" {
#endif
FILE *outFile_;
FILE *solution_input_;
int maxNodes_, nCouplers_, nNodes_, findMax_, numsolOut_;
int Verbose_, TargetSet_, WriteMatrix_, Tlist_;
char *outFileNm_, pgmName_[16], algo_[4];
double Target_, Time_;
struct nodeStr_ *... | 171 |
356 | <gh_stars>100-1000
from tune_sklearn.tune_gridsearch import TuneGridSearchCV
from tune_sklearn.tune_search import TuneSearchCV
from tune_sklearn._version import __version__
__all__ = ["TuneGridSearchCV", "TuneSearchCV", "__version__"]
| 77 |
868 | <filename>main/src/main/java/com/sedmelluq/discord/lavaplayer/container/mp3/Mp3StreamSeeker.java
package com.sedmelluq.discord.lavaplayer.container.mp3;
import com.sedmelluq.discord.lavaplayer.tools.Units;
import com.sedmelluq.discord.lavaplayer.tools.io.SeekableInputStream;
import java.io.IOException;
/**
* Seeker ... | 284 |
487 | var = 5
a = "{{}}my string {:.2f}{{}}".format(var)
print(a)
| 29 |
530 | <filename>strongbox-storage/strongbox-storage-core/src/main/java/org/carlspring/strongbox/storage/Views.java
package org.carlspring.strongbox.storage;
/**
* @author <NAME>
*/
public interface Views
{
interface ShortStorage
{
}
interface LongStorage
extends ShortStorage
{
}
}
| 119 |
715 | <gh_stars>100-1000
#ifndef RENDERINTERFACEDIRECTX_H
#define RENDERINTERFACEDIRECTX_H
#include <Rocket/Core/RenderInterface.h>
#include "../../../shell/include/ShellRenderInterfaceExtensions.h"
#include <d3d10.h>
#include <d3dx10.h>
/**
A sample render interface for Rocket into DirectX 10.
TODO:
1) Constant Buffe... | 1,123 |
1,354 | <reponame>erraghawmishra/HackerRank-All-Solutions-in-Java<filename>HackerRankDashboard/CoreCS/GeneralProgramming/src/main/java/com/javaaid/hackerrank/solutions/generalprogramming/basicprogramming/DivisiblePairsSum.java
/**
*
* Problem Statement-
* [Divisible Pairs Sum](https://www.hackerrank.com/challenges/linke... | 430 |
2,542 | <filename>src/prod/src/Reliability/Failover/ra/Infrastructure.EntitySetName.cpp
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------... | 659 |
1,671 | <filename>ambry-frontend/src/main/java/com/github/ambry/frontend/FrontendUtils.java
/**
* Copyright 2016 LinkedIn Corp. 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 ... | 1,412 |
310 | {
"name": "Fly Delta (iOS)",
"description": "An app for the airline service.",
"url": "https://itunes.apple.com/us/app/fly-delta/id388491656"
}
| 58 |
360 | <reponame>Yanci0/openGauss-server<gh_stars>100-1000
/*
* Copyright (c) 2020 Huawei Technologies Co.,Ltd.
*
* openGauss is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:
*
* http://license.cos... | 54,637 |
2,591 | <gh_stars>1000+
package liquibase.util.xml;
import org.w3c.dom.Document;
import java.io.IOException;
import java.io.OutputStream;
public interface XmlWriter {
void write(Document doc, OutputStream outputStream) throws IOException;
}
| 79 |
515 | <reponame>timgates42/LuaScriptCore<gh_stars>100-1000
package cn.vimfung.luascriptcore;
/**
* 基础类型
* Created by vimfung on 16/8/29.
*/
public class LuaBaseObject
{
/**
* 本地标识
*/
protected int _nativeId;
/**
* 创建基础对象
*/
public LuaBaseObject ()
{
_nativeId = 0;
}
... | 396 |
1,019 | import json
import math
def calc_average_normalized_loglikelihood(models, keys=None) -> float:
keys = keys or models.keys()
accum_normalized_logloss = 0.
for key in keys:
if key not in models:
accum_normalized_logloss += math.log(0.5)
continue
model = models[key]
... | 1,074 |
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... | 36,192 |
14,668 | <reponame>zealoussnow/chromium<filename>chrome/android/modules/stack_unwinder/provider/java/src/org/chromium/chrome/modules/stack_unwinder/StackUnwinderModuleProvider.java
// 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 t... | 637 |
11,628 | // SPDX-License-Identifier: GPL-2.0
// Copyright (c) 2018-2019 Authors of Cilium
#include <bpf/ctx/skb.h>
#include <bpf/api.h>
#include <assert.h>
#include <stdlib.h>
#include "lib/utils.h"
/* SKIP_UNDEF_LPM_LOOKUP_FN is used to control if the LPM_LOOKUP_FN macro in
* lib/maps.h should be defined or not.
*
* As ... | 501 |
337 | <filename>idea/testData/refactoring/safeDelete/deleteTypeParameter/kotlinTypeParameterWithJava/rawType.java<gh_stars>100-1000
class B {
A a = new A()
} | 56 |
687 | <reponame>felixzhuologist/xls
// Copyright 2021 The XLS 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,795 |
1,053 | #include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include "sfsource.h"
#include "serialpacket.h"
#include "test_network_msg.h"
#include "set_rate_msg.h"
#include "TestNetworkC.h"
int main(int argc, char **argv)
{
int fd,i;
if (argc != 5) {
fprintf(stderr, "Usage: %s <host> <port> <seqno> <rate> - c... | 634 |
1,953 | <filename>grails-core/src/main/groovy/org/grails/spring/beans/PluginManagerAwareBeanPostProcessor.java
/*
* Copyright 2004-2005 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 c... | 750 |
1,639 | <reponame>NGL321/jsii
package software.amazon.jsii;
import software.amazon.jsii.api.Callback;
import com.fasterxml.jackson.databind.JsonNode;
/**
* Invoked to handle native synchronous callbacks.
*/
public interface JsiiCallbackHandler {
/**
* Invoked to handle a request from jsii to process a native (java... | 158 |
938 | <reponame>karakufire/TinkersConstruct
package slimeknights.tconstruct.common;
import net.minecraft.entity.Entity;
import net.minecraft.entity.player.ServerPlayerEntity;
import net.minecraft.network.play.server.SPlaySoundEffectPacket;
import net.minecraft.util.SoundEvent;
import slimeknights.tconstruct.common.network.T... | 436 |
1,787 | # Copyright (c) 2021 <NAME>. All rights reserved.
# This code is licensed under Apache 2.0 with Commons Clause license (see LICENSE.md for details)
"""Named tuples and enumerated types.
Defines enums and other schemas for `vectorbt.portfolio`."""
import numpy as np
from vectorbt import _typing as tp
from vectorbt.u... | 19,993 |
721 | {
"api_id": "slides:v1",
"name_pretty": "Google Slides API",
"distribution_name": "google-apis-slides_v1",
"language": "ruby",
"library_type": "REST"
}
| 80 |
1,337 | /*
* Copyright (c) 2008-2016 Haulmont.
*
* 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... | 862 |
1,107 | <reponame>mavaddat/yori<gh_stars>1000+
/**
* @file petool/petool.c
*
* Yori shell PE tool for manipulating PE files
*
* Copyright (c) 2021 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in... | 4,313 |
852 | #ifndef CalibrationIsolatedParticlesMatrizHCALDetIds_h
#define CalibrationIsolatedParticlesMatrizHCALDetIds_h
#include <vector>
#include "DataFormats/DetId/interface/DetId.h"
#include "DataFormats/GeometryVector/interface/GlobalPoint.h"
#include "DataFormats/GeometryVector/interface/GlobalVector.h"
#include "Geometry... | 2,207 |
335 | {
"word": "Boss",
"definitions": [
"a person who employs or superintends workers; manager.",
"a politician who controls the party organization, as in a particular district.",
"a person who makes decisions, exercises authority, dominates, etc.",
"a person who gives only commands,n... | 129 |
1,132 | package javarepl.rendering;
import org.junit.Test;
import java.util.ArrayList;
import static java.util.Arrays.asList;
import static javarepl.rendering.TypeRenderer.renderType;
import static org.hamcrest.Matchers.is;
import static org.junit.Assert.assertThat;
public class TypeRendererTest {
@Test
public void... | 221 |
3,372 | /*
* Copyright 2016-2021 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 "licen... | 15,627 |
559 | /**
* Copyright (c) 2015-2018 Netflix, 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 requir... | 1,344 |
3,428 | <reponame>ghalimi/stdlib
{"id":"01061","group":"spam-2","checksum":{"type":"MD5","value":"6200efa97d5fecf255e3849dde7a3701"},"text":"Received: from hq.pro-ns.net (localhost [127.0.0.1])\n\tby hq.pro-ns.net (8.12.5/8.12.5) with ESMTP id g6PEw5i5072820\n\t(version=TLSv1/SSLv3 cipher=EDH-DSS-DES-CBC3-SHA bits=168 verify=N... | 1,192 |
1,644 | <reponame>weiminyu/nomulus
// Copyright 2017 The Nomulus 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... | 2,998 |
2,023 | <reponame>tdiprima/code
from bs4 import BeautifulSoup
from mechanize import Browser
import urllib2
import sys,re
if len(sys.argv) == 0:
print "\nSyntax: python %s 'distribution title'" % (sys.argv[0])
exit()
else :
distribution = '+'.join(sys.argv[1].split())
try:
br = Browser()
br.open("http://dis... | 390 |
2,406 | <reponame>monroid/openvino<filename>model-optimizer/mo/utils/ir_reader/extenders/einsum_extender.py
# Copyright (C) 2018-2021 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
from mo.utils.graph import Node
from mo.utils.ir_reader.extender import Extender
class Einsum_extender(Extender):
op = 'Einsum'
... | 267 |
965 | <filename>av/__init__.py
import os
import sys
# Some Python versions distributed by Conda have a buggy `os.add_dll_directory`
# which prevents binary wheels from finding the FFmpeg DLLs in the `av.libs`
# directory. We work around this by adding `av.libs` to the PATH.
if (
os.name == "nt"
and sys.version_info[... | 504 |
369 | /**
* \file
*
* Copyright (c) 2012 Atmel Corporation. All rights reserved.
*
* \asf_license_start
*
* 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 cop... | 4,224 |
1,165 | /*******************************************************************************
* Copyright 2018 T Mobile, 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. You may obtain a copy
* of... | 1,805 |
2,072 | //
// TinyConsole.h
// TinyConsole
//
// Created by <NAME> on 28.11.16.
//
//
#import <UIKit/UIKit.h>
//! Project version number for TinyConsole.
FOUNDATION_EXPORT double TinyConsoleVersionNumber;
//! Project version string for TinyConsole.
FOUNDATION_EXPORT const unsigned char TinyConsoleVersionString[];
// In ... | 132 |
308 | <reponame>metaswitch-ak10/libyang<filename>src/plugins_types/identityref.c
/**
* @file identityref.c
* @author <NAME> <<EMAIL>>
* @brief Built-in identityref type plugin.
*
* Copyright (c) 2019-2021 CESNET, z.s.p.o.
*
* This source code is licensed under BSD 3-Clause License (the "License").
* You may not use t... | 4,916 |
2,406 | <filename>inference-engine/src/transformations/src/transformations/common_optimizations/transpose_to_reshape.cpp
// Copyright (C) 2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "itt.hpp"
#include "transformations/common_optimizations/transpose_to_reshape.hpp"
#include "transformations/utils/... | 1,846 |
945 | <gh_stars>100-1000
/*=========================================================================
*
* 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
*
* h... | 8,894 |
788 | <filename>stack/corepersistence/collection/src/test/java/org/apache/usergrid/persistence/collection/ApplicationContextImplTest.java
package org.apache.usergrid.persistence.collection;
import org.junit.Test;
import org.apache.usergrid.persistence.core.scope.ApplicationScopeImpl;
import org.apache.usergrid.persistence... | 269 |
960 | /**
* Copyright (2017) Baidu Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 2,523 |
9,782 | <gh_stars>1000+
/*
* 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, softw... | 713 |
944 | package com.github.mjdev.libaums.fs;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.mockito.ArgumentCaptor;
import org.mockito.Captor;
import org.mockito.Mock;
import org.mockito.invocation.InvocationOnMock;
import org.mockito.junit.MockitoJUnit;
import org.mockito.junit.MockitoRule;... | 1,743 |
448 | <filename>DSA/Graphs/floyd_warshall.cpp
/** <NAME> is good for graphs having few hundred edges, as it has
* a runtime of O(v^3), but it is a APSP graph - meaning
* All Pair Shortest Path, it gives the shortest path between all the pairs **/
/** It uses a adjacency matrix to store the graph, and it uses dynamic pro... | 1,151 |
1,768 | <gh_stars>1000+
package tlc2.tool.simulation;
import java.io.File;
import java.io.IOException;
import org.openjdk.jmh.annotations.Benchmark;
import org.openjdk.jmh.annotations.BenchmarkMode;
import org.openjdk.jmh.annotations.Level;
import org.openjdk.jmh.annotations.Mode;
import org.openjdk.jmh.annotations.Param;
im... | 844 |
1,091 | /*
* Copyright (c) 2015-2020, Oracle and/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.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
... | 351 |
848 | <filename>tools/Vitis-AI-Runtime/VART/vart/dpu-runner/src/imp/hbm_manager_imp.cpp<gh_stars>100-1000
/*
* Copyright 2019 Xilinx Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* ... | 1,628 |
796 | <filename>test/testsuite/ouroboros/memory_management/Function/RC0244-rc-function-RC_Thread02-RC_Thread_17/RC_Thread_17.java
/*
* Copyright (c) [2020] Huawei Technologies Co.,Ltd.All rights reserved.
*
* OpenArkCompiler is licensed under the Mulan PSL v1.
* You can use this software according to the terms and condit... | 2,951 |
399 | #include "shared/Utils.h"
#include "shared/UtilsMath.h"
#include "shared/vkRenderers/VulkanClear.h"
#include "shared/EasyProfilerWrapper.h"
VulkanClear::VulkanClear(VulkanRenderDevice& vkDev, VulkanImage depthTexture)
: RendererBase(vkDev, depthTexture)
, shouldClearDepth(depthTexture.image != VK_NULL_HANDLE)
{
if (!... | 563 |
384 | package com.example.designpattern;
/**
* Created by alanchen on 15/9/10.
*/
public class Singleton {
private static Singleton ins;
public static synchronized Singleton getIns() {
if (null == ins) {
ins = new Singleton();
}
return ins;
}
}
| 117 |
479 | {
"name": "organizations/{{org_id}}/policies/gcp.detailedAuditLoggingMode",
"parent": "organizations/{{org_id}}",
"spec": {
"rules": [
{
"enforce": true
}
],
"reset": false
}
}
| 108 |
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.
#ifndef CHROME_BROWSER_PREDICTORS_LOADING_PREDICTOR_H_
#define CHROME_BROWSER_PREDICTORS_LOADING_PREDICTOR_H_
#include <map>
#include <me... | 1,968 |
1,844 | /*
* Copyright 2014-2015 Groupon, Inc
* Copyright 2014-2015 The Billing Project, LLC
*
* The Billing Project licenses this file to you under the Apache License, version 2.0
* (the "License"); you may not use this file except in compliance with the
* License. You may obtain a copy of the License at:
*
* http... | 627 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.