max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
626
#ifndef NODEMAP_H #define NODEMAP_H #include "vertexmap.h" #include "dcel.h" namespace gen { template <class T> class NodeMap { public: NodeMap() {} NodeMap(VertexMap *vertexMap) : _vertexMap(vertexMap) { _initializeNodes(); } NodeMap(VertexMap *vertexMap, T fillval) : _vertexMap(vertexMap)...
3,246
1,178
from sciapp.action import Simple from sciapp.object import Mesh from sciapp.util import meshutil import numpy as np class Plugin(Simple): title = 'RGB Points Cloud' note = ['rgb'] para = {'name':'undifine', 'num':100, 'r':1} view = [(str, 'name', 'Name', ''), (int, 'num', (10,10240), 0, 'nu...
696
312
<filename>src/occa/internal/modes/dpcpp.hpp #include <occa/defines.hpp> #if OCCA_DPCPP_ENABLED # ifndef OCCA_MODES_DPCPP_HEADER # define OCCA_MODES_DPCPP_HEADER #include <occa/internal/modes/dpcpp/utils.hpp> # endif #endif
114
3,269
<reponame>jaiskid/LeetCode-Solutions // Time: O(m^2 * n^2) // Space: O(m * n) class Solution { public: int getMaximumGold(vector<vector<int>>& grid) { int result = 0; for (int i = 0; i < grid.size(); ++i) { for (int j = 0; j < grid[0].size(); ++j) { if (grid[i][j]) { ...
675
567
<gh_stars>100-1000 #ifndef CC_DUAL_NET_TRT_DUAL_NET_H_ #define CC_DUAL_NET_TRT_DUAL_NET_H_ #include "cc/dual_net/dual_net.h" namespace minigo { class TrtDualNetFactory : public DualNetFactory { public: TrtDualNetFactory(); int GetBufferCount() const override; std::unique_ptr<DualNet> NewDualNet(const std::s...
180
15,872
{ "name": "rotate", "scripts": { "build": "../build-rust.sh ./build.sh", "benchmark": "echo File size after gzip && npm run benchmark:filesize && echo Optimizing && npm run -s benchmark:optimizing", "benchmark:baseline": "v8 --liftoff --no-wasm-tier-up --no-opt ./benchmark.js", "benchmark:optimizing...
179
464
<reponame>sailxjx/DI-engine from .dataset import ImageNetDataset from .sampler import DistributedSampler
37
626
// Copyright (c) Facebook, Inc. and its affiliates. #pragma once #include <array> #include <string> #include "types.h" //////////////// // Events // // Each event represents a clientbound packet that requires // handling (a response, or a modification of GameState). These // events are created by PacketReader and se...
866
3,212
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
562
1,546
<gh_stars>1000+ /* * Copyright (C) 2020 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...
702
459
// File implement/oalplus/enums/source_type_range.ipp // // Automatically generated file, DO NOT modify manually. // Edit the source 'source/enums/oalplus/source_type.txt' // or the 'source/enums/make_enum.py' script instead. // // Copyright 2010-2015 <NAME>. // Distributed under the Boost Software License, Versi...
395
12,874
<reponame>Devyani606/chatwoot<gh_stars>1000+ { "RESET_PASSWORD": { "TITLE": "ریست کردن رمز عبور", "EMAIL": { "LABEL": "ایمیل", "PLACEHOLDER": "لطفا ایمیل خود را وارد کنید", "ERROR": "ظاهرا این ایمیل صحیح نیست، لطفا اصلاح کنید" }, "API": { "SUCCESS_MESSAGE": "لینک ریست کردن رمز ...
385
2,338
//===-- Implementation header for bsearch -----------------------*- 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 // //===---------------------------...
185
1,738
/* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software is governed by the License, * or, if provided, by the license belo...
766
1,473
<reponame>rd2281136306/pinpoint package com.navercorp.pinpoint.plugin.arcus; import org.junit.Ignore; import org.junit.Test; //@RunWith(ForkRunner.class) //@PinpointConfig("pinpoint-test.config") //@PinpointAgent("build/pinpoint-agent") //@OnChildClassLoader public class ArcusPluginTest { // TODO how to test int...
867
1,006
/**************************************************************************** * libs/libc/spawn/lib_psfa_destroy.c * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyrigh...
793
2,375
/* * Copyright (C) 2014-2016 Qiujuer <<EMAIL>> * WebSite http://www.qiujuer.net * Author qiujuer * * 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/lic...
4,100
325
<gh_stars>100-1000 package com.box.l10n.mojito.slack; import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuratio...
242
348
<reponame>chamberone/Leaflet.PixiOverlay {"nom":"Epernon","circ":"1ère circonscription","dpt":"Eure-et-Loir","inscrits":3820,"abs":2422,"votants":1398,"blancs":126,"nuls":54,"exp":1218,"res":[{"nuance":"REM","nom":"<NAME>","voix":770},{"nuance":"LR","nom":"<NAME>","voix":448}]}
115
2,634
#define STB_IMAGE_IMPLEMENTATION #define STB_IMAGE_DDS_IMPLEMENTATION #define STB_IMAGE_WRITE_IMPLEMENTATION #define STB_IMAGE_RESIZE_IMPLEMENTATION #include "stb_image.h" #include "stb_image_dds.h" #include "stb_image_write.h" #include "stb_image_resize.h"
113
1,130
#include <stdio.h> #include <string.h> int main() { char a[10]; strcpy(a, "abcdef"); printf("%s\n", &a[1]); return 0; } /* vim: set expandtab ts=4 sw=3 sts=3 tw=80 :*/
90
343
<filename>internal/ccall/glcomp/glcompdefs.h /* $Id$Revision: */ /* vim:set shiftwidth=4 ts=8: */ /************************************************************************* * Copyright (c) 2011 AT&T Intellectual Property * All rights reserved. This program and the accompanying materials * are made available under ...
4,232
1,144
// SPDX-License-Identifier: GPL-2.0 /* * Copyright (c) 2015 National Instruments * * (C) Copyright 2015 * <NAME> <<EMAIL>> */ #include <asm/eth-raw-os.h> #include <common.h> #include <dm.h> #include <malloc.h> #include <net.h> DECLARE_GLOBAL_DATA_PTR; static int reply_arp; static struct in_addr arp_ip; static ...
1,878
828
/* * Copyright 2008-2009 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
1,608
364
<reponame>xiaobing007/dagli<gh_stars>100-1000 package com.linkedin.dagli.preparer; import com.linkedin.dagli.objectio.ObjectReader; import com.linkedin.dagli.transformer.PreparedTransformer; /** * Base interface for preparers of dynamic-arity transformers. * * @param <R> the type of value produced by the transform...
190
10,225
<reponame>CraigMcDonaldCodes/quarkus package io.quarkus.hibernate.validator.test; import javax.inject.Inject; import javax.validation.ValidatorFactory; import javax.validation.constraints.Pattern; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.jboss.shrinkwra...
850
1,350
<gh_stars>1000+ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.apimanagement.implementation; import com.azure.resourcemanager.apimanagement.fluent.models.RegionContractInner; ...
409
8,451
<filename>core/src/main/java/io/questdb/griffin/engine/functions/conditional/SwitchFunctionFactory.java /******************************************************************************* * ___ _ ____ ____ * / _ \ _ _ ___ ___| |_| _ \| __ ) * | | | | | | |/ _ \/ __| __| | | | _ \ * ...
6,671
2,255
<reponame>psmitty7373/koadic<filename>core/cidr.py # Parts of this file are: # Copyright (c) 2007 <NAME> # 2015 Updates by <NAME> # Licensed under the MIT license. # http://brandon.sternefamily.net/files/mit-license.txt # CIDR Block Converter - 2007 def ip2bin(ip): b = "" inQuads = ip.split(".") outQuads =...
1,335
1,473
/* * Autopsy Forensic Browser * * Copyright 2017-2018 Basis Technology Corp. * Contact: carrier <at> sleuthkit <dot> org * * 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...
1,128
767
# -*- 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 this file except in co...
3,243
2,338
// RUN: %clang_analyze_cc1 -analyzer-checker=core -verify %s // rdar://problem/54359410 // expected-no-diagnostics int rand(); void test() { int offset = 0; int value; int test = rand(); switch (test & 0x1) { case 0: case 1: value = 0; break; } offset += value; // no-warning }
126
12,718
<filename>clang/lib/Headers/enqcmdintrin.h /*===------------------ enqcmdintrin.h - enqcmd intrinsics -----------------=== * * Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. * See https://llvm.org/LICENSE.txt for license information. * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exc...
746
4,535
#include "base/util/hexdump.h" #include <iomanip> #include <sstream> #include "base/util/logging.h" namespace vertexai { void hexdump(int log_level, void* buf, size_t len) { const size_t LINE_SIZE = 16; char* line = static_cast<char*>(buf); size_t offset = 0; size_t remain = len; size_t lines = (len / LI...
525
379
<reponame>addstone/Doraemon package com.example.transaction.transaction.chain; import lombok.extern.slf4j.Slf4j; import org.springframework.core.annotation.Order; import org.springframework.stereotype.Component; /** * @program: testSpring * @description: * @author: hu_pf * @create: 2019-11-10 00:25 **/ @Slf4j @C...
207
467
package com.yoyiyi.soleil.mvp.presenter.app.up; import com.annimon.stream.Stream; import com.yoyiyi.soleil.base.BaseSubscriber; import com.yoyiyi.soleil.base.RxPresenter; import com.yoyiyi.soleil.bean.user.MulUpDetail; import com.yoyiyi.soleil.bean.user.UpDetail; import com.yoyiyi.soleil.event.Event; import com.yoyiyi...
985
777
<filename>third_party/WebKit/Source/core/animation/AnimationTestHelper.h // 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. #ifndef AnimationTestHelper_h #define AnimationTestHelper_h #include "wtf/text/S...
418
1,858
<reponame>cyq89051127/flinkStreamSQL<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 ...
894
335
{ "word": "Jaundiced", "definitions": [ "Affected by jaundice, in particular unnaturally yellow in complexion.", "Affected by bitterness, resentment, or cynicism." ], "parts-of-speech": "Adjective" }
90
305
<filename>llvm-project/clang/test/CodeGen/asan-globals.cpp // RUN: echo "int extra_global;" > %t.extra-source.cpp // RUN: echo "global:*blacklisted_global*" > %t.blacklist // RUN: %clang_cc1 -include %t.extra-source.cpp -fsanitize=address -fsanitize-blacklist=%t.blacklist -emit-llvm -o - %s | FileCheck %s --check-prefi...
2,211
887
package org.javers.core.diff.changetype.container; import org.javers.core.diff.changetype.Atomic; import java.util.Objects; /** * internal wrapper for Collection or Array */ class Container<T> { private final T value; Container(T value) { this.value = value; } public T unwrap() { ...
308
1,056
<filename>java/maven/src/org/netbeans/modules/maven/spi/IconResources.java<gh_stars>1000+ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF l...
862
1,013
<reponame>JosephChataignon/pyclustering<gh_stars>1000+ """! @brief Neural and oscillatory network module. Consists of models of bio-inspired networks. @authors <NAME> (<EMAIL>) @date 2014-2020 @copyright BSD-3-Clause """ import math from enum import IntEnum class initial_type(IntEnum): """! ...
7,345
315
/*! * \file * \brief Class module::Reducer. */ #ifndef INCREMENTER_HPP_ #define INCREMENTER_HPP_ #include <cstdint> #include <vector> #include "Tools/Math/binaryop.h" #include "Module/Module.hpp" namespace aff3ct { namespace module { namespace red { enum class tsk : size_t { reduce, SIZE }; namespace sck ...
1,073
435
{ "copyright_text": "Creative Commons Attribution license (reuse allowed)", "description": "Montreal, June 9, 2014 - <NAME> presents configparser, a Python 3 module that you can use to write Python programs which can be customized by end users easily.\n\nUseful links:\n\n* Rory: https://twitter.com/r_geoghegan\n* c...
556
2,199
/* * Copyright (c) 2016—2021 <NAME> and individual 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 the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless require...
2,932
777
// Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <string> #include "base/files/file_util.h" #include "breakpad/src/common/linux/libcurl_wrapper.h" #include "chromecast/base/scoped_temp_file.h" ...
2,300
335
<reponame>Safal08/Hacktoberfest-1<gh_stars>100-1000 { "word": "Explorer", "definitions": [ "A person who explores a new or unfamiliar area." ], "parts-of-speech": "Noun" }
87
575
<reponame>iridium-browser/iridium-browser // Copyright 2021 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef REMOTING_PROTOCOL_WEBRTC_VIDEO_FRAME_ADAPTER_H_ #define REMOTING_PROTOCOL_WEBRTC_VIDEO_FRAME_ADAPTER_H_ ...
594
1,067
// // MHSearchCommonSearchCell.h // WeChat // // Created by admin on 2020/5/15. // Copyright © 2020 CoderMikeHe. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface MHSearchCommonSearchCell : UITableViewCell<MHReactiveView> // generate cell + (instancetype)cellWithTableView:(UITabl...
139
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 "services/network/sct_auditing/sct_auditing_cache.h" #include "base/callback.h" #include "base/metrics/histogram_functions.h" #include "base/ran...
2,734
678
/** * This header is generated by class-dump-z 0.2b. * * Source: /System/Library/PrivateFrameworks/AirPortAssistant.framework/AirPortAssistant */ #import <AirPortAssistant/AirPortAssistant-Structs.h> #import <AirPortAssistant/APFormatter.h> __attribute__((visibility("hidden"))) @interface IPv4AddressFormatter : ...
144
553
{ "editor.insertSpaces": false, "prettier.requireConfig": true, "search.exclude": { "**/dist": true }, "eslint.alwaysShowStatus": true, "eslint.codeActionsOnSave.mode": "problems" }
80
872
<filename>502 IPO.py #!/usr/bin/python3 """ Suppose LeetCode will start its IPO soon. In order to sell a good price of its shares to Venture Capital, LeetCode would like to work on some projects to increase its capital before the IPO. Since it has limited resources, it can only finish at most k distinct projects befo...
1,379
1,256
#pragma once #include "Rtl.Base.h" typedef unsigned long dword; typedef unsigned short word; typedef unsigned char byte; typedef dword longbool;
52
317
<reponame>abir1999/xiaoPi<filename>src/network/network_manager.cc #include <string> #include <fstream> #include <vector> #include <unistd.h> #include "network/network_manager.h" #include "utility/utility.h" #include "system/system_manager.h" std::map <int, int> kWifiChannelFreqMap { std::make_pair (2412, 1), std:...
2,170
5,964
// Copyright (c) 2009 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 "head.h" #include <cstring> // head - Font Header // http://www.microsoft.com/typography/otspec/head.htm #define TABLE_NAME "head" namesp...
1,784
460
#ifndef WebCore_FWD_UTF8_h #define WebCore_FWD_UTF8_h #include <JavaScriptCore/UTF8.h> #endif
48
1,514
// // FViewController.h // HBDNavigationBar_Example // // Created by 李生 on 2019/11/27. // Copyright © 2019 <EMAIL>. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface FViewController : UIViewController @end NS_ASSUME_NONNULL_END
108
648
<gh_stars>100-1000 {"resourceType":"DataElement","id":"QuestionnaireResponse.subject","meta":{"lastUpdated":"2017-04-19T07:44:43.294+10:00"},"url":"http://hl7.org/fhir/DataElement/QuestionnaireResponse.subject","status":"draft","experimental":true,"stringency":"fully-specified","element":[{"id":"QuestionnaireResponse.s...
287
767
# -*- 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 this file except in co...
576
1,546
///////////////////////////////////////////////////////////////////////////////////////////////// // // Tencent is pleased to support the open source community by making libpag available. // // Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. // // Licensed under the Apache License, Versio...
1,368
325
<reponame>patrick-kidger/equinox from . import nn from .filters import ( combine, filter, is_array, is_array_like, is_inexact_array, is_inexact_array_like, merge, partition, split, ) from .grad import ( filter_custom_vjp, filter_grad, filter_value_and_grad, gradf, ...
217
902
package org.anychat.util; import java.util.UUID; public class IdUtil { /** * 获取uuid * * @return */ public static String getUuid() { String uuid = UUID.randomUUID().toString().trim().replaceAll("-", ""); return uuid; } }
116
617
<filename>tools/minicluster/client.py import json import logging from peloton_client.client import PelotonClient import print_utils log = logging.getLogger(__name__) class PelotonClientWrapper(PelotonClient): """ Wrapper on the standard Peloton client to patch certain parts of the data retrieved from Zo...
809
553
# -*- coding: utf-8 -*- """Exceptions module for rfc3986.""" from . import compat class RFC3986Exception(Exception): """Base class for all rfc3986 exception classes.""" pass class InvalidAuthority(RFC3986Exception): """Exception when the authority string is invalid.""" def __init__(self, authorit...
1,375
431
<gh_stars>100-1000 #ifndef TST_CSTLCOMPILERATTRIBUTES_H #define TST_CSTLCOMPILERATTRIBUTES_H #include <QtTest> #include <cwf/cstlcompilerattributes.h> class TST_CSTLCompilerAttributes : public QObject { Q_OBJECT private slots: void test(); }; #endif // TST_CSTLCOMPILERATTRIBUTES_H
153
925
<reponame>ju-sh/herbstluftwm<gh_stars>100-1000 #include "x11-types.h" #include <X11/X.h> #include <X11/Xlib.h> #include <X11/Xutil.h> #include <algorithm> #include <cassert> #include <iomanip> #include <limits> #include "globals.h" #include "utils.h" #include "xconnection.h" using std::string; using std::stringstrea...
1,300
984
//+--------------------------------------------------------------------------- // // Microsoft Windows // Copyright (c) Microsoft Corporation. All rights reserved. // // File: basetyps.h // //---------------------------------------------------------------------------- #if !defined( _BASETYPS_H_ ) #define _BASE...
4,147
589
<filename>inspectit.server/src/test/java/rocks/inspectit/server/processor/impl/InfluxProcessorTest.java package rocks.inspectit.server.processor.impl; import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.is; import static org.mockito.Mockito.doReturn; import static org.mockito.Mocki...
2,366
615
package org.byron4j.cookbook.javacore.dynamicproxy.jdkproxy; import java.lang.annotation.*; @Documented @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.METHOD) public @interface DynamicAnno { }
82
432
<reponame>Mu-L/activej<filename>core-datastream/src/main/java/io/activej/datastream/stats/StreamStatsDetailed.java /* * Copyright (C) 2020 ActiveJ 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 t...
837
681
<filename>doc/sphinx-guides/source/_static/api/dataverse-minimal.json { "name": "<NAME>", "alias": "science", "dataverseContacts": [ { "contactEmail": "<EMAIL>" } ] }
83
354
<gh_stars>100-1000 /*------------------------------------------------------------------------ * Vulkan Conformance Tests * ------------------------ * * Copyright (c) 2015 The Khronos Group Inc. * Copyright (c) 2015 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); ...
8,094
348
{"nom":"Amendeuix-Oneix","dpt":"Pyrénées-Atlantiques","inscrits":363,"abs":55,"votants":308,"blancs":27,"nuls":6,"exp":275,"res":[{"panneau":"1","voix":225},{"panneau":"2","voix":50}]}
78
982
#pragma once #include <Windows.h> #include <stdio.h> #include <stdlib.h> #include <process.h> #include <string.h> #include <tchar.h> #include <cguid.h> #include <WtsApi32.h> #define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS // some CString constructors will be explicit //#include <atlbase.h> //#include <atlcoll.h> #inc...
195
464
<gh_stars>100-1000 { "name": "wtfnode", "version": "0.9.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "version": "0.9.0", "license": "ISC", "bin": { "wtfnode": "proxy.js" }, "devDependencies": { "coffeescript": "^2.5.1", "source-map-s...
1,313
3,479
<filename>eyes-two/src/main/jni/imageutils/similar-jni.cpp /* * Copyright 2011, Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICEN...
931
9,717
#include <unistd.h> #include <stdlib.h> #include <stdio.h> #define assert_success(e) do { if ((e) < 0) { perror(#e); abort(); } } while (0) int main(int argc, char **argv) { putenv("PART1=HELLO"); assert_success(setenv("PART2", "WORLD", 0)); assert_success(unsetenv("SOME_OTHER_VARIABLE")); putenv("PAR...
186
930
<gh_stars>100-1000 # importing the libraries for loading data and visualisation import os import cv2 import numpy as np from PIL import Image # import for train-test-split from sklearn.model_selection import train_test_split # import for One Hot Encoding from keras.utils import to_categorical # importing libraries for ...
1,371
319
<filename>web/twitter/src/main/java/org/openimaj/twitter/utils/Twitter4jUtil.java /** * Copyright (c) 2012, The University of Southampton and the individual contributors. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the fo...
1,126
1,473
#pragma once #include "../host_core/blockAllocator.h" #include "../host_core/bitset.h" namespace xenon { /// xenon memory allocator class Memory { public: Memory(native::IMemory& nativeMemory); // initialize virtual memory range const bool InitializeVirtualMemory(const uint32 prefferedBase, const uint32 to...
1,220
325
<filename>webapp/src/main/java/com/box/l10n/mojito/service/thirdparty/smartling/SmartlingResultProcessor.java package com.box.l10n.mojito.service.thirdparty.smartling; import com.amazonaws.SdkClientException; import com.box.l10n.mojito.service.blobstorage.Retention; import com.box.l10n.mojito.service.blobstorage.s3.S3...
1,828
875
<gh_stars>100-1000 #ifdef HAS_QT #include "FrameVisualizer.h" #include <GSLAM/core/Timer.h> #include <QPainter> #include <QWheelEvent> #include <QVBoxLayout> #include <QHeaderView> #include <QDateTime> using namespace std; namespace GSLAM { InfomationViewer::InfomationViewer(QWidget* parent) :QTableWidget(paren...
2,891
14,668
<filename>rlz/lib/supplementary_branding.h // 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 RLZ_LIB_SUPPLEMENTARY_BRANDING_H_ #define RLZ_LIB_SUPPLEMENTARY_BRANDING_H_ #include <string> #includ...
710
5,813
<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 License, Version 2.0 (the * ...
602
335
{ "word": "Beginning", "definitions": [ "The point in time or space at which something begins.", "The first part or earliest stage of something.", "The background or origins of a person or organization." ], "parts-of-speech": "Noun" }
99
2,151
// 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. #ifndef COMPONENTS_VIZ_SERVICE_GL_GPU_SERVICE_IMPL_H_ #define COMPONENTS_VIZ_SERVICE_GL_GPU_SERVICE_IMPL_H_ #include "base/callback.h" #include "base/com...
4,275
679
/************************************************************** * * 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 y...
8,777
1,629
<filename>cypress/fixtures/samples-dummies/TextEntityRelations.json { "name": "Text Entity Relations", "interface": { "type": "text_entity_relations", "entityLabels": [ { "id": "food", "displayName": "Food", "description": "Edible item." }, { "id": "hat", "displayName": "Hat", ...
299
572
// // NSMutableArray+JKDataHelper.h // Pods // // Created by Jack on 17/3/28. // // #import <Foundation/Foundation.h> @interface NSMutableArray (JKDataHelper) @end
71
9,908
<gh_stars>1000+ // // FMTokenizers.h // fmdb // // Created by Andrew on 4/9/14. // Copyright (c) 2014 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> #import "FMDatabase+FTS3.h" NS_ASSUME_NONNULL_BEGIN /** This is the base tokenizer implementation, using a CFStringTokenizer to find words. */ ...
553
482
<filename>nutzcloud/nutzcloud-literpc/src/main/java/org/nutz/boot/starter/literpc/api/RpcSerializer.java package org.nutz.boot.starter.literpc.api; import java.io.InputStream; import java.io.OutputStream; public interface RpcSerializer { void write(Object obj, OutputStream out) throws Exception; Object ...
136
22,481
<filename>homeassistant/components/evil_genius_labs/manifest.json { "domain": "evil_genius_labs", "name": "<NAME>", "config_flow": true, "documentation": "https://www.home-assistant.io/integrations/evil_genius_labs", "requirements": ["pyevilgenius==1.0.0"], "codeowners": ["@balloob"], "iot_class": "local_...
131
711
<filename>manager/api/beans/src/main/java/io/apiman/manager/api/beans/orgs/OrganizationBasedCompositeId.java /* * Copyright 2014 JBoss 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...
1,283
1,201
<filename>tirelessTracker/Pods/Realm/include/core/realm/impl/clamped_hex_dump.hpp<gh_stars>1000+ /************************************************************************* * * REALM CONFIDENTIAL * __________________ * * [2011] - [2015] Realm Inc * All Rights Reserved. * * NOTICE: All information contained he...
526
361
#include "FlowTrackEditor.h" #include "FlowSection.h" #include "MovieScene/MovieSceneFlowRepeaterSection.h" #include "MovieScene/MovieSceneFlowTrack.h" #include "MovieScene/MovieSceneFlowTriggerSection.h" #include "Framework/MultiBox/MultiBoxBuilder.h" #include "UObject/Package.h" #include "ISequencerSection.h" #incl...
2,697
1,080
# 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 # d...
2,300
416
<filename>src/main/java/com/tencentcloudapi/youmall/v20180228/models/NetworkHistoryInfo.java /* * Copyright (c) 2017-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. *...
2,530
532
<gh_stars>100-1000 from .hdbscan_ import HDBSCAN, hdbscan from .robust_single_linkage_ import RobustSingleLinkage, robust_single_linkage from .validity import validity_index from .prediction import approximate_predict, membership_vector, all_points_membership_vectors
81