max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
776
import dash_bootstrap_components as dbc dropdown = dbc.DropdownMenu( label="Menu", children=[ dbc.DropdownMenuItem("Item 1"), dbc.DropdownMenuItem("Item 2"), dbc.DropdownMenuItem("Item 3"), ], )
102
1,178
# Copyright 2020 Makani Technologies 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 # # Unless required by applicable law or agreed to...
1,761
1,233
<reponame>calvin681/mantis /* * Copyright 2019 Netflix, 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...
5,577
766
<gh_stars>100-1000 import mock import time import pytest from amodem import async_reader import logging logging.basicConfig(format='%(message)s') def test_async_reader(): def _read(n): time.sleep(n * 0.1) return b'\x00' * n s = mock.Mock() s.read = _read r = async_reader.AsyncReader(s...
276
388
<reponame>Mu-L/MqttWk package cn.wizzer.iot.mqtt.server.store.kafka; import org.apache.kafka.clients.producer.Partitioner; import org.apache.kafka.common.Cluster; import org.apache.kafka.common.PartitionInfo; import java.util.List; import java.util.Map; /** * Created by wizzer on 2018 */ public class SimplePartiti...
444
854
<filename>Java/959.java __________________________________________________________________________________________________ sample 2 ms submission class Solution { public int regionsBySlashes(String[] grid) { // F -1 = E + C - V //Vertex: if connected component does not c...
2,503
480
/* * Copyright [2013-2021], Alibaba Group Holding Limited * * 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...
1,740
568
<reponame>arthurrib/nfe<filename>src/test/java/com/fincatto/documentofiscal/nfe310/classes/NFNotaInfoItemModalidadeBCICMSTest.java package com.fincatto.documentofiscal.nfe310.classes; import org.junit.Assert; import org.junit.Test; import com.fincatto.documentofiscal.nfe310.classes.NFNotaInfoItemModalidadeBCICMS; pu...
329
388
# Copyright (c) 2016 <NAME> <<EMAIL>> # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions a...
1,829
2,753
<filename>src/shogun/lib/CircularBuffer.cpp /* * This software is distributed under BSD 3-clause license (see LICENSE file). * * Authors: <NAME>, <NAME>, <NAME>, <NAME>, * <NAME> */ #include <shogun/lib/CircularBuffer.h> #include <shogun/lib/Tokenizer.h> #include <shogun/io/SGIO.h> #include <cstdio> #i...
4,108
3,384
<reponame>teemobean/XVim<gh_stars>1000+ // // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #pragma mark Function Pointers and Blocks typedef void (*CDUnknownFunctionPointerType)(void); // return type and parameters are unknown typedef v...
31,824
548
<gh_stars>100-1000 // Copyright 2019 ZTE corporation. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 #ifndef ADLIK_SERVING_SERVER_HTTP_INTERNAL_EVENT_EXECUTOR_H #define ADLIK_SERVING_SERVER_HTTP_INTERNAL_EVENT_EXECUTOR_H #include <functional> #include <memory> namespace adlik { namespace serving { stru...
199
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. #include "cc/raster/texture_compressor_etc1_sse.h" #include <emmintrin.h> #include <stdint.h> #include "base/compiler_specific.h" #in...
15,003
3,269
// Time: O(nlogn * logr), r is the sum of range x size and range y size // Space: O(n) // competitive programming solution class Solution { public: int minDayskVariants(vector<vector<int>>& points, int k) { std::transform(begin(points), end(points), begin(points), [](const auto& v) ...
4,126
978
// (C) Copyright <NAME> and <NAME> 2009. // Use, modification and distribution are subject to 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://www.boost.org/libs/type_traits for most recent version including doc...
1,533
686
<reponame>libtcod/libtcod<gh_stars>100-1000 #ifdef __EMSCRIPTEN__ #include <emscripten.h> #endif // __EMSCRIPTEN__ #include <SDL.h> #include <libtcod.h> #include <algorithm> #include <cmath> #include <cstdio> #include <cstdlib> #include <iostream> #include <limits> #include <memory> #include <vector> static constexp...
4,241
609
#ifndef __COMP_H #define __COMP_H 1 void compositor (void); #endif
41
333
from rpython.rlib.rstring import StringBuilder from rpython.rlib import rutf8 from pypy.interpreter import unicodehelper HEX = '0123456789abcdef' ESCAPE_DICT = { '\b': '\\b', '\f': '\\f', '\n': '\\n', '\r': '\\r', '\t': '\\t', } ESCAPE_BEFORE_SPACE = [ESCAPE_DICT.get(chr(_i), '\\u%04x' % _i) ...
1,523
540
<filename>src/main/java/com/stripe/model/Dispute.java // File generated from our OpenAPI spec package com.stripe.model; import com.google.gson.annotations.SerializedName; import com.stripe.Stripe; import com.stripe.exception.StripeException; import com.stripe.net.ApiResource; import com.stripe.net.RequestOptions; impo...
9,815
495
<filename>domain/src/test/java/org/m4m/domain/mediaComposer/WhenGetMediaFormat.java /* * Copyright 2014-2016 Media for Mobile * * 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...
512
319
<gh_stars>100-1000 { "labels":{ }, "fixed_subnet":null, "master_flavor_id":null, "no_proxy":"10.0.0.0/8,172.16.17.32/8,192.0.0.0/8,localhost", "https_proxy":"http://10.164.177.169:8080", "tls_disabled":false, "keypair_id":"kp", "public":false, "http_proxy":"http://10.164.177.169:8080", ...
336
1,192
from pytest import mark from scanapi.tree import EndpointNode @mark.describe("endpoint node") @mark.describe("name") class TestName: @mark.context("when parent spec has no name defined") @mark.it("should set child node's name") def test_when_parent_has_no_name(self): node = EndpointNode({"name": ...
263
6,969
#include <bits/stdc++.h> using namespace std; // A linked list Node struct Node { int data; struct Node* next; }; // Size of linked list int size = 0; // function to create and return a Node Node* getNode(int data) { // allocating space Node* newNode = new Node(); // inserting the required d...
1,000
563
/* * * Copyright The Athenz 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 applicable law or agree...
572
1,736
<gh_stars>1000+ /* Copyright (c) 2020-2021 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/licenses/LICENSE-2.0 Unless required ...
10,280
777
<reponame>google-ar/chromium // Copyright 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "services/ui/clipboard/clipboard_impl.h" #include <string.h> #include <utility> #include "base/macros.h" namespac...
1,113
471
<gh_stars>100-1000 from collections import namedtuple from decimal import Decimal from typing import Iterable, List, Optional, Type import attr from corehq.motech.finders import le_days_diff, le_levenshtein_percent from jsonpath_ng.ext.parser import parse as jsonpath_parse from corehq.motech.utils import simplify_li...
2,894
2,326
<reponame>DarwinSenior/Surround360 /** * Copyright (c) 2016-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE_render file in the root directory of this subproject. An additional grant * of patent rights can be found in the PATENTS file in ...
596
9,782
<gh_stars>1000+ /* * 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, softw...
638
2,566
<reponame>Postsnap99/CRToast<filename>Example/CRToastDemo/MainViewController.h<gh_stars>1000+ // // CRToast // Copyright (c) 2014-2015 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @interface MainViewController : UIViewController - (IBAction)sliderDurationChanged:(UISlider *)sender; - (IBAction)btnShowNo...
133
505
<reponame>hartraft/blog-tutorials package de.rieckpil.blog.customer; public class CustomerCreationRequest { private String username; public String getUsername() { return username; } public void setUsername(String username) { this.username = username; } @Override public String toString() { ...
142
5,411
#ifndef _PELOADER_INTERNAL_ #define _PELOADER_INTERNAL_ // Forward to the global header, because it is sometimes necessary. #include "peloader.serialize.h" // Helper function for pointer size. inline std::uint32_t GetPEPointerSize( bool isExtendedFormat ) { if ( isExtendedFormat ) { return sizeof(std:...
158
416
<gh_stars>100-1000 /*! @header MDLMesh.h @framework ModelIO @abstract Structures for describing meshes for rendering @copyright Copyright © 2015 Apple, Inc. All rights reserved. */ #import <ModelIO/MDLTypes.h> #import <ModelIO/MDLLight.h> #import <ModelIO/MDLTransform.h> #import <ModelIO/MDLSubmesh.h> #import <Mo...
14,345
661
package com.example; import dagger.Component; import dagger.Module; import dagger.Provides; @Component(modules = ModuleInterfaceDefaultMethodUnrelated.Module1.class) interface ModuleInterfaceDefaultMethodUnrelated { String string(); @Module interface Module1 extends DefaultMethod { @Provides static St...
140
2,151
/* * Copyright (C) 2004, 2005, 2007 <NAME> <<EMAIL>> * Copyright (C) 2004, 2005 <NAME> <<EMAIL>> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the Licens...
1,207
1,099
<gh_stars>1000+ /* * This source file is part of RmlUi, the HTML/CSS Interface Middleware * * For the latest information, see http://github.com/mikke89/RmlUi * * Copyright (c) 2008-2010 CodePoint Ltd, Shift Technology Ltd * Copyright (c) 2019 The RmlUi Team, and contributors * * Permission is hereby granted, fr...
1,138
1,338
<reponame>Kirishikesan/haiku /* * Copyright 2003-2006, Haiku, Inc. All Rights Reserved. * Distributed under the terms of the MIT License. * * Authors: * <NAME> (<EMAIL>) */ #ifndef __INLINEINPUT_H #define __INLINEINPUT_H #include <Messenger.h> #include <TextView.h> struct clause; class BTextView::InlineInput...
409
13,162
<gh_stars>1000+ #ifndef __compiler_rt_int_t_h__ #define __compiler_rt_int_t_h__ #include <stdint.h> #include <limits.h> typedef union { __int128 all; struct { uint64_t low; int64_t high; }s; } twords; typedef union { unsigned __int128 all; struct { uint64_t low; ...
464
1,723
<filename>tutorials/cloud-iot-rtdp/streaming/src/main/java/com/google/cloud/solutions/rtdp/MqttOptions.java<gh_stars>1000+ /** * Copyright 2017 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 o...
2,392
473
#ifndef STDDEF_H_ #define STDDEF_H_ #define PAGE_SIZE 4096 typedef long int ptrdiff_t; #ifndef _LIBCGC_H typedef long unsigned int size_t; typedef long int ssize_t; #define NULL 0 #endif #define offsetof(TYPE, MEMBER) __builtin_offsetof (TYPE, MEMBER) #endif /* !STDDEF_H_ */
123
385
package biz.paluch.logging.gelf.intern.sender; import static org.mockito.Mockito.verify; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; import org.mockito.Mock; import org.mockito.junit.jupiter.MockitoExtension; import redis.clients.jedis.Jedis; import redis.clients.jedis.util....
324
782
<reponame>Tubbz-alt/lightcycle package com.soundcloud.lightcycle; import android.app.Activity; import android.os.Bundle; import android.view.MenuItem; import android.view.View; public interface SupportFragmentLightCycle<HostType> { void onAttach(HostType host, Activity activity); void onCreate(HostType host, ...
266
3,921
/* * Created by LuaView. * Copyright (c) 2017, Alibaba Group. All rights reserved. * * This source code is licensed under the MIT. * For the full copyright and license information,please view the LICENSE file in the root directory of this source tree. */ package com.taobao.luaview.view; import android.view.Grav...
482
344
/* * Copyright (c) 2022 <NAME>, <NAME>, and contributors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required b...
9,698
15,577
#pragma once #include <DataTypes/DataTypeCustom.h> namespace DB { class DataTypePointName : public DataTypeCustomFixedName { public: DataTypePointName() : DataTypeCustomFixedName("Point") {} }; class DataTypeRingName : public DataTypeCustomFixedName { public: DataTypeRingName() : DataTypeCustomFixedName("Ri...
199
2,706
//============================================================================ // // SSSS tt lll lll // SS SS tt ll ll // SS tttttt eeee ll ll aaaa // SSSS tt ee ee ll ll aa // SS tt eeeeee ll ll aaaaa -- "An Atari 2600 VCS Emula...
2,306
1,867
package org.javacore.thread; import java.util.ArrayList; import java.util.concurrent.Callable; import java.util.concurrent.ExecutionException; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.Future; /** * Created by BYSocket on 2015/11/2. * * Copyright...
957
945
/* * 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 ...
1,550
305
<gh_stars>100-1000 //===-- include/flang/Common/real.h -----------------------------*- 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,111
2,174
package ceui.lisa.fragments; import android.os.Bundle; import ceui.lisa.R; import ceui.lisa.adapters.BaseAdapter; import ceui.lisa.adapters.UAdapter; import ceui.lisa.core.RemoteRepo; import ceui.lisa.databinding.FragmentBaseListBinding; import ceui.lisa.databinding.RecyUserPreviewBinding; import ceui.lisa.model.List...
680
4,537
// 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...
553
440
/*========================== begin_copyright_notice ============================ Copyright (C) 2017-2021 Intel Corporation SPDX-License-Identifier: MIT ============================= end_copyright_notice ===========================*/ /*========================== begin_copyright_notice ============================ T...
2,258
1,433
#include "pch.h" using namespace Windows::Devices::AllJoyn; using namespace Microsoft::WRL; using namespace Platform; alljoyn_busattachment AllJoynHelpers::GetInternalBusAttachment(_In_ AllJoynBusAttachment^ busAttachment) { ComPtr<IUnknown> iUnknown = reinterpret_cast<IUnknown*>(busAttachment); ComPtr<IWindo...
1,035
5,169
{ "name": "Fyber_Marketplace_MoPubAdapter", "version": "7.4.0", "authors": { "Fyber": "<EMAIL>" }, "summary": "Fyber Marketplace SDK MoPub Adapter", "description": "The adapter that makes possible showing the Fyber ads on top of the MoPub ads.", "homepage": "https://developer.inner-active.com/docs/int...
393
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,219
10,225
<reponame>Markus-Schwer/quarkus package io.quarkus.vertx.http.deployment.devmode.console; import io.quarkus.dev.config.CurrentConfig; import io.quarkus.dev.spi.DeploymentFailedStartHandler; public class DevConsoleFailedStartHandler implements DeploymentFailedStartHandler { @Override public void handleFailedIn...
156
521
/************************************************************ Author: <NAME> <<EMAIL>> Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that this permission notice appear in supporting documentation. This permission noti...
1,062
409
<filename>jsonrpc/tests/py35_utils.py # Python3.5+ code. # This won't even parse in earlier versions, so it's kept in a separate file # and imported when needed. def distance(a: float, b: float) -> float: return (a ** 2 + b ** 2) ** 0.5
85
4,339
<filename>modules/core/src/main/java/org/apache/ignite/spi/systemview/view/datastructures/QueueView.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...
889
389
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~ Copyright 2017 Adobe ~ ~ 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,065
7,137
<reponame>tna-hub/onedev package io.onedev.server.web.asset.lozad; import org.apache.wicket.request.resource.JavaScriptResourceReference; public class LozadResourceReference extends JavaScriptResourceReference { private static final long serialVersionUID = 1L; public LozadResourceReference() { super(LozadResour...
115
852
<reponame>ckamtsikis/cmssw<gh_stars>100-1000 /* Author: <NAME> Date: Feb 2021 At the time of writing this new module, it is intended to be used mainly for phase-2. Before feeding in the L1 e/g collection to HLTEcalRecHitInAllL1RegionsProducer, it can pass through this module which will filter the collecti...
1,976
368
/* Plugin-SDK (Grand Theft Auto 3) header file Authors: GTA Community. See more here https://github.com/DK22Pac/plugin-sdk Do not delete this comment block. Respect others' work! */ #include "PluginBase.h" namespace plugin { META_BEGIN(CPacManPickup::Update) static int address; static int global_addre...
1,036
1,350
<filename>sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/implementation/VirtualNetworkImpl.java // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com....
3,127
2,568
<reponame>rkelly/twofactorauth { "Perfect Privacy VPN": { "domain": "perfect-privacy.com", "url": "https://www.perfect-privacy.com/", "contact": { "facebook": "perfect.privacy", "twitter": "perfectprivacy" }, "keywords": [ "vpn" ] } }
130
14,668
<reponame>zealoussnow/chromium // 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. #include <vector> #include "components/account_id/account_id.h" #include "components/services/app_service/public/cpp/app_r...
1,272
1,700
// Copyright 2009-2021 Intel Corporation // SPDX-License-Identifier: Apache-2.0 #pragma once #include <functional> #include "parallel_reduce.h" namespace embree { template<typename Index, class UnaryPredicate> __forceinline bool parallel_any_of (Index first, Index last, UnaryPredicate pred) { bool ret...
717
6,180
import itertools import unittest from cupy import testing from cupy_tests.core_tests.fusion_tests import fusion_utils def _permutate_shapes(shapes_list): # Permutates input shapes permutated_shapes_set = set() for shapes in shapes_list: for permutated_shapes in itertools.permutations(shapes): ...
4,899
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,052
466
<filename>app/src/main/java/com/sqisland/friendspell/storage/SpelledWord.java package com.sqisland.friendspell.storage; import java.util.ArrayList; import java.util.List; public class SpelledWord { public Long _id; public List<SpelledLetter> letters = new ArrayList<>(); public boolean isComplete() { for (i...
195
4,098
<gh_stars>1000+ // // Copyright (c) 2008-2021 the Urho3D project. // // 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,...
990
386
/********************************************************************************* * * * The MIT License (MIT) * * ...
5,362
1,099
package com.example.cootek.newfastframe.dagger.recommend; import com.example.commonlibrary.dagger.scope.PerFragment; import com.example.cootek.newfastframe.dagger.main.MainComponent; import com.example.cootek.newfastframe.mvp.recommend.RecommendFragment; import dagger.Component; /** * Created by COOTEK on 2017/9/1....
159
687
<reponame>netskink/xls<filename>xls/dslx/highlight_main.cc<gh_stars>100-1000 // Copyright 2021 The XLS 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...
1,429
372
<gh_stars>100-1000 /* * * (c) Copyright 1989 OPEN SOFTWARE FOUNDATION, INC. * (c) Copyright 1989 HEWLETT-PACKARD COMPANY * (c) Copyright 1989 DIGITAL EQUIPMENT CORPORATION * To anyone who acknowledges that this file is provided "AS IS" * without any express or implied warranty: * permission to u...
2,715
988
<filename>core/fr.opensagres.xdocreport.core/src/main/java/fr/opensagres/xdocreport/core/utils/Base64Utility.java /** * Copyright (C) 2011-2015 The XDocReport Team <<EMAIL>> * * All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and ...
5,868
706
""" The test model for generation based on audio """ from __future__ import print_function, division from collections import OrderedDict import torch from torch.autograd import Variable import network.FAN_feature_extractor as FAN_feature_extractor import network.IdentityEncoder as IdentityEncoder import network.mfcc_...
2,666
4,606
<reponame>dbatten5/dagster from pydantic import BaseModel # pylint: disable=no-name-in-module from ...utils import kubernetes class ServiceAccount(BaseModel): create: bool name: str annotations: kubernetes.Annotations
82
545
#include <vector> int main() { int ia[10]; for (size_t i = 0; i != 10; ++i) ia[i] = i; int ia2[10]; for (size_t i = 0; i != 10; ++i) ia2[i] = ia[i]; std::vector<int> iv; for (int i = 0; i != 10; ++i) iv.push_back(i); std::vector<int> iv2(iv); return 0; }
151
1,600
<reponame>istupsm/cmake-cookbook ../cxx-example/linear-algebra.cpp
27
305
from __future__ import absolute_import, division, print_function import os import string import random from subprocess import call import numpy as np import chumpy as ch import cv2 as cv import scipy.io as sio from scipy import ndimage import zipfile import CommonUtil as util import DataUtil.CommonUtil as dutil import...
4,086
1,511
#define _QIC117_H /* * Copyright (C) 1993-1996 <NAME>, * (C) 1997 <NAME>. This program is free software; you can redistribute it and/or modify
73
56,632
/*M/////////////////////////////////////////////////////////////////////////////////////// // // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. // // By downloading, copying, installing or using the software you agree to this license. // If you do not agree to this license, do not download, instal...
4,194
365
/* * Copyright 2018 Blender 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 applicable law or agreed ...
283
503
/** * Yobi, Project Hosting SW * * Copyright 2013 NAVER Corp. * http://yobi.io * * @author <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/licen...
583
5,169
{ "name": "ARouter", "version": "0.1.2.beta", "summary": "ARouter", "description": "ARouter make it posibile that app counld be controlled by server.", "homepage": "http://git.oschina.net/abyssroger/ARouter", "license": { "type": "MIT", "file": "LICENSE" }, "authors": { "RogerAbyss": "<EMAIL...
514
1,056
package test2; import java.util.ArrayList; import java.util.List; public class CCTest2ii { public static void main(String[] args) { List<String> l; //Check the CC after < } }
85
569
# -*- coding: utf-8 -*- """ NLTK WordNet wrapper API here is exactly the same as NLTK WordNet API, except that lang (language) argument will be "tha" (Thai) by default. For more on usage, see NLTK Howto: https://www.nltk.org/howto/wordnet.html """ import nltk try: nltk.data.find("corpora/omw") except LookupError...
7,544
14,668
<filename>webdriver/tests/is_element_enabled/enabled.py import pytest from tests.support.asserts import assert_error, assert_success def is_element_enabled(session, element_id): return session.transport.send( "GET", "session/{session_id}/element/{element_id}/enabled".format( session_i...
1,537
1,350
<reponame>Shashi-rk/azure-sdk-for-java<gh_stars>1000+ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.ai.textanalytics.implementation.models; import com.fasterxml.jackson.annotation.JsonCreato...
515
2,960
#include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <string.h> static int dfs(int** triangle, int row_size, int *col_sizes, int row, int col, int **sums, bool **passed) { if (row == row_size - 1) { return triangle[row][col]; } else if (passed[row][col]) { return...
926
305
<reponame>jhh67/chapel //===------ LeonPasses.cpp - Define passes specific to LEON ---------------===// // // 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,973
448
<gh_stars>100-1000 import qrcode def convert(url): if url.startswith('http://'): return 'http://' + url[len('http://www.'):] if url.startswith('www.'): return 'https://' + url[len('www.'):] if not url.startswith('https://'): return 'https://www.' + url+".com" return url url=inpu...
195
596
from axelrod.action import Action from axelrod.player import Player C, D = Action.C, Action.D class Cooperator(Player): """A player who only ever cooperates. Names: - Cooperator: [Axelrod1984]_ - ALLC: [Press2012]_ - Always cooperate: [Mittal2009]_ """ name = "Cooperator" classifie...
871
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...
2,721
627
<filename>board/hx20/peci_customization.c /* Copyright 2020 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. */ #include "chipset.h" #include "console.h" #include "peci.h" #include "peci_customization.h" #include "tim...
2,036
1,470
<gh_stars>1000+ /* * mod_fortune - fortune cookies for everyone * */ #include <lighttpd/base.h> LI_API gboolean mod_fortune_init(liModules *mods, liModule *mod); LI_API gboolean mod_fortune_free(liModules *mods, liModule *mod); /* globals */ typedef struct fortune_data fortune_data; struct fortune_data { GRand ...
1,904
893
import pyodbc # we may be interested in finding all the drivers we have access to for driver in pyodbc.drivers(): # print the driver name print(driver) # if the driver name has '.xlsx' in it we found it! if '.xlsx' in driver: myDriver = driver # define our connection string conn_str =...
397
713
<reponame>pferraro/infinispan package org.infinispan.api; import static org.testng.AssertJUnit.assertEquals; import java.util.concurrent.BrokenBarrierException; import java.util.concurrent.CyclicBarrier; import java.util.concurrent.ExecutionException; import java.util.concurrent.Future; import java.util.concurrent.Ti...
2,270
8,028
<reponame>techthiyanes/transformers # coding=utf-8 # Copyright 2022 Meta Platforms, Inc. and The HuggingFace Inc. team. 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 # ...
16,023