hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
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
209
max_issues_repo_name
stringlengths
5
121
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
209
max_forks_repo_name
stringlengths
5
121
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
dc1fa3fbc21119e6c7af7922da9a2c4c98cb0255
4,275
py
Python
tools/tests/before_tests_ci.py
adorad/adorad
28dcb3376f8f996606c2e4244a881bbed39df1e7
[ "MIT" ]
37
2021-07-31T08:03:25.000Z
2022-03-18T10:22:26.000Z
tools/tests/before_tests_ci.py
adorad/adorad
28dcb3376f8f996606c2e4244a881bbed39df1e7
[ "MIT" ]
9
2021-08-02T16:08:44.000Z
2022-03-25T17:04:03.000Z
tools/tests/before_tests_ci.py
adorad/adorad
28dcb3376f8f996606c2e4244a881bbed39df1e7
[ "MIT" ]
10
2021-09-17T16:32:45.000Z
2022-03-24T13:42:57.000Z
r""" This script essentially `copies` the entire folder of Adorad and into a new directory that is used solely by CMake during CI. It removes all instances of `static`, `inline`, `extern` or any other keywords that might result in internal linkage and thus break Adorad's C Compiler Tests. With t...
41.504854
126
0.578246
a6ec4a128d84699daed38a56330b84a3955d4ac6
1,858
py
Python
examples/custom_dot.py
ARezaK/python-anticaptcha
8ae26135540bbe2e9a82d1ecea1485d8360ca9fa
[ "MIT" ]
null
null
null
examples/custom_dot.py
ARezaK/python-anticaptcha
8ae26135540bbe2e9a82d1ecea1485d8360ca9fa
[ "MIT" ]
null
null
null
examples/custom_dot.py
ARezaK/python-anticaptcha
8ae26135540bbe2e9a82d1ecea1485d8360ca9fa
[ "MIT" ]
null
null
null
from collections import OrderedDict from os import environ from python_anticaptcha import AnticaptchaClient from python_anticaptcha.fields import TextInput, Select, Radio from python_anticaptcha.tasks import CustomCaptchaTask api_key = environ['KEY'] URL = "https://s.jawne.info.pl/dot_img" EXPECTED_RESULT = ('7', 'r...
33.178571
114
0.579656
0b7725c9c3c17ab91427c3cd82b1ca1100b5633f
4,108
py
Python
model_interpreter_test.py
yselivonchyk/DCIGN_tensorflow
ff8d85f3a7b7ca1e5c3f50ff003a1c09a70067cd
[ "MIT" ]
22
2017-01-29T14:56:01.000Z
2020-10-30T17:43:25.000Z
model_interpreter_test.py
yselivonchyk/DCIGN_tensorflow
ff8d85f3a7b7ca1e5c3f50ff003a1c09a70067cd
[ "MIT" ]
1
2017-07-16T14:53:21.000Z
2017-07-16T14:53:21.000Z
model_interpreter_test.py
yselivonchyk/DCIGN_tensorflow
ff8d85f3a7b7ca1e5c3f50ff003a1c09a70067cd
[ "MIT" ]
10
2018-05-16T07:03:00.000Z
2022-03-04T12:13:13.000Z
import numpy as np import tensorflow as tf import tensorflow.contrib.slim as slim import network_utils as nut import utils as ut import re import os from Bunch import Bunch from model_interpreter import * def _log_graph(): path = '/tmp/interpreter' with tf.Session() as sess: tf.global_variables_initializer() ...
37.009009
118
0.719085
18ca9ab4235fb5973c549cb38536789ae96ea77a
54,830
py
Python
sdk/python/pulumi_azure_nextgen/containerservice/v20200201/_inputs.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/containerservice/v20200201/_inputs.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/containerservice/v20200201/_inputs.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...
44.905815
551
0.677749
b95c88846b78cee252275f1d2c7a646c6b573d40
5,214
py
Python
09_custom_type/main.py
NickKaramoff/DjangoClasses
32c275d6d49888626375140070c83dca4cd67982
[ "Unlicense" ]
null
null
null
09_custom_type/main.py
NickKaramoff/DjangoClasses
32c275d6d49888626375140070c83dca4cd67982
[ "Unlicense" ]
null
null
null
09_custom_type/main.py
NickKaramoff/DjangoClasses
32c275d6d49888626375140070c83dca4cd67982
[ "Unlicense" ]
null
null
null
class EvenNumber: def __init__(self, value=0): if isinstance(value, int) and value % 2 == 0: self.value = value else: raise TypeError('The resulting number is not even') def __abs__(self): return EvenNumber(abs(self.value)) def __add__(self, other): ...
23.276786
63
0.571155
22de2bbf21b22ef57f10019813af7cd6e72056a2
2,844
py
Python
class04.py
chandrakant1991/New-Python
148c889a525620f022fa5291217a4d95cfbd0c8a
[ "MIT" ]
null
null
null
class04.py
chandrakant1991/New-Python
148c889a525620f022fa5291217a4d95cfbd0c8a
[ "MIT" ]
1
2019-04-12T06:41:18.000Z
2019-04-12T06:41:18.000Z
class04.py
chandrakant1991/New-Python
148c889a525620f022fa5291217a4d95cfbd0c8a
[ "MIT" ]
null
null
null
# # conditional statement # # if # # if else # # if elif # # Nested else if # # number_01 = 4 # number_02 = 5 # number_03 = 6 # # if number_01 < number_02: # print('Number 01 is greater than 02') # # # if else # # if number_01 > number_02: # print('Number 01 is greater than 02') # else: # print('number 02 i...
17.886792
69
0.471167
fa7e5467fa46e5625bfb0a36291b19af47d44296
7,161
py
Python
predict_flow.py
EdwardChiang/C3D-tensorflow-finetune
2c058ce31b85b3c19ec2db05ffd1cba8d2d60d68
[ "MIT" ]
null
null
null
predict_flow.py
EdwardChiang/C3D-tensorflow-finetune
2c058ce31b85b3c19ec2db05ffd1cba8d2d60d68
[ "MIT" ]
null
null
null
predict_flow.py
EdwardChiang/C3D-tensorflow-finetune
2c058ce31b85b3c19ec2db05ffd1cba8d2d60d68
[ "MIT" ]
null
null
null
# Copyright 2015 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
40.457627
170
0.663455
12fcd28db53e88efedc061cb1f3bbe5ffff341bf
3,092
py
Python
selfdrive/controls/lib/latcontrol_helpers.py
Shorrts/raspberry-pilot
84bd2e7dc0c9142a420999ed527b8abbd14e0d34
[ "MIT" ]
114
2020-02-24T14:18:01.000Z
2022-03-19T03:42:00.000Z
selfdrive/controls/lib/latcontrol_helpers.py
Shorrts/raspberry-pilot
84bd2e7dc0c9142a420999ed527b8abbd14e0d34
[ "MIT" ]
15
2020-02-25T03:37:44.000Z
2021-09-08T01:51:15.000Z
selfdrive/controls/lib/latcontrol_helpers.py
Shorrts/raspberry-pilot
84bd2e7dc0c9142a420999ed527b8abbd14e0d34
[ "MIT" ]
55
2020-02-24T09:43:04.000Z
2022-02-15T04:52:00.000Z
import numpy as np import math from common.numpy_fast import interp _K_CURV_V = [1., 0.6] _K_CURV_BP = [0., 0.002] # lane width http://safety.fhwa.dot.gov/geometric/pubs/mitigationstrategies/chapter3/3_lanewidth.cfm _LANE_WIDTH_V = [2.85, 3.5] # break points of speed _LANE_WIDTH_BP = [0., 31.] def calc_d_lookahead...
34.355556
103
0.673997
6e162518330fd7fe9e55d6fd0fea642a7f1db985
10,742
py
Python
geonetworkx/tests/test_tools.py
Artelys/geonetworkx
1dacddc08bb2e7b80000eb1135a5203b2ef89dbe
[ "MIT" ]
29
2019-10-28T13:30:07.000Z
2022-01-26T09:25:06.000Z
geonetworkx/tests/test_tools.py
Artelys/geonetworkx
1dacddc08bb2e7b80000eb1135a5203b2ef89dbe
[ "MIT" ]
5
2020-10-12T12:04:04.000Z
2022-03-13T09:39:26.000Z
geonetworkx/tests/test_tools.py
Artelys/geonetworkx
1dacddc08bb2e7b80000eb1135a5203b2ef89dbe
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import sys import os import shutil import geopandas as gpd import networkx as nx import geonetworkx as gnx import numpy as np from shapely.geometry import Point from nose.tools import assert_in, assert_less import unittest from nose.plugins.attrib import attr import geonetworkx.testing.utils as ...
49.731481
124
0.621113
c7665b7fd4e6ac524e1bc60cf4cef3d3fb37aea3
1,096
py
Python
main.py
nonebot/nonebot2-plugin-issue-bot
40d6688bb3e8287a7d33a4a343398e91d073902c
[ "MIT" ]
1
2021-09-15T08:54:01.000Z
2021-09-15T08:54:01.000Z
main.py
nonebot/nonebot2-plugin-issue-bot
40d6688bb3e8287a7d33a4a343398e91d073902c
[ "MIT" ]
null
null
null
main.py
nonebot/nonebot2-plugin-issue-bot
40d6688bb3e8287a7d33a4a343398e91d073902c
[ "MIT" ]
null
null
null
import logging from github import Github import src.globals as g from src.models import Settings from src.process import process_issues_event, process_pull_request_event def main(): FORMAT = "%(asctime)s - %(levelname)s - %(message)s" logging.basicConfig(level=logging.INFO, format=FORMAT) g.settings = ...
28.842105
79
0.707117
b95c6f91f973ed9aef6ef9946811907324aaa5dd
1,657
py
Python
amodem/tests/test_equalizer.py
Matthew-MK/amodem
a75dda9ab0f7445589a036357e604703ccb34726
[ "MIT" ]
766
2015-01-14T15:48:07.000Z
2022-03-30T01:19:48.000Z
amodem/tests/test_equalizer.py
Matthew-MK/amodem
a75dda9ab0f7445589a036357e604703ccb34726
[ "MIT" ]
42
2015-01-02T18:50:11.000Z
2022-03-11T19:10:35.000Z
amodem/tests/test_equalizer.py
Matthew-MK/amodem
a75dda9ab0f7445589a036357e604703ccb34726
[ "MIT" ]
116
2015-01-14T20:43:52.000Z
2022-03-24T13:10:30.000Z
from numpy.random import RandomState import numpy as np import utils from amodem import equalizer from amodem import dsp from amodem import config config = config.fastest() def assert_approx(x, y, e=1e-12): x = x.flatten() y = y.flatten() assert dsp.norm(x - y) < e * dsp.norm(x) def test_training(): ...
24.367647
68
0.605311
3d745292dc8978231e87017b948031ba38b322d6
9,539
py
Python
sdk/python/pulumi_azure_nextgen/datafactory/latest/factory.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
31
2020-09-21T09:41:01.000Z
2021-02-26T13:21:59.000Z
sdk/python/pulumi_azure_nextgen/datafactory/latest/factory.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
231
2020-09-21T09:38:45.000Z
2021-03-01T11:16:03.000Z
sdk/python/pulumi_azure_nextgen/datafactory/latest/factory.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
4
2020-09-29T14:14:59.000Z
2021-02-10T20:38:16.000Z
# 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 from...
42.584821
251
0.653737
ac39b1cbeed8301b9e53f6ca47e217af88b1ac39
38,955
py
Python
tests/wps_restapi/test_providers.py
crim-ca/weaver
107fec5e19f20b77061b9405a764da911d2db8a2
[ "Apache-2.0" ]
16
2019-03-18T12:23:05.000Z
2022-02-25T00:39:11.000Z
tests/wps_restapi/test_providers.py
crim-ca/weaver
107fec5e19f20b77061b9405a764da911d2db8a2
[ "Apache-2.0" ]
346
2019-03-06T21:05:04.000Z
2022-03-31T13:38:37.000Z
tests/wps_restapi/test_providers.py
crim-ca/weaver
107fec5e19f20b77061b9405a764da911d2db8a2
[ "Apache-2.0" ]
5
2019-03-15T01:38:28.000Z
2021-11-11T15:38:43.000Z
import unittest from distutils.version import LooseVersion import owslib import pyramid.testing import pytest from tests import resources from tests.utils import ( get_test_weaver_app, mocked_remote_server_requests_wps1, setup_config_with_mongodb, setup_mongodb_jobstore, setup_mongodb_processstore...
55.889527
120
0.676653
0491d6f6b3077811447d88dec9d4604a16e20290
649
py
Python
snippets_settings.py
touqir14/Cmput_692_project
656919ca9922772ff9810a382aa735a620ad4a8e
[ "Apache-2.0" ]
null
null
null
snippets_settings.py
touqir14/Cmput_692_project
656919ca9922772ff9810a382aa735a620ad4a8e
[ "Apache-2.0" ]
null
null
null
snippets_settings.py
touqir14/Cmput_692_project
656919ca9922772ff9810a382aa735a620ad4a8e
[ "Apache-2.0" ]
null
null
null
import os DIR_toSave = "snippets" # If in the same folder then have this variable as an empty string PATH_dictionary = os.path.join(DIR_toSave, "snippet_dictionary.pickle") PATH_invertedIndex = os.path.join(DIR_toSave, "snippet_invertedIndex.pickle") PATH_positionalIndex = os.path.join(DIR_toSave, "snippet_positionalI...
40.5625
90
0.824345
b1828d4e729b778e67be29f71c45321f5faa51bf
678
py
Python
setup.py
perrin-isir/xomx
9ca0ad56c333ebf4444f38bd9fa59cdd4e533756
[ "BSD-3-Clause" ]
4
2021-12-16T21:34:32.000Z
2021-12-22T09:25:53.000Z
setup.py
perrin-isir/xomx
9ca0ad56c333ebf4444f38bd9fa59cdd4e533756
[ "BSD-3-Clause" ]
2
2021-12-15T15:51:42.000Z
2022-03-31T08:17:26.000Z
setup.py
perrin-isir/xomx
9ca0ad56c333ebf4444f38bd9fa59cdd4e533756
[ "BSD-3-Clause" ]
2
2021-12-14T16:50:39.000Z
2022-03-14T09:27:51.000Z
from setuptools import setup, find_packages # Install with 'pip install -e .' setup( name="xomx", version="0.1.0", author="Nicolas Perrin-Gilbert", description="xomx: a python library for computational omics", url="https://github.com/perrin-isir/xomx", packages=find_packages(), install_req...
24.214286
65
0.541298
f301df35016ba7f88332e14ac3c2fd2bba6cdacd
468
py
Python
explorer/notes/migrations/0017_auto_20191204_1845.py
UPstartDeveloper/explorer_buddy
467fa77307a588645e7a9fd269ae13b6b24d4efc
[ "MIT" ]
null
null
null
explorer/notes/migrations/0017_auto_20191204_1845.py
UPstartDeveloper/explorer_buddy
467fa77307a588645e7a9fd269ae13b6b24d4efc
[ "MIT" ]
22
2019-12-05T01:10:16.000Z
2022-03-12T00:06:51.000Z
explorer/notes/migrations/0017_auto_20191204_1845.py
UPstartDeveloper/explorer_buddy
467fa77307a588645e7a9fd269ae13b6b24d4efc
[ "MIT" ]
null
null
null
# Generated by Django 3.0 on 2019-12-05 02:45 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('notes', '0016_note_media'), ] operations = [ migrations.AlterField( model_name='note', name='slug', field=...
24.631579
148
0.628205
21c84fb31815988f9e20e5788a47da6eaaf69d58
726
py
Python
office365/sharepoint/portal/SPSiteCreationRequest.py
domdinicola/Office365-REST-Python-Client
c64adb6c3fdc2786e0c9529e8b0f4c3ee207d2a0
[ "MIT" ]
null
null
null
office365/sharepoint/portal/SPSiteCreationRequest.py
domdinicola/Office365-REST-Python-Client
c64adb6c3fdc2786e0c9529e8b0f4c3ee207d2a0
[ "MIT" ]
null
null
null
office365/sharepoint/portal/SPSiteCreationRequest.py
domdinicola/Office365-REST-Python-Client
c64adb6c3fdc2786e0c9529e8b0f4c3ee207d2a0
[ "MIT" ]
null
null
null
from office365.runtime.client_value import ClientValue class SPSiteCreationRequest(ClientValue): def __init__(self, title, url, owner=None): self.Title = title self.Url = url self.WebTemplate = "SITEPAGEPUBLISHING#0" self.Owner = owner self.Lcid = 1033 self.ShareBy...
33
76
0.684573
067ab089508f036a9d482d0ca6e8d855a379d250
7,134
py
Python
NumericalOptimizer.py
NonStopEagle137/Gradient-less-optimization-tensorflow
618a5e153de81fc115966f7a68f7a9cffb41bcf9
[ "Apache-2.0" ]
null
null
null
NumericalOptimizer.py
NonStopEagle137/Gradient-less-optimization-tensorflow
618a5e153de81fc115966f7a68f7a9cffb41bcf9
[ "Apache-2.0" ]
null
null
null
NumericalOptimizer.py
NonStopEagle137/Gradient-less-optimization-tensorflow
618a5e153de81fc115966f7a68f7a9cffb41bcf9
[ "Apache-2.0" ]
null
null
null
from tensorflow import keras import numpy as np import tensorflow as tf import os from operators import operators__ from sklearn.datasets import fetch_california_housing from sklearn.model_selection import train_test_split from sklearn.preprocessing import StandardScaler import time from tensorflow.keras import activat...
47.879195
147
0.676619
d088278eeaf9e627f02f34912df606d7532bc2d9
1,612
py
Python
src/yeetdb/repl.py
Sangarshanan/yeet
7a32dc86568b4be9005be230c8cf7a985aecca4e
[ "Unlicense" ]
1
2021-03-23T20:57:23.000Z
2021-03-23T20:57:23.000Z
src/yeetdb/repl.py
Sangarshanan/yeetdb
7a32dc86568b4be9005be230c8cf7a985aecca4e
[ "Unlicense" ]
null
null
null
src/yeetdb/repl.py
Sangarshanan/yeetdb
7a32dc86568b4be9005be230c8cf7a985aecca4e
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python from pygments.lexers.sql import SqlLexer from prompt_toolkit import PromptSession from prompt_toolkit.lexers import PygmentsLexer from prompt_toolkit import print_formatted_text from prompt_toolkit.history import InMemoryHistory from prompt_toolkit.completion import WordCompleter from prompt_toolk...
27.322034
85
0.619107
b4674ad945eaf9dd2402b4e92a4c075003ae326b
168
py
Python
multivitamin/__init__.py
gumgum/multivitamin
11e2b8944fbe24d5f6f34d375d2cefa6be560be5
[ "Apache-2.0" ]
8
2019-05-08T20:27:41.000Z
2021-04-19T15:17:22.000Z
multivitamin/__init__.py
gumgum/multivitamin
11e2b8944fbe24d5f6f34d375d2cefa6be560be5
[ "Apache-2.0" ]
9
2019-05-17T19:16:50.000Z
2022-03-11T23:46:55.000Z
multivitamin/__init__.py
gumgum/multivitamin
11e2b8944fbe24d5f6f34d375d2cefa6be560be5
[ "Apache-2.0" ]
4
2019-05-07T18:00:51.000Z
2019-06-22T02:35:51.000Z
from pkg_resources import get_distribution, DistributionNotFound try: __version__ = get_distribution("multivitamin").version except DistributionNotFound: pass
24
64
0.821429
5375a176eed15dbb15f6b7d1130c874d95501429
2,935
py
Python
93_23_Matches/python/23matches.py
serranojl/basic-computer-games
b197b00deefe8b69d5b5f13d7f2003ccc9649a70
[ "Unlicense" ]
1
2022-03-31T13:47:37.000Z
2022-03-31T13:47:37.000Z
93_23_Matches/python/23matches.py
serranojl/basic-computer-games
b197b00deefe8b69d5b5f13d7f2003ccc9649a70
[ "Unlicense" ]
null
null
null
93_23_Matches/python/23matches.py
serranojl/basic-computer-games
b197b00deefe8b69d5b5f13d7f2003ccc9649a70
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 # 23 Matches # # Converted from BASIC to Python by Trevor Hobson import random def play_game() -> None: """Play one round of the game""" matches = 23 humans_turn = random.randint(0, 1) == 1 if humans_turn: print("Tails! You go first.\n") prompt_human = "How man...
36.234568
102
0.534242
2d87437964c61970fa15fdc34f230f443fee0403
874
py
Python
setup.py
bakr-a/PyWiW
4c8a2339cf02bf529b1ae69d066311c39e31291a
[ "MIT" ]
null
null
null
setup.py
bakr-a/PyWiW
4c8a2339cf02bf529b1ae69d066311c39e31291a
[ "MIT" ]
null
null
null
setup.py
bakr-a/PyWiW
4c8a2339cf02bf529b1ae69d066311c39e31291a
[ "MIT" ]
1
2022-03-02T12:18:09.000Z
2022-03-02T12:18:09.000Z
from setuptools import setup, find_packages with open("README.md", "r") as fh: long_description = fh.read() setup( name='PyWiW', version='0.1.2', author='Bakr Annour', author_email='b.annour@stuart.com', description='A When I Work API Python wrapper', long_description=long_description, ...
31.214286
83
0.644165
40fe266d03a996bd820ec4738b07d0914b40937e
17,208
py
Python
src/pip/_internal/metadata/base.py
t20100/pip
9cf35b25e25a47b41480d5b2dc82b8ebd1eeb6a0
[ "MIT" ]
1
2021-11-29T00:02:05.000Z
2021-11-29T00:02:05.000Z
src/pip/_internal/metadata/base.py
t20100/pip
9cf35b25e25a47b41480d5b2dc82b8ebd1eeb6a0
[ "MIT" ]
null
null
null
src/pip/_internal/metadata/base.py
t20100/pip
9cf35b25e25a47b41480d5b2dc82b8ebd1eeb6a0
[ "MIT" ]
null
null
null
import csv import email.message import json import logging import pathlib import re import zipfile from typing import ( IO, TYPE_CHECKING, Collection, Container, Iterable, Iterator, List, Optional, Tuple, Union, ) from pip._vendor.packaging.requirements import Requirement from p...
35.046843
87
0.640225
a0ff4d326ab4f3268ddde9648690d42d2f19a4b4
11,675
py
Python
doc/source/conf.py
tourbillon-python/tourbillon-uwsgi
ffc7a49d8fd9f0e8f9d23f0a878876c7a5b34488
[ "Apache-2.0" ]
2
2015-11-11T01:32:11.000Z
2017-07-26T20:56:46.000Z
doc/source/conf.py
tourbillonpy/tourbillon-uwsgi
ffc7a49d8fd9f0e8f9d23f0a878876c7a5b34488
[ "Apache-2.0" ]
null
null
null
doc/source/conf.py
tourbillonpy/tourbillon-uwsgi
ffc7a49d8fd9f0e8f9d23f0a878876c7a5b34488
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Tourbillon Celery Plugin documentation build configuration file, created by # sphinx-quickstart on Mon Aug 24 10:12:29 2015. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are pre...
31.725543
80
0.721285
4e438b22873246423f3ff52265e92b31b9b9704a
4,732
py
Python
python_translate/utils.py
adamziel/python_translate
0aee83f434bd2d1b95767bcd63adb7ac7036c7df
[ "MIT" ]
4
2017-04-24T14:37:26.000Z
2020-05-15T18:17:47.000Z
python_translate/utils.py
adamziel/python_translate
0aee83f434bd2d1b95767bcd63adb7ac7036c7df
[ "MIT" ]
2
2017-02-01T15:42:26.000Z
2018-05-30T09:59:25.000Z
python_translate/utils.py
adamziel/python_translate
0aee83f434bd2d1b95767bcd63adb7ac7036c7df
[ "MIT" ]
1
2017-02-02T09:56:34.000Z
2017-02-02T09:56:34.000Z
# -*- coding: utf-8 -*- """ This file is a part of python_translate package (c) Adam Zieliński <adam@symfony2.guru> This file is derived from Symfony package. (c) Fabien Potencier <fabien@symfony.com> For the full copyright and license information, please view the LICENSE and LICENSE_SYMFONY_TRANSLATION files that we...
31.337748
103
0.653001
8f050008df32a0b18ab3b36975e8f25e217b738b
3,146
py
Python
TFQ/QAOA/qaoa.py
Project-Fare/quantum_computation
fc182007d0cf7cca170efdbcb442576fde5927ff
[ "MIT" ]
27
2020-04-15T18:45:43.000Z
2022-03-29T10:28:42.000Z
TFQ/QAOA/qaoa.py
Project-Fare/quantum_computation
fc182007d0cf7cca170efdbcb442576fde5927ff
[ "MIT" ]
1
2021-08-23T01:59:34.000Z
2021-08-24T05:22:08.000Z
TFQ/QAOA/qaoa.py
Project-Fare/quantum_computation
fc182007d0cf7cca170efdbcb442576fde5927ff
[ "MIT" ]
10
2021-01-30T15:20:36.000Z
2022-03-29T10:28:51.000Z
import tensorflow as tf import tensorflow_quantum as tfq import cirq import sympy import numpy as np import matplotlib.pyplot as plt import networkx as nx from itertools import combinations def to_dec(x): return int("".join(str(i) for i in x), 2) tf.random.set_seed(864) nodes = 10 regularity = 3 dic = {0: [3, ...
26.888889
141
0.70534
27e7691618100212f7b23daa3d5d7054fb0d4cc0
2,078
py
Python
misc/mypy_filter.py
skeledrew/birdseye
435fbdc370792a325f56416373217b0d5d7b276f
[ "MIT" ]
1,507
2017-10-05T14:44:46.000Z
2022-03-30T02:37:59.000Z
misc/mypy_filter.py
skeledrew/birdseye
435fbdc370792a325f56416373217b0d5d7b276f
[ "MIT" ]
58
2017-10-07T10:35:47.000Z
2022-02-25T13:36:40.000Z
misc/mypy_filter.py
skeledrew/birdseye
435fbdc370792a325f56416373217b0d5d7b276f
[ "MIT" ]
98
2017-09-30T11:34:53.000Z
2022-03-19T16:38:34.000Z
#!/usr/bin/env python3 """ This script parses output from mypy and makes it more manageable, particularly if lots of warnings are raised that you want to ignore. It's an alternative to '# type: ignore' comments and other ways of appeasing mypy that doesn't interfere with your source code. Here is how to use it in thi...
35.220339
98
0.667469
65120639709131f770b4610deb05f98a4ec73e06
578
py
Python
configs/_base_/models/household_addlayer_r50.py
Naoki-Wake/mmaction2
a2032605db82509744a18d993c94a06feb1efd15
[ "Apache-2.0" ]
null
null
null
configs/_base_/models/household_addlayer_r50.py
Naoki-Wake/mmaction2
a2032605db82509744a18d993c94a06feb1efd15
[ "Apache-2.0" ]
null
null
null
configs/_base_/models/household_addlayer_r50.py
Naoki-Wake/mmaction2
a2032605db82509744a18d993c94a06feb1efd15
[ "Apache-2.0" ]
null
null
null
# model settings model = dict( type='Recognizer2D', backbone=dict( type='ResNetTSM', pretrained='torchvision://resnet50', depth=50, norm_eval=False, shift_div=8), cls_head=dict( type='HOUSEHOLDHead_ADDLAYER', num_classes=400, in_channels=2048, ...
26.272727
51
0.605536
9c62f5c577f62dae46e862ad58cf0efcaaa872ad
1,229
py
Python
scripts/S02_3.2.4_uniqueIDs.py
NIB-SI/_p_stRT
a9e4ec3ee08e817229483f24148a741e682a5200
[ "CC0-1.0" ]
null
null
null
scripts/S02_3.2.4_uniqueIDs.py
NIB-SI/_p_stRT
a9e4ec3ee08e817229483f24148a741e682a5200
[ "CC0-1.0" ]
null
null
null
scripts/S02_3.2.4_uniqueIDs.py
NIB-SI/_p_stRT
a9e4ec3ee08e817229483f24148a741e682a5200
[ "CC0-1.0" ]
null
null
null
#zagor #!/usr/bin/env python2 #~*~ coding:utf-8 ~*~ import glob, re, os # assuming this script is within scripts subdirectory pathTo1 = '../input' # change appropriately - where assembler files are pathTo2 = '../output' # change appropriately - where assembler renamed files and log file will be try: os.makedirs(pat...
34.138889
118
0.607811
8604451f81e20004730bd184ad6ee588d339f783
630
py
Python
cargo/logic/bit.py
jaredlunde/cargo-orm
1d5524d359bd52a991edc738982b7df2149d9c69
[ "MIT" ]
3
2017-02-10T08:03:21.000Z
2017-02-25T04:55:48.000Z
cargo/logic/bit.py
jaredlunde/cargo-orm
1d5524d359bd52a991edc738982b7df2149d9c69
[ "MIT" ]
null
null
null
cargo/logic/bit.py
jaredlunde/cargo-orm
1d5524d359bd52a991edc738982b7df2149d9c69
[ "MIT" ]
null
null
null
""" `Bitwise Logic and Operations` --·--·--·--·--·--·--·--·--·--·--·--·--·--·--·--·--·--·--·--·--·--·--·--·--·--·-- 2016 Jared Lunde © The MIT License (MIT) http://github.com/jaredlunde """ from cargo.expressions import * __all__ = ('BitLogic',) class BitLogic(object): __slots__ = tuple() ''' ||...
26.25
80
0.54127
fd034c2ef4fa2ee6a32bf6cc8dd488357899e2db
24,720
py
Python
pyleecan/Classes/CondType11.py
Eomys/Pyleecan
4d7f0cbabf0311006963e7a2f435db2ecd901118
[ "Apache-2.0" ]
4
2017-11-27T10:14:34.000Z
2018-09-20T11:30:32.000Z
pyleecan/Classes/CondType11.py
Eomys/Pyleecan
4d7f0cbabf0311006963e7a2f435db2ecd901118
[ "Apache-2.0" ]
null
null
null
pyleecan/Classes/CondType11.py
Eomys/Pyleecan
4d7f0cbabf0311006963e7a2f435db2ecd901118
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # File generated according to Generator/ClassesRef/Machine/CondType11.csv # WARNING! All changes made in this file will be lost! """Method code available at https://github.com/Eomys/pyleecan/tree/master/pyleecan/Methods/Machine/CondType11 """ from os import linesep from sys import getsiz...
34.428969
143
0.560194
091eaed28929527a7082d95bcf588bbb296a9d84
4,020
py
Python
cumulusci/tasks/bulkdata/factory_utils.py
davisagli/CumulusCI
fd74c324ad3ff662484b159395c639879011e711
[ "BSD-3-Clause" ]
163
2018-09-13T18:49:34.000Z
2022-03-25T08:37:15.000Z
cumulusci/tasks/bulkdata/factory_utils.py
davisagli/CumulusCI
fd74c324ad3ff662484b159395c639879011e711
[ "BSD-3-Clause" ]
1,280
2018-09-11T20:09:37.000Z
2022-03-31T18:40:21.000Z
cumulusci/tasks/bulkdata/factory_utils.py
davisagli/CumulusCI
fd74c324ad3ff662484b159395c639879011e711
[ "BSD-3-Clause" ]
125
2015-01-17T16:05:39.000Z
2018-09-06T19:05:00.000Z
from abc import ABCMeta, abstractmethod from importlib import import_module from factory import base, enums from .base_generate_data_task import BaseGenerateDataTask # Factoryboy uses "__" and Salesforce uses "__". Luckily Factoryboy makes # theirs easy to override! enums.SPLITTER = "____" class Adder: """A ...
29.777778
92
0.648259
f23259ea238f9fb3135fccb284d874627f1784b0
7,673
py
Python
bettercache/utils.py
ironfroggy/django-better-cache
5350e8c646cef1c1ca74eab176f856ddd9eaf5c3
[ "MIT" ]
2
2015-07-03T09:11:12.000Z
2019-10-20T18:37:46.000Z
bettercache/utils.py
ironfroggy/django-better-cache
5350e8c646cef1c1ca74eab176f856ddd9eaf5c3
[ "MIT" ]
4
2016-02-04T04:17:44.000Z
2021-06-10T20:22:46.000Z
bettercache/utils.py
ironfroggy/django-better-cache
5350e8c646cef1c1ca74eab176f856ddd9eaf5c3
[ "MIT" ]
null
null
null
import time from copy import copy from django.conf import settings from django.core.cache import cache from django.utils.cache import cc_delim_re from django.utils.encoding import smart_str from django.utils.http import http_date, parse_http_date import logging logger = logging.getLogger() CACHEABLE_STATUS = [200, 2...
37.247573
135
0.629089
8542a5eda8de00262c6156d2a455a16dd773387c
5,678
py
Python
tweet.py
sagume/tweetStdlibPy2
ee37f97051f8cb965628ffe17cc65222c54ca32f
[ "MIT" ]
null
null
null
tweet.py
sagume/tweetStdlibPy2
ee37f97051f8cb965628ffe17cc65222c54ca32f
[ "MIT" ]
null
null
null
tweet.py
sagume/tweetStdlibPy2
ee37f97051f8cb965628ffe17cc65222c54ca32f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import urllib, urllib2, json, os, sys, hashlib, hmac, base64, datetime, calendar, random from HTMLParser import HTMLParser ''' class PostError (Exception): Exception class from post_tweet(). return: code: Error Code from urllib2.HTTPError.code reason: Error Reason fro...
29.419689
134
0.622226
3ed37eaeefa9c5514c27291f28540d287daf66a0
340
py
Python
autocorrelation.py
devAmoghS/arima-model
29d2985faf964c80f9e5925b5e82b9f384242f70
[ "MIT" ]
null
null
null
autocorrelation.py
devAmoghS/arima-model
29d2985faf964c80f9e5925b5e82b9f384242f70
[ "MIT" ]
null
null
null
autocorrelation.py
devAmoghS/arima-model
29d2985faf964c80f9e5925b5e82b9f384242f70
[ "MIT" ]
null
null
null
import pandas as pd import matplotlib.pyplot as plt from pandas.plotting import autocorrelation_plot def parser(x): return pd.datetime.strptime('190' + x, '%Y-%m') series = pd.read_csv('shampoo_sales.csv', header=0, parse_dates=[0], index_col=0, squeeze=True, date_parser=parser) autocorrelation_plot(s...
26.153846
116
0.732353
f64afbee4a6ead03d7578e54eb3ec932c8b5014e
1,500
py
Python
remove_garbage_images.py
MicuEmerson/character-segmentation
5929100f857aeab1bdaa34d1e2f0f38b06cbfbf4
[ "MIT" ]
null
null
null
remove_garbage_images.py
MicuEmerson/character-segmentation
5929100f857aeab1bdaa34d1e2f0f38b06cbfbf4
[ "MIT" ]
null
null
null
remove_garbage_images.py
MicuEmerson/character-segmentation
5929100f857aeab1bdaa34d1e2f0f38b06cbfbf4
[ "MIT" ]
null
null
null
import os import cv2 import shutil # iterate no_times times through folder and remove those characters that are bigger than average size def remove_garbage_images(DIR_NAME, no_times, height_percent, width_percent, copy_dir_name=None): for i in range(0, no_times): sum_height, sum_width, average_height, aver...
42.857143
101
0.659333
38d328344a3a09b552065bf59415adacbaf062b6
191
py
Python
expenses/expenses.py
MichelAngelo7/sod-python
98e2977843492cc393fd79bc7cbb12eb97a39084
[ "MIT" ]
null
null
null
expenses/expenses.py
MichelAngelo7/sod-python
98e2977843492cc393fd79bc7cbb12eb97a39084
[ "MIT" ]
null
null
null
expenses/expenses.py
MichelAngelo7/sod-python
98e2977843492cc393fd79bc7cbb12eb97a39084
[ "MIT" ]
null
null
null
class Expenses: def __init__(self, name, value): self.name = name self.value = value def __str__(self): return f'Nome da dispesa: {self.name}, Valor da dispesa: {self.value}'
27.285714
74
0.670157
017c431e2654f1291d0b6ce1c4a491e57b19d5fd
483
py
Python
env/Lib/site-packages/plotly/validators/contourcarpet/colorbar/_outlinewidth.py
andresgreen-byte/Laboratorio-1--Inversion-de-Capital
8a4707301d19c3826c31026c4077930bcd6a8182
[ "MIT" ]
11,750
2015-10-12T07:03:39.000Z
2022-03-31T20:43:15.000Z
venv/Lib/site-packages/plotly/validators/contourcarpet/colorbar/_outlinewidth.py
wakisalvador/constructed-misdirection
74779e9ec640a11bc08d5d1967c85ac4fa44ea5e
[ "Unlicense" ]
2,951
2015-10-12T00:41:25.000Z
2022-03-31T22:19:26.000Z
venv/Lib/site-packages/plotly/validators/contourcarpet/colorbar/_outlinewidth.py
wakisalvador/constructed-misdirection
74779e9ec640a11bc08d5d1967c85ac4fa44ea5e
[ "Unlicense" ]
2,623
2015-10-15T14:40:27.000Z
2022-03-28T16:05:50.000Z
import _plotly_utils.basevalidators class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): def __init__( self, plotly_name="outlinewidth", parent_name="contourcarpet.colorbar", **kwargs ): super(OutlinewidthValidator, self).__init__( plotly_name=plotly_name, ...
32.2
88
0.656315
2545ecee0d9009d932bb1e90950bcad2eb59a75a
5,806
py
Python
yotta/lib/settings.py
microbit-foundation/yotta
82d854b43d391abb5a006b05e7beffe7d0d6ffbf
[ "Apache-2.0" ]
176
2015-01-02T07:31:59.000Z
2022-03-21T12:40:02.000Z
yotta/lib/settings.py
microbit-foundation/yotta
82d854b43d391abb5a006b05e7beffe7d0d6ffbf
[ "Apache-2.0" ]
549
2015-01-05T16:19:54.000Z
2021-01-15T13:46:42.000Z
yotta/lib/settings.py
microbit-foundation/yotta
82d854b43d391abb5a006b05e7beffe7d0d6ffbf
[ "Apache-2.0" ]
84
2015-01-10T21:01:00.000Z
2022-03-24T16:04:42.000Z
# Copyright 2014 ARM Limited # # Licensed under the Apache License, Version 2.0 # See LICENSE file for details. # standard library modules, , , import logging import os import threading from collections import OrderedDict # Ordered JSON, , read & write json, internal from yotta.lib import ordered_json # folders, , ge...
29.622449
137
0.599897
68cec0ebb411d9ff82db7fb7acef732969837ab7
565
py
Python
accounts/migrations/0002_auto_20160315_2355.py
bharathramh92/shop
0c5800b2d36fbe1bfffaf555c3dc741d020aa5d7
[ "MIT" ]
1
2016-05-27T22:13:37.000Z
2016-05-27T22:13:37.000Z
accounts/migrations/0002_auto_20160315_2355.py
bharathramh92/shop
0c5800b2d36fbe1bfffaf555c3dc741d020aa5d7
[ "MIT" ]
null
null
null
accounts/migrations/0002_auto_20160315_2355.py
bharathramh92/shop
0c5800b2d36fbe1bfffaf555c3dc741d020aa5d7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.4 on 2016-03-16 04:55 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('accounts', '0001_initial'),...
24.565217
110
0.661947
b724014845f08770f487b5ab0a940a5223687fdb
3,634
py
Python
configerus/contrib/jsonschema/validate.py
james-nesbitt/configerus
ff11e8cb0f1ee0ca078a8fc2475f16a1c52f1271
[ "MIT" ]
1
2021-02-07T18:47:58.000Z
2021-02-07T18:47:58.000Z
configerus/contrib/jsonschema/validate.py
james-nesbitt/configerus
ff11e8cb0f1ee0ca078a8fc2475f16a1c52f1271
[ "MIT" ]
null
null
null
configerus/contrib/jsonschema/validate.py
james-nesbitt/configerus
ff11e8cb0f1ee0ca078a8fc2475f16a1c52f1271
[ "MIT" ]
null
null
null
""" Configerus validation plugin that uses jsonschema to validate. """ from typing import Any from jsonschema import validate from configerus.config import Config PLUGIN_ID_VALIDATE_JSONSCHEMA_SCHEMA_CONFIG_LABEL = "jsonschema" class JsonSchemaValidatorPlugin: """Configerus validation plugin that uses jsonsch...
34.283019
79
0.607595
9ec4d4639ce77c3e3fce13eff4605b29c13953b8
2,312
py
Python
Introduction to Python/Week 4/myprofile.py
drkndl/PHY-546
2b088885d9709400f8080a89b4240bb8a27a506a
[ "MIT" ]
3
2020-05-07T03:11:10.000Z
2020-06-19T18:17:41.000Z
Introduction to Python/Week 4/myprofile.py
drkndl/PHY-546
2b088885d9709400f8080a89b4240bb8a27a506a
[ "MIT" ]
null
null
null
Introduction to Python/Week 4/myprofile.py
drkndl/PHY-546
2b088885d9709400f8080a89b4240bb8a27a506a
[ "MIT" ]
5
2020-05-21T07:03:28.000Z
2022-01-09T08:15:03.000Z
""" A very simple profiling class. Define some timers and methods to start and stop them. Nesting of timers is tracked so we can pretty print the profiling information. # define a timer object, labeled 'my timer' a = timer('my timer') This will add 'my timer' to the list of keys in the 'my timer' dict...
21.018182
72
0.645761
95aaa8ef114ff9dc261baa8da9f36e068cfe2535
93,306
py
Python
src/genie/libs/parser/iosxe/show_policy_map.py
nujo/genieparser
083b01efc46afc32abe1a1858729578beab50cd3
[ "Apache-2.0" ]
null
null
null
src/genie/libs/parser/iosxe/show_policy_map.py
nujo/genieparser
083b01efc46afc32abe1a1858729578beab50cd3
[ "Apache-2.0" ]
1
2020-08-01T00:23:31.000Z
2020-08-01T00:40:05.000Z
src/genie/libs/parser/iosxe/show_policy_map.py
nujo/genieparser
083b01efc46afc32abe1a1858729578beab50cd3
[ "Apache-2.0" ]
null
null
null
''' show_policy_map.py IOSXE parsers for the following show commands: * 'show policy-map interface {interface} input class {class_name}', * 'show policy-map interface {interface} output class {class_name}', * 'show policy-map interface {interface} input', * 'show policy-map interface {interface} output...
45.448612
165
0.43801
4ae5507134bc3e7355b5a76146c2b530f7af49d0
10,944
py
Python
oauth2_provider/migrations/0001_initial.py
pydanny/django-oauth-toolkit
bf9ce2837f9ae2be939ac00a23f348266b91325d
[ "BSD-2-Clause-FreeBSD" ]
1
2019-07-25T23:15:39.000Z
2019-07-25T23:15:39.000Z
oauth2_provider/migrations/0001_initial.py
pydanny/django-oauth-toolkit
bf9ce2837f9ae2be939ac00a23f348266b91325d
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
oauth2_provider/migrations/0001_initial.py
pydanny/django-oauth-toolkit
bf9ce2837f9ae2be939ac00a23f348266b91325d
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models try: from django.contrib.auth import get_user_model except ImportError: # django < 1.5 from django.contrib.auth.models import User else: User = get_user_model() class Migrati...
70.153846
256
0.61367
70b703be227045f7363c9ee06aff75a5abe71db3
3,218
py
Python
server/plugins/pendingappleupdates/pendingappleupdates.py
gregneagle/sal
74c583fb1c1b33d3201b308b147376b3dcaca33f
[ "Apache-2.0" ]
2
2019-11-01T20:50:35.000Z
2021-01-13T22:02:55.000Z
server/plugins/pendingappleupdates/pendingappleupdates.py
gregneagle/sal
74c583fb1c1b33d3201b308b147376b3dcaca33f
[ "Apache-2.0" ]
null
null
null
server/plugins/pendingappleupdates/pendingappleupdates.py
gregneagle/sal
74c583fb1c1b33d3201b308b147376b3dcaca33f
[ "Apache-2.0" ]
null
null
null
from yapsy.IPlugin import IPlugin from yapsy.PluginManager import PluginManager from django.template import loader, Context from django.db.models import Count from server.models import * from django.shortcuts import get_object_or_404 import server.utils as utils class PendingAppleUpdates(IPlugin): def plugin_typ...
36.568182
109
0.61964
711850b15613d956befce8dcf90ee430cfce5d47
9,925
py
Python
tensorflow/python/data/kernel_tests/shuffle_test.py
PhotoLabDevelopment/tensorflow
735642ee1cd8d7f21ddd94f851ee753c17c23019
[ "Apache-2.0" ]
1
2021-01-18T04:50:42.000Z
2021-01-18T04:50:42.000Z
tensorflow/python/data/kernel_tests/shuffle_test.py
PhotoLabDevelopment/tensorflow
735642ee1cd8d7f21ddd94f851ee753c17c23019
[ "Apache-2.0" ]
1
2019-08-19T08:03:52.000Z
2019-08-19T08:03:52.000Z
tensorflow/python/data/kernel_tests/shuffle_test.py
PhotoLabDevelopment/tensorflow
735642ee1cd8d7f21ddd94f851ee753c17c23019
[ "Apache-2.0" ]
1
2021-05-05T05:17:34.000Z
2021-05-05T05:17:34.000Z
# Copyright 2017 The TensorFlow 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 applica...
38.468992
80
0.698539
9e2c8e88b7e95525bb6e1bed7e308bf3b95bab90
2,806
py
Python
imagenet16.py
Jingjing-NLP/KNAS
5fbb0fe07c5492be426e78bca7e7aa9195016f8f
[ "MIT" ]
72
2021-12-01T01:30:05.000Z
2022-03-15T18:47:44.000Z
imagenet16.py
Jingjing-NLP/KNAS
5fbb0fe07c5492be426e78bca7e7aa9195016f8f
[ "MIT" ]
1
2021-12-18T16:08:10.000Z
2021-12-22T11:28:03.000Z
imagenet16.py
Jingjing-NLP/KNAS
5fbb0fe07c5492be426e78bca7e7aa9195016f8f
[ "MIT" ]
12
2021-12-06T16:41:03.000Z
2022-02-17T09:40:57.000Z
from scipy import stats import numpy as np import random import argparse from lib.nas_201_api import NASBench201API as API api = API('a.pth') from lib.nas_201_api import ResultsCount import torch x = [] y = [] y1 = [] scores = {} if __name__ == "__main__": parser = argparse.ArgumentParser(description='Process ...
34.641975
111
0.622951
bf5098c45eec85e2b587529a40245355c3dff634
472
py
Python
urlbreadcrumbs/conf.py
Radmor/django-url-breadcrumbs
2d0831f4ebdfdf3ae10b2c0d3163ea470de85cfb
[ "BSD-3-Clause" ]
null
null
null
urlbreadcrumbs/conf.py
Radmor/django-url-breadcrumbs
2d0831f4ebdfdf3ae10b2c0d3163ea470de85cfb
[ "BSD-3-Clause" ]
null
null
null
urlbreadcrumbs/conf.py
Radmor/django-url-breadcrumbs
2d0831f4ebdfdf3ae10b2c0d3163ea470de85cfb
[ "BSD-3-Clause" ]
1
2021-04-01T15:52:42.000Z
2021-04-01T15:52:42.000Z
# TODO: make this compatible with django-appconf from django.conf import settings NAME_MAPPING = getattr(settings, 'URLBREADCRUMBS_NAME_MAPPING', {}) PATH_SPLIT_CHAR = getattr(settings, 'URLBREADCRUMBS_PATH_SPLIT_CHAR', r'/') # set this to 'urlbreadcrumbs.BreadRegexURLResolver' # if you want to use custom url functi...
42.909091
95
0.811441
a858fc1f090194ea615acaf701bdbbdb3a2e9817
3,345
py
Python
ndk/doc/gen_doc.py
OpenHarmony-mirror/build_lite
506cbf4039b41b0876b77e07b282ba5e126cf501
[ "Apache-2.0" ]
1
2022-02-15T08:51:55.000Z
2022-02-15T08:51:55.000Z
ndk/doc/gen_doc.py
OpenHarmony-mirror/build_lite
506cbf4039b41b0876b77e07b282ba5e126cf501
[ "Apache-2.0" ]
null
null
null
ndk/doc/gen_doc.py
OpenHarmony-mirror/build_lite
506cbf4039b41b0876b77e07b282ba5e126cf501
[ "Apache-2.0" ]
1
2021-09-13T11:57:24.000Z
2021-09-13T11:57:24.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (c) 2020 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 ...
33.787879
78
0.614051
ada104e2bae8b4c39913c38ecbb634c9298acfac
19
py
Python
xclib/version.py
scurrvy2020/xmpp-cloud-auth
919e98ead79fe3c65716a485917d52b6d2c97358
[ "MIT" ]
null
null
null
xclib/version.py
scurrvy2020/xmpp-cloud-auth
919e98ead79fe3c65716a485917d52b6d2c97358
[ "MIT" ]
null
null
null
xclib/version.py
scurrvy2020/xmpp-cloud-auth
919e98ead79fe3c65716a485917d52b6d2c97358
[ "MIT" ]
null
null
null
VERSION = '2.0.2+'
9.5
18
0.526316
b93526abdaf860220e3dec674076ffc579529ef2
10,908
py
Python
haystack/document_store/base.py
peterdemin/haystack
9ec2406a05aac3dc8afab68945a6afc2871bd2a3
[ "Apache-2.0" ]
1
2021-01-19T00:34:03.000Z
2021-01-19T00:34:03.000Z
haystack/document_store/base.py
peterdemin/haystack
9ec2406a05aac3dc8afab68945a6afc2871bd2a3
[ "Apache-2.0" ]
null
null
null
haystack/document_store/base.py
peterdemin/haystack
9ec2406a05aac3dc8afab68945a6afc2871bd2a3
[ "Apache-2.0" ]
null
null
null
import logging from abc import abstractmethod from pathlib import Path from typing import Optional, Dict, List, Union import numpy as np from haystack import Document, Label, MultiLabel, BaseComponent from haystack.preprocessor.preprocessor import PreProcessor from haystack.preprocessor.utils import eval_data_from_js...
51.45283
138
0.594884
00d6575e62104258ce7494cafc73c0ad529b53f3
2,950
py
Python
python/ray/rllib/models/model.py
visatish/ray
dc76e51a60652b3210c93f81df6dafcf461d4431
[ "Apache-2.0" ]
1
2021-02-08T13:40:58.000Z
2021-02-08T13:40:58.000Z
python/ray/rllib/models/model.py
visatish/ray
dc76e51a60652b3210c93f81df6dafcf461d4431
[ "Apache-2.0" ]
null
null
null
python/ray/rllib/models/model.py
visatish/ray
dc76e51a60652b3210c93f81df6dafcf461d4431
[ "Apache-2.0" ]
2
2018-09-04T21:00:36.000Z
2019-04-03T06:34:26.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import tensorflow as tf class Model(object): """Defines an abstract network model for use with RLlib. Models convert input tensors to a number of output features. These features can then be inter...
39.864865
79
0.636949
651e22a711b8cf889e69c227e5bcb3e9dca7a6dd
2,400
py
Python
dummies/protoss/one_base_tempests.py
DrInfy/sharpy-sc2
8f761bceb0b64435e88cd20a1cc26a4278e84815
[ "MIT" ]
48
2019-11-25T20:02:27.000Z
2022-02-28T00:16:21.000Z
dummies/protoss/one_base_tempests.py
DrInfy/sharpy-sc2
8f761bceb0b64435e88cd20a1cc26a4278e84815
[ "MIT" ]
48
2020-03-10T17:08:04.000Z
2022-02-22T08:21:12.000Z
dummies/protoss/one_base_tempests.py
DrInfy/sharpy-sc2
8f761bceb0b64435e88cd20a1cc26a4278e84815
[ "MIT" ]
25
2019-12-01T18:14:54.000Z
2022-03-24T01:14:53.000Z
from sharpy.plans.acts import * from sharpy.plans.acts.protoss import * from sharpy.plans.require import * from sharpy.plans.tactics import * from sharpy.plans import BuildOrder, Step, SequentialList from sharpy.knowledges import KnowledgeBot from sharpy.managers.core.building_solver import WallType from sc2 import Uni...
40
109
0.55
994aa5f332fcde2ded5c9000441f3867274e9d15
924
py
Python
setup.py
ianberg-volpe/GMNSpy
6074ef798b5596e1b738b7d9fa424125126f6171
[ "Apache-2.0" ]
1
2020-11-13T17:05:25.000Z
2020-11-13T17:05:25.000Z
setup.py
ianberg-volpe/GMNSpy
6074ef798b5596e1b738b7d9fa424125126f6171
[ "Apache-2.0" ]
8
2020-06-12T04:44:02.000Z
2020-12-24T23:14:35.000Z
setup.py
e-lo/GMNSpy
683b3505eed3975c6e806e4fb457cedfe18933cd
[ "Apache-2.0" ]
2
2020-06-26T19:40:01.000Z
2020-12-27T02:26:33.000Z
from setuptools import setup classifiers = [ "Development Status :: 1 - Planning", "License :: OSI Approved :: Apache Software License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming...
26.4
57
0.665584
b4f38810b9834fb68e518c3e9d5509643b95dec4
1,621
py
Python
Semana8/Dia3/Canchas/controllers/usuario.py
GuidoTorres/codigo8
7fdff4f677f048de7d7877b96ec3a688d3dde163
[ "MIT" ]
null
null
null
Semana8/Dia3/Canchas/controllers/usuario.py
GuidoTorres/codigo8
7fdff4f677f048de7d7877b96ec3a688d3dde163
[ "MIT" ]
40
2021-03-10T16:58:17.000Z
2022-03-26T01:55:17.000Z
Semana8/Dia3/Canchas/controllers/usuario.py
GuidoTorres/codigo8
7fdff4f677f048de7d7877b96ec3a688d3dde163
[ "MIT" ]
null
null
null
from flask_restful import Resource, reqparse from models.usuario import UsuarioModel class usuarioController(Resource): def post(self): parser = reqparse.RequestParser() parser.add_argument( 'correo', type=str, required=True, help="Falta el correo" ...
31.173077
134
0.514497
5d3dce9bf49c31cf410691d1befb87d6032220db
769
py
Python
networks/resnet.py
RohitKeshari/Leveraging-Crowdsourced-GPS-Data-for-Road-Extraction-from-Aerial-Imagery
0ff496701d59c9c6e33eb4870c66484e85de819f
[ "MIT" ]
46
2019-04-01T10:26:44.000Z
2022-01-16T23:16:09.000Z
networks/resnet.py
RohitKeshari/Leveraging-Crowdsourced-GPS-Data-for-Road-Extraction-from-Aerial-Imagery
0ff496701d59c9c6e33eb4870c66484e85de819f
[ "MIT" ]
3
2019-07-16T07:36:58.000Z
2021-04-10T21:19:45.000Z
networks/resnet.py
RohitKeshari/Leveraging-Crowdsourced-GPS-Data-for-Road-Extraction-from-Aerial-Imagery
0ff496701d59c9c6e33eb4870c66484e85de819f
[ "MIT" ]
8
2019-07-16T19:10:37.000Z
2022-01-16T23:16:08.000Z
import torch.nn as nn class ResnetBlock: def __init__(self): self.inplanes = 64 def _make_layer(self, block, planes, blocks, stride=1): downsample = None if stride != 1 or self.inplanes != planes * block.expansion: downsample = nn.Sequential( nn.Conv2d(self....
33.434783
71
0.591678
a995d257d22217372fb06175332a8e36c8aeb565
10,891
py
Python
Halite-Bot-v13/hlt/game_map.py
gitarzysta/Halite-III-1
6cfacb8224a9ef3986f28a156b849db3a1cd7a44
[ "MIT" ]
null
null
null
Halite-Bot-v13/hlt/game_map.py
gitarzysta/Halite-III-1
6cfacb8224a9ef3986f28a156b849db3a1cd7a44
[ "MIT" ]
null
null
null
Halite-Bot-v13/hlt/game_map.py
gitarzysta/Halite-III-1
6cfacb8224a9ef3986f28a156b849db3a1cd7a44
[ "MIT" ]
null
null
null
import queue from . import constants from .entity import Entity, Shipyard, Ship, Dropoff from .player import Player from .positionals import Direction, Position from .common import read_input import logging from math import inf import numpy as np from timeit import default_timer as timer from heapq import * class ...
34.795527
117
0.610871
ab6c6ef16a1004457a5cc3ab8092e58fe0811214
5,971
py
Python
test/functional/multi_rpc.py
miketweaver/Defcoin
75d804cdf4c13bd64814863fd19210b57ac0d67a
[ "MIT" ]
8
2020-12-15T14:31:06.000Z
2021-11-07T22:22:33.000Z
test/functional/multi_rpc.py
miketweaver/Defcoin
75d804cdf4c13bd64814863fd19210b57ac0d67a
[ "MIT" ]
3
2021-04-16T03:25:16.000Z
2021-10-01T15:01:31.000Z
test/functional/multi_rpc.py
miketweaver/Defcoin
75d804cdf4c13bd64814863fd19210b57ac0d67a
[ "MIT" ]
6
2018-09-14T19:07:49.000Z
2020-09-04T05:37:00.000Z
#!/usr/bin/env python3 # Copyright (c) 2015-2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test multiple RPC users.""" from test_framework.test_framework import BitcoinTestFramework from test_f...
38.772727
129
0.613298
9f38d097314655b434ae9773a8ea71a33fbc66a2
1,757
py
Python
rasp.pi.cpu.thermom.temp.monintor.py
flag0010/Raspberry_Pi_thermometer
4ad9aa9ec84d1609179c5f0599ef493c17cb83e5
[ "MIT" ]
null
null
null
rasp.pi.cpu.thermom.temp.monintor.py
flag0010/Raspberry_Pi_thermometer
4ad9aa9ec84d1609179c5f0599ef493c17cb83e5
[ "MIT" ]
null
null
null
rasp.pi.cpu.thermom.temp.monintor.py
flag0010/Raspberry_Pi_thermometer
4ad9aa9ec84d1609179c5f0599ef493c17cb83e5
[ "MIT" ]
null
null
null
import time, smtplib, os, sys from email.mime.text import MIMEText user_email, password = sys.argv[1], sys.argv[2] def get_CPU_temp_load(): '''returns [CPU temp, CPU load 1 min, CPU load 5 min, CPU load 15 min]''' a = os.popen('vcgencmd measure_temp') f = a.next().strip().split('=')[-1].replace("'C", '') ...
30.824561
77
0.595902
090d033c32805518e72d418e271a085f71117830
4,318
py
Python
stats/unpickle.py
kchiang6997/toxicity
d6c4b1849c072b4eb7b492d1eb17b699b46510b2
[ "MIT" ]
null
null
null
stats/unpickle.py
kchiang6997/toxicity
d6c4b1849c072b4eb7b492d1eb17b699b46510b2
[ "MIT" ]
null
null
null
stats/unpickle.py
kchiang6997/toxicity
d6c4b1849c072b4eb7b492d1eb17b699b46510b2
[ "MIT" ]
null
null
null
import pickle print("gru glove 150") with open('gru_glove_epoch_5_150d_f1s.p', 'rb') as f1: # The protocol version used is detected automatically, so we do not # have to specify it. data = pickle.load(f1) print("f1") print(data) with open('gru_glove_epoch_5_150d_nbatch.p', 'rb') as f2: # The prot...
29.575342
71
0.714914
4ea43e4784e60d659f58724a544e8825c72476fb
6,105
py
Python
tests/api_tests/test_list_votes.py
yashbhavsar007/Delta-Blockchain
602dd5335d2cd51303e953e4c233c8f099da0b07
[ "MIT" ]
null
null
null
tests/api_tests/test_list_votes.py
yashbhavsar007/Delta-Blockchain
602dd5335d2cd51303e953e4c233c8f099da0b07
[ "MIT" ]
null
null
null
tests/api_tests/test_list_votes.py
yashbhavsar007/Delta-Blockchain
602dd5335d2cd51303e953e4c233c8f099da0b07
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Usage: __name__ jobs url1 url2 [nr_cycles [working_dir [comments_file]]] Example: script_name 4 http://127.0.0.1:8090 http://127.0.0.1:8091 [20 my_comments_data_dir [comments]] by default: nr_cycles = 3; set nr_cycles to 0 if you want to use all comments set jobs to 0 if you wan...
29.780488
160
0.651761
183997ee40ffceb43135d28d68591bc39b2b6177
3,445
py
Python
beam_utils/sources.py
williamegomezo/beam_utils
df7baa196fd3a80f0941cc7f3b7fe86ac075e700
[ "Apache-2.0" ]
42
2016-11-08T23:22:21.000Z
2021-11-24T00:12:49.000Z
beam_utils/sources.py
disdi/beam_utils
c9c938de4773b91586996664034ca82ae4038e69
[ "Apache-2.0" ]
8
2017-02-26T19:23:57.000Z
2020-12-11T21:36:28.000Z
beam_utils/sources.py
disdi/beam_utils
c9c938de4773b91586996664034ca82ae4038e69
[ "Apache-2.0" ]
18
2017-03-28T19:25:07.000Z
2022-02-09T16:38:24.000Z
# Implements a few sources for import csv import json from functools import partial import apache_beam as beam from apache_beam import coders from apache_beam.io import filesystem __all__ = ['JsonLinesFileSource', 'CsvFileSource'] class JsonLinesFileSource(beam.io.filebasedsource.FileBasedSource): def __init__(...
31.318182
80
0.642961
726aa735d9a3be137d36542e3320ce33bfee5074
4,910
py
Python
google/ads/google_ads/v0/proto/enums/criterion_category_channel_availability_mode_pb2.py
jwygoda/google-ads-python
863892b533240cb45269d9c2cceec47e2c5a8b68
[ "Apache-2.0" ]
null
null
null
google/ads/google_ads/v0/proto/enums/criterion_category_channel_availability_mode_pb2.py
jwygoda/google-ads-python
863892b533240cb45269d9c2cceec47e2c5a8b68
[ "Apache-2.0" ]
null
null
null
google/ads/google_ads/v0/proto/enums/criterion_category_channel_availability_mode_pb2.py
jwygoda/google-ads-python
863892b533240cb45269d9c2cceec47e2c5a8b68
[ "Apache-2.0" ]
null
null
null
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/ads/googleads_v0/proto/enums/criterion_category_channel_availability_mode.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf im...
46.320755
778
0.817108
662f7f6b4a4ff71f095192d83fd6897f720f1fdf
4,237
py
Python
medline/common.py
tomislijepcevic/medline_embedding
3124b841892e473d808c5c2499a8bacaea01d097
[ "MIT" ]
null
null
null
medline/common.py
tomislijepcevic/medline_embedding
3124b841892e473d808c5c2499a8bacaea01d097
[ "MIT" ]
null
null
null
medline/common.py
tomislijepcevic/medline_embedding
3124b841892e473d808c5c2499a8bacaea01d097
[ "MIT" ]
null
null
null
from os import path from os import makedirs from itertools import islice, count from contextlib import contextmanager import numpy as np from keras.callbacks import ( TensorBoard, EarlyStopping, ModelCheckpoint, CSVLogger, ReduceLROnPlateau ) from sklearn.metrics import average_precision_score NB_...
29.22069
79
0.656361
a85d1ea05bc58b7daa7ea533d1a8753be162f6df
37,686
py
Python
env/lib/python3.10/site-packages/reportlab/graphics/renderSVG.py
Sehgal-Arjun/DataSorter
2503c535a13405c299fb8cacbbb2c3974f3362c8
[ "MIT" ]
1
2022-03-18T18:59:35.000Z
2022-03-18T18:59:35.000Z
env/lib/python3.10/site-packages/reportlab/graphics/renderSVG.py
Sehgal-Arjun/DataSorter
2503c535a13405c299fb8cacbbb2c3974f3362c8
[ "MIT" ]
null
null
null
env/lib/python3.10/site-packages/reportlab/graphics/renderSVG.py
Sehgal-Arjun/DataSorter
2503c535a13405c299fb8cacbbb2c3974f3362c8
[ "MIT" ]
null
null
null
__doc__="""An experimental SVG renderer for the ReportLab graphics framework. This will create SVG code from the ReportLab Graphics API (RLG). To read existing SVG code and convert it into ReportLab graphics objects download the svglib module here: http://python.net/~gherman/#svglib """ import math, sys, os, codec...
38.771605
139
0.57459
4086f8773088a5f4043d32642a1c2adafd061c28
359
py
Python
fluent_pages/tests/testapp/urls.py
django-fluent/django-fluent-pages
b98c806f27379b1ebf3566164ee3273f66bd6fe2
[ "Apache-2.0" ]
59
2016-07-25T00:48:36.000Z
2022-03-25T03:12:10.000Z
fluent_pages/tests/testapp/urls.py
edoburu/django-fluent-pages
b98c806f27379b1ebf3566164ee3273f66bd6fe2
[ "Apache-2.0" ]
64
2015-01-13T14:09:23.000Z
2016-06-16T11:59:35.000Z
fluent_pages/tests/testapp/urls.py
edoburu/django-fluent-pages
b98c806f27379b1ebf3566164ee3273f66bd6fe2
[ "Apache-2.0" ]
12
2015-03-09T16:35:40.000Z
2016-06-15T20:32:35.000Z
from django.contrib import admin from django.http import Http404 from django.urls import include, path import fluent_pages.admin # Register model import fluent_pages.urls def simulate_404(request): raise Http404("Test") urlpatterns = [ path("admin/", admin.site.urls), path("404/", simulate_404), p...
19.944444
43
0.727019
b0f4c2e5c5d334c0972146911851282c492d32de
127,311
py
Python
tests/unit/test_gltf.py
alexey-pelykh/gltflib
696023e2dc7696364978be709548acbb96f790e4
[ "MIT" ]
null
null
null
tests/unit/test_gltf.py
alexey-pelykh/gltflib
696023e2dc7696364978be709548acbb96f790e4
[ "MIT" ]
36
2021-08-24T10:22:12.000Z
2022-03-24T10:27:13.000Z
tests/unit/test_gltf.py
alexey-pelykh/gltflib
696023e2dc7696364978be709548acbb96f790e4
[ "MIT" ]
null
null
null
import os import json import base64 from os import path from unittest import TestCase from ..util import sample, custom_sample, setup_temp_dir, SAMPLES_DIR, TEMP_DIR from gltflib import ( GLTF, GLTFModel, Accessor, Asset, FileResource, ExternalResource, Buffer, BufferView, Image, GLBResource, Base64Resource, GL...
50.640811
120
0.671301
940f83b9f8fa45f7534cc41a5b14e7ca9875e6e9
580
py
Python
tests/test_scraper.py
osiris43/ff_learning
90b8dd9699cbfbfee30da63a38c6963c43c62658
[ "MIT" ]
null
null
null
tests/test_scraper.py
osiris43/ff_learning
90b8dd9699cbfbfee30da63a38c6963c43c62658
[ "MIT" ]
null
null
null
tests/test_scraper.py
osiris43/ff_learning
90b8dd9699cbfbfee30da63a38c6963c43c62658
[ "MIT" ]
null
null
null
from .context import scraper from bs4 import BeautifulSoup import pytest class TestScraper: @pytest.fixture def make_soup(self): with open("./testfiles/20211104_jets_colts.html") as fp: return BeautifulSoup(fp, 'html.parser') def test_finds_data_tables(self, make_soup): assert...
32.222222
64
0.693103
4dc20db7f2f5aa5ec7c27022d09191b5c1f98b50
742
py
Python
cumulusci/core/keychain/subprocess_keychain.py
davisagli/CumulusCI
fd74c324ad3ff662484b159395c639879011e711
[ "BSD-3-Clause" ]
109
2015-01-20T14:28:48.000Z
2018-08-31T12:12:39.000Z
cumulusci/core/keychain/subprocess_keychain.py
davisagli/CumulusCI
fd74c324ad3ff662484b159395c639879011e711
[ "BSD-3-Clause" ]
365
2015-01-07T19:54:25.000Z
2018-09-11T15:10:02.000Z
cumulusci/core/keychain/subprocess_keychain.py
davisagli/CumulusCI
fd74c324ad3ff662484b159395c639879011e711
[ "BSD-3-Clause" ]
125
2015-01-17T16:05:39.000Z
2018-09-06T19:05:00.000Z
import typing as T from cumulusci.core.exceptions import ServiceNotConfigured class SubprocessKeychain(T.NamedTuple): """A pretend, in-memory keychain that knows about connected apps and nothing else. This keychain is used by Snowfakery to make the connected app available to tasks that are running in su...
29.68
86
0.719677
3a34bf8f564850d4ccc5b69619efce4a07265982
1,004
py
Python
src/cryptography/hazmat/primitives/serialization/__init__.py
blaggacao/cryptography
89e1e34d977e565171329c26de6ce9c8f12340e7
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause" ]
1
2018-12-03T00:07:28.000Z
2018-12-03T00:07:28.000Z
src/cryptography/hazmat/primitives/serialization/__init__.py
blaggacao/cryptography
89e1e34d977e565171329c26de6ce9c8f12340e7
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/cryptography/hazmat/primitives/serialization/__init__.py
blaggacao/cryptography
89e1e34d977e565171329c26de6ce9c8f12340e7
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# This file is dual licensed under the terms of the Apache License, Version # 2.0, and the BSD License. See the LICENSE file in the root of this repository # for complete details. from __future__ import absolute_import, division, print_function from cryptography.hazmat.primitives.serialization.base import ( BestA...
41.833333
79
0.795817
1861f7b820ba2a6e80f652544ff6d207954542a4
19,308
py
Python
etl/parsers/etw/Microsoft_Windows_MSDTC_Client.py
IMULMUL/etl-parser
76b7c046866ce0469cd129ee3f7bb3799b34e271
[ "Apache-2.0" ]
104
2020-03-04T14:31:31.000Z
2022-03-28T02:59:36.000Z
etl/parsers/etw/Microsoft_Windows_MSDTC_Client.py
IMULMUL/etl-parser
76b7c046866ce0469cd129ee3f7bb3799b34e271
[ "Apache-2.0" ]
7
2020-04-20T09:18:39.000Z
2022-03-19T17:06:19.000Z
etl/parsers/etw/Microsoft_Windows_MSDTC_Client.py
IMULMUL/etl-parser
76b7c046866ce0469cd129ee3f7bb3799b34e271
[ "Apache-2.0" ]
16
2020-03-05T18:55:59.000Z
2022-03-01T10:19:28.000Z
# -*- coding: utf-8 -*- """ Microsoft-Windows-MSDTC Client GUID : 7a67066e-193f-4d3a-82d3-322fee5259de """ from construct import Int8sl, Int8ul, Int16ul, Int16sl, Int32sl, Int32ul, Int64sl, Int64ul, Bytes, Double, Float32l, Struct from etl.utils import WString, CString, SystemTime, Guid from etl.dtyp import Sid from et...
31.91405
123
0.688937
3a41078c81dde5c2d43a5970c25329e3246cf3ff
3,138
py
Python
workers/securityworker/securityworker.py
bcaton85/quay
a60d0c9248e2a8ee159bcf9c6bd6efcebf2e9d6e
[ "Apache-2.0" ]
null
null
null
workers/securityworker/securityworker.py
bcaton85/quay
a60d0c9248e2a8ee159bcf9c6bd6efcebf2e9d6e
[ "Apache-2.0" ]
null
null
null
workers/securityworker/securityworker.py
bcaton85/quay
a60d0c9248e2a8ee159bcf9c6bd6efcebf2e9d6e
[ "Apache-2.0" ]
null
null
null
import logging.config import os import time import features import threading from app import app from data.secscan_model import secscan_model from workers.gunicorn_worker import GunicornWorker from workers.worker import Worker from util.locking import GlobalLock, LockNotAcquiredException from util.log import logfile_...
33.031579
98
0.710006
d15cb1d45f18496c736a592fe8372ec0c05d1dad
14,848
py
Python
lib/kubernetes/client/models/v1beta1_daemon_set_status.py
splunkenizer/splunk_as_a_service_app
97c4aaf927d2171bf131126cf9b70489ac75bc5a
[ "Apache-2.0" ]
7
2019-12-21T00:14:14.000Z
2021-03-11T14:51:37.000Z
lib/kubernetes/client/models/v1beta1_daemon_set_status.py
splunkenizer/splunk_as_a_service_app
97c4aaf927d2171bf131126cf9b70489ac75bc5a
[ "Apache-2.0" ]
29
2019-10-09T11:16:21.000Z
2020-06-23T09:32:09.000Z
lib/kubernetes/client/models/v1beta1_daemon_set_status.py
splunkenizer/splunk_as_a_service_app
97c4aaf927d2171bf131126cf9b70489ac75bc5a
[ "Apache-2.0" ]
1
2021-05-07T10:13:31.000Z
2021-05-07T10:13:31.000Z
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.14.4 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteri...
38.767624
275
0.65982
0dc725db7c118ffde9ab02117c65da68858cb093
502
py
Python
djangoTests/urls.py
Ssousuke/django-tests
f68f7e4b4ae635b9550de15e738c75e2326d56d4
[ "Apache-2.0" ]
null
null
null
djangoTests/urls.py
Ssousuke/django-tests
f68f7e4b4ae635b9550de15e738c75e2326d56d4
[ "Apache-2.0" ]
null
null
null
djangoTests/urls.py
Ssousuke/django-tests
f68f7e4b4ae635b9550de15e738c75e2326d56d4
[ "Apache-2.0" ]
null
null
null
from xml.dom.minidom import Document from django.contrib import admin from django.urls import path, include from django.conf import settings from django.conf.urls.static import static urlpatterns = [ path('admin/', admin.site.urls), path('', include('backend.recipes.urls', namespace='recipes')), ] + static(set...
31.375
67
0.733068
dbaf4b92ff6b33b202dbdc2d2f9baa782350cdcd
4,183
py
Python
learned_optimization/tasks/datasets/image.py
Sohl-Dickstein/learned_optimization
cd929359a51d09444665021387c058aac11b63ba
[ "Apache-2.0" ]
null
null
null
learned_optimization/tasks/datasets/image.py
Sohl-Dickstein/learned_optimization
cd929359a51d09444665021387c058aac11b63ba
[ "Apache-2.0" ]
null
null
null
learned_optimization/tasks/datasets/image.py
Sohl-Dickstein/learned_optimization
cd929359a51d09444665021387c058aac11b63ba
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
31.451128
80
0.671289
3ba73b8f0181944c79365e70e212ab72d1b31a2c
36,216
py
Python
pylddlib.py
sttng/LegoToR
a0f5be6d29b10acd9606d929751eaa1941346a1b
[ "MIT" ]
12
2020-03-09T02:32:37.000Z
2022-02-23T23:19:23.000Z
pylddlib.py
sttng/LegoToR
a0f5be6d29b10acd9606d929751eaa1941346a1b
[ "MIT" ]
2
2020-10-06T01:53:40.000Z
2020-10-11T05:44:34.000Z
pylddlib.py
sttng/LegoToR
a0f5be6d29b10acd9606d929751eaa1941346a1b
[ "MIT" ]
null
null
null
#!/usr/bin/env python # pylddlib version 0.4.9.8 # based on pyldd2obj version 0.4.8 - Copyright (c) 2019 by jonnysp # # Updates: # 0.4.9.8 further Windows compatibility improvements # 0.4.9.7 corrected bug of incorrectly parsing the primitive xml file, specifically with comments. Add support LDDLIFTREE envirnment varia...
38.202532
500
0.664458
2aee1a099d01877feb0bc60dbd5934e29a0d36eb
1,954
py
Python
var/spack/repos/builtin/packages/flecsph/package.py
FJ-NaokiMatsumura/spack
7cfe626e21795f0a4bfe61f36ca1b48ffd2fc961
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
11
2015-10-04T02:17:46.000Z
2018-02-07T18:23:00.000Z
var/spack/repos/builtin/packages/flecsph/package.py
FJ-NaokiMatsumura/spack
7cfe626e21795f0a4bfe61f36ca1b48ffd2fc961
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
22
2017-08-01T22:45:10.000Z
2022-03-10T07:46:31.000Z
var/spack/repos/builtin/packages/flecsph/package.py
FJ-NaokiMatsumura/spack
7cfe626e21795f0a4bfe61f36ca1b48ffd2fc961
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
4
2016-06-10T17:57:39.000Z
2018-09-11T04:59:38.000Z
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * from spack.pkg.builtin.boost import Boost class Flecsph(CMakePackage): """FleCSPH is a multi-phy...
37.576923
78
0.708291
c18c2179e36c9d1212d67b5ddb708a98a8e17d04
425
py
Python
src/VoiceController.py
rootadminWalker/mr_voice
2be1365c4b1f23fd28f6414a111686fc435fce29
[ "MIT" ]
null
null
null
src/VoiceController.py
rootadminWalker/mr_voice
2be1365c4b1f23fd28f6414a111686fc435fce29
[ "MIT" ]
null
null
null
src/VoiceController.py
rootadminWalker/mr_voice
2be1365c4b1f23fd28f6414a111686fc435fce29
[ "MIT" ]
2
2021-07-14T08:22:13.000Z
2021-07-14T08:22:24.000Z
#!/usr/bin/env python3 # -*- encoding: utf-8 -*- import rospy from mr_voice.msg import Voice class VoiceController(object): def __init__(self): self.t_voice_text = rospy.get_param("~voice_text", "/voice/text") rospy.Subscriber(self.t_voice_text, Voice, self.callback_voice_text) def callb...
23.611111
76
0.675294
b1ad437896bf23828ecf10c463b13efabe0fc392
1,669
py
Python
analysis/strategy_stat.py
bizeasy17/investtrack
3840948896573f3906a5df80ea80859a492f4133
[ "MIT" ]
null
null
null
analysis/strategy_stat.py
bizeasy17/investtrack
3840948896573f3906a5df80ea80859a492f4133
[ "MIT" ]
3
2021-07-15T13:23:28.000Z
2021-12-09T03:32:16.000Z
analysis/strategy_stat.py
bizeasy17/investtrack
3840948896573f3906a5df80ea80859a492f4133
[ "MIT" ]
1
2021-08-19T14:42:59.000Z
2021-08-19T14:42:59.000Z
from django.db.models import Count from django.db.models import Q, F from .models import TradeStrategyStat from investors.models import TradeStrategy import pandas as pd def analyze_trade_strategy(): num_s = Count('transactions', filter=Q( transactions__price__lt=F('transactions__sell_price'), transaction...
40.707317
132
0.639305
2a2c383f53743e1f7b1199e72a02a29887018860
34
py
Python
foscam/__init__.py
m4tto/foscam-python-lib
f0ac8cacb8126ff6d200042048f89969f790be01
[ "MIT" ]
91
2015-05-03T20:45:50.000Z
2021-12-20T12:49:27.000Z
foscam/__init__.py
m4tto/foscam-python-lib
f0ac8cacb8126ff6d200042048f89969f790be01
[ "MIT" ]
18
2015-05-22T14:46:36.000Z
2019-02-10T16:11:29.000Z
foscam/__init__.py
m4tto/foscam-python-lib
f0ac8cacb8126ff6d200042048f89969f790be01
[ "MIT" ]
49
2015-05-22T12:51:21.000Z
2022-02-11T06:16:37.000Z
from .foscam import FoscamCamera
11.333333
32
0.823529
995956d147bbee7cd7affc981354d9bb444ec2b3
8,234
py
Python
{{ cookiecutter.repo_name }}/docsrc/conf.py
MAVJ/orbyter-cookiecutter
c37edca8c45428b619f421e0067d925dfee5c24b
[ "MIT" ]
null
null
null
{{ cookiecutter.repo_name }}/docsrc/conf.py
MAVJ/orbyter-cookiecutter
c37edca8c45428b619f421e0067d925dfee5c24b
[ "MIT" ]
null
null
null
{{ cookiecutter.repo_name }}/docsrc/conf.py
MAVJ/orbyter-cookiecutter
c37edca8c45428b619f421e0067d925dfee5c24b
[ "MIT" ]
1
2020-09-09T10:46:18.000Z
2020-09-09T10:46:18.000Z
# -*- coding: utf-8 -*- # # {{ cookiecutter.project_name }} documentation build configuration file, created by # sphinx-quickstart. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All con...
32.038911
103
0.694802
906294a984fc0f0fb978404fe2c9549e63a43379
843
py
Python
test/test_sample.py
apsinha-equinix/controlm-client
f24e0f935c82306074f4e4025cf62c217348dc3f
[ "MIT" ]
1
2021-12-02T08:49:25.000Z
2021-12-02T08:49:25.000Z
test/test_sample.py
apsinha-equinix/controlm-client
f24e0f935c82306074f4e4025cf62c217348dc3f
[ "MIT" ]
null
null
null
test/test_sample.py
apsinha-equinix/controlm-client
f24e0f935c82306074f4e4025cf62c217348dc3f
[ "MIT" ]
null
null
null
# coding: utf-8 """ Control-M Services Provides access to BMC Control-M Services # noqa: E501 OpenAPI spec version: 9.18.3 Contact: support@bmc.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import controlm_clie...
20.560976
79
0.68446
e948a32f4d17787a4d74859ddd1bd936bbe3a8d8
249
py
Python
mytutorial/admin.py
PrinceSingh-123/solutiontube-2020
01b756a7e1cf78d112c58a7ac52906255bcb252c
[ "MIT" ]
null
null
null
mytutorial/admin.py
PrinceSingh-123/solutiontube-2020
01b756a7e1cf78d112c58a7ac52906255bcb252c
[ "MIT" ]
null
null
null
mytutorial/admin.py
PrinceSingh-123/solutiontube-2020
01b756a7e1cf78d112c58a7ac52906255bcb252c
[ "MIT" ]
null
null
null
from django.contrib import admin from mytutorial.models import Solution_videos from import_export.admin import ImportExportModelAdmin # Register your models here. @admin.register(Solution_videos) class PersonAdmin(ImportExportModelAdmin): pass
27.666667
54
0.84739
a084b765203890c9996459d91a8f2e2f7526e0a5
119,980
py
Python
src/azure-cli/azure/cli/command_modules/appconfig/tests/latest/test_appconfig_commands.py
unparalleled-js/azure-cli
d04b359a45c7c92485ac590fcdf48caaf44a88b8
[ "MIT" ]
3,287
2016-07-26T17:34:33.000Z
2022-03-31T09:52:13.000Z
src/azure-cli/azure/cli/command_modules/appconfig/tests/latest/test_appconfig_commands.py
unparalleled-js/azure-cli
d04b359a45c7c92485ac590fcdf48caaf44a88b8
[ "MIT" ]
19,206
2016-07-26T07:04:42.000Z
2022-03-31T23:57:09.000Z
src/azure-cli/azure/cli/command_modules/appconfig/tests/latest/test_appconfig_commands.py
unparalleled-js/azure-cli
d04b359a45c7c92485ac590fcdf48caaf44a88b8
[ "MIT" ]
2,575
2016-07-26T06:44:40.000Z
2022-03-31T22:56:06.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
49.212469
220
0.598508
6a705770d46c71071781a131fc09b33ba2ec711a
99
py
Python
redditpoller/apps.py
ericleepa/watcherforreddit
3b74534be3dcb97cac3ce5529b0db2ef659725f7
[ "MIT" ]
8
2017-03-17T14:10:59.000Z
2017-09-24T12:36:34.000Z
redditpoller/apps.py
ericleepa/watcherforreddit
3b74534be3dcb97cac3ce5529b0db2ef659725f7
[ "MIT" ]
null
null
null
redditpoller/apps.py
ericleepa/watcherforreddit
3b74534be3dcb97cac3ce5529b0db2ef659725f7
[ "MIT" ]
null
null
null
from django.apps import AppConfig class ThreadpollerConfig(AppConfig): name = 'redditpoller'
16.5
36
0.777778
6bba513893cc88f20908fb5bd7b035eb682730f1
12,669
py
Python
djangosaml2/backends.py
lgarvey/djangosaml2
fd6a8237ed7b2b2308de97b11773c1860139b048
[ "Apache-2.0" ]
null
null
null
djangosaml2/backends.py
lgarvey/djangosaml2
fd6a8237ed7b2b2308de97b11773c1860139b048
[ "Apache-2.0" ]
null
null
null
djangosaml2/backends.py
lgarvey/djangosaml2
fd6a8237ed7b2b2308de97b11773c1860139b048
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2010-2012 Yaco Sistemas (http://www.yaco.es) # Copyright (C) 2009 Lorenzo Gil Sanchez <lorenzo.gil.sanchez@gmail.com> # # 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 # # ...
45.571942
149
0.655458
a2c007f162e86ffbd443b42e47ea668f382b5f23
231
py
Python
spacy/tests/regression/test_issue360.py
cmgreivel/spaCy
a31506e06060c559abfeda043503935691af2e98
[ "MIT" ]
88
2018-05-06T17:28:23.000Z
2022-03-06T20:19:16.000Z
spacy/tests/regression/test_issue360.py
cmgreivel/spaCy
a31506e06060c559abfeda043503935691af2e98
[ "MIT" ]
12
2018-07-19T15:11:57.000Z
2021-08-05T11:58:29.000Z
spacy/tests/regression/test_issue360.py
cmgreivel/spaCy
a31506e06060c559abfeda043503935691af2e98
[ "MIT" ]
10
2018-07-28T22:43:04.000Z
2020-11-22T22:58:21.000Z
# coding: utf-8 from __future__ import unicode_literals import pytest def test_issue360(en_tokenizer): """Test tokenization of big ellipsis""" tokens = en_tokenizer('$45...............Asking') assert len(tokens) > 2
21
53
0.679654
a38fc71f3627ca89bdaf33eec6b07ae9361850d6
6,059
py
Python
Gds/test/fprime_gds/common/history/testhistory_unit_test.py
SSteve/fprime
12c478bd79c2c4ba2d9f9e634e47f8b6557c54a8
[ "Apache-2.0" ]
2
2021-02-19T16:51:46.000Z
2021-02-19T16:51:56.000Z
Gds/test/fprime_gds/common/history/testhistory_unit_test.py
SSteve/fprime
12c478bd79c2c4ba2d9f9e634e47f8b6557c54a8
[ "Apache-2.0" ]
9
2021-02-21T07:27:44.000Z
2021-02-21T07:27:58.000Z
Gds/test/fprime_gds/common/history/testhistory_unit_test.py
SSteve/fprime
12c478bd79c2c4ba2d9f9e634e47f8b6557c54a8
[ "Apache-2.0" ]
1
2021-05-29T02:59:16.000Z
2021-05-29T02:59:16.000Z
import os import sys import unittest from fprime_gds.common.history.test import TestHistory from fprime_gds.common.testing_fw import predicates filename = os.path.dirname(__file__) gdsName = os.path.join(filename, "../../../../src") fprimeName = os.path.join(filename, "../../../../../Fw/Python/src") sys.path.insert(0...
32.751351
86
0.604225
45ce2d1497c879752aed2b8c2d591501f1f29c20
1,155
py
Python
tests/contrib/networks/test_tf_ctx_compile.py
nicolay-r/AREk
19c39ec0dc9a17464cade03b9c4da0c6d1d21191
[ "MIT" ]
18
2019-12-14T18:43:11.000Z
2022-03-21T05:55:36.000Z
tests/contrib/networks/test_tf_ctx_compile.py
nicolay-r/AREk
19c39ec0dc9a17464cade03b9c4da0c6d1d21191
[ "MIT" ]
284
2020-08-08T20:52:44.000Z
2022-03-31T05:26:20.000Z
tests/contrib/networks/test_tf_ctx_compile.py
nicolay-r/AREk
19c39ec0dc9a17464cade03b9c4da0c6d1d21191
[ "MIT" ]
1
2021-08-07T13:17:43.000Z
2021-08-07T13:17:43.000Z
import logging import sys import unittest sys.path.append('../../../') from tests.contrib.networks.tf_networks.supported import get_supported from tests.contrib.networks.tf_networks.utils import init_config from arekit.contrib.networks.context.configurations.base.base import DefaultNetworkConfig from arekit.processi...
32.083333
89
0.734199
2cdb092ee466600225d13e4cec81dd07bf899589
349
py
Python
pyvisdk/enums/filter_spec_comparison_operator.py
Infinidat/pyvisdk
f2f4e5f50da16f659ccc1d84b6a00f397fa997f8
[ "MIT" ]
null
null
null
pyvisdk/enums/filter_spec_comparison_operator.py
Infinidat/pyvisdk
f2f4e5f50da16f659ccc1d84b6a00f397fa997f8
[ "MIT" ]
null
null
null
pyvisdk/enums/filter_spec_comparison_operator.py
Infinidat/pyvisdk
f2f4e5f50da16f659ccc1d84b6a00f397fa997f8
[ "MIT" ]
null
null
null
######################################## # Automatically generated, do not edit. ######################################## from pyvisdk.thirdparty import Enum FilterSpecComparisonOperator = Enum( 'beginsWith', 'contains', 'endsWith', 'equal', 'greaterThanOrEqual', 'lessThanOrEqual', 'notC...
17.45
40
0.507163
1067c7344f288750c88a958234d18f505d9295ee
2,034
py
Python
HandTrackTest.py
TheUnity42/Micro2Project
6c4d2fe99c7de0cc6512b71b8aea8b0147840504
[ "Apache-2.0" ]
null
null
null
HandTrackTest.py
TheUnity42/Micro2Project
6c4d2fe99c7de0cc6512b71b8aea8b0147840504
[ "Apache-2.0" ]
null
null
null
HandTrackTest.py
TheUnity42/Micro2Project
6c4d2fe99c7de0cc6512b71b8aea8b0147840504
[ "Apache-2.0" ]
null
null
null
from ctypes.wintypes import RGB import tensorflow as tf import numpy as np import cv2 import os import sys def main(model_path): # handle relative paths model_path = os.path.abspath(model_path) print("Loading model from: {}".format(model_path)) # load the model model = tf.keras.models.load_model(...
25.425
108
0.588496
680636192aaa5e69299b694094d50e373ef6f123
135
py
Python
lang/py/cookbook/v2/source/cb2_1_17_exm_8.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
null
null
null
lang/py/cookbook/v2/source/cb2_1_17_exm_8.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
null
null
null
lang/py/cookbook/v2/source/cb2_1_17_exm_8.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
null
null
null
msg = string.Template('an $adj $msg') adj = 'interesting' print msg.substitute(locals(), msg='message') # emits an interesting message
27
45
0.725926
c65700f381a6cd52427d5ec8fce3f2200fe93899
10,226
py
Python
official/vision/beta/projects/yolo/modeling/layers/detection_generator.py
beraterenterzi/tf_car_licence
3872a0539d5472b9241d8ff5170aecebb9eac5e6
[ "MIT" ]
3
2022-03-05T10:46:52.000Z
2022-03-22T06:00:05.000Z
official/vision/beta/projects/yolo/modeling/layers/detection_generator.py
sakib-rahman-bangladesh/models
b7b5a9444768439e00cdd86524ad6c0345f4af03
[ "Apache-2.0" ]
null
null
null
official/vision/beta/projects/yolo/modeling/layers/detection_generator.py
sakib-rahman-bangladesh/models
b7b5a9444768439e00cdd86524ad6c0345f4af03
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 The TensorFlow 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 applica...
37.595588
120
0.654313
9f97b14badd07c63a523a23a634aad7838d6d1ef
3,727
py
Python
frontend/app.py
MelbourneSpaceProgram/ground-station-server
7df123e85daa53b8103d7e49c0c1a27e7fcf2466
[ "MIT" ]
null
null
null
frontend/app.py
MelbourneSpaceProgram/ground-station-server
7df123e85daa53b8103d7e49c0c1a27e7fcf2466
[ "MIT" ]
null
null
null
frontend/app.py
MelbourneSpaceProgram/ground-station-server
7df123e85daa53b8103d7e49c0c1a27e7fcf2466
[ "MIT" ]
null
null
null
import dash import pandas as pd import requests from dash import dash_table, dcc, html from dash.dependencies import Input, Output, State import plotly.graph_objects as go import plotly.express as px BACKEND = "http://host.docker.internal:8888" app = dash.Dash(__name__, update_title=None) map_fig = go.Figure(go.Scat...
28.669231
111
0.587872
3de441a3cd456d659c4e9134b86cfb7172e9f639
489
py
Python
check_solution.py
Adriantsh/astr-119
e4ffd18f62d47a06a89732294cdd425fe487a8b0
[ "MIT" ]
null
null
null
check_solution.py
Adriantsh/astr-119
e4ffd18f62d47a06a89732294cdd425fe487a8b0
[ "MIT" ]
3
2020-10-08T04:18:57.000Z
2020-10-08T23:05:59.000Z
check_solution.py
Adriantsh/astr-119
e4ffd18f62d47a06a89732294cdd425fe487a8b0
[ "MIT" ]
null
null
null
#define the main() function def main(): i = 0 #declare an integer i x = 119.0 #delcare a float x for i in range(120): #loop i from 0 to 119, inclusive if((i%2)==0): #if i is even x += 3. #add 3 to x else: #if i is odd x -= 5. #subtract 5 from x s = "%3.2e" % x #make a string cont...
25.736842
66
0.582822
a6995347a49693121160ab876ca8a40c68798938
231
py
Python
Core/Block_C/RC191_Factory.py
BernardoB95/Extrator_SPEDFiscal
10b4697833c561d24654251da5f22d044f03fc16
[ "MIT" ]
1
2021-04-25T13:53:20.000Z
2021-04-25T13:53:20.000Z
Core/Block_C/RC191_Factory.py
BernardoB95/Extrator_SPEDFiscal
10b4697833c561d24654251da5f22d044f03fc16
[ "MIT" ]
null
null
null
Core/Block_C/RC191_Factory.py
BernardoB95/Extrator_SPEDFiscal
10b4697833c561d24654251da5f22d044f03fc16
[ "MIT" ]
null
null
null
from Core.IFactory import IFactory from Regs.Block_C import RC191 class RC191Factory(IFactory): def create_block_object(self, line): self.rc191 = _rc191 = RC191() _rc191.reg_list = line return _rc191
21
40
0.69697
43f999fbef1939b6024cdeb9d991851bda4f88a8
494
py
Python
catalog/migrations/0006_order_address.py
chancald/mask-ecommerce
1907007e726f989b6d99546e1b03ad5891d65715
[ "Apache-2.0" ]
null
null
null
catalog/migrations/0006_order_address.py
chancald/mask-ecommerce
1907007e726f989b6d99546e1b03ad5891d65715
[ "Apache-2.0" ]
null
null
null
catalog/migrations/0006_order_address.py
chancald/mask-ecommerce
1907007e726f989b6d99546e1b03ad5891d65715
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.1.4 on 2020-12-27 19:45 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('catalog', '0005_auto_20201226_1923'), ] operations = [ migrations.AddField( model_name='order',...
24.7
127
0.643725
1c132e0a38bc613864f4ba2593671aacceea7896
616
py
Python
setup.py
Open511/open511-server
f78301bff6aae582baae71022bc84e97c44e7650
[ "MIT" ]
1
2021-01-11T03:22:39.000Z
2021-01-11T03:22:39.000Z
setup.py
Open511/open511-server
f78301bff6aae582baae71022bc84e97c44e7650
[ "MIT" ]
2
2015-11-27T20:16:43.000Z
2015-11-27T20:27:46.000Z
setup.py
Open511/open511-server
f78301bff6aae582baae71022bc84e97c44e7650
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup( name = "open511-server", version = "0.1", url='', license = "", packages = find_packages(), install_requires = [ 'open511==0.5', 'lxml>=3.0,<=4.0', 'WebOb==1.5.1', 'python-dateutil==2.4.2', 'requests==2.8...
22.814815
74
0.501623
a60968644901c1bf9b1fc1364e5835eca5e99c25
6,307
py
Python
test/record/parser/test_response_whois_networksolutions_com_status_registered.py
huyphan/pyyawhois
77fb2f73a9c67989f1d41d98f37037406a69d136
[ "MIT" ]
null
null
null
test/record/parser/test_response_whois_networksolutions_com_status_registered.py
huyphan/pyyawhois
77fb2f73a9c67989f1d41d98f37037406a69d136
[ "MIT" ]
null
null
null
test/record/parser/test_response_whois_networksolutions_com_status_registered.py
huyphan/pyyawhois
77fb2f73a9c67989f1d41d98f37037406a69d136
[ "MIT" ]
null
null
null
# This file is autogenerated. Do not edit it manually. # If you want change the content of this file, edit # # spec/fixtures/responses/whois.networksolutions.com/status_registered # # and regenerate the tests with the following script # # $ scripts/generate_tests.py # from nose.tools import * from dateutil.parser...
49.661417
97
0.700174
9e9a500dbad47b2e442669e3d786411c694ca7c0
4,793
py
Python
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_02_01_preview/operations/_operations.py
beltr0n/azure-sdk-for-python
2f7fb8bee881b0fc0386a0ad5385755ceedd0453
[ "MIT" ]
2
2021-03-24T06:26:11.000Z
2021-04-18T15:55:59.000Z
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_02_01_preview/operations/_operations.py
beltr0n/azure-sdk-for-python
2f7fb8bee881b0fc0386a0ad5385755ceedd0453
[ "MIT" ]
4
2019-04-17T17:57:49.000Z
2020-04-24T21:11:22.000Z
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_02_01_preview/operations/_operations.py
beltr0n/azure-sdk-for-python
2f7fb8bee881b0fc0386a0ad5385755ceedd0453
[ "MIT" ]
1
2019-04-05T18:17:43.000Z
2019-04-05T18:17:43.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
43.572727
133
0.659503