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
9f1ff8268d2c598520fc1239b5d51ce064eb37aa
65
py
Python
without-attrs/conanfile.py
grisumbras/conan-promote
f1d746bbd134f64af0d9f6b4cf6d579c99980a1f
[ "BSL-1.0" ]
1
2020-02-02T16:39:43.000Z
2020-02-02T16:39:43.000Z
without-attrs/conanfile.py
grisumbras/conan-promote
f1d746bbd134f64af0d9f6b4cf6d579c99980a1f
[ "BSL-1.0" ]
null
null
null
without-attrs/conanfile.py
grisumbras/conan-promote
f1d746bbd134f64af0d9f6b4cf6d579c99980a1f
[ "BSL-1.0" ]
null
null
null
from conans import ConanFile class MyConan(ConanFile): pass
13
28
0.769231
9eba8787d82043df9e5bd74786b24722dc5210d4
13,367
py
Python
mutatery/__init__.py
serin-delaunay/mutatery-nngm-2019
b2786c81726192cb9455fd31153e9021f202d262
[ "Apache-2.0" ]
1
2020-10-12T21:09:41.000Z
2020-10-12T21:09:41.000Z
mutatery/__init__.py
serin-delaunay/mutatery-nngm-2019
b2786c81726192cb9455fd31153e9021f202d262
[ "Apache-2.0" ]
null
null
null
mutatery/__init__.py
serin-delaunay/mutatery-nngm-2019
b2786c81726192cb9455fd31153e9021f202d262
[ "Apache-2.0" ]
null
null
null
import re import random try: unicode = unicode except NameError: # 'unicode' is undefined, must be Python 3 basestring = (str, bytes) else: # 'unicode' exists, must be Python 2 basestring = basestring class Node(object): def __init__(self, parent, child_index, settings): self.errors =...
34.09949
101
0.519638
d4503729db5fccc927b8b0d22bf5cdd92e29502f
7,603
py
Python
tests/api/apitestbase.py
MJochim/seahub
66fcc6772511d43346a2980613576c5fdb4c4945
[ "Apache-2.0" ]
420
2015-01-03T11:34:46.000Z
2022-03-10T07:15:41.000Z
tests/api/apitestbase.py
MJochim/seahub
66fcc6772511d43346a2980613576c5fdb4c4945
[ "Apache-2.0" ]
735
2015-01-04T21:22:51.000Z
2022-03-31T09:26:07.000Z
tests/api/apitestbase.py
MJochim/seahub
66fcc6772511d43346a2980613576c5fdb4c4945
[ "Apache-2.0" ]
379
2015-01-05T17:08:03.000Z
2022-03-06T00:11:50.000Z
#coding: UTF-8 import requests import unittest from contextlib import contextmanager from nose.tools import assert_equal, assert_in # pylint: disable=E0611 from urllib.parse import quote from tests.common.common import USERNAME, PASSWORD, \ ADMIN_USERNAME, ADMIN_PASSWORD from tests.common.utils import apiurl, ur...
31.032653
84
0.589504
df426a335732ebe029328ffce41cd068fc432063
4,369
py
Python
model_pruning/python/pruning_interface_test.py
TokyoYoshida/google-research
102b6a5cdb85acd490e23831b643fc679cbb8db5
[ "Apache-2.0" ]
1
2021-02-22T23:19:11.000Z
2021-02-22T23:19:11.000Z
model_pruning/python/pruning_interface_test.py
TokyoYoshida/google-research
102b6a5cdb85acd490e23831b643fc679cbb8db5
[ "Apache-2.0" ]
null
null
null
model_pruning/python/pruning_interface_test.py
TokyoYoshida/google-research
102b6a5cdb85acd490e23831b643fc679cbb8db5
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2021 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
30.340278
78
0.710002
d4dce68b478d0f6d9015303931c6462ce579df7c
715
py
Python
iceworm/trees/tests/test_types.py
wrmsr0/iceworm
09431bb3cdc4f6796aafca41e37d42ebe0ddfeef
[ "BSD-3-Clause" ]
null
null
null
iceworm/trees/tests/test_types.py
wrmsr0/iceworm
09431bb3cdc4f6796aafca41e37d42ebe0ddfeef
[ "BSD-3-Clause" ]
1
2021-01-19T14:29:19.000Z
2021-01-19T14:34:27.000Z
iceworm/trees/tests/test_types.py
wrmsr0/iceworm
09431bb3cdc4f6796aafca41e37d42ebe0ddfeef
[ "BSD-3-Clause" ]
1
2020-12-31T22:29:52.000Z
2020-12-31T22:29:52.000Z
from omnibus.serde import mapping as sm from .. import nodes as no from ..types import AstQuery from ..types import Query from ..types import StrQuery def test_query(): s = 'abc' d = sm.deserialize(s, Query) assert d == StrQuery('abc') s = sm.serialize(d, Query) assert s == {'str_query': {'src': ...
27.5
132
0.586014
a9ce326d3de307f5765cd92b8c6ec2fef069979c
27
py
Python
lru_cache/__init__.py
lceames/lru-cache
9812edf5372d49f3719368d9f9962e27e03f5953
[ "MIT" ]
null
null
null
lru_cache/__init__.py
lceames/lru-cache
9812edf5372d49f3719368d9f9962e27e03f5953
[ "MIT" ]
null
null
null
lru_cache/__init__.py
lceames/lru-cache
9812edf5372d49f3719368d9f9962e27e03f5953
[ "MIT" ]
null
null
null
from .cache import LRUCache
27
27
0.851852
f26132d9e5bc5e1a65585f0a18811268242fdb3b
17,827
py
Python
cwltool/schemas/v1.0/salad/schema_salad/schema.py
jeremiahsavage/cwltool
fe1c06f16f866fa2d1a4655f236b9a52b9564fac
[ "Apache-2.0" ]
2
2017-07-06T13:25:23.000Z
2017-07-06T13:26:15.000Z
cwltool/schemas/v1.0/salad/schema_salad/schema.py
jeremiahsavage/cwltool
fe1c06f16f866fa2d1a4655f236b9a52b9564fac
[ "Apache-2.0" ]
1
2018-05-10T06:45:21.000Z
2018-05-10T06:45:21.000Z
cwltool/schemas/v1.0/salad/schema_salad/schema.py
jeremiahsavage/cwltool
fe1c06f16f866fa2d1a4655f236b9a52b9564fac
[ "Apache-2.0" ]
3
2018-04-05T17:14:59.000Z
2021-07-12T00:54:13.000Z
import avro import copy from .add_dictlist import add_dictlist import sys import pprint from pkg_resources import resource_stream import ruamel.yaml as yaml try: from ruamel.yaml import CSafeLoader as SafeLoader except ImportError: from ruamel.yaml import SafeLoader # type: ignore import avro.schema from . imp...
38.670282
185
0.563247
d7c0cb38a3d3a8f0ec485843fa6260e100dcfcc9
4,955
py
Python
test/test_time.py
ToyotaResearchInstitute/task_behavior_ros
0bc58f88556c9029c9a579511e1fdab9bd58248b
[ "Apache-2.0" ]
2
2017-02-16T00:47:39.000Z
2018-05-12T13:34:17.000Z
test/test_time.py
ToyotaResearchInstitute/task_behavior_ros
0bc58f88556c9029c9a579511e1fdab9bd58248b
[ "Apache-2.0" ]
4
2017-02-17T19:05:22.000Z
2017-05-04T17:41:26.000Z
test/test_time.py
ToyotaResearchInstitute/task_behavior_ros
0bc58f88556c9029c9a579511e1fdab9bd58248b
[ "Apache-2.0" ]
2
2019-03-08T06:45:25.000Z
2022-03-08T10:08:00.000Z
#!/usr/bin/env python # Copyright 2016 Toyota Research Institute # 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 applicabl...
32.385621
77
0.615338
f8ded3b55a23633eb09cc6c8ff67f56c9f72f0d7
7,433
py
Python
train.py
awesomephant/char-rnn-tensorflow
922835519f08e598260f35ae8680279aaea6fd87
[ "MIT" ]
null
null
null
train.py
awesomephant/char-rnn-tensorflow
922835519f08e598260f35ae8680279aaea6fd87
[ "MIT" ]
null
null
null
train.py
awesomephant/char-rnn-tensorflow
922835519f08e598260f35ae8680279aaea6fd87
[ "MIT" ]
null
null
null
from __future__ import print_function import tensorflow as tf import tfdeploy as td import argparse import time import os from six.moves import cPickle from utils import TextLoader from model import Model def main(): parser = argparse.ArgumentParser( formatter_class=argparse.ArgumentDefa...
51.262069
147
0.593031
3e4e50e437b8266101f1a9edd97e38e6976343a3
65
py
Python
example/client/main.py
ATenderholt/lambda-router
240b47dd0aa44e18099676271cf20069f5c1977d
[ "BSD-3-Clause" ]
null
null
null
example/client/main.py
ATenderholt/lambda-router
240b47dd0aa44e18099676271cf20069f5c1977d
[ "BSD-3-Clause" ]
null
null
null
example/client/main.py
ATenderholt/lambda-router
240b47dd0aa44e18099676271cf20069f5c1977d
[ "BSD-3-Clause" ]
null
null
null
import requests def handle(event, _): print("Event:", event)
16.25
26
0.676923
ddb81a757a58aa29245eeb4a9da21dbb75bbf265
2,787
py
Python
gcloud/bigtable/_generated/duration_pb2.py
scrapinghub/gcloud-python
1ec6d636ebf2c4d618aca6b2485fbbfa5f0fde29
[ "Apache-2.0" ]
null
null
null
gcloud/bigtable/_generated/duration_pb2.py
scrapinghub/gcloud-python
1ec6d636ebf2c4d618aca6b2485fbbfa5f0fde29
[ "Apache-2.0" ]
null
null
null
gcloud/bigtable/_generated/duration_pb2.py
scrapinghub/gcloud-python
1ec6d636ebf2c4d618aca6b2485fbbfa5f0fde29
[ "Apache-2.0" ]
2
2017-07-30T16:18:23.000Z
2020-10-14T11:24:18.000Z
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/protobuf/duration.proto from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database...
33.578313
252
0.775745
055475d6dfb9a738d8fdf8283a71d7d07cd72345
8,242
py
Python
port_range/tests/test_port_range.py
jeking3/port-range
7d071b4d6124d9e926922d5fca714519a28b0d5c
[ "BSD-2-Clause" ]
null
null
null
port_range/tests/test_port_range.py
jeking3/port-range
7d071b4d6124d9e926922d5fca714519a28b0d5c
[ "BSD-2-Clause" ]
null
null
null
port_range/tests/test_port_range.py
jeking3/port-range
7d071b4d6124d9e926922d5fca714519a28b0d5c
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (c) 2014-2016 Scaleway and Contributors. All Rights Reserved. # Kevin Deldycke <kdeldycke@scaleway.com> # # Licensed under the BSD 2-Clause License (the "License"); you may not use this # file except in compliance with the License. You may obtain a copy of t...
42.704663
79
0.637952
68078a17905b3a3e63802618a91656b5851ee832
61
py
Python
src/lesson_runtime_features/sys_exit.py
jasonwee/asus-rt-n14uhp-mrtg
4fa96c3406e32ea6631ce447db6d19d70b2cd061
[ "Apache-2.0" ]
3
2018-08-14T09:33:52.000Z
2022-03-21T12:31:58.000Z
src/lesson_runtime_features/sys_exit.py
jasonwee/asus-rt-n14uhp-mrtg
4fa96c3406e32ea6631ce447db6d19d70b2cd061
[ "Apache-2.0" ]
null
null
null
src/lesson_runtime_features/sys_exit.py
jasonwee/asus-rt-n14uhp-mrtg
4fa96c3406e32ea6631ce447db6d19d70b2cd061
[ "Apache-2.0" ]
null
null
null
import sys exit_code = int(sys.argv[1]) sys.exit(exit_code)
12.2
28
0.737705
c2c3a0baa15f76a63154e5cedc20810cf65df216
2,917
py
Python
src/deep_nlp/grad_cam/utils/token/reshape_token_list.py
ENSAE-CKW/nlp_understanding
8d184666a107679f972a65bbe84374b849242924
[ "MIT" ]
3
2021-05-02T17:51:18.000Z
2022-01-17T10:49:23.000Z
src/deep_nlp/grad_cam/utils/token/reshape_token_list.py
ENSAE-CKW/nlp_understanding
8d184666a107679f972a65bbe84374b849242924
[ "MIT" ]
1
2021-05-11T14:18:38.000Z
2021-05-11T14:18:38.000Z
src/deep_nlp/grad_cam/utils/token/reshape_token_list.py
ENSAE-CKW/nlp_understanding
8d184666a107679f972a65bbe84374b849242924
[ "MIT" ]
null
null
null
import numpy as np from ..utils import implemente_multiple_time def reshape_token_to_plot(text, heatmap, threshold= 10): num_token= len(text) token_adjusted= None heatmap_adjusted= None if num_token < threshold: diff_size= threshold - num_token text= text + ["" for i in range(diff_siz...
36.012346
97
0.613987
dd34bd033bea695a318d0f0db0839a9d30f23d54
566
py
Python
Mac/Lib/test/icgluetest.py
deadsnakes/python2.3
0b4a6871ca57123c10aa48cc2a5d2b7c0ee3c849
[ "PSF-2.0" ]
null
null
null
Mac/Lib/test/icgluetest.py
deadsnakes/python2.3
0b4a6871ca57123c10aa48cc2a5d2b7c0ee3c849
[ "PSF-2.0" ]
null
null
null
Mac/Lib/test/icgluetest.py
deadsnakes/python2.3
0b4a6871ca57123c10aa48cc2a5d2b7c0ee3c849
[ "PSF-2.0" ]
null
null
null
"""Test icglue module by printing all preferences. Note that the ic module, not the icglue module, is what you should normally use.""" import icglue from Carbon import Res ici = icglue.ICStart('Pyth') #ici.ICFindConfigFile() h = Res.Resource("") ici.ICBegin(1) numprefs = ici.ICCountPref() print "Number of preference...
19.517241
75
0.69788
0af6e06fc3d2db66475f82307a04b3927cbdafab
221
py
Python
roocs_utils/parameter/__init__.py
aulemahal/roocs-utils
2894c6b137b47f7eac57e650d7e7ad03dddfd75a
[ "BSD-3-Clause" ]
1
2021-03-26T09:47:29.000Z
2021-03-26T09:47:29.000Z
roocs_utils/parameter/__init__.py
aulemahal/roocs-utils
2894c6b137b47f7eac57e650d7e7ad03dddfd75a
[ "BSD-3-Clause" ]
53
2020-08-14T08:16:24.000Z
2022-01-07T13:43:55.000Z
roocs_utils/parameter/__init__.py
aulemahal/roocs-utils
2894c6b137b47f7eac57e650d7e7ad03dddfd75a
[ "BSD-3-Clause" ]
2
2020-09-02T19:16:23.000Z
2020-11-12T21:28:42.000Z
from .area_parameter import AreaParameter from .collection_parameter import CollectionParameter from .level_parameter import LevelParameter from .parameterise import parameterise from .time_parameter import TimeParameter
36.833333
53
0.886878
6c480a1d4895e350256d3aaba67b279f9a3d35dc
1,485
py
Python
setup.py
mariocesar/django-ltree
154c7e31dc004a753c5f6387680464a23510a8ce
[ "MIT" ]
42
2018-10-06T15:29:25.000Z
2021-12-25T22:18:34.000Z
setup.py
mariocesar/django-ltree
154c7e31dc004a753c5f6387680464a23510a8ce
[ "MIT" ]
8
2019-05-03T13:28:29.000Z
2021-05-28T14:12:47.000Z
setup.py
mariocesar/django-ltree
154c7e31dc004a753c5f6387680464a23510a8ce
[ "MIT" ]
16
2019-04-06T11:50:54.000Z
2022-03-16T16:27:28.000Z
# -*- coding: UTF-8 -*- from setuptools import setup, find_packages with open("README.md", "r") as fh: long_description = fh.read() setup( name="django_ltree", version="0.5.3", python_requires=">=2.7", url="https://github.com/mariocesar/django-ltree", author="Mario César Señoranis Ayala", ...
33.75
71
0.613468
8f419042222adb5f1e4ccb45819be60f7207c0aa
1,090
py
Python
phoenix/templates/templating.py
ThoughtWorksInc/Phoenix
b1fa1e53699dd218953f8964f3ddaba645b5b2b5
[ "Apache-2.0" ]
2
2015-01-13T22:13:39.000Z
2021-05-21T11:16:44.000Z
phoenix/templates/templating.py
ThoughtWorksInc/Phoenix
b1fa1e53699dd218953f8964f3ddaba645b5b2b5
[ "Apache-2.0" ]
null
null
null
phoenix/templates/templating.py
ThoughtWorksInc/Phoenix
b1fa1e53699dd218953f8964f3ddaba645b5b2b5
[ "Apache-2.0" ]
null
null
null
# Copyright 2012 ThoughtWorks, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writin...
40.37037
105
0.734862
4148be54ae676bd9e855574ead806d9dd3afe866
521
py
Python
py/encrypt.py
davemannn/RailfenceCipher
14170c605e47236af4cee3b8db703a58752b91ce
[ "MIT" ]
null
null
null
py/encrypt.py
davemannn/RailfenceCipher
14170c605e47236af4cee3b8db703a58752b91ce
[ "MIT" ]
null
null
null
py/encrypt.py
davemannn/RailfenceCipher
14170c605e47236af4cee3b8db703a58752b91ce
[ "MIT" ]
null
null
null
# ============================================================================== # # Use: # decrypt("Hello World", 4) # => "HWe o!lordll" # # ============================================================================== def encrypt(s,n): fence = [[] for i in range(n)] rail = 0 var = 1 ...
19.296296
81
0.307102
4fdeaad528302a31c7bef13173975e2a4d0e1572
2,237
py
Python
lib/coginvasion/hood/DGHood.py
theclashingfritz/Cog-Invasion-Online-Dump
2561abbacb3e2e288e06f3f04b935b5ed589c8f8
[ "Apache-2.0" ]
1
2020-03-12T16:44:10.000Z
2020-03-12T16:44:10.000Z
lib/coginvasion/hood/DGHood.py
theclashingfritz/Cog-Invasion-Online-Dump
2561abbacb3e2e288e06f3f04b935b5ed589c8f8
[ "Apache-2.0" ]
null
null
null
lib/coginvasion/hood/DGHood.py
theclashingfritz/Cog-Invasion-Online-Dump
2561abbacb3e2e288e06f3f04b935b5ed589c8f8
[ "Apache-2.0" ]
null
null
null
# uncompyle6 version 3.2.4 # Python bytecode 2.7 (62211) # Decompiled from: Python 2.7.15 (v2.7.15:ca079a3ea3, Apr 30 2018, 16:30:26) [MSC v.1500 64 bit (AMD64)] # Embedded file name: lib.coginvasion.hood.DGHood from panda3d.core import TransparencyAttrib from direct.directnotify.DirectNotifyGlobal import directNotify ...
38.568966
104
0.703174
6d0d9f2cf48023db77dbd16a05a151be3f330f1c
1,106
py
Python
jetsonnano_yolov5.py
datavocals/hand-gesture-recognition
3915073364b2ff78a6a840b93272e1051db7b9ca
[ "Apache-2.0" ]
null
null
null
jetsonnano_yolov5.py
datavocals/hand-gesture-recognition
3915073364b2ff78a6a840b93272e1051db7b9ca
[ "Apache-2.0" ]
null
null
null
jetsonnano_yolov5.py
datavocals/hand-gesture-recognition
3915073364b2ff78a6a840b93272e1051db7b9ca
[ "Apache-2.0" ]
null
null
null
import cv2 import os import sys import subprocess BASE_DIR = os.path.dirname(os.path.abspath(__file__)) ROOT_DIR = BASE_DIR sys.path.append(BASE_DIR) sys.path.append(os.path.join(ROOT_DIR, 'utils')) sys.path.append(os.path.join(ROOT_DIR, 'model/yolov5')) from yolov5_model import Yolov5Model from capture_frame_in_csi_ca...
29.891892
117
0.661844
19232c03f052ccae771982317f6d6cea25fd224f
2,867
py
Python
materialsproject.py
jamwine/BioMed
20a53e4d33b5759cd68d256eaf55811602bfeefc
[ "MIT" ]
null
null
null
materialsproject.py
jamwine/BioMed
20a53e4d33b5759cd68d256eaf55811602bfeefc
[ "MIT" ]
null
null
null
materialsproject.py
jamwine/BioMed
20a53e4d33b5759cd68d256eaf55811602bfeefc
[ "MIT" ]
null
null
null
import pandas as pd import json import requests import time import datetime from pymatgen import MPRester from pymatgen.electronic_structure.plotter import DosPlotter, BSPlotter def to_dict(obj): return json.dumps(obj, default=lambda o: o.__dict__) API_KEY='XXXXXXXXXXXX' USER_AGENT='Mozilla/5.0 (Windows NT 10.0; ...
45.507937
164
0.66655
9e68e5206e6f9256a46ad0829b679c929bebacaa
978
py
Python
p_030_039/problem33.py
ericgreveson/projecteuler
1844bf383fca871b82d88ef1eb3a9b1a0e363054
[ "Apache-2.0" ]
null
null
null
p_030_039/problem33.py
ericgreveson/projecteuler
1844bf383fca871b82d88ef1eb3a9b1a0e363054
[ "Apache-2.0" ]
null
null
null
p_030_039/problem33.py
ericgreveson/projecteuler
1844bf383fca871b82d88ef1eb3a9b1a0e363054
[ "Apache-2.0" ]
null
null
null
from fractions import Fraction from functools import reduce def main(): """ Entry point """ # We consider fractions with two digits in num and denom, less than one curious = [] for numerator in range(10, 100): for denominator in range(numerator + 1, 100): nums = numerator //...
31.548387
82
0.564417
9c9591c1905c1e6a9bbd7ebc487bd9f656c200ee
631
py
Python
manage.py
c727657851/xzf_project
6e570dbf0bb7bdddeb6dcfacdea0a85c3f686f8e
[ "Apache-2.0" ]
1
2020-07-23T09:19:03.000Z
2020-07-23T09:19:03.000Z
manage.py
c727657851/xzf_project
6e570dbf0bb7bdddeb6dcfacdea0a85c3f686f8e
[ "Apache-2.0" ]
5
2021-03-30T14:10:19.000Z
2022-01-13T03:07:44.000Z
manage.py
c727657851/xzf_project
6e570dbf0bb7bdddeb6dcfacdea0a85c3f686f8e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'xfz_project.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise Im...
28.681818
75
0.684628
ebb31515216ff199f74399f4ec14a216e7cbe58a
188
py
Python
company_hero_python_test/companies/urls.py
gabrielboian/company-hero-python-test
155e85dc727f53684bf6a3593c9d102175d33f3a
[ "MIT" ]
null
null
null
company_hero_python_test/companies/urls.py
gabrielboian/company-hero-python-test
155e85dc727f53684bf6a3593c9d102175d33f3a
[ "MIT" ]
null
null
null
company_hero_python_test/companies/urls.py
gabrielboian/company-hero-python-test
155e85dc727f53684bf6a3593c9d102175d33f3a
[ "MIT" ]
null
null
null
from django.urls import path from .views import CompanyView, ListCompanyUsersView urlpatterns = [ path('', CompanyView.as_view()), path('users', ListCompanyUsersView.as_view()) ]
23.5
52
0.739362
b2bc9f290cb7f9c70d6cfb3b3285054667ab2a1d
24,480
py
Python
plugin.video.catchuptvandmore/resources/lib/channels/fr/6play.py
akuala/REPO.KUALA
ea9a157025530d2ce8fa0d88431c46c5352e89d4
[ "Apache-2.0" ]
2
2018-11-02T19:55:30.000Z
2020-08-14T02:22:20.000Z
plugin.video.catchuptvandmore/resources/lib/channels/fr/6play.py
akuala/REPO.KUALA
ea9a157025530d2ce8fa0d88431c46c5352e89d4
[ "Apache-2.0" ]
null
null
null
plugin.video.catchuptvandmore/resources/lib/channels/fr/6play.py
akuala/REPO.KUALA
ea9a157025530d2ce8fa0d88431c46c5352e89d4
[ "Apache-2.0" ]
3
2019-12-17T20:47:00.000Z
2021-02-11T19:03:59.000Z
# -*- coding: utf-8 -*- """ Catch-up TV & More Original work (C) JUL1EN094, SPM, SylvainCecchetto Copyright (C) 2016 SylvainCecchetto This file is part of Catch-up TV & More. Catch-up TV & More is free software; you can redistribute it and/or modify it under the terms of the GNU General Publi...
36.81203
306
0.573284
81f4b8e01461777aa9344d7ae2c06231fb1df9f2
19,812
py
Python
tests/runtests.py
RinkeHoekstra/pyld
aa62815c687c8b21342852e34b440a956ee6e0d7
[ "BSD-3-Clause" ]
null
null
null
tests/runtests.py
RinkeHoekstra/pyld
aa62815c687c8b21342852e34b440a956ee6e0d7
[ "BSD-3-Clause" ]
null
null
null
tests/runtests.py
RinkeHoekstra/pyld
aa62815c687c8b21342852e34b440a956ee6e0d7
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python """ Test runner for JSON-LD. .. module:: runtests :synopsis: Test harness for pyld .. moduleauthor:: Dave Longley .. moduleauthor:: Olaf Conradi <olaf@conradi.org> """ from __future__ import print_function import datetime import json import os import sys import traceback import unittest impo...
33.409781
88
0.561629
346ca808edbe462de6ed7af1aa05a9ebb2053f7f
95,889
py
Python
packages/maya-2017-win64/sipconfig.py
qinningfx/zfused_outsource
bfc5558f05e3d6005653794a47bd863b61b009b1
[ "Apache-2.0" ]
2
2019-02-22T03:33:26.000Z
2019-02-23T03:29:26.000Z
packages/maya-2017-win64/sipconfig.py
qinningfx/zfused_outsource
bfc5558f05e3d6005653794a47bd863b61b009b1
[ "Apache-2.0" ]
null
null
null
packages/maya-2017-win64/sipconfig.py
qinningfx/zfused_outsource
bfc5558f05e3d6005653794a47bd863b61b009b1
[ "Apache-2.0" ]
null
null
null
# This module is intended to be used by the build/installation scripts of # extension modules created with SIP. It provides information about file # locations, version numbers etc., and provides some classes and functions. # # Copyright (c) 2014 Riverbank Computing Limited <info@riverbankcomputing.com> # # This file i...
34.246071
219
0.526046
0bec44c91437111f07949631beadeba5d403f7dd
1,724
py
Python
corehq/tests/noseplugins/patches.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
1
2020-07-14T13:00:23.000Z
2020-07-14T13:00:23.000Z
corehq/tests/noseplugins/patches.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
94
2020-12-11T06:57:31.000Z
2022-03-15T10:24:06.000Z
corehq/tests/noseplugins/patches.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
null
null
null
from nose.plugins import Plugin from corehq.form_processor.tests.utils import patch_testcase_databases from corehq.util.es.testing import patch_es_user_signals class PatchesPlugin(Plugin): """Patches various things before tests are run""" name = "patches" enabled = True def options(self, parser, env...
28.733333
79
0.711137
bb4362c374370a842c6ca180476d1b2e769937b5
2,363
py
Python
src/pyff/test/test_simple_pipeline.py
clarin-eric/pyFF
f2e626a560644f18397acca0d20a7451ca3224f6
[ "BSD-2-Clause-FreeBSD" ]
15
2018-03-09T04:29:32.000Z
2021-05-27T11:29:43.000Z
src/pyff/test/test_simple_pipeline.py
clarin-eric/pyFF
f2e626a560644f18397acca0d20a7451ca3224f6
[ "BSD-2-Clause-FreeBSD" ]
113
2018-02-09T10:10:26.000Z
2022-03-10T23:40:12.000Z
src/pyff/test/test_simple_pipeline.py
clarin-eric/pyFF
f2e626a560644f18397acca0d20a7451ca3224f6
[ "BSD-2-Clause-FreeBSD" ]
23
2018-04-19T19:25:03.000Z
2022-03-09T23:24:03.000Z
import os import tempfile from mako.lookup import TemplateLookup from pyff.constants import NS from pyff.pipes import plumbing from pyff.repo import MDRepository from pyff.test import SignerTestCase class SimplePipeLineTest(SignerTestCase): def setUp(self): super(SimplePipeLineTest, self).setUp() ...
42.196429
119
0.680491
2d874dc1ca626e663e4287dc92dfb755c1fc53ed
146,159
py
Python
kddg/api/db.py
Kortemme-Lab/kddg
9fc09172abbefd4fef49261687c60a9bd9b6b29b
[ "MIT" ]
2
2016-06-14T00:32:02.000Z
2020-05-04T03:29:46.000Z
kddg/api/db.py
Kortemme-Lab/kddg
9fc09172abbefd4fef49261687c60a9bd9b6b29b
[ "MIT" ]
null
null
null
kddg/api/db.py
Kortemme-Lab/kddg
9fc09172abbefd4fef49261687c60a9bd9b6b29b
[ "MIT" ]
null
null
null
#!/usr/bin/python2.4 # encoding: utf-8 """ db.py High-level functions for interacting with the ddG database. Created by Shane O'Connor 2012. Copyright (c) 2012 __UCSF__. All rights reserved. """ import sys import os import string import glob import traceback import random import datetime import zipfile import StringI...
54.53694
334
0.654705
1a8ee93cca4a25b2878175beaa99be533826ecf6
4,560
py
Python
tensorflow/contrib/session_bundle/gc_test.py
zhaojunz/tensorflow
d1415bdc03fcdb090752ab0c91ee529dc09eb4ee
[ "Apache-2.0" ]
65
2016-09-26T01:30:40.000Z
2021-08-11T17:00:41.000Z
tensorflow/contrib/session_bundle/gc_test.py
amineferchichi/tensorflow
4ac9c09d5ca57a03b8daa5fb9e295947b1619854
[ "Apache-2.0" ]
5
2017-05-22T08:07:52.000Z
2019-02-25T12:09:16.000Z
tensorflow/contrib/session_bundle/gc_test.py
amineferchichi/tensorflow
4ac9c09d5ca57a03b8daa5fb9e295947b1619854
[ "Apache-2.0" ]
11
2017-09-10T16:22:21.000Z
2021-08-09T09:24:50.000Z
# Copyright 2016 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...
35.905512
80
0.621711
c02e434376a9898d91faf8c9a1291da1aa54e28e
27,155
py
Python
test/functional/bip68-112-113-p2p.py
randboy/BAYEMCOIN
d0f19e1e38a5bebeb9a7a230e1f0054134720250
[ "MIT" ]
null
null
null
test/functional/bip68-112-113-p2p.py
randboy/BAYEMCOIN
d0f19e1e38a5bebeb9a7a230e1f0054134720250
[ "MIT" ]
null
null
null
test/functional/bip68-112-113-p2p.py
randboy/BAYEMCOIN
d0f19e1e38a5bebeb9a7a230e1f0054134720250
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2015-2016 The Bitcoin Core developers # Copyright (c) 2017 The Ravencoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test activation of the first version bits soft fork....
50.662313
177
0.650967
23f8f15b515b990ca51df19972e1523a5ddad07e
47
py
Python
test/commonASTtests/py-test-files/forLoop.py
Submitty/AnalysisTools
7cf3c6cba8eedf1f56110f316c2b9ab016546b1b
[ "BSD-3-Clause" ]
6
2017-07-17T13:56:20.000Z
2020-12-07T17:43:33.000Z
test/commonASTtests/py-test-files/forLoop.py
Submitty/AnalysisTools
7cf3c6cba8eedf1f56110f316c2b9ab016546b1b
[ "BSD-3-Clause" ]
13
2016-06-23T22:03:20.000Z
2018-04-01T04:28:42.000Z
test/commonASTtests/py-test-files/forLoop.py
Submitty/AnalysisTools
7cf3c6cba8eedf1f56110f316c2b9ab016546b1b
[ "BSD-3-Clause" ]
5
2016-12-03T17:01:17.000Z
2018-07-29T19:55:45.000Z
for i in range(0,10): p = 10 p+= 1 print p
7.833333
21
0.531915
afd3cbd0af2bfdf40096b70490fb5af3ac678778
240
py
Python
week1/assignment6/6-exercise1.py
brian-gpu/assignments
77dc8254f256fb329bd7508cfd2cde5c8384e836
[ "MIT" ]
null
null
null
week1/assignment6/6-exercise1.py
brian-gpu/assignments
77dc8254f256fb329bd7508cfd2cde5c8384e836
[ "MIT" ]
null
null
null
week1/assignment6/6-exercise1.py
brian-gpu/assignments
77dc8254f256fb329bd7508cfd2cde5c8384e836
[ "MIT" ]
null
null
null
def crowd_test(crowd): if len(crowd) > 3: print('The room is crowded.') print("Exercise 1") # Crowd has 4 people crowd = ['John','Dave','Sam','Sue'] crowd_test(crowd) # Crowd has 3 people crowd.remove('Dave') crowd_test(crowd)
20
37
0.658333
c14049594c923715b9bcdf1d614e719aaa871e61
5,596
py
Python
fuzzers/ECP5/130-dqsbuf/fuzzer.py
Keno/prjtrellis
3311e6d814e0001c8785d6d77a4c93e327875b6d
[ "ISC" ]
256
2018-03-05T00:28:46.000Z
2022-03-04T22:33:29.000Z
fuzzers/ECP5/130-dqsbuf/fuzzer.py
Keno/prjtrellis
3311e6d814e0001c8785d6d77a4c93e327875b6d
[ "ISC" ]
70
2018-03-12T21:55:02.000Z
2020-06-22T12:06:08.000Z
fuzzers/ECP5/130-dqsbuf/fuzzer.py
Keno/prjtrellis
3311e6d814e0001c8785d6d77a4c93e327875b6d
[ "ISC" ]
68
2018-03-12T21:05:01.000Z
2021-03-14T21:08:33.000Z
from fuzzconfig import FuzzConfig import nonrouting import pytrellis import fuzzloops import interconnect jobs = [(FuzzConfig(job="LDQS17", family="ECP5", device="LFE5U-45F", ncl="empty.ncl", tiles=["MIB_R17C0:PICL0_DQS2", "MIB_R15C0:PICL1_DQS0", "MIB_R16C0:PICL2_DQS1", "...
44.768
149
0.535561
4d50105042cdc49da97edf8bf59e1d992e140e39
784
py
Python
tests/test_matrix_operations_basic.py
sea-bass/python-testing-ci
2ec3b4a61ef4bbef8d5712e4912c515a707c98d3
[ "MIT" ]
1
2021-06-12T09:50:29.000Z
2021-06-12T09:50:29.000Z
tests/test_matrix_operations_basic.py
sea-bass/python-testing-ci
2ec3b4a61ef4bbef8d5712e4912c515a707c98d3
[ "MIT" ]
null
null
null
tests/test_matrix_operations_basic.py
sea-bass/python-testing-ci
2ec3b4a61ef4bbef8d5712e4912c515a707c98d3
[ "MIT" ]
null
null
null
import pytest import numpy as np # Test Case: Will fail with exact comparison due to numerical error a = np.array([[0, 1, 2], [3, 4, 5], [6, 7, 8]]) b = np.array([[8, 7, 6], [5, 4, 3], [2, 1, 0]]) expected = np.array([[8, 8, 8], [8, 8, 8], ...
25.290323
67
0.531888
8d486180a8ac229e66996e2838121748d71b8d3f
1,113
py
Python
pre_commit_hooks/no_telegram_tokens.py
Vonvikken/pre-commit-hooks
24c0476162674da11085470673043ff9422887dc
[ "MIT" ]
null
null
null
pre_commit_hooks/no_telegram_tokens.py
Vonvikken/pre-commit-hooks
24c0476162674da11085470673043ff9422887dc
[ "MIT" ]
null
null
null
pre_commit_hooks/no_telegram_tokens.py
Vonvikken/pre-commit-hooks
24c0476162674da11085470673043ff9422887dc
[ "MIT" ]
1
2020-12-14T16:20:21.000Z
2020-12-14T16:20:21.000Z
import re import argparse from typing import Sequence, Optional TOKEN_REGEX = re.compile(r"\d{9,}:[-\w]{34,}") def main(argv: Optional[Sequence[str]] = None) -> int: parser = argparse.ArgumentParser() parser.add_argument("filenames", nargs="*", help="Filenames to check") parser.add_argument( "--e...
25.883721
98
0.587601
a9fb43b6c4c0b94ada1b7780df297f0f596f9b22
2,615
py
Python
src/ansiblelint/rules/meta_no_info.py
cognifloyd/ansible-lint
f9ad8ea39705850b7753e4cb13c3cc7c82f176f8
[ "MIT" ]
1,192
2015-01-03T20:50:49.000Z
2018-10-29T19:13:06.000Z
src/ansiblelint/rules/meta_no_info.py
cognifloyd/ansible-lint
f9ad8ea39705850b7753e4cb13c3cc7c82f176f8
[ "MIT" ]
326
2015-01-02T00:48:35.000Z
2018-10-29T11:07:46.000Z
src/ansiblelint/rules/meta_no_info.py
cognifloyd/ansible-lint
f9ad8ea39705850b7753e4cb13c3cc7c82f176f8
[ "MIT" ]
209
2015-01-12T14:26:09.000Z
2018-10-18T12:10:49.000Z
"""Implementation of meta-no-info rule.""" # Copyright (c) 2016, Will Thames and contributors # Copyright (c) 2018, Ansible Project from typing import TYPE_CHECKING, Generator, List from ansiblelint.errors import MatchError from ansiblelint.file_utils import Lintable from ansiblelint.rules import AnsibleLintRule if ...
30.764706
88
0.632887
827c4abf53ecbc8996b82beea0a092fdbd16df8c
2,488
py
Python
caption/optimizers/adamw.py
Unbabel/caption
90725dbf5bc3809e0364d20d0837c58968ceb2b1
[ "MIT" ]
3
2021-06-14T08:23:00.000Z
2022-03-04T06:00:50.000Z
caption/optimizers/adamw.py
Unbabel/caption
90725dbf5bc3809e0364d20d0837c58968ceb2b1
[ "MIT" ]
null
null
null
caption/optimizers/adamw.py
Unbabel/caption
90725dbf5bc3809e0364d20d0837c58968ceb2b1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from test_tube import HyperOptArgumentParser from transformers import AdamW as HuggingFaceAdamW from .optim_args import OptimArgs class AdamW(HuggingFaceAdamW, OptimArgs): """ Wrapper for the huggingface AdamW optimizer. https://huggingface.co/transformers/v2.1.1/main_classes...
30.716049
94
0.590434
a316bc543164db3ea1f947a610e805ad4ea09cd6
3,402
py
Python
dataset/cifar10.py
zpc-666/Paddle-Stochastic-Depth-ResNet110
bb8b5b90052feef39fafd2a790f08b80b45fbe41
[ "Apache-2.0" ]
null
null
null
dataset/cifar10.py
zpc-666/Paddle-Stochastic-Depth-ResNet110
bb8b5b90052feef39fafd2a790f08b80b45fbe41
[ "Apache-2.0" ]
null
null
null
dataset/cifar10.py
zpc-666/Paddle-Stochastic-Depth-ResNet110
bb8b5b90052feef39fafd2a790f08b80b45fbe41
[ "Apache-2.0" ]
1
2021-08-07T14:56:44.000Z
2021-08-07T14:56:44.000Z
# coding: utf-8 # Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Un...
45.36
142
0.6796
c833f74331104fe5e610de5e43b041e7ef81fd11
250
py
Python
issues/20160514 leica disto r12/read_points.py
jpsantos-mf/ezdxf
2b542a551b2cfc3c0920a5dbf302ff58cea90fbd
[ "MIT" ]
1
2021-06-05T09:15:15.000Z
2021-06-05T09:15:15.000Z
issues/20160514 leica disto r12/read_points.py
jpsantos-mf/ezdxf
2b542a551b2cfc3c0920a5dbf302ff58cea90fbd
[ "MIT" ]
null
null
null
issues/20160514 leica disto r12/read_points.py
jpsantos-mf/ezdxf
2b542a551b2cfc3c0920a5dbf302ff58cea90fbd
[ "MIT" ]
null
null
null
import ezdxf dwg = ezdxf.readfile("Leica_Disto_S910.dxf") msp = dwg.modelspace() for num, point in enumerate(msp.query('POINT')): print("#{num}: {location}".format(num=num, location=point.dxf.location)) dwg.saveas("Leica_Disto_S910_ezdxf.dxf")
27.777778
76
0.732
4f0a9fb0aa2b3a0de935efbc3cedeebcbda6efea
1,170
py
Python
test_libs/pyspec/eth2spec/test/helpers/phase1/attestations.py
osirusgroup/eth2.0-specs
88e954a9c73dff63436350b9cd530c8c9f44a94b
[ "CC0-1.0" ]
1
2019-12-14T23:26:49.000Z
2019-12-14T23:26:49.000Z
test_libs/pyspec/eth2spec/test/helpers/phase1/attestations.py
osirusgroup/eth2.0-specs
88e954a9c73dff63436350b9cd530c8c9f44a94b
[ "CC0-1.0" ]
null
null
null
test_libs/pyspec/eth2spec/test/helpers/phase1/attestations.py
osirusgroup/eth2.0-specs
88e954a9c73dff63436350b9cd530c8c9f44a94b
[ "CC0-1.0" ]
1
2020-07-05T22:12:40.000Z
2020-07-05T22:12:40.000Z
from eth2spec.test.helpers.keys import privkeys from eth2spec.utils.bls import ( bls_aggregate_signatures, bls_sign, ) def sign_shard_attestation(spec, beacon_state, shard_state, block, participants): signatures = [] message_hash = spec.ShardAttestationData( slot=block.slot, parent_roo...
28.536585
99
0.64359
e5a410bc9c5d67a676b32563ce78fe8ee94651c7
1,221
py
Python
src/ensembl/production/dbcopy/migrations/0004_auto_20210129_1245.py
luca-drf/ensembl-prodinf-dbcopy
d6ee2e402fd4eba1f85a9455c007492080732941
[ "Apache-2.0" ]
null
null
null
src/ensembl/production/dbcopy/migrations/0004_auto_20210129_1245.py
luca-drf/ensembl-prodinf-dbcopy
d6ee2e402fd4eba1f85a9455c007492080732941
[ "Apache-2.0" ]
2
2021-09-08T18:09:15.000Z
2022-01-20T16:43:22.000Z
src/ensembl/production/dbcopy/migrations/0004_auto_20210129_1245.py
luca-drf/ensembl-prodinf-dbcopy
d6ee2e402fd4eba1f85a9455c007492080732941
[ "Apache-2.0" ]
1
2021-06-08T13:10:44.000Z
2021-06-08T13:10:44.000Z
# Generated by Django 2.2.13 on 2021-01-29 12:45 import django.db.models.deletion from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('ensembl_dbcopy', '0003_add_dry_run_fix_dbs_2_exclude'), ] operations = [ migrations.AlterModelOptions( ...
31.307692
101
0.578215
bd25447838917465204ebea12a46e7fe68becd69
1,287
py
Python
discord/ext/commands/_types.py
Codered999/discord.py
d80d4145b182d56243f96bec5949926c73fb3da0
[ "MIT" ]
11
2020-09-06T17:35:43.000Z
2022-02-18T22:13:24.000Z
discord/ext/commands/_types.py
Codered999/discord.py
d80d4145b182d56243f96bec5949926c73fb3da0
[ "MIT" ]
6
2021-03-19T08:03:53.000Z
2021-12-13T20:26:36.000Z
discord/ext/commands/_types.py
Codered999/discord.py
d80d4145b182d56243f96bec5949926c73fb3da0
[ "MIT" ]
5
2020-04-22T08:02:39.000Z
2021-06-30T06:30:31.000Z
# -*- coding: utf-8 -*- """ The MIT License (MIT) Copyright (c) 2015-2019 Rapptz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to u...
41.516129
75
0.78244
316d8294f57c700688b033dd5a39338a99c157ba
2,342
py
Python
esp/views.py
amillar2/light-django
bea10041bef2fc3d833634a2a0a44e6af8733a21
[ "MIT" ]
null
null
null
esp/views.py
amillar2/light-django
bea10041bef2fc3d833634a2a0a44e6af8733a21
[ "MIT" ]
null
null
null
esp/views.py
amillar2/light-django
bea10041bef2fc3d833634a2a0a44e6af8733a21
[ "MIT" ]
null
null
null
from django.shortcuts import get_object_or_404, render, redirect from django.http import HttpResponse from django.core.urlresolvers import reverse from django.views import generic from django.apps import apps from .models import PWM, Device import json class IndexView(generic.ListView): model = PWM template_na...
28.560976
116
0.679334
202747eb9b89de67707dbc3b4bf79138318b6039
928
py
Python
accounts/migrations/0003_auto_20180202_1701.py
insung151/Pwannar
9f0be39e763dfc709a4b43a2498a95a19bfa435f
[ "MIT" ]
null
null
null
accounts/migrations/0003_auto_20180202_1701.py
insung151/Pwannar
9f0be39e763dfc709a4b43a2498a95a19bfa435f
[ "MIT" ]
4
2018-02-14T11:58:51.000Z
2018-02-14T14:03:16.000Z
accounts/migrations/0003_auto_20180202_1701.py
insung151/Pwannar
9f0be39e763dfc709a4b43a2498a95a19bfa435f
[ "MIT" ]
null
null
null
# Generated by Django 2.0.1 on 2018-02-02 08:01 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('accounts', '0002_auto_20180202_1700'), ] operations = [ migrations.AlterField( model_name='profile', name='bio', ...
27.294118
74
0.567888
716507698928928162705748ff1576f982bdea68
1,998
py
Python
besspin/cwesEvaluation/resourceManagement/customCweScores/test_690.py
mikkowus/BESSPIN-Tool-Suite
e87e9abb1156a8627aacc3272f1925b034129146
[ "Apache-2.0" ]
null
null
null
besspin/cwesEvaluation/resourceManagement/customCweScores/test_690.py
mikkowus/BESSPIN-Tool-Suite
e87e9abb1156a8627aacc3272f1925b034129146
[ "Apache-2.0" ]
null
null
null
besspin/cwesEvaluation/resourceManagement/customCweScores/test_690.py
mikkowus/BESSPIN-Tool-Suite
e87e9abb1156a8627aacc3272f1925b034129146
[ "Apache-2.0" ]
null
null
null
from besspin.cwesEvaluation.resourceManagement.customCweScores.helpers import * def test_690 (logLines): testNum = 690 osImage = getOsImage(logLines,testNum=testNum) if (osImage == 'debian' or osImage == 'FreeBSD'): nParts = 2 partsLines = regPartitionTest (logLines,nParts,testNum=testNum...
39.96
141
0.641642
d83c04cd6becad8b6a86f9a015e25a0fe85a44e3
957
py
Python
examples/volumetric/tetralize_surface.py
mikami520/vedo
1a3abcf3f1e495287e8934d9b5bb07b511ab8be5
[ "MIT" ]
1
2022-03-22T21:49:29.000Z
2022-03-22T21:49:29.000Z
examples/volumetric/tetralize_surface.py
mikami520/vedo
1a3abcf3f1e495287e8934d9b5bb07b511ab8be5
[ "MIT" ]
null
null
null
examples/volumetric/tetralize_surface.py
mikami520/vedo
1a3abcf3f1e495287e8934d9b5bb07b511ab8be5
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Tetralize a closed surface mesh Click on the mesh and press ↓ or x to toggle a piece""" from vedo import dataurl, Sphere, settings, Mesh, TessellatedBox, show settings.useDepthPeeling = True surf = Sphere(quads=True, res=15) # surf = TessellatedBox() # surf = Mesh(dat...
29.90625
70
0.704284
78178c364353085b7d9056f9aca5d55d0fb43f57
19,478
py
Python
tests/tensorflow/keras/test_keras_mirrored.py
vandanavk/sagemaker-debugger
5246cda198295aa1dd1656ad32b30c4bb1e2aec4
[ "Apache-2.0" ]
1
2020-08-14T16:10:04.000Z
2020-08-14T16:10:04.000Z
tests/tensorflow/keras/test_keras_mirrored.py
vandanavk/sagemaker-debugger
5246cda198295aa1dd1656ad32b30c4bb1e2aec4
[ "Apache-2.0" ]
null
null
null
tests/tensorflow/keras/test_keras_mirrored.py
vandanavk/sagemaker-debugger
5246cda198295aa1dd1656ad32b30c4bb1e2aec4
[ "Apache-2.0" ]
null
null
null
# Future from __future__ import absolute_import, division, print_function, unicode_literals # Standard Library import os # Third Party import pytest import tensorflow as tf import tensorflow_datasets as tfds from tensorflow.python.client import device_lib from tests.tensorflow.utils import create_trial_fast_refresh ...
34.720143
159
0.668241
b7d9ba4fc2c8f730e8618e7a3862d8ad64519f00
635
py
Python
tutorial/cytoscape/reference_chapter.py
blozano824/dash-docs
f2b5a9dcbf60603aa0d0caabcfa31dccc6face7d
[ "MIT" ]
1
2019-03-04T03:17:19.000Z
2019-03-04T03:17:19.000Z
tutorial/cytoscape/reference_chapter.py
blozano824/dash-docs
f2b5a9dcbf60603aa0d0caabcfa31dccc6face7d
[ "MIT" ]
null
null
null
tutorial/cytoscape/reference_chapter.py
blozano824/dash-docs
f2b5a9dcbf60603aa0d0caabcfa31dccc6face7d
[ "MIT" ]
null
null
null
import re import dash_html_components as html import dash_core_components as dcc import dash_cytoscape as cyto def component_doc(component): trimmed_docs = re.sub( r'- setProps.*\n', '', re.sub( r'Available events: .*', '', component.__doc__.split('Keyw...
20.483871
61
0.584252
7e595524ba5ca64bee821eb014437973582d4d72
1,233
py
Python
setup.py
danyfdz92/stack
68656d56d1f983c718b3fb8e174fc0270b872334
[ "MIT" ]
37
2015-03-03T15:48:29.000Z
2021-06-13T21:17:47.000Z
setup.py
danyfdz92/stack
68656d56d1f983c718b3fb8e174fc0270b872334
[ "MIT" ]
32
2017-01-30T18:29:01.000Z
2018-02-16T22:16:00.000Z
setup.py
casmlab/stack
86bca591868a5c7dd9fef18e4b34113bd22df2c6
[ "MIT" ]
20
2015-02-14T05:02:07.000Z
2021-07-19T17:41:15.000Z
#!env/bin/python import sys import os import json from werkzeug import generate_password_hash from app.controller import Controller from app.models import DB basedir = os.getcwd() db = DB() def main(): print '\n' print 'STACK' print '----------' print '\n' print 'Welcome to the STACK setup too...
30.073171
175
0.696675
0857af3d5baa4906d0f7964f30801e245dc8cf52
4,702
py
Python
djangoenv/lib/python3.8/site-packages/svgwrite/gradients.py
zawad2221/courier_delivery
f96c41a60943946f9f7e0837d017215aa8cd02dd
[ "MIT" ]
null
null
null
djangoenv/lib/python3.8/site-packages/svgwrite/gradients.py
zawad2221/courier_delivery
f96c41a60943946f9f7e0837d017215aa8cd02dd
[ "MIT" ]
null
null
null
djangoenv/lib/python3.8/site-packages/svgwrite/gradients.py
zawad2221/courier_delivery
f96c41a60943946f9f7e0837d017215aa8cd02dd
[ "MIT" ]
null
null
null
#!/usr/bin/env python #coding:utf-8 # Author: mozman --<mozman@gmx.at> # Purpose: gradients module # Created: 26.10.2010 # Copyright (C) 2010, Manfred Moitzi # License: MIT License """ Gradients consist of continuously smooth color transitions along a vector from one color to another, possibly followed by add...
36.449612
88
0.597618
586e84c74c3cc5d96bc4e8eb37d46e72f87bc04e
7,259
py
Python
aiida/restapi/api.py
louisponet/aiida-core
3214236df66a3792ee57fe38a06c0c3bb65861ab
[ "MIT", "BSD-3-Clause" ]
1
2016-09-12T10:51:00.000Z
2016-09-12T10:51:00.000Z
aiida/restapi/api.py
louisponet/aiida-core
3214236df66a3792ee57fe38a06c0c3bb65861ab
[ "MIT", "BSD-3-Clause" ]
17
2020-03-11T17:04:05.000Z
2020-05-01T09:34:45.000Z
aiida/restapi/api.py
louisponet/aiida-core
3214236df66a3792ee57fe38a06c0c3bb65861ab
[ "MIT", "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- ########################################################################### # Copyright (c), The AiiDA team. All rights reserved. # # This file is part of the AiiDA code. # # ...
33.606481
91
0.525003
ce3f0eed29237b9041730ce13bf6359a6741e650
4,461
py
Python
tests/test_section.py
damianfs/canvasapi
10ef96d268a0535c888d8fdd8169da31d9a66e3f
[ "MIT" ]
null
null
null
tests/test_section.py
damianfs/canvasapi
10ef96d268a0535c888d8fdd8169da31d9a66e3f
[ "MIT" ]
null
null
null
tests/test_section.py
damianfs/canvasapi
10ef96d268a0535c888d8fdd8169da31d9a66e3f
[ "MIT" ]
null
null
null
import unittest import requests_mock from canvasapi import Canvas from canvasapi.assignment import AssignmentOverride from canvasapi.enrollment import Enrollment from canvasapi.progress import Progress from canvasapi.section import Section from canvasapi.submission import GroupedSubmission, Submission from tests impo...
35.975806
87
0.703878
7ff19adf317246ad74838e4d3b05c2bdc4e5ce9b
766
py
Python
Source/Scripts/prepare.py
kimmania/SqlServer2017GraphDatabase
cd3b7eb5c3a445d72aff83dd5037c5b129ba4cc7
[ "MIT" ]
6
2018-05-03T03:16:30.000Z
2020-05-04T22:02:24.000Z
Source/Scripts/prepare.py
kimmania/SqlServer2017GraphDatabase
cd3b7eb5c3a445d72aff83dd5037c5b129ba4cc7
[ "MIT" ]
null
null
null
Source/Scripts/prepare.py
kimmania/SqlServer2017GraphDatabase
cd3b7eb5c3a445d72aff83dd5037c5b129ba4cc7
[ "MIT" ]
6
2018-06-07T13:31:18.000Z
2021-10-09T07:37:32.000Z
from sqlalchemy import MetaData from sqlalchemy import Table from sqlalchemy import Column, Integer, String import csv metadata = MetaData() airport = Table('Airport', metadata, id = Column(Integer, primary_key=True) code = Column(String) city = Column(Integer) state = Column(String) country = ...
26.413793
98
0.634465
2647aee711e457fe4418a222ad098d6c71b17711
4,383
py
Python
auth/settings.py
Splice-Technologies/splice-auth
41e28857409402069a15b4a28f0852fe67697780
[ "MIT" ]
null
null
null
auth/settings.py
Splice-Technologies/splice-auth
41e28857409402069a15b4a28f0852fe67697780
[ "MIT" ]
null
null
null
auth/settings.py
Splice-Technologies/splice-auth
41e28857409402069a15b4a28f0852fe67697780
[ "MIT" ]
null
null
null
""" Django settings for auth project. Generated by 'django-admin startproject' using Django 3.1.7. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ from pathlib im...
26.403614
91
0.69473
a215dd80b320a16ef18248a71097173060805e05
1,290
py
Python
appwatch/urls.py
ramza007/WatchApp
222ce6069ecb8dc3ba68350e521f5470d45667c1
[ "Apache-2.0" ]
null
null
null
appwatch/urls.py
ramza007/WatchApp
222ce6069ecb8dc3ba68350e521f5470d45667c1
[ "Apache-2.0" ]
null
null
null
appwatch/urls.py
ramza007/WatchApp
222ce6069ecb8dc3ba68350e521f5470d45667c1
[ "Apache-2.0" ]
null
null
null
""" App routes """ from django.conf.urls import url, include from . import views from django.conf import settings from django.conf.urls.static import static #-----------------------------App Routes------------------------# urlpatterns=[ url(r'^$',views.index,name = 'index'), url(r'^accounts/', include('regi...
33.076923
81
0.648062
d1bb93e4ca908aff51903f5224c2156746e45908
562
py
Python
talos/utils/best_model.py
zazula/talos
4a2a2c1c16310a2158692808cb0a6cfe4e4be326
[ "MIT" ]
1,536
2018-05-15T19:36:16.000Z
2022-03-31T18:14:11.000Z
talos/utils/best_model.py
zazula/talos
4a2a2c1c16310a2158692808cb0a6cfe4e4be326
[ "MIT" ]
522
2018-05-12T18:35:06.000Z
2022-03-20T06:23:52.000Z
talos/utils/best_model.py
zazula/talos
4a2a2c1c16310a2158692808cb0a6cfe4e4be326
[ "MIT" ]
304
2018-05-16T00:59:44.000Z
2022-03-17T05:23:21.000Z
from tensorflow.keras.models import model_from_json def best_model(self, metric, asc): '''Picks the best model based on a given metric and returns the index number for the model. NOTE: for loss 'asc' should be True''' best = self.data.sort_values(metric, ascending=asc).iloc[0].name return best...
23.416667
73
0.720641
afd04a8eaa253f977762d8062cc4d5094792f406
24,254
py
Python
openmc/cell.py
MauriDeb/Desarrollo_OpenMC
871f81af1d0bec58c0cc9873c192b321ab84414f
[ "MIT" ]
null
null
null
openmc/cell.py
MauriDeb/Desarrollo_OpenMC
871f81af1d0bec58c0cc9873c192b321ab84414f
[ "MIT" ]
null
null
null
openmc/cell.py
MauriDeb/Desarrollo_OpenMC
871f81af1d0bec58c0cc9873c192b321ab84414f
[ "MIT" ]
null
null
null
from collections import OrderedDict from collections.abc import Iterable from copy import deepcopy from math import cos, sin, pi from numbers import Real, Integral from xml.etree import ElementTree as ET import sys import warnings import numpy as np import openmc import openmc.checkvalue as cv from openmc.surface imp...
35.407299
149
0.587408
a2b601840dbb2dfdfcd22a4c428e3c01643f8bf5
1,757
py
Python
savu/test/jenkins/plugin_tests/filter_tests/ccpi_denoising_gpu_test.py
elainehoml/Savu
e4772704606f71d6803d832084e10faa585e7358
[ "Apache-2.0" ]
null
null
null
savu/test/jenkins/plugin_tests/filter_tests/ccpi_denoising_gpu_test.py
elainehoml/Savu
e4772704606f71d6803d832084e10faa585e7358
[ "Apache-2.0" ]
null
null
null
savu/test/jenkins/plugin_tests/filter_tests/ccpi_denoising_gpu_test.py
elainehoml/Savu
e4772704606f71d6803d832084e10faa585e7358
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2014 Diamond Light Source 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 # # Unless required by ap...
32.537037
86
0.742743
cee790bbdba0685feaf3409dcea6afa92696763c
4,241
py
Python
ExamplesElementaryOperations/ExamplesOpNoState.py
zatricion/Streams
d2f688e230b4cb325d5f76886a7499d132591bd4
[ "MIT" ]
null
null
null
ExamplesElementaryOperations/ExamplesOpNoState.py
zatricion/Streams
d2f688e230b4cb325d5f76886a7499d132591bd4
[ "MIT" ]
null
null
null
ExamplesElementaryOperations/ExamplesOpNoState.py
zatricion/Streams
d2f688e230b4cb325d5f76886a7499d132591bd4
[ "MIT" ]
null
null
null
"""This module contains examples of the op() function where: op(f,x) returns a stream where x is a stream, and f is an operator on lists, i.e., f is a function from a list to a list. These lists are of lists of arbitrary objects other than streams and agents. Function f must be stateless, i.e., for any lists u, v: f(u...
29.451389
85
0.632634
2c95d93eb33809c644922fea38b2a1e599819c52
26,424
py
Python
scanpy/plotting/tools/scatterplots.py
Puriney/scanpy
83afc9d5ac9043eacb1deecf14445a7a043be447
[ "BSD-3-Clause" ]
null
null
null
scanpy/plotting/tools/scatterplots.py
Puriney/scanpy
83afc9d5ac9043eacb1deecf14445a7a043be447
[ "BSD-3-Clause" ]
null
null
null
scanpy/plotting/tools/scatterplots.py
Puriney/scanpy
83afc9d5ac9043eacb1deecf14445a7a043be447
[ "BSD-3-Clause" ]
1
2019-12-09T10:08:45.000Z
2019-12-09T10:08:45.000Z
from matplotlib import pyplot as pl from pandas.api.types import is_categorical_dtype import numpy as np from matplotlib import rcParams from matplotlib.colors import is_color_like from .. import utils from ...utils import sanitize_anndata, doc_params from ... import settings from ..docs import doc_adata_color_etc, doc...
38.575182
141
0.578981
5a1a30060057db22955f37a9c747d26513b5024c
5,195
py
Python
scripts/merge_sources.py
KesterTong/recipe-analyzer
bf84312a44e9c3ce97a5aa24a8887c2dee38c489
[ "Apache-2.0" ]
1
2020-02-03T15:56:53.000Z
2020-02-03T15:56:53.000Z
scripts/merge_sources.py
KesterTong/recipe-analyzer
bf84312a44e9c3ce97a5aa24a8887c2dee38c489
[ "Apache-2.0" ]
3
2020-03-29T20:22:35.000Z
2021-05-24T15:06:17.000Z
scripts/merge_sources.py
KesterTong/recipe-analyzer
bf84312a44e9c3ce97a5aa24a8887c2dee38c489
[ "Apache-2.0" ]
2
2020-03-29T20:14:45.000Z
2021-06-03T15:05:51.000Z
# Copyright 2020 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, s...
35.827586
95
0.698749
42c4e0556d6f33ebe6a7d4258ce93ce689e4b9c0
811
py
Python
backend/src/util/cronjob/extensions.py
tonyBen/rcmg
fabfe378b7a85d90018e1798bb253603ac9d05f5
[ "MIT" ]
null
null
null
backend/src/util/cronjob/extensions.py
tonyBen/rcmg
fabfe378b7a85d90018e1798bb253603ac9d05f5
[ "MIT" ]
1
2021-12-03T02:37:13.000Z
2021-12-03T02:37:13.000Z
backend/src/util/cronjob/extensions.py
tonyBen/rcmg
fabfe378b7a85d90018e1798bb253603ac9d05f5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ ------------------------------------------------ util.cronjob.extensions ------------------------------------------------ Author: Tony Ben (email: nanjinghhu@vip.qq.com) Create: 11/29/2021 ------------------------------------------------ ChangeLog -------------------------------...
33.791667
71
0.432799
1e8c4b9ebcec3391c629f98436d0c34e5cac7c67
3,763
py
Python
src/apps/dbwipes/util.py
RogerTangos/datahub-stub
8c3e89c792e45ccc9ad067fcf085ddd52f7ecd89
[ "MIT" ]
null
null
null
src/apps/dbwipes/util.py
RogerTangos/datahub-stub
8c3e89c792e45ccc9ad067fcf085ddd52f7ecd89
[ "MIT" ]
null
null
null
src/apps/dbwipes/util.py
RogerTangos/datahub-stub
8c3e89c792e45ccc9ad067fcf085ddd52f7ecd89
[ "MIT" ]
null
null
null
# # this file has no deps on Scorpion # import os import re import time import json import decimal import md5 import psycopg2 import traceback from collections import * from datetime import datetime from scorpionsql.errfunc import * from scorpionsql.sql import * # JSON Encoder class SummaryEncoder(json.JSONEncoder...
22.266272
86
0.590752
d42e7e97a844864f9077bb96b289a95a583ccaa0
2,811
py
Python
rptools/rpfba/Args.py
brsynth/rptools
51df7877236dc8d72e50c93b6e5a30fb65d745d0
[ "MIT" ]
4
2021-01-14T14:52:55.000Z
2022-01-28T09:31:59.000Z
rptools/rpfba/Args.py
brsynth/rptools
51df7877236dc8d72e50c93b6e5a30fb65d745d0
[ "MIT" ]
5
2021-01-18T09:24:48.000Z
2021-12-17T06:47:07.000Z
rptools/rpfba/Args.py
brsynth/rptools
51df7877236dc8d72e50c93b6e5a30fb65d745d0
[ "MIT" ]
2
2021-09-14T07:02:20.000Z
2022-01-31T16:59:42.000Z
from argparse import ArgumentParser from typing import ( List, ) from rptools._version import __version__ from rptools.rpfba.medium import ( __MEDIUM_DEFAULT_ID, __MEDIUM_PATH, read_medium_ids ) def add_arguments( parser: ArgumentParser): parser.add_argument( 'pathway_file', typ...
30.225806
123
0.621843
cac2e7a4647cd852424fdaf2f6aa83e81d3d7082
428
py
Python
xbs-alpha/py/src/interpreter.py
XephonineDeb/XPHN-Basic-Scripting-XBS-
dbe43c797a608831dbec390bb1449307decffc8f
[ "MIT" ]
null
null
null
xbs-alpha/py/src/interpreter.py
XephonineDeb/XPHN-Basic-Scripting-XBS-
dbe43c797a608831dbec390bb1449307decffc8f
[ "MIT" ]
null
null
null
xbs-alpha/py/src/interpreter.py
XephonineDeb/XPHN-Basic-Scripting-XBS-
dbe43c797a608831dbec390bb1449307decffc8f
[ "MIT" ]
null
null
null
from lexer import * from parser import * from exec import * if __name__ == '__main__': lexer = BasicLexer() parser = BasicParser() env = {} while True: try: text = input('>>>') except EOFError: break ...
12.228571
54
0.455607
d74a87c9787d92a74d10ee1ef08827d66bd015f1
18,276
py
Python
mylib/web_client.py
mo-han/mo-han-toolbox
1f907d42aea9574c34f10474cc7194dbace6ff02
[ "MIT" ]
24
2019-12-08T03:56:32.000Z
2021-10-02T13:26:37.000Z
mylib/web_client.py
mo-han/mo-han-toolbox
1f907d42aea9574c34f10474cc7194dbace6ff02
[ "MIT" ]
2
2020-04-27T14:20:01.000Z
2020-07-17T06:05:33.000Z
mylib/web_client.py
mo-han/mo-han-toolbox
1f907d42aea9574c34f10474cc7194dbace6ff02
[ "MIT" ]
10
2019-08-06T01:11:28.000Z
2021-07-19T08:45:11.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """Library for website operation""" import json from concurrent.futures.thread import ThreadPoolExecutor from queue import Queue from urllib.parse import urlparse, ParseResult import colorama import humanize import lxml.html import requests.utils from mylib.easy.stdlibs....
36.047337
119
0.618516
1c111c5aa7ed38d02d9dec9533ba00d530ecbe78
1,200
py
Python
cfd_trading/core/order.py
vitrvm/cfd_trading
d0880a12c805d150df6058764c153712da177b3a
[ "MIT" ]
2
2021-04-20T16:37:55.000Z
2021-08-09T10:27:43.000Z
cfd_trading/core/order.py
vitrvm/cfd_trading
d0880a12c805d150df6058764c153712da177b3a
[ "MIT" ]
null
null
null
cfd_trading/core/order.py
vitrvm/cfd_trading
d0880a12c805d150df6058764c153712da177b3a
[ "MIT" ]
1
2021-07-11T22:51:37.000Z
2021-07-11T22:51:37.000Z
from typing import Type class Order(object): class Action: BUY = 0 SELL = 1 class Type: MARKET = 'MARKET' LIMIT = 'LIMIT' STOP = 'STOP' __id = None __action = None __symbol = None __type = None __level = None __stop_distance = None __st...
17.142857
85
0.5925
f3475c974b69d80f8701c977c45c2dc90c2848fb
1,933
py
Python
atomistic2cg-intramolecular-fitting/fit.py
mf2810/atomistic-tools
a2b806b718e4c402b7f4e4a8c9c90930720d9c6d
[ "MIT" ]
null
null
null
atomistic2cg-intramolecular-fitting/fit.py
mf2810/atomistic-tools
a2b806b718e4c402b7f4e4a8c9c90930720d9c6d
[ "MIT" ]
null
null
null
atomistic2cg-intramolecular-fitting/fit.py
mf2810/atomistic-tools
a2b806b718e4c402b7f4e4a8c9c90930720d9c6d
[ "MIT" ]
null
null
null
import numpy as np import pylab as plb import matplotlib.pyplot as plt import scipy from scipy.optimize import curve_fit from scipy import asarray as ar,exp import sys print('welcome') T = 298 bonds = False k = np.loadtxt('hist.xvg') ############################################## for i in range(0, len(k)): k[i,1...
28.850746
93
0.585101
84fb13f6de5e88ebb3e42aac3e9a9d4a1fc77f5b
3,556
py
Python
evaluate/sicp.py
patrickdillon/sicp-2019
a5fc83354541d298b4b8f6736a6d0551b2e4f443
[ "MIT" ]
null
null
null
evaluate/sicp.py
patrickdillon/sicp-2019
a5fc83354541d298b4b8f6736a6d0551b2e4f443
[ "MIT" ]
null
null
null
evaluate/sicp.py
patrickdillon/sicp-2019
a5fc83354541d298b4b8f6736a6d0551b2e4f443
[ "MIT" ]
1
2019-01-12T21:11:30.000Z
2019-01-12T21:11:30.000Z
# Copyright (c) 2019 Red Hat # # This module is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This software is distributed in the ho...
40.409091
78
0.538808
f1528e0372dcbb43da62f56668467d1ba51d3ed4
70,025
py
Python
astropy/cosmology/tests/test_cosmology.py
EnjoyLifeFund/py36pkgs
0ac677fbbfa7b6d8c527fe2c759ba05117b07fd2
[ "MIT", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
astropy/cosmology/tests/test_cosmology.py
EnjoyLifeFund/py36pkgs
0ac677fbbfa7b6d8c527fe2c759ba05117b07fd2
[ "MIT", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
astropy/cosmology/tests/test_cosmology.py
EnjoyLifeFund/py36pkgs
0ac677fbbfa7b6d8c527fe2c759ba05117b07fd2
[ "MIT", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst from __future__ import (absolute_import, division, print_function, unicode_literals) from io import StringIO import pytest import numpy as np from .. import core, funcs from ...tests.helper import quantity_allclose as allclose fr...
44.887821
85
0.592046
5274d493c56d1ffa4c606f9c1ae028bc7fa6bd80
819
py
Python
utils.py
CRIPAC-DIG/DESTINE
9ef2e1583ec8b6ef63971b83a05f3a3c924a4e3f
[ "MIT" ]
4
2021-11-29T14:32:00.000Z
2022-02-01T11:24:49.000Z
utils.py
CRIPAC-DIG/DESTINE
9ef2e1583ec8b6ef63971b83a05f3a3c924a4e3f
[ "MIT" ]
2
2021-11-28T09:27:53.000Z
2022-02-18T08:51:03.000Z
utils.py
CRIPAC-DIG/DESTINE
9ef2e1583ec8b6ef63971b83a05f3a3c924a4e3f
[ "MIT" ]
null
null
null
import torch import hashlib class EarlyStopper(object): def __init__(self, num_trials, save_path): self.num_trials = num_trials self.trial_counter = 0 self.best_accuracy = 0 self.save_path = save_path def is_continuable(self, model, accuracy): if accuracy >...
26.419355
55
0.590965
7c6ee6475357d1cf87457575abb17489e239fba1
14,177
py
Python
Tests/interop/net/derivation/test_property_override.py
dsonbill/IronPython3-NETCore
8c76bdbec1754233f04b41ecd28e9bae2c862fd0
[ "Apache-2.0" ]
2
2019-09-21T22:22:30.000Z
2020-05-09T12:45:51.000Z
Tests/interop/net/derivation/test_property_override.py
dsonbill/IronPython3-NETCore
8c76bdbec1754233f04b41ecd28e9bae2c862fd0
[ "Apache-2.0" ]
null
null
null
Tests/interop/net/derivation/test_property_override.py
dsonbill/IronPython3-NETCore
8c76bdbec1754233f04b41ecd28e9bae2c862fd0
[ "Apache-2.0" ]
null
null
null
##################################################################################### # # Copyright (c) Microsoft Corporation. All rights reserved. # # This source code is subject to terms and conditions of the Apache License, Version 2.0. A # copy of the license can be found in the License.html file at the root of t...
36.44473
150
0.560062
160d19d6d3550107ec08e15d1a9c7c155bfd05d2
7,583
py
Python
app/bwlist/test.py
gheros/testlb
cd7d1ee62b15a4658c28f50c440b9d4086974e15
[ "MIT" ]
null
null
null
app/bwlist/test.py
gheros/testlb
cd7d1ee62b15a4658c28f50c440b9d4086974e15
[ "MIT" ]
null
null
null
app/bwlist/test.py
gheros/testlb
cd7d1ee62b15a4658c28f50c440b9d4086974e15
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- import re from socket import inet_aton, inet_ntoa from struct import unpack, pack def _check_ip(ip_add): """ common func """ p = re.compile(r'^(([01]?[\d]{1,2})|(2[0-4][\d])|(25[0-5]))' \ r'(\.(([01]?[\d]{1,2})|(2[0-4][\d])|(25[0-5]))){3...
24.540453
97
0.563365
acd7c0943cd35c3f9a9344cf981f867aae07d66e
463
py
Python
04_oanda/viz.py
Tjorriemorrie/trading
aafa15a6c564bfa86948ab30e33d554172b38a3e
[ "MIT" ]
2
2017-07-02T09:06:28.000Z
2020-09-11T04:23:14.000Z
04_oanda/viz.py
Tjorriemorrie/trading
aafa15a6c564bfa86948ab30e33d554172b38a3e
[ "MIT" ]
2
2021-03-31T19:14:07.000Z
2021-06-01T23:34:32.000Z
04_oanda/viz.py
Tjorriemorrie/trading
aafa15a6c564bfa86948ab30e33d554172b38a3e
[ "MIT" ]
2
2016-03-29T07:51:16.000Z
2016-10-30T04:53:58.000Z
import json from collections import OrderedDict import numpy as np import matplotlib.pyplot as plt with open('data/EURUSD3600.json') as f: data = json.loads(f.read()) data = OrderedDict(sorted(data.items())) for i, v in data.iteritems(): print 'timestamp', i print v['rate'] points = OrderedDict(sort...
20.130435
59
0.667387
e76af242f3986d7c4eaba4e0761c17d412230fe6
331
py
Python
migrations/20211223_01_g7Y82-change-comment-on-holdemgamerecord.py
zw-g/Funny-Nation
bcb72e802e0ff46b4a409c5d51fc8b10e0987463
[ "MIT" ]
126
2022-01-15T02:29:07.000Z
2022-03-30T09:57:40.000Z
migrations/20211223_01_g7Y82-change-comment-on-holdemgamerecord.py
zw-g/Funny-Nation
bcb72e802e0ff46b4a409c5d51fc8b10e0987463
[ "MIT" ]
18
2022-01-11T22:24:35.000Z
2022-03-16T00:13:01.000Z
migrations/20211223_01_g7Y82-change-comment-on-holdemgamerecord.py
zw-g/Funny-Nation
bcb72e802e0ff46b4a409c5d51fc8b10e0987463
[ "MIT" ]
25
2022-01-22T15:06:27.000Z
2022-03-01T04:34:19.000Z
""" change comment on holdemGameRecord """ from yoyo import step __depends__ = {'20211128_01_Mn7Ng-create-holdem-game-record-table'} steps = [ step("ALTER TABLE `holdemGameRecord` CHANGE `status` `status` INT NOT NULL COMMENT '0 represent in progress; 1 represent lose or fold; 2 represent win; 3 represent game c...
27.583333
182
0.743202
e2d5716313f850b5bd5c95b4dd3f6327671bc343
4,622
py
Python
services/web/apps/inv/reportdiscoveryproblem/views.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
84
2017-10-22T11:01:39.000Z
2022-02-27T03:43:48.000Z
services/web/apps/inv/reportdiscoveryproblem/views.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
22
2017-12-11T07:21:56.000Z
2021-09-23T02:53:50.000Z
services/web/apps/inv/reportdiscoveryproblem/views.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
23
2017-12-06T06:59:52.000Z
2022-02-24T00:02:25.000Z
# --------------------------------------------------------------------- # inv.reportdiscovery # --------------------------------------------------------------------- # Copyright (C) 2007-2020 The NOC Project # See LICENSE for details # --------------------------------------------------------------------- # Third-party...
39.504274
96
0.559931
b879eba17f70605bece36e275e9e3193ce7da619
2,953
py
Python
publications/views.py
LuizFelipeGondim/AUline
04e59770b7c835962e8c6f1ea49f853cac716efb
[ "MIT" ]
null
null
null
publications/views.py
LuizFelipeGondim/AUline
04e59770b7c835962e8c6f1ea49f853cac716efb
[ "MIT" ]
5
2021-04-08T21:32:17.000Z
2021-09-22T19:29:23.000Z
publications/views.py
LuizFelipeGondim/AUline
04e59770b7c835962e8c6f1ea49f853cac716efb
[ "MIT" ]
1
2021-07-25T22:40:18.000Z
2021-07-25T22:40:18.000Z
from django.shortcuts import render, redirect from .models import Animal from services.models import PontoAcesso, Depoimento from .forms import AnimalForm, MotivoForm from django.contrib.auth.models import User from django.contrib.auth.decorators import login_required from accounts.models import Perfil from services.f...
26.845455
76
0.650186
cbff39dc17a83ae39a61d5be4d76a8dfd26838d2
29
py
Python
portfolio/Python/scrapy/sie_hunting/__init__.py
0--key/lib
ba7a85dda2b208adc290508ca617bdc55a5ded22
[ "Apache-2.0" ]
null
null
null
portfolio/Python/scrapy/sie_hunting/__init__.py
0--key/lib
ba7a85dda2b208adc290508ca617bdc55a5ded22
[ "Apache-2.0" ]
null
null
null
portfolio/Python/scrapy/sie_hunting/__init__.py
0--key/lib
ba7a85dda2b208adc290508ca617bdc55a5ded22
[ "Apache-2.0" ]
5
2016-03-22T07:40:46.000Z
2021-05-30T16:12:21.000Z
ACCOUNT_NAME = 'SIE Hunting'
14.5
28
0.758621
a1cac91340bd79b5cadea1c3e4e452005c26213d
1,744
py
Python
oechem_eval/oe_rigid_body_opt.py
PatWalters/fragment_expansion
e5e5a7d9bb24fe1196ea849f128d1a61a33e67b9
[ "MIT" ]
10
2020-03-27T00:42:15.000Z
2021-07-19T12:35:02.000Z
oechem_eval/oe_rigid_body_opt.py
PatWalters/fragment_expansion
e5e5a7d9bb24fe1196ea849f128d1a61a33e67b9
[ "MIT" ]
null
null
null
oechem_eval/oe_rigid_body_opt.py
PatWalters/fragment_expansion
e5e5a7d9bb24fe1196ea849f128d1a61a33e67b9
[ "MIT" ]
5
2020-03-26T00:29:38.000Z
2022-03-25T06:34:26.000Z
#!/usr/bin/env python import sys from openeye import oechem from openeye import oeff class RigidBodyOptimizer: def __init__(self,prot_mol): oechem.OEAddExplicitHydrogens(prot_mol) self.mmff = oeff.OEMMFFAmber(prot_mol) self.mmff.PrepMol(prot_mol) def minimize(self,mol): oech...
27.68254
95
0.650803
ce48f653d0c330af095693608908d6d6ff938b82
3,359
py
Python
data_engineering_capstone-master/python/process_fact_immigration.py
jrderek/ETL-Pipeline-with-Apache-Airflow
6a460fc9279d8ae681a5b977f3c08d9569ca8e42
[ "MIT" ]
null
null
null
data_engineering_capstone-master/python/process_fact_immigration.py
jrderek/ETL-Pipeline-with-Apache-Airflow
6a460fc9279d8ae681a5b977f3c08d9569ca8e42
[ "MIT" ]
null
null
null
data_engineering_capstone-master/python/process_fact_immigration.py
jrderek/ETL-Pipeline-with-Apache-Airflow
6a460fc9279d8ae681a5b977f3c08d9569ca8e42
[ "MIT" ]
null
null
null
from pyspark.sql import functions as F from python import get_arguments, initialize_spark_session, load_state_mapping, load_country_mapping if __name__ == "__main__": """ Spark Job to process raw data into immigration fact-table. """ args = get_arguments() # initialize spark-session spark...
39.988095
117
0.646919
29bccf95f47bb1debddf70322a1efaa38bb69a34
3,884
py
Python
nvtabular/tools/dataset_inspector.py
davidxia/NVTabular
97b05ac74204d4e21fa31d522d0f84fb37cf94a9
[ "Apache-2.0" ]
null
null
null
nvtabular/tools/dataset_inspector.py
davidxia/NVTabular
97b05ac74204d4e21fa31d522d0f84fb37cf94a9
[ "Apache-2.0" ]
1
2021-08-30T21:24:22.000Z
2021-08-30T21:24:22.000Z
nvtabular/tools/dataset_inspector.py
liftoffio/NVTabular
4ebb6bc11da12f2a0034dccc8f59701dd2240061
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2021, NVIDIA CORPORATION. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
35.309091
83
0.602729
03d43ae0c2e51fba2d8a98c6985bb229a8c44db2
29,827
py
Python
LocalHistory.py
lukaw3d/sublime-local-history-customized
eb2ff2de73a0ff750f4cbc9df558d4d716e70ece
[ "MIT" ]
null
null
null
LocalHistory.py
lukaw3d/sublime-local-history-customized
eb2ff2de73a0ff750f4cbc9df558d4d716e70ece
[ "MIT" ]
null
null
null
LocalHistory.py
lukaw3d/sublime-local-history-customized
eb2ff2de73a0ff750f4cbc9df558d4d716e70ece
[ "MIT" ]
null
null
null
import sys import os import re import time import platform import datetime import difflib import filecmp import shutil from threading import Thread import subprocess import sublime import sublime_plugin import string PY2 = sys.version_info < (3, 0) if PY2: from math import log else: from math import log2 NO_...
37.052174
197
0.592249
239d0c9a0fc25a45d3a07aea1da9d799063cdab7
15,321
py
Python
plaso/lib/timelib.py
ir4n6/plaso
010f9cbdfc82e21ed6658657fd09a7b44115c464
[ "Apache-2.0" ]
null
null
null
plaso/lib/timelib.py
ir4n6/plaso
010f9cbdfc82e21ed6658657fd09a7b44115c464
[ "Apache-2.0" ]
null
null
null
plaso/lib/timelib.py
ir4n6/plaso
010f9cbdfc82e21ed6658657fd09a7b44115c464
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """Time manipulation functions and variables. This module contain common methods that can be used to convert timestamps from various formats into number of micro seconds since January 1, 1970, 00:00:00 UTC that is used internally to store timestamps. It also contains various functions to repre...
33.672527
80
0.666406
f02aae99854e47b89ca4f27c9c872528589554e4
179
py
Python
blogvenv/Scripts/django-admin.py
jerem-uzoma/django-blog
987f5c51fb148b380a58a55daa7cd528a72244de
[ "MIT" ]
null
null
null
blogvenv/Scripts/django-admin.py
jerem-uzoma/django-blog
987f5c51fb148b380a58a55daa7cd528a72244de
[ "MIT" ]
null
null
null
blogvenv/Scripts/django-admin.py
jerem-uzoma/django-blog
987f5c51fb148b380a58a55daa7cd528a72244de
[ "MIT" ]
null
null
null
#!c:\users\fslclient\pythondjango\clone\blog\blogvenv\scripts\python.exe from django.core import management if __name__ == "__main__": management.execute_from_command_line()
29.833333
72
0.798883
02155d9f15cda41f92c8818dfd1a967aa4b1dc6d
6,420
py
Python
tests/pytests/functional/modules/test_aptpkg.py
litnialex/salt
ed773dcacedebb01a0d34b5e8e66e57bdf2e2d0f
[ "Apache-2.0" ]
3
2015-08-30T04:23:47.000Z
2018-07-15T00:35:23.000Z
tests/pytests/functional/modules/test_aptpkg.py
litnialex/salt
ed773dcacedebb01a0d34b5e8e66e57bdf2e2d0f
[ "Apache-2.0" ]
null
null
null
tests/pytests/functional/modules/test_aptpkg.py
litnialex/salt
ed773dcacedebb01a0d34b5e8e66e57bdf2e2d0f
[ "Apache-2.0" ]
1
2016-10-28T03:58:05.000Z
2016-10-28T03:58:05.000Z
import pathlib import shutil import pytest import salt.exceptions import salt.modules.aptpkg as aptpkg import salt.modules.cmdmod as cmd import salt.modules.file as file import salt.utils.files import salt.utils.stringutils from tests.support.mock import Mock, patch pytestmark = [ pytest.mark.skip_if_binaries_mis...
29.181818
81
0.59595
59b400e47b7ea8d6352ddda671388ca39a3bab81
279
py
Python
pines_raspberry_img/take_photos.py
pines-and-electronics/pines_raspberry
b2f1448fe6f9897ce8bd5763f86c942a2b3601d4
[ "Apache-2.0" ]
null
null
null
pines_raspberry_img/take_photos.py
pines-and-electronics/pines_raspberry
b2f1448fe6f9897ce8bd5763f86c942a2b3601d4
[ "Apache-2.0" ]
null
null
null
pines_raspberry_img/take_photos.py
pines-and-electronics/pines_raspberry
b2f1448fe6f9897ce8bd5763f86c942a2b3601d4
[ "Apache-2.0" ]
null
null
null
raspistill -t 10000 -tl 2000 -o image%04d.jpg #This will produce a capture every 2 seconds over a total period of 10s, named image1.jpg, image0002.jpg...image0015.jpg. raspistill -t 10000 -tl 2000 -o /home/pi/Documents/pines_raspberry/pines_raspberry_img/images/image%04d.jpg
39.857143
121
0.781362
25df1fbb9a825efdc4c257d3a4a5ff6ccd9ba551
1,183
py
Python
easy/728-Self Dividing Numbers.py
Davidxswang/leetcode
d554b7f5228f14c646f726ddb91014a612673e06
[ "Apache-2.0" ]
2
2020-05-08T02:17:17.000Z
2020-05-17T04:55:56.000Z
easy/728-Self Dividing Numbers.py
Davidxswang/leetcode
d554b7f5228f14c646f726ddb91014a612673e06
[ "Apache-2.0" ]
null
null
null
easy/728-Self Dividing Numbers.py
Davidxswang/leetcode
d554b7f5228f14c646f726ddb91014a612673e06
[ "Apache-2.0" ]
null
null
null
""" https://leetcode.com/problems/self-dividing-numbers/ A self-dividing number is a number that is divisible by every digit it contains. For example, 128 is a self-dividing number because 128 % 1 == 0, 128 % 2 == 0, and 128 % 8 == 0. Also, a self-dividing number is not allowed to contain the digit zero. Given a low...
31.131579
125
0.579036
024acbaff2cfa70c10356e6a154567928b0fd649
826
py
Python
examples/api/friendships/get_followers.py
javad94/instauto
8d4d068863176b0a1df13e5be3d5e32388036921
[ "MIT" ]
79
2020-08-24T23:32:57.000Z
2022-02-20T19:03:17.000Z
examples/api/friendships/get_followers.py
klaytonpaiva/instauto
7f8c26b22f84d3d966625c7fa656e91cc623bb2e
[ "MIT" ]
146
2020-07-25T16:27:48.000Z
2021-10-02T09:03:50.000Z
examples/api/friendships/get_followers.py
klaytonpaiva/instauto
7f8c26b22f84d3d966625c7fa656e91cc623bb2e
[ "MIT" ]
41
2020-09-07T14:19:04.000Z
2022-02-07T23:08:10.000Z
from instauto.api.client import ApiClient import instauto.api.actions.structs.friendships as fs client = ApiClient.initiate_from_file('.instauto.save') # Instauto has an `followers_get` endpoint for retrieving followers. The endpoint, returns # two values. The input object, and the retrieved response. You can re-use...
37.545455
91
0.75908
31a0cce9c77cde72f8c03bc18a1802a82c04e9e5
343
py
Python
4/lab4_4.py
Vasniktel/prometheus-python
b9c1614bd5faf41762b3217ba5e1d92f5701f14e
[ "MIT" ]
2
2017-10-10T20:11:57.000Z
2018-04-13T18:39:41.000Z
4/lab4_4.py
Vasniktel/prometheus-python
b9c1614bd5faf41762b3217ba5e1d92f5701f14e
[ "MIT" ]
null
null
null
4/lab4_4.py
Vasniktel/prometheus-python
b9c1614bd5faf41762b3217ba5e1d92f5701f14e
[ "MIT" ]
null
null
null
import sys arg_1 = sys.argv[1] arg_2 = sys.argv[2] count = 0 for i in xrange(int(arg_1), int(arg_2) + 1): str_ = str(i) if len(str_) < 6: str_ = '0' * (6 - len(str_)) + str_ int_1 = int_2 = 0 for j in range(6): if j < 3: int_1 += int(str_[j]) else: int_2 += int(str_[j]) if int_1 == int_2: c...
14.291667
44
0.553936
c33fc34dffbac7a493fb8fbedbf708d8d6b78f60
776
py
Python
lab/refactoring/rename_method.py
Andre-Williams22/SPD-2.31-Testing-and-Architecture
a28abb56c7b0c920144867f5aa138f70aae65260
[ "MIT" ]
null
null
null
lab/refactoring/rename_method.py
Andre-Williams22/SPD-2.31-Testing-and-Architecture
a28abb56c7b0c920144867f5aa138f70aae65260
[ "MIT" ]
null
null
null
lab/refactoring/rename_method.py
Andre-Williams22/SPD-2.31-Testing-and-Architecture
a28abb56c7b0c920144867f5aa138f70aae65260
[ "MIT" ]
null
null
null
# by Kami Bigdely # Rename Method # Reference: https://parade.com/1039985/marynliles/pick-up-lines/ def area_under_graph(graph): # TODO: Rename this function to reflect what it's doing. """Calculate the area under the input graph.""" # bla bla bla. pass ##################### def get_max_value(li): # T...
25.866667
89
0.615979
4dd5df4de876c9d66658c10de2daa8145f3e3499
2,730
py
Python
invenio_vocabularies/datastreams/datastreams.py
ctrl-alt-soneca/invenio-vocabularies
a78a70529b3191e5f77c3e43148dfa9a51773e36
[ "MIT" ]
null
null
null
invenio_vocabularies/datastreams/datastreams.py
ctrl-alt-soneca/invenio-vocabularies
a78a70529b3191e5f77c3e43148dfa9a51773e36
[ "MIT" ]
null
null
null
invenio_vocabularies/datastreams/datastreams.py
ctrl-alt-soneca/invenio-vocabularies
a78a70529b3191e5f77c3e43148dfa9a51773e36
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2021 CERN. # # Invenio-Vocabularies is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see LICENSE file for more # details. """Base data stream.""" from .errors import TransformerError, WriterError class StreamEntry: """Obje...
32.5
76
0.611355
4470338bf48bd51fcaffd6b48a5fd36a7bd2fd47
1,124
py
Python
app/metaclassexer.py
asuraswrath/pysample
efc125bc6af41d68a86e4b09b3eb1c0c35e43d1f
[ "MIT" ]
null
null
null
app/metaclassexer.py
asuraswrath/pysample
efc125bc6af41d68a86e4b09b3eb1c0c35e43d1f
[ "MIT" ]
null
null
null
app/metaclassexer.py
asuraswrath/pysample
efc125bc6af41d68a86e4b09b3eb1c0c35e43d1f
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- sensitive_words_list = ['asshole', 'fuck', 'shit'] def detect_sensitive_words(string): ''' detect sensitive words''' #import pdb;pdb.set_trace() words_detected = list(filter(lambda word: word in string.lower(), sensitive_words_list)) if words_detected: name_error_string...
33.058824
92
0.653915
f2c9f21b0e6d41118b38ed6b495f032d16c120c2
982
py
Python
learning_python/lesson3/exercise3.py
khanhvc2003/pynet
872dc71e42025c31b8737ae0465311235e7f4769
[ "Apache-2.0" ]
1
2020-04-02T01:18:38.000Z
2020-04-02T01:18:38.000Z
learning_python/lesson3/exercise3.py
khanhvc2003/pynet
872dc71e42025c31b8737ae0465311235e7f4769
[ "Apache-2.0" ]
null
null
null
learning_python/lesson3/exercise3.py
khanhvc2003/pynet
872dc71e42025c31b8737ae0465311235e7f4769
[ "Apache-2.0" ]
4
2019-12-17T03:18:52.000Z
2019-12-17T03:21:21.000Z
#!/usr/bin/env python ''' Read the 'show_lldp_neighbors_detail.txt' file. Loop over the lines of this file. Keep reading the lines until you have encountered the remote "System Name" and remote "Port id". Save these two items into variables and print them to the screen. You should extract only the system name and port ...
33.862069
100
0.711813
c03852e50d51dd5c1bdca8ba54b412db81ffcc9c
441
py
Python
examples/marbles/hot_datetime.py
samiur/RxPY
ea6b3554ab06cfc70e28b532c0a54b910b6ee470
[ "MIT" ]
null
null
null
examples/marbles/hot_datetime.py
samiur/RxPY
ea6b3554ab06cfc70e28b532c0a54b910b6ee470
[ "MIT" ]
null
null
null
examples/marbles/hot_datetime.py
samiur/RxPY
ea6b3554ab06cfc70e28b532c0a54b910b6ee470
[ "MIT" ]
null
null
null
import datetime import rx3 import rx.operators as ops """ Delay the emission of elements to the specified datetime. """ now = datetime.datetime.utcnow() dt = datetime.timedelta(seconds=3.0) duetime = now + dt print('{} -> now\n' '{} -> start of emission in {}s'.format(now, duetime, dt.total_seconds())) hot...
21
81
0.673469
a33fdbd69615cfbcdb68b7d8c2e2661f46afa24e
458
py
Python
examples/other/icon.py
danielhrisca/vedo
487568b7956a67b87752e3d518ba3f7e87b327a6
[ "CC0-1.0" ]
null
null
null
examples/other/icon.py
danielhrisca/vedo
487568b7956a67b87752e3d518ba3f7e87b327a6
[ "CC0-1.0" ]
null
null
null
examples/other/icon.py
danielhrisca/vedo
487568b7956a67b87752e3d518ba3f7e87b327a6
[ "CC0-1.0" ]
null
null
null
"""Make a icon to indicate orientation and place it in one of the 4 corners within the same renderer. """ from vedo import * vp = Plotter(axes=5) # axes type 5 builds an annotated orientation cube vp.load(datadir+'porsche.ply').lighting('metallic') vp.show(interactive=0) elg = load(datadir+"images/embl_logo.jpg")...
19.083333
51
0.716157
d552fe352e376385d91c68f7968012b09848e600
2,959
py
Python
cfn.py
lukedmor/dragv2-jsinput
c3f3e90a27354d51b69da3130e08a76b43235b84
[ "MIT" ]
null
null
null
cfn.py
lukedmor/dragv2-jsinput
c3f3e90a27354d51b69da3130e08a76b43235b84
[ "MIT" ]
null
null
null
cfn.py
lukedmor/dragv2-jsinput
c3f3e90a27354d51b69da3130e08a76b43235b84
[ "MIT" ]
null
null
null
# Regex (this is to make python pretty in html): # .replace(/[\n\r]/g,'<br>') # .replace(/\s{4}/g,'&nbsp;&nbsp;&nbsp;&nbsp;') # .replace(/\s+/g,' ') # .replace(/(def |import|if|elif|else|for|return|continue|break)/g,'<span style="color:#8A59A8;">$1</span>') # .replace(/(None|False|True|\d+(?=]|:|<br>|,))/g,'<span style...
45.523077
113
0.600879
991c0e2b30e8cdba143af80bf403311f290d407a
856
py
Python
mk011-pick_one.py
karakose77/udacity-cs101-intro-to-computer-science-exercises-and-projects
5d41d5274f01887f20c6fe82b9214305f4e81e36
[ "MIT" ]
null
null
null
mk011-pick_one.py
karakose77/udacity-cs101-intro-to-computer-science-exercises-and-projects
5d41d5274f01887f20c6fe82b9214305f4e81e36
[ "MIT" ]
null
null
null
mk011-pick_one.py
karakose77/udacity-cs101-intro-to-computer-science-exercises-and-projects
5d41d5274f01887f20c6fe82b9214305f4e81e36
[ "MIT" ]
null
null
null
# Question 1: Pick One # Define a procedure, pick_one, that takes three inputs: a Boolean # and two other values. If the first input is True, it should return # the second input. If the first input is False, it should return the # third input. # For example, pick_one(True, 37, 'hello') should return 37, and # pick_on...
26.75
69
0.688084