hexsha
stringlengths
40
40
size
int64
7
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
125
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
125
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
125
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.77
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
7
1.04M
filtered:remove_function_no_docstring
int64
-102
942k
filtered:remove_class_no_docstring
int64
-354
977k
filtered:remove_delete_markers
int64
0
60.1k
394fddf8f98b3f9ebda863a21bdff1205b0ed44d
291
py
Python
helpers.py
343max/led_lamp
365f5175edf871cc20aacefdd7dc319d511f5972
[ "MIT" ]
null
null
null
helpers.py
343max/led_lamp
365f5175edf871cc20aacefdd7dc319d511f5972
[ "MIT" ]
null
null
null
helpers.py
343max/led_lamp
365f5175edf871cc20aacefdd7dc319d511f5972
[ "MIT" ]
null
null
null
from colorsys import hls_to_rgb from rpi_ws281x import Color
29.1
76
0.635739
from colorsys import hls_to_rgb from rpi_ws281x import Color def rgb_to_color(r: float, g: float, b: float) -> int: return Color(int(255 * r) & 255, int(255 * g) & 255, int(255 * b) & 255) def hls_to_color(h, l, s): (r, g, b) = hls_to_rgb(h, l, s) return rgb_to_color(r, g, b)
184
0
46
a197bb1579d24a5fd6de9e10d9e2bc6e9a52065d
5,841
py
Python
nonutils/service.py
233a344a455/nbutils
9c99e22ef7efe6574560ac5eaa9a9b5d7f9305f5
[ "MIT" ]
null
null
null
nonutils/service.py
233a344a455/nbutils
9c99e22ef7efe6574560ac5eaa9a9b5d7f9305f5
[ "MIT" ]
null
null
null
nonutils/service.py
233a344a455/nbutils
9c99e22ef7efe6574560ac5eaa9a9b5d7f9305f5
[ "MIT" ]
null
null
null
from typing import Optional, Union, Tuple, Set, List, Dict from loguru import logger from nonebot.adapters import Bot, Event from nonebot.handler import Handler from nonebot.permission import Permission from nonebot.typing import T_Handler from nonutils.command import Command from nonutils.stringres import Rstr cla...
39.734694
119
0.57045
from typing import Optional, Union, Tuple, Set, List, Dict from loguru import logger from nonebot.adapters import Bot, Event from nonebot.handler import Handler from nonebot.permission import Permission from nonebot.typing import T_Handler from nonutils.command import Command from nonutils.stringres import Rstr cla...
4,363
0
189
45fc797499a77f89417655a522169f1e2278ebf3
5,912
py
Python
mt2gf/widgets.py
ymentha14/mturk2gform
829bc3b1765a18ce1cd08b8edc91d385fa6fc71e
[ "MIT" ]
null
null
null
mt2gf/widgets.py
ymentha14/mturk2gform
829bc3b1765a18ce1cd08b8edc91d385fa6fc71e
[ "MIT" ]
null
null
null
mt2gf/widgets.py
ymentha14/mturk2gform
829bc3b1765a18ce1cd08b8edc91d385fa6fc71e
[ "MIT" ]
null
null
null
import pdb import ipywidgets as widgets from IPython.display import display import subprocess from pathlib import Path class ControlPanel(): """ Ipywidgets panel allowing high-level control of the HITs creation,confirmation validation and deletion along with monitoring of number of HITs per worker ...
32.483516
104
0.640223
import pdb import ipywidgets as widgets from IPython.display import display import subprocess from pathlib import Path class ControlPanel(): """ Ipywidgets panel allowing high-level control of the HITs creation,confirmation validation and deletion along with monitoring of number of HITs per worker ...
0
0
0
6438de08e30fd66867fea62cd5246b7e44b99eeb
261
py
Python
mysite/medicare/admin.py
marufahmedtushar/Medi_Care
bc3dc9449924cfaf6fa1e0e8795af84169e45f69
[ "Apache-2.0" ]
null
null
null
mysite/medicare/admin.py
marufahmedtushar/Medi_Care
bc3dc9449924cfaf6fa1e0e8795af84169e45f69
[ "Apache-2.0" ]
null
null
null
mysite/medicare/admin.py
marufahmedtushar/Medi_Care
bc3dc9449924cfaf6fa1e0e8795af84169e45f69
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin from . models import Doctor, Contact,Prescription_pictures,Bloodds # Register your models here. admin.site.register(Doctor) admin.site.register(Contact) admin.site.register(Prescription_pictures) admin.site.register(Bloodds)
23.727273
66
0.827586
from django.contrib import admin from . models import Doctor, Contact,Prescription_pictures,Bloodds # Register your models here. admin.site.register(Doctor) admin.site.register(Contact) admin.site.register(Prescription_pictures) admin.site.register(Bloodds)
0
0
0
d709f5b90555e0dc86e0736188bacceed10eacfd
9,285
py
Python
pulotu/scripts/initializedb.py
clld/pulotu
85c8590ca05ce0c98deb4ca1fada94d7597d46f0
[ "Apache-2.0" ]
null
null
null
pulotu/scripts/initializedb.py
clld/pulotu
85c8590ca05ce0c98deb4ca1fada94d7597d46f0
[ "Apache-2.0" ]
1
2021-11-19T16:50:11.000Z
2021-11-19T16:55:17.000Z
pulotu/scripts/initializedb.py
clld/pulotu
85c8590ca05ce0c98deb4ca1fada94d7597d46f0
[ "Apache-2.0" ]
1
2021-11-22T13:28:14.000Z
2021-11-22T13:28:14.000Z
import math import itertools import collections from sqlalchemy.orm import joinedload from pycldf import Sources from clldutils.misc import nfilter from clldutils.color import qualitative_colors from clldutils.text import strip_brackets from clld.cliutil import Data, bibtex2source from clld.db.meta import DBSession fr...
35.037736
113
0.559612
import math import itertools import collections from sqlalchemy.orm import joinedload from pycldf import Sources from clldutils.misc import nfilter from clldutils.color import qualitative_colors from clldutils.text import strip_brackets from clld.cliutil import Data, bibtex2source from clld.db.meta import DBSession fr...
8,031
119
92
7cfab4a0e88b2ddb074228807a657b2d062f2df0
99
py
Python
models/apps/game/map/models.py
metinberkkaratas/ProjectMagic-MightofHeroes
578697e637aba0f18b4f83762bf1c87fb20db2ee
[ "MIT" ]
null
null
null
models/apps/game/map/models.py
metinberkkaratas/ProjectMagic-MightofHeroes
578697e637aba0f18b4f83762bf1c87fb20db2ee
[ "MIT" ]
4
2021-03-19T02:37:45.000Z
2022-02-10T11:18:04.000Z
models/apps/game/map/models.py
metinberkkaratas/ProjectMagic-MightofHeroes
578697e637aba0f18b4f83762bf1c87fb20db2ee
[ "MIT" ]
1
2019-10-21T20:32:20.000Z
2019-10-21T20:32:20.000Z
from django.db import models
16.5
42
0.747475
from django.db import models class Map(models.Model): name = models.CharField(max_length=20)
0
46
23
417ccc7cfe1255124924924d235b9828253ed24c
880
py
Python
model/time_series/facebook_prophet.py
ibodumas/missing_stock_prices
ce2429cf91d5bd863093d32a56c1158eb2dc6a09
[ "MIT" ]
1
2020-06-10T06:58:06.000Z
2020-06-10T06:58:06.000Z
model/time_series/facebook_prophet.py
ibodumas/missing_stock_prices
ce2429cf91d5bd863093d32a56c1158eb2dc6a09
[ "MIT" ]
null
null
null
model/time_series/facebook_prophet.py
ibodumas/missing_stock_prices
ce2429cf91d5bd863093d32a56c1158eb2dc6a09
[ "MIT" ]
1
2021-05-08T18:12:19.000Z
2021-05-08T18:12:19.000Z
## from model import data_processing import util import pandas as pd from sklearn import metrics from sklearn.model_selection import GridSearchCV from model.estimator import FBProphetEstimator x_train = pd.DataFrame({"ds": data_processing.X_TRAIN}) y_train = pd.DataFrame({"y": data_processing.Y_TRAIN}) x_test = pd.Da...
28.387097
76
0.790909
## from model import data_processing import util import pandas as pd from sklearn import metrics from sklearn.model_selection import GridSearchCV from model.estimator import FBProphetEstimator x_train = pd.DataFrame({"ds": data_processing.X_TRAIN}) y_train = pd.DataFrame({"y": data_processing.Y_TRAIN}) x_test = pd.Da...
0
0
0
f7e455edfce612d0ec8c33e95051d199e9220ba4
11,837
py
Python
src/buildchain/intepreter.py
vanelk/vpp
09ad7fdd6ed80b0a9a2c3f8fcffd1c24d6e1dfcd
[ "MIT" ]
null
null
null
src/buildchain/intepreter.py
vanelk/vpp
09ad7fdd6ed80b0a9a2c3f8fcffd1c24d6e1dfcd
[ "MIT" ]
null
null
null
src/buildchain/intepreter.py
vanelk/vpp
09ad7fdd6ed80b0a9a2c3f8fcffd1c24d6e1dfcd
[ "MIT" ]
null
null
null
import os from src.context import Context from src.errors import RTError from src.ast.tokens import TokType from src.ast.nodes import * from src.buildchain import BuildCache from src.buildchain import Visitor from src.valtypes import Value from src.valtypes.array import Array from src.valtypes.dict import Dict from src...
38.307443
104
0.617809
import os from src.context import Context from src.errors import RTError from src.ast.tokens import TokType from src.ast.nodes import * from src.buildchain import BuildCache from src.buildchain import Visitor from src.valtypes import Value from src.valtypes.array import Array from src.valtypes.dict import Dict from src...
10,495
-1
885
13a33ba2146ac36be8c8fa249ed8bfada92b8894
12,196
py
Python
python/oneflow/utils/vision/transforms/functional_tensor.py
grybd/oneflow
82237ad096a10527591660c09b61444c42917e69
[ "Apache-2.0" ]
3,285
2020-07-31T05:51:22.000Z
2022-03-31T15:20:16.000Z
python/oneflow/utils/vision/transforms/functional_tensor.py
grybd/oneflow
82237ad096a10527591660c09b61444c42917e69
[ "Apache-2.0" ]
2,417
2020-07-31T06:28:58.000Z
2022-03-31T23:04:14.000Z
python/oneflow/utils/vision/transforms/functional_tensor.py
grybd/oneflow
82237ad096a10527591660c09b61444c42917e69
[ "Apache-2.0" ]
520
2020-07-31T05:52:42.000Z
2022-03-29T02:38:11.000Z
""" Copyright 2020 The OneFlow 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 applicable law or agr...
31.760417
88
0.618235
""" Copyright 2020 The OneFlow 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 applicable law or agr...
11,121
0
345
9bd9fead80fab142ddf05e946efead66aa45d8f5
1,599
py
Python
shop/__main__.py
techieji/shop
48296856ebf0dd2b3940115d444053da060954eb
[ "MIT" ]
null
null
null
shop/__main__.py
techieji/shop
48296856ebf0dd2b3940115d444053da060954eb
[ "MIT" ]
null
null
null
shop/__main__.py
techieji/shop
48296856ebf0dd2b3940115d444053da060954eb
[ "MIT" ]
null
null
null
import click from halo import Halo from .svm import Shop, DummyShop from .exceptions import Failure shop = w if (w := Shop.load(silent=True)) else DummyShop() @click.group() @click.command() @click.command() @click.option('--reason', help="The changes made in this commit", default="Made changes") @click.command() ...
23.173913
90
0.688555
import click from halo import Halo from .svm import Shop, DummyShop from .exceptions import Failure shop = w if (w := Shop.load(silent=True)) else DummyShop() @click.group() def cli(): pass @click.command() def init(): shop = Shop.init() @click.command() @click.option('--reason', help="The changes made in t...
283
0
221
43512a863cacc4ef4c5bf6201f4ffd0cebcc7712
4,820
py
Python
setup.py
AndreasDa/tftpy
c39fa7e1a32ca570ecf17de2be9eebe223e13be7
[ "MIT" ]
null
null
null
setup.py
AndreasDa/tftpy
c39fa7e1a32ca570ecf17de2be9eebe223e13be7
[ "MIT" ]
null
null
null
setup.py
AndreasDa/tftpy
c39fa7e1a32ca570ecf17de2be9eebe223e13be7
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf8 -*- # vim: ts=4 sw=4 et ai: from distutils.core import setup long_description = """\ Copyright, Michael P. Soulier, 2010. About Release 0.7.0: ==================== Various bugfixes and refactoring for improved logging. Now requiring python 2.7+ and tightening syntax in prepar...
30.506329
78
0.681535
#!/usr/bin/env python # -*- coding: utf8 -*- # vim: ts=4 sw=4 et ai: from distutils.core import setup long_description = """\ Copyright, Michael P. Soulier, 2010. About Release 0.7.0: ==================== Various bugfixes and refactoring for improved logging. Now requiring python 2.7+ and tightening syntax in prepar...
0
0
0
d5687372a3adcc0e9868726b8869e0d3d8042fca
6,962
py
Python
BALMOREL add-on/ResidEVHPaggr_step2.py
pietrononis94/ResidentialFlexAddon_Thesis
58788361cf2e16504cf72189b4266b92335e57a6
[ "MIT" ]
null
null
null
BALMOREL add-on/ResidEVHPaggr_step2.py
pietrononis94/ResidentialFlexAddon_Thesis
58788361cf2e16504cf72189b4266b92335e57a6
[ "MIT" ]
null
null
null
BALMOREL add-on/ResidEVHPaggr_step2.py
pietrononis94/ResidentialFlexAddon_Thesis
58788361cf2e16504cf72189b4266b92335e57a6
[ "MIT" ]
null
null
null
import gdxpds as gd import pandas as pd import numpy as np import matplotlib.pyplot as plt ### This file reads optimal load scheduling from Julia ouput and generates aggregated ### consumption of alll categories, as in as in section 7.2.3 - step 2, following project report. ### Result is saved in csv and then conver...
65.679245
205
0.66547
import gdxpds as gd import pandas as pd import numpy as np import matplotlib.pyplot as plt ### This file reads optimal load scheduling from Julia ouput and generates aggregated ### consumption of alll categories, as in as in section 7.2.3 - step 2, following project report. ### Result is saved in csv and then conver...
0
0
0
1199b5605411281efc3d3e2427992389c3aaa429
2,263
py
Python
numba/tests/extension_types/test_extension_types.py
glycerine/numba
4cb9e4f0b3cabd9e6a144fa4f3f7e5d6bee45635
[ "BSD-2-Clause" ]
1
2019-04-17T10:03:53.000Z
2019-04-17T10:03:53.000Z
numba/tests/extension_types/test_extension_types.py
glycerine/numba
4cb9e4f0b3cabd9e6a144fa4f3f7e5d6bee45635
[ "BSD-2-Clause" ]
null
null
null
numba/tests/extension_types/test_extension_types.py
glycerine/numba
4cb9e4f0b3cabd9e6a144fa4f3f7e5d6bee45635
[ "BSD-2-Clause" ]
null
null
null
import sys from numba import extension_types from numba import * @jit class MyExtension(object): """ >>> obj = MyExtension(10.0) >>> obj.value 10.0 >>> obj._numba_attrs.value 10.0 >>> obj.setvalue(20.0) >>> obj.getvalue() 20.0 >>> obj.value 20.0 >>> obj.getvalue.__name_...
21.552381
83
0.581529
import sys from numba import extension_types from numba import * def format_str(msg, *values): return msg % values @jit class MyExtension(object): """ >>> obj = MyExtension(10.0) >>> obj.value 10.0 >>> obj._numba_attrs.value 10.0 >>> obj.setvalue(20.0) >>> obj.getvalue() 20.0 ...
335
0
154
858fde1af5dfea5919675159c8eeb0d0fcc04ab4
300
py
Python
setup.py
pgaudillere/alesisvsysex
08f6f89804dd2972594d05b790a9023f7bf2de41
[ "MIT" ]
9
2017-11-13T14:58:25.000Z
2019-09-30T19:14:09.000Z
setup.py
pgaudillere/alesisvsysex
08f6f89804dd2972594d05b790a9023f7bf2de41
[ "MIT" ]
5
2018-01-05T14:52:50.000Z
2019-06-23T05:24:23.000Z
setup.py
pgaudillere/alesisvsysex
08f6f89804dd2972594d05b790a9023f7bf2de41
[ "MIT" ]
4
2019-12-12T07:54:59.000Z
2022-03-20T19:16:08.000Z
from setuptools import setup, find_packages setup( name="alesisvsysex", version="0.0.1", install_requires=["pytest", "python-rtmidi", "mido", "vext.pyqt5"], packages=find_packages(), entry_points={ 'console_scripts': ['alesisvsysex=alesisvsysex.__main__:main'], } )
23.076923
71
0.666667
from setuptools import setup, find_packages setup( name="alesisvsysex", version="0.0.1", install_requires=["pytest", "python-rtmidi", "mido", "vext.pyqt5"], packages=find_packages(), entry_points={ 'console_scripts': ['alesisvsysex=alesisvsysex.__main__:main'], } )
0
0
0
126378d1a4feb187ac6295e7ac767746537e63b3
5,825
py
Python
pypaypal/entities/webexp.py
ivcuello/pypaypal
957cbd4e8d2127b0fc639825ce3a3924acd3216d
[ "Apache-2.0" ]
1
2022-01-18T03:01:34.000Z
2022-01-18T03:01:34.000Z
pypaypal/entities/webexp.py
ivcuello/pypaypal
957cbd4e8d2127b0fc639825ce3a3924acd3216d
[ "Apache-2.0" ]
10
2021-01-31T14:33:16.000Z
2021-01-31T14:45:02.000Z
pypaypal/entities/webexp.py
ivcuello/pypaypal
957cbd4e8d2127b0fc639825ce3a3924acd3216d
[ "Apache-2.0" ]
null
null
null
""" Module with all Payment Expirience Web Profiles related entities. """ from enum import Enum from typing import Type, List from pypaypal.entities.base import ( T, PayPalEntity, ResponseType ) class FlowConfig(PayPalEntity): """Webexp Flow configuration object representation. """ ...
39.62585
124
0.681202
""" Module with all Payment Expirience Web Profiles related entities. """ from enum import Enum from typing import Type, List from pypaypal.entities.base import ( T, PayPalEntity, ResponseType ) class LandingPageType(Enum): BILLING = 1 LOGIN = 2 class UserAction(Enum): CONTINUE = 1 ...
4,397
192
458
6cc41a663dffb131cbb3867fad62141780d8dd51
714
py
Python
Solutions/Problem9.py
igerry/ProjectEulerInPython
b65785556f19b038d8cd0e1ff24afaeb9103f499
[ "Apache-2.0" ]
null
null
null
Solutions/Problem9.py
igerry/ProjectEulerInPython
b65785556f19b038d8cd0e1ff24afaeb9103f499
[ "Apache-2.0" ]
null
null
null
Solutions/Problem9.py
igerry/ProjectEulerInPython
b65785556f19b038d8cd0e1ff24afaeb9103f499
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python class Problem9: ''' Special Pythagorean triplet Problem 9 31875000 A Pythagorean triplet is a set of three natural numbers, a < b < c, for which, a^2 + b^2 = c^2 For example, 3^2 + 4^2 = 9 + 16 = 25 = 5^2. There exists exactly one Pythagorean triplet for which a + b...
23.032258
82
0.484594
#!/usr/bin/python class Problem9: ''' Special Pythagorean triplet Problem 9 31875000 A Pythagorean triplet is a set of three natural numbers, a < b < c, for which, a^2 + b^2 = c^2 For example, 3^2 + 4^2 = 9 + 16 = 25 = 5^2. There exists exactly one Pythagorean triplet for which a + b...
284
0
27
cdfca3d64dd50d6230ae24bd41287a3157236b49
1,214
py
Python
test.py
wwju/smash-download
d99547ab73135ef1a04a2638d4ef483d8d438f2d
[ "MIT" ]
null
null
null
test.py
wwju/smash-download
d99547ab73135ef1a04a2638d4ef483d8d438f2d
[ "MIT" ]
null
null
null
test.py
wwju/smash-download
d99547ab73135ef1a04a2638d4ef483d8d438f2d
[ "MIT" ]
null
null
null
from main import *
33.722222
127
0.654036
from main import * def test_get_month_page_url(): assert get_month_page_url(2000, 6) == 'https://www.smashingmagazine.com/2000/05/desktop-wallpaper-calendars-june-2000' assert get_month_page_url(2000, 12) == 'https://www.smashingmagazine.com/2000/11/desktop-wallpaper-calendars-december-2000' assert get_mon...
1,057
0
138
c4d7134005af220fb5994f7517c8935fdff3308b
1,843
py
Python
preprocessing/visualization.py
microsoft/PySiamTracking
a82dabeaa42a7816dbd8e823da7b7e92ebb622ce
[ "MIT" ]
28
2020-03-18T04:41:21.000Z
2022-02-24T16:44:01.000Z
preprocessing/visualization.py
HengFan2010/PySiamTracking
a82dabeaa42a7816dbd8e823da7b7e92ebb622ce
[ "MIT" ]
1
2020-04-05T15:23:22.000Z
2020-04-07T16:23:12.000Z
preprocessing/visualization.py
HengFan2010/PySiamTracking
a82dabeaa42a7816dbd8e823da7b7e92ebb622ce
[ "MIT" ]
11
2020-03-19T00:30:06.000Z
2021-11-10T08:22:35.000Z
import os import cv2 import numpy as np import argparse import zipfile import _pickle as pickle def parse_args(): """ Parse input arguments """ parser = argparse.ArgumentParser(description='Visualization crop results') parser.add_argument('--annotation', dest='annotation', ...
30.213115
90
0.533912
import os import cv2 import numpy as np import argparse import zipfile import _pickle as pickle def parse_args(): """ Parse input arguments """ parser = argparse.ArgumentParser(description='Visualization crop results') parser.add_argument('--annotation', dest='annotation', ...
0
0
0
94ede3570d2bfe99822229a3df5d5939bc2f2090
2,922
py
Python
psutilcli/procsmem.py
giampaolo/psutil-cli
163d65c42e2e89794d4167465fa9e8656fd166a3
[ "MIT" ]
2
2017-03-25T08:34:36.000Z
2017-05-04T06:30:21.000Z
psutilcli/procsmem.py
giampaolo/psutil-cli
163d65c42e2e89794d4167465fa9e8656fd166a3
[ "MIT" ]
1
2017-03-24T20:16:52.000Z
2017-03-24T20:16:52.000Z
psutilcli/procsmem.py
giampaolo/psutil-cli
163d65c42e2e89794d4167465fa9e8656fd166a3
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Usage: psutil-procsmem [-h] [-s SORT] Options: -h --help # print this help -s [SORT] --sort [SORT] # sort by column, either uss, pss, swap or pss Description: Show "real" (USS) memory usage about all (querable) processes. "USS" (Unique Set Size) memory is probably the...
27.566038
75
0.551677
#!/usr/bin/env python """Usage: psutil-procsmem [-h] [-s SORT] Options: -h --help # print this help -s [SORT] --sort [SORT] # sort by column, either uss, pss, swap or pss Description: Show "real" (USS) memory usage about all (querable) processes. "USS" (Unique Set Size) memory is probably the...
1,984
0
23
54d8a35960dd60c23133aaf9ca351578c919374f
450
py
Python
tests/test_uwsgicache.py
kalekseev/django-cache-url
5203e23229f39430f81e17bc9deef069bfa0e3cd
[ "MIT" ]
41
2015-03-02T16:14:34.000Z
2021-02-22T06:20:47.000Z
tests/test_uwsgicache.py
kalekseev/django-cache-url
5203e23229f39430f81e17bc9deef069bfa0e3cd
[ "MIT" ]
21
2015-05-05T15:24:33.000Z
2020-02-07T15:54:34.000Z
tests/test_uwsgicache.py
kalekseev/django-cache-url
5203e23229f39430f81e17bc9deef069bfa0e3cd
[ "MIT" ]
18
2015-02-27T13:15:13.000Z
2020-05-31T16:18:39.000Z
from __future__ import unicode_literals import django_cache_url
25
55
0.733333
from __future__ import unicode_literals import django_cache_url def test_uwsgicache_url_returns_uwsgicache_cache(): url = 'uwsgicache://cachename/' config = django_cache_url.parse(url) assert config['BACKEND'] == 'uwsgicache.UWSGICache' assert config['LOCATION'] == 'cachename' def test_uwsgicache_...
337
0
46
fcbbd36c8924f1b64e9ee1a6349a3d564d0d251e
1,663
py
Python
graph_modifications.py
jmkinder1/code-samples
9c6cd3c6f16579a6c1f5210779b8ec6ad53fbdba
[ "BSD-3-Clause" ]
5
2021-07-17T05:19:00.000Z
2022-01-05T05:39:50.000Z
graph_modifications.py
jmkinder1/code-samples
9c6cd3c6f16579a6c1f5210779b8ec6ad53fbdba
[ "BSD-3-Clause" ]
null
null
null
graph_modifications.py
jmkinder1/code-samples
9c6cd3c6f16579a6c1f5210779b8ec6ad53fbdba
[ "BSD-3-Clause" ]
8
2020-12-26T23:41:27.000Z
2022-02-24T22:18:41.000Z
# graph_modifications.py # ------------------------------------------------------------------------- # This script creates a simple plot with two lines, then modifies many # features of the plot, including axis labels, labels and legend, line # style, tick labels, and title. # ------------------------------------------...
32.607843
82
0.66386
# graph_modifications.py # ------------------------------------------------------------------------- # This script creates a simple plot with two lines, then modifies many # features of the plot, including axis labels, labels and legend, line # style, tick labels, and title. # ------------------------------------------...
0
0
0
cf6352619370d2a3a4894408a9cb5be66ebc4d24
12,025
py
Python
cli/kaos_cli/facades/backend_facade.py
aalhour/kaos
321f596413ae0faea1aa86534eee9449cc53e287
[ "Apache-2.0" ]
98
2019-10-17T14:46:53.000Z
2021-12-29T08:28:43.000Z
cli/kaos_cli/facades/backend_facade.py
aalhour/kaos
321f596413ae0faea1aa86534eee9449cc53e287
[ "Apache-2.0" ]
78
2019-10-17T16:14:34.000Z
2020-02-10T13:31:49.000Z
cli/kaos_cli/facades/backend_facade.py
aalhour/kaos
321f596413ae0faea1aa86534eee9449cc53e287
[ "Apache-2.0" ]
11
2019-10-17T15:41:33.000Z
2021-08-29T20:07:14.000Z
import json import os import shutil import uuid from distutils.dir_util import copy_tree import requests from kaos_cli.constants import DOCKER, MINIKUBE, AWS, BACKEND, INFRASTRUCTURE, GCP, LOCAL_CONFIG_DICT, \ CONTEXTS, ACTIVE, BACKEND_CACHE, DEFAULT, USER, REMOTE, KAOS_STATE_DIR from kaos_cli.exceptions.exception...
36.7737
104
0.651227
import json import os import shutil import uuid from distutils.dir_util import copy_tree import requests from kaos_cli.constants import DOCKER, MINIKUBE, AWS, BACKEND, INFRASTRUCTURE, GCP, LOCAL_CONFIG_DICT, \ CONTEXTS, ACTIVE, BACKEND_CACHE, DEFAULT, USER, REMOTE, KAOS_STATE_DIR from kaos_cli.exceptions.exception...
9,386
0
693
c0359d8f2336e2b4ce9de00e06a420c99d8dfe1b
2,763
py
Python
permafrost/calc_ALT.py
rishabhdutta/InSAR_utils
578ac360a4c39c4b72919b8452de255d036d5bdc
[ "MIT" ]
5
2020-07-20T16:58:16.000Z
2022-02-16T02:54:42.000Z
permafrost/calc_ALT.py
rishabhdutta/InSAR_utils
578ac360a4c39c4b72919b8452de255d036d5bdc
[ "MIT" ]
null
null
null
permafrost/calc_ALT.py
rishabhdutta/InSAR_utils
578ac360a4c39c4b72919b8452de255d036d5bdc
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Jul 20 09:58:50 2020 @author: duttar Description: Inverting for ALT from the seasonal subsidence results Using mixed soil conditions: a) .9 porosity for top organic layer b) exponential decay of porosity below organic layer c) .44 porosity ...
30.7
111
0.700688
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Jul 20 09:58:50 2020 @author: duttar Description: Inverting for ALT from the seasonal subsidence results Using mixed soil conditions: a) .9 porosity for top organic layer b) exponential decay of porosity below organic layer c) .44 porosity ...
0
0
0
16fe5181caee6267fddb0197a4afe31a86326446
328
py
Python
geojson_pydantic/types.py
regisfbrilhante/geojson-pydantic
5df6f23e47a1daeb16cb112b6930704a72c05dbf
[ "MIT" ]
73
2020-05-21T22:58:41.000Z
2022-03-29T11:33:11.000Z
geojson_pydantic/types.py
sthagen/geojson-pydantic
84a945c244ced0de76f152cfabc295a9b7b8e8bb
[ "MIT" ]
50
2020-08-05T12:48:24.000Z
2022-03-31T11:39:23.000Z
geojson_pydantic/types.py
sthagen/geojson-pydantic
84a945c244ced0de76f152cfabc295a9b7b8e8bb
[ "MIT" ]
17
2020-07-31T16:54:31.000Z
2022-03-23T13:23:04.000Z
"""Types for geojson_pydantic models""" from typing import Tuple, Union NumType = Union[float, int] BBox = Union[ Tuple[NumType, NumType, NumType, NumType], # 2D bbox Tuple[NumType, NumType, NumType, NumType, NumType, NumType], # 3D bbox ] Position = Union[Tuple[NumType, NumType], Tuple[NumType, NumType, Nu...
29.818182
75
0.716463
"""Types for geojson_pydantic models""" from typing import Tuple, Union NumType = Union[float, int] BBox = Union[ Tuple[NumType, NumType, NumType, NumType], # 2D bbox Tuple[NumType, NumType, NumType, NumType, NumType, NumType], # 3D bbox ] Position = Union[Tuple[NumType, NumType], Tuple[NumType, NumType, Nu...
0
0
0
8eb33104fc930d12a69ef5978e60926afa893d12
1,412
py
Python
cubic-bezier.py
chsupark/cubic-bezier
0017e7c81b1f93403670849a2103897f4da35f95
[ "MIT" ]
1
2021-04-20T11:22:09.000Z
2021-04-20T11:22:09.000Z
cubic-bezier.py
chsupark/cubic-bezier
0017e7c81b1f93403670849a2103897f4da35f95
[ "MIT" ]
null
null
null
cubic-bezier.py
chsupark/cubic-bezier
0017e7c81b1f93403670849a2103897f4da35f95
[ "MIT" ]
null
null
null
MAX_ITERATIONS = 15 TOLERANCE = 0.001 # https://en.wikipedia.org/wiki/B%C3%A9zier_curve # P0(0, 0), P1(x1, y1), P2(x2, y2), P3(1, 1) # B(t) = ((1-t)^3)*P0 + (3t(1-t)^2)*P1 + (3t^2(1-t))*P2 + t^3*P3 # = (3t(1-t)^2)*P1 + (3t^2(1-t))*P2 + t^3 # Returns f(t) or z(t) by given value x1, x2 or y1, ...
36.205128
74
0.541076
MAX_ITERATIONS = 15 TOLERANCE = 0.001 # https://en.wikipedia.org/wiki/B%C3%A9zier_curve # P0(0, 0), P1(x1, y1), P2(x2, y2), P3(1, 1) # B(t) = ((1-t)^3)*P0 + (3t(1-t)^2)*P1 + (3t^2(1-t))*P2 + t^3*P3 # = (3t(1-t)^2)*P1 + (3t^2(1-t))*P2 + t^3 # Returns f(t) or z(t) by given value x1, x2 or y1, ...
839
0
95
378db59db583db4e3cfbd64448fa3e85fea5699b
616
py
Python
config/dev.py
Askr-ssy/rig
ba8782fe56eff0a0389ed0fdf4a6ff4f419d96b0
[ "MIT" ]
null
null
null
config/dev.py
Askr-ssy/rig
ba8782fe56eff0a0389ed0fdf4a6ff4f419d96b0
[ "MIT" ]
null
null
null
config/dev.py
Askr-ssy/rig
ba8782fe56eff0a0389ed0fdf4a6ff4f419d96b0
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- from .base import BaseConfig
22.814815
73
0.599026
# -*- encoding: utf-8 -*- from .base import BaseConfig class DevConfig(BaseConfig): MYSQL_HOST = '192.168.2.229' MYSQL_ACCOUNT = 'web' MYSQL_PASSWORD = 'ES$v1J8j' MYSQL_DATABASE = 'nlp_m_beta' MYSQL_PORT = 3306 # redis链接 REDIS_HOST = 'redis.service' REDIS_ACCOUNT = '' REDIS_SENTIE...
0
541
23
d6969730e0c442fe00720cee0a456f408b135e2a
905
py
Python
geokey_wegovnow/urls.py
ExCiteS/geokey-wegonow
66df7e17fa3eb2d8da2e56e39236b019f98a2a08
[ "MIT" ]
null
null
null
geokey_wegovnow/urls.py
ExCiteS/geokey-wegonow
66df7e17fa3eb2d8da2e56e39236b019f98a2a08
[ "MIT" ]
2
2017-02-22T13:20:29.000Z
2018-11-07T16:39:33.000Z
geokey_wegovnow/urls.py
ExCiteS/geokey-wegonow
66df7e17fa3eb2d8da2e56e39236b019f98a2a08
[ "MIT" ]
null
null
null
"""All URLs for the WeGovNow extension.""" from django.conf.urls import include, url from rest_framework.urlpatterns import format_suffix_patterns from geokey_wegovnow import views # ########################### # ADMIN VIEWS # ########################### adminpatterns = [ url(r'^admin/profile/settings/$', ...
21.547619
79
0.543646
"""All URLs for the WeGovNow extension.""" from django.conf.urls import include, url from rest_framework.urlpatterns import format_suffix_patterns from geokey_wegovnow import views # ########################### # ADMIN VIEWS # ########################### adminpatterns = [ url(r'^admin/profile/settings/$', ...
0
0
0
d229ff3014d2974ec47228eae763c94765edda43
12,966
py
Python
ecs.py
ijin/ecs-deity
80c6e6f0a6829efb62551fe09595e4f3bc286c25
[ "MIT" ]
15
2018-02-15T11:28:11.000Z
2019-02-15T05:38:37.000Z
ecs.py
ijin/ecs-deity
80c6e6f0a6829efb62551fe09595e4f3bc286c25
[ "MIT" ]
null
null
null
ecs.py
ijin/ecs-deity
80c6e6f0a6829efb62551fe09595e4f3bc286c25
[ "MIT" ]
1
2018-03-09T09:09:52.000Z
2018-03-09T09:09:52.000Z
import os import json import random import boto3 from time import sleep from notification import SnsNotification region = os.getenv('AWS_REGION','ap-northeast-1') SNS_ARN = os.environ['sns_arn'] CHANNEL = os.environ['channel'] REPO_OMMIT = os.environ['repo_ommit'] alb = boto3.client('elbv2', region_name=region) ecs =...
37.365994
218
0.614916
import os import json import random import boto3 from time import sleep from notification import SnsNotification region = os.getenv('AWS_REGION','ap-northeast-1') SNS_ARN = os.environ['sns_arn'] CHANNEL = os.environ['channel'] REPO_OMMIT = os.environ['repo_ommit'] alb = boto3.client('elbv2', region_name=region) ecs =...
11,638
0
317
629473a7461e8aa99da5ad07201f5ecf32b232c6
1,320
py
Python
app/modules/element.py
ysKuga/selenium-python-nue
e48f16c837b9d0e1b24cab7ed39ee5d2758d46ab
[ "BSD-2-Clause" ]
null
null
null
app/modules/element.py
ysKuga/selenium-python-nue
e48f16c837b9d0e1b24cab7ed39ee5d2758d46ab
[ "BSD-2-Clause" ]
null
null
null
app/modules/element.py
ysKuga/selenium-python-nue
e48f16c837b9d0e1b24cab7ed39ee5d2758d46ab
[ "BSD-2-Clause" ]
null
null
null
import re from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions from selenium.webdriver.remote import webdriver, webelement
28.695652
79
0.643939
import re from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions from selenium.webdriver.remote import webdriver, webelement class Element: wait_limit = 30 def __init__(self, driver: webdriver): s...
894
149
46
b38fdaf474cf508850d66aaf31f9c36aa506a61f
7,684
py
Python
cptk/core/chef.py
RealA10N/cptk
e500d948e91bb70661adc3c2539b149704c734a1
[ "Apache-2.0" ]
5
2021-12-25T01:49:45.000Z
2022-03-27T10:30:14.000Z
cptk/core/chef.py
RealA10N/cptk
e500d948e91bb70661adc3c2539b149704c734a1
[ "Apache-2.0" ]
39
2021-12-24T16:35:07.000Z
2022-03-18T23:15:14.000Z
cptk/core/chef.py
RealA10N/cptk
e500d948e91bb70661adc3c2539b149704c734a1
[ "Apache-2.0" ]
2
2022-01-12T19:13:20.000Z
2022-01-12T19:32:05.000Z
from __future__ import annotations import os import subprocess import sys import time from dataclasses import dataclass from threading import Timer from typing import TypeVar import cptk.constants import cptk.utils from cptk.core.system import System from cptk.local.problem import LocalProblem from cptk.scrape import...
31.621399
81
0.596694
from __future__ import annotations import os import subprocess import sys import time from dataclasses import dataclass from threading import Timer from typing import TypeVar import cptk.constants import cptk.utils from cptk.core.system import System from cptk.local.problem import LocalProblem from cptk.scrape import...
684
1,869
272
3f0f573387393c03ecef1816659123e9d7abdf6c
7,700
py
Python
index.py
serjolas1/CoursesWebsite
413969ea0b6857af36e9d86715181c0b2d51c319
[ "MIT" ]
4
2021-04-04T06:31:01.000Z
2021-04-08T23:35:40.000Z
index.py
serjolas1/CoursesWebsite
413969ea0b6857af36e9d86715181c0b2d51c319
[ "MIT" ]
null
null
null
index.py
serjolas1/CoursesWebsite
413969ea0b6857af36e9d86715181c0b2d51c319
[ "MIT" ]
null
null
null
import os import re from uuid import uuid4 from cs50 import SQL from flask import Flask, flash, render_template, redirect, request, session, json from flask_session import Session from tempfile import mkdtemp from helpers import login_required from werkzeug.security import generate_password_hash, check_password_hash fr...
35.981308
222
0.679481
import os import re from uuid import uuid4 from cs50 import SQL from flask import Flask, flash, render_template, redirect, request, session, json from flask_session import Session from tempfile import mkdtemp from helpers import login_required from werkzeug.security import generate_password_hash, check_password_hash fr...
5,341
0
298
bc35276d60b1270ee5982dcc5b96753e532a43bf
3,197
py
Python
melange/tests/unit/test_pagination.py
CiscoSystems/melange
d8ff17ecb9466b64dbd064710489ea62843e6636
[ "Apache-2.0" ]
1
2016-05-25T13:48:06.000Z
2016-05-25T13:48:06.000Z
melange/tests/unit/test_pagination.py
openstack-attic/melange
6ec8d7068e09505614dfc5f3edccfbe26aa50fe4
[ "Apache-2.0" ]
null
null
null
melange/tests/unit/test_pagination.py
openstack-attic/melange
6ec8d7068e09505614dfc5f3edccfbe26aa50fe4
[ "Apache-2.0" ]
null
null
null
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2011 OpenStack LLC. # 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/...
43.202703
79
0.673444
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2011 OpenStack LLC. # 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/...
2,123
23
154
4bfe658ee8da3149e9d104dda1cceeba93a6d17a
112
py
Python
integration_tests/test-packages/python/pythonspecific/pythonspecific/mod_one/__init__.py
bburns632/doppel-cli
e0c708f565db0f558bca6f2fbe28a41d45121344
[ "BSD-3-Clause" ]
null
null
null
integration_tests/test-packages/python/pythonspecific/pythonspecific/mod_one/__init__.py
bburns632/doppel-cli
e0c708f565db0f558bca6f2fbe28a41d45121344
[ "BSD-3-Clause" ]
null
null
null
integration_tests/test-packages/python/pythonspecific/pythonspecific/mod_one/__init__.py
bburns632/doppel-cli
e0c708f565db0f558bca6f2fbe28a41d45121344
[ "BSD-3-Clause" ]
null
null
null
from .some_function import some_function from .SomeClass import SomeClass from .SomeClass import SOME_CONSTANT
22.4
40
0.857143
from .some_function import some_function from .SomeClass import SomeClass from .SomeClass import SOME_CONSTANT
0
0
0
56a88390ca09cbff3042660da34ebde68489dc4b
644
py
Python
kalin_combat/project/tests/test_circle.py
ivan-yosifov88/python_oop_june_2021
7ae6126065abbcce7ce97c86d1150ae307360249
[ "MIT" ]
1
2021-08-03T19:14:24.000Z
2021-08-03T19:14:24.000Z
kalin_combat/project/tests/test_circle.py
ivan-yosifov88/python_oop_june_2021
7ae6126065abbcce7ce97c86d1150ae307360249
[ "MIT" ]
null
null
null
kalin_combat/project/tests/test_circle.py
ivan-yosifov88/python_oop_june_2021
7ae6126065abbcce7ce97c86d1150ae307360249
[ "MIT" ]
null
null
null
import unittest from project.figure.circle import Circle
32.2
92
0.734472
import unittest from project.figure.circle import Circle class TestCircle(unittest.TestCase): def test_init__when_all_valid__should_set(self): circle = Circle("test", 10) self.assertEqual("test", circle.name) self.assertEqual(10, circle.args[0]) def test_calculate_area__when_radius__...
466
15
103
d3335c013da4ff05d6b9bf5c6dae8c44ca48ad5a
1,613
py
Python
iseq/sam.py
Miachol/iseq
7d05900dff43e1b0e0c1f017b55a1e56f9148f86
[ "Apache-2.0" ]
12
2017-10-27T02:03:23.000Z
2021-07-06T08:57:15.000Z
iseq/sam.py
Miachol/iseq
7d05900dff43e1b0e0c1f017b55a1e56f9148f86
[ "Apache-2.0" ]
null
null
null
iseq/sam.py
Miachol/iseq
7d05900dff43e1b0e0c1f017b55a1e56f9148f86
[ "Apache-2.0" ]
3
2019-04-01T07:40:47.000Z
2020-11-04T11:59:15.000Z
#!/usr/bin/env python # coding=utf-8 """Module Description Copyright (c) 2017 Jianfeng Li <lee_jianfeng@sjtu.edu.cn> This code is free software; you can redistribute it and/or modify it under the terms of the MIT License. @sam: Sam File Class @status: experimental @version: 0.0.1 @author: Jianfeng Li @contact: lee_ji...
36.659091
114
0.642281
#!/usr/bin/env python # coding=utf-8 """Module Description Copyright (c) 2017 Jianfeng Li <lee_jianfeng@sjtu.edu.cn> This code is free software; you can redistribute it and/or modify it under the terms of the MIT License. @sam: Sam File Class @status: experimental @version: 0.0.1 @author: Jianfeng Li @contact: lee_ji...
902
0
52
6282c78a91381063292847cfd1166084602c7398
4,733
py
Python
tests/tensortrade/features/stationarity/test_fractional_difference.py
andreskull/tensortrade
16d1113621d435d0dfdd5eabbe3d7e4658f7178a
[ "Apache-2.0" ]
2
2020-02-04T15:11:37.000Z
2021-03-02T02:37:10.000Z
tests/tensortrade/features/stationarity/test_fractional_difference.py
mwbrulhardt/tensortrade
8a83bddb0243b8c91e637737c23d6b43652182a2
[ "Apache-2.0" ]
null
null
null
tests/tensortrade/features/stationarity/test_fractional_difference.py
mwbrulhardt/tensortrade
8a83bddb0243b8c91e637737c23d6b43652182a2
[ "Apache-2.0" ]
null
null
null
import pytest import numpy as np import pandas as pd from gym.spaces import Box from tensortrade.features import FeatureTransformer from tensortrade.features.stationarity import FractionalDifference @pytest.fixture
28.859756
111
0.552292
import pytest import numpy as np import pandas as pd from gym.spaces import Box from tensortrade.features import FeatureTransformer from tensortrade.features.stationarity import FractionalDifference @pytest.fixture def data_frame(): data_frame = pd.DataFrame([{ 'open': 100, 'low': 50, 'h...
4,322
12
179
8d695b5652d04f49cc89619584c2dc6616838ab7
7,988
py
Python
src/monopsr/core/trainer.py
minghanz/monopsr
f3cb31909666012dfcf38e5fe0b0f6feb3801560
[ "MIT" ]
104
2019-08-13T01:26:19.000Z
2022-03-30T12:08:00.000Z
src/monopsr/core/trainer.py
weidezhang/monopsr
e194d2547f10e7ab50d786762dcf9f5619069ce8
[ "MIT" ]
5
2020-01-28T22:16:24.000Z
2022-02-09T23:33:07.000Z
src/monopsr/core/trainer.py
weidezhang/monopsr
e194d2547f10e7ab50d786762dcf9f5619069ce8
[ "MIT" ]
25
2019-08-12T23:31:40.000Z
2022-02-12T02:27:12.000Z
"""Detection model trainer. This file provides a generic training method to train a DetectionModel. """ import datetime import os import tensorflow as tf import time import monopsr from monopsr.builders import optimizer_builder, net_builder from monopsr.core import checkpoint_utils from monopsr.core import summary_ut...
37.502347
98
0.671132
"""Detection model trainer. This file provides a generic training method to train a DetectionModel. """ import datetime import os import tensorflow as tf import time import monopsr from monopsr.builders import optimizer_builder, net_builder from monopsr.core import checkpoint_utils from monopsr.core import summary_ut...
0
0
0
3f2b474a38b3a8c12534772869758af0bb8c8f39
419
py
Python
5day/Net01.py
jsjang93/joony
62f7a325094c887212b894932263bf84500e0f03
[ "MIT" ]
null
null
null
5day/Net01.py
jsjang93/joony
62f7a325094c887212b894932263bf84500e0f03
[ "MIT" ]
null
null
null
5day/Net01.py
jsjang93/joony
62f7a325094c887212b894932263bf84500e0f03
[ "MIT" ]
null
null
null
# Net01.py # Server # command A 창에서 실행 from socket import * svrIP = '59.29.224.54' # Host IP svrPort = 64000 svrAddr = (svrIP,svrPort) svrSocket = socket(AF_INET,SOCK_STREAM) svrSocket.bind(svrAddr) svrSocket.listen(0) # Listening 상태 완료 # Connect 허락 cliSocket, cliAddr = svrSocket.accept() # 메세지 전송(send) cliSocket....
19.045455
39
0.720764
# Net01.py # Server # command A 창에서 실행 from socket import * svrIP = '59.29.224.54' # Host IP svrPort = 64000 svrAddr = (svrIP,svrPort) svrSocket = socket(AF_INET,SOCK_STREAM) svrSocket.bind(svrAddr) svrSocket.listen(0) # Listening 상태 완료 # Connect 허락 cliSocket, cliAddr = svrSocket.accept() # 메세지 전송(send) cliSocket....
0
0
0
a1ec5e6d5bbfce43aaf83f35097308a0f00c7c3d
1,786
py
Python
someip_fuzzer/heartbeat.py
cfanatic/someip-protocol-fuzzer
5977f62580f02a95568c0715dd6bb2eb804d0a81
[ "MIT" ]
null
null
null
someip_fuzzer/heartbeat.py
cfanatic/someip-protocol-fuzzer
5977f62580f02a95568c0715dd6bb2eb804d0a81
[ "MIT" ]
null
null
null
someip_fuzzer/heartbeat.py
cfanatic/someip-protocol-fuzzer
5977f62580f02a95568c0715dd6bb2eb804d0a81
[ "MIT" ]
null
null
null
from scapy.all import * from someip_fuzzer.config import config from someip_fuzzer.log import log_info from someip_fuzzer.types import * from queue import Queue import threading import time load_contrib("automotive.someip")
35.019608
98
0.577828
from scapy.all import * from someip_fuzzer.config import config from someip_fuzzer.log import log_info from someip_fuzzer.types import * from queue import Queue import threading import time load_contrib("automotive.someip") class Heartbeat(threading.Thread): def __init__(self, excq): super().__init__() ...
1,437
13
111
a0d4eed49c6a1f032c73385cfa56cd9a30b328a2
3,086
py
Python
attic/static.py
eblade/attic
19de913bc2cf61beffd4c754299a89b3e3e0cbf4
[ "MIT" ]
null
null
null
attic/static.py
eblade/attic
19de913bc2cf61beffd4c754299a89b3e3e0cbf4
[ "MIT" ]
null
null
null
attic/static.py
eblade/attic
19de913bc2cf61beffd4c754299a89b3e3e0cbf4
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import pathlib import typing as t import mimetypes mimetypes.add_type("text/gemini", ".gmi")
32.829787
79
0.567401
#!/usr/bin/env python3 import pathlib import typing as t import mimetypes mimetypes.add_type("text/gemini", ".gmi") class ResolvedFile: def __init__(self, filepath: pathlib.Path, mimetype: str = None): self.path = filepath if mimetype is not None: self.mimetype = mimetype e...
2,628
-1
336
86c8236fe9570a81e18265f744481ef93fb45114
1,451
py
Python
setup.py
henrystokeley/pgsheets
555c2af1b570cee5c206b36c339403892dbd47b1
[ "MIT" ]
7
2015-07-21T07:19:02.000Z
2018-04-23T22:00:30.000Z
setup.py
robin900/pgsheets
555c2af1b570cee5c206b36c339403892dbd47b1
[ "MIT" ]
3
2016-03-14T15:39:10.000Z
2016-03-29T19:47:23.000Z
setup.py
robin900/pgsheets
555c2af1b570cee5c206b36c339403892dbd47b1
[ "MIT" ]
3
2016-03-10T01:32:12.000Z
2021-05-09T17:09:10.000Z
import re from setuptools import setup, find_packages if __name__ == '__main__': # get requirements with open('requirements.txt') as f: requirements = f.read() requirements = [ r for r in requirements.splitlines() if r != ''] # get readme with open('README.rst') as f: ...
33.744186
75
0.555479
import re from setuptools import setup, find_packages if __name__ == '__main__': # get requirements with open('requirements.txt') as f: requirements = f.read() requirements = [ r for r in requirements.splitlines() if r != ''] # get readme with open('README.rst') as f: ...
0
0
0
9214e5e2cc3af15eb4d0042d7cc7603214f10b83
8,770
py
Python
app/infra/in_memory_data_repository/__init__.py
LukeSamkharadze/wallet-management
c2efeb54676e4fe0901b6980f1ba6e5af5796271
[ "MIT" ]
null
null
null
app/infra/in_memory_data_repository/__init__.py
LukeSamkharadze/wallet-management
c2efeb54676e4fe0901b6980f1ba6e5af5796271
[ "MIT" ]
null
null
null
app/infra/in_memory_data_repository/__init__.py
LukeSamkharadze/wallet-management
c2efeb54676e4fe0901b6980f1ba6e5af5796271
[ "MIT" ]
null
null
null
from dataclasses import dataclass from datetime import datetime from app.core import ( DbAddTransactionIn, DbAddTransactionOut, DbAddUserIn, DbAddUserOut, DbAddWalletIn, DbAddWalletOut, DbFetchStatisticsIn, DbFetchStatisticsOut, DbGetUserWalletCountIn, DbGetUserWalletCountOut, ...
34.940239
87
0.628506
from dataclasses import dataclass from datetime import datetime from app.core import ( DbAddTransactionIn, DbAddTransactionOut, DbAddUserIn, DbAddUserOut, DbAddWalletIn, DbAddWalletOut, DbFetchStatisticsIn, DbFetchStatisticsOut, DbGetUserWalletCountIn, DbGetUserWalletCountOut, ...
6,956
1,023
110
d77a820fbf1c026b2c4c5d73a7b6482f0b91a35a
5,868
py
Python
c5_irlf_wang.py
Jayshil/csfrd
9f9e8ccea93f464cfd7cf45c06b05738194d3da5
[ "MIT" ]
null
null
null
c5_irlf_wang.py
Jayshil/csfrd
9f9e8ccea93f464cfd7cf45c06b05738194d3da5
[ "MIT" ]
null
null
null
c5_irlf_wang.py
Jayshil/csfrd
9f9e8ccea93f464cfd7cf45c06b05738194d3da5
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import scipy.integrate as inte import astropy.constants as con import astropy.units as u from tqdm import tqdm import os import utils as utl import irlf as irlf # LF Parameters zdo = np.array([0.0, 0.3, 0.45, 0.6, 0.8, 1.0, 1.2, 1.7, 2.0, 2.5, 3.0, 4.2, 5.0]) zup = np...
36
129
0.599523
import numpy as np import matplotlib.pyplot as plt import scipy.integrate as inte import astropy.constants as con import astropy.units as u from tqdm import tqdm import os import utils as utl import irlf as irlf # LF Parameters zdo = np.array([0.0, 0.3, 0.45, 0.6, 0.8, 1.0, 1.2, 1.7, 2.0, 2.5, 3.0, 4.2, 5.0]) zup = np...
0
0
0
75863c2a587b059265d14ae522264c99f3bf22a8
412
py
Python
src/pyoram/utils.py
marcjulian/pyoram
963bdc103196c0e014cc4934856e103b76420f07
[ "MIT" ]
6
2016-02-10T11:04:57.000Z
2020-03-04T18:32:07.000Z
src/pyoram/utils.py
marcjulian/pyoram
963bdc103196c0e014cc4934856e103b76420f07
[ "MIT" ]
null
null
null
src/pyoram/utils.py
marcjulian/pyoram
963bdc103196c0e014cc4934856e103b76420f07
[ "MIT" ]
null
null
null
import base64 WRITE_MODE = 'w' READ_MODE = 'r' READ_WRITE_MODE = 'r+' READ_BINARY_MODE = 'rb' WRITE_BINARY_MODE = 'wb' KEY_MAP_FILE_NAME = 'key.map' FILE_MAP_FILE_NAME = 'file.map' POSITION_MAP_FILE_NAME = 'position.map' STASH_FOLDER_NAME = 'stash' CLOUD_MAP_FILE_NAME = 'cloud.map' LOG_FILE_NAME = 'pyoram.log'
16.48
39
0.73301
import base64 WRITE_MODE = 'w' READ_MODE = 'r' READ_WRITE_MODE = 'r+' READ_BINARY_MODE = 'rb' WRITE_BINARY_MODE = 'wb' KEY_MAP_FILE_NAME = 'key.map' FILE_MAP_FILE_NAME = 'file.map' POSITION_MAP_FILE_NAME = 'position.map' STASH_FOLDER_NAME = 'stash' CLOUD_MAP_FILE_NAME = 'cloud.map' LOG_FILE_NAME = 'pyoram.log' de...
48
0
46
d2ea80444d86d925b78e0e23cb20b9563a6bfcb5
5,309
py
Python
sonarqube/community/measures.py
shijl-0925/python-sonarqube-api
afd89a196bd8c1d120a1e9ffe1738f9f9460e748
[ "MIT" ]
71
2020-09-10T08:05:08.000Z
2020-09-25T05:54:01.000Z
sonarqube/community/measures.py
swede0925/python-sonarqube
afd89a196bd8c1d120a1e9ffe1738f9f9460e748
[ "MIT" ]
2
2020-09-10T19:52:16.000Z
2020-09-19T12:58:05.000Z
sonarqube/community/measures.py
swede0925/python-sonarqube
afd89a196bd8c1d120a1e9ffe1738f9f9460e748
[ "MIT" ]
1
2020-10-22T19:14:56.000Z
2020-10-22T19:14:56.000Z
#!/usr/bin/env python # -*- coding:utf-8 -*- # @Author: Jialiang Shi from sonarqube.utils.rest_client import RestClient from sonarqube.utils.config import ( API_MEASURES_COMPONENT_ENDPOINT, API_MEASURES_COMPONENT_TREE_ENDPOINT, API_MEASURES_SEARCH_HISTORY_ENDPOINT, ) from sonarqube.utils.common import GET, ...
37.387324
123
0.653042
#!/usr/bin/env python # -*- coding:utf-8 -*- # @Author: Jialiang Shi from sonarqube.utils.rest_client import RestClient from sonarqube.utils.config import ( API_MEASURES_COMPONENT_ENDPOINT, API_MEASURES_COMPONENT_TREE_ENDPOINT, API_MEASURES_SEARCH_HISTORY_ENDPOINT, ) from sonarqube.utils.common import GET, ...
0
0
0
2b20761ae106a9c8c1925795f05833b69d126c0d
7,540
py
Python
FindPath.py
hoodedpaladin/HoodTracker
49c589aaaf006d06570c8cd93a3a6280b9025bbf
[ "MIT" ]
5
2021-02-12T08:54:45.000Z
2022-03-24T00:00:15.000Z
FindPath.py
hoodedpaladin/HoodTracker
49c589aaaf006d06570c8cd93a3a6280b9025bbf
[ "MIT" ]
1
2021-12-30T20:56:04.000Z
2022-01-07T22:03:09.000Z
FindPath.py
hoodedpaladin/HoodTracker
49c589aaaf006d06570c8cd93a3a6280b9025bbf
[ "MIT" ]
1
2020-10-09T10:46:33.000Z
2020-10-09T10:46:33.000Z
import HoodTracker from CommonUtils import * import PySide2.QtWidgets as QtWidgets
39.684211
195
0.645756
import HoodTracker from CommonUtils import * import PySide2.QtWidgets as QtWidgets class Visit: def __init__(self, age, region, steps, string, previous): self.age = age self.region = region self.steps = steps self.string = string self.previous = previous def getHistory(s...
7,273
10
174
24cac461c24ed51e7d1296f415d4612c372dee9f
11,417
py
Python
src/tomate/db_types/plotting/plot_object.py
Descanonge/tomate
6b24dc4a03230f45ad92670919a225c7e93e8118
[ "MIT" ]
null
null
null
src/tomate/db_types/plotting/plot_object.py
Descanonge/tomate
6b24dc4a03230f45ad92670919a225c7e93e8118
[ "MIT" ]
null
null
null
src/tomate/db_types/plotting/plot_object.py
Descanonge/tomate
6b24dc4a03230f45ad92670919a225c7e93e8118
[ "MIT" ]
null
null
null
"""Abstract object containing information about plots.""" # This file is part of the 'tomate' project # (http://github.com/Descanonge/tomate) and subject # to the MIT License as defined in the file 'LICENSE', # at the root of this project. © 2020 Clément HAËCK from typing import Any, Dict, List, Union, TYPE_CHECKING...
34.492447
86
0.570465
"""Abstract object containing information about plots.""" # This file is part of the 'tomate' project # (http://github.com/Descanonge/tomate) and subject # to the MIT License as defined in the file 'LICENSE', # at the root of this project. © 2020 Clément HAËCK from typing import Any, Dict, List, Union, TYPE_CHECKING...
398
0
27
835b321a47e17b051904dec35911ad556cd535e9
5,428
py
Python
LinearLassoRegression.py
prakhardogra921/Year-Prediction-using-Regression
bac8e88f2443837c931d6ba1029daddb4b256fc3
[ "MIT" ]
null
null
null
LinearLassoRegression.py
prakhardogra921/Year-Prediction-using-Regression
bac8e88f2443837c931d6ba1029daddb4b256fc3
[ "MIT" ]
null
null
null
LinearLassoRegression.py
prakhardogra921/Year-Prediction-using-Regression
bac8e88f2443837c931d6ba1029daddb4b256fc3
[ "MIT" ]
null
null
null
# Reference Source: https://github.com/llSourcell/linear_regression_live/blob/master/demo.py import pandas as pd import numpy as np from sklearn.model_selection import train_test_split from sklearn.preprocessing import StandardScaler import matplotlib.pyplot as plt from sklearn.utils import shuffle from sklearn.metric...
36.186667
162
0.609248
# Reference Source: https://github.com/llSourcell/linear_regression_live/blob/master/demo.py import pandas as pd import numpy as np from sklearn.model_selection import train_test_split from sklearn.preprocessing import StandardScaler import matplotlib.pyplot as plt from sklearn.utils import shuffle from sklearn.metric...
1,134
2
157
1f5a2e10a17e9544d0d3a40f91106bf0ca495f75
902
py
Python
setup.py
bdragon300/sparsedlist
5f706b4bcee177a4898dcc0a5becf83553c794dd
[ "Apache-2.0" ]
null
null
null
setup.py
bdragon300/sparsedlist
5f706b4bcee177a4898dcc0a5becf83553c794dd
[ "Apache-2.0" ]
null
null
null
setup.py
bdragon300/sparsedlist
5f706b4bcee177a4898dcc0a5becf83553c794dd
[ "Apache-2.0" ]
null
null
null
import setuptools with open("README.rst", "r") as fh: long_description = fh.read() setuptools.setup( name='sparsedlist', version='0.4', packages=[''], url='https://github.com/bdragon300/sparsedlist', license='Apache-2.0', author='Igor Derkach', author_email='gosha753951@gmail.com', ...
30.066667
70
0.638581
import setuptools with open("README.rst", "r") as fh: long_description = fh.read() setuptools.setup( name='sparsedlist', version='0.4', packages=[''], url='https://github.com/bdragon300/sparsedlist', license='Apache-2.0', author='Igor Derkach', author_email='gosha753951@gmail.com', ...
0
0
0
37c004eec2b0d5cc9e6d9eef9e9df368266a7c00
2,225
py
Python
src/scripts/prepare_collection_result_vary_scale.py
yifan-you-37/omnihang
c80b699b2cf2cf3422201cc8c3fa572d0e01d5a2
[ "MIT" ]
1
2022-01-16T20:24:09.000Z
2022-01-16T20:24:09.000Z
src/scripts/prepare_collection_result_vary_scale.py
yifan-you-37/omnihang
c80b699b2cf2cf3422201cc8c3fa572d0e01d5a2
[ "MIT" ]
null
null
null
src/scripts/prepare_collection_result_vary_scale.py
yifan-you-37/omnihang
c80b699b2cf2cf3422201cc8c3fa572d0e01d5a2
[ "MIT" ]
1
2022-03-16T03:14:37.000Z
2022-03-16T03:14:37.000Z
import time import numpy as np import random # np.random.seed(5) # random.seed(5) import sys import os import argparse sys.path.insert(1, '../utils/') from coord_helper import * from data_helper import * import bullet_client as bc if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument("...
25.574713
89
0.698876
import time import numpy as np import random # np.random.seed(5) # random.seed(5) import sys import os import argparse sys.path.insert(1, '../utils/') from coord_helper import * from data_helper import * import bullet_client as bc if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument("...
0
0
0
f03e4d78ae9e9885e3e1cbf176f7c1d9d673b000
413
py
Python
Twitter-OA/Anagram-Difference.py
xizhang77/CodingInterview
c5e7777e6a5b691bb410c25f29ae0f51a6598a12
[ "MIT" ]
1
2021-06-12T04:47:05.000Z
2021-06-12T04:47:05.000Z
Twitter-OA/Anagram-Difference.py
xizhang77/CodingInterview
c5e7777e6a5b691bb410c25f29ae0f51a6598a12
[ "MIT" ]
null
null
null
Twitter-OA/Anagram-Difference.py
xizhang77/CodingInterview
c5e7777e6a5b691bb410c25f29ae0f51a6598a12
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ''' Anagram Difference - https://www.hackerrank.com/challenges/anagram/problem '''
20.65
74
0.624697
# -*- coding: utf-8 -*- ''' Anagram Difference - https://www.hackerrank.com/challenges/anagram/problem ''' class Solution(object): def anagram(self, s): if len(s)%2: return -1 count1, count2 = Counter(s[:len(s)/2]), Counter(s[len(s)/2:]) if count1 == count2: return 0 for key in count1: if key in c...
258
2
46
5f1009420dd2705c6ccddae677e39a5f3a943b0f
91
py
Python
lavra/desmonte/apps.py
ArrowsX/projeto_lavra
611d37764e6fc54674bc19cd47b46135359fbf4b
[ "MIT" ]
null
null
null
lavra/desmonte/apps.py
ArrowsX/projeto_lavra
611d37764e6fc54674bc19cd47b46135359fbf4b
[ "MIT" ]
null
null
null
lavra/desmonte/apps.py
ArrowsX/projeto_lavra
611d37764e6fc54674bc19cd47b46135359fbf4b
[ "MIT" ]
null
null
null
from django.apps import AppConfig
15.166667
33
0.758242
from django.apps import AppConfig class DesmonteConfig(AppConfig): name = 'desmonte'
0
33
23
017a73e82504b2b5a49274e67b0668cb7215a835
864
py
Python
modules/APIagent.py
analphagamma/WeatherReportEmail
345338809b58a32b84bde8f4bab04a64d6ada0b7
[ "MIT" ]
null
null
null
modules/APIagent.py
analphagamma/WeatherReportEmail
345338809b58a32b84bde8f4bab04a64d6ada0b7
[ "MIT" ]
null
null
null
modules/APIagent.py
analphagamma/WeatherReportEmail
345338809b58a32b84bde8f4bab04a64d6ada0b7
[ "MIT" ]
null
null
null
import requests import json
39.272727
138
0.606481
import requests import json class APIagent: def __init__(self, location, api_key): self.location = location self.api_key = api_key def get_forecast(self): ''' Connects to the website's API, sends a request and returns the content in JSON. ''' r = reques...
81
733
23
bd0ec4070930f9f616e5d129681d5b039ab1675a
431
py
Python
app/authentication/migrations/0008_user_sub.py
getmetamapper/metamapper
0b2f67eec03fbf7ece35ff9f58ea9bb2dde4d85f
[ "BSD-2-Clause" ]
53
2020-07-01T23:11:59.000Z
2022-03-31T19:10:28.000Z
app/authentication/migrations/0008_user_sub.py
getmetamapper/metamapper
0b2f67eec03fbf7ece35ff9f58ea9bb2dde4d85f
[ "BSD-2-Clause" ]
5
2020-11-25T19:48:57.000Z
2022-02-27T23:50:18.000Z
app/authentication/migrations/0008_user_sub.py
getmetamapper/metamapper
0b2f67eec03fbf7ece35ff9f58ea9bb2dde4d85f
[ "BSD-2-Clause" ]
5
2020-08-29T16:43:59.000Z
2022-01-17T19:05:30.000Z
# Generated by Django 3.0.8 on 2020-08-21 17:43 from django.db import migrations, models
22.684211
89
0.61949
# Generated by Django 3.0.8 on 2020-08-21 17:43 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('authentication', '0007_workspace_beacon_consent'), ] operations = [ migrations.AddField( model_name='user', name='su...
0
317
23
266750508e19dbce61a5f8937c9575385a3fbdc9
3,872
py
Python
examples/_chem_kinet.py
slayoo/pyodesys
8e1afb195dadf6c6f8e765873bc9dd0fae067c39
[ "BSD-2-Clause" ]
82
2015-09-29T16:51:03.000Z
2022-02-02T13:26:50.000Z
examples/_chem_kinet.py
slayoo/pyodesys
8e1afb195dadf6c6f8e765873bc9dd0fae067c39
[ "BSD-2-Clause" ]
28
2015-09-29T14:40:45.000Z
2021-09-18T19:29:50.000Z
examples/_chem_kinet.py
slayoo/pyodesys
8e1afb195dadf6c6f8e765873bc9dd0fae067c39
[ "BSD-2-Clause" ]
13
2016-03-18T14:00:39.000Z
2021-09-17T13:54:29.000Z
# -*- coding: utf-8 -*- from __future__ import (absolute_import, division, print_function) import codecs import gzip import pickle from functools import reduce from itertools import chain from operator import mul from pyodesys.symbolic import SymbolicSys radiolysis1 = """ H4sIAGqdpVgC/42YD1BURRjA7x0gpliplalYYhes4...
45.023256
91
0.803461
# -*- coding: utf-8 -*- from __future__ import (absolute_import, division, print_function) import codecs import gzip import pickle from functools import reduce from itertools import chain from operator import mul from pyodesys.symbolic import SymbolicSys def get_odesys(reac, prod, names, SymbSys, inact_reac=None, *...
1,476
0
46
1a0aefee8c8d805efa2ee9a89c9800631e4044e2
20,989
py
Python
test_pytapo.py
Depau/pytapo
c56bba4f442a6be369eb898736ef2dc50fbeb69d
[ "MIT" ]
null
null
null
test_pytapo.py
Depau/pytapo
c56bba4f442a6be369eb898736ef2dc50fbeb69d
[ "MIT" ]
null
null
null
test_pytapo.py
Depau/pytapo
c56bba4f442a6be369eb898736ef2dc50fbeb69d
[ "MIT" ]
null
null
null
import os import pytest import json import time from pytapo import Tapo import mock user = os.environ.get("PYTAPO_USER") password = os.environ.get("PYTAPO_PASSWORD") invalidPassword = "{password}_invalid".format(password=password) host = os.environ.get("PYTAPO_IP") """ util functions for unit tests """ """ unit t...
30.070201
88
0.635571
import os import pytest import json import time from pytapo import Tapo import mock user = os.environ.get("PYTAPO_USER") password = os.environ.get("PYTAPO_PASSWORD") invalidPassword = "{password}_invalid".format(password=password) host = os.environ.get("PYTAPO_IP") """ util functions for unit tests """ def setOsd(t...
19,720
0
897
115edd329a78a1257c5b50e9f817642feb21777f
110
py
Python
zeitslots_to_json.py
omehling/faim_website
0131c834dc6e653ce5c890723b433a43bb1628b9
[ "MIT" ]
null
null
null
zeitslots_to_json.py
omehling/faim_website
0131c834dc6e653ce5c890723b433a43bb1628b9
[ "MIT" ]
null
null
null
zeitslots_to_json.py
omehling/faim_website
0131c834dc6e653ce5c890723b433a43bb1628b9
[ "MIT" ]
null
null
null
import pandas as pd dfcsv=pd.read_csv('gruppen-zeitslots-vers3.csv') dfcsv.T.to_json('gruppen-zeitslots.json')
36.666667
48
0.8
import pandas as pd dfcsv=pd.read_csv('gruppen-zeitslots-vers3.csv') dfcsv.T.to_json('gruppen-zeitslots.json')
0
0
0
79630b8839e196ad7f6a72e593d07acd38b792fc
482
py
Python
python/asyncio/coding_dojang/urlopen.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/asyncio/coding_dojang/urlopen.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/asyncio/coding_dojang/urlopen.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
from time import time from urllib.request import Request, urlopen urls = [ "https://www.google.com/search?q=" + i for i in ["apple", "pear", "grape", "pineapple", "orange", "strawberry", "pie", "helloworld"] ] begin = time() result = [] for url in urls: request = Request(url, headers={"User-Agent": "Mozil...
24.1
97
0.636929
from time import time from urllib.request import Request, urlopen urls = [ "https://www.google.com/search?q=" + i for i in ["apple", "pear", "grape", "pineapple", "orange", "strawberry", "pie", "helloworld"] ] begin = time() result = [] for url in urls: request = Request(url, headers={"User-Agent": "Mozil...
0
0
0
c802e5b2fab877ebd4d024d2a3ec2028a5ed42c9
3,927
py
Python
authors/apps/authentication/tests/test_social_auth.py
bl4ck4ndbr0wn/ah-centauri-backend
5a31840856de4b361fe2594dfa7a33d7774d3fe2
[ "BSD-3-Clause" ]
1
2019-04-29T15:22:42.000Z
2019-04-29T15:22:42.000Z
authors/apps/authentication/tests/test_social_auth.py
andela/ah-centauri-backend
5a31840856de4b361fe2594dfa7a33d7774d3fe2
[ "BSD-3-Clause" ]
20
2019-03-28T10:50:53.000Z
2022-02-10T07:48:36.000Z
authors/apps/authentication/tests/test_social_auth.py
bl4ck4ndbr0wn/ah-centauri-backend
5a31840856de4b361fe2594dfa7a33d7774d3fe2
[ "BSD-3-Clause" ]
6
2019-05-21T22:28:08.000Z
2020-03-12T08:35:34.000Z
from unittest.mock import patch from django.contrib.auth import get_user_model from django.test import TestCase from django.urls import reverse from rest_framework import status from rest_framework.test import APIClient FACEBOOK_URL = reverse('authentication:facebook') GOOGLE_URL = reverse('authentication:google') T...
35.0625
104
0.586453
from unittest.mock import patch from django.contrib.auth import get_user_model from django.test import TestCase from django.urls import reverse from rest_framework import status from rest_framework.test import APIClient FACEBOOK_URL = reverse('authentication:facebook') GOOGLE_URL = reverse('authentication:google') T...
3,002
10
235
6a89ae26d0ccee11cad2cc41307f9cbec096a556
395
py
Python
express/properties/structural/inchi_key.py
Exabyte-io/exabyte-express
579cc1ad3666352848e0ac8eeec84cb410a9a9c7
[ "Apache-2.0" ]
null
null
null
express/properties/structural/inchi_key.py
Exabyte-io/exabyte-express
579cc1ad3666352848e0ac8eeec84cb410a9a9c7
[ "Apache-2.0" ]
null
null
null
express/properties/structural/inchi_key.py
Exabyte-io/exabyte-express
579cc1ad3666352848e0ac8eeec84cb410a9a9c7
[ "Apache-2.0" ]
null
null
null
from express.properties.non_scalar import NonScalarProperty class InchiKey(NonScalarProperty): """ Inchi key property class. """
26.333333
69
0.660759
from express.properties.non_scalar import NonScalarProperty class InchiKey(NonScalarProperty): """ Inchi key property class. """ def __init__(self, name, parser, *args, **kwargs): super(InchiKey, self).__init__(name, parser, *args, **kwargs) self.name = name self.value = self.p...
199
0
53
67ac1da7291971e09db296fbc7c7676ef681ca68
2,396
py
Python
tools/check_font.py
Sand0001/OCR_textrender_jap_chn_eng
87a01946bb8cd5229d2babcdf42a18df5b3e561f
[ "MIT" ]
null
null
null
tools/check_font.py
Sand0001/OCR_textrender_jap_chn_eng
87a01946bb8cd5229d2babcdf42a18df5b3e561f
[ "MIT" ]
null
null
null
tools/check_font.py
Sand0001/OCR_textrender_jap_chn_eng
87a01946bb8cd5229d2babcdf42a18df5b3e561f
[ "MIT" ]
null
null
null
import argparse import glob import sys import os import time sys.path.insert(0, os.path.abspath(os.path.join(__file__, '../', '../'))) from libs.utils import load_chars from libs.font_utils import check_font_chars, load_font if __name__ == '__main__': parser = argparse.ArgumentParser(description='Find chars not s...
34.724638
103
0.595993
import argparse import glob import sys import os import time sys.path.insert(0, os.path.abspath(os.path.join(__file__, '../', '../'))) from libs.utils import load_chars from libs.font_utils import check_font_chars, load_font if __name__ == '__main__': parser = argparse.ArgumentParser(description='Find chars not s...
0
0
0
cb660e588ed2dd70b693eef97f7dfea88a3495e4
3,526
py
Python
bot.py
teamshortcut/Discord-Nickname-Moderation
6a2b9993516fec1d9c086481f74b456e5c73ae10
[ "MIT" ]
null
null
null
bot.py
teamshortcut/Discord-Nickname-Moderation
6a2b9993516fec1d9c086481f74b456e5c73ae10
[ "MIT" ]
1
2021-03-12T03:57:06.000Z
2021-03-12T03:57:06.000Z
bot.py
teamshortcut/Discord-Nickname-Moderation
6a2b9993516fec1d9c086481f74b456e5c73ae10
[ "MIT" ]
2
2021-04-19T16:53:59.000Z
2022-02-09T16:15:09.000Z
# Import libraries import discord import re TOKEN = "XXXX" ADMIN_ROLES = [00000000000000000, 00000000000000000] # insert numerical IDs of admin roles here - bot will ignore changes made by these users BOT_ROLE_ID = 00000000000000000 # numerical ID of the role given to this bot - changes made by this role will be ignor...
39.177778
141
0.663925
# Import libraries import discord import re TOKEN = "XXXX" ADMIN_ROLES = [00000000000000000, 00000000000000000] # insert numerical IDs of admin roles here - bot will ignore changes made by these users BOT_ROLE_ID = 00000000000000000 # numerical ID of the role given to this bot - changes made by this role will be ignor...
2,399
0
110
aa873def05e9db96cd1bc0704efa07caa7039686
84
py
Python
cities/admin.py
seanbradley/Simpletown
d14dffba5030b574be3e01f8792a97ec0c049df4
[ "Apache-2.0" ]
3
2015-10-23T13:00:02.000Z
2020-02-08T11:04:53.000Z
cities/admin.py
seanbradley/Simpletown
d14dffba5030b574be3e01f8792a97ec0c049df4
[ "Apache-2.0" ]
null
null
null
cities/admin.py
seanbradley/Simpletown
d14dffba5030b574be3e01f8792a97ec0c049df4
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin from models import City admin.site.register(City)
16.8
32
0.821429
from django.contrib import admin from models import City admin.site.register(City)
0
0
0
8aebaea1e05dbd49fc9ab031ea56513c5e1a57f2
124
py
Python
tests/__init__.py
EricaMaurer/db-factfinder
6f8b73f927673a7d2587fda070b140828df98fdf
[ "MIT" ]
null
null
null
tests/__init__.py
EricaMaurer/db-factfinder
6f8b73f927673a7d2587fda070b140828df98fdf
[ "MIT" ]
112
2020-10-29T20:10:59.000Z
2021-09-13T18:53:49.000Z
tests/__init__.py
EricaMaurer/db-factfinder
6f8b73f927673a7d2587fda070b140828df98fdf
[ "MIT" ]
1
2021-07-20T00:45:02.000Z
2021-07-20T00:45:02.000Z
import os from dotenv import load_dotenv # Load environmental variables load_dotenv() api_key = os.environ.get("API_KEY")
15.5
35
0.790323
import os from dotenv import load_dotenv # Load environmental variables load_dotenv() api_key = os.environ.get("API_KEY")
0
0
0
ca5faaf822b2e0d12c4c15f7e6e821e93d98f9b7
12,479
py
Python
Pyscripts/ShortPaper/4.PlotFunction/PF04_FRIpredict.py
ArdenB/fireflies
cff2d6292c30fc49f0d1564b135c5c4abd75fdc8
[ "MIT" ]
null
null
null
Pyscripts/ShortPaper/4.PlotFunction/PF04_FRIpredict.py
ArdenB/fireflies
cff2d6292c30fc49f0d1564b135c5c4abd75fdc8
[ "MIT" ]
null
null
null
Pyscripts/ShortPaper/4.PlotFunction/PF04_FRIpredict.py
ArdenB/fireflies
cff2d6292c30fc49f0d1564b135c5c4abd75fdc8
[ "MIT" ]
null
null
null
""" Script goal, Predict future FRI based on current climate """ #============================================================================== __title__ = "FRI Prediction" __author__ = "Arden Burrell" __version__ = "v1.0(27.11.2019)" __email__ = "arden.burrell@gmail.com" #===========================...
34.567867
235
0.613911
""" Script goal, Predict future FRI based on current climate """ #============================================================================== __title__ = "FRI Prediction" __author__ = "Arden Burrell" __version__ = "v1.0(27.11.2019)" __email__ = "arden.burrell@gmail.com" #===========================...
9,809
0
96
d3ee9f9356b31161f861448a85c20e84aed5649c
1,681
py
Python
examples/diffusion/time_advection_diffusion.py
Gkdnz/SfePy
a3a39d4e087705e9e0e8884cbf63513a2ded2108
[ "BSD-3-Clause" ]
null
null
null
examples/diffusion/time_advection_diffusion.py
Gkdnz/SfePy
a3a39d4e087705e9e0e8884cbf63513a2ded2108
[ "BSD-3-Clause" ]
null
null
null
examples/diffusion/time_advection_diffusion.py
Gkdnz/SfePy
a3a39d4e087705e9e0e8884cbf63513a2ded2108
[ "BSD-3-Clause" ]
null
null
null
r""" The transient advection-diffusion equation with a given divergence-free advection velocity. Find :math:`u` such that: .. math:: \int_{\Omega} s \pdiff{u}{t} + \int_{\Omega} s \nabla \cdot \left(\ul{v} u \right) + \int_{\Omega} D \nabla s \cdot \nabla u = 0 \;, \quad \forall s \;. View the re...
20.753086
71
0.501487
r""" The transient advection-diffusion equation with a given divergence-free advection velocity. Find :math:`u` such that: .. math:: \int_{\Omega} s \pdiff{u}{t} + \int_{\Omega} s \nabla \cdot \left(\ul{v} u \right) + \int_{\Omega} D \nabla s \cdot \nabla u = 0 \;, \quad \forall s \;. View the re...
0
0
0
15823c0ba5903b7438dc729199f5b920f1e59f37
17,515
py
Python
outputModel4.py
lpeska/RecSysChallenge2018
0783f1b4ba58b1f2fe85b65267395e16543281c8
[ "Apache-2.0" ]
null
null
null
outputModel4.py
lpeska/RecSysChallenge2018
0783f1b4ba58b1f2fe85b65267395e16543281c8
[ "Apache-2.0" ]
null
null
null
outputModel4.py
lpeska/RecSysChallenge2018
0783f1b4ba58b1f2fe85b65267395e16543281c8
[ "Apache-2.0" ]
null
null
null
""" shows deep stats for the MPD - calculates similarity and multiplies it with the track popularity - if the track was unknown, decrease its similarity weight usage: python deeper_stats.py path-to-mpd-data/ """ #import sys import json import re import collections import os import gzip import p...
36.951477
206
0.641793
""" shows deep stats for the MPD - calculates similarity and multiplies it with the track popularity - if the track was unknown, decrease its similarity weight usage: python deeper_stats.py path-to-mpd-data/ """ #import sys import json import re import collections import os import gzip import p...
15,498
0
161
5e726286e55675f000d6f71caa71094e39fdd5d2
9,496
py
Python
tests/test_params.py
pyadorn/adorn
a34a9a20c1a80c7bdbee0fa641c2bd17e20e60e6
[ "Apache-2.0" ]
3
2021-12-11T03:52:57.000Z
2022-03-22T20:42:56.000Z
tests/test_params.py
pyadorn/adorn
a34a9a20c1a80c7bdbee0fa641c2bd17e20e60e6
[ "Apache-2.0" ]
12
2021-12-31T19:22:09.000Z
2022-03-21T03:49:13.000Z
tests/test_params.py
pyadorn/adorn
a34a9a20c1a80c7bdbee0fa641c2bd17e20e60e6
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Jacob Baumbach # # 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 writin...
28.775758
86
0.553496
# Copyright 2021 Jacob Baumbach # # 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 writin...
5,739
0
549
e4cdd874b0855d578d87dc339527e33b980429ac
371
py
Python
hw05/filefuzzer.py
jake-billings/edu-csci2312
4220a3e2859299b9d2ebfc43f01f69d440198979
[ "MIT" ]
1
2020-12-02T23:18:13.000Z
2020-12-02T23:18:13.000Z
hw05/filefuzzer.py
jake-billings/edu-csci2312
4220a3e2859299b9d2ebfc43f01f69d440198979
[ "MIT" ]
null
null
null
hw05/filefuzzer.py
jake-billings/edu-csci2312
4220a3e2859299b9d2ebfc43f01f69d440198979
[ "MIT" ]
1
2020-11-15T10:51:27.000Z
2020-11-15T10:51:27.000Z
# filefuzzer.py # # python script # # "file fuzzer" # # generates a bunch of random data using os.urandom then writes it to fuzzy.csv # this was used to generate fuzzy.csv # fuzzy.csv is used to test error handling when reading data import os with open('fuzzy.csv', 'wb') as fout: fout.write(os.urandom(1024*50)) # ...
28.538462
89
0.738544
# filefuzzer.py # # python script # # "file fuzzer" # # generates a bunch of random data using os.urandom then writes it to fuzzy.csv # this was used to generate fuzzy.csv # fuzzy.csv is used to test error handling when reading data import os with open('fuzzy.csv', 'wb') as fout: fout.write(os.urandom(1024*50)) # ...
0
0
0
a0f76f57a1a7c6578d56dc151d0b2a25ce558cb2
1,417
py
Python
src/docs/gen.py
DancingQuanta/dylos-calibration
43d067310672a717fc38a69fcc198b274e8a01d9
[ "MIT" ]
null
null
null
src/docs/gen.py
DancingQuanta/dylos-calibration
43d067310672a717fc38a69fcc198b274e8a01d9
[ "MIT" ]
null
null
null
src/docs/gen.py
DancingQuanta/dylos-calibration
43d067310672a717fc38a69fcc198b274e8a01d9
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- import os import argparse import json import jinja2 if __name__ == '__main__': main()
29.520833
86
0.657022
#!/usr/bin/python3 # -*- coding: utf-8 -*- import os import argparse import json import jinja2 def render_template(templateFile, dataFile, outputFile): # Setting up Jinja env = jinja2.Environment( block_start_string = '\BLOCK{', block_end_string = '}', variable_start_string = '\VAR{', ...
1,236
0
46
fe9b91b62e804e69f40d95be11cc459cbddb71ef
1,036
py
Python
tests/plugins/test_gsheet.py
aborruso/frictionless-py
2b27d87ac042119d93320051c5be78d9ebf954b6
[ "MIT" ]
null
null
null
tests/plugins/test_gsheet.py
aborruso/frictionless-py
2b27d87ac042119d93320051c5be78d9ebf954b6
[ "MIT" ]
null
null
null
tests/plugins/test_gsheet.py
aborruso/frictionless-py
2b27d87ac042119d93320051c5be78d9ebf954b6
[ "MIT" ]
null
null
null
import pytest from frictionless import Table, exceptions # Loader @pytest.mark.ci @pytest.mark.ci @pytest.mark.ci
32.375
117
0.69305
import pytest from frictionless import Table, exceptions # Loader @pytest.mark.ci def test_table_gsheet(): source = "https://docs.google.com/spreadsheets/d/1mHIWnDvW9cALRMq9OdNfRwjAthCUFUOACPp0Lkyl7b4/edit?usp=sharing" with Table(source) as table: assert table.header == ["id", "name"] assert...
860
0
66
0412907c43eb0232d0e9ab99e97c3d8bf5f10367
2,709
py
Python
lib/tfflat/logger.py
Ascend-Huawei/PoseFix
9b287934879beadc71daa3a642cbbb4a0feb1db5
[ "Apache-2.0" ]
null
null
null
lib/tfflat/logger.py
Ascend-Huawei/PoseFix
9b287934879beadc71daa3a642cbbb4a0feb1db5
[ "Apache-2.0" ]
null
null
null
lib/tfflat/logger.py
Ascend-Huawei/PoseFix
9b287934879beadc71daa3a642cbbb4a0feb1db5
[ "Apache-2.0" ]
1
2021-08-19T09:51:25.000Z
2021-08-19T09:51:25.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...
33.444444
78
0.663714
# 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...
1,025
-1
184
de681ad28a94811b4a8a2aabf49cc6529b3caaa5
434
py
Python
examples/relay/call-fax-receive.py
ramarketing/signalwire-python
c0663bdd0454faaa39f42af7c936cea1d43e1842
[ "MIT" ]
23
2018-12-19T14:48:18.000Z
2022-01-11T03:58:36.000Z
examples/relay/call-fax-receive.py
ramarketing/signalwire-python
c0663bdd0454faaa39f42af7c936cea1d43e1842
[ "MIT" ]
13
2018-10-17T12:57:54.000Z
2021-09-01T21:46:01.000Z
examples/relay/call-fax-receive.py
ramarketing/signalwire-python
c0663bdd0454faaa39f42af7c936cea1d43e1842
[ "MIT" ]
12
2020-01-21T14:29:43.000Z
2022-01-11T07:48:06.000Z
import logging import os from signalwire.relay.consumer import Consumer r = Receiver() r.run()
22.842105
46
0.670507
import logging import os from signalwire.relay.consumer import Consumer class Receiver(Consumer): def setup(self): self.project = os.getenv('PROJECT', '') self.token = os.getenv('TOKEN', '') self.contexts = ['office', 'home'] async def on_incoming_call(self, call): await call.answer() fax = aw...
262
4
72
48ae91ed24a763379f1ead4b74dffcdc57bb4a12
1,557
py
Python
plugins/multiarch.py
Ferruck/basement
cbd2542abc66ba3df1636fb560681be1ab1623d2
[ "MIT" ]
5
2016-12-05T12:18:52.000Z
2022-03-13T00:08:01.000Z
plugins/multiarch.py
Ferruck/basement
cbd2542abc66ba3df1636fb560681be1ab1623d2
[ "MIT" ]
97
2019-09-03T18:53:45.000Z
2022-03-31T19:42:31.000Z
plugins/multiarch.py
Ferruck/basement
cbd2542abc66ba3df1636fb560681be1ab1623d2
[ "MIT" ]
10
2017-05-07T19:43:34.000Z
2021-09-06T19:51:45.000Z
from bob.errors import ParseError import fnmatch import platform # TODO: support more architectures; support musl/dietlibc # get host architecture # get host autoconf triple # set or replace vendor field in autoconf triplet manifest = { 'apiVersion' : "0.15", 'stringFunctions' : { "gen-autoconf" : ...
28.309091
71
0.622351
from bob.errors import ParseError import fnmatch import platform # TODO: support more architectures; support musl/dietlibc # get host architecture def hostArch(args, **options): m = platform.uname().machine if m == "x86_64": return m elif m == "AMD64": return "x86_64" elif m.startswith...
1,078
0
66
fe20862440f4746864df09f3c56abebdfd9ade5a
11,817
py
Python
networks/HDDRNet_Sx3Ax2.py
monaen/LightFieldReconstruction
5bc51c93d320a1a74e2050257ed16d95cb6edb5e
[ "MIT" ]
67
2019-11-12T09:38:45.000Z
2022-03-23T04:05:18.000Z
networks/HDDRNet_Sx3Ax2.py
monaen/LightFieldReconstruction
5bc51c93d320a1a74e2050257ed16d95cb6edb5e
[ "MIT" ]
6
2020-03-31T12:37:46.000Z
2022-01-28T09:09:14.000Z
networks/HDDRNet_Sx3Ax2.py
monaen/LightFieldReconstruction
5bc51c93d320a1a74e2050257ed16d95cb6edb5e
[ "MIT" ]
14
2019-12-09T16:42:16.000Z
2022-03-29T02:09:31.000Z
from utils.layers import * from utils.convolve4d import * from vgg19.vgg19 import VGG19 from tool.log_config import * class HDDRNet(object): ''' The HDDRNet framework '''
52.754464
110
0.533215
from utils.layers import * from utils.convolve4d import * from vgg19.vgg19 import VGG19 from tool.log_config import * class HDDRNet(object): ''' The HDDRNet framework ''' def __init__(self, inputs, targets, is_training, args, state="TRAIN"): super(HDDRNet, self).__init__() self.chann...
11,523
0
108
64e7e94c97dd6fe47aed97415cb479c976c502ab
4,927
py
Python
wallets/viewsets.py
narnikgamarnikus/wallets
651adf6f422fcd61be0142247404145743a8b51d
[ "MIT" ]
1
2019-06-03T15:26:17.000Z
2019-06-03T15:26:17.000Z
wallets/viewsets.py
narnikgamarnikus/wallets
651adf6f422fcd61be0142247404145743a8b51d
[ "MIT" ]
null
null
null
wallets/viewsets.py
narnikgamarnikus/wallets
651adf6f422fcd61be0142247404145743a8b51d
[ "MIT" ]
1
2021-05-13T01:21:46.000Z
2021-05-13T01:21:46.000Z
from .models import Btc, Ltc, Dash, Doge # Bcy from rest_framework import viewsets from rest_framework import status from rest_framework.response import Response from .serializers import (BtcSerializer, LtcSerializer, DashSerializer, DogeSerializer, WithdrawSerializer) # BcySerializer from...
31.183544
78
0.637102
from .models import Btc, Ltc, Dash, Doge # Bcy from rest_framework import viewsets from rest_framework import status from rest_framework.response import Response from .serializers import (BtcSerializer, LtcSerializer, DashSerializer, DogeSerializer, WithdrawSerializer) # BcySerializer from...
2,574
455
46
860d07cd50283c4ee5ea3d24483d1b15e4c43c18
230
py
Python
django_crud_example/todos/templatetags/string_utils.py
black-redoc/django_crud_example
143ef8edfd5346087d1c577491460507c87e8e22
[ "MIT" ]
null
null
null
django_crud_example/todos/templatetags/string_utils.py
black-redoc/django_crud_example
143ef8edfd5346087d1c577491460507c87e8e22
[ "MIT" ]
null
null
null
django_crud_example/todos/templatetags/string_utils.py
black-redoc/django_crud_example
143ef8edfd5346087d1c577491460507c87e8e22
[ "MIT" ]
null
null
null
from django import template register = template.Library() @register.filter def cut_text(value): """ returns a cut string if its length is greater than 50 chars """ return value if len(value) <= 50 else f"{value[:50]}..."
28.75
71
0.695652
from django import template register = template.Library() @register.filter def cut_text(value): """ returns a cut string if its length is greater than 50 chars """ return value if len(value) <= 50 else f"{value[:50]}..."
0
0
0
19cec6a03d7abd95ab5b39a8ea72ca8b0738efde
1,756
py
Python
aim/cli/remote/commands.py
jamesj-jiao/aim
452380368f76ff441b2ff3a51029f4ad43a9d902
[ "MIT" ]
null
null
null
aim/cli/remote/commands.py
jamesj-jiao/aim
452380368f76ff441b2ff3a51029f4ad43a9d902
[ "MIT" ]
null
null
null
aim/cli/remote/commands.py
jamesj-jiao/aim
452380368f76ff441b2ff3a51029f4ad43a9d902
[ "MIT" ]
null
null
null
import click @click.group() @click.pass_obj @remote_entry_point.command() @click.option('-n', '--name', required=True, type=str) @click.option('-u', '--url', required=True, type=str) @click.pass_obj @remote_entry_point.command() @click.option('-n', '--name', required=True, type=str) @click.pass_obj @remote_entr...
22.512821
80
0.571185
import click @click.group() @click.pass_obj def remote_entry_point(repo): if repo is None: click.echo('Repository does not exist') exit() click.echo(click.style('Repository found at {} '.format(repo), fg='yellow')) @remote_entry_point.command() @click.option('-n', '--name', required=True, t...
1,314
0
88
96e7e410438066575ec0b8d259b2e39824ae6702
1,585
py
Python
tests/argus_test.py
riptano/argus
df1f7e772cdaa78632faff8198a12f8947f1dc6d
[ "Apache-2.0" ]
2
2018-02-05T18:13:32.000Z
2018-04-23T17:08:20.000Z
tests/argus_test.py
riptano/argus
df1f7e772cdaa78632faff8198a12f8947f1dc6d
[ "Apache-2.0" ]
119
2018-02-20T21:15:43.000Z
2019-03-08T20:43:10.000Z
tests/argus_test.py
riptano/argus
df1f7e772cdaa78632faff8198a12f8947f1dc6d
[ "Apache-2.0" ]
6
2018-02-01T23:01:20.000Z
2019-12-26T15:35:32.000Z
# Copyright 2018 DataStax, 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 agreed to in writin...
30.480769
74
0.704732
# Copyright 2018 DataStax, 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 agreed to in writin...
457
385
23
54e303d6ead63b0c056de91b3eaf8e7bf1f18436
581
py
Python
Class_10/exercise4.py
travism16/Python-Course
d8c522fc31c7830c3ceabf7a35022a9e33e1d706
[ "Apache-2.0" ]
null
null
null
Class_10/exercise4.py
travism16/Python-Course
d8c522fc31c7830c3ceabf7a35022a9e33e1d706
[ "Apache-2.0" ]
null
null
null
Class_10/exercise4.py
travism16/Python-Course
d8c522fc31c7830c3ceabf7a35022a9e33e1d706
[ "Apache-2.0" ]
null
null
null
from my_functions import ssh_command2 from my_devices import devices_list from concurrent.futures import ProcessPoolExecutor, as_completed from datetime import datetime start_time = datetime.now() max_procs = 5 pool = ProcessPoolExecutor(max_procs) future_list = [] for device in devices_list: future = pool.submi...
23.24
64
0.755594
from my_functions import ssh_command2 from my_devices import devices_list from concurrent.futures import ProcessPoolExecutor, as_completed from datetime import datetime start_time = datetime.now() max_procs = 5 pool = ProcessPoolExecutor(max_procs) future_list = [] for device in devices_list: future = pool.submi...
0
0
0
75284442863182f2e67bf30020f2f36a68b83ddd
13,507
py
Python
baselines/bigcn/model/Twitter/BiGCN_Twitter-ORG.py
JihoChoi/dynamic-gcn-deprecated-TBU
ff315206811b757f2f61f0776917e6a7d43c9379
[ "MIT" ]
1
2022-02-24T09:17:31.000Z
2022-02-24T09:17:31.000Z
baselines/bigcn/model/Twitter/BiGCN_Twitter-ORG.py
JihoChoi/dynamic-gcn-deprecated-TBU
ff315206811b757f2f61f0776917e6a7d43c9379
[ "MIT" ]
null
null
null
baselines/bigcn/model/Twitter/BiGCN_Twitter-ORG.py
JihoChoi/dynamic-gcn-deprecated-TBU
ff315206811b757f2f61f0776917e6a7d43c9379
[ "MIT" ]
null
null
null
import sys,os import random sys.path.append(os.getcwd()) from Process.process import * import torch as th from torch_scatter import scatter_mean import torch.nn.functional as F import numpy as np from tools.earlystopping import EarlyStopping from torch_geometric.data import DataLoader from tqdm import tqdm from Process...
42.209375
223
0.637077
import sys,os import random sys.path.append(os.getcwd()) from Process.process import * import torch as th from torch_scatter import scatter_mean import torch.nn.functional as F import numpy as np from tools.earlystopping import EarlyStopping from torch_geometric.data import DataLoader from tqdm import tqdm from Process...
9,488
23
343
8bf44c87cf42475300207d01f401d10e9f9cce97
1,340
py
Python
hypertrophy_classifier.py
dozsam13/LHYP
af7115c115fdff51399b83cd1a515bf2c6f7879d
[ "MIT" ]
null
null
null
hypertrophy_classifier.py
dozsam13/LHYP
af7115c115fdff51399b83cd1a515bf2c6f7879d
[ "MIT" ]
null
null
null
hypertrophy_classifier.py
dozsam13/LHYP
af7115c115fdff51399b83cd1a515bf2c6f7879d
[ "MIT" ]
null
null
null
import torch.nn as nn import torch
49.62963
146
0.597761
import torch.nn as nn import torch class HypertrophyClassifier(nn.Module): def __init__(self): super(HypertrophyClassifier, self).__init__() self.conv = nn.Conv2d(in_channels=3, out_channels=9, kernel_size=(3,3), stride=1) # (c=3, (224,224)) => (c=9, (222, 222)) self.conv2 = nn.Conv2d(...
1,212
18
76
2bbf31c5c71a06fd3158f6385d92a50a5a48afab
6,284
py
Python
get_paper.py
IndexFziQ/nn4nlp-concepts
78302c49879ab2c5026437b8406acd102ac09922
[ "BSD-3-Clause" ]
null
null
null
get_paper.py
IndexFziQ/nn4nlp-concepts
78302c49879ab2c5026437b8406acd102ac09922
[ "BSD-3-Clause" ]
null
null
null
get_paper.py
IndexFziQ/nn4nlp-concepts
78302c49879ab2c5026437b8406acd102ac09922
[ "BSD-3-Clause" ]
null
null
null
import argparse import random import itertools import os import sys import rule_classifier as paper_classifier import urllib.request import bs4 as bs import time def label_paper(paper_id = None, paper_meta = None, cased_regexes = None, feature = None): """Label one paper :param paper_id: The paper ID :param ...
39.772152
120
0.628899
import argparse import random import itertools import os import sys import rule_classifier as paper_classifier import urllib.request import bs4 as bs import time def label_paper(paper_id = None, paper_meta = None, cased_regexes = None, feature = None): """Label one paper :param paper_id: The paper ID :param ...
0
0
0
1a93193c3556b37f3008c3e0b176715b7d76eece
2,972
py
Python
etl/parsers/etw/Microsoft_Windows_Store.py
IMULMUL/etl-parser
76b7c046866ce0469cd129ee3f7bb3799b34e271
[ "Apache-2.0" ]
104
2020-03-04T14:31:31.000Z
2022-03-28T02:59:36.000Z
etl/parsers/etw/Microsoft_Windows_Store.py
IMULMUL/etl-parser
76b7c046866ce0469cd129ee3f7bb3799b34e271
[ "Apache-2.0" ]
7
2020-04-20T09:18:39.000Z
2022-03-19T17:06:19.000Z
etl/parsers/etw/Microsoft_Windows_Store.py
IMULMUL/etl-parser
76b7c046866ce0469cd129ee3f7bb3799b34e271
[ "Apache-2.0" ]
16
2020-03-05T18:55:59.000Z
2022-03-01T10:19:28.000Z
# -*- coding: utf-8 -*- """ Microsoft-Windows-Store GUID : 9c2a37f3-e5fd-5cae-bcd1-43dafeee1ff0 """ from construct import Int8sl, Int8ul, Int16ul, Int16sl, Int32sl, Int32ul, Int64sl, Int64ul, Bytes, Double, Float32l, Struct from etl.utils import WString, CString, SystemTime, Guid from etl.dtyp import Sid from etl.parse...
29.137255
123
0.662853
# -*- coding: utf-8 -*- """ Microsoft-Windows-Store GUID : 9c2a37f3-e5fd-5cae-bcd1-43dafeee1ff0 """ from construct import Int8sl, Int8ul, Int16ul, Int16sl, Int32sl, Int32ul, Int64sl, Int64ul, Bytes, Double, Float32l, Struct from etl.utils import WString, CString, SystemTime, Guid from etl.dtyp import Sid from etl.parse...
0
1,623
198
007f12560628e0c366654044669fea6a370b638d
2,289
py
Python
nxstart/cli.py
roedesh/nxstart
ad1470aeae865270267322e265669f38945e268a
[ "MIT" ]
40
2018-06-19T02:28:00.000Z
2021-11-14T20:00:34.000Z
nxstart/cli.py
roedesh/nxstart
ad1470aeae865270267322e265669f38945e268a
[ "MIT" ]
2
2018-06-19T09:49:36.000Z
2018-12-02T13:14:26.000Z
nxstart/cli.py
roedesh/nxstart
ad1470aeae865270267322e265669f38945e268a
[ "MIT" ]
4
2018-06-19T09:19:29.000Z
2020-03-31T14:35:12.000Z
# -*- coding: utf-8 -*- """Defines the app context and commands.""" import os import click from nxstart import app from nxstart.utils.strings import TITLE_TEXT, VERSION_STRING from nxstart.version import __version__ as version class Context(object): """ Context to be passed to the sub-commands. """ ...
23.121212
81
0.660987
# -*- coding: utf-8 -*- """Defines the app context and commands.""" import os import click from nxstart import app from nxstart.utils.strings import TITLE_TEXT, VERSION_STRING from nxstart.version import __version__ as version class Context(object): """ Context to be passed to the sub-commands. """ ...
370
0
49
4ddb3c4973b5aa3219dd362c09394279d92bf458
4,272
py
Python
bob/devtools/scripts/settings.py
bioidiap/bob.devtools
98ec996056a1e11d6d9c91b619441610fbf60bbe
[ "BSD-3-Clause" ]
null
null
null
bob/devtools/scripts/settings.py
bioidiap/bob.devtools
98ec996056a1e11d6d9c91b619441610fbf60bbe
[ "BSD-3-Clause" ]
null
null
null
bob/devtools/scripts/settings.py
bioidiap/bob.devtools
98ec996056a1e11d6d9c91b619441610fbf60bbe
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import os import click from ..log import echo_info, echo_normal, get_logger, verbosity_option from ..release import get_gitlab_instance from . import bdt from .runners import ( _get_project, _get_projects_from_file, _get_projects_from_group, ) logger = get_logger(__name__) def _...
27.384615
85
0.561096
#!/usr/bin/env python import os import click from ..log import echo_info, echo_normal, get_logger, verbosity_option from ..release import get_gitlab_instance from . import bdt from .runners import ( _get_project, _get_projects_from_file, _get_projects_from_group, ) logger = get_logger(__name__) def _...
0
0
0
a17428856529f53921875b7fda2fe54ccd69c151
145
py
Python
api/authentication/models.py
HARSHIT-GUPTA-coder/OCDE
d1b4cc6ed0dde78149725be8e2809218f9c53bc5
[ "MIT" ]
null
null
null
api/authentication/models.py
HARSHIT-GUPTA-coder/OCDE
d1b4cc6ed0dde78149725be8e2809218f9c53bc5
[ "MIT" ]
null
null
null
api/authentication/models.py
HARSHIT-GUPTA-coder/OCDE
d1b4cc6ed0dde78149725be8e2809218f9c53bc5
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import User from django.contrib.auth import authenticate # Create your models here.
29
44
0.827586
from django.db import models from django.contrib.auth.models import User from django.contrib.auth import authenticate # Create your models here.
0
0
0
1caa568abfafc7d805321c745a5b11f5c5c938da
11,694
py
Python
pose/CPM/genProto_cpm.py
Heliot7/viewpoint_cnn_syn
65dfe8858d2be4a93a6e7a86e191e3ff27c1154d
[ "BSD-3-Clause" ]
1
2019-12-17T11:25:00.000Z
2019-12-17T11:25:00.000Z
pose/CPM/genProto_cpm.py
Heliot7/viewpoint_cnn_syn
65dfe8858d2be4a93a6e7a86e191e3ff27c1154d
[ "BSD-3-Clause" ]
1
2019-07-12T18:25:55.000Z
2019-07-12T18:25:55.000Z
pose/CPM/genProto_cpm.py
Heliot7/viewpoint-cnn-syn
65dfe8858d2be4a93a6e7a86e191e3ff27c1154d
[ "BSD-3-Clause" ]
null
null
null
import sys import os import math import argparse import json import caffe from caffe import layers as L # pseudo module using __getattr__ magic to generate protobuf messages from caffe import params as P # pseudo module using __getattr__ magic to generate protobuf messages if __name__ == "__main__": # sys.ar...
48.322314
153
0.577818
import sys import os import math import argparse import json import caffe from caffe import layers as L # pseudo module using __getattr__ magic to generate protobuf messages from caffe import params as P # pseudo module using __getattr__ magic to generate protobuf messages def setLayers(data_source, data_test, batch...
7,980
0
69
234f1b43f502624506c4a0dde5114912d5eb7f63
3,921
py
Python
tests/tests/test_scripts_functions.py
saanpritom/django_event_logger
fa23a0c0ebb530fe25148cd1870af400f678a478
[ "MIT" ]
3
2020-08-17T05:02:11.000Z
2020-11-20T14:34:43.000Z
tests/tests/test_scripts_functions.py
saanpritom/django_user_interaction_log
fa23a0c0ebb530fe25148cd1870af400f678a478
[ "MIT" ]
1
2020-08-09T07:19:57.000Z
2020-08-09T07:19:57.000Z
tests/tests/test_scripts_functions.py
saanpritom/django_event_logger
fa23a0c0ebb530fe25148cd1870af400f678a478
[ "MIT" ]
null
null
null
from django.test import TestCase from django.http import HttpRequest from django.core.exceptions import ValidationError from django.contrib.auth import get_user_model from django.contrib.auth.models import AnonymousUser from rest_framework.request import Request from django_user_interaction_log.scripts import (check_if...
62.238095
178
0.7595
from django.test import TestCase from django.http import HttpRequest from django.core.exceptions import ValidationError from django.contrib.auth import get_user_model from django.contrib.auth.models import AnonymousUser from rest_framework.request import Request from django_user_interaction_log.scripts import (check_if...
3,268
0
135
c5018596086da4e6516c5acc85783ba73ee9e206
463
py
Python
tests/test_benchmarks/test_cadena2017.py
serre-lab/brain-score
dad1c2ce6f969d9e0d89f610e7c84b05b7c143c9
[ "MIT" ]
52
2019-12-13T06:43:44.000Z
2022-02-21T07:47:39.000Z
tests/test_benchmarks/test_cadena2017.py
serre-lab/brain-score
dad1c2ce6f969d9e0d89f610e7c84b05b7c143c9
[ "MIT" ]
104
2019-12-06T18:08:54.000Z
2022-03-31T23:57:51.000Z
tests/test_benchmarks/test_cadena2017.py
serre-lab/brain-score
dad1c2ce6f969d9e0d89f610e7c84b05b7c143c9
[ "MIT" ]
32
2019-12-05T14:31:14.000Z
2022-03-10T02:04:45.000Z
import pytest from brainscore.benchmarks.cadena2017 import AssemblyLoader from . import check_standard_format @pytest.mark.private_access
28.9375
79
0.712743
import pytest from brainscore.benchmarks.cadena2017 import AssemblyLoader from . import check_standard_format @pytest.mark.private_access class TestAssembly: def test(self): loader = AssemblyLoader() assembly = loader() check_standard_format(assembly) assert assembly.attrs['stimul...
276
-2
48
9b6b5e45e68696d15b016062adb20735ee5766af
612
py
Python
setup.py
crowsonkb/randomness
b2a865b4b0b30a3d08b3faee83d38bc3c83c1de6
[ "MIT" ]
1
2018-06-04T11:52:07.000Z
2018-06-04T11:52:07.000Z
setup.py
crowsonkb/randomness
b2a865b4b0b30a3d08b3faee83d38bc3c83c1de6
[ "MIT" ]
null
null
null
setup.py
crowsonkb/randomness
b2a865b4b0b30a3d08b3faee83d38bc3c83c1de6
[ "MIT" ]
null
null
null
from pathlib import Path from setuptools import setup BASEDIR = Path(__file__).resolve().parent setup(name='randomness', version='0.1', description='Generates random secrets (passwords, etc).', long_description=((BASEDIR / 'README.rst').read_text()), url='https://github.com/crowsonkb/random...
26.608696
71
0.661765
from pathlib import Path from setuptools import setup BASEDIR = Path(__file__).resolve().parent setup(name='randomness', version='0.1', description='Generates random secrets (passwords, etc).', long_description=((BASEDIR / 'README.rst').read_text()), url='https://github.com/crowsonkb/random...
0
0
0
fb00d189ae9e945205311d20b83bd951db8679f9
9,333
py
Python
reskin_sensor/sensor_proc.py
thomasweng15/reskin_sensor
3c7d0df02517176a636ce276340aef389ec804e3
[ "MIT" ]
null
null
null
reskin_sensor/sensor_proc.py
thomasweng15/reskin_sensor
3c7d0df02517176a636ce276340aef389ec804e3
[ "MIT" ]
null
null
null
reskin_sensor/sensor_proc.py
thomasweng15/reskin_sensor
3c7d0df02517176a636ce276340aef389ec804e3
[ "MIT" ]
null
null
null
import atexit import sys import ctypes as ct from multiprocessing import Process, Event, Pipe, Value, Array import serial from .sensor import ReSkinBase, ReSkinSettings, ReSkinData class ReSkinProcess(Process): """ ReSkin Sensor process. Keeps datastream running in the background. Attr...
34.186813
135
0.56177
import atexit import sys import ctypes as ct from multiprocessing import Process, Event, Pipe, Value, Array import serial from .sensor import ReSkinBase, ReSkinSettings, ReSkinData class ReSkinProcess(Process): """ ReSkin Sensor process. Keeps datastream running in the background. Attr...
276
0
53
02c109fd016dd7ca9d1dd238ed93ca3be1aa196c
8,037
py
Python
pyteal/ast/scratch.py
CiottiGiorgio/pyteal
9646a1aa479786c1e80d6a3821d5db1e6c4a16e2
[ "MIT" ]
null
null
null
pyteal/ast/scratch.py
CiottiGiorgio/pyteal
9646a1aa479786c1e80d6a3821d5db1e6c4a16e2
[ "MIT" ]
1
2022-03-04T14:57:57.000Z
2022-03-04T14:57:57.000Z
pyteal/ast/scratch.py
CiottiGiorgio/pyteal
9646a1aa479786c1e80d6a3821d5db1e6c4a16e2
[ "MIT" ]
null
null
null
from typing import cast, TYPE_CHECKING, Optional from pyteal.types import TealType, require_type from pyteal.config import NUM_SLOTS from pyteal.errors import TealInputError, TealInternalError from pyteal.ast.expr import Expr if TYPE_CHECKING: from pyteal.compiler import CompileOptions class ScratchSlot: ""...
30.675573
98
0.606818
from typing import cast, TYPE_CHECKING, Optional from pyteal.types import TealType, require_type from pyteal.config import NUM_SLOTS from pyteal.errors import TealInputError, TealInternalError from pyteal.ast.expr import Expr if TYPE_CHECKING: from pyteal.compiler import CompileOptions class ScratchSlot: ""...
1,914
4
562
469902f18fc3b279ce0c5f708a7f28d10465ea7e
910
py
Python
exam/authapp/admin.py
malfin/exam_project
8b707ff6cbd09b096273a97165adc15c28f838e0
[ "Apache-2.0" ]
null
null
null
exam/authapp/admin.py
malfin/exam_project
8b707ff6cbd09b096273a97165adc15c28f838e0
[ "Apache-2.0" ]
null
null
null
exam/authapp/admin.py
malfin/exam_project
8b707ff6cbd09b096273a97165adc15c28f838e0
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin from django.contrib.auth.admin import UserAdmin from authapp.models import KpkUser admin.site.register(KpkUser, KpkAdmin)
30.333333
94
0.57033
from django.contrib import admin from django.contrib.auth.admin import UserAdmin from authapp.models import KpkUser class KpkAdmin(UserAdmin): fieldsets = ( (None, {'fields': ('login', 'password')}), ('Personal info', {'fields': ('name', 'surname', 'email')}), ('Permissions', { ...
0
728
23
a5a627d360f41375b74436f355ffdf26d790de9a
258
py
Python
DDBMS/server_sql.py
s10singh97/DBMS_Lab
7520b05fe3bd731e72c135aa761b4331c9bff470
[ "Apache-2.0" ]
1
2018-12-09T06:55:26.000Z
2018-12-09T06:55:26.000Z
DDBMS/server_sql.py
s10singh97/DBMS_Lab
7520b05fe3bd731e72c135aa761b4331c9bff470
[ "Apache-2.0" ]
null
null
null
DDBMS/server_sql.py
s10singh97/DBMS_Lab
7520b05fe3bd731e72c135aa761b4331c9bff470
[ "Apache-2.0" ]
1
2018-10-30T10:22:40.000Z
2018-10-30T10:22:40.000Z
import pymysql as py conn = py.Connect("172.21.4.120","ash","password","test") if conn: print("Successfully Connected") cursor = conn.cursor() rows = cursor.execute("SHOW TABLES") data = cursor.fetchall() for row in data: print(row[0]) conn.close()
21.5
57
0.686047
import pymysql as py conn = py.Connect("172.21.4.120","ash","password","test") if conn: print("Successfully Connected") cursor = conn.cursor() rows = cursor.execute("SHOW TABLES") data = cursor.fetchall() for row in data: print(row[0]) conn.close()
0
0
0
968f51333b4818e46eb811d0b69b2e4eb2b69e49
2,149
py
Python
src/cgd/model.py
Donghwa-KIM/detectron2
7374e2a7b61e9c1346e25bab6845a2987046bb0a
[ "Apache-2.0" ]
6
2020-11-09T14:35:45.000Z
2022-03-07T06:55:10.000Z
src/cgd/model.py
Donghwa-KIM/detectron2
7374e2a7b61e9c1346e25bab6845a2987046bb0a
[ "Apache-2.0" ]
null
null
null
src/cgd/model.py
Donghwa-KIM/detectron2
7374e2a7b61e9c1346e25bab6845a2987046bb0a
[ "Apache-2.0" ]
2
2020-11-25T05:26:53.000Z
2022-02-24T04:01:51.000Z
from torch import nn from torch.nn import functional as F import torch
34.111111
132
0.592369
from torch import nn from torch.nn import functional as F import torch class GeM(nn.Module): def __init__(self, p=3, eps=1e-6): super(GeM, self).__init__() self.p = p self.eps = eps def forward(self, x): return torch.flatten(self.gem(x, p=self.p, eps=self.eps), start_dim=1) ...
924
893
253
b237e92376709b47210c8591e4d4f5d94ea758d6
13,123
py
Python
env.py
zchenry/bnn-analysis
4454943967435fc80cfdc60d8e00282abb8ee201
[ "MIT" ]
null
null
null
env.py
zchenry/bnn-analysis
4454943967435fc80cfdc60d8e00282abb8ee201
[ "MIT" ]
null
null
null
env.py
zchenry/bnn-analysis
4454943967435fc80cfdc60d8e00282abb8ee201
[ "MIT" ]
null
null
null
""" This module defines the Env class that describes a data setup for experiments and runs the sampling. """ import logging from time import perf_counter as pc from datetime import datetime import numpy as np import tensorflow as tf from sklearn.model_selection import KFold import evaluation.metrics as metrics import u...
40.131498
127
0.599101
""" This module defines the Env class that describes a data setup for experiments and runs the sampling. """ import logging from time import perf_counter as pc from datetime import datetime import numpy as np import tensorflow as tf from sklearn.model_selection import KFold import evaluation.metrics as metrics import u...
724
0
54
8e8abc7d61240f63cf57b4708544c8df44cd9917
1,345
py
Python
base/base_model.py
SIAAAAAA/C3-SemiSeg
b2e2489b828661660d9842785e831293bab5cd47
[ "MIT" ]
5
2021-11-12T11:21:23.000Z
2022-03-08T01:58:12.000Z
base/base_model.py
SIAAAAAA/C3-SemiSeg
b2e2489b828661660d9842785e831293bab5cd47
[ "MIT" ]
1
2022-03-12T08:06:56.000Z
2022-03-12T08:06:56.000Z
base/base_model.py
SIAAAAAA/C3-SemiSeg
b2e2489b828661660d9842785e831293bab5cd47
[ "MIT" ]
null
null
null
import logging import numpy as np import torch import torch.nn as nn
36.351351
114
0.651301
import logging import numpy as np import torch import torch.nn as nn class BaseModel(nn.Module): def __init__(self): super(BaseModel, self).__init__() self.logger = logging.getLogger(self.__class__.__name__) self.model_names = [] def forward(self): raise NotImplementedError ...
1,112
6
157
a396fb32d5cdb83d8bdb48551d55ac290cd00b2b
396
py
Python
config.py
Sagi10/Project-Bigdata
7179b83a714b736e6467b16787dfb554cd2c5fa0
[ "MIT", "Unlicense" ]
null
null
null
config.py
Sagi10/Project-Bigdata
7179b83a714b736e6467b16787dfb554cd2c5fa0
[ "MIT", "Unlicense" ]
null
null
null
config.py
Sagi10/Project-Bigdata
7179b83a714b736e6467b16787dfb554cd2c5fa0
[ "MIT", "Unlicense" ]
null
null
null
import os # Database connection setup
24.75
105
0.659091
import os # Database connection setup class Config(object): SERVER = '' DATABASE = '' DRIVER = '' USERNAME = '' PASSWORD = '' SQLALCHEMY_DATABASE_URI = f'mssql+pyodbc://{USERNAME}:{PASSWORD}@{SERVER}/{DATABASE}?driver={DRIVER}' SQLALCHEMY_TRACK_MODIFICATIONS = False DEBUG = True S...
0
334
22
0a8fe8669322d6799f33b501b7f2a99ee24298fa
8,722
py
Python
src/util/wallet_tools.py
fakecoinbase/Chia-Networkslashchia-blockchain
84e6a4da18fb0a790a870cbd516f13c9bc7f0716
[ "Apache-2.0" ]
1
2021-04-12T09:10:51.000Z
2021-04-12T09:10:51.000Z
src/util/wallet_tools.py
mariano54/chia-blockchain
c6241d2fa6fe415876d3b40376fb882276611fa7
[ "Apache-2.0" ]
1
2022-03-25T19:10:51.000Z
2022-03-25T19:10:51.000Z
src/util/wallet_tools.py
fakecoinbase/Chia-Networkslashchia-blockchain
84e6a4da18fb0a790a870cbd516f13c9bc7f0716
[ "Apache-2.0" ]
null
null
null
from typing import List, Optional, Dict, Tuple from secrets import token_bytes from blspy import PrivateKey, AugSchemeMPL from src.types.condition_var_pair import ConditionVarPair from src.types.condition_opcodes import ConditionOpcode from src.types.program import Program from src.types.coin import Coin from src.typ...
37.921739
88
0.637812
from typing import List, Optional, Dict, Tuple from secrets import token_bytes from blspy import PrivateKey, AugSchemeMPL from src.types.condition_var_pair import ConditionVarPair from src.types.condition_opcodes import ConditionOpcode from src.types.program import Program from src.types.coin import Coin from src.typ...
7,072
457
23