max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
685
#pragma once #include <Fs/Filesystem.h> #include <RefPtr.h> #include <Stream.h> class UNIXPipe final : public FsNode { public: UNIXPipe(int end, FancyRefPtr<DataStream> stream); ssize_t Read(size_t off, size_t size, uint8_t* buffer); ssize_t Write(size_t off, size_t size, uint8_t* buffer); void Watc...
318
302
#!/usr/bin/python ''' Reads a detected-photos.txt file (the output of find_pictures.py) and a list of files and outputs the ones that haven't been processed. Can be fed into task-server.py to serve up remaining tasks. Usage: ls images/*.jpg | ./list-incomplete-tasks.py detected-photos.txt | ./task-server.py ''' im...
274
4,802
<reponame>guusw/wasm3<filename>platforms/embedded/esp32-pio/lib/wasm3/library.json { "build" : { "flags": "-DESP32 -O3 -Wfatal-errors -Wno-unused-function -Wno-unused-variable -Wno-unused-parameter -Wno-missing-field-initializers" } }
115
777
<gh_stars>100-1000 // 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. #ifndef NET_HTTP2_TOOLS_FAILURE_H_ #define NET_HTTP2_TOOLS_FAILURE_H_ // Defines VERIFY_* macros, analogous to gUnit's EXPECT_* and AS...
2,833
1,467
{ "version": "2.10.27", "date": "2019-12-02", "entries": [ { "type": "feature", "category": "Access Analyzer", "description": "Introducing AWS IAM Access Analyzer, an IAM feature that makes it easy for AWS customers to ensure that their resource-based policies pro...
157
5,169
{ "name": "JWCocoapodsTest", "version": "1.0.0", "summary": "A Library for IOS to use for example.", "homepage": "https://github.com/jianweihehe/JWCocoapodsTest", "license": "MIT", "authors": { "jeremy": "<EMAIL>" }, "source": { "git": "https://github.com/jianweihehe/JWCocoapodsTest.git", "t...
198
1,510
<reponame>julien-faye/drill<filename>exec/java-exec/src/main/java/org/apache/drill/exec/compile/sig/CodeGeneratorMethod.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 * regard...
1,098
852
#ifndef SimDataFormats_HcalTestHistoClass_H #define SimDataFormats_HcalTestHistoClass_H /////////////////////////////////////////////////////////////////////////////// // File: HcalTestHistoClass.h // Histogram handling class for analysis in HcalTest /////////////////////////////////////////////////////////////////////...
708
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. #include "components/zucchini/test_utils.h" #include <ios> #include <sstream> #include "base/logging.h" namespace zucchini { std...
248
11,868
<reponame>therockstorm/openapi-generator<gh_stars>1000+ /** * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. * * The version of the OpenAPI document: 1.0.0 * * NOTE: This class is auto generated by OpenAPI Gener...
950
313
// // YBLAreaRadiusViewModel.h // YC168 // // Created by 乔同新 on 2017/4/22. // Copyright © 2017年 乔同新. All rights reserved. // #import <Foundation/Foundation.h> typedef void(^AreaRadiusViewModelBlock)(NSMutableArray *selectArray); @interface YBLAreaRadiusViewModel : NSObject @property (nonatomic, copy ) AreaRadi...
208
868
/* * 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...
570
496
from youtube_dl import YoutubeDL audio_downloader = YoutubeDL({'format': 'bestaudio'}) while True: try: print('Youtube Downloader'.center(40, '_')) URL = input('Enter youtube url : ') audio_downloader.extract_info(URL) except Exception: print("Couldn\'t download the audio") ...
190
2,392
<reponame>aviadtzemah/animation2<filename>igl/exterior_edges.cpp // This file is part of libigl, a simple c++ geometry processing library. // // Copyright (C) 2015 <NAME> <<EMAIL>> // // This Source Code Form is subject to the terms of the Mozilla Public License // v. 2.0. If a copy of the MPL was not distributed wi...
1,177
335
<reponame>graealex/qemu_esp32 #ifndef NMEAGPS_H #define NMEAGPS_H // Copyright (C) 2014-2017, SlashDevin // // This file is part of NeoGPS // // NeoGPS is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, e...
4,353
576
<filename>japicmp-testbase/japicmp-test-v2/src/main/java/japicmp/test/serialversion/ModifiedFieldAddedButSerialVersionUidUnchanged.java package japicmp.test.serialversion; import java.io.Serializable; public class ModifiedFieldAddedButSerialVersionUidUnchanged implements Serializable { private static final long seri...
115
1,698
# 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 required by applicable ...
1,465
677
import argparse import os.path as osp import shutil from functools import partial from glob import glob import mmcv import numpy as np from PIL import Image COCO_LEN = 123287 clsID_to_trID = { 0: 0, 1: 1, 2: 2, 3: 3, 4: 4, 5: 5, 6: 6, 7: 7, 8: 8, 9: 9, 10: 10, 12: 11, ...
2,706
450
<reponame>mehrdad-shokri/SPF<gh_stars>100-1000 #!/usr/bin/env python3 import os import imaplib import poplib import email.parser import re import ssl from threading import Thread #----------------------------------------------------------------------------- # Primary Pillager Class that all others are sub classes of ...
10,298
519
<filename>mvvmsmart/src/main/java/com/wzq/mvvmsmart/net/interceptor/TokenInterceptor.java<gh_stars>100-1000 package com.wzq.mvvmsmart.net.interceptor; import com.wzq.mvvmsmart.net.net_utils.MmkvUtils; import com.wzq.mvvmsmart.utils.KLog; import com.wzq.mvvmsmart.net.token.TokenUtils; import java.io.IOException; imp...
1,099
782
<filename>main/boofcv-recognition/src/main/java/boofcv/alg/fiducial/calib/ConfigCalibrationTarget.java /* * Copyright (c) 2021, <NAME>. All Rights Reserved. * * This file is part of BoofCV (http://boofcv.org). * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except i...
744
3,897
<filename>targets/TARGET_ARM_SSG/TARGET_MUSCA_B1/partition/signing_layout_ns.c<gh_stars>1000+ enum image_attributes { RE_SECURE_IMAGE_OFFSET = (0x0), RE_SECURE_IMAGE_MAX_SIZE = (0x60000), RE_NON_SECURE_IMAGE_OFFSET = ((0x0) + (0x60000)), RE_NON_SECURE_IMAGE_MAX_SIZE = (0x80000), RE_SIGN_BIN_SIZE = ((0x80000)), };
154
4,098
/* AngelCode Scripting Library Copyright (c) 2003-2020 <NAME> This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any ...
2,830
5,169
<reponame>Gantios/Specs { "name": "Tangram-es", "version": "0.9.0-beta1", "summary": "Open source C++ library for rendering 2D and 3D maps from vector data using OpenGL ES.", "description": "Open source C++ library for rendering 2D and 3D maps from vector data using OpenGL ES, wrapped with native Cocoa Touch AP...
338
438
<reponame>Pocoyo-dev/Discord-Bot<filename>src/languages/fr-FR/music/p-view.json { "DESCRIPTION": "Visualiser une liste de lecture", "USAGE": "p-view <nom_de_la_playlist>", "NO_PLAYLIST": "Liste de lecture non trouvée.", "AVAIABLE": "Les listes de lecture disponibles sont `{{NAMES}}`." }
120
2,757
<reponame>CEOALT1/RefindPlusUDK /*++ Copyright (c) 2004, Intel Corporation. All rights reserved.<BR> This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text ...
1,197
1,840
<gh_stars>1000+ /** * Copyright Pravega 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 ...
1,067
364
package rsc.scheduler; import java.util.Objects; import java.util.concurrent.Callable; import java.util.function.Consumer; import rsc.flow.Disposable; import rsc.util.ExceptionHelper; /** * Wraps the old Callable&lt;Consumer&lt;Runnable>> based API into a scheduler. */ public final class ConsumerFactoryScheduler i...
1,172
852
import FWCore.ParameterSet.Config as cms # # This cfi should be included to build the HGCal Topologies # HGCalEETopologyBuilder = cms.ESProducer("HGCalTopologyBuilder", Name = cms.string("HGCalEESensitive"), Type = cms.int32(8) ...
569
352
<reponame>13765155217/huangz package io.github.biezhi.elves.event; import io.github.biezhi.elves.Elves; import io.github.biezhi.elves.config.Config; import io.github.biezhi.elves.response.Response; import io.github.biezhi.elves.response.Result; import io.github.biezhi.elves.spider.Spider; /** * @author biezhi * @da...
304
936
/* * Copyright 2020, Yahoo Inc. * Licensed under the Apache License, Version 2.0 * See LICENSE file in project root for terms. */ package com.yahoo.elide.async.service.dao; import static com.yahoo.elide.core.dictionary.EntityDictionary.NO_VERSION; import com.yahoo.elide.ElideSettings; import com.yahoo.elide.async....
3,304
1,538
<gh_stars>1000+ #include <allegro5/allegro.h> #include <allegro5/allegro_primitives.h> #include "common.c" #define MAX_TOUCHES 16 typedef struct TOUCH TOUCH; struct TOUCH { int id; int x; int y; }; static void draw_touches(int num, TOUCH touches[]) { int i; for (i = 0; i < num; i++) { int x = ...
1,639
654
# -*- coding: utf-8 -*- # python-holidays # --------------- # A fast, efficient Python library for generating country, province and state # specific sets of holidays on the fly. It aims to make determining whether a # specific date is a holiday as fast and flexible as possible. # # Author: ryanss <<EMAIL>> (c) ...
1,760
1,235
<gh_stars>1000+ /* * Copyright 2020 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in t...
2,545
852
<filename>RecoBTag/Skimming/python/btagMC_QCD_80_120_EventContent_cff.py import FWCore.ParameterSet.Config as cms from RecoBTag.Skimming.btagMC_QCD_80_120_cfi import * btagMC_QCD_80_120EventContent = cms.PSet( outputCommands = cms.untracked.vstring() ) btagMC_QCD_80_120EventSelection = cms.PSet( SelectEvents =...
184
1,759
/** * @file BUnixSignal.c * @author <NAME> <<EMAIL>> * * @section LICENSE * * 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 ...
5,338
883
import boto3 import argparse import json import cfnresponse import logging # This function gets the IP addresses from a NLB, as they aren't returned by CloudFormation. def handler(event, context): logger = logging.getLogger() logger.setLevel(logging.INFO) # initialize our responses, assume failure by def...
985
892
{ "schema_version": "1.2.0", "id": "GHSA-qgjc-6844-xqv9", "modified": "2022-04-29T03:01:52Z", "published": "2022-04-29T03:01:52Z", "aliases": [ "CVE-2004-2657" ], "details": "** DISPUTED ** Mozilla Firefox 1.5.0.1, and possibly other versions, preserves some records of user activity even after uninst...
579
360
<gh_stars>100-1000 // // timer.c // C-ray // // Created by <NAME> on 06/07/2018. // Copyright © 2018-2020 <NAME>. All rights reserved. // #include "../includes.h" #include "timer.h" #ifdef WINDOWS int gettimeofday(struct timeval * tp, struct timezone * tzp) { // Note: some broken versions only have 8 trailing ze...
703
342
/* * Copyright 2013 Cloudera. * * 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 i...
3,722
5,964
<reponame>wenfeifei/miniblink49<filename>third_party/WebKit/Source/core/loader/ProgressTracker.cpp /* * Copyright (C) 2007 Apple 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: * 1. Re...
2,593
388
/* ------------------------------------------------ * * The MIT License (MIT) * Copyright (c) 2019 <EMAIL> * ------------------------------------------------ */ #ifndef UTIL_WAYLAND_H_ #define UTIL_WAYLAND_H_ #define MOD_SHIFT_MASK 0x01 #define MOD_ALT_MASK 0x02 #define MOD_CONTROL_MASK 0x04 struct Window...
199
4,551
<filename>shadows/framework/src/main/java/org/robolectric/shadows/ShadowRollbackManager.java<gh_stars>1000+ package org.robolectric.shadows; import static android.os.Build.VERSION_CODES.Q; import android.content.rollback.RollbackInfo; import java.util.ArrayList; import java.util.List; import org.robolectric.annotatio...
392
714
<gh_stars>100-1000 from django_hosts import patterns, host host_patterns = patterns( '', host(r'', 'dwitter.urls', name='empty'), host(r'www', 'dwitter.urls', name='www'), host(r'dweet', 'dwitter.dweet.urls', name='dweet'), )
106
2,634
/* * Copyright (C) 2014 <NAME>. All rights reserved. * License: https://github.com/crosire/reshade#license */ #include "lockfree_linear_map.hpp" #include "vulkan_hooks.hpp" #include "vulkan_impl_device.hpp" #include "vulkan_impl_command_list.hpp" #include "vulkan_impl_type_convert.hpp" #include <malloc.h> #include ...
18,075
691
// 2019-04-15 created by <NAME> // - modified from boost/predef/architecture/mips.hpp #pragma once #define TF_ARCH_MIPS TF_VERSION_NUMBER_NOT_AVAILABLE #if defined(__mips__) || defined(__mips) || \ defined(__MIPS__) # undef TF_ARCH_MIPS # if !defined(TF_ARCH_MIPS) && (defined(__mips)) # define TF_ARC...
547
882
<reponame>gigliovale/h2o<gh_stars>100-1000 import unittest import random, sys, time, re sys.path.extend(['.','..','../..','py']) import h2o_browse as h2b, h2o_gbm import h2o, h2o_cmd, h2o_browse as h2b, h2o_import as h2i, h2o_glm, h2o_util, h2o_rf, h2o_jobs as h2j # this only covers the params for gbm # FIX! what abou...
2,457
778
/* * Copyright (C) 2018-2020 Intel Corporation * * SPDX-License-Identifier: MIT * */ #include "shared/source/command_stream/experimental_command_buffer.h" #include "shared/source/command_stream/command_stream_receiver.h" #include "shared/source/command_stream/linear_stream.h" #include "shared/source/helpers/cons...
1,586
2,151
<gh_stars>1000+ /* * Copyright (c) 2012 The Native Client 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 <stdio.h> #include <stdlib.h> #include <unistd.h> #include <sys/mman.h> #include <sys/types.h> #include <sys/sysc...
1,289
14,668
# 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. from page_sets.login_helpers import login_utils from page_sets.helpers import override_online def _LoginAccount(action_runner, credential, credentials_pat...
873
790
from django.contrib.formtools.wizard.legacy import FormWizard
20
3,799
<reponame>digitalbuddha/androidx<gh_stars>1000+ /* * Copyright 2018 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licen...
486
2,116
<reponame>ruchirjain86/professional-services<filename>tools/bigquery_user_info_updater_tool/cron/bigquery_user_info_updater/updater_tools/user_schema.py # Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # Yo...
797
1,841
/** * Copyright (c) 2017-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 applicable ...
11,430
3,400
<reponame>svilen-ivanov/aeron<gh_stars>1000+ /* * Copyright 2014-2021 Real Logic 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 * * https://www.apache.org/licenses/LICENSE-2....
1,609
393
# capture stills # controlled / respawned by systemd (see capture.service) # started/stopped as service by root cron at 5am/9pm # see raspberrypi.org/learning/getting-started-with-picamera/worksheet # and also https://picamera.readthedocs.io/en/release-1.13/recipes1.html from picamera import PiCamera import datetime ...
352
766
/* * Copyright 2008-2017 <NAME> * * See LICENCE for the full copyright terms. */ #include <assert.h> #include <string.h> #include <stdlib.h> #include <stdio.h> #include <adt/xalloc.h> char * xstrdup(const char *s) { char *new; new = malloc(strlen(s) + 1); if (new == NULL) { return NULL; } return strcpy(...
385
2,350
<filename>Source/UnrealEnginePython/Private/Slate/UEPySEditableTextBox.h<gh_stars>1000+ #pragma once #include "UEPySBorder.h" #include "Runtime/Slate/Public/Widgets/Input/SEditableTextBox.h" extern PyTypeObject ue_PySEditableTextBoxType; typedef struct { ue_PySBorder s_border; /* Type-specific fields go here. */ ...
158
3,151
<reponame>Jeddunk/ripme package com.rarchives.ripme.ripper.rippers; import java.io.IOException; import java.net.MalformedURLException; import java.net.URL; import java.util.ArrayList; import java.util.List; import java.util.regex.Matcher; import java.util.regex.Pattern; import org.json.JSONArray; import org.json.JSON...
1,771
1,444
package org.mage.test.cards.single.soi; import mage.constants.PhaseStep; import mage.constants.Zone; import org.junit.Test; import org.mage.test.serverside.base.CardTestPlayerBase; /** * * @author escplan9 */ public class LambholtPacifistTest extends CardTestPlayerBase { /* Lambholt Pacifist {1}{G} C...
741
400
<gh_stars>100-1000 package org.ofdrw.converter.font; /** * 标识字体是否是被相近字体替换 * @author yuanfangme * @since 2021-06-04 17:10:18 */ public class FontWrapper<T> { T font; private boolean enableSimilarFontReplace; public FontWrapper() { } public FontWrapper(T font, boolean enableSimilarFontReplace...
330
4,975
<reponame>samkenxstream/FirebaseUI-Android package com.firebase.ui.auth.viewmodel.email; import android.app.Application; import com.firebase.ui.auth.IdpResponse; import com.firebase.ui.auth.data.model.Resource; import com.firebase.ui.auth.util.data.AuthOperationManager; import com.firebase.ui.auth.util.data.ContinueU...
1,785
515
#ifndef BITCOIN_MEMPOOLFEEMODIFIER_H #define BITCOIN_MEMPOOLFEEMODIFIER_H #include "utilhash.h" // Salteduint256Hasher #include <mutex> #include <unordered_map> class uint256; typedef int64_t CAmount; /** * Artifically modify fees for selected transactions to increase/decrease their * chance of being included in ...
250
634
<reponame>halotroop2288/consulo /* * Copyright 2000-2009 JetBrains s.r.o. * * 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 re...
525
5,937
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. //+----------------------------------------------------------------------------- // // // Abstract: Display the ...
848
46,956
#!/usr/bin/env python __all__ = ['lizhi_download'] import json import datetime from ..common import * # # Worked well but not perfect. # TODO: add option --format={sd|hd} # def get_url(ep): readable = datetime.datetime.fromtimestamp(int(ep['create_time']) / 1000).strftime('%Y/%m/%d') return 'http://cdn5.lizhi...
1,108
446
""" README ====== This file contains Python codes. ====== """ """ Price a European or American option by the binomial tree """ from StockOption import StockOption import math import numpy as np class BinomialTreeOption(StockOption): def _setup_parameters_(self): self.u = 1 + self.pu # Expected value in...
1,167
765
# Copyright (c) 2021 The Regents of the University of California. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: redistributions of source code must retain the above copyright # notice, this li...
3,579
4,054
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include "ok_state.h" #include "remote_slobrok.h" #include <deque> #include <string> #include <unordered_map> namespace slobrok { //------------------------------------------------------------------...
1,126
390
<gh_stars>100-1000 {"dependencies":{},"fastboot":{"appName":"app-with-multiple-configs","config":{"app-with-multiple-configs":{"APP":{"autoboot":false,"name":"app-with-multiple-configs","version":"0.0.0+b0fbd701"},"EmberENV":{"EXTEND_PROTOTYPES":{"Date":false},"FEATURES":{}},"environment":"development","exportApplicati...
225
323
#!/usr/bin/env python # __BEGIN_LICENSE__ # Copyright (c) 2009-2013, United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. All # rights reserved. # # The NGT platform is licensed under the Apache License, Version 2.0 (the # "License"); you may not use ...
3,583
1,947
/* Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * Redistributions of source code must retain the above copyright * notice, this list of condi...
4,376
1,435
""" Demo: Parallel processing accross images Multithreading can be used to run transforms on a set of images in parallel. This will give a net performance benefit if the images to be transformed are sufficiently large. This demo runs a multilevel wavelet decomposition on a list of 32 images, each of size (512, 512). ...
1,249
1,444
<filename>Mage.Sets/src/mage/cards/d/DauntlessUnity.java package mage.cards.d; import mage.abilities.Ability; import mage.abilities.condition.common.KickedCondition; import mage.abilities.effects.OneShotEffect; import mage.abilities.effects.common.continuous.BoostControlledEffect; import mage.abilities.keyword.KickerA...
773
485
package io.indexr.segment.rt; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.util.concurrent.atomic.AtomicLong; public class RTResources { private static final Logger logger = LoggerFactory.getLogger(RTResources.class); private final boolean enableMemoryLimit; private final long ma...
1,105
1,442
<reponame>VersiraSec/epsilon-cfw #include <quiz.h> #include "execution_environment.h" QUIZ_CASE(python_basics) { TestExecutionEnvironment env = init_environement(); assert_command_execution_succeeds(env, "2+3","5\n"); deinit_environment(); } QUIZ_CASE(python_template) { assert_script_execution_succeeds(Code::...
217
3,084
/*++ Module Name: queue.h Abstract: This file contains the queue declarations. Environment: Kernel-mode Driver Framework --*/ EXTERN_C_START NTSTATUS HardwareRequestQueueInitialize( _In_ WDFDEVICE Device ); EVT_WDF_IO_QUEUE_IO_DEVICE_CONTROL EvtIoDeviceControl; EVT_W...
176
1,056
/* * 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 ...
667
5,290
import sys sys.path.insert(0, '..') import threading import time from selenium.webdriver import Chrome import knowledge_repo def take_screenshots(): driver = Chrome() driver.get('http://127.0.0.1:7000') driver.set_window_size(1260, 800) driver.save_screenshot('main.png') driver.find_element_by_cs...
264
1,609
package com.mossle.security.client; import javax.annotation.Resource; import com.mossle.api.auth.CustomPasswordEncoder; import com.mossle.api.tenant.TenantHolder; import com.mossle.api.user.RemoteUserConnector; import com.mossle.spi.user.InternalUserConnector; import org.springframework.security.authentication.BadC...
552
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...
3,785
3,212
/* * 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 ...
774
347
package org.ovirt.engine.core.bll; import javax.inject.Inject; import org.ovirt.engine.core.bll.context.EngineContext; import org.ovirt.engine.core.common.queries.QueryParametersBase; import org.ovirt.engine.core.dao.JobDao; public class GetAllJobsQuery <P extends QueryParametersBase> extends QueriesCommandBase<P> {...
218
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...
1,175
665
<reponame>mldbai/mldb<filename>plugins/feature_gen/feature_generators.cc /** feature_generators.cc <NAME>, 27 juillet 2015 This file is part of MLDB. Copyright 2015 mldb.ai inc. All rights reserved. */ #include "feature_generators.h" #include "mldb/core/mldb_engine.h" #include "mldb/sql/sql_expression.h" #incl...
2,372
3,897
<filename>connectivity/nanostack/sal-stack-nanostack-eventloop/source/event.c<gh_stars>1000+ /* * Copyright (c) 2014-2015 ARM Limited. All rights reserved. * 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 ...
4,734
2,338
<reponame>medismailben/llvm-project """ Test how lldb reacts to wrong commands """ import lldb from lldbsuite.test.decorators import * from lldbsuite.test.lldbtest import * from lldbsuite.test import lldbutil class UnknownCommandTestCase(TestBase): mydir = TestBase.compute_mydir(__file__) @no_debug_info_te...
541
488
<reponame>maurizioabba/rose<gh_stars>100-1000 class TLtest extends Thread { public static void main (String [] args) { Data d = new Data (); new ThreadTest (d, "A").start (); new ThreadTest (d, "B").start (); } } class Data { private static ThreadLocal owner = new ThreadLocal () { public Object i...
551
333
<gh_stars>100-1000 import sys import os import numpy as np from delft.sequenceLabelling.reader import load_data_and_labels_conll from delft.utilities.Utilities import truecase_sentence """ Convert CoNLL tokens casing via truecase """ def convert(input_file, output_file): with open(output_file, "w") as outfil...
905
931
<reponame>jahnvisrivastava100/CompetitiveProgrammingQuestionBank<filename>Numbers/factorial_of_a_number.c /* Program to find the factorial of a number using functions*/ #include <stdio.h> int factorial_of_a_number(int n) { int fact = 1, i; if (n == 0) return 1; else for (i = 1; i <= n; i++)...
310
335
<gh_stars>100-1000 { "word": "Phlegmatic", "definitions": [ "having an unemotional and stolidly calm disposition" ], "parts-of-speech": "Adjective" }
75
811
{ "description": "Element content replacement - NEGATED Substring matching attribute value selector on beginning with declared namespace (css3-modsel-127)", "selectors": { "*|p, *|q, *|r, *|s": "css3-modsel-127.expected0.html", "*|q, *|s": "css3-modsel-127.expected1.html" }, "src": "css3-modsel-127.src....
126
3,702
// 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...
12,256
852
<filename>CondCore/CondDB/src/Cipher.cc #include "CondCore/CondDB/interface/Cipher.h" #include "CondCore/CondDB/interface/Exception.h" #include <cstring> // blowfish encryption #include "blowfish.h" // GNU base 64 encoding #include "base64.h" #include <cassert> cond::auth::Cipher::Cipher(const std::string& key) : m_ct...
1,592
16,461
<reponame>zakharchenkoAndrii/expo /* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #import <UIKit/UIKit.h> #import <ABI42_0_0React/ABI42_0_0RCTConvert.h> #import <ABI42_0_0React/A...
240
1,334
import datetime import io import unittest import update.result class UpdateResultTest(unittest.TestCase): def test_reads_correct_values_for_successful_result(self): self.assertEqual( update.result.Result( error=None, timestamp=datetime.datetime(2021, ...
2,133
457
<reponame>kevinvandervlist/rewrite /* * Copyright 2021 the original author or authors. * <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> * https://www.apache.org/licenses/LICEN...
1,813
12,101
/* * Copyright 2018 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 a...
2,391
348
<filename>docs/data/leg-t1/049/04903304.json {"nom":"Saint-Martin-de-la-Place","circ":"3ème circonscription","dpt":"Maine-et-Loire","inscrits":844,"abs":421,"votants":423,"blancs":5,"nuls":3,"exp":415,"res":[{"nuance":"REM","nom":"Mme <NAME>","voix":121},{"nuance":"LR","nom":"<NAME>","voix":102},{"nuance":"FN","nom":"M...
287
2,177
package org.nutz.dao.test.entity; import java.util.List; import org.nutz.dao.entity.annotation.*; public class TO5 { @Column("toid") @Id private int id; @Column("toname") private String name; @Column("to1") private String to1Name; @One(target = TO1.class, field =...
718