hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
086238b8496b8b21eb93e31ca11bc83d797337e6
14,542
py
Python
datalad/distributed/tests/test_ria_git_remote.py
soichih/datalad
797dde3ab7497be170e2c4ea8824f33a4b38e5d8
[ "MIT" ]
null
null
null
datalad/distributed/tests/test_ria_git_remote.py
soichih/datalad
797dde3ab7497be170e2c4ea8824f33a4b38e5d8
[ "MIT" ]
null
null
null
datalad/distributed/tests/test_ria_git_remote.py
soichih/datalad
797dde3ab7497be170e2c4ea8824f33a4b38e5d8
[ "MIT" ]
null
null
null
# emacs: -*- mode: python; py-indent-offset: 4; tab-width: 4; indent-tabs-mode: nil -*- # ex: set sts=4 ts=4 sw=4 et: # ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## # # See COPYING file distributed along with the datalad package for the # copyright and license terms. # # ## ### ### ...
41.3125
122
0.616078
08623d973bd485962c50274c6a52871cbbc2d6ff
6,838
py
Python
src/tfgarden/applications/mobilenet_v2.py
Shakshi3104/TensorFlow_CNN_Collections_for_HASC
5678ad6c6922880230ae0c1e7ec39f32e8012279
[ "MIT" ]
2
2021-12-09T13:03:20.000Z
2022-03-19T11:14:31.000Z
src/tfgarden/applications/mobilenet_v2.py
Shakshi3104/TensorFlow_CNN_Collections_for_HASC
5678ad6c6922880230ae0c1e7ec39f32e8012279
[ "MIT" ]
6
2021-06-05T08:42:28.000Z
2022-03-22T05:51:24.000Z
src/tfgarden/applications/mobilenet_v2.py
Shakshi3104/tfgarden
5678ad6c6922880230ae0c1e7ec39f32e8012279
[ "MIT" ]
null
null
null
import os from tensorflow.keras.layers import Conv1D, BatchNormalization, ReLU, SeparableConv1D, ZeroPadding1D, \ GlobalAveragePooling1D, GlobalMaxPooling1D from tensorflow.keras.layers import Input, Add, Dense from tensorflow.keras.models import Model def _make_divisible(v, divisor, min_value=None): if min_...
40.702381
107
0.608658
08624306e61df03c3d01f1feaf02d00d4c3045fa
576
py
Python
mini_charge/cms_plugins.py
nerdfiles/jahjah_works
5d7f26dc8001b5dcb0c20b85e6ed247c4c7a00da
[ "WTFPL" ]
null
null
null
mini_charge/cms_plugins.py
nerdfiles/jahjah_works
5d7f26dc8001b5dcb0c20b85e6ed247c4c7a00da
[ "WTFPL" ]
null
null
null
mini_charge/cms_plugins.py
nerdfiles/jahjah_works
5d7f26dc8001b5dcb0c20b85e6ed247c4c7a00da
[ "WTFPL" ]
null
null
null
# -*- coding: utf-8 -*- from django.utils.translation import ugettext as _ from cms.plugin_base import CMSPluginBase from cms.plugin_pool import plugin_pool from mini_charge.models.charge import MiniChargePluginModel class MiniChargePlugin(CMSPluginBase): model = MiniChargePluginModel name = _("MiniCharge ...
25.043478
59
0.736111
086249827998e2309fbebfaaeac1bf1c37071e56
82
py
Python
office365/teams/teamsAsyncOperation.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
null
null
null
office365/teams/teamsAsyncOperation.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
null
null
null
office365/teams/teamsAsyncOperation.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
null
null
null
from office365.entity import Entity class TeamsAsyncOperation(Entity): pass
13.666667
35
0.792683
08624a20f02c9cc6fff88bca4c3350df7346b662
1,375
py
Python
appengine/monorail/features/test/savedqueries_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
2
2021-04-13T21:22:18.000Z
2021-09-07T02:11:57.000Z
appengine/monorail/features/test/savedqueries_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
21
2020-09-06T02:41:05.000Z
2022-03-02T04:40:01.000Z
appengine/monorail/features/test/savedqueries_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2016 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file or at # https://developers.google.com/open-source/licenses/bsd """Unit tests for savedqueries feature.""" from __future__ import print_function from __future_...
31.25
63
0.756364
086279a41259c4b48823ecc1361a91be0051dc4f
14,408
py
Python
ceRNA/NetworkTypes.py
VincentLuczkow/cerna
66797c716fc8990e80ecf18d7347b68b0a150baf
[ "MIT" ]
2
2016-07-07T20:18:16.000Z
2017-02-18T19:53:05.000Z
ceRNA/NetworkTypes.py
VincentLuczkow/cerna
66797c716fc8990e80ecf18d7347b68b0a150baf
[ "MIT" ]
10
2016-07-07T19:54:12.000Z
2016-08-03T00:58:52.000Z
ceRNA/NetworkTypes.py
vluzko/cerna
66797c716fc8990e80ecf18d7347b68b0a150baf
[ "MIT" ]
null
null
null
import random from copy import deepcopy from pdb import set_trace from typing import Dict, List, Callable, Tuple import scipy.stats as stats import numpy as np from itertools import product import ceRNA.TestTypes as TestTypes import ceRNA.Estimators as Estimators import ceRNA.NetworkFiles as NetworkFiles import ceRNA....
40.24581
136
0.611535
08628dc5787606ccd8432b653c8eb9ed0cbc6cf9
884
py
Python
owtf/plugins/web/active/Visit_URLs@OWTF-WSP-001.py
alienus/owtf
b6d81fac83c324c2b8c6fe2a974c036881c1fcd0
[ "BSD-3-Clause" ]
null
null
null
owtf/plugins/web/active/Visit_URLs@OWTF-WSP-001.py
alienus/owtf
b6d81fac83c324c2b8c6fe2a974c036881c1fcd0
[ "BSD-3-Clause" ]
null
null
null
owtf/plugins/web/active/Visit_URLs@OWTF-WSP-001.py
alienus/owtf
b6d81fac83c324c2b8c6fe2a974c036881c1fcd0
[ "BSD-3-Clause" ]
null
null
null
""" This plugin does not perform ANY test: The aim is to visit all URLs grabbed so far and build the transaction log to feed data to other plugins NOTE: This is an active plugin because it may visit URLs retrieved by vulnerability scanner spiders which may be considered sensitive or include vulnerability probing """ im...
36.833333
99
0.773756
0862ec027ca125dcb1e81cbd3390fd568cfbdccc
754
py
Python
ansiblemetrics/playbook/num_plays.py
radon-h2020/AnsibleMetrics
8a8e27d9b54fc1578d00526c8663184a2e686cb2
[ "Apache-2.0" ]
1
2020-04-24T16:09:14.000Z
2020-04-24T16:09:14.000Z
ansiblemetrics/playbook/num_plays.py
radon-h2020/AnsibleMetrics
8a8e27d9b54fc1578d00526c8663184a2e686cb2
[ "Apache-2.0" ]
null
null
null
ansiblemetrics/playbook/num_plays.py
radon-h2020/AnsibleMetrics
8a8e27d9b54fc1578d00526c8663184a2e686cb2
[ "Apache-2.0" ]
null
null
null
from ansiblemetrics.ansible_metric import AnsibleMetric class NumPlays(AnsibleMetric): """ This class measures the number of plays in a playbook. """ def count(self): """Return the number of plays. Example ------- .. highlight:: python .. code-block:: python ...
19.333333
66
0.465517
0862fc4e1eaff315d897787944515f66825dffdd
4,480
py
Python
impbot/connections/twitch.py
rlazarus/impbot
9c9b0e0d84c7badd1786813bc5e19b20175f5d5b
[ "MIT" ]
null
null
null
impbot/connections/twitch.py
rlazarus/impbot
9c9b0e0d84c7badd1786813bc5e19b20175f5d5b
[ "MIT" ]
null
null
null
impbot/connections/twitch.py
rlazarus/impbot
9c9b0e0d84c7badd1786813bc5e19b20175f5d5b
[ "MIT" ]
null
null
null
import datetime import logging import sys from typing import Optional, Set, List import attr from irc import client from impbot.core import bot from impbot.core import base from impbot.handlers import custom from impbot.handlers import hello from impbot.handlers import roulette from impbot.connections import irc impo...
37.966102
80
0.627009
0863028680fe3cc88afe6f84f42201eda82bde60
25,840
py
Python
extra_data/tests/test_reader_mockdata.py
kirienko/EXtra-data
05de22b55fdc424473127335d2ca6b3a7026ab6d
[ "BSD-3-Clause" ]
null
null
null
extra_data/tests/test_reader_mockdata.py
kirienko/EXtra-data
05de22b55fdc424473127335d2ca6b3a7026ab6d
[ "BSD-3-Clause" ]
28
2021-01-08T12:03:16.000Z
2022-03-03T11:04:36.000Z
extra_data/tests/test_reader_mockdata.py
kirienko/EXtra-data
05de22b55fdc424473127335d2ca6b3a7026ab6d
[ "BSD-3-Clause" ]
null
null
null
from itertools import islice import h5py import numpy as np import os import pandas as pd import pytest import stat from tempfile import mkdtemp from testpath import assert_isfile from unittest import mock from xarray import DataArray from extra_data import ( H5File, RunDirectory, by_index, by_id, SourceNameE...
36.497175
93
0.686687
086329e3c194ddf1dcd1000caaeb0c980d0f93cb
20
py
Python
btd6_memory_info/generated/MS/Internal/Xml/XPath/Function/function.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/MS/Internal/Xml/XPath/Function/function.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/MS/Internal/Xml/XPath/Function/function.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
class Function: pass
20
20
0.85
08633fc101c133ae601b305d7d48e96e8f1633e0
106
py
Python
office365/sharepoint/microservice/micro_service_manager.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
544
2016-08-04T17:10:16.000Z
2022-03-31T07:17:20.000Z
office365/sharepoint/microservice/micro_service_manager.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
438
2016-10-11T12:24:22.000Z
2022-03-31T19:30:35.000Z
office365/sharepoint/microservice/micro_service_manager.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
202
2016-08-22T19:29:40.000Z
2022-03-30T20:26:15.000Z
from office365.sharepoint.base_entity import BaseEntity class MicroServiceManager(BaseEntity): pass
17.666667
55
0.830189
08634cbf78febec7e3276aaa750897dd0d74eaad
1,847
py
Python
pylib/util/time_decay.py
xkmato/py77
9c44d8f8924f47a7331c29fd0287a4bb9416d316
[ "MIT" ]
null
null
null
pylib/util/time_decay.py
xkmato/py77
9c44d8f8924f47a7331c29fd0287a4bb9416d316
[ "MIT" ]
null
null
null
pylib/util/time_decay.py
xkmato/py77
9c44d8f8924f47a7331c29fd0287a4bb9416d316
[ "MIT" ]
2
2018-07-16T19:14:11.000Z
2020-10-15T08:48:32.000Z
""" Library for updating values and counters based taking into account a time decay funtion""" __author__ = 'Andrea Tacchetti - atacchet@room77.com - Contact: kyle@' __copyright__ = '2013, Room77, Inc' import datetime from pylib.base.flags import Flags class TimeStampInTheFutureError(Exception): def __init__(sel...
32.982143
82
0.69843
08634f81d078a20cca76d7bbd95002664548275d
9,085
py
Python
core/argo/core/utils/collect_across.py
szokejokepu/natural-rws
bb1ad4ca3ec714e6bf071d2136593dc853492b68
[ "MIT" ]
4
2020-12-07T19:13:13.000Z
2022-01-30T18:52:18.000Z
core/argo/core/utils/collect_across.py
szokejokepu/natural-rws
bb1ad4ca3ec714e6bf071d2136593dc853492b68
[ "MIT" ]
12
2020-09-25T22:41:28.000Z
2022-02-09T23:46:34.000Z
core/argo/core/utils/collect_across.py
szokejokepu/natural-rws
bb1ad4ca3ec714e6bf071d2136593dc853492b68
[ "MIT" ]
2
2021-03-02T18:31:04.000Z
2021-03-02T21:56:43.000Z
import os, re from glob import glob from pprint import pprint import pandas as pd import numpy as np from itertools import product pd_csv_kwargs = { "sep" : "\t" } def all_same(items): return all(x == items[0] for x in items) def check_matches(matches, base_dir): trimmed_matches = [match....
34.412879
127
0.663181
086374c1d963dbc7399610247aacd748c452761b
1,946
py
Python
airbyte-integrations/connectors/source-file/integration_tests/standard_source_test.py
ntucker/airbyte
3670545995a6cbc6579104ac9726f82315b1003d
[ "MIT" ]
1
2021-01-07T12:25:45.000Z
2021-01-07T12:25:45.000Z
airbyte-integrations/connectors/source-file/integration_tests/standard_source_test.py
ntucker/airbyte
3670545995a6cbc6579104ac9726f82315b1003d
[ "MIT" ]
1
2020-12-15T18:11:29.000Z
2020-12-15T20:26:08.000Z
airbyte-integrations/connectors/source-file/integration_tests/standard_source_test.py
ntucker/airbyte
3670545995a6cbc6579104ac9726f82315b1003d
[ "MIT" ]
null
null
null
""" MIT License Copyright (c) 2020 Airbyte 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, distr...
39.714286
99
0.769784
0863a91bf23eb3bcb282aa45980e8e58e6de0f15
2,685
py
Python
venv/Lib/site-packages/pyrogram/raw/types/messages/all_stickers.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
2
2021-12-13T07:09:55.000Z
2022-01-12T12:15:20.000Z
venv/Lib/site-packages/pyrogram/raw/types/messages/all_stickers.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pyrogram/raw/types/messages/all_stickers.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free...
31.964286
103
0.615642
0863b79373e8d0073649b87840064125c775abba
6,624
py
Python
torch/maddpg.py
RC-Dynamics/multiagent-particle-envs
cd24175ab092b7970416f89a92dbcf695059115f
[ "MIT" ]
null
null
null
torch/maddpg.py
RC-Dynamics/multiagent-particle-envs
cd24175ab092b7970416f89a92dbcf695059115f
[ "MIT" ]
null
null
null
torch/maddpg.py
RC-Dynamics/multiagent-particle-envs
cd24175ab092b7970416f89a92dbcf695059115f
[ "MIT" ]
null
null
null
import os import numpy as np import torch from buffer import ReplayBuffer from ddpg import DDPGAgentTrainer from network import Actor, Critic, TargetActor, TargetCritic from torch.autograd import Variable from torch.nn import functional as F from torch.nn.utils import clip_grad_norm_ from torch.optim import Adam from...
40.638037
195
0.611111
0863cc5b645707723077593ae4f426fa0eb9abd9
857
py
Python
tests/TidalEarth/test_TidalEarth.py
Trixter9994/vplanet
7af9838688888f4f05da7919d1478d91b5670a36
[ "MIT" ]
null
null
null
tests/TidalEarth/test_TidalEarth.py
Trixter9994/vplanet
7af9838688888f4f05da7919d1478d91b5670a36
[ "MIT" ]
null
null
null
tests/TidalEarth/test_TidalEarth.py
Trixter9994/vplanet
7af9838688888f4f05da7919d1478d91b5670a36
[ "MIT" ]
null
null
null
from vplot import GetOutput import subprocess import numpy as np import os cwd = os.path.dirname(os.path.realpath(__file__)) def test_TidalEarth(): """Test the coupling between radheat, thermint, and eqtide.""" # Remove old log file subprocess.run(['rm', 'tidalearth.log'], cwd=cwd) # Run vplanet s...
30.607143
78
0.716453
08644330876fec50ec06a335db9e94f116452b0e
631
py
Python
examples/wallet_delete.py
Viper-Staking/Cardano-Tools
e992e6c070bfaeef625edd065e5a51a083b804b0
[ "Apache-2.0" ]
null
null
null
examples/wallet_delete.py
Viper-Staking/Cardano-Tools
e992e6c070bfaeef625edd065e5a51a083b804b0
[ "Apache-2.0" ]
null
null
null
examples/wallet_delete.py
Viper-Staking/Cardano-Tools
e992e6c070bfaeef625edd065e5a51a083b804b0
[ "Apache-2.0" ]
1
2021-09-11T12:26:27.000Z
2021-09-11T12:26:27.000Z
#!/usr/bin/env python3 # Cardano-Tools Example: Delete a wallet. import logging import json #### Use the dev version of the package #### import sys sys.path.append('../') from cardano_tools import WalletToolsCLI if __name__ == "__main__": cw_cli = WalletToolsCLI( path_to_cli="/usr/local/bin/cardano-wall...
24.269231
71
0.727417
08644f53d57c12f1c3bfe484082b97e28314a37d
5,468
py
Python
embark/evolution.py
ElliotPenson/embark
be549073e8d05e7220fdf42271e5474bed719322
[ "Apache-2.0" ]
3
2018-03-02T20:22:13.000Z
2018-03-23T14:33:27.000Z
embark/evolution.py
ElliotPenson/embark
be549073e8d05e7220fdf42271e5474bed719322
[ "Apache-2.0" ]
null
null
null
embark/evolution.py
ElliotPenson/embark
be549073e8d05e7220fdf42271e5474bed719322
[ "Apache-2.0" ]
null
null
null
""" evolution.py @author Elliot Penson """ from random import random, choice from itertools import combinations import csv import numpy from progress.bar import ChargingBar from embark.machi_koro import Game, Player, ALL_CARDS from embark.parameters import (NUMBER_OF_ROUNDS, GENERATION_SIZE, RECOMBINATION_PROBABILI...
33.962733
99
0.662582
08644fc7be9a00a626ed904bc918e664c3352783
362
py
Python
glimix_core/lik/__init__.py
Horta/limix-inference
1ba102fc544f8d307412d361b574da9d4c166f8e
[ "MIT" ]
7
2019-06-10T12:27:25.000Z
2021-07-23T16:36:04.000Z
glimix_core/lik/__init__.py
Horta/limix-inference
1ba102fc544f8d307412d361b574da9d4c166f8e
[ "MIT" ]
12
2017-05-28T10:59:31.000Z
2021-05-17T20:11:00.000Z
glimix_core/lik/__init__.py
Horta/limix-inference
1ba102fc544f8d307412d361b574da9d4c166f8e
[ "MIT" ]
5
2017-08-27T20:13:45.000Z
2022-02-14T06:33:14.000Z
"""Product of likelihood functions. BernoulliProdLik Bernoulli likelihood. BinomialProdLik Binomial likelihood. DeltaProdLik Delta likelihood. PoissonProdLik Poisson likelihood. """ from ._prod import BernoulliProdLik, BinomialProdLik, DeltaProdLik, PoissonProdLik __all__ = ["DeltaProdLik", "BernoulliProdL...
32.909091
83
0.801105
0864a9ba62a905f6eb598da22d10489b0223a0ce
3,071
py
Python
dipper/models/Provenance.py
sgml/dipper
cff0d01299e982183a5345b8a7eb00094ed05257
[ "BSD-3-Clause" ]
null
null
null
dipper/models/Provenance.py
sgml/dipper
cff0d01299e982183a5345b8a7eb00094ed05257
[ "BSD-3-Clause" ]
null
null
null
dipper/models/Provenance.py
sgml/dipper
cff0d01299e982183a5345b8a7eb00094ed05257
[ "BSD-3-Clause" ]
null
null
null
import logging from dipper.models.Model import Model from dipper.graph.Graph import Graph LOG = logging.getLogger(__name__) # note currently no log issued class Provenance: """ To model provenance as the basis for an association. This encompasses: * Process history leading to a claim being made, ...
31.989583
84
0.645718
0864b83affc087329c33b3c344155b43b6822cfa
2,743
py
Python
cheblienet/graphs/gsp.py
haguettaz/ChebLieNet
8545122c85513a4b4e8cc34c9f01bacca9140110
[ "MIT" ]
7
2021-11-25T11:51:01.000Z
2022-03-06T18:35:32.000Z
cheblienet/graphs/gsp.py
haguettaz/ChebLieNet
8545122c85513a4b4e8cc34c9f01bacca9140110
[ "MIT" ]
null
null
null
cheblienet/graphs/gsp.py
haguettaz/ChebLieNet
8545122c85513a4b4e8cc34c9f01bacca9140110
[ "MIT" ]
1
2022-03-06T18:35:42.000Z
2022-03-06T18:35:42.000Z
# coding=utf-8 import torch from scipy.linalg import eigh from ..utils.utils import sparse_tensor_to_sparse_array from .utils import add_self_loops, remove_self_loops def get_laplacian( edge_index, edge_weight, num_vertices, device=None, ): """ Return the symmetric normalized laplacian of th...
32.654762
111
0.703245
0864c95aa60219c80d64e79d1ef9e2cfa4a0eedf
1,464
py
Python
src/python_arcade_rpg/path_following_sprite.py
glyph/community-rpg
8bdab46f0092cfd92f4e9fa71edc6361d105edcb
[ "MIT" ]
18
2020-10-13T20:01:37.000Z
2022-02-28T10:19:51.000Z
src/python_arcade_rpg/path_following_sprite.py
glyph/community-rpg
8bdab46f0092cfd92f4e9fa71edc6361d105edcb
[ "MIT" ]
3
2022-03-21T02:57:54.000Z
2022-03-21T03:47:14.000Z
src/python_arcade_rpg/path_following_sprite.py
glyph/community-rpg
8bdab46f0092cfd92f4e9fa71edc6361d105edcb
[ "MIT" ]
10
2020-10-16T00:13:09.000Z
2022-02-18T19:12:05.000Z
import math import arcade from character_sprite import CharacterSprite class PathFollowingSprite(CharacterSprite): """ Simple character that follows a pre-defined path of points """ def __init__(self, sheet_name): super().__init__(sheet_name) self.path = [] self.cur_point = 0 ...
29.28
82
0.596311
086546bbf09a85f4962929252aa32724377082ab
7,550
py
Python
acme/agents/tf/mpo/agent.py
novatig/acme
7774e4a22519d8b05951320864e5308974eaad2a
[ "Apache-2.0" ]
1
2021-06-17T16:11:43.000Z
2021-06-17T16:11:43.000Z
acme/agents/tf/mpo/agent.py
novatig/acme
7774e4a22519d8b05951320864e5308974eaad2a
[ "Apache-2.0" ]
1
2021-01-25T15:39:56.000Z
2021-01-25T15:39:56.000Z
acme/agents/tf/mpo/agent.py
novatig/acme
7774e4a22519d8b05951320864e5308974eaad2a
[ "Apache-2.0" ]
2
2021-01-07T11:35:19.000Z
2021-01-07T12:16:21.000Z
# python3 # Copyright 2018 DeepMind Technologies Limited. 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 re...
39.736842
80
0.73298
086568ea6f49854c0f681448a6174c1af0913a57
4,170
py
Python
scripts/build_multiwoz_blacklist.py
jkulhanek/soloist
6cc0c49c7e5d9a866620802c8ae19d547cd76d62
[ "MIT" ]
3
2021-04-26T07:20:44.000Z
2021-08-16T10:08:01.000Z
scripts/build_multiwoz_blacklist.py
jkulhanek/soloist
6cc0c49c7e5d9a866620802c8ae19d547cd76d62
[ "MIT" ]
null
null
null
scripts/build_multiwoz_blacklist.py
jkulhanek/soloist
6cc0c49c7e5d9a866620802c8ae19d547cd76d62
[ "MIT" ]
null
null
null
#!/bin/env python import argparse import logging from collections import Counter import os import sys from tqdm import tqdm sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) from data.evaluation import MultiWozEvaluator # noqa: E402 from data import load_dataset # noqa: E402 from data.util...
42.121212
159
0.644844
08658e299231c370d075d88129232a64d3f6fdbf
10,815
py
Python
StreamPy/StreamPy-UI/src/root/nested/temp/components_rahul.py
AnomalyInc/StreamPy
94abca276b2857de48259f4f42ef95efbdf5f6d1
[ "Apache-2.0" ]
2
2017-04-27T11:04:27.000Z
2019-02-07T21:03:32.000Z
StreamPy/StreamPy-UI/src/root/nested/temp/components_rahul.py
StreamPy/StreamPy
94abca276b2857de48259f4f42ef95efbdf5f6d1
[ "Apache-2.0" ]
null
null
null
StreamPy/StreamPy-UI/src/root/nested/temp/components_rahul.py
StreamPy/StreamPy
94abca276b2857de48259f4f42ef95efbdf5f6d1
[ "Apache-2.0" ]
null
null
null
## For Rahul import numpy as np import time import tweepy from tweepy.streaming import StreamListener from tweepy import OAuthHandler import json # Twitter #from Framework import stream_learn import pickle import pdb import nltk import nltk.classify.util from nltk.classify import NaiveBayesClassifier from nltk....
35
126
0.646232
086595b903638d9815d7ebfb702e91114c3164f3
332
py
Python
news/migrations/0013_auto_20201017_1850.py
kermox/schronisko-krakow
8f8c546894e4b683ce463debad27db72ef820f90
[ "MIT" ]
1
2020-11-17T18:50:44.000Z
2020-11-17T18:50:44.000Z
news/migrations/0013_auto_20201017_1850.py
kermox/schronisko-krakow
8f8c546894e4b683ce463debad27db72ef820f90
[ "MIT" ]
9
2020-10-23T18:42:45.000Z
2022-03-12T00:39:57.000Z
news/migrations/0013_auto_20201017_1850.py
kermox/schronisko-krakow
8f8c546894e4b683ce463debad27db72ef820f90
[ "MIT" ]
null
null
null
# Generated by Django 3.0.5 on 2020-10-17 18:50 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('news', '0012_auto_20201015_1634'), ] operations = [ migrations.RenameModel( old_name='PostCategory', new_name='Topic', ...
18.444444
47
0.596386
0865f08e0a220f8467265af4a7ffcc5a8f9446b9
1,486
py
Python
alipay/aop/api/domain/AlipayBossFncInvoicreceiptQueryModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/AlipayBossFncInvoicreceiptQueryModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/AlipayBossFncInvoicreceiptQueryModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class AlipayBossFncInvoicreceiptQueryModel(object): def __init__(self): self._statement_bill_nos = None @property def statement_bill_nos(self): return self._statement_bill_nos ...
30.326531
87
0.623822
0865f2d581c6a0490725f50891530cd55eb7eabb
1,453
py
Python
quiz/questions/tests/facories.py
diego-marcelino/valora-quiz
3218628a857153449dde47ed52d60bc901e9be0b
[ "MIT" ]
null
null
null
quiz/questions/tests/facories.py
diego-marcelino/valora-quiz
3218628a857153449dde47ed52d60bc901e9be0b
[ "MIT" ]
3
2022-02-28T11:07:18.000Z
2022-03-02T11:07:20.000Z
quiz/questions/tests/facories.py
diego-marcelino/valora-quiz
3218628a857153449dde47ed52d60bc901e9be0b
[ "MIT" ]
null
null
null
from random import randint from factory import Faker, List, post_generation from factory.django import DjangoModelFactory from quiz.categories.tests.factories import CategoryFactory from quiz.questions.models import Question class QuestionFactory(DjangoModelFactory): """Factory for question model.""" state...
32.288889
80
0.624226
086636c51904342cc700198f92e54f3b7565859c
224
py
Python
monitor/common/settings.py
andletenkov/website-monitor
80db5e002727bc672e4906c67103dd16e734bd28
[ "Apache-2.0" ]
null
null
null
monitor/common/settings.py
andletenkov/website-monitor
80db5e002727bc672e4906c67103dd16e734bd28
[ "Apache-2.0" ]
null
null
null
monitor/common/settings.py
andletenkov/website-monitor
80db5e002727bc672e4906c67103dd16e734bd28
[ "Apache-2.0" ]
null
null
null
from pathlib import Path import yaml # Global settings object that can be used across whole application. with open(Path(__file__).parent.parent.parent / 'config' / 'config.yml', 'r') as f: settings = yaml.safe_load(f)
28
83
0.736607
08668f122f0a07cee9cb02e9dc6505156be3881e
2,090
py
Python
src/som/interpreter/ast/invokable.py
smarr/RTruffleSOM
1efc698577830ff3fcd1607e7155d9c6423e8804
[ "MIT" ]
9
2015-02-03T23:24:23.000Z
2020-06-28T23:49:59.000Z
src/som/interpreter/ast/invokable.py
SOM-st/RTruffleSOM
1efc698577830ff3fcd1607e7155d9c6423e8804
[ "MIT" ]
null
null
null
src/som/interpreter/ast/invokable.py
SOM-st/RTruffleSOM
1efc698577830ff3fcd1607e7155d9c6423e8804
[ "MIT" ]
2
2016-08-28T23:25:20.000Z
2016-08-30T16:49:50.000Z
from rpython.rlib import jit from rpython.rlib.debug import make_sure_not_resized from rtruffle.node import Node from .frame import Frame def get_printable_location(invokable): return invokable._source_section._identifier jitdriver = jit.JitDriver( greens=['self'], virtualizables=['frame'], get_prin...
38
97
0.707656
0866b3483c24e65c3274328bdd2d60900b666dd2
2,067
py
Python
Examples/TrackingExample.py
ACRF-Image-X-Institute/SpyGRT
e6e72d88a562d46ad7e96737323938fd9c8f11f9
[ "MIT" ]
1
2022-03-29T23:45:47.000Z
2022-03-29T23:45:47.000Z
Examples/TrackingExample.py
ACRF-Image-X-Institute/SpyGRT
e6e72d88a562d46ad7e96737323938fd9c8f11f9
[ "MIT" ]
null
null
null
Examples/TrackingExample.py
ACRF-Image-X-Institute/SpyGRT
e6e72d88a562d46ad7e96737323938fd9c8f11f9
[ "MIT" ]
null
null
null
# Author: Youssef Ben Bouchta # Last Edited: 20/03/2022 # Example showing how to use SpyGRT for tracking on pre-recorded images with precalibrated cameras. #Imports from spygrt.tracker import Tracker from spygrt.stream import Recording def main(): """Main loop doing the initialisation and tracking.""" # filenames ...
34.45
125
0.749879
0866cbbd7dc0cfb371aa854c823a150e8c0616d1
4,058
py
Python
alipay/aop/api/request/AlipayBossProdAntlawSmartcontractcodeModifyRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/request/AlipayBossProdAntlawSmartcontractcodeModifyRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/request/AlipayBossProdAntlawSmartcontractcodeModifyRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AlipayBossProdAntlawSmartcontractcodeModifyModel import AlipayBossProdAntlawSmartcontractcodeModifyModel class AlipayBossProdAntlawS...
27.986207
148
0.652045
0866f9231ebf3d1d53b0c57a61f8b3ab99fdcf8f
12,985
py
Python
nanotune/tuningstages/tuningstage.py
microsoft/nanotune
68be8f5b74a52d57b74ccac228e120d9ab48e3e4
[ "MIT" ]
5
2021-02-24T14:32:37.000Z
2022-01-05T16:37:26.000Z
nanotune/tuningstages/tuningstage.py
microsoft/nanotune
68be8f5b74a52d57b74ccac228e120d9ab48e3e4
[ "MIT" ]
149
2021-03-23T14:44:39.000Z
2022-03-31T06:09:07.000Z
nanotune/tuningstages/tuningstage.py
LaudateCorpus1/nanotune
0ada354597b16f6dbb17ca7be01ab7668b6d5049
[ "MIT" ]
10
2021-03-29T13:36:38.000Z
2022-02-16T23:06:35.000Z
import logging from abc import ABCMeta, abstractmethod from functools import partial from typing import Any, Dict, List, Tuple, Sequence import qcodes as qc from qcodes.dataset.experiment_container import (load_last_experiment, new_experiment, ...
35.969529
89
0.630189
086725b775d26ce5b1821f310ee83f542bd3dce0
40,882
py
Python
prody/proteins/header.py
RicardoSerr/ProDy
bdd7bab89d32033d20cd26bb17789f94ee4f7c02
[ "MIT" ]
null
null
null
prody/proteins/header.py
RicardoSerr/ProDy
bdd7bab89d32033d20cd26bb17789f94ee4f7c02
[ "MIT" ]
null
null
null
prody/proteins/header.py
RicardoSerr/ProDy
bdd7bab89d32033d20cd26bb17789f94ee4f7c02
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """This module defines functions for parsing header data from PDB files.""" from collections import defaultdict import os.path import numpy as np from prody import LOGGER from prody.atomic import ATOMIC_FIELDS from prody.atomic import Atomic, AtomGroup from prody.atomic import getSequence fro...
35.892888
91
0.529891
08672664a9b94695a853278277e94ea1b6fb433a
15,832
py
Python
gslib/commands/rm.py
stanhu/gsutil
e8403ed5e07caed3027455c7b883fef733612360
[ "Apache-2.0" ]
null
null
null
gslib/commands/rm.py
stanhu/gsutil
e8403ed5e07caed3027455c7b883fef733612360
[ "Apache-2.0" ]
null
null
null
gslib/commands/rm.py
stanhu/gsutil
e8403ed5e07caed3027455c7b883fef733612360
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2011 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 require...
39.679198
85
0.702249
086728af10eebef64f3857f66effa223b10418ad
2,243
py
Python
src/run.py
XiaofengZhu/frosting_weights
46dddc084654de8f6701cd796e5ee0c63a8d875b
[ "Apache-2.0" ]
1
2020-01-21T07:32:19.000Z
2020-01-21T07:32:19.000Z
src/run.py
XiaofengZhu/frosting_weights
46dddc084654de8f6701cd796e5ee0c63a8d875b
[ "Apache-2.0" ]
null
null
null
src/run.py
XiaofengZhu/frosting_weights
46dddc084654de8f6701cd796e5ee0c63a8d875b
[ "Apache-2.0" ]
1
2020-01-21T07:32:28.000Z
2020-01-21T07:32:28.000Z
import os import argparse # python run.py --gpu 1 --loss_fn retrain_regu_fisher --log fisher # cat experiments_boost/base_model/test_boost.log # mv experiments*/base_model/*.log ./ # python run.py --gpu 1 --loss_fn retrain_regu_fisher --log fisher --data_dir ../data/cifar-10-inc parser = argparse.ArgumentParser() parse...
53.404762
106
0.679893
08672ddfaea0b3a32319b340f994a67e0738b2d2
29,565
py
Python
standard_rule/app/AI/AI_debug.py
yudongqiu/GomokuWeb
c7d887733250f4b69efd04edf72a22bbd8257206
[ "MIT" ]
5
2017-05-23T10:48:14.000Z
2019-03-24T09:53:45.000Z
standard_rule/app/AI/AI_debug.py
yudongqiu/GomokuWeb
c7d887733250f4b69efd04edf72a22bbd8257206
[ "MIT" ]
null
null
null
standard_rule/app/AI/AI_debug.py
yudongqiu/GomokuWeb
c7d887733250f4b69efd04edf72a22bbd8257206
[ "MIT" ]
4
2017-08-04T09:01:17.000Z
2018-07-18T10:30:04.000Z
#!/usr/bin/env python from __future__ import print_function, division import itertools, time, copy import collections, random import os, pickle import numba import numpy as np import tflearn board_size = 15 estimate_level = 3 def strategy(state): """ AI's strategy """ """ Information provided to you: st...
42.356734
135
0.578962
08673941709c78983c5fb92227930872666ca6c0
4,410
py
Python
ecc/ecdsa.py
amintos/PyECC
667c62f5cbfb748822d85e75d401821123b72ad3
[ "MIT", "Unlicense" ]
13
2015-03-18T09:51:37.000Z
2020-07-21T09:22:31.000Z
ecc/ecdsa.py
amintos/PyECC
667c62f5cbfb748822d85e75d401821123b72ad3
[ "MIT", "Unlicense" ]
7
2015-07-07T02:54:10.000Z
2019-03-12T10:17:21.000Z
ecc/ecdsa.py
amintos/PyECC
667c62f5cbfb748822d85e75d401821123b72ad3
[ "MIT", "Unlicense" ]
17
2015-02-28T11:44:17.000Z
2021-07-01T19:19:57.000Z
#!/usr/bin/python # coding=utf-8 # # Elliptic Curve Digital Signature Algorithm (ECDSA) # # COPYRIGHT (c) 2010 by Toni Mattis <solaris@live.de> # import hashlib from os import urandom from elliptic import inv, mulf, mulp, muladdp, element from curves import get_curve, implemented_keys def randkey(bits, n): ...
26.566265
79
0.549887
086747d25b59df30e19e9e16411b8f131c06f6e0
1,002
py
Python
pw_watch/py/setup.py
antmicro/pigweed
a308c3354a6131425e3f484f07f05a1813948860
[ "Apache-2.0" ]
null
null
null
pw_watch/py/setup.py
antmicro/pigweed
a308c3354a6131425e3f484f07f05a1813948860
[ "Apache-2.0" ]
null
null
null
pw_watch/py/setup.py
antmicro/pigweed
a308c3354a6131425e3f484f07f05a1813948860
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The Pigweed 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 in ...
31.3125
79
0.715569
08676a4f0f32afbcdab4c9e7fc69a600831a396d
4,842
py
Python
app/celery/process_sns_receipts_tasks.py
cds-snc/notifier-api
90b385ec49efbaee7e607516fc7d9f08991af813
[ "MIT" ]
41
2019-11-28T16:58:41.000Z
2022-01-28T21:11:16.000Z
app/celery/process_sns_receipts_tasks.py
cds-snc/notification-api
b1c1064f291eb860b494c3fa65ac256ad70bf47c
[ "MIT" ]
1,083
2019-07-08T12:57:24.000Z
2022-03-08T18:53:40.000Z
app/celery/process_sns_receipts_tasks.py
cds-snc/notifier-api
90b385ec49efbaee7e607516fc7d9f08991af813
[ "MIT" ]
9
2020-01-24T19:56:43.000Z
2022-01-27T21:36:53.000Z
from datetime import datetime, timedelta import iso8601 from flask import current_app, json from notifications_utils.statsd_decorators import statsd from sqlalchemy.orm.exc import NoResultFound from app import notify_celery, statsd_client from app.config import QueueNames from app.dao import notifications_dao from ap...
42.849558
130
0.716233
086787aee643a4020dac74ac3565b899e5ccf850
10,557
py
Python
PCSoft/CanSniffer.py
BDeliers/CANSniffer
a055035ef60a4caad78f35968ee196d7e2e868df
[ "Apache-2.0" ]
null
null
null
PCSoft/CanSniffer.py
BDeliers/CANSniffer
a055035ef60a4caad78f35968ee196d7e2e868df
[ "Apache-2.0" ]
null
null
null
PCSoft/CanSniffer.py
BDeliers/CANSniffer
a055035ef60a4caad78f35968ee196d7e2e868df
[ "Apache-2.0" ]
null
null
null
""" Simple script to receive data from the MCP2515 CAN bus module, over USART Here is used to make a bus sniffer over a PIC18F2550 Frames are interpreted for a Peugeot 207 year 2011 car BDeliers - 02/2021 """ # -*- coding: UTF-8 -*- # Imports import serial import signal import sys imp...
31.798193
127
0.503836
08679904d54cbc265e4611fb40a70583173f70ca
744
py
Python
src/awsCluster/rnaSeq/GencodeGTFParser.py
AspirinCode/jupyter-genomics
d45526fab3de8fcc3d9fef005d4e39368ff3dfdc
[ "MIT" ]
2
2019-01-04T08:17:27.000Z
2021-04-10T02:59:35.000Z
src/cirrus_ngs/deprecated/rnaSeq/GencodeGTFParser.py
miko-798/cirrus-ngs
2c005f0fe29e298652ed2164e08ada75e908229b
[ "MIT" ]
null
null
null
src/cirrus_ngs/deprecated/rnaSeq/GencodeGTFParser.py
miko-798/cirrus-ngs
2c005f0fe29e298652ed2164e08ada75e908229b
[ "MIT" ]
2
2021-09-10T02:57:51.000Z
2021-09-21T00:16:56.000Z
__author__ = 'Guorong Xu<g1xu@ucsd.edu>' import re def parse(gencode_gtf_file): print "system is processing " + gencode_gtf_file gene_table = {} with open(gencode_gtf_file, 'r+') as f: lines = f.readlines() for line in lines: if line.startswith("##"): continue...
31
110
0.567204
0867ab23033283ca7c1f516205ebe20567fb6bb3
534
py
Python
shelter/migrations/0017_sheltergalleryphotos_gallery_name.py
kermox/schronisko-krakow
8f8c546894e4b683ce463debad27db72ef820f90
[ "MIT" ]
1
2020-11-17T18:50:44.000Z
2020-11-17T18:50:44.000Z
shelter/migrations/0017_sheltergalleryphotos_gallery_name.py
kermox/schronisko-krakow
8f8c546894e4b683ce463debad27db72ef820f90
[ "MIT" ]
9
2020-10-23T18:42:45.000Z
2022-03-12T00:39:57.000Z
shelter/migrations/0017_sheltergalleryphotos_gallery_name.py
kermox/schronisko-krakow
8f8c546894e4b683ce463debad27db72ef820f90
[ "MIT" ]
null
null
null
# Generated by Django 3.0.5 on 2020-10-08 20:59 import django.db.models.deletion from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('shelter', '0016_auto_20201008_2051'), ] operations = [ migrations.AddField( model_name='shelter...
26.7
147
0.666667
0867b2833bb7c6e2da60756b742f33e91ed50f14
6,246
py
Python
CS/CSC148/lectures/week5/recursive_examples.py
jerrysun103/uoft
6264583d27c7db94596d29c73804e6d9155de191
[ "MIT" ]
null
null
null
CS/CSC148/lectures/week5/recursive_examples.py
jerrysun103/uoft
6264583d27c7db94596d29c73804e6d9155de191
[ "MIT" ]
null
null
null
CS/CSC148/lectures/week5/recursive_examples.py
jerrysun103/uoft
6264583d27c7db94596d29c73804e6d9155de191
[ "MIT" ]
null
null
null
""" Some recursive functions on nested lists """ def depth(obj): """ Calculate the depth of a list object obj. Return 0 if obj is a non-list, or 1 + maximum depth of elements of obj, a possibly nested list of objects. Assume: obj has finite nesting depth @param int|list[int|list[...
28.916667
81
0.545469
0867b2ea23021daabb1483e9dcabff3919177b23
5,256
py
Python
BioNetGen-2.3.0/source_NFsim/validate/validate.py
joseph-hellerstein/RuleBasedProgramming
fb88118ab764035979dc7c2bf8c89a7b484e4472
[ "MIT" ]
null
null
null
BioNetGen-2.3.0/source_NFsim/validate/validate.py
joseph-hellerstein/RuleBasedProgramming
fb88118ab764035979dc7c2bf8c89a7b484e4472
[ "MIT" ]
null
null
null
BioNetGen-2.3.0/source_NFsim/validate/validate.py
joseph-hellerstein/RuleBasedProgramming
fb88118ab764035979dc7c2bf8c89a7b484e4472
[ "MIT" ]
null
null
null
import unittest import os import numpy as np import subprocess import re import fnmatch import sys bngPath = os.path.join('.', 'BioNetGen-2.2.6-stable', 'BNG2.pl') #bngPath = '/home/proto/workspace/bionetgen/bng2/BNG2.pl' # <<< SET YOUR BIONETGEN PATH HERE <<< nfsimPath = os.path.join('..', 'build', 'NFsim') class ...
40.122137
120
0.608257
0867fcceb1b8f5f6d32e74c05e09cdf0c530b606
4,313
py
Python
fairseq/data/__init__.py
dqqcasia/mosst
0a5206b3ff88c33583ddf422b364134be2e95da6
[ "MIT" ]
null
null
null
fairseq/data/__init__.py
dqqcasia/mosst
0a5206b3ff88c33583ddf422b364134be2e95da6
[ "MIT" ]
null
null
null
fairseq/data/__init__.py
dqqcasia/mosst
0a5206b3ff88c33583ddf422b364134be2e95da6
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """isort:skip_file""" from .dictionary import Dictionary, TruncatedDictionary from .fairseq_dataset import FairseqDataset, FairseqIterableDat...
33.434109
78
0.807327
086813b18be5c9640aa81f1bc0c51c412f7cee62
5,232
py
Python
Thresholding.py
andreysay/CarND-Advanced-Lane-Lines
57810c305ae0f89d4a8322f1a23c0f04c0c10a57
[ "MIT" ]
null
null
null
Thresholding.py
andreysay/CarND-Advanced-Lane-Lines
57810c305ae0f89d4a8322f1a23c0f04c0c10a57
[ "MIT" ]
null
null
null
Thresholding.py
andreysay/CarND-Advanced-Lane-Lines
57810c305ae0f89d4a8322f1a23c0f04c0c10a57
[ "MIT" ]
null
null
null
import cv2 import matplotlib.pyplot as plt import matplotlib.image as mpimg import numpy as np def threshold_rel(img, lo, hi): vmin = np.min(img) vmax = np.max(img) vlo = vmin + (vmax - vmin) * lo vhi = vmin + (vmax - vmin) * hi return np.uint8((img >= vlo) & (img <= vhi)) * 255 def threshold...
37.640288
91
0.653479
086816131a827fd8e60f15acdf105c5f8cd24bb4
1,074
py
Python
eventMonitor/eventMonitor.py
eifinger/appdaemon-scripts
e4a113a27a8501104c23330c4a7ea6aaf6f35939
[ "MIT" ]
122
2018-08-17T07:07:10.000Z
2022-03-14T03:16:44.000Z
eventMonitor/eventMonitor.py
eifinger/appdaemon-scripts
e4a113a27a8501104c23330c4a7ea6aaf6f35939
[ "MIT" ]
4
2018-08-16T06:37:10.000Z
2020-10-04T11:17:23.000Z
eventMonitor/eventMonitor.py
eifinger/appdaemon-scripts
e4a113a27a8501104c23330c4a7ea6aaf6f35939
[ "MIT" ]
19
2018-09-24T01:07:40.000Z
2022-02-15T21:10:11.000Z
import appdaemon.plugins.hass.hassapi as hass """ Monitor events and output changes to the verbose_log. Nice for debugging purposes. Arguments: - events: List of events to monitor """ class Monitor(hass.Hass): def initialize(self): self.listen_event_handle_list = [] events = self.args["events"]...
33.5625
82
0.651769
08681aafdc200f64f3b24a9156bce9cedf121adf
4,323
py
Python
glibc/benchtests/scripts/import_bench.py
chyidl/mirror-glibc
3b17633afc85a9fb8cba0edc365d19403158c5a0
[ "BSD-3-Clause" ]
null
null
null
glibc/benchtests/scripts/import_bench.py
chyidl/mirror-glibc
3b17633afc85a9fb8cba0edc365d19403158c5a0
[ "BSD-3-Clause" ]
null
null
null
glibc/benchtests/scripts/import_bench.py
chyidl/mirror-glibc
3b17633afc85a9fb8cba0edc365d19403158c5a0
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python # Copyright (C) 2015-2020 Free Software Foundation, Inc. # This file is part of the GNU C Library. # # The GNU C Library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # versio...
30.443662
78
0.624798
086837e755683e4931c6d15f7b78c00fd3535843
395
py
Python
nickpale/wsgi.py
whiteisnick/nickpale
77ad44fa4f2f3b22d0e04419c9625f0fc2dbda02
[ "MIT" ]
null
null
null
nickpale/wsgi.py
whiteisnick/nickpale
77ad44fa4f2f3b22d0e04419c9625f0fc2dbda02
[ "MIT" ]
9
2018-03-25T18:00:11.000Z
2022-03-11T23:16:16.000Z
nickpale/wsgi.py
nickpale/nickpale
77ad44fa4f2f3b22d0e04419c9625f0fc2dbda02
[ "MIT" ]
null
null
null
""" WSGI config for nickpale project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SE...
21.944444
78
0.78481
086839a2967ce0014cd23467702d12923cb12384
73,791
py
Python
test/IECoreScene/CurvesAlgoTest.py
lucienfostier/cortex
b9916ee4c0392e41934df0e6d4e4b696c0e857ab
[ "BSD-3-Clause" ]
1
2018-09-02T13:05:18.000Z
2018-09-02T13:05:18.000Z
test/IECoreScene/CurvesAlgoTest.py
lucienfostier/cortex
b9916ee4c0392e41934df0e6d4e4b696c0e857ab
[ "BSD-3-Clause" ]
1
2018-11-07T19:40:15.000Z
2018-11-07T19:40:15.000Z
test/IECoreScene/CurvesAlgoTest.py
noizfactory/cortex
c2b5bd154d9d7919a0c498f865c5e40a7687e1ce
[ "BSD-3-Clause" ]
null
null
null
########################################################################## # # Copyright (c) 2017, Image Engine Design Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistribu...
47.12069
240
0.746419
08684a488a0feaae9b8597a8ff22083fe93cf9e4
1,527
py
Python
py2sql-orm_pkg/py2sql_orm/mapper/utils.py
Pilipets/Metaprogramming
7659393bc504562b0f74c5a8cb5f4ffd39771e2f
[ "MIT" ]
null
null
null
py2sql-orm_pkg/py2sql_orm/mapper/utils.py
Pilipets/Metaprogramming
7659393bc504562b0f74c5a8cb5f4ffd39771e2f
[ "MIT" ]
2
2020-11-29T16:24:46.000Z
2020-12-14T19:11:02.000Z
py2sql-orm_pkg/py2sql_orm/mapper/utils.py
Pilipets/Metaprogramming
7659393bc504562b0f74c5a8cb5f4ffd39771e2f
[ "MIT" ]
null
null
null
from ..sql import sql_types from ..sql import sql_column from json import dumps, loads, JSONEncoder, JSONDecoder import pickle import sys import traceback class PythonObjectEncoder(JSONEncoder): """Custom python encoder to convert Python value to SQL value""" def default(self, obj): try: ...
32.489362
81
0.610347
0868525983ac77545f354a60be9a27b9d8a82953
13,595
py
Python
tests/test_earthquakes.py
SenhuWong/PySPOD
d37b415a6376b6a13d84ce6b25125bcaa64bdbb8
[ "MIT" ]
1
2022-03-11T14:41:07.000Z
2022-03-11T14:41:07.000Z
tests/test_earthquakes.py
SenhuWong/PySPOD
d37b415a6376b6a13d84ce6b25125bcaa64bdbb8
[ "MIT" ]
null
null
null
tests/test_earthquakes.py
SenhuWong/PySPOD
d37b415a6376b6a13d84ce6b25125bcaa64bdbb8
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ''' This file is subject to the terms and conditions defined in file 'LICENSE.txt', which is part of this source code package. Written by Dr. Gianmarco Mengaldo, May 2020. ''' # python libraries import os import sys import shutil import subprocess import numpy as np ...
41.072508
89
0.702317
08685e36e229c448502f873647311ce7d6b7bb9e
9,159
py
Python
geoapps/simpegPF/EM/NSEM/SurveyNSEM.py
RichardScottOZ/geoapps
5b3c1d4fd11add45992e8b2497312ac014272b69
[ "MIT" ]
1
2022-02-18T16:24:53.000Z
2022-02-18T16:24:53.000Z
geoapps/simpegPF/EM/NSEM/SurveyNSEM.py
sebhmg/geoapps
1463ba4ec3c914abdc7403e54eca0ee2bbc3f4f4
[ "MIT" ]
null
null
null
geoapps/simpegPF/EM/NSEM/SurveyNSEM.py
sebhmg/geoapps
1463ba4ec3c914abdc7403e54eca0ee2bbc3f4f4
[ "MIT" ]
null
null
null
import sys import numpy as np from numpy.lib import recfunctions as recFunc from .. import Survey as SimPEGsurvey, mkvc from .RxNSEM import Point_impedance3D, Point_tipper3D from .SrcNSEM import BaseNSEMSrc, Planewave_xy_1Dprimary, Planewave_xy_1DhomotD ################# ### Survey ### ################# class Su...
36.636
171
0.516541
08686614200c6317f16ac37361994ba9f6d11f00
3,061
py
Python
test/vanilla/low-level/Expected/AcceptanceTests/BodyArrayLowLevel/bodyarraylowlevel/aio/_auto_rest_swagger_bat_array_service.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
35
2018-04-03T12:15:53.000Z
2022-03-11T14:03:34.000Z
test/vanilla/low-level/Expected/AcceptanceTests/BodyArrayLowLevel/bodyarraylowlevel/aio/_auto_rest_swagger_bat_array_service.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
652
2017-08-28T22:44:41.000Z
2022-03-31T21:20:31.000Z
test/vanilla/low-level/Expected/AcceptanceTests/BodyArrayLowLevel/bodyarraylowlevel/aio/_auto_rest_swagger_bat_array_service.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
29
2017-08-28T20:57:01.000Z
2022-03-11T14:03:38.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
42.513889
103
0.686377
086868efa48ee32820fc2d247b0c9ce1fe1fa5f3
3,500
py
Python
Tools/scons/scons-local/SCons/Tool/cxx.py
Syeberman/nohtyP
59d7214a5a5474a03c54f45d79ad4fd037989a79
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
Tools/scons/scons-local/SCons/Tool/cxx.py
Syeberman/nohtyP
59d7214a5a5474a03c54f45d79ad4fd037989a79
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
Tools/scons/scons-local/SCons/Tool/cxx.py
Syeberman/nohtyP
59d7214a5a5474a03c54f45d79ad4fd037989a79
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
"""SCons.Tool.c++ Tool-specific initialization for generic Posix C++ compilers. There normally shouldn't be any need to import this module directly. It will usually be imported through the generic SCons.Tool.Tool() selection method. """ # # Copyright (c) 2001 - 2017 The SCons Foundation # # Permission is...
34.653465
90
0.671714
0868797c1fc7809167550996a81110c581b9b73e
234
py
Python
jury/metrics/meteor/meteor.py
Tiamat-Tech/jury
566ee2ec6b1a1a502f6e13b84f40274b51ef7d48
[ "MIT" ]
64
2021-07-16T08:37:45.000Z
2022-02-05T10:28:27.000Z
jury/metrics/meteor/meteor.py
Tiamat-Tech/jury
566ee2ec6b1a1a502f6e13b84f40274b51ef7d48
[ "MIT" ]
46
2021-07-14T22:41:56.000Z
2022-03-21T07:51:52.000Z
jury/metrics/meteor/meteor.py
Tiamat-Tech/jury
566ee2ec6b1a1a502f6e13b84f40274b51ef7d48
[ "MIT" ]
9
2021-07-15T21:19:06.000Z
2022-03-17T21:46:15.000Z
from jury.metrics._core import MetricAlias from jury.metrics.meteor.meteor_for_language_generation import MeteorForLanguageGeneration __main_class__ = "Meteor" class Meteor(MetricAlias): _SUBCLASS = MeteorForLanguageGeneration
26
90
0.850427
08688ec04ab7acbae449fb900a45437bb6a26baf
5,098
py
Python
backbone/efficientnet.py
hotcouscous1/TensorBricks
94dd90dce43a455d9abd7ccf19e1e7f361da7824
[ "BSD-3-Clause" ]
null
null
null
backbone/efficientnet.py
hotcouscous1/TensorBricks
94dd90dce43a455d9abd7ccf19e1e7f361da7824
[ "BSD-3-Clause" ]
null
null
null
backbone/efficientnet.py
hotcouscous1/TensorBricks
94dd90dce43a455d9abd7ccf19e1e7f361da7824
[ "BSD-3-Clause" ]
null
null
null
from layers import * from backbone.block.mobile import Mobile_NAS_Block from utils import round_width, round_depth, get_survival_probs, load_pretrained class EfficientNet_Backbone(nn.Module): """ __version__ = 1.0 __date__ = Mar 7, 2022 paper : https://arxiv.org/abs/1905.11946 checkpoints : http...
35.901408
129
0.655159
08688fb58ba8f0b93e985d035c733a430fb2d462
5,473
py
Python
assessment/gui/report.py
SumanthTirumale/WebAssessment
9d3ee84f447518fa2560ae6b25c951d9be3654a7
[ "MIT" ]
null
null
null
assessment/gui/report.py
SumanthTirumale/WebAssessment
9d3ee84f447518fa2560ae6b25c951d9be3654a7
[ "MIT" ]
null
null
null
assessment/gui/report.py
SumanthTirumale/WebAssessment
9d3ee84f447518fa2560ae6b25c951d9be3654a7
[ "MIT" ]
null
null
null
import json import datetime from pathlib import Path from PyQt5.QtWidgets import QDialog, QApplication, QVBoxLayout, QGridLayout, QLineEdit, QPushButton, QLabel, QFileDialog, QMessageBox from PyQt5.QtGui import QIcon from PyQt5.Qt import Qt from PyQt5.QtCore import pyqtSignal from assessment.database import WebAsses...
33.993789
133
0.644071
0868b5c12d1f5b954b75e13240f89be7c67825b9
21
py
Python
master/bopytest-code/code/ch6/dups_fixed/b/test_foo.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
4
2018-09-07T15:35:24.000Z
2019-03-27T09:48:12.000Z
master/bopytest-code/code/ch6/dups_fixed/b/test_foo.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
371
2020-03-04T21:51:56.000Z
2022-03-31T20:59:11.000Z
master/bopytest-code/code/ch6/dups_fixed/b/test_foo.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
3
2019-06-18T19:57:17.000Z
2020-11-06T03:55:08.000Z
def test_b(): pass
7
13
0.619048
0868c1100bef457b8cb6251d1abd890cd2d7710e
6,098
py
Python
Main Task_MSI-H classification/dataset.py
ChangHeeHAN/PAIP2020
e42731ed2824f9f4a2e4a30f029dfea0f9efd25c
[ "MIT" ]
1
2021-11-08T03:36:50.000Z
2021-11-08T03:36:50.000Z
Main Task_MSI-H classification/dataset.py
chhan95/PAIP2020
e42731ed2824f9f4a2e4a30f029dfea0f9efd25c
[ "MIT" ]
1
2021-01-26T18:37:11.000Z
2021-01-27T07:35:11.000Z
Main Task_MSI-H classification/dataset.py
chhan95/PAIP2020
e42731ed2824f9f4a2e4a30f029dfea0f9efd25c
[ "MIT" ]
null
null
null
import csv import glob import random from collections import Counter import cv2 import matplotlib.pyplot as plt import numpy as np import torch.utils.data as data from torchvision import transforms from torchvision.utils import make_grid from imgaug import augmenters as iaa import numpy as np class DatasetSerial(da...
37.875776
118
0.55674
0868c9a937f05f5452ee11be1ef823e3dcbfd16d
39,421
py
Python
src/scripts/utilities/rpu-gen-sys-blocks-v29.py
douglasdavis/rexpy
94eb997c7bc0e07c262555a7710c0a33e146801d
[ "BSD-3-Clause" ]
null
null
null
src/scripts/utilities/rpu-gen-sys-blocks-v29.py
douglasdavis/rexpy
94eb997c7bc0e07c262555a7710c0a33e146801d
[ "BSD-3-Clause" ]
null
null
null
src/scripts/utilities/rpu-gen-sys-blocks-v29.py
douglasdavis/rexpy
94eb997c7bc0e07c262555a7710c0a33e146801d
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python from __future__ import print_function from collections import OrderedDict, namedtuple NTSysWeight = namedtuple("SysWeight" , "branch_up branch_down category smoothing title tiny") NTSysPDF = namedtuple("SysPDF" , "branch category smoothing title tiny") NTSysTree2s = namedtuple("SysTree2s"...
128.407166
289
0.738084
0868d1ed17becf5409b17d462186c14558e0e8e2
12,758
py
Python
training_loops.py
jmamath/OOD-Generalization
03fa834b63b522d2ba6d416d0da3c334b745a783
[ "MIT" ]
null
null
null
training_loops.py
jmamath/OOD-Generalization
03fa834b63b522d2ba6d416d0da3c334b745a783
[ "MIT" ]
null
null
null
training_loops.py
jmamath/OOD-Generalization
03fa834b63b522d2ba6d416d0da3c334b745a783
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon May 10 07:01:52 2021 @author: root """ from tqdm import trange import torch import numpy as np from torch.autograd import Variable import torch.nn.functional as F from torch.autograd import grad def get_device(): if torch.cuda.is_available(): ...
44.608392
168
0.60754
0868e073bb901015fe5d73d2eb69e36b23bcecf9
1,278
py
Python
src/olympia/reviewers/api_urls.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
3
2020-03-05T18:17:14.000Z
2020-03-09T01:24:38.000Z
src/olympia/reviewers/api_urls.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
6
2020-09-28T03:15:57.000Z
2021-09-28T23:33:19.000Z
src/olympia/reviewers/api_urls.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
1
2020-06-04T10:18:59.000Z
2020-06-04T10:18:59.000Z
from django.conf.urls import include, url from rest_framework.routers import SimpleRouter from rest_framework_nested.routers import NestedSimpleRouter from .views import ( AddonReviewerViewSet, ReviewAddonVersionViewSet, ReviewAddonVersionCompareViewSet, CannedResponseViewSet, ReviewAddonVersionDraftComme...
34.540541
76
0.773865
086904b1aafe1082a567dfd342b3ed0dc000ca9e
1,750
py
Python
scripts/dremio_client.py
hainp/feast-dremio
a4f6c7d726b0b94231fb44896f1d3a0877cb0f98
[ "MIT" ]
null
null
null
scripts/dremio_client.py
hainp/feast-dremio
a4f6c7d726b0b94231fb44896f1d3a0877cb0f98
[ "MIT" ]
null
null
null
scripts/dremio_client.py
hainp/feast-dremio
a4f6c7d726b0b94231fb44896f1d3a0877cb0f98
[ "MIT" ]
null
null
null
import argparse def parse_arguments(): """ Parses the command-line arguments supplied to the script. """ parser = argparse.ArgumentParser() parser.add_argument('-host', '--hostname', type=str, help='Dremio co-ordinator hostname', default='localhost') parser.add_argument('-port', '--flight...
47.297297
149
0.697143
0869410f4308d878d064979e1070dcaa409dcf76
7,788
py
Python
SOM.py
Jos3f/SOM-word-vectors
ef3811249febf738adacab187a811f168bf6f30d
[ "MIT" ]
null
null
null
SOM.py
Jos3f/SOM-word-vectors
ef3811249febf738adacab187a811f168bf6f30d
[ "MIT" ]
null
null
null
SOM.py
Jos3f/SOM-word-vectors
ef3811249febf738adacab187a811f168bf6f30d
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import math from tqdm import tqdm from datetime import datetime class SOM: """SOM with 2d grid""" _data = None _nUnits = 0 _map_width = 0 _unit_weights = None def __init__(self, data, map_width): """ Initialise SOM :p...
44.758621
119
0.593477
086941179fe687df5f59d3bd933cecdca9979508
2,506
py
Python
tree/437_path_sum_iii.py
shawlu95/Algorithm-Toolbox
b6c7b2228d8e70e0842e0bad607533a2c8322cf0
[ "MIT" ]
null
null
null
tree/437_path_sum_iii.py
shawlu95/Algorithm-Toolbox
b6c7b2228d8e70e0842e0bad607533a2c8322cf0
[ "MIT" ]
null
null
null
tree/437_path_sum_iii.py
shawlu95/Algorithm-Toolbox
b6c7b2228d8e70e0842e0bad607533a2c8322cf0
[ "MIT" ]
2
2020-02-07T20:49:02.000Z
2020-02-11T06:01:55.000Z
import Tree treeVals = [10,5,-3,3,2,None,11,3,-2,None,1] # treeVals = [] tree = Tree.Tree(treeVals) root = tree.root class Solution(): ans = 0 def __init__(self): self.ans = 0 # two level recursion def pathSumBrute(self, root, s): """ :type root: TreeNode :type sum: in...
28.157303
103
0.555068
08695f8ece9669a1d3ec2e360154ab442eb9ab55
332
py
Python
rapidflow/config.py
gebauerm/rapidFlow
3aefcda3821a8891d40081460dd20d2876e3773d
[ "MIT" ]
1
2022-01-03T14:51:02.000Z
2022-01-03T14:51:02.000Z
rapidflow/config.py
gebauerm/rapidFlow
3aefcda3821a8891d40081460dd20d2876e3773d
[ "MIT" ]
1
2022-02-04T13:22:18.000Z
2022-02-04T16:17:56.000Z
rapidflow/config.py
gebauerm/rapidFlow
3aefcda3821a8891d40081460dd20d2876e3773d
[ "MIT" ]
null
null
null
import os from pathlib import Path class Path: file_path = os.path.dirname(os.path.abspath(__file__)) root_path = Path(file_path).parent.parent data_path = os.path.join(root_path, "data") data_network_path = os.path.join(data_path, "network_datasets") experiments_path = os.path.join(root_path, "ex...
30.181818
67
0.737952
08699bc3f0ee739938f720372de5d399505e5349
1,482
py
Python
alipay/aop/api/domain/AlipayCommerceTransportWorldCardscriptQueryModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/AlipayCommerceTransportWorldCardscriptQueryModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/AlipayCommerceTransportWorldCardscriptQueryModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class AlipayCommerceTransportWorldCardscriptQueryModel(object): def __init__(self): self._script_name = None self._script_type = None @property def script_name(self): r...
26.464286
73
0.615385
0869a457c76cc49c405b50de4f691b6ba118a91c
153,940
py
Python
docassemble_base/docassemble/base/functions.py
jell0720/docassemble
972b9c26fe32cb007aac6c26e7bbbe777f1d2278
[ "MIT" ]
null
null
null
docassemble_base/docassemble/base/functions.py
jell0720/docassemble
972b9c26fe32cb007aac6c26e7bbbe777f1d2278
[ "MIT" ]
null
null
null
docassemble_base/docassemble/base/functions.py
jell0720/docassemble
972b9c26fe32cb007aac6c26e7bbbe777f1d2278
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import types from six import string_types, text_type, PY2 import markdown from mdx_smartypants import SmartypantsExt import pattern.en import re #import operator import os import shutil import inspect import mimetypes import locale import pkg_resources import titlecase from docassemble.base.logg...
41.515642
2,198
0.640464
0869b0b688714d714db16e3fb61a539f62b9944c
38,954
py
Python
cinder/tests/unit/backup/drivers/test_backup_swift.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
null
null
null
cinder/tests/unit/backup/drivers/test_backup_swift.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
null
null
null
cinder/tests/unit/backup/drivers/test_backup_swift.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2012 Hewlett-Packard Development Company, L.P. # 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/LICEN...
45.828235
78
0.594034
0869d857d31d2a2e067082b4f34728e8598be73f
2,204
py
Python
better/lib.py
cmheisel/better-project-forecast
9bcba88d70c174ecedec09a020b02ac530bc4734
[ "MIT" ]
1
2016-10-08T00:44:28.000Z
2016-10-08T00:44:28.000Z
better/lib.py
cmheisel/better-project-forecast
9bcba88d70c174ecedec09a020b02ac530bc4734
[ "MIT" ]
null
null
null
better/lib.py
cmheisel/better-project-forecast
9bcba88d70c174ecedec09a020b02ac530bc4734
[ "MIT" ]
2
2016-12-10T16:21:22.000Z
2020-09-03T18:14:09.000Z
import random from numpy import percentile, round, average class Results(object): def __init__(self, results): self.results = results def percentile(self, pct): """What's the Xth percentile of the results. Arguments: pct(float): The percentile you'd like returned. ...
36.733333
127
0.63657
0869e3a02c7326c688fd64daffa23e3a82798e42
1,111
py
Python
niacin/text/en/__init__.py
deniederhut/niacin
f79499be9f58d0ac539c8a488908d99dcc5c53de
[ "BSD-3-Clause" ]
13
2020-06-11T17:57:03.000Z
2021-08-01T07:09:18.000Z
niacin/text/en/__init__.py
deniederhut/niacin
f79499be9f58d0ac539c8a488908d99dcc5c53de
[ "BSD-3-Clause" ]
13
2018-12-07T03:15:59.000Z
2021-10-30T19:47:36.000Z
niacin/text/en/__init__.py
deniederhut/niacin
f79499be9f58d0ac539c8a488908d99dcc5c53de
[ "BSD-3-Clause" ]
1
2020-06-11T13:14:42.000Z
2020-06-11T13:14:42.000Z
#!/usr/bin/env python3 # -*- encoding: utf-8 -*- """ Functions for enriching English language data. Includes transformations which operate on characters, words, and whole sentences. Importable functions include: Character-based --------------- * add_characters * add_contractions * add_fat_thumbs * add_leet * add_wh...
16.833333
76
0.728173
086a228e3545a5e21bc9c241db5963c8f8c3c4b2
37,049
py
Python
test/expected/pcl/src/ros_pb2.py
azazdeaz/ros-grpc-wrapper
8438ed371630294f3845cd238958103041f233de
[ "MIT" ]
18
2020-09-10T06:03:32.000Z
2022-03-14T14:05:17.000Z
test/expected/pcl/src/ros_pb2.py
azazdeaz/ros-grpc-wrapper
8438ed371630294f3845cd238958103041f233de
[ "MIT" ]
1
2021-08-24T09:41:42.000Z
2021-08-24T09:41:42.000Z
test/expected/pcl/src/ros_pb2.py
azazdeaz/ros-grpc-wrapper
8438ed371630294f3845cd238958103041f233de
[ "MIT" ]
3
2021-02-21T04:19:21.000Z
2021-11-12T06:24:37.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: ros.proto from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_datab...
35.521572
2,974
0.755216
086a25a6690b33827b7f5201fbe613802eb28e79
366
py
Python
binarysearch.io/a_lonely_string.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
2
2020-06-25T21:10:32.000Z
2020-12-10T06:53:45.000Z
binarysearch.io/largest_number_by_two_times.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
null
null
null
binarysearch.io/largest_number_by_two_times.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
3
2020-05-15T14:17:09.000Z
2021-07-25T13:18:20.000Z
class Solution: def solve(self, nums): # Write your code here largest = -99999 second = 0 for i in nums: if i > largest: second = largest largest = i if i < largest and i > second: second = i ...
24.4
42
0.418033
086a38b8f62ca3a3cd69edcc361ef3e8946c5e50
3,638
py
Python
lawyerd/dbtemplates/loader.py
loobinsk/customer_project
4f43d4c6db2c99926715ea16451511466569c4ae
[ "MIT" ]
null
null
null
lawyerd/dbtemplates/loader.py
loobinsk/customer_project
4f43d4c6db2c99926715ea16451511466569c4ae
[ "MIT" ]
null
null
null
lawyerd/dbtemplates/loader.py
loobinsk/customer_project
4f43d4c6db2c99926715ea16451511466569c4ae
[ "MIT" ]
null
null
null
from django.contrib.sites.models import Site from django.db import router from django.template import Origin, TemplateDoesNotExist from django.template.loaders.base import Loader as BaseLoader from dbtemplates.models import Template from dbtemplates.utils.cache import (cache, get_cache_key, ...
41.816092
81
0.639912
086a440322063c8f6fcd174720d0eaddf62e28d1
9,035
py
Python
releasenotes/source/conf.py
arnewiebalck/sushy-tools
262c7dc48fd2fd3662e05e947a2ee46d09c68757
[ "Apache-2.0" ]
null
null
null
releasenotes/source/conf.py
arnewiebalck/sushy-tools
262c7dc48fd2fd3662e05e947a2ee46d09c68757
[ "Apache-2.0" ]
null
null
null
releasenotes/source/conf.py
arnewiebalck/sushy-tools
262c7dc48fd2fd3662e05e947a2ee46d09c68757
[ "Apache-2.0" ]
1
2019-06-05T12:10:04.000Z
2019-06-05T12:10:04.000Z
# -*- coding: utf-8 -*- # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software...
32.5
79
0.712673
086a476bef55cc3872584030e989541de17b8fdf
19,636
py
Python
qnarre/prep/convert/segformer.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
qnarre/prep/convert/segformer.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
qnarre/prep/convert/segformer.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
# Copyright 2022 Quantapix Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
37.259962
99
0.463384
086a93c07ec6d7f7a9d197025f6064d6c798c4b4
20,256
py
Python
sdk/synapse/azure-mgmt-synapse/azure/mgmt/synapse/operations/_sql_pool_vulnerability_assessment_rule_baselines_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-01-24T08:54:57.000Z
2022-01-24T08:54:57.000Z
sdk/synapse/azure-mgmt-synapse/azure/mgmt/synapse/operations/_sql_pool_vulnerability_assessment_rule_baselines_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/synapse/azure-mgmt-synapse/azure/mgmt/synapse/operations/_sql_pool_vulnerability_assessment_rule_baselines_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRe...
47.549296
313
0.703397
086a9f32c8dd4192b8e6d2431623d03d19bedc9c
437
py
Python
autorop/arutil/pad_rop.py
Tanson/autorop
0d2fc71cdcc9649a6006aee641a3808f884d7fc4
[ "MIT" ]
15
2020-10-03T05:20:31.000Z
2022-03-20T06:19:29.000Z
autorop/arutil/pad_rop.py
Tanson/autorop
0d2fc71cdcc9649a6006aee641a3808f884d7fc4
[ "MIT" ]
8
2020-10-02T09:51:39.000Z
2021-04-24T03:14:18.000Z
autorop/arutil/pad_rop.py
Tanson/autorop
0d2fc71cdcc9649a6006aee641a3808f884d7fc4
[ "MIT" ]
2
2021-04-16T06:33:49.000Z
2021-09-03T09:21:10.000Z
from pwn import ROP def pad_rop(rop: ROP, n: int) -> ROP: """Append ``n`` ``ret`` instructions to ``rop``. Arguments: rop: The rop chain to pad. n: The number of ``ret`` instructions to pad ``rop`` with. Returns: Reference to mutated rop chain ``rop``, which has had exactly ``n``...
24.277778
83
0.567506
086ab5c85caa061c966254ccc787e72ec95c5fec
40,197
py
Python
brian2/tests/test_neurongroup.py
achilleas-k/brian2
906563b6b1321585b082f79f74f1b4ab386347ec
[ "BSD-2-Clause" ]
null
null
null
brian2/tests/test_neurongroup.py
achilleas-k/brian2
906563b6b1321585b082f79f74f1b4ab386347ec
[ "BSD-2-Clause" ]
null
null
null
brian2/tests/test_neurongroup.py
achilleas-k/brian2
906563b6b1321585b082f79f74f1b4ab386347ec
[ "BSD-2-Clause" ]
null
null
null
import uuid import sympy import numpy as np from numpy.testing.utils import assert_raises, assert_equal, assert_allclose from nose import SkipTest, with_setup from nose.plugins.attrib import attr from brian2.core.variables import linked_var from brian2.core.network import Network from brian2.core.preferences import p...
34.533505
98
0.586909
086abd096e3a5349351057f81d7064b4716b3d6b
2,457
py
Python
app/hzlbs/rooms.py
anningwang/hztxlbs
58fd2ab240857fcebf8c336a0bbc1fbcf71ae6d0
[ "BSD-3-Clause" ]
1
2019-02-22T12:33:05.000Z
2019-02-22T12:33:05.000Z
app/hzlbs/rooms.py
anningwang/hztxlbs
58fd2ab240857fcebf8c336a0bbc1fbcf71ae6d0
[ "BSD-3-Clause" ]
3
2017-10-16T09:04:33.000Z
2017-12-27T02:49:04.000Z
app/hzlbs/rooms.py
anningwang/hztxlbs
58fd2ab240857fcebf8c336a0bbc1fbcf71ae6d0
[ "BSD-3-Clause" ]
1
2017-10-07T16:49:31.000Z
2017-10-07T16:49:31.000Z
# coding=utf-8 HZ_ROOMS = [ {'name': u'会议室', 'points': [{'x': 1343, 'y': 1362}, {'x': 1343, 'y': 6785}, {'x': 5733, 'y': 6785}, {'x': 5733, 'y': 1362}]}, {'name': u'副总办公室', 'points': [{'x': 1343, 'y': 6785}, {'x': 1343, 'y': 12744}, {'x': 5733, 'y': 12744}, {'x': 5733, 'y': 6785}]}, {'name'...
63
114
0.415954
086b00211cab737f68f619175c8c598f8a3f159e
3,875
py
Python
MedManagementWeb/MedWeb/MedWeb/settings.py
Samuel789/MediPi
6e738d1acc426e4196cae7fb174174c3e1480936
[ "Apache-2.0" ]
null
null
null
MedManagementWeb/MedWeb/MedWeb/settings.py
Samuel789/MediPi
6e738d1acc426e4196cae7fb174174c3e1480936
[ "Apache-2.0" ]
null
null
null
MedManagementWeb/MedWeb/MedWeb/settings.py
Samuel789/MediPi
6e738d1acc426e4196cae7fb174174c3e1480936
[ "Apache-2.0" ]
1
2020-10-22T03:54:55.000Z
2020-10-22T03:54:55.000Z
""" Django settings for MedWeb project. Generated by 'django-admin startproject' using Django 1.11.3. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ import os ...
28.07971
91
0.701419
086b01395f68db7776693c9623d60f10e912a304
10,587
py
Python
vw_game_engine.py
PROGRAM-IX/vectorwars
03db0babe0a279f517b930ab3264263b3dfa903e
[ "MIT" ]
null
null
null
vw_game_engine.py
PROGRAM-IX/vectorwars
03db0babe0a279f517b930ab3264263b3dfa903e
[ "MIT" ]
1
2020-05-20T21:29:27.000Z
2020-05-20T21:29:27.000Z
vw_game_engine.py
PROGRAM-IX/vectorwars
03db0babe0a279f517b930ab3264263b3dfa903e
[ "MIT" ]
null
null
null
import pygame from pygame.locals import * from pystroke.hud import * from pystroke.game_engine import GameEngine from pystroke.vector2 import Vector2 from pystroke.vex import Vex from pystroke.input_engine import InputEngine from pystroke.event_engine import EventEngine from pystroke.draw_engine import DrawEngine from...
35.888136
79
0.507793
086b2eee876da7143a815a5dd26f4dfa867a1e99
2,143
py
Python
_dockerfiles/web/__dev__/bottle_testing.py
timothyhull/ww_tweeter
6ef76bed2bf10c7f2ef6c849e3fb883d8a286c83
[ "Apache-2.0" ]
null
null
null
_dockerfiles/web/__dev__/bottle_testing.py
timothyhull/ww_tweeter
6ef76bed2bf10c7f2ef6c849e3fb883d8a286c83
[ "Apache-2.0" ]
null
null
null
_dockerfiles/web/__dev__/bottle_testing.py
timothyhull/ww_tweeter
6ef76bed2bf10c7f2ef6c849e3fb883d8a286c83
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 """ Tests for the bottle web/WSGI server. Documentation: http://bottlepy.org/docs/dev/ PyPI: https://pypi.org/project/bottle/ Installation: pip install bottle """ # Imports - Python Standard Library # Imports - Third-Party from bottle import Bottle, run #...
18.161017
75
0.574895
086b31743412366c8ceaea0d26573f424a137a4d
15,282
py
Python
towhee/hub/file_manager.py
sutcalag/towhee
1ca575ca569bb344773463593292fdd7b0e9e74f
[ "Apache-2.0" ]
null
null
null
towhee/hub/file_manager.py
sutcalag/towhee
1ca575ca569bb344773463593292fdd7b0e9e74f
[ "Apache-2.0" ]
null
null
null
towhee/hub/file_manager.py
sutcalag/towhee
1ca575ca569bb344773463593292fdd7b0e9e74f
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Zilliz. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
37.547912
139
0.571064
086b3d0326ded08c776ff27b66a1a6603684ab65
3,557
py
Python
scripts/modules.d/201-Powermate-Compiz.py
pauljeremyturner/gizmod
537b8c25360d907b1fde631336ccf723f38d4312
[ "Apache-2.0" ]
null
null
null
scripts/modules.d/201-Powermate-Compiz.py
pauljeremyturner/gizmod
537b8c25360d907b1fde631336ccf723f38d4312
[ "Apache-2.0" ]
null
null
null
scripts/modules.d/201-Powermate-Compiz.py
pauljeremyturner/gizmod
537b8c25360d907b1fde631336ccf723f38d4312
[ "Apache-2.0" ]
null
null
null
#*** #********************************************************************* #************************************************************************* #*** #*** GizmoDaemon Config Script #*** Powermate Compiz config #*** #***************************************** #***************************************** ...
29.641667
130
0.622154
086b60e7c814d6cf629f9a1c35dd55694c184577
8,142
py
Python
Lib/site-packages/wx-3.0-msw/wx/lib/masked/ipaddrctrl.py
jickieduan/python27
c752b552396bbed68d8555080d475718cea2edd0
[ "bzip2-1.0.6" ]
1
2021-02-13T22:40:50.000Z
2021-02-13T22:40:50.000Z
Lib/site-packages/wx-3.0-msw/wx/lib/masked/ipaddrctrl.py
jickieduan/python27
c752b552396bbed68d8555080d475718cea2edd0
[ "bzip2-1.0.6" ]
1
2018-07-28T20:07:04.000Z
2018-07-30T18:28:34.000Z
Lib/site-packages/wx-3.0-msw/wx/lib/masked/ipaddrctrl.py
jickieduan/python27
c752b552396bbed68d8555080d475718cea2edd0
[ "bzip2-1.0.6" ]
2
2019-12-02T01:39:10.000Z
2021-02-13T22:41:00.000Z
#---------------------------------------------------------------------------- # Name: masked.ipaddrctrl.py # Authors: Will Sadkin # Email: wsadkin@nameconnector.com # Created: 02/11/2003 # Copyright: (c) 2003 by Will Sadkin, 2003 # RCS-ID: $Id$ # License: wxWidgets license #------...
36.841629
123
0.551707
086b78a008132262bf29b76648b1613c55a03ede
236
py
Python
mojang_api/__init__.py
toba75/mojang-api
64e90137b88c5e4e06ab141d87322ac654bd0db6
[ "MIT" ]
4
2018-07-22T13:39:55.000Z
2020-10-10T03:18:35.000Z
mojang_api/__init__.py
toba75/mojang-api
64e90137b88c5e4e06ab141d87322ac654bd0db6
[ "MIT" ]
null
null
null
mojang_api/__init__.py
toba75/mojang-api
64e90137b88c5e4e06ab141d87322ac654bd0db6
[ "MIT" ]
4
2019-08-05T21:38:21.000Z
2020-08-02T16:38:22.000Z
#!/usr/bin/env python3 from .servers.api import get_statistics from .servers.sessionserver import get_blocked_servers from .servers.status import get_status from .user.player import Player from .utils.uuid import generate_client_token
29.5
54
0.838983
086c3fa75b447510fc030b66cfa6f220904362cf
1,098
py
Python
src/api/bkuser_core/esb_sdk/collections.py
Canway-shiisa/bk-user
a049e80d12082960828015742cea4b041f4af796
[ "MIT" ]
null
null
null
src/api/bkuser_core/esb_sdk/collections.py
Canway-shiisa/bk-user
a049e80d12082960828015742cea4b041f4af796
[ "MIT" ]
null
null
null
src/api/bkuser_core/esb_sdk/collections.py
Canway-shiisa/bk-user
a049e80d12082960828015742cea4b041f4af796
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ TencentBlueKing is pleased to support the open source community by making 蓝鲸智云-用户管理(Bk-User) available. Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in compliance with the Lic...
39.214286
115
0.775046
086c61de6786312a179e9e7361accee5436762b0
51,393
py
Python
gym/scoreboard/__init__.py
soochyboy/openaiattempt
2933a95ec5cc7efd282ed793d5efd6af6f2ce00f
[ "MIT" ]
null
null
null
gym/scoreboard/__init__.py
soochyboy/openaiattempt
2933a95ec5cc7efd282ed793d5efd6af6f2ce00f
[ "MIT" ]
null
null
null
gym/scoreboard/__init__.py
soochyboy/openaiattempt
2933a95ec5cc7efd282ed793d5efd6af6f2ce00f
[ "MIT" ]
null
null
null
""" Docs on how to do the markdown formatting: http://docutils.sourceforge.net/docs/user/rst/quickref.html Tool for previewing the markdown: http://rst.ninjs.org/ """ import os from gym.scoreboard.client.resource import Algorithm, BenchmarkRun, Evaluation, FileUpload from gym.scoreboard.registration import registry,...
43.664401
2,103
0.740276
086c6b4cf5305eaef300b852adbc82c319acfe8d
2,219
py
Python
app/mqtt_robust.py
szymonbultrowicz/esp32-soil-moisture-sensor
2615e72f51d8328b949b23fded34c39f4a201472
[ "MIT" ]
null
null
null
app/mqtt_robust.py
szymonbultrowicz/esp32-soil-moisture-sensor
2615e72f51d8328b949b23fded34c39f4a201472
[ "MIT" ]
null
null
null
app/mqtt_robust.py
szymonbultrowicz/esp32-soil-moisture-sensor
2615e72f51d8328b949b23fded34c39f4a201472
[ "MIT" ]
null
null
null
# The MIT License (MIT) # Copyright (c) 2013, 2014 micropython-lib contributors # 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 ...
33.119403
79
0.634971
086c854a83012643153b2d6a0546aed8469d65fd
17,753
py
Python
test/test_learning.py
calebho/gameanalysis
280726a8aa125850b827a1e10b1203e91f515461
[ "Apache-2.0" ]
null
null
null
test/test_learning.py
calebho/gameanalysis
280726a8aa125850b827a1e10b1203e91f515461
[ "Apache-2.0" ]
null
null
null
test/test_learning.py
calebho/gameanalysis
280726a8aa125850b827a1e10b1203e91f515461
[ "Apache-2.0" ]
null
null
null
"""Test learning""" import itertools import json import random import warnings import autograd import autograd.numpy as anp import numpy as np import pytest from sklearn import gaussian_process as gp from gameanalysis import gamegen from gameanalysis import learning from gameanalysis import paygame from gameanalysis ...
35.864646
85
0.65955
086cef7d211f93dedf6c8137f03b9b351cc9af88
5,265
py
Python
bot.py
Shifty6/zana
d8cd912f9e710eb6a30b4afae112eab30452fb7a
[ "MIT" ]
null
null
null
bot.py
Shifty6/zana
d8cd912f9e710eb6a30b4afae112eab30452fb7a
[ "MIT" ]
null
null
null
bot.py
Shifty6/zana
d8cd912f9e710eb6a30b4afae112eab30452fb7a
[ "MIT" ]
null
null
null
import aiohttp import json from discord import Game from discord.ext import commands from pathlib import Path from utils.custom_context import ZanaContext from utils.server_config import ServerConfig from poe.exceptions import OutdatedPoBException from poe.exceptions import AbsentItemBaseException class Zana(command...
41.785714
122
0.595632
086cf546020402cf61c6a4b27c00d4df8aadfe51
1,290
py
Python
demo.py
Wei2624/pcl_post_processing
64d6069d70a49853305b2ab647cadb8480bffdd1
[ "MIT" ]
null
null
null
demo.py
Wei2624/pcl_post_processing
64d6069d70a49853305b2ab647cadb8480bffdd1
[ "MIT" ]
null
null
null
demo.py
Wei2624/pcl_post_processing
64d6069d70a49853305b2ab647cadb8480bffdd1
[ "MIT" ]
null
null
null
import os import cv2 import numpy as np import sys import scipy.io import curvox import pcl from mpl_toolkits.mplot3d import Axes3D import matplotlib.pyplot as plt HEIGHT = 480 WIDTH = 640 for i in range(12,13): print i base_path = '/home/weizhang/DA-RNN/data/LabScene/data/' + '{:04d}/'.format(i) # video_path...
21.864407
83
0.682946
086d048311856a403e584e4ccf1ca9f3b3c2e30e
19,274
py
Python
airflow_client/client/model/role_collection_all_of.py
sptsakcg/airflow-client-python
38a14e8641988f8cc88a5b27632ef4198bdb2843
[ "Apache-2.0" ]
null
null
null
airflow_client/client/model/role_collection_all_of.py
sptsakcg/airflow-client-python
38a14e8641988f8cc88a5b27632ef4198bdb2843
[ "Apache-2.0" ]
null
null
null
airflow_client/client/model/role_collection_all_of.py
sptsakcg/airflow-client-python
38a14e8641988f8cc88a5b27632ef4198bdb2843
[ "Apache-2.0" ]
null
null
null
""" Airflow API (Stable) # Overview To facilitate management, Apache Airflow supports a range of REST API endpoints across its objects. This section provides an overview of the API design, methods, and supported use cases. Most of the endpoints accept `JSON` as input and return `JSON` responses. This means t...
73.285171
8,098
0.651759
086d258c68e45505e23f03647af022dc5d4f19fd
6,671
py
Python
ForgeWiki/forgewiki/tests/test_app.py
shalithasuranga/allura
4f7fba13415954d07f602a051ec697329dd3706b
[ "Apache-2.0" ]
1
2019-03-17T04:16:15.000Z
2019-03-17T04:16:15.000Z
ForgeWiki/forgewiki/tests/test_app.py
DalavanCloud/allura
a25329caed9e6d136a1004c33372e0632a16e352
[ "Apache-2.0" ]
null
null
null
ForgeWiki/forgewiki/tests/test_app.py
DalavanCloud/allura
a25329caed9e6d136a1004c33372e0632a16e352
[ "Apache-2.0" ]
null
null
null
# 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 License, Version 2.0 (t...
41.179012
98
0.644131
086d3d29756cb767def10c4b2ade3340649a5f5f
5,146
py
Python
Tools/Scripts/webkitpy/tool/steps/haslanded.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
6
2021-07-05T16:09:39.000Z
2022-03-06T22:44:42.000Z
Tools/Scripts/webkitpy/tool/steps/haslanded.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
7
2022-03-15T13:25:39.000Z
2022-03-15T13:25:44.000Z
Tools/Scripts/webkitpy/tool/steps/haslanded.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
null
null
null
# Copyright (C) 2010 Google Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the ...
42.883333
108
0.68597