hexsha
stringlengths
40
40
size
int64
6
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
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
368k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
247
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
4
247
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.04M
avg_line_length
float64
1.53
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
6
1.04M
filtered:remove_non_ascii
int64
0
538k
filtered:remove_decorators
int64
0
917k
filtered:remove_async
int64
0
722k
filtered:remove_classes
int64
-45
1M
filtered:remove_generators
int64
0
814k
filtered:remove_function_no_docstring
int64
-102
850k
filtered:remove_class_no_docstring
int64
-3
5.46k
filtered:remove_unused_imports
int64
-1,350
52.4k
filtered:remove_delete_markers
int64
0
59.6k
57d40dbc484ce0db4aa72866ecf2dcba902c500d
5,999
py
Python
lexa/train.py
zplizzi/lexa
880587889d77c7d3906766b765017f2d552d3942
[ "MIT" ]
44
2021-07-23T17:51:08.000Z
2022-03-28T14:36:36.000Z
lexa/train.py
ricklentz/lexa
bf112056e0d7f9e044dce053ddc757600cd99d2e
[ "MIT" ]
2
2021-12-15T15:30:45.000Z
2022-02-25T06:43:14.000Z
lexa/train.py
ricklentz/lexa
bf112056e0d7f9e044dce053ddc757600cd99d2e
[ "MIT" ]
5
2021-11-12T15:26:17.000Z
2022-03-23T14:43:56.000Z
from dreamer import parse_dreamer_args if __name__ == '__main__': args, remaining = parse_dreamer_args() main(args.logdir, remaining)
37.968354
117
0.689448
import os import functools import tools import tensorflow as tf import numpy as np import pickle import pathlib import off_policy from dreamer import Dreamer, setup_dreamer, create_envs, count_steps, make_dataset, parse_dreamer_args class GCDreamer(Dreamer): def __init__(self, config, logger, dataset): if confi...
0
0
0
2,697
0
2,897
0
18
245
dd753fb20cd8313d42bfbb3e511710e61007af76
1,403
py
Python
demo.py
longphungtuan94/Vietnamese-Text-to-Speech
5c33f9fb76f0595894aeeba72de87cf1c910484a
[ "MIT" ]
10
2021-07-23T04:32:29.000Z
2021-07-23T09:21:30.000Z
demo.py
longphungtuan94/Vietnamese-Text-to-Speech
5c33f9fb76f0595894aeeba72de87cf1c910484a
[ "MIT" ]
null
null
null
demo.py
longphungtuan94/Vietnamese-Text-to-Speech
5c33f9fb76f0595894aeeba72de87cf1c910484a
[ "MIT" ]
null
null
null
from notebook_utils import synthesize import utils.text.cleaners as cleaners from scipy.io import wavfile import argparse SAMPLE_RATE = 22050 parser = argparse.ArgumentParser() parser.add_argument( '-t','--text', help='Input text', default=' l ln ti Lt non mt thng lm nhim v nghin cu chnh sch t ai cho ng bo...
33.404762
148
0.776907
from notebook_utils import synthesize from utils import hparams as hp import utils.text.cleaners as cleaners from scipy.io import wavfile import numpy as np import string import argparse SAMPLE_RATE = 22050 parser = argparse.ArgumentParser() parser.add_argument( '-t','--text', help='Input text', default='Đó ...
77
0
0
0
0
0
0
-1
66
7c7496a8a6a1bfcefbfa135e9975141cf430e090
97,316
py
Python
Python-Django-2016/Django/Clase1/Otras-cosas/Secretos-Ocultos-en-Shoppy/secretos_ocultos_shoppy.py
juandc/platzi-courses
27443bdb40a35100b9c839e2d598bc3cf4e43032
[ "MIT" ]
3
2017-09-14T23:14:21.000Z
2018-03-22T20:07:37.000Z
Python-Django-2016/Django/Clase1/Otras-cosas/Secretos-Ocultos-en-Shoppy/secretos_ocultos_shoppy.py
juandc/platzi-courses
27443bdb40a35100b9c839e2d598bc3cf4e43032
[ "MIT" ]
null
null
null
Python-Django-2016/Django/Clase1/Otras-cosas/Secretos-Ocultos-en-Shoppy/secretos_ocultos_shoppy.py
juandc/platzi-courses
27443bdb40a35100b9c839e2d598bc3cf4e43032
[ "MIT" ]
null
null
null
5351 4c69 7465 2066 6f72 6d61 7420 3300 0400 0101 0040 2020 0000 003b 0000 0000 0000 0000 0000 0000 0000 003b 0000 0001 0000 0000 0000 0000 0000 0001 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0500 0000 0603 e200 0000 0026 03fb 03f1 03ec 03f6 03e7 03e2 0000 0000 ...
39.965503
39
0.799992
5351 4c69 7465 2066 6f72 6d61 7420 3300 0400 0101 0040 2020 0000 003b 0000 0000 0000 0000 0000 0000 0000 003b 0000 0001 0000 0000 0000 0000 0000 0001 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0500 0000 0603 e200 0000 0026 03fb 03f1 03ec 03f6 03e7 03e2 0000 0000 ...
0
0
0
0
0
0
0
0
0
655bfaa0580d1348ce0b1d12d16a88e2e3cd8b82
872
py
Python
cpecat/importer/mongodb.py
dtechspace/ics-asset-management
6e81f41e1a70f17139a03d1c6ddcbe281082048f
[ "Apache-2.0" ]
6
2019-04-03T16:44:53.000Z
2021-04-23T00:05:29.000Z
cpecat/importer/mongodb.py
dtechspace/ics-asset-management
6e81f41e1a70f17139a03d1c6ddcbe281082048f
[ "Apache-2.0" ]
null
null
null
cpecat/importer/mongodb.py
dtechspace/ics-asset-management
6e81f41e1a70f17139a03d1c6ddcbe281082048f
[ "Apache-2.0" ]
1
2019-08-03T01:13:16.000Z
2019-08-03T01:13:16.000Z
# Copyright 2018, D-Tech, LLC, All Rights Reserved. # Disclaimer: This software is provided "AS IS" without warrantees. # D-Tech, LLC has no oblication to provide any maintainence, update # or support for this software. Under no circumstances shall D-Tech, # LLC be liable to any parties for direct, indirect, sp...
36.333333
74
0.71445
# Copyright © 2018, D-Tech, LLC, All Rights Reserved. # Disclaimer: This software is provided "AS IS" without warrantees. # D-Tech, LLC has no oblication to provide any maintainence, update # or support for this software. Under no circumstances shall D-Tech, # LLC be liable to any parties for direct, indirect, s...
2
0
0
0
0
0
0
0
0
4eeb67d3fb0e092dadda64c2b4bb57e0787c936e
264
py
Python
auto_ripper_daemon/wmi_drives.py
puujam/auto_ripper_gui
bc181d15c7f1ee285b160ac2a71722b313c514f1
[ "MIT" ]
null
null
null
auto_ripper_daemon/wmi_drives.py
puujam/auto_ripper_gui
bc181d15c7f1ee285b160ac2a71722b313c514f1
[ "MIT" ]
null
null
null
auto_ripper_daemon/wmi_drives.py
puujam/auto_ripper_gui
bc181d15c7f1ee285b160ac2a71722b313c514f1
[ "MIT" ]
null
null
null
_wmi_handle = None
16.5
40
0.700758
import wmi _wmi_handle = None def get_wmi_handle(): global _wmi_handle if not _wmi_handle: _wmi_handle = wmi.WMI() return _wmi_handle def list_all_cd_drives(): wmi_handle = get_wmi_handle() return wmi_handle.Win32_CDRomDrive()
0
0
0
0
0
188
0
-11
68
ed86567615814ed6b1df203b44fe9a5a11ecc9b9
35,212
py
Python
ludwig/hyperopt/execution.py
louixs/ludwig
20d8f9c48123d3b71e38615fbc365cf8d392f971
[ "Apache-2.0" ]
null
null
null
ludwig/hyperopt/execution.py
louixs/ludwig
20d8f9c48123d3b71e38615fbc365cf8d392f971
[ "Apache-2.0" ]
null
null
null
ludwig/hyperopt/execution.py
louixs/ludwig
20d8f9c48123d3b71e38615fbc365cf8d392f971
[ "Apache-2.0" ]
null
null
null
try: import ray except ImportError: ray = None get_horovod_kwargs = None # TODO: refactor this into an interface executor_registry = { "serial": SerialExecutor, "ray": RayTuneExecutor } def _run_experiment_unary(kwargs): """Unary function is needed by Fiber to map a list of args....
39.387025
134
0.61445
import datetime import os import uuid import copy import json import shutil import threading import time from abc import ABC, abstractmethod from pathlib import Path from typing import Union, Optional, Tuple from ludwig.api import LudwigModel from ludwig.backend import RAY, initialize_backend from ludwig.callbacks imp...
0
1,249
0
27,711
0
4,290
0
578
1,024
f0bba06cfab2c3f5fcca39974e0df5ac721b92b1
3,890
py
Python
panorama.py
guilhermetiaki/panorama
cb54ab55edc83c5de90c1dc05366b9da9c53f429
[ "MIT" ]
null
null
null
panorama.py
guilhermetiaki/panorama
cb54ab55edc83c5de90c1dc05366b9da9c53f429
[ "MIT" ]
null
null
null
panorama.py
guilhermetiaki/panorama
cb54ab55edc83c5de90c1dc05366b9da9c53f429
[ "MIT" ]
null
null
null
import sys import cv2 import numpy as np if __name__=='__main__': # Create SIFT object sift = cv2.xfeatures2d.SIFT_create() # Create Flann Matcher Object flann = cv2.FlannBasedMatcher(dict(algorithm = 0, trees = 5), dict(checks = 50)) # Gets list of image files from arguments files = sys.argv...
46.86747
94
0.61491
import sys import cv2 import numpy as np if __name__=='__main__': # Create SIFT object sift = cv2.xfeatures2d.SIFT_create() # Create Flann Matcher Object flann = cv2.FlannBasedMatcher(dict(algorithm = 0, trees = 5), dict(checks = 50)) # Gets list of image files from arguments files = sys.argv...
0
0
0
0
0
0
0
0
0
53796539e9f974240a760125bd32430c5dfe371e
1,916
py
Python
newton/newton/urls.py
onap/multicloud-openstack
d0e41eb1b1a1cb79365836da728908ed26253db4
[ "CC-BY-4.0" ]
4
2018-10-24T15:20:14.000Z
2020-03-09T06:29:11.000Z
newton/newton/urls.py
onap/multicloud-openstack
d0e41eb1b1a1cb79365836da728908ed26253db4
[ "CC-BY-4.0" ]
null
null
null
newton/newton/urls.py
onap/multicloud-openstack
d0e41eb1b1a1cb79365836da728908ed26253db4
[ "CC-BY-4.0" ]
2
2020-08-03T13:45:44.000Z
2021-09-15T21:10:26.000Z
# Copyright (c) 2017-2018 Wind River Systems, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
41.652174
81
0.675887
# Copyright (c) 2017-2018 Wind River Systems, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
0
0
0
0
0
0
0
0
0
914aa18e70796937dd0f34fdcc92a6c1474148d1
3,159
py
Python
tools/deploy_tls_secret.py
ravidbro/assisted-service
846f2dc89d10b74ed95cb99a6a8888902fb11497
[ "Apache-2.0" ]
68
2020-08-04T16:30:21.000Z
2022-03-18T02:44:58.000Z
tools/deploy_tls_secret.py
ravidbro/assisted-service
846f2dc89d10b74ed95cb99a6a8888902fb11497
[ "Apache-2.0" ]
3,554
2020-07-12T17:27:13.000Z
2022-03-31T21:54:04.000Z
tools/deploy_tls_secret.py
ravidbro/assisted-service
846f2dc89d10b74ed95cb99a6a8888902fb11497
[ "Apache-2.0" ]
129
2020-07-06T11:43:32.000Z
2022-03-29T01:29:30.000Z
if __name__ == "__main__": main()
40.5
115
0.606838
import argparse import os import textwrap import deployment_options import utils def get_ca(output_dir, force_replace=False): ca_subject = "/CN=Assisted Installer" ca_expiration = 365 ca_csr_path = os.path.join(output_dir, "ca.csr") ca_key_path = os.path.join(output_dir, "ca-key.pem") if force_...
0
0
0
0
0
2,965
0
-29
180
858136d0e81d8a35cd6f59dfb49158c21227411c
125
py
Python
tests/__init__.py
glentner/taskflow
635114ff4b8521333c6857b410289680fb0d28a1
[ "Apache-2.0" ]
null
null
null
tests/__init__.py
glentner/taskflow
635114ff4b8521333c6857b410289680fb0d28a1
[ "Apache-2.0" ]
null
null
null
tests/__init__.py
glentner/taskflow
635114ff4b8521333c6857b410289680fb0d28a1
[ "Apache-2.0" ]
null
null
null
# SPDX-FileCopyrightText: 2022 Geoffrey Lentner # SPDX-License-Identifier: Apache-2.0 """Automated tests for HyperShell."""
25
47
0.768
# SPDX-FileCopyrightText: 2022 Geoffrey Lentner # SPDX-License-Identifier: Apache-2.0 """Automated tests for HyperShell."""
0
0
0
0
0
0
0
0
0
6e0d48f6e4cf7aa9e19a92ed2d50365a9ebfba4e
2,835
py
Python
billing/management/commands/create_invoices.py
jayvdb/django-customer-billing
8d8b3b111a357b4fae0c0c249c1fc2cfdced3b27
[ "MIT" ]
13
2017-11-18T14:31:27.000Z
2021-11-04T08:08:33.000Z
billing/management/commands/create_invoices.py
jayvdb/django-customer-billing
8d8b3b111a357b4fae0c0c249c1fc2cfdced3b27
[ "MIT" ]
3
2020-09-16T04:03:18.000Z
2020-10-05T07:17:57.000Z
billing/management/commands/create_invoices.py
jayvdb/django-customer-billing
8d8b3b111a357b4fae0c0c249c1fc2cfdced3b27
[ "MIT" ]
5
2019-09-10T22:24:52.000Z
2021-10-06T10:43:55.000Z
import structlog logger = structlog.get_logger()
35
110
0.614815
import logging from datetime import timedelta, date import progressbar import structlog from collections import defaultdict from django.core.management.base import BaseCommand from django.utils import timezone, dateparse from ...actions.accounts import create_invoices from ...models import Account def set_debug(log...
0
0
0
2,175
0
253
0
106
247
1974437be38fa8eb48c375389aa374a16dd27ff4
16,355
py
Python
code/imagenet.py
modestyachts/ImageNetV2
a4cda818c419f67cf5c5c12987580bd8ad525876
[ "MIT" ]
173
2019-02-15T19:29:25.000Z
2022-03-25T19:01:13.000Z
code/imagenet.py
modestyachts/ImageNetV2
a4cda818c419f67cf5c5c12987580bd8ad525876
[ "MIT" ]
8
2019-03-11T01:35:48.000Z
2021-11-18T09:46:01.000Z
code/imagenet.py
modestyachts/ImageNetV2
a4cda818c419f67cf5c5c12987580bd8ad525876
[ "MIT" ]
21
2019-03-06T02:25:29.000Z
2022-03-16T09:30:29.000Z
from collections import namedtuple ClassInfo = namedtuple('ClassInfo', ['wnid', 'cid', 'synset', 'wikipedia_pages', 'gloss'])
43.49734
115
0.607887
from collections import namedtuple import concurrent import io import json import os import pathlib import pickle import tarfile import boto3 import imageio import numpy as np import utils ClassInfo = namedtuple('ClassInfo', ['wnid', 'cid', 'synset', 'wikipedia_pages', 'gloss']) class UnknownDataPartError(Excepti...
0
0
0
16,022
0
0
0
-88
290
7818643cff5c96139c9fe4369630b053cc07f79b
983
py
Python
captioning_model.py
nishprabhu/image_captioning
4bf84c9f37b2d35a071cb28b62ad08081ebe0a29
[ "MIT" ]
null
null
null
captioning_model.py
nishprabhu/image_captioning
4bf84c9f37b2d35a071cb28b62ad08081ebe0a29
[ "MIT" ]
null
null
null
captioning_model.py
nishprabhu/image_captioning
4bf84c9f37b2d35a071cb28b62ad08081ebe0a29
[ "MIT" ]
null
null
null
""" Contains the Encoder-Decoder model for image captioning """ import torch.nn as nn
30.71875
86
0.666328
""" Contains the Encoder-Decoder model for image captioning """ import torch.nn as nn from cnn import CNN from rnn import RNN from transformer import Transformer class CaptioningModel(nn.Module): """ Image captioning model """ def __init__( self, encoder_output_dim, decoder_type, vocab_size, embedd...
0
0
0
795
0
0
0
10
89
fdb664142db713f5a0b10cb56dda1aca470117c1
6,323
py
Python
parser-spark/dataset_us_filter_and_score_calc.py
whitemike889/HappiTweet
601d19d68808c1987e531ce4c4f0b12fd2063e6e
[ "Apache-2.0" ]
1
2016-11-09T15:24:40.000Z
2016-11-09T15:24:40.000Z
parser-spark/dataset_us_filter_and_score_calc.py
whitemike889/HappiTweet
601d19d68808c1987e531ce4c4f0b12fd2063e6e
[ "Apache-2.0" ]
null
null
null
parser-spark/dataset_us_filter_and_score_calc.py
whitemike889/HappiTweet
601d19d68808c1987e531ce4c4f0b12fd2063e6e
[ "Apache-2.0" ]
1
2019-02-08T12:45:47.000Z
2019-02-08T12:45:47.000Z
from pyspark import SparkContext ''' Configuration Parameters ''' tweetsFile = "/tmp/ist169518/out_*/part*" outFileProcessedDataset = "/tmp/ist169518/filtered-scored" # Emotional Lexicons # csv files with first column with the word, and second with the score separated with commas word_list_info = [ {'key': 'en.he...
43.013605
564
0.636565
from pyspark import SparkContext import json import gzip import marshal ''' Configuration Parameters ''' tweetsFile = "/tmp/ist169518/out_*/part*" outFileProcessedDataset = "/tmp/ist169518/filtered-scored" # Emotional Lexicons # csv files with first column with the word, and second with the score separated with comm...
0
0
0
0
0
3,016
0
-27
225
979ada8c50cccc64907ed8b9f0e0ddeefde7b80e
13,560
py
Python
ServerComponent/venv/Lib/site-packages/pythonrv/rv.py
CDU55/FakeNews
707bd48dd78851081d98ad21bbdadfc2720bd644
[ "MIT" ]
2
2019-01-06T13:31:10.000Z
2020-12-11T04:05:44.000Z
pythonrv/rv.py
tgwizard/pythonrv
e50198cc6d48d8c6c6badbe8a1cd46eb0182839a
[ "MIT" ]
37
2020-10-20T08:30:53.000Z
2020-12-22T13:15:45.000Z
pythonrv/rv.py
tgwizard/pythonrv
e50198cc6d48d8c6c6badbe8a1cd46eb0182839a
[ "MIT" ]
1
2020-10-19T14:55:23.000Z
2020-10-19T14:55:23.000Z
# -*- coding: utf-8 -*- import logging ################################################################## ### defaults and constants ################################################################## PRE = 'pre' POST = 'post' DEFAULT_MAX_HISTORY_SIZE = 2 INFINITE_HISTORY_SIZE = -1 NO_HISTORY = 1 DEBUG = logging.DE...
31.830986
118
0.60236
# -*- coding: utf-8 -*- import logging from . import instrumentation from .dotdict import dotdict ################################################################## ### defaults and constants ################################################################## PRE = 'pre' POST = 'post' DEFAULT_MAX_HISTORY_SIZE = 2 I...
0
362
0
5,778
452
4,613
0
15
643
452e279a6193abc88461babe810211a3f8d434ff
1,661
py
Python
main.py
kirantambe/koinex-status-ticker
487028a00605912e9fee97f4b29f260a2ab4f66f
[ "MIT" ]
null
null
null
main.py
kirantambe/koinex-status-ticker
487028a00605912e9fee97f4b29f260a2ab4f66f
[ "MIT" ]
1
2021-06-01T21:56:55.000Z
2021-06-01T21:56:55.000Z
main.py
kirantambe/koinex-status-ticker
487028a00605912e9fee97f4b29f260a2ab4f66f
[ "MIT" ]
1
2018-01-16T03:51:09.000Z
2018-01-16T03:51:09.000Z
API_URL = 'https://koinex.in/api/ticker' UPDATE_INTERVAL = 60 CURRENCIES = { 'Bitcoin': 'BTC', 'Ethereum': 'ETH', 'Ripple': 'XRP', 'Litecoin': 'LTC', 'Bitcoin Cash': 'BCH', } if __name__ == "__main__": KoinexStatusBarApp().run()
26.790323
77
0.587598
import rumps import requests import json API_URL = 'https://koinex.in/api/ticker' UPDATE_INTERVAL = 60 CURRENCIES = { 'Bitcoin': 'BTC', 'Ethereum': 'ETH', 'Ripple': 'XRP', 'Litecoin': 'LTC', 'Bitcoin Cash': 'BCH', } class KoinexStatusBarApp(rumps.App): def __init__(self): super(Koin...
0
463
0
876
0
0
0
-25
89
28ffd69e7ef8dbd17b98a27cd9ae9af36d7611c5
345
py
Python
materials/migrations/0079_remove_property_require_input_files.py
mgovoni-devel/MatD3
5b68d147f886bce427f92bb560159e62cec2d4e7
[ "BSD-2-Clause-FreeBSD" ]
7
2019-09-14T07:24:09.000Z
2021-06-15T16:15:05.000Z
materials/migrations/0079_remove_property_require_input_files.py
mgovoni-devel/MatD3
5b68d147f886bce427f92bb560159e62cec2d4e7
[ "BSD-2-Clause-FreeBSD" ]
14
2019-12-05T01:49:19.000Z
2021-06-23T18:34:51.000Z
materials/migrations/0079_remove_property_require_input_files.py
mgovoni-devel/MatD3
5b68d147f886bce427f92bb560159e62cec2d4e7
[ "BSD-2-Clause-FreeBSD" ]
2
2019-11-06T21:16:57.000Z
2019-11-30T10:51:44.000Z
# Generated by Django 2.1.7 on 2019-05-03 02:36
19.166667
49
0.611594
# Generated by Django 2.1.7 on 2019-05-03 02:36 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('materials', '0078_auto_20190501_1418'), ] operations = [ migrations.RemoveField( model_name='property', name='require_input_...
0
0
0
239
0
0
0
11
46
381e48031db6b3bb9ab5198242c5568c48b161ff
2,668
py
Python
ag-res.py
Murilodsv/py-jules
601ca9e6fbad7fe82404f5296babb04583ddda95
[ "MIT" ]
null
null
null
ag-res.py
Murilodsv/py-jules
601ca9e6fbad7fe82404f5296babb04583ddda95
[ "MIT" ]
null
null
null
ag-res.py
Murilodsv/py-jules
601ca9e6fbad7fe82404f5296babb04583ddda95
[ "MIT" ]
1
2020-04-13T17:23:54.000Z
2020-04-13T17:23:54.000Z
# -*- coding: utf-8 -*- """ Created on Tue Apr 20 13:32:20 2021 #--- ag csv results to single file based on dashboard_dbs #--- Murilo Vianna (murilodsv@gmail.com) #--- Jul, 2021. #--- Dev-log in: https://github.com/Murilodsv/py-jules @author: muril """ # DEBUG import os; os.chdir('C:/Murilo/py-jules'...
24.477064
97
0.508996
# -*- coding: utf-8 -*- """ Created on Tue Apr 20 13:32:20 2021 #--- ag csv results to single file based on dashboard_dbs #--- Murilo Vianna (murilodsv@gmail.com) #--- Jul, 2021. #--- Dev-log in: https://github.com/Murilodsv/py-jules @author: muril """ # DEBUG import os; os.chdir('C:/Murilo/py-jules'...
0
0
0
0
0
0
0
0
0
0c558aec93fa79ac6f2a75def0307f6ce81beb32
5,131
py
Python
whoosh/components/physics.py
Normangorman/whoosh
8ada8f9f628e05d8bfefcc5043588635893749ee
[ "MIT" ]
null
null
null
whoosh/components/physics.py
Normangorman/whoosh
8ada8f9f628e05d8bfefcc5043588635893749ee
[ "MIT" ]
8
2017-03-04T20:05:32.000Z
2017-03-05T11:19:54.000Z
whoosh/components/physics.py
Normangorman/whoosh
8ada8f9f628e05d8bfefcc5043588635893749ee
[ "MIT" ]
null
null
null
""" With a physics component, you can fly. Well, not for long. You'll shortly fall to your death. """
34.206667
124
0.613331
""" With a physics component, you can fly. Well, not for long. You'll shortly fall to your death. """ import pymunk import whoosh.maths from whoosh.components.base import BaseComponent class PhysicsComponent(BaseComponent): """ Useful for recreating Angry Birds. GameWorld.add_blob will automatically add t...
0
0
0
4,923
0
0
0
17
89
84d4b18eac7654bdf85e72d7b5a31e2cb42edd6d
426
py
Python
sessao02/3_14-Strings-e-aspas/aula14.py
Ruteski/CursoPythonOM
afe5ad5e50f903dab370be2b76966a81f07e51dd
[ "MIT" ]
null
null
null
sessao02/3_14-Strings-e-aspas/aula14.py
Ruteski/CursoPythonOM
afe5ad5e50f903dab370be2b76966a81f07e51dd
[ "MIT" ]
null
null
null
sessao02/3_14-Strings-e-aspas/aula14.py
Ruteski/CursoPythonOM
afe5ad5e50f903dab370be2b76966a81f07e51dd
[ "MIT" ]
null
null
null
""" str - string """ print('aspas simples') print("aspas duplas") print(123456) # integer, conversao implicita para string print("essa uma 'string' (str).") print('essa uma "string" (str).') print('essa uma \'string\' (str).') print("essa uma \"string\" (str).") # '\' caracter de escape print('essa uma \n (str...
28.4
94
0.640845
""" str - string """ print('aspas simples') print("aspas duplas") print(123456) # integer, conversao implicita para string print("essa é uma 'string' (str).") print('essa é uma "string" (str).') print('essa é uma \'string\' (str).') print("essa é uma \"string\" (str).") # '\' caracter de escape print('essa é uma \n...
12
0
0
0
0
0
0
0
0
252fe390e7915720b251a28ef29a97c0d83ca6b6
3,195
py
Python
utils/PingMonitor.py
ianfixes/MOOS-python-utils
1c34f3b8cde4fdcee48a8ee128a3c160eb17d722
[ "WTFPL" ]
3
2015-07-09T17:51:20.000Z
2016-04-14T23:06:04.000Z
utils/PingMonitor.py
ifreecarve/MOOS-python-utils
1c34f3b8cde4fdcee48a8ee128a3c160eb17d722
[ "WTFPL" ]
null
null
null
utils/PingMonitor.py
ifreecarve/MOOS-python-utils
1c34f3b8cde4fdcee48a8ee128a3c160eb17d722
[ "WTFPL" ]
3
2015-03-31T04:18:21.000Z
2016-10-22T04:55:16.000Z
#!/usr/bin/env python ########################################################################### # # Written in 2009 by Ian Katz <ijk5@mit.edu> # Terms: WTFPL (http://sam.zoy.org/wtfpl/) # See COPYING and WARRANTY files included in this distribution # #####################################...
26.404959
75
0.554617
#!/usr/bin/env python ########################################################################### # # Written in 2009 by Ian Katz <ijk5@mit.edu> # Terms: WTFPL (http://sam.zoy.org/wtfpl/) # See COPYING and WARRANTY files included in this distribution # #####################################...
0
0
0
848
0
249
0
0
45
2738c23c527ee5c92714e30191c89b5224c64772
6,399
py
Python
notebooks/cluster_diff.py
SLIPO-EU/tutorial
15f4e0bc8c3ef2b937daa23e7b759ecf44fce5d7
[ "Apache-2.0" ]
1
2020-11-03T14:59:01.000Z
2020-11-03T14:59:01.000Z
notebooks/cluster_diff.py
SLIPO-EU/tutorial
15f4e0bc8c3ef2b937daa23e7b759ecf44fce5d7
[ "Apache-2.0" ]
null
null
null
notebooks/cluster_diff.py
SLIPO-EU/tutorial
15f4e0bc8c3ef2b937daa23e7b759ecf44fce5d7
[ "Apache-2.0" ]
1
2021-07-16T08:33:36.000Z
2021-07-16T08:33:36.000Z
import numpy as np from pandas import concat from geopandas import GeoDataFrame def map_cluster_diff(clusters_a, clusters_b, intersection_color='#00ff00', diff_ab_color='#0000ff', diff_ba_color='#ff0000', tiles='OpenStreetMap', width='100%', height='100%'): """Returns a Folium Map displaying t...
39.257669
110
0.649164
import numpy as np import matplotlib from matplotlib import colors from matplotlib import cm import matplotlib.pyplot as plt import folium from folium.plugins import HeatMap from folium.plugins import MarkerCluster from loci.analytics import bbox, kwds_freq from wordcloud import WordCloud from pysal.viz.mapclassify imp...
0
0
0
0
0
0
0
102
242
28ec1648de23d76658c175b1386f4cad995021d8
1,245
py
Python
web_service/routes.py
DigitalSlideArchive-Legacy/openseadragon-annotations
a21ea4ea9217fed54c8033655905c9bfd0f73714
[ "Apache-2.0" ]
5
2019-06-20T11:33:11.000Z
2022-02-22T05:18:57.000Z
web_service/routes.py
dgutman/openseadragon-annotations
a21ea4ea9217fed54c8033655905c9bfd0f73714
[ "Apache-2.0" ]
6
2015-11-13T02:23:26.000Z
2015-11-13T02:59:39.000Z
web_service/routes.py
dgutman/openseadragon-annotations
a21ea4ea9217fed54c8033655905c9bfd0f73714
[ "Apache-2.0" ]
3
2019-06-05T06:36:39.000Z
2020-01-21T18:44:35.000Z
from flask import Blueprint import pymongo client = pymongo.MongoClient('localhost',27017) db = client.TCGA_Slide_DB dsa = Blueprint('dsa', __name__)
26.489362
111
0.670683
from flask import Blueprint, request, jsonify import pymongo client = pymongo.MongoClient('localhost',27017) db = client.TCGA_Slide_DB dsa = Blueprint('dsa', __name__) @dsa.route('/annotations', methods=['POST','OPTIONS']) def add_annotation(): ants = db.annotations layers = db.layers layer_ids = [] if request.j...
0
1,030
0
0
0
0
0
18
46
36ff3a574d98dd0cd2cbcc3a1fca29102aabc0ab
310
py
Python
pandaproxy/proxyinterface/InterfaceUtils.py
PanDAWMS/panda-proxy
731bf01d6684f52798a750bf049078c6eb11ed59
[ "Apache-2.0" ]
null
null
null
pandaproxy/proxyinterface/InterfaceUtils.py
PanDAWMS/panda-proxy
731bf01d6684f52798a750bf049078c6eb11ed59
[ "Apache-2.0" ]
null
null
null
pandaproxy/proxyinterface/InterfaceUtils.py
PanDAWMS/panda-proxy
731bf01d6684f52798a750bf049078c6eb11ed59
[ "Apache-2.0" ]
null
null
null
# make response
25.833333
50
0.651613
import urllib # make response def makeResponse(errorCode,errorMsg,msgData=None): tmpDict = {'StatusCode':errorCode, 'ErrorMsg':errorMsg} if msgData != None: for tmpKey,tmpVal in msgData.iteritems(): tmpDict[tmpKey] = tmpVal return urllib.urlencode(tmpDict)
0
0
0
0
0
252
0
-8
44
79895f188c2944c177144735db79756865f27abf
135
py
Python
examples/test.py
wenhaoLong/vnpyTrader
ff37e288042b9d9f9350a1c528a53c77d56ae849
[ "MIT" ]
null
null
null
examples/test.py
wenhaoLong/vnpyTrader
ff37e288042b9d9f9350a1c528a53c77d56ae849
[ "MIT" ]
null
null
null
examples/test.py
wenhaoLong/vnpyTrader
ff37e288042b9d9f9350a1c528a53c77d56ae849
[ "MIT" ]
2
2021-03-07T18:13:21.000Z
2021-12-13T10:20:10.000Z
from datetime import datetime theTime = '2019-12-20 10:22:00' theTime = datetime.strptime(theTime, '%Y-%m-%d %H:%M:%S') print(theTime)
27
57
0.703704
from datetime import datetime theTime = '2019-12-20 10:22:00' theTime = datetime.strptime(theTime, '%Y-%m-%d %H:%M:%S') print(theTime)
0
0
0
0
0
0
0
0
0
aa2f7feda85faef5b61caf8be8c265bbb931ba4a
2,399
py
Python
web/signup.py
obuseme/ultra-motivator
c5614c56ffbb772dd56e0754939e7f5ca83a4efb
[ "MIT" ]
1
2019-06-25T10:38:09.000Z
2019-06-25T10:38:09.000Z
web/signup.py
obuseme/ultra-motivator
c5614c56ffbb772dd56e0754939e7f5ca83a4efb
[ "MIT" ]
null
null
null
web/signup.py
obuseme/ultra-motivator
c5614c56ffbb772dd56e0754939e7f5ca83a4efb
[ "MIT" ]
null
null
null
#!C:\Python27\python.exe -u #!/usr/bin/env python import MySQLdb import hashlib import cgi import uuid print "Content-type: text/html" print print """ <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <titl...
27.895349
217
0.668195
#!C:\Python27\python.exe -u #!/usr/bin/env python import MySQLdb import hashlib import cgi import uuid def hash_password(password): salt = uuid.uuid4().hex return hashlib.sha256(salt.encode() + password.encode()).hexdigest() + ':' + salt def show_signup_ui(): print """ <div class="center"> <form metho...
0
0
0
0
0
600
0
0
46
f0b4b8d709e298308c2f9d1b29640fe2e1adca65
53
py
Python
__init__.py
halibot-extra/reminders
846015f77e0b19a8e080b92300341b256680ff25
[ "BSD-3-Clause" ]
null
null
null
__init__.py
halibot-extra/reminders
846015f77e0b19a8e080b92300341b256680ff25
[ "BSD-3-Clause" ]
null
null
null
__init__.py
halibot-extra/reminders
846015f77e0b19a8e080b92300341b256680ff25
[ "BSD-3-Clause" ]
null
null
null
from .reminders import Reminders Default = Reminders
17.666667
32
0.830189
from .reminders import Reminders Default = Reminders
0
0
0
0
0
0
0
0
0
5675e059b9df2fa439860e2f1865a5c3d88be675
389
py
Python
src/pbbt/__init__.py
prometheusresearch/pbbt
35e6e4f49a1055892f487720f1c6ec15144956ff
[ "MIT" ]
2
2021-03-16T15:57:31.000Z
2021-10-06T23:13:26.000Z
src/pbbt/__init__.py
prometheusresearch/pbbt
35e6e4f49a1055892f487720f1c6ec15144956ff
[ "MIT" ]
1
2021-02-05T00:20:30.000Z
2021-02-05T00:20:30.000Z
src/pbbt/__init__.py
prometheusresearch/pbbt
35e6e4f49a1055892f487720f1c6ec15144956ff
[ "MIT" ]
3
2021-02-15T20:37:02.000Z
2021-10-06T23:13:28.000Z
# # Copyright (c) 2013, Prometheus Research, LLC # Released under MIT license, see `LICENSE` for details. #
24.3125
74
0.755784
# # Copyright (c) 2013, Prometheus Research, LLC # Released under MIT license, see `LICENSE` for details. # from .check import maybe, oneof, choiceof, listof, tupleof, dictof, raises from .core import Test, Field, Record from .ctl import Control from .load import locate, Location from .run import run, main from .std ...
0
0
0
0
0
0
0
123
155
6f8d0521295c7f3c3553377938008c734099b2e4
8,335
py
Python
monai/networks/blocks/evonorm_primitives.py
vsivan97/MONAI
33cb186b4664bb032fe9837b305c0a06cdf6d289
[ "Apache-2.0" ]
null
null
null
monai/networks/blocks/evonorm_primitives.py
vsivan97/MONAI
33cb186b4664bb032fe9837b305c0a06cdf6d289
[ "Apache-2.0" ]
null
null
null
monai/networks/blocks/evonorm_primitives.py
vsivan97/MONAI
33cb186b4664bb032fe9837b305c0a06cdf6d289
[ "Apache-2.0" ]
null
null
null
import torch.nn as nn ################### Primitive mean ################### Primitive STD ################### Primitive STD Centered PRIMITIVES = [ PrimitiveAdd, PrimitiveMul, PrimitiveDiv, PrimitiveMax, PrimitiveNeg, PrimitiveSigmoid, PrimitiveTanh, PrimitiveExp, PrimitiveLo...
25.646154
93
0.612358
import torch import torch.nn as nn class EvonormPrimitive(nn.Module): """Abstract base class for the evonorm primitive layers """ def __init__(self): if type(self) is EvonormPrimitive: raise NotImplementedError super().__init__() class PrimitiveAdd(EvonormPrimitive): """ Pr...
0
0
0
7,025
0
0
0
-9
597
13e9e73cd2166b1dd4288634db847b0f80559bd0
638
py
Python
why_this_song/hello.py
AnikaZN/Why-This-Song
378c1b3ec646bd9547a1b6078aff0d8288aee729
[ "MIT" ]
null
null
null
why_this_song/hello.py
AnikaZN/Why-This-Song
378c1b3ec646bd9547a1b6078aff0d8288aee729
[ "MIT" ]
null
null
null
why_this_song/hello.py
AnikaZN/Why-This-Song
378c1b3ec646bd9547a1b6078aff0d8288aee729
[ "MIT" ]
null
null
null
import spotipy from spotipy.oauth2 import SpotifyClientCredentials from dotenv import load_dotenv load_dotenv() lz_uri = 'spotify:artist:36QJpDe2go2KgaRleHCDTp' client_credentials_manager = SpotifyClientCredentials(client_id='CLIENT_ID', client_secret='CLIENT_SECRET') spotify =...
31.9
80
0.706897
import spotipy from spotipy.oauth2 import SpotifyClientCredentials from dotenv import load_dotenv load_dotenv() lz_uri = 'spotify:artist:36QJpDe2go2KgaRleHCDTp' client_credentials_manager = SpotifyClientCredentials(client_id='CLIENT_ID', client_secret='CLIENT_SECRET') spotify =...
0
0
0
0
0
0
0
0
0
6a0f23a0820038366117b6940c55981c78f29074
9,204
gyp
Python
src/win32/base/win32_base.gyp
kbc-developers/Mozc
97f225ceb1759eedd58f4f09b16411bcb5a62885
[ "BSD-3-Clause" ]
null
null
null
src/win32/base/win32_base.gyp
kbc-developers/Mozc
97f225ceb1759eedd58f4f09b16411bcb5a62885
[ "BSD-3-Clause" ]
null
null
null
src/win32/base/win32_base.gyp
kbc-developers/Mozc
97f225ceb1759eedd58f4f09b16411bcb5a62885
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2010-2016, Google Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and ...
31.412969
79
0.492938
# Copyright 2010-2016, Google Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and ...
0
0
0
0
0
0
0
0
0
af6bf12e8e0fddddc4541185f09c24a1979e62a2
10,443
py
Python
gcnf/tests/test_all.py
vojtechcima/gcn
3f58d830140a3a598241fd0e8987e6b6a201fb17
[ "MIT" ]
1
2020-01-25T17:28:33.000Z
2020-01-25T17:28:33.000Z
gcnf/tests/test_all.py
It4innovations/gcnf
3f58d830140a3a598241fd0e8987e6b6a201fb17
[ "MIT" ]
4
2020-11-13T18:35:36.000Z
2022-02-10T00:33:27.000Z
gcnf/tests/test_all.py
vojtechcima/gcn
3f58d830140a3a598241fd0e8987e6b6a201fb17
[ "MIT" ]
null
null
null
import tensorflow as tf tf.compat.v1.disable_eager_execution()
33.471154
106
0.580868
from ..graph import Arc, ArcType, Node, NodeType, Graph, GraphType, GraphSet from ..gcn import GCN import tensorflow as tf import numpy as np tf.compat.v1.disable_eager_execution() def test(): nt = NodeType(4, name="A") n1 = Node(nt, [1,2,3]) n2 = Node(nt, [1,2,3]) n3 = Node(nt, [1,2,3]) at = Ar...
0
0
0
0
0
10,070
0
52
250
7c5287d5f30d1e189bec1a817fbbd548b9794070
1,445
py
Python
twitter-user-search.py
dlukose/python-twitter-examples
75f92b1615900caff6dfc61efa162e2d316ace61
[ "MIT" ]
573
2015-01-23T17:45:23.000Z
2022-03-25T00:53:47.000Z
twitter-user-search.py
dlukose/python-twitter-examples
75f92b1615900caff6dfc61efa162e2d316ace61
[ "MIT" ]
8
2015-08-19T01:09:26.000Z
2019-04-26T14:27:49.000Z
twitter-user-search.py
dlukose/python-twitter-examples
75f92b1615900caff6dfc61efa162e2d316ace61
[ "MIT" ]
351
2015-01-29T14:38:56.000Z
2022-02-16T11:55:45.000Z
#!/usr/bin/env python #----------------------------------------------------------------------- # twitter-user-search # - performs a search for users matching a certain query #----------------------------------------------------------------------- #---------------------------------------------------------------------...
40.138889
81
0.333564
#!/usr/bin/env python #----------------------------------------------------------------------- # twitter-user-search # - performs a search for users matching a certain query #----------------------------------------------------------------------- from twitter import * #----------------------------------------------...
0
0
0
0
0
0
0
0
23
676e4cab3ab5b305a470a50adb623276a1d3a2cc
928
py
Python
33birthday.py
qht1028/homework
b62312e6ca56ce94c436bce09349cddba640418a
[ "MIT" ]
null
null
null
33birthday.py
qht1028/homework
b62312e6ca56ce94c436bce09349cddba640418a
[ "MIT" ]
null
null
null
33birthday.py
qht1028/homework
b62312e6ca56ce94c436bce09349cddba640418a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # You are probably well aware of the 'birthday paradox' # https://en.wikipedia.org/wiki/Birthday_problem # Let's try simulating it # You will need a list for the 365 day calendar # You will need a set number of people (e.g. 25) # During each 'trial' you do the following # Choose a person # Git ...
23.2
78
0.665948
#!/usr/bin/env python3 # You are probably well aware of the 'birthday paradox' # https://en.wikipedia.org/wiki/Birthday_problem # Let's try simulating it # You will need a list for the 365 day calendar # You will need a set number of people (e.g. 25) # During each 'trial' you do the following # Choose a person # Git ...
0
0
0
0
0
0
0
0
0
53e0f031cdd5149c25021ee8bc58246a6902eccd
9,179
py
Python
bot/modules/help/cog.py
runs-15/BotGabutReborn
1773b526dc4d26936051a3eba7baa8bcb50c8999
[ "MIT" ]
null
null
null
bot/modules/help/cog.py
runs-15/BotGabutReborn
1773b526dc4d26936051a3eba7baa8bcb50c8999
[ "MIT" ]
null
null
null
bot/modules/help/cog.py
runs-15/BotGabutReborn
1773b526dc4d26936051a3eba7baa8bcb50c8999
[ "MIT" ]
null
null
null
# from discord_components import Button, ButtonStyle, InteractionType # import asyncio
51.858757
301
0.556706
from inspect import formatargvalues import discord, datetime, db, time, os import pandas as pd from discord import Embed from discord.ext.commands import Cog, command from apscheduler.schedulers.asyncio import AsyncIOScheduler from apscheduler.triggers.cron import CronTrigger # from discord_components import Button, Bu...
3
4,499
3,010
816
0
343
0
145
279
182cecda9848e31de612a655300a6bab9574d2cf
144
py
Python
textpp_ptbr/__init__.py
fernandosola/textpp-ptbr
ff74dc3cbc4ec26aebd9ecb2b98cb6e37aadea58
[ "MIT" ]
2
2020-11-23T00:22:41.000Z
2021-12-02T15:33:57.000Z
textpp_ptbr/__init__.py
fernandosola/textpp-ptbr
ff74dc3cbc4ec26aebd9ecb2b98cb6e37aadea58
[ "MIT" ]
null
null
null
textpp_ptbr/__init__.py
fernandosola/textpp-ptbr
ff74dc3cbc4ec26aebd9ecb2b98cb6e37aadea58
[ "MIT" ]
2
2020-07-24T17:59:02.000Z
2021-11-22T19:50:52.000Z
import logging from ._version import __version__ __all__ = [ "__version__", ] logger = logging.getLogger(__name__) logging.basicConfig()
13.090909
36
0.75
import logging from ._version import __version__ __all__ = [ "__version__", ] logger = logging.getLogger(__name__) logging.basicConfig()
0
0
0
0
0
0
0
0
0
b031d8859a161a6483042dd0f6a128547266436d
3,138
py
Python
lj/kodo/qiniu_big_fetch.py
shliujing/qn-python-sdk
6a659b4197b7847b604b42cb223850977bcc86dc
[ "MIT" ]
null
null
null
lj/kodo/qiniu_big_fetch.py
shliujing/qn-python-sdk
6a659b4197b7847b604b42cb223850977bcc86dc
[ "MIT" ]
null
null
null
lj/kodo/qiniu_big_fetch.py
shliujing/qn-python-sdk
6a659b4197b7847b604b42cb223850977bcc86dc
[ "MIT" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- # 45URL # 0.3s, 10~15 URL PSURL # python qiniu_big_fetch.py <ak> <sk> <bucket> <zone(z0 z1)> <file_path> <sleep_time> import urlparse, hmac, hashlib, base64, commands, sys, time def Qiniu_token(access_key, secret_key, method, host, url, content_type=No...
30.466019
164
0.657425
#! /usr/bin/env python # -*- coding: utf-8 -*- # 该脚本平均每小时提交 4万5千多条URL # 推荐 0.3s,方便及时停止抓取, 一天提交10万~15万 URL PS:因为URL一旦提交到队列中,就不可修改 # python qiniu_big_fetch.py <ak> <sk> <bucket> <zone(z0 z1)> <file_path> <sleep_time> import urlparse, hmac, hashlib, base64, commands, sys, time def __token(data, secret_key): data =...
306
0
0
0
0
366
0
0
46
98aac9f08dcd786f3965c48675c876d21625fec8
827
py
Python
ex041.py
Jordemar-D-Bousquet/Exercicios_Python
705d4c83720db033841f01aa843e4dbab08f1423
[ "MIT" ]
null
null
null
ex041.py
Jordemar-D-Bousquet/Exercicios_Python
705d4c83720db033841f01aa843e4dbab08f1423
[ "MIT" ]
null
null
null
ex041.py
Jordemar-D-Bousquet/Exercicios_Python
705d4c83720db033841f01aa843e4dbab08f1423
[ "MIT" ]
null
null
null
# Exerccio Python 041: A Confederao Nacional de Natao precisa de um programa que leia o ano de nascimento de um atleta e mostre sua categoria, de acordo com a idade: # - At 9 anos: MIRIM # - At 14 anos: INFANTIL # - At 19 anos: JNIOR # - At 25 anos: SNIOR # - Acima de 25 anos: MASTER from datetime import date n = int(...
35.956522
170
0.666264
# Exercício Python 041: A Confederação Nacional de Natação precisa de um programa que leia o ano de nascimento de um atleta e mostre sua categoria, de acordo com a idade: # - Até 9 anos: MIRIM # - Até 14 anos: INFANTIL # - Até 19 anos: JÚNIOR # - Até 25 anos: SÊNIOR # - Acima de 25 anos: MASTER from datetime import da...
46
0
0
0
0
0
0
0
0
e42808877787064d5b283b378f39bbc5e12378a9
15,161
py
Python
core/builder.py
JeremieMelo/ADEPT
f79f518197798735cb684b373e11cdcc8a80d872
[ "MIT" ]
5
2022-02-26T09:14:47.000Z
2022-03-20T22:57:06.000Z
core/builder.py
JeremieMelo/ADEPT
f79f518197798735cb684b373e11cdcc8a80d872
[ "MIT" ]
null
null
null
core/builder.py
JeremieMelo/ADEPT
f79f518197798735cb684b373e11cdcc8a80d872
[ "MIT" ]
null
null
null
""" Description: Author: Jiaqi Gu (jqgu@utexas.edu) Date: 2021-03-31 17:48:41 LastEditors: Jiaqi Gu (jqgu@utexas.edu) LastEditTime: 2021-09-26 00:51:50 """ import torch.nn as nn __all__ = [ "make_dataloader", "make_model", "make_weight_optimizer", "make_arch_optimizer", "make_optimizer", "make_...
38.092965
107
0.625816
""" Description: Author: Jiaqi Gu (jqgu@utexas.edu) Date: 2021-03-31 17:48:41 LastEditors: Jiaqi Gu (jqgu@utexas.edu) LastEditTime: 2021-09-26 00:51:50 """ from typing import Tuple import torch import torch.nn as nn from pyutils.config import configs from pyutils.datasets import get_dataset from pyutils.loss import A...
0
0
0
0
0
14,044
0
304
450
db43bd7f34ca9a0dab0726a6ecdfc1b618b92bcc
3,889
py
Python
mdx/mdx_inline_graphviz.py
Macuyiko/markdown-slide-editor
2a4c87a2d0f1436c0d954c15cf732529fa710278
[ "MIT" ]
1
2021-02-05T11:34:03.000Z
2021-02-05T11:34:03.000Z
mdx/mdx_inline_graphviz.py
Macuyiko/markdown-slide-editor
2a4c87a2d0f1436c0d954c15cf732529fa710278
[ "MIT" ]
1
2021-01-27T07:28:37.000Z
2021-01-27T07:28:37.000Z
mdx/mdx_inline_graphviz.py
Macuyiko/markdown-slide-editor
2a4c87a2d0f1436c0d954c15cf732529fa710278
[ "MIT" ]
null
null
null
""" Graphviz extensions for Markdown. Renders the output inline, eliminating the need to configure an output directory. Supports outputs types of SVG and PNG. The output will be taken from the filename specified in the tag. Example: {% dot attack_plan.svg digraph G { rankdir=LR Earth [peripheries=...
33.817391
89
0.492157
""" Graphviz extensions for Markdown. Renders the output inline, eliminating the need to configure an output directory. Supports outputs types of SVG and PNG. The output will be taken from the filename specified in the tag. Example: {% dot attack_plan.svg digraph G { rankdir=LR Earth [peripheries=...
0
0
0
2,892
0
66
0
-18
135
ab3f775cb7374eac2051620fdd7cdbce1cc66db1
2,739
py
Python
benchmarks/hybrid/CloudPred/run_rt.py
icsme2020/WS-DREAM
80a97f0a5cc272596d96fa86f4b5a42ae76e437c
[ "MIT" ]
6
2020-11-17T06:13:48.000Z
2021-09-18T02:35:23.000Z
benchmarks/hybrid/CloudPred/run_rt.py
icsme2020/WS-DREAM
80a97f0a5cc272596d96fa86f4b5a42ae76e437c
[ "MIT" ]
1
2021-06-15T12:40:03.000Z
2021-08-03T08:56:02.000Z
benchmarks/hybrid/CloudPred/run_rt.py
icsme2020/WS-DREAM
80a97f0a5cc272596d96fa86f4b5a42ae76e437c
[ "MIT" ]
4
2021-04-13T12:15:54.000Z
2022-02-09T13:07:15.000Z
######################################################## # run_rt.py # Author: Jamie Zhu <jimzhu@GitHub> # Created: 2014/2/6 # Last updated: 2014/5/8 # Implemented approach: CloudPred # Evaluation metrics: MAE, NMAE, RMSE, MRE, NPRE ######################################################## import numpy as np ...
37.013514
95
0.592187
######################################################## # run_rt.py # Author: Jamie Zhu <jimzhu@GitHub> # Created: 2014/2/6 # Last updated: 2014/5/8 # Implemented approach: CloudPred # Evaluation metrics: MAE, NMAE, RMSE, MRE, NPRE ######################################################## import numpy as np ...
0
0
0
0
0
0
0
2
23
fc8dbab2b7fb198b91aac32c54d87a4df0c062ed
8,492
py
Python
model/Spacial_plan1/blocks.py
Ji-Xinyou/DIP-proj-DepthEstimation
5432c14ce1d0cdc9b8b6ab0a273678ffbe6086bd
[ "MIT" ]
null
null
null
model/Spacial_plan1/blocks.py
Ji-Xinyou/DIP-proj-DepthEstimation
5432c14ce1d0cdc9b8b6ab0a273678ffbe6086bd
[ "MIT" ]
null
null
null
model/Spacial_plan1/blocks.py
Ji-Xinyou/DIP-proj-DepthEstimation
5432c14ce1d0cdc9b8b6ab0a273678ffbe6086bd
[ "MIT" ]
null
null
null
import torch.nn as nn import torch.nn.functional as functional
34.803279
80
0.567122
import torch import torch.nn as nn import torch.nn.functional as functional class Encoder_resnet50(nn.Module): def __init__(self, base): super(Encoder_resnet50, self).__init__() # encoder is a pretrained resnet, inherit the architecture self.conv1 = base.conv1 self.bn1 = base.b...
0
0
0
8,285
0
0
0
-9
145
083cb4ce86096b6fab23bf3454e86f0003ae1c15
1,040
py
Python
ove/algorithm/dain/networks/S2D_models.py
iBobbyTS/OpenVideoEnhance
64d12d7a4c344798e5d60eafd20f8f554f852e84
[ "MIT" ]
3
2020-12-20T14:15:19.000Z
2021-03-23T12:23:38.000Z
ove/algorithm/dain/networks/S2D_models.py
iBobbyTS/OpenVideoEnhance
64d12d7a4c344798e5d60eafd20f8f554f852e84
[ "MIT" ]
1
2022-01-17T06:39:20.000Z
2022-01-18T08:12:38.000Z
ove/algorithm/dain/networks/S2D_models.py
iBobbyTS/OpenVideoEnhance
64d12d7a4c344798e5d60eafd20f8f554f852e84
[ "MIT" ]
1
2021-03-03T22:53:05.000Z
2021-03-03T22:53:05.000Z
import torch.nn as nn
29.714286
87
0.548077
import math import torch import torch.nn as nn from .GeneralModels import BasicBlock class S2DF(nn.Module): def __init__(self): super().__init__() self.block1 = nn.Sequential( nn.Conv2d(3, 64, kernel_size=(7, 7), stride=(1, 1), padding=3, bias=False), nn.ReLU(inplace=True) ...
0
0
0
931
0
0
0
-3
89
48c5c5617976f7b80305873a131e1154cb4d429a
264
py
Python
CodeFights/centuryFromYear.py
JLJTECH/TutorialTesting
f2dbbd49a86b3b086d0fc156ac3369fb74727f86
[ "MIT" ]
null
null
null
CodeFights/centuryFromYear.py
JLJTECH/TutorialTesting
f2dbbd49a86b3b086d0fc156ac3369fb74727f86
[ "MIT" ]
null
null
null
CodeFights/centuryFromYear.py
JLJTECH/TutorialTesting
f2dbbd49a86b3b086d0fc156ac3369fb74727f86
[ "MIT" ]
null
null
null
#CodeFights #Given a year, return the century it is in. The first century spans from the year 1 up to and including the year 100, the second - from the year 101 up to and including the year 200, etc.
52.8
187
0.727273
#CodeFights #Given a year, return the century it is in. The first century spans from the year 1 up to and including the year 100, the second - from the year 101 up to and including the year 200, etc. def centuryFromYear(year): return int((year - 1) / 100 + 1)
0
0
0
0
0
42
0
0
23
b44738b9b529cbb2a559bc5bb34b69d4df22862a
138
py
Python
mmdet/version.py
dmy1997/DHRNet
a1adeade8075758f940f5c9edda4393d3f67426c
[ "Apache-2.0" ]
null
null
null
mmdet/version.py
dmy1997/DHRNet
a1adeade8075758f940f5c9edda4393d3f67426c
[ "Apache-2.0" ]
1
2021-03-26T07:19:51.000Z
2021-05-21T05:36:12.000Z
mmdet/version.py
dmy1997/DHRNet
a1adeade8075758f940f5c9edda4393d3f67426c
[ "Apache-2.0" ]
null
null
null
# GENERATED VERSION FILE # TIME: Thu May 6 12:37:04 2021 __version__ = '1.2.0+unknown' short_version = '1.2.0' version_info = (1, 2, 0)
19.714286
32
0.673913
# GENERATED VERSION FILE # TIME: Thu May 6 12:37:04 2021 __version__ = '1.2.0+unknown' short_version = '1.2.0' version_info = (1, 2, 0)
0
0
0
0
0
0
0
0
0
bc739c336cba3a55680b1b743c4ba434c0f1e5dd
3,818
py
Python
franka_panda/pybullet_simulation/rope.py
carmelrabinov/contrastive-domain-randomization
f6fc6173a072da821d1b2ab6bd9558bf7e609bd4
[ "MIT" ]
5
2021-06-08T14:57:35.000Z
2021-07-30T17:12:00.000Z
franka_panda/pybullet_simulation/rope.py
carmelrabinov/contrastive-domain-randomization
f6fc6173a072da821d1b2ab6bd9558bf7e609bd4
[ "MIT" ]
null
null
null
franka_panda/pybullet_simulation/rope.py
carmelrabinov/contrastive-domain-randomization
f6fc6173a072da821d1b2ab6bd9558bf7e609bd4
[ "MIT" ]
5
2021-06-08T14:57:41.000Z
2022-03-03T10:52:11.000Z
import pybullet_data import pybullet as p if __name__ == '__main__': p.connect(p.GUI) p.setAdditionalSearchPath(pybullet_data.getDataPath()) plane = p.createCollisionShape(p.GEOM_PLANE) p.changeDynamics(plane, -1, lateralFriction=1) p.createMultiBody(0, plane) p.setGravity(0, 0, -10) p.s...
40.617021
163
0.592981
import pybullet_data import pybullet as p import numpy as np class TextureRope: @classmethod def load(cls, basePosition: np.ndarray = [0, 0, 1], baseOrientation: np.ndarray = [0, 0, 0, 1], length: int = 80, thickness: float = 0.015, physicsClientId: int = 0) -> int: sphereRadius = thick...
0
3,287
0
-3
0
0
0
-3
99
6ed8da6da189ba8a484a059fc6aed4672f0c2f0d
662
py
Python
assets_new_new/data/2021-03-05/json_for_classification/get_classification_file_with_padim_segment.py
ggzhang0071/PaDiM-Anomaly-Detection-Localization-master
823404d45be078348328c7c6cd16e8ac11a51587
[ "Apache-2.0" ]
null
null
null
assets_new_new/data/2021-03-05/json_for_classification/get_classification_file_with_padim_segment.py
ggzhang0071/PaDiM-Anomaly-Detection-Localization-master
823404d45be078348328c7c6cd16e8ac11a51587
[ "Apache-2.0" ]
null
null
null
assets_new_new/data/2021-03-05/json_for_classification/get_classification_file_with_padim_segment.py
ggzhang0071/PaDiM-Anomaly-Detection-Localization-master
823404d45be078348328c7c6cd16e8ac11a51587
[ "Apache-2.0" ]
null
null
null
from get_classification_file_with_original_annotation import get_image_label_dict_from_original_annotation, get_classification_file_based_on_label original_annotation_path="/git/PaDiM-master/assets_new_new/data/2021-03-05/json_for_classification" image_data_root="/git/PaDiM-master/kangqiang_result/segment_image_result...
66.2
147
0.906344
from get_classification_file_with_original_annotation import get_image_label_dict_from_original_annotation, get_classification_file_based_on_label original_annotation_path="/git/PaDiM-master/assets_new_new/data/2021-03-05/json_for_classification" image_data_root="/git/PaDiM-master/kangqiang_result/segment_image_resul...
0
0
0
0
0
0
0
1
0
9694b173393bf97b637e9f4591da6ed55639fb6b
1,393
py
Python
test_programs/configWriter.py
hackpsu-tech/hackPSUS2018-rfid
0f33b588ddbf4a82ced9a25ba8a8384649b16017
[ "MIT" ]
null
null
null
test_programs/configWriter.py
hackpsu-tech/hackPSUS2018-rfid
0f33b588ddbf4a82ced9a25ba8a8384649b16017
[ "MIT" ]
2
2018-04-02T14:32:13.000Z
2018-08-20T22:54:15.000Z
test_programs/configWriter.py
hackpsu-tech/hackPSUS2018-rfid
0f33b588ddbf4a82ced9a25ba8a8384649b16017
[ "MIT" ]
null
null
null
#!/usr/bin/python """ This application reads key value pairs from the command line input and writes to a dictionary, which is then written to a config file The preferred file extension is .cfg """ import signal import sys import HackPSUconfig as config #Initialize a dictionary and define the save and configFile variab...
27.86
133
0.740847
#!/usr/bin/python """ This application reads key value pairs from the command line input and writes to a dictionary, which is then written to a config file The preferred file extension is .cfg """ import signal import sys import HackPSUconfig as config #Initialize a dictionary and define the save and configFile variab...
0
0
0
0
0
0
0
0
0
6bfb814ea616ff65d9e7fd08ee83b2e4756f1452
473
py
Python
criminals/migrations/0007_auto_20210220_1756.py
Three-Dev-Musketeers/Mumbai_Police
293fbc1d81db459c23649c9c6b1eef8c38da1939
[ "MIT" ]
5
2021-02-19T20:37:35.000Z
2021-12-19T06:41:50.000Z
criminals/migrations/0007_auto_20210220_1756.py
Divesh2201/Mumbai_Police
dfabf8494de2c790178541ee20d37d3002ca12af
[ "MIT" ]
1
2021-10-04T17:37:51.000Z
2021-10-05T10:50:36.000Z
criminals/migrations/0007_auto_20210220_1756.py
Divesh2201/Mumbai_Police
dfabf8494de2c790178541ee20d37d3002ca12af
[ "MIT" ]
4
2021-03-05T05:44:20.000Z
2021-04-25T17:23:16.000Z
# Generated by Django 3.1.6 on 2021-02-20 12:26
24.894737
128
0.591966
# Generated by Django 3.1.6 on 2021-02-20 12:26 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('criminals', '0006_auto_20210220_0039'), ] operations = [ migrations.AlterField( model_name='criminalsinfo', name='ge...
0
0
0
359
0
0
0
19
46
e77acee0e7c8543927359213b9828e1f5e62e248
1,480
py
Python
src/decoders/base_decoder.py
rproskuryakov/ai-journey-2020
ff589b5bfff2aa957f0b8308918cc1d6de764413
[ "MIT" ]
1
2021-03-05T16:02:08.000Z
2021-03-05T16:02:08.000Z
src/decoders/base_decoder.py
rproskuryakov/ai-journey-2020
ff589b5bfff2aa957f0b8308918cc1d6de764413
[ "MIT" ]
null
null
null
src/decoders/base_decoder.py
rproskuryakov/ai-journey-2020
ff589b5bfff2aa957f0b8308918cc1d6de764413
[ "MIT" ]
null
null
null
import logging logger = logging.getLogger(__name__)
30.833333
102
0.586486
import logging from abc import ABC from abc import abstractmethod from typing import List import torch logger = logging.getLogger(__name__) class BaseDecoder(ABC): @abstractmethod def __init__(self, letters: List[str], *args, **kwargs): self.letters = letters self.blank_id = kwargs.get("bla...
0
311
0
1,002
0
0
0
0
112
b268de0e9446cae60748eb0b16a566e030c7f11b
836
py
Python
tests/test_load_config.py
Tommo565/titanic-mlflow
5bdaad5b90313db212fb2547eb5476a41ff22ccc
[ "MIT" ]
1
2022-02-06T19:57:54.000Z
2022-02-06T19:57:54.000Z
tests/test_load_config.py
Tommo565/titanic-mlflow
5bdaad5b90313db212fb2547eb5476a41ff22ccc
[ "MIT" ]
null
null
null
tests/test_load_config.py
Tommo565/titanic-mlflow
5bdaad5b90313db212fb2547eb5476a41ff22ccc
[ "MIT" ]
null
null
null
import os from src.utils.utils import load_config def test_load_config(): """Test the load_config function""" config = load_config(".env.test") assert config["app_name"] == os.getenv("APP_NAME") assert config["parameters_path"] == os.getenv("PARAMETERS_PATH") assert config["artifact_path"] == os...
41.8
76
0.7189
import os from src.utils.utils import load_config def test_load_config(): """Test the load_config function""" config = load_config(".env.test") assert config["app_name"] == os.getenv("APP_NAME") assert config["parameters_path"] == os.getenv("PARAMETERS_PATH") assert config["artifact_path"] == os...
0
0
0
0
0
0
0
0
0
7c87a8a9a811d1766417700029f13134caee55c9
2,927
py
Python
hierarkey/forms.py
rixx/django-hierarkey
e61f03bd1a35489905f3b08fdc18755f1ed07973
[ "Apache-2.0" ]
16
2017-04-09T16:41:50.000Z
2022-03-07T17:39:55.000Z
hierarkey/forms.py
rixx/django-hierarkey
e61f03bd1a35489905f3b08fdc18755f1ed07973
[ "Apache-2.0" ]
13
2017-04-08T06:54:49.000Z
2022-03-07T08:55:15.000Z
hierarkey/forms.py
rixx/django-hierarkey
e61f03bd1a35489905f3b08fdc18755f1ed07973
[ "Apache-2.0" ]
6
2017-07-12T19:20:10.000Z
2020-07-21T14:18:50.000Z
import logging logger = logging.getLogger(__name__)
37.525641
102
0.568842
import logging from django import forms from django.core.files import File from django.core.files.storage import default_storage from django.core.files.uploadedfile import UploadedFile from django.utils.crypto import get_random_string from django.utils.translation import gettext_lazy as _ logger = logging.getLogger(_...
0
0
0
2,574
0
0
0
143
156
66bc83c1998fe5920bedce5f0b443cae6461ddf5
950
py
Python
ensg2hugo.py
tingmanz/trgn_assignment4
21ff919ae55693025c67d9401280a9455779fcdd
[ "MIT" ]
null
null
null
ensg2hugo.py
tingmanz/trgn_assignment4
21ff919ae55693025c67d9401280a9455779fcdd
[ "MIT" ]
null
null
null
ensg2hugo.py
tingmanz/trgn_assignment4
21ff919ae55693025c67d9401280a9455779fcdd
[ "MIT" ]
null
null
null
#!/usr/bin/python import sys import re import pandas as pd import csv if sys.argv[1].startswith("-f"): col_number = int(sys.argv[1][2]) - 1 input_file = sys.argv[2] else: col_number = 0 input_file = sys.argv[1] name_dict = {} with open("Homo_sapiens.GRCh37.75.gtf", "r") as f: for line in f: i...
27.142857
82
0.651579
#!/usr/bin/python import sys import re import pandas as pd import csv if sys.argv[1].startswith("-f"): col_number = int(sys.argv[1][2]) - 1 input_file = sys.argv[2] else: col_number = 0 input_file = sys.argv[1] name_dict = {} with open("Homo_sapiens.GRCh37.75.gtf", "r") as f: for line in f: i...
0
0
0
0
0
0
0
0
0
f635f9009cad44c08999f18e44479f6b58e99477
1,090
py
Python
238.Product_of_Array_Except_Self.py
wanxin-code/leetcode
524d744202c4c887fda0a60861f80b30d706da67
[ "MIT" ]
1
2019-10-17T10:39:27.000Z
2019-10-17T10:39:27.000Z
238.Product_of_Array_Except_Self.py
wanxin-code/leetcode
524d744202c4c887fda0a60861f80b30d706da67
[ "MIT" ]
null
null
null
238.Product_of_Array_Except_Self.py
wanxin-code/leetcode
524d744202c4c887fda0a60861f80b30d706da67
[ "MIT" ]
null
null
null
#Array """ Idea: let forward[i] = nums[0]*nums[1]*...*nums[i-1] ,backward[i] = backward[i] = nums[i+1]*nums[i+2]*...*nums[n], then, res[i] = forward[i]*backward[i] """ import unittest unittest.main()
27.25
108
0.566055
#Array """ Idea: let forward[i] = nums[0]*nums[1]*...*nums[i-1] ,backward[i] = backward[i] = nums[i+1]*nums[i+2]*...*nums[n], then, res[i] = forward[i]*backward[i] """ class Solution: def productExceptSelf(self, nums): forward = [1] #forward[i] = nums[0]*nums[1]*...*nums[i-1] for item in nums[:-1...
0
0
0
833
0
0
0
0
45
12a3e9e2ed005fc61135a10c0c22b0d343853afc
393
py
Python
src/drf_cloudstorage/__init__.py
inabhi9/drf-cloudstorage
7f5e1b1e721208c5682f1f1e443a13af73d039bc
[ "MIT" ]
null
null
null
src/drf_cloudstorage/__init__.py
inabhi9/drf-cloudstorage
7f5e1b1e721208c5682f1f1e443a13af73d039bc
[ "MIT" ]
null
null
null
src/drf_cloudstorage/__init__.py
inabhi9/drf-cloudstorage
7f5e1b1e721208c5682f1f1e443a13af73d039bc
[ "MIT" ]
null
null
null
import logging import cloudinary from django.conf import settings L = logging.getLogger(__name__) try: cloudinary.config( cloud_name=settings.CLOUDINARY_NAME, api_key=settings.CLOUDINARY_API_KEY, api_secret=settings.CLOUDINARY_API_SECRET ) except AttributeError: L.warning('Cloudin...
24.5625
94
0.763359
import logging import cloudinary from django.conf import settings L = logging.getLogger(__name__) try: cloudinary.config( cloud_name=settings.CLOUDINARY_NAME, api_key=settings.CLOUDINARY_API_KEY, api_secret=settings.CLOUDINARY_API_SECRET ) except AttributeError: L.warning('Cloudin...
0
0
0
0
0
0
0
0
0
94e1a59c4ea87e514a8b6e9576d3cd0c95da648d
457
py
Python
setup.py
BerenMillidge/inferactively
110ba5f01c1c302ecde40b4d7e555d1da535e372
[ "MIT" ]
null
null
null
setup.py
BerenMillidge/inferactively
110ba5f01c1c302ecde40b4d7e555d1da535e372
[ "MIT" ]
null
null
null
setup.py
BerenMillidge/inferactively
110ba5f01c1c302ecde40b4d7e555d1da535e372
[ "MIT" ]
null
null
null
import setuptools setuptools.setup( name="inferactively", version="0.0.1", description=( "A Python implementation of active inference for Markov Decision Processes" ), license="Apache 2.0", url="https://github.com/alec-tschantz/infer-actively", packages=[ "inferactively", ...
24.052632
83
0.632385
import setuptools setuptools.setup( name="inferactively", version="0.0.1", description=( "A Python implementation of active inference for Markov Decision Processes" ), license="Apache 2.0", url="https://github.com/alec-tschantz/infer-actively", packages=[ "inferactively", ...
0
0
0
0
0
0
0
0
0
71cf20761dbf0ecb5aa2cee2d51db791bf3fe7eb
1,461
py
Python
plantara/contrib/plants/migrations/0001_initial.py
plantara/plantara-backend
3e3cf1f7aa83a124b7e1b616e44aa1f31333598e
[ "MIT" ]
null
null
null
plantara/contrib/plants/migrations/0001_initial.py
plantara/plantara-backend
3e3cf1f7aa83a124b7e1b616e44aa1f31333598e
[ "MIT" ]
null
null
null
plantara/contrib/plants/migrations/0001_initial.py
plantara/plantara-backend
3e3cf1f7aa83a124b7e1b616e44aa1f31333598e
[ "MIT" ]
null
null
null
# Generated by Django 3.2.8 on 2021-10-17 16:26
39.486486
142
0.622861
# Generated by Django 3.2.8 on 2021-10-17 16:26 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import uuid class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ...
0
0
0
1,269
0
0
0
31
112
d7bad8d7b546c1b3362cdd49974c49611166bb1e
1,039
py
Python
AvailabilityMonitor/DbAccess/dbaccesser.py
jinhong666/Python
b945759a1acf55cc8546f94618d46040455de422
[ "Apache-2.0" ]
null
null
null
AvailabilityMonitor/DbAccess/dbaccesser.py
jinhong666/Python
b945759a1acf55cc8546f94618d46040455de422
[ "Apache-2.0" ]
null
null
null
AvailabilityMonitor/DbAccess/dbaccesser.py
jinhong666/Python
b945759a1acf55cc8546f94618d46040455de422
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python SOCKET_TIMEOUT = 1
33.516129
116
0.666025
#!/usr/bin/python from Tools.datetimetool import DateTimeTool import logging from DbAccess import DBHelper SOCKET_TIMEOUT = 1 class DbAccesser: def __init__(self,host,user,pwd,db): self._dbHelper = DBHelper(host,user,pwd,db) self._logger = logging.getLogger("root") def RecordMonitor(self,do...
51
0
0
870
0
0
0
23
90
afdd8188bebf224706ecf8d027918397f38f1e8a
500
py
Python
sphinx/source/docs/user_guide/examples/styling_math_text_latex_axis_labels_titles_labels.py
g-parki/bokeh
664ead5306bba64609e734d4105c8aa8cfb76d81
[ "BSD-3-Clause" ]
1
2020-05-26T15:21:22.000Z
2020-05-26T15:21:22.000Z
sphinx/source/docs/user_guide/examples/styling_math_text_latex_axis_labels_titles_labels.py
g-parki/bokeh
664ead5306bba64609e734d4105c8aa8cfb76d81
[ "BSD-3-Clause" ]
1
2021-12-15T17:32:31.000Z
2021-12-21T18:11:05.000Z
sphinx/source/docs/user_guide/examples/styling_math_text_latex_axis_labels_titles_labels.py
g-parki/bokeh
664ead5306bba64609e734d4105c8aa8cfb76d81
[ "BSD-3-Clause" ]
1
2021-12-20T05:50:00.000Z
2021-12-20T05:50:00.000Z
from numpy import arange, pi, sin from bokeh.models.annotations.labels import Label from bokeh.plotting import figure, show x = arange(-2*pi, 2*pi, 0.1) y = sin(x) p = figure(height=250, title=r"\[\sin(x)\text{ for }x\text{ between }-2\pi\text{ and }2\pi\]") p.circle(x, y, alpha=0.6, size=7) label = Label( text...
21.73913
94
0.632
from numpy import arange, pi, sin from bokeh.models.annotations.labels import Label from bokeh.plotting import figure, show x = arange(-2*pi, 2*pi, 0.1) y = sin(x) p = figure(height=250, title=r"\[\sin(x)\text{ for }x\text{ between }-2\pi\text{ and }2\pi\]") p.circle(x, y, alpha=0.6, size=7) label = Label( text...
0
0
0
0
0
0
0
0
0
4760af4a55c71b0ac95f5803594db575b2cd9908
1,188
py
Python
getpaid_payu/views.py
prog32/django-getpaid-payu
1fedaa252b006d6543027a41bf791302bb7bc729
[ "MIT" ]
null
null
null
getpaid_payu/views.py
prog32/django-getpaid-payu
1fedaa252b006d6543027a41bf791302bb7bc729
[ "MIT" ]
null
null
null
getpaid_payu/views.py
prog32/django-getpaid-payu
1fedaa252b006d6543027a41bf791302bb7bc729
[ "MIT" ]
null
null
null
import logging logger = logging.getLogger(__name__)
30.461538
81
0.689394
import json import logging import swapper from django.shortcuts import get_object_or_404 from django.utils.decorators import method_decorator from django.views import View from django.views.decorators.csrf import csrf_exempt from .processor import PaymentProcessor logger = logging.getLogger(__name__) @method_deco...
0
858
0
0
0
0
0
96
179
9c7d8a845eefe61b5878d6b85fff302cd41bfe13
4,597
py
Python
gtpython/gt/annotationsketch/feature_index.py
jamescasbon/genometools
1187295df99c67f7083a2f4ed6bd39bfbdf1a7be
[ "MIT" ]
2
2018-06-04T01:11:02.000Z
2018-11-30T20:04:01.000Z
gtpython/gt/annotationsketch/feature_index.py
jamescasbon/genometools
1187295df99c67f7083a2f4ed6bd39bfbdf1a7be
[ "MIT" ]
null
null
null
gtpython/gt/annotationsketch/feature_index.py
jamescasbon/genometools
1187295df99c67f7083a2f4ed6bd39bfbdf1a7be
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (c) 2008 Sascha Steinbiss <steinbiss@zbh.uni-hamburg.de> # Copyright (c) 2008 Center for Bioinformatics, University of Hamburg # # Permission to use, copy, modify, and distribute this software for any # purpose with or without fee is hereby granted, provided that ...
35.091603
75
0.667174
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (c) 2008 Sascha Steinbiss <steinbiss@zbh.uni-hamburg.de> # Copyright (c) 2008 Center for Bioinformatics, University of Hamburg # # Permission to use, copy, modify, and distribute this software for any # purpose with or without fee is hereby granted, provided that ...
0
0
0
3,421
0
0
0
91
179
bd1ac8b4ad4b032a01ce76b80fa324a7c44d8ffc
4,171
py
Python
sim_companies_scrapper_main.py
sparx058/simcompanies_basic_scrapper
fc68dae225f18acc5453c23ca48001a95fdc8eb1
[ "MIT" ]
1
2021-02-02T17:19:15.000Z
2021-02-02T17:19:15.000Z
sim_companies_scrapper_main.py
sparx058/simcompanies_basic_scrapper
fc68dae225f18acc5453c23ca48001a95fdc8eb1
[ "MIT" ]
null
null
null
sim_companies_scrapper_main.py
sparx058/simcompanies_basic_scrapper
fc68dae225f18acc5453c23ca48001a95fdc8eb1
[ "MIT" ]
null
null
null
import pandas, csv, time import psutil, asyncio start_time = time.time() headers = { # First line of defense 'Access-Control-Allow-Origin': '*', 'Access-Control-Allow-Methods': 'GET', 'Access-Control-Allow-Headers': 'Content-Type', 'Access-Control-Max-Age': '3600', 'User-Agent': 'Mo...
44.37234
108
0.536322
from bs4 import BeautifulSoup as bs import requests, json, pprint, pandas, csv, time import psutil, asyncio, aiohttp start_time = time.time() def string_to_json_print(st): json_soup = json.loads(st) pprint.pprint(json_soup) headers = { # First line of defense 'Access-Control-Allow-Origin'...
0
0
2,107
0
0
70
0
47
73
cb5295dbb2a1091ac28dd9666b172470e520049e
592
py
Python
skroute/datasets/__init__.py
arubiales/scikit-route
83262d9d41ff700c911927f5bb6c93feb0c595e4
[ "MIT" ]
2
2020-12-30T19:01:08.000Z
2022-01-17T09:50:59.000Z
skroute/datasets/__init__.py
arubiales/scikit-route
83262d9d41ff700c911927f5bb6c93feb0c595e4
[ "MIT" ]
39
2020-12-30T14:58:45.000Z
2021-06-21T20:50:02.000Z
skroute/datasets/__init__.py
arubiales/scikit-route
83262d9d41ff700c911927f5bb6c93feb0c595e4
[ "MIT" ]
1
2020-12-31T00:41:10.000Z
2020-12-31T00:41:10.000Z
__all__ = [ "load_alicante_murcia", "load_barcelona", "load_madrid", "load_valencia" "load_argentina", "load_burma", "load_china", "load_canada", "load_djibouti", "load_egypt", "load_ireland", "load_finland", "load_greece", "load_honduras", "load_italy", "load_japan", "load_kazakhstan", "load_luxem...
42.285714
81
0.701014
import pandas as pd from ._datasets import * __all__ = [ "load_alicante_murcia", "load_barcelona", "load_madrid", "load_valencia" "load_argentina", "load_burma", "load_china", "load_canada", "load_djibouti", "load_egypt", "load_ireland", "load_finland", "load_greece", "load_honduras", "load_italy", "lo...
0
0
0
0
0
0
0
1
44
14b018be633387b8e048e3e985762dd942129231
499
py
Python
rishabh/heat_map.py
nishantsinghdev/smartdata
e4a9799c76da4230e8d4edbb2e04c2a48eaa20df
[ "MIT" ]
null
null
null
rishabh/heat_map.py
nishantsinghdev/smartdata
e4a9799c76da4230e8d4edbb2e04c2a48eaa20df
[ "MIT" ]
null
null
null
rishabh/heat_map.py
nishantsinghdev/smartdata
e4a9799c76da4230e8d4edbb2e04c2a48eaa20df
[ "MIT" ]
null
null
null
# coding: utf-8 # In[3]: get_ipython().magic('matplotlib inline') heat_map(filepath)
17.821429
50
0.689379
# coding: utf-8 # In[3]: import pandas as pd import numpy as np import matplotlib.pyplot as plt import seaborn as sns get_ipython().magic('matplotlib inline') def heat_map(filepath): sep=',' df = pd.read_csv(filepath,sep,index_col=False) #get only the numeric values of dataframe pp=df._get_numeri...
0
0
0
0
0
293
0
5
112
a9a7c2dfde259c282dcf86e8f4a3900fab7f72a5
23,874
py
Python
djredcap/management/subcommands/djfixture.py
swanijam/django-redcap
321456506ec4aaf2aff48e99418bcc8ce0f3b383
[ "BSD-3-Clause" ]
null
null
null
djredcap/management/subcommands/djfixture.py
swanijam/django-redcap
321456506ec4aaf2aff48e99418bcc8ce0f3b383
[ "BSD-3-Clause" ]
null
null
null
djredcap/management/subcommands/djfixture.py
swanijam/django-redcap
321456506ec4aaf2aff48e99418bcc8ce0f3b383
[ "BSD-3-Clause" ]
null
null
null
import json import re import math field_types = { 'date_ymd': 'DateField', 'number': 'FloatField', 'integer': 'IntegerField', 'email': 'EmailField', 'text': 'CharField', 'textarea': 'TextField', 'calc': 'FloatField', 'radio': 'CharField', 'select': 'CharField', 'ch...
42.861759
80
0.479811
import sys import os import csv import json import re import math from decimal import Decimal from django.core.management.base import BaseCommand, CommandError field_types = { 'date_ymd': 'DateField', 'number': 'FloatField', 'integer': 'IntegerField', 'email': 'EmailField', 'text': 'C...
0
0
0
0
0
6,195
0
16
165
314e070709ba81f31502f4c772be9531b04818ba
2,614
py
Python
app.py
bestcondition/text-classification-annotation
90845de8d4998bd3518621ffe154549c11ebabcf
[ "Apache-2.0" ]
null
null
null
app.py
bestcondition/text-classification-annotation
90845de8d4998bd3518621ffe154549c11ebabcf
[ "Apache-2.0" ]
null
null
null
app.py
bestcondition/text-classification-annotation
90845de8d4998bd3518621ffe154549c11ebabcf
[ "Apache-2.0" ]
null
null
null
from flask import Flask import config from controller import ProgressController controller = ProgressController() app = Flask(__name__) if __name__ == '__main__': app.run(host=config.host, port=config.port)
23.981651
74
0.647284
from flask import Flask, render_template, url_for, redirect from pathlib import Path import config from controller import ProgressController controller = ProgressController() app = Flask(__name__) class ProcessView: def __init__(self, process_controller: ProgressController): self._controller = process_...
174
1,114
0
1,021
0
0
0
39
160
fc351f58b3b3dad417d7efd5d253bcd77eaff9ec
3,911
py
Python
Components/mediawiki/wiki_data/extensions/CirrusSearch/scripts/compare-clusters.py
benkoo/XLP_ServiceMesh
8c4c285f2e2c7b842064f94e40d4461677809046
[ "MIT" ]
null
null
null
Components/mediawiki/wiki_data/extensions/CirrusSearch/scripts/compare-clusters.py
benkoo/XLP_ServiceMesh
8c4c285f2e2c7b842064f94e40d4461677809046
[ "MIT" ]
null
null
null
Components/mediawiki/wiki_data/extensions/CirrusSearch/scripts/compare-clusters.py
benkoo/XLP_ServiceMesh
8c4c285f2e2c7b842064f94e40d4461677809046
[ "MIT" ]
1
2021-03-21T06:15:20.000Z
2021-03-21T06:15:20.000Z
import sys batch_size = 2000 clusters = { 'eqiad': "search.svc.eqiad.wmnet", 'codfw': "search.svc.codfw.wmnet", } if __name__ == "__main__": import math import multiprocessing if not len(sys.argv) == 2: print("Usage: %s <wiki>\n" % (sys.argv[0])) sys.exit(1) wiki = sys...
30.317829
79
0.56584
import json import sys batch_size = 2000 clusters = { 'eqiad': "search.svc.eqiad.wmnet", 'codfw': "search.svc.codfw.wmnet", } def do_request(session, cluster, wiki, type, ids): host = clusters[cluster] path = "%(wiki)s_%(type)s/page/_mget" % locals() url = 'http://%(host)s:9200/%(path)s?fields=_i...
0
0
0
0
0
2,632
0
-10
160
f67a142d23f284b3a2ae4c076b7c86d6d1e60ec8
3,460
py
Python
Codes/PC-Interface/ctypes_opencv/src/setup.py
eyantra/Border_Surveillance_Robot_using_Firebird_ATmega2560
8e8b1b5a9dbeaec02c0ee20ae9046b2cf8f5b826
[ "MIT" ]
1
2017-08-28T16:04:20.000Z
2017-08-28T16:04:20.000Z
Codes/PC-Interface/ctypes_opencv/src/setup.py
eyantra/Border_Surveillance_Robot_using_Firebird_ATmega2560
8e8b1b5a9dbeaec02c0ee20ae9046b2cf8f5b826
[ "MIT" ]
null
null
null
Codes/PC-Interface/ctypes_opencv/src/setup.py
eyantra/Border_Surveillance_Robot_using_Firebird_ATmega2560
8e8b1b5a9dbeaec02c0ee20ae9046b2cf8f5b826
[ "MIT" ]
null
null
null
#!/usr/bin/env python # ctypes-opencv - A Python wrapper for OpenCV using ctypes # Copyright (c) 2008, Minh-Tri Pham # All rights reserved. # Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: # * Redistributions of source...
54.920635
755
0.75289
#!/usr/bin/env python # ctypes-opencv - A Python wrapper for OpenCV using ctypes # Copyright (c) 2008, Minh-Tri Pham # All rights reserved. # Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: # * Redistributions of source...
0
0
0
0
0
0
0
0
0
461953fc25bd98092632473b6cee30f1e1fdbac2
475
py
Python
steamapi/gettoplivegame.py
NNTin/Dota-2-Meta-Analyzer
ce19ab414cbe0a8ff720539fd766db69604e3488
[ "MIT" ]
22
2016-03-27T21:28:18.000Z
2021-09-13T14:48:43.000Z
steamapi/gettoplivegame.py
NNTin/Dota-2-Meta-Analyzer
ce19ab414cbe0a8ff720539fd766db69604e3488
[ "MIT" ]
24
2016-03-28T09:39:41.000Z
2018-11-06T20:42:30.000Z
steamapi/gettoplivegame.py
NNTin/Reply-Dota-2-Reddit
e47d20f3d5bfacc9f39625324e57781e8d3f029a
[ "MIT" ]
null
null
null
#message = True
29.6875
123
0.757895
import requests from steamapi.steamapikey import SteamAPIKey #message = True def requestGetTopLiveGame(partner): #https://api.steampowered.com/IDOTA2Match_570/GetTopLiveGame/v1/?key=F79627788CAF92984B8B0E77FB29E9B8&partner=3 URL = "https://api.steampowered.com/IDOTA2Match_570/GetTopLiveGame/v1/?key=" + Stea...
0
0
0
0
0
374
0
17
67
4909d4d7fb65c22e94a5109e9eb3377fd1387747
2,142
py
Python
file_manager/migrations/0049_auto_20211110_1120.py
xiaofengxie128/Proteomic-Data-Manager
79756c7021b1d5e4cc4cdb26d741f6ea18846a02
[ "Apache-2.0" ]
null
null
null
file_manager/migrations/0049_auto_20211110_1120.py
xiaofengxie128/Proteomic-Data-Manager
79756c7021b1d5e4cc4cdb26d741f6ea18846a02
[ "Apache-2.0" ]
null
null
null
file_manager/migrations/0049_auto_20211110_1120.py
xiaofengxie128/Proteomic-Data-Manager
79756c7021b1d5e4cc4cdb26d741f6ea18846a02
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.2.7 on 2021-11-10 18:20
36.305085
104
0.596639
# Generated by Django 3.2.7 on 2021-11-10 18:20 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('file_manager', '0048_auto_20211108_2000'), ] operations = [ migrations.AddField( model_name='rawfile', name='file_si...
0
0
0
2,028
0
0
0
19
46
b6495a631b9a8c7835628b702542182b2cc2efb9
3,880
py
Python
qiskit/tools/visualization/interactive/_iplot_histogram.py
a-amaral/qiskit-terra
e73beba1e68de2617046a7e1e9eeac375b61de81
[ "Apache-2.0" ]
1
2020-07-14T19:40:01.000Z
2020-07-14T19:40:01.000Z
qiskit/tools/visualization/interactive/_iplot_histogram.py
a-amaral/qiskit-terra
e73beba1e68de2617046a7e1e9eeac375b61de81
[ "Apache-2.0" ]
null
null
null
qiskit/tools/visualization/interactive/_iplot_histogram.py
a-amaral/qiskit-terra
e73beba1e68de2617046a7e1e9eeac375b61de81
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2018, IBM. # # This source code is licensed under the Apache License, Version 2.0 found in # the LICENSE.txt file in the root directory of this source tree. """ Histogram visualization """ from string import Template from collections import Counter import sys import time import re ...
29.393939
87
0.586598
# -*- coding: utf-8 -*- # Copyright 2018, IBM. # # This source code is licensed under the Apache License, Version 2.0 found in # the LICENSE.txt file in the root directory of this source tree. """ Histogram visualization """ from string import Template from collections import Counter import sys import time import re ...
0
0
0
0
0
0
0
0
0
ee5a628e9441f1ff1469e5840e03b1cccd2764ab
3,936
py
Python
varecof_io/writer/util.py
mobergd/interfaces
82705d2173b9d213684da80913ec0593d30cdbe1
[ "Apache-2.0" ]
null
null
null
varecof_io/writer/util.py
mobergd/interfaces
82705d2173b9d213684da80913ec0593d30cdbe1
[ "Apache-2.0" ]
null
null
null
varecof_io/writer/util.py
mobergd/interfaces
82705d2173b9d213684da80913ec0593d30cdbe1
[ "Apache-2.0" ]
null
null
null
""" Utility functions for formatting """ from qcelemental import constants as qcc from qcelemental import periodictable as ptab from automol import geom # Conversion factors BOHR2ANG = qcc.conversion_factor('bohr', 'angstrom') def determine_struct_type(geo): """ determines the linear string """ # Remo...
31.741935
70
0.537348
""" Utility functions for formatting """ from qcelemental import constants as qcc from qcelemental import periodictable as ptab from automol import geom # Conversion factors BOHR2ANG = qcc.conversion_factor('bohr', 'angstrom') def determine_struct_type(geo): """ determines the linear string """ # Remo...
0
0
0
0
0
0
0
0
0
5d00cc9a5f08d4b0a03b0272cab82fb013f02787
5,209
py
Python
datasets/Object-Detection/voc2coco.py
fuhao7i/Magic-box
69cd3395b26b8fb9840dc6285d3d81fd56c236cd
[ "Apache-2.0" ]
null
null
null
datasets/Object-Detection/voc2coco.py
fuhao7i/Magic-box
69cd3395b26b8fb9840dc6285d3d81fd56c236cd
[ "Apache-2.0" ]
null
null
null
datasets/Object-Detection/voc2coco.py
fuhao7i/Magic-box
69cd3395b26b8fb9840dc6285d3d81fd56c236cd
[ "Apache-2.0" ]
null
null
null
import os import os.path as osp import xml.etree.ElementTree as ET import argparse # voc_dir = '/data/xiaowenjie/nas/datasets/urpc2021/new_urpc/before/' #remember to modify the path # voc_annotations = voc_dir + 'boxes/' # txt_dir = voc_dir + 'txt/' # coco_ann_dir = voc_dir + 'coco_ann/' START_BOUNDING_BOX_ID = 1 PR...
34.726667
99
0.563832
import os import os.path as osp import random import shutil import sys import json import glob import xml.etree.ElementTree as ET import argparse # voc_dir = '/data/xiaowenjie/nas/datasets/urpc2021/new_urpc/before/' #remember to modify the path # voc_annotations = voc_dir + 'boxes/' # txt_dir = voc_dir + 'txt/' # coc...
0
0
0
0
0
3,779
0
-47
202
dc120abba621a32ef19a45fa96a310cebe889892
1,314
py
Python
api/migrations/0002_auto_20210217_0327.py
felipebarraza6/emprende_escena
6d42c9cc9973955d056697f556d3a872a533084c
[ "MIT" ]
null
null
null
api/migrations/0002_auto_20210217_0327.py
felipebarraza6/emprende_escena
6d42c9cc9973955d056697f556d3a872a533084c
[ "MIT" ]
null
null
null
api/migrations/0002_auto_20210217_0327.py
felipebarraza6/emprende_escena
6d42c9cc9973955d056697f556d3a872a533084c
[ "MIT" ]
null
null
null
# Generated by Django 3.1.6 on 2021-02-17 03:27
30.55814
113
0.583714
# Generated by Django 3.1.6 on 2021-02-17 03:27 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('api', '0001_initial'), ] operations = [ migrations.AlterModelOptions( name='user', options={'verbose_name': 'Usuario...
0
0
0
1,200
0
0
0
19
46
fe3a8929fa9d94102170986097f8195b05f7d50b
3,218
py
Python
rallyrolebot/constants.py
Ju99ernaut/RallyRoleBot
068a66fce957c2d65fa8d121fa96abe8c7b00e2d
[ "MIT" ]
null
null
null
rallyrolebot/constants.py
Ju99ernaut/RallyRoleBot
068a66fce957c2d65fa8d121fa96abe8c7b00e2d
[ "MIT" ]
null
null
null
rallyrolebot/constants.py
Ju99ernaut/RallyRoleBot
068a66fce957c2d65fa8d121fa96abe8c7b00e2d
[ "MIT" ]
null
null
null
from discord import Color # TODO: Place holder for now - can use __init__.py once dependencies such as # data.ROLE_MAPPINGS_TABLE and rally_api.BASE_URL have been removed """ Constants useful for data module """ ROLE_MAPPINGS_TABLE = "mappings" CHANNEL_MAPPINGS_TABLE = "channel_mappings" RALLY_CONNECTIONS_TABLE = "r...
31.54902
267
0.753574
from discord import Color # TODO: Place holder for now - can use __init__.py once dependencies such as # data.ROLE_MAPPINGS_TABLE and rally_api.BASE_URL have been removed """ Constants useful for data module """ ROLE_MAPPINGS_TABLE = "mappings" CHANNEL_MAPPINGS_TABLE = "channel_mappings" RALLY_CONNECTIONS_TABLE = "r...
3
0
0
0
0
0
0
0
0
910f4cbf2afcc54d1bf183779c52d25ab6d154e6
4,749
py
Python
plugin/highlights.py
juliosueiras/LSP
e3090d1775587eedcf1ca65df62ba4bb67cc79c8
[ "MIT" ]
null
null
null
plugin/highlights.py
juliosueiras/LSP
e3090d1775587eedcf1ca65df62ba4bb67cc79c8
[ "MIT" ]
null
null
null
plugin/highlights.py
juliosueiras/LSP
e3090d1775587eedcf1ca65df62ba4bb67cc79c8
[ "MIT" ]
null
null
null
from .core.protocol import DocumentHighlightKind try: from typing import List, Dict, Optional assert List and Dict and Optional except ImportError: pass SUBLIME_WORD_MASK = 515 NO_HIGHLIGHT_SCOPES = 'comment, string' _kind2name = { DocumentHighlightKind.Unknown: "unknown", DocumentHighlightKind.Te...
37.992
98
0.644978
import sublime import sublime_plugin from .core.configurations import is_supported_syntax from .core.protocol import Request, Range, DocumentHighlightKind from .core.registry import session_for_view, client_from_session from .core.documents import get_document_position from .core.settings import settings, client_confi...
0
309
0
3,515
0
148
0
159
201
8f5241da8a7ac8d05405007563d9e1dda6921114
743
py
Python
Python/problem039.py
emergent/ProjectEuler
ec1c92cc47fde80efddeb0346d9b0fa511df1f00
[ "Unlicense" ]
null
null
null
Python/problem039.py
emergent/ProjectEuler
ec1c92cc47fde80efddeb0346d9b0fa511df1f00
[ "Unlicense" ]
null
null
null
Python/problem039.py
emergent/ProjectEuler
ec1c92cc47fde80efddeb0346d9b0fa511df1f00
[ "Unlicense" ]
null
null
null
#! /usr/bin/env python3 ''' Problem 39 - Project Euler http://projecteuler.net/index.php?section=problems&id=039 ''' if __name__ == '__main__': x = 5 pytha = [] while True: a,b,c = getPythagoreanTriplet(x) if a+b+c > 1000: break else: if a != 0: ...
20.638889
57
0.476447
#! /usr/bin/env python3 ''' Problem 39 - Project Euler http://projecteuler.net/index.php?section=problems&id=039 ''' import math def getPythagoreanTriplet(a): for b in reversed(range(1, a)): c = math.sqrt(a**2 - b**2) if c.is_integer(): return (a,b,int(c)) else: return (0, 0...
0
0
0
0
0
173
0
-10
45
4ddc87be85bece32e7c114f821318661dca71079
1,035
py
Python
python/main_add_soil_T_time_range.py
ywang37/GEOS-FP
5301d78775325cc844791f4d81d564f274dc8109
[ "NCSA", "Apache-2.0", "MIT" ]
null
null
null
python/main_add_soil_T_time_range.py
ywang37/GEOS-FP
5301d78775325cc844791f4d81d564f274dc8109
[ "NCSA", "Apache-2.0", "MIT" ]
null
null
null
python/main_add_soil_T_time_range.py
ywang37/GEOS-FP
5301d78775325cc844791f4d81d564f274dc8109
[ "NCSA", "Apache-2.0", "MIT" ]
null
null
null
""" Created on April 19, 2020 @author: Yi Wang """ import datetime from mylib.geosfp.gc_process import geosfp_add_variables ####################### # Start user parameters # gc_root_dir = '/Dedicated/jwang-data/GCDATA/GEOS_2x2.5/GEOS_FP/' new_root_dir = '/Dedicated/jwang-data/GCDATA/GEOS_2x2.5/GEOS_FP_soil_T/' s...
21.5625
72
0.634783
""" Created on April 19, 2020 @author: Yi Wang """ import datetime from mylib.geosfp.gc_process import geosfp_add_variables ####################### # Start user parameters # gc_root_dir = '/Dedicated/jwang-data/GCDATA/GEOS_2x2.5/GEOS_FP/' new_root_dir = '/Dedicated/jwang-data/GCDATA/GEOS_2x2.5/GEOS_FP_soil_T/' s...
0
0
0
0
0
0
0
0
0
3f7332b1b0a55125a5d849d37422e9a2d6cd70ac
912
py
Python
setup.py
myra-ink/model_fkeywords
7f6166453ebf3250aad968fcadac0c403585c6d9
[ "Apache-2.0" ]
null
null
null
setup.py
myra-ink/model_fkeywords
7f6166453ebf3250aad968fcadac0c403585c6d9
[ "Apache-2.0" ]
null
null
null
setup.py
myra-ink/model_fkeywords
7f6166453ebf3250aad968fcadac0c403585c6d9
[ "Apache-2.0" ]
null
null
null
from setuptools import find_packages, setup from setuptools import setup, find_packages import os PROJECT_DIR = os.path.dirname(__file__) DEPENDENCIES = open(os.path.join(PROJECT_DIR, 'requirements.txt')).readlines() setup( name='model_fkeywords', version='0.1.0', description='A Natural Language Processi...
35.076923
142
0.742325
from setuptools import find_packages, setup from setuptools.command.install import install from setuptools import setup, find_packages from distutils.command.install import install as _install import os PROJECT_DIR = os.path.dirname(__file__) DEPENDENCIES = open(os.path.join(PROJECT_DIR, 'requirements.txt')).readline...
0
0
0
0
0
0
0
61
44
9a0494cf74b3ef68079604981402c8cb5afa30da
567
py
Python
scripts/shared/cmdline.py
scala-native/benchmarks
0de9421114f6fcdb339b968278b5372292acfa3b
[ "Apache-2.0" ]
13
2018-09-13T05:07:53.000Z
2022-02-13T11:40:34.000Z
scripts/shared/cmdline.py
scala-native/benchmarks
0de9421114f6fcdb339b968278b5372292acfa3b
[ "Apache-2.0" ]
4
2018-09-25T08:36:31.000Z
2021-02-19T14:51:35.000Z
scripts/shared/cmdline.py
scala-native/scala-native-benchmarks
0de9421114f6fcdb339b968278b5372292acfa3b
[ "Apache-2.0" ]
8
2018-08-16T06:50:11.000Z
2022-02-12T10:03:08.000Z
stable = 'scala-native-0.4.0-2.12' latest = 'scala-native-0.4.1-SNAPSHOT-2.12'
25.772727
44
0.583774
stable = 'scala-native-0.4.0-2.12' latest = 'scala-native-0.4.1-SNAPSHOT-2.12' def expand_all(arg): confs = [] for choice in arg: expanded = expand_wild_cards(choice) if expanded is None: confs = [stable, latest] else: confs += [expanded] return confs def ex...
0
0
0
0
0
443
0
0
46
5ac429e40ba7610ff323bf5568be7f303cb7a57d
387
py
Python
app/__init__.py
straterra/DreamerFlask
da8c16c105cb3008bcc2e9e995b518d892f21623
[ "MIT" ]
null
null
null
app/__init__.py
straterra/DreamerFlask
da8c16c105cb3008bcc2e9e995b518d892f21623
[ "MIT" ]
null
null
null
app/__init__.py
straterra/DreamerFlask
da8c16c105cb3008bcc2e9e995b518d892f21623
[ "MIT" ]
null
null
null
#!/usr/bin/python # Written by Thomas York # Imports from flask import Flask from flask_hashing import Hashing from config import Config from flask_sqlalchemy import SQLAlchemy # Flask Setup app = Flask(__name__) app.config.from_object(Config) hashing = Hashing(app) db = SQLAlchemy(app) # Route setup # Flask Setup...
16.826087
39
0.757106
#!/usr/bin/python # Written by Thomas York # Imports from flask import Flask from flask_hashing import Hashing from config import Config from flask_sqlalchemy import SQLAlchemy # Flask Setup app = Flask(__name__) app.config.from_object(Config) hashing = Hashing(app) db = SQLAlchemy(app) # Route setup from app.route...
0
0
0
0
0
0
0
3
22
fbe11332bb561c96864971e5a879689742aca544
1,436
py
Python
semester_1/lab_work_3/task_1/task_1.py
Alexandr-Mazanik/MIPT_lessons
8eaba794c67136cd25688ef1d8bc22287747dd19
[ "MIT" ]
null
null
null
semester_1/lab_work_3/task_1/task_1.py
Alexandr-Mazanik/MIPT_lessons
8eaba794c67136cd25688ef1d8bc22287747dd19
[ "MIT" ]
null
null
null
semester_1/lab_work_3/task_1/task_1.py
Alexandr-Mazanik/MIPT_lessons
8eaba794c67136cd25688ef1d8bc22287747dd19
[ "MIT" ]
1
2020-11-14T06:48:39.000Z
2020-11-14T06:48:39.000Z
""" Task 1 @author: Alexandr Mazanik """ import time main() time.sleep(2)
19.146667
78
0.555014
""" Task 1 @author: Alexandr Mazanik """ import time import turtle def main(): turtle.shape('turtle') turtle.pensize(5) turtle.speed(5) preparation() index = '141700' # индекс delta_l = 30 # расстояние между цифрами length = 100 # длина...
160
0
0
0
0
1,122
0
-8
160
90584b0a35800759a082a9d9359377d6cf1d28a4
5,360
py
Python
server/problem_sets/gen/gens/testbed/old.py
iiridescent/problem-sets
e906fe7509cd158ecdb5920853636339d4d531c3
[ "MIT" ]
null
null
null
server/problem_sets/gen/gens/testbed/old.py
iiridescent/problem-sets
e906fe7509cd158ecdb5920853636339d4d531c3
[ "MIT" ]
5
2021-03-09T10:36:59.000Z
2022-02-26T14:36:08.000Z
server/problem_sets/gen/gens/testbed/old.py
vinhowe/problem-sets
e906fe7509cd158ecdb5920853636339d4d531c3
[ "MIT" ]
null
null
null
#%% import IPython.display as ipyd #%% from IPython.display import Markdown ideas = open('./design/ideas.md') output = ideas.read() Markdown(output) #%% [markdown] # ### Problem type description template #%% [markdown] # ### Problem type title # # Description # # #### Problem generation # # Outline of algorith...
22.521008
185
0.659142
#%% import IPython.display as ipyd #%% from IPython.display import Markdown ideas = open('./design/ideas.md') output = ideas.read() Markdown(output) #%% [markdown] # ### Problem type description template #%% [markdown] # ### Problem type title # # Description # # #### Problem generation # # Outline of algorith...
0
0
0
0
0
1,559
0
101
157
72020ef0ed4816d9a768e1ebd83f3779946b55c0
4,694
py
Python
RSA_VS30_to_MMI.py
griffij/eq_hazmap_tests
db9d6202937b08b543758b8e190566116dbcf83b
[ "Apache-2.0" ]
1
2021-12-03T16:55:03.000Z
2021-12-03T16:55:03.000Z
RSA_VS30_to_MMI.py
griffij/eq_hazmap_tests
db9d6202937b08b543758b8e190566116dbcf83b
[ "Apache-2.0" ]
null
null
null
RSA_VS30_to_MMI.py
griffij/eq_hazmap_tests
db9d6202937b08b543758b8e190566116dbcf83b
[ "Apache-2.0" ]
1
2019-10-12T09:55:31.000Z
2019-10-12T09:55:31.000Z
"""Converts 1 hz RSA from a bedrock hazard map to soil values using the NEHRP amplifcation factors Reference: Borchedt 1994 RSA is then converted to MMI using the formuala of Atkinson and Kaka (2006) Jonathan Griffin, AIFDR January 2011 """ import sys from RSA2MMI import rsa2mmi9 def hazmap2amp(RSA1, ...
33.056338
84
0.534512
"""Converts 1 hz RSA from a bedrock hazard map to soil values using the NEHRP amplifcation factors Reference: Borchedt 1994 RSA is then converted to MMI using the formuala of Atkinson and Kaka (2006) Jonathan Griffin, AIFDR January 2011 """ import sys, os import numpy as np from scipy.interpolate import i...
0
0
0
1,715
0
570
0
25
123
0b12192fe22627e34f9bc6b2aec5e8e5ccf6e194
14,137
py
Python
Lib/GCS/wrapper.py
jaescalo/Akamai-Account-Audit
9a37b4d5afe1005c1dc6e2dd4f97eaf8e3d06030
[ "MIT" ]
3
2020-12-09T17:47:22.000Z
2021-05-28T00:06:03.000Z
Lib/GCS/wrapper.py
jaescalo/Akamai-Account-Audit
9a37b4d5afe1005c1dc6e2dd4f97eaf8e3d06030
[ "MIT" ]
null
null
null
Lib/GCS/wrapper.py
jaescalo/Akamai-Account-Audit
9a37b4d5afe1005c1dc6e2dd4f97eaf8e3d06030
[ "MIT" ]
1
2021-02-17T17:15:32.000Z
2021-02-17T17:15:32.000Z
if __name__=="__main__": w = Wrapper()
30.078723
179
0.713942
import requests, logging, json, sys from Lib.GCS.http_calls import EdgeGridHttpCaller from random import randint from akamai.edgegrid import EdgeGridAuth from Lib.GCS.config import EdgeGridConfig import urllib import socket import subprocess import os import dns.resolver import functools class Wrapper: """ A simple ...
3
2,506
0
11,257
0
0
0
47
265
ec3d24db25de219ea07ebab77b318f54fdbf14dc
2,378
py
Python
tests/test_crawler.py
dachenlian/weibospider
4fe9e08efcca11573f485a2ddbad3b7bc422fa7c
[ "MIT" ]
3,649
2017-10-22T12:08:22.000Z
2022-03-27T06:29:28.000Z
tests/test_crawler.py
dachenlian/weibospider
4fe9e08efcca11573f485a2ddbad3b7bc422fa7c
[ "MIT" ]
146
2017-10-22T12:54:29.000Z
2022-02-14T13:54:23.000Z
tests/test_crawler.py
dachenlian/weibospider
4fe9e08efcca11573f485a2ddbad3b7bc422fa7c
[ "MIT" ]
1,002
2017-10-25T03:44:17.000Z
2022-03-24T08:49:59.000Z
HOME_AJAX_URL = 'http://weibo.com/p/aj/v6/mblog/mbloglist?ajwvr=6&domain={}&pagebar={}&is_ori=1&id={}{}&page={}' \ '&pre_page={}&__rnd={}'
31.289474
114
0.708158
import time from urllib import parse as url_parse import pytest from page_get import ( get_cont_of_weibo, get_page, get_profile) from tasks.comment import crawl_comment_by_page from tasks.repost import crawl_repost_by_page from tests import REQUEST_INTERNAL HOME_AJAX_URL = 'http://weibo.com/p/aj/v6/mblog/mblogl...
6
430
0
0
0
1,387
0
108
294
0fbca3e07c4a34929361cc25f6911fe78b4fe106
2,010
py
Python
Python/examples/example2.py
RyanShahidi/easyml
fe0ecab6de02c0d91ef7de937cfb72ce7fcf3a51
[ "MIT" ]
37
2016-11-16T20:11:34.000Z
2022-03-28T19:18:35.000Z
Python/examples/example2.py
RyanShahidi/easyml
fe0ecab6de02c0d91ef7de937cfb72ce7fcf3a51
[ "MIT" ]
76
2016-11-06T18:04:41.000Z
2021-04-30T20:34:51.000Z
Python/examples/example2.py
CCS-Lab/easyML
664076b4aba733751905ed351e5a320f20f1e520
[ "MIT" ]
18
2016-12-21T17:41:29.000Z
2021-05-10T20:43:49.000Z
from glmnet import ElasticNet import io import numpy as np import pandas as pd import requests from sklearn.preprocessing import StandardScaler # Load data url = 'https://raw.githubusercontent.com/CCS-Lab/easyml/master/Python/datasets/prostate.csv' s = requests.get(url).content prostate = pd.read_csv(io.StringIO(s.de...
30.454545
106
0.738806
from glmnet import ElasticNet import io import numpy as np import pandas as pd import requests from sklearn.preprocessing import StandardScaler # Load data url = 'https://raw.githubusercontent.com/CCS-Lab/easyml/master/Python/datasets/prostate.csv' s = requests.get(url).content prostate = pd.read_csv(io.StringIO(s.de...
0
0
0
0
0
0
0
0
0
9cc5d0cf3bc75d730a617fb4405aa3d01d0ee2a9
16,626
py
Python
AppcestryCore/compare.py
jason-chao/appcestry
c3858e51ac27466cb008722453a3cc9882b2e6a1
[ "MIT" ]
3
2019-04-04T02:49:40.000Z
2021-08-31T03:19:47.000Z
AppcestryCore/compare.py
jason-chao/appcestry
c3858e51ac27466cb008722453a3cc9882b2e6a1
[ "MIT" ]
null
null
null
AppcestryCore/compare.py
jason-chao/appcestry
c3858e51ac27466cb008722453a3cc9882b2e6a1
[ "MIT" ]
2
2019-04-05T15:06:54.000Z
2019-08-04T12:21:55.000Z
#!/usr/bin/env python3 # This script compares AppGene files for similiarty # Run this script in terminal / command line to see the usage of arguments. import os import argparse from sklearn.feature_extraction.text import HashingVectorizer import json import re from sklearn.metrics.pairwise import cosine_similarity im...
41.669173
206
0.630218
#!/usr/bin/env python3 # This script compares AppGene files for similiarty # Run this script in terminal / command line to see the usage of arguments. import os import argparse from sklearn.feature_extraction.text import HashingVectorizer import json import re from sklearn.metrics.pairwise import cosine_similarity im...
0
0
0
0
0
0
0
0
0
4b6a11e67196088c97e6abeb541ef85c169ff8c8
3,371
py
Python
capiq_excel/downloader/tools.py
whoopnip/capiq-excel-downloader-py
9500c4dad6157e1c7c6e59f159f8dcf5ab2ae287
[ "MIT" ]
10
2020-04-23T12:17:32.000Z
2022-01-26T23:37:10.000Z
capiq_excel/downloader/tools.py
whoopnip/capiq-excel-downloader-py
9500c4dad6157e1c7c6e59f159f8dcf5ab2ae287
[ "MIT" ]
7
2020-03-24T17:31:28.000Z
2022-02-01T16:07:06.000Z
capiq_excel/downloader/tools.py
whoopnip/capiq-excel-downloader-py
9500c4dad6157e1c7c6e59f159f8dcf5ab2ae287
[ "MIT" ]
6
2020-02-01T14:53:45.000Z
2021-09-18T03:25:37.000Z
from typing import Dict from concurrent.futures import ThreadPoolExecutor from capiq_excel.fileops import get_path_of_failed_folder_add_if_necessary, move_file_to_failed_folder, get_path_of_additional_failed_folder_add_if_necessary from exceldriver.tools import _start_excel_with_addins_and_attach from processfiles.file...
37.043956
159
0.732424
from typing import Dict import pandas as pd import warnings from concurrent.futures import ThreadPoolExecutor, TimeoutError from capiq_excel.downloader.timeout import TimeoutWrapper from capiq_excel.fileops import get_path_of_failed_folder_add_if_necessary, move_file_to_failed_folder, get_path_of_additional_failed_fol...
0
0
0
0
0
1,262
0
185
204
d7794d2751d6e23b3cdaa72836458d23019b27c7
1,967
py
Python
cidadaobr/endereco.py
yanorestes/cidadaobr
d91e94c58a23f6dafe4a1fc38c7738e241c87751
[ "MIT" ]
9
2018-02-06T02:34:38.000Z
2019-06-12T02:01:09.000Z
cidadaobr/endereco.py
yyyyyyyan/cidadaobr
d91e94c58a23f6dafe4a1fc38c7738e241c87751
[ "MIT" ]
2
2019-08-20T01:27:04.000Z
2019-08-22T16:45:23.000Z
cidadaobr/endereco.py
yyyyyyyan/cidadaobr
d91e94c58a23f6dafe4a1fc38c7738e241c87751
[ "MIT" ]
4
2021-02-26T02:00:23.000Z
2022-02-26T22:35:48.000Z
#!/usr/bin/env python # -*- coding: UTF-8 -*-
41.851064
176
0.577021
#!/usr/bin/env python # -*- coding: UTF-8 -*- from requests import get, post from bs4 import BeautifulSoup from random import randint class Endereco(): estados = ('AC', 'AL', 'AM', 'AP', 'BA', 'CE', 'DF', 'ES', 'GO', 'MA', 'MG', 'MS', 'MT', 'PA', 'PB', 'PE', 'PI', 'PR', 'RJ', 'RN', 'RS', 'RO', 'RR', 'SC', 'SE', 'S...
6
0
0
1,808
0
0
0
22
89
787224de21edc0bd16e3016b55f59529e48b8898
315
py
Python
src/chapter6/exercise3.py
group1BSE1/BSE-2021
43abaac6b6abd681e45ea56e3926eae211eef2b3
[ "MIT" ]
null
null
null
src/chapter6/exercise3.py
group1BSE1/BSE-2021
43abaac6b6abd681e45ea56e3926eae211eef2b3
[ "MIT" ]
null
null
null
src/chapter6/exercise3.py
group1BSE1/BSE-2021
43abaac6b6abd681e45ea56e3926eae211eef2b3
[ "MIT" ]
null
null
null
print('This program finds the number of times a letter appears in a text') word = input('Enter a text: ') char = input('Enter letter to find its number of times: ') count(word,char)
31.5
74
0.64127
print('This program finds the number of times a letter appears in a text') word = input('Enter a text: ') char = input('Enter letter to find its number of times: ') def count(word,char): count = 0 for letter in word: if letter == char: count = count + 1 print(count) count(word,char)
0
0
0
0
0
112
0
0
22
1d16c3b0bcd6642522d940e7e2ba225a2e80ae2f
1,944
py
Python
tests/test_tangles_prediction.py
Conzel/tangles
f5f1be754be9b53484f0ad5974232446934c5c74
[ "MIT" ]
null
null
null
tests/test_tangles_prediction.py
Conzel/tangles
f5f1be754be9b53484f0ad5974232446934c5c74
[ "MIT" ]
null
null
null
tests/test_tangles_prediction.py
Conzel/tangles
f5f1be754be9b53484f0ad5974232446934c5c74
[ "MIT" ]
null
null
null
import numpy as np from tangles.tree_tangles import get_hard_predictions from tangles.loading import load_GMM def test_simple_gaussians_ab(): """ AB test to make sure the tangles algorithm still does the exact same thing. """ X, _ = load_GMM([20, 20], np.array([[0, 0], [1, 1]]), [0.7, 0.7], 10) ...
34.714286
90
0.562757
import numpy as np from tangles.tree_tangles import get_hard_predictions from tangles.loading import load_GMM from sklearn.metrics import pairwise_distances def test_trivial(): np.random.seed(0) X = np.block([ [np.ones((3, 3)), np.zeros((3, 3))], [np.zeros((3, 3)), np.ones((3, 3))] ]) ...
0
0
0
0
0
482
0
25
68
3649c57b4c6bc5ea8cb8b2d39c0949cb288f0e3d
6,243
py
Python
homeassistant/components/vconnex/py_vconnex/api.py
hainguyen248/core
b783644ba7bec4ac215cb8bf0e8dc7169087aaad
[ "Apache-2.0" ]
null
null
null
homeassistant/components/vconnex/py_vconnex/api.py
hainguyen248/core
b783644ba7bec4ac215cb8bf0e8dc7169087aaad
[ "Apache-2.0" ]
null
null
null
homeassistant/components/vconnex/py_vconnex/api.py
hainguyen248/core
b783644ba7bec4ac215cb8bf0e8dc7169087aaad
[ "Apache-2.0" ]
null
null
null
"""Vconnex integration""" import logging API__TOKEN = "/auth/project-token" logger = logging.getLogger(__name__)
28.506849
86
0.509691
"""Vconnex integration""" import hashlib import hmac import base64 import json import time from types import SimpleNamespace from typing import Any from enum import Enum import requests import logging API__TOKEN = "/auth/project-token" logger = logging.getLogger(__name__) class TokenInfo: ...
0
0
0
5,839
0
0
0
-38
311
7012233ee96c832d97fd837d4721ac71d6d9cb06
159
py
Python
images_storage/main/admin.py
py-course-if-2019/image_storage
c96576b9ec69123edc81eb43e3f23a3015d5d2d1
[ "MIT" ]
null
null
null
images_storage/main/admin.py
py-course-if-2019/image_storage
c96576b9ec69123edc81eb43e3f23a3015d5d2d1
[ "MIT" ]
10
2020-02-12T00:55:59.000Z
2022-02-10T11:32:56.000Z
images_storage/main/admin.py
py-course-if-2019-team/image_storage
96ccc30f8b76efc703d9d021a9398516d1d60152
[ "MIT" ]
null
null
null
# Register your models here.
15.9
35
0.773585
from django.contrib import admin from .models import Image # Register your models here. @admin.register(Image) class ImageAdmin(admin.ModelAdmin): pass
0
46
0
0
0
0
0
15
67
ad4c18552209ff2a499cd90b6dbb6d73ef2e786b
516
py
Python
video_to_sound.py
chgiol/AnTel
a35f48463818797a1e3638654a997dcfb3bfbb9c
[ "MIT" ]
null
null
null
video_to_sound.py
chgiol/AnTel
a35f48463818797a1e3638654a997dcfb3bfbb9c
[ "MIT" ]
2
2021-02-08T20:24:10.000Z
2021-06-01T22:34:18.000Z
video_to_sound.py
chgiol/AnTel
a35f48463818797a1e3638654a997dcfb3bfbb9c
[ "MIT" ]
null
null
null
#EL PROGRAMA PUEDE TENER INPUT DE UNA URL #extraer_sonido(ruta)
24.571429
123
0.581395
import os import ntpath #EL PROGRAMA PUEDE TENER INPUT DE UNA URL def extraer_sonido(ruta): try: ruta = '"' + ruta + '"' nombre_archivo = ntpath.basename(ruta)[:-4] + 'flac' os.system( "ffmpeg -y -i " + ruta + " -ar 16000 -ss 00:00:05 -t 01:00:00.0 -ac 1 -q:a 0 -map...
0
0
0
0
0
389
0
-20
71
d550811b9b958dfa8684e565f63f003fd94b1210
1,061
py
Python
dstk.py
GriffinAustin/py-for-data-sci
6caa5c2930990385f22ea61331e6d4340c85cdef
[ "MIT" ]
null
null
null
dstk.py
GriffinAustin/py-for-data-sci
6caa5c2930990385f22ea61331e6d4340c85cdef
[ "MIT" ]
null
null
null
dstk.py
GriffinAustin/py-for-data-sci
6caa5c2930990385f22ea61331e6d4340c85cdef
[ "MIT" ]
null
null
null
if __name__ == '__main__': main()
20.403846
51
0.542884
import pandas as pd import numpy as np import matplotlib.pyplot as plt class GraphType(): HIST = 0 LINE = 1 class ManipData(object): def __init__(self, df): self.df = df def clean(self): self.df = self.df.dropna() def graph(self, g, **kwargs): if g ...
0
0
0
351
0
475
0
5
170
c162a3744ae19c4b636b22d1317dc1d7c539c694
2,205
py
Python
tests/test_linkedlist.py
yoshiohasegawa/python-data-structures
22fdf2af19a5976d2a79fa944bcbd7337ec72549
[ "MIT" ]
null
null
null
tests/test_linkedlist.py
yoshiohasegawa/python-data-structures
22fdf2af19a5976d2a79fa944bcbd7337ec72549
[ "MIT" ]
null
null
null
tests/test_linkedlist.py
yoshiohasegawa/python-data-structures
22fdf2af19a5976d2a79fa944bcbd7337ec72549
[ "MIT" ]
1
2021-09-17T03:09:00.000Z
2021-09-17T03:09:00.000Z
# Third party imports # pydatastructs imports # Setup # initialize _linkedlist in pytest fixture to be used in individual method tests # Executions # append() adds a new instantiation of the Node class to the end of the linked list # append() accepts any data type # remove_head() removes and returns the head node fr...
30.205479
84
0.687528
# Third party imports import pytest # pydatastructs imports from pydatastructs.linkedlist import LinkedList # Setup # initialize _linkedlist in pytest fixture to be used in individual method tests @pytest.fixture def linkedlist(): _linkedlist = LinkedList() return _linkedlist # Executions # append() adds a ne...
0
66
0
0
0
1,367
0
18
132
f7d4272cec3760a998d75de7e4cd1e7f7db5572b
3,343
py
Python
scripts/fig4/p1_prime_flexibility.py
choderalab/covid-moonshot-manuscript
276d843bf9a30b4510cacb52045dc02c448fb964
[ "MIT" ]
null
null
null
scripts/fig4/p1_prime_flexibility.py
choderalab/covid-moonshot-manuscript
276d843bf9a30b4510cacb52045dc02c448fb964
[ "MIT" ]
1
2022-01-26T05:49:01.000Z
2022-01-26T05:49:01.000Z
scripts/fig4/p1_prime_flexibility.py
choderalab/covid-moonshot-manuscript
276d843bf9a30b4510cacb52045dc02c448fb964
[ "MIT" ]
null
null
null
import pymol from pymol import cmd, util from sys import argv # usage: pymol -cq script_name.py -- path/to/fragments/ path = argv[1:][0] print(f"Using path: {path} for structures") # Set some nice CB friendly colours cmd.set_color("cb_orange", [0.96, 0.41, 0.23]) # Add filter (ambient) and other misc settings cmd.s...
29.324561
99
0.693987
import pymol from pymol import cmd, util from sys import argv # usage: pymol -cq script_name.py -- path/to/fragments/ path = argv[1:][0] print(f"Using path: {path} for structures") # Set some nice CB friendly colours cmd.set_color("cb_orange", [0.96, 0.41, 0.23]) # Add filter (ambient) and other misc settings cmd.s...
0
0
0
0
0
0
0
0
0
b25bc60405417730817d378944cb7bade47478da
2,550
py
Python
mosaic/test/test_node.py
JohnKurian/mosaic
bc985640844e10b9aded478d6ef7a5f286ab2d82
[ "BSD-3-Clause" ]
6
2018-09-17T13:27:46.000Z
2021-09-03T15:46:15.000Z
mosaic/test/test_node.py
JohnKurian/mosaic
bc985640844e10b9aded478d6ef7a5f286ab2d82
[ "BSD-3-Clause" ]
null
null
null
mosaic/test/test_node.py
JohnKurian/mosaic
bc985640844e10b9aded478d6ef7a5f286ab2d82
[ "BSD-3-Clause" ]
2
2019-11-21T13:17:11.000Z
2020-11-30T03:32:41.000Z
''' def test_fully_expanded(self): def a_func(): return 0 def b_func(): return 0 def c_func(): return 0 x1 = ListTask(is_ordered=False, name = "x1", tasks = ["x1__p1", "x1__p2"]) x2 = ListTask(is_ordered=True, name = "x2", tasks = ["x2__p1", "x2__p2"]) start = Cho...
40.47619
92
0.586667
import unittest from mosaic.node import Node class TestNode(unittest.TestCase): def test_add_node(self): node = Node() assert(node.id_count == 0) assert(node.get_attribute(0, "name") == "root") node.add_node(name="v1", parent_node = 0) assert(node.get_path_to_node(1, name...
0
0
0
906
0
0
0
1
68
9b43b27a672db13a52d4be4fd0fcd42c9d26be3a
2,164
py
Python
Code/model_close.py
riemannruiz/analisis_datos
d7b8f140bd0f89a881aa30040966eacd5564fa3c
[ "MIT" ]
null
null
null
Code/model_close.py
riemannruiz/analisis_datos
d7b8f140bd0f89a881aa30040966eacd5564fa3c
[ "MIT" ]
1
2019-03-21T21:16:00.000Z
2019-03-21T21:16:00.000Z
Code/model_close.py
riemannruiz/analisis_datos
d7b8f140bd0f89a881aa30040966eacd5564fa3c
[ "MIT" ]
3
2019-03-20T22:43:36.000Z
2019-03-27T19:16:38.000Z
# -*- coding: utf-8 -*- """ Created on Thu Feb 7 20:52:19 2019 @author: if715029 """ ### Crea los clusters de 5, 20, 40 y 125 das y los exporta a .sav import pandas as pd import numpy as np from sklearn.cluster import KMeans from time import time import pickle t1 = time() csv = ['AC','ALFAA','ALPEKA','ALSEA','ELE...
27.392405
94
0.656654
# -*- coding: utf-8 -*- """ Created on Thu Feb 7 20:52:19 2019 @author: if715029 """ ### Crea los clusters de 5, 20, 40 y 125 días y los exporta a .sav import pandas as pd import numpy as np import matplotlib.pyplot as plt from sklearn.cluster import KMeans from time import time import pickle t1 = time() csv = ['...
8
0
0
0
0
790
0
10
88