hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
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
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
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
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
bf1c5d7af21265d26444113979db55007a7cfb64
29
py
Python
examples/__init__.py
DannyGoodall/codefurther
b6b1dc21e39f2ede9b9ac2a6c06d5816c87a610a
[ "Apache-2.0" ]
1
2015-07-01T16:21:59.000Z
2015-07-01T16:21:59.000Z
examples/__init__.py
DannyGoodall/codefurther
b6b1dc21e39f2ede9b9ac2a6c06d5816c87a610a
[ "Apache-2.0" ]
null
null
null
examples/__init__.py
DannyGoodall/codefurther
b6b1dc21e39f2ede9b9ac2a6c06d5816c87a610a
[ "Apache-2.0" ]
null
null
null
__author__ = 'Danny Goodall'
14.5
28
0.758621
0
0
0
0
0
0
0
0
15
0.517241
bf1d0a2600c1e32dca7dd7713967984af9f10c7e
7,731
py
Python
emma/utils/visualizations.py
rpp0/emma
fab81e1c66b8a88d14e68b8878ddbb5ee6528de2
[ "MIT" ]
36
2019-01-08T12:49:36.000Z
2022-03-31T08:11:48.000Z
emma/utils/visualizations.py
rpp0/emma
fab81e1c66b8a88d14e68b8878ddbb5ee6528de2
[ "MIT" ]
6
2020-01-28T22:59:05.000Z
2022-02-10T00:14:43.000Z
emma/utils/visualizations.py
rpp0/emma
fab81e1c66b8a88d14e68b8878ddbb5ee6528de2
[ "MIT" ]
3
2019-02-12T11:55:42.000Z
2020-08-12T23:30:05.000Z
import matplotlib.pyplot as plt import os import numpy as np from datetime import datetime from matplotlib.backends.backend_pdf import PdfPages from emma.io.traceset import TraceSet from emma.utils.utils import MaxPlotsReached, EMMAException #plt.rcParams['axes.prop_cycle'] = plt.cycler(color=plt.get_cmap('flag').col...
31.555102
112
0.567844
0
0
0
0
0
0
0
0
1,577
0.203984
bf1d5622ccaea0f46f7bcbdd2505f0b5aa55642a
48
py
Python
background-function/main.py
pengelbrecht2627/functions-framework-python-vscode
3f8203856f6f2ad49c3b7ba8153c427ccfcb0a4f
[ "MIT" ]
5
2020-06-22T03:05:07.000Z
2021-03-31T15:28:35.000Z
background-function/main.py
chesedo/functions-framework-python-vscode
3f8203856f6f2ad49c3b7ba8153c427ccfcb0a4f
[ "MIT" ]
1
2020-09-07T19:38:32.000Z
2020-09-08T08:41:19.000Z
background-function/main.py
chesedo/functions-framework-python-vscode
3f8203856f6f2ad49c3b7ba8153c427ccfcb0a4f
[ "MIT" ]
3
2020-06-22T21:26:24.000Z
2020-09-30T05:11:26.000Z
def background_function(data, context): pass
24
39
0.770833
0
0
0
0
0
0
0
0
0
0
bf1eec4185206fab6a61df1d56c8c21212cdfa42
2,031
py
Python
list-manual-packages.py
qidydl/debian-package-scripts
a68f2d4c493e00761cc7d6cdc11ca1e661684741
[ "MIT" ]
null
null
null
list-manual-packages.py
qidydl/debian-package-scripts
a68f2d4c493e00761cc7d6cdc11ca1e661684741
[ "MIT" ]
null
null
null
list-manual-packages.py
qidydl/debian-package-scripts
a68f2d4c493e00761cc7d6cdc11ca1e661684741
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """List manually-installed Debian packages This script can be used to see which packages are flagged as having been installed manually. Manually-installed packages are not eligible for autoremove. Managing this flag will ensure that libraries are cleaned up when no longer needed. This script o...
28.605634
118
0.746923
0
0
0
0
0
0
0
0
1,069
0.526342
bf1f8eb5906edde2845a41d14ef448bd75014ce7
1,040
py
Python
tests/extensions/pdf/test_renderer.py
alexschiller/modular-file-renderer
43d59f2a8f4eb210fe8cb844b0a5a1a0ae057a0d
[ "Apache-2.0" ]
null
null
null
tests/extensions/pdf/test_renderer.py
alexschiller/modular-file-renderer
43d59f2a8f4eb210fe8cb844b0a5a1a0ae057a0d
[ "Apache-2.0" ]
null
null
null
tests/extensions/pdf/test_renderer.py
alexschiller/modular-file-renderer
43d59f2a8f4eb210fe8cb844b0a5a1a0ae057a0d
[ "Apache-2.0" ]
null
null
null
import pytest from mfr.core.provider import ProviderMetadata from mfr.extensions.pdf import PdfRenderer @pytest.fixture def metadata(): return ProviderMetadata('test', '.pdf', 'text/plain', '1234', 'http://wb.osf.io/file/test.pdf?token=1234') @pytest.fixture def file_path(): return '/tmp/test.pdf' @pyte...
23.111111
110
0.689423
338
0.325
0
0
575
0.552885
0
0
270
0.259615
bf2071740b73e90331bef4394f5adc4ea46bf3e5
1,847
py
Python
machine_learning/boston.py
zmaas/scratch
ee996bb6a15e3eb322a07b8637f8eb0046ec9d89
[ "MIT" ]
null
null
null
machine_learning/boston.py
zmaas/scratch
ee996bb6a15e3eb322a07b8637f8eb0046ec9d89
[ "MIT" ]
null
null
null
machine_learning/boston.py
zmaas/scratch
ee996bb6a15e3eb322a07b8637f8eb0046ec9d89
[ "MIT" ]
null
null
null
'''Boston Housing Classification''' import numpy as np from keras.datasets import boston_housing from keras import models from keras import layers (train_data, train_targets), (test_data, test_targets) = boston_housing.load_data() mean = train_data.mean(axis=0) train_data -= mean std = t...
28.859375
78
0.655658
0
0
0
0
0
0
0
0
131
0.070926
bf21626265f7f69b0e23a108e5e6c9e0e48662a4
3,094
py
Python
web/prowlbackend/users/forms.py
stensjoberg/pton-prowl
2151acbe68896495c407867e241fb459b2f626a5
[ "MIT" ]
null
null
null
web/prowlbackend/users/forms.py
stensjoberg/pton-prowl
2151acbe68896495c407867e241fb459b2f626a5
[ "MIT" ]
13
2018-06-20T15:50:12.000Z
2022-03-22T20:25:39.000Z
web/prowlbackend/users/forms.py
stensjoberg/pton-prowl
2151acbe68896495c407867e241fb459b2f626a5
[ "MIT" ]
null
null
null
from django import forms from django.contrib.admin.widgets import FilteredSelectMultiple from django.contrib.auth.forms import ReadOnlyPasswordHashField from users.models import User from core.models import Course, Group class AdminUserCreateForm(forms.ModelForm): """"A form for creating new users. Includes all th...
35.159091
115
0.653846
2,869
0.927279
0
0
0
0
0
0
849
0.274402
bf224bebc92e546b416ae65acd8df31c6d610e22
2,355
py
Python
Deploy.py
Pr0gramist/PowerBuilderDeployment
b067ca55557b88ccc39266a270dbab2f88b4e094
[ "MIT" ]
null
null
null
Deploy.py
Pr0gramist/PowerBuilderDeployment
b067ca55557b88ccc39266a270dbab2f88b4e094
[ "MIT" ]
null
null
null
Deploy.py
Pr0gramist/PowerBuilderDeployment
b067ca55557b88ccc39266a270dbab2f88b4e094
[ "MIT" ]
null
null
null
""" DEPLOY POWERBUILDER PACKAGES Author: Stivan Kitchoukov To run created file from command line: OrcaScr126 Deploy.dat """ import os import subprocess import time PackageList = ( "cf_common", "cf_account_ip", "cf_ap", "cf_ar", "cf_cga", "cf_common_trans", "cf_crt", ...
30.986842
108
0.601699
0
0
0
0
0
0
0
0
902
0.383015
bf231f29d738cf1a12e825364e3815688ca78557
4,456
py
Python
zorg/buildbot/builders/LibCXXBuilder.py
antiagainst/llvm-zorg
a5b58cdd800d0d45b1bdd1f7fe058db6acbfd918
[ "Apache-2.0" ]
1
2019-02-10T03:05:05.000Z
2019-02-10T03:05:05.000Z
zorg/buildbot/builders/LibCXXBuilder.py
antiagainst/llvm-zorg
a5b58cdd800d0d45b1bdd1f7fe058db6acbfd918
[ "Apache-2.0" ]
null
null
null
zorg/buildbot/builders/LibCXXBuilder.py
antiagainst/llvm-zorg
a5b58cdd800d0d45b1bdd1f7fe058db6acbfd918
[ "Apache-2.0" ]
null
null
null
import os import buildbot import buildbot.process.factory import buildbot.steps.shell import buildbot.steps.source as source import buildbot.steps.source.svn as svn import buildbot.process.properties as properties import zorg.buildbot.commands.LitTestCommand as lit_test_command import zorg.buildbot.util.artifacts as...
41.259259
79
0.5864
0
0
0
0
0
0
0
0
1,228
0.275583
bf23269a20352bd1e5bf1a525b6d3e5fd76ba4f9
1,760
py
Python
pydeps/rules/ruleResultChecker.py
enableiot/iotanalytics-rule-engine
8f7c0e00f3f534944af21255cf7d98fc632b08b2
[ "Apache-2.0" ]
3
2015-12-15T10:17:10.000Z
2016-01-19T15:24:51.000Z
pydeps/rules/ruleResultChecker.py
enableiot/iotanalytics-rule-engine
8f7c0e00f3f534944af21255cf7d98fc632b08b2
[ "Apache-2.0" ]
null
null
null
pydeps/rules/ruleResultChecker.py
enableiot/iotanalytics-rule-engine
8f7c0e00f3f534944af21255cf7d98fc632b08b2
[ "Apache-2.0" ]
2
2015-12-15T10:17:11.000Z
2018-11-01T12:40:49.000Z
# Copyright (c) 2015 Intel Corporation # # 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 ...
39.111111
85
0.718182
1,108
0.629545
0
0
143
0.08125
0
0
640
0.363636
bf236a0773de3a927230fe201180262fee783588
6,372
py
Python
extviews/viewset.py
BilalAlpaslan/fastapi-extviews
e3ce1c4916d86009705a09e165e5ee21a197962f
[ "MIT" ]
16
2022-01-01T16:00:58.000Z
2022-03-21T09:42:35.000Z
extviews/viewset.py
BilalAlpaslan/fastapi-extviews
e3ce1c4916d86009705a09e165e5ee21a197962f
[ "MIT" ]
null
null
null
extviews/viewset.py
BilalAlpaslan/fastapi-extviews
e3ce1c4916d86009705a09e165e5ee21a197962f
[ "MIT" ]
null
null
null
from typing import Callable, List, Sequence, Union from fastapi import APIRouter, Header from fastapi.params import Depends from pydantic import BaseModel from .crudset import BaseCrudSet __all__ = ['ViewSet', 'CrudViewSet'] supported_methods_names: List[str] = [ 'list', 'retrieve', 'create', 'update', 'partial_...
37.704142
101
0.608443
6,026
0.9457
0
0
327
0.051318
984
0.154426
1,132
0.177652
bf24664ff4f061ae7a934264b0579dd203c773d6
6,456
py
Python
wouldyouci_database/recommendation/contents_based_filtering.py
jhee514/wouldYouCi
54793401fb51356587e5a4460eb606ed9943b30c
[ "MIT" ]
1
2020-06-18T08:40:47.000Z
2020-06-18T08:40:47.000Z
wouldyouci_database/recommendation/contents_based_filtering.py
jhee514/wouldYouCi
54793401fb51356587e5a4460eb606ed9943b30c
[ "MIT" ]
14
2021-03-19T08:55:06.000Z
2022-03-12T00:37:51.000Z
wouldyouci_database/recommendation/contents_based_filtering.py
jhee514/wouldYouCi
54793401fb51356587e5a4460eb606ed9943b30c
[ "MIT" ]
1
2021-05-27T08:52:01.000Z
2021-05-27T08:52:01.000Z
import os import time import pymysql import pandas as pd from decouple import config from datetime import datetime from sklearn.linear_model import Lasso from sklearn.linear_model import LinearRegression from sklearn.model_selection import train_test_split from sklearn.model_selection import RandomizedSearchCV from sci...
34.340426
105
0.614777
0
0
0
0
0
0
0
0
1,200
0.183038
bf2469ca87fa101c85b17a0020e6ab7671ae18ca
237,639
py
Python
api/spotprices/scripts/config.py
gfortil/hpcc-internship
8061771bcb4791fca54e6b1d74f0c019ad69bca4
[ "MIT" ]
null
null
null
api/spotprices/scripts/config.py
gfortil/hpcc-internship
8061771bcb4791fca54e6b1d74f0c019ad69bca4
[ "MIT" ]
null
null
null
api/spotprices/scripts/config.py
gfortil/hpcc-internship
8061771bcb4791fca54e6b1d74f0c019ad69bca4
[ "MIT" ]
1
2021-06-10T22:07:15.000Z
2021-06-10T22:07:15.000Z
subscription = 'us-hpccplatform-dev' subscription_id = 'ec0ba952-4ae9-4f69-b61c-4b96ff470038' resource_prefix = 'roshan-test-' n_threads = 5 image = "UbuntuLTS" priority = "Spot" max_price = "0.00001" eviction_policy = "Deallocate" spot_region_map = { 'centralus': ['Standard_A3', 'Standard_E80ids_v4', 'Standard_...
2,424.887755
8,832
0.783642
0
0
0
0
0
0
0
0
212,639
0.894798
bf25dc21b097b4039654bff5dabf2d9a9ccf1daa
830
py
Python
netrd/utilities/__init__.py
sdmccabe/netrd
f703c19b02f42c9f54bcab57014381da11dd58da
[ "MIT" ]
116
2019-01-17T18:31:43.000Z
2022-03-31T13:37:21.000Z
netrd/utilities/__init__.py
sdmccabe/netrd
f703c19b02f42c9f54bcab57014381da11dd58da
[ "MIT" ]
175
2019-01-15T01:19:13.000Z
2021-05-25T16:51:26.000Z
netrd/utilities/__init__.py
sdmccabe/netrd
f703c19b02f42c9f54bcab57014381da11dd58da
[ "MIT" ]
36
2019-01-14T20:38:32.000Z
2022-01-21T20:58:38.000Z
""" utilities ---------- Common utilities for use within ``netrd``. """ from .threshold import threshold from .graph import ( create_graph, ensure_undirected, undirected, ensure_unweighted, unweighted, ) from .read import read_time_series from .cluster import clusterGraph from .standardize import ...
18.444444
42
0.683133
0
0
0
0
0
0
0
0
311
0.374699
bf292f506793261af16ff7db52fd7fc8b2dbbe15
697
py
Python
python/leetcode/1706-Where_Will_the_Ball_Fall-M.py
levendlee/leetcode
35e274cb4046f6ec7112cd56babd8fb7d437b844
[ "Apache-2.0" ]
1
2020-03-02T10:56:22.000Z
2020-03-02T10:56:22.000Z
python/leetcode/1706-Where_Will_the_Ball_Fall-M.py
levendlee/leetcode
35e274cb4046f6ec7112cd56babd8fb7d437b844
[ "Apache-2.0" ]
null
null
null
python/leetcode/1706-Where_Will_the_Ball_Fall-M.py
levendlee/leetcode
35e274cb4046f6ec7112cd56babd8fb7d437b844
[ "Apache-2.0" ]
null
null
null
class Solution: def findBall(self, grid: List[List[int]]) -> List[int]: m, n = len(grid), len(grid[0]) fall = list(range(n)) for i in range(m): next_fall = [-1 for _ in range(n)] for j in range(n): if grid[i][j] == 1: if j > 0 and g...
34.85
59
0.400287
696
0.998565
0
0
0
0
0
0
0
0
bf295ca777715f6aa9e9a9220331a760cad03d41
980
py
Python
clickhouse_driver/columns/tuplecolumn.py
xzkostyan/clickhouse-driver
9a8b4a0706d78ee9952737a9b277f448acf3eaf0
[ "MIT" ]
null
null
null
clickhouse_driver/columns/tuplecolumn.py
xzkostyan/clickhouse-driver
9a8b4a0706d78ee9952737a9b277f448acf3eaf0
[ "MIT" ]
null
null
null
clickhouse_driver/columns/tuplecolumn.py
xzkostyan/clickhouse-driver
9a8b4a0706d78ee9952737a9b277f448acf3eaf0
[ "MIT" ]
null
null
null
from .base import Column from .util import get_inner_spec, get_inner_columns class TupleColumn(Column): py_types = (list, tuple) def __init__(self, nested_columns, **kwargs): self.nested_columns = nested_columns super(TupleColumn, self).__init__(**kwargs) def write_data(self, items, buf...
28
69
0.681633
683
0.696939
0
0
0
0
0
0
7
0.007143
bf29b24d082fbb7129c2bab18736d49934635b11
5,518
py
Python
vae/train_vae.py
mazrk7/tf_playground
81ad741f2bfe439bab85783ccf82d4715a3adef6
[ "MIT" ]
null
null
null
vae/train_vae.py
mazrk7/tf_playground
81ad741f2bfe439bab85783ccf82d4715a3adef6
[ "MIT" ]
null
null
null
vae/train_vae.py
mazrk7/tf_playground
81ad741f2bfe439bab85783ccf82d4715a3adef6
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function import argparse import sys import tensorflow as tf from dataset import load_data from vae import VAE from conv_vae import ConvVAE IMAGE_SIZE = 28 IMAGE_PIXELS = IMAGE_SIZE * IMAGE_SIZE # Define the VAE netw...
45.229508
153
0.677419
0
0
0
0
0
0
0
0
1,904
0.345053
bf2a1be151e93e4a43b932a359e5f6bd5186b1b3
8,810
py
Python
nodeconductor/quotas/models.py
p-p-m/nodeconductor
bc702302ef65c89793452f0fd6ca9a6bec79782f
[ "Apache-2.0" ]
null
null
null
nodeconductor/quotas/models.py
p-p-m/nodeconductor
bc702302ef65c89793452f0fd6ca9a6bec79782f
[ "Apache-2.0" ]
null
null
null
nodeconductor/quotas/models.py
p-p-m/nodeconductor
bc702302ef65c89793452f0fd6ca9a6bec79782f
[ "Apache-2.0" ]
null
null
null
from django.contrib.contenttypes import fields as ct_fields from django.contrib.contenttypes import models as ct_models from django.db import models, transaction from django.db.models import Sum from django.utils.encoding import python_2_unicode_compatible from nodeconductor.logging.log import LoggableMixin from nodec...
38.810573
123
0.624404
8,319
0.944268
0
0
3,233
0.366969
0
0
3,145
0.356981
bf2bb0444957a564a4fef3e32be0670e3dc59829
15,049
py
Python
DPPO/dppo_cont_gae_dist_gpu.py
ChuaCheowHuan/reinforcement_learning
037c292e5d81cd6d302566969c0391aba47d0343
[ "MIT" ]
32
2019-06-01T18:10:12.000Z
2021-12-17T08:12:48.000Z
DPPO/dppo_cont_gae_dist_gpu.py
ChuaCheowHuan/reinforcement_learning
037c292e5d81cd6d302566969c0391aba47d0343
[ "MIT" ]
9
2020-03-24T18:21:20.000Z
2022-02-10T01:41:29.000Z
DPPO/dppo_cont_gae_dist_gpu.py
ChuaCheowHuan/reinforcement_learning
037c292e5d81cd6d302566969c0391aba47d0343
[ "MIT" ]
9
2019-05-05T12:04:30.000Z
2021-11-13T12:14:56.000Z
""" Distributed Proximal Policy Optimization (Distributed PPO or DPPO) continuous version implementation with distributed Tensorflow and Python’s multiprocessing package. This implementation uses normalized running rewards with GAE. The code is tested with Gym’s continuous action space environment, Pendulum-v0 on Colab...
41.802778
171
0.618779
9,174
0.609447
0
0
0
0
0
0
3,555
0.236166
bf2c7de182d5aadb7a0bb2f77fcf4bcb98312fdc
910
py
Python
common/middleware.py
Ins-V/wc_crm
5d75907bb48e892328712ed0b2cf96b9083239aa
[ "MIT" ]
null
null
null
common/middleware.py
Ins-V/wc_crm
5d75907bb48e892328712ed0b2cf96b9083239aa
[ "MIT" ]
null
null
null
common/middleware.py
Ins-V/wc_crm
5d75907bb48e892328712ed0b2cf96b9083239aa
[ "MIT" ]
null
null
null
from django.contrib.auth.decorators import login_required from django.urls import reverse_lazy class LoginRequiredMiddleware: """Middleware for all views requires a login. To exclude a view from checking, the login_exempt decorator is used. """ def __init__(self, get_response): self.get_respo...
32.5
102
0.696703
812
0.892308
0
0
0
0
0
0
182
0.2
bf2ca4850e1601c96655725a34150bcc61effb04
7,417
py
Python
main_entry.py
LuxxxLucy/text_generation_SeqRNN
27676f8c0844a69dd9c68ef6ff519b7ff03e50b9
[ "MIT" ]
null
null
null
main_entry.py
LuxxxLucy/text_generation_SeqRNN
27676f8c0844a69dd9c68ef6ff519b7ff03e50b9
[ "MIT" ]
1
2017-08-28T18:45:04.000Z
2017-08-30T09:27:37.000Z
main_entry.py
LuxxxLucy/text_generation_SeqRNN
27676f8c0844a69dd9c68ef6ff519b7ff03e50b9
[ "MIT" ]
null
null
null
# utility modules import os from os import path import shutil import sys import time import json import argparse import numpy as np from pprint import pprint as pr ITEM_DIM=100 dir_path = path.dirname(path.dirname(path.dirname(path.realpath(__file__)))) sys.path.append(dir_path) import settings # -------------------...
41.903955
96
0.637994
0
0
0
0
0
0
0
0
2,380
0.320884
bf2e31dad78bdc69eb2a8bd13549245a36b50b40
4,741
py
Python
data_process/face_rectify.py
ZephyrDu/Face-Sketch-Wild
4e967e58b8cb95af74d5fb26a4f9761a966c04bd
[ "MIT" ]
73
2018-11-13T09:32:31.000Z
2022-02-25T13:28:29.000Z
data_process/face_rectify.py
ZephyrDu/Face-Sketch-Wild
4e967e58b8cb95af74d5fb26a4f9761a966c04bd
[ "MIT" ]
4
2019-10-22T09:15:21.000Z
2021-12-02T08:21:54.000Z
data_process/face_rectify.py
ZephyrDu/Face-Sketch-Wild
4e967e58b8cb95af74d5fb26a4f9761a966c04bd
[ "MIT" ]
22
2018-11-04T00:08:30.000Z
2022-03-07T00:50:13.000Z
""" Rectify the face photo according to the paper: Real-Time Exemplar-Based Face Sketch Synthesis. shape: h=250, w=200 position: left eye (x=75,y=125), right eye (x=125, y=125) This module use similarity transformation to roughly align the two eyes. Specifically, the transformation matrix can be writte...
37.928
109
0.669479
0
0
0
0
0
0
0
0
1,775
0.374394
bf2ea22b630b974814db2da578466418ae00ae5f
643
py
Python
old_app.py
stimura/interactive_visualizations_and_dashboards_plotly.js
980ee5078b2fc93fc2f906769b97b013885d5580
[ "ADSL" ]
null
null
null
old_app.py
stimura/interactive_visualizations_and_dashboards_plotly.js
980ee5078b2fc93fc2f906769b97b013885d5580
[ "ADSL" ]
null
null
null
old_app.py
stimura/interactive_visualizations_and_dashboards_plotly.js
980ee5078b2fc93fc2f906769b97b013885d5580
[ "ADSL" ]
null
null
null
from data_wrangling import * from flask import Flask, jsonify, render_template app = Flask(__name__) @app.route("/") def index(): return render_template('index.html') @app.route("/names") def names(): # Store results into a dictionary forecast = get_samples() return jsonify(forecast) # Re...
18.371429
57
0.642302
0
0
0
0
480
0.746501
0
0
180
0.279938
bf2ee5f4b8066d4690c806b8c907df5c94fb9ee9
8,813
py
Python
pysnmp-with-texts/BW-BroadworksEMSFault.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/BW-BroadworksEMSFault.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/BW-BroadworksEMSFault.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module BW-BroadworksEMSFault (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/BW-BroadworksEMSFault # Produced by pysmi-0.3.4 at Wed May 1 11:42:07 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (def...
179.857143
715
0.794849
0
0
0
0
0
0
0
0
4,275
0.485079
bf3400e9e5516570d2ee907dd1eae2f4cc26b378
9,145
py
Python
tests/test_wildcard_matching.py
stachenov/PyLeetCode
cb13700d428854eff46a762542a63d691578d5b6
[ "Unlicense" ]
null
null
null
tests/test_wildcard_matching.py
stachenov/PyLeetCode
cb13700d428854eff46a762542a63d691578d5b6
[ "Unlicense" ]
null
null
null
tests/test_wildcard_matching.py
stachenov/PyLeetCode
cb13700d428854eff46a762542a63d691578d5b6
[ "Unlicense" ]
null
null
null
import pytest from problems.wildcard_matching import Solution @pytest.mark.parametrize("s, p, expected", [ ("", "", True), ("", "*", True), ("", "**", True), ("a", "*", True), ("ab", "*", True), ("ab", "a*", True), ("ab", "*b", True), ("ab", "a*b", True), ("ab", "a*bc", False), ...
295
4,114
0.951121
0
0
0
0
9,080
0.992892
0
0
8,631
0.943794
bf34bb0f6cb77d847d353e75322326b1e613f85e
1,484
py
Python
word2vec/data_test.py
luozhouyang/machine-learning-notes
332bea905398891fed4a98aa139eac02c88cb5ae
[ "Apache-2.0" ]
73
2018-09-07T06:47:18.000Z
2022-01-25T06:14:41.000Z
word2vec/data_test.py
luozhouyang/machine-learning-notes
332bea905398891fed4a98aa139eac02c88cb5ae
[ "Apache-2.0" ]
2
2018-10-18T06:40:19.000Z
2019-11-16T01:48:39.000Z
word2vec/data_test.py
luozhouyang/machine-learning-notes
332bea905398891fed4a98aa139eac02c88cb5ae
[ "Apache-2.0" ]
47
2018-09-27T10:50:21.000Z
2022-01-25T06:20:23.000Z
# Copyright 2018 luozhouyang # # 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, ...
31.574468
80
0.679919
496
0.334232
0
0
0
0
0
0
706
0.475741
bf355dafca1416e7627639d652c8fed0b68000f6
11,140
py
Python
scripts/elasticArchive.py
softandbyte/elasticArchive
90a2bbe28eca8ee4f8bdeca560e2202ceeef2ba4
[ "MIT" ]
16
2020-06-09T03:29:03.000Z
2022-03-12T05:05:54.000Z
scripts/elasticArchive.py
softandbyte/elasticArchive
90a2bbe28eca8ee4f8bdeca560e2202ceeef2ba4
[ "MIT" ]
2
2021-11-09T20:50:58.000Z
2022-03-23T05:17:50.000Z
scripts/elasticArchive.py
softandbyte/elasticArchive
90a2bbe28eca8ee4f8bdeca560e2202ceeef2ba4
[ "MIT" ]
5
2021-02-25T08:43:18.000Z
2022-03-12T05:05:54.000Z
""" This script serializes the entire traffic dump, including websocket traffic, as JSON, and either sends it to an elasticsearch endpoint for permenant storage. Unlike some plugins, this one sends all requests and responses to elasticsearch in real-time. This script is based on the original mitmproxy scripts jsondum...
34.382716
135
0.560503
10,161
0.912118
0
0
2,323
0.208528
0
0
4,471
0.401346
bf35df664a6f006ae32195314f2da6cc632d3aa5
1,425
py
Python
app_covid19data/tests/test_forms.py
falken20/covid19web
3826e5cc51dc24d373a1f614ccdb7c30993312ce
[ "MIT" ]
null
null
null
app_covid19data/tests/test_forms.py
falken20/covid19web
3826e5cc51dc24d373a1f614ccdb7c30993312ce
[ "MIT" ]
null
null
null
app_covid19data/tests/test_forms.py
falken20/covid19web
3826e5cc51dc24d373a1f614ccdb7c30993312ce
[ "MIT" ]
null
null
null
from django.test import TestCase from django.utils import timezone from model_bakery import baker from app_covid19data.models import DataCovid19Item class Covid19dataTest(TestCase): def create_DataCovid19Item(self, country='countryTest', state='stateTest', latitude=1, longitude=1): return DataCovid19Ite...
39.583333
104
0.648421
1,273
0.893333
0
0
0
0
0
0
395
0.277193
bf365d62fde31326141c9b2b13f45dee2f7dc651
823
py
Python
python/2015/Day 1 Not Quite Lisp/main.py
FirinKinuo/advent-of-code
97059fc2832b224c24e80bdb658c668bcbb1cb12
[ "MIT" ]
null
null
null
python/2015/Day 1 Not Quite Lisp/main.py
FirinKinuo/advent-of-code
97059fc2832b224c24e80bdb658c668bcbb1cb12
[ "MIT" ]
null
null
null
python/2015/Day 1 Not Quite Lisp/main.py
FirinKinuo/advent-of-code
97059fc2832b224c24e80bdb658c668bcbb1cb12
[ "MIT" ]
null
null
null
from python import SolvingBase class Solving(SolvingBase): def first_problem(self): floor = 0 with open(self.test_case, 'r', encoding='utf-8') as file: instructions = file.read() for command in instructions: floor += 1 if command == '(' else -1 return flo...
24.939394
94
0.589307
627
0.761847
0
0
0
0
0
0
119
0.144593
bf366ea4faa9d83ef47009d3ecfc52584f3dc9bd
10,032
py
Python
downscale_/downscale/utils/utils_func.py
louisletoumelin/wind_downscaling_cnn
9d08711620db1ee1f472847f0e822c5f4eb1d300
[ "W3C" ]
null
null
null
downscale_/downscale/utils/utils_func.py
louisletoumelin/wind_downscaling_cnn
9d08711620db1ee1f472847f0e822c5f4eb1d300
[ "W3C" ]
12
2021-11-30T16:56:05.000Z
2021-12-13T16:26:31.000Z
downscale_/downscale/utils/utils_func.py
louisletoumelin/wind_downscaling_cnn
9d08711620db1ee1f472847f0e822c5f4eb1d300
[ "W3C" ]
null
null
null
import numpy as np import pandas as pd import datetime from downscale.utils.decorators import timer_decorator def select_range(month_begin, month_end, year_begin, year_end, date_begin, date_end): import pandas as pd if (month_end != month_begin) or (year_begin != year_end): dates = pd.date_range(date...
33.66443
112
0.572269
0
0
0
0
735
0.073266
0
0
3,153
0.314294
bf3812d6d4f4e3479497b05d3cbefb4d7e0abe08
11,979
py
Python
assetfactory/images/2021/08/30/base.py
reinhrst/reinhrst.github.io
3e9dce26c923fca54589ffd1d19d56af0dd27910
[ "CC0-1.0" ]
null
null
null
assetfactory/images/2021/08/30/base.py
reinhrst/reinhrst.github.io
3e9dce26c923fca54589ffd1d19d56af0dd27910
[ "CC0-1.0" ]
6
2021-07-01T19:35:47.000Z
2022-02-06T10:30:35.000Z
assetfactory/images/2021/08/30/base.py
reinhrst/reinhrst.github.io
3e9dce26c923fca54589ffd1d19d56af0dd27910
[ "CC0-1.0" ]
1
2021-08-11T22:46:47.000Z
2021-08-11T22:46:47.000Z
from __future__ import annotations import pathlib import typing as t import numpy as np import math def rgb_to_hsv(r, g, b): r = float(r) g = float(g) b = float(b) high = max(r, g, b) low = min(r, g, b) h, s, v = high, high, high d = high - low s = 0 if high == 0 else d/high if ...
32.201613
115
0.515986
3,776
0.315218
0
0
0
0
0
0
1,536
0.128224
bf3866ddc85e7f86c0fd67e88f22e67c934b181e
46,444
py
Python
cifar_net_search/syclop_cifar_lstm_no_upsample.py
sashkarivkind/imagewalker
999e1ae78cfe1512e1be894d9e7891a7d0c41233
[ "Apache-2.0" ]
2
2021-04-28T13:33:45.000Z
2021-11-09T14:31:09.000Z
cifar_net_search/syclop_cifar_lstm_no_upsample.py
sashkarivkind/imagewalker
999e1ae78cfe1512e1be894d9e7891a7d0c41233
[ "Apache-2.0" ]
null
null
null
cifar_net_search/syclop_cifar_lstm_no_upsample.py
sashkarivkind/imagewalker
999e1ae78cfe1512e1be894d9e7891a7d0c41233
[ "Apache-2.0" ]
1
2021-03-07T13:25:59.000Z
2021-03-07T13:25:59.000Z
''' The follwing code runs a test lstm network on the CIFAR dataset I will explicitly write the networks here for ease of understanding with cnn_sropout = 0.4 and rnn dropout = 0.2 and lr = 1e-3 res = 8 ################# cnn_lstm_True Validation Accuracy = [0.363, 0.4258, 0.4332, 0.4142, 0.4802, 0.4838, 0.4988, ...
143.789474
5,586
0.682284
0
0
0
0
0
0
0
0
40,902
0.880673
bf3a501755b78c7fc3712365a7125b728750c56d
497
py
Python
smbf/lib/session_ok.py
Alpha-Demon404/RE-14
b5b46a9f0eee218f2a642b615c77135c33c6f4ad
[ "MIT" ]
39
2020-02-26T09:44:36.000Z
2022-03-23T00:18:25.000Z
smbf/lib/session_ok.py
B4BY-DG/reverse-enginnering
b5b46a9f0eee218f2a642b615c77135c33c6f4ad
[ "MIT" ]
15
2020-05-14T10:07:26.000Z
2022-01-06T02:55:32.000Z
smbf/lib/session_ok.py
B4BY-DG/reverse-enginnering
b5b46a9f0eee218f2a642b615c77135c33c6f4ad
[ "MIT" ]
41
2020-03-16T22:36:38.000Z
2022-03-17T14:47:19.000Z
# Filenames : # Python bytecode : 3.8 # Time succses decompiled Sat Sep 26 13:17:38 2020 # Selector <module> in line 1 file # Timestamp in code : 2020-06-27 04:07:18 import requests ses = requests.Session() from bs4 import BeautifulSoup as parser class browser: def __init__(self, kuki): self._browser__...
24.85
124
0.690141
243
0.488934
0
0
0
0
0
0
213
0.428571
bf3a5e972de95e03358433c9a82b2ed12f784caf
1,025
py
Python
Hackerrank_problems/counting_valleys/solution1_CountingValleys.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
165
2020-10-03T08:01:11.000Z
2022-03-31T02:42:08.000Z
Hackerrank_problems/counting_valleys/solution1_CountingValleys.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
383
2020-10-03T07:39:11.000Z
2021-11-20T07:06:35.000Z
Hackerrank_problems/counting_valleys/solution1_CountingValleys.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
380
2020-10-03T08:05:04.000Z
2022-03-19T06:56:59.000Z
# # working # this function takes steps and detail of steps as input # we declare a zero level above which any up step will be considered as a valley that is climbed # we run from 0 to length of steps # if we detect a "U" we increase the zero level # similary if we detect "D" we decrease the zero...
26.282051
100
0.616585
0
0
0
0
0
0
0
0
540
0.526829
bf3a8b4843ac801538ccc5ef189a2684601a4cd6
10,419
py
Python
SemanticCopyandPaste.py
WeiChihChern/Copy-Paste-Semantic-Segmentation
f7725bb385b6decc4e139262fc1c6e3ba30255a3
[ "MIT" ]
3
2021-08-19T20:08:27.000Z
2021-09-25T04:12:59.000Z
SemanticCopyandPaste.py
WeiChihChern/Copy-Paste-Semantic-Segmentation
f7725bb385b6decc4e139262fc1c6e3ba30255a3
[ "MIT" ]
null
null
null
SemanticCopyandPaste.py
WeiChihChern/Copy-Paste-Semantic-Segmentation
f7725bb385b6decc4e139262fc1c6e3ba30255a3
[ "MIT" ]
1
2022-01-03T07:53:34.000Z
2022-01-03T07:53:34.000Z
import albumentations as A import random import cv2 import os import numpy as np import matplotlib.pyplot as plt class SemanticCopyandPaste(A.DualTransform): def __init__(self, nClass, path2rgb, path2mask, shift_x_limit = [0,0], ...
38.164835
335
0.585181
10,282
0.986851
0
0
0
0
0
0
2,510
0.240906
bf3af0a9b7fb2f7462965878fb057df5c1373af3
435
py
Python
jobs/migrations/0005_job_github_url.py
TobiAdeniyi/django-portfolio-website
6feda92179ea0d95af75a9f98d1857dafa5350df
[ "MIT" ]
1
2021-03-05T19:07:18.000Z
2021-03-05T19:07:18.000Z
jobs/migrations/0005_job_github_url.py
TobiAdeniyi/portfolio
6feda92179ea0d95af75a9f98d1857dafa5350df
[ "MIT" ]
null
null
null
jobs/migrations/0005_job_github_url.py
TobiAdeniyi/portfolio
6feda92179ea0d95af75a9f98d1857dafa5350df
[ "MIT" ]
null
null
null
# Generated by Django 3.1.7 on 2021-03-04 14:42 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('jobs', '0004_job_title'), ] operations = [ migrations.AddField( model_name='job', name='github_url', fie...
21.75
76
0.593103
342
0.786207
0
0
0
0
0
0
118
0.271264
bf3c0cb0df6b706d99fdac9f82ea5ed8b6f1d695
454
py
Python
accounts/models.py
Chetnasahay/FireFox
f79b2ea5b03a5e591d9e0837881f4f1811e40ea1
[ "MIT" ]
null
null
null
accounts/models.py
Chetnasahay/FireFox
f79b2ea5b03a5e591d9e0837881f4f1811e40ea1
[ "MIT" ]
null
null
null
accounts/models.py
Chetnasahay/FireFox
f79b2ea5b03a5e591d9e0837881f4f1811e40ea1
[ "MIT" ]
1
2021-05-11T12:05:24.000Z
2021-05-11T12:05:24.000Z
from django.db import models # Create your models here. class organization(models.Model): username = models.CharField(max_length=1000) email= models.URLField() img= models.ImageField( upload_to='pics',null=True,blank=True) # number = models.IntegerField() password= models.CharField(max_length=200)...
32.428571
66
0.737885
396
0.872247
0
0
0
0
0
0
64
0.140969
170d1b573c4d139f35fc15ee0ec4fee9fb15a40f
2,693
py
Python
indexation.py
zaurelzo/Cerbere
06232d1328585159c652f91a3d7748a8bb5023cf
[ "WTFPL" ]
null
null
null
indexation.py
zaurelzo/Cerbere
06232d1328585159c652f91a3d7748a8bb5023cf
[ "WTFPL" ]
null
null
null
indexation.py
zaurelzo/Cerbere
06232d1328585159c652f91a3d7748a8bb5023cf
[ "WTFPL" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import time,sys from parser.parser import * from database_Manager.databaseManager import * from collections import Counter if __name__ == '__main__': #global Variables, chnages for a specific action (1 : do the action , 0 : don't do the action) action=0 if len(sys.ar...
32.841463
95
0.711103
0
0
0
0
0
0
0
0
1,087
0.40334
170d3e0c7bb509155665bc1b0e23573bfaf15d45
1,214
py
Python
_vcs/git.py
devsetup/devsetup_framework
6ccd59dab83bc4305e8ff18321bfc14a4e7e79ca
[ "BSD-3-Clause" ]
null
null
null
_vcs/git.py
devsetup/devsetup_framework
6ccd59dab83bc4305e8ff18321bfc14a4e7e79ca
[ "BSD-3-Clause" ]
null
null
null
_vcs/git.py
devsetup/devsetup_framework
6ccd59dab83bc4305e8ff18321bfc14a4e7e79ca
[ "BSD-3-Clause" ]
null
null
null
# -*- coding:utf8 -*- import os import re import dsf def change_branch(branch, cwd=None): # checkout the branch dsf.core.shell.run(['git', 'checkout', branch], cwd=cwd) def get_current_branch(cwd=None): output = dsf.core.shell.get_output_from_command(['git', 'branch'], cwd=cwd) for line in output: if line[0:2...
26.977778
98
0.696046
0
0
0
0
0
0
0
0
434
0.357496
170d6548b3dc09065e688e302239c6b72d24faa5
243
py
Python
7KYU/is_prime.py
yaznasivasai/python_codewars
25493591dde4649dc9c1ec3bece8191a3bed6818
[ "MIT" ]
4
2021-07-17T22:48:03.000Z
2022-03-25T14:10:58.000Z
7KYU/is_prime.py
yaznasivasai/python_codewars
25493591dde4649dc9c1ec3bece8191a3bed6818
[ "MIT" ]
null
null
null
7KYU/is_prime.py
yaznasivasai/python_codewars
25493591dde4649dc9c1ec3bece8191a3bed6818
[ "MIT" ]
3
2021-06-14T14:18:16.000Z
2022-03-16T06:02:02.000Z
def is_prime(n: int) -> bool: ''' This function returns True if n is a prime number otherwise return False. ''' if n <= 1: return False d = 2 while d * d <= n and n % d != 0: d += 1 return d * d > n
22.090909
77
0.497942
0
0
0
0
0
0
0
0
89
0.366255
1710ee96f11f5467c52c0c184c4411c5e7e24339
1,628
py
Python
HSM/load_data.py
18F/10x-MLaaS
3e1df3bbd88037c20e916fab2c07117a63e3c639
[ "CC0-1.0" ]
13
2019-03-15T20:30:35.000Z
2022-02-19T08:05:10.000Z
HSM/load_data.py
18F/10x-MLaaS
3e1df3bbd88037c20e916fab2c07117a63e3c639
[ "CC0-1.0" ]
106
2018-11-28T21:17:55.000Z
2022-03-25T09:18:27.000Z
HSM/load_data.py
18F/10x-MLaaS
3e1df3bbd88037c20e916fab2c07117a63e3c639
[ "CC0-1.0" ]
8
2019-01-05T16:31:02.000Z
2022-03-20T15:35:06.000Z
import json from argparse import ArgumentParser import pandas as pd from utils import db, db_utils from utils.db import Data, SupportData filter_feature = 'Comments Concatenated' validation = 'Validation' def main(file): db_utils.create_postgres_db() db.dal.connect() session = db.dal.Session() df = ...
30.716981
107
0.699017
0
0
0
0
0
0
0
0
408
0.250614
17111432226dd73d653390de29656f4d3d8a9a11
2,882
py
Python
tools/optimization/driver/ask_tell_parallel_driver.py
MRossol/HOPP
c8bcf610fdd2cbb27a807ddaf444684ef1aab7e8
[ "BSD-3-Clause" ]
3
2021-03-10T20:03:42.000Z
2022-03-18T17:10:04.000Z
tools/optimization/driver/ask_tell_parallel_driver.py
MRossol/HOPP
c8bcf610fdd2cbb27a807ddaf444684ef1aab7e8
[ "BSD-3-Clause" ]
14
2020-12-28T22:32:07.000Z
2022-03-17T15:33:04.000Z
tools/optimization/driver/ask_tell_parallel_driver.py
MRossol/HOPP
c8bcf610fdd2cbb27a807ddaf444684ef1aab7e8
[ "BSD-3-Clause" ]
8
2021-01-19T02:39:01.000Z
2022-01-31T18:04:39.000Z
import multiprocessing from typing import ( Callable, Tuple, ) from ..data_logging.data_recorder import DataRecorder from ..driver.ask_tell_driver import AskTellDriver from ..optimizer.ask_tell_optimizer import AskTellOptimizer from .ask_tell_parallel_driver_fns import * class AskTellParallelDriver(AskTe...
32.022222
116
0.611381
2,594
0.900069
0
0
0
0
0
0
969
0.336225
17111a7abf53a035de98baa91e71385ab4317ae0
7,123
py
Python
pygcn/models.py
coquid/pygcn
a11788468514cce47bd4262849456895def13714
[ "MIT" ]
null
null
null
pygcn/models.py
coquid/pygcn
a11788468514cce47bd4262849456895def13714
[ "MIT" ]
null
null
null
pygcn/models.py
coquid/pygcn
a11788468514cce47bd4262849456895def13714
[ "MIT" ]
null
null
null
import torch.nn as nn import torch.nn.functional as F from pygcn.layers import GraphConvolution, MyGraphConvolution class GCN(nn.Module): def __init__(self, nfeat, nhid, nclass, dropout): super(GCN, self).__init__() self.gc1 = GraphConvolution(nfeat, nhid) self.gc2 = GraphConvolution(nhid...
38.090909
62
0.600168
6,986
0.980767
0
0
0
0
0
0
0
0
1711d50df16cf6bbbc6b89a5b298a52cab9c6c7f
4,255
py
Python
main.py
BenAsaf/moodle-attendance-bot
bd27263fbb57badbe0ec622b8f72f507795591a2
[ "MIT" ]
null
null
null
main.py
BenAsaf/moodle-attendance-bot
bd27263fbb57badbe0ec622b8f72f507795591a2
[ "MIT" ]
null
null
null
main.py
BenAsaf/moodle-attendance-bot
bd27263fbb57badbe0ec622b8f72f507795591a2
[ "MIT" ]
null
null
null
from selenium import webdriver from selenium.common import exceptions import time import sched MOODLE_USER_NAME = "" MOODLE_PASSWORD = "" MOODLE_HOME_PAGE = "Moodle Address" # THe moodle main homepage COURSE_TITLE = "Name of the course as it shows up on the left" # What course to search for in the list START_HOUR, ...
32.984496
127
0.683901
0
0
0
0
0
0
0
0
1,156
0.27168
1712f4a188130478cc3e6228d716f80f0d9dd93a
445
py
Python
iec104/types.py
seregichevks/iec104
fa7905247869c7a8934dd6a003cb5091b5b1211c
[ "Apache-2.0" ]
73
2015-03-19T03:29:29.000Z
2022-02-28T05:57:23.000Z
iec104/types.py
seregichevks/iec104
fa7905247869c7a8934dd6a003cb5091b5b1211c
[ "Apache-2.0" ]
1
2015-06-19T06:01:08.000Z
2017-10-10T11:09:06.000Z
iec104/types.py
seregichevks/iec104
fa7905247869c7a8934dd6a003cb5091b5b1211c
[ "Apache-2.0" ]
52
2015-03-04T08:32:31.000Z
2022-02-05T15:45:13.000Z
# -*- coding: utf-8 -*- from datetime import datetime def cp56timebcd(buf): pass def cp56time2a_to_time(buf): microsecond = (buf[1] & 0xFF) << 8 | (buf[0] & 0xFF) microsecond %= 1000 second = int(microsecond) minute = buf[2] & 0x3F hour = buf[3] & 0x1F day = buf[4] & 0x1F month = (bu...
22.25
72
0.593258
0
0
0
0
0
0
0
0
23
0.051685
17134739b8596a864d6e6e37035825d72ffbe045
3,119
py
Python
securetea/lib/antivirus/scanner/yara_scanner.py
neerajv18/SecureTea-Project
e999cbe7c8e497c69b76b4c886de0d063169ea03
[ "MIT" ]
257
2018-03-28T12:43:20.000Z
2022-03-29T07:07:23.000Z
securetea/lib/antivirus/scanner/yara_scanner.py
neerajv18/SecureTea-Project
e999cbe7c8e497c69b76b4c886de0d063169ea03
[ "MIT" ]
155
2018-03-31T14:57:46.000Z
2022-03-17T18:12:41.000Z
securetea/lib/antivirus/scanner/yara_scanner.py
neerajv18/SecureTea-Project
e999cbe7c8e497c69b76b4c886de0d063169ea03
[ "MIT" ]
132
2018-03-27T06:25:20.000Z
2022-03-28T11:32:45.000Z
# -*- coding: utf-8 -*- u"""Yara Scanner module for SecureTea AntiVirus. Project: ╔═╗┌─┐┌─┐┬ ┬┬─┐┌─┐╔╦╗┌─┐┌─┐ ╚═╗├┤ │ │ │├┬┘├┤ ║ ├┤ ├─┤ ╚═╝└─┘└─┘└─┘┴└─└─┘ ╩ └─┘┴ ┴ Author: Abhishek Sharma <abhishek_official@hotmail.com> , Jul 4 2019 Version: 1.4 Module: SecureTea """ from securetea.lib.antiv...
30.281553
96
0.520359
2,444
0.750384
0
0
0
0
0
0
1,313
0.403132
171703df70423764cdb150d7746703a8105fdfbc
5,823
py
Python
stable_baselines3/common/buffer_multi_level.py
atishdixit16/stable-baselines3
0188d6a7b0c905693f41a68484d71b02faee6146
[ "MIT" ]
null
null
null
stable_baselines3/common/buffer_multi_level.py
atishdixit16/stable-baselines3
0188d6a7b0c905693f41a68484d71b02faee6146
[ "MIT" ]
null
null
null
stable_baselines3/common/buffer_multi_level.py
atishdixit16/stable-baselines3
0188d6a7b0c905693f41a68484d71b02faee6146
[ "MIT" ]
null
null
null
from os import times from typing import Generator, Optional, Union, NamedTuple import numpy as np import torch as th from gym import spaces from stable_baselines3.common.type_aliases import RolloutBufferSamples from stable_baselines3.common.buffers import RolloutBuffer from stable_baselines3.common.vec_env import Vec...
37.567742
141
0.644341
5,488
0.94247
2,296
0.394298
0
0
0
0
1,627
0.279409
171b77518c7cb37c9e4c98fa3f24461a2dd6e589
3,032
py
Python
Scripts/plot_ArcticSystemsWorkshop_Fig2.py
zmlabe/ThicknessSensitivity
6defdd897a61d7d1a02f34a9f4ec92b2b17b3075
[ "MIT" ]
1
2017-10-22T02:22:14.000Z
2017-10-22T02:22:14.000Z
Scripts/plot_ArcticSystemsWorkshop_Fig2.py
zmlabe/ThicknessSensitivity
6defdd897a61d7d1a02f34a9f4ec92b2b17b3075
[ "MIT" ]
null
null
null
Scripts/plot_ArcticSystemsWorkshop_Fig2.py
zmlabe/ThicknessSensitivity
6defdd897a61d7d1a02f34a9f4ec92b2b17b3075
[ "MIT" ]
4
2018-04-05T17:55:36.000Z
2022-03-31T07:05:01.000Z
""" Plot for NCAR Arctic Systems workshop poster. Graph is DJF sea ice volume from PIOMAS over the satellite era. Notes ----- Author : Zachary Labe Date : 4 April 2018 """ ### Import modules import numpy as np import matplotlib.pyplot as plt import matplotlib.gridspec as gridspec from mpl_toolkits.basemap i...
30.626263
92
0.663918
0
0
0
0
0
0
0
0
784
0.258575
171ba407be1f7b1a08a60731bdef6857373c9c26
97
py
Python
binary/setup.py
namsral/piku
3159127df0d82a49b4efc319344f42e42cbe7867
[ "MIT" ]
1,424
2019-08-23T22:20:26.000Z
2022-03-30T16:16:50.000Z
binary/setup.py
namsral/piku
3159127df0d82a49b4efc319344f42e42cbe7867
[ "MIT" ]
125
2019-08-22T21:52:33.000Z
2022-03-22T03:03:51.000Z
binary/setup.py
namsral/piku
3159127df0d82a49b4efc319344f42e42cbe7867
[ "MIT" ]
45
2019-08-24T08:13:02.000Z
2022-03-31T20:34:30.000Z
from distutils.core import setup setup(name='piku-binary', version='0.0.1', scripts=['piku.py'])
32.333333
63
0.721649
0
0
0
0
0
0
0
0
29
0.298969
171f19a1c9e621f8b1151c6b7c0684a1d90d12d0
552
py
Python
src/ch6/heap_sort.py
tchitchikov/algorithms_practice
6a1ab226b4eb664a8a46853c94148a1ad0e0a558
[ "MIT" ]
null
null
null
src/ch6/heap_sort.py
tchitchikov/algorithms_practice
6a1ab226b4eb664a8a46853c94148a1ad0e0a558
[ "MIT" ]
null
null
null
src/ch6/heap_sort.py
tchitchikov/algorithms_practice
6a1ab226b4eb664a8a46853c94148a1ad0e0a558
[ "MIT" ]
null
null
null
import random from heaps import max_heaps, min_heaps def heap_sort(array): array = max_heaps.build_max_heap(array) i = len(array) - 1 output = [] while i >= 0: output.insert(0, array[0]) array = array[1:] array = max_heaps.max_heap(array, 0) i = i - 1 return output ...
21.230769
55
0.615942
0
0
0
0
0
0
0
0
35
0.063406
171f9e469a7e47e8361d3c06fc99723269112474
5,321
py
Python
test_plmn_codec.py
TwilioDevEd/super-sim-uplmn-coder
a098f18a573364e946f44d0fb14ab4005dc46a6d
[ "MIT" ]
null
null
null
test_plmn_codec.py
TwilioDevEd/super-sim-uplmn-coder
a098f18a573364e946f44d0fb14ab4005dc46a6d
[ "MIT" ]
null
null
null
test_plmn_codec.py
TwilioDevEd/super-sim-uplmn-coder
a098f18a573364e946f44d0fb14ab4005dc46a6d
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 ''' Super SIM UPLMN Codec @version 1.0.0 @author Tony Smith (@smittytone) @copyright Twilio, Inc. @licence MIT 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 w...
39.125
245
0.671866
3,926
0.737831
0
0
0
0
0
0
2,771
0.520767
17211f08965cfcc8becd31fe9182b1682d452336
2,110
py
Python
setup.py
nickhand/jupyter-panel-proxy
55f405b7292df281dfd0306f1154fb31992eef19
[ "BSD-3-Clause" ]
3
2020-04-17T19:54:48.000Z
2021-03-07T17:08:06.000Z
setup.py
nickhand/jupyter-panel-proxy
55f405b7292df281dfd0306f1154fb31992eef19
[ "BSD-3-Clause" ]
12
2020-03-04T13:45:26.000Z
2022-01-14T04:01:53.000Z
setup.py
nickhand/jupyter-panel-proxy
55f405b7292df281dfd0306f1154fb31992eef19
[ "BSD-3-Clause" ]
3
2021-03-08T13:26:50.000Z
2021-12-20T01:02:00.000Z
import param from setuptools import find_packages, setup extras_require = { 'build': ['param >=1.7.0', 'setuptools'], 'tests': [ 'flake8', 'twine', 'rfc3986', 'keyring' ], } setup_args = dict( name="jupyter-panel-proxy", description='Jupyter Server Proxy for Panel...
31.969697
96
0.619905
0
0
0
0
0
0
0
0
1,176
0.557346
172229cdfd779697e208462fd6b7eaf4fd180fa2
4,579
py
Python
cli/api.py
chacreton190/covid-data-model
10e86dee0aa17e9a4261787203d30c4631b5afb1
[ "MIT" ]
null
null
null
cli/api.py
chacreton190/covid-data-model
10e86dee0aa17e9a4261787203d30c4631b5afb1
[ "MIT" ]
null
null
null
cli/api.py
chacreton190/covid-data-model
10e86dee0aa17e9a4261787203d30c4631b5afb1
[ "MIT" ]
null
null
null
import api import logging import pathlib import click import itertools import us from api.can_api_definition import CovidActNowAreaTimeseries from api.can_api_definition import CovidActNowBulkTimeseries from libs.pipelines import api_pipeline from libs.datasets.dataset_utils import AggregationLevel from libs.datasets i...
33.181159
100
0.72767
0
0
0
0
4,053
0.885128
0
0
971
0.212055
17227cf30b721c2e199e41d4753d20961284c5a7
2,335
py
Python
WilliamWallace/choose_db_dialog.py
gilliM/wallace
59202aefb6375f23fa6be72c13969bfe36614433
[ "Apache-2.0" ]
null
null
null
WilliamWallace/choose_db_dialog.py
gilliM/wallace
59202aefb6375f23fa6be72c13969bfe36614433
[ "Apache-2.0" ]
null
null
null
WilliamWallace/choose_db_dialog.py
gilliM/wallace
59202aefb6375f23fa6be72c13969bfe36614433
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ /*************************************************************************** WilliamWallaceDialog A QGIS plugin This plugin do a supervised classification ------------------- begin : 2016-05-17 git...
40.258621
77
0.468951
987
0.422698
0
0
0
0
0
0
1,272
0.544754
1722e1bc2522475bf1abe2be156b72964c609133
573
py
Python
set3/p3_8.py
matheuspercario/python-mit
fc4ae1e546f33e9a77fd4c51a4ddc0854ab06617
[ "MIT" ]
null
null
null
set3/p3_8.py
matheuspercario/python-mit
fc4ae1e546f33e9a77fd4c51a4ddc0854ab06617
[ "MIT" ]
null
null
null
set3/p3_8.py
matheuspercario/python-mit
fc4ae1e546f33e9a77fd4c51a4ddc0854ab06617
[ "MIT" ]
null
null
null
# PYTHON - MIT - UNICAMP # ============================================================================= # Created By : Matheus Percário Bruder # Created Date : February 7th, 2021 # ============================================================================ def f_1(a): return 2 * a def f_2(b): return 3 * ...
19.758621
79
0.458988
0
0
0
0
0
0
0
0
359
0.625436
172496d4e1a8fa80c8e14527010611354beb9faf
20,039
py
Python
PyYDLidar/PyX.py
SweiLz/PyYDLidar
ce2d916904af6cad3f64c6a48f7e6534b952d9a9
[ "MIT" ]
6
2020-09-02T15:32:22.000Z
2021-12-12T08:27:10.000Z
PyYDLidar/PyX.py
SweiLz/PyYDLidar
ce2d916904af6cad3f64c6a48f7e6534b952d9a9
[ "MIT" ]
1
2020-03-21T15:24:30.000Z
2020-03-22T16:50:33.000Z
PyYDLidar/PyX.py
SweiLz/PyYDLidar
ce2d916904af6cad3f64c6a48f7e6534b952d9a9
[ "MIT" ]
null
null
null
import threading import time from math import atan, pi import numpy as np from serial import Serial class Lidar: RESULT_OK = 0 RESULT_TIMEOUT = -1 RESULT_FAIL = -2 DEFAULT_TIMEOUT = 2000 cmd_stop = 0x65 cmd_scan = 0x60 cmd_force_scan = 0x61 cmd_reset = 0x80 cmd_force_stop = 0x00...
33.849662
111
0.532062
19,616
0.978891
0
0
205
0.01023
0
0
1,911
0.095364
1724b372c51eac0a72bead9ebc774a9fc7671773
1,868
py
Python
acs_test_suites/OTC/libs/pyunit/testlib/multimedia/base.py
wangji1/test-framework-and-suites-for-android
59564f826f205fe7fab64f45b88b1a6dde6900af
[ "Apache-2.0" ]
8
2018-09-14T01:34:01.000Z
2021-07-01T02:00:23.000Z
acs_test_suites/OTC/libs/pyunit/testlib/multimedia/base.py
wangji1/test-framework-and-suites-for-android
59564f826f205fe7fab64f45b88b1a6dde6900af
[ "Apache-2.0" ]
3
2019-09-10T11:39:50.000Z
2019-10-10T08:26:22.000Z
acs_test_suites/OTC/libs/pyunit/testlib/multimedia/base.py
wangji1/test-framework-and-suites-for-android
59564f826f205fe7fab64f45b88b1a6dde6900af
[ "Apache-2.0" ]
9
2018-10-11T15:14:03.000Z
2021-02-17T11:37:20.000Z
''' Copyright (C) 2018 Intel Corporation ? 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, so...
25.243243
91
0.633833
666
0.356531
0
0
0
0
0
0
727
0.389186
1725e9716ced32c4e508d22f5f3d4b1ba272e429
44,983
py
Python
Icarus/Photometry/Photometry_legacy.py
mhvk/Icarus
bd07ba440cc82d4374e90d6d95dc8844fd82ff19
[ "BSD-3-Clause" ]
10
2016-03-01T10:12:30.000Z
2021-08-02T02:36:53.000Z
Icarus/Photometry/Photometry_legacy.py
mhvk/Icarus
bd07ba440cc82d4374e90d6d95dc8844fd82ff19
[ "BSD-3-Clause" ]
2
2016-03-30T07:13:09.000Z
2016-04-15T08:54:09.000Z
Icarus/Photometry/Photometry_legacy.py
mhvk/Icarus
bd07ba440cc82d4374e90d6d95dc8844fd82ff19
[ "BSD-3-Clause" ]
13
2016-02-29T19:20:01.000Z
2017-05-21T15:25:32.000Z
# Licensed under a 3-clause BSD style license - see LICENSE from __future__ import print_function, division __all__ = ["Photometry_legacy"] from ..Utils.import_modules import * from .. import Utils from .. import Core from .. import Atmosphere ######################## class Photometry ######################## class...
52.003468
262
0.569415
44,599
0.991463
0
0
0
0
0
0
28,071
0.624036
172603d967e38fd3517415d28c601fcda847ad6a
827
py
Python
library/co2.py
juby-gif/air-quality-lib
dee707a7cf1479bf7a8d9f4661a87a0c523c895f
[ "BSD-3-Clause" ]
1
2019-09-22T22:20:35.000Z
2019-09-22T22:20:35.000Z
library/co2.py
juby-gif/air-quality-lib
dee707a7cf1479bf7a8d9f4661a87a0c523c895f
[ "BSD-3-Clause" ]
null
null
null
library/co2.py
juby-gif/air-quality-lib
dee707a7cf1479bf7a8d9f4661a87a0c523c895f
[ "BSD-3-Clause" ]
null
null
null
#a2.t4 #This program is to create a function to check carbondioxide content in air #taking advantage of python statistics library import statistics def check_air_quality(carbondioxide_data): if statistics.median(carbondioxide_data) >= 400 and statistics.median(carbondioxide_data) < 700: return "EXCELLENT" ...
55.133333
104
0.756953
0
0
0
0
0
0
0
0
166
0.200726
17271fe6063a50ed2061ed3af93c658a70080d06
3,952
py
Python
stayhome/business/forms/add_form.py
mageo/stayhomech
5afe922b13f0350a79eaff0401709f99c5a31e8b
[ "MIT" ]
3
2020-03-20T11:01:57.000Z
2020-03-20T16:29:12.000Z
stayhome/business/forms/add_form.py
stayhomech/stayhomech
5afe922b13f0350a79eaff0401709f99c5a31e8b
[ "MIT" ]
74
2020-03-23T21:35:07.000Z
2020-04-27T12:55:50.000Z
stayhome/business/forms/add_form.py
mageo/stayhomech
5afe922b13f0350a79eaff0401709f99c5a31e8b
[ "MIT" ]
3
2020-03-20T11:02:35.000Z
2020-03-20T16:29:23.000Z
import json import os import uuid from django import forms from captcha.fields import ReCaptchaField from phonenumber_field.formfields import PhoneNumberField from django.utils.translation import gettext_lazy as _ from django.utils.translation import get_language from geodata.models import NPA from business.models im...
29.274074
139
0.585779
3,616
0.91498
0
0
0
0
0
0
1,101
0.278593
172871b0e7ec867be29846f855105f3c9e31abaf
144
py
Python
cherry/nn/__init__.py
acse-yl27218/cherry
5b349cae64b282facf5a874164690c06808b1c61
[ "Apache-2.0" ]
160
2019-09-14T05:33:29.000Z
2022-03-12T18:58:51.000Z
cherry/nn/__init__.py
acse-yl27218/cherry
5b349cae64b282facf5a874164690c06808b1c61
[ "Apache-2.0" ]
14
2019-12-05T12:14:05.000Z
2022-02-28T14:52:52.000Z
cherry/nn/__init__.py
acse-yl27218/cherry
5b349cae64b282facf5a874164690c06808b1c61
[ "Apache-2.0" ]
28
2019-09-17T02:25:46.000Z
2022-03-12T19:53:58.000Z
#!/usr/bin/env python3 from .init import robotics_init_ from .robotics_layers import RoboticsLinear from .epsilon_greedy import EpsilonGreedy
20.571429
43
0.833333
0
0
0
0
0
0
0
0
22
0.152778
172924a6a260577eee406ab8308643a692027ef4
1,897
py
Python
src/management_tools.py
EOEPCA/um-pep-engine
efdf87027b54efc5686b3abd3882095441994978
[ "Apache-2.0" ]
null
null
null
src/management_tools.py
EOEPCA/um-pep-engine
efdf87027b54efc5686b3abd3882095441994978
[ "Apache-2.0" ]
3
2021-04-12T11:40:39.000Z
2022-03-08T17:04:03.000Z
src/management_tools.py
EOEPCA/um-pep-engine
efdf87027b54efc5686b3abd3882095441994978
[ "Apache-2.0" ]
1
2020-07-22T10:35:58.000Z
2020-07-22T10:35:58.000Z
#!/usr/local/bin/python3 import argparse import sys from handlers.mongo_handler import Mongo_Handler from bson.json_util import dumps custom_mongo = Mongo_Handler("resource_db", "resources") def list_resources(user,resource): if resource is not None: return custom_mongo.get_from_mongo("resource_id", resou...
33.875
84
0.641539
0
0
0
0
0
0
0
0
491
0.25883
1729bc1792141e43d686d08430a38150299f5fe9
56
py
Python
Web/venv/lib/python3.5/os.py
Pancras-Zheng/Graduation-Project
5d1ae78d5e890fa7ecc2456d0d3d22bdea7c29f0
[ "MIT" ]
37
2018-01-25T03:14:24.000Z
2021-12-15T10:02:37.000Z
Web/venv/lib/python3.5/os.py
Pancras-Zheng/Graduation-Project
5d1ae78d5e890fa7ecc2456d0d3d22bdea7c29f0
[ "MIT" ]
null
null
null
Web/venv/lib/python3.5/os.py
Pancras-Zheng/Graduation-Project
5d1ae78d5e890fa7ecc2456d0d3d22bdea7c29f0
[ "MIT" ]
10
2019-04-11T07:27:10.000Z
2021-11-24T11:16:14.000Z
IntxLNK/usr/lib/python3.5/os.py
56
56
0.446429
0
0
0
0
0
0
0
0
0
0
172a85f182f53fccf2d57615f7dc161c29331240
2,310
py
Python
python/speaker_2_sound.py
now-start/20_HI001L_-
494607c21a17c093e0d6bad102416c1afa348982
[ "MIT" ]
null
null
null
python/speaker_2_sound.py
now-start/20_HI001L_-
494607c21a17c093e0d6bad102416c1afa348982
[ "MIT" ]
null
null
null
python/speaker_2_sound.py
now-start/20_HI001L_-
494607c21a17c093e0d6bad102416c1afa348982
[ "MIT" ]
null
null
null
# speaker_2_sound.py # 한 스피커로 녹음해서 정위상, 역위상 wav를 생성한 다음 정위상은 왼쪽, 역위상은 오른쪽 스피커에서 재생시키는 소스코드 # (정위상, 역위상 파일을 하나의 스테레오 wav로 만듦) # 음성(소음) 녹음, 재생 하는 패키지(wav파일) import pyaudio import wave # 위상 반전, 파장 결합(Merge), 소리 재생 하는 패키지 from pydub import AudioSegment from pydub.playback import play from scipy.io import wavfile import...
23.814433
74
0.713853
0
0
0
0
0
0
0
0
1,553
0.544149
172ae13c89d09756ca732a1e61abb2c47a124303
263
py
Python
exercicios/ex008.py
thiago5171/python.
92010818bb18ac906a79da762cd7cf219b308a6d
[ "MIT" ]
1
2021-01-04T05:33:32.000Z
2021-01-04T05:33:32.000Z
exercicios/ex008.py
thiago5171/python.
92010818bb18ac906a79da762cd7cf219b308a6d
[ "MIT" ]
null
null
null
exercicios/ex008.py
thiago5171/python.
92010818bb18ac906a79da762cd7cf219b308a6d
[ "MIT" ]
null
null
null
#Crie um programa que leia quanto dinheiro uma pessoa tem na carteira e mostre quantos dólares ela pode comprar. real = float(input("quantos reais voce tem na carteira: R$")) dolar = real/5.31 print("com R${:.2f} voce pode comprar U${:.2f}.".format(real,dolar))
65.75
112
0.730038
0
0
0
0
0
0
0
0
196
0.742424
172d04249db22c0e936f3d55daaddef381d26533
1,230
py
Python
demo_wait_negative.py
rdagger/micropython-ads1220
c90f939517c8163b234210b8cf91b3ce948b5b1c
[ "MIT" ]
2
2021-08-25T11:40:23.000Z
2022-02-28T05:31:18.000Z
demo_wait_negative.py
rdagger/micropython-ads1220
c90f939517c8163b234210b8cf91b3ce948b5b1c
[ "MIT" ]
null
null
null
demo_wait_negative.py
rdagger/micropython-ads1220
c90f939517c8163b234210b8cf91b3ce948b5b1c
[ "MIT" ]
1
2021-08-08T11:39:47.000Z
2021-08-08T11:39:47.000Z
"""ADS1220 example (monitor for negative voltage).""" from time import sleep from machine import Pin, SPI # type: ignore from ads1220 import ADC cs = 15 # Chip select pin drdy = 27 # Data ready pin spi = SPI(1, baudrate=10000000, # 10 MHz (try lower speed to troubleshoot) sck=Pin(14), ...
26.73913
72
0.598374
0
0
0
0
0
0
0
0
432
0.35122
172ec1ffd20a09752459f22ce0256f74dd0dd346
10,026
py
Python
models/unet.py
c22n/unet-pytorch
fc0db7ca69d4149c736b8d0923272f14fb5693fe
[ "MIT" ]
3
2018-03-10T05:48:42.000Z
2018-07-25T01:18:30.000Z
models/unet.py
c22n/unet-pytorch
fc0db7ca69d4149c736b8d0923272f14fb5693fe
[ "MIT" ]
null
null
null
models/unet.py
c22n/unet-pytorch
fc0db7ca69d4149c736b8d0923272f14fb5693fe
[ "MIT" ]
null
null
null
### Class to define 3D U-Net. from typing import List, Tuple import numpy as np import torch from torch.autograd import Variable import torch.nn as nn import torch.nn.functional as F from models.custom_layers import Softmax3d class AnalysisLayer(nn.Module): """Module for analysis layer of U-Net architecture."""...
35.679715
80
0.555855
9,786
0.976062
0
0
0
0
0
0
3,161
0.31528
172edcbd3b6c7bbc0d143811122621972d076286
27
py
Python
July21/EssentialPython/helloworld/helloworld.py
pythonbykhaja/intesivepython
d3074f35bf36a04d4d1d9b4ff4631733d40b5817
[ "Apache-2.0" ]
2
2021-05-29T18:21:50.000Z
2021-07-24T13:03:30.000Z
July21/EssentialPython/helloworld/helloworld.py
pythonbykhaja/intesivepython
d3074f35bf36a04d4d1d9b4ff4631733d40b5817
[ "Apache-2.0" ]
null
null
null
July21/EssentialPython/helloworld/helloworld.py
pythonbykhaja/intesivepython
d3074f35bf36a04d4d1d9b4ff4631733d40b5817
[ "Apache-2.0" ]
2
2021-05-25T10:19:54.000Z
2021-09-21T12:20:48.000Z
print('Hello World Python')
27
27
0.777778
0
0
0
0
0
0
0
0
20
0.740741
172ef675f698c4e9cb851c5bc1b93239e2fc79c9
29,343
py
Python
EBC/python/antchain_sdk_ebc/client.py
alipay/antchain-openapi-prod-sdk
f78549e5135d91756093bd88d191ca260b28e083
[ "MIT" ]
6
2020-06-28T06:40:50.000Z
2022-02-25T11:02:18.000Z
EBC/python/antchain_sdk_ebc/client.py
alipay/antchain-openapi-prod-sdk
f78549e5135d91756093bd88d191ca260b28e083
[ "MIT" ]
null
null
null
EBC/python/antchain_sdk_ebc/client.py
alipay/antchain-openapi-prod-sdk
f78549e5135d91756093bd88d191ca260b28e083
[ "MIT" ]
6
2020-06-30T09:29:03.000Z
2022-01-07T10:42:22.000Z
# -*- coding: utf-8 -*- # This file is auto-generated, don't edit it. Thanks. import time from alibabacloud_tea_util.client import Client as UtilClient from Tea.exceptions import TeaException from Tea.request import TeaRequest from Tea.core import TeaCore from antchain_alipay_util.client import Client as AlipayUtilCli...
36.496269
198
0.638619
30,729
0.982542
0
0
0
0
0
0
10,322
0.33004
172f8a9f9d9a0517d21ee1677c5f4b5838bfbc9b
2,560
py
Python
scripts/hcmetanode/utils.py
HolisticCoders/metanode
5e63fadc74eeb634722e12c2bcdc45ca0688087e
[ "MIT" ]
null
null
null
scripts/hcmetanode/utils.py
HolisticCoders/metanode
5e63fadc74eeb634722e12c2bcdc45ca0688087e
[ "MIT" ]
null
null
null
scripts/hcmetanode/utils.py
HolisticCoders/metanode
5e63fadc74eeb634722e12c2bcdc45ca0688087e
[ "MIT" ]
null
null
null
import maya.api.OpenMaya as om2 import maya.cmds as cmds def get_uuid(mobject): """Return a `maya.api.OpenMaya.MObject` UUID. Args: mobject (maya.api.OpenMaya.MObject): MObject to get the UUID of. Returns: str: The MObject UUID. """ return om2.MFnDependencyNode(mobject).uuid().as...
26.666667
81
0.621484
0
0
0
0
0
0
0
0
1,571
0.613672
1731602b3f7eea63308baa2e86c34fe547fe10ff
812
py
Python
matrix/matrix.py
GlibGozer/Matrix
5bc978a47a63ccf51b0be01ab28f5eca5819bcba
[ "Apache-2.0" ]
null
null
null
matrix/matrix.py
GlibGozer/Matrix
5bc978a47a63ccf51b0be01ab28f5eca5819bcba
[ "Apache-2.0" ]
null
null
null
matrix/matrix.py
GlibGozer/Matrix
5bc978a47a63ccf51b0be01ab28f5eca5819bcba
[ "Apache-2.0" ]
null
null
null
import os import random from discord.ext import commands from dotenv import load_dotenv load_dotenv() TOKEN = os.getenv('DISCORD_TOKEN') bot = commands.Bot(command_prefix='m!') @bot.command(name='compliment', help='Makes you feel better') async def nine_nine(ctx): compliments = [ 'Everyone...
27.066667
92
0.652709
0
0
0
0
598
0.736453
523
0.644089
305
0.375616
173361be9e30006fffba077574f0e94fd3d9ef74
1,602
py
Python
utils/plotting.py
marcelo-santos-12/lbp_paper
56d2457dce2c97a16de9e034b1a87ef0ceb9446a
[ "MIT" ]
null
null
null
utils/plotting.py
marcelo-santos-12/lbp_paper
56d2457dce2c97a16de9e034b1a87ef0ceb9446a
[ "MIT" ]
null
null
null
utils/plotting.py
marcelo-santos-12/lbp_paper
56d2457dce2c97a16de9e034b1a87ef0ceb9446a
[ "MIT" ]
null
null
null
''' Modulo que implementa as funcoes de plot da curva roc ''' import matplotlib.pyplot as plt import numpy as np import os from sklearn.metrics import plot_roc_curve plt.style.use('ggplot') def plot_results(_id, best_clf, x_test, y_test, method, variant, P, R, output): if not os.path.exists(output + '/ARR_ROC/...
36.409091
125
0.632959
0
0
0
0
0
0
0
0
416
0.259675
17352702a9e2965909b6092dc8c8e7e3c676d60c
552
py
Python
tests/algorithms/test_rice_siff.py
rvyjidacek/fcapsy
6d531a337b0e65cac10e41b84d232498f3a05b76
[ "MIT" ]
null
null
null
tests/algorithms/test_rice_siff.py
rvyjidacek/fcapsy
6d531a337b0e65cac10e41b84d232498f3a05b76
[ "MIT" ]
null
null
null
tests/algorithms/test_rice_siff.py
rvyjidacek/fcapsy
6d531a337b0e65cac10e41b84d232498f3a05b76
[ "MIT" ]
null
null
null
from fcapsy import Lattice, Context, Concept from fcapsy.similarity import jaccard from fcapsy.algorithms.rice_siff import concept_subset object_labels = tuple(range(5)) attribute_labels = tuple(range(4)) bools = [ [1, 0, 0, 0], [1, 1, 1, 0], [0, 1, 0, 1], [1, 1, 0, 0], [0, 0, 1, 0], ] context = Co...
24
57
0.682971
0
0
0
0
0
0
0
0
0
0
17363b957c4247dd1d67870327e5ffafa8e428ab
17,766
py
Python
examples/direct_fidelity_estimation.py
Apratim7py/Cirq
90bbd14f352980cc222b1b3c05a40d09734b9070
[ "Apache-2.0" ]
null
null
null
examples/direct_fidelity_estimation.py
Apratim7py/Cirq
90bbd14f352980cc222b1b3c05a40d09734b9070
[ "Apache-2.0" ]
null
null
null
examples/direct_fidelity_estimation.py
Apratim7py/Cirq
90bbd14f352980cc222b1b3c05a40d09734b9070
[ "Apache-2.0" ]
null
null
null
"""Implements direct fidelity estimation. Fidelity between the desired pure state rho and the actual state sigma is defined as: F(rho, sigma) = Tr (rho sigma) It is a unit-less measurement between 0.0 and 1.0. The following two papers independently described a faster way to estimate its value: Direct Fidelity Estima...
38.960526
80
0.647923
1,565
0.08809
0
0
1,598
0.089947
1,145
0.064449
8,163
0.459473
1738bf0d16768883469e7f50b35ee82154920665
3,364
py
Python
large_data_analysis/treePlotter.py
Codefans-fan/p2pSpider
2f76fb43f3527cea8ed208089153ec12660907f4
[ "MIT" ]
null
null
null
large_data_analysis/treePlotter.py
Codefans-fan/p2pSpider
2f76fb43f3527cea8ed208089153ec12660907f4
[ "MIT" ]
null
null
null
large_data_analysis/treePlotter.py
Codefans-fan/p2pSpider
2f76fb43f3527cea8ed208089153ec12660907f4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ''' Created on Mar 21, 2016 @author: fky ''' import matplotlib.pyplot as plt decisionNode = dict(boxstyle='sawtooth',fc='0.8') leafNode = dict(boxstyle='round4',fc='0.8') arrow_args = dict(arrowstyle='<-') def plotNode(nodeTxt,centerPt,parentPt,nodeType): createPlot.ax1.annot...
32.660194
117
0.612663
0
0
0
0
0
0
0
0
309
0.091855
1738c203fb24e9f67f6c94adff022615f21af1f8
1,197
py
Python
test/regexp/python2.py
kylebarron/MagicPython
da6fa0793e2c85d3bf7709ff1d4f65ccf468db11
[ "MIT" ]
1,482
2015-10-16T21:59:32.000Z
2022-03-30T11:44:40.000Z
test/regexp/python2.py
kylebarron/MagicPython
da6fa0793e2c85d3bf7709ff1d4f65ccf468db11
[ "MIT" ]
226
2015-10-15T15:53:44.000Z
2022-03-25T03:08:27.000Z
test/regexp/python2.py
kylebarron/MagicPython
da6fa0793e2c85d3bf7709ff1d4f65ccf468db11
[ "MIT" ]
129
2015-10-20T02:41:49.000Z
2022-03-22T01:44:36.000Z
a = r' (?x) foo ' # comment a : source.python : source.python = : keyword.operator.assignment.python, source.python : source.python r : source.python, storage.type.string.python, string.regexp.quoted.single.python ' : punctuation...
44.333333
112
0.636591
0
0
0
0
0
0
0
0
110
0.091896
173aba7575e11f2aa772e0bbb6d68ec87ccc6080
162,093
py
Python
envanter.py
yhasansenyurt/InventoryManagementSoftware-DepoTakipYazilimi
87633f3764b3e25d4050904ee7eeb9f410f562e3
[ "MIT" ]
null
null
null
envanter.py
yhasansenyurt/InventoryManagementSoftware-DepoTakipYazilimi
87633f3764b3e25d4050904ee7eeb9f410f562e3
[ "MIT" ]
null
null
null
envanter.py
yhasansenyurt/InventoryManagementSoftware-DepoTakipYazilimi
87633f3764b3e25d4050904ee7eeb9f410f562e3
[ "MIT" ]
null
null
null
# This program is made by Hasan Senyurt for ISTAC A.S. - Inventory Management Software from tkinter import * import pandas as pd from tkinter import ttk from tkinter import messagebox from datetime import datetime import getpass ############################################################ # Arranging row co...
46.391815
246
0.518036
0
0
0
0
0
0
0
0
32,778
0.201608
173b7808d08e95948766b0c4a6adf14d2495a6e0
2,164
py
Python
frog/management/commands/add_release_notes.py
dreamhaven/Frog
66e50610d5059aa371e0a50b65ceddd4813b2bc1
[ "MIT" ]
3
2021-10-03T23:11:24.000Z
2021-10-04T12:14:56.000Z
frog/management/commands/add_release_notes.py
dreamhaven/Frog
66e50610d5059aa371e0a50b65ceddd4813b2bc1
[ "MIT" ]
7
2021-03-18T20:43:09.000Z
2022-02-10T10:06:24.000Z
frog/management/commands/add_release_notes.py
dreamhaven/Frog
66e50610d5059aa371e0a50b65ceddd4813b2bc1
[ "MIT" ]
1
2020-09-30T11:23:55.000Z
2020-09-30T11:23:55.000Z
################################################################################################## # Copyright (c) 2012 Brett Dixon # # 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 r...
42.431373
123
0.65342
675
0.311922
0
0
0
0
0
0
1,422
0.657116
173d06acf3cf5bd7493cf25b0c6f41cbc47cf052
977
py
Python
corpus/exceptions.py
looselycoupled/partisan-discourse
8579924094c92e25e21ce59a26232269cf6b34bc
[ "Apache-2.0" ]
25
2017-02-27T19:44:23.000Z
2021-04-11T00:11:49.000Z
corpus/exceptions.py
looselycoupled/partisan-discourse
8579924094c92e25e21ce59a26232269cf6b34bc
[ "Apache-2.0" ]
26
2016-07-16T15:41:07.000Z
2016-10-11T16:44:04.000Z
corpus/exceptions.py
looselycoupled/partisan-discourse
8579924094c92e25e21ce59a26232269cf6b34bc
[ "Apache-2.0" ]
9
2016-08-08T17:19:34.000Z
2020-03-04T00:31:26.000Z
# corpus.exceptions # Custom exceptions for corpus handling. # # Author: Benjamin Bengfort <bbengfort@districtdatalabs.com> # Created: Mon Jul 18 09:57:26 2016 -0400 # # Copyright (C) 2016 District Data Labs # For license information, see LICENSE.txt # # ID: exceptions.py [63935bc] benjamin@bengfort.com $ """ Custo...
21.23913
74
0.579324
436
0.446264
0
0
0
0
0
0
757
0.774821
173d794fa36219432d2bd1e7a2317117f2a2f269
2,617
py
Python
protogen/core.py
connermarzen/proto_gen_compiler
38c045dcf90dcf3122dcc389c9ff0e200f9ba21d
[ "MIT" ]
null
null
null
protogen/core.py
connermarzen/proto_gen_compiler
38c045dcf90dcf3122dcc389c9ff0e200f9ba21d
[ "MIT" ]
null
null
null
protogen/core.py
connermarzen/proto_gen_compiler
38c045dcf90dcf3122dcc389c9ff0e200f9ba21d
[ "MIT" ]
null
null
null
import glob import os import sys from pprint import pprint from typing import List from lark import Lark from protogen.grammar.transformer import PGTransformer from protogen.util import PGFile class PGParser(object): def __init__(self, inputs: List[str], syntaxPath: str = 'grammar/proto_gen.lar...
34.434211
79
0.549866
2,419
0.924341
0
0
0
0
0
0
674
0.257547
173e0d807440fb436cd40c600fbbb74b5622d72c
6,145
py
Python
shell/packaging/setup.py
garyli1019/impala
ea0e1def6160d596082b01365fcbbb6e24afb21d
[ "Apache-2.0" ]
null
null
null
shell/packaging/setup.py
garyli1019/impala
ea0e1def6160d596082b01365fcbbb6e24afb21d
[ "Apache-2.0" ]
1
2022-03-29T21:58:11.000Z
2022-03-29T21:58:11.000Z
shell/packaging/setup.py
garyli1019/impala
ea0e1def6160d596082b01365fcbbb6e24afb21d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache Licen...
36.147059
84
0.706591
0
0
0
0
0
0
0
0
4,212
0.685435
173fffe9dd2206a27daccda030af3e72d01cef25
26
py
Python
behavior/scripts/main.py
SettingDust/more-chicken
3816b4f37ed3b6c115dfa9001ec6554b1d69af81
[ "Apache-2.0" ]
null
null
null
behavior/scripts/main.py
SettingDust/more-chicken
3816b4f37ed3b6c115dfa9001ec6554b1d69af81
[ "Apache-2.0" ]
null
null
null
behavior/scripts/main.py
SettingDust/more-chicken
3816b4f37ed3b6c115dfa9001ec6554b1d69af81
[ "Apache-2.0" ]
1
2020-10-19T15:32:23.000Z
2020-10-19T15:32:23.000Z
from common.mod import Mod
26
26
0.846154
0
0
0
0
0
0
0
0
0
0
17413f1105780124aeb9ff0b2dc920d49197a4fb
1,453
py
Python
tripled/stack/node.py
yeasy/tripled
2cb1ed9a0455353d39662e5d2043ff76a75b092f
[ "Apache-2.0" ]
1
2018-06-09T03:45:49.000Z
2018-06-09T03:45:49.000Z
tripled/stack/node.py
yeasy/tripled
2cb1ed9a0455353d39662e5d2043ff76a75b092f
[ "Apache-2.0" ]
null
null
null
tripled/stack/node.py
yeasy/tripled
2cb1ed9a0455353d39662e5d2043ff76a75b092f
[ "Apache-2.0" ]
null
null
null
__author__ = 'baohua' from subprocess import PIPE, Popen from tripled.common.constants import NODE_ROLES class Node(object): """ An instance of the server in the stack. """ def __init__(self, ip, role): self.ip = ip self.role = NODE_ROLES.get(role, NODE_ROLES['compute']) def is...
22.703125
86
0.589814
1,263
0.869236
0
0
0
0
0
0
569
0.391604
17423e053f3c9b2038d99ecf3e00f75df52099d6
1,814
py
Python
opencv-2.4.11/samples/python/convexhull.py
durai-chellamuthu/node-opencv
a9c18c77b2fe0f62f2f8376854bdf33de71f5dc3
[ "MIT" ]
55
2015-06-20T20:15:33.000Z
2022-02-10T02:45:14.000Z
opencv-2.4.11/samples/python/convexhull.py
durai-chellamuthu/node-opencv
a9c18c77b2fe0f62f2f8376854bdf33de71f5dc3
[ "MIT" ]
8
2015-06-20T18:46:52.000Z
2015-10-31T11:08:04.000Z
opencv-2.4.11/samples/python/convexhull.py
durai-chellamuthu/node-opencv
a9c18c77b2fe0f62f2f8376854bdf33de71f5dc3
[ "MIT" ]
73
2015-06-20T15:59:27.000Z
2020-03-15T22:43:36.000Z
#! /usr/bin/env python print "OpenCV Python version of convexhull" # import the necessary things for OpenCV import cv2.cv as cv # to generate random values import random # how many points we want at max _MAX_POINTS = 100 if __name__ == '__main__': # main object to get random values from my_random = random...
27.484848
75
0.574972
0
0
0
0
0
0
0
0
638
0.351709
17435a67c44ac869cb192970c53155e65fc347af
8,912
py
Python
WN.py
neyudin/wavenetglow
3261dd8163709b2204b1c9ba90bc544755439fa5
[ "BSD-3-Clause" ]
null
null
null
WN.py
neyudin/wavenetglow
3261dd8163709b2204b1c9ba90bc544755439fa5
[ "BSD-3-Clause" ]
2
2020-01-28T22:48:08.000Z
2020-03-03T16:25:33.000Z
WN.py
neyudin/wavenetglow
3261dd8163709b2204b1c9ba90bc544755439fa5
[ "BSD-3-Clause" ]
null
null
null
import torch import torch.nn as nn class WN(torch.nn.Module): """ WN block for affine coupling layer. Actual version """ def __init__(self, num_channels, mel_channels, n_layers=8, residual_channels=512, gate_channels=256, skip_channels=256): """ Parameters ...
36.080972
108
0.546118
8,951
0.99544
0
0
0
0
0
0
2,238
0.248888
174437ebe7a3e726cb780435f71ba8286739cd0d
27,514
py
Python
mavsdk/mission_raw_server_pb2.py
PML-UCF/MAVSDK-Python
a328834518621842f530804572ecb3baeec31805
[ "BSD-3-Clause" ]
null
null
null
mavsdk/mission_raw_server_pb2.py
PML-UCF/MAVSDK-Python
a328834518621842f530804572ecb3baeec31805
[ "BSD-3-Clause" ]
null
null
null
mavsdk/mission_raw_server_pb2.py
PML-UCF/MAVSDK-Python
a328834518621842f530804572ecb3baeec31805
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: mission_raw_server/mission_raw_server.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _me...
39.702742
2,987
0.775096
0
0
0
0
0
0
0
0
8,873
0.32249
17447407c571b28418fb7fbb866da851ca2f25a2
1,420
py
Python
tests/surf_curl_methods.py
jlmaurer/tectosaur
7cc5606d814f061395b19754e7a4b6c5e4c236e5
[ "MIT" ]
17
2017-06-29T16:48:56.000Z
2021-10-03T18:31:41.000Z
tests/surf_curl_methods.py
jlmaurer/tectosaur
7cc5606d814f061395b19754e7a4b6c5e4c236e5
[ "MIT" ]
4
2018-05-29T08:21:13.000Z
2021-04-01T01:28:50.000Z
tests/surf_curl_methods.py
jlmaurer/tectosaur
7cc5606d814f061395b19754e7a4b6c5e4c236e5
[ "MIT" ]
8
2019-06-10T22:19:40.000Z
2022-01-12T20:55:37.000Z
import numpy as np basis_gradient = [[-1.0, -1.0], [1.0, 0.0], [0.0, 1.0]] e = [[[int((i - j) * (j - k) * (k - i) / 2) for k in range(3)] for j in range(3)] for i in range(3)] tri = np.random.rand(3,3) # tri = np.array([[0,0,0],[1.1,0,0],[0,1.1,0]]) # tri = np.array([[0,0,0],[1,1,0],[0,1,0]]) surf_curl = np.empt...
28.4
102
0.607042
0
0
0
0
0
0
0
0
90
0.06338
1745411ed8dd4e2c057611bffced47e22e3caab1
1,119
py
Python
ga4gh/testbed/submit/report_submitter.py
ga4gh/ga4gh-testbed-lib
599bb28e58c82e30058239e04525fba313a4bae4
[ "Apache-2.0" ]
null
null
null
ga4gh/testbed/submit/report_submitter.py
ga4gh/ga4gh-testbed-lib
599bb28e58c82e30058239e04525fba313a4bae4
[ "Apache-2.0" ]
3
2022-03-21T18:30:27.000Z
2022-03-30T18:04:05.000Z
ga4gh/testbed/submit/report_submitter.py
ga4gh/ga4gh-testbed-lib
599bb28e58c82e30058239e04525fba313a4bae4
[ "Apache-2.0" ]
null
null
null
from re import sub import requests class ReportSubmitter(): def submit_report(series_id, series_token, report, url="http://localhost:4500/reports"): ''' Submits a report to the GA4GH testbed api. Required arguments: series_id - A series ID is needed by server to group...
33.909091
107
0.613941
1,081
0.966041
0
0
0
0
0
0
519
0.463807
17458c0950b3d6fa10192f5ac3b3e23c730302f2
1,611
py
Python
phovea_server/_utils.py
phovea/phovea_server
f83879f58669ff4d554efcb727b1c6fd0185041a
[ "BSD-3-Clause" ]
3
2018-06-08T01:28:56.000Z
2020-01-10T14:17:34.000Z
phovea_server/_utils.py
phovea/phovea_server
f83879f58669ff4d554efcb727b1c6fd0185041a
[ "BSD-3-Clause" ]
88
2016-11-06T08:28:21.000Z
2022-03-22T07:18:59.000Z
phovea_server/_utils.py
phovea/phovea_server
f83879f58669ff4d554efcb727b1c6fd0185041a
[ "BSD-3-Clause" ]
6
2017-06-06T20:43:00.000Z
2020-02-13T18:23:46.000Z
############################################################################### # Caleydo - Visualization for Molecular Biology - http://caleydo.org # Copyright (c) The Caleydo Team. All rights reserved. # Licensed under the new BSD license, available at http://caleydo.org/license ######################################...
26.85
79
0.577902
0
0
0
0
0
0
0
0
508
0.315332
17479b6aa39e88b50ca6246c79ded1da0b011cc9
1,785
py
Python
ait/core/server/plugins/PacketAccumulator.py
kmarwah/AIT-Core
c7af2ff58f51ba3c3d66cb28fbfe80c3b0712245
[ "MIT" ]
1
2022-01-22T13:55:49.000Z
2022-01-22T13:55:49.000Z
ait/core/server/plugins/PacketAccumulator.py
kmarwah/AIT-Core
c7af2ff58f51ba3c3d66cb28fbfe80c3b0712245
[ "MIT" ]
2
2021-09-16T19:14:52.000Z
2021-09-16T19:16:03.000Z
ait/core/server/plugins/PacketAccumulator.py
kmarwah/AIT-Core
c7af2ff58f51ba3c3d66cb28fbfe80c3b0712245
[ "MIT" ]
null
null
null
from ait.core.server.plugins import Plugin from gevent import Greenlet, sleep class PacketAccumulator(Plugin): def __init__(self, inputs=None, outputs=None, zmq_args=None, timer_seconds=1, max_size_octets=1024): super().__init__(inputs, outputs, zmq_args) self.packet_queue = [] self.size_...
34.326923
104
0.615126
1,704
0.954622
0
0
0
0
0
0
301
0.168627
17481e10b622b0efff0974078b54a915260f2fb9
294
py
Python
tests/test_crv/test_crv.py
cmarqu/cocotb-coverage
8e8e769e3df01798f88ab633bfe464f5b3884d55
[ "BSD-2-Clause" ]
null
null
null
tests/test_crv/test_crv.py
cmarqu/cocotb-coverage
8e8e769e3df01798f88ab633bfe464f5b3884d55
[ "BSD-2-Clause" ]
null
null
null
tests/test_crv/test_crv.py
cmarqu/cocotb-coverage
8e8e769e3df01798f88ab633bfe464f5b3884d55
[ "BSD-2-Clause" ]
null
null
null
import cocotb import unittest import crv_unittest from cocotb.triggers import Timer @cocotb.test() def test_crv(dut): suite = unittest.TestSuite() suite.addTests(unittest.TestLoader().loadTestsFromModule(crv_unittest)) unittest.TextTestRunner().run(suite) yield Timer(1000)
22.615385
76
0.765306
0
0
192
0.653061
207
0.704082
0
0
0
0
174851ae78f447b7133dd774eabe7edf75caa7c7
3,679
py
Python
services/ui_backend_service/data/cache/generate_dag_action.py
runsascoded/metaflow-service
ac7770dfeae17fd060129d408fa3bb472fc00b86
[ "Apache-2.0" ]
null
null
null
services/ui_backend_service/data/cache/generate_dag_action.py
runsascoded/metaflow-service
ac7770dfeae17fd060129d408fa3bb472fc00b86
[ "Apache-2.0" ]
null
null
null
services/ui_backend_service/data/cache/generate_dag_action.py
runsascoded/metaflow-service
ac7770dfeae17fd060129d408fa3bb472fc00b86
[ "Apache-2.0" ]
null
null
null
import hashlib import json from .client import CacheAction from .utils import streamed_errors, DAGParsingFailed, DAGUnsupportedFlowLanguage from .custom_flowgraph import FlowGraph from metaflow import Run, Step, DataArtifact, namespace from metaflow.exception import MetaflowNotFound namespace(None) # Always use glo...
29.669355
101
0.583582
2,503
0.680348
74
0.020114
1,713
0.465616
0
0
1,259
0.342213
1749ab03881bd2e5bd99504afb6c2d2a4c5881b2
3,803
py
Python
examples/nontrivial/main.py
splnkit/splunk-tracer-python
4be681cbb4156284daaaa35dcca8c8992f1aa191
[ "MIT" ]
null
null
null
examples/nontrivial/main.py
splnkit/splunk-tracer-python
4be681cbb4156284daaaa35dcca8c8992f1aa191
[ "MIT" ]
null
null
null
examples/nontrivial/main.py
splnkit/splunk-tracer-python
4be681cbb4156284daaaa35dcca8c8992f1aa191
[ "MIT" ]
null
null
null
""" Synthetic example with high concurrency. Used primarily to stress test the library. """ import argparse import sys import time import threading import random # Comment out to test against the published copy import os sys.path.insert(1, os.path.dirname(os.path.realpath(__file__)) + '/../..') import opentracing imp...
34.572727
110
0.608467
0
0
0
0
0
0
0
0
1,052
0.276624
174c839ee6b2c3dcc46328886c1e0ff5e1298c8c
2,773
py
Python
pyoti/plugins/datasources/generic.py
cellular-nanoscience/pyotic
4cf68d4fd4efe2f1cbb4bb6fd61a66af0d15eaff
[ "Apache-2.0" ]
1
2018-06-12T11:46:54.000Z
2018-06-12T11:46:54.000Z
pyoti/plugins/datasources/generic.py
cellular-nanoscience/pyotic
4cf68d4fd4efe2f1cbb4bb6fd61a66af0d15eaff
[ "Apache-2.0" ]
6
2017-09-08T09:02:20.000Z
2018-11-14T10:22:01.000Z
pyoti/plugins/datasources/generic.py
cellular-nanoscience/pyotic
4cf68d4fd4efe2f1cbb4bb6fd61a66af0d15eaff
[ "Apache-2.0" ]
3
2017-09-08T11:08:28.000Z
2019-07-17T21:40:13.000Z
# -*- coding: utf-8 -*- """ Created on Fri Mar 18 13:41:17 2016 @author: Tobias Jachowski """ import inspect import numbers from pyoti.data.datasource import DataSource from pyoti.picklable import unboundfunction class GenericDataFile(DataSource): def __init__(self, load_data, filename, directory=None, sampling...
33.011905
77
0.573026
2,552
0.920303
0
0
0
0
0
0
554
0.199784
174dc1f508c7bead5580d0a22374724068ce4f6c
4,721
py
Python
src/matlab2cpp/rules/parallel.py
neilferg/matlab2cpp
aa26671fc73dad297c977511053b076e05bdd2df
[ "BSD-3-Clause" ]
null
null
null
src/matlab2cpp/rules/parallel.py
neilferg/matlab2cpp
aa26671fc73dad297c977511053b076e05bdd2df
[ "BSD-3-Clause" ]
null
null
null
src/matlab2cpp/rules/parallel.py
neilferg/matlab2cpp
aa26671fc73dad297c977511053b076e05bdd2df
[ "BSD-3-Clause" ]
null
null
null
def variable_lists(node): nodes = node.flatten(ordered=False, reverse=False, inverse=False) #store some variable names, in private or shared assigned_var = [] type_info = [] #get iterator name iterator_name = node[0].name for n in nodes: if n.cls == "Assign": #index = ...
33.964029
100
0.528278
0
0
0
0
0
0
0
0
2,343
0.496293
174dd47506793e6d8f38f7f917f3d5a1459219eb
1,154
py
Python
test/test_clock.py
Ham22/python-as1130-clock
a97fbdf3d0fe5a9cafa7392458c44782f688daa7
[ "Apache-2.0" ]
null
null
null
test/test_clock.py
Ham22/python-as1130-clock
a97fbdf3d0fe5a9cafa7392458c44782f688daa7
[ "Apache-2.0" ]
null
null
null
test/test_clock.py
Ham22/python-as1130-clock
a97fbdf3d0fe5a9cafa7392458c44782f688daa7
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 import unittest from unittest.mock import MagicMock, call from clock import clock class TestClock(unittest.TestCase): def setUp(self): self.grid = MagicMock() self.clock = clock.Clock(self.grid) def test_grid_is_cleared_before_setting_new_led(self): self.clock.up...
26.227273
67
0.681109
999
0.865685
0
0
0
0
0
0
28
0.024263
174f039433c2e09bc4b24b82001c92bcb71f38f0
2,580
py
Python
opencv/crop_youtube_video_screenshots.py
kinow/dork-scripts
a4fa7980a8cdff41df806bb4d4b70f7b4ac89349
[ "CC-BY-4.0" ]
1
2016-08-07T07:45:24.000Z
2016-08-07T07:45:24.000Z
opencv/crop_youtube_video_screenshots.py
kinow/dork-scripts
a4fa7980a8cdff41df806bb4d4b70f7b4ac89349
[ "CC-BY-4.0" ]
null
null
null
opencv/crop_youtube_video_screenshots.py
kinow/dork-scripts
a4fa7980a8cdff41df806bb4d4b70f7b4ac89349
[ "CC-BY-4.0" ]
null
null
null
#!/usr/bin/env python3 """A script to iterate through directories and produce cropped images. The images contain the video screen area of YouTube videos. The screenshots were taken from my computer, with 900/1600 resolution, and the location is always the same for the ROI. Ideally a future version will automatically...
32.25
103
0.660465
0
0
0
0
0
0
1,586
0.614729
852
0.330233
1754169b8d71a433dcd5e77169d9d86236b1dbc6
336
py
Python
cartography/intel/jamf/__init__.py
Relys/cartography
0f71b3f0246665d5fa065afa2e3dc46c22d6c689
[ "Apache-2.0" ]
1
2021-03-26T12:00:26.000Z
2021-03-26T12:00:26.000Z
cartography/intel/jamf/__init__.py
srics/cartography
19a06766e304d657d956246179a2bb01a6d9aef6
[ "Apache-2.0" ]
1
2021-02-23T18:08:04.000Z
2021-03-31T08:17:23.000Z
cartography/intel/jamf/__init__.py
srics/cartography
19a06766e304d657d956246179a2bb01a6d9aef6
[ "Apache-2.0" ]
1
2021-03-31T17:55:31.000Z
2021-03-31T17:55:31.000Z
from cartography.intel.jamf import computers from cartography.util import timeit @timeit def start_jamf_ingestion(neo4j_session, config): common_job_parameters = { "UPDATE_TAG": config.update_tag, } computers.sync(neo4j_session, config.jamf_base_uri, config.jamf_user, config.jamf_password, common_...
30.545455
118
0.78869
0
0
0
0
252
0.75
0
0
12
0.035714
1754c01d73f56bdac624a68f9dd5e0ed03393ed4
1,297
py
Python
setup.py
carlosdamazio/python-aisweb
bc54e26b5ea758bcc69351d268a44e0b520d0956
[ "MIT" ]
8
2018-04-03T15:07:09.000Z
2022-03-13T13:12:45.000Z
setup.py
carlosdamazio/python-aisweb
bc54e26b5ea758bcc69351d268a44e0b520d0956
[ "MIT" ]
5
2018-04-03T20:09:24.000Z
2019-09-10T01:17:42.000Z
setup.py
carlosdamazio/python-aisweb
bc54e26b5ea758bcc69351d268a44e0b520d0956
[ "MIT" ]
1
2018-04-03T04:09:58.000Z
2018-04-03T04:09:58.000Z
# -*- coding: utf-8 -*- from setuptools import find_packages, setup import os import re package = 'python_aisweb' init_py = open(os.path.join(package, '__init__.py')).read() version = re.search( "^__version__ = ['\"]([^'\"]+)['\"]", init_py, re.MULTILINE).group(1) author = re.search( "^__author__ = ['\"]([^'...
27.595745
75
0.619121
0
0
0
0
0
0
0
0
508
0.391673
175519be4a7561f84e8552643f76c512dbaaf58b
1,254
py
Python
external_api_tests/test_weather.py
AbhinavTalari/SOAD-Project
aa89f481da2b6f29c8750d9c144f82368be81a7b
[ "MIT" ]
null
null
null
external_api_tests/test_weather.py
AbhinavTalari/SOAD-Project
aa89f481da2b6f29c8750d9c144f82368be81a7b
[ "MIT" ]
null
null
null
external_api_tests/test_weather.py
AbhinavTalari/SOAD-Project
aa89f481da2b6f29c8750d9c144f82368be81a7b
[ "MIT" ]
2
2020-12-21T07:05:41.000Z
2021-02-17T17:33:48.000Z
import pytest import requests MY_KEY = '02db6ca787d18d34175d3c7996cf193b' @pytest.mark.parametrize("key , q , extras" , [ (MY_KEY , "London" , "okay") , ('' , "London" , "Wrong key"), ('abc' , "London" , "Wrong key"), (MY_KEY , "abc" , "Wrong city"), (MY_KEY , " " , "blank city"), ('' ...
20.225806
116
0.596491
0
0
0
0
1,146
0.913876
0
0
547
0.436204