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
a389bd7328bfeb9809c940787f3815d94a0c7bd6
2,783
py
Python
commands.py
abcxyz618/MovieGeek
06029ed4202c63d3da4e306eb5d500ab81f2e1cb
[ "MIT" ]
null
null
null
commands.py
abcxyz618/MovieGeek
06029ed4202c63d3da4e306eb5d500ab81f2e1cb
[ "MIT" ]
null
null
null
commands.py
abcxyz618/MovieGeek
06029ed4202c63d3da4e306eb5d500ab81f2e1cb
[ "MIT" ]
null
null
null
import discord from discord.ext import commands from omdb_api import * from tmdb_api import *
36.618421
102
0.594682
a38a03f634375d52713a25701814579ff7b6e33e
92,070
py
Python
cryptoapis/api/unified_endpoints_api.py
Crypto-APIs/Crypto_APIs_2.0_SDK_Python
c59ebd914850622b2c6500c4c30af31fb9cecf0e
[ "MIT" ]
5
2021-05-17T04:45:03.000Z
2022-03-23T12:51:46.000Z
cryptoapis/api/unified_endpoints_api.py
Crypto-APIs/Crypto_APIs_2.0_SDK_Python
c59ebd914850622b2c6500c4c30af31fb9cecf0e
[ "MIT" ]
null
null
null
cryptoapis/api/unified_endpoints_api.py
Crypto-APIs/Crypto_APIs_2.0_SDK_Python
c59ebd914850622b2c6500c4c30af31fb9cecf0e
[ "MIT" ]
2
2021-06-02T07:32:26.000Z
2022-02-12T02:36:23.000Z
""" CryptoAPIs Crypto APIs 2.0 is a complex and innovative infrastructure layer that radically simplifies the development of any Blockchain and Crypto related applications. Organized around REST, Crypto APIs 2.0 can assist both novice Bitcoin/Ethereum enthusiasts and crypto experts with the development of thei...
42.704082
484
0.514945
a38b317b32dcbc6c9dff08940ace5dc60a5e39cd
1,853
py
Python
examples/run_ranch_baseline.py
pinjutien/DeepExplain
a80d85dcd5adc90968b6924a7ef39528170830f0
[ "MIT" ]
null
null
null
examples/run_ranch_baseline.py
pinjutien/DeepExplain
a80d85dcd5adc90968b6924a7ef39528170830f0
[ "MIT" ]
null
null
null
examples/run_ranch_baseline.py
pinjutien/DeepExplain
a80d85dcd5adc90968b6924a7ef39528170830f0
[ "MIT" ]
null
null
null
""" RANdom CHoice baseline (RANCH): random image from the target class """ import random import numpy as np import tensorflow_datasets as tfds from tqdm import tqdm # output_pattern = '/home/ec2-user/gan_submission_1/mnist/mnist_v2/ranch_baselines_%d' # tfds_name = 'mnist' # target_size = [28, 28, 1] # num_class = 1...
28.953125
88
0.67674
a38b4a3c4607025ed47cb0e6994bcee905fa97f0
359
py
Python
pageOne.py
3bru/qt-tkinter-Test
41eefe7621c6a0bf3a25b4503df7a7451fc363b2
[ "MIT" ]
1
2020-05-18T21:59:39.000Z
2020-05-18T21:59:39.000Z
pageOne.py
3bru/qt-tkinter-Test
41eefe7621c6a0bf3a25b4503df7a7451fc363b2
[ "MIT" ]
null
null
null
pageOne.py
3bru/qt-tkinter-Test
41eefe7621c6a0bf3a25b4503df7a7451fc363b2
[ "MIT" ]
null
null
null
import sqlite3, os con = sqlite3.connect('database.sqlite') im = con.cursor() tablo = """CREATE TABLE IF NOT EXISTS writes(day, topic, texti)""" deger = """INSERT INTO writes VALUES('oneDay', 'nmap', 'nmaple ilgili bisiler')""" im.execute(tablo) im.execute(deger) con.commit() im.execute("""SELECT * FROM writes""") ...
22.4375
82
0.696379
a38b9d380fbd10ce2b7350457ab818a75b222fac
6,075
py
Python
basicsr/metrics/psnr_ssim.py
BCV-Uniandes/RSR
dad60eedd3560f2655e3d1ed444153ed2616af2e
[ "zlib-acknowledgement" ]
14
2021-08-28T04:15:37.000Z
2021-12-28T17:00:33.000Z
basicsr/metrics/psnr_ssim.py
BCV-Uniandes/RSR
dad60eedd3560f2655e3d1ed444153ed2616af2e
[ "zlib-acknowledgement" ]
2
2021-09-26T01:27:06.000Z
2021-12-24T19:06:09.000Z
basicsr/metrics/psnr_ssim.py
BCV-Uniandes/RSR
dad60eedd3560f2655e3d1ed444153ed2616af2e
[ "zlib-acknowledgement" ]
1
2021-10-18T15:48:56.000Z
2021-10-18T15:48:56.000Z
import cv2 import numpy as np from basicsr.metrics.metric_util import reorder_image, to_y_channel def calculate_psnr(img1, img2, crop_border, input_order='HWC', test_y_channel=False): """Calculate PSNR (Peak Signal-to-Noise Ratio). ...
33.379121
80
0.596708
a38ee10bfa692aa23805d2d2b99b5f0481e7ce48
14,224
py
Python
data/dataset.py
limingwu8/Pneumonia-Detection
8541e0f34a72f6e94773bf234cfd071732229b2b
[ "MIT" ]
7
2019-01-27T02:30:56.000Z
2020-04-29T18:47:21.000Z
data/dataset.py
limingwu8/Pneumonia-Detection
8541e0f34a72f6e94773bf234cfd071732229b2b
[ "MIT" ]
1
2020-01-28T04:40:15.000Z
2020-05-01T02:37:40.000Z
data/dataset.py
limingwu8/Pneumonia-Detection
8541e0f34a72f6e94773bf234cfd071732229b2b
[ "MIT" ]
3
2019-08-09T09:16:00.000Z
2021-07-01T11:45:00.000Z
import os import numpy as np import torch from tqdm import tqdm from torch.utils.data import Dataset, DataLoader from torchvision import transforms, utils from skimage import io, transform from utils.Config import opt from skimage import exposure import matplotlib.pylab as plt from utils import array_tool as at from sk...
41.228986
113
0.646161
a38f9c51d087930a15e07db3d41e43fedee278f9
8,344
py
Python
make_dataset/kor_sample_dataset.py
park-sungmoo/odqa_baseline_code
45954be766e5f987bef18e5b8a2e47f1508742cd
[ "Apache-2.0" ]
67
2021-05-12T15:54:28.000Z
2022-03-12T15:55:35.000Z
make_dataset/kor_sample_dataset.py
park-sungmoo/odqa_baseline_code
45954be766e5f987bef18e5b8a2e47f1508742cd
[ "Apache-2.0" ]
71
2021-05-01T06:07:37.000Z
2022-01-28T16:54:46.000Z
make_dataset/kor_sample_dataset.py
park-sungmoo/odqa_baseline_code
45954be766e5f987bef18e5b8a2e47f1508742cd
[ "Apache-2.0" ]
14
2021-05-24T10:57:27.000Z
2022-02-18T06:34:11.000Z
import json import os.path as p from collections import defaultdict import pandas as pd from datasets import load_dataset from datasets import concatenate_datasets from datasets import Sequence, Value, Features, Dataset, DatasetDict from utils.tools import get_args f = Features( { "answers": Sequence( ...
28.772414
112
0.65604
a3927c6d9fb19dc907aa3851f9fb6293c833eaf2
1,737
py
Python
tests/test_simple.py
teosavv/pyembroidery
00985f423e64ea1a454e5484012c19a64f26eb2c
[ "MIT" ]
45
2018-07-08T09:49:30.000Z
2022-03-23T07:01:15.000Z
tests/test_simple.py
teosavv/pyembroidery
00985f423e64ea1a454e5484012c19a64f26eb2c
[ "MIT" ]
59
2018-07-05T22:05:58.000Z
2022-02-20T01:01:20.000Z
tests/test_simple.py
teosavv/pyembroidery
00985f423e64ea1a454e5484012c19a64f26eb2c
[ "MIT" ]
23
2018-08-10T17:58:04.000Z
2022-03-29T03:41:46.000Z
import os import shutil import pyembroidery import test_fractals
31.581818
84
0.651698
a392dab4e0208bcba731af6d1b6b1dd6d3c0e78a
21,317
py
Python
train.py
eapache/HawkEars
3b979166ed09de9f9254b830bb57499e1da7a015
[ "MIT" ]
null
null
null
train.py
eapache/HawkEars
3b979166ed09de9f9254b830bb57499e1da7a015
[ "MIT" ]
1
2021-12-17T16:56:12.000Z
2021-12-19T15:53:55.000Z
train.py
eapache/HawkEars
3b979166ed09de9f9254b830bb57499e1da7a015
[ "MIT" ]
1
2021-12-17T16:59:04.000Z
2021-12-17T16:59:04.000Z
# Train the selected neural network model on spectrograms for birds and a few other classes. # Train the selected neural network model on spectrograms for birds and a few other classes. # To see command-line arguments, run the script with -h argument. import argparse import math import matplotlib.pyplot as plt import ...
47.476615
233
0.598208
a3943fc348baced6fa934c762ac87be734e9ae13
2,002
py
Python
limix/heritability/estimate.py
fpcasale/limix
a6bc2850f243fe779991bb53a24ddbebe0ab74d2
[ "Apache-2.0" ]
null
null
null
limix/heritability/estimate.py
fpcasale/limix
a6bc2850f243fe779991bb53a24ddbebe0ab74d2
[ "Apache-2.0" ]
null
null
null
limix/heritability/estimate.py
fpcasale/limix
a6bc2850f243fe779991bb53a24ddbebe0ab74d2
[ "Apache-2.0" ]
null
null
null
from __future__ import division from numpy import ascontiguousarray, copy, ones, var from numpy_sugar.linalg import economic_qs from glimix_core.glmm import GLMMExpFam def estimate(pheno, lik, K, covs=None, verbose=True): r"""Estimate the so-called narrow-sense heritability. It supports Normal, Bernoulli, ...
24.414634
76
0.580919
a394632989f95d229e000f46db6a73bbdcda0cf3
2,739
py
Python
pyrat/__main__.py
gitmarek/pyrat
cbf918d5c23d5d39e62e00bb64b6d0596170c68b
[ "MIT" ]
null
null
null
pyrat/__main__.py
gitmarek/pyrat
cbf918d5c23d5d39e62e00bb64b6d0596170c68b
[ "MIT" ]
null
null
null
pyrat/__main__.py
gitmarek/pyrat
cbf918d5c23d5d39e62e00bb64b6d0596170c68b
[ "MIT" ]
null
null
null
import argparse, importlib, sys import pyrat from pyrat import name, version, logger # This returns a function to be called by a subparser below # We assume in the tool's submodule there's a function called 'start(args)' # That takes over the execution of the program. if __name__ == '__main__': # create the t...
36.039474
78
0.683826
a394774a260348220f0663c39347cf191a6da686
485
py
Python
zof/event.py
byllyfish/pylibofp
8e96caf83f57cab930b45a78eb4a8eaa6d9d0408
[ "MIT" ]
4
2017-09-20T19:10:51.000Z
2022-01-10T04:02:00.000Z
zof/event.py
byllyfish/pylibofp
8e96caf83f57cab930b45a78eb4a8eaa6d9d0408
[ "MIT" ]
2
2017-09-02T22:53:03.000Z
2018-01-01T03:27:48.000Z
zof/event.py
byllyfish/pylibofp
8e96caf83f57cab930b45a78eb4a8eaa6d9d0408
[ "MIT" ]
null
null
null
from .objectview import to_json, from_json
26.944444
74
0.610309
a3955ee346d7a3a5338cd528fa6afbec24d5527c
2,007
py
Python
python/projecteuler/src/longest_collatz_sequence.py
christopher-burke/warmups
140c96ada87ec5e9faa4622504ddee18840dce4a
[ "MIT" ]
null
null
null
python/projecteuler/src/longest_collatz_sequence.py
christopher-burke/warmups
140c96ada87ec5e9faa4622504ddee18840dce4a
[ "MIT" ]
2
2022-03-10T03:49:14.000Z
2022-03-14T00:49:54.000Z
python/projecteuler/src/longest_collatz_sequence.py
christopher-burke/warmups
140c96ada87ec5e9faa4622504ddee18840dce4a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """Longest Collatz sequence. The following iterative sequence is defined for the set of positive integers: n n/2 (n is even) n 3n + 1 (n is odd) Using the rule above and starting with 13, we generate the following sequence: 13 40 20 10 5 16 8 4 2 1 It can be seen that this seque...
23.611765
71
0.659691
a396aa841a074ff27cad63b9fc597eb1d7fa8b7c
1,823
py
Python
examples/classify_pose.py
scottamain/aiy-maker-kit
4cdb973067b83d27cf0601c811d887877d1bc253
[ "Apache-2.0" ]
null
null
null
examples/classify_pose.py
scottamain/aiy-maker-kit
4cdb973067b83d27cf0601c811d887877d1bc253
[ "Apache-2.0" ]
null
null
null
examples/classify_pose.py
scottamain/aiy-maker-kit
4cdb973067b83d27cf0601c811d887877d1bc253
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
35.745098
80
0.785518
a396f80d3df39bc129b954b6343810b69c00e0ea
291
py
Python
weldx/tags/measurement/source.py
CagtayFabry/weldx
463f949d4fa54b5edafa2268cb862716865a62c2
[ "BSD-3-Clause" ]
13
2020-02-20T07:45:02.000Z
2021-12-10T13:15:47.000Z
weldx/tags/measurement/source.py
BAMWelDX/weldx
ada4e67fa00cdb80a0b954057f4e685b846c9fe5
[ "BSD-3-Clause" ]
675
2020-02-20T07:47:00.000Z
2022-03-31T15:17:19.000Z
weldx/tags/measurement/source.py
CagtayFabry/weldx
463f949d4fa54b5edafa2268cb862716865a62c2
[ "BSD-3-Clause" ]
5
2020-09-02T07:19:17.000Z
2021-12-05T08:57:50.000Z
from weldx.asdf.util import dataclass_serialization_class from weldx.measurement import SignalSource __all__ = ["SignalSource", "SignalSourceConverter"] SignalSourceConverter = dataclass_serialization_class( class_type=SignalSource, class_name="measurement/source", version="0.1.0" )
29.1
77
0.821306
a39715724a34e51cf7b15a4f030411898b87a5ec
1,706
py
Python
test/test_entities_api.py
iknaio/graphsense-python
b61c66b6ec0bb9720036ae61777e90ce63a971cc
[ "MIT" ]
null
null
null
test/test_entities_api.py
iknaio/graphsense-python
b61c66b6ec0bb9720036ae61777e90ce63a971cc
[ "MIT" ]
1
2022-02-24T11:21:49.000Z
2022-02-24T11:21:49.000Z
test/test_entities_api.py
iknaio/graphsense-python
b61c66b6ec0bb9720036ae61777e90ce63a971cc
[ "MIT" ]
null
null
null
""" GraphSense API GraphSense API # noqa: E501 The version of the OpenAPI document: 0.5.1 Generated by: https://openapi-generator.tech """ import unittest import graphsense from graphsense.api.entities_api import EntitiesApi # noqa: E501 if __name__ == '__main__': unittest.main()
21.871795
73
0.623681
a39afee8e197b6834391bc0d4c2a7ba0f29e4cdf
622
py
Python
tests/test_versions_in_sync.py
simon-graham/pure_interface
da7bf05151c1c906c753987fbf7e3251905b4ba0
[ "MIT" ]
10
2018-08-27T04:15:53.000Z
2021-08-18T09:45:35.000Z
tests/test_versions_in_sync.py
simon-graham/pure_interface
da7bf05151c1c906c753987fbf7e3251905b4ba0
[ "MIT" ]
35
2018-08-27T04:17:44.000Z
2021-09-22T05:39:57.000Z
tests/test_versions_in_sync.py
tim-mitchell/pure_interface
46a2de2574f4543980303cafd89cfcbdb643fbbb
[ "MIT" ]
3
2018-09-19T21:32:01.000Z
2020-11-17T00:58:55.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function, unicode_literals import os import unittest import pure_interface
29.619048
82
0.636656
a39ce7f687dbc4302e562228dd957da1ccaaa084
315
py
Python
catalog/bindings/wfs/get_capabilities_2.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
catalog/bindings/wfs/get_capabilities_2.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
catalog/bindings/wfs/get_capabilities_2.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
from dataclasses import dataclass from bindings.wfs.get_capabilities_type_2 import GetCapabilitiesType2 __NAMESPACE__ = "http://www.opengis.net/wfs/2.0"
26.25
69
0.755556
a39d78970a2b5428929cac47bbcd677dcd4fd411
2,169
py
Python
timeStamps/admin.py
zandegran/django-timeStamp
2c598d5543dc9b9198f41f0712406f22e60d5fa6
[ "MIT" ]
1
2017-12-15T17:36:58.000Z
2017-12-15T17:36:58.000Z
timeStamps/admin.py
zandegran/django-timeStamp
2c598d5543dc9b9198f41f0712406f22e60d5fa6
[ "MIT" ]
null
null
null
timeStamps/admin.py
zandegran/django-timeStamp
2c598d5543dc9b9198f41f0712406f22e60d5fa6
[ "MIT" ]
null
null
null
""" This module is to define how TimeStamp model is represented in the Admin site It also registers the model to be shown in the admin site .. seealso:: :class:`..models.TimeStamp` """ from django.contrib import admin from .models import TimeStamp admin.site.register(TimeStamp,TimeStampAdmin) # Registers the ...
32.863636
125
0.654219
a39e36cdbd6fb2489b1dabdf74c900884f32c597
718
py
Python
setup.py
Gearheart-team/django-accounts
e0c2f12d350846fa31143b6dbdb0cf6fa713fb11
[ "MIT" ]
null
null
null
setup.py
Gearheart-team/django-accounts
e0c2f12d350846fa31143b6dbdb0cf6fa713fb11
[ "MIT" ]
null
null
null
setup.py
Gearheart-team/django-accounts
e0c2f12d350846fa31143b6dbdb0cf6fa713fb11
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup( name='izeni-django-accounts', version='1.1.2a', namespace_packages=['izeni', 'izeni.django'], packages=find_packages(), include_package_data=True, author='Izeni, Inc.', author_email='django-accounts@izeni.com', description=open('README....
29.916667
107
0.637883
a39ece0f6a490b1cd3625b5fef325786496075c3
2,973
py
Python
train.py
Saaaber/urban-segmentation
fc893feb9208d3206d7c5329b1ccf4cfab97ed31
[ "MIT" ]
3
2020-11-16T20:21:25.000Z
2021-06-11T13:09:30.000Z
train.py
Saaaber/urban-segmentation
fc893feb9208d3206d7c5329b1ccf4cfab97ed31
[ "MIT" ]
null
null
null
train.py
Saaaber/urban-segmentation
fc893feb9208d3206d7c5329b1ccf4cfab97ed31
[ "MIT" ]
3
2020-11-11T23:43:15.000Z
2022-03-17T09:03:42.000Z
# Copyright (c) Ville de Montreal. All rights reserved. # Licensed under the MIT license. # See LICENSE file in the project root for full license information. import os import json import torch import argparse import datetime from utils.factories import ModelFactory, OptimizerFactory, TrainerFactory if __name__ == "...
33.784091
83
0.636731
a3a01913f52507b8c2e9c60bffcef520ae43b4db
1,036
py
Python
pypeit/core/wavecal/spectrographs/templ_soar_goodman.py
rcooke-ast/PYPIT
0cb9c4cb422736b855065a35aefc2bdba6d51dd0
[ "BSD-3-Clause" ]
null
null
null
pypeit/core/wavecal/spectrographs/templ_soar_goodman.py
rcooke-ast/PYPIT
0cb9c4cb422736b855065a35aefc2bdba6d51dd0
[ "BSD-3-Clause" ]
null
null
null
pypeit/core/wavecal/spectrographs/templ_soar_goodman.py
rcooke-ast/PYPIT
0cb9c4cb422736b855065a35aefc2bdba6d51dd0
[ "BSD-3-Clause" ]
null
null
null
""" Generate the wavelength templates for SOAR Goodman""" import os from pypeit.core.wavecal import templates from IPython import embed if __name__ == '__main__': soar_goodman_400(overwrite=True)
31.393939
85
0.638031
a3a1c89d1bcdd899b6c1712a17770e89aa6ef0b0
5,062
py
Python
vivarium/lidar.py
Pyrofoux/vivarium
90c07384929f6c34915f053fd8e95e91358c4e58
[ "MIT" ]
2
2020-10-30T15:28:06.000Z
2022-01-31T17:13:25.000Z
vivarium/lidar.py
Pyrofoux/vivarium
90c07384929f6c34915f053fd8e95e91358c4e58
[ "MIT" ]
null
null
null
vivarium/lidar.py
Pyrofoux/vivarium
90c07384929f6c34915f053fd8e95e91358c4e58
[ "MIT" ]
null
null
null
from simple_playgrounds.entities.agents.sensors.sensor import * from simple_playgrounds.entities.agents.sensors.semantic_sensors import * from collections import defaultdict from pymunk.vec2d import Vec2d import math #@SensorGenerator.register('lidar')
34.435374
111
0.600356
a3a2b31e0b527f3675dc65a92359c7b90836c880
511
py
Python
apilos_settings/models.py
MTES-MCT/apilos
6404b94b0f668e39c1dc12a6421aebd26ef1c98b
[ "MIT" ]
null
null
null
apilos_settings/models.py
MTES-MCT/apilos
6404b94b0f668e39c1dc12a6421aebd26ef1c98b
[ "MIT" ]
2
2021-12-15T05:10:43.000Z
2021-12-15T05:11:00.000Z
apilos_settings/models.py
MTES-MCT/apilos
6404b94b0f668e39c1dc12a6421aebd26ef1c98b
[ "MIT" ]
1
2021-12-28T13:06:06.000Z
2021-12-28T13:06:06.000Z
from django.db import models
26.894737
60
0.700587
a3a3cd19889c828efa32a912a6cda2aa73fb4ca6
4,310
py
Python
bin/allplots.py
Gabaldonlab/karyon
ba81828921b83b553f126892795253be1fd941ba
[ "MIT" ]
null
null
null
bin/allplots.py
Gabaldonlab/karyon
ba81828921b83b553f126892795253be1fd941ba
[ "MIT" ]
2
2021-07-07T08:40:56.000Z
2022-01-06T16:10:27.000Z
bin/allplots.py
Gabaldonlab/karyon
ba81828921b83b553f126892795253be1fd941ba
[ "MIT" ]
null
null
null
#!/bin/python import sys, os, re, subprocess, math import argparse import psutil from pysam import pysam from Bio import SeqIO import numpy as np import numpy.random import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt #import seaborn as sns import pandas as pd import scipy.stats from scipy.stats imp...
35.916667
236
0.710905
a3a50e8b6b7936872866a8a4572b115958922c08
713
py
Python
console/middleware.py
laincloud/Console
9d4fb68ad5378279697803ca45a4eda58d72d9a3
[ "MIT" ]
11
2016-05-04T11:55:01.000Z
2018-09-29T01:00:05.000Z
console/middleware.py
laincloud/Console
9d4fb68ad5378279697803ca45a4eda58d72d9a3
[ "MIT" ]
21
2016-05-25T06:54:44.000Z
2019-06-06T00:38:38.000Z
console/middleware.py
laincloud/Console
9d4fb68ad5378279697803ca45a4eda58d72d9a3
[ "MIT" ]
16
2016-05-13T08:20:43.000Z
2021-12-31T09:23:14.000Z
# -*- coding: utf-8 from django.http import JsonResponse, HttpResponse # from commons.settings import ARCHON_HOST
32.409091
100
0.605891
a3a5bb350e05522589702afb78e2a9430fe6a8c4
1,061
py
Python
test.py
vinsmokemau/NQueens
7c9291f655b8e4f0ce4c6c5d07a80440f8f2c0a8
[ "MIT" ]
null
null
null
test.py
vinsmokemau/NQueens
7c9291f655b8e4f0ce4c6c5d07a80440f8f2c0a8
[ "MIT" ]
null
null
null
test.py
vinsmokemau/NQueens
7c9291f655b8e4f0ce4c6c5d07a80440f8f2c0a8
[ "MIT" ]
null
null
null
import unittest from algorithm import NQueens
25.878049
65
0.673893
6e55e971b17323a0b8342354a7a6ad601469f01e
18,524
py
Python
syntropynac/resolve.py
SyntropyNet/syntropy-nac
8beddcd606d46fd909f51d0c53044be496cec995
[ "MIT" ]
3
2021-01-06T08:24:47.000Z
2021-02-27T08:08:07.000Z
syntropynac/resolve.py
SyntropyNet/syntropy-nac
8beddcd606d46fd909f51d0c53044be496cec995
[ "MIT" ]
null
null
null
syntropynac/resolve.py
SyntropyNet/syntropy-nac
8beddcd606d46fd909f51d0c53044be496cec995
[ "MIT" ]
null
null
null
import functools from dataclasses import dataclass from itertools import combinations import click import syntropy_sdk as sdk from syntropy_sdk import utils from syntropynac.exceptions import ConfigureNetworkError from syntropynac.fields import ALLOWED_PEER_TYPES, ConfigFields, PeerState, PeerType def resolve_ag...
36.608696
125
0.589721
6e56c45295d74ab6452768ca7c9600d73e511225
10,298
py
Python
idact/detail/nodes/node_impl.py
garstka/idact
b9c8405c94db362c4a51d6bfdf418b14f06f0da1
[ "MIT" ]
5
2018-12-06T15:40:34.000Z
2019-06-19T11:22:58.000Z
idact/detail/nodes/node_impl.py
garstka/idact
b9c8405c94db362c4a51d6bfdf418b14f06f0da1
[ "MIT" ]
9
2018-12-06T16:35:26.000Z
2019-04-28T19:01:40.000Z
idact/detail/nodes/node_impl.py
garstka/idact
b9c8405c94db362c4a51d6bfdf418b14f06f0da1
[ "MIT" ]
2
2019-04-28T19:18:58.000Z
2019-06-17T06:56:28.000Z
"""This module contains the implementation of the cluster node interface.""" import datetime from typing import Optional, Any, Callable import bitmath import fabric.operations import fabric.tasks import fabric.decorators from fabric.exceptions import CommandTimeout from fabric.state import env from idact.core.retry ...
37.721612
79
0.583026
6e5770f83af2ce49e0548c12ebb2126470694c34
2,012
py
Python
geoportal/LUX_alembic/versions/17fb1559a5cd_create_table_for_hierarchy_of_accounts.py
arnaud-morvan/geoportailv3
b9d676cf78e45e12894f7d1ceea99b915562d64f
[ "MIT" ]
17
2015-01-14T08:40:22.000Z
2021-05-08T04:39:50.000Z
geoportal/LUX_alembic/versions/17fb1559a5cd_create_table_for_hierarchy_of_accounts.py
arnaud-morvan/geoportailv3
b9d676cf78e45e12894f7d1ceea99b915562d64f
[ "MIT" ]
1,477
2015-01-05T09:58:41.000Z
2022-03-18T11:07:09.000Z
geoportal/LUX_alembic/versions/17fb1559a5cd_create_table_for_hierarchy_of_accounts.py
arnaud-morvan/geoportailv3
b9d676cf78e45e12894f7d1ceea99b915562d64f
[ "MIT" ]
14
2015-07-24T07:33:13.000Z
2021-03-02T13:51:48.000Z
"""create table for hierarchy of accounts Revision ID: 17fb1559a5cd Revises: 3b7de32aebed Create Date: 2015-09-16 14:20:30.972593 """ # revision identifiers, used by Alembic. revision = '17fb1559a5cd' down_revision = '3b7de32aebed' branch_labels = None depends_on = None from alembic import op, context import sqlalc...
27.944444
73
0.611332
6e596f23ab56bd2dd8dd6ce01540892f3e46cdad
1,076
py
Python
tests/test_migrate.py
tvcsantos/Flexget
e08ce2957dd4f0668911d1e56347369939e4d0a5
[ "MIT" ]
1
2017-08-25T07:17:04.000Z
2017-08-25T07:17:04.000Z
tests/test_migrate.py
tvcsantos/Flexget
e08ce2957dd4f0668911d1e56347369939e4d0a5
[ "MIT" ]
1
2018-06-09T18:03:35.000Z
2018-06-09T18:03:35.000Z
tests/test_migrate.py
tvcsantos/Flexget
e08ce2957dd4f0668911d1e56347369939e4d0a5
[ "MIT" ]
null
null
null
from __future__ import unicode_literals, division, absolute_import import os from tests import FlexGetBase
31.647059
132
0.636617
6e5a5481a3630f1bb09ba60f327038cb691a80cf
2,422
py
Python
src/challenges/CtCI/dynamic/P1_triple_step.py
Ursidours/pythonic_interviews
a88e10b82ed2a163dfcc0bfd1d01a9e9e606c045
[ "MIT" ]
2
2021-11-13T01:30:25.000Z
2022-02-11T18:17:22.000Z
src/challenges/CtCI/dynamic/P1_triple_step.py
arnaudblois/pythonic_interviews
a88e10b82ed2a163dfcc0bfd1d01a9e9e606c045
[ "MIT" ]
null
null
null
src/challenges/CtCI/dynamic/P1_triple_step.py
arnaudblois/pythonic_interviews
a88e10b82ed2a163dfcc0bfd1d01a9e9e606c045
[ "MIT" ]
null
null
null
""" Problem 1 of Chapter 8 in CtCi Triple Step: A child is running up a staircase with N steps and can hop either 1 step, 2 steps, or 3 steps at a time. Return the number of possible ways exist this can be done. General idea of the solution: At any step N, the child must necessarily come from the steps N-3, N-2 or N-1...
31.454545
79
0.641618
6e5a95d6b33481e439c3c6dd74b69db486074c51
117
py
Python
lib/JumpScale/lib/docker/__init__.py
Jumpscale/jumpscale6_core
0502ddc1abab3c37ed982c142d21ea3955d471d3
[ "BSD-2-Clause" ]
1
2015-10-26T10:38:13.000Z
2015-10-26T10:38:13.000Z
lib/JumpScale/lib/docker/__init__.py
Jumpscale/jumpscale6_core
0502ddc1abab3c37ed982c142d21ea3955d471d3
[ "BSD-2-Clause" ]
null
null
null
lib/JumpScale/lib/docker/__init__.py
Jumpscale/jumpscale6_core
0502ddc1abab3c37ed982c142d21ea3955d471d3
[ "BSD-2-Clause" ]
null
null
null
from JumpScale import j j.base.loader.makeAvailable(j, 'tools') from Docker import Docker j.tools.docker = Docker()
19.5
39
0.769231
6e5ab1e623f341546ab1d75882702a30b02894e2
3,704
py
Python
scenes/capture/motor_pi/stepper/motorclient.py
tum-pbs/reconstructScalarFlows
948efeaa99b90c3879f9fb544da9a596b0cb5852
[ "Apache-2.0" ]
null
null
null
scenes/capture/motor_pi/stepper/motorclient.py
tum-pbs/reconstructScalarFlows
948efeaa99b90c3879f9fb544da9a596b0cb5852
[ "Apache-2.0" ]
1
2020-02-20T12:37:38.000Z
2020-02-20T17:04:53.000Z
scenes/capture/motor_pi/stepper/motorclient.py
tum-pbs/reconstructScalarFlows
948efeaa99b90c3879f9fb544da9a596b0cb5852
[ "Apache-2.0" ]
3
2020-01-23T04:32:46.000Z
2020-02-20T05:48:36.000Z
#!/usr/bin/env python2 import sys import socket import datetime import math import time from time import sleep # The c binary for controlling the stepper motor is loaded via ctypes from ctypes import * stepper_lib = cdll.LoadLibrary('./stepper.so') # buffer containing the incomplete commands recvBuffer = str() # ...
23.896774
78
0.560475
6e5d48ba91cb1100ebbf354d7f7d6405aa099be0
20,335
py
Python
bots/invaders/agent.py
alv67/Lux-AI-challenge
4fdd623a8ff578f769a6925ec0200170f84d4737
[ "MIT" ]
null
null
null
bots/invaders/agent.py
alv67/Lux-AI-challenge
4fdd623a8ff578f769a6925ec0200170f84d4737
[ "MIT" ]
27
2021-10-17T22:46:41.000Z
2021-12-05T23:41:19.000Z
bots/invaders/agent.py
alv67/Lux-AI-challenge
4fdd623a8ff578f769a6925ec0200170f84d4737
[ "MIT" ]
3
2021-11-14T19:22:16.000Z
2021-12-04T06:46:33.000Z
import os import math import sys from typing import List, Tuple # for kaggle-environments from abn.game_ext import GameExtended from abn.jobs import Task, Job, JobBoard from abn.actions import Actions from lux.game_map import Position, Cell, RESOURCE_TYPES from lux.game_objects import City from lux.game_constants impo...
47.847059
126
0.503369
6e5de644fd911fb842013165cff69e62361a9159
12,503
py
Python
PySRCG/src/Tabs/cyberware_tab.py
apampuch/PySRCG
bb3777aed3517b473e5860336c015e2e8d0905e9
[ "MIT" ]
null
null
null
PySRCG/src/Tabs/cyberware_tab.py
apampuch/PySRCG
bb3777aed3517b473e5860336c015e2e8d0905e9
[ "MIT" ]
null
null
null
PySRCG/src/Tabs/cyberware_tab.py
apampuch/PySRCG
bb3777aed3517b473e5860336c015e2e8d0905e9
[ "MIT" ]
null
null
null
from copy import copy from tkinter import * from tkinter import ttk from src import app_data from src.CharData.augment import Cyberware from src.Tabs.notebook_tab import NotebookTab from src.statblock_modifier import StatMod from src.utils import treeview_get, recursive_treeview_fill, calculate_attributes, get_variabl...
38.589506
116
0.589698
6e5f43493f76b33f089dfbae79e524b7b68ad4b5
337
py
Python
myapp/mymetric/my-metric.py
affoliveira/hiring-engineers
4064d8c7b6cead9a88197e95fcd6a0f2395e4d44
[ "Apache-2.0" ]
null
null
null
myapp/mymetric/my-metric.py
affoliveira/hiring-engineers
4064d8c7b6cead9a88197e95fcd6a0f2395e4d44
[ "Apache-2.0" ]
null
null
null
myapp/mymetric/my-metric.py
affoliveira/hiring-engineers
4064d8c7b6cead9a88197e95fcd6a0f2395e4d44
[ "Apache-2.0" ]
null
null
null
from datadog import initialize, statsd import time import random import os options = { 'statsd_host':os.environ['DD_AGENT_HOST'], 'statsd_port':8125 } initialize(**options) i = 0 while(1): i += 1 r = random.randint(0, 1000) statsd.gauge('mymetric',r , tags=["environment:dev"]) time.sleep(int(os.envi...
17.736842
55
0.68546
6e5f8bfb8859c97984af510e67f81278396d3ad6
277
py
Python
1 ano/logica-de-programacao/list-telefone-lucio.py
ThiagoPereira232/tecnico-informatica
6b55ecf34501b38052943acf1b37074e3472ce6e
[ "MIT" ]
1
2021-09-24T16:26:04.000Z
2021-09-24T16:26:04.000Z
1 ano/logica-de-programacao/list-telefone-lucio.py
ThiagoPereira232/tecnico-informatica
6b55ecf34501b38052943acf1b37074e3472ce6e
[ "MIT" ]
null
null
null
1 ano/logica-de-programacao/list-telefone-lucio.py
ThiagoPereira232/tecnico-informatica
6b55ecf34501b38052943acf1b37074e3472ce6e
[ "MIT" ]
null
null
null
n = [0,0,0,0,0,0,0,0,0,0] t = [0,0,0,0,0,0,0,0,0,0] c=0 while(c<10): n[c]=input("Digite o nome") t[c]=input("Digite o telefone") c+=1 const="" while(const!="fim"): cons=input("Digite nome a consultar") if(n[c]==const): print(f"TEl: {t[c]}") c+=1
21.307692
41
0.516245
6e61986199cea39f158bd8be59e6773d5f58be23
8,979
py
Python
serve_tiny_performance_mdrnn.py
cpmpercussion/robojam
8f9524be0ad850bdfc0c3459b0e4b677f5f70a84
[ "MIT" ]
10
2017-11-18T04:01:03.000Z
2022-03-06T21:07:09.000Z
serve_tiny_performance_mdrnn.py
cpmpercussion/robojam
8f9524be0ad850bdfc0c3459b0e4b677f5f70a84
[ "MIT" ]
17
2018-06-12T20:54:40.000Z
2022-02-09T23:27:24.000Z
serve_tiny_performance_mdrnn.py
cpmpercussion/robojam
8f9524be0ad850bdfc0c3459b0e4b677f5f70a84
[ "MIT" ]
2
2017-12-05T23:39:42.000Z
2018-06-13T13:46:33.000Z
#!/usr/bin/env python3 """A flask server for Robojam""" import json import time from io import StringIO import pandas as pd import tensorflow as tf import robojam from tensorflow.compat.v1.keras import backend as K from flask import Flask, request from flask_cors import CORS # Start server. tf.compat.v1.logging.set_v...
121.337838
1,670
0.702639
6e63b1a8022fa7d3c4dd2cc0d17b00043e002831
1,024
py
Python
youtube_sync/tasks.py
abhayagiri/youtube-sync
ce3861f1b0c1448b1d48e5ba17925f5c082f04a2
[ "MIT" ]
null
null
null
youtube_sync/tasks.py
abhayagiri/youtube-sync
ce3861f1b0c1448b1d48e5ba17925f5c082f04a2
[ "MIT" ]
null
null
null
youtube_sync/tasks.py
abhayagiri/youtube-sync
ce3861f1b0c1448b1d48e5ba17925f5c082f04a2
[ "MIT" ]
null
null
null
from datetime import datetime import os import re import subprocess from . import app, celery, db from .database import Job
26.947368
84
0.682617
6e6b8e97a66c01a64f2cca3a534d23843f440130
560
py
Python
setup.py
garethrylance/python-sdk-example
3f21c3a6c28f46050688ce1be66e33433a801e7c
[ "CC0-1.0" ]
null
null
null
setup.py
garethrylance/python-sdk-example
3f21c3a6c28f46050688ce1be66e33433a801e7c
[ "CC0-1.0" ]
null
null
null
setup.py
garethrylance/python-sdk-example
3f21c3a6c28f46050688ce1be66e33433a801e7c
[ "CC0-1.0" ]
null
null
null
from setuptools import setup setup( name="python-sdk-example", version="0.1", description="The dispatch model loader - lambda part.", url="https://github.com/garethrylance/python-sdk-example", author="Gareth Rylance", author_email="gareth@rylance.me.uk", packages=["example_sdk"], instal...
31.111111
82
0.671429
6e6bf3bcb9f6b04ecf66cf6829603687c806b677
4,140
py
Python
markov.py
themichaelusa/zuckerkov
d68780f987b3f032d6382ea75118c84e7f205a39
[ "MIT" ]
1
2020-03-17T23:34:17.000Z
2020-03-17T23:34:17.000Z
markov.py
themichaelusa/zuckerkov
d68780f987b3f032d6382ea75118c84e7f205a39
[ "MIT" ]
null
null
null
markov.py
themichaelusa/zuckerkov
d68780f987b3f032d6382ea75118c84e7f205a39
[ "MIT" ]
null
null
null
### IMPORTS import json import glob import string import random import spacy from spacy.lang.en.stop_words import STOP_WORDS import markovify ### CONSTANTS/GLOBALS/LAMBDAS SYMBOLS_TO_RM = tuple(list(string.punctuation) + ['\xad']) NUMBERS_TO_RM = tuple(string.digits) spacy.prefer_gpu() NLP_ENGINE = spacy.load("en_c...
23
67
0.717874
6e6ceb4b1bd05af797219ac67e3f71b01f520394
6,211
py
Python
src/cnf_shuffler.py
jreeves3/BiPartGen-Artifact
d7c6db628cad25701a398da67ab87bb725513a61
[ "MIT" ]
null
null
null
src/cnf_shuffler.py
jreeves3/BiPartGen-Artifact
d7c6db628cad25701a398da67ab87bb725513a61
[ "MIT" ]
null
null
null
src/cnf_shuffler.py
jreeves3/BiPartGen-Artifact
d7c6db628cad25701a398da67ab87bb725513a61
[ "MIT" ]
null
null
null
#/********************************************************************************** # Copyright (c) 2021 Joseph Reeves and Cayden Codel, Carnegie Mellon University # # Permission is hereby granted, free of charge, to any person obtaining a copy of this software and # associated documentation files (the "Software"), t...
34.893258
101
0.605378
6e6dbb5cefe12073382965816c2a9d3f10ed725c
4,171
py
Python
test/app_page_scraper_test.py
googleinterns/betel
2daa56081ccc753f5b7eafbd1e9a48e3aca4b657
[ "Apache-2.0" ]
1
2020-09-21T12:52:33.000Z
2020-09-21T12:52:33.000Z
test/app_page_scraper_test.py
googleinterns/betel
2daa56081ccc753f5b7eafbd1e9a48e3aca4b657
[ "Apache-2.0" ]
null
null
null
test/app_page_scraper_test.py
googleinterns/betel
2daa56081ccc753f5b7eafbd1e9a48e3aca4b657
[ "Apache-2.0" ]
1
2020-07-31T09:55:33.000Z
2020-07-31T09:55:33.000Z
import pathlib import pytest from betel import app_page_scraper from betel import betel_errors from betel import utils ICON_HTML = """ <img src="%s" class="T75of sHb2Xb"> """ CATEGORY_HTML = """ <a itemprop="genre">Example</a> """ FILTERED_CATEGORY_HTML = """ <a itemprop="genre">Filtered</a> """ SIMPLE_HTML = """ <...
28.182432
86
0.714217
6e702ceebd6384acfed75804122d1e9b9864c6c7
2,776
py
Python
add.py
plasticuproject/cert-dbms
0a8f1d8eb69610fa1c0403c08d3d3ac057e3d698
[ "MIT" ]
null
null
null
add.py
plasticuproject/cert-dbms
0a8f1d8eb69610fa1c0403c08d3d3ac057e3d698
[ "MIT" ]
null
null
null
add.py
plasticuproject/cert-dbms
0a8f1d8eb69610fa1c0403c08d3d3ac057e3d698
[ "MIT" ]
1
2020-10-27T12:06:36.000Z
2020-10-27T12:06:36.000Z
#!/usr/bin/python3 """add.py""" from sys import argv import datetime import sqlite3 import pathlib PATH = pathlib.Path.cwd() HELP_TEXT = ''' Usage: add.py [-h] directory -h, --help bring up this help message directory directory with certs to add ''' def add_certs(cert_dir: str) -> None: """...
30.844444
193
0.583934
6e710c139901b3edb6aaa6a1f60ac54de8da8353
209
py
Python
mrq_monitor.py
HyokaChen/violet
b89ddb4f909c2a40e76d89b665949e55086a7a80
[ "Apache-2.0" ]
1
2020-07-29T15:49:35.000Z
2020-07-29T15:49:35.000Z
mrq_monitor.py
HyokaChen/violet
b89ddb4f909c2a40e76d89b665949e55086a7a80
[ "Apache-2.0" ]
1
2019-12-19T10:19:57.000Z
2019-12-19T11:15:28.000Z
mrq_monitor.py
EmptyChan/violet
b89ddb4f909c2a40e76d89b665949e55086a7a80
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created with IntelliJ IDEA. Description: User: jinhuichen Date: 3/28/2018 4:17 PM Description: """ from mrq.dashboard.app import main if __name__ == '__main__': main()
16.076923
34
0.650718
6e734b51dd3ec79fecc1a0e0800072ebad29c909
556
py
Python
lang/string/reverse-words.py
joez/letspy
9f653bc0071821fdb49da8c19787dc7e12921457
[ "Apache-2.0" ]
null
null
null
lang/string/reverse-words.py
joez/letspy
9f653bc0071821fdb49da8c19787dc7e12921457
[ "Apache-2.0" ]
null
null
null
lang/string/reverse-words.py
joez/letspy
9f653bc0071821fdb49da8c19787dc7e12921457
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 if __name__ == '__main__': s = input() for f in (reverse_words, reverse_words_ext): print(f(s))
19.857143
50
0.491007
6e74495ac01d11fb500db642fc48819334b6af0a
140
py
Python
k8s/the-project/kubeless/ok-func.py
cjimti/mk
b303e147da77776baf5fee337e356ebeccbe2c01
[ "MIT" ]
1
2019-04-18T09:52:48.000Z
2019-04-18T09:52:48.000Z
k8s/the-project/kubeless/ok-func.py
cjimti/mk
b303e147da77776baf5fee337e356ebeccbe2c01
[ "MIT" ]
null
null
null
k8s/the-project/kubeless/ok-func.py
cjimti/mk
b303e147da77776baf5fee337e356ebeccbe2c01
[ "MIT" ]
null
null
null
import requests
15.555556
43
0.65
6e74bf0ffc1a010178cf010d5be1824b1235b7ba
11,166
py
Python
python-scripts/gt_generate_python_curve.py
TrevisanGMW/maya
4e3b45210d09a1cd2a1c0419defe6a5ffa97cf92
[ "MIT" ]
26
2020-11-16T12:49:05.000Z
2022-03-09T20:39:22.000Z
python-scripts/gt_generate_python_curve.py
TrevisanGMW/maya
4e3b45210d09a1cd2a1c0419defe6a5ffa97cf92
[ "MIT" ]
47
2020-11-08T23:35:49.000Z
2022-03-10T03:43:00.000Z
python-scripts/gt_generate_python_curve.py
TrevisanGMW/maya
4e3b45210d09a1cd2a1c0419defe6a5ffa97cf92
[ "MIT" ]
5
2021-01-27T06:10:34.000Z
2021-10-30T23:29:44.000Z
""" Python Curve Generator @Guilherme Trevisan - github.com/TrevisanGMW/gt-tools - 2020-01-02 1.1 - 2020-01-03 Minor patch adjustments to the script 1.2 - 2020-06-07 Fixed random window widthHeight issue. Updated naming convention to make it clearer. (PEP8) Added length checker for selection befor...
40.901099
129
0.5729
6e75ab3bf35f32714181bf627668b80eaa462378
1,766
py
Python
client/core/scene/summary.py
krerkkiat/space-invader
428b1041c9246b55cb63bc6c0b2ec20beb7a32ed
[ "MIT" ]
null
null
null
client/core/scene/summary.py
krerkkiat/space-invader
428b1041c9246b55cb63bc6c0b2ec20beb7a32ed
[ "MIT" ]
null
null
null
client/core/scene/summary.py
krerkkiat/space-invader
428b1041c9246b55cb63bc6c0b2ec20beb7a32ed
[ "MIT" ]
null
null
null
import pygame from config import Config from core.ui import Table, Button from core.scene import Scene from core.manager import SceneManager from core.scene.preload import Preload
34.627451
109
0.656285
6e7654580b77f1dbecf04a37ead830e9b06ecf31
198
py
Python
mwptoolkit/module/Encoder/__init__.py
ShubhamAnandJain/MWP-CS229
ce86233504fdb37e104a3944fd81d4606fbfa621
[ "MIT" ]
71
2021-03-08T06:06:15.000Z
2022-03-30T11:59:37.000Z
mwptoolkit/module/Encoder/__init__.py
ShubhamAnandJain/MWP-CS229
ce86233504fdb37e104a3944fd81d4606fbfa621
[ "MIT" ]
13
2021-09-07T12:38:23.000Z
2022-03-22T15:08:16.000Z
mwptoolkit/module/Encoder/__init__.py
ShubhamAnandJain/MWP-CS229
ce86233504fdb37e104a3944fd81d4606fbfa621
[ "MIT" ]
21
2021-02-16T07:46:36.000Z
2022-03-23T13:41:33.000Z
from __future__ import absolute_import from __future__ import print_function from __future__ import division from mwptoolkit.module.Encoder import graph_based_encoder,rnn_encoder,transformer_encoder
49.5
89
0.90404
6e78083845e016661893639e08ffab0d50cff621
546
py
Python
src/python/intensity/components/shutdown_if_empty.py
kripken/intensityengine
9ae352b4f526ecb180004ae4968db7f64f140762
[ "MIT" ]
31
2015-01-18T20:27:31.000Z
2021-07-03T03:58:47.000Z
src/python/intensity/components/shutdown_if_empty.py
JamesLinus/intensityengine
9ae352b4f526ecb180004ae4968db7f64f140762
[ "MIT" ]
4
2015-07-05T21:09:37.000Z
2019-09-06T14:34:59.000Z
src/python/intensity/components/shutdown_if_empty.py
JamesLinus/intensityengine
9ae352b4f526ecb180004ae4968db7f64f140762
[ "MIT" ]
11
2015-02-03T19:24:10.000Z
2019-09-20T10:59:50.000Z
# Copyright 2010 Alon Zakai ('kripken'). All rights reserved. # This file is part of Syntensity/the Intensity Engine, an open source project. See COPYING.txt for licensing. from intensity.signals import client_connect, client_disconnect from intensity.base import quit client_connect.connect(add, weak=False) ...
22.75
110
0.717949
6e780b142bddebcec890df30277381a71e204488
694
py
Python
pyforms/utils/timeit.py
dominic-dev/pyformsd
23e31ceff2943bc0f7286d25dd14450a14b986af
[ "MIT" ]
null
null
null
pyforms/utils/timeit.py
dominic-dev/pyformsd
23e31ceff2943bc0f7286d25dd14450a14b986af
[ "MIT" ]
null
null
null
pyforms/utils/timeit.py
dominic-dev/pyformsd
23e31ceff2943bc0f7286d25dd14450a14b986af
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- __author__ = "Ricardo Ribeiro" __credits__ = ["Ricardo Ribeiro"] __license__ = "MIT" __version__ = "0.0" __maintainer__ = "Ricardo Ribeiro" __email__ = "ricardojvr@gmail.com" __status__ = "Development" import time from datetime import datetime, ...
27.76
156
0.674352
6e7a4b454a8651618254290e5f7ef6b4e1cd99a9
1,388
py
Python
cogs/botinfo.py
MM-coder/salbot-rewrite
322c34ba85a2c852e02cd3c183d5a7a4a077ff6f
[ "Apache-2.0" ]
1
2020-08-17T05:14:58.000Z
2020-08-17T05:14:58.000Z
cogs/botinfo.py
MM-coder/salbot-rewrite
322c34ba85a2c852e02cd3c183d5a7a4a077ff6f
[ "Apache-2.0" ]
null
null
null
cogs/botinfo.py
MM-coder/salbot-rewrite
322c34ba85a2c852e02cd3c183d5a7a4a077ff6f
[ "Apache-2.0" ]
1
2020-08-17T16:57:30.000Z
2020-08-17T16:57:30.000Z
""" Created by vcokltfre at 2020-07-08 """ import json import logging import time from datetime import datetime import discord from discord.ext import commands from discord.ext.commands import has_any_role
28.326531
119
0.591499
6e7b6d33ac9f184e61e6b426b75d7acfe7a99f1e
6,486
py
Python
ninja_extra/pagination.py
eadwinCode/django-ninja-extra
16246c466ab8895ba1bf29d69f3d3e9337031edd
[ "MIT" ]
43
2021-09-09T14:20:59.000Z
2022-03-28T00:38:52.000Z
ninja_extra/pagination.py
eadwinCode/django-ninja-extra
16246c466ab8895ba1bf29d69f3d3e9337031edd
[ "MIT" ]
6
2022-01-04T10:53:11.000Z
2022-03-28T19:53:46.000Z
ninja_extra/pagination.py
eadwinCode/django-ninja-extra
16246c466ab8895ba1bf29d69f3d3e9337031edd
[ "MIT" ]
null
null
null
import inspect import logging from collections import OrderedDict from functools import wraps from typing import TYPE_CHECKING, Any, Callable, Optional, Type, Union, cast, overload from django.core.paginator import InvalidPage, Page, Paginator from django.db.models import QuerySet from django.http import HttpRequest f...
31.333333
101
0.665433
6e7bea4cb2b85ac4aa392fccc69253e8cb2356b9
547
py
Python
text-boxes/test-textbox01.py
rajorshi-mukherjee/gui-python
356eef26975e63de48b441d336d75a1f9c232cf3
[ "MIT" ]
null
null
null
text-boxes/test-textbox01.py
rajorshi-mukherjee/gui-python
356eef26975e63de48b441d336d75a1f9c232cf3
[ "MIT" ]
3
2022-01-02T18:04:24.000Z
2022-01-12T16:35:31.000Z
text-boxes/test-textbox01.py
rajorshi-mukherjee/gui-python
356eef26975e63de48b441d336d75a1f9c232cf3
[ "MIT" ]
null
null
null
# !/usr/bin/python3 from tkinter import * top = Tk() top.geometry("400x250") name = Label(top, text = "Name").place(x = 30,y = 50) email = Label(top, text = "Email").place(x = 30, y = 90) password = Label(top, text = "Password").place(x = 30, y = 130) sbmitbtn = Button(top, text = "Submit",act...
30.388889
117
0.575868
6e7c1a4dd0214c41c2785c1779862d06bb157d94
873
py
Python
server/yafa/migrations/0002_auto_20160606_2216.py
mrmonkington/yafa
d15ba1fdaaa046e3bc07a7a44fb61213d686bb7d
[ "MIT" ]
null
null
null
server/yafa/migrations/0002_auto_20160606_2216.py
mrmonkington/yafa
d15ba1fdaaa046e3bc07a7a44fb61213d686bb7d
[ "MIT" ]
13
2016-08-10T19:22:35.000Z
2021-06-10T18:53:01.000Z
server/yafa/migrations/0002_auto_20160606_2216.py
mrmonkington/yafa
d15ba1fdaaa046e3bc07a7a44fb61213d686bb7d
[ "MIT" ]
2
2016-06-23T09:02:20.000Z
2021-03-22T11:39:20.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.6 on 2016-06-06 22:16 from __future__ import unicode_literals from django.db import migrations, models
24.25
63
0.54181
6e7d261c65a6ddf389725d10b7241f84b3620572
501
py
Python
toys/urls.py
julesc00/restful
11b5312caf4affeaa06e3ceb5b86a7c73357eed1
[ "MIT" ]
null
null
null
toys/urls.py
julesc00/restful
11b5312caf4affeaa06e3ceb5b86a7c73357eed1
[ "MIT" ]
null
null
null
toys/urls.py
julesc00/restful
11b5312caf4affeaa06e3ceb5b86a7c73357eed1
[ "MIT" ]
null
null
null
from django.urls import path from toys.views import (toy_list_view, toy_detail_view, toy_sql_view, toy_raw_sql_view, toy_aggregate_view) app_name = "toys" urlpatterns = [ path("toys/", toy_list_view, name="toys_list"), path("toys_sql/", toy_sql_view, name="toys_sql_list"), path("to...
35.785714
87
0.692615
6e7e694936dd85ec6e3ce90826c00f74519f89dc
5,590
py
Python
predict_image.py
sempwn/kaggle-cats-v-dogs
0b0e50ca5208248d18b31bfdd456cdb6401060d7
[ "MIT" ]
null
null
null
predict_image.py
sempwn/kaggle-cats-v-dogs
0b0e50ca5208248d18b31bfdd456cdb6401060d7
[ "MIT" ]
null
null
null
predict_image.py
sempwn/kaggle-cats-v-dogs
0b0e50ca5208248d18b31bfdd456cdb6401060d7
[ "MIT" ]
null
null
null
'''This script goes along the blog post "Building powerful image classification models using very little data" from blog.keras.io. It uses data that can be downloaded at: https://www.kaggle.com/c/dogs-vs-cats/data In our setup, we: - created a data/ folder - created train/ and validation/ subfolders inside data/ - crea...
38.287671
111
0.719499
6e7f3a4c08faec09d89aa387dcfdf45492ab2264
163
py
Python
ultimate-utils-proj-src/uutils/torch_uu/training/meta_training.py
brando90/ultimate-utils
9b7ca2e9d330333c4e49722d0708d65b22ed173a
[ "MIT" ]
5
2021-03-13T16:07:26.000Z
2021-09-09T17:00:36.000Z
ultimate-utils-proj-src/uutils/torch_uu/training/meta_training.py
brando90/ultimate-utils
9b7ca2e9d330333c4e49722d0708d65b22ed173a
[ "MIT" ]
8
2021-03-09T21:52:09.000Z
2021-12-02T17:23:33.000Z
ultimate-utils-proj-src/uutils/torch_uu/training/meta_training.py
brando90/ultimate-utils
9b7ca2e9d330333c4e49722d0708d65b22ed173a
[ "MIT" ]
5
2021-03-24T20:38:43.000Z
2022-03-17T07:54:12.000Z
""" TODO: Once I finish the d zero and high paper, I will port the code here. TODO: also put the epochs training, for the ml vs maml paper with synthetic data. """
40.75
81
0.730061
6e7ff5caf482e80185273f9434f18cc9786fbe99
692
py
Python
setup.py
ellwise/kedro-light
8f5a05d880f3ded23b024d5db72b5fc615e75230
[ "MIT" ]
2
2021-10-16T12:19:50.000Z
2022-01-20T16:50:14.000Z
setup.py
ellwise/kedro-light
8f5a05d880f3ded23b024d5db72b5fc615e75230
[ "MIT" ]
null
null
null
setup.py
ellwise/kedro-light
8f5a05d880f3ded23b024d5db72b5fc615e75230
[ "MIT" ]
null
null
null
from setuptools import setup from os import path # read the contents of your README file curr_dir = path.abspath(path.dirname(__file__)) with open(path.join(curr_dir, "README.md"), encoding="utf-8") as f: long_description = f.read() setup( name="kedro-light", version="0.1", description="A lightweight...
27.68
67
0.710983
6e812cd9d9f3ad6325c8b7be7fb0c2f7d95ff84f
1,217
py
Python
app.py
mh-github/mh-wtgw
0e8d9b622954e14d1e24fda6fc6a4e63af2cd822
[ "CC0-1.0" ]
null
null
null
app.py
mh-github/mh-wtgw
0e8d9b622954e14d1e24fda6fc6a4e63af2cd822
[ "CC0-1.0" ]
null
null
null
app.py
mh-github/mh-wtgw
0e8d9b622954e14d1e24fda6fc6a4e63af2cd822
[ "CC0-1.0" ]
null
null
null
import random from flask import Flask, request, render_template, jsonify app = Flask(__name__) data_list = [] with open('data.txt', 'r') as data_file: data_list = data_file.readlines() if __name__ == "__main__": app.run(host='0.0.0.0')
27.659091
98
0.57765
6e81c177879d88e6b010319496c61e52cdb196f1
13,606
py
Python
imported_files/plotting_cswl05.py
SoumyaShreeram/Locating_AGN_in_DM_halos
1cfbee69b2c000faee4ecb199d65c3235afbed42
[ "MIT" ]
null
null
null
imported_files/plotting_cswl05.py
SoumyaShreeram/Locating_AGN_in_DM_halos
1cfbee69b2c000faee4ecb199d65c3235afbed42
[ "MIT" ]
null
null
null
imported_files/plotting_cswl05.py
SoumyaShreeram/Locating_AGN_in_DM_halos
1cfbee69b2c000faee4ecb199d65c3235afbed42
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Plotting.py for notebook 05_Preliminary_comparison_of_simulations_AGN_fraction_with_data This python file contains all the functions used for plotting graphs and maps in the 2nd notebook (.ipynb) of the repository: 05. Preliminary comparison of the MM between simulation and data Script writ...
43.193651
269
0.648317
6e824c90d5cc97b09e96bf2d9fa8d40cff2f3778
1,797
py
Python
goatools/gosubdag/utils.py
camiloaruiz/goatools
3da97251ccb6c5e90b616c3f625513f8aba5aa10
[ "BSD-2-Clause" ]
null
null
null
goatools/gosubdag/utils.py
camiloaruiz/goatools
3da97251ccb6c5e90b616c3f625513f8aba5aa10
[ "BSD-2-Clause" ]
null
null
null
goatools/gosubdag/utils.py
camiloaruiz/goatools
3da97251ccb6c5e90b616c3f625513f8aba5aa10
[ "BSD-2-Clause" ]
null
null
null
"""Small lightweight utilities used frequently in GOATOOLS.""" __copyright__ = "Copyright (C) 2016-2018, DV Klopfenstein, H Tang, All rights reserved." __author__ = "DV Klopfenstein" def extract_kwargs(args, exp_keys, exp_elems): """Return user-specified keyword args in a dictionary and a set (for True/False ite...
41.790698
94
0.668893
6e82b8d1720684c00d864fb512765fbff3379ce5
309
py
Python
nicos_ess/ymir/setups/forwarder.py
ebadkamil/nicos
0355a970d627aae170c93292f08f95759c97f3b5
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
1
2021-03-26T10:30:45.000Z
2021-03-26T10:30:45.000Z
nicos_ess/ymir/setups/forwarder.py
ebadkamil/nicos
0355a970d627aae170c93292f08f95759c97f3b5
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
91
2020-08-18T09:20:26.000Z
2022-02-01T11:07:14.000Z
nicos_ess/ymir/setups/forwarder.py
ebadkamil/nicos
0355a970d627aae170c93292f08f95759c97f3b5
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
3
2020-08-04T18:35:05.000Z
2021-04-16T11:22:08.000Z
description = 'Monitors the status of the Forwarder' devices = dict( KafkaForwarder=device( 'nicos_ess.devices.forwarder.EpicsKafkaForwarder', description='Monitors the status of the Forwarder', statustopic='UTGARD_forwarderStatus', brokers=['172.30.242.20:9092']), )
30.9
59
0.68932
6e83557731c2fd4923e8fa481bc7d1048e5e106e
985
py
Python
codetree/cli.py
slank/codetree
c1aad059ad31aa1b3cca80a89861c659fce217ac
[ "MIT" ]
2
2015-03-16T11:46:28.000Z
2017-04-01T13:58:47.000Z
codetree/cli.py
slank/codetree
c1aad059ad31aa1b3cca80a89861c659fce217ac
[ "MIT" ]
null
null
null
codetree/cli.py
slank/codetree
c1aad059ad31aa1b3cca80a89861c659fce217ac
[ "MIT" ]
null
null
null
from argparse import ArgumentParser import logging from .config import Config import sys
30.78125
82
0.655838
6e85d5b6b7bc4a9b52702783da32bcd642bd2255
5,862
py
Python
notebooks/utils.py
cognoma/ml-workers
781763c8361d49023222c7349350c3c4774ce4fa
[ "BSD-3-Clause" ]
null
null
null
notebooks/utils.py
cognoma/ml-workers
781763c8361d49023222c7349350c3c4774ce4fa
[ "BSD-3-Clause" ]
13
2017-01-31T22:54:03.000Z
2021-02-02T21:42:33.000Z
notebooks/utils.py
cognoma/ml-workers
781763c8361d49023222c7349350c3c4774ce4fa
[ "BSD-3-Clause" ]
7
2017-06-29T14:19:11.000Z
2018-04-08T12:06:21.000Z
""" Methods for building Cognoma mutation classifiers Usage - Import only """ import pandas as pd from sklearn.metrics import roc_curve, roc_auc_score import plotnine as gg def get_model_coefficients(classifier, feature_set, covariate_names): """ Extract the feature names and associate them with the coeffi...
42.788321
85
0.638519
6e85eafe88b2abc4b10f2eb6623ed07ecab6567b
1,740
py
Python
docs/fossil-help-cmd.py
smitty1eGH/pyphlogiston
5134be190cdb31ace04ac5ce2e699a48e54e036e
[ "MIT" ]
null
null
null
docs/fossil-help-cmd.py
smitty1eGH/pyphlogiston
5134be190cdb31ace04ac5ce2e699a48e54e036e
[ "MIT" ]
null
null
null
docs/fossil-help-cmd.py
smitty1eGH/pyphlogiston
5134be190cdb31ace04ac5ce2e699a48e54e036e
[ "MIT" ]
null
null
null
from subprocess import run cmds = [ "3-way-merge", "ci", "help", "push", "stash", "add", "clean", "hook", "rebuild", "status", "addremove", "clone", "http", "reconstruct", "sync", "alerts", "close", "import", "redo", "tag", "all", ...
14.745763
77
0.440805
6e89094dd4c599ed774bc54e2865f3ed2293d233
257
bzl
Python
internal/copts.bzl
zaucy/bzlws
a8f3e4b0bc168059ec92971b1ea7c214db2c5454
[ "MIT" ]
4
2021-07-21T01:43:50.000Z
2021-11-18T03:23:18.000Z
internal/copts.bzl
zaucy/bzlws
a8f3e4b0bc168059ec92971b1ea7c214db2c5454
[ "MIT" ]
null
null
null
internal/copts.bzl
zaucy/bzlws
a8f3e4b0bc168059ec92971b1ea7c214db2c5454
[ "MIT" ]
1
2022-02-03T07:53:17.000Z
2022-02-03T07:53:17.000Z
_msvc_copts = ["/std:c++17"] _clang_cl_copts = ["/std:c++17"] _gcc_copts = ["-std=c++17"] copts = select({ "@bazel_tools//tools/cpp:msvc": _msvc_copts, "@bazel_tools//tools/cpp:clang-cl": _clang_cl_copts, "//conditions:default": _gcc_copts, })
25.7
56
0.649805
6e8aa5fdaccdc2cf8e079b7b4e650e213a55472a
1,154
py
Python
monitor.py
projectsbyif/trillian-demo-audit
5bb08ae3c359698d8beb47ced39d21e793539396
[ "Apache-2.0" ]
null
null
null
monitor.py
projectsbyif/trillian-demo-audit
5bb08ae3c359698d8beb47ced39d21e793539396
[ "Apache-2.0" ]
1
2021-06-02T02:13:46.000Z
2021-06-02T02:13:46.000Z
monitor.py
projectsbyif/trillian-demo-audit
5bb08ae3c359698d8beb47ced39d21e793539396
[ "Apache-2.0" ]
null
null
null
import logging import sys from trillian import TrillianLog from print_helper import Print from pprint import pprint if __name__ == '__main__': main(sys.argv)
26.227273
70
0.707972
6e8b21d90213008722c8b31b5d6059ea9e59aa07
875
py
Python
src/geocurrency/units/urls.py
OpenPrunus/geocurrency
23cc075377d47ac631634cd71fd0e7d6b0a57bad
[ "MIT" ]
5
2021-01-28T16:45:49.000Z
2021-08-15T06:47:17.000Z
src/geocurrency/units/urls.py
OpenPrunus/geocurrency
23cc075377d47ac631634cd71fd0e7d6b0a57bad
[ "MIT" ]
8
2020-10-01T15:12:45.000Z
2021-10-05T14:45:33.000Z
src/geocurrency/units/urls.py
OpenPrunus/geocurrency
23cc075377d47ac631634cd71fd0e7d6b0a57bad
[ "MIT" ]
2
2021-01-28T16:43:16.000Z
2021-10-05T14:25:25.000Z
""" Units module URLs """ from django.conf.urls import url, include from django.urls import path from rest_framework import routers from .viewsets import UnitSystemViewset, UnitViewset, \ ConvertView, CustomUnitViewSet from geocurrency.calculations.viewsets import ValidateViewSet, CalculationView app_name = 'uni...
31.25
78
0.726857
6e8ba5d71602dfafef83788dd25424753fb81302
22
py
Python
rtk/_reports_/__init__.py
rakhimov/rtk
adc35e218ccfdcf3a6e3082f6a1a1d308ed4ff63
[ "BSD-3-Clause" ]
null
null
null
rtk/_reports_/__init__.py
rakhimov/rtk
adc35e218ccfdcf3a6e3082f6a1a1d308ed4ff63
[ "BSD-3-Clause" ]
null
null
null
rtk/_reports_/__init__.py
rakhimov/rtk
adc35e218ccfdcf3a6e3082f6a1a1d308ed4ff63
[ "BSD-3-Clause" ]
2
2020-04-03T04:14:42.000Z
2021-02-22T05:30:35.000Z
from tabular import *
11
21
0.772727
6e8c6eb072fed5f8eeeb59211773c40061897cf1
383
py
Python
backend/urls.py
starmarek/organize-me-2
bd9b73d3e6d9a4ebc4cbb8a20c97729bdc6b1377
[ "MIT" ]
1
2021-03-09T20:49:51.000Z
2021-03-09T20:49:51.000Z
backend/urls.py
starmarek/organize-me-2
bd9b73d3e6d9a4ebc4cbb8a20c97729bdc6b1377
[ "MIT" ]
7
2021-05-08T11:05:15.000Z
2021-05-08T11:12:27.000Z
backend/urls.py
starmarek/organize-me-2
bd9b73d3e6d9a4ebc4cbb8a20c97729bdc6b1377
[ "MIT" ]
null
null
null
from django.contrib import admin from django.urls import include, path from rest_framework import routers from .shifts.views import ShiftView from .workers.views import WorkerView router = routers.DefaultRouter() router.register("workers", WorkerView) router.register("shifts", ShiftView) urlpatterns = [ path("ad...
23.9375
38
0.762402
6e8d075cdc130105dd93cb71efed865a3cfcfbc8
257
py
Python
ssk/alpha/api.py
jobliz/solid-state-kinetics
c5767b400b19bd0256c806001664f0b369718bab
[ "MIT" ]
2
2017-03-08T21:32:11.000Z
2017-07-19T03:27:18.000Z
ssk/alpha/api.py
jobliz/solid-state-kinetics
c5767b400b19bd0256c806001664f0b369718bab
[ "MIT" ]
null
null
null
ssk/alpha/api.py
jobliz/solid-state-kinetics
c5767b400b19bd0256c806001664f0b369718bab
[ "MIT" ]
null
null
null
from __future__ import division import numpy as np from scipy import integrate __all__ = ['area', 'simple']
17.133333
72
0.669261
6e8f20f780d781f8cdc23f8a2e62a4a9d0aaaf14
6,451
py
Python
randominette.py
Dutesier/randominette
2260c0f521d9fcc97f30a8cceb36c94dbee3d474
[ "MIT" ]
null
null
null
randominette.py
Dutesier/randominette
2260c0f521d9fcc97f30a8cceb36c94dbee3d474
[ "MIT" ]
null
null
null
randominette.py
Dutesier/randominette
2260c0f521d9fcc97f30a8cceb36c94dbee3d474
[ "MIT" ]
2
2022-01-19T00:27:59.000Z
2022-01-19T03:46:21.000Z
# **************************************************************************** # # # # ::: :::::::: # # randominette.py :+: :+: :+: ...
38.39881
148
0.509068
6e918c5815dd4774b7932aa1ec3b9fffa1176641
750
py
Python
newsman/factories.py
acapitanelli/newsman
3f109f42afe6131383fba1e118b7b9457d76096b
[ "MIT" ]
null
null
null
newsman/factories.py
acapitanelli/newsman
3f109f42afe6131383fba1e118b7b9457d76096b
[ "MIT" ]
null
null
null
newsman/factories.py
acapitanelli/newsman
3f109f42afe6131383fba1e118b7b9457d76096b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """This module provides a way to initialize components for processing pipeline. Init functions are stored into a dictionary which can be used by `Pipeline` to load components on demand. """ from .pipeline import Byte2html, Html2text, Html2image, Html2meta, Text2title def build_factories(): ...
32.608696
78
0.698667
6e91c4809b083bd8e190189c7a4286818bc08e69
3,673
py
Python
deprecated.py
thu-fit/DCGAN-anime
da549bd45a6ca3c4c5a8894945d3242c59f823a0
[ "MIT" ]
null
null
null
deprecated.py
thu-fit/DCGAN-anime
da549bd45a6ca3c4c5a8894945d3242c59f823a0
[ "MIT" ]
null
null
null
deprecated.py
thu-fit/DCGAN-anime
da549bd45a6ca3c4c5a8894945d3242c59f823a0
[ "MIT" ]
null
null
null
def sampler(self, z, y=None): '''generate iamge given z''' with tf.variable_scope("generator") as scope: # we hope the weights defined in generator to be reused scope.reuse_variables() if not self.y_dim: s_h, s_w = self.output_height, self.output_width s_h2, s_w2 = conv_ou...
39.494624
103
0.613395
6e922f24956d34276912f3a429414da7e22eb9ef
14,915
py
Python
Prioritize/get_HPO_similarity_score.py
mbosio85/ediva
c0a1aa4dd8951fa659483164c3706fb9374beb95
[ "MIT" ]
1
2021-02-23T07:42:42.000Z
2021-02-23T07:42:42.000Z
Prioritize/get_HPO_similarity_score.py
mbosio85/ediva
c0a1aa4dd8951fa659483164c3706fb9374beb95
[ "MIT" ]
null
null
null
Prioritize/get_HPO_similarity_score.py
mbosio85/ediva
c0a1aa4dd8951fa659483164c3706fb9374beb95
[ "MIT" ]
1
2019-09-26T01:21:06.000Z
2019-09-26T01:21:06.000Z
## how we measure the similarity between two lists w/ IC per each node ## we have a DAG strucutre ## goal is for each Gene !! output a 'semantic distance' # based on https://www.ncbi.nlm.nih.gov/pmc/articles/PMC2756558/ [but different] # with this two equal nodes will have distance '0' # maximum distance is -2log(1/...
32.852423
158
0.578947
6e942a1e8c0fd4f03d779fd36629d8f97651ff14
364
py
Python
tests/tfgraph/utils/test_datasets.py
tfgraph/tfgraph
19ae968b3060275c631dc601757646abaf1f58a1
[ "Apache-2.0" ]
4
2017-07-23T13:48:35.000Z
2021-12-03T18:11:50.000Z
tests/tfgraph/utils/test_datasets.py
tfgraph/tfgraph
19ae968b3060275c631dc601757646abaf1f58a1
[ "Apache-2.0" ]
21
2017-07-23T13:15:20.000Z
2020-09-28T02:13:11.000Z
tests/tfgraph/utils/test_datasets.py
tfgraph/tfgraph
19ae968b3060275c631dc601757646abaf1f58a1
[ "Apache-2.0" ]
1
2017-07-28T10:28:04.000Z
2017-07-28T10:28:04.000Z
import tfgraph
24.266667
81
0.653846
6e94f020370af25596b5a73fe263fae2cf996278
668
py
Python
deploy/virenv/lib/python2.7/site-packages/haystack/outputters/__init__.py
wangvictor2012/liuwei
0a06f8fd56d78162f81f1e7e7def7bfdeb4472e1
[ "BSD-3-Clause" ]
null
null
null
deploy/virenv/lib/python2.7/site-packages/haystack/outputters/__init__.py
wangvictor2012/liuwei
0a06f8fd56d78162f81f1e7e7def7bfdeb4472e1
[ "BSD-3-Clause" ]
null
null
null
deploy/virenv/lib/python2.7/site-packages/haystack/outputters/__init__.py
wangvictor2012/liuwei
0a06f8fd56d78162f81f1e7e7def7bfdeb4472e1
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ :mod:`haystack.outputs` -- classes that create an output ============================================================================== """ from haystack import utils
27.833333
85
0.591317
6e9649858a66821226a8387a5c2ae25467b9d1c9
631
py
Python
adminmgr/media/code/python/red3/BD_543_565_624_reducer.py
IamMayankThakur/test-bigdata
cef633eb394419b955bdce479699d0115d8f99c3
[ "Apache-2.0" ]
9
2019-11-08T02:05:27.000Z
2021-12-13T12:06:35.000Z
adminmgr/media/code/config/BD_543_565_624_reducer.py
IamMayankThakur/test-bigdata
cef633eb394419b955bdce479699d0115d8f99c3
[ "Apache-2.0" ]
6
2019-11-27T03:23:16.000Z
2021-06-10T19:15:13.000Z
adminmgr/media/code/python/red3/BD_543_565_624_reducer.py
IamMayankThakur/test-bigdata
cef633eb394419b955bdce479699d0115d8f99c3
[ "Apache-2.0" ]
4
2019-11-26T17:04:27.000Z
2021-12-13T11:57:03.000Z
#!/usr/bin/python3 import sys # f=open("reduce3.csv","w+") di={} for y in sys.stdin: Record=list(map(str,y.split(","))) if(len(Record)>3): Record=[Record[0]+","+Record[1],Record[2],Record[3]] s=int(Record[2][:-1]) if (Record[0],Record[1]) not in di: di[(Record[0],Record[1])]=[s,1] else: di[(Record[0],Record[...
24.269231
54
0.557845
6e9740ebd2a997095586f788ec3e7c7b37619818
9,622
py
Python
hbgd_data_store_server/studies/management/commands/load_idx.py
pcstout/study-explorer
b49a6853d8155f1586360138ed7f87d165793184
[ "Apache-2.0" ]
2
2019-04-02T14:31:27.000Z
2020-04-13T20:41:46.000Z
hbgd_data_store_server/studies/management/commands/load_idx.py
pcstout/study-explorer
b49a6853d8155f1586360138ed7f87d165793184
[ "Apache-2.0" ]
7
2019-08-07T14:44:54.000Z
2020-06-05T17:30:51.000Z
hbgd_data_store_server/studies/management/commands/load_idx.py
pcstout/study-explorer
b49a6853d8155f1586360138ed7f87d165793184
[ "Apache-2.0" ]
1
2019-03-27T01:32:30.000Z
2019-03-27T01:32:30.000Z
# Copyright 2017-present, Bill & Melinda Gates Foundation # # 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 ...
35.902985
84
0.610788
6e97ddc9ef075e7d004c1410ff22b946e2b0175d
1,937
py
Python
setup.py
hojinYang/neureca
b1eb7246b731b7a0c7264b47c1c27239b9fe1224
[ "Apache-2.0" ]
7
2021-08-24T14:34:33.000Z
2021-12-10T12:43:50.000Z
setup.py
hojinYang/neureca
b1eb7246b731b7a0c7264b47c1c27239b9fe1224
[ "Apache-2.0" ]
null
null
null
setup.py
hojinYang/neureca
b1eb7246b731b7a0c7264b47c1c27239b9fe1224
[ "Apache-2.0" ]
1
2021-09-10T17:50:38.000Z
2021-09-10T17:50:38.000Z
from setuptools import setup, find_packages with open("README.md", encoding="utf-8") as f: long_description = f.read() setup( name="neureca", version="0.0.1", description="A framework for building conversational recommender systems", long_description=long_description, long_description_content_...
32.283333
89
0.565823
6e98642f2b6b958a07ac0e545cf862d4394aa56c
786
py
Python
Thread.PY/thread-rlock.py
Phoebus-Ma/Python-Helper
d880729f0bbfbc2b1503602fd74c9177ecd4e970
[ "MIT" ]
null
null
null
Thread.PY/thread-rlock.py
Phoebus-Ma/Python-Helper
d880729f0bbfbc2b1503602fd74c9177ecd4e970
[ "MIT" ]
null
null
null
Thread.PY/thread-rlock.py
Phoebus-Ma/Python-Helper
d880729f0bbfbc2b1503602fd74c9177ecd4e970
[ "MIT" ]
null
null
null
### # Thread rlock test. # # License - MIT. ### import time from threading import Thread, RLock # thread_test2 - Thread test2 function. # } # thread_test1 - Thread test1 function. # } # Main function. # } # Program entry. if '__main__' == __name__: main()
14.290909
64
0.619593
6e98aa2320fefc8b613e9eb26ab879e97d03ea24
1,319
py
Python
api/python/tests/test_bingo_nosql.py
tsingdao-Tp/Indigo
b2d73faebb6a450e9b3d34fed553fad4f9d0012f
[ "Apache-2.0" ]
204
2015-11-06T21:34:34.000Z
2022-03-30T16:17:01.000Z
api/python/tests/test_bingo_nosql.py
tsingdao-Tp/Indigo
b2d73faebb6a450e9b3d34fed553fad4f9d0012f
[ "Apache-2.0" ]
509
2015-11-05T13:54:43.000Z
2022-03-30T22:15:30.000Z
api/python/tests/test_bingo_nosql.py
tsingdao-Tp/Indigo
b2d73faebb6a450e9b3d34fed553fad4f9d0012f
[ "Apache-2.0" ]
89
2015-11-17T08:22:54.000Z
2022-03-17T04:26:28.000Z
import shutil import tempfile from indigo.bingo import Bingo from tests import TestIndigoBase
33.820513
87
0.64746
6e9910237b294e11a1a1bbded611300e71f69a4f
3,932
py
Python
src/core/src/tortuga/scripts/get_kit.py
sutasu/tortuga
48d7cde4fa652346600b217043b4a734fa2ba455
[ "Apache-2.0" ]
33
2018-03-02T17:07:39.000Z
2021-05-21T18:02:51.000Z
src/core/src/tortuga/scripts/get_kit.py
sutasu/tortuga
48d7cde4fa652346600b217043b4a734fa2ba455
[ "Apache-2.0" ]
201
2018-03-05T14:28:24.000Z
2020-11-23T19:58:27.000Z
src/core/src/tortuga/scripts/get_kit.py
sutasu/tortuga
48d7cde4fa652346600b217043b4a734fa2ba455
[ "Apache-2.0" ]
23
2018-03-02T17:21:59.000Z
2020-11-18T14:52:38.000Z
# Copyright 2008-2018 Univa 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 to in...
31.96748
74
0.559003
6e99d90082f82cff092fcb68582087a7ab692e17
2,264
py
Python
examples.py
ThyagoFRTS/power-eletric
dd26cd5ffb2aca0741d8983e57351488badc64da
[ "MIT" ]
1
2021-11-07T02:31:58.000Z
2021-11-07T02:31:58.000Z
examples.py
ThyagoFRTS/power-eletric
dd26cd5ffb2aca0741d8983e57351488badc64da
[ "MIT" ]
null
null
null
examples.py
ThyagoFRTS/power-eletric
dd26cd5ffb2aca0741d8983e57351488badc64da
[ "MIT" ]
null
null
null
from power_sizing import calculate_power_luminance from power_sizing import calculate_number_and_power_of_tugs from conductor_sizing import conduction_capacity from conductor_sizing import minimum_section from conductor_sizing import voltage_drop from conductor_sizing import harmonic_rate from neutral_sizing import get...
48.170213
153
0.774293
6e9df45528e4294de8ca5838baa62293adbb002d
784
py
Python
myapp/migrations/0008_doctordata_specialist.py
sarodemayur55/Hospital_Management_Website
a90e64d2b02482d7ad69a807365bdc0abfca4212
[ "Apache-2.0" ]
1
2022-02-08T16:37:43.000Z
2022-02-08T16:37:43.000Z
myapp/migrations/0008_doctordata_specialist.py
sarodemayur55/Hospital_Management_Website
a90e64d2b02482d7ad69a807365bdc0abfca4212
[ "Apache-2.0" ]
null
null
null
myapp/migrations/0008_doctordata_specialist.py
sarodemayur55/Hospital_Management_Website
a90e64d2b02482d7ad69a807365bdc0abfca4212
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.1.6 on 2021-05-15 11:46 from django.db import migrations, models
27.034483
83
0.53699
6e9f10181a7ecfeffe5b3e63362769aa8677cc14
12,338
py
Python
eventide/message.py
blakev/python-eventide
ef547a622c52eec8acb9d7ca4cc01fae0ab7bad0
[ "MIT" ]
1
2021-01-14T18:35:44.000Z
2021-01-14T18:35:44.000Z
eventide/message.py
blakev/python-eventide
ef547a622c52eec8acb9d7ca4cc01fae0ab7bad0
[ "MIT" ]
null
null
null
eventide/message.py
blakev/python-eventide
ef547a622c52eec8acb9d7ca4cc01fae0ab7bad0
[ "MIT" ]
2
2021-04-20T22:09:02.000Z
2021-07-29T21:52:30.000Z
#! /usr/bin/env python # -*- coding: utf-8 -*- # # >> # python-eventide, 2020 # LiveViewTech # << from uuid import UUID, uuid4 from datetime import datetime from operator import attrgetter from functools import total_ordering from dataclasses import ( field, asdict, fields, dataclass, _process_...
33.710383
92
0.623197
6e9f30208ea04fa7ad96c88e5f93a7fce170ab1e
10,926
py
Python
utils/minifier.py
MateuszDabrowski/elquent
9ff9c57d01a8ade7ebc7a903f228d4b7ed7324c4
[ "MIT" ]
4
2021-05-26T19:48:31.000Z
2022-03-01T03:52:39.000Z
utils/minifier.py
MateuszDabrowski/ELQuent
9ff9c57d01a8ade7ebc7a903f228d4b7ed7324c4
[ "MIT" ]
null
null
null
utils/minifier.py
MateuszDabrowski/ELQuent
9ff9c57d01a8ade7ebc7a903f228d4b7ed7324c4
[ "MIT" ]
3
2021-03-05T23:06:38.000Z
2021-10-05T19:56:28.000Z
#!/usr/bin/env python3.6 # -*- coding: utf8 -*- ''' ELQuent.minifier E-mail code minifier Mateusz Dbrowski github.com/MateuszDabrowski linkedin.com/in/mateusz-dabrowski-marketing/ ''' import os import re import sys import json import pyperclip from colorama import Fore, Style, init # ELQuent imports import utils.ap...
33.618462
116
0.532857
6ea22002e9ef59fb7dc0ae80af6cf9fc57e8fc02
2,305
py
Python
doc/conf.py
safay/uta
bf3cf5a531aec4cca61f8926e79a624d01c76682
[ "Apache-2.0" ]
48
2016-09-20T16:28:46.000Z
2022-02-02T10:32:02.000Z
doc/conf.py
safay/uta
bf3cf5a531aec4cca61f8926e79a624d01c76682
[ "Apache-2.0" ]
45
2016-12-12T23:41:12.000Z
2022-02-09T11:48:04.000Z
doc/conf.py
safay/uta
bf3cf5a531aec4cca61f8926e79a624d01c76682
[ "Apache-2.0" ]
20
2016-10-09T10:16:44.000Z
2021-06-18T02:19:58.000Z
############################################################################ # Theme setup html_theme = 'invitae' html_theme_path = ['themes'] if html_theme == 'sphinx_rtd_theme': import sphinx_rtd_theme html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] elif html_theme == 'bootstrap': import sphi...
29.935065
77
0.647722
6ea3527b6763af10afefd4e777c572e2ac4172fc
997
py
Python
exercises_gustguan/ex113.py
Ewerton12F/Python-Notebook
85c4d38c35c6063fb475c25ebf4645688ec9dbcb
[ "MIT" ]
null
null
null
exercises_gustguan/ex113.py
Ewerton12F/Python-Notebook
85c4d38c35c6063fb475c25ebf4645688ec9dbcb
[ "MIT" ]
null
null
null
exercises_gustguan/ex113.py
Ewerton12F/Python-Notebook
85c4d38c35c6063fb475c25ebf4645688ec9dbcb
[ "MIT" ]
null
null
null
li = leiaInt('Digite um nmero inteiro: ') lr = leiaFloat('Digite um nmero real: ') print(f'\033[1;3;34mO valor inteiro foi {li} e o real foi {lr}.\033[0;0;0m')
33.233333
93
0.565697
6ea43d3eb6ab1823ba2e818e55cba7f4297fc931
10,851
py
Python
frameworks/kafka/tests/auth.py
minyk/dcos-activemq
57a0cf01053a7e2dc59020ed5cbb93f0d1c9cff1
[ "Apache-2.0" ]
null
null
null
frameworks/kafka/tests/auth.py
minyk/dcos-activemq
57a0cf01053a7e2dc59020ed5cbb93f0d1c9cff1
[ "Apache-2.0" ]
null
null
null
frameworks/kafka/tests/auth.py
minyk/dcos-activemq
57a0cf01053a7e2dc59020ed5cbb93f0d1c9cff1
[ "Apache-2.0" ]
null
null
null
import json import logging import retrying import sdk_cmd LOG = logging.getLogger(__name__) def wait_for_brokers(client: str, brokers: list): """ Run bootstrap on the specified client to resolve the list of brokers """ LOG.info("Running bootstrap to wait for DNS resolution") bootstrap_cmd = ['/o...
35.345277
117
0.599853
6ea45f9b51639f8a0b82e891df2cc0bae0501648
1,242
py
Python
python/problem-060.py
mbuhot/mbuhot-euler-solutions
30066543cfd2d84976beb0605839750b64f4b8ef
[ "MIT" ]
1
2015-12-18T13:25:41.000Z
2015-12-18T13:25:41.000Z
python/problem-060.py
mbuhot/mbuhot-euler-solutions
30066543cfd2d84976beb0605839750b64f4b8ef
[ "MIT" ]
null
null
null
python/problem-060.py
mbuhot/mbuhot-euler-solutions
30066543cfd2d84976beb0605839750b64f4b8ef
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 import prime description = ''' Prime pair sets Problem 60 The primes 3, 7, 109, and 673, are quite remarkable. By taking any two primes and concatenating them in any order the result will always be prime. For example, taking 7 and 109, both 7109 and 1097 are prime. The sum of these four primes...
29.571429
313
0.681159
6ea54be459981a2401f315126f120b27aa749589
5,298
py
Python
multilanguage_frappe_website/hooks.py
developmentforpeople/frappe-multilingual-website
c0bf74453f3d1de6127ad174aab6c05360cc1ec1
[ "MIT" ]
null
null
null
multilanguage_frappe_website/hooks.py
developmentforpeople/frappe-multilingual-website
c0bf74453f3d1de6127ad174aab6c05360cc1ec1
[ "MIT" ]
null
null
null
multilanguage_frappe_website/hooks.py
developmentforpeople/frappe-multilingual-website
c0bf74453f3d1de6127ad174aab6c05360cc1ec1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from . import __version__ as app_version app_name = "multilanguage_frappe_website" app_title = "Multilanguage Frappe Website" app_publisher = "DFP developmentforpeople" app_description = "Multilanguage Frappe Framework website example" app_icon = "octicon...
29.597765
99
0.714232
6ea56221c4382d050ea20b187d845407bd8d039d
90
py
Python
renormalizer/mps/tdh/__init__.py
liwt31/Renormalizer
123a9d53f4f5f32c0088c255475f0ee60d02c745
[ "Apache-2.0" ]
null
null
null
renormalizer/mps/tdh/__init__.py
liwt31/Renormalizer
123a9d53f4f5f32c0088c255475f0ee60d02c745
[ "Apache-2.0" ]
null
null
null
renormalizer/mps/tdh/__init__.py
liwt31/Renormalizer
123a9d53f4f5f32c0088c255475f0ee60d02c745
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from renormalizer.mps.tdh.propagation import unitary_propagation
22.5
64
0.755556
6ea5d0975fd4eec1bb06ec6bc86c9a210abd074c
398
py
Python
items/Boots_Of_Speed.py
ivoryhuang/LOL_simple_text_version
13c98721ad094c4eb6b835c838805c77dc9075c5
[ "MIT" ]
2
2017-01-08T15:53:49.000Z
2017-01-19T17:24:53.000Z
items/Boots_Of_Speed.py
ivoryhuang/LOL_simple_text_version
13c98721ad094c4eb6b835c838805c77dc9075c5
[ "MIT" ]
null
null
null
items/Boots_Of_Speed.py
ivoryhuang/LOL_simple_text_version
13c98721ad094c4eb6b835c838805c77dc9075c5
[ "MIT" ]
null
null
null
from items.Item import Item
28.428571
75
0.701005
6ea618363d6a6f275346b95643dd61b27b8e3d12
12,045
py
Python
RsNet/train_models.py
gehuangyi20/random_spiking
c98b550420ae4061b9d47ca475e86c981caf5514
[ "MIT" ]
1
2020-08-03T17:47:40.000Z
2020-08-03T17:47:40.000Z
RsNet/train_models.py
gehuangyi20/random_spiking
c98b550420ae4061b9d47ca475e86c981caf5514
[ "MIT" ]
null
null
null
RsNet/train_models.py
gehuangyi20/random_spiking
c98b550420ae4061b9d47ca475e86c981caf5514
[ "MIT" ]
null
null
null
## train_models.py -- train the neural network models for attacking ## ## Copyright (C) 2016, Nicholas Carlini <nicholas@carlini.com>. ## ## This program is licenced under the BSD 2-Clause licence, ## contained in the LICENCE file in this directory. ## Modified for the needs of MagNet. import os import argparse impor...
47.235294
118
0.703778
6ea71b4513f1f9f11b82f5034de5e9e21242e450
3,151
py
Python
link_crawler.py
Stevearzh/greedy-spider
ca8b1d892e4ac5066ab33aafe7755ee959ef630a
[ "MIT" ]
null
null
null
link_crawler.py
Stevearzh/greedy-spider
ca8b1d892e4ac5066ab33aafe7755ee959ef630a
[ "MIT" ]
null
null
null
link_crawler.py
Stevearzh/greedy-spider
ca8b1d892e4ac5066ab33aafe7755ee959ef630a
[ "MIT" ]
null
null
null
import datetime import re import time import urllib from urllib import robotparser from urllib.request import urlparse from downloader import Downloader DEFAULT_DELAY = 5 DEFAULT_DEPTH = -1 DEFAULT_URL = -1 DEFAULT_AGENT = 'wswp' DEFAULT_RETRY = 1 DEFAULT_TIMEOUT = 60 DEFAULT_IGNORE_ROBOTS = False def link_crawler...
28.645455
100
0.668042
6ea734988dbfada1408954f978d47bd46b1b2de0
1,994
py
Python
Array.diff.py
ErosMLima/last-classes-js-py-node-php
14775adaa3372c03c1e73d0699516f759e162dc5
[ "MIT" ]
2
2020-08-01T03:31:28.000Z
2021-02-02T15:17:31.000Z
Array.diff.py
ErosMLima/last-classes-js-py-node-php
14775adaa3372c03c1e73d0699516f759e162dc5
[ "MIT" ]
null
null
null
Array.diff.py
ErosMLima/last-classes-js-py-node-php
14775adaa3372c03c1e73d0699516f759e162dc5
[ "MIT" ]
null
null
null
#Array.diff.py OKS function array_diff(a, b) { return a.filter(function(x) { return b,index(x) == -1; }); } #solution 2 for array,diff function array_diff(a, b) { return a.filter(e => !b.includes(e)); } function array_diff(a, b) { return a.filter(e => !b.includes(e)); } #Bouncing Balls ok ...
18.127273
76
0.587763