max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
4,262 | /*
* 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 ... | 6,270 |
507 | <filename>terrascript/stackpath/r.py
# terrascript/stackpath/r.py
# Automatically generated by tools/makecode.py ()
import warnings
warnings.warn(
"using the 'legacy layout' is deprecated", DeprecationWarning, stacklevel=2
)
import terrascript
class stackpath_compute_network_policy(terrascript.Resource):
pa... | 150 |
1,306 | /*
* Copyright (C) 2011 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... | 15,737 |
713 | <filename>leetcode.com/python/123_Best_Time_to_Buy_and_Sell_Stock_III.py
class Solution(object):
def maxProfit(self, prices):
"""
:type prices: List[int]
:rtype: int
"""
return self.maxProfitWithKTransaction(prices, 2)
def maxProfitWithKTransaction(self, prices, k):
... | 360 |
1,849 | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
import qsharp
from Qrng import SampleQuantumRandomNumberGenerator
print(SampleQuantumRandomNumberGenerator.simulate())
| 50 |
60,067 | <reponame>sanchitintel/pytorch<gh_stars>1000+
import torch
import torch.nn as nn
import torch.nn.quantized as nnq
import torch.utils.bundled_inputs
from torch.ao.quantization import (
default_qconfig,
float_qparams_weight_only_qconfig,
)
# graph mode quantization based on fx
from torch.ao.quantization.quantize... | 1,438 |
678 | /**
* This header is generated by class-dump-z 0.2b.
*
* Source: /System/Library/PrivateFrameworks/iTunesStore.framework/iTunesStore
*/
#import <iTunesStore/XXUnknownSuperclass.h>
@class NSURL;
@interface ISStoreVersion : XXUnknownSuperclass {
NSURL *_redirectURL; // 4 = 0x4
}
@property(retain, nonatomic) NSURL... | 235 |
12,252 | /*
* Copyright 2021 Red Hat, Inc. and/or its affiliates
* and other contributors as indicated by the @author tags.
*
* 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.apa... | 2,033 |
488 | <filename>tests/CompileTests/Fortran_tests/fortran_foo_single_quote.h
! header file
| 30 |
582 | <filename>org.eclipse.gef/src/org/eclipse/gef/internal/ui/palette/editparts/ColumnsLayout.java<gh_stars>100-1000
/*******************************************************************************
* Copyright (c) 2000, 2010 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
*... | 1,634 |
5,939 | <filename>finagle-serversets/src/main/java/com/twitter/finagle/common/io/JsonCodec.java
// =================================================================================================
// Copyright 2011 Twitter, Inc.
// ------------------------------------------------------------------------------------------------... | 1,346 |
349 | <reponame>AntonDyukarev/wiremock<filename>src/test/java/com/github/tomakehurst/wiremock/ResponseDelayAcceptanceTest.java<gh_stars>100-1000
/*
* Copyright (C) 2015-2021 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You... | 3,624 |
665 | /*
* 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")... | 1,387 |
769 | #include "context.h"
#include "map.h"
#include "log.h"
#include "rpiPlatform.h"
#include <cassert>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <iostream>
#include <fcntl.h>
#include <sys/time.h>
#include <sys/shm.h>
#include <termios.h>
#define KEY_ESC 27 ... | 3,464 |
1,350 | <gh_stars>1000+
{
"networkCallRecords" : [ {
"Method" : "POST",
"Uri" : "https://REDACTED.table.core.windows.net/Tables",
"Headers" : {
"x-ms-version" : "2019-02-02",
"User-Agent" : "azsdk-java-azure-data-tables/12.0.0-beta.7 (11.0.6; Windows 10; 10.0)",
"x-ms-client-request-id" : "a1aca... | 1,977 |
377 | <gh_stars>100-1000
/*******************************************************************************
* * Copyright 2012 Impetus Infotech.
* *
* * 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 ... | 4,143 |
5,730 | package org.ansj.recognition.impl;
import org.ansj.app.extracting.Extracting;
import org.ansj.app.extracting.exception.RuleFormatException;
import org.ansj.domain.TermNature;
import org.ansj.domain.TermNatures;
/**
* Created by Ansj on 09/10/2017.
*/
public class URLRecognition extends ExtractingRecognition {
pri... | 297 |
332 | <reponame>BioQwer/vk-java-sdk
package com.vk.api.sdk.objects.enums;
import com.google.gson.annotations.SerializedName;
import com.vk.api.sdk.queries.EnumParam;
/**
* action to be done with the order. Available actions: *cancel — to cancel unconfirmed order. *charge — to confirm unconfirmed order. Applies only if pro... | 323 |
1,384 | <filename>test/layoutGlobalTest.cpp<gh_stars>1000+
#include <gtest/gtest.h>
#include "litehtml.h"
#include "test/container_test.h"
using namespace litehtml;
TEST(LayoutGlobal, Smoke) {
context ctx;
container_test container;
litehtml::document::ptr doc = document::createFromString(_t("<html>Body</html>"), &cont... | 131 |
1,694 | //
// LEFETopViewControllerMark.h
// Example
//
// Created by Wang,Suyan on 2018/12/19.
// Copyright © 2018 <EMAIL>. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface LEFETopViewControllerMark : NSObject
+ (void)revealTopestViewControllerAndFrame;
@end
| 98 |
686 | /*
* (C) Copyright IBM Corp. 2020.
*
* 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... | 1,131 |
325 | <filename>pwnlib/data/includes/linux/i386.h
#define __NR_exit 1
#define __NR_fork 2
#define __NR_read 3
#define __NR_write 4
#define __NR_open 5
#define __NR_close 6
#define __NR_waitpid 7
#define __NR_creat 8
#define __NR_link 9
#define __NR_unlink 10
#define __NR_execve 11
#define __NR_chdir 12
#define __NR_time 13
#... | 13,514 |
1,414 | // File_Extractor 1.0.0. http://www.slack.net/~ant/
#include "blargg_common.h"
/* Copyright (C) 2008-2009 <NAME>. This module is free software; you
can redistribute it and/or modify it under the terms of the GNU Lesser
General Public License as published by the Free Software Foundation; either
version 2.1 of t... | 544 |
326 | // Boost.Geometry (aka GGL, Generic Geometry Library)
// Copyright (c) 2014-2020, Oracle and/or its affiliates.
// Contributed and/or modified by <NAME>, on behalf of Oracle
// Contributed and/or modified by <NAME>, on behalf of Oracle
// Licensed under the Boost Software License version 1.0.
// http://www.boost.org... | 1,551 |
2,270 | /*
==============================================================================
This file is part of the JUCE library.
Copyright (c) 2020 - Raw Material Software Limited
JUCE is an open source library subject to commercial or open-source
licensing.
The code included in this file is provid... | 1,847 |
846 | //
// MakeJSIRuntime.cpp
// Multithreading
//
// Created by <NAME> on 02.04.21.
// Copyright © 2021 Facebook. All rights reserved.
//
#include "MakeJSIRuntime.h"
#include <jsi/jsi.h>
#if __has_include(<hermes/hermes.h>)
// Hermes (https://hermesengine.dev)
#include <hermes/hermes.h>
#elif __has_include(<v8runti... | 329 |
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.
#ifndef ASH_WM_DESKS_ZERO_STATE_BUTTON_H_
#define ASH_WM_DESKS_ZERO_STATE_BUTTON_H_
#include "ash/ash_export.h"
#include "ash/wm/overview/overview_highli... | 1,646 |
988 | /*
* PROGRAM: Interactive SQL utility
* MODULE: isql.h
* DESCRIPTION: Component wide include file
*
* The contents of this file are subject to the Interbase Public
* License Version 1.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy
* of the License at... | 3,150 |
3,705 | import unittest
import numpy as np
import six
import chainer
from chainer import functions
from chainer import testing
from chainer.utils import type_check
def _as_two_dim(x):
if x.ndim == 2:
return x
return x.reshape((len(x), -1))
@testing.parameterize(*testing.product({
'dtype': [np.float16,... | 912 |
542 | package com.onesignal;
import androidx.annotation.NonNull;
public class MockDelayTaskController extends OSDelayTaskController {
private int mockedRandomValue = 0;
private boolean runOnSameThread = true;
public MockDelayTaskController(OSLogger logger) {
super(logger);
}
protected int getR... | 319 |
7,113 | package com.google.common.collect;
import java.util.concurrent.ConcurrentMap;
import java.util.concurrent.TimeUnit;
import com.google.common.base.Function;
import com.google.common.collect.MapMaker.RemovalListener;
import com.google.common.collect.MapMaker.RemovalNotification;
public class OtterMigrateMap {
@Su... | 2,037 |
14,668 | // Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.components.module_installer.logger;
import com.google.android.play.core.splitinstall.model.SplitInstallErrorCode;
import com.google.... | 552 |
2,151 | <filename>mojo/public/cpp/system/file_data_pipe_producer.cc<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.
#include "mojo/public/cpp/system/file_data_pipe_producer.h"
#include <algorith... | 4,072 |
577 | <reponame>awesome-archive/buffalo<filename>buffalo/misc/aux.py
# -*- coding: utf-8 -*-
import os
import abc
import json
import atexit
import psutil
import warnings
import tempfile
import subprocess
from buffalo.misc import log
_temporary_files = []
class Option(dict):
def __init__(self, *args, **kwargs):
... | 2,196 |
337 | /*
* 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
* distribut... | 3,016 |
310 | {
"name": "GoodNotes (iOS)",
"description": "A handwritten note-taking app.",
"url": "http://www.goodnotesapp.com"
} | 43 |
879 | package org.zstack.header.allocator;
import org.zstack.header.host.HostEO;
import org.zstack.header.host.HostVO;
import org.zstack.header.vo.EntityGraph;
import org.zstack.header.vo.ForeignKey;
import org.zstack.header.vo.ForeignKey.ReferenceOption;
import org.zstack.header.vo.Index;
import javax.persistence.Column;
... | 1,173 |
1,118 | //
// SLReusableManager.h
// DarkMode
//
// Created by wsl on 2020/6/14.
// Copyright © 2020 https://github.com/wsl2ls ----- . All rights reserved.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface SLReusableCell : UIView
@end
@class SLReusableManager;
@protocol SLReusableDataSource <NSO... | 640 |
5,460 | <gh_stars>1000+
from .responses import DynamoHandler
url_bases = [r"https?://dynamodb\.(.+)\.amazonaws\.com"]
url_paths = {"{0}/": DynamoHandler.dispatch}
| 62 |
317 | /*************************************************************************
* ADOBE CONFIDENTIAL
* ___________________
*
* Copyright 2017 Adobe Systems Incorporated
* All Rights Reserved.
*
* NOTICE: All information contained herein is, and remains
* the property of Adobe Systems Incorporated and its suppliers,
* if any... | 725 |
3,428 | {"id":"00603","group":"easy-ham-1","checksum":{"type":"MD5","value":"712b15c7b1e7bef7235068a3e4d9bd39"},"text":"From <EMAIL> Tue Sep 17 23:29:41 2002\nReturn-Path: <<EMAIL>>\nDelivered-To: yyyy@localhost.spamassassin.taint.org\nReceived: from localhost (jalapeno [127.0.0.1])\n\tby jmason.org (Postfix) with ESMTP id 5C... | 894 |
2,400 | <reponame>thenonameguy/optaplanner
/*
* Copyright 2020 Red Hat, Inc. and/or 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/LICE... | 2,078 |
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... | 3,284 |
458 | <filename>manifest-generator/generator-services/src/main/java/io/hyscale/generator/services/plugins/NetworkPoliciesHandler.java
/**
* Copyright 2019 <NAME>, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a... | 1,768 |
2,161 | import subprocess
from contextlib import contextmanager
from functools import partial, wraps
from itertools import product
from pathlib import Path
from shutil import rmtree
from tempfile import mkdtemp
import lightgbm as lgb
import numpy as np
import pytest
import statsmodels.api as sm
import xgboost as xgb
from ligh... | 5,446 |
1,258 | <reponame>H1d3r/BurpCrypto
package burp.utils;
import javax.swing.*;
import javax.swing.border.EmptyBorder;
import java.awt.*;
public class UIUtil {
public static JPanel GetXJPanel() {
JPanel panel1 = new JPanel();
panel1.setAlignmentX(0.0f);
panel1.setLayout(new BoxLayout(panel1, 0));
... | 350 |
7,409 | <filename>posthog/settings/shell_plus.py
from posthog.constants import AnalyticsDBMS
from posthog.settings.data_stores import PRIMARY_DB
from posthog.settings.utils import get_from_env, str_to_bool
# shell_plus settings
# https://django-extensions.readthedocs.io/en/latest/shell_plus.html
SHELL_PLUS_PRINT_SQL = get_fr... | 230 |
565 | /*
* Copyright (c) 2014 Spotify AB
*
* 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, ... | 1,480 |
1,144 | /*
* Copyright 2008, 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 applica... | 1,019 |
450 | //===- AsyncPipe.h --------------------------------------------------------===//
//
// The ONNC Project
//
// See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#ifndef ONNC_SUPPORT_ASYNCHRONOUS_PIPE_H
#define ONNC_SUPPORT_ASYNCHR... | 232 |
575 | /*
* Copyright (C) 1999 <NAME> (<EMAIL>)
* (C) 1999 <NAME> (<EMAIL>)
* Copyright (C) 2004, 2005, 2006, 2007, 2010 Apple Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the... | 1,227 |
335 | {
"word": "Beside",
"definitions": [
"At the side of; next to.",
"Compared with.",
"In addition to; apart from."
],
"parts-of-speech": "Preposition"
} | 89 |
4,812 | //=== Registry.h - Linker-supported plugin registries -----------*- 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,803 |
1,671 | /**
* Copyright 2019 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 at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 1,005 |
478 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "pch.h"
#include "AdaptiveSeparatorConfig.h"
#include "AdaptiveSeparatorConfig.g.cpp"
namespace winrt::AdaptiveCards::Rendering::Uwp::implementation
{
AdaptiveSeparatorConfig::AdaptiveSeparatorConfig(::Adaptiv... | 179 |
435 | {
"description": "Aujourd\u2019hui, que ce soit via \u00ab\u00a0Maschine\u00a0\u00bb de Native Instruments, \u00ab\u00a0Push\u00a0\u00bb de Ableton, ou encore via des machines \u00e0 l\u2019esprit plus vintage comme le \u00ab\u00a0Dark Time\u00a0\u00bb de Doepfer ou des \u00e9mulations de vieilles boites \u00e0 rythm... | 996 |
365 | <reponame>regitiny/elasticsearch-analysis-vietnamese
/*
* 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 appl... | 1,122 |
364 | <reponame>xiaobing007/dagli
package com.linkedin.dagli.util.collection;
import java.util.List;
import java.util.stream.Collectors;
/**
* Utility methods for {@link List}s.
*/
public abstract class Lists {
private Lists() { }
/**
* Returns a list containing the first {@code limit} elements of a provided lis... | 1,156 |
854 | <reponame>rakhi2001/ecom7<filename>Python3/813.py<gh_stars>100-1000
__________________________________________________________________________________________________
sample 116 ms submission
import functools, itertools
memoise = functools.lru_cache(maxsize=None)
class Solution:
def largestSumOfAverages(self, A: Li... | 808 |
6,156 | /*
* Copyright (c) 2014-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. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#im... | 2,014 |
1,694 | <gh_stars>1000+
//
// 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 "MMCPLabel.h"
@class NSString, UIColor;
@protocol ILinkEventExt;
@interface UrlLabel : MMCPLabel
{
NSString *_u... | 620 |
609 | {
"name": "kittyCam",
"version": "1.2.0",
"description": "This is a Raspberry Pi app using a camera and PIR motion sensor, with cat facial detection",
"main": "kittyCam.js",
"dependencies": {
"cloudinary": "^1.3.1",
"johnny-five": "^0.9.56",
"nexmo": "^1.0.0-beta-7",
"pubnub": "^3.15.1",
"... | 331 |
2,482 | <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,886 |
1,473 | /*
* Autopsy Forensic Browser
*
* Copyright 2019-2019 Basis Technology Corp.
* Contact: carrier <at> sleuthkit <dot> org
*
* 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... | 901 |
857 | {
"name": "fg-select-css",
"version": "3.2.0",
"description": "Cross-browser CSS for consistent select element styling.",
"scripts": {
},
"repository": {
"type": "git",
"url": "git+https://github.com/filamentgroup/select-css.git"
},
"authors": "zachleat <<EMAIL>> (http://zachleat.com/), @scottje... | 197 |
313 | <gh_stars>100-1000
/*
* Copyright 2021 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 applica... | 393 |
386 | <filename>spring/tars-spring-cloud-starter/src/main/java/com/qq/tars/spring/config/TarsServerProperties.java
/**
* Tencent is pleased to support the open source community by making Tars available.
*
* Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the BSD 3-Clause Li... | 818 |
1,014 | {
"52Y.F": {
"short_name": "VERDITEK PLC LS-,0004",
"long_name": "Verditek PLC",
"summary": "Verditek PLC operates as a clean technology company in the United Kingdom, rest of Europe, and the United States. It manufactures and commercializes solar technologies in the clean energy, CO2 em... | 1,187 |
1,006 | <filename>arch/risc-v/src/bl602/bl602_pwm_lowerhalf.c
/****************************************************************************
* arch/risc-v/src/bl602/bl602_pwm_lowerhalf.c
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed ... | 5,174 |
645 | // Copyright 2014 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.distiller;
import org.chromium.distiller.proto.DomDistillerProtos;
import org.chromium.distiller.proto.DomDistillerProtos.TimingInfo... | 3,604 |
471 | from django.conf.urls import include, url
from corehq.apps.hqwebapp.decorators import waf_allow
from .models import GrapevineResource
gvi_resource = GrapevineResource()
urlpatterns = [
url(r'^api/', include(gvi_resource.urls)),
]
waf_allow('XSS_BODY', hard_code_pattern=r'^/gvi/api/sms/$')
| 117 |
1,153 | //
// QNLruCache.h
// HappyDNS
//
// Created by bailong on 16/7/5.
// Copyright © 2016年 Qiniu Cloud Storage. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface QNLruCache : NSObject
- (instancetype)init:(NSUInteger)limit;
- (void)removeAllObjects;
- (void)removeObjectForKey:(NSString *)key;
... | 160 |
1,392 | # Generated by Django 3.2.12 on 2022-02-09 15:43
from django.db import migrations
from django.utils import timezone
def populate_sales_datetimes(apps, _schema_editor):
timestamp = timezone.now()
Sale = apps.get_model("discount", "Sale")
Sale.objects.update(created=timestamp, updated_at=timestamp)
clas... | 235 |
815 | <gh_stars>100-1000
"""
Module consisting of explorers and tracks that connect arbitrary paraview
pipelines to cinema stores.
"""
from __future__ import absolute_import
import numpy as np
import math
from .. import explorers as explorers
from ...images.camera_utils import convert_pose_to_camera
import paraview.simple ... | 9,183 |
321 | <reponame>andrewvmail/luakit
#include "lua.h"
extern int luaopen_cjson(lua_State *l);
extern int luaopen_cjson_safe(lua_State *l);
| 60 |
322 | <filename>build_index.py
#!/usr/bin/env python3
"""
<Program Name>
build_index.py
<Author>
<NAME> <<EMAIL>>
<Started>
Feb 1, 2021
<Copyright>
See LICENSE-MIT for licensing information.
<Purpose>
Quick and dirty script to generate an index of published specification
versions.
Style cribbed from the b... | 1,925 |
22,688 | /******************************************************************************
* Copyright 2019 The Apollo 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
... | 587 |
11,775 | <reponame>rainyShine/jib
/*
* Copyright 2018 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 ap... | 3,618 |
460 | <reponame>dyzmapl/BumpTop
/****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (<EMAIL>)
**
** This file is part of the QtXmlPatterns module of the Qt Toolkit.
**... | 1,957 |
60,067 | #include "caffe2/transforms/conv_to_nnpack_transform.h"
namespace caffe2 {
REGISTER_TRANSFORM(ConvToNNPack, ConvToNNPackTransform);
} // namespace caffe2
| 57 |
925 | #include "completion.h"
#include <algorithm>
#include <iostream>
#include <string>
#include <vector>
#include "utils.h"
using std::function;
using std::string;
/** Construct a completion context
*
* args The arguments (without the command name)
* index The index of the argument to complete
* shel... | 1,516 |
14,668 | // Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.chrome.test.pagecontroller.controllers.notifications;
import org.chromium.chrome.test.pagecontroller.controllers.PageController;
imp... | 437 |
2,542 | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#pragma once
#include "stdafx... | 8,006 |
1,338 | /*
* Copyright 2009, Haiku, Inc.
* Distributed under the terms of the MIT License.
*
* Authors:
* <NAME> <<EMAIL>>
*/
#ifndef NET_RECEIVER_H
#define NET_RECEIVER_H
#include <AutoDeleter.h>
#include <OS.h>
#include <SupportDefs.h>
class BNetEndpoint;
class StreamingRingBuffer;
typedef status_t (*NewConnectionC... | 427 |
1,056 | <filename>ide/mercurial/src/org/netbeans/modules/mercurial/ui/diff/ExportBundlePanel.java
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF l... | 3,486 |
337 | <gh_stars>100-1000
import argparse
import torch
import numpy as np
import sklearn.decomposition
import tabulate
import time
from swag import data, models, utils, losses
parser = argparse.ArgumentParser(description="PCA plane")
parser.add_argument(
"--dataset", type=str, default="CIFAR10", help="dataset name (def... | 2,426 |
445 | <filename>src/prodbg/PluginUI/PluginUI_create.cpp
#include <QtWidgets/QWidget>
#include "PluginUI/generated/c_api.h"
#include "PluginUI_internal.h"
// extern "C" void plugin_create(PU* ui);
extern struct PU* PU_create_instance(void* user_data, QWidget* parent);
////////////////////////////////////////////////////////... | 227 |
521 | /* file device */
#include "fb.h"
static char *hWrapper( char *buffer, size_t count, FILE *fp )
{
return fgets( buffer, count, fp );
}
int fb_DevFileReadLineDumb
(
FILE *fp,
FBSTRING *dst,
fb_FnDevReadString pfnReadString
)
{
int res = fb_ErrorSetNum( FB_RTERROR_OK );
size_t buffer_len;
i... | 1,538 |
984 | <gh_stars>100-1000
#include <winapifamily.h>
/*++
Copyright (c) Microsoft Corporation. All rights reserved.
Module Name:
winenclave.h
Abstract:
Master include file for Windows software enclaves.
--*/
#ifndef _WINENCLAVE_
#define _WINENCLAVE_
#if defined(_WINDOWS_)
#error Cannot include both windows.h an... | 162 |
306 | package com.hlsp.video.bean.data;
public class UpdateData {
private String currentVersion;
private String update_version;
private String update_content;
private String download_link;
private String is_update;
private String is_force_update;
public String getCurrentVersion() {
retu... | 355 |
3,010 | <filename>ports/mimxrt10xx/boards/imxrt1020_evk/mpconfigboard.h<gh_stars>1000+
#define MICROPY_HW_BOARD_NAME "iMX RT 1020 EVK"
#define MICROPY_HW_MCU_NAME "IMXRT1021DAG5A"
// If you change this, then make sure to update the linker scripts as well to
// make sure you don't overwrite code
#define CIRCUITPY_INTERNAL_NVM_... | 259 |
442 | <reponame>lukefelsberg/ObEngine<filename>include/Core/Tiles/Exceptions.hpp
#pragma once
#include <Exception.hpp>
#include <map>
#include <vector>
namespace obe::Tiles::Exceptions
{
class UnknownTileId : public Exception<UnknownTileId>
{
public:
using Exception::Exception;
UnknownTileId(uin... | 1,388 |
463 | <gh_stars>100-1000
/*
* CORE
* Copyright (c)2010-2012 the Boeing Company.
* See the LICENSE file included in this distribution.
*
* author: <NAME> <<EMAIL>>
*
* vnode_cmd.h
*
*/
#ifndef _VNODE_CMD_H_
#define _VNODE_CMD_H_
#include <sys/types.h>
#include <sys/queue.h>
#include "vnode_msg.h"
typedef struct {... | 632 |
911 | <reponame>buketkonuk/pythondotorg
from django import template
from django.test import TestCase
from ..factories import StoryFactory, StoryCategoryFactory
class StoryTemplateTagTests(TestCase):
def setUp(self):
self.category = StoryCategoryFactory(name='Arts')
self.story1 = StoryFactory(category=s... | 650 |
428 | #include "nine.h"
static Chan *
indirattach(char *spec)
{
char *p;
Dev *d;
if(*spec == 0)
error(Ebadspec);
p = strrchr(spec, '!');
if(p == nil)
p = "";
else
*p++ = 0;
d = devbyname(spec);
if(d == nil || d->dc == '*'){
snprint(up->env->errstr, ERRMAX, "unknown device: %s", spec);
error(up->env->errst... | 266 |
32,544 | package com.baeldung.componentscan.filter.assignable;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.FilterType;
@Configuration
@ComponentScan(includeFilters = @ComponentScan.Filter(type = FilterTy... | 134 |
5,079 | """Implementation of RawJSON
"""
class RawJSON(object):
"""Wrap an encoded JSON document for direct embedding in the output
"""
def __init__(self, encoded_json):
self.encoded_json = encoded_json
| 73 |
302 | ////////////////////////////////////////////////////////////////////////////////////////////////////
// This file is part of CosmoScout VR //
// and may be used under the terms of the MIT license. See the LICENSE file for details. //
// ... | 1,399 |
887 | <gh_stars>100-1000
/***************************************************************
QGVCore
Copyright (c) 2014, <NAME>, All rights reserved.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; eit... | 295 |
2,918 | <reponame>goyuninfo/scribejava
package com.github.scribejava.core.extractors;
import com.github.scribejava.core.model.OAuth1RequestToken;
public class OAuth1RequestTokenJSONExtractor extends AbstractOAuth1JSONTokenExtractor<OAuth1RequestToken> {
protected OAuth1RequestTokenJSONExtractor() {
}
@Override
... | 243 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.