max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
2,161
<reponame>Pooja0509/iceberg<filename>api/src/main/java/org/apache/iceberg/io/CloseableGroup.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...
1,046
1,433
/* * Main for evloop command line tool. * * Runs a given script from file or stdin inside an eventloop. The * script can then access setTimeout() etc. */ #include <stdio.h> #include <stdlib.h> #include <string.h> #ifndef NO_SIGNAL #include <signal.h> #endif #include "duktape.h" extern void poll_register(duk...
2,404
904
# (c) 2012-2018, Ansible by Red Hat # # This file is part of Ansible Galaxy # # Ansible Galaxy is free software: you can redistribute it and/or modify # it under the terms of the Apache License as published by # the Apache Software Foundation, either version 2 of the License, or # (at your option) any later version. # ...
782
5,169
{ "name": "EvenlyWrappedLabel", "version": "1.0.0", "screenshots": "https://user-images.githubusercontent.com/2835199/31397079-04d00874-adb3-11e7-9dd6-fb2878b760af.png", "summary": "EvenlyWrappedLabel vertically distributes text evenly across any number of lines, preventing orphans and text from grouping up at ...
644
429
/** * (C) Copyright 2017-2021 Intel Corporation. * * SPDX-License-Identifier: BSD-2-Clause-Patent */ /** * Internal task function pointers */ #ifndef __DAOS_TASK_INTERNAL_H__ #define __DAOS_TASK_INTERNAL_H__ #include <daos_task.h> #include <daos/task.h> #define DAOS_TASK_MAGIC 0xbabeface #endif /* __DAOS_T...
151
892
{ "schema_version": "1.2.0", "id": "GHSA-cqf2-7gg9-99ph", "modified": "2022-05-13T01:06:15Z", "published": "2022-05-13T01:06:15Z", "aliases": [ "CVE-2018-20299" ], "details": "An issue was discovered in several Bosch Smart Home cameras (360 degree indoor camera and Eyes outdoor camera) with firmware b...
454
679
<reponame>Grosskopf/openoffice<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 copyrig...
4,053
582
<filename>src/qt/lelantuscoincontroldialog.h // Copyright (c) 2020 The Firo Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef FIRO_QT_LELANTUSCOINCONTROLDIALOG_H #define FIRO_QT_LELANTUSCOINCONTROLDIALOG_H ...
1,011
5,169
{ "name": "FavoriteButton", "version": "3.1.2", "summary": "Twitter's heart like animated button updated to Swift 4 (iOS 10.0+)", "license": "MIT", "homepage": "https://github.com/MauriceArikoglu/FavoriteButton.git", "authors": { "<NAME>": "<EMAIL>" }, "platforms": { "ios": "10.0" }, "source...
196
1,433
/** * *************************************************************** * <p/> * Copyright 2015 Samsung Electronics All Rights Reserved. * <p/> * <p/> * <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 cop...
615
2,415
<reponame>vkubyshko/cloud-custodian<filename>tools/c7n_gcp/tests/data/flights/mu-scc-subscriber/get-v1-projects-cloud-custodian-locations-us-central1-functions-test-scc_2.json { "headers": { "content-type": "application/json; charset=UTF-8", "vary": "Origin, X-Origin, Referer", "date": "Mon, 29 Mar 2021 1...
1,164
809
/** * @file * * @date 27.09.2016 * @author <NAME> */ #ifndef AACI_PL041_H_ #define AACI_PL041_H_ #define AACI_CTRL_CH1 0x00 #define AACI_CTRL_CH2 0x14 #define AACI_CTRL_CH3 0x28 #define AACI_CTRL_CH4 0x3c /* offsets in CTRL_CH */ #define AACI_RXCR 0x00 #define AACI_TXCR ...
2,840
371
<reponame>vinooganesh/concourse<gh_stars>100-1000 /* * Copyright (c) 2013-2021 Cinchapi 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-...
464
852
/* * * This is a part of CTPPS offline software. * Author: * <NAME> (<EMAIL>) * <NAME> (<EMAIL>) * <NAME> (<EMAIL>) * */ #ifndef RecoPPS_Local_RPixPlaneCombinatoryTracking_H #define RecoPPS_Local_RPixPlaneCombinatoryTracking_H #include "FWCore/ParameterSet/interface/ParameterSet.h" #include "DataFormats/Commo...
1,002
348
<gh_stars>100-1000 {"nom":"Théding","circ":"6ème circonscription","dpt":"Moselle","inscrits":1645,"abs":993,"votants":652,"blancs":25,"nuls":9,"exp":618,"res":[{"nuance":"REM","nom":"<NAME>","voix":347},{"nuance":"FN","nom":"M. <NAME>","voix":271}]}
102
559
<reponame>QuantStack/xeus /*************************************************************************** * Copyright (c) 2021, <NAME> * * * * Distributed under the terms of the BSD 3-Clause License. ...
3,654
518
<reponame>matyasrichter/prisma-client-py from prisma.models import Post # post with only id and published Post.create_partial('PostOnlyPublished', include={'id', 'published'})
55
1,951
/** Copyright (c) 2014-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. An additional grant of patent rights can be found in the PATENTS file in the same directory. */ #import <UIKit/UIKit....
210
597
package com.xiaojukeji.kafka.manager.kcm.config; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.EnableAutoConfiguration; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.web.servlet.ServletComponentScan; import org.sp...
239
777
<gh_stars>100-1000 // Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package org.chromium.base; import org.chromium.base.annotations.CalledByNative; /** * A simple single-argument callback to handle th...
352
1,318
<filename>venv/Lib/site-packages/pyrsistent/_pmap.py from collections.abc import Mapping, Hashable from itertools import chain from pyrsistent._pvector import pvector from pyrsistent._transformations import transform class PMap(object): """ Persistent map/dict. Tries to follow the same naming conventions as t...
6,615
493
<filename>src/com/jdh/microcraft/gui/mainmenu/HowToPlayMenu.java package com.jdh.microcraft.gui.mainmenu; import com.jdh.microcraft.Global; import com.jdh.microcraft.gfx.Font; import com.jdh.microcraft.gfx.Renderer; import com.jdh.microcraft.gui.DialogMenu; public class HowToPlayMenu extends DialogMenu { public H...
789
1,444
package mage.cards.p; import java.util.UUID; import mage.abilities.condition.common.ForetoldCondition; import mage.abilities.decorator.ConditionalOneShotEffect; import mage.abilities.effects.common.DestroyTargetEffect; import mage.abilities.effects.keyword.ScryEffect; import mage.abilities.keyword.ForetellAbility; im...
449
335
{ "word": "Relation", "definitions": [ "The way in which two or more people or things are connected; a thing's effect on or relevance to another.", "The way in which two or more people or groups feel about and behave towards each other.", "Sexual intercourse.", "A person who is c...
152
5,193
<reponame>ls1110924/Aria /* * Copyright (C) 2016 AriaLyy(https://github.com/AriaLyy/Aria) * * 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/LICENS...
740
22,688
/****************************************************************************** * Copyright 2018 The Apollo Authors. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at ...
373
3,680
// // Copyright 2017 Pixar // // Licensed under the Apache License, Version 2.0 (the "Apache License") // with the following modification; you may not use this file except in // compliance with the Apache License and the following modification to it: // Section 6. Trademarks. is deleted and replaced with: // // 6. Trad...
5,969
670
package com.uddernetworks.mspaint.gui.menus; import com.uddernetworks.mspaint.code.BuildSettings; import com.uddernetworks.mspaint.gui.BindItem; import com.uddernetworks.mspaint.gui.MenuBind; import com.uddernetworks.mspaint.main.MainGUI; import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class RunMenu e...
487
5,169
{ "name": "SheetsTranslator", "version": "0.2", "summary": "App translation generator using Google Sheets API", "homepage": "https://github.com/DroidsOnRoids/SheetsTranslator", "license": "MIT", "authors": { "<NAME>": "<EMAIL>" }, "source": { "http": "https://github.com/DroidsOnRoids/SheetsTrans...
218
5,203
<filename>src/lab04/lab4C.c /* * Format String Lab - C Problem * gcc -z execstack -z norelro -fno-stack-protector -o lab4C lab4C.c */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #define PASS_LEN 30 int main(int argc, char *argv[]) { char username[100] = {0}; char real...
791
14,668
<filename>ash/components/login/auth/challenge_response/key_label_utils.cc // 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 "ash/components/login/auth/challenge_response/key_label_utils.h" #incl...
504
880
/** * Copyright 2019 <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 or agreed to in wr...
842
629
<gh_stars>100-1000 /* Copyright (c) 2017, United States Government, as represented by the * Administrator of the National Aeronautics and Space Administration. * * All rights reserved. * * The Astrobee platform is licensed under the Apache License, Version 2.0 * (the "License"); you may not use this file except...
1,099
2,753
/* * This software is distributed under BSD 3-clause license (see LICENSE file). * * Authors: <NAME>, <NAME>, <NAME>, <NAME>, * <NAME>, <NAME>, <NAME>, <NAME> */ #include <shogun/features/DenseFeatures.h> #include <shogun/labels/RegressionLabels.h> #include <shogun/kernel/LinearKernel.h> #include <shogu...
1,053
1,246
# # For licensing see accompanying LICENSE.txt file. # Copyright (C) 2020 Apple Inc. All Rights Reserved. # from pylab import * import argparse import h5py import inspect import mayavi.mlab import os import path_utils path_utils.add_path_to_sys_path("../lib", mode="relative_to_current_source_dir", frame=inspect.curr...
1,121
380
package org.gluu.oxauth.service.external; import org.gluu.model.custom.script.CustomScriptType; import org.gluu.model.custom.script.conf.CustomScriptConfiguration; import org.gluu.model.custom.script.type.owner.ResourceOwnerPasswordCredentialsType; import org.gluu.oxauth.service.external.context.ExternalResourceOwnerP...
980
2,542
// ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ #pragma once namespace Client...
1,033
937
package cyclops.typeclasses.foldable; import com.oath.cyclops.hkt.Higher; import cyclops.control.Option; import cyclops.typeclasses.Pure; import cyclops.typeclasses.monad.Applicative; import cyclops.typeclasses.monad.Traverse; import cyclops.data.tuple.Tuple2; import java.util.function.Function; import static cyclo...
608
382
<reponame>anbingxu666/WangDao-DataStructure<filename>经典算法练习题/按照之字型打印二叉树.cpp // // Created by 安炳旭 on 2020-05-28. // #include <iostream> #include <vector> #include <queue> using namespace std; struct TreeNode { int val; struct TreeNode *left; struct TreeNode *right; TreeNode(int x) : val(x)...
667
32,544
package com.baeldung.jdbcrowset; import java.io.FileOutputStream; import java.sql.Connection; import java.sql.ResultSet; import java.sql.ResultSetMetaData; import java.sql.SQLException; import java.sql.Statement; import com.sun.rowset.*; import javax.sql.rowset.CachedRowSet; import javax.sql.rowset.FilteredRowSet; i...
2,461
360
/* * Copyright (c) 2020 Huawei Technologies Co.,Ltd. * * openGauss is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * * http://license.coscl.org.cn/MulanPSL2 * * THIS SOFTWARE IS PROVIDED ...
4,841
831
<filename>profilers-ui/src/com/android/tools/profilers/ProfilerContextMenu.java /* * 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 *...
506
335
<reponame>Safal08/Hacktoberfest-1<gh_stars>100-1000 { "word": "Ambivert", "definitions": [ "a person who has a balance of extrovert and introvert features in their personality." ], "parts-of-speech": "Noun" }
97
568
package com.fincatto.documentofiscal.nfe400.classes.nota; import com.fincatto.documentofiscal.DFBase; import com.fincatto.documentofiscal.validadores.DFBigDecimalValidador; import com.fincatto.documentofiscal.validadores.DFBigIntegerValidador; import com.fincatto.documentofiscal.validadores.DFStringValidador; import o...
713
414
<filename>examples/common/src/Systems/AnimationSystem.cpp /// /// anax /// An open source C++ entity system. /// /// Copyright (C) 2013-2014 <NAME> (<EMAIL>) /// /// Permission is hereby granted, free of charge, to any person obtaining a copy /// of this software and associated documentation files (the "Software"), to ...
1,309
973
/*_########################################################################## _## _## Copyright (C) 2016-2017 Pcap4J.org _## _########################################################################## */ package org.pcap4j.packet; import static org.pcap4j.util.ByteArrays.*; import java.net.Inet4Address; im...
2,601
3,508
<filename>src/test/java/com/fishercoder/_227Test.java package com.fishercoder; import com.fishercoder.solutions._227; import org.junit.BeforeClass; import org.junit.Test; import static org.junit.Assert.assertEquals; public class _227Test { private static _227.Solution1 solution1; @BeforeClass public sta...
356
305
// expected-no-diagnostics #ifndef HEADER #define HEADER ///==========================================================================/// // RUN: %clang_cc1 -DCK26 -std=c++11 -verify -fopenmp -fopenmp-targets=powerpc64le-ibm-linux-gnu -x c++ -triple powerpc64le-unknown-unknown -emit-llvm %s -o - | FileCheck -allow-dep...
7,303
4,994
from django.db.models import Q OBJECTPERMISSION_OBJECT_TYPES = Q( ~Q(app_label__in=['admin', 'auth', 'contenttypes', 'sessions', 'taggit', 'users']) | Q(app_label='auth', model__in=['group', 'user']) | Q(app_label='users', model__in=['objectpermission', 'token']) )
117
6,660
<gh_stars>1000+ # # This file is part of the LibreOffice project. # # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # # This file incorporates work covered by the follow...
17,188
14,668
// 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 UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_COCOA_H_ #define UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_COCOA_H_ #include <memory> #import <Cocoa...
755
534
<filename>src/main/java/mekanism/common/integration/lookingat/theoneprobe/TOPEnergyElement.java package mekanism.common.integration.lookingat.theoneprobe; import mcjty.theoneprobe.api.IElement; import mekanism.api.math.FloatingLong; import mekanism.common.integration.lookingat.EnergyElement; import net.minecraft.netwo...
317
474
<gh_stars>100-1000 package org.gearvrf; /** * Interface for a renderable entity. * * Something is renderable if it has an attached mesh and material. */ public interface IRenderable { /** * Get the GVRMaterial associated with this renderable entity. * @return GVRMaterial */ public GVRMateria...
303
567
package org.jolokia.client.jmxadapter; import java.util.HashMap; import org.jolokia.client.J4pClientBuilder; import javax.management.ListenerNotFoundException; import javax.management.MBeanServerConnection; import javax.management.NotificationBroadcasterSupport; import javax.management.NotificationFilter; import java...
1,692
456
<reponame>pafri/DJV<filename>lib/djvScene3D/SceneInline.h // SPDX-License-Identifier: BSD-3-Clause // Copyright (c) 2019-2020 <NAME> // All rights reserved. namespace djv { namespace Scene3D { inline const std::vector<std::shared_ptr<IPrimitive> >& Scene::getPrimitives() const { ret...
734
992
/* * Copyright 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 applica...
1,760
13,006
<reponame>rghwer/testdocs /******************************************************************************* * Copyright (c) 2015-2018 Skymind, Inc. * * This program and the accompanying materials are made available under the * terms of the Apache License, Version 2.0 which is available at * https://www.apache.org/l...
618
892
{ "schema_version": "1.2.0", "id": "GHSA-fjpm-hf7c-xgc2", "modified": "2022-01-19T00:01:33Z", "published": "2022-01-13T00:00:54Z", "aliases": [ "CVE-2022-23110" ], "details": "Jenkins Publish Over SSH Plugin 1.22 and earlier does not escape the SSH server name, resulting in a stored cross-site scripti...
420
1,465
{ "type": "ChangeListeners", "category": "core", "generics": [ { "name": "Target", "extends": "object" }, { "name": "Property", "extends": "keyof Target" } ], "extends": { "interface": "Listeners", "generics": [ { "interface": "PropertyChangedEvent...
507
507
# terrascript/data/terraform-provider-graylog/graylog.py # Automatically generated by tools/makecode.py (24-Sep-2021 15:17:31 UTC) import terrascript class graylog_dashboard(terrascript.Data): pass class graylog_index_set(terrascript.Data): pass class graylog_sidecar(terrascript.Data): pass class gr...
184
2,313
/* * Copyright (c) 2019-2020 Arm Limited. * * 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 without limitation the * ri...
101,274
419
""" pygame-menu https://github.com/ppizarror/pygame-menu HORIZONTAL MARGIN Horizontal box margin. License: ------------------------------------------------------------------------------- The MIT License (MIT) Copyright 2017-2021 <NAME>. @ppizarror Permission is hereby granted, free of charge, to any person obtaining...
632
311
/* * Copyright (c) 2009-2021, <NAME> * 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, this list of conditions an...
1,995
306
# Once for All: Train One Network and Specialize it for Efficient Deployment # <NAME>, <NAME>, <NAME>, <NAME>, <NAME> # International Conference on Learning Representations (ICLR), 2020. import json import torch.nn as nn from ..modules import * from utils import download_url, MyNetwork, MyModule __all__ = ['Proxyles...
2,144
848
<reponame>tianyapiaozi/tensorflow # Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-...
1,824
628
from api.base import permissions as base_permissions from api.base.filters import ListFilterMixin from api.base.pagination import NoMaxPageSizePagination from api.base.utils import get_object_or_error from api.base.views import JSONAPIBaseView from api.citations.serializers import CitationSerializer from framework.auth...
704
1,011
import django.db.models.deletion from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("contenttypes", "0002_remove_content_type_name"), ("example", "0001_initial"), ] operations = [ migrations.CreateModel( name="TaggedItem"...
741
348
<reponame>chamberone/Leaflet.PixiOverlay<gh_stars>100-1000 {"nom":"Villevocance","circ":"2ème circonscription","dpt":"Ardèche","inscrits":905,"abs":412,"votants":493,"blancs":11,"nuls":5,"exp":477,"res":[{"nuance":"SOC","nom":"M. <NAME>","voix":152},{"nuance":"FN","nom":"Mme <NAME>","voix":92},{"nuance":"REM","nom":"Mm...
300
12,651
<filename>test/datasets/test_mutag.py import sys import random import os.path as osp import shutil from torch_geometric.datasets import TUDataset def test_mutag(): root = osp.join('/', 'tmp', str(random.randrange(sys.maxsize))) dataset = TUDataset(root, 'MUTAG') assert len(dataset) == 188 assert dat...
249
364
<filename>ThirdParty/oglplus-develop/test/oglplus/boost_utfw.cpp<gh_stars>100-1000 /** * .file test/oglplus/boost_utfw.cpp * .brief Test case checking if Boost unit test framework works * * .author <NAME> * * Copyright 2011-2013 <NAME>. Distributed under the Boost * Software License, Version 1.0. (See accom...
229
2,550
package com.deepoove.poi.tl.config; import static org.junit.jupiter.api.Assertions.assertEquals; import java.io.IOException; import java.io.InputStream; import java.util.Collections; import org.apache.poi.xwpf.usermodel.XWPFDocument; import org.apache.poi.xwpf.usermodel.XWPFRun; import org.junit.jupiter.api.Test; i...
822
488
<gh_stars>100-1000 class X { public: static int isParallel() { if (isparallel == -1) isparallel = 42; return isparallel; } static int numProcs; static int isInitialized; static int isparallel; ...
190
611
<filename>Sources/Backend/hermes/account/HMAccount.h // DejaLu // Copyright (c) 2015 <NAME>. All rights reserved. #ifndef __dejalu__HMAccount__ #define __dejalu__HMAccount__ #include <MailCore/MailCore.h> #include <libetpan/libetpan.h> #include "HMIMAPAccountSynchronizerDelegate.h" #include "HMMessageQueueSenderDele...
4,905
1,475
<filename>geode-core/src/main/java/org/apache/geode/cache/query/security/RegExMethodAuthorizer.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 ...
2,258
306
<gh_stars>100-1000 from rest_framework import renderers class StreamingRenderer(renderers.JSONRenderer): media_type = "text/event-stream"
48
2,542
// ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ #include "stdafx.h" #include "...
2,262
6,958
<gh_stars>1000+ // // NPUConvolution.hpp // MNN // // Created by MNN on 2019/09/11. // Copyright © 2018, Alibaba Group Holding Limited // #ifndef MNN_NPUCONVOLUTION_HPP #define MNN_NPUCONVOLUTION_HPP #include "NPUCommonExecution.hpp" #include "NPUBackend.hpp" namespace MNN { class NPUConvolution : public NPUCom...
313
5,169
{ "name": "OKRESTClient", "version": "0.1.0", "summary": "An Objective-C client for REST server.", "description": " OKRESTClient is designed to match with certain REST Server written in PHP by me.\n I'll publish REST Server code too\n", "homepage": "https://github.c...
274
400
<gh_stars>100-1000 import os import dill import json import lmdb import torch import random import shutil import tempfile import numpy as np from abc import ABCMeta from PIL import Image from tqdm import tqdm from torch import Tensor from typing import Any from typing import Set from typing import Dict from typing im...
16,520
367
<reponame>antdigo/ngx_aws_auth<gh_stars>100-1000 #ifndef __NGX_AWS_AUTH__CRYPTO_HELPER__ #define __NGX_AWS_AUTH__CRYPTO_HELPER__ #include <ngx_core.h> #include <ngx_palloc.h> ngx_str_t* ngx_aws_auth__hash_sha256(ngx_pool_t *pool, const ngx_str_t *blob); ngx_str_t* ngx_aws_auth__sign_sha256_hex(ngx_pool_t *pool, con...
192
325
#pragma once int rafcGetValue2();
17
721
<filename>nucleus/testing/test_utils.py<gh_stars>100-1000 # Copyright 2018 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 # # U...
4,977
3,680
<reponame>DougRogers-DigitalFish/USD // // Copyright 2016 Pixar // // Licensed under the Apache License, Version 2.0 (the "Apache License") // with the following modification; you may not use this file except in // compliance with the Apache License and the following modification to it: // Section 6. Trademarks. is del...
7,861
1,461
#include "dwm_util.h" HRESULT DwmSetIconicThumbnail(HWND hwnd, HBITMAP hbmp, DWORD dwSITFlags) { typedef HRESULT(WINAPI *LPSetProcessDPIAware)(HWND hwnd, HBITMAP hbmp, DWORD dwSITFlags); static LPSetProcessDPIAware pDwmSetIconicThumbnail = NULL; if (pDwmSetIconicThumbnail) { return pDwmSetIconicThumbnail(hwnd, ...
1,215
1,327
/* * Copyright (C) 2020 Intel Corporation * * SPDX-License-Identifier: MIT * * @file zel_tracing_ddi.h * * This file has been manually generated. * There is no "spec" for this loader layer "tracer" API. */ #ifndef _ZEL_TRACING_DDI_H #define _ZEL_TRACING_DDI_H #if defined(__cplusplus) #pragma once #endif #incl...
1,326
370
/** @file serialise.h * @brief functions to convert classes to strings and back */ /* Copyright (C) 2006,2007,2008,2009,2012,2014 <NAME> * * 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; e...
749
2,816
//===----------------------------------------------------------------------===// // DuckDB // // duckdb/common/thread.hpp // // //===----------------------------------------------------------------------===// #pragma once #include <thread> namespace duckdb { using std::thread; }
88
303
<filename>lightcrafts/src/com/lightcrafts/ui/toolkit/TextAreaFactory.java /* Copyright (C) 2005-2011 <NAME> */ package com.lightcrafts.ui.toolkit; import javax.swing.*; /** * A static utility to configure JTextAreas in a standard way. It takes a * text String and a column width, and returns a JTextArea that has w...
501
864
<gh_stars>100-1000 import param from holoviews.core.operation import Operation from holoviews.element import Curve from holoviews.element.comparison import ComparisonTestCase from holoviews.streams import Stream, Params class ExampleOperation(Operation): label = param.String() def _process(self, obj, key=N...
1,045
3,151
package com.rarchives.ripme.ripper.rippers; import java.io.IOException; import java.net.MalformedURLException; import java.net.URL; import java.util.ArrayList; import java.util.List; import java.util.regex.Matcher; import java.util.regex.Pattern; import com.rarchives.ripme.ripper.AbstractJSONRipper; import com.rarchi...
1,987
453
import numpy as np from gym.spaces.box import Box from gym.spaces.discrete import Discrete from cpprb import ReplayBuffer, PrioritizedReplayBuffer from tf2rl.algos.policy_base import OffPolicyAgent from tf2rl.envs.utils import is_discrete def get_space_size(space): if isinstance(space, Box): return spac...
1,332
500
<reponame>echinopsii/net.echinopsii.3rdparty.blueprints package com.tinkerpop.blueprints.oupls.sail; import com.tinkerpop.blueprints.Edge; import com.tinkerpop.blueprints.Graph; import com.tinkerpop.blueprints.KeyIndexableGraph; import com.tinkerpop.blueprints.Vertex; import com.tinkerpop.blueprints.impls.tg.TinkerGra...
5,375
2,663
<gh_stars>1000+ { "type": "Next Phase Event", "definition": { "text": "The next phase event determines when there should be a switch of phases to the next phase in a predefined sequence." }, "paragraphs": [ { "style": "Block", "text": "Content" }, ...
579
483
import datetime from typing import Dict from bgmi.script import ScriptBase from bgmi.utils import parse_episode class Script(ScriptBase): class Model(ScriptBase.Model): bangumi_name = "TEST_BANGUMI" cover = "" update_time = "Mon" due_date = datetime.datetime(2080, 9, 30) def ...
571
435
{ "description": "Sphinx can extract paragraphs from sphinx document and store them into gettext format translation catalog files. Gettext format translation catalog is easy to translate from one language to other languages. Also Sphinx support internationalization by using such catalog files. You can use your favori...
321
4,253
package com.mashibing.eurekaserver; import java.net.URI; import java.util.Collections; import java.util.Map; import javax.servlet.http.HttpServletResponse; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.web.bind.ann...
594
776
package act.cli.meta; /*- * #%L * ACT Framework * %% * Copyright (C) 2014 - 2017 ActFramework * %% * 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...
591
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,140
626
package org.jsmart.zerocode.integrationtests.customassert; import org.jsmart.zerocode.core.engine.executor.javaapi.CustomAsserter; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.util.Map; /** * implement CustomAsserter interface method asserted(...) * or * implement your own flavoured method...
874
897
<filename>Python/other/Distinct_elements_count.py # Python program to count distinct elements in every window of size k from collections import defaultdict def Distinct_count(array, window): # Creates an empty hashmap hash_map = defaultdict(lambda: 0) count_distinct = 0 for i in range(window): ...
495