max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
1,337
<reponame>zhoupan/cuba /* * Copyright (c) 2008-2019 Haulmont. * * 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 b...
541
14,668
// 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 "media/mojo/clients/mojo_decryptor.h" #include <stddef.h> #include <stdint.h> #include <utility> #include "base/bind.h" #include "base/numeric...
3,673
488
<reponame>maurizioabba/rose // gcj used to generate incorrect bytecode for // staticMethod().staticMethod() public class pr16789 { public void foo() { System.out.println(Thread.currentThread().holdsLock(this)); } public static void main(String[] args) { new pr16789().foo(); } }
104
348
/** * Copyright 2017 Netflix, Inc. * <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 * <p> * http://www.apache.org/licenses/LICENSE-2.0 * <p> * Unless required by applicable law or...
1,615
348
<reponame>chamberone/Leaflet.PixiOverlay {"nom":"Sorbs","circ":"4ème circonscription","dpt":"Hérault","inscrits":73,"abs":28,"votants":45,"blancs":12,"nuls":4,"exp":29,"res":[{"nuance":"REM","nom":"<NAME>","voix":16},{"nuance":"FN","nom":"<NAME>","voix":13}]}
109
2,151
// Copyright 2013 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 EXTENSIONS_BROWSER_UPDATE_OBSERVER_H_ #define EXTENSIONS_BROWSER_UPDATE_OBSERVER_H_ #include <string> namespace extensions { class Extension; c...
208
4,822
<filename>server/src/test/java/org/opensearch/bootstrap/JavaVersionTests.java /* * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to * this file be licensed under the Apache-2.0 license or a * compatible open source license. */ /* * Licensed to Elasticsearch under...
2,680
2,027
/* * Copyright 2018-present Open Networking Foundation * * 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 applicabl...
1,643
666
<reponame>tgolsson/appJar from appJar import gui # function to handle the button presses def press(btn): # if quit button pressed - stop GUI if btn == "Quit": win.stop() # if clear button pressed - clear all entries elif btn == "Clear": win.clearEntry ( "Multiple" ) win.clearLis...
530
1,467
<gh_stars>1000+ /** * Copyright Soramitsu Co., Ltd. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ #ifndef INTEGRATION_FRAMEWORK_FAKE_PEER_BLOCK_STORAGE_HPP_ #define INTEGRATION_FRAMEWORK_FAKE_PEER_BLOCK_STORAGE_HPP_ #include <shared_mutex> #include <unordered_map> #include <vector> #include "crypt...
797
1,043
package com.oath.micro.server.events; import java.util.Optional; import java.util.Random; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import org.aspectj.lang.ProceedingJoinPoint; import org.aspectj.lang.annotation.Around; import org.aspectj.lang.annotation.Aspect...
2,248
405
import re from jsonschema.validators import validator_for from spidermon.contrib.validation.validator import Validator from .translator import JSONSchemaMessageTranslator from .formats import format_checker REQUIRED_RE = re.compile("'(.+)' is a required property") class JSONSchemaValidator(Validator): default...
479
1,510
<reponame>fscheung/drill /* * 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...
2,327
17,004
<gh_stars>1000+ { "event": "new", "buildid": 33, "buildername": "runtests", "url": "http://exampleurl.com/#builders/1/builds/33", "project": "buildbot-hello", "timestamp": 1553910544 }
82
728
<reponame>thombashi/sqlitebiter """ .. codeauthor:: <NAME> <<EMAIL>> """ from ._const import ExitCode class ResultCounter: @property def success_count(self) -> int: return self.__success_count @property def fail_count(self) -> int: return self.__fail_count @property def skip...
749
312
// Epiphany implementation for reduction of n mod p for large n and small // primes p (currently < 2^30, although raising this limit to 2^31 would be // reasonably simple). // A bitfield representing the odd numbers that are primes above a certain base // is read in from shared memory by DMA transfer, along with n. /...
9,999
30,023
"""Tests for the comfoconnect sensor platform.""" # import json from unittest.mock import patch import pytest from homeassistant.components.sensor import DOMAIN from homeassistant.setup import async_setup_component from tests.common import assert_setup_component COMPONENT = "comfoconnect" VALID_CONFIG = { COMPO...
1,181
488
// t0391.cc // using declaration refers to templatized base class overloaded function template <class T> struct B { void f(); void f(int) const; // original second alternative: void f() const; }; struct A : public B<char> { using B<char>::f; void g() { f(); } };
100
11,750
import _plotly_utils.basevalidators class LayoutValidator(_plotly_utils.basevalidators.CompoundValidator): def __init__(self, plotly_name="layout", parent_name="layout.template", **kwargs): super(LayoutValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, ...
255
3,083
<reponame>myArea51/binnavi<filename>src/test/java/com/google/security/zynamics/binnavi/disassembly/AddressSpaces/MockAddressSpace.java /* Copyright 2014 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 ...
937
2,259
import gym import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from torch.distributions import Categorical #Hyperparameters learning_rate = 0.0002 gamma = 0.98 n_rollout = 10 class ActorCritic(nn.Module): def __init__(self): super(ActorCritic, self)._...
1,808
571
<reponame>taellinglin/butano /* * Copyright (c) 2020-2021 <NAME> <EMAIL> * zlib License, see LICENSE file. */ #ifndef BN_SPRITE_PALETTES_ACTIONS_H #define BN_SPRITE_PALETTES_ACTIONS_H /** * @file * bn::sprite_palettes actions header file. * * @ingroup sprite * @ingroup palette * @ingroup action */ #include...
7,567
449
# Copyright (c) OpenMMLab. All rights reserved. import glob import os import os.path as osp import re import tempfile import time import zipfile from collections import defaultdict from functools import partial import mmcv import numpy as np import torch from mmcv.ops import nms_rotated from mmdet.datasets.custom impo...
7,587
1,305
/* * GridMapCvProcessing.cpp * * Created on: Apr 15, 2016 * Author: <NAME>, <NAME> * Institute: ETH Zurich, ANYbotics */ #include "grid_map_cv/GridMapCvProcessing.hpp" #include "grid_map_cv/GridMapCvConverter.hpp" #include <Eigen/Geometry> #include <opencv2/core/eigen.hpp> namespace grid_map { GridMapC...
2,170
678
/** * This header is generated by class-dump-z 0.2b. * * Source: /System/Library/PrivateFrameworks/PhotoLibrary.framework/PhotoLibrary */ #import <PhotoLibrary/PhotoLibrary-Structs.h> #import <PhotoLibrary/XXUnknownSuperclass.h> @interface PLTileContainerView : XXUnknownSuperclass { } - (BOOL)canBecomeFirstRespo...
134
3,417
<gh_stars>1000+ from dispatch.enums import DispatchEnum class TaskStatus(DispatchEnum): open = "Open" resolved = "Resolved" class TaskSource(DispatchEnum): incident = "Incident" post_incident_review = "Post Incident Review" class TaskPriority(DispatchEnum): low = "Low" medium = "Medium" ...
121
335
<filename>S/Sweeping_adjective.json { "word": "Sweeping", "definitions": [ "Extending or performed in a long, continuous curve.", "Wide in range or effect.", "(of a statement) taking no account of particular cases or exceptions; too general." ], "parts-of-speech": "Adjective" }
118
302
<filename>mssqlscripter/jsonrpc/contracts/tests/test_scripting.py<gh_stars>100-1000 # -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license...
7,860
418
../../../FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginButton.h
28
435
<filename>pycon-za-2017/videos/jupyter-notebooks-for-radio-astronomy-research.json { "description": "At the Inter-University Institute for Data Intensive Astronomy (IDIA,\nwww.idia.ac.za), we are focusing on several important use-cases\nrelated to the delivery of science data products from large radio\ntelescopes, su...
563
1,132
// <NAME>, copyright Oct 2001 // . used for looking up IndexLists for queries // . call init() to get initial read info per IndexList (1 per termId in query) // . call update() to update read info for next read of lists // . use getStartKey() , getEndKey(), getNumRecsToRead() to extract read info // . tries to keep th...
1,625
743
<reponame>sivasakthiv/AdaptiveCards {"actions":[{"title":"OK","type":"Action.Submit"}],"body":[{"text":"This one is optional","type":"TextBlock"},{"id":"input1","type":"Input.Text"},{"text":"This one too","type":"TextBlock"},{"id":"input2","type":"Input.Text"},{"text":"This is required","type":"TextBlock"},{"id":"input...
127
2,027
<gh_stars>1000+ /* * Copyright 2018-present Open Networking Foundation * * 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 requi...
1,013
14,668
<reponame>chromium/chromium // Copyright 2013 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/device/wake_lock/power_save_blocker/power_save_blocker.h" #include "base/memory/ref_counted.h" namespace ...
371
605
# TestMainExecutable.py # # This source file is part of the Swift.org open source project # # Copyright (c) 2019 Apple Inc. and the Swift project authors # Licensed under Apache License v2.0 with Runtime Library Exception # # See https://swift.org/LICENSE.txt for license information # See https://swift.org/CONTRIBUTORS...
2,890
994
from fractions import Fraction from functools import reduce def product(fracs): t =reduce(lambda numerator,denominator:numerator*denominator,fracs) # complete this line with a reduce statement return t.numerator, t.denominator if __name__ == '__main__': fracs = [] for _ in range(int(in...
162
386
////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2010, Image Engine Design Inc. All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Re...
5,384
1,607
<gh_stars>1000+ /* * Copyright 2014-present Facebook, 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 a...
518
520
/* * Copyright (C) 2017 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/LICENSE-2.0 * * Unless required by applicable law or agree...
2,061
988
/* * PROGRAM: Client/Server Common Code * MODULE: fb_atomic.h * DESCRIPTION: Atomic counters * * The contents of this file are subject to the Initial * Developer's Public License Version 1.0 (the "License"); * you may not use this file except in compliance with the * License. You may obtain a copy of the...
1,278
307
class Vocab(): def __init__(self, chars): self.pad = 0 self.go = 1 self.eos = 2 self.mask_token = 3 self.chars = chars self.c2i = {c:i+4 for i, c in enumerate(chars)} self.i2c = {i+4:c for i, c in enumerate(chars)} self.i2c[0] = '<pad>' ...
515
2,522
<filename>esp-link/cgiwebserversetup.h<gh_stars>1000+ #ifndef CGIWEBSERVER_H #define CGIWEBSERVER_H #include <httpd.h> int ICACHE_FLASH_ATTR cgiWebServerSetupUpload(HttpdConnData *connData); #endif /* CGIWEBSERVER_H */
96
568
package com.fincatto.documentofiscal.transformers; import org.junit.Assert; import org.junit.Test; import com.fincatto.documentofiscal.DFUnidadeFederativa; public class DFUnidadeFederativaTransformerTest { @Test public void deveTestarLeitura() throws Exception { Assert.assertEquals(DFUnidadeFederativ...
2,460
303
/* Copyright (C) 2005-2011 <NAME> */ package com.lightcrafts.image.export; /** * A <code>BitsPerChannelOption</code> is-an {@link IntegerExportOption} for * storing the number of bits-per-channel for an image. * * @author <NAME> [<EMAIL>] */ public final class BitsPerChannelOption extends IntegerExportOption { ...
473
778
<gh_stars>100-1000 /* * Copyright (C) 2019-2020 Intel Corporation * * SPDX-License-Identifier: MIT * */ #include "shared/source/debug_settings/definitions/translate_debug_settings.h" namespace NEO { void translateDebugSettings(DebugVariables &debugVariables) { translateDebugSettingsBase(debugVariables); } ...
107
2,151
/* * Copyright 2015 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkBitmapProvider.h" #include "SkImage_Base.h" #include "SkPixelRef.h" int SkBitmapProvider::width() const { return fImage->width(); } int SkBitmapProvider::hei...
432
12,278
//---------------------------------------------------------------------------// // Copyright (c) 2013 <NAME> <<EMAIL>> // // Distributed under the Boost Software License, Version 1.0 // See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt // // See http://boostorg.github.com/compute ...
4,937
445
#!/usr/bin/env python __all__ = ['iqiyi_download'] import re from common import * def real_url(url): import time import json return json.loads(get_html(url[:-3]+'hml?v='+str(int(time.time()) + 1921658928)))['l'] # XXX: what is 1921658928? def iqiyi_download(url, merge=True): html = get_html(url) #title = r1(r'...
605
649
<reponame>xjc90s/serenity-core<gh_stars>100-1000 package net.thucydides.junit.runners; import net.serenitybdd.junit.runners.SerenityParameterizedRunner; import net.thucydides.core.batches.BatchManager; import net.thucydides.core.webdriver.DriverConfiguration; import net.thucydides.core.webdriver.WebDriverFactory; /**...
277
2,504
// --------------------------------------------------------------------- // THIS FILE IS AUTO-GENERATED BY BEHAVIAC DESIGNER, SO PLEASE DON'T MODIFY IT BY YOURSELF! // --------------------------------------------------------------------- #include "behaviac_generated_behaviors_8.h" namespace behaviac { // Source fil...
25,897
9,861
// Copyright Catch2 Authors // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // https://www.boost.org/LICENSE_1_0.txt) // SPDX-License-Identifier: BSL-1.0 #ifndef CATCH_PLATFORM_HPP_INCLUDED #define CATCH_PLATFORM_HPP_INCLUDED //...
422
305
<reponame>mickotronic/eventgen<gh_stars>100-1000 import os def make_splunkhome_path(*args): splunk_test_dir = os.path.dirname( os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) ) tests_large_dir = os.path.dirname(splunk_test_dir) return os.path.join(tests_large_dir, ...
153
377
//------------------------------------------------------------------------------ // valuetable.cc // (C) 2006 Radon Labs GmbH // (C) 2013-2016 Individual contributors, see AUTHORS file //------------------------------------------------------------------------------ #include "foundation/stdneb.h" #include "db/valueta...
160
381
<filename>jgiven-junit/src/test/java/com/tngtech/jgiven/junit/DataTableTest.java package com.tngtech.jgiven.junit; import static org.assertj.core.api.Assertions.assertThat; import java.util.Arrays; import java.util.List; import org.junit.Test; import com.tngtech.jgiven.annotation.ExtendedDescription; import com.tng...
1,653
707
<reponame>jasondaming/allwpilib // Copyright (c) FIRST and other WPILib contributors. // Open Source Software; you can modify and/or share it under the terms of // the WPILib BSD license file in the root directory of this project. package edu.wpi.first.math.kinematics; import static org.junit.jupiter.api.Assertions.a...
4,606
2,125
from torchnlp.datasets import count_dataset def test_count_dataset(): test_data = count_dataset(test=True) train_data, dev_data, test_data = count_dataset(test=True, train=True, dev=True) # Test if data generated is consistent assert list(test_data) == list(test_data) assert len(train_data) > 0 ...
196
661
/** @hide **/ package io.kickflip.sdk.view;
20
921
// Copyright (c) 2015-2020 <NAME> <<EMAIL>> Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.vladsch.md.nav.parser; import com.intellij.lexer.Lexer; import com.intellij.lexer.LexerPosition; import com.intellij.lexer.RestartableLexer; import com.intellij.l...
3,654
631
/** * 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...
707
746
<reponame>chaihuasong/cube-sdk package in.srain.cube.image.drawable; import android.graphics.*; import android.graphics.drawable.Drawable; /** * A drawable with rounded corners; * CenterCrop * * @author http://www.liaohuqiu.net */ public class RoundedDrawable extends Drawable { protected final float mCorner...
942
1,526
<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 "Lic...
920
1,093
<filename>spring-integration-amqp/src/main/java/org/springframework/integration/amqp/dsl/AmqpInboundGatewaySpec.java /* * Copyright 2014-2020 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 ...
796
3,229
/* * Copyright (c) 2017 Uber Technologies, Inc. * * 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 * to use, copy, modify, me...
5,352
1,064
typedef struct sp_rpi{ sp_data *sp; void *ud; void (*callback)(sp_data *, void *); }sp_rpi; int sp_rpi_process(sp_data *sp, void *ud, void (*callback)(sp_data *, void *));
82
366
<gh_stars>100-1000 // no-networkit-format /* * LAMGSettings.h * * Created on: 09.01.2015 * Author: Michael */ #ifndef NETWORKIT_NUMERICS_LAMG_LAMG_SETTINGS_HPP_ #define NETWORKIT_NUMERICS_LAMG_LAMG_SETTINGS_HPP_ #include <networkit/Globals.hpp> namespace NetworKit { // #initial test vectors (TVs) at each...
803
6,098
<filename>h2o-py/tests/testdir_algos/naivebayes/pyunit_NOPASS_grid_carsNB.py from __future__ import print_function import sys sys.path.insert(1,"../../../") import h2o from tests import pyunit_utils import random import copy from h2o.estimators.naive_bayes import H2ONaiveBayesEstimator from h2o.grid.grid_search import ...
677
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.servicebus.fluent.models; import com.azure.core.annotation.Fluent; import com.azure.core.annotation.JsonFlatten; import com.azur...
1,993
1,851
<reponame>yoelhawa/viro // // VROShaderModifier.h // ViroRenderer // // Created by <NAME> on 10/13/16. // Copyright © 2016 Viro Media. All rights reserved. // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software")...
3,223
4,538
<reponame>wstong999/AliOS-Things /* * Copyright 2009-2017 Alibaba Cloud 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/lic...
1,502
384
package me.hao0.wepay.model.bill; import java.io.Serializable; import java.util.Collections; import java.util.List; /** * 账单信息 * Author: haolin * Email: <EMAIL> * Date: 4/12/15 * @since 1.1.0 */ public class BillDetail<T extends Bill> implements Serializable { private static final long serialVersionUID = 2...
573
3,294
// class: System.Runtime.Remoting.Channels.Tcp.TcpClientChannel // client.cs: // Ctor(string, IClientChannelSinkProvider) // CreateMessageSink // Parse //<snippet30> #using <System.Runtime.Remoting.dll> #using <System.dll> #using "common.dll" using namespace System; using namespace System::Runti...
703
1,657
<filename>src/dasm_extern.h<gh_stars>1000+ // DASM_EXTERN_FUNC is a global function pointer to be set at runtime. // It will be used in place of the DASM_EXTERN() macro. typedef int (*DASM_EXTERN_TYPE) (void *ctx, unsigned char *addr, int idx, int type); DASM_EXTERN_TYPE DASM_EXTERN_FUNC; #define DASM_EXTERN(a,b,c,d) D...
148
710
<reponame>KentVu/Clean-Contacts package me.panavtec.cleancontacts.data; import android.app.Application; import dagger.Module; import dagger.Provides; import javax.inject.Singleton; import me.panavtec.cleancontacts.data.repository.contacts.datasources.api.ContactsApiService; @Module( complete = false, library ...
178
685
#include <Lemon/Graphics/Graphics.h> #include <math.h> #include <stdlib.h> #include <string.h> #include <assert.h> #include "FastMem.h" namespace Lemon::Graphics { // Check if a point lies inside a rectangle bool PointInRect(rect_t rect, vector2i_t point) { return (point.x >= rect.pos.x && point.x < rect.pos.x...
4,822
12,718
<gh_stars>1000+ // -*- 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 // /...
1,258
5,169
{ "name": "MozaFFmpeg", "version": "0.1.1", "summary": "MozaFFmpeg.", "description": "TODO: Add long description of the pod here.", "homepage": "https://gitee.com/michaelxiaonull/moza-ffmpeg", "license": { "type": "MIT", "file": "LICENSE" }, "authors": { "michaelxiaonull": "<EMAIL>" }, "...
295
1,435
from libcloud.dns.types import Provider from libcloud.dns.providers import get_driver cls = get_driver(Provider.RCODEZERO) APIKEY_RCODEZERO = 'secrettoken' API_HOST = 'my.rcodezero.at' cls = get_driver(Provider.RCODEZERO) driver = cls(APIKEY_RCODEZERO, host=API_HOST)
108
407
package com.alibaba.tesla.authproxy.oauth2client.dto; import lombok.Builder; import lombok.Data; /** * @author cdx * @date 2020/1/2 20:43 */ @Data @Builder public class TeslaJwtUserInfoDTO { private String userId; private String loginName; private String bucId; private String aliyunPk; private ...
148
5,169
<reponame>Gantios/Specs { "name": "ASNetworkManager", "version": "0.0.6", "summary": "An Easy way to Call REST APIs", "dependencies": { "SwiftyJSON": [ ] }, "authors": { "<NAME>": "<EMAIL>" }, "source": { "git": "https://github.com/ApoorvSuri/ASNetworkManager.git", "tag": "0.0.6" ...
328
848
<gh_stars>100-1000 # 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-2.0 # # Unless ...
6,735
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...
33,848
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 ON AN "AS...
1,136
6,224
<gh_stars>1000+ /* * Copyright (c) 2018 Intel Corporation. * * SPDX-License-Identifier: Apache-2.0 */ void test_fat_mount(void); void test_fat_open(void); void test_fat_write(void); void test_fat_read(void); void test_fat_close(void); void test_fat_unlink(void); void test_fat_mkdir(void); void test_fat_readdir(void...
134
9,402
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. //---------------------------------------------------------- // verbJitFlags.h - verb that prints summary of jit flags values //------------------------------------------------------...
109
2,539
<filename>CPP/Windows/Console.cpp // Windows/Console.cpp #include "StdAfx.h" #include "Console.h" namespace NWindows{ namespace NConsole{ }}
56
575
<filename>ui/views/layout/layout_types.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 UI_VIEWS_LAYOUT_LAYOUT_TYPES_H_ #define UI_VIEWS_LAYOUT_LAYOUT_TYPES_H_ #include <algorithm> #include <o...
2,141
475
from arlo import Arlo from subprocess import call USERNAME = '<EMAIL>' PASSWORD = '<PASSWORD>' try: # Instantiating the Arlo object automatically calls Login(), # which returns an oAuth token that gets cached. # Subsequent successful calls to login will update the oAuth token. arlo = Arlo(USERNAME, ...
527
458
<gh_stars>100-1000 // Copyright 2015-2021 Swim 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 applicabl...
734
605
<gh_stars>100-1000 //===----------------------------------------------------------------------===// // // 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 // //===--------...
276
348
<filename>docs/data/leg-t2/004/00401106.json<gh_stars>100-1000 {"nom":"Lurs","circ":"1ère circonscription","dpt":"Alpes-de-Haute-Provence","inscrits":298,"abs":137,"votants":161,"blancs":17,"nuls":4,"exp":140,"res":[{"nuance":"REM","nom":"<NAME>","voix":94},{"nuance":"FN","nom":"<NAME>","voix":46}]}
123
892
{ "schema_version": "1.2.0", "id": "GHSA-qxw9-5977-hjmh", "modified": "2022-05-02T03:54:51Z", "published": "2022-05-02T03:54:51Z", "aliases": [ "CVE-2009-4448" ], "details": "inc/functions_time.php in MyBB (aka MyBulletinBoard) 1.4.10, and possibly earlier versions, allows remote attackers to cause a ...
718
1,783
/* * Copyright (C) 2016 eschao <<EMAIL>> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ...
4,142
386
<filename>src/IECoreGL/bindings/SceneBinding.cpp ////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2007-2013, Image Engine Design Inc. All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided tha...
922
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. * ------------------------------...
5,007
411
''' Function: Implementation of Expectation Maximization Attention Module Author: <NAME> ''' import math import torch import torch.nn as nn import torch.nn.functional as F import torch.distributed as dist '''Expectation Maximization Attention Module''' class EMAModule(nn.Module): def __init__(self, channe...
965
2,177
<reponame>cowthan/PoorSpider<gh_stars>1000+ /** * */package org.nutz.mapl.impl;
36
892
{ "schema_version": "1.2.0", "id": "GHSA-c6xr-2587-83ff", "modified": "2021-11-30T00:00:59Z", "published": "2021-11-24T00:00:40Z", "aliases": [ "CVE-2021-31852" ], "details": "A Reflected Cross-Site Scripting vulnerability in McAfee Policy Auditor prior to 6.5.2 allows a remote unauthenticated attacke...
405
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 Reliab...
595
60,067
<filename>benchmarks/instruction_counts/definitions/setup.py """Define some common setup blocks which benchmarks can reuse.""" import enum from core.api import GroupedSetup from core.utils import parse_stmts _TRIVIAL_2D = GroupedSetup( r"x = torch.ones((4, 4))", r"auto x = torch::ones({4, 4});" ) _TRIVIAL...
912
303
#include "mousejoint/mousejoint.h" #include "modules/physics/physics.h" #include "world/world.h" using namespace love; love::Type MouseJoint::type("MouseJoint", &Joint::type); MouseJoint::MouseJoint(Body* body, float x, float y) : Joint(body), joint(NULL) { if (body->GetType() == Body::BODY_KINEMATIC) t...
1,444