max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
3,269
<reponame>Akhil-Kashyap/LeetCode-Solutions // Time: O(n) // Space: O(h) /** * Definition for a Node. * struct Node { * int val; * Node *left; * Node *right; * Node *random; * Node() : val(0), left(nullptr), right(nullptr), random(nullptr) {} * Node(int x) : val(x), left(nullptr), right...
3,048
1,861
<gh_stars>1000+ /* * 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. */ package com.facebook.spectrum.logging; import com.facebook.spectrum.SpectrumResult; import com.facebook.spectrum.o...
530
654
package qz.communication; import org.hid4java.HidDevice; import javax.usb.util.UsbUtil; public class H4J_HidIO implements DeviceIO { private HidDevice device; private boolean streaming; public H4J_HidIO(DeviceOptions dOpts) throws DeviceException { this(H4J_HidUtilities.findDevice(dOpts)); ...
1,034
1,144
/* * #%L * de-metas-common-rest_api * %% * Copyright (C) 2021 metas GmbH * %% * 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 ...
425
450
/* * Copyright (C) 2017 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
4,182
3,705
#include "chainerx/routines/type_util.h" #include <vector> #include <gtest/gtest.h> #include "chainerx/array.h" #include "chainerx/dtype.h" #include "chainerx/error.h" #include "chainerx/routines/creation.h" #include "chainerx/shape.h" #include "chainerx/testing/context_session.h" namespace chainerx { namespace { ...
3,608
764
// 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...
31,345
1,338
<filename>src/apps/icon-o-matic/import_export/svg/DocumentBuilder.cpp /* * Copyright 2006, Haiku. All rights reserved. * Distributed under the terms of the MIT License. * * Authors: * <NAME> <<EMAIL>> */ #define NANOSVG_IMPLEMENTATION #include "DocumentBuilder.h" #include <new> #include <stdio.h> #include <B...
3,560
2,757
/***********************************************************************/ /* Implements the string (as opposed to unicode) version of the built-in formatters for string, int, float. That is, the versions of int.__format__, etc., that take and return string objects */ #include "Python.h" #include "../Objec...
218
988
/* * 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,787
348
{"nom":"Vennecy","circ":"5ème circonscription","dpt":"Loiret","inscrits":1239,"abs":708,"votants":531,"blancs":39,"nuls":11,"exp":481,"res":[{"nuance":"REM","nom":"<NAME>","voix":293},{"nuance":"LR","nom":"Mme <NAME>","voix":188}]}
93
1,909
package org.knowm.xchange.coinbase.v2.dto.account.transactions; import com.fasterxml.jackson.annotation.JsonProperty; import lombok.Getter; @Getter public class CoinbaseBuySellResourceField { protected String id; protected String resource; protected String resourcePath; public CoinbaseBuySellResourceField( ...
365
683
/* * Copyright The OpenTelemetry Authors * SPDX-License-Identifier: Apache-2.0 */ package io.opentelemetry.javaagent.tooling.field; import static io.opentelemetry.javaagent.tooling.field.GeneratedVirtualFieldNames.getRealFieldName; import static io.opentelemetry.javaagent.tooling.field.GeneratedVirtualFieldNames.g...
2,663
335
<filename>A/Appeasement_noun.json { "word": "Appeasement", "definitions": [ "The action or process of appeasing." ], "parts-of-speech": "Noun" }
75
2,659
/* * Copyright 2021 4Paradigm * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in w...
4,560
709
<gh_stars>100-1000 package com.olacabs.jackhammer.models; import lombok.AllArgsConstructor; import lombok.Getter; import lombok.NoArgsConstructor; import lombok.Setter; @AllArgsConstructor @NoArgsConstructor @Getter @Setter public class FindingTag { long findingId; long tagId; }
108
2,118
// Copyright (c) 2006-2018 <NAME> // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt) #ifndef CDSUNIT_MAP_TYPE_MICHAEL_LIST_H #define CDSUNIT_MAP_TYPE_MICHAEL_LIST_H #include "map_type.h" #include <cds/container/michael_k...
3,100
2,959
""" StackBuilder implementation for nested stack """ from typing import cast from samcli.lib.bootstrap.stack_builder import AbstractStackBuilder from samcli.lib.providers.provider import Function from samcli.lib.utils.hash import str_checksum from samcli.lib.utils.resources import AWS_SERVERLESS_LAYERVERSION, AWS_CLOU...
1,297
834
<reponame>Karybdis/mmdetection-mini<gh_stars>100-1000 # -*- coding:utf-8 -*- from collections import OrderedDict import torch.nn as nn import torch from .base_yolo_head import BaseYOLOHead from ..utils import brick as vn_layer from ..builder import HEADS @HEADS.register_module() class RRTinyYolov4Head(BaseYOLOHead): ...
941
695
<reponame>r3m0t/debugpy<filename>src/debugpy/_vendored/pydevd/tests_python/resources/_debugger_case_method_single_line.py def call(b): return b # Break here will hit once at creation time and then at each call. call(1) call(2) print('TEST SUCEEDED')
93
880
/** * Copyright 2019 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in wr...
4,797
575
<gh_stars>100-1000 // Copyright 2018 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_PLATFORM_HEAP_IMPL_PROCESS_HEAP_H_ #define THIRD_PARTY_BLINK_RENDERER_PLATFORM_HEAP_IMPL_PROCESS_HEA...
853
831
<reponame>Ret-Mode/android /* * Copyright (C) 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/licenses/LICENSE-2.0 ...
1,813
1,538
// 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...
2,168
4,065
package com.zzhoujay.richtext.ext; import android.util.Log; import com.zzhoujay.richtext.RichText; /** * Created by zhou on 2017/4/4. * Debug Utils */ public class Debug { public static final String PREF = " --> "; private static final String TAG = "RichText"; public static void e(Throwable e) { ...
403
777
<reponame>google-ar/chromium // Copyright 2014 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 "ui/base/ime/chromeos/ime_keyboard_ozone.h" #include "ui/ozone/public/input_controller.h" #include "ui/ozone/public...
701
1,248
<filename>src/pretix/base/migrations/0028_auto_20160816_1242.py<gh_stars>1000+ # -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2016-08-16 12:42 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('pretixbase', '0027_aut...
398
335
{ "word": "Trendy", "definitions": [ "Very fashionable or up to date." ], "parts-of-speech": "Adjective" }
60
350
<filename>package.json { "name": "stopwords-json", "version": "1.2.0", "description": "Stopwords for various languages in JSON format.", "main": "stopwords-all.json", "author": { "name": "<NAME>", "url": "https://github.com/6" }, "repository": { "type": "git", "url": "http://github.com/6/s...
421
3,489
''' create_geonames_tsv.py ---------------------- This script formats the open GeoNames database (as well as its accompanying postal codes data set) into a schema'd tab-separated value file. It generates a C header which uses an enum for the field names. This way if new fields are added or there's a typo, etc. the er...
11,734
2,151
// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CC_BASE_DEVTOOLS_INSTRUMENTATION_H_ #define CC_BASE_DEVTOOLS_INSTRUMENTATION_H_ #include <stdint.h> #include <memory> #include "base/macros.h" ...
2,661
483
<filename>YCRefreshViewLib/src/main/java/org/yczbj/ycrefreshviewlib/span/GridSpanSizeLookup.java /* Copyright 2017 yangchong211(github.com/yangchong211) 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 ...
978
1,602
#include <stdio.h> #include "lib/requireStmt.h" // Test of calling an exported function involving require statements int main(int argc, char* argv[]) { // Initialize the Chapel runtime and standard modules chpl_library_init(argc, argv); chpl__init_requireStmt(0, 0); callsFoo(); chpl_library_finalize(); ...
113
1,475
/* * 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...
2,285
3,287
<filename>src/azure-cli/azure/cli/command_modules/eventgrid/delivery_attribute_mapping.py # -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for l...
906
1,338
<reponame>Kirishikesan/haiku<filename>src/preferences/media/IconHandles.h /* * Copyright 2010, Haiku, Inc. All rights reserved. * Distributed under the terms of the MIT License. */ enum { devices_icon = 1, mixer_icon = 2, tv_icon = 3, cam_icon = 4, mic_icon = 5, speaker_icon = 6 };
115
72,551
<filename>test/Index/Store/Inputs/ClangModuleB.h #import "ClangModuleA.h" void funcB(void);
37
2,059
<reponame>krishnaavadhani/testkc1 package com.squareup.spoon; import com.squareup.spoon.html.HtmlRenderer; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.lang.reflect.Field; import java.nio.ByteBuffer; import java.nio.channels.FileChannel; import java.nio.charset.Charset; ...
1,153
984
<reponame>forksnd/win32metadata<filename>generation/WinSDK/RecompiledIdlHeaders/um/mbnapi.h /* this ALWAYS GENERATED file contains the definitions for the interfaces */ /* File created by MIDL compiler version 8.01.0626 */ /* @@MIDL_FILE_HEADING( ) */ /* verify that the <rpcndr.h> version is high enough to com...
115,435
1,085
/* * Copyright (C) 2017-2019 Dremio 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 by applicable l...
266
313
{"status_id":3764875710955520,"text":"Wihke unso illub cik maji op dore pub map odeosobop wimkeet unuwo sa kega mesebit huna kah. #camgir","user":{"user_id":7399945292218368,"name":"<NAME>","screen_name":"@vaj","created_at":424573692,"followers_count":88,"friends_count":24,"favourites_count":14},"created_at":140329874...
177
892
{ "schema_version": "1.2.0", "id": "GHSA-6rmj-6826-5j8h", "modified": "2022-05-13T01:16:08Z", "published": "2022-05-13T01:16:08Z", "aliases": [ "CVE-2018-18898" ], "details": "The email-ingestion feature in Best Practical Request Tracker 4.1.13 through 4.4 allows denial of service by remote attackers ...
699
543
/* * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Softwa...
2,450
357
/* * Psychtoolbox3/PsychSourceGL/Source/Common/IOPort/PsychSerialUnixGlue.h * * PROJECTS: * * IOPort for now. * * AUTHORS: * * <EMAIL> mk * * PLATFORMS: * * All Unix (aka Posix) systems: OS/X and Linux. * * HISTORY: * * 04/10/2008 mk Initial imp...
1,778
335
<filename>A/Archdeacon_noun.json { "word": "Archdeacon", "definitions": [ "A senior Christian cleric (in the early Church a deacon, in the modern Anglican Church a priest) to whom a bishop delegates certain responsibilities." ], "parts-of-speech": "Noun" }
97
314
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "CDStructures.h" #import "DVTDocumentLocation-Protocol.h" @class NSIndexPath; @interface IDELogDocumentLocation : DVTDocumentLocation { NSIndexPath *_indexPath; BOOL _ex...
413
837
<filename>tests/bool.py<gh_stars>100-1000 import unittest import base class Suite(base.Base): def test_1(self): """Test case 1""" self.start('main') l = self.xpath('li[1]/a') l.click() self.assertEqual("Yes!", self.body_text()) def test_2(self): """Test case 2""...
222
3,893
<filename>Source/drlg_l4.h /** * @file drlg_l4.h * * Interface of the hell level generation algorithms. */ #ifndef __DRLG_L4_H__ #define __DRLG_L4_H__ extern int diabquad1x; extern int diabquad1y; extern int diabquad2x; extern int diabquad2y; extern int diabquad3x; extern int diabquad3y; extern int d...
199
1,445
<reponame>prohfesor/tapiriik import time import base64 import math import hmac import hashlib import struct class TOTP: def Get(secret): counter = struct.pack(">Q", int(time.time() / 30)) key = base64.b32decode(secret.upper().encode()) csp = hmac.new(key, counter, hashlib.sha1) res...
239
3,348
/** * 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,239
1,011
<gh_stars>1000+ from django.db import models class DJAModel(models.Model): """ Base for test models that sets app_label, so they play nicely. """ class Meta: app_label = "tests" abstract = True class BasicModel(DJAModel): text = models.CharField(max_length=100) # Models for re...
320
660
<reponame>neerajso/media-driver /* * Copyright (c) 2019-2020, Intel Corporation * * 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 right...
1,922
956
# $Id: rx.py 23 2006-11-08 15:45:33Z jonojono $ # -*- coding: utf-8 -*- """Rx Protocol.""" from __future__ import absolute_import from . import dpkt # Types DATA = 0x01 ACK = 0x02 BUSY = 0x03 ABORT = 0x04 ACKALL = 0x05 CHALLENGE = 0x06 RESPONSE = 0x07 DEBUG = 0x08 # Flags CLIENT_INITIATED = 0x01 REQUEST_ACK = 0x02 L...
517
535
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
1,821
1,144
<filename>backend/de.metas.handlingunits.base/src/main/java/de/metas/handlingunits/empties/EmptiesInOutLinePackingMaterialDocumentLine.java<gh_stars>1000+ package de.metas.handlingunits.empties; /* * #%L * de.metas.handlingunits.base * %% * Copyright (C) 2015 metas GmbH * %% * This program is free software: you ...
832
575
<filename>ash/media/media_notification_constants.cc // Copyright 2018 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 "ash/media/media_notification_constants.h" namespace ash { const char kMediaSessionNotifica...
126
1,626
// // Copyright (c) 2016, Scientific Toolworks, Inc. // // This software is licensed under the MIT License. The LICENSE.md file // describes the conditions under which this software may be distributed. // // Author: <NAME> // #include "Installer.h" #include <QDir> Installer::Installer(const QString &name, co...
166
310
<reponame>dreeves/usesthis<gh_stars>100-1000 { "name": "UFO: Enemy Unknown", "description": "A strategy video game.", "url": "https://en.wikipedia.org/wiki/UFO:_Enemy_Unknown" }
72
348
<reponame>chamberone/Leaflet.PixiOverlay<gh_stars>100-1000 {"nom":"Linthal","circ":"2ème circonscription","dpt":"Haut-Rhin","inscrits":460,"abs":260,"votants":200,"blancs":17,"nuls":5,"exp":178,"res":[{"nuance":"REM","nom":"<NAME>","voix":92},{"nuance":"LR","nom":"M. <NAME>","voix":86}]}
120
840
#pragma once #define _SDK_MIN_MSC_VER 1800 #define _SDK_MAX_MSC_VER 1900 #if defined(_MSC_VER) #if _MSC_VER < _SDK_MIN_MSC_VER || _MSC_VER > _SDK_MAX_MSC_VER #error "Unsupported MSVC. Please use VS2013(v120) or compatible VS2015(v140)." #endif // _MSC_VER < 1800 || _MSC_VER > 1900 #endif // defined(_MSC_VER) #includ...
426
412
/** * @file span.h * @author <NAME> <<EMAIL>> * @date 2020-08-04 * * @copyright MIT License * * Copyright (c) 2020 <NAME> * * 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 ...
9,634
412
<gh_stars>100-1000 # encoding: utf-8 # Copyright 1999-2017 Alibaba Group Holding Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # ...
308
2,126
from django.apps import AppConfig class DockerapiConfig(AppConfig): name = 'dockerapi'
29
852
// -*- C++ -*- // // Package: Records // Class : IdealGeometryRecord // // Implementation: // <Notes on implementation> // // Author: // Created: Mon Jul 25 11:05:09 EDT 2005 #include "Geometry/Records/interface/MTDDigiGeometryRecord.h" #include "FWCore/Framework/interface/eventsetuprecord_registratio...
141
2,577
<gh_stars>1000+ # Copyright (C) Mesosphere, Inc. See LICENSE file for details. """This module provides a set of helper functions for tests. Attributes: LOG_LINE_SEARCH_INTERVAL (decimal): Defines (in seconds), intervals between subsequent scans of log buffers. """ import code import logging i...
6,076
589
package rocks.inspectit.agent.java.sensor.method.remote.server.mq; import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.hasEntry; import static org.hamcrest.Matchers.instanceOf; import static org.hamcrest.Matchers.is; import static org.hamcrest.Matchers.not; import static org.hamcre...
2,343
1,016
/** * */ package com.thinkbiganalytics.metadata.rest.model.data; /*- * #%L * thinkbig-metadata-rest-model * %% * Copyright (C) 2017 ThinkBig Analytics * %% * 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 c...
765
777
// Copyright 2014 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/keyed_service/ios/browser_state_keyed_service_factory.h" #include "base/logging.h" #include "components/keyed_service/core/keyed_ser...
1,087
6,270
[ { "type": "bugfix", "category": "S3", "description": "fix putObject using stream <1mb" }, { "type": "feature", "category": "CognitoIdentityServiceProvider", "description": "Amazon Cognito now has API support for updating the Secure Sockets Layer (SSL) certif...
506
850
<filename>app/classifier/classifier.cc<gh_stars>100-1000 /************************************************************************ * Author: Sundy * E-mail: <EMAIL> * Date: Jan 09,2018 ************************************************************************/ #include <fstream> #include <utility> #include <vector> ...
6,098
2,177
package org.nutz.mvc.testapp.classes.action.mapping; import org.nutz.mvc.annotation.ApiVersion; import org.nutz.mvc.annotation.At; import org.nutz.mvc.annotation.Ok; @Ok("raw") @At("/mapping/issue1530/{version}") @ApiVersion("v1") public class Issue1530MappingAction { @ApiVersion("v1") @At("/yourname/?") ...
239
301
package qouteall.imm_ptl.core.ducks; import net.minecraft.client.world.ClientWorld; public interface IEParticleManager { void ip_setWorld(ClientWorld world); }
55
424
<reponame>siliconcompiler/siliconcompiler import os import siliconcompiler def gcd_chip(): gcd_ex_dir = os.path.join(scroot(), 'examples', 'gcd') chip = siliconcompiler.Chip('gcd') chip.load_target('freepdk45_demo') chip.add('input', 'verilog', os.path.join(gcd_ex_dir, 'gcd.v')) chip.add('input', ...
401
4,801
from __future__ import absolute_import import os import sys import shutil import numpy as np from PIL import Image import cv2 from keras.preprocessing.image import ImageDataGenerator class ImagePreprocessor: def __init__(self): pass def build_image_dataset(self, data_input_folder, augment_data=True...
1,829
1,085
<reponame>luxms/dremio-oss<gh_stars>1000+ /* * Copyright (C) 2017-2019 Dremio 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...
592
777
// 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 CONTENT_BROWSER_RENDERER_HOST_OFFSCREEN_CANVAS_SURFACE_MANAGER_H_ #define CONTENT_BROWSER_RENDERER_HOST_OFFSCREEN_CANVAS_SURFACE_MANAGER_H_ #incl...
640
411
{"_version":"1.5.0","sap.app":{"_version":"1.2.0","id":"bookmarkplugin","type":"component","applicationVersion":{"version":""},"title":"{{plugin_title}}"},"sap.ui":{"_version":"1.3.0","technology":"UI5","deviceTypes":{"desktop":true,"tablet":true,"phone":true},"supportedThemes":[]},"sap.ui5":{"_version":"1.1.0","conten...
189
17,318
<reponame>woozhijun/cat package com.dianping.cat.configuration.client.transform; import com.dianping.cat.configuration.client.Constants; import com.dianping.cat.configuration.client.entity.*; import org.xml.sax.Attributes; public class DefaultSaxMaker implements IMaker<Attributes> { @Override public Bind buil...
1,893
2,392
// Copyright (c) 2012 INRIA Sophia-Antipolis (France). // Copyright (c) 2017 GeometryFactory Sarl (France). // All rights reserved. // // This file is part of CGAL (www.cgal.org). // // $URL: https://github.com/CGAL/cgal/blob/v5.1/Classification/include/CGAL/Classification/Feature/Echo_scatter.h $ // $Id: Echo_scatter....
2,245
709
//----------------------------------------------- // // This file is part of the Siv3D Engine. // // Copyright (c) 2008-2021 <NAME> // Copyright (c) 2016-2021 OpenSiv3D Project // // Licensed under the MIT License. // //----------------------------------------------- # include <Siv3D/Script.hpp> # include <Siv3D/Circ...
1,225
402
<gh_stars>100-1000 """Client for cache server. See cachesvr.py for protocol description. """ import argparse import asyncio from asyncio import test_utils import json import logging ARGS = argparse.ArgumentParser(description='Cache client example.') ARGS.add_argument( '--tls', action='store_true', dest='tls', ...
3,285
435
<reponame>allen91wu/data { "description": "# Background\n\n* Why async? CPU bound vs IO bound processes.\n* Concurrency is not the same as multithreading\n* Single threaded concurrency\n\n# Generators - already in Python 2 !\n\n* Generator - a function you can pause!\n* How to implement async with generators and even...
392
1,165
<filename>jobs/pacman-rule-engine-2.0/src/main/java/com/tmobile/pacman/executor/JobExecutor.java /******************************************************************************* * Copyright 2018 T Mobile, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License");...
2,522
672
/* * 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 applic...
701
749
<reponame>rtshilston/flask-cors # -*- coding: utf-8 -*- """ test ~~~~ Flask-CORS is a simple extension to Flask allowing you to support cross origin resource sharing (CORS) using a simple decorator. :copyright: (c) 2016 by <NAME>. :license: MIT, see LICENSE for more details. """ from ..base_te...
875
631
<gh_stars>100-1000 // Copyright 2018 The Beam Team // // 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 ...
338
2,151
<reponame>zipated/src // 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. package org.chromium.chrome.browser.mojo; import org.chromium.base.annotations.CalledByNative; import org.chromium.chrome.browser.i...
866
2,127
{ "name": "devices.css", "version": "0.1.15", "homepage": "http://picturepan2.github.io/devices.css", "author": "<NAME> <<EMAIL>>", "description": "Devices.css: Modern devices in pure CSS.", "main": "dist/devices.css", "repository": { "type": "git", "url": "https://github.com/picturepan2/devices.c...
398
2,322
import cartography.intel.aws.s3 import tests.data.aws.s3 TEST_ACCOUNT_ID = '000000000000' TEST_REGION = 'us-east-1' TEST_UPDATE_TAG = 123456789 def test_load_s3_buckets(neo4j_session, *args): """ Ensure that expected buckets get loaded with their key fields. """ data = tests.data.aws.s3.LIST_BUCKETS...
1,117
4,283
/* * Copyright (c) 2008-2021, Hazelcast, 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 ...
356
3,614
package com.rocketmq.demo.service; import com.rocketmq.demo.model.Order; import org.springframework.cloud.stream.annotation.StreamListener; import org.springframework.cloud.stream.messaging.Sink; import org.springframework.messaging.Message; import org.springframework.messaging.handler.annotation.Payload; import org....
349
677
<gh_stars>100-1000 // Copyright 2017 The Lynx Authors. All rights reserved. package com.lynx.ui.event; import com.lynx.core.impl.EventModifier; import com.lynx.core.impl.RenderObjectImpl; import com.lynx.core.touch.EventInfo; import com.lynx.core.touch.TouchEventInfo; import com.lynx.core.touch.gesture.GestureEventInf...
1,321
471
# Generated by Django 1.11.13 on 2018-05-09 18:57 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('accounting', '0026_auto_20180508_1956'), ] operations = [ migrations.RemoveField( model_name='billingrecord', name='emaile...
216
500
<gh_stars>100-1000 package ddf.minim.ugens; import ddf.minim.AudioOutput; import ddf.minim.Minim; import ddf.minim.UGen; /** * A UGen that generates a simple envelope that changes from a starting value to a * middle value during an "attack" phase and then changes to an ending value * during a "damp" or "decay" ph...
2,895
492
<filename>imapfw/actions/__init__.py # Order of imports is order of actions in command line help message. from .unittests import UnitTests from .noop import Noop from .testrascal import TestRascal from .examine import Examine from .shell import ShellAction from .devel import Devel from .syncaccounts import SyncAccount...
92
1,178
<filename>common/c_math/filter.h /* * 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 * * U...
5,068
340
<filename>include/eve/module/real/core/function/regular/generic/compress_store.hpp //================================================================================================== /* EVE - Expressive Vector Engine Copyright : EVE Contributors & Maintainers SPDX-License-Identifier: MIT */ //===================...
1,930
494
/** * Copyright 2013 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 applicable law or agreed ...
1,003
651
package com.ncipher.km.nfkm; import com.ncipher.km.marshall.NFKM_SoftCardIdent; import com.ncipher.nfast.NFException; public class SoftCard { public void load(Module module, CmdCallBack callback) throws NFException { throw new RuntimeException("fake nCipher"); } public String getName() { throw new Runt...
149
644
<reponame>dendisuhubdy/coriander """ Tests the crash dump on error, makes sure we get the ll, cl, and meta """ import os from os import path import subprocess from test import test_common import pytest @pytest.mark.xfail(reason='since we always rebuild all now, this no longer is implemented to fail correclty') def te...
900