max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
1,206
import logging import mitmproxy.controller import mitmproxy.proxy import mitmproxy.flow import mitmproxy.dump import mitmproxy.cmdline import mitmproxy.models import mitmproxy.protocol import mitmproxy as mproxy from mitmproxy.script import script from cachebrowser.models import Website from cachebrowser.pipes import ...
1,814
575
<filename>components/content_settings/core/common/features.h<gh_stars>100-1000 // 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 COMPONENTS_CONTENT_SETTINGS_CORE_COMMON_FEATURES_H_ #define COMPONE...
265
6,717
//****************************************************************************** // // Copyright (c) 2016 Microsoft Corporation. All rights reserved. // // This code is licensed under the MIT License (MIT). // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LI...
598
1,907
// // This source file is part of appleseed. // Visit https://appleseedhq.net/ for additional information and resources. // // This software is released under the MIT license. // // Copyright (c) 2010-2013 <NAME>, Jupiter Jazz Limited // Copyright (c) 2014-2018 <NAME>, The appleseedhq Organization // // Permission is ...
1,517
529
<reponame>inordeng/TASO /* Copyright 2020 Stanford, Tsinghua * * 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 ...
949
5,349
<reponame>marcio55afr/sktime # -*- coding: utf-8 -*- """Code for creating diagrams."""
37
310
{ "name": "4080", "description": "A double-necked electric guitar.", "url": "https://en.wikipedia.org/wiki/Rickenbacker_4080" }
50
899
# -*- coding: utf-8 -*- """ Empty file to mark package as valid django application. """
30
511
/**************************************************************************** * * Copyright 2021 Samsung Electronics 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...
1,495
5,813
<reponame>RomaKoks/druid /* * 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,482
1,068
/** * Copyright (c) 2012-2015 <NAME> * * This file is part of Handlebars.java. * * 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 * ...
918
2,151
<gh_stars>1000+ // Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "content/renderer/loader/request_extra_data.h" #include "content/common/service_worker/service_worker_types.h" #include "ser...
613
605
//===----------------------------------------------------------------------===// // // 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 // //===---------------------------...
351
777
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "components/sync/engine_impl/cycle/test_util.h" #include <map> namespace syncer { namespace test_util { void SimulateGetEncryptionKeyFaile...
2,126
633
package com.itranswarp; import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotation.Configuration; @Configuration public class ApplicationConfiguration { @Value("${spring.application.name:iTranswarp}") public String name; @Value("${spring.profiles.active:native}") pu...
100
392
<gh_stars>100-1000 /* * Counter. * This class implements a thread-safe counter. */ #include "concurrent/threads/synchronization/counter.hh" namespace concurrent { namespace threads { namespace synchronization { /* * Constructor. * Initialize the counter with value zero. */ counter::counter() : _value(0), _...
578
4,126
<gh_stars>1000+ #include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules #include "Plugin.h" cPlugin::cPlugin(const AString & a_FolderName) : m_Status(cPluginManager::psDisabled), m_Name(a_FolderName), m_Version(0), m_FolderName(a_FolderName) { } cPlugin::~cPlugin()...
334
1,510
<reponame>julien-faye/drill<filename>exec/java-exec/src/test/java/org/apache/drill/exec/physical/resultSet/project/TestTupleProjection.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 inform...
6,407
310
<reponame>dreeves/usesthis { "name": "PlayStation", "description": "A gaming console.", "url": "https://en.wikipedia.org/wiki/PlayStation_(console)" }
57
726
package org.landy.business.identify.component.enums; /** * 查询结果类型 * @author landyl * @create 2:55 PM 09/10/2018 */ public enum IdentificationResultType { SINGLE, MULTI, NO_MATCH, ; }
100
852
import FWCore.ParameterSet.Config as cms HLTOverallSummary = cms.EDAnalyzer("DQMOfflineHLTEventInfoClient", verbose = cms.untracked.bool(False) ) HLTOverallCertSeq = cms.Sequence(HLTOverallSummary)
92
852
<filename>GeneratorInterface/PyquenInterface/src/PyquenGeneratorFilter.cc #include "GeneratorInterface/PyquenInterface/interface/PyquenHadronizer.h"
48
2,151
/* * Copyright 2010 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 ...
7,484
713
<gh_stars>100-1000 package org.infinispan.server.router.integration; import static java.util.Collections.emptyMap; import static org.assertj.core.api.Assertions.assertThat; import static org.infinispan.commons.dataconversion.MediaType.TEXT_PLAIN_TYPE; import static org.infinispan.util.concurrent.CompletionStages.join;...
1,673
3,395
import polars as pl def test_sort_by_bools() -> None: # tests dispatch df = pl.DataFrame( { "foo": [1, 2, 3], "bar": [6.0, 7.0, 8.0], "ham": ["a", "b", "c"], } ) out = df.with_column((pl.col("foo") % 2 == 1).alias("foo_odd")).sort( by=["foo",...
205
715
<filename>Source/Controls/Lua/As.h /* * This source file is part of libRocket, the HTML/CSS Interface Middleware * * For the latest information, see http://www.librocket.com * * Copyright (c) 2008-2010 CodePoint Ltd, Shift Technology Ltd * * Permission is hereby granted, free of charge, to any person obtaining a...
825
399
<gh_stars>100-1000 /* * StripedLock.java * * Copyright (c) 2013 <NAME> * * This source code is subject to terms and conditions of the Apache License, Version 2.0. * A copy of the license can be found in the License.html file at the root of this distribution. * By using this source code in any fashion, you...
549
849
/* Copyright 2020 The Magma Authors. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHO...
1,964
2,392
<reponame>MelvinG24/dust3d // Copyright (c) 2006-2007 Max-Planck-Institute Saarbruecken (Germany). // All rights reserved. // // This file is part of CGAL (www.cgal.org) // // $URL: https://github.com/CGAL/cgal/blob/v5.1/Algebraic_foundations/include/CGAL/Fraction_traits.h $ // $Id: Fraction_traits.h 0779373 2020-03-26...
660
3,964
<reponame>siposcsaba89/tensorrtx #ifndef TENSORRTX_PSENET_H #define TENSORRTX_PSENET_H #include <memory> #include <vector> #include <chrono> #include <opencv2/opencv.hpp> #include "utils.h" #include "layers.h" class PSENet { public: PSENet(int max_side_len, int min_side_len, float threshold, int num_kernel,...
526
1,545
/** * * 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"); ...
418
1,884
package us.sosia.video.stream.agent.ui; import java.awt.Dimension; import java.awt.image.BufferedImage; import javax.swing.JFrame; public class VideoDisplayWindow { protected final DoubleVideoPannel videoPannel; protected final JFrame window; public VideoDisplayWindow(String name,Dimension dimension) { super()...
310
764
{"symbol": "MTB18","address": "0x1BCfD19F541eB62c8CFeBE53fe72bf2aFc35A255","overview":{"en": ""},"email": "<EMAIL>","website": "https://ico.costaflores.com/","state": "NORMAL","links": {"blog": "http://wiki.costaflores.com/#all-updates","twitter": "https://twitter.com/MTBCostaflores","telegram": "https://t.me/openvino"...
157
3,212
<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...
5,264
317
// // NodeInfo.h // drafter // // Created by <NAME> on 20-10-2005. // Copyright (c) 2015 Apiary Inc. All rights reserved. // #ifndef DRAFTER_NODEINFO_H #define DRAFTER_NODEINFO_H #include "BlueprintSourcemap.h" #include <algorithm> #define NODE_INFO(from, member) from.node->member, from.sourceMap->member #define...
2,191
353
<gh_stars>100-1000 package org.nutz.apidoc.demo.module; import org.nutz.lang.util.NutMap; import org.nutz.mvc.adaptor.JsonAdaptor; import org.nutz.mvc.annotation.AdaptBy; import org.nutz.mvc.annotation.At; import org.nutz.mvc.annotation.IocBy; import org.nutz.mvc.annotation.Modules; import org.nutz.mvc.annotation.Ok; ...
531
1,127
import argparse from pathlib import Path from utils import ( create_content, add_content_below, process_notebook_name, verify_notebook_name, split_notebooks_into_sections, ) from consts import ( artifacts_link, binder_template, blacklisted_extensions, notebooks_docs, notebooks_pa...
2,768
668
<filename>fineract-provider/src/main/java/org/apache/fineract/portfolio/collateralmanagement/api/ClientCollateralManagementApiResource.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 inform...
3,863
406
/*************************************************************************** * include/stxxl/bits/containers/btree/iterator.h * * Part of the STXXL. See http://stxxl.sourceforge.net * * Copyright (C) 2006 <NAME> <<EMAIL>> * * Distributed under the Boost Software License, Version 1.0. * (See accompanying fi...
4,349
1,058
/* * Copyright (c) 2017-2019 TIBCO Software 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 requir...
6,706
577
/* * Copyright 2021 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
4,609
381
<gh_stars>100-1000 package com.tngtech.jgiven.impl.util; import java.io.InputStream; import java.util.Properties; import com.tngtech.jgiven.exception.JGivenInstallationException; public class Version { public static final String JGIVEN_VERSION_PROPERTIES = "com/tngtech/jgiven/jgiven-version.properties"; publ...
579
355
/* -*- tab-width: 4; -*- */ /* vi: set sw=2 ts=4 expandtab: */ /* * Copyright 2016-2020 <NAME>. * SPDX-License-Identifier: Apache-2.0 */ /** * @file mygl.h * @brief Include appropriate version of gl.h for the shader-based tests. * * This is a separate header to avoid repetition of these conditionals. */ ...
978
808
<filename>lite/kernels/host/topk_v2_compute.cc // Copyright (c) 2021 PaddlePaddle 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...
1,305
479
<gh_stars>100-1000 /* * Different version of the calculator which parses the * first command line argument. E.g. pass your expression as ./calc3 "1+1;" * argv[1] is mapped to a CharInputBuffer and then fed to the lexer */ #include <iostream> #include <antlr/AST.hpp> #include <antlr/CharInputBuffer.hpp> #include "...
610
848
/* * Copyright (C) 2018 Intel Corporation. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #include <sys/param.h> #include <sys/stat.h> #include <errno.h> #include <paths.h> #include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <stdbool.h> #in...
955
4,224
<reponame>uavosky/uavosky-px4 /**************************************************************************** * * Copyright (c) 2015 Estimation and Control Library (ECL). All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the foll...
9,965
335
<reponame>Safal08/Hacktoberfest-1 { "word": "Remit", "definitions": [ "The task or area of activity officially assigned to an individual or organization.", "An item referred to someone for consideration." ], "parts-of-speech": "Noun" }
100
14,668
// 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 THIRD_PARTY_BLINK_RENDERER_MODULES_PRESENTATION_MOCK_WEB_PRESENTATION_CLIENT_H_ #define THIRD_PARTY_BLINK_RENDERER_MODULES_PRESENTATION_MOCK_WEB_P...
270
673
<gh_stars>100-1000 """ schematic_worldview """ from __future__ import absolute_import, division, print_function, unicode_literals from PySide import QtGui import logging from mcedit2.rendering.blockmodels import BlockModels from mcedit2.rendering.textureatlas import TextureAtlas from mcedit2.util import minecraftin...
1,249
2,151
// // Copyright (c) 2010-2011 Linaro Limited // // All rights reserved. This program and the accompanying materials // are made available under the terms of the MIT License which accompanies // this distribution, and is available at // http://www.opensource.org/licenses/mit-license.php // // Contributors: // <NAME>...
1,684
1,562
<reponame>Masud2017/sandboxed-api<filename>oss-internship-2020/libuv/tests/test_error.cc // Copyright 2020 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....
1,138
396
package com.mapbox.samples; import com.mapbox.geojson.Point; import com.mapbox.api.optimization.v1.MapboxOptimization; import com.mapbox.api.optimization.v1.models.OptimizationResponse; import com.mapbox.sample.BuildConfig; import retrofit2.Call; import retrofit2.Callback; import retrofit2.Response; public class Ba...
433
1,414
/* Copyright (C) 2002 Rice1964 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...
14,650
909
<gh_stars>100-1000 import java.util.List; public class GasUpProblem { /* 18.6 */ public static int findAmpleCity(List<Integer> gallons, List<Integer> distances) { return 0; } }
85
597
"""Home Assistant control object.""" import asyncio from ipaddress import IPv4Address import logging from pathlib import Path import shutil import tarfile from tempfile import TemporaryDirectory from typing import Optional from uuid import UUID from awesomeversion import AwesomeVersion, AwesomeVersionException from se...
6,514
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...
1,528
357
<gh_stars>100-1000 import numpy as np import json from path import Path from scipy.misc import imread from tqdm import tqdm class test_framework_stillbox(object): def __init__(self, root, test_files, seq_length=3, min_depth=1e-3, max_depth=80, step=1): self.root = root self.min_depth, self.max_dep...
1,510
23,901
<gh_stars>1000+ # coding=utf-8 # Copyright 2021 The Google Research 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 requ...
1,623
518
{ "name": "Microsoft Dynamics", "category": "Task & Project Management", "start_url": "https://home.dynamics.com", "icons": [ { "src": "https://cdn.filestackcontent.com/pVPZzouJSyScky13q5Xa", "platform": "browserx" } ], "theme_color": "#000D93", "scope": "https://home.dynamics.com", ...
159
669
<gh_stars>100-1000 # ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. # # Copyright 2020 The Microsoft DeepSpeed Team # Copyright (c) 2020, <NAME>. # Some functions in this file are adapted from follow...
1,802
852
<reponame>ckamtsikis/cmssw #include "CondFormats/L1TObjects/interface/L1MuGMTScales.h" #include "FWCore/Utilities/interface/typelookup.h" TYPELOOKUP_DATA_REG(L1MuGMTScales);
78
11,024
<filename>layers/pubsub/pubsub_example.py<gh_stars>1000+ # # pubsub_example.py # # This source file is part of the FoundationDB open source project # # Copyright 2013-2018 Apple Inc. and the FoundationDB project authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file exce...
1,277
807
{ "ConnectionStrings": { "Default": "Server=(LocalDb)\\MSSQLLocalDB;Database=ElsaDemo;Trusted_Connection=True" }, "IdentityServer": { "Clients": { "ElsaDemo_Web": { "ClientId": "ElsaDemo_Web", "ClientSecret": "<KEY> "RootUrl": "https://localhost:44336" }, "ElsaDem...
385
451
/* * Copyright 2019 WeBank * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writi...
2,526
308
#!/usr/bin/env python # -*- coding:utf-8 -*- # Author: <NAME>(<EMAIL>) # Object Detection running score. import time import numpy as np class DetRunningScore(object): def __init__(self, configer): self.configer = configer self.gt_list = list() self.pred_list = list() self.num_pos...
3,444
351
package com.talosvfx.talos.runtime.modules; import com.badlogic.gdx.math.Interpolation; import com.badlogic.gdx.math.Vector2; import com.talosvfx.talos.runtime.ScopePayload; import com.talosvfx.talos.runtime.values.NumericalValue; public class AttractorModule extends AbstractModule { public static final int INIT...
887
402
<gh_stars>100-1000 package com.vaadin.flow.mixedtest.ui; import java.io.File; import com.vaadin.flow.testutil.FileTestUtil; import org.junit.Test; public class NpmUsedIT { @Test public void npmIsUsed() { File testPackage = new File("node_modules/lit"); FileTestUtil.waitForFile(testPackage);...
203
1,056
<filename>enterprise/j2ee.common/src/org/netbeans/modules/j2ee/common/DatasourceHelper.java /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF...
1,546
14,668
<gh_stars>1000+ // Copyright 2020 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/functional/identity.h" #include <vector> #include "testing/gtest/include/gtest/gtest.h" namespace base { TEST(Functiona...
174
348
{"nom":"Bretx","circ":"5ème circonscription","dpt":"Haute-Garonne","inscrits":429,"abs":202,"votants":227,"blancs":2,"nuls":2,"exp":223,"res":[{"nuance":"REM","nom":"<NAME>","voix":98},{"nuance":"FN","nom":"<NAME>","voix":43},{"nuance":"UDI","nom":"<NAME>","voix":29},{"nuance":"FI","nom":"Mme <NAME>","voix":21},{"nuanc...
314
1,350
<reponame>Manny27nyc/azure-sdk-for-java<filename>sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AcsSmsEventBaseProperties.java // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Cod...
920
655
#pragma once #include <Eigen/Core> #include <df/voxel/movingAverage.h> namespace df { struct ProbabilityVoxel : public MovingAverageVoxel<float,Eigen::Matrix<float, 10, 1, Eigen::DontAlign> > { inline __host__ __device__ static ProbabilityVoxel zero() { ProbabilityVoxel voxel; voxel.weight_...
254
852
<filename>FWCore/TestProcessor/python/TestProcess.py import FWCore.ParameterSet.Config as cms class TestProcess(cms.Process): def __init__(self,name="TEST",*modifiers): super(TestProcess,self).__init__(name,*modifiers) self.__dict__["_TestProcess__moduleToTest"] = None def moduleToTest(self,mod...
530
455
<filename>StarEngine/jni/Actions/ScaleAction.h #pragma once #include "TimedAction.h" namespace star { class ScaleAction : public TimedAction { public: ScaleAction( float32 seconds, float32 begin, float32 end, const std::function<void()> & callback = nullptr ); ScaleAction( const tstri...
315
604
#include "pch.h" #include "PinyinSearchPcre.hpp" #include "config.hpp" #include "ipc.hpp" #include "match.hpp" #include "helper.hpp" /* * Region list: * regcomp_p3 * regcomp_p2 * regcomp * pcre_compile2 (not in use) * pcre_fullinfo (not in use) * regexec * pcre_exec (not in use) * free */ #pragma region regcomp_p3 ...
11,804
407
<filename>paas/appmanager/tesla-appmanager-definition/src/main/java/com/alibaba/tesla/appmanager/definition/service/DefinitionSchemaService.java package com.alibaba.tesla.appmanager.definition.service; import com.alibaba.tesla.appmanager.common.pagination.Pagination; import com.alibaba.tesla.appmanager.definition.repo...
632
311
package org.thunlp.tagsuggest.common; import java.io.IOException; import java.util.LinkedList; import java.util.List; import java.util.Properties; import org.thunlp.language.chinese.ForwardMaxWordSegment; import org.thunlp.language.chinese.LangUtils; import org.thunlp.language.chinese.WordSegment; public class Simpl...
612
707
<reponame>gcjurgiel/allwpilib<filename>hal/src/main/java/edu/wpi/first/hal/simulation/AddressableLEDDataJNI.java // 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...
533
3,084
<reponame>ixjf/Windows-driver-samples<filename>wpd/WpdServiceSampleDriver/FakeContactContent.cpp #include "stdafx.h" #include "FakeContactContent.tmh" // Properties supported by a contact const PropertyAttributeInfo g_SupportedContactProperties[] = { // Standard WPD properties. {&WPD_OBJECT_ID, ...
4,499
354
#include<bits/stdc++.h> using namespace std; int main() { int n,a; float med=0; cout<<"Enter the number of elements in array : "; cin>>n; cout<<"Enter the elements : "; if(n%2==0) { for(int i=0;i<n;i++) { cin>>a; if(i==n/2||i==n/2-1) { ...
387
722
<gh_stars>100-1000 // Copyright (C) 2019. Huawei Technologies Co., Ltd. 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"), // to deal in the Software without restriction, including without limitat...
3,573
369
// Copyright (c) 2017-2021, Mudita <NAME>.o. All rights reserved. // For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md #pragma once #include "Transform.hpp" #include <integer.hpp> #include <type_traits> #include <cassert> #include <cstdint> namespace audio::transcode { /** * @brief Basic i...
1,265
937
<filename>library/src/com/android/volley/misc/CountingOutputStream.java<gh_stars>100-1000 package com.android.volley.misc; import com.android.volley.Response.ProgressListener; import java.io.DataOutputStream; import java.io.IOException; import java.io.OutputStream; public class CountingOutputStream extends DataOutpu...
363
450
/******************************************************************** * 2014 - * open source under Apache License Version 2.0 ********************************************************************/ /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOT...
785
377
<gh_stars>100-1000 # Copyright (c) Facebook, Inc. and its affiliates. # # 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...
2,982
372
/* * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under t...
26,116
19,824
{ "main": "dist/keystone-ui-icons-icons-RefreshCwIcon.cjs.js", "module": "dist/keystone-ui-icons-icons-RefreshCwIcon.esm.js" }
59
935
# @Author : bamtercelboo # @Datetime : 2018/07/19 22:35 # @File : model_CNN_MUI.py # @Last Modify Time : 2018/07/19 22:35 # @Contact : <EMAIL>, 163.com} import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable import numpy as np import random import torch.nn.init as init f...
2,619
1,192
<reponame>clayne/DirectXShaderCompiler /////////////////////////////////////////////////////////////////////////////// // // // PixPassHelpers.h // // Copyright (C) Microsoft Corporation. All rights reserved. // //...
973
1,816
/********************************************************* * Copyright (C) 2012-2017, 2019-2021 VMware, Inc. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation ver...
35,150
703
#include <GameEngine/GameEnginePCH.h> #include <Core/Assets/AssetFileHeader.h> #include <GameEngine/Utils/ImageDataResource.h> #include <Texture/Image/Formats/DdsFileFormat.h> #include <Texture/Image/Formats/ImageFileFormat.h> #include <Texture/Image/Formats/StbImageFileFormats.h> #include <Texture/ezTexFormat/ezTexFo...
1,517
1,921
/** * @file * @brief Handling of error conditions that are not program bugs. **/ #include "AppHdr.h" #include "errors.h" #include <cerrno> #include <cstdarg> #include <cstring> #include "stringutil.h" NORETURN void fail(const char *msg, ...) { va_list args; va_start(args, msg); string buf = vmake_str...
647
5,169
{ "name": "TGMetaWeblogApi", "version": "0.1.0", "summary": "A simple MetaWeblog Api for OS X and iOS writing in Objective-C", "homepage": "https://github.com/terwer/TGMetaWeblogApi", "license": { "type": "MIT", "file": "LICENSE" }, "authors": "<NAME>", "source": { "git": "https://github.com...
314
335
<reponame>Safal08/Hacktoberfest-1<filename>F/Freethinker_noun.json { "word": "Freethinker", "definitions": [ "A person who rejects accepted opinions, especially those concerning religious belief." ], "parts-of-speech": "Noun" }
96
352
// ========================================================================= // Copyright 2019 T-Mobile, US // // 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.apac...
1,516
10,608
<gh_stars>1000+ import datasets _CITATION = """\ @software{bact_2019_3457447, author = {Suriyawongkul, Arthit and Chuangsuwanich, Ekapol and Chormai, Pattarawat and Polpanumas, Charin}, title = {PyThaiNLP/wisesight-sentiment: First release}, mon...
2,336
432
<filename>test/nvmm/demo/toyvirt/toydev.c /* * Copyright (c) 2018-2021 <NAME>, m00nbsd.net * All rights reserved. * * This code is part of the NVMM hypervisor. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: ...
1,249
349
import pytest x = 1 @pytest.fixture() def f1(): global x x = 2 yield 15 x = 3 def test_1(): assert x == 1 def test_2(f1): assert x == 2 assert f1 == 15 def test_3(): assert x == 3
106
852
#include "TrackingTools/PatternTools/interface/TrajectoryExtrapolatorToLine.h" #include "TrackingTools/GeomPropagators/interface/AnalyticalPropagator.h" #include "DataFormats/GeometryCommonDetAlgo/interface/DeepCopyPointerByClone.h" #include "DataFormats/GeometrySurface/interface/BoundPlane.h" #include "DataFormats/Ge...
1,322