hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
17c121d0899135ab18f101d5687dfc9db718713e
258
py
Python
2021/examples-in-class-2021-10-08/stars_forloop.py
ati-ozgur/course-python
38237d120043c07230658b56dc3aeb01c3364933
[ "Apache-2.0" ]
1
2021-02-04T16:59:11.000Z
2021-02-04T16:59:11.000Z
2021/examples-in-class-2021-10-08/stars_forloop.py
ati-ozgur/course-python
38237d120043c07230658b56dc3aeb01c3364933
[ "Apache-2.0" ]
null
null
null
2021/examples-in-class-2021-10-08/stars_forloop.py
ati-ozgur/course-python
38237d120043c07230658b56dc3aeb01c3364933
[ "Apache-2.0" ]
1
2019-10-30T14:37:48.000Z
2019-10-30T14:37:48.000Z
str_N = input("Please enter number: ") N = int(str_N) #N = 5 for index in range(0,N): space_count = (N-index) star_count = (index * 2)+1 spaces = (" " * space_count) stars = ("*" * star_count ) line = spaces + stars print(line )
18.428571
38
0.562016
71f10676a9f48fa2686e2f79b8240ae7da09c665
1,655
py
Python
dcp_py/profile/__init__.py
sraaphorst/Daily-Coding-Problem
acfcf83a66099f3e4b69e2447600b8208cd9ab1b
[ "MIT" ]
null
null
null
dcp_py/profile/__init__.py
sraaphorst/Daily-Coding-Problem
acfcf83a66099f3e4b69e2447600b8208cd9ab1b
[ "MIT" ]
null
null
null
dcp_py/profile/__init__.py
sraaphorst/Daily-Coding-Problem
acfcf83a66099f3e4b69e2447600b8208cd9ab1b
[ "MIT" ]
null
null
null
# From https://stackoverflow.com/a/53301648/3180151 import time import os import psutil import inspect def elapsed_since(start): # return time.strftime("%H:%M:%S", time.gmtime(time.time() - start)) elapsed = time.time() - start if elapsed < 1: return str(round(elapsed * 1000, 2)) + "ms" if ela...
29.553571
72
0.575831
eb01a51f3e425152288180a08a51ab2f1f668888
1,771
py
Python
support/ComputeTableSizes.py
abolz/Json1
704cc4f4f4b5cad302afdc8193fc72d0c5a4f1b6
[ "MIT" ]
4
2019-01-21T03:52:03.000Z
2019-02-11T02:46:18.000Z
support/ComputeTableSizes.py
abolz/Json1
704cc4f4f4b5cad302afdc8193fc72d0c5a4f1b6
[ "MIT" ]
null
null
null
support/ComputeTableSizes.py
abolz/Json1
704cc4f4f4b5cad302afdc8193fc72d0c5a4f1b6
[ "MIT" ]
2
2018-07-06T21:37:18.000Z
2021-12-08T01:29:11.000Z
# Translated from: # https://github.com/ulfjack/ryu/blob/c9c3fb19791c44fbe35701ad3b8ca4dc0977eb08/src/main/java/info/adams/ryu/analysis/ComputeTableSizes.java # Copyright 2018 Ulf Adams # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License...
27.246154
139
0.643704
0f41cb8acabb173f4ee15757a6e47780e0492e3e
1,603
py
Python
src/provisioning.py
sbarbett/ssp-sdk-python
03677bcd32f268f84b1e490a7d6c687ee33762e9
[ "Apache-2.0" ]
null
null
null
src/provisioning.py
sbarbett/ssp-sdk-python
03677bcd32f268f84b1e490a7d6c687ee33762e9
[ "Apache-2.0" ]
null
null
null
src/provisioning.py
sbarbett/ssp-sdk-python
03677bcd32f268f84b1e490a7d6c687ee33762e9
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 NeuStar, 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 required by applicable law or a...
30.245283
74
0.763568
2b0645f4bb16d4421b81b21e768a9b5f4a7a5e05
1,292
py
Python
loadcfs.py
bwright8/csproject
d9b758f57cadde8c1803dc4e3e32cb9166b21c99
[ "OLDAP-2.4", "OLDAP-2.8" ]
null
null
null
loadcfs.py
bwright8/csproject
d9b758f57cadde8c1803dc4e3e32cb9166b21c99
[ "OLDAP-2.4", "OLDAP-2.8" ]
null
null
null
loadcfs.py
bwright8/csproject
d9b758f57cadde8c1803dc4e3e32cb9166b21c99
[ "OLDAP-2.4", "OLDAP-2.8" ]
null
null
null
import numpy from sklearn.svm import LinearSVC from sklearn.naive_bayes import GaussianNB from sklearn.neural_network import MLPClassifier from sklearn.metrics import accuracy_score from learnermodv2 import * from joblib import dump,load gnb = GaussianNB() nb_classifier = gnb.fit(Xp,y) wsvcs = [] def lsvc(): fo...
21.533333
120
0.641641
6f9a5e08966b85b456bbd2e3ba865ddabc92b424
499
py
Python
flake8_codes/wemake_python_styleguide/violations/keep_till_first_div.py
flake8-codes/flake8-codes.github.io
7af252692e05b8448e121d2734259271bb76f247
[ "MIT" ]
2
2021-12-10T20:57:06.000Z
2022-03-04T20:16:17.000Z
flake8_codes/wemake_python_styleguide/violations/keep_till_first_div.py
octadocs/flake8.codes
7af252692e05b8448e121d2734259271bb76f247
[ "MIT" ]
11
2021-09-11T13:45:32.000Z
2021-09-24T01:12:48.000Z
flake8_codes/wemake_python_styleguide/violations/keep_till_first_div.py
octadocs/flake8-codes
7af252692e05b8448e121d2734259271bb76f247
[ "MIT" ]
null
null
null
from itertools import takewhile def keep_till_first_div(text: str) -> str: """ Keep text content till the first div element. This is useful for WPS violation modules docstrings, where first goes a piece of useful text and then Sphinx autodoc tags which are converted to <div>'s by pandoc. """ ...
24.95
76
0.663327
88e1b44cf37ea4aab7010c734730a1d5d7b5ceb3
1,666
py
Python
aispace/layers/activations.py
SmileGoat/AiSpace
35fc120667e4263c99b300815e0bf018f5064a40
[ "Apache-2.0" ]
32
2020-01-16T07:59:03.000Z
2022-03-31T09:24:00.000Z
aispace/layers/activations.py
SmileGoat/AiSpace
35fc120667e4263c99b300815e0bf018f5064a40
[ "Apache-2.0" ]
9
2020-06-05T03:27:06.000Z
2022-03-12T01:00:17.000Z
aispace/layers/activations.py
SmileGoat/AiSpace
35fc120667e4263c99b300815e0bf018f5064a40
[ "Apache-2.0" ]
3
2020-06-09T02:22:50.000Z
2021-07-19T06:07:07.000Z
# -*- coding: utf-8 -*- # @Time : 2019-11-05 14:04 # @Author : yingyuankai # @Email : yingyuankai@aliyun.com # @File : activations.py import math import numpy as np import tensorflow as tf __all__ = [ "gelu", "gelu_new", "swish", "ACT2FN" ] def gelu(x): """Gaussian Error Linear Unit. ...
25.242424
66
0.614046
3865ad65465bafc2067f580a060cc8b51d63b75e
2,298
py
Python
tests/test_offchain_jws.py
firstdag/client-sdk-python
fbdbc155fbe304ca22f2123b70fc6c988f57e81e
[ "Apache-2.0" ]
null
null
null
tests/test_offchain_jws.py
firstdag/client-sdk-python
fbdbc155fbe304ca22f2123b70fc6c988f57e81e
[ "Apache-2.0" ]
null
null
null
tests/test_offchain_jws.py
firstdag/client-sdk-python
fbdbc155fbe304ca22f2123b70fc6c988f57e81e
[ "Apache-2.0" ]
null
null
null
# Copyright (c) The Diem Core Contributors # SPDX-License-Identifier: Apache-2.0 from diem import offchain, LocalAccount from cryptography.hazmat.primitives.asymmetric.ed25519 import Ed25519PublicKey import cryptography, pytest def test_serialize_deserialize(): account = LocalAccount.generate() response = of...
33.794118
154
0.721062
0f511cadf9687ba0b8bc8273998e0ccb4095253f
1,160
py
Python
setup.py
trojsten/submit
1f2da17422b0fc89daa996dcc55866fc52b54d63
[ "BSD-3-Clause" ]
1
2016-12-15T17:56:31.000Z
2016-12-15T17:56:31.000Z
setup.py
trojsten/submit
1f2da17422b0fc89daa996dcc55866fc52b54d63
[ "BSD-3-Clause" ]
23
2017-01-09T10:57:04.000Z
2021-06-10T19:29:33.000Z
setup.py
maaario/submit
1f2da17422b0fc89daa996dcc55866fc52b54d63
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- try: from setuptools import setup except ImportError: from distutils.core import setup setup( name='django-trojsten-submit', packages=[ 'submit', ], version='0.1.0', description='Django app for storing submits and reviews, used in Trojst...
29
97
0.589655
392d0a120782bbc8ae5de9ae89a0d03e598b7a10
12,400
py
Python
otrkeydecode/otrkeydecode.py
omza/otrkeydecode
236f7e7a5a5854d578c4e339d447e49a15e95543
[ "MIT" ]
1
2018-10-28T20:46:57.000Z
2018-10-28T20:46:57.000Z
otrkeydecode/otrkeydecode.py
mstroehle/otrkeydecode
236f7e7a5a5854d578c4e339d447e49a15e95543
[ "MIT" ]
null
null
null
otrkeydecode/otrkeydecode.py
mstroehle/otrkeydecode
236f7e7a5a5854d578c4e339d447e49a15e95543
[ "MIT" ]
1
2018-10-28T20:46:28.000Z
2018-10-28T20:46:28.000Z
import subprocess import ftplib from datetime import datetime, timedelta import os, fnmatch from sys import stdout, stderr import logging import logging.handlers import signal import urllib.request import configparser import re """ helper """ def safe_cast(val, to_type, default=None): try: result = None...
36.470588
169
0.539758
1dd31c50d9e2c83448fd6c432382999961fc350f
11,900
py
Python
src/the_tale/the_tale/game/heroes/tests/test_requests.py
al-arz/the-tale
542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5
[ "BSD-3-Clause" ]
null
null
null
src/the_tale/the_tale/game/heroes/tests/test_requests.py
al-arz/the-tale
542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5
[ "BSD-3-Clause" ]
null
null
null
src/the_tale/the_tale/game/heroes/tests/test_requests.py
al-arz/the-tale
542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5
[ "BSD-3-Clause" ]
null
null
null
import smart_imports smart_imports.all() class HeroRequestsTestBase(utils_testcase.TestCase): def setUp(self): super(HeroRequestsTestBase, self).setUp() game_logic.create_test_map() self.account = self.accounts_factory.create_account() self.storage = game_logic_storage.LogicSt...
43.589744
189
0.655798
f48ce1439d4087548a28d137d609190dba08449b
5,467
py
Python
buildscripts/BuildRoot/Configs.py
YuanYuLin/iopcbuilder
19537c9d651a7cd42432b9f6f6654c1ddeb0dbf0
[ "Apache-2.0" ]
null
null
null
buildscripts/BuildRoot/Configs.py
YuanYuLin/iopcbuilder
19537c9d651a7cd42432b9f6f6654c1ddeb0dbf0
[ "Apache-2.0" ]
null
null
null
buildscripts/BuildRoot/Configs.py
YuanYuLin/iopcbuilder
19537c9d651a7cd42432b9f6f6654c1ddeb0dbf0
[ "Apache-2.0" ]
null
null
null
import os import ConfigParser from Singleton import Singleton class Configs(Singleton): flags = { "IS_DEFAULT_ROOT_OVERRIDE" :True, } dicts = { "BUILDROOT_TOP" :"", "BUILDSCRIPT" :"", "PROJECT_TOP" :"", "OUTPUT_TOP" :"", "OUTPUT_LINK" :"", ...
33.746914
127
0.622279
9d63951b2fe40b69472b2f6ad33c116fbcc2d8a4
36
py
Python
PyYouTube/__init__.py
Soebb/PyYouTube
125b9f63b677eeece9d95790505a3818ed26c94d
[ "MIT" ]
1
2021-08-09T11:44:34.000Z
2021-08-09T11:44:34.000Z
PyYouTube/__init__.py
Soebb/PyYouTube
125b9f63b677eeece9d95790505a3818ed26c94d
[ "MIT" ]
null
null
null
PyYouTube/__init__.py
Soebb/PyYouTube
125b9f63b677eeece9d95790505a3818ed26c94d
[ "MIT" ]
null
null
null
from .pyyoutube import Data ,Search
18
35
0.805556
1388c2d3b9334e24c2029538e15c1d2acca04585
114
py
Python
variables.py
P33ry/mudpi-core
28cc009b368c230f6062382085db5a1aee65b430
[ "MIT" ]
null
null
null
variables.py
P33ry/mudpi-core
28cc009b368c230f6062382085db5a1aee65b430
[ "MIT" ]
1
2020-11-10T12:53:04.000Z
2020-11-10T12:53:04.000Z
variables.py
P33ry/mudpi-core
28cc009b368c230f6062382085db5a1aee65b430
[ "MIT" ]
1
2020-11-06T07:28:15.000Z
2020-11-06T07:28:15.000Z
PREVIOUS_LINE="\x1b[1F" RED_BACK="\x1b[41;37m" GREEN_BACK="\x1b[42;30m" YELLOW_BACK="\x1b[43;30m" RESET="\x1b[0m"
19
25
0.710526
cb773caf56a1b53ea22a696af8fa31ea476cf630
13,444
py
Python
rl_games/algos_torch/models.py
icleen/rl_games
b9a54548eead17387c396ccfcb84eb98b65be372
[ "MIT" ]
null
null
null
rl_games/algos_torch/models.py
icleen/rl_games
b9a54548eead17387c396ccfcb84eb98b65be372
[ "MIT" ]
null
null
null
rl_games/algos_torch/models.py
icleen/rl_games
b9a54548eead17387c396ccfcb84eb98b65be372
[ "MIT" ]
null
null
null
import rl_games.algos_torch.layers import numpy as np import torch.nn as nn import torch import torch.nn.functional as F import rl_games.common.divergence as divergence from rl_games.algos_torch.torch_ext import CategoricalMasked from torch.distributions import Categorical from rl_games.algos_torch.sac_helper import Sq...
38.632184
124
0.570738
d74d0d7684292e26585f680a6efa79402f16d952
2,100
py
Python
potado/tests/unit_test_default_schedule_builder.py
pikesley/potado
ce3f908f764d798253709053abec08100ef240b7
[ "MIT" ]
null
null
null
potado/tests/unit_test_default_schedule_builder.py
pikesley/potado
ce3f908f764d798253709053abec08100ef240b7
[ "MIT" ]
null
null
null
potado/tests/unit_test_default_schedule_builder.py
pikesley/potado
ce3f908f764d798253709053abec08100ef240b7
[ "MIT" ]
null
null
null
import json import logging from mock import MagicMock, mock_open, patch from lib.client import TadoClient from lib.default_schedule_builder import DefaultScheduleBuilder class TestDefaultScheduleBuilder: """Test the DefaultScheduleBuilder.""" def setup_method(self): """Do some initialisation.""" ...
32.8125
84
0.509524
1e3747e351073704f390308b4aa8b1ef4d41e227
7,228
py
Python
app/main/routes.py
BolajiOlajide/BucketListAPI
8b6eb06f4f6c3345e58c7218827b6309b55905b8
[ "MIT" ]
3
2018-05-07T11:39:16.000Z
2019-04-26T13:32:39.000Z
app/main/routes.py
BolajiOlajide/BucketListAPI
8b6eb06f4f6c3345e58c7218827b6309b55905b8
[ "MIT" ]
null
null
null
app/main/routes.py
BolajiOlajide/BucketListAPI
8b6eb06f4f6c3345e58c7218827b6309b55905b8
[ "MIT" ]
null
null
null
""" This script contains the routes for the different API methods. This handles the overall routing of the application. """ from flask import g, jsonify, request from flask_cors import cross_origin from . import main from app import db, errors from app.auth.routes import auth from app.decorators import json, paginate...
31.982301
79
0.649696
c205a02f89e3b987fa9a055c0b6a84bdf7e49b9a
140
py
Python
sum_alternative.py
mlastovski/kse-sum
1094a1dd352d291d7549ef37b3356e65c77eacd7
[ "MIT" ]
null
null
null
sum_alternative.py
mlastovski/kse-sum
1094a1dd352d291d7549ef37b3356e65c77eacd7
[ "MIT" ]
null
null
null
sum_alternative.py
mlastovski/kse-sum
1094a1dd352d291d7549ef37b3356e65c77eacd7
[ "MIT" ]
null
null
null
# final def sum_of_args(args): result = 0 for i in args: result += i return result print(sum_of_args(args=[1,2,3,4]))
14
34
0.592857
2572f92bff70d6df27dbfcc1a8f361e602f653c4
89
py
Python
examples/apps/django_multi_apps/landing/apps.py
datalayer-contrib/holoviz-panel
c97b57e8eaff4b5f542add41f496395da2483b23
[ "BSD-3-Clause" ]
1,130
2019-11-23T09:53:37.000Z
2022-03-31T11:30:07.000Z
examples/apps/django_multi_apps/landing/apps.py
datalayer-contrib/holoviz-panel
c97b57e8eaff4b5f542add41f496395da2483b23
[ "BSD-3-Clause" ]
2,265
2019-11-20T17:09:09.000Z
2022-03-31T22:09:38.000Z
examples/apps/django_multi_apps/landing/apps.py
datalayer-contrib/holoviz-panel
c97b57e8eaff4b5f542add41f496395da2483b23
[ "BSD-3-Clause" ]
215
2019-11-26T11:49:04.000Z
2022-03-30T10:23:11.000Z
from django.apps import AppConfig class LandingConfig(AppConfig): name = 'landing'
14.833333
33
0.752809
46518735760cabd69b7950d794fe35472f513a5b
1,013
py
Python
Defense/SimpleTopology.py
rprabhuh/SDNDDoS
91a23c0b817999bce5b07359681c5b2dddf89b9d
[ "MIT" ]
3
2016-10-11T06:46:32.000Z
2021-02-07T10:28:41.000Z
Defense/SimpleTopology.py
rprabhuh/SDNDDoS
91a23c0b817999bce5b07359681c5b2dddf89b9d
[ "MIT" ]
null
null
null
Defense/SimpleTopology.py
rprabhuh/SDNDDoS
91a23c0b817999bce5b07359681c5b2dddf89b9d
[ "MIT" ]
5
2015-09-03T10:38:15.000Z
2020-08-26T13:12:31.000Z
#!/usr/bin/env python from mininet.net import Mininet from mininet.topo import Topo from mininet.cli import CLI from subprocess import call net = Mininet() #cli=CLI() #Creating nodes in the network c0=net.addController() h0=net.addHost('h0') s1=net.addSwitch('s1') h1=net.addHost('h1') h2=net.addHost('h2') #Creating li...
26.657895
99
0.737414
eb137d33b757c4b6b62c29fa9043ac0ad03c2aab
19,670
py
Python
src/robotide/editor/settingeditors.py
veryl-technologies/t24-tests-ide
16cd803895916a785c0e1fec3f71f9388c21edc9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/robotide/editor/settingeditors.py
veryl-technologies/t24-tests-ide
16cd803895916a785c0e1fec3f71f9388c21edc9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/robotide/editor/settingeditors.py
veryl-technologies/t24-tests-ide
16cd803895916a785c0e1fec3f71f9388c21edc9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright 2008-2012 Nokia Siemens Networks Oyj # # 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...
35.250896
144
0.658465
bd27c53fcd7d56c3121c00b512ae6c0e4e9abb9c
49,881
py
Python
src/awkward/_v2/contents/unionarray.py
douglasdavis/awkward-1.0
f00775803a5568efb0a8e2dae3b1a4f23228fa40
[ "BSD-3-Clause" ]
null
null
null
src/awkward/_v2/contents/unionarray.py
douglasdavis/awkward-1.0
f00775803a5568efb0a8e2dae3b1a4f23228fa40
[ "BSD-3-Clause" ]
null
null
null
src/awkward/_v2/contents/unionarray.py
douglasdavis/awkward-1.0
f00775803a5568efb0a8e2dae3b1a4f23228fa40
[ "BSD-3-Clause" ]
null
null
null
# BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE # pylint: disable=consider-using-enumerate import copy import ctypes from collections.abc import Iterable import awkward as ak from awkward._v2.index import Index from awkward._v2.index import Index8 from awkward._v2.index impor...
35.078059
125
0.481626
707708cf8f374a438f02680c23297eba45b65509
8,317
py
Python
tests/base.py
sklump/marshmallow
8af34a94322bf4fff71eaff0f29d5e1655fc9c6e
[ "MIT" ]
null
null
null
tests/base.py
sklump/marshmallow
8af34a94322bf4fff71eaff0f29d5e1655fc9c6e
[ "MIT" ]
19
2021-06-11T06:21:43.000Z
2022-01-12T23:15:30.000Z
tests/base.py
sklump/marshmallow
8af34a94322bf4fff71eaff0f29d5e1655fc9c6e
[ "MIT" ]
null
null
null
"""Test utilities and fixtures.""" import datetime as dt import uuid import simplejson import pytz from marshmallow import Schema, fields, post_load, validate, missing from marshmallow.exceptions import ValidationError central = pytz.timezone("US/Central") ALL_FIELDS = [ fields.String, fields.Integer, ...
25.20303
84
0.604906
bfe0b9e1fcf14757fb6b70de330dd0de46b2cced
2,839
py
Python
antilupa/forms.py
voyager-kin/antilupa
dd5b16541b5178b085df8899a848859adc978da9
[ "MIT" ]
null
null
null
antilupa/forms.py
voyager-kin/antilupa
dd5b16541b5178b085df8899a848859adc978da9
[ "MIT" ]
null
null
null
antilupa/forms.py
voyager-kin/antilupa
dd5b16541b5178b085df8899a848859adc978da9
[ "MIT" ]
null
null
null
from flask_wtf import FlaskForm from wtforms import StringField, PasswordField, SubmitField, HiddenField from wtforms.validators import Length, EqualTo, Email, DataRequired, ValidationError from antilupa.models import User, Person, TrackRecordView from wtforms import StringField, BooleanField, FileField, SubmitFiel...
52.574074
113
0.717506
abd0f4023fe510e1be546fb87d4aefc0c2981d78
11,296
py
Python
Tests/GUI/DMachineSetup/test_SBar.py
Eomys/Pyleecan
4d7f0cbabf0311006963e7a2f435db2ecd901118
[ "Apache-2.0" ]
4
2017-11-27T10:14:34.000Z
2018-09-20T11:30:32.000Z
Tests/GUI/DMachineSetup/test_SBar.py
Eomys/Pyleecan
4d7f0cbabf0311006963e7a2f435db2ecd901118
[ "Apache-2.0" ]
null
null
null
Tests/GUI/DMachineSetup/test_SBar.py
Eomys/Pyleecan
4d7f0cbabf0311006963e7a2f435db2ecd901118
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import sys from random import uniform from PySide2 import QtWidgets from PySide2.QtTest import QTest from pyleecan.Classes.CondType21 import CondType21 from pyleecan.Classes.CondType22 import CondType22 from pyleecan.Classes.LamSquirrelCage import LamSquirrelCage from pyleecan.Classes.Machine...
42.466165
86
0.65926
ea94430b6a444a9fbf590cc3841d06e1028d94b4
4,200
py
Python
simfempy/solvers/cfd.py
anairabeze/simfempy
144362956263cb9b81f4bade15664d9cc640f93a
[ "MIT" ]
null
null
null
simfempy/solvers/cfd.py
anairabeze/simfempy
144362956263cb9b81f4bade15664d9cc640f93a
[ "MIT" ]
null
null
null
simfempy/solvers/cfd.py
anairabeze/simfempy
144362956263cb9b81f4bade15664d9cc640f93a
[ "MIT" ]
null
null
null
import numpy as np import pyamg import scipy.sparse.linalg as splinalg import scipy.sparse as sparse from simfempy import tools #=================================================================# class VelcoitySolver(): def __init__(self, A, **kwargs): self.maxiter = kwargs.pop('maxiter', 1) self.n...
53.846154
151
0.59619
777ba6b9ec30b08be17c67d0df3e31ae20b847a3
3,833
py
Python
preprocess/bigramsVector.py
jrabinow/JJBoost
29d316668c7667f7ed9146716539f7c4eca2a499
[ "BSD-3-Clause" ]
null
null
null
preprocess/bigramsVector.py
jrabinow/JJBoost
29d316668c7667f7ed9146716539f7c4eca2a499
[ "BSD-3-Clause" ]
null
null
null
preprocess/bigramsVector.py
jrabinow/JJBoost
29d316668c7667f7ed9146716539f7c4eca2a499
[ "BSD-3-Clause" ]
null
null
null
import re, os, csv, string import nltk, re, pprint from nltk.corpus import stopwords from nltk import word_tokenize from nltk.tokenize import RegexpTokenizer from nltk.util import bigrams,trigrams from nltk import FreqDist def removeStopwords(features): stop = stopwords.words('english') features = [i for i in...
31.418033
83
0.563788
885622b8808a681e658af477190b55ea717c73f3
2,720
py
Python
Z - Tool Box/x2john/bitshares2john.py
dfirpaul/Active-Directory-Exploitation-Cheat-Sheet-1
1dcf54522e9d20711ff1114550dc2893ed3e9ed0
[ "MIT" ]
1,290
2020-05-28T21:24:43.000Z
2022-03-31T16:38:43.000Z
Z - Tool Box/x2john/bitshares2john.py
asim06/Active-Directory-Exploitation-Cheat-Sheet
708f57c83aa99d80df22f4e50f21479a709fb359
[ "MIT" ]
1
2020-07-03T21:14:52.000Z
2020-07-03T21:14:52.000Z
Z - Tool Box/x2john/bitshares2john.py
asim06/Active-Directory-Exploitation-Cheat-Sheet
708f57c83aa99d80df22f4e50f21479a709fb359
[ "MIT" ]
280
2020-05-29T17:28:38.000Z
2022-03-31T13:54:15.000Z
#!/usr/bin/env python # Script to extract "hashes" from BitShares databases. # # Tested with BitShares.Setup.2.0.180115.exe on Windows 7 SP1. # # Location for databases -> %APPDATA%\BitShares2-light\databases\file__0\{1,2...} # # "Local Wallet" on https://wallet.bitshares.org for Google Chrome -> # ~/.config/google-ch...
30.909091
159
0.684926
0f8ba67dd807d2d6fb54cd4c22ff44204b4ad0e3
74,574
py
Python
sdk/network/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/_network_watchers_operations.py
vbarbaresi/azure-sdk-for-python
397ba46c51d001ff89c66b170f5576cf8f49c05f
[ "MIT" ]
8
2021-01-13T23:44:08.000Z
2021-03-17T10:13:36.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/_network_watchers_operations.py
vbarbaresi/azure-sdk-for-python
397ba46c51d001ff89c66b170f5576cf8f49c05f
[ "MIT" ]
null
null
null
sdk/network/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/_network_watchers_operations.py
vbarbaresi/azure-sdk-for-python
397ba46c51d001ff89c66b170f5576cf8f49c05f
[ "MIT" ]
null
null
null
# 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 ...
50.421907
233
0.671105
6be59f6a79c8bdf61ed4e998f30407ec3b45cea0
4,323
py
Python
exp-x/data_discovery.py
rohitmusti/SQuAD-Context-Merging
d055a1565b87399b1d611385097495431f5e250a
[ "MIT" ]
null
null
null
exp-x/data_discovery.py
rohitmusti/SQuAD-Context-Merging
d055a1565b87399b1d611385097495431f5e250a
[ "MIT" ]
null
null
null
exp-x/data_discovery.py
rohitmusti/SQuAD-Context-Merging
d055a1565b87399b1d611385097495431f5e250a
[ "MIT" ]
null
null
null
import ujson as json from toolkit import fancyprint import config def orig_data_discovery(filename): """ just a function to explore the original train data """ tab = " -> " with open(filename, "r") as fh: source = json.load(fh) print("the type of source:", type(source)) pr...
49.125
97
0.563498
a83561d049c7108fd12faca126f2115f0f6d6e5f
5,028
py
Python
libs/python/qumranica/models/reset_forgotten_user_password_request_dto.py
Scripta-Qumranica-Electronica/SQE_API_Connectors
aaa9b9eb8709d4257c32ea57321a179c6b1e041a
[ "MIT" ]
null
null
null
libs/python/qumranica/models/reset_forgotten_user_password_request_dto.py
Scripta-Qumranica-Electronica/SQE_API_Connectors
aaa9b9eb8709d4257c32ea57321a179c6b1e041a
[ "MIT" ]
null
null
null
libs/python/qumranica/models/reset_forgotten_user_password_request_dto.py
Scripta-Qumranica-Electronica/SQE_API_Connectors
aaa9b9eb8709d4257c32ea57321a179c6b1e041a
[ "MIT" ]
null
null
null
# coding: utf-8 """ SQE API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v1 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six from qumra...
32.43871
124
0.61436
c3d3f28e8f43d68b81d350af8a8ec5ae2bd22c61
1,931
py
Python
store/migrations/0004_delivery_order.py
Timoh97/Istock-invent
33943dc8f0cb291477b3d60af28eed17779ae28d
[ "MIT" ]
1
2021-10-18T09:27:03.000Z
2021-10-18T09:27:03.000Z
store/migrations/0004_delivery_order.py
Timoh97/Istock-invent
33943dc8f0cb291477b3d60af28eed17779ae28d
[ "MIT" ]
1
2021-08-04T20:11:28.000Z
2021-08-04T20:11:28.000Z
store/migrations/0004_delivery_order.py
dentonya/python-django-sales-inventory-project
d0fcdf81136908a022e0f4eeca94fc0357473635
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.0.8 on 2020-07-22 03:31 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('store', '0003_drop_product_season'), ] operations = [ migrations.CreateModel( name='Order', ...
49.512821
194
0.606939
baa384733c9e63e87ec77291f414800d32d2131b
2,947
py
Python
Praktikum/Modul6/DemoQListWidget.py
raddox7/19104027_TeoriGUI
8f62b71e339c6244c9b27259f402408426df0f85
[ "MIT" ]
null
null
null
Praktikum/Modul6/DemoQListWidget.py
raddox7/19104027_TeoriGUI
8f62b71e339c6244c9b27259f402408426df0f85
[ "MIT" ]
null
null
null
Praktikum/Modul6/DemoQListWidget.py
raddox7/19104027_TeoriGUI
8f62b71e339c6244c9b27259f402408426df0f85
[ "MIT" ]
null
null
null
import sys from PyQt5.QtGui import * from PyQt5.QtCore import * from PyQt5.QtWidgets import * class MainForm(QWidget): def __init__(self): super().__init__() self.setupUi() def setupUi(self): self.resize(400, 300) self.move(300, 300) self.setWindowTitle('Demo QListWidg...
34.267442
77
0.650831
4ba0897f1d29f2b9070f306e25b6c814dc1e9478
2,510
py
Python
pymagnitude/third_party/allennlp/nn/decoding/__init__.py
tpeng/magnitude
aec98628b5547773ca8c4114ec6d1ad51e21b230
[ "MIT" ]
1,520
2018-03-01T13:37:49.000Z
2022-03-25T11:40:20.000Z
pymagnitude/third_party/allennlp/nn/decoding/__init__.py
tpeng/magnitude
aec98628b5547773ca8c4114ec6d1ad51e21b230
[ "MIT" ]
87
2018-03-03T15:12:50.000Z
2022-02-21T15:24:12.000Z
pymagnitude/third_party/allennlp/nn/decoding/__init__.py
tpeng/magnitude
aec98628b5547773ca8c4114ec6d1ad51e21b230
[ "MIT" ]
121
2018-03-03T08:40:53.000Z
2022-03-16T05:19:38.000Z
u""" This module contains code for transition-based decoding. "Transition-based decoding" is where you start in some state, iteratively transition between states, and have some kind of supervision signal that tells you which end states, or which transition sequences, are "good". If you want to do decoding for a vocab...
61.219512
99
0.794422
3513b7f401ab6a04d9a0775eb372fa040bbf1a68
2,594
py
Python
python/example_code/kda/kda-python-datagenerator-tworecordtypes.py
onehitcombo/aws-doc-sdk-examples
03e2e0c5dee75c5decbbb99e849c51417521fd82
[ "Apache-2.0" ]
3
2021-01-19T20:23:17.000Z
2021-01-19T21:38:59.000Z
python/example_code/kda/kda-python-datagenerator-tworecordtypes.py
onehitcombo/aws-doc-sdk-examples
03e2e0c5dee75c5decbbb99e849c51417521fd82
[ "Apache-2.0" ]
null
null
null
python/example_code/kda/kda-python-datagenerator-tworecordtypes.py
onehitcombo/aws-doc-sdk-examples
03e2e0c5dee75c5decbbb99e849c51417521fd82
[ "Apache-2.0" ]
2
2019-12-27T13:58:00.000Z
2020-05-21T18:35:40.000Z
# Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # This file is licensed under the Apache License, Version 2.0 (the "License"). # You may not use this file except in compliance with the License. A copy of the # License is located at # # http://aws.amazon.com/apache2.0/ # # This f...
33.688312
164
0.676947
451a52fab063bd53f2f63b525efb50b393242786
583
py
Python
Bio-StrongHold/src/k_Mer_Composition.py
crf1111/Bio-Informatics-Learning
2ccc02d7a23584c12aee44c5620160cdcaf70bd4
[ "MIT" ]
1
2018-10-10T19:03:52.000Z
2018-10-10T19:03:52.000Z
Bio-StrongHold/src/k_Mer_Composition.py
crf1111/Bio-Informatics-Learning
2ccc02d7a23584c12aee44c5620160cdcaf70bd4
[ "MIT" ]
null
null
null
Bio-StrongHold/src/k_Mer_Composition.py
crf1111/Bio-Informatics-Learning
2ccc02d7a23584c12aee44c5620160cdcaf70bd4
[ "MIT" ]
null
null
null
from Bio import SeqIO from itertools import product import re import os import sys def main(*args, **kwargs): fpath = os.path.join(os.getcwd(), args[-2]) dna = str(SeqIO.read(fpath,'fasta').seq) perms = product(['A','C','G','T'], repeat=4) kmers = [] for perm in perms: kmers.append(''.joi...
23.32
72
0.567753
e108a137fc00a623c89de368da7623601671df16
4,229
py
Python
src/exabgp/reactor/api/__init__.py
pierky/exabgp
34be537ae5906c0830b31da1152ae63108ccf911
[ "BSD-3-Clause" ]
1,560
2015-01-01T08:53:05.000Z
2022-03-29T20:22:43.000Z
src/exabgp/reactor/api/__init__.py
pierky/exabgp
34be537ae5906c0830b31da1152ae63108ccf911
[ "BSD-3-Clause" ]
818
2015-01-01T17:38:40.000Z
2022-03-30T07:29:24.000Z
src/exabgp/reactor/api/__init__.py
pierky/exabgp
34be537ae5906c0830b31da1152ae63108ccf911
[ "BSD-3-Clause" ]
439
2015-01-06T21:20:41.000Z
2022-03-19T23:24:25.000Z
# encoding: utf-8 """ decoder/__init__.py Created by Thomas Mangin on 2009-08-25. Copyright (c) 2009-2017 Exa Networks. All rights reserved. License: 3-clause BSD. (See the COPYRIGHT file) """ from exabgp.configuration.core.format import formated from exabgp.configuration.operational.parser import operational from e...
30.207143
106
0.618822
80de812fba7f78f0d4947860c78ddc5abaad5ef7
4,207
py
Python
comments/api.py
suutari-ai/respa
a944b1c13f855eaf5f883687b5fd025ece7c8176
[ "MIT" ]
null
null
null
comments/api.py
suutari-ai/respa
a944b1c13f855eaf5f883687b5fd025ece7c8176
[ "MIT" ]
10
2018-11-21T14:37:17.000Z
2021-02-02T09:19:59.000Z
comments/api.py
suutari-ai/respa
a944b1c13f855eaf5f883687b5fd025ece7c8176
[ "MIT" ]
null
null
null
from datetime import datetime from django.contrib.auth import get_user_model from django.contrib.contenttypes.models import ContentType from django.utils.translation import ugettext_lazy as _ from django.utils import timezone import django_filters from rest_framework import exceptions, mixins, serializers, viewsets fr...
40.84466
119
0.727121
3e5d740adb13f29fba57c8501023f8ad903c7aec
851
py
Python
qmldataset/configurations/config_1q_XY_N1X_N6Z.py
rajibchakravorty/QDataSet
8eb21b8c7dad5654358021dd73b93ab90443f6d0
[ "MIT" ]
null
null
null
qmldataset/configurations/config_1q_XY_N1X_N6Z.py
rajibchakravorty/QDataSet
8eb21b8c7dad5654358021dd73b93ab90443f6d0
[ "MIT" ]
null
null
null
qmldataset/configurations/config_1q_XY_N1X_N6Z.py
rajibchakravorty/QDataSet
8eb21b8c7dad5654358021dd73b93ab90443f6d0
[ "MIT" ]
null
null
null
# pylint: disable=invalid-name """ Configuration for experiment 1q_XY_N1X_N6Z - 1-qubit, Control on X and Y -Axes, Type 1 Noise on X Axis, Type 6 Noise on Z Axis """ from numpy import array from ..utilities.constants import pauli_operators dimension = 2 evolution_time = 1 num_time_steps = 1024 omega = 12 dynamic_opera...
32.730769
92
0.629847
227f4320d0dd769705f397b52362aef7bb7bfba5
2,851
py
Python
kernel.py
laMia482/tensorflow-example
9f598baca835585769ba17325bd3c719d37ec7dc
[ "Apache-2.0" ]
null
null
null
kernel.py
laMia482/tensorflow-example
9f598baca835585769ba17325bd3c719d37ec7dc
[ "Apache-2.0" ]
null
null
null
kernel.py
laMia482/tensorflow-example
9f598baca835585769ba17325bd3c719d37ec7dc
[ "Apache-2.0" ]
null
null
null
import os import tensorflow as tf from config import cfg, puts_debug, puts_info import data_reader as dtrd import network import utility config = tf.ConfigProto() config.gpu_options.allow_growth = True run_net = network.build(cfg.network) xs = tf.placeholder(tf.float32, [cfg.batch_size, cfg.image_width, cfg.image_hei...
45.253968
164
0.705016
27a320d1579b0c7c12dca4451947de04cefb5e96
2,412
py
Python
functions2.py
MiroGasparek/python_intro
8b4aec8e54f16e33fef506631de0b9ee2e512dea
[ "CC-BY-4.0", "MIT" ]
null
null
null
functions2.py
MiroGasparek/python_intro
8b4aec8e54f16e33fef506631de0b9ee2e512dea
[ "CC-BY-4.0", "MIT" ]
null
null
null
functions2.py
MiroGasparek/python_intro
8b4aec8e54f16e33fef506631de0b9ee2e512dea
[ "CC-BY-4.0", "MIT" ]
null
null
null
# 04 February 2018 Functions # Define function using def() def ratio(x,y): """The ratio of 'x' to 'y'.""" return x/y # Define function that always returns the same thing def IReturnOne(): """This returns 1""" return 1 print(ratio(4,2)) print(IReturnOne()) # Function without return argument def thin...
25.389474
73
0.626451
8cb463eccb2b5237ed834a77f8fe161225bec847
1,455
py
Python
rcomp.py
flaithbheartaigh/scons-for-symbian
2037cbfe4e341964f571d08e9368f146b10dce7a
[ "MIT" ]
null
null
null
rcomp.py
flaithbheartaigh/scons-for-symbian
2037cbfe4e341964f571d08e9368f146b10dce7a
[ "MIT" ]
null
null
null
rcomp.py
flaithbheartaigh/scons-for-symbian
2037cbfe4e341964f571d08e9368f146b10dce7a
[ "MIT" ]
null
null
null
"""RComp utility""" __author__ = "Jussi Toivola" __license__ = "MIT License" import cpp import os import sys #: RComp command path RCOMP = os.environ["EPOCROOT"] + os.path.join( "epoc32", "tools", "rcomp" ) if sys.platform == "linux2": RCOMP = "wine " + RCOMP + ".exe" def RComp( env, rsc, rsg, rss...
39.324324
92
0.597938
11ccfcfd4567efb3a86c49542a2fe992c8116a31
6,931
py
Python
mixmo/learners/abstract_learner.py
JiarunLiu/mixmo-pytorch
a9ad674122d9b6512094b8292280a4045bb5a400
[ "Apache-2.0" ]
72
2021-03-26T12:34:52.000Z
2022-03-27T06:39:57.000Z
mixmo/learners/abstract_learner.py
JiarunLiu/mixmo-pytorch
a9ad674122d9b6512094b8292280a4045bb5a400
[ "Apache-2.0" ]
7
2021-08-06T02:13:54.000Z
2022-02-08T01:20:32.000Z
mixmo/learners/abstract_learner.py
JiarunLiu/mixmo-pytorch
a9ad674122d9b6512094b8292280a4045bb5a400
[ "Apache-2.0" ]
15
2021-04-10T17:34:45.000Z
2022-03-02T11:49:34.000Z
""" Base Learner wrapper definitions for logging, training and evaluating models """ import torch from collections import OrderedDict from torch.utils.tensorboard import SummaryWriter from mixmo.utils import misc, logger, config from mixmo.learners import model_wrapper LOGGER = logger.get_logger(__name__, level="IN...
33.483092
119
0.605685
4c45283e17465f1742cfd83cffc17d5046dc13ea
578
py
Python
venv/Lib/site-packages/pygame/examples/macosx/aliens_app_example/setup.py
ZenithEmber/COMP120-Assignment-1-contract
bf0ff4f84730038192818c6c65f12123242b1135
[ "MIT" ]
46
2019-03-01T02:19:18.000Z
2021-12-18T12:37:02.000Z
venv/Lib/site-packages/pygame/examples/macosx/aliens_app_example/setup.py
ZenithEmber/COMP120-Assignment-1-contract
bf0ff4f84730038192818c6c65f12123242b1135
[ "MIT" ]
371
2020-03-04T21:51:56.000Z
2022-03-31T20:59:11.000Z
venv/Lib/site-packages/pygame/examples/macosx/aliens_app_example/setup.py
ZenithEmber/COMP120-Assignment-1-contract
bf0ff4f84730038192818c6c65f12123242b1135
[ "MIT" ]
67
2018-10-29T09:50:49.000Z
2022-01-06T07:35:56.000Z
""" Script for building the example. Usage: python setup.py py2app """ from distutils.core import setup import py2app NAME = 'aliens' VERSION = '0.1' plist = dict( CFBundleIconFile=NAME, CFBundleName=NAME, CFBundleShortVersionString=VERSION, CFBundleGetInfoString=' '.join([NAME, VERSION]), CF...
19.931034
57
0.66955
dfa394019ff14a42cc18796160332a9594ccf544
4,421
py
Python
bin/Python27/Lib/site-packages/scipy/special/tests/test_lambertw.py
lefevre-fraser/openmeta-mms
08f3115e76498df1f8d70641d71f5c52cab4ce5f
[ "MIT" ]
null
null
null
bin/Python27/Lib/site-packages/scipy/special/tests/test_lambertw.py
lefevre-fraser/openmeta-mms
08f3115e76498df1f8d70641d71f5c52cab4ce5f
[ "MIT" ]
null
null
null
bin/Python27/Lib/site-packages/scipy/special/tests/test_lambertw.py
lefevre-fraser/openmeta-mms
08f3115e76498df1f8d70641d71f5c52cab4ce5f
[ "MIT" ]
1
2020-08-08T12:44:48.000Z
2020-08-08T12:44:48.000Z
# # Tests for the lambertw function, # Adapted from the MPMath tests [1] by Yosef Meller, mellerf@netvision.net.il # Distributed under the same license as SciPy itself. # # [1] mpmath source code, Subversion revision 992 # http://code.google.com/p/mpmath/source/browse/trunk/mpmath/tests/test_functions2.py?spe...
42.509615
108
0.633567
954f01838e4a748b34b956caea9c42a021d60d5f
6,395
py
Python
research/object_detection/builders/box_predictor_builder.py
luk1684tw/models
7e7776e1ce0db64cdf22d6de9f1a9848e5a71b2c
[ "Apache-2.0" ]
1
2018-09-05T09:34:50.000Z
2018-09-05T09:34:50.000Z
research/object_detection/builders/box_predictor_builder.py
luk1684tw/models
7e7776e1ce0db64cdf22d6de9f1a9848e5a71b2c
[ "Apache-2.0" ]
null
null
null
research/object_detection/builders/box_predictor_builder.py
luk1684tw/models
7e7776e1ce0db64cdf22d6de9f1a9848e5a71b2c
[ "Apache-2.0" ]
1
2020-09-15T02:44:52.000Z
2020-09-15T02:44:52.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...
47.37037
80
0.736826
1ecaf86c62846d26d00b89c00e102ef00f877a82
4,638
py
Python
tests/data/raster_source/test_geotiff_source.py
Yochengliu/raster-vision
f5badc387df86ce02d84e0e274a08026dbf65bd6
[ "Apache-2.0" ]
1
2019-12-10T13:37:39.000Z
2019-12-10T13:37:39.000Z
tests/data/raster_source/test_geotiff_source.py
Yochengliu/raster-vision
f5badc387df86ce02d84e0e274a08026dbf65bd6
[ "Apache-2.0" ]
null
null
null
tests/data/raster_source/test_geotiff_source.py
Yochengliu/raster-vision
f5badc387df86ce02d84e0e274a08026dbf65bd6
[ "Apache-2.0" ]
null
null
null
import unittest import os import numpy as np import rasterio import rastervision as rv from rastervision.core import Box from rastervision.utils.misc import save_img from rastervision.data.raster_source.rasterio_source import load_window from rastervision.rv_config import RVConfig from tests import data_file_path ...
38.65
78
0.562743
f8efb3751d677abb84c8956b3496a75d2b6b8cbb
3,283
py
Python
ytree/utilities/io.py
jwise77/ytree
8bd905bb0995383c1285aeba586d41859f494a9b
[ "BSD-3-Clause-Clear" ]
null
null
null
ytree/utilities/io.py
jwise77/ytree
8bd905bb0995383c1285aeba586d41859f494a9b
[ "BSD-3-Clause-Clear" ]
null
null
null
ytree/utilities/io.py
jwise77/ytree
8bd905bb0995383c1285aeba586d41859f494a9b
[ "BSD-3-Clause-Clear" ]
null
null
null
""" io utilities """ #----------------------------------------------------------------------------- # Copyright (c) ytree development team. All rights reserved. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this software. #------------...
28.547826
78
0.549497
729d4b95271e286ad7390f17a26e336f350cf659
248
py
Python
setup.py
SrinivasKummari/data-science-with-python
0f824c437325c1cae5793e96625c19976fb17149
[ "MIT" ]
null
null
null
setup.py
SrinivasKummari/data-science-with-python
0f824c437325c1cae5793e96625c19976fb17149
[ "MIT" ]
null
null
null
setup.py
SrinivasKummari/data-science-with-python
0f824c437325c1cae5793e96625c19976fb17149
[ "MIT" ]
null
null
null
from setuptools import find_packages, setup setup( name='src', packages=find_packages(), version='0.1.0', description='Building a predictive model for titanic disaster recovery', author='Srinivas Kummari', license='MIT', )
22.545455
76
0.697581
54de2456e147dfea2d131a33d2c797d3c6a98c8b
3,006
py
Python
scripts/config_generator/win_readline.py
elainehoml/Savu
e4772704606f71d6803d832084e10faa585e7358
[ "Apache-2.0" ]
39
2015-03-30T14:03:42.000Z
2022-03-16T16:50:33.000Z
scripts/config_generator/win_readline.py
elainehoml/Savu
e4772704606f71d6803d832084e10faa585e7358
[ "Apache-2.0" ]
670
2015-02-11T11:08:09.000Z
2022-03-21T09:27:57.000Z
scripts/config_generator/win_readline.py
elainehoml/Savu
e4772704606f71d6803d832084e10faa585e7358
[ "Apache-2.0" ]
54
2015-02-13T14:09:52.000Z
2022-01-24T13:57:09.000Z
# 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 # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES...
31.642105
102
0.696274
5c7173b50be9a73e5b8c316df89f8172e57e6b63
22,071
py
Python
tests/integration/modules/test_cp.py
nizD/salt
bbe135d62d8d8b4e4a7d0362097e1b3a3b092bed
[ "Apache-2.0" ]
1
2020-12-28T09:48:52.000Z
2020-12-28T09:48:52.000Z
tests/integration/modules/test_cp.py
nizD/salt
bbe135d62d8d8b4e4a7d0362097e1b3a3b092bed
[ "Apache-2.0" ]
2
2021-04-30T21:36:41.000Z
2021-12-13T20:50:09.000Z
tests/integration/modules/test_cp.py
nizD/salt
bbe135d62d8d8b4e4a7d0362097e1b3a3b092bed
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Import python libs from __future__ import absolute_import, print_function, unicode_literals import os import sys import uuid import hashlib import logging import psutil import shutil import signal import tempfile import textwrap # Import Salt Testing libs from tests.support.case import Modul...
32.126638
96
0.517919
872449cef7e302dd693363602cd754f2633802d5
1,588
py
Python
241_different_ways_to_add_parentheses.py
gengwg/leetcode
0af5256ec98149ef5863f3bba78ed1e749650f6e
[ "Apache-2.0" ]
2
2018-04-24T19:17:40.000Z
2018-04-24T19:33:52.000Z
241_different_ways_to_add_parentheses.py
gengwg/leetcode
0af5256ec98149ef5863f3bba78ed1e749650f6e
[ "Apache-2.0" ]
null
null
null
241_different_ways_to_add_parentheses.py
gengwg/leetcode
0af5256ec98149ef5863f3bba78ed1e749650f6e
[ "Apache-2.0" ]
3
2020-06-17T05:48:52.000Z
2021-01-02T06:08:25.000Z
# 241. Different Ways to Add Parentheses # # Given a string of numbers and operators, return all possible results # from computing all the different possible ways to group numbers and operators. # The valid operators are +, - and *. # # Example 1 # Input: "2-1-1". # # ((2-1)-1) = 0 # (2-(1-1)) = 2 # Output: [0, 2] # # ...
27.859649
84
0.488665
2b1bfc10c06b49d8d5675ad7b066e7a8c0fb24a1
513
py
Python
config/python.py
veltzer/pyblueprint
dda4d50755fd10a72a7ee076d698b7a5b39bf438
[ "MIT" ]
null
null
null
config/python.py
veltzer/pyblueprint
dda4d50755fd10a72a7ee076d698b7a5b39bf438
[ "MIT" ]
null
null
null
config/python.py
veltzer/pyblueprint
dda4d50755fd10a72a7ee076d698b7a5b39bf438
[ "MIT" ]
null
null
null
import config.project package_name = config.project.project_name console_scripts = [ ] setup_requires = [ ] test_requires = [ 'pytest', 'pytest-cov', 'pylint', 'flake8', 'pymakehelper', ] install_requires = [ 'svgwrite', ] dev_requires = [ 'pypitools', 'pydmt', 'pyclassifiers',...
13.864865
53
0.614035
791a0ab2f5e97cf2af9aba9f5b099033352fbf85
15,600
py
Python
paragridded/giga_tools.py
Mesharou/paragridded
d9dd6b7c7e7ba30c4e702717039afa85ef753003
[ "MIT" ]
6
2020-11-15T14:42:48.000Z
2022-03-18T08:38:15.000Z
paragridded/giga_tools.py
Mesharou/paragridded
d9dd6b7c7e7ba30c4e702717039afa85ef753003
[ "MIT" ]
null
null
null
paragridded/giga_tools.py
Mesharou/paragridded
d9dd6b7c7e7ba30c4e702717039afa85ef753003
[ "MIT" ]
2
2022-02-21T17:29:00.000Z
2022-03-18T08:38:16.000Z
""" GIGATL experiment specifications dimpart contains - "netcdfdimnames": how to map netCDF to CROCO dimensions - "domainpartition": which CROCO dimensions are tiled """ import os import sys import glob from shapely.geometry.polygon import Polygon import pickle from pretty import BB import pretty import tempf...
27.956989
97
0.587821
a0b7c1a805386bf7934c159cbfaf2c3e82c69450
305
py
Python
plugins/idaskins/__init__.py
fengjixuchui/IDASkins
c73272226ec44caf7c903cdb5bd33b84c277cd42
[ "MIT" ]
934
2015-05-09T15:08:58.000Z
2022-03-25T11:35:55.000Z
plugins/idaskins/__init__.py
fengjixuchui/IDASkins
c73272226ec44caf7c903cdb5bd33b84c277cd42
[ "MIT" ]
68
2015-06-12T16:10:13.000Z
2020-11-09T22:03:52.000Z
plugins/idaskins/__init__.py
fengjixuchui/IDASkins
c73272226ec44caf7c903cdb5bd33b84c277cd42
[ "MIT" ]
173
2015-05-25T18:22:24.000Z
2022-03-25T11:35:57.000Z
from __future__ import absolute_import, print_function, division import os VERSION = 'v2.1.0' PLUGIN_DIR = os.path.dirname(os.path.realpath(__file__)) IDA_DIR = os.path.abspath(os.path.join(PLUGIN_DIR, '..', '..')) UI_DIR = os.path.join(PLUGIN_DIR, 'ui') THEMES_DIR = os.path.join(PLUGIN_DIR, 'themes')
30.5
64
0.737705
2e2c7ca03ffb08e12554b1d575c7d8f2c22097e4
2,569
py
Python
local_dm_control_suite/demos/mocap_demo.py
huy-ha/dreamer-pytorch
98561a5fe4ee5323b955f5fc79bbebf483f08d58
[ "MIT" ]
2
2021-10-31T05:12:19.000Z
2021-12-16T11:56:12.000Z
local_dm_control_suite/demos/mocap_demo.py
huy-ha/dreamer-pytorch
98561a5fe4ee5323b955f5fc79bbebf483f08d58
[ "MIT" ]
null
null
null
local_dm_control_suite/demos/mocap_demo.py
huy-ha/dreamer-pytorch
98561a5fe4ee5323b955f5fc79bbebf483f08d58
[ "MIT" ]
null
null
null
# Copyright 2017 The dm_control 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 applicable law or agreed to i...
30.223529
78
0.681199
f9b656b57231051dd572b2676ad3941d6fa1d53f
1,215
py
Python
read.py
vahidtwo/uniproject
5ee1e847cfde4670db06f16e07af36b3034b4d9b
[ "MIT" ]
1
2020-05-16T16:14:55.000Z
2020-05-16T16:14:55.000Z
read.py
vahidtwo/uniproject
5ee1e847cfde4670db06f16e07af36b3034b4d9b
[ "MIT" ]
null
null
null
read.py
vahidtwo/uniproject
5ee1e847cfde4670db06f16e07af36b3034b4d9b
[ "MIT" ]
null
null
null
#!/usr/bin/env python import socket import RPi.GPIO as GPIO import SimpleMFRC522 import time reader = SimpleMFRC522.SimpleMFRC522() while(1): try: id, text = reader.read() print(1,id) print(1,text) text=text.replace(" ","") if ((text==("vahid")or text.__contains__("ali"))and ...
32.837838
102
0.495473
40be95eed34d301c9d24650b472f6f6cf6639a71
1,092
py
Python
2019/tests/day2/test_day2_part2.py
niklind/advent-of-code
c5736e5ec9f830f4e80b962874d28360e3735674
[ "MIT" ]
null
null
null
2019/tests/day2/test_day2_part2.py
niklind/advent-of-code
c5736e5ec9f830f4e80b962874d28360e3735674
[ "MIT" ]
null
null
null
2019/tests/day2/test_day2_part2.py
niklind/advent-of-code
c5736e5ec9f830f4e80b962874d28360e3735674
[ "MIT" ]
null
null
null
from typing import List import day2.part2 import pytest @pytest.mark.parametrize("program, expected", [( [1, 0, 0, 3, 1, 1, 2, 3, 1, 3, 4, 3, 1, 5, 0, 3, 2, 1, 13, 19, 1, 10, 19, 23, 2, 9, 23, 27, 1, 6, 27, 31, 1, 10, 31, 35, 1, 35, 10, 39...
57.473684
120
0.414835
568c763d94c8cdf30349584205445785c5864cc6
5,195
py
Python
analysis/utils/utils.py
Bwei112233/BuzzBlogBenchmark
3de0e8143e5035246792adea7fa3254ca7bcedb2
[ "Apache-2.0" ]
null
null
null
analysis/utils/utils.py
Bwei112233/BuzzBlogBenchmark
3de0e8143e5035246792adea7fa3254ca7bcedb2
[ "Apache-2.0" ]
null
null
null
analysis/utils/utils.py
Bwei112233/BuzzBlogBenchmark
3de0e8143e5035246792adea7fa3254ca7bcedb2
[ "Apache-2.0" ]
null
null
null
import gzip import os import pandas as pd import re import sys import tarfile sys.path.append(os.path.abspath(os.path.join(".."))) from parsers.loadgen_parser import LoadgenParser def get_node_names(experiment_dirname): return [dirname for dirname in os.listdir(os.path.join(os.path.dirname(__file__),...
45.570175
120
0.610395
0571888a4c33b6da397480f2bbdc01bccdc355c4
1,509
py
Python
dataset_specific/prostate/expts/prostate_bai.py
suhitaghosh10/UATS
fe295ca2e16e1b7404398b3b62e404778900d958
[ "MIT" ]
11
2021-04-12T03:40:35.000Z
2022-02-02T13:47:13.000Z
dataset_specific/prostate/expts/prostate_bai.py
suhitaghosh10/UATS
fe295ca2e16e1b7404398b3b62e404778900d958
[ "MIT" ]
1
2021-04-11T14:40:11.000Z
2021-04-11T14:40:11.000Z
dataset_specific/prostate/expts/prostate_bai.py
suhitaghosh10/UATS
fe295ca2e16e1b7404398b3b62e404778900d958
[ "MIT" ]
1
2021-01-08T10:49:36.000Z
2021-01-08T10:49:36.000Z
import argparse import os import tensorflow as tf from dataset_specific.prostate.model.bai import weighted_model from train.semi_supervised.bai import train from utility.config import get_metadata from utility.constants import * from utility.utils import cleanup ## Parse arguments parser = argparse.ArgumentParser() ...
30.18
95
0.695162
398d095d2f651c6c99822eda441f2ffe322b7c22
77
py
Python
Python/Tests/TestData/Grammar/FromFuture25.py
techkey/PTVS
8355e67eedd8e915ca49bd38a2f36172696fd903
[ "Apache-2.0" ]
695
2019-05-06T23:49:37.000Z
2022-03-30T01:56:00.000Z
Python/Tests/TestData/Grammar/FromFuture25.py
techkey/PTVS
8355e67eedd8e915ca49bd38a2f36172696fd903
[ "Apache-2.0" ]
1,672
2019-05-06T21:09:38.000Z
2022-03-31T23:16:04.000Z
Python/Tests/TestData/Grammar/FromFuture25.py
techkey/PTVS
8355e67eedd8e915ca49bd38a2f36172696fd903
[ "Apache-2.0" ]
186
2019-05-13T03:17:37.000Z
2022-03-31T16:24:05.000Z
from __future__ import with_statement from __future__ import absolute_import
25.666667
38
0.896104
ec4b41234acf82b72e06a3ae391b859ac979a741
38,676
py
Python
test/functional/feature_segwit.py
phlsolo316/vidcoin
d6eec232378c329ebc2a31e7d21acf58cf62368d
[ "MIT" ]
null
null
null
test/functional/feature_segwit.py
phlsolo316/vidcoin
d6eec232378c329ebc2a31e7d21acf58cf62368d
[ "MIT" ]
null
null
null
test/functional/feature_segwit.py
phlsolo316/vidcoin
d6eec232378c329ebc2a31e7d21acf58cf62368d
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2016-2020 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the SegWit changeover logic.""" from decimal import Decimal from io import BytesIO from test_fra...
61.390476
223
0.682827
fa01cb5467f7626906d3c7a040f063a82e40b43f
12,296
py
Python
cinder/api/v3/attachments.py
Boye-Z/cinder
2a959e6645379842880373dd9aad4d5ff3b6fd02
[ "Apache-2.0" ]
null
null
null
cinder/api/v3/attachments.py
Boye-Z/cinder
2a959e6645379842880373dd9aad4d5ff3b6fd02
[ "Apache-2.0" ]
null
null
null
cinder/api/v3/attachments.py
Boye-Z/cinder
2a959e6645379842880373dd9aad4d5ff3b6fd02
[ "Apache-2.0" ]
null
null
null
# 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 # d...
40.447368
79
0.609792
d8f4a7c6295f33a186f253e5ff5005a6722d3be9
1,134
py
Python
tests/storage/cases/test_KT1MB5WKFpyCo8tf4icYFeQQCbib2cjbqEez.py
juztin/pytezos-1
7e608ff599d934bdcf129e47db43dbdb8fef9027
[ "MIT" ]
1
2020-08-11T02:31:24.000Z
2020-08-11T02:31:24.000Z
tests/storage/cases/test_KT1MB5WKFpyCo8tf4icYFeQQCbib2cjbqEez.py
juztin/pytezos-1
7e608ff599d934bdcf129e47db43dbdb8fef9027
[ "MIT" ]
1
2020-12-30T16:44:56.000Z
2020-12-30T16:44:56.000Z
tests/storage/cases/test_KT1MB5WKFpyCo8tf4icYFeQQCbib2cjbqEez.py
juztin/pytezos-1
7e608ff599d934bdcf129e47db43dbdb8fef9027
[ "MIT" ]
1
2022-03-20T19:01:00.000Z
2022-03-20T19:01:00.000Z
from unittest import TestCase from tests import get_data from pytezos.michelson.converter import build_schema, decode_micheline, encode_micheline, micheline_to_michelson class StorageTestKT1MB5WKFpyCo8tf4icYFeQQCbib2cjbqEez(TestCase): @classmethod def setUpClass(cls): cls.maxDiff = None cls....
40.5
112
0.749559
a914271faf1598f53029bbf25208f3188038a45e
4,185
py
Python
scripts/tensorflow/samples/mnist_0817.py
hidakanoko/misc
5e1ca971882fd85528e9a6edbf9d4cc31ca54d3a
[ "Apache-2.0" ]
null
null
null
scripts/tensorflow/samples/mnist_0817.py
hidakanoko/misc
5e1ca971882fd85528e9a6edbf9d4cc31ca54d3a
[ "Apache-2.0" ]
null
null
null
scripts/tensorflow/samples/mnist_0817.py
hidakanoko/misc
5e1ca971882fd85528e9a6edbf9d4cc31ca54d3a
[ "Apache-2.0" ]
null
null
null
import tensorflow as tf from tensorflow.examples.tutorials.mnist import input_data # 参考資料 # https://deepinsider.jp/tutor/introtensorflow/buildcnn # 毎回同じ結果になるように固定値で乱数を初期化 tf.set_random_seed(1) # MNISTデータセットの読み込み mnist = input_data.read_data_sets('MNIST_data', one_hot=True) n = 0 # 畳み込み層 def convol...
29.680851
79
0.630585
c650543ea2c7967847fe751c9b6ceef56a322279
2,790
py
Python
Python/Machine Learning/Code Basics/ML Algorithm/6 Dummy Variable & One Hot Encoding.py
omkarsutar1255/Python-Data
169d0c54b23d9dd5a7f1aea41ab385121c3b3c63
[ "CC-BY-3.0" ]
null
null
null
Python/Machine Learning/Code Basics/ML Algorithm/6 Dummy Variable & One Hot Encoding.py
omkarsutar1255/Python-Data
169d0c54b23d9dd5a7f1aea41ab385121c3b3c63
[ "CC-BY-3.0" ]
null
null
null
Python/Machine Learning/Code Basics/ML Algorithm/6 Dummy Variable & One Hot Encoding.py
omkarsutar1255/Python-Data
169d0c54b23d9dd5a7f1aea41ab385121c3b3c63
[ "CC-BY-3.0" ]
null
null
null
# todo: Categorical Variables and One Hot Encoding # todo: Importing Libraries import pandas as pd # todo: Load DataSet df = pd.read_csv("homeprices.csv") print(df) # todo: Using pandas to create dummy variables dummies = pd.get_dummies(df.town) print(dummies) # todo: concatenate dummies with data merged = pd.conca...
37.702703
105
0.736918
fa62c72dde8a8482f39d701530382e5cd9a0cf49
11,946
py
Python
spyder/widgets/tests/test_editorsplitter.py
maraigue/spyder
ea9797eb24854eca085aa90a5d7ae682ceef1f7a
[ "MIT" ]
1
2019-10-19T20:56:20.000Z
2019-10-19T20:56:20.000Z
spyder/widgets/tests/test_editorsplitter.py
Mazmatig/spyder
60680b21327cd886ab6c2b1c26ee658bfe3c99b7
[ "MIT" ]
null
null
null
spyder/widgets/tests/test_editorsplitter.py
Mazmatig/spyder
60680b21327cd886ab6c2b1c26ee658bfe3c99b7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright © Spyder Project Contributors # Licensed under the terms of the MIT License # """ Tests for EditorSplitter class in editor.py """ # Standard library imports try: from unittest.mock import Mock except ImportError: from mock import Mock # Python 2 # Third party imports im...
35.032258
82
0.662397
ffcce6db40d793f7b49bd70be78ea121b04cbe7f
348
py
Python
q2_metadata/tests/__init__.py
FranckLejzerowicz/q2-metadata
55f303a3239a83b341f07d4d63c403e30fca72c8
[ "BSD-3-Clause" ]
null
null
null
q2_metadata/tests/__init__.py
FranckLejzerowicz/q2-metadata
55f303a3239a83b341f07d4d63c403e30fca72c8
[ "BSD-3-Clause" ]
null
null
null
q2_metadata/tests/__init__.py
FranckLejzerowicz/q2-metadata
55f303a3239a83b341f07d4d63c403e30fca72c8
[ "BSD-3-Clause" ]
null
null
null
# ---------------------------------------------------------------------------- # Copyright (c) 2017-2019, QIIME 2 development team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file LICENSE, distributed with this software. # ------------------------------------------------...
49.714286
78
0.416667
51cc76a2a5fa891db1c3d67171ac8bff67f024eb
1,206
py
Python
setup.py
kmohrf/python-yeelight
483019c074556b4c3d2f665398f0fc308afd6274
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
setup.py
kmohrf/python-yeelight
483019c074556b4c3d2f665398f0fc308afd6274
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
setup.py
kmohrf/python-yeelight
483019c074556b4c3d2f665398f0fc308afd6274
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
#!/usr/bin/env python import sys from setuptools import setup assert sys.version >= "2.7", "Requires Python v2.7 or above." with open("yeelight/version.py") as f: exec(f.read()) classifiers = [ "License :: OSI Approved :: BSD License", "Programming Language :: Python", "Programming Language :: Pyth...
30.15
87
0.657546
b325c618c4b457a537328c9efcc54294b1fc876c
7,408
py
Python
satchmo/apps/tax/modules/us_sst/management/commands/sst_import_boundry.py
djangoplicity/satchmo
75b672dffb64fed3e55c253d51a0ce73f0747e05
[ "BSD-3-Clause" ]
null
null
null
satchmo/apps/tax/modules/us_sst/management/commands/sst_import_boundry.py
djangoplicity/satchmo
75b672dffb64fed3e55c253d51a0ce73f0747e05
[ "BSD-3-Clause" ]
null
null
null
satchmo/apps/tax/modules/us_sst/management/commands/sst_import_boundry.py
djangoplicity/satchmo
75b672dffb64fed3e55c253d51a0ce73f0747e05
[ "BSD-3-Clause" ]
null
null
null
from django.core.management.base import BaseCommand, CommandError import os from datetime import date # We don't actually need it, but otherwise livesettings.functions chokes. import tax.config from tax.modules.us_sst.models import TaxRate, TaxBoundry from decimal import Decimal def ash_split(arg, qty): """Unfor...
40.928177
121
0.579239
86e437e6098f980a03657771c4674c47a9b8111d
1,048
py
Python
docs/cornell CS class/lesson 22.Subclasses &Inheritance/demos/powpoint.py
LizzieDeng/kalman_fliter_analysis
50e728f32c496c3fcbb8ca3ee00857b999b88d99
[ "MIT" ]
null
null
null
docs/cornell CS class/lesson 22.Subclasses &Inheritance/demos/powpoint.py
LizzieDeng/kalman_fliter_analysis
50e728f32c496c3fcbb8ca3ee00857b999b88d99
[ "MIT" ]
null
null
null
docs/cornell CS class/lesson 22.Subclasses &Inheritance/demos/powpoint.py
LizzieDeng/kalman_fliter_analysis
50e728f32c496c3fcbb8ca3ee00857b999b88d99
[ "MIT" ]
null
null
null
""" A module of class stubs to show off subclasses This module does not do anything. It is simply mean to accompany the lesson video introducing subclassing. Author: Walker M. White Date: October 6, 2020 """ class SlideContent(object): """Class representing content on a slide""" def __init__(self,x,y,w,h...
21.833333
54
0.614504
d94cb8df7672bff26d91c608104db55018b88120
54,790
py
Python
launchdarkly_api/api/environments_api.py
launchdarkly/api-client-python
b72bd94fb65ac57bd95df5767aebcdaff50e5cb6
[ "Apache-2.0" ]
6
2020-02-06T20:17:25.000Z
2021-12-28T20:13:34.000Z
launchdarkly_api/api/environments_api.py
launchdarkly/api-client-python
b72bd94fb65ac57bd95df5767aebcdaff50e5cb6
[ "Apache-2.0" ]
7
2019-02-18T21:51:47.000Z
2021-09-03T17:49:33.000Z
launchdarkly_api/api/environments_api.py
launchdarkly/api-client-python
b72bd94fb65ac57bd95df5767aebcdaff50e5cb6
[ "Apache-2.0" ]
6
2019-08-02T16:10:31.000Z
2021-05-23T17:47:03.000Z
# -*- coding: utf-8 -*- """ LaunchDarkly REST API # Overview ## Authentication All REST API resources are authenticated with either [personal or service access tokens](https://docs.launchdarkly.com/home/account-security/api-access-tokens), or session cookies. Other authentication mechanisms are not supporte...
66.012048
24,467
0.577989
a6c9268a6c555368ded9d901e7176300104dbc30
650
py
Python
msgboard/migrations/0001_initial.py
OfirMatasas/beyond-tutorial
898b5bf03dc4fba3e71eba114dce2587d330063a
[ "MIT" ]
null
null
null
msgboard/migrations/0001_initial.py
OfirMatasas/beyond-tutorial
898b5bf03dc4fba3e71eba114dce2587d330063a
[ "MIT" ]
null
null
null
msgboard/migrations/0001_initial.py
OfirMatasas/beyond-tutorial
898b5bf03dc4fba3e71eba114dce2587d330063a
[ "MIT" ]
null
null
null
# Generated by Django 4.0.2 on 2022-02-12 17:20 from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Message', fields=[ ...
26
117
0.586154
01fab7fcd8917dc62b8cbb7ed9adc8ec53169834
1,255
py
Python
molecule/pyaes/src/index.py
Molecule-Serverless/serverless-faas-workbench
296f5f2709b3e7b168db00473d0a28b8bf1c062f
[ "Apache-2.0" ]
1
2021-12-11T00:49:00.000Z
2021-12-11T00:49:00.000Z
molecule/pyaes/src/index.py
Molecule-Serverless/serverless-faas-workbench
296f5f2709b3e7b168db00473d0a28b8bf1c062f
[ "Apache-2.0" ]
null
null
null
molecule/pyaes/src/index.py
Molecule-Serverless/serverless-faas-workbench
296f5f2709b3e7b168db00473d0a28b8bf1c062f
[ "Apache-2.0" ]
null
null
null
from time import time import random import string import pyaes def generate(length): letters = string.ascii_lowercase + string.digits return ''.join(random.choice(letters) for i in range(length)) def handler(event): length_of_message = event['length_of_message'] num_of_iterations = event['num_of_ite...
24.134615
69
0.646215
a6351a0638f8639329c879c7b9f0f2f1909f8288
1,640
py
Python
offline/wallet/generate_wallets.py
jgeofil/avax-python
b09e78e3d7e1c35db5ae42e3918e960e775f2d45
[ "MIT" ]
25
2021-05-16T23:43:47.000Z
2022-03-29T03:08:30.000Z
offline/wallet/generate_wallets.py
zefonseca/ava-python
9c72af7c720edfab9c73379a102cf6a11d864ebd
[ "MIT" ]
2
2021-04-26T11:43:22.000Z
2021-06-04T07:55:22.000Z
offline/wallet/generate_wallets.py
jgeofil/avax-python
b09e78e3d7e1c35db5ae42e3918e960e775f2d45
[ "MIT" ]
4
2021-08-06T10:55:58.000Z
2022-03-29T08:03:05.000Z
#!/usr/bin/python3 # avax-python : Python tools for the exploration of the Avalanche AVAX network. # # Documentation at https://crypto.bi """ Copyright © 2021 ojrdev Support this Open Source project! Donate to X-avax1qr6yzjykcjmeflztsgv6y88dl0xnlel3chs3r4 Permission is hereby granted, free of charge, to any person...
43.157895
463
0.781707
8c89a994629b5d83c845d0a8b891a46d03a7df49
12,438
py
Python
natnet.py
pg1647/self_supervised_rotnet
5edfa31dd7b2dde8e1d093037c6c8c9745ba8f71
[ "MIT" ]
null
null
null
natnet.py
pg1647/self_supervised_rotnet
5edfa31dd7b2dde8e1d093037c6c8c9745ba8f71
[ "MIT" ]
null
null
null
natnet.py
pg1647/self_supervised_rotnet
5edfa31dd7b2dde8e1d093037c6c8c9745ba8f71
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function import torch import torchvision from torchvision import datasets, transforms import torch.nn.functional as F import torch.optim as optim import models as mdl import numpy as np import argparse import pickle i...
38.627329
223
0.607252
17b0c9ecd6531a7642250a3be823dcfb0c2e5a0f
4,563
py
Python
gamesopt/algorithms/co.py
hugobb/Stochastic-Extragradient
69f75f3f47cb2b30cd81db617c994a13b0b5302c
[ "MIT" ]
2
2021-11-08T16:28:28.000Z
2022-03-21T23:45:01.000Z
gamesopt/algorithms/co.py
hugobb/Stochastic-Extragradient
69f75f3f47cb2b30cd81db617c994a13b0b5302c
[ "MIT" ]
null
null
null
gamesopt/algorithms/co.py
hugobb/Stochastic-Extragradient
69f75f3f47cb2b30cd81db617c994a13b0b5302c
[ "MIT" ]
null
null
null
from .algorithm import Algorithm from gamesopt.games.sampler import DoubleLoopSampler import torch.autograd as autograd from .lr_scheduler import BaseLR, LRScheduler import copy import torch class ConsensusOptimization(Algorithm): ### The recommended learning rate is 1/L def __init__( self, game, lr_H...
38.669492
87
0.581416
aae5ddefa2bfa7e930624085d23e46164e79efcd
1,146
py
Python
ubereats/utils/.ipynb_checkpoints/merge_shops_yokohama-checkpoint.py
macchino/delivery-analisys
7d0507580532e87143c49d91693ee25aaf504a0b
[ "MIT" ]
5
2019-12-31T08:07:02.000Z
2021-08-15T06:58:50.000Z
ubereats/utils/.ipynb_checkpoints/merge_shops_yokohama-checkpoint.py
macchino/delivery-analisys
7d0507580532e87143c49d91693ee25aaf504a0b
[ "MIT" ]
39
2019-12-22T03:25:10.000Z
2021-03-16T09:46:21.000Z
ubereats/utils/.ipynb_checkpoints/merge_shops_yokohama-checkpoint.py
macchino/delivery-analisys
7d0507580532e87143c49d91693ee25aaf504a0b
[ "MIT" ]
2
2020-08-13T02:22:23.000Z
2021-08-15T07:00:30.000Z
# -*- coding: utf-8 -*- # merge_shopsをコピペしただけです。あとでなんとかしよう。 import sys import pandas as pd from datetime import datetime args = sys.argv MASTER_FILE_PATH = './data/shop_master_yokohama.csv' GOOGLEMAP_FILE_PATH = './data/googlemap_yokohama.csv' dir_path = "./rawdata/shops/" file_name_base = "hiyoshi.csv" file_name ...
27.285714
72
0.681501
b791f67a69cc689b0e9481318909049d08aebda9
4,570
py
Python
tests/test_deselect.py
mhallin/cov-exclude-py
32a834dc60ba38034c049118e35c3970a23f24ab
[ "MIT" ]
4
2015-12-07T15:57:26.000Z
2016-03-23T20:33:59.000Z
tests/test_deselect.py
mhallin/cov-exclude-py
32a834dc60ba38034c049118e35c3970a23f24ab
[ "MIT" ]
3
2016-02-11T12:26:01.000Z
2020-01-14T00:40:31.000Z
tests/test_deselect.py
mhallin/cov-exclude-py
32a834dc60ba38034c049118e35c3970a23f24ab
[ "MIT" ]
1
2020-10-13T13:53:35.000Z
2020-10-13T13:53:35.000Z
import subprocess import os.path import time import pytest def from_here(*args): return os.path.join(os.path.dirname(__file__), *args) def write_test_files(filename, tmpdir): with open(from_here('files', filename), 'r') as s: f = tmpdir.join('test.py') f.write(s.read()) if tmpdir.join(...
30.264901
77
0.673523
074e1e3f449f29c573ce5d9fed0066fa34c0f512
4,064
py
Python
Experiment/main.py
quilan78/MSC_project
18c0298bca013a62c09752446f7c391a29f38618
[ "Apache-2.0" ]
null
null
null
Experiment/main.py
quilan78/MSC_project
18c0298bca013a62c09752446f7c391a29f38618
[ "Apache-2.0" ]
null
null
null
Experiment/main.py
quilan78/MSC_project
18c0298bca013a62c09752446f7c391a29f38618
[ "Apache-2.0" ]
null
null
null
import numpy as np import sys sys.path.append('../Commons/') from LRP_output import * from random import randint def main(id_, path, important,write_path): data = LRP_output() data.load_json(id_, filepath=path) if important: write_path += "Important/" else: write_path += "Unimportant/" for i ...
27.459459
100
0.669291
1da44f544603c872aa72c55da648278bff7de7a6
739
py
Python
NoteBooks/Curso de Python/Python/_Data/Curso_Data_estructures/Ex_Files_Python_Data_Structures/Exercise Files/GUI Code/config.py
Alejandro-sin/Learning_Notebooks
161d6bed4c7b1d171b45f61c0cc6fa91e9894aad
[ "MIT" ]
1
2021-02-26T13:12:22.000Z
2021-02-26T13:12:22.000Z
NoteBooks/Curso de Python/Python/_Data/Curso_Data_estructures/Ex_Files_Python_Data_Structures/Exercise Files/GUI Code/config.py
Alejandro-sin/Learning_Notebooks
161d6bed4c7b1d171b45f61c0cc6fa91e9894aad
[ "MIT" ]
null
null
null
NoteBooks/Curso de Python/Python/_Data/Curso_Data_estructures/Ex_Files_Python_Data_Structures/Exercise Files/GUI Code/config.py
Alejandro-sin/Learning_Notebooks
161d6bed4c7b1d171b45f61c0cc6fa91e9894aad
[ "MIT" ]
null
null
null
""" Python Data Structures - A Game-Based Approach Robin Andrews - https://compucademy.net/ """ # MAZE_FILE = "gui_mazes/square_maze_25x25.txt" MAZE_FILE = "gui_mazes/pacman_maze.txt" # MAZE_FILE = "gui_mazes/modest_maze.txt" # MAZE_FILE = "gui_mazes/wide_maze.txt" #MAZE_FILE = "gui_mazes/diagonal_23x23.txt" # MAZE_FI...
24.633333
49
0.675237
d11f09d1a3603dde8ab4ee0d902f6af78dc44ce5
19,979
py
Python
tests/postgres_tests/test_ranges.py
xia0AL/baby_two
70244363024a36463dfaeda64e9e95ac118e1934
[ "BSD-3-Clause" ]
2
2019-01-19T06:57:51.000Z
2022-03-16T13:29:03.000Z
tests/postgres_tests/test_ranges.py
ojengwa/django-1
f6b09a7f85c3b67b2011553838b079788c413432
[ "BSD-3-Clause" ]
1
2021-03-24T12:53:33.000Z
2021-03-24T12:53:33.000Z
tests/postgres_tests/test_ranges.py
ojengwa/django-1
f6b09a7f85c3b67b2011553838b079788c413432
[ "BSD-3-Clause" ]
4
2016-07-31T14:29:15.000Z
2021-10-19T03:32:44.000Z
import datetime import json import unittest from psycopg2.extras import DateRange, DateTimeTZRange, NumericRange from django import forms from django.contrib.postgres import fields as pg_fields, forms as pg_forms from django.contrib.postgres.validators import ( RangeMaxValueValidator, RangeMinValueValidator, ) fr...
38.794175
158
0.636769
dd07f1fcd3603cf4c0c96aa174d9a5c83233801a
6,405
py
Python
split-patch.py
austinpray/split-patch
3db1e9b3fe6e379240cb1d7783d560a98760c5fc
[ "MIT" ]
null
null
null
split-patch.py
austinpray/split-patch
3db1e9b3fe6e379240cb1d7783d560a98760c5fc
[ "MIT" ]
null
null
null
split-patch.py
austinpray/split-patch
3db1e9b3fe6e379240cb1d7783d560a98760c5fc
[ "MIT" ]
null
null
null
#!/usr/bin/env python import argparse import os import readline import sys import subprocess import shutil from tempfile import NamedTemporaryFile from termcolor import colored from pygments import highlight from pygments.lexers import DiffLexer from pygments.formatters import TerminalFormatter from collections im...
26.142857
131
0.584075
74a1703d340264a051b3beeee2f8e9b6374837fd
5,777
py
Python
docs/conf.py
jposada202020/CircuitPython_equalizer
60d42e5f4090f7e4b97e744ec5b00a49c65138ad
[ "Unlicense", "MIT-0", "MIT" ]
null
null
null
docs/conf.py
jposada202020/CircuitPython_equalizer
60d42e5f4090f7e4b97e744ec5b00a49c65138ad
[ "Unlicense", "MIT-0", "MIT" ]
null
null
null
docs/conf.py
jposada202020/CircuitPython_equalizer
60d42e5f4090f7e4b97e744ec5b00a49c65138ad
[ "Unlicense", "MIT-0", "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # SPDX-FileCopyrightText: 2017 Scott Shawcroft, written for Adafruit Industries # # SPDX-License-Identifier: MIT import os import sys sys.path.insert(0, os.path.abspath("..")) # -- General configuration ------------------------------------------------ # Add any Sphinx extension module names...
29.324873
84
0.673187
0263e018abdef3c2a7507e34079fbf53dac6fcb1
1,021
py
Python
hoover/search/management/commands/update.py
Spiderpig86/search
74daa985e7d8ddefc323100c2cbf2a279f5c9254
[ "MIT" ]
null
null
null
hoover/search/management/commands/update.py
Spiderpig86/search
74daa985e7d8ddefc323100c2cbf2a279f5c9254
[ "MIT" ]
null
null
null
hoover/search/management/commands/update.py
Spiderpig86/search
74daa985e7d8ddefc323100c2cbf2a279f5c9254
[ "MIT" ]
null
null
null
import time from django.core.management.base import BaseCommand from ...models import Collection from ...index import update_collection, logger as index_logger from ...loaders.collectible import logger as collectible_logger from ...utils import LOG_LEVEL class Command(BaseCommand): help = "Import a collection" ...
32.935484
79
0.643487
5d840a0cc08030e6b8ecbfd091a42c47000289af
299
py
Python
mtorch/core/model/metrics/base.py
NullConvergence/torch_temp
29a0d7190f0be6124f51bd85b8320cd8b3cef29a
[ "MIT" ]
3
2019-08-08T13:23:50.000Z
2019-08-15T15:29:36.000Z
mtorch/core/model/metrics/base.py
NullConvergence/torch-template
29a0d7190f0be6124f51bd85b8320cd8b3cef29a
[ "MIT" ]
10
2019-09-20T21:25:22.000Z
2019-10-16T10:52:04.000Z
mtorch/core/model/metrics/base.py
NullConvergence/mtorch
29a0d7190f0be6124f51bd85b8320cd8b3cef29a
[ "MIT" ]
2
2019-08-08T13:23:52.000Z
2019-08-08T19:46:55.000Z
from abc import abstractmethod class BaseMetric(object): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) @abstractmethod def forward(self): raise NotImplementedError @abstractmethod def get_name(self): raise NotImplementedError
19.933333
41
0.672241
16bc5afc768d5d968ce17ca07a6a32a9277417e3
3,145
py
Python
nlp_demo/nlp_naiveb_text_classifier-master/naiveb_classifier.py
maliozer/cs224n
cd81462a998dba08d3536a606d66a6d2eeb8b147
[ "MIT" ]
null
null
null
nlp_demo/nlp_naiveb_text_classifier-master/naiveb_classifier.py
maliozer/cs224n
cd81462a998dba08d3536a606d66a6d2eeb8b147
[ "MIT" ]
null
null
null
nlp_demo/nlp_naiveb_text_classifier-master/naiveb_classifier.py
maliozer/cs224n
cd81462a998dba08d3536a606d66a6d2eeb8b147
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Apr 3 2019 @author: maliozer """ from tqdm import tqdm import numpy as np import pandas as pd import nltk from nltk.stem.snowball import SnowballStemmer #TRAINING #file process file_path = "files/tweetset.csv" tweetsFrame = pd.read_csv(file_path) #fix column_names tweets...
25.778689
82
0.646105
93c9410aef06f08a2136583556b65baef98a6eff
3,705
py
Python
deprecated/train.py
Stillerman/MusicTransformer-pytorch
73abb7cab271beba042b7b6fc06a6a9aaee82e8c
[ "MIT" ]
170
2019-08-24T07:25:04.000Z
2022-03-29T01:42:44.000Z
deprecated/train.py
Stillerman/MusicTransformer-pytorch
73abb7cab271beba042b7b6fc06a6a9aaee82e8c
[ "MIT" ]
15
2019-10-29T01:36:57.000Z
2022-03-11T23:56:32.000Z
deprecated/train.py
Stillerman/MusicTransformer-pytorch
73abb7cab271beba042b7b6fc06a6a9aaee82e8c
[ "MIT" ]
57
2019-10-14T07:26:10.000Z
2022-03-31T14:39:02.000Z
from model import MusicTransformer from custom.layers import * from custom import criterion import params as par from tensorflow.python.keras.optimizer_v2.adam import Adam from data import Data import utils import argparse import datetime import sys tf.executing_eagerly() parser = argparse.ArgumentParser() parser.ad...
35.285714
112
0.65803
809401e604879aaca29f17cab8f332b27a623e08
1,585
py
Python
Task3/INDRASHIS PAUL - TASK 3/From WebCam/Face_Detection_from_Webcam.py
pratiksha-shinde123/ML
11f55a08640189fa8869f5d1af85662d5cb582d3
[ "MIT" ]
1
2020-10-15T03:51:05.000Z
2020-10-15T03:51:05.000Z
Task3/INDRASHIS PAUL - TASK 3/From WebCam/Face_Detection_from_Webcam.py
IndraP24/ML
f35886be236ec35a79f2404df2028fa3f312ef22
[ "MIT" ]
2
2020-10-15T03:43:46.000Z
2020-10-15T05:02:43.000Z
Task3/INDRASHIS PAUL - TASK 3/From WebCam/Face_Detection_from_Webcam.py
IndraP24/ML
f35886be236ec35a79f2404df2028fa3f312ef22
[ "MIT" ]
9
2020-10-09T06:34:13.000Z
2020-10-15T16:46:54.000Z
# OpenCV program to detect face in real time # Importing libraries of python OpenCV import cv2 # loads the required trained XML classifiers for face and eye face_cascade = cv2.CascadeClassifier("C:/Users/indra/PycharmProjects/ai/haarcascade_frontalface_alt.xml") eye_cascade = cv2.CascadeClassifier("C:/Users/ind...
31.7
106
0.641009
b9a0a8ce1928d7f8565db199c85c18bb06123649
2,202
py
Python
homeassistant/components/abode/alarm_control_panel.py
billyburly/home-assistant
9795449d22783e77a0ca7b745f15c89a830c5cc6
[ "Apache-2.0" ]
5
2020-09-17T10:48:51.000Z
2021-11-22T00:08:17.000Z
homeassistant/components/abode/alarm_control_panel.py
billyburly/home-assistant
9795449d22783e77a0ca7b745f15c89a830c5cc6
[ "Apache-2.0" ]
9
2022-01-27T06:32:10.000Z
2022-03-31T07:07:51.000Z
homeassistant/components/abode/alarm_control_panel.py
billyburly/home-assistant
9795449d22783e77a0ca7b745f15c89a830c5cc6
[ "Apache-2.0" ]
2
2020-12-09T02:21:27.000Z
2021-08-07T04:58:01.000Z
"""Support for Abode Security System alarm control panels.""" import logging import homeassistant.components.alarm_control_panel as alarm from homeassistant.components.alarm_control_panel.const import ( SUPPORT_ALARM_ARM_AWAY, SUPPORT_ALARM_ARM_HOME, ) from homeassistant.const import ( ATTR_ATTRIBUTION, ...
27.873418
83
0.668029
1ccab4339a1f6650ed37f42e8629a930f6193b09
11,330
py
Python
data_tools/wrap.py
veugene/data_tools
dece2cb92aa025cedc1297aa5075582a6751c515
[ "MIT" ]
16
2017-11-21T02:00:00.000Z
2021-06-13T19:55:51.000Z
data_wrapper/wrap.py
nikkkkhil/data_wrapper
6b590bee65e69ea1e88b92cb67b360f3ec3c3c85
[ "MIT" ]
4
2018-09-21T04:47:04.000Z
2020-12-04T22:40:18.000Z
data_wrapper/wrap.py
nikkkkhil/data_wrapper
6b590bee65e69ea1e88b92cb67b360f3ec3c3c85
[ "MIT" ]
5
2018-04-19T15:47:57.000Z
2019-07-24T08:14:00.000Z
import warnings import numpy as np class delayed_view(object): """ Given an array, create a view into that array without preloading the viewed data into memory. Data is loaded as needed when indexing into the delayed_view. Indexing is numpy-style, using any combination of integers, slices, in...
42.754717
79
0.573169
2f1005e5bbb60856ce63b0028b44b070272aa4b6
524
py
Python
solution1.py
conburke83/pands-problem-set
78fca950a070f783a34037d560b3c61abb243498
[ "Apache-2.0" ]
null
null
null
solution1.py
conburke83/pands-problem-set
78fca950a070f783a34037d560b3c61abb243498
[ "Apache-2.0" ]
null
null
null
solution1.py
conburke83/pands-problem-set
78fca950a070f783a34037d560b3c61abb243498
[ "Apache-2.0" ]
null
null
null
#CB 03/03/2019 #GMIT Data Analytics Programming & Scripting Module 2019 #Problem Sets #Problem Set 1 #Setting up a user-defined variable 'i', and asking the user to enter a positive integer as 'i' i = int(input("Please enter a positive integer: ")) #Setting up the 'total' variable, which will track the output value i...
34.933333
95
0.729008
d7adf175f3f05807c8f5cc933a03fbea882d8e3d
20,457
py
Python
python/cudf/cudf/tests/dataset_generator.py
sperlingxx/cudf
c681211df6253e1ceee9203658108980e7e93e3c
[ "Apache-2.0" ]
1
2021-12-17T19:28:00.000Z
2021-12-17T19:28:00.000Z
python/cudf/cudf/tests/dataset_generator.py
sperlingxx/cudf
c681211df6253e1ceee9203658108980e7e93e3c
[ "Apache-2.0" ]
null
null
null
python/cudf/cudf/tests/dataset_generator.py
sperlingxx/cudf
c681211df6253e1ceee9203658108980e7e93e3c
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020-2021, NVIDIA CORPORATION. # This module is for generating "synthetic" datasets. It was originally # designed for testing filtered reading. Generally, it should be useful # if you want to generate data where certain phenomena (e.g., cardinality) # are exaggerated. import copy import random import ...
32.889068
79
0.554138
cab4428fe606a0370acce1319456a9d48e128e87
673
py
Python
Python_Scripts/ReadProcessMemory.py
AYIDouble/Python-Scripts
9c0864ec14bfb00bfd1d5382c3c092f7638a5e3b
[ "MIT" ]
15
2018-09-12T09:58:57.000Z
2022-03-28T23:48:12.000Z
Python_Scripts/ReadProcessMemory.py
AYIDouble/Python-Scripts
9c0864ec14bfb00bfd1d5382c3c092f7638a5e3b
[ "MIT" ]
4
2018-10-03T11:45:05.000Z
2019-01-03T18:15:52.000Z
Python_Scripts/ReadProcessMemory.py
AYIDouble/Python-Scripts
9c0864ec14bfb00bfd1d5382c3c092f7638a5e3b
[ "MIT" ]
2
2020-05-08T14:27:59.000Z
2021-11-01T10:28:26.000Z
from ctypes import * from ctypes.wintypes import * PROCESS_ID = 9476 # From TaskManager for Notepad.exe PROCESS_HEADER_ADDR = 0x7ff7b81e0000 # From SysInternals VMMap utility # read from addresses STRLEN = 255 PROCESS_VM_READ = 0x0010 k32 = WinDLL('kernel32') k32.OpenProcess.argtypes = DWORD,BOOL,DWORD k32.OpenProc...
30.590909
80
0.794948
d661cd0088cf4702c9f22d2d9db19de33bea7c1d
11,728
py
Python
networkx/generators/tests/test_geometric.py
alubbock/networkx
95353eb81c996baf3d8d567de26d3f28f41542eb
[ "BSD-3-Clause" ]
1
2021-10-09T18:13:09.000Z
2021-10-09T18:13:09.000Z
networkx/generators/tests/test_geometric.py
aganezov/networkx
0595dc7c7d33a94f9e46dbcb9cfce9ecd1a2329f
[ "BSD-3-Clause" ]
null
null
null
networkx/generators/tests/test_geometric.py
aganezov/networkx
0595dc7c7d33a94f9e46dbcb9cfce9ecd1a2329f
[ "BSD-3-Clause" ]
null
null
null
from itertools import combinations from math import sqrt import random from nose.tools import assert_equal from nose.tools import assert_false from nose.tools import assert_true import networkx as nx from networkx.generators.geometric import euclidean def l1dist(x, y): return sum(abs(a - b) for a, b in zip(x, y...
34.801187
81
0.590041
cf231a3f42081237f270c1cddf82de720b8ae621
6,845
py
Python
tests/unit/test_faultydata.py
ljishen/server
b641df7de19afb67df28d70c9b64b4faa3c56b23
[ "Apache-2.0" ]
null
null
null
tests/unit/test_faultydata.py
ljishen/server
b641df7de19afb67df28d70c9b64b4faa3c56b23
[ "Apache-2.0" ]
null
null
null
tests/unit/test_faultydata.py
ljishen/server
b641df7de19afb67df28d70c9b64b4faa3c56b23
[ "Apache-2.0" ]
null
null
null
""" Unit tests for faulty data sets. """ from __future__ import division from __future__ import print_function from __future__ import unicode_literals import os import unittest import ga4gh.datamodel.datasets as datasets import ga4gh.datamodel.references as references import ga4gh.datamodel.variants as variants impor...
31.689815
78
0.696275
1b01d47120a44acff1d17ce744a4a78aa8af8a94
438
py
Python
app/machines/context_processors.py
jayfk/machinery
b654a3cffb49809e6df705e7130dae9bbdb5cad5
[ "Apache-2.0" ]
15
2015-05-22T14:04:53.000Z
2021-01-04T04:32:08.000Z
app/machines/context_processors.py
jayfk/machinery
b654a3cffb49809e6df705e7130dae9bbdb5cad5
[ "Apache-2.0" ]
1
2016-04-05T10:10:56.000Z
2016-04-05T10:10:56.000Z
app/machines/context_processors.py
jayfk/machinery
b654a3cffb49809e6df705e7130dae9bbdb5cad5
[ "Apache-2.0" ]
7
2015-08-31T08:35:52.000Z
2018-02-19T02:07:24.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import, print_function, unicode_literals from django.core.urlresolvers import reverse from .core import machines_ls def machine_cache_context_processor(request): """ Basic context processor to populate the context with a cached list of machines. """ ...
36.5
83
0.742009
55458262fdd68f856e10cd80621eeedde7d36f1e
1,027
py
Python
ionoscloud/api/__init__.py
ionos-cloud/sdk-python
bb22b5b93505b25de6aebae97c523a6c2242ec2e
[ "Apache-2.0" ]
null
null
null
ionoscloud/api/__init__.py
ionos-cloud/sdk-python
bb22b5b93505b25de6aebae97c523a6c2242ec2e
[ "Apache-2.0" ]
6
2021-11-26T16:18:51.000Z
2022-02-18T10:08:49.000Z
ionoscloud/api/__init__.py
ionos-cloud/sdk-python
bb22b5b93505b25de6aebae97c523a6c2242ec2e
[ "Apache-2.0" ]
1
2021-04-20T09:29:17.000Z
2021-04-20T09:29:17.000Z
from __future__ import absolute_import # flake8: noqa # import apis into api package from ionoscloud.api.backup_unit_api import BackupUnitApi from ionoscloud.api.contract_api import ContractApi from ionoscloud.api.data_center_api import DataCenterApi from ionoscloud.api.ip_blocks_api import IPBlocksApi from ionosclou...
42.791667
75
0.877313
b7dc53c62ad44e00235364d5e92ebb0ea69ae909
440
py
Python
project_sf_crime_data_project/tests.py
seoruosa/streaming-data-nanodegree
14961bc42c626e74ac23cc94f69e25eab39a2da1
[ "MIT" ]
null
null
null
project_sf_crime_data_project/tests.py
seoruosa/streaming-data-nanodegree
14961bc42c626e74ac23cc94f69e25eab39a2da1
[ "MIT" ]
null
null
null
project_sf_crime_data_project/tests.py
seoruosa/streaming-data-nanodegree
14961bc42c626e74ac23cc94f69e25eab39a2da1
[ "MIT" ]
null
null
null
import json FILEPATH = 'police-department-calls-for-service.json' def main(): # https://stackoverflow.com/questions/34010778/python-read-in-an-array-of-json-objects-using-json-loads with open(FILEPATH, 'r') as f: json_data = json.loads(f.read()) i = 0 for line in json_data: print(lin...
22
107
0.604545
12289fb4dcc6bbea29f6e2a1bdb4b93f5e02899a
54,464
py
Python
safe_transaction_service/history/models.py
gnosis/safe-transaction-service
e153a80a36adcc471664aa2e11892c72f7eca911
[ "MIT" ]
67
2019-08-16T16:26:42.000Z
2022-03-21T20:32:43.000Z
safe_transaction_service/history/models.py
gnosis/safe-transaction-service
e153a80a36adcc471664aa2e11892c72f7eca911
[ "MIT" ]
550
2019-07-11T12:09:06.000Z
2022-03-31T16:32:00.000Z
safe_transaction_service/history/models.py
gnosis/safe-transaction-service
e153a80a36adcc471664aa2e11892c72f7eca911
[ "MIT" ]
83
2019-12-06T11:22:32.000Z
2022-03-30T10:09:22.000Z
import datetime from enum import Enum from itertools import islice from logging import getLogger from typing import Any, Dict, List, Optional, Sequence, Set, Tuple, Type, TypedDict from django.contrib.postgres.fields import ArrayField from django.contrib.postgres.indexes import GinIndex from django.core.exceptions imp...
35.808021
120
0.621254