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
67ba5551f79a2e6847c52c0c79a6d8a030c8d2c0
652
py
Python
gdoc/types/units.py
WaffleHacks/sponsor-emails
8811a19b128e73972b11a03f15fc53d1b55fff69
[ "MIT" ]
null
null
null
gdoc/types/units.py
WaffleHacks/sponsor-emails
8811a19b128e73972b11a03f15fc53d1b55fff69
[ "MIT" ]
null
null
null
gdoc/types/units.py
WaffleHacks/sponsor-emails
8811a19b128e73972b11a03f15fc53d1b55fff69
[ "MIT" ]
null
null
null
Dimension.update_forward_refs()
21.032258
109
0.703988
from enum import Enum from pydantic import BaseModel class Direction(str, Enum): """ The text direction of the paragraph/section. If unset, default to `LEFT_TO_RIGHT` since paragraph/section direction is not inherited. """ UNSPECIFIED = "CONTENT_DIRECTION_UNSPECIFIED" LEFT_TO_RIGHT = "LEFT_TO...
0
0
0
493
0
0
0
9
113
a308b6e5ea73c7abeedf147edbe4e4f6f581649b
1,971
py
Python
reading_wolf.py
Xitog/teddy
aaa192bb254d2d76b00d0b869a56dd7d92c9208a
[ "MIT" ]
null
null
null
reading_wolf.py
Xitog/teddy
aaa192bb254d2d76b00d0b869a56dd7d92c9208a
[ "MIT" ]
null
null
null
reading_wolf.py
Xitog/teddy
aaa192bb254d2d76b00d0b869a56dd7d92c9208a
[ "MIT" ]
null
null
null
import os os.chdir(r'C:\Temp\Wolfenstein') print(os.getcwd()) CHAR8 = 1 INT16 = 2 INT32 = 4 f = open('MAPHEAD-1.2.WL1', 'rb') h = f.read() f.close() magic = h[0:0+INT16] # uint16le = 2x8 print(magic == b'\xcd\xab') ptr = h[2:INT32 * 100 + 2] levels = [] for i in range(100): levels.append(int.from_bytes(ptr[i*INT...
25.597403
82
0.559614
import os os.chdir(r'C:\Temp\Wolfenstein') print(os.getcwd()) CHAR8 = 1 INT16 = 2 INT32 = 4 f = open('MAPHEAD-1.2.WL1', 'rb') h = f.read() f.close() magic = h[0:0+INT16] # uint16le = 2x8 print(magic == b'\xcd\xab') ptr = h[2:INT32 * 100 + 2] levels = [] for i in range(100): levels.append(int.from_bytes(ptr[i*INT...
0
0
0
0
0
0
0
0
0
207334fb0604683530e1d47e6bbe23be43adb6dc
1,970
py
Python
2021/day8-seven-segment-search/part2.py
MartinPetkov/AdventOfCode
092f804fda8b831e08ff93b7d3f140554bdebd78
[ "MIT" ]
null
null
null
2021/day8-seven-segment-search/part2.py
MartinPetkov/AdventOfCode
092f804fda8b831e08ff93b7d3f140554bdebd78
[ "MIT" ]
null
null
null
2021/day8-seven-segment-search/part2.py
MartinPetkov/AdventOfCode
092f804fda8b831e08ff93b7d3f140554bdebd78
[ "MIT" ]
null
null
null
# Run as: # python3 part1.py [input|sample] if __name__ == '__main__': main()
26.621622
75
0.556345
# Run as: # python3 part1.py [input|sample] import sys def solve(data): # Displays can be represented as sets of segments. # Part 1 is pretty simple, just count unique numbers of digits. numsum = 0 for line in data.splitlines(): line = line.strip() keys, output = line.split('|') keys = [''.join(...
0
0
0
0
0
1,829
0
-11
69
c31381c112442920471ccab9c5da29a5fd4d2686
11,904
py
Python
enterprise_outliers/base.py
nanograv/enterprise_outliers
b9e354eae0a0872b218a3d39181ebdb2eb58344c
[ "MIT" ]
null
null
null
enterprise_outliers/base.py
nanograv/enterprise_outliers
b9e354eae0a0872b218a3d39181ebdb2eb58344c
[ "MIT" ]
null
null
null
enterprise_outliers/base.py
nanograv/enterprise_outliers
b9e354eae0a0872b218a3d39181ebdb2eb58344c
[ "MIT" ]
2
2022-02-02T21:08:20.000Z
2022-02-08T21:11:03.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Contains base class for computing the log likeihood and gradient for a single pulsar, including an outlier parameter to detect outlying TOAs. Any coordinate transformations to be applied build off of this base class. Class methods include computing white noise vectors...
37.316614
94
0.583417
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Contains base class for computing the log likeihood and gradient for a single pulsar, including an outlier parameter to detect outlying TOAs. Any coordinate transformations to be applied build off of this base class. Class methods include computing white noise vectors...
0
0
0
11,021
0
0
0
37
113
a6b5b260c928ef1376c822c1980bee3f398f545e
37,510
py
Python
numdoclint/py_module.py
peterprescott/numdoclint
ab9aad01b50c5060373d28bbf5930d2509f2228a
[ "MIT" ]
4
2020-01-01T16:10:44.000Z
2022-01-06T11:30:12.000Z
numdoclint/py_module.py
peterprescott/numdoclint
ab9aad01b50c5060373d28bbf5930d2509f2228a
[ "MIT" ]
28
2019-06-25T12:05:04.000Z
2022-03-25T16:37:05.000Z
numdoclint/py_module.py
peterprescott/numdoclint
ab9aad01b50c5060373d28bbf5930d2509f2228a
[ "MIT" ]
1
2022-03-16T13:09:03.000Z
2022-03-16T13:09:03.000Z
"""A module that checks docstrings in Python files. """ import inspect import os import sys from typing import Any, Dict, List, Tuple from numdoclint import helper VERBOSE_DISABLED: int = 0 VERBOSE_ENABLED: int = 1 def check_python_module( py_module_path: str, verbose: int = 1, ignore_func_name_pre...
35.253759
78
0.656305
"""A module that checks docstrings in Python files. """ import inspect import os import sys from typing import Any, Dict, List, Tuple from numdoclint import helper VERBOSE_DISABLED: int = 0 VERBOSE_ENABLED: int = 1 def check_python_module( py_module_path: str, verbose: int = 1, ignore_func_name_pre...
0
0
0
0
0
0
0
0
0
a030f846825e8eeeca1e5e9e2eb6b7adbfb565e9
18,013
py
Python
runtime/pylibs/fffix.py
blapplejuice/ByteClient
5f04232468dfe5b609c043e3d4b094ff667d9c51
[ "MIT" ]
1
2021-03-24T12:20:04.000Z
2021-03-24T12:20:04.000Z
runtime/pylibs/fffix.py
blapplejuice/ByteClient
5f04232468dfe5b609c043e3d4b094ff667d9c51
[ "MIT" ]
null
null
null
runtime/pylibs/fffix.py
blapplejuice/ByteClient
5f04232468dfe5b609c043e3d4b094ff667d9c51
[ "MIT" ]
2
2021-03-27T15:43:42.000Z
2021-03-27T15:50:42.000Z
# -*- coding: utf-8 -*- """ Created on Thu Jan 19 16:29:03 2012 Rewritten on Tue July 28 13:09:00 2015 @author: Fesh0r, LexManos @version: v7.0 """ import re """ This processes a FernFlower output file and fixes some of the common decompiler mistakes. Making the output code cleaner and less errornious. This takes ad...
41.409195
192
0.558541
# -*- coding: utf-8 -*- """ Created on Thu Jan 19 16:29:03 2012 Rewritten on Tue July 28 13:09:00 2015 @author: Fesh0r, LexManos @version: v7.0 """ import sys import os import fnmatch import shutil import re import zipfile import time from contextlib import closing from optparse import OptionParser from pprint impor...
0
0
0
23
0
10,292
0
-30
456
fa5da1ccccc0c859e7639b9ea8f3bc0a30005533
10,288
py
Python
powerbox/dft.py
LBJ-Wade/powerbox
491047f2cac516dc800fc9a3ef052ced8d0805fe
[ "MIT" ]
null
null
null
powerbox/dft.py
LBJ-Wade/powerbox
491047f2cac516dc800fc9a3ef052ced8d0805fe
[ "MIT" ]
null
null
null
powerbox/dft.py
LBJ-Wade/powerbox
491047f2cac516dc800fc9a3ef052ced8d0805fe
[ "MIT" ]
null
null
null
r""" A module defining some "nicer" fourier transform functions. We define only two functions -- an arbitrary-dimension forward transform, and its inverse. In each case, the transform is designed to replicate the continuous transform. That is, the transform is volume-normalised and obeys correct Fourier conventions. ...
37.275362
143
0.669421
r""" A module defining some "nicer" fourier transform functions. We define only two functions -- an arbitrary-dimension forward transform, and its inverse. In each case, the transform is designed to replicate the continuous transform. That is, the transform is volume-normalised and obeys correct Fourier conventions. ...
0
0
0
0
0
387
0
121
126
5ff03d842471ecd75c168d00b8ab838656c6348b
4,054
py
Python
Thonny/Lib/site-packages/thonny/misc_utils.py
byache/thonny
197925d51be64bc1ff1f8488d3755697f5121025
[ "MIT" ]
null
null
null
Thonny/Lib/site-packages/thonny/misc_utils.py
byache/thonny
197925d51be64bc1ff1f8488d3755697f5121025
[ "MIT" ]
null
null
null
Thonny/Lib/site-packages/thonny/misc_utils.py
byache/thonny
197925d51be64bc1ff1f8488d3755697f5121025
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*-
33.229508
107
0.628022
# -*- coding: utf-8 -*- import os.path import platform import sys import shutil import time def eqfn(name1, name2): return os.path.normcase(name1) == os.path.normcase(name2) def delete_dir_try_hard(path, hardness=5): # Deleting the folder on Windows is not so easy task # http://bugs.python.org/issue1549...
0
0
0
0
0
3,679
0
-42
389
723bd7a77cfb386ce7f3ca3ab6750787850d3d93
1,088
py
Python
scripts/mingchao_na_xie_shi.py
feihong/chinese-ebooks
6d9a87ffdce3c48be2df9c898aba26252477d473
[ "MIT" ]
null
null
null
scripts/mingchao_na_xie_shi.py
feihong/chinese-ebooks
6d9a87ffdce3c48be2df9c898aba26252477d473
[ "MIT" ]
4
2021-03-31T20:04:28.000Z
2022-02-14T01:19:49.000Z
scripts/mingchao_na_xie_shi.py
feihong/chinese-ebooks
6d9a87ffdce3c48be2df9c898aba26252477d473
[ "MIT" ]
null
null
null
urls = """ http://www.kanunu8.com/files/chinese/201102/1777.html http://www.kanunu8.com/files/chinese/201102/1778.html http://www.kanunu8.com/files/chinese/201102/1766.html http://www.kanunu8.com/files/chinese/201102/1779.html http://www.kanunu8.com/files/chinese/201102/1780.html http://www.kanunu8.com/files/chinese/...
31.085714
68
0.6875
from pathlib import Path from shu.kanunu import make_ebook urls = """ http://www.kanunu8.com/files/chinese/201102/1777.html http://www.kanunu8.com/files/chinese/201102/1778.html http://www.kanunu8.com/files/chinese/201102/1766.html http://www.kanunu8.com/files/chinese/201102/1779.html http://www.kanunu8.com/files/chi...
30
0
0
0
0
323
0
15
67
838648a969babbdce0c75dac07163e4602ce471f
37,631
py
Python
tests/acceptance/test_job.py
dkmeena/amazon-s3-find-and-forget
8af4791e3f7f78373553c21afd680633a973434f
[ "Apache-2.0" ]
165
2020-05-29T08:12:17.000Z
2022-03-30T22:35:57.000Z
tests/acceptance/test_job.py
dkmeena/amazon-s3-find-and-forget
8af4791e3f7f78373553c21afd680633a973434f
[ "Apache-2.0" ]
101
2020-06-24T12:59:49.000Z
2022-03-28T13:32:15.000Z
tests/acceptance/test_job.py
dkmeena/amazon-s3-find-and-forget
8af4791e3f7f78373553c21afd680633a973434f
[ "Apache-2.0" ]
23
2020-06-18T10:53:49.000Z
2022-03-29T03:38:04.000Z
import pytest pytestmark = [ pytest.mark.acceptance, pytest.mark.jobs, pytest.mark.usefixtures("empty_jobs"), ]
32.580952
88
0.634131
import json import tempfile import uuid import mock import pytest from decimal import Decimal from tests.acceptance import query_json_file, query_parquet_file, download_and_decrypt pytestmark = [ pytest.mark.acceptance, pytest.mark.jobs, pytest.mark.usefixtures("empty_jobs"), ] @pytest.mark.auth @pytes...
0
5,666
0
0
0
30,975
0
35
801
f9bd986c64f216197ab301c5a0c4d0e755eae759
4,093
py
Python
TVShow/TVShow.py
nvzard/SpoilerAlert
7e17d696764b21a9d59751229702ba1a995e8f1e
[ "MIT" ]
null
null
null
TVShow/TVShow.py
nvzard/SpoilerAlert
7e17d696764b21a9d59751229702ba1a995e8f1e
[ "MIT" ]
1
2018-10-18T04:08:46.000Z
2018-10-18T04:08:46.000Z
TVShow/TVShow.py
nvzard/SpoilerAlert
7e17d696764b21a9d59751229702ba1a995e8f1e
[ "MIT" ]
null
null
null
NO_INFORMATION = 'Sorry, no info about the next episode of {} is available yet.' SHOW_FINISHED = 'The show has finished streaming all its episodes. (No further information available)' WRONG_SHOW_NAME = '**ERROR** The TV Show name you entered is not correct.' DATES_FOUND = 'Brace yourself, the next epsiode(i.e. {}) wi...
29.875912
102
0.591498
import requests from bs4 import BeautifulSoup NO_INFORMATION = 'Sorry, no info about the next episode of {} is available yet.' SHOW_FINISHED = 'The show has finished streaming all its episodes. (No further information available)' WRONG_SHOW_NAME = '**ERROR** The TV Show name you entered is not correct.' DATES_FOUND ...
0
2,901
0
767
0
0
0
2
68
c03da008712ec98f9a1ee9c956f81e7ee137f28f
4,697
py
Python
main/perl/template.py
chimera-linux/cports
37888f8ded3e6afc1a42227a4019bc25e2456afc
[ "BSD-2-Clause" ]
46
2021-06-10T02:27:32.000Z
2022-03-27T11:33:24.000Z
main/perl/template.py
chimera-linux/cports
37888f8ded3e6afc1a42227a4019bc25e2456afc
[ "BSD-2-Clause" ]
58
2021-07-03T13:58:20.000Z
2022-03-13T16:45:35.000Z
main/perl/template.py
chimera-linux/cports
37888f8ded3e6afc1a42227a4019bc25e2456afc
[ "BSD-2-Clause" ]
6
2021-07-04T10:46:40.000Z
2022-01-09T00:03:59.000Z
pkgname = "perl" pkgver = "5.34.0" pkgrel = 0 _perl_cross_ver = "1.3.6" build_style = "gnu_configure" make_cmd = "gmake" make_check_target = "test" hostmakedepends = ["gmake", "less"] makedepends = ["zlib-devel", "libbz2-devel"] checkdepends = ["iana-etc", "perl-AnyEvent", "perl-Test-Pod", "procps-ng"] depends = ["less...
31.52349
113
0.611667
pkgname = "perl" pkgver = "5.34.0" pkgrel = 0 _perl_cross_ver = "1.3.6" build_style = "gnu_configure" make_cmd = "gmake" make_check_target = "test" hostmakedepends = ["gmake", "less"] makedepends = ["zlib-devel", "libbz2-devel"] checkdepends = ["iana-etc", "perl-AnyEvent", "perl-Test-Pod", "procps-ng"] depends = ["less...
0
0
0
0
0
3,447
0
0
115
4c4e027cb757f11f7934d560f620b03fa848721d
481
py
Python
10 min email.py
Veda-Verse/Beginners-Python-Projects
e6fd21d490de6cd9efb0747bce42f31dc1987d24
[ "MIT" ]
1
2022-01-07T14:32:16.000Z
2022-01-07T14:32:16.000Z
10 min email.py
Veda-Verse/Beginners-Python-Projects
e6fd21d490de6cd9efb0747bce42f31dc1987d24
[ "MIT" ]
null
null
null
10 min email.py
Veda-Verse/Beginners-Python-Projects
e6fd21d490de6cd9efb0747bce42f31dc1987d24
[ "MIT" ]
null
null
null
import random print('''Which type of e-mail you want? --> G-mail(g) OR --> Ramdom email(r)''') value1="qwertyuiopasdfghjklzxcvbnm" e1=random.choice(value1) e2=random.choice(value1) e3=random.choice(value1) e4=random.choice(value1) e5=random.choice(value1) a=input() if a=='r': ...
22.904762
61
0.598753
import random print('''Which type of e-mail you want? --> G-mail(g) OR --> Ramdom email(r)''') value1="qwertyuiopasdfghjklzxcvbnm" e1=random.choice(value1) e2=random.choice(value1) e3=random.choice(value1) e4=random.choice(value1) e5=random.choice(value1) a=input() if a=='r': ...
0
0
0
0
0
0
0
0
0
80020286c83b7bf2636a30b3a38d489fc946c257
6,863
py
Python
src/accounts/forms.py
sudipbhujel/election-v3
0b1d80543dfcd02022ae8080d20f942f67a40147
[ "MIT" ]
2
2021-06-04T01:23:46.000Z
2021-07-29T03:30:54.000Z
src/accounts/forms.py
sudipbhujel/election-v3
0b1d80543dfcd02022ae8080d20f942f67a40147
[ "MIT" ]
null
null
null
src/accounts/forms.py
sudipbhujel/election-v3
0b1d80543dfcd02022ae8080d20f942f67a40147
[ "MIT" ]
1
2021-07-29T03:31:02.000Z
2021-07-29T03:31:02.000Z
# Admin form # Admin form # User signup form # User login form # Authentication form # Password change form # Password reset request form # class set password form
34.315
125
0.660061
from django import forms from django.contrib.auth.forms import (AuthenticationForm, PasswordChangeForm, ReadOnlyPasswordHashField) from django.db.models import Q from .models import User, UserFaceImage from .utils import base64_file from accounts.models import Profile from PIL im...
0
0
0
6,152
0
0
0
176
355
cd198e199cc4ced6ddc56c8b59951de5183ae871
1,235
py
Python
mineral/distributions/gaussians/tanh_gaussian.py
brandontrabucco/jetpack
aa60488788b2e6fe1d09727943be043158a7af09
[ "MIT" ]
5
2019-07-14T07:34:32.000Z
2019-08-16T17:41:13.000Z
mineral/distributions/gaussians/tanh_gaussian.py
brandontrabucco/mineral
aa60488788b2e6fe1d09727943be043158a7af09
[ "MIT" ]
7
2019-08-16T21:48:26.000Z
2022-02-09T23:30:47.000Z
mineral/distributions/gaussians/tanh_gaussian.py
brandontrabucco/jetpack
aa60488788b2e6fe1d09727943be043158a7af09
[ "MIT" ]
null
null
null
"""Author: Brandon Trabucco, Copyright 2019"""
24.7
89
0.564372
"""Author: Brandon Trabucco, Copyright 2019""" import tensorflow as tf from abc import ABC from mineral.distributions.gaussians.gaussian import Gaussian class TanhGaussian(Gaussian, ABC): def get_log_probs( self, x, *inputs, **kwargs ): x = tf.clip_by...
0
0
0
1,047
0
0
0
40
96
988a6bf3e7baf63c206320fcd2910c692651786d
1,362
py
Python
tests/integration_tests/analysis_tests.py
ljhOfGithub/mythril
7f543571643685595ade954ba6c6315d5f748730
[ "MIT" ]
1,887
2018-01-07T10:16:08.000Z
2022-03-31T16:07:26.000Z
tests/integration_tests/analysis_tests.py
ljhOfGithub/mythril
7f543571643685595ade954ba6c6315d5f748730
[ "MIT" ]
746
2018-01-09T07:14:01.000Z
2022-03-31T08:12:44.000Z
tests/integration_tests/analysis_tests.py
ljhOfGithub/mythril
7f543571643685595ade954ba6c6315d5f748730
[ "MIT" ]
431
2018-01-08T07:47:59.000Z
2022-03-31T13:00:51.000Z
from tests import PROJECT_DIR MYTH = str(PROJECT_DIR / "myth") test_data = ( ( "flag_array.sol.o", { "TX_COUNT": 1, "TX_OUTPUT": 1, "MODULE": "EtherThief", "ISSUE_COUNT": 1, "ISSUE_NUMBER": 0, }, "0xab1258580000000000000000...
28.978723
143
0.582966
import pytest import json import sys from subprocess import check_output from tests import PROJECT_DIR, TESTDATA MYTH = str(PROJECT_DIR / "myth") test_data = ( ( "flag_array.sol.o", { "TX_COUNT": 1, "TX_OUTPUT": 1, "MODULE": "EtherThief", "ISSUE_COUN...
0
640
0
0
0
0
0
-5
112
dd66e173dc655013269638b1f8d3c70a02876138
1,275
py
Python
monasca_api/common/messaging/message_formats/metrics.py
MheniMerz/monasca-api
9c0892a58622082ed8baf81ee2f621cc68f5b42c
[ "Apache-2.0" ]
50
2015-10-18T02:54:52.000Z
2021-12-05T07:54:08.000Z
monasca_api/common/messaging/message_formats/metrics.py
MheniMerz/monasca-api
9c0892a58622082ed8baf81ee2f621cc68f5b42c
[ "Apache-2.0" ]
13
2015-10-29T12:54:07.000Z
2021-09-02T06:17:42.000Z
monasca_api/common/messaging/message_formats/metrics.py
MheniMerz/monasca-api
9c0892a58622082ed8baf81ee2f621cc68f5b42c
[ "Apache-2.0" ]
81
2015-10-21T07:43:30.000Z
2022-01-07T03:35:05.000Z
# Copyright 2014 Hewlett-Packard # # 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...
37.5
78
0.700392
# Copyright 2014 Hewlett-Packard # # 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
580
0
45
69
e301aed21b710e3734f47586b402777c7c89ada2
1,119
py
Python
tracklist2playlist/tracklist2playlist_sources/livetracklist.py
pratikbhadane24/tracklist2playlist
2762256d1a5cb76a01679c430c880a15ba9a1cf6
[ "MIT" ]
null
null
null
tracklist2playlist/tracklist2playlist_sources/livetracklist.py
pratikbhadane24/tracklist2playlist
2762256d1a5cb76a01679c430c880a15ba9a1cf6
[ "MIT" ]
1
2021-02-09T12:38:36.000Z
2021-02-09T12:38:36.000Z
tracklist2playlist/tracklist2playlist_sources/livetracklist.py
pratikbhadane24/tracklist2playlist
2762256d1a5cb76a01679c430c880a15ba9a1cf6
[ "MIT" ]
2
2021-01-06T06:10:16.000Z
2021-02-09T12:29:31.000Z
''' module for scraping Livetracklist Page and give an Iterable '''
28.692308
82
0.605004
''' module for scraping Livetracklist Page and give an Iterable ''' from typing import Iterable from bs4 import BeautifulSoup import requests class Livetracklist: ''' Livetracklist.com Scraper ''' def __init__(self, url: str): self.res = requests.get(url) self.soup = BeautifulSoup(self....
0
0
0
954
0
0
0
8
89
f9cc88194436ea4e71cf2ccbc6b40525e94235db
944
py
Python
oslo-modules/oslo_messaging/rpc/__init__.py
esse-io/zen-common
8ede82ab81bad53c3b947084b812c44e329f159b
[ "Apache-2.0" ]
5
2017-03-21T09:11:55.000Z
2018-11-19T14:44:36.000Z
tools/dockerize/webportal/usr/lib/python2.7/site-packages/oslo_messaging/rpc/__init__.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
3
2018-02-06T06:17:10.000Z
2020-07-10T17:29:47.000Z
tools/dockerize/webportal/usr/lib/python2.7/site-packages/oslo_messaging/rpc/__init__.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
7
2018-02-06T03:54:13.000Z
2021-09-08T10:51:38.000Z
# Copyright 2013 Red Hat, 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 agr...
28.606061
78
0.700212
# Copyright 2013 Red Hat, 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 agr...
0
0
0
0
0
0
0
4
67
9788a4ad4704c2402932fa387411e942e2ef52e7
17,391
py
Python
ush/link_fix.py
EdwardSnyder-NOAA/regional_workflow
737c687ff4f0cd821897cd47979f7d114f6267a4
[ "CC0-1.0" ]
2
2022-02-01T19:11:25.000Z
2022-02-01T19:11:27.000Z
ush/link_fix.py
EdwardSnyder-NOAA/regional_workflow
737c687ff4f0cd821897cd47979f7d114f6267a4
[ "CC0-1.0" ]
53
2022-02-01T18:10:46.000Z
2022-03-31T23:57:20.000Z
ush/link_fix.py
EdwardSnyder-NOAA/regional_workflow
737c687ff4f0cd821897cd47979f7d114f6267a4
[ "CC0-1.0" ]
7
2022-02-01T17:43:42.000Z
2022-03-31T18:43:55.000Z
#!/usr/bin/env python3 import os import glob from python_utils import import_vars, print_input_args, print_info_msg, print_err_msg_exit, create_symlink_to_file, check_var_valid_value, cd_vrfy, find_pattern_in_str def link_fix(verbose, file_group): """ This file defines a function that ... Args: verbos...
44.364796
104
0.58237
#!/usr/bin/env python3 import unittest import os import glob from python_utils import import_vars, set_env_var, print_input_args, \ print_info_msg, print_err_msg_exit, create_symlink_to_file, \ define_macos_utilities, check_var_valid_value, \ ...
0
0
0
1,021
0
0
0
124
49
554ce5c2fe87c2ce14e0d73235c934eb49e456c4
431
py
Python
s06_classes_intro/star_square.py
silverfield/pythonsessions
bf5d82dded7616a5d6998da4eb445708c728794f
[ "MIT" ]
null
null
null
s06_classes_intro/star_square.py
silverfield/pythonsessions
bf5d82dded7616a5d6998da4eb445708c728794f
[ "MIT" ]
null
null
null
s06_classes_intro/star_square.py
silverfield/pythonsessions
bf5d82dded7616a5d6998da4eb445708c728794f
[ "MIT" ]
null
null
null
my_first_square = StarSquare(7) my_first_square.print() my_first_square.change_n(5) my_first_square.print() my_second_square = StarSquare(2) my_second_square.print()
21.55
35
0.607889
class StarSquare: def __init__(self, n): self.n = n def print(self): for i in range(self.n): for j in range(self.n): print('*', end='') print() def change_n(self, new_n): self.n = new_n my_first_square = StarSquare(7) my_first_square.print()...
0
0
0
242
0
0
0
0
22
1c4eff879f1039c5666f9bb19662bd8ee3b634a1
938
py
Python
Image detection/imgtag.py
kakul/Article-Extraction
a8a9a432fe86dd94a6108b08a64cb749b5db1df6
[ "MIT" ]
null
null
null
Image detection/imgtag.py
kakul/Article-Extraction
a8a9a432fe86dd94a6108b08a64cb749b5db1df6
[ "MIT" ]
null
null
null
Image detection/imgtag.py
kakul/Article-Extraction
a8a9a432fe86dd94a6108b08a64cb749b5db1df6
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import matplotlib.patches as mp from skimage.filter import threshold_otsu from skimage.morphology import square, label, binary_erosion from skimage.color import label2rgb, rgb2gray from skimage.segmentation import clear_border from skimage.measure import regionprops fr...
29.3125
93
0.769723
import numpy as np import matplotlib.pyplot as plt import matplotlib.patches as mp from skimage.filter.rank import entropy,otsu from skimage.filter import threshold_otsu from skimage.morphology import square,rectangle,label,closing,disk,binary_erosion,opening from skimage.color import label2rgb,rgb2gray from skimage.se...
0
0
0
0
0
0
0
51
22
763dafd85a61d2fb57e1ea0c97dadc4187c31894
1,887
py
Python
ansible_collections/arista/avd/plugins/filter/add_md_toc.py
ccsnw/ansible-avd
90bf4124a1a405077768b649f6d28a59b0162c8d
[ "Apache-2.0" ]
null
null
null
ansible_collections/arista/avd/plugins/filter/add_md_toc.py
ccsnw/ansible-avd
90bf4124a1a405077768b649f6d28a59b0162c8d
[ "Apache-2.0" ]
1
2021-12-16T08:37:38.000Z
2021-12-16T09:19:10.000Z
ansible_collections/arista/avd/plugins/filter/add_md_toc.py
ccsnw/ansible-avd
90bf4124a1a405077768b649f6d28a59b0162c8d
[ "Apache-2.0" ]
1
2022-02-01T11:17:20.000Z
2022-02-01T11:17:20.000Z
# # def arista.avd.add_md_toc # from __future__ import (absolute_import, division, print_function) __metaclass__ = type from jinja2.runtime import Undefined from io import StringIO import sys import re try: import md_toc HAS_MD_TOC = True except ImportError: HAS_MD_TOC = False def add_md_toc(md_input, sk...
24.828947
111
0.6407
# # def arista.avd.add_md_toc # from __future__ import (absolute_import, division, print_function) __metaclass__ = type from jinja2.runtime import Undefined from io import StringIO import sys import re try: import md_toc HAS_MD_TOC = True except ImportError: HAS_MD_TOC = False def add_md_toc(md_input, sk...
0
0
0
94
0
0
0
0
23
c48a660619bf0c86271a9fee78663a9862630a19
258
py
Python
scripts/copy_files_single_dir.py
megh1241/python-blockset
362b7b38316f4874724388cfb683e4bbdbf86e40
[ "Apache-2.0" ]
null
null
null
scripts/copy_files_single_dir.py
megh1241/python-blockset
362b7b38316f4874724388cfb683e4bbdbf86e40
[ "Apache-2.0" ]
null
null
null
scripts/copy_files_single_dir.py
megh1241/python-blockset
362b7b38316f4874724388cfb683e4bbdbf86e40
[ "Apache-2.0" ]
null
null
null
import shutil import sys num_copies = int(sys.argv[1]) original_dir = sys.argv[2] pack_filename = sys.argv[3] for i in range(num_copies): shutil.copy2(original_dir + pack_filename + '.bin', original_dir+pack_filename + str(i) + '.bin' )
21.5
106
0.709302
import shutil import sys import os num_copies = int(sys.argv[1]) original_dir = sys.argv[2] pack_filename = sys.argv[3] for i in range(num_copies): shutil.copy2(original_dir + pack_filename + '.bin', original_dir+pack_filename + str(i) + '.bin' )
0
0
0
0
0
0
0
-12
22
b410704fa597511c34a81c00f93307f9c566a39d
814
py
Python
server/app/machine/proc.py
fengyuewuya/multi_job
676bbdaf8f712c6e0fa86cb8c8d6d6cd0717c729
[ "MIT" ]
null
null
null
server/app/machine/proc.py
fengyuewuya/multi_job
676bbdaf8f712c6e0fa86cb8c8d6d6cd0717c729
[ "MIT" ]
null
null
null
server/app/machine/proc.py
fengyuewuya/multi_job
676bbdaf8f712c6e0fa86cb8c8d6d6cd0717c729
[ "MIT" ]
null
null
null
import app.utils as utils
42.842105
108
0.657248
import time from app import app, db, cache from app.models import Machine import app.utils as utils @cache.cached(timeout=3) # limit_time 为检测多久时间间隔内的机器 , offline_time 表示超过offline_time 时间,判断为失联 def get_machine_info(limit_time=60, offline_time=5): begin_time = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(time.ti...
99
659
0
0
0
0
0
8
88
dfe87adc55f4cacc7d96646adad97e3a2048c241
7,359
py
Python
scripts/densepose_rt.py
MXHsj/AR_Ultrasound_Guidance
87ae7f101926abd7a8c16734ca663502f89a8fa0
[ "MIT" ]
null
null
null
scripts/densepose_rt.py
MXHsj/AR_Ultrasound_Guidance
87ae7f101926abd7a8c16734ca663502f89a8fa0
[ "MIT" ]
null
null
null
scripts/densepose_rt.py
MXHsj/AR_Ultrasound_Guidance
87ae7f101926abd7a8c16734ca663502f89a8fa0
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 # import matplotlib.pyplot as plt if __name__ == "__main__": main()
30.6625
89
0.56081
#! /usr/bin/env python3 import numpy as np from cv2 import aruco # import matplotlib.pyplot as plt import csv from cv2 import cv2 def multidim_intersect(arr1, arr2): arr1_view = arr1.view([('', arr1.dtype)]*arr1.shape[1]) arr2_view = arr2.view([('', arr2.dtype)]*arr2.shape[1]) intersected = np.intersect1d...
0
0
0
0
0
6,973
0
-16
295
801556a795f7da7db6984abbb4e92ac01997de8c
163
py
Python
simplePub.py
josiasMO/mqttPubSub
7517e7698df58dff1a0cb39c023bf8f7093256b7
[ "MIT" ]
null
null
null
simplePub.py
josiasMO/mqttPubSub
7517e7698df58dff1a0cb39c023bf8f7093256b7
[ "MIT" ]
null
null
null
simplePub.py
josiasMO/mqttPubSub
7517e7698df58dff1a0cb39c023bf8f7093256b7
[ "MIT" ]
null
null
null
import paho.mqtt.client as mqtt mqttc = mqtt.Client("C1") mqttc.connect("test.mosquitto.org", 1883) mqttc.publish("topic/yourTopic", "Hello world") mqttc.loop(2)
23.285714
47
0.742331
import paho.mqtt.client as mqtt mqttc = mqtt.Client("C1") mqttc.connect("test.mosquitto.org", 1883) mqttc.publish("topic/yourTopic", "Hello world") mqttc.loop(2)
0
0
0
0
0
0
0
0
0
d2d7017b64c5339b6a483c8c1ac6f7e3c2e45243
604
py
Python
scripts/vulnerabilities_json.py
sunbeam891/Smart_contract_fuzzing
327873f562028fb3ea241fb0c1dc0f039e8c005d
[ "MIT" ]
1
2021-04-01T09:33:58.000Z
2021-04-01T09:33:58.000Z
scripts/vulnerabilities_json.py
sunbeam891/Smart_contract_fuzzing
327873f562028fb3ea241fb0c1dc0f039e8c005d
[ "MIT" ]
2
2021-11-09T03:25:40.000Z
2021-11-09T06:23:45.000Z
scripts/vulnerabilities_json.py
sunbeam891/Smart_contract_fuzzing
327873f562028fb3ea241fb0c1dc0f039e8c005d
[ "MIT" ]
null
null
null
#Script_json_maker_vulnerabilities_adder0.4 codecov="-" Branchcov="-" Vulnerability_detected="No" #Read from file Vulnerabilities_detected = [] #Vulnerabilities_detected = ",".join(Vulnerabilities_detected) File_path= "vuln_json.json"
31.789474
93
0.710265
#Script_json_maker_vulnerabilities_adder0.4 import json codecov="-" Branchcov="-" Vulnerability_detected="No" #Read from file Vulnerabilities_detected = [] #Vulnerabilities_detected = ",".join(Vulnerabilities_detected) File_path= "vuln_json.json" def vuln_Jsonmaker(): Dict={} if len(Vulnerabilities_detected)=...
0
0
0
0
0
334
0
-10
45
88901be64aa2b818677e48049967f0ff9adf4c25
501
py
Python
USV_V1/applications/sailing_robot_control/src/sailing_robot/src/sailing_robot/make_ros_tasks.py
supcon-nzic/-
52c97759f97f3222ca5465a5745842cfeb7f26a1
[ "Apache-2.0" ]
2
2020-07-16T03:15:10.000Z
2020-09-02T09:06:36.000Z
USV_V1/applications/sailing_robot_control/src/sailing_robot/src/sailing_robot/make_ros_tasks.py
supcon-nzic/-
52c97759f97f3222ca5465a5745842cfeb7f26a1
[ "Apache-2.0" ]
null
null
null
USV_V1/applications/sailing_robot_control/src/sailing_robot/src/sailing_robot/make_ros_tasks.py
supcon-nzic/-
52c97759f97f3222ca5465a5745842cfeb7f26a1
[ "Apache-2.0" ]
1
2021-01-20T12:47:14.000Z
2021-01-20T12:47:14.000Z
import make_tasks def expand_ros_task(taskdict, nav, name = '', index = None): """ Turn a task dict from params (or from tasks_from_wps) into a task object """ task = make_tasks.expand_task(taskdict, nav, name, index) return task
31.3125
102
0.692615
import expand_task_dict import make_tasks def expand_ros_task(taskdict, nav, name = '', index = None): """ Turn a task dict from params (or from tasks_from_wps) into a task object """ task = make_tasks.expand_task(taskdict, nav, name, index) return task def make_ros_tasks(wp_params, nav, nam...
0
0
0
0
0
197
0
2
45
8a1647a817bd62261a513a05f792b605993d211c
1,056
py
Python
tools/perf/benchmarks/memory.py
sunjc53yy/chromium
049b380040949089c2a6e447b0cd0ac3c4ece38e
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
tools/perf/benchmarks/memory.py
sunjc53yy/chromium
049b380040949089c2a6e447b0cd0ac3c4ece38e
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
tools/perf/benchmarks/memory.py
sunjc53yy/chromium
049b380040949089c2a6e447b0cd0ac3c4ece38e
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
# Copyright 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file.
25.756098
72
0.787879
# Copyright 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from measurements import memory import page_sets from telemetry import benchmark @benchmark.Enabled('android') class MemoryMobile(benchmark.Benchmark): t...
0
692
0
0
0
0
0
15
182
52862560af3c95776dad7b35fb91cfa01548b706
2,849
py
Python
model/roi_layers/RoIPooling2D.py
hktxt/fasterrcnn
c7de01afd78bd99737c80035843cd6e7e483b911
[ "MIT" ]
null
null
null
model/roi_layers/RoIPooling2D.py
hktxt/fasterrcnn
c7de01afd78bd99737c80035843cd6e7e483b911
[ "MIT" ]
null
null
null
model/roi_layers/RoIPooling2D.py
hktxt/fasterrcnn
c7de01afd78bd99737c80035843cd6e7e483b911
[ "MIT" ]
null
null
null
import torch.nn as nn CUDA_NUM_THREADS = 1024 Stream = namedtuple('Stream', ['ptr'])
33.916667
79
0.586873
import torch import torch.nn as nn from torch.autograd import Function import cupy from string import Template @cupy.util.memoize(for_each_device=True) def load_kernel(kernel_name, code, **kwargs): cp.cuda.runtime.free(0) code = Template(code).substitute(**kwargs) kernel_code = cupy.cuda.compile_with_cach...
3
242
0
2,289
0
45
0
1
180
7c268958c79671d505cf9da93efb5f13ee5feace
273
py
Python
salt/runners/fileserver.py
gotcha/salt
7b84c704777d3d2062911895dc3fdf93d40e9848
[ "Apache-2.0" ]
2
2019-03-30T02:12:56.000Z
2021-03-08T18:59:46.000Z
salt/runners/fileserver.py
epoelke/salt
80ae64e54f9f336d3cdb6e03e42f2a50469ec8f2
[ "Apache-2.0" ]
null
null
null
salt/runners/fileserver.py
epoelke/salt
80ae64e54f9f336d3cdb6e03e42f2a50469ec8f2
[ "Apache-2.0" ]
1
2020-12-04T11:28:06.000Z
2020-12-04T11:28:06.000Z
''' Directly manage the salt fileserver plugins ''' # Import salt libs import salt.fileserver def update(): ''' Execute an update for all of the configured fileserver backends ''' fileserver = salt.fileserver.Fileserver(__opts__) fileserver.update()
18.2
67
0.70696
''' Directly manage the salt fileserver plugins ''' # Import salt libs import salt.fileserver def update(): ''' Execute an update for all of the configured fileserver backends ''' fileserver = salt.fileserver.Fileserver(__opts__) fileserver.update()
0
0
0
0
0
0
0
0
0
e92d68bb2ce99de0f5d7f0a4b03a00c287f55c51
350
py
Python
course_factory/maths_director.py
rotimiakanni/cgpa_calculator
82139f999c7b45ab21f9100d6a0d7b6e9f3c241c
[ "MIT" ]
null
null
null
course_factory/maths_director.py
rotimiakanni/cgpa_calculator
82139f999c7b45ab21f9100d6a0d7b6e9f3c241c
[ "MIT" ]
null
null
null
course_factory/maths_director.py
rotimiakanni/cgpa_calculator
82139f999c7b45ab21f9100d6a0d7b6e9f3c241c
[ "MIT" ]
null
null
null
"maths director class that aggregates the course builder"
25
57
0.634286
"maths director class that aggregates the course builder" from course_factory.course_builder import CourseBuilder class MathsDirector: "maths director class" @staticmethod def construct(score, gp): return CourseBuilder('Maths').\ set_score(score).\ set_gp(gp).\ ...
0
155
0
57
0
0
0
34
46
42aabe0c0e2b991df14f432c7583a06c3aaabfcd
4,817
py
Python
utils/match_layer.py
MiHuangLan/reader
5dfa3dc7e6f14129dc41f9227d391efdb4ae6ac5
[ "MIT" ]
null
null
null
utils/match_layer.py
MiHuangLan/reader
5dfa3dc7e6f14129dc41f9227d391efdb4ae6ac5
[ "MIT" ]
null
null
null
utils/match_layer.py
MiHuangLan/reader
5dfa3dc7e6f14129dc41f9227d391efdb4ae6ac5
[ "MIT" ]
null
null
null
# -*- coding:utf8 -*- # ============================================================================== # Copyright 2017 Baidu.com, Inc. 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 th...
47.693069
96
0.586672
# -*- coding:utf8 -*- # ============================================================================== # Copyright 2017 Baidu.com, Inc. 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 th...
0
0
0
3,836
0
0
0
12
114
a2f5f908274c0bb7f837eefdccca98b2e1e43276
2,526
py
Python
matgendb/alchemy/transmuters.py
Tinaatucsd/pymatgen-db
e1fc46b7df8bea8455e7290ae3eea6fd297a09f3
[ "MIT" ]
null
null
null
matgendb/alchemy/transmuters.py
Tinaatucsd/pymatgen-db
e1fc46b7df8bea8455e7290ae3eea6fd297a09f3
[ "MIT" ]
null
null
null
matgendb/alchemy/transmuters.py
Tinaatucsd/pymatgen-db
e1fc46b7df8bea8455e7290ae3eea6fd297a09f3
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ This module implements a version of pymatgen's Transmuter to generate TransformedStructures from DB data sources. They enable the high-throughput generation of new structures and input files. """ from __future__ import division __author__ = "Shyue Ping Ong" __copyright__ = "Copyright 2012,...
36.608696
79
0.617181
#!/usr/bin/env python """ This module implements a version of pymatgen's Transmuter to generate TransformedStructures from DB data sources. They enable the high-throughput generation of new structures and input files. """ from __future__ import division __author__ = "Shyue Ping Ong" __copyright__ = "Copyright 2012,...
0
0
0
1,914
0
0
0
70
90
4e192adfff1ea69307af3a832c10d3a1bcf403bf
1,473
py
Python
blog/templatetags/blog_tags.py
nimapmi/Django_try001
bd607745e4a261ceb466c67959f79d01a8b1d386
[ "MIT" ]
null
null
null
blog/templatetags/blog_tags.py
nimapmi/Django_try001
bd607745e4a261ceb466c67959f79d01a8b1d386
[ "MIT" ]
null
null
null
blog/templatetags/blog_tags.py
nimapmi/Django_try001
bd607745e4a261ceb466c67959f79d01a8b1d386
[ "MIT" ]
null
null
null
from django import template register = template.Library()
22.318182
73
0.693143
from django import template from blog.models import Post, Category, Comment register = template.Library() @register.simple_tag def func1() : return 'Hello world ! ' @register.simple_tag(name='counter') def func2() : posts = Post.objects.filter(status=1).count() return posts @register.simple_tag(name='...
0
1,168
0
0
0
0
0
26
206
104c7415141030a4387197a0bfae3fe7b003bf9e
2,641
py
Python
graph/migrations/0001_initial.py
preetikansal24/GraphAssignment
7c912bda0ec6da3b8df6a31b07c2f4b33b277f7d
[ "MIT" ]
null
null
null
graph/migrations/0001_initial.py
preetikansal24/GraphAssignment
7c912bda0ec6da3b8df6a31b07c2f4b33b277f7d
[ "MIT" ]
null
null
null
graph/migrations/0001_initial.py
preetikansal24/GraphAssignment
7c912bda0ec6da3b8df6a31b07c2f4b33b277f7d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals
34.298701
80
0.51117
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ] operations = [ migrations.CreateModel( name='Graph', fields=[ ('created_at', models.DateFiel...
0
0
0
2,511
0
0
0
19
46
ec18a4161998ee67ecfe1c4f8b31c3837214a419
1,733
py
Python
futaba/navi/factory.py
Hoffs/futaba
4d07c421c4229c81ddd42da1a49594b8cf11832d
[ "MIT" ]
23
2018-09-17T09:06:27.000Z
2021-05-27T15:21:37.000Z
futaba/navi/factory.py
Hoffs/futaba
4d07c421c4229c81ddd42da1a49594b8cf11832d
[ "MIT" ]
257
2018-08-18T21:27:54.000Z
2020-12-29T23:27:10.000Z
futaba/navi/factory.py
Hoffs/futaba
4d07c421c4229c81ddd42da1a49594b8cf11832d
[ "MIT" ]
22
2018-09-09T09:03:13.000Z
2021-11-09T03:34:34.000Z
# # cogs/navi/task/factory.py # # futaba - A Discord Mod bot for the Programming server # Copyright (c) 2017-2020 Jake Richardson, Ammon Smith, jackylam5 # # futaba is available free of charge under the terms of the MIT # License. You are free to redistribute and/or modify it under those # terms. It is distributed in t...
30.403509
82
0.738027
# # cogs/navi/task/factory.py # # futaba - A Discord Mod bot for the Programming server # Copyright (c) 2017-2020 Jake Richardson, Ammon Smith, jackylam5 # # futaba is available free of charge under the terms of the MIT # License. You are free to redistribute and/or modify it under those # terms. It is distributed in t...
0
0
0
0
0
621
0
-7
46
f9df28fa45863f8cf16638c848e38cf0c3f710cd
2,034
py
Python
Project Euler/problem93.py
GSam/CodeJam
725915e6466e777f3413b9ab36a1b30378d073c0
[ "MIT" ]
null
null
null
Project Euler/problem93.py
GSam/CodeJam
725915e6466e777f3413b9ab36a1b30378d073c0
[ "MIT" ]
null
null
null
Project Euler/problem93.py
GSam/CodeJam
725915e6466e777f3413b9ab36a1b30378d073c0
[ "MIT" ]
null
null
null
import itertools maxCount = 0 per = None set = set() for permutation in itertools.combinations([1,2,3,4,5,6,7,8,9], 4): permutation = list(permutation) set.clear() generate([False, False, False, False, True, True, True], 0, "", permutation[:]) generate([False, False, False, True, False, True, True], ...
27.863014
83
0.466568
import itertools def generate(li, pos, z, nums = [1,2,3,4,5,6,7,8,9]): if (pos > 6): i = evaluate(z) set.add(i) return if (li[pos]): for x in ['+','-','*','/']: generate(li, pos+1, z + x, nums) else: for x in xrange(len(nums)): num = nums[:] ...
0
0
0
0
0
965
0
0
58
9a665018bc426e9c6a725723069c7c42f4829bca
757
py
Python
dataset/dataloader.py
Glaciohound/VCML
5a0f01a0baba238cef2f63131fccd412e3d7822b
[ "MIT" ]
52
2019-12-04T22:26:56.000Z
2022-03-31T17:04:15.000Z
dataset/dataloader.py
guxiwuruo/VCML
5a0f01a0baba238cef2f63131fccd412e3d7822b
[ "MIT" ]
6
2020-08-25T07:35:14.000Z
2021-09-09T04:57:09.000Z
dataset/dataloader.py
guxiwuruo/VCML
5a0f01a0baba238cef2f63131fccd412e3d7822b
[ "MIT" ]
5
2020-02-10T07:39:24.000Z
2021-06-23T02:53:42.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # File : dataloader.py # Author : Chi Han, Jiayuan Mao # Email : haanchi@gmail.com, maojiayuan@gmail.com # Date : 23.07.2019 # Last Modified Date: 19.11.2019 # Last Modified By : Chi Han # # This file is part of the VCML co...
26.103448
61
0.570674
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # File : dataloader.py # Author : Chi Han, Jiayuan Mao # Email : haanchi@gmail.com, maojiayuan@gmail.com # Date : 23.07.2019 # Last Modified Date: 19.11.2019 # Last Modified By : Chi Han # # This file is part of the VCML co...
0
0
0
0
0
333
0
18
46
9436acff3d30bbd6cd6bd0c8e21d97ea0e0dc3e9
22,525
py
Python
src/graph_trainer.py
googleinterns/nlu-seq2graph
64730f48e56319dbd87641a50023aa37665eaeb6
[ "Apache-2.0" ]
null
null
null
src/graph_trainer.py
googleinterns/nlu-seq2graph
64730f48e56319dbd87641a50023aa37665eaeb6
[ "Apache-2.0" ]
null
null
null
src/graph_trainer.py
googleinterns/nlu-seq2graph
64730f48e56319dbd87641a50023aa37665eaeb6
[ "Apache-2.0" ]
null
null
null
"""Copyright 2020 Google LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distr...
39.937943
157
0.620644
"""Copyright 2020 Google LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distr...
0
3,388
0
0
0
16,680
0
141
559
e2bacab390c5a6f79c30f941aceb94413d5ceb66
13,562
py
Python
senlin/tests/test_rpc_client.py
tengqm/senlin
aa59c55c098abb13590bc4308c753338ce4a70f4
[ "Apache-2.0" ]
2
2015-02-11T23:02:13.000Z
2021-03-26T06:39:58.000Z
senlin/tests/test_rpc_client.py
tengqm/senlin
aa59c55c098abb13590bc4308c753338ce4a70f4
[ "Apache-2.0" ]
2
2015-01-19T13:40:47.000Z
2015-03-04T07:06:07.000Z
senlin/tests/test_rpc_client.py
tengqm/senlin
aa59c55c098abb13590bc4308c753338ce4a70f4
[ "Apache-2.0" ]
5
2015-01-13T14:53:04.000Z
2015-03-13T02:54:06.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 unde...
33.989975
78
0.573957
# 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 unde...
0
0
0
12,673
0
0
0
96
201
d1bcf8c7938493b001ce644755715b1e9fabfe26
3,972
py
Python
pyexamon.py
JRogerInfo/pyexamon
f410be5159e9b42d1a6b24324cac558d2f982730
[ "BSD-3-Clause" ]
null
null
null
pyexamon.py
JRogerInfo/pyexamon
f410be5159e9b42d1a6b24324cac558d2f982730
[ "BSD-3-Clause" ]
null
null
null
pyexamon.py
JRogerInfo/pyexamon
f410be5159e9b42d1a6b24324cac558d2f982730
[ "BSD-3-Clause" ]
null
null
null
import time # Settings section ############################################################################### # InfluxDB connection influx_db = { 'host': '127.0.0.1', 'port': '8086', 'user': 'root', 'pass': 'root', 'db' : 'pyexamon' } # Exasol DB(s) connection exasol_dbs = { ...
27.020408
120
0.508056
import pyexasol import time from influxdb import InfluxDBClient # Settings section ############################################################################### # InfluxDB connection influx_db = { 'host': '127.0.0.1', 'port': '8086', 'user': 'root', 'pass': 'root', 'db' : 'pyexamon...
0
0
0
0
0
1,866
0
8
146
956bf69f5b09548d6588349c9eff8919b348746d
672
py
Python
setup.py
matteosandrin/nyu-mytime-cli
3272df99e59532bbb70d11a12fe0ff0982e400ed
[ "MIT" ]
null
null
null
setup.py
matteosandrin/nyu-mytime-cli
3272df99e59532bbb70d11a12fe0ff0982e400ed
[ "MIT" ]
null
null
null
setup.py
matteosandrin/nyu-mytime-cli
3272df99e59532bbb70d11a12fe0ff0982e400ed
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages with open("README.md", "r") as fh: long_description = fh.read() setup( name="nyumytimecli", version="0.0.4", author="Matteo Sandrin", long_description=long_description, long_description_content_type="text/markdown", description="A command-line interface for NY...
24.888889
81
0.735119
from setuptools import setup, find_packages with open("README.md", "r") as fh: long_description = fh.read() setup( name="nyumytimecli", version="0.0.4", author="Matteo Sandrin", long_description=long_description, long_description_content_type="text/markdown", description="A command-line interface for NY...
0
0
0
0
0
0
0
0
0
7204bad0b8edf8d9fa9203911090c70597b8cf76
560
py
Python
cogs/balance.py
ByronDJMackinnon/EconomyBot
6fe95fdfcf852ee07610a85d36dd988b196f841b
[ "MIT" ]
null
null
null
cogs/balance.py
ByronDJMackinnon/EconomyBot
6fe95fdfcf852ee07610a85d36dd988b196f841b
[ "MIT" ]
null
null
null
cogs/balance.py
ByronDJMackinnon/EconomyBot
6fe95fdfcf852ee07610a85d36dd988b196f841b
[ "MIT" ]
null
null
null
# Standard Imports # 3rd Party Imports # Custom Imports
23.333333
65
0.680357
# Standard Imports # 3rd Party Imports import discord from discord.ext import commands # Custom Imports from database import Database from finance import Finances class Balance(commands.Cog): def __init__(self, bot): self.bot = bot @commands.command(name="balance", aliases=["bal"]) async def _ba...
0
239
0
86
0
24
0
19
134
1b1411cce49c72236bdd9177ff371f184182f1da
195
py
Python
PYTHON/practice/day7_arrays.py
Web-Dev-Collaborative/DS-ALGO-OFFICIAL
6d7195d33c28a0fe22f12231efffb39f4bf05c97
[ "Apache-2.0" ]
13
2021-03-11T00:25:22.000Z
2022-03-19T00:19:23.000Z
PYTHON/practice/day7_arrays.py
Web-Dev-Collaborative/DS-ALGO-OFFICIAL
6d7195d33c28a0fe22f12231efffb39f4bf05c97
[ "Apache-2.0" ]
162
2021-03-09T01:52:11.000Z
2022-03-12T01:09:07.000Z
PYTHON/practice/day7_arrays.py
Web-Dev-Collaborative/DS-ALGO-OFFICIAL
6d7195d33c28a0fe22f12231efffb39f4bf05c97
[ "Apache-2.0" ]
12
2021-04-26T19:43:01.000Z
2022-01-31T08:36:29.000Z
#!/bin/python3 n = int(input().strip()) arr = [int(arr_temp) for arr_temp in input().strip().split(" ")] arr.reverse() arrstring = " ".join(str(e) for e in arr) print(arrstring)
13.928571
64
0.641026
#!/bin/python3 import sys n = int(input().strip()) arr = [int(arr_temp) for arr_temp in input().strip().split(" ")] arr.reverse() arrstring = " ".join(str(e) for e in arr) print(arrstring)
0
0
0
0
0
0
0
-11
23
b85f19d29b79defa10493bdbaa4a1b237cb2a9ee
12,282
py
Python
tensorflow/contrib/image/python/kernel_tests/distort_image_ops_test.py
ryorda/tensorflow-viennacl
054b515feec0a3fca4cfb1f29adbf423c9027c3a
[ "Apache-2.0" ]
522
2016-06-08T02:15:50.000Z
2022-03-02T05:30:36.000Z
tensorflow/contrib/image/python/kernel_tests/distort_image_ops_test.py
ryorda/tensorflow-viennacl
054b515feec0a3fca4cfb1f29adbf423c9027c3a
[ "Apache-2.0" ]
48
2016-07-26T00:11:55.000Z
2022-02-23T13:36:33.000Z
tensorflow/contrib/image/python/kernel_tests/distort_image_ops_test.py
ryorda/tensorflow-viennacl
054b515feec0a3fca4cfb1f29adbf423c9027c3a
[ "Apache-2.0" ]
108
2016-06-16T15:34:05.000Z
2022-03-12T13:23:11.000Z
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the 'License'); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
36.230088
80
0.631168
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the 'License'); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
0
0
0
10,492
0
0
0
288
462
95c2f07b380f0c4b8b9d19f4830a901ce4565f44
3,486
py
Python
droplet.py
uggla/lab_droplet
5fb6388e16aa84215f7329b5972a8a5b49ff9308
[ "Apache-2.0" ]
null
null
null
droplet.py
uggla/lab_droplet
5fb6388e16aa84215f7329b5972a8a5b49ff9308
[ "Apache-2.0" ]
null
null
null
droplet.py
uggla/lab_droplet
5fb6388e16aa84215f7329b5972a8a5b49ff9308
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- if __name__ == "__main__": main()
29.05
113
0.60786
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import digitalocean import os import random import sys import time import requests def wait_completion(droplet): status = '' actions = droplet.get_actions() while status != 'completed': for action in actions: action.load() # o...
0
0
0
0
0
3,099
0
-49
340
955895afd045d781683f82efa084c45a5f4f4fe8
3,852
py
Python
build/lib.win-amd64-3.8/kitconc/py_wordlist.py
ilexistools/kitconc
695c01cef606d7b03e725b91d101ae2152f60f43
[ "MIT" ]
3
2018-07-07T00:36:10.000Z
2021-11-21T13:49:42.000Z
build/lib.win-amd64-3.8/kitconc/py_wordlist.py
ilexistools/kitconc
695c01cef606d7b03e725b91d101ae2152f60f43
[ "MIT" ]
null
null
null
build/lib.win-amd64-3.8/kitconc/py_wordlist.py
ilexistools/kitconc
695c01cef606d7b03e725b91d101ae2152f60f43
[ "MIT" ]
1
2022-02-21T10:04:48.000Z
2022-02-21T10:04:48.000Z
# -*- coding: utf-8 -*- # Author: jlopes@usp.br
35.666667
110
0.566978
# -*- coding: utf-8 -*- # Author: jlopes@usp.br import os import pickle import numpy as np import re def load_dict(dict_path): with open(dict_path,'rb') as fh: d = pickle.load(fh) return d def save_dict(dict_d,dict_path): with open(dict_path,'wb') as fh: pickle.dump(dict_d,fh) def co...
0
0
0
0
0
3,638
0
-35
190
ca0fd0bd727c9ca0972ec2632e4b64584db611e2
2,454
py
Python
stickerfinder/telegram/callback_handlers/menu.py
fan-tom/sticker-finder
b917c99871740ec3c11511ffb0062837f57ec8d6
[ "MIT" ]
null
null
null
stickerfinder/telegram/callback_handlers/menu.py
fan-tom/sticker-finder
b917c99871740ec3c11511ffb0062837f57ec8d6
[ "MIT" ]
null
null
null
stickerfinder/telegram/callback_handlers/menu.py
fan-tom/sticker-finder
b917c99871740ec3c11511ffb0062837f57ec8d6
[ "MIT" ]
null
null
null
from stickerfinder.i18n import i18n from stickerfinder.logic.tag import handle_next from stickerfinder.enum import TagMode from stickerfinder.helper.display import (get_settings_text, get_help_text_and_keyboard) from stickerfinder.telegram.keyboard import (get_main_keyboard, get_donation_keyboard, get_settings_keyboard...
27.573034
85
0.706601
from stickerfinder.i18n import i18n from stickerfinder.logic.tag import handle_next from stickerfinder.enum import TagMode from stickerfinder.helper.display import ( get_settings_text, get_help_text_and_keyboard, ) from stickerfinder.telegram.keyboard import ( get_main_keyboard, get_donation_keyboard, ...
0
0
0
0
0
228
0
30
23
085fe9cb161cf08d62956278d903a7b9610003db
870
py
Python
src/whiten.py
PacktPublishing/Cleaning-Data-for-Effective-Data-Science
e1a0a12158183cdcd15bc2cc8d987a59db41a797
[ "MIT" ]
54
2021-04-09T04:29:07.000Z
2022-03-26T03:15:21.000Z
src/whiten.py
miteng1211/Cleaning-Data-for-Effective-Data-Science
e1a0a12158183cdcd15bc2cc8d987a59db41a797
[ "MIT" ]
1
2021-05-05T20:57:36.000Z
2021-05-05T20:57:36.000Z
src/whiten.py
miteng1211/Cleaning-Data-for-Effective-Data-Science
e1a0a12158183cdcd15bc2cc8d987a59db41a797
[ "MIT" ]
32
2021-04-13T19:52:08.000Z
2022-02-27T15:12:31.000Z
import numpy as np data = make_data(angle=-np.pi/4)
22.894737
58
0.562069
import numpy as np import matplotlib.pyplot as plt def cart2pol(x, y): rho = np.sqrt(x**2 + y**2) phi = np.arctan2(y, x) return rho, phi def pol2cart(rho, phi): x = rho * np.cos(phi) y = rho * np.sin(phi) return x, y def rotate(x, y, angle=-np.pi/4): rho, phi = cart2pol(x, y) phi += a...
0
0
0
0
0
666
0
10
141
3aad77cd13312174e8a2573277301c981e0c635e
795
py
Python
setup.py
david-luk4s/pandabase
422d4c39b39dbf507efabff70163bae9f657d821
[ "MIT" ]
27
2019-09-11T18:54:13.000Z
2021-05-25T12:43:45.000Z
setup.py
david-luk4s/pandabase
422d4c39b39dbf507efabff70163bae9f657d821
[ "MIT" ]
9
2019-10-28T06:36:36.000Z
2020-09-12T04:56:27.000Z
setup.py
david-luk4s/pandabase
422d4c39b39dbf507efabff70163bae9f657d821
[ "MIT" ]
6
2019-09-17T16:22:30.000Z
2021-06-17T08:53:07.000Z
from setuptools import setup with open("README.md", "r") as readme: long_description = readme.read() setup( version='0.5.0', author='Sam Beck', author_email='notsambeck@gmail.com', name='pandabase', packages=['pandabase'], description="pandabase links pandas DataFrames to SQL databases. Up...
29.444444
110
0.63522
from setuptools import setup with open("README.md", "r") as readme: long_description = readme.read() setup( version='0.5.0', author='Sam Beck', author_email='notsambeck@gmail.com', name='pandabase', packages=['pandabase'], description="pandabase links pandas DataFrames to SQL databases. Up...
0
0
0
0
0
0
0
0
0
78f9f5591e4633016e6b644429d34f17d234a397
25,594
py
Python
will/backends/io_adapters/slack.py
peterstarback/will
949f9c821578865d08a907e5937e94a5e8a9a6db
[ "MIT" ]
null
null
null
will/backends/io_adapters/slack.py
peterstarback/will
949f9c821578865d08a907e5937e94a5e8a9a6db
[ "MIT" ]
null
null
null
will/backends/io_adapters/slack.py
peterstarback/will
949f9c821578865d08a907e5937e94a5e8a9a6db
[ "MIT" ]
null
null
null
SLACK_SEND_URL = "https://slack.com/api/chat.postMessage" SLACK_SET_TOPIC_URL = "https://slack.com/api/channels.setTopic" SLACK_PRIVATE_SET_TOPIC_URL = "https://slack.com/api/groups.setTopic"
40.754777
160
0.529851
import json import logging import random import re import requests import sys import time import traceback from websocket import WebSocketConnectionClosedException from markdownify import MarkdownConverter from will import settings from .base import IOBackend from will.utils import Bunch, UNSURE_REPLIES, clean_for_pi...
0
602
0
24,152
0
0
0
176
467
3fc0ea60ecc6683dedc199b2299d804886ef2777
2,213
py
Python
Taller-de-Estrucuras-de-Control-Repeticion/ejercicio 11-12.py
Davidpadilla1234/Taller-de-Estrucuras-de-Control-Repeticion
5fd3f058a8007e6e6d886959149c7d5e42f26a3a
[ "MIT" ]
null
null
null
Taller-de-Estrucuras-de-Control-Repeticion/ejercicio 11-12.py
Davidpadilla1234/Taller-de-Estrucuras-de-Control-Repeticion
5fd3f058a8007e6e6d886959149c7d5e42f26a3a
[ "MIT" ]
null
null
null
Taller-de-Estrucuras-de-Control-Repeticion/ejercicio 11-12.py
Davidpadilla1234/Taller-de-Estrucuras-de-Control-Repeticion
5fd3f058a8007e6e6d886959149c7d5e42f26a3a
[ "MIT" ]
null
null
null
consumir = int ( input ( "Consumir licor? Digite 1 para si y 2 para No: " )) agr = 0 Ron = 0 cuello uterino = 0 teq = 0 whi = 0 otro = 0 licor = 0 listaco = [] listaco . agregar ( consumir ) listalicor = [] listaa os = [ ] listacv = [] listawhi = [] listam = [] listaf = [] listap = [] mientras que es ...
34.578125
131
0.445097
consumir = int ( input ( "¿Consumir licor? Digite 1 para si y 2 para No: " )) agr = 0 Ron = 0 cuello uterino = 0 teq = 0 whi = 0 otro = 0 licor = 0 listaco = [] listaco . agregar ( consumir ) listalicor = [] listaa ños = [ ] listacv = [] listawhi = [] listam = [] listaf = [] listap = [] mientras que e...
32
0
0
0
0
0
0
0
0
9aff1aaf0f46707dc885d8762f4b23af8d11c443
25,962
py
Python
toontown/toonbase/UserFunnel.py
SuperM0use24/TT-CL-Edition
fdad8394f0656ae122b687d603f72afafd220c65
[ "MIT" ]
null
null
null
toontown/toonbase/UserFunnel.py
SuperM0use24/TT-CL-Edition
fdad8394f0656ae122b687d603f72afafd220c65
[ "MIT" ]
1
2021-06-08T17:16:48.000Z
2021-06-08T17:16:48.000Z
toontown/toonbase/UserFunnel.py
SuperM0use24/TT-CL-Edition
fdad8394f0656ae122b687d603f72afafd220c65
[ "MIT" ]
3
2021-06-03T05:36:36.000Z
2021-06-22T15:07:31.000Z
from direct.directnotify.DirectNotifyGlobal import directNotify notify = directNotify.newCategory('UserFunnel')
36.982906
432
0.555042
import os, sys, socket, random from urllib import quote_plus from panda3d.core import HTTPClient, HTTPCookie, URLSpec, Ramfile, Ostream, HTTPDate, DocumentSpec from direct.task.Task import Task from direct.directnotify.DirectNotifyGlobal import directNotify notify = directNotify.newCategory('UserFunnel') class UserFun...
0
0
0
18,977
0
6,272
0
106
479
294b59e064ef5c00d57978ef15c6acfd16e1da33
672
py
Python
budgets/admin.py
thomasmeagher/Casper
8a5d332f317694eb627bdac132acb4547d6fdb4b
[ "Apache-2.0" ]
null
null
null
budgets/admin.py
thomasmeagher/Casper
8a5d332f317694eb627bdac132acb4547d6fdb4b
[ "Apache-2.0" ]
null
null
null
budgets/admin.py
thomasmeagher/Casper
8a5d332f317694eb627bdac132acb4547d6fdb4b
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin from .models import Budget, Category, Transaction admin.site.register(Budget, BudgetAdmin) admin.site.register(Category, CategoryAdmin) admin.site.register(Transaction, TransactionAdmin)
26.88
81
0.703869
from django.contrib import admin from .models import Budget, Category, Transaction class BudgetAdmin(admin.ModelAdmin): list_display = ('user', 'amount', 'category',) class CategoryAdmin(admin.ModelAdmin): list_display = ('name',) class TransactionAdmin(admin.ModelAdmin): fieldsets = [ (None,...
0
0
0
378
0
0
0
0
69
6bcf03d748c44a411fd363cf11bba71ec75d569a
377
py
Python
Leetcode/Python/reverseInteger.py
abdzitter/Daily-Coding-DS-ALGO-Practice
26ddbf7a3673608039a07d26d812fce31b69871a
[ "MIT" ]
289
2021-05-15T22:56:03.000Z
2022-03-28T23:13:25.000Z
Leetcode/Python/reverseInteger.py
abdzitter/Daily-Coding-DS-ALGO-Practice
26ddbf7a3673608039a07d26d812fce31b69871a
[ "MIT" ]
1,812
2021-05-09T13:49:58.000Z
2022-01-15T19:27:17.000Z
Leetcode/Python/reverseInteger.py
abdzitter/Daily-Coding-DS-ALGO-Practice
26ddbf7a3673608039a07d26d812fce31b69871a
[ "MIT" ]
663
2021-05-09T16:57:58.000Z
2022-03-27T14:15:07.000Z
#Problem link : https://leetcode.com/problems/reverse-integer/ num = int(input()) print(reverse(num)) #Example test case # Input : 123 # Output : 321 # Input : - 123 # Output : -321
16.391304
62
0.554377
#Problem link : https://leetcode.com/problems/reverse-integer/ def reverse(x): s = str(abs(x)) ans = int (s[::-1]) if (ans > (pow(2,31)-1) or ans < pow(2,-31)): return 0 elif (x >= 0): return ans return ans - 2*ans num = int(input()) print(reverse(num)) #Example test case # Inp...
0
0
0
0
0
166
0
0
22
b97c913eda9106e216b0d13bff667793a2fa5ac0
1,105
py
Python
how-to-use-azureml/work-with-data/datadrift-tutorial/get_data.py
lobrien/MachineLearningNotebooks
a56b69448c070b243125b66c303ba670a5a157c7
[ "MIT" ]
3,074
2018-09-22T18:05:18.000Z
2022-03-31T10:20:53.000Z
how-to-use-azureml/work-with-data/datadrift-tutorial/get_data.py
vijetajo/MachineLearningNotebooks
7e2c1ca152e280dc544f3c9654e9906a7f17c89b
[ "MIT" ]
1,328
2018-09-25T19:18:22.000Z
2022-03-30T22:56:38.000Z
how-to-use-azureml/work-with-data/datadrift-tutorial/get_data.py
vijetajo/MachineLearningNotebooks
7e2c1ca152e280dc544f3c9654e9906a7f17c89b
[ "MIT" ]
2,154
2018-09-21T21:29:21.000Z
2022-03-31T18:20:38.000Z
# import packages import os from calendar import monthrange from datetime import datetime, timedelta from azureml.core import Workspace from azureml.opendatasets import NoaaIsdWeather # get workspace and datastore ws = Workspace.from_config() dstore = ws.get_default_datastore() # adjust parameters as needed target_ye...
35.645161
87
0.667873
# import packages import os import pandas as pd from calendar import monthrange from datetime import datetime, timedelta from azureml.core import Dataset, Datastore, Workspace from azureml.opendatasets import NoaaIsdWeather # get workspace and datastore ws = Workspace.from_config() dstore = ws.get_default_datastore() ...
0
0
0
0
0
0
0
18
22
83b3e46a39d58cdc9dab0c86420d4c6bea23750c
13,228
py
Python
src/PreProcessing.py
lingluodlut/PPIAC
f3d2b9af6e5a6797455832195200d61d8e894a0d
[ "Apache-2.0" ]
4
2018-03-20T03:40:54.000Z
2020-12-20T12:30:59.000Z
src/PreProcessing.py
lingluodlut/PPIAC
f3d2b9af6e5a6797455832195200d61d8e894a0d
[ "Apache-2.0" ]
null
null
null
src/PreProcessing.py
lingluodlut/PPIAC
f3d2b9af6e5a6797455832195200d61d8e894a0d
[ "Apache-2.0" ]
2
2018-08-23T03:12:15.000Z
2019-08-12T09:02:23.000Z
#encoding=utf-8 ''' Created on 201761 @author: Administrator ''' # parse trainingset from xml to text # if t<2: # print(relevant) # print(abstract) # break # def nltk_token(): # infile='H:/PHDwork/BioCreative VI/track4_PM/data/training/train_and_dev/PMtask_Triage_TrainingSet_ir...
37.68661
133
0.646054
#encoding=utf-8 ''' Created on 2017年6月1日 @author: Administrator ''' import xml.dom.minidom from _codecs import encode import random import nltk # parse trainingset from xml to text def parse_xml_trainingset(): infile='H:/PHDwork/BioCreative VI/track4_PM/data/test gold/PMtask_Triage_TestSet.xml' outfile='H:/PHD...
237
0
0
0
0
11,301
0
-12
402
16cdfe94aaa511d5803c99896509edd3fceeb923
1,578
py
Python
MpsiSpider/Producer.py
gongzhe1/MpsiSpider
4cfc3e9e3ee363ae1f0983b23a3d51eb28afb0d2
[ "MIT" ]
null
null
null
MpsiSpider/Producer.py
gongzhe1/MpsiSpider
4cfc3e9e3ee363ae1f0983b23a3d51eb28afb0d2
[ "MIT" ]
null
null
null
MpsiSpider/Producer.py
gongzhe1/MpsiSpider
4cfc3e9e3ee363ae1f0983b23a3d51eb28afb0d2
[ "MIT" ]
2
2019-08-18T15:15:58.000Z
2020-04-13T12:48:26.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2018/9/9/009 23:01 # @Author : Woe # @Site : # @File : Producer.py # @Software: PyCharm
28.178571
98
0.483523
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2018/9/9/009 23:01 # @Author : Woe # @Site : # @File : Producer.py # @Software: PyCharm import asyncio from MpsiSpider.Request import Request import threading import time class Producer: def __init__(self, requests_queue, mid_queue): ""...
0
0
142
1,172
0
0
0
-5
113
46b1c1f213fc4750364b2750413775d7ba621d95
1,261
py
Python
forum/models.py
rafimuhammad01/mtf-hackathon
83ab410239a93ff04e57d7ceb2d1d292ba365866
[ "Unlicense" ]
null
null
null
forum/models.py
rafimuhammad01/mtf-hackathon
83ab410239a93ff04e57d7ceb2d1d292ba365866
[ "Unlicense" ]
null
null
null
forum/models.py
rafimuhammad01/mtf-hackathon
83ab410239a93ff04e57d7ceb2d1d292ba365866
[ "Unlicense" ]
null
null
null
# Create your models here.
35.027778
125
0.73751
from datetime import datetime from django.db import models from JWTAuth.models import Employee # Create your models here. class Forum(models.Model): title = models.CharField(max_length=50) question = models.TextField(max_length=500) owner = models.ForeignKey(Employee, on_delete=models.CASCADE, related_na...
0
0
0
1,068
0
0
0
29
135
fb2e472b516fa2dece54502216daadcb8f75753e
17,080
py
Python
causallearn/utils/Fas.py
softsys4ai/causal-config-labyrinth
4f50f9ff15429b0ac6ad0a99fbe4cfdd17e360fc
[ "MIT" ]
15
2022-01-20T12:35:35.000Z
2022-03-24T16:25:24.000Z
causallearn/utils/Fas.py
softsys4ai/unicorn
4f50f9ff15429b0ac6ad0a99fbe4cfdd17e360fc
[ "MIT" ]
14
2022-01-23T00:20:00.000Z
2022-02-22T01:40:43.000Z
causallearn/utils/Fas.py
softsys4ai/causal-config-labyrinth
4f50f9ff15429b0ac6ad0a99fbe4cfdd17e360fc
[ "MIT" ]
1
2022-02-23T08:59:24.000Z
2022-02-23T08:59:24.000Z
from tqdm.auto import tqdm from causallearn.graph.Edges import Edges from causallearn.graph.GeneralGraph import GeneralGraph from causallearn.utils.PCUtils.BackgroundKnowledge import BackgroundKnowledge citest_cache = dict() def fas(data, nodes, independence_test_method=fisherz, alpha=0.05, knowledge=None, d...
44.829396
126
0.577986
from copy import deepcopy from tqdm.auto import tqdm from causallearn.graph.Edges import Edges from causallearn.graph.GeneralGraph import GeneralGraph from causallearn.utils.ChoiceGenerator import ChoiceGenerator from causallearn.utils.cit import * from causallearn.utils.PCUtils.BackgroundKnowledge import BackgroundK...
3
0
0
0
0
11,677
0
58
231
6c0988a99c95b883ca9be80c0820141c187aafcf
1,362
py
Python
prepare_data.py
johndmendonca/voxceleb_pt
ecb7c7cbda7cb8d13e979891d4471006d00304c2
[ "MIT" ]
null
null
null
prepare_data.py
johndmendonca/voxceleb_pt
ecb7c7cbda7cb8d13e979891d4471006d00304c2
[ "MIT" ]
null
null
null
prepare_data.py
johndmendonca/voxceleb_pt
ecb7c7cbda7cb8d13e979891d4471006d00304c2
[ "MIT" ]
1
2021-03-09T00:28:25.000Z
2021-03-09T00:28:25.000Z
import re import argparse import subprocess as sp parser = argparse.ArgumentParser(description='Process captions file.') parser.add_argument('--vid','-v',required=True,help='.mp4 video file') parser.add_argument('--rt','-t',required=True,help='Transcription file') parser.add_argument('--poi',required=True,help='POI ID...
26.705882
115
0.625551
import re import sys import argparse import subprocess as sp parser = argparse.ArgumentParser(description='Process captions file.') parser.add_argument('--vid','-v',required=True,help='.mp4 video file') parser.add_argument('--rt','-t',required=True,help='Transcription file') parser.add_argument('--poi',required=True,h...
0
0
0
0
0
0
0
-11
22
19ebe461183e58fa4ce0f7ef848f2d53d61c39f3
1,959
py
Python
weddingwebsite/auth/utils.py
KGB33/Wedding-Website
ba97db5de59369e62c359ef179362211ea8afcd3
[ "MIT" ]
null
null
null
weddingwebsite/auth/utils.py
KGB33/Wedding-Website
ba97db5de59369e62c359ef179362211ea8afcd3
[ "MIT" ]
1
2021-05-13T16:05:23.000Z
2021-05-13T16:05:23.000Z
weddingwebsite/auth/utils.py
KGB33/Wedding-Website
ba97db5de59369e62c359ef179362211ea8afcd3
[ "MIT" ]
1
2019-08-27T23:24:13.000Z
2019-08-27T23:24:13.000Z
def requires_roles(*roles): """ Implements role biased authentication over Flask-login :param roles: Required Roles for authentication """ return wrapper def roles_cannot_access(*roles): """ Implements role biased authentication over Flask-login Users with the provided roles CANNO...
26.472973
75
0.607453
from functools import wraps from flask_login import current_user from flask import redirect, url_for from weddingwebsite import login_manager from .exceptions import NoRolesProvided def requires_roles(*roles): """ Implements role biased authentication over Flask-login :param roles: Required Roles for a...
0
1,184
0
0
0
116
0
72
166
0e65285dc614d87b5590f0639d08f5c2d3456d3c
92
py
Python
parameters_9000.py
zhangjiannan/easyflow
2c9906d3cc2088ed367f887da842a46db5d903ed
[ "BSD-3-Clause" ]
null
null
null
parameters_9000.py
zhangjiannan/easyflow
2c9906d3cc2088ed367f887da842a46db5d903ed
[ "BSD-3-Clause" ]
null
null
null
parameters_9000.py
zhangjiannan/easyflow
2c9906d3cc2088ed367f887da842a46db5d903ed
[ "BSD-3-Clause" ]
1
2021-05-20T10:48:34.000Z
2021-05-20T10:48:34.000Z
password="pbkdf2(1000,20,sha512)$aa925206b00a7043$28115a6960f48c6f11bd00bc838e9f2d622c0262"
46
91
0.891304
password="pbkdf2(1000,20,sha512)$aa925206b00a7043$28115a6960f48c6f11bd00bc838e9f2d622c0262"
0
0
0
0
0
0
0
0
0
0b0b87f2c78e46f76cd233d83174181c79f9fd75
970
py
Python
setup.py
yrangana/csv-to-table
ab941663f35b862b7fec82c1569b7c50ccb9c81a
[ "MIT" ]
9
2015-03-15T23:12:20.000Z
2020-06-25T03:16:47.000Z
setup.py
yrangana/csv-to-table
ab941663f35b862b7fec82c1569b7c50ccb9c81a
[ "MIT" ]
2
2018-06-27T22:40:58.000Z
2021-06-10T11:19:57.000Z
setup.py
yrangana/csv-to-table
ab941663f35b862b7fec82c1569b7c50ccb9c81a
[ "MIT" ]
1
2020-05-17T09:07:52.000Z
2020-05-17T09:07:52.000Z
from setuptools import find_packages, setup requirements = [] with open("requirements.txt") as f: for line in f: line = line.strip() requirements.append(line) setup( name="csv_to_table", version="0.0.3", description="Generates a CREATE TABLE statement from a CSV file by guessing at co...
33.448276
97
0.636082
from setuptools import find_packages, setup requirements = [] with open("requirements.txt") as f: for line in f: line = line.strip() requirements.append(line) setup( name="csv_to_table", version="0.0.3", description="Generates a CREATE TABLE statement from a CSV file by guessing at co...
0
0
0
0
0
0
0
0
0
28bee283f0ded6548b821e3f9359b3df48de2dbb
2,434
py
Python
tosh/command.py
javitonino/tosh
e096ee435264849ab644c6b27d643352446d2b2a
[ "BSD-3-Clause" ]
1
2017-09-23T09:30:49.000Z
2017-09-23T09:30:49.000Z
tosh/command.py
javitonino/tosh
e096ee435264849ab644c6b27d643352446d2b2a
[ "BSD-3-Clause" ]
null
null
null
tosh/command.py
javitonino/tosh
e096ee435264849ab644c6b27d643352446d2b2a
[ "BSD-3-Clause" ]
null
null
null
"""Base class and task for commands.""" # Loads all commands
29.682927
115
0.633114
"""Base class and task for commands.""" import traceback from .tasks import Task class CommandFailedException(BaseException): """Class to represent a failure in a command. Used to avoid printing multiple tracebacks on nested commands.""" pass class _CommandMeta(type): """ Metaclass (object that rep...
0
140
639
1,456
0
0
0
-2
136
49754122e8daf2e07c1f16c0e965d77185ba91b3
4,237
py
Python
handlers.py
iticus/picamweb
7cb0f009120d6484cb03d89707e3770c08c7a650
[ "MIT" ]
null
null
null
handlers.py
iticus/picamweb
7cb0f009120d6484cb03d89707e3770c08c7a650
[ "MIT" ]
null
null
null
handlers.py
iticus/picamweb
7cb0f009120d6484cb03d89707e3770c08c7a650
[ "MIT" ]
null
null
null
""" Created on Aug 28, 2018 @author: ionut """
33.626984
115
0.640548
""" Created on Aug 28, 2018 @author: ionut """ import datetime import logging from tornado.web import RequestHandler from tornado.websocket import WebSocketHandler import camera class HomeHandler(RequestHandler): """ Handler for / - render index.html """ def get(self): camset = self.applic...
0
1,310
0
2,674
0
0
0
21
181
762dbed9bdbb47e172dd66be94398f945456a2cf
64,196
py
Python
morse-stf/stensorflow/basic/basic_class/base.py
qizhi-zhang/Antchain-MPC
f551170f68b0baff328e6594484e9832230fe719
[ "Apache-2.0" ]
2
2021-12-02T05:04:32.000Z
2021-12-02T05:34:17.000Z
morse-stf/stensorflow/basic/basic_class/base.py
qizhi-zhang/Antchain-MPC
f551170f68b0baff328e6594484e9832230fe719
[ "Apache-2.0" ]
null
null
null
morse-stf/stensorflow/basic/basic_class/base.py
qizhi-zhang/Antchain-MPC
f551170f68b0baff328e6594484e9832230fe719
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding=utf-8 """ Ant Group Copyright (c) 2004-2020 All Rights Reserved. ------------------------------------------------------ File Name : base Author : Qizhi Zhang Email: qizhi.zqz@antgroup.com Create Time : 2020-05-14 19:58 Description : description what the main functi...
42.65515
149
0.602545
#!/usr/bin/env python # coding=utf-8 """ Ant Group Copyright (c) 2004-2020 All Rights Reserved. ------------------------------------------------------ File Name : base Author : Qizhi Zhang Email: qizhi.zqz@antgroup.com Create Time : 2020-05-14 19:58 Description : description what the main functi...
3
148
0
60,930
0
868
0
181
224
d7c0a0bc2bc9a0e264a4d3c56b926cc5351fcc2e
12,280
py
Python
lstm/ilab/models/LSTM.py
ucrscholar/HandWashNet
2a01099b9d054956fd335ec4de6aff2064d5ef4e
[ "MIT" ]
1
2020-06-17T12:49:34.000Z
2020-06-17T12:49:34.000Z
lstm/ilab/models/LSTM.py
ucrscholar/HandWashNet
2a01099b9d054956fd335ec4de6aff2064d5ef4e
[ "MIT" ]
null
null
null
lstm/ilab/models/LSTM.py
ucrscholar/HandWashNet
2a01099b9d054956fd335ec4de6aff2064d5ef4e
[ "MIT" ]
null
null
null
from tensorflow_core.python.keras.engine.sequential import Sequential from tensorflow_core.python.keras.layers import ConvLSTM2D from tensorflow_core.python.keras.layers.normalization import BatchNormalization
46.339623
117
0.65342
from tensorflow_core.python.keras.engine.sequential import Sequential from tensorflow_core.python.keras.layers import ConvLSTM2D, Flatten, Dense, Dropout, concatenate from tensorflow_core.python.keras.layers.normalization import BatchNormalization from tensorflow_core.python.keras.models import Sequential, Model from ...
0
0
0
0
0
11,497
0
313
252
cbecca321f5f624b5df0a146dbdf52a9ade8a9d6
2,345
py
Python
check-pruned-model.py
yeyun11/netslim
e46a62ab6229c3e68d13b9a6de9b339369950b8f
[ "MIT" ]
44
2020-03-11T02:07:53.000Z
2022-03-31T13:37:16.000Z
check-pruned-model.py
cloudlounger/netslim
7954f2af9ab955faf4cbc42b43e6e96eb4c26b01
[ "MIT" ]
null
null
null
check-pruned-model.py
cloudlounger/netslim
7954f2af9ab955faf4cbc42b43e6e96eb4c26b01
[ "MIT" ]
14
2020-03-12T13:53:03.000Z
2021-08-23T06:09:52.000Z
import os import argparse import torch import torch.nn as nn import torch.optim as optim from networks import cifar_archs, ilsvrc12_archs from netslim import prune, load_pruned_model, network_slimming num_classes = { "cifar10": 10, "cifar100": 100, "ilsvrc12": None } if __name__ == "__main__": pars...
39.083333
128
0.670789
import os import argparse import torch import torch.nn as nn import torch.optim as optim from torchvision import transforms from torchvision.datasets import cifar from networks import cifar_archs, ilsvrc12_archs from networks import weights_init from netslim import prune, load_pruned_model, update_bn, update_bn_by_nam...
0
0
0
0
0
0
0
130
66
23bac2369ea1dc8626da543ba2843e95ff9cf28e
6,601
py
Python
test.py
Felix3qH4/Mobiliteit.lu
30a81ac4b119ae629b74e4c497e4f4f8ceab5bce
[ "Unlicense" ]
null
null
null
test.py
Felix3qH4/Mobiliteit.lu
30a81ac4b119ae629b74e4c497e4f4f8ceab5bce
[ "Unlicense" ]
null
null
null
test.py
Felix3qH4/Mobiliteit.lu
30a81ac4b119ae629b74e4c497e4f4f8ceab5bce
[ "Unlicense" ]
null
null
null
import pygame as pg run : bool = True pg.init() pg.font.init() WINDOW_W : int = 1600 WINDOW_H : int = 1000 fps : int = 60 clock = pg.time.Clock() drag_allowed : bool = False zoom : float = 1 GREEN : tuple = (220, 230, 190) window = pg.display.set_mode((WINDOW_W, WINDOW_H)) pg.display.set_capti...
36.672222
147
0.538252
import pygame as pg import math run : bool = True pg.init() pg.font.init() WINDOW_W : int = 1600 WINDOW_H : int = 1000 fps : int = 60 clock = pg.time.Clock() drag_allowed : bool = False zoom : float = 1 GREEN : tuple = (220, 230, 190) window = pg.display.set_mode((WINDOW_W, WINDOW_H)) pg.disp...
0
0
0
642
0
189
0
-10
73
638aab68f9be0ea0dab220aa18f58617df9c8f03
576
py
Python
Xiecheng/Gevent.py
scottyyf/MultiWorker
4abd361c3053140be6453d6e6e30f5c31a189e79
[ "Apache-2.0" ]
null
null
null
Xiecheng/Gevent.py
scottyyf/MultiWorker
4abd361c3053140be6453d6e6e30f5c31a189e79
[ "Apache-2.0" ]
null
null
null
Xiecheng/Gevent.py
scottyyf/MultiWorker
4abd361c3053140be6453d6e6e30f5c31a189e79
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ File: Gevent.py Author: Scott Yang(Scott) Email: yangyingfa@skybility.com Copyright: Copyright (c) 2021, Skybility Software Co.,Ltd. All rights reserved. Description: """ from gevent import monkey monkey.patch_all() if __name__ == '__main__': main()
15.567568
79
0.605903
#!/usr/bin/env python # -*- coding: utf-8 -*- """ File: Gevent.py Author: Scott Yang(Scott) Email: yangyingfa@skybility.com Copyright: Copyright (c) 2021, Skybility Software Co.,Ltd. All rights reserved. Description: """ import gevent import time from gevent import monkey monkey.patch_all() def test(n): num = ...
6
0
0
0
0
191
0
-18
90
20c9cf866825c0fcfbf0879f6c03959c6221ad26
387
py
Python
testPlateLocate.py
jedcua/spear
ac114aaa9cca5d3198516661c3d8abd636435bb1
[ "CNRI-Python" ]
3
2019-04-28T02:40:03.000Z
2021-05-16T18:15:02.000Z
testPlateLocate.py
jedcua/spear
ac114aaa9cca5d3198516661c3d8abd636435bb1
[ "CNRI-Python" ]
1
2015-05-08T12:50:06.000Z
2015-05-08T12:50:06.000Z
testPlateLocate.py
jedcua/spear
ac114aaa9cca5d3198516661c3d8abd636435bb1
[ "CNRI-Python" ]
1
2015-06-04T18:29:19.000Z
2015-06-04T18:29:19.000Z
#!/usr/bin/python import spear.LPR.plateLocate, sys import spear.LPR.imageProcessing input_image_path = str(sys.argv[1]) img = spear.SimpleCV.Image(input_image_path) cropped_img = spear.LPR.imageProcessing.cropToROI(img) eq_img = spear.LPR.imageProcessing.equalize(cropped_img) rect_obj_list = spear.LPR.plateLocate...
25.8
102
0.813953
#!/usr/bin/python import spear.LPR.plateLocate, sys import spear.LPR.imageProcessing input_image_path = str(sys.argv[1]) img = spear.SimpleCV.Image(input_image_path) cropped_img = spear.LPR.imageProcessing.cropToROI(img) eq_img = spear.LPR.imageProcessing.equalize(cropped_img) rect_obj_list = spear.LPR.plateLocate...
0
0
0
0
0
0
0
0
0
a28764c2592f90d3b7d6bcb024126bba74d9d0d4
3,639
py
Python
melody_generation/utils/midifile.py
janzuiderveld/MIDialogue
eabb49459857b8bad54cfa5602c917d04390a4c0
[ "MIT" ]
null
null
null
melody_generation/utils/midifile.py
janzuiderveld/MIDialogue
eabb49459857b8bad54cfa5602c917d04390a4c0
[ "MIT" ]
null
null
null
melody_generation/utils/midifile.py
janzuiderveld/MIDialogue
eabb49459857b8bad54cfa5602c917d04390a4c0
[ "MIT" ]
null
null
null
"Transform functions for raw midi files" PIANO_TYPES = list(range(24)) + list(range(80, 96)) # Piano, Synths PLUCK_TYPES = list(range(24, 40)) + list(range(104, 112)) # Guitar, Bass, Ethnic BRIGHT_TYPES = list(range(40, 56)) + list(range(56, 80)) PIANO_RANGE = (21, 109) type2inst = { # use print_music21_inst...
34.009346
117
0.68233
"Transform functions for raw midi files" from enum import Enum import music21 PIANO_TYPES = list(range(24)) + list(range(80, 96)) # Piano, Synths PLUCK_TYPES = list(range(24, 40)) + list(range(104, 112)) # Guitar, Bass, Ethnic BRIGHT_TYPES = list(range(40, 56)) + list(range(56, 80)) PIANO_RANGE = (21, 109) class Tra...
0
0
0
179
0
2,500
0
-7
366
d8f56fdc34bf3ce9aa587528d0c8c72856345ba1
3,370
py
Python
apps/music/adminx.py
chenyifaerfans/fafaer-apis
896db11116fc78c597ebc1a90f547dc15004438d
[ "MIT" ]
null
null
null
apps/music/adminx.py
chenyifaerfans/fafaer-apis
896db11116fc78c597ebc1a90f547dc15004438d
[ "MIT" ]
null
null
null
apps/music/adminx.py
chenyifaerfans/fafaer-apis
896db11116fc78c597ebc1a90f547dc15004438d
[ "MIT" ]
1
2019-03-17T12:46:20.000Z
2019-03-17T12:46:20.000Z
# _*_ coding:utf-8 _*_ __author__ = 'WANGY' __date__ = '2018/8/9 12:42' import xadmin from .models import Singer, Album, Audio, Song, AlbumDetail, AudioDetail xadmin.site.register(Singer, SingerAdmin) xadmin.site.register(Album, AlbumAdmin) xadmin.site.register(Audio, AudioAdmin) xadmin.site.register(Song, ...
32.403846
144
0.667062
# _*_ coding:utf-8 _*_ __author__ = 'WANGY' __date__ = '2018/8/9 12:42' import xadmin from .models import Singer, Album, Audio, Song, AlbumDetail, AudioDetail from .forms import SingerAdminForm, AlbumAdminForm, SongAdminForm from common.base import CommonAdmin class AlbumDetailInline(object): model = AlbumDetai...
0
0
0
2,649
0
0
0
58
228
8dab83884af015102b728d30a457e43b569c1494
10,826
py
Python
PageBotNano-005-TextBox/pagebotnano_005/elements.py
juandelperal/PageBotNano
7f0d82755d6eb6962f206e5dd0d08c40c0947bde
[ "MIT" ]
null
null
null
PageBotNano-005-TextBox/pagebotnano_005/elements.py
juandelperal/PageBotNano
7f0d82755d6eb6962f206e5dd0d08c40c0947bde
[ "MIT" ]
null
null
null
PageBotNano-005-TextBox/pagebotnano_005/elements.py
juandelperal/PageBotNano
7f0d82755d6eb6962f206e5dd0d08c40c0947bde
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: UTF-8 -*- # ----------------------------------------------------------------------------- # # P A G E B O T N A N O # # Copyright (c) 2020+ Buro Petr van Blokland + Claudia Mens # www.pagebot.io # Licensed under MIT conditions # # Supporting DrawBot, www.drawbot.com # ---...
43.82996
97
0.615925
#!/usr/bin/env python3 # -*- coding: UTF-8 -*- # ----------------------------------------------------------------------------- # # P A G E B O T N A N O # # Copyright (c) 2020+ Buro Petr van Blokland + Claudia Mens # www.pagebot.io # Licensed under MIT conditions # # Supporting DrawBot, www.drawbot.com # ---...
3
0
0
9,829
0
0
0
21
138
5297ff910764477d5f5be9bd13a24497e591d63b
3,738
py
Python
rotations.py
syed343/matrix-rotations-demo
baf080ea41357c21a19885f2da5cbe61e43c7341
[ "MIT" ]
1
2020-10-06T16:55:29.000Z
2020-10-06T16:55:29.000Z
rotations.py
syed343/matrix-rotations-demo
baf080ea41357c21a19885f2da5cbe61e43c7341
[ "MIT" ]
null
null
null
rotations.py
syed343/matrix-rotations-demo
baf080ea41357c21a19885f2da5cbe61e43c7341
[ "MIT" ]
null
null
null
# Aim: to rotate a point P by :, centre O. # MIT License # Copyright (c) 2020 syed343 (GitHub username) # 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 witho...
35.264151
87
0.64473
# Aim: to rotate a point P by θ°:, centre O. # MIT License # Copyright (c) 2020 syed343 (GitHub username) # 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 wit...
10
0
0
0
0
547
0
0
92
956b790695c6d732d4902c158ee358dc0065d9bb
4,406
py
Python
hrl_fabric_based_tactile_sensor/src/hrl_fabric_based_tactile_sensor/pr2_tactile_sleeve_gripper_and_forearm_driver_node.py
gt-ros-pkg/hrl-haptic-manip
6458187075033ecd3a22fbcdc1a632df39b0cba1
[ "Apache-2.0" ]
1
2017-07-13T14:58:35.000Z
2017-07-13T14:58:35.000Z
hrl_fabric_based_tactile_sensor/src/hrl_fabric_based_tactile_sensor/pr2_tactile_sleeve_gripper_and_forearm_driver_node.py
gt-ros-pkg/hrl-haptic-manip
6458187075033ecd3a22fbcdc1a632df39b0cba1
[ "Apache-2.0" ]
null
null
null
hrl_fabric_based_tactile_sensor/src/hrl_fabric_based_tactile_sensor/pr2_tactile_sleeve_gripper_and_forearm_driver_node.py
gt-ros-pkg/hrl-haptic-manip
6458187075033ecd3a22fbcdc1a632df39b0cba1
[ "Apache-2.0" ]
2
2017-03-08T14:44:22.000Z
2019-07-15T23:46:35.000Z
#!/usr/bin/python import roslib; roslib.load_manifest('hrl_fabric_based_tactile_sensor') import rospy import hrl_fabric_based_tactile_sensor.adc_publisher_node as apn from m3skin_ros.msg import RawTaxelArray from m3skin_ros.srv import None_TransformArray from m3skin_ros.srv import None_String from pr2_tactile_slee...
38.649123
109
0.688606
#!/usr/bin/python import sys import math, numpy as np import roslib; roslib.load_manifest('hrl_fabric_based_tactile_sensor') import rospy from hrl_msgs.msg import FloatArray import hrl_lib.util as ut import hrl_lib.transforms as tr import hrl_fabric_based_tactile_sensor.adc_publisher_node as apn from m3skin_ros.ms...
0
0
0
0
0
0
0
67
134
fd7fb50af4300ac68460aae6ba1f2780f20d6dfb
4,200
py
Python
test_parser.py
sbreitenbach/market-trends
7a2efa06204a1f302e6daa7ba559a293367581cc
[ "Apache-2.0" ]
null
null
null
test_parser.py
sbreitenbach/market-trends
7a2efa06204a1f302e6daa7ba559a293367581cc
[ "Apache-2.0" ]
9
2021-01-31T17:25:03.000Z
2021-02-28T00:47:39.000Z
test_parser.py
sbreitenbach/market-trends
7a2efa06204a1f302e6daa7ba559a293367581cc
[ "Apache-2.0" ]
null
null
null
import demoji demoji.download_codes()
23.333333
80
0.684762
import demoji import parser demoji.download_codes() def test_is_valid_dollar_sign_match(): a = "$GME" b = parser.is_dollar_sign_match(a) assert(b == True) def test_not_valid_dollar_sign_match(): a = "GME" b = parser.is_dollar_sign_match(a) assert(b == False) def test_not_valid_dollar_sign...
4
0
0
0
0
3,450
0
-8
689
52183764426604df24e234ea127a5b9d154137b1
68
py
Python
boxofficemojo/boxofficemojo.py
pnivlek/red-cogs
6700c4d6e1df229802af25c27571b8f57ffdcddd
[ "MIT" ]
null
null
null
boxofficemojo/boxofficemojo.py
pnivlek/red-cogs
6700c4d6e1df229802af25c27571b8f57ffdcddd
[ "MIT" ]
null
null
null
boxofficemojo/boxofficemojo.py
pnivlek/red-cogs
6700c4d6e1df229802af25c27571b8f57ffdcddd
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Yackback 2018 # Red cog for scraping BOM
17
27
0.691176
#!/usr/bin/env python # Yackback 2018 # Red cog for scraping BOM
0
0
0
0
0
0
0
0
0
1adc09aa33fafe6ec789cf91efa9aaaa434031e2
2,134
py
Python
TranskribusDU/dataGenerator/listGenerator.py
Transkribus/TranskribusDU
61028ee5f5f39f435bf9c461f8073e75bca344ac
[ "BSD-3-Clause" ]
20
2017-01-24T20:08:25.000Z
2021-10-30T15:20:44.000Z
TranskribusDU/dataGenerator/listGenerator.py
Transkribus/TranskribusDU
61028ee5f5f39f435bf9c461f8073e75bca344ac
[ "BSD-3-Clause" ]
11
2017-06-27T11:41:42.000Z
2020-10-12T04:59:25.000Z
TranskribusDU/dataGenerator/listGenerator.py
Transkribus/TranskribusDU
61028ee5f5f39f435bf9c461f8073e75bca344ac
[ "BSD-3-Clause" ]
5
2017-01-12T15:55:34.000Z
2019-10-10T05:13:20.000Z
# -*- coding: utf-8 -*- """ Generator.py create (generate) annotated data H. Djean copyright Xerox 2017 READ project Developed for the EU project READ. The READ project has received funding from the European Union's Horizon 2020 research and innovation programme ...
27.714286
78
0.616214
# -*- coding: utf-8 -*- """ Generator.py create (generate) annotated data H. Déjean copyright Xerox 2017 READ project Developed for the EU project READ. The READ project has received funding from the European Union's Horizon 2020 research and innovation programme ...
2
0
0
1,267
0
0
0
24
51
2c42890db6031cc677c08ff723065a333ef5d90f
606
py
Python
examples/wagsley/posts/query.py
Blogsley/blogsley
0ca17397af5d53c2fac3affb5eacec2f8d941d37
[ "MIT" ]
null
null
null
examples/wagsley/posts/query.py
Blogsley/blogsley
0ca17397af5d53c2fac3affb5eacec2f8d941d37
[ "MIT" ]
null
null
null
examples/wagsley/posts/query.py
Blogsley/blogsley
0ca17397af5d53c2fac3affb5eacec2f8d941d37
[ "MIT" ]
null
null
null
#from .models import Post
26.347826
72
0.744224
from channels.db import database_sync_to_async from wagsley.schema.base import query #from .models import Post from puput.models import EntryPage as Post from .schema import PostConnection, PostEdge, PostNode @query.field("allPosts") @database_sync_to_async def resolve_all_posts(root, info, after='', before='', firs...
0
348
0
0
0
0
0
95
135
b8e1786b80dbf630895bde9a5cc7acb6bc8a4ded
175
py
Python
data_analysis/study_numpy/_test.py
2581676612/python
b309564a05838b23044bb8112fd4ef71307266b6
[ "MIT" ]
112
2017-09-19T17:38:38.000Z
2020-05-27T18:00:27.000Z
data_analysis/study_numpy/_test.py
tomoncle/Python-notes
ce675486290c3d1c7c2e4890b57e3d0c8a1228cc
[ "MIT" ]
null
null
null
data_analysis/study_numpy/_test.py
tomoncle/Python-notes
ce675486290c3d1c7c2e4890b57e3d0c8a1228cc
[ "MIT" ]
56
2017-09-20T01:24:12.000Z
2020-04-16T06:19:31.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2017/9/5 22:35 # @Author : Tom.lee # @Site : # @File : _test.py # @Software: PyCharm # import numpy as np
15.909091
27
0.548571
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2017/9/5 22:35 # @Author : Tom.lee # @Site : # @File : _test.py # @Software: PyCharm # import numpy as np
0
0
0
0
0
0
0
0
0
00cf6396a61cbc100d6351dde2489c0a8ce7f50f
13,553
py
Python
regular_language/common_substring_reducer.py
ShoYamanishi/nlpregex
795b36d5a2fad8bc25264b2093ffa9c3723b282b
[ "MIT" ]
1
2021-12-03T07:20:18.000Z
2021-12-03T07:20:18.000Z
regular_language/common_substring_reducer.py
ShoYamanishi/nlpregex
795b36d5a2fad8bc25264b2093ffa9c3723b282b
[ "MIT" ]
null
null
null
regular_language/common_substring_reducer.py
ShoYamanishi/nlpregex
795b36d5a2fad8bc25264b2093ffa9c3723b282b
[ "MIT" ]
null
null
null
#!/usr/local/bin/python # -*- coding: utf-8 -*- import nlpregex.abs_graph.double_link import nlpregex.abs_graph.node import nlpregex.abs_graph.edge
32.501199
155
0.556261
#!/usr/local/bin/python # -*- coding: utf-8 -*- import nlpregex.abs_graph.double_link import nlpregex.abs_graph.node import nlpregex.abs_graph.edge import nlpregex.abs_graph.graph class CommonSubstringReducer(): def __init__(self, forrest, min_num_subtrees = 2, min_num_terms = 2 ): self.forrest = forr...
0
0
0
13,348
0
0
0
10
45
dc8662cf532e452beb1d3b6f6b8cc74146d1672a
969
py
Python
benchmarking/PresentInfo.py
jagoPG/ud-videogames
c6e614f2a71778fb98381786d3eff0558c411708
[ "MIT" ]
null
null
null
benchmarking/PresentInfo.py
jagoPG/ud-videogames
c6e614f2a71778fb98381786d3eff0558c411708
[ "MIT" ]
null
null
null
benchmarking/PresentInfo.py
jagoPG/ud-videogames
c6e614f2a71778fb98381786d3eff0558c411708
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # -*- encoding: utf-8 -*-
33.413793
115
0.74613
#!/usr/bin/python3 # -*- encoding: utf-8 -*- class PresentInfo: def __init__(self, time_in_seconds, ms_between_presents, ms_between_display_change, ms_until_render_complete, \ ms_until_displayed): self.time_in_seconds = time_in_seconds self.ms_between_presents = ms_between_presents s...
0
0
0
902
0
0
0
0
22
38b05d8021a693948318f342e4e7b59291e8e2c5
5,846
py
Python
pgd_eval.py
sungyoon-lee/LossLandscapeMatters
b805939c56eea33beda86560a1289c35878d93de
[ "BSD-2-Clause" ]
3
2021-11-19T12:05:57.000Z
2021-12-10T08:17:33.000Z
pgd_eval.py
sungyoon-lee/LossLandscapeMatters
b805939c56eea33beda86560a1289c35878d93de
[ "BSD-2-Clause" ]
null
null
null
pgd_eval.py
sungyoon-lee/LossLandscapeMatters
b805939c56eea33beda86560a1289c35878d93de
[ "BSD-2-Clause" ]
1
2021-11-24T01:37:41.000Z
2021-11-24T01:37:41.000Z
import torch.nn as nn import torch.optim as optim from torch.optim.lr_scheduler import StepLR, MultiStepLR
35.865031
100
0.5857
import numpy as np import torch import torch.nn as nn import torch.optim as optim from torch.autograd import Variable from torchvision import datasets, transforms from torch.optim.lr_scheduler import StepLR, MultiStepLR import torch.nn.functional as F from torch import autograd from torch.utils.data import Dataset, Da...
0
0
0
368
0
4,916
0
117
319
bf9d6bb330a85c9caacb44ac44cc1acd59ccad8f
5,211
py
Python
allink_core/core_apps/allink_image/migrations/0001_initial.py
allink/allink-core
cf2727f26192d8dee89d76feb262bc4760f36f5e
[ "BSD-3-Clause" ]
5
2017-03-13T08:49:45.000Z
2022-03-05T20:05:56.000Z
allink_core/core_apps/allink_image/migrations/0001_initial.py
allink/allink-core
cf2727f26192d8dee89d76feb262bc4760f36f5e
[ "BSD-3-Clause" ]
28
2019-10-21T08:32:18.000Z
2022-02-10T13:16:38.000Z
allink_core/core_apps/allink_image/migrations/0001_initial.py
allink/allink-core
cf2727f26192d8dee89d76feb262bc4760f36f5e
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 2.1.8 on 2019-07-02 17:18 import django.contrib.postgres.fields import filer.fields.file
89.844828
362
0.700058
# Generated by Django 2.1.8 on 2019-07-02 17:18 import cms.models.fields from django.conf import settings import django.contrib.postgres.fields from django.db import migrations, models import django.db.models.deletion import djangocms_attributes_field.fields import filer.fields.file import filer.fields.image class M...
0
0
0
4,876
0
0
0
67
156
fa38ce881e00b5e17e68260f234ebf43190433fe
3,119
py
Python
gallery/gravmag/imaging_geninv.py
XuesongDing/fatiando
57a0e0802fde2e53628511d3a7a2964e69bb309a
[ "BSD-3-Clause" ]
179
2015-03-08T08:50:45.000Z
2022-03-20T08:19:05.000Z
gallery/gravmag/imaging_geninv.py
XuesongDing/fatiando
57a0e0802fde2e53628511d3a7a2964e69bb309a
[ "BSD-3-Clause" ]
207
2015-01-12T17:04:57.000Z
2021-01-08T23:36:11.000Z
gallery/gravmag/imaging_geninv.py
XuesongDing/fatiando
57a0e0802fde2e53628511d3a7a2964e69bb309a
[ "BSD-3-Clause" ]
114
2015-01-29T18:51:22.000Z
2022-03-25T12:35:43.000Z
""" Potential field imaging through the Generalized Inverse method --------------------------------------------------------------- Module :mod:`fatiando.gravmag.imaging` has functions for imaging methods in potential fields. These methods produce an image of the subsurface without doing an inversion. However, there is...
34.274725
79
0.663354
""" Potential field imaging through the Generalized Inverse method --------------------------------------------------------------- Module :mod:`fatiando.gravmag.imaging` has functions for imaging methods in potential fields. These methods produce an image of the subsurface without doing an inversion. However, there is...
0
0
0
0
0
0
0
0
0
9c2707ab8a78d0dd7187a30e4310a84c6269eaff
1,647
py
Python
scripts/FlowByActivity_Crosswalks/write_Crosswalk_Blackhurst_IO.py
JohnAndrewTaylor/flowsa
21b14b19f08370db574bdd59219a2773983c6f95
[ "CC0-1.0" ]
null
null
null
scripts/FlowByActivity_Crosswalks/write_Crosswalk_Blackhurst_IO.py
JohnAndrewTaylor/flowsa
21b14b19f08370db574bdd59219a2773983c6f95
[ "CC0-1.0" ]
null
null
null
scripts/FlowByActivity_Crosswalks/write_Crosswalk_Blackhurst_IO.py
JohnAndrewTaylor/flowsa
21b14b19f08370db574bdd59219a2773983c6f95
[ "CC0-1.0" ]
null
null
null
# write_Crosswalk_Blackhurst.py (scripts) # !/usr/bin/env python3 # coding=utf-8 """ Create a crosswalk linking BEA to NAICS """ from flowsa.common import datapath from scripts.common_scripts import unique_activity_names, order_crosswalk if __name__ == '__main__': # select years to pull unique activity names ...
32.94
110
0.704311
# write_Crosswalk_Blackhurst.py (scripts) # !/usr/bin/env python3 # coding=utf-8 """ Create a crosswalk linking BEA to NAICS """ import pandas as pd from flowsa.common import datapath, load_bea_crosswalk from scripts.common_scripts import unique_activity_names, order_crosswalk def assign_naics(df): cw_load = l...
0
0
0
0
0
605
0
18
45
aa38a4f4514466968318503364c137f48336f7a3
456
py
Python
geohash-tool/scripts/gp_get_geohash.py
fabanc/sig-2021-demos
20152ca7827d9e4d4db9c443ca8dbf07ccebf74f
[ "Apache-2.0" ]
null
null
null
geohash-tool/scripts/gp_get_geohash.py
fabanc/sig-2021-demos
20152ca7827d9e4d4db9c443ca8dbf07ccebf74f
[ "Apache-2.0" ]
null
null
null
geohash-tool/scripts/gp_get_geohash.py
fabanc/sig-2021-demos
20152ca7827d9e4d4db9c443ca8dbf07ccebf74f
[ "Apache-2.0" ]
null
null
null
import arcpy if __name__ == '__main__': process( feature_class=arcpy.GetParameterAsText(0), field=arcpy.GetParameterAsText(1) )
24
75
0.616228
import arcpy def process(feature_class, field, precision=8): with arcpy.da.UpdateCursor(feature_class, ['SHAPE@', field]) as cursor: for row in cursor: geom = row[0] geohash = geom.getGeohash(precision) row[1] = geohash cursor.updateRow(row) return if...
0
0
0
0
0
279
0
0
23
e28df365921b7d1a374d02bb373b246faaa78a26
2,997
py
Python
download_images.py
osteele/matrix-archive
a35e70a76ecd36290cafd53ed10e5a54fd969e7d
[ "MIT" ]
15
2019-04-25T00:29:45.000Z
2022-03-09T21:11:52.000Z
download_images.py
osteele/matrix-archive
a35e70a76ecd36290cafd53ed10e5a54fd969e7d
[ "MIT" ]
8
2019-09-01T22:12:15.000Z
2021-06-17T05:55:03.000Z
download_images.py
osteele/matrix-archive
a35e70a76ecd36290cafd53ed10e5a54fd969e7d
[ "MIT" ]
11
2019-05-10T16:19:56.000Z
2021-03-30T07:24:50.000Z
import requests from matrix_connection import get_download_url def run_downloads(messages, download_dir, prefer_thumbnails): """Run downloads :param messages: List of messages :param download_dir: Location where the images shall be stored :param prefer_thumbnails: Whether to prefer thumbnails than f...
36.54878
93
0.627628
from pathlib import Path from urllib.parse import urlparse import click import requests import database_connection # noqa: F401 from matrix_connection import get_download_url from schema import Message def download_stem(message, prefer_thumbnails): image_url = (message.thumbnail_url if prefer_thumbnails else N...
0
945
0
0
0
175
0
16
172
72dc1e0e69e79c0cdc49e1e8f93793fc10b1a765
30,701
py
Python
AppServer/google/appengine/api/datastore_distributed.py
UCSB-CS-RACELab/eager-appscale
d58fe64bb867ef58af19c1d84a5e1ec68ecddd3d
[ "Apache-2.0" ]
3
2016-06-12T01:18:49.000Z
2018-07-16T18:20:23.000Z
AppServer/google/appengine/api/datastore_distributed.py
davgit/appscale
17d35a14fa5a56975de1e3517bec9e7f9047d82a
[ "Apache-2.0" ]
null
null
null
AppServer/google/appengine/api/datastore_distributed.py
davgit/appscale
17d35a14fa5a56975de1e3517bec9e7f9047d82a
[ "Apache-2.0" ]
1
2020-05-25T02:59:15.000Z
2020-05-25T02:59:15.000Z
#!/usr/bin/env python # # Copyright 2007 Google 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 o...
35.167239
80
0.682193
#!/usr/bin/env python # # Copyright 2007 Google 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 o...
0
0
0
26,151
0
0
0
278
379
e46248d0242007e8df950020ac9375faae04e301
14,089
py
Python
eikon/Profile.py
tschm/eikon-docker
a72a13591b4f560442ba37d11021133434425848
[ "Apache-2.0" ]
3
2020-05-10T22:15:49.000Z
2021-04-05T19:29:52.000Z
eikon/Profile.py
tschm/eikon-docker
a72a13591b4f560442ba37d11021133434425848
[ "Apache-2.0" ]
null
null
null
eikon/Profile.py
tschm/eikon-docker
a72a13591b4f560442ba37d11021133434425848
[ "Apache-2.0" ]
1
2020-07-22T16:54:32.000Z
2020-07-22T16:54:32.000Z
# coding: utf-8 __all__ = ['set_app_key', 'get_app_key', 'set_timeout', 'get_timeout', 'set_port_number', 'get_port_number', 'set_log_level', 'set_log_path', #'set_app_id', 'get_app_id', 'set_on_state_callback', 'set_on_event_callback', 'Profile', 'get_...
30.364224
126
0.616864
# coding: utf-8 __all__ = ['set_app_key', 'get_app_key', 'set_timeout', 'get_timeout', 'set_port_number', 'get_port_number', 'set_log_level', 'set_log_path', #'set_app_id', 'get_app_id', 'set_on_state_callback', 'set_on_event_callback', 'Profile', 'get_...
0
180
0
6,120
0
1,987
0
106
357
9e1e9d1675eb861dcc87b5d65cb7fecdba59657d
4,986
py
Python
src/config.py
erramuzpe/ruber
cf510a4cf9b0b15d870b6506a1593c3b2b00a3b7
[ "MIT" ]
2
2018-11-07T07:54:34.000Z
2022-01-13T13:06:06.000Z
src/config.py
erramuzpe/ruber
cf510a4cf9b0b15d870b6506a1593c3b2b00a3b7
[ "MIT" ]
null
null
null
src/config.py
erramuzpe/ruber
cf510a4cf9b0b15d870b6506a1593c3b2b00a3b7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Configuration manager for workflow definitions. This works over Kaptan:https://github.com/emre/kaptan The global configuration registry is declared in the bottom of this file. """ import os.path as op from nipype.pipeline.engine import Node, MapNode, JoinNode def update_config(value):...
31.1625
98
0.623546
# -*- coding: utf-8 -*- """ Configuration manager for workflow definitions. This works over Kaptan:https://github.com/emre/kaptan The global configuration registry is declared in the bottom of this file. """ import os.path as op from nipype.pipeline.engine import Node, MapNode, JoinNode from nipype.interfaces.bas...
0
0
0
0
123
797
0
27
114
e27dd9bddb4d99147e7d7179527777741f69f83d
149
py
Python
siamese-net/config.py
sanjayram97/siamese-neuralnet
1f7db1d0f92fb48a4acfcc8d7e1f06d51f1b4589
[ "MIT" ]
null
null
null
siamese-net/config.py
sanjayram97/siamese-neuralnet
1f7db1d0f92fb48a4acfcc8d7e1f06d51f1b4589
[ "MIT" ]
null
null
null
siamese-net/config.py
sanjayram97/siamese-neuralnet
1f7db1d0f92fb48a4acfcc8d7e1f06d51f1b4589
[ "MIT" ]
null
null
null
TRAIN_IMG_PATH = r"C:\Users\ASUS\Documents\Projects\Siamese_network\package\output" IMG_SHAPE = (28, 28, 1) BATCH_SIZE = 64 EPOCHS = 100
18.625
83
0.758389
import os TRAIN_IMG_PATH = r"C:\Users\ASUS\Documents\Projects\Siamese_network\package\output" IMG_SHAPE = (28, 28, 1) BATCH_SIZE = 64 EPOCHS = 100
0
0
0
0
0
0
0
-12
22
c7ea799de142f79dec8a794644bed0d00d4affbf
1,420
py
Python
app/make_requests.py
tagg7/battlesnake2019-ml
87641b5b83bfd79cbbccb27f8ff29e1b966ea3fa
[ "MIT" ]
null
null
null
app/make_requests.py
tagg7/battlesnake2019-ml
87641b5b83bfd79cbbccb27f8ff29e1b966ea3fa
[ "MIT" ]
null
null
null
app/make_requests.py
tagg7/battlesnake2019-ml
87641b5b83bfd79cbbccb27f8ff29e1b966ea3fa
[ "MIT" ]
1
2022-02-24T21:57:52.000Z
2022-02-24T21:57:52.000Z
import sys if __name__ == '__main__': iterations = 50 if len(sys.argv) > 1: iterations = int(sys.argv[1]) for x in xrange(iterations): game_id = createGame() startGame(game_id) waitForGameEnd(game_id) print("Game Ended: %d - %s" % (x + 1, game_id))
24.912281
66
0.685211
import requests import json import sys from time import sleep def createGame(): url = "http://localhost:3005/games" headers = {'Content-type': 'text/plain', 'Accept': 'text/plain'} payload = { "width":15, "height":15, "food":1, "MaxTurnsToNextFoodSpawn":0, "snakes":[{"name":"Test","url":"http://localhost...
0
0
0
0
0
1,035
0
-15
135
c237b75115000b9c36d090703eab5d288d0772de
5,650
py
Python
python/pumapy/__init__.py
dalexa10/puma
ca02309c9f5c71e2e80ad8d64155dd6ca936c667
[ "NASA-1.3" ]
null
null
null
python/pumapy/__init__.py
dalexa10/puma
ca02309c9f5c71e2e80ad8d64155dd6ca936c667
[ "NASA-1.3" ]
null
null
null
python/pumapy/__init__.py
dalexa10/puma
ca02309c9f5c71e2e80ad8d64155dd6ca936c667
[ "NASA-1.3" ]
null
null
null
""" Copyright @ 2017, 2020, 2021 United States Government as represented by the Administrator of the National Aeronautics and Space Administration. All Rights Reserved. This software may be used, reproduced, and provided to others only as permitted under the terms of the agreement under which it was acquired from the U...
78.472222
1,062
0.835398
""" Copyright @ 2017, 2020, 2021 United States Government as represented by the Administrator of the National Aeronautics and Space Administration. All Rights Reserved. This software may be used, reproduced, and provided to others only as permitted under the terms of the agreement under which it was acquired from the U...
0
0
0
0
0
0
0
1,742
646
ce0a37cec027e541fb330fc73670de84f0db2080
1,839
py
Python
scripts/log.py
mfkiwl/higgs_sdr_rev2
12f8174b0f385dce4f0da943bba0dde2732d96b5
[ "BSD-3-Clause" ]
1
2021-07-04T05:19:32.000Z
2021-07-04T05:19:32.000Z
scripts/log.py
mfkiwl/higgs_sdr_rev2
12f8174b0f385dce4f0da943bba0dde2732d96b5
[ "BSD-3-Clause" ]
null
null
null
scripts/log.py
mfkiwl/higgs_sdr_rev2
12f8174b0f385dce4f0da943bba0dde2732d96b5
[ "BSD-3-Clause" ]
2
2021-07-04T05:19:36.000Z
2022-03-11T09:16:27.000Z
############################################################################### ############################################################################### # Name: log.py # Coder: Janson Fang # Description: # This module contains a method used create a logger ######################################################...
38.3125
79
0.405111
############################################################################### ############################################################################### # Name: log.py # Coder: Janson Fang # Description: # This module contains a method used create a logger ######################################################...
0
0
0
0
0
0
0
0
0
1477cdbe428472416cd3c9c6110b1c3bcd58e5a1
2,491
py
Python
branching_iteration.py
gtsofa/yt
82a41a9de5be8b45905f9251cbc4240ad7299d79
[ "MIT" ]
null
null
null
branching_iteration.py
gtsofa/yt
82a41a9de5be8b45905f9251cbc4240ad7299d79
[ "MIT" ]
null
null
null
branching_iteration.py
gtsofa/yt
82a41a9de5be8b45905f9251cbc4240ad7299d79
[ "MIT" ]
null
null
null
# branching_iteration.py # name = "tsofa" # greeting = "hi " + name # print(greeting) # #text = raw_input("type anything please") # text = str(input("type anything please")) # print(5*text) # # if true prog ends and doesn't look at other conditions. # x = float(input("Enter a value for x: ")) # y = float(input("Ente...
23.951923
102
0.602168
# branching_iteration.py # name = "tsofa" # greeting = "hi " + name # print(greeting) # #text = raw_input("type anything please") # text = str(input("type anything please")) # print(5*text) # # if true prog ends and doesn't look at other conditions. # x = float(input("Enter a value for x: ")) # y = float(input("Ente...
0
0
0
0
0
0
0
0
0