hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
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
3
251
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
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
3
251
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
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
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
338533386fe5a86b5d7b0d4e0de9f37f1da09eea
2,531
py
Python
tech_project/lib/python2.7/site-packages/djangocms_picture/cms_plugins.py
priyamshah112/Project-Descripton-Blog
8e01016c6be79776c4f5ca75563fa3daa839e39e
[ "MIT" ]
null
null
null
tech_project/lib/python2.7/site-packages/djangocms_picture/cms_plugins.py
priyamshah112/Project-Descripton-Blog
8e01016c6be79776c4f5ca75563fa3daa839e39e
[ "MIT" ]
null
null
null
tech_project/lib/python2.7/site-packages/djangocms_picture/cms_plugins.py
priyamshah112/Project-Descripton-Blog
8e01016c6be79776c4f5ca75563fa3daa839e39e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from cms.plugin_base import CMSPluginBase from cms.plugin_pool import plugin_pool from django.conf import settings from django.utils.translation import ugettext_lazy as _ from .forms import PictureForm from .models import Picture # enable nesting of plugins inside the picture plugin PICTURE_NE...
32.037975
80
0.566574
3385d0740834d136b94244297d0e01af822e4328
622
py
Python
Blatt1/src/script.py
lewis206/Computational_Physics
06ad6126685eaf65f5834bfe70ebd91b33314395
[ "MIT" ]
null
null
null
Blatt1/src/script.py
lewis206/Computational_Physics
06ad6126685eaf65f5834bfe70ebd91b33314395
[ "MIT" ]
null
null
null
Blatt1/src/script.py
lewis206/Computational_Physics
06ad6126685eaf65f5834bfe70ebd91b33314395
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import matplotlib # Set fontsize larger for latex plots matplotlib.rcParams.update({'font.size': 20}) # Generate data from file x, y = np.genfromtxt("bin/python_Aufgabe2.txt", unpack=True) m, n = x[-1], y[-1] # Plotting plt.figure(figsize=(12,7)) plt.grid() plt.xla...
27.043478
70
0.680064
33868319c19ba1edc4a009ab8aec531548edc673
1,350
py
Python
editregions/migrations/0001_initial.py
kezabelle/django-editregions
961ddeffb37d30d40fb4e3e9224bc3f956b7a5b5
[ "BSD-2-Clause-FreeBSD" ]
1
2015-01-11T18:21:27.000Z
2015-01-11T18:21:27.000Z
editregions/migrations/0001_initial.py
kezabelle/django-editregions
961ddeffb37d30d40fb4e3e9224bc3f956b7a5b5
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
editregions/migrations/0001_initial.py
kezabelle/django-editregions
961ddeffb37d30d40fb4e3e9224bc3f956b7a5b5
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import editregions.utils.regions
37.5
121
0.586667
3386cfd4a875f26af378b42735047ac756a1b6cf
887
py
Python
histVarPng.py
AineNicD/pands-project
55f7dbab4f106f4776be4e0248c941a4246e64ac
[ "MIT" ]
null
null
null
histVarPng.py
AineNicD/pands-project
55f7dbab4f106f4776be4e0248c941a4246e64ac
[ "MIT" ]
null
null
null
histVarPng.py
AineNicD/pands-project
55f7dbab4f106f4776be4e0248c941a4246e64ac
[ "MIT" ]
null
null
null
#Saves a historgram of each variable to png files import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns #read data data = pd.read_csv("irisDataSet.csv") #names of variables names = ['sepal_length', 'sepal_width', 'petal_length', 'petal_width', 'species'] # sepe...
22.74359
121
0.723788
3387d6dfab24bbf352088172ca1497dc6db9c9b1
712
py
Python
build.py
LagoLunatic/GCFT
d838614804058c7b7ea5c62b37251a2795f5c791
[ "MIT" ]
38
2020-01-14T01:20:15.000Z
2022-02-15T00:03:33.000Z
build.py
LagoLunatic/GCFT
d838614804058c7b7ea5c62b37251a2795f5c791
[ "MIT" ]
7
2020-01-13T18:08:07.000Z
2022-01-13T02:20:30.000Z
build.py
LagoLunatic/GCFT
d838614804058c7b7ea5c62b37251a2795f5c791
[ "MIT" ]
1
2021-09-23T19:30:55.000Z
2021-09-23T19:30:55.000Z
from zipfile import ZipFile import os from version import VERSION base_name = "GameCube File Tools" base_name_with_version = base_name + " " + VERSION import struct if (struct.calcsize("P") * 8) == 64: base_name_with_version += "_64bit" base_zip_name = base_name_with_version else: base_name_with_version += "_...
26.37037
56
0.723315
338824f1551a38d9cfd8d8f7b8e6193c7a8c97ff
2,894
py
Python
Settings/RobotData.py
xzhang-wr/DAnTE_V2
8b433973aa5ab47ef237d8dfaca6232a6d9f526b
[ "Apache-2.0" ]
null
null
null
Settings/RobotData.py
xzhang-wr/DAnTE_V2
8b433973aa5ab47ef237d8dfaca6232a6d9f526b
[ "Apache-2.0" ]
null
null
null
Settings/RobotData.py
xzhang-wr/DAnTE_V2
8b433973aa5ab47ef237d8dfaca6232a6d9f526b
[ "Apache-2.0" ]
null
null
null
#!usr/bin/env python __author__ = "X Zhang" __email__ = "xzhang@westwoodrobotics.net" __copyright__ = "Copyright 2020 Westwood Robotics Corp." __date__ = "Feb 14, 2020" __version__ = "0.1.0" __status__ = "Beta" from Settings.Constants_DAnTE import * import math import numpy as np
37.584416
107
0.658604
3388f9df9b80255086f1204a7c8b7e0f3646bb15
2,012
py
Python
src/main/resources/servicenow/OpenTicket.py
xdanw/xld-servicenow-incidentlog
9ae4ccf5a110dab0294aa38cd04b2abc8615acba
[ "MIT" ]
null
null
null
src/main/resources/servicenow/OpenTicket.py
xdanw/xld-servicenow-incidentlog
9ae4ccf5a110dab0294aa38cd04b2abc8615acba
[ "MIT" ]
null
null
null
src/main/resources/servicenow/OpenTicket.py
xdanw/xld-servicenow-incidentlog
9ae4ccf5a110dab0294aa38cd04b2abc8615acba
[ "MIT" ]
null
null
null
import json import requests import requests.utils # Fixes some issues with TLS import os os.environ['REQUESTS_CA_BUNDLE'] = 'ca.pem'; # --- Debug Purposes Only, Server Config Is Hard Coded --- # # # print "Debug ... " + deployed.ResultUri; # response = requests.get('https://webhook.site/062e2ea7-5a36-4abb-a2c8-862...
30.484848
123
0.695328
338945537366a67604118a7d7b4f22b6a5da388b
4,318
py
Python
code/joint_pca.py
craig-willis/SOMOSPIE
0e2b43bd047252d992bc533285a3469ea5d60e09
[ "BSD-3-Clause" ]
null
null
null
code/joint_pca.py
craig-willis/SOMOSPIE
0e2b43bd047252d992bc533285a3469ea5d60e09
[ "BSD-3-Clause" ]
null
null
null
code/joint_pca.py
craig-willis/SOMOSPIE
0e2b43bd047252d992bc533285a3469ea5d60e09
[ "BSD-3-Clause" ]
3
2020-02-14T14:31:50.000Z
2022-01-04T16:51:40.000Z
#!/usr/bin/env python3 # This script assumes that the non-numerical column headers # in train and predi files are identical. # Thus the sm header(s) in the train file must be numeric (day/month/year). import sys import numpy as np import pandas as pd from sklearn.decomposition import PCA #TruncatedSVD as SVD from skl...
33.472868
113
0.700787
338b6987963d5d47f633929d5f959e0cea5cc7d2
120
py
Python
models/__init__.py
MartinPernus/MaskFaceGAN
e10b7c5b2f74113118b89913089a7529d709dce1
[ "MIT" ]
11
2021-07-28T12:52:26.000Z
2022-02-28T02:53:23.000Z
models/__init__.py
MartinPernus/MaskFaceGAN
e10b7c5b2f74113118b89913089a7529d709dce1
[ "MIT" ]
2
2021-11-01T09:36:48.000Z
2021-12-13T12:32:09.000Z
models/__init__.py
MartinPernus/MaskFaceGAN
e10b7c5b2f74113118b89913089a7529d709dce1
[ "MIT" ]
1
2021-11-01T09:36:55.000Z
2021-11-01T09:36:55.000Z
from .attribute_classifier import BranchedTinyAttr from .face_parser import FaceParser from .stylegan2 import Generator
30
50
0.875
338b7280d85cf38ca0b11c2d5921f28082cfcfc1
2,787
py
Python
tests/utils_tests.py
djt5019/queries
6bae5fa9a0cb397a43a41dd6692a81b9fb389096
[ "BSD-3-Clause" ]
null
null
null
tests/utils_tests.py
djt5019/queries
6bae5fa9a0cb397a43a41dd6692a81b9fb389096
[ "BSD-3-Clause" ]
null
null
null
tests/utils_tests.py
djt5019/queries
6bae5fa9a0cb397a43a41dd6692a81b9fb389096
[ "BSD-3-Clause" ]
null
null
null
""" Tests for functionality in the utils module """ import mock try: import unittest2 as unittest except ImportError: import unittest from queries import utils
32.788235
79
0.679584
338bdb61b810291631438e77fffbc7457c38058b
1,421
py
Python
Core/Stealer/FileZilla.py
HugoMskn/Telegram-RAT
53989b2509b1c844c6a33f670aece5f8dbf15305
[ "MIT" ]
375
2020-03-17T06:20:50.000Z
2022-03-29T22:27:23.000Z
Core/Stealer/FileZilla.py
HugoMskn/Telegram-RAT
53989b2509b1c844c6a33f670aece5f8dbf15305
[ "MIT" ]
44
2020-04-06T22:37:59.000Z
2020-11-15T15:53:39.000Z
Core/Stealer/FileZilla.py
HugoMskn/Telegram-RAT
53989b2509b1c844c6a33f670aece5f8dbf15305
[ "MIT" ]
173
2020-04-01T17:17:26.000Z
2022-03-24T13:28:15.000Z
# Import modules import os from xml.dom import minidom from base64 import b64decode # Fetch servers from FileZilla FileZilla = os.getenv('AppData') + '\\FileZilla\\'
33.046512
148
0.696692
338c3eed58a47fa30a2aa03ae3da78bb3efa67b1
535
py
Python
oldcontrib/tools/gallery/urls.py
servee/django-servee-oldcontrib
836447ebbd53db0b53879a35468c02e57f65105f
[ "BSD-Source-Code" ]
null
null
null
oldcontrib/tools/gallery/urls.py
servee/django-servee-oldcontrib
836447ebbd53db0b53879a35468c02e57f65105f
[ "BSD-Source-Code" ]
null
null
null
oldcontrib/tools/gallery/urls.py
servee/django-servee-oldcontrib
836447ebbd53db0b53879a35468c02e57f65105f
[ "BSD-Source-Code" ]
null
null
null
from django.conf.urls.defaults import * urlpatterns = patterns('oldcontrib.tools.gallery.views', url(r'^add_to_gallery/$', view='add_to_gallery', name='add_to_gallery'), url(r'^remove_from_gallery/$', view='remove_from_gallery', name='remove_from_gallery'), url(r'^create_gallery/$', view='create_gallery', ...
59.444444
94
0.745794
338c9be69572a77ed6dc3ba19bdccb2d83d6f3ff
4,333
py
Python
server/app/mod_api/endpoints.py
meyersj/TamaleNow
59003d2122ce6af4928a8b16a0fe0ab547df66b9
[ "MIT" ]
null
null
null
server/app/mod_api/endpoints.py
meyersj/TamaleNow
59003d2122ce6af4928a8b16a0fe0ab547df66b9
[ "MIT" ]
1
2015-08-28T01:59:24.000Z
2015-08-28T01:59:24.000Z
server/app/mod_api/endpoints.py
meyersj/TamaleNow
59003d2122ce6af4928a8b16a0fe0ab547df66b9
[ "MIT" ]
null
null
null
# Copyright (C) 2015 Jeffrey Meyers # # This program is released under the "MIT License". # Please see the file COPYING in this distribution for # license terms. import datetime from flask import Blueprint, request, jsonify from webargs import Arg from webargs.flaskparser import use_args import geoalchemy2.functions...
27.775641
75
0.632587
338d8b38b7ae2a594d977bc4df33b494659dacc1
2,896
py
Python
src/spn/structure/leaves/conditional/MLE.py
kripa-experiments/SPFlow
32eada604bf5442d8aa10223581b187f7a57d540
[ "Apache-2.0" ]
null
null
null
src/spn/structure/leaves/conditional/MLE.py
kripa-experiments/SPFlow
32eada604bf5442d8aa10223581b187f7a57d540
[ "Apache-2.0" ]
null
null
null
src/spn/structure/leaves/conditional/MLE.py
kripa-experiments/SPFlow
32eada604bf5442d8aa10223581b187f7a57d540
[ "Apache-2.0" ]
null
null
null
''' Created on April 15, 2018 @author: Alejandro Molina ''' import numpy as np import warnings from scipy.stats import gamma, lognorm from sklearn.linear_model import ElasticNet from spn.structure.leaves.conditional.Conditional import Conditional_Gaussian, Conditional_Poisson, \ Conditional_Bernoulli import stats...
34.891566
113
0.667472
338eac6a7e1d38c11cb457c1d528a675949db378
5,077
py
Python
src/fparser/two/tests/fortran2003/test_control_edit_descriptor_r1011.py
sturmianseq/fparser
bf3cba3f31a72671d4d4a93b6ef4f9832006219f
[ "BSD-3-Clause" ]
33
2017-08-18T16:31:27.000Z
2022-03-28T09:43:50.000Z
src/fparser/two/tests/fortran2003/test_control_edit_descriptor_r1011.py
sturmianseq/fparser
bf3cba3f31a72671d4d4a93b6ef4f9832006219f
[ "BSD-3-Clause" ]
319
2017-01-12T14:22:07.000Z
2022-03-23T20:53:25.000Z
src/fparser/two/tests/fortran2003/test_control_edit_descriptor_r1011.py
sturmianseq/fparser
bf3cba3f31a72671d4d4a93b6ef4f9832006219f
[ "BSD-3-Clause" ]
17
2017-10-13T07:12:28.000Z
2022-02-11T14:42:18.000Z
# Copyright (c) 2019 Science and Technology Facilities Council # All rights reserved. # Modifications made as part of the fparser project are distributed # under the following license: # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following condi...
39.053846
74
0.696868
338f8fbc58d791841bc38c5b6a72926e9899414e
6,486
py
Python
PSPNet/utils.py
keyme/deep_learning
1d08a739d889cf736e75b87cc30ec0476c3dec6d
[ "MIT" ]
12
2018-03-14T18:06:16.000Z
2020-07-21T12:06:53.000Z
PSPNet/utils.py
keyme/deep_learning
1d08a739d889cf736e75b87cc30ec0476c3dec6d
[ "MIT" ]
10
2018-02-26T21:18:15.000Z
2019-01-25T17:16:20.000Z
PSPNet/utils.py
keyme/deep_learning
1d08a739d889cf736e75b87cc30ec0476c3dec6d
[ "MIT" ]
7
2018-02-26T19:23:00.000Z
2019-03-11T01:21:54.000Z
""" This module contains utility functions used in the conversion of the downloaded data to TFrecords as well as functions used by the model/training script. Semantic segmenation evaluations methods were taken from https://github.com/martinkersner/py_img_seg_eval """ import os import fnmatch import logging import cv...
35.442623
111
0.68301
3390381ad2adf5630233e515d79350ddfc4af053
5,685
py
Python
NumPyNet/layers/activation_layer.py
Nico-Curti/NumPyNet
bc4153f58a054d4e60bb14c993bf61a058458e8b
[ "MIT" ]
28
2019-08-19T15:46:12.000Z
2022-02-17T16:32:13.000Z
NumPyNet/layers/activation_layer.py
Nico-Curti/NumPyNet
bc4153f58a054d4e60bb14c993bf61a058458e8b
[ "MIT" ]
3
2020-07-05T17:16:44.000Z
2022-03-28T10:03:36.000Z
NumPyNet/layers/activation_layer.py
Nico-Curti/NumPyNet
bc4153f58a054d4e60bb14c993bf61a058458e8b
[ "MIT" ]
7
2019-09-17T09:13:57.000Z
2022-02-15T08:50:38.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import division from __future__ import print_function from NumPyNet.activations import Activations from NumPyNet.utils import _check_activation from NumPyNet.utils import check_is_fitted import numpy as np from NumPyNet.layers.base import BaseLayer __aut...
25.840909
119
0.63131
339039daaf7ffa710ba3dbd6f69316cd722f2b38
843
py
Python
anymesh/tests/reactortester.py
AnyMesh/anyMesh-Python
017b7808f2fbdc765604488d325678c28be438c0
[ "MIT" ]
39
2015-04-09T12:55:25.000Z
2022-01-09T17:56:39.000Z
anymesh/tests/reactortester.py
AnyMesh/anyMesh-Python
017b7808f2fbdc765604488d325678c28be438c0
[ "MIT" ]
null
null
null
anymesh/tests/reactortester.py
AnyMesh/anyMesh-Python
017b7808f2fbdc765604488d325678c28be438c0
[ "MIT" ]
13
2015-12-17T21:56:26.000Z
2019-06-01T18:22:02.000Z
import unittest from twisted.internet import reactor, task
28.1
62
0.619217
3390fdfb284aecfe0fd47351543fe7cd80e19246
1,068
py
Python
old/accurate_landing.py
domnantas/landing-system
408f352ce56d83ec63882e0aee370df5f5d683ad
[ "MIT" ]
1
2021-09-15T08:06:03.000Z
2021-09-15T08:06:03.000Z
old/accurate_landing.py
domnantas/landing-system
408f352ce56d83ec63882e0aee370df5f5d683ad
[ "MIT" ]
null
null
null
old/accurate_landing.py
domnantas/landing-system
408f352ce56d83ec63882e0aee370df5f5d683ad
[ "MIT" ]
null
null
null
from oled import TrackerOled from color_tracker import ColorTracker import cv2 from threading import Thread tracker_oled = TrackerOled() color_tracker = ColorTracker() tracker_oled.writeTextCenter("READY") while True: color_tracker.processFrame() # t = Thread(target=write_fps, args=(), daemon=True) # t...
30.514286
79
0.690075
3393b84012cd8093cec6722d84c146ceb9736287
6,692
py
Python
lightconfig/lightconfig.py
daassh/LightConfig
e7d962bafae47e635b8a14abe8f6f98cb3ea16a9
[ "MIT" ]
2
2018-07-24T02:16:41.000Z
2018-08-06T06:52:15.000Z
lightconfig/lightconfig.py
daassh/LightConfig
e7d962bafae47e635b8a14abe8f6f98cb3ea16a9
[ "MIT" ]
null
null
null
lightconfig/lightconfig.py
daassh/LightConfig
e7d962bafae47e635b8a14abe8f6f98cb3ea16a9
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding=utf-8 # get a easy way to edit config file """ >>> from lightconfig import LightConfig >>> cfg = LightConfig("config.ini") >>> cfg.section1.option1 = "value1" >>> print(cfg.section1.option1) value1 >>> "section1" in cfg True >>> "option1" in cfg.section1 True """ import os import codecs i...
36.568306
139
0.609534
3393bcf3b27570f5d59ffe21a0c2d9ebb337faa5
2,414
py
Python
assets/scikit-learn_linear_regression.py
tbienias/blog
78babd9cab487a4f8746a0918d363985ea8cd8a8
[ "MIT" ]
6
2020-12-10T00:39:38.000Z
2022-02-10T20:16:04.000Z
assets/scikit-learn_linear_regression.py
tbienias/blog
78babd9cab487a4f8746a0918d363985ea8cd8a8
[ "MIT" ]
null
null
null
assets/scikit-learn_linear_regression.py
tbienias/blog
78babd9cab487a4f8746a0918d363985ea8cd8a8
[ "MIT" ]
null
null
null
""" This script shows the usage of scikit-learns linear regression functionality. """ # %% [markdown] # # Linear Regression using Scikit-Learn # # %% [markdown] # ## Ice Cream Dataset ## # | Temperature C | Ice Cream Sales | # |:--------------:|:---------------:| # | 15 | 34 | # | 24 ...
22.146789
77
0.511599
339506ce1e95c27d7ca74c94295129c3b605e640
9,195
py
Python
RNN.py
AuckeBos/Speaker-count-estimation-with-single-speakers
e56f53c0a49e0a2ed446e55ec8764182f67fd236
[ "MIT" ]
null
null
null
RNN.py
AuckeBos/Speaker-count-estimation-with-single-speakers
e56f53c0a49e0a2ed446e55ec8764182f67fd236
[ "MIT" ]
null
null
null
RNN.py
AuckeBos/Speaker-count-estimation-with-single-speakers
e56f53c0a49e0a2ed446e55ec8764182f67fd236
[ "MIT" ]
null
null
null
from datetime import datetime import numpy as np import tensorflow as tf import tensorflow.keras.backend as K import tensorflow_probability as tfp from sklearn.metrics import mean_absolute_error from tensorflow.python.keras.callbacks import EarlyStopping, ReduceLROnPlateau, ModelCheckpoint from tensorflow.python.keras...
39.12766
139
0.657423
3397953b644d0f59b96f9efd7c056d0243abb45a
380
py
Python
src/run-shoutcloud/run-shoutcloud-aws.py
kpwbo/comparing-FaaS
dfede88cc9efb1a70ef96603e851436bdc177429
[ "MIT" ]
null
null
null
src/run-shoutcloud/run-shoutcloud-aws.py
kpwbo/comparing-FaaS
dfede88cc9efb1a70ef96603e851436bdc177429
[ "MIT" ]
null
null
null
src/run-shoutcloud/run-shoutcloud-aws.py
kpwbo/comparing-FaaS
dfede88cc9efb1a70ef96603e851436bdc177429
[ "MIT" ]
null
null
null
from locust import HttpLocust, TaskSet, task
27.142857
67
0.642105
3398cb226db154c17c5156d32cace490ac81678b
198
py
Python
02_sequences/0201_listcomp/020103_cartesian/__main__.py
forseti/py-workout-01
9ebb36748ec7d4751b2c81086134df320c0f58ed
[ "Apache-2.0" ]
null
null
null
02_sequences/0201_listcomp/020103_cartesian/__main__.py
forseti/py-workout-01
9ebb36748ec7d4751b2c81086134df320c0f58ed
[ "Apache-2.0" ]
null
null
null
02_sequences/0201_listcomp/020103_cartesian/__main__.py
forseti/py-workout-01
9ebb36748ec7d4751b2c81086134df320c0f58ed
[ "Apache-2.0" ]
null
null
null
colors = ['black', 'white'] sizes = ['S', 'M', 'L'] tshirts = [ (color, size) for color in colors for size in sizes ] print(f"Cartesian products from {colors} and {sizes}: {tshirts}")
18
65
0.59596
3399587139e4c6f0b9e4a5bc16f77ab6a41e223b
807
py
Python
software/pawsc/pawsc_blocks/PAWSC_REST_API_RICHARD_II/django/base/src/urls.py
vthakur7f/OpenCellular
0d5d7b005327e4378bd5c7fd44d7b8dc5ab796f6
[ "CC-BY-4.0", "BSD-3-Clause" ]
1
2019-01-17T21:03:51.000Z
2019-01-17T21:03:51.000Z
software/pawsc/pawsc_blocks/PAWSC_REST_API_RICHARD_II/django/base/src/urls.py
vthakur7f/OpenCellular
0d5d7b005327e4378bd5c7fd44d7b8dc5ab796f6
[ "CC-BY-4.0", "BSD-3-Clause" ]
null
null
null
software/pawsc/pawsc_blocks/PAWSC_REST_API_RICHARD_II/django/base/src/urls.py
vthakur7f/OpenCellular
0d5d7b005327e4378bd5c7fd44d7b8dc5ab796f6
[ "CC-BY-4.0", "BSD-3-Clause" ]
null
null
null
# create this file # rerouting all requests that have api in the url to the <code>apps.core.urls from django.conf.urls import url from django.urls import path from rest_framework import routers from base.src import views from base.src.views import InitViewSet #from base.src.views import UploadFileForm #upload stuff ...
26.9
79
0.759603
33998c2c6881fb81dfbebc65e0a2eb0c23324496
2,456
py
Python
res/test_Rainbow_pen.py
nomissbowling/gcc_Springhead
5a03cb61e13c61143e394e86d57016d28c79b051
[ "MIT" ]
null
null
null
res/test_Rainbow_pen.py
nomissbowling/gcc_Springhead
5a03cb61e13c61143e394e86d57016d28c79b051
[ "MIT" ]
null
null
null
res/test_Rainbow_pen.py
nomissbowling/gcc_Springhead
5a03cb61e13c61143e394e86d57016d28c79b051
[ "MIT" ]
null
null
null
#!/usr/local/bin/python # -*- coding: utf-8 -*- '''test_Rainbow_pen ''' import sys, os import numpy as np from matplotlib import pyplot as plt from PIL import Image FN_OUT = 'rainbow_pen_320x240.png' if __name__ == '__main__': rainbow_pen(320, 240)
29.590361
73
0.513844
3399c4cddcb4d17b9d9aef1da6a020e45290b8d3
15,780
py
Python
kaggle_tutorial_mod.py
DistrictDataLabs/02-seefish
e39189b37f0e925a2c7e9c34be608cbd8243733e
[ "Apache-2.0" ]
null
null
null
kaggle_tutorial_mod.py
DistrictDataLabs/02-seefish
e39189b37f0e925a2c7e9c34be608cbd8243733e
[ "Apache-2.0" ]
null
null
null
kaggle_tutorial_mod.py
DistrictDataLabs/02-seefish
e39189b37f0e925a2c7e9c34be608cbd8243733e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Jan 16 17:31:42 2015 This is adapted from the kaggle tutorial for the National Data Science Bowl at https://www.kaggle.com/c/datasciencebowl/details/tutorial Any code section lifted from the tutorial will start with # In tutorial [n]. My adaption will start with # Adapted 2/2...
36.443418
80
0.721229
339ad92405feefc3b07ccc7b60e49d33ef95a496
14,810
py
Python
src/k3d.py
maiki/k3x
dd817dbd2baf6eb40a4e7d043f41133ab7e120dc
[ "MIT" ]
188
2020-04-23T07:58:04.000Z
2022-03-30T19:39:29.000Z
src/k3d.py
maiki/k3x
dd817dbd2baf6eb40a4e7d043f41133ab7e120dc
[ "MIT" ]
29
2020-06-08T16:09:08.000Z
2022-03-21T21:52:30.000Z
src/k3d.py
maiki/k3x
dd817dbd2baf6eb40a4e7d043f41133ab7e120dc
[ "MIT" ]
14
2020-06-24T13:56:58.000Z
2022-03-16T12:13:54.000Z
# k3d.py # # Copyright 2020 Alvaro Saurin # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distribu...
32.336245
122
0.576637
339c2850fe3848ca48de45f881ca59f6d9fd81f3
153
py
Python
locale/pot/api/utilities/_autosummary/pyvista-Disc-1.py
tkoyama010/pyvista-doc-translations
23bb813387b7f8bfe17e86c2244d5dd2243990db
[ "MIT" ]
4
2020-08-07T08:19:19.000Z
2020-12-04T09:51:11.000Z
locale/pot/api/utilities/_autosummary/pyvista-Disc-1.py
tkoyama010/pyvista-doc-translations
23bb813387b7f8bfe17e86c2244d5dd2243990db
[ "MIT" ]
19
2020-08-06T00:24:30.000Z
2022-03-30T19:22:24.000Z
locale/pot/api/utilities/_autosummary/pyvista-Disc-1.py
tkoyama010/pyvista-doc-translations
23bb813387b7f8bfe17e86c2244d5dd2243990db
[ "MIT" ]
1
2021-03-09T07:50:40.000Z
2021-03-09T07:50:40.000Z
# Create a disc with 50 points in the circumferential direction. # import pyvista mesh = pyvista.Disc(c_res=50) mesh.plot(show_edges=True, line_width=5)
25.5
64
0.784314
339d94c7e05fc5f397dd56538bd484357362ee32
7,364
py
Python
gamemaster.py
josephko91/checkers-ai
e5963ffebf9a64724604a620d2432c1798505c22
[ "MIT" ]
null
null
null
gamemaster.py
josephko91/checkers-ai
e5963ffebf9a64724604a620d2432c1798505c22
[ "MIT" ]
null
null
null
gamemaster.py
josephko91/checkers-ai
e5963ffebf9a64724604a620d2432c1798505c22
[ "MIT" ]
null
null
null
import os from utility import write_to_output, print_board, color_is_black, board_to_list, print_results from board import Board import time from algorithm import minimax, minimax_alpha_beta, minimax_alpha_beta_final, minimax_alpha_beta_rand from math import sqrt, floor start = time.time() # parse input file with ope...
48.768212
158
0.576589
339e1f9b6047c43589a665151b5f5b6446ffe99f
1,407
py
Python
api/v2/views/image_version_license.py
xuhang57/atmosphere
f53fea2a74ee89ccc8852906799b1d9a7e9178b7
[ "BSD-3-Clause" ]
null
null
null
api/v2/views/image_version_license.py
xuhang57/atmosphere
f53fea2a74ee89ccc8852906799b1d9a7e9178b7
[ "BSD-3-Clause" ]
null
null
null
api/v2/views/image_version_license.py
xuhang57/atmosphere
f53fea2a74ee89ccc8852906799b1d9a7e9178b7
[ "BSD-3-Clause" ]
null
null
null
from django.db.models import Q import django_filters from core.models import ApplicationVersionLicense as ImageVersionLicense from api.v2.serializers.details import ImageVersionLicenseSerializer from api.v2.views.base import AuthModelViewSet
33.5
81
0.734186
339ebff6a47b6fc0d76354525972cdafcdf197e6
216
py
Python
osvolbackup/verbose.py
CCSGroupInternational/osvolbackup
d0d93812a729acdb6c961c6bdd1cc2cb5c9c87f5
[ "Apache-2.0" ]
1
2019-02-27T12:59:49.000Z
2019-02-27T12:59:49.000Z
osvolbackup/verbose.py
CCSGroupInternational/osvolbackup
d0d93812a729acdb6c961c6bdd1cc2cb5c9c87f5
[ "Apache-2.0" ]
4
2019-03-07T09:31:51.000Z
2019-03-12T15:19:40.000Z
osvolbackup/verbose.py
CCSGroupInternational/osvolbackup
d0d93812a729acdb6c961c6bdd1cc2cb5c9c87f5
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function from os import getenv from datetime import datetime
19.636364
38
0.643519
339ef85148fe55aaa28cf0f86e5f3b80b5277dee
1,964
py
Python
pypybox2d/joints/__init__.py
the-mba/Progra-Super-Mario
90dc2a4ba815732b6e92652c7f8bb4a345d25e91
[ "MIT" ]
null
null
null
pypybox2d/joints/__init__.py
the-mba/Progra-Super-Mario
90dc2a4ba815732b6e92652c7f8bb4a345d25e91
[ "MIT" ]
null
null
null
pypybox2d/joints/__init__.py
the-mba/Progra-Super-Mario
90dc2a4ba815732b6e92652c7f8bb4a345d25e91
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # C++ version Copyright (c) 2006-2011 Erin Catto http://www.box2d.org # Python port by Ken Lauer / http://pybox2d.googlecode.com # # This software is provided 'as-is', without any express or implied # warranty. In no event will the authors be held liable for any ...
42.695652
99
0.735234
339fda81b9c470880acae060465b85a254b0eac1
3,939
py
Python
LDPC-library/encode.py
sz3/ProtographLDPC
0fe057a58d94a2c1f8599c6718e24a027113818c
[ "MIT" ]
22
2020-08-27T00:24:30.000Z
2021-12-31T07:11:21.000Z
LDPC-library/encode.py
sz3/ProtographLDPC
0fe057a58d94a2c1f8599c6718e24a027113818c
[ "MIT" ]
1
2021-06-30T16:50:38.000Z
2021-06-30T16:50:38.000Z
LDPC-library/encode.py
sz3/ProtographLDPC
0fe057a58d94a2c1f8599c6718e24a027113818c
[ "MIT" ]
6
2020-11-04T11:11:00.000Z
2021-06-30T16:48:39.000Z
import subprocess import os import argparse import tempfile if __name__ == '__main__': main()
41.904255
101
0.551409
33a406fd3d5662cdfecad65c9a454e308ebff473
274
py
Python
survivethevoid/utils/math_func.py
LMikeH/SurviveTheVoid
e517870d1dca388a54f8f523879c6c8583101a02
[ "bzip2-1.0.6" ]
null
null
null
survivethevoid/utils/math_func.py
LMikeH/SurviveTheVoid
e517870d1dca388a54f8f523879c6c8583101a02
[ "bzip2-1.0.6" ]
null
null
null
survivethevoid/utils/math_func.py
LMikeH/SurviveTheVoid
e517870d1dca388a54f8f523879c6c8583101a02
[ "bzip2-1.0.6" ]
null
null
null
import numpy as np if __name__ == "__main__": a = np.array([0, 1]) print(np.dot(R(180), a))
24.909091
61
0.572993
33a43569f2dc889b1051e353b42c5978e08a2be2
35
py
Python
app/__init__.py
lwalter/flask-angular-starter
31d5468777d429701c8ae0e790458a980fee6837
[ "MIT" ]
13
2016-03-24T03:12:05.000Z
2021-03-15T14:58:36.000Z
app/__init__.py
lwalter/flask-angular-starter
31d5468777d429701c8ae0e790458a980fee6837
[ "MIT" ]
7
2016-03-24T03:20:05.000Z
2017-07-19T03:06:13.000Z
app/__init__.py
lwalter/flask-angular-starter
31d5468777d429701c8ae0e790458a980fee6837
[ "MIT" ]
4
2017-06-22T05:52:08.000Z
2022-02-25T15:25:57.000Z
from app.factory import create_app
17.5
34
0.857143
33a4eb8004a4d73add7bc089b176207822d20abb
39,949
py
Python
darmtbl3.py
TaintTrap/darm
f42b509adabbb3a0fbb87937db33d14c2d213bee
[ "BSD-3-Clause" ]
104
2015-01-01T06:14:40.000Z
2021-12-11T08:05:03.000Z
darmtbl3.py
z4ziggy/darm
f42b509adabbb3a0fbb87937db33d14c2d213bee
[ "BSD-3-Clause" ]
5
2015-02-09T10:16:50.000Z
2016-04-07T12:58:10.000Z
darmtbl3.py
z4ziggy/darm
f42b509adabbb3a0fbb87937db33d14c2d213bee
[ "BSD-3-Clause" ]
18
2015-02-09T02:36:19.000Z
2019-07-19T15:29:20.000Z
from darmtbl2 import Bitsize, Rn, Rm, Rt, Rt2 from darmtbl2 import i, imm3, imm4, imm6, imm8, imm4H, imm4L from darmtbl2 import P, W, D, N, M, cond Vd = Bitsize('Vd', 4, 'Vector Destination Register') Vn = Bitsize('Vn', 4, 'Vector Source Register') Vm = Bitsize('Vm', 4, 'Second Vector Source Register')...
101.136709
132
0.395329
33a5d6a0778311e0740b6ce7a927d2f68fa7baf5
380
py
Python
lang/tags/data_null.py
ghouston/knausj_talon
098bb3e89261b19f4b2eda0ca0696f398c50e931
[ "MIT" ]
5
2020-02-16T13:39:10.000Z
2020-02-19T19:29:56.000Z
lang/tags/data_null.py
ghouston/knausj_talon
098bb3e89261b19f4b2eda0ca0696f398c50e931
[ "MIT" ]
null
null
null
lang/tags/data_null.py
ghouston/knausj_talon
098bb3e89261b19f4b2eda0ca0696f398c50e931
[ "MIT" ]
2
2020-02-19T15:10:44.000Z
2020-02-19T16:55:38.000Z
from talon import Context, Module ctx = Context() mod = Module() mod.tag("code_data_null", desc="Tag for enabling commands relating to null")
20
76
0.665789
33a71005f3058f76ab1ae55200dbe62d59fe1b2f
17,810
py
Python
epidemiology_model.py
sei-international/epidemic-macro-model
9bb4089c1ed031376304d3024b5593525132d0a7
[ "Apache-2.0" ]
4
2021-12-17T18:54:49.000Z
2022-01-03T20:52:17.000Z
epidemiology_model.py
sei-international/epidemic-macro-model
9bb4089c1ed031376304d3024b5593525132d0a7
[ "Apache-2.0" ]
null
null
null
epidemiology_model.py
sei-international/epidemic-macro-model
9bb4089c1ed031376304d3024b5593525132d0a7
[ "Apache-2.0" ]
null
null
null
from numpy import array as np_array, zeros as np_zeros, sum as np_sum, empty as np_empty, \ amax as np_amax, interp as np_interp, ones as np_ones, tile as np_tile, isnan as np_isnan import yaml from seir_model import SEIR_matrix from common import Window, get_datetime, timesteps_between_dates, get_datetime_arra...
56.719745
178
0.607805
33a772f892d4ed50cf326d5af75052977fcc4c7b
695
py
Python
body/tests/test_medicine.py
dylanjboyd/bodytastic
ee2299ba523c8c6b627028d70ab32b6da97cb2ea
[ "MIT" ]
null
null
null
body/tests/test_medicine.py
dylanjboyd/bodytastic
ee2299ba523c8c6b627028d70ab32b6da97cb2ea
[ "MIT" ]
81
2022-03-04T23:46:02.000Z
2022-03-19T13:06:46.000Z
body/tests/test_medicine.py
dylanjboyd/bodytastic
ee2299ba523c8c6b627028d70ab32b6da97cb2ea
[ "MIT" ]
null
null
null
from body.tests.login_test_case import LoginTestCase from body.tests.model_helpers import create_ledger_entry, create_medicine from freezegun import freeze_time from django.utils.timezone import make_aware, datetime
38.611111
95
0.755396
33a790e4cc50cc09ac9352f7aad0bd45b97fcd11
84
py
Python
src/apps/users/forms/__init__.py
sanderland/katago-server
6414fab080d007c05068a06ff4f25907b92848bd
[ "MIT" ]
27
2020-05-03T11:01:27.000Z
2022-03-17T05:33:10.000Z
src/apps/users/forms/__init__.py
sanderland/katago-server
6414fab080d007c05068a06ff4f25907b92848bd
[ "MIT" ]
54
2020-05-09T01:18:41.000Z
2022-01-22T10:31:15.000Z
src/apps/users/forms/__init__.py
sanderland/katago-server
6414fab080d007c05068a06ff4f25907b92848bd
[ "MIT" ]
9
2020-09-29T11:31:32.000Z
2022-03-09T01:37:50.000Z
from .user_change import UserChangeForm from .user_creation import UserCreationForm
28
43
0.880952
33a9396a5c748b360eebc18de6c808b8faa43521
20,818
py
Python
bqskit/utils/test/types.py
BQSKit/bqskit
8471f28299a7fb49a2d9d82b24e49c331c9dec22
[ "BSD-3-Clause-LBNL" ]
13
2021-05-26T21:32:26.000Z
2022-03-15T17:48:10.000Z
bqskit/utils/test/types.py
BQSKit/bqskit
8471f28299a7fb49a2d9d82b24e49c331c9dec22
[ "BSD-3-Clause-LBNL" ]
20
2021-05-26T20:17:15.000Z
2022-02-27T20:04:10.000Z
bqskit/utils/test/types.py
BQSKit/bqskit
8471f28299a7fb49a2d9d82b24e49c331c9dec22
[ "BSD-3-Clause-LBNL" ]
2
2021-10-05T16:00:47.000Z
2021-10-08T01:30:06.000Z
"""This module contains functions to generate strategies from annotations.""" from __future__ import annotations import collections import inspect import sys from itertools import chain from itertools import combinations from typing import Any from typing import Callable from typing import Iterable from typing import ...
35.893103
80
0.619944
33a977da8d2c47f04abb08e18a45125c2af8f923
3,600
py
Python
reframechecks/mpip/mpip.py
reframe-hpc/hpctools
ad3efe478334fabb7f64aa3d1566c88e4c488aaf
[ "BSD-3-Clause" ]
3
2020-02-18T12:48:08.000Z
2021-02-06T01:43:30.000Z
reframechecks/mpip/mpip.py
reframe-hpc/hpctools
ad3efe478334fabb7f64aa3d1566c88e4c488aaf
[ "BSD-3-Clause" ]
5
2020-03-28T11:59:57.000Z
2020-08-28T08:46:02.000Z
reframechecks/mpip/mpip.py
reframe-hpc/hpctools
ad3efe478334fabb7f64aa3d1566c88e4c488aaf
[ "BSD-3-Clause" ]
3
2020-03-17T16:10:56.000Z
2020-07-10T06:24:34.000Z
# Copyright 2019-2021 Swiss National Supercomputing Centre (CSCS/ETH Zurich) # HPCTools Project Developers. See the top-level LICENSE file for details. # # SPDX-License-Identifier: BSD-3-Clause import os import sys import reframe as rfm import reframe.utility.sanity as sn sys.path.append(os.path.abspath(os.path.join(o...
34.951456
79
0.570833
33a9e48d845125b9644014be228bb6ef28ca1951
4,743
py
Python
Forward_Warp/python/forward_warp_python.py
hologerry/Forward-Warp
82a32a372383b3c69f9666cb5b8189dbfb05d328
[ "MIT" ]
81
2019-07-04T20:51:34.000Z
2022-03-26T15:58:42.000Z
Forward_Warp/python/forward_warp_python.py
wbhu/Forward-Warp
90e7e32f2c0e666ffc029b7b274b30b3a45cd3ce
[ "MIT" ]
9
2020-05-04T04:59:16.000Z
2021-12-21T19:06:31.000Z
Forward_Warp/python/forward_warp_python.py
wbhu/Forward-Warp
90e7e32f2c0e666ffc029b7b274b30b3a45cd3ce
[ "MIT" ]
9
2019-09-04T02:09:12.000Z
2021-11-27T09:31:49.000Z
import torch from torch.nn import Module, Parameter from torch.autograd import Function
46.5
81
0.356525
33aa02868cbd8dfb15a12fdd973d56d5d7e99fb1
10,890
py
Python
slingen/src/algogen/Algorithm.py
danielesgit/slingen
e7cfee7f6f2347b57eb61a077746c9309a85411c
[ "BSD-3-Clause" ]
23
2018-03-13T07:52:26.000Z
2022-03-24T02:32:00.000Z
SRC/Algorithm.py
dfabregat/Cl1ck
d9ae627f0616dc23b1f98ff41ce94f43926bb2b0
[ "BSD-3-Clause" ]
2
2018-09-28T18:29:25.000Z
2019-02-20T13:22:19.000Z
SRC/Algorithm.py
dfabregat/Cl1ck
d9ae627f0616dc23b1f98ff41ce94f43926bb2b0
[ "BSD-3-Clause" ]
3
2018-06-13T13:51:57.000Z
2020-01-11T14:47:02.000Z
import itertools import Partitioning # Flattens a matrix of matrices resulting from a repartitioning
39.314079
118
0.485399
33aa970f90cce46880eed9d5a6bf196cf7546cbc
939
py
Python
NbSe2/PBE-0.01/5-epw/epc_plot.py
sinansevim/EBT617E
0907846e09173b419dfb6c3a5eae20c3ef8548bb
[ "MIT" ]
1
2021-03-12T13:16:39.000Z
2021-03-12T13:16:39.000Z
NbSe2/PBE-0.01/5-epw/epc_plot.py
sinansevim/EBT617E
0907846e09173b419dfb6c3a5eae20c3ef8548bb
[ "MIT" ]
null
null
null
NbSe2/PBE-0.01/5-epw/epc_plot.py
sinansevim/EBT617E
0907846e09173b419dfb6c3a5eae20c3ef8548bb
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.mlab as mlab import matplotlib.pyplot as plt import matplotlib.gridspec as gs import sys data = np.loadtxt('NbSe2.freq.gp') symmetryfile = 'plotband.out' lbd = np.loadtxt("lambda.dat") lbd_val = np.where(lbd<1 , lbd, 1) x=np.tile(data.T[0],9) val = lbd_val.T[1:].reshape(-1) y=data.T...
28.454545
74
0.668797
33ac31110619eeecf53e6d049d77405ba061c204
341
py
Python
CA117/Lab_5/numcomps_32.py
PRITI1999/OneLineWonders
91a7368e0796e5a3b5839c9165f9fbe5460879f5
[ "MIT" ]
6
2016-02-04T00:15:20.000Z
2019-10-13T13:53:16.000Z
CA117/Lab_5/numcomps_32.py
PRITI1999/OneLineWonders
91a7368e0796e5a3b5839c9165f9fbe5460879f5
[ "MIT" ]
2
2016-03-14T04:01:36.000Z
2019-10-16T12:45:34.000Z
CA117/Lab_5/numcomps_32.py
PRITI1999/OneLineWonders
91a7368e0796e5a3b5839c9165f9fbe5460879f5
[ "MIT" ]
10
2016-02-09T14:38:32.000Z
2021-05-25T08:16:26.000Z
print(("Multiples of {}: {}\n"*6).format("3",[n for n in range(1,31)if not n%3],"3 squared",[n**2for n in range(1,31)if not n%3],"4 doubled",[n*2for n in range(1,31)if not n%4],"3 or 4",[n for n in range(1,31)if not(n%4and n%3)],"3 and 4",[n for n in range(1,31)if not(n%4or n%3)],"3 replaced",[n%3and n or'X'for n in ra...
170.5
340
0.609971
33ac8b55bf9e88be389ec358327a0af6df0dcc61
5,594
py
Python
pydeconz/group.py
Lokaltog/deconz
88c726c0ed4c320af3caa82f2c2fb60937ea186a
[ "MIT" ]
null
null
null
pydeconz/group.py
Lokaltog/deconz
88c726c0ed4c320af3caa82f2c2fb60937ea186a
[ "MIT" ]
null
null
null
pydeconz/group.py
Lokaltog/deconz
88c726c0ed4c320af3caa82f2c2fb60937ea186a
[ "MIT" ]
null
null
null
"""Python library to connect deCONZ and Home Assistant to work together.""" import logging from .light import DeconzLightBase _LOGGER = logging.getLogger(__name__) class DeconzScene: """deCONZ scene representation. Dresden Elektroniks documentation of scenes in deCONZ http://dresden-elektronik.github...
29.442105
78
0.604934
33ad3f8d85b0ae17f8d1f68deb1a77ffc336a163
155
py
Python
nocolon_main.py
paradoxxxzero/nocolon
80bffe09e200b148cd836fd8289c59f2cd33719b
[ "BSD-3-Clause" ]
73
2015-05-08T09:22:03.000Z
2021-05-20T15:17:18.000Z
nocolon_main.py
paradoxxxzero/nocolon
80bffe09e200b148cd836fd8289c59f2cd33719b
[ "BSD-3-Clause" ]
3
2017-05-12T20:57:10.000Z
2017-05-15T10:10:30.000Z
nocolon_main.py
paradoxxxzero/nocolon
80bffe09e200b148cd836fd8289c59f2cd33719b
[ "BSD-3-Clause" ]
5
2016-10-21T09:29:39.000Z
2017-11-15T19:16:29.000Z
# Import the encoding import nocolon # Now you can import files with the nocolon encoding: from nocolon_test import nocolon_function nocolon_function(4)
19.375
53
0.819355
33adb93bec718e8a93becbae4939a6d055886757
1,033
py
Python
yarlp/tests/agent_tests/test_ddqn.py
btaba/yarlp
e6bc70afe32f8617f56180d60d6a100c83868119
[ "MIT" ]
12
2018-02-26T05:00:24.000Z
2020-01-07T03:04:47.000Z
yarlp/tests/agent_tests/test_ddqn.py
btaba/yarlp
e6bc70afe32f8617f56180d60d6a100c83868119
[ "MIT" ]
6
2018-10-23T17:43:57.000Z
2022-02-10T00:00:24.000Z
yarlp/tests/agent_tests/test_ddqn.py
btaba/yarlp
e6bc70afe32f8617f56180d60d6a100c83868119
[ "MIT" ]
1
2018-08-20T23:47:41.000Z
2018-08-20T23:47:41.000Z
""" Regression tests for the REINFORCE agent on OpenAI gym environments """ import pytest import numpy as np import shutil from yarlp.utils.env_utils import NormalizedGymEnv from yarlp.agent.ddqn_agent import DDQNAgent env = NormalizedGymEnv( 'PongNoFrameskip-v4', is_atari=True )
21.978723
71
0.648596
33aee20a7b69a67ee353d635818abf32c9a23996
555
py
Python
arbeitsplan/migrations/0009_mitglied_arbeitslast.py
hkarl/svpb
29aab0065ff69c7c4d52812508167514d635cab9
[ "Apache-2.0" ]
3
2015-02-20T14:53:17.000Z
2020-12-01T19:29:14.000Z
arbeitsplan/migrations/0009_mitglied_arbeitslast.py
hkarl/svpb
29aab0065ff69c7c4d52812508167514d635cab9
[ "Apache-2.0" ]
67
2015-01-06T19:48:59.000Z
2022-03-20T16:56:22.000Z
arbeitsplan/migrations/0009_mitglied_arbeitslast.py
hkarl/svpb
29aab0065ff69c7c4d52812508167514d635cab9
[ "Apache-2.0" ]
2
2015-12-07T09:21:10.000Z
2015-12-30T18:36:53.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations
26.428571
159
0.646847
33aefac32f09c23801a6116bba41fc7dfac6eba4
789
py
Python
fedireads/activitypub/__init__.py
johnbartholomew/bookwyrm
a6593eced7db88f0a68bd19a0e6ba441bf1053c3
[ "CC0-1.0" ]
null
null
null
fedireads/activitypub/__init__.py
johnbartholomew/bookwyrm
a6593eced7db88f0a68bd19a0e6ba441bf1053c3
[ "CC0-1.0" ]
null
null
null
fedireads/activitypub/__init__.py
johnbartholomew/bookwyrm
a6593eced7db88f0a68bd19a0e6ba441bf1053c3
[ "CC0-1.0" ]
null
null
null
''' bring activitypub functions into the namespace ''' from .actor import get_actor from .book import get_book, get_author, get_shelf from .create import get_create, get_update from .follow import get_following, get_followers from .follow import get_follow_request, get_unfollow, get_accept, get_reject from .outbox impo...
46.411765
76
0.844106
33b07a2a4560968ed7e8bf918e25e34e366baaa5
8,110
py
Python
example.py
DesmondTMB/i3pyblocks
4732340ba45bf6b6b7b5bd3ff3c32af3796e7fa3
[ "MIT" ]
15
2020-09-19T20:18:34.000Z
2021-06-12T15:16:02.000Z
example.py
DesmondTMB/i3pyblocks
4732340ba45bf6b6b7b5bd3ff3c32af3796e7fa3
[ "MIT" ]
141
2019-08-13T23:38:47.000Z
2021-11-10T16:20:34.000Z
example.py
DesmondTMB/i3pyblocks
4732340ba45bf6b6b7b5bd3ff3c32af3796e7fa3
[ "MIT" ]
2
2021-05-24T17:04:35.000Z
2021-11-09T00:43:13.000Z
#!/usr/bin/env python3 import asyncio import logging import signal from pathlib import Path import psutil from i3pyblocks import Runner, types, utils from i3pyblocks.blocks import ( # shell, datetime, dbus, http, i3ipc, inotify, ps, pulse, x11, ) # Configure logging, so we can have ...
34.219409
87
0.606165
33b1e4daad97a94cb573d3a29eb181822c6e57a2
9,131
py
Python
context_nmt/pipelines/context_indicators_generator.py
jesa7955/context-translation
3cb1f4fdcf5a6829eea02d6008c4c4d7ba5ad993
[ "MIT" ]
2
2020-01-22T05:18:19.000Z
2021-11-14T17:18:46.000Z
context_nmt/pipelines/context_indicators_generator.py
jesa7955/context-translation
3cb1f4fdcf5a6829eea02d6008c4c4d7ba5ad993
[ "MIT" ]
1
2020-03-31T11:03:22.000Z
2020-03-31T11:03:22.000Z
context_nmt/pipelines/context_indicators_generator.py
jesa7955/context-translation
3cb1f4fdcf5a6829eea02d6008c4c4d7ba5ad993
[ "MIT" ]
null
null
null
import collections import logging import json import os import luigi import gokart import tqdm import torch import sentencepiece as spm import sacrebleu import MeCab from fairseq.models.transformer import TransformerModel from fairseq.data import LanguagePairDataset from context_nmt.pipelines.conversation_dataset_mer...
42.868545
88
0.54419
33b33555cc6216929a203498dda0d15a42f493e0
855
py
Python
log_task_id.py
Sendhub/flashk_util
fe42c117be6a9e9655e38cd48a3104b6144873ba
[ "BSD-3-Clause" ]
null
null
null
log_task_id.py
Sendhub/flashk_util
fe42c117be6a9e9655e38cd48a3104b6144873ba
[ "BSD-3-Clause" ]
1
2016-01-20T22:13:53.000Z
2016-01-20T22:13:53.000Z
log_task_id.py
Sendhub/flashk_util
fe42c117be6a9e9655e38cd48a3104b6144873ba
[ "BSD-3-Clause" ]
null
null
null
import logging from celery._state import get_current_task
27.580645
74
0.612865
33b43ed36a9638956d846bca8d46fb665ecc2a68
2,295
py
Python
e/mail-relay/web/apps/localized_mail/models.py
zhouli121018/nodejsgm
0ccbc8acf61badc812f684dd39253d55c99f08eb
[ "MIT" ]
null
null
null
e/mail-relay/web/apps/localized_mail/models.py
zhouli121018/nodejsgm
0ccbc8acf61badc812f684dd39253d55c99f08eb
[ "MIT" ]
18
2020-06-05T18:17:40.000Z
2022-03-11T23:25:21.000Z
e/mail-relay/web/apps/localized_mail/models.py
zhouli121018/nodejsgm
0ccbc8acf61badc812f684dd39253d55c99f08eb
[ "MIT" ]
null
null
null
#coding=utf-8 import os from django.db import models from django.contrib.auth.models import User from django.conf import settings from apps.core.models import Customer CHECK_RESULT = ( ('', '--'), ('high_risk', u''), ('sender_blacklist', u''), ('keyword_blacklist', u''), ('subject_blacklist', u'')...
38.898305
119
0.67756
33b740adf83b98dff3bbdd2ad1fbbad7dd39228a
2,691
py
Python
src/softfab/pages/InspectDone.py
boxingbeetle/softfab
0ecf899f66a1fb046ee869cbfa3b5374b3f8aa14
[ "BSD-3-Clause" ]
20
2019-02-07T17:03:04.000Z
2020-03-16T20:45:19.000Z
src/softfab/pages/InspectDone.py
boxingbeetle/softfab
0ecf899f66a1fb046ee869cbfa3b5374b3f8aa14
[ "BSD-3-Clause" ]
36
2019-02-11T08:57:16.000Z
2020-09-29T05:32:08.000Z
src/softfab/pages/InspectDone.py
boxingbeetle/softfab
0ecf899f66a1fb046ee869cbfa3b5374b3f8aa14
[ "BSD-3-Clause" ]
null
null
null
# SPDX-License-Identifier: BSD-3-Clause from typing import ClassVar, Mapping, cast from softfab.ControlPage import ControlPage from softfab.Page import InvalidRequest, PageProcessor from softfab.pageargs import DictArg, EnumArg, StrArg from softfab.pagelinks import TaskIdArgs from softfab.request import Request from ...
36.364865
79
0.623932
33b8da2d72ef09ad6eef64de8e3cb74d42aa9d37
414
py
Python
src/uwds3_core/estimation/dense_optical_flow_estimator.py
underworlds-robot/uwds3_core
3aec39f83ec5ba2c0b70485aa23bf6eeaedeeda7
[ "MIT" ]
1
2021-06-08T02:55:15.000Z
2021-06-08T02:55:15.000Z
src/uwds3_core/estimation/dense_optical_flow_estimator.py
underworlds-robot/uwds3_core
3aec39f83ec5ba2c0b70485aa23bf6eeaedeeda7
[ "MIT" ]
null
null
null
src/uwds3_core/estimation/dense_optical_flow_estimator.py
underworlds-robot/uwds3_core
3aec39f83ec5ba2c0b70485aa23bf6eeaedeeda7
[ "MIT" ]
null
null
null
import cv2
27.6
102
0.644928
33bb74b917e15d0d3580148ef539ee108a577454
2,071
py
Python
2020/day-22/day-22.py
mrMetalWood/advent-of-code
b850aa50474c622e23e924c5da53775b4cae05b2
[ "MIT" ]
1
2018-12-02T12:38:31.000Z
2018-12-02T12:38:31.000Z
2020/day-22/day-22.py
mrMetalWood/advent-of-code
b850aa50474c622e23e924c5da53775b4cae05b2
[ "MIT" ]
7
2020-07-16T14:03:31.000Z
2020-12-02T10:46:49.000Z
2020/day-22/day-22.py
mrMetalWood/advent-of-code
b850aa50474c622e23e924c5da53775b4cae05b2
[ "MIT" ]
null
null
null
import os from copy import deepcopy with open(os.path.join(os.path.dirname(__file__), "input.txt"), "r") as file: lines = [l.strip() for l in file.readlines()] p1 = list(reversed([int(i) for i in lines[1:26]])) p2 = list(reversed([int(i) for i in lines[28:]])) print(f"Part 1: {part1(deepcopy(p1), deepc...
27.25
85
0.522453
33bd39e35c4992a15a6d443f02ff02fed9014dd8
2,075
py
Python
Exercise05/5-30.py
ywyz/IntroducingToProgrammingUsingPython
614d59eacb7e37aece871a00f7d1518f7de88708
[ "Apache-2.0" ]
null
null
null
Exercise05/5-30.py
ywyz/IntroducingToProgrammingUsingPython
614d59eacb7e37aece871a00f7d1518f7de88708
[ "Apache-2.0" ]
null
null
null
Exercise05/5-30.py
ywyz/IntroducingToProgrammingUsingPython
614d59eacb7e37aece871a00f7d1518f7de88708
[ "Apache-2.0" ]
null
null
null
''' @Date: 2019-11-02 09:19:19 @Author: ywyz @LastModifiedBy: ywyz @Github: https://github.com/ywyz @LastEditors: ywyz @LastEditTime: 2019-11-02 10:13:44 ''' year = eval(input("Enter the year: ")) day = eval(input("Enter the day of the week: ")) for months in range(1, 13): if months == 1: month = "January"...
26.948052
68
0.52
33be9763c347a4744c14215a01a14f94308620b5
587
py
Python
insights_messaging/downloaders/s3.py
dpensi/insights-core-messaging
a964cecdf5cbb57407dae9e9208a31fc5e9318e4
[ "Apache-2.0" ]
6
2019-12-12T14:19:30.000Z
2020-04-08T16:20:04.000Z
insights_messaging/downloaders/s3.py
dpensi/insights-core-messaging
a964cecdf5cbb57407dae9e9208a31fc5e9318e4
[ "Apache-2.0" ]
14
2020-01-27T17:04:39.000Z
2021-03-16T15:18:30.000Z
insights_messaging/downloaders/s3.py
dpensi/insights-core-messaging
a964cecdf5cbb57407dae9e9208a31fc5e9318e4
[ "Apache-2.0" ]
13
2019-12-16T09:32:38.000Z
2021-05-05T12:39:38.000Z
import shutil from contextlib import contextmanager from tempfile import NamedTemporaryFile from s3fs import S3FileSystem
26.681818
69
0.647359
33bea67e17e2e48816f3acbadb4afec665fa95a1
142
py
Python
Code/hypers.py
taoqi98/KIM
dc897026d5a639a9a554d06ac036b121fcbcf6a0
[ "MIT" ]
7
2021-08-13T12:43:17.000Z
2022-03-24T11:25:52.000Z
Code/hypers.py
JulySinceAndrew/KIM-SIGIR-2021
87b1c21f79a5389cc4a0d122e7ded5f63a63da28
[ "MIT" ]
5
2021-07-20T07:27:05.000Z
2022-02-25T07:28:39.000Z
Code/hypers.py
JulySinceAndrew/KIM-SIGIR-2021
87b1c21f79a5389cc4a0d122e7ded5f63a63da28
[ "MIT" ]
null
null
null
MAX_SENTENCE = 30 MAX_ALL = 50 MAX_SENT_LENGTH=MAX_SENTENCE MAX_SENTS=MAX_ALL max_entity_num = 10 num = 100 num1 = 200 num2 = 100 npratio=4
11.833333
28
0.774648
33bf14c77a779be90d64a6d8759da4a08a0088fa
1,022
py
Python
ai-control/mirror.py
futurice/maximum-aittack
6b39e7987f6c142cc80f186043c4348f01743850
[ "MIT" ]
null
null
null
ai-control/mirror.py
futurice/maximum-aittack
6b39e7987f6c142cc80f186043c4348f01743850
[ "MIT" ]
null
null
null
ai-control/mirror.py
futurice/maximum-aittack
6b39e7987f6c142cc80f186043c4348f01743850
[ "MIT" ]
null
null
null
import os, json from PIL import Image import numpy as np from skimage import io basePath = './log/log_joku/' json_files = [pos_json for pos_json in os.listdir(basePath) if pos_json.endswith('.json')] for file in json_files: if file != 'meta.json': #print(file) with open(basePath + file) as f: ...
37.851852
90
0.572407
33c1247fa87d16457ea55bc1e3f8ebb9f2eb5bf2
21
py
Python
portfolios/trader/__init__.py
ahwkuepper/portfolio
4ab6eebbb36c6064d58df62dbe931ead3b297be4
[ "BSD-3-Clause" ]
4
2020-08-18T09:52:37.000Z
2021-03-26T19:59:03.000Z
portfolios/trader/__init__.py
ahwkuepper/portfolio
4ab6eebbb36c6064d58df62dbe931ead3b297be4
[ "BSD-3-Clause" ]
4
2019-07-06T17:48:46.000Z
2020-05-11T01:40:18.000Z
portfolios/trader/__init__.py
ahwkuepper/portfolio
4ab6eebbb36c6064d58df62dbe931ead3b297be4
[ "BSD-3-Clause" ]
2
2019-02-28T08:02:47.000Z
2019-07-09T04:23:23.000Z
__all__ = ["orders"]
10.5
20
0.619048
33c380aba8f0a3a85e233adf8c61cab373192d50
5,474
py
Python
gym_holdem/holdem/player.py
pokeraigym/PokerAI
8f768704aaacf40c39af724c4d3cc1c68db58b00
[ "MIT" ]
null
null
null
gym_holdem/holdem/player.py
pokeraigym/PokerAI
8f768704aaacf40c39af724c4d3cc1c68db58b00
[ "MIT" ]
null
null
null
gym_holdem/holdem/player.py
pokeraigym/PokerAI
8f768704aaacf40c39af724c4d3cc1c68db58b00
[ "MIT" ]
null
null
null
from gym_holdem.holdem.bet_round import BetRound from gym_holdem.holdem.poker_rule_violation_exception import PokerRuleViolationException from pokereval_cactus import Card
33.175758
183
0.598465
33c4d9cd799c0848aed6273bf409593aceac5368
1,441
py
Python
app.py
abdur75648/ai-image-generator
82b10d1360efb2af9afbc580744eca4d9763c687
[ "MIT" ]
null
null
null
app.py
abdur75648/ai-image-generator
82b10d1360efb2af9afbc580744eca4d9763c687
[ "MIT" ]
null
null
null
app.py
abdur75648/ai-image-generator
82b10d1360efb2af9afbc580744eca4d9763c687
[ "MIT" ]
1
2022-03-05T20:48:08.000Z
2022-03-05T20:48:08.000Z
from flask import Flask, request, send_from_directory, redirect, send_file, render_template import os,cv2 import neuralStyleProcess app = Flask(__name__) APP_ROOT = os.path.dirname(os.path.abspath(__file__)) # This function takes the parameter name <filename> if __name__ == '__main__': app.run()
30.020833
91
0.746704
33c563ef96dc01994469a37d5d17819ff8a430d8
9,678
py
Python
src/mappings_validator.py
center-for-threat-informed-defense/attack_to_veris
e5305debf7b5eb35704628dd02d3ce0d45ee0e32
[ "Apache-2.0" ]
35
2021-08-28T05:11:11.000Z
2022-02-24T05:50:59.000Z
src/mappings_validator.py
center-for-threat-informed-defense/attack_to_veris
e5305debf7b5eb35704628dd02d3ce0d45ee0e32
[ "Apache-2.0" ]
1
2021-09-16T00:32:19.000Z
2021-09-16T00:35:59.000Z
src/mappings_validator.py
center-for-threat-informed-defense/attack_to_veris
e5305debf7b5eb35704628dd02d3ce0d45ee0e32
[ "Apache-2.0" ]
1
2021-12-07T13:10:12.000Z
2021-12-07T13:10:12.000Z
# Copyright (c) 2021, MITRE Engenuity. Approved for public release. # See LICENSE for complete terms. import argparse import json import pathlib import numpy import requests from src.create_mappings import get_sheets, get_sheet_by_name def get_mappings_file(mappings_location): """Returns the ATT&CK VERIS mapp...
39.82716
117
0.646828
33c5b1377d8bbccb253528d320f78fa3c49f64f2
2,015
py
Python
cases/config_d1_tno_art.py
micstein89/cosmo-emission-processing
7628b6354abb80c7c69b1f13ac3d1757f0455272
[ "CC-BY-4.0" ]
null
null
null
cases/config_d1_tno_art.py
micstein89/cosmo-emission-processing
7628b6354abb80c7c69b1f13ac3d1757f0455272
[ "CC-BY-4.0" ]
null
null
null
cases/config_d1_tno_art.py
micstein89/cosmo-emission-processing
7628b6354abb80c7c69b1f13ac3d1757f0455272
[ "CC-BY-4.0" ]
null
null
null
# "constant" paths and values for TNO, regular lat/lon # for MeteoTest Swiss inventory, use calculated regular domain in the code import os import time from emiproc.grids import COSMOGrid, TNOGrid # inventory inventory = 'TNO' # model either "cosmo-art" or "cosmo-ghg" (affects the output units) model = 'cosmo-art' ...
23.988095
87
0.649132
33c69f7358ad122b465adeb2350740a2a675b997
45,876
py
Python
spytest/apis/system/ztp.py
shubav/sonic-mgmt
0ff71b907a55489bb4ed7d17b1682380fd459bf2
[ "Apache-2.0" ]
132
2016-10-19T12:34:44.000Z
2022-03-16T09:00:39.000Z
spytest/apis/system/ztp.py
shubav/sonic-mgmt
0ff71b907a55489bb4ed7d17b1682380fd459bf2
[ "Apache-2.0" ]
3,152
2016-09-21T23:05:58.000Z
2022-03-31T23:29:08.000Z
spytest/apis/system/ztp.py
shubav/sonic-mgmt
0ff71b907a55489bb4ed7d17b1682380fd459bf2
[ "Apache-2.0" ]
563
2016-09-20T01:00:15.000Z
2022-03-31T22:43:54.000Z
# This file contains the list of API's for operations on ZTP # @author : Chaitanya Vella (chaitanya-vella.kumar@broadcom.com) from spytest import st import apis.system.basic as basic_obj import utilities.utils as utils_obj import apis.system.switch_configuration as switch_conf_obj import apis.system.interface as intf_o...
48.960512
180
0.637545
33c6fc7c6a43f33fca1acd3e80bf340a6e154be0
2,881
py
Python
pisces/algid.py
danieljohnlewis/pisces
7e7ed9c87692c01b591e14db73a3a7047992e91c
[ "MIT" ]
1
2021-02-03T23:05:19.000Z
2021-02-03T23:05:19.000Z
pisces/algid.py
danieljohnlewis/pisces
7e7ed9c87692c01b591e14db73a3a7047992e91c
[ "MIT" ]
null
null
null
pisces/algid.py
danieljohnlewis/pisces
7e7ed9c87692c01b591e14db73a3a7047992e91c
[ "MIT" ]
1
2017-04-05T16:11:11.000Z
2017-04-05T16:11:11.000Z
"""Handle for X.509 AlgorithmIdentifier objects This module understands a minimal number of OIDS, just enough X.509 stuff needed for PKCS 1 & 7. """ import types from pisces import asn1 oid_dsa = asn1.OID((1, 2, 840, 10040, 4, 1)) oid_dsa_sha1 = asn1.OID((1, 2, 840, 10040, 4, 3)) oid_rsa = asn1.OID((1, 2, 840, 1135...
31.659341
132
0.596668
33c729c649ab0cb56e1862e14fe0847fbb9b4398
230
py
Python
exercicios/Lista3/Q31.py
AlexandrePeBrito/CursoUdemyPython
3de58cb30c9f333b32078309847179ff3f9d7e22
[ "MIT" ]
null
null
null
exercicios/Lista3/Q31.py
AlexandrePeBrito/CursoUdemyPython
3de58cb30c9f333b32078309847179ff3f9d7e22
[ "MIT" ]
null
null
null
exercicios/Lista3/Q31.py
AlexandrePeBrito/CursoUdemyPython
3de58cb30c9f333b32078309847179ff3f9d7e22
[ "MIT" ]
null
null
null
#Faa um programa que calcule e escreva o valor de S # S=1/1+3/2+5/3+7/4...99/50 u=1 valores=[] for c in range(1,100): if(c%2==1): valores.append(round(c/u,2)) u+=1 print(valores) print(f"S = {sum(valores)}")
19.166667
52
0.586957
33c94b4ecccf7fc17e12956a7c221ae80de3cbe0
3,138
py
Python
examples/for_debug.py
gottadiveintopython/kivyx.uix.drawer
a4de9c8ee65892c16278499f1134b93678a5a01b
[ "MIT" ]
null
null
null
examples/for_debug.py
gottadiveintopython/kivyx.uix.drawer
a4de9c8ee65892c16278499f1134b93678a5a01b
[ "MIT" ]
null
null
null
examples/for_debug.py
gottadiveintopython/kivyx.uix.drawer
a4de9c8ee65892c16278499f1134b93678a5a01b
[ "MIT" ]
null
null
null
from kivy.app import runTouchApp from kivy.properties import StringProperty from kivy.uix.button import Button from kivy.uix.boxlayout import BoxLayout from kivy.uix.gridlayout import GridLayout from kivy.lang import Builder from kivyx.uix.drawer import KXDrawer root = Builder.load_string(r''' <Numpad>: cols: ...
24.904762
66
0.500319
33c9781fcf45373b7d579f4efc46dbb1d61f2088
2,781
py
Python
nlppcfg.py
mrlongzhang/classicnlp
99b8e7a103c386d8950536eae45a1fa7291968df
[ "MIT" ]
null
null
null
nlppcfg.py
mrlongzhang/classicnlp
99b8e7a103c386d8950536eae45a1fa7291968df
[ "MIT" ]
null
null
null
nlppcfg.py
mrlongzhang/classicnlp
99b8e7a103c386d8950536eae45a1fa7291968df
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ A Probabiltics Context Free Grammer (PCFG) Parser using Python. This code implemented a weighted graph search @author: Zhang Long """ import codecs from collections import defaultdict import math f_grammer=".\\test\\08-grammar.txt" nonterm=[] preterm=defaultdict(list) gramm...
30.56044
107
0.51708
33c9c1f3e9820356f08403598edffbaf83060a2e
2,876
py
Python
generator.py
elieahd/data-analytics-kmeans
df44da132cf0de00d870b8865781f4fd78113cfa
[ "MIT" ]
2
2020-10-09T20:13:00.000Z
2021-06-06T09:18:33.000Z
generator.py
elieahd/data-analytics-kmeans
df44da132cf0de00d870b8865781f4fd78113cfa
[ "MIT" ]
null
null
null
generator.py
elieahd/data-analytics-kmeans
df44da132cf0de00d870b8865781f4fd78113cfa
[ "MIT" ]
2
2018-06-06T08:33:03.000Z
2018-06-06T09:00:47.000Z
# spark-submit generator.py out 9 3 2 10 # imports import sys import random import numpy from pyspark import SparkContext from pyspark.mllib.random import RandomRDDs # constants MIN_MEAN_VALUE = 0 MAX_MEAN_VALUE = 100 STEPS = 0.1 # methods # main code if len(sys.argv) != 6: print("6 arguments are needed :") ...
37.842105
189
0.705494
33cab9736c2b33f9dc7ebf54dc2179461c98e762
1,263
py
Python
testtool.py
andreasscherbaum/pg_commitfest_testtool
4e40ef441401faddc34861a92f41a9ca60c7560c
[ "BSD-3-Clause" ]
1
2017-10-26T13:52:53.000Z
2017-10-26T13:52:53.000Z
testtool.py
andreasscherbaum/pg_commitfest_testtool
4e40ef441401faddc34861a92f41a9ca60c7560c
[ "BSD-3-Clause" ]
null
null
null
testtool.py
andreasscherbaum/pg_commitfest_testtool
4e40ef441401faddc34861a92f41a9ca60c7560c
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # # test tool for PostgreSQL Commitfest website # # written by: Andreas Scherbaum <ads@pgug.de> # import re import os import sys import logging import tempfile import atexit import shutil import time import subprocess from subprocess import Popen import socket import sqlite3 import datetime from ...
16.402597
71
0.699129
33ccafc8a5799e67020bb35fde701098ce38149a
856
py
Python
coronavirus/common/user_agent.py
StevenHuang2020/WebSpider
40ab36416e061da3eb98a3174f18f50260b2e2d3
[ "MIT" ]
null
null
null
coronavirus/common/user_agent.py
StevenHuang2020/WebSpider
40ab36416e061da3eb98a3174f18f50260b2e2d3
[ "MIT" ]
null
null
null
coronavirus/common/user_agent.py
StevenHuang2020/WebSpider
40ab36416e061da3eb98a3174f18f50260b2e2d3
[ "MIT" ]
null
null
null
import random from fake_useragent import UserAgent agent_list = '''Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_8; en-us) AppleWebKit/534.50 (KHTML, like Gecko) Version/5.1 Safari/534.50 Mozilla/5.0 (Windows; U; Windows NT 6.1; en-us) AppleWebKit/534.50 (KHTML, like Gecko) Version/5.1 Safari/534.50 Mozilla/5.0 (com...
27.612903
137
0.682243
33cd25b6dee7d0d8f2865e1649e038cc3d930d13
5,078
py
Python
line.py
jurlaub/jubilant-fedora
829432ff4fb8b3972ad5a1a152ecf6f1f7e94f9b
[ "MIT" ]
null
null
null
line.py
jurlaub/jubilant-fedora
829432ff4fb8b3972ad5a1a152ecf6f1f7e94f9b
[ "MIT" ]
null
null
null
line.py
jurlaub/jubilant-fedora
829432ff4fb8b3972ad5a1a152ecf6f1f7e94f9b
[ "MIT" ]
null
null
null
import numpy as np from collections import deque QLEN = 8
35.51049
144
0.613037
33cd7255bbba76e2a841f4c023d7958020291128
2,730
py
Python
ex2_graph/tut2_infer_sigma.py
trungnt13/uef_bay1_2018
48a0f684eb4d18777d9f03998233774baa0524a8
[ "MIT" ]
null
null
null
ex2_graph/tut2_infer_sigma.py
trungnt13/uef_bay1_2018
48a0f684eb4d18777d9f03998233774baa0524a8
[ "MIT" ]
1
2018-11-30T16:36:40.000Z
2018-11-30T16:36:40.000Z
ex2_graph/tut2_infer_sigma.py
trungnt13/uef_bay1_2018
48a0f684eb4d18777d9f03998233774baa0524a8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import print_function, division, absolute_import import matplotlib matplotlib.use('Agg') from matplotlib import pyplot as plt import seaborn as sns import numpy as np import tensorflow as tf tf.enable_eager_execution() import tensorflow_probability as tfp from tensorflow_proba...
30.674157
83
0.631502
33ce3133c0c71236885386e8ce693950822b09d3
10,625
py
Python
torch_geometric_temporal/nn/convolutional/astgcn.py
LFrancesco/pytorch_geometric_temporal
0964515a6041ce0cceb12e36ed640df22c046b4d
[ "MIT" ]
null
null
null
torch_geometric_temporal/nn/convolutional/astgcn.py
LFrancesco/pytorch_geometric_temporal
0964515a6041ce0cceb12e36ed640df22c046b4d
[ "MIT" ]
null
null
null
torch_geometric_temporal/nn/convolutional/astgcn.py
LFrancesco/pytorch_geometric_temporal
0964515a6041ce0cceb12e36ed640df22c046b4d
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F from torch_geometric.transforms import LaplacianLambdaMax from torch_geometric.data import Data from .chebconvatt import ChebConvAtt
46.39738
168
0.640471
33d053c085065b6932239fd9d1894cd72e3ecc5e
1,596
py
Python
project1/src/utils/preprocessing.py
armand33/deep_learning_epfl
238ed860716f013a30e29ebd4b0d9c4d0c67d011
[ "MIT" ]
null
null
null
project1/src/utils/preprocessing.py
armand33/deep_learning_epfl
238ed860716f013a30e29ebd4b0d9c4d0c67d011
[ "MIT" ]
null
null
null
project1/src/utils/preprocessing.py
armand33/deep_learning_epfl
238ed860716f013a30e29ebd4b0d9c4d0c67d011
[ "MIT" ]
2
2018-05-30T09:27:13.000Z
2018-07-05T12:38:37.000Z
""" File defining the classes Normalize and Standardize used respectively to normalize and standardize the data set. """
27.517241
112
0.592105
33d1491d6a521c55fdf5d9796d0dc3453bde5f3c
5,522
py
Python
coalaip/plugin.py
bigchaindb/pycoalaip
cecc8f6ff4733f0525fafcee63647753e832f0be
[ "Apache-2.0" ]
20
2016-08-13T15:01:20.000Z
2018-10-09T21:18:11.000Z
coalaip/plugin.py
imbi7py/pycoalaip
cecc8f6ff4733f0525fafcee63647753e832f0be
[ "Apache-2.0" ]
57
2016-08-04T16:02:05.000Z
2017-09-15T08:20:06.000Z
coalaip/plugin.py
imbi7py/pycoalaip
cecc8f6ff4733f0525fafcee63647753e832f0be
[ "Apache-2.0" ]
8
2018-11-15T16:34:59.000Z
2021-07-09T00:20:37.000Z
from abc import ABC, abstractmethod, abstractproperty
34.72956
91
0.588555
33d1c4bc6b32f3dc2fadccad361068b5292dca5c
6,016
py
Python
benchmarks/chexpert/chexpert.py
paaatcha/my-thesis
e72644e0d7c8a4b6f75cf7e462d32001cbf2c75d
[ "MIT" ]
5
2020-11-12T20:11:09.000Z
2021-03-01T12:44:05.000Z
benchmarks/chexpert/chexpert.py
paaatcha/my-thesis
e72644e0d7c8a4b6f75cf7e462d32001cbf2c75d
[ "MIT" ]
null
null
null
benchmarks/chexpert/chexpert.py
paaatcha/my-thesis
e72644e0d7c8a4b6f75cf7e462d32001cbf2c75d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Autor: Andr Pacheco Email: pacheco.comp@gmail.com """ import sys sys.path.insert(0,'../../') # including the path to deep-tasks folder sys.path.insert(0,'../../my_models') # including the path to my_models folder from constants import RAUG_PATH sys.path.insert(0,RAUG_PATH) from raug.loader...
43.280576
123
0.626995
33d3616fffd736ee6840aea7591ae150b299a6b4
1,673
py
Python
python-benchmarking-tools/haste/benchmarking/messaging.py
HASTE-project/benchmarking-tools
3e65cd4019287051a612bc21fa68e4b1a5bbc745
[ "BSD-3-Clause" ]
null
null
null
python-benchmarking-tools/haste/benchmarking/messaging.py
HASTE-project/benchmarking-tools
3e65cd4019287051a612bc21fa68e4b1a5bbc745
[ "BSD-3-Clause" ]
null
null
null
python-benchmarking-tools/haste/benchmarking/messaging.py
HASTE-project/benchmarking-tools
3e65cd4019287051a612bc21fa68e4b1a5bbc745
[ "BSD-3-Clause" ]
null
null
null
import random import string from itertools import repeat import time RANDOM_1KB = ''.join(random.choice(string.ascii_uppercase + string.ascii_lowercase + string.digits) for _ in range(1000)) RANDOM_100MB = bytearray(''.join(list(repeat(RANDOM_1KB, 100 * 1024))), 'utf-8') NEWLINE = bytes("\n", 'UT...
29.875
99
0.683802
33d4ad03546e671d2c748b882701c31df889c607
5,338
py
Python
async_mgun/mgun.py
maximdanilchenko/async-mgun
66a2f1123407f91682fc8e6491ddadfb3690e238
[ "MIT" ]
null
null
null
async_mgun/mgun.py
maximdanilchenko/async-mgun
66a2f1123407f91682fc8e6491ddadfb3690e238
[ "MIT" ]
null
null
null
async_mgun/mgun.py
maximdanilchenko/async-mgun
66a2f1123407f91682fc8e6491ddadfb3690e238
[ "MIT" ]
null
null
null
import json from collections import namedtuple import aiohttp METHOD_GET = aiohttp.hdrs.METH_GET METHOD_DELETE = aiohttp.hdrs.METH_DELETE METHOD_POST = aiohttp.hdrs.METH_POST METHOD_PUT = aiohttp.hdrs.METH_PUT METHOD_PATCH = aiohttp.hdrs.METH_PATCH CONTENT_TYPE = aiohttp.hdrs.CONTENT_TYPE JSON_TYPE = 'application/jso...
32.156627
91
0.597602
33d662830f0507f69d63779e877716fe18bc04aa
7,071
py
Python
10/10.py
andleb/aoc18
408bf9a92f30fee692d7a2cd9b2a72ab1bbd7711
[ "MIT" ]
1
2020-03-22T16:25:01.000Z
2020-03-22T16:25:01.000Z
10/10.py
andleb/aoc18
408bf9a92f30fee692d7a2cd9b2a72ab1bbd7711
[ "MIT" ]
null
null
null
10/10.py
andleb/aoc18
408bf9a92f30fee692d7a2cd9b2a72ab1bbd7711
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sun Dec 9 23:12:30 2018 @author: Andrej Leban """ import itertools as it import functools as ft import collections as coll import sortedcontainers as sc from blist import blist import re import numpy as np import scipy.signal import scipy.sparse import mat...
28.861224
75
0.433602
33d6fb43a44d5548c53fbae7aa5f5112f385cc23
808
py
Python
__init__.py
rookiepeng/radarsimpy
e26cc8eb1b913630dfdc9d3443279b4ae54c0109
[ "MIT" ]
42
2020-09-30T06:26:02.000Z
2022-03-31T18:38:52.000Z
__init__.py
chisyliu/radarsimpy
e26cc8eb1b913630dfdc9d3443279b4ae54c0109
[ "MIT" ]
6
2021-01-11T21:45:20.000Z
2022-03-18T02:48:50.000Z
__init__.py
chisyliu/radarsimpy
e26cc8eb1b913630dfdc9d3443279b4ae54c0109
[ "MIT" ]
12
2020-08-06T15:17:13.000Z
2022-02-11T08:38:34.000Z
# distutils: language = c++ # cython: language_level=3 # ---------- # RadarSimPy - A Radar Simulator Built with Python # Copyright (C) 2018 - PRESENT Zhengyu Peng # E-mail: zpeng.me@gmail.com # Website: https://zpeng.me # ` ` # -:. -#: # -//:. -###: # -////:. ...
20.717949
50
0.308168
33d742467b639181a96935c9f1ee233a5cfa1143
1,542
py
Python
setup.py
tfahey/python-sample-app
ce333ea3e6e932b4f3eec022a3654b542c310974
[ "MIT" ]
null
null
null
setup.py
tfahey/python-sample-app
ce333ea3e6e932b4f3eec022a3654b542c310974
[ "MIT" ]
null
null
null
setup.py
tfahey/python-sample-app
ce333ea3e6e932b4f3eec022a3654b542c310974
[ "MIT" ]
null
null
null
from setuptools import setup # Used in pypi.org as the README description of your package with open("README.md", 'r') as f: long_description = f.read() # Remove this whole block from here... setup( name='python-sample-app', version='1.0', description='python-sample-app is a starter templat...
33.521739
101
0.603113
33d849633a70f2cbfe362c04ab4b72d0b5817985
2,519
py
Python
create_playlist_by_artistlist.py
sanzgiri/saregma_spotify
ba35cd27b13c63a7cb1b1452f00727be51c775c7
[ "MIT" ]
1
2019-10-10T07:39:26.000Z
2019-10-10T07:39:26.000Z
create_playlist_by_artistlist.py
sanzgiri/saregama_spotify
ba35cd27b13c63a7cb1b1452f00727be51c775c7
[ "MIT" ]
null
null
null
create_playlist_by_artistlist.py
sanzgiri/saregama_spotify
ba35cd27b13c63a7cb1b1452f00727be51c775c7
[ "MIT" ]
null
null
null
import sys import re import spotipy import spotipy.util as util ''' shows the albums and tracks for a given artist. ''' if __name__ == '__main__': if len(sys.argv) < 4: print(('Usage: {0} username playlist filename'.format(sys.argv[0]))) else: username = sys.argv[1] plname = sys.argv[...
33.586667
89
0.493053
33d9116df66190b4bcd4b6335837886228590452
466
py
Python
Lib/site-packages/py2exe/samples/pywin32/com_typelib/pre_gen/wscript/show_info.py
Aakash10399/simple-health-glucheck
1f7c4ff7778a44f09b1c8cb0089fef51dc26cea2
[ "bzip2-1.0.6" ]
35
2015-08-15T14:32:38.000Z
2021-12-09T16:21:26.000Z
Lib/site-packages/py2exe/samples/pywin32/com_typelib/pre_gen/wscript/show_info.py
Aakash10399/simple-health-glucheck
1f7c4ff7778a44f09b1c8cb0089fef51dc26cea2
[ "bzip2-1.0.6" ]
4
2015-09-12T10:42:57.000Z
2017-02-27T04:05:51.000Z
Lib/site-packages/py2exe/samples/pywin32/com_typelib/pre_gen/wscript/show_info.py
Aakash10399/simple-health-glucheck
1f7c4ff7778a44f09b1c8cb0089fef51dc26cea2
[ "bzip2-1.0.6" ]
15
2015-07-10T23:58:07.000Z
2022-01-23T22:16:33.000Z
# Print some simple information using the WScript.Network object. import sys from win32com.client.gencache import EnsureDispatch ob = EnsureDispatch('WScript.Network') # For the sake of ensuring the correct module is used... mod = sys.modules[ob.__module__] print "The module hosting the object is", mod # Now use the...
25.888889
65
0.761803
33d9997f9a803874867baad8259292103a1f9c38
974
py
Python
BOMFinder/helpers.py
ProrokWielki/BOM_Finder
329fbcc79014f653ea438005495c851ea5a98a4e
[ "MIT" ]
null
null
null
BOMFinder/helpers.py
ProrokWielki/BOM_Finder
329fbcc79014f653ea438005495c851ea5a98a4e
[ "MIT" ]
null
null
null
BOMFinder/helpers.py
ProrokWielki/BOM_Finder
329fbcc79014f653ea438005495c851ea5a98a4e
[ "MIT" ]
null
null
null
import BOMFinder.UI.UI as UI
30.4375
90
0.584189
33da0396a0dd60ccaa2bda8746e876166518de49
934
py
Python
src/dash/pages/page1/layout/piecases.py
NjekTt/iris-python-dashboards
fde650bb1e0a58504230aaba6b4d8312c9f965a6
[ "MIT" ]
null
null
null
src/dash/pages/page1/layout/piecases.py
NjekTt/iris-python-dashboards
fde650bb1e0a58504230aaba6b4d8312c9f965a6
[ "MIT" ]
null
null
null
src/dash/pages/page1/layout/piecases.py
NjekTt/iris-python-dashboards
fde650bb1e0a58504230aaba6b4d8312c9f965a6
[ "MIT" ]
null
null
null
import dash_bootstrap_components as dbc from dash import dcc import plotly.graph_objects as go import iris query = ("""SELECT location, CAST(total_cases AS int) as total_cases, CAST(total_deaths as int) as total_deaths, CAST(total_vaccinations AS int) as total_vaccinations FROM Data.Covid19 WHERE ...
28.30303
105
0.680942
33da4874a5acfe6e3de2316a08fa8e0d7edcedd6
13,573
py
Python
edb/server/main.py
rongfengliang/edgedb-pg-expose
1ddc279511595b4b1a3a1532ea873ed4e05e8b01
[ "Apache-2.0" ]
null
null
null
edb/server/main.py
rongfengliang/edgedb-pg-expose
1ddc279511595b4b1a3a1532ea873ed4e05e8b01
[ "Apache-2.0" ]
null
null
null
edb/server/main.py
rongfengliang/edgedb-pg-expose
1ddc279511595b4b1a3a1532ea873ed4e05e8b01
[ "Apache-2.0" ]
null
null
null
# # This source file is part of the EdgeDB open source project. # # Copyright 2016-present MagicStack Inc. and the EdgeDB 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...
31.861502
79
0.614308
33dab9188feb6ecca15b0298623ede4011983a44
2,295
py
Python
processing.py
BeDaBio/Topspin_Automatisation
d6c944c8533452540bad6c7900671ba84510da5d
[ "MIT" ]
1
2021-07-01T12:40:46.000Z
2021-07-01T12:40:46.000Z
processing.py
BeDaBio/Topspin_Automatisation
d6c944c8533452540bad6c7900671ba84510da5d
[ "MIT" ]
null
null
null
processing.py
BeDaBio/Topspin_Automatisation
d6c944c8533452540bad6c7900671ba84510da5d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from TopCmds import * import quality_check import data_management as dat Qualitytest = quality_check.Qualitytest left_boundary=float(dat.get_globalParameter("left_boundary")) right_boundary=float(dat.get_globalParameter("right_boundary")) def Check_180turn(leftboundary,rightboundary):...
38.898305
101
0.735076
33df118b9dd2d5dc3e199ff68c543e1b12e24f1b
389
py
Python
accounts/migrations/0007_rename_protected_authtoggle_is_protected.py
abubakarA-Dot/tarot_juicer
dbc68f73d6ae3d73f50f4472a063b5363febc7b8
[ "MIT" ]
4
2020-02-27T00:11:01.000Z
2020-05-11T07:59:55.000Z
accounts/migrations/0007_rename_protected_authtoggle_is_protected.py
abubakarA-Dot/tarot_juicer
dbc68f73d6ae3d73f50f4472a063b5363febc7b8
[ "MIT" ]
16
2019-12-20T06:57:54.000Z
2020-05-19T01:00:18.000Z
accounts/migrations/0007_rename_protected_authtoggle_is_protected.py
abubakarA-Dot/tarot_juicer
dbc68f73d6ae3d73f50f4472a063b5363febc7b8
[ "MIT" ]
10
2019-12-25T23:38:33.000Z
2020-05-11T14:15:15.000Z
# Generated by Django 3.2.4 on 2021-11-02 08:05 from django.db import migrations
20.473684
60
0.611825
33df6bcd5e294420051bcaaf7ff2ab223d4ccacb
6,509
py
Python
fund.py
JS-WangZhu/Fund
9ec7c06998f23e827d72f5a40f357ce8950b61f5
[ "Apache-2.0" ]
9
2020-08-11T11:07:06.000Z
2021-08-06T08:28:50.000Z
fund.py
JS-WangZhu/Fund
9ec7c06998f23e827d72f5a40f357ce8950b61f5
[ "Apache-2.0" ]
null
null
null
fund.py
JS-WangZhu/Fund
9ec7c06998f23e827d72f5a40f357ce8950b61f5
[ "Apache-2.0" ]
2
2020-08-18T06:56:25.000Z
2021-01-12T12:07:36.000Z
import os import pickle import requests from bs4 import BeautifulSoup import re import prettytable as pt from selenium import webdriver from selenium.webdriver.chrome.options import Options import warnings from colorama import init, Fore, Back, Style warnings.filterwarnings("ignore") import time chrome_options=Options(...
34.62234
147
0.634199
33e151bf11eaa61f605f33dd483e62cdd9902fec
6,161
py
Python
src/streamexecutors/stream.py
pkch/executors
326677ab98de374314bfa76e75624a705c34bdda
[ "MIT" ]
1
2017-07-17T14:11:18.000Z
2017-07-17T14:11:18.000Z
src/streamexecutors/stream.py
pkch/executors
326677ab98de374314bfa76e75624a705c34bdda
[ "MIT" ]
3
2017-05-29T10:24:36.000Z
2017-05-30T09:20:11.000Z
src/streamexecutors/stream.py
pkch/executors
326677ab98de374314bfa76e75624a705c34bdda
[ "MIT" ]
1
2020-11-21T18:53:52.000Z
2020-11-21T18:53:52.000Z
import time from queue import Queue, Full, Empty from concurrent.futures import Executor, ThreadPoolExecutor, ProcessPoolExecutor from concurrent.futures.process import _get_chunks, _process_chunk from functools import partial import sys import contextlib import threading import itertools
41.073333
96
0.557377
33e2f0f698434b23dcdf1b8b069d6bb70c09f05a
29,581
py
Python
src/custom_layers.py
fkong7/HeartFFDNet
8257ce71a0a3449d1b3a7c040699af3da35bd4b5
[ "Apache-2.0" ]
12
2021-07-13T17:40:17.000Z
2022-03-05T12:13:30.000Z
src/custom_layers.py
fkong7/HeartFFDNet
8257ce71a0a3449d1b3a7c040699af3da35bd4b5
[ "Apache-2.0" ]
2
2022-03-03T15:17:58.000Z
2022-03-22T09:22:46.000Z
src/custom_layers.py
fkong7/HeartFFDNet
8257ce71a0a3449d1b3a7c040699af3da35bd4b5
[ "Apache-2.0" ]
2
2021-09-28T14:56:04.000Z
2021-11-18T09:52:44.000Z
#Copyright (C) 2021 Fanwei Kong, Shawn C. Shadden, University of California, Berkeley #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 req...
45.579353
137
0.61837
33e320a31c348ff9ae4c6582aaca0b0e10833e86
2,455
py
Python
data_spec_validator/spec/actions.py
travisliu/data-spec-validator
7ee0944ca9899d565ad04ed82ca26bb402970958
[ "MIT" ]
23
2021-08-11T08:53:15.000Z
2022-02-14T04:44:13.000Z
data_spec_validator/spec/actions.py
travisliu/data-spec-validator
7ee0944ca9899d565ad04ed82ca26bb402970958
[ "MIT" ]
2
2021-09-11T08:59:12.000Z
2022-03-29T00:40:42.000Z
data_spec_validator/spec/actions.py
travisliu/data-spec-validator
7ee0944ca9899d565ad04ed82ca26bb402970958
[ "MIT" ]
1
2022-01-04T07:45:22.000Z
2022-01-04T07:45:22.000Z
from .defines import MsgLv, UnknownFieldValue, ValidateResult, get_msg_level from .validators import SpecValidator
34.097222
93
0.657434
33e48de23ace5856239e5367cf22a81d72e55b3b
290
py
Python
hwtypes/compatibility.py
splhack/hwtypes
aee03c086226fa3ed5892c998603cb8477e15f5e
[ "BSD-3-Clause" ]
167
2017-10-08T00:59:22.000Z
2022-02-08T00:14:39.000Z
hwtypes/compatibility.py
splhack/hwtypes
aee03c086226fa3ed5892c998603cb8477e15f5e
[ "BSD-3-Clause" ]
719
2017-08-29T17:58:28.000Z
2022-03-31T23:39:18.000Z
hwtypes/compatibility.py
splhack/hwtypes
aee03c086226fa3ed5892c998603cb8477e15f5e
[ "BSD-3-Clause" ]
14
2017-09-01T03:25:16.000Z
2021-11-05T13:30:24.000Z
import sys __all__ = ['IntegerTypes', 'StringTypes'] if sys.version_info < (3,): IntegerTypes = (int, long) StringTypes = (str, unicode) long = long import __builtin__ as builtins else: IntegerTypes = (int,) StringTypes = (str,) long = int import builtins
19.333333
41
0.641379
33e56033d7e024573e61a6a3dc78c7548534c357
285
py
Python
py_tdlib/constructors/secret_chat.py
Mr-TelegramBot/python-tdlib
2e2d21a742ebcd439971a32357f2d0abd0ce61eb
[ "MIT" ]
24
2018-10-05T13:04:30.000Z
2020-05-12T08:45:34.000Z
py_tdlib/constructors/secret_chat.py
MrMahdi313/python-tdlib
2e2d21a742ebcd439971a32357f2d0abd0ce61eb
[ "MIT" ]
3
2019-06-26T07:20:20.000Z
2021-05-24T13:06:56.000Z
py_tdlib/constructors/secret_chat.py
MrMahdi313/python-tdlib
2e2d21a742ebcd439971a32357f2d0abd0ce61eb
[ "MIT" ]
5
2018-10-05T14:29:28.000Z
2020-08-11T15:04:10.000Z
from ..factory import Type
23.75
40
0.635088