max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
9,681 | #!/usr/bin/env python3
import xmlrpc.client
import sys
target = sys.argv[1]
command = sys.argv[2]
with xmlrpc.client.ServerProxy(target) as proxy:
old = getattr(proxy, 'supervisor.readLog')(0,0)
logfile = getattr(proxy, 'supervisor.supervisord.options.logfile.strip')()
getattr(proxy, 'supervisor.supervis... | 190 |
4,036 | public class ReflectionTest {
public static class TestObject1 {
public TestObject1() { }
}
public static class TestObject2 {
public TestObject2() { }
}
public static class TestObject3 {
public TestObject3() { }
}
public static class TestObject4 {
public TestObject4() { }
}
public static class TestO... | 361 |
7,737 | <reponame>nonli/cphalcon<filename>ext/phalcon/validation/validator/file/mimetype.zep.h
extern zend_class_entry *phalcon_validation_validator_file_mimetype_ce;
ZEPHIR_INIT_CLASS(Phalcon_Validation_Validator_File_MimeType);
PHP_METHOD(Phalcon_Validation_Validator_File_MimeType, validate);
ZEND_BEGIN_ARG_WITH_RETURN_T... | 327 |
1,822 | <gh_stars>1000+
"""
Tkinter UI for StaSh
"""
import six
from six.moves import tkinter, tkinter_messagebox, tkinter_scrolledtext, queue
from ..shscreens import ShChar
from ..shcommon import K_CC, K_CD, K_HUP, K_HDN, K_LEFT, K_RIGHT, K_CU, K_TAB, K_HIST, K_CZ, K_KB
from .base import ShBaseUI, ShBaseTerminal, ShBaseSequ... | 12,817 |
473 | /*
* TI OMAP processor's Multichannel SPI emulation.
*
* Copyright (C) 2007-2009 Nokia Corporation
*
* Original code for OMAP2 by <NAME> <<EMAIL>>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software ... | 5,583 |
2,077 | /**
Copyright (c) 2015-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.
*/
#ifndef __plist_Format_XMLParser_h
#define __plist_Format_XMLParser_h
#include <plist/Format/BaseXMLParser.h>
#incl... | 798 |
496 | <gh_stars>100-1000
{
"location": "westus2",
"name": "basepi-test",
"resourceGroupName": "basepi-testing",
"subscriptionId": "7657426d-c4c3-44ac-88a2-3b2cd59e6dba",
"vmId": "e11ebedc-019d-427f-84dd-56cd4388d3a8",
"vmScaleSetName": "",
"vmSize": "Standard_D2s_v3",
"zone": ""
}
| 147 |
4,879 | #pragma once
#include <cstdint>
#include <string>
namespace coding
{
// Computes the Burrows-Wheeler transform of the string |s|, stores
// result in the string |r|. Note - the size of |r| must be |n|.
// Returns the index of the original string among the all sorted
// rotations of the |s|.
//
// *NOTE* in contrast t... | 881 |
1,144 | <gh_stars>1000+
/**
*
*/
package de.metas.callcenter.model;
/*
* #%L
* de.metas.swat.base
* %%
* Copyright (C) 2015 metas GmbH
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation, ei... | 2,265 |
680 | package org.ff4j.property;
/*
* #%L
* ff4j-core
* %%
* Copyright (C) 2013 - 2016 FF4J
* %%
* 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/LI... | 841 |
1,389 | # Copyright (c) 2021 PaddlePaddle 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
#
# Unless required by appli... | 3,912 |
458 | package cppclassanalyzer.plugin;
import ghidra.framework.plugintool.util.PluginPackage;
import resources.ResourceManager;
/**
* The {@link PluginPackage} for the {@value #NAME}
*/
public class CppClassAnalyzerPluginPackage extends PluginPackage {
public static final String NAME = "Ghidra C++ Class Analyzer";
pr... | 153 |
575 | // 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_CORE_PAGE_SCROLLING_SNAP_COORDINATOR_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_PAGE_SCROLLING_SNAP_COORDINATOR_H_
#in... | 1,065 |
5,168 | <gh_stars>1000+
/**
* \file src/gopt/include/megbrain/gopt/misc.h
* 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 writing,
* software distributed under the License is d... | 1,489 |
8,232 | // Copyright (c) Microsoft Corporation.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#include <assert.h>
#include <atomic>
#include <regex>
#include <thread>
#include <vector>
using namespace std;
const int REPEATS = 50; // Repeat the whole test this many times.
const int N = 4; // Sp... | 752 |
5,813 | <filename>core/src/main/java/org/apache/druid/math/expr/ExpressionType.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 licenses this f... | 2,797 |
397 | <filename>robosuite/environments/__init__.py
from .base import REGISTERED_ENVS, MujocoEnv
ALL_ENVIRONMENTS = REGISTERED_ENVS.keys()
| 53 |
778 | <filename>modEvtMgr/test/org/aion/evtmgr/InterfaceCoverageTest.java
package org.aion.evtmgr;
import org.aion.evtmgr.impl.evt.EventBlock;
import org.aion.evtmgr.impl.handler.BlockHandler;
import org.junit.Test;
public class InterfaceCoverageTest {
@Test
public void testIEvent() {
IEvent event = new Ev... | 233 |
487 | /*
* Copyright 2012-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
*
* Unless required by applicable law or agreed to in w... | 796 |
1,350 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.authorization.fluent;
import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
import com.az... | 2,063 |
411 | <filename>lib/cpp-test/hawkes/simulation/hawkes_kernel_power_law_gtest.cpp
// License: BSD 3 clause
#include <gtest/gtest.h>
#include "tick/hawkes/simulation/hawkes_kernels/hawkes_kernel_power_law.h"
class HawkesKernelPowerLawTest : public ::testing::Test {
protected:
double multiplier;
double cutoff;
double e... | 825 |
2,503 | //*********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
// This code is licensed under the MIT License (MIT).
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRANTIES OF FITNESS FOR A PA... | 9,067 |
2,144 | <reponame>ananthdurai/pinot<filename>pinot-core/src/main/java/org/apache/pinot/core/plan/DistinctPlanNode.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... | 1,096 |
12,824 | /*
* Scala (https://www.scala-lang.org)
*
* Copyright EPFL and Lightbend, Inc.
*
* Licensed under Apache License 2.0
* (http://www.apache.org/licenses/LICENSE-2.0).
*
* See the NOTICE file distributed with this work for
* additional information regarding copyright ownership.
*/
package scala.runtime;
public... | 262 |
592 | <reponame>pombredanne/vulncode-db<gh_stars>100-1000
"""Makes vulnerability_resources FK non-nullable.
Revision ID: 4c879a183a73
Revises: <KEY>
Create Date: 2020-10-16 07:28:50.893030
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = "4c879a183a73"
down_revision =... | 322 |
386 | <gh_stars>100-1000
//////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2013-2015, Image Engine Design Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are... | 1,865 |
582 | <gh_stars>100-1000
package org.weiboad.ragnar.server.statistics.api;
import com.google.gson.Gson;
import com.google.gson.JsonSyntaxException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
impo... | 6,240 |
1,733 | /* sha3sum.c - Keccak-f[1600] permutation, sponge construction
*
* Copyright 2014 <NAME> <<EMAIL>>
*
* https://keccak.team/files/Keccak-reference-3.0.pdf
* https://csrc.nist.gov/publications/detail/fips/202/final
* https://nvlpubs.nist.gov/nistpubs/specialpublications/nist.sp.800-185.pdf
// Depends on FLAG(b) be... | 1,482 |
639 | <reponame>nox-410/nnfusion
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# Author: wenxh
# This script is to be used as batch system intergration test in Azure Build Agent
import os
import sys
import subprocess
import multiprocessing
import logging
import json
import pprint
import numpy as n... | 3,455 |
359 | <reponame>roannav/learntools
track = dict(
author_username='dansbecker',
course_name='Deep Learning',
course_url='https://www.kaggle.com/learn/deep-learning',
course_forum_url='https://www.kaggle.com/learn-forum/161321'
)
lessons = [ {'topic': topic_name} for topic_name in
[
'In... | 1,974 |
593 | #if defined(ESP8266) || defined(ESP32)
#include <pgmspace.h>
#else
#include <avr/pgmspace.h>
#endif
// 24 x 24 gridicons_cloud
const unsigned char gridicons_cloud[] PROGMEM = { /* 0X01,0X01,0XB4,0X00,0X40,0X00, */
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
0xFF, 0xFF, 0xC1, 0xFF, 0xFF, 0x00, 0x7F, 0xFF,
... | 432 |
1,163 | // Copyright 2021 The IREE Authors
//
// Licensed 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
#include "libm.h"
// https://en.cppreference.com/w/c/numeric/math/fma
LIBRT_EXPORT float fmaf(fl... | 145 |
3,095 | #ifndef APPDATA_H
#define APPDATA_H
#include "head.h"
class AppData
{
public:
//全局变量
static QStringList Intervals;
static QStringList Datas;
static QStringList Keys;
static QStringList Values;
//读取发送数据列表
static QString SendFileName;
static void readSendData();
//读取转发数据列表
sta... | 278 |
481 | <filename>riposte/guides.py
import ast
from typing import Any, AnyStr, Callable, Dict, Text, Tuple
from riposte.exceptions import GuideError
def literal(value: str) -> Any:
try:
return ast.literal_eval(value)
except Exception:
raise GuideError(value, literal)
def encode(value: str) -> Any:
... | 352 |
412 | #include <assert.h>
int main()
{
while(1 == 1)
__CPROVER_assigns() __CPROVER_loop_invariant(1 == 1)
{
}
}
| 63 |
6,989 | # encoding: utf-8
"""Miscellaneous context managers.
"""
import warnings
# Copyright (c) IPython Development Team.
# Distributed under the terms of the Modified BSD License.
class preserve_keys(object):
"""Preserve a set of keys in a dictionary.
Upon entering the context manager the current values of the ke... | 863 |
677 | /*
* Copyright (C) 2015 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 copyright
* notice, this list of conditions a... | 2,089 |
665 | # clue-plotter v1.14
# Sensor and input plotter for Adafruit CLUE in CircuitPython
# This plots the sensors and three of the analogue inputs on
# the LCD display either with scrolling or wrap mode which
# approximates a slow timebase oscilloscope, left button selects
# next source or with long press changes palette or ... | 4,307 |
879 | package org.zstack.header.network.l2;
import org.zstack.header.message.APIReply;
import org.zstack.header.rest.RestResponse;
import java.util.List;
import static java.util.Arrays.asList;
import java.sql.Timestamp;
@RestResponse(fieldsTo = "all")
public class APIGetCandidateL2NetworksForAttachingClusterReply extends A... | 446 |
310 | {
"name": "Monokai Pro",
"description": "A colour scheme for text editors.",
"url": "https://monokai.pro/"
}
| 42 |
1,062 | /**
* Copyright 2014 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requir... | 1,047 |
1,872 | <reponame>aisk/ironpython3
# Licensed to the .NET Foundation under one or more agreements.
# The .NET Foundation licenses this file to you under the Apache 2.0 License.
# See the LICENSE file in the project root for more information.
##
## Test the io.StringIO
## based on cStringIO_test.py
##
import unittest
import ... | 5,944 |
4,920 | {"hmacKey": {"hmacKeyString": "<KEY>", "size": 256}, "size": 256, "aesKeyString": "<KEY>", "mode": "CBC"} | 41 |
474 | package org.javacord.api.event.server.emoji;
/**
* A custom emoji delete event.
*/
public interface KnownCustomEmojiDeleteEvent extends KnownCustomEmojiEvent {
}
| 51 |
746 | # Copyright (c) OpenMMLab. All rights reserved.
from .module import C2, C, func
__all__ = ['func', 'C', 'C2']
| 42 |
343 | from django import forms
from django.utils.translation import ugettext_lazy as _
from mayan.apps.acls.models import AccessControlList
from mayan.apps.common.settings import (
setting_project_title, setting_project_url
)
from mayan.apps.views.forms import BackendDynamicForm
from .classes import MailerBackend
from ... | 1,402 |
8,570 | <gh_stars>1000+
{
"$schema": "http://json.schemastore.org/ide.host",
"order": 610,
"icon": "icon.png",
"disableHttpsSymbol": "NoHttps",
"symbolInfo": [
{
"id": "Hosted",
"isVisible": true,
"persistenceScope": "templateGroup"
},
{
"id": "PWA",
"isVisible": true,
... | 246 |
563 | package com.gentics.mesh.core.endpoint.admin.consistency;
import java.util.ArrayList;
import java.util.List;
import com.gentics.mesh.core.rest.admin.consistency.InconsistencyInfo;
import com.gentics.mesh.core.rest.admin.consistency.InconsistencySeverity;
import com.gentics.mesh.core.rest.admin.consistency.RepairActio... | 871 |
4,262 | <reponame>rikvb/camel<filename>components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/FtpsOperations.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... | 1,446 |
348 | {"nom":"Saulles","circ":"1ère circonscription","dpt":"Haute-Marne","inscrits":73,"abs":20,"votants":53,"blancs":4,"nuls":7,"exp":42,"res":[{"nuance":"LR","nom":"<NAME>","voix":26},{"nuance":"REM","nom":"<NAME>","voix":16}]} | 91 |
779 | // Based on: https://github.com/iovisor/bcc/blob/master/libbpf-tools/tcpconnect.c
#include "vmlinux.h"
#include "solo_types.h"
#include "bpf/bpf_helpers.h"
#include "bpf/bpf_core_read.h"
#include "bpf/bpf_tracing.h"
char __license[] SEC("license") = "Dual MIT/GPL";
struct dimensions_t {
ipv4_addr saddr;
ipv4_addr d... | 1,252 |
580 | import pytest
from icevision.all import *
from icevision.models.torchvision import keypoint_rcnn
def test_keypoints_rcnn_show_results(ochuman_ds, monkeypatch):
monkeypatch.setattr(plt, "show", lambda: None)
train_ds, valid_ds = ochuman_ds
model = keypoint_rcnn.model(num_keypoints=19)
keypoint_rcnn.sh... | 146 |
375 | #include "fzf.h"
#include <string.h>
#include <ctype.h>
#include <stdlib.h>
// TODO(conni2461): UNICODE HEADER
#define UNICODE_MAXASCII 0x7f
/* Helpers */
#define free_alloc(obj) \
if (obj.allocated) { \
... | 20,167 |
462 | <reponame>matvaibhav/pensieve
{
"appDesc": {
"description": "App description.",
"message": "Crie e edite apresentações"
},
"appName": {
"description": "App name.",
"message": "Google Apresentações"
}
}
| 111 |
713 | package org.infinispan.remoting.transport.jgroups;
import java.io.IOException;
import java.io.InputStream;
import java.util.List;
import java.util.Properties;
import org.infinispan.commons.util.StringPropertyReplacer;
import org.jgroups.JChannel;
import org.jgroups.conf.ProtocolConfiguration;
import org.jgroups.conf.... | 515 |
14,668 | <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 IOS_WEB_VIEW_INTERNAL_CWV_USER_CONTENT_CONTROLLER_INTERNAL_H_
#define IOS_WEB_VIEW_INTERNAL_CWV_USER_CONTENT_CONTROLLER_INTERNAL_H... | 267 |
365 | <reponame>mstute/py-setproctitle
/*-------------------------------------------------------------------------
*
* spt_status.h
*
* Declarations for spt_status.c
*
*-------------------------------------------------------------------------
*/
#ifndef SPT_STATUS_H
#define SPT_STATUS_H
#include "c.h"
HIDDEN extern... | 242 |
426 | <gh_stars>100-1000
/* Code generated by IfcQuery EXPRESS generator, www.ifcquery.com */
#include <map>
#include "ifcpp/model/BasicTypes.h"
#include "ifcpp/model/BuildingException.h"
#include "ifcpp/reader/ReaderUtil.h"
#include "ifcpp/IFC4/include/IfcAmountOfSubstanceMeasure.h"
#include "ifcpp/IFC4/include/IfcAre... | 1,033 |
3,765 | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.plsql.ast;
import net.sourceforge.pmd.annotation.InternalApi;
public class ASTPackageBody extends net.sourceforge.pmd.lang.plsql.ast.AbstractPLSQLNode implements OracleObject {
@Deprecated
... | 330 |
307 | <gh_stars>100-1000
//
//
#include "DebugWindow.h"
#include "globalincs/alphacolors.h"
namespace {
uint32_t get_debug_display() {
// If there are two or more monitors then we would like to display the window on the second monitor but it shouldn't
// be shown on the same monitor that the game is running on
// If th... | 2,548 |
852 | <gh_stars>100-1000
#ifndef PhysicsTools_Heppy_CMGMuonCleanerBySegmentsAlgo_h
#define PhysicsTools_Heppy_CMGMuonCleanerBySegmentsAlgo_h
#include "DataFormats/PatCandidates/interface/Muon.h"
#include "CommonTools/Utils/interface/StringCutObjectSelector.h"
#include <vector>
namespace heppy {
class CMGMuonCleanerBySeg... | 525 |
315 | <reponame>Unthrottled/GrepConsole<filename>src/krasa/grepconsole/plugin/GrepConsoleApplicationComponent.java<gh_stars>100-1000
package krasa.grepconsole.plugin;
import com.intellij.openapi.application.ApplicationManager;
import com.intellij.openapi.components.ApplicationComponent;
import com.intellij.openapi.component... | 1,403 |
2,151 | <reponame>zipated/src
//
// Copyright 2018 The ANGLE 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.
//
// vk_internal_shaders.cpp:
// Pre-generated shader library for the ANGLE Vulkan back-end.
#include "libANGLE/renderer/... | 648 |
314 | //
// UIView+ZJHelperKitUIkit.h
// ZJUIKit
//
// Created by dzj on 2018/1/17.
// Copyright © 2018年 kapokcloud. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UIView (ZJHelperKit)
#pragma mark - Convenience frame api
/**
* view.frame.origin.x
*/
@property (nonatomic, assign) CGFloat zj_originX;
/**
... | 457 |
1,706 | <filename>app/src/main/java/com/lguipeng/notes/view/BetterFab.java
package com.lguipeng.notes.view;
import android.content.Context;
import android.support.design.widget.FloatingActionButton;
import android.util.AttributeSet;
/**
* Created by lgp on 2015/8/2.
*/
public class BetterFab extends FloatingActionButton{
... | 407 |
450 | /*
* Copyright (C) 2008-2018 <NAME> <<EMAIL>>
* Copyright (C) 2008 <NAME> <<EMAIL>>
*
* Licence: wxWindows Library Licence, Version 3.1
*/
#ifndef __FAKE_SAMPLER_H__
#define __FAKE_SAMPLER_H__
#include <glib-object.h>
#include <gum/prof/gumsampler.h>
G_BEGIN_DECLS
#define GUM_TYPE_FAKE_SAMPLER (gum_fake_sample... | 243 |
31,928 | <reponame>matt-mercer/localstack<gh_stars>1000+
import json
import time
def handler(event, context):
result = {"executionStart": time.time(), "event": event}
time.sleep(5)
# Just print the event was passed to lambda
print(json.dumps(result))
return result
| 98 |
3,428 | <reponame>mhmdaminraeisi/stdlib
/**
* @license Apache-2.0
*
* Copyright (c) 2021 The Stdlib 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/LICE... | 31,882 |
1,318 | <filename>ClangLib/usr/lib/clang/13.0.0/include/riscv_vector.h
/*===---- riscv_vector.h - RISC-V V-extension RVVIntrinsics -------------------===
*
*
* 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... | 202,915 |
4,184 | <filename>src/views_vtab.cc
/**
* Copyright (c) 2015, <NAME>
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice, ... | 11,934 |
5,169 | {
"name": "CJComplexUIKit",
"version": "0.0.4",
"summary": "自定义的稍微复杂的UI",
"homepage": "https://github.com/dvlproad/CJUIKit",
"description": "*、CJDataScrollView:带数据的列表视图或集合视图(常用于搜索、图片选择)\n\n A longer description of CJPopupAction in Markdown format.\n\n * Think: Why did you write this? What is the focus? What d... | 1,303 |
1,738 | <filename>dev/Gems/CloudGemFramework/v1/ResourceManager/resource_manager/test/test_integration_service_api_with_custom_domain_name.py<gh_stars>1000+
#
# All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
# its licensors.
#
# For complete copyright and license terms please see the LICENSE a... | 4,194 |
418 | import segm.utils.torch as ptu
from segm.data import ImagenetDataset
from segm.data import ADE20KSegmentation
from segm.data import PascalContextDataset
from segm.data import CityscapesDataset
from segm.data import Loader
def create_dataset(dataset_kwargs):
dataset_kwargs = dataset_kwargs.copy()
dataset_name... | 507 |
2,151 | package org.junit.tests.running.methods;
import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.CoreMatchers.not;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertThat;
import static org.junit.Assert.assertTrue;
im... | 4,645 |
565 |
#pragma once
#include "quantities/dimensions.hpp"
#include "base/not_constructible.hpp"
namespace principia {
namespace quantities {
namespace internal_dimensions {
using base::not_constructible;
class ExponentSerializer : not_constructible {
public:
// Returns true if the exponent is in the range that we can ... | 3,175 |
344 | <filename>src/Examples/Ch08-GeometryColoring/Geometry-02-BasicDrawing/Player.h
//===============================================================================
// @ Player.h
// ------------------------------------------------------------------------------
// Main player
//
// Copyright (C) 2008-2015 by <NAME> and <NAM... | 350 |
1,707 | <gh_stars>1000+
//------------------------------------------------------------------------------
// ResourcePoolTest.cc
//------------------------------------------------------------------------------
#include "Pre.h"
#include "UnitTest++/src/UnitTest++.h"
#include "Resource/ResourcePool.h"
#include "Resource/Resource... | 1,090 |
3,183 | <reponame>DeathGOD7/pythonnet<gh_stars>1000+
"""
Implements collections.abc for common .NET types
https://docs.python.org/3.6/library/collections.abc.html
"""
import collections.abc as col
class IteratorMixin(col.Iterator):
def close(self):
self.Dispose()
class IterableMixin(col.Iterable):
pass
clas... | 967 |
1,160 | #
# Copyright 2014 ARM Limited and Contributors.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list ... | 1,800 |
376 | // Copyright (C) 2017 <NAME>
// This file is part of the "Nazara Engine - Graphics module"
// For conditions of distribution and use, see copyright notice in Config.hpp
#pragma once
#ifndef NAZARA_UBER_SHADER_HPP
#define NAZARA_UBER_SHADER_HPP
#include <Nazara/Prerequisites.hpp>
#include <Nazara/Core/Algorithm.hpp>
... | 771 |
824 | """
Auto graph classification using cross validation methods proposed in
paper `A Fair Comparison of Graph Neural Networks for Graph Classification`
"""
import sys
import random
import torch
import numpy as np
from argparse import ArgumentParser, ArgumentDefaultsHelpFormatter
sys.path.append("../")
from autogl.datas... | 1,468 |
918 | <reponame>gatarelib/LiquidCore
/*
* Copyright (c) 2018 <NAME>
*
* Distributed under the MIT License. See LICENSE.md at
* https://github.com/LiquidPlayer/LiquidCore for terms and conditions.
*/
#include "V82JSC.h"
#include "JSCPrivate.h"
#include "ObjectTemplate.h"
#include "Object.h"
using namespace V82JSC;
usin... | 10,829 |
652 | from datetime import datetime
from functools import wraps
import flask
import requests
from flask import Blueprint
from flask_babel import gettext
from flask_login import current_user, login_required, logout_user
from flask_weasyprint import HTML, render_pdf
from loguru import logger
from sqlalchemy import and_
from ... | 8,223 |
2,571 | // ***************************************************************
// Copyright (c) 2021 Jittor. All Rights Reserved.
// Maintainers:
// <NAME> <<EMAIL>>
// <NAME> <<EMAIL>>.
//
// This file is subject to the terms and conditions defined in
// file 'LICENSE.txt', which is part of this source code package.
/... | 337 |
6,457 | <gh_stars>1000+
// License: Apache 2.0. See LICENSE file in root directory.
// Copyright(c) 2020 Intel Corporation. All Rights Reserved.
#include <numeric>
#include "reflectivity.h"
#include <types.h>
using namespace rs2;
static const size_t N_STD_FRAMES = 100;
static const int NINETY_FIVE_PERCENT_OF_STD_PERIOD ... | 3,376 |
416 | <filename>sfm-jdbc/src/test/java/org/simpleflatmapper/jdbc/test/NamedSqlQueryTest.java<gh_stars>100-1000
package org.simpleflatmapper.jdbc.test;
import org.junit.Test;
import org.simpleflatmapper.jdbc.named.NamedSqlQuery;
import static org.junit.Assert.assertNotNull;
public class NamedSqlQueryTest {
@Test
p... | 201 |
376 | <reponame>leemgs/node-mariasql
/*
Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; version 2 of the License.
This... | 1,063 |
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.
// ------------------------------------------------------------
#include ... | 1,003 |
5,169 | <filename>Specs/0/3/8/AlleeSDK/1.3.2/AlleeSDK.podspec.json
{
"name": "AlleeSDK",
"swift_version": "4.2",
"version": "1.3.2",
"platforms": {
"ios": "8"
},
"license": {
"type": "MIT",
"file": "LICENSE"
},
"summary": "AlleeSDK help you to integrate your POS with our KDS",
"homepage": "https:/... | 349 |
342 | /*
* tkWin32Dll.c --
*
* This file contains a stub dll entry point.
*
* Copyright (c) 1995 Sun Microsystems, Inc.
*
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*/
#include "tkWinInt.h"
#ifndef STATIC_BUILD
#ifdef HAVE_NO_S... | 3,354 |
2,151 | /*
* Copyright (C) 2015 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... | 1,373 |
678 | <gh_stars>100-1000
/**
* This header is generated by class-dump-z 0.2b.
*
* Source: /System/Library/PrivateFrameworks/ToneLibrary.framework/ToneLibrary
*/
#import <ToneLibrary/XXUnknownSuperclass.h>
#import <ToneLibrary/ToneLibrary-Structs.h>
#import <ToneLibrary/UITextFieldDelegate.h>
#import <ToneLibrary/TLVibra... | 1,993 |
1,305 | <reponame>suxingjie99/JavaSource
/*
* Copyright (c) 1995, 2017, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package java.awt;
import java.awt.event.*;
import java.awt.geom.Path2D... | 61,874 |
2,146 | <filename>examples/breakpad/boo.cpp
#include <google_breakpad/common/breakpad_types.h>
int main() {
}
| 40 |
545 | <filename>third_party/java/jarjar/jarjar-core/src/main/java/com/tonicsystems/jarjar/transform/asm/ClassTransformer.java
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.ton... | 176 |
640 | #include <ulib.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#define MATSIZE 10
static int mata[MATSIZE][MATSIZE];
static int matb[MATSIZE][MATSIZE];
static int matc[MATSIZE][MATSIZE];
void
work(unsigned int times) {
int i, j, k, size = MATSIZE;
for (i = 0; i < size; i ++) {
for (... | 1,006 |
1,118 | {"deu":{"common":"Indonesien","official":"Republik Indonesien"},"fin":{"common":"Indonesia","official":"Indonesian tasavalta"},"fra":{"common":"Indonésie","official":"République d'Indonésie"},"hrv":{"common":"Indonezija","official":"Republika Indonezija"},"ita":{"common":"Indonesia","official":"Repubblica di Indonesia"... | 232 |
329 | package kr.dogfoot.hwplib.writer.bodytext.paragraph.control;
import kr.dogfoot.hwplib.object.bodytext.control.ControlFootnote;
import kr.dogfoot.hwplib.object.bodytext.control.ctrlheader.CtrlHeaderFootnote;
import kr.dogfoot.hwplib.object.etc.HWPTag;
import kr.dogfoot.hwplib.util.compoundFile.writer.StreamWriter;
impo... | 984 |
342 | #include "point_cloud_plane_params.h"
float m_sqrt(float x)
{
float half_x = 0.5 * x;
int i = *((int *)&x);
i = 0x5f3759df - (i >> 1);
x = *((float *)&i);
x = x * (1.5 - (half_x * x * x));
return 1 / x;
}
float getVar(float x[], int len)
{
int m = len;
float sum = 0;
for (int i = 0;... | 287 |
2,151 | <filename>chromecast/graphics/cast_window_manager_aura.h
// 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 CHROMECAST_GRAPHICS_CAST_WINDOW_MANAGER_AURA_H_
#define CHROMECAST_GRAPHICS_CAST_WINDOW_M... | 763 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.