max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
1,258
<reponame>CaesarHo/CustomShapeImageView package com.svgandroid; import android.graphics.Path; /** * Created by <NAME> on 19.01.2016. * <EMAIL> */ public class PathParser { /** * Parses a single SVG path and returns it as a <code>android.graphics.Path</code> object. * An example path is <code>M250,15...
4,769
365
<gh_stars>100-1000 # This example assumes we have a mesh object selected import bpy import bmesh # Get the active mesh me = bpy.context.object.data # Get a BMesh representation bm = bmesh.new() # create an empty BMesh bm.from_mesh(me) # fill it in from a Mesh # Modify the BMesh, can do anything here... for v ...
165
793
// RUN: %clang_cc1 -std=c99 -Wmissing-field-initializers -Wmissing-braces -verify %s // Tests that using {0} in struct initialization or assignment is supported struct foo { int x; int y; }; struct bar { struct foo a; struct foo b; }; struct A { int a; }; struct B { struct A a; }; struct C { struct B b; }; struct D { ...
698
778
<reponame>clazaro/Kratos<filename>kratos/modeler/serial_model_part_combinator_modeler.cpp<gh_stars>100-1000 // | / | // ' / __| _` | __| _ \ __| // . \ | ( | | ( |\__ ` // _|\_\_| \__,_|\__|\___/ ____/ // Multi-Physics // // License: BSD License // ...
934
1,451
<filename>pandora-core/src/main/java/tech/linjiang/pandora/ui/fragment/FileFragment.java package tech.linjiang.pandora.ui.fragment; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import androidx.annotation.Nullable; import androidx.appcompat.widget.Toolbar; import android.view.Me...
1,880
930
<filename>mate-core/mate-starter-gray/src/main/java/vip/mate/core/gray/config/GrayConfig.java package vip.mate.core.gray.config; import feign.RequestInterceptor; import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; import org.springframework.cloud.loadbalancer.annotation.LoadBalancerClients; ...
278
7,737
extern zend_class_entry *phalcon_mvc_model_relation_ce; ZEPHIR_INIT_CLASS(Phalcon_Mvc_Model_Relation); PHP_METHOD(Phalcon_Mvc_Model_Relation, __construct); PHP_METHOD(Phalcon_Mvc_Model_Relation, getFields); PHP_METHOD(Phalcon_Mvc_Model_Relation, getForeignKey); PHP_METHOD(Phalcon_Mvc_Model_Relation, getIntermediateF...
2,779
1,253
<filename>dp/Tree Distances Cses/Tree_Distances_II.cpp /* In this problem we have to calculate for a given tree , the sum of distances of every node to all other nodes in the tree */ #include<bits/stdc++.h> using namespace std; #define int long long int #define SZ 200005 int n, m, k, x; vector<int> adj[SZ]; int S...
573
1,091
<reponame>Shinkirou/onos<gh_stars>1000+ /* * Copyright 2016-present Open Networking Foundation * * 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/LI...
1,788
879
package org.zstack.storage.ceph.primary; import org.zstack.header.query.ExpandedQueries; import org.zstack.header.query.ExpandedQuery; import org.zstack.header.search.Inventory; import org.zstack.header.search.Parent; import org.zstack.header.storage.primary.PrimaryStorageInventory; import org.zstack.header.tag.System...
981
2,151
{ // chrome-extension://fbjakikfhfdajcamjleinfciajelkpek/ "key": "<KEY>", "name": "Chrome Webstore Gallery Widget app", "description": "App for showing Chrome Webstore Gallery widget and handling extension installs from the widget", "version": "0.2", "manifest_version": 2, "display_in_launcher": false, ...
431
381
<filename>jgiven-tests/src/main/java/com/tngtech/jgiven/tags/IssueDescriptionGenerator.java package com.tngtech.jgiven.tags; import java.lang.annotation.Annotation; import com.tngtech.jgiven.annotation.TagDescriptionGenerator; import com.tngtech.jgiven.config.TagConfiguration; public class IssueDescriptionGenerator ...
244
1,056
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
2,427
2,151
<reponame>rio-31/android_frameworks_base-1 /* * Copyright (C) 2016 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/licens...
435
6,989
<gh_stars>1000+ #include "executor.h"
17
8,747
<gh_stars>1000+ // Copyright 2015-2021 Espressif Systems (Shanghai) PTE LTD // // 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...
754
318
<filename>src/vw/Core/tests/TestTypeDeduction.cxx // __BEGIN_LICENSE__ // Copyright (c) 2006-2013, United States Government as represented by the // Administrator of the National Aeronautics and Space Administration. All // rights reserved. // // The NASA Vision Workbench is licensed under the Apache License, // V...
6,549
572
import os import os.path import shutil from pathlib import Path # Criar path caso ele não exista if not os.path.exists('aulinha_1'): os.mkdir('aulinha_1') os.chdir('aulinha_1') # Criar arquivo xpto Path('xpto.txt').touch() for el in range(1, 4): shutil.copy('xpto.txt', f'xpto_{el}.txt') # print(os.getcwd()...
166
335
<filename>axcell/scripts/guess_main.py # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved from pathlib import Path import re import sys import codecs doccls = re.compile(r"\s*\\documentclass") docbeg = re.compile(r"\s*\\begin\s*\{\s*document\s*\}") title = re.compile(r"\s*\\(icml)?title\s*\{(?P<...
863
1,121
<reponame>adamkulawik/factory<filename>shortages-prediction-model/src/main/java/io/dddbyexamples/factory/shortages/prediction/notification/QualityTasks.java package io.dddbyexamples.factory.shortages.prediction.notification; /** * Created by michal on 02.02.2017. */ public interface QualityTasks { void increaseP...
122
892
<gh_stars>100-1000 { "schema_version": "1.2.0", "id": "GHSA-hfgg-5j8v-8j94", "modified": "2022-05-01T07:45:16Z", "published": "2022-05-01T07:45:16Z", "aliases": [ "CVE-2006-7148" ], "details": "PHP remote file inclusion vulnerability in includes/bb_usage_stats.php in maluinfo 206.2.38 for Brazilian PH...
520
5,169
{ "name": "FritzVision", "version": "7.0.1", "summary": "Official Fritz SDK for Swift 5.0 and Objective-C", "homepage": "https://fritz.ai", "license": { "type": "Apache 2.0", "file": "LICENSE.md" }, "authors": { "<NAME>": "<EMAIL>" }, "source": { "git": "https://github.com/fritzlabs/fr...
484
1,125
<reponame>karenzone/elasticsearch<gh_stars>1000+ /* * Licensed to Elasticsearch under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch licenses this file to you under * the Apache License, Versio...
1,279
877
import org.checkerframework.checker.regex.qual.Regex; import org.checkerframework.checker.regex.util.RegexUtil; public class Test { void foo(String simple) { if (RegexUtil.isRegex(simple)) { @Regex String in = simple; } } }
97
6,098
from builtins import range import sys sys.path.insert(1,"../../../") import h2o from tests import pyunit_utils from h2o.estimators.glm import H2OGeneralizedLinearEstimator # check varimp for Binomial, Multinomial, Regression directly from model.output._varimp instead of the # model._output._standardized_coefficients....
731
1,351
/** @file Stats of TLS @section license License 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 Apach...
1,683
1,014
<filename>Database/Equities/Countries/Luxembourg/Industries/Household & Personal Products.json { "COC.F": { "short_name": "L'OCCITANE INTERNATIONAL", "long_name": "L'Occitane International S.A.", "summary": "L'Occitane International S.A., together with its subsidiaries, designs, manufact...
1,124
1,006
/**************************************************************************** * libs/libnx/nxtk/nxtk_setvisibility.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 copyri...
525
1,200
package com.xiaojukeji.carrera.config.v4.pproxy; import com.google.common.collect.Maps; import com.xiaojukeji.carrera.config.ConfigurationValidator; import com.xiaojukeji.carrera.utils.ConfigUtils; import org.apache.commons.lang3.StringUtils; import java.util.Map; import java.util.Set; public class TopicConfigurati...
827
1,402
/* ---------------------------------------------------------------------------- * GTSAM Copyright 2010, Georgia Tech Research Corporation, * Atlanta, Georgia 30332-0415 * All Rights Reserved * Authors: <NAME>, et al. (see THANKS for the full author list) * See LICENSE for the license information * ------------...
456
335
<reponame>Safal08/Hacktoberfest-1<gh_stars>100-1000 { "word": "Trip", "definitions": [ "A journey or excursion, especially for pleasure.", "The distance from start to finish of a race.", "A stumble or fall due to catching one's foot on something.", "A mistake.", "A halluc...
240
898
/* * Copyright (c) 2015 Spotify AB. * * 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,...
761
347
/* * Copyright (c) Baidu Inc. All rights reserved. * * 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 Apac...
1,849
372
/* * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under t...
4,093
612
/* * Copyright (c) 2015-present, Parse, LLC. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ package com.par...
468
576
<reponame>AhmedHussKhalifa/torchdistill from torchdistill.models.adaptation import ADAPTATION_CLASS_DICT from torchdistill.models.classification import CLASSIFICATION_MODEL_FUNC_DICT from torchdistill.models.custom import CUSTOM_MODEL_CLASS_DICT, CUSTOM_MODEL_FUNC_DICT from torchdistill.models.special import SPECIAL_CL...
223
2,338
<filename>lldb/packages/Python/lldbsuite/test/functionalities/ubsan/user-expression/main.c<gh_stars>1000+ int foo() { int data[4]; int x = *(int *)(((char *)&data[0]) + 2); return 42; } int main() { return 0; // breakpoint line }
96
310
// Copyright (C) 2002-2012 <NAME> // Copyright (C) 2009-2012 <NAME> // This file is part of the "Irrlicht Engine". // For conditions of distribution and use, see copyright notice in irrlicht.h // Based on the NPK reader from Irrlicht #include "pch.h" #include "CNPKReader.h" #ifdef __IRR_COMPILE_WITH_NPK_ARCHIVE_LOADE...
2,361
17,810
<reponame>Weissle/modern-cpp-tutorial<gh_stars>1000+ // // 4.1.linear.container.cpp // modern c++ tutorial // // created by changkun at changkun.de // https://github.com/changkun/modern-cpp-tutorial // #include <iostream> #include <array> #include <vector> void foo(int *p, int len) { for (int i = 0; i != len; ++i...
963
363
<filename>plecost_lib/libs/updaters/plugins.py #!/usr/bin/python # -*- coding: utf-8 -*- # # Plecost: Wordpress vulnerabilities finder # # @url: http://iniqua.com/labs/ # @url: https://github.com/iniqua/plecost # # @author:<NAME> aka ffranz (http://iniqua.com/) # @author:<NAME> aka cr0hn (http://www.cr0hn.com/me/) # # ...
3,485
1,279
<filename>3rdparty/nvtt/nvcore/defsgnucwin32.h #ifndef NV_CORE_H #error "Do not include this file directly." #endif //#include <cstddef> // size_t, NULL // Function linkage #define DLL_IMPORT __declspec(dllimport) #define DLL_EXPORT __declspec(dllexport) #define DLL_EXPORT_CLASS DLL_EXPORT // Function calling modes ...
555
1,056
<reponame>arusinha/incubator-netbeans<filename>ide/localhistory/test/qa-functional/src/org/netbeans/test/localhistory/operators/OutlineViewOperator.java /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for addi...
6,336
403
<reponame>kthoms/code<gh_stars>100-1000 /* * Camunda Platform REST API * OpenApi Spec for Camunda Platform REST API. * * The version of the OpenAPI document: 7.16.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit th...
1,694
344
<reponame>cclauss/archai<filename>archai/algos/didarts/didarts_exp_runner.py # Copyright (c) Microsoft Corporation. # Licensed under the MIT license. from typing import Type from overrides import overrides from archai.nas.exp_runner import ExperimentRunner from archai.nas.arch_trainer import TArchTrainer fr...
263
345
<reponame>clayne/drltrace<gh_stars>100-1000 import os import sys content = open(sys.argv[1], 'r').readlines() names = dict() for line in content: if "|" not in line or "#" in line: continue line = line.split("|") name = line[1] try: names[name] += 1 except: #print name ...
223
777
<reponame>rhencke/engine<gh_stars>100-1000 // Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef IOS_CHROME_BROWSER_METRICS_TAB_USAGE_RECORDER_DELEGATE_H_ #define IOS_CHROME_BROWSER_METRICS_TAB_USAGE_...
286
2,288
<reponame>michaelfolkson/lnhw #include "config.h" #include <assert.h> #include <ccan/mem/mem.h> int main(void) { const char *haystack = "abcd\0efgh"; char *p; #ifdef FAIL #if !HAVE_TYPEOF #error "Can't fail without typeof" #else /* Should catch const discard errors. */ p = memcheck(haystack, sizeof(haystack)); #...
176
678
//https://github.com/Tyilo/insert_dylib/blob/master/insert_dylib/main.c #include "insert_dylib.h" #include <stdlib.h> #include <stdio.h> #include <stdbool.h> #include <stdarg.h> #include <string.h> #include <unistd.h> #include <getopt.h> #include <sys/stat.h> #include <sys/param.h> #include <copyfile.h> #include <mac...
11,222
1,590
<reponame>libc16/azure-rest-api-specs<filename>specification/apimanagement/control-plane/Microsoft.ApiManagement/preview/2017-03-01/examples/ApiManagementGetIdentityProviders.json { "parameters": { "apimBaseUrl": "apimservice1.management.azure-api.net", "identityProviderName": "google", "api-version": "20...
251
190,993
# Copyright 2019 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
2,298
412
<reponame>tobireinhard/cbmc<gh_stars>100-1000 public class Main { public void constantCharAt() { StringBuilder sb = new StringBuilder("abc"); char c = sb.charAt(1); assert c == 'b'; } }
82
2,151
// Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_DOWNLOAD_NOTIFICATION_DOWNLOAD_NOTIFICATION_MANAGER_H_ #define CHROME_BROWSER_DOWNLOAD_NOTIFICATION_DOWNLOAD_NOTIFICATION_MANAGER_H...
673
1,139
import json from typing import Callable, List import networkx import pytest from beagle.backends.networkx import NetworkX from beagle.nodes import Process, File from io import BytesIO from scapy.all import Ether, PcapWriter, Packet, IP, UDP, TCP, DNS, DNSQR, DNSRR from scapy.layers.http import HTTPRequest, HTTP ...
2,961
584
<filename>AppleIntelWifiAdapter/mvm/IWLMvmPhy.hpp // // IWLMvmPhy.hpp // AppleIntelWifiAdapter // // Created by <NAME> on 2/19/20. // Copyright © 2020 IntelWifi for MacOS authors. All rights reserved. // #ifndef APPLEINTELWIFIADAPTER_MVM_IWLMVMPHY_HPP_ #define APPLEINTELWIFIADAPTER_MVM_IWLMVMPHY_HPP_ #include "IW...
729
315
<reponame>herrphon/Algorithms_Example /** ** Java Program to Implement Ternary Search Algorithm **/ import java.util.Scanner; /** Class TernarySearch **/ public class TernarySearch { /** call function **/ public static int ternarySearch (int[] A, int value) { return ternarySearch(A, ...
947
323
/* * Copyright (c) 2007, Novell Inc. * * This program is licensed under the BSD license, read LICENSE.BSD * for further information */ #ifndef COMMON_WRITE_H #define COMMON_WRITE_H #include "repo.h" void tool_write(Repo *repo, FILE *fp); #endif
95
971
package com.ucar.datalink.manager.core.flinker.cron.entity; import com.ucar.datalink.biz.service.JobService; import com.ucar.datalink.biz.utils.DataLinkFactory; import com.ucar.datalink.domain.job.JobExecutionInfo; import com.ucar.datalink.domain.job.JobExecutionState; import com.ucar.datalink.manager.core.flinker.cro...
780
347
<filename>gengine/app/tasks.py<gh_stars>100-1000 from .tasksystem import EngineTask def includeme(config): # @EngineTask( # name="demo_task", # description="print sth", # config_scheme=None, # default_config=None, # default_cron="* * * * *", # default_activated=True...
446
552
<gh_stars>100-1000 #include "stdafx.h" #include "SettingsDialog.h" namespace et { namespace edit { //==================== // Settings Dialog //==================== //--------------------------------- // SettingsDialog::SettingsDialog // // Settings Dialog default constructor // SettingsDialog::SettingsDialog(Base...
358
2,542
<gh_stars>1000+ // ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ namespace Host...
540
3,799
/* * Copyright 2021 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 applica...
988
2,231
// Copyright 2020 The Defold Foundation // Licensed under the Defold License version 1.0 (the "License"); you may not use // this file except in compliance with the License. // // You may obtain a copy of the License, together with FAQs at // https://www.defold.com/license // // Unless required by applicable law or a...
772
1,442
<gh_stars>1000+ #include <escher/even_odd_cell_with_ellipsis.h> namespace Escher { EvenOddCellWithEllipsis::EvenOddCellWithEllipsis() : EvenOddCell() { } void EvenOddCellWithEllipsis::layoutSubviews(bool force) { m_ellipsisView.setFrame(bounds(), force); } }
110
521
<gh_stars>100-1000 extern "C" { # include <dopenssl/rsa.h> }
33
565
 #pragma once #include "base/mappable.hpp" #include "geometry/frame.hpp" #include "geometry/grassmann.hpp" #include "geometry/linear_map.hpp" #include "geometry/quaternion.hpp" #include "geometry/r3_element.hpp" #include "geometry/rotation.hpp" #include "geometry/sign.hpp" #include "geometry/signature.hpp" #include "...
2,180
1,610
<reponame>SanchitMisal/aiyprojects-raspbian # 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 # # Unless required...
1,107
3,100
<filename>src/xenia/ui/window_android.h<gh_stars>1000+ /** ****************************************************************************** * Xenia : Xbox 360 Emulator Research Project * ****************************************************************************** * Copyright 2021 <NA...
675
679
<filename>main/svtools/source/edit/textundo.cxx /************************************************************** * * 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 copyrigh...
3,250
3,702
<filename>java/yb-client/src/main/java/org/yb/client/YBTable.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 file // to you...
3,499
1,433
/* * Copyright (c) 2016, 2017, 2018, 2019 FabricMC * * 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 applicabl...
2,229
2,813
package org.jabref.logic.integrity; import java.util.Optional; import java.util.stream.Stream; import org.jabref.logic.l10n.Localization; import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.Arguments; import org.junit.jupiter.params.provider.MethodSource; import static org.ju...
388
622
<reponame>Jackque/flashback<filename>flashback-core-impl/src/main/java/com/linkedin/flashback/decorator/compression/AbstractCompressor.java<gh_stars>100-1000 /* * Copyright (c) LinkedIn Corporation. All rights reserved. Licensed under the BSD-2 Clause license. * See LICENSE in the project root for license information...
294
6,989
<filename>contrib/libs/zstd06/common/zstd.h #include <contrib/libs/zstd06/renames.h> /* zstd - standard compression library Header File Copyright (C) 2014-2016, <NAME>. BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php) Redistribution and use in source and binary forms, with...
2,550
638
<gh_stars>100-1000 // Copyright 2018-current Getnamo. All Rights Reserved #include "SocketIONative.h" #include "SIOMessageConvert.h" #include "CULambdaRunnable.h" #include "SIOJConvert.h" #include "sio_client.h" #include "sio_message.h" #include "sio_socket.h" FSocketIONative::FSocketIONative() { PrivateClient = nu...
6,322
473
<filename>challenges/CableGrindLlama/pov_33/pov.c #include "libpov.h" int main(int cgc_argc, char *cgc_argv[]) { cgc_negotiate_type1(0x0, 0x0, 0); do { //*** writing data static unsigned char write_00000_00000[] = "\x7f\x01\x00\x00"; static unsigned int write_00000_00000_len = 4; ...
5,359
2,151
<gh_stars>1000+ /* * Copyright (c) 2011 The Native Client 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 <assert.h> #include <pthread.h> #include <stdio.h> #include <stdlib.h> #include <sys/mman.h> void *mapping; vo...
859
1,694
<reponame>CrackerCat/iWeChat<gh_stars>1000+ // // Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>. // #import "MMUIViewController.h" @class MMTableViewInfo; @protocol BindPhoneSuccessViewControllerD...
304
2,293
#!/usr/bin/python # # Copyright (C) 2007, 2008 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 applicabl...
2,244
1,533
#include ""
3
1,670
<filename>autobahn/twisted/test/test_choosereactor.py ############################################################################### # # The MIT License (MIT) # # Copyright (c) Crossbar.io Technologies GmbH # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associat...
1,797
7,409
import logging import time from typing import Sequence, cast from celery import shared_task from posthog.models import Action from posthog.utils import is_clickhouse_enabled logger = logging.getLogger(__name__) @shared_task(ignore_result=True) def calculate_action(action_id: int) -> None: if is_clickhouse_enab...
462
678
<reponame>bzxy/cydia<filename>iOSOpenDev/frameworks/AirPortAssistant.framework/Headers/StepByStepUIViewController_ExtendWired_Config.h /** * This header is generated by class-dump-z 0.2b. * * Source: /System/Library/PrivateFrameworks/AirPortAssistant.framework/AirPortAssistant */ #import <AirPortAssistant/StepBySt...
183
16,989
/* * Copyright 2019 The Bazel Authors. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
875
320
<filename>MoPubSDKTests/MPAdViewOverlayDelegateMock.h<gh_stars>100-1000 // // MPAdViewOverlayDelegateMock.h // // Copyright 2018-2021 Twitter, Inc. // Licensed under the MoPub SDK License Agreement // http://www.mopub.com/legal/sdk-license-agreement/ // #import <Foundation/Foundation.h> #import "MPAdViewOverlay.h"...
246
1,380
<gh_stars>1000+ /* * sophia database * sphia.org * * Copyright (c) <NAME> * BSD License */ #include <sophia.h> #include <libss.h> #include <libsf.h> #include <libsr.h> #include <libsv.h> #include <libsd.h> #include <libst.h> static void secondary_index_test_unique0(void) { void *env = sp_env(); t( env != NULL...
3,390
602
package io.stargate.db.query; import java.util.List; import java.util.Objects; public interface BoundQuery { /** The type of query this is. */ QueryType type(); /** The query and values used to obtain this bound query. */ BoundQuery.Source<?> source(); /** * A CQL query string representation of this qu...
652
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...
1,371
493
<filename>src/com/jdh/microcraft/entity/particle/EntitySmashParticle.java package com.jdh.microcraft.entity.particle; import com.jdh.microcraft.Global; import com.jdh.microcraft.gfx.Renderer; import com.jdh.microcraft.level.Level; public class EntitySmashParticle extends EntityParticle { private static final int ...
494
2,151
<filename>third_party/libyuv/include/libyuv/planar_functions.h /* * Copyright (c) 2016, Alliance for Open Media. All rights reserved * * This source code is subject to the terms of the BSD 2 Clause License and * the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License * was not distributed with ...
7,931
432
/* Language-specific hook definitions for C front end. Copyright (C) 1991-2018 Free Software Foundation, Inc. This file is part of GCC. GCC 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 3, or...
713
6,097
<filename>RuneFramework/vendor/glm/test/gtc/gtc_type_aligned.cpp<gh_stars>1000+ #include <glm/glm.hpp> #if GLM_CONFIG_ALIGNED_GENTYPES == GLM_ENABLE #include <glm/gtc/type_aligned.hpp> #include <glm/gtc/type_precision.hpp> #include <glm/ext/vector_relational.hpp> #include <glm/ext/matrix_relational.hpp> GLM_STATIC_AS...
2,085
370
package com.fastasyncworldedit.core.util.task; import com.fastasyncworldedit.core.Fawe; import java.io.Closeable; import java.util.concurrent.Callable; import java.util.concurrent.Future; import java.util.concurrent.locks.Lock; import java.util.concurrent.locks.ReentrantLock; import java.util.function.Supplier; publ...
1,041
5,798
<gh_stars>1000+ # Copyright 2018 Google LLC. 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 app...
443
2,728
<filename>sdk/cognitiveservices/azure-cognitiveservices-knowledge-qnamaker/azure/cognitiveservices/knowledge/qnamaker/models/feedback_record_dto.py # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the...
530
318
/* * Copyright (c) 2002-2021 "Neo4j," * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. * * 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....
759
505
import os import cv2 import glob import insightface import imutils import numpy as np import tqdm def eye_aspect_ratio(eye): A = np.linalg.norm(eye[1] - eye[7]) B = np.linalg.norm(eye[2] - eye[6]) C = np.linalg.norm(eye[3] - eye[5]) D = np.linalg.norm(eye[0] - eye[4]) ear = (A + B + C) / (3.0 * D)...
2,373
830
# Copyright 2021 JD.com, Inc., JD AI """ @author: <NAME> @contact: <EMAIL> """ import torch from torch import nn from torch.nn.utils.weight_norm import weight_norm from xmodaler.config import configurable from xmodaler.config import CfgNode as CN from xmodaler.config import kfg from ..layers import ShiftedConvLayer, S...
6,218
2,151
// 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. #ifndef CHROME_BROWSER_UI_BROWSER_DIALOGS_H_ #define CHROME_BROWSER_UI_BROWSER_DIALOGS_H_ #include <string> #include <utility> #include <vector> #in...
4,060
925
# 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. import logging import os import subprocess import sys import tempfile from telemetry.core import exceptions from telemetry.core import util from telemetry.i...
1,739
5,813
<filename>core/src/main/java/org/apache/druid/java/util/common/parsers/JSONPathFieldSpec.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 A...
1,117