max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
1,830
<reponame>thirteen13Floor/zeebe<filename>engine/src/main/java/io/camunda/zeebe/engine/processing/streamprocessor/StreamProcessorListener.java /* * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH under * one or more contributor license agreements. See the NOTICE file distributed * with this w...
460
867
""" Copyright 2016 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 required by applicable law or agreed to in writing, software distri...
389
342
<reponame>dayoajayi/dayoajayi.github.io { "responseStatus": 200, "responseDetails": null, "responseData": { "feed": { "feedUrl": "https://www.contentful.com/blog/feed.xml", "title": "Contentful - Blog", "link": "https://www.contentful.com", "descriptio...
1,840
587
/* * Copyright 2016-2020 Crown Copyright * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
1,977
419
<reponame>molspace/FastMVS_experiments from torch import nn def init_bn(module): if module.weight is not None: nn.init.ones_(module.weight) if module.bias is not None: nn.init.zeros_(module.bias) return def set_bn(model, momentum): for m in model.modules(): if isinstance(m, (...
375
14,668
<reponame>zealoussnow/chromium // Copyright 2018 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "media/learning/impl/distribution_reporter.h" #include "base/bind.h" #include "base/cxx17_backports.h" #include "...
3,919
1,763
import copy import logging from lxml import etree from zeep import exceptions from zeep.exceptions import UnexpectedElementError from zeep.utils import qname_attr from zeep.xsd.const import Nil, NotSet, xsi_ns from zeep.xsd.context import XmlParserContext from zeep.xsd.elements.base import Base from zeep.xsd.utils im...
5,447
411
// // RAFNMainViewController.h // Reactive AFNetworking Example // // Created by <NAME> on 3/28/13. // Copyright (c) 2013 CodaFi. All rights reserved. // #import <UIKit/UIKit.h> @interface RAFNMainViewController : UIViewController @end
87
13,846
<filename>src/Security/Authentication/test/OpenIdConnect/wellknownkeys.json { "keys": [ { "kty": "RSA", "use": "sig", "kid": "<KEY>", "x5t": "<KEY>", "n": "<KEY>", "e": "AQAB", "x5c": [ "<KEY>SV<KEY>" ] }, { "kty": "RSA", "use": "sig", "kid": "F...
444
312
<gh_stars>100-1000 package org.elasticsearch.bootstrap; import java.net.URL; import java.util.Collections; import java.util.Set; import java.util.function.Consumer; /** * test of elasticsearch pass. Thus as a workaround we deactivate this test. see * https://stackoverflow.com/questions/38712251/java-jar-hell-runtim...
238
778
// // Project Name: KratosConstitutiveModelsApplication $ // Created by: $Author: JMCarbonell $ // Last modified by: $Co-Author: $ // Date: $Date: April 2017 $ // Revision: $Revision: 0.0...
4,929
1,540
<filename>testng-core/src/test/java/org/testng/internal/MethodMultiplyingInterceptor.java package org.testng.internal; import java.util.List; import org.testng.IMethodInstance; import org.testng.IMethodInterceptor; import org.testng.ITestContext; import org.testng.TestListenerAdapter; import org.testng.collections.Lis...
501
547
<gh_stars>100-1000 { "name": "menu-jsx", "version": "1.0.0", "description": "", "main": "script.js", "scripts": { "build": "./node_modules/.bin/babel script.jsx -o script.js -w", "copy-react": "./node_modules/.bin/copyfiles -f ./node_modules/react/dist/react.js ./", "copy-react-dom": "./node_modul...
386
1,256
{ "plugin.description.short": "Envoyez des emails", "plugin.description.long": "Envoyez des emails" }
36
406
<gh_stars>100-1000 /* * The MIT License (MIT) * * Copyright (c) 2007-2015 Broad Institute * * 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 limit...
1,765
571
<reponame>arunvinodqmco/cinder<filename>cinder/tests/unit/volume/drivers/netapp/dataontap/client/test_client_cmode.py # Copyright (c) 2014 <NAME>. All rights reserved. # Copyright (c) 2015 <NAME>. All rights reserved. # Copyright (c) 2015 <NAME>. All rights reserved. # Copyright (c) 2016 <NAME>. All rights reserved. ...
93,052
1,279
{ "errorMessage": "Invalid Serverless Application Specification document. Number of errors found: 1. Structure of the SAM template is invalid. Could not find x-amazon-apigateway-any-method in /{domain} within DefinitionBody." }
56
679
<gh_stars>100-1000 /************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF license...
2,421
2,542
<reponame>AnthonyM/service-fabric // ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ----------------------------------------------------------...
186
774
package com.example; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; public class Main extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedI...
243
5,169
<gh_stars>1000+ { "name": "DeltaCalculator", "version": "1.0.3", "summary": "DeltaCalculator is a Swift Library focused on replacing reloadData() calls with animated insert, delete and move operations.", "description": "DeltaCalculator is a Swift Library focused on replacing reloadData()\ncalls with animated in...
323
725
<gh_stars>100-1000 /* Part of SWI-Prolog Author: <NAME> E-mail: <EMAIL> WWW: http://www.swi-prolog.org Copyright (c) 1985-2019, University of Amsterdam VU University Amsterdam All rights reserved. Redistribution and use in source and bina...
889
349
import sys import os import subprocess import colorama colorama.init() import refactoring # Note: refactoring.py need to be in the current working directory paths = [ "C:/Users/petst55.AD/Documents/Inviwo/inviwo" ] excludespatterns = ["*/ext/*", "*/templates/*", "*/tools/codegen/*" , "*moc_*", "*cmake*"]; files =...
254
1,269
<filename>venv/Lib/site-packages/langdetect/lang_detect_exception.py<gh_stars>1000+ _error_codes = { 'NoTextError': 0, 'FormatError': 1, 'FileLoadError': 2, 'DuplicateLangError': 3, 'NeedLoadProfileError': 4, 'CantDetectError': 5, 'CantOpenTrainData': 6, 'TrainDataFormatError': 7, 'I...
247
373
package com.dianrong.platform.open.cfg; import java.nio.charset.Charset; import org.apache.zookeeper.data.Stat; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.util.StringUtils; public class CfgGroup extends CfgBaseGroup { private static final long serialVersionUID = 1L; pri...
1,516
1,363
/* * Copyright 2019 liaochong * * 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 writin...
709
545
#include <iostream> struct LongDouble { LongDouble(double = 0.0); operator double() { std::cout << "LongDouble::operator double()" << std::endl; return 0; } operator float() { std::cout << "LongDouble::operator float()" << std::endl; return 0; } }; void calc(int) { std::cout << "void calc(i...
209
866
from commitizen.cz import exceptions def required_validator(ans, msg=None): if not ans: raise exceptions.AnswerRequiredError(msg) return ans def multiple_line_breaker(ans, sep="|"): return "\n".join(line.strip() for line in ans.split(sep) if line)
96
3,269
<filename>C++/time-needed-to-buy-tickets.cpp // Time: O(n) // Space: O(1) class Solution { public: int timeRequiredToBuy(vector<int>& tickets, int k) { int result = 0; for (int i = 0; i < size(tickets); ++i) { result += min(tickets[i], i <= k ? tickets[k]: tickets[k] - 1); } ...
167
767
<gh_stars>100-1000 # -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available. Copyright (C) 2017-2018 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use thi...
1,240
1,264
from ..linalg import lu, svd, qr, eig from numpy import random as _random, sqrt from numpy.linalg import norm from ..utils import _float, _svdCond, traceXTX, eig_flip, svd_flip from ..random import uniform # __all__ = ['randomizedSVD', 'randomizedEig'] def randomized_projection(X, k, solver = 'lu', max_iter = 4): ...
1,582
995
<gh_stars>100-1000 package zemberek.classification; import com.google.common.base.Splitter; import java.io.IOException; import java.nio.charset.StandardCharsets; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.util.ArrayList; import java.util.Collections; import java.util...
3,616
412
typedef void (*fp_t)(int, int); void add(int a, int b) { } void subtract(int a, int b) { } void multiply(int a, int b) { } int main() { // fun_ptr_arr is an array of function pointers void (*fun_ptr_arr[])(int, int) = {add, subtract, add}; // Multiply should not be added into the value set fp_t other_fp = m...
199
810
/* * SPDX-License-Identifier: Apache-2.0 * Copyright 2018-2020 The Feast 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 *...
782
382
/* * Copyright (C) 2011 <NAME> <<EMAIL> at g<EMAIL> dot <EMAIL>> and <NAME> <<EMAIL> dot <EMAIL> at <EMAIL> dot <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://...
758
971
#pragma once #include "loggers/loggers_util.h" #ifdef NOISEPAGE_USE_LOGGING namespace noisepage::optimizer { extern common::SanctionedSharedPtr<spdlog::logger>::Ptr optimizer_logger; void InitOptimizerLogger(); } // namespace noisepage::optimizer #define OPTIMIZER_LOG_TRACE(...) ::noisepage::optimizer::optimizer_...
384
315
/*************************************************************************** Copyright (c) 2019, Xilinx, 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 reta...
2,513
6,904
<gh_stars>1000+ { "name": "anypixel-udp-manager", "description": "Application that distributes bundled packets sent from ChromeBridge", "version": "1.0.0", "private": true, "scripts": { "preinstall": "npm install -g forever", "start": "forever start --minUptime 1000 --spinSleepTime 1000 udp-manager.js...
134
935
/* * Copyright 2016-2017 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
1,803
5,250
<filename>modules/flowable-event-registry/src/main/java/org/flowable/eventregistry/impl/model/OutboundChannelDefinitionBuilderImpl.java /* 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 * * ...
3,672
2,827
# Copyright (c) 2017-2019 Uber Technologies, Inc. # SPDX-License-Identifier: Apache-2.0 import torch from torch.autograd import grad from pyro.ops.linalg import eig_3d, rinverse from pyro.util import warn_if_nan def newton_step(loss, x, trust_radius=None): """ Performs a Newton update step to minimize loss ...
3,926
1,808
<gh_stars>1000+ package calendar; import java.util.List; import java.io.File; import java.util.ArrayList; import org.apache.thrift.TException; import org.apache.thrift.async.AsyncMethodCallback; import thrift.*; /** * Implementation of the calendar interface. A client request to any * method defined in the thrif...
932
2,216
model = dict( type='VoteNet', backbone=dict( type='PointNet2SASSG', in_channels=4, num_points=(2048, 1024, 512, 256), radius=(0.2, 0.4, 0.8, 1.2), num_samples=(64, 32, 16, 16), sa_channels=((64, 64, 128), (128, 128, 256), (128, 128, 256), (128...
1,444
403
""" NIPAP REST ============== This module contains the actual functions presented over the REST API. All functions are quite thin and mostly wrap around the functionalty provided by the backend module. """ import datetime import logging import time import pytz import json from functools import wraps fr...
3,258
1,008
/** * Copyright 2010 - 2021 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 a...
618
852
<gh_stars>100-1000 import FWCore.ParameterSet.Config as cms fileNames = cms.untracked.vstring( '/store/data/Commissioning09/Cosmics/RAW/v2/000/102/169/F6566668-4267-DE11-8354-001D09F2983F.root', )
97
2,151
<reponame>zipated/src<gh_stars>1000+ // Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "net/dns/dns_session.h" #include <list> #include <memory> #include <string> #include <utility> #includ...
2,784
7,018
/* Tencent is pleased to support the open source community by making Hippy available. * Copyright (C) 2018 THL A29 Limited, a Tencent company. 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...
965
1,444
package mage.cards.q; import java.util.UUID; import mage.MageInt; import mage.abilities.Ability; import mage.abilities.condition.CompoundCondition; import mage.abilities.condition.Condition; import mage.abilities.condition.common.AttackedThisStepCondition; import mage.abilities.condition.common.PermanentsOnTheBattlefi...
877
318
<filename>Common/OpenCL/ITKimprovements/itkOpenCLSize.cxx /*========================================================================= * * Copyright <NAME> and contributors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * Y...
1,618
1,063
# -*- coding: utf-8 -*- from .helper import ExtractHelper __all__ = [ 'ExtractHelper', ]
41
2,583
import arm if not arm.is_reload(__name__): arm.enable_reload(__name__) redraw_ui = False target = 'krom' last_target = 'krom' export_gapi = '' last_resx = 0 last_resy = 0 last_scene = '' last_world_defs = '' proc_play = None proc_build = None proc_publish_build = None ...
182
506
<reponame>Ashindustry007/competitive-programming<filename>cses/1145.cc // https://cses.fi/problemset/info/1145/ #include <iostream> #include <vector> using namespace std; typedef vector<int> vi; int main() { int n, x; cin >> n; vi a; while (n--) { cin >> x; auto it = lower_bound(a.beg...
211
3,094
<gh_stars>1000+ import spacy from torchtext.datasets import Multi30k from torchtext.data import Field, BucketIterator """ To install spacy languages use: python -m spacy download en python -m spacy download de """ spacy_eng = spacy.load("en") spacy_ger = spacy.load("de") def tokenize_eng(text): return [tok.text...
483
5,823
<filename>shell/platform/darwin/macos/framework/Source/FlutterExternalTextureMetal.h<gh_stars>1000+ // Copyright 2013 The Flutter 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 <Foundation/Foundation.h> #import "flutter/she...
374
1,260
package net.md_5.bungee; import lombok.Data; import net.md_5.bungee.api.Title; import net.md_5.bungee.api.chat.BaseComponent; import net.md_5.bungee.api.connection.ProxiedPlayer; import net.md_5.bungee.chat.ComponentSerializer; import net.md_5.bungee.protocol.DefinedPacket; import net.md_5.bungee.protocol.ProtocolCons...
2,426
3,287
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
775
793
<filename>examples/common/im3d_example.h<gh_stars>100-1000 #pragma once #include "im3d.h" // Compiler #if defined(__GNUC__) #define IM3D_COMPILER_GNU #elif defined(_MSC_VER) #define IM3D_COMPILER_MSVC #else #error im3d: Compiler not defined #endif // Platform #if defined(_WIN32) || defined(_WIN64) // Windows #...
2,499
1,089
package org.zalando.logbook.httpclient; import lombok.experimental.UtilityClass; import org.zalando.logbook.Logbook; @UtilityClass final class Attributes { static final String STAGE = Logbook.class.getName() + ".STAGE"; }
79
1,185
#include <syscalls.h> #include <stdarg.h> void *stdin, *stdout, *stderr; int _open(char *device, int flags); int open(char *device, int flags, ...) { va_list vl; va_start(vl, flags); if((flags & O_CREAT) != 0) { int mode = va_arg(vl, int); va_end(vl); (void)mode; // TODO: set mode int fd = creat...
180
965
<gh_stars>100-1000 //The following example attaches an HWND to the CWindow object and //calls CWindow::Invalidate() to invalidate the entire client area CWindow myWindow; myWindow.Attach(hWnd); myWindow.Invalidate();
74
2,113
<filename>Engine/source/gfx/D3D11/screenshotD3D11.cpp //----------------------------------------------------------------------------- // Copyright (c) 2016 GarageGames, LLC // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Sof...
1,212
397
<filename>src/engine/common/number_generator.hpp #pragma once #include <random> class NumberGenerator { protected: std::random_device rd; std::mt19937 gen; NumberGenerator() : gen(rd()) {} }; template<typename T> class RealNumberGenerator : public NumberGenerator { private: std::uniform_real_distribution<T>...
1,017
3,428
<gh_stars>1000+ {"id":"00104","group":"easy-ham-2","checksum":{"type":"MD5","value":"a682139cb63862f8b63756c454c01fe3"},"text":"From <EMAIL> Mon Jul 22 18:13:16 2002\nReturn-Path: <<EMAIL>>\nDelivered-To: yyyy<EMAIL>.netnoteinc.com\nReceived: from localhost (localhost [127.0.0.1])\n\tby phobos.labs.netnoteinc.com (Pos...
1,375
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...
564
3,799
<reponame>semoro/androidx<filename>camera/camera-extensions/src/main/java/androidx/camera/extensions/internal/VersionName.java<gh_stars>1000+ /* * 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 ...
619
3,570
<filename>MalmoEnv/proxyenv/malmoenvwrap.py # ------------------------------------------------------------------------------------------------ # Copyright (c) 2019 Microsoft Corporation # # Permission is hereby granted, free of charge, to any person obtaining a copy of this software and # associated documentation files...
638
13,889
__all__ = ('MultistrokeSettingsContainer', 'MultistrokeSettingItem', 'MultistrokeSettingBoolean', 'MultistrokeSettingSlider', 'MultistrokeSettingString', 'MultistrokeSettingTitle') from kivy.factory import Factory from kivy.lang import Builder from kivy.uix.gridlayout import GridLayout from kivy....
1,274
14,668
// Copyright 2020 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/signin/logout_tab_helper.h" #include "chrome/browser/profiles/profile.h" #include "chrome/browser/signin/identity_manager_factor...
484
2,690
<reponame>PushyamiKaveti/kalibr import bsplines import numpy def createExpBSpline(geometry, splineOrder, time_min, time_max, segmentNumber): bs = bsplines.BSpline(splineOrder) bs.initConstantSpline(time_min, time_max, segmentNumber, numpy.array((0,))) return ExponentialBSpline(geometry, bs) cl...
583
2,453
<gh_stars>1000+ // // Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 30 2020 21:18:12). // // Copyright (C) 1997-2019 <NAME>. // #import <objc/NSObject.h> @class NSString; @interface DVTPlistParser : NSObject { const unsigned short *begin; const unsigned short *curr; const unsigned...
346
3,121
try: from gensim.models import KeyedVectors except ImportError: # No installation required if not using this function pass from nlpaug.model.word_embs import WordEmbeddings class Fasttext(WordEmbeddings): # https://arxiv.org/pdf/1712.09405.pdf, def __init__(self, top_k=100, skip_check=False): ...
323
3,968
from ...error import GraphQLError from .base import ValidationRule class UniqueVariableNames(ValidationRule): __slots__ = 'known_variable_names', def __init__(self, context): super(UniqueVariableNames, self).__init__(context) self.known_variable_names = {} def enter_OperationDefinition(s...
391
1,339
<reponame>qtcwt/robin_stocks import os import robin_stocks.tda as t from dotenv import load_dotenv load_dotenv() class TestAuthentication: def test_login(self): t.login(os.environ['tda_encryption_passcode']) assert t.get_login_state() class TestStocks: ticker = "TSLA" @classmethod ...
262
14,668
// Copyright 2020 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_WINHTTP_PROXY_CONFIGURATION_H_ #define COMPONENTS_WINHTTP_PROXY_CONFIGURATION_H_ #include <windows.h> #include <winhttp.h> #include "...
781
5,169
<reponame>Gantios/Specs<gh_stars>1000+ { "name": "HSCustomView", "version": "0.0.9", "summary": "HSCustomView is my custom view library at working. This will bring convenience for later work.", "description": "The custom view library contains any views. For example progressView, ... and so on! This will bring c...
317
2,151
<gh_stars>1000+ // 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. #include "base/debug/thread_heap_usage_tracker.h" #include <map> #include "base/allocator/allocator_shim.h" #include "base/allocator/bui...
7,733
831
<gh_stars>100-1000 /* * Copyright (C) 2019 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 * * Unl...
2,284
482
<filename>modules/caas/auth/src/main/java/io/cattle/platform/iaas/api/auth/integration/interfaces/TokenCreator.java package io.cattle.platform.iaas.api.auth.integration.interfaces; import io.cattle.platform.iaas.api.auth.identity.Token; import io.github.ibuildthecloud.gdapi.request.ApiRequest; public interface TokenC...
150
375
package io.lumify.dbpedia.mapreduce; import io.lumify.core.mapreduce.LumifyMRBase; import io.lumify.core.util.LumifyLogger; import io.lumify.core.util.LumifyLoggerFactory; import org.apache.accumulo.core.data.Mutation; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.Path; import org.apache.had...
715
7,409
from posthog.settings.base_variables import E2E_TESTING, TEST from posthog.settings.overrides import cmd from posthog.settings.service_requirements import SKIP_SERVICE_VERSION_REQUIREMENTS from posthog.settings.utils import get_from_env, str_to_bool AUTO_START_ASYNC_MIGRATIONS = get_from_env("AUTO_START_ASYNC_MIGRATIO...
340
305
//***************************************************************************** // Copyright 2021 Intel 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.ap...
1,004
1,553
<gh_stars>1000+ /* * The MIT License (MIT) * * Copyright © 2015-2016 Franklin "Snaipe" Mathieu <http://snai.pe/> * * 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, ...
881
1,664
<gh_stars>1000+ { "report_name" : "jobtracker_jobs_running_report", "report_type" : "standard", "title" : "Jobs Running", "vertical_label" : "Number Of Jobs", "series" : [ { "metric": "mapred.jobtracker.jobs_running", "color": "ff0000", "label": "Jobs Running", "line_width": "2", "type": "...
145
609
/* * main.c - TASCII.BIN * * Aplicativo de teste para o sistema operacional Gramado. * Exibe os acarteres da tabela ascii. * @todo: Pode haver alguma seleção, baseada em argumentos. * @todo: usar apenas a libC. * * 2018 - <NAME>. */ #include <stdarg.h> #include <stddef.h> #include <stdio.h> #include <stdlib....
612
3,084
<reponame>ixjf/Windows-driver-samples<filename>network/wlan/WDI/COMMON/Protocol802_11.c #include "Mp_Precomp.h" #if WPP_SOFTWARE_TRACE #include "Protocol802_11.tmh" #endif static u2Byte sPacketIEOffsetTable[] = { sMacHdrLng + 4, //SubType_Asoc_Req = 0, sMacHdrLng + 6, //SubType_Asoc_Rsp = 1, sMacH...
25,702
852
<filename>SimG4Core/CustomPhysics/src/CustomPDGParser.cc #include <SimG4Core/CustomPhysics/interface/CustomPDGParser.h> #include <cstdlib> // check for R-hadron with gluino content bool CustomPDGParser::s_isgluinoHadron(int pdg) { int pdgAbs = abs(pdg); return ((pdgAbs % 100000 / 10000 == 9) || (pdgAbs % 10000 / 1...
1,948
1,056
<reponame>arusinha/incubator-netbeans /* * 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...
2,730
868
/* * 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 n...
2,975
379
<reponame>joelostblom/dash-docs<gh_stars>100-1000 from .import index from .import content_module
35
456
// SPDX-License-Identifier: BSD-3-Clause // Copyright (c) 2020 <NAME> // All rights reserved. #include <djvCore/OS.h> #include <djvCore/Error.h> #include <djvCore/String.h> #include <djvCore/StringFormat.h> #if defined(DJV_PLATFORM_MACOS) #include <ApplicationServices/ApplicationServices.h> #include <CoreFoundation/...
2,566
4,873
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. #pragma once #include "../../codegen/NativeLinkingManagerSpec.g.h" #include <NativeModules.h> #include <winrt/Windows.ApplicationModel.h> #include <winrt/Windows.Foundation.h> #include <winrt/Windows.Graphics.Display.h> namespace M...
604
2,872
<reponame>sathishmscict/Material-Movies /* * Copyright (C) 2015 <NAME>. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requ...
578
938
<gh_stars>100-1000 //===--- AMDGPUMetadata.cpp -------------------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===--------...
3,912
539
#include "custom_protocols.h" #include "multi_index.h" #include "precompiled.h" #include "container_extensibility.h" template <typename Protocols, typename T, size_t N> bool Compare(const std::array<T, N>& left, const std::array<T, N>& right) { static_assert(N > 0, "must have non-empty static strings"); cons...
2,649
380
<gh_stars>100-1000 # oxAuth is available under the MIT License (2008). See http://opensource.org/licenses/MIT for full text. # Copyright (c) 2016, Gluu # # Author: <NAME> (based on acr_routerauthenticator.py) # # NOTE: before using this script, see the accompanying readme file from org.gluu.oxauth.security import Iden...
1,327
9,782
<reponame>willianfonseca/presto<filename>presto-iceberg/src/main/java/com/facebook/presto/iceberg/ManifestsTable.java /* * 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....
2,605
480
<filename>ck/repo/module/artifact/.cm/meta.json { "actions": { "snapshot": { "desc": "snapshot artifact with all repo deps" } }, "bat_prepare_virtual_ck": "prepare_virtual_ck", "bat_start_virtual_ck": "start_virtual_ck", "copyright": "See CK COPYRIGHT.txt for copyright details", "desc": "artif...
256
665
<reponame>kstepanmpmg/mldb // This file is part of MLDB. Copyright 2015 mldb.ai inc. All rights reserved. #define BOOST_TEST_MAIN #define BOOST_TEST_DYN_LINK #include "mldb/types/periodic_utils.h" #include <boost/test/unit_test.hpp> #include "mldb/arch/exception.h" using namespace std; using namespace MLDB; BOOST_A...
1,890
365
/* * 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 (at your option) any later version. * * This program is distributed in the hope that it will be use...
5,548