max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
1,311 | // SPDX-FileCopyrightText: 2021 <NAME>
// SPDX-License-Identifier: MIT
#include <Jolt.h>
#include <Geometry/AABox.h>
#include <Geometry/OrientedBox.h>
namespace JPH {
bool OrientedBox::Overlaps(const AABox &inBox, float inEpsilon) const
{
// Taken from: Real Time Collision Detection - <NAME>
// Chapter 4.4.1, pag... | 3,615 |
712 | # Copyright (C) 2018 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 1,333 |
352 | // =========================================================================
// Copyright 2020 T-Mobile, US
//
// 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/l... | 879 |
419 | <gh_stars>100-1000
{
"ExportFieldValues": "Feldwerte exportieren",
"AllObjectsWillBeExported": "Alle Objekte des ausgewählten Templates werden exportiert.",
"OnlyObjectsUnderneathFolderPrefix": "Alle Objekte des ausgewählten Templates inner- und unterhalb des Ordners ",
"OnlyObjectsUnderneath... | 354 |
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... | 9,062 |
343 | #!python
# Copyright 2012 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... | 393 |
945 | /*=========================================================================
*
* Copyright NumFOCUS
*
* 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.or... | 5,755 |
778 | <filename>modUtil/src/main/java/org/aion/util/InternalTransactionUtil.java<gh_stars>100-1000
package org.aion.util;
import java.util.ArrayList;
import java.util.List;
import org.aion.types.InternalTransaction;
public class InternalTransactionUtil {
/**
* Method that creates an identical copy of the original... | 812 |
7,482 | /*
* Copyright (c) 2020-2021, Bluetrum Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2021-01-07 greedyhao first version
*/
#ifndef __DRV_I2C__
#define __DRV_I2C__
#include <rtthread.h>
#include <rthw.h>
#include <rtdevice.h>
/... | 1,421 |
794 | package github.tornaco.thanox.android.server.patch.framework;
public interface IThanoxHook {
void installHooks(boolean isSystemServer);
}
| 46 |
3,667 | <reponame>jsoberg/andOTP
/*
* Copyright (C) 2017-2020 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, cop... | 2,036 |
739 | #include "Crinkler.h"
#include "../Compressor/Compressor.h"
#include "Fix.h"
#include <set>
#include <ctime>
#include <ppl.h>
#include "HunkList.h"
#include "Hunk.h"
#include "CoffObjectLoader.h"
#include "CoffLibraryLoader.h"
#include "ImportHandler.h"
#include "Log.h"
#include "HeuristicHunkSorter.h"
... | 22,716 |
3,783 | <reponame>sachinshrestha483/AlgoDS<filename>src/toptal/Second.java
package toptal;
import java.math.BigInteger;
import java.util.Arrays;
import java.util.stream.Collectors;
/**
* Why Did you create this class? what does it do?
*/
public class Second {
public static void main(String[] args) {
System.out.... | 437 |
2,138 | <filename>3d/scripts/generate_combined_front_panel.py<gh_stars>1000+
#!/usr/bin/env python3
# Copyright 2021 <NAME> and the splitflap 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 th... | 1,700 |
406 | import os
import errno
import string
import random
def mkdir_p(path):
"like `mkdir -p`"
try:
os.makedirs(path)
except OSError as exc:
if exc.errno == errno.EEXIST and os.path.isdir(path):
pass
else:
raise
def random_string(n):
s = string.ascii_letters
... | 198 |
1,362 | <reponame>BrimmingDev/twilio-python<filename>tests/integration/numbers/v2/regulatory_compliance/test_regulation.py
# coding=utf-8
r"""
This code was generated by
\ / _ _ _| _ _
| (_)\/(_)(_|\/| |(/_ v1.0.0
/ /
"""
from tests import IntegrationTestCase
from tests.holodeck import Request
from twilio... | 4,664 |
1,010 | /*
* Copyright (c) 2008-2021, Hazelcast, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required ... | 1,222 |
335 | {
"word": "Braunschweiger",
"definitions": [
"A variety of smoked liver sausage."
],
"parts-of-speech": "Noun"
} | 62 |
2,326 | /**
* Copyright (c) 2016-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE_render file in the root directory of this subproject. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
#pragma onc... | 2,775 |
4,036 | <reponame>timoles/codeql<filename>python/ql/test/library-tests/PointsTo/regressions/wrong/module-imports/conflict-stdlib/code-invalid-package-name/cmd.py
foo = "Foo"
print("my own cmd imported")
| 71 |
511 | #ifndef __CONFIG_H__
#define __CONFIG_H__
//!< TizenRT Macro
#define OK 0
//!< Features
#define CONFIG_UI
#define CONFIG_UI_DISPLAY_RGB888
#define CONFIG_UI_ENABLE_TOUCH
#define CONFIG_UI_ENABLE_EMOJI
//!< Values
#define CONFIG_UI_TOUCH_THRESHOLD (10)
#define CONFIG_UI_DISPLAY_WIDTH (360)
#define CONFIG_UI... | 246 |
473 | <filename>third-party/qemu-orp/hw/openrisc/ul/ul576_0.h
/*
* AUTOGENERATED July 2014
Copyright 2015, 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.apa... | 1,329 |
5,168 | <reponame>Olalaye/MegEngine
/**
* \file dnn/test/common/conv_pooling.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 distributed under the License... | 341 |
653 | <gh_stars>100-1000
public class MaxMinArray {
public static void main(String [] args){
int vetor[] = {9, 0, 4, 2, 3, 8, 7, 1, 6, 5};
MaxMinRecursivo(vetor, vetor[0], vetor[0], 0);
System.out.println("---------");
MaxMinIterativo(vetor);
}
public static void MaxMinRecursivo(int vetor[], int max, int min, ... | 441 |
348 | {"nom":"Lachapelle-sous-Gerberoy","circ":"2ème circonscription","dpt":"Oise","inscrits":107,"abs":35,"votants":72,"blancs":8,"nuls":3,"exp":61,"res":[{"nuance":"REM","nom":"<NAME>","voix":37},{"nuance":"FN","nom":"<NAME>","voix":24}]} | 96 |
1,444 | <reponame>J-VOL/mage<gh_stars>1000+
package mage.cards.m;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.AttacksTriggeredAbility;
import mage.abilities.effects.common.UntapTargetEffect;
import mage.abilities.keyword.CrewAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetIn... | 661 |
493 | <reponame>SirArep/ecal<filename>app/rec/rec_server_core/src/recorder/local_recorder.h
/* ========================= eCAL LICENSE =================================
*
* Copyright (C) 2016 - 2019 Continental Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file exc... | 1,196 |
716 | /*
* 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
*
*/
#include "mth_intrinsics.h"
#if defined(TARGET_LINUX_POWER)
#include <altivec.h>
#elif defined(TARGET_ARM64... | 1,258 |
1,013 | /*!
@authors <NAME> (<EMAIL>)
@date 2014-2020
@copyright BSD-3-Clause
*/
#include <gtest/gtest.h>
#include <pyclustering/container/adjacency.hpp>
#include <algorithm>
using namespace pyclustering::container;
void template_set_connection(adjacency_collection & collection) {
for (size_... | 3,983 |
384 | <reponame>AlanCheen/PracticeDemo
package com.example.concurrent;
/**
* Created by 程序亦非猿 on 15/10/24.
*/
public class WaitNotify {
public int money = 0;
public void buy() {
synchronized (this) {
try {
System.out.println("try to buy Thread:"+Thread.currentThread().getName(... | 1,709 |
1,336 | <filename>demo/demo-schema/src/main/java/org/apache/servicecomb/demo/server/WrappedAbstractModel.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.
... | 511 |
487 | /*
* Copyright 2012-2014 <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 applicable law or agreed to in w... | 734 |
348 | <gh_stars>100-1000
{"nom":"Saint-Mexant","circ":"1ère circonscription","dpt":"Corrèze","inscrits":1080,"abs":384,"votants":696,"blancs":21,"nuls":6,"exp":669,"res":[{"nuance":"SOC","nom":"M. <NAME>","voix":183},{"nuance":"REM","nom":"<NAME>","voix":165},{"nuance":"COM","nom":"<NAME>","voix":131},{"nuance":"FI","nom":"<... | 278 |
882 | <reponame>gigliovale/h2o<filename>h2o-samples/src/main/java/samples/expert/Frames.java
package samples.expert;
import water.Futures;
import water.Job;
import water.Key;
import water.UKV;
import water.deploy.VM;
import water.fvec.*;
import java.io.File;
/**
* Demonstration of H2O's Frame API, the distributed table-l... | 834 |
992 | <reponame>adinkwok/android_frameworks_support
/*
* Copyright (C) 2017 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/lic... | 3,058 |
1,875 | /*
* Copyright 2019 konsoletyper.
*
* 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... | 382 |
1,208 | <gh_stars>1000+
//
// TLEmojiKeyboard+EmojiGroupControl.h
// TLChat
//
// Created by 李伯坤 on 16/3/17.
// Copyright © 2016年 李伯坤. All rights reserved.
//
#import "TLEmojiKeyboard.h"
@interface TLEmojiKeyboard (EmojiGroupControl) <TLEmojiGroupControlDelegate>
@end
| 122 |
340 | <reponame>the-moisrex/eve<filename>include/eve/module/special/regular/dawson.hpp
//==================================================================================================
/*
EVE - Expressive Vector Engine
Copyright : EVE Contributors & Maintainers
SPDX-License-Identifier: MIT
*/
//=====================... | 888 |
3,710 | <gh_stars>1000+
#pragma once
#ifndef OPTIMIZE_FOR_LP64_INCLUDED
#define OPTIMIZE_FOR_LP64_INCLUDED
/* ========================================================================= */
/*
*****************************************************************************
* OSSERVAZIONI ... | 2,358 |
309 | <filename>src/Cxx/Visualization/TransformActor.cxx
#include <vtkSmartPointer.h>
#include <vtkConeSource.h>
#include <vtkTransform.h>
#include <vtkPolyData.h>
#include <vtkPolyDataMapper.h>
#include <vtkActor.h>
#include <vtkRenderWindow.h>
#include <vtkRenderer.h>
#include <vtkRenderWindowInteractor.h>
int main(int, c... | 774 |
839 | <reponame>cjh0613/baserow
from baserow.api.exceptions import UnknownFieldProvided
class UnknownFieldRaisesExceptionSerializerMixin:
"""
Mixin to a DRF serializer class to raise an exception if data with unknown fields
is provided to the serializer.
"""
def validate(self, data):
if hasattr... | 305 |
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... | 187 |
1,755 | #!/usr/bin/env python
import vtk
from vtk.util.misc import vtkGetDataRoot
VTK_DATA_ROOT = vtkGetDataRoot()
import sys
# create pipeline - structured grid
#
pl3d = vtk.vtkMultiBlockPLOT3DReader()
pl3d.SetXYZFileName("" + str(VTK_DATA_ROOT) + "/Data/combxyz.bin")
pl3d.SetQFileName("" + str(VTK_DATA_ROOT) + "/Data/combq.... | 2,623 |
2,053 | #include "mkv-reader.h"
#include "mov-format.h"
#include "mov-writer.h"
#include "webm-vpx.h"
#include "rtsp-payloads.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
static uint8_t s_buffer[4 * 1024 * 1024];
static int s_audio_track;
static int s_video_track;
static int s_subtitle_tra... | 1,978 |
1,350 | <reponame>billwert/azure-sdk-for-java<gh_stars>1000+
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.security.models;
import com.azure.core.annotation.Fluent;
import com.azure.... | 731 |
586 | entryPoints = [
"base",
"button",
"card",
"checkbox",
"chips",
"data-table",
"dialog",
"dom",
"drawer",
"elevation",
"fab",
"floating-label",
"form-field",
"line-ripple",
"linear-progress",
"list",
"menu",
"menu-surface",
"notched-outline",
... | 545 |
688 | <reponame>keremcubuk/react-native-electrode-bridge<filename>android/electrode-reactnative-bridge/src/main/java/com/walmartlabs/electrode/reactnative/bridge/ElectrodeBridgeRequest.java
/*
* Copyright 2017 WalmartLabs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file exce... | 1,445 |
601 | <reponame>Harshagracy/sp-dev-fx-webparts<gh_stars>100-1000
{
"$schema": "https://developer.microsoft.com/json-schemas/spfx-build/config.2.0.schema.json",
"version": "2.0",
"bundles": {
"enhanced-list-formatting-web-part": {
"components": [
{
"entrypoint": "./lib/webparts/enhancedListFo... | 343 |
1,162 | package org.nesc.ec.bigdata.model.vo;
import java.util.Objects;
/**
* @author lg99
*/
public class TopicMetricVo {
private long clusterId;
private String date;
private String topic;
private long byteInMetric;
private long byteOutMetric;
private long fileSize;
@Override
public boolea... | 958 |
472 | <reponame>ghostnumber7/srt-live-server
/**
* The MIT License (MIT)
*
* Copyright (c) 2019-2020 Edward.Wu
*
* 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, includi... | 647 |
381 | <filename>example/waimai/src/main/java/com/grouter/demo/other/service/UserLoginTask.java<gh_stars>100-1000
package com.grouter.demo.other.service;
import android.hardware.SensorEvent;
import com.grouter.GRouterTask;
import com.grouter.RouterField;
import com.grouter.RouterTask;
import java.util.Map;
@RouterTask(val... | 232 |
1,755 | <gh_stars>1000+
#include "vtkHoverWidget.h"
#include <cstdlib>
#include <iostream>
#include "WidgetTestingMacros.h"
int vtkHoverWidgetTest1(int, char*[])
{
vtkSmartPointer<vtkHoverWidget> node1 = vtkSmartPointer<vtkHoverWidget>::New();
EXERCISE_BASIC_HOVER_METHODS(node1);
return EXIT_SUCCESS;
}
| 131 |
1,338 | /*
* PackBits.h
* Copyright 1999-2000 Y.Takagi. All Rights Reserved.
*/
#ifndef __PACKBITS_H
#define __PACKBITS_H
int pack_bits_size(const unsigned char* source, int size);
int pack_bits(unsigned char* destination, const unsigned char* source,
int size);
#endif /* __PACKBITS_H */
| 106 |
14,668 | // Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef ASH_QUICK_PAIR_FEATURE_STATUS_TRACKER_FAST_PAIR_ENABLED_PROVIDER_H_
#define ASH_QUICK_PAIR_FEATURE_STATUS_TRACKER_FAST_PAIR_ENABLED_PROVIDER_H_
#... | 793 |
1,178 | // Copyright 2020 Makani Technologies LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ... | 339 |
360 | """
Developed by <NAME> in pybullet-planning repository (https://github.com/caelan/pybullet-planning)
and adapted by iGibson team.
"""
from random import shuffle
from itertools import islice
import time
INF = float('inf')
RRT_ITERATIONS = 20
RRT_RESTARTS = 2
RRT_SMOOTHING = 20
def irange(start, stop=None, step=1): ... | 589 |
4,901 | /*
* 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 u... | 3,078 |
8,805 | /*!
@file
Forward declares `boost::hana::default_` and `boost::hana::is_default`.
@copyright <NAME> 2013-2016
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
#ifndef BOOST_HANA_FWD_CORE_DEFAULT_HPP
#define BOOST_HA... | 711 |
453 | <filename>docs/docsource/scaldoc/resources.py
# coding: utf-8
"""Helpers to get basic resources (covers, fonts, …)"""
import glob
import os
import string
import scaldoc.paths as paths
def get_cover(name):
"""Return the absolute path to the specified cover (RING, S3C, …)."""
return os.path.join(paths.SHARED... | 593 |
3,345 | #ifndef __EEPROM_H
#define __EEPROM_H
/*
Author: <NAME>
WebSite: http://www.github.com/NimaLTD
Instagram: http://instagram.com/github.NimaLTD
Youtube: https://www.youtube.com/channel/UCUhY7qY1klJm1d2kulr9ckw
Version: 2.0.1
(2.0.1)
Change function name to ee_commit().
Reversion Hi... | 359 |
1,027 | /*
* 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 ... | 683 |
599 | <gh_stars>100-1000
package com.jlmd.android.newfilmsmvp.mvp.view;
import com.jlmd.android.newfilmsmvp.domain.model.MovieDetails;
/**
* @author jlmd
*/
public interface MovieDetailsView extends View {
void showLoading();
void hideLoading();
void renderMovie(final MovieDetails movieDetails);
}
| 99 |
595 | from django.http import HttpResponseRedirect
from django.template.response import TemplateResponse
from django.contrib.auth import authenticate, login as auth_login, logout as auth_logout;
from rest_framework.permissions import BasePermission, SAFE_METHODS
def login(request):
redirect_to = request.GET.get("next",... | 456 |
435 | <gh_stars>100-1000
{
"description": "Large organizations have traditionally used languages such as C ++, .NET\nand Java development for enterprise applications. \"Scripting\" languages\nlike Python were considered risky. Not sufficiently robust with the lack\nof the tools around them (framework). Times have, however,... | 318 |
312 |
# !/usr/bin/env/python3
# Copyright (c) Facebook, Inc. and its affiliates.
# 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... | 7,838 |
4,879 | <filename>drape_frontend/screen_animations.hpp<gh_stars>1000+
#pragma once
#include "drape_frontend/animation/animation.hpp"
#include "drape_frontend/screen_operations.hpp"
#include <string>
namespace df
{
extern std::string const kPrettyMoveAnim;
extern std::string const kPrettyFollowAnim;
extern std::string const... | 823 |
440 | package com.yb.socket.push.mqtt;
/**
* @author <EMAIL>
* @date 2019/2/26 14:58
*/
public class ChannelDO {
public String channelId;
public String clientId;
public String topic;
public int createTime;
public String getChannelId() {
return channelId;
}
public void setChannelId(S... | 333 |
794 | import csv,pprint
from .layers import Base
def get_human_readable(num):
units=['','K','M','G','T','P']
idx=0
while .001*num>1:
num=.001*num
idx+=1
if idx>=len(units):
return '%.3e'%num
return '%.3f'%num+units[idx]
def save_csv(layers,csv_save_path='/tmp/analyse.csv',
... | 1,916 |
1,405 | package QQPIM;
import com.qq.taf.jce.JceDisplayer;
import com.qq.taf.jce.JceInputStream;
import com.qq.taf.jce.JceOutputStream;
import com.qq.taf.jce.JceStruct;
import com.qq.taf.jce.JceUtil;
public final class UninstallInfo extends JceStruct implements Cloneable {
static final /* synthetic */ boolean a = (!Unins... | 1,177 |
418 | //
// BFProductDetailViewController.h
// OpenShop
//
// Created by <NAME>
// Copyright (c) 2015 Business Factory. All rights reserved.
//
#import "BFTableViewController.h"
#import "BFProductDetailHeaderView.h"
#import "BFWishlistItem.h"
NS_ASSUME_NONNULL_BEGIN
/**
* Protocol which informs about product variant ... | 407 |
1,627 | package com.cdkpatterns;
import software.amazon.awscdk.core.CfnOutput;
import software.amazon.awscdk.core.Construct;
import software.amazon.awscdk.core.Stack;
import software.amazon.awscdk.core.StackProps;
import software.amazon.awscdk.services.apigatewayv2.HttpApi;
import software.amazon.awscdk.services.apigatewayv2.... | 1,197 |
483 | package org.dizitart.no2.migration;
import org.dizitart.no2.common.Fields;
import org.dizitart.no2.common.tuples.Pair;
import org.dizitart.no2.common.tuples.Quartet;
import org.dizitart.no2.common.tuples.Triplet;
import java.util.List;
/**
* Represents a migration instruction set for {@link org.dizitart.no2.reposit... | 3,141 |
15,193 | #-----------------------------------------------------------------------------
# Copyright (c) 2012 - 2021, Anaconda, Inc., and Bokeh Contributors.
# All rights reserved.
#
# The full license is in the file LICENSE.txt, distributed with this software.
#-------------------------------------------------------------------... | 1,802 |
504 | <reponame>mumtozvalijonov/fastapi_contrib
from fastapi import FastAPI
from jaeger_client import Tracer
from fastapi_contrib.tracing.utils import setup_opentracing
def test_setup_opentracing():
_app = FastAPI()
setup_opentracing(_app)
assert isinstance(_app.tracer, Tracer)
| 108 |
1,422 | <gh_stars>1000+
/*
* Copyright (C) 2012 The Flogger 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 app... | 667 |
2,209 | from .embedding import Embedding
from .embedding import load_from_file
| 20 |
1,253 | # -*- coding: utf-8 -*-
"""Output related functions and classes for testing."""
from plaso.engine import knowledge_base
from plaso.output import mediator
from tests import test_lib as shared_test_lib
class TestConfig(object):
"""Test configuration."""
class OutputModuleTestCase(shared_test_lib.BaseTestCase):
... | 446 |
11,433 | import pytest
import sqlite3
from unittest.mock import call, Mock
from allennlp.common.testing import AllenNlpTestCase
from scripts.ai2_internal.resume_daemon import (
BeakerStatus,
create_table,
handler,
logger,
resume,
start_autoresume,
)
# Don't spam the log in tests.
logger.removeHandler(... | 1,692 |
2,381 | <gh_stars>1000+
package com.github.dockerjava.cmd;
import com.github.dockerjava.api.command.CreateContainerResponse;
import com.github.dockerjava.api.exception.InternalServerErrorException;
import com.github.dockerjava.api.exception.NotFoundException;
import com.github.dockerjava.utils.ContainerUtils;
import org.junit... | 1,184 |
524 | {
"title": "networkconnectivity",
"defaultService": "networkconnectivity\/readme",
"services": [
{
"title": "Overview",
"type": "networkconnectivity\/readme"
},
{
"title": "HubServiceClient (v1)",
"type": "networkconnectivity\/v1\/hubse... | 190 |
37,508 | /**************************************************************************************************
* *
* This file is part of BLASFEO. *
* ... | 4,390 |
348 | <reponame>chamberone/Leaflet.PixiOverlay<gh_stars>100-1000
{"nom":"Labarthe","circ":"1ère circonscription","dpt":"Gers","inscrits":115,"abs":55,"votants":60,"blancs":4,"nuls":2,"exp":54,"res":[{"nuance":"REM","nom":"<NAME>","voix":32},{"nuance":"SOC","nom":"<NAME>","voix":22}]} | 115 |
1,336 | <gh_stars>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 licenses this file to You under the Apache License, Version 2.0
* (the "Lic... | 1,356 |
2,023 | <reponame>tdiprima/code
# Selective cleanup (deletion) of files (based on category and extension)
# For use by a SABnzbd+ external post-processing script
# Version: 1.05
# Date: 2009/07/19
# License: As-is; public domain
# Requirements: Python 3.1, SABnzbd+ 0.4.11
# Description: This script clean's up (deletes) files... | 566 |
450 | <reponame>LiuLeif/onnc<gh_stars>100-1000
//===- ObjectWriter.h -----------------------------------------------------===//
//
// The ONNC Project
//
// See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#ifndef ONNC_CORE_OBJECT_WRI... | 341 |
303 | # basic closure
# to write!
| 9 |
450 | /*
* 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 ... | 3,165 |
476 | <gh_stars>100-1000
time_t *msg_list[16];
int menu()
{
puts(" Message System ");
puts("---------------------");
puts("0 : Add a message");
puts("1 : Remove the message");
puts("2 : Show the message");
puts("3 : Change the timestamp");
return puts("---------------------");
}
uint64_t add()... | 1,579 |
852 | #ifndef HiJetBackground_HiFJRhoProducer_h
#define HiJetBackground_HiFJRhoProducer_h
// system include files
#include <memory>
#include <sstream>
#include <string>
#include <vector>
// user include files
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/stream/EDProducer.h"
#in... | 674 |
648 | <reponame>swrobel/fhir
{"resourceType":"ValueSet","id":"diet-type","meta":{"lastUpdated":"2015-10-24T07:41:03.495+11:00","profile":["http://hl7.org/fhir/StructureDefinition/valueset-shareable-definition"]},"text":{"status":"generated","div":"<div xmlns=\"http://www.w3.org/1999/xhtml\">\n <h2>Diet Codes</h2>\... | 819 |
634 | /*
* Copyright 2000-2013 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... | 938 |
7,137 | package io.onedev.server.web.websocket;
import javax.inject.Inject;
import javax.inject.Singleton;
import io.onedev.commons.loader.Listen;
import io.onedev.server.event.build.BuildEvent;
import io.onedev.server.model.Build;
import io.onedev.server.model.Project;
@Singleton
public class BuildEventBroadcaster {
pri... | 345 |
3,495 | /*
*
* Copyright (c) 2020 Project CHIP 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 requir... | 3,892 |
419 | <reponame>JuanluMorales/KRG
#include "AIBehavior.h"
#include "Engine/Animation/Graph/Animation_RuntimeGraph_Controller.h"
#include "Engine/Physics/Components/Component_PhysicsCharacter.h"
#include "Game/Core/Player/Components/Component_MainPlayer.h"
//-------------------------------------------------------------------... | 486 |
1,585 | /*
* Copyright (C) by Argonne National Laboratory
* See COPYRIGHT in top-level directory
*/
#ifndef MPL_TIMER_MACH_ABSOLUTE_TIME_H_INCLUDED
#define MPL_TIMER_MACH_ABSOLUTE_TIME_H_INCLUDED
#define MPLI_WTIME_IS_A_FUNCTION
#include <mach/mach_time.h>
#endif /* MPL_TIMER_MACH_ABSOLUTE_TIME_H_INCLUDED */
| 143 |
2,860 | <filename>backend/api/python_http_client/test/test_api_periodic_schedule.py<gh_stars>1000+
# coding: utf-8
"""
Kubeflow Pipelines API
This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition.
Contact: <EMAIL>
Generated by: https://openapi... | 751 |
1,443 | {
"copyright": "<NAME>",
"url": "http://manparvesh.com",
"email": "<EMAIL>",
"theme": "material-teal",
"gravatar": true
}
| 58 |
363 | <gh_stars>100-1000
package com.ess.filepicker.widget;
import android.graphics.Rect;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.StaggeredGridLayoutManager;
import android.view.View;
import com.ess.filepicker.util.UiUtils;
/**
* ... | 1,935 |
342 | <filename>chaosblade-exec-plugin/chaosblade-exec-plugin-servlet/src/main/java/com/alibaba/chaosblade/exec/plugin/servlet/code/HttpCodeFlagSpec.java<gh_stars>100-1000
package com.alibaba.chaosblade.exec.plugin.servlet.code;
import com.alibaba.chaosblade.exec.common.model.FlagSpec;
/**
* @author yefei
*/
public class... | 258 |
310 | /*!
* This file is part of GPBoost a C++ library for combining
* boosting with Gaussian process and mixed effects models
*
* Copyright (c) 2020 <NAME>. All rights reserved.
*
* Licensed under the Apache License Version 2.0 See LICENSE file in the project root for license information.
*/
#ifndef GPBOOST_METRIC_RANDOM_EF... | 1,157 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.