max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
841 | package org.jboss.resteasy.test.asyncio;
public class AsyncThrowingWriterData
{
public boolean throwNow;
public AsyncThrowingWriterData(final boolean throwNow){
this.throwNow = throwNow;
}
}
| 72 |
1,438 | <gh_stars>1000+
package com.dexvis.dex;
import java.io.File;
import java.util.List;
import java.util.concurrent.CompletionService;
import java.util.concurrent.ExecutorCompletionService;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.TimeUnit;
import jav... | 2,182 |
722 | <gh_stars>100-1000
from typing import Union
import torch
import collections
from pathlib import Path
from catalyst.dl import utils
from catalyst.dl.runner import SupervisedRunner
from catalyst.dl.callbacks import EarlyStoppingCallback
from catalyst.dl.callbacks.scheduler import SchedulerCallback
from catalyst.dl.callba... | 1,139 |
609 | <reponame>RC0D3/gramado
#ifndef __LT8X8_H
#define __LT8X8_H 1
#define CH_CTRLA 0x01
#define CH_CTRLB 0x02
#define CH_CTRLC 0x03
#define CH_CTRLD 0x04
#define CH_CTRLE 0x05
#define CH_CTRLF 0x06
#define CH_CTRLG 0x07
#define CH_CTRLH 0x08
#define CH_CTRLI 0x09
#define CH_CTRLJ 0x0A
#define CH_CTRLK 0x0B
... | 9,843 |
19,529 | <filename>vnpy/api/oes/include/oes/oes_api/samples/c_sample/02_oes_client_option_sample.c
/*
* Copyright 2016 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... | 33,723 |
384 |
package org.holoeverywhere.app;
import android.content.Intent;
import android.content.res.Configuration;
import android.os.Bundle;
import android.support.v4.app._HoloActivity;
import android.view.KeyEvent;
import android.view.View;
import org.holoeverywhere.ThemeManager;
import org.holoeverywhere.addon.Addons;
impor... | 5,508 |
408 | <filename>nesmdb/score/midi.py
from collections import defaultdict
import numpy as np
import tempfile
def exprsco_to_midi(exprsco):
import pretty_midi
rate, nsamps, exprsco = exprsco
# Create MIDI instruments
p1_prog = pretty_midi.instrument_name_to_program('Lead 1 (square)')
p2_prog = pretty_midi.instrum... | 2,073 |
4,812 | //===-- llvm/Support/CRC.h - Cyclic Redundancy Check-------------*- 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
//
//===---------------------------... | 562 |
575 | // Copyright (c) 2020 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 BASE_ALLOCATOR_PARTITION_ALLOCATOR_PARTITION_ALLOC_HOOKS_H_
#define BASE_ALLOCATOR_PARTITION_ALLOCATOR_PARTITION_ALLOC_HOOKS_H_
#include <ato... | 1,582 |
336 | <filename>fork-runner/src/main/java/com/shazam/fork/runner/ReporterBasedFailedTestScheduler.java
package com.shazam.fork.runner;
import com.shazam.fork.model.Pool;
import com.shazam.fork.model.TestCaseEvent;
import java.util.Queue;
public class ReporterBasedFailedTestScheduler implements FailedTestScheduler {
pr... | 479 |
317 | <reponame>philippQubit/hbase-indexer<filename>hbase-indexer-engine/src/test/java/com/ngdata/hbaseindexer/parse/ByteArrayValueMappersTest.java
/*
* Copyright 2013 NGDATA nv
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You ma... | 1,496 |
505 | <filename>FAP_modules/io_board/stm32_code/Inc/helpers.h
#ifndef __HELPERS_H
#define __HELPERS_H
#ifdef __cplusplus
extern "C" {
#endif
#include "stm32f0xx_hal.h"
#define LB_SIZE 1024
#define latch1_activate() HAL_GPIO_WritePin(LATCH1_GPIO_Port, LATCH1_Pin, GPIO_PIN_RESET)
#define latch1_deactivate() H... | 719 |
377 | package at.favre.app.blurbenchmark.models;
import com.fasterxml.jackson.annotation.JsonIgnore;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Set;
import java.util.TreeSet;
import at.favre.app.blurbenchmark.blur.EBlurAlgorithm;
/**
* This is the main logic on retr... | 4,254 |
2,151 | <gh_stars>1000+
// Copyright 2018 The Feed 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 applicab... | 5,100 |
1,558 | <reponame>Microsoft/WindowsTemplateStudio
{
"author": "Microsoft Community",
"name": "3D App Launcher",
"description": "Inclut un lanceur d'applications 3D lorsque l'application est utilisée dans un environnement de réalité mixte.",
"identity": "ts.Feat.3DLauncher"
} | 98 |
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 ... | 11,475 |
2,728 | <filename>sdk/machinelearning/azure-mgmt-guestconfig/azure/mgmt/guestconfig/models/_models_py3.py<gh_stars>1000+
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in th... | 12,587 |
2,151 | package com.google.typography.font.sfntly.table.opentype.component;
import com.google.typography.font.sfntly.data.ReadableFontData;
public class NumRecordTable extends RecordsTable<NumRecord> {
public NumRecordTable(ReadableFontData data, int base, boolean dataIsCanonical) {
super(data, base, dataIsCanonical);... | 544 |
347 | import sys
from pathlib import Path
import numpy as np
import pyrallis
from dataclasses import dataclass
from tqdm import tqdm
sys.path.append(".")
sys.path.append("..")
from editing.interfacegan.helpers.anycostgan import attr_list
from editing.interfacegan.helpers.manipulator import train_boundary
@dataclass
clas... | 1,519 |
2,541 | <gh_stars>1000+
//
// WAPageRouteDelegate-Protocol.h
// WeAppExample
//
// Created by lionvoom on 2020/12/3.
// Copyright © 2020 wept. All rights reserved.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@protocol WAPageRouteDelegate <NSObject>
- (void)launchHome;
- (void)backToHome;
- (void)swit... | 228 |
326 | <gh_stars>100-1000
// Boost.Geometry
// Copyright (c) 2021, Oracle and/or its affiliates.
// Contributed and/or modified by <NAME>, on behalf of Oracle
// Licensed under the Boost Software License version 1.0.
// http://www.boost.org/users/license.html
#ifndef BOOST_GEOMETRY_GEOMETRIES_CONCEPTS_GEOMETRY_COLLECTION_... | 1,814 |
453 | <reponame>Wilder-Wonka/Coloring-greyscale-images
from .utils.calc_output_and_feature_size import calc_output_and_feature_size
from .utils.instance_normalization import InstanceNormalization
from keras.models import model_from_json, Model
from .utils.sn import ConvSN2D
from keras.optimizers import Adam
from keras import... | 1,415 |
1,847 | // Copyright (c) 2021 The Orbit 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 "DisplayFormats/DisplayFormats.h"
#include <absl/strings/str_format.h>
#include <absl/time/time.h>
namespace orbit_display_formats {
std::str... | 696 |
348 | <filename>docs/data/t2/054/54417.json
{"nom":"Parey-Saint-Césaire","dpt":"Meurthe-et-Moselle","inscrits":188,"abs":26,"votants":162,"blancs":11,"nuls":5,"exp":146,"res":[{"panneau":"2","voix":80},{"panneau":"1","voix":66}]} | 99 |
345 | <filename>huntbugs/src/main/java/one/util/huntbugs/detect/FieldAccess.java
/*
* Copyright 2016 HuntBugs 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://ww... | 9,422 |
1,383 | // =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2014 projectchrono.org
// All right reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file at the top level of th... | 1,163 |
513 | #include "amulet.h"
#define AM_AUDIO_NODE_FLAG_MARK ((uint32_t)1)
#define AM_AUDIO_NODE_FLAG_CHILDREN_DIRTY ((uint32_t)2)
#define AM_AUDIO_NODE_FLAG_PENDING_PAUSE ((uint32_t)4)
#define AM_AUDIO_NODE_MASK_LIVE_PAUSE_STATE ((uint32_t)(8+16))
#define node_marked(node) (node->flags & AM_AUDIO_N... | 28,070 |
492 |
#ifndef __COMPRESSION_TYPES_H__
#define __COMPRESSION_TYPES_H__
#include "BaseTypes.h"
/*++
Routine Description:
The compression routine.
Arguments:
SrcBuffer - The buffer storing the source data
SrcSize - The size of source data
DstBuffer - The buffer to store the compressed data
DstSize -... | 570 |
444 | <reponame>code-review-doctor/orchestra<gh_stars>100-1000
from django.contrib.postgres.fields import JSONField
from django.core.exceptions import ValidationError
from jsonschema import Draft4Validator
from jsonschema.exceptions import ValidationError as SchemaValidationError
from django.utils.translation import gettext_... | 834 |
14,668 | // Copyright 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.
#ifndef CONTENT_BROWSER_CACHE_STORAGE_SCOPED_WRITABLE_ENTRY_H_
#define CONTENT_BROWSER_CACHE_STORAGE_SCOPED_WRITABLE_ENTRY_H_
#include <memory>
#include... | 499 |
557 | <reponame>cockcrow/python-mammoth
from nose.tools import istest, assert_equal
from mammoth import html
@istest
def collapsing_does_nothing_to_single_text_node():
assert_equal(
html.collapse([html.text("Bluebells")]),
[html.text("Bluebells")])
@istest
def consecutive_fresh_elements_are_not_colla... | 1,917 |
1,408 |
package com.pancm.client;
import java.util.Date;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.pancm.protobuf.UserInfo;
import com.pancm.protobuf.UserInfo.UserMsg;
import io.netty.bootstrap.Bootstrap;
import io.netty.channel.ChannelHandle... | 1,296 |
2,114 | <gh_stars>1000+
package io.searchbox.cluster;
import io.searchbox.action.AbstractAction;
import io.searchbox.action.GenericResultAbstractAction;
import io.searchbox.client.config.ElasticsearchVersion;
/**
* Allows to update cluster wide specific settings. Settings updated can either be persistent (applied cross rest... | 589 |
334 | # Copyright 2018 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 required by applicable law or a... | 1,852 |
8,747 | /* SPI Slave Halfduplex example
This example code is in the Public Domain (or CC0 licensed, at your option.)
Unless required by applicable law or agreed to in writing, this
software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied.
*/
#include <st... | 4,699 |
2,151 | <reponame>zipated/src<filename>chromeos/components/tether/fake_ble_scanner.h
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROMEOS_COMPONENTS_TETHER_FAKE_BLE_SCANNER_H_
#define CHROMEOS_COMPO... | 736 |
45,293 | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: compiler/ir/serialization.common/src/KotlinIr.proto
package org.jetbrains.kotlin.backend.common.serialization.proto;
/**
* Protobuf type {@code org.jetbrains.kotlin.backend.common.serialization.proto.IrTypeAlias}
*/
public final class IrTypeAlia... | 10,406 |
4,267 | <reponame>kangwenhang/WindTerm
/*
* Copyright 2020, WindTerm.
*
* 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,181 |
552 | #include "stdafx.h"
#include "CelestialBodySystem.h"
#include <EtFramework/Systems/TransformSystem.h>
namespace et {
namespace demo {
//=======================
// Celestial Body System
//=======================
//----------------------------
// CelestialBodySystem::c-tor
//
CelestialBodySystem::CelestialBodySyst... | 354 |
735 | <gh_stars>100-1000
// NOTE: This file was generated by the ServiceGenerator.
// ----------------------------------------------------------------------------
// API:
// Dialogflow API (dialogflow/v3)
// Description:
// Builds conversational interfaces (for example, chatbots, and voice-powered
// apps and devices)... | 57,359 |
12,063 | import torch
import torchvision
import torchvision.datasets as dset
import torchvision.transforms
| 25 |
1,475 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional information regarding
* copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the
* "License"); you may not ... | 475 |
1,082 | <filename>game-tool-scripts/src/main/java/com/jjy/game/tool/tcp/user/LoginResHandler.java
package com.jjy.game.tool.tcp.user;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.jjy.game.message.Mid.MID;
import com.jjy.game.message.hall.HallChatMessage.ChatRequest;
import com.jjy.game.message.h... | 939 |
455 | /* Copyright (c) 2003-2004, <NAME>
* Copyright (c) 2004-2006, <NAME>, <NAME>.
* Copyright (c) 2007-2019, The Tor Project, Inc. */
/* See LICENSE for licensing information */
/**
* \file userdb.h
*
* \brief Header for userdb.c
**/
#ifndef TOR_USERDB_H
#define TOR_USERDB_H
#include "orconfig.h"
#ifndef _WIN32
#... | 198 |
1,695 | <filename>plugin/trino-pinot/src/main/java/io/trino/plugin/pinot/query/AggregateExpression.java<gh_stars>1000+
/*
* 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.... | 1,306 |
508 | from unittest import TestCase
import pandas as pd
from pytz import UTC
from trading_calendars.exchange_calendar_xist import XISTExchangeCalendar
from .test_trading_calendar import NoDSTExchangeCalendarTestBase
class XISTCalendarTestCase(NoDSTExchangeCalendarTestBase, TestCase):
answer_key_filename = 'xist'
... | 2,591 |
2,151 | // 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.
package org.chromium.chrome.browser.media.router.cast;
import android.os.Handler;
import android.support.v7.media.MediaRouteSelector;
import android.suppo... | 3,183 |
1,248 | <reponame>konistehrad/rpi-vk-driver<filename>driver/compute.c<gh_stars>1000+
#include "common.h"
#include "declarations.h"
//TODO
//compute shaders need kernel support
VKAPI_ATTR VkResult VKAPI_CALL RPIFUNC(vkCreateComputePipelines)(
VkDevice device,
VkPipelineCache ... | 1,076 |
350 | <reponame>zqn1996-alan/talkback<filename>talkback/src/main/java/com/google/android/accessibility/talkback/quickmenu/QuickMenuOverlay.java
/*
* Copyright (C) 2020 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... | 1,687 |
1,431 | /* ====================================================================
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to Y... | 813 |
3,212 | /*
* 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 ... | 471 |
597 | {
"appname": "Película",
"searchbartxt": "Busca una película, un programa de televisión, una persona",
"home": "Hogar",
"discover": "Descubrir",
"coming": "Viniendo",
"account": "Cuenta",
"inTheaters": "En los cines",
"onTV": "En TV",
"overView": "Visión de conjunto",
"topBilledC... | 1,327 |
1,738 | <gh_stars>1000+
/*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the li... | 968 |
607 | <filename>lib/include/can/CanPeripheral.h
/*
* This file is a part of the open source stm32plus library.
* Copyright (c) 2011,2012,2013,2014 <NAME> <www.andybrown.me.uk>
* Please see website for licensing terms.
*/
#pragma once
namespace stm32plus {
/**
* Can peripheral base template. The specific instanc... | 3,492 |
578 | <reponame>raptoravis/two
#include <two/pool.h>
#include <two/infra.h>
#include <two/type.h>
#ifdef TWO_MODULES
module two.pool;
#else
//#include <refl/Class.h>
#endif
namespace two
{
vector<unique<Pool>> g_pools = vector<unique<Pool>>(c_max_types);
ObjectPool::ObjectPool()
: m_pools(c_max_types)
{}
void Obj... | 427 |
2,577 | <gh_stars>1000+
/*
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
* under one or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. Camunda licenses this file to you under the Apache License,
... | 1,287 |
2,695 | <gh_stars>1000+
// Copyright (C) 2009 <NAME> (<EMAIL>)
// License: Boost Software License See LICENSE.txt for the full license.
#include <dlib/matrix.h>
#include <sstream>
#include <string>
#include <cstdlib>
#include <ctime>
#include <vector>
#include "../stl_checked.h"
#include "../array.h"
#include "../rand.h"
... | 2,686 |
8,969 | // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
#ifndef RUNTIME_VM_HEAP_BECOME_H_
#define RUNTIME_VM_HEAP_BECOME_H_
#include "platform/atomic.h"
#incl... | 1,295 |
5,169 | {
"name": "TestBinary",
"version": "0.0.1",
"license": {
"type": "BSD",
"file": "Carthage/LICENSE"
},
"summary": "Test",
"homepage": "https://github.com/Ogerets/test-binary-x",
"authors": {
"Ogerets": "https://github.com/Ogerets"
},
"source": {
"http": "https://github.com/Ogerets/test-... | 457 |
957 | #include "DynamicLinkLibrary.h"
#include <assert.h>
DynamicLinkLibrary::DynamicLinkLibrary()
: reference_(1)
{
dll_ = nullptr;
}
DynamicLinkLibrary ::~DynamicLinkLibrary()
{
Reset();
}
void DynamicLinkLibrary::Reset()
{
if (dll_ != nullptr)
{
#if _WIN32
::FreeLibrary(dll_);
#else
dlclose(dll_);
#endif
dll... | 378 |
386 | <reponame>bradleyhenke/cortex
//////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2007-2012, Image Engine Design Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following con... | 2,823 |
14,668 | <filename>components/module_installer/android/junit/src/org/chromium/components/module_installer/engine/SplitCompatEngineTest.java
// Copyright 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.
package org.chromium.co... | 4,560 |
407 | <gh_stars>100-1000
/*
* Copyright (c) 2016-2019, 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 code must retain the above copyright
* ... | 15,130 |
348 | <gh_stars>100-1000
{"nom":"Santa-Maria-Siché","circ":"2ème circonscription","dpt":"Corse-du-Sud","inscrits":371,"abs":145,"votants":226,"blancs":13,"nuls":4,"exp":209,"res":[{"nuance":"REG","nom":"<NAME>","voix":132},{"nuance":"LR","nom":"<NAME>","voix":77}]} | 106 |
1,244 | #include <wchar.h>
#include "stdio_impl.h"
#define SH (8*sizeof(int)-1)
#define NORMALIZE(x) ((x)>>SH | -((-(x))>>SH))
int fwide(FILE *f, int mode)
{
FLOCK(f);
if (!f->mode) mode = f->mode = NORMALIZE(mode);
FUNLOCK(f);
return mode;
}
| 114 |
852 | import FWCore.ParameterSet.Config as cms
cms.checkImportPermission(allowedPatterns = ['allowed'])
| 29 |
1,968 | <reponame>agramonte/corona
//////////////////////////////////////////////////////////////////////////////
//
// This file is part of the Corona game engine.
// For overview and more information on licensing please refer to README.md
// Home page: https://github.com/coronalabs/corona
// Contact: <EMAIL>
//
////////////... | 356 |
306 | <filename>WeChatPlugin/Sources/Common/Category/NSMenuItem+Action.h
//
// NSMenuItem+Action.h
// WeChatPlugin
//
// Created by TK on 2018/4/25.
// Copyright © 2018年 tk. All rights reserved.
//
#import <Cocoa/Cocoa.h>
@interface NSMenuItem (Action)
+ (NSMenuItem *)menuItemWithTitle:(NSString *)title action:(SEL)se... | 147 |
399 | <filename>core/src/test/java/edu/wpi/grip/core/sources/SimpleMockFrameGrabber.java<gh_stars>100-1000
package edu.wpi.grip.core.sources;
import org.bytedeco.javacv.Frame;
import org.bytedeco.javacv.FrameGrabber;
@SuppressWarnings({"PMD.AvoidThrowingRawExceptionTypes", "PMD.SignatureDeclareThrowsException"})
class Simp... | 277 |
1,436 | // Copyright 2016 Yahoo Inc.
// Licensed under the terms of the Apache 2.0 license.
// Please see LICENSE file in the project root for terms.
#ifndef CAFFE_DISTRI_SOCKET_SYNC_HPP_
#define CAFFE_DISTRI_SOCKET_SYNC_HPP_
#include <boost/shared_ptr.hpp>
#include <vector>
#include "caffe/parallel.hpp"
#include "caffe/solve... | 939 |
2,406 | <gh_stars>1000+
# Copyright (C) 2018-2021 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import os
import re
import tensorflow as tf
import numpy as np
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'
def load_graph(model_file, output_nodes_for_freeze=None):
is_meta = os.path.splitext(model_file)[-1] == ".me... | 1,925 |
1,144 | """This file is for dev server only.
DO NOT USE FOR PROD
"""
from gevent import monkey
monkey.patch_all()
from lib.patch import patch_all
patch_all()
import multiprocessing
import os
import shlex
import sys
import subprocess
import gevent.pywsgi
import gevent.socket
from app.server import flask_app
def main... | 908 |
6,663 | # mode: run
# tag: pure3, pure2
import cython
@cython.test_assert_path_exists("//ForFromStatNode")
@cython.test_fail_if_path_exists("//ForInStatNode")
@cython.locals(x=bytearray)
def basic_bytearray_iter(x):
"""
>>> basic_bytearray_iter(bytearray(b"hello"))
h
e
l
l
o
"""
for a in x... | 967 |
1,006 | /****************************************************************************
* arch/arm/src/kinetis/hardware/kinetis_cmt.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... | 2,481 |
3,639 | package top.tangyh.lamp.file.mapper;
import top.tangyh.basic.base.mapper.SuperMapper;
import top.tangyh.lamp.file.entity.Appendix;
import org.springframework.stereotype.Repository;
/**
* <p>
* Mapper 接口
* 业务附件
* </p>
*
* @author tangyh
* @date 2021-06-30
* @create [2021-06-30] [tangyh] [初始创建]
*/
@Repository
... | 176 |
14,668 | // Copyright (c) 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.
#ifndef BASE_ALLOCATOR_PARTITION_ALLOCATOR_STARSCAN_LOGGING_H_
#define BASE_ALLOCATOR_PARTITION_ALLOCATOR_STARSCAN_LOGGING_H_
#include "base/allocato... | 639 |
1,599 | <reponame>prity-k/molecule<gh_stars>1000+
"""Console and terminal utilities."""
import os
import sys
from typing import Any, Dict
from enrich.console import Console
from rich.style import Style
from rich.theme import Theme
theme = Theme(
{
"info": "dim cyan",
"warning": "magenta",
"danger"... | 1,083 |
372 | /*
* 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 under t... | 915 |
347 | package org.ovirt.engine.core.aaa.filters;
import java.io.IOException;
import java.util.Arrays;
import java.util.Map;
import javax.naming.InitialContext;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.Servle... | 2,400 |
410 | <gh_stars>100-1000
import os
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
DEBUG = True
ALLOWED_HOSTS = []
DATABASES = {
'default': {'ENGINE': 'django.db.backends.sqlite3', 'NAME': 'djangox509.db'}
}
SECRET_KEY = '<KEY>'
INSTALLED_APPS = [
'django.contrib.auth',
'django.contrib.contenttypes',
... | 982 |
352 | <reponame>ponderng/recon-pipeline<filename>pipeline/models/nmap_model.py
import textwrap
from sqlalchemy.orm import relationship
from sqlalchemy import Column, Integer, ForeignKey, String, Boolean
from .base_model import Base
from .port_model import Port
from .ip_address_model import IPAddress
from .nse_model import ... | 1,222 |
634 | /*
* Copyright 2000-2009 JetBrains s.r.o.
*
* 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... | 856 |
1,738 | /*
* 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 provided, by the license below or t... | 6,757 |
439 | <filename>exercises/practice/two-bucket/.meta/config.json
{
"blurb": "Given two buckets of different size, demonstrate how to measure an exact number of liters.",
"authors": [
"jssander"
],
"contributors": [
"FridaTveit",
"jmrunkle",
"lemoncurry",
"mirkoperillo",
"msomji",
"muzimuzhi... | 313 |
6,304 | #! /usr/bin/env python
# Copyright 2019 Google LLC.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import os
import shutil
import subprocess
import sys
def copy_git_directory(src, dst, out=None):
'''
Makes a copy of `src` directory in `dst` directory. If fil... | 957 |
634 | /*
* Copyright 2013-2018 consulo.io
*
* 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 ... | 448 |
4,417 | # Copyright 2021 The Kubernetes 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 ... | 531 |
339 | #!/usr/bin/env python
"""Retrieve full genome databases, preparing them for BLAST analysis.
Usage:
retrieve_org_dbs.py <YAML config file>
Requires:
- NCBI's blast+ -- for preparing the organism databases
ftp://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/LATEST/
- Biopython libraries
"""
import os
... | 4,393 |
335 | <reponame>Safal08/Hacktoberfest-1
{
"word": "Irone",
"definitions": [
"Originally: a fragrant oil obtained from orris root (Iris germanica and other species). Later: each of three isomeric cyclic ketones (\"\u03b1-irone\", \"\u03b2-irone\", and \"\u03b3-irone\") found in this oil and in other plants suc... | 156 |
2,477 | <filename>app/src/main/java/io/github/hidroh/materialistic/widget/ThreadPreviewRecyclerViewAdapter.java<gh_stars>1000+
/*
* Copyright (c) 2015 <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... | 1,819 |
674 | <filename>Storage/Disk/Encodings/AppleGCR/Sector.hpp
//
// Sector.hpp
// Clock Signal
//
// Created by <NAME> on 04/05/2018.
// Copyright 2018 <NAME>. All rights reserved.
//
#ifndef Sector_h
#define Sector_h
#include <cstdint>
#include <vector>
namespace Storage {
namespace Encodings {
namespace AppleGCR {
str... | 728 |
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... | 2,374 |
1,338 | <reponame>Kirishikesan/haiku
/*
Haiku S3 Trio64 driver adapted from the X.org S3 driver.
Copyright 2001 <NAME> <<EMAIL>>
Copyright 2008 Haiku, Inc. All rights reserved.
Distributed under the terms of the MIT license.
Authors:
<NAME> 2008
*/
#ifndef __TRIO64_H__
#define __TRIO64_H__
// Note that the curso... | 613 |
14,668 | // Copyright 2015 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 EXTENSIONS_BROWSER_EXTENSION_HOST_QUEUE_H_
#define EXTENSIONS_BROWSER_EXTENSION_HOST_QUEUE_H_
#include <list>
#include "base/memory/weak_ptr.h"
... | 624 |
822 | <gh_stars>100-1000
"""
Test our ability to sign and verify digital signatures
"""
import os
from io import BytesIO
from cryptos.bitcoin import BITCOIN
from cryptos.keys import gen_key_pair
from cryptos.ecdsa import Signature, sign, verify
from cryptos.transaction import Tx
def test_ecdsa():
# let's create two i... | 1,118 |
5,169 | {
"name": "StickySugar",
"version": "1.1.0",
"summary": "Syntactic sugar untop of AutoLayout to stick views together",
"description": "Syntactic sugar untop of AutoLayout to stick views together.\nSticky sugar adds convenience methods on top of auto layout to build and apply constraints to your view in a nice a... | 293 |
39,773 | <gh_stars>1000+
{
"integration": [
{
"name": "app_spec.coffee",
"relative": "cypress/integration/app_spec.coffee"
}
],
"component": [
{
"name": "src/components/Foo.spec.js",
"relative": "src/components/Foo.spec.js",
"specType": "component"
},
{
"name": "src/... | 269 |
2,151 | <filename>third_party/blink/tools/blinkpy/style/optparser_unittest.py
# Copyright (C) 2010 <NAME> (<EMAIL>)
#
# 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 co... | 4,723 |
5,169 | {
"name": "EMapgoSDK",
"version": "1.0.0",
"summary": "EMapgoSDK pod Use.",
"description": "TODO: 易图通地图iOS SDK基于iOS 9.0。通过调用地图SDK接口,您可以访问易图通地图服务和数据。",
"homepage": "https://github.com/xiaoleiiOS/EMapgoSDK",
"license": {
"type": "MIT",
"file": "LICENSE"
},
"authors": {
"<EMAIL>": "<EMAIL>"
}... | 310 |
634 | <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. Th... | 2,470 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.