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
a79d1926c3d415d6b4196e18d7693533ac9c03ef
35,050
py
Python
mathics/builtin/linalg.py
pqtoan/mathics
a08db9475c12585b5bd1701fd42b627062b6ad1e
[ "Apache-2.0" ]
null
null
null
mathics/builtin/linalg.py
pqtoan/mathics
a08db9475c12585b5bd1701fd42b627062b6ad1e
[ "Apache-2.0" ]
null
null
null
mathics/builtin/linalg.py
pqtoan/mathics
a08db9475c12585b5bd1701fd42b627062b6ad1e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Linear algebra """ from __future__ import unicode_literals from __future__ import absolute_import import six from six.moves import range from six.moves import zip import sympy from mpmath import mp from mathics.builtin.base import Builtin from mathics.core.convert ...
29.982891
187
0.520428
918a05990f8dc9db1d2e935f7ff793252c3efb0f
40,425
py
Python
Cython/Compiler/FusedNode.py
shreyanavigyan/cython
217a93e7b139ab49815ea9ca34142b3e2a116a08
[ "Apache-2.0" ]
6
2021-05-25T13:15:13.000Z
2022-01-05T06:15:26.000Z
Cython/Compiler/FusedNode.py
shreyanavigyan/cython
217a93e7b139ab49815ea9ca34142b3e2a116a08
[ "Apache-2.0" ]
238
2020-02-12T21:01:15.000Z
2020-10-01T11:46:25.000Z
Cython/Compiler/FusedNode.py
shreyanavigyan/cython
217a93e7b139ab49815ea9ca34142b3e2a116a08
[ "Apache-2.0" ]
1
2021-09-07T12:03:18.000Z
2021-09-07T12:03:18.000Z
from __future__ import absolute_import import copy from . import (ExprNodes, PyrexTypes, MemoryView, ParseTreeTransforms, StringEncoding, Errors) from .ExprNodes import CloneNode, ProxyNode, TupleNode from .Nodes import FuncDefNode, CFuncDefNode, StatListNode, DefNode from ..Utils import OrderedSet fro...
42.285565
120
0.582066
75578bc84815a5fea9a1b7cacdbf74cddb3e1d0c
671
py
Python
tests/analysis/init_imports.py
joshlemon/plaso
9f8e05f21fa23793bfdade6af1d617e9dd092531
[ "Apache-2.0" ]
1
2020-10-29T18:23:25.000Z
2020-10-29T18:23:25.000Z
tests/analysis/init_imports.py
joshlemon/plaso
9f8e05f21fa23793bfdade6af1d617e9dd092531
[ "Apache-2.0" ]
null
null
null
tests/analysis/init_imports.py
joshlemon/plaso
9f8e05f21fa23793bfdade6af1d617e9dd092531
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Tests that all analysis plugins are imported correctly.""" from __future__ import unicode_literals import unittest from tests import test_lib class AnalysisImportTest(test_lib.ImportCheckTestCase): """Tests that analysis plugin classes are imported correctly.""" ...
24.851852
66
0.725782
8878c41bae9497ca1658abf482f679c1313ddb34
9,823
py
Python
lynx_code/ecc_fast.py
enkrypter/Lynx-wallet
166b7e5810f017a6e12bf96e54b0d44767b2a901
[ "MIT" ]
2
2019-09-19T10:57:19.000Z
2019-10-29T20:39:26.000Z
lynx_code/ecc_fast.py
enkrypter/Lynx-wallet
166b7e5810f017a6e12bf96e54b0d44767b2a901
[ "MIT" ]
4
2019-11-17T17:40:13.000Z
2020-01-22T12:13:02.000Z
lynx_code/ecc_fast.py
enkrypter/Lynx-wallet
166b7e5810f017a6e12bf96e54b0d44767b2a901
[ "MIT" ]
2
2020-03-17T21:42:56.000Z
2020-05-02T14:10:40.000Z
# taken (with minor modifications) from pycoin # https://github.com/richardkiss/pycoin/blob/01b1787ed902df23f99a55deb00d8cd076a906fe/pycoin/ecdsa/native/secp256k1.py import os import sys import traceback import ctypes from ctypes.util import find_library from ctypes import ( byref, c_byte, c_int, c_uint, c_char_p,...
44.049327
127
0.738064
66f7ee4e8c500f40d47faec7872b5363856e10a2
4,626
py
Python
supvisors/tests/test_ttypes.py
julien6387/supvisors
4e32bce566dec2cf9e9a213a3698178030eb869b
[ "Apache-2.0" ]
66
2017-01-05T11:28:34.000Z
2022-03-04T08:42:01.000Z
supvisors/tests/test_ttypes.py
julien6387/supvisors
4e32bce566dec2cf9e9a213a3698178030eb869b
[ "Apache-2.0" ]
36
2016-12-30T10:46:58.000Z
2022-01-09T22:56:10.000Z
supvisors/tests/test_ttypes.py
julien6387/supvisors
4e32bce566dec2cf9e9a213a3698178030eb869b
[ "Apache-2.0" ]
12
2017-03-04T04:53:51.000Z
2022-01-28T13:03:22.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # ====================================================================== # Copyright 2016 Julien LE CLEACH # # 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 Lic...
40.226087
90
0.70709
00e22277ce6d93cabea7f6993fd8cf07f070c702
982
py
Python
old_logen/pylogen/Browser.py
leuschel/logen
0ea806f54628162615e25177c3ed98f6b2c27935
[ "Apache-2.0" ]
14
2015-10-16T11:35:30.000Z
2021-05-12T15:31:16.000Z
old_logen/pylogen/Browser.py
leuschel/logen
0ea806f54628162615e25177c3ed98f6b2c27935
[ "Apache-2.0" ]
null
null
null
old_logen/pylogen/Browser.py
leuschel/logen
0ea806f54628162615e25177c3ed98f6b2c27935
[ "Apache-2.0" ]
5
2015-10-16T12:44:41.000Z
2019-10-02T02:45:38.000Z
import os import sys class Browser: """ Runs the users browser and displays the page for html previewing """ def __init__(self, pref): self.pref = pref browser_cmd = pref.get_preference('browser') if browser_cmd is None or browser_cmd == '': if sys.platform...
27.277778
82
0.57332
e34affb8776de4dc2f088c2857b9daaed3ba4d74
1,575
py
Python
test/bench.py
00xc/pylzf
44f836ebf76a7a84b0d1ba114d7336c90213b266
[ "BSD-2-Clause" ]
null
null
null
test/bench.py
00xc/pylzf
44f836ebf76a7a84b0d1ba114d7336c90213b266
[ "BSD-2-Clause" ]
null
null
null
test/bench.py
00xc/pylzf
44f836ebf76a7a84b0d1ba114d7336c90213b266
[ "BSD-2-Clause" ]
null
null
null
import random import time import pylzf import zlib def mean(x): return sum(x)/len(x) if __name__ == '__main__': NTESTS = 20 with open("/usr/share/dict/american-english", "r") as f: words = [w.rstrip() for w in f.readlines()] for NWORDS in [100, 1_000, 10_000, 100_000, 500_000]: sizes = [] elapsed = [] ...
24.609375
117
0.610794
e6c49d01e5b621ace4e417d414ec074297b7aafd
9,446
py
Python
saleor/graphql/account/mutations/jwt.py
aldian/saleor
c3c42998055daf262bbb1c339f254007519a1d9b
[ "CC-BY-4.0" ]
2
2021-01-31T00:28:42.000Z
2021-01-31T12:30:46.000Z
saleor/graphql/account/mutations/jwt.py
aldian/saleor
c3c42998055daf262bbb1c339f254007519a1d9b
[ "CC-BY-4.0" ]
null
null
null
saleor/graphql/account/mutations/jwt.py
aldian/saleor
c3c42998055daf262bbb1c339f254007519a1d9b
[ "CC-BY-4.0" ]
1
2021-02-18T13:56:47.000Z
2021-02-18T13:56:47.000Z
from typing import Optional import graphene import jwt from django.core.exceptions import ValidationError from django.middleware.csrf import _compare_masked_tokens # type: ignore from django.middleware.csrf import _get_new_csrf_token from django.utils import timezone from django.utils.crypto import get_random_string ...
33.496454
88
0.636248
116fd9c5f89ed996555f17ae505328f486a6a448
42,295
py
Python
plugwise/helper.py
plugwise/python-plugwise
be50323e29bb0cf493af49c60111f51d624866d9
[ "MIT" ]
3
2020-10-29T15:06:03.000Z
2022-03-01T10:35:40.000Z
plugwise/helper.py
plugwise/python-plugwise
be50323e29bb0cf493af49c60111f51d624866d9
[ "MIT" ]
154
2020-10-18T11:02:02.000Z
2022-03-31T10:24:19.000Z
plugwise/helper.py
plugwise/python-plugwise
be50323e29bb0cf493af49c60111f51d624866d9
[ "MIT" ]
3
2020-10-28T18:02:43.000Z
2021-09-02T15:20:51.000Z
"""Use of this source code is governed by the MIT license found in the LICENSE file. Plugwise Smile protocol helpers. """ import asyncio import datetime as dt import logging import aiohttp import async_timeout from dateutil import tz from dateutil.parser import parse from defusedxml import ElementTree as etree from mu...
36.304721
112
0.57482
e59da581e64f4711670f7c14ebd424fc506001cd
1,695
py
Python
setup.py
rcook/sniptool
8d88bec0d817cd1bba19f12af9d26fd6f458c9f1
[ "MIT" ]
null
null
null
setup.py
rcook/sniptool
8d88bec0d817cd1bba19f12af9d26fd6f458c9f1
[ "MIT" ]
null
null
null
setup.py
rcook/sniptool
8d88bec0d817cd1bba19f12af9d26fd6f458c9f1
[ "MIT" ]
null
null
null
#!/usr/bin/env python ################################################### # Copyright (C) 2017, All rights reserved. ################################################## import os import re from setuptools import setup _PROJECT_NAME = "sniptool" def _read_properties(project_name): init_path = os.path.abspath(os.p...
27.786885
77
0.581121
6b74471de944a1432be8b49e96d6c7ed805d9ec9
290
py
Python
packages/urls.py
shamanu4/test_project
8ec52b5ab88c7bae4e469dc04fe64630e2f081fa
[ "MIT" ]
1
2019-07-26T09:56:38.000Z
2019-07-26T09:56:38.000Z
packages/urls.py
shamanu4/test_project
8ec52b5ab88c7bae4e469dc04fe64630e2f081fa
[ "MIT" ]
6
2020-06-05T19:00:20.000Z
2022-03-11T23:29:35.000Z
packages/urls.py
vintkor/cryptotrade
cd27b5d58e4149cf9ad5e035983fcec566369833
[ "MIT" ]
null
null
null
from django.urls import path from .views import ( PackageListView, ByPackageFormView, ) app_name = 'package' urlpatterns = [ path('', PackageListView.as_view(), name='packages-list'), path('buy-package/<int:package_id>', ByPackageFormView.as_view(), name='buy-package'), ]
24.166667
90
0.703448
efcb58b91815ead6f61a7aa258c12f6d2802a2b3
3,388
py
Python
speakers/migrations/0006_add_description_field.py
andyzsf/ConMan
e8d4aa9eeda7a85b39d8d897dbdba43de3cee9c1
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
speakers/migrations/0006_add_description_field.py
andyzsf/ConMan
e8d4aa9eeda7a85b39d8d897dbdba43de3cee9c1
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
speakers/migrations/0006_add_description_field.py
andyzsf/ConMan
e8d4aa9eeda7a85b39d8d897dbdba43de3cee9c1
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
from south.db import db from django.db import models from speakers.models import * class Migration: def forwards(self, orm): # Adding field 'Presentation.description' db.add_column('speakers_presentation', 'description', models.CharField(max_length=255, null=True, blank=True)) ...
47.71831
118
0.523613
a2958c6786b5abb384d798bbeed1fbd8c1a82189
1,085
py
Python
Dataset/Leetcode/train/101/550.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/train/101/550.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/train/101/550.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
class Solution: def XXX(self, root: TreeNode) -> bool: def ishuiwen(p): index1 = 0 index2 = len(p) - 1 while index1 < len(p) and index2 >= 0 and p[index1] == p[index2]: index1 += 1 index2 -= 1 if index2 > index1: ...
28.552632
77
0.376037
81b3cdcdfc743bb3a5b4017b74538e1a0fc37718
2,515
py
Python
IA 2/Perceptron1/Perceptron.py
CesarSG/actividades
60c42a1bb181c5b75377ac8302a45bac95d37bfb
[ "MIT" ]
null
null
null
IA 2/Perceptron1/Perceptron.py
CesarSG/actividades
60c42a1bb181c5b75377ac8302a45bac95d37bfb
[ "MIT" ]
null
null
null
IA 2/Perceptron1/Perceptron.py
CesarSG/actividades
60c42a1bb181c5b75377ac8302a45bac95d37bfb
[ "MIT" ]
null
null
null
import os import sys import csv import numpy as np import matplotlib.pyplot as plt class Perceptron: def __init__(self, x, w, d, heta, max_epoch): self._x = x self._w = w self._d = d self._heta = heta self._max_epoch = max_epoch self._trained = False def run(se...
23.287037
72
0.468787
d577eae77a7946bbe6867c2d394702ff351c0c99
3,090
py
Python
test/code/transformers/test_meta_features_extractor.py
IooHooI/RECOMMENDATION_SYSTEMS_2
0ca2f17a9b268d094cbae8b13beb2b97696eff3e
[ "Unlicense" ]
null
null
null
test/code/transformers/test_meta_features_extractor.py
IooHooI/RECOMMENDATION_SYSTEMS_2
0ca2f17a9b268d094cbae8b13beb2b97696eff3e
[ "Unlicense" ]
8
2020-01-28T22:30:25.000Z
2022-02-10T00:01:53.000Z
test/code/transformers/test_meta_features_extractor.py
IooHooI/RECOMMENDATION_SYSTEMS_2
0ca2f17a9b268d094cbae8b13beb2b97696eff3e
[ "Unlicense" ]
null
null
null
import os import unittest import numpy as np import pandas as pd import tensorflow as tf from tffm import TFFMClassifier from sklearn.pipeline import Pipeline from sklearn.impute import SimpleImputer from sklearn.compose import ColumnTransformer from sklearn.preprocessing import OneHotEncoder from sklearn.preprocessing...
33.225806
110
0.660518
df8e08dd7dccf4b60330ebbc106426606d2a99a1
4,252
py
Python
pysap/plugins/astro/deconvolve/deconvolve.py
SylvainLan/pysap
38c0d43f61adb952c3768d33f1ca41c5769fef2b
[ "CECILL-B" ]
null
null
null
pysap/plugins/astro/deconvolve/deconvolve.py
SylvainLan/pysap
38c0d43f61adb952c3768d33f1ca41c5769fef2b
[ "CECILL-B" ]
null
null
null
pysap/plugins/astro/deconvolve/deconvolve.py
SylvainLan/pysap
38c0d43f61adb952c3768d33f1ca41c5769fef2b
[ "CECILL-B" ]
null
null
null
# -*- coding: utf-8 -*- ########################################################################## # pySAP - Copyright (C) CEA, 2017 - 2018 # Distributed under the terms of the CeCILL-B license, as published by # the CEA-CNRS-INRIA. Refer to the LICENSE file or to # http://www.cecill.info/licences/Licence_CeCILL-B_V1-e...
27.61039
78
0.650517
ba2ad3d282fcc080abe7e565b8cf2631ce6fdad6
1,339
py
Python
perfkitbenchmarker/linux_packages/amdblis.py
msidana/PerfKitBenchmarker
2784642d3e6b20b3f474c4e27edb1ef163804f66
[ "Apache-2.0" ]
1
2018-08-28T19:33:21.000Z
2018-08-28T19:33:21.000Z
perfkitbenchmarker/linux_packages/amdblis.py
msidana/PerfKitBenchmarker
2784642d3e6b20b3f474c4e27edb1ef163804f66
[ "Apache-2.0" ]
null
null
null
perfkitbenchmarker/linux_packages/amdblis.py
msidana/PerfKitBenchmarker
2784642d3e6b20b3f474c4e27edb1ef163804f66
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 PerfKitBenchmarker 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 appli...
36.189189
77
0.73413
f7f316e5dd64a7d086b94a7eb910318f5913d9c2
7,460
py
Python
python/oneflow/compatible/single_client/test/ops/test_hardsigmoid.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
3,285
2020-07-31T05:51:22.000Z
2022-03-31T15:20:16.000Z
python/oneflow/compatible/single_client/test/ops/test_hardsigmoid.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
2,417
2020-07-31T06:28:58.000Z
2022-03-31T23:04:14.000Z
python/oneflow/compatible/single_client/test/ops/test_hardsigmoid.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
520
2020-07-31T05:52:42.000Z
2022-03-29T02:38:11.000Z
""" Copyright 2020 The OneFlow Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
36.213592
87
0.627882
d5cc193a29594f13667d2dd24b2381c01c72962a
870
py
Python
newdle/providers/free_busy/random.py
Biboba/newdle
89ea84ebf3259ccc8670c72b718b68a0fc1ccd66
[ "MIT" ]
null
null
null
newdle/providers/free_busy/random.py
Biboba/newdle
89ea84ebf3259ccc8670c72b718b68a0fc1ccd66
[ "MIT" ]
null
null
null
newdle/providers/free_busy/random.py
Biboba/newdle
89ea84ebf3259ccc8670c72b718b68a0fc1ccd66
[ "MIT" ]
null
null
null
import datetime from random import Random def _to_tuple(t): return (t.hour, t.minute) def fetch_free_busy(date, tz, uid): rnd = Random(date.isoformat() + uid) if rnd.randint(0, 1): start = rnd.randint(5, 21) end = rnd.randint(start + 1, 23) start_time = _to_tuple(datetime.time(st...
32.222222
65
0.624138
67f10cfcc02612f0e287ded417f7aeee8f8ec815
9,817
py
Python
src/python/nimbusml/internal/core/linear_model/averagedperceptronbinaryclassifier.py
montehoover/NimbusML
f6be39ce9359786976429bab0ccd837e849b4ba5
[ "MIT" ]
134
2018-11-01T22:15:24.000Z
2019-05-04T11:30:08.000Z
src/python/nimbusml/internal/core/linear_model/averagedperceptronbinaryclassifier.py
montehoover/NimbusML
f6be39ce9359786976429bab0ccd837e849b4ba5
[ "MIT" ]
226
2019-05-07T19:00:44.000Z
2021-01-06T07:59:48.000Z
src/python/nimbusml/internal/core/linear_model/averagedperceptronbinaryclassifier.py
montehoover/NimbusML
f6be39ce9359786976429bab0ccd837e849b4ba5
[ "MIT" ]
43
2019-05-15T20:19:42.000Z
2022-03-30T10:26:07.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. # -------------------------------------------------------------------------------------------- # - Generated by tools/entrypoint_co...
41.247899
94
0.659061
a8848902d898ef316f5852f7f7c50056672bced7
153
py
Python
example/registration/admin.py
westofpluto/django_custom_auth_user
e8dd1bbbdf943982d68a3183b4931a34b2b2c3f5
[ "MIT" ]
null
null
null
example/registration/admin.py
westofpluto/django_custom_auth_user
e8dd1bbbdf943982d68a3183b4931a34b2b2c3f5
[ "MIT" ]
null
null
null
example/registration/admin.py
westofpluto/django_custom_auth_user
e8dd1bbbdf943982d68a3183b4931a34b2b2c3f5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 # Core from django.contrib import admin # Models from registration.models import User # Register admins admin.site.register(User)
13.909091
36
0.751634
9532002765597a35e465cf553d23d3535bc93a35
2,788
py
Python
weGame/main.py
yang-lile/TAN-ZHE
e10ddfd74e2537b3d6840799be441c10a32c8661
[ "MIT" ]
1
2019-10-25T15:05:24.000Z
2019-10-25T15:05:24.000Z
weGame/main.py
yang-lile/TAN-ZHE
e10ddfd74e2537b3d6840799be441c10a32c8661
[ "MIT" ]
null
null
null
weGame/main.py
yang-lile/TAN-ZHE
e10ddfd74e2537b3d6840799be441c10a32c8661
[ "MIT" ]
null
null
null
# # @Time : 2019/9/23 下午2:43 # @Author : 礼lua # @Modify Log : insert L54-L71 # @todoList : 1.use manGame.run to run the game # import pygame, sys # import pygame constant from pygame.locals import * from globalValue import GL def main():# 你可能没学过,但不难理解,这是一个主函数,整个程序的入口 # pygame init # it is a...
34
103
0.518293
09ec2cbdcdf1fa2940228bc0318401fad4df2e98
11,450
py
Python
src/python/fig_plot/fig_plot.py
Magic-wei/easy_plot
f5bbc9c7a4793d05ead951540c891a3ff729c5cc
[ "MIT" ]
5
2018-12-26T14:55:36.000Z
2021-06-28T00:56:33.000Z
src/python/fig_plot/fig_plot.py
Magic-wei/easy_plot
f5bbc9c7a4793d05ead951540c891a3ff729c5cc
[ "MIT" ]
1
2019-02-13T02:24:47.000Z
2019-03-23T16:26:32.000Z
src/python/fig_plot/fig_plot.py
Magic-wei/easy_plot
f5bbc9c7a4793d05ead951540c891a3ff729c5cc
[ "MIT" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- ''' --------------------------------- Figure Plot Author: Wei Wang Date: 07/01/2019 --------------------------------- ''' import os import glob import pandas as pd import numpy as np # for easy generation of arrays import matplotlib.pyplot as plt import matplotlib as ...
35.122699
106
0.667686
b503c6cff5f85e73bad09f5a0316f160dbfdfc3c
1,013
py
Python
Copyright_contract.py
JunbeomGwak/final_project
1a90fd4254de22907387c1e45cf2caaa9e0fc907
[ "MIT" ]
null
null
null
Copyright_contract.py
JunbeomGwak/final_project
1a90fd4254de22907387c1e45cf2caaa9e0fc907
[ "MIT" ]
null
null
null
Copyright_contract.py
JunbeomGwak/final_project
1a90fd4254de22907387c1e45cf2caaa9e0fc907
[ "MIT" ]
null
null
null
import solcx from logzero import logger from web3 import Web3 from solcx import compile_files w3 = Web3(Web3.HTTPProvider('http://127.0.0.1:7545')) w3.eth.defaultAccount = w3.eth.accounts[0] print('install solcx 0.8.0..') solcx.install_solc('0.8.0') def deploy(contract_file, contract_name): compiled_sol = compile_f...
30.69697
71
0.754195
e2f6b4be25549e24bfeffb3b68e5eeff017d052c
1,425
py
Python
manage.py
lawja/FavColor
6c8f1a7af498021143cc7a8ac7f66dd6a5cda179
[ "Apache-2.0" ]
null
null
null
manage.py
lawja/FavColor
6c8f1a7af498021143cc7a8ac7f66dd6a5cda179
[ "Apache-2.0" ]
null
null
null
manage.py
lawja/FavColor
6c8f1a7af498021143cc7a8ac7f66dd6a5cda179
[ "Apache-2.0" ]
null
null
null
''' manage.py Server start module ''' import os from app import create_app from flask_script import Manager, Shell, Command, Option from pymongo import MongoClient from flask_moment import Moment app = create_app(os.getenv('FLASK_CONFIG') or 'default') app.debug = True moment = Moment(app) manager = Manage...
25
71
0.626667
e27ed7d30713e126ed69749eba4c40dcd148b170
2,795
py
Python
hummingbot/core/utils/kill_switch.py
cardosofede/hummingbot
d1df085bb879a06a7dc77d4fdc8ff6f13d8726ca
[ "Apache-2.0" ]
542
2021-12-17T22:34:31.000Z
2022-03-31T14:36:23.000Z
hummingbot/core/utils/kill_switch.py
cardosofede/hummingbot
d1df085bb879a06a7dc77d4fdc8ff6f13d8726ca
[ "Apache-2.0" ]
291
2021-12-17T20:07:53.000Z
2022-03-31T11:07:23.000Z
hummingbot/core/utils/kill_switch.py
cardosofede/hummingbot
d1df085bb879a06a7dc77d4fdc8ff6f13d8726ca
[ "Apache-2.0" ]
220
2021-12-17T12:41:23.000Z
2022-03-31T23:03:22.000Z
import asyncio import logging from decimal import Decimal from typing import Optional from hummingbot.client.config.global_config_map import global_config_map from hummingbot.logger import HummingbotLogger from hummingbot.core.utils.async_utils import safe_ensure_future class KillSwitch: ks_logger: Optional[Hummi...
42.348485
111
0.633631
a4f7b80b67b3fb64ea8e2f771442caac0adaf301
1,166
py
Python
flag_create.py
mitre-cyber-academy/2016-Binary-200
73722ddde921bffec0b70a42a1db142c223f81a2
[ "Apache-2.0" ]
null
null
null
flag_create.py
mitre-cyber-academy/2016-Binary-200
73722ddde921bffec0b70a42a1db142c223f81a2
[ "Apache-2.0" ]
null
null
null
flag_create.py
mitre-cyber-academy/2016-Binary-200
73722ddde921bffec0b70a42a1db142c223f81a2
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python #---------------------------------------- # Script to convert flags into # rustled string for dank_asm challenge # for the MITRE CTF 2016 # # Written by: kierk # Contact at: apellitieri@mitre.org #---------------------------------------- #---------------------------------------- # For usa...
22.862745
65
0.592624
a238f66c6fc3741c20a576d3a979e79147030ee5
3,441
py
Python
flankers/youtubestore.py
SpaceAppsXploration/semantic-data-chronos
f7908f50892781154d623f46303812e88fdecb57
[ "Apache-2.0" ]
1
2017-06-15T17:51:19.000Z
2017-06-15T17:51:19.000Z
flankers/youtubestore.py
SpaceAppsXploration/semantic-data-chronos
f7908f50892781154d623f46303812e88fdecb57
[ "Apache-2.0" ]
null
null
null
flankers/youtubestore.py
SpaceAppsXploration/semantic-data-chronos
f7908f50892781154d623f46303812e88fdecb57
[ "Apache-2.0" ]
null
null
null
import webapp2 import urllib import json from apiclient.discovery import build from optparse import OptionParser from config.config import _DEBUG from config.youtube_secret import _KEY, YOUTUBE_API_SERVICE_NAME, YOUTUBE_API_VERSION from datastore.models import WebResource params = { 'part': 'id, snippet', '...
28.915966
180
0.586748
dc66c162effc23e9c870fcf5c66157a2da386766
7,672
py
Python
env_backend.py
mizolotu/SmartMantsinen
ffb0401a3bd9449df8124c09e57025bd13d2ad82
[ "MIT" ]
null
null
null
env_backend.py
mizolotu/SmartMantsinen
ffb0401a3bd9449df8124c09e57025bd13d2ad82
[ "MIT" ]
null
null
null
env_backend.py
mizolotu/SmartMantsinen
ffb0401a3bd9449df8124c09e57025bd13d2ad82
[ "MIT" ]
null
null
null
import sys, requests, os from time import sleep # gains and thresholds attempts_max = 10 # maximum number of attempts to register exec_freq = 1000 # Hz sleep_interval = 3 # seconds # http parameters http_url = 'http://127.0.0.1:5000' id_uri = 'id' state_uri = 'post_state' action_uri = 'get_action' signals_uri = ...
37.062802
161
0.627477
8af9e1f9e821cbcd3e568b4fc014f99f5f907657
2,599
py
Python
randydata/data_layout.py
JohannesRanderath/randydata
4f67224019959fda0b02bf5baac7f2440c36ba1e
[ "MIT" ]
null
null
null
randydata/data_layout.py
JohannesRanderath/randydata
4f67224019959fda0b02bf5baac7f2440c36ba1e
[ "MIT" ]
2
2022-03-29T10:44:48.000Z
2022-03-30T16:51:10.000Z
randydata/data_layout.py
JohannesRanderath/randydata
4f67224019959fda0b02bf5baac7f2440c36ba1e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Simple tools to help format data. """ from IPython.display import HTML, display def make_table(headings: [], data: [[]], columns: bool = False, row_headings: [] = None): """ Creates table from given headings and data. headings should be a list of strings. Data should b...
36.605634
154
0.573682
16e1c4d11255804d6092e5967956dc583ae585fb
16,641
py
Python
zero/imagenet/train_vanilla.py
kanesoban/ZeRO-Offload-experiments
81e839b45687f6def09c6888abae60f3976663f1
[ "Apache-2.0" ]
null
null
null
zero/imagenet/train_vanilla.py
kanesoban/ZeRO-Offload-experiments
81e839b45687f6def09c6888abae60f3976663f1
[ "Apache-2.0" ]
null
null
null
zero/imagenet/train_vanilla.py
kanesoban/ZeRO-Offload-experiments
81e839b45687f6def09c6888abae60f3976663f1
[ "Apache-2.0" ]
null
null
null
import argparse import os import random import shutil import time import warnings import torch import torch.nn as nn import torch.nn.parallel import torch.backends.cudnn as cudnn import torch.distributed as dist import torch.optim import torch.multiprocessing as mp import torch.utils.data import torch.utils.data.distr...
38.610209
91
0.604231
cc1feef0ef012bcb321010990c3aafee7ace5eba
3,681
py
Python
src/build_tools/tweak_macinstaller_script.py
soleilpqd/mozc
4767ce2f2b6a63f1f139daea6e98bc7a564d5e4e
[ "BSD-3-Clause" ]
1
2017-09-01T20:55:40.000Z
2017-09-01T20:55:40.000Z
src/build_tools/tweak_macinstaller_script.py
soleilpqd/mozc
4767ce2f2b6a63f1f139daea6e98bc7a564d5e4e
[ "BSD-3-Clause" ]
null
null
null
src/build_tools/tweak_macinstaller_script.py
soleilpqd/mozc
4767ce2f2b6a63f1f139daea6e98bc7a564d5e4e
[ "BSD-3-Clause" ]
2
2020-02-12T15:24:27.000Z
2020-02-22T13:36:21.000Z
# -*- coding: utf-8 -*- # Copyright 2010-2016, Google Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this...
33.770642
80
0.717468
9f920e63d95ae75be6ce3f081137e449e922a59b
1,124
py
Python
constants.py
tinshade/lambda_twitter
5c598ca069402fc2661e7288334e987d2734b7f1
[ "Apache-2.0" ]
null
null
null
constants.py
tinshade/lambda_twitter
5c598ca069402fc2661e7288334e987d2734b7f1
[ "Apache-2.0" ]
null
null
null
constants.py
tinshade/lambda_twitter
5c598ca069402fc2661e7288334e987d2734b7f1
[ "Apache-2.0" ]
null
null
null
import os #TWITTER KEYS API_KEY = os.getenv('API_KEY') API_SECRET_KEY = os.getenv('API_SECRET_KEY') ACCESS_TOKEN = os.getenv('ACCESS_TOKEN') ACCESS_TOKEN_SECRET = os.getenv('ACCESS_TOKEN_SECRET') BEARER_TOKEN = os.getenv('BEARER_TOKEN') CLIENT_ID = os.getenv("CLIENT_ID") CLIENT_SECRET = os.getenv("CLIENT_SECRET") #T...
46.833333
589
0.77758
f3e7f0474bf726c3e09779e65fcc71ebe4cd05b6
5,565
py
Python
fanficfare/adapters/adapter_quotevcom.py
AlexRiina/FanFicFare
2cd6f53f766e74052c6ca7ab5c2eabff24f59742
[ "Apache-2.0" ]
3
2020-11-10T16:43:43.000Z
2021-04-09T07:12:31.000Z
fanficfare/adapters/adapter_quotevcom.py
AlexRiina/FanFicFare
2cd6f53f766e74052c6ca7ab5c2eabff24f59742
[ "Apache-2.0" ]
5
2021-11-18T00:20:38.000Z
2021-11-18T00:21:40.000Z
fanficfare/adapters/adapter_quotevcom.py
AlexRiina/FanFicFare
2cd6f53f766e74052c6ca7ab5c2eabff24f59742
[ "Apache-2.0" ]
1
2021-04-08T12:25:09.000Z
2021-04-08T12:25:09.000Z
# -*- coding: utf-8 -*- # Copyright 2019 FanFicFare team # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
36.854305
108
0.615633
c8abbe167173be8d55a08ee4d670a73cfc781c9b
3,029
py
Python
.tox/scenario/lib/python2.7/site-packages/oslo_db/tests/sqlalchemy/test_types.py
bdrich/neutron-lbaas
b4711abfe0207c4fdd5d7fb7ecbf017e753abbfd
[ "Apache-2.0" ]
null
null
null
.tox/scenario/lib/python2.7/site-packages/oslo_db/tests/sqlalchemy/test_types.py
bdrich/neutron-lbaas
b4711abfe0207c4fdd5d7fb7ecbf017e753abbfd
[ "Apache-2.0" ]
null
null
null
.tox/scenario/lib/python2.7/site-packages/oslo_db/tests/sqlalchemy/test_types.py
bdrich/neutron-lbaas
b4711abfe0207c4fdd5d7fb7ecbf017e753abbfd
[ "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...
34.816092
78
0.643447
a4f0ca05702a78635f6f4b1c973557721a6cf014
9,780
py
Python
dhcp_option_util.py
fernandordguez/dhcp_option_encoding
2014461da5f2340aa13252f8931f01c91273fe06
[ "BSD-2-Clause" ]
1
2021-07-27T18:23:07.000Z
2021-07-27T18:23:07.000Z
dhcp_option_util.py
fernandordguez/dhcp_option_encoding
2014461da5f2340aa13252f8931f01c91273fe06
[ "BSD-2-Clause" ]
null
null
null
dhcp_option_util.py
fernandordguez/dhcp_option_encoding
2014461da5f2340aa13252f8931f01c91273fe06
[ "BSD-2-Clause" ]
1
2021-09-21T11:35:10.000Z
2021-09-21T11:35:10.000Z
#!/usr/bin/env python3 # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 """ ------------------------------------------------------------------------ Description: Demonstration script for Hex Encoding/Decoding of DHCP Options using the bloxone module Requirements: bloxone yaml Author: Chris Marriso...
32.065574
147
0.607975
865b47cb38065ce3346ecf0c9724270a49f9a883
1,035
py
Python
tgappcategories/model/__init__.py
axant/tgapp-categories
82be90b92276f06f87f2b0fddf45e310cc70962e
[ "MIT" ]
null
null
null
tgappcategories/model/__init__.py
axant/tgapp-categories
82be90b92276f06f87f2b0fddf45e310cc70962e
[ "MIT" ]
null
null
null
tgappcategories/model/__init__.py
axant/tgapp-categories
82be90b92276f06f87f2b0fddf45e310cc70962e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import logging import tg from tgext.pluggable import PluggableSession log = logging.getLogger('tgappcategories') DBSession = PluggableSession() provider = None Category = None CategoryImage = None def init_model(app_session): DBSession.configure(app_session) def configure_models(): ...
30.441176
82
0.738164
7acf7775781ebdf7a4310452734a7fc73c20a4fe
4,735
py
Python
kedro/contrib/io/bioinformatics/sequence_dataset.py
yhzqb/kedro
619d7f0ccb51895d3bb43d30e3dee9d4d0cebcab
[ "Apache-2.0" ]
1
2021-11-19T05:36:47.000Z
2021-11-19T05:36:47.000Z
kedro/contrib/io/bioinformatics/sequence_dataset.py
yhzqb/kedro
619d7f0ccb51895d3bb43d30e3dee9d4d0cebcab
[ "Apache-2.0" ]
null
null
null
kedro/contrib/io/bioinformatics/sequence_dataset.py
yhzqb/kedro
619d7f0ccb51895d3bb43d30e3dee9d4d0cebcab
[ "Apache-2.0" ]
1
2021-11-19T05:36:49.000Z
2021-11-19T05:36:49.000Z
# Copyright 2018-2019 QuantumBlack Visual Analytics Limited # # 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 # # THE SOFTWARE IS PROVIDED "AS IS"...
42.657658
79
0.691235
b3a4b3f30bda7d3b4d6710b9eae50b90e95ff4b1
187
py
Python
python_basics/data_type/str_test/test1.py
panc-test/python-study
fb172ed4a4f7fb521de9a005cd55115ad63a5b6d
[ "MIT" ]
1
2019-11-06T03:34:50.000Z
2019-11-06T03:34:50.000Z
python_basics/data_type/str_test/test1.py
panc-test/python-study
fb172ed4a4f7fb521de9a005cd55115ad63a5b6d
[ "MIT" ]
null
null
null
python_basics/data_type/str_test/test1.py
panc-test/python-study
fb172ed4a4f7fb521de9a005cd55115ad63a5b6d
[ "MIT" ]
null
null
null
""" str -字符串基本操作 1、创建字符串 2、访问字符串 3、操作字符串 """ # 创建字符串 str0 = '' # 创建空字符串 str1 = 'aaa' # 方法1,使用单引号''创建字符串 str2 = "222" # 方法2,使用双引号""创建字符串 str3 = "'123'" # 方法3,使用单引号''和双引号""创建字符串
14.384615
40
0.572193
44d72c24634cee53dc3d78b3de30d21abfe42590
439
py
Python
backend/chat/migrations/0004_message_imagepath.py
CSCI34284/group4_project
ee87cb5fd0b194fea4f7e2baed2a790c0bc1950f
[ "MIT" ]
1
2019-10-25T14:56:50.000Z
2019-10-25T14:56:50.000Z
backend/chat/migrations/0004_message_imagepath.py
CSCI34284/group4_project
ee87cb5fd0b194fea4f7e2baed2a790c0bc1950f
[ "MIT" ]
8
2020-02-12T03:09:18.000Z
2021-06-10T19:31:18.000Z
backend/chat/migrations/0004_message_imagepath.py
CSCI34284/group4_project
ee87cb5fd0b194fea4f7e2baed2a790c0bc1950f
[ "MIT" ]
2
2019-10-18T18:20:28.000Z
2019-12-05T19:38:57.000Z
# Generated by Django 2.2.7 on 2019-11-26 00:22 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('chat', '0003_auto_20191125_2156'), ] operations = [ migrations.AddField( model_name='message', name='imagePath', ...
21.95
68
0.599089
8aaee8b68238c1755aae8a5a19a6bd40c0d32ad3
100
py
Python
gnosis/xml/pickle/test/test_pass_3.py
LehmRob/od-conv
1ffed758f27e906a1e36f5d137180a1808a82c0a
[ "MIT" ]
3
2018-09-29T14:14:28.000Z
2022-01-05T03:45:50.000Z
library/CanFestival/objdictgen/gnosis/xml/pickle/test/test_pass_3.py
Lembed/STM32duino-gcc-Projects
67829e9cd1388601daf9815b0561da557e0b9f82
[ "MIT" ]
1
2017-06-17T08:15:28.000Z
2017-06-17T08:15:28.000Z
library/CanFestival/objdictgen/gnosis/xml/pickle/test/test_pass_3.py
Lembed/STM32duino-gcc-Projects
67829e9cd1388601daf9815b0561da557e0b9f82
[ "MIT" ]
1
2019-12-08T15:11:55.000Z
2019-12-08T15:11:55.000Z
# used for sanity checking the test harness # a "pass" test that prints something print "** OK **"
20
43
0.7
6d5c0788b272f9f0d07a2876810ea3d43df65858
1,012
py
Python
moduller/osmod-l.py
onselaydin/pytry
314aa50b6f8535e275dc8a2edd0c21637fb5a745
[ "Apache-2.0" ]
null
null
null
moduller/osmod-l.py
onselaydin/pytry
314aa50b6f8535e275dc8a2edd0c21637fb5a745
[ "Apache-2.0" ]
null
null
null
moduller/osmod-l.py
onselaydin/pytry
314aa50b6f8535e275dc8a2edd0c21637fb5a745
[ "Apache-2.0" ]
null
null
null
import os from datetime import datetime for klasör_yolu,klasör_isimleri,dosya_isimler in os.walk("C:/Users/user/Desktop"): for i in klasör_isimleri: if (i.startswith("kr")): print(i) #from datetime import datetime # print(dir(os)) # print(os.getcwd()) # os.chdir...
16.866667
87
0.614625
227d40028e22e683004ae8c8503523cb2e966dc5
400
py
Python
psychopy_tobii_controller/constants.py
Toonwire/infancy_eye_tracking
7b96a9d832f60f83fd5098ada2117ab1d0f56fed
[ "MIT" ]
null
null
null
psychopy_tobii_controller/constants.py
Toonwire/infancy_eye_tracking
7b96a9d832f60f83fd5098ada2117ab1d0f56fed
[ "MIT" ]
null
null
null
psychopy_tobii_controller/constants.py
Toonwire/infancy_eye_tracking
7b96a9d832f60f83fd5098ada2117ab1d0f56fed
[ "MIT" ]
null
null
null
# # Tobii controller for PsychoPy # # author: Hiroyuki Sogo # Distributed under the terms of the GNU General Public License v3 (GPLv3). # TimeStamp = 0 GazePointXLeft = 1 GazePointYLeft = 2 PupilLeft = 3 ValidityLeft = 4 GazePointXRight = 5 GazePointYRight = 6 PupilRight = 7 ValidityRight = 8 GazePointX = 9 GazePoin...
14.814815
75
0.73
d725bf44f1254278448c6888f806ddea635065c4
7,870
py
Python
halotools/mock_observables/pairwise_velocities/tests/test_los_pvd_vs_rp.py
mclaughlin6464/halotools_old
96fbdf5fc156160f19ccd4ae3ee964f831d26fa6
[ "BSD-3-Clause" ]
null
null
null
halotools/mock_observables/pairwise_velocities/tests/test_los_pvd_vs_rp.py
mclaughlin6464/halotools_old
96fbdf5fc156160f19ccd4ae3ee964f831d26fa6
[ "BSD-3-Clause" ]
null
null
null
halotools/mock_observables/pairwise_velocities/tests/test_los_pvd_vs_rp.py
mclaughlin6464/halotools_old
96fbdf5fc156160f19ccd4ae3ee964f831d26fa6
[ "BSD-3-Clause" ]
null
null
null
""" """ from __future__ import absolute_import, division, print_function import numpy as np from astropy.tests.helper import pytest from astropy.utils.misc import NumpyRNGContext from ..los_pvd_vs_rp import los_pvd_vs_rp from ...tests.cf_helpers import generate_locus_of_3d_points __all__ = ('test_los_pvd_vs_rp_corr...
37.47619
88
0.705591
9ffcfb72f5decfec20d2461f4dac5f0c92f898f0
840
py
Python
chapter_8/find_duplicate_str.py
not-sponsored/Guide-to-Data-Structures-and-Algorithms-Exercises
a905298c594a826e558cd1c94876b632db5d4d11
[ "Fair" ]
null
null
null
chapter_8/find_duplicate_str.py
not-sponsored/Guide-to-Data-Structures-and-Algorithms-Exercises
a905298c594a826e558cd1c94876b632db5d4d11
[ "Fair" ]
null
null
null
chapter_8/find_duplicate_str.py
not-sponsored/Guide-to-Data-Structures-and-Algorithms-Exercises
a905298c594a826e558cd1c94876b632db5d4d11
[ "Fair" ]
null
null
null
# Answer to exercise 2 in chapter 8 # # Exercise from: A Common-Sense Guide to Data Structures and Algorithms # Level Up Your Core Programming Skills # by Jay Wengrow and edited by Brian MacDonald from collections import defaultdict import sys def find_duplicate(strings: list): """find the first duplicate string ...
26.25
73
0.710714
5e06ffbfae51d08a310a35671dacaaa4e53635df
629
py
Python
Scripting/Scripts/ParseMultipleFilesRemoveStringCharacters.py
SGIvanov/LodeRunnerMachineLearning
faf26c9560dded715f64a6ca062e30ee273ad7d1
[ "MIT" ]
1
2022-02-04T08:00:02.000Z
2022-02-04T08:00:02.000Z
Scripting/Scripts/ParseMultipleFilesRemoveStringCharacters.py
SGIvanov/LodeRunnerMachineLearning
faf26c9560dded715f64a6ca062e30ee273ad7d1
[ "MIT" ]
null
null
null
Scripting/Scripts/ParseMultipleFilesRemoveStringCharacters.py
SGIvanov/LodeRunnerMachineLearning
faf26c9560dded715f64a6ca062e30ee273ad7d1
[ "MIT" ]
null
null
null
f_inRoot = 'D:\\LastYear\\Licenta\\Scripting\\Levels\\' f_outRoot = 'D:\\LastYear\\Licenta\\Scripting\\LevelsOut\\' f_Name = 'Level' f_outReplacer = 'Out' extension = '.txt' for i in range (1,150): f_in = f_inRoot + f_Name + str(i) + extension f_out = f_outRoot + f_Name + f_outReplacer + str(i) + extension ...
39.3125
67
0.550079
df7ee0dfc9d2d3be4ba97033813307d5d6c9e548
743
py
Python
examples/addons/iterdxf_add_to_new_drawing.py
hh-wu/ezdxf
62509ba39b826ee9b36f19c0a5abad7f3518186a
[ "MIT" ]
null
null
null
examples/addons/iterdxf_add_to_new_drawing.py
hh-wu/ezdxf
62509ba39b826ee9b36f19c0a5abad7f3518186a
[ "MIT" ]
null
null
null
examples/addons/iterdxf_add_to_new_drawing.py
hh-wu/ezdxf
62509ba39b826ee9b36f19c0a5abad7f3518186a
[ "MIT" ]
null
null
null
# Copyright (c) 2020, Manfred Moitzi # License: MIT License import time from pathlib import Path from collections import Counter import ezdxf from ezdxf.addons import iterdxf DIR = Path('~/Desktop/Outbox').expanduser() BIGFILE = Path(r'D:\Source\dxftest\GKB-R2010.dxf') # BIGFILE = Path(r'D:\Source\dxftest\ACAD_R2000.d...
23.21875
53
0.713324
2c24e6dddf13ab51673e7db09708ecf28d0d678a
44
py
Python
test.py
be-panther/Bow
62f5df020d445152e298e76e787cbaa0bb2f7fd8
[ "Apache-2.0" ]
1
2019-03-28T08:21:41.000Z
2019-03-28T08:21:41.000Z
test.py
be-panther/Bow
62f5df020d445152e298e76e787cbaa0bb2f7fd8
[ "Apache-2.0" ]
null
null
null
test.py
be-panther/Bow
62f5df020d445152e298e76e787cbaa0bb2f7fd8
[ "Apache-2.0" ]
null
null
null
print('hello') print('hello') print('hello')
14.666667
14
0.681818
b73e5444b22e41207fb6a9634f93e66a68401bb1
3,309
py
Python
homeassistant/components/demo/alarm_control_panel.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
30,023
2016-04-13T10:17:53.000Z
2020-03-02T12:56:31.000Z
homeassistant/components/demo/alarm_control_panel.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
24,710
2016-04-13T08:27:26.000Z
2020-03-02T12:59:13.000Z
homeassistant/components/demo/alarm_control_panel.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
11,956
2016-04-13T18:42:31.000Z
2020-03-02T09:32:12.000Z
"""Demo platform that has two fake alarm control panels.""" from __future__ import annotations import datetime from homeassistant.components.manual.alarm_control_panel import ManualAlarm from homeassistant.config_entries import ConfigEntry from homeassistant.const import ( CONF_ARMING_TIME, CONF_DELAY_TIME, ...
38.034483
75
0.584769
9ed92299fbee2078ed318bfe38ec85e16fafb716
3,166
py
Python
tests/bugs/core_0629_test.py
FirebirdSQL/firebird-qa
96af2def7f905a06f178e2a80a2c8be4a4b44782
[ "MIT" ]
1
2022-02-05T11:37:13.000Z
2022-02-05T11:37:13.000Z
tests/bugs/core_0629_test.py
FirebirdSQL/firebird-qa
96af2def7f905a06f178e2a80a2c8be4a4b44782
[ "MIT" ]
1
2021-09-03T11:47:00.000Z
2021-09-03T12:42:10.000Z
tests/bugs/core_0629_test.py
FirebirdSQL/firebird-qa
96af2def7f905a06f178e2a80a2c8be4a4b44782
[ "MIT" ]
1
2021-06-30T14:14:16.000Z
2021-06-30T14:14:16.000Z
#coding:utf-8 # # id: bugs.core_0629 # title: Grouping on derived fields processing NULL data kills IB # decription: # tracker_id: CORE-0629 # min_versions: ['2.5.0'] # versions: 2.5 # qmid: None import pytest from firebird.qa import db_factory, isql_act, Action # version: 2.5 # reso...
25.532258
72
0.541377
4905d0aee134a872cb1077d613fc479dbfa7b7c8
5,130
py
Python
dcekit/optimization/fast_opt_svr_hyperparams.py
hkaneko1985/dcek
13d9228b2dc2fd87c2e08a01721e1b1b220f2e19
[ "MIT" ]
25
2019-08-23T12:39:14.000Z
2022-03-30T08:58:15.000Z
dcekit/optimization/fast_opt_svr_hyperparams.py
hkaneko1985/dcek
13d9228b2dc2fd87c2e08a01721e1b1b220f2e19
[ "MIT" ]
2
2022-01-06T11:21:21.000Z
2022-01-18T22:11:12.000Z
dcekit/optimization/fast_opt_svr_hyperparams.py
hkaneko1985/dcek
13d9228b2dc2fd87c2e08a01721e1b1b220f2e19
[ "MIT" ]
16
2019-12-12T08:20:48.000Z
2022-01-26T00:34:31.000Z
# -*- coding: utf-8 -*- %reset -f """ @author: Hiromasa Kaneko """ import sys import numpy as np from sklearn import svm from sklearn.model_selection import GridSearchCV from ..validation import make_midknn_dataset def fast_opt_svr_hyperparams(x, y, cs, epsilons, gammas, validation_method, parameter): ...
41.04
125
0.62924
b2fe2fba146d070100d267a8377e0fe877d193f9
541
py
Python
lodes_downloader/__main__.py
karstendick/lodes-downloader
8be425050a92fd74b0d1babf912a7b6121032a0d
[ "MIT" ]
null
null
null
lodes_downloader/__main__.py
karstendick/lodes-downloader
8be425050a92fd74b0d1babf912a7b6121032a0d
[ "MIT" ]
null
null
null
lodes_downloader/__main__.py
karstendick/lodes-downloader
8be425050a92fd74b0d1babf912a7b6121032a0d
[ "MIT" ]
null
null
null
import requests from bs4 import BeautifulSoup import wget # subdirectories = ['rac', 'wac', 'od'] PA_ROOT = 'https://lehd.ces.census.gov/data/lodes/LODES7/pa/wac/' def main(): pa_root_response = requests.get(PA_ROOT) pa_root_html = pa_root_response.text soup = BeautifulSoup(pa_root_html, 'html.parser')...
21.64
65
0.643253
4f85b45925a536d6f3223a9af7a9ce2306b9933e
2,365
py
Python
aioflo/water.py
dmulcahey/aioflo
0c7e2befc1bc38cd4274f5e75627e4b8b516a93a
[ "MIT" ]
9
2020-05-21T02:31:00.000Z
2021-10-21T21:24:06.000Z
aioflo/water.py
dmulcahey/aioflo
0c7e2befc1bc38cd4274f5e75627e4b8b516a93a
[ "MIT" ]
48
2020-01-16T17:22:47.000Z
2022-03-01T18:06:20.000Z
aioflo/water.py
dmulcahey/aioflo
0c7e2befc1bc38cd4274f5e75627e4b8b516a93a
[ "MIT" ]
1
2020-07-24T11:41:52.000Z
2020-07-24T11:41:52.000Z
"""Define /water endpoints.""" from datetime import datetime from typing import Awaitable, Callable from .const import API_V2_BASE from .util import raise_on_invalid_argument INTERVAL_DAILY = "1d" INTERVAL_HOURLY = "1h" INTERVAL_MONTHLY = "1m" INTERVALS = set([INTERVAL_DAILY, INTERVAL_HOURLY, INTERVAL_MONTHLY]) cla...
30.320513
68
0.577167
b921e1bfe7718177ab6eacbf84da7a882943a933
23,368
py
Python
src/c3s_sm/interface.py
pstradio/c3s_sm
83b8c833a54e3decd47efbd980806bb3ed9f9b60
[ "MIT" ]
null
null
null
src/c3s_sm/interface.py
pstradio/c3s_sm
83b8c833a54e3decd47efbd980806bb3ed9f9b60
[ "MIT" ]
7
2018-11-20T13:56:39.000Z
2020-07-03T19:18:51.000Z
src/c3s_sm/interface.py
pstradio/c3s_sm
83b8c833a54e3decd47efbd980806bb3ed9f9b60
[ "MIT" ]
6
2018-10-19T12:20:16.000Z
2022-02-02T08:48:43.000Z
# The MIT License (MIT) # # Copyright (c) 2018, TU Wien # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, ...
38.561056
93
0.563848
21edbb7663115c4110d8325ea4a7afa6b96c5732
5,056
py
Python
modules/sr/robot/vision/vectors.py
13ros27/competition-simulator
4dfea0e92c12fa9e9656ce273db3d240aee34bc4
[ "MIT" ]
4
2020-06-12T18:00:45.000Z
2021-02-17T14:16:59.000Z
modules/sr/robot/vision/vectors.py
13ros27/competition-simulator
4dfea0e92c12fa9e9656ce273db3d240aee34bc4
[ "MIT" ]
158
2020-04-29T17:59:31.000Z
2021-11-13T00:00:21.000Z
modules/sr/robot/vision/vectors.py
13ros27/competition-simulator
4dfea0e92c12fa9e9656ce273db3d240aee34bc4
[ "MIT" ]
10
2020-06-12T16:19:46.000Z
2021-07-07T21:06:48.000Z
""" Vector utilities. """ import math from typing import Union, Iterable, overload # between vectors considered the same DEGREES_TOLERANCE = 10 class Vector: """ An arbitrary length vector of floating point values. In addition to the usual Python niceties, this supports scalar multiplication & divi...
27.478261
94
0.598299
a38abf90f03f41677b395b672f25055bbeb7ffd5
8,783
py
Python
ci/infra/testrunner/platforms/terraform.py
mjura/skuba
8794e47265056e980f884846187aae1ec8455b5b
[ "Apache-2.0" ]
null
null
null
ci/infra/testrunner/platforms/terraform.py
mjura/skuba
8794e47265056e980f884846187aae1ec8455b5b
[ "Apache-2.0" ]
null
null
null
ci/infra/testrunner/platforms/terraform.py
mjura/skuba
8794e47265056e980f884846187aae1ec8455b5b
[ "Apache-2.0" ]
null
null
null
import hcl import json import os import subprocess from timeout_decorator import timeout from utils import (Format, step, Utils) class Terraform: def __init__(self, conf, platform): self.conf = conf self.utils = Utils(conf) self.tfdir = os.path.join(self.conf.terraform.tfdir, platform) ...
36.595833
106
0.580439
6ae2bfe9690305fe8239169ce4e1cac0913037a7
3,215
py
Python
testaskjunoace.py
jpvelsamy/hotdog
df45cdc0b9e6abfecd16a43f75f1671e51cbc47c
[ "Apache-2.0" ]
null
null
null
testaskjunoace.py
jpvelsamy/hotdog
df45cdc0b9e6abfecd16a43f75f1671e51cbc47c
[ "Apache-2.0" ]
null
null
null
testaskjunoace.py
jpvelsamy/hotdog
df45cdc0b9e6abfecd16a43f75f1671e51cbc47c
[ "Apache-2.0" ]
null
null
null
import logging import numpy as np import pandas as pd import sklearn from sklearn.model_selection import train_test_split from tensorflow import keras from tensorflow.keras import layers logger = logging.getLogger("ACE") class TestAskJunoACE: def __init__(self): self.k_fold_count = 4 self.num_ep...
44.652778
119
0.625505
5bc5504fb354eddcdf7d5fb926fdfa7bb14e61a1
3,207
py
Python
lehmer.py
mateuszchudyk/lehmer
89b90d63afb3f7fef5525988f3982315288dfc0c
[ "MIT" ]
null
null
null
lehmer.py
mateuszchudyk/lehmer
89b90d63afb3f7fef5525988f3982315288dfc0c
[ "MIT" ]
null
null
null
lehmer.py
mateuszchudyk/lehmer
89b90d63afb3f7fef5525988f3982315288dfc0c
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Implementation of Lehmer Code. Permutation - an array of integers. For the given interval, the array has to contains all numbers for the interval and each of the number has to appear only once. GitHub: https://github.com/mateuszchudyk/lehmer """ __author__ = "Mateusz Chudyk" __license__ = "...
30.542857
103
0.569379
48719d9d0909166a536f93dfda26f85c6df73d8a
559
py
Python
packs/mistral/actions/get_results/get_task_results.py
jonico/st2contrib
149c9c553f24360d91a14fef7ea6146707de75fd
[ "Apache-2.0" ]
164
2015-01-17T16:08:33.000Z
2021-08-03T02:34:07.000Z
packs/mistral/actions/get_results/get_task_results.py
jonico/st2contrib
149c9c553f24360d91a14fef7ea6146707de75fd
[ "Apache-2.0" ]
442
2015-01-01T11:19:01.000Z
2017-09-06T23:26:17.000Z
packs/mistral/actions/get_results/get_task_results.py
jonico/st2contrib
149c9c553f24360d91a14fef7ea6146707de75fd
[ "Apache-2.0" ]
202
2015-01-13T00:37:40.000Z
2020-11-07T11:30:10.000Z
import requests from st2actions.runners.pythonrunner import Action class TaskResults(Action): TASKS_BASE_URL = None def run(self, task_id): resp = requests.get(self._get_tasks_url(task_id)) return resp.json() def _get_tasks_url(self, task_id): if not TaskResults.TASKS_BASE_URL: ...
26.619048
57
0.65653
3203eff6b673aa71a082ce6922bd9ba5f13f42ba
15,272
py
Python
uhd_restpy/testplatform/sessions/ixnetwork/globals/protocolstack/egtps5s8sgwglobals/egtps5s8sgwglobals.py
Vibaswan/ixnetwork_restpy
239fedc7050890746cbabd71ea1e91c68d9e5cad
[ "MIT" ]
null
null
null
uhd_restpy/testplatform/sessions/ixnetwork/globals/protocolstack/egtps5s8sgwglobals/egtps5s8sgwglobals.py
Vibaswan/ixnetwork_restpy
239fedc7050890746cbabd71ea1e91c68d9e5cad
[ "MIT" ]
null
null
null
uhd_restpy/testplatform/sessions/ixnetwork/globals/protocolstack/egtps5s8sgwglobals/egtps5s8sgwglobals.py
Vibaswan/ixnetwork_restpy
239fedc7050890746cbabd71ea1e91c68d9e5cad
[ "MIT" ]
null
null
null
# MIT LICENSE # # Copyright 1997 - 2020 by IXIA Keysight # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights to use, copy, modify,...
42.071625
378
0.690479
85f5630f9eb393f3f0c95f1f846853bbe04df7ca
3,629
py
Python
raiden_contracts/tests/test_token.py
loredanacirstea/raiden-contracts
1510812e54dc0e98583d17b5a8e629a3119751ac
[ "MIT" ]
null
null
null
raiden_contracts/tests/test_token.py
loredanacirstea/raiden-contracts
1510812e54dc0e98583d17b5a8e629a3119751ac
[ "MIT" ]
null
null
null
raiden_contracts/tests/test_token.py
loredanacirstea/raiden-contracts
1510812e54dc0e98583d17b5a8e629a3119751ac
[ "MIT" ]
null
null
null
import pytest from eth_tester.exceptions import TransactionFailed from raiden_contracts.constants import ( CONTRACT_HUMAN_STANDARD_TOKEN, CONTRACT_CUSTOM_TOKEN, ) from raiden_contracts.utils.bytecode import runtime_hexcode def test_token_mint(web3, custom_token, get_accounts): """ Use the mint() function ...
42.197674
89
0.736842
85c0d18fcf111ef3fa59c710b7e2f1c9b1da1eb9
329
py
Python
tests/system/mqttbeat.py
plinde/mqttbeat
64e3bf19a45686a5cc6aecae58d9d2e140e7c915
[ "Apache-2.0" ]
19
2017-07-20T11:39:44.000Z
2021-11-08T11:18:05.000Z
tests/system/mqttbeat.py
plinde/mqttbeat
64e3bf19a45686a5cc6aecae58d9d2e140e7c915
[ "Apache-2.0" ]
8
2017-07-20T21:13:17.000Z
2020-01-10T08:08:34.000Z
tests/system/mqttbeat.py
plinde/mqttbeat
64e3bf19a45686a5cc6aecae58d9d2e140e7c915
[ "Apache-2.0" ]
16
2017-08-19T14:58:18.000Z
2022-01-20T10:09:06.000Z
import sys sys.path.append('../../vendor/github.com/elastic/beats/libbeat/tests/system') from beat.beat import TestCase class BaseTest(TestCase): @classmethod def setUpClass(self): self.beat_name = "mqttbeat" self.build_path = "../../build/system-tests/" self.beat_path = "../../mqttbe...
25.307692
77
0.662614
aa85d983c84fed61169afdfabd938f86c232db65
512
py
Python
discord_bot/commands/silent_close.py
ehefk/djqueue
3d3cd55bd4d66c16bdbb20ad87eca4626ca7c794
[ "Unlicense" ]
1
2021-04-30T03:26:58.000Z
2021-04-30T03:26:58.000Z
discord_bot/commands/silent_close.py
ehefk/djqueue
3d3cd55bd4d66c16bdbb20ad87eca4626ca7c794
[ "Unlicense" ]
null
null
null
discord_bot/commands/silent_close.py
ehefk/djqueue
3d3cd55bd4d66c16bdbb20ad87eca4626ca7c794
[ "Unlicense" ]
null
null
null
async def Main(self, message, command, arguments): channel = await self.fetch_channel(self.secrets["PublicChannel"]) queue = self.mongo.db["QueueHistory"].find_one({'$or': [{"Status": "Open"}, {"Status": "Locked"}]}) if queue: queue["Status"] = "Closed" self.mongo.db["QueueHistory"].replace...
42.666667
109
0.621094
b903400301ee5aae75e6a47ab962cca16940e2b0
2,127
py
Python
tests/argparse/test_advanced.py
FredHappyface/Python.Cli2Gui
688b2b552a22dfbaec4199bdd47eeef6d8649274
[ "MIT" ]
2
2020-03-13T15:12:27.000Z
2020-03-19T05:06:10.000Z
tests/argparse/test_advanced.py
FredHappyface/Python.Cli2Gui
688b2b552a22dfbaec4199bdd47eeef6d8649274
[ "MIT" ]
1
2020-03-13T15:16:21.000Z
2020-03-16T10:33:01.000Z
tests/argparse/test_advanced.py
FredHappyface/Python.Cli2Gui
688b2b552a22dfbaec4199bdd47eeef6d8649274
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """Tests an advanced parser """ from __future__ import annotations import argparse import sys from pathlib import Path THISDIR = str(Path(__file__).resolve().parent) sys.path.insert(0, str(Path(THISDIR).parent.parent)) from cli2gui import Cli2Gui def handle(args): """Handle the args.""" pr...
27.269231
97
0.715092
1c6cc51d501d7a86f15c93d5717a1224217cfa09
2,067
py
Python
flask/lib/python3.4/site-packages/setuptools/command/install_scripts.py
ddayguerrero/blogme
e6ee6a47310c382648eefd96634630c3bceb864f
[ "MIT" ]
7
2017-04-26T12:28:22.000Z
2021-02-09T18:59:50.000Z
flask/lib/python3.4/site-packages/setuptools/command/install_scripts.py
ddayguerrero/blogme
e6ee6a47310c382648eefd96634630c3bceb864f
[ "MIT" ]
4
2017-10-24T22:44:01.000Z
2017-10-24T22:44:19.000Z
flask/lib/python3.4/site-packages/setuptools/command/install_scripts.py
ddayguerrero/blogme
e6ee6a47310c382648eefd96634630c3bceb864f
[ "MIT" ]
8
2017-06-01T08:42:16.000Z
2020-07-23T12:30:19.000Z
from distutils.command.install_scripts import install_scripts \ as _install_scripts from pkg_resources import Distribution, PathMetadata, ensure_directory import os from distutils import log class install_scripts(_install_scripts): """Do normal script install, plus any egg_info wrapper scripts""" def ini...
38.277778
77
0.662796
41bd1529eba4cfaf343cc662afcbf44edcde3557
1,248
py
Python
setup.py
captain-kark/module_resources
d85453ff4f5022127874a5842449d95bb5eda234
[ "MIT" ]
null
null
null
setup.py
captain-kark/module_resources
d85453ff4f5022127874a5842449d95bb5eda234
[ "MIT" ]
8
2019-07-24T11:18:36.000Z
2019-08-05T06:43:32.000Z
setup.py
captain-kark/module_resources
d85453ff4f5022127874a5842449d95bb5eda234
[ "MIT" ]
1
2021-07-18T06:30:32.000Z
2021-07-18T06:30:32.000Z
import os import pathlib import pkg_resources from setuptools import setup # this script sets the version number in CI builds, and also at install time by the user VERSION = None TRAVIS_TAG, TRAVIS_BUILD_NUMBER = map(os.getenv, ('TRAVIS_TAG', 'TRAVIS_BUILD_NUMBER')) if not TRAVIS_TAG and not TRAVIS_BUILD_NUMBER: #...
34.666667
95
0.710737
582e29de2a1dabf05ac552a2ed61a7f75c720a02
6,276
py
Python
GR/swsh.py
paralab/SymPyGR
3aa4164a64773b9015b83744cd104550ae465e8a
[ "MIT" ]
7
2019-08-29T20:41:39.000Z
2022-03-26T17:47:16.000Z
GR/swsh.py
paralab/SymPyGR
3aa4164a64773b9015b83744cd104550ae465e8a
[ "MIT" ]
2
2019-02-01T22:20:48.000Z
2019-05-24T20:39:33.000Z
GR/swsh.py
paralab/SymPyGR
3aa4164a64773b9015b83744cd104550ae465e8a
[ "MIT" ]
1
2018-12-18T19:36:13.000Z
2018-12-18T19:36:13.000Z
########################################################################## # module: swsh (spin weighted sperical harmonic) # author: Milinda Fernando # email: milinda@cs.utah.edu # python module to generate code for far-field energy ratiation extraction (Gravitational Waves). # (c) 2016 University of Utah, All rights...
39.225
294
0.570427
ee6d9b8eabe57c2fc61c46d4acb37c8ba4c03429
429
py
Python
1_Fundamental Python Programming/1_1_Python Fundamentals/IDE.py
NishkarshRaj/Python-Programming
29506d8d7ed80730ce5cafd5945f83c81f003e68
[ "Unlicense" ]
6
2019-07-15T14:54:52.000Z
2021-11-26T22:34:44.000Z
1_Fundamental Python Programming/1_1_Python Fundamentals/IDE.py
NishkarshRaj/Python-Programming
29506d8d7ed80730ce5cafd5945f83c81f003e68
[ "Unlicense" ]
1
2019-07-15T14:53:35.000Z
2019-07-15T14:53:35.000Z
1_Fundamental Python Programming/1_1_Python Fundamentals/IDE.py
NishkarshRaj/Python-Programming
29506d8d7ed80730ce5cafd5945f83c81f003e68
[ "Unlicense" ]
2
2019-08-05T01:30:10.000Z
2020-05-04T18:36:46.000Z
4*5; ''' Works on normal IDE but not here but wont give any interpretation error''' 41-31; print("Print Statement"); print("It has inbuilt linefeed by default, we will learn how to override the default print configurations later"); print("print","statement","has","inbuilt","spaces","within the comma separated strings")...
61.285714
114
0.752914
8ffbe8b375d251c87050b3a45c6b9adc9fa6094c
91
py
Python
openFlow/ofptHello.py
wsharif/thesis
96a9bd6c86ed027c3eeee231b2eae1c14394d728
[ "MIT" ]
null
null
null
openFlow/ofptHello.py
wsharif/thesis
96a9bd6c86ed027c3eeee231b2eae1c14394d728
[ "MIT" ]
null
null
null
openFlow/ofptHello.py
wsharif/thesis
96a9bd6c86ed027c3eeee231b2eae1c14394d728
[ "MIT" ]
null
null
null
from ofptHeader import ofptHeader def ofptHello(): header = ofptHeader(0) return header
15.166667
33
0.78022
b14f3b141e7f3a9d51db9ef15f931ecef8bcf99b
4,189
py
Python
ML/Pytorch/more_advanced/image_captioning/get_loader.py
xuyannus/Machine-Learning-Collection
6d5dcd18d4e40f90e77355d56a2902e4c617ecbe
[ "MIT" ]
3,094
2020-09-20T04:34:31.000Z
2022-03-31T23:59:46.000Z
ML/Pytorch/more_advanced/image_captioning/get_loader.py
xkhainguyen/Machine-Learning-Collection
425d196e9477dbdbbd7cc0d19d29297571746ab5
[ "MIT" ]
79
2020-09-24T08:54:17.000Z
2022-03-30T14:45:08.000Z
ML/Pytorch/more_advanced/image_captioning/get_loader.py
xkhainguyen/Machine-Learning-Collection
425d196e9477dbdbbd7cc0d19d29297571746ab5
[ "MIT" ]
1,529
2020-09-20T16:21:21.000Z
2022-03-31T21:16:25.000Z
import os # when loading file paths import pandas as pd # for lookup in annotation file import spacy # for tokenizer import torch from torch.nn.utils.rnn import pad_sequence # pad batch from torch.utils.data import DataLoader, Dataset from PIL import Image # Load img import torchvision.transforms as transforms #...
29.293706
86
0.633087
ab0392aaed0b659e2c4cf92b1c4740f930fcbd14
4,415
py
Python
docs/examples/use_cases/tensorflow/efficientdet/dataset/create_pascal_tfrecord_test.py
lbhm/DALI
d478d768c55069351a78d6bdcebed7632ca21ecb
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
docs/examples/use_cases/tensorflow/efficientdet/dataset/create_pascal_tfrecord_test.py
lbhm/DALI
d478d768c55069351a78d6bdcebed7632ca21ecb
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
docs/examples/use_cases/tensorflow/efficientdet/dataset/create_pascal_tfrecord_test.py
lbhm/DALI
d478d768c55069351a78d6bdcebed7632ca21ecb
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright 2020 Google Research. 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...
34.492188
87
0.574858
7908bdf8227c02f4c6de44c83bc393fb992675d5
1,507
py
Python
model-optimizer/extensions/middle/UselessMerge.py
undeadinu/dldt
fbc7a4a710c24def8ab199926a7da90a0394b87d
[ "Apache-2.0" ]
1
2019-03-22T06:35:55.000Z
2019-03-22T06:35:55.000Z
model-optimizer/extensions/middle/UselessMerge.py
undeadinu/dldt
fbc7a4a710c24def8ab199926a7da90a0394b87d
[ "Apache-2.0" ]
null
null
null
model-optimizer/extensions/middle/UselessMerge.py
undeadinu/dldt
fbc7a4a710c24def8ab199926a7da90a0394b87d
[ "Apache-2.0" ]
1
2019-06-11T06:20:42.000Z
2019-06-11T06:20:42.000Z
""" Copyright (c) 2018 Intel Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in wri...
33.488889
83
0.68215
595bc00f65793d4c0363b32b2da4e533253543a5
832
py
Python
src/build/lib/binance_f/model/balancev2.py
Han1018/Cryptocurrency-Automated-Trading
52a5b6d15eb9b2a3a69cc53bd159f6eec073614d
[ "MIT" ]
1
2021-04-12T09:15:01.000Z
2021-04-12T09:15:01.000Z
binance_f/model/balancev2.py
rmdpadula/Binance_Futures
1297a0a0be7b396e5a3980c8ae68f18ca492cb9a
[ "MIT" ]
1
2021-07-20T15:25:11.000Z
2021-07-20T15:25:11.000Z
binance_f/model/balancev2.py
rmdpadula/Binance_Futures
1297a0a0be7b396e5a3980c8ae68f18ca492cb9a
[ "MIT" ]
1
2021-12-14T02:39:04.000Z
2021-12-14T02:39:04.000Z
class BalanceV2: def __init__(self): self.accountAlias = "" self.asset = "" self.balance = 0.0 self.crossWalletBalance = 0.0 self.crossUnPnl = 0.0 self.availableBalance = 0.0 self.maxWithdrawAmount = 0.0 @staticmethod def json_parse(json_data): ...
36.173913
77
0.664663
86013e17b5fc0e6e507b1eeb106e135d86a1dcb7
1,602
py
Python
setup.py
Dafvid/klaus
beea95327245bf6465eb824b9d46c5371d36d885
[ "ISC" ]
null
null
null
setup.py
Dafvid/klaus
beea95327245bf6465eb824b9d46c5371d36d885
[ "ISC" ]
null
null
null
setup.py
Dafvid/klaus
beea95327245bf6465eb824b9d46c5371d36d885
[ "ISC" ]
null
null
null
# encoding: utf-8 import glob from setuptools import setup def install_data_files_hack(): # This is a clever hack to circumvent distutil's data_files # policy "install once, find never". Definitely a TODO! # -- https://groups.google.com/group/comp.lang.python/msg/2105ee4d9e8042cb from distutils.comma...
30.226415
78
0.655431
a0d964dc6d5fc6e3f52f765dbceca52e233d36a8
597
py
Python
chevah/compat/tests/__init__.py
chevah/compat
d22e5f551a628f8a1652c9f2eea306e17930cb8f
[ "BSD-3-Clause" ]
5
2016-12-03T22:54:50.000Z
2021-11-17T11:17:39.000Z
chevah/compat/tests/__init__.py
chevah/compat
d22e5f551a628f8a1652c9f2eea306e17930cb8f
[ "BSD-3-Clause" ]
76
2015-01-22T16:00:31.000Z
2022-02-09T22:13:34.000Z
chevah/compat/tests/__init__.py
chevah/compat
d22e5f551a628f8a1652c9f2eea306e17930cb8f
[ "BSD-3-Clause" ]
1
2016-12-10T15:57:31.000Z
2016-12-10T15:57:31.000Z
# Copyright (c) 2011 Adi Roiban. # See LICENSE for details. """ Tests for the system compatibility module. """ from __future__ import print_function from __future__ import division from __future__ import absolute_import from chevah.compat.testing import mk def setup_package(): """ Called before running all te...
22.111111
42
0.720268
8dbc651d964fbed4da7597097fa53c3723132958
9,756
py
Python
read.py
OneStone2/mcmc_growth
85180b132311affc18a72a3fb717cb26ebcf614a
[ "MIT" ]
2
2016-07-01T13:29:16.000Z
2016-07-06T14:30:30.000Z
read.py
OneStone2/mcmc_growth
85180b132311affc18a72a3fb717cb26ebcf614a
[ "MIT" ]
null
null
null
read.py
OneStone2/mcmc_growth
85180b132311affc18a72a3fb717cb26ebcf614a
[ "MIT" ]
null
null
null
""" Contains utilities to read and clean FIA files """ from pandas import DataFrame, read_csv import pandas as pd from collections import defaultdict import numpy as np import math import bisect import urllib2 import os import sys def chunk_report(bytes_so_far, chunk_size, total_size): percent = float(bytes_so_far)...
32.41196
122
0.582718
d0f8b9b18c5924b91b28e55a186ebdbca0b8e241
632
py
Python
venv/bin/rst2pseudoxml.py
Nitrokey/nitrokey-app2
ab66bbceb854e1f18987b0331528e86e3e7ff702
[ "Apache-2.0" ]
1
2021-11-23T12:54:35.000Z
2021-11-23T12:54:35.000Z
venv/bin/rst2pseudoxml.py
Nitrokey/nitrokey-app2
ab66bbceb854e1f18987b0331528e86e3e7ff702
[ "Apache-2.0" ]
null
null
null
venv/bin/rst2pseudoxml.py
Nitrokey/nitrokey-app2
ab66bbceb854e1f18987b0331528e86e3e7ff702
[ "Apache-2.0" ]
null
null
null
#!/home/niklas/git/nitrokey-app2/venv/bin/python3 # $Id: rst2pseudoxml.py 4564 2006-05-21 20:44:42Z wiemann $ # Author: David Goodger <goodger@python.org> # Copyright: This module has been placed in the public domain. """ A minimal front end to the Docutils Publisher, producing pseudo-XML. """ try: import locale...
26.333333
73
0.742089
23f9e7bd21dae11ff92798249fd128390ae9a931
10,184
py
Python
xdfile/xwordinfo2xd.py
jmviz/xd
f905e5c61b2835073b19cc3fa0d6917432fa7ece
[ "MIT" ]
179
2016-03-05T03:14:56.000Z
2022-02-12T22:48:55.000Z
xdfile/xwordinfo2xd.py
jmviz/xd
f905e5c61b2835073b19cc3fa0d6917432fa7ece
[ "MIT" ]
24
2016-02-14T07:43:42.000Z
2021-12-14T01:09:54.000Z
xdfile/xwordinfo2xd.py
jmviz/xd
f905e5c61b2835073b19cc3fa0d6917432fa7ece
[ "MIT" ]
25
2016-02-19T20:35:03.000Z
2022-01-31T09:15:44.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import re from lxml import html, etree from datetime import datetime from xdfile.utils import info, debug, error import xdfile SPLIT_REBUS_TITLES = "CRYPTOCROSSWORD TIC-TAC-TOE".split() class XWordInfoParseError(Exception): pass # content is unicode() def parse_xwo...
38.870229
122
0.534564
27158d062a9d07a0582cefd29bafac243d1e9d25
218
py
Python
example/jam_mei_academia/cadastros_basicos/views.py
PqES/forkuptool
ae7caf33642245618ff59cdc6ff7eb94ea125034
[ "MIT" ]
null
null
null
example/jam_mei_academia/cadastros_basicos/views.py
PqES/forkuptool
ae7caf33642245618ff59cdc6ff7eb94ea125034
[ "MIT" ]
null
null
null
example/jam_mei_academia/cadastros_basicos/views.py
PqES/forkuptool
ae7caf33642245618ff59cdc6ff7eb94ea125034
[ "MIT" ]
1
2021-03-17T17:25:37.000Z
2021-03-17T17:25:37.000Z
from django.http import HttpResponse from django.shortcuts import render def index(request): #return HttpResponse("Teste de configuração da aplicação - apostila página 57.") return render(request,"admin/base.html")
31.142857
81
0.798165
74095717bc6150279d16cbef4bd79458118d40d8
21,213
py
Python
pettingzoo/sisl/pursuit/pursuit_base.py
MarioJayakumar/PettingZoo
0673d44c33ae1843a773babf5e6595baf8214664
[ "MIT" ]
null
null
null
pettingzoo/sisl/pursuit/pursuit_base.py
MarioJayakumar/PettingZoo
0673d44c33ae1843a773babf5e6595baf8214664
[ "MIT" ]
null
null
null
pettingzoo/sisl/pursuit/pursuit_base.py
MarioJayakumar/PettingZoo
0673d44c33ae1843a773babf5e6595baf8214664
[ "MIT" ]
null
null
null
import glob import os from os.path import join from subprocess import call import numpy as np from gym import spaces from gym.utils import seeding import pygame from .utils import agent_utils from .utils.agent_layer import AgentLayer from .utils.controllers import RandomPolicy, SingleActionPolicy from .utils import...
39.576493
115
0.582756
f1f30b400c4ce4453f354406633f769b52dd0b69
292
py
Python
textblob/__init__.py
casatir/TextBlob
6c5e92efa4fdb9aa9425338a0c0fd120d4521dda
[ "MIT" ]
1
2021-12-09T18:37:24.000Z
2021-12-09T18:37:24.000Z
textblob/__init__.py
Neucro/TextBlob
6c5e92efa4fdb9aa9425338a0c0fd120d4521dda
[ "MIT" ]
1
2021-03-26T00:30:46.000Z
2021-03-26T00:30:46.000Z
textblob/__init__.py
Neucro/TextBlob
6c5e92efa4fdb9aa9425338a0c0fd120d4521dda
[ "MIT" ]
1
2021-11-03T12:47:13.000Z
2021-11-03T12:47:13.000Z
import os from .blob import TextBlob, Word, Sentence, Blobber, WordList __version__ = '0.16.0' __license__ = 'MIT' __author__ = 'Steven Loria' PACKAGE_DIR = os.path.dirname(os.path.abspath(__file__)) __all__ = [ 'TextBlob', 'Word', 'Sentence', 'Blobber', 'WordList', ]
17.176471
61
0.664384
e51461c5238d7e3c6df7073591f94c267d552f82
1,577
py
Python
packages/tests/stuff/data/valid_gppi/odahuflow_model/entrypoint.py
odahu/odahuflow
58c3220a266a61bb893cf79c4b994569e3445097
[ "ECL-2.0", "Apache-2.0" ]
12
2020-10-13T15:39:52.000Z
2021-10-11T17:13:42.000Z
packages/tests/stuff/data/valid_gppi/odahuflow_model/entrypoint.py
odahu/odahuflow
58c3220a266a61bb893cf79c4b994569e3445097
[ "ECL-2.0", "Apache-2.0" ]
475
2019-11-18T12:40:47.000Z
2022-03-29T21:17:38.000Z
packages/tests/stuff/data/valid_gppi/odahuflow_model/entrypoint.py
odahu/odahuflow
58c3220a266a61bb893cf79c4b994569e3445097
[ "ECL-2.0", "Apache-2.0" ]
4
2020-02-25T11:26:10.000Z
2021-03-10T12:01:00.000Z
import functools from typing import Tuple, List, Dict, Any, Optional, Type def init() -> str: """ Initialize model and return prediction type :return: prediction type (matrix or objects) """ print('init') return 'matrix' def predict_on_matrix(input_matrix: List[List[Any]], provided_columns...
23.537313
106
0.566265
653d22535e43b40381bb3b3add869cfe9c35c8b5
2,295
py
Python
sfmutils/result.py
NGTmeaty/sfm-utils
47ac6b8a894f5b02d947d76c74aa61d59cb5d48d
[ "MIT" ]
2
2016-05-08T06:44:13.000Z
2016-05-16T15:07:22.000Z
sfmutils/result.py
NGTmeaty/sfm-utils
47ac6b8a894f5b02d947d76c74aa61d59cb5d48d
[ "MIT" ]
13
2015-12-02T22:00:22.000Z
2021-10-29T21:01:01.000Z
sfmutils/result.py
NGTmeaty/sfm-utils
47ac6b8a894f5b02d947d76c74aa61d59cb5d48d
[ "MIT" ]
4
2020-05-27T05:05:05.000Z
2021-02-12T22:28:47.000Z
STATUS_SUCCESS = "completed success" STATUS_FAILURE = "completed failure" STATUS_RUNNING = "running" STATUS_PAUSED = "paused" STATUS_STOPPING = "stopping" class BaseResult: """ Keeps track of results. Subclasses should implement _result_name and _addl_str. """ def __init__(self): self.suc...
26.686047
81
0.581264
a7089055bfd4f866bcd8ebdbef4eb0f53696fc61
5,609
py
Python
waveshare-driver/lib/waveshare_epd/epd4in2bc.py
jameslawler/pivsmp
4c16f416d72b155facb6cad4dcf2e7f012bd9495
[ "MIT" ]
1
2021-10-29T21:08:29.000Z
2021-10-29T21:08:29.000Z
waveshare-driver/lib/waveshare_epd/epd4in2bc.py
jameslawler/pivsmp
4c16f416d72b155facb6cad4dcf2e7f012bd9495
[ "MIT" ]
null
null
null
waveshare-driver/lib/waveshare_epd/epd4in2bc.py
jameslawler/pivsmp
4c16f416d72b155facb6cad4dcf2e7f012bd9495
[ "MIT" ]
null
null
null
# ***************************************************************************** # * | File : epd4in2bc.py # * | Author : Waveshare team # * | Function : Electronic paper driver # * | Info : # *---------------- # * | This version: V4.0 # * | Date : 2019-06-20 # # | Info ...
37.644295
85
0.567481
0f86b8fab39ab1da368cd89ef2639133c236e8b1
400
py
Python
costar_task_plan/python/costar_task_plan/robotics/tom/task.py
cpaxton/costar_plan
be5c12f9d0e9d7078e6a5c283d3be059e7f3d040
[ "Apache-2.0" ]
66
2018-10-31T04:58:53.000Z
2022-03-17T02:32:25.000Z
costar_task_plan/python/costar_task_plan/robotics/tom/task.py
cpaxton/costar_plan
be5c12f9d0e9d7078e6a5c283d3be059e7f3d040
[ "Apache-2.0" ]
8
2018-10-23T21:19:25.000Z
2018-12-03T02:08:41.000Z
costar_task_plan/python/costar_task_plan/robotics/tom/task.py
cpaxton/costar_plan
be5c12f9d0e9d7078e6a5c283d3be059e7f3d040
[ "Apache-2.0" ]
25
2018-10-19T00:54:17.000Z
2021-10-10T08:28:15.000Z
# Create the task model for the oranges task. # This will create a number of oranges and instantiate all the appropriate # DMP option distributions with pre and post condiitons, so that we can # test things out in the toy sim. def GetOrangesTask(num_oranges=1): if num_oranges < 1: raise RuntimeError('Must have ...
28.571429
74
0.73
6ce85e9179ca177dae7ddd1037384bfac7b1b686
6,366
py
Python
bundlebuilder/models/entity.py
CiscoSecurity/tr-05-ctim-bundle-builder
fe4f1e877112aebc5f79ec04b6c74dc9e9f0113a
[ "MIT" ]
3
2019-12-11T00:21:26.000Z
2020-11-02T18:16:36.000Z
bundlebuilder/models/entity.py
CiscoSecurity/tr-05-ctim-bundle-builder
fe4f1e877112aebc5f79ec04b6c74dc9e9f0113a
[ "MIT" ]
null
null
null
bundlebuilder/models/entity.py
CiscoSecurity/tr-05-ctim-bundle-builder
fe4f1e877112aebc5f79ec04b6c74dc9e9f0113a
[ "MIT" ]
2
2020-06-29T18:40:37.000Z
2020-07-31T20:16:47.000Z
from abc import ( ABCMeta, abstractmethod, ) from hashlib import sha256 from inspect import ( Signature, Parameter, ) from itertools import chain from typing import ( Optional, Any, List, Iterator, Tuple, ) from uuid import uuid4 from inflection import underscore from marshmallow.ex...
29.472222
79
0.591737
4c48c82d2c2fdd693b770e7f91b7f345409f0667
12,863
py
Python
src/pathme/reactome/rdf_sparql.py
brucetony/PathMe
c7d758ff76f6787a4eb349b95f9c06bf1afb0754
[ "Apache-2.0" ]
null
null
null
src/pathme/reactome/rdf_sparql.py
brucetony/PathMe
c7d758ff76f6787a4eb349b95f9c06bf1afb0754
[ "Apache-2.0" ]
null
null
null
src/pathme/reactome/rdf_sparql.py
brucetony/PathMe
c7d758ff76f6787a4eb349b95f9c06bf1afb0754
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """This module contains the methods that run SPARQL queries to convert the Reactome Pathways to BEL.""" import logging import os from collections import defaultdict from typing import Any, Dict, List, Set, Tuple, Union import rdflib from pathme.constants import REACTOME_BEL from pathme.reacto...
37.069164
129
0.703802
f66327e73e348909a904449c521d2f1ff394025d
4,455
py
Python
zPE/GUI/io_encap.py
T-Tony-T/mainframe-env-simulator
9ca8b726b5962502d53c7e8483c5e4fd89ce5ac6
[ "BSD-3-Clause" ]
3
2015-07-20T20:11:38.000Z
2019-07-17T01:53:50.000Z
zPE/GUI/io_encap.py
T-Tony-T/mainframe-env-simulator
9ca8b726b5962502d53c7e8483c5e4fd89ce5ac6
[ "BSD-3-Clause" ]
null
null
null
zPE/GUI/io_encap.py
T-Tony-T/mainframe-env-simulator
9ca8b726b5962502d53c7e8483c5e4fd89ce5ac6
[ "BSD-3-Clause" ]
2
2019-11-14T14:40:09.000Z
2021-01-21T21:58:58.000Z
# this is the zPE IO encapsulation for GUI import os, sys # this module implements the following APIs: # # is_binary(fn_list): test if the fn_list corresponding to a binary file # # is_file(fn_list): test if the fn_list corresponding to a file # is_dir(fn_list): test if the fn_list c...
30.724138
119
0.644669
280c5c5856ccff93d7609b6f00c9a27513bab075
1,500
py
Python
webgame/sqlstore/test/NetMessages.py
breezechen/zevent
f86219b3ce4afbb516b22c41ce125b0f916c490c
[ "Apache-2.0" ]
1
2021-11-19T06:14:16.000Z
2021-11-19T06:14:16.000Z
webgame/sqlstore/test/NetMessages.py
geniejl/zevent
5dd3de57adf1deecc8f008db387ebfa460767fda
[ "Apache-2.0" ]
null
null
null
webgame/sqlstore/test/NetMessages.py
geniejl/zevent
5dd3de57adf1deecc8f008db387ebfa460767fda
[ "Apache-2.0" ]
2
2017-07-15T02:40:52.000Z
2021-11-19T06:14:18.000Z
# -*- coding: utf-8 -*- class Packets: DEF_MSGTYPE_CONFIRM = 0x0000 DEF_MSGTYPE_REJECT = 0x0001 MSGID_REQUEST_LOGIN = 0x00000001 MSGID_RESPONSE_LOGIN = 0x10000001 MSGID_REQUEST_ENTERGAME = 0x00000002 MSGID_RESPONSE_ENTERGAME = 0x10000002 MSGID_REQUEST_LEAVEGAME = 0x00000004 MSGID_RESPONSE_LE...
26.785714
48
0.825333
5acce67eee2b5fc1ae9fcb668c5f3d04de57f90c
1,720
py
Python
mi/idk/platform/package_driver.py
ronkyo/mi-instrument
ad6188ea9d7d941292f078a58718d09b46cc4fed
[ "BSD-2-Clause" ]
1
2018-09-14T23:28:29.000Z
2018-09-14T23:28:29.000Z
mi/idk/platform/package_driver.py
ronkyo/mi-instrument
ad6188ea9d7d941292f078a58718d09b46cc4fed
[ "BSD-2-Clause" ]
33
2017-04-25T19:53:45.000Z
2022-03-18T17:42:18.000Z
mi/idk/platform/package_driver.py
ronkyo/mi-instrument
ad6188ea9d7d941292f078a58718d09b46cc4fed
[ "BSD-2-Clause" ]
31
2015-03-04T01:01:09.000Z
2020-10-28T14:42:12.000Z
""" @file coi-services/mi.idk.platform/package_driver.py @author Emily Hahn @brief Main script class for running the package_driver process """ import os import sys import subprocess from mi.core.log import get_logger ; log = get_logger() import mi.idk.package_driver from mi.idk.exceptions import InvalidParameters fr...
31.272727
77
0.702326
976c6cff54c2072bcf1e4f787a7c4075ea5a61ba
5,534
py
Python
tools/apachize.py
orlyatomics/orly
d413f999f51a8e553832dab4e3baa7ca68928840
[ "Apache-2.0" ]
69
2015-01-06T05:12:57.000Z
2021-11-06T20:34:10.000Z
tools/apachize.py
waderly/orly
9d7660ea9d07591f8cc6b1b92d8e6c3b8b78eeee
[ "Apache-2.0" ]
5
2015-07-09T02:21:50.000Z
2021-08-13T11:10:26.000Z
tools/apachize.py
waderly/orly
9d7660ea9d07591f8cc6b1b92d8e6c3b8b78eeee
[ "Apache-2.0" ]
15
2015-01-23T13:34:05.000Z
2020-06-15T16:46:50.000Z
#!/usr/bin/python2 # # Copyright 2010-2014 OrlyAtomics, Inc. # # 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...
33.539394
128
0.663896
bfd5720f50676135a2d8ae991a82639099f509e2
12,251
py
Python
release/scripts/startup/bl_ui/properties_physics_common.py
naetherm/Bforartists
4d78856b76544b9eeb49e7dd388b4cf41d58d7e4
[ "Naumen", "Condor-1.1", "MS-PL" ]
3
2019-09-16T10:29:19.000Z
2022-02-11T14:43:18.000Z
release/scripts/startup/bl_ui/properties_physics_common.py
naetherm/Bforartists
4d78856b76544b9eeb49e7dd388b4cf41d58d7e4
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
release/scripts/startup/bl_ui/properties_physics_common.py
naetherm/Bforartists
4d78856b76544b9eeb49e7dd388b4cf41d58d7e4
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
# ##### BEGIN GPL LICENSE BLOCK ##### # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distrib...
32.932796
111
0.625418
78704170cc151afc877417a78e8db9ebb21746cf
15,394
py
Python
dreamcoder/domains/regex/regexPrimitives.py
Hitoshi-Nakanishi/ec2
b65905cdfb1a2451ad553fd15b937a7fc48fa9cf
[ "Unlicense" ]
null
null
null
dreamcoder/domains/regex/regexPrimitives.py
Hitoshi-Nakanishi/ec2
b65905cdfb1a2451ad553fd15b937a7fc48fa9cf
[ "Unlicense" ]
null
null
null
dreamcoder/domains/regex/regexPrimitives.py
Hitoshi-Nakanishi/ec2
b65905cdfb1a2451ad553fd15b937a7fc48fa9cf
[ "Unlicense" ]
null
null
null
import sys from dreamcoder.program import Primitive from dreamcoder.grammar import Grammar from dreamcoder.type import arrow, tpregex from string import printable try: from pregex import pregex except: print("Failure to load pregex. This is only acceptable if using pypy", file=sys.stderr) # evaluation to reg...
37.093976
127
0.58958
d97970d04e39ed0341edcc68b90d51de5c71dad9
2,605
py
Python
blueprints/aws_ebs_storage/management/attach_to_instance.py
hciudad/cloudbolt-forge
d1109c90dcd189defa70876906d394e0c91feab5
[ "Apache-2.0" ]
34
2015-08-30T09:26:41.000Z
2022-03-03T13:18:14.000Z
blueprints/aws_ebs_storage/management/attach_to_instance.py
hciudad/cloudbolt-forge
d1109c90dcd189defa70876906d394e0c91feab5
[ "Apache-2.0" ]
22
2015-11-23T21:24:17.000Z
2022-01-31T04:24:24.000Z
blueprints/aws_ebs_storage/management/attach_to_instance.py
hciudad/cloudbolt-forge
d1109c90dcd189defa70876906d394e0c91feab5
[ "Apache-2.0" ]
43
2015-11-18T16:26:22.000Z
2021-10-18T13:19:39.000Z
from common.methods import set_progress import boto3 import time from botocore.client import ClientError from infrastructure.models import Environment from resources.models import Resource from resourcehandlers.aws.models import AWSHandler def generate_options_for_instances(resource, **kwargs): instances = [] ...
32.974684
113
0.641075
d201bc427dd0b34ea2c0c92d523248728b56ae9e
243
py
Python
forecaster/__init__.py
alvis/forecaster
7f4f6d7b943879bf29c4f2d7aeed9606989c5b5c
[ "MIT" ]
null
null
null
forecaster/__init__.py
alvis/forecaster
7f4f6d7b943879bf29c4f2d7aeed9606989c5b5c
[ "MIT" ]
null
null
null
forecaster/__init__.py
alvis/forecaster
7f4f6d7b943879bf29c4f2d7aeed9606989c5b5c
[ "MIT" ]
null
null
null
""" Collection of exports. moduleauthor:: Alvis HT Tang <alvis@hilbert.space> """ from .forecaster import Forecaster from .lstm import LSTMModel __all__ = [ "Forecaster", "LSTMModel", ] __version__ = "1.0" __author__ = "Alvis Tang"
15.1875
50
0.699588
3da3d0b693e3db9d790a6c4318bdc60f34e0a606
24,159
py
Python
aw_nas/weights_manager/ofa_backbone.py
A-LinCui/Discriminator-Guiding-Knowledge-Distillation-MAR
e8caad8de2a559b9c9532448bdcdedd566cb2cfa
[ "MIT" ]
null
null
null
aw_nas/weights_manager/ofa_backbone.py
A-LinCui/Discriminator-Guiding-Knowledge-Distillation-MAR
e8caad8de2a559b9c9532448bdcdedd566cb2cfa
[ "MIT" ]
null
null
null
aw_nas/weights_manager/ofa_backbone.py
A-LinCui/Discriminator-Guiding-Knowledge-Distillation-MAR
e8caad8de2a559b9c9532448bdcdedd566cb2cfa
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Base class definition of OFA Backbone.""" import abc import copy import torch from torch import nn from aw_nas import Component from aw_nas.ops import * from aw_nas.ops.baseline_ops import MobileNetV2Block, MobileNetV3Block from aw_nas.utils import make_divisible, feature_level_to_stage_in...
32.959072
98
0.519103
e106cd9a4aa5b00c69cfc16758a34c6e4475f771
6,480
py
Python
study/python/pyqt/demo/login.py
cheenwe/blog
a866b3ab98aa58e3ed4a7624fbb72c8fd8dee790
[ "MIT" ]
10
2016-09-28T03:22:41.000Z
2020-06-16T08:42:25.000Z
study/python/pyqt/demo/login.py
cheenwe/blog
a866b3ab98aa58e3ed4a7624fbb72c8fd8dee790
[ "MIT" ]
12
2017-04-18T08:41:04.000Z
2020-06-10T02:54:58.000Z
study/python/pyqt/demo/login.py
cheenwe/blog
a866b3ab98aa58e3ed4a7624fbb72c8fd8dee790
[ "MIT" ]
8
2016-09-28T03:03:32.000Z
2019-09-16T04:22:01.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'mainwindow.ui' # # Created by: PyQt5 UI code generator 5.9.2 # # WARNING! All changes made in this file will be lost! # -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'mainwindow.ui' # # Created by: PyQt5 UI code...
41.538462
615
0.682407
d9b031d080c91af033194209d31b3c13ed6c75cd
71,378
py
Python
tensorflow/python/keras/engine/network.py
fanshiqing/tensorflow
e7475504094b3018973740df470d2c9ee73a4fd5
[ "Apache-2.0" ]
2
2018-08-04T14:13:05.000Z
2018-09-10T03:57:55.000Z
tensorflow/python/keras/engine/network.py
fanshiqing/tensorflow
e7475504094b3018973740df470d2c9ee73a4fd5
[ "Apache-2.0" ]
null
null
null
tensorflow/python/keras/engine/network.py
fanshiqing/tensorflow
e7475504094b3018973740df470d2c9ee73a4fd5
[ "Apache-2.0" ]
1
2018-08-21T21:53:14.000Z
2018-08-21T21:53:14.000Z
# Copyright 2015 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...
39.413584
120
0.656
d5cd68f8211c4ddae669e1d77c1105c38522daba
246,613
py
Python
zerver/tests/test_auth_backends.py
arpit551/zulip
6950d8d76965371df70a735b499d17377e6db42b
[ "Apache-2.0" ]
null
null
null
zerver/tests/test_auth_backends.py
arpit551/zulip
6950d8d76965371df70a735b499d17377e6db42b
[ "Apache-2.0" ]
null
null
null
zerver/tests/test_auth_backends.py
arpit551/zulip
6950d8d76965371df70a735b499d17377e6db42b
[ "Apache-2.0" ]
null
null
null
import base64 import copy import datetime import json import re import time import urllib from contextlib import contextmanager from typing import Any, Callable, Dict, Iterator, List, Optional, Sequence, Tuple from unittest import mock import jwt import ldap import requests import responses import ujson from bs4 impor...
51.313566
138
0.622133
c8be65b0d8ef95a4be1eab21572b2857ee5fe5a8
392
py
Python
metaclass/Avatar.py
majianfei/practice
345f63c2f4118617f0165700e079cb70a32eb4f8
[ "MIT" ]
1
2019-08-13T15:14:12.000Z
2019-08-13T15:14:12.000Z
metaclass/Avatar.py
majianfei/practice
345f63c2f4118617f0165700e079cb70a32eb4f8
[ "MIT" ]
null
null
null
metaclass/Avatar.py
majianfei/practice
345f63c2f4118617f0165700e079cb70a32eb4f8
[ "MIT" ]
null
null
null
#import sys #sys.path.append("./") from MetaClass import MetaClass class Avatar(metaclass=MetaClass): def __init__(self): print("Avatar init") def func1(self): print("func1") if __name__ == "__main__": print(hasattr(Avatar, "func1")) print(hasattr(Avatar, "f...
17.818182
36
0.561224