max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
988 | /*
* 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,976 |
539 |
/**
* Copyright 2022 The Magma Authors.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
... | 1,614 |
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 ... | 4,168 |
409 | // ==========================================================================
// SeqAn - The Library for Sequence Analysis
// ==========================================================================
// Copyright (c) 2006-2018, <NAME>, FU Berlin
// All rights reserved.
//
// Redistribution and use in s... | 1,856 |
979 | <reponame>smeualex/cmake-examples
#include <iostream>
#include "calculator-shared-export/calculator.h"
int main(int argc, char** argv)
{
std::cout << calc_pow(5, 5) << "\n";
return 0;
}
| 90 |
1,574 | //=======================================================================
// Copyright <NAME> 2013-2018.
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://www.opensource.org/licenses/MIT)
//=======================================================================
... | 4,123 |
416 | //
// CNContactViewController.h
// ContactsUI
//
// Copyright (c) 2015 Apple, Inc. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <Contacts/Contacts.h>
NS_ASSUME_NONNULL_BEGIN
@protocol CNContactViewControllerDelegate;
/*!
* @abstract The CNContactViewController is used to display a contact.
* @discu... | 1,197 |
532 | /* This sample program computes a canonical polygonal schema of a closed manifodl
* with genus g, which is basically a map to a regular polygon with 4g sides. For
* more details refer to:
*
* Obtaining a Canonical Polygonal Schema from a
* Greedy Homotopy Basis with Minimal Mesh Refinement
* <NAME>
* ... | 1,146 |
577 | // Copyright (c) Corporation for National Research Initiatives
package org.python.core;
/**
* A deprecated interface that can be used if a java class want control over
* the class dict initialization.
*
* @deprecated This class is deprecated. See ClassDictInit for a replacement.
* @see ClassDictInit
*/
@Deprec... | 105 |
1,605 | /*
* 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... | 652 |
1,398 | #ifndef CONFLUO_TEST_FILTER_TEST_H_
#define CONFLUO_TEST_FILTER_TEST_H_
#include "filter.h"
#include "gtest/gtest.h"
#include <thread>
using namespace ::confluo::monitor;
using namespace ::confluo::monolog;
using namespace ::confluo;
// Stateless filter
inline bool filter1(const record_t &r) {
return r.timestamp()... | 3,028 |
460 | /*
* Copyright 2018 Red Hat, Inc, 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/LICENSE-2.0
*
* Unless required by a... | 2,498 |
364 | <gh_stars>100-1000
/*
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 rights
to use, ... | 958 |
828 | <filename>hasor-rsf/hasor-land/src/main/java/net/hasor/land/election/ElectionServiceManager.java<gh_stars>100-1000
/*
* Copyright 2008-2009 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 ma... | 11,301 |
663 | # (C) Datadog, Inc. 2020-present
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)
import os
from typing import Any, Dict
import yaml
from datadog_checks.base.utils.common import get_docker_hostname
HERE = os.path.dirname(os.path.abspath(__file__))
HOST = get_docker_hostname()
PORT = ... | 1,117 |
2,752 | <reponame>Spacha/MineCraft-One-Week-Challenge<filename>Source/World/Block/ChunkBlock.h
#ifndef CHUNKBLOCK_H_INCLUDED
#define CHUNKBLOCK_H_INCLUDED
#include "BlockId.h"
struct BlockDataHolder;
class BlockType;
struct ChunkBlock {
ChunkBlock() = default;
ChunkBlock(Block_t id);
ChunkBlock(BlockId id);
... | 263 |
868 | <reponame>AriCheng/flare<gh_stars>100-1000
// Copyright (C) 2020 THL A29 Limited, a Tencent company. All rights reserved.
//
// Licensed under the BSD 3-Clause License (the "License"); you may not use this
// file except in compliance with the License. You may obtain a copy of the
// License at
//
// https://opensource... | 687 |
310 | {
"name": "<NAME>",
"description": "One of the traditional cocktails of Valencia",
"github": "reyesbalejandroe",
"ingredients": [
{
"quantity": "500",
"measure": "ml",
"ingredient": "fresh-squeezed Valencia orange juice"
},
{
"quant... | 850 |
435 | <gh_stars>100-1000
{
"copyright_text": null,
"description": "Is it true that Python is not returning memory back to OS? What happens with variables which are no longer needed? How important is a garbage collector? How to trace and profile memory usage?\n\nLet's find out answers to these and maybe some more question... | 448 |
709 | <reponame>security-geeks/jackhammer
package com.olacabs.jackhammer.models;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import java.sql.Date;
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class HardcodeSecret extends AbstractModel {
... | 136 |
4,054 | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.search.match;
import com.yahoo.document.Document;
import com.yahoo.document.DocumentOperation;
import com.yahoo.search.Query;
import com.yahoo.search.Result;
import com.yahoo.search.Searcher;
impo... | 276 |
689 | /**
* Copyright (C) Mellanox Technologies Ltd. 2001-2019. ALL RIGHTS RESERVED.
*
* See file LICENSE for terms.
*/
#include <ucs/sys/compiler.h>
extern int test_module_loaded;
UCS_STATIC_INIT {
++test_module_loaded;
}
| 90 |
1,144 | /* SPDX-License-Identifier: GPL-2.0+ */
/*
* Copyright (C) 2012
* <NAME> <<EMAIL>>
*/
#ifndef __ASM_ARCH_MX27_GPIO_H
#define __ASM_ARCH_MX27_GPIO_H
/* GPIO registers */
struct gpio_regs {
u32 gpio_dir; /* DDIR */
u32 ocr1;
u32 ocr2;
u32 iconfa1;
u32 iconfa2;
u32 iconfb1;
u32 iconfb2;
u32 gpio_dr; /* DR */... | 520 |
373 | package com.dianrong.common.uniauth.common.client.cxf;
import com.dianrong.common.uniauth.common.apicontrol.StringHeaderValueOperator;
import com.dianrong.common.uniauth.common.client.cxf.ApiControlHeaderHolder.HeaderHolder;
import com.dianrong.common.uniauth.common.client.cxf.exp.InvalidHeaderKeyException;
import com... | 452 |
1,021 | <filename>Plugin/Test/ExrTest.cpp
#include "pch.h"
#include "TestCommon.h"
template<class T>
void ExrTestImpl(fcIExrContext *ctx, const char *filename)
{
const int Width = 320;
const int Height = 240;
int channels = GetPixelFormat<T>::value & fcPixelFormat_ChannelMask;
const char *channel_name... | 503 |
1,666 | #!/usr/bin/env python3
# Copyright 2016 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... | 7,395 |
782 | /*
* Copyright (c) 2020, <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... | 657 |
568 | <reponame>khesoem/nfe<filename>src/test/java/com/fincatto/documentofiscal/nfe400/classes/nota/NFNotaInfoItemImpostoCOFINSAliquotaTest.java
package com.fincatto.documentofiscal.nfe400.classes.nota;
import com.fincatto.documentofiscal.nfe400.FabricaDeObjetosFake;
import com.fincatto.documentofiscal.nfe400.classes.NFNota... | 1,547 |
718 | <reponame>SoccerField24x7/tomighty<gh_stars>100-1000
/*
* Copyright (c) 2010-2012 <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/... | 430 |
473 | /*
* Copyright (C) <NAME> <<EMAIL>>
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish... | 2,992 |
3,055 | <gh_stars>1000+
/*
u8x8_d_ssd1326.c
Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/)
Copyright (c) 2016, <EMAIL>
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Re... | 4,564 |
313 | <filename>titus-api/src/test/java/com/netflix/titus/api/loadbalancer/model/sanitizer/DefaultLoadBalancerJobValidatorTest.java
/*
* Copyright 2018 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 c... | 3,161 |
1,253 | //
// FILE: unit_test_001.cpp
// AUTHOR: <NAME>
// VERSION: 0.1.0
// DATE: 2020-12-03
// PURPOSE: unit tests for the SHT31 temperature and humidity sensor
// https://github.com/RobTillaart/SHT31
// https://www.adafruit.com/product/2857
// https://github.com/Arduino-CI/arduino_ci/blob/m... | 1,938 |
1,186 | <filename>hyper/package.json
{
"name": "hyperterm-new-moon-theme",
"version": "1.0.0",
"description": "A Hyper theme based on New Moon",
"main": "index.js",
"author": "<NAME> <<EMAIL>> (http://twitter.com/tmeister)",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/T... | 296 |
501 | /*
* 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 ma... | 1,178 |
370 | <reponame>luoyongheng/dtslam
#define DLONG
#include <../Source/umf_mem_alloc_tail_block.c>
| 39 |
1,097 | import csv
from .renderers import StringIO
def parse_csv(string):
"""
Rough port of wq/pandas.js to Python. Useful for validating CSV output
generated by Django REST Pandas.
"""
if not string.startswith(','):
data = []
for row in csv.DictReader(StringIO(string)):
for k... | 1,435 |
190,993 | /* Copyright 2017 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... | 4,040 |
1,069 | <gh_stars>1000+
package com.githang.statusbar;
import android.annotation.TargetApi;
import android.os.Build;
import android.view.Window;
import android.view.WindowManager;
/**
* 兼容LOLLIPOP版本
*
* @author msdx (<EMAIL>)
* @version 0.5
* @since 0.3
*/
class StatusBarLollipopImpl implements IStatusBar {
@Targe... | 396 |
428 | <reponame>RichardCory/svgpp
#include <svgpp/detail/names_dictionary.hpp>
#include <gtest/gtest.h>
#define SVGPP_ON_NS(ns, name, str)
TEST(Dictionary, ElementChar)
{
typedef svgpp::detail::element_name_to_id_dictionary dict;
EXPECT_EQ(dict::find("font-face-uri"), svgpp::detail::element_type_id_font_face_uri);
E... | 1,326 |
5,514 | <gh_stars>1000+
package com.u9porn.ui.basemain;
import com.u9porn.data.db.entity.Category;
import java.util.List;
/**
* @author flymegoc
* @date 2018/1/25
*/
public interface IBaseMain {
void loadAllCategoryData(int categoryType);
void loadCategoryData(int categoryType);
Category findCategoryById(L... | 136 |
3,195 | <gh_stars>1000+
import mxnet as mx
import mxnext as X
# Use symbol for internal variables computation for better parallelization
# Use custom python op to control loss/gradient flow
""" ---Sigmoid Focal Loss---
def forward(self, is_train, req, in_data, out_data, aux):
logits = in_data[0]
labels = ... | 3,985 |
391 | <reponame>zmhbh/spring-android
/*
* Copyright 2002-2014 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,592 |
716 | <gh_stars>100-1000
/*
* 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
*
*/
/* clang-format off */
/** \file
* Implements DFLIB findfileqq subprogram. */
#inclu... | 802 |
521 | <filename>third_party/virtualbox/src/VBox/Frontends/VirtualBox/src/selector/graphics/details/UIGDetailsElement.cpp
/* $Id: UIGDetailsElement.cpp $ */
/** @file
* VBox Qt GUI - UIGDetailsElement class implementation.
*/
/*
* Copyright (C) 2012-2017 Oracle Corporation
*
* This file is part of VirtualBox Open Source... | 8,782 |
347 | <gh_stars>100-1000
package org.ovirt.engine.core.common.businessentities;
import java.util.Map;
import java.util.function.Function;
import java.util.stream.Collectors;
import java.util.stream.Stream;
public enum GuestAgentStatus {
DoesntExist(0),
Exists(1),
UpdateNeeded(2);
private static final Map<I... | 267 |
675 | /*
* Copyright 2016 The Bazel 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 a... | 309 |
460 | #ifndef NX_COLLISION_NXTRIANGLEMESHSHAPEDESC
#define NX_COLLISION_NXTRIANGLEMESHSHAPEDESC
/*----------------------------------------------------------------------------*\
|
| Public Interface to NovodeX Technology
|
| www.novodex.com
|
\*----------------------------------------------------------... | 569 |
964 | <gh_stars>100-1000
{
"AWSTemplateFormatVersion": "2010-09-09",
"Resources": {
"myStackWithParams": {
"Type": "AWS::CloudFormation::Stack",
"Properties": {
"NotificationARNs": [
"string"
],
"TemplateURL": "https://s3.amazonaws.com/cloudformation-templates-us-east-2/E... | 231 |
460 | <reponame>dyzmapl/BumpTop
#include "../../../tools/designer/src/lib/shared/shared_enums_p.h"
| 42 |
705 | <reponame>JohnieBraaf/django-river<gh_stars>100-1000
from __future__ import unicode_literals
from django.db import models
from django.db.models import PROTECT
from django.utils.translation import ugettext_lazy as _
from river.models import State, Workflow
from river.models.base_model import BaseModel
class Transiti... | 428 |
545 | <filename>mcc_generated_files/boot/com_adaptor_uart.c
/**
@Generated 16-bit Bootloader Source File
@Company:
Microchip Technology Inc.
@File Name:
com_adaptor_uart.c
@Summary:
This is the com_adaptor_uart.c file generated using 16-bit Bootloader
@Description:
This header file... | 1,838 |
1,198 | /*
* Copyright 2019 <NAME>
* Copyright 2019 <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 appli... | 282 |
2,003 | // Copyright (c) 2015, Baidu.com, Inc. All Rights Reserved
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "utils/schema_utils.h"
#include <sstream>
#include <glog/logging.h>
namespace tera {
bool IsSchemaCfDiff(const TableSchema& a, const TableSchem... | 483 |
2,151 | #define _STLP_PLATFORM "Free BSD"
#define _STLP_USE_UNIX_IO
| 29 |
416 | #include <AudioToolbox/AUComponent.h>
| 13 |
14,668 | <reponame>zealoussnow/chromium<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 COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_FORM_STRUCTURE_H_
#define COMPONENTS_AUTOFILL_CORE_BROWSER_TES... | 333 |
1,671 | // Copyright 2019 SoloKeys Developers
//
// Licensed under the Apache License, Version 2.0, <LICENSE-APACHE or
// http://apache.org/licenses/LICENSE-2.0> or the MIT license <LICENSE-MIT or
// http://opensource.org/licenses/MIT>, at your option. This file may not be
// copied, modified, or distributed except according t... | 185 |
841 | <filename>testsuite/integration-tests/src/test/java/org/jboss/resteasy/test/providers/sse/SseAPI.java
package org.jboss.resteasy.test.providers.sse;
import jakarta.ws.rs.GET;
import jakarta.ws.rs.POST;
import jakarta.ws.rs.Path;
import jakarta.ws.rs.Produces;
import jakarta.ws.rs.core.Context;
import jakarta.ws.rs.sse... | 228 |
372 | <filename>clients/google-api-services-dlp/v2/1.30.1/com/google/api/services/dlp/v2/model/GooglePrivacyDlpV2DeltaPresenceEstimationQuasiIdValues.java
/*
* 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 Lice... | 1,418 |
540 | <reponame>intel/parallelstl
// -*- C++ -*-
//===-- execution_sycl_defs.h ---------------------------------------------===//
//
// Copyright (C) Intel Corporation
//
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
// This file incorporates work covered by the following copyright and permission
// notice:
/... | 4,939 |
782 | <gh_stars>100-1000
/*
* 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
*
* ht... | 1,646 |
400 | <gh_stars>100-1000
#ifndef BLAKE_H
#define BLAKE_H
// nothing to see here... move along
#endif // #ifndef BLAKE_H
| 51 |
411 | <reponame>elihschiff/Submitty
def up(config, database, semester, course):
database.execute("""DO $$
BEGIN
IF NOT EXISTS (SELECT 1 FROM pg_type WHERE typname = 'notifications_component') THEN
CREATE TYPE notifications_component AS ENUM ('forum');
END IF;
END$$;... | 470 |
6,215 | {
"client_id": "<invalid_client_id>",
"client_secret": "<invalid_client_secret>",
"refresh_token": "<invalid_refresh_token>",
"realm_id": "<invalid_realm_id>",
"user_agent": "invalid <EMAIL>",
"start_date": "2021-01-01T00:00:00Z",
"sandbox": true
}
| 116 |
358 | <reponame>alanjjenkins/awacs<gh_stars>100-1000
# Copyright (c) 2012-2021, <NAME> <<EMAIL>>
# All rights reserved.
#
# See LICENSE file for full license.
from .aws import Action as BaseAction
from .aws import BaseARN
service_name = "Amazon Cognito Identity"
prefix = "cognito-identity"
class Action(BaseAction):
d... | 562 |
327 | <filename>cola-cloud-framework/cola-cloud-framework-util/src/main/java/com/honvay/cola/cloud/framework/util/ObjectUtils.java<gh_stars>100-1000
package com.honvay.cola.cloud.framework.util;
import org.apache.commons.lang3.StringUtils;
import java.util.Objects;
/**
* @author LIQIU
* @date 2018-4-19
**/
public class... | 225 |
1,886 | <reponame>mananpal1997/cinder
/* C accelerator implementation for PyIce */
#include "Python.h"
#include "bytes_methods.h"
#include <stdint.h>
/* Structures for the in-memory/on-disk format */
typedef struct {
int64_t marker; /* ICEPACK<version byte> */
uint32_t timestamp; /* timestamp of lates... | 22,152 |
1,133 | #include "ImageAccessor.h"
#include <exception>
#include <cmath>
#include <complex>
#include <sstream>
#include <iostream>
#include <string>
#include <vector>
#include <stdio.h>
#include <stdlib.h>
using namespace std;
void ImageAccessor::createFile(int fileLength)
{
LineAccessor::createFile(&fileLength);
}
void I... | 646 |
801 | <reponame>vishalbelsare/neupy
import os
from collections import namedtuple
from bs4 import BeautifulSoup
from six.moves.urllib.parse import urljoin, urlparse
from webgraph import Link
def iter_html_files(directory):
for path, directories, filenames in os.walk(directory):
for filename in filenames:
... | 2,091 |
498 | //
// lager - library for functional interactive c++ programs
// Copyright (C) 2017 <NAME>
//
// This file is part of lager.
//
// lager is free software: you can redistribute it and/or modify
// it under the terms of the MIT License, as detailed in the LICENSE
// file located at the root of this source code distributi... | 527 |
892 | <gh_stars>100-1000
{
"schema_version": "1.2.0",
"id": "GHSA-mc84-xr9p-938r",
"modified": "2021-09-15T18:50:22Z",
"published": "2019-09-23T18:31:05Z",
"aliases": [
],
"summary": "High severity vulnerability that affects generator-jhipster",
"details": "## Generated code uses repository configuration tha... | 1,393 |
930 | package com.dianping.pigeon.remoting.netty.channel;
import com.dianping.pigeon.log.Logger;
import com.dianping.pigeon.log.LoggerLoader;
import com.dianping.pigeon.remoting.common.channel.ChannelFactory;
import com.dianping.pigeon.remoting.common.exception.NetworkException;
import com.dianping.pigeon.remoting.common.po... | 489 |
3,768 | from __future__ import print_function
import urllib.parse
from ast import parse
from IPython import get_ipython
from IPython.core.magic import Magics, line_cell_magic, magics_class
from IPython.core.magic_arguments import argument, magic_arguments, parse_argstring
from IPython.display import IFrame, display
from .. ... | 1,587 |
354 | <filename>setup.py
import os
from setuptools import setup, find_packages
def _package_files(directory: str, suffix: str) -> list:
"""
Get all of the file paths in the directory specified by suffix.
:param directory:
:return:
"""
paths = []
for (path, directories, filenames) in... | 724 |
3,710 | <filename>toonz/sources/include/toonz/tcenterlinevectorizer.h
#pragma once
#ifndef T_CENTERLINE_VECTORIZER
#define T_CENTERLINE_VECTORIZER
#include "toonz/vectorizerparameters.h"
#include "tvectorimage.h"
#include <deque>
#include <list>
#include <QObject>
#undef DVAPI
#undef DVVAR
#ifdef TOONZLIB_EXPORTS
#define D... | 1,340 |
1,338 | <filename>src/tests/servers/app/text_rendering/main.cpp<gh_stars>1000+
#include <Application.h>
#include <String.h>
#include <View.h>
#include <Window.h>
class View : public BView {
public:
View(BRect bounds)
: BView(bounds, "test", B_FOLLOW_ALL, B_WILL_DRAW)
{
}
virtual void Draw(BRect updateRect)
{
BFont f... | 524 |
312 | {
"syncs": [
{
"syncName": "syncDownContacts",
"syncType": "syncDown",
"soupName": "contacts",
"target": {"type":"soql", "query":"SELECT FirstName, LastName, Title, MobilePhone, Email, Department, HomePhone FROM Contact LIMIT 10000"},
"options": {"mergeMode":"OVERWRITE"}
},
{... | 278 |
588 | package com.flycms;
import org.eclipse.jetty.util.thread.QueuedThreadPool;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
impo... | 473 |
371 | try:
import torch
except (ModuleNotFoundError, ImportError) as e:
raise ModuleNotFoundError("torch is not currently installed. Run 'pip install convokit[craft]' if you would like to use the CRAFT model.")
import pandas as pd
from convokit.forecaster.CRAFT.CRAFTUtil import loadPrecomputedVoc, batchIterator, CON... | 8,116 |
3,967 | # Copyright 2021 <NAME>. 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 agree... | 2,506 |
419 | #include "Core.h"
#ifdef CC_BUILD_GL
#include "_GraphicsBase.h"
#include "Chat.h"
#include "Errors.h"
#include "Logger.h"
#include "Window.h"
/* The OpenGL backend is a bit of a mess, since it's really 3 backends in one:
* - OpenGL 1.1 (completely lacking GPU, fallbacks to say Windows built-in software rasteri... | 17,900 |
716 | <gh_stars>100-1000
/*
* Copyright (C) 2022 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
*
* Unl... | 1,421 |
2,201 | """
Copyright (c) 2018-2022 Intel 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 agreed to in wri... | 5,488 |
1,947 | <filename>Samples/cuSolverSp_LinearSolver/cuSolverSp_LinearSolver.cpp
/* Copyright (c) 2021, NVIDIA CORPORATION. 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... | 11,658 |
13,585 | <reponame>694551594/mybatis-plus
package com.baomidou.mybatisplus.test.h2.fillperformance.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.test.h2.fillperformance.model.PerformanceModel;
public interface IPerformanceModelService extends IService<PerformanceModel> {
... | 111 |
348 | <reponame>chamberone/Leaflet.PixiOverlay
{"nom":"Etuz","circ":"1ère circonscription","dpt":"Haute-Saône","inscrits":459,"abs":249,"votants":210,"blancs":3,"nuls":9,"exp":198,"res":[{"nuance":"REM","nom":"<NAME>","voix":145},{"nuance":"FN","nom":"Mme <NAME>","voix":53}]} | 112 |
1,338 | /*
* Copyright 2004-2012, <NAME>, <EMAIL>.
* Distributed under the terms of the MIT License.
*/
#include "RootFileSystem.h"
#include <boot/platform.h>
#include <boot/vfs.h>
#include <boot/menu.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
const char *kNormalColor = "\33[0m";
const char *kDisable... | 1,652 |
628 | import pytest
from osf_tests.factories import InstitutionFactory
from api.base.settings.defaults import API_BASE
from django.core.validators import URLValidator
@pytest.mark.django_db
class TestInstitutionDetail:
expected_relationships = {
'nodes',
'registrations',
'users',
'depar... | 724 |
6,436 | #pragma once
#include "ofVec3f.h"
/// \file
/// ofPoint is a typedef (alias) of ofVec3f
/// \brief Look at ofVec3f for documentation
typedef ofVec3f ofPoint;
| 69 |
3,427 | /**
* Copyright (C) 2015-2016, BMW Car IT GmbH and BMW AG
* Author: <NAME> (<EMAIL>)
*
* 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
... | 785 |
1,251 | <reponame>palerdot/BlingFire<gh_stars>1000+
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
#include "blingfire-client_src_pch.h"
#include "FAConfig.h"
#include "FAState2Ow_pack_triv.h"
#include "FAEncodeUtils.h"
#include "FAFsmConst.h"
namespace Bl... | 1,671 |
477 | <reponame>flying-sheep/goatools
#!/usr/bin/env python
"""This test addresses "Error printing GOTerm #61"."""
import os
import sys
import goatools
from goatools.base import download_go_basic_obo
def test_go_print(prt=sys.stdout):
"""Test that all GO Terms can be printed, even if level/depth are not assigned."""
... | 613 |
764 | {"symbol": "MAFI","address": "0x4889F721f80C5E9fadE6Ea9B85835D405D79a4f4","overview":{"en": ""},"email": "","website": "https://www.mafi.network/","state": "NORMAL","links": {"blog": "https://t.me/joinchat/AAAAAFRG0UyQJAZrIi2GUw","twitter": "https://twitter.com/Mafia_Network_","telegram": "","github": ""}} | 131 |
348 | {"nom":"Courry","circ":"4ème circonscription","dpt":"Gard","inscrits":285,"abs":128,"votants":157,"blancs":26,"nuls":5,"exp":126,"res":[{"nuance":"REM","nom":"Mme <NAME>","voix":88},{"nuance":"FN","nom":"Mme <NAME>","voix":38}]} | 91 |
690 | <gh_stars>100-1000
"""
Evaluation tools, mainly non-straightforward methods.
"""
from __future__ import print_function
from __future__ import division
from collections import namedtuple
import numpy as np
from scipy.stats import pearsonr
from scipy.stats import spearmanr
from sklearn.metrics import mean_squared_error... | 4,867 |
679 | <gh_stars>100-1000
/**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF license... | 2,134 |
1,232 | /*-
* <<
* DBus
* ==
* Copyright (C) 2016 - 2019 Bridata
* ==
* 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... | 2,326 |
2,266 | <reponame>defc0n1/shoppe_promo
#include <stdio.h>
void a()
{
printf ("In function a\n");
}
| 48 |
354 | import unittest
import matplotlib
matplotlib.use("Agg")
class Test(unittest.TestCase):
def test_random(self):
import numpy as np
import matplotlib.pyplot as plt
from smt.sampling_methods import Random
xlimits = np.array([[0.0, 4.0], [0.0, 3.0]])
sampling = Random(xlimit... | 734 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.