hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
251
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
251
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
5a1066f50cc73cde3a7e5f65b4cffbe41ddedc46
575
py
Python
2020/04/Teil 1 - V01.py
HeWeMel/adventofcode
90acb10f03f21ef388673bbcf132d04972175970
[ "MIT" ]
1
2020-12-12T19:34:59.000Z
2020-12-12T19:34:59.000Z
2020/04/Teil 1 - V01.py
HeWeMel/adventofcode
90acb10f03f21ef388673bbcf132d04972175970
[ "MIT" ]
null
null
null
2020/04/Teil 1 - V01.py
HeWeMel/adventofcode
90acb10f03f21ef388673bbcf132d04972175970
[ "MIT" ]
null
null
null
import sys lines=[] new=True lc=0 with open('input.txt', 'r') as f: for line in f: line=line[:-1] # remove new line char if line=='': lc+=1 new=True else: if new: lines.append(line) new=False else: ...
19.166667
66
0.452174
5a10f64e9ccb60f772e7fb4e5d093560ebd8cdb4
9,366
py
Python
src/falconpy/quick_scan.py
CrowdStrike/falconpy
e7245202224647a2c8d134e72f27d2f6c667a1ce
[ "Unlicense" ]
111
2020-11-19T00:44:18.000Z
2022-03-03T21:02:32.000Z
src/falconpy/quick_scan.py
CrowdStrike/falconpy
e7245202224647a2c8d134e72f27d2f6c667a1ce
[ "Unlicense" ]
227
2020-12-05T03:02:27.000Z
2022-03-22T14:12:42.000Z
src/falconpy/quick_scan.py
CrowdStrike/falconpy
e7245202224647a2c8d134e72f27d2f6c667a1ce
[ "Unlicense" ]
47
2020-11-23T21:00:14.000Z
2022-03-28T18:30:19.000Z
"""Falcon Quick Scan API Interface Class _______ __ _______ __ __ __ | _ .----.-----.--.--.--.--| | _ | |_.----|__| |--.-----. |. 1___| _| _ | | | | _ | 1___| _| _| | <| -__| |. |___|__| |_____|________|_____|____ |____|__| |__|__|__|_____| |: 1 | ...
40.025641
105
0.604527
5a118345944c61aa57f158d2bab247572f49c59f
353
py
Python
images/auth-service/settings.d/00-settings.py
ESGF/esgf-docker
95f5b76c85be65920810795484786a13865f4ac1
[ "Apache-2.0" ]
3
2018-04-16T00:58:30.000Z
2020-10-07T17:58:02.000Z
images/auth-service/settings.d/00-settings.py
ESGF/esgf-docker
95f5b76c85be65920810795484786a13865f4ac1
[ "Apache-2.0" ]
115
2017-01-10T20:12:42.000Z
2021-03-03T16:11:48.000Z
images/auth-service/settings.d/00-settings.py
ESGF/esgf-docker
95f5b76c85be65920810795484786a13865f4ac1
[ "Apache-2.0" ]
21
2017-08-28T15:20:24.000Z
2021-02-09T00:08:49.000Z
# Application definition INSTALLED_APPS = [ 'django.contrib.staticfiles', 'django.contrib.sessions', 'authenticate', ] ROOT_URLCONF = 'auth_service.urls' WSGI_APPLICATION = 'auth_service.wsgi.application' # Use a non database session engine SESSION_ENGINE = 'django.contrib.sessions.backends.signed_cookie...
23.533333
66
0.776204
5a12d4be2ea76f2966c05949af40280a754ab4f5
3,641
py
Python
tests/test_gru.py
nsuke/hyrnn
b3efcc7b004d8402344467bf319f1d86324d11e5
[ "Apache-2.0" ]
73
2019-04-08T08:17:39.000Z
2022-03-29T03:48:07.000Z
tests/test_gru.py
nsuke/hyrnn
b3efcc7b004d8402344467bf319f1d86324d11e5
[ "Apache-2.0" ]
10
2019-03-19T04:24:07.000Z
2021-02-25T00:19:24.000Z
tests/test_gru.py
nsuke/hyrnn
b3efcc7b004d8402344467bf319f1d86324d11e5
[ "Apache-2.0" ]
14
2019-05-06T09:42:37.000Z
2021-07-17T17:18:05.000Z
import hyrnn import torch.nn
31.938596
84
0.651744
5a12f3dfdcd98b07c6a9e2f6f164d8d44b462308
1,190
py
Python
ecogvis/signal_processing/common_referencing.py
NKI-ECOG/ecogVIS
f65212fc238e5b2588a4674a6aa1236f99e7d833
[ "BSD-3-Clause" ]
13
2020-04-01T22:39:24.000Z
2022-03-04T13:27:51.000Z
ecogvis/signal_processing/common_referencing.py
NKI-ECOG/ecogVIS
f65212fc238e5b2588a4674a6aa1236f99e7d833
[ "BSD-3-Clause" ]
56
2020-04-01T14:27:21.000Z
2022-03-23T21:33:06.000Z
ecogvis/signal_processing/common_referencing.py
luiztauffer/ecogVIS
c97e79a20b3af1074a3a5e1f1ad864a580c97e04
[ "BSD-3-Clause" ]
11
2020-05-15T17:48:53.000Z
2022-02-01T23:55:12.000Z
from __future__ import division import numpy as np __all__ = ['subtract_CAR', 'subtract_common_median_reference'] def subtract_CAR(X, b_size=16): """ Compute and subtract common average reference in 16 channel blocks. """ channels, time_points = X.shape s = channels // b_size r = ...
23.8
71
0.616807
5a13150c841953f716f3e772e7c48bc269734ed8
3,701
py
Python
rackspace/heat_store/catalog/tests.py
rohithkumar-rackspace/rcbops
fb690bc528499bbf9aebba3ab0cce0b4dffd9e35
[ "Apache-2.0" ]
null
null
null
rackspace/heat_store/catalog/tests.py
rohithkumar-rackspace/rcbops
fb690bc528499bbf9aebba3ab0cce0b4dffd9e35
[ "Apache-2.0" ]
null
null
null
rackspace/heat_store/catalog/tests.py
rohithkumar-rackspace/rcbops
fb690bc528499bbf9aebba3ab0cce0b4dffd9e35
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import unittest import mox import six.moves.urllib.request as urlrequest from six import StringIO from solution import Solution if __name__ == '__main__': unittest.main()
39.795699
80
0.599838
5a13d8b3614f878639aab1f5c25f37f50a754ad3
17
py
Python
tests/errors/semantic/ex4.py
toddrme2178/pyccel
deec37503ab0c5d0bcca1a035f7909f7ce8ef653
[ "MIT" ]
null
null
null
tests/errors/semantic/ex4.py
toddrme2178/pyccel
deec37503ab0c5d0bcca1a035f7909f7ce8ef653
[ "MIT" ]
null
null
null
tests/errors/semantic/ex4.py
toddrme2178/pyccel
deec37503ab0c5d0bcca1a035f7909f7ce8ef653
[ "MIT" ]
null
null
null
x is 1 y is None
5.666667
9
0.647059
5a15278549975dbd09dff5e97bcd011523d42479
4,784
py
Python
GetTopK.py
unsuthee/SemanticHashingWeekSupervision
2b2498c70ad3184203855222efde861211edcaea
[ "MIT" ]
19
2018-10-30T08:36:49.000Z
2020-09-11T08:08:47.000Z
GetTopK.py
unsuthee/SemanticHashingWeekSupervision
2b2498c70ad3184203855222efde861211edcaea
[ "MIT" ]
1
2019-10-12T07:03:06.000Z
2020-03-08T09:22:00.000Z
GetTopK.py
unsuthee/SemanticHashingWeekSupervision
2b2498c70ad3184203855222efde861211edcaea
[ "MIT" ]
6
2018-09-05T09:07:34.000Z
2020-04-07T16:58:08.000Z
################################################################################################################ # Author: Suthee Chaidaroon # schaidaroon@scu.edu ################################################################################################################ import numpy as np import os from utils impo...
36.519084
114
0.567517
5a16e96d11bf3bbabd290d8e7eb17ada9e705ea1
1,065
py
Python
migrate_from_fnordcredit.py
stratum0/Matekasse
9b48a8a07978a150e1df1b13b394791044cce82e
[ "MIT" ]
1
2019-07-13T16:25:06.000Z
2019-07-13T16:25:06.000Z
migrate_from_fnordcredit.py
stratum0/Matekasse
9b48a8a07978a150e1df1b13b394791044cce82e
[ "MIT" ]
10
2020-01-09T16:14:19.000Z
2021-03-07T17:04:30.000Z
migrate_from_fnordcredit.py
stratum0/Matekasse
9b48a8a07978a150e1df1b13b394791044cce82e
[ "MIT" ]
1
2021-06-01T07:21:03.000Z
2021-06-01T07:21:03.000Z
from matekasse import create_app, db from matekasse.models import User, Transaction import sqlite3 import argparse parser = argparse.ArgumentParser(allow_abbrev=False) parser.add_argument("-p", "--path", action='store', type=str, required=True, help="Path to fnordcredit database") inp = parser.parse_args() app = cre...
25.97561
113
0.650704
5a17b8b4d053d2409ae3602977dee83dcbebc0b2
4,340
py
Python
scripts/lc/ARES/testing/run_rose_tool.py
ouankou/rose
76f2a004bd6d8036bc24be2c566a14e33ba4f825
[ "BSD-3-Clause" ]
488
2015-01-09T08:54:48.000Z
2022-03-30T07:15:46.000Z
scripts/lc/ARES/testing/run_rose_tool.py
ouankou/rose
76f2a004bd6d8036bc24be2c566a14e33ba4f825
[ "BSD-3-Clause" ]
174
2015-01-28T18:41:32.000Z
2022-03-31T16:51:05.000Z
scripts/lc/ARES/testing/run_rose_tool.py
ouankou/rose
76f2a004bd6d8036bc24be2c566a14e33ba4f825
[ "BSD-3-Clause" ]
146
2015-04-27T02:48:34.000Z
2022-03-04T07:32:53.000Z
#!/usr/bin/env python """Runs a ROSE tool. If the tool does not return status 0, then runs the corresponding non-ROSE compiler. Records whether the tool succeeded, in passed.txt and failed.txt, but always returns status 0. """ import argparse import inspect import os from support.local_logging import Logger from su...
41.333333
118
0.653917
5a18641e63b3fcad6914df89d4ba92c48cbaed17
951
py
Python
source/odp/migrations/0003_auto_20201121_0919.py
kssvrk/BhoonidhiODP
e222087629250ea4ccd1ae8d8903d9ff400c13b4
[ "BSD-3-Clause" ]
null
null
null
source/odp/migrations/0003_auto_20201121_0919.py
kssvrk/BhoonidhiODP
e222087629250ea4ccd1ae8d8903d9ff400c13b4
[ "BSD-3-Clause" ]
null
null
null
source/odp/migrations/0003_auto_20201121_0919.py
kssvrk/BhoonidhiODP
e222087629250ea4ccd1ae8d8903d9ff400c13b4
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 3.1.2 on 2020-11-21 09:19 from django.db import migrations, models
32.793103
114
0.59306
5a18bfbbcf6c30bc2b6197bebec5c6f5638d264b
935
py
Python
test/auth/test_client_credentials.py
membranepotential/mendeley-python-sdk
0336f0164f4d409309e813cbd0140011b5b2ff8f
[ "Apache-2.0" ]
103
2015-01-12T00:40:51.000Z
2022-03-29T07:02:06.000Z
test/auth/test_client_credentials.py
membranepotential/mendeley-python-sdk
0336f0164f4d409309e813cbd0140011b5b2ff8f
[ "Apache-2.0" ]
26
2015-01-10T04:08:41.000Z
2021-02-05T16:31:37.000Z
test/auth/test_client_credentials.py
membranepotential/mendeley-python-sdk
0336f0164f4d409309e813cbd0140011b5b2ff8f
[ "Apache-2.0" ]
43
2015-03-04T18:11:06.000Z
2022-03-13T02:33:34.000Z
from oauthlib.oauth2 import InvalidClientError, MissingTokenError import pytest from test import configure_mendeley, cassette
34.62963
115
0.764706
5a18ed1bc8e6b13c94274ea7e8252580407f9a6b
338
py
Python
problem/01000~09999/06137/6137.py3.py
njw1204/BOJ-AC
1de41685725ae4657a7ff94e413febd97a888567
[ "MIT" ]
1
2019-04-19T16:37:44.000Z
2019-04-19T16:37:44.000Z
problem/01000~09999/06137/6137.py3.py
njw1204/BOJ-AC
1de41685725ae4657a7ff94e413febd97a888567
[ "MIT" ]
1
2019-04-20T11:42:44.000Z
2019-04-20T11:42:44.000Z
problem/01000~09999/06137/6137.py3.py
njw1204/BOJ-AC
1de41685725ae4657a7ff94e413febd97a888567
[ "MIT" ]
3
2019-04-19T16:37:47.000Z
2021-10-25T00:45:00.000Z
s=[] for i in range(int(input())): s.append(input()) cnt=0 while s: flag=True for i in range(len(s)//2): if s[i]<s[-(i+1)]: print(s[0],end='') s.pop(0) flag=False break elif s[-(i+1)]<s[i]: print(s[-1],end='') s.pop() flag=False break if flag: print(s[-1],end='') s.pop() cnt+=1 if ...
15.363636
29
0.52071
5a1bae372e9a9d499e2d0814cd4b789a6fdb51ad
2,072
py
Python
test/test_thirty.py
jakubtuchol/dailycodingproblem
9f0f3193f1746e949e16febace5aa5622dc5d4dc
[ "MIT" ]
1
2020-10-13T20:54:37.000Z
2020-10-13T20:54:37.000Z
test/test_thirty.py
jakubtuchol/dailycodingproblem
9f0f3193f1746e949e16febace5aa5622dc5d4dc
[ "MIT" ]
null
null
null
test/test_thirty.py
jakubtuchol/dailycodingproblem
9f0f3193f1746e949e16febace5aa5622dc5d4dc
[ "MIT" ]
null
null
null
from src.thirty import edit_distance from src.thirty import find_second_largest_node from src.thirty import make_palindrome from src.thirty import powerset from src.data_structures import BinaryNode
22.769231
55
0.605695
5a1be255168c22e03a6a98004add6394315035a9
3,947
py
Python
src/google_music_proto/musicmanager/utils.py
ddboline/google-music-proto
d3af3a1fe911edcd083482c9a6e8bde5a2902462
[ "MIT" ]
null
null
null
src/google_music_proto/musicmanager/utils.py
ddboline/google-music-proto
d3af3a1fe911edcd083482c9a6e8bde5a2902462
[ "MIT" ]
null
null
null
src/google_music_proto/musicmanager/utils.py
ddboline/google-music-proto
d3af3a1fe911edcd083482c9a6e8bde5a2902462
[ "MIT" ]
null
null
null
__all__ = [ 'generate_client_id', 'get_album_art', 'get_transcoder', 'transcode_to_mp3', ] import os import shutil import subprocess from base64 import b64encode from binascii import unhexlify from hashlib import md5 import audio_metadata # The id is found by: getting md5sum of audio, base64 encode md5sum, remo...
23.777108
91
0.701292
5a1c4a115bd07e61146d8a14b7bb3639da60f1ea
8,731
py
Python
Other/SocialNetwork/Solver.py
lesyk/Evolife
8e3dd1aab84061f7ce082f3a4b1bac0b2e31bc4a
[ "MIT" ]
null
null
null
Other/SocialNetwork/Solver.py
lesyk/Evolife
8e3dd1aab84061f7ce082f3a4b1bac0b2e31bc4a
[ "MIT" ]
null
null
null
Other/SocialNetwork/Solver.py
lesyk/Evolife
8e3dd1aab84061f7ce082f3a4b1bac0b2e31bc4a
[ "MIT" ]
null
null
null
## {{{ http://code.activestate.com/recipes/303396/ (r1) '''equation solver using attributes and introspection''' from __future__ import division ## end of http://code.activestate.com/recipes/303396/ }}} ######### Example ############ ##from math import cos ## ##def toto(x,A): ## return A-cos(x) ## ##...
31.293907
195
0.611499
5a1c596e4aa4f0daea1821382fed5edc2f1a2f2c
15,459
py
Python
server/graph.py
Alpacron/vertex-cover
cfdace128f1578f9613e30990b9a87cc64ffb988
[ "MIT" ]
null
null
null
server/graph.py
Alpacron/vertex-cover
cfdace128f1578f9613e30990b9a87cc64ffb988
[ "MIT" ]
15
2021-04-03T08:28:58.000Z
2021-06-07T15:08:08.000Z
server/graph.py
Alpacron/vertex-cover
cfdace128f1578f9613e30990b9a87cc64ffb988
[ "MIT" ]
1
2021-05-21T13:16:51.000Z
2021-05-21T13:16:51.000Z
import json import random
37.982801
113
0.559545
5a1caac07eb9f441668b6c4d0592a3fd8fa4aefc
576
py
Python
ex4.py
AyeAyeZin/python_exercises
77079dcd7809dd2967180ffd30df0166dd53edb4
[ "MIT" ]
null
null
null
ex4.py
AyeAyeZin/python_exercises
77079dcd7809dd2967180ffd30df0166dd53edb4
[ "MIT" ]
null
null
null
ex4.py
AyeAyeZin/python_exercises
77079dcd7809dd2967180ffd30df0166dd53edb4
[ "MIT" ]
null
null
null
cars=100 cars_in_space=5 drivers=20 pasengers=70 car_not_driven=cars-drivers cars_driven=drivers carpool_capacity=cars_driven*space_in_a_car average_passengers_percar=passengers/cars_driven print("There are", cars,"cars availble") print("There are only",drivers,"drivers availble") print("There will be",car_not_driven,"...
36
72
0.805556
5a1cb185553a265ef90a6017854334865e3cc339
304
py
Python
python_docs/05Functions/01Definition.py
Matheus-IT/lang-python-related
dd2e5d9b9f16d3838ba1670fdfcba1fa3fe305e9
[ "MIT" ]
null
null
null
python_docs/05Functions/01Definition.py
Matheus-IT/lang-python-related
dd2e5d9b9f16d3838ba1670fdfcba1fa3fe305e9
[ "MIT" ]
null
null
null
python_docs/05Functions/01Definition.py
Matheus-IT/lang-python-related
dd2e5d9b9f16d3838ba1670fdfcba1fa3fe305e9
[ "MIT" ]
null
null
null
# Definio de funo # Programa principal a = int(input('Digite um valor para A: ')) b = int(input('Digite um valor para B: ')) soma(a, b)
25.333333
63
0.582237
5a1d0c02ec27af98a78a24a6f4e896b2268b6a0f
852
py
Python
python/number.py
Dahercode/datalumni-test
9587400bddafd1c32e97655727c5d3dbbfd17574
[ "MIT" ]
1
2020-02-18T16:56:38.000Z
2020-02-18T16:56:38.000Z
python/number.py
Dahercode/datalumni-test
9587400bddafd1c32e97655727c5d3dbbfd17574
[ "MIT" ]
null
null
null
python/number.py
Dahercode/datalumni-test
9587400bddafd1c32e97655727c5d3dbbfd17574
[ "MIT" ]
null
null
null
# Your code goes here tab=[] for i in range(1000) : tab.append(i) tab2=[] for i in range(len(tab)): if sum([ int(c) for c in str(tab[i]) ]) <= 10: tab2.append(tab[i]) tab3=[] for i in range(len(tab2)): a=str(tab2[i]) if a[len(a)-2] == '4': tab3.append(tab2[i]) tab4=[] for i in range(l...
18.933333
53
0.543427
5a1d385aaac2b104c89e97a052215f1dccd44141
3,885
py
Python
backend/src/baserow/contrib/database/migrations/0016_token_tokenpermission.py
ashishdhngr/baserow
b098678d2165eb7c42930ee24dc6753a3cb520c3
[ "MIT" ]
null
null
null
backend/src/baserow/contrib/database/migrations/0016_token_tokenpermission.py
ashishdhngr/baserow
b098678d2165eb7c42930ee24dc6753a3cb520c3
[ "MIT" ]
null
null
null
backend/src/baserow/contrib/database/migrations/0016_token_tokenpermission.py
ashishdhngr/baserow
b098678d2165eb7c42930ee24dc6753a3cb520c3
[ "MIT" ]
null
null
null
# Generated by Django 2.2.11 on 2020-10-23 08:35 from django.conf import settings from django.db import migrations, models import django.db.models.deletion
32.647059
88
0.344916
5a1f561a631ec5529e54bc7090d1958be5eb6f6f
1,639
py
Python
setup.py
davidharvey1986/rrg
26b4658f14279af21af1a61d57e9936daf315a71
[ "MIT" ]
2
2019-11-18T12:51:09.000Z
2019-12-11T03:13:51.000Z
setup.py
davidharvey1986/rrg
26b4658f14279af21af1a61d57e9936daf315a71
[ "MIT" ]
5
2017-06-09T10:06:27.000Z
2019-07-19T11:28:18.000Z
setup.py
davidharvey1986/rrg
26b4658f14279af21af1a61d57e9936daf315a71
[ "MIT" ]
2
2017-07-19T15:48:33.000Z
2017-08-09T16:07:20.000Z
#!/usr/local/bin/python3 import sys,os,string,glob,subprocess from setuptools import setup,Extension from setuptools.command.build_ext import build_ext from setuptools.command.install import install import numpy long_description = """\ This module uses the RRG ...
32.78
101
0.494814
5a2032ec76e617ec97b415d06f3a42408d534a65
635
py
Python
restbed/core/api.py
mr-tenders/restbed
68d36536286203048ce01f1467d3db7ee108bebb
[ "MIT" ]
null
null
null
restbed/core/api.py
mr-tenders/restbed
68d36536286203048ce01f1467d3db7ee108bebb
[ "MIT" ]
null
null
null
restbed/core/api.py
mr-tenders/restbed
68d36536286203048ce01f1467d3db7ee108bebb
[ "MIT" ]
null
null
null
""" restbed core api """ import pyinsane2 from typing import List
22.678571
63
0.63937
5a20458f16a895f14563ad81b494f0d3c1292dbf
736
py
Python
secure_notes_client/thread_pool.py
rlee287/secure-notes-client
56d5fcce1d2eeb46de22aac63131fe7214b6f185
[ "MIT" ]
null
null
null
secure_notes_client/thread_pool.py
rlee287/secure-notes-client
56d5fcce1d2eeb46de22aac63131fe7214b6f185
[ "MIT" ]
4
2019-07-10T01:34:12.000Z
2019-08-20T01:52:31.000Z
secure_notes_client/thread_pool.py
rlee287/secure-notes-client
56d5fcce1d2eeb46de22aac63131fe7214b6f185
[ "MIT" ]
null
null
null
from concurrent.futures import ThreadPoolExecutor import time from PySide2.QtCore import QCoreApplication thread_pool=None #TODO: find a less hacky way to keep events processed
26.285714
58
0.762228
5a2274118fccaff1a7fc9becbc4b24e208209e91
10,463
py
Python
Fairness_attack/data_utils.py
Ninarehm/attack
0d5a6b842d4e81484540151d879036e9fe2184f1
[ "MIT" ]
8
2021-03-08T17:13:42.000Z
2022-03-31T00:57:53.000Z
Fairness_attack/data_utils.py
lutai14/attack
773024c7b86be112521a2243f2f809a54891c81f
[ "MIT" ]
null
null
null
Fairness_attack/data_utils.py
lutai14/attack
773024c7b86be112521a2243f2f809a54891c81f
[ "MIT" ]
1
2022-02-10T22:36:11.000Z
2022-02-10T22:36:11.000Z
from __future__ import division from __future__ import print_function from __future__ import absolute_import from __future__ import unicode_literals import json import numpy as np import scipy.sparse as sparse import defenses import upper_bounds # Can speed this up if necessary # Can speed this up if necessary ...
31.610272
136
0.581
5a23d3f4e52679a350233bbde834e4fd8f3310ec
74
py
Python
pytracetable/__init__.py
filwaitman/pytracetable
eb884953e179fc65677a9e3b3c70fde1b1439ccb
[ "MIT" ]
1
2016-02-10T20:28:00.000Z
2016-02-10T20:28:00.000Z
pytracetable/__init__.py
filwaitman/pytracetable
eb884953e179fc65677a9e3b3c70fde1b1439ccb
[ "MIT" ]
1
2020-05-27T18:12:10.000Z
2020-05-27T18:12:10.000Z
pytracetable/__init__.py
filwaitman/pytracetable
eb884953e179fc65677a9e3b3c70fde1b1439ccb
[ "MIT" ]
null
null
null
from pytracetable.core import tracetable __all__ = [ 'tracetable', ]
12.333333
40
0.716216
5a24938eab3876854f2631917fd72abe26cefe64
1,518
py
Python
quandl_data_retriever/server.py
fabiomolinar/quandl-data-retriever
d9359922cb222ac519f7d9e4dd892bbcf6b1b2d0
[ "MIT" ]
null
null
null
quandl_data_retriever/server.py
fabiomolinar/quandl-data-retriever
d9359922cb222ac519f7d9e4dd892bbcf6b1b2d0
[ "MIT" ]
null
null
null
quandl_data_retriever/server.py
fabiomolinar/quandl-data-retriever
d9359922cb222ac519f7d9e4dd892bbcf6b1b2d0
[ "MIT" ]
null
null
null
""" Server module Quandl API limits: Authenticated users have a limit of 300 calls per 10 seconds, 2,000 calls per 10 minutes and a limit of 50,000 calls per day. """ import urllib import logging from twisted.internet import reactor from twisted.web.client import Agent, readBody from . import settings from . import...
26.172414
94
0.614625
5a24a53e97cdff184ba28a85fbb3b5ee4e244277
4,696
py
Python
actingweb/deprecated_db_gae/db_subscription_diff.py
gregertw/actingweb
e1c8f66451f547c920c64c4e2a702698e3a0d299
[ "BSD-3-Clause" ]
null
null
null
actingweb/deprecated_db_gae/db_subscription_diff.py
gregertw/actingweb
e1c8f66451f547c920c64c4e2a702698e3a0d299
[ "BSD-3-Clause" ]
null
null
null
actingweb/deprecated_db_gae/db_subscription_diff.py
gregertw/actingweb
e1c8f66451f547c920c64c4e2a702698e3a0d299
[ "BSD-3-Clause" ]
null
null
null
from builtins import object from google.appengine.ext import ndb import logging """ DbSubscriptionDiff handles all db operations for a subscription diff DbSubscriptionDiffList handles list of subscriptions diffs Google datastore for google is used as a backend. """ __all__ = [ 'DbSubscriptionDiff', ...
33.304965
134
0.5296
5a24c50dca0ab02ce229e044f402eb5085a1288a
1,703
py
Python
azure-mgmt-iothub/azure/mgmt/iothub/models/ip_filter_rule.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
azure-mgmt-iothub/azure/mgmt/iothub/models/ip_filter_rule.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-mgmt-iothub/azure/mgmt/iothub/models/ip_filter_rule.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2019-06-17T22:18:23.000Z
2019-06-17T22:18:23.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
36.234043
77
0.603641
5a29b2a7e94aa859d4fcd87428416a71deaf7e01
551
py
Python
4344.py
yzkim9501/Baekjoon
222e55d0bd65cbb66f1f5486652ad8c697817844
[ "Unlicense" ]
null
null
null
4344.py
yzkim9501/Baekjoon
222e55d0bd65cbb66f1f5486652ad8c697817844
[ "Unlicense" ]
null
null
null
4344.py
yzkim9501/Baekjoon
222e55d0bd65cbb66f1f5486652ad8c697817844
[ "Unlicense" ]
null
null
null
# 90% . . # C . # N(1 N 1000, N ) , N . 0 , 100 . # . t=int(input()) for _ in range(t): a=list(map(int,input().split())) c=0 for j in range(1,a[0]+1): if a[j]>avg(a): c+=1 print(str('{:,.3f}'.format(round(c/a[0]*100,3)))+"%")
25.045455
114
0.555354
5a29f8551225fbef514f169502222d4f73af2984
4,531
py
Python
tests/dualtor/test_standby_tor_upstream_mux_toggle.py
AndoniSanguesa/sonic-mgmt
bac8b9bf7c51008ceab75e83ce68fa9473a7d2ec
[ "Apache-2.0" ]
1
2021-09-24T08:40:57.000Z
2021-09-24T08:40:57.000Z
tests/dualtor/test_standby_tor_upstream_mux_toggle.py
AndoniSanguesa/sonic-mgmt
bac8b9bf7c51008ceab75e83ce68fa9473a7d2ec
[ "Apache-2.0" ]
null
null
null
tests/dualtor/test_standby_tor_upstream_mux_toggle.py
AndoniSanguesa/sonic-mgmt
bac8b9bf7c51008ceab75e83ce68fa9473a7d2ec
[ "Apache-2.0" ]
null
null
null
import pytest import logging import ipaddress import json import re import time from tests.common.dualtor.dual_tor_mock import * from tests.common.helpers.assertions import pytest_assert as pt_assert from tests.common.dualtor.dual_tor_utils import rand_selected_interface, verify_upstream_traffic, get_crm_nexthop_counte...
41.568807
154
0.670492
5a2a01adbfb1b632775069e902a5a1facd9c2f69
3,308
py
Python
birdsong_recognition/dataset.py
YingyingF/birdsong_recognition
4f8a2ccb900898a02d4454a5f1c206125f23fa44
[ "Apache-2.0" ]
null
null
null
birdsong_recognition/dataset.py
YingyingF/birdsong_recognition
4f8a2ccb900898a02d4454a5f1c206125f23fa44
[ "Apache-2.0" ]
null
null
null
birdsong_recognition/dataset.py
YingyingF/birdsong_recognition
4f8a2ccb900898a02d4454a5f1c206125f23fa44
[ "Apache-2.0" ]
null
null
null
# AUTOGENERATED! DO NOT EDIT! File to edit: dataset.ipynb (unless otherwise specified). __all__ = ['load_mp3', 'get_sample_label', 'preprocess_file', 'pad_by_zeros', 'split_file_by_window_size', 'wrapper_split_file_by_window_size', 'create_dataset_fixed_size', 'get_spectrogram', 'add_channel_dim'] # Cell ...
39.380952
145
0.703144
5a2a02d3be8c76f34df0d751d6f767892052893d
492
py
Python
Lib/objc/_SplitKit.py
kanishpatel/Pyto
feec7a1a54f635a6375fa7ede074ff35afbfbb95
[ "MIT" ]
null
null
null
Lib/objc/_SplitKit.py
kanishpatel/Pyto
feec7a1a54f635a6375fa7ede074ff35afbfbb95
[ "MIT" ]
null
null
null
Lib/objc/_SplitKit.py
kanishpatel/Pyto
feec7a1a54f635a6375fa7ede074ff35afbfbb95
[ "MIT" ]
null
null
null
''' Classes from the 'SplitKit' framework. ''' try: from rubicon.objc import ObjCClass except ValueError: PodsDummy_SplitKit = _Class('PodsDummy_SplitKit') InstantPanGestureRecognizer = _Class('SplitKit.InstantPanGestureRecognizer') HandleView = _Class('SplitKit.HandleView') SPKSplitViewController = _Class(...
21.391304
76
0.731707
5a2a102330d36f9fe8e0e169c14680aef835ac84
3,743
py
Python
wiki_music/gui_lib/search_and_replace.py
marian-code/wikipedia-music-tags
e8836c23b7b7e43661b59afd1bfc18d381b95d4a
[ "MIT" ]
5
2019-01-28T21:53:14.000Z
2020-06-27T08:52:36.000Z
wiki_music/gui_lib/search_and_replace.py
marian-code/wikipedia-music-tags
e8836c23b7b7e43661b59afd1bfc18d381b95d4a
[ "MIT" ]
4
2019-01-15T16:33:59.000Z
2020-05-20T08:09:02.000Z
wiki_music/gui_lib/search_and_replace.py
marian-code/wikipedia-music-tags
e8836c23b7b7e43661b59afd1bfc18d381b95d4a
[ "MIT" ]
1
2020-04-15T11:00:20.000Z
2020-04-15T11:00:20.000Z
"""Module controling search and replace tab.""" import logging from wiki_music.constants import GUI_HEADERS from wiki_music.gui_lib import BaseGui, CheckableListModel from wiki_music.gui_lib.qt_importer import QMessageBox, QPushButton, QIcon, QStyle __all__ = ["Replacer"] log = logging.getLogger(__name__) log.debug(...
35.647619
82
0.6428
5a2a33ed323999913f0d3da3c440981176e3bcd7
159
py
Python
Dashboard with Django/updates/forms.py
reddyprasade/Data-Analysis-with-Python-
2440e23486856eea5556c8262467b3a618032bc2
[ "MIT" ]
1
2021-06-29T23:15:05.000Z
2021-06-29T23:15:05.000Z
Dashboard with Django/updates/forms.py
reddyprasade/Data-Analysis-with-Python-
2440e23486856eea5556c8262467b3a618032bc2
[ "MIT" ]
null
null
null
Dashboard with Django/updates/forms.py
reddyprasade/Data-Analysis-with-Python-
2440e23486856eea5556c8262467b3a618032bc2
[ "MIT" ]
1
2021-12-20T10:04:53.000Z
2021-12-20T10:04:53.000Z
from django.forms import ModelForm from updates.models import Post
17.666667
34
0.72956
5a2a74b028d05464645069f119b32c24c0d83261
1,965
py
Python
main.py
neuroidss/eeglstm
693d39347afb3c7fa8272e813ce1f841b892a212
[ "MIT" ]
21
2018-11-17T11:46:46.000Z
2021-12-15T01:54:31.000Z
main.py
neuroidss/eeglstm
693d39347afb3c7fa8272e813ce1f841b892a212
[ "MIT" ]
1
2018-05-15T14:04:49.000Z
2018-05-15T14:04:49.000Z
main.py
neuroidss/eeglstm
693d39347afb3c7fa8272e813ce1f841b892a212
[ "MIT" ]
4
2018-12-21T03:16:20.000Z
2020-05-02T09:37:39.000Z
#%% [markdown] # # We will load EEG data from the lab and attemp to build a classifier that distinguishes between learners and non-learners #%% import mne import numpy as np import os.path import glob import re import pandas as pd # try to enable cuda support to speed up filtering, make sure the MNE_USE_C...
31.190476
156
0.707379
5a2a96f1206233db3ee9862dbb3187153e48e3d9
241
py
Python
ex066.py
dsjocimar/python
5716f46a9fa7f64aa78a39df9c262c5392571340
[ "MIT" ]
null
null
null
ex066.py
dsjocimar/python
5716f46a9fa7f64aa78a39df9c262c5392571340
[ "MIT" ]
null
null
null
ex066.py
dsjocimar/python
5716f46a9fa7f64aa78a39df9c262c5392571340
[ "MIT" ]
null
null
null
# Exerccio 066 soma = total = 0 while True: n = int(input('Digite um valor [999 para parar]: ')) if n == 999: break soma += n total += 1 print(f'O total de nmeros digitados foi {total} e a soma deles vale {soma}')
24.1
78
0.59751
5a2aef76ad354c4dafd74c644c7cdf56a923d14d
749
py
Python
test/test_api_data_utils.py
onap/optf-osdf
2b9e7f4fca3d510a201283a8561f6ff3424f5fd6
[ "Apache-2.0" ]
3
2019-04-15T13:33:57.000Z
2019-10-21T17:19:19.000Z
test/test_api_data_utils.py
onap/optf-osdf
2b9e7f4fca3d510a201283a8561f6ff3424f5fd6
[ "Apache-2.0" ]
null
null
null
test/test_api_data_utils.py
onap/optf-osdf
2b9e7f4fca3d510a201283a8561f6ff3424f5fd6
[ "Apache-2.0" ]
null
null
null
import json import os from osdf.utils import api_data_utils from collections import defaultdict BASE_DIR = os.path.dirname(__file__) with open(os.path.join(BASE_DIR, "placement-tests/request.json")) as json_data: req_json = json.load(json_data)
34.045455
147
0.750334
5a2b70864ff65608d3a0ed95eba0ce2781b1326a
10,396
py
Python
Model_SIR/no.py
AP-2020-1S/covid-19-guaya-kilera
f307d17b6540e881a93596ecd4b7857f5d7d9a18
[ "CC-BY-3.0", "MIT" ]
null
null
null
Model_SIR/no.py
AP-2020-1S/covid-19-guaya-kilera
f307d17b6540e881a93596ecd4b7857f5d7d9a18
[ "CC-BY-3.0", "MIT" ]
null
null
null
Model_SIR/no.py
AP-2020-1S/covid-19-guaya-kilera
f307d17b6540e881a93596ecd4b7857f5d7d9a18
[ "CC-BY-3.0", "MIT" ]
null
null
null
import numpy as np import pandas as pd import matplotlib.pyplot as plt from scipy import integrate, optimize from scipy.signal import savgol_filter from dane import population as popu dias_restar = 4 # Los ltimos das de informacin que no se tienen en cuenta dias_pred = 31 # Das sobre los cules se har la prediccin a ...
47.907834
194
0.60379
5a2c7e2ea60e80d086779df6d65e7f9d20374ff7
733
py
Python
backend/cw_backend/views/admin_courses.py
veronikks/pyladies-courseware
e1151a704159141e0b1cb649c17cfdd5ca5f689b
[ "MIT" ]
null
null
null
backend/cw_backend/views/admin_courses.py
veronikks/pyladies-courseware
e1151a704159141e0b1cb649c17cfdd5ca5f689b
[ "MIT" ]
null
null
null
backend/cw_backend/views/admin_courses.py
veronikks/pyladies-courseware
e1151a704159141e0b1cb649c17cfdd5ca5f689b
[ "MIT" ]
null
null
null
import aiohttp from aiohttp import web from aiohttp_session import get_session import asyncio import logging from pathlib import Path logger = logging.getLogger(__name__) routes = web.RouteTableDef()
28.192308
76
0.721692
5a2e4a10cc2ee782907da20e988df75437125628
751
py
Python
duplicate_csv.py
AronFreyr/de1-project
9e95346db9a6955ee017d59c73c83251d529d8ff
[ "Apache-2.0" ]
null
null
null
duplicate_csv.py
AronFreyr/de1-project
9e95346db9a6955ee017d59c73c83251d529d8ff
[ "Apache-2.0" ]
null
null
null
duplicate_csv.py
AronFreyr/de1-project
9e95346db9a6955ee017d59c73c83251d529d8ff
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[7]: import os write_to_csv_file = 'million_song_subset.csv' csv_file_read = open(write_to_csv_file,'r') csv_file_write = open(write_to_csv_file,'a') while True: next_line = csv_file_read.readline() if not next_line: break csv_file_size = os.pat...
17.465116
64
0.660453
5a2e5a469bcfb11fd51f01901cb6f4cfecb26b08
4,444
py
Python
src/main/python/graphing-scripts/utils.py
DistributedSystemsGroup/cluster-scheduler-simulator
9733dc644736dd0f8c2e1baff09efeb680d6a4d8
[ "BSD-3-Clause" ]
2
2018-06-28T04:31:55.000Z
2019-06-24T02:18:24.000Z
src/main/python/graphing-scripts/utils.py
DistributedSystemsGroup/cluster-scheduler-simulator
9733dc644736dd0f8c2e1baff09efeb680d6a4d8
[ "BSD-3-Clause" ]
null
null
null
src/main/python/graphing-scripts/utils.py
DistributedSystemsGroup/cluster-scheduler-simulator
9733dc644736dd0f8c2e1baff09efeb680d6a4d8
[ "BSD-3-Clause" ]
3
2017-06-22T11:32:41.000Z
2019-10-28T01:22:26.000Z
# Copyright (c) 2013, Regents of the University of California # All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # Redistributions of source code must retain the above copyright notice, this # list o...
33.666667
84
0.645815
5a2f26092de22be2a78e6f158531b00a44283d31
4,351
py
Python
ror/CopelandVoter.py
jakub-tomczak/ror
cf9ab38a2d66f4816a1289b9726911960059fce7
[ "MIT" ]
null
null
null
ror/CopelandVoter.py
jakub-tomczak/ror
cf9ab38a2d66f4816a1289b9726911960059fce7
[ "MIT" ]
null
null
null
ror/CopelandVoter.py
jakub-tomczak/ror
cf9ab38a2d66f4816a1289b9726911960059fce7
[ "MIT" ]
null
null
null
from typing import List, Tuple import numpy as np import pandas as pd import os import logging
54.3875
154
0.652264
5a2fba5afd104e89bb7c06d80b25ac575e16cde2
2,528
py
Python
app/auth/forms/__init__.py
jg-725/IS219-FlaskAppProject
316aa298eda1bcda766ed085bb6f26ca7da7dfee
[ "BSD-3-Clause" ]
null
null
null
app/auth/forms/__init__.py
jg-725/IS219-FlaskAppProject
316aa298eda1bcda766ed085bb6f26ca7da7dfee
[ "BSD-3-Clause" ]
null
null
null
app/auth/forms/__init__.py
jg-725/IS219-FlaskAppProject
316aa298eda1bcda766ed085bb6f26ca7da7dfee
[ "BSD-3-Clause" ]
null
null
null
from flask_wtf import FlaskForm from wtforms import validators from wtforms.fields import *
32.410256
120
0.679589
5a31ca41c47a23fa18c352e7e70fee2a9750f1a1
11,220
py
Python
tern/analyze/default/dockerfile/lock.py
mzachar/tern
ac9dea4c907f27c9a3b7d85d79806c8fdab1d7e7
[ "BSD-2-Clause" ]
2
2020-05-21T00:00:36.000Z
2020-12-28T20:43:25.000Z
tern/analyze/default/dockerfile/lock.py
mzachar/tern
ac9dea4c907f27c9a3b7d85d79806c8fdab1d7e7
[ "BSD-2-Clause" ]
null
null
null
tern/analyze/default/dockerfile/lock.py
mzachar/tern
ac9dea4c907f27c9a3b7d85d79806c8fdab1d7e7
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (c) 2017-2020 VMware, Inc. All Rights Reserved. # SPDX-License-Identifier: BSD-2-Clause """ Docker specific functions - used when trying to retrieve packages when given a Dockerfile """ import logging import os import re import sys from tern.classes.docker_image import DockerImag...
41.555556
79
0.668717
5a3209a99cbad4e38fb7649cdcdb53c050ccbf17
2,003
py
Python
utils/firebase.py
YangWanjun/sales-encrypt
dcf0975164f60dd53385661029c4a270abdfd30e
[ "Apache-2.0" ]
null
null
null
utils/firebase.py
YangWanjun/sales-encrypt
dcf0975164f60dd53385661029c4a270abdfd30e
[ "Apache-2.0" ]
null
null
null
utils/firebase.py
YangWanjun/sales-encrypt
dcf0975164f60dd53385661029c4a270abdfd30e
[ "Apache-2.0" ]
null
null
null
import os import firebase_admin from firebase_admin import credentials, messaging from django.conf import settings from utils import common, constants logger = common.get_system_logger() cred = credentials.Certificate(os.path.join( settings.BASE_DIR, 'data', 'sales-yang-firebase-adminsdk-2ga7e-17745491...
29.028986
79
0.724413
5a3220a6933b741f74449b702618162293bca339
1,944
py
Python
tests/settings.py
matrixorz/firefly
fb8082ccc525bf7b266960ae49fc0b15e522fd92
[ "MIT" ]
247
2015-04-13T05:58:10.000Z
2021-01-21T07:31:58.000Z
tests/settings.py
qiluosheng/firefly
fb8082ccc525bf7b266960ae49fc0b15e522fd92
[ "MIT" ]
57
2015-04-13T15:10:50.000Z
2016-04-08T09:15:27.000Z
tests/settings.py
qiluosheng/firefly
fb8082ccc525bf7b266960ae49fc0b15e522fd92
[ "MIT" ]
94
2015-04-12T06:03:30.000Z
2020-05-11T14:26:56.000Z
# coding=utf-8 DEBUG = True TESTING = True SECRET_KEY = 'secret_key for test' # mongodb MONGODB_SETTINGS = { 'db': 'firefly_test', 'username': '', 'password': '', 'host': '127.0.0.1', 'port': 27017 } # redis cache CACHE_TYPE = 'redis' CACHE_REDIS_HOST = '127.0.0.1' CACHE_REDIS_PORT = 6379 CACHE_R...
25.578947
67
0.679012
5a3481b2ed60e03ed802eb9ef17136804b5ee7a0
981
py
Python
pyhack/boris_stag.py
Krissmedt/runko
073306de9284f1502d0538d33545bc14c80e8b93
[ "MIT" ]
null
null
null
pyhack/boris_stag.py
Krissmedt/runko
073306de9284f1502d0538d33545bc14c80e8b93
[ "MIT" ]
null
null
null
pyhack/boris_stag.py
Krissmedt/runko
073306de9284f1502d0538d33545bc14c80e8b93
[ "MIT" ]
null
null
null
import numpy as np from pyhack.py_runko_aux import * from pyhack.boris import *
18.509434
48
0.579001
5a36eda2f990b0b613ca5b9070e7a670400461bc
1,806
py
Python
mbed_connector_api/tests/mock_data.py
ARMmbed/mbed-connector-python
a5024a01dc67cc192c8bf7a70b251fcf0a3f279b
[ "Apache-2.0" ]
2
2017-01-05T07:16:03.000Z
2018-09-04T02:26:19.000Z
mbed_connector_api/tests/mock_data.py
ARMmbed/mbed-connector-python
a5024a01dc67cc192c8bf7a70b251fcf0a3f279b
[ "Apache-2.0" ]
13
2016-02-29T17:31:56.000Z
2017-02-07T22:46:17.000Z
mbed_connector_api/tests/mock_data.py
ARMmbed/mbed-connector-python
a5024a01dc67cc192c8bf7a70b251fcf0a3f279b
[ "Apache-2.0" ]
2
2017-02-07T22:10:41.000Z
2017-03-06T06:38:58.000Z
# Copyright 2014-2015 ARM Limited # # Licensed under the Apache License, Version 2.0 # See LICENSE file for details.
42
448
0.613511
5a37802b395a4a964c1285e03e992f8b1712b575
2,134
py
Python
examples/demo/eager_demo/src/demo_1_pybullet.py
eager-dev/eager
f10ccbd7452acb3a29881ecd95c759f632c91da9
[ "Apache-2.0" ]
16
2021-07-02T14:48:53.000Z
2022-02-23T02:53:01.000Z
examples/demo/eager_demo/src/demo_1_pybullet.py
eager-dev/eager
f10ccbd7452acb3a29881ecd95c759f632c91da9
[ "Apache-2.0" ]
37
2021-06-30T12:10:29.000Z
2022-02-02T09:46:34.000Z
examples/demo/eager_demo/src/demo_1_pybullet.py
eager-dev/eager
f10ccbd7452acb3a29881ecd95c759f632c91da9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import rospy # Import eager packages from eager_core.utils.file_utils import launch_roscore, load_yaml from eager_core.eager_env import EagerEnv from eager_core.objects import Object from eager_core.wrappers.flatten import Flatten from eager_bridge_pybullet.pybullet_engine import PyBulletEngine...
33.873016
110
0.627929
5a3924093bca8ec08e3a6779656c4151c0bb55bf
3,811
py
Python
kerastuner/engine/tuner_utils.py
DL-2020-Shakespeare/keras-tuner
5f35f101883a7884e9521de7db4eb632ab659775
[ "Apache-2.0" ]
1
2021-06-08T01:19:58.000Z
2021-06-08T01:19:58.000Z
kerastuner/engine/tuner_utils.py
DL-2020-Shakespeare/keras-tuner
5f35f101883a7884e9521de7db4eb632ab659775
[ "Apache-2.0" ]
null
null
null
kerastuner/engine/tuner_utils.py
DL-2020-Shakespeare/keras-tuner
5f35f101883a7884e9521de7db4eb632ab659775
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The Keras Tuner Authors # # 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...
31.758333
78
0.680399
5a395024f625042332e48560226cfb73aaa1b4a7
14,129
py
Python
angr/procedures/definitions/win32_d3dcompiler_47.py
r4b3rt/angr
c133cfd4f83ffea2a1d9e064241e9459eaabc55f
[ "BSD-2-Clause" ]
null
null
null
angr/procedures/definitions/win32_d3dcompiler_47.py
r4b3rt/angr
c133cfd4f83ffea2a1d9e064241e9459eaabc55f
[ "BSD-2-Clause" ]
null
null
null
angr/procedures/definitions/win32_d3dcompiler_47.py
r4b3rt/angr
c133cfd4f83ffea2a1d9e064241e9459eaabc55f
[ "BSD-2-Clause" ]
null
null
null
# pylint:disable=line-too-long import logging from ...sim_type import SimTypeFunction, SimTypeShort, SimTypeInt, SimTypeLong, SimTypeLongLong, SimTypeDouble, SimTypeFloat, SimTypePointer, SimTypeChar, SimStruct, SimTypeFixedSizeArray, SimTypeBottom, SimUnion, SimTypeBool from ...calling...
190.932432
1,222
0.737561
5a3bb304d53c998d16ff4c3d532be4b3380720b2
16,392
py
Python
explorer/explorer.py
holarchy/Holon
2a557b300bce10fb2c2ab85a1db4bdfd5df470aa
[ "MIT" ]
null
null
null
explorer/explorer.py
holarchy/Holon
2a557b300bce10fb2c2ab85a1db4bdfd5df470aa
[ "MIT" ]
null
null
null
explorer/explorer.py
holarchy/Holon
2a557b300bce10fb2c2ab85a1db4bdfd5df470aa
[ "MIT" ]
null
null
null
from flask import Flask, render_template, flash, abort, redirect, url_for, request import os import common import json import numbers import urllib.parse import pandas as pd from datetime import datetime from math import log10, floor base_dir = '/home/nick/Data/_ensembles' app = Flask(__name__) app.config['ENV'] = 'de...
37.944444
135
0.586872
5a3c1f4058904f112a823d0ce1fa4d2ba743c174
6,151
py
Python
models/grammateus.py
monotasker/Online-Critical-Pseudepigrapha
456ef828834aeaedda8204a6107729f277063b9f
[ "W3C" ]
1
2017-09-03T12:59:19.000Z
2017-09-03T12:59:19.000Z
models/grammateus.py
OnlineCriticalPseudepigrapha/Online-Critical-Pseudepigrapha
456ef828834aeaedda8204a6107729f277063b9f
[ "W3C" ]
18
2018-05-11T17:08:48.000Z
2018-06-29T20:15:37.000Z
models/grammateus.py
monotasker/Online-Critical-Pseudepigrapha
456ef828834aeaedda8204a6107729f277063b9f
[ "W3C" ]
1
2017-09-17T16:13:45.000Z
2017-09-17T16:13:45.000Z
#! /usr/bin/python2.7 # -*- coding: utf8 -*- import datetime # from plugin_ajaxselect import AjaxSelect if 0: from gluon import db, Field, auth, IS_EMPTY_OR, IS_IN_DB, current, URL response = current.response response.files.insert(5, URL('static', 'plugin_ajaxselect/plugin_ajaxselect.js...
44.572464
105
0.662656
5a3ccdb8281af1ea0b8a669045afc2025efc659b
12,559
py
Python
interface.py
Kryptagora/pysum
5281d47b7fa4d5500230b6b30797ab1a3adabcc2
[ "MIT" ]
3
2021-01-08T21:07:37.000Z
2021-11-29T19:26:56.000Z
interface.py
Kryptagora/pysum
5281d47b7fa4d5500230b6b30797ab1a3adabcc2
[ "MIT" ]
null
null
null
interface.py
Kryptagora/pysum
5281d47b7fa4d5500230b6b30797ab1a3adabcc2
[ "MIT" ]
null
null
null
import tkinter as tk from tkinter import filedialog from urllib.request import urlopen from pathlib import Path from tkinter import ttk import numpy as np import base64 import io import re from src.theme import theme from src.algorithm import blosum from src.utils import RichText def qopen(path:str): '''Opens and...
40.124601
155
0.597022
5a3d662e5f34dbe67eeb69437b64718da7a2b8ce
4,050
py
Python
view/python_core/movies/colorizer/aux_funcs.py
galizia-lab/pyview
07bef637b0c60fae8830c1b3947e4a7bcd14bb2c
[ "BSD-3-Clause" ]
2
2021-11-07T10:17:16.000Z
2021-11-07T10:17:19.000Z
view/python_core/movies/colorizer/aux_funcs.py
galizia-lab/pyview
07bef637b0c60fae8830c1b3947e4a7bcd14bb2c
[ "BSD-3-Clause" ]
5
2021-11-03T12:43:03.000Z
2021-12-16T10:34:52.000Z
view/python_core/movies/colorizer/aux_funcs.py
galizia-lab/pyview
07bef637b0c60fae8830c1b3947e4a7bcd14bb2c
[ "BSD-3-Clause" ]
1
2021-09-23T15:46:26.000Z
2021-09-23T15:46:26.000Z
import numpy as np import re def apply_colormaps_based_on_mask(mask, data_for_inside_mask, data_for_outside_mask, colormap_inside_mask, colormap_outside_mask): """ Returns the combination of applying two colormaps to two datasets on two mutually exclusive sets of pixels a...
46.551724
123
0.604691
5a3e53b2797ea32423806b35230113ec63c34d58
4,242
py
Python
bigml/tests/create_cluster_steps.py
javinp/python
bdec1e206ed028990503ed4bebcbc7023d3ff606
[ "Apache-2.0" ]
1
2021-06-20T11:51:22.000Z
2021-06-20T11:51:22.000Z
bigml/tests/create_cluster_steps.py
javinp/python
bdec1e206ed028990503ed4bebcbc7023d3ff606
[ "Apache-2.0" ]
null
null
null
bigml/tests/create_cluster_steps.py
javinp/python
bdec1e206ed028990503ed4bebcbc7023d3ff606
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- #!/usr/bin/env python # # Copyright 2012-2015 BigML # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
37.539823
87
0.698963
5a3f02391584923bfc3115e774e687008ccfb69b
3,649
py
Python
tests/ptp_clock_sim_time/test_ptp_clock_sim_time.py
psumesh/cocotbext-eth
39c585a8dd8dcdcfd56822a4f879ef059653757b
[ "MIT" ]
15
2020-11-26T14:40:54.000Z
2022-03-25T06:42:30.000Z
tests/ptp_clock_sim_time/test_ptp_clock_sim_time.py
psumesh/cocotbext-eth
39c585a8dd8dcdcfd56822a4f879ef059653757b
[ "MIT" ]
1
2021-03-24T06:28:20.000Z
2021-03-25T06:10:02.000Z
tests/ptp_clock_sim_time/test_ptp_clock_sim_time.py
psumesh/cocotbext-eth
39c585a8dd8dcdcfd56822a4f879ef059653757b
[ "MIT" ]
7
2020-12-06T09:59:39.000Z
2021-08-25T04:15:37.000Z
#!/usr/bin/env python """ Copyright (c) 2021 Alex Forencich Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merg...
28.960317
107
0.693615
5a3f1fd52edcbc6a770d3bea9dab8192d49a92e5
1,838
py
Python
dex/section/section.py
callmejacob/dexfactory
2de996927ee9f036b2c7fc6cb04f43ac790f35af
[ "BSD-2-Clause" ]
7
2018-06-14T10:40:47.000Z
2021-05-18T08:55:34.000Z
dex/section/section.py
callmejacob/dexfactory
2de996927ee9f036b2c7fc6cb04f43ac790f35af
[ "BSD-2-Clause" ]
1
2020-05-28T08:59:50.000Z
2020-05-28T08:59:50.000Z
dex/section/section.py
callmejacob/dexfactory
2de996927ee9f036b2c7fc6cb04f43ac790f35af
[ "BSD-2-Clause" ]
3
2018-02-28T02:08:06.000Z
2018-09-12T03:09:18.000Z
# -- coding: utf-8 -- from section_base import * from section_map_item import * from section_header import * from section_string_id import * from section_type_id import * from section_proto_id import * from section_field_id import * from section_method_id import * from section_class_def import * from section_type_list...
39.106383
69
0.699674
5a408ec9d28877bdb362b94265d0d74be34141c1
91
py
Python
Code coach problems/Easy/Python/Skee-Ball.py
Djivs/sololearn-code-solutions
7727dd97f79863a88841548770481f6f2abdc7bf
[ "MIT" ]
1
2020-07-27T07:32:57.000Z
2020-07-27T07:32:57.000Z
Code coach problems/Easy/Python/Skee-Ball.py
Djivs/sololearn-code-solutions
7727dd97f79863a88841548770481f6f2abdc7bf
[ "MIT" ]
null
null
null
Code coach problems/Easy/Python/Skee-Ball.py
Djivs/sololearn-code-solutions
7727dd97f79863a88841548770481f6f2abdc7bf
[ "MIT" ]
1
2020-11-07T12:45:21.000Z
2020-11-07T12:45:21.000Z
a = int(input()) b = int(input()) if a >=b*12: print("Buy it!") else: print("Try again")
13
19
0.56044
5a41217fc99d7ef188d90f55041a7803b426c258
22
py
Python
gsb/rest/__init__.py
pfrancois/grisbi_django
4e27149522847c78ab9c0f0a06f0b1d371f7c205
[ "BSD-3-Clause" ]
null
null
null
gsb/rest/__init__.py
pfrancois/grisbi_django
4e27149522847c78ab9c0f0a06f0b1d371f7c205
[ "BSD-3-Clause" ]
null
null
null
gsb/rest/__init__.py
pfrancois/grisbi_django
4e27149522847c78ab9c0f0a06f0b1d371f7c205
[ "BSD-3-Clause" ]
null
null
null
# coding=utf-8 # init
7.333333
14
0.636364
5a4164758499f35ed2ad174d38480235b72e03a1
4,416
py
Python
chris_turtlebot_dashboard/src/chris_turtlebot_dashboard/dashboard.py
xabigarde/chris_ros_turtlebot
ca26db3eafcb8aba7a322cca8fd44443f015e125
[ "BSD-3-Clause" ]
null
null
null
chris_turtlebot_dashboard/src/chris_turtlebot_dashboard/dashboard.py
xabigarde/chris_ros_turtlebot
ca26db3eafcb8aba7a322cca8fd44443f015e125
[ "BSD-3-Clause" ]
null
null
null
chris_turtlebot_dashboard/src/chris_turtlebot_dashboard/dashboard.py
xabigarde/chris_ros_turtlebot
ca26db3eafcb8aba7a322cca8fd44443f015e125
[ "BSD-3-Clause" ]
1
2021-07-23T14:09:18.000Z
2021-07-23T14:09:18.000Z
import roslib;roslib.load_manifest('kobuki_dashboard') import rospy import diagnostic_msgs from rqt_robot_dashboard.dashboard import Dashboard from rqt_robot_dashboard.widgets import ConsoleDashWidget, MenuDashWidget, IconToolButton from python_qt_binding.QtWidgets import QMessageBox, QAction from python_qt_binding.Q...
47.483871
147
0.673234
5a421a3520f2cd9636eea2d36b206d6735096aca
3,339
py
Python
msgpack_lz4block/__init__.py
AlsidOfficial/python-msgpack-lz4block
4cfa6fc69799530c72b73c660d0beabb4ebd5a81
[ "MIT" ]
1
2021-07-01T12:41:41.000Z
2021-07-01T12:41:41.000Z
msgpack_lz4block/__init__.py
AlsidOfficial/python-msgpack-lz4block
4cfa6fc69799530c72b73c660d0beabb4ebd5a81
[ "MIT" ]
null
null
null
msgpack_lz4block/__init__.py
AlsidOfficial/python-msgpack-lz4block
4cfa6fc69799530c72b73c660d0beabb4ebd5a81
[ "MIT" ]
null
null
null
import msgpack import lz4.block from msgpack.ext import Timestamp, ExtType import re PATTERN_1 = re.compile( rb'\xd9jSystem.Object\[\], System.Private.CoreLib, Version=[0-9][0-9.]*, Culture=neutral, PublicKeyToken=7cec85d7bea7798e.*?\xd9.(?P<payload>.*)') def deserialize(bytes_data, key_map=None, buffer_size...
42.265823
150
0.634921
5a42367cb5c3c6ae30a847d5d4575149e7bc2d38
2,169
py
Python
scilpy/version.py
fullbat/scilpy
8f5b95a0b298ac95268c94d04a162b14fe2773ad
[ "MIT" ]
null
null
null
scilpy/version.py
fullbat/scilpy
8f5b95a0b298ac95268c94d04a162b14fe2773ad
[ "MIT" ]
null
null
null
scilpy/version.py
fullbat/scilpy
8f5b95a0b298ac95268c94d04a162b14fe2773ad
[ "MIT" ]
null
null
null
from __future__ import absolute_import, division, print_function import glob # Format expected by setup.py and doc/source/conf.py: string of form "X.Y.Z" _version_major = 0 _version_minor = 1 _version_micro = '' # use '' for first of series, number for 1 and above _version_extra = 'dev' # _version_extra = '' # Uncom...
30.985714
77
0.720609
5a448e7214b3790abd510a4b2f97d52ddcfd5d87
3,765
py
Python
fireflies.py
dvsd/Firefly-Synchronization
89aec8513a386cf274f333ba8b4fa64555766619
[ "MIT" ]
1
2021-04-22T14:04:19.000Z
2021-04-22T14:04:19.000Z
fireflies.py
dvsd/Firefly-Synchronization
89aec8513a386cf274f333ba8b4fa64555766619
[ "MIT" ]
null
null
null
fireflies.py
dvsd/Firefly-Synchronization
89aec8513a386cf274f333ba8b4fa64555766619
[ "MIT" ]
null
null
null
from graphics import * import math import random windowWidth = 400 windowHeight = 400 fireflyRadius = 3 win = GraphWin("Fireflies",windowWidth,windowHeight,autoflush=False) win.setBackground('black') closeWindow = False fireflies = [] flashedFliesOpenSet = [] # flies that need to reset urge of neighbors flashedFliesC...
34.227273
140
0.712882
5a44e929a11797422604acb7129e5a00747b908f
2,350
py
Python
gb/tests/test_gibbs_sampler.py
myozka/granger-busca
e6922f85aa58ab0809951ec4d60b5df43d6c74e8
[ "BSD-3-Clause" ]
5
2018-09-06T13:37:04.000Z
2019-12-16T13:53:26.000Z
gb/tests/test_gibbs_sampler.py
myozka/granger-busca
e6922f85aa58ab0809951ec4d60b5df43d6c74e8
[ "BSD-3-Clause" ]
1
2021-06-09T06:08:25.000Z
2021-07-13T18:10:09.000Z
gb/tests/test_gibbs_sampler.py
myozka/granger-busca
e6922f85aa58ab0809951ec4d60b5df43d6c74e8
[ "BSD-3-Clause" ]
4
2020-03-30T14:54:27.000Z
2021-09-23T18:48:14.000Z
# -*- coding: utf8 from gb.randomkit.random import RNG from gb.samplers import BaseSampler from gb.samplers import CollapsedGibbsSampler from gb.stamps import Timestamps from gb.sloppy import SloppyCounter from numpy.testing import assert_equal import numpy as np
28.313253
73
0.631064
5a44f541b7846b979545c92ddcc2e62d26b600d3
9,163
py
Python
python/tHome/sma/Link.py
ZigmundRat/T-Home
5dc8689f52d87dac890051e540b338b009293ced
[ "BSD-2-Clause" ]
18
2016-04-17T19:39:28.000Z
2020-11-19T06:55:20.000Z
python/tHome/sma/Link.py
ZigmundRat/T-Home
5dc8689f52d87dac890051e540b338b009293ced
[ "BSD-2-Clause" ]
6
2016-10-31T13:53:45.000Z
2019-03-20T20:47:03.000Z
python/tHome/sma/Link.py
ZigmundRat/T-Home
5dc8689f52d87dac890051e540b338b009293ced
[ "BSD-2-Clause" ]
12
2016-10-31T12:29:08.000Z
2021-12-28T12:18:28.000Z
#=========================================================================== # # Primary SMA API. # #=========================================================================== import socket from .. import util from . import Auth from . import Reply from . import Request #=============================================...
38.020747
79
0.460984
5a453d50864469ccb2ceb29c181778bf81f77b45
1,988
py
Python
src/tinerator/visualize/qt_app.py
lanl/tinerator
b34112f01d64801b6539650af2e40edff33f9f9b
[ "BSD-3-Clause" ]
2
2021-09-13T17:10:25.000Z
2021-09-17T18:36:21.000Z
src/tinerator/visualize/qt_app.py
lanl/tinerator
b34112f01d64801b6539650af2e40edff33f9f9b
[ "BSD-3-Clause" ]
15
2021-08-16T18:23:58.000Z
2022-02-03T04:38:24.000Z
src/tinerator/visualize/qt_app.py
lanl/tinerator
b34112f01d64801b6539650af2e40edff33f9f9b
[ "BSD-3-Clause" ]
null
null
null
import sys from PyQt5 import QtWidgets from PyQt5.QtWidgets import QApplication from PyQt5.QtWidgets import QMainWindow from PyQt5.QtCore import QCoreApplication, QUrl from PyQt5.QtWebEngineWidgets import QWebEngineView from PyQt5.QtWebEngineWidgets import QWebEngineProfile
26.864865
86
0.65493
5a46d6b1d5ad18765586dcbd1b433a5a6d49394a
2,487
py
Python
openstack/tests/unit/clustering/v1/test_receiver.py
anton-sidelnikov/openstacksdk
98f0c67120b65814c3bd1663415e302551a14536
[ "Apache-2.0" ]
null
null
null
openstack/tests/unit/clustering/v1/test_receiver.py
anton-sidelnikov/openstacksdk
98f0c67120b65814c3bd1663415e302551a14536
[ "Apache-2.0" ]
null
null
null
openstack/tests/unit/clustering/v1/test_receiver.py
anton-sidelnikov/openstacksdk
98f0c67120b65814c3bd1663415e302551a14536
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
34.541667
75
0.668275
5a48e8486f10a1984a1d5c43962af125191eae02
4,137
py
Python
gan/kdd_utilities.py
mesarcik/Efficient-GAN-Anomaly-Detection
15568abb57d2965ce70d4fd0dc70f3fe00c68d1b
[ "MIT" ]
408
2018-02-27T05:10:49.000Z
2022-03-24T10:32:07.000Z
gan/kdd_utilities.py
phuccuongngo99/Efficient-GAN-Anomaly-Detection
849ffd91436f4ab8908e0d0ae9e6eadff5f67110
[ "MIT" ]
21
2018-05-21T09:18:02.000Z
2021-08-30T21:51:38.000Z
gan/kdd_utilities.py
phuccuongngo99/Efficient-GAN-Anomaly-Detection
849ffd91436f4ab8908e0d0ae9e6eadff5f67110
[ "MIT" ]
139
2018-03-05T13:42:11.000Z
2022-03-20T09:02:41.000Z
import tensorflow as tf """Class for KDD10 percent GAN architecture. Generator and discriminator. """ learning_rate = 0.00001 batch_size = 50 layer = 1 latent_dim = 32 dis_inter_layer_dim = 128 init_kernel = tf.contrib.layers.xavier_initializer() def generator(z_inp, is_training=False, getter=None, reuse=False): ...
32.833333
79
0.513899
5a48f16367b8db551ede0ba75c39ecf9f879f676
646
py
Python
setup.py
jhakonen/wotdisttools
2194761baaf1f6ade5fa740d134553b77300211b
[ "MIT" ]
9
2019-08-15T14:59:39.000Z
2021-06-24T22:03:31.000Z
setup.py
jhakonen/wotdisttools
2194761baaf1f6ade5fa740d134553b77300211b
[ "MIT" ]
1
2019-08-06T19:22:44.000Z
2019-08-11T09:23:31.000Z
setup.py
jhakonen/setuptools-wotmod
2194761baaf1f6ade5fa740d134553b77300211b
[ "MIT" ]
null
null
null
#!/usr/bin/env python from setuptools import setup, find_packages setup( name='setuptools-wotmod', version='0.2', packages=find_packages(), description='setuptools integration for creating World of Tanks mods', long_description=open('README.md').read(), author='jhakonen', url='https://gith...
24.846154
74
0.630031
5a492602297201d4f7e69fbf52b8fafe45beb71d
2,264
py
Python
services/prepare_snps_data.py
eliorav/Population-Genotype-Frequency
11780b182bf417ac10ae86919ee313e39158267d
[ "Apache-2.0" ]
null
null
null
services/prepare_snps_data.py
eliorav/Population-Genotype-Frequency
11780b182bf417ac10ae86919ee313e39158267d
[ "Apache-2.0" ]
null
null
null
services/prepare_snps_data.py
eliorav/Population-Genotype-Frequency
11780b182bf417ac10ae86919ee313e39158267d
[ "Apache-2.0" ]
null
null
null
import os from glob import glob import pandas as pd from tqdm import tqdm from constants import SNPS_DATA_PATH, SNPS_DATA_FOLDER, SNPS_DATA_FILE_NAME from services.docker_runner import Hg38dbDockerRunner def fetch_snps_data(snps_file_path): """ Fetch SNPs data from hg38 db :param snps_file_path: the path ...
39.034483
105
0.659452
5a4bcf1b59efc03b155e47a1a800ec05299ddea9
258
py
Python
lab1/lab1/views/home.py
ZerocksX/Service-Oriented-Computing-2019
eac6b0e9a40eed76b452f6524fd899e7107b0f69
[ "Apache-2.0" ]
null
null
null
lab1/lab1/views/home.py
ZerocksX/Service-Oriented-Computing-2019
eac6b0e9a40eed76b452f6524fd899e7107b0f69
[ "Apache-2.0" ]
null
null
null
lab1/lab1/views/home.py
ZerocksX/Service-Oriented-Computing-2019
eac6b0e9a40eed76b452f6524fd899e7107b0f69
[ "Apache-2.0" ]
null
null
null
from django.http import HttpResponse from django.shortcuts import render, redirect from lab1.views import login
23.454545
45
0.763566
5a4c04b5d165286adafed51f08e73b407e82dac3
2,154
py
Python
ssdp/socketserver.py
vintozver/ssdp
ab3199068e3af93d95b00dcd79fbb444aa4ba13b
[ "MIT" ]
null
null
null
ssdp/socketserver.py
vintozver/ssdp
ab3199068e3af93d95b00dcd79fbb444aa4ba13b
[ "MIT" ]
null
null
null
ssdp/socketserver.py
vintozver/ssdp
ab3199068e3af93d95b00dcd79fbb444aa4ba13b
[ "MIT" ]
null
null
null
import logging import socket import socketserver import struct import typing from ssdp.entity import * from ssdp.network import * logger = logging.getLogger("ssdp.socketserver")
31.217391
87
0.606778
5a4c53204a1b7bd48e50214561ae151641713f7f
1,040
py
Python
giggleliu/tba/hgen/multithreading.py
Lynn-015/Test_01
88be712b2d17603f7a3c38836dabe8dbdee2aba3
[ "MIT" ]
2
2015-11-12T01:11:20.000Z
2015-11-12T23:32:28.000Z
giggleliu/tba/hgen/multithreading.py
Lynn-015/Test_01
88be712b2d17603f7a3c38836dabe8dbdee2aba3
[ "MIT" ]
3
2015-10-28T02:25:48.000Z
2015-11-25T18:21:22.000Z
giggleliu/tba/hgen/multithreading.py
Lynn-015/NJU_DMRG
88be712b2d17603f7a3c38836dabe8dbdee2aba3
[ "MIT" ]
null
null
null
#!/usr/bin/python from numpy import * from mpi4py import MPI from matplotlib.pyplot import * #MPI setting try: COMM=MPI.COMM_WORLD SIZE=COMM.Get_size() RANK=COMM.Get_rank() except: COMM=None SIZE=1 RANK=0 __all__=['mpido'] def mpido(func,inputlist,bcastouputmesh=True): ''' MPI for list...
19.622642
46
0.6
5a4c57677f4df8cc0dad6ecf21973ff01725bd89
1,480
py
Python
manage.py
forestmonster/flask-microservices-users
84b6edb1d57bd5882a48346bba5ff67a2ce44d9c
[ "MIT" ]
null
null
null
manage.py
forestmonster/flask-microservices-users
84b6edb1d57bd5882a48346bba5ff67a2ce44d9c
[ "MIT" ]
null
null
null
manage.py
forestmonster/flask-microservices-users
84b6edb1d57bd5882a48346bba5ff67a2ce44d9c
[ "MIT" ]
null
null
null
import unittest import coverage from flask_script import Manager from project import create_app, db from project.api.models import User COV = coverage.coverage( branch=True, include='project/*', omit=[ 'project/tests/*', 'project/server/config.py', 'project/server/*/__init__.py' ...
21.449275
79
0.646622
5a4d72f7295e946813a914b8b8596cf8a6802ccb
2,691
py
Python
cocotb/_py_compat.py
lavanyajagan/cocotb
2f98612016e68510e264a2b4963303d3588d8404
[ "BSD-3-Clause" ]
350
2015-01-09T12:50:13.000Z
2019-07-12T09:08:17.000Z
cocotb/_py_compat.py
lavanyajagan/cocotb
2f98612016e68510e264a2b4963303d3588d8404
[ "BSD-3-Clause" ]
710
2015-01-05T16:42:29.000Z
2019-07-16T13:40:00.000Z
cocotb/_py_compat.py
lavanyajagan/cocotb
2f98612016e68510e264a2b4963303d3588d8404
[ "BSD-3-Clause" ]
182
2015-01-08T09:35:20.000Z
2019-07-12T18:41:37.000Z
# Copyright (c) cocotb contributors # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright # notice, this list of conditions a...
42.046875
81
0.751394
5a4dfb65c9293913510af1677af7923d5236e918
8,259
py
Python
tomopal/crtomopy/demo/pjt_demo.py
robinthibaut/TomoPal
bb3d1f9d56afc53c641a72b47e4419ee0cfd587b
[ "BSD-3-Clause" ]
2
2021-03-01T11:06:17.000Z
2021-09-24T11:49:31.000Z
tomopal/crtomopy/demo/pjt_demo.py
robinthibaut/TomoPal
bb3d1f9d56afc53c641a72b47e4419ee0cfd587b
[ "BSD-3-Clause" ]
53
2021-03-30T14:05:17.000Z
2022-03-31T09:55:14.000Z
tomopal/crtomopy/demo/pjt_demo.py
robinthibaut/TomoPal
bb3d1f9d56afc53c641a72b47e4419ee0cfd587b
[ "BSD-3-Clause" ]
1
2020-06-16T11:16:39.000Z
2020-06-16T11:16:39.000Z
# Copyright (c) 2020. Robin Thibaut, Ghent University from os.path import join as jp import numpy as np from tomopal.crtomopy.crtomo.crc import ( Crtomo, datread, import_res, mesh_geometry, mtophase, ) from ..parent import inventory from ...geoview.diavatly import model_map # To plot results #...
27.808081
120
0.698632
5a4e07f2b94ab476e5ae09d4fd2d5f84fb6f63e2
72
py
Python
__init__.py
VASemenov/Genetica
5f51159e182a628c2d33c8a401719924b3611df5
[ "MIT" ]
null
null
null
__init__.py
VASemenov/Genetica
5f51159e182a628c2d33c8a401719924b3611df5
[ "MIT" ]
null
null
null
__init__.py
VASemenov/Genetica
5f51159e182a628c2d33c8a401719924b3611df5
[ "MIT" ]
null
null
null
from genetica.dna import DNA, genify from genetica.model import Genetica
36
36
0.847222
5a4ed98e41bcfbfb4f87bc36a45fc26e1aa68177
1,015
py
Python
client_code/utils/__init__.py
daviesian/anvil-extras
84fd5ca5144808d4ce2b333995e801a4ddff60e6
[ "MIT" ]
null
null
null
client_code/utils/__init__.py
daviesian/anvil-extras
84fd5ca5144808d4ce2b333995e801a4ddff60e6
[ "MIT" ]
null
null
null
client_code/utils/__init__.py
daviesian/anvil-extras
84fd5ca5144808d4ce2b333995e801a4ddff60e6
[ "MIT" ]
null
null
null
# SPDX-License-Identifier: MIT # # Copyright (c) 2021 The Anvil Extras project team members listed at # https://github.com/anvilistas/anvil-extras/graphs/contributors # # This software is published at https://github.com/anvilistas/anvil-extras from functools import cache __version__ = "1.4.0"
26.710526
83
0.715271
5a50502deca1083175f893a1ac12f341ff7d78ec
13,984
py
Python
evaluate/evaluate_debug.py
goodgodgd/vode-2020
98e34120d642780576ac51d57c2f0597e7e1e524
[ "BSD-2-Clause" ]
4
2020-08-15T02:14:03.000Z
2021-01-30T08:18:18.000Z
evaluate/evaluate_debug.py
goodgodgd/vode-2020
98e34120d642780576ac51d57c2f0597e7e1e524
[ "BSD-2-Clause" ]
23
2020-01-24T07:25:40.000Z
2021-06-02T00:50:32.000Z
evaluate/evaluate_debug.py
goodgodgd/vode-2020
98e34120d642780576ac51d57c2f0597e7e1e524
[ "BSD-2-Clause" ]
1
2020-07-02T12:26:45.000Z
2020-07-02T12:26:45.000Z
import os import os.path as op import numpy as np import pandas as pd import cv2 import tensorflow as tf import settings from config import opts from tfrecords.tfrecord_reader import TfrecordReader import utils.util_funcs as uf import utils.convert_pose as cp from model.synthesize.synthesize_base import SynthesizeMult...
43.974843
112
0.693292
5a50e3662524ec61048e74d97bc09d7305717136
7,018
py
Python
tests/test_utils.py
h4ck3rm1k3/requests
46184236dc177fb68c7863445609149d0ac243ea
[ "Apache-2.0" ]
null
null
null
tests/test_utils.py
h4ck3rm1k3/requests
46184236dc177fb68c7863445609149d0ac243ea
[ "Apache-2.0" ]
null
null
null
tests/test_utils.py
h4ck3rm1k3/requests
46184236dc177fb68c7863445609149d0ac243ea
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 import os from io import BytesIO import pytest from requests import compat from requests.utils import ( address_in_network, dotted_netmask, get_auth_from_url, get_encodings_from_content, get_environ_proxies, guess_filename, is_ipv4_address, is_valid_cidr, requote_uri, select_proxy, ...
30.25
95
0.58008
5a5102204d83caa3f795bc8eb2cf30cd51108dd9
37,008
py
Python
clorm/orm/factbase.py
florianfischer91/clorm
3569a91daa1d691f0a7f5a9534db925e027cdbf9
[ "MIT" ]
10
2019-01-11T03:31:17.000Z
2019-12-18T08:18:44.000Z
clorm/orm/factbase.py
florianfischer91/clorm
3569a91daa1d691f0a7f5a9534db925e027cdbf9
[ "MIT" ]
21
2018-12-06T04:06:53.000Z
2019-12-17T00:04:56.000Z
clorm/orm/factbase.py
florianfischer91/clorm
3569a91daa1d691f0a7f5a9534db925e027cdbf9
[ "MIT" ]
null
null
null
# ----------------------------------------------------------------------------- # Clorm ORM FactBase implementation. FactBase provides a set-like container # specifically for storing facts (Predicate instances). # ------------------------------------------------------------------------------ import abc import io impor...
37.879222
114
0.568769
5a53a6326b7c2b2399d98404ebe43ef902465e91
13,470
py
Python
blender/2.79/scripts/addons/modules/extensions_framework/__init__.py
uzairakbar/bpy2.79
3a3e0004ac6783c4e4b89d939e4432de99026a85
[ "MIT" ]
2
2019-11-27T09:05:42.000Z
2020-02-20T01:25:23.000Z
blender/2.79/scripts/addons/modules/extensions_framework/__init__.py
uzairakbar/bpy2.79
3a3e0004ac6783c4e4b89d939e4432de99026a85
[ "MIT" ]
null
null
null
blender/2.79/scripts/addons/modules/extensions_framework/__init__.py
uzairakbar/bpy2.79
3a3e0004ac6783c4e4b89d939e4432de99026a85
[ "MIT" ]
4
2020-02-19T20:02:26.000Z
2022-02-11T18:47:56.000Z
# -*- coding: utf-8 -*- # # ***** BEGIN GPL LICENSE BLOCK ***** # # -------------------------------------------------------------------------- # Blender 2.5 Extensions Framework # -------------------------------------------------------------------------- # # Authors: # Doug Hammond # # This program is free software; yo...
36.209677
89
0.587231
5a54a96d2f3cc1d14a3c5a24eab90fe8dfc58c84
16,305
py
Python
tests/test_common.py
NOAA-GSL/adb_graphics
b9a3d567efa0de5a175be8404f351b901a8f382f
[ "MIT" ]
2
2020-11-06T16:30:50.000Z
2021-01-15T19:42:13.000Z
tests/test_common.py
NOAA-GSL/adb_graphics
b9a3d567efa0de5a175be8404f351b901a8f382f
[ "MIT" ]
10
2020-11-20T16:02:57.000Z
2021-03-31T23:35:56.000Z
tests/test_common.py
NOAA-GSL/adb_graphics
b9a3d567efa0de5a175be8404f351b901a8f382f
[ "MIT" ]
1
2021-04-09T20:55:06.000Z
2021-04-09T20:55:06.000Z
# pylint: disable=invalid-name ''' Pytests for the common utilities included in this package. Includes: - conversions.py - specs.py - utils.py To run the tests, type the following in the top level repo directory: python -m pytest --nat-file [path/to/gribfile] --prs-file [path/to/gribfile] ''' from...
30.138632
100
0.557068
5a54ab45f8f150e828680b7baff870b193da03be
6,448
py
Python
ggpy/cruft/grammar.py
hobson/ggpy
4e6e6e876c3a4294cd711647051da2d9c1836b60
[ "MIT" ]
1
2015-01-26T19:07:45.000Z
2015-01-26T19:07:45.000Z
ggpy/cruft/grammar.py
hobson/ggpy
4e6e6e876c3a4294cd711647051da2d9c1836b60
[ "MIT" ]
null
null
null
ggpy/cruft/grammar.py
hobson/ggpy
4e6e6e876c3a4294cd711647051da2d9c1836b60
[ "MIT" ]
null
null
null
#!/usr/bin/env python # package: org.ggp.base.util.symbol.grammar import threading
32.079602
100
0.622519
5a57e614d9b55b36163878bad041ba8ed0614d30
948
py
Python
cortical/models/context.py
npd15393/ResumeMiner
9644ae97aaad869c3739b2b7b92e4e5a6f857206
[ "BSD-2-Clause" ]
null
null
null
cortical/models/context.py
npd15393/ResumeMiner
9644ae97aaad869c3739b2b7b92e4e5a6f857206
[ "BSD-2-Clause" ]
null
null
null
cortical/models/context.py
npd15393/ResumeMiner
9644ae97aaad869c3739b2b7b92e4e5a6f857206
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python """ /******************************************************************************* * Copyright (c) cortical.io GmbH. All rights reserved. * * This software is confidential and proprietary information. * You shall use it only in accordance with the terms of the * license agreement you ente...
43.090909
117
0.597046
5a58135dc9e13b466cba75e814598ea999f2751b
705
py
Python
COMP-2080/Week-11/knapRecursive.py
kbrezinski/Candidacy-Prep
f4610fb611e6300a7d657af124728d46a8659ba5
[ "BSD-3-Clause" ]
null
null
null
COMP-2080/Week-11/knapRecursive.py
kbrezinski/Candidacy-Prep
f4610fb611e6300a7d657af124728d46a8659ba5
[ "BSD-3-Clause" ]
null
null
null
COMP-2080/Week-11/knapRecursive.py
kbrezinski/Candidacy-Prep
f4610fb611e6300a7d657af124728d46a8659ba5
[ "BSD-3-Clause" ]
null
null
null
# [weight, value] I = [[4, 8], [4, 7], [6, 14]] k = 8 print(knapRecursive(I, k))
22.03125
69
0.455319
5a59bbf41d09d9b1b99e57b30f3e8db2c9734a9d
232
py
Python
digits/inference/__init__.py
PhysicsTeacher13/Digits-NVIDIA
80c08ed2b84d5d4eb4f1721ab30f3db2ce67690a
[ "BSD-3-Clause" ]
111
2017-04-21T06:03:04.000Z
2021-04-26T06:36:54.000Z
digits/inference/__init__.py
PhysicsTeacher13/Digits-NVIDIA
80c08ed2b84d5d4eb4f1721ab30f3db2ce67690a
[ "BSD-3-Clause" ]
6
2017-05-15T22:02:49.000Z
2018-03-16T10:25:26.000Z
digits/inference/__init__.py
PhysicsTeacher13/Digits-NVIDIA
80c08ed2b84d5d4eb4f1721ab30f3db2ce67690a
[ "BSD-3-Clause" ]
40
2017-04-21T07:04:16.000Z
2019-11-14T14:20:32.000Z
# Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved. from __future__ import absolute_import from .images import ImageInferenceJob from .job import InferenceJob __all__ = [ 'InferenceJob', 'ImageInferenceJob', ]
21.090909
63
0.762931
5a5a27414d864ca463175f98377b3d5b7fff1510
3,592
py
Python
homework/homework 21.py
CoderLoveMath/Jeju-IOSEFTGS-python
0efe26e3840817197c1584ac4cf90d35c3699988
[ "FSFAP" ]
null
null
null
homework/homework 21.py
CoderLoveMath/Jeju-IOSEFTGS-python
0efe26e3840817197c1584ac4cf90d35c3699988
[ "FSFAP" ]
null
null
null
homework/homework 21.py
CoderLoveMath/Jeju-IOSEFTGS-python
0efe26e3840817197c1584ac4cf90d35c3699988
[ "FSFAP" ]
null
null
null
# Import a library of functions called 'pygame' import pygame # Initialize the game engine pygame.init() # Define the colors we will use in RGB format BLACK = (0, 0, 0) WHITE = (255, 255, 255) BLUE = (0, 0, 255) GREEN = (0, 255, 0) RED = (255, 0, 0) # Set the height and width of the screen size = [491, 700] screen =...
35.92
84
0.578786
5a5bfad53218db468fff1b6bf7d577e4b9d5e32d
2,929
py
Python
pyte/ops/for_.py
Fuyukai/Pyte
7ef04938d80f8b646bd73d976ac9787a5b88edd9
[ "MIT" ]
2
2020-01-10T22:08:38.000Z
2021-06-21T15:34:47.000Z
pyte/ops/for_.py
Fuyukai/Pyte
7ef04938d80f8b646bd73d976ac9787a5b88edd9
[ "MIT" ]
6
2016-04-17T21:28:14.000Z
2016-08-24T02:14:01.000Z
pyte/ops/for_.py
SunDwarf/Pyte
7ef04938d80f8b646bd73d976ac9787a5b88edd9
[ "MIT" ]
null
null
null
from pyte import tokens, util from pyte.superclasses import _PyteAugmentedValidator, _PyteOp from pyte.util import PY36
31.494624
101
0.609082
5a5cd7e8aa4acb388f0ef7bcdc817349add0a810
1,212
py
Python
web/hottubapi.py
pwschuurman/hottub_controller
be9faeabcaf9f5bb7aba3ec03eba60276b27cf80
[ "MIT" ]
1
2020-06-03T18:32:50.000Z
2020-06-03T18:32:50.000Z
web/hottubapi.py
pwschuurman/hottub_controller
be9faeabcaf9f5bb7aba3ec03eba60276b27cf80
[ "MIT" ]
null
null
null
web/hottubapi.py
pwschuurman/hottub_controller
be9faeabcaf9f5bb7aba3ec03eba60276b27cf80
[ "MIT" ]
null
null
null
from gpioapi import GpioAPI import rx MAX_TEMP = 38 COOL_TEMP = 30
24.734694
82
0.710396
5a5e3e187f9834c9b5e31410232316fcaa6ec9f3
7,711
py
Python
src/biocluster_pipeline.py
zocean/Norma
4c45c1540f7d7d13f9b71a6772044d3772a451f8
[ "MIT" ]
1
2020-02-17T22:59:46.000Z
2020-02-17T22:59:46.000Z
src/biocluster_pipeline.py
zocean/Norma
4c45c1540f7d7d13f9b71a6772044d3772a451f8
[ "MIT" ]
null
null
null
src/biocluster_pipeline.py
zocean/Norma
4c45c1540f7d7d13f9b71a6772044d3772a451f8
[ "MIT" ]
2
2020-02-24T02:54:04.000Z
2020-07-07T22:16:35.000Z
#!/usr/bin/python # Programmer : Yang Zhang # Contact: zocean636@gmail.com # Last-modified: 24 Jan 2019 15:20:08 import os,sys,argparse def parse_arg(): ''' This Function Parse the Argument ''' p=argparse.ArgumentParser( description = 'Example: %(prog)s -h', epilog='Library dependency :') p.add_argument(...
46.451807
191
0.625989
5a5e3edccfdfe1e9cbd18ca904e258b6b8bd5b04
5,404
py
Python
env/lib/python3.5/site-packages/cartopy/tests/test_shapereader.py
project-pantheon/pantheon_glob_planner
c0d50a53b36c4678192ec75ad7a4cd68c570daef
[ "BSD-3-Clause" ]
null
null
null
env/lib/python3.5/site-packages/cartopy/tests/test_shapereader.py
project-pantheon/pantheon_glob_planner
c0d50a53b36c4678192ec75ad7a4cd68c570daef
[ "BSD-3-Clause" ]
null
null
null
env/lib/python3.5/site-packages/cartopy/tests/test_shapereader.py
project-pantheon/pantheon_glob_planner
c0d50a53b36c4678192ec75ad7a4cd68c570daef
[ "BSD-3-Clause" ]
null
null
null
# (C) British Crown Copyright 2011 - 2018, Met Office # # This file is part of cartopy. # # cartopy is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the # Free Software Foundation, either version 3 of the License, or # (at your option)...
42.21875
79
0.622687
5a5f41145e46fd5342cd880863fcd045e36493b6
268
py
Python
inmembrane/plugins/__init__.py
pansapiens/inmembrane
382eee3b2bacc9c567f65d7c48f1ddf9a86c253c
[ "BSD-2-Clause" ]
4
2015-03-09T02:08:34.000Z
2021-02-06T13:52:21.000Z
inmembrane/plugins/__init__.py
pansapiens/inmembrane
382eee3b2bacc9c567f65d7c48f1ddf9a86c253c
[ "BSD-2-Clause" ]
5
2015-01-29T03:36:04.000Z
2021-12-08T07:20:42.000Z
inmembrane/plugins/__init__.py
pansapiens/inmembrane
382eee3b2bacc9c567f65d7c48f1ddf9a86c253c
[ "BSD-2-Clause" ]
6
2015-03-09T02:08:43.000Z
2021-06-07T17:33:16.000Z
# This little bit of magic fills the __all__ list # with every plugin name, and means that calling: # from plugins import * # within inmembrane.py will import every plugin import pkgutil __all__ = [] for p in pkgutil.iter_modules(__path__): __all__.append(p[1])
26.8
50
0.75
5a6488350ce9cd310eada5196eabccb1e9f79524
1,984
py
Python
dvc/output/__init__.py
amjadsaadeh/dvc
f405168619c2bb85430c4ded2585b57ebfd01bd7
[ "Apache-2.0" ]
null
null
null
dvc/output/__init__.py
amjadsaadeh/dvc
f405168619c2bb85430c4ded2585b57ebfd01bd7
[ "Apache-2.0" ]
null
null
null
dvc/output/__init__.py
amjadsaadeh/dvc
f405168619c2bb85430c4ded2585b57ebfd01bd7
[ "Apache-2.0" ]
null
null
null
import schema from dvc.exceptions import DvcException from dvc.config import Config from dvc.dependency import SCHEMA, urlparse from dvc.dependency.base import DependencyBase from dvc.output.s3 import OutputS3 from dvc.output.gs import OutputGS from dvc.output.local import OutputLOCAL from dvc.output.hdfs import Outp...
31.492063
77
0.621472
5a65af496e71e8ad9c61c888ed0b5d903da6928e
343
py
Python
company_logo.py
DomirScire/HackerRank_answers
0432185a472aeae7062cf4e406d0e7a5ed2cc979
[ "MIT" ]
1
2021-03-19T13:05:16.000Z
2021-03-19T13:05:16.000Z
company_logo.py
DomirScire/HackerRank_answers
0432185a472aeae7062cf4e406d0e7a5ed2cc979
[ "MIT" ]
null
null
null
company_logo.py
DomirScire/HackerRank_answers
0432185a472aeae7062cf4e406d0e7a5ed2cc979
[ "MIT" ]
null
null
null
# DomirScire import math import os import random import re import sys import collections if __name__ == '__main__': s = sorted(input().strip()) s_counter = collections.Counter(s).most_common() s_counter = sorted(s_counter, key=lambda x: (x[1] * -1, x[0])) for i in range(0, 3): print(s_counter[i...
22.866667
66
0.661808
5a65da8fa8ec5fbb64d2b18d96b4bb40c2a9a8c1
2,600
py
Python
ltr/models/loss/kl_regression.py
Jee-King/ICCV2021_Event_Frame_Tracking
ea86cdd331748864ffaba35f5efbb3f2a02cdb03
[ "MIT" ]
15
2021-08-31T13:32:12.000Z
2022-03-24T01:55:41.000Z
ltr/models/loss/kl_regression.py
Jee-King/ICCV2021_Event_Frame_Tracking
ea86cdd331748864ffaba35f5efbb3f2a02cdb03
[ "MIT" ]
2
2022-01-13T12:53:29.000Z
2022-03-31T08:14:42.000Z
ltr/models/loss/kl_regression.py
Jee-King/ICCV2021_Event_Frame_Tracking
ea86cdd331748864ffaba35f5efbb3f2a02cdb03
[ "MIT" ]
2
2021-11-08T16:27:16.000Z
2021-12-08T14:24:27.000Z
import math import torch import torch.nn as nn from torch.nn import functional as F
36.619718
106
0.627308
5a6600ba347d74c16e50529d4d48201c7ed9b11e
2,478
py
Python
custom/mixins.py
luoyangC/django_template
e2fec854e2ba028b1d1981053b5398c21b9f9a25
[ "Apache-2.0" ]
null
null
null
custom/mixins.py
luoyangC/django_template
e2fec854e2ba028b1d1981053b5398c21b9f9a25
[ "Apache-2.0" ]
8
2020-06-05T22:21:55.000Z
2021-09-22T18:50:27.000Z
custom/mixins.py
luoyangC/django_template
e2fec854e2ba028b1d1981053b5398c21b9f9a25
[ "Apache-2.0" ]
null
null
null
""" Basic building blocks for generic class based views. We don't bind behaviour to http method handlers yet, which allows mixin classes to be composed in interesting ways. """ from rest_framework import status from rest_framework import mixins from custom.response import JsonResponse
33.04
93
0.700565
5a66649d8c1a6d7c9c60e1d964b3f1eb9d459b10
893
py
Python
rl_trainer/algo/network.py
jidiai/Competition_Olympics-Curling
a3f1e1316a9e9a060bcca623aff2004878c50c78
[ "MIT" ]
7
2022-02-01T14:45:03.000Z
2022-02-28T08:21:13.000Z
rl_trainer/algo/network.py
jidiai/Competition_Olympics-Curling
a3f1e1316a9e9a060bcca623aff2004878c50c78
[ "MIT" ]
1
2022-02-19T15:03:56.000Z
2022-02-25T08:59:22.000Z
rl_trainer/algo/network.py
jidiai/Competition_Olympics-Curling
a3f1e1316a9e9a060bcca623aff2004878c50c78
[ "MIT" ]
5
2022-02-08T14:16:12.000Z
2022-03-08T01:56:37.000Z
import torch.cuda import torch.nn as nn import torch.nn.functional as F device = 'cuda' if torch.cuda.is_available() else 'cpu'
28.806452
66
0.666293