max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
1,781
<filename>UltimateAndroidGradle/ultimateandroiduicomponent/src/main/java/com/marshalchen/common/uimodule/standuptimer/model/MeetingStats.java /* * Copyright (c) 2014. <NAME>. */ package com.marshalchen.common.uimodule.standuptimer.model; import java.util.List; public class MeetingStats { private float numParti...
825
630
#ifndef TCPKALI_CONNECTION_H #define TCPKALI_CONNECTION_H #include <sys/queue.h> #include <sys/types.h> #include "config.h" #include "tcpkali_events.h" #include "tcpkali_iface.h" #include "tcpkali_pacefier.h" #include "tcpkali_rate.h" #include "tcpkali_ssl.h" #include "tcpkali_traffic_stats.h" #include "tcpkali_tran...
1,396
411
<reponame>nkoneko/PacketProxy /* * Copyright 2019 DeNA Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless require...
474
1,514
<filename>src/arch/Lights/LightsDriver_Win32Minimaid.cpp // LightsDriver_Win32Minimaid - driver for lights on the Minimaid with libmmmagic /* To use, StepMania must be run with root permissions, or udev rule for the * device must be made something like this (but it's not quite right): * echo SUBSYSTEM==\"usb\", ATTR{...
2,278
1,816
from .Command import Command class PublishPackageCommand(Command): """ Publish package files to your project package:publish {name : Name of the package} {--r|--resources=? : Resources to publish in you project (config, views, migrations...)} {--d|--dry=? : Just show a preview of ...
629
3,066
/* * Licensed to Crate.io GmbH ("Crate") under one or more contributor * license agreements. See the NOTICE file distributed with this work for * additional information regarding copyright ownership. Crate licenses * this file to you under the Apache License, Version 2.0 (the "License"); * you may not use this f...
966
965
<reponame>bobbrow/cpp-docs DWORD dwExStyle = m_TabCtrl.GetExtendedStyle(); m_TabCtrl.SetExtendedStyle(dwExStyle | TCS_EX_FLATSEPARATORS);
57
1,604
package org.bouncycastle.asn1.ocsp; import org.bouncycastle.asn1.ASN1EncodableVector; import org.bouncycastle.asn1.ASN1Object; import org.bouncycastle.asn1.ASN1Primitive; import org.bouncycastle.asn1.ASN1Sequence; import org.bouncycastle.asn1.DERSequence; import org.bouncycastle.asn1.x500.X500Name; import org.bouncyca...
835
363
# -*- coding: utf-8 -*- ''' :codeauthor: <NAME> <<EMAIL>> ''' from tests.support.mixins import LoaderModuleMockMixin from tests.support.unit import TestCase, skipIf from tests.support.mock import ( MagicMock, patch, Mock, NO_MOCK, NO_MOCK_REASON ) import hubblestack.modules.win_network as win_...
925
376
# Generated by Django 3.1 on 2019-09-21 20:16 from django.db import IntegrityError, migrations, models def update_objects(apps, schema_editor): db_alias = schema_editor.connection.alias TestTable = apps.get_model('good_flow_app', 'TestTable') TestTable.objects.using(db_alias).update(field=0) def insert...
498
1,091
/* * Copyright 2018-present Open Networking 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 appli...
2,740
1,102
// Nintendo Game Boy PAPU sound chip emulator // Gb_Snd_Emu 0.1.5 #ifndef GB_APU_H #define GB_APU_H #include "Gb_Oscs.h" class Gb_Apu { public: // Set overall volume of all oscillators, where 1.0 is full volume void volume( double ); // Set treble equalization void treble_eq( const blip_eq_t& ); // Output...
970
1,273
package org.broadinstitute.hellbender.tools.copynumber.utils; import org.broadinstitute.barclay.argparser.Argument; import org.broadinstitute.barclay.argparser.CommandLineProgramProperties; import org.broadinstitute.barclay.argparser.ExperimentalFeature; import org.broadinstitute.hellbender.cmdline.ExomeStandardArgume...
1,639
1,062
<reponame>ZYAZP/python2 import re, string as s print re.sub('abc','zxy',s.lowercase)
36
1,017
package com.xiaolyuh; /** * java 虚拟机栈和本地方法栈内存溢出测试 * <p> * 单个线程请求的栈深度大于虚拟机所允许的最大深度 * <p> * VM Args: -Xss128k * * @author yuhao.wang3 * @since 2019/11/30 17:09 */ public class StackOverflowErrorErrorTest { private int stackLength = 0; public void stackLeak(String ags1, String ags2, String ags3) { ...
394
311
<gh_stars>100-1000 from typing import List import hypothesis import deal @deal.pre(lambda items: len(items) > 0) @deal.has() def my_min(items: List[int]) -> int: return min(items) @hypothesis.example([1, 2, 3]) @deal.cases( func=my_min, settings=hypothesis.settings( verbosity=hypothesis.Verbos...
174
418
// // DTWebVideoView.h // DTCoreText // // Created by <NAME> on 8/5/11. // Copyright 2011 <EMAIL>. All rights reserved. // #import <DTFoundation/DTWeakSupport.h> @class DTWebVideoView; @class DTTextAttachment; /** Protocol for delegates of <DTWebVideoView> */ @protocol DTWebVideoViewDelegate <NSObject> @option...
514
442
<reponame>timgates42/python-nvd3 #! /usr/bin/env python # coding=utf-8 try: from setuptools import setup except ImportError: from distutils.core import setup with open('README.rst') as readme_file: readme = readme_file.read() with open('CHANGELOG.rst') as history_file: history = history_file.read()....
780
325
<gh_stars>100-1000 import pytest import numpy as np from spacy.vocab import Vocab from spacy.language import Language from whatlies.language import SpacyLanguage @pytest.fixture() def color_lang(): vector_data = { "red": np.array([1.0, 0.0]), "green": np.array([0.5, 0.5]), "blue": np.arra...
581
905
<reponame>ivangirko/ormar<filename>tests/test_model_definition/test_extra_ignore_parameter.py import databases import sqlalchemy import ormar from ormar import Extra from tests.settings import DATABASE_URL database = databases.Database(DATABASE_URL, force_rollback=True) metadata = sqlalchemy.MetaData() class Child(...
330
1,975
// Copyright 2013 Google 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 to in...
1,980
6,160
/* * 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 ...
7,282
828
<gh_stars>100-1000 package net.hasor.dataql.domain; import net.hasor.dataql.AbstractTestResource; import net.hasor.dataql.Udf; import net.hasor.test.dataql.udfs.DataBean; import org.junit.Test; import org.powermock.api.mockito.PowerMockito; import java.math.BigInteger; import java.util.ArrayList; import java.util.Arra...
2,539
412
<reponame>vishalbelsare/graphbrain from termcolor import colored TYPE_COLOR = { 'C': 'blue', 'P': 'red', 'M': 'cyan', 'B': 'green', 'J': 'yellow', 'T': 'magenta', 'R': 'red', 'S': 'magenta' } def colored_type(atom_type): if atom_type[0] in TYPE_COLOR: color = TYPE_COLOR[a...
1,295
2,151
/* * Copyright 2016 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. */ #ifdef DRV_AMDGPU #include <amdgpu.h> #include <amdgpu_drm.h> #include <errno.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #incl...
6,305
879
import pytest import six from flexmock import flexmock from sqlalchemy_utils import i18n from sqlalchemy_utils.primitives import WeekDay, WeekDays @pytest.fixture def set_get_locale(): i18n.get_locale = lambda: i18n.babel.Locale('fi') @pytest.mark.skipif('i18n.babel is None') @pytest.mark.usefixtures('set_get_...
2,355
1,176
// Copyright 2017 <NAME> // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writin...
2,679
1,444
<gh_stars>1000+ package mage.filter.common; import mage.constants.CardType; /** * * @author LevelX2 */ public class FilterControlledArtifactPermanent extends FilterControlledPermanent { public FilterControlledArtifactPermanent() { this("artifact you control"); } public FilterControlledArti...
241
1,145
<gh_stars>1000+ import click from omnizart.cli.common_options import add_common_options, COMMON_GEN_FEATURE_OPTIONS from omnizart.setting_loaders import PatchCNNSettings from omnizart.utils import LazyLoader patch_cnn = LazyLoader("patch_cnn", globals(), "omnizart.patch_cnn") @click.command() @add_common_options(C...
265
11,868
package org.openapitools.client.api; import com.github.tomakehurst.wiremock.WireMockServer; import com.github.tomakehurst.wiremock.stubbing.Scenario; import feign.FeignException; import feign.RetryableException; import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.a...
3,607
5,166
/* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ package com.amazonaws.personalize.client.resource; import java.util.Date; import software.amazon.awssdk.services.personalize.PersonalizeClient; import software.amazon.awssdk.services.personalize.model.C...
1,265
1,652
<filename>redis/redis-core/src/main/java/com/ctrip/xpipe/redis/core/entity/ClusterAware.java package com.ctrip.xpipe.redis.core.entity; /** * @author wenchao.meng * * Aug 3, 2016 */ public interface ClusterAware { String getClusterId(); }
98
7,660
<filename>src/Native/ReveryNSObject.c #ifdef __APPLE__ #import <Cocoa/Cocoa.h> #import <objc/objc-runtime.h> #include <caml/alloc.h> #include <caml/callback.h> #include <caml/memory.h> #include <caml/mlvalues.h> #include "utilities.h" CAMLprim value revery_NSObject_equal(value vNSObjA, value vNSObjB) { CAMLparam...
683
575
// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). // // 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...
1,235
1,330
<gh_stars>1000+ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * ...
2,288
879
<reponame>luiz158/Hibernate-SpringBoot<filename>HibernateSpringBootInspectPersistentContext/src/main/java/com/bookstore/service/BookstoreService.java<gh_stars>100-1000 package com.bookstore.service; import com.bookstore.entity.Author; import com.bookstore.entity.Book; import com.bookstore.repository.AuthorRepository; ...
1,561
316
# Command to build: from distutils.core import setup import glob package_prefix = "Lib/site-packages/aiml" setup(name="PyAIML", version="0.8.6", author="<NAME>", author_email="<EMAIL>", maintainer="<NAME>", maintainer_email="<EMAIL>", description="An interpreter package for A...
518
3,227
<filename>Arrangement_on_surface_2/examples/Arrangement_on_surface_2/arr_rat_functions.h #ifndef ARR_RAT_FUNCTIONS_H #define ARR_RAT_FUNCTIONS_H #include <CGAL/basic.h> #include <CGAL/CORE_BigInt.h> #include <CGAL/Algebraic_kernel_d_1.h> #include <CGAL/Arr_rational_function_traits_2.h> #include <CGAL/Arrangement_2.h> ...
399
65,462
<gh_stars>1000+ #ifndef SC_TICK_H #define SC_TICK_H #include <stdint.h> typedef int64_t sc_tick; #define PRItick PRIi64 #define SC_TICK_FREQ 1000000 // microsecond // To be adapted if SC_TICK_FREQ changes #define SC_TICK_TO_US(tick) (tick) #define SC_TICK_TO_MS(tick) ((tick) / 1000) #define SC_TICK_TO_SEC(tick) ((ti...
230
354
<filename>jOOX/src/main/java/org/joox/selector/CSS2XPath.java /* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by...
7,124
5,169
{ "name": "JSONParserSwift", "version": "0.1.3", "summary": "Parse your JSON data directly to Swift object.", "description": "Parse your JSON data directly to Swift object.\nServer sends the all JSON data in black & white format i.e its all strings & we make hard efforts to typecast them into their respective d...
322
1,858
<reponame>sdbbs/hnterm /*! \file json.h * \brief Json parsing */ #pragma once #include <map> #include <vector> #include <string> namespace JSON { std::vector<int> parseIntArray(const std::string & json) { std::vector<int> res; if (json[0] != '[') return res; int n = json.size(); int curid = 0; ...
1,760
2,637
<filename>vendors/nordic/nRF5_SDK_15.2.0/components/iot/common/iot_defines.h<gh_stars>1000+ /** * Copyright (c) 2014 - 2018, Nordic Semiconductor ASA * * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions...
13,694
6,989
#include "crc32c.h" #include <util/generic/singleton.h> #include <contrib/libs/crcutil/interface.h> namespace { typedef crcutil_interface::CRC TCrc; struct TCrcUtilSse4 { TCrc* const Pimpl; TCrcUtilSse4() noexcept : Pimpl(TCrc::Create(0x82f63b78, 0, 32, true, 0, 0, 0, TCrc::IsSS...
483
739
{ "name": "<NAME>", "img": "https://s4.uupload.ir/files/safinal_etnv.jpg", "email": "<EMAIL>", "links": { "website": "https://safinal.pythonanywhere.com", "linkedin": "https://www.linkedin.com/in/safinal", "github": "https://github.com/safinal" }, "jobTitle": "Software Engineer", "location": {...
165
1,473
/* * Copyright 2017 NAVER Corp. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
2,120
637
<reponame>sagar12861/jenkins package hudson; import hudson.model.UpdateCenter; import jenkins.model.Jenkins; import org.junit.Rule; import org.junit.Test; import org.jvnet.hudson.test.Issue; import org.jvnet.hudson.test.JenkinsRule; import javax.servlet.http.HttpServletResponse; import java.util.Arrays; import java.u...
444
634
/**************************************************************** * 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...
1,037
1,405
package com.tencent.tmsecure.module.optimize; public interface IAdvancedGovernorConfig { int getDownThreshold(); int getPowersaveBias(); long getSamplingRate(); long getSamplingRateMax(); long getSamplingRateMin(); int getUpThreshold(); int ignoreNiceLoad(); boolean setDownThresh...
165
14,668
# 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. """WSGI application to manage a USB gadget. """ from __future__ import print_function import datetime import hashlib import re import subprocess import sys...
1,541
1,784
from __future__ import print_function from setuptools import setup, find_packages, Command from jupyter_packaging import ( create_cmdclass, install_npm, ensure_targets, combine_commands, get_version, ) import os from os.path import join as pjoin from pathlib import Path from distutils import log ...
1,487
2,322
<gh_stars>1000+ /* code page 10021 (Mac Thai) */ /* generated from https://download.microsoft.com/download/C/F/7/CF713A5E-9FBC-4FD6-9246-275F65C0E498/Windows Supported Code Page Data Files.zip:CodpageFiles/10021.txt */ /* DO NOT EDIT!! */ #include "wine/asm.h" #ifdef __ASM_OBSOLETE #include "unicode.h" static const...
10,373
841
<reponame>jgoestl/cgeo package cgeo.geocaching.brouter.codec; import org.junit.Assert; import org.junit.Test; public class LinkedListContainerTest { @Test public void linkedListTest1() { final int nlists = 553; final LinkedListContainer llc = new LinkedListContainer(nlists, null); fo...
606
5,169
{ "name": "FlutterModule", "version": "1.0", "description": "flutter_show_demo_product这是一个用来测试远程仓库管理flutter产物的仓库", "license": "MIT", "summary": "这是一个用来测试远程仓库管理flutter产物的仓库", "homepage": "https://github.com/gunmm/flutter_show_demo_product", "authors": { "gunmm": "<EMAIL>" }, "source": { "git": ...
296
530
<filename>tests/functional/test_engine_modules/resolver.py from tartiflette import Resolver @Resolver("A.b", schema_name="test_issue140") async def resolver_a_b(*args, **kwargs): return "A.b"
72
2,209
<filename>core/deps/fmt-5.3.0/support/rst2md.py<gh_stars>1000+ #!/usr/bin/env python # reStructuredText (RST) to GitHub-flavored Markdown converter import re, sys from docutils import core, nodes, writers def is_github_ref(node): return re.match('https://github.com/.*/(issues|pull)/.*', node['refuri']) class T...
1,818
852
#ifndef CONDTOOLS_HCAL_MAKE_HFPHASE1PMTPARAMS_H_ #define CONDTOOLS_HCAL_MAKE_HFPHASE1PMTPARAMS_H_ #include <memory> #include "CondFormats/HcalObjects/interface/HFPhase1PMTParams.h" std::unique_ptr<HFPhase1PMTParams> make_HFPhase1PMTParams_data(); std::unique_ptr<HFPhase1PMTParams> make_HFPhase1PMTParams_mc(); std::...
231
8,747
/** Copyright 2021 Espressif Systems (Shanghai) PTE LTD * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ...
13,016
521
<reponame>0xflotus/voctomix<filename>vocto/composite_commands.py #!/usr/bin/env python3 import re class CompositeCommand: def __init__(self, composite, A, B): self.composite = composite self.A = A self.B = B def from_str(command): A = None B = None # match cas...
1,200
890
// Copyright (C) <2019> Intel Corporation // // SPDX-License-Identifier: Apache-2.0 #include <sys/time.h> #include "AudioTime.h" namespace mcu { uint32_t AudioTime::sTimestampOffset = 0; void AudioTime::setTimestampOffset(uint32_t offset) { sTimestampOffset = offset; } int64_t AudioTime::currentTime(void) { ...
183
357
<reponame>debojyoti-majumder/lightwave<gh_stars>100-1000 /* * Copyright © 2018 VMware, 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/l...
15,994
492
<filename>pysnmp/hlapi/v1arch/asyncore/__init__.py # # This file is part of pysnmp software. # # Copyright (c) 2005-2019, <NAME> <<EMAIL>> # License: http://snmplabs.com/pysnmp/license.html # from pysnmp.hlapi.v1arch.auth import * from pysnmp.hlapi.v1arch.asyncore.transport import * from pysnmp.hlapi.v1arch.asyncore.cm...
220
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.userdata.base; import android....
1,332
1,537
/****************************************************************************** * Copyright (c) 2018, Xilinx, 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. Redistributio...
1,395
753
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <fcntl.h> #include "utils.h" int main(int argc, char* argv[]) { if (argc < 2) { printf("usage example: http://172.16.0.10:8080/struts2-showcase\n"); return 1; } const char* url = argv[1]; // Scratch buffers for bu...
950
9,402
/* libunwind - a platform-independent unwind library This file is part of libunwind. 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 t...
4,360
763
<gh_stars>100-1000 package org.batfish.common.topology; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableSortedSet; imp...
915
609
<gh_stars>100-1000 /* * File: gns.h todo: change to gnssrv.h * * * */ // rtl #include <types.h> #include <sys/types.h> #include <sys/cdefs.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <sys/socket.h> // gnssrv #include <vk.h> // rtl #include <net/if_arp.h> #include <netinet/u...
248
589
package rocks.inspectit.shared.all.indexing.restriction; import java.util.List; import rocks.inspectit.shared.all.indexing.IIndexQuery; /** * Interface that defines the restriction behavior for indexing query when searching for objects in * the indexing tree. Restrictions are part of the {@link IIndexQuery} and al...
400
470
/* * This file is part of the SDWebImage package. * (c) <NAME> <<EMAIL>> * (c) <NAME> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ #import <Foundation/Foundation.h> /** You can use switch case like normal enum. It's also reco...
572
755
/** * @project: Overload * @author: <NAME>. * @licence: MIT */ #include <algorithm> #include "OvEditor/Panels/Console.h" #include "OvEditor/Core/EditorActions.h" #include <OvUI/Widgets/Buttons/Button.h> #include <OvUI/Widgets/Selection/CheckBox.h> #include <OvUI/Widgets/Visual/Separator.h> #include <OvUI/Widgets/Lay...
1,739
1,716
<gh_stars>1000+ // // ASHMasterViewController.h // C-41 // // Created by <NAME> on 12/21/2013. // Copyright (c) 2013 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @class ASHMasterViewModel; @interface ASHMasterViewController : UITableViewController @property (nonatomic, strong) ASHMasterViewModel *vie...
121
1,382
// // iirinterp_crcf_example.c // // This example demonstrates the iirinterp object (IIR interpolator) // interface. // #include <stdio.h> #include <stdlib.h> #include <math.h> #include <getopt.h> #include "liquid.h" #define OUTPUT_FILENAME "iirinterp_crcf_example.m" // print usage/help message void usage() { p...
2,185
1,545
<reponame>pkumar-singh/bookkeeper /* * 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...
446
370
<gh_stars>100-1000 [ "projects/k8s-staging-provider-aws/logs/cloudaudit.googleapis.com%2Factivity", "projects/k8s-staging-provider-aws/logs/cloudbuild" ]
70
1,405
package com.lenovo.lps.sus.control; public enum ai { SUS_CUSTOM_DOWNLOADMANAGER_NOTIFICATION }
44
2,201
/* // Copyright (C) 2021-2022 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 by applicable l...
849
10,225
<filename>integration-tests/spring-di/src/test/java/io/quarkus/it/spring/InjectedSpringBeansResourceTest.java<gh_stars>1000+ package io.quarkus.it.spring; import static io.restassured.RestAssured.when; import static org.hamcrest.Matchers.containsString; import static org.junit.jupiter.api.Assertions.assertNotEquals; ...
1,050
337
<reponame>qussarah/declare<gh_stars>100-1000 import static kotlinApi.KotlinApiKt.*; class C { int foo() { setExtensionProperty("a", 1); return getExtensionProperty("b"); } }
91
1,517
/* * Copyright 2015, Yahoo Inc. * Copyrights licensed under the Apache 2.0 License. * See the accompanying LICENSE file for terms. */ package com.yahoo.squidb.test; import com.yahoo.squidb.sql.CompiledStatement; import com.yahoo.squidb.sql.SqlStatement; import com.yahoo.squidb.utility.Logger; import junit.framewo...
872
348
<filename>docs/data/leg-t2/084/08405113.json {"nom":"Saint-Martin-de-la-Brasque","circ":"5ème circonscription","dpt":"Vaucluse","inscrits":620,"abs":309,"votants":311,"blancs":23,"nuls":7,"exp":281,"res":[{"nuance":"LR","nom":"M. <NAME>","voix":151},{"nuance":"REM","nom":"<NAME>","voix":130}]}
121
498
<filename>00_framework/core/src/main/java/com/bizzan/bitrade/dao/MemberLogDao.java package com.bizzan.bitrade.dao; import org.springframework.data.mongodb.repository.MongoRepository; import com.bizzan.bitrade.entity.MemberLog; public interface MemberLogDao extends MongoRepository<MemberLog,Long> { }
109
633
<filename>src/rars/riscv/instructions/DIVW.java package rars.riscv.instructions; public class DIVW extends ArithmeticW { public DIVW() { super("divw t1,t2,t3", "Division: set t1 to the result of t2/t3 using only the lower 32 bits", "0000001", "100",new DIV()); } }
133
6,989
from prompt_toolkit.eventloop import get_event_loop from prompt_toolkit.history import FileHistory, InMemoryHistory, ThreadedHistory def _call_history_load(history): """ Helper: Call the history "load" method and return the result as a list of strings. """ result = [] async def call_load(): ...
1,036
634
/* * Copyright 2013-2018 consulo.io * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
1,823
8,772
<reponame>davidmc24/cas package org.apereo.cas.configuration; import org.apereo.cas.configuration.model.core.authentication.AuthenticationProperties; import org.apereo.cas.configuration.model.support.ldap.LdapAuthenticationProperties; import com.fasterxml.jackson.databind.ser.impl.SimpleBeanPropertyFilter; import com...
1,516
763
<gh_stars>100-1000 package org.batfish.datamodel.routing_policy.communities; import static com.google.common.base.Preconditions.checkArgument; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import javax.annotation.Nonnull; import javax.annotation.Nullable; i...
864
1,576
<reponame>embix/WindowsInternals // IoPriorityDlg.cpp : implementation file // #include "stdafx.h" #include "IoPriority.h" #include "IoPriorityDlg.h" #include "afxdialogex.h" #ifdef _DEBUG #define new DEBUG_NEW #endif // CAboutDlg dialog used for App About class CAboutDlg : public CDialogEx { public: CAboutDlg()...
2,569
369
<reponame>GravisZro/MuditaOS // Copyright (c) 2017-2022, Mudit<NAME>. All rights reserved. // For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md #pragma once #include <module-utils/EventStore/EventStore.hpp> #include <utf8/UTF8.hpp> #include <Temperature.hpp> #include <time/dateCommon.hpp> #include <ch...
986
963
package com.vladmihalcea.book.hpjp.hibernate.multitenancy; import org.hibernate.context.spi.CurrentTenantIdentifierResolver; /** * @author <NAME> */ public class TenantContext { public static final String DEFAULT_TENANT_IDENTIFIER = "public"; private static final ThreadLocal<String> TENANT_IDENTIFIER = ne...
383
1,428
#First we will use open function to open a file and it returns a file object. #File objects contain methods and attribute to collect information of the file opened.Also the mode of the file should also be defined during opening. #There are four modes - r,w,a,r+. #file_object = open("filename", mode) #print(f) #<...
539
3,603
<reponame>asantoz/trino<filename>core/trino-main/src/test/java/io/trino/spiller/TestAesSpillCipher.java /* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/lic...
1,298
844
{ "github-username": "ashish-devv", "favourite-emoji": "💪", "favourite-music": "https://soundcloud.com/mittermaniac/kun-faya-kun-full-song", "favourite-color": "#6002EE" }
87
6,992
<gh_stars>1000+ /* * Copyright 2002-2020 the original author or 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unle...
405
1,863
// // 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 conditions and the following disclaimer. // * Redistributions in bin...
2,249
985
<filename>ld/src/ld/passes/thread_starts.cpp /* -*- mode: C++; c-basic-offset: 4; tab-width: 4 -*- * * Copyright (c) 2009 Apple Inc. All rights reserved. * * @APPLE_LICENSE_HEADER_START@ * * This file contains Original Code and/or Modifications of Original Code * as defined in and that are subject to the Apple P...
4,683
382
package rpc.turbo.invoke; import java.lang.reflect.Method; import java.util.stream.Collectors; import java.util.stream.Stream; import com.google.common.base.Strings; import rpc.turbo.annotation.TurboService; public interface InvokerUtils { /** * * @param group * 不能包含# / * @param app * ...
1,936
2,759
<reponame>polarweasel/yugabyte-db // Copyright (c) YugaByte, 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...
762
807
<reponame>weltonrodrigo/origin """ASN.1 tagging.""" from ct.crypto import error UNIVERSAL = 0x00 APPLICATION = 0x40 CONTEXT_SPECIFIC = 0x80 PRIVATE = 0xc0 PRIMITIVE = 0x00 CONSTRUCTED = 0x20 # Constants for better readability. IMPLICIT, EXPLICIT = range(2) class Tag(object): """An ASN.1 tag.""" _CLASS_MAS...
2,069
310
<gh_stars>100-1000 { "name": "Contentful", "description": "A content management service.", "url": "https://www.contentful.com/" }
47