max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
341
"""Unit tests for the application.""" from flask import current_app from flask import request from deepchat import create_app, db from deepchat.models import User, Conversation, Chatbot, Turn import sys import unittest import sqlite3 import sqlalchemy class TestDatabase(unittest.TestCase): def setUp(self): ...
283
463
# pylint: skip-file """disable-all is usable as an inline option""" # no warning should be issued try: import this except: pass
46
639
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. #pragma once #include <set> #include <sqlite3.h> #include "nnfusion/common/common.hpp" namespace nnfusion { namespace cache { // presently only kernel cache database supported // Todo: integrate the interfaces of profi...
1,259
3,227
<filename>Three/include/CGAL/Three/Scene_zoomable_item_interface.h // Copyright (c) 2009,2010,2012,2015 GeometryFactory Sarl (France) // All rights reserved. // // This file is part of CGAL (www.cgal.org). // // $URL$ // $Id$ // SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-Commercial // // Author(s) : <...
380
5,169
{ "name": "FluxMobileStaging", "version": "0.2.0", "summary": "Integrate FluxPanda into your mobile app", "description": "More details at https://www.fluxpanda.com", "homepage": "https://github.com/PrototypeInteractive/stream-shop-mobile-sdk-ios", "license": { "type": "All rights reserved", "file": ...
250
868
// Copyright (C) 2020 THL A29 Limited, a Tencent company. All rights reserved. // // Licensed under the BSD 3-Clause License (the "License"); you may not use this // file except in compliance with the License. You may obtain a copy of the // License at // // https://opensource.org/licenses/BSD-3-Clause // // Unless req...
414
780
package com.codeborne.selenide.commands; import com.codeborne.selenide.SelenideElement; import com.codeborne.selenide.impl.WebElementSource; import org.junit.jupiter.api.Test; import org.openqa.selenium.WebElement; import static org.assertj.core.api.Assertions.assertThat; import static org.mockito.Mockito.mock; impor...
301
359
<gh_stars>100-1000 /* * Copyright (c) 2016. <NAME> <<EMAIL>> * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ...
428
769
// Copyright 2017 ETH Zurich and University of Bologna. // Copyright and related rights are licensed under the Solderpad Hardware // License, Version 0.51 (the “License”); you may not use this file except in // compliance with the License. You may obtain a copy of the License at // http://solderpad.org/licenses/SHL-0....
379
14,668
<reponame>chromium/chromium // 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_COMPONENTS_ARC_MEMORY_ARC_MEMORY_BRIDGE_H_ #define ASH_COMPONENTS_ARC_MEMORY_ARC_MEMORY_BRIDGE_H_ #include "ash/c...
533
480
/* * Copyright [2013-2021], Alibaba Group Holding Limited * * 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,215
1,546
<reponame>skylerpfli/libpag<gh_stars>1000+ ///////////////////////////////////////////////////////////////////////////////////////////////// // // Tencent is pleased to support the open source community by making libpag available. // // Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. // //...
1,148
310
<filename>gear/hardware/s/superego.json { "name": "SUPEREGO", "description": "An effects synth.", "url": "https://www.ehx.com/products/superego" }
64
360
<filename>cfripper/rules/sns_topic_policy.py __all__ = ["SNSTopicPolicyNotPrincipalRule", "SNSTopicDangerousPolicyActionsRule"] from typing import Dict, Optional from pycfmodel.model.resources.sns_topic_policy import SNSTopicPolicy from cfripper.model.enums import RuleGranularity, RuleRisk from cfripper.model.result...
1,551
342
<reponame>None1637/osu-droid-1 package ru.nsu.ccfit.zuev.osu.helper; import org.anddev.andengine.engine.camera.Camera; import org.anddev.andengine.entity.sprite.Sprite; import org.anddev.andengine.opengl.texture.region.TextureRegion; import javax.microedition.khronos.opengles.GL10; import ru.nsu.ccfit.zuev.osu.Resou...
2,158
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 ...
321
736
/* * Copyright 2021 java-diff-utils. * * 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...
282
12,315
# -*- coding: utf-8 -*- """ Created on Sat May 30 13:24:01 2015 @author: rlabbe """ # -*- coding: utf-8 -*- """ Created on Thu May 28 20:23:57 2015 @author: rlabbe """ from math import cos, sin, sqrt, atan2, tan import matplotlib.pyplot as plt import numpy as np from numpy import array, dot from numpy.random impor...
2,641
3,940
//{{NO_DEPENDENCIES}} // Microsoft Visual C++ generated include file. // Used by ClassicIEDLL.rc // #define IDI_APPICON 1 #define IDR_CLASSICIEDLL 101 #define IDR_CLASSICIEBHO 102 #define IDB_BITMAP1 201 #define IDB_GLOW 201 #d...
1,342
2,421
<reponame>OpenHFT/Chronicle-Map package net.openhft.chronicle.map.fromdocs.acid.genesis; import net.openhft.chronicle.map.ChronicleMap; import net.openhft.chronicle.map.fromdocs.BondVOInterface; import net.openhft.chronicle.map.fromdocs.acid.ChronicleAcidIsolation; import java.util.Scanner; import java.util.concurren...
2,234
653
<reponame>mkinsner/llvm //==------ sycl_fe_intrins.hpp --- SYCL Device Compiler's FE intrinsics ----==// // // 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 // //===---...
707
908
import rq import sys from rq import use_connection, Queue from redis import Redis redis_con = Redis('redis', 6379) redis_q = Queue(connection=redis_con) started = rq.registry.StartedJobRegistry('default', connection=redis_con) failed = rq.registry.FailedJobRegistry('default'...
497
1,350
<filename>sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/DeleteAppsOptionalParameter.java<gh_stars>1000+ /** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project...
621
458
// Copyright 2015-2021 Swim 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 ...
1,242
2,144
<filename>game_shared/bot/nav_node.cpp // nav_node.cpp // AI Navigation Nodes // Author: <NAME> (<EMAIL>), January 2003 #include "extdll.h" #include "util.h" #include "cbase.h" #include "bot_util.h" #include "nav_node.h" NavDirType Opposite[ NUM_DIRECTIONS ] = { SOUTH, WEST, NORTH, EAST }; CNavNode *CNavNode::m_list...
914
892
{ "schema_version": "1.2.0", "id": "GHSA-xf82-xc5r-2cm2", "modified": "2022-05-01T07:25:03Z", "published": "2022-05-01T07:25:03Z", "aliases": [ "CVE-2006-5118" ], "details": "PHP remote file inclusion vulnerability in index.php3 in the PDD package for PHPSelect Web Development Division allows remote a...
485
1,128
<filename>opennlp-tools/src/test/java/opennlp/tools/lemmatizer/LemmaSampleTest.java<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. * T...
1,520
6,992
/* * Copyright 2002-2020 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
476
464
<gh_stars>100-1000 package com.codezjx.andlinker; interface ITransfer extends android.os.IInterface { /** * Local-side IPC implementation stub class. */ abstract class Stub extends android.os.Binder implements ITransfer { private static final String DESCRIPTOR = "com.codezjx.alinker.ITransfer...
4,083
7,892
/********************************************************************** Audacity: A Digital Audio Editor AVIOContextWrapperImpl.inl <NAME> **********************************************************************/ class AVIOContextWrapperImpl : public AVIOContextWrapper { public: explicit AVIOContextWrapperI...
1,213
5,169
{ "name": "RARotaryWheel", "version": "0.1.0", "summary": "RARotaryWheel is a subclass of UIView to draw wheel/circle.", "description": "RARotaryWheel is a subclass of UIView, which let you able to draw wheel (circle) with dynamic number of segments Edit", "homepage": "https://github.com/rallahaseh/RARotaryWh...
276
5,169
<filename>Specs/Mng-perf/5.1.2/Mng-perf.podspec.json { "name": "Mng-perf", "version": "5.1.2", "summary": "Mng-perf provides functionalities for monetizing your mobile application", "description": " Mng-perf provides functionalities for monetizing your mobile application\n ...
518
61,676
from unittest import mock from django.core.management import call_command from django.core.management.base import CommandError from django.db import connection from django.test import SimpleTestCase class DbshellCommandTestCase(SimpleTestCase): def test_command_missing(self): msg = ( 'You app...
223
3,459
<reponame>werminghoff/Provenance #ifndef FILTER_NTSC_H_ #define FILTER_NTSC_H_ #include <stdio.h> #include "atari_ntsc/atari_ntsc.h" /* Limits for the adjustable values. */ #define FILTER_NTSC_SHARPNESS_MIN -1.0 #define FILTER_NTSC_SHARPNESS_MAX 1.0 #define FILTER_NTSC_RESOLUTION_MIN -1.0 #define FILTER_NTSC_RESOLUTI...
927
626
<filename>src/main/python/rerank/scripts/interpolate.py '''scripts to aggregate the retrieval scores and the reranking scores by linear interpolation This scipt requires five input files: 1. Four run files following the TREC format (query-id Q0 document-id rank score STANDARD) of both the baseline run and the rerank ...
2,699
348
{"nom":"Saint-Vallier","circ":"4ème circonscription","dpt":"Drôme","inscrits":2122,"abs":1291,"votants":831,"blancs":90,"nuls":39,"exp":702,"res":[{"nuance":"LR","nom":"Mme <NAME>","voix":359},{"nuance":"REM","nom":"<NAME>","voix":343}]}
96
479
<reponame>cfogelklou/Monocypher // This file is dual-licensed. Choose whichever licence you want from // the two licences listed below. // // The first licence is a regular 2-clause BSD licence. The second licence // is the CC-0 from Creative Commons. It is intended to release Monocypher // to the public domain. The...
1,394
606
<filename>base/src/main/java/org/arend/core/context/param/DependentLink.java package org.arend.core.context.param; import org.arend.core.context.LinkList; import org.arend.core.context.binding.Binding; import org.arend.core.expr.Expression; import org.arend.core.expr.ReferenceExpression; import org.arend.core.expr.Uni...
2,539
997
#ifndef NTT_H #define NTT_H #include <stdint.h> #include "params.h" #define zetas KYBER_NAMESPACE(zetas) extern const int16_t zetas[128]; #define ntt KYBER_NAMESPACE(ntt) void ntt(int16_t poly[256]); #define invntt KYBER_NAMESPACE(invntt) void invntt(int16_t poly[256]); #define basemul KYBER_NAMESPACE(basemul) voi...
192
777
/* * Artificial Intelligence for Humans * Volume 2: Nature Inspired Algorithms * Java Version * http://www.aifh.org * http://www.jeffheaton.com * * Code repository: * https://github.com/jeffheaton/aifh * * Copyright 2014 by <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you ma...
3,137
2,151
/* * Copyright (C) 2006, 2008 Apple Inc. All rights reserved. * Copyright (C) 2009 Google Inc. 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 retai...
7,586
2,661
<filename>earth_enterprise/src/common/geUsers.cpp // Copyright 2017 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 // //...
1,753
377
/******************************************************************************* * * Copyright 2013 Impetus Infotech. * * * * 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 * * *...
494
542
<reponame>js20166098/sxfStandard /* * Copyright ©2018 vbill.cn. * <p> * 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 req...
2,081
410
<gh_stars>100-1000 // Copyright(c) 2017 POLYGONTEK // // 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...
2,015
315
/*! * \file * \brief Struct tools::Reorderer. */ #ifndef REORDERER_HPP_ #define REORDERER_HPP_ #include <vector> namespace aff3ct { namespace tools { /*! * \class Reorderer * * \brief Reorders a list of frames (the reordering code is dynamic). * * \tparam T: the type of data to reorder. */ template <typename...
1,061
867
<reponame>greedyuser/kur<filename>kur/containers/layers/repeat.py """ Copyright 2017 Deepgram 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 r...
1,008
975
<gh_stars>100-1000 # Copyright (C) 2015 Nippon Telegraph and Telephone Corporation. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unles...
14,995
326
package org.araymond.joal.web.messages.outgoing; import org.araymond.joal.web.messages.outgoing.impl.announce.FailedToAnnouncePayload; import org.araymond.joal.web.messages.outgoing.impl.announce.SuccessfullyAnnouncePayload; import org.araymond.joal.web.messages.outgoing.impl.announce.TooManyAnnouncesFailedPayload...
1,288
577
package org.python.core; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import static org.python.core.Opcode.*; public class PyBytecode extends PyBaseCode implements Traverseproc { // for debugging public static boolean defaultDebug = false; private static boolean debug; ...
39,974
1,013
<reponame>BestBearr/commands<filename>core/src/main/java/co/aikar/commands/CommandReplacements.java /* * Copyright (c) 2016-2017 <NAME> (Aikar) - MIT License * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"),...
1,247
707
<filename>wpilibcExamples/src/main/cpp/examples/RomiReference/include/commands/DriveDistance.h // Copyright (c) FIRST and other WPILib contributors. // Open Source Software; you can modify and/or share it under the terms of // the WPILib BSD license file in the root directory of this project. #pragma once #include <f...
302
422
#include <iostream> #include <cstdlib> #include <unistd.h> #include <fstream> #include <string> #include <sstream> using namespace std; const int gridSize = 25; void printGrid(bool gridOne[gridSize+1][gridSize+1]); void determineState(bool gridOne[gridSize+1][gridSize+1]); void clearScreen(void); int main() { s...
2,413
852
<gh_stars>100-1000 #ifndef DataFormats_L1Trigger_HOTPDigiTwinMux_h #define DataFormats_L1Trigger_HOTPDigiTwinMux_h #include <ostream> #include "DataFormats/HcalDetId/interface/HcalDetId.h" #include <cstdint> /** \class HOTPDigiTwinMux * Simple container packer/unpacker for HO TriggerPrimittive in TwinMUX * Trig...
1,383
454
from gazette.spiders.base.fecam import FecamGazetteSpider class ScPrincesaSpider(FecamGazetteSpider): name = "sc_princesa" FECAM_QUERY = "cod_entidade:213" TERRITORY_ID = "4214151"
87
1,127
<filename>src/plugins/intel_gpu/src/kernel_selector/core/actual_kernels/roll/roll_kernel_ref.hpp // Copyright (C) 2022 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #pragma once #include "kernel_base_opencl.h" namespace kernel_selector { struct roll_params : base_params { roll_params() : base_param...
318
839
<filename>rt/ws/policy/src/main/java/org/apache/cxf/ws/policy/PolicyVerificationOutInterceptor.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. ...
1,042
416
// // VNTypes.h // Vision // // Copyright © 2017 Apple Inc. All rights reserved. // #import <Foundation/Foundation.h> #import <Vision/VNDefines.h> typedef float VNConfidence; typedef float VNAspectRatio; typedef float VNDegrees; typedef NS_ENUM(NSUInteger, VNImageCropAndScaleOption) { VNImageCropAndScaleO...
1,183
2,151
<filename>recipes/recipe_modules/infra_paths/api.py # Copyright 2016 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. from recipe_engine import recipe_api class InfraPathsApi(recipe_api.RecipeApi): """infra_paths module...
353
3,097
// // YPRealPartitionModel.h // Wuxianda // // Created by MichaelPPP on 16/7/11. // Copyright © 2016年 michaelhuyp. All rights reserved. // 分区数据模型 #import <Foundation/Foundation.h> #import "YPRealPartitionSubIconModel.h" @interface YPRealPartitionModel : NSObject /** id */ @property (nonatomic, copy) NSString *i...
252
11,719
// Copyright (C) 2004 <NAME> (<EMAIL>) // License: Boost Software License See LICENSE.txt for the full license. #undef DLIB_ENTROPY_ENCODER_MODEL_KERNEl_ABSTRACT_ #ifdef DLIB_ENTROPY_ENCODER_MODEL_KERNEl_ABSTRACT_ #include "../algs.h" namespace dlib { template < unsigned long alphabet_size, ty...
1,781
434
<reponame>zhiminghufighting/inclavare-containers /* Copyright (c) 2021 Intel Corporation * Copyright (c) 2020-2021 Alibaba Cloud * * SPDX-License-Identifier: Apache-2.0 */ #include <enclave-tls/log.h> #include <enclave-tls/crypto_wrapper.h> crypto_wrapper_err_t nullcrypto_gen_pubkey_hash(crypto_wrapper_ctx_t *ctx...
203
571
<gh_stars>100-1000 package com.univocity.trader.indicators; import com.univocity.trader.candles.Aggregator; import com.univocity.trader.candles.Candle; import com.univocity.trader.indicators.base.Statistic; import com.univocity.trader.indicators.base.TimeInterval; import com.univocity.trader.strategy.Indicator; import...
1,245
2,561
<filename>Options Straddle backtest.py # coding: utf-8 # In[1]: #after a long while of struggle, i finally decided to write something on options strategy #the biggest issue of options trading is to find the backtesting data #the most difficult part is options greeks #after all, data is the new black gold #here are a...
4,445
1,338
/* * Copyright 2005, Haiku, Inc. All Rights Reserved. * Distributed under the terms of the MIT License. */ #ifndef _FILE_PANEL_H #define _FILE_PANEL_H #include <Directory.h> #include <Entry.h> #include <Node.h> class BMessage; class BMessenger; class BWindow; struct stat; struct stat_beos; class BRefFilter { p...
928
571
<filename>ufora/FORA/CUDA/GpuCodegen_test.py # Copyright 2016 Ufora 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 # # Unl...
408
2,759
<gh_stars>1000+ /* * Copyright 2021 YugaByte, Inc. and Contributors * * Licensed under the Polyform Free Trial License 1.0.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://github.com/YugaByte/yugabyte-db/blob/master/license...
909
703
<reponame>Tekh-ops/ezEngine #pragma once #include <EditorEngineProcessFramework/EditorEngineProcessFrameworkDLL.h> #include <ToolsFoundation/Object/DocumentObjectMirror.h> /// \brief An object mirror that mirrors across IPC to the engine process. /// /// One instance on the editor side needs to be initialized as send...
184
2,180
/* * This file is part of the Heritrix web crawler (crawler.archive.org). * * Licensed to the Internet Archive (IA) by one or more individual * contributors. * * The IA licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with *...
3,707
428
/* * Copyright (C) 2015 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...
2,278
544
from office365.runtime.client_value import ClientValue class CustomActionElement(ClientValue): pass
28
820
<filename>datumbox-framework-core/src/main/java/com/datumbox/framework/core/machinelearning/modelselection/Validator.java /** * Copyright (C) 2013-2020 <NAME> <<EMAIL>> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may o...
997
743
<gh_stars>100-1000 { "$schema": "https://raw.githubusercontent.com/microsoft/AdaptiveCards/6f39aedce45864ae1067ed44a5551dc973790bb5/source/nodejs/typed-schema/schema/lib/Type.json", "extends": "Action, ISelectAction", "description": "Gathers input fields, merges with optional data field, and sends an event to the cl...
369
461
/******************************************************************************* * 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...
2,271
46,956
<filename>src/you_get/extractors/heavymusic.py #!/usr/bin/env python __all__ = ['heavymusic_download'] from ..common import * def heavymusic_download(url, output_dir='.', merge=True, info_only=False, **kwargs): html = get_html(url) tracks = re.findall(r'href="(online2\.php[^"]+)"', html) for track in tra...
394
874
package com.jnape.palatable.lambda.semigroup.builtin; import com.jnape.palatable.lambda.adt.Either; import com.jnape.palatable.lambda.functions.Fn1; import com.jnape.palatable.lambda.functions.specialized.SemigroupFactory; import com.jnape.palatable.lambda.monoid.Monoid; import com.jnape.palatable.lambda.semigroup.Sem...
1,022
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. #ifndef COMPONENTS_OPEN_FROM_CLIPBOARD_CLIPBOARD_RECENT_CONTENT_IMPL_IOS_H_ #define COMPONENTS_OPEN_FROM_CLIPBOARD_CLIPBOARD_RECENT_CONTENT_IMPL_IOS_H_ #...
673
4,625
// Copyright 2020 JanusGraph 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 agree...
799
312
<filename>spring-aot/src/main/java/org/springframework/data/JpaConfigurationProcessor.java<gh_stars>100-1000 /* * Copyright 2019-2021 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obta...
5,138
521
<reponame>Fimbure/icebox-1 /* * Copyright (C) 2006 <NAME> <<EMAIL>>. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of the * License, or any later version. * * This p...
13,502
313
<gh_stars>100-1000 {"status_id":9005374858330112,"text":"Nabuti pikro wuib pa setta fordut pe ijize zauv girobfa suz nana to. #ner","user":{"user_id":921246128668672,"name":"<NAME>","screen_name":"@kep","created_at":661803003,"followers_count":23,"friends_count":11,"favourites_count":30},"created_at":814872663,"favori...
174
325
import jax import jax.numpy as jnp import numpy as np import pytest import equinox as eqx def test_is_array(getkey): objs = [ 1, 2.0, [2.0], True, object(), jnp.array([1]), jnp.array(1.0), np.array(1.0), np.array(1), eqx.nn.Linear(1,...
2,970
777
<reponame>google-ar/chromium<filename>components/sync/engine/attachments/attachment_store_backend.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 "components/sync/engine/attachments/attachme...
256
708
<reponame>nairobi222/PopsTabView package com.ccj.poptabview.listener; import com.ccj.poptabview.base.SuperListener; import java.util.List; /** * 复杂筛选的回调 * Created by chenchangjun on 17/7/7. */ public interface OnSortItemClickListener extends SuperListener { /** * 筛选分类、商城点击 */ void onSortItemCli...
169
1,561
/* * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in wr...
1,332
5,279
/* * 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 ...
925
839
/** * 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 m...
5,361
721
<reponame>FinalCraftMC/EnderIO package crazypants.enderio.integration.forestry.upgrades; import javax.annotation.Nonnull; import javax.annotation.Nullable; import com.enderio.core.common.mixin.SimpleMixin; import crazypants.enderio.api.upgrades.IDarkSteelItem; import crazypants.enderio.base.item.darksteel.ItemDarkSt...
446
361
from linear_attention_transformer.linear_attention_transformer import LinearAttentionTransformer, LinearAttentionTransformerLM, LinformerSettings, LinformerContextSettings from linear_attention_transformer.autoregressive_wrapper import AutoregressiveWrapper from linear_attention_transformer.images import ImageLinearAtt...
77
2,996
<reponame>Elyahu41/Terasology<filename>engine/src/main/java/org/terasology/engine/logic/behavior/DefaultCollectiveBehaviorTreeRunner.java // Copyright 2021 The Terasology Foundation // SPDX-License-Identifier: Apache-2.0 package org.terasology.engine.logic.behavior; import org.terasology.engine.logic.behavior.asset.Be...
1,240
1,122
<gh_stars>1000+ // Copyright (c) Microsoft Corporation // SPDX-License-Identifier: MIT #pragma once #include "ebpf_platform.h" #include "ebpf_structs.h" #include "framework.h" #ifdef __cplusplus extern "C" { #endif typedef enum _ebpf_object_type { EBPF_OBJECT_UNKNOWN, EBPF_OBJECT_MAP, ...
2,176
8,027
import unittest class Test(unittest.TestCase): @classmethod def setUpClass(cls): raise Exception("setup failure!") def test_that_passes(self): pass
74
521
/* $Id: pkix-verify.cpp $ */ /** @file * IPRT - Crypto - Public Key Infrastructure API, Verification. */ /* * Copyright (C) 2006-2017 Oracle Corporation * * This file is part of VirtualBox Open Source Edition (OSE), as * available from http://www.virtualbox.org. This file is free software; * you can redistribut...
9,243
2,561
<gh_stars>1000+ # coding: utf-8 # In[1]: #shooting star is my friend's fav indicator #the name is poetic and romantic #it is merely a vertical flipped hammer #hammer and shooting star could be confusing #since both of them can be inverted #i memorize them via a simple tune #if u see thor (with hammer),price shall s...
3,710
376
import os POVRAY_BINARY = ("povray.exe" if os.name=='nt' else "povray") GLOBAL_SCENE_SETTINGS = { "charset" : "ascii", "adc_bailout" : "1/255", "ambient_light" : (1,1,1), "assumed_gamma" : 1.0, "irid_wavelength" : (0.25,0.18,0.14), "max_trace_level" : 5, "max_inter...
602
1,001
# 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,332
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. #include "chrome/browser/ui/browser_navigator.h" #include "chrome/test/base/testing_profile.h" #include "content/public/test/browser_task_environment.h" ...
292
335
{ "word": "Alliance", "definitions": [ "A union or association formed for mutual benefit, especially between countries or organizations.", "A relationship based on similarity of interests, nature, or qualities.", "The state of being joined or associated.", "A group of closely rel...
123
1,007
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from .mot import MOTAccumulator # NoQA import motmetrics.metrics import motmetrics.distances import motmetrics.io import motmetrics.utils # NoQA # Needs to be last li...
106
468
#define GLI_INCLUDE_GL_OES_COMPRESSED_PALETTED_TEXTURE enum Main { GL_PALETTE4_RGB8_OES = 0x8B90, GL_PALETTE4_RGBA8_OES = 0x8B91, GL_PALETTE4_R5_G6_B5_OES = 0x8B92, GL_PALETTE4_RGBA4_OES = 0x8B93, GL_PALETTE4_RGB5_A1_OES = 0x8B94, GL_PALETTE8_RGB8_OES = 0...
358