hexsha
stringlengths
40
40
size
int64
2
1.02M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
245
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
245
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
245
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.02M
avg_line_length
float64
1
958k
max_line_length
int64
1
987k
alphanum_fraction
float64
0
1
content_no_comment
stringlengths
0
1.01M
is_comment_constant_removed
bool
2 classes
is_sharp_comment_removed
bool
1 class
1c39dd072a1ea1d4d97dd6b71d7de7375b7976e5
50,281
py
Python
hdl21/tests/test_hdl21.py
dan-fritchman/Hdl21
adb7787b137f2bea720e576a3027314a1dcd0947
[ "BSD-3-Clause" ]
1
2022-02-19T18:48:45.000Z
2022-02-19T18:48:45.000Z
hdl21/tests/test_hdl21.py
dan-fritchman/Hdl21
adb7787b137f2bea720e576a3027314a1dcd0947
[ "BSD-3-Clause" ]
13
2021-07-21T17:48:49.000Z
2022-01-31T23:12:08.000Z
hdl21/tests/test_hdl21.py
dan-fritchman/Hdl21
adb7787b137f2bea720e576a3027314a1dcd0947
[ "BSD-3-Clause" ]
null
null
null
""" # hdl21 Unit Tests """ import sys, copy, pytest from io import StringIO from types import SimpleNamespace from enum import Enum, EnumMeta, auto from textwrap import dedent # Import the PUT (package under test) import hdl21 as h def test_version(): assert h.__version__ == "0.2.0" def test_module1(): ...
27.902886
99
0.622879
import sys, copy, pytest from io import StringIO from types import SimpleNamespace from enum import Enum, EnumMeta, auto from textwrap import dedent import hdl21 as h def test_version(): assert h.__version__ == "0.2.0" def test_module1(): @h.module class M1: a = h.Input() b = h.Outpu...
true
true
1c39dd1ce758aca3ce61780686afa04337bd16b5
3,328
py
Python
SCRM/cloud_plugin/urls.py
prakashar11/secure-cloud-native-fabric
8a6c51d8744c33afb8edc1455caaccb011f7e1de
[ "Apache-2.0" ]
2
2019-07-30T05:53:36.000Z
2019-10-26T20:11:52.000Z
SCRM/cloud_plugin/urls.py
prakashar11/secure-cloud-native-fabric
8a6c51d8744c33afb8edc1455caaccb011f7e1de
[ "Apache-2.0" ]
6
2019-06-17T05:22:32.000Z
2021-06-10T21:36:22.000Z
SCRM/cloud_plugin/urls.py
prakashar11/secure-cloud-native-fabric
8a6c51d8744c33afb8edc1455caaccb011f7e1de
[ "Apache-2.0" ]
3
2019-10-26T21:20:02.000Z
2020-06-01T14:25:17.000Z
# # Copyright 2019 Altran. 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 ...
36.977778
151
0.684495
from django.conf.urls import url from .views import MonitoredObject, Policies,VpcList, CrispPostureGraph, CrispPostureMap, Auditor, RunAuditor, PolicyTemplate, PolicyInstances, Clouds from rest_framework.urlpatterns import format_suffix_patterns from . import views urlpatterns = [ url(r'^index/$',...
true
true
1c39dd2dd92e8e1ee3914fc886a249531e1665e8
11,894
py
Python
skimage/feature/tests/test_corner.py
atemysemicolon/scikit-image
a48cf5822f9539c6602b9327c18253aed14fa692
[ "BSD-3-Clause" ]
1
2016-01-26T06:14:58.000Z
2016-01-26T06:14:58.000Z
skimage/feature/tests/test_corner.py
atemysemicolon/scikit-image
a48cf5822f9539c6602b9327c18253aed14fa692
[ "BSD-3-Clause" ]
null
null
null
skimage/feature/tests/test_corner.py
atemysemicolon/scikit-image
a48cf5822f9539c6602b9327c18253aed14fa692
[ "BSD-3-Clause" ]
null
null
null
import numpy as np from numpy.testing import (assert_array_equal, assert_raises, assert_almost_equal) from skimage import data from skimage import img_as_float from skimage.color import rgb2gray from skimage.morphology import octagon from skimage.feature import (corner_moravec, corner_harri...
35.610778
78
0.523962
import numpy as np from numpy.testing import (assert_array_equal, assert_raises, assert_almost_equal) from skimage import data from skimage import img_as_float from skimage.color import rgb2gray from skimage.morphology import octagon from skimage.feature import (corner_moravec, corner_harri...
true
true
1c39ddc0de426696ab88abf4bdf8f1734b66de8b
3,769
py
Python
setup.py
NickleDave/williams
bfc362e82dfa5785116e11142e90e7f6908255b0
[ "BSD-3-Clause" ]
null
null
null
setup.py
NickleDave/williams
bfc362e82dfa5785116e11142e90e7f6908255b0
[ "BSD-3-Clause" ]
null
null
null
setup.py
NickleDave/williams
bfc362e82dfa5785116e11142e90e7f6908255b0
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # adopted from Kenneth Reitz # https://github.com/kennethreitz/setup.py # released under MIT license # (https://github.com/kennethreitz/setup.py/blob/master/LICENSE) # Note: To use the 'upload' functionality of this file, you must: # $ pip install twine import io impor...
27.311594
81
0.647652
import io import os import sys from shutil import rmtree from setuptools import find_packages, setup, Command NAME = 'williams' DESCRIPTION = 'experiments with stochastic semilinear units and REINFORCE' URL = 'https://github.com/NickleDave/williams' EMAIL = 'dnicho4@emory.edu' AUTHOR = 'David Nicholson' R...
true
true
1c39de8304e631a1f28c5979e046c66e978f553d
841
py
Python
triplinker/accounts/migrations/0010_auto_20201009_1212.py
GonnaFlyMethod/triplinker
f4189e499ad48fd9102dd2211a8884078136eae9
[ "MIT" ]
null
null
null
triplinker/accounts/migrations/0010_auto_20201009_1212.py
GonnaFlyMethod/triplinker
f4189e499ad48fd9102dd2211a8884078136eae9
[ "MIT" ]
null
null
null
triplinker/accounts/migrations/0010_auto_20201009_1212.py
GonnaFlyMethod/triplinker
f4189e499ad48fd9102dd2211a8884078136eae9
[ "MIT" ]
null
null
null
# Generated by Django 3.0.8 on 2020-10-09 12:12 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('accounts', '0009_userphotogallery'), ] operations = [ migrations.CreateModel( name='PersonalQualities', fields=[ ...
28.033333
114
0.557669
from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('accounts', '0009_userphotogallery'), ] operations = [ migrations.CreateModel( name='PersonalQualities', fields=[ ('id', models.AutoField(auto_creat...
true
true
1c39dea512b95a1df786c32d360d7cdf2afe45c9
7,698
py
Python
lib/googlecloudsdk/command_lib/concepts/dependency_managers.py
bshaffer/google-cloud-sdk
f587382fd112f238c0d6d5ca3dab8f52d2b5c5f9
[ "Apache-2.0" ]
null
null
null
lib/googlecloudsdk/command_lib/concepts/dependency_managers.py
bshaffer/google-cloud-sdk
f587382fd112f238c0d6d5ca3dab8f52d2b5c5f9
[ "Apache-2.0" ]
null
null
null
lib/googlecloudsdk/command_lib/concepts/dependency_managers.py
bshaffer/google-cloud-sdk
f587382fd112f238c0d6d5ca3dab8f52d2b5c5f9
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2018 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 requir...
34.675676
78
0.681865
from __future__ import absolute_import from __future__ import division from __future__ import unicode_literals import functools from googlecloudsdk.calliope.concepts import deps as deps_lib from googlecloudsdk.command_lib.concepts import base from googlecloudsdk.command_lib.concepts import exceptions f...
true
true
1c39defa19c7d3ded9d65cfde924d0d825e870ad
10,956
py
Python
utils/performance.py
mmaguero/NCRFpp
65486d0160f24349751eafc307fa72be9f586b6e
[ "Apache-2.0" ]
null
null
null
utils/performance.py
mmaguero/NCRFpp
65486d0160f24349751eafc307fa72be9f586b6e
[ "Apache-2.0" ]
null
null
null
utils/performance.py
mmaguero/NCRFpp
65486d0160f24349751eafc307fa72be9f586b6e
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python3 """ Development Version: Python 3.5.1 Author: Benjamin Cordier Description: Module For Performance Assessment of Classification Task License: BSD 3 Clause -- Copyright 2018 Benjamin Cordier Redistribution and use in source and binary forms, with or without modification, are permitted provi...
45.841004
172
0.580869
import math from collections import OrderedDict class Performance(object): __metrics = { "statistics" : { "accuracy" : lambda tp, tn, fp, fn: (tp + tn) / (tp + tn + fp + fn) if (tp + tn) > 0 else 0.0, "f1score" : lambda tp, tn, fp, fn: (2 * ...
true
true
1c39e00af8e8ccde2480fb3d4ba00de71126bf44
18,212
py
Python
reordering.py
dawn-ico/grid-experiments
882d73d2dc2f3dadeeb71dde6731c21397f37092
[ "MIT" ]
null
null
null
reordering.py
dawn-ico/grid-experiments
882d73d2dc2f3dadeeb71dde6731c21397f37092
[ "MIT" ]
null
null
null
reordering.py
dawn-ico/grid-experiments
882d73d2dc2f3dadeeb71dde6731c21397f37092
[ "MIT" ]
null
null
null
from grid_types import Grid, DEVICE_MISSING_VALUE, GridSet from location_type import LocationType from schemas import * import numpy as np import netCDF4 from functools import cmp_to_key NaN = float("nan") def apply_permutation( ncf, perm: np.ndarray, schema: GridScheme, location_type: LocationType ) -> None: ...
35.992095
119
0.527729
from grid_types import Grid, DEVICE_MISSING_VALUE, GridSet from location_type import LocationType from schemas import * import numpy as np import netCDF4 from functools import cmp_to_key NaN = float("nan") def apply_permutation( ncf, perm: np.ndarray, schema: GridScheme, location_type: LocationType ) -> None: ...
true
true
1c39e059a56049c710059e652ade0e3185fb9417
1,253
py
Python
examples/fastapi_app.py
euri10/starsessions
6bd258a0f94d30b6ec4a8da41910f97c5dabbe54
[ "MIT" ]
31
2021-07-15T13:00:06.000Z
2022-03-17T08:25:52.000Z
examples/fastapi_app.py
euri10/starsessions
6bd258a0f94d30b6ec4a8da41910f97c5dabbe54
[ "MIT" ]
6
2021-09-01T15:25:20.000Z
2022-03-13T07:29:19.000Z
examples/fastapi_app.py
euri10/starsessions
6bd258a0f94d30b6ec4a8da41910f97c5dabbe54
[ "MIT" ]
5
2021-08-19T04:46:35.000Z
2022-03-09T15:27:22.000Z
"""This examples demonstrates integration with FastAPI This example requires `fastapi` to be installed: > pip install fastapi Usage: > uvicorn examples.fastapi_app:app Access localhost:8000/set to set test session data, and access localhost:8000/clean to clear session data """ import datetime import typing as t from...
25.571429
73
0.727853
import datetime import typing as t from fastapi import FastAPI from fastapi.requests import Request from fastapi.responses import JSONResponse, RedirectResponse from starsessions import SessionMiddleware app = FastAPI() app.add_middleware(SessionMiddleware, secret_key='secret', autoload=True) @app.get('/', respons...
true
true
1c39e0a1a6217c4f10bf7fdf63a9f7ab4623c775
658
py
Python
blender/arm/logicnode/math/LN_vector_clamp_to_size.py
Lykdraft/armory
da1cf33930ce9a8b1865d35c128fe4842bef2933
[ "Zlib" ]
null
null
null
blender/arm/logicnode/math/LN_vector_clamp_to_size.py
Lykdraft/armory
da1cf33930ce9a8b1865d35c128fe4842bef2933
[ "Zlib" ]
null
null
null
blender/arm/logicnode/math/LN_vector_clamp_to_size.py
Lykdraft/armory
da1cf33930ce9a8b1865d35c128fe4842bef2933
[ "Zlib" ]
null
null
null
from arm.logicnode.arm_nodes import * class VectorClampToSizeNode(ArmLogicTreeNode): """Use to keep the vector value inside the defined range.""" bl_idname = 'LNVectorClampToSizeNode' bl_label = 'Vector Clamp To Size' arm_version = 1 def init(self, context): super(VectorClampToSizeNode, se...
38.705882
86
0.709726
from arm.logicnode.arm_nodes import * class VectorClampToSizeNode(ArmLogicTreeNode): bl_idname = 'LNVectorClampToSizeNode' bl_label = 'Vector Clamp To Size' arm_version = 1 def init(self, context): super(VectorClampToSizeNode, self).init(context) self.add_input('NodeSocketVector', 'Vec...
true
true
1c39e11671ad141a09092bdd7164187b5921998b
7,217
py
Python
influxdb_client/domain/slack_notification_rule_base.py
MASIFAYUB/influxdb-client-python
a067fa5670a6fbc600db2ac4e54e29e1b7124998
[ "MIT" ]
null
null
null
influxdb_client/domain/slack_notification_rule_base.py
MASIFAYUB/influxdb-client-python
a067fa5670a6fbc600db2ac4e54e29e1b7124998
[ "MIT" ]
null
null
null
influxdb_client/domain/slack_notification_rule_base.py
MASIFAYUB/influxdb-client-python
a067fa5670a6fbc600db2ac4e54e29e1b7124998
[ "MIT" ]
null
null
null
# coding: utf-8 """ InfluxDB OSS API Service. The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech """ import pprint import re # noqa:...
34.864734
539
0.608979
import pprint import re import six from influxdb_client.domain.notification_rule_discriminator import NotificationRuleDiscriminator class SlackNotificationRuleBase(NotificationRuleDiscriminator): openapi_types = { 'type': 'str', 'channel': 'str', 'message_template': 'str', ...
true
true
1c39e1f46642f562a9a58cee4cfedac1f0c43963
762
py
Python
useGoogleTranslate.py
babebeebaboo/WordCookiesLIST
5909bdd6667ed3d18f6e008c2562d3483e609c7f
[ "MIT" ]
1
2021-07-07T21:07:56.000Z
2021-07-07T21:07:56.000Z
useGoogleTranslate.py
babebeebaboo/WordCookiesLIST
5909bdd6667ed3d18f6e008c2562d3483e609c7f
[ "MIT" ]
null
null
null
useGoogleTranslate.py
babebeebaboo/WordCookiesLIST
5909bdd6667ed3d18f6e008c2562d3483e609c7f
[ "MIT" ]
null
null
null
from googletrans import Translator import random import operator as op import math import sys import itertools def run(): length = int(input("Length(-1 to quit): ")) if length == -1 : sys.exit() translator = Translator() translateShuffleWord = [] shuffleWord = [] ans = [] for i in itertools...
25.4
60
0.60105
from googletrans import Translator import random import operator as op import math import sys import itertools def run(): length = int(input("Length(-1 to quit): ")) if length == -1 : sys.exit() translator = Translator() translateShuffleWord = [] shuffleWord = [] ans = [] for i in itertools...
true
true
1c39e2c26a297f9fffddc0d096b983f1e7b2c225
9,455
py
Python
bindings/python/capstone/sparc_const.py
arizvisa/capstone
e1998a28c4cacbf70f3d4ca148aa0eac23213475
[ "BSD-3-Clause" ]
null
null
null
bindings/python/capstone/sparc_const.py
arizvisa/capstone
e1998a28c4cacbf70f3d4ca148aa0eac23213475
[ "BSD-3-Clause" ]
null
null
null
bindings/python/capstone/sparc_const.py
arizvisa/capstone
e1998a28c4cacbf70f3d4ca148aa0eac23213475
[ "BSD-3-Clause" ]
null
null
null
# For Capstone Engine. AUTO-GENERATED FILE, DO NOT EDIT [sparc_const.py] # Enums corresponding to Sparc condition codes, both icc's and fcc's. SPARC_CC_INVALID = 0 # Integer condition codes SPARC_CC_ICC_A = 8+256 SPARC_CC_ICC_N = 0+256 SPARC_CC_ICC_NE = 9+256 SPARC_CC_ICC_E = 1+256 SPARC_CC_ICC_G = 10+256 SPARC_CC_I...
21.247191
72
0.807403
SPARC_CC_INVALID = 0 SPARC_CC_ICC_A = 8+256 SPARC_CC_ICC_N = 0+256 SPARC_CC_ICC_NE = 9+256 SPARC_CC_ICC_E = 1+256 SPARC_CC_ICC_G = 10+256 SPARC_CC_ICC_LE = 2+256 SPARC_CC_ICC_GE = 11+256 SPARC_CC_ICC_L = 3+256 SPARC_CC_ICC_GU = 12+256 SPARC_CC_ICC_LEU = 4+256 SPARC_CC_ICC_CC = 13+256 SPARC_CC_ICC_CS = 5+256 SPARC...
true
true
1c39e2fab3f7eb9a227fdeba5b0d6ed471103be8
473
py
Python
content/posts/faking-python-imports/code/main.py
NathanVaughn/blog.nathanv.me-hugo
381955333a497914b1e1d1e26db37ccbda86923e
[ "MIT" ]
1
2020-01-30T16:02:38.000Z
2020-01-30T16:02:38.000Z
content/posts/faking-python-imports/code/main.py
NathanVaughn/blog.nathanv.me-hugo
381955333a497914b1e1d1e26db37ccbda86923e
[ "MIT" ]
14
2019-09-16T05:51:28.000Z
2021-10-15T00:16:56.000Z
content/posts/faking-python-imports/code/main.py
NathanVaughn/blog.nathanv.me-hugo
381955333a497914b1e1d1e26db37ccbda86923e
[ "MIT" ]
null
null
null
import sys import c VAL = 20 print("The real value of c.func is: {}".format(c.func(VAL))) # ideally, you would have never imported this module sys.modules.pop("c") # create reference to real import so we don't lose it a_real_import = __import__("a") a_fake_import = __import__("b") # fake the import sys.modules["a"...
22.52381
60
0.712474
import sys import c VAL = 20 print("The real value of c.func is: {}".format(c.func(VAL))) sys.modules.pop("c") a_real_import = __import__("a") a_fake_import = __import__("b") # fake the import sys.modules["a"] = a_fake_import import c # set it back to the real value sys.modules["a"] = a_real_import print("The f...
true
true
1c39e4542a0969dd1be70c3e2bcf2c5197b76976
7,474
py
Python
bot/cogs/help.py
Kobu/MasarykBOT
9a6b6a026b4f39afaca5ab509c90f6da09e169a0
[ "MIT" ]
13
2019-09-14T16:51:35.000Z
2021-03-03T22:20:44.000Z
bot/cogs/help.py
Kobu/MasarykBOT
9a6b6a026b4f39afaca5ab509c90f6da09e169a0
[ "MIT" ]
15
2019-09-29T19:25:31.000Z
2022-02-13T16:40:45.000Z
bot/cogs/help.py
Kobu/MasarykBOT
9a6b6a026b4f39afaca5ab509c90f6da09e169a0
[ "MIT" ]
15
2019-09-18T10:50:59.000Z
2022-02-11T20:55:19.000Z
import asyncio import itertools import discord from discord.ext import commands from .utils.paginator import Pages class HelpPaginator(Pages): def __init__(self, help_command, ctx, entries, *, per_page=4): super().__init__(ctx, entries=entries, per_page=per_page) self.reaction_emojis.append( ...
35.932692
92
0.61734
import asyncio import itertools import discord from discord.ext import commands from .utils.paginator import Pages class HelpPaginator(Pages): def __init__(self, help_command, ctx, entries, *, per_page=4): super().__init__(ctx, entries=entries, per_page=per_page) self.reaction_emojis.append( ...
true
true
1c39e4d37682c58f6b0bd26a132a4bb2379313a9
1,069
py
Python
mmpose/apis/__init__.py
jiangtaoo2333/mmpose
00e12ddc224b492e9c903df96d09aa04c3f2a5f3
[ "Apache-2.0" ]
null
null
null
mmpose/apis/__init__.py
jiangtaoo2333/mmpose
00e12ddc224b492e9c903df96d09aa04c3f2a5f3
[ "Apache-2.0" ]
null
null
null
mmpose/apis/__init__.py
jiangtaoo2333/mmpose
00e12ddc224b492e9c903df96d09aa04c3f2a5f3
[ "Apache-2.0" ]
null
null
null
# Copyright (c) OpenMMLab. All rights reserved. from .inference import (inference_bottom_up_pose_model,RMinference_top_down_pose_model, inference_top_down_pose_model, init_pose_model, process_mmdet_results, vis_pose_result) from .inference_3d import (extract_pose_sequence...
53.45
87
0.755847
from .inference import (inference_bottom_up_pose_model,RMinference_top_down_pose_model, inference_top_down_pose_model, init_pose_model, process_mmdet_results, vis_pose_result) from .inference_3d import (extract_pose_sequence, inference_interhand_3d_model, ...
true
true
1c39e519c33b9ae45a9b9f1373ec1c644ae313eb
12,152
py
Python
jenkinsapi_tests/unittests/test_plugins.py
ward-peng/jenkinsapi
f77259d36f3cb45fd82e79d9bf8fca9dda9f6966
[ "MIT" ]
null
null
null
jenkinsapi_tests/unittests/test_plugins.py
ward-peng/jenkinsapi
f77259d36f3cb45fd82e79d9bf8fca9dda9f6966
[ "MIT" ]
1
2019-07-03T11:16:39.000Z
2019-07-03T11:16:39.000Z
jenkinsapi_tests/unittests/test_plugins.py
TwistoPayments/jenkinsapi
aa3e23289b666feb02e1bde89aa2f75ca14cbd56
[ "MIT" ]
null
null
null
""" jenkinsapi_tests.test_plugins """ import mock # To run unittests on python 2.6 please use unittest2 library try: import unittest2 as unittest except ImportError: import unittest try: from StringIO import StringIO # python2 except ImportError: from io import BytesIO as StringIO # python3 import zi...
38.334385
79
0.563611
import mock try: import unittest2 as unittest except ImportError: import unittest try: from StringIO import StringIO except ImportError: from io import BytesIO as StringIO import zipfile from jenkinsapi.jenkins import Requester from jenkinsapi.jenkins import Jenkins from jenkinsapi.plugins import...
true
true
1c39e6b7bfa4026293ba7f48cff72b75babd8ec7
15,846
py
Python
elasticsearch/_sync/client/nodes.py
stevepentland/elasticsearch-py
5a512a8f822ce2eff93fbc75f3629973427519bd
[ "Apache-2.0" ]
null
null
null
elasticsearch/_sync/client/nodes.py
stevepentland/elasticsearch-py
5a512a8f822ce2eff93fbc75f3629973427519bd
[ "Apache-2.0" ]
null
null
null
elasticsearch/_sync/client/nodes.py
stevepentland/elasticsearch-py
5a512a8f822ce2eff93fbc75f3629973427519bd
[ "Apache-2.0" ]
null
null
null
# Licensed to Elasticsearch B.V. under one or more contributor # license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright # ownership. Elasticsearch B.V. licenses this file to you under # the Apache License, Version 2.0 (the "License"); you may # not use ...
44.139276
123
0.629181
from typing import Any, Dict, List, Optional, Union from elastic_transport import ObjectApiResponse, TextApiResponse from ._base import NamespacedClient from .utils import SKIP_IN_PATH, _quote, _rewrite_parameters class NodesClient(NamespacedClient): @_rewrite_parameters() def hot_threads( ...
true
true
1c39e6bae743ac99b3e22d020d76719ff4de7e4c
569
py
Python
src/conf.py
mix2zeta/social-d
923cc2b224470e940ae6ac9cc712adb685c1b216
[ "MIT" ]
null
null
null
src/conf.py
mix2zeta/social-d
923cc2b224470e940ae6ac9cc712adb685c1b216
[ "MIT" ]
null
null
null
src/conf.py
mix2zeta/social-d
923cc2b224470e940ae6ac9cc712adb685c1b216
[ "MIT" ]
1
2021-03-11T09:07:11.000Z
2021-03-11T09:07:11.000Z
from dataclasses import dataclass import os @dataclass class settings: @dataclass class DATABASE: PGHOST: str = os.environ["PGHOST"] PGPORT: str = os.environ["PGPORT"] PGDBNAME: str = os.environ["PGDBNAME"] PGUSER: str = os.environ["PGUSER"] PGPASSWORD: str = os.environ...
27.095238
50
0.650264
from dataclasses import dataclass import os @dataclass class settings: @dataclass class DATABASE: PGHOST: str = os.environ["PGHOST"] PGPORT: str = os.environ["PGPORT"] PGDBNAME: str = os.environ["PGDBNAME"] PGUSER: str = os.environ["PGUSER"] PGPASSWORD: str = os.environ...
true
true
1c39e826c505c7f544a6b4004a45c4c5d6122363
1,567
py
Python
mime/envs/table_envs/tower_env.py
nikwl/mime-release
2f3d09d1d04bee2505bbb416f960c90f73f4346c
[ "MIT" ]
13
2020-06-24T10:52:28.000Z
2021-07-23T03:05:27.000Z
mime/envs/table_envs/tower_env.py
nikwl/mime-release
2f3d09d1d04bee2505bbb416f960c90f73f4346c
[ "MIT" ]
1
2020-08-18T12:45:15.000Z
2020-08-18T12:45:15.000Z
mime/envs/table_envs/tower_env.py
nikwl/mime-release
2f3d09d1d04bee2505bbb416f960c90f73f4346c
[ "MIT" ]
3
2020-09-09T18:17:46.000Z
2021-09-06T09:43:45.000Z
from .tower_scene import TowerScene from .table_env import TableEnv from .table_cam_env import TableCamEnv import numpy as np class TowerEnv(TableEnv): """ Tower environment, trajectory observation, linear tool control """ def __init__(self, **kwargs): scene = TowerScene(**kwargs) super(Tower...
32.645833
104
0.644544
from .tower_scene import TowerScene from .table_env import TableEnv from .table_cam_env import TableCamEnv import numpy as np class TowerEnv(TableEnv): def __init__(self, **kwargs): scene = TowerScene(**kwargs) super(TowerEnv, self).__init__(scene) self.observation_space = self._make_dic...
true
true
1c39e9326c83dea15da67c3d3d62970f9952f41d
10,185
py
Python
tests/test_packet_builder.py
hansroh/aioquic
491869f9faab05d8bcbcbabb2a4f9244e0cd06f9
[ "BSD-3-Clause" ]
null
null
null
tests/test_packet_builder.py
hansroh/aioquic
491869f9faab05d8bcbcbabb2a4f9244e0cd06f9
[ "BSD-3-Clause" ]
null
null
null
tests/test_packet_builder.py
hansroh/aioquic
491869f9faab05d8bcbcbabb2a4f9244e0cd06f9
[ "BSD-3-Clause" ]
2
2019-11-05T22:55:03.000Z
2020-06-12T12:57:36.000Z
from unittest import TestCase from aioquic.quic.crypto import CryptoPair from aioquic.quic.packet import ( PACKET_TYPE_HANDSHAKE, PACKET_TYPE_INITIAL, PACKET_TYPE_ONE_RTT, QuicFrameType, QuicProtocolVersion, ) from aioquic.quic.packet_builder import ( QuicPacketBuilder, QuicPacketBuilderSto...
33.725166
88
0.606578
from unittest import TestCase from aioquic.quic.crypto import CryptoPair from aioquic.quic.packet import ( PACKET_TYPE_HANDSHAKE, PACKET_TYPE_INITIAL, PACKET_TYPE_ONE_RTT, QuicFrameType, QuicProtocolVersion, ) from aioquic.quic.packet_builder import ( QuicPacketBuilder, QuicPacketBuilderSto...
true
true
1c39e94973e2435380a45b7fbc88ce61e57de438
747
py
Python
post/migrations/0001_initial.py
zmojtaba/Django-code-post
1aa8ea60080239258ae5f1ca3f7facd6d548b2d9
[ "MIT" ]
null
null
null
post/migrations/0001_initial.py
zmojtaba/Django-code-post
1aa8ea60080239258ae5f1ca3f7facd6d548b2d9
[ "MIT" ]
null
null
null
post/migrations/0001_initial.py
zmojtaba/Django-code-post
1aa8ea60080239258ae5f1ca3f7facd6d548b2d9
[ "MIT" ]
null
null
null
# Generated by Django 3.0.3 on 2020-11-13 15:21 import datetime from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Post', fields=[ ('id', mode...
28.730769
114
0.572959
import datetime from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Post', fields=[ ('id', models.AutoField(auto_created=True, primary_key=Tru...
true
true
1c39e9fb9b8cf85d0e162ed57e110e82d4a13824
28,196
py
Python
csv2bufr/__init__.py
tomkralidis/CSV2BUFR
ba7ce4ed2bb41e42fcb9d03f10049ffc6a2073f8
[ "Apache-2.0" ]
null
null
null
csv2bufr/__init__.py
tomkralidis/CSV2BUFR
ba7ce4ed2bb41e42fcb9d03f10049ffc6a2073f8
[ "Apache-2.0" ]
null
null
null
csv2bufr/__init__.py
tomkralidis/CSV2BUFR
ba7ce4ed2bb41e42fcb9d03f10049ffc6a2073f8
[ "Apache-2.0" ]
null
null
null
############################################################################### # # 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 fi...
39.161111
123
0.533586
t, "value": None, "csv_column": None, "jsonpath": None, "valid_min": None, "valid_max": None, "scale": None, "offset": None } template["data"].appen...
true
true
1c39ea212f29f4b670366b9a6e4ef3ba23026a48
2,112
py
Python
tests/models/symbol/alarm_test.py
NetApp/santricity-webapi-pythonsdk
1d3df4a00561192f4cdcdd1890f4d27547ed2de2
[ "BSD-3-Clause-Clear" ]
5
2016-08-23T17:52:22.000Z
2019-05-16T08:45:30.000Z
tests/models/symbol/alarm_test.py
NetApp/santricity-webapi-pythonsdk
1d3df4a00561192f4cdcdd1890f4d27547ed2de2
[ "BSD-3-Clause-Clear" ]
2
2016-11-10T05:30:21.000Z
2019-04-05T15:03:37.000Z
tests/models/symbol/alarm_test.py
NetApp/santricity-webapi-pythonsdk
1d3df4a00561192f4cdcdd1890f4d27547ed2de2
[ "BSD-3-Clause-Clear" ]
7
2016-08-25T16:11:44.000Z
2021-02-22T05:31:25.000Z
#!/usr/bin/env python # coding: utf-8 """ The Clear BSD License Copyright (c) – 2016, NetApp, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted (subject to the limitations in the disclaimer below) provided that the following conditions...
55.578947
845
0.766098
import unittest from netapp.santricity.models.symbol.alarm import Alarm class AlarmTest(unittest.TestCase): def test_alarm(self): alarm_obj = Alarm() self.assertNotEqual(alarm_obj, None)
true
true
1c39eb03b62b8f90c8a9a5f1726780d591b4195b
3,416
py
Python
tests/test_optimizers.py
Javicadserres/dnetworks
ff648a24dbc6d882c0986feb9c23549d30a9c1e8
[ "MIT" ]
1
2021-02-07T22:47:11.000Z
2021-02-07T22:47:11.000Z
tests/test_optimizers.py
Javicadserres/dnetworks
ff648a24dbc6d882c0986feb9c23549d30a9c1e8
[ "MIT" ]
1
2021-01-30T23:37:24.000Z
2021-02-07T21:06:30.000Z
tests/test_optimizers.py
Javicadserres/DNet
173f9dfa35ae1cff8dbeec3c1d24cb00990b41a6
[ "MIT" ]
null
null
null
import numpy as np import dnetworks from dnetworks import SGD, RMSprop, Adam from .test_utils import test_parameters_optimizers def test_sgd(): """ Tests Stochastic gradient descent optimization class. """ weights, bias, dW, db = test_parameters_optimizers() expected_weights = np.array( ...
32.533333
75
0.661007
import numpy as np import dnetworks from dnetworks import SGD, RMSprop, Adam from .test_utils import test_parameters_optimizers def test_sgd(): weights, bias, dW, db = test_parameters_optimizers() expected_weights = np.array( [[-0.17310385, -0.87734562, 0.04230592], [ 0.58351704, -1....
true
true
1c39eb79a723b7c27a77ce7f7e120981453c52eb
4,175
py
Python
venv/lib/python3.8/site-packages/tests/test.py
julio9246/hg-poker-api
56805601bc26bf8bb80e05235ae22a59a174af09
[ "Apache-2.0" ]
null
null
null
venv/lib/python3.8/site-packages/tests/test.py
julio9246/hg-poker-api
56805601bc26bf8bb80e05235ae22a59a174af09
[ "Apache-2.0" ]
null
null
null
venv/lib/python3.8/site-packages/tests/test.py
julio9246/hg-poker-api
56805601bc26bf8bb80e05235ae22a59a174af09
[ "Apache-2.0" ]
null
null
null
from py_postgresql_wrapper.configuration import Configuration from py_postgresql_wrapper.database import Database, Page Configuration.instance(configuration_file='configuration.json') def test_create_table(): with Database() as database: database.execute(''' drop table if exists test ...
31.870229
124
0.621078
from py_postgresql_wrapper.configuration import Configuration from py_postgresql_wrapper.database import Database, Page Configuration.instance(configuration_file='configuration.json') def test_create_table(): with Database() as database: database.execute(''' drop table if exists test ...
true
true
1c39ebdbdc6d584b05bc200ab2e7204acc597dc9
14,241
py
Python
discovery-infra/start_discovery.py
nmagnezi/assisted-test-infra
a31dc4350d77681038a16c05d9a1e09fa992578a
[ "Apache-2.0" ]
null
null
null
discovery-infra/start_discovery.py
nmagnezi/assisted-test-infra
a31dc4350d77681038a16c05d9a1e09fa992578a
[ "Apache-2.0" ]
null
null
null
discovery-infra/start_discovery.py
nmagnezi/assisted-test-infra
a31dc4350d77681038a16c05d9a1e09fa992578a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- import argparse import dns.resolver import ipaddress import json import os import pprint import time import uuid from distutils.dir_util import copy_tree from pathlib import Path import bm_inventory_api import consts import install_cluster import utils import waiting from lo...
33.508235
118
0.649884
import argparse import dns.resolver import ipaddress import json import os import pprint import time import uuid from distutils.dir_util import copy_tree from pathlib import Path import bm_inventory_api import consts import install_cluster import utils import waiting from logger import log def _create_ip_address...
true
true
1c39ed4d45a3b5b0ec6dda5a6a04cced4f458431
4,998
py
Python
functions/get_Proposals.py
GuillaumeBalezo/SOD-python
c54566d25e01b252815fbc613a8d0af1c77818b6
[ "MIT" ]
null
null
null
functions/get_Proposals.py
GuillaumeBalezo/SOD-python
c54566d25e01b252815fbc613a8d0af1c77818b6
[ "MIT" ]
null
null
null
functions/get_Proposals.py
GuillaumeBalezo/SOD-python
c54566d25e01b252815fbc613a8d0af1c77818b6
[ "MIT" ]
null
null
null
# Functions for generating the proposal set for optimization # # Jianming Zhang, Stan Sclaroff, Zhe Lin, Xiaohui Shen, # Brian Price and Radomír Mech. "Unconstrained Salient # Object Detection via Proposal Subset Optimization." # CVPR, 2016. # Code written by Guillaume Balezo, 2020 import numpy as np from scipy import...
35.956835
143
0.622449
# Object Detection via Proposal Subset Optimization." import numpy as np from scipy import cluster import cv2 from tensorflow.keras.applications.vgg16 import preprocess_input from tensorflow.keras.preprocessing.image import load_img from functions.utils import get_iou_float, get_roi_bbox def get_proposals(I_bat...
true
true
1c39ee0d09d309601976177d3ee3b77136688f28
598
gyp
Python
Dependencies/gyp-master/test/link-objects/link-objects.gyp
knight666/exlibris
b21b46e0c84e5c4f81f8048022cda88e7bb3dca2
[ "MIT" ]
null
null
null
Dependencies/gyp-master/test/link-objects/link-objects.gyp
knight666/exlibris
b21b46e0c84e5c4f81f8048022cda88e7bb3dca2
[ "MIT" ]
null
null
null
Dependencies/gyp-master/test/link-objects/link-objects.gyp
knight666/exlibris
b21b46e0c84e5c4f81f8048022cda88e7bb3dca2
[ "MIT" ]
null
null
null
# Copyright (c) 2009 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'targets': [ { 'target_name': 'link-objects', 'type': 'executable', 'actions': [ { 'action_name': 'build ext...
23.92
73
0.4699
{ 'targets': [ { 'target_name': 'link-objects', 'type': 'executable', 'actions': [ { 'action_name': 'build extra object', 'inputs': ['extra.c'], 'outputs': ['extra.o'], 'action': ['gcc', '-o', 'extra.o', '-c', 'extra.c'], ...
true
true
1c39ee4c86ec9922e58fdf773cb6aa7bd3757d51
26
py
Python
btd6_memory_info/generated/UnityEngine/PlayerLoop/Initialization/initialization.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/UnityEngine/PlayerLoop/Initialization/initialization.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/UnityEngine/PlayerLoop/Initialization/initialization.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
class Initialization: pass
26
26
0.884615
class Initialization: pass
true
true
1c39eff48d75c5db6921826a3a317ebc0b7bbe05
8,176
py
Python
test/functional/feature_part_smsgpaidfee.py
empower-network/empower
3b63fbfe394574855d176262d604060f49ad77c1
[ "MIT" ]
2
2019-06-26T23:49:53.000Z
2019-08-13T06:49:56.000Z
test/functional/feature_part_smsgpaidfee.py
empower-network/empower
3b63fbfe394574855d176262d604060f49ad77c1
[ "MIT" ]
null
null
null
test/functional/feature_part_smsgpaidfee.py
empower-network/empower
3b63fbfe394574855d176262d604060f49ad77c1
[ "MIT" ]
4
2019-08-07T04:36:40.000Z
2021-07-07T03:21:31.000Z
#!/usr/bin/env python3 # Copyright (c) 2017-2019 The Particl Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. import struct import copy from test_framework.test_empower import EmpowerTestFramework from test_framewo...
38.566038
201
0.603229
import struct import copy from test_framework.test_empower import EmpowerTestFramework from test_framework.util import connect_nodes, assert_raises_rpc_error def getvarint(bb, ofs=0): i = bb[ofs] & 0x7F nb = 1 ofs += 1 while (bb[ofs-1] & 0x80): i += (bb[ofs] & 0x7F) << (7 * nb) o...
true
true
1c39f11b3ba73675d5f201c56b4c1885141547f8
1,668
py
Python
googlevoice/tests.py
nathanhere/pygooglevoice
d5662f6d9fb2e023e75553044bc5bfae0be61815
[ "BSD-3-Clause" ]
156
2015-01-07T00:34:33.000Z
2022-03-13T01:14:53.000Z
googlevoice/tests.py
nathanhere/pygooglevoice
d5662f6d9fb2e023e75553044bc5bfae0be61815
[ "BSD-3-Clause" ]
51
2015-02-06T14:58:39.000Z
2021-10-01T23:00:13.000Z
googlevoice/tests.py
nathanhere/pygooglevoice
d5662f6d9fb2e023e75553044bc5bfae0be61815
[ "BSD-3-Clause" ]
94
2015-02-06T18:44:48.000Z
2022-02-10T01:29:34.000Z
import os from unittest import TestCase, main from six.moves import input from googlevoice import Voice from googlevoice import conf class VoiceTest(TestCase): voice = Voice() voice.login() outgoing = input('Outgoing number (blank to ignore call tests): ') forwarding = None if outgoing: ...
26.0625
70
0.63789
import os from unittest import TestCase, main from six.moves import input from googlevoice import Voice from googlevoice import conf class VoiceTest(TestCase): voice = Voice() voice.login() outgoing = input('Outgoing number (blank to ignore call tests): ') forwarding = None if outgoing: ...
true
true
1c39f121bfc197bc668023b153d241ed81092a0a
1,090
py
Python
Wardies/urls.py
HabeshaQueen/Awards
956fad404d9910660266eb8e1819418b78a788b6
[ "Unlicense" ]
null
null
null
Wardies/urls.py
HabeshaQueen/Awards
956fad404d9910660266eb8e1819418b78a788b6
[ "Unlicense" ]
2
2021-03-19T00:53:00.000Z
2021-06-08T19:56:23.000Z
Wardies/urls.py
HabeshaQueen/Awards
956fad404d9910660266eb8e1819418b78a788b6
[ "Unlicense" ]
null
null
null
"""Wardies URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-ba...
35.16129
79
0.700917
from django.conf.urls import url,include from django.contrib import admin from django.contrib.auth import views from rest_framework.authtoken.views import obtain_auth_token urlpatterns = [ url(r'^admin/', admin.site.urls), url(r'',include('Wards.urls')), url(r'^accounts/', include('registration.backends.s...
true
true
1c39f1537f68410a285118d7a096bbcbbb42619e
1,357
py
Python
CONFidence CTF 2014/Main event/Crypto Machine/solution/exploit.py
IMULMUL/ctf-tasks
9c1549c71aa5fc876f3a46751de226320dc879af
[ "Apache-2.0" ]
581
2019-02-20T08:53:36.000Z
2022-03-20T13:29:29.000Z
CONFidence CTF 2014/Main event/Crypto Machine/solution/exploit.py
Ma3k4H3d/ctf-tasks
67b3564307a20a9175bcf695ce9643fb80d4652f
[ "Apache-2.0" ]
null
null
null
CONFidence CTF 2014/Main event/Crypto Machine/solution/exploit.py
Ma3k4H3d/ctf-tasks
67b3564307a20a9175bcf695ce9643fb80d4652f
[ "Apache-2.0" ]
61
2019-02-20T10:57:42.000Z
2021-07-02T06:53:09.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Filename: exploit.py # Author: Mateusz Jurczyk # Task: Crypto Machine # Competition: CONFidence CTF 2014 # Category: Software exploitation # Scoring: 200 pts (medium difficulty) # Number of solves: 0 out of 11...
24.232143
73
0.619749
import struct import socket import telnetlib import time def dw(x): return struct.pack("<H", x) def dd(x): return struct.pack("<I", x) def dq(x): return struct.pack("<Q", x) def main(): s = socket.socket() s.connect(("127.0.0.1", 1337)) ta = "Hello world" s.send(dq(0...
true
true
1c39f1ea98462e3117259b5d9f662239c15c73a0
92,975
py
Python
Lib/test/test_mailbox.py
sireliah/polish-python
605df4944c2d3bc25f8bf6964b274c0a0d297cc3
[ "PSF-2.0" ]
1
2018-06-21T18:21:24.000Z
2018-06-21T18:21:24.000Z
Lib/test/test_mailbox.py
sireliah/polish-python
605df4944c2d3bc25f8bf6964b274c0a0d297cc3
[ "PSF-2.0" ]
null
null
null
Lib/test/test_mailbox.py
sireliah/polish-python
605df4944c2d3bc25f8bf6964b274c0a0d297cc3
[ "PSF-2.0" ]
null
null
null
zaimportuj os zaimportuj sys zaimportuj time zaimportuj stat zaimportuj socket zaimportuj email zaimportuj email.message zaimportuj re zaimportuj io zaimportuj shutil zaimportuj tempfile z test zaimportuj support zaimportuj unittest zaimportuj textwrap zaimportuj mailbox zaimportuj glob spróbuj: zaimportuj fcntl wy...
40.635927
91
0.608013
zaimportuj os zaimportuj sys zaimportuj time zaimportuj stat zaimportuj socket zaimportuj email zaimportuj email.message zaimportuj re zaimportuj io zaimportuj shutil zaimportuj tempfile z test zaimportuj support zaimportuj unittest zaimportuj textwrap zaimportuj mailbox zaimportuj glob spróbuj: zaimportuj fcntl wy...
false
true
1c39f1f3573625b65fb6b63b7c9c5f1b016fc439
1,838
py
Python
package/spack-r-affycontam/package.py
ctuning/ck-spack
307934efce1be2d4f104251275c82fbc70127105
[ "BSD-3-Clause" ]
1
2018-07-17T07:45:09.000Z
2018-07-17T07:45:09.000Z
package/spack-r-affycontam/package.py
ctuning/ck-spack
307934efce1be2d4f104251275c82fbc70127105
[ "BSD-3-Clause" ]
null
null
null
package/spack-r-affycontam/package.py
ctuning/ck-spack
307934efce1be2d4f104251275c82fbc70127105
[ "BSD-3-Clause" ]
null
null
null
############################################################################## # Copyright (c) 2013-2018, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory. # # This file is part of Spack. # Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved. # LLNL-CODE-64...
44.829268
128
0.673014
true
true
1c39f2d3d02b95bc196458142e48edfd8407d931
7,545
py
Python
policy/td3.py
dkkim93/gumbel-rl-gridworld
902352ed3e10b551472f5c28933864ca17f82e12
[ "MIT" ]
4
2019-07-20T02:46:54.000Z
2021-03-09T13:07:27.000Z
policy/td3.py
Nedaned/gumbel-marl-gridworld
2ec86bc6cf7c16d5ef0368c9dc4a83062d3d86e3
[ "MIT" ]
null
null
null
policy/td3.py
Nedaned/gumbel-marl-gridworld
2ec86bc6cf7c16d5ef0368c9dc4a83062d3d86e3
[ "MIT" ]
2
2020-09-28T16:05:32.000Z
2021-03-15T13:15:14.000Z
"""Modified Twin Delayed Deep Deterministic Policy Gradients (TD3) TD3 Ref: https://github.com/sfujim/TD3 """ import torch import torch.nn as nn import torch.nn.functional as F import numpy as np from misc.utils import onehot_from_logits, gumbel_softmax device = torch.device("cuda" if torch.cuda.is_available() else "c...
39.502618
106
0.60729
import torch import torch.nn as nn import torch.nn.functional as F import numpy as np from misc.utils import onehot_from_logits, gumbel_softmax device = torch.device("cuda" if torch.cuda.is_available() else "cpu") class Actor(nn.Module): def __init__(self, actor_input_dim, actor_output_dim, n_hidden, n_action, n...
true
true
1c39f33f152b69d3caa02ce9ce7545ca11e23004
1,814
py
Python
setup.py
OpenPeerPower/supervisor
39a3226041caa34b2dabb54f76d8e88c06d50155
[ "Apache-2.0" ]
1
2021-11-19T12:03:03.000Z
2021-11-19T12:03:03.000Z
setup.py
OpenPeerPower/supervisor
39a3226041caa34b2dabb54f76d8e88c06d50155
[ "Apache-2.0" ]
null
null
null
setup.py
OpenPeerPower/supervisor
39a3226041caa34b2dabb54f76d8e88c06d50155
[ "Apache-2.0" ]
null
null
null
"""Open Peer Power Supervisor setup.""" from setuptools import setup from supervisor.const import SUPERVISOR_VERSION setup( name="Supervisor", version=SUPERVISOR_VERSION, license="BSD License", author="The Open Peer Power Authors", author_email="hello@openpeerpower.io", url="https://openpeerpo...
32.981818
87
0.627343
from setuptools import setup from supervisor.const import SUPERVISOR_VERSION setup( name="Supervisor", version=SUPERVISOR_VERSION, license="BSD License", author="The Open Peer Power Authors", author_email="hello@openpeerpower.io", url="https://openpeerpower.io/", description=("Open-source ...
true
true
1c39f57ebadec3283331504a168a0ad14f3c8d8c
2,055
py
Python
src/source_wkpd/wiki_source_obj.py
Aluriak/24hducode2016
629a3225c5a426d3deb472d67f0e0091904d1547
[ "Unlicense" ]
null
null
null
src/source_wkpd/wiki_source_obj.py
Aluriak/24hducode2016
629a3225c5a426d3deb472d67f0e0091904d1547
[ "Unlicense" ]
null
null
null
src/source_wkpd/wiki_source_obj.py
Aluriak/24hducode2016
629a3225c5a426d3deb472d67f0e0091904d1547
[ "Unlicense" ]
null
null
null
""" Definition of a source than adds Wikipédia data. """ from src.default import * from src.source import Source #import src.wkpd.wikipedia_parse as wkp from src.source_wkpd import wikipedia_parse as wkp class WikiSource(Source): """docstring de class""" def __init__(self): self.funny_keys = set(...
31.136364
77
0.569343
from src.default import * from src.source import Source from src.source_wkpd import wikipedia_parse as wkp class WikiSource(Source): def __init__(self): self.funny_keys = set() def enrichment(self, data_dict): if FIELD_NA...
true
true
1c39f727dd39651a1793e6825b30540d3352e9a7
26,609
py
Python
koku/masu/database/aws_report_db_accessor.py
bsquizz/koku
386dd6ca4a4fd1b50790a929acc81d2dc245a91c
[ "Apache-2.0" ]
null
null
null
koku/masu/database/aws_report_db_accessor.py
bsquizz/koku
386dd6ca4a4fd1b50790a929acc81d2dc245a91c
[ "Apache-2.0" ]
null
null
null
koku/masu/database/aws_report_db_accessor.py
bsquizz/koku
386dd6ca4a4fd1b50790a929acc81d2dc245a91c
[ "Apache-2.0" ]
null
null
null
# # Copyright 2021 Red Hat Inc. # SPDX-License-Identifier: Apache-2.0 # """Database accessor for report data.""" import json import logging import pkgutil import uuid from dateutil.parser import parse from django.conf import settings from django.db import connection from django.db.models import F from jinjasql import ...
44.127695
120
0.655605
import json import logging import pkgutil import uuid from dateutil.parser import parse from django.conf import settings from django.db import connection from django.db.models import F from jinjasql import JinjaSql from tenant_schemas.utils import schema_context from trino.exceptions import TrinoExternalError fro...
true
true
1c39f840d1d2ab0810391c98197958d8e0340acb
1,227
py
Python
.modules/.metagoofil/processor.py
termux-one/EasY_HaCk
0a8d09ca4b126b027b6842e02fa0c29d8250e090
[ "Apache-2.0" ]
1,103
2018-04-20T14:08:11.000Z
2022-03-29T06:22:43.000Z
.modules/.metagoofil/processor.py
sshourya948/EasY_HaCk
0a8d09ca4b126b027b6842e02fa0c29d8250e090
[ "Apache-2.0" ]
29
2019-04-03T14:52:38.000Z
2022-03-24T12:33:05.000Z
.modules/.metagoofil/processor.py
sshourya948/EasY_HaCk
0a8d09ca4b126b027b6842e02fa0c29d8250e090
[ "Apache-2.0" ]
262
2017-09-16T22:15:50.000Z
2022-03-31T00:38:42.000Z
#Christian Martorella 2011 ''' This class will sort the results and create unique list of software, users and paths ''' class processor(): def __init__(self,list): self.list = list self.unique_users = [] self.unique_soft = [] self.stat_soft = [] self.unique_paths = [] def print_all(self): for x ...
20.114754
84
0.556642
''' This class will sort the results and create unique list of software, users and paths ''' class processor(): def __init__(self,list): self.list = list self.unique_users = [] self.unique_soft = [] self.stat_soft = [] self.unique_paths = [] def print_all(self): for x in self.list: print x...
false
true
1c39f85d98024e1f191b3e92b15dd3b3e349b5e1
8,767
py
Python
tests/providers_test.py
Asjidkalam/studio
5a4f2bbd6a2e3508d740404b0177f21c0c412f6e
[ "Apache-2.0" ]
null
null
null
tests/providers_test.py
Asjidkalam/studio
5a4f2bbd6a2e3508d740404b0177f21c0c412f6e
[ "Apache-2.0" ]
1
2021-02-08T15:42:00.000Z
2021-02-08T15:42:00.000Z
tests/providers_test.py
Asjidkalam/studio
5a4f2bbd6a2e3508d740404b0177f21c0c412f6e
[ "Apache-2.0" ]
1
2021-02-08T15:38:56.000Z
2021-02-08T15:38:56.000Z
import unittest import inspect import yaml import uuid import os import time import six import shutil from studio import model from studio.firebase_provider import FirebaseProvider from studio.postgres_provider import PostgresProvider from studio.s3_provider import S3Provider from studio.auth import remove_all_keys fr...
34.789683
77
0.639557
import unittest import inspect import yaml import uuid import os import time import six import shutil from studio import model from studio.firebase_provider import FirebaseProvider from studio.postgres_provider import PostgresProvider from studio.s3_provider import S3Provider from studio.auth import remove_all_keys fr...
true
true
1c39fa63b000568faf65b90c206d0fb5ea691a09
784
py
Python
services/backend/app/api/auth.py
miguelalb/resume-portal-fastapi
286f732510925c5ad3760ca2af82098ed78e0dd9
[ "BSD-3-Clause" ]
1
2022-02-28T02:29:02.000Z
2022-02-28T02:29:02.000Z
services/backend/app/api/auth.py
miguelalb/resume-portal-fastapi
286f732510925c5ad3760ca2af82098ed78e0dd9
[ "BSD-3-Clause" ]
null
null
null
services/backend/app/api/auth.py
miguelalb/resume-portal-fastapi
286f732510925c5ad3760ca2af82098ed78e0dd9
[ "BSD-3-Clause" ]
null
null
null
from app import crud, schemas from app.dependencies import get_db from app.security import authenticate_user, create_access_token from fastapi import APIRouter, Depends, status from sqlalchemy.orm import Session router = APIRouter() @router.post("/login") async def login(user_in: schemas.UserLogin, db: Session = Dep...
34.086957
81
0.769133
from app import crud, schemas from app.dependencies import get_db from app.security import authenticate_user, create_access_token from fastapi import APIRouter, Depends, status from sqlalchemy.orm import Session router = APIRouter() @router.post("/login") async def login(user_in: schemas.UserLogin, db: Session = Dep...
true
true
1c39fa755029bf8e012024a8e85eda8529fb046e
8,984
py
Python
dataset/clip_generator.py
yuananf/Voice-Cloning-App
5996f971232fd8056cd2514b196df44bffef0d34
[ "BSD-3-Clause" ]
null
null
null
dataset/clip_generator.py
yuananf/Voice-Cloning-App
5996f971232fd8056cd2514b196df44bffef0d34
[ "BSD-3-Clause" ]
null
null
null
dataset/clip_generator.py
yuananf/Voice-Cloning-App
5996f971232fd8056cd2514b196df44bffef0d34
[ "BSD-3-Clause" ]
1
2021-07-22T08:29:12.000Z
2021-07-22T08:29:12.000Z
import argparse import os import logging import json import uuid import shutil from pathlib import Path from pydub import AudioSegment import dataset.forced_alignment.align as align from dataset.forced_alignment.search import FuzzySearch from dataset.forced_alignment.audio import DEFAULT_RATE from dataset.audio_proces...
33.901887
114
0.675534
import argparse import os import logging import json import uuid import shutil from pathlib import Path from pydub import AudioSegment import dataset.forced_alignment.align as align from dataset.forced_alignment.search import FuzzySearch from dataset.forced_alignment.audio import DEFAULT_RATE from dataset.audio_proces...
true
true
1c39fba6acb33be18e0143c0ffd889f24a117da6
4,404
py
Python
src/pymortests/sylvester.py
weslowrie/pymor
badb5078b2394162d04a1ebfefe9034b889dac64
[ "Unlicense" ]
1
2020-12-31T18:45:48.000Z
2020-12-31T18:45:48.000Z
src/pymortests/sylvester.py
TreeerT/pymor
e8b18d2d4c4b5998f0bd84f6728e365e0693b753
[ "Unlicense" ]
4
2022-03-17T10:07:38.000Z
2022-03-30T12:41:06.000Z
src/pymortests/sylvester.py
TreeerT/pymor
e8b18d2d4c4b5998f0bd84f6728e365e0693b753
[ "Unlicense" ]
null
null
null
# This file is part of the pyMOR project (http://www.pymor.org). # Copyright 2013-2020 pyMOR developers and contributors. All rights reserved. # License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) import numpy as np import scipy.linalg as spla import scipy.sparse as sps from pymor.algorithms.s...
26.214286
77
0.585831
import numpy as np import scipy.linalg as spla import scipy.sparse as sps from pymor.algorithms.sylvester import solve_sylv_schur from pymor.operators.numpy import NumpyMatrixOperator import pytest n_list = [100, 1000] r_list = [1, 10, 20] m_list = [1, 2] p_list = [1, 2] def fro_norm(A): if not sps.isspar...
true
true
1c39fe76c1f399b2f771ca5be27723a225538a27
8,347
py
Python
docs/source/conf.py
GabrielFritz/DTCR-Retail
e961cb5230c940318eb022a7fee2f0058780e284
[ "MIT" ]
null
null
null
docs/source/conf.py
GabrielFritz/DTCR-Retail
e961cb5230c940318eb022a7fee2f0058780e284
[ "MIT" ]
null
null
null
docs/source/conf.py
GabrielFritz/DTCR-Retail
e961cb5230c940318eb022a7fee2f0058780e284
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright 2018-2019 QuantumBlack Visual Analytics 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/...
32.352713
81
0.677848
import re from kedro.cli.utils import find_stylesheets from recommonmark.transform import AutoStructify from ts_clustering import __version__ as release project = "ts_clustering" copyright = "2018-2019, QuantumBlack Visual Analytics Limited" author = "QuantumBlack" ...
true
true
1c39feaeae94c0bc499563a7804647f96374a2a2
1,905
py
Python
pyeto/_check.py
gcamargo1/PyETo
2dbbdecad04fdd25976beefe3953062cb3f04064
[ "BSD-3-Clause" ]
1
2018-12-17T10:57:05.000Z
2018-12-17T10:57:05.000Z
pyeto/_check.py
mwheels/PyETo
fa4f78ada2b1de9f7e8c10648f0a58baa6d79bd3
[ "BSD-3-Clause" ]
null
null
null
pyeto/_check.py
mwheels/PyETo
fa4f78ada2b1de9f7e8c10648f0a58baa6d79bd3
[ "BSD-3-Clause" ]
null
null
null
""" Internal validation functions. :copyright: (c) 2015 by Mark Richards. :license: BSD 3-Clause, see LICENSE.txt for more details. """ from pyeto.convert import deg2rad # Internal constants # Latitude _MINLAT_RADIANS = deg2rad(-90.0) _MAXLAT_RADIANS = deg2rad(90.0) # Solar declination _MINSOLDEC_RADIANS = deg2rad(-...
27.214286
78
0.649344
from pyeto.convert import deg2rad _MINLAT_RADIANS = deg2rad(-90.0) _MAXLAT_RADIANS = deg2rad(90.0) _MINSOLDEC_RADIANS = deg2rad(-23.5) _MAXSOLDEC_RADIANS = deg2rad(23.5) _MINSHA_RADIANS = 0.0 _MAXSHA_RADIANS = deg2rad(180) def check_day_hours(hours, arg_name): if not 0 <= hours <= 24: raise ValueEr...
true
true
1c39ffe2f7f5a6174766372a64e6a4f384c8b2d1
6,931
py
Python
salted/input_handler.py
RuedigerVoigt/salted
97886014b7a582d943758d65307db2bc03197f6e
[ "Apache-2.0" ]
4
2020-11-24T09:18:36.000Z
2022-01-13T20:32:21.000Z
salted/input_handler.py
RuedigerVoigt/salted
97886014b7a582d943758d65307db2bc03197f6e
[ "Apache-2.0" ]
11
2020-11-30T23:11:48.000Z
2022-02-25T23:47:44.000Z
salted/input_handler.py
RuedigerVoigt/salted
97886014b7a582d943758d65307db2bc03197f6e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- """ Input Handler for salted ~~~~~~~~~~~~~~~~~~~~~ Source: https://github.com/RuedigerVoigt/salted (c) 2020-2021: Rüdiger Voigt Released under the Apache License 2.0 """ from collections import Counter import logging import pathlib from typing import List, Optional import ur...
37.874317
80
0.553023
from collections import Counter import logging import pathlib from typing import List, Optional import urllib.parse import userprovided from tqdm.asyncio import tqdm from salted import database_io from salted import parser class InputHandler: def __init__(self, db: database_io.DatabaseIO...
true
true
1c3a012eff61b3f8dc43f89b7561938c442c0588
2,196
py
Python
lib/node_modules/@stdlib/math/base/special/sincos/benchmark/python/benchmark.py
ghalimi/stdlib
88f50b88aa945875ef053e2f89d26f9150a18c12
[ "BSL-1.0" ]
3,428
2016-07-14T13:48:46.000Z
2022-03-31T22:32:13.000Z
lib/node_modules/@stdlib/math/base/special/sincos/benchmark/python/benchmark.py
ghalimi/stdlib
88f50b88aa945875ef053e2f89d26f9150a18c12
[ "BSL-1.0" ]
435
2016-04-07T18:12:45.000Z
2022-03-22T15:43:17.000Z
lib/node_modules/@stdlib/math/base/special/sincos/benchmark/python/benchmark.py
sthagen/stdlib
042b6215818db0e2a784e72c7e054167dcefcd2a
[ "BSL-1.0" ]
188
2016-11-29T22:58:11.000Z
2022-03-17T06:46:43.000Z
#!/usr/bin/env python # # @license Apache-2.0 # # Copyright (c) 2018 The Stdlib 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 # # ...
22.408163
74
0.631603
from __future__ import print_function import timeit NAME = "sincos" REPEATS = 3 ITERATIONS = 1000000 def print_version(): print("TAP version 13") def print_summary(total, passing): print("#") print("1.." + str(total)) print("# total " + str(total)) print("# pass " + str(pa...
true
true
1c3a01509c43b5982a2e565f209bb2f980cd1989
932
py
Python
py/desisim/test/test_top_level.py
HiramHerrera/desisim
3ae76e4c921f72b71ff7522462740e904136f428
[ "BSD-3-Clause" ]
15
2015-12-16T22:01:53.000Z
2022-01-14T07:31:55.000Z
py/desisim/test/test_top_level.py
HiramHerrera/desisim
3ae76e4c921f72b71ff7522462740e904136f428
[ "BSD-3-Clause" ]
455
2015-04-06T03:11:27.000Z
2022-02-28T18:11:16.000Z
py/desisim/test/test_top_level.py
HiramHerrera/desisim
3ae76e4c921f72b71ff7522462740e904136f428
[ "BSD-3-Clause" ]
21
2015-01-26T17:45:04.000Z
2022-02-22T19:46:20.000Z
# Licensed under a 3-clause BSD style license - see LICENSE.rst # -*- coding: utf-8 -*- """ test top-level desisim functions """ # from __future__ import absolute_import, division, print_function # import unittest import re from .. import __version__ as theVersion # class TestTopLevel(unittest.TestCase): @classmet...
28.242424
98
0.660944
from __future__ import absolute_import, division, print_function import unittest import re from .. import __version__ as theVersion class TestTopLevel(unittest.TestCase): @classmethod def setUpClass(cls): cls.versionre = re.compile(r'([0-9]+!)?([0-9]+)(\.[0-9]+)*((a|b|rc|\.post|\.dev)[0-9]+)?') ...
true
true
1c3a035bbccea8366fcfa766c69145e4ec0d73ca
64,359
py
Python
python/paddle/nn/functional/pooling.py
joey12300/Paddle
59102c6dcd2def3091f5c37816354ac69d669809
[ "Apache-2.0" ]
1
2021-03-11T13:16:50.000Z
2021-03-11T13:16:50.000Z
python/paddle/nn/functional/pooling.py
AFLee/Paddle
311b3b44fc7d51d4d66d90ab8a3fc0d42231afda
[ "Apache-2.0" ]
null
null
null
python/paddle/nn/functional/pooling.py
AFLee/Paddle
311b3b44fc7d51d4d66d90ab8a3fc0d42231afda
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020 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-2.0 # # Unless required by app...
45.515559
248
0.582234
from ...fluid import core from ...fluid.framework import in_dygraph_mode from ...fluid.layers import utils, LayerHelper, unsqueeze, squeeze from ...fluid.data_feeder import check_type, check_variable_and_dtype __all__ = [ 'avg_pool1d', 'avg_pool2d', 'avg_pool3d', 'max_pool1d', 'max_p...
true
true
1c3a0489faa5738e1ae8fa620e28a30b3b94d720
2,746
py
Python
src/lib/mqtt/sensor.py
l-maia/viseron
d762be93db74f780db13ac332bf8673c41592aa9
[ "MIT" ]
null
null
null
src/lib/mqtt/sensor.py
l-maia/viseron
d762be93db74f780db13ac332bf8673c41592aa9
[ "MIT" ]
null
null
null
src/lib/mqtt/sensor.py
l-maia/viseron
d762be93db74f780db13ac332bf8673c41592aa9
[ "MIT" ]
null
null
null
import json from lib.helpers import slugify class MQTTSensor: def __init__(self, config, mqtt_queue, name): self._config = config self._mqtt_queue = mqtt_queue self._name = f"{config.mqtt.client_id} {config.camera.name} {name}" self._device_name = f"{config.mqtt.client_id} {config....
29.212766
84
0.600874
import json from lib.helpers import slugify class MQTTSensor: def __init__(self, config, mqtt_queue, name): self._config = config self._mqtt_queue = mqtt_queue self._name = f"{config.mqtt.client_id} {config.camera.name} {name}" self._device_name = f"{config.mqtt.client_id} {config....
true
true
1c3a05c7780dc4b89e6509fe42e1252e48bf8c32
1,256
py
Python
sequentialAI.py
gauderkd/minesweeper
2d514a18eb1828dfa577e6eb80ede36198e798f9
[ "MIT" ]
null
null
null
sequentialAI.py
gauderkd/minesweeper
2d514a18eb1828dfa577e6eb80ede36198e798f9
[ "MIT" ]
1
2018-05-07T22:44:33.000Z
2018-05-07T22:48:08.000Z
sequentialAI.py
gauderkd/minesweeper
2d514a18eb1828dfa577e6eb80ede36198e798f9
[ "MIT" ]
null
null
null
import minesweeper as ms import random class SeqAI(ms.GameAI): def __init__(self): self.width = 0 self.height = 0 self.exposed_squares = set() def init(self, config): self.width = config.width self.height = config.height self.x = self.width self.y = sel...
27.304348
121
0.56449
import minesweeper as ms import random class SeqAI(ms.GameAI): def __init__(self): self.width = 0 self.height = 0 self.exposed_squares = set() def init(self, config): self.width = config.width self.height = config.height self.x = self.width self.y = sel...
true
true
1c3a06a9617799adff0fc38ffb2f2c20583fe833
11,265
py
Python
dregcli/tests/tests_unit/test_client.py
jssuzanne/dregcli
328e8aacf4e46f538e2b62c8c3cceba002feb367
[ "MIT" ]
null
null
null
dregcli/tests/tests_unit/test_client.py
jssuzanne/dregcli
328e8aacf4e46f538e2b62c8c3cceba002feb367
[ "MIT" ]
1
2019-04-12T13:46:52.000Z
2019-04-15T15:26:47.000Z
dregcli/tests/tests_unit/test_client.py
jssuzanne/dregcli
328e8aacf4e46f538e2b62c8c3cceba002feb367
[ "MIT" ]
1
2019-04-12T13:44:53.000Z
2019-04-12T13:44:53.000Z
import os import requests import sys from unittest import mock import pytest sys.path.append( os.path.join(os.path.dirname(os.path.realpath(__file__)), os.pardir) ) import tools from fixtures import ( fixture_registry_url, fixture_repositories_url, fixture_repository, fixture_repositories, fixt...
35.990415
78
0.631425
import os import requests import sys from unittest import mock import pytest sys.path.append( os.path.join(os.path.dirname(os.path.realpath(__file__)), os.pardir) ) import tools from fixtures import ( fixture_registry_url, fixture_repositories_url, fixture_repository, fixture_repositories, fixt...
true
true
1c3a072c9257cb35a4b114517b2326d9431865e8
1,040
py
Python
vkwave/bots/core/tokens/storage.py
tdakkota/vkwave
8d8f55a541f51ee76be398e0a646131697d3ba17
[ "MIT" ]
null
null
null
vkwave/bots/core/tokens/storage.py
tdakkota/vkwave
8d8f55a541f51ee76be398e0a646131697d3ba17
[ "MIT" ]
null
null
null
vkwave/bots/core/tokens/storage.py
tdakkota/vkwave
8d8f55a541f51ee76be398e0a646131697d3ba17
[ "MIT" ]
null
null
null
from typing import Dict, Generic, Optional, TypeVar from vkwave.api.token.token import AnyABCToken from .strategy import ABCGetTokenStrategy, NotImplementedGetTokenStrategy from .types import GroupId, UserId T = TypeVar("T", GroupId, UserId) class TokenStorage(Generic[T]): def __init__( self, av...
33.548387
73
0.698077
from typing import Dict, Generic, Optional, TypeVar from vkwave.api.token.token import AnyABCToken from .strategy import ABCGetTokenStrategy, NotImplementedGetTokenStrategy from .types import GroupId, UserId T = TypeVar("T", GroupId, UserId) class TokenStorage(Generic[T]): def __init__( self, av...
true
true
1c3a095fee2d73da2808d86e12fb875b52531c08
663
py
Python
manage.py
julesc00/bizland
ca5a6ddf71f9e7fc2162e71f8abb9dbe8e9a2b15
[ "MIT" ]
null
null
null
manage.py
julesc00/bizland
ca5a6ddf71f9e7fc2162e71f8abb9dbe8e9a2b15
[ "MIT" ]
null
null
null
manage.py
julesc00/bizland
ca5a6ddf71f9e7fc2162e71f8abb9dbe8e9a2b15
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): """Run administrative tasks.""" os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'bizland.settings') try: from django.core.management import execute_from_command_line except Impo...
28.826087
73
0.678733
import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'bizland.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportError( "Couldn't import Django. Are you sure it's installed and " ...
true
true
1c3a097c66087f9cfbdc47a2c177917a90eb2c6e
6,555
py
Python
goblet/tests/test_pubsub.py
Aaron-Gill/goblet
30c0dd73b2f39e443adb2ccda6f9009e980c53ee
[ "Apache-2.0" ]
null
null
null
goblet/tests/test_pubsub.py
Aaron-Gill/goblet
30c0dd73b2f39e443adb2ccda6f9009e980c53ee
[ "Apache-2.0" ]
null
null
null
goblet/tests/test_pubsub.py
Aaron-Gill/goblet
30c0dd73b2f39e443adb2ccda6f9009e980c53ee
[ "Apache-2.0" ]
null
null
null
from goblet import Goblet from goblet.deploy import Deployer from goblet.resources.pubsub import PubSub from goblet.test_utils import get_responses, dummy_function from unittest.mock import Mock import base64 import pytest class TestPubSub: def test_add_topic(self): app = Goblet(function_name="goblet_exa...
36.416667
87
0.62868
from goblet import Goblet from goblet.deploy import Deployer from goblet.resources.pubsub import PubSub from goblet.test_utils import get_responses, dummy_function from unittest.mock import Mock import base64 import pytest class TestPubSub: def test_add_topic(self): app = Goblet(function_name="goblet_exa...
true
true
1c3a098bce7e34736029624bf9e5635352dd5aae
2,008
py
Python
librerias/redNeuronal.py
Hengstenberg11/RedesNeuronales
62bda5c8a6fc7f0e4207f7b6eb47617800bb3ebf
[ "MIT" ]
null
null
null
librerias/redNeuronal.py
Hengstenberg11/RedesNeuronales
62bda5c8a6fc7f0e4207f7b6eb47617800bb3ebf
[ "MIT" ]
null
null
null
librerias/redNeuronal.py
Hengstenberg11/RedesNeuronales
62bda5c8a6fc7f0e4207f7b6eb47617800bb3ebf
[ "MIT" ]
null
null
null
#Neural network utils #This code was not implemented by me import numpy as np from functools import reduce flatten_list_of_arrays = lambda list_of_arrays: reduce( lambda acc, v: np.array([*acc.flatten(), *v.flatten()]), list_of_arrays ) def inflate_matrixes(flat_thetas, shapes): layers = len(shapes) + 1 ...
26.077922
86
0.516932
import numpy as np from functools import reduce flatten_list_of_arrays = lambda list_of_arrays: reduce( lambda acc, v: np.array([*acc.flatten(), *v.flatten()]), list_of_arrays ) def inflate_matrixes(flat_thetas, shapes): layers = len(shapes) + 1 sizes = [shape[0] * shape[1] for shape in shapes] ...
true
true
1c3a0a13bcb236054b96031d2aecd04c21aae446
2,683
py
Python
paypal/standard/ipn/views.py
diegoguimaraes/django-paypal
a075698cfa7cded3a9fef9d7ec33f75c35abcd4a
[ "MIT" ]
1
2015-06-16T12:37:48.000Z
2015-06-16T12:37:48.000Z
paypal/standard/ipn/views.py
diegoguimaraes/django-paypal
a075698cfa7cded3a9fef9d7ec33f75c35abcd4a
[ "MIT" ]
null
null
null
paypal/standard/ipn/views.py
diegoguimaraes/django-paypal
a075698cfa7cded3a9fef9d7ec33f75c35abcd4a
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from django.http import HttpResponse, QueryDict from django.views.decorators.http import require_POST from django.views.decorators.csrf import csrf_exempt from paypal.standard.ipn.forms import PayPalIPNForm from paypal.standard.ipn.models import PayPalIPN @require_POST @c...
33.962025
83
0.637719
from django.http import HttpResponse, QueryDict from django.views.decorators.http import require_POST from django.views.decorators.csrf import csrf_exempt from paypal.standard.ipn.forms import PayPalIPNForm from paypal.standard.ipn.models import PayPalIPN @require_POST @csrf_exempt def ipn(request, item_check_calla...
true
true
1c3a0d6055b42ec0cbbe6d0de3b308f9cfea0620
46,749
bzl
Python
aspect/intellij_info_impl.bzl
Canva/bazelbuild-intellij
a878bf6d430bf4bdf0eacf1a2208a6bcc43beaab
[ "Apache-2.0" ]
10
2020-10-27T12:31:11.000Z
2021-12-12T05:37:55.000Z
aspect/intellij_info_impl.bzl
Canva/bazelbuild-intellij
a878bf6d430bf4bdf0eacf1a2208a6bcc43beaab
[ "Apache-2.0" ]
4
2020-08-04T02:05:42.000Z
2020-12-16T02:34:15.000Z
aspect/intellij_info_impl.bzl
Canva/bazelbuild-intellij
a878bf6d430bf4bdf0eacf1a2208a6bcc43beaab
[ "Apache-2.0" ]
2
2020-08-29T03:23:32.000Z
2021-09-30T12:10:12.000Z
"""Implementation of IntelliJ-specific information collecting aspect.""" load( ":artifacts.bzl", "artifact_location", "artifacts_from_target_list_attr", "is_external_artifact", "sources_from_target", "struct_omit_none", "to_artifact_location", ) load( ":make_variables.bzl", "expand_...
39.752551
182
0.692229
load( ":artifacts.bzl", "artifact_location", "artifacts_from_target_list_attr", "is_external_artifact", "sources_from_target", "struct_omit_none", "to_artifact_location", ) load( ":make_variables.bzl", "expand_make_variables", ) UNSUPPORTED_FEATURES = [ "thin_lto", "modu...
true
true
1c3a0ef8833d5f5f7f870585249aa59d0099ab33
1,446
py
Python
src/dms-preview/setup.py
michimune/azure-cli-extensions
697e2c674e5c0825d44c72d714542fe01331e107
[ "MIT" ]
1
2022-03-22T15:02:32.000Z
2022-03-22T15:02:32.000Z
src/dms-preview/setup.py
michimune/azure-cli-extensions
697e2c674e5c0825d44c72d714542fe01331e107
[ "MIT" ]
1
2018-11-19T05:12:58.000Z
2018-11-19T05:12:58.000Z
src/dms-preview/setup.py
michimune/azure-cli-extensions
697e2c674e5c0825d44c72d714542fe01331e107
[ "MIT" ]
1
2021-06-03T19:31:10.000Z
2021-06-03T19:31:10.000Z
#!/usr/bin/env python # -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # ---------------------------------------------...
34.428571
94
0.598893
from codecs import open from setuptools import setup, find_packages VERSION = "0.10.0" CLASSIFIERS = [ 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'Intended Audience :: System Administrators', 'Programming Language :: Python', 'Programming Language :: Python :: 2', ...
true
true
1c3a0f511fdff5f80c0a5f8c3f07040f6c7436aa
99,991
py
Python
env/Lib/site-packages/plotly/graph_objs/_streamtube.py
andresgreen-byte/Laboratorio-1--Inversion-de-Capital
8a4707301d19c3826c31026c4077930bcd6a8182
[ "MIT" ]
7
2022-01-16T12:28:16.000Z
2022-03-04T15:31:45.000Z
env/Lib/site-packages/plotly/graph_objs/_streamtube.py
andresgreen-byte/Laboratorio-1--Inversion-de-Capital
8a4707301d19c3826c31026c4077930bcd6a8182
[ "MIT" ]
14
2021-10-20T23:33:47.000Z
2021-12-21T04:50:37.000Z
env/Lib/site-packages/plotly/graph_objs/_streamtube.py
andresgreen-byte/Laboratorio-1--Inversion-de-Capital
8a4707301d19c3826c31026c4077930bcd6a8182
[ "MIT" ]
null
null
null
from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy class Streamtube(_BaseTraceType): # class properties # -------------------- _parent_path_str = "" _path_str = "streamtube" _valid_props = { "autocolorscale", "cauto", "cmax", "cmi...
36.333939
126
0.55325
from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy class Streamtube(_BaseTraceType): _parent_path_str = "" _path_str = "streamtube" _valid_props = { "autocolorscale", "cauto", "cmax", "cmid", "cmin", "coloraxis",...
true
true
1c3a0f86367d0b2648d0535180f1f5ee0e6746ce
6,571
py
Python
tests/ipfwd/test_dip_sip.py
shikenghua/sonic-mgmt
86dc68795794730dc25c91eb66b9fe3ae47538d8
[ "Apache-2.0" ]
null
null
null
tests/ipfwd/test_dip_sip.py
shikenghua/sonic-mgmt
86dc68795794730dc25c91eb66b9fe3ae47538d8
[ "Apache-2.0" ]
null
null
null
tests/ipfwd/test_dip_sip.py
shikenghua/sonic-mgmt
86dc68795794730dc25c91eb66b9fe3ae47538d8
[ "Apache-2.0" ]
null
null
null
import pytest import ptf.testutils as testutils from ipaddress import ip_address import logging TOPO_LIST = {'t0', 't1', 't1-lag'} PORTS_TOPO = {'t1'} LAG_TOPO = {'t0', 't1-lag'} DEFAULT_HLIM_TTL = 64 WAIT_EXPECTED_PACKET_TIMEOUT = 5 logger = logging.getLogger(__name__) @pytest.fixture(scope='function', autouse=Tru...
39.347305
123
0.697459
import pytest import ptf.testutils as testutils from ipaddress import ip_address import logging TOPO_LIST = {'t0', 't1', 't1-lag'} PORTS_TOPO = {'t1'} LAG_TOPO = {'t0', 't1-lag'} DEFAULT_HLIM_TTL = 64 WAIT_EXPECTED_PACKET_TIMEOUT = 5 logger = logging.getLogger(__name__) @pytest.fixture(scope='function', autouse=Tru...
true
true
1c3a0fc8179469d205422ebdf25455570f2a5fae
18,384
py
Python
Coloring/mayuyu.py
MuAuan/llightning-pytorch
38dc9ed75dd8e6f4a2a05e5a10072a549dcbf4d6
[ "MIT" ]
null
null
null
Coloring/mayuyu.py
MuAuan/llightning-pytorch
38dc9ed75dd8e6f4a2a05e5a10072a549dcbf4d6
[ "MIT" ]
null
null
null
Coloring/mayuyu.py
MuAuan/llightning-pytorch
38dc9ed75dd8e6f4a2a05e5a10072a549dcbf4d6
[ "MIT" ]
null
null
null
import numpy as np import torch import torchvision from torch.utils.data import DataLoader, random_split from torchvision import transforms import cv2 import matplotlib.pyplot as plt import glob import os from PIL import Image ts = transforms.ToPILImage() ts2 = transforms.ToTensor() ts3 = transforms.Grayscale() mean...
27.812405
179
0.652034
import numpy as np import torch import torchvision from torch.utils.data import DataLoader, random_split from torchvision import transforms import cv2 import matplotlib.pyplot as plt import glob import os from PIL import Image ts = transforms.ToPILImage() ts2 = transforms.ToTensor() ts3 = transforms.Grayscale() mean...
true
true
1c3a106d31f9fe7e2c4385f27c16c790a4732d10
2,351
py
Python
devel/test.py
h-vetinari/pybox2d
b273568a0e57d51ce41d20d012571186a1839620
[ "Zlib" ]
421
2015-01-28T19:53:12.000Z
2022-03-29T19:35:00.000Z
devel/test.py
h-vetinari/pybox2d
b273568a0e57d51ce41d20d012571186a1839620
[ "Zlib" ]
120
2015-01-24T00:38:48.000Z
2022-03-16T18:47:41.000Z
devel/test.py
h-vetinari/pybox2d
b273568a0e57d51ce41d20d012571186a1839620
[ "Zlib" ]
124
2015-03-11T02:11:25.000Z
2022-03-25T10:44:06.000Z
classname = "b2DebugDraw" gets = "GetFlags SetFlags ClearFlags AppendFlags".split(" ") sets = "".split(" ") kwargs = True # remove duplicates gets = list(set(gets)) sets = list(set(sets)) renames = ["%%rename(__%s) %s::%s;" % (s, classname, s) for s in gets+sets if s not in ('GetAnchorA', 'GetAnch...
24.747368
99
0.50957
classname = "b2DebugDraw" gets = "GetFlags SetFlags ClearFlags AppendFlags".split(" ") sets = "".split(" ") kwargs = True gets = list(set(gets)) sets = list(set(sets)) renames = ["%%rename(__%s) %s::%s;" % (s, classname, s) for s in gets+sets if s not in ('GetAnchorA', 'GetAnchorB', '')] gets_mo...
false
true
1c3a114f979fba909242856047e6d418f7d92ff4
4,052
py
Python
LC36 - Sudoku Validator.py
karthyvenky/LeetCode-Challenges
7015c741db3d84917915d6989669f9ffcaad9bd2
[ "CC0-1.0" ]
null
null
null
LC36 - Sudoku Validator.py
karthyvenky/LeetCode-Challenges
7015c741db3d84917915d6989669f9ffcaad9bd2
[ "CC0-1.0" ]
null
null
null
LC36 - Sudoku Validator.py
karthyvenky/LeetCode-Challenges
7015c741db3d84917915d6989669f9ffcaad9bd2
[ "CC0-1.0" ]
null
null
null
#%% nboard = \ [[".",".",".",".","5",".",".","1","."],\ [".","4",".","3",".",".",".",".","."],\ [".",".",".",".",".","3",".",".","1"],\ ["8",".",".",".",".",".",".","2","."],\ [".",".","2",".","7",".",".",".","."],\ [".","1","5",".",".",".",".",".","."],\ [".",".",".",".",".","2","."...
31.905512
89
0.291461
nboard = \ [[".",".",".",".","5",".",".","1","."],\ [".","4",".","3",".",".",".",".","."],\ [".",".",".",".",".","3",".",".","1"],\ ["8",".",".",".",".",".",".","2","."],\ [".",".","2",".","7",".",".",".","."],\ [".","1","5",".",".",".",".",".","."],\ [".",".",".",".",".","2",".","."...
true
true
1c3a129bbe9c3af1209933456706d1c2ec1f684a
248
py
Python
dms/v2/packages.py
moreal/DMS-api
9624e28764ec4535002677671e10a09d762d19a8
[ "MIT" ]
null
null
null
dms/v2/packages.py
moreal/DMS-api
9624e28764ec4535002677671e10a09d762d19a8
[ "MIT" ]
null
null
null
dms/v2/packages.py
moreal/DMS-api
9624e28764ec4535002677671e10a09d762d19a8
[ "MIT" ]
1
2018-09-29T14:35:20.000Z
2018-09-29T14:35:20.000Z
import sys for package in ('requests'): locals()[package] = __import__(package) for mod in list(sys.modules): if mod == package or mod.startswith(package + '.'): sys.modules['dms.v2.packages.' + mod] = sys.modules[mod]
31
68
0.620968
import sys for package in ('requests'): locals()[package] = __import__(package) for mod in list(sys.modules): if mod == package or mod.startswith(package + '.'): sys.modules['dms.v2.packages.' + mod] = sys.modules[mod]
true
true
1c3a12ef1cd4e0f581ffdaad005538696947690e
1,922
py
Python
tests/cli/helpers/temporary_directory.py
pyllyukko/plaso
7533db2d1035ca71d264d6281ebd5db2d073c587
[ "Apache-2.0" ]
2
2019-10-23T03:37:59.000Z
2020-08-14T17:09:26.000Z
tests/cli/helpers/temporary_directory.py
pyllyukko/plaso
7533db2d1035ca71d264d6281ebd5db2d073c587
[ "Apache-2.0" ]
null
null
null
tests/cli/helpers/temporary_directory.py
pyllyukko/plaso
7533db2d1035ca71d264d6281ebd5db2d073c587
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Tests for the temporary directory CLI arguments helper.""" import argparse import unittest from plaso.cli import tools from plaso.cli.helpers import temporary_directory from plaso.lib import errors from tests.cli import test_lib as cli_test_lib class TemporaryDirec...
30.507937
74
0.745057
import argparse import unittest from plaso.cli import tools from plaso.cli.helpers import temporary_directory from plaso.lib import errors from tests.cli import test_lib as cli_test_lib class TemporaryDirectoryArgumentsHelperTest(cli_test_lib.CLIToolTestCase): _EXPECTED_OUTPUT = """\ usage: cli_helper.py ...
true
true
1c3a149ad74473bd5f42e191543cf2c08692361f
1,224
py
Python
sphinx/testing/restructuredtext.py
rhssk/sphinx
3ce40c819eef50cc317e815b909747c3853b1c53
[ "BSD-2-Clause" ]
3
2020-01-04T16:46:59.000Z
2020-10-09T03:04:31.000Z
sphinx/testing/restructuredtext.py
rhssk/sphinx
3ce40c819eef50cc317e815b909747c3853b1c53
[ "BSD-2-Clause" ]
10
2021-06-16T20:48:32.000Z
2021-10-04T18:22:02.000Z
sphinx/testing/restructuredtext.py
rhssk/sphinx
3ce40c819eef50cc317e815b909747c3853b1c53
[ "BSD-2-Clause" ]
1
2019-11-05T15:21:55.000Z
2019-11-05T15:21:55.000Z
""" sphinx.testing.restructuredtext ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :copyright: Copyright 2007-2019 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. """ from os import path from docutils import nodes from docutils.core import publish_doctree from sphinx.application import Sph...
34
81
0.597222
from os import path from docutils import nodes from docutils.core import publish_doctree from sphinx.application import Sphinx from sphinx.io import SphinxStandaloneReader from sphinx.parsers import RSTParser from sphinx.util.docutils import sphinx_domains def parse(app: Sphinx, text: str, docname: str = 'index') ...
true
true
1c3a14d0e4d9b473800a1641dd453ca9f025be9b
8,014
py
Python
mobiletrans/mtdistmap/utils/generate_tiles.py
JoeJasinski/WindyTransit
b883c7eebe618923ecc7b1914a696543d8864215
[ "MIT" ]
1
2015-04-28T14:48:27.000Z
2015-04-28T14:48:27.000Z
mobiletrans/mtdistmap/utils/generate_tiles.py
JoeJasinski/WindyTransit
b883c7eebe618923ecc7b1914a696543d8864215
[ "MIT" ]
null
null
null
mobiletrans/mtdistmap/utils/generate_tiles.py
JoeJasinski/WindyTransit
b883c7eebe618923ecc7b1914a696543d8864215
[ "MIT" ]
null
null
null
#!/usr/bin/env python #Source: https://trac.openstreetmap.org/browser/subversion/applications/rendering/mapnik/generate_tiles.py from math import pi,cos,sin,log,exp,atan from subprocess import call import sys, os from Queue import Queue import threading try: import mapnik2 as mapnik except: import mapnik D...
30.942085
123
0.552284
from math import pi,cos,sin,log,exp,atan from subprocess import call import sys, os from Queue import Queue import threading try: import mapnik2 as mapnik except: import mapnik DEG_TO_RAD = pi/180 RAD_TO_DEG = 180/pi NUM_THREADS = 4 def minmax (a,b,c): a = max(a,b) a = min(a,c) return a ...
false
true
1c3a14e1e652ffa1a3d7f993ee01c34bfefbcfdb
17,195
py
Python
frigate/object_processing.py
vinodsr/frigate
3b04169c8b53b5653ad9b26d5bbe6313cbeff08d
[ "MIT" ]
1
2020-10-10T12:14:53.000Z
2020-10-10T12:14:53.000Z
frigate/object_processing.py
vinodsr/frigate
3b04169c8b53b5653ad9b26d5bbe6313cbeff08d
[ "MIT" ]
null
null
null
frigate/object_processing.py
vinodsr/frigate
3b04169c8b53b5653ad9b26d5bbe6313cbeff08d
[ "MIT" ]
null
null
null
import json import hashlib import datetime import time import copy import cv2 import threading import queue import copy import numpy as np from collections import Counter, defaultdict import itertools import pyarrow.plasma as plasma import matplotlib.pyplot as plt from frigate.util import draw_box_with_label, PlasmaFra...
45.731383
183
0.591335
import json import hashlib import datetime import time import copy import cv2 import threading import queue import copy import numpy as np from collections import Counter, defaultdict import itertools import pyarrow.plasma as plasma import matplotlib.pyplot as plt from frigate.util import draw_box_with_label, PlasmaFra...
true
true
1c3a14f6373f5e746766bdb8b5b9833d0933dd39
3,840
bzl
Python
repositories.bzl
halfbaked/gapic-generator-java
542ede4f7e0a55165daf243ec45d79fcfa2d2e20
[ "Apache-2.0" ]
null
null
null
repositories.bzl
halfbaked/gapic-generator-java
542ede4f7e0a55165daf243ec45d79fcfa2d2e20
[ "Apache-2.0" ]
null
null
null
repositories.bzl
halfbaked/gapic-generator-java
542ede4f7e0a55165daf243ec45d79fcfa2d2e20
[ "Apache-2.0" ]
null
null
null
# 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
39.587629
127
0.682031
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_jar") load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") load("@bazel_tools//tools/build_defs/repo:jvm.bzl", "jvm_maven_import_external") load("//:PROPERTIES.bzl", "PROPERTIES") def gapic_generator_java_repositories(): ...
true
true
1c3a17637ec9bb74600d9835d12ef7486281ba2a
9,274
py
Python
sdk/python/pulumi_azure_nextgen/network/v20150501preview/get_security_rule.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/network/v20150501preview/get_security_rule.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/network/v20150501preview/get_security_rule.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables __a...
43.952607
293
0.681583
import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables __all__ = [ 'GetSecurityRuleResult', 'AwaitableGetSecurityRuleResult', 'get_security_rule', ] @pulumi.output_type class GetSecurityRuleResult: def __in...
true
true
1c3a18b7e75cb6b3381baffca895ca2eb64b4af6
1,152
py
Python
models/model_factory.py
qiaozhijian/PLReg3D
35e7df28eb64abf6f6dc9f31c77e8042123242f3
[ "MIT" ]
1
2022-03-23T09:21:20.000Z
2022-03-23T09:21:20.000Z
models/model_factory.py
qiaozhijian/PLReg3D
35e7df28eb64abf6f6dc9f31c77e8042123242f3
[ "MIT" ]
null
null
null
models/model_factory.py
qiaozhijian/PLReg3D
35e7df28eb64abf6f6dc9f31c77e8042123242f3
[ "MIT" ]
1
2021-12-28T13:53:14.000Z
2021-12-28T13:53:14.000Z
# Author: Jacek Komorowski # Warsaw University of Technology import torch import models.minkloc as minkloc def model_factory(params): in_channels = 32 if params.use_unet else 1 if 'MinkFPN' in params.model_params.model: model = minkloc.MinkLoc(params.model_params.model, in_channels=in_channels, ...
39.724138
154
0.684028
import torch import models.minkloc as minkloc def model_factory(params): in_channels = 32 if params.use_unet else 1 if 'MinkFPN' in params.model_params.model: model = minkloc.MinkLoc(params.model_params.model, in_channels=in_channels, feature_size=params.model_params...
true
true
1c3a18c0791b43869415881c48904a49e629fe38
2,983
py
Python
examples/context_free_grammar_simple_parser.py
TuringApproved/Turing_Neural_Networks
50101d20c8dc7cfa37db46e0f29bd6d79f66eaad
[ "MIT" ]
3
2016-04-13T20:36:25.000Z
2018-11-14T11:12:51.000Z
examples/context_free_grammar_simple_parser.py
TuringMachinegun/Turing_Neural_Networks
50101d20c8dc7cfa37db46e0f29bd6d79f66eaad
[ "MIT" ]
null
null
null
examples/context_free_grammar_simple_parser.py
TuringMachinegun/Turing_Neural_Networks
50101d20c8dc7cfa37db46e0f29bd6d79f66eaad
[ "MIT" ]
null
null
null
__author__ = "Giovanni Sirio Carmantini" """In this file we reproduce the simple parser from beim Graben, P., & Potthast, R. (2014). Universal neural field computation. In Neural Fields (pp. 299-318). First, the Context Free Grammar is used to create a Generalized Shift, an NDA simulating the GS is then created, th...
27.62037
113
0.670801
__author__ = "Giovanni Sirio Carmantini" import matplotlib.pyplot as plt import numpy as np from matplotlib.patches import Rectangle from tnnpy import GodelEncoder, SimpleCFGeneralizedShift, NonlinearDynamicalAutomaton, NeuralTM, plot_symbologram input_symbols = ["NP", "V"] stack_symbols = ["NP", "V", "VP", "S"] pa...
true
true
1c3a19fb4b785cfafab9f8007b5cbd7a1eafe293
1,267
py
Python
experiments/experiment_9.py
arijitnoobstar/OnitamaDeepRL
e561b22fe7728f51c1f1a078dfb19aa008bf010e
[ "Apache-2.0" ]
3
2021-05-16T08:43:09.000Z
2021-05-31T16:23:43.000Z
experiments/experiment_9.py
mion666459/OnitamaAI
e561b22fe7728f51c1f1a078dfb19aa008bf010e
[ "Apache-2.0" ]
null
null
null
experiments/experiment_9.py
mion666459/OnitamaAI
e561b22fe7728f51c1f1a078dfb19aa008bf010e
[ "Apache-2.0" ]
1
2021-05-28T10:07:50.000Z
2021-05-28T10:07:50.000Z
# access Train.py in parent folder and set relative folder to parent folder for data saving import os import sys os.chdir("..") sys.path.insert(1, os.path.join(sys.path[0], '..')) from Train import * """ The purpose of this experiment is to test and evaluate how the AI performs if we forgo validity completely and onl...
45.25
142
0.718232
import os import sys os.chdir("..") sys.path.insert(1, os.path.join(sys.path[0], '..')) from Train import * ep_num = 20000 plot_every = 4000 moving_average = 50 minimax_boost = 0 onitama_deeprl_train("train", "DDPG", ep_num, "testing_actions_only", "minimax", 1, discount_rate = 0.99, lr_actor = 0.001,...
true
true
1c3a1c2475b27f14649ff6985fd19df30171ea47
1,710
py
Python
botnet_detection.py
ahv15/Mininet
b5cdc5282a0b4324b6ece5f4a1756fc0232af8dd
[ "Apache-2.0" ]
null
null
null
botnet_detection.py
ahv15/Mininet
b5cdc5282a0b4324b6ece5f4a1756fc0232af8dd
[ "Apache-2.0" ]
null
null
null
botnet_detection.py
ahv15/Mininet
b5cdc5282a0b4324b6ece5f4a1756fc0232af8dd
[ "Apache-2.0" ]
null
null
null
import numpy as np from netml.ndm.iforest import IF from netml.pparser.parser import PCAP from sklearn.model_selection import train_test_split from netml.ndm.model import MODEL from netml.utils.tool import dump_data, load_data pcap = PCAP( "D:\\BotnetDetection\\isot_app_and_botnet_dataset\\application_data...
38.863636
156
0.754386
import numpy as np from netml.ndm.iforest import IF from netml.pparser.parser import PCAP from sklearn.model_selection import train_test_split from netml.ndm.model import MODEL from netml.utils.tool import dump_data, load_data pcap = PCAP( "D:\\BotnetDetection\\isot_app_and_botnet_dataset\\application_data...
true
true
1c3a1c6e8ad20e4a46fd96aa5054665866ea0ed0
443
py
Python
cookiecutter_toot/cli.py
gnargnor/cookiecutter-toot
1b695ca882908ef3b529fd3d0189129733d0443d
[ "MIT" ]
null
null
null
cookiecutter_toot/cli.py
gnargnor/cookiecutter-toot
1b695ca882908ef3b529fd3d0189129733d0443d
[ "MIT" ]
320
2018-07-05T03:20:13.000Z
2022-03-31T18:20:22.000Z
cookiecutter_toot/cli.py
gnargnor/cookiecutter-toot
1b695ca882908ef3b529fd3d0189129733d0443d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Console script for cookiecutter_toot.""" import sys import click @click.command() def main(args=None): """Console script for cookiecutter_toot.""" click.echo("Replace this message by putting your code into " "cookiecutter_toot.cli.main") click.echo("See click doc...
23.315789
68
0.6614
import sys import click @click.command() def main(args=None): click.echo("Replace this message by putting your code into " "cookiecutter_toot.cli.main") click.echo("See click documentation at http://click.pocoo.org/") return 0 if __name__ == "__main__": sys.exit(main())
true
true
1c3a2050f888beac1d4939c8590d07745cf44b78
5,232
py
Python
capablerobot_usbhub/config.py
nzsmith1/CapableRobot_USBHub_Driver
1ec323c485be25f122ace7be20fccba39cdec517
[ "MIT" ]
16
2019-07-01T23:47:22.000Z
2022-02-14T21:16:33.000Z
capablerobot_usbhub/config.py
METHLAB-LTD/CapableRobot_USBHub_Driver
c43d709c776b208b2726df73d6f1dee926723623
[ "MIT" ]
2
2020-01-08T08:30:39.000Z
2022-02-23T00:49:09.000Z
capablerobot_usbhub/config.py
METHLAB-LTD/CapableRobot_USBHub_Driver
c43d709c776b208b2726df73d6f1dee926723623
[ "MIT" ]
6
2020-01-07T15:37:23.000Z
2022-02-07T08:25:36.000Z
# The MIT License (MIT) # # Copyright (c) 2019 Chris Osterwood for Capable Robot Components # # 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...
27.108808
111
0.605313
import logging import time import usb.core import usb.util from .util import * _MEM_WRITE = 0x0914 _MEM_READ = 0x0924 _CRC8_POLYNOMIAL = 0x31 _CRC8_INIT = 0xFF _CMD_NOOP = 0b000 _CMD_GET = 0b001 _CMD_SET = 0b010 _CMD_SAVE = 0b100 _CMD_RESET = 0b111 _WAIT = 0.1 _NAME_RO = [ ...
true
true
1c3a207df261959e3dec0c81294682086ee3f0cb
432
py
Python
gokart/zip_client_util.py
davegrays/gokart
64999e5441217eafa5f0a6f3d2ee9aea04df740e
[ "MIT" ]
255
2019-01-02T01:31:37.000Z
2022-03-29T13:35:18.000Z
gokart/zip_client_util.py
davegrays/gokart
64999e5441217eafa5f0a6f3d2ee9aea04df740e
[ "MIT" ]
208
2018-12-25T04:32:24.000Z
2022-03-28T07:28:59.000Z
gokart/zip_client_util.py
davegrays/gokart
64999e5441217eafa5f0a6f3d2ee9aea04df740e
[ "MIT" ]
48
2019-01-11T06:22:05.000Z
2022-02-11T07:38:42.000Z
from gokart.object_storage import ObjectStorage from gokart.zip_client import LocalZipClient, ZipClient def make_zip_client(file_path: str, temporary_directory: str) -> ZipClient: if ObjectStorage.if_object_storage_path(file_path): return ObjectStorage.get_zip_client(file_path=file_path, temporary_directo...
48
105
0.842593
from gokart.object_storage import ObjectStorage from gokart.zip_client import LocalZipClient, ZipClient def make_zip_client(file_path: str, temporary_directory: str) -> ZipClient: if ObjectStorage.if_object_storage_path(file_path): return ObjectStorage.get_zip_client(file_path=file_path, temporary_directo...
true
true
1c3a21d3744a60da31d15ea3e386c9b75fda40e7
52,048
py
Python
tests/modeladmin/tests.py
xavfernandez/django
daaeb8415823444a9020460cf825efc3fae866a2
[ "BSD-3-Clause" ]
2
2016-07-23T18:08:37.000Z
2016-07-24T09:54:34.000Z
tests/modeladmin/tests.py
xavfernandez/django
daaeb8415823444a9020460cf825efc3fae866a2
[ "BSD-3-Clause" ]
null
null
null
tests/modeladmin/tests.py
xavfernandez/django
daaeb8415823444a9020460cf825efc3fae866a2
[ "BSD-3-Clause" ]
null
null
null
from __future__ import unicode_literals from datetime import date import warnings from django import forms from django.contrib.admin.options import (ModelAdmin, TabularInline, HORIZONTAL, VERTICAL) from django.contrib.admin.sites import AdminSite from django.contrib.admin.widgets import AdminDateWidget, AdminRad...
34.219592
136
0.625231
from __future__ import unicode_literals from datetime import date import warnings from django import forms from django.contrib.admin.options import (ModelAdmin, TabularInline, HORIZONTAL, VERTICAL) from django.contrib.admin.sites import AdminSite from django.contrib.admin.widgets import AdminDateWidget, AdminRad...
true
true
1c3a220f387499a22b6713a0120726e781bf0a21
175
py
Python
amazonadapi/__init__.py
barce/amazonadapi
76558774f26a6d1e2b496b9cbc0be1c603c85346
[ "MIT" ]
3
2018-10-17T19:06:17.000Z
2021-04-04T13:52:39.000Z
amazonadapi/__init__.py
barce/amazonadapi
76558774f26a6d1e2b496b9cbc0be1c603c85346
[ "MIT" ]
5
2018-09-12T20:07:40.000Z
2018-10-15T16:34:52.000Z
amazonadapi/__init__.py
barce/amazonadapi
76558774f26a6d1e2b496b9cbc0be1c603c85346
[ "MIT" ]
3
2018-02-05T21:04:28.000Z
2018-10-27T09:45:56.000Z
#!/usr/bin/env python from amazonadapi.amazonclient import AmazonClient from amazonadapi.amazonclient import AmazonOrder from amazonadapi.amazonclient import AmazonLineItem
25
51
0.862857
from amazonadapi.amazonclient import AmazonClient from amazonadapi.amazonclient import AmazonOrder from amazonadapi.amazonclient import AmazonLineItem
true
true
1c3a228c6060b6238d4744b433965ca2a515f4e6
801
py
Python
code/dataset_AFLW2000.py
Icegreenlhd/Hopenet
4766da32cebe0ba15efda3ad2e38067b34b6c729
[ "Apache-2.0" ]
4
2021-06-11T07:09:42.000Z
2022-02-22T07:29:08.000Z
code/dataset_AFLW2000.py
Icegreenlhd/Hopenet
4766da32cebe0ba15efda3ad2e38067b34b6c729
[ "Apache-2.0" ]
1
2021-09-15T10:08:26.000Z
2021-09-15T10:08:26.000Z
code/dataset_AFLW2000.py
Icegreenlhd/Hopenet
4766da32cebe0ba15efda3ad2e38067b34b6c729
[ "Apache-2.0" ]
null
null
null
import os def image_path_txt(image_dir, img_ext='.jpg', annot_ex='.mat'): """catch file name to gen :return: """ filename_path = os.path.join(image_dir, "image.txt") with open(filename_path, "w") as writer: for root, dirs, files in os.walk(image_dir): for name in sorted(files):...
32.04
105
0.543071
import os def image_path_txt(image_dir, img_ext='.jpg', annot_ex='.mat'): filename_path = os.path.join(image_dir, "image.txt") with open(filename_path, "w") as writer: for root, dirs, files in os.walk(image_dir): for name in sorted(files): if img_ext in name: ...
true
true
1c3a24d447b9af95d82323e75ad9f548e32f7c7b
2,317
py
Python
loveletter/card.py
ErikGartner/love-letter
36995788292ea6fdfc72a8b09adad01ba6683c26
[ "MIT" ]
null
null
null
loveletter/card.py
ErikGartner/love-letter
36995788292ea6fdfc72a8b09adad01ba6683c26
[ "MIT" ]
null
null
null
loveletter/card.py
ErikGartner/love-letter
36995788292ea6fdfc72a8b09adad01ba6683c26
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Love Letter Card tools Functions and constants to facilitate working with cards, which are represented as integers. """ import numpy as np class Card(): """Static Card class""" noCard = 0 guard = 1 priest = 2 baron = 3 handmaid = 4 prince = 5 king = 6 c...
32.633803
94
0.476478
import numpy as np class Card(): noCard = 0 guard = 1 priest = 2 baron = 3 handmaid = 4 prince = 5 king = 6 countess = 7 princess = 8 names = ['', 'Guard', 'Priest', 'Baron', 'Handmaid', 'Prince', 'King', 'Countess', 'Princess'] symbo...
true
true
1c3a24ea31886df637421a85673891e6cd786437
36,727
py
Python
cinder/volume/drivers/emc/emc_vmax_fast.py
overcastcloud/cinder
ad977d456c5d50e992eee95ea40f4e3dd21981dc
[ "Apache-2.0" ]
null
null
null
cinder/volume/drivers/emc/emc_vmax_fast.py
overcastcloud/cinder
ad977d456c5d50e992eee95ea40f4e3dd21981dc
[ "Apache-2.0" ]
null
null
null
cinder/volume/drivers/emc/emc_vmax_fast.py
overcastcloud/cinder
ad977d456c5d50e992eee95ea40f4e3dd21981dc
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2012 - 2015 EMC Corporation. # 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 # # Unle...
44.843712
79
0.645465
from oslo_log import log as logging from cinder import exception from cinder.i18n import _, _LE, _LI, _LW from cinder.volume.drivers.emc import emc_vmax_provision from cinder.volume.drivers.emc import emc_vmax_utils LOG = logging.getLogger(__name__) DEFAULT_SG_PREFIX = 'OS_default_' DEFAULT_SG_POSTFIX...
true
true
1c3a257bfa779bfdb0aedb8cfceff9115e22bf0a
218
py
Python
one_fm/one_fm/doctype/employee_license/test_employee_license.py
askmetoo/One-FM
c93ed63695a3e62ee8129bd9adf563116b749030
[ "MIT" ]
16
2021-06-14T23:56:47.000Z
2022-03-22T12:05:06.000Z
one_fm/one_fm/doctype/employee_license/test_employee_license.py
askmetoo/One-FM
c93ed63695a3e62ee8129bd9adf563116b749030
[ "MIT" ]
119
2020-08-17T16:27:45.000Z
2022-03-28T12:42:56.000Z
one_fm/one_fm/doctype/employee_license/test_employee_license.py
askmetoo/One-FM
c93ed63695a3e62ee8129bd9adf563116b749030
[ "MIT" ]
12
2021-05-16T13:35:40.000Z
2022-02-21T12:41:04.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2021, omar jaber and Contributors # See license.txt from __future__ import unicode_literals # import frappe import unittest class TestEmployeeLicense(unittest.TestCase): pass
19.818182
49
0.766055
from __future__ import unicode_literals import unittest class TestEmployeeLicense(unittest.TestCase): pass
true
true
1c3a25c9df466732e5a9fae72274fdf7c2679c58
271
py
Python
app/http/routes/blog_routes.py
doseextra/site
40e1e5684a8f562bdad74b33cfa71f6304c88054
[ "MIT" ]
null
null
null
app/http/routes/blog_routes.py
doseextra/site
40e1e5684a8f562bdad74b33cfa71f6304c88054
[ "MIT" ]
null
null
null
app/http/routes/blog_routes.py
doseextra/site
40e1e5684a8f562bdad74b33cfa71f6304c88054
[ "MIT" ]
null
null
null
from app.http.controllers import blog_controller from flask import Blueprint blog = Blueprint("blog", __name__, url_prefix="/blog") @blog.route("/", methods=["GET"]) def index(): return blog_controller.index() def init_app(app): app.register_blueprint(blog)
19.357143
54
0.730627
from app.http.controllers import blog_controller from flask import Blueprint blog = Blueprint("blog", __name__, url_prefix="/blog") @blog.route("/", methods=["GET"]) def index(): return blog_controller.index() def init_app(app): app.register_blueprint(blog)
true
true
1c3a28a95ebbd4bbc7240afeb63fa62720fd6cb9
3,720
py
Python
cspace/dht/test/testdhtclient.py
jmcvetta/cspace
13d6be86dfa3417ac5511b1b2c15d1050fe3701d
[ "RSA-MD", "TCP-wrappers" ]
28
2015-04-24T12:04:08.000Z
2022-01-07T15:13:10.000Z
cspace/dht/test/testdhtclient.py
Magnus167/cspace
13d6be86dfa3417ac5511b1b2c15d1050fe3701d
[ "RSA-MD", "TCP-wrappers" ]
1
2015-12-09T10:21:59.000Z
2015-12-16T05:38:55.000Z
cspace/dht/test/testdhtclient.py
Magnus167/cspace
13d6be86dfa3417ac5511b1b2c15d1050fe3701d
[ "RSA-MD", "TCP-wrappers" ]
18
2015-01-01T02:16:49.000Z
2021-08-12T04:14:57.000Z
import sys, os, logging from socket import socket, AF_INET, SOCK_DGRAM from nitro.selectreactor import SelectReactor from cspace.dht import rpc _requestCount = 0 _oldRequestMethod = rpc.RPCSocket.request def _newRequestMethod( *args, **kwargs ) : global _requestCount _requestCount += 1 return _ol...
33.513514
75
0.607796
import sys, os, logging from socket import socket, AF_INET, SOCK_DGRAM from nitro.selectreactor import SelectReactor from cspace.dht import rpc _requestCount = 0 _oldRequestMethod = rpc.RPCSocket.request def _newRequestMethod( *args, **kwargs ) : global _requestCount _requestCount += 1 return _ol...
false
true
1c3a28f92384c0424932cd1830d82b370022b30a
33,531
py
Python
salt/modules/network.py
rfairburn/salt
7e44444e873e1cb1d2fe13e39b0edea3779a2b5e
[ "Apache-2.0" ]
2
2015-08-04T21:54:38.000Z
2019-04-25T21:47:08.000Z
salt/modules/network.py
rfairburn/salt
7e44444e873e1cb1d2fe13e39b0edea3779a2b5e
[ "Apache-2.0" ]
null
null
null
salt/modules/network.py
rfairburn/salt
7e44444e873e1cb1d2fe13e39b0edea3779a2b5e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Module for gathering and managing network information ''' # Import python libs from __future__ import absolute_import import datetime import hashlib import logging import re import os import socket # Import salt libs import salt.utils import salt.utils.decorators as decorators import salt....
28.082915
126
0.550028
from __future__ import absolute_import import datetime import hashlib import logging import re import os import socket import salt.utils import salt.utils.decorators as decorators import salt.utils.network import salt.utils.validate.net from salt.exceptions import CommandExecutionError import salt.ext.six as six...
true
true
1c3a2afe28932838d844c89054819b938961e376
8,326
py
Python
bibs/catalog.py
MrJeremyHobbs/Alma-Helper
a47dc0be14b2357d2e3560bcbb728010398b7fe2
[ "MIT" ]
null
null
null
bibs/catalog.py
MrJeremyHobbs/Alma-Helper
a47dc0be14b2357d2e3560bcbb728010398b7fe2
[ "MIT" ]
null
null
null
bibs/catalog.py
MrJeremyHobbs/Alma-Helper
a47dc0be14b2357d2e3560bcbb728010398b7fe2
[ "MIT" ]
null
null
null
#!/usr/bin/python3 from alma import http from alma import errors from lxml import objectify import xml.etree.ElementTree as ET import requests import xmltodict import sys class RetrieveItemRecord(): def __init__(self, barcode="", apikey=""): self.RetrieveItemRecord = RetrieveItemRecord self.r = re...
57.027397
140
0.609777
from alma import http from alma import errors from lxml import objectify import xml.etree.ElementTree as ET import requests import xmltodict import sys class RetrieveItemRecord(): def __init__(self, barcode="", apikey=""): self.RetrieveItemRecord = RetrieveItemRecord self.r = requests.get("https:...
true
true
1c3a2b253b6647b12620ff2d71d3ebcbbfe65ea6
11,014
py
Python
grid_search_mem_scale/ESNtrainCV.py
malfarasplux/pnet2019
ae34d5c84fb4d3985634b237a14dfb69e98b8339
[ "BSD-3-Clause" ]
1
2020-11-29T12:42:30.000Z
2020-11-29T12:42:30.000Z
grid_search_mem_scale/ESNtrainCV.py
malfarasplux/pnet2019
ae34d5c84fb4d3985634b237a14dfb69e98b8339
[ "BSD-3-Clause" ]
null
null
null
grid_search_mem_scale/ESNtrainCV.py
malfarasplux/pnet2019
ae34d5c84fb4d3985634b237a14dfb69e98b8339
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ## Config dataset = "training" path = "../" + dataset +"/" kfold_split = 10 nan_to_neg = True biased_regress = True normal_equations = True mm = True std = False numpy_load = True ## ESN parameters N_def = 200 # Neurons scale_def = 1.0 # scaling mem_def = 1...
28.75718
102
0.632105
= "training" path = "../" + dataset +"/" kfold_split = 10 nan_to_neg = True biased_regress = True normal_equations = True mm = True std = False numpy_load = True scale_def = 1.0 mem_def = 1.0 exponent_def = 0.5 script_name = 'ESNtrainCV' name_struct_meta = "_N_scale_mem" name_struct = '...
true
true
1c3a2b81959f133dfff5312a94df6cada8578895
31,987
py
Python
src/_pytest/capture.py
gatesn/pytest
e986d84466dfa98dbbc55cc1bf5fcb99075f4ac3
[ "MIT" ]
1
2020-11-27T12:58:44.000Z
2020-11-27T12:58:44.000Z
src/_pytest/capture.py
gatesn/pytest
e986d84466dfa98dbbc55cc1bf5fcb99075f4ac3
[ "MIT" ]
53
2020-12-14T03:17:37.000Z
2022-03-28T03:03:01.000Z
src/_pytest/capture.py
gatesn/pytest
e986d84466dfa98dbbc55cc1bf5fcb99075f4ac3
[ "MIT" ]
null
null
null
"""Per-test stdout/stderr capturing mechanism.""" import contextlib import functools import io import os import sys from io import UnsupportedOperation from tempfile import TemporaryFile from typing import Any from typing import AnyStr from typing import Generator from typing import Generic from typing import Iterator ...
33.181535
99
0.6296
import contextlib import functools import io import os import sys from io import UnsupportedOperation from tempfile import TemporaryFile from typing import Any from typing import AnyStr from typing import Generator from typing import Generic from typing import Iterator from typing import Optional from typing import Tex...
true
true
1c3a2bb10a2470d29ac195d54eb6498645943436
7,155
py
Python
accelbyte_py_sdk/api/lobby/models/model_template_localization_response.py
AccelByte/accelbyte-python-sdk
dcd311fad111c59da828278975340fb92e0f26f7
[ "MIT" ]
null
null
null
accelbyte_py_sdk/api/lobby/models/model_template_localization_response.py
AccelByte/accelbyte-python-sdk
dcd311fad111c59da828278975340fb92e0f26f7
[ "MIT" ]
1
2021-10-13T03:46:58.000Z
2021-10-13T03:46:58.000Z
accelbyte_py_sdk/api/lobby/models/model_template_localization_response.py
AccelByte/accelbyte-python-sdk
dcd311fad111c59da828278975340fb92e0f26f7
[ "MIT" ]
null
null
null
# Copyright (c) 2021 AccelByte Inc. All Rights Reserved. # This is licensed software from AccelByte Inc, for limitations # and restrictions contact your company contract manager. # # Code generated. DO NOT EDIT! # template file: justice_py_sdk_codegen/__main__.py # justice-lobby-server (staging) # pylint: disable=d...
36.319797
220
0.617191
from __future__ import annotations from typing import Any, Dict, List, Optional, Tuple, Union from ....core import Model from ..models.model_template_localization import ModelTemplateLocalization class ModelTemplateLocalizationResponse(Model): first: str ...
true
true
1c3a2c3a3cc7215da9bb26e28bef8018942407fa
2,007
py
Python
filer/contrib/django_cms/cms_toolbars.py
ammohq/django-filer
c5a7bb45806d3aeea4a042f5bd8f7d161cad5298
[ "BSD-3-Clause" ]
null
null
null
filer/contrib/django_cms/cms_toolbars.py
ammohq/django-filer
c5a7bb45806d3aeea4a042f5bd8f7d161cad5298
[ "BSD-3-Clause" ]
null
null
null
filer/contrib/django_cms/cms_toolbars.py
ammohq/django-filer
c5a7bb45806d3aeea4a042f5bd8f7d161cad5298
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.urls import reverse from django.utils.encoding import force_text from django.utils.translation import ugettext_lazy as _ from cms.cms_toolbars import ADMIN_MENU_IDENTIFIER, ADMINISTRATION_BREAK from cms.toolbar.items import Break from cms.to...
36.490909
81
0.687095
from __future__ import unicode_literals from django.urls import reverse from django.utils.encoding import force_text from django.utils.translation import ugettext_lazy as _ from cms.cms_toolbars import ADMIN_MENU_IDENTIFIER, ADMINISTRATION_BREAK from cms.toolbar.items import Break from cms.toolbar_base import CMSTo...
true
true
1c3a2ca4d06d973f3820acc8436890e936c508d5
831
py
Python
servicer/builtin/ci_adapters/base_ci_adapter.py
RyanTimoney/servicer
94b7fd0b1d4369952bf64d13e7fecb886611961c
[ "BSD-3-Clause" ]
null
null
null
servicer/builtin/ci_adapters/base_ci_adapter.py
RyanTimoney/servicer
94b7fd0b1d4369952bf64d13e7fecb886611961c
[ "BSD-3-Clause" ]
null
null
null
servicer/builtin/ci_adapters/base_ci_adapter.py
RyanTimoney/servicer
94b7fd0b1d4369952bf64d13e7fecb886611961c
[ "BSD-3-Clause" ]
null
null
null
import os class BaseCIAdapter(): def __init__(self, logger=None): self.logger = logger self.env_map = {} def convert_environment_variables(self): for key, value in os.environ.items(): if key in self.env_map and not self.env_map[key] in os.environ: os.enviro...
28.655172
75
0.528279
import os class BaseCIAdapter(): def __init__(self, logger=None): self.logger = logger self.env_map = {} def convert_environment_variables(self): for key, value in os.environ.items(): if key in self.env_map and not self.env_map[key] in os.environ: os.enviro...
true
true
1c3a2cfa0525f6bcf48fe1017a4a5e775f3aea88
2,729
py
Python
examples/chart_data_table.py
adgear/XlsxWriter
79bcaad28d57ac29038b1c74bccc6d611b7a385e
[ "BSD-2-Clause-FreeBSD" ]
1
2019-07-12T02:58:59.000Z
2019-07-12T02:58:59.000Z
examples/chart_data_table.py
adgear/XlsxWriter
79bcaad28d57ac29038b1c74bccc6d611b7a385e
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
examples/chart_data_table.py
adgear/XlsxWriter
79bcaad28d57ac29038b1c74bccc6d611b7a385e
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
####################################################################### # # An example of creating Excel Column charts with data tables using # Python and XlsxWriter. # # Copyright 2013-2019, John McNamara, jmcnamara@cpan.org # import xlsxwriter workbook = xlsxwriter.Workbook('chart_data_table.xlsx') worksheet = workb...
29.031915
75
0.603518
true
true
1c3a2d8a5e0a620d32a3d85b36cf70e1127fa5e0
28,229
py
Python
tests/storage/test_docker_storage.py
concreted/prefect
dd732f5990ee2b0f3d816adb285168fd63b239e4
[ "Apache-2.0" ]
2
2021-10-07T19:58:34.000Z
2021-11-09T10:46:58.000Z
tests/storage/test_docker_storage.py
concreted/prefect
dd732f5990ee2b0f3d816adb285168fd63b239e4
[ "Apache-2.0" ]
15
2021-12-18T09:11:34.000Z
2022-03-31T03:37:15.000Z
tests/storage/test_docker_storage.py
ngriffiths13/prefect
7f5613abcb182494b7dc12159277c3bc5f3c9898
[ "Apache-2.0" ]
1
2021-11-30T05:49:13.000Z
2021-11-30T05:49:13.000Z
import os import sys import json import tempfile import textwrap from unittest.mock import MagicMock from collections import OrderedDict import cloudpickle import pendulum import pytest import prefect from prefect import Flow from prefect.storage import Docker @pytest.fixture def no_docker_host_var(monkeypatch): ...
31.717978
174
0.648163
import os import sys import json import tempfile import textwrap from unittest.mock import MagicMock from collections import OrderedDict import cloudpickle import pendulum import pytest import prefect from prefect import Flow from prefect.storage import Docker @pytest.fixture def no_docker_host_var(monkeypatch): ...
true
true
1c3a2d8dade27e761f16dd9ed7ea185868ff30b3
5,625
py
Python
cmsplugin_filer_image/models.py
zbohm/cmsplugin-filer
3b9720e4ad6584734f3aee9bac50ddddc130911e
[ "BSD-3-Clause" ]
null
null
null
cmsplugin_filer_image/models.py
zbohm/cmsplugin-filer
3b9720e4ad6584734f3aee9bac50ddddc130911e
[ "BSD-3-Clause" ]
null
null
null
cmsplugin_filer_image/models.py
zbohm/cmsplugin-filer
3b9720e4ad6584734f3aee9bac50ddddc130911e
[ "BSD-3-Clause" ]
2
2020-06-23T13:39:30.000Z
2020-07-06T12:10:19.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models from django.utils.translation import ugettext_lazy as _ from filer.fields.file import FilerFileField from filer.fields.image import FilerImageField from filer.models import ThumbnailOption # NOQA from filer.utils.compatibili...
40.76087
118
0.652444
from __future__ import unicode_literals from django.db import models from django.utils.translation import ugettext_lazy as _ from filer.fields.file import FilerFileField from filer.fields.image import FilerImageField from filer.models import ThumbnailOption from filer.utils.compatibility import python_2_unicode_co...
true
true
1c3a2d9240678247975c3b613e9656d9e6e0cfd5
446
py
Python
code/venv/lib/python3.6/site-packages/pgadmin4/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/__init__.py
jhkuang11/UniTrade
5f68b853926e167936b58c8543b8f95ebd6f5211
[ "MIT" ]
null
null
null
code/venv/lib/python3.6/site-packages/pgadmin4/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/__init__.py
jhkuang11/UniTrade
5f68b853926e167936b58c8543b8f95ebd6f5211
[ "MIT" ]
10
2020-06-05T19:42:26.000Z
2022-03-11T23:38:35.000Z
code/venv/lib/python3.6/site-packages/pgadmin4/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/__init__.py
jhkuang11/UniTrade
5f68b853926e167936b58c8543b8f95ebd6f5211
[ "MIT" ]
null
null
null
########################################################################## # # pgAdmin 4 - PostgreSQL Tools # # Copyright (C) 2013 - 2017, The pgAdmin Development Team # This software is released under the PostgreSQL Licence # ########################################################################## from pgadmin.util...
26.235294
74
0.502242
true
true
1c3a3179775a86b09d29a353514b6a40d48579b6
57,440
py
Python
demos/kitchen_sink/screens.py
brentpicasso/KivyMD
9a018f54f6aa73c6d388ab111d8b913984377e52
[ "MIT" ]
null
null
null
demos/kitchen_sink/screens.py
brentpicasso/KivyMD
9a018f54f6aa73c6d388ab111d8b913984377e52
[ "MIT" ]
null
null
null
demos/kitchen_sink/screens.py
brentpicasso/KivyMD
9a018f54f6aa73c6d388ab111d8b913984377e52
[ "MIT" ]
1
2020-01-23T20:01:16.000Z
2020-01-23T20:01:16.000Z
# -*- coding: utf-8 -*- """ Copyright (c) 2019 Ivanov Yuri For suggestions and questions: <kivydevelopment@gmail.com> This file is distributed under the terms of the same license, as the Kivy framework. """ import os from kivy.factory import Factory from kivy.lang import Builder from kivy.core.window import Windo...
29.186992
107
0.559593
import os from kivy.factory import Factory from kivy.lang import Builder from kivy.core.window import Window from kivy.metrics import dp from kivymd.utils.cropimage import crop_image bottom_app_bar = ''' #:import MDRaisedButton kivymd.button.MDRaisedButton <BottomAppBar@Screen> name: 'bottom app bar' M...
true
true