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
1c84bfd4c40fbd3e66d07243c0370e42ed168af8
3,187
py
Python
DAFNI-wrappers/transforms/dockerFiles/run_nismod.py
roseDickinson/nismod2
5c571b055a6f5dc26bdc2bc8950b9cf1c9202fca
[ "MIT" ]
5
2019-12-18T15:27:28.000Z
2020-10-03T09:10:23.000Z
DAFNI-wrappers/transforms/dockerFiles/run_nismod.py
roseDickinson/nismod2
5c571b055a6f5dc26bdc2bc8950b9cf1c9202fca
[ "MIT" ]
11
2019-12-18T14:53:03.000Z
2021-12-30T07:26:46.000Z
DAFNI-wrappers/transforms/dockerFiles/run_nismod.py
roseDickinson/nismod2
5c571b055a6f5dc26bdc2bc8950b9cf1c9202fca
[ "MIT" ]
3
2019-12-18T15:27:39.000Z
2022-02-25T07:04:06.000Z
import os import yaml import json from pathlib import Path from extract_data import extract from utils import run_process, is_truthy from settings import ( INPUT_PATH, NISMOD_PATH, RESULTS_PATH, TRANSPORT_ADDITIONAL_OUTPUTS_PATH, model_to_run, transforms_to_run, timestep, use_generated_s...
35.021978
116
0.563853
1c84cd14b09806173aaa5be6c0e42646604ecbd4
3,295
py
Python
leo/plugins/tomboy_import.py
frakel/leo-editor
b574118ee3b7ffe8344fa0d00dac603096117ac7
[ "MIT" ]
null
null
null
leo/plugins/tomboy_import.py
frakel/leo-editor
b574118ee3b7ffe8344fa0d00dac603096117ac7
[ "MIT" ]
null
null
null
leo/plugins/tomboy_import.py
frakel/leo-editor
b574118ee3b7ffe8344fa0d00dac603096117ac7
[ "MIT" ]
null
null
null
#@+leo-ver=5-thin #@+node:ville.20090503124249.1: * @file tomboy_import.py ''' Allows imports of notes created in Tomboy / gnote. Usage: * Create a node with the headline 'tomboy' * Select the node, and do alt+x act-on-node * The notes will appear as children of 'tomboy' node * The next time you do act-on-node, exist...
24.407407
86
0.631866
1c84de50b60ca5f49395cadbe18b236f1521fe59
5,483
py
Python
mnist/CNN/prun_tune_T.py
yanghr/Hoyer_MNIST
2a50da067ba10f2fc783624f448fb5ca91914ff6
[ "Apache-2.0" ]
27
2020-01-21T22:02:25.000Z
2022-01-18T23:16:28.000Z
mnist/CNN/prun_tune_T.py
yanghr/Hoyer_MNIST
2a50da067ba10f2fc783624f448fb5ca91914ff6
[ "Apache-2.0" ]
3
2020-03-22T08:20:05.000Z
2020-08-12T06:06:48.000Z
mnist/CNN/prun_tune_T.py
yanghr/Hoyer_MNIST
2a50da067ba10f2fc783624f448fb5ca91914ff6
[ "Apache-2.0" ]
3
2020-05-28T16:12:30.000Z
2022-02-19T03:01:38.000Z
import argparse import os import numpy as np import scipy.io as sio import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from torchvision import datasets, transforms from tqdm import tqdm from net.models import LeNet_5 as LeNet import util os.makedirs('saves', exist_ok=True)...
38.886525
177
0.635783
1c84fac4d15bd4c4490b3b9adb67ca995d63cd1b
15,158
py
Python
src/python/pants/goal/context.py
ghthor/pants
450de702414f87f563081ddefaefd8a554de07a3
[ "Apache-2.0" ]
null
null
null
src/python/pants/goal/context.py
ghthor/pants
450de702414f87f563081ddefaefd8a554de07a3
[ "Apache-2.0" ]
null
null
null
src/python/pants/goal/context.py
ghthor/pants
450de702414f87f563081ddefaefd8a554de07a3
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import absolute_import, division, print_function, unicode_literals import os import sys from collections import defaultdict from contextlib import contextma...
37.800499
109
0.717971
1c8505700e8cef089101f3bc59cd7a51710cb674
819
py
Python
mtp_2D_7l/randomsurface/r23.py
chinchay/graphene-oxide
6da0cc8eb951415e71e8c169f868ee9141186c2e
[ "MIT" ]
null
null
null
mtp_2D_7l/randomsurface/r23.py
chinchay/graphene-oxide
6da0cc8eb951415e71e8c169f868ee9141186c2e
[ "MIT" ]
null
null
null
mtp_2D_7l/randomsurface/r23.py
chinchay/graphene-oxide
6da0cc8eb951415e71e8c169f868ee9141186c2e
[ "MIT" ]
null
null
null
import generate as gn import randomSurface as rs from timeit import default_timer as timer start = timer() listA, listE = rs.getCurvesNotHighlyOrdrd(xlim=[14.0, 20.0], nLines=17, nRepeat=51) end = timer() #print(end - start) f = open("timeittook2", "w") f.write( "time = " + str( end - start ) ) f.close() #listA,...
26.419355
128
0.713065
1c8528600ce136bef98026498e6a041a8a891fe8
3,206
py
Python
functions/v2/imagemagick/main.py
jsj14/python-docs-samples
9cf5461b166eea824c40c704ed06c5ea53cf91d4
[ "Apache-2.0" ]
null
null
null
functions/v2/imagemagick/main.py
jsj14/python-docs-samples
9cf5461b166eea824c40c704ed06c5ea53cf91d4
[ "Apache-2.0" ]
null
null
null
functions/v2/imagemagick/main.py
jsj14/python-docs-samples
9cf5461b166eea824c40c704ed06c5ea53cf91d4
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the 'License'); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
33.747368
81
0.746413
1c854cf6771e0033fc4bfa3861e11f9cdffd1b17
8,072
py
Python
softwareprocess/operations/correct.py
LordOfTheRains/cookieJar
57838b9f5103dacad5b3bdc643905e65d576af94
[ "MIT" ]
null
null
null
softwareprocess/operations/correct.py
LordOfTheRains/cookieJar
57838b9f5103dacad5b3bdc643905e65d576af94
[ "MIT" ]
null
null
null
softwareprocess/operations/correct.py
LordOfTheRains/cookieJar
57838b9f5103dacad5b3bdc643905e65d576af94
[ "MIT" ]
null
null
null
from operation import Operation from softwareprocess.utility.angle import Angle import re import math class Correct(Operation): MANDATORY_PARAMS = ['lat', 'long', 'altitude', 'assumedLat', 'assumedLong'] def __init__(self, param_dict): Operation.__init__(self) self.original = param_d...
41.183673
100
0.533325
1c856fa7485e703381e7cad557f03578dc09314c
7,189
py
Python
psdns/tests/test_dns.py
lanl/PsDNS
2fcb12d52e522906c93d7a28e5397cae81feb376
[ "BSD-3-Clause" ]
1
2022-03-10T21:34:31.000Z
2022-03-10T21:34:31.000Z
psdns/tests/test_dns.py
lanl/PsDNS
2fcb12d52e522906c93d7a28e5397cae81feb376
[ "BSD-3-Clause" ]
null
null
null
psdns/tests/test_dns.py
lanl/PsDNS
2fcb12d52e522906c93d7a28e5397cae81feb376
[ "BSD-3-Clause" ]
null
null
null
"""Tests of the DNS solver Direct-numerical simulation (DNS) of the incompressible Navier-Stokes equation is the key capability of PsDNS. This module contains tests of the DNS solver. """ import numpy from numpy import testing as nptest from psdns import * from psdns.equations.navier_stokes import NavierStokes #: :...
41.554913
74
0.675476
1c85736483850c296420d59d267a15e63028a201
965
py
Python
tasks.py
kennethjiang/YANS
f4e7f965b97915bb4a61e67817d18b58a6a77e46
[ "MIT" ]
22
2017-01-22T02:32:42.000Z
2021-11-16T11:37:34.000Z
tasks.py
kennethjiang/YANS
f4e7f965b97915bb4a61e67817d18b58a6a77e46
[ "MIT" ]
4
2017-01-11T18:56:30.000Z
2019-07-18T14:17:19.000Z
tasks.py
kennethjiang/YANS
f4e7f965b97915bb4a61e67817d18b58a6a77e46
[ "MIT" ]
4
2017-10-25T02:19:58.000Z
2019-02-13T12:40:23.000Z
# -*- coding: utf-8 -*- import os import sys from invoke import task, run docs_dir = 'docs' build_dir = os.path.join(docs_dir, '_build') @task def test(): run('python setup.py test', pty=True) @task def clean(): run("rm -rf build") run("rm -rf dist") run("rm -rf YANS.egg-info") clean_docs() ...
19.693878
68
0.62487
1c857d530231e761a53faa9634dabafef4ef9d8e
602
py
Python
src/snowflake/connector/description.py
666Chao666/snowflake-connector-python
81a10e522fcf19d45580c79bc066b7a4eab25485
[ "Apache-2.0" ]
null
null
null
src/snowflake/connector/description.py
666Chao666/snowflake-connector-python
81a10e522fcf19d45580c79bc066b7a4eab25485
[ "Apache-2.0" ]
14
2021-01-26T06:53:10.000Z
2022-03-14T11:16:54.000Z
src/snowflake/connector/description.py
666Chao666/snowflake-connector-python
81a10e522fcf19d45580c79bc066b7a4eab25485
[ "Apache-2.0" ]
2
2021-03-16T12:41:29.000Z
2021-03-16T14:50:08.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (c) 2012-2021 Snowflake Computing Inc. All right reserved. # """Various constants.""" import platform import sys from .version import VERSION SNOWFLAKE_CONNECTOR_VERSION = '.'.join(str(v) for v in VERSION[0:3]) PYTHON_VERSION = '.'.join(str(v) for v in sys...
26.173913
70
0.725914
1c85cb0b419700021ef1f2054a8bb81e231473ca
2,142
py
Python
sharepoint/transfer_statistics.py
ansys/automatic-installer
47563fbccf0769ba0153deb9cce373d99e8a8b26
[ "MIT" ]
2
2022-02-17T10:02:29.000Z
2022-02-22T21:31:09.000Z
sharepoint/transfer_statistics.py
ansys/automatic-installer
47563fbccf0769ba0153deb9cce373d99e8a8b26
[ "MIT" ]
4
2022-02-15T09:56:49.000Z
2022-03-31T15:44:10.000Z
sharepoint/transfer_statistics.py
ansys/automatic-installer
47563fbccf0769ba0153deb9cce373d99e8a8b26
[ "MIT" ]
1
2022-02-22T21:31:17.000Z
2022-02-22T21:31:17.000Z
from office365.runtime.auth.authentication_context import AuthenticationContext from office365.sharepoint.client_context import ClientContext from sharepoint_uploader import SHAREPOINT_SITE_URL # noqa: E402 from sharepoint_uploader import Downloader # noqa: E402 from sharepoint_uploader import app_principal # noqa: ...
30.169014
94
0.614846
1c86054e1611365c9c110499f1032faf417aa875
2,846
py
Python
src/url/urllib/exercise-github-emoji.py
snowdreams1006/learn-python
d224bedbb670b6462e1e9a013c0a0316be10207c
[ "MIT" ]
1
2019-12-25T04:20:19.000Z
2019-12-25T04:20:19.000Z
src/url/urllib/exercise-github-emoji.py
snowdreams1006/learn-python
d224bedbb670b6462e1e9a013c0a0316be10207c
[ "MIT" ]
13
2020-01-16T03:23:50.000Z
2020-11-25T11:55:29.000Z
src/url/urllib/exercise-github-emoji.py
snowdreams1006/learn-python
d224bedbb670b6462e1e9a013c0a0316be10207c
[ "MIT" ]
1
2020-03-28T11:46:03.000Z
2020-03-28T11:46:03.000Z
# -*- coding: utf-8 -*- import urllib import urllib2 import json import os import random import time import PIL.Image as Image import os def download_all_emojis_on_github_with_urllib(): ''' Lists all the emojis available to use on GitHub and then download them. ''' response = urllib2.urlopen('https://a...
36.487179
133
0.677091
1c8625c97cc574c001145d35db0fcc5077820be1
3,985
py
Python
_OLD_VERSION/src/bin/_pytornado_exe.py
airinnova/pytornado
6127f45af60ab05f15b441bc134089a7e7a59669
[ "Linux-OpenIB" ]
16
2019-08-13T18:49:14.000Z
2022-01-11T15:41:12.000Z
_OLD_VERSION/src/bin/_pytornado_exe.py
airinnova/pytornado
6127f45af60ab05f15b441bc134089a7e7a59669
[ "Linux-OpenIB" ]
24
2019-09-11T14:48:01.000Z
2022-03-18T08:17:52.000Z
_OLD_VERSION/src/bin/_pytornado_exe.py
airinnova/pytornado
6127f45af60ab05f15b441bc134089a7e7a59669
[ "Linux-OpenIB" ]
5
2019-09-20T18:45:45.000Z
2020-12-08T01:44:43.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # ---------------------------------------------------------------------- # Copyright 2020 Airinnova AB and the PyTornado authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You ma...
37.952381
126
0.686073
1c864ebda437c9803dcd86ca52a5bc931852723c
23,192
py
Python
JumpScale9AYS/ays/lib/Actor.py
Jumpscale/ays9
63bd414ff06372ba885c55eec528f427e63bcbe1
[ "Apache-2.0" ]
4
2017-06-07T08:10:06.000Z
2017-11-10T02:20:38.000Z
JumpScale9AYS/ays/lib/Actor.py
Jumpscale/ays9
63bd414ff06372ba885c55eec528f427e63bcbe1
[ "Apache-2.0" ]
242
2017-05-18T10:51:48.000Z
2019-09-18T15:09:47.000Z
JumpScale9AYS/ays/lib/Actor.py
Jumpscale/ays9
63bd414ff06372ba885c55eec528f427e63bcbe1
[ "Apache-2.0" ]
5
2017-06-16T15:43:25.000Z
2017-09-29T12:48:06.000Z
from js9 import j from .Service import Service from .utils import validate_service_name, Lock import capnp from JumpScale9AYS.ays.lib import model_capnp as ModelCapnp import asyncio class Actor(): def __init__(self, aysrepo, template=None, model=None, name=None, context=None): """ init from a temp...
41.488372
145
0.586582
1c867c6c1e0b6ad447cdfe0444a37502ec696200
1,211
py
Python
src/tabs/dag_inspector/dag_nodes.py
sisoe24/ProfileInspector
38cfefe68c09b153f7380447c4c486728feecb9d
[ "MIT" ]
4
2021-07-22T10:23:56.000Z
2021-11-03T19:01:21.000Z
src/tabs/dag_inspector/dag_nodes.py
Ripax/ProfileInspector
38cfefe68c09b153f7380447c4c486728feecb9d
[ "MIT" ]
null
null
null
src/tabs/dag_inspector/dag_nodes.py
Ripax/ProfileInspector
38cfefe68c09b153f7380447c4c486728feecb9d
[ "MIT" ]
1
2022-02-16T07:23:31.000Z
2022-02-16T07:23:31.000Z
# coding: utf-8 from __future__ import print_function import logging import collections from PySide2.QtCore import QSettings from ProfileInspector.src import nuke LOGGER = logging.getLogger('ProfileInspector.dag_nodes') class DagNodes(): def __init__(self, profiling_type=nuke.PROFILE_ENGINE): self.pro...
30.275
81
0.644922
1c869438817209384d7c6550e56df88046ab7202
1,216
py
Python
setup.py
NoSDante/micropython-esp32
7722be7aab5cc7ca603775636a9b1a4e1f7497f0
[ "CC0-1.0" ]
2
2022-01-31T19:53:02.000Z
2022-02-28T13:11:01.000Z
setup.py
NoSDante/micropython-esp32
7722be7aab5cc7ca603775636a9b1a4e1f7497f0
[ "CC0-1.0" ]
null
null
null
setup.py
NoSDante/micropython-esp32
7722be7aab5cc7ca603775636a9b1a4e1f7497f0
[ "CC0-1.0" ]
1
2022-01-24T17:57:14.000Z
2022-01-24T17:57:14.000Z
from os import remove try: from core.database import Database except ImportError as e: raise ImportError("cannot import module", e) # setup def setup(): """ Get data from JSON-File Save data to DB-File """ def setConfig(db_file, json_files, path="/config/", delete_json=False, delete_db=Fals...
33.777778
105
0.63898
1c86aa73abb1e9f13233ee3c40d5f1a0180940f6
491
py
Python
receiver/Messages/FragmentHeader.py
schc-over-sigfox/schc-over-sigfox
d03e26cf5524ebd6bd64b4ca33a83149eec5e59f
[ "MIT" ]
null
null
null
receiver/Messages/FragmentHeader.py
schc-over-sigfox/schc-over-sigfox
d03e26cf5524ebd6bd64b4ca33a83149eec5e59f
[ "MIT" ]
null
null
null
receiver/Messages/FragmentHeader.py
schc-over-sigfox/schc-over-sigfox
d03e26cf5524ebd6bd64b4ca33a83149eec5e59f
[ "MIT" ]
1
2022-03-19T12:36:30.000Z
2022-03-19T12:36:30.000Z
from Entities.exceptions import LengthMismatchError from Messages.Header import Header class FragmentHeader(Header): FCN = '' FRAGMENT_NUMBER = None def __init__(self, profile, rule_id, dtag, w, fcn): super().__init__(profile, rule_id, dtag, w) if len(fcn) != profile.N: raise...
25.842105
64
0.635438
1c86d4e72b1818b455865afd521d9ddab4ec90d5
580
py
Python
common/headersRandom.py
StevenHuang2020/COVID-19-Statistics
bc81c8eb6f16c370c65a328d403995b78e537b9a
[ "MIT" ]
null
null
null
common/headersRandom.py
StevenHuang2020/COVID-19-Statistics
bc81c8eb6f16c370c65a328d403995b78e537b9a
[ "MIT" ]
null
null
null
common/headersRandom.py
StevenHuang2020/COVID-19-Statistics
bc81c8eb6f16c370c65a328d403995b78e537b9a
[ "MIT" ]
null
null
null
import random headerstr = '''Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_8; en-us) AppleWebKit/534.50 (KHTML, like Gecko) Version/5.1 Safari/534.50 Mozilla/5.0 (Windows; U; Windows NT 6.1; en-us) AppleWebKit/534.50 (KHTML, like Gecko) Version/5.1 Safari/534.50 Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; ...
48.333333
137
0.701724
1c8713ebab5a70f26bf34e9774b1322e1b888ba5
957
py
Python
AIClient_Python/src/world/Missile.py
CSGames-Archive/AI-2015
dcb49b93de4d2bdfb5600ae6be47ce513cc65c47
[ "MIT" ]
1
2015-12-18T01:56:34.000Z
2015-12-18T01:56:34.000Z
AIClient_Python/src/world/Missile.py
CSGames-Archive/AI-2015
dcb49b93de4d2bdfb5600ae6be47ce513cc65c47
[ "MIT" ]
null
null
null
AIClient_Python/src/world/Missile.py
CSGames-Archive/AI-2015
dcb49b93de4d2bdfb5600ae6be47ce513cc65c47
[ "MIT" ]
1
2019-04-16T00:28:02.000Z
2019-04-16T00:28:02.000Z
''' Created on Jan 6, 2015 @author: scarriere ''' from mathUtils.Vector2 import Vector2 from mathUtils.Direction import Direction class Missile(object): ''' Class that contain all the informations about the Missile (You can't use any of the functions or variables that start with an "_") ''' d...
26.583333
80
0.590387
1c871f01b3f575c38b6bf0895fd9af4e0dec23d1
7,044
py
Python
sasmodels/models/triaxial_ellipsoid.py
zattala/sasmodels
a547aa73d43145b3bd34770b0ea27ba8882170a3
[ "BSD-3-Clause" ]
null
null
null
sasmodels/models/triaxial_ellipsoid.py
zattala/sasmodels
a547aa73d43145b3bd34770b0ea27ba8882170a3
[ "BSD-3-Clause" ]
null
null
null
sasmodels/models/triaxial_ellipsoid.py
zattala/sasmodels
a547aa73d43145b3bd34770b0ea27ba8882170a3
[ "BSD-3-Clause" ]
null
null
null
# triaxial ellipsoid model # Note: model title and parameter table are inserted automatically r""" Definition ---------- .. figure:: img/triaxial_ellipsoid_geometry.jpg Ellipsoid with $R_a$ as *radius_equat_minor*, $R_b$ as *radius_equat_major* and $R_c$ as *radius_polar*. Given an ellipsoid .. math:: ...
35.938776
163
0.64381
1c872626a957279132772ae27df7a66a2564e9a5
1,211
py
Python
tensorflow/contrib/gan/python/eval/python/classifier_metrics.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
522
2016-06-08T02:15:50.000Z
2022-03-02T05:30:36.000Z
tensorflow/contrib/gan/python/eval/python/classifier_metrics.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
133
2017-04-26T16:49:49.000Z
2019-10-15T11:39:26.000Z
tensorflow/contrib/gan/python/eval/python/classifier_metrics.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
108
2016-06-16T15:34:05.000Z
2022-03-12T13:23:11.000Z
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
41.758621
80
0.751445
1c872afaba285cc90f31864964e1a53b7d62f60c
5,711
py
Python
dietr/models/user.py
essoplerck/dietr
982636c1fea848cf6b90c036dc6ca8a4f37f68a2
[ "MIT" ]
1
2020-09-25T03:53:46.000Z
2020-09-25T03:53:46.000Z
dietr/models/user.py
essoplerck/dietr
982636c1fea848cf6b90c036dc6ca8a4f37f68a2
[ "MIT" ]
null
null
null
dietr/models/user.py
essoplerck/dietr
982636c1fea848cf6b90c036dc6ca8a4f37f68a2
[ "MIT" ]
null
null
null
from dataclasses import dataclass, field from flask import session from passlib.hash import sha256_crypt as sha256 from dietr.database import database from dietr.models.allergy import Allergy from dietr.models.ingredient import Ingredient @dataclass class User: id: int username: str email: str first...
34.197605
79
0.559447
1c874a3586b363376999958f8eec5f4326771425
2,575
py
Python
instana/span_context.py
rlopes-ki/python-sensor
07e827f9982b2a0c482e8eab82d1a420923efd5e
[ "MIT" ]
null
null
null
instana/span_context.py
rlopes-ki/python-sensor
07e827f9982b2a0c482e8eab82d1a420923efd5e
[ "MIT" ]
null
null
null
instana/span_context.py
rlopes-ki/python-sensor
07e827f9982b2a0c482e8eab82d1a420923efd5e
[ "MIT" ]
null
null
null
# (c) Copyright IBM Corp. 2021 # (c) Copyright Instana Inc. 2019 class SpanContext(): def __init__( self, trace_id=None, span_id=None, baggage=None, sampled=True, level=1, synthetic=False ): self.level = level ...
24.759615
112
0.629903
1c8767f0ea2c06ae8c0415336008db0da6cf1feb
1,304
py
Python
Code Forces/Problem Set/B/supercentral_points.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
2
2020-06-25T21:10:32.000Z
2020-12-10T06:53:45.000Z
Code Forces/Problem Set/B/supercentral_points.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
null
null
null
Code Forces/Problem Set/B/supercentral_points.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
3
2020-05-15T14:17:09.000Z
2021-07-25T13:18:20.000Z
from collections import namedtuple n = int(input()) coordinates = [] class Point: def __init__(self,x,y,left,right,up,down): self.x = x self.y = y self.left = left self.right = right self.up = up self.down = down for i in range(n): x,y = map(int,input...
26.08
83
0.500767
1c876c3a9545abd2c835366adb02a00229504682
1,642
py
Python
secretsharing/entropy.py
seedhodler/secret-sharing
66c89ff16efe6c90c0ac6d6feb9ec2898eddd775
[ "MIT" ]
null
null
null
secretsharing/entropy.py
seedhodler/secret-sharing
66c89ff16efe6c90c0ac6d6feb9ec2898eddd775
[ "MIT" ]
null
null
null
secretsharing/entropy.py
seedhodler/secret-sharing
66c89ff16efe6c90c0ac6d6feb9ec2898eddd775
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Secret Sharing ~~~~~ :copyright: (c) 2014 by Halfmoon Labs :license: MIT, see LICENSE for more details. """ import os import codecs from math import ceil from Crypto.Random import get_random_bytes def get_entropy(numbytes): return get_random_bytes(numbytes) def randin...
40.04878
87
0.715591
1c87791349f3efa6142c26c86b7adadf1f473fbb
1,130
py
Python
userbot/plugins/xtools.py
justteen/BUZZ-USERBOT
55651cce150e1d04d2c61efb2565ef9f46b42933
[ "BSL-1.0" ]
null
null
null
userbot/plugins/xtools.py
justteen/BUZZ-USERBOT
55651cce150e1d04d2c61efb2565ef9f46b42933
[ "BSL-1.0" ]
null
null
null
userbot/plugins/xtools.py
justteen/BUZZ-USERBOT
55651cce150e1d04d2c61efb2565ef9f46b42933
[ "BSL-1.0" ]
null
null
null
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. from datetime import datetime import requests from uniborg.util import lightning_cmd @borg.on(lightning_cmd("xtools ...
32.285714
98
0.676106
1c87a4b4bd4f212eeb3cc1c6123a3f70b12c85d3
7,771
py
Python
bellman/environments/transition_model/transition_model.py
RL-Gym/bellman
210c9ff877b38705d1cf1b3ccd0f9f2644ad8d0d
[ "Apache-2.0" ]
40
2021-03-24T10:41:56.000Z
2022-03-15T09:50:47.000Z
bellman/environments/transition_model/transition_model.py
RL-Gym/bellman
210c9ff877b38705d1cf1b3ccd0f9f2644ad8d0d
[ "Apache-2.0" ]
12
2021-03-25T18:36:27.000Z
2021-07-27T11:09:34.000Z
bellman/environments/transition_model/transition_model.py
RL-Gym/bellman
210c9ff877b38705d1cf1b3ccd0f9f2644ad8d0d
[ "Apache-2.0" ]
3
2021-04-25T03:18:44.000Z
2021-11-14T15:54:34.000Z
# Copyright 2021 The Bellman Contributors # # 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...
37.541063
99
0.707245
1c87bd6a9daeac52676c7eb06d6cb4bfbace5014
520
py
Python
devtools/init-git-hooks.py
jwidauer/refill
64947e0a8e15855f4a5ad048f09f8d38715bbe91
[ "MIT" ]
2
2021-06-13T07:28:51.000Z
2021-09-08T11:26:34.000Z
devtools/init-git-hooks.py
jwidauer/refill
64947e0a8e15855f4a5ad048f09f8d38715bbe91
[ "MIT" ]
null
null
null
devtools/init-git-hooks.py
jwidauer/refill
64947e0a8e15855f4a5ad048f09f8d38715bbe91
[ "MIT" ]
3
2021-06-01T13:21:41.000Z
2021-06-01T20:33:20.000Z
#!/usr/bin/env python # Disable pylint filename and missing module member complaints. # pylint: disable=C0103,E1101 """ Initializes git hooks for refill project. """ import commands import subprocess def main(): """ Copies pre-commit script to git hooks folder. """ _, repo_root = commands.getstatusoutput('git...
30.588235
80
0.7
1c87dca9e44ad7e88d75e0367ab4f96f233d9e72
279
py
Python
korona/templates/html/tags/delete.py
bharadwajyarlagadda/korona
ee4662b6a29907495e31ed2581dc5484bb03eadc
[ "MIT" ]
2
2016-10-11T03:57:30.000Z
2018-01-19T20:13:47.000Z
korona/templates/html/tags/delete.py
iskodirajga/korona
ee4662b6a29907495e31ed2581dc5484bb03eadc
[ "MIT" ]
16
2016-08-19T04:08:45.000Z
2016-09-27T03:26:39.000Z
korona/templates/html/tags/delete.py
iskodirajga/korona
ee4662b6a29907495e31ed2581dc5484bb03eadc
[ "MIT" ]
1
2016-10-11T03:57:33.000Z
2016-10-11T03:57:33.000Z
# -*- coding: utf-8 -*- """<del> template""" from ..environment import env delete = env.from_string("""\ <del {% if cite -%} cite="{{ cite }}" {% endif -%} {% if datetime -%} datetime="{{ datetime }}" {% endif -%}> {%- if text -%} {{ text }} {%- endif -%}</del> """)
25.363636
63
0.487455
1c87de31aa1f0e5566b945c7730ffc981c283014
7,773
py
Python
zprocess/remote/server.py
chrisjbillington/zprocess
89b464c3a2d10cb3282bea625670f807430adf03
[ "BSD-2-Clause" ]
2
2020-02-02T10:58:56.000Z
2022-03-08T16:52:38.000Z
zprocess/remote/server.py
chrisjbillington/zprocess
89b464c3a2d10cb3282bea625670f807430adf03
[ "BSD-2-Clause" ]
6
2019-08-23T17:36:45.000Z
2021-12-26T00:47:58.000Z
zprocess/remote/server.py
chrisjbillington/zprocess
89b464c3a2d10cb3282bea625670f807430adf03
[ "BSD-2-Clause" ]
1
2019-08-31T14:24:21.000Z
2019-08-31T14:24:21.000Z
from __future__ import unicode_literals, print_function, division import sys import os PY2 = sys.version_info.major == 2 if PY2: str = unicode if PY2: import subprocess32 as subprocess from time import time as monotonic else: import subprocess from time import monotonic from weakref import WeakSet ...
37.014286
88
0.593079
1c87ea844484e44d5f1de642961a8baf1229d685
3,256
py
Python
src/iai_bullet_sim/basic_simulator_node.py
ARoefer/iai_bullet_sim
da1c61a9aa3a734d97abf618ec6c5dc3531b4998
[ "MIT" ]
null
null
null
src/iai_bullet_sim/basic_simulator_node.py
ARoefer/iai_bullet_sim
da1c61a9aa3a734d97abf618ec6c5dc3531b4998
[ "MIT" ]
null
null
null
src/iai_bullet_sim/basic_simulator_node.py
ARoefer/iai_bullet_sim
da1c61a9aa3a734d97abf618ec6c5dc3531b4998
[ "MIT" ]
null
null
null
import rospy import yaml from iai_bullet_sim.basic_simulator import BasicSimulator from iai_bullet_sim.utils import res_pkg_path class BasicSimulatorNode(object): def __init__(self, simulator_class=BasicSimulator): self._simulator_class = simulator_class def init_from_yaml(self, yaml_path,...
34.273684
103
0.653256
1c87ed25f4036e667e6b58df1cda0ffd79d052c6
2,287
py
Python
rango/forms.py
farschmessivo/ranco
ce81e77a9c2a82c4475b3838c3eac48bf206206f
[ "MIT" ]
null
null
null
rango/forms.py
farschmessivo/ranco
ce81e77a9c2a82c4475b3838c3eac48bf206206f
[ "MIT" ]
null
null
null
rango/forms.py
farschmessivo/ranco
ce81e77a9c2a82c4475b3838c3eac48bf206206f
[ "MIT" ]
null
null
null
from django import forms from .models import Page, Category, UserProfile from django.contrib.auth.models import User class CategoryForm(forms.ModelForm): name = forms.CharField(max_length=128, help_text="Please enter the category name.") views = forms.IntegerField(widget=forms.H...
35.184615
80
0.63052
1c883a5fd5cb3cbea98586d14b10aa6a0f530d88
3,229
py
Python
src/ghhops-server-py/examples/app_http.py
WWmore/compute.rhino3d
a9cdabad917585295044270da658f40960079e3a
[ "MIT" ]
1
2022-01-21T17:43:54.000Z
2022-01-21T17:43:54.000Z
src/ghhops-server-py/examples/app_http.py
WWmore/compute.rhino3d
a9cdabad917585295044270da658f40960079e3a
[ "MIT" ]
null
null
null
src/ghhops-server-py/examples/app_http.py
WWmore/compute.rhino3d
a9cdabad917585295044270da658f40960079e3a
[ "MIT" ]
null
null
null
"""Hops default HTTP server example""" import ghhops_server as hs import rhino3dm hops = hs.Hops() @hops.component( "/add", name="Add", nickname="Add", description="Add numbers with CPython", inputs=[ hs.HopsNumber("A", "A", "First number"), hs.HopsNumber("B", "B", "Second number"...
28.078261
92
0.599257
1c883bc54eabc4ba5ab38e495e6a0b960041daf2
543
py
Python
venv/Scripts/easy_install-3.6-script.py
diodax/commit-multi-label-classification
30edb27e6356a66ec7fdfba4d77c2bb6147d63e3
[ "FTL" ]
null
null
null
venv/Scripts/easy_install-3.6-script.py
diodax/commit-multi-label-classification
30edb27e6356a66ec7fdfba4d77c2bb6147d63e3
[ "FTL" ]
null
null
null
venv/Scripts/easy_install-3.6-script.py
diodax/commit-multi-label-classification
30edb27e6356a66ec7fdfba4d77c2bb6147d63e3
[ "FTL" ]
null
null
null
#!"C:\Users\dioda\odrive\RIT - Google Drive\Spring 2019\SWEN 780 Capstone Research Project\commit-multi-label-classification\venv\Scripts\python.exe" # EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install-3.6' __requires__ = 'setuptools==39.1.0' import re import sys from pkg_resources import ...
41.769231
149
0.710866
1c885ad6ed82e7c0c6f9ae2484c79eaf9b69db06
35,663
py
Python
batchspawner/batchspawner.py
Bayes-Cluster/batchspawner
c86437de931db37edff6987bc869d96dd73fe218
[ "BSD-3-Clause" ]
null
null
null
batchspawner/batchspawner.py
Bayes-Cluster/batchspawner
c86437de931db37edff6987bc869d96dd73fe218
[ "BSD-3-Clause" ]
null
null
null
batchspawner/batchspawner.py
Bayes-Cluster/batchspawner
c86437de931db37edff6987bc869d96dd73fe218
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) Regents of the University of Minnesota # Copyright (c) Michael Gilbert # Distributed under the terms of the Modified BSD License. """Batch spawners This file contains an abstraction layer for batch job queueing systems, and implements Jupyterhub spawners for Torque, SLURM, and eventually others. Comm...
34.963725
125
0.614867
1c885f1589e5cb50190400ce84ca6411aa2a7589
5,753
py
Python
preprocess.py
Koen-Git/ColorSymDetect
5d6bb6734063f4a09c9a153527a446ce5c02a5b0
[ "MIT" ]
1
2022-03-07T20:08:32.000Z
2022-03-07T20:08:32.000Z
preprocess.py
Koen-Git/ColorSymDetect
5d6bb6734063f4a09c9a153527a446ce5c02a5b0
[ "MIT" ]
null
null
null
preprocess.py
Koen-Git/ColorSymDetect
5d6bb6734063f4a09c9a153527a446ce5c02a5b0
[ "MIT" ]
null
null
null
import util import numpy as np def preproccesData(data): def isIntersecting(data): if util.line_intersect(data['line1x1'],data['line1y1'],data['line1x2'],data['line1y2'],data['line2x1'],data['line2y1'],data['line2x2'],data['line2y2']) == None: return False return True def distToInt...
50.464912
168
0.618808
1c886716f8bb3dd6b37b5198821eac1a25be0008
1,336
py
Python
nova/__init__.py
bopopescu/cc
5c14efcda95c4987532484c84a885a3b07efc984
[ "Apache-2.0" ]
null
null
null
nova/__init__.py
bopopescu/cc
5c14efcda95c4987532484c84a885a3b07efc984
[ "Apache-2.0" ]
1
2020-08-02T15:40:49.000Z
2020-08-02T15:40:49.000Z
nova/__init__.py
bopopescu/cc
5c14efcda95c4987532484c84a885a3b07efc984
[ "Apache-2.0" ]
1
2020-07-25T17:56:39.000Z
2020-07-25T17:56:39.000Z
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # Copyright 2010 Anso Labs, LLC # # Licensed under the Apache License, Version 2.0 (the "License"); you may # ...
37.111111
78
0.719311
1c888da6b6f44dcf0e62ec7f8320b2a037737d3a
5,264
py
Python
dataprep/clean/clean_gb_sedol.py
Waterpine/dataprep-1
4032acb1d1f2c413d4cb000d17e8ffa611315f9f
[ "MIT" ]
1,229
2019-12-21T02:58:59.000Z
2022-03-30T08:12:33.000Z
dataprep/clean/clean_gb_sedol.py
Waterpine/dataprep-1
4032acb1d1f2c413d4cb000d17e8ffa611315f9f
[ "MIT" ]
680
2019-12-19T06:09:23.000Z
2022-03-31T04:15:25.000Z
dataprep/clean/clean_gb_sedol.py
Waterpine/dataprep-1
4032acb1d1f2c413d4cb000d17e8ffa611315f9f
[ "MIT" ]
170
2020-01-08T03:27:26.000Z
2022-03-20T20:42:55.000Z
""" Clean and validate a DataFrame column containing Stock Exchange Daily Official List numbers (SEDOLs). """ # pylint: disable=too-many-lines, too-many-arguments, too-many-branches from typing import Any, Union from operator import itemgetter import dask.dataframe as dd import numpy as np import pandas as pd from st...
31.333333
96
0.613982
1c88ce2089b555b0fc6f02d9427050ca7ac7a9b9
2,287
py
Python
setup.py
mudesire/geneticalgorithm2
165d87b182a0b56e035f7a37a17a16950de20ddd
[ "MIT" ]
null
null
null
setup.py
mudesire/geneticalgorithm2
165d87b182a0b56e035f7a37a17a16950de20ddd
[ "MIT" ]
null
null
null
setup.py
mudesire/geneticalgorithm2
165d87b182a0b56e035f7a37a17a16950de20ddd
[ "MIT" ]
null
null
null
''' Copyright 2020 Ryan (Mohammad) Solgi 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, modif...
36.887097
159
0.68955
1c88ef99fc764ba2979171dd4296d35fc06fc6fa
4,278
py
Python
IMLearn/learners/classifiers/perceptron.py
ben-shor/IML.HUJI
65bd0e1262356181bc4d9eb46b1b457b2fc44322
[ "MIT" ]
null
null
null
IMLearn/learners/classifiers/perceptron.py
ben-shor/IML.HUJI
65bd0e1262356181bc4d9eb46b1b457b2fc44322
[ "MIT" ]
null
null
null
IMLearn/learners/classifiers/perceptron.py
ben-shor/IML.HUJI
65bd0e1262356181bc4d9eb46b1b457b2fc44322
[ "MIT" ]
null
null
null
from __future__ import annotations from typing import Callable from typing import NoReturn from ...base import BaseEstimator import numpy as np def default_callback(fit: Perceptron, x: np.ndarray, y: int): pass class Perceptron(BaseEstimator): """ Perceptron half-space classifier Finds a separating...
34.224
115
0.614072
1c88f39ad32b2d3b9650eb3936723cbe32a2175f
9,335
py
Python
wechat_django/models/reply.py
UltraVacuum/wechat-django
0ea243067f5bc5e69cab6c4585d5e46d9399a583
[ "MIT" ]
166
2019-02-23T10:19:33.000Z
2022-02-03T06:50:15.000Z
wechat_django/models/reply.py
UltraVacuum/wechat-django
0ea243067f5bc5e69cab6c4585d5e46d9399a583
[ "MIT" ]
19
2019-05-07T07:28:32.000Z
2021-06-02T06:56:03.000Z
wechat_django/models/reply.py
UltraVacuum/wechat-django
0ea243067f5bc5e69cab6c4585d5e46d9399a583
[ "MIT" ]
54
2019-02-27T07:55:57.000Z
2021-09-02T06:47:51.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from copy import deepcopy from django.db import models as m from django.utils.module_loading import import_string from django.utils.translation import ugettext_lazy as _ from jsonfield import JSONField import requests from six import text_type from wecha...
36.322957
88
0.58211
1c88fabf74b83f5dc380923204804c9d1c7f5168
4,721
py
Python
src/backend/ShipTrackVM.py
rowetechinc/River_electron
3897a8cae56241a64ea7167b3f3699fb5d392429
[ "MIT" ]
null
null
null
src/backend/ShipTrackVM.py
rowetechinc/River_electron
3897a8cae56241a64ea7167b3f3699fb5d392429
[ "MIT" ]
null
null
null
src/backend/ShipTrackVM.py
rowetechinc/River_electron
3897a8cae56241a64ea7167b3f3699fb5d392429
[ "MIT" ]
1
2020-12-22T16:57:23.000Z
2020-12-22T16:57:23.000Z
from threading import Lock import logging import math import plotly.figure_factory as ff import plotly.graph_objs as go from pygeodesy.ellipsoidalVincenty import LatLon from rti_python.Ensemble.Ensemble import Ensemble class ShipTrackVM: def __init__(self): self.lat = [] self.lon = [] #el...
35.765152
136
0.563864
1c890c17d6a6ea9cbca92d39b3da0a008c43dc07
1,701
py
Python
eq.py
bskp/PlannedHoliday
79df5bd392b2b0899893af9f5b095cd1739686a2
[ "Unlicense" ]
1
2019-06-20T08:03:53.000Z
2019-06-20T08:03:53.000Z
eq.py
mountainash/PlannedHoliday
79df5bd392b2b0899893af9f5b095cd1739686a2
[ "Unlicense" ]
null
null
null
eq.py
mountainash/PlannedHoliday
79df5bd392b2b0899893af9f5b095cd1739686a2
[ "Unlicense" ]
null
null
null
import math import numpy as np import sounddevice as sd from lib import * screen = SevenBySeven() samplerate = sd.query_devices(None, 'input')['default_samplerate'] low, high = (100, 4000) bins = 7 block_duration = 20 #ms delta_f = (high - low) / (bins - 1) fftsize = math.ceil(samplerate / delta_f) low_bin = math....
24.3
70
0.557319
1c8913fe665149a32218bc65690d79e92bc3da63
15,939
py
Python
src/plot_5.py
Mehul2203/dashboard1-group-e
300d8db176c24c46008e01147818cfeca04470c9
[ "MIT" ]
null
null
null
src/plot_5.py
Mehul2203/dashboard1-group-e
300d8db176c24c46008e01147818cfeca04470c9
[ "MIT" ]
3
2022-03-06T03:10:56.000Z
2022-03-19T23:04:23.000Z
src/plot_5.py
Mehul2203/dashboard1-group-e
300d8db176c24c46008e01147818cfeca04470c9
[ "MIT" ]
3
2022-02-17T00:34:20.000Z
2022-03-26T03:09:21.000Z
from asyncio.windows_events import NULL from tkinter import ALL from unittest import skip from dash import Dash, html, dcc from dash.dependencies import Input, Output import altair as alt from vega_datasets import data import pandas as pd import dash_bootstrap_components as dbc ########################################...
35.341463
165
0.536546
1c891faeb461a52a5520a4c6bdb08bf47aed2f24
2,136
py
Python
instructors/projects/card_games/war/test.py
mgadagin/PythonClass
70b370362d75720b3fb0e1d6cc8158f9445e9708
[ "MIT" ]
46
2017-09-27T20:19:36.000Z
2020-12-08T10:07:19.000Z
instructors/projects/card_games/war/test.py
mgadagin/PythonClass
70b370362d75720b3fb0e1d6cc8158f9445e9708
[ "MIT" ]
6
2018-01-09T08:07:37.000Z
2020-09-07T12:25:13.000Z
instructors/projects/card_games/war/test.py
mgadagin/PythonClass
70b370362d75720b3fb0e1d6cc8158f9445e9708
[ "MIT" ]
18
2017-10-10T02:06:51.000Z
2019-12-01T10:18:13.000Z
""" Unit tests for deck.py """ import unittest import collections import copy import lib.deck # Module to test class TestDeck(unittest.TestCase): def setUp(self): """ """ self.deck = lib.deck.Deck() self.stddeck = lib.deck.StandardDeck() self.cardcount = len(self.stddeck...
29.666667
83
0.641386
1c89377085dcf920b694e4ea1fbcb880e6dc5b88
13,009
py
Python
test/vanilla/version-tolerant/AcceptanceTests/asynctests/test_array.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
35
2018-04-03T12:15:53.000Z
2022-03-11T14:03:34.000Z
test/vanilla/version-tolerant/AcceptanceTests/asynctests/test_array.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
652
2017-08-28T22:44:41.000Z
2022-03-31T21:20:31.000Z
test/vanilla/version-tolerant/AcceptanceTests/asynctests/test_array.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
29
2017-08-28T20:57:01.000Z
2022-03-11T14:03:38.000Z
# -------------------------------------------------------------------------- # # Copyright (c) Microsoft Corporation. All rights reserved. # # The MIT License (MIT) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the ""Software""),...
40.027692
121
0.734799
1c89404504048dfb9fdb47b3108f94ae72df0b8b
5,804
py
Python
scripts/artifacts/powerlogDeletedapps.py
mastenp/iLEAPP
ee40ef7505b36d0b9b04131f284a9d4d036514a5
[ "MIT" ]
1
2020-10-06T20:28:03.000Z
2020-10-06T20:28:03.000Z
scripts/artifacts/powerlogDeletedapps.py
mastenp/iLEAPP
ee40ef7505b36d0b9b04131f284a9d4d036514a5
[ "MIT" ]
null
null
null
scripts/artifacts/powerlogDeletedapps.py
mastenp/iLEAPP
ee40ef7505b36d0b9b04131f284a9d4d036514a5
[ "MIT" ]
null
null
null
import glob import os import pathlib import plistlib import sqlite3 import scripts.artifacts.artGlobals #use to get iOS version -> iOSversion = scripts.artifacts.artGlobals.versionf from packaging import version #use to search per version number from scripts.artifact_report import ArtifactHtmlReport from scripts.ilapf...
43.639098
180
0.595107
1c895b7db10e395513d1268b514095604a9315a5
15,881
py
Python
alipay/aop/api/domain/AlipayTradeAppPayModel.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/AlipayTradeAppPayModel.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/AlipayTradeAppPayModel.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 * from alipay.aop.api.domain.SignParams import SignParams from alipay.aop.api.domain.ExtUserInfo import ExtUserInfo from alipay.aop.api.domain.ExtendParams import ExtendParams from alipay.aop.api.domain.GoodsDe...
36.011338
93
0.620238
1c896bd92b3a82acc74d049d7ade662c3ef41770
791
py
Python
examples/gymfc_nf/utils/log.py
xabierolaz/gymfc
4cb95ac6a890843d5a85dc78bc485be9358b7faf
[ "MIT" ]
270
2018-05-17T07:06:06.000Z
2022-03-28T08:43:54.000Z
examples/gymfc_nf/utils/log.py
xabierolaz/gymfc
4cb95ac6a890843d5a85dc78bc485be9358b7faf
[ "MIT" ]
91
2018-05-24T05:51:50.000Z
2022-03-26T03:49:50.000Z
examples/gymfc_nf/utils/log.py
xabierolaz/gymfc
4cb95ac6a890843d5a85dc78bc485be9358b7faf
[ "MIT" ]
96
2018-06-11T07:58:01.000Z
2022-03-28T08:43:56.000Z
def make_header(ob_size): """Make the log header. This needs to be done dynamically because the observations used as input to the NN may differ. """ entries = [] entries.append("t") for i in range(ob_size): entries.append("ob{}".format(i)) for i in range(4): entries.ap...
29.296296
77
0.606827
1c8985c70892657d79d374beca0e167dca6594c5
1,173
py
Python
solutions/problem-2.py
sourcenouveau/project-euler
d75c41c33d4ffc54e3162ec9069dd7bfe38934f9
[ "MIT" ]
null
null
null
solutions/problem-2.py
sourcenouveau/project-euler
d75c41c33d4ffc54e3162ec9069dd7bfe38934f9
[ "MIT" ]
null
null
null
solutions/problem-2.py
sourcenouveau/project-euler
d75c41c33d4ffc54e3162ec9069dd7bfe38934f9
[ "MIT" ]
null
null
null
""" Project Euler: Problem 2 https://projecteuler.net/problem=2 Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be: 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ... By considering the terms in the Fibonacci sequence whose values do not ex...
24.4375
86
0.671782
1c898d745e48fe2ded82fcefcd5ad44c31e08af5
5,304
py
Python
applications/tensorflow/contrastive_divergence_vae/machinable/record.py
Splendon/examples
ed4a8a01857b6ddca49559141acf5d0986eb01e1
[ "MIT" ]
null
null
null
applications/tensorflow/contrastive_divergence_vae/machinable/record.py
Splendon/examples
ed4a8a01857b6ddca49559141acf5d0986eb01e1
[ "MIT" ]
null
null
null
applications/tensorflow/contrastive_divergence_vae/machinable/record.py
Splendon/examples
ed4a8a01857b6ddca49559141acf5d0986eb01e1
[ "MIT" ]
null
null
null
# Copyright 2019 Graphcore Ltd. import pendulum from collections import OrderedDict import csv import pickle import datetime from machinable.utils import prettydict, msg class Record(object): """Tabular record writer # Arguments observer: machinable.observer.Observer, parent observer instance config...
32.145455
117
0.598793
1c8998a8923e94743a0673e055463218178787c8
2,122
py
Python
winsniffer/gui/list_control.py
netaneld122/winsniffer
9cbd50652861dafe0f76367f9b146ecca8e62b95
[ "MIT" ]
null
null
null
winsniffer/gui/list_control.py
netaneld122/winsniffer
9cbd50652861dafe0f76367f9b146ecca8e62b95
[ "MIT" ]
null
null
null
winsniffer/gui/list_control.py
netaneld122/winsniffer
9cbd50652861dafe0f76367f9b146ecca8e62b95
[ "MIT" ]
null
null
null
import wx import wx.lib.mixins.listctrl as listmixin class ListControl(wx.ListCtrl, listmixin.ListCtrlAutoWidthMixin): def __init__(self, parent, content_provider): wx.ListCtrl.__init__(self, parent, style=wx.LC_REPORT | wx.LC_SINGLE_SEL) listmixin.ListCtrlAutoWidthMixin.__init__(self) # ...
30.753623
87
0.633365
1c89dfd2990d827c265a327f3a8d9bf70ba756a4
13,536
py
Python
troveclient/compat/tests/test_common.py
hrnciar/python-troveclient
e41d08d24325a61a213592934b508bf77ce67dac
[ "Apache-2.0" ]
46
2015-01-14T12:26:24.000Z
2021-01-05T12:54:03.000Z
troveclient/compat/tests/test_common.py
hrnciar/python-troveclient
e41d08d24325a61a213592934b508bf77ce67dac
[ "Apache-2.0" ]
3
2015-05-22T19:58:11.000Z
2021-04-30T06:12:21.000Z
troveclient/compat/tests/test_common.py
hrnciar/python-troveclient
e41d08d24325a61a213592934b508bf77ce67dac
[ "Apache-2.0" ]
34
2015-01-21T12:33:53.000Z
2021-10-13T00:29:35.000Z
# Copyright (c) 2011 OpenStack Foundation # 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 ...
33.924812
78
0.638224
1c89dff3d43817cf983b19e4c3f3c5509476a622
68,689
py
Python
aesara/tensor/elemwise.py
anirudhacharya/Theano-PyMC
55f54243cf88397b032ebc7121d1090ee91aea7d
[ "BSD-3-Clause" ]
null
null
null
aesara/tensor/elemwise.py
anirudhacharya/Theano-PyMC
55f54243cf88397b032ebc7121d1090ee91aea7d
[ "BSD-3-Clause" ]
null
null
null
aesara/tensor/elemwise.py
anirudhacharya/Theano-PyMC
55f54243cf88397b032ebc7121d1090ee91aea7d
[ "BSD-3-Clause" ]
null
null
null
from copy import copy from typing import Tuple, Union import numpy as np import aesara.tensor.basic from aesara.configdefaults import config from aesara.gradient import DisconnectedType from aesara.graph.basic import Apply from aesara.graph.null_type import NullType from aesara.graph.op import COp, ExternalCOp, OpenM...
37.69978
107
0.538587
1c8a05f4479d8e6940c96ed1ada6eb3aac89d9c0
1,175
py
Python
utils/parser/planet/expression_plot.py
legumeinfo/CoNekT
709a4980cfa255cafd456b268e274db2b4b1f5fb
[ "MIT" ]
14
2018-08-20T03:07:21.000Z
2021-11-04T11:15:31.000Z
utils/parser/planet/expression_plot.py
mutwil/CoNekT
f4a4496a87d14b15bcf587975b31a2edc24c6bf7
[ "MIT" ]
9
2018-07-17T15:30:47.000Z
2021-07-05T13:11:54.000Z
utils/parser/planet/expression_plot.py
mutwil/CoNekT
f4a4496a87d14b15bcf587975b31a2edc24c6bf7
[ "MIT" ]
3
2019-08-05T09:16:34.000Z
2019-12-04T23:59:28.000Z
import csv class Parser: def __init__(self): self.profiles = {} self.conditions = [] self.probe_list = {} def read_plot(self, plotfile, conversion): """ Reads a plot file and a converts the probe IDs to plots :param plotfile: path to the Plot File :par...
30.921053
78
0.533617
1c8a0e39228099e148e21344c015680bece0f930
76,030
py
Python
test/unit/obj/test_ssync.py
xiaoguaishou/swift
166b85e468cfeed15171568329013e031acf586b
[ "Apache-2.0" ]
null
null
null
test/unit/obj/test_ssync.py
xiaoguaishou/swift
166b85e468cfeed15171568329013e031acf586b
[ "Apache-2.0" ]
null
null
null
test/unit/obj/test_ssync.py
xiaoguaishou/swift
166b85e468cfeed15171568329013e031acf586b
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2013 - 2015 OpenStack Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
44.100928
79
0.598251
1c8a171ee639c0de65b5c05c53cf92442e8a7fd0
5,708
py
Python
mitmproxy/addons/cut.py
fedosgad/mitmproxy
7eacc41f3b1079e000cf6b6c19c0f337d6e01177
[ "MIT" ]
null
null
null
mitmproxy/addons/cut.py
fedosgad/mitmproxy
7eacc41f3b1079e000cf6b6c19c0f337d6e01177
[ "MIT" ]
null
null
null
mitmproxy/addons/cut.py
fedosgad/mitmproxy
7eacc41f3b1079e000cf6b6c19c0f337d6e01177
[ "MIT" ]
null
null
null
import io import csv import os.path from collections.abc import Sequence from typing import Any, Union from mitmproxy import command from mitmproxy import exceptions from mitmproxy import flow from mitmproxy import ctx from mitmproxy import certs import mitmproxy.types import pyperclip def headername(spec: str): ...
35.234568
95
0.539418
1c8a2c28d0a529cb077b613d9deeb83011a7bc40
277
py
Python
bflib/effects/common.py
ChrisLR/BasicDungeonRL
b293d40bd9a0d3b7aec41b5e1d58441165997ff1
[ "MIT" ]
3
2017-10-28T11:28:38.000Z
2018-09-12T09:47:00.000Z
bflib/effects/common.py
ChrisLR/BasicDungeonRL
b293d40bd9a0d3b7aec41b5e1d58441165997ff1
[ "MIT" ]
null
null
null
bflib/effects/common.py
ChrisLR/BasicDungeonRL
b293d40bd9a0d3b7aec41b5e1d58441165997ff1
[ "MIT" ]
null
null
null
from bflib.effects.base import Effect class Blind(Effect): name = "Blind" class Deaf(Effect): name = "Deaf" class FatalPoison(Effect): name = "Fatal Poison" class Healing(Effect): name = "Healing" class StrongSmell(Effect): name = "Strong Smell"
12.043478
37
0.66065
1c8a852a241b8113d5b250cfe55fc6f97f8230f6
17,333
py
Python
demo_with_time_cal.py
fofore/new-4d2-8-16u2
4acffcc5763f77f202894ece9b39030a76a2e8ed
[ "MIT" ]
null
null
null
demo_with_time_cal.py
fofore/new-4d2-8-16u2
4acffcc5763f77f202894ece9b39030a76a2e8ed
[ "MIT" ]
null
null
null
demo_with_time_cal.py
fofore/new-4d2-8-16u2
4acffcc5763f77f202894ece9b39030a76a2e8ed
[ "MIT" ]
1
2019-07-31T01:41:11.000Z
2019-07-31T01:41:11.000Z
#!/usr/bin/env python # -*- coding: UTF-8 -*- # -------------------------------------------------------- # Tensorflow Faster R-CNN # Licensed under The MIT License [see LICENSE for details] # Written by Jiasen Lu, Jianwei Yang, based on code from Ross Girshick # --------------------------------------------------------...
37.92779
123
0.5823
1c8a9733baca38f75543619da12254190f4cd6cf
12,296
py
Python
models/densenet.py
JiarunLiu/Co-correcting
4e3ca4951de5d73ca812bbbcfe666273082ff2fd
[ "Apache-2.0" ]
19
2020-10-29T14:22:58.000Z
2022-03-31T13:45:56.000Z
models/densenet.py
JiarunLiu/Co-correcting
4e3ca4951de5d73ca812bbbcfe666273082ff2fd
[ "Apache-2.0" ]
null
null
null
models/densenet.py
JiarunLiu/Co-correcting
4e3ca4951de5d73ca812bbbcfe666273082ff2fd
[ "Apache-2.0" ]
7
2021-09-15T05:16:32.000Z
2022-02-02T01:31:07.000Z
import re import torch import torch.nn as nn import torch.nn.functional as F import torch.utils.checkpoint as cp from collections import OrderedDict from torchvision.models.utils import load_state_dict_from_url from torch import Tensor from torch.jit.annotations import List __all__ = ['DenseNet', 'densenet121', 'dens...
41.681356
112
0.632401
1c8aa51ced5e80e133f21efdb77cf782c4e38223
6,262
py
Python
jina/drivers/control.py
liushuigs/jina
b3550e901b2a340924330b5ba2801603e493c933
[ "Apache-2.0" ]
null
null
null
jina/drivers/control.py
liushuigs/jina
b3550e901b2a340924330b5ba2801603e493c933
[ "Apache-2.0" ]
null
null
null
jina/drivers/control.py
liushuigs/jina
b3550e901b2a340924330b5ba2801603e493c933
[ "Apache-2.0" ]
null
null
null
__copyright__ = "Copyright (c) 2020 Jina AI Limited. All rights reserved." __license__ = "Apache-2.0" import time from google.protobuf.json_format import MessageToJson from . import BaseDriver from ..types.querylang.queryset.dunderkey import dunder_get from ..excepts import UnknownControlCommand, RuntimeTerminated, ...
37.951515
125
0.643884
1c8aab270dd6286a1a3fcf7e0337067281b34035
698
py
Python
pw_unit_test/py/pw_unit_test/__init__.py
statropy/pigweed
8db1288a07ca5d220370a68ab824b0afd78efe1f
[ "Apache-2.0" ]
43
2020-03-20T21:07:13.000Z
2021-11-23T17:34:02.000Z
pw_unit_test/py/pw_unit_test/__init__.py
statropy/pigweed
8db1288a07ca5d220370a68ab824b0afd78efe1f
[ "Apache-2.0" ]
2
2020-03-21T04:58:09.000Z
2021-04-09T10:29:05.000Z
pw_unit_test/py/pw_unit_test/__init__.py
statropy/pigweed
8db1288a07ca5d220370a68ab824b0afd78efe1f
[ "Apache-2.0" ]
12
2020-03-21T01:02:26.000Z
2022-01-04T01:35:14.000Z
# 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 ...
38.777778
79
0.769341
1c8ac72663f193a9ac18ac02816aee007d820a36
29,999
py
Python
lib/sensub.py
EsriDE/ArcGIS-Sentinel2-Download-Tools
85b76770ca1e692bca9d7d58f23667ab6661428d
[ "Apache-2.0" ]
28
2017-01-25T15:14:43.000Z
2022-02-07T06:00:22.000Z
lib/sensub.py
EsriDE/ArcGIS-Sentinel2-Download-Tools
85b76770ca1e692bca9d7d58f23667ab6661428d
[ "Apache-2.0" ]
1
2018-08-16T08:01:27.000Z
2018-08-24T16:51:28.000Z
lib/sensub.py
EsriDE/ArcGIS-Sentinel2-Download-Tools
85b76770ca1e692bca9d7d58f23667ab6661428d
[ "Apache-2.0" ]
15
2017-09-10T06:48:00.000Z
2021-11-07T20:42:39.000Z
# -*- coding: UTF-8 -*- # Copyright 2018 Esri Deutschland GmbH # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
54.346014
333
0.676623
1c8ae092063f2c6b030827cc9fffb32ac6f731f8
3,907
py
Python
servicex/lookup_result_processor.py
AndrewEckart/ServiceX_App
f15a004c0910b316f59e4fbad7f28c16bb5d2ae7
[ "BSD-3-Clause" ]
null
null
null
servicex/lookup_result_processor.py
AndrewEckart/ServiceX_App
f15a004c0910b316f59e4fbad7f28c16bb5d2ae7
[ "BSD-3-Clause" ]
null
null
null
servicex/lookup_result_processor.py
AndrewEckart/ServiceX_App
f15a004c0910b316f59e4fbad7f28c16bb5d2ae7
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2019, IRIS-HEP # 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 foll...
46.511905
85
0.690299
1c8b714124dadc987579a9dd4747db3f35e15d1d
12,256
py
Python
LatticeBERT/tokenization.py
onlyrico/AliceMind
a6a070b1610e4c4bfe84ee6c4195b2bc4f725ded
[ "Apache-2.0" ]
3
2019-11-25T09:56:48.000Z
2021-01-18T13:18:17.000Z
LatticeBERT/tokenization.py
onlyrico/AliceMind
a6a070b1610e4c4bfe84ee6c4195b2bc4f725ded
[ "Apache-2.0" ]
null
null
null
LatticeBERT/tokenization.py
onlyrico/AliceMind
a6a070b1610e4c4bfe84ee6c4195b2bc4f725ded
[ "Apache-2.0" ]
2
2020-05-17T17:22:14.000Z
2020-09-23T08:31:46.000Z
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
30.716792
80
0.660982
1c8b7d13d467cbcdc0f0bce01f4242deb54100ac
21,366
py
Python
main_imagenet_float.py
rakutentech/iterative_training
4bd9b8f64cdf2766af9b6fda0b4cb20d5d75b3bf
[ "MIT" ]
null
null
null
main_imagenet_float.py
rakutentech/iterative_training
4bd9b8f64cdf2766af9b6fda0b4cb20d5d75b3bf
[ "MIT" ]
null
null
null
main_imagenet_float.py
rakutentech/iterative_training
4bd9b8f64cdf2766af9b6fda0b4cb20d5d75b3bf
[ "MIT" ]
null
null
null
""" Source: https://github.com/pytorch/examples/tree/master/imagenet License: BSD 3-clause """ import argparse from bisect import bisect from datetime import datetime import json import os import random import shutil import sys import time import warnings import torch import torch.nn as nn import torch.nn.parallel imp...
38.221825
102
0.608537
1c8b81f3f4359b937855f358cb5acc3a04281044
368
py
Python
pmaf/tests/unit/test__shared.py
mmtechslv/PhyloMAF
bab43dd4a4d2812951b1fdf4f1abb83edb79ea88
[ "BSD-3-Clause" ]
1
2021-07-02T06:24:17.000Z
2021-07-02T06:24:17.000Z
pmaf/tests/unit/test__shared.py
mmtechslv/PhyloMAF
bab43dd4a4d2812951b1fdf4f1abb83edb79ea88
[ "BSD-3-Clause" ]
1
2021-06-28T12:02:46.000Z
2021-06-28T12:02:46.000Z
pmaf/tests/unit/test__shared.py
mmtechslv/PhyloMAF
bab43dd4a4d2812951b1fdf4f1abb83edb79ea88
[ "BSD-3-Clause" ]
null
null
null
import pytest from pmaf.internal._shared import generate_lineages_from_taxa def test_generate_lineages_from_taxa( input_taxonomy_all_ranks, product_generate_lineages_from_taxa_default ): product = generate_lineages_from_taxa(input_taxonomy_all_ranks) should_product = product_generate_lineages_from_taxa_de...
33.454545
73
0.86413
1c8b9f0c56479df132fc5c11502b41a584161a62
1,952
py
Python
SVM/SVM_mnist_HAAR.py
prasad-madhale/machine-learning
bb611f809c16e1425136052e215ca83bd1148652
[ "MIT" ]
null
null
null
SVM/SVM_mnist_HAAR.py
prasad-madhale/machine-learning
bb611f809c16e1425136052e215ca83bd1148652
[ "MIT" ]
null
null
null
SVM/SVM_mnist_HAAR.py
prasad-madhale/machine-learning
bb611f809c16e1425136052e215ca83bd1148652
[ "MIT" ]
null
null
null
import tensorflow as tf from HAAR_feature import generate_rectangles, each_item, verify_rectangle, reduce_train from sklearn.metrics import accuracy_score from sklearn import svm import numpy as np mnist = tf.keras.datasets.mnist # get training and testing mnist set (x_train, y_train), (x_test, y_test) = mnist.load_...
29.134328
97
0.744877
1c8c924529f8ad9ae2a83b0aa1c331dd74d8cb90
13,585
py
Python
src/StockCharge/scripts/rebuild_StockCharge.py
xylsxyls/xueyelingshuan
61eb1c7c4f76c3eaf4cf26e4b2b37b6ed2abc5b9
[ "MIT" ]
3
2019-11-26T05:33:47.000Z
2020-05-18T06:49:41.000Z
src/StockCharge/scripts/rebuild_StockCharge.py
xylsxyls/xueyelingshuan
61eb1c7c4f76c3eaf4cf26e4b2b37b6ed2abc5b9
[ "MIT" ]
null
null
null
src/StockCharge/scripts/rebuild_StockCharge.py
xylsxyls/xueyelingshuan
61eb1c7c4f76c3eaf4cf26e4b2b37b6ed2abc5b9
[ "MIT" ]
null
null
null
#!python3 # -*- coding:utf-8 -*- import os import sys import time import ctypes import shutil import subprocess IsPy3 = sys.version_info[0] >= 3 if IsPy3: import winreg else: import codecs import _winreg as winreg BuildType = 'Release' IsRebuild = True Build = 'Rebuild' Update = False Copy = False CleanAl...
38.160112
195
0.595804
1c8c97d5038711c99ba7021fb071241b0dc526a1
3,377
py
Python
python/settings.py
Schizo/MediaBrowser
a80bd045380bb1c5697d9b0a6b9447a4b0e4dcc0
[ "MIT" ]
3
2016-01-19T10:36:09.000Z
2021-01-29T01:14:45.000Z
python/settings.py
Schizo/MediaBrowser
a80bd045380bb1c5697d9b0a6b9447a4b0e4dcc0
[ "MIT" ]
2
2016-02-20T13:09:38.000Z
2016-03-08T06:47:47.000Z
python/settings.py
Schizo/MediaBrowser
a80bd045380bb1c5697d9b0a6b9447a4b0e4dcc0
[ "MIT" ]
3
2016-02-19T16:52:57.000Z
2017-05-16T03:06:43.000Z
import os import json import shutil import time if __debug__: rootPath = "Categories/" else: rootPath = "W:/Categories/" if __debug__: pathCachePath = "../resources/pathcache_debug.json" else: pathCachePath = "W:/DB/pathcache.json" appPath = {"photoshop":"C:/Program Files/Adobe/Adobe Photoshop CC 201...
28.863248
160
0.594611
1c8caec1390ba3783fb31e02760adc685703ff7d
3,644
py
Python
mmf/datasets/base_dataset.py
kmarathe10/mmf
93cd2a7f333ad14e88fa6c2453a0f54b64b36210
[ "BSD-3-Clause" ]
null
null
null
mmf/datasets/base_dataset.py
kmarathe10/mmf
93cd2a7f333ad14e88fa6c2453a0f54b64b36210
[ "BSD-3-Clause" ]
null
null
null
mmf/datasets/base_dataset.py
kmarathe10/mmf
93cd2a7f333ad14e88fa6c2453a0f54b64b36210
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. from torch.utils.data.dataset import Dataset from mmf.common.registry import registry from mmf.common.sample import SampleList from mmf.datasets.processors.processors import Processor class BaseDataset(Dataset): """Base class for implementing a dataset. Inherits...
31.686957
84
0.634468
1c8cda7502a1581570682b70a79116762ec0c114
11,616
py
Python
rlkit/torch/vae/online_vae_offpolicy_algorithm.py
naomilwx/rlkit
d4514f89e4cef0a93a936c4f6b34b2099ae3a523
[ "MIT" ]
null
null
null
rlkit/torch/vae/online_vae_offpolicy_algorithm.py
naomilwx/rlkit
d4514f89e4cef0a93a936c4f6b34b2099ae3a523
[ "MIT" ]
null
null
null
rlkit/torch/vae/online_vae_offpolicy_algorithm.py
naomilwx/rlkit
d4514f89e4cef0a93a936c4f6b34b2099ae3a523
[ "MIT" ]
null
null
null
from rlkit.core import logger # from rlkit.core.timer import timer from rlkit.data_management.online_vae_replay_buffer import \ OnlineVaeRelabelingBuffer from rlkit.data_management.shared_obs_dict_replay_buffer \ import SharedObsDictRelabelingBuffer from rlkit.torch.skewfit.online_vae_algorithm import OnlineVae...
37.960784
132
0.628788
1c8cdc519b9c016e340d9a116bbe99094c653253
1,205
py
Python
pinax/projects/private_beta_project/urls.py
peiwei/pinax
34f95b1df4318655fe9bd90dcda8fe824e0c4117
[ "MIT" ]
1
2019-02-12T04:45:09.000Z
2019-02-12T04:45:09.000Z
pinax/projects/private_beta_project/urls.py
peiwei/pinax
34f95b1df4318655fe9bd90dcda8fe824e0c4117
[ "MIT" ]
null
null
null
pinax/projects/private_beta_project/urls.py
peiwei/pinax
34f95b1df4318655fe9bd90dcda8fe824e0c4117
[ "MIT" ]
1
2019-02-12T04:45:40.000Z
2019-02-12T04:45:40.000Z
from django.conf import settings from django.conf.urls.defaults import * from django.views.generic.simple import direct_to_template from django.contrib import admin admin.autodiscover() from account.openid_consumer import PinaxConsumer handler500 = "pinax.views.server_error" if settings.ACCOUNT_OPEN_SIGNUP: ...
27.386364
99
0.673029
1c8cf3718845cc8352e7619682180afc1e03f2a6
3,324
py
Python
scripts/python/road_segment_reader.py
OSADP/Pikalert-Vehicle-Data-Translator-
295da604408f6f13af0301b55476a81311459386
[ "Apache-2.0" ]
2
2020-06-03T15:59:50.000Z
2020-12-21T11:11:57.000Z
scripts/python/road_segment_reader.py
OSADP/Pikalert-Vehicle-Data-Translator-
295da604408f6f13af0301b55476a81311459386
[ "Apache-2.0" ]
null
null
null
scripts/python/road_segment_reader.py
OSADP/Pikalert-Vehicle-Data-Translator-
295da604408f6f13af0301b55476a81311459386
[ "Apache-2.0" ]
2
2019-10-02T06:47:23.000Z
2020-02-02T18:32:23.000Z
#!/usr/bin/env python import os import sys from optparse import OptionParser from netCDF4 import Dataset import json class RoadSegment(object): def __init__(self, segment_id, aux_id, dicast_id, center_lat, center_lon, lat, lon): self.segment_id = segment_id self.aux_id = aux_id s...
31.961538
219
0.6429
1c8d1a2cdc6b9a0b5a932d52af9a845753ec8c66
495
py
Python
sdk/servicefabric/azure-servicefabric/azure/servicefabric/version.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/servicefabric/azure-servicefabric/azure/servicefabric/version.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/servicefabric/azure-servicefabric/azure/servicefabric/version.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.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 ...
35.357143
76
0.519192
1c8d1b0fcc166c8d2a0d0393e608e2911dec5b9b
20,472
py
Python
datalad/interface/run_procedure.py
christinerogers/datalad
8b91f3767b45371e213aa7ade146a290a13c00f2
[ "MIT" ]
null
null
null
datalad/interface/run_procedure.py
christinerogers/datalad
8b91f3767b45371e213aa7ade146a290a13c00f2
[ "MIT" ]
null
null
null
datalad/interface/run_procedure.py
christinerogers/datalad
8b91f3767b45371e213aa7ade146a290a13c00f2
[ "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 noet: # ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## # # See COPYING file distributed along with the datalad package for the # copyright and license terms. # # ## ### ##...
41.108434
87
0.594764
1c8d1caf159e18bdcb22498accddd65deb80a401
14,038
py
Python
examples/vae.py
DPBayes/dppp
6b6cbf29a1605aebfeddf2813134fee3db931689
[ "Apache-2.0" ]
1
2020-08-18T02:38:01.000Z
2020-08-18T02:38:01.000Z
examples/vae.py
DPBayes/dppp
6b6cbf29a1605aebfeddf2813134fee3db931689
[ "Apache-2.0" ]
null
null
null
examples/vae.py
DPBayes/dppp
6b6cbf29a1605aebfeddf2813134fee3db931689
[ "Apache-2.0" ]
null
null
null
# SPDX-License-Identifier: Apache-2.0 # SPDX-FileCopyrightText: © -2019 Copyright Contributors to the Pyro project. # SPDX-FileCopyrightText: © 2019- d3p Developers and their Assignees # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. #...
41.046784
177
0.677803
1c8d491b43207fd3bddd01665e5834d03ff981bb
20,649
py
Python
toontown/shtiker/GolfPage.py
LittleNed/toontown-stride
1252a8f9a8816c1810106006d09c8bdfe6ad1e57
[ "Apache-2.0" ]
3
2020-01-02T08:43:36.000Z
2020-07-05T08:59:02.000Z
toontown/shtiker/GolfPage.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
null
null
null
toontown/shtiker/GolfPage.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
4
2019-06-20T23:45:23.000Z
2020-10-14T20:30:15.000Z
from direct.directnotify import DirectNotifyGlobal from direct.gui.DirectGui import * from pandac.PandaModules import * from toontown.toonbase import ToonPythonUtil as PythonUtil from direct.task import Task from toontown.fishing.FishPhoto import DirectRegion from toontown.shtiker.ShtikerPage import ShtikerPage from to...
45.683628
548
0.614219
1c8d7e6fdf8505108cb88df2baedc5277e726917
122
py
Python
world_export/blender_async.py
drewp/megasecond
13cd93e356b426e093135bf8402efec513e2fa46
[ "CC-BY-4.0" ]
2
2021-01-02T19:38:05.000Z
2021-04-06T07:51:27.000Z
world_export/blender_async.py
jeremy-coleman/megasecond
0ba6b453c1b35fcd7b33256ccd07ca7d0615dc39
[ "CC-BY-4.0" ]
null
null
null
world_export/blender_async.py
jeremy-coleman/megasecond
0ba6b453c1b35fcd7b33256ccd07ca7d0615dc39
[ "CC-BY-4.0" ]
1
2021-04-06T07:51:35.000Z
2021-04-06T07:51:35.000Z
import bpy def later(sec, func, *args, **kw): bpy.app.timers.register(lambda: func(*args, **kw), first_interval=sec)
24.4
74
0.680328
1c8dbff878f7f90da897ecccee96e6f12f4e09e1
307
py
Python
Python279/Scripts/cython-script.py
Edeleon4/PoolShark
e59d353b90ae3f6ad2e5995c1fee2a5870a4bf8f
[ "MIT" ]
null
null
null
Python279/Scripts/cython-script.py
Edeleon4/PoolShark
e59d353b90ae3f6ad2e5995c1fee2a5870a4bf8f
[ "MIT" ]
null
null
null
Python279/Scripts/cython-script.py
Edeleon4/PoolShark
e59d353b90ae3f6ad2e5995c1fee2a5870a4bf8f
[ "MIT" ]
null
null
null
#!c:\Python279\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'Cython==0.23.4','console_scripts','cython' __requires__ = 'Cython==0.23.4' import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.exit( load_entry_point('Cython==0.23.4', 'console_scripts', 'cython')() )
27.909091
73
0.697068
1c8dd91bd8c90061870d753203aae80cc6a82b9d
4,113
py
Python
kaggledatasets/core/dataset.py
kaggledatasets/kaggledatasets
685d16590667443546f7ad2c31dfac8ad6be6ca2
[ "Apache-2.0" ]
48
2019-11-23T17:39:42.000Z
2022-02-11T16:38:12.000Z
kaggledatasets/core/dataset.py
kaggledatasets/kaggledatasets
685d16590667443546f7ad2c31dfac8ad6be6ca2
[ "Apache-2.0" ]
5
2019-11-30T14:20:18.000Z
2019-12-10T12:07:54.000Z
kaggledatasets/core/dataset.py
kaggledatasets/kaggledatasets
685d16590667443546f7ad2c31dfac8ad6be6ca2
[ "Apache-2.0" ]
6
2019-11-30T15:44:43.000Z
2022-02-11T16:38:14.000Z
# Copyright 2019 Omkar Prabhu # # 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,...
30.021898
123
0.643569
1c8de65e3044983ba6c10b8ab43fd01ca277550e
23,042
py
Python
nova/api/ec2/__init__.py
rossella/nova
9b1180d5a09227604a470cb9d0790b57daf1b6d7
[ "Apache-2.0" ]
null
null
null
nova/api/ec2/__init__.py
rossella/nova
9b1180d5a09227604a470cb9d0790b57daf1b6d7
[ "Apache-2.0" ]
null
null
null
nova/api/ec2/__init__.py
rossella/nova
9b1180d5a09227604a470cb9d0790b57daf1b6d7
[ "Apache-2.0" ]
1
2020-07-24T06:47:54.000Z
2020-07-24T06:47:54.000Z
# Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # 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 ...
39.320819
79
0.595478
1c8df9b8afecaeeca819e18a98d81f4bf4161878
1,374
py
Python
board/migrations/0001_initial.py
shift-board/shiftboard
1e49a93d70a18a1f799d5bf2101ca67eb79031a9
[ "MIT" ]
1
2021-04-25T18:27:22.000Z
2021-04-25T18:27:22.000Z
board/migrations/0001_initial.py
shift-board/shiftboard
1e49a93d70a18a1f799d5bf2101ca67eb79031a9
[ "MIT" ]
16
2021-04-14T00:44:32.000Z
2021-05-02T22:23:01.000Z
board/migrations/0001_initial.py
shift-board/shiftboard
1e49a93d70a18a1f799d5bf2101ca67eb79031a9
[ "MIT" ]
null
null
null
# Generated by Django 3.2 on 2021-04-15 00:39 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] opera...
36.157895
119
0.599709
1c8e187b604a293de6602d3d0c9c77eb065d32c1
9,863
py
Python
sdks/bkapi-client-core/bkapi_client_core/client.py
IMBlues/bkpaas-python-sdk
a87bee3d26f0ddeac124c7a4679cd3eff4abb8fc
[ "MIT" ]
17
2021-08-03T03:15:35.000Z
2022-03-18T06:10:04.000Z
sdks/bkapi-client-core/bkapi_client_core/client.py
piglei/bkpaas-python-sdk
3dfea8be5702ccea1228691c6c1c3e87a27238d2
[ "MIT" ]
7
2021-08-03T07:10:12.000Z
2022-03-23T04:47:22.000Z
sdks/bkapi-client-core/bkapi_client_core/client.py
piglei/bkpaas-python-sdk
3dfea8be5702ccea1228691c6c1c3e87a27238d2
[ "MIT" ]
9
2021-08-03T03:20:36.000Z
2022-03-08T13:47:50.000Z
# -*- coding: utf-8 -*- """ * TencentBlueKing is pleased to support the open source community by making 蓝鲸智云-蓝鲸 PaaS 平台(BlueKing-PaaS) 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 co...
30.918495
118
0.617865
1c8e22944ce97544617b12dfac5bee6dc407977b
2,390
py
Python
sources/ingest/importers/utils/ontology.py
City-of-Helsinki/unified-search
726d53f28106579dbaec61ad76b03e2d12737a0f
[ "MIT" ]
null
null
null
sources/ingest/importers/utils/ontology.py
City-of-Helsinki/unified-search
726d53f28106579dbaec61ad76b03e2d12737a0f
[ "MIT" ]
31
2021-06-08T21:57:02.000Z
2022-03-23T10:45:36.000Z
sources/ingest/importers/utils/ontology.py
City-of-Helsinki/unified-search
726d53f28106579dbaec61ad76b03e2d12737a0f
[ "MIT" ]
null
null
null
from typing import List from .traffic import request_json class AlreadyFound(Exception): """Custom expection for checking against duplicate entries.""" pass class Ontology: """Helper class for dealing with ontology ID's and ontology tree. Instead of fething extra information for each ID separately...
27.471264
79
0.556485
1c8e4d62ef2beb7fca161068623e079a767e843d
2,288
py
Python
dataprep/clean/components/cat_encoder.py
Waterpine/dataprep-1
4032acb1d1f2c413d4cb000d17e8ffa611315f9f
[ "MIT" ]
1,229
2019-12-21T02:58:59.000Z
2022-03-30T08:12:33.000Z
dataprep/clean/components/cat_encoder.py
Waterpine/dataprep-1
4032acb1d1f2c413d4cb000d17e8ffa611315f9f
[ "MIT" ]
680
2019-12-19T06:09:23.000Z
2022-03-31T04:15:25.000Z
dataprep/clean/components/cat_encoder.py
Waterpine/dataprep-1
4032acb1d1f2c413d4cb000d17e8ffa611315f9f
[ "MIT" ]
170
2020-01-08T03:27:26.000Z
2022-03-20T20:42:55.000Z
""" Implement categorical encoder component. """ from typing import Any, Tuple, Dict import dask.dataframe as dd from .cat_encoding import operator_dic class CatEncoder: """Categorical encoder for encoding categorical columns Attributes: encode_type Name of categorical encoder e...
28.246914
91
0.606206
1c8e527b8a46951bc91d542c3272515f705d9089
1,828
py
Python
acid/errors.py
dw/acid
3aabb3940f23c052ed7a009cff5d84cc50b099fb
[ "Apache-2.0" ]
15
2015-09-24T03:57:49.000Z
2020-08-25T22:44:20.000Z
acid/errors.py
dw/acid
3aabb3940f23c052ed7a009cff5d84cc50b099fb
[ "Apache-2.0" ]
2
2015-06-21T02:06:20.000Z
2019-11-14T14:02:39.000Z
acid/errors.py
dw/acid
3aabb3940f23c052ed7a009cff5d84cc50b099fb
[ "Apache-2.0" ]
1
2019-09-11T03:13:52.000Z
2019-09-11T03:13:52.000Z
# # Copyright 2013, David Wilson. # # 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 writi...
29.015873
76
0.703501
1c8e58897bcf305e3df2f1c428426cb5d45ea6bc
2,291
py
Python
PyFunceble/status/reputation/__init__.py
NeolithEra/PyFunceble
58db861d36224f279a460f4959aaa2e140ce749f
[ "MIT" ]
null
null
null
PyFunceble/status/reputation/__init__.py
NeolithEra/PyFunceble
58db861d36224f279a460f4959aaa2e140ce749f
[ "MIT" ]
null
null
null
PyFunceble/status/reputation/__init__.py
NeolithEra/PyFunceble
58db861d36224f279a460f4959aaa2e140ce749f
[ "MIT" ]
null
null
null
""" The tool to check the availability or syntax of domains, IPv4, IPv6 or URL. :: ██████╗ ██╗ ██╗███████╗██╗ ██╗███╗ ██╗ ██████╗███████╗██████╗ ██╗ ███████╗ ██╔══██╗╚██╗ ██╔╝██╔════╝██║ ██║████╗ ██║██╔════╝██╔════╝██╔══██╗██║ ██╔════╝ ██████╔╝ ╚████╔╝ █████╗ ██║ ██║██╔██╗ ██║██║ ...
36.951613
88
0.579223
1c8eaad2441b2dfcf6ff459a980dfc033d78781f
4,749
py
Python
Docs/keras_code_examples/adaround.py
lipovsek/aimet
236fb02cc6c45e65c067030416c49a09ace82045
[ "BSD-3-Clause" ]
null
null
null
Docs/keras_code_examples/adaround.py
lipovsek/aimet
236fb02cc6c45e65c067030416c49a09ace82045
[ "BSD-3-Clause" ]
null
null
null
Docs/keras_code_examples/adaround.py
lipovsek/aimet
236fb02cc6c45e65c067030416c49a09ace82045
[ "BSD-3-Clause" ]
null
null
null
# /usr/bin/env python3.6 # -*- mode: python -*- # ============================================================================= # @@-COPYRIGHT-START-@@ # # Copyright (c) 2022, Qualcomm Innovation Center, Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification,...
44.383178
119
0.725626
1c8eb01e6be6c6af725abbc0e86af4d0b691ea16
559
py
Python
tests/test_misc.py
evangelos-ch/maho-bot
458c3ed0e4cb4d8edd300441b2defbc481aaf3f3
[ "MIT" ]
null
null
null
tests/test_misc.py
evangelos-ch/maho-bot
458c3ed0e4cb4d8edd300441b2defbc481aaf3f3
[ "MIT" ]
null
null
null
tests/test_misc.py
evangelos-ch/maho-bot
458c3ed0e4cb4d8edd300441b2defbc481aaf3f3
[ "MIT" ]
1
2021-02-16T13:06:56.000Z
2021-02-16T13:06:56.000Z
"""Tests for misc functionality.""" from maho.modules import maho from maho.utils import get_logger def test_logger(): """Test that the logger can be accessed.""" logger = get_logger() assert logger is not None logger.debug("Test was run successfully.") def test_static_file(): """Test behaviour ...
26.619048
62
0.699463
1c8ec5ba9a8f9b2d8b69de11844ffb2a3e21c680
1,070
py
Python
examples/static_mitm.py
JarbasHiveMind/poorman_handshake
4b6460f994813017d1c1e56ea7e5760f503a8eca
[ "Apache-2.0" ]
null
null
null
examples/static_mitm.py
JarbasHiveMind/poorman_handshake
4b6460f994813017d1c1e56ea7e5760f503a8eca
[ "Apache-2.0" ]
null
null
null
examples/static_mitm.py
JarbasHiveMind/poorman_handshake
4b6460f994813017d1c1e56ea7e5760f503a8eca
[ "Apache-2.0" ]
null
null
null
from poorman_handshake import HandShake """ In this example the RSA keys are static On every new handshake the same private keys are used the public keys were exchanged securely you can verify you are communicating with the same node you got the keys from """ path_to_bob_key = "bob.asc" path_to_alice_key = "alice.asc"...
27.435897
77
0.766355
1c8ed109180401d90a226dae2d1af757471d2173
172,888
py
Python
tests/unit/gapic/compute_v1/test_disks.py
LaudateCorpus1/python-compute
a36c637f153c7b4ef49bb6a78c8b09f3746e7af1
[ "Apache-2.0" ]
null
null
null
tests/unit/gapic/compute_v1/test_disks.py
LaudateCorpus1/python-compute
a36c637f153c7b4ef49bb6a78c8b09f3746e7af1
[ "Apache-2.0" ]
null
null
null
tests/unit/gapic/compute_v1/test_disks.py
LaudateCorpus1/python-compute
a36c637f153c7b4ef49bb6a78c8b09f3746e7af1
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
39.346381
103
0.666836
1c8ee233a587468a3076276e62524dd0f1ef6ee2
50,668
py
Python
qnarre/old/bert/run_squad.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
qnarre/old/bert/run_squad.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
qnarre/old/bert/run_squad.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
37.643388
100
0.620786
1c8ee3028f6af1f940dbc75a24c8d0b561e6c88f
145
py
Python
angrmanagement/logic/__init__.py
Kyle-Kyle/angr-management
6ea65f19d813be510a38f06510b2b2148a6b5000
[ "BSD-2-Clause" ]
2
2022-01-23T21:43:54.000Z
2022-02-02T08:20:20.000Z
angrmanagement/logic/__init__.py
Kyle-Kyle/angr-management
6ea65f19d813be510a38f06510b2b2148a6b5000
[ "BSD-2-Clause" ]
1
2021-12-04T01:11:46.000Z
2021-12-04T01:11:46.000Z
angrmanagement/logic/__init__.py
Kyle-Kyle/angr-management
6ea65f19d813be510a38f06510b2b2148a6b5000
[ "BSD-2-Clause" ]
1
2021-05-17T05:46:19.000Z
2021-05-17T05:46:19.000Z
class GlobalInfo: gui_thread = None main_window = None daemon_inst = None daemon_conn = None headless_plugin_manager = None
18.125
34
0.696552
1c8f4058c7c1eedc83d1bf40645970fd48245b49
4,922
py
Python
src/timeshap/plot/event_level.py
feedzai/timeshap
0d56b3b86222d52fdc5a1e96f125513e0ed18e6c
[ "Apache-2.0" ]
49
2022-03-25T14:35:52.000Z
2022-03-31T18:05:51.000Z
src/timeshap/plot/event_level.py
feedzai/timeshap
0d56b3b86222d52fdc5a1e96f125513e0ed18e6c
[ "Apache-2.0" ]
1
2022-03-31T12:15:55.000Z
2022-03-31T14:59:06.000Z
src/timeshap/plot/event_level.py
feedzai/timeshap
0d56b3b86222d52fdc5a1e96f125513e0ed18e6c
[ "Apache-2.0" ]
2
2022-03-28T04:32:35.000Z
2022-03-28T06:39:24.000Z
# Copyright 2022 Feedzai # # 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 writi...
39.376
145
0.570703
1c8f627f651973887b1f2be1a6bfaabe322eb383
4,612
py
Python
modules/tools/routing/road_show.py
DavidSplit/apollo-3.0
9f82838e857e4c9146952946cbc34b9f35098deb
[ "Apache-2.0" ]
6
2019-10-11T07:57:49.000Z
2022-02-23T15:23:41.000Z
modules/tools/routing/road_show.py
DavidSplit/apollo-3.0
9f82838e857e4c9146952946cbc34b9f35098deb
[ "Apache-2.0" ]
null
null
null
modules/tools/routing/road_show.py
DavidSplit/apollo-3.0
9f82838e857e4c9146952946cbc34b9f35098deb
[ "Apache-2.0" ]
12
2019-10-11T07:57:49.000Z
2022-03-16T05:13:00.000Z
#!/usr/bin/env python ############################################################################### # Copyright 2017 The Apollo Authors. All Rights Reserved. # Modifications Copyright (c) 2018 LG Electronics, Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not ...
29.375796
80
0.59497
1c8f68814fc82f9cb434bf5d3d4fa68efdc762f7
3,696
py
Python
hoverset/util/validators.py
tjmoran/Formation
ff1e0a307fffaa65251736a48fefb23fe9ee75dd
[ "MIT" ]
71
2020-06-19T11:17:35.000Z
2022-03-24T02:51:54.000Z
hoverset/util/validators.py
tjmoran/Formation
ff1e0a307fffaa65251736a48fefb23fe9ee75dd
[ "MIT" ]
11
2020-06-20T19:04:02.000Z
2022-03-01T04:42:36.000Z
hoverset/util/validators.py
tjmoran/Formation
ff1e0a307fffaa65251736a48fefb23fe9ee75dd
[ "MIT" ]
6
2020-11-15T01:38:53.000Z
2021-12-25T07:14:23.000Z
""" Common validators used in user input points. All validators should return true if value is valid and false otherwise Ensure all validators here obey this fundamental design requirement! """ import re import keyword HEX_COLOR = re.compile(r"^#[0-9a-fA-F]{0,6}$") SIGNED = re.compile(r"^[+\-]$") # Most methods her...
30.545455
105
0.710227
1c8f82cfbe40851d74b1ea9700f80d3b051a13eb
840
py
Python
pololu/motors/crc7.py
hansonrobotics/pololu-motors
5d67ee85eb3ce53a9fdc03bf201ab64a267a5903
[ "MIT" ]
5
2016-01-16T21:57:43.000Z
2018-09-11T22:36:47.000Z
pololu/motors/crc7.py
hansonrobotics/pololu-motors
5d67ee85eb3ce53a9fdc03bf201ab64a267a5903
[ "MIT" ]
null
null
null
pololu/motors/crc7.py
hansonrobotics/pololu-motors
5d67ee85eb3ce53a9fdc03bf201ab64a267a5903
[ "MIT" ]
2
2019-02-28T17:49:04.000Z
2021-01-24T13:59:36.000Z
# # pololu/motors/crc7.py # # Basic algorithm thanks to Jean-Loup Le Roux # https://code.google.com/p/robotter/source/browse/code/crc7.py?repo=charon # # Modifications by Carl J. Nobile # CRC7_POLY = 0x91 def byte_crc7(v): """ Compute CRC of a single byte. """ for i in range(8): if v & 1: ...
17.5
75
0.555952
1c8fa8afd7d39c571a00579301fd307892747782
806
py
Python
aula7/exercicio2.py
diegocolombo1989/Trabalho-Python
4603117bebfb6e801c3289e108b4e8f29442ab6f
[ "MIT" ]
null
null
null
aula7/exercicio2.py
diegocolombo1989/Trabalho-Python
4603117bebfb6e801c3289e108b4e8f29442ab6f
[ "MIT" ]
null
null
null
aula7/exercicio2.py
diegocolombo1989/Trabalho-Python
4603117bebfb6e801c3289e108b4e8f29442ab6f
[ "MIT" ]
null
null
null
# Exercicio 2 - Dicionarios #Escreva um programa que leia os dados de 11 jogadores # Jogador: nome, posicao, numero, pernaboa #Crie um dicionario para armazenar os dados # Imprima todos os jogadores e seus dados dicionario_jogadores = { 'Nome':'', 'Posicao':'', 'numero':'', 'pernaboa':'' } lista = [] for i in range(1,...
50.375
176
0.7134
1c8fd81588da3b815072f726caea11e824c1f8d6
223
py
Python
aiokafkadaemon/__init__.py
bobzsj87/aiokafkadaemon
8305fa018fc0c1ff2464f586a5ad43d9411f0ca2
[ "MIT" ]
null
null
null
aiokafkadaemon/__init__.py
bobzsj87/aiokafkadaemon
8305fa018fc0c1ff2464f586a5ad43d9411f0ca2
[ "MIT" ]
null
null
null
aiokafkadaemon/__init__.py
bobzsj87/aiokafkadaemon
8305fa018fc0c1ff2464f586a5ad43d9411f0ca2
[ "MIT" ]
null
null
null
"""aiokafkadaemon: framework for daemonized apps using kafka with AsyncIO""" # pylint: disable=I0011,W0401 from .daemon import Daemon # noqa: F403 from .worker import Worker # noqa: F403 __all__ = ['Daemon', 'Worker',]
27.875
76
0.730942