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
ec3bb2c057a7335bc7b7c259d5b3bdf7afe090da
36
py
Python
python/user/bot/__init__.py
star123good/DAML-Chat-Projectdabl
977cf3ae6ac4d283e903e22430962bb03f8a863f
[ "Apache-2.0" ]
1
2021-01-07T02:20:58.000Z
2021-01-07T02:20:58.000Z
python/user/bot/__init__.py
star123good/DAML-Chat-Projectdabl
977cf3ae6ac4d283e903e22430962bb03f8a863f
[ "Apache-2.0" ]
11
2020-03-30T17:54:23.000Z
2022-02-26T22:54:04.000Z
python/user/bot/__init__.py
star123good/DAML-Chat-Projectdabl
977cf3ae6ac4d283e903e22430962bb03f8a863f
[ "Apache-2.0" ]
3
2020-04-30T19:56:09.000Z
2021-04-14T10:15:40.000Z
from .user_bot import main main()
7.2
26
0.722222
ec3d018ff3d0640052c42c4cb920908caff7f29a
501
py
Python
utility/error.py
ghowland/dirdb
38d346885c5411884b5b7252dc2f09ba42972caa
[ "MIT" ]
1
2017-07-23T16:04:53.000Z
2017-07-23T16:04:53.000Z
utility/error.py
ghowland/dirdb
38d346885c5411884b5b7252dc2f09ba42972caa
[ "MIT" ]
null
null
null
utility/error.py
ghowland/dirdb
38d346885c5411884b5b7252dc2f09ba42972caa
[ "MIT" ]
null
null
null
""" Error Reporting """ import sys def Error(text, options, exit_code=1): """Fail with an error. Options are required to deliver proper output.""" #output = {'error': text, 'exit_code':exit_code} # ## Format errors and output them, in the specified fashion #format.FormatAndOuput(output, options) sys.st...
20.04
76
0.670659
ec3dc28530fe4924d20c0daed2348023f8fb6f20
820
py
Python
python/flask/3_post_request/app.py
apt-info/samples
dc6bc7da015397aff0e745f6b4c6cfb7be62e4fa
[ "MIT" ]
6
2020-03-30T06:08:08.000Z
2022-03-28T04:20:02.000Z
python/flask/3_post_request/app.py
apt-info/samples
dc6bc7da015397aff0e745f6b4c6cfb7be62e4fa
[ "MIT" ]
null
null
null
python/flask/3_post_request/app.py
apt-info/samples
dc6bc7da015397aff0e745f6b4c6cfb7be62e4fa
[ "MIT" ]
4
2020-10-08T03:33:01.000Z
2022-03-30T12:22:29.000Z
# _*_ coding: utf-8 _*_ from flask import Flask, request import json import requests app = Flask(__name__) if __name__ == '__main__': app.debug = True app.run()
21.025641
85
0.602439
ec40bbd517e3c02e18567a2d5b21aca1aa15f393
896
py
Python
labellab-flask/api/routes/images.py
AkMo3/LabelLab
1f16905bba1a332035d082cfc6337b8551478e05
[ "Apache-2.0" ]
null
null
null
labellab-flask/api/routes/images.py
AkMo3/LabelLab
1f16905bba1a332035d082cfc6337b8551478e05
[ "Apache-2.0" ]
null
null
null
labellab-flask/api/routes/images.py
AkMo3/LabelLab
1f16905bba1a332035d082cfc6337b8551478e05
[ "Apache-2.0" ]
null
null
null
from flask import Blueprint from api.controllers import imagescontroller imagesprint = Blueprint("images", __name__) imagesprint.add_url_rule( "/image/create/<int:project_id>", view_func=imagescontroller.imageController["save_image"], methods=["POST"] ) imagesprint.add_url_rule( "/image/get/<int:p...
25.6
66
0.728795
ec4378bb4ce358808d41359aa59acc20ceb4f275
278
py
Python
PyLaGriT/setup.py
millerta/LaGriT-1
511ef22f3b7e839c7e0484604cd7f6a2278ae6b9
[ "CNRI-Python" ]
1
2019-11-01T18:12:10.000Z
2019-11-01T18:12:10.000Z
PyLaGriT/setup.py
millerta/LaGriT-1
511ef22f3b7e839c7e0484604cd7f6a2278ae6b9
[ "CNRI-Python" ]
null
null
null
PyLaGriT/setup.py
millerta/LaGriT-1
511ef22f3b7e839c7e0484604cd7f6a2278ae6b9
[ "CNRI-Python" ]
1
2019-09-29T08:35:55.000Z
2019-09-29T08:35:55.000Z
from distutils.core import setup import os setup(name='pylagrit', version='1.0.0', description='Python interface for LaGriT', author='Dylan R. Harp', author_email='dharp@lanl.gov', url='lagrit.lanl.gov', license='LGPL', packages=[ 'pylagrit', 'pylagrit.pexpect'] )
18.533333
43
0.705036
ec43fe0d488358049728fe978556c36abaf5d9bd
170
py
Python
vkbottle/api/token_generator/__init__.py
homus32/vkbottle
8247665ef74835abe0c2c5e5981826540d0ecdb5
[ "MIT" ]
698
2019-08-09T17:32:52.000Z
2021-07-22T08:30:32.000Z
vkbottle/api/token_generator/__init__.py
homus32/vkbottle
8247665ef74835abe0c2c5e5981826540d0ecdb5
[ "MIT" ]
216
2019-08-18T19:22:50.000Z
2021-07-30T12:15:17.000Z
vkbottle/api/token_generator/__init__.py
homus32/vkbottle
8247665ef74835abe0c2c5e5981826540d0ecdb5
[ "MIT" ]
268
2019-08-10T14:52:04.000Z
2021-07-28T07:06:42.000Z
from .abc import ABCTokenGenerator, Token from .consistent import ConsistentTokenGenerator from .single import SingleTokenGenerator from .util import get_token_generator
34
48
0.870588
ec47c391472807dff9a5e36963375db6a8649611
4,177
py
Python
scripts/bib_poli_poi_manager.py
sdcioc/bibpoli
fba86ff4e949c92aa6ef93a629b5e73fcf97a581
[ "MIT" ]
null
null
null
scripts/bib_poli_poi_manager.py
sdcioc/bibpoli
fba86ff4e949c92aa6ef93a629b5e73fcf97a581
[ "MIT" ]
null
null
null
scripts/bib_poli_poi_manager.py
sdcioc/bibpoli
fba86ff4e949c92aa6ef93a629b5e73fcf97a581
[ "MIT" ]
null
null
null
#! /usr/bin/python # Author: Ciocirlan Stefan-Dan 19/09/2018 import json import copy import rospy #functie de converire a numelui unui punct de interes in calea lui ca parametru ros # clasa ce incarca dintr-un fisier informatiile despre punctele de interes # si le seteaza ca parametri ros pentru a fi folosite info...
37.972727
115
0.721331
ec4888f3f9bb05215e75e4d095dd646b049f0424
3,976
py
Python
pysnmp-with-texts/CISCO-IETF-SCTP-EXT-CAPABILITY.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/CISCO-IETF-SCTP-EXT-CAPABILITY.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/CISCO-IETF-SCTP-EXT-CAPABILITY.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module CISCO-IETF-SCTP-EXT-CAPABILITY (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-IETF-SCTP-EXT-CAPABILITY # Produced by pysmi-0.3.4 at Wed May 1 12:01:04 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python ...
107.459459
477
0.791499
ec4a2a45ccb11bf6f0548dbb0056bc2c555270e7
974
py
Python
src/HAnDS/sampled_dataset_intersection.py
abhipec/hands
ff9658d4226c78b96c02ccf3b91b7d2699f0e4cf
[ "MIT" ]
13
2019-05-02T01:44:04.000Z
2022-02-21T13:39:47.000Z
src/HAnDS/sampled_dataset_intersection.py
abhipec/hands
ff9658d4226c78b96c02ccf3b91b7d2699f0e4cf
[ "MIT" ]
1
2021-06-01T13:04:51.000Z
2021-06-08T16:07:35.000Z
src/HAnDS/sampled_dataset_intersection.py
abhipec/hands
ff9658d4226c78b96c02ccf3b91b7d2699f0e4cf
[ "MIT" ]
1
2019-12-26T07:24:03.000Z
2019-12-26T07:24:03.000Z
""" Compute intersection of two sampled datasets sentences. """ import sys import glob import json import gzip def get_uids(input_file_path): """ Convert datasets to set of uids. """ use_gzip = True if input_file_path[-3:] == '.gz' else False if use_gzip: file_i = gzip.GzipFile(input_file...
23.756098
63
0.607803
ec4a7104544a8650c6512a4df9aaeca3f157225d
866
py
Python
cloud_function/main.py
LeptoFlare/unnamed-color-bot
a52a0790e8cf9c4f90365a0546a2710fdcb22d40
[ "MIT" ]
null
null
null
cloud_function/main.py
LeptoFlare/unnamed-color-bot
a52a0790e8cf9c4f90365a0546a2710fdcb22d40
[ "MIT" ]
2
2021-04-30T14:24:06.000Z
2021-04-30T14:25:16.000Z
cloud_function/main.py
LeptoFlare/unnamed-color-bot
a52a0790e8cf9c4f90365a0546a2710fdcb22d40
[ "MIT" ]
null
null
null
from flask import jsonify from discord_interactions import verify_key, InteractionType, InteractionResponseType import color PUBLIC_KEY = ""
29.862069
85
0.692841
ec4aacd0ee4112bfaad1f422cbfbb013aa8fd123
2,247
py
Python
tests/test_feature_selection.py
NewKnowledge/punk
53007a38433023f9a9f5cf39786b1c5a28f1f996
[ "MIT" ]
2
2017-08-23T16:58:01.000Z
2020-07-03T01:53:34.000Z
tests/test_feature_selection.py
NewKnowledge/punk
53007a38433023f9a9f5cf39786b1c5a28f1f996
[ "MIT" ]
11
2017-08-18T17:19:21.000Z
2022-03-18T15:54:40.000Z
tests/test_feature_selection.py
NewKnowledge/punk
53007a38433023f9a9f5cf39786b1c5a28f1f996
[ "MIT" ]
2
2017-09-11T19:38:04.000Z
2020-05-28T00:58:05.000Z
import unittest import numpy as np import pandas as pd from sklearn import datasets from sklearn.preprocessing import StandardScaler from sklearn.model_selection import train_test_split from punk.feature_selection import PCAFeatures from punk.feature_selection import RFFeatures if __name__ == '__main__': u...
35.666667
98
0.583
ec4ac519fa41cce9811a254aee52f6208f542e4f
4,699
py
Python
src/project/video_labels.py
KumarLabJax/JABS-behavior-classifier
8c038a7510ae08d90418403a723e396344bb671c
[ "FSFAP" ]
null
null
null
src/project/video_labels.py
KumarLabJax/JABS-behavior-classifier
8c038a7510ae08d90418403a723e396344bb671c
[ "FSFAP" ]
null
null
null
src/project/video_labels.py
KumarLabJax/JABS-behavior-classifier
8c038a7510ae08d90418403a723e396344bb671c
[ "FSFAP" ]
null
null
null
from .track_labels import TrackLabels def counts(self, behavior): """ get the count of labeled frames and bouts for each identity in this video for a specified behavior :param behavior: behavior to get label counts for :return: list of tuples with the following ...
35.067164
80
0.593318
ec4b664be2d97caeb561e378e2c266a9e65c41d3
2,406
py
Python
.ycm_extra_conf.py
puremourning/vim
88f40ee8c75307fdbf63e01c5a80e8d60ffc47be
[ "Vim" ]
null
null
null
.ycm_extra_conf.py
puremourning/vim
88f40ee8c75307fdbf63e01c5a80e8d60ffc47be
[ "Vim" ]
null
null
null
.ycm_extra_conf.py
puremourning/vim
88f40ee8c75307fdbf63e01c5a80e8d60ffc47be
[ "Vim" ]
null
null
null
import os import logging import subprocess import shlex from ycmd import utils try: from ycmd.extra_conf_support import IgnoreExtraConf except ImportError: IgnoreExtraConf = None # Map files to translation units. file_to_tu = { 'nbdebug.c': 'netbeans.c', 'if_py_both.h': 'if_python3.c', 'structs.h': 'main.c'...
29.341463
80
0.598919
ec4b9b5f64f7c279450eecd75db5e5ff433794ba
8,768
py
Python
atpparser/parser.py
nathanesau/atpparser
3a64a5b9564bf82ab619a76d6a3ab308ccc5cfc9
[ "MIT" ]
null
null
null
atpparser/parser.py
nathanesau/atpparser
3a64a5b9564bf82ab619a76d6a3ab308ccc5cfc9
[ "MIT" ]
null
null
null
atpparser/parser.py
nathanesau/atpparser
3a64a5b9564bf82ab619a76d6a3ab308ccc5cfc9
[ "MIT" ]
null
null
null
from bs4 import BeautifulSoup from urllib.request import urlopen, Request import math from atpparser.constants import HEADERS from atpparser.util import format_player_name, get_archive_url, get_archive_filename, \ get_draw_url, get_draw_filename # downloads archive to "archive_{year}.html" # return list of draws:...
42.153846
100
0.582801
ec4c8db2c51a568d0df46d4f28891c13344f4017
443
py
Python
PersonalWebApp/ClientsManagement/migrations/0018_projectsrequest_project_request_slug.py
CiganOliviu/personal_website
abedf67efc2e7e212c32815f645d3b3709f9f177
[ "MIT" ]
1
2021-04-02T16:45:52.000Z
2021-04-02T16:45:52.000Z
ClientsManagementSystem/ClientsManagement/migrations/0018_projectsrequest_project_request_slug.py
CiganOliviu/ClientsManagementSystem
6271dd007e549fd0369c4df7c017980b915a91b5
[ "MIT" ]
null
null
null
ClientsManagementSystem/ClientsManagement/migrations/0018_projectsrequest_project_request_slug.py
CiganOliviu/ClientsManagementSystem
6271dd007e549fd0369c4df7c017980b915a91b5
[ "MIT" ]
null
null
null
# Generated by Django 3.0.8 on 2020-11-09 10:28 from django.db import migrations, models
23.315789
76
0.632054
ec4d3bc03ac74801721429d9a793e9e024b4d1a7
47
py
Python
model/cct/__init__.py
gmberton/deep-visual-geo-localization-benchmark
7ac395411b7eeff99da66675dedc5372839e5632
[ "MIT" ]
1
2022-03-25T06:48:16.000Z
2022-03-25T06:48:16.000Z
model/cct/__init__.py
gmberton/deep-visual-geo-localization-benchmark
7ac395411b7eeff99da66675dedc5372839e5632
[ "MIT" ]
null
null
null
model/cct/__init__.py
gmberton/deep-visual-geo-localization-benchmark
7ac395411b7eeff99da66675dedc5372839e5632
[ "MIT" ]
null
null
null
from .cct import cct_14_7x2_384, cct_14_7x2_224
47
47
0.87234
ec4e572c58b42681f0615a8ac44d492d58e51cb0
397
py
Python
ex01/first_last.py
aiit2016/2016-2Q-SP
97f2472733052df4f8a3604ad71d5b1d36586a8b
[ "MIT" ]
null
null
null
ex01/first_last.py
aiit2016/2016-2Q-SP
97f2472733052df4f8a3604ad71d5b1d36586a8b
[ "MIT" ]
null
null
null
ex01/first_last.py
aiit2016/2016-2Q-SP
97f2472733052df4f8a3604ad71d5b1d36586a8b
[ "MIT" ]
null
null
null
print(first_last("spring")) print(first_last("hello")) print(first_last("a")) print(first_last("abc"))
30.538462
64
0.526448
ec4e5fa4d1849a441dee901738f4a4985d58a3c1
989
py
Python
setup.py
fengsp/lookup
c10bb571809d4ead095ce17f822a30f8fde4eaef
[ "BSD-3-Clause" ]
9
2015-04-09T21:43:29.000Z
2022-02-22T19:03:34.000Z
setup.py
3Demonica/lookup
c10bb571809d4ead095ce17f822a30f8fde4eaef
[ "BSD-3-Clause" ]
1
2015-11-11T16:24:57.000Z
2015-11-19T06:08:42.000Z
setup.py
3Demonica/lookup
c10bb571809d4ead095ce17f822a30f8fde4eaef
[ "BSD-3-Clause" ]
4
2015-01-05T11:49:50.000Z
2022-02-22T19:03:35.000Z
""" lookup ------ Look up words via the command line. Links ````` * `documentation <https://github.com/fengsp/lookup>`_ * `development version <http://github.com/fengsp/lookup/zipball/master#egg=lookup-dev>`_ """ from setuptools import setup setup( name='lookup', version='0.2', url='https://github.c...
21.042553
67
0.605662
ec50f0e9cf9211ffcab67a7dbf58eab9fce4d72a
12,435
py
Python
besspin/cyberPhys/cyberphyslib/cyberphyslib/demonstrator/simulator.py
CTSRD-CHERI/BESSPIN-Tool-Suite
26c0e7ce8cf6ffa6e33ea4ff9aa6194892ef6474
[ "Apache-2.0" ]
null
null
null
besspin/cyberPhys/cyberphyslib/cyberphyslib/demonstrator/simulator.py
CTSRD-CHERI/BESSPIN-Tool-Suite
26c0e7ce8cf6ffa6e33ea4ff9aa6194892ef6474
[ "Apache-2.0" ]
null
null
null
besspin/cyberPhys/cyberphyslib/cyberphyslib/demonstrator/simulator.py
CTSRD-CHERI/BESSPIN-Tool-Suite
26c0e7ce8cf6ffa6e33ea4ff9aa6194892ef6474
[ "Apache-2.0" ]
null
null
null
""" Project: SSITH CyberPhysical Demonstrator Name: simulator.py Author: Kristofer Dobelstein, Ethan Lew <elew@galois.com> Date: 10/01/2020 Python 3.8.3 O/S: Windows 10 This routine creates a BeamNG simulator thread and makes vehicle speed, throttle, brakes, and position available. """ import logging.config import l...
35.326705
109
0.616325
ec51ee86ac4ba81ac68fefbc2989c1af1ada01a8
2,013
py
Python
sdk/python/pulumi_aws_native/codestar/_inputs.py
AaronFriel/pulumi-aws-native
5621690373ac44accdbd20b11bae3be1baf022d1
[ "Apache-2.0" ]
29
2021-09-30T19:32:07.000Z
2022-03-22T21:06:08.000Z
sdk/python/pulumi_aws_native/codestar/_inputs.py
AaronFriel/pulumi-aws-native
5621690373ac44accdbd20b11bae3be1baf022d1
[ "Apache-2.0" ]
232
2021-09-30T19:26:26.000Z
2022-03-31T23:22:06.000Z
sdk/python/pulumi_aws_native/codestar/_inputs.py
AaronFriel/pulumi-aws-native
5621690373ac44accdbd20b11bae3be1baf022d1
[ "Apache-2.0" ]
4
2021-11-10T19:42:01.000Z
2022-02-05T10:15:49.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities __a...
28.352113
80
0.648286
ec53d18772cf322357771f2b6a79f3b1cfae651a
1,970
py
Python
f5/bigip/__init__.py
yuanfm/f5-common-python
7d6588d56323e7065fec929ff00020081f9d6ade
[ "Apache-2.0" ]
null
null
null
f5/bigip/__init__.py
yuanfm/f5-common-python
7d6588d56323e7065fec929ff00020081f9d6ade
[ "Apache-2.0" ]
null
null
null
f5/bigip/__init__.py
yuanfm/f5-common-python
7d6588d56323e7065fec929ff00020081f9d6ade
[ "Apache-2.0" ]
null
null
null
"""Classes and functions for configuring BIG-IP""" # Copyright 2014 F5 Networks Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unle...
39.4
74
0.644162
ec53df9b0c4e3d8e0e2a5b2d416e85e9f86e8fd5
7,230
py
Python
tests/test_evolution.py
jakelishman/floq
d0c83b239d0c9631182cea5d69c901793d7c67c6
[ "MIT" ]
2
2021-02-01T10:43:05.000Z
2021-08-10T14:51:45.000Z
tests/test_evolution.py
jakelishman/floq
d0c83b239d0c9631182cea5d69c901793d7c67c6
[ "MIT" ]
9
2018-09-10T10:46:04.000Z
2018-10-10T16:48:26.000Z
tests/test_evolution.py
jakelishman/floq
d0c83b239d0c9631182cea5d69c901793d7c67c6
[ "MIT" ]
null
null
null
from unittest import TestCase from tests.assertions import CustomAssertions import scipy.sparse import numpy as np import tests.rabi as rabi import floq
42.280702
88
0.540387
ec572a85699eea732946d1fcc2724486847f42b4
1,634
py
Python
Practicals/gist_multiplication_table-tutorial.py
dev-bhargav/Python3-for-dummies
8be093ada6de2070d8c14346a0c15d78074b79d7
[ "MIT" ]
null
null
null
Practicals/gist_multiplication_table-tutorial.py
dev-bhargav/Python3-for-dummies
8be093ada6de2070d8c14346a0c15d78074b79d7
[ "MIT" ]
null
null
null
Practicals/gist_multiplication_table-tutorial.py
dev-bhargav/Python3-for-dummies
8be093ada6de2070d8c14346a0c15d78074b79d7
[ "MIT" ]
null
null
null
import random as RND gen_row = lambda: [ RND.randint(10, 99) for c in range(3) ] # 'data' is a nested list comprised of five rows and three columns data = [gen_row() for c in range(5)] # create some column headers col_headers = ["col{}".format(i) for i in range(1, 4)] # print the column headers first print("{:^8} {:^...
34.765957
108
0.684211
ec57644eaef1e974083046f2d7d3fe9bea0e1a34
11,844
py
Python
agent/agent/lib/agent_thread/threadmgr.py
isabella232/cronus-agent
f973ef9fd49d0d454a2b4d5e9f17d88943fda8fc
[ "Apache-2.0" ]
7
2015-04-17T22:07:41.000Z
2020-07-31T04:58:00.000Z
agent/agent/lib/agent_thread/threadmgr.py
eBay/cronus-agent
f973ef9fd49d0d454a2b4d5e9f17d88943fda8fc
[ "Apache-2.0" ]
1
2021-02-24T03:56:57.000Z
2021-02-24T03:56:57.000Z
agent/agent/lib/agent_thread/threadmgr.py
isabella232/cronus-agent
f973ef9fd49d0d454a2b4d5e9f17d88943fda8fc
[ "Apache-2.0" ]
8
2015-06-26T01:54:40.000Z
2021-01-15T10:30:23.000Z
#pylint: disable=R0904,W0105 ''' Copyright 2014 eBay Software 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 applicabl...
36.897196
134
0.555302
ec57c9f0ba4661dfa5a30c46d1cb011a45da70d9
1,215
py
Python
Math/C01_Geometry_basics/Programs/S05/Point_dilation_image.py
Polirecyliente/SGConocimiento
560b08984236d7a10f50c6b5e6fb28844193d81b
[ "CC-BY-4.0" ]
null
null
null
Math/C01_Geometry_basics/Programs/S05/Point_dilation_image.py
Polirecyliente/SGConocimiento
560b08984236d7a10f50c6b5e6fb28844193d81b
[ "CC-BY-4.0" ]
null
null
null
Math/C01_Geometry_basics/Programs/S05/Point_dilation_image.py
Polirecyliente/SGConocimiento
560b08984236d7a10f50c6b5e6fb28844193d81b
[ "CC-BY-4.0" ]
null
null
null
#T# the following code shows how to draw a point dilation #T# to draw a point dilation, the pyplot module of the matplotlib package is used import matplotlib.pyplot as plt #T# create the figure and axes fig1, ax1 = plt.subplots(1, 1) #T# set the aspect of the axes ax1.set_aspect('equal', adjustable = 'box') #T# hid...
25.3125
81
0.685597
ec581a9ef0f05e3f2dd2a817056211092691ccef
6,755
py
Python
ven2/lib/python2.7/site-packages/zope/browserresource/tests/test_directory.py
manliu1225/Facebook_crawler
0f75a1c4382dd4effc3178d84b99b0cad97337cd
[ "Apache-2.0" ]
1
2019-11-30T07:47:08.000Z
2019-11-30T07:47:08.000Z
ven2/lib/python2.7/site-packages/zope/browserresource/tests/test_directory.py
manliu1225/Facebook_crawler
0f75a1c4382dd4effc3178d84b99b0cad97337cd
[ "Apache-2.0" ]
10
2016-03-24T07:52:07.000Z
2020-03-02T09:52:06.000Z
ven2/lib/python2.7/site-packages/zope/browserresource/tests/test_directory.py
manliu1225/Facebook_crawler
0f75a1c4382dd4effc3178d84b99b0cad97337cd
[ "Apache-2.0" ]
2
2015-04-03T08:18:34.000Z
2019-12-09T09:36:43.000Z
############################################################################## # # Copyright (c) 2001, 2002 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # TH...
37.949438
78
0.653738
ec59063773d428c69a37e0c8bfdb7bdb40d6a119
667
py
Python
tools/register_stats.py
kunheek/style-aware-discriminator
d6ddd7c735d6c162f2a3c942d5cba1e0457f8c39
[ "MIT" ]
21
2022-03-30T06:58:50.000Z
2022-03-31T16:38:48.000Z
tools/register_stats.py
kunheek/style-aware-discriminator
d6ddd7c735d6c162f2a3c942d5cba1e0457f8c39
[ "MIT" ]
null
null
null
tools/register_stats.py
kunheek/style-aware-discriminator
d6ddd7c735d6c162f2a3c942d5cba1e0457f8c39
[ "MIT" ]
null
null
null
#!/usr/bin/env python import argparse import glob import os import shutil import cleanfid if __name__ == "__main__": main()
20.84375
73
0.677661
6b4d3623a57f12e7a72346de33659c35249e7d36
490
py
Python
diff_between_dates.py
DazEB2/SimplePyScripts
1dde0a42ba93fe89609855d6db8af1c63b1ab7cc
[ "CC-BY-4.0" ]
117
2015-12-18T07:18:27.000Z
2022-03-28T00:25:54.000Z
diff_between_dates.py
DazEB2/SimplePyScripts
1dde0a42ba93fe89609855d6db8af1c63b1ab7cc
[ "CC-BY-4.0" ]
8
2018-10-03T09:38:46.000Z
2021-12-13T19:51:09.000Z
diff_between_dates.py
DazEB2/SimplePyScripts
1dde0a42ba93fe89609855d6db8af1c63b1ab7cc
[ "CC-BY-4.0" ]
28
2016-08-02T17:43:47.000Z
2022-03-21T08:31:12.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = 'ipetrash' from datetime import datetime items = [ '23/03/2007', '05/12/2007', '22/08/2008', '02/10/2009', ] for i in range(len(items) - 1): date_str_1, date_str_2 = items[i], items[i + 1] date_1 = datetime.strptime(date_str_1, '...
19.6
68
0.589796
6b4d51076b403049aba5f4d3863e2292c59d0be7
12,524
py
Python
cogs/fun.py
Skullknight011/Cyanmaton
76da2b6944666bab32630c96108b61b511acb6eb
[ "CC0-1.0" ]
1
2021-04-01T13:42:34.000Z
2021-04-01T13:42:34.000Z
cogs/fun.py
Skullknight011/Cyanmaton
76da2b6944666bab32630c96108b61b511acb6eb
[ "CC0-1.0" ]
null
null
null
cogs/fun.py
Skullknight011/Cyanmaton
76da2b6944666bab32630c96108b61b511acb6eb
[ "CC0-1.0" ]
1
2021-02-19T14:56:16.000Z
2021-02-19T14:56:16.000Z
import discord from discord.ext import commands import os import numpy import requests import json import random import json import sys import traceback import importlib from math import * from cogs.lists import cowboy_sayings from cogs.lists import roasts from cogs.lists import colour from cogs.lists import lenny_face...
43.637631
214
0.6355
6b4dff3f5193ecca8a9ee7f92cb74b87ef0e16b0
46,119
py
Python
gazenet/models/shared_components/gmu/model.py
modular-ml/gasp-gated-attention-for-saliency-prediction
e2e1b008ab916ae5f7e51fbf09aa1da8be22be6d
[ "MIT" ]
1
2021-09-22T07:50:39.000Z
2021-09-22T07:50:39.000Z
gazenet/models/shared_components/gmu/model.py
modular-ml/gasp-gated-attention-for-saliency-prediction
e2e1b008ab916ae5f7e51fbf09aa1da8be22be6d
[ "MIT" ]
null
null
null
gazenet/models/shared_components/gmu/model.py
modular-ml/gasp-gated-attention-for-saliency-prediction
e2e1b008ab916ae5f7e51fbf09aa1da8be22be6d
[ "MIT" ]
1
2022-01-14T22:55:38.000Z
2022-01-14T22:55:38.000Z
# -*- coding: utf-8 -*- """This module implements the Gated Multimodal Units in PyTorch Currently there are two versions: Two versions, the general GMU and the simplified, bimodal unit are described in Arevalo et al., Gated multimodal networks, 2020 (https://link.springer.com/article/10.1007/s00521-019-04559-1) The p...
37.073151
171
0.608426
6b4e24d4210a815ebe0f55b12ef3d4b6fc58e19d
7,738
py
Python
HighJack 4/master.py
fullmetalstug/sdstate-cubesat
85456016b8c5981f3f018fdbfa4856fc61b80d0c
[ "MIT" ]
1
2019-11-03T23:07:49.000Z
2019-11-03T23:07:49.000Z
HighJack 4/master.py
fullmetalstug/sdstate-cubesat
85456016b8c5981f3f018fdbfa4856fc61b80d0c
[ "MIT" ]
null
null
null
HighJack 4/master.py
fullmetalstug/sdstate-cubesat
85456016b8c5981f3f018fdbfa4856fc61b80d0c
[ "MIT" ]
2
2020-02-27T15:48:33.000Z
2020-12-23T23:46:33.000Z
from smbus import SMBus import time import csv import serial #import thread LIS3DH = False MPL3115A2 = False GPS = False deg = u'\N{DEGREE SIGN}' apo = u"\u0027" #apostrophe serialport = serial.Serial( port="/dev/ttyACM0", baudrate=9600, parity=serial.PARITY_NONE, stopbits=serial.STOPBITS_ONE, by...
40.093264
147
0.502585
6b4f37cd4f2e0a209533702653540684f59d69fe
2,953
py
Python
sirepo/template/madx.py
moellep/sirepo
4fd8b88b3b95921d50e6b225c02a46c00da16a27
[ "Apache-2.0" ]
null
null
null
sirepo/template/madx.py
moellep/sirepo
4fd8b88b3b95921d50e6b225c02a46c00da16a27
[ "Apache-2.0" ]
null
null
null
sirepo/template/madx.py
moellep/sirepo
4fd8b88b3b95921d50e6b225c02a46c00da16a27
[ "Apache-2.0" ]
2
2020-10-27T20:01:23.000Z
2020-11-06T23:35:05.000Z
# -*- coding: utf-8 -*- u"""MAD-X execution template. :copyright: Copyright (c) 2020 RadiaSoft LLC. All Rights Reserved. :license: http://www.apache.org/licenses/LICENSE-2.0.html """ from __future__ import absolute_import, division, print_function from pykern import pkio from pykern import pkjinja from pykern.pkcolle...
28.394231
91
0.73146
6b5140207f30a322a8c72e6c8cce57aadcbcce4b
2,429
py
Python
keras/lstm_my.py
mobarski/sandbox
64ac79143750d5dcbd4d0f3abdab6efeb9bdf50c
[ "MIT" ]
null
null
null
keras/lstm_my.py
mobarski/sandbox
64ac79143750d5dcbd4d0f3abdab6efeb9bdf50c
[ "MIT" ]
null
null
null
keras/lstm_my.py
mobarski/sandbox
64ac79143750d5dcbd4d0f3abdab6efeb9bdf50c
[ "MIT" ]
null
null
null
text = """ ala ma kota a kot ma ale """ # ------------------------------------------------------------------------------ # TODO as class chars = list(sorted(set(text))) # stabilne indeksy len_chars = len(chars)+1 c_to_i = {c:i+1 for i,c in enumerate(chars)} i_to_c = {i+1:c for i,c in enumerate(chars)} # -----------...
24.535354
80
0.553314
6b52b16fa9959e03a3f3f5f8e017c7ae8517cfe2
3,951
py
Python
xplainer/backend/tools/lime.py
liborvaneksw/xplainer
3b65f375b03ddf92f8a9771f95722af103c7aca0
[ "MIT" ]
4
2020-08-18T07:01:50.000Z
2022-01-14T06:41:53.000Z
xplainer/backend/tools/lime.py
liborvaneksw/xplainer
3b65f375b03ddf92f8a9771f95722af103c7aca0
[ "MIT" ]
2
2020-10-05T17:20:28.000Z
2022-03-02T09:50:34.000Z
xplainer/backend/tools/lime.py
liborvaneksw/xplainer
3b65f375b03ddf92f8a9771f95722af103c7aca0
[ "MIT" ]
1
2020-08-18T12:45:45.000Z
2020-08-18T12:45:45.000Z
import tensorflow as tf from lime import lime_image from skimage.segmentation import mark_boundaries from xplainer.backend.tools.abstract_tool import AbstractTool, GeneralSettings from xplainer.backend.utils.image import prepare_for_prediction, get_base64png
33.483051
115
0.464692
6b52d7cb1b8d862c1e1e834fe3daeacd53c9b442
4,624
py
Python
test/ee2_scheduler_integration_test.py
scanon/execution_engine2
ce98b69f44fbd5353cf92cdc413080c8262a188e
[ "MIT" ]
null
null
null
test/ee2_scheduler_integration_test.py
scanon/execution_engine2
ce98b69f44fbd5353cf92cdc413080c8262a188e
[ "MIT" ]
null
null
null
test/ee2_scheduler_integration_test.py
scanon/execution_engine2
ce98b69f44fbd5353cf92cdc413080c8262a188e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import logging import os import pwd import unittest import htcondor logging.basicConfig(level=logging.INFO) from lib.execution_engine2.utils.Condor import Condor def _create_sample_params(self): params = dict() params["job_id"] = self.job_id def test_submit_job(self)...
31.243243
192
0.574178
6b530ce60fbcd7c7f382196f4a7a9f53a1fe8b9e
12,283
py
Python
DatabaseLayer/DataModel.py
BenTeo11/python-docs-hello-world
3da9c9a1fadccdb1769c4f04124a7b68d7795bf0
[ "MIT" ]
null
null
null
DatabaseLayer/DataModel.py
BenTeo11/python-docs-hello-world
3da9c9a1fadccdb1769c4f04124a7b68d7795bf0
[ "MIT" ]
null
null
null
DatabaseLayer/DataModel.py
BenTeo11/python-docs-hello-world
3da9c9a1fadccdb1769c4f04124a7b68d7795bf0
[ "MIT" ]
null
null
null
from flask import Flask from flask_sqlalchemy import SQLAlchemy from sqlalchemy import desc from sqlalchemy_utils import UUIDType from uuid import uuid4 import json from DatabaseLayer.Settings import app #from DatabaseLayer.UserModel import * db = SQLAlchemy()
37.910494
152
0.644224
6b5614f50ed31ed045de7b77770c36fbe1d70a11
4,259
py
Python
oth-chain/utils/node.py
McSido/oth-chain
16da2c06ce1188a825e3f3b236cd2c2fb5d59a68
[ "MIT" ]
null
null
null
oth-chain/utils/node.py
McSido/oth-chain
16da2c06ce1188a825e3f3b236cd2c2fb5d59a68
[ "MIT" ]
10
2018-04-05T09:46:31.000Z
2018-08-29T13:58:32.000Z
oth-chain/utils/node.py
McSido/oth-chain
16da2c06ce1188a825e3f3b236cd2c2fb5d59a68
[ "MIT" ]
null
null
null
from typing import List, Optional
33.801587
81
0.553886
6b56670fe95c7afaefb5ca0333577c6f8d06cce1
118
py
Python
cct/core2/algorithms/__init__.py
awacha/cct
be1adbed2533df15c778051f3f4f9da0749c873a
[ "BSD-3-Clause" ]
1
2015-11-04T16:37:39.000Z
2015-11-04T16:37:39.000Z
cct/core2/algorithms/__init__.py
awacha/cct
be1adbed2533df15c778051f3f4f9da0749c873a
[ "BSD-3-Clause" ]
null
null
null
cct/core2/algorithms/__init__.py
awacha/cct
be1adbed2533df15c778051f3f4f9da0749c873a
[ "BSD-3-Clause" ]
1
2020-03-05T02:50:43.000Z
2020-03-05T02:50:43.000Z
from . import radavg, readcbf, peakfit, centering, orderforleastmotormovement, correlmatrix, schilling, matrixaverager
118
118
0.847458
6b59133d851a4ef50a8bf57319ecee682844f904
22,452
py
Python
Define_Model/model.py
Wenhao-Yang/DeepSpeaker-pytorch
99eb8de3357c85e2b7576da2a742be2ffd773ead
[ "MIT" ]
8
2020-08-26T13:32:56.000Z
2022-01-18T21:05:46.000Z
Define_Model/model.py
Wenhao-Yang/DeepSpeaker-pytorch
99eb8de3357c85e2b7576da2a742be2ffd773ead
[ "MIT" ]
1
2020-07-24T17:06:16.000Z
2020-07-24T17:06:16.000Z
Define_Model/model.py
Wenhao-Yang/DeepSpeaker-pytorch
99eb8de3357c85e2b7576da2a742be2ffd773ead
[ "MIT" ]
5
2020-12-11T03:31:15.000Z
2021-11-23T15:57:55.000Z
#!/usr/bin/env python # encoding: utf-8 """ @Author: yangwenhao @Contact: 874681044@qq.com @Software: PyCharm @File: model.py @Overview: The deep speaker model is not entirely the same as ResNet, as there are convolutional layers between blocks. """ import math import torch import torch.nn as nn from torch.autograd ...
32.824561
119
0.570372
6b5a716281422ca867c8f8b0a5f1793bab54d58d
131
py
Python
chevah/compat/tests/manual/__init__.py
chevah/compat
d22e5f551a628f8a1652c9f2eea306e17930cb8f
[ "BSD-3-Clause" ]
5
2016-12-03T22:54:50.000Z
2021-11-17T11:17:39.000Z
chevah/compat/tests/manual/__init__.py
chevah/compat
d22e5f551a628f8a1652c9f2eea306e17930cb8f
[ "BSD-3-Clause" ]
76
2015-01-22T16:00:31.000Z
2022-02-09T22:13:34.000Z
chevah/compat/tests/manual/__init__.py
chevah/compat
d22e5f551a628f8a1652c9f2eea306e17930cb8f
[ "BSD-3-Clause" ]
1
2016-12-10T15:57:31.000Z
2016-12-10T15:57:31.000Z
""" Manual tests. """ from __future__ import print_function from __future__ import division from __future__ import absolute_import
18.714286
38
0.824427
6b5b020269c721ee27a78d26e9636bd33583815a
1,481
py
Python
util/scraper/core.py
IRIS-Team/tchecker
7f0b3218f8914ac3d96eadc8a7db1c2d23016503
[ "MIT" ]
17
2021-09-05T11:35:03.000Z
2022-03-23T19:06:54.000Z
util/scraper/core.py
IRIS-Team/tchecker
7f0b3218f8914ac3d96eadc8a7db1c2d23016503
[ "MIT" ]
2
2021-09-04T11:06:02.000Z
2021-09-06T06:40:08.000Z
util/scraper/core.py
IRIS-Team/tchecker
7f0b3218f8914ac3d96eadc8a7db1c2d23016503
[ "MIT" ]
5
2021-09-04T13:13:59.000Z
2022-02-19T00:22:56.000Z
from util.core import * from util.duckduckgo import * from util.emails import *
29.62
127
0.578663
6b5b587cb0ce620906a483609ab64dc143ca2768
1,169
py
Python
doc/examples/python_logging.py
ralphm/udplog
04fa2045f0eb23dfd73be704ac7713384c6860d7
[ "MIT" ]
null
null
null
doc/examples/python_logging.py
ralphm/udplog
04fa2045f0eb23dfd73be704ac7713384c6860d7
[ "MIT" ]
1
2018-02-27T20:09:35.000Z
2018-02-27T20:09:35.000Z
doc/examples/python_logging.py
ralphm/udplog
04fa2045f0eb23dfd73be704ac7713384c6860d7
[ "MIT" ]
1
2016-10-11T12:27:33.000Z
2016-10-11T12:27:33.000Z
""" Example of using the standard logging facility to send events to udplog. """ import logging import socket import warnings from udplog.udplog import UDPLogger, UDPLogHandler # Get a logger in the idiomatic way. logger = logging.getLogger(__name__) # Set up logging to stdout logging.basicConfig(level=logging.DEBU...
25.413043
73
0.664671
6b5e9917fa2844e89351355e6e4e25fe79a2bd28
2,223
py
Python
app/foursquare.py
ExesiosPB/libm
09c2638d895a4ba69e0d7f4f0e353f27d4b7911f
[ "MIT" ]
null
null
null
app/foursquare.py
ExesiosPB/libm
09c2638d895a4ba69e0d7f4f0e353f27d4b7911f
[ "MIT" ]
null
null
null
app/foursquare.py
ExesiosPB/libm
09c2638d895a4ba69e0d7f4f0e353f27d4b7911f
[ "MIT" ]
null
null
null
import requests from datetime import datetime CLIENT_ID = '2OWPT1X5RNXEE0DGOM5VWO2FBM5R5TNTVPPLH50NCSZAX3QD' CLIENT_SECRET = 'MR31FALKAQEL2SFUHJKMXJJ2XOTIMJIC5C0Y1UWFGJWWORE1' DATE = datetime.today().strftime('%Y%m%d') BASE_URL = 'https://api.foursquare.com/v2' AUTH_URL_PART = 'client_id={}&client_secret={}&v={}'.for...
30.452055
131
0.669816
6b60b2d12c5d9dbd477a2f5ad06e24a5440736ae
2,190
py
Python
tests/test_gf.py
senk8/crypto-math
91c7b02a28e91190089b0213065498ce3c6b2e18
[ "MIT" ]
1
2022-01-01T07:48:29.000Z
2022-01-01T07:48:29.000Z
tests/test_gf.py
senk8/crypto-math
91c7b02a28e91190089b0213065498ce3c6b2e18
[ "MIT" ]
null
null
null
tests/test_gf.py
senk8/crypto-math
91c7b02a28e91190089b0213065498ce3c6b2e18
[ "MIT" ]
null
null
null
from crypto_math import GF, field_extension import pytest
18.559322
51
0.387671
6b612f1385de3aea9ee32b7c61b778ab34bc50ba
4,495
py
Python
fgietAdmission/settings/prod.py
rpsingh21/Fgiet-Admission
a6871da939c2ec16e480844254d801c3a486c5c2
[ "MIT" ]
5
2018-09-28T20:05:14.000Z
2019-05-31T19:12:48.000Z
fgietAdmission/settings/prod.py
rpsingh21/Fgiet-Admission
a6871da939c2ec16e480844254d801c3a486c5c2
[ "MIT" ]
5
2019-09-30T18:40:15.000Z
2020-04-20T20:28:29.000Z
fgietAdmission/settings/prod.py
rpsingh21/Fgiet-Admission
a6871da939c2ec16e480844254d801c3a486c5c2
[ "MIT" ]
3
2019-09-30T20:54:55.000Z
2020-04-15T15:39:37.000Z
import os # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirname( os.path.dirname(os.path.abspath(__file__)))) # SECURITY WARNING: keep the secret key used in production secret! SECRET_KEY = os.environ.get( 'SECRET_KEY', 'j2b_z(*4w+#)t^nz3)0n3da(tcj&...
27.746914
91
0.691435
6b653ae24258beecb96db08a60ce0142275350f0
674
py
Python
user_profile/urls.py
DeWaster/Tviserrys
c177387ad145b649fed3365d139bf6274ce89db1
[ "MIT" ]
null
null
null
user_profile/urls.py
DeWaster/Tviserrys
c177387ad145b649fed3365d139bf6274ce89db1
[ "MIT" ]
null
null
null
user_profile/urls.py
DeWaster/Tviserrys
c177387ad145b649fed3365d139bf6274ce89db1
[ "MIT" ]
null
null
null
from django.conf.urls import include, url from django.contrib import admin from . import views urlpatterns = [ url(r'^$', views.ViewView.as_view(), name='profile_own_view'), url(r'^edit/', views.EditView.as_view(), name='profile_edit'), url(r'^view/$', views.ViewView.as_view(), name='profile_own_view'), ...
44.933333
96
0.669139
6b6678ddf83b6ac37cbcb25f98619c4b07268787
5,620
py
Python
simulators/plots/plot_functions.py
Arseni1919/dcop_simulator_3
a4e2f5b7b2ecf10b595d3cdd1df0c07c833cb15b
[ "MIT" ]
null
null
null
simulators/plots/plot_functions.py
Arseni1919/dcop_simulator_3
a4e2f5b7b2ecf10b595d3cdd1df0c07c833cb15b
[ "MIT" ]
null
null
null
simulators/plots/plot_functions.py
Arseni1919/dcop_simulator_3
a4e2f5b7b2ecf10b595d3cdd1df0c07c833cb15b
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt from simulators.functions import * lines = ['-', '--', '-.', ':', ] lines.reverse() markers = ['o', '+', '.', ',', '_', '*'] markers.reverse() def plot_position_choices(all_agents, collisions): """ Here we can see collisions inside a graph :param all_agents: [agent1, agen...
41.021898
148
0.640214
6b669fee605431243ac6ad81c5e56b685731f3bf
5,144
py
Python
fig3-4_controlled_oscillation/fig3d-f_HF_enumeration/4edges/dyn_2020_4_HE_G2_v2.py
sjx93/rnn_for_gene_network_2020
d2e16d836f35321923660777179e260065e3976c
[ "MIT" ]
5
2021-04-20T14:43:51.000Z
2022-02-09T07:43:11.000Z
fig3-4_controlled_oscillation/fig3d-f_HF_enumeration/7edges/dyn_2020_4_HE_G2_v2.py
sjx93/rnn_for_gene_network_2020
d2e16d836f35321923660777179e260065e3976c
[ "MIT" ]
null
null
null
fig3-4_controlled_oscillation/fig3d-f_HF_enumeration/7edges/dyn_2020_4_HE_G2_v2.py
sjx93/rnn_for_gene_network_2020
d2e16d836f35321923660777179e260065e3976c
[ "MIT" ]
1
2022-02-02T09:23:20.000Z
2022-02-02T09:23:20.000Z
import argparse import sys import csv import os import numpy as np import matplotlib.pyplot as plt import tensorflow as tf FLAGS = None BATCH = 8000 Gs = 2 # num of dynamic dims Gin= 2 # num of input signal dims TIMESTEP = 0.25 time_points = 200 if __name__ == "__main__": parser = argparse.ArgumentParser() ...
33.402597
121
0.608281
6b67018f61184356cb3c75832454a18dddff02b6
11,341
py
Python
src/GameManager/character.py
maccam912/Oddyssey
a9d1eca9ea1dfabd9873eb842eae03f2ed83d405
[ "MIT" ]
null
null
null
src/GameManager/character.py
maccam912/Oddyssey
a9d1eca9ea1dfabd9873eb842eae03f2ed83d405
[ "MIT" ]
11
2017-03-12T13:59:21.000Z
2017-03-24T04:42:16.000Z
src/GameManager/character.py
maccam912/Oddyssey
a9d1eca9ea1dfabd9873eb842eae03f2ed83d405
[ "MIT" ]
null
null
null
import pygame from GameManager.algorithm.path_finding import a_star_algorithm from GameManager.algorithm.visibility import raycasting_sight, bresenhams_line_algorithm
47.852321
183
0.60462
6b6744fe834ac12c203b8e2f1abb6a46a183ed0e
1,997
py
Python
simulator/bus_api.py
btelle/bus-gps
66528c8be5dbe5afd62245b6e71577a77c5796e2
[ "Apache-2.0" ]
1
2019-12-04T02:53:08.000Z
2019-12-04T02:53:08.000Z
simulator/bus_api.py
btelle/bus-gps
66528c8be5dbe5afd62245b6e71577a77c5796e2
[ "Apache-2.0" ]
null
null
null
simulator/bus_api.py
btelle/bus-gps
66528c8be5dbe5afd62245b6e71577a77c5796e2
[ "Apache-2.0" ]
null
null
null
import os import sys import json import logging import requests logger = logging.getLogger() logger.setLevel(logging.INFO) try: api_url = os.environ['BUS_API_URL'] if api_url[-1] == '/': api_url = api_url[0:-1] except KeyError: logger.error('Missing required environment variables') sys.exit(...
21.244681
77
0.602904
6b677676a3f8ff81489d4eae39abb4922d662439
166
py
Python
ex006.py
danieldf0l/exercicios-curso-python3
8f8a0e2467efee855da47ea47a4c2f4fda152c41
[ "MIT" ]
null
null
null
ex006.py
danieldf0l/exercicios-curso-python3
8f8a0e2467efee855da47ea47a4c2f4fda152c41
[ "MIT" ]
null
null
null
ex006.py
danieldf0l/exercicios-curso-python3
8f8a0e2467efee855da47ea47a4c2f4fda152c41
[ "MIT" ]
null
null
null
n = float(input('Insira um nmero: ')) print(f"""O dobro de {n:.0f} : {n*2:.0f} \nO triplo de {n:.0f} {n*3:.0f} a raiz quadrada de {n:.0f} {pow(n,(1/2)):.2}""")
41.5
75
0.548193
6b67ea7e1f7e6f73a8512b82067bb9e1ddd02754
7,790
py
Python
waterflow/utility/fluxfunctions.py
bramappelt/flow
e2a6e931813feccf317a3bca8fad8f93191fdb09
[ "MIT" ]
null
null
null
waterflow/utility/fluxfunctions.py
bramappelt/flow
e2a6e931813feccf317a3bca8fad8f93191fdb09
[ "MIT" ]
6
2019-09-11T15:37:24.000Z
2021-08-30T11:12:03.000Z
waterflow/utility/fluxfunctions.py
bramappelt/flow
e2a6e931813feccf317a3bca8fad8f93191fdb09
[ "MIT" ]
null
null
null
""" Several flow equations for (un)saturated flow problems and a storage change function """ def darcy(x, s, gradient, kfun=lambda x, s: 1): """ Flux function for saturated flow Flow equation as first described by :cite:`Darcy1856`. Parameters ---------- x : `float` Positional argument :...
31.92623
81
0.602182
6b6b6d9e58e2dab26154e07eafb8e4897db965e4
3,172
py
Python
ov2640_config.py
FunPythonEC/OV2640_uPy
2c2e4bf006e3cdcc4eed4ff105404205463a8c3c
[ "MIT" ]
6
2019-05-13T13:48:18.000Z
2021-12-28T19:08:34.000Z
ov2640_config.py
FunPythonEC/OV2640_uPy
2c2e4bf006e3cdcc4eed4ff105404205463a8c3c
[ "MIT" ]
1
2019-07-13T08:51:08.000Z
2020-05-26T01:54:36.000Z
ov2640_config.py
FunPythonEC/OV2640_uPy
2c2e4bf006e3cdcc4eed4ff105404205463a8c3c
[ "MIT" ]
4
2019-05-04T07:51:47.000Z
2021-01-21T21:46:45.000Z
#light mode SUNNY=[ [0xff, b'\x00'], [0xc7, b'\x40'], [0xcc, b'\x5e'], [0xcd, b'\x41'], [0xce, b'\x54'] ] CLOUDY=[ [0xff, b'\x00'], [0xc7, b'\x40'], [0xcc, b'\x65'], [0xcd, b'\x41'], [0xce, b'\x4f'] ] OFFICE=[ [0xff, b'\x00'], [0xc7, b'\x40'], [0xcc, b'\x52'], [0xcd, b'\x41'], [0xce, b'\x66'] ] HOME=[ [0xff, b'\x00'...
12.738956
17
0.496847
6b6b909bac3f5e1dd6e1107da417e8cf7913a1c1
3,121
py
Python
classification/linear_svm_classification.py
VinAIResearch/PointSWD
ea676926e21286185e836ab355fee7937540ce69
[ "Apache-2.0" ]
4
2021-11-06T10:24:21.000Z
2022-02-23T10:12:38.000Z
classification/linear_svm_classification.py
VinAIResearch/PointSWD
ea676926e21286185e836ab355fee7937540ce69
[ "Apache-2.0" ]
null
null
null
classification/linear_svm_classification.py
VinAIResearch/PointSWD
ea676926e21286185e836ab355fee7937540ce69
[ "Apache-2.0" ]
null
null
null
import os import os.path as osp import sys import numpy as np from sklearn.svm import LinearSVC from tqdm import tqdm sys.path.append(osp.dirname(osp.dirname(osp.abspath(__file__)))) import torch.utils.data as data from dataset.modelnet40 import LatentCapsulesModelNet40, LatentVectorsModelNet40 from utils.utils impo...
33.202128
85
0.657802
6b6bf7285452bcfde3d76184ceefe15f8882bed2
2,679
py
Python
datemike/base.py
angstwad/datemike
da84df48022c4067a28182e9bb53434c8f5010bc
[ "Apache-2.0" ]
8
2015-01-30T01:42:02.000Z
2019-04-05T10:50:42.000Z
datemike/base.py
angstwad/datemike
da84df48022c4067a28182e9bb53434c8f5010bc
[ "Apache-2.0" ]
null
null
null
datemike/base.py
angstwad/datemike
da84df48022c4067a28182e9bb53434c8f5010bc
[ "Apache-2.0" ]
3
2016-06-27T11:23:38.000Z
2018-03-05T21:37:39.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # This file is part of datemike: https://github.com/angstwad/datemike # # Copyright 2014 Paul Durivage # # 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 Lice...
34.346154
79
0.632699
6b6f7a61e5e93d5e09483ec5c09b8dfa71ba3d9c
58,726
py
Python
test/_data/generator/dps_pds/gp_practices.py
NHSDigital/list-reconciliation
37b1ebe99a64275e23b0e7fb6a89415b92d14306
[ "MIT" ]
4
2021-06-25T08:28:54.000Z
2021-12-16T11:03:42.000Z
test/_data/generator/dps_pds/gp_practices.py
NHSDigital/list-reconciliation
37b1ebe99a64275e23b0e7fb6a89415b92d14306
[ "MIT" ]
184
2021-06-24T15:27:08.000Z
2022-03-17T12:44:28.000Z
test/_data/generator/dps_pds/gp_practices.py
NHSDigital/list-reconciliation
37b1ebe99a64275e23b0e7fb6a89415b92d14306
[ "MIT" ]
3
2021-11-05T10:21:44.000Z
2022-03-04T14:29:24.000Z
ref = [ "A00002", "A00005", "A10001", "A10002", "A10003", "A10004", "A10005", "A10006", "A10007", "A10008", "A10009", "A10010", "A10011", "A10012", "A10013", "A10014", "A10015", "A10016", "A10017", "A10018", "A10019", "A10020", ...
13.992376
13
0.42855
6b702b7c3d1276c589cfef5946aba536a7af98cb
4,258
py
Python
virtual/lib/python3.6/site-packages/lazr/restfulclient/errors.py
marknesh/pitches
0a480d9bc2beafaefa0121393b1502cc05edab89
[ "MIT" ]
null
null
null
virtual/lib/python3.6/site-packages/lazr/restfulclient/errors.py
marknesh/pitches
0a480d9bc2beafaefa0121393b1502cc05edab89
[ "MIT" ]
11
2020-06-05T20:57:31.000Z
2021-09-22T18:35:03.000Z
flask/lib/python3.6/site-packages/lazr/restfulclient/errors.py
JOFLIX/grapevines
34576e01184570d79cc140b42ffb71d322132da6
[ "MIT", "Unlicense" ]
1
2020-11-04T06:48:34.000Z
2020-11-04T06:48:34.000Z
# Copyright 2008 Canonical Ltd. # This file is part of lazr.restfulclient. # # lazr.restfulclient is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your option) ...
28.77027
78
0.676374
6b716a0f840c6fad8989b231e95125385643ca96
31,216
py
Python
pylib/anarelmanage/automation.py
slaclab/anarel-manage
dde5c5fcf1ab7ac4d09af34bafddeefdddb460b9
[ "BSD-3-Clause-LBNL" ]
3
2017-05-25T05:57:56.000Z
2017-12-15T20:51:26.000Z
pylib/anarelmanage/automation.py
slaclab/anarel-manage
dde5c5fcf1ab7ac4d09af34bafddeefdddb460b9
[ "BSD-3-Clause-LBNL" ]
47
2016-12-15T00:49:43.000Z
2019-01-15T23:22:36.000Z
pylib/anarelmanage/automation.py
slaclab/anarel-manage
dde5c5fcf1ab7ac4d09af34bafddeefdddb460b9
[ "BSD-3-Clause-LBNL" ]
7
2017-02-23T22:38:10.000Z
2020-12-12T23:05:17.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import sys import datetime import time from collections import defaultdict import anarelmanage.util as util import yaml #import paramiko as pm import getpass import shutil import smtplib from email.mi...
44.850575
184
0.554107
6b71c90f630e14826b11c070cb5b2c08da6ce8f6
6,557
py
Python
libretto/migrations/0010_removes_useless_db_index.py
adrienlachaize/dezede
584ec30cedab95152e2f95595b7691a04e6736e2
[ "BSD-3-Clause" ]
15
2015-02-10T21:16:31.000Z
2021-03-25T16:46:20.000Z
libretto/migrations/0010_removes_useless_db_index.py
adrienlachaize/dezede
584ec30cedab95152e2f95595b7691a04e6736e2
[ "BSD-3-Clause" ]
4
2021-02-10T15:42:08.000Z
2022-03-11T23:20:38.000Z
libretto/migrations/0010_removes_useless_db_index.py
adrienlachaize/dezede
584ec30cedab95152e2f95595b7691a04e6736e2
[ "BSD-3-Clause" ]
6
2016-07-10T14:20:48.000Z
2022-01-19T18:34:02.000Z
from django.db import models, migrations
46.176056
229
0.618423
6b73397140a04b27ae38d74a8e1615d4aa193b33
1,069
py
Python
venv/lib/python3.6/site-packages/pelican/tests/test_rstdirectives.py
Patrisha-de-Boon/CMPUT404-Lab5
cc235c56d707a96345e1093c8f346eee78e3644d
[ "Apache-2.0" ]
null
null
null
venv/lib/python3.6/site-packages/pelican/tests/test_rstdirectives.py
Patrisha-de-Boon/CMPUT404-Lab5
cc235c56d707a96345e1093c8f346eee78e3644d
[ "Apache-2.0" ]
null
null
null
venv/lib/python3.6/site-packages/pelican/tests/test_rstdirectives.py
Patrisha-de-Boon/CMPUT404-Lab5
cc235c56d707a96345e1093c8f346eee78e3644d
[ "Apache-2.0" ]
null
null
null
from unittest.mock import Mock from pelican.tests.support import unittest
33.40625
63
0.63985
6b74ff35e5c963829aba67c5e576e833c614da10
3,700
py
Python
tmapi/models/name.py
ajenhl/django-tmapi
02f009e1b508218cf330ca7748c3a1dd110f3e8d
[ "Apache-2.0" ]
2
2015-03-22T03:23:36.000Z
2017-01-08T10:57:18.000Z
tmapi/models/name.py
ajenhl/django-tmapi
02f009e1b508218cf330ca7748c3a1dd110f3e8d
[ "Apache-2.0" ]
null
null
null
tmapi/models/name.py
ajenhl/django-tmapi
02f009e1b508218cf330ca7748c3a1dd110f3e8d
[ "Apache-2.0" ]
1
2020-12-28T04:40:34.000Z
2020-12-28T04:40:34.000Z
# Copyright 2011 Jamie Norrish (jamie@artefact.org.nz) # # 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...
34.259259
77
0.642162
6b75783123c4483426bee41d501490729cb394b0
2,828
py
Python
src/tests/echo/perfengine.py
davidgcameron/arc
9813ef5f45e5089507953239de8fa2248f5ad32c
[ "Apache-2.0" ]
null
null
null
src/tests/echo/perfengine.py
davidgcameron/arc
9813ef5f45e5089507953239de8fa2248f5ad32c
[ "Apache-2.0" ]
null
null
null
src/tests/echo/perfengine.py
davidgcameron/arc
9813ef5f45e5089507953239de8fa2248f5ad32c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from __future__ import print_function from platform import node from sys import argv from os import popen from re import * if (len(argv)!=5): print("Wrong number of arguments!") exit() host = argv[1] port = int(argv[2]) threadRange = matlabRange(argv[3]) duration ...
35.797468
97
0.638967
6b75f3b082ce66d382bd04ed45aaa00b150a753e
406
py
Python
PyObjCTest/test_nsdocktile.py
Khan/pyobjc-framework-Cocoa
f8b015ea2a72d8d78be6084fb12925c4785b8f1f
[ "MIT" ]
132
2015-01-01T10:02:42.000Z
2022-03-09T12:51:01.000Z
mac/pyobjc-framework-Cocoa/PyObjCTest/test_nsdocktile.py
mba811/music-player
7998986b34cfda2244ef622adefb839331b81a81
[ "BSD-2-Clause" ]
6
2015-01-06T08:23:19.000Z
2019-03-14T12:22:06.000Z
mac/pyobjc-framework-Cocoa/PyObjCTest/test_nsdocktile.py
mba811/music-player
7998986b34cfda2244ef622adefb839331b81a81
[ "BSD-2-Clause" ]
27
2015-02-23T11:51:43.000Z
2022-03-07T02:34:18.000Z
from AppKit import * from PyObjCTools.TestSupport import * if __name__ == "__main__": main()
29
80
0.761084
6b7625661cd004165f8b8656061a74ebc854748c
1,191
py
Python
src/tests/ftest/pool/uuid_corner_case.py
fedepad/daos
ac71a320b8426b1eeb1457b0b6f5e6e115dfc9aa
[ "BSD-2-Clause-Patent" ]
429
2016-09-28T20:43:20.000Z
2022-03-25T01:22:50.000Z
src/tests/ftest/pool/uuid_corner_case.py
fedepad/daos
ac71a320b8426b1eeb1457b0b6f5e6e115dfc9aa
[ "BSD-2-Clause-Patent" ]
6,341
2016-11-24T12:34:26.000Z
2022-03-31T23:53:46.000Z
src/tests/ftest/pool/uuid_corner_case.py
fedepad/daos
ac71a320b8426b1eeb1457b0b6f5e6e115dfc9aa
[ "BSD-2-Clause-Patent" ]
202
2016-10-30T14:47:53.000Z
2022-03-30T21:29:11.000Z
#!/usr/bin/python3 """ (C) Copyright 2018-2021 Intel Corporation. SPDX-License-Identifier: BSD-2-Clause-Patent """ from apricot import TestWithServers
27.068182
76
0.653233
6b784fdfb61871aab0b9f417d9ad421f38fea1cc
507
py
Python
chalicelib/util/toml.py
la-mar/ecs-cluster-management
334ca02c7a4d86aa77f2a5bccd4fd48db8620c87
[ "MIT" ]
3
2021-04-04T07:48:48.000Z
2022-02-19T17:42:12.000Z
chalicelib/util/toml.py
la-mar/ecs-cluster-management
334ca02c7a4d86aa77f2a5bccd4fd48db8620c87
[ "MIT" ]
null
null
null
chalicelib/util/toml.py
la-mar/ecs-cluster-management
334ca02c7a4d86aa77f2a5bccd4fd48db8620c87
[ "MIT" ]
1
2021-01-05T18:58:08.000Z
2021-01-05T18:58:08.000Z
import os from typing import Dict, Optional import tomlkit pkg_meta: Dict[str, str] = _get_project_meta() project: Optional[str] = pkg_meta.get("name") version: Optional[str] = pkg_meta.get("version")
26.684211
79
0.676529
6b78c685cbe88fe52be31d9316aa083ac998c4fb
902
py
Python
lesson9/napalm_simple.py
mfeindt0705/pynetmf
02fc092fd42ce5be5e160fa88b65c63d23408a6a
[ "Apache-2.0" ]
null
null
null
lesson9/napalm_simple.py
mfeindt0705/pynetmf
02fc092fd42ce5be5e160fa88b65c63d23408a6a
[ "Apache-2.0" ]
7
2021-03-18T21:28:13.000Z
2022-02-10T10:39:10.000Z
lesson9/napalm_simple.py
mfeindt0705/pynetmf
02fc092fd42ce5be5e160fa88b65c63d23408a6a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from getpass import getpass from pprint import pprint from napalm import get_network_driver # Supress SSL Certificate Warnings import requests from requests.packages.urllib3.exceptions import InsecureRequestWarning requests.packages.urllib3.disable_warnings(InsecureRequestWarning) cisco3 = dic...
20.044444
71
0.732816
6b7a28d0464b2b975f6b0b49c990ebcf8b2424b8
5,543
py
Python
feed_parser.py
Mason-Lin/real-time-feed
f3db8b84358d594be39e396fcb3c13606e705623
[ "MIT" ]
null
null
null
feed_parser.py
Mason-Lin/real-time-feed
f3db8b84358d594be39e396fcb3c13606e705623
[ "MIT" ]
null
null
null
feed_parser.py
Mason-Lin/real-time-feed
f3db8b84358d594be39e396fcb3c13606e705623
[ "MIT" ]
null
null
null
import datetime as dt import logging from collections import Counter, OrderedDict, defaultdict from dataclasses import dataclass from io import StringIO from operator import itemgetter input = """8 2017-01-03,16:18:50,AAPL,142.64 2017-01-03,16:25:22,AMD,13.86 2017-01-03,16:25:25,AAPL,141.64 2017-01-03,16:25:28,AMZN,84...
33.593939
134
0.662457
6b7a739eba3bef6c85ccca6bcfc5e4b92981d775
6,595
py
Python
avroc/files.py
spenczar/avroc
b64625ebcd51b10c788778ea146c0f6902187f4e
[ "MIT" ]
5
2021-05-04T12:22:54.000Z
2022-03-07T23:11:53.000Z
avroc/files.py
spenczar/avroc
b64625ebcd51b10c788778ea146c0f6902187f4e
[ "MIT" ]
null
null
null
avroc/files.py
spenczar/avroc
b64625ebcd51b10c788778ea146c0f6902187f4e
[ "MIT" ]
null
null
null
from typing import Dict, IO, Any, Optional, Iterable import secrets import json import io from avroc.codegen.read import ReaderCompiler from avroc.codegen.write import WriterCompiler from avroc.codegen.resolution import ResolvedReaderCompiler from avroc.util import SchemaType from avroc.codec import Codec, NullCodec, ...
29.841629
85
0.601971
6b7ba61ef023c1db826796f4b0845a69f907a4aa
535
py
Python
run_scraper.py
justinslud/scrape-wikipedia-current-events
fa4a261a15e86b2470506ecb72ab0d488240c77d
[ "MIT" ]
null
null
null
run_scraper.py
justinslud/scrape-wikipedia-current-events
fa4a261a15e86b2470506ecb72ab0d488240c77d
[ "MIT" ]
null
null
null
run_scraper.py
justinslud/scrape-wikipedia-current-events
fa4a261a15e86b2470506ecb72ab0d488240c77d
[ "MIT" ]
null
null
null
from wiki_scrape_db import get_headlines headlines = [] for year in list(range(1995, 2020)): try: headlines.append(get_headlines(year)) except Exception as e: print(e) headlines.append(get_headlines(1994, start_month='July')) headlines.append(get_headlines(2020, end_month='November')) with o...
29.722222
76
0.695327
6b7d0be198578062e55a903d8aadba221bbbd6f9
354
py
Python
maintenance/templates/nodeclass.py
JFlynnXYZ/pymel
2aa254c7982c78aac3e30e8d1b6a85f2465f898e
[ "BSD-3-Clause" ]
287
2015-01-03T21:18:59.000Z
2022-03-16T07:55:33.000Z
maintenance/templates/nodeclass.py
JFlynnXYZ/pymel
2aa254c7982c78aac3e30e8d1b6a85f2465f898e
[ "BSD-3-Clause" ]
412
2015-06-19T15:13:33.000Z
2022-02-25T08:12:25.000Z
maintenance/templates/nodeclass.py
JFlynnXYZ/pymel
2aa254c7982c78aac3e30e8d1b6a85f2465f898e
[ "BSD-3-Clause" ]
106
2015-01-03T06:46:44.000Z
2022-03-30T15:43:01.000Z
{% if not existing %} class {{ classname }}({{ parents }}): {% endif %} {% if attrs %} {% for attr in attrs %} {% for line in attr.getLines() %} {{line}} {% endfor %} {% endfor %} {% endif %} {% if methods %} {% for method in methods %} {% for line in method.getLines() %} {{line}} {% endfor %} {% ...
16.090909
37
0.5
6b7d34540a5c2e8ecc6a51b33f2b6767464e00fb
5,102
py
Python
examples/IMPALA/atari_agent.py
alexqdh/PARL
e91150b84c631ed58a3f53232d463f8193f43dee
[ "Apache-2.0" ]
null
null
null
examples/IMPALA/atari_agent.py
alexqdh/PARL
e91150b84c631ed58a3f53232d463f8193f43dee
[ "Apache-2.0" ]
null
null
null
examples/IMPALA/atari_agent.py
alexqdh/PARL
e91150b84c631ed58a3f53232d463f8193f43dee
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
39.246154
103
0.623677
6b7d9e5a2669647cac8172ea89c374c1adf391b7
139
py
Python
robotSrv/constants.py
JDownloader/GEL-3014_Design3
dea01245592c97f73e6a78426270d91ade5e25c7
[ "MIT" ]
null
null
null
robotSrv/constants.py
JDownloader/GEL-3014_Design3
dea01245592c97f73e6a78426270d91ade5e25c7
[ "MIT" ]
null
null
null
robotSrv/constants.py
JDownloader/GEL-3014_Design3
dea01245592c97f73e6a78426270d91ade5e25c7
[ "MIT" ]
null
null
null
ROBOT_POSITION_RESSOURCE = '/robotposition' CUBE_POSITION_RESSOURCE = '/cubeposition' PATH_RESSOURCE = '/path' FLAG_RESSOURCE = '/flag'
17.375
43
0.776978
6b7df49fac50568f5ef0ff875cc4f6710ca60bfc
8,905
py
Python
shatter/util/helpers.py
jisazaTappsi/mastermind
bb096119b6e062611dec8e8062feb5f838d5a198
[ "MIT" ]
1
2016-06-10T05:55:05.000Z
2016-06-10T05:55:05.000Z
shatter/util/helpers.py
jisazaTappsi/mastermind
bb096119b6e062611dec8e8062feb5f838d5a198
[ "MIT" ]
1
2016-02-05T06:59:46.000Z
2016-02-05T06:59:46.000Z
shatter/util/helpers.py
jisazaTappsi/mastermind
bb096119b6e062611dec8e8062feb5f838d5a198
[ "MIT" ]
1
2016-03-28T11:01:23.000Z
2016-03-28T11:01:23.000Z
#!/usr/bin/env python """Utility and General purpose functions.""" import inspect import warnings import os import re import shatter.constants as cts __author__ = 'juan pablo isaza' def read_file(absolute_path): """ :param absolute_path: string path. :return: list with lines of the file. """ re...
27.741433
120
0.658956
6b7e9434ecd7d1a7626dabe916fb3aaec1e3cb2a
9,265
py
Python
yasql/apps/sqlquery/migrations/0001_initial.py
Fanduzi/YaSQL
bc6366a9b1c1e9ed84fd24ea2b4a21f8f99d0af5
[ "Apache-2.0" ]
443
2018-02-08T02:53:48.000Z
2020-10-13T10:01:55.000Z
yasql/apps/sqlquery/migrations/0001_initial.py
Fanduzi/YaSQL
bc6366a9b1c1e9ed84fd24ea2b4a21f8f99d0af5
[ "Apache-2.0" ]
27
2018-03-06T03:50:07.000Z
2020-08-18T08:09:49.000Z
yasql/apps/sqlquery/migrations/0001_initial.py
Fanduzi/YaSQL
bc6366a9b1c1e9ed84fd24ea2b4a21f8f99d0af5
[ "Apache-2.0" ]
148
2018-03-15T06:07:25.000Z
2020-08-17T14:58:45.000Z
# Generated by Django 2.2.16 on 2020-12-15 07:18 from django.conf import settings from django.db import migrations, models import django.db.models.deletion
54.181287
172
0.582515
6b802a82a0897c1300217b35a07dadcbbb86be34
1,232
py
Python
tests/main_pubsub.py
meloncookie/JsMeetsStarlette
68ac14b1c4e2e7ee512b332aa883992b0960e5ce
[ "MIT" ]
4
2020-08-30T00:24:45.000Z
2021-05-06T03:13:51.000Z
tests/main_pubsub.py
meloncookie/JsMeetsStarlette
68ac14b1c4e2e7ee512b332aa883992b0960e5ce
[ "MIT" ]
null
null
null
tests/main_pubsub.py
meloncookie/JsMeetsStarlette
68ac14b1c4e2e7ee512b332aa883992b0960e5ce
[ "MIT" ]
null
null
null
import typing import asyncio import json from starlette.responses import PlainTextResponse from JsMeetsStarlette import (JsMeetsPy, JsPyError, JsPyTextSocket, JsPyPubsub, JsPyFunction) # Access http://xxx/static/index_pubsub.html app = JsMeetsPy(debug=True, static='static', ...
32.421053
74
0.597403
6b80ca9be1bdd9f0b505a7d684880e7fc48e86c5
9,851
py
Python
auglichem/test/test_molecule.py
BaratiLab/AugLiChem
37258b5ce2c653436b3e819b58d2659052d6edcc
[ "MIT" ]
16
2021-12-01T06:32:41.000Z
2022-03-26T18:11:49.000Z
auglichem/test/test_molecule.py
BaratiLab/AugLiChem
37258b5ce2c653436b3e819b58d2659052d6edcc
[ "MIT" ]
1
2022-02-14T20:59:45.000Z
2022-02-14T20:59:45.000Z
auglichem/test/test_molecule.py
BaratiLab/AugLiChem
37258b5ce2c653436b3e819b58d2659052d6edcc
[ "MIT" ]
null
null
null
import sys sys.path.append(sys.path[0][:-14]) import shutil import numpy as np import warnings from tqdm import tqdm import torch from torch_geometric.data import Data as PyG_Data from auglichem.molecule import RandomAtomMask, RandomBondDelete, Compose, OneOf, MotifRemoval from auglichem.molecule.data import Molecul...
32.19281
97
0.645721
6b821d3fe5bc483767b5c956c8d4ee3ae0cd1d70
1,319
py
Python
Cleaning/Readings/readings_clean.py
aliasger3008/GWL-analysis
fed595db40919de68c682d475fb52bbb36673208
[ "MIT" ]
null
null
null
Cleaning/Readings/readings_clean.py
aliasger3008/GWL-analysis
fed595db40919de68c682d475fb52bbb36673208
[ "MIT" ]
null
null
null
Cleaning/Readings/readings_clean.py
aliasger3008/GWL-analysis
fed595db40919de68c682d475fb52bbb36673208
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sun Dec 5 02:49:34 2021 @author: aliasger """ import pandas as pd meta_data = pd.read_csv("/Users/aliasger/Desktop/Github/GWL-time-series-analysis/Scraping/scrape_meta_data.csv") meta_data = meta_data.to_dict() meta_data_id = meta_data["ID"] for meta_i...
36.638889
112
0.653525
6b835227477c2c089e7b12210fb4d34807c633ce
613
py
Python
dicer/query_results.py
thehyve/transmart-hyper-dicer
916900d4e32fe22610cd937d05b95a04589589bf
[ "MIT" ]
3
2019-06-26T10:30:15.000Z
2020-02-16T17:22:30.000Z
dicer/query_results.py
thehyve/transmart-hyper-dicer
916900d4e32fe22610cd937d05b95a04589589bf
[ "MIT" ]
13
2019-07-05T14:58:42.000Z
2019-09-19T14:45:07.000Z
dicer/query_results.py
thehyve/transmart-hyper-dicer
916900d4e32fe22610cd937d05b95a04589589bf
[ "MIT" ]
null
null
null
from dicer.transmart import Hypercube, TreeNodes, Dimensions, Studies, RelationTypes, Relations
34.055556
95
0.619902
6b849ca977d594f92ca272f4385d6ff425bab9d8
1,320
py
Python
src/clophfit/old/dil_correction.py
darosio/ClopHfit
00c7f228c3d443dfc776efe50a0f09473c05aa63
[ "BSD-3-Clause" ]
null
null
null
src/clophfit/old/dil_correction.py
darosio/ClopHfit
00c7f228c3d443dfc776efe50a0f09473c05aa63
[ "BSD-3-Clause" ]
null
null
null
src/clophfit/old/dil_correction.py
darosio/ClopHfit
00c7f228c3d443dfc776efe50a0f09473c05aa63
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python # import argparse import os import pandas as pd corr = {'pH': [1, 1.02, 1.04, 1.06, 1.08, 1.1, 1.12], 'cl': [1.000000, 1.017857, 1.035714, 1.053571, 1.071429, 1.089286, 1.107143, 1.160714, 1.196429]} corr = {'pH': [1, 1.02, 1.04, 1.06, 1.08, 1.1], 'cl': [1.000000, 1....
32.195122
77
0.579545
6b8591e59247dad1b7b1305c25ea86898d890846
306
py
Python
src/bot/cocoa/src/basic/systems/cmd_system.py
s-akanksha/DialoGraph_ICLR21
d5bbc10b2623c9f84d21a99a5e54e7dcfdfb1bcc
[ "Apache-2.0" ]
12
2021-03-17T05:15:33.000Z
2022-01-19T06:09:21.000Z
src/bot/cocoa/src/basic/systems/cmd_system.py
s-akanksha/DialoGraph_ICLR21
d5bbc10b2623c9f84d21a99a5e54e7dcfdfb1bcc
[ "Apache-2.0" ]
2
2021-05-25T07:28:46.000Z
2022-02-11T01:54:43.000Z
src/bot/cocoa/src/basic/systems/cmd_system.py
s-akanksha/DialoGraph_ICLR21
d5bbc10b2623c9f84d21a99a5e54e7dcfdfb1bcc
[ "Apache-2.0" ]
4
2021-10-11T03:39:38.000Z
2022-02-01T23:58:50.000Z
from system import System from src.basic.sessions.cmd_session import CmdSession
21.857143
53
0.679739
6b863ebd82a28172e96f5c83cf51c88e11ae9a70
9,153
py
Python
Graph/Solutions_Three.py
daniel-zeiler/potential-happiness
1c9d503a52c35dab8b031f72e63725578735ac73
[ "MIT" ]
null
null
null
Graph/Solutions_Three.py
daniel-zeiler/potential-happiness
1c9d503a52c35dab8b031f72e63725578735ac73
[ "MIT" ]
null
null
null
Graph/Solutions_Three.py
daniel-zeiler/potential-happiness
1c9d503a52c35dab8b031f72e63725578735ac73
[ "MIT" ]
null
null
null
import collections import heapq from typing import List # Definition for Employee.
27.990826
94
0.583962
6b86eccfa4b2d9d5fd5ccb1fccb6588e6f2aa705
6,617
py
Python
main.py
romuloschiavon/OnlineGameStore
8e6a660819fb9d89964ba523be95a5268eaf3eac
[ "MIT" ]
null
null
null
main.py
romuloschiavon/OnlineGameStore
8e6a660819fb9d89964ba523be95a5268eaf3eac
[ "MIT" ]
null
null
null
main.py
romuloschiavon/OnlineGameStore
8e6a660819fb9d89964ba523be95a5268eaf3eac
[ "MIT" ]
null
null
null
################################################################## #! !# #! !# #! MDULO PRINCIPAL !# #! ...
30.920561
122
0.572163
6b87c80c969ddae04f5529c29194b55273736a97
8,370
py
Python
timeclock/logic/controller.py
mikejarrett/company-time-clock
17a652719ef25a9b058551b1f4d3f05cddadc04a
[ "MIT" ]
null
null
null
timeclock/logic/controller.py
mikejarrett/company-time-clock
17a652719ef25a9b058551b1f4d3f05cddadc04a
[ "MIT" ]
null
null
null
timeclock/logic/controller.py
mikejarrett/company-time-clock
17a652719ef25a9b058551b1f4d3f05cddadc04a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Classes that control the "punching in" and "punching out" to keep track of time, tasks and thing else that needs to be tracked via time """ from datetime import datetime, timedelta import logging from sqlalchemy import or_ from sqlalchemy.orm import sessionmaker from .db import engine, ses...
28.181818
79
0.583154
6b899987252b758a6dd30249000acacfb5d5426c
32,485
py
Python
flask_app/main.py
SamuelHoward/open-source-platform
eda201117a66e101c11727242e8bff470cea0385
[ "MIT" ]
null
null
null
flask_app/main.py
SamuelHoward/open-source-platform
eda201117a66e101c11727242e8bff470cea0385
[ "MIT" ]
null
null
null
flask_app/main.py
SamuelHoward/open-source-platform
eda201117a66e101c11727242e8bff470cea0385
[ "MIT" ]
null
null
null
# Import necessary modules from flask import render_template, request, redirect, url_for, flash, Blueprint from flask_app import app, db from flask_app.decorators import check_confirmed from flask_app.models import * from flask_login import login_required, current_user from sqlalchemy import or_, and_, func import rand...
37.905484
93
0.565399
6b8bd3db059bb46aa1f96b9866757d78d8b27900
7,201
py
Python
pyschism/param/schout.py
pmav99/pyschism
b533d29b881da6cd4f408e91a4749f86451c042a
[ "Apache-2.0" ]
null
null
null
pyschism/param/schout.py
pmav99/pyschism
b533d29b881da6cd4f408e91a4749f86451c042a
[ "Apache-2.0" ]
null
null
null
pyschism/param/schout.py
pmav99/pyschism
b533d29b881da6cd4f408e91a4749f86451c042a
[ "Apache-2.0" ]
null
null
null
from datetime import timedelta import logging from typing import Union from pyschism.enums import ( IofHydroVariables, IofDvdVariables, IofWwmVariables, IofGenVariables, IofAgeVariables, IofSedVariables, IofEcoVariables, IofIcmVariables, IofCosVariables, IofFibVariables, Iof...
34.290476
78
0.563394
6b8c13b99371a88346ed253912a888668d14ede2
12,864
py
Python
test/unit/test_fastly.py
alphagov/collectd-cdn
fb6dd4c97a32e2d827d6f861d6038e62c0532287
[ "MIT" ]
2
2015-01-16T16:03:25.000Z
2017-02-16T04:28:57.000Z
test/unit/test_fastly.py
alphagov/collectd-cdn
fb6dd4c97a32e2d827d6f861d6038e62c0532287
[ "MIT" ]
2
2015-02-19T14:03:43.000Z
2015-05-14T13:20:24.000Z
test/unit/test_fastly.py
gds-operations/collectd-cdn
fb6dd4c97a32e2d827d6f861d6038e62c0532287
[ "MIT" ]
2
2015-01-01T14:10:29.000Z
2015-08-17T15:00:05.000Z
from ..helpers import * import json import copy import datetime
32.321608
90
0.533738
6b8cb31944f3deca68c1a08c59b0250d736e9f10
5,983
py
Python
pyfr/backends/base/types.py
jappa/PyFR
d99120c1db245c7a2a35c72dae51ea72c49efef5
[ "BSD-3-Clause" ]
null
null
null
pyfr/backends/base/types.py
jappa/PyFR
d99120c1db245c7a2a35c72dae51ea72c49efef5
[ "BSD-3-Clause" ]
null
null
null
pyfr/backends/base/types.py
jappa/PyFR
d99120c1db245c7a2a35c72dae51ea72c49efef5
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from abc import ABCMeta, abstractmethod, abstractproperty from collections import Sequence import numpy as np
26.241228
74
0.610229
6b8db740d3484c566d78135eafac410857f8e972
4,949
py
Python
src/coloring/remove_graphics.py
Nazime/coloring
4e519a5b440bb4af628048ec9cef2b8698128db6
[ "MIT" ]
22
2020-07-28T19:45:32.000Z
2022-03-09T04:48:51.000Z
src/coloring/remove_graphics.py
Nazime/coloring
4e519a5b440bb4af628048ec9cef2b8698128db6
[ "MIT" ]
null
null
null
src/coloring/remove_graphics.py
Nazime/coloring
4e519a5b440bb4af628048ec9cef2b8698128db6
[ "MIT" ]
1
2021-11-12T19:23:59.000Z
2021-11-12T19:23:59.000Z
import re from typing import List from .consts import * # =================== # # INTERNALS FUNCTIONS # # =================== # ESCAPED_CSI = my_re_escape(CSI) def remove_attributes_from_sgr(sgr_string: str, attributes: List[str]) -> str: """ Remove unwanted attributes in an SRG sequence. SRG sequenc...
28.773256
96
0.620327
6b8f45fdb0fa4f30fcf42cfaca12072123bf631a
2,124
py
Python
tests/rules/test_gcloud_cli.py
ronandoolan2/thefuck
7ca0919e70fe23a551b2388c050aa34925c09d0c
[ "MIT" ]
null
null
null
tests/rules/test_gcloud_cli.py
ronandoolan2/thefuck
7ca0919e70fe23a551b2388c050aa34925c09d0c
[ "MIT" ]
null
null
null
tests/rules/test_gcloud_cli.py
ronandoolan2/thefuck
7ca0919e70fe23a551b2388c050aa34925c09d0c
[ "MIT" ]
null
null
null
import pytest from thefuck.rules.gcloud_cli import match, get_new_command from thefuck.types import Command no_suggestions = '''\ ERROR: (gcloud) Command name argument expected. ''' misspelled_command = '''\ ERROR: (gcloud) Invalid choice: 'comute'. Usage: gcloud [optional flags] <group | command> group may be ...
36
80
0.660075
6b922d09a831174421c89fb78ff696142b098eed
1,348
py
Python
app.py
AbhijithGanesh/Flask-HTTP-Server
78f6c6985e6ffd9f4f70738771d6fcdb802964cc
[ "BSD-3-Clause" ]
null
null
null
app.py
AbhijithGanesh/Flask-HTTP-Server
78f6c6985e6ffd9f4f70738771d6fcdb802964cc
[ "BSD-3-Clause" ]
null
null
null
app.py
AbhijithGanesh/Flask-HTTP-Server
78f6c6985e6ffd9f4f70738771d6fcdb802964cc
[ "BSD-3-Clause" ]
null
null
null
from flask import Flask,render_template as render, request from models import * app = Flask(__name__,template_folder='./templates') if __name__ == "__main__": app.run()
30.636364
99
0.647626
6b9232b11bc254bd658c50ddddc70401b243a4aa
80
py
Python
locations.py
dragonfly-ai/MineCraft-pi-py-pie
333c171170852332f0bfc4bddc9650e2b5e9dcb8
[ "Apache-2.0" ]
null
null
null
locations.py
dragonfly-ai/MineCraft-pi-py-pie
333c171170852332f0bfc4bddc9650e2b5e9dcb8
[ "Apache-2.0" ]
null
null
null
locations.py
dragonfly-ai/MineCraft-pi-py-pie
333c171170852332f0bfc4bddc9650e2b5e9dcb8
[ "Apache-2.0" ]
null
null
null
server = "uri.pi" port = 4711 # well World home = Vec3(-66.9487,7.0,-39.5313)
11.428571
34
0.625
6b9357b68cf87feb8a2961ff0f42cb75e7c279f4
678
py
Python
Giveme5W1H/examples/datasets/news_cluster/data_fixer.py
bkrrr/Giveme5W
657738781fe387d76e6e0da35ed009ccf81f4290
[ "Apache-2.0" ]
410
2018-05-02T12:53:02.000Z
2022-03-28T16:11:34.000Z
Giveme5W1H/examples/datasets/news_cluster/data_fixer.py
bkrrr/Giveme5W
657738781fe387d76e6e0da35ed009ccf81f4290
[ "Apache-2.0" ]
51
2018-05-02T13:53:19.000Z
2022-03-22T00:16:39.000Z
Giveme5W1H/examples/datasets/news_cluster/data_fixer.py
TU-Berlin/Giveme5W1H
b1586328393a50acde86015d22f78a4c15bf2f34
[ "Apache-2.0" ]
81
2018-05-29T14:03:27.000Z
2022-02-08T08:59:38.000Z
import glob """ this script is fixing errors found in the data, after processing """ # final fixes for known errors for filepath in glob.glob('output/*.json'): # Read in the file with open(filepath, 'r') as file: filedata = file.read() # AIDA has a wrong URL for the Dallas Airport wrong =...
32.285714
97
0.693215
6b94d0334e232802439724b3fba7371055622d49
169
py
Python
supervised_learning/0x08-deep_cnns/4-main.py
kyeeh/holbertonschool-machine_learning
8e4894c2b036ec7f4750de5bf99b95aee5b94449
[ "MIT" ]
null
null
null
supervised_learning/0x08-deep_cnns/4-main.py
kyeeh/holbertonschool-machine_learning
8e4894c2b036ec7f4750de5bf99b95aee5b94449
[ "MIT" ]
null
null
null
supervised_learning/0x08-deep_cnns/4-main.py
kyeeh/holbertonschool-machine_learning
8e4894c2b036ec7f4750de5bf99b95aee5b94449
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import tensorflow.keras as K resnet50 = __import__('4-resnet50').resnet50 if __name__ == '__main__': model = resnet50() model.summary()
18.777778
44
0.698225
6b952ac583283cfed55c8f4f1a9440b67ab8134e
9,012
py
Python
catlaser/raspberryPi/laser_driver/driver_loop.py
boonepeter/cat-laser
7557fdc5dfd2fe2c91508c1897d58ebf3a52bc42
[ "MIT" ]
null
null
null
catlaser/raspberryPi/laser_driver/driver_loop.py
boonepeter/cat-laser
7557fdc5dfd2fe2c91508c1897d58ebf3a52bc42
[ "MIT" ]
1
2019-12-03T18:16:43.000Z
2019-12-03T18:16:43.000Z
catlaser/raspberryPi/laser_driver/driver_loop.py
boonepeter/cat-laser
7557fdc5dfd2fe2c91508c1897d58ebf3a52bc42
[ "MIT" ]
1
2019-12-03T20:55:49.000Z
2019-12-03T20:55:49.000Z
# Raspberry Pi Cat Laser Driver # This code controls the laser pointer servos to target the laser at different # locations. Make sure to modify the MQTT_SERVER variable below so that it points # to the name or IP address of the host computer for the cloud server VM (i.e. the # machine running the Vagrant virtual machi...
36.634146
114
0.555704
6b981d1b094e71fadd2d93d5c8655244437da0f5
9,334
py
Python
KnowledgeMapping/SpiderExp/1-Code/law_site/sign_in_class.py
nickliqian/ralph_doc_to_chinese
be120ce2bb94a8e8395630218985f5e51ae087d9
[ "MIT" ]
8
2018-05-22T01:11:33.000Z
2020-03-19T01:44:55.000Z
KnowledgeMapping/SpiderExp/1-Code/law_site/sign_in_class.py
yangliangguang/keep_learning
47ab39c726cb28713ad22bf4cf39d6b146715910
[ "MIT" ]
null
null
null
KnowledgeMapping/SpiderExp/1-Code/law_site/sign_in_class.py
yangliangguang/keep_learning
47ab39c726cb28713ad22bf4cf39d6b146715910
[ "MIT" ]
3
2018-07-25T09:31:53.000Z
2019-09-14T14:05:31.000Z
#!/usr/bin/python # -*- coding: UTF-8 -*- import requests from lxml import etree import time import re from fateadm_api import get_value, roll_back_order if __name__ == '__main__': """ key_word = "" province_name = "" start_page = "1" size = "30" judgeDateBegin = "2018-01-...
40.060086
144
0.550675
6b98ddc9d493bd14c660dd93962be13a12198529
2,067
py
Python
app/core/db.py
oxfn/owtest
f4eeae225ef67684d96edd5708c44a0fd639d037
[ "Unlicense" ]
null
null
null
app/core/db.py
oxfn/owtest
f4eeae225ef67684d96edd5708c44a0fd639d037
[ "Unlicense" ]
null
null
null
app/core/db.py
oxfn/owtest
f4eeae225ef67684d96edd5708c44a0fd639d037
[ "Unlicense" ]
null
null
null
import logging from typing import Iterable, Type from bson import ObjectId from fastapi import Depends from motor.core import AgnosticClient, AgnosticCollection, AgnosticDatabase from motor.motor_asyncio import AsyncIOMotorClient from pymongo.results import InsertOneResult from app.models import IdentityModel from .s...
32.809524
80
0.67344
6b9a56d04bac907997a092760a7763b29877194d
335
py
Python
0104/test5.py
eto/study
95f506569657c174bf2347b5240768fafedaa285
[ "BSD-3-Clause" ]
null
null
null
0104/test5.py
eto/study
95f506569657c174bf2347b5240768fafedaa285
[ "BSD-3-Clause" ]
null
null
null
0104/test5.py
eto/study
95f506569657c174bf2347b5240768fafedaa285
[ "BSD-3-Clause" ]
null
null
null
# file handling # 1) without using with statement file = open('t1.txt', 'w') file.write('hello world !') file.close() # 2) without using with statement file = open('t2.txt', 'w') try: file.write('hello world') finally: file.close() # 3) using with statement with open('t3.txt', 'w') as file: file.write('h...
18.611111
33
0.644776
6b9cade2eb38f20d92b0cbb067abb8687b7eb702
422
py
Python
plbmng/utils/logger.py
ogajduse/plbmng
2a4055c6f5c44f483bc36749618497e1fbda6581
[ "MIT" ]
null
null
null
plbmng/utils/logger.py
ogajduse/plbmng
2a4055c6f5c44f483bc36749618497e1fbda6581
[ "MIT" ]
null
null
null
plbmng/utils/logger.py
ogajduse/plbmng
2a4055c6f5c44f483bc36749618497e1fbda6581
[ "MIT" ]
null
null
null
import logging import sys from loguru import logger as base_logger logger = base_logger def init_logger() -> None: """Initialize logger, set log format and the base logging level.""" global logger logger.remove() logger.add( sink=sys.stdout, level=logging.INFO, format="<green...
23.444444
117
0.63981
6ba1153fbe2075bf54878ad601fcb3bffc0506c1
4,428
py
Python
src/orion/core/cli/frontend.py
dendisuhubdy/evolve
54e0aa05b8df5f7833186b32462629ddb9198eea
[ "BSD-3-Clause" ]
1
2017-09-07T06:20:39.000Z
2017-09-07T06:20:39.000Z
src/orion/core/cli/frontend.py
dendisuhubdy/evolve
54e0aa05b8df5f7833186b32462629ddb9198eea
[ "BSD-3-Clause" ]
null
null
null
src/orion/core/cli/frontend.py
dendisuhubdy/evolve
54e0aa05b8df5f7833186b32462629ddb9198eea
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # pylint: disable=too-few-public-methods """ Web application endpoint ======================== Starts an http endpoint to serve requests """ import logging import mimetypes import os import site import sys import falcon from gunicorn.app.base import BaseApplication logg...
29.718121
87
0.619241
6ba1e83a08ffca42c50be6c331ad735897b329e4
3,059
py
Python
tinkerbell/app/make.py
plang85/tinkerbell
f6f86272b676f783920093cbbabb614a616dd3af
[ "Unlicense" ]
null
null
null
tinkerbell/app/make.py
plang85/tinkerbell
f6f86272b676f783920093cbbabb614a616dd3af
[ "Unlicense" ]
null
null
null
tinkerbell/app/make.py
plang85/tinkerbell
f6f86272b676f783920093cbbabb614a616dd3af
[ "Unlicense" ]
null
null
null
import numpy as np import tinkerbell.domain.point as tbdpt import tinkerbell.domain.make as tbdmk def exponential_decline(y_i, d, x): """ Parameters ---------- y_i: float Start value. d: float Decline rate (positive). x: float Independent variable. """ return y_i...
37.304878
132
0.658712