max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
784
<filename>src/main/java/io/jboot/test/junit5/JbootExtension.java /** * Copyright (c) 2015-2021, <NAME> 杨福海 (<EMAIL>). * <p> * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * <p> * http:/...
627
372
<gh_stars>100-1000 /* Editor Settings: expandtabs and use 4 spaces for indentation * ex: set softtabstop=4 tabstop=8 expandtab shiftwidth=4: * */ /* * Copyright © BeyondTrust Software 2004 - 2019 * All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this fi...
5,508
14,668
// Copyright 2020 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 CHROME_BROWSER_UI_VIEWS_CHROME_BROWSER_MAIN_EXTRA_PARTS_VIEWS_LACROS_H_ #define CHROME_BROWSER_UI_VIEWS_CHROME_BROWSER_MAIN_EXTRA_PARTS_VIEWS_LACR...
452
6,992
/* * Copyright 2002-2021 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 * * Unless required by a...
1,334
1,720
#pragma once #include "Stream.h" #include <vector> typedef struct _chd_file chd_file; typedef struct _core_file core_file; class CChdImageStream : public Framework::CStream { public: CChdImageStream(Framework::CStream* baseStream); ~CChdImageStream(); virtual void Seek(int64 pos, Framework::STREAM_SEEK_DIRECTION...
299
725
<gh_stars>100-1000 /* Part of SWI-Prolog Author: <NAME> E-mail: <EMAIL> WWW: http://www.swi-prolog.org Copyright (c) 2019-2020, University of Amsterdam VU University Amsterdam CWI, Amsterdam All rights reserved. Redistribution and use in source and b...
1,817
428
class __declspec(dllimport) start { };
14
789
<gh_stars>100-1000 # generate_transfer_configs.py # Desc: # Generates a config file that can be used for transferring task representations # Usage: # python generate_transfer_configs.py -h import argparse import os import shutil import subprocess import sys parser = argparse.ArgumentParser(description='Extract re...
3,432
575
<reponame>iridium-browser/iridium-browser // Copyright 2021 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/gtk/wayland/gtk_ui_delegate_wayland_base.h" #include <gtk/gtk.h> #include "base/bind.h" #include ...
1,184
457
<filename>rewrite-java/src/main/java/org/openrewrite/java/cleanup/NoEqualityInForCondition.java /* * Copyright 2021 the original author or authors. * <p> * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of t...
1,382
343
# ============== # toke_inspector # ============== # # Here we pick the vals out of the tokens # and set its attributes appropriately from math import ldexp import re def Toke_Int(toke): toke.val = int(toke.lexeme) def Toke_Float(toke): toke.val = float(toke.lexeme) def Toke_Carrots(toke): toke.val =...
1,035
706
<reponame>google/private-join-and-compute<filename>private_join_and_compute/util/status_macros.h /* * Copyright 2019 Google LLC. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * ht...
1,563
2,313
/* * Copyright (c) 2021 Arm Limited. * * SPDX-License-Identifier: MIT * * 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 ...
10,724
1,651
<filename>Solutions/Solutions_ObjC/Medium/ObjC_Medium_001_Two_Sum.h #import <Foundation/Foundation.h> @interface ObjC_Medium_001_Two_Sum : NSObject + (nonnull NSArray<NSNumber *> *)twoSum:(nonnull NSArray<NSNumber *> *)numbers target:(NSInteger)target; @end
96
32,544
<gh_stars>1000+ package com.baeldung.undeclared; import org.junit.Test; import java.lang.reflect.InvocationHandler; import java.lang.reflect.Method; import java.lang.reflect.Proxy; import java.lang.reflect.UndeclaredThrowableException; import java.util.List; import static org.assertj.core.api.Assertions.assertThatTh...
637
1,142
<reponame>bernssolg/pyntcloud-master<filename>pyntcloud/ransac/samplers.py import numpy as np from abc import ABC, abstractmethod from ..structures import VoxelGrid class RansacSampler(ABC): """ Base class for ransac samplers. Parameters ---------- points : ndarray (N, M) ndarray where N is ...
1,287
32,544
package com.baeldung.array.conversions; import java.util.Arrays; import java.util.function.IntFunction; import java.util.stream.IntStream; import java.util.stream.Stream; public class StreamArrayConversion { public static String[] stringStreamToStringArrayUsingFunctionalInterface(Stream<String> stringStream) { ...
608
3,189
<reponame>izinga/bluepill<filename>bp/src/PrivateHeaders/XCTest/XCTMeasureOptions.h // // Generated by class-dump 3.5 (64 bit) (Debug version compiled May 11 2021 09:30:43). // // Copyright (C) 1997-2019 <NAME>. // #import <objc/NSObject.h> @class NSArray, NSDictionary, NSString; @interface XCTMeasureOptions : ...
797
7,018
<filename>core/include/core/engine.h<gh_stars>1000+ /* * * Tencent is pleased to support the open source community by making * Hippy available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. * All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use...
708
925
<reponame>ta2edchimp/big-rig # 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. import atexit import telemetry.internal.platform.power_monitor as power_monitor def _ReenableChargingIfNeeded(battery): if ...
470
822
<filename>app/drivers/sensor/battery/battery_common.c /* * Copyright (c) 2021 The ZMK Contributors * * SPDX-License-Identifier: MIT */ #include <errno.h> #include <drivers/sensor.h> #include "battery_common.h" int battery_channel_get(const struct battery_value *value, enum sensor_channel chan, ...
492
777
<filename>third_party/WebKit/Source/core/loader/FrameLoadRequest.cpp // Copyright 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "core/loader/FrameLoadRequest.h" #include "platform/network/ResourceRequest...
1,435
401
<gh_stars>100-1000 /* * Hedgewars for Android. An Android port of Hedgewars, a free turn based strategy game * Copyright (c) 2011-2012 <NAME> <<EMAIL>> * * 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 Softwar...
2,091
631
<reponame>Dianpeng-Wang/kinect-1 /***************************************************************************** * * * OpenNI 1.x Alpha * * Copyright (C) 2012 PrimeSense Ltd. ...
1,754
2,293
<reponame>arvindm95/unladen-swallow<filename>Mac/Demo/quicktime/VerySimplePlayer.py """VerySimplePlayer converted to python <NAME>, CWI, December 1995 """ from Carbon import Qt from Carbon import QuickTime from Carbon import Qd from Carbon import QuickDraw from Carbon import Evt from Carbon import Events from Carbon ...
1,245
334
<gh_stars>100-1000 # -*- coding: utf-8 -*- # Copyright (c) 2015 Ericsson AB # # 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 requ...
8,424
13,885
// Wrapper for including googletest indirectly. Useful when the location of the // googletest sources must change depending on build environment and repository // source location. #ifndef DRACO_CORE_DRACO_TEST_BASE_H_ #define DRACO_CORE_DRACO_TEST_BASE_H_ static bool FLAGS_update_golden_files; #include "gtest/gtest.h"...
151
310
{ "name": "PiTiVi", "description": "An open-source video editor.", "url": "http://pitivi.org/" }
40
3,096
<reponame>feixueck/cobar /* * Copyright 1999-2012 Alibaba Group. * * 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 ...
1,534
6,238
import uuid import os from .base import Session, SessionEngine from ..utils import json class FilesSessionEngine(SessionEngine): def __init__(self, storage_path: str, cookie_name: str='SESSION_ID'): super().__init__(cookie_name=cookie_name) self.storage_path = storage_path try: ...
617
831
<filename>android/src/org/jetbrains/android/resourceManagers/ValueResourceInfo.java package org.jetbrains.android.resourceManagers; import com.android.ide.common.resources.ResourceItem; import com.android.resources.ResourceType; import com.intellij.openapi.vfs.VirtualFile; import com.intellij.psi.xml.XmlAttributeValue...
244
379
<reponame>cdburns22/quickstart package com.plaid.quickstart.resources; import java.io.IOException; import com.plaid.client.request.PlaidApi; import com.plaid.client.model.AuthGetRequest; import com.plaid.client.model.AuthGetResponse; import com.plaid.quickstart.QuickstartApplication; import javax.ws.rs.GET; import j...
328
930
<filename>overlap2d-common-api/src/com/commons/UIDraggablePanel.java<gh_stars>100-1000 /* * ****************************************************************************** * * Copyright 2015 See AUTHORS file. * * * * Licensed under the Apache License, Version 2.0 (the "License"); * * you may not use this file e...
930
2,151
// Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_VIZ_TEST_MOCK_HELPER_H_ #define COMPONENTS_VIZ_TEST_MOCK_HELPER_H_ #include "testing/gmock/include/gmock/gmock.h" #include "testing/gt...
909
1,417
{ "name": "react-php-v8js", "private": true, "version": "1.0.0", "scripts": { "make": "npm run make-dev && npm run make-min && npm run make-table", "make-dev": "browserify -t [ envify --NODE_ENV development ] src/react-bundle.js > build/react-bundle.js", "make-min": "browserify -t [ envify --NODE_EN...
325
526
<filename>open-metadata-implementation/frameworks/open-connector-framework/src/test/java/org/odpi/openmetadata/frameworks/connectors/properties/TestAssetLocation.java /* SPDX-License-Identifier: Apache-2.0 */ /* Copyright Contributors to the ODPi Egeria project. */ package org.odpi.openmetadata.frameworks.connectors.pr...
2,715
681
// CD_ICON.TIM unsigned short cd_icon[] = { 0x10, 0x0, 0x8, 0x0, 0x2C, 0x0, 0x0, 0x1E0, 0x10, 0x1, 0x741F, 0x28A5, 0x2D09, 0x350E, 0x496D, 0x5A23, 0x1E8E, 0x2ED6, 0x5E52, 0x55EF, 0x498C, 0x3D4A, 0x30E7, 0x28A5, 0x294A, 0x3DEF, 0x20C, 0x0, 0x0, 0x0, 0x8, 0x2...
1,918
7,158
#!/usr/bin/env python # This file is part of OpenCV project. # It is subject to the license terms in the LICENSE file found in the top-level directory # of this distribution and at http://opencv.org/license.html # Copyright (C) 2020 by <NAME> import hdr_parser, sys, re, os from string import Template from pprint imp...
8,486
482
<filename>tests/integration-v1/cattletest/core/test_container.py import json from cattle import ApiError from common import * # NOQA from datetime import timedelta import time def test_container_create_count(client, context): cs = client.create_container(imageUuid=context.image_uuid, ...
7,535
516
// Copyright 2018-2021 Twitter, Inc. // Licensed under the MoPub SDK License Agreement // https://www.mopub.com/legal/sdk-license-agreement/ package com.mopub.common.util; import android.app.Activity; import android.view.View; import android.view.Window; import androidx.annotation.NonNull; import com.mopub.common.P...
1,424
372
<gh_stars>100-1000 /* Editor Settings: expandtabs and use 4 spaces for indentation * ex: set softtabstop=4 tabstop=8 expandtab shiftwidth=4: * */ /* * Copyright © BeyondTrust Software 2004 - 2019 * All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this fi...
2,625
2,221
<reponame>avinashk07/flume /* * 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...
779
1,091
<gh_stars>1000+ /* * Copyright 2016-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 r...
465
312
package org.springframework.aot.factories.fixtures; import org.springframework.core.annotation.Order; @Order(20) public class OrderedFactoryA implements OrderedFactory { }
53
2,231
<filename>com.dynamo.cr/com.dynamo.cr.bob/engine_version_generator.py #!/usr/bin/env python # Copyright 2020 The Defold Foundation # Licensed under the Defold License version 1.0 (the "License"); you may not use # this file except in compliance with the License. # # You may obtain a copy of the License, together with ...
646
777
<filename>ash/common/shelf/shelf_controller.h // 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 ASH_COMMON_SHELF_SHELF_CONTROLLER_H_ #define ASH_COMMON_SHELF_SHELF_CONTROLLER_H_ #include <map> #i...
948
1,475
<reponame>mhansonp/geode /* * 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 *...
350
666
<filename>examples/issues/issue324.py import sys sys.path.append("../../") from appJar import gui def press(btn): if btn == "UP": app.increaseFont() elif btn == "DOWN": app.decreaseFont() elif btn == "MEUP": app.setTabFont("tabs", **style) elif btn == "MEDOWN": app.decreaseFont() with gui("TabTest") a...
492
988
<gh_stars>100-1000 /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the ...
3,856
652
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * libdatrie - Double-Array Trie Library * Copyright (C) 2006 <NAME> <<EMAIL>> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by t...
1,015
305
""" Test lldb-vscode setBreakpoints request """ import unittest2 import vscode from lldbsuite.test.decorators import * from lldbsuite.test.lldbtest import * from lldbsuite.test import lldbutil import lldbvscode_testcase class TestVSCode_setExceptionBreakpoints( lldbvscode_testcase.VSCodeTestCaseBase): ...
690
1,792
package org.hongxi.whatsmars.reactor.webflux; import org.hongxi.whatsmars.reactor.webflux.functional.DefaultPasswordVerificationService; import org.hongxi.whatsmars.reactor.webflux.functional.StandaloneApplication; import org.junit.Before; import org.junit.Test; import org.springframework.security.crypto.bcrypt.BCrypt...
425
5,937
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. //+------------------------------------------------------------------------------------------------ // // Microsof...
115
347
package org.ovirt.engine.api.restapi.resource; import org.junit.jupiter.api.Test; import org.mockito.junit.jupiter.MockitoSettings; import org.mockito.quality.Strictness; import org.ovirt.engine.api.model.Quota; import org.ovirt.engine.core.common.action.ActionType; import org.ovirt.engine.core.common.action.IdParamet...
1,385
2,177
<filename>src/org/nutz/resource/JarEntryInfo.java<gh_stars>1000+ package org.nutz.resource; import java.io.IOException; public class JarEntryInfo { public String getEntryName() { return entryName; } public String getJarPath() { return jarPath; } public JarEntryInfo...
809
678
/** * This header is generated by class-dump-z 0.2b. * * Source: /System/Library/PrivateFrameworks/WebCore.framework/WebCore */ #import <WebCore/NSCopying.h> @protocol DOMEventTarget <NSObject, NSCopying> - (void)addEventListener:(id)listener listener:(id)listener2 useCapture:(BOOL)capture; - (void)removeEventL...
199
587
# coding=utf-8 # Copyright 2021 The Deeplab2 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 ...
14,090
15,947
# 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 not u...
476
348
<filename>docs/data/leg-t2/039/03902192.json {"nom":"Denezières","circ":"2ème circonscription","dpt":"Jura","inscrits":65,"abs":24,"votants":41,"blancs":3,"nuls":1,"exp":37,"res":[{"nuance":"MDM","nom":"<NAME>","voix":21},{"nuance":"LR","nom":"<NAME>","voix":16}]}
113
6,240
<reponame>lukec611/closure-compiler /* * * ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at ...
2,371
416
package org.simpleflatmapper.datastax.impl.mapping; import org.simpleflatmapper.reflect.meta.AliasProvider; import org.simpleflatmapper.reflect.meta.Table; import org.simpleflatmapper.util.ErrorHelper; import java.lang.annotation.Annotation; import java.lang.reflect.Field; import java.lang.reflect.Method; public cl...
1,010
454
package io.vertx.tp.plugin.neo4j; import io.vertx.codegen.annotations.Fluent; import io.vertx.core.Future; import io.vertx.core.Vertx; import io.vertx.core.json.JsonArray; import io.vertx.core.json.JsonObject; import io.vertx.up.plugin.TpClient; public interface Neo4jClient extends TpClient<Neo4jClient> { static...
1,188
946
<reponame>Pio1006/couchbase-lite-android<filename>lib/src/main/java/com/couchbase/lite/ConsoleLogger.java // // ConsoleLogger.java // // Copyright (c) 2018 Couchbase, 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...
651
677
#include "base/scoped_ptr.h" #include "base/macros.h" #include "gtest/gtest.h" namespace base { class TestClazzBase { public: virtual ~TestClazzBase() {} virtual void SetCounter(int* counter) = 0; virtual int DoSomething(int some_thing) const = 0; }; class TestClazz : public TestClazzBase { public: TestCla...
3,828
339
/* * Copyright (c) 2018, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except * in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/li...
5,173
445
/* * A set of definitions for C source code control systems, to provide accurate * and definitive version information to the VM. This file identifies the * platform plugin code, which is shared between Cog and the trunk interpreter. * It is included by platforms/Cross/vm/sqSCCSVersion.h. * * Currently instantiat...
625
1,984
# -*- coding: utf-8 -*- from guietta import Gui, QMessageBox, PW gui = Gui( [ 'Enter password:', PW('password') , ['Check'] ] ) # Accept both the Enter key and a click on "Check" with gui.Check, gui.password: if gui.is_running: if gui.password == '<PASSWORD>': QMessageBox.information(None...
185
1,144
package org.compiere.model; /** Generated Interface for AD_SchedulerLog * @author Adempiere (generated) */ @SuppressWarnings("javadoc") public interface I_AD_SchedulerLog { /** TableName=AD_SchedulerLog */ public static final String Table_Name = "AD_SchedulerLog"; /** AD_Table_ID=687 */ // publi...
4,469
1,006
/**************************************************************************** * libs/libc/pwd/lib_getpwuid.c * * 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 owne...
675
1,443
{ "copyright": "<NAME>", "url": "https://www.pierreprinetti.net", "email": "<EMAIL>", "gravatar": true }
50
2,549
<reponame>kapb14/hatch from click.testing import CliRunner from hatch.cli import hatch from hatch.settings import ( SETTINGS_FILE, copy_default_settings, load_settings, restore_settings, save_settings ) from hatch.utils import temp_chdir, temp_move_path def test_config_not_exist(): with temp_chdir() as d...
1,283
348
<filename>docs/data/leg-t2/054/05403504.json<gh_stars>100-1000 {"nom":"Serrouville","circ":"3ème circonscription","dpt":"Meurthe-et-Moselle","inscrits":476,"abs":314,"votants":162,"blancs":8,"nuls":5,"exp":149,"res":[{"nuance":"REM","nom":"M. <NAME>","voix":88},{"nuance":"FI","nom":"<NAME>","voix":61}]}
128
1,198
<gh_stars>1000+ /* Copyright 2017-2019 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 applicable...
3,291
8,772
<gh_stars>1000+ package org.apereo.cas.configuration.model.core.ticket; import org.apereo.cas.configuration.support.RequiresModule; import com.fasterxml.jackson.annotation.JsonFilter; import lombok.Getter; import lombok.Setter; import lombok.experimental.Accessors; import org.springframework.boot.context.properties.N...
635
324
<gh_stars>100-1000 /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "...
1,870
803
<filename>oxygine/src/oxygine/core/VideoDriver.cpp<gh_stars>100-1000 #include "VideoDriver.h" #include "NativeTexture.h" #include "ShaderProgram.h" #include "../math/Color.h" namespace oxygine { IVideoDriver* IVideoDriver::instance = 0; IVideoDriver::~IVideoDriver() { } void IVideoDriver::setUni...
840
815
<reponame>xj361685640/ParaView #include "vtkCLIOptions.h" #include "vtkLogger.h" #include "vtkNew.h" #include "vtkProcessModuleConfiguration.h" #include "vtkRemotingCoreConfiguration.h" int TestRemotingCoreConfiguration(int argc, char* argv[]) { vtkNew<vtkCLIOptions> options; options->SetName("TestRemotingCoreConf...
269
879
<gh_stars>100-1000 import six from sqlalchemy import types from ..exceptions import ImproperlyConfigured from .scalar_coercible import ScalarCoercible babel = None try: import babel except ImportError: pass class LocaleType(ScalarCoercible, types.TypeDecorator): """ LocaleType saves Babel_ Locale ob...
773
839
import pytest from django.db import connection from django.utils import timezone from freezegun import freeze_time from baserow.contrib.database.fields.models import Field from baserow.contrib.database.rows.handler import RowHandler from baserow.contrib.database.table.models import Table from baserow.core.exceptions i...
6,255
1,350
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.botservice.generated; import com.azure.core.util.Context; /** Samples for PrivateEndpointConnections Delete. */ public final cl...
310
5,079
<reponame>cornershop/pytest-django<filename>docs/_ext/pytestdocs.py def setup(app): app.add_crossref_type( directivename="fixture", rolename="fixture", indextemplate="pair: %s; fixture", )
101
302
<reponame>vadkasevas/BAS #ifndef ABOUTBROWSERSTUDIO_H #define ABOUTBROWSERSTUDIO_H #include <QDialog> namespace Ui { class AboutBrowserStudio; } class AboutBrowserStudio : public QDialog { Q_OBJECT public: explicit AboutBrowserStudio(const QString& Version,const QString& ServerName,QWidget *parent = 0); ...
171
1,825
package com.github.unidbg.ios.struct.attr; import com.github.unidbg.pointer.UnidbgStructure; import com.sun.jna.Pointer; import java.util.Arrays; import java.util.List; public class AttrList extends UnidbgStructure { public AttrList(Pointer p) { super(p); unpack(); } public short bitmap...
306
432
<reponame>lambdaxymox/DragonFlyBSD /* * Copyright (c) 2003 <NAME> <<EMAIL>> * Copyright (c) 2008 The DragonFly Project. * 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...
959
678
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include "glean/rts/ownership/setu32.h" #include <xxhash.h> using namespace folly::compression; ...
5,757
3,366
#include "ex14_02_sales_data.h" int main() { Sales_data cp5; std::cin >> cp5; std::cout << cp5 << std::endl; } // compile // cc -g ex14_02_sales_data_test.cpp ex14_02_sales_data.cpp -std=c++11 -pedantic // -Wall
108
474
<filename>examples/benchmarks/speed_test.py<gh_stars>100-1000 #!/usr/bin/env python """Benchmark how long it takes to set 10,000 keys in the database. """ import asyncio import logging import time import asyncio_redis async def main(): # Enable logging logging.getLogger().addHandler(logging.StreamHandler()) ...
724
5,169
{ "name": "WARangeSlider", "version": "1.1.0", "summary": "A simple range slider made in Swift", "description": "This pod provides a simple range slider.", "homepage": "https://github.com/warchimede/RangeSlider", "license": "MIT", "authors": { "<NAME>": "<EMAIL>" }, "source": { "git": "https:/...
243
1,068
<reponame>dZ8Lx9OwX/cnKiTTY<gh_stars>1000+ /* * Stub implementations of RNG functions for applications without an RNG. */ #include "putty.h" void random_read(void *out, size_t size) { unreachable("Random numbers are not available in this application"); } void random_save_seed(void) { } void ra...
169
311
// // UIImage+Success.h // RuntimeSummary // // Created by <NAME> on 16/4/21. // Copyright © 2016年 Tuccuay. All rights reserved. // #import <UIKit/UIKit.h> @interface UIImage (Success) + (UIImage *)tuc_imageNamed:(NSString *)name; @end
96
348
<filename>docs/data/leg-t2/076/07606244.json {"nom":"Esclavelles","circ":"6ème circonscription","dpt":"Seine-Maritime","inscrits":338,"abs":214,"votants":124,"blancs":9,"nuls":2,"exp":113,"res":[{"nuance":"REM","nom":"<NAME>","voix":61},{"nuance":"COM","nom":"M. <NAME>","voix":52}]}
115
499
<reponame>wuwen5/datasource-proxy package net.ttddyy.dsproxy.listener.lifecycle; import javax.sql.CommonDataSource; import javax.sql.DataSource; import java.lang.reflect.Method; import java.sql.CallableStatement; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql....
1,446
12,278
<reponame>madanagopaltcomcast/pxCore<gh_stars>1000+ // © 2016 and later: Unicode, Inc. and others. // License & terms of use: http://www.unicode.org/copyright.html /* ******************************************************************************* * Copyright (C) 1996-2014, International Business Machines * Corporation ...
437
2,542
<reponame>gridgentoo/ServiceFabricAzure<gh_stars>1000+ // ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // -------------------------------------...
851
1,338
<reponame>Kirishikesan/haiku<gh_stars>1000+ /* * Copyright 2013, Haiku, Inc. * Distributed under the terms of the MIT License. */ #ifndef _PACKAGE__GLOBAL_WRITABLE_FILE_INFO_H_ #define _PACKAGE__GLOBAL_WRITABLE_FILE_INFO_H_ #include <package/WritableFileUpdateType.h> #include <String.h> namespace BPackageKit { ...
505
575
<reponame>Ron423c/chromium // Copyright 2012 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_ANIMATION_ANIMATION_EVENTS_H_ #define CC_ANIMATION_ANIMATION_EVENTS_H_ #include <memory> #include <vector> #includ...
803
1,685
<gh_stars>1000+ # Copyright (c) 2014, <NAME>, <NAME> # Licensed under the BSD 3-clause license (see LICENSE.txt) from paramz import Parameterized from .priorizable import Priorizable import logging logger = logging.getLogger("parameters changed meta") class Parameterized(Parameterized, Priorizable): """ Par...
714
2,996
<reponame>Elyahu41/Terasology // Copyright 2021 The Terasology Foundation // SPDX-License-Identifier: Apache-2.0 package org.terasology.engine.logic.permission; import com.google.common.collect.Sets; import org.terasology.gestalt.entitysystem.component.Component; import java.util.Set; public class PermissionSetCompo...
176
39,871
<filename>lib/plugins/aws/invokeLocal/runtimeWrappers/java/src/test/java/com/serverless/RequestHandlerSQSEvent.java package com.serverless; import com.amazonaws.services.lambda.runtime.Context; import com.amazonaws.services.lambda.runtime.RequestHandler; import com.amazonaws.services.lambda.runtime.events.SQSEvent; p...
198
813
<gh_stars>100-1000 # -*- coding: utf-8 -*- from django import forms from corpus.models import EvidenceLabel DEFAULT_LABEL = EvidenceLabel._meta.get_field('label').default class EvidenceForm(forms.ModelForm): class Meta: model = EvidenceLabel fields = ["label"] widgets = { 'la...
856