max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
6,851
request = { "method": "GET", "uri": uri("/test"), "version": (1, 1), "headers": [ ("USER-AGENT", "curl/7.18.0 (i486-pc-linux-gnu) libcurl/7.18.0 OpenSSL/0.9.8g zlib/1.2.3.3 libidn/1.1"), ("HOST", "0.0.0.0=5000"), ("ACCEPT", "*/*") ], "body": b"" }
171
933
<reponame>ztlevi/perfetto /* * 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 *...
2,814
1,056
<reponame>Antholoj/netbeans<gh_stars>1000+ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache Li...
447
1,902
# coding=utf-8 # Copyright 2018 Google LLC & <NAME>. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
2,251
416
<gh_stars>100-1000 package org.springframework.roo.converters; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; import static org.mockito.Mockito.when; import java.util.ArrayList; import java.util.A...
1,527
335
# ***************************************************************************** # # Copyright (c) 2020, the pyEX authors. # # This file is part of the pyEX library, distributed under the terms of # the Apache License 2.0. The full license can be found in the LICENSE file. # from functools import wraps import pandas a...
383
357
/* * Copyright © 2016 VMware, Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the “License”); you may not * use this file except in compliance with the License. You may obtain a copy * of the License at http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable l...
469
1,133
/* Copyright 2015 <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 at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writi...
924
1,212
<gh_stars>1000+ // Copyright 2014-2015 <NAME> // MIT licensed (see LICENSE for details) #include "StrongLink.h" #include "SLNDB.h" #define CACHE_SIZE 1000 #define PASS_LEN 16 // Default for auto-generated passwords // TODO: Put this somewhere. #define ENTROPY_BYTES 8 static char *tohex2(char const *const buf, size_...
4,731
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...
4,120
1,681
#!/usr/bin/env python import warnings from sklearn.decomposition import PCA, FastICA, IncrementalPCA, KernelPCA, FactorAnalysis, TruncatedSVD, SparsePCA, MiniBatchSparsePCA, DictionaryLearning, MiniBatchDictionaryLearning from sklearn.manifold import TSNE, MDS, SpectralEmbedding, LocallyLinearEmbedding, Isomap from um...
2,750
8,664
<gh_stars>1000+ //------------------------------------------------------------------------------------------------------- // Copyright (C) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. //-----------------------------------------...
3,005
1,570
// SPDX-License-Identifier: Apache-2.0 // ---------------------------------------------------------------------------- // Copyright 2011-2020 Arm 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 ...
810
791
<reponame>ozkl/soso #include <unistd.h> #include "syscall.h" int ftruncate(int fd, off_t length) { //return syscall(SYS_ftruncate, fd, __SYSCALL_LL_O(length)); return syscall(SYS_ftruncate, fd, (int)length); } weak_alias(ftruncate, ftruncate64);
121
608
<reponame>pioneerz/FloatBall package com.huxq17.example.floatball; import android.content.Context; import android.content.SharedPreferences; import com.buyi.huxq17.serviceagency.annotation.ServiceAgent; import com.huxq17.floatball.libarary.LocationService; @ServiceAgent public class SimpleLocationService implements ...
421
389
<gh_stars>100-1000 /*-------------------------------------------*/ /* Integer type definitions for FatFs module */ /*-------------------------------------------*/ // This file is ugly because it defines types like BYTE which have other defines // in the Arduino / MPIDE types. So only define these for the FATFS code, a...
593
377
/******************************************************************************* * * Copyright 2012 Impetus Infotech. * * * * Licensed under the Apache License, Version 2.0 (the "License"); * * you may not use this file except in compliance with the License. * * You may obtain a copy of the License at * * *...
4,432
414
// // fun_objc.h // async_wake_ios // // Created by George on 16/12/17. // Copyright © 2017 <NAME>. All rights reserved. // #ifndef fun_objc_h #define fun_objc_h const char* progname(const char*); #endif /* fun_objc_h */
94
4,054
// Copyright 2019 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.searchdefinition.derived; import com.yahoo.search.Query; import com.yahoo.search.query.profile.compiled.CompiledQueryProfileRegistry; import com.yahoo.search.query.profile.config.QueryProf...
543
1,473
<gh_stars>1000+ /* * Copyright 2018 Naver Corp. * * 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 l...
989
307
<gh_stars>100-1000 package com.tairanchina.csp.avm.service; import com.tairanchina.csp.avm.dto.ServiceResult; /** * Created by hzlizx on 2018/6/21 0021 */ public interface AndroidVersionService { /** * 找到当前最新的版本 * * @param tenantAppId 应用ID * @param version 当前APP版本 * @param channelC...
384
585
<reponame>madrob/solr /* * 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 * (th...
5,788
619
/* * Author: <NAME> <<EMAIL>> * Copyright (c) 2016 Intel Corporation. * * This program and the accompanying materials are made available under the * terms of the The MIT License which is available at * https://opensource.org/licenses/MIT. * * SPDX-License-Identifier: MIT */ #pragma once #include <string> #inc...
1,740
318
<gh_stars>100-1000 #import <UIKit/UIKit.h> FOUNDATION_EXPORT double DynamicColorVersionNumber; FOUNDATION_EXPORT const unsigned char DynamicColorVersionString[];
51
1,365
#!/usr/bin/env python # Toy program to generate inverted index of word to line. # Takes input text file on stdin and prints output index on stdout. import sys import os words = {} mainfile = sys.argv[1] indexfile = sys.argv[1] + ".idx1" main = open(mainfile) index = open(indexfile, "w") linenum = 0 for l in main:...
382
411
package com.kiminonawa.mydiary.entries.diary; import android.app.ProgressDialog; import android.content.Context; import android.graphics.Bitmap; import android.net.Uri; import android.os.AsyncTask; import android.util.Log; import com.kiminonawa.mydiary.R; import com.kiminonawa.mydiary.shared.photo.BitmapHelper; impor...
1,836
1,738
from __future__ import absolute_import from .simulator import * def is_available(): """Returns a boolean to indicate the availability of a CUDA GPU. """ # Simulator is always available return True def cuda_error(): """Returns None or an exception if the CUDA driver fails to initialize. """ ...
110
1,025
// // RSVerticallyCenteredTextFieldCell.h // RSCommon // // Created by <NAME> on 6/17/06. // Copyright 2006 Red Sweater Software. All rights reserved. // #import <Cocoa/Cocoa.h> @interface RSVerticallyCenteredTextFieldCell : NSTextFieldCell { BOOL mIsEditingOrSelecting; } @end
108
3,710
<gh_stars>1000+ #pragma once #ifndef CURVEIO_H #define CURVEIO_H #include <string> class TDoubleParam; void saveCurve(TDoubleParam *curve); void loadCurve(TDoubleParam *curve); void exportCurve(TDoubleParam *curve, const std::string &name); #endif
100
429
/** * (C) Copyright 2016-2021 Intel Corporation. * * SPDX-License-Identifier: BSD-2-Clause-Patent */ /** * This file is part of vos * * vos/tests/vts_common.h */ #ifndef __VTS_COMMON_H__ #define __VTS_COMMON_H__ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <inttypes.h> #include <cmocka.h>...
1,473
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. #include "ui/native_theme/native_theme_android.h" #include "base/logging.h" #include "ui/gfx/geometry/size.h" namespace ui { namespace { // These a...
604
781
//------------------------------------------------------------------------------------------------------- // Copyright (C) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. //---------------------------------------------------------...
173
852
#include <iostream> #include <sstream> #include <fstream> #include <xercesc/dom/DOMNode.hpp> #include <xercesc/dom/DOM.hpp> #include <xercesc/parsers/XercesDOMParser.hpp> #include "Utilities/Xerces/interface/Xerces.h" #include "Utilities/Xerces/interface/XercesStrUtils.h" #include <xercesc/util/XMLString.hpp> #include ...
1,853
396
/* Copyright 2018 Google Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in ...
2,180
3,372
/* * Copyright Amazon.com, Inc. or its affiliates. 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://aws.amazon.com/apache2.0 * * This file is distr...
398
777
<reponame>kjthegod/chromium<gh_stars>100-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 "dbus/mock_exported_object.h" namespace dbus { MockExportedObject::MockExportedObject(Bus* bu...
198
7,137
<filename>server-core/src/main/java/io/onedev/server/security/DefaultPasswordService.java package io.onedev.server.security; import java.util.regex.Pattern; import javax.inject.Singleton; import org.apache.shiro.authc.credential.PasswordService; import io.onedev.commons.utils.StringUtils; import io.onedev.server.mo...
728
318
<reponame>eliseemond/elastix /*========================================================================= * * Copyright UMC Utrecht and contributors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of ...
942
14,668
<filename>extensions/browser/api/declarative_net_request/global_rules_tracker.cc // 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 "extensions/browser/api/declarative_net_request/global_rules_tra...
2,336
460
<gh_stars>100-1000 #include "../../../tools/assistant/lib/qclucenefieldnames_p.h"
36
732
<filename>c/spot/source/gasp.h /* Copyright 2014 Adobe Systems Incorporated (http://www.adobe.com/). All Rights Reserved. This software is licensed as OpenSource, under the Apache License, Version 2.0. This license is available at: http://opensource.org/licenses/Apache-2.0. */ /* * gasp table support. */ #ifn...
175
433
/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 4.0.0 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * ------------------------------...
2,570
702
<reponame>lailiuyuan/besu /* * Copyright ConsenSys AG. * * 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 l...
402
4,067
#include "Cello.h" static const char* Tree_Name(void) { return "Tree"; } static const char* Tree_Brief(void) { return "Balanced Binary Tree"; } static const char* Tree_Description(void) { return "The `Tree` type is a self balancing binary tree implemented as a red-black " "tree. It provides key-value a...
9,044
3,083
<reponame>utumen/binnavi // Copyright 2011-2016 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applic...
646
488
#include <vector> #include <assert.h> #include "rosetollvm/Utf8.h" // Define static member variables Utf8::BadUnicodeException Utf8::bad_unicode_exception; Utf8::BadUtf8CodeException Utf8::bad_utf8_code_exception; Utf8::WrongCharKindException Utf8::wrong_char_kind_exception; /** * Compute the code value of a Unicode...
8,602
852
<filename>tools/input/main.cpp /* * deepRL */ #include "devInput.h" int main( int argc, char** argv ) { printf("deepRL-input\n"); // scan for devices DeviceList devices; InputDevices::Enumerate(devices); // create input manager device InputDevices* mgr = InputDevices::Create(); if( !mgr ) return 0; /...
166
1,229
<gh_stars>1000+ # pylint: disable=unused-import # type: ignore """Computations for plot_diff([df1, df2, ..., dfn]).""" from collections import UserList, OrderedDict from typing import Any, Callable, Dict, List, Tuple, Union, Optional import pandas as pd import numpy as np import dask import dask.array as da import da...
5,302
737
/* cuda.cc <NAME>, 10 March 2009 Copyright (c) 2009 <NAME>. All rights reserved. CUDA implementation. dlopens and initializes CUDA if it's available on the system. */ #include <cal.h> #include <iostream> #include "format.h" #include "jml/utils/guard.h" #include <boost/bind.hpp> #include "jml/utils/envir...
3,931
522
<filename>core/src/main/java/org/jivesoftware/spark/ui/HorizontalLineEntry.java /* * Copyright (C) 2017 Ignite Realtime Foundation. 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 ...
540
5,865
<filename>server/src/test-fast/java/com/thoughtworks/go/config/update/CreateArtifactStoreConfigCommandTest.java<gh_stars>1000+ /* * Copyright 2021 ThoughtWorks, 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 obta...
590
1,403
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function import os import numpy as np import tensorflow as tf from niftynet.engine.sampler_grid_v2 import \ GridSampler, _enumerate_step_points, grid_spatial_coordinates from niftynet.io.image_reader import ImageReader from nifty...
7,267
2,077
/** Copyright (c) 2015-present, Facebook, Inc. 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. */ #include <pbxproj/ISA.h> namespace pbxproj { namespace ISA { char const * const PBXAggregateTarget = "PBXAggregate...
486
1,148
package com.storeinc; import java.io.BufferedReader; import java.io.File; import java.io.FileInputStream; import java.io.InputStreamReader; import java.security.MessageDigest; import java.util.ArrayList; import java.util.List; import java.util.StringTokenizer; import com.alibaba.fastjson.JSONArray; import com.alib...
9,537
432
/*- * BSD LICENSE * * Copyright (c) 2015-2017 Amazon.com, Inc. or its affiliates. * 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 retain the ...
4,133
5,250
/* 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 * distribut...
1,858
1,278
<reponame>RomanVolak/treesheets<gh_stars>1000+ // Copyright 2014 <NAME>. 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/LICE...
1,777
1,068
/** Configure pins as * Analog * Input * Output * EVENT_OUT * EXTI */ void MX_GPIO_Init(void) { GPIO_InitTypeDef GPIO_InitStruct; /* GPIO Ports Clock Enable */ __HAL_RCC_GPIOC_CLK_ENABLE(); __HAL_RCC_GPIOH_CLK_ENABLE(); __HAL_RCC_GPIOA_CLK_ENABLE(); __HAL_RCC_GPI...
977
382
<reponame>solerwell/turbo-rpc package rpc.turbo.benchmark.concurrent; import java.util.concurrent.ThreadLocalRandom; import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicIntegerArray; import org.openjdk.jmh.annotations.Benchmark; import org.openjdk.jmh.annotations.BenchmarkMode; import org.o...
1,563
2,023
<reponame>tdiprima/code #======================================================================= __version__ = '''0.1.01''' __sub_version__ = '''20040919004511''' __copyright__ = '''(c) <NAME> 2003''' #----------------------------------------------------------------------- __doc__ = '''\ this module will define a s...
4,682
875
<filename>src/java/org/apache/sqoop/mapreduce/CombineShimRecordReader.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 f...
1,302
306
<gh_stars>100-1000 /* * Declarations for double-precision log(x) vector function. * * Copyright (c) 2019, Arm Limited. * SPDX-License-Identifier: MIT */ #include "v_math.h" #if WANT_VMATH #define V_LOG_TABLE_BITS 7 extern const struct v_log_data { f64_t invc; f64_t logc; } __v_log_data[1 << V_LOG_TABLE_BITS...
142
348
<gh_stars>100-1000 {"nom":"Vroville","circ":"4ème circonscription","dpt":"Vosges","inscrits":112,"abs":49,"votants":63,"blancs":12,"nuls":1,"exp":50,"res":[{"nuance":"SOC","nom":"<NAME>","voix":30},{"nuance":"LR","nom":"<NAME>","voix":20}]}
99
4,339
<filename>modules/core/src/test/java/org/apache/ignite/internal/processors/authentication/AuthenticationConfigurationClusterTest.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 ...
3,204
1,350
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. /** * Package containing the data models for AttestationManagementClient. Various APIs for managing resources in * attestation service. This primarily encompasse...
89
582
/** * This program and the accompanying materials * are made available under the terms of the License * which accompanies this distribution in the file LICENSE.txt */ package com.archimatetool.model.impl; import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.ecore.EClass; import org....
2,003
720
package com.pubnub.api.models.consumer.objects_api; import com.google.gson.annotations.JsonAdapter; import com.pubnub.api.models.consumer.objects_api.util.CustomPayloadJsonInterceptor; import lombok.EqualsAndHashCode; import lombok.Getter; import lombok.Setter; import lombok.ToString; import lombok.experimental.Access...
277
990
<filename>src/Antispy/SpyHunter/SpyHunter/FileRestartDeleteDlg.h /* * Copyright (c) [2010-2019] <EMAIL> rights reserved. * * AntiSpy is licensed under the Mulan PSL v1. * You can use this software according to the terms and conditions of the Mulan PSL v1. * You may obtain a copy of Mulan PSL v1 at: * * ...
885
368
// Copyright 2016 Google Inc. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable...
3,297
1,127
// Copyright (C) 2018-2022 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include <fstream> #include <ngraph_functions/subgraph_builders.hpp> #include <base/behavior_test_utils.hpp> #include "behavior/ov_plugin/life_time.hpp" namespace ov { namespace test { namespace behavior { std::string OVHoldersTes...
1,872
563
<filename>src/main/java/dev/miku/r2dbc/mysql/util/NettyBufferUtils.java /* * Copyright 2018-2021 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * ...
959
648
"""Test index location.""" import imp from unittest import TestCase from EasyClangComplete.plugin.utils import index_location imp.reload(index_location) IndexLocation = index_location.IndexLocation class test_index_location(TestCase): """Test generating an index location.""" def test_simple_init(self): ...
584
1,127
<filename>docs/template_plugin/tests/functional/op_reference/lstm_sequence.cpp // Copyright (C) 2022 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include <gtest/gtest.h> #include "openvino/op/lstm_sequence.hpp" #include "base_reference_test.hpp" using namespace reference_tests; using namespace ov; n...
203,883
8,027
<filename>third-party/java/dx/tests/099-dex-core-library-error/Zorch.java package javax.zorch; public class Zorch { // This space intentionally left blank. }
62
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.servicefabric.fluent.models; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import co...
2,495
521
#ifndef _BITS_IO_H #define _BITS_IO_H /** @file * * x86_64-specific I/O API implementations * */ #endif /* _BITS_IO_H */
59
1,131
<reponame>mjvdende/android-demos package com.novoda.demo.movies; import com.novoda.demo.movies.model.Movie; import java.util.List; public class MoviesSate { private final List<Movie> movies; private final int pageNumber; public MoviesSate(List<Movie> movies, int pageNumber) { this.movies = movi...
563
14,668
// 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. #include "content/browser/scheduler/responsiveness/metric_source.h" #include <atomic> #include "base/callback_helpers.h" #include "base/test/bind.h" #in...
2,300
32,544
<reponame>DBatOWL/tutorials package com.baeldung.customerservice; import lombok.AllArgsConstructor; import lombok.Data; @Data @AllArgsConstructor public class Customer { private int id; private String firstName; private String lastName; }
91
45,293
public final class SingleFileKt /* SingleFileKt*/ { public static final void foo();// foo() }
29
590
<gh_stars>100-1000 #ifndef __H2_RESET_H__ #define __H2_RESET_H__ #ifdef __cplusplus extern "C" { #endif #define H2_RESET_CE (5) #define H2_RESET_DMA (6) #define H2_RESET_SD0 (8) #define H2_RESET_SD1 (9) #define H2_RESET_SD2 (10) #define H2_RESET_NAND (13) #define H2_RESET_SDRAM (14) #define H2_RESET_EM...
1,042
665
/** builtin_aggregators.cc <NAME>, 14 June 2015 This file is part of MLDB. Copyright 2015 mldb.ai inc. All rights reserved. Builtin aggregators for SQL. */ #include "sql_expression.h" #include "builtin_functions.h" #include "mldb/types/annotated_exception.h" #include "mldb/utils/distribution.h" #include "...
15,673
808
<gh_stars>100-1000 // Configures whether to show the current system time in the output of debug messages or not // (only available on usermode tracing messages) #define ShowSystemTimeOnDebugMessages TRUE // Use WPP Tracing instead of all logging functions #define UseWPPTracing FALSE // Configures whether...
237
587
/* * Copyright 2020 LINE Corporation * * LINE Corporation licenses this file to you 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 re...
583
2,497
/* * Copyright 2016 Square Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
767
3,976
# coding = utf-8 __author__ = 'Forec' import os, re def find_word(file_path): file_list = os.listdir(file_path) word_dic = {} word_re = re.compile(r'[\w]+') for x in file_list: if os.path.isfile(x) and os.path.splitext(x)[1] =='.txt' : try: f = open(x, 'r') ...
488
335
{ "word": "Tax", "definitions": [ "Impose a tax on (someone or something)", "Pay tax on (something, especially a vehicle)", "Make heavy demands on (someone's powers or resources)", "Confront (someone) with a fault or wrongdoing.", "Examine and assess (the costs of a case)...
140
1,010
<filename>src/lib/shim/binary_spinning_sem.cc<gh_stars>1000+ #include "binary_spinning_sem.h" #include <assert.h> #include <cstring> #include <errno.h> #include <sched.h> #include <unistd.h> extern "C" { #include "lib/logger/logger.h" } #include "lib/shim/shadow_sem.h" BinarySpinningSem::BinarySpinningSem(ssize_t s...
448
7,113
/* * Copyright (C) 2010-2101 Alibaba Group Holding Limited. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ...
1,647
5,727
package org.mengyun.tcctransaction.repository.helper; import redis.clients.jedis.JedisCluster; import java.io.IOException; import java.util.List; import java.util.Map; public class JedisClusterCommands implements RedisCommands { private JedisCluster jedisCluster; public JedisClusterCommands(JedisCluster je...
544
372
<filename>lsass/server/rpc/dssetup/dsr_rolegetprimarydomaininfo.c<gh_stars>100-1000 /* Editor Settings: expandtabs and use 4 spaces for indentation * ex: set softtabstop=4 tabstop=8 expandtab shiftwidth=4: * */ /* * Copyright © BeyondTrust Software 2004 - 2019 * All rights reserved. * * Licensed under the Apache...
4,364
372
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 4 -*- * ex: set softtabstop=4 tabstop=8 expandtab shiftwidth=4: * * Editor Settings: expandtabs and use 4 spaces for indentation */ /* * Copyright © BeyondTrust Software 2004 - 2019 * All rights reserved. * * Licensed under the Apache License, V...
5,895
4,268
<reponame>wenq1/duktape /* * duk_buffer_to_string() */ /*=== *** test_plain (duk_safe_call) duk_buffer_to_string: 'abcdefghijklmnop' duk_buffer_to_string: '' final top: 2 ==> rc=0, result='undefined' ===*/ /* For plain buffers the behavior is pretty clear. */ static duk_ret_t test_plain(duk_context *ctx, void *ud...
1,573
2,159
#!/usr/bin/env python # Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # * Redistributions of source code must retain the above copyright # notice, thi...
5,896
9,156
/** * 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...
1,545
563
package com.secnium.iast.agent.middlewarerecognition.tomcat; import java.lang.management.RuntimeMXBean; /** * @author <EMAIL> */ public final class TomcatV9 extends AbstractTomcat { @Override public boolean isMatch(RuntimeMXBean paramRuntimeMXBean) { return isMatch(paramRuntimeMXBean, TomcatVersion...
200
722
<reponame>victorstewart/bitsery //MIT License // //Copyright (c) 2017 <NAME> // //Permission is hereby granted, free of charge, to any person obtaining a copy //of this software and associated documentation files (the "Software"), to deal //in the Software without restriction, including without limitation the rights //...
3,668
2,180
/* * This file is part of the Heritrix web crawler (crawler.archive.org). * * Licensed to the Internet Archive (IA) by one or more individual * contributors. * * The IA licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with *...
1,642
482
#ifndef _SGIDEFS_H #define _SGIDEFS_H /* MIPS ABI crap that GLIBC puts into /include by default, and GDB depends on it happily. */ #define _MIPS_ISA_MIPS1 1 #define _MIPS_ISA_MIPS2 2 #define _MIPS_ISA_MIPS3 3 #define _MIPS_ISA_MIPS4 4 #define _MIPS_ISA_MIPS5 5 #define _MIPS_ISA_MIPS32 6 #define _MIPS_ISA_MIPS64 7 ...
301
2,903
package com.newegg.ec.redis.controller; import com.alibaba.fastjson.JSONObject; import com.newegg.ec.redis.aop.annotation.OperationLog; import com.newegg.ec.redis.entity.OperationObjectType; import com.newegg.ec.redis.entity.OperationType; import com.newegg.ec.redis.entity.Result; import com.newegg.ec.redis.plugin.ale...
630