max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
5,250 | /* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed... | 555 |
435 | <filename>europython-2019/videos/adriana-dorneles-what-about-recommendation-engines.json
{
"copyright_text": "Creative Commons Attribution license (reuse allowed)",
"description": "| How recommendation engines are taking part in our daily routine and\n how companies as Netflix and Amazon implement it?\n| This talk... | 488 |
32,544 | package com.baeldung.maths;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotEquals;
import static org.junit.Assert.assertTrue;
import static org.junit.jupiter.api.Assertions.assertEquals;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.math.MathContext;
import... | 1,879 |
31,928 | from localstack.services.cloudformation.service_models import GenericBaseModel
from localstack.utils.aws import aws_stack
from localstack.utils.common import select_attributes
class Route53RecordSet(GenericBaseModel):
@staticmethod
def cloudformation_type():
return "AWS::Route53::RecordSet"
def g... | 984 |
10,608 | {"default": {"description": "PUBHEALTH is a comprehensive dataset for explainable automated fact-checking of\npublic health claims. Each instance in the PUBHEALTH dataset has an associated\nveracity label (true, false, unproven, mixture). Furthermore each instance in the\ndataset has an explanation text field. The expl... | 1,014 |
1,232 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Author: <NAME>
# 437. Path Sum III
# Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution(object):
def pathSum(self, root, sum):
""... | 465 |
325 | #include <il2c_private.h>
#include "../Platform/debugbreak.h"
///////////////////////////////////////////////////////
// Another special runtime helper functions
#if defined(IL2C_USE_LINE_INFORMATION)
void il2c_break__(const char* pFile, int line)
#else
void il2c_break__(void)
#endif
{
debug_break();
}
////////... | 3,442 |
2,206 | <filename>runtime-parent/runtime-core/src/main/java/com/speedment/runtime/core/internal/util/InternalMergeUtil.java
/*
*
* Copyright (c) 2006-2020, Speedment, 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 Lice... | 2,281 |
1,089 | package org.zalando.logbook;
import lombok.AllArgsConstructor;
import org.zalando.fauxpas.ThrowingConsumer;
import java.io.IOException;
import java.util.Collection;
@AllArgsConstructor
public final class CompositeSink implements Sink {
private final Collection<Sink> sinks;
@Override
public boolean isAc... | 367 |
3,102 | <gh_stars>1000+
// RUN: %clang_cc1 -triple x86_64-linux -std=c++98 %s -O3 -disable-llvm-passes -pedantic-errors -emit-llvm -o - | FileCheck %s
// RUN: %clang_cc1 -triple x86_64-linux -std=c++11 %s -O3 -disable-llvm-passes -pedantic-errors -emit-llvm -o - | FileCheck %s
// RUN: %clang_cc1 -triple x86_64-linux -std=c++14... | 525 |
4,526 | #define SOL_CHECK_ARGUMENTS 1
#include <sol.hpp>
#include "assert.hpp"
class vector {
public:
double data[3];
vector() : data{ 0,0,0 } {}
double& operator[](int i) {
return data[i];
}
static double my_index(vector& v, int i) {
return v[i];
}
static void my_new_index(vector& v, int i, double x) {
v[i... | 361 |
2,122 | package com.sishuok.es.sys.organization.entity;
/**
* 组织机构类型
* <p>User: <NAME>
* <p>Date: 13-4-5 下午1:53
* <p>Version: 1.0
*/
public enum OrganizationType {
bloc("集团"), branch_office("分公司"), department("部门"), group("部门小组");
private final String info;
private OrganizationType(String info) {
th... | 197 |
1,463 | /*
+----------------------------------------------------------------------+
| Zan |
+----------------------------------------------------------------------+
| Copyright (c) 2016-2017 <NAME> <https://github.com/youzan/zan> |
+-----------------... | 1,430 |
852 | <reponame>ckamtsikis/cmssw
import FWCore.ParameterSet.Config as cms
from RecoMuon.TrackingTools.MuonServiceProxy_cff import *
from RecoMuon.TrackingTools.MuonUpdatorAtVertex_cff import *
muonSeedTrack = cms.EDAnalyzer("MuonSeedTrack",
MuonUpdatorAtVertex,
MuonServiceProxy,
MuonSeed = cms.InputTag("MuonSeed... | 137 |
1,530 | <gh_stars>1000+
/*
* This file is part of ClassGraph.
*
* Author: <NAME>
*
* Hosted at: https://github.com/classgraph/classgraph
*
* --
*
* The MIT License (MIT)
*
* Copyright (c) 2019 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
*... | 5,393 |
723 | <reponame>Acidburn0zzz/LiveReload
#import <Foundation/Foundation.h>
extern NSString *const LRRuntimeManagerErrorDomain;
enum {
LRRuntimeManagerErrorValidationFailed = 1,
};
| 63 |
935 | #pragma once
#include <cstddef>
#include <cstdint>
#include <utility>
#include <string>
namespace limits {
constexpr size_t maxCmdSlots = 32;
constexpr size_t maxPorts = 32;
}
struct receivedFis {
uint8_t dmaFis[0x1C];
uint8_t _reservedA[4];
uint8_t pioFis[0x14];
uint8_t _reservedB[12];
uint8_t d2hFis[0x14... | 1,315 |
480 | #
# Collective Knowledge: compiler flags crowdtuning (crowdsource autotuning via spare computers such as mobile devices)
#
# See CK LICENSE.txt for licensing details
# See CK COPYRIGHT.txt for copyright details
#
# Developer: <NAME>, <EMAIL>, http://fursin.net
#
cfg={} # Will be updated by CK (meta description of thi... | 21,844 |
778 | from __future__ import print_function, absolute_import, division # makes KratosMultiphysics backward compatible with python 2.6 and 2.7
# importing the Kratos Library
import KratosMultiphysics
from KratosMultiphysics import Vector
import KratosMultiphysics.SwimmingDEMApplication as SDEM
import sys
class L2ErrorCalcul... | 1,032 |
30,785 | package jadx.plugins.input.java.data.code.trycatch;
import jadx.api.plugins.input.data.ICatch;
import jadx.api.plugins.input.data.ITry;
import jadx.api.plugins.utils.Utils;
public class JavaTryData implements ITry {
private final int startOffset;
private final int endOffset;
private ICatch catchHandler;
public ... | 427 |
1,030 | <reponame>ahartikainen/pystan
import numpy as np
import pytest
import stan
np.random.seed(1)
program_code = """
data {
int<lower=0> N;
int<lower=0> p;
matrix[N,p] x;
vector[N] y;
}
parameters {
vector[p] beta;
real<lower=0> sigma;
}
model {
y ~ normal(x * beta, sigma);
}
"""
n, p = 10000, 3
X = np.ran... | 397 |
2,645 | /*
* Copyright 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 applic... | 657 |
1,077 | import logging
import json
import re
from anime_downloader.sites.anime import Anime, AnimeEpisode, SearchResult
from anime_downloader.sites import helpers
from anime_downloader.extractors import get_extractor
logger = logging.getLogger(__name__)
class AnimeBinge(Anime, sitename='animebinge'):
sitename... | 1,291 |
4,047 | #include<nonexisting.h>
void func(void) { printf("This won't work.\n"); }
| 28 |
826 | // SPDX-License-Identifier: BSD-3-Clause
// Copyright Contributors to the OpenColorIO Project.
#ifndef INCLUDED_OCIO_SYSTEM_MONITOR_H
#define INCLUDED_OCIO_SYSTEM_MONITOR_H
#include <string>
#include <vector>
#include <OpenColorIO/OpenColorIO.h>
namespace OCIO_NAMESPACE
{
class SystemMonitorsImpl : public System... | 533 |
460 | package org.sxdata.jingwei.dao;
import org.springframework.stereotype.Repository;
import org.sxdata.jingwei.entity.DirectoryEntity;
/**
* Created by cRAZY on 2017/2/27.
*/
@Repository
public interface DirectoryDao {
public DirectoryEntity getDirectoryById(Integer id);
}
| 92 |
380 |
/**
* Author: <NAME>
* Date: 23 July 2021 (Friday)
*/
import java.util.*;
public class SmallestMissingPositive{
public static void main(String args[]){
Solution s = new Solution();
int arr[] = {1,2,3,4,5};
System.out.println(s.smallestMissingPositive(arr,arr.length));
}
}
class Solution{
//solution ... | 622 |
903 | <filename>vole-portal-data/src/main/java/com/github/vole/portal/data/mapper/SysRoleMenuMapper.java<gh_stars>100-1000
package com.github.vole.portal.data.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.github.vole.portal.data.model.entity.SysRoleMenu;
import java.util.List;
/**
*
... | 264 |
3,269 | # Time: O(n + logn + log(logn) + ...) = O(n)
# Space: O(1)
class Solution(object):
def getLucky(self, s, k):
"""
:type s: str
:type k: int
:rtype: int
"""
total = reduce(lambda total, x: total+sum(divmod((ord(x)-ord('a')+1), 10)), s, 0)
while k > 1 and total... | 292 |
555 | {
"serviceName":"hivedev",
"serviceDef":{
"name":"hive",
"id":3,
"resources":[
{"name":"url","level":1,"mandatory":true,"lookupSupported":true,"matcher":"org.apache.ranger.plugin.resourcematcher.RangerDefaultResourceMatcher","matcherOptions":{"wildCard":true, "ignoreCase":true},"label":"S3 URL","... | 1,980 |
6,224 | /*
* Copyright (c) 2019 <NAME>, LLC
*
* SPDX-License-Identifier: Apache-2.0
*/
/* Common header used to define underlying types for typedefs that
* must appear in multiple headers independently.
*/
#ifndef ZEPHYR_LIB_LIBC_MINIMAL_INCLUDE_SYS_XTYPES_H_
#define ZEPHYR_LIB_LIBC_MINIMAL_INCLUDE_SYS_XTYPES_H_
#inclu... | 202 |
14,668 | <filename>chrome/browser/download/offline_item_model_data.h
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_DOWNLOAD_OFFLINE_ITEM_MODEL_DATA_H_
#define CHROME_BROWSER_DOWNLOAD_OFF... | 217 |
388 | <filename>ustwo-clockwise/src/androidTest/java/com/ustwo/clockwise/TimeUtilTest.java<gh_stars>100-1000
package com.ustwo.clockwise;
import com.ustwo.clockwise.common.WatchFaceTime;
import com.ustwo.clockwise.common.util.TimeUtil;
import junit.framework.Assert;
import junit.framework.TestCase;
public class TimeUtilTe... | 1,708 |
5,169 | <gh_stars>1000+
{
"name": "FrameworkDemo",
"version": "0.0.1",
"summary": "CocoaPods 测试.",
"homepage": "https://github.com/limaofuyuanzhang/FrameworkDemo",
"license": "MIT",
"authors": {
"limaofuyuanzhang": "<EMAIL>"
},
"platforms": {
"ios": "8.0"
},
"source": {
"git": "https://github.co... | 214 |
494 | <reponame>waffle620/fagyhal
import discord
import asyncio
from discord.ext import commands
from utils import checks
from mods.cog import Cog
import mods.Tags
parser = mods.Tags.Tags.parser
default_join = 'Welcome to **{server}** - {mention}! You are the {servercount} member to join.'
default_leave = '**{user}#{discrim... | 3,746 |
918 | /*
* 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 ... | 2,639 |
337 | <gh_stars>100-1000
public class Foo {
void foo() {
// nothing
}
} | 38 |
438 | <filename>Upstream/Src/interrupts.c
/**
******************************************************************************
* @file stm32f4xx_it.c
* @date 03/02/2015 20:27:00
* @brief Interrupt Service Routines.
******************************************************************************
*
* C... | 1,549 |
16,259 | # Copyright (c) 2017-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the license found in the LICENSE file in
# the root directory of this source tree. An additional grant of patent rights
# can be found in the PATENTS file in the same directory.
import logging
from collections.a... | 6,756 |
601 | # Standard Libraries
import json
import logging
# Django Imports
from django.test import TestCase
# Ghostwriter Libraries
from ghostwriter.commandcenter.forms import ReportConfigurationForm
from ghostwriter.factories import (
ReportConfigurationFactory,
ReportDocxTemplateFactory,
ReportPptxTemplateFactory... | 1,303 |
530 | <filename>strongbox-storage/strongbox-storage-layout-providers/strongbox-storage-maven-layout/strongbox-storage-maven-layout-provider/src/main/java/org/carlspring/strongbox/artifact/archive/JarArchiveListingFunction.java
package org.carlspring.strongbox.artifact.archive;
import org.carlspring.strongbox.providers.io.Re... | 626 |
5,659 | <filename>cms/test_utils/project/mti_pluginapp/cms_plugins.py<gh_stars>1000+
from cms.plugin_base import CMSPluginBase
from cms.plugin_pool import plugin_pool
from .models import TestPluginAlphaModel, TestPluginBetaModel
class TestPluginAlpha(CMSPluginBase):
model = TestPluginAlphaModel
render_template = 'm... | 304 |
1,338 | <reponame>Kirishikesan/haiku
/*
* Copyright 2011, <NAME> <<EMAIL>>
* Distributed under the terms of the MIT License.
*/
#ifndef _PACKAGE__HPKG__PRIVATE__REPOSITORY_READER_IMPL_H_
#define _PACKAGE__HPKG__PRIVATE__REPOSITORY_READER_IMPL_H_
#include <package/hpkg/ReaderImplBase.h>
#include <package/RepositoryInfo.h>... | 466 |
364 | <reponame>dfint/DwarfTherapistRus-30.1
/*
Dwarf Therapist
Copyright (c) 2009 <NAME> (chmod)
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 ri... | 945 |
4,742 | # Copyright 2020 The SQLFlow 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 applicable law o... | 1,117 |
2,039 | <reponame>dileeshvar/nd4j
package org.nd4j.linalg.profiler.data;
import org.nd4j.linalg.api.ops.CustomOp;
import org.nd4j.linalg.api.ops.Op;
import org.nd4j.linalg.profiler.data.primitives.ComparableAtomicLong;
import org.nd4j.linalg.profiler.data.primitives.TimeSet;
import org.nd4j.linalg.util.ArrayUtil;
import java... | 2,309 |
348 | <filename>docs/data/leg-t2/064/06404538.json
{"nom":"Uhart-Cize","circ":"4ème circonscription","dpt":"Pyrénées-Atlantiques","inscrits":589,"abs":284,"votants":305,"blancs":16,"nuls":37,"exp":252,"res":[{"nuance":"DVD","nom":"<NAME>","voix":135},{"nuance":"REM","nom":"<NAME>","voix":117}]} | 119 |
7,353 | /**
* @file StreamBuffer.h
* @author <NAME> <<EMAIL>>
*
* @section LICENSE
*
* 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... | 763 |
4,640 | # 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 u... | 407 |
898 |
#include "PlayerSettings.h"
| 10 |
1,306 | // Copyright © 2017 <NAME>
// Copyright © 2017-2020 Trust Wallet.
//
// This file is part of Trust. The full Trust copyright notice, including
// terms governing use, modification, and redistribution, is contained in the
// file LICENSE at the root of the source code distribution tree.
#include "SegwitAddress.h"
#incl... | 1,404 |
1,561 | /*
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 948 |
590 | import os
import torch
import random
import networkx as nx
import pandas as pd
import numpy as np
from torch.utils import data
from torch_geometric.data import Data
from torch_geometric.data import InMemoryDataset
from torch_geometric.data import Batch
from itertools import repeat, product, chain
from collections impor... | 3,826 |
990 | '''
Given a list of airline tickets represented by pairs of departure and arrival airports [from, to], reconstruct the itinerary in order. All of the tickets belong to a man who departs from JFK. Thus, the itinerary must begin with JFK.
Note:
If there are multiple valid itineraries, you should return the itinerary... | 883 |
5,169 | {
"name": "MobiBurn",
"version": "1.0.6",
"summary": "MobiBurn provides you more efficient way to integration for iOS.",
"description": "TODO: Add long description of the pod here.",
"homepage": "http://www.ihardiktrivedi.com",
"authors": {
"<NAME>": "<EMAIL>"
},
"social_media_url": "http://twitter.... | 279 |
2,863 | <reponame>bTest2018/spock
/*
* Copyright 2013 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
*
* U... | 330 |
392 | /*
* Sym-edge.
*
* Sym-edges are quad-edges restricted to the primary oriented graph. Their
* implementation does not maintain the data structures for accessing the
* rotated, flipped, or dual graphs. Only the symmetric counterpart of each
* edge is stored.
*
* Each vertex has an associated data item and each... | 5,874 |
3,428 | <filename>lib/node_modules/@stdlib/datasets/spam-assassin/data/easy-ham-1/00011.fbcde1b4833bdbaaf0ced723edd6e355.json
{"id":"00011","group":"easy-ham-1","checksum":{"type":"MD5","value":"fbcde1b4833bdbaaf0ced723edd6e355"},"text":"From <EMAIL> Thu Aug 22 15:25:29 2002\nReturn-Path: <<EMAIL>>\nDelivered-To: zzz<EMAIL>.n... | 1,389 |
1,337 | /*
* Copyright (c) 2008-2017 Haulmont.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | 4,125 |
335 | <gh_stars>100-1000
{
"word": "Nautilus",
"definitions": [
"A cephalopod mollusc with a light external spiral shell and numerous short tentacles around the mouth."
],
"parts-of-speech": "Noun"
} | 85 |
3,084 | /*++
Copyright (c) Realtek Semiconductor Corp. All rights reserved.
Module Name:
WOLPattern.c
Abstract:
1. This source file is going to be implemented the functions about Wake-on WLAN (WOL).
Major Change History:
When Who What
---------- --------------- ----------------... | 12,167 |
746 | <gh_stars>100-1000
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# 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 und... | 7,435 |
1,176 | <reponame>ValtoGameEngines/Intrinsic-Engine<gh_stars>1000+
// Copyright 2017 <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
//
... | 2,718 |
376 | // Copyright (C) 2020 <NAME>
// This file is part of the "Nazara Engine - Graphics module"
// For conditions of distribution and use, see copyright notice in Config.hpp
#include <Nazara/Widgets/Widgets.hpp>
#include <Nazara/Widgets/Debug.hpp>
namespace Nz
{
/*!
* \ingroup widgets
* \class Nz::Widgets
* \brief Wid... | 188 |
716 | import pinocchio as pin
import numpy as np
model = pin.buildSampleModelHumanoid()
model.lowerPositionLimit[:7] = -np.ones(7)
model.upperPositionLimit[:7] = +np.ones(7)
pool = pin.ModelPool(model)
num_threads = pin.omp_get_max_threads()
batch_size = 128
q = np.empty((model.nq,batch_size))
for k in range(batch_size):
... | 378 |
402 | # ------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License (MIT). See LICENSE in the repo root for license information.
# -------------------------------------------------------------------... | 17,813 |
7,581 | <reponame>dinhtuyen/PRML01<filename>test/nn/math/divide.py
import unittest
import numpy as np
from prml import nn
class TestDivide(unittest.TestCase):
def test_divide(self):
x = nn.Parameter(10.)
z = x / 2
self.assertEqual(z.value, 5)
z.backward()
self.assertEqual(x.grad, ... | 353 |
5,857 | <gh_stars>1000+
import json
import scrapy
import re
from datetime import datetime
import pandas as pd
import time
from common.util import get_13_time
t = get_13_time()
from liepinSpecialComJob.items import LiepinspecialcomjobItem
class LiepinSpdier(scrapy.Spider):
name = 'liepin'
start_urls = ['https://vip.l... | 3,393 |
778 | // | / |
// ' / __| _` | __| _ \ __|
// . \ | ( | | ( |\__ `
// _|\_\_| \__,_|\__|\___/ ____/
// Multi-Physics
//
// License: BSD License
// license: HDF5Application/license.txt
//
// Main author: <NAME>, https://github.com/msandre
//
/** @file factor_... | 763 |
14,668 | // Copyright (c) 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/test/chromedriver/chrome/devtools_endpoint.h"
#include "chrome/test/chromedriver/chrome/devtools_http_client.h"
#include "chrome/tes... | 684 |
335 | {
"word": "Regional",
"definitions": [
"A stamp, newspaper, or other thing produced or used in a particular region.",
"A sporting contest involving competitors from a particular region."
],
"parts-of-speech": "Noun"
} | 87 |
1,788 | package com.fingerchar.api.config;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
import org.springframework.web.servlet... | 571 |
980 | package org.jcodec.containers.mkv.util;
import java.lang.StringBuilder;
import java.nio.ByteBuffer;
/**
* This class is part of JCodec ( www.jcodec.org ) This software is distributed
* under FreeBSD License
*
* EBML IO implementation
*
* @author The JCodec project
*
*/
public class EbmlUtil {
/**
... | 1,680 |
4,708 | # 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 applic... | 1,302 |
13,648 | <reponame>rxchen/micropython
/*
* This file is part of the MicroPython project, http://micropython.org/
*
* The MIT License (MIT)
*
* Copyright (c) 2021 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"),... | 1,628 |
666 | <reponame>18668031200/spring-cloud-config-admin<filename>scca-rest/src/main/java/com/didispace/scca/rest/SccaRestProperties.java
package com.didispace.scca.rest;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
@Data
@ConfigurationProperties("scca.rest")
public class Scc... | 153 |
709 | <reponame>security-geeks/jackhammer
package com.olacabs.jackhammer.db;
import com.olacabs.jackhammer.models.GroupUser;
import com.olacabs.jackhammer.models.mapper.GroupUserMapper;
import org.skife.jdbi.v2.sqlobject.Bind;
import org.skife.jdbi.v2.sqlobject.BindBean;
import org.skife.jdbi.v2.sqlobject.SqlQuery;
import o... | 365 |
5,788 | <gh_stars>1000+
// Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved.
// Full license terms provided in LICENSE.md file.
#include "internal_utils.h"
#include <iomanip>
#include <sstream>
#include "conv_utils.h"
namespace redtail { namespace tensorrt
{
using namespace nvinfer1;
// -------------------------... | 7,265 |
575 | <gh_stars>100-1000
//
// DemoCameraHelper.h
// DJISdkDemo
//
// Created by <NAME> on 7/5/18.
// Copyright © 2018 DJI. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <DJISDK/DJISDK.h>
@interface DemoCameraHelper : NSObject
+ (BOOL)isXT2Camera;
+ (nullable DJICamera *)connectedThermalCamera;
+ (... | 205 |
3,200 | <reponame>mindspore-ai/mindspore<gh_stars>1000+
/**
* Copyright 2021 Huawei Technologies Co., Ltd
*
* 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/LIC... | 1,729 |
462 | <gh_stars>100-1000
from .account import AWSAccountCollector
from .region import AWSRegionCollector
| 29 |
5,169 | <gh_stars>1000+
{
"name": "PebbleKit-Static",
"version": "3.1.1",
"summary": "Embed PebbleKit iOS into your app to communicate with Pebble",
"homepage": "https://github.com/pebble/pebble-ios-sdk",
"license": {
"type": "Commercial",
"text": " © 2015 Pebble Technology Corp. All rights reser... | 387 |
782 | /*
* Copyright (c) 2021, <NAME>. All Rights Reserved.
*
* This file is part of BoofCV (http://boofcv.org).
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org... | 632 |
14,425 | /**
* 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... | 1,485 |
550 | package play.db.jpa;
import javassist.CtClass;
import javassist.CtMethod;
import play.classloading.ApplicationClasses.ApplicationClass;
import play.classloading.enhancers.Enhancer;
/**
* Enhance JPABase entities classes
*/
public class JPAEnhancer extends Enhancer {
public void enhanceThisClass(ApplicationClas... | 1,357 |
190,993 | /* Copyright 2021 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-2.0
Unless required by applicable law or a... | 1,974 |
1,840 | /**
* Copyright Pravega 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 law or agreed to... | 3,912 |
903 | /****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (<EMAIL>)
**
** This file is part of the QtCore module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** ... | 3,603 |
930 | <gh_stars>100-1000
from django.contrib.auth.models import Group
from django.utils import timezone
from django.test import TestCase
from django.core import mail
from django.urls import reverse
from boxes.tests import create_and_login_user
from hawkpost import celery_app
from .models import Notification, User
from .forms... | 6,063 |
20,995 | // Copyright 2019 the V8 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.
#ifndef V8_UNITTESTS_HEAP_BITMAP_TEST_UTILS_H_
#define V8_UNITTESTS_HEAP_BITMAP_TEST_UTILS_H_
#include "testing/gtest/include/gtest/gtest.h"
namespace... | 385 |
879 | <gh_stars>100-1000
package org.zstack.test.kvm;
import junit.framework.Assert;
import org.junit.Before;
import org.junit.Test;
import org.zstack.compute.host.HostGlobalConfig;
import org.zstack.compute.vm.VmInstanceManagerImpl;
import org.zstack.core.cloudbus.CloudBus;
import org.zstack.core.componentloader.ComponentL... | 1,312 |
2,603 | <filename>FreeRTOS/Demo/RISC-V_RV64_PolarFire_SoftConsole/polarfire_hal/platform/mpfs_hal/common/mss_peripherals.c
/*******************************************************************************
* Copyright 2019-2021 Microchip FPGA Embedded Systems Solutions.
*
* SPDX-License-Identifier: MIT
*
* MPFS HAL Embedded... | 3,645 |
31,928 | import logging
import threading
import time
from localstack import config
from localstack.constants import MODULE_MAIN_PATH
from localstack.services import install
from localstack.services.infra import do_run, log_startup_message, start_proxy_for_service
from localstack.services.kinesis import kinesis_listener
from lo... | 3,300 |
4,283 | /*
* Copyright (c) 2008-2021, Hazelcast, 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 ... | 3,271 |
521 | # -*- coding: utf-8 -*-
# $Id: wuiadminbuild.py $
"""
Test Manager WUI - Builds.
"""
__copyright__ = \
"""
Copyright (C) 2012-2017 Oracle Corporation
This file is part of VirtualBox Open Source Edition (OSE), as
available from http://www.virtualbox.org. This file is free software;
you can redistribute it and/or modi... | 3,584 |
445 | # encoding: utf-8
"""
Timezone utilities
Just UTC-awareness right now
"""
# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
from datetime import tzinfo, timedelta, datetime
# constant for zero offset
ZERO = timedelta(0)
class tzUTC(tzinfo):
"""tzinfo object fo... | 369 |
2,329 | <gh_stars>1000+
/*
* Copyright 2010-2012 VMware and 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless requi... | 1,346 |
35,083 | /*
* 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 ... | 700 |
2,338 | //===-- ABIX86_64.h ---------------------------------------------*- 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
//
//===---------------------------... | 300 |
1,085 | <gh_stars>1000+
/*
* Copyright (C) 2017-2019 Dremio 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... | 1,547 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.