max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
10,786
<reponame>subshine/tutorials<gh_stars>1000+ # View more python tutorials on my Youtube and Youku channel!!! # Youtube video tutorial: https://www.youtube.com/channel/UCdyjiB5H8Pu7aDTNVXTTpcg # Youku video tutorial: http://i.youku.com/pythontutorial """ Please note, this code is only for python 3+. If you are using py...
279
493
<filename>case-server/src/main/java/com/xiaoju/framework/entity/persistent/Biz.java<gh_stars>100-1000 package com.xiaoju.framework.entity.persistent; import lombok.Data; import java.util.Date; /** * 文件夹 * * 一个业务线有一条自己的文件夹数据,这里采用json去存储 * * @author didi * @date 2020/09/09 */ @Data public class Biz { /** ...
334
349
/******************************************************************************* * Copyright 2011, 2012, 2013 fanfou.com, Xiaoke, Zhang * * 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 *...
2,035
1,233
<filename>mantis-control-plane/mantis-control-plane-server/src/main/java/io/mantisrx/master/api/akka/route/v0/JobRoute.java<gh_stars>1000+ /* * Copyright 2019 Netflix, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You m...
11,576
342
<gh_stars>100-1000 # coding=utf-8 true, false = True, False MAIN_TOKENS = { 'SENT': { 'name': 'SENTinel', 'address': '0xa44e5137293e855b1b7bc7e2c6f8cd796ffcb037'.lower(), 'abi': [{"constant": true, "inputs": [], "name": "name", "outputs": [{"name": "", "type": "string"}], "p...
12,312
335
<filename>src/openmpt/sounddevice/SoundDeviceASIO.hpp /* SPDX-License-Identifier: BSD-3-Clause */ /* SPDX-FileCopyrightText: <NAME> */ /* SPDX-FileCopyrightText: OpenMPT Project Developers and Contributors */ #pragma once #include "openmpt/all/BuildSettings.hpp" #ifdef MPT_WITH_ASIO #include "SoundDevice.hpp" #inc...
2,246
1,144
<reponame>dram/metasfresh<gh_stars>1000+ package de.metas.inoutcandidate.spi; /* * #%L * de.metas.swat.base * %% * Copyright (C) 2015 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...
486
852
<filename>CommonTools/BaseParticlePropagator/src/RawParticle.cc // ----------------------------------------------------------------------------- // Prototype for a particle class // ----------------------------------------------------------------------------- // $Date: 2007/09/07 16:46:22 $ // $Revision: 1.13 $ // -...
1,148
421
<reponame>hamarb123/dotnet-api-docs #using <System.dll> #using <System.Windows.Forms.dll> #using <System.Drawing.dll> using namespace System; using namespace System::Drawing; using namespace System::Windows::Forms; using namespace System::Security::Permissions; public ref class Form1: public Form { protect...
363
775
<filename>micropolis/micropolis-activity/src/tclx/src/tclxid.c /* * tclXid.c -- * * Tcl commands to access getuid, setuid, getgid, setgid and friends. *--------------------------------------------------------------------------- * Copyright 1992 <NAME> and <NAME>. * * Permission to use, copy, modify, and distribu...
4,844
1,444
package mage.target.common; import mage.filter.common.FilterAttackingCreature; import mage.target.TargetPermanent; /** * * @author <EMAIL> */ public class TargetAttackingCreature extends TargetPermanent { public TargetAttackingCreature() { this(1, 1, new FilterAttackingCreature(), false); } ...
311
14,668
// Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "third_party/blink/renderer/core/layout/layout_video.h" #include "third_party/blink/renderer/core/testing/core_unit_test_helper.h" namespace bl...
546
425
{ "$schema": "https://raw.githubusercontent.com/NateScarlet/holiday-cn/master/schema.json", "$id": "https://raw.githubusercontent.com/NateScarlet/holiday-cn/master/2022.json", "year": 2022, "papers": [], "days": [] }
96
549
<filename>19_pytorch_textsnake/lib/train_complete.py import os import time from datetime import datetime import torch import torch.nn as nn import torch.backends.cudnn as cudnn import torch.utils.data as data from torch.optim import lr_scheduler from util.shedule import FixLR from dataset.total_text import TotalText,...
4,097
2,061
from macropy.core.test.macros.line_number_macro import macros, expand def run(x, throw): with expand: x = x + 1 if throw: raise Exception("lol") return x
77
739
/** * @file * @brief Forward header for <tt>coveo/linq/linq.h</tt>. * * @copyright 2016-2019, Coveo Solutions Inc. * Distributed under the Apache License, Version 2.0 (see <a href="https://github.com/coveo/linq/blob/master/LICENSE">LICENSE</a>). */ #ifndef COVEO_LINQ_FWD_H #define COVEO_LINQ_FWD_H #i...
172
921
<reponame>narumiruna/alembic //-***************************************************************************** // // Copyright (c) 2009-2011, // <NAME>, Inc. and // Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. // // All rights reserved. // // Redistribution and use in source and binary ...
2,915
1,144
package org.adempiere.ui.editor; /* * #%L * de.metas.adempiere.adempiere.base * %% * Copyright (C) 2015 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 ...
560
4,857
/** * 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...
2,161
305
<filename>books/kestrel/java/aij/java/src/edu/kestrel/acl2/aij/Acl2Ratio.java /* * Copyright (C) 2020 Kestrel Institute (http://www.kestrel.edu) * License: A 3-clause BSD license. See the LICENSE file distributed with ACL2. * Author: <NAME> (<EMAIL>) */ package edu.kestrel.acl2.aij; /** * Representation of ACL2 ...
1,801
653
<filename>itstack-naive-chat-server/itstack-naive-chat-server-ddd/src/main/java/org/itstack/naive/chat/Application.java package org.itstack.naive.chat; import io.netty.channel.Channel; import org.itstack.naive.chat.application.UserService; import org.itstack.naive.chat.socket.NettyServer; import org.slf4j.Logger; impo...
819
1,444
package mage.view; import mage.counters.Counter; import java.io.Serializable; /** * @author <EMAIL> */ public class CounterView implements Serializable { private static final long serialVersionUID = 1L; private String name; private int count; public CounterView(Counter counter) { this.nam...
465
66,985
<filename>spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-bootstrap-registry/src/main/java/smoketest/bootstrapregistry/app/SampleBootstrapRegistryApplication.java /* * Copyright 2012-2021 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may n...
423
2,082
<reponame>alairice/doccano<gh_stars>1000+ from django.core.exceptions import ValidationError from django.test import TestCase from model_mommy import mommy from projects.models import SEQUENCE_LABELING from projects.tests.utils import prepare_project class TestRelationLabeling(TestCase): @classmethod def set...
665
2,150
<reponame>cihuang123/pyrobot from pyrobot import Robot import os import open3d # Please change this to match your habitat_sim repo's path path_to_habitat_scene = os.path.dirname(os.path.realpath(__file__)) relative_path = "scenes/skokloster-castle.glb" common_config = dict(scene_path=os.path.join(path_to_habitat_sc...
293
1,056
<reponame>timfel/netbeans /* * 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....
7,307
695
<filename>src/test/pythonFiles/typeFormatFiles/elseBlocksFirstLine2.py if True == True: a = 2 b = 3 else:
41
778
package org.aion.zero.impl.precompiled.contracts.ATB; import static com.google.common.truth.Truth.assertThat; import static org.aion.zero.impl.precompiled.contracts.ATB.BridgeTestUtils.dummyContext; import java.util.List; import org.aion.crypto.HashUtil; import org.aion.precompiled.contracts.ATB.BridgeController; imp...
1,336
1,602
//==-- llvm/Support/CheckedArithmetic.h - Safe arithmetical operations *- C++ // // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
1,337
345
<filename>test/programytest/storage/entities/test_duplicates.py import unittest import unittest.mock from programy.storage.entities.duplicates import DuplicatesStore class DuplicatesStoreTests(unittest.TestCase): def test_save_duplicates(self): store = DuplicatesStore() with self.assertRaises(No...
168
5,133
<reponame>Saljack/mapstruct /* * Copyright MapStruct Authors. * * Licensed under the Apache License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0 */ package org.mapstruct; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; ...
672
2,831
#pragma once #include "../common/config.h" namespace co { struct StackTraits { static stack_malloc_fn_t& MallocFunc(); static stack_free_fn_t& FreeFunc(); static int & GetProtectStackPageSize(); static bool ProtectStack(void* stack, std::size_t size, int pageSize); static void UnprotectStack(v...
326
2,453
<gh_stars>1000+ // // Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 30 2020 21:18:12). // // Copyright (C) 1997-2019 <NAME>. // #import <objc/NSObject.h> @class MISSING_TYPE; @protocol IDETestReport_Device; @interface _TtC6IDEKit26IDETestReportDeviceSummary : NSObject { MISSING_TYPE *devi...
257
310
{ "name": "Ai", "description": "A media server.", "url": "http://www.avolites.com/ai-features" }
42
1,738
<gh_stars>1000+ /* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software is governed by the License, * or, if provided, by the li...
600
642
<gh_stars>100-1000 import netCDF4 # OPeNDAP. url = 'http://geoport-dev.whoi.edu/thredds/dodsC/estofs/atlantic' with netCDF4.Dataset(url) as nc: # Compiled with cython. assert nc.filepath() == url url = 'http://geoport.whoi.edu/thredds/dodsC/usgs/vault0/models/tides/vdatum_gulf_of_maine/adcirc54_38_orig.nc' ...
185
1,428
package kik; public class May { public static void main(String[] args) { int []arrayku = {2,4,5,21,4,6,1,88}; int i,j,k,psskecil,numkecil; for(i=0 ; i < arrayku.length ; i++) { numkecil = arrayku[i]; psskecil = i; for(j=i ; j<arrayku.length ; j++) { if(arrayku[j] < numkecil) { numkecil = array...
292
2,268
<reponame>joshmartel/source-sdk-2013 //========= Copyright Valve Corporation, All rights reserved. ============// // // Purpose: // // $NoKeywords: $ // //=============================================================================// #include "server_class.h" // memdbgon must be the last include file in a .cpp file...
115
341
package dev.morphia.aggregation.experimental.codecs; import dev.morphia.aggregation.experimental.codecs.stages.AddFieldsCodec; import dev.morphia.aggregation.experimental.codecs.stages.AutoBucketCodec; import dev.morphia.aggregation.experimental.codecs.stages.BucketCodec; import dev.morphia.aggregation.experimental.co...
2,631
360
import abc from typing import Tuple domain_context_registry = {} class DomainContext(abc.ABC): class __metaclass__(type): def __init__(cls, name, b, d): type.__init__(cls, name, b, d) domain_context_registry[name] = cls _known_fluid_fields: Tuple[Tuple[str, str], ...] _kn...
192
1,016
/** * */ package com.thinkbiganalytics.metadata.sla.spi.core; /*- * #%L * thinkbig-sla-core * %% * 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 copy of the Lic...
2,194
17,318
/* * Copyright (c) 2011-2018, <NAME>. All Rights Reserved. * * 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 t...
690
420
<reponame>RetroFlix/retroflix.repo<gh_stars>100-1000 # -*- coding: UTF-8 -*- # # Copyright (C) 2020, <NAME> # # 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 3 of the License, or ...
707
1,418
package aima.core.logic.planning; import aima.core.logic.fol.kb.data.Literal; import java.util.*; /** * Artificial Intelligence A Modern Approach (3rd Edition): Figure 10.9 page * 383.<br> * <br> * * <pre> * * function GRAPHPLAN(problem) returns solution or failure * *  graph ← INITIAL-PLANNING-GRAPH(proble...
5,015
3,083
// Copyright 2011-2016 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by appli...
4,414
11,356
// (C) Copyright 2008 CodeRage, LLC (turkanis at coderage dot com) // (C) Copyright 2004-2007 <NAME> // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt.) // See http://www.boost.org/libs/iostreams for documentation. #...
1,647
348
{"nom":"Crossac","circ":"7ème circonscription","dpt":"Loire-Atlantique","inscrits":2118,"abs":1288,"votants":830,"blancs":58,"nuls":55,"exp":717,"res":[{"nuance":"REM","nom":"<NAME>","voix":491},{"nuance":"LR","nom":"<NAME>","voix":226}]}
94
485
<reponame>lupyuen/evm<gh_stars>100-1000 #ifdef CONFIG_EVM_MODULE_HTTP #include "evm_module.h" #include <rtthread.h> #include "webclient.h" #define HTTP_HEADER_SIZE (1024) #define HTTP_RECV_MAX_SIZE (10 * 1024) //request.abort() static evm_val_t evm_module_http_request_abort(evm_t *e, evm_val_t *p, int argc, evm_val_t...
2,982
435
<reponame>amaajemyfren/data { "alias": "video/1964/sunpy-python-for-solar-physicists-0", "category": "SciPy 2013", "copyright_text": "https://www.youtube.com/t/terms", "description": "Authors: Mumford, Stuart, University of Sheffield / SunPy\n\nTrack: Astronomy and Astrophysics\n\nModern solar physicists have, ...
836
373
<reponame>PegasusEpsilon/Barony /*------------------------------------------------------------------------------- BARONY File: paths.hpp Desc: paths.cpp header file Copyright 2013-2016 (c) Turning Wheel LLC, all rights reserved. See LICENSE for details. ----------------------------------------------------------...
203
562
<reponame>Diastro/azure-resource-manager-schemas { "id": "https://schema.management.azure.com/schemas/2015-06-15/Microsoft.Storage.json#", "$schema": "http://json-schema.org/draft-04/schema#", "title": "Microsoft.Storage", "description": "Microsoft Storage Resource Types", "resourceDefinitions": { "storag...
1,612
2,151
<filename>api/audio_codecs/audio_encoder.cc<gh_stars>1000+ /* * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights...
1,198
3,673
#include <os.hpp> #include <util/bitops.hpp> #include <util/units.hpp> #include <kernel.hpp> using namespace util::literals; size_t brk_bytes_used(); size_t mmap_bytes_used(); size_t mmap_allocation_end(); size_t kernel::heap_usage() noexcept { return brk_bytes_used() + mmap_bytes_used(); } size_t kernel::heap...
575
823
// // CommunityCommentListAPI.h // MierMilitaryNews // // Created by 李响 on 2016/11/1. // Copyright © 2016年 miercn. All rights reserved. // #import "BaseBlockAPI.h" #import "CommunityCommentModel.h" @interface CommunityCommentListAPI : BaseBlockAPI //加载列表 - (void)loadCommentListDataWithID:(NSString *)postId Cir...
216
427
#!/usr/bin/python import cmd import dict_utils import file_extract import optparse import re import struct import string import StringIO import sys import uuid # Mach header "magic" constants MH_MAGIC = 0xfeedface MH_CIGAM = 0xcefaedfe MH_MAGIC_64 = 0xfeedfacf MH_CIGAM_64 = 0xcffaedfe FAT_MAGIC = 0xcafebabe FAT_CIGAM...
39,288
778
package org.aion.zero.impl.sync.msg; import static com.google.common.truth.Truth.assertThat; import static org.aion.zero.impl.sync.DatabaseType.DETAILS; import static org.aion.zero.impl.sync.DatabaseType.STATE; import static org.aion.zero.impl.sync.DatabaseType.STORAGE; import static org.aion.zero.impl.sync.msg.Reques...
11,607
370
<reponame>gabrielfougeron/SuiteSparse /* ========================================================================== */ /* === Source/Mongoose_QPDelta.cpp ========================================== */ /* ========================================================================== */ /* -----------------------------------...
1,300
648
{"resourceType":"ValueSet","id":"claim-type-link","meta":{"lastUpdated":"2015-10-24T07:41:03.495+11:00","profile":["http://hl7.org/fhir/StructureDefinition/valueset-shareable-definition"]},"text":{"status":"generated","div":"<div xmlns=\"http://www.w3.org/1999/xhtml\">\n <h2>ClaimType</h2>\n <p>Th...
1,739
19,438
<filename>Tests/AK/TestFixedArray.cpp /* * Copyright (c) 2018-2021, <NAME> <<EMAIL>> * * SPDX-License-Identifier: BSD-2-Clause */ #include <LibTest/TestSuite.h> #include <AK/FixedArray.h> #include <AK/String.h> TEST_CASE(construct) { EXPECT(FixedArray<int>().size() == 0); } TEST_CASE(ints) { FixedArray<...
261
3,494
<reponame>rsh/Cinder-Emscripten<filename>test/_audio/ParamTest/src/ParamTestApp.cpp #include "cinder/app/App.h" #include "cinder/app/RendererGl.h" #include "cinder/Rand.h" #include "cinder/Timeline.h" #include "cinder/CinderAssert.h" #include "cinder/Log.h" #include "cinder/audio/Context.h" #include "cinder/au...
4,875
1,537
<gh_stars>1000+ /**************************************************************************** * * Copyright (c) 2021 PX4 Development Team. 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,206
407
<gh_stars>100-1000 package com.alibaba.tesla.appmanager.server.dynamicscript.handler; import com.alibaba.tesla.appmanager.dynamicscript.core.GroovyHandler; public interface TraitHandler extends GroovyHandler { }
70
311
/** * Copyright 2019 The JoyQueue Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or...
1,622
480
<gh_stars>100-1000 /* * Copyright [2013-2021], Alibaba Group Holding Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unl...
1,538
11,356
<reponame>shreyasvj25/turicreate<gh_stars>1000+ // Boost string_algo library predicate.hpp header file ---------------------------// // Copyright <NAME> 2002-2003. // // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.or...
7,656
570
<reponame>langston-barrett/souffle /* * Souffle - A Datalog Compiler * Copyright (c) 2020, The Souffle Developers. All rights reserved. * Licensed under the Universal Permissive License v 1.0 as shown at: * - https://opensource.org/licenses/UPL * - <souffle root>/licenses/SOUFFLE-UPL.txt */ /********************...
545
9,782
<reponame>sreekanth370/presto<gh_stars>1000+ /* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law o...
1,535
460
/* Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your opti...
730
5,856
<filename>voltron/plugins/view/command.py import logging import pygments from pygments.lexers import get_lexer_by_name from voltron.view import * from voltron.plugin import * from voltron.api import * log = logging.getLogger('view') class CommandView (TerminalView): @classmethod def configure_subparser(cls...
873
337
package com.edotassi.amazmod.event; import com.huami.watch.transport.DataBundle; import amazmod.com.transport.data.BatteryData; public class BatteryStatus { private BatteryData batteryData; public BatteryStatus(DataBundle dataBundle) { batteryData = BatteryData.fromDataBundle(dataBundle); } ...
138
2,904
<reponame>EgorKraevTransferwise/dowhy<filename>dowhy/causal_identifiers/id_identifier.py import numpy as np import pandas as pd import networkx as nx from dowhy.utils.ordered_set import OrderedSet from dowhy.utils.graph_operations import find_c_components, induced_graph, find_ancestor from dowhy.causal_identifier impor...
4,943
368
<reponame>AlexRogalskiy/serendipity package org.serendipity.party.model; import lombok.*; import org.springframework.hateoas.RepresentationModel; @Builder @AllArgsConstructor @NoArgsConstructor @Setter @Getter public class AddressModel extends RepresentationModel<AddressModel> { private Long id; private Location...
272
1,444
package mage.cards.d; import java.util.UUID; import mage.MageInt; import mage.abilities.Ability; import mage.abilities.effects.common.ReturnFromGraveyardToHandTargetEffect; import mage.abilities.keyword.BoastAbility; import mage.constants.SubType; import mage.cards.CardImpl; import mage.cards.CardSetInfo; import mage....
506
19,046
/* * 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...
4,418
407
package com.alibaba.smart.framework.engine.common.expression.evaluator; import java.util.Map; /** * Created by 高海军 帝奇 74394 on 2017 February 22:17. */ public class CustomExpressionEvaluator implements ExpressionEvaluator { @Override public Object eval(String expression, Map<String, Object> vars,boolean nee...
128
334
/* * This file is part of Sponge, licensed under the MIT License (MIT). * * Copyright (c) SpongePowered <https://www.spongepowered.org> * Copyright (c) contributors * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Softwar...
989
389
<gh_stars>100-1000 // // QSBlocks.h // Q Branch Standard Kit // // Created by <NAME> on 10/22/13. // Copyright (c) 2013 Q Branch LLC. All rights reserved. // @import Foundation; #import "QSPlatform.h" typedef void (^QSVoidBlock)(void); typedef QSVoidBlock QSVoidCompletionBlock; typedef BOOL (^QSBoolBlock)(void...
339
832
<reponame>tmexcept/android-lite-http package com.litesuits.http.exception.handler; import com.litesuits.http.data.HttpStatus; import com.litesuits.http.exception.*; /** * Handle Response on UI Thread * * @author MaTianyu * 2014-2-26下午9:02:09 */ public abstract class HttpExceptionHandler { public Htt...
966
1,433
//****************************************************************** // // Copyright 2015 Samsung Electronics All Rights Reserved. // //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance...
10,511
1,056
<filename>java/maven.model/src/org/netbeans/modules/maven/model/settings/impl/SettingsImpl.java /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The...
5,510
493
<reponame>SiddGururani/MUSI8903_Assignment_2 #ifndef UNITTEST_COMPOSITETESTREPORTER_H #define UNITTEST_COMPOSITETESTREPORTER_H #include "TestReporter.h" namespace UnitTest { class UNITTEST_LINKAGE CompositeTestReporter : public TestReporter { public: CompositeTestReporter(); int GetReporterCount() const; b...
325
5,349
#!/usr/bin/env python3 -u # -*- coding: utf-8 -*- # copyright: sktime developers, BSD-3-Clause License (see LICENSE file) """Implements transformers raise time series to user provided exponent.""" __author__ = ["<NAME>"] __all__ = ["ExponentTransformer", "SqrtTransformer"] import numpy as np import pandas as pd from...
3,237
432
<gh_stars>100-1000 package us.parr.bookish.model; public class LineBreak extends OutputModelObject { }
34
331
/* * Author <NAME> * GitHub https://github.com/rurtle * * Description Given a list with consecutive duplicates, remove those * duplicate characters and put them in a separate list. * Linked list based implementation for efficient storage space * utilization. * * Note Spaces need to be replaced with conn...
857
575
// Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef GPU_COMMAND_BUFFER_SERVICE_SURFACE_TEXTURE_GL_OWNER_H_ #define GPU_COMMAND_BUFFER_SERVICE_SURFACE_TEXTURE_GL_OWNER_H_ #include "base/threading/th...
964
826
package io.eventuate.examples.tram.sagas.ordersandcustomers.orders.domain; public enum OrderState { PENDING, APPROVED, REJECTED }
45
3,442
/* * Jitsi, the OpenSource Java VoIP and Instant Messaging client. * * Copyright @ 2015 Atlassian Pty 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.or...
893
487
<gh_stars>100-1000 import os import sys import glob import imagestoosm.config as osmcfg import xml.etree.ElementTree as ET import QuadKey.quadkey as quadkey import shapely.geometry as geometry import matplotlib.pyplot as plt import skimage.io import shutil def _find_getch(): try: import termios except ...
2,821
777
<reponame>kjthegod/chromium // 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. #include "chrome/browser/chromeos/file_manager/file_manager_jstest_base.h" #include <vector> #include "base/path_service.h" #...
451
2,863
<filename>spock-core/src/main/java/org/spockframework/mock/WrongInvocationOrderError.java<gh_stars>1000+ /* * Copyright 2010 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...
1,085
973
<reponame>bcaglayan/pcap4j /*_########################################################################## _## _## Copyright (C) 2014-2016 Pcap4J.org _## _########################################################################## */ package org.pcap4j; import com.sun.jna.Platform; import org.pcap4j.util.Prope...
1,305
438
{ "DESCRIPTION": "Antwortet mit einer zufälligen Zahl.", "USAGE": "zufällig <LowNum> <HighNum>", "RESPONSE": "🎲 Zufällige Zahl: {{NUMBER}}" }
72
10,225
<reponame>sixdouglas/quarkus package io.quarkus.resteasy.reactive.common.runtime; import java.util.List; import java.util.Optional; import io.quarkus.runtime.annotations.ConfigItem; import io.quarkus.runtime.annotations.ConfigPhase; import io.quarkus.runtime.annotations.ConfigRoot; /** * @author <NAME>, <EMAIL> */...
365
308
<filename>src/conftest.py import pytest from sqlalchemy import create_engine from sqlalchemy.orm import Session from seedwork.infrastructure.database import Base from config.api_config import ApiConfig @pytest.fixture def db_session(): config = ApiConfig() engine = create_engine(config.DATABASE_URL, echo=con...
175
769
#pragma once #include "platform.h" #include "JniWorker.h" #include "util/asyncWorker.h" #include <jni.h> #include <android/asset_manager.h> #include <atomic> #include <mutex> #include <string> #include <unordered_map> #include <vector> namespace Tangram { struct LabelPickResult; struct FeaturePickResult; struct Mar...
551
666
<gh_stars>100-1000 import sys sys.path.append("../../") corpora = ['a', 'b', 'c', 'd', 'e'] from appJar import gui def update_corpora(value): if value is "add_corpus": name = app.entry("corpus_name") corpora.append(app.entry("corpus_name")) app.option("corpora", value=corpora, mode='repl...
385
4,772
package example.repo; import example.model.Customer545; import java.util.List; import org.springframework.data.repository.CrudRepository; public interface Customer545Repository extends CrudRepository<Customer545, Long> { List<Customer545> findByLastName(String lastName); }
83
3,589
<gh_stars>1000+ # list a = [ x + 1 for x in range(3) ] # dict b = { x: x + 1 for x in range(3) } # generator c = ( x * x for x in range(3) ) # set d = { x + x for x in range(3) } # other styles e = [ x + 1 for x in range(3) ]
134
32,544
package com.baeldung.performancetests.model.source; import com.googlecode.jmapper.annotations.JGlobalMap; import com.googlecode.jmapper.annotations.JMapAccessor; import java.util.List; public class RefundPolicy { @JMapAccessor(get = "isRefundable", set = "setRefundable") private boolean isRefundable; pri...
451
9,425
import pytest import salt.states.mac_xattr as xattr from tests.support.mock import MagicMock, patch @pytest.fixture def configure_loader_modules(): return {xattr: {}} def test_exists_not(): """ Test adding an attribute when it doesn't exist """ with patch("os.path.exists") as exists_mock: ...
2,030