max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
346 | <filename>Language Skills/Python/Unit 05 Lists & Dictionaries/02 A Day at the Supermarket/Owning a Store/9-Something of value.py
prices = {
"banana" : 4,
"apple" : 2,
"orange" : 1.5,
"pear" : 3,
}
stock = {
"banana" : 6,
"apple" : 0,
"orange" : 32,
"pear" : 15,
}
for key in prices... | 221 |
1,853 | int main()
{
struct S
{
int v{676};
int v2 = 828;
};
}
| 52 |
580 | <gh_stars>100-1000
#include<bits/stdc++.h>
#define ll long long int
#define watch(x) cout << (#x) << " is " << (x) << endl //watch function print variable and value for debugging
#define count_ones __builtin_popcountll // count_ones(9) is equal to 2 valid for ll also
#define MOD 1000000007
#defin... | 369 |
1,091 | <reponame>meodaiduoi/onos
/*
* Copyright 2017-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.0
*
... | 2,627 |
317 | <filename>mxnet/image_train.hpp<gh_stars>100-1000
/*!
* Copyright (c) 2016 by Contributors
*/
#ifndef __H2O_IMAGE_TRAIN_H__
#define __H2O_IMAGE_TRAIN_H__
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include <map>
#include <network_def.hpp>
class ImageTrain{
private:
void setCla... | 885 |
1,204 | <reponame>DiegoEliasCosta/gs-collections<gh_stars>1000+
/*
* Copyright 2014 <NAME>.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... | 3,579 |
1,338 | <reponame>Kirishikesan/haiku
/*
* Copyright 2008-2011, Haiku, Inc. All rights reserved.
* Distributed under the terms of the MIT License.
*
* Authors:
* <NAME>, <EMAIL>
*/
#include "DeviceSCSI.h"
#include <scsi.h>
#include <sstream>
#include <stdlib.h>
#include <Catalog.h>
#undef B_TRANSLATION_CONTEXT
#defi... | 1,039 |
551 | @interface MIMEAddress : NSObject
@property (nonatomic, retain, readonly) NSString *name;
@end
| 31 |
332 | <filename>java/org/cef/network/CefWebPluginInfo.java
// Copyright (c) 2014 The Chromium Embedded Framework 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.cef.network;
/**
* Information about a specific web plugin.
*/
... | 255 |
438 | # Copyright 2014, Sandia Corporation. Under the terms of Contract
# DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains certain
# rights in this software.
"""Provides the top-level :ref:`convenience-api`, which allows you to create
many plots using a single compact statement.
"""
import logging
imp... | 6,969 |
1,611 | """
Cluster Agent for Cloud Foundry tasks
"""
import os
from invoke import task
from .build_tags import get_default_build_tags
from .cluster_agent_helpers import build_common, clean_common, refresh_assets_common, version_common
# constants
BIN_PATH = os.path.join(".", "bin", "datadog-cluster-agent-cloudfoundry")
... | 684 |
2,542 | <reponame>AnthonyM/service-fabric<filename>src/prod/src/ServiceModel/management/FileStoreService/StoreFileVersion.cpp
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root fo... | 1,240 |
338 | package com.tvd12.ezyfoxserver.nio.handler;
import java.nio.ByteBuffer;
import java.nio.channels.SelectionKey;
import com.tvd12.ezyfox.callback.EzyCallback;
import com.tvd12.ezyfox.codec.EzyByteToObjectDecoder;
import com.tvd12.ezyfox.codec.EzyMessage;
import com.tvd12.ezyfox.codec.EzyMessageDataDecoder;
import com.... | 1,382 |
831 | <filename>room/src/com/android/tools/idea/room/migrations/json/PrimaryKeyBundle.java
/*
* Copyright (C) 2019 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 ... | 482 |
427 | <gh_stars>100-1000
//===- BuildKey.h -----------------------------------------------*- C++ -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See ... | 1,971 |
435 | <filename>pydata-new-york-city-2019/videos/samuel-rochette-quantifying-uncertainty-in-machine-learning-models-pydata-new-york-2019.json
{
"copyright_text": null,
"description": "Many models give a lot more information during the inference process that we usually know. We will begin with an intrinsic estimation of a... | 361 |
5,168 | <filename>dnn/src/cuda/convolution/backward_data/matmul.cpp
/**
* \file dnn/src/cuda/convolution/backward_data/matmul.cpp
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* Unless required by applicable law or agreed to in... | 3,037 |
342 | package com.edlplan.framework.support.timing;
public interface IRunnableHandler {
void post(Runnable r);
void post(Runnable r, double delayMS);
}
| 55 |
892 | <gh_stars>100-1000
{
"schema_version": "1.2.0",
"id": "GHSA-mwx3-cc72-hfg4",
"modified": "2022-05-13T01:13:47Z",
"published": "2022-05-13T01:13:47Z",
"aliases": [
"CVE-2018-20662"
],
"details": "In Poppler 0.72.0, PDFDoc::setup in PDFDoc.cc allows attackers to cause a denial-of-service (application cr... | 1,187 |
765 | /*
* Copyright (c) 2021 The Regents of the University of California.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met: redistributions of source code must retain the above copyright
* notic... | 1,420 |
2,208 | __author__ = '<NAME>, <EMAIL>'
from .environment import Environment
class GraphicalEnvironment(Environment):
""" Special type of environment that has graphical output and therefore needs a renderer.
"""
def __init__(self):
self.renderer = None
def setRenderer(self, renderer):
""" set... | 404 |
14,668 | // Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the Chromium LICENSE file.
#include "qcmsint.h"
#include <math.h>
typedef struct _qcms_coords {
float x;
float y;
} qcms_coords;
typedef struct _qcms_triangle {
... | 1,034 |
678 | /**
* This header is generated by class-dump-z 0.2b.
*
* Source: /System/Library/PrivateFrameworks/GMM.framework/GMM
*/
#import <GMM/XXUnknownSuperclass.h>
__attribute__((visibility("hidden")))
@interface GMMDirectionsOptionValue : XXUnknownSuperclass {
int _optionID; // 4 = 0x4
BOOL _hasValue; // 8 = 0x8
int... | 495 |
2,151 | /*
* Copyright 2013 The Native Client Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can
* be found in the LICENSE file.
*/
// DO NOT EDIT: GENERATED CODE
#ifndef NACL_TRUSTED_BUT_NOT_TCB
#error This file is not meant for use in the TCB
#endif
#include "gtest/gt... | 6,940 |
1,137 | <filename>Tests/test_types.py
import os
import types
def test_subclassdict():
"""Test that a subclass of dict can be merged into a static dict"""
out = {**os.environ, 'foo': 'bar'}
assert 'foo' in out
def test_change_method():
class A:
def foo(self):
return 1
def bar(sel... | 521 |
335 | <filename>O/Oread_noun.json
{
"word": "Oread",
"definitions": [
"A nymph believed to inhabit mountains."
],
"parts-of-speech": "Noun"
} | 73 |
3,066 | <reponame>skofra0/crate
/*
* Licensed to Crate.io GmbH ("Crate") under one or more contributor
* license agreements. See the NOTICE file distributed with this work for
* additional information regarding copyright ownership. Crate licenses
* this file to you under the Apache License, Version 2.0 (the "License");
... | 4,072 |
1,056 | <reponame>arusinha/incubator-netbeans
/*
* 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... | 5,769 |
347 | <reponame>hbraha/ovirt-engine<filename>backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/irsbroker/GetImageInfoVDSCommand.java
package org.ovirt.engine.core.vdsbroker.irsbroker;
import org.ovirt.engine.core.common.businessentities.storage.DiskImage;
import org.ovirt.engine.core.common.vds... | 584 |
1,666 | <reponame>madanagopaltcomcast/pxCore
#include <node.h>
#include <v8.h>
namespace {
using v8::FunctionCallbackInfo;
using v8::Isolate;
using v8::Local;
using v8::NewStringType;
using v8::Object;
using v8::Promise;
using v8::String;
using v8::Value;
static void ThrowError(Isolate* isolate, const char* err_msg) {
Loc... | 404 |
666 | import sys
sys.path.append("../")
from appJar import gui
import random
val = 0
def press(btn):
print(btn)
def updateMeter():
global val
val = random.randint(0,100)
app.setMeter("m1", (val, val))
# val += 1
app=gui()
app.startTabbedFrame("One")
app.startTab("Two")
app.addDualMeter("m1")
... | 548 |
1,475 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional information regarding
* copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the
* "License"); you may not ... | 1,047 |
460 | #include "../../src/dbus/qdbuserror.h"
| 19 |
32,544 | package com.baeldung.ex.beancreationexception.spring;
import com.baeldung.ex.beancreationexception.cause9.BeanB;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.an... | 305 |
2,542 | <gh_stars>1000+
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
// CRC values a... | 2,454 |
2,151 | <reponame>Keneral/aframeworks
/*
* Copyright (C) 2014 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.... | 1,385 |
409 | #ifndef MONITORDATA_H
#define MONITORDATA_H
/**
* MonitorData 类
* 监控数据的容器类
* 类中实现一些基本判断
* 如:是否有cookie,请求的文档类是什么等
* @author Tapir
* @date 2012-02-03
*/
#include <QObject>
#include <QDebug>
#include <QString>
class MonitorData: public QObject
{
Q_OBJECT
private:
public:
explicit MonitorData();
/... | 1,022 |
3,294 | <gh_stars>1000+
//<snippet1>
// PInvokeLib.cpp : Defines the entry point for the DLL application.
//
#define PINVOKELIB_EXPORTS
#include "PInvokeLib.h"
#include <strsafe.h>
#include <objbase.h>
#include <stdio.h>
#pragma comment(lib,"ole32.lib")
BOOL APIENTRY DllMain( HANDLE hModule,
DWORD u... | 3,841 |
3,680 | #!/pxrpythonsubst
#
# Copyright 2020 Pixar
#
# Licensed under the Apache License, Version 2.0 (the "Apache License")
# with the following modification; you may not use this file except in
# compliance with the Apache License and the following modification to it:
# Section 6. Trademarks. is deleted and replaced with:
#
... | 556 |
375 | {
"logo0": "music.bmp",
"logo1": "obs.bmp",
"logo2": "firefox.bmp",
"logo3": "mail.bmp",
"logo4": "youtube.bmp",
"logo5": "settings.bmp"
} | 82 |
854 | __________________________________________________________________________________________________
class Solution {
public:
bool canWin(string s) {
for (int i = 1; i < s.size(); ++i) {
if (s[i] == '+' && s[i - 1] == '+' && !canWin(s.substr(0, i - 1) + "--" + s.substr(i + 1))) {
r... | 332 |
311 |
#include <stdio.h>
int main() {
int num = 1414942034;
printf("%02X:%02X:%02X:%02X", ((unsigned char *)(&num))[0],((unsigned char *)(&num))[1], ((unsigned char *)(&num))[2], ((unsigned char *)(&num))[3]);
return 0;
} | 112 |
545 | <filename>src/samples/debug/sio/main.c
/*
* PSP Software Development Kit - https://github.com/pspdev
* -----------------------------------------------------------------------
* Licensed under the BSD license, see LICENSE in PSPSDK root for details.
*
* main.c - Basic sample to demonstrate the remote port sio.
*
... | 633 |
312 | /* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
[
{
"namespace": "contentScripts",
"types": [
{
"id": "RegisteredContentScriptOptions",
... | 1,459 |
3,680 | <filename>pxr/usd/usdMedia/testenv/testUsdMediaSpatialAudio.py
#!/pxrpythonsubst
#
# Copyright 2019 Pixar
#
# Licensed under the Apache License, Version 2.0 (the "Apache License")
# with the following modification; you may not use this file except in
# compliance with the Apache License and the following modification t... | 1,115 |
407 | <filename>paas/appmanager/tesla-appmanager-domain/src/main/java/com/alibaba/tesla/appmanager/domain/core/CustomWorkloadResource.java
package com.alibaba.tesla.appmanager.domain.core;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import com.alibaba.tesla.appmanager.domain.schema.Custo... | 406 |
1,537 | <gh_stars>1000+
# Copyright (c) 2016, Xilinx, 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 copyright notice,
# ... | 1,063 |
1,775 | /**
* CodeBaseTest简单描述Java SecurityManager的使用
*
* AttackTest尝试以多种方式去对Java SecurityManager进行绕过,越权执行操作
*
*
* @author xuanyh
*/
package com.threedr3am.bug.security.manager; | 105 |
368 | package org.nem.core.model.observers;
import org.hamcrest.MatcherAssert;
import org.hamcrest.core.IsEqual;
import org.junit.*;
import org.nem.core.model.*;
import org.nem.core.test.Utils;
public class MultisigMinCosignatoriesModificationNotificationTest {
@Test
public void canCreateNotification() {
// Act:
fin... | 301 |
348 | <gh_stars>100-1000
{"nom":"Gouaux-de-Larboust","circ":"8ème circonscription","dpt":"Haute-Garonne","inscrits":90,"abs":24,"votants":66,"blancs":3,"nuls":1,"exp":62,"res":[{"nuance":"REM","nom":"M. <NAME>","voix":33},{"nuance":"SOC","nom":"<NAME>","voix":29}]} | 110 |
309 | <gh_stars>100-1000
#include <vtkSmartPointer.h>
#include <vtkSurfaceReconstructionFilter.h>
#include <cmath>
#include <vtkCamera.h>
#include <vtkContourFilter.h>
#include <vtkMath.h>
#include <vtkNamedColors.h>
#include <vtkPolyData.h>
#include <vtkPolyDataMapper.h>
#include <vtkProgrammableSource.h>
#include <vtkPrope... | 1,915 |
660 | /*
* Copyright (c) 2020, Intel Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publis... | 952 |
1,587 | <gh_stars>1000+
package io.pratik.springcloudrds;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class SpringcloudrdsApplicationTests {
@Autowired
private SystemRepository systemReposito... | 154 |
1,209 | <reponame>JJPowelly/u8glib<gh_stars>1000+
/*
Fontname: -Adobe-Symbol-Medium-R-Normal--17-120-100-100-P-95-Adobe-FontSpecific
Copyright: Copyright (c) 1984, 1987 Adobe Systems Incorporated. All Rights Reserved. Copyright (c) 1988, 1991 Digital Equipment Corporation. All Rights Reserved.
Capital A Height: 11, '1' H... | 4,511 |
1,405 | package tms;
import android.os.RemoteException;
import com.tencent.tmsecure.module.permission.IDummyService;
import com.tencent.tmsecure.module.permission.PermissionTableItem;
import tms.es;
/* access modifiers changed from: package-private */
public final class du implements es.a {
final /* synthetic */ int a;
... | 464 |
2,151 | // Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef THIRD_PARTY_BLINK_RENDERER_MODULES_PAYMENTS_PAYMENT_APP_SERVICE_WORKER_GLOBAL_SCOPE_H_
#define THIRD_PARTY_BLINK_RENDERER_MODULES_PAYMENTS_PAYMENT... | 353 |
332 | // Autogenerated from vk-api-schema. Please don't edit it manually.
package com.vk.api.sdk.objects.groups;
import com.google.gson.annotations.SerializedName;
import com.vk.api.sdk.queries.EnumParam;
/**
* Type of online status of group
*/
public enum OnlineStatusType implements EnumParam {
@SerializedName("none... | 270 |
1,253 | <reponame>oliviertassinari/validator
/*
* Copyright (c) 2008 Mozilla Foundation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* ... | 1,337 |
1,073 | // RUN: %clang -### -working-directory /no/such/dir/ input 2>&1 | FileCheck %s
//CHECK: no such file or directory: '/no/such/dir/input'
| 50 |
9,516 | import torch
import torch.nn as nn
import torch.nn.functional as F
class MLP(nn.Module):
def __init__(
self, in_feats, n_classes, n_layers, n_hidden, activation, dropout=0.0, input_drop=0.0, residual=False,
):
super().__init__()
self.n_layers = n_layers
self.n_hidden = n_hidden... | 709 |
361 | <filename>tern/formats/spdx/spdxtagvalue/file_helpers.py
# -*- coding: utf-8 -*-
#
# Copyright (c) 2020 VMware, Inc. All Rights Reserved.
# SPDX-License-Identifier: BSD-2-Clause
"""
File level helpers for SPDX tag-value document generator
"""
from tern.formats.spdx import spdx_common
def get_file_comment(filedata):... | 1,291 |
343 | #include "stdafx.h"
RH_C_SHARED_ENUM_PARSE_FILE("../../../opennurbs/opennurbs_text.h")
//--------------------------------------------------------
// ON_Text
//--------------------------------------------------------
RH_C_FUNCTION ON::AnnotationType ON_V6_Annotation_AnnotationType(const ON_Annotation* annotationptr)... | 23,936 |
2,058 | from functools import lru_cache, partial
from collections import OrderedDict
from contextlib import contextmanager
import html
from itertools import count
import os
import signal
import subprocess
import sys
import time
import threading
import traceback
import sublime
MYPY = False
if MYPY:
from typing import Cal... | 4,082 |
812 | import json
from nose import SkipTest
from tests.test_stack import TestConfig, app_from_config
from tg.support.paginate import Page
from tg.controllers.util import _urlencode
from tg import json_encode
from tg.util.webtest import test_context
def setup_noDB():
base_config = TestConfig(folder='rendering',
... | 5,190 |
362 | package net.ripe.db.whois.update.domain;
import net.ripe.db.whois.update.keycert.X509CertificateWrapper;
import java.security.cert.X509Certificate;
import java.util.Objects;
public class ClientCertificateCredential implements Credential {
private final X509Certificate x509Certificate;
private final String f... | 473 |
450 | /*
* Copyright (c) 2004, 2005 TADA AB - Taby Sweden
* Distributed under the terms shown in the file COPYRIGHT
* found in the root folder of this project or at
* http://eng.tada.se/osprojects/COPYRIGHT.html
*/
package org.postgresql.pljava.example.annotation;
import org.postgresql.pljava.annotation.Function;
impo... | 712 |
351 | <filename>samples/aci-show-tenants-in-multisite-orchestrator.py
# Sample code accessing the Cisco Multisite Orchestrator
from requests import Session
# Replace the following variables with the correct values for your deployment.
username = 'admin'
password = 'password'
mso_ip = '10.10.10.10'
def show_tenants():
... | 396 |
349 | /*********************************************************************************
*
* Inviwo - Interactive Visualization Workshop
*
* Copyright (c) 2015-2021 Inviwo Foundation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided th... | 1,393 |
1,698 | {
"$schema": "http://json-schema.org/draft-04/schema",
"title": "JSON Schema for Content Security Policy (Level 2) violation reports",
"description": "https://www.w3.org/TR/CSP2/#violation-reports",
"type": "object",
"required": [ "csp-report" ],
"properties": {
"csp-report": {
"type": "object"... | 936 |
354 | /*
* Copyright (C) 2017 <NAME> Software & Consulting (dlsc.com)
*
* 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
*
* Unles... | 1,818 |
4,816 | /**
* @file include/retdec/bin2llvmir/providers/calling_convention/mips64/mips64_conv.h
* @brief Calling convention of Mips64 architecture.
* @copyright (c) 2017 Avast Software, licensed under the MIT license
*/
#ifndef RETDEC_BIN2LLVMIR_PROVIDERS_CALL_CONV_MIPS64_MIPS64_H
#define RETDEC_BIN2LLVMIR_PROVIDERS_CALL_... | 274 |
777 | <reponame>google-ar/chromium
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/process/process_info.h"
#include <stdint.h>
#include "base/logging.h"
#include "base/process/internal_linux.... | 284 |
1,655 | <reponame>chaosink/tungsten
#include "NullBsdf.hpp"
#include "io/JsonObject.hpp"
namespace Tungsten {
NullBsdf::NullBsdf()
{
_lobes = BsdfLobes::NullLobe;
}
rapidjson::Value NullBsdf::toJson(Allocator &allocator) const
{
return JsonObject{Bsdf::toJson(allocator), allocator,
"type", "null"
};
}
... | 301 |
4,462 | import mxnet as mx
from mxnet.util import use_np
import numpy as np
import random
@use_np
def average_checkpoints(checkpoint_paths, out_path):
data_dict_l = []
avg_param_dict = dict()
for path in checkpoint_paths:
data_dict = mx.npx.load(path)
data_dict_l.append(data_dict)
for key in d... | 402 |
494 | <filename>greenmail-core/src/main/java/com/icegreen/greenmail/store/RootFolder.java<gh_stars>100-1000
/* -------------------------------------------------------------------
* This software is released under the Apache license 2.0
* -------------------------------------------------------------------
*/
package com.icegr... | 190 |
5,169 | {
"name": "Paymentpage-sdk-ios",
"version": "1.9.4",
"summary": "Payment page SDK",
"description": "SDK for iOS is a software development kit for fast integration of the ECommPay payment solutions right in your mobile app for iOS.",
"homepage": "https://github.com/ITECOMMPAY/paymentpage-sdk-ios",
"license":... | 460 |
4,054 | <reponame>mforbes/readthedocs.org<filename>readthedocs/settings/proxito/test.py
from ..test import CommunityTestSettings
from .base import CommunityProxitoSettingsMixin
class CommunityProxitoTestSettings(
CommunityProxitoSettingsMixin,
CommunityTestSettings
):
PUBLIC_DOMAIN = 'dev.readthedocs.io'... | 168 |
631 | package com.neu.his.cloud.service.pms.model;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
public class BmsOperatorSettleRecord implements Serializable {
private Long id;
private Date startDatetime;
private Date endDateti... | 3,292 |
2,151 | // Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef MEDIA_VIDEO_MOCK_GPU_VIDEO_ACCELERATOR_FACTORIES_H_
#define MEDIA_VIDEO_MOCK_GPU_VIDEO_ACCELERATOR_FACTORIES_H_
#include <stddef.h>
#include <std... | 1,523 |
374 | /******************************************************************************
* Copyright 1998-2019 Lawrence Livermore National Security, LLC and other
* HYPRE Project Developers. See the top-level COPYRIGHT file for details.
*
* SPDX-License-Identifier: (Apache-2.0 OR MIT)
**************************************... | 3,660 |
348 | <gh_stars>100-1000
{"nom":"Port-sur-Seille","circ":"6ème circonscription","dpt":"Meurthe-et-Moselle","inscrits":193,"abs":113,"votants":80,"blancs":13,"nuls":3,"exp":64,"res":[{"nuance":"FI","nom":"<NAME>","voix":44},{"nuance":"FN","nom":"<NAME>","voix":20}]} | 108 |
2,209 | """An implementation of Matching Layer."""
import typing
import tensorflow as tf
from keras.engine import Layer
class MatchingLayer(Layer):
"""
Layer that computes a matching matrix between samples in two tensors.
:param normalize: Whether to L2-normalize samples along the
dot product axis befor... | 2,850 |
852 | <gh_stars>100-1000
#ifndef RecoLocalTracker_SiPhase2Clusterizer_Phase2TrackerClusterizerSequentialAlgorithm_h
#define RecoLocalTracker_SiPhase2Clusterizer_Phase2TrackerClusterizerSequentialAlgorithm_h
#include "DataFormats/Common/interface/DetSetVector.h"
#include "DataFormats/Common/interface/DetSetVectorNew.h"
#incl... | 639 |
989 | {
"properties": [
{
"name": "streamx.shiro.anonUrl",
"type": "java.lang.String",
"description": "Description for streamx.shiro.anonUrl."
},
{
"name": "streamx.shiro.jwtTimeOut",
"type": "java.lang.String",
"description": "Description for streamx.shiro.jwtTimeOut."
}... | 971 |
10,225 | package io.quarkus.grpc.runtime.config;
import java.time.Duration;
import java.util.Optional;
import io.quarkus.runtime.annotations.ConfigGroup;
import io.quarkus.runtime.annotations.ConfigItem;
@SuppressWarnings("OptionalUsedAsFieldOrParameterType")
@ConfigGroup
public class GrpcServerNettyConfig {
/**
* ... | 173 |
413 | #!/usr/bin/env python3
import argparse
import numpy as np
import numpy.random as npr
import torch
import os, sys
import shutil
import matplotlib as mpl
mpl.use('Agg')
import matplotlib.pyplot as plt
plt.style.use('bmh')
def main():
parser = argparse.ArgumentParser()
parser.add_argument('--minBps', type=int,... | 964 |
4,223 | <filename>Xcode/Examples/Tests/AutoPingTest/Mobile/AutoPingTest/AutoPingTestViewController.h
//
// AutoPingTestViewController.h
// AutoPingTest
//
// Created by <NAME> on 9/1/11.
// Copyright 2011 __MyCompanyName__. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface AutoPingTestViewController : UIViewCont... | 112 |
679 | /**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... | 1,800 |
729 | <gh_stars>100-1000
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: enums.proto
package org.jigsaw.payment.model;
/**
* <pre>
**
* 状态码
* </pre>
*
* Protobuf enum {@code StatusCode}
*/
public enum StatusCode
implements com.google.protobuf.ProtocolMessageEnum {
/**
* <code>SUCCESS ... | 8,741 |
381 | import geojson
import h3
def polyfill_polygon(polygon: geojson.Polygon, resolution):
h3_indexes = h3.polyfill(dict(type=polygon.type, coordinates=polygon.coordinates),
resolution,
geo_json_conformant=True)
return h3_indexes
| 143 |
2,381 | package com.github.dockerjava.cmd;
import com.github.dockerjava.api.command.CreateContainerResponse;
import com.github.dockerjava.api.exception.NotFoundException;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.InputStream;
import static com.github.dockerjava.core.Remot... | 809 |
892 | <reponame>github/advisory-database
{
"schema_version": "1.2.0",
"id": "GHSA-6xc5-p2xh-3cfm",
"modified": "2022-05-13T00:00:29Z",
"published": "2022-05-13T00:00:28Z",
"aliases": [
"CVE-2022-22798"
],
"details": "Sysaid – Pro Plus Edition, SysAid Help Desk Broken Access Control v20.4.74 b10, v22.1.20 b6... | 464 |
2,959 | <gh_stars>1000+
#include <Foundation/Foundation.h>
/*! @brief HFRange is the 64 bit analog of NSRange, containing a 64 bit location and length. */
typedef struct {
unsigned long long location;
unsigned long long length;
} HFRange;
/*! @brief HFFPRange is a struct used for representing floating point ranges, s... | 353 |
768 | <gh_stars>100-1000
package net.engio.mbassy.bus;
import net.engio.mbassy.bus.common.PubSubSupport;
import net.engio.mbassy.bus.config.IBusConfiguration;
import net.engio.mbassy.bus.error.MissingPropertyException;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
import java.util.UUID;
/**
... | 512 |
4,339 | /*
* 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 ... | 673 |
1,170 | <reponame>Nightonke/Gitee<gh_stars>1000+
//
// VHTrendingLanguageCellView.h
// VHGithubNotifier
//
// Created by Nightonke on 2017/9/24.
// Copyright © 2017年 黄伟平. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "VHLanguage.h"
@protocol VHTrendingLanguageCellViewDelegate <NSObject>
@required
- (void)onLan... | 226 |
480 | <reponame>weicao/galaxysql
/*
* 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
... | 4,945 |
1,812 | <reponame>1006079161/qpdf
#include <qpdf/SparseOHArray.hh>
#include <assert.h>
#include <iostream>
int main()
{
SparseOHArray a;
assert(a.size() == 0);
a.append(QPDFObjectHandle::parse("1"));
a.append(QPDFObjectHandle::parse("(potato)"));
a.append(QPDFObjectHandle::parse("null"));
a.append(QPD... | 1,465 |
411 | // Copyright 2009, Squish Tech, LLC.
#ifndef SRC_XML_ELEMENT_H_
#define SRC_XML_ELEMENT_H_
#include "libxmljs.h"
#include "xml_node.h"
namespace libxmljs {
class XmlElement : public XmlNode {
public:
explicit XmlElement(xmlNode* node);
static void Initialize(v8::Local<v8::Object> target);
static Nan::... | 758 |
988 | <gh_stars>100-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
... | 3,246 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.