max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
47,880 | /*
* Copyright (C) 2011 The Guava 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 ... | 6,496 |
17,703 | #pragma once
#include "envoy/upstream/retry.h"
#include "gmock/gmock.h"
#include "gtest/gtest.h"
#include "retry_host_predicate.h"
namespace Envoy {
namespace Upstream {
using ::testing::NiceMock;
class TestRetryHostPredicateFactory : public RetryHostPredicateFactory {
public:
RetryHostPredicateSharedPtr createHos... | 273 |
4,606 | # pylint: disable=unused-argument
from dagster import In, job, op, root_input_manager
def read_dataframe_from_table(**_kwargs):
pass
# start_marker
@op(ins={"dataframe": In(root_manager_key="my_root_manager")})
def my_op(dataframe):
"""Do some stuff"""
@root_input_manager
def table1_loader(_):
return ... | 178 |
903 | /*
* 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,543 |
347 | <reponame>hbraha/ovirt-engine<gh_stars>100-1000
package org.ovirt.engine.ui.webadmin.section.main.view;
import java.util.HashMap;
import java.util.Map;
import org.ovirt.engine.core.common.businessentities.Quota;
import org.ovirt.engine.core.common.businessentities.QuotaCluster;
import org.ovirt.engine.core.common.bus... | 6,967 |
313 | {"status_id":6217380061511680,"text":"Otowa jev tumca iru gi egleru hup gambuol balcaha fuk uwpupu nem vugogzuh. #wotjuwu","user":{"user_id":1841614712471552,"name":"<NAME>","screen_name":"@faba","created_at":1159617933,"followers_count":1,"friends_count":21,"favourites_count":22},"created_at":1359492675,"favorite_cou... | 175 |
2,360 | <filename>var/spack/repos/builtin/packages/py-msgpack-numpy/package.py
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class PyMsgpackNumpy(PythonPa... | 712 |
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 ... | 1,078 |
2,151 | /*
* Copyright (c) 1999
* Silicon Graphics Computer Systems, Inc.
*
* Copyright (c) 1999
* <NAME>
*
* This material is provided "as is", with absolutely no warranty expressed
* or implied. Any use is at your own risk.
*
* Permission to use or copy this software for any purpose is hereby granted
* without fee... | 8,324 |
3,834 | <reponame>cmarincia/enso
package org.enso.base.text;
/** A char sequence which allows to access a slice of another char sequence without copying. */
class StringSlice implements CharSequence {
private final CharSequence text;
private final int subStart, subEnd;
/** Constructs a slice of the given text. */
pub... | 282 |
1,306 | HANDLE_OPCODE(OP_THROW /*vAA*/)
{
Object* obj;
/*
* We don't create an exception here, but the process of searching
* for a catch block can do class lookups and throw exceptions.
* We need to update the saved PC.
*/
EXPORT_PC();
vsrc1 = INST_AA(i... | 349 |
730 | //
// UIColor+HO.h
// HighlightObjC
//
// Created by cyan on 30/12/2016.
// Copyright © 2016 cyan. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UIColor (HO)
+ (UIColor *)colorWithCSS:(NSString *)css;
@end
| 92 |
875 | <filename>src/test/org/apache/sqoop/testcategories/sqooptest/SqoopTest.java
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this ... | 396 |
2,671 | s = set([1,2,3])
t = set([3,4,5])
a = s.symmetric_difference(t)
b = t.symmetric_difference(s)
print a
print a == b
print a == set([1,2,4,5])
| 72 |
918 | <reponame>mvachhani/incubator-gobblin
/*
* 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, Ve... | 1,447 |
2,015 | <reponame>vktr/PicoTorrent<gh_stars>1000+
#pragma once
#include <wx/wxprec.h>
#ifndef WX_PRECOMP
#include <wx/wx.h>
#endif
namespace pt
{
namespace UI
{
namespace Dialogs
{
class AddTrackerDialog : public wxDialog
{
public:
AddTrackerDialog(wxWindow* parent, wxWindowID id);
virtual ~AddTra... | 236 |
622 | <gh_stars>100-1000
/*
* Copyright (C) 2012-2016 Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 1,186 |
350 | //=================================================================================================
// SAMPLE Single Include
//-------------------------------------------------------------------------------------------------
// Identical to 'SampleBasic' except for how the NetImgui code is integrated to the project.
//... | 1,141 |
562 | #include <iostream>
#include "oatpp-postgresql/Types.hpp"
int main() {
{
oatpp::postgresql::Uuid uuid;
}
return 0;
}
| 66 |
14,668 | <gh_stars>1000+
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/metrics/bucket_ranges.h"
#include <stdint.h>
#include "testing/gtest/include/gtest/gtest.h"
namespace base {
namespa... | 761 |
1,694 | <gh_stars>1000+
package org.stagemonitor.benchmark.profiler;
public class ClassOptimalPerformanceProfied {
public int method1() {
OptimalPerformanceProfilerMock.start();
try {
return method2(1) + method3() + method5();
} finally {
OptimalPerformanceProfilerMock.stop("public int ClassToProfile.method1()"... | 694 |
6,036 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#pragma once
#include "core/providers/cuda/cuda_kernel.h"
#include "orttraining/core/graph/horovod_adapters.h"
#include "orttraining/core/graph/optimizer_config.h"
namespace onnxruntime {
namespace cuda {
class HorovodAl... | 619 |
400 | <reponame>ygy203/xipki
/*
*
* Copyright (c) 2013 - 2020 <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 ... | 850 |
824 | import unittest
import numpy as np
import pytest
import torch
from pfrl.nn import empirical_normalization
class TestEmpiricalNormalization(unittest.TestCase):
def test_small_cpu(self):
self._test_small(gpu=-1)
@pytest.mark.gpu
def test_small_gpu(self):
self._test_small(gpu=0)
def _... | 1,480 |
2,978 | /*
* Copyright Strimzi authors.
* License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html).
*/
package io.strimzi.operator.topic;
import io.vertx.core.Promise;
import io.vertx.junit5.Checkpoint;
import io.vertx.junit5.VertxExtension;
import io.vertx.junit5.VertxTestContext;
... | 1,754 |
342 | <reponame>None1637/osu-droid-1
package org.anddev.andengine.util.pool;
/**
* (c) 2010 <NAME>
* (c) 2011 Zynga Inc.
*
* @author <NAME>
* @since 23:16:25 - 31.08.2010
*/
public class EntityDetachRunnablePoolUpdateHandler extends RunnablePoolUpdateHandler<EntityDetachRunnablePoolItem> {
// ======================... | 296 |
1,538 | <filename>demos/speed/view.c
/*
* SPEED - by <NAME>, 1999
*
* Viewport functions (3d projection, wireframe guide rendering, etc).
*/
#include <math.h>
#include <allegro5/allegro.h>
#include <allegro5/allegro_font.h>
#include <allegro5/allegro_primitives.h>
#include "speed.h"
#ifndef M_PI
#define M_PI ... | 4,639 |
335 | {
"word": "Fritz",
"definitions": [
"(of a machine) stop working properly."
],
"parts-of-speech": "Noun"
} | 60 |
10,876 | <gh_stars>1000+
{
"name": "monkeys-audio",
"version-string": "5.70",
"port-version": 1,
"description": [
"Monkey's Audio is an excellent audio compression tool which has multiple advantages over traditional methods.",
"Audio files compressed with it end with .ape extension."
],
"homepage": "https://... | 162 |
852 | #ifndef ECALPSEUDOSTRIPINPUTSAMPLE_H
#define ECALPSEUDOSTRIPINPUTSAMPLE_H
#include <ostream>
#include <cstdint>
/** \class EcalPseudoStripInputSample
*/
class EcalPseudoStripInputSample {
public:
EcalPseudoStripInputSample();
EcalPseudoStripInputSample(uint16_t data);
EcalPseudoStripInputSample(int pse... | 332 |
1,564 | #!/usr/bin/env python
# Copyright (c) 2012 Stanford University
#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND T... | 2,040 |
7,482 | <filename>rt-thread/bsp/lpc824_blink/Libraries/peri_driver/uart/ring_buffer.h<gh_stars>1000+
/*
* @brief Common ring buffer support functions
*
* @note
* Copyright(C) NXP Semiconductors, 2012
* All rights reserved.
*
* @par
* Software that is described herein is for illustrative purposes only
* which provides ... | 1,863 |
456 | <reponame>medismailben/llvm-project
//===-- UnwindPlan.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... | 7,684 |
2,208 | <gh_stars>1000+
// declaring the methods that can be used from the pyrexwrapper
// CHECKME: are those 'extern's necessary?
extern void initCartPole(int markov_, int numPoles_, int maxsteps_);
extern void reset();
extern unsigned int getObservationDimension();
extern void echoParams();
extern void getObservation(doub... | 126 |
809 | <reponame>nikitavlaev/embox<gh_stars>100-1000
/**
* @file mmc.c
* @brief MMC-specific stuff (i.e. non-SD, non-SDIO cards)
* @author <NAME> <<EMAIL>>
* @version
* @date 05.11.2019
*/
#include <assert.h>
#include <drivers/block_dev.h>
#include <drivers/mmc/mmc.h>
#include <drivers/mmc/mmc_core.h>
#include <drivers... | 854 |
831 | /*
* Copyright (C) 2018 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 1,929 |
1,059 | #include <tilck/kernel/sync.h>
#include <tilck/kernel/sched.h>
void __wrap_kmutex_lock(struct kmutex *m) {
ASSERT(m->owner_task == NULL);
m->owner_task = get_curr_task();
}
void __wrap_kmutex_unlock(struct kmutex *m) {
ASSERT(m->owner_task == get_curr_task());
m->owner_task = NULL;
}
| 132 |
1,350 | <reponame>Manny27nyc/azure-sdk-for-java<filename>sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/SparkScheduler.java<gh_stars>1000+
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) ... | 1,505 |
1,585 | /* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
/*
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
* University Research and Technology
* Corporation. All rights reserved.
* Copyright (c) 2004-2005 The University of Tennessee a... | 2,566 |
388 | <reponame>ci-fuzz/cppcms
///////////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2008-2012 <NAME> (Tonkikh) <<EMAIL>>
// ... | 4,282 |
1,405 | <reponame>jarekankowski/pegasus_spyware<filename>sample4/recompiled_java/sources/tms/al.java
package tms;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.provider.Settings;
import com.tencent.lbsapi.QLBSService;
import com.tencent.... | 1,008 |
3,075 | /*
*
* Copyright 2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requi... | 2,113 |
4,320 | /*
* Copyright (c) 2018, Unmoon <https://github.com/Unmoon>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, thi... | 739 |
9,491 | /*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010-present Facebook, Inc. (http://www.facebook.com) |
+---------... | 8,360 |
1,011 | <reponame>jimbofreedman/django-rest-framework-json-api<gh_stars>1000+
from datetime import datetime
from unittest import mock
import pytest
from django.test import TestCase
from django.urls import reverse
from django.utils import timezone
from rest_framework.request import Request
from rest_framework.test import APIRe... | 4,812 |
921 | // Copyright (c) 2017-2020 <NAME> <<EMAIL>> Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.vladsch.md.nav.flex.settings;
import com.vladsch.md.nav.flex.PluginBundle;
import com.vladsch.md.nav.settings.MdHtmlSettingsForm;
import com.vladsch.md.nav.setti... | 421 |
8,315 | <gh_stars>1000+
package com.airbnb.epoxy;
class InsertedModel extends TestModel {
static final InsertedModel INSTANCE = new InsertedModel();
@Override
public int getDefaultLayout() {
return 0;
}
}
| 68 |
145,614 | <reponame>NavpreetDevpuri/Python<filename>web_programming/download_images_from_google_query.py
import json
import os
import re
import sys
import urllib.request
import requests
from bs4 import BeautifulSoup
headers = {
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36"
" (KHTML, like ... | 1,498 |
14,668 | <reponame>zealoussnow/chromium
// 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.
#include "chrome/browser/offline_pages/android/offline_page_auto_fetcher_service.h"
#include <string>
#include <utility>
... | 2,531 |
2,603 | <reponame>JVVJV/FreeRTOS
/* ----------------------------------------------------------------------------
* ATMEL Microcontroller Software Support
* ----------------------------------------------------------------------------
* Copyright (c) 2008, Atmel Corporation
*
* All rights reserved.
*
* Redi... | 1,895 |
1,895 | <gh_stars>1000+
package com.baomidou.mybatisplus.samples.ar;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/**
* <p>
* AR 测试
* </p>
*
* @author hubin
* @since 2018-08-14
*/
@SpringBootApplication
public class ArApplication {
public ... | 149 |
460 | <reponame>dyzmapl/BumpTop
#include "../../src/qt3support/network/q3ftp.h"
| 36 |
524 | #pragma once
#include "../loader/loader_helpers.h"
#include "../loader/preview_proxy.h"
#include "../loader/web_file_info.h"
#include "async_handler.h"
#include "downloadable_file_chunks.h"
#include "downloaded_file_info.h"
#include "file_sharing_meta.h"
#include "../../../log/log.h"
#include "../../..... | 5,259 |
4,759 | versions = {'etcd': '9.6', 'etcd3': '14', 'consul': '13', 'exhibitor': '12', 'raft': '11', 'kubernetes': '14'}
| 52 |
778 | <filename>external_libraries/vexcl/tests/deduce.cpp
#define BOOST_TEST_MODULE ExpressionTypeDeduction
#include <boost/test/unit_test.hpp>
#include <vexcl/vector.hpp>
#include <vexcl/element_index.hpp>
#include <vexcl/mba.hpp>
#ifdef RESOLVED_70
#include <vexcl/spmat.hpp>
#endif
#include <vexcl/tagged_terminal.hpp>
#inc... | 1,855 |
435 | {
"description": "Want to start using openstack? Come to this talk and meet shade! Shade\nis a python library that wraps the many OpenStack clients.\n\nThis introductory talk presents:\n\n- an overview of openstack\n- connecting to openstack with shade\n- creating and listing machines, networks & co\n- shade usag... | 368 |
2,151 | <filename>third_party/blink/renderer/core/offscreencanvas/offscreen_canvas.cc
// 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.
#include "third_party/blink/renderer/core/offscreencanvas/offscreen_canvas.h... | 5,267 |
525 | <gh_stars>100-1000
# Added at : 2016.07.31
# Author : 7sDream
# Usage : Provide math operator with polynomials on GF28.
# Used in Reed-solomon encoder.
import abc
from .gf import GF28
__all__ = ['GF28Poly']
class _GFPoly(object):
@classmethod
@abc.abstractmethod
def gf(cls):
... | 1,764 |
365 | import bpy
bpy.context.scene.render.fps = 50
bpy.context.scene.render.fps_base = 1
| 32 |
421 |
#using <system.dll>
#using <system.runtime.remoting.dll>
#using "service.dll"
using namespace System;
using namespace System::Collections;
using namespace System::IO;
using namespace System::Runtime::Remoting;
using namespace System::Runtime::Remoting::Channels;
using namespace System::Runtime::Remoting::... | 383 |
1,144 | package de.metas.ui.web.window.descriptor;
import com.google.common.base.MoreObjects;
import com.google.common.collect.ImmutableSet;
import de.metas.ui.web.window.datatypes.LookupValue;
import de.metas.ui.web.window.datatypes.LookupValuesList;
import de.metas.ui.web.window.datatypes.LookupValuesPage;
import de.metas.u... | 1,611 |
742 | package org.support.project.web.entity;
import org.support.project.di.Container;
import org.support.project.di.DI;
import org.support.project.di.Instance;
import org.support.project.web.entity.gen.GenSystemAttributesEntity;
/**
* システム付加情報
*/
@DI(instance = Instance.Prototype)
public class SystemAttributesEntity ext... | 387 |
412 | /*******************************************************************\
Module: Symbolic Execution
Author: <NAME>, <EMAIL>
\*******************************************************************/
/// \file
/// Symbolic Execution
#include "goto_symex.h"
#include <util/std_expr.h>
void goto_symext::symex_dead(statet &s... | 894 |
1,104 | // In this header, you should import all the public headers of your framework
#import "TNSMLKitCameraView.h"
#import "TNSMLKitCameraViewDelegate.h"
//! Project version number for TNSMLKitCamera.
FOUNDATION_EXPORT double TNSMLKitCameraVersionNumber;
//! Project version string for TNSMLKitCamera.
FOUNDATION_EXPORT cons... | 107 |
1,810 | <gh_stars>1000+
# -*- coding: utf-8 -*-
"""The chain plugins manager object."""
class ChainPluginsManager(object):
"""Class that implements the chain plugins manager."""
_plugin_classes = {}
@classmethod
def deregister_plugin(cls, plugin_class):
"""Deregisters a plugin class.
The plu... | 960 |
336 | # Used by TestProxy.test_exception_in_init.
raise ValueError("Exception in __init__.py")
| 30 |
12,278 | <reponame>189569400/ClickHouse<gh_stars>1000+
// Boost.Range library
//
// Copyright <NAME> 2003-2004.
// Use, modification and distribution is subject to the Boost Software
// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
// For more information... | 521 |
12,278 | /*
* Copyright <NAME> 2007 - 2015.
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE_1_0.txt or copy at
* http://www.boost.org/LICENSE_1_0.txt)
*/
/*!
* \file sink_init_helpers.hpp
* \author <NAME>
* \date 14.03.2009
*
* \brief This header ... | 1,896 |
5,168 | <filename>dnn/src/aarch64/conv_bias/opr_impl.h
/**
* \file dnn/src/aarch64/conv_bias/opr_impl.h
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* Unless required by applicable law or agreed to in writing,
* software dist... | 565 |
637 | <filename>app-framework/src/main/java/com/unclezs/novel/app/framework/util/ImageLoader.java
package com.unclezs.novel.app.framework.util;
import cn.hutool.cache.CacheUtil;
import cn.hutool.cache.impl.TimedCache;
import cn.hutool.core.io.FileUtil;
import cn.hutool.core.util.URLUtil;
import com.unclezs.novel.analyzer.ut... | 1,293 |
466 | #include "BaseShader.h"
#include <iostream>
#include <fstream>
#include <sstream>
BaseShader::BaseShader(const char * shaderPath)
{
path = std::string(shaderPath);
std::string shaderCode = loadShaderFromFile(shaderPath);
const char * shaderString = shaderCode.c_str();
shadType = getShaderType(shaderPath);
shad ... | 1,204 |
771 | {
"name": "RegExr",
"url": "https://regexr.com/",
"desc": "Learn, build, & test Regular Expressions",
"tags": [
"Regular Expressions"
],
"maintainers": [
"gskinner"
],
"addedAt": "2019-12-29"
}
| 96 |
352 | <filename>core/src/main/java/com/crawljax/condition/eventablecondition/package-info.java
/**
* Eventable condition utils.
*/
package com.crawljax.condition.eventablecondition; | 56 |
2,542 | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#include "stdafx.h"
using nam... | 52,340 |
524 | from collections import namedtuple
RGB = namedtuple("RGB", "red, green, blue")
COLORS = {
"red": RGB(255, 0, 0),
"orange-deep": RGB(255, 40, 0),
"orange": RGB(255, 120, 0),
"yellow": RGB(255, 200, 0),
"yellow-acid": RGB(160, 255, 0),
"green": RGB(0, 255, 0),
"green-forest": RGB(34, 139, 34... | 1,494 |
504 | <reponame>steakknife/pcgeos
/* crypto/asn1/a_object.c */
/* Copyright (C) 1995-1998 <NAME> (<EMAIL>)
* All rights reserved.
*
* This package is an SSL implementation written
* by <NAME> (<EMAIL>).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commerci... | 4,603 |
491 | <gh_stars>100-1000
import time
import os
from tape.models.file_utils import url_to_filename, get_cache, get_etag
from tape import ProteinBertModel
from tape import TAPETokenizer
from tape.models.modeling_bert import BERT_PRETRAINED_MODEL_ARCHIVE_MAP
import torch
def test_forcedownload():
model = ProteinBertModel.... | 393 |
568 | <gh_stars>100-1000
package com.hfad.bitsandpizzas;
import android.os.Bundle;
import android.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
public class TopFragment extends Fragment {
@Override
public View onCreateView(LayoutInflater inflater, ViewGr... | 180 |
2,963 | //
// FunctionParser.hpp
// EmojicodeCompiler
//
// Created by <NAME> on 28/07/2017.
// Copyright © 2017 <NAME>. All rights reserved.
//
#ifndef FunctionParser_hpp
#define FunctionParser_hpp
#include <utility>
#include "AST/ASTStatements.hpp"
#include "AbstractParser.hpp"
#include "Lex/TokenStream.hpp"
#include "... | 1,021 |
521 | /* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (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.mozilla.org/MPL/
*
... | 14,451 |
365 | <gh_stars>100-1000
package io.eventuate.examples.tram.sagas.ordersandcustomers.apigateway.proxies;
public class UnknownProxyException extends RuntimeException{
public UnknownProxyException(String message) {
super(message);
}
}
| 74 |
1,172 | <reponame>michaelfig/caja<gh_stars>1000+
// Copyright (C) 2009 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unle... | 2,716 |
903 | /*
* 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,590 |
435 | <gh_stars>100-1000
{
"copyright_text": "Standard YouTube License",
"description": "http://pycon.lt/2017.html",
"duration": 544,
"language": "eng",
"recorded": "2017-05-13T14:15:00+03:00",
"related_urls": [
{
"label": "schedule",
"url": "http://pycon.lt/2017.html"
}
],
"speakers": [
... | 280 |
1,338 | <reponame>Yn0ga/haiku
/*
* Copyright 2000, <NAME>. All rights reserved.
* Distributed under the terms of the MIT License.
*/
//Useful until be gets around to making these sorts of things
//globals akin to be_plain_font, etc.
#ifndef _COLORS_H_
#define _COLORS_H_
#include <GraphicsDefs.h>
// ui_color(B_PANEL_BACK... | 726 |
453 | <filename>kernel/kernel/multitasking/tasks/record.h<gh_stars>100-1000
#ifndef SCHED_RECORD_H
#define SCHED_RECORD_H
#include "task.h"
#include <stdint.h>
#define MAX_TASK_HISTORY 256
#define MAX_PROC_NAME 64
typedef struct task_history {
char history[MAX_TASK_HISTORY][MAX_PROC_NAME];
int vals[MAX_TASK_HISTORY];
... | 207 |
345 | <gh_stars>100-1000
import unittest
import programytest.externals as Externals
from programy.bot import Bot
from programy.config.bot.bot import BotConfiguration
from programy.nlp.translate.extension import TranslateExtension
from programytest.client import TestClient
class TranslateExtensionTests(unittest.TestCase):
... | 1,514 |
350 | <reponame>qweraqq/apm-agent-python<filename>tests/client/span_compression_tests.py
# BSD 3-Clause License
#
# Copyright (c) 2021, Elasticsearch BV
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are m... | 4,844 |
829 | namespace global_configuration {
const int INT_BIT = 64;
} | 18 |
1,006 | /****************************************************************************
* arch/hc/src/m9s12/m9s12_gpioirq.c
*
* 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... | 3,040 |
3,212 | <filename>nifi-commons/nifi-record-path/src/main/java/org/apache/nifi/record/path/util/FieldValueLogicalPathBuilder.java
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding cop... | 2,005 |
453 | #ifndef FS_NODE_H
#define FS_NODE_H
#include <std/array_m.h>
typedef enum fs_node_type {
FS_NODE_TYPE_BASE = 0,
FS_NODE_TYPE_ROOT = 1,
FS_NODE_TYPE_INITRD = 2
} fs_node_type_t;
typedef struct fs_base_node {
// Common fields
fs_node_type_t type;
char name[64];
struct fs_base_node* parent;
... | 189 |
586 | # -*- coding: utf-8 -*-
import pytest
from validators import ValidationFailure
from validators.i18n.es import es_cif, es_doi, es_nie, es_nif
@pytest.mark.parametrize(('value',), [
('B25162520',),
('U4839822F',),
('B96817697',),
('P7067074J',),
('Q7899705C',),
('C75098681',),
('G76061860',... | 1,051 |
320 | <reponame>strangestroad/interview-techdev-guide
import java.util.*;
import java.lang.*;
class AllPairShortestPath {
private final static int INF = 99999, V = 4;
private void floydWarshall(int[][] graph) {
int[][] dist = new int[V][V];
int i, j, k;
for (i = 0; i < V; i++)
f... | 884 |
930 | <reponame>avinashkranjan/PraticalPythonProjects<gh_stars>100-1000
# Linkedin My_Connections Scrapper
# Written by XZANATOL
from selenium.webdriver.common.action_chains import ActionChains
from optparse import OptionParser
from selenium import webdriver
import pandas as pd
import time
import sys
import re
pattern_name ... | 3,367 |
945 | <gh_stars>100-1000
// This is core/vnl/algo/tests/test_functions.cxx
#include <iostream>
#include <iomanip>
#include <cmath>
#include "testlib/testlib_test.h"
//:
// \file
//
// Test function results for chi-squared cumulative density function.
// The values are those calculated from this function on solaris, and
// ag... | 7,898 |
1,799 | // 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... | 2,849 |
399 | <reponame>douggie/cointrader<filename>src/test/java/org/cryptocoinpartners/module/FeeUtilTest.java
package org.cryptocoinpartners.module;
import static org.junit.Assert.assertEquals;
import java.math.BigDecimal;
import org.cryptocoinpartners.enumeration.ExecutionInstruction;
import org.cryptocoinpartners.enumeration... | 3,153 |
511 | <filename>framework/src/bluetooth/adaptation/include/bt-adaptation-device.h
/*
* Copyright (c) 2011 Samsung Electronics Co., Ltd 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 Li... | 5,478 |
963 | <reponame>brandstaetter/high-performance-java-persistence
package com.vladmihalcea.book.hpjp.hibernate.identifier;
import com.vladmihalcea.book.hpjp.util.AbstractTest;
import org.hibernate.Session;
import org.hibernate.annotations.GenericGenerator;
import org.junit.Test;
import javax.persistence.*;
import java.sql.St... | 851 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.