hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
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
972
max_issues_repo_name
stringlengths
6
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
972
max_forks_repo_name
stringlengths
6
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
618222a7642af96307f292c4da87843c4e91e65f
1,347
py
Python
tests/evaluation/test_evaluator.py
wararaki/irspack
650cc012924d46b3ecb87f1a6f806aee735a9559
[ "MIT" ]
null
null
null
tests/evaluation/test_evaluator.py
wararaki/irspack
650cc012924d46b3ecb87f1a6f806aee735a9559
[ "MIT" ]
null
null
null
tests/evaluation/test_evaluator.py
wararaki/irspack
650cc012924d46b3ecb87f1a6f806aee735a9559
[ "MIT" ]
null
null
null
import scipy.sparse as sps import numpy as np from sklearn.metrics import average_precision_score, ndcg_score from irspack.evaluator import Evaluator, EvaluatorCore from irspack.recommenders.base import BaseRecommender from collections import defaultdict import pytest class MockRecommender(BaseRecommender): def _...
33.675
88
0.683742
467e2d54ea66e9b37e0972c1311462841c854158
1,093
py
Python
nipype/interfaces/camino/tests/test_auto_DTIFit.py
dPys/nipype
75030b29297808e7c9a9e91b411b685154dff60b
[ "Apache-2.0" ]
1
2019-03-25T14:11:18.000Z
2019-03-25T14:11:18.000Z
nipype/interfaces/camino/tests/test_auto_DTIFit.py
dPys/nipype
75030b29297808e7c9a9e91b411b685154dff60b
[ "Apache-2.0" ]
1
2017-01-05T01:24:33.000Z
2017-01-05T01:24:33.000Z
nipype/interfaces/camino/tests/test_auto_DTIFit.py
wtriplett/nipype
388f140fceaf55438a987e9cdfa2a8e995428afd
[ "Apache-2.0" ]
1
2020-12-16T16:36:48.000Z
2020-12-16T16:36:48.000Z
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT from ..dti import DTIFit def test_DTIFit_inputs(): input_map = dict( args=dict(argstr="%s",), bgmask=dict(argstr="-bgmask %s", extensions=None,), environ=dict(nohash=True, usedefault=True,), in_file=dict(argstr="%s", extensions=...
37.689655
84
0.654163
37473ffb8c4de3f13eaeb24913745e1ddc495038
5,493
py
Python
predictions/model_prediction_scene.py
prise-3d/LSTM-noise-detection
a468e6a142a2baa64bbbaba8469cb452c2f18fe3
[ "MIT" ]
2
2021-03-15T12:24:28.000Z
2022-03-01T20:48:19.000Z
predictions/model_prediction_scene.py
prise-3d/LSTM-noise-detection
a468e6a142a2baa64bbbaba8469cb452c2f18fe3
[ "MIT" ]
null
null
null
predictions/model_prediction_scene.py
prise-3d/LSTM-noise-detection
a468e6a142a2baa64bbbaba8469cb452c2f18fe3
[ "MIT" ]
null
null
null
# main imports import numpy as np import pandas as pd import sys, os, argparse # image processing from PIL import Image from ipfml import utils from ipfml.processing import transform, segmentation import matplotlib.pyplot as plt # model imports import joblib from keras.models import load_model # modules and config ...
33.090361
150
0.608411
cec3755c2e13a67318a685941c53d48b84ea802b
9,332
py
Python
src/Evaluation.py
lbcb-sci/GNNs-Hamiltonian-cycles
5eb546ab6141f5e0769a5d15da1e483af9a57c05
[ "MIT" ]
null
null
null
src/Evaluation.py
lbcb-sci/GNNs-Hamiltonian-cycles
5eb546ab6141f5e0769a5d15da1e483af9a57c05
[ "MIT" ]
null
null
null
src/Evaluation.py
lbcb-sci/GNNs-Hamiltonian-cycles
5eb546ab6141f5e0769a5d15da1e483af9a57c05
[ "MIT" ]
null
null
null
import itertools import matplotlib.pyplot as plt import torch import torch.utils.data import torch_geometric as torch_g import torch_scatter from src.DatasetBuilder import ErdosRenyiInMemoryDataset class EvaluationScores: class ACCURACY_SCORE_TAGS: perc_hamilton_found = "perc_hamilton_found" per...
48.103093
140
0.606515
47605d4e0dbd02e30d263645162f73ae68f5de56
447
py
Python
tensorflow/net.py
Deliangus/3D-R2N2
f80e83482999d1ea5510db3243c7d7a3a94697e5
[ "MIT" ]
null
null
null
tensorflow/net.py
Deliangus/3D-R2N2
f80e83482999d1ea5510db3243c7d7a3a94697e5
[ "MIT" ]
null
null
null
tensorflow/net.py
Deliangus/3D-R2N2
f80e83482999d1ea5510db3243c7d7a3a94697e5
[ "MIT" ]
null
null
null
#import pickle #import numpy #import os #from PIL import Image import tensorflow as tf #def convnet(x_t, activation, kernel_initializer): def convnet(x_t): n_convfilter = [96, 128, 256, 256, 256, 256] n_fc_filters = [1024] n_deconvfilter = [128, 128, 128, 64, 32, 2] conv_1a = tf.layers.conv2d(x_t, n...
26.294118
64
0.682327
055df787da2e2b58a9c2f34739e57b6fc932879b
144
py
Python
train/cluster/simple/models/clustering/v0/setup.py
sammysiegel/SubtLeNet
94d1507a8a7c60548b59400109b6c4086ad83141
[ "MIT" ]
null
null
null
train/cluster/simple/models/clustering/v0/setup.py
sammysiegel/SubtLeNet
94d1507a8a7c60548b59400109b6c4086ad83141
[ "MIT" ]
null
null
null
train/cluster/simple/models/clustering/v0/setup.py
sammysiegel/SubtLeNet
94d1507a8a7c60548b59400109b6c4086ad83141
[ "MIT" ]
2
2019-07-08T20:18:22.000Z
2020-06-01T20:04:08.000Z
# auto-generated. do not edit! from subtlenet import config from subtlenet.generators import toy as generator gen = generator.RadialClustering
24
49
0.819444
83961f6c58209cda8cad237daa6d64ae087a5166
2,162
py
Python
cpx/spinner-example-bugfix-testing.py
dglaude/circuitpython-examples
7ab5b4212be4a7e1baea0e0783c365dd9c35ac4f
[ "MIT" ]
8
2019-02-21T02:55:57.000Z
2022-03-27T00:19:26.000Z
cpx/spinner-example-bugfix-testing.py
dglaude/circuitpython-examples
7ab5b4212be4a7e1baea0e0783c365dd9c35ac4f
[ "MIT" ]
null
null
null
cpx/spinner-example-bugfix-testing.py
dglaude/circuitpython-examples
7ab5b4212be4a7e1baea0e0783c365dd9c35ac4f
[ "MIT" ]
1
2020-09-30T20:03:40.000Z
2020-09-30T20:03:40.000Z
### For https://github.com/adafruit/Adafruit_CircuitPython_LIS3DH/issues/46 ### bugs noted in: ### https://github.com/adafruit/Adafruit_CircuitPython_LIS3DH/blob/3.0.0/examples/spinner.py ### https://github.com/adafruit/Adafruit_CircuitPython_LIS3DH/blob/3.0.0/examples/spinner_advanced.py import unittest from unittest...
31.794118
101
0.647086
c273dcb380c8658731c0be7caa998aca2fcb8565
1,784
py
Python
ajax_views/templatetags/ajax_views.py
dldevinc/ajax_views
10d45ea347d598c0f2cbcd697bc98bf05a9f0b07
[ "BSD-3-Clause" ]
4
2020-02-03T19:46:07.000Z
2021-02-15T14:50:11.000Z
ajax_views/templatetags/ajax_views.py
dldevinc/ajax_views
10d45ea347d598c0f2cbcd697bc98bf05a9f0b07
[ "BSD-3-Clause" ]
null
null
null
ajax_views/templatetags/ajax_views.py
dldevinc/ajax_views
10d45ea347d598c0f2cbcd697bc98bf05a9f0b07
[ "BSD-3-Clause" ]
1
2020-09-02T15:36:50.000Z
2020-09-02T15:36:50.000Z
import json from typing import Any, Dict from django.template import Library from django.utils.safestring import mark_safe from ..logging import logger from ..registry import registry try: from django.urls import reverse except ImportError: from django.core.urlresolvers import reverse try: import jinja2...
24.438356
64
0.654148
31a14e93f7072dec4ec1d5e86671355d08c11f86
286
py
Python
model/decode_heads/__init__.py
UESTC-Liuxin/CVMI_Sementic_Segmentation
dc5bf6e940cf6961ef65abb6e7ec372f29d55249
[ "Apache-2.0" ]
null
null
null
model/decode_heads/__init__.py
UESTC-Liuxin/CVMI_Sementic_Segmentation
dc5bf6e940cf6961ef65abb6e7ec372f29d55249
[ "Apache-2.0" ]
null
null
null
model/decode_heads/__init__.py
UESTC-Liuxin/CVMI_Sementic_Segmentation
dc5bf6e940cf6961ef65abb6e7ec372f29d55249
[ "Apache-2.0" ]
null
null
null
''' Author: Liu Xin Date: 2021-11-17 16:02:38 LastEditors: Liu Xin LastEditTime: 2021-11-30 15:19:23 Description: file content FilePath: /CVMI_Sementic_Segmentation/model/decode_heads/__init__.py ''' from .unet import Unet from .deeplab import DeepLabHead from .encnet import EncNet
19.066667
68
0.783217
2d45e5f431d598f4969ee7702209c66928289069
7,070
py
Python
gufe/smallmoleculecomponent.py
OpenFreeEnergy/gufe
3ee39f695e70c17cf1205597379f4be0481ca781
[ "MIT" ]
6
2022-03-25T09:52:10.000Z
2022-03-29T19:24:47.000Z
gufe/smallmoleculecomponent.py
OpenFreeEnergy/gufe
3ee39f695e70c17cf1205597379f4be0481ca781
[ "MIT" ]
12
2022-03-25T19:57:53.000Z
2022-03-31T20:12:50.000Z
gufe/smallmoleculecomponent.py
OpenFreeEnergy/gufe
3ee39f695e70c17cf1205597379f4be0481ca781
[ "MIT" ]
null
null
null
# This code is part of OpenFE and is licensed under the MIT license. # For details, see https://github.com/OpenFreeEnergy/gufe import logging # openff complains about oechem being missing, shhh logger = logging.getLogger('openff.toolkit') logger.setLevel(logging.ERROR) from openff.toolkit.topology import Molecule as OF...
32.431193
79
0.640453
23ec48ee221f35f83fa4532b750dfa580cf5f80e
133,887
py
Python
include/scons/src/engine/SCons/Node/FSTests.py
SWEN-712/screen-reader-brandonp728
e30c25ad2d10ce632fac0548696a61a872328f59
[ "bzip2-1.0.6" ]
null
null
null
include/scons/src/engine/SCons/Node/FSTests.py
SWEN-712/screen-reader-brandonp728
e30c25ad2d10ce632fac0548696a61a872328f59
[ "bzip2-1.0.6" ]
4
2019-04-11T16:27:45.000Z
2019-04-11T23:56:30.000Z
include/scons/src/engine/SCons/Node/FSTests.py
SWEN-712/screen-reader-brandonp728
e30c25ad2d10ce632fac0548696a61a872328f59
[ "bzip2-1.0.6" ]
1
2019-06-12T20:30:04.000Z
2019-06-12T20:30:04.000Z
# # __COPYRIGHT__ # # 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, # distribute, sublicen...
34.338805
125
0.520872
091e72c10e8f2c277f4e6d7eb07862efa3df9c6b
3,939
py
Python
tests/unit/test_clt.py
jamespfennell/realtimerail
352dd7d185d3501d28276476e1390d3288735690
[ "MIT" ]
10
2018-10-25T13:07:42.000Z
2022-02-08T20:49:07.000Z
tests/unit/test_clt.py
jamespfennell/realtimerail
352dd7d185d3501d28276476e1390d3288735690
[ "MIT" ]
80
2019-04-06T23:01:44.000Z
2022-02-05T23:35:54.000Z
tests/unit/test_clt.py
jamespfennell/realtimerail
352dd7d185d3501d28276476e1390d3288735690
[ "MIT" ]
3
2021-05-07T16:43:39.000Z
2021-07-15T18:06:07.000Z
import time from unittest import mock import pytest from click.testing import CliRunner from sqlalchemy import exc from transiter import clt from transiter.db import dbconnection from transiter.executor import celeryapp from transiter.http import flaskapp from transiter.scheduler import client, server as scheduler ...
26.979452
88
0.70297
889ee7fb1cf2aee717ea8a36c763030f3721c3ed
2,690
py
Python
tests/integration_tests/end_to_end_test.py
alexlau811/keras-tuner
5f7061d443d29babfe2f2618e8d0a77abf5ed53f
[ "Apache-2.0" ]
1
2020-11-08T17:04:21.000Z
2020-11-08T17:04:21.000Z
tests/integration_tests/end_to_end_test.py
alexlau811/keras-tuner
5f7061d443d29babfe2f2618e8d0a77abf5ed53f
[ "Apache-2.0" ]
null
null
null
tests/integration_tests/end_to_end_test.py
alexlau811/keras-tuner
5f7061d443d29babfe2f2618e8d0a77abf5ed53f
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The Keras Tuner Authors # # Licensed under the Apache License, Version 2.0 (the 'License'); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
29.23913
74
0.666543
1f45927b8dd2c284d713f15a5d86e49565215837
923,462
py
Python
virtual/lib/python3.6/site-packages/phonenumbers/geodata/data20.py
marknesh/neighbourhood-watch
57e36c800b9e4898be9f4949c80c902f7627699a
[ "MIT" ]
null
null
null
virtual/lib/python3.6/site-packages/phonenumbers/geodata/data20.py
marknesh/neighbourhood-watch
57e36c800b9e4898be9f4949c80c902f7627699a
[ "MIT" ]
10
2020-03-24T10:47:53.000Z
2021-04-08T19:51:44.000Z
virtual/lib/python3.6/site-packages/phonenumbers/geodata/data20.py
marknesh/Neighbourhood-Watch
57e36c800b9e4898be9f4949c80c902f7627699a
[ "MIT" ]
null
null
null
"""Per-prefix data, mapping each prefix to a dict of locale:name. Auto-generated file, do not edit by hand. """ from ..util import u # Copyright (C) 2011-2020 The Libphonenumber Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the Licens...
92.134291
139
0.648902
efad9dd299d4c2c163684d81f9b0a80b9b7b41e5
1,535
py
Python
backend/django_react_api/django_react_api/urls.py
LifeWatcher123/infinix-website
395f1dad6d6fddb67542080ce06d341b2fd15376
[ "MIT" ]
null
null
null
backend/django_react_api/django_react_api/urls.py
LifeWatcher123/infinix-website
395f1dad6d6fddb67542080ce06d341b2fd15376
[ "MIT" ]
null
null
null
backend/django_react_api/django_react_api/urls.py
LifeWatcher123/infinix-website
395f1dad6d6fddb67542080ce06d341b2fd15376
[ "MIT" ]
null
null
null
"""django_react_api URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.2/topics/http/urls/ Wagtail CMS has its own URL endpoints defined in `django_rest_framework.api`. Furthermore, Wagtail provides the functionality of the `views.py...
37.439024
95
0.764169
42cfe5ddf6dbe0522750ae205ceb368114689475
452
py
Python
adv/melsa.py
mattkw/dl
45bfc28ad9ff827045a3734730deb893a2436c09
[ "Apache-2.0" ]
null
null
null
adv/melsa.py
mattkw/dl
45bfc28ad9ff827045a3734730deb893a2436c09
[ "Apache-2.0" ]
null
null
null
adv/melsa.py
mattkw/dl
45bfc28ad9ff827045a3734730deb893a2436c09
[ "Apache-2.0" ]
null
null
null
import adv_test from adv import * def module(): return Melsa class Melsa(Adv): a3 = ('cc',0.08,'hit15') if __name__ == '__main__': conf = {} conf['acl'] = """ `s1, seq=5 and cancel or fsc `s2, seq=5 and cancel or fsc `s3, seq=5 and cancel or fsc `fs, seq=5 ""...
16.142857
52
0.475664
44e299135e83eae3432acb8c163b63677bebf289
2,712
py
Python
label_certification/cert_config.py
gothill/python-fedex
62dc8f554babd7066d6c6e7c478944f30fc2b75b
[ "BSD-3-Clause" ]
100
2016-01-22T23:46:10.000Z
2022-03-26T05:00:53.000Z
label_certification/cert_config.py
gothill/python-fedex
62dc8f554babd7066d6c6e7c478944f30fc2b75b
[ "BSD-3-Clause" ]
77
2016-01-19T06:10:22.000Z
2022-03-26T06:04:14.000Z
label_certification/cert_config.py
gothill/python-fedex
62dc8f554babd7066d6c6e7c478944f30fc2b75b
[ "BSD-3-Clause" ]
102
2016-02-08T23:28:45.000Z
2022-02-28T11:37:27.000Z
""" This file holds configuration for your test account. Make SURE to change the values below to your account's TESTING meter number. """ import os import sys # Use the fedex directory included in the downloaded package instead of # any globally installed versions. sys.path.insert(0, os.path.dirname(os.path.dirname(os...
36.16
79
0.717183
3af0b284e46bf1848d68eca2caac08cec959ed77
1,679
py
Python
finplot/examples/arrow.py
Skinok/finplot
6fa771205efa1782c5aa3fb1e18454418be85858
[ "MIT" ]
null
null
null
finplot/examples/arrow.py
Skinok/finplot
6fa771205efa1782c5aa3fb1e18454418be85858
[ "MIT" ]
null
null
null
finplot/examples/arrow.py
Skinok/finplot
6fa771205efa1782c5aa3fb1e18454418be85858
[ "MIT" ]
1
2021-12-16T03:45:28.000Z
2021-12-16T03:45:28.000Z
# -*- coding: utf-8 -*- """ Display an animated arrowhead following a curve. This example uses the CurveArrow class, which is a combination of ArrowItem and CurvePoint. To place a static arrow anywhere in a scene, use ArrowItem. To attach other types of item to a curve, use CurvePoint. """ import numpy as np from p...
30.527273
114
0.711733
448d1c19351d34a50f555897212810bd9f18e5bd
338
py
Python
get_fluid_intelligence.py
dengemann/engemann-2020-multimodal-brain-age
ceffb1e01658e31d19dfc4dc0be7aff1d6d21af5
[ "BSD-3-Clause" ]
6
2020-11-11T21:26:20.000Z
2022-01-18T17:18:45.000Z
get_fluid_intelligence.py
dengemann/engemann-2020-multimodal-brain-age
ceffb1e01658e31d19dfc4dc0be7aff1d6d21af5
[ "BSD-3-Clause" ]
1
2022-03-14T07:56:17.000Z
2022-03-14T07:56:17.000Z
get_fluid_intelligence.py
dengemann/engemann-2020-multimodal-brain-age
ceffb1e01658e31d19dfc4dc0be7aff1d6d21af5
[ "BSD-3-Clause" ]
3
2020-06-10T08:34:04.000Z
2022-03-14T01:37:08.000Z
import glob import pandas as pd fnames = glob.glob( '/Users/dengeman/cc700-scored/Cattell/release001/data/*.txt') dfs = list() for fname in sorted(fnames): df = pd.read_csv(fname, sep='\t') df['subject'] = fname.split('/')[-1].split('_')[1] dfs.append(df) df_cattell = pd.concat(dfs) df_cattell.to_csv('...
26
65
0.668639
c31bc9002952d9b2d1383fa3eb8c3a130f1ff366
9,119
py
Python
fanficfare/adapters/adapter_hpfanficarchivecom.py
vuonojenmustaturska/FanFicFare
0234c161175a10bb3420e446e76cbdc9f9a3cf8a
[ "Apache-2.0" ]
null
null
null
fanficfare/adapters/adapter_hpfanficarchivecom.py
vuonojenmustaturska/FanFicFare
0234c161175a10bb3420e446e76cbdc9f9a3cf8a
[ "Apache-2.0" ]
null
null
null
fanficfare/adapters/adapter_hpfanficarchivecom.py
vuonojenmustaturska/FanFicFare
0234c161175a10bb3420e446e76cbdc9f9a3cf8a
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2012 Fanficdownloader team, 2018 FanFicFare team # # 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 # # Un...
40.892377
183
0.611471
85f95d416ba44e1a3be4aacebb8cd3dd97345d64
3,650
py
Python
bindings/python/ensmallen/datasets/string/streptococcusconstellatuspharyngissk1060.py
AnacletoLAB/ensmallen
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
5
2021-09-10T18:31:58.000Z
2022-03-24T04:28:04.000Z
bindings/python/ensmallen/datasets/string/streptococcusconstellatuspharyngissk1060.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
18
2021-01-07T16:47:39.000Z
2021-08-12T21:51:32.000Z
bindings/python/ensmallen/datasets/string/streptococcusconstellatuspharyngissk1060.py
AnacletoLAB/ensmallen
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
3
2021-01-14T02:20:59.000Z
2021-08-04T19:09:52.000Z
""" This file offers the methods to automatically retrieve the graph Streptococcus constellatus pharyngis SK1060. The graph is automatically retrieved from the STRING repository. References --------------------- Please cite the following if you use the data: ```bib @article{szklarczyk2019string, title={STRING ...
33.796296
223
0.684932
03bca3fdb4fefd7164ec5ce0ff7c5c326f52e2b6
1,342
py
Python
conf.py
Jakski/ansible-role-fail2ban
837cf3c14f345c8b5f96e833400d0dcfdd628cde
[ "MIT" ]
null
null
null
conf.py
Jakski/ansible-role-fail2ban
837cf3c14f345c8b5f96e833400d0dcfdd628cde
[ "MIT" ]
null
null
null
conf.py
Jakski/ansible-role-fail2ban
837cf3c14f345c8b5f96e833400d0dcfdd628cde
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # -- Path setup -------------------------------------------------------------- import re def get_latest_version(changelog): '''Retrieve latest version of package from changelog file.''' # Match strings like "## [1.2.3] - 2017-02-02" regex = r'^##\s*\[(\d+.\d+.\d+)\]\s*-\s*\d{4}-\...
26.84
78
0.5231
cb2707daa431848ca5af5c1a00220076db010a27
6,742
py
Python
roadmap_planner/src/roadmap_planner/service_proxies.py
JKBehrens/STAAMS-Solver
b6837da69cda574d081ab3dc0b307e3ce40ad6f2
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
16
2018-12-11T13:02:58.000Z
2022-02-28T09:05:20.000Z
roadmap_planner/src/roadmap_planner/service_proxies.py
stepakar/STAAMS-Solver
b6837da69cda574d081ab3dc0b307e3ce40ad6f2
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2019-11-04T13:16:49.000Z
2022-02-28T09:17:30.000Z
roadmap_planner/src/roadmap_planner/service_proxies.py
stepakar/STAAMS-Solver
b6837da69cda574d081ab3dc0b307e3ce40ad6f2
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
4
2019-02-12T12:41:25.000Z
2022-02-09T12:55:56.000Z
#!/usr/bin/env python """ Copyright (c) 2018 Robert Bosch GmbH All rights reserved. This source code is licensed under the BSD-3-Clause license found in the LICENSE file in the root directory of this source tree. @author: Jan Behrens """ import rospy from roadmap_planning_common_msgs.srv import AddOVC, AddOVCRespons...
37.876404
123
0.671166
c963f2a29538a36990b059b0a16747128e693ea9
3,446
py
Python
utils.py
bassbone/pytorch-cifar
f744fe027f3bb080c33daf8cee37e8ceb025d7db
[ "MIT" ]
null
null
null
utils.py
bassbone/pytorch-cifar
f744fe027f3bb080c33daf8cee37e8ceb025d7db
[ "MIT" ]
null
null
null
utils.py
bassbone/pytorch-cifar
f744fe027f3bb080c33daf8cee37e8ceb025d7db
[ "MIT" ]
null
null
null
'''Some helper functions for PyTorch, including: - get_mean_and_std: calculate the mean and std value of dataset. - msr_init: net parameter initialization. - progress_bar: progress bar mimic xlua.progress. ''' import os import sys import time import math import torch.nn as nn import torch.nn.init as init ...
27.568
96
0.578062
4179d4602142c12fcf1da02675e8c16dbaaa819a
581
py
Python
invoices/migrations/0003_auto_20190527_1620.py
exenin/Django-CRM
009461beb2279590c656465c6b47cd2e1e5aaa70
[ "MIT" ]
2
2020-07-28T12:32:57.000Z
2020-08-20T11:47:07.000Z
invoices/migrations/0003_auto_20190527_1620.py
exenin/Django-CRM
009461beb2279590c656465c6b47cd2e1e5aaa70
[ "MIT" ]
1
2020-03-27T17:02:11.000Z
2020-04-03T17:21:24.000Z
invoices/migrations/0003_auto_20190527_1620.py
exenin/Django-CRM
009461beb2279590c656465c6b47cd2e1e5aaa70
[ "MIT" ]
5
2020-03-21T09:55:05.000Z
2020-04-03T06:51:02.000Z
# Generated by Django 2.1.7 on 2019-05-27 10:50 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('invoices', '0002_auto_20190524_1113'), ] operations = [ migrations.AddField( model_name='invoice', name='details', ...
24.208333
82
0.585198
2ffdacd7b5bab27ccc721ae3b4292fbc40021317
17,959
py
Python
transcrypt/development/automated_tests/transcrypt/div_issues/__init__.py
JMCanning78/Transcrypt
8a8dabe831240414fdf1d5027fa2b0d71ab45d05
[ "Apache-2.0" ]
1
2017-08-11T01:51:51.000Z
2017-08-11T01:51:51.000Z
transcrypt/development/automated_tests/transcrypt/div_issues/__init__.py
JMCanning78/Transcrypt
8a8dabe831240414fdf1d5027fa2b0d71ab45d05
[ "Apache-2.0" ]
2
2021-03-11T07:09:19.000Z
2021-05-12T11:26:23.000Z
transcrypt/development/automated_tests/transcrypt/div_issues/__init__.py
JMCanning78/Transcrypt
8a8dabe831240414fdf1d5027fa2b0d71ab45d05
[ "Apache-2.0" ]
1
2021-02-07T00:22:12.000Z
2021-02-07T00:22:12.000Z
from org.transcrypt.stubs.browser import __pragma__, __new__, __envir__, __symbols__ from div_issues.issue55 import * # Names not exported from package's __init__.py, no output, only compilation check from div_issues.issue387 import run387 # Support __module__ and __qualname__ for introspection (only __module_...
32.358559
158
0.550309
1d2277bc71a4f719dc2dd22a40b2b06d5035d1ea
163
py
Python
app_modules.py
noahlwest/cse115a
a1fdd84b6cbb859580b2c8728d275ed695a8c702
[ "MIT" ]
null
null
null
app_modules.py
noahlwest/cse115a
a1fdd84b6cbb859580b2c8728d275ed695a8c702
[ "MIT" ]
null
null
null
app_modules.py
noahlwest/cse115a
a1fdd84b6cbb859580b2c8728d275ed695a8c702
[ "MIT" ]
null
null
null
# GUI FILE FOR WIDGETS from Social_GUI import Ui_MainWindow # IMPORT CUSTOM STYLEE from ui_styles import Style # IMPORT GUI FUNCTIONS from ui_functions import *
18.111111
36
0.809816
0cabd0f4faf62e490d2483f6dce04169d67a7a79
620
py
Python
wgeasywall/utils/mongo/table/query.py
Identeco/WGEasywall
301a80bf86900414951b96dc9ffd1e94c52220a5
[ "MIT" ]
null
null
null
wgeasywall/utils/mongo/table/query.py
Identeco/WGEasywall
301a80bf86900414951b96dc9ffd1e94c52220a5
[ "MIT" ]
1
2022-01-30T10:37:20.000Z
2022-01-30T10:37:20.000Z
wgeasywall/utils/mongo/table/query.py
araminian/wgeasywall
ee3d6d91f1097aa5f498e66e07ec2629cd198e6d
[ "MIT" ]
null
null
null
from wgeasywall.utils.mongo.core import collection def query_abstract(database_name,table_name,query): table = collection.get_collection(database_name,table_name) if(type(table) == dict and 'ErrorCode' in table): return table try: entries = table.find(query) except Exception as e: ...
29.52381
67
0.698387
611abb4cd191a094bbd156be1f03dacdc737cd24
1,176
py
Python
groundstation/config.py
dkkline/CanSat14-15
153d7d5b20ecdfbb3c3e0a2d416ea79bdd4899d1
[ "MIT" ]
null
null
null
groundstation/config.py
dkkline/CanSat14-15
153d7d5b20ecdfbb3c3e0a2d416ea79bdd4899d1
[ "MIT" ]
null
null
null
groundstation/config.py
dkkline/CanSat14-15
153d7d5b20ecdfbb3c3e0a2d416ea79bdd4899d1
[ "MIT" ]
null
null
null
""" Contains the configuration parameters used by the groundstation module. """ COM_FILE = "com_file" BIND_ADDRESS = "0.0.0.0" DATA_BASE_PATH = "data" DATA_CONFIG_FILE = "data_config.json" PRESENTER = { "port": 80, "address": BIND_ADDRESS, "debug": True, "database": "sqliteext:///presenter.db" } FAK...
19.932203
71
0.558673
ce37126b32ff915930da016783728d50ae60fd0a
4,622
py
Python
src/Lib/test/test_dynamic.py
NUS-ALSET/ace-react-redux-brython
d009490263c5716a145d9691cd59bfcd5aff837a
[ "MIT" ]
1
2021-08-05T12:45:39.000Z
2021-08-05T12:45:39.000Z
src/Lib/test/test_dynamic.py
NUS-ALSET/ace-react-redux-brython
d009490263c5716a145d9691cd59bfcd5aff837a
[ "MIT" ]
null
null
null
src/Lib/test/test_dynamic.py
NUS-ALSET/ace-react-redux-brython
d009490263c5716a145d9691cd59bfcd5aff837a
[ "MIT" ]
1
2019-09-05T08:20:07.000Z
2019-09-05T08:20:07.000Z
# Test the most dynamic corner cases of Python's runtime semantics. import builtins import contextlib import unittest from test.support import run_unittest, swap_item, swap_attr class RebindBuiltinsTests(unittest.TestCase): """Test all the ways that we can change/shadow globals/builtins.""" d...
32.097222
81
0.566421
a8418f5da9e478efe1b6149b0c0b3065943a0b1f
14,686
py
Python
jina/drivers/__init__.py
ryan-zheng-teki/jina
042175fdb7e3ed8d9dd17233231beb2a8c2004bf
[ "Apache-2.0" ]
null
null
null
jina/drivers/__init__.py
ryan-zheng-teki/jina
042175fdb7e3ed8d9dd17233231beb2a8c2004bf
[ "Apache-2.0" ]
null
null
null
jina/drivers/__init__.py
ryan-zheng-teki/jina
042175fdb7e3ed8d9dd17233231beb2a8c2004bf
[ "Apache-2.0" ]
null
null
null
__copyright__ = "Copyright (c) 2020 Jina AI Limited. All rights reserved." __license__ = "Apache-2.0" import inspect from functools import wraps from typing import ( Any, Dict, Callable, Tuple, Optional, Sequence, ) from google.protobuf.struct_pb2 import Struct from ..enums import SkipOnError...
39.26738
174
0.610105
4455de25ad62ee07f199e847cc0980e0debee961
880
py
Python
test/test_devices_info.py
metacore-io/metacore-api-client-python
37d6127442e7a56deeedb88bf50b83e5d24fa7b0
[ "MIT" ]
null
null
null
test/test_devices_info.py
metacore-io/metacore-api-client-python
37d6127442e7a56deeedb88bf50b83e5d24fa7b0
[ "MIT" ]
null
null
null
test/test_devices_info.py
metacore-io/metacore-api-client-python
37d6127442e7a56deeedb88bf50b83e5d24fa7b0
[ "MIT" ]
null
null
null
# coding: utf-8 """ Metacore IoT Object Storage API Metacore Object Storage - IOT Core Services # noqa: E501 OpenAPI spec version: 1.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import metacore_api_python_cli fr...
22
89
0.702273
cb68c5bb1286fa43803a6541a04b22c3aba1f74e
607
py
Python
selenium__examples/music_yandex_ru/get_all_tracks_playlist/config.py
DazEB2/SimplePyScripts
1dde0a42ba93fe89609855d6db8af1c63b1ab7cc
[ "CC-BY-4.0" ]
117
2015-12-18T07:18:27.000Z
2022-03-28T00:25:54.000Z
selenium__examples/music_yandex_ru/get_all_tracks_playlist/config.py
DazEB2/SimplePyScripts
1dde0a42ba93fe89609855d6db8af1c63b1ab7cc
[ "CC-BY-4.0" ]
8
2018-10-03T09:38:46.000Z
2021-12-13T19:51:09.000Z
selenium__examples/music_yandex_ru/get_all_tracks_playlist/config.py
DazEB2/SimplePyScripts
1dde0a42ba93fe89609855d6db8af1c63b1ab7cc
[ "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 os.path from pathlib import Path # pip install selenium from selenium import webdriver from selenium.webdriver.firefox.options import Options profile_directory = os.path.expandvars(r'%AppData%\Mozilla\Firefox\Profiles\p75l82q1.for_mail_...
24.28
105
0.782537
0ab1295117d00c1edd788094efc2a9b5fb9734a0
4,374
py
Python
contrib/seeds/generate-seeds.py
unitedcryptocommunity/kzcash
763bc86787079356f9f0b60b6256a522979caf4a
[ "MIT" ]
8
2017-11-29T12:03:11.000Z
2020-12-10T01:03:25.000Z
contrib/seeds/generate-seeds.py
unitedcryptocommunity/kzcash
763bc86787079356f9f0b60b6256a522979caf4a
[ "MIT" ]
2
2017-11-05T14:34:15.000Z
2017-11-12T00:11:00.000Z
contrib/seeds/generate-seeds.py
unitedcryptocommunity/kzcash
763bc86787079356f9f0b60b6256a522979caf4a
[ "MIT" ]
10
2017-11-19T15:04:24.000Z
2022-03-07T22:38:23.000Z
#!/usr/bin/python # Copyright (c) 2014 Wladimir J. van der Laan # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. ''' Script to generate list of seed nodes for chainparams.cpp. This script expects two text files in the directory tha...
31.467626
98
0.582076
2c3d6f0a649af3c72c7811d55b1770d7fc4f778f
18,591
py
Python
env/Lib/site-packages/imageio/core/util.py
L0dz/auto-post
91563235a74336e4326a13b142c05c6755e0cf47
[ "Apache-2.0" ]
null
null
null
env/Lib/site-packages/imageio/core/util.py
L0dz/auto-post
91563235a74336e4326a13b142c05c6755e0cf47
[ "Apache-2.0" ]
6
2019-12-17T13:32:08.000Z
2021-06-02T00:49:29.000Z
cineBot/lib/python3.6/site-packages/imageio/core/util.py
furkanalpereny/cineBot
cb93b6fc6ab25ba0601067f54b6824a8462f470d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2015, imageio contributors # imageio is distributed under the terms of the (new) BSD License. """ Various utilities for imageio """ from __future__ import absolute_import, print_function, division import re import os import sys import time import struct from warnings import w...
34.174632
79
0.595019
02cddab8547d422b0fcd5ee20c784a6dfc08ad5c
7,065
py
Python
rrdb/meta.py
pegasus-kv/pegasus-python-client
cb1a91336cc04f5e2ffdc92a6f3831045ece4b95
[ "Apache-2.0" ]
3
2018-01-15T06:58:32.000Z
2021-11-15T08:42:33.000Z
rrdb/meta.py
pegasus-kv/pegasus-python-client
cb1a91336cc04f5e2ffdc92a6f3831045ece4b95
[ "Apache-2.0" ]
null
null
null
rrdb/meta.py
pegasus-kv/pegasus-python-client
cb1a91336cc04f5e2ffdc92a6f3831045ece4b95
[ "Apache-2.0" ]
1
2018-01-22T02:07:40.000Z
2018-01-22T02:07:40.000Z
# # Autogenerated by Thrift Compiler (0.9.3) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # # options string: py # from thrift.Thrift import TType, TMessageType, TException, TApplicationException import logging from ttypes import * from thrift.Thrift import TProcessor from thrift.transport imp...
29.194215
188
0.682803
a8bd118a626dcb284e4447b2a0af07727caa1f16
342
py
Python
src/old_ui/UserInterfaces.py
fdesjardins/surface-estimation-and-image-relighting
fb5aa44612076f7ee59da891edc61268eb4c05ad
[ "MIT" ]
9
2017-06-14T09:58:27.000Z
2020-12-18T03:22:06.000Z
src/old_ui/UserInterfaces.py
fdesjardins/svm-surface-estimation-and-relighting
fb5aa44612076f7ee59da891edc61268eb4c05ad
[ "MIT" ]
null
null
null
src/old_ui/UserInterfaces.py
fdesjardins/svm-surface-estimation-and-relighting
fb5aa44612076f7ee59da891edc61268eb4c05ad
[ "MIT" ]
2
2020-01-19T01:06:59.000Z
2021-08-08T10:32:34.000Z
from PySide import QtCore from PySide import QtGui class DefaultUI(QtGui.QWidget): def __init__(self, parent=None, display=None): QtGui.QWidget.__init__(self) ## adjust layout grid = QtGui.QGridLayout() grid.addWidget(display) grid.setContentsMargins(0,0,0,0) ...
28.5
50
0.654971
0054411ee64642f19d2a4d5fe225e4cc6286d033
5,744
py
Python
google-datacatalog-tableau-connector/src/google/datacatalog_connectors/tableau/scrape/metadata_scraper.py
Parkman328/datacatalog-connectors-bi
630de336617728713779d7224eeab140d5abaec2
[ "Apache-2.0" ]
27
2020-04-27T21:55:49.000Z
2022-02-18T22:09:13.000Z
google-datacatalog-tableau-connector/src/google/datacatalog_connectors/tableau/scrape/metadata_scraper.py
Parkman328/datacatalog-connectors-bi
630de336617728713779d7224eeab140d5abaec2
[ "Apache-2.0" ]
36
2020-05-01T15:26:14.000Z
2022-03-26T00:09:19.000Z
google-datacatalog-tableau-connector/src/google/datacatalog_connectors/tableau/scrape/metadata_scraper.py
Parkman328/datacatalog-connectors-bi
630de336617728713779d7224eeab140d5abaec2
[ "Apache-2.0" ]
18
2020-04-30T22:14:09.000Z
2022-01-13T10:28:03.000Z
#!/usr/bin/python # # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
39.613793
77
0.662604
38dc87aa3bbb69142f19ad87f9891b5b6ce4dd71
5,451
py
Python
caelus/scripts/core.py
cnsidero/cpl
aad9eec2776e87265a87e0fddaf87e89b7a7abb1
[ "Apache-2.0" ]
null
null
null
caelus/scripts/core.py
cnsidero/cpl
aad9eec2776e87265a87e0fddaf87e89b7a7abb1
[ "Apache-2.0" ]
25
2018-04-11T17:44:34.000Z
2021-07-19T16:57:17.000Z
caelus/scripts/core.py
cnsidero/cpl
aad9eec2776e87265a87e0fddaf87e89b7a7abb1
[ "Apache-2.0" ]
2
2019-03-28T12:12:58.000Z
2021-05-02T16:18:16.000Z
# -*- coding: utf-8 -*- """\ Basic CLI Interface ------------------- Defines the base classes that are used to build the CLI scripts. """ import logging import argparse from ..config.config import get_config, configure_logging, rcfiles_loaded from ..config import cmlenv from ..version import version _lgr = logging....
37.335616
100
0.615116
bb9aef0c0d0952c02b807a14769ba55792ba140b
7,278
py
Python
lib_tennis.py
JoeyChennn/TennisPoint
2d876ac87277062f931343c3095e7eab24083c31
[ "Apache-2.0" ]
11
2020-09-17T06:39:40.000Z
2021-12-25T02:58:54.000Z
lib_tennis.py
JoeyChennn/TennisPoint
2d876ac87277062f931343c3095e7eab24083c31
[ "Apache-2.0" ]
null
null
null
lib_tennis.py
JoeyChennn/TennisPoint
2d876ac87277062f931343c3095e7eab24083c31
[ "Apache-2.0" ]
2
2020-10-23T10:46:29.000Z
2020-11-04T05:24:13.000Z
# -*- coding: utf-8 -*- import cv2,os import copy import numpy as np from lmfit.models import GaussianModel, LorentzianModel, LinearModel, PolynomialModel from lmfit.printfuncs import getfloat_attr def np_resize_max_size(img,max_size): height, width, channel = img.shape # magnify image size tar...
34.009346
119
0.588761
2475341b004ee40093081fde756d86b2f1da0cf8
2,896
py
Python
tests/unit/core/customisation_tests.py
jupitercl/meatme-oscar-dev
40583cbb3c6762640a403956e41bffac0bb2ad48
[ "BSD-3-Clause" ]
null
null
null
tests/unit/core/customisation_tests.py
jupitercl/meatme-oscar-dev
40583cbb3c6762640a403956e41bffac0bb2ad48
[ "BSD-3-Clause" ]
null
null
null
tests/unit/core/customisation_tests.py
jupitercl/meatme-oscar-dev
40583cbb3c6762640a403956e41bffac0bb2ad48
[ "BSD-3-Clause" ]
null
null
null
import os import tempfile from django.test import TestCase from django.conf import settings from oscar.core import customisation VALID_FOLDER_PATH = 'tests/_site/apps' class TestUtilities(TestCase): def test_subfolder_extraction(self): folders = list(customisation.subfolders('/var/www/eggs')) ...
39.135135
79
0.673343
4ac974f405dedb9304d63874379ce65585e51227
23,602
py
Python
featuretools/primitives/standard/binary_transform.py
jeffzi/featuretools
cd674b3f302832cacb3ce9cc95d5ce2f5052a4d6
[ "BSD-3-Clause" ]
1
2019-10-22T03:36:36.000Z
2019-10-22T03:36:36.000Z
featuretools/primitives/standard/binary_transform.py
jeffzi/featuretools
cd674b3f302832cacb3ce9cc95d5ce2f5052a4d6
[ "BSD-3-Clause" ]
null
null
null
featuretools/primitives/standard/binary_transform.py
jeffzi/featuretools
cd674b3f302832cacb3ce9cc95d5ce2f5052a4d6
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import pandas as pd from featuretools.primitives.base.transform_primitive_base import ( TransformPrimitive ) from featuretools.variable_types import ( Boolean, Datetime, Numeric, Ordinal, Variable ) class GreaterThan(TransformPrimitive): """Determines if values in one l...
30.104592
86
0.640115
4d187934887152ee6852e6407d4d58c94b396ae7
2,943
py
Python
setup.py
NikhilKumar1234/incubator-superset
81fc3dfbee503aa59e5424428ec144fcf4c831d1
[ "Apache-2.0" ]
null
null
null
setup.py
NikhilKumar1234/incubator-superset
81fc3dfbee503aa59e5424428ec144fcf4c831d1
[ "Apache-2.0" ]
null
null
null
setup.py
NikhilKumar1234/incubator-superset
81fc3dfbee503aa59e5424428ec144fcf4c831d1
[ "Apache-2.0" ]
null
null
null
import io import json import os import subprocess import sys from setuptools import find_packages, setup if sys.version_info < (3, 6): sys.exit('Sorry, Python < 3.6 is not supported') BASE_DIR = os.path.abspath(os.path.dirname(__file__)) PACKAGE_DIR = os.path.join(BASE_DIR, 'superset', 'static', 'assets') PACKAG...
26.044248
79
0.582399
2c75f8a023d4f3f681e5311e531222369edd6e83
1,725
py
Python
airflow_tutorial/dags/ml_pipeline.py
thejungwon/machine_learning_serving
1d1e003c65588dbe1383619e21dfe4b22afc713e
[ "MIT" ]
null
null
null
airflow_tutorial/dags/ml_pipeline.py
thejungwon/machine_learning_serving
1d1e003c65588dbe1383619e21dfe4b22afc713e
[ "MIT" ]
null
null
null
airflow_tutorial/dags/ml_pipeline.py
thejungwon/machine_learning_serving
1d1e003c65588dbe1383619e21dfe4b22afc713e
[ "MIT" ]
null
null
null
#References : https://towardsdatascience.com/10-minutes-to-building-a-machine-learning-pipeline-with-apache-airflow-53cd09268977 from datetime import timedelta from airflow import DAG from airflow.utils.dates import days_ago from airflow.operators.python import PythonOperator from airflow.operators.bash import BashOpe...
23.310811
128
0.693913
be3a54da11e16c353b07b6e7ad95579671b1ba8b
319
py
Python
otp/distributed/DistributedDirectoryAI.py
SuperM0use24/TT-CL-Edition
fdad8394f0656ae122b687d603f72afafd220c65
[ "MIT" ]
null
null
null
otp/distributed/DistributedDirectoryAI.py
SuperM0use24/TT-CL-Edition
fdad8394f0656ae122b687d603f72afafd220c65
[ "MIT" ]
1
2021-06-08T17:16:48.000Z
2021-06-08T17:16:48.000Z
otp/distributed/DistributedDirectoryAI.py
SuperM0use24/TT-CL-Edition
fdad8394f0656ae122b687d603f72afafd220c65
[ "MIT" ]
3
2021-06-03T05:36:36.000Z
2021-06-22T15:07:31.000Z
from direct.directnotify import DirectNotifyGlobal from direct.distributed.DistributedObjectAI import DistributedObjectAI class DistributedDirectoryAI(DistributedObjectAI): notify = DirectNotifyGlobal.directNotify.newCategory('DistributedDirectoryAI') def setParentingRules(self, todo0, todo1): pass
31.9
82
0.827586
57e9b845e4504acd8c64995fe7ccdcd8b3a4c137
4,062
py
Python
python/tests/utils/test_environment_decorator.py
xuyanbo03/lab
cf2f5250e1a00ecce37b3480df28c3a5dcd08b57
[ "CC-BY-4.0" ]
7,407
2016-12-06T08:40:58.000Z
2022-03-31T12:19:09.000Z
python/tests/utils/test_environment_decorator.py
xuyanbo03/lab
cf2f5250e1a00ecce37b3480df28c3a5dcd08b57
[ "CC-BY-4.0" ]
227
2016-12-06T22:05:33.000Z
2022-03-29T09:47:06.000Z
python/tests/utils/test_environment_decorator.py
xuyanbo03/lab
cf2f5250e1a00ecce37b3480df28c3a5dcd08b57
[ "CC-BY-4.0" ]
1,594
2016-12-06T08:44:13.000Z
2022-03-31T12:19:12.000Z
# Copyright 2018 Google Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the ho...
32.496
80
0.725012
47d546450b40b2715f3b6aa13ff893553735d976
5,610
py
Python
deepar/model/lstm.py
xxddsummer/deepar
6a5ed632b81db745ffa2957f4c6c8baa7b3a0298
[ "MIT" ]
null
null
null
deepar/model/lstm.py
xxddsummer/deepar
6a5ed632b81db745ffa2957f4c6c8baa7b3a0298
[ "MIT" ]
null
null
null
deepar/model/lstm.py
xxddsummer/deepar
6a5ed632b81db745ffa2957f4c6c8baa7b3a0298
[ "MIT" ]
null
null
null
import math from functools import partial import logging from typing import Optional, Union import numpy as np from numpy.random import normal from tensorflow.keras.layers import Dense, Input, LSTM from tensorflow.keras.models import Model from tensorflow.keras import backend as K from tensorflow.keras import callbac...
32.241379
104
0.616043
3e352c365697d7eaaa6c45a6a5f37b2455a34238
157
py
Python
Desafios/desafio010.py
MaxGabrielima/Python-Codes
195c13821a937f0b792b0d214d19840d57068279
[ "MIT" ]
3
2021-07-31T21:10:32.000Z
2021-11-17T02:21:28.000Z
Desafios/desafio010.py
MaxGabrielima/Python-Codes
195c13821a937f0b792b0d214d19840d57068279
[ "MIT" ]
null
null
null
Desafios/desafio010.py
MaxGabrielima/Python-Codes
195c13821a937f0b792b0d214d19840d57068279
[ "MIT" ]
null
null
null
D = int(input('Digite seu saldo bancário para conversão: ')) Dol = 5.31 R = (D / Dol) print('O saldo inserido permite a compra de {:.2f} doláres'.format(R))
31.4
70
0.675159
36a4afae859f2cb9bc49033041e476c65ce7b7a4
174
py
Python
trans_ms/transport_management/doctype/transport_expense_account_group/test_transport_expense_account_group.py
mohsinalimat/transport
3d32bd27f505f64b948f48d0bfc5c7ccaf61c4a2
[ "MIT" ]
null
null
null
trans_ms/transport_management/doctype/transport_expense_account_group/test_transport_expense_account_group.py
mohsinalimat/transport
3d32bd27f505f64b948f48d0bfc5c7ccaf61c4a2
[ "MIT" ]
null
null
null
trans_ms/transport_management/doctype/transport_expense_account_group/test_transport_expense_account_group.py
mohsinalimat/transport
3d32bd27f505f64b948f48d0bfc5c7ccaf61c4a2
[ "MIT" ]
null
null
null
# Copyright (c) 2022, Aakvatech Limited and Contributors # See license.txt # import frappe import unittest class TestTransportExpenseAccountGroup(unittest.TestCase): pass
19.333333
58
0.810345
87636d135dcb1c125eb2f2e6ec2b4adb07b146af
2,286
py
Python
test/test_hj_solver.py
LLNL/lestofire
4c1a871d253c46271e599f4686bd7c92f3fcac94
[ "MIT" ]
3
2020-12-09T21:14:47.000Z
2021-07-10T08:25:33.000Z
test/test_hj_solver.py
LLNL/lestofire
4c1a871d253c46271e599f4686bd7c92f3fcac94
[ "MIT" ]
5
2021-07-06T16:19:56.000Z
2021-10-30T17:01:26.000Z
test/test_hj_solver.py
LLNL/letop
4c1a871d253c46271e599f4686bd7c92f3fcac94
[ "MIT" ]
2
2021-11-15T23:32:29.000Z
2022-03-07T06:50:21.000Z
import firedrake as fd from firedrake.bcs import DirichletBC from firedrake.interpolation import interpolate from firedrake import inner from ufl.algebra import Abs import pytest from letop.optimization import ( HamiltonJacobiCGSolver, ) mesh = fd.UnitSquareMesh(50, 50, quadrilateral=True) x, y = fd.SpatialCoor...
24.580645
78
0.521435
9f7c273331462b4c1b7ecd03d6d3215d0865f2cd
267
py
Python
CelestePy/util/data/__init__.py
andymiller/CelestePy
b160d54c48af270b799397b435b71c17342d5122
[ "Apache-2.0" ]
1
2020-04-25T04:12:14.000Z
2020-04-25T04:12:14.000Z
CelestePy/util/data/__init__.py
andymiller/CelestePy
b160d54c48af270b799397b435b71c17342d5122
[ "Apache-2.0" ]
null
null
null
CelestePy/util/data/__init__.py
andymiller/CelestePy
b160d54c48af270b799397b435b71c17342d5122
[ "Apache-2.0" ]
null
null
null
# only expose a few data manipulation functions from sdss import make_fits_images, tractor_src_to_celestepy_src from photo import photoobj_to_celestepy_src from io import load_celeste_dataframe, create_matched_dataset, \ celestedf_row_to_params
44.5
67
0.808989
1b704808de5adae8a7587a94c6add74f2a0befbd
2,371
py
Python
blog/admin.py
BenoitObelia/Monod-Crush
3786a3b4d828bb99c0a3b16bcd8d2d5e9004899d
[ "MIT" ]
2
2022-03-31T12:01:49.000Z
2022-03-31T20:44:47.000Z
blog/admin.py
BenoitObelia/Monod-Crush
3786a3b4d828bb99c0a3b16bcd8d2d5e9004899d
[ "MIT" ]
11
2022-03-31T16:50:15.000Z
2022-03-31T21:22:20.000Z
blog/admin.py
BenoitObelia/Monod-Crush
3786a3b4d828bb99c0a3b16bcd8d2d5e9004899d
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Post, Comment, PostReport, Like class ReportersInline(admin.TabularInline): model = PostReport readonly_fields = ("user", 'created_at') extra = 0 max_num = 0 verbose_name = "Signalement" class CommentsInline(admin.TabularInline): model = ...
28.22619
110
0.630536
35acee48399bb340505a3527f0471454d25ee9fb
5,253
py
Python
project/data/adaptive_resizer_batch.py
LeCongThuong/shopee_template
34739fac9765f13e98bbd66a71c018f79bfc3baf
[ "Apache-2.0" ]
null
null
null
project/data/adaptive_resizer_batch.py
LeCongThuong/shopee_template
34739fac9765f13e98bbd66a71c018f79bfc3baf
[ "Apache-2.0" ]
null
null
null
project/data/adaptive_resizer_batch.py
LeCongThuong/shopee_template
34739fac9765f13e98bbd66a71c018f79bfc3baf
[ "Apache-2.0" ]
null
null
null
import logging from torch.utils.data import DataLoader, Dataset import os import numpy as np import cv2 import torch import matplotlib.pyplot as plt from project.utils import read_csv logger = logging.getLogger(__name__) class AdaptiveResizerDataset(Dataset): def __init__(self, image_dir, csv_annotation_file, t...
42.024
136
0.649914
784fc5f136b998c34776712b67e49cd191442db9
605
py
Python
python/ideep4py/tests/mm/test_acc_sum.py
cis-ncbj/ideep
b57539e4608e75f80dbc5c2784643d5f2f242003
[ "MIT" ]
133
2017-10-20T06:45:25.000Z
2022-03-22T08:27:10.000Z
python/ideep4py/tests/mm/test_acc_sum.py
cis-ncbj/ideep
b57539e4608e75f80dbc5c2784643d5f2f242003
[ "MIT" ]
46
2018-03-05T06:44:16.000Z
2021-12-01T03:50:19.000Z
python/ideep4py/tests/mm/test_acc_sum.py
cis-ncbj/ideep
b57539e4608e75f80dbc5c2784643d5f2f242003
[ "MIT" ]
78
2017-11-05T11:46:31.000Z
2022-03-28T08:14:52.000Z
import numpy import ideep4py x1 = numpy.random.uniform(-1, 1, (3, 16, 2, 4)).astype(numpy.float32) x2 = numpy.random.uniform(-1, 1, (3, 16, 2, 4)).astype(numpy.float32) x3 = numpy.random.uniform(-1, 1, (3, 16, 2, 4)).astype(numpy.float32) x4 = numpy.random.uniform(-1, 1, (3, 16, 2, 4)).astype(numpy.float32) mx1 = idee...
31.842105
69
0.657851
beaceda8c3e62138e6ced859286236e14ae3be1f
1,765
py
Python
python/data_saving/PARMA/parma.py
Zelenyy/phd-code
d5b8bfefd2418a915dde89f7da2cb6683f438556
[ "MIT" ]
null
null
null
python/data_saving/PARMA/parma.py
Zelenyy/phd-code
d5b8bfefd2418a915dde89f7da2cb6683f438556
[ "MIT" ]
null
null
null
python/data_saving/PARMA/parma.py
Zelenyy/phd-code
d5b8bfefd2418a915dde89f7da2cb6683f438556
[ "MIT" ]
null
null
null
import os from odf.opendocument import OpenDocumentSpreadsheet from odf.table import Table, TableColumn, TableRow, TableCell from odf.text import P PARMA_DIR = "/home/zelenyy/storage/Загрузки/parma_cpp" def convert_FFPtable_USO(path): name = "FFPtable.uso" table = Table(name=name) with open(path) as fin...
28.015873
84
0.610765
26e7cf7bee89df0949eb7325fa8deb5e34a80210
622
py
Python
tests/asymmetric_stdp.py
SocratesNFR/neat-nagi-python
dab506184d464c9e7194c58eb912526d9d080bb2
[ "MIT" ]
null
null
null
tests/asymmetric_stdp.py
SocratesNFR/neat-nagi-python
dab506184d464c9e7194c58eb912526d9d080bb2
[ "MIT" ]
null
null
null
tests/asymmetric_stdp.py
SocratesNFR/neat-nagi-python
dab506184d464c9e7194c58eb912526d9d080bb2
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt from matplotlib.ticker import PercentFormatter from nagi.stdp import * def plot_stdp(f): p = ASYMMETRIC_HEBBIAN_PARAMS x = [i for i in range(-40, 41)] y = [f(dt, p['a_plus'], p['a_minus'], p['tau_plus'], p['tau_minus']) for dt in range(-40, 41)] fig = plt.figure() ...
23.923077
98
0.659164
c65003cb4197738637bfe8916caa999a8a31d935
27,391
py
Python
monitor/generate.py
towoe/riscv-formal
747798341adba10ecbcbcfbdc3207838966de7f7
[ "0BSD" ]
1
2021-11-08T19:37:38.000Z
2021-11-08T19:37:38.000Z
monitor/generate.py
towoe/riscv-formal
747798341adba10ecbcbcfbdc3207838966de7f7
[ "0BSD" ]
null
null
null
monitor/generate.py
towoe/riscv-formal
747798341adba10ecbcbcfbdc3207838966de7f7
[ "0BSD" ]
null
null
null
#!/usr/bin/env python3 import getopt, sys from math import log2, ceil isa = "rv32i" prefix = None channels = 1 robdepth = 256 xlen = None ilen = None aligned = False compressed = False ignore_mem = False use_assert = False quiet_mode = False verbose_mode = False noregscheck = False nopccheck = False def usage(): ...
40.399705
174
0.551093
e563104618de10f02c386203d2e0d456f8bd5d87
32,490
py
Python
edb/pgsql/compiler/dml.py
jankeromnes/edgedb
40ea3317fe5bfec76d7b46f7b706a4cb8a0d9f94
[ "Apache-2.0" ]
null
null
null
edb/pgsql/compiler/dml.py
jankeromnes/edgedb
40ea3317fe5bfec76d7b46f7b706a4cb8a0d9f94
[ "Apache-2.0" ]
null
null
null
edb/pgsql/compiler/dml.py
jankeromnes/edgedb
40ea3317fe5bfec76d7b46f7b706a4cb8a0d9f94
[ "Apache-2.0" ]
null
null
null
# # This source file is part of the EdgeDB open source project. # # Copyright 2008-present MagicStack Inc. and the EdgeDB authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http...
34.453871
78
0.625146
d297ae52fe7e8754e4ceac91d1712562296420d8
505
py
Python
workflow/scripts/convert_imcfolder.py
ndamond/ImcSegmentationSnakemake
ac003e25f28d162cb8df977c03bb631b9cb6cea5
[ "MIT" ]
null
null
null
workflow/scripts/convert_imcfolder.py
ndamond/ImcSegmentationSnakemake
ac003e25f28d162cb8df977c03bb631b9cb6cea5
[ "MIT" ]
null
null
null
workflow/scripts/convert_imcfolder.py
ndamond/ImcSegmentationSnakemake
ac003e25f28d162cb8df977c03bb631b9cb6cea5
[ "MIT" ]
null
null
null
from imctools.converters import mcdfolder2imcfolder import pathlib import traceback if __name__ == '__main__': fn_zip = snakemake.input.fn_zip fol_ome = snakemake.params.fol_ome try: mcdfolder2imcfolder.mcdfolder_to_imcfolder( str(fn_zip), output_folder=str(fol_ome), create_zip...
29.705882
83
0.679208
f68684a9fcb72ec27277f505aebdd2408d6041eb
6,213
py
Python
graphql/core/utils/build_ast_schema.py
mixcloud/graphql-core
f7629d925d7049556a33328fa84eae9e95c2b819
[ "MIT" ]
null
null
null
graphql/core/utils/build_ast_schema.py
mixcloud/graphql-core
f7629d925d7049556a33328fa84eae9e95c2b819
[ "MIT" ]
null
null
null
graphql/core/utils/build_ast_schema.py
mixcloud/graphql-core
f7629d925d7049556a33328fa84eae9e95c2b819
[ "MIT" ]
1
2019-11-02T03:06:29.000Z
2019-11-02T03:06:29.000Z
from collections import OrderedDict from ..language import ast from ..type import (GraphQLArgument, GraphQLBoolean, GraphQLEnumType, GraphQLEnumValue, GraphQLField, GraphQLFloat, GraphQLID, GraphQLInputObjectField, GraphQLInputObjectType, GraphQLInt, GraphQLI...
35.913295
111
0.679865
421a5890cb7d4ce8b1e8882d39df5bb8a7302546
20,420
py
Python
src/cogent3/evolve/parameter_controller.py
GavinHuttley/c3test
c5bf7f8252b4f7b75a851e28275536a8c378897a
[ "BSD-3-Clause" ]
null
null
null
src/cogent3/evolve/parameter_controller.py
GavinHuttley/c3test
c5bf7f8252b4f7b75a851e28275536a8c378897a
[ "BSD-3-Clause" ]
null
null
null
src/cogent3/evolve/parameter_controller.py
GavinHuttley/c3test
c5bf7f8252b4f7b75a851e28275536a8c378897a
[ "BSD-3-Clause" ]
1
2020-05-04T02:44:00.000Z
2020-05-04T02:44:00.000Z
#!/usr/bin/env python """ This file defines a class for controlling the scope and heterogeneity of parameters involved in a maximum-likelihood based tree analysis. """ import pickle import warnings import numpy from cogent3.align import dp_calculation from cogent3.align.pairwise import AlignableSeq from cogent3.cor...
34.787053
88
0.574486
189c0aa45cb0c3269500012d43ef1a9a29927860
2,094
py
Python
scripts/play2.py
AlexS28/SABER
91f74319a41f473b8e8f9eff6b7d9b604b94c7da
[ "BSD-3-Clause" ]
4
2021-10-06T11:06:53.000Z
2022-03-13T22:00:18.000Z
scripts/play2.py
AlexS28/SABER
91f74319a41f473b8e8f9eff6b7d9b604b94c7da
[ "BSD-3-Clause" ]
null
null
null
scripts/play2.py
AlexS28/SABER
91f74319a41f473b8e8f9eff6b7d9b604b94c7da
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python from sabr_pkg.MPC_ugv_Simple import * import time import os """ Dataset 1: world_dist_testUGV: [9, 10, 0], [0, 10, 0], [0, -10, 0], [-9,-9, 0] Dataset 2: world_feature_rich: [8,0,0], [7, 8, 0], [-1,6,0], [-7, 4, 0], [-7, 0, 0], [1,-4,0], [6,-4,0], [0,0,0] Dataset 3/4: world_cube/cylinderUGV: [6,...
32.71875
122
0.602197
23c8607d0510d1122ac7a3eedecf1c3e6f7e926a
1,580
py
Python
salt/runners/doc.py
Noah-Huppert/salt
998c382f5f2c3b4cbf7d96aa6913ada6993909b3
[ "Apache-2.0" ]
19
2016-01-29T14:37:52.000Z
2022-03-30T18:08:01.000Z
salt/runners/doc.py
Noah-Huppert/salt
998c382f5f2c3b4cbf7d96aa6913ada6993909b3
[ "Apache-2.0" ]
223
2016-03-02T16:39:41.000Z
2022-03-03T12:26:35.000Z
salt/runners/doc.py
Noah-Huppert/salt
998c382f5f2c3b4cbf7d96aa6913ada6993909b3
[ "Apache-2.0" ]
64
2016-02-04T19:45:26.000Z
2021-12-15T02:02:31.000Z
# -*- coding: utf-8 -*- """ A runner module to collect and display the inline documentation from the various module types """ # Import Python libs from __future__ import absolute_import, print_function, unicode_literals import itertools # Import salt libs import salt.client import salt.runner import salt.wheel from s...
19.036145
80
0.642405
cff46cd91f6d243aee7dac4c428af277a1174ed7
2,632
py
Python
examples/mnist_cnn.py
kuantkid/keras
0b1a1e9761e3283fd5f2f01023dce1d930d75dbc
[ "MIT" ]
null
null
null
examples/mnist_cnn.py
kuantkid/keras
0b1a1e9761e3283fd5f2f01023dce1d930d75dbc
[ "MIT" ]
null
null
null
examples/mnist_cnn.py
kuantkid/keras
0b1a1e9761e3283fd5f2f01023dce1d930d75dbc
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import print_function import numpy as np np.random.seed(1337) # for reproducibility from keras.datasets import mnist from keras.models import Sequential from keras.layers.core import Dense, Dropout, Activation, Flatten from keras.layers.convolutional import Convo...
34.181818
134
0.763298
f98f16c64f9a08bd83d892d07664ddbc58ccf070
3,441
py
Python
km3pipe/io/clb.py
KM3NeT/km3pipe
e27df0ceea02bcb26d128494a4e1d6a55e2f2e54
[ "MIT" ]
1
2021-01-26T01:57:56.000Z
2021-01-26T01:57:56.000Z
km3pipe/io/clb.py
KM3NeT/km3pipe
e27df0ceea02bcb26d128494a4e1d6a55e2f2e54
[ "MIT" ]
null
null
null
km3pipe/io/clb.py
KM3NeT/km3pipe
e27df0ceea02bcb26d128494a4e1d6a55e2f2e54
[ "MIT" ]
null
null
null
# Filename: clb.py """ Pumps for the CLB data formats. """ import struct from struct import unpack import numpy as np from thepipe import Blob, Module from km3pipe.dataclasses import Table from km3pipe.sys import ignored __author__ = "Tamas Gal" __copyright__ = "Copyright 2016, Tamas Gal and the KM3NeT collaborati...
27.75
84
0.577158
9abcb0474d73183f5f9e5b3084497960a5233dbd
1,019
py
Python
ospy/urls.py
teodoryantcheff/OSPy
07f44e262383054b276e34d7fc16b3cc10a6d9cf
[ "CC-BY-3.0" ]
1
2018-07-10T18:33:53.000Z
2018-07-10T18:33:53.000Z
ospy/urls.py
teodoryantcheff/OSPy
07f44e262383054b276e34d7fc16b3cc10a6d9cf
[ "CC-BY-3.0" ]
null
null
null
ospy/urls.py
teodoryantcheff/OSPy
07f44e262383054b276e34d7fc16b3cc10a6d9cf
[ "CC-BY-3.0" ]
null
null
null
# !/usr/bin/env python # -*- coding: utf-8 -*- # urls is used by web.py. When a GET request is received, the corresponding class is executed. import api import plugins urls = [ '/login', 'ospy.webpages.login_page', '/logout', 'ospy.webpages.logout_page', '/', 'ospy.webpages.home_page', '/action', '...
29.114286
94
0.662414
9148ed0b839fa85b1f1e8c83943eb3bf5ded74be
875
bzl
Python
tools/qt_toolchain.bzl
HarryLong/bazel_rules_qt
57d8edea1e700cb7f3c5897ad95fe247327c1621
[ "Apache-2.0" ]
null
null
null
tools/qt_toolchain.bzl
HarryLong/bazel_rules_qt
57d8edea1e700cb7f3c5897ad95fe247327c1621
[ "Apache-2.0" ]
1
2022-02-19T17:25:20.000Z
2022-02-19T17:25:20.000Z
tools/qt_toolchain.bzl
HarryLong/bazel_rules_qt
57d8edea1e700cb7f3c5897ad95fe247327c1621
[ "Apache-2.0" ]
null
null
null
QtToolchainInfo = provider( doc = "Information about how to invoke qt tools.", fields = ["rcc_path", "uic_path", "moc_path"], ) def _qt_toolchain_impl(ctx): toolchain_info = platform_common.ToolchainInfo( qtinfo = QtToolchainInfo( rcc_path = ctx.attr.rcc_path, uic_path = ctx...
28.225806
65
0.648
291c5c07c098497b27178e8b6bbf91176f0e00a2
9,931
py
Python
src/main/scripts/rna_expression_fastq.py
MysterionRise/fonda
f481ce42f7d037342d08aa864093ae4586d58e8d
[ "Apache-2.0" ]
3
2020-04-12T19:28:40.000Z
2021-04-16T11:17:32.000Z
src/main/scripts/rna_expression_fastq.py
MysterionRise/fonda
f481ce42f7d037342d08aa864093ae4586d58e8d
[ "Apache-2.0" ]
67
2020-04-16T16:34:40.000Z
2021-11-15T14:26:17.000Z
src/main/scripts/rna_expression_fastq.py
MysterionRise/fonda
f481ce42f7d037342d08aa864093ae4586d58e8d
[ "Apache-2.0" ]
2
2020-11-03T19:28:30.000Z
2021-11-15T14:33:38.000Z
# Copyright 2017-2021 Sanofi and EPAM Systems, Inc. (https://www.epam.com/) # # 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 requir...
49.655
124
0.558755
434c3aae3d5690fa3f702d5668dca5a16066e63e
862
py
Python
calliope_app/taskmeta/models.py
NREL/engage
c25bacc1e98f84671ba0c0e53fc98bace090a4d8
[ "BSD-3-Clause" ]
3
2021-01-25T18:13:00.000Z
2021-04-30T12:17:42.000Z
calliope_app/taskmeta/models.py
NREL/engage
c25bacc1e98f84671ba0c0e53fc98bace090a4d8
[ "BSD-3-Clause" ]
8
2020-12-11T22:28:17.000Z
2022-03-05T02:08:27.000Z
calliope_app/taskmeta/models.py
NREL/engage
c25bacc1e98f84671ba0c0e53fc98bace090a4d8
[ "BSD-3-Clause" ]
1
2021-09-15T22:15:12.000Z
2021-09-15T22:15:12.000Z
from django.db import models from django.contrib.postgres import fields from celery import states CELERY_TASK_STATE_CHOICES = sorted(zip(states.ALL_STATES, states.ALL_STATES)) class CeleryTask(models.Model): """ Celery Task Class """ class Meta: db_table = "celery_task" verbose_name_p...
34.48
103
0.729698
b292ee7ad01c3a748a99cd200caaffdaf628d205
5,035
py
Python
src/models.py
aaronzlim/coda
e2bffe5034ff710ce1f2c65404cb58bbdc88d71c
[ "MIT" ]
null
null
null
src/models.py
aaronzlim/coda
e2bffe5034ff710ce1f2c65404cb58bbdc88d71c
[ "MIT" ]
null
null
null
src/models.py
aaronzlim/coda
e2bffe5034ff710ce1f2c65404cb58bbdc88d71c
[ "MIT" ]
null
null
null
# TODO: Module docstring import csv from dataclasses import dataclass from datetime import datetime, time, timedelta, timezone from enum import IntEnum from math import modf, floor from pathlib import Path import pytz import xml.etree.ElementTree as ET # CONSTANTS # GPX_TIME_FORMAT = '%Y-%m-%dT%H:%M:%SZ' GPX_TIMEZON...
33.791946
142
0.594836
f99f280d573b12a81f8f3402af64b0a839e311f6
31,497
py
Python
tests/test_integration.py
wikar/neural_prophet
bf1da13980f418f8465faf4b938ee9f6b3caab6b
[ "MIT" ]
null
null
null
tests/test_integration.py
wikar/neural_prophet
bf1da13980f418f8465faf4b938ee9f6b3caab6b
[ "MIT" ]
null
null
null
tests/test_integration.py
wikar/neural_prophet
bf1da13980f418f8465faf4b938ee9f6b3caab6b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # import pytest import os import pathlib import pandas as pd import numpy as np import matplotlib.pyplot as plt import logging import math import torch from neuralprophet import NeuralProphet, set_random_seed from neuralprophet import df_utils log = logging.getLogger("NP.test") log.setLevel("W...
35.710884
118
0.613297
a1380901c2965109a8b6a39e3c4e06ebf52c5964
1,724
py
Python
thedigger/pipelines.py
bolaum/thedigger
a62d6505c9912e5a18a2310f9247b9d80095c433
[ "MIT" ]
5
2017-06-09T18:38:02.000Z
2020-10-29T13:35:50.000Z
thedigger/pipelines.py
bolaum/thedigger
a62d6505c9912e5a18a2310f9247b9d80095c433
[ "MIT" ]
null
null
null
thedigger/pipelines.py
bolaum/thedigger
a62d6505c9912e5a18a2310f9247b9d80095c433
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html import os from scrapy.exporters import JsonItemExporter from scrapy.exceptions import DropItem class JsonWriterPipeline(object...
29.724138
92
0.559745
91d1fe87a90f919fce5d31859492df2243a1390f
8,147
py
Python
translation/tests/test_content_translation_import.py
pg-irc/pathways-backend
05a8c4e750523d2d081b030a248c5444d1ed7992
[ "BSD-3-Clause" ]
12
2017-08-30T18:21:00.000Z
2021-12-09T04:04:17.000Z
translation/tests/test_content_translation_import.py
pg-irc/pathways-backend
05a8c4e750523d2d081b030a248c5444d1ed7992
[ "BSD-3-Clause" ]
424
2017-08-08T18:32:14.000Z
2022-03-30T21:42:51.000Z
translation/tests/test_content_translation_import.py
pg-irc/pathways-backend
05a8c4e750523d2d081b030a248c5444d1ed7992
[ "BSD-3-Clause" ]
7
2017-09-29T21:14:37.000Z
2019-12-30T21:07:37.000Z
from django.core.management import CommandError, call_command from django.test import TestCase from human_services.organizations.tests.helpers import OrganizationBuilder from translation.tests.helpers import add_base_translation, add_translation from tempfile import NamedTemporaryFile, TemporaryDirectory import io imp...
40.735
140
0.686019
ab9bbc2d7d6ffbbf77f8b72dfe8a9d0641b2eda7
2,436
py
Python
cryptodataaccess/Repository.py
athanikos/cryptodataaccess
6189a44c65a9b03c02822a534e865740ab488809
[ "MIT" ]
null
null
null
cryptodataaccess/Repository.py
athanikos/cryptodataaccess
6189a44c65a9b03c02822a534e865740ab488809
[ "MIT" ]
null
null
null
cryptodataaccess/Repository.py
athanikos/cryptodataaccess
6189a44c65a9b03c02822a534e865740ab488809
[ "MIT" ]
null
null
null
from cryptomodel.operations import OPERATIONS MEMORY_HANDLED_ATTRIBUTE_NAME = "memory_handled" class Repository: def __init__(self): self.memories = {} def commit(self): for key, mem in self.memories.items(): self.remove_handled_items(mem.items) for item in mem.item...
38.666667
111
0.559934
111cf3c48ca49bbc689c2683e44c8619b2aac1d5
3,608
py
Python
baselutils/mykgutils.py
basels/mykgutils
8dc4cdc295fb53f1b16b9485929bffd8fef42fc2
[ "MIT" ]
null
null
null
baselutils/mykgutils.py
basels/mykgutils
8dc4cdc295fb53f1b16b9485929bffd8fef42fc2
[ "MIT" ]
null
null
null
baselutils/mykgutils.py
basels/mykgutils
8dc4cdc295fb53f1b16b9485929bffd8fef42fc2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from datetime import timedelta from os import listdir from regex import sub as rx_sub from requests import get from subprocess import check_output from sys import stdout from time import time from hashlib import md5 CC_RED = 91 CC_GREEN = 92 CC_YELLOW = 93 CC_LIGHTBLUE = 94 CC_PURPLE = 35 CC_C...
32.214286
100
0.601996
fdcddf7b562fdd41f2f16db06f5406a4615960d7
2,669
py
Python
var/spack/repos/builtin/packages/pkgconf/package.py
klevzoff/spack
396936d24173254ecf4148bc460702185e4c99e5
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
1
2020-10-08T06:16:50.000Z
2020-10-08T06:16:50.000Z
var/spack/repos/builtin/packages/pkgconf/package.py
klevzoff/spack
396936d24173254ecf4148bc460702185e4c99e5
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
17
2019-03-21T15:54:00.000Z
2022-03-29T19:34:28.000Z
var/spack/repos/builtin/packages/pkgconf/package.py
klevzoff/spack
396936d24173254ecf4148bc460702185e4c99e5
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2021-04-07T18:27:09.000Z
2022-03-31T22:52:38.000Z
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Pkgconf(AutotoolsPackage): """pkgconf is a program which helps to configure compiler and l...
41.061538
96
0.719745
c1066c60df9be16865775d43d3221b254b75f68d
28,523
py
Python
__init__.py
senjacob/retopoflow
7817bb7d68f98e5ae2c7835f28eeafe76367789e
[ "OML" ]
null
null
null
__init__.py
senjacob/retopoflow
7817bb7d68f98e5ae2c7835f28eeafe76367789e
[ "OML" ]
null
null
null
__init__.py
senjacob/retopoflow
7817bb7d68f98e5ae2c7835f28eeafe76367789e
[ "OML" ]
null
null
null
''' Copyright (C) 2021 CG Cookie http://cgcookie.com hello@cgcookie.com Created by Jonathan Denning, Jonathan Williamson, and Patrick Moore This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation...
43.546565
173
0.64001
98747070b6e14e88ec1fc3ed2000741ffc28fd58
16,445
py
Python
siphon/tests/test_catalog.py
DanielWatkins/siphon
4c6740c2f8030ec1a23cafd8b8b9713dcd382cb2
[ "BSD-3-Clause" ]
164
2015-05-25T22:28:38.000Z
2022-02-07T11:09:16.000Z
siphon/tests/test_catalog.py
DanielWatkins/siphon
4c6740c2f8030ec1a23cafd8b8b9713dcd382cb2
[ "BSD-3-Clause" ]
369
2015-05-20T17:03:38.000Z
2022-03-24T15:29:59.000Z
siphon/tests/test_catalog.py
DanielWatkins/siphon
4c6740c2f8030ec1a23cafd8b8b9713dcd382cb2
[ "BSD-3-Clause" ]
79
2015-05-15T19:31:34.000Z
2021-06-27T20:34:38.000Z
# Copyright (c) 2013-2019 Siphon Contributors. # Distributed under the terms of the BSD 3-Clause License. # SPDX-License-Identifier: BSD-3-Clause """Test the catalog access API.""" from datetime import datetime import logging import pytest from siphon.catalog import get_latest_access_url, TDSCatalog from siphon.test...
41.1125
95
0.674916
afe409a3fc7f083d0f7c8c84519e628830c0f03d
2,034
py
Python
examples/dfp/v201802/content_metadata_key_hierarchy_service/get_all_content_metadata_key_hierarchies.py
stelaxi/googleads-python-lib
7830f303a63217e7c7190f9b085bce9c4f677727
[ "Apache-2.0" ]
1
2018-06-25T18:44:30.000Z
2018-06-25T18:44:30.000Z
examples/dfp/v201802/content_metadata_key_hierarchy_service/get_all_content_metadata_key_hierarchies.py
stelaxi/googleads-python-lib
7830f303a63217e7c7190f9b085bce9c4f677727
[ "Apache-2.0" ]
null
null
null
examples/dfp/v201802/content_metadata_key_hierarchy_service/get_all_content_metadata_key_hierarchies.py
stelaxi/googleads-python-lib
7830f303a63217e7c7190f9b085bce9c4f677727
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright 2016 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
36.321429
78
0.72763
1f33fcd041a388012db33d6093e8a5b7b53228ce
9,198
py
Python
troposphere/environment.py
wimpy/environment
4af25db10213e461e4697abbe24dbb40cde18664
[ "MIT" ]
2
2017-05-25T06:43:16.000Z
2017-11-02T08:49:30.000Z
troposphere/environment.py
wimpy/environment
4af25db10213e461e4697abbe24dbb40cde18664
[ "MIT" ]
3
2017-05-08T15:41:28.000Z
2017-05-12T10:14:53.000Z
troposphere/environment.py
wimpy/environment
4af25db10213e461e4697abbe24dbb40cde18664
[ "MIT" ]
1
2017-06-26T10:07:53.000Z
2017-06-26T10:07:53.000Z
import sys from troposphere import Join, Output from troposphere import Ref, Tags, Template from troposphere.ec2 import InternetGateway from troposphere.ec2 import Route from troposphere.ec2 import RouteTable from troposphere.ec2 import Subnet from troposphere.ec2 import SubnetRouteTableAssociation from troposphere.ec2...
27.293769
101
0.657426
435978f8576293df4a54e60be8ec42bec5606cfa
2,201
py
Python
features/idfextraction/cosine_similarity.py
yy2111/iSPY
454ed4ec6a18b9e2dd3e13114b1263760054401e
[ "MIT" ]
3
2022-03-05T22:12:41.000Z
2022-03-09T08:45:53.000Z
features/idfextraction/cosine_similarity.py
yy2111/iSPY
454ed4ec6a18b9e2dd3e13114b1263760054401e
[ "MIT" ]
null
null
null
features/idfextraction/cosine_similarity.py
yy2111/iSPY
454ed4ec6a18b9e2dd3e13114b1263760054401e
[ "MIT" ]
2
2021-09-22T09:32:15.000Z
2022-03-04T02:45:09.000Z
import math from collections import Counter from features.data_helper import tokenizer from pprint import pprint from copy import deepcopy def compute_tf_idf_cosine(q1, q2, term_to_idf_dict): q1_term_count = Counter(q1) q2_term_count = Counter(q2) idf = 10.8983491402 # default value for t in q1_term_c...
33.861538
99
0.706951
65d97cae3546e56107c196f3951a655897925a5d
4,769
py
Python
classifier_utils.py
csarron/xlnet
d7b9809c40c94fd9d4512d5be74f4dde753359d3
[ "Apache-2.0" ]
null
null
null
classifier_utils.py
csarron/xlnet
d7b9809c40c94fd9d4512d5be74f4dde753359d3
[ "Apache-2.0" ]
null
null
null
classifier_utils.py
csarron/xlnet
d7b9809c40c94fd9d4512d5be74f4dde753359d3
[ "Apache-2.0" ]
null
null
null
from absl import flags from data_utils import CLS_ID from data_utils import SEP_ID from util import logger FLAGS = flags.FLAGS SEG_ID_A = 0 SEG_ID_B = 1 SEG_ID_CLS = 2 SEG_ID_SEP = 3 SEG_ID_PAD = 4 class PaddingInputExample(object): """Fake example so the num input examples is a multiple of the batch size. ...
32.889655
82
0.640176
01590ee3221e95eab12815b3fba17a6fa7f02f0b
5,928
py
Python
dash/html/Nextid.py
FutureSenzhong/dash
5647abee42ed0844441c598b8329c029d8a3c497
[ "MIT" ]
1
2021-09-06T09:46:35.000Z
2021-09-06T09:46:35.000Z
dash/html/Nextid.py
FutureSenzhong/dash
5647abee42ed0844441c598b8329c029d8a3c497
[ "MIT" ]
null
null
null
dash/html/Nextid.py
FutureSenzhong/dash
5647abee42ed0844441c598b8329c029d8a3c497
[ "MIT" ]
null
null
null
# AUTO GENERATED FILE - DO NOT EDIT from dash.development.base_component import Component, _explicitize_args class Nextid(Component): """A Nextid component. Nextid is a wrapper for the <nextid> HTML5 element. OBSOLETE: <nextid> is included for completeness, but should be avoided as it is not support...
31.870968
84
0.597503
6edf7f472ab9fad83703f0b1a7e48cc2e0a9face
763
py
Python
recipes/api/migrations/0003_auto_20210105_2149.py
veeso/recipe-website
6eb3151906ea1121adfc72de9543dcb37659b90c
[ "Unlicense" ]
null
null
null
recipes/api/migrations/0003_auto_20210105_2149.py
veeso/recipe-website
6eb3151906ea1121adfc72de9543dcb37659b90c
[ "Unlicense" ]
null
null
null
recipes/api/migrations/0003_auto_20210105_2149.py
veeso/recipe-website
6eb3151906ea1121adfc72de9543dcb37659b90c
[ "Unlicense" ]
null
null
null
# Generated by Django 3.1.5 on 2021-01-05 21:49 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('api', '0002_auto_20210105_1622'), ] operations = [ migrations.AlterField( model_name='recipeing...
30.52
139
0.652687
fef247bf91cccede94202fc27ba08f8ce641f40c
1,604
py
Python
dolo/compiler/objects.py
Filhagosa/dolo
384a7b144f925e4edf149abf9828b16e1a0f8798
[ "BSD-2-Clause" ]
null
null
null
dolo/compiler/objects.py
Filhagosa/dolo
384a7b144f925e4edf149abf9828b16e1a0f8798
[ "BSD-2-Clause" ]
null
null
null
dolo/compiler/objects.py
Filhagosa/dolo
384a7b144f925e4edf149abf9828b16e1a0f8798
[ "BSD-2-Clause" ]
null
null
null
from dolo.numeric.processes_iid import * # from dataclasses import dataclass from dolo.compiler.language import language_element # not sure we'll keep that import numpy as np from typing import List, Union Scalar = Union[int, float] # not really a language element though # @language_element class Domain(dict): de...
19.560976
68
0.645885
41e4875c8f92ef709b63447bd3096b4ac65173b2
263
py
Python
amino/tc/tap.py
tek/amino
51b314933e047a45587a24ecff02c836706d27ff
[ "MIT" ]
33
2016-12-21T07:05:46.000Z
2020-04-29T04:26:46.000Z
amino/tc/tap.py
tek/amino
51b314933e047a45587a24ecff02c836706d27ff
[ "MIT" ]
1
2019-04-19T17:15:52.000Z
2019-04-20T18:28:23.000Z
amino/tc/tap.py
tek/amino
51b314933e047a45587a24ecff02c836706d27ff
[ "MIT" ]
4
2017-09-04T18:46:23.000Z
2021-11-02T04:18:13.000Z
from typing import TypeVar, Generic, Callable, Any from amino.tc.base import TypeClass A = TypeVar('A') B = TypeVar('B') class Tap(Generic[A], TypeClass): def tap(self, a: A, f: Callable[[A], Any]) -> A: f(a) return a __all__ = ('Tap',)
16.4375
52
0.604563
64a3e06ebbd5df1023108e1ac2127bb2b50797f7
13,718
py
Python
packages/python/plotly/plotly/validators/_scattermapbox.py
TitouenDCL/plotly.py
0c98391f575dab0e3f08ede907045cc72b3d40a4
[ "MIT" ]
11,750
2015-10-12T07:03:39.000Z
2022-03-31T20:43:15.000Z
packages/python/plotly/plotly/validators/_scattermapbox.py
TitouenDCL/plotly.py
0c98391f575dab0e3f08ede907045cc72b3d40a4
[ "MIT" ]
2,951
2015-10-12T00:41:25.000Z
2022-03-31T22:19:26.000Z
packages/python/plotly/plotly/validators/_scattermapbox.py
TitouenDCL/plotly.py
0c98391f575dab0e3f08ede907045cc72b3d40a4
[ "MIT" ]
2,623
2015-10-15T14:40:27.000Z
2022-03-28T16:05:50.000Z
import _plotly_utils.basevalidators class ScattermapboxValidator(_plotly_utils.basevalidators.CompoundValidator): def __init__(self, plotly_name="scattermapbox", parent_name="", **kwargs): super(ScattermapboxValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_nam...
48.818505
78
0.546508
896d358940cdc62763ab86e56652bcb68099417d
3,058
py
Python
utils.py
katiekeel/macprefs
1d8e7cd3ebf2be43db34bd2cb9daec62a7ade321
[ "MIT" ]
null
null
null
utils.py
katiekeel/macprefs
1d8e7cd3ebf2be43db34bd2cb9daec62a7ade321
[ "MIT" ]
null
null
null
utils.py
katiekeel/macprefs
1d8e7cd3ebf2be43db34bd2cb9daec62a7ade321
[ "MIT" ]
null
null
null
from subprocess import CalledProcessError, check_output, STDOUT import logging as log def execute_shell(command, is_shell=False, cwd='.', suppress_errors=False): output = '' log.debug('\n--- executing shell command ----\n') log.debug('setting working dir to: ' + cwd) log.debug('command: ' + str(comman...
28.849057
75
0.637999
478dd4f5e5f1373c1cfb841521a80ccf2972e2d4
993
py
Python
examples/imagenet_featadvs/model.py
luvrpg/cleverhans
1f2ee7a04cff1ec54c96dcba5294f6e2d7780d42
[ "MIT" ]
3
2019-07-10T14:34:45.000Z
2022-01-28T17:23:39.000Z
examples/imagenet_featadvs/model.py
luvrpg/cleverhans
1f2ee7a04cff1ec54c96dcba5294f6e2d7780d42
[ "MIT" ]
null
null
null
examples/imagenet_featadvs/model.py
luvrpg/cleverhans
1f2ee7a04cff1ec54c96dcba5294f6e2d7780d42
[ "MIT" ]
2
2020-02-16T05:09:59.000Z
2020-12-13T20:19:20.000Z
from cleverhans_tutorials.tutorial_models import Conv2D from cleverhans_tutorials.tutorial_models import ReLU from cleverhans_tutorials.tutorial_models import Flatten from cleverhans_tutorials.tutorial_models import Linear from cleverhans_tutorials.tutorial_models import Softmax from cleverhans_tutorials.tutorial_model...
33.1
56
0.551863
d4d4f477d1ff7372087a5458cb1f385930139403
12,926
py
Python
excelexporters/virtualmetercost.py
823914102/myems-api
4684aa71266a4f7ec93f7a9ebc08cbccd2e9bca3
[ "MIT" ]
null
null
null
excelexporters/virtualmetercost.py
823914102/myems-api
4684aa71266a4f7ec93f7a9ebc08cbccd2e9bca3
[ "MIT" ]
null
null
null
excelexporters/virtualmetercost.py
823914102/myems-api
4684aa71266a4f7ec93f7a9ebc08cbccd2e9bca3
[ "MIT" ]
null
null
null
import base64 import uuid import os from openpyxl.chart import ( BarChart, Reference, Series ) from openpyxl.styles import PatternFill, Border, Side, Alignment, Font from openpyxl.drawing.image import Image from openpyxl import Workbook from openpyxl.chart.label import DataLabelList ######################...
37.358382
120
0.509361
5840b6f8e69a7694e3da89212a9de2f27c0abc59
1,716
py
Python
demo_nodes_py/setup.py
ori155/demos
965036fe043fc1443de01e40b10317e84b5d7c93
[ "Apache-2.0" ]
null
null
null
demo_nodes_py/setup.py
ori155/demos
965036fe043fc1443de01e40b10317e84b5d7c93
[ "Apache-2.0" ]
null
null
null
demo_nodes_py/setup.py
ori155/demos
965036fe043fc1443de01e40b10317e84b5d7c93
[ "Apache-2.0" ]
null
null
null
from setuptools import find_packages from setuptools import setup package_name = 'demo_nodes_py' setup( name=package_name, version='0.17.0', packages=find_packages(exclude=['test']), data_files=[ ('share/ament_index/resource_index/packages', ['resource/' + package_name]), (...
36.510638
96
0.660839
655c493a534cea5fcabcf1de561e70bf5b982932
2,805
py
Python
utils/scenes/Rubik_Cube_Scene.py
huky643/manim_sandbox
397c8857145f371aeeca611e5e65c60083758d0c
[ "MIT" ]
2
2021-02-27T04:30:08.000Z
2021-10-06T06:06:32.000Z
utils/scenes/Rubik_Cube_Scene.py
huky643/manim_sandbox
397c8857145f371aeeca611e5e65c60083758d0c
[ "MIT" ]
null
null
null
utils/scenes/Rubik_Cube_Scene.py
huky643/manim_sandbox
397c8857145f371aeeca611e5e65c60083758d0c
[ "MIT" ]
1
2021-02-27T04:30:09.000Z
2021-02-27T04:30:09.000Z
# from @cigar666 from manimlib.imports import * from manim_sandbox.utils.mobjects.Rubik_Cube import * class Rubik_Scene(ThreeDScene): CONFIG = { 'order': 3, 'size': 4.2, 'camera_init': { 'phi': 52.5 * DEGREES, 'gamma': 0, 'theta': -45 * DEGREES, ...
31.516854
135
0.565062
8274d69510ba27664ff489bbcd5e429cb2e23e7d
1,244
py
Python
utils/aggregate_results.py
canary-for-cognition/multimodal-dl-framework
54ebd3c6dcdfc48ed619316321d9f0e7a5f0fc9c
[ "MIT" ]
2
2021-08-31T08:58:30.000Z
2021-09-02T14:32:30.000Z
utils/aggregate_results.py
canary-for-cognition/multimodal-nn-framework
7733376b05840e2b3dead438dd3981db9694b6ae
[ "MIT" ]
5
2020-09-22T04:29:25.000Z
2020-12-20T16:16:47.000Z
utils/aggregate_results.py
canary-for-cognition/multimodal-nn-framework
7733376b05840e2b3dead438dd3981db9694b6ae
[ "MIT" ]
1
2021-02-09T18:40:55.000Z
2021-02-09T18:40:55.000Z
import json import os import pandas as pd def main(): target_experiment = "5_iterations_10_folds_vtnet_blank_heatmaps_base_1" path_to_experiment = os.path.join("results_postprocessing", "..", "classifier", "experiments", "highlights", target_experiment) path_to_aggre...
41.466667
112
0.673633
70554f5a49e4b25ef8fa275fbc08dbff140ea49d
3,509
py
Python
src/reloadex/reloader.py
iljau/reloadex
829b173e65408a54acca36caefbfcfa5f645d8b1
[ "MIT" ]
1
2019-10-08T04:22:41.000Z
2019-10-08T04:22:41.000Z
src/reloadex/reloader.py
iljau/reloadex
829b173e65408a54acca36caefbfcfa5f645d8b1
[ "MIT" ]
null
null
null
src/reloadex/reloader.py
iljau/reloadex
829b173e65408a54acca36caefbfcfa5f645d8b1
[ "MIT" ]
null
null
null
import argparse import os import sys from pathspec import PathSpec from reloadex.common.utils_reloader import LaunchParams DEFAULT_RELOADIGNORE = """ # Ignore everything .. * */ # .. except *.py files !*.py """ class Reloader: def __init__(self, platform_reloader, working_directory, argparse_args): se...
31.330357
126
0.676261
b806a1f2c5f4419a5a953a46e8051af5a67db282
2,452
py
Python
litebot/utils/logging.py
rybot666/LiteBot
9598c021a59ee7983a1515c54a6cbc43bfcb5eb9
[ "MIT" ]
22
2020-10-18T22:36:51.000Z
2022-03-27T07:49:25.000Z
litebot/utils/logging.py
rybot666/LiteBot
9598c021a59ee7983a1515c54a6cbc43bfcb5eb9
[ "MIT" ]
8
2021-07-14T06:46:47.000Z
2021-08-17T06:09:52.000Z
litebot/utils/logging.py
rybot666/LiteBot
9598c021a59ee7983a1515c54a6cbc43bfcb5eb9
[ "MIT" ]
7
2021-05-04T16:56:19.000Z
2021-10-12T05:44:31.000Z
import logging import os import datetime from datetime import datetime LOG_DIR_NAME = "logs" LOG_FORMAT = "%(asctime)s [%(threadName)s/%(levelname)s]: %(message)s" TIME_FORMAT = "%m-%d-%y %H-%M-%S" log_fmt = logging.Formatter(LOG_FORMAT) stream_handler = logging.StreamHandler() file_handler = logging.FileHandler( ...
29.902439
112
0.71615
b2606e61a7f1ffe70e31a88b33b4df3bdf386449
16,525
py
Python
saraki/auth.py
lucmichalski/saraki
74c11f70b4e7bdedfd33984cb96944c27a4eebbf
[ "MIT" ]
3
2020-07-01T17:34:39.000Z
2021-05-04T17:53:01.000Z
saraki/auth.py
lucmichalski/saraki
74c11f70b4e7bdedfd33984cb96944c27a4eebbf
[ "MIT" ]
25
2018-01-25T00:56:18.000Z
2021-06-12T04:29:00.000Z
saraki/auth.py
lucmichalski/saraki
74c11f70b4e7bdedfd33984cb96944c27a4eebbf
[ "MIT" ]
4
2020-04-19T21:24:34.000Z
2021-01-23T19:04:27.000Z
""" saraki.auth ~~~~~~~~~~~ """ import jwt from functools import wraps from datetime import datetime from cerberus import Validator from flask import request, current_app, jsonify, abort, _request_ctx_stack from werkzeug.routing import BaseConverter from werkzeug.local import LocalProxy from .utility import ...
26.826299
88
0.650408
8fb0f64e095d6bdb137693fee202fbe734d92e26
2,510
py
Python
django/utils/timesince.py
pomarec/django
98514849dce07acfaa224a90a784bba9d97249e5
[ "BSD-3-Clause" ]
285
2019-12-23T09:50:21.000Z
2021-12-08T09:08:49.000Z
django/utils/timesince.py
pomarec/django
98514849dce07acfaa224a90a784bba9d97249e5
[ "BSD-3-Clause" ]
18
2015-01-14T07:51:48.000Z
2021-10-14T01:19:26.000Z
django/utils/timesince.py
pomarec/django
98514849dce07acfaa224a90a784bba9d97249e5
[ "BSD-3-Clause" ]
70
2015-01-01T00:33:24.000Z
2021-12-10T03:43:07.000Z
from __future__ import unicode_literals import datetime from django.utils.html import avoid_wrapping from django.utils.timezone import is_aware, utc from django.utils.translation import ugettext, ungettext_lazy def timesince(d, now=None, reversed=False): """ Takes two datetime objects and returns the time be...
38.615385
101
0.632669
feafb417a4173159c11aa36fbafe3233df84b7cd
198
py
Python
arekit/common/news/parsed/providers/base.py
nicolay-r/AREkit
e2478fbd2041e70f906f68f62c9234a4e46b9eba
[ "MIT" ]
18
2019-12-14T18:43:11.000Z
2022-03-21T05:55:36.000Z
arekit/common/news/parsed/providers/base.py
nicolay-r/AREkit
e2478fbd2041e70f906f68f62c9234a4e46b9eba
[ "MIT" ]
284
2020-08-08T20:52:44.000Z
2022-03-31T05:26:20.000Z
arekit/common/news/parsed/providers/base.py
nicolay-r/AREkit
e2478fbd2041e70f906f68f62c9234a4e46b9eba
[ "MIT" ]
1
2021-08-07T13:17:43.000Z
2021-08-07T13:17:43.000Z
class BaseParsedNewsServiceProvider(object): @property def Name(self): raise NotImplementedError() def init_parsed_news(self, parsed_news): raise NotImplementedError()
22
44
0.712121
cf896735bbf0e0e8bff0a318bbbfc886dc5c2a79
623
py
Python
src/migrations/0001_initial.py
Stephen-Kamau/simple_blog-backend
af64132d66010b718b83ab03c45ef36df9abbda1
[ "MIT" ]
null
null
null
src/migrations/0001_initial.py
Stephen-Kamau/simple_blog-backend
af64132d66010b718b83ab03c45ef36df9abbda1
[ "MIT" ]
7
2021-03-30T14:16:11.000Z
2022-03-12T00:49:50.000Z
src/migrations/0001_initial.py
Stephen-Kamau/simple_blog-backend
af64132d66010b718b83ab03c45ef36df9abbda1
[ "MIT" ]
null
null
null
# Generated by Django 3.0.7 on 2020-07-12 20:07 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Todo', fields=[ ('id', models.AutoField(aut...
23.961538
114
0.536116
89ed57561abbb32dfb46253e450d5f934dd8706c
12,213
py
Python
Funciones/readViconCsv.py
joselvira/BiomecanicaPython
6c03f57fc103419c4b95858a35163cf658c0e29b
[ "MIT" ]
1
2021-09-10T14:32:16.000Z
2021-09-10T14:32:16.000Z
Funciones/readViconCsv.py
joselvira/BiomecanicaPython
6c03f57fc103419c4b95858a35163cf658c0e29b
[ "MIT" ]
null
null
null
Funciones/readViconCsv.py
joselvira/BiomecanicaPython
6c03f57fc103419c4b95858a35163cf658c0e29b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Jun 17 13:05:37 2019 @author: josel """ from __future__ import division, print_function """Lee archivos de datos exportados del Vicon Nexus""" import numpy as np import pandas as pd import xarray as xr #import scipy.signal __author__ = 'Jose Luis Lopez Elvir...
43.003521
194
0.634897