max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
1,484
<reponame>ballad86/anchore-engine """ Entities for the catalog service including services, users, images, etc. Pretty much everything except image analysis data """ import datetime import enum from sqlalchemy import ( JSON, BigInteger, Boolean, Column, DateTime, Enum, ForeignKey, Index...
10,415
736
<reponame>tuomijal/pmdarima # -*- coding: utf-8 -*- import pytest import numpy as np from numpy.testing import assert_array_equal from pmdarima.compat import pmdarima as pm_compat from pmdarima.compat import pytest as pt_compat xreg = np.random.rand(4, 4) @pytest.mark.parametrize( 'X,kw,X_exp,kw_exp,exp_warnin...
779
14,668
<filename>ash/quick_pair/common/account_key_failure.cc // 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 "ash/quick_pair/common/account_key_failure.h" namespace ash { namespace quick_pair { std...
244
5,169
{ "name": "ARSPopover", "version": "2.0.0", "summary": "Universal popover for iPhone and iPad.", "description": "# ARSPopover\nUniversal popover for iPhone and iPad that you can use in your projects. No custom drawing, no custom elements - everything is purely native.\n\n| iPhone | ...
1,888
808
<reponame>714627034/Paddle-Lite # Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-...
1,802
12,278
<filename>3rdParty/boost/1.71.0/libs/preprocessor/test/slot.cxx # /* ************************************************************************** # * * # * (C) Copyright <NAME> 2002. # * Distributed under the Boost Software License, Versi...
738
2,151
<filename>chrome/browser/chromeos/arc/wallpaper/arc_wallpaper_service.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 CHROME_BROWSER_CHROMEOS_ARC_WALLPAPER_ARC_WALLPAPER_SERVICE_H_ #define CHR...
1,562
367
<reponame>MatanyaStroh/opal from logging import disable import os import signal import asyncio import uuid import aiohttp import functools from typing import List, Optional from fastapi import FastAPI import websockets from opal_common.logger import logger, configure_logs from opal_common.middleware import configure_...
5,410
435
package datawave.query.iterator; import java.util.Map.Entry; import datawave.query.function.Aggregation; import datawave.query.function.KeyToDocumentData; import datawave.query.attributes.Document; import datawave.query.tld.TLD; import datawave.query.util.EntryToTuple; import datawave.query.util.Tuple2; import org.a...
709
29,258
package com.taobao.arthas.core.config; import com.taobao.arthas.core.shell.ShellServerOptions; import com.taobao.arthas.core.util.reflect.ArthasReflectUtils; import java.lang.reflect.Field; import java.util.HashMap; import java.util.Map; import static java.lang.reflect.Modifier.isStatic; /** * <pre> * 配置类。 * 注意本...
2,866
357
<gh_stars>100-1000 /* * * Copyright (c) 2012-2016 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/licenses/LICENSE-2.0 * ...
876
1,853
#include <chrono> using seconds_t = std::chrono::seconds; constexpr seconds_t operator ""_s(unsigned long long s) { return seconds_t(s); } int main() { auto s = 1_s; }
78
310
// (C) Copyright <NAME> 2019 // Use, modification and distribution are subject to 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). #if !defined(BOOST_TTI_DETAIL_COMP_MEM_FUN_TEMPLATE_HPP) #define BOOST_TTI_DETAIL_COMP_MEM_FUN_T...
830
1,736
/* Copyright (c) 2020-2021 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 la...
4,582
319
<filename>src/NativeScript/ManualInstrumentation.h // // Created by <NAME> on 26/05/2017. // #ifndef MANUALINSTRUMENTATION_H #define MANUALINSTRUMENTATION_H #include <WTF/Assertions.h> #import <chrono> #include <string> namespace tns { namespace instrumentation { enum Mode { Disabled = 0, Uniniti...
1,228
403
<filename>Lib/Source/Translate.cpp #include "Source/Syntax.h" #include "Target/Syntax.h" #include "Target/SmallLiteral.h" #include "Target/LoadStore.h" #include "Common/Seq.h" // ============================================================================ // Opcodes and operands // ====================================...
12,534
2,151
// Copyright 2014 PDFium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com // Original code is licensed as follows: /* * Copyright 2007 ZXing authors * ...
2,223
493
<filename>HtmlNativeAndroid/htmlnative-lib/src/main/java/com/mozz/htmlnative/exception/AttrApplyException.java package com.mozz.htmlnative.exception; /** * @author <NAME>, 17/3/3. */ public class AttrApplyException extends Exception { public AttrApplyException() { super(); } public AttrApplyExc...
204
49,076
/** * Classes adapting Spring's WebSocket API to and from WebSocket providers. */ @NonNullApi @NonNullFields package org.springframework.web.socket.adapter; import org.springframework.lang.NonNullApi; import org.springframework.lang.NonNullFields;
75
703
#include <Texture/TexturePCH.h> #include <Texture/Image/ImageUtils.h> #include <Texture/TexConv/TexConvProcessor.h> ezResult ezTexConvProcessor::Assemble3DTexture(ezImage& dst) const { const auto& images = m_Descriptor.m_InputImages; return ezImageUtils::CreateVolumeTextureFromSingleFile(dst, images[0]); } EZ_...
141
2,542
<filename>src/prod/src/Common/asyncfile.test.cpp // ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // -------------------------------------------...
2,985
1,168
<reponame>wcalandro/kythe<filename>kythe/go/extractors/gcp/config/testdata/guava-mvn.json { "repo": "https://github.com/google/guava", "extractions": [ { "build_system": "MAVEN", "corpus": "github.com/google/guava" } ] }
118
526
/* SPDX-License-Identifier: Apache-2.0 */ /* Copyright Contributors to the ODPi Egeria project. */ package org.odpi.openmetadata.accessservices.assetmanager.properties; import com.fasterxml.jackson.annotation.JsonAutoDetect; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.ann...
1,695
6,717
<filename>deps/3rdparty/cassowary-0.60/c++/ClC.cc<gh_stars>1000+ /* $Id: ClC.cc,v 1.22 1999/08/27 00:06:27 gjb Exp $ * Cassowary Incremental Constraint Solver * Original Smalltalk Implementation by <NAME> * This C++ Implementation by <NAME>, <<EMAIL>> * http://www.cs.washington.edu/homes/gjb * (C) 1998, 1999 <NAME...
2,823
955
<filename>tslearn/metrics/dtw_variants.py<gh_stars>100-1000 import warnings import numpy from numba import njit, prange from sklearn.metrics.pairwise import pairwise_distances from tslearn.utils import to_time_series from .utils import _cdist_generic __author__ = '<NAME> <EMAIL>[<EMAIL>' GLOBAL_CONSTRAINT_CODE = {N...
28,302
319
<reponame>Celebrate-future/openimaj /** * Copyright (c) 2011, The University of Southampton and the individual contributors. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * * Redistr...
1,757
322
package com.imooc.lib_common_ui.delegate.web.event; import android.util.Log; public class UndefinedEvent extends Event { @Override public String execute(String params) { Log.d("",""); return null; } }
73
373
<filename>bundle/src/test/java/com/adobe/acs/commons/workflow/synthetic/impl/cq/SyntheticWorkflowSessionTest.java /* * #%L * ACS AEM Commons Bundle * %% * Copyright (C) 2016 Adobe * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the Lice...
4,561
530
package org.carlspring.strongbox.users.service; import java.util.Arrays; import java.util.HashSet; import java.util.stream.Collectors; import javax.inject.Inject; import org.carlspring.strongbox.config.DataServiceConfig; import org.carlspring.strongbox.config.UsersConfig; import org.carlspring.strongbox.users.dto.Us...
4,203
335
<filename>S/Subsection_noun.json { "word": "Subsection", "definitions": [ "A division of a section." ], "parts-of-speech": "Noun" }
71
3,055
/* Fontname: open_iconic_gui_8x Copyright: https://github.com/iconic/open-iconic, SIL OPEN FONT LICENSE Glyphs: 30/30 BBX Build Mode: 0 */ const uint8_t u8g2_font_open_iconic_gui_8x_t[3257] U8G2_FONT_SECTION("u8g2_font_open_iconic_gui_8x_t") = "\36\0\6\6\7\7\5\6\10@@\0\0@\0@\0\0R\0\0\14\234@R@\34D\201\61\364...
5,743
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.avs.fluent.models; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import com.azure.re...
1,253
903
<reponame>infinite8co/tacticalrmm import pyotp from django.core.management.base import BaseCommand class Command(BaseCommand): help = "Generates TOTP Random Base 32" def handle(self, *args, **kwargs): self.stdout.write(pyotp.random_base32())
98
2,406
<reponame>pazamelin/openvino<filename>src/common/legacy/src/ngraph_ops/tile_ie.cpp // Copyright (C) 2018-2021 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include "legacy/ngraph_ops/tile_ie.hpp" #include <algorithm> #include <memory> #include "ngraph/util.hpp" #include "ngraph/validation_util.hpp" u...
693
17,104
// // CodedOutputData.h // PBCoder // // Created by <NAME> on 4/17/14. // Copyright (c 2014 Tencent. All rights reserved. // #pragma once #ifdef __OBJC__ #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> #endif #ifdef __cplusplus #import <MacTypes.h> #endif #ifdef __cplusplus @class WXPBGeneratedMessag...
1,091
540
// ***************************************************************************** // Copyright (c) 2020, Intel Corporation All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // Redistributions...
4,718
3,710
<reponame>wofogen/tahoma2d #pragma once #ifndef TIIO_MESH_H #define TIIO_MESH_H #include "tlevel_io.h" //***************************************************************************************** // TLevelWriterMesh declaration //************************************************************************************...
409
517
<reponame>msercheli/openexr // // SPDX-License-Identifier: BSD-3-Clause // Copyright (c) Contributors to the OpenEXR Project. // #ifdef NDEBUG # undef NDEBUG #endif #include <ImfRgbaFile.h> #include <ImfArray.h> #include <ImfThreading.h> #include "IlmThread.h" #include "ImathMath.h" #include <stdio.h> #include <as...
2,621
60,067
#pragma once #include <ATen/core/Macros.h> #include <ATen/core/function_schema.h> #include <c10/util/either.h> #include <string> namespace torch { namespace jit { TORCH_API c10::either<c10::OperatorName, c10::FunctionSchema> parseSchemaOrName( const std::string& schemaOrName); TORCH_API c10::FunctionSchema parse...
167
399
#pragma once #include "Common.hpp" #include "graphics/GPUObjects.hpp" #include <deque> struct GPUContext; /** \brief Manage descriptor set allocations by creating and reusing internal descriptor pools. \details By default each pool will contain up to DEFAULT_SET_COUNT of each kind defined in createPool. \ingroup ...
583
3,138
<gh_stars>1000+ # Lint as: python3 # Copyright 2021 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
1,751
324
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
2,172
777
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/views/bubble/bubble_window_targeter.h" #include "ui/aura/window.h" #include "ui/gfx/path.h" #include "ui/gfx/skia_util.h" #include "ui/views...
367
945
<reponame>arobert01/ITK<gh_stars>100-1000 /*========================================================================= Program: GDCM (Grassroots DICOM). A DICOM library Copyright (c) 2006-2011 <NAME> All rights reserved. See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details. This so...
1,026
511
#!/usr/bin/python import os import sys import platform import subprocess import multiprocessing # help message def helpmsg(script): helpstr = ''' Usage: build: python %s <targetbuild> Allowed values for <target_build>: all, linux_unsecured, linux_secured, linux_unsecured_with_ra, linux_secured...
9,491
2,040
<filename>tests/profiles/cyclic/test_spec.json [ { "id": "default_output", "method": "cmp_with_file_contents", "command": "{{pipdeptree}}", "expected_output_file": "default.out", "expected_err_file": "default.err", "expected_returncode": 0 }, { "id": "warning_silenced", "method": "...
310
2,568
{ "StatusCake": { "domain": "statuscake.com", "tfa": [ "sms", "totp" ], "documentation": "https://www.statuscake.com/kb/knowledge-base/how-to-change-the-statuscake-password-for-login/", "keywords": [ "developer" ] } }
128
320
#include "File.hh" #include "Filename.hh" #include "LocalFile.hh" #include "GZFileAdapter.hh" #include "ZipFileAdapter.hh" #include "checked_cast.hh" #include <cstring> #include <memory> namespace openmsx { File::File() = default; [[nodiscard]] static std::unique_ptr<FileBase> init(std::string filename, File::OpenMo...
1,144
5,813
/* * 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 ...
400
1,799
package io.cucumber.core.options; import io.cucumber.core.options.CucumberProperties.CucumberPropertiesMap; import org.junit.jupiter.api.Test; import java.util.Collections; import java.util.Map; import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.core.Is.is; import static org.hamcrest.cor...
898
4,269
<reponame>FredericDesgreniers/ribbon<filename>ribbon-eureka/src/test/java/com/netflix/niws/loadbalancer/LoadBalancerTestUtils.java package com.netflix.niws.loadbalancer; import com.netflix.appinfo.DataCenterInfo; import com.netflix.appinfo.InstanceInfo; import com.netflix.appinfo.MyDataCenterInfo; import com.netflix.d...
556
14,668
<reponame>zealoussnow/chromium<filename>ui/ozone/platform/x11/x11_canvas_surface.cc // Copyright 2019 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/ozone/platform/x11/x11_canvas_surface.h" #include "base/...
669
1,056
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
1,726
14,668
<filename>components/web_package/web_bundle_parser_factory.cc // Copyright 2019 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "components/web_package/web_bundle_parser_factory.h" #include "base/callback_helpe...
1,132
2,228
<filename>src/test/java/org/springframework/data/jpa/repository/support/JpaPersistableEntityInformationUnitTests.java<gh_stars>1000+ /* * Copyright 2011-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 ...
925
1,736
<gh_stars>1000+ /* Copyright (c) 2005-2021 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 ...
4,452
2,757
/* $NetBSD: float.h,v 1.6 2005/12/11 12:16:47 christos Exp $ */ #ifndef _ARM_FLOAT_H_ #define _ARM_FLOAT_H_ #ifndef __VFP_FP__ #define LDBL_MANT_DIG 64 #define LDBL_EPSILON 1.0842021724855044340E-19L #define LDBL_DIG 18 #define LDBL_MIN_EXP (-16381) #define LDBL_MIN 1.6810515715560467531E-4932L #define LDB...
459
478
<reponame>Illbatting/AdaptiveCards // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #pragma once #include "AdaptiveInputLabelConfig.g.h" namespace winrt::AdaptiveCards::Rendering::Uwp::implementation { struct AdaptiveInputLabelConfig : AdaptiveInputLabelConfigT<Adapt...
303
319
<reponame>Celebrate-future/openimaj<filename>core/core/src/main/java/org/openimaj/util/queue/InvertedPriorityQueue.java<gh_stars>100-1000 /** * Copyright (c) 2011, The University of Southampton and the individual contributors. * All rights reserved. * * Redistribution and use in source and binary forms, with or wit...
1,767
341
package auth.service; import auth.dto.AuthDto; import auth.entity.User; import edu.fudan.common.util.Response; import org.springframework.http.HttpHeaders; import java.util.List; import java.util.UUID; /** * @author fdse */ public interface UserService { /** * save user * * @param user user ...
356
509
/* * Copyright (C)2016 - SMBJ Contributors * * 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...
509
374
<reponame>mattdsteele/pibooth # -*- coding: utf-8 -*- from pibooth.utils import LOGGER from pibooth.camera.rpi import RpiCamera, get_rpi_camera_proxy from pibooth.camera.gphoto import GpCamera, get_gp_camera_proxy from pibooth.camera.opencv import CvCamera, get_cv_camera_proxy from pibooth.camera.hybrid import HybridR...
856
350
<reponame>Eyalcohenx/tonic<filename>tonic/torch/models/encoders.py import torch class ObservationEncoder(torch.nn.Module): def initialize( self, observation_space, action_space=None, observation_normalizer=None, ): self.observation_normalizer = observation_normalizer observatio...
424
412
public class Test { private static Test static_test = new Test(); private Test test = null; public Test() { } public int foo(int x) { if (x > 10) { return x; } else { return x * 10; } } public void obsolete() { } }
108
2,151
<filename>cmds/appwidget/src/com/android/commands/appwidget/AppWidget.java /* ** Copyright 2014, The Android Open Source Project ** ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** ** ...
2,835
3,045
/*- * Copyright (c) 2020 Varnish Software AS * All rights reserved. * * Author: <NAME> <<EMAIL>> * * SPDX-License-Identifier: BSD-2-Clause * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistribution...
1,877
427
<gh_stars>100-1000 package modern.challenge; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.TimeUnit; public class Main { public static void main(String[] args) throws InterruptedException { Incrementator nonAtomicInc = new Incrementator()...
427
1,140
# -*- coding: utf-8 -*- """ flaskbb.cli ~~~~~~~~~~~ FlaskBB's Command Line Interface. To make it work, you have to install FlaskBB via ``pip install -e .``. Plugin and Theme templates are generated via cookiecutter. In order to generate those project templates you have to cookiecutter firs...
229
2,486
<reponame>priya1puresoftware/python-slack-sdk import json import unittest from slack_sdk.scim.v1.internal_utils import _to_snake_cased class TEstInternals(unittest.TestCase): def setUp(self): pass def tearDown(self): pass def test_snake_cased(self): response_body = """{"totalRes...
430
1,260
#pragma once // Use this for packaging up a float into a WPARAM in order to losslessly // pass it in a windows message. union PackagedFloatVersion { unsigned u; float f; }; class CVersionChecker { public: CVersionChecker() noexcept; ~CVersionChecker(); void StartVersionCheckerThread(CWnd* pWindo...
265
11,868
<filename>samples/server/petstore/java-vertx-web/src/main/java/org/openapitools/vertxweb/server/api/PetApiImpl.java package org.openapitools.vertxweb.server.api; import io.vertx.ext.web.FileUpload; import org.openapitools.vertxweb.server.model.ModelApiResponse; import org.openapitools.vertxweb.server.model.Pet; impor...
642
8,092
<filename>tests/core/test_providers_manager.py # # 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 Lice...
4,872
471
import os from couchdbkit import Database from django.apps import apps from corehq.preindex import PreindexPlugin from corehq.util.couchdb_management import CouchConfig from dimagi.utils.couch.sync_docs import DesignInfo class DefaultPreindexPlugin(PreindexPlugin): def __init__(self, app_label): self.app...
386
3,012
/** @file GUID for Shell Map for Get/Set via runtime services. Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #ifndef _SHELL_MAP_GUID_H_ #define _SHELL_MAP_GUID_H_ #define SHELL_MAP_GUID \ { \ 0x51271e13, 0x7de3, 0x43af, {...
206
854
__________________________________________________________________________________________________ sample 56 ms submission # Definition for a binary tree node. # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None class CBTInserter: def __init...
1,130
494
/** * Copyright 2013 Netflix, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
1,028
4,813
# coding: utf-8 from datetime import timedelta as td from unittest import skipIf from unittest.mock import patch, Mock from django.utils.timezone import now from hc.api.models import Channel, Check, Notification from hc.test import BaseTestCase from django.test.utils import override_settings try: import apprise ...
757
4,879
<gh_stars>1000+ #pragma once #include "shaders/program_params.hpp" #include "drape/vulkan/vulkan_base_context.hpp" #include "drape/vulkan/vulkan_gpu_program.hpp" #include "drape/vulkan/vulkan_object_manager.hpp" #include "drape/vulkan/vulkan_utils.hpp" #include "base/thread_checker.hpp" #include <vulkan_wrapper.h> ...
1,231
990
class DemoPlainClass: a: int # <1> b: float = 1.1 # <2> c = 'spam' # <3>
65
408
import gym import readchar import numpy as np # # MACROS Push_Left = 0 No_Push = 1 Push_Right = 2 # Key mapping arrow_keys = { '\x1b[D': Push_Left, '\x1b[B': No_Push, '\x1b[C': Push_Right} env = gym.make('MountainCar-v0') trajectories = [] episode_step = 0 for episode in range(20): # n_trajectories : 2...
502
4,959
<gh_stars>1000+ from .meta import TouchUpMeta from .service import TouchUp __all__ = ( "TouchUp", "TouchUpMeta", )
49
1,086
<reponame>3bdullahnf/ring /* SDL_mixer: An audio mixer library based on the SDL library Copyright (C) 1997-2016 <NAME> <<EMAIL>> This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. ...
7,976
884
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. from .utils import AutoNumber class CdmRelationshipDiscoveryStyle(AutoNumber): """Describes the types of relationships you want populated in a Manifest. ...
176
2,077
/** Copyright (c) 2015-present, Facebook, Inc. 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 <pbxbuild/WorkspaceContext.h> #include <pbxsetting/Environment.h> #include <libutil/Filesystem.h> #include ...
4,512
1,668
package org.elixir_lang.parser_definition; import org.elixir_lang.sdk.elixir.Release; /** * atom is invalid to the right of `.`, so unlike in {@link MatchedDotOperationParsingTestcase}, this tests only when * atom is left of `.` and the right operand varies based on the test name. */ public class MatchedQualifiedM...
2,352
773
<gh_stars>100-1000 from __future__ import annotations from collections import OrderedDict from abc import ABCMeta, abstractmethod import base64 from math import ceil import BitVector #type: ignore from .bitvector import BV from .opaque import OpaqueValue from typing import Any, Dict, Iterable, List, NoReturn, Optional...
7,504
1,303
<reponame>LifeOrGame/Sparky #include "sp/sp.h" #include "Panel.h" #include "Widget.h" #include "sp/app/Application.h" #include "sp/maths/maths.h" #include "sp/graphics/shaders/ShaderFactory.h" namespace sp { namespace graphics { namespace ui { using namespace events; using namespace maths; Panel::Panel() : La...
1,261
1,875
<reponame>CarnegieLearningWeb/teavm /* * Copyright 2015 <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 r...
1,628
351
/*** ____ __ ____ __ ( _ \ / \( _ \( ) ) __/( O )) __// (_/\ (__) \__/(__) \____/ version 1.2.90 https://github.com/badaix/popl This file is part of popl (program options parser lib) Copyright (C) 2015-2019 <NAME> This software may be modified and distributed under th...
14,882
347
package org.ovirt.engine.ui.uicommonweb.models.gluster; import java.util.List; import org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity; import org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity; import org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeTa...
1,072
1,907
// // This source file is part of appleseed. // Visit https://appleseedhq.net/ for additional information and resources. // // This software is released under the MIT license. // // Copyright (c) 2010-2013 <NAME>, Jupiter Jazz Limited // Copyright (c) 2014-2018 <NAME>, The appleseedhq Organization // // Permission is ...
4,098
679
<reponame>Grosskopf/openoffice<filename>main/starmath/source/smmod.cxx /************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional informatio...
4,554
5,169
<reponame>Gantios/Specs<filename>Specs/3/6/2/MGActionStageSwift/0.0.2/MGActionStageSwift.podspec.json { "name": "MGActionStageSwift", "version": "0.0.2", "summary": "ActionStageSwift. 升级Swift4.0", "description": "TODO: Add long description of the pod here.", "homepage": "https://github.com/mgzf/MGActionStageS...
485
4,262
/* * 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 ...
878
538
<reponame>e16din/AndroidBucket package com.wangjie.androidbucket.support.recyclerview.layoutmanager; import android.content.Context; import android.support.v7.widget.GridLayoutManager; import android.support.v7.widget.RecyclerView; import com.wangjie.androidbucket.support.recyclerview.listener.OnRecyclerViewScrollLoca...
783
1,342
/* * Copyright 2021 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
3,802
435
// // AutoInch.h // AutoInch // // Created by 李响 on 2019/3/30. // Copyright © 2019 swift. All rights reserved. // #import <UIKit/UIKit.h> //! Project version number for AutoInch. FOUNDATION_EXPORT double AutoInchVersionNumber; //! Project version string for AutoInch. FOUNDATION_EXPORT const unsigned char AutoInc...
151
473
/* * Copyright (c) 2015 Kaprica Security, Inc. * * 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 * to use, copy, modify, mer...
1,242
1,840
<reponame>RaulGracia/pravega<filename>common/src/main/java/io/pravega/common/io/serialization/RevisionDataOutputStream.java /** * Copyright Pravega Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy...
9,902
348
{"nom":"Villacerf","circ":"1ère circonscription","dpt":"Aube","inscrits":437,"abs":204,"votants":233,"blancs":14,"nuls":1,"exp":218,"res":[{"nuance":"REM","nom":"<NAME>","voix":88},{"nuance":"FN","nom":"<NAME>","voix":73},{"nuance":"LR","nom":"<NAME>","voix":57}]}
103