max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
426
package com.richardradics.commons.util; import android.content.Context; import android.util.DisplayMetrics; import android.util.TypedValue; /** * Created by <NAME> on 2014.12.08.. */ public class TextUtil { private final static String EMPTY_STRING = ""; private final static String THREE_DOTS = "…"; pu...
635
682
<reponame>pengwei1024/JsBridge package com.apkfuns.jsbridgesample.util; import android.graphics.Bitmap; /** * Created by pengwei on 2017/8/5. */ public abstract class TakePhotoResult { public abstract void onSuccess(Bitmap bitmap); public void onFailure(String error) { } }
103
558
from .article import Article from .article_tag import ArticleTag from .category import Category from .series import Series from .series_article import SeriesArticle from .series_tag import SeriesTag from .tag import Tag
51
614
import json import argparse import time import random import numpy as np from evaluate_type_system import fix_and_parse_tags from wikidata_linker_utils.json import load_config from wikidata_linker_utils.type_collection import TypeCollection from wikidata_linker_utils.progressbar import get_progress_bar from wikidata_...
4,096
997
<reponame>mkannwischer/PQClean<gh_stars>100-1000 #ifndef PQCLEAN_MCELIECE6960119_AVX_VEC256_H #define PQCLEAN_MCELIECE6960119_AVX_VEC256_H /* This file is for functions related to 256-bit vectors including functions for bitsliced field operations */ #include "vec128.h" #include <immintrin.h> typedef __m256i vec...
1,017
8,805
//---------------------------------------------------------------------------// // Copyright (c) 2013 <NAME> <<EMAIL>> // // Distributed under the Boost Software License, Version 1.0 // See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt // // See http://boostorg.github.com/c...
1,076
852
import FWCore.ParameterSet.Config as cms jetChargeProducer = cms.EDProducer("JetChargeProducer", var = cms.string('Pt'), src = cms.InputTag("ak4JTA"), exp = cms.double(1.0) )
80
1,100
<filename>Exercise_21/Exercise_21_02/Exercise_21_02.java /********************************************************************************* * (Display nonduplicate words in ascending order) Write a program that reads * * words from a text file and displays all the nonduplicate words in ascending * * order. The t...
480
1,867
package net.glowstone.block.entity.state; import com.destroystokyo.paper.loottable.LootableBlockInventory; import lombok.Getter; import lombok.Setter; import net.glowstone.block.GlowBlock; import net.glowstone.block.GlowBlockState; import net.kyori.adventure.text.Component; import org.bukkit.Nameable; import org.bukki...
1,640
419
#ifndef __API_INC_SSL_H #define __API_INC_SSL_H #ifdef __cplusplus extern "C"{ #endif typedef enum{ SSL_VERSION_SSLv3 = 0, SSL_VERSION_TLSv1 , SSL_VERSION_TLSv1_1 , SSL_VERSION_TLSv1_2 , SSL_VERSION_MAX }SSL_Version_t; typedef enum{ SSL_ERROR_NONE = 0x00 , SSL_ERROR_PARAM ...
3,529
422
<filename>libs/cherrypy/test/test_objectmapping.py<gh_stars>100-1000 import sys import cherrypy from cherrypy._cpcompat import ntou from cherrypy._cptree import Application from cherrypy.test import helper script_names = ["", "/foo", "/users/fred/blog", "/corp/blog"] class ObjectMappingTest(helper.CPWebCase): d...
7,037
1,639
<filename>Data Structures/HLD with Persistent Lazy Propagation.cpp #include<bits/stdc++.h> using namespace std; const int N = 1e5 + 9, mod = 1e9 + 9; template <const int32_t MOD> struct modint { int32_t value; modint() = default; modint(int32_t value_) : value(value_) {} inline modint<MOD> o...
5,569
2,710
<reponame>elafargue/cava #include "input/fifo.h" #include "input/common.h" #include <time.h> int open_fifo(const char *path) { int fd = open(path, O_RDONLY); int flags = fcntl(fd, F_GETFL, 0); fcntl(fd, F_SETFL, flags | O_NONBLOCK); return fd; } // input: FIFO void *input_fifo(void *data) { struc...
1,383
4,054
<reponame>Anlon-Burke/vespa<filename>config-model/src/main/java/com/yahoo/vespa/model/generic/builder/DomServiceBuilder.java // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.vespa.model.generic.builder; import com.yahoo.config.model.deploy.Deplo...
554
986
/********************************************************************** Sneedacity: A Digital Audio Editor Export.cpp <NAME> *******************************************************************//** \class Export \brief Main class to control the export function. *//********************************************...
18,855
4,606
import os import subprocess import pytest from dagster.utils import file_relative_path, pushd from dagster_postgres.utils import get_conn_string, wait_for_connection BUILDKITE = bool(os.getenv("BUILDKITE")) def is_postgres_running(): try: output = subprocess.check_output( [ "...
1,259
806
package org.grain.threadkeylock; import static org.junit.Assert.assertEquals; import org.junit.BeforeClass; import org.junit.Test; public class KeyLockManagerTest { public static String TEST1 = "TEST1"; public static String TEST2 = "TEST2"; public static String[] getkeyLockType() { return new String[] { TEST1...
948
2,326
<filename>surround360_camera_ctl_ui/source/ShutterComboBox.cpp /** * Copyright (c) 2016-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the license found in the * LICENSE_camera_ctl_ui file in the root directory of this subproject. */ #include "ShutterComboBox.hpp" #include <strin...
1,596
8,629
<gh_stars>1000+ #pragma once #include <Backups/BackupSettings.h> #include <Databases/DDLRenamingVisitor.h> #include <Core/QualifiedTableName.h> #include <Parsers/ASTBackupQuery.h> #include <Storages/IStorage_fwd.h> #include <Storages/TableLockHolder.h> #include <filesystem> namespace DB { class IBackupEntry; using ...
1,877
9,088
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. #pragma once #include <napa/module.h> #include <napa/transport/transport-context.h> namespace napa { namespace module { /// <summary> Interface for TransportContextWrap. </summary> class TransportContextWrap: publ...
188
1,546
/* * Copyright (C) 2018 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
3,205
393
<reponame>nFnK/otros-log-viewer /******************************************************************************* * Copyright 2011 <NAME> * <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 ...
1,427
3,227
// Copyright (c) 1998-2021 // Utrecht University (The Netherlands), // ETH Zurich (Switzerland), // INRIA Sophia-Antipolis (France), // Max-Planck-Institute Saarbruecken (Germany), // and Tel-Aviv University (Israel). All rights reserved. // // This file is part of CGAL (www.cgal.org) // // $URL$ // $Id$ // SPDX-Licen...
1,591
451
#ifndef CRANSAC_2DLINE_H #define CRANSAC_2DLINE_H #include "StdAfx.h" //pour utiliser MedianSup sur un vecteur #include "../../../include/ext_stl/numeric.h" enum ModelForm { a_plus_bx,bx }; class c2DLineModel { public: // constructeur du modèle ligne 2D à partir de 2 points c2DLineModel(); c2DLineMod...
1,451
561
<filename>rocksdb_replicator/non_blocking_condition_variable.h /// Copyright 2016 Pinterest 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...
1,857
844
<reponame>iprinceroyy/Hacktoberfest-2020<gh_stars>100-1000 { "github-username": "shrijaltamrakar", "favourite-emoji": "😴", "favourite-music": "https://soundcloud.com/linkin_park/one-more-light", "favourite-color": "#000" }
101
412
<filename>jbmc/regression/jdiff/java-tmp-vars-new/old/Test.java class B { void foo() {} } class A { B b = new B(); } public class Test { public A f00(A x) { return x; } public A f01(A z) { return org.cprover.CProver.nondetWithoutNull(); } }
119
317
// Released under the MIT License. See LICENSE for details. #include "ballistica/generic/utils.h" #include <fstream> #include <sstream> #include "ballistica/app/app_globals.h" #include "ballistica/generic/huffman.h" #include "ballistica/generic/json.h" #include "ballistica/generic/utf8.h" #include "ballistica/math/v...
10,068
575
// Copyright 2014 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 "ash/multi_user/user_switch_animator.h" #include "ash/multi_user/multi_user_window_manager_impl.h" #include "ash/public/cpp/multi_user_window_ma...
5,358
726
<gh_stars>100-1000 package com.yuyh.sprintnba.ui.presenter.impl; import android.content.Context; import com.yuyh.sprintnba.http.api.RequestCallback; import com.yuyh.sprintnba.http.api.tencent.TencentService; import com.yuyh.sprintnba.http.bean.match.MatchBaseInfo; import com.yuyh.sprintnba.ui.presenter.Presenter; imp...
731
778
#define EXPORT __declspec(dllexport) #include "custom_includes/id_translator.h" #include "includes/define.h" using namespace CSharpKratosWrapper; extern "C" { #if defined(KRATOS_COMPILED_IN_WINDOWS) EXPORT bool __stdcall Translator_HasSurfaceId(IdTranslator *instance, int kratosId) { return instance->hasSurface...
270
374
# Copyright 2019 DeepMind Technologies 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
782
625
<reponame>renesugar/jtransc package jtransc.bug; public class JTranscRegression2Test { static public boolean a = false; static public boolean b = true; static public void main(String[] args) { Class<?> clazz = Object[].class; System.out.println(clazz.isArray()); //System.out.println(clazz.getName()); //Sys...
217
3,269
<reponame>Sourav692/FAANG-Interview-Preparation<gh_stars>1000+ # Time: O(1) # Space: O(1) # Same problem from https://codingcompetitions.withgoogle.com/codejam/round/000000000019ffb9/00000000003384ea class Solution(object): def memLeak(self, memory1, memory2): """ :type memory1: int :type ...
626
3,102
// RUN: %clang_cc1 %s -verify -fsyntax-only // expected-no-diagnostics class C_in_class { #include "../Sema/attr-callback.c" }; struct Base { void no_args_1(void (*callback)(void)); __attribute__((callback(1))) void no_args_2(void (*callback)(void)); __attribute__((callback(callback))) void no_args_3(void (*c...
538
348
{"nom":"Pont-de-Roide-Vermondans","circ":"4ème circonscription","dpt":"Doubs","inscrits":3195,"abs":1632,"votants":1563,"blancs":80,"nuls":53,"exp":1430,"res":[{"nuance":"REM","nom":"<NAME>","voix":961},{"nuance":"FN","nom":"<NAME>","voix":469}]}
100
515
<reponame>luiz158/caelum-stella package br.com.caelum.stella.bean.validation.xml.logic; import javax.validation.ConstraintValidator; import javax.validation.ConstraintValidatorContext; import br.com.caelum.stella.bean.validation.xml.Length; /** * @deprecated Anotação deste validador está obsoleta */ @Deprecated pu...
314
3,756
<filename>examples/M4_competition/evaluate_fft.py<gh_stars>1000+ """Evaluating FFT model on M4 timeseries """ from darts import ModelMode from darts.models import FFT from darts.utils.statistics import check_seasonality, remove_from_series, extract_trend_and_seasonality from darts.utils import _build_tqdm_iterator i...
1,986
2,086
<gh_stars>1000+ /** Copyright 2010-2012 Twitter, Inc.*/ package org.apache.dolphinscheduler.common.utils; import java.net.InetAddress; import java.net.UnknownHostException; import java.util.Objects; /** * Rewriting based on Twitter snowflake algorithm */ public class CodeGenerateUtils { // start timestamp ...
1,080
8,054
#ifndef THEME_H #define THEME_H #include <QString> #include <QHash> #include <QJsonObject> #include <QPair> #include <QPixmap> namespace tests { class TestTheme; } namespace vnotex { class Theme { public: enum class File { Palette = 0, QtStyleSheet, ...
1,797
758
// // TKColorRendition.h // ThemeKit // // Created by <NAME> on 6/13/15. // Copyright © 2015 <NAME>. All rights reserved. // #import <ThemeKit/TKRendition.h> @interface TKColorRendition : TKRendition @property (nonatomic, strong) NSColor *color; @end
97
335
<gh_stars>100-1000 { "word": "Dux", "definitions": [ "The top pupil in a school or class.", "A Saxon chief or leader." ], "parts-of-speech": "Noun" }
86
1,010
<filename>hazelcast/src/main/java/com/hazelcast/jet/accumulator/PickAnyAccumulator.java /* * Copyright (c) 2008-2021, Hazelcast, Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy o...
1,350
357
/* PsychAlphaBlending.h PLATFORMS: Only OS X for now. AUTHORS: <NAME> awi <EMAIL> HISTORY: 1/7/04 awi Wrote it DESCRIPTION: Functions for getting and setting the alpha blending rule in windows. To assure consistent treatement of state ONLY functions in this file should be used as a gate...
393
550
/* * Copyright 2017 Google Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
2,444
995
/* * Copyright (C) 2016 * This file is part of GRASSMARLIN. */ package core.document.graph; import core.document.serialization.xml.XmlElement; import javafx.beans.property.*; import java.util.HashMap; import java.util.Map; public class MeshNode implements INode<MeshNode> { public static final String GROUP_P...
1,115
14,668
<gh_stars>1000+ // Copyright 2019 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_EXO_WAYLAND_FUZZER_SERVER_ENVIRONMENT_H_ #define COMPONENTS_EXO_WAYLAND_FUZZER_SERVER_ENVIRONMENT_H_ #include "base/te...
445
2,041
package com.airbnb.android.airmapview; public class LeafletBaiduMapType extends LeafletMapType { public LeafletBaiduMapType() { super("Baidu"); } }
58
12,278
<gh_stars>1000+ // Copyright <NAME> 2006. // Copyright <NAME> 2017. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_PARAMETER_AUX_PP_IMPL_MATCH_HPP #define BOOST_PARAMETER_AUX_PP_IMPL_MATCH_HPP #i...
692
2,151
<reponame>zipated/src<filename>third_party/blink/renderer/modules/webdatabase/database.h /* * Copyright (C) 2013 Apple 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. Redistributio...
3,296
13,057
<filename>src/main/java/org/mockito/internal/verification/SingleRegisteredInvocation.java /* * Copyright (c) 2007 Mockito contributors * This program is made available under the terms of the MIT License. */ package org.mockito.internal.verification; import java.io.Serializable; import java.util.Collections; import ...
316
6,907
<reponame>ReedSun/tui.editor { "name": "@toast-ui/react-editor", "version": "3.1.0", "description": "TOAST UI Editor for React", "files": [ "dist", "index.d.ts" ], "main": "dist/toastui-react-editor.js", "module": "dist/esm/index.js", "scripts": { "test:types": "tsc", "lint": "eslint .",...
451
480
<reponame>zhangxiansheng123/blog package com.minzheng.blog.constant; /** * mqprefix常量 * mq常量 * * @author yezhiqiu * @date 2021/07/28 */ public class MQPrefixConst { /** * maxwell交换机 */ public static final String MAXWELL_EXCHANGE = "maxwell_exchange"; /** * maxwell队列 */ publi...
269
852
#include "Geometry/CommonTopologies/interface/RectangularStripTopology.h" #include <iostream> #include <cmath> #include <algorithm> RectangularStripTopology::RectangularStripTopology(int ns, float p, float l) : thePitch(p), theNumberOfStrips(ns), theStripLength(l) { theOffset = -0.5f * theNumberOfStrips * thePi...
833
1,350
<reponame>Manny27nyc/azure-sdk-for-java // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. /** * Package containing the classes for SearchManagementClient. Client that can be used to manage Azure Cognitive Search ...
101
372
/* Editor Settings: expandtabs and use 4 spaces for indentation * ex: set softtabstop=4 tabstop=8 expandtab shiftwidth=4: * * -*- mode: c, c-basic-offset: 4 -*- */ /* * Copyright © BeyondTrust Software 2004 - 2019 * All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you m...
2,749
2,053
/* * Copyright 2015 the original author or authors. * @https://github.com/scouter-project/scouter * * 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/licen...
620
3,380
<reponame>vanshhhhh/datasets # coding=utf-8 # Copyright 2021 The TensorFlow Datasets 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....
3,296
741
package com.sjhy.plugin.service; import com.sjhy.plugin.dto.SettingsStorageDTO; /** * 导出导入设置服务 * * @author makejava * @version 1.0.0 * @date 2021/08/11 17:24 */ public interface ExportImportSettingsService { /** * 导出设置 * * @param settingsStorage 要导出的设置 */ void exportConfig(SettingsS...
234
1,461
<filename>hlslang/Include/PoolAlloc.h<gh_stars>1000+ // Copyright (c) The HLSL2GLSLFork Project Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE.txt file. #ifndef _POOLALLOC_INCLUDED_ #define _POOLALLOC_INCLUDED_ // Arena allocator that c...
2,243
695
<gh_stars>100-1000 #pragma once namespace keops { /////////////////////////////////////////// // Replace a value at position N in pack // /////////////////////////////////////////// template< class P, int V, int N > struct ReplaceInPack_Alias { using NEXTPACK = typename P::NEXT; using type = typename ReplaceInPa...
205
12,278
<reponame>rajeev02101987/arangodb /* Copyright 2003-2018 <NAME>. * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE_1_0.txt or copy at * http://www.boost.org/LICENSE_1_0.txt) * * See http://www.boost.org/libs/multi_index for library home page. */ #include <boost/multi_i...
169
1,103
/* * Copyright 2021 Netflix, 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 appli...
1,229
413
# coding = utf-8 # pylint: disable=invalid-name, no-member """lib informantion about mini-caffe""" from __future__ import absolute_import import os import sys import ctypes import numpy as np # types BlobHandle = ctypes.c_void_p NetHandle = ctypes.c_void_p real_t = ctypes.c_float def find_lib_path(): """find l...
1,384
686
/* * (C) Copyright IBM Corp. 2017, 2020. * * 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 t...
1,300
6,098
<filename>h2o-core/src/main/java/hex/segments/SegmentModelsStats.java<gh_stars>1000+ package hex.segments; import water.Iced; class SegmentModelsStats extends Iced<SegmentModelsStats> { int _succeeded; int _failed; void reduce(SegmentModelsStats other) { _succeeded += other._succeeded; _failed += other...
171
740
<gh_stars>100-1000 /* * * Copyright (c) 2015 - 2021 by blindtiger. All rights reserved. * * The contents of this file are subject to the Mozilla Public 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.m...
2,684
385
<gh_stars>100-1000 /** * Standalone Gelf support. */ package biz.paluch.logging.gelf.standalone;
38
5,169
<reponame>Gantios/Specs { "name": "ScreenCaptureDetector", "version": "0.1.0", "summary": "ScreenCaptureDetector is heler tool that can detect if the application is being capture via mirror screen or recorded", "description": "ScreenCaptureDetector is heler tool that can detect if the application is being captu...
360
3,562
// 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...
580
872
#!/usr/bin/python3 """ Given an array A of integers, return true if and only if it is a valid mountain array. Recall that A is a mountain array if and only if: A.length >= 3 There exists some i with 0 < i < A.length - 1 such that: A[0] < A[1] < ... A[i-1] < A[i] A[i] > A[i+1] > ... > A[B.length - 1] Example 1: Inp...
543
16,989
<reponame>kjlubick/bazel<gh_stars>1000+ /* * ProGuard -- shrinking, optimization, obfuscation, and preverification * of Java bytecode. * * Copyright (c) 2002-2019 Guardsquare NV * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public Lic...
1,971
3,807
<gh_stars>1000+ /* * Copyright 2017 Google * * 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 o...
401
510
#ifndef _TEMP_VALUE_XML_H_ #define _TEMP_VALUE_XML_H_ extern WND_TREE g_temp_value_view_children[]; #endif
54
9,959
<filename>test/transform/resource/after-delombok/GetterOnRecord.java // version 14: public record GetterOnRecord(String a, String b) { }
44
368
// // DDContactObserverManager.h // Duoduo // // Created by zuoye on 13-11-25. // Copyright (c) 2013年 zuoye. All rights reserved. // #import <Foundation/Foundation.h> @class DDListObject; @protocol DDContactObserverManager <NSObject> -(NSSet *)updateListObject:(DDListObject *)inObject keys(NSSet *)inModifiedKey...
146
1,442
<filename>apps/code/console_edit_cell.cpp #include "console_edit_cell.h" #include "console_controller.h" #include <escher/app.h> #include <apps/i18n.h> #include <apps/global_preferences.h> #include <assert.h> #include <algorithm> using namespace Escher; namespace Code { ConsoleEditCell::ConsoleEditCell(Responder * p...
863
7,737
<gh_stars>1000+ #ifdef HAVE_CONFIG_H #include "../../ext_config.h" #endif #include <php.h> #include "../../php_ext.h" #include "../../ext.h" #include <Zend/zend_operators.h> #include <Zend/zend_exceptions.h> #include <Zend/zend_interfaces.h> #include "kernel/main.h" #include "kernel/fcall.h" #include "kernel/memory...
1,820
748
#!/usr/bin/env python # -*- coding: utf-8 -*- import difflib import json import os import re import subprocess import unittest TEST_ROOT = os.path.dirname(__file__) PROJECT_ROOT = os.path.dirname(TEST_ROOT) HOEDOWN = [os.path.abspath(os.path.join(PROJECT_ROOT, 'hoedown'))] TIDY = ['tidy', '--show-body-only', '1', '--...
1,425
1,142
#include <robin_hood.h> #include <app/doctest.h> TYPE_TO_STRING(robin_hood::unordered_flat_map<int, int>); TYPE_TO_STRING(robin_hood::unordered_node_map<int, int>); TEST_CASE_TEMPLATE("empty map operations", Map, robin_hood::unordered_flat_map<int, int>, robin_hood::unordered_node_map<int, int>) {...
678
303
/* Copyright (C) 2005-2011 <NAME> */ package com.lightcrafts.app.menu; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.lang.ref.WeakReference; import javax.swing.*; import com.lightcrafts.app.ComboFrame; import com.lightcrafts.ui.editor.EditorMode; import com.lightcrafts.ui.edito...
473
1,350
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import com.azure.r...
3,473
839
<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 licenses this file * to you under the Apache License, Version 2.0 (the ...
3,548
6,497
package com.sohu.tv.cachecloud.client; import com.alibaba.fastjson.JSONObject; import com.google.common.collect.Lists; import com.sohu.tv.cc.client.spectator.heartbeat.ClientStatusEnum; import com.sohu.tv.cc.client.spectator.util.Constants; import com.sohu.tv.cc.client.spectator.util.HttpUtils; import com.sohu.tv.cc.c...
5,025
2,625
<gh_stars>1000+ from base import pipeline, clean_db import os import random import signal from subprocess import check_output, CalledProcessError import threading import time def _get_pids(grep_str): try: out = check_output('ps aux | grep "postgres" | grep "%s"' % grep_str, shell=True).split('\n'...
1,945
348
<filename>playbooks/custom_functions/workbook_list.py def workbook_list(**kwargs): """ Return a list of all the workbooks on this Phantom instance. This might be useful to display possible options for workbooks to add to this event. Returns a JSON-serializable object that implements the configured data...
855
348
<reponame>chamberone/Leaflet.PixiOverlay {"nom":"Saint-Laurent-des-Vignes","circ":"2ème circonscription","dpt":"Dordogne","inscrits":664,"abs":320,"votants":344,"blancs":17,"nuls":5,"exp":322,"res":[{"nuance":"REM","nom":"<NAME>","voix":215},{"nuance":"FN","nom":"<NAME>","voix":107}]}
118
1,056
<reponame>timfel/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, Version 2....
1,474
1,165
package com.tmobile.pacbot.azure.inventory.vo; public class RegAppCertificateVH { private String customKeyIdentifier; private String endDateTime; private String keyId; private String startDateTime; private String type; private String usage; private String key; private String displayName; public String getCus...
461
35,083
/* * 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 ...
630
544
<gh_stars>100-1000 // // NSBundle+LFAdd.h // // // Created by guoyaoyuan on 14-10-20. // Copyright (c) 2014 live Interactive. All rights reserved. // #import <Foundation/Foundation.h> /** Provides extensions for `NSBundle` to get resource by @2x or @3x... 优先根据屏幕scale来搜索。 搜索不到时先 */ @interface NSBundle (LFNSBu...
1,112
1,475
<filename>geode-gfsh/src/main/java/org/apache/geode/management/internal/cli/result/CommandResult.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. Th...
2,206
339
<gh_stars>100-1000 package org.conceptoriented.bistro.server.connectors; import org.conceptoriented.bistro.core.*; import org.conceptoriented.bistro.server.*; import org.conceptoriented.bistro.server.actions.*; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.time.Duration; import java.time.Insta...
1,863
1,350
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package com.azure.data.tables.models; import com.azure.core.annotation.Fluent; /** * The Table service retention policy. */ @Fluent public final class TableServiceRetentionPolicy { /* * Indicates whether a rete...
678
324
<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 licenses this file to You under the Apache License, Version 2.0 * (the "...
1,814
1,083
//===-- OptimizerStatsUtils.cpp - Utils for collecting stats -*- C++ ---*-===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
12,623
514
<gh_stars>100-1000 /* Copyright (c) 2019, Arm Limited and Contributors * * SPDX-License-Identifier: MIT * * 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 ...
1,804
335
<reponame>mrslezak/Engine<filename>OREData/ored/portfolio/legbuilders.cpp /* Copyright (C) 2018 Quaternion Risk Management Ltd All rights reserved. This file is part of ORE, a free-software/open-source library for transparent pricing and risk analysis - http://opensourcerisk.org ORE is free software: you can red...
6,517
14,668
<gh_stars>1000+ // 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 CHROME_BROWSER_FEEDBACK_SYSTEM_LOGS_LOG_SOURCES_LACROS_LOG_FILES_LOG_SOURCE_H_ #define CHROME_BROWSER_FEEDBACK_SYSTEM_LOGS_LOG_SOU...
833
7,737
#ifdef HAVE_CONFIG_H #include "../../../../ext_config.h" #endif #include <php.h> #include "../../../../php_ext.h" #include "../../../../ext.h" #include <Zend/zend_operators.h> #include <Zend/zend_exceptions.h> #include <Zend/zend_interfaces.h> #include "kernel/main.h" #include "kernel/fcall.h" #include "kernel/obje...
23,638