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
ea68a641ec0d9369d43120f70d87132154636c64
371
py
Python
preprocess_code/preproc_visualizer.py
jafrizzell/coral-prediction
2504f4ac3d38e551a55495db6f4cafddf3a2b084
[ "MIT" ]
null
null
null
preprocess_code/preproc_visualizer.py
jafrizzell/coral-prediction
2504f4ac3d38e551a55495db6f4cafddf3a2b084
[ "MIT" ]
null
null
null
preprocess_code/preproc_visualizer.py
jafrizzell/coral-prediction
2504f4ac3d38e551a55495db6f4cafddf3a2b084
[ "MIT" ]
null
null
null
import pandas as pd path = 'D:/TAMU Work/TAMU 2022 SPRING/OCEN 460/combined_data.csv' raw = pd.read_csv(path) print(raw.describe()) raw = raw.dropna(how='any') print(raw.describe()) raw.to_csv('D:/TAMU Work/TAMU 2022 SPRING/OCEN 460/combined_data_truncated.csv') # plt.scatter(raw['longitude'], raw['latitude'], s=0...
26.5
80
0.727763
import matplotlib.pyplot as plt import pandas as pd path = 'D:/TAMU Work/TAMU 2022 SPRING/OCEN 460/combined_data.csv' raw = pd.read_csv(path) print(raw.describe()) raw = raw.dropna(how='any') print(raw.describe()) raw.to_csv('D:/TAMU Work/TAMU 2022 SPRING/OCEN 460/combined_data_truncated.csv') # plt.scatter(raw['l...
0
0
0
0
0
0
0
10
22
603ce81a429ccc3d6342d5cea38a70237f9b3bf3
4,525
py
Python
src/bin/spk_stat.py
ml-applications/cyclevae-vc-neuralvoco
a1976c127eaf9d2a3ef7a8a783839743ffb69c5c
[ "Apache-2.0" ]
1
2020-08-27T14:05:38.000Z
2020-08-27T14:05:38.000Z
src/bin/spk_stat.py
ml-applications/cyclevae-vc-neuralvoco
a1976c127eaf9d2a3ef7a8a783839743ffb69c5c
[ "Apache-2.0" ]
null
null
null
src/bin/spk_stat.py
ml-applications/cyclevae-vc-neuralvoco
a1976c127eaf9d2a3ef7a8a783839743ffb69c5c
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright 2019 Patrick Lumban Tobing (Nagoya University) # based on a VC implementation by Kazuhiro Kobayashi (Nagoya University) # Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0) import matplotlib matplotlib.use('Agg') if __name__ == '__main__': mai...
36.788618
107
0.62453
#! /usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright 2019 Patrick Lumban Tobing (Nagoya University) # based on a VC implementation by Kazuhiro Kobayashi (Nagoya University) # Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0) import argparse import os from pathlib import Path import logging import matp...
0
0
0
0
0
3,947
0
10
244
5f3239b424689c130ab060a54e67e26c976bb34c
1,867
py
Python
nyuseu/management/commands/nyuseu.py
foxmask/nyuseu
e563bec3be46be0f0430987560b1126872f97a5f
[ "BSD-3-Clause" ]
1
2020-09-04T20:41:33.000Z
2020-09-04T20:41:33.000Z
nyuseu/management/commands/nyuseu.py
foxmask/nyuseu
e563bec3be46be0f0430987560b1126872f97a5f
[ "BSD-3-Clause" ]
4
2020-09-06T20:30:20.000Z
2020-09-09T12:08:35.000Z
nyuseu/management/commands/nyuseu.py
foxmask/nyuseu
e563bec3be46be0f0430987560b1126872f97a5f
[ "BSD-3-Clause" ]
null
null
null
# coding: utf-8 """ """ from rich.console import Console console = Console()
34.574074
98
0.549545
# coding: utf-8 """ 뉴스 """ from django.core.management.base import BaseCommand from nyuseu.models import Articles import pypandoc from rich.console import Console from rich.table import Table from rich.markdown import Markdown console = Console() class Command(BaseCommand): def add_arguments(self, parser): ...
6
0
0
1,595
0
0
0
57
133
187f9ce3c52f31a65facc03d16c972c5e5f3b2a2
12,414
py
Python
sirepo/template/opal_parser.py
mkeilman/sirepo
29ac632f688b019c95d69191a84848f263433dd7
[ "Apache-2.0" ]
49
2015-07-29T14:11:29.000Z
2021-12-10T15:24:26.000Z
sirepo/template/opal_parser.py
mkeilman/sirepo
29ac632f688b019c95d69191a84848f263433dd7
[ "Apache-2.0" ]
3,732
2015-08-03T22:07:26.000Z
2022-03-31T22:48:33.000Z
sirepo/template/opal_parser.py
mkeilman/sirepo
29ac632f688b019c95d69191a84848f263433dd7
[ "Apache-2.0" ]
28
2015-11-20T16:23:46.000Z
2021-09-20T07:22:48.000Z
# -*- coding: utf-8 -*- u"""OPAL parser. :copyright: Copyright (c) 2020 RadiaSoft LLC. All Rights Reserved. :license: http://www.apache.org/licenses/LICENSE-2.0.html """ from pykern.pkcollections import PKDict _MATERIAL_CODE_TO_NAME = PKDict( al='ALUMINUM', be='BERYLLIUM', cu='COPPER', au='GOLD', ...
39.535032
104
0.508942
# -*- coding: utf-8 -*- u"""OPAL parser. :copyright: Copyright (c) 2020 RadiaSoft LLC. All Rights Reserved. :license: http://www.apache.org/licenses/LICENSE-2.0.html """ from pykern.pkcollections import PKDict from pykern.pkdebug import pkdc, pkdlog, pkdp from sirepo.template import lattice from sirepo.template.code_...
0
0
0
11,196
0
548
0
64
245
498e58f3ad21b0dcd45ffb35c418adaf8c54f03e
315
py
Python
classes/var.py
hdert/2018.py
66fc5afc853af2ed5d6b2fc5f280e73be200a542
[ "BSD-3-Clause" ]
null
null
null
classes/var.py
hdert/2018.py
66fc5afc853af2ed5d6b2fc5f280e73be200a542
[ "BSD-3-Clause" ]
null
null
null
classes/var.py
hdert/2018.py
66fc5afc853af2ed5d6b2fc5f280e73be200a542
[ "BSD-3-Clause" ]
null
null
null
name = 'hdert' age = 13 loop = ('FALSE') while loop == 'FALSE': print(name + ' is\nawesome and also') print(age) print('years old') print() name = 'hdert' age = 14 print('now ' + name + '\nis') print(age) print('years old and\nstill awesome') loop = ('TRUE')
19.6875
42
0.51746
name = 'hdert' age = 13 loop = ('FALSE') while loop == 'FALSE': print(name + ' is\nawesome and also') print(age) print('years old') print() name = 'hdert' age = 14 print('now ' + name + '\nis') print(age) print('years old and\nstill awesome') loop = ('TRUE')
0
0
0
0
0
0
0
0
0
7d15b3932130bddabc5bf53e399a4ae4bf1be77c
935
py
Python
mtq/tests/fixture.py
Binstar/mtq
1fddc73df16b17008fda9c113ca8a5dc23a9f9ae
[ "BSD-3-Clause" ]
2
2016-07-16T17:42:42.000Z
2021-12-19T01:16:52.000Z
mtq/tests/fixture.py
Binstar/mtq
1fddc73df16b17008fda9c113ca8a5dc23a9f9ae
[ "BSD-3-Clause" ]
14
2016-05-03T01:01:22.000Z
2019-03-21T22:38:27.000Z
mtq/tests/fixture.py
Binstar/mtq
1fddc73df16b17008fda9c113ca8a5dc23a9f9ae
[ "BSD-3-Clause" ]
2
2016-09-30T04:37:53.000Z
2017-10-11T19:16:55.000Z
import logging log = logging.getLogger('mtq.test') log.setLevel(logging.INFO)
25.27027
61
0.660963
import unittest import pymongo import mtq import logging log = logging.getLogger('mtq.test') log.setLevel(logging.INFO) def test_func(*args, **kwargs): log.info('Running test_func') return args, kwargs def test_func_fail(*args, **kwargs): log.warning('Raising a test exception in test_func_fail') ra...
0
0
0
575
0
167
0
-24
135
9b6f73bf047edcbb3188ba0721a8b12760ba0faa
755
py
Python
code/base_pygame.py
Heroes-Academy/OOP_Fall2016
822f064fa8222e32085fcb12ff356b8575b434bd
[ "MIT" ]
null
null
null
code/base_pygame.py
Heroes-Academy/OOP_Fall2016
822f064fa8222e32085fcb12ff356b8575b434bd
[ "MIT" ]
null
null
null
code/base_pygame.py
Heroes-Academy/OOP_Fall2016
822f064fa8222e32085fcb12ff356b8575b434bd
[ "MIT" ]
null
null
null
import pygame ##### INIT SECTION # Define some colors BLACK = (0, 0, 0) WHITE = (255, 255, 255) GREEN = (0, 255, 0) RED = (255, 0, 0) size = (700, 500) done = False pygame.init() screen = pygame.display.set_mode(size) clock = pygame.time.Clock() pygame.display.set_caption("My Game") #### you can put custom INITs h...
17.55814
40
0.596026
import pygame ##### INIT SECTION # Define some colors BLACK = (0, 0, 0) WHITE = (255, 255, 255) GREEN = (0, 255, 0) RED = (255, 0, 0) size = (700, 500) done = False pygame.init() screen = pygame.display.set_mode(size) clock = pygame.time.Clock() pygame.display.set_caption("My Game") #### you can put custom INITs h...
0
0
0
0
0
0
0
0
0
4c143a6e6509e4f6875f261b92d1e62f402a4df6
22,493
py
Python
tensorflow_data_validation/utils/display_util.py
tensorflow/data-validation
9855619b40a1c6dab2be3509fa252eaea5120596
[ "Apache-2.0" ]
621
2018-09-10T19:27:18.000Z
2022-03-31T06:43:24.000Z
tensorflow_data_validation/utils/display_util.py
tensorflow/data-validation
9855619b40a1c6dab2be3509fa252eaea5120596
[ "Apache-2.0" ]
157
2018-09-10T08:53:18.000Z
2022-03-31T14:07:51.000Z
tensorflow_data_validation/utils/display_util.py
tensorflow/data-validation
9855619b40a1c6dab2be3509fa252eaea5120596
[ "Apache-2.0" ]
141
2018-09-10T06:38:13.000Z
2022-03-31T07:27:16.000Z
# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
39.186411
306
0.707242
# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
0
0
0
0
0
549
0
0
99
6849764c50c6396e8336842722fbcf9134ab7542
2,771
py
Python
datasets/pascal3d/split_train_val_test_VOC.py
aimagelab/MCMR
eb3556bffebc734c19e7f3e39dcf018ba28c63b3
[ "MIT" ]
11
2021-10-11T12:48:47.000Z
2022-03-01T02:00:00.000Z
datasets/pascal3d/split_train_val_test_VOC.py
aimagelab/MCMR
eb3556bffebc734c19e7f3e39dcf018ba28c63b3
[ "MIT" ]
1
2022-01-19T00:47:58.000Z
2022-01-23T14:52:45.000Z
datasets/pascal3d/split_train_val_test_VOC.py
aimagelab/MCMR
eb3556bffebc734c19e7f3e39dcf018ba28c63b3
[ "MIT" ]
1
2022-02-08T14:53:54.000Z
2022-02-08T14:53:54.000Z
from argparse import ArgumentParser from pathlib import Path cad_num_per_class = { "aeroplane": 8, "bicycle": 6, "boat": 6, "bottle": 8, "bus": 6, "car": 10, "chair": 10, "diningtable": 6, "motorbike": 5, "sofa": 6, "train": 4, "tvmonitor": 4 } if __name__ == '__main_...
35.525641
119
0.613497
import glob import os from argparse import ArgumentParser from pathlib import Path import numpy as np import yaml from tqdm import tqdm cad_num_per_class = { "aeroplane": 8, "bicycle": 6, "boat": 6, "bottle": 8, "bus": 6, "car": 10, "chair": 10, "diningtable": 6, "motorbike": 5, ...
0
0
0
0
0
1,913
0
-35
134
a88c80d66a5b2866b7eb03623fca31c0360c4278
2,770
py
Python
tests/unit/tf_test.py
vnleonenko/EPDE
c9f5f4a3c593dbd17987576bfcabf5554c41ed66
[ "BSD-3-Clause" ]
15
2020-11-20T14:39:38.000Z
2022-03-13T20:42:43.000Z
tests/unit/tf_test.py
vnleonenko/EPDE
c9f5f4a3c593dbd17987576bfcabf5554c41ed66
[ "BSD-3-Clause" ]
7
2021-06-17T10:47:42.000Z
2021-06-17T12:35:35.000Z
tests/unit/tf_test.py
vnleonenko/EPDE
c9f5f4a3c593dbd17987576bfcabf5554c41ed66
[ "BSD-3-Clause" ]
2
2021-10-16T15:46:12.000Z
2022-02-17T17:20:53.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Mar 23 18:05:09 2021 @author: mike_ubuntu """ import sys sys.path.append('/media/mike_ubuntu/DATA/ESYS/') # raise NotImplementedError # raise NotImplementedError
35.063291
113
0.684838
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Mar 23 18:05:09 2021 @author: mike_ubuntu """ import numpy as np import sys from collections import OrderedDict sys.path.append('/media/mike_ubuntu/DATA/ESYS/') import src.globals as global_var from src.token_family import Token_family, TF_Pool def m...
0
0
0
0
0
2,260
0
51
190
166632a4ada01c07219b1dc4713b124762be9219
1,151
py
Python
tests/sentry/models/test_eventerror.py
pierredup/sentry
0145e4b3bc0e775bf3482fe65f5e1a689d0dbb80
[ "BSD-3-Clause" ]
1
2019-10-17T17:46:16.000Z
2019-10-17T17:46:16.000Z
tests/sentry/models/test_eventerror.py
pierredup/sentry
0145e4b3bc0e775bf3482fe65f5e1a689d0dbb80
[ "BSD-3-Clause" ]
null
null
null
tests/sentry/models/test_eventerror.py
pierredup/sentry
0145e4b3bc0e775bf3482fe65f5e1a689d0dbb80
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import
31.108108
100
0.590791
from __future__ import absolute_import import pytest from sentry.models import EventError @pytest.mark.parametrize( "error,type,message,data", ( ({"type": "unknown_error"}, "unknown_error", "Unknown error", {}), ({"type": "unknown_error", "foo": "bar"}, "unknown_error", "Unknown error", {"fo...
0
798
0
0
0
213
0
7
92
7dad688296a689d9daef4c9a1a0035ab47f5a5dc
8,826
py
Python
Hellanzb/NZBLeecher/NZBLeecherUtil.py
ShaneMcC/hellanzb
5ea4e5e73108f80645758b91b0596b6a4a739c6c
[ "BSD-3-Clause" ]
11
2015-01-03T09:52:23.000Z
2022-01-22T14:33:05.000Z
Hellanzb/NZBLeecher/NZBLeecherUtil.py
ShaneMcC/hellanzb
5ea4e5e73108f80645758b91b0596b6a4a739c6c
[ "BSD-3-Clause" ]
null
null
null
Hellanzb/NZBLeecher/NZBLeecherUtil.py
ShaneMcC/hellanzb
5ea4e5e73108f80645758b91b0596b6a4a739c6c
[ "BSD-3-Clause" ]
6
2015-02-05T21:37:17.000Z
2021-09-07T14:05:46.000Z
""" NZBLeecherUtil - Misc. code for NZBLeecher and its related modules (c) Copyright 2005 Philip Jenvey [See end of file] """ import os, stat __id__ = '$Id$' def validWorkingFile(file, overwriteZeroByteFiles = False): """ Determine if the specified file path is a valid, existing file in the WORKING_DIR """ #...
40.118182
96
0.659982
""" NZBLeecherUtil - Misc. code for NZBLeecher and its related modules (c) Copyright 2005 Philip Jenvey [See end of file] """ import os, stat, sys, Hellanzb from twisted.internet import reactor from twisted.python import log from twisted.protocols.policies import ThrottlingProtocol, WrappingFactory __id__ = '$Id$' c...
0
0
0
6,612
0
0
0
92
112
f4dc1a50c3730b0d5e6832a03693f866781ee477
1,024
pyde
Python
python/stars.pyde
darzyx/Processing
94974bea2aa80ba815a45c0677a1c1534f21ced7
[ "MIT" ]
null
null
null
python/stars.pyde
darzyx/Processing
94974bea2aa80ba815a45c0677a1c1534f21ced7
[ "MIT" ]
null
null
null
python/stars.pyde
darzyx/Processing
94974bea2aa80ba815a45c0677a1c1534f21ced7
[ "MIT" ]
null
null
null
""" * Project [darzyx] * Sketch_004: Stars * by Darzyx * * Rotating in deep space. * Created using Python Mode for Processing. * """
19.692308
51
0.546875
""" * Project [darzyx] * Sketch_004: Stars * by Darzyx * * Rotating in deep space. * Created using Python Mode for Processing. * """ def setup(): size(500, 500, P3D) def draw(): pushMatrix() cartesianSystem() stars() popMatrix() saveFrame("frames/###.png") def defaultSettings(): ...
0
0
0
0
0
747
0
0
138
9e6ea1523f2db6c36e96ac2a0fd4b1a09bd20fec
6,033
py
Python
MLS_figure_6.py
simonvanvliet/MLS-Model
0eac0de8ad5b8c504e38dc9da1f0740ed0bbe480
[ "BSD-3-Clause" ]
null
null
null
MLS_figure_6.py
simonvanvliet/MLS-Model
0eac0de8ad5b8c504e38dc9da1f0740ed0bbe480
[ "BSD-3-Clause" ]
null
null
null
MLS_figure_6.py
simonvanvliet/MLS-Model
0eac0de8ad5b8c504e38dc9da1f0740ed0bbe480
[ "BSD-3-Clause" ]
1
2020-02-17T01:26:42.000Z
2020-02-17T01:26:42.000Z
#!/usr/bin/env python3 # -*- CoDing: utf-8 -*- """ Created on May 22 2019 Last Update May 22 2019 @author: simonvanvliet Department of Zoology University of Britisch Columbia vanvliet@zoology.ubc.ca This recreates the data and figure for figure 6 By default data is loaded unless parameters have changes, to rerun mod...
25.033195
98
0.631029
#!/usr/bin/env python3 # -*- CoDing: utf-8 -*- """ Created on May 22 2019 Last Update May 22 2019 @author: simonvanvliet Department of Zoology University of Britisch Columbia vanvliet@zoology.ubc.ca This recreates the data and figure for figure 6 By default data is loaded unless parameters have changes, to rerun mod...
0
0
0
0
0
3,171
0
24
265
ccbf83289e103afd08ce25828e98a66e23160c88
4,342
py
Python
src/upgtool/catalog.py
Jangzq/u-postgres-tool
10578bdf338b14d63b19264a772830ef894a2b91
[ "Unlicense" ]
null
null
null
src/upgtool/catalog.py
Jangzq/u-postgres-tool
10578bdf338b14d63b19264a772830ef894a2b91
[ "Unlicense" ]
null
null
null
src/upgtool/catalog.py
Jangzq/u-postgres-tool
10578bdf338b14d63b19264a772830ef894a2b91
[ "Unlicense" ]
null
null
null
#coding=utf-8 import logging logger = logging.getLogger("Catalog") ''' Pg '''
38.767857
134
0.640028
#coding=utf-8 import logging from controlfile import ControlFile from heapbuf import HeapBuffer from pgstruct import memoffset from upgexception import UPgException import pgstruct import upgcrc logger = logging.getLogger("Catalog") ''' 不同的Pg版本有不同的文件布局,系统属性等等,这个类作为每个版本相应类的父类,记录相应信息。 ''' class Catalog: REL...
189
626
0
3,377
0
0
0
34
155
76c40fe82e65aba575d0d73e06647d4042e4a4d3
967
py
Python
docs/tenxun_sms/example_send_msg.py
carlsummer/python_developer_tools
a8c4365b7cc601cda55648cdfd8c0cb1faae132f
[ "Apache-2.0" ]
32
2021-06-21T04:49:48.000Z
2022-03-29T05:46:59.000Z
python_developer_tools/docs/tenxun_sms/example_send_msg.py
HonestyBrave/python_developer_tools
fc0dcf5c4ef088e2e535206dc82f09bbfd01f280
[ "Apache-2.0" ]
1
2021-11-12T03:45:55.000Z
2021-11-12T03:45:55.000Z
python_developer_tools/docs/tenxun_sms/example_send_msg.py
HonestyBrave/python_developer_tools
fc0dcf5c4ef088e2e535206dc82f09bbfd01f280
[ "Apache-2.0" ]
10
2021-06-03T08:05:05.000Z
2021-12-13T03:10:42.000Z
# !/usr/bin/env python # -- coding: utf-8 -- # @Author zengxiaohui # Datatime:5/22/2021 9:44 PM # @File:df import ssl ssl._create_default_https_context = ssl._create_unverified_context appid = '1400525419' # SDK AppIDint appkey = '2c894050f230f6df92abac6da8048e57' # App Keystr sign = 'CollectInto' # str if __nam...
28.441176
75
0.69183
# !/usr/bin/env python # -- coding: utf-8 -- # @Author zengxiaohui # Datatime:5/22/2021 9:44 PM # @File:df from qcloudsms_py import SmsSingleSender from qcloudsms_py.httpclient import HTTPError import random import ssl from python_developer_tools.web.services_utils import make_code ssl._create_default_https_context =...
117
0
0
0
0
347
0
77
112
92319f02e506fa88f1dd029bab24f306cb4faecf
96,589
py
Python
PATH ANALYSIS Left Coordinate_Commited to SVN/util.py
abricot1025/Sloan_January_2018
9513123b3a12aed4e8163d518175ecdcc399cead
[ "MIT" ]
1
2018-04-13T16:06:49.000Z
2018-04-13T16:06:49.000Z
PATH ANALYSIS Left Coordinate_Commited to SVN/util.py
abricot1025/Sloan_January_2018
9513123b3a12aed4e8163d518175ecdcc399cead
[ "MIT" ]
null
null
null
PATH ANALYSIS Left Coordinate_Commited to SVN/util.py
abricot1025/Sloan_January_2018
9513123b3a12aed4e8163d518175ecdcc399cead
[ "MIT" ]
null
null
null
""" MOONS Fibre Positioning System Utility Module Contains a collection of shared functions and utilities. 24 Jul 2014: Created using functions extracted from fps_classes.py 06 Sep 2014: Added generator function for grid coordinates. Allow positioner grids to define the origin of their coor...
36.43493
111
0.58195
""" MOONS Fibre Positioning System Utility Module Contains a collection of shared functions and utilities. 24 Jul 2014: Created using functions extracted from fps_classes.py 06 Sep 2014: Added generator function for grid coordinates. Allow positioner grids to define the origin of their coor...
0
0
0
0
0
2,084
0
0
26
c6b65be0ca29131844a50fd17b16f09a5709f343
4,914
py
Python
yunpipe/pipeline/image_class.py
wangyx2005/yunpipe
c3ccf09f9cd128e47ebd109e19cc4249c8272002
[ "Apache-2.0" ]
null
null
null
yunpipe/pipeline/image_class.py
wangyx2005/yunpipe
c3ccf09f9cd128e47ebd109e19cc4249c8272002
[ "Apache-2.0" ]
null
null
null
yunpipe/pipeline/image_class.py
wangyx2005/yunpipe
c3ccf09f9cd128e47ebd109e19cc4249c8272002
[ "Apache-2.0" ]
null
null
null
from haikunator import Haikunator from .. import CLOUD_PIPE_TEMPLATES_FOLDER name_generator = Haikunator() # TODO: add instance_type
32.543046
97
0.579569
import json import os.path from haikunator import Haikunator from .. import CLOUD_PIPE_TEMPLATES_FOLDER name_generator = Haikunator() # TODO: add instance_type class image: class port_class: def __init__(self, port_info): ''' para: port_info: dict contains all port information ...
0
0
0
4,726
0
0
0
-17
67
420350ec28bb7752b28ea4e81ccef80786b9ee30
523
py
Python
s5/local/hist/wps_perSegment_hist.py
cadia-lvl/althingi-asr
8830f40b8302834fc8176727a36ca8136cd9eedc
[ "Apache-2.0" ]
4
2017-11-10T19:43:43.000Z
2019-07-03T12:12:09.000Z
egs/althingi/s5/local/hist/wps_perSegment_hist.py
ingarun/kaldi
362ad3235c9740c0dfb0481cfbff81ca4604222d
[ "Apache-2.0" ]
null
null
null
egs/althingi/s5/local/hist/wps_perSegment_hist.py
ingarun/kaldi
362ad3235c9740c0dfb0481cfbff81ca4604222d
[ "Apache-2.0" ]
1
2017-11-06T18:28:53.000Z
2017-11-06T18:28:53.000Z
#!/usr/bin/python3 # Takes as input wps.txt, created by words_per_second.sh # Does not show outliers, i.e. segments with wps > 5 import sys import matplotlib.pyplot as plt with open(sys.argv[1],'r',encoding='utf-8') as f: # wps per segment wps = [float(line.strip().split()[0]) for line in f.readlines()] ...
24.904762
68
0.680688
#!/usr/bin/python3 # Takes as input wps.txt, created by words_per_second.sh # Does not show outliers, i.e. segments with wps > 5 import sys import matplotlib.pyplot as plt import numpy as np with open(sys.argv[1],'r',encoding='utf-8') as f: # wps per segment wps = [float(line.strip().split()[0]) for line in ...
0
0
0
0
0
0
0
-3
22
ebefcaf07e53e01185acc4cde7032f8ff134addc
1,410
py
Python
src/app/ui/customtablewidget.py
johnymachine/csv2db
c1995e621fc3ca2a0b258acd66562b75967d64b3
[ "MIT" ]
null
null
null
src/app/ui/customtablewidget.py
johnymachine/csv2db
c1995e621fc3ca2a0b258acd66562b75967d64b3
[ "MIT" ]
null
null
null
src/app/ui/customtablewidget.py
johnymachine/csv2db
c1995e621fc3ca2a0b258acd66562b75967d64b3
[ "MIT" ]
null
null
null
""" RDB 2015 User Interface CustomTable Widget Author: Tomas Krizek """
30.652174
77
0.693617
""" RDB 2015 User Interface CustomTable Widget Author: Tomas Krizek """ from PyQt5.QtCore import Qt, pyqtSignal, pyqtSlot from PyQt5.QtWidgets import (QTableWidget, QTableWidgetItem, QWidget, QAbstractItemView, QHeaderView) class CustomTableWidget(QTableWidget): def __init__(self, parent=None): s...
0
0
0
1,154
0
0
0
112
68
ad6b8b12017e0ca705a118bbe83f8769f3019800
3,661
py
Python
evaluation/mcd_request.py
dodoproptit99/Multilingual_Text_to_Speech
8c5f2c8f3bffe7aca68c576168a12ab3451d09ec
[ "MIT" ]
552
2020-05-15T12:15:59.000Z
2022-03-30T08:57:29.000Z
evaluation/mcd_request.py
dodoproptit99/Multilingual_Text_to_Speech
8c5f2c8f3bffe7aca68c576168a12ab3451d09ec
[ "MIT" ]
65
2020-05-21T12:46:11.000Z
2022-03-22T14:14:40.000Z
evaluation/mcd_request.py
dodoproptit99/Multilingual_Text_to_Speech
8c5f2c8f3bffe7aca68c576168a12ab3451d09ec
[ "MIT" ]
118
2020-05-29T03:01:53.000Z
2022-03-22T03:30:24.000Z
import os import librosa import numpy as np """ **************************************** INSTRUCTIONS *************************************** * * * Usage: python mcd_computer.py --language german --model simple ...
36.61
107
0.52472
import os import librosa import librosa.feature import numpy as np import scipy.stats from fastdtw import fastdtw """ **************************************** INSTRUCTIONS *************************************** * * * Usage: p...
0
0
0
0
0
671
0
-8
161
f3816c7c78d989ed901bc83b03c942275186f784
72
py
Python
otcore/topic/urls.py
NYULibraries/dlts-enm-tct-backend
07455a660fb2cb8bc91a54f7f12d150923678157
[ "Apache-2.0" ]
null
null
null
otcore/topic/urls.py
NYULibraries/dlts-enm-tct-backend
07455a660fb2cb8bc91a54f7f12d150923678157
[ "Apache-2.0" ]
2
2017-10-30T21:19:07.000Z
2017-10-31T18:06:30.000Z
otcore/topic/urls.py
NYULibraries/dlts-enm-tct-backend
07455a660fb2cb8bc91a54f7f12d150923678157
[ "Apache-2.0" ]
null
null
null
urlpatterns = [ ]
12
51
0.736111
from django.conf.urls import url, include, patterns urlpatterns = [ ]
0
0
0
0
0
0
0
30
22
85ea956f5ac38a05557e8f40b81f11698fd558e8
2,567
py
Python
textClustPy/inputs/inmem_input.py
Dennis1989/textClustPy
62f9c400284c1ee200235227908751fb1fcc7ca1
[ "MIT" ]
5
2020-12-12T17:24:26.000Z
2022-01-24T17:50:42.000Z
textClustPy/inputs/inmem_input.py
Dennis1989/textClustPy
62f9c400284c1ee200235227908751fb1fcc7ca1
[ "MIT" ]
1
2021-05-08T19:45:37.000Z
2021-05-08T19:45:37.000Z
textClustPy/inputs/inmem_input.py
Dennis1989/textClustPy
62f9c400284c1ee200235227908751fb1fcc7ca1
[ "MIT" ]
4
2021-02-07T12:18:35.000Z
2022-01-19T14:34:49.000Z
## implementation of abstract class
26.463918
92
0.603428
from abc import ABC, abstractmethod import sys import json import pandas as pd import string import csv import time from textClustPy import Input from textClustPy import Observation ## implementation of abstract class class InMemInput(Input): ''' :param pdframe: pandas data frame that serves as stream inp...
0
0
0
2,320
0
0
0
-16
224
de55e83dce97e26dcda9b1ffeb00172db5171758
6,188
py
Python
parkid/run/tune_change.py
parenthetical-e/parkid
0c11d58db85e7051db495c05a74ee1c3b8f17c3b
[ "MIT" ]
null
null
null
parkid/run/tune_change.py
parenthetical-e/parkid
0c11d58db85e7051db495c05a74ee1c3b8f17c3b
[ "MIT" ]
null
null
null
parkid/run/tune_change.py
parenthetical-e/parkid
0c11d58db85e7051db495c05a74ee1c3b8f17c3b
[ "MIT" ]
null
null
null
import fire import os import numpy as np from copy import deepcopy from tqdm import tqdm from scipy.stats import loguniform from multiprocessing import Pool from scipy.stats import median_absolute_deviation as mad # Borrow utils # Borrow tune utils from infomercial.exp.tune_bandit import get_best_trial from infomerc...
29.89372
79
0.574661
import fire import os import csv import numpy as np from copy import deepcopy from tqdm import tqdm from scipy.stats import loguniform from functools import partial from multiprocessing import Pool from scipy.stats import median_absolute_deviation as mad # Borrow utils from infomercial.utils import save_checkpoint fr...
0
0
0
0
0
1,394
0
139
204
2193cb4e81ed8b806cbe43f318097205615dc01c
623
py
Python
modelisation_ev/utilitaire.py
remi-delannoy/reseaudistrib_v2g
23e71dacb27b6d4e6648a2fc24dc16b33afddd62
[ "MIT" ]
null
null
null
modelisation_ev/utilitaire.py
remi-delannoy/reseaudistrib_v2g
23e71dacb27b6d4e6648a2fc24dc16b33afddd62
[ "MIT" ]
null
null
null
modelisation_ev/utilitaire.py
remi-delannoy/reseaudistrib_v2g
23e71dacb27b6d4e6648a2fc24dc16b33afddd62
[ "MIT" ]
1
2019-10-04T17:00:40.000Z
2019-10-04T17:00:40.000Z
# -*- coding: utf-8 -*- """ Created on Thu Sep 26 16:41:04 2019 @author: Utilisateur """
20.766667
61
0.521669
# -*- coding: utf-8 -*- """ Created on Thu Sep 26 16:41:04 2019 @author: Utilisateur """ def trouv_break(li,start,combo): lo = li[start:] for i in range(len(lo)-1): if lo[i] == combo and lo[i+1] != combo: return i+start return None def flatten(li): for x in li: if has...
0
0
0
0
165
283
0
0
85
729009a107a66c3a2f241da57e13ff7914dc9d33
1,681
py
Python
core/migrations/0001_profile.py
HortenciaArliane/speakerfight
c9350d84664ac3bad83dd661a2c5d55d1b8cbf5b
[ "MIT" ]
369
2015-02-20T18:02:10.000Z
2022-03-29T02:56:40.000Z
core/migrations/0001_profile.py
HortenciaArliane/speakerfight
c9350d84664ac3bad83dd661a2c5d55d1b8cbf5b
[ "MIT" ]
396
2015-01-30T22:54:09.000Z
2022-03-11T23:17:40.000Z
core/migrations/0001_profile.py
HortenciaArliane/speakerfight
c9350d84664ac3bad83dd661a2c5d55d1b8cbf5b
[ "MIT" ]
220
2015-01-30T21:12:26.000Z
2022-03-09T20:41:01.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals
36.543478
119
0.642475
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations from django.conf import settings def create_profiles(apps, schema_editor): User = apps.get_model('auth', 'User') Profile = apps.get_model('core', 'Profile') db_alias = schema_editor.connection.alias ...
0
0
0
1,055
0
415
0
30
114
c72988c1eeb0513897fd9b17587a8fabe7e251c3
2,217
py
Python
modules/ClimateDataPortal/Cache.py
whanderley/eden
08ced3be3d52352c54cbd412ed86128fbb68b1d2
[ "MIT" ]
205
2015-01-20T08:26:09.000Z
2022-03-27T19:59:33.000Z
modules/ClimateDataPortal/Cache.py
whanderley/eden
08ced3be3d52352c54cbd412ed86128fbb68b1d2
[ "MIT" ]
249
2015-02-10T09:56:35.000Z
2022-03-23T19:54:36.000Z
modules/ClimateDataPortal/Cache.py
whanderley/eden
08ced3be3d52352c54cbd412ed86128fbb68b1d2
[ "MIT" ]
231
2015-02-10T09:33:17.000Z
2022-02-18T19:56:05.000Z
# create folder for cache: # mkdir -p /tmp/climate_data_portal/images/recent/ # mkdir -p /tmp/climate_data_portal/images/older/ MAX_CACHE_FOLDER_SIZE = 2**24 # 16 MiB
30.791667
75
0.671177
import errno import os from os.path import join, exists from os import stat, makedirs # create folder for cache: # mkdir -p /tmp/climate_data_portal/images/recent/ # mkdir -p /tmp/climate_data_portal/images/older/ MAX_CACHE_FOLDER_SIZE = 2**24 # 16 MiB class TwoStageCache(object): def __init__(self, folder, max...
0
0
0
215
0
1,676
0
-2
158
9add88ff232495e152c9f69c6720633c146a0b10
324
py
Python
accounts/migrations/0004_remove_user_active.py
anonshubh/eCommerce-rostores-
7503e855d650556e216c42fc1c5b95a42bb9c501
[ "Apache-2.0" ]
null
null
null
accounts/migrations/0004_remove_user_active.py
anonshubh/eCommerce-rostores-
7503e855d650556e216c42fc1c5b95a42bb9c501
[ "Apache-2.0" ]
null
null
null
accounts/migrations/0004_remove_user_active.py
anonshubh/eCommerce-rostores-
7503e855d650556e216c42fc1c5b95a42bb9c501
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.2.12 on 2020-04-27 08:54
18
48
0.58642
# Generated by Django 2.2.12 on 2020-04-27 08:54 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('accounts', '0003_user_is_active'), ] operations = [ migrations.RemoveField( model_name='user', name='active', ), ...
0
0
0
217
0
0
0
11
46
278c2214a07c8522985a10a1678ca6fc8d4a9c27
493
py
Python
gw-backend/gw_backend/config/settings.py
iotmaxx/gw-webinterface
5e6d6c6e2c27a810d40bb860c6bce26bcf2af724
[ "Apache-2.0" ]
null
null
null
gw-backend/gw_backend/config/settings.py
iotmaxx/gw-webinterface
5e6d6c6e2c27a810d40bb860c6bce26bcf2af724
[ "Apache-2.0" ]
3
2021-05-12T00:08:44.000Z
2022-03-29T12:17:00.000Z
gw-backend/gw_backend/config/settings.py
iotmaxx/gw-webinterface
5e6d6c6e2c27a810d40bb860c6bce26bcf2af724
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- # @Script: settings.py # @Author: Andre Litty # @Email: alittysw@gmail.com # @Create At: 2020-03-21 13:45:12 # @Last Modified By: Andre Litty # @Last Modified At: 2020-04-08 14:23:05 # @Description: Class based flask settings.
20.541667
43
0.68357
# -*- coding:utf-8 -*- # @Script: settings.py # @Author: Andre Litty # @Email: alittysw@gmail.com # @Create At: 2020-03-21 13:45:12 # @Last Modified By: Andre Litty # @Last Modified At: 2020-04-08 14:23:05 # @Description: Class based flask settings. class Settings(object): DEBUG = False TESTING = False SE...
0
0
0
172
0
0
0
0
69
ce266aa898422b91fea7eabcd1b16e44c553f8ac
450
py
Python
ACME/geometry/normalize_scale.py
mauriziokovacic/ACME
2615b66dd4addfd5c03d9d91a24c7da414294308
[ "MIT" ]
3
2019-10-23T23:10:55.000Z
2021-09-01T07:30:14.000Z
ACME/geometry/normalize_scale.py
mauriziokovacic/ACME-Python
2615b66dd4addfd5c03d9d91a24c7da414294308
[ "MIT" ]
null
null
null
ACME/geometry/normalize_scale.py
mauriziokovacic/ACME-Python
2615b66dd4addfd5c03d9d91a24c7da414294308
[ "MIT" ]
1
2020-07-11T11:35:43.000Z
2020-07-11T11:35:43.000Z
import torch def normalize_scale(P): """ Returns the rescaled points set in range [-1,1] Parameters ---------- P : Tensor the input points set tensor Returns ------- Tensor the rescaled points set """ min = torch.min(P, dim=0, keepdim=True)[0] max = torch...
18.75
51
0.564444
import torch from ..math.norm import * def normalize_scale(P): """ Returns the rescaled points set in range [-1,1] Parameters ---------- P : Tensor the input points set tensor Returns ------- Tensor the rescaled points set """ min = torch.min(P, dim=0, keepdi...
0
0
0
0
0
0
0
4
22
8a9576c88721de3a3a842fd0ae51fed0e9555b79
2,083
py
Python
venv/Lib/site-packages/PyOpenGL-3.0.1/OpenGL/GL/ARB/texture_rectangle.py
temelkirci/Motion_Editor
a8b8d4c4d2dcc9be28385600f56066cef92a38ad
[ "MIT" ]
1
2022-03-02T17:07:20.000Z
2022-03-02T17:07:20.000Z
venv/Lib/site-packages/PyOpenGL-3.0.1/OpenGL/GL/ARB/texture_rectangle.py
temelkirci/RealTime_6DOF_Motion_Editor
a8b8d4c4d2dcc9be28385600f56066cef92a38ad
[ "MIT" ]
null
null
null
venv/Lib/site-packages/PyOpenGL-3.0.1/OpenGL/GL/ARB/texture_rectangle.py
temelkirci/RealTime_6DOF_Motion_Editor
a8b8d4c4d2dcc9be28385600f56066cef92a38ad
[ "MIT" ]
null
null
null
'''OpenGL extension ARB.texture_rectangle This module customises the behaviour of the OpenGL.raw.GL.ARB.texture_rectangle to provide a more Python-friendly API Overview (from the spec) OpenGL texturing is limited to images with power-of-two dimensions and an optional 1-texel border. The ARB_texture_rectangle e...
44.319149
70
0.799328
'''OpenGL extension ARB.texture_rectangle This module customises the behaviour of the OpenGL.raw.GL.ARB.texture_rectangle to provide a more Python-friendly API Overview (from the spec) OpenGL texturing is limited to images with power-of-two dimensions and an optional 1-texel border. The ARB_texture_rectangle e...
0
0
0
0
0
0
0
78
110
d324985b923746355d22fc3806cf0e3c415df0de
3,495
py
Python
api_testing/group/group.py
harshita-sharma011/oep-e2e
f7badfb6061535fa63d49113d92bdc937ee3cfd9
[ "Apache-2.0" ]
null
null
null
api_testing/group/group.py
harshita-sharma011/oep-e2e
f7badfb6061535fa63d49113d92bdc937ee3cfd9
[ "Apache-2.0" ]
371
2020-03-10T10:48:11.000Z
2022-02-27T09:19:13.000Z
api_testing/group/group.py
harshita-sharma011/oep-e2e
f7badfb6061535fa63d49113d92bdc937ee3cfd9
[ "Apache-2.0" ]
14
2020-03-11T06:13:54.000Z
2021-12-03T06:53:56.000Z
""" director account specific methods """
33.285714
76
0.603433
""" director account specific methods """ import argparse from api_request.request import * class Groups(): projectAccData = {} def __init__(self, director_url, api_key, api_password): # configobj = Config(director_url, api_key, api_password) # self.base_url = configobj.GROUPS_URL sel...
0
0
0
3,351
0
0
0
6
68
0e0c114968e6ac483c8db3398aa16cc1642c759b
25,531
py
Python
detect_rap.py
drsaunders/RapDetector
330142bfcbb01493b257a671e5cbe00f8863b980
[ "MIT" ]
null
null
null
detect_rap.py
drsaunders/RapDetector
330142bfcbb01493b257a671e5cbe00f8863b980
[ "MIT" ]
null
null
null
detect_rap.py
drsaunders/RapDetector
330142bfcbb01493b257a671e5cbe00f8863b980
[ "MIT" ]
null
null
null
# coding: utf-8 # In[7]: get_ipython().magic(u'matplotlib inline') get_ipython().magic(u"config InlineBackend.figure_formats = {'svg',}") import numpy as np import pandas as pd from IPython.display import display from sklearn.metrics import confusion_matrix from sklearn import metrics from sklearn import cross_vali...
49.768031
931
0.752693
# coding: utf-8 # In[7]: get_ipython().magic(u'matplotlib inline') get_ipython().magic(u"config InlineBackend.figure_formats = {'svg',}") import numpy as np import pandas as pd from IPython.display import display from sklearn.metrics import confusion_matrix from sklearn import metrics from sklearn import cross_vali...
0
0
0
0
0
0
0
0
0
518d353498d322aa2a6fed596c6823a31083328f
591
py
Python
src/pybuiltins/PyPortSignature.py
Xiddoc/ComPy
7d26f95209d0615d7eb188fa02470ddae5311fca
[ "MIT" ]
null
null
null
src/pybuiltins/PyPortSignature.py
Xiddoc/ComPy
7d26f95209d0615d7eb188fa02470ddae5311fca
[ "MIT" ]
9
2022-02-23T10:32:44.000Z
2022-03-27T17:55:43.000Z
src/pybuiltins/PyPortSignature.py
Xiddoc/ComPy
7d26f95209d0615d7eb188fa02470ddae5311fca
[ "MIT" ]
null
null
null
""" Port a native function or object to Python. """
28.142857
71
0.649746
""" Port a native function or object to Python. """ from typing import Iterable, Optional class PyPortSignature: """ Port a native object or object to Python. """ dependencies: Optional[Iterable[str]] = None linked_ports: Optional[Iterable[str]] = None def __init__(self, dep...
0
0
0
477
0
0
0
16
45
79b7f11450230adfa4af32b679f0f85e51ac4ea1
2,289
py
Python
strips_sat_x_1_18.py
connorescajeda/sat
b121c8fba702f09204864f9aade1e813a10397d2
[ "Apache-2.0" ]
null
null
null
strips_sat_x_1_18.py
connorescajeda/sat
b121c8fba702f09204864f9aade1e813a10397d2
[ "Apache-2.0" ]
null
null
null
strips_sat_x_1_18.py
connorescajeda/sat
b121c8fba702f09204864f9aade1e813a10397d2
[ "Apache-2.0" ]
null
null
null
global state, goals state = State('state') state.calibration_target = Oset([('instrument0','groundstation3'),('instrument1','groundstation3'),('instrument2','groundstation3'),('instrument3','star1'),('instrument4','groundstation3'),('instrument5','groundstation3'),('instrument6','star4'),('instrument7','star0'),('instr...
134.647059
645
0.710354
from pyhop_anytime import * global state, goals state = State('state') state.calibration_target = Oset([('instrument0','groundstation3'),('instrument1','groundstation3'),('instrument2','groundstation3'),('instrument3','star1'),('instrument4','groundstation3'),('instrument5','groundstation3'),('instrument6','star4'),('i...
0
0
0
0
0
0
0
6
22
f318936b78b8c977fda8916db6adbb2994982fd6
2,683
py
Python
app.py
LuoxinY/gateway
a17ecfafee1e8ace609c3da06a0111b5c266c00e
[ "MIT" ]
null
null
null
app.py
LuoxinY/gateway
a17ecfafee1e8ace609c3da06a0111b5c266c00e
[ "MIT" ]
null
null
null
app.py
LuoxinY/gateway
a17ecfafee1e8ace609c3da06a0111b5c266c00e
[ "MIT" ]
null
null
null
from conf import s app = ServiceCentre() app.wsgi_app = WsgiApp(app.wsgi_app) app.auto_find_instance_path() if __name__ == "__main__": app.run( s.get_conf_str("HOST", default="0.0.0.0"), port=s.get_conf_int("PORT", default=5000), threaded=True, debug=s.get_conf_bool("LOG_DEBUG...
29.811111
86
0.620201
from flask import Flask, Response from conf import s from conntext import before_request, ServiceResponse, error_handler, after_request from init_service import start_task from log import logger from route_list import ROUTE_LIST import utils import traceback class WsgiApp(object): def __init__(self, app): ...
33
34
0
1,760
0
0
0
86
223
2421d7db9356764f7cc2850e4bd49b402fbcb354
1,137
py
Python
RequestHandling/IntentionControl.py
DIT202003G1/Aogoke-Bot
07fa6b8c12d7244c5ef0b87ed566b4bea4ae59b4
[ "MIT" ]
null
null
null
RequestHandling/IntentionControl.py
DIT202003G1/Aogoke-Bot
07fa6b8c12d7244c5ef0b87ed566b4bea4ae59b4
[ "MIT" ]
null
null
null
RequestHandling/IntentionControl.py
DIT202003G1/Aogoke-Bot
07fa6b8c12d7244c5ef0b87ed566b4bea4ae59b4
[ "MIT" ]
2
2020-12-29T12:06:06.000Z
2021-01-31T13:35:21.000Z
useCases = {}
23.204082
52
0.704485
import json useCases = {} def useCase(name,step): def wrapper(function): function.name = name function.step = step registerUseCase(name, step, function) return function return wrapper def registerUseCase(name,step,useCase): if not name in useCases: useCases[name] = {} useCases[name][step] = useCase de...
0
0
0
0
0
1,019
0
-10
114
170f573003741ed8687d8c8e9fc8d9ddf70efa3d
1,018
py
Python
LinearRegression/tf_summary/tf_log_softmax.py
SMZCC/TF-deep-learn
7517685d8b4fb51f1823d4595165538305739fc7
[ "MIT" ]
null
null
null
LinearRegression/tf_summary/tf_log_softmax.py
SMZCC/TF-deep-learn
7517685d8b4fb51f1823d4595165538305739fc7
[ "MIT" ]
null
null
null
LinearRegression/tf_summary/tf_log_softmax.py
SMZCC/TF-deep-learn
7517685d8b4fb51f1823d4595165538305739fc7
[ "MIT" ]
null
null
null
# coding=utf-8 # date: 2018/12/19, 13:49 # name: smz import tensorflow as tf def demo_one(): """defference between softmax and log_softmax""" array_1 = tf.convert_to_tensor([1, 2, 3, 4, 5], dtype=tf.float32) single_softmax = tf.nn.softmax(array_1, name='single_softmax') log_softmax = tf.nn.log_soft...
33.933333
103
0.710216
# coding=utf-8 # date: 2018/12/19, 13:49 # name: smz import tensorflow as tf def demo_one(): """defference between softmax and log_softmax""" array_1 = tf.convert_to_tensor([1, 2, 3, 4, 5], dtype=tf.float32) single_softmax = tf.nn.softmax(array_1, name='single_softmax') log_softmax = tf.nn.log_soft...
0
0
0
0
0
0
0
0
0
24139d48d53b84c65607f4b295d7ea069a4f4923
13,811
py
Python
myo_rpi_ble.py
carolambek/myo_raspberry_reading
5f5edecb29c709fad81b3c04c5691012c74c5bfb
[ "MIT" ]
5
2018-11-09T23:44:58.000Z
2022-01-23T19:20:14.000Z
myo_rpi_ble.py
carolambek/myo_raspberry_reading
5f5edecb29c709fad81b3c04c5691012c74c5bfb
[ "MIT" ]
null
null
null
myo_rpi_ble.py
carolambek/myo_raspberry_reading
5f5edecb29c709fad81b3c04c5691012c74c5bfb
[ "MIT" ]
3
2020-04-22T01:46:24.000Z
2022-01-23T19:20:15.000Z
#!/usr/bin/env python # Charles Lambelet - 20.07.18 # charles.lambelet88@gmail.com # Connect Myo to Raspberry Pi 3/Zero W with Python over BLE import serial # import common # import filtering ser = serial.Serial( # port='/dev/ttyAMA0', # use ttyAMA0 when not using bluetooth on RPi3/Zero W port='/dev/ttyS0', ...
37.327027
164
0.63015
#!/usr/bin/env python # Charles Lambelet - 20.07.18 # charles.lambelet88@gmail.com # Connect Myo to Raspberry Pi 3/Zero W with Python over BLE import pexpect import time import serial # import common # import filtering from common import * from filtering import * ser = serial.Serial( # port='/dev/ttyAMA0', # u...
0
0
0
0
0
2,309
0
-16
135
1d977e9c1f6c8bc873cafc368b10757aad63a140
2,215
py
Python
terracotta/utils/idle-time-fraction.py
kvshamray/terracota
8f6419693a2add12c0cd27005e6f58f8295ad7e6
[ "Apache-2.0" ]
1
2020-01-21T11:31:39.000Z
2020-01-21T11:31:39.000Z
terracotta/utils/idle-time-fraction.py
kvshamray/terracota
8f6419693a2add12c0cd27005e6f58f8295ad7e6
[ "Apache-2.0" ]
null
null
null
terracotta/utils/idle-time-fraction.py
kvshamray/terracota
8f6419693a2add12c0cd27005e6f58f8295ad7e6
[ "Apache-2.0" ]
null
null
null
# Copyright 2012 Anton Beloglazov # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
33.560606
74
0.679007
# Copyright 2012 Anton Beloglazov # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
0
0
0
0
0
111
0
0
23
7c72d7d6946265cec6e62bfa9dc9cb31d4469d80
179
py
Python
jupyter-notebooks/h5-to-csv.py
joaog314/python-projects
0b9161febe2d3119051ee28843a22af232953537
[ "MIT" ]
null
null
null
jupyter-notebooks/h5-to-csv.py
joaog314/python-projects
0b9161febe2d3119051ee28843a22af232953537
[ "MIT" ]
null
null
null
jupyter-notebooks/h5-to-csv.py
joaog314/python-projects
0b9161febe2d3119051ee28843a22af232953537
[ "MIT" ]
null
null
null
import pandas as pd hdf = pd.HDFStore('signals_data.h5',mode='r') key = 'logger_data' df1 = hdf.get(key) df1.to_csv('signals_data.csv', encoding='utf-8', index=False, sep=',')
19.888889
70
0.687151
import pandas as pd hdf = pd.HDFStore('signals_data.h5',mode='r') key = 'logger_data' df1 = hdf.get(key) df1.to_csv('signals_data.csv', encoding='utf-8', index=False, sep=',')
0
0
0
0
0
0
0
0
0
da2f00494bd5f8b2ab28e67777801647ad981628
4,233
py
Python
creator/extract_configs/templates/s3_scrape_config.py
kids-first/kf-api-study-creator
93a79b108b6474f9b4135ace06c89ddcf63dd257
[ "Apache-2.0" ]
3
2019-05-04T02:07:28.000Z
2020-10-16T17:47:44.000Z
creator/extract_configs/templates/s3_scrape_config.py
kids-first/kf-api-study-creator
93a79b108b6474f9b4135ace06c89ddcf63dd257
[ "Apache-2.0" ]
604
2019-02-21T18:14:51.000Z
2022-02-10T08:13:54.000Z
creator/extract_configs/templates/s3_scrape_config.py
kids-first/kf-api-study-creator
93a79b108b6474f9b4135ace06c89ddcf63dd257
[ "Apache-2.0" ]
null
null
null
""" This is an extract configuration for a S3 Scrape file. See template definitions here: https://docs.google.com/spreadsheets/d/1ugcw1Rh3e7vXnc7OWlR4J7bafiBjGnfd4-rEThI-BNI """ from kf_lib_data_ingest.common import constants from kf_lib_data_ingest.common.constants import GENOMIC_FILE, COMMON from kf_lib_data_ingest....
29.395833
83
0.695015
""" This is an extract configuration for a S3 Scrape file. See template definitions here: https://docs.google.com/spreadsheets/d/1ugcw1Rh3e7vXnc7OWlR4J7bafiBjGnfd4-rEThI-BNI """ from kf_lib_data_ingest.common import constants from kf_lib_data_ingest.common.constants import GENOMIC_FILE, COMMON from kf_lib_data_ingest....
0
0
0
0
0
0
0
19
0
0b8863bedbb5d4e0b67b41e142c994a9ce94ffa1
3,582
py
Python
scripts/lib.py
kumiori/stability-bifurcation
9a82bf40742a9b16122b7a476ad8aec65fe22539
[ "MIT" ]
1
2020-08-10T22:38:26.000Z
2020-08-10T22:38:26.000Z
scripts/lib.py
kumiori/stability-bifurcation
9a82bf40742a9b16122b7a476ad8aec65fe22539
[ "MIT" ]
2
2020-08-13T16:33:51.000Z
2020-09-01T21:05:34.000Z
scripts/lib.py
kumiori/stability-bifurcation
9a82bf40742a9b16122b7a476ad8aec65fe22539
[ "MIT" ]
1
2020-10-25T22:28:11.000Z
2020-10-25T22:28:11.000Z
from utils import get_versions code_parameters = get_versions()
44.775
90
0.683138
import yaml import dolfin def create_output(outdir): file_out = dolfin.XDMFFile(os.path.join(outdir, "output.xdmf")) file_out.parameters["functions_share_mesh"] = True file_out.parameters["flush_output"] = True file_postproc = dolfin.XDMFFile(os.path.join(outdir, "postprocess.xdmf")) file_postproc....
0
0
0
0
0
3,393
0
-12
135
583ead6ff9c32ef4b95801fa63fc1949228e7fb6
123,743
py
Python
tournamentcontrol/competition/admin.py
goodtune/vitriolic
d135eecf7acbc229a872585ebafb8bbefca52df4
[ "BSD-3-Clause" ]
null
null
null
tournamentcontrol/competition/admin.py
goodtune/vitriolic
d135eecf7acbc229a872585ebafb8bbefca52df4
[ "BSD-3-Clause" ]
28
2016-12-09T21:14:19.000Z
2022-01-11T07:17:16.000Z
tournamentcontrol/competition/admin.py
goodtune/vitriolic
d135eecf7acbc229a872585ebafb8bbefca52df4
[ "BSD-3-Clause" ]
null
null
null
from __future__ import unicode_literals import logging from django.conf import settings SCORECARD_PDF_WAIT = getattr(settings, "TOURNAMENTCONTROL_SCORECARD_PDF_WAIT", 5) log = logging.getLogger(__name__)
52.433475
184
0.306708
from __future__ import unicode_literals import collections import functools import logging import operator from functools import reduce from django.apps import apps from django.conf import settings from django.conf.urls import include, url from django.contrib import messages from django.db import models from django.d...
0
47,538
0
73,084
0
404
0
1,845
664
36ea17cb0def0d14a408dbc0912fbeda263e4ec7
410
py
Python
sender.py
comp6028team17/scraper
dd198b643ec00f4920f1da7374f2441745196e15
[ "MIT" ]
null
null
null
sender.py
comp6028team17/scraper
dd198b643ec00f4920f1da7374f2441745196e15
[ "MIT" ]
null
null
null
sender.py
comp6028team17/scraper
dd198b643ec00f4920f1da7374f2441745196e15
[ "MIT" ]
null
null
null
if __name__ == '__main__': main()
18.636364
59
0.641463
import requests import json import sys def main(): if len(sys.argv) > 1: fname = sys.argv[1] else: fname = "test.jl" with open(fname, 'r') as f: for i, l in enumerate(f.readlines()): url = "http://jmpe.me:8080/api/docs" headers = {'Content-type': 'application/json'} response = requests.post(url, h...
0
0
0
0
0
311
0
-27
89
8b400c1135b5237e3ffbde78c0cc5c614e6f2bf9
2,817
py
Python
test/test_score.py
tinylinux/m1platformer
b7202399810e24aedb0398f37622a83a9c0c8b7b
[ "CC0-1.0" ]
9
2020-12-04T17:50:18.000Z
2021-01-22T14:08:46.000Z
test/test_score.py
tinylinux/m1platformer
b7202399810e24aedb0398f37622a83a9c0c8b7b
[ "CC0-1.0" ]
28
2020-10-09T15:18:11.000Z
2021-01-10T23:03:41.000Z
test/test_score.py
tinylinux/m1platformer
b7202399810e24aedb0398f37622a83a9c0c8b7b
[ "CC0-1.0" ]
null
null
null
# Roll 'n' Jump # Written in 2020, 2021 by Samuel Arsac, Hugo Buscemi, # Matteo Chencerel, Rida Lali # To the extent possible under law, the author(s) have dedicated all # copyright and related and neighboring rights to this software to the # public domain worldwide. This software is distributed without any warranty. #...
33.141176
77
0.614838
# Roll 'n' Jump # Written in 2020, 2021 by Samuel Arsac, Hugo Buscemi, # Matteo Chencerel, Rida Lali # To the extent possible under law, the author(s) have dedicated all # copyright and related and neighboring rights to this software to the # public domain worldwide. This software is distributed without any warranty. #...
2
1,219
0
0
0
0
0
14
91
d785651781ea6a3cc326b8ffe713a8c96bc03111
416
py
Python
0x0A-python-inheritance/4-inherits_from.py
Dev-Loup/holbertonschool-higher_level_programming
af6fe9a05c87dcdbb88270eec4c7ec81d6a70d9b
[ "FSFAP" ]
null
null
null
0x0A-python-inheritance/4-inherits_from.py
Dev-Loup/holbertonschool-higher_level_programming
af6fe9a05c87dcdbb88270eec4c7ec81d6a70d9b
[ "FSFAP" ]
null
null
null
0x0A-python-inheritance/4-inherits_from.py
Dev-Loup/holbertonschool-higher_level_programming
af6fe9a05c87dcdbb88270eec4c7ec81d6a70d9b
[ "FSFAP" ]
null
null
null
#!/usr/bin/python3 """ class Check module Functions: inherits_from: checks inheritance """ def inherits_from(obj, a_class): """ Returns booleanType response for class inheritance test Args: obj: object to evaluate a_class: class value for testing """ if...
20.8
44
0.600962
#!/usr/bin/python3 """ class Check module Functions: inherits_from: checks inheritance """ def inherits_from(obj, a_class): """ Returns booleanType response for class inheritance test Args: obj: object to evaluate a_class: class value for testing """ if...
0
0
0
0
0
0
0
0
0
b23d55b0003e6caf35a28a06001159e88a475ca7
1,554
py
Python
tools/LRR/manual.py
zuphilip/legal-resource-registry
310bea8d17e07e9818015a3c04aae81214de9f9c
[ "BSD-2-Clause" ]
null
null
null
tools/LRR/manual.py
zuphilip/legal-resource-registry
310bea8d17e07e9818015a3c04aae81214de9f9c
[ "BSD-2-Clause" ]
null
null
null
tools/LRR/manual.py
zuphilip/legal-resource-registry
310bea8d17e07e9818015a3c04aae81214de9f9c
[ "BSD-2-Clause" ]
null
null
null
''' Handy extensions for documentation ''' FloaterTemplate = ''' \\setlength{\\scratchlengthouter}{%s\\textwidth} \\setlength{\\scratchlengthinner}{\\scratchlengthouter} \\addtolength{\\scratchlengthinner}{-5pt} \\begin{floatingfigure}[r]{\\scratchlengthouter} \\noindent\\begin{minipage}{\\scratchlengthouter}\\hsp...
31.08
111
0.697555
''' Handy extensions for documentation ''' from docutils import nodes from docutils.parsers.rst import directives, Directive from docutils.writers.latex2e import LaTeXTranslator class floater (nodes.TextElement): pass FloaterTemplate = ''' \\setlength{\\scratchlengthouter}{%s\\textwidth} \\setlength{\\scratchlen...
0
0
0
928
0
0
0
69
136
8dd24f0886c62937685d30aafe0045e649255dd3
5,585
py
Python
romanize/cop.py
markomanninen/romanize3
e595c57f66022e35cb8a28dc85b7beadb7dc11c1
[ "MIT" ]
2
2018-03-15T21:28:58.000Z
2019-06-29T08:23:33.000Z
romanize/cop.py
markomanninen/romanize3
e595c57f66022e35cb8a28dc85b7beadb7dc11c1
[ "MIT" ]
null
null
null
romanize/cop.py
markomanninen/romanize3
e595c57f66022e35cb8a28dc85b7beadb7dc11c1
[ "MIT" ]
null
null
null
#!/usr/local/bin/python # -*- coding: utf-8 -*- # file: cop.py import re from collections import OrderedDict from .romanizer import romanizer has_capitals = True data = OrderedDict() # http://en.wikipedia.org/wiki/Coptic_alphabet # letters from to (1 - 9) # alef:http://en.wiktionary.org/wiki/ data['alpha'] = dic...
50.315315
147
0.675022
#!/usr/local/bin/python # -*- coding: utf-8 -*- # file: cop.py import re from collections import OrderedDict from .romanizer import romanizer has_capitals = True data = OrderedDict() # http://en.wikipedia.org/wiki/Coptic_alphabet # letters from ⲁ to ⲑ (1 - 9) # alef:http://en.wiktionary.org/wiki/ data['alpha'] = d...
187
0
0
0
0
0
0
0
0
7f7f05e6baf6c28dc9a09e416e958185b0a6cea6
15,499
py
Python
src/Products/GenericSetup/tests/test_components.py
gogobd/Products.GenericSetup
20f15d3d1e992045a77abffb50e66854e725e23a
[ "ZPL-2.1" ]
4
2017-01-24T21:03:07.000Z
2021-03-05T17:28:03.000Z
src/Products/GenericSetup/tests/test_components.py
gogobd/Products.GenericSetup
20f15d3d1e992045a77abffb50e66854e725e23a
[ "ZPL-2.1" ]
91
2015-05-22T20:54:12.000Z
2022-03-31T08:56:50.000Z
src/Products/GenericSetup/tests/test_components.py
gogobd/Products.GenericSetup
20f15d3d1e992045a77abffb50e66854e725e23a
[ "ZPL-2.1" ]
11
2015-04-03T05:21:27.000Z
2021-04-09T11:27:02.000Z
############################################################################## # # Copyright (c) 2006 Zope Foundation and Contributors. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOFTWARE IS PROVIDED "AS I...
32.767442
79
0.684883
############################################################################## # # Copyright (c) 2006 Zope Foundation and Contributors. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOFTWARE IS PROVIDED "AS I...
0
984
0
8,357
0
695
0
0
328
dfa2a89df1e6f66724713f9228326c3bd118bc54
1,116
py
Python
aiida_restapi/graphql/sphinx_ext.py
janssenhenning/aiida-restapi
9a382843effd9aae065f887d068c4cb980f50129
[ "MIT" ]
4
2021-06-02T23:06:29.000Z
2021-07-09T11:28:03.000Z
aiida_restapi/graphql/sphinx_ext.py
janssenhenning/aiida-restapi
9a382843effd9aae065f887d068c4cb980f50129
[ "MIT" ]
26
2021-06-02T11:26:49.000Z
2021-12-23T10:06:45.000Z
aiida_restapi/graphql/sphinx_ext.py
janssenhenning/aiida-restapi
9a382843effd9aae065f887d068c4cb980f50129
[ "MIT" ]
3
2021-06-13T02:51:06.000Z
2022-03-19T09:15:51.000Z
# -*- coding: utf-8 -*- """Sphinx extension for documenting the GraphQL schema.""" # pylint: disable=import-outside-toplevel from typing import TYPE_CHECKING if TYPE_CHECKING: from docutils.nodes import literal_block from sphinx.application import Sphinx def setup(app: "Sphinx") -> None: """Setup the sph...
33.818182
122
0.689068
# -*- coding: utf-8 -*- """Sphinx extension for documenting the GraphQL schema.""" # pylint: disable=import-outside-toplevel from typing import TYPE_CHECKING, List from graphql.utils.schema_printer import print_schema from .main import SCHEMA if TYPE_CHECKING: from docutils.nodes import literal_block from sp...
0
0
0
493
0
0
0
96
125
127e1f1a134a1ec6d4218f68881203ac1be7ed28
871
py
Python
ex041.py
GantzLorran/Python
ce6073754318443345973471589cceb4a24ed832
[ "Apache-2.0" ]
1
2020-03-26T13:23:17.000Z
2020-03-26T13:23:17.000Z
ex041.py
GantzLorran/Python
ce6073754318443345973471589cceb4a24ed832
[ "Apache-2.0" ]
null
null
null
ex041.py
GantzLorran/Python
ce6073754318443345973471589cceb4a24ed832
[ "Apache-2.0" ]
null
null
null
#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: JUNIOR #- at 20 anos: SENIOR #- acima: MASTER from datetime import date idade = date.today().year ano = int...
39.590909
101
0.656716
#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: JUNIOR #- até 20 anos: SENIOR #- acima: MASTER from datetime import date idade = date.today().year a...
32
0
0
0
0
0
0
0
0
f014ab7e98873009677b648e0a9ff4a90098f24f
1,163
py
Python
sgcn/utils.py
dwgoon/sgcn
45096f60328b097dd859bd84803b2b52fef408e0
[ "MIT" ]
4
2021-12-14T14:10:44.000Z
2021-12-15T06:40:49.000Z
sgcn/utils.py
dwgoon/sgcn
45096f60328b097dd859bd84803b2b52fef408e0
[ "MIT" ]
null
null
null
sgcn/utils.py
dwgoon/sgcn
45096f60328b097dd859bd84803b2b52fef408e0
[ "MIT" ]
null
null
null
""" [References] - https://stackoverflow.com/questions/8505651/non-repetitive-random-number-in-numpy - https://algorithmist.com/wiki/Modular_inverse - https://stackoverflow.com/questions/16044553/solving-a-modular-equation-python """ import numpy as np def get_bitwidth(n): """Calculate the bit width (size) for a ...
25.844444
83
0.639725
""" [References] - https://stackoverflow.com/questions/8505651/non-repetitive-random-number-in-numpy - https://algorithmist.com/wiki/Modular_inverse - https://stackoverflow.com/questions/16044553/solving-a-modular-equation-python """ import random import numpy as np def get_bitwidth(n): """Calculate the bit widt...
0
0
0
0
0
500
0
-8
115
c8aba241294c1ec6c014e1a436bfe2297c1310c5
2,215
py
Python
tests/lab2/test_ball_window.py
EmilieYip/sdia-python
0751b803ca20481a99410bb72c8649005e2c3804
[ "MIT" ]
1
2021-09-15T06:04:50.000Z
2021-09-15T06:04:50.000Z
tests/lab2/test_ball_window.py
EmilieYip/sdia-python
0751b803ca20481a99410bb72c8649005e2c3804
[ "MIT" ]
null
null
null
tests/lab2/test_ball_window.py
EmilieYip/sdia-python
0751b803ca20481a99410bb72c8649005e2c3804
[ "MIT" ]
null
null
null
# checks if the dimension of the ball window is correct # checks if the volume of the ball window is correct # checks if, for the ball_2d, the point is in the ball window # checks if for the ball_2d, the point is in the ball window. Returns 1 if it is the case, 0 otherwise. # checks if the point(s) taken r...
24.340659
103
0.606321
import numpy as np import pytest from lab2.ball_window import BallWindow def test_raise_type_error_when_something_is_called(): with pytest.raises(TypeError): # call_something_that_raises_TypeError() raise TypeError() # checks if the dimension of the ball window is correct @pytest.mark.parametri...
0
1,470
0
0
0
142
0
7
246
ff497a0d072b75821e39bd888f5106d3ef9b69bb
2,999
py
Python
library/lib_study/11_datatypes_datetime.py
gottaegbert/penter
8cbb6be3c4bf67c7c69fa70e597bfbc3be4f0a2d
[ "MIT" ]
13
2020-01-04T07:37:38.000Z
2021-08-31T05:19:58.000Z
library/lib_study/11_datatypes_datetime.py
gottaegbert/penter
8cbb6be3c4bf67c7c69fa70e597bfbc3be4f0a2d
[ "MIT" ]
3
2020-06-05T22:42:53.000Z
2020-08-24T07:18:54.000Z
library/lib_study/11_datatypes_datetime.py
gottaegbert/penter
8cbb6be3c4bf67c7c69fa70e597bfbc3be4f0a2d
[ "MIT" ]
9
2020-10-19T04:53:06.000Z
2021-08-31T05:20:01.000Z
import datetime # date, datetime, time timezone : 1. 2. 3. pickle print(datetime.MINYEAR) print(datetime.MAXYEAR) print(datetime.date(2020, 5, 7)) print(datetime.time(20, 5, 7, 123000)) print(datetime.datetime(2020, 5, 7, 20, 5, 7)) print(datetime.datetime.now()) # now@classmethod print(datetime.datetime.utcnow...
29.401961
127
0.697566
import datetime # date, datetime, time 和 timezone 类型共享这些通用特性: 1. 这些类型的对象都是不可变的。2. 这些类型的对象是可哈希的,这意味着它们可被作为字典的键。 3. 这些类型的对象支持通过 pickle 模块进行高效的封存。 print(datetime.MINYEAR) print(datetime.MAXYEAR) print(datetime.date(2020, 5, 7)) print(datetime.time(20, 5, 7, 123000)) print(datetime.datetime(2020, 5, 7, 20, 5, 7)) print(...
828
0
0
0
0
0
0
0
0
28272271e006a91f0f79cb090822330b49f3e90c
300,863
py
Python
wisdem/test/test_ccblade/test_gradients.py
johnjasa/WISDEM
a4571e71cb5b9869c81790f8abb1bb7fba8fdb02
[ "Apache-2.0" ]
81
2015-01-19T18:17:31.000Z
2022-03-17T07:14:43.000Z
wisdem/test/test_ccblade/test_gradients.py
johnjasa/WISDEM
a4571e71cb5b9869c81790f8abb1bb7fba8fdb02
[ "Apache-2.0" ]
159
2015-02-05T01:54:52.000Z
2022-03-30T22:44:39.000Z
wisdem/test/test_ccblade/test_gradients.py
johnjasa/WISDEM
a4571e71cb5b9869c81790f8abb1bb7fba8fdb02
[ "Apache-2.0" ]
70
2015-01-02T15:22:39.000Z
2022-02-11T00:33:07.000Z
""" Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License i...
34.894804
172
0.530727
""" Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License i...
0
0
0
299,741
0
288
0
27
182
9288485f915afe28034c9d944ea40fbb6b5d3263
132
py
Python
datasets/__init__.py
wogong/pytorch-adda
56ed179ced25fda3082b592e7f1751f4a62ac489
[ "MIT" ]
104
2018-11-11T04:14:24.000Z
2022-03-26T13:14:57.000Z
datasets/__init__.py
Richard456/Dann
1971cf1a7b9ecadc17932a8ecb3f0c34609751a3
[ "MIT" ]
9
2018-11-13T15:59:34.000Z
2022-03-21T17:20:38.000Z
datasets/__init__.py
Richard456/Dann
1971cf1a7b9ecadc17932a8ecb3f0c34609751a3
[ "MIT" ]
19
2019-01-21T15:30:34.000Z
2021-11-15T18:50:04.000Z
from .mnist import get_mnist from .mnistm import get_mnistm from .svhn import get_svhn __all__ = (get_mnist, get_svhn, get_mnistm)
22
43
0.80303
from .mnist import get_mnist from .mnistm import get_mnistm from .svhn import get_svhn __all__ = (get_mnist, get_svhn, get_mnistm)
0
0
0
0
0
0
0
0
0
b47a3d37e629b0fdc1c342d388cf71e8526367be
199
py
Python
start.py
joshua5201/NATwitchPlay
27e8349c0a2e77fc7993b6153e16de9d476dea28
[ "MIT" ]
null
null
null
start.py
joshua5201/NATwitchPlay
27e8349c0a2e77fc7993b6153e16de9d476dea28
[ "MIT" ]
null
null
null
start.py
joshua5201/NATwitchPlay
27e8349c0a2e77fc7993b6153e16de9d476dea28
[ "MIT" ]
null
null
null
from TwitchPlay import TwitchPlay import sys if len(sys.argv) != 2 : print("wrong number of arguments") print("usage: start.py [mode]") exit(1) app = TwitchPlay() app.start(sys.argv[1])
19.9
38
0.673367
from TwitchPlay import TwitchPlay import sys if len(sys.argv) != 2 : print("wrong number of arguments") print("usage: start.py [mode]") exit(1) app = TwitchPlay() app.start(sys.argv[1])
0
0
0
0
0
0
0
0
0
c687c4303b60c3fd79fdcb6646b8ccd59fd3eaa0
555
py
Python
finance/migrations/0002_auto_20200919_1716.py
matinazimi/onilne-store
94494e3c15de2f08319742ec5f9b1ed23585236e
[ "Apache-2.0" ]
null
null
null
finance/migrations/0002_auto_20200919_1716.py
matinazimi/onilne-store
94494e3c15de2f08319742ec5f9b1ed23585236e
[ "Apache-2.0" ]
null
null
null
finance/migrations/0002_auto_20200919_1716.py
matinazimi/onilne-store
94494e3c15de2f08319742ec5f9b1ed23585236e
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.0.8 on 2020-09-19 17:16
26.428571
143
0.643243
# Generated by Django 3.0.8 on 2020-09-19 17:16 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('product', '0003_auto_20200903_1104'), ('finance', '0001_initial'), ] operations = [ migrations.Alte...
0
0
0
408
0
0
0
30
68
1f5f55bb4c841a53f7cdcd4cffcfe734769f10fa
193
py
Python
app/urls.py
ahmadsyafrudin/estimation-test
25b0b80065c8a0c0ba1a1a3b019b522d81501afa
[ "MIT" ]
null
null
null
app/urls.py
ahmadsyafrudin/estimation-test
25b0b80065c8a0c0ba1a1a3b019b522d81501afa
[ "MIT" ]
8
2020-02-12T00:12:47.000Z
2021-09-22T18:01:47.000Z
app/urls.py
ahmadsyafrudin/estimation-test
25b0b80065c8a0c0ba1a1a3b019b522d81501afa
[ "MIT" ]
null
null
null
from django.contrib import admin from django.urls import path from estimation.views import estimate urlpatterns = [ path('admin/', admin.site.urls), path('api/estimate/', estimate) ]
19.3
37
0.73057
from django.contrib import admin from django.urls import path from estimation.views import estimate urlpatterns = [ path('admin/', admin.site.urls), path('api/estimate/', estimate) ]
0
0
0
0
0
0
0
0
0
c71e7171e49b40961be282b5eb2de903805b9a15
738
py
Python
autoupgrade/utils.py
t-persson/autoupgrade
6c51691cdeb6403dfddac19dda1523fa1771d796
[ "MIT" ]
2
2017-11-23T09:38:05.000Z
2020-01-16T09:04:59.000Z
autoupgrade/utils.py
t-persson/autoupgrade
6c51691cdeb6403dfddac19dda1523fa1771d796
[ "MIT" ]
1
2018-03-12T13:37:39.000Z
2020-12-28T16:20:34.000Z
autoupgrade/utils.py
t-persson/autoupgrade
6c51691cdeb6403dfddac19dda1523fa1771d796
[ "MIT" ]
8
2017-07-22T09:15:00.000Z
2021-05-25T10:01:23.000Z
# -*- coding: utf-8 -*- import re def normalize_version(version): """ Helper function to normalize version. Returns a comparable object. Args: version (str) version, e.g. "0.1.0" """ rv = [] for x in version.split("."): try: rv.append(int(x)) except Val...
22.363636
65
0.482385
# -*- coding: utf-8 -*- import re def normalize_version(version): """ Helper function to normalize version. Returns a comparable object. Args: version (str) version, e.g. "0.1.0" """ rv = [] for x in version.split("."): try: rv.append(int(x)) except Val...
0
0
0
0
0
0
0
0
0
93338d82336782d8b0aaebff6345868461c638b2
1,257
py
Python
shell.py
SarangT123/doge
edc0dc020f01e6aa28aa59091d4a2977180eef2f
[ "MIT" ]
null
null
null
shell.py
SarangT123/doge
edc0dc020f01e6aa28aa59091d4a2977180eef2f
[ "MIT" ]
null
null
null
shell.py
SarangT123/doge
edc0dc020f01e6aa28aa59091d4a2977180eef2f
[ "MIT" ]
null
null
null
import basic while True: text = input('Doge shell 0.1 (Beta) > ') if "import" in text: importing = text.split(" ") if importing[0] == "import": f = open(importing[1], 'r') imports = f.read() f2 = open(importing[2], 'r') toimp = f2.read() ...
27.326087
54
0.438345
import basic import os import subprocess while True: text = input('Doge shell 0.1 (Beta) > ') if "import" in text: importing = text.split(" ") if importing[0] == "import": f = open(importing[1], 'r') imports = f.read() f2 = open(importing[2], 'r') ...
0
0
0
0
0
0
0
-16
44
67d2341daea7096fc03a78f76bf887ab905f14a2
2,988
py
Python
aliyun-python-sdk-vs/aliyunsdkvs/request/v20181212/ModifyParentPlatformRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
1,001
2015-07-24T01:32:41.000Z
2022-03-25T01:28:18.000Z
aliyun-python-sdk-vs/aliyunsdkvs/request/v20181212/ModifyParentPlatformRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
363
2015-10-20T03:15:00.000Z
2022-03-08T12:26:19.000Z
aliyun-python-sdk-vs/aliyunsdkvs/request/v20181212/ModifyParentPlatformRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
682
2015-09-22T07:19:02.000Z
2022-03-22T09:51:46.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
30.489796
74
0.748661
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
0
0
0
2,082
0
0
0
48
68
5f55fe2792995d1f5e1966a111b85a8c7109e9c9
2,835
py
Python
s3vaultlib/metadata/ec2.py
gchiesa/s3vaultlib
497a3fb6f06c2bdb41ea8d05db4ce2a4a3379de9
[ "BSD-3-Clause" ]
2
2018-06-18T13:07:02.000Z
2019-09-02T08:03:08.000Z
s3vaultlib/metadata/ec2.py
gchiesa/s3vaultlib
497a3fb6f06c2bdb41ea8d05db4ce2a4a3379de9
[ "BSD-3-Clause" ]
481
2017-09-10T15:29:20.000Z
2021-07-18T14:15:46.000Z
s3vaultlib/metadata/ec2.py
gchiesa/s3vaultlib
497a3fb6f06c2bdb41ea8d05db4ce2a4a3379de9
[ "BSD-3-Clause" ]
2
2018-05-16T17:14:26.000Z
2018-09-07T16:30:05.000Z
#!/usr/bin/env python __author__ = "Giuseppe Chiesa" __copyright__ = "Copyright 2017-2021, Giuseppe Chiesa" __credits__ = ["Giuseppe Chiesa"] __license__ = "BSD" __maintainer__ = "Giuseppe Chiesa" __email__ = "mail@giuseppechiesa.it" __status__ = "PerpetualBeta"
29.842105
103
0.646561
#!/usr/bin/env python import json import logging import requests from s3vaultlib import __application__ from .base import MetadataBase __author__ = "Giuseppe Chiesa" __copyright__ = "Copyright 2017-2021, Giuseppe Chiesa" __credits__ = ["Giuseppe Chiesa"] __license__ = "BSD" __maintainer__ = "Giuseppe Chiesa" __email...
0
913
0
1,495
0
0
0
3
158
cc71c069345c2536bb6d927e4112a6bbd8f5badb
990
py
Python
tests/test_init.py
malja/zroya
41830133a54528e9cd9ef43d9637a576ac849c11
[ "MIT" ]
164
2018-02-17T03:28:33.000Z
2022-02-08T17:26:59.000Z
tests/test_init.py
malja/zroya
41830133a54528e9cd9ef43d9637a576ac849c11
[ "MIT" ]
13
2018-02-17T08:38:50.000Z
2020-09-17T19:46:32.000Z
tests/test_init.py
malja/zroya
41830133a54528e9cd9ef43d9637a576ac849c11
[ "MIT" ]
14
2018-02-17T11:34:59.000Z
2022-02-24T09:36:45.000Z
import unittest if __name__ == "__main__": unittest.main()
30.9375
115
0.653535
import zroya import unittest class zroya_init(unittest.TestCase): def test_NoParam(self): self.assertRaises(ValueError, lambda: zroya.init()) def test_FewParams(self): self.assertRaises(ValueError, lambda: zroya.init("a", "b")) def test_FewParamsKeywords(self): self.assertRaises(...
0
0
0
889
0
0
0
-9
45
7742d4fee08c59687080e7923044d537bb88edfc
450
py
Python
quiz/tomori-music.py
TomoriBot/Tomori
080dcee5213a1d7ee3c750501c30769d5f334890
[ "MIT" ]
14
2018-09-24T16:30:47.000Z
2021-03-22T18:00:16.000Z
tomori-music.py
SeldoW/Tomori
be610999f4002a9f2340ce430cf9d6c1c36f5034
[ "MIT" ]
null
null
null
tomori-music.py
SeldoW/Tomori
be610999f4002a9f2340ce430cf9d6c1c36f5034
[ "MIT" ]
7
2018-10-23T16:51:49.000Z
2021-03-22T18:00:19.000Z
import discord.ext.commands as commands bot = commands.Bot(commands.when_mentioned_or(prefix_list)) bot.load_extension('cogs.music') bot.run(settings["token"])
28.125
64
0.766667
import discord.ext.commands as commands from config.settings import * from cogs.const import * bot = commands.Bot(commands.when_mentioned_or(prefix_list)) bot.load_extension('cogs.music') @bot.command() @commands.has_permissions(manage_guild=True) async def reload(ctx): ctx.bot.unload_extension('cogs.music') ...
0
210
0
0
0
0
0
11
67
a7e92e10c0f2327702563399db4f554a5da775dc
10,248
py
Python
core/platform/email/mailgun_email_services_test.py
JeeveshGarg/oppia
8d4efdb2b1521eb6432ddc12e7bed55c8e90db06
[ "Apache-2.0" ]
1
2021-12-17T15:21:23.000Z
2021-12-17T15:21:23.000Z
core/platform/email/mailgun_email_services_test.py
JeeveshGarg/oppia
8d4efdb2b1521eb6432ddc12e7bed55c8e90db06
[ "Apache-2.0" ]
null
null
null
core/platform/email/mailgun_email_services_test.py
JeeveshGarg/oppia
8d4efdb2b1521eb6432ddc12e7bed55c8e90db06
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2014 The Oppia Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
44.172414
83
0.589383
# coding: utf-8 # # Copyright 2014 The Oppia Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
84
0
0
9,265
0
0
0
40
135
3e6f8218e25255471ea077827786273acfb6b0da
686
py
Python
2021/38th/src_rod.py
fabichoi/1d1p
e978ed5f385114598ef2298385ed19ae61b06f5c
[ "MIT" ]
null
null
null
2021/38th/src_rod.py
fabichoi/1d1p
e978ed5f385114598ef2298385ed19ae61b06f5c
[ "MIT" ]
1
2021-08-29T14:31:17.000Z
2021-08-29T14:31:17.000Z
2021/38th/src_rod.py
fabichoi/1d1p
e978ed5f385114598ef2298385ed19ae61b06f5c
[ "MIT" ]
null
null
null
import sys sys.setrecursionlimit(10 ** 5) cache = [0 for _ in range(100000)] if __name__ == '__main__': v = [0] + list(map(int, input().split())) # print(solve(v, len(v) - 1)) print(solve_memo(v, len(v) - 1))
16.731707
69
0.510204
import sys sys.setrecursionlimit(10 ** 5) def solve(v, n): if n <= 0: return 0 price = -987654321 for i in range(1, n + 1): price = max(price, v[i] + solve(v, n - i)) return price cache = [0 for _ in range(100000)] def solve_memo(v, n): if n <= 0: return 0 globa...
0
0
0
0
0
412
0
0
46
5840923d4ed5a5de7aa556419ce5b1260d3b1671
414
py
Python
project2.py
kdriley0/450-project-2
f1b9d50f24af8b19356e302daac1609457b3b8aa
[ "MIT" ]
null
null
null
project2.py
kdriley0/450-project-2
f1b9d50f24af8b19356e302daac1609457b3b8aa
[ "MIT" ]
null
null
null
project2.py
kdriley0/450-project-2
f1b9d50f24af8b19356e302daac1609457b3b8aa
[ "MIT" ]
null
null
null
#couning values all_nums=[] f = open ("COSC450_P1_Data.txt", "r") num = 0 for line in f.read().split(): num += 1 all_nums.append(line) f.close() firstArr =[] aLenght = int(num/5) print(aLenght) f = open ("COSC450_P1_Data.txt", "r") for line in f.read().split(): for i in range(1,5): for j...
14.785714
38
0.574879
#couning values all_nums=[] f = open ("COSC450_P1_Data.txt", "r") num = 0 for line in f.read().split(): num += 1 all_nums.append(line) f.close() firstArr =[] aLenght = int(num/5) print(aLenght) f = open ("COSC450_P1_Data.txt", "r") for line in f.read().split(): for i in range(1,5): for j...
0
0
0
0
0
0
0
0
0
4c4b9fddd6bd67a36844008e2ed868f699031f46
5,513
py
Python
model/classification.py
yanzhicong/VAE-GAN
37fe060cd993d89c983bc8cfcc59c6edc3c5920f
[ "MIT" ]
33
2018-08-17T13:06:29.000Z
2021-04-29T11:34:00.000Z
model/classification.py
yanzhicong/CVAEGAN
37fe060cd993d89c983bc8cfcc59c6edc3c5920f
[ "MIT" ]
1
2018-05-25T02:17:08.000Z
2018-05-25T02:17:08.000Z
model/classification.py
yanzhicong/CVAEGAN
37fe060cd993d89c983bc8cfcc59c6edc3c5920f
[ "MIT" ]
9
2019-01-28T21:35:16.000Z
2021-09-07T10:18:01.000Z
# -*- coding: utf-8 -*- # MIT License # # Copyright (c) 2018 ZhicongYan # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use...
33.615854
109
0.729548
# -*- coding: utf-8 -*- # MIT License # # Copyright (c) 2018 ZhicongYan # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use...
0
0
0
4,019
0
0
0
47
181
59b9c2435621c81bcdf4e2ae0b8424c70f03d94c
857
py
Python
disturbance/migrations/0186_wacoast.py
thakurpriya1990/disturbance
47f9ce5ae5f1b02d97ace11f1041e96daf7e4556
[ "Apache-2.0" ]
1
2020-06-30T04:47:42.000Z
2020-06-30T04:47:42.000Z
disturbance/migrations/0186_wacoast.py
thakurpriya1990/disturbance
47f9ce5ae5f1b02d97ace11f1041e96daf7e4556
[ "Apache-2.0" ]
16
2020-03-11T08:25:46.000Z
2022-03-02T08:14:40.000Z
disturbance/migrations/0186_wacoast.py
thakurpriya1990/disturbance
47f9ce5ae5f1b02d97ace11f1041e96daf7e4556
[ "Apache-2.0" ]
9
2020-01-30T17:37:38.000Z
2021-09-30T02:22:24.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.8 on 2020-10-05 08:35 from __future__ import unicode_literals
32.961538
122
0.626604
# -*- coding: utf-8 -*- # Generated by Django 1.10.8 on 2020-10-05 08:35 from __future__ import unicode_literals import django.contrib.gis.db.models.fields from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('disturbance', '0185_merge_20201005_1601'), ] ...
0
0
0
635
0
0
0
40
68
16cfcc48f8c5792b8e33c209cc365aa1021eb8f7
166
py
Python
django_approval/urls.py
jonathan-s/django-approval
aa16e92ebf5699a219a520d6579c0fd57712f7cd
[ "Apache-2.0" ]
8
2019-11-20T10:31:46.000Z
2021-08-14T22:35:27.000Z
django_approval/urls.py
jonathan-s/django-approval
aa16e92ebf5699a219a520d6579c0fd57712f7cd
[ "Apache-2.0" ]
null
null
null
django_approval/urls.py
jonathan-s/django-approval
aa16e92ebf5699a219a520d6579c0fd57712f7cd
[ "Apache-2.0" ]
1
2019-11-18T20:36:13.000Z
2019-11-18T20:36:13.000Z
# -*- coding: utf-8 -*- app_name = 'django_approval' urlpatterns = []
23.714286
53
0.716867
# -*- coding: utf-8 -*- from django.conf.urls import url # noqa from django.views.generic import TemplateView # noqa app_name = 'django_approval' urlpatterns = []
0
0
0
0
0
0
0
35
60
6906705d3f6de55b0ca960eafc777f500ea93885
1,020
py
Python
scripts/Qubit/Analysis/Two tone/Smarter Two-tone 3D.py
sourav-majumder/qtlab
96b2a127b1df7b45622c90229bd5ef8a4083614e
[ "MIT" ]
null
null
null
scripts/Qubit/Analysis/Two tone/Smarter Two-tone 3D.py
sourav-majumder/qtlab
96b2a127b1df7b45622c90229bd5ef8a4083614e
[ "MIT" ]
null
null
null
scripts/Qubit/Analysis/Two tone/Smarter Two-tone 3D.py
sourav-majumder/qtlab
96b2a127b1df7b45622c90229bd5ef8a4083614e
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt path = r'D:\data\20190718\155221_Qubit smart_two_tone2' cavity_path = r'D:\data\20190718\155221_cavity smart_two_tone2' data_name = path+path[16:]+r'.dat' cavity_data_name = cavity_path+cavity_path[16:]+r'.dat' data = np.loadtxt(data_name, unpack=True) c...
29.142857
181
0.704902
import numpy as np import matplotlib.pyplot as plt def volt(dBm): return np.sqrt(50*1e-3*(10**(dBm/10))) path = r'D:\data\20190718\155221_Qubit smart_two_tone2' cavity_path = r'D:\data\20190718\155221_cavity smart_two_tone2' data_name = path+path[16:]+r'.dat' cavity_data_name = cavity_path+cavity_path[1...
0
0
0
0
0
34
0
0
25
964120924982ca4c9daf357410126d70c3dc8375
1,487
py
Python
example_driver.py
admariner/blast_developer_tools
103654eb89e8ab154fff65e432660485b4afc8db
[ "Apache-2.0" ]
1
2022-03-06T07:05:50.000Z
2022-03-06T07:05:50.000Z
example_driver.py
blast-analytics-marketing/blast_developer_tools
103654eb89e8ab154fff65e432660485b4afc8db
[ "Apache-2.0" ]
1
2022-03-06T07:06:15.000Z
2022-03-06T07:06:15.000Z
example_driver.py
admariner/blast_developer_tools
103654eb89e8ab154fff65e432660485b4afc8db
[ "Apache-2.0" ]
1
2022-03-06T07:05:55.000Z
2022-03-06T07:05:55.000Z
""" main driver module """ # Copyright 2021, Blast Analytics & Marketing # 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...
33.044444
81
0.757902
""" main driver module """ # Copyright 2021, Blast Analytics & Marketing # 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...
0
0
0
0
0
0
0
0
0
cf9d331b8df5bee8697093247c209e1dc1500366
1,445
py
Python
Mutable Function.py
samli6479/PythonLearn
2ad78f62d58612132d3a3759aecec4a52381566f
[ "Apache-2.0" ]
null
null
null
Mutable Function.py
samli6479/PythonLearn
2ad78f62d58612132d3a3759aecec4a52381566f
[ "Apache-2.0" ]
null
null
null
Mutable Function.py
samli6479/PythonLearn
2ad78f62d58612132d3a3759aecec4a52381566f
[ "Apache-2.0" ]
null
null
null
# A function with Behavior That varies Over Time # A function compound value have a body and a parent frame # The parent frame contains the balance, the local state of the withdraw function # Non-Local Assignment & Persistent Local State # Work for python 3 def make_withdraw(balance): """ Return a withdraw fun...
32.111111
130
0.674048
# A function with Behavior That varies Over Time # A function compound value have a body and a parent frame # The parent frame contains the balance, the local state of the withdraw function # Non-Local Assignment & Persistent Local State # Work for python 3 def make_withdraw(balance): """ Return a withdraw fun...
0
0
0
0
0
643
0
0
104
576491f62931c19ab1d547381f44de448ec9e07e
1,722
py
Python
paper/historycode/toAnna/final_get_profit.py
andurilhuang/Movie_Income_Prediction
5c705fe60295a175e9dc54191df422fc49ceccd6
[ "MIT" ]
1
2017-11-02T06:06:39.000Z
2017-11-02T06:06:39.000Z
paper/historycode/toAnna/final_get_profit.py
andurilhuang/Movie_Income_Prediction
5c705fe60295a175e9dc54191df422fc49ceccd6
[ "MIT" ]
null
null
null
paper/historycode/toAnna/final_get_profit.py
andurilhuang/Movie_Income_Prediction
5c705fe60295a175e9dc54191df422fc49ceccd6
[ "MIT" ]
4
2017-11-01T19:24:31.000Z
2018-09-13T00:05:41.000Z
#os.chdir("C:\\Users\\Anna Huang\\Desktop\\cse583\\Movie_Income_Prediction") import requests import json import pandas as pd TMDB_KEY = "60027f35df522f00e57a79b9d3568423" OMDB_KEY = "d3941272" def get_tmdb_id_list(): """function to get all Tmdb_id between 06-16""" import requests year = [2006,2007,2008,2...
33.764706
121
0.606272
import os #os.chdir("C:\\Users\\Anna Huang\\Desktop\\cse583\\Movie_Income_Prediction") import requests import json import pandas as pd from datetime import datetime TMDB_KEY = "60027f35df522f00e57a79b9d3568423" OMDB_KEY = "d3941272" def get_tmdb_id_list(): """function to get all Tmdb_id between 06-16""" impo...
0
0
0
0
0
0
0
-14
70
dd930851fd85d9037b370d90e9b17b90d93d896e
2,719
py
Python
Hackerrank Practice/sub_arr_div.py
falconcode16/pythonprogramming
fc53a879be473ebceb1d7da061b0e8fc2a20706c
[ "MIT" ]
2
2020-04-11T14:15:10.000Z
2020-05-12T09:57:29.000Z
Hackerrank Practice/sub_arr_div.py
falconcode16/pythonprogramming
fc53a879be473ebceb1d7da061b0e8fc2a20706c
[ "MIT" ]
null
null
null
Hackerrank Practice/sub_arr_div.py
falconcode16/pythonprogramming
fc53a879be473ebceb1d7da061b0e8fc2a20706c
[ "MIT" ]
1
2021-10-10T02:13:42.000Z
2021-10-10T02:13:42.000Z
# Link - ''' Given a chocolate bar, two children, Lily and Ron, are determining how to share it. Each of the squares has an integer on it. Lily decides to share a contiguous segment of the bar selected such that: The length of the segment matches Ron's birth month, and, The sum of the integers on the squares is equ...
22.848739
217
0.70982
# Link - ''' Given a chocolate bar, two children, Lily and Ron, are determining how to share it. Each of the squares has an integer on it. Lily decides to share a contiguous segment of the bar selected such that: The length of the segment matches Ron's birth month, and, The sum of the integers on the squares is equ...
0
0
0
0
0
196
0
-41
111
5ba0c5e03b7cee8dff1e5fd9d6656e588de18073
5,596
py
Python
fetch-inputs.py
ollie27/rust_packaging
09f0c1d4824b78581481b85d42a0e5b20bb8059e
[ "Apache-2.0", "MIT" ]
null
null
null
fetch-inputs.py
ollie27/rust_packaging
09f0c1d4824b78581481b85d42a0e5b20bb8059e
[ "Apache-2.0", "MIT" ]
null
null
null
fetch-inputs.py
ollie27/rust_packaging
09f0c1d4824b78581481b85d42a0e5b20bb8059e
[ "Apache-2.0", "MIT" ]
null
null
null
#!/usr/bin/env python2.7 # Copyright 2015 The Rust Project Developers. See the COPYRIGHT # file at the top-level directory of this distribution and at # http://rust-lang.org/COPYRIGHT. # # Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or # http://www.apache.org/licenses/LICENSE-2.0> or the MIT license ...
31.977143
102
0.694246
#!/usr/bin/env python2.7 # Copyright 2015 The Rust Project Developers. See the COPYRIGHT # file at the top-level directory of this distribution and at # http://rust-lang.org/COPYRIGHT. # # Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or # http://www.apache.org/licenses/LICENSE-2.0> or the MIT license ...
0
0
0
0
0
0
0
0
0
8e156006506d47a9f001b4a749016e615c3cc2f0
561
py
Python
src/apps/productividad/migrations/0003_auto_20180827_2135.py
SGC-Tlaxcala/cerebro
6c842f66d849065a70002fccdb1eaca1e3d61d99
[ "MIT" ]
null
null
null
src/apps/productividad/migrations/0003_auto_20180827_2135.py
SGC-Tlaxcala/cerebro
6c842f66d849065a70002fccdb1eaca1e3d61d99
[ "MIT" ]
48
2017-04-21T17:35:23.000Z
2020-08-29T04:19:35.000Z
src/apps/productividad/migrations/0003_auto_20180827_2135.py
SGC-Tlaxcala/cerebro
6c842f66d849065a70002fccdb1eaca1e3d61d99
[ "MIT" ]
null
null
null
# Generated by Django 2.1 on 2018-08-28 02:35
23.375
54
0.595365
# Generated by Django 2.1 on 2018-08-28 02:35 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('productividad', '0002_auto_20180827_2132'), ] operations = [ migrations.AlterField( model_name='historicalpronosticotramites', ...
0
0
0
449
0
0
0
19
46
ff88b48bc1081a3f734f93f25447642abe118b18
118
py
Python
language/calculus/typing/system/unbounded.py
jedhsu/language
3772a4a0ff287e1fc5ebefc716b8d91928d04c72
[ "MIT" ]
null
null
null
language/calculus/typing/system/unbounded.py
jedhsu/language
3772a4a0ff287e1fc5ebefc716b8d91928d04c72
[ "MIT" ]
null
null
null
language/calculus/typing/system/unbounded.py
jedhsu/language
3772a4a0ff287e1fc5ebefc716b8d91928d04c72
[ "MIT" ]
null
null
null
""" Unbounded (unrestricted) type system. """
9.833333
37
0.70339
""" Unbounded (unrestricted) type system. """ from .base import TypeSystem class Unbounded(TypeSystem): pass
0
0
0
16
0
0
0
7
46
6f71a3aa5fd7184fee12ec0438ecf57dabaf6e9e
652
py
Python
TSU_Module/helper_functions.py
TashaSkyUp/HelperFunctions
8f56b8c75a77e19652287d1c15f39b4025250d0d
[ "MIT" ]
null
null
null
TSU_Module/helper_functions.py
TashaSkyUp/HelperFunctions
8f56b8c75a77e19652287d1c15f39b4025250d0d
[ "MIT" ]
null
null
null
TSU_Module/helper_functions.py
TashaSkyUp/HelperFunctions
8f56b8c75a77e19652287d1c15f39b4025250d0d
[ "MIT" ]
null
null
null
"""Helper functions for datascience -By Natasha Upchurch """
26.08
93
0.622699
"""Helper functions for datascience -By Natasha Upchurch """ class HelperFunctions: """Base Class """ def __init__(self): pass @staticmethod def null_count(df): """:param df pandas.DataFrame to count nulls on """ return df.isnull().sum().sum() @staticmethod...
0
446
0
119
0
0
0
0
22
8782a57598680333c28b3014325812bbc57cf4bb
112
py
Python
docker/optimization/pyOpt/tags/v1.2.0/pyOpt/pyNLPQL/__init__.py
liujiamingustc/phd
4f815a738abad43531d02ac66f5bd0d9a1def52a
[ "Apache-2.0" ]
3
2021-01-06T03:01:18.000Z
2022-03-21T03:02:55.000Z
docker/optimization/pyOpt/tags/v1.2.0/pyOpt/pyNLPQL/__init__.py
liujiamingustc/phd
4f815a738abad43531d02ac66f5bd0d9a1def52a
[ "Apache-2.0" ]
null
null
null
docker/optimization/pyOpt/tags/v1.2.0/pyOpt/pyNLPQL/__init__.py
liujiamingustc/phd
4f815a738abad43531d02ac66f5bd0d9a1def52a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python try: __all__ = ['NLPQL'] except: __all__ = [] #end
12.444444
29
0.607143
#!/usr/bin/env python try: from pyNLPQL import NLPQL __all__ = ['NLPQL'] except: __all__ = [] #end
0
0
0
0
0
0
0
4
26
4ad545b2c02a77ee036f954e8084d9bba02cda42
422
py
Python
bebras/2012/2012-SK-02/genImgs.py
davidnarum/bebras-tasks
57deb129451c0b95947e4ac0cac5022759a4095e
[ "MIT" ]
1
2021-05-20T12:01:21.000Z
2021-05-20T12:01:21.000Z
bebras/2012/2012-SK-02/genImgs.py
davidnarum/bebras-tasks
57deb129451c0b95947e4ac0cac5022759a4095e
[ "MIT" ]
1
2019-09-21T02:22:24.000Z
2021-05-29T04:57:27.000Z
bebras/2012/2012-SK-02/genImgs.py
davidnarum/bebras-tasks
57deb129451c0b95947e4ac0cac5022759a4095e
[ "MIT" ]
5
2017-08-14T21:03:48.000Z
2020-11-01T14:29:59.000Z
#! /usr/bin/python3 -B conv = {} conv['2012-SK-02_1-original.png'] = '-quality 50 -colors 50' conv['2012-SK-02_2-original.png'] = '-quality 50 -colors 50' conv['2012-SK-02_3-original.png'] = '-quality 50 -colors 50' conv['2012-SK-02_solution-original.png'] = '-quality 50 -colors 50' if __name__ == '__main__': impor...
30.142857
67
0.661137
#! /usr/bin/python3 -B conv = {} conv['2012-SK-02_1-original.png'] = '-quality 50 -colors 50' conv['2012-SK-02_2-original.png'] = '-quality 50 -colors 50' conv['2012-SK-02_3-original.png'] = '-quality 50 -colors 50' conv['2012-SK-02_solution-original.png'] = '-quality 50 -colors 50' if __name__ == '__main__': impor...
0
0
0
0
0
0
0
-1
25
46639b55a09e27d663ec029ed95824c970f5426a
2,453
py
Python
cleanab/apps/ynab5.py
janw/cleanab
0d97bc976d0a1190d5223ca2eaa0407663e88e59
[ "Apache-2.0" ]
2
2019-10-06T13:52:33.000Z
2021-12-31T19:29:30.000Z
cleanab/apps/ynab5.py
janw/cleanab
0d97bc976d0a1190d5223ca2eaa0407663e88e59
[ "Apache-2.0" ]
null
null
null
cleanab/apps/ynab5.py
janw/cleanab
0d97bc976d0a1190d5223ca2eaa0407663e88e59
[ "Apache-2.0" ]
null
null
null
API_URL = "https://api.youneedabudget.com/v1" Config = NewYnabConfig App = NewYnabApp
31.050633
76
0.688137
from uuid import UUID from pydantic import BaseModel from ynab_api.api_client import ApiClient from ynab_api.apis import AccountsApi, TransactionsApi from ynab_api.configuration import Configuration from ynab_api.model.save_transaction import SaveTransaction from ynab_api.model.save_transactions_wrapper import SaveTra...
0
0
0
1,899
0
0
0
217
246
ad0d7a449179f85b6bdf769833475e3229504dd0
31,686
py
Python
share/newton_base/openoapi/server.py
onap/multicloud-openstack
d0e41eb1b1a1cb79365836da728908ed26253db4
[ "CC-BY-4.0" ]
4
2018-10-24T15:20:14.000Z
2020-03-09T06:29:11.000Z
share/newton_base/openoapi/server.py
onap/multicloud-openstack
d0e41eb1b1a1cb79365836da728908ed26253db4
[ "CC-BY-4.0" ]
null
null
null
share/newton_base/openoapi/server.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 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 or a...
45.008523
114
0.58215
# Copyright (c) 2017 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 or a...
0
0
0
30,367
0
0
0
129
406
ec037f195f7585db9e7c573f4c4b26e9b7dbe185
1,103
py
Python
tsts/losses/mape.py
TakuyaShintate/tsts
483db1edc2f765a5449137446a77acaf17684ce9
[ "MIT" ]
16
2021-08-28T16:15:41.000Z
2022-02-25T09:47:01.000Z
tsts/losses/mape.py
TakuyaShintate/tsts
483db1edc2f765a5449137446a77acaf17684ce9
[ "MIT" ]
null
null
null
tsts/losses/mape.py
TakuyaShintate/tsts
483db1edc2f765a5449137446a77acaf17684ce9
[ "MIT" ]
1
2021-12-05T20:35:38.000Z
2021-12-05T20:35:38.000Z
__all__ = ["MAPE"]
19.350877
70
0.504986
from typing import Any from torch import Tensor from tsts.cfg import CfgNode as CN from tsts.core import LOSSES from .loss import Loss __all__ = ["MAPE"] @LOSSES.register() class MAPE(Loss): """MAPE implementation. Example ------- .. code-block:: yaml LOSSES: NAMES: ["MAPE"] ...
0
922
0
0
0
0
0
25
135
74c13ccf1e85bdd48484e79f7d2b09ce30e7deea
1,167
py
Python
QML_application.py
https-seyhan/EmailAI
6613bd7cdefae9b542452f707756c389f5e08ae2
[ "MIT" ]
null
null
null
QML_application.py
https-seyhan/EmailAI
6613bd7cdefae9b542452f707756c389f5e08ae2
[ "MIT" ]
null
null
null
QML_application.py
https-seyhan/EmailAI
6613bd7cdefae9b542452f707756c389f5e08ae2
[ "MIT" ]
null
null
null
import os, sys, urllib.request, json from PySide6.QtQuick import QQuickView from PySide6.QtCore import QStringListModel, QUrl from PySide6.QtGui import QGuiApplication if __name__ == '__main__': url = "http://country.io/names.json" response = urllib.request.urlopen(url) data = json.loads(response.read()....
28.463415
65
0.691517
import os, sys, urllib.request, json import PySide6.QtQml from PySide6.QtQuick import QQuickView from PySide6.QtCore import QStringListModel, Qt, QUrl from PySide6.QtGui import QGuiApplication if __name__ == '__main__': url = "http://country.io/names.json" response = urllib.request.urlopen(url) data = js...
0
0
0
0
0
0
0
3
22
e5981752a8c1f44e014fe0d2d53ca4f0b5f5e99e
7,134
py
Python
dpm_inference/numpyro_implementation/run_mcmc.py
LaraFuhrmann/dpm_inference
b40be9e1cc230b95075fe2f3ca45b4b9c1ee38eb
[ "Apache-2.0" ]
1
2022-02-17T10:09:03.000Z
2022-02-17T10:09:03.000Z
dpm_inference/numpyro_implementation/run_mcmc.py
LaraFuhrmann/dpm_inference
b40be9e1cc230b95075fe2f3ca45b4b9c1ee38eb
[ "Apache-2.0" ]
null
null
null
dpm_inference/numpyro_implementation/run_mcmc.py
LaraFuhrmann/dpm_inference
b40be9e1cc230b95075fe2f3ca45b4b9c1ee38eb
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import sys # from . import preprocessing # post processing def convert_h_to_seq(h, alphabet): ''' Convert numeric representation to DNA-seq representation. ''' seq = [alphabet[int(h[k])] for k in range(h.shape[0])] return ''.join(seq) if __name__ == '__main__': main(s...
42.464286
182
0.703953
#!/usr/bin/env python3 import numpyro import numpyro.distributions as dist from numpyro.infer import MCMC, NUTS, DiscreteHMCGibbs, Predictive from jax import random import jax import os import sys import preprocessing # from . import preprocessing from ipynb.fs.full.models_NumPyro import model_infiniteSBP, model_finit...
0
0
0
0
0
6,050
0
114
357
65a694e334448e44b4114ed288f1bd9c6b7854ca
945
py
Python
migrations/versions/5896e31725d_add_aggregate_last_b.py
vault-the/changes
37e23c3141b75e4785cf398d015e3dbca41bdd56
[ "Apache-2.0" ]
443
2015-01-03T16:28:39.000Z
2021-04-26T16:39:46.000Z
migrations/versions/5896e31725d_add_aggregate_last_b.py
vault-the/changes
37e23c3141b75e4785cf398d015e3dbca41bdd56
[ "Apache-2.0" ]
12
2015-07-30T19:07:16.000Z
2016-11-07T23:11:21.000Z
migrations/versions/5896e31725d_add_aggregate_last_b.py
vault-the/changes
37e23c3141b75e4785cf398d015e3dbca41bdd56
[ "Apache-2.0" ]
47
2015-01-09T10:04:00.000Z
2020-11-18T17:58:19.000Z
"""Add Aggregate*.last_build_id Revision ID: 5896e31725d Revises: 166d65e5a7e3 Create Date: 2013-12-05 13:50:57.818995 """ # revision identifiers, used by Alembic. revision = '5896e31725d' down_revision = '166d65e5a7e3'
30.483871
101
0.74709
"""Add Aggregate*.last_build_id Revision ID: 5896e31725d Revises: 166d65e5a7e3 Create Date: 2013-12-05 13:50:57.818995 """ # revision identifiers, used by Alembic. revision = '5896e31725d' down_revision = '166d65e5a7e3' from alembic import op import sqlalchemy as sa def upgrade(): op.add_column('aggtestgroup'...
0
0
0
0
0
626
0
3
91
fc1c2c048d348edb62843e0dfb0b2aef620a7730
562
py
Python
spec/profiles_spec.py
gisce/plc800stg
20f59d785294eac9a0d720fdc25b0ca7f64c0039
[ "MIT" ]
null
null
null
spec/profiles_spec.py
gisce/plc800stg
20f59d785294eac9a0d720fdc25b0ca7f64c0039
[ "MIT" ]
null
null
null
spec/profiles_spec.py
gisce/plc800stg
20f59d785294eac9a0d720fdc25b0ca7f64c0039
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- from plc800stg.profiles import PlcProfilesParser from plc800stg.utils import assert_list_dict_eq from ast import literal_eval with description('Parse profiles from PLC800 with plc800stg'): with it('Parsing profiles'): input_profiles_plc = open('spec/data/02CHBascul2002110245.txt').r...
46.833333
96
0.759786
# -*- coding: UTF-8 -*- from plc800stg.profiles import PlcProfilesParser from plc800stg.utils import assert_list_dict_eq from ast import literal_eval with description('Parse profiles from PLC800 with plc800stg'): with it('Parsing profiles'): input_profiles_plc = open('spec/data/02CHBascul2002110245.txt').r...
0
0
0
0
0
0
0
0
0
03cddcfd003e43f3eb9587e3b92fac61461f31b5
3,464
py
Python
plugin.video.gdrive/resources/lib/proxy.py
akuala/REPO.KUALA
ea9a157025530d2ce8fa0d88431c46c5352e89d4
[ "Apache-2.0" ]
2
2018-11-02T19:55:30.000Z
2020-08-14T02:22:20.000Z
plugin.video.gdrive/resources/lib/proxy.py
akuala/REPO.KUALA
ea9a157025530d2ce8fa0d88431c46c5352e89d4
[ "Apache-2.0" ]
null
null
null
plugin.video.gdrive/resources/lib/proxy.py
akuala/REPO.KUALA
ea9a157025530d2ce8fa0d88431c46c5352e89d4
[ "Apache-2.0" ]
3
2019-12-17T20:47:00.000Z
2021-02-11T19:03:59.000Z
''' Copyright (C) 2014-2016 ddurdle This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is di...
32.373832
121
0.619515
''' Copyright (C) 2014-2016 ddurdle This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is di...
0
0
0
2,468
0
0
0
-37
134
e94437117108d1721fc65a055933d0c267c49f17
3,412
py
Python
torch_ecg/augmenters/random_flip.py
DeepPSP/torch_ecg
6db5ffb063d0e8fb4ce97029a0d184a658f43a37
[ "MIT" ]
9
2021-06-26T03:00:55.000Z
2022-03-03T13:43:00.000Z
torch_ecg/augmenters/random_flip.py
wenh06/torch_ecg
a260bac0b4be8cd84c411874af3337358f135442
[ "MIT" ]
1
2021-10-01T09:29:30.000Z
2021-10-02T03:41:55.000Z
torch_ecg/augmenters/random_flip.py
wenh06/torch_ecg
a260bac0b4be8cd84c411874af3337358f135442
[ "MIT" ]
2
2021-04-28T03:13:11.000Z
2021-05-15T14:15:34.000Z
""" """ __all__ = ["RandomFlip",]
34.12
127
0.572392
""" """ from typing import Any, NoReturn, Sequence, Union, Optional, List, Tuple from numbers import Real import numpy as np import torch from torch import Tensor from .base import Augmenter __all__ = ["RandomFlip",] class RandomFlip(Augmenter): """ """ __name__ = "RandomFlip" def __init__(self,...
0
0
0
3,166
0
0
0
51
158
c156ccaeeff5be19cca637b56913fa47fedb7ad7
661
py
Python
src/gui/telegrambot/start_telegrambot.py
kaefik/wtf
74a4e12e0303fc1341838541a418fee011f2d9a7
[ "MIT" ]
null
null
null
src/gui/telegrambot/start_telegrambot.py
kaefik/wtf
74a4e12e0303fc1341838541a418fee011f2d9a7
[ "MIT" ]
null
null
null
src/gui/telegrambot/start_telegrambot.py
kaefik/wtf
74a4e12e0303fc1341838541a418fee011f2d9a7
[ "MIT" ]
null
null
null
import config from tlgbotcore import TlgBotCore import logging logging.basicConfig(level=logging.INFO) tlg = TlgBotCore(session=config.TLG_APP_NAME, plugin_path='plugins_bot', connection_retries=None, api_id=config.TLG_APP_API_ID, api_hash=config.TL...
31.47619
54
0.636914
import config from tlgbotcore import TlgBotCore import logging logging.basicConfig(level=logging.INFO) tlg = TlgBotCore(session=config.TLG_APP_NAME, plugin_path='plugins_bot', connection_retries=None, api_id=config.TLG_APP_API_ID, api_hash=config.TL...
0
0
0
0
0
0
0
0
0
1861ff9634fd9d4216b1dd7bf2c2fec4da7b86f1
214
py
Python
swapping_two_variables.py
srijithmass/Swapping-two-values
331cb6edda1257b9e4c659bdebc889445f432b07
[ "BSD-3-Clause" ]
null
null
null
swapping_two_variables.py
srijithmass/Swapping-two-values
331cb6edda1257b9e4c659bdebc889445f432b07
[ "BSD-3-Clause" ]
null
null
null
swapping_two_variables.py
srijithmass/Swapping-two-values
331cb6edda1257b9e4c659bdebc889445f432b07
[ "BSD-3-Clause" ]
null
null
null
#PYTHON PROGRAM TO SWAP TWO VARIABLES #DESIGNED BY: SRIJITH R #REFERENCE NUMBER: 21004191 x,y=int(input("enter num1")),int(input("enter num2")) print("before swapping",x,y) z=x x=y y=z print("after swapping",x,y)
19.454545
53
0.724299
#PYTHON PROGRAM TO SWAP TWO VARIABLES #DESIGNED BY: SRIJITH R #REFERENCE NUMBER: 21004191 x,y=int(input("enter num1")),int(input("enter num2")) print("before swapping",x,y) z=x x=y y=z print("after swapping",x,y)
0
0
0
0
0
0
0
0
0
b0d8e61953769fab75abaef3ce375929075b012e
3,932
py
Python
Forest-Type-Cover-Prediction/code.py
kadc87/ga-learner-dsmp-repo
d943fcca546a0463744fe8d076aec9c5e5d408c4
[ "MIT" ]
null
null
null
Forest-Type-Cover-Prediction/code.py
kadc87/ga-learner-dsmp-repo
d943fcca546a0463744fe8d076aec9c5e5d408c4
[ "MIT" ]
null
null
null
Forest-Type-Cover-Prediction/code.py
kadc87/ga-learner-dsmp-repo
d943fcca546a0463744fe8d076aec9c5e5d408c4
[ "MIT" ]
null
null
null
# -------------- import pandas as pd #path : File path # Code starts here # read the dataset dataset = pd.read_csv(path) # look at the first five columns dataset.head(5) # Check if there's any column which is not useful and remove it like the column id dataset.drop(columns='Id',inplace=True) # check the statist...
28.70073
138
0.769583
# -------------- import pandas as pd from sklearn import preprocessing #path : File path # Code starts here # read the dataset dataset = pd.read_csv(path) # look at the first five columns dataset.head(5) # Check if there's any column which is not useful and remove it like the column id dataset.drop(columns='Id',...
0
0
0
0
0
0
0
85
44
a0f46c4816d1a0e5f29669a1843721629d74baeb
1,223
py
Python
pyscript/torch/temperature_scaling.py
takuto0831/Competition-utils
c738e199c6a771a0c58b9cd237660bb76b4be4fb
[ "MIT" ]
105
2019-04-09T21:57:51.000Z
2022-03-12T11:39:55.000Z
pyscript/torch/temperature_scaling.py
takuto0831/Competition-utils
c738e199c6a771a0c58b9cd237660bb76b4be4fb
[ "MIT" ]
5
2020-01-10T09:08:05.000Z
2022-02-08T23:14:40.000Z
pyscript/torch/temperature_scaling.py
takuto0831/Competition-utils
c738e199c6a771a0c58b9cd237660bb76b4be4fb
[ "MIT" ]
18
2020-01-12T06:50:41.000Z
2022-02-27T02:21:41.000Z
''' Temperature Scaling https://github.com/gpleiss/temperature_scaling Modified '''
28.44186
78
0.663941
''' Temperature Scaling https://github.com/gpleiss/temperature_scaling Modified ''' import torch from torch import nn, optim from torch.nn import functional as F from sklearn.calibration import calibration_curve class TemperatureScaler(nn.Module): def __init__(self, model, verbose=False): super().__init_...
0
0
0
987
0
0
0
40
111
ece88cbe8fe407e2963f2b75ca2c4b287c30d66c
713
py
Python
analysis/o3.py
rodrigo-fss/python-oam
9ed563f19ab8594993a7df4f971805e9dab385ae
[ "Apache-2.0" ]
10
2022-03-16T22:13:43.000Z
2022-03-17T23:25:51.000Z
analysis/o3.py
rodrigo-fss/python-oam
9ed563f19ab8594993a7df4f971805e9dab385ae
[ "Apache-2.0" ]
null
null
null
analysis/o3.py
rodrigo-fss/python-oam
9ed563f19ab8594993a7df4f971805e9dab385ae
[ "Apache-2.0" ]
null
null
null
import sys import pandas as pd sys.path.insert(0, "../") from oam.score.isolation_path import IsolationPath from oam.search.simple_combination import SimpleCombination from oam.visualization import visualize_oam_results df = pd.read_csv("../datasets/df_outliers.csv") correlation_list = [] ipath = IsolationPath(sub...
22.28125
62
0.720898
import sys import pandas as pd sys.path.insert(0, "../") from oam.score.isolation_path import IsolationPath from oam.search.simple_combination import SimpleCombination from oam.visualization import visualize_oam_results df = pd.read_csv("../datasets/df_outliers.csv") correlation_list = [] ipath = IsolationPath(sub...
0
0
0
0
0
0
0
0
0
1630ed9b26f6b40606397fbf27c3dcf7c5ced032
2,377
py
Python
sanaviron/objects/image.py
StetHD/sanaviron
dcb5d3ac6725771942e669a29961ba3f811b7fd4
[ "Apache-2.0" ]
null
null
null
sanaviron/objects/image.py
StetHD/sanaviron
dcb5d3ac6725771942e669a29961ba3f811b7fd4
[ "Apache-2.0" ]
null
null
null
sanaviron/objects/image.py
StetHD/sanaviron
dcb5d3ac6725771942e669a29961ba3f811b7fd4
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*-
31.693333
67
0.612116
#!/usr/bin/python # -*- coding: utf-8 -*- import os import cairo from object import Object from scale import Scale from objects import * class Image(Object): """This class represents a image""" __name__ = "Image" def __init__(self, image=os.path.join("images", "logo.png")): Object.__init__(self) ...
0
0
0
2,216
0
0
0
-15
134
a6e7384ca5c9841f11e5e8e8cf2582fe5031c0c8
4,052
py
Python
src/sparkle/layout/lane.py
jmscslgroup/sparkle
cbd4e10a41586399e72c62b01c0cdaa837858b44
[ "MIT" ]
null
null
null
src/sparkle/layout/lane.py
jmscslgroup/sparkle
cbd4e10a41586399e72c62b01c0cdaa837858b44
[ "MIT" ]
null
null
null
src/sparkle/layout/lane.py
jmscslgroup/sparkle
cbd4e10a41586399e72c62b01c0cdaa837858b44
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Initial Date: June 2020 # Author: Rahul Bhadani # Copyright (c) Rahul Bhadani, Arizona Board of Regents # All rights reserved. """ This script helps launch a fleet of n cars along x-axis. """ import signal ''' Summary of Class layout: This class requires a ros package 'Sparkle' Attributes: ...
29.362319
286
0.631787
#!/usr/bin/env python # Initial Date: June 2020 # Author: Rahul Bhadani # Copyright (c) Rahul Bhadani, Arizona Board of Regents # All rights reserved. """ This script helps launch a fleet of n cars along x-axis. """ import time import signal import signal import numpy as np import glob import os from .layout impor...
0
0
0
3,375
0
0
0
-38
156
95281346f63de6862c85cfdce6c31ea699c63576
206
py
Python
wuhan/20180329/m3.py
python20180319howmework/homework
c826d7aa4c52f8d22f739feb134d20f0b2c217cd
[ "Apache-2.0" ]
null
null
null
wuhan/20180329/m3.py
python20180319howmework/homework
c826d7aa4c52f8d22f739feb134d20f0b2c217cd
[ "Apache-2.0" ]
null
null
null
wuhan/20180329/m3.py
python20180319howmework/homework
c826d7aa4c52f8d22f739feb134d20f0b2c217cd
[ "Apache-2.0" ]
null
null
null
if __name__=='__main__': a=int(input("")) zs(a)
14.714286
25
0.543689
def zs(num): if num > 1: for i in range(2,num): if num % i == 0: print("不是质数") break else: print("是质数") else: print("不是质数") if __name__=='__main__': a=int(input("请输入一个整数:")) zs(a)
57
0
0
0
0
115
0
0
22