max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
348
<filename>docs/data/leg-t2/077/07710479.json {"nom":"Vaires-sur-Marne","circ":"10ème circonscription","dpt":"Seine-et-Marne","inscrits":8559,"abs":5091,"votants":3468,"blancs":243,"nuls":113,"exp":3112,"res":[{"nuance":"REM","nom":"<NAME>","voix":1862},{"nuance":"FI","nom":"<NAME>","voix":1250}]}
124
353
package org.nutz.nop.test; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import java.util.Date; import org.junit.Test; import org.nutz.http.Request.METHOD; import org.nutz.http.Response; import org.nutz.json.Json; import org.nutz.json.JsonFormat; import org.nu...
1,069
3,897
<reponame>adelcrosge1/mbed-os /* * Copyright (c) 2017, Arm Limited and affiliates. * SPDX-License-Identifier: Apache-2.0 * * 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:/...
3,648
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 "chromeos/dbus/cups_proxy/fake_cups_proxy_client.h" #include <utility> #include "base/bind.h" #include "base/callback.h" #include "base/threadi...
313
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,135
30,023
<gh_stars>1000+ """Test the init functions for AEH.""" from datetime import timedelta import logging from unittest.mock import patch from azure.eventhub.exceptions import EventHubError import pytest from homeassistant.components import azure_event_hub from homeassistant.components.azure_event_hub.const import CONF_SE...
3,650
5,169
{ "name": "NearbyObjects", "version": "1.0.0", "summary": "Greate library for searching objects along polyline.", "description": "NearbyObjects helps you to find objects along MKPolyline with great performance.", "homepage": "https://github.com/RomanIvaniv/NearbyObjects", "license": "MIT", "authors": { ...
222
2,603
<filename>FreeRTOS/Demo/T-HEAD_CB2201_CDK/csi/csi_driver/csky/hobbit3/devices.c /* * Copyright (C) 2017 C-SKY Microsystems Co., Ltd. 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...
11,653
1,104
/* * 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; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that...
5,144
374
import numpy as np # import pandas as pd import theano import theano.tensor as T import layers import cc_layers import custom import load_data import realtime_augmentation as ra import time import csv import os import cPickle as pickle from datetime import datetime, timedelta # import matplotlib.pyplot as plt # plt.i...
7,361
1,665
#include "IRVisitor.h" #include "IR.h" using namespace Bish; IRVisitor::~IRVisitor() { } void IRVisitor::visit(Module *node) { if (visited(node)) return; visited_set.insert(node); node->global_variables->accept(this); for (std::vector<Function *>::const_iterator I = node->functions.begin(), ...
1,635
4,168
package net.corda.node.services; import co.paralleluniverse.fibers.Suspendable; import net.corda.core.flows.FlowLogic; import net.corda.core.flows.StartableByRPC; import net.corda.core.node.AppServiceHub; import net.corda.core.node.services.CordaService; import net.corda.core.node.services.ServiceLifecycleEvent; impor...
834
308
<gh_stars>100-1000 # -*- coding: utf-8 -*- from hamcrest import * from amplify.agent.common.context import context from test.base import BaseTestCase from test.fixtures.defaults import * __author__ = "<NAME>" __copyright__ = "Copyright (C) Nginx, Inc. All rights reserved." __license__ = "" __maintainer__ = "<NAME>" _...
1,038
989
/* * Copyright (c) 2019 The StreamX Project * <p> * 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 Apach...
623
1,013
<filename>src/circularhexagonmaze.cpp #include "circularhexagonmaze.h" #include <cmath> #include <iostream> CircularHexagonMaze::CircularHexagonMaze(int size) : HexagonalMaze(size) {} std::shared_ptr<CellBorder> CircularHexagonMaze::GetEdge(int sector, int row, ...
821
369
<gh_stars>100-1000 /* * Copyright © 2021 <NAME>, 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...
871
327
#ifndef CONNECT_H #define CONNECT_H #include <QWidget> namespace Ui { class Connect; } class Connect : public QWidget { Q_OBJECT public: explicit Connect(QWidget *parent = nullptr); ~Connect(); bool hasMails = false; public slots: void check_mail(); void gotoInbox(); signals: void newMa...
391
760
"""ML-ENSEMBLE :author: <NAME> :copyright: 2017-2018 :licence: MIT Testing objects """ from .dummy import (Data, EstimatorContainer, run_learner, get_learner, get_layer, run_layer, InitMixin, ...
332
460
package de.saxsys.mvvmfx; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * This annotation is used to inject a {@link Scope} object into a {@link ViewModel}. * * @author alexander.casall */ @Rete...
134
836
/* * Copyright (C) 2021 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
827
423
""" ================================ Plot Example Retinotopy Flatmaps ================================ This demo shows how to plot example retinotopy data onto a subject's brain on a flatmap. In order for this demo to work, you need to download this dataset_, but that can also be done automatically through the `urllib...
520
2,415
<reponame>al3pht/cloud-custodian<gh_stars>1000+ # Copyright The Cloud Custodian Authors. # SPDX-License-Identifier: Apache-2.0 import logging from c7n_openstack.resources import ( project, flavor, server, user, ) log = logging.getLogger('custodian.openstack') ALL = [ flavor, project, serv...
160
324
<reponame>tormath1/jclouds /* * 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 ...
1,318
2,542
<gh_stars>1000+ // ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ #include "stda...
961
3,579
<gh_stars>1000+ package com.querydsl.jpa.domain.sql; import static com.querydsl.core.types.PathMetadataFactory.forVariable; import javax.annotation.Generated; import com.querydsl.core.types.Path; import com.querydsl.core.types.PathMetadata; import com.querydsl.core.types.dsl.NumberPath; import com.querydsl.core.type...
900
308
<filename>syntaxnet/syntaxnet/morphology_label_set.cc /* 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...
948
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 Servi...
848
1,063
<reponame>doc-E-brown/botocore [ { "category": "``ssm``", "description": "Update ssm client to latest version", "type": "feature" }, { "category": "user-agent", "description": "Default user agent now includes the environment variable $AWS_EXECUTION_ENVIRONMENT", "type": "feature" },...
295
521
<filename>third_party/virtualbox/src/VBox/HostServices/SharedOpenGL/unpacker/unpack_clipplane.cpp /* Copyright (c) 2001, Stanford University * All rights reserved * * See the file LICENSE.txt for information on redistributing this software. */ #include "unpacker.h" #include "cr_mem.h" #include "unpack_extend.h" v...
255
3,200
/** * Copyright 2020 Huawei Technologies Co., Ltd * * 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...
763
3,066
/* * Licensed to Crate.io GmbH ("Crate") under one or more contributor * license agreements. See the NOTICE file distributed with this work for * additional information regarding copyright ownership. Crate licenses * this file to you under the Apache License, Version 2.0 (the "License"); * you may not use this f...
1,623
852
<reponame>malbouis/cmssw #ifndef DataFormatsHcalCalibObjectsHcalIsoTrkCalibVariables_h #define DataFormatsHcalCalibObjectsHcalIsoTrkCalibVariables_h #include <string> #include <vector> class HcalIsoTrkCalibVariables { public: HcalIsoTrkCalibVariables() { clear(); } void clear() { eventWeight_ = rhoh_ = 0; ...
958
14,425
/** * 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 n...
1,727
572
<reponame>CyberFlameGO/examples """Create an executable with runfiles. Runfiles are files that are needed at runtime (when the executable in run). This example also shows a use of `ctx.expand_location`. """ def _impl(ctx): # Expand the label in the command string to a runfiles-relative path. # The second arg ...
371
350
import os import pytest @pytest.fixture def travis(): return 'TRAVIS' in os.environ.keys() @pytest.fixture def appveyor(): return 'APPVEYOR' in os.environ.keys() @pytest.fixture def testdir(): return os.path.join(os.path.dirname(os.path.abspath(__file__)), 'data') @pytest.fixture def testdata(testdi...
895
1,283
/* * CrossSignal.cpp * * Created on: 2015年2月20日 * Author: fasiondog */ #include "../../../indicator/crt/KDATA.h" #include "CrossSignal.h" namespace hku { CrossSignal::CrossSignal() : SignalBase("SG_Cross") { setParam<string>("kpart", "CLOSE"); } CrossSignal::CrossSignal(const Indicator& fast, const I...
652
841
<reponame>brunolmfg/resteasy package org.jboss.resteasy.test.exception.resource; import jakarta.ws.rs.core.Response; import jakarta.ws.rs.ext.ExceptionMapper; import jakarta.ws.rs.ext.Provider; @Provider public class ExceptionMapperRuntimeExceptionMapper implements ExceptionMapper<RuntimeException> { @Override ...
147
852
// -*- C++ -*- // // Package: PluginManager // Class : TwoDummy // // Implementation: // <Notes on implementation> // // Original Author: <NAME> // Created: Fri Apr 6 15:32:53 EDT 2007 // // system include files // user include files #include "FWCore/PluginManager/test/DummyFactory.h" namespa...
195
3,326
<gh_stars>1000+ import pytest import cirq from cirq.testing import assert_equivalent_op_tree from cirq.devices.noise_properties import ( NoiseProperties, NoiseModelFromNoiseProperties, get_duration_ns, ) import numpy as np def test_invalid_arguments(): with pytest.raises(ValueError, match='At least on...
5,583
310
import torch from const import * def word2idx(sents, word2idx): results = [] for t1, t2 in sents: t1 = [word2idx[w] if w in word2idx else UNK for w in t1] t2 = [word2idx[w] if w in word2idx else UNK for w in t2] results.append([t1, t2]) return results class Dictionary(object): ...
1,150
3,459
#ifdef SCPU_CPP uint8 sCPU::pio() { return status.pio; } bool sCPU::joylatch() { return status.joypad_strobe_latch; } //WMDATA uint8 sCPU::mmio_r2180() { uint8 r = bus.read(0x7e0000 | status.wram_addr); status.wram_addr = (status.wram_addr + 1) & 0x01ffff; return r; } //WMDATA void sCPU::mmio_w2180(uint8 data)...
6,141
3,001
import numpy as np import pandas as pd from sklearn.base import TransformerMixin class MonthlySubquotaLimitClassifier(TransformerMixin): """ Monthly Subquota Limit classifier. Dataset ------- issue_date : datetime column Date when the expense was made. month : int column The ...
3,599
435
{ "copyright_text": null, "description": "Over the course of nearly a year, we migrated Pinterest's primary\nsystems from Python2 to Python3. A large, tightly coupled codebase with\nover 2 million lines of code, the Pinterest codebase contained nearly\nevery edge case that might exist in a Py2 to Py3 migration.\n\n...
526
1,083
<reponame>bieremayi/carbondata<filename>integration/presto/src/main/prestosql/org/apache/carbondata/presto/CarbondataConnectorFactory.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 informa...
1,684
2,151
// 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. #ifndef CHROME_BROWSER_UI_WEBUI_MEDIA_ROUTER_MEDIA_ROUTER_RESOURCES_PROVIDER_H_ #define CHROME_BROWSER_UI_WEBUI_MEDIA_ROUTER_MEDIA_ROUTER_RESOURCES_PROVID...
240
723
<filename>code/python/ch17/src/binary_chunk.py from binary_reader import BinaryReader from binary_chunk_header import BinaryChunkHeader from prototype import Prototype class BinaryChunk: def __init__(self, chunk): self.binary_reader = BinaryReader(chunk) self.header = None self.size_upvalu...
495
412
/* Copyright 2015 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 wri...
3,164
1,847
// Copyright (c) 2021 The Orbit 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 <atomic> #include <csignal> #include <thread> #include "VulkanTutorial/OffscreenRenderingVulkanTutorial.h" namespace { std::atomic<bool> exit_...
387
424
// Copyright 2015 <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 w...
1,286
573
<reponame>Morph1984/dynarmic<filename>src/dynarmic/backend/x64/host_feature.h /* This file is part of the dynarmic project. * Copyright (c) 2021 MerryMage * SPDX-License-Identifier: 0BSD */ #pragma once #include "dynarmic/common/common_types.h" namespace Dynarmic::Backend::X64 { enum class HostFeature : u64 { ...
743
1,614
// // CollectionViewCell.h // WXSTransition // // Created by 王小树 on 16/5/31. // Copyright © 2016年 王小树. All rights reserved. // #import <UIKit/UIKit.h> @interface CollectionViewCell : UICollectionViewCell @property (nonatomic,strong) UIImageView *imgView; @end
107
535
/* * 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 ...
766
1,056
<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 * ...
10,230
892
{ "schema_version": "1.2.0", "id": "GHSA-54hp-9qvj-7wxg", "modified": "2022-05-01T18:43:17Z", "published": "2022-05-01T18:43:17Z", "aliases": [ "CVE-2007-6472" ], "details": "Multiple SQL injection vulnerabilities in phpMyRealty (PMR) 1.0.9 allow (1) remote attackers to execute arbitrary SQL commands ...
632
1,682
/* Copyright (c) 2012 LinkedIn 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 law or agreed to...
1,315
443
<reponame>alichry/revsh #include "common.h" /*********************************************************************************************************************** * * message_push() * * Input: Nothing, but we will heavily reference the global io_helper struct. * Output: 0 on success, -1 on error. * * Purpos...
3,462
1,738
<filename>dev/Code/Sandbox/Plugins/EditorCommon/QPropertyTree/PropertyRowString.cpp /* * 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 th...
825
14,668
<reponame>zealoussnow/chromium { "desc" : "Simple non-empty configuration file to test that configuration is loaded correctly", "testValue" : "something" }
47
839
<gh_stars>100-1000 /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the ...
510
640
<gh_stars>100-1000 void InitPowerupSprites() { LoadSprite(powerup_psgcompr,POWERUPBASE,powerup_psgcompr_bank); } void InitPowerups() { InitPowerupSprites(); } void UpdatePowerup() { if(powerupt!=0) { if(stageframe%8==0)powerupv++; powerupy+=powerupv; DrawSpriteArray(POWERUPBASE-2+(powerupt<<1),powerupx,powe...
519
3,428
/** * @license Apache-2.0 * * Copyright (c) 2018 The Stdlib 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 a...
466
407
<filename>secondaryindex/src/test/java/org/apache/hadoop/hbase/index/TestUtils.java /** * Copyright 2011 The Apache Software Foundation * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional informati...
1,523
312
<gh_stars>100-1000 /* key.h * Copyright (C) 2001-2007, Parrot Foundation. * Overview: * This is the API header for the PMC subsystem * Data Structure and Algorithms: * History: * Notes: * References: */ #ifndef PARROT_KEY_H_GUARD #define PARROT_KEY_H_GUARD #include "parrot/parrot.h" /* Type of Key...
3,451
585
<reponame>KevinKecc/caffe2 # Copyright (c) 2016-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 ...
663
482
package io.cattle.platform.iaas.api.filter.snapshot; import static io.cattle.platform.core.model.tables.SnapshotTable.*; import io.cattle.platform.core.model.Snapshot; import io.cattle.platform.iaas.api.filter.common.AbstractDefaultResourceManagerFilter; import io.cattle.platform.object.ObjectManager; import io.github...
821
323
<gh_stars>100-1000 # BSD 3-Clause License # # DeepGlint is pleased to support the open source community by making EasyQuant available. # Copyright (C) 2020 DeepGlint. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following con...
1,622
2,593
<filename>lib/src/main/java/github/chenupt/springindicator/SpringIndicator.java /* * Copyright 2015 chenupt * * 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.or...
5,142
657
<gh_stars>100-1000 # Generated by Django 2.1 on 2018-08-13 07:57 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("mainapp", "0016_contributor_status"), ] operations = [ migrations.RemoveField(model_name="districtneed", name="status",), ...
237
376
// Copyright (C) 2020 <NAME> // This file is part of the "Nazara Engine - Utility module" // For conditions of distribution and use, see copyright notice in Config.hpp #pragma once #ifndef NAZARA_LOADERS_MD2_HPP #define NAZARA_LOADERS_MD2_HPP #include <Nazara/Prerequisites.hpp> #include <Nazara/Utility/Mesh.hpp> na...
155
3,459
<gh_stars>1000+ /* * Copyright 2017 requery.io * * 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 la...
2,658
1,466
<gh_stars>1000+ /** * Copyright 2004-present, Facebook, 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 requir...
3,765
2,151
//===- AMDGPUMCInstLower.h MachineInstr Lowering Interface ------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
220
25,151
package org.openqa.selenium.concurrent; import static java.util.concurrent.TimeUnit.SECONDS; import static java.util.logging.Level.WARNING; import java.util.concurrent.ExecutorService; import java.util.logging.Logger; public class ExecutorServices { private static final Logger LOG = Logger.getLogger(ExecutorServi...
282
923
package cc.mrbird.febs.auth.service.impl; import cc.mrbird.febs.auth.properties.FebsAuthProperties; import cc.mrbird.febs.auth.properties.FebsValidateCodeProperties; import cc.mrbird.febs.auth.service.ValidateCodeService; import cc.mrbird.febs.common.core.entity.constant.FebsConstant; import cc.mrbird.febs.common.core...
1,357
538
/* * Copyright 2016 JiongBull * * 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...
946
535
#define TYPE uintmax_t #define NAME strtoumax #include "templates/strtox.c.template"
31
1,053
<filename>tos/chips/cortex/m3/sam3/u/mpu/sam3umpuhardware.h<gh_stars>1000+ /* * Copyright (c) 2009 Stanford University. * 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...
2,450
521
/* Copyright (c) 2001, Stanford University * All rights reserved * * See the file LICENSE.txt for information on redistributing this software. */ #include "unpacker.h" void crUnpackLightfv(PCrUnpackerState pState) { CHECK_BUFFER_SIZE_STATIC_LAST(pState, sizeof(int) + 4, GLenum); GLenum light = READ_DATA(...
2,106
2,236
# Authored by : gusdn3477 # Co-authored by : - # Link : http://boj.kr/178ebc4de06c4c1fb718d3038ec42d50 import sys def input(): return sys.stdin.readline().rstrip() N = int(input()) total = 0 nx = [-1, 0, 1, 0] ny = [0, -1, 0, 1] stu = [] feel = [[0 for i in range(N)] for j in range(N)] arr = [[0 for i in range(N...
1,019
2,151
<reponame>zipated/src // Copyright 2017 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_LANGUAGE_CORE_BROWSER_LANGUAGE_MODEL_H_ #define COMPONENTS_LANGUAGE_CORE_BROWSER_LANGUAGE_MODEL_H_ #include <str...
385
1,998
from .logger_middleware import LoggerMiddleware __all__ = ["LoggerMiddleware"]
25
627
<filename>firmware/coreboot/3rdparty/chromeec/include/curve25519.h<gh_stars>100-1000 /* Copyright 2017 The Chromium OS 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 __CROS_EC_CURVE25519_H #define __CROS_EC_CURVE25519_H ...
747
365
/* * 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; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be use...
827
4,054
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.search.intent.model; import java.util.Map; /** * A source node in an intent model tree. Represents a source with an appropriateness score * (i.e the score of a source node is called <i>appropri...
413
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.authorization.fluent.models; import com.azure.core.util.ExpandableStringEnum; import com.fasterxml.jackson.annotation.JsonCreato...
601
1,338
<filename>src/preferences/bluetooth/BluetoothWindow.h /* * Copyright 2008-09, <NAME>, <oliver.ruiz.dorantes_at_gmail.com> * All rights reserved. Distributed under the terms of the MIT License. */ #ifndef BLUETOOTH_WINDOW_H #define BLUETOOTH_WINDOW_H #include "BluetoothSettingsView.h" #include <Application.h> #inc...
299
7,137
<reponame>grego10/onedev package io.onedev.server.util; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; public class RangeBuilder { private final List<List<Long>> ranges = new ArrayList<>(); public RangeBuilder(List<Long> discreteValues, List<Long> allValues) { ...
369
460
/* * Copyright (C) 1997 <NAME> (<EMAIL>) * (C) 1997 <NAME> (<EMAIL>) * (C) 1998 <NAME> (<EMAIL>) * (C) 1999 <NAME> (<EMAIL>) * (C) 1999 <NAME> (<EMAIL>) * Copyright (C) 2003, 2004, 2005, 2006, 2009 Apple Inc. All rights reserved. * * This library is free software;...
2,645
364
// AUTOGENERATED CODE. DO NOT MODIFY DIRECTLY! Instead, please modify the util/function/VariadicFunction.ftl file. // See the README in the module's src/template directory for details. package com.linkedin.dagli.util.function; import com.linkedin.dagli.util.exception.Exceptions; @FunctionalInterface public interfa...
305
2,290
package com.robotium.solo; import java.lang.reflect.Field; import java.util.ArrayList; import java.util.HashSet; import java.util.List; import java.util.Set; import android.app.Instrumentation; import android.content.Context; import android.os.SystemClock; import android.view.View; import android.view.ViewGroup; impor...
5,767
854
__________________________________________________________________________________________________ sample 196 ms submission # Definition for a binary tree node. # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution: def rangeSumB...
1,000
2,434
/* * Copyright 2017 <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...
326
521
#include "nsILocalFile.h" #if 0 /* too new */ #include "nsStringGlue.h" #else #include "nsString.h" #endif #include <stdio.h> #include "nsXPCOM.h" #include "nsIComponentManager.h" #include "nsIComponentRegistrar.h" #include "nsIServiceManager.h" #include "nsIMemory.h" #include "nsComponentManagerUtils.h" #include "ns...
4,558
333
<reponame>JustinKyleJames/irods #ifndef _HASHER_HPP_ #define _HASHER_HPP_ #include "HashStrategy.hpp" #include "irods_error.hpp" #include <string> #include <boost/any.hpp> namespace irods { const std::string STRICT_HASH_POLICY( "strict" ); const std::string COMPATIBLE_HASH_POLICY( "compatible" ); class...
385
3,102
class T; class S { T *t; int a; };
22
877
<filename>BlockParty/BlockPartyConstants.h // // BlockPartyConstants.h // BlockParty // // Created by <NAME> on 17/09/2015. // Copyright © 2015 <NAME>. All rights reserved. // #ifndef BlockPartyConstants_h #define BlockPartyConstants_h #define APP_EXTENSION_NAME @"com.blackwaterpark.apps.BlockParty.ContentBlock" ...
165
400
/* * dynamic_analyzer_loader.cpp - dynamic analyzer loader * * Copyright (c) 2015 Intel Corporation * * 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/li...
1,055
999
<filename>repokid/cli/dispatcher_cli.py import contextlib import inspect import json from typing import Any from typing import Dict from typing import Generator from typing import Optional from cloudaux.aws.sts import boto3_cached_conn from mypy_boto3_sns.client import SNSClient from mypy_boto3_sqs.client import SQSCl...
1,793
394
#include "dronet_control/deep_navigation.h" namespace deep_navigation { deepNavigation::deepNavigation( const ros::NodeHandle& nh, const ros::NodeHandle& nh_private) : nh_(nh), nh_private_(nh_private), name_(nh_private.getNamespace()) { ROS_INFO("[%s]: Initializing Deep Control Node", name_...
1,364
416
/* File: AVPlayerViewController.h Framework: AVKit Copyright © 2014-2017 Apple Inc. All rights reserved. */ #import <UIKit/UIKit.h> #import <AVFoundation/AVFoundation.h> NS_ASSUME_NONNULL_BEGIN @protocol AVPlayerViewControllerDelegate; /*! @class AVPlayerViewController @abstract AVPlayerViewControlle...
1,793