max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
435 | <reponame>amaajemyfren/data
{
"description": "Feedback session and Closing Address of PyCon Pune",
"duration": 2966,
"recorded": "2017-02-17",
"speakers": [
"Various speakers"
],
"thumbnail_url": "https://i.ytimg.com/vi/Bep1oQ2VW0o/hqdefault.jpg",
"title": "Feedback session and Closing Address",
"vi... | 185 |
1,056 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 503 |
629 | <reponame>unghee/TorchCraftAI
/*
* Copyright (c) 2017-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#pragma once
#include <set>
#include <vector>
#include "module.h"
#include "unitsinfo.h"
namespace cherr... | 435 |
601 | /*
* Copyright 2018-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 724 |
303 | from datetime import datetime, timedelta
from threading import current_thread
from django.conf import settings
from django.contrib import auth
class AutoLogout:
def process_request(self, request):
if not request.user.is_authenticated():
return
if 'last_touch' in request.session:
... | 549 |
368 | /************************************************************
* @file DDModule.h
* @author 快刀<<EMAIL>>
* summery 模块ID定义
************************************************************/
#import <Foundation/Foundation.h>
//static const uint16 MODULE_ID_REMOTEBASE = 0x0000U; //与服务器端交互的module id
//st... | 877 |
17,318 | <gh_stars>1000+
{
"targets": [
{
"target_name": "nodecat",
"sources": [
"src/nodecat.cc",
],
"include_dirs": [
"include"
],
"libraries": [
"-lcatclient"
]
}
]
}
| 226 |
2,651 | class DataOverflowError(Exception):
pass
| 14 |
7,482 | <gh_stars>1000+
/*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2009-01-05 Bernard first implementation
* 2014-06-20 xiaonong ported to LPC43xx
*/
#include <rthw.h>
#include <rtthread.h>
#... | 674 |
387 | from enum import IntEnum
class AddressState(IntEnum):
NoState = 0
InWallet = 1
WatchOnly = 2
| 41 |
4,348 | /*
* Copyright 2013 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 5,043 |
1,006 | /****************************************************************************
* mm/iob/iob.h
*
* 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
* A... | 1,803 |
977 | <filename>src/external/IntelRDFPMathLib20U2/LIBRARY/src/bid128_quantize.c
/******************************************************************************
Copyright (c) 2007-2018, Intel Corp.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitte... | 4,490 |
332 | <reponame>BioQwer/vk-java-sdk
package com.vk.api.sdk.queries;
/**
* Created by <NAME> on 22.09.16.
*/
public enum ReportReason implements EnumParam {
SPAM("0"),
CHILD_PORN("1"),
EXTREMISM("2"),
VIOLINCE("3"),
DRUGS("4"),
ADULT_MATERIALS("5"),
INSULT("6");
private final String value;... | 209 |
416 | package org.simpleflatmapper.util;
import java.nio.ByteBuffer;
import java.util.UUID;
public class UUIDHelper {
public static byte[] toBytes(UUID uuid) {
byte[] bytes = new byte[16];
ByteBuffer
.wrap(bytes)
.putLong(uuid.getMostSignificantBits())
.p... | 250 |
1,056 | <filename>ide/schema2beans/src/org/netbeans/modules/schema2beans/Version.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... | 502 |
460 | /*
* Copyright (c) Microsoft Corporation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 362 |
5,422 | // -*- mode: objective-c -*-
@import Cocoa;
#import "FingerCount.h"
#import "FingerStatusEntry.h"
#import "MultitouchPrivate.h"
@interface FingerStatusManager : NSObject
+ (instancetype)sharedFingerStatusManager;
- (void)update:(MTDeviceRef)device
data:(Finger*)data
fingers:(int)fingers
timest... | 180 |
1,150 | # -*- coding: utf-8 -*-
from wechat_sdk.utils import to_binary, to_text
class PKCS7Encoder(object):
"""提供基于PKCS7算法的加解密接口"""
block_size = 32
@classmethod
def encode(cls, text):
"""
对需要加密的明文进行填充补位
@param text: 需要进行填充补位操作的明文
@return: 补齐明文字符串
"""
text_leng... | 617 |
1,886 |
/* Module object implementation */
#include "Python.h"
#include "pycore_pystate.h"
#include "structmember.h"
#include "frameobject.h"
PyAPI_DATA(int) Py_LazyImportsAllFlag;
static Py_ssize_t max_module_number;
static PyMemberDef module_members[] = {
{"__dict__", T_OBJECT, offsetof(PyModuleObject, md_dict), REA... | 27,345 |
852 | import FWCore.ParameterSet.Config as cms
WZInterestingEventSelector = cms.EDFilter(
"WZInterestingEventSelector",
electronCollection = cms.untracked.InputTag('gedGsfElectrons'),
pfMetCollection = cms.untracked.InputTag('pfMet'),
offlineBSCollection = cms.untracked.InputTag('offlineBeamSpot'),
ptCut... | 377 |
916 | <filename>flexy-tests/flexy-test-hikaricp-java8/src/test/java/com/vladmihalcea/flexypool/HikariCPJava8IntegrationTest.java<gh_stars>100-1000
package com.vladmihalcea.flexypool;
import org.junit.runner.RunWith;
import org.springframework.test.annotation.DirtiesContext;
import org.springframework.test.context.ContextCon... | 258 |
3,508 | package com.fishercoder.solutions;
import java.util.HashSet;
import java.util.Set;
public class _686 {
public static class Solution1 {
public int repeatedStringMatch(String A, String B) {
Set<Character> set = new HashSet<>();
for (char c : A.toCharArray()) {
set.add... | 803 |
1,909 | package org.knowm.xchange.enigma.model;
public class EnigmaException extends RuntimeException {
public EnigmaException(String message) {
super(message);
}
}
| 50 |
5,094 | <filename>test/test-cases/regression/variable-WEBSERVER_ERROR_LOG.json<gh_stars>1000+
[
{
"enabled":1,
"version_min":300000,
"version_max":0,
"title":"Testing Variables :: WEBSERVER_ERROR_LOG (1/1)",
"expected":{
"parser_error":"Line: 1. Column: 27. Variable VARIABLE_WEBSERVER_ERROR_LOG is n... | 222 |
625 | # Scorer function Hi(z) in the complex plane
cplot(scorerhi, [-8,8], [-8,8], points=50000)
| 36 |
1,470 | <filename>android/src/main/java/com/pichillilorenzo/flutter_inappwebview/MyWebStorage.java
package com.pichillilorenzo.flutter_inappwebview;
import android.webkit.ValueCallback;
import android.webkit.WebStorage;
import androidx.annotation.Nullable;
import java.util.ArrayList;
import java.util.HashMap;
import java.ut... | 1,232 |
530 | <filename>strongbox-web-core/src/main/java/org/carlspring/strongbox/converters/users/AccessModelFormToUserAccessModelDtoConverter.java
package org.carlspring.strongbox.converters.users;
import java.util.Collection;
import java.util.stream.Collectors;
import org.apache.commons.lang3.StringUtils;
import org.carlspring.... | 3,445 |
5,169 | <gh_stars>1000+
{
"name": "RSTimeAgo",
"version": "0.1.0",
"summary": "Util for time ago labels.",
"description": "Util for time ago labels. Uses aproximated values for motnhs and years due performance reasons.",
"homepage": "https://github.com/RishatShamsutdinov/RSTimeAgo",
"license": "Apache License, Vers... | 249 |
3,182 | <gh_stars>1000+
import lombok.AccessLevel;
import lombok.Getter;
class Test {
@Getter
private float b;
@Getter(AccessLevel.PROTECTED)
private double c;
@Getter(AccessLevel.PRIVATE)
private String d;
}
| 84 |
9,136 | /*
GWEN
Copyright (c) 2010 <NAME>
See license in Gwen.h
*/
#include "Gwen/Controls/TreeNode.h"
#include "Gwen/Controls/TreeControl.h"
#include "Gwen/Utility.h"
using namespace Gwen;
using namespace Gwen::Controls;
class OpenToggleButton : public Button
{
GWEN_CONTROL_INLINE(OpenToggleButton, Button)
{
SetIsTo... | 2,906 |
2,151 | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_UI_UNINSTALL_BROWSER_PROMPT_H_
#define CHROME_BROWSER_UI_UNINSTALL_BROWSER_PROMPT_H_
namespace chrome {
// Asks user for unin... | 225 |
730 | <gh_stars>100-1000
/*
* cmdparser.h
*
* Created on: Oct 14, 2017
* Author: <NAME>
*/
#ifndef CMDPARSER_H_
#define CMDPARSER_H_
#include "thundersvm.h"
#include "svmparam.h"
/**
* @brief Command-line parser
*/
class CMDParser{
public:
CMDParser() : do_cross_validation(false), gamma_set(false), nr_fol... | 336 |
654 | <reponame>rendikanyut/LowCostLoRaGw
#from https://core-electronics.com.au/tutorials/how-to-make-a-safe-shutdown-button-for-raspberry-pi.html
#
from gpiozero import Button #import button from the Pi GPIO library
import time # import time functions
import os #imports OS library for Shutdown control
stopButton = Button(2... | 330 |
660 | <gh_stars>100-1000
/*
* Copyright (c) 2017-2019, 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, cop... | 627 |
756 | <reponame>isabella232/pynacl<gh_stars>100-1000
/* Copyright 2020 <NAME> and individual contributors
*
* 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... | 1,412 |
461 | <reponame>hzjane/HUSTER-CS
#include<stdio.h>
#include<unistd.h>
#include<errno.h>
#include<sys/syscall.h>
#include<linux/kernel.h>
int main(int argc,char *argv[]){
long int a=syscall(335,5);
printf("System call sys_mycall return %ld\n",a);
return 0;
}
| 129 |
12,278 | <gh_stars>1000+
// (C) Copyright <NAME> 2015
// Use, modification and distribution are subject to the Boost Software License,
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt).
#if !defined(BOOST_VMD_SEQ_PUSH_FRONT_HPP)
#define BOOST_VMD_SEQ_PUSH_FRONT_HPP
... | 608 |
356 | <reponame>EvilPudding/candle
#include <utils/shader.h>
#include <utils/str.h>
static
void shaders_candle_final()
{
char *shader_buffer = str_new(64);
str_cat(&shader_buffer,
"#include \"candle:common.glsl\"\n"
"layout (location = 0) out vec4 FragColor;\n"
"BUFFER {\n"
" sampler2D depth;\n"
" sampler2D alb... | 49,702 |
8,197 |
#pragma once
#define INIT_FAR_PSI(psi,fsf,info) \
psi = (PluginStartupInfo*)calloc(sizeof(*psi),1); \
fsf = (FarStandardFunctions*)calloc(sizeof(*fsf),1); \
if (psi == NULL || fsf == NULL) \
{ \
_ASSERTE(psi && fsf); \
return; \
} \
memmove(psi, info, std::min(sizeof(*psi),(size_t)(info)->StructSize)); \
... | 205 |
841 | package org.jboss.resteasy.test.client.resource;
import java.io.BufferedReader;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import jakarta.ws.rs.client.Clie... | 672 |
2,816 | #pragma once
#include "duckdb.hpp"
#ifndef DUCKDB_AMALGAMATION
#include "duckdb/storage/statistics/base_statistics.hpp"
#endif
#include "parquet_types.h"
namespace duckdb {
using duckdb_parquet::format::ColumnChunk;
using duckdb_parquet::format::SchemaElement;
struct LogicalType;
struct ParquetStatisticsUtils {
... | 295 |
3,102 | // RUN: rm -rf %t
// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -I%S/Inputs/anon-namespace -verify %s
// expected-no-diagnostics
#include "b1.h"
#include "c.h"
using namespace N;
| 87 |
307 | """
riptable tests.
"""
| 12 |
357 | /*
* Copyright (c) 2012-2015 VMware, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ... | 407 |
5,119 | <filename>tests/codegen/map_key_array.cpp<gh_stars>1000+
#include "common.h"
namespace bpftrace {
namespace test {
namespace codegen {
TEST(codegen, map_key_array)
{
test("struct Foo { int arr[4]; }"
"kprobe:f"
"{"
" @x[((struct Foo *)arg0)->arr] = 44;"
"}",
NAME);
}
} // names... | 170 |
780 | <reponame>Travelcompositor/selenide
package integration.errormessages;
import com.codeborne.selenide.Configuration;
import com.codeborne.selenide.SelenideElement;
import com.codeborne.selenide.ex.ElementNotFound;
import com.codeborne.selenide.ex.UIAssertionError;
import integration.IntegrationTest;
import org.junit.ju... | 5,486 |
868 | package com.sedmelluq.discord.lavaplayer.source.youtube;
import com.sedmelluq.discord.lavaplayer.tools.FriendlyException;
import com.sedmelluq.discord.lavaplayer.tools.JsonBrowser;
import com.sedmelluq.discord.lavaplayer.tools.Units;
import com.sedmelluq.discord.lavaplayer.tools.io.HttpClientTools;
import com.sedmellu... | 3,119 |
2,739 | # Copyright (c) 2020 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,300 |
2,338 | //===-- SBProcess.cpp -----------------------------------------------------===//
//
// 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
//
//===---------------------------... | 21,816 |
344 | /*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | 232 |
434 | /*
* ALFA Network AP91-5G board support
*
* Copyright (C) 2018 <NAME> <<EMAIL>>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 as published
* by the Free Software Foundation.
*/
#include <linux/gpio.h>
#include <linux/pl... | 1,570 |
778 | <gh_stars>100-1000
//
// Project Name: KratosPfemSolidMechanicsApplication $
// Created by: $Author: LMonforte $
// Last modified by: $Co-Author: $
// Date: $Date: July 2018 $
// Revision: $Revision: ... | 1,779 |
7,353 | #define BLOG_CHANNEL_server 0
#define BLOG_CHANNEL_client 1
#define BLOG_CHANNEL_flooder 2
#define BLOG_CHANNEL_tun2socks 3
#define BLOG_CHANNEL_ncd 4
#define BLOG_CHANNEL_ncd_var 5
#define BLOG_CHANNEL_ncd_list 6
#define BLOG_CHANNEL_ncd_depend 7
#define BLOG_CHANNEL_ncd_multidepend 8
#define BLOG_CHANNEL_ncd_dynamic_... | 2,373 |
382 | /*
* Copyright 2020 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 699 |
310 | <gh_stars>100-1000
{
"name": "N9",
"description": "A MeeGo-based smartphone.",
"url": "https://en.wikipedia.org/wiki/Nokia_N9"
} | 57 |
335 | /*
* Copyright 2019-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | 2,986 |
1,656 | /*
* Copyright 2013-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 4,438 |
1,738 | <reponame>jeikabu/lumberyard
/*
* 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 at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provid... | 748 |
339 | /*
* IPrinter.h
*
* Created on: Aug 24, 2015
* Author: fsedlaze
*/
#ifndef PRINT_IPRINTER_H_
#define PRINT_IPRINTER_H_
#include <vector>
#include <iostream>
#include <time.h>
#include "../tree/Intervall_bed.h"
#include "api/BamReader.h"
#include "../Ignore_Regions.h"
#include "../sub/Breakpoint.h"
#include ... | 1,257 |
4,293 | package com.github.pockethub.android.dagger;
import com.github.pockethub.android.ui.commit.CommitCompareListFragment;
import dagger.Module;
import dagger.android.ContributesAndroidInjector;
@Module
interface CommitCompareViewFragmentProvider {
@ContributesAndroidInjector
CommitCompareListFragment commitComp... | 102 |
10,690 | package io.invertase.firebase.database;
/*
* Copyright (c) 2016-present Invertase Limited & Contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this library except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org... | 1,793 |
416 | // This file is distributed under the MIT license.
// See the LICENSE file for details.
#pragma once
#ifndef VSNRAY_DETAIL_COLOR_CONVERSION_H
#define VSNRAY_DETAIL_COLOR_CONVERSION_H 1
#include <cassert>
#include <cstddef>
#include <visionaray/math/detail/math.h>
#include <visionaray/math/matrix.h>
#include <vision... | 4,708 |
364 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('photologue', '0002_photosize_data'),
]
operations = [
migrations.AlterField(
model_name='galleryupload',
... | 215 |
14,425 | <reponame>amahussein/hadoop
/*
* 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 ... | 1,490 |
470 | #include "AssetTypeActions_PrimaryAssetLabel.h"
#include "Engine/PrimaryAssetLabel.h"
#include "ToolMenuSection.h"
#include "HotPatcherEditor.h"
#include "Flib/FLibAssetManageHelperEx.h"
#if WITH_EDITOR_SECTION
void FAssetTypeActions_PrimaryAssetLabel::GetActions(const TArray<UObject*>& InObjects,
FToolMenuSe... | 2,255 |
2,610 | <filename>advanced_functionality/autogluon-tabular-containers/ag_model.py<gh_stars>1000+
from sagemaker.estimator import Framework
from sagemaker.predictor import Predictor
from sagemaker.mxnet import MXNetModel
from sagemaker.mxnet.model import MXNetPredictor
from sagemaker import utils
from sagemaker.serializers impo... | 942 |
456 | //===-- REPL.cpp ------------------------------------------------*- 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
//
//===---------------------------... | 8,937 |
766 | /*
* Copyright 2008-2017 <NAME>
*
* See LICENCE for the full copyright terms.
*/
#include <assert.h>
#include <limits.h>
#include <stddef.h>
#include <stdio.h>
#include <fsm/fsm.h>
#include <fsm/pred.h>
#include <print/esc.h>
#include <adt/set.h>
#include <adt/bitmap.h>
#include <adt/stateset.h>
#include <adt/e... | 359 |
679 | <reponame>Grosskopf/openoffice
/**************************************************************
*
* 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... | 859 |
514 | <gh_stars>100-1000
#include "level/area.hpp"
using namespace level;
void AreaRenderer::render(
Tile::RenderPass render_pass,
bgfx::ViewId view, u64 render_state) {
// ensure all chunks have renderers, get rid of those that are no longer
// valid
for (auto it = this->chunk_renderers.begin();
... | 452 |
354 | <gh_stars>100-1000
/*-------------------------------------------------------------------------
* drawElements Quality Program Test Executor
* ------------------------------------------
*
* Copyright 2014 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may... | 519 |
511 | /******************************************************************
*
* Copyright 2014 Samsung Electronics 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
*
... | 9,209 |
970 | {"id":1,"name":"group issue board","group":{"id":5,"name":"Documentcloud","path":"documentcloud","owner_id":null,"created_at":"2018-05-07T06:52:45.788Z","updated_at":"2018-07-03T06:48:17.005Z","description":"Consequatur aut a aperiam ut.","avatar":{"url":null},"membership_lock":false,"share_with_group_lock":false,"visi... | 355 |
14,668 | <filename>components/content_creation/reactions/android/java/src/org/chromium/components/content_creation/reactions/ReactionMetadata.java
// 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.
package org.chro... | 306 |
5,672 | <gh_stars>1000+
# Lint as: python3
# Copyright 2020 The TensorFlow 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... | 1,029 |
1,350 | <gh_stars>1000+
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.apimanagement.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
... | 3,419 |
307 | <gh_stars>100-1000
package se.jiderhamn.classloader.leak.prevention.cleanup;
import com.fasterxml.jackson.databind.type.TypeFactory;
import se.jiderhamn.classloader.PackagesLoadedOutsideClassLoader;
/**
* Test cases for {@link JacksonCleanUp}
* @author <NAME>
*/
@PackagesLoadedOutsideClassLoader(packages = {"com.f... | 195 |
1,024 | <filename>spec/test_templates/json/apigateway_accesslogging_v2/apigateway_with_no_access_logging.json<gh_stars>1000+
{
"Resources": {
"ApiGatewayNoAccessLogging": {
"Type": "AWS::ApiGatewayV2::Stage",
"Properties": {
"ApiId": "ApiId"
}
}
}
}
| 125 |
515 | /*
* Copyright 2018-present HiveMQ and the HiveMQ Community
*
* 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 ... | 936 |
1,442 | #include "app.h"
#include "../apps_container.h"
#include "graph_icon.h"
#include <apps/i18n.h>
using namespace Poincare;
using namespace Shared;
using namespace Escher;
namespace Graph {
I18n::Message App::Descriptor::name() const {
return I18n::Message::FunctionApp;
}
I18n::Message App::Descriptor::upperName() c... | 1,029 |
419 | <reponame>sigix/jaeger-client-java
/*
* Copyright (c) 2017, Uber Technologies, 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
*
* Unl... | 959 |
654 | <reponame>cocolord/SegmenTron
import torch
import torch.nn as nn
import torch.nn.functional as F
from .segbase import SegBaseModel
from .model_zoo import MODEL_REGISTRY
from ..modules import _FCNHead
from ..config import cfg
__all__ = ["EDANet"]
@MODEL_REGISTRY.register()
class EDANet(SegBaseModel):
def __init... | 2,160 |
11,811 | <filename>runtime/Python3/src/antlr4/ListTokenSource.py
#
# Copyright (c) 2012-2017 The ANTLR Project. All rights reserved.
# Use of this file is governed by the BSD 3-clause license that
# can be found in the LICENSE.txt file in the project root.
#
#
# Provides an implementation of {@link TokenSource} as a wrapper ar... | 2,346 |
348 | <filename>docs/data/leg-t1/085/08504021.json
{"nom":"<NAME>","circ":"4ème circonscription","dpt":"Vendée","inscrits":1253,"abs":614,"votants":639,"blancs":14,"nuls":6,"exp":619,"res":[{"nuance":"REM","nom":"Mme <NAME>","voix":271},{"nuance":"UDI","nom":"<NAME>","voix":101},{"nuance":"FI","nom":"Mme <NAME>","voix":82},{... | 245 |
10,608 | <reponame>WojciechKusa/datasets<filename>datasets/muchocine/muchocine.py
# coding=utf-8
# Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# Y... | 1,917 |
322 | #!/ usr/bin/env
# coding=utf-8
"""
author: b5mali4
Copyright (c) 2018
>>> python3 hunter_celery.py -A hunter_celery worker -l info -c 1
"""
import os
import logging
from celery import Celery
from common import log
from common.logo import logo
from common.logo import celery_logo
from common.logo import example_data
fr... | 681 |
1,444 |
package mage.abilities.condition;
import mage.abilities.Ability;
import mage.game.Game;
/**
*
* @author LevelX2
*/
public class FixedCondition implements Condition{
protected boolean conditionMet;
public FixedCondition(boolean conditionMet) {
this.conditionMet = conditionMet;
}
@Over... | 134 |
344 | /*
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... | 1,910 |
1,144 | #ifndef RKD_LOG_H
#define RKD_LOG_H
#include "RKLogServer.hpp"
#include "RKLog.h"
#include <stdarg.h>
#include <vector>
#define LOG_SIZE 3968 //1024*4-128
class RKLogServer;
class RKDLog
{
public:
static const int VERBOSE = 1;
static const int DEBUG = 2;
static const int INFO = 3;
static const int W... | 608 |
647 | /*
* Copyright 2015 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... | 498 |
773 | // Copyright 2019 JD.com Inc. JD AI
#ifndef BNN_ONNXCONVERTER_H
#define BNN_ONNXCONVERTER_H
#include <set>
#include "optional.h"
#include <common/Shaper.h>
#include <common/StrKeyMap.h>
#include <common/dab_generated.h>
#include <common/helper.h>
#include <glog/logging.h>
#include <onnx/onnx_pb.h>
namespace bnn {
c... | 3,361 |
1,383 | <reponame>Benatti1991/chrono
// =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2014 projectchrono.org
// All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
// in the LICEN... | 5,548 |
4,538 | /*
* Copyright (C) 2020-2023 Alibaba Group Holding Limited
*/
#include <stdio.h>
#include <stdint.h>
#include <stdbool.h>
#include <ulog/ulog.h>
#include "uvoice_init.h"
#include "uvoice_types.h"
#include "uvoice_event.h"
#include "uvoice_player.h"
#include "uvoice_recorder.h"
#include "ulog/ulog.h"
#include "aos/ker... | 2,175 |
3,680 | <reponame>DougRogers-DigitalFish/USD<filename>pxr/base/gf/wrapHalf.cpp
//
// Copyright 2016 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... | 1,246 |
4,205 | <filename>reactor-core/src/main/java/reactor/core/CorePublisher.java
/*
* Copyright (c) 2016-2021 VMware Inc. or its affiliates, All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the... | 470 |
2,118 | <reponame>gidabite/libcds<filename>cds/intrusive/free_list_tagged.h
// Copyright (c) 2006-2018 <NAME>
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt)
#ifndef CDSLIB_INTRUSIVE_FREE_LIST_TAGGED_H
#define CDSLIB_INTRUSIVE_... | 2,885 |
2,753 | /*
* Copyright (c) The Shogun Machine Learning Toolbox
* Written (w) 2014 <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:
*
* 1. Redistributions of source code must retain the above... | 2,389 |
530 | <filename>tests/functional/regressions/issue278/test_issue278_extend_input_object.py
from typing import Any, Callable, Dict, Optional
import pytest
from tartiflette import Directive, Resolver, create_engine
from tartiflette.types.exceptions.tartiflette import GraphQLSchemaError
@pytest.fixture(scope="module")
async... | 2,225 |
1,928 | # Copyright (c) Facebook, Inc. and its affiliates.
# Mostly copy-pasted from
# https://github.com/facebookresearch/detr/blob/master/models/transformer.py
import copy
from typing import Optional
import torch
import torch.nn.functional as F
from torch import Tensor, nn
class Transformer(nn.Module):
def __init__(s... | 9,350 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.