hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
6f073d830bc26d55a9b16a99438ab898d40254be
3,418
py
Python
mcpyrate/markers.py
Technologicat/mcpyrate
8182a8d246554b152e281d0f6c912e35ea58c316
[ "MIT" ]
34
2020-10-13T19:22:36.000Z
2022-01-28T00:53:55.000Z
mcpyrate/markers.py
Technologicat/mcpyrate
8182a8d246554b152e281d0f6c912e35ea58c316
[ "MIT" ]
32
2020-10-16T16:29:54.000Z
2022-01-27T15:45:51.000Z
mcpyrate/markers.py
Technologicat/mcpyrate
8182a8d246554b152e281d0f6c912e35ea58c316
[ "MIT" ]
2
2020-10-17T19:07:26.000Z
2021-02-20T01:43:50.000Z
# -*- coding: utf-8; -*- """AST markers for internal communication. *Internal* here means they are to be never passed to Python's `compile`; macros may use them to work together. """ __all__ = ["ASTMarker", "get_markers", "delete_markers", "check_no_markers_remaining"] import ast from . import core, utils, walkers ...
37.977778
113
0.693681
1,792
0.524283
0
0
0
0
0
0
2,159
0.631656
6f0871e5f1835b667efee97ba793562fead702a2
1,960
py
Python
lambda.py
deepanshu-yadav/NSFW-Classifier
ec6a98eb982ec30c2a21ca11dc92d580cc8a8981
[ "MIT" ]
13
2019-09-18T18:32:17.000Z
2022-03-01T08:01:18.000Z
lambda.py
deepanshu-yadav/NSFW-Classifier
ec6a98eb982ec30c2a21ca11dc92d580cc8a8981
[ "MIT" ]
null
null
null
lambda.py
deepanshu-yadav/NSFW-Classifier
ec6a98eb982ec30c2a21ca11dc92d580cc8a8981
[ "MIT" ]
4
2020-03-27T10:00:52.000Z
2021-04-23T03:30:43.000Z
import boto3 import json import numpy as np import base64, os, boto3, ast, json endpoint = 'myprojectcapstone' def format_response(message, status_code): return { 'statusCode': str(status_code), 'body': json.dumps(message), 'headers': { 'Content-Type': 'application/json', ...
32.131148
147
0.514286
0
0
0
0
0
0
0
0
510
0.260204
6f08e7a44962b3d4ce1d67b7f28da022e46eb7fe
4,097
py
Python
src/bindings/python/tests/test_ngraph/test_eye.py
si-eun-kim/openvino
1db4446e2a6ead55d066e0b4e718fa37f509353a
[ "Apache-2.0" ]
2
2021-12-14T15:27:46.000Z
2021-12-14T15:34:16.000Z
src/bindings/python/tests/test_ngraph/test_eye.py
si-eun-kim/openvino
1db4446e2a6ead55d066e0b4e718fa37f509353a
[ "Apache-2.0" ]
33
2021-09-23T04:14:30.000Z
2022-01-24T13:21:32.000Z
src/bindings/python/tests/test_ngraph/test_eye.py
si-eun-kim/openvino
1db4446e2a6ead55d066e0b4e718fa37f509353a
[ "Apache-2.0" ]
11
2021-11-09T00:51:40.000Z
2021-11-10T12:04:16.000Z
# Copyright (C) 2018-2022 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import openvino.runtime.opset9 as ov import numpy as np import pytest from tests.runtime import get_runtime from openvino.runtime.utils.types import get_element_type_str from openvino.runtime.utils.types import get_element_type @pytes...
39.776699
90
0.686112
0
0
0
0
3,779
0.922382
0
0
701
0.171101
6f09c66c2c39712c9d1518ff1035780b17e4b03c
2,371
py
Python
tests/error/test_format_error.py
GDGSNF/graphql-core
35aa9b261c850aa5f0c335c2405956fd41ed5ca2
[ "MIT" ]
590
2015-10-06T18:22:49.000Z
2022-03-22T16:32:17.000Z
tests/error/test_format_error.py
vpetrovykh/graphql-core
7af97e22afb27861fc1b7d7ca0292095f8427ecb
[ "MIT" ]
300
2015-10-06T18:58:11.000Z
2022-03-22T14:01:44.000Z
tests/error/test_format_error.py
vpetrovykh/graphql-core
7af97e22afb27861fc1b7d7ca0292095f8427ecb
[ "MIT" ]
270
2015-10-08T19:47:38.000Z
2022-03-10T04:17:51.000Z
from typing import List, Union from pytest import raises from graphql.error import GraphQLError, format_error from graphql.language import Node, Source from graphql.pyutils import Undefined def describe_format_error(): def formats_graphql_error(): source = Source( """ query { ...
31.197368
80
0.554197
0
0
0
0
0
0
0
0
531
0.223956
6f0a8a484c64fa9bfcfccccb0a0f15f2d119765a
6,708
py
Python
pymonad/test/test_Maybe.py
bjd2385/pymonad
baec7a540d9195b2da029d1a101edd7c385f94bb
[ "BSD-3-Clause" ]
null
null
null
pymonad/test/test_Maybe.py
bjd2385/pymonad
baec7a540d9195b2da029d1a101edd7c385f94bb
[ "BSD-3-Clause" ]
null
null
null
pymonad/test/test_Maybe.py
bjd2385/pymonad
baec7a540d9195b2da029d1a101edd7c385f94bb
[ "BSD-3-Clause" ]
null
null
null
# -------------------------------------------------------- # (c) Copyright 2014 by Jason DeLaat. # Licensed under BSD 3-clause licence. # -------------------------------------------------------- import unittest from pymonad.Maybe import Maybe, Just, First, Last, _Nothing, Nothing from pymonad.Reader import curry from ...
33.373134
73
0.690966
6,246
0.931127
0
0
0
0
0
0
201
0.029964
6f0b8327462eef4971df182fcdc4e7e99669fd00
210
py
Python
sborl/__init__.py
canonical/sborl
f821ecfcbf977d0605def66dca19ea5e8e39b5a3
[ "Apache-2.0" ]
null
null
null
sborl/__init__.py
canonical/sborl
f821ecfcbf977d0605def66dca19ea5e8e39b5a3
[ "Apache-2.0" ]
null
null
null
sborl/__init__.py
canonical/sborl
f821ecfcbf977d0605def66dca19ea5e8e39b5a3
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 Canonical Ltd. # See LICENSE file for licensing details. __version__ = "0.0.8" # flake8: noqa: F401,F402 from . import errors, events, relation, testing from .relation import EndpointWrapper
23.333333
47
0.761905
0
0
0
0
0
0
0
0
104
0.495238
6f0bb8acf71ebb128d83c12c5909aa37ad5afe8a
940
py
Python
sizer.py
riffcc/librarian
f3cf8f4cc9f9a717e5f807a1d8558eb8c4e4d528
[ "MIT" ]
null
null
null
sizer.py
riffcc/librarian
f3cf8f4cc9f9a717e5f807a1d8558eb8c4e4d528
[ "MIT" ]
null
null
null
sizer.py
riffcc/librarian
f3cf8f4cc9f9a717e5f807a1d8558eb8c4e4d528
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # Fetch torrent sizes # TODO: Report number of files before we go etc import os from torrentool.api import Torrent from fnmatch import fnmatch root = '/opt/radio/collections' pattern = "*.torrent" alltorrentsize = 0 print("Thanks for using The Librarian.") for path, subdirs, files in os.walk(root...
34.814815
172
0.726596
0
0
0
0
0
0
0
0
387
0.411702
6f0bf095397f81c3ceab712d5eed93ca0139a752
1,319
py
Python
i_vis/core/login.py
piechottam/i-vis-core
0b90300d1ae8b96d28a80802c1300dd861ad6f4e
[ "MIT" ]
null
null
null
i_vis/core/login.py
piechottam/i-vis-core
0b90300d1ae8b96d28a80802c1300dd861ad6f4e
[ "MIT" ]
null
null
null
i_vis/core/login.py
piechottam/i-vis-core
0b90300d1ae8b96d28a80802c1300dd861ad6f4e
[ "MIT" ]
null
null
null
""" Flask LoginManager plugin. Import and execute ``login.init_app(app)`` in a factory function to use. """ from typing import Any, Callable, TYPE_CHECKING from functools import wraps from flask import redirect, request, url_for, current_app from flask_login import current_user from flask_login.login_manager import...
25.862745
72
0.686884
0
0
0
0
601
0.455648
0
0
398
0.301744
6f0cc8d81107fd93a3ad95d929b3e7cadc42e6cc
10,078
py
Python
code/App.py
KasinSparks/Arduino_RGB_Lights
9c924ef3c7df2c7725c2178b42eb0f784168160c
[ "MIT" ]
null
null
null
code/App.py
KasinSparks/Arduino_RGB_Lights
9c924ef3c7df2c7725c2178b42eb0f784168160c
[ "MIT" ]
null
null
null
code/App.py
KasinSparks/Arduino_RGB_Lights
9c924ef3c7df2c7725c2178b42eb0f784168160c
[ "MIT" ]
null
null
null
from tkinter import * from ModeEnum import Mode import SerialHelper import Views.StaticView import Views.CustomWidgets.Silder from ColorEnum import Color from functools import partial from Views.CommandPanel import CommandPanel from Views.ListItem import ListItem from ProcessControl import ProcessManager, ProcessCo...
32.509677
209
0.594066
8,899
0.883013
0
0
0
0
0
0
2,033
0.201727
6f0d7bbee7a9caaa60cc0549c015512769c48c45
4,944
py
Python
tests/io/product/test_sidd_writing.py
ngageoint/SarPy
a21ebfe136833e3d25cac4e5ebfd534f28538db4
[ "MIT" ]
null
null
null
tests/io/product/test_sidd_writing.py
ngageoint/SarPy
a21ebfe136833e3d25cac4e5ebfd534f28538db4
[ "MIT" ]
null
null
null
tests/io/product/test_sidd_writing.py
ngageoint/SarPy
a21ebfe136833e3d25cac4e5ebfd534f28538db4
[ "MIT" ]
null
null
null
import os import json import tempfile import shutil import unittest from sarpy.io.complex.sicd import SICDReader from sarpy.io.product.sidd import SIDDReader from sarpy.io.product.sidd_schema import get_schema_path from sarpy.processing.sidd.sidd_product_creation import create_detected_image_sidd, create_dynamic_image...
44.142857
126
0.619539
3,505
0.70894
0
0
3,458
0.699434
0
0
921
0.186286
6f0f9bbc343ebc2f491e5e0fa189894eb08c5ad7
28,213
py
Python
src/westpa/tools/wipi.py
burntyellow/adelman_ci
cca251a51b34843faed0275cce01d7a307829993
[ "MIT" ]
null
null
null
src/westpa/tools/wipi.py
burntyellow/adelman_ci
cca251a51b34843faed0275cce01d7a307829993
[ "MIT" ]
null
null
null
src/westpa/tools/wipi.py
burntyellow/adelman_ci
cca251a51b34843faed0275cce01d7a307829993
[ "MIT" ]
null
null
null
import numpy as np import scipy.sparse as sp from westpa.tools import Plotter # A useful dataclass used as a wrapper for w_ipa to facilitate # ease-of-use in ipython/jupyter notebooks/sessions. # It basically just wraps up numpy arrays and dicts. class WIPIDataset(object): def __init__(self, raw, key): ...
43.073282
222
0.589267
27,811
0.985751
0
0
5,341
0.18931
0
0
10,373
0.367667
6f0fd9711f448e832198d3798ba9ecf322599507
680
py
Python
src/M5_random_module.py
posguy99/comp660-fall2020
0fbf5b660fe8863bf9754b5227fe47dd03dc2291
[ "MIT" ]
null
null
null
src/M5_random_module.py
posguy99/comp660-fall2020
0fbf5b660fe8863bf9754b5227fe47dd03dc2291
[ "MIT" ]
null
null
null
src/M5_random_module.py
posguy99/comp660-fall2020
0fbf5b660fe8863bf9754b5227fe47dd03dc2291
[ "MIT" ]
null
null
null
import random # use of the random module print(random.random()) # a float value >= 0.0 and < 1.0 print(random.random()*100) # a float value >= 0.0 and < 100.0 # use of the randint method print(random.randint(1, 100)) # an int from 1 to 100 print(random.randint(101, 200)) # an int from 101 to 2...
35.789474
73
0.627941
0
0
0
0
0
0
0
0
272
0.4
6f0fe7aa9178367d1e8da95885ff8667f686cebb
1,385
py
Python
lnt/graphics/styles.py
flotwig/lnt
2f4ab3d051508801b521f5da39f0cf522c54a96e
[ "MIT" ]
7
2020-02-21T23:43:10.000Z
2021-07-06T11:16:37.000Z
lnt/graphics/styles.py
arshbot/lntools
9c6f344452323ff93b7a6a3763697d2ad81b4961
[ "MIT" ]
19
2019-08-07T18:00:13.000Z
2020-12-03T17:21:01.000Z
lnt/graphics/styles.py
arshbot/lntools
9c6f344452323ff93b7a6a3763697d2ad81b4961
[ "MIT" ]
1
2019-11-05T21:38:29.000Z
2019-11-05T21:38:29.000Z
from PyInquirer import style_from_dict, Token, prompt, Separator from lnt.graphics.utils import vars_to_string # Mark styles prompt_style = style_from_dict({ Token.Separator: '#6C6C6C', Token.QuestionMark: '#FF9D00 bold', #Token.Selected: '', # default Token.Selected: '#5F819D', Token.Pointer: '#F...
30.108696
134
0.639711
0
0
0
0
0
0
0
0
536
0.385889
6f10007c40e440e0d8097efa2d2333808b818d8f
25,327
py
Python
dvrip.py
jackkum/python-dvr
c004606ff8a37a213715fbc835cef77add0b3014
[ "MIT" ]
149
2018-04-04T18:46:43.000Z
2022-03-07T18:27:52.000Z
dvrip.py
jackkum/python-dvr
c004606ff8a37a213715fbc835cef77add0b3014
[ "MIT" ]
20
2018-09-05T13:10:29.000Z
2022-03-28T12:56:36.000Z
dvrip.py
jackkum/python-dvr
c004606ff8a37a213715fbc835cef77add0b3014
[ "MIT" ]
51
2018-05-29T02:10:04.000Z
2022-02-23T14:24:11.000Z
import os import struct import json from time import sleep import hashlib import threading from socket import socket, AF_INET, SOCK_STREAM, SOCK_DGRAM from datetime import * from re import compile import time import logging class SomethingIsWrongWithCamera(Exception): pass class DVRIPCam(object): DATE_FORMAT ...
31.5798
232
0.48774
25,099
0.990998
0
0
0
0
0
0
4,143
0.16358
6f1051aadde1f5582ce2b30a763b8cd2ec505a2e
1,373
py
Python
tests/test_renderer.py
0xflotus/maildown
fa17ce6a29458da549a145741db8e5092def2176
[ "MIT" ]
626
2019-05-08T22:34:45.000Z
2022-03-31T07:29:35.000Z
tests/test_renderer.py
pythonthings/maildown
4e0caf297bdf264ab5ead537eb45d20f187971a1
[ "MIT" ]
12
2019-04-30T20:47:17.000Z
2019-06-27T11:19:46.000Z
tests/test_renderer.py
pythonthings/maildown
4e0caf297bdf264ab5ead537eb45d20f187971a1
[ "MIT" ]
36
2019-05-08T23:50:41.000Z
2021-07-30T17:46:24.000Z
import mock from maildown import renderer import mistune import pygments from pygments import lexers from pygments.formatters import html import premailer import jinja2 def test_highlight_renderer(monkeypatch): monkeypatch.setattr(mistune, "escape", mock.MagicMock()) monkeypatch.setattr(lexers, "get_lexer_by_...
33.487805
72
0.758194
0
0
0
0
0
0
0
0
149
0.108521
6f105f0927ad589737ae9605008d8f670158e4d5
1,423
py
Python
practice/practice_4/main.py
Norbert2808/programming
3dbab86718c1cee5efe3b4b92e4492f984c75ea2
[ "Unlicense" ]
null
null
null
practice/practice_4/main.py
Norbert2808/programming
3dbab86718c1cee5efe3b4b92e4492f984c75ea2
[ "Unlicense" ]
null
null
null
practice/practice_4/main.py
Norbert2808/programming
3dbab86718c1cee5efe3b4b92e4492f984c75ea2
[ "Unlicense" ]
null
null
null
from generator import * from iterator import * def nInput(): while True: try: n = int(input("Enter n(size): ")) if n <= 0: print("Input must be a positive integer!") continue except ValueError: print("Not the correct value n!") ...
26.351852
69
0.51019
0
0
0
0
0
0
0
0
335
0.235418
6f11a287519a38fcf82e8d66f617304a1a4f570b
688
py
Python
setup.py
wgnet/grail
1d8d22bebda758800cb9aa9027486053d568bc14
[ "Apache-2.0" ]
37
2015-01-12T07:34:34.000Z
2020-12-29T09:46:28.000Z
setup.py
wgnet/grail
1d8d22bebda758800cb9aa9027486053d568bc14
[ "Apache-2.0" ]
7
2015-04-10T14:55:34.000Z
2021-04-28T10:00:47.000Z
setup.py
wgnet/grail
1d8d22bebda758800cb9aa9027486053d568bc14
[ "Apache-2.0" ]
17
2015-01-06T20:09:02.000Z
2019-06-28T08:57:36.000Z
from setuptools import setup version = '1.0.10' setup( name='grail', version=version, classifiers=[ 'Intended Audience :: Developers', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 2.7', ], packages=[ ...
28.666667
111
0.640988
0
0
0
0
0
0
0
0
401
0.582849
6f123e344c537798141dc193f3e6368ab0209301
964
py
Python
tests/test_free.py
qingyunha/boltdb
2ea341336f02210f751cd49ea7724d890511db38
[ "MIT" ]
7
2020-11-18T10:06:47.000Z
2021-09-06T16:31:13.000Z
tests/test_free.py
qingyunha/boltdb
2ea341336f02210f751cd49ea7724d890511db38
[ "MIT" ]
1
2021-02-20T19:32:11.000Z
2021-02-20T19:32:11.000Z
tests/test_free.py
qingyunha/boltdb
2ea341336f02210f751cd49ea7724d890511db38
[ "MIT" ]
2
2020-11-25T15:21:20.000Z
2021-02-20T19:28:14.000Z
import os import unittest import tempfile from boltdb import BoltDB class TestFree(unittest.TestCase): def setUp(self): self.db = BoltDB(tempfile.mktemp()) def tearDown(self): os.unlink(self.db.filename) def test_free(self): with self.db.update() as tx: b = tx.bucke...
24.717949
61
0.551867
892
0.925311
0
0
0
0
0
0
48
0.049793
6f149a0dd9e45b60d9d630858342198ce7d83ebf
1,709
py
Python
xen/xen-4.2.2/tools/xm-test/tests/xapi/01_xapi-vm_basic.py
zhiming-shen/Xen-Blanket-NG
47e59d9bb92e8fdc60942df526790ddb983a5496
[ "Apache-2.0" ]
1
2018-02-02T00:15:26.000Z
2018-02-02T00:15:26.000Z
xen/xen-4.2.2/tools/xm-test/tests/xapi/01_xapi-vm_basic.py
zhiming-shen/Xen-Blanket-NG
47e59d9bb92e8fdc60942df526790ddb983a5496
[ "Apache-2.0" ]
null
null
null
xen/xen-4.2.2/tools/xm-test/tests/xapi/01_xapi-vm_basic.py
zhiming-shen/Xen-Blanket-NG
47e59d9bb92e8fdc60942df526790ddb983a5496
[ "Apache-2.0" ]
1
2019-05-27T09:47:18.000Z
2019-05-27T09:47:18.000Z
#!/usr/bin/python # Copyright (C) International Business Machines Corp., 2006 # Author: Stefan Berger <stefanb@us.ibm.com> # Basic VM creation test from XmTestLib import xapi from XmTestLib.XenAPIDomain import XmTestAPIDomain from XmTestLib import * from xen.xend import XendAPIConstants import commands import os tr...
27.564516
99
0.774137
0
0
0
0
0
0
0
0
432
0.252779
6f15c8f389db3a70f0c15433c6aa9fb9ab9b3570
369
py
Python
formatter_sql.py
ZSCNetSupportDept/schedule-utils
e7ba0f34c7af77980758c9a0e9a82faca66f558c
[ "WTFPL" ]
null
null
null
formatter_sql.py
ZSCNetSupportDept/schedule-utils
e7ba0f34c7af77980758c9a0e9a82faca66f558c
[ "WTFPL" ]
null
null
null
formatter_sql.py
ZSCNetSupportDept/schedule-utils
e7ba0f34c7af77980758c9a0e9a82faca66f558c
[ "WTFPL" ]
null
null
null
def format_sql(schedule, table): for week, schedule in schedule.items(): print(f"UPDATE {table} SET `block`=0, `week`={week} WHERE `name`='{schedule.leader}';") for block, staffs in schedule.staffs.items(): for staff in staffs: print(f"UPDATE {table} SET `block`={block}, ...
46.125
99
0.596206
0
0
0
0
0
0
0
0
156
0.422764
6f162b9d147aaaf9aa9b58f1a839359e4e0bcd22
9,024
py
Python
nlp_fourier.py
neitzke/stokes-numerics
8845aef7598ca245d095cca690bf48568758a8c9
[ "MIT" ]
1
2020-08-03T16:24:06.000Z
2020-08-03T16:24:06.000Z
nlp_fourier.py
neitzke/stokes-numerics
8845aef7598ca245d095cca690bf48568758a8c9
[ "MIT" ]
null
null
null
nlp_fourier.py
neitzke/stokes-numerics
8845aef7598ca245d095cca690bf48568758a8c9
[ "MIT" ]
null
null
null
"""Fourier transform non-linear Poisson solver""" # This module is concerned with solving the "non-linear Poisson" # equation # Delta(u) = f(u,z) # on a uniform rectangular mesh, with u = u0 on the boundary. # # We solve the equation by an iterative method, solving an # approximation to the linearized equation at ...
38.729614
176
0.623559
6,212
0.688387
0
0
0
0
0
0
4,796
0.531472
6f177aacdeb67b4df7640983b24e1411fe279553
2,853
py
Python
app/models/fragment.py
saury2013/Memento
dbb2031a5aff3064f40bcb5afe631de8724a547e
[ "MIT" ]
null
null
null
app/models/fragment.py
saury2013/Memento
dbb2031a5aff3064f40bcb5afe631de8724a547e
[ "MIT" ]
null
null
null
app/models/fragment.py
saury2013/Memento
dbb2031a5aff3064f40bcb5afe631de8724a547e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from datetime import datetime from sqlalchemy.dialects.mysql import LONGTEXT from sqlalchemy.orm import load_only from sqlalchemy import func from flask import abort from markdown import Markdown,markdown from app.models import db,fragment_tags_table from app.models.tag import Tag from app.whoo...
38.04
95
0.660007
2,511
0.877665
0
0
500
0.174764
0
0
451
0.157637
6f18b3824b6daec3cd5fa315168eff3f33823b3f
24,236
py
Python
qatrack/qa/migrations/0001_initial.py
crcrewso/qatrackplus
b9da3bc542d9e3eca8b7291bb631d1c7255d528e
[ "MIT" ]
20
2021-03-11T18:37:32.000Z
2022-03-23T19:38:07.000Z
qatrack/qa/migrations/0001_initial.py
crcrewso/qatrackplus
b9da3bc542d9e3eca8b7291bb631d1c7255d528e
[ "MIT" ]
75
2021-02-12T02:37:33.000Z
2022-03-29T20:56:16.000Z
qatrack/qa/migrations/0001_initial.py
crcrewso/qatrackplus
b9da3bc542d9e3eca8b7291bb631d1c7255d528e
[ "MIT" ]
5
2021-04-07T15:46:53.000Z
2021-09-18T16:55:00.000Z
# -*- coding: utf-8 -*- from django.db import migrations, models import django.utils.timezone import django.db.models.deletion from django.conf import settings class Migration(migrations.Migration): dependencies = [ ('contenttypes', '0002_remove_content_type_name'), ('auth', '0006_require_conte...
74.572308
469
0.637523
24,071
0.993192
0
0
0
0
0
0
8,397
0.346468
6f1b13d2e45c97356d3de371d486f2f4c6321a9d
746
py
Python
cloudygram_api_server/models/telethon_model.py
Maverick1983/cloudygram-api-server
acb0b0ed173ebfff8b1a2b69efef3abe943e735e
[ "Unlicense" ]
2
2021-05-25T15:24:03.000Z
2021-05-27T09:35:56.000Z
cloudygram_api_server/models/telethon_model.py
skurob/cgas
7660064882c5d5e56dbc4aa7e5be99754ffdcfd6
[ "Unlicense" ]
1
2021-05-27T08:32:55.000Z
2021-05-27T10:02:35.000Z
cloudygram_api_server/models/telethon_model.py
skurob/cgas
7660064882c5d5e56dbc4aa7e5be99754ffdcfd6
[ "Unlicense" ]
1
2021-06-03T10:06:49.000Z
2021-06-03T10:06:49.000Z
from .constants import SUCCESS_KEY, MESSAGE_KEY, DATA_KEY from cloudygram_api_server.scripts import CGMessage from typing import List class TtModels: @staticmethod def sing_in_failure(message) -> dict: return { SUCCESS_KEY : False, MESSAGE_KEY : message } @staticme...
25.724138
60
0.608579
609
0.816354
0
0
577
0.773458
0
0
0
0
6f1b8a527ec012630d1bead41b940dac1320a132
4,617
py
Python
source1/bsp/entities/portal2_entity_handlers.py
tltneon/SourceIO
418224918c2b062a4c78a41d4d65329ba2decb22
[ "MIT" ]
199
2019-04-02T02:30:58.000Z
2022-03-30T21:29:49.000Z
source1/bsp/entities/portal2_entity_handlers.py
syborg64/SourceIO
e4ba86d801f518e192260af08ef533759c2e1cc3
[ "MIT" ]
113
2019-03-03T19:36:25.000Z
2022-03-31T19:44:05.000Z
source1/bsp/entities/portal2_entity_handlers.py
syborg64/SourceIO
e4ba86d801f518e192260af08ef533759c2e1cc3
[ "MIT" ]
38
2019-05-15T16:49:30.000Z
2022-03-22T03:40:43.000Z
import math from mathutils import Euler import bpy from .portal2_entity_classes import * from .portal_entity_handlers import PortalEntityHandler local_entity_lookup_table = PortalEntityHandler.entity_lookup_table.copy() local_entity_lookup_table.update(entity_class_handle) class Portal2EntityHandler(PortalEntityHan...
53.068966
109
0.753736
4,338
0.939571
0
0
0
0
0
0
523
0.113277
6f1ed343bbac27b5996271e2bb652c962f6512bc
3,935
py
Python
michelanglo_api/ss_parser.py
matteoferla/MichelaNGLo-api
c00749d4b9385785f777bd6613ea8327381a3f38
[ "MIT" ]
1
2020-05-23T07:42:24.000Z
2020-05-23T07:42:24.000Z
michelanglo_api/ss_parser.py
matteoferla/MichelaNGLo-api
c00749d4b9385785f777bd6613ea8327381a3f38
[ "MIT" ]
null
null
null
michelanglo_api/ss_parser.py
matteoferla/MichelaNGLo-api
c00749d4b9385785f777bd6613ea8327381a3f38
[ "MIT" ]
null
null
null
from collections import namedtuple class SSParser: """ Create a SS block from PDB data. Written to be agnostic of PDB parser, but for now only has PyMOL. .. code-block:: python import pymol2 with pymol2.PyMOL() as pymol: pymol.cmd.load('model.pdb', 'prot') ss = ...
36.775701
99
0.516645
3,897
0.990343
0
0
651
0.165438
0
0
1,764
0.448285
6f1f6d17456ac645513cd747a8b58ba607f3346f
748
py
Python
Net640/apps/user_posts/mixin.py
86Ilya/net640kb
6724f3da3b678b637e0e776ee0d4953753ee2e05
[ "MIT" ]
1
2019-06-18T09:50:29.000Z
2019-06-18T09:50:29.000Z
Net640/apps/user_posts/mixin.py
86Ilya/net640kb
6724f3da3b678b637e0e776ee0d4953753ee2e05
[ "MIT" ]
10
2019-12-24T07:05:29.000Z
2022-02-10T07:42:44.000Z
Net640/apps/user_posts/mixin.py
86Ilya/net640kb
6724f3da3b678b637e0e776ee0d4953753ee2e05
[ "MIT" ]
null
null
null
from django.urls import reverse from Net640.settings import FRONTEND_DATE_FORMAT class AsDictMessageMixin: """ Mixin for representing user messages(post, comments) as dictionaries """ def as_dict(self, executor): return {'content': self.content, 'user_has_like': self.has_like(...
37.4
94
0.605615
664
0.887701
0
0
0
0
0
0
208
0.278075
6f1f734997fb69804fc6859e112a7faf8e27b40b
16,030
py
Python
squids/tfrecords/maker.py
mmgalushka/squids
2d6e1bbeb89721a2ff232a7031997111c600abb6
[ "MIT" ]
null
null
null
squids/tfrecords/maker.py
mmgalushka/squids
2d6e1bbeb89721a2ff232a7031997111c600abb6
[ "MIT" ]
37
2022-01-15T21:42:23.000Z
2022-02-23T23:43:31.000Z
squids/tfrecords/maker.py
mmgalushka/squids
2d6e1bbeb89721a2ff232a7031997111c600abb6
[ "MIT" ]
null
null
null
"""A module for converting a data source to TFRecords.""" import os import json import copy import csv from pathlib import Path from shutil import rmtree import PIL.Image as Image import tensorflow as tf from tqdm import tqdm from .feature import items_to_features from .errors import DirNotFoundError, InvalidDataset...
33.818565
80
0.564255
8,221
0.512851
0
0
0
0
0
0
7,014
0.437555
6f1f9754bb7f6d41b30e4a4c10cead5e654ca04e
2,743
py
Python
edexOsgi/com.raytheon.edex.plugin.gfe/utility/cave_static/user/GFETEST/gfe/userPython/smartTools/ExUtil1.py
srcarter3/awips2
37f31f5e88516b9fd576eaa49d43bfb762e1d174
[ "Apache-2.0" ]
null
null
null
edexOsgi/com.raytheon.edex.plugin.gfe/utility/cave_static/user/GFETEST/gfe/userPython/smartTools/ExUtil1.py
srcarter3/awips2
37f31f5e88516b9fd576eaa49d43bfb762e1d174
[ "Apache-2.0" ]
null
null
null
edexOsgi/com.raytheon.edex.plugin.gfe/utility/cave_static/user/GFETEST/gfe/userPython/smartTools/ExUtil1.py
srcarter3/awips2
37f31f5e88516b9fd576eaa49d43bfb762e1d174
[ "Apache-2.0" ]
1
2021-10-30T00:03:05.000Z
2021-10-30T00:03:05.000Z
## # This software was developed and / or modified by Raytheon Company, # pursuant to Contract DG133W-05-CQ-1067 with the US Government. # # U.S. EXPORT CONTROLLED TECHNICAL DATA # This software product contains export-restricted data whose # export/transfer/disclosure is restricted by U.S. law. Dissemination # to non...
34.2875
96
0.596792
1,480
0.539555
0
0
0
0
0
0
1,722
0.62778
6f1fef78694338432a72024d0e2abb835ff193fd
5,335
py
Python
venv/KryptoSkattScript/mining_income.py
odgaard/KryptoSkatt
60338f25af2300b165738ceac033aae72969f7c5
[ "MIT" ]
null
null
null
venv/KryptoSkattScript/mining_income.py
odgaard/KryptoSkatt
60338f25af2300b165738ceac033aae72969f7c5
[ "MIT" ]
null
null
null
venv/KryptoSkattScript/mining_income.py
odgaard/KryptoSkatt
60338f25af2300b165738ceac033aae72969f7c5
[ "MIT" ]
null
null
null
import pathlib import datetime path = 'c:/Users/Jacob/PycharmProjects/KryptoSkatt/Data/' trans_in = list() trans_out = list() bitcoin_dict = dict() ethereum_dict = dict() USD_NOK_dict = dict() def unix_time_to_date(timestamp): return datetime.datetime.fromtimestamp(int(timestamp)).strftime('%Y-%m-%d') def popul...
37.307692
120
0.65567
0
0
0
0
0
0
0
0
1,429
0.267854
6f21c952ba1d6ad55821e054cf4f9e1bcc0cbef5
1,222
py
Python
SymBOP_Analysis/ql_global.py
duttm/Octahedra_Nanoparticle_Project
aebee2859e104071a1a6f5f46b42ddc9bd2fa5ad
[ "MIT" ]
null
null
null
SymBOP_Analysis/ql_global.py
duttm/Octahedra_Nanoparticle_Project
aebee2859e104071a1a6f5f46b42ddc9bd2fa5ad
[ "MIT" ]
null
null
null
SymBOP_Analysis/ql_global.py
duttm/Octahedra_Nanoparticle_Project
aebee2859e104071a1a6f5f46b42ddc9bd2fa5ad
[ "MIT" ]
null
null
null
import numpy as np import scipy.special as ss import pathlib from Particle import Particle def ql_global(l, particles): # Keep only particles that have neighbors (this was changed 5/23/2020) particles = [i for i in particles if len(Particle.data[i].neighs)>0] neigh_total = sum([len(Particle.data[i].neig...
20.366667
140
0.672668
0
0
0
0
0
0
0
0
122
0.099836
6f22dd259e43cf8dd03f6e436b63e23ee3c3c16a
133
py
Python
mycelium/__init__.py
suet-lee/mycelium
db83cd3ab00697f28b2def2cebcdef52698fdd92
[ "Apache-2.0" ]
6
2021-05-23T17:36:02.000Z
2022-01-21T20:34:17.000Z
mycelium/__init__.py
suet-lee/mycelium
db83cd3ab00697f28b2def2cebcdef52698fdd92
[ "Apache-2.0" ]
null
null
null
mycelium/__init__.py
suet-lee/mycelium
db83cd3ab00697f28b2def2cebcdef52698fdd92
[ "Apache-2.0" ]
1
2021-06-17T20:35:10.000Z
2021-06-17T20:35:10.000Z
from .switch import EKFSwitch, RelaySwitch, InitialModeSwitch from .camera_t265 import CameraT265 from .camera_d435 import CameraD435
44.333333
61
0.864662
0
0
0
0
0
0
0
0
0
0
6f24922c982451aa56d071ba87202ae9a17e9ae3
1,030
py
Python
arsenal/sleep/openfaas/sleep-py/handler.py
nropatas/faasbenchmark
99f08c70a0ddaa8e9dcadb092b2c395318a6e215
[ "Apache-2.0" ]
null
null
null
arsenal/sleep/openfaas/sleep-py/handler.py
nropatas/faasbenchmark
99f08c70a0ddaa8e9dcadb092b2c395318a6e215
[ "Apache-2.0" ]
null
null
null
arsenal/sleep/openfaas/sleep-py/handler.py
nropatas/faasbenchmark
99f08c70a0ddaa8e9dcadb092b2c395318a6e215
[ "Apache-2.0" ]
null
null
null
import os import time import datetime def get_current_epoch(): return int((datetime.datetime.utcnow() - datetime.datetime(1970, 1, 1)).total_seconds() * 1000) def get_sleep_parameter(event): user_input = str(event.query["sleep"]) if not user_input or not user_input.isdigit() or int(user_input) < 0: ...
23.953488
99
0.615534
0
0
0
0
0
0
0
0
117
0.113592
6f24c0d9627e8e593e0f3f03a5c6df58f6f65c2e
2,922
py
Python
lib/vapi_cli/users.py
nogayama/vision-tools
f3041b519f30037d5b6390bce36a7f5efd3ed6ae
[ "Apache-2.0" ]
15
2020-03-22T18:25:27.000Z
2021-12-03T05:49:32.000Z
lib/vapi_cli/users.py
nogayama/vision-tools
f3041b519f30037d5b6390bce36a7f5efd3ed6ae
[ "Apache-2.0" ]
8
2020-04-04T18:11:56.000Z
2021-07-27T18:06:47.000Z
lib/vapi_cli/users.py
nogayama/vision-tools
f3041b519f30037d5b6390bce36a7f5efd3ed6ae
[ "Apache-2.0" ]
19
2020-03-20T23:36:32.000Z
2022-01-10T20:38:48.000Z
#!/usr/bin/env python3 # IBM_PROLOG_BEGIN_TAG # # Copyright 2019,2020 IBM International Business Machines Corp. # # 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.apa...
29.816327
97
0.687543
0
0
0
0
0
0
0
0
1,770
0.605749
6f25add3846c5ac4302faa8959401e3328e32572
2,223
py
Python
smile_recognition.py
audreymychan/djsmile
8dc5d6337f1b32db8bf3dfbf13315ec25049ebb5
[ "MIT" ]
5
2019-05-30T20:15:34.000Z
2020-04-16T08:21:16.000Z
smile_recognition.py
audreymychan/djsmile
8dc5d6337f1b32db8bf3dfbf13315ec25049ebb5
[ "MIT" ]
5
2021-08-25T14:43:34.000Z
2022-02-10T00:14:09.000Z
smile_recognition.py
audreymychan/djsmile
8dc5d6337f1b32db8bf3dfbf13315ec25049ebb5
[ "MIT" ]
null
null
null
# This script loads the pre-trained scaler and models and contains the # predict_smile() function to take in an image and return smile predictions import joblib from tensorflow.keras.models import load_model from tensorflow.keras.preprocessing.image import img_to_array, array_to_img from PIL import Image import numpy ...
35.285714
92
0.706253
0
0
0
0
0
0
0
0
1,284
0.577598
6f25c6dda6bae99b736764ebd22f5be07aae919e
1,054
py
Python
comicstreamerlib/gui_qt.py
rlugojr/ComicStreamer
62eb914652695ea41a5e1f0cfbd044cbc6854e84
[ "Apache-2.0" ]
169
2015-01-08T03:23:37.000Z
2022-02-27T22:09:25.000Z
comicstreamerlib/gui_qt.py
gwhittey23/ComicStreamer
3e0fe2011984cee54197985cb313f5b6864f6f8c
[ "Apache-2.0" ]
46
2015-01-10T23:47:51.000Z
2020-05-31T01:04:28.000Z
comicstreamerlib/gui_qt.py
gwhittey23/ComicStreamer
3e0fe2011984cee54197985cb313f5b6864f6f8c
[ "Apache-2.0" ]
94
2015-01-26T01:57:52.000Z
2022-01-25T17:11:31.000Z
import sys import webbrowser import os from comicstreamerlib.folders import AppFolders from PyQt4 import QtGui,QtCore class SystemTrayIcon(QtGui.QSystemTrayIcon): def __init__(self, icon, app): QtGui.QSystemTrayIcon.__init__(self, icon, None) self.app = app self.menu = QtGui.QMenu(None) ...
23.422222
65
0.624288
874
0.829222
0
0
0
0
0
0
27
0.025617
6f276dd2fdcae04762736c35013f0dd614ff7db4
3,892
py
Python
laserchicken/io/las_handler.py
eEcoLiDAR/eEcoLiDAR
f5c4e772e4893f7242ed0b10aa17ac7e693a55a0
[ "Apache-2.0" ]
null
null
null
laserchicken/io/las_handler.py
eEcoLiDAR/eEcoLiDAR
f5c4e772e4893f7242ed0b10aa17ac7e693a55a0
[ "Apache-2.0" ]
104
2017-09-07T08:06:49.000Z
2018-04-16T09:17:18.000Z
laserchicken/io/las_handler.py
eEcoLiDAR/eEcoLiDAR
f5c4e772e4893f7242ed0b10aa17ac7e693a55a0
[ "Apache-2.0" ]
2
2017-11-17T17:23:04.000Z
2017-12-15T07:13:20.000Z
""" IO Handler for LAS (and compressed LAZ) file format """ import laspy import numpy as np from laserchicken import keys from laserchicken.io.base_io_handler import IOHandler from laserchicken.io.utils import convert_to_short_type, select_valid_attributes DEFAULT_LAS_ATTRIBUTES = { 'x', 'y', 'z', 'i...
37.423077
98
0.610226
3,345
0.859455
0
0
0
0
0
0
1,122
0.288284
6f29a0478e6fdf417f21eeca439c92961dbbacca
1,206
py
Python
prob.py
Y1fanHE/po_with_moead-levy
d0531c9685ea1a09dd074960b51756d8f19a9719
[ "MIT" ]
7
2020-09-02T12:40:58.000Z
2021-09-17T09:39:09.000Z
prob.py
Y1fanHE/po_with_moead-levy
d0531c9685ea1a09dd074960b51756d8f19a9719
[ "MIT" ]
null
null
null
prob.py
Y1fanHE/po_with_moead-levy
d0531c9685ea1a09dd074960b51756d8f19a9719
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd def read_file(prob_num): df = pd.read_csv("dat/port" + str(prob_num) + ".txt", header=None, delimiter="\s+", names=range(3)) # info on assets n = int(df[0][0]) # number of assets r = df[1: (n + 1)][0].values.reshape(n, 1) # mean of returns s = df[1: (n + 1)][...
29.414634
78
0.529022
0
0
0
0
0
0
0
0
231
0.191542
6f2a6d704873d5624524e8309be808576dfeefc1
277
py
Python
nmr/testing_PyBMRB.py
jameshtwose/han_jms_collabs
ee5cdb73b3e14e7f1f1e225dbc6a7d7d2b1b5b73
[ "CC-BY-4.0" ]
null
null
null
nmr/testing_PyBMRB.py
jameshtwose/han_jms_collabs
ee5cdb73b3e14e7f1f1e225dbc6a7d7d2b1b5b73
[ "CC-BY-4.0" ]
null
null
null
nmr/testing_PyBMRB.py
jameshtwose/han_jms_collabs
ee5cdb73b3e14e7f1f1e225dbc6a7d7d2b1b5b73
[ "CC-BY-4.0" ]
null
null
null
from pybmrb import Spectra, Histogram import plotly.io as pio pio.renderers.default = "browser" peak_list=Spectra.n15hsqc(bmrb_ids=15060, legend='residue') peak_list=Spectra.c13hsqc(bmrb_ids=15060, legend='residue') peak_list=Spectra.tocsy(bmrb_ids=15060, legend='residue')
27.7
59
0.801444
0
0
0
0
0
0
0
0
36
0.129964
6f2c2c62e843e5ddae5061bd51b492b090cca398
10,511
py
Python
parser.py
sberczuk/powerschool-reporter
2393d9f63ffe643499f6cbf2bf406f3c4d311129
[ "MIT" ]
1
2021-03-04T20:11:08.000Z
2021-03-04T20:11:08.000Z
parser.py
sberczuk/powerschool-reporter
2393d9f63ffe643499f6cbf2bf406f3c4d311129
[ "MIT" ]
null
null
null
parser.py
sberczuk/powerschool-reporter
2393d9f63ffe643499f6cbf2bf406f3c4d311129
[ "MIT" ]
1
2021-03-04T20:11:13.000Z
2021-03-04T20:11:13.000Z
#!/usr/bin/env python3 import io import xml.etree.ElementTree as ET import argparse ns = {'ns1': 'http://www.sifinfo.org/infrastructure/2.x', 'ns2': 'http://stumo.transcriptcenter.com'} class StudentInfo: def __init__(self, first_name, middle_name, last_name, ): self.last_name = last_name ...
38.083333
271
0.641328
2,389
0.227286
0
0
0
0
0
0
3,157
0.300352
6f2de6790116bc6ef41091db2832890bbce2457a
2,623
py
Python
eunite/eunite_data.py
jiasudemotuohe/deep_learning
44eb14d91b6b9ca2092361918a1bcaa73786f78e
[ "MIT" ]
null
null
null
eunite/eunite_data.py
jiasudemotuohe/deep_learning
44eb14d91b6b9ca2092361918a1bcaa73786f78e
[ "MIT" ]
null
null
null
eunite/eunite_data.py
jiasudemotuohe/deep_learning
44eb14d91b6b9ca2092361918a1bcaa73786f78e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # @Time : 2020-04-11 12:34 # @Author : speeding_moto import numpy as np import pandas as pd from matplotlib import pyplot as plt EUNITE_PATH = "dataset/eunite.xlsx" PARSE_TABLE_NAME = "mainData" def load_eunite_data(): """ return the generated load data, include all the features...
22.808696
91
0.661456
0
0
0
0
0
0
0
0
621
0.236752
6f2ef602fc37c19ef3635c7ccba25fb1c352192a
4,828
py
Python
tests/test_fibsem.py
DeMarcoLab/piescope
ea7acf5b198b91e4923097711d55ca038763eba2
[ "MIT" ]
4
2019-06-07T07:28:48.000Z
2022-02-23T23:02:08.000Z
tests/test_fibsem.py
DeMarcoLab/PIEScope
ea7acf5b198b91e4923097711d55ca038763eba2
[ "MIT" ]
44
2019-06-09T14:32:16.000Z
2022-03-25T06:04:20.000Z
tests/test_fibsem.py
DeMarcoLab/piescope
ea7acf5b198b91e4923097711d55ca038763eba2
[ "MIT" ]
3
2019-06-07T07:31:09.000Z
2021-03-01T10:47:24.000Z
import numpy as np import pytest from piescope.data.mocktypes import MockAdornedImage import piescope.fibsem autoscript = pytest.importorskip( "autoscript_sdb_microscope_client", reason="Autoscript is not available." ) try: from autoscript_sdb_microscope_client import SdbMicroscopeClient microscope = Sdb...
31.763158
89
0.719553
0
0
0
0
1,225
0.253728
0
0
407
0.0843
6f2f4a5690de443a3e4f39e964bc36f35fd2bc86
8,206
py
Python
newnew.py
jennycs005/Skyscraper-App
53d69e005bec17a033be6ea1274e8f7372ed8b28
[ "MIT" ]
null
null
null
newnew.py
jennycs005/Skyscraper-App
53d69e005bec17a033be6ea1274e8f7372ed8b28
[ "MIT" ]
null
null
null
newnew.py
jennycs005/Skyscraper-App
53d69e005bec17a033be6ea1274e8f7372ed8b28
[ "MIT" ]
null
null
null
import streamlit as st import pandas as pd import matplotlib.pyplot as plt import csv import numpy as np import pydeck as pdk from PIL import Image def scatterplot(): skyscrapers_data = pd.read_csv("Skyscrapers2021.csv") completion_year_List = [] meters_List = [] for row in skyscrapers_data...
40.029268
115
0.598343
0
0
0
0
0
0
0
0
2,118
0.25071
6f2f4c53b7a08acbd2a5aec32456145e78be64d9
4,746
py
Python
cifar_train.py
usumfabricae/sagemaker-multi-model-endpoint-tensorflow-computer-vision
74a97ecc2fa9bf76c5543dfe23373a6c69c61647
[ "MIT-0" ]
4
2021-05-30T22:15:34.000Z
2022-03-12T23:01:36.000Z
cifar_train.py
usumfabricae/sagemaker-multi-model-endpoint-tensorflow-computer-vision
74a97ecc2fa9bf76c5543dfe23373a6c69c61647
[ "MIT-0" ]
null
null
null
cifar_train.py
usumfabricae/sagemaker-multi-model-endpoint-tensorflow-computer-vision
74a97ecc2fa9bf76c5543dfe23373a6c69c61647
[ "MIT-0" ]
3
2021-06-08T12:04:43.000Z
2021-06-12T13:44:48.000Z
from tensorflow.keras.layers import Conv2D, MaxPooling2D, Flatten, Dense, Dropout, BatchNormalization from tensorflow.keras.preprocessing.image import ImageDataGenerator from tensorflow.keras.callbacks import ModelCheckpoint from tensorflow.keras.models import Sequential from tensorflow.keras.models import load_model ...
37.370079
112
0.676991
0
0
0
0
0
0
0
0
1,066
0.22461
6f2fda5d1a7f7912eef13fc0ff8b8f413ac5c9a7
1,373
py
Python
corehq/form_processor/migrations/0049_case_attachment_props.py
kkrampa/commcare-hq
d64d7cad98b240325ad669ccc7effb07721b4d44
[ "BSD-3-Clause" ]
1
2020-05-05T13:10:01.000Z
2020-05-05T13:10:01.000Z
corehq/form_processor/migrations/0049_case_attachment_props.py
kkrampa/commcare-hq
d64d7cad98b240325ad669ccc7effb07721b4d44
[ "BSD-3-Clause" ]
1
2019-12-09T14:00:14.000Z
2019-12-09T14:00:14.000Z
corehq/form_processor/migrations/0049_case_attachment_props.py
MaciejChoromanski/commcare-hq
fd7f65362d56d73b75a2c20d2afeabbc70876867
[ "BSD-3-Clause" ]
5
2015-11-30T13:12:45.000Z
2019-07-01T19:27:07.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from __future__ import absolute_import from django.db import models, migrations import jsonfield.fields class Migration(migrations.Migration): dependencies = [ ('form_processor', '0048_attachment_content_length_blob_id'), ] operati...
29.212766
69
0.600874
1,201
0.874727
0
0
0
0
0
0
246
0.17917
6f30daadb871f9a5d1c444d73777bde40a45df2e
8,658
py
Python
src/utils/es_async.py
karawallace/mygene
35bf066eb50bc929b4bb4e2423d47b4c98797526
[ "Apache-2.0" ]
null
null
null
src/utils/es_async.py
karawallace/mygene
35bf066eb50bc929b4bb4e2423d47b4c98797526
[ "Apache-2.0" ]
null
null
null
src/utils/es_async.py
karawallace/mygene
35bf066eb50bc929b4bb4e2423d47b4c98797526
[ "Apache-2.0" ]
1
2018-11-17T08:53:06.000Z
2018-11-17T08:53:06.000Z
import re import json import tornado.web import tornado.httpclient tornado.httpclient.AsyncHTTPClient.configure("tornado.curl_httpclient.CurlAsyncHTTPClient") import tornadoes from utils.es import (ESQuery, ESQueryBuilder, MGQueryError, ElasticSearchException, ES_INDEX_NAME...
38.825112
136
0.524371
8,258
0.9538
0
0
678
0.078309
0
0
1,200
0.1386
6f31322afdaea5a169b7473328dfc029ea716e21
10,203
py
Python
processviz/test.py
jurgendn/processviz
82808a92662962f04c48673c9cf159d7bc904ff7
[ "BSD-3-Clause" ]
null
null
null
processviz/test.py
jurgendn/processviz
82808a92662962f04c48673c9cf159d7bc904ff7
[ "BSD-3-Clause" ]
null
null
null
processviz/test.py
jurgendn/processviz
82808a92662962f04c48673c9cf159d7bc904ff7
[ "BSD-3-Clause" ]
2
2020-03-19T11:14:13.000Z
2021-08-14T14:24:08.000Z
""" Thư viện này viết ra phục vụ cho môn học `Các mô hình ngẫu nhiên và ứng dụng` Sử dụng các thư viện `networkx, pandas, numpy, matplotlib` """ import networkx as nx import numpy as np import matplotlib.pyplot as plt from matplotlib.image import imread import pandas as pd def _gcd(a, b): if a == 0: retu...
32.287975
101
0.503283
9,750
0.944493
0
0
0
0
0
0
1,938
0.187736
6f319a2e3b23a21c6ff1ef69178d3b4bc2931b78
3,322
py
Python
src/check_results.py
jagwar/Sentiment-Analysis
312186c066c360ed4b3ebc9e999dba419f10e93c
[ "MIT" ]
null
null
null
src/check_results.py
jagwar/Sentiment-Analysis
312186c066c360ed4b3ebc9e999dba419f10e93c
[ "MIT" ]
null
null
null
src/check_results.py
jagwar/Sentiment-Analysis
312186c066c360ed4b3ebc9e999dba419f10e93c
[ "MIT" ]
null
null
null
import os import json import numpy as np import torch from torch.utils.data import DataLoader, RandomSampler, TensorDataset, SequentialSampler from transformers import CamembertTokenizer, CamembertForSequenceClassification import pandas as pd from tqdm import tqdm, trange # tokenizer = CamembertTokenizer.from_pretr...
40.024096
147
0.705298
0
0
0
0
0
0
0
0
875
0.263396
6f31bdd4727dd7111ae865267e15057fbd15d9fb
29
py
Python
Pacotes/ex022.py
TonyRio/Python-Exercicios
8a72d1b12418c6485794dae184425df0daf098bb
[ "MIT" ]
null
null
null
Pacotes/ex022.py
TonyRio/Python-Exercicios
8a72d1b12418c6485794dae184425df0daf098bb
[ "MIT" ]
null
null
null
Pacotes/ex022.py
TonyRio/Python-Exercicios
8a72d1b12418c6485794dae184425df0daf098bb
[ "MIT" ]
null
null
null
print (19 // 2 ) print( 19%2)
14.5
16
0.551724
0
0
0
0
0
0
0
0
0
0
6f32849e7bc2a9a3bdff91b0ea97b373245c40e0
934
py
Python
uscampgrounds/models.py
adamfast/geodjango-uscampgrounds
0ddcdfee44dd2cb3525bbf852e93a58e5429d0d8
[ "BSD-3-Clause" ]
1
2020-06-26T22:32:25.000Z
2020-06-26T22:32:25.000Z
uscampgrounds/models.py
adamfast/geodjango-uscampgrounds
0ddcdfee44dd2cb3525bbf852e93a58e5429d0d8
[ "BSD-3-Clause" ]
null
null
null
uscampgrounds/models.py
adamfast/geodjango-uscampgrounds
0ddcdfee44dd2cb3525bbf852e93a58e5429d0d8
[ "BSD-3-Clause" ]
null
null
null
from django.conf import settings from django.contrib.gis.db import models class Campground(models.Model): campground_code = models.CharField(max_length=64) name = models.CharField(max_length=256) campground_type = models.CharField(max_length=256) phone = models.CharField(max_length=256) comments = ...
35.923077
78
0.755889
589
0.630621
0
0
0
0
0
0
95
0.101713
6f34182931d744d711a9eaa391580c23eb3546c2
383
py
Python
blog/users/urls.py
simpleOnly1/blog
34343068318a64bd537e5862181e037fc4636247
[ "MIT" ]
null
null
null
blog/users/urls.py
simpleOnly1/blog
34343068318a64bd537e5862181e037fc4636247
[ "MIT" ]
null
null
null
blog/users/urls.py
simpleOnly1/blog
34343068318a64bd537e5862181e037fc4636247
[ "MIT" ]
null
null
null
#进行users 子应用的视图路由 from django.urls import path from users.views import RegisterView, ImageCodeView,SmsCodeView urlpatterns = [ #path的第一个参数:路由 #path的第二个函数:视图函数名 path('register/', RegisterView.as_view(),name='register'), #图片验证码的路由 path('imagecode/',ImageCodeView.as_view(),name='imagecode'), #短信...
25.533333
64
0.715405
0
0
0
0
0
0
0
0
211
0.449893
6f3478c403c5a4607452ef969c0985f21a247166
11,861
py
Python
src/config/fabric-ansible/ansible-playbooks/filter_plugins/import_lldp_info.py
EWERK-DIGITAL/tf-controller
311ea863b03d425a67d04d27c1f1b9cf1e20c926
[ "Apache-2.0" ]
null
null
null
src/config/fabric-ansible/ansible-playbooks/filter_plugins/import_lldp_info.py
EWERK-DIGITAL/tf-controller
311ea863b03d425a67d04d27c1f1b9cf1e20c926
[ "Apache-2.0" ]
null
null
null
src/config/fabric-ansible/ansible-playbooks/filter_plugins/import_lldp_info.py
EWERK-DIGITAL/tf-controller
311ea863b03d425a67d04d27c1f1b9cf1e20c926
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python from builtins import object from builtins import str import sys import traceback sys.path.append("/opt/contrail/fabric_ansible_playbooks/module_utils") # noqa from filter_utils import _task_done, _task_error_log, _task_log, FilterLog from job_manager.job_utils import JobVncApi class FilterModule...
39.802013
79
0.517073
11,558
0.974454
0
0
0
0
0
0
4,992
0.420875
6f355a92c02e0c6216729df9bbfec7b8bd8e4145
527
py
Python
src/shared/_menu.py
MarcSkovMadsen/awesome-panel-starter
b76854882a041c7b955a59785d08e167ffef07af
[ "Apache-2.0" ]
5
2021-01-04T16:39:09.000Z
2021-08-03T15:26:49.000Z
src/shared/_menu.py
MarcSkovMadsen/awesome-panel-starter
b76854882a041c7b955a59785d08e167ffef07af
[ "Apache-2.0" ]
6
2020-12-28T03:28:25.000Z
2021-09-11T13:07:51.000Z
src/shared/_menu.py
MarcSkovMadsen/awesome-panel-starter
b76854882a041c7b955a59785d08e167ffef07af
[ "Apache-2.0" ]
1
2021-09-15T20:08:44.000Z
2021-09-15T20:08:44.000Z
"""Provides the MENU html string which is appended to all templates Please note that the MENU only works in [Fast](https://www.fast.design/) based templates. If you need some sort of custom MENU html string feel free to customize this code. """ from awesome_panel_extensions.frameworks.fast.fast_menu import to_menu f...
31
89
0.73814
0
0
0
0
0
0
0
0
260
0.493359
6f35c3c4af214e988cae123b40970464d22b95ab
1,909
py
Python
prediction-api/app.py
BrokenImage/raptor-api
2cafc7fedf883a730d22dc0e2898f531d20fedf2
[ "MIT", "Unlicense" ]
null
null
null
prediction-api/app.py
BrokenImage/raptor-api
2cafc7fedf883a730d22dc0e2898f531d20fedf2
[ "MIT", "Unlicense" ]
null
null
null
prediction-api/app.py
BrokenImage/raptor-api
2cafc7fedf883a730d22dc0e2898f531d20fedf2
[ "MIT", "Unlicense" ]
null
null
null
import os import boto3 import numpy as np import tensorflow as tf from flask import Flask from dotenv import load_dotenv from pymongo import MongoClient from keras.models import load_model from sklearn.preprocessing import LabelEncoder from werkzeug.datastructures import FileStorage from werkzeug.middleware.proxy_fix i...
30.790323
103
0.736511
595
0.311682
0
0
618
0.32373
0
0
316
0.165532
6f35ce7e4cec8e809fb6bd6d1db0395eade06403
633
py
Python
misc/fill_blanks.py
netotz/codecamp
ff6b5ce1af1d99bbb00f7e095ca6beac92020b1c
[ "Unlicense" ]
null
null
null
misc/fill_blanks.py
netotz/codecamp
ff6b5ce1af1d99bbb00f7e095ca6beac92020b1c
[ "Unlicense" ]
null
null
null
misc/fill_blanks.py
netotz/codecamp
ff6b5ce1af1d99bbb00f7e095ca6beac92020b1c
[ "Unlicense" ]
1
2020-04-05T06:22:18.000Z
2020-04-05T06:22:18.000Z
# Given an array containing None values fill in the None values with most recent # non None value in the array from random import random def generate_sample(n): rand = 0.9 while n: yield int(rand * 10) if rand % 1 > 1 / 3 else None rand = random() n -= 1 def fill1(array): for i i...
22.607143
81
0.593997
0
0
149
0.235387
0
0
0
0
110
0.173776
6f37404f1493e37478a90fbc8c755991983fccf9
3,836
py
Python
beast/tests/helpers.py
marthaboyer/beast
1ca71fb64ab60827e4e4e1937b64f319a98166c3
[ "BSD-3-Clause" ]
null
null
null
beast/tests/helpers.py
marthaboyer/beast
1ca71fb64ab60827e4e4e1937b64f319a98166c3
[ "BSD-3-Clause" ]
null
null
null
beast/tests/helpers.py
marthaboyer/beast
1ca71fb64ab60827e4e4e1937b64f319a98166c3
[ "BSD-3-Clause" ]
null
null
null
# useful functions for BEAST tests # put here instead of having in every tests import os.path import numpy as np import h5py from astropy.io import fits from astropy.utils.data import download_file __all__ = ['download_rename', 'compare_tables', 'compare_fits', 'compare_hdf5'] def download_rename(filena...
31.966667
75
0.533889
0
0
0
0
0
0
0
0
1,257
0.327685
6f38b06f669b537017b964e2c9d9bddd9b904d47
78,772
py
Python
sdk/storage/azure-storage-blob/azure/storage/blob/_generated/aio/operations/_page_blob_operations.py
jalauzon-msft/azure-sdk-for-python
15967f5c6d3376f2334a382486ba86339786e028
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/storage/azure-storage-blob/azure/storage/blob/_generated/aio/operations/_page_blob_operations.py
ellhe-blaster/azure-sdk-for-python
82193ba5e81cc5e5e5a5239bba58abe62e86f469
[ "MIT" ]
null
null
null
sdk/storage/azure-storage-blob/azure/storage/blob/_generated/aio/operations/_page_blob_operations.py
ellhe-blaster/azure-sdk-for-python
82193ba5e81cc5e5e5a5239bba58abe62e86f469
[ "MIT" ]
null
null
null
# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRe...
54.551247
319
0.692441
77,261
0.980818
0
0
75,690
0.960874
75,429
0.957561
34,411
0.436843
6f38ecb37fdc239d1019da968ae8c9a2467372bc
4,494
py
Python
Win_Source/ESP_Autostart.py
maschhoff/ESP32-433Mhz-Receiver-and-Tools
a7cb8c0740054650d38444781d2b7b6c18779a29
[ "MIT" ]
3
2020-11-29T18:38:48.000Z
2022-02-23T15:13:56.000Z
Win_Source/ESP_Autostart.py
maschhoff/ESP32-433Mhz-Receiver-and-Tools
a7cb8c0740054650d38444781d2b7b6c18779a29
[ "MIT" ]
null
null
null
Win_Source/ESP_Autostart.py
maschhoff/ESP32-433Mhz-Receiver-and-Tools
a7cb8c0740054650d38444781d2b7b6c18779a29
[ "MIT" ]
2
2021-07-25T18:03:12.000Z
2021-07-26T11:50:14.000Z
# Detlev Aschhoff info@vmais.de # The MIT License (MIT) # # Copyright (c) 2020 # # # 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...
29.372549
86
0.574099
0
0
0
0
0
0
0
0
1,962
0.436582
6f392ad202bb9d010a7064f5991bc4aec4981e22
212
py
Python
app/core/apps.py
KarimTayie/djangoadmin-test
7218866dbf72ae580e605d2f32601557efe1baca
[ "MIT" ]
null
null
null
app/core/apps.py
KarimTayie/djangoadmin-test
7218866dbf72ae580e605d2f32601557efe1baca
[ "MIT" ]
1
2019-12-18T16:01:44.000Z
2019-12-18T16:01:44.000Z
app/core/apps.py
KarimTayie/djangoadmin-test
7218866dbf72ae580e605d2f32601557efe1baca
[ "MIT" ]
null
null
null
from django.apps import AppConfig from django.contrib.admin.apps import AdminConfig class CoreConfig(AppConfig): name = "core" class AppAdminConfig(AdminConfig): default_site = "core.admin.AppAdmin"
17.666667
49
0.768868
121
0.570755
0
0
0
0
0
0
27
0.127358
6f3a244598ce08d2133e90a30870681650f7eccc
1,249
py
Python
spike/compiler/Node.py
spikeio/lang
33be3b51eaf22f873ddc94f2f9e381f605a2499f
[ "BSD-2-Clause" ]
1
2020-06-15T07:38:12.000Z
2020-06-15T07:38:12.000Z
spike/compiler/Node.py
spikeio/lang
33be3b51eaf22f873ddc94f2f9e381f605a2499f
[ "BSD-2-Clause" ]
1
2021-11-12T11:01:45.000Z
2021-11-12T11:01:45.000Z
spike/compiler/Node.py
spikeio/lang
33be3b51eaf22f873ddc94f2f9e381f605a2499f
[ "BSD-2-Clause" ]
null
null
null
class Node(object): # XXX: legacy code support kind = property(lambda self: self.__class__) def _iterChildren(self): for name in self.childAttrNames: yield (name, getattr(self, name)) return children = property(_iterChildren) def dump(self, stream, indent=0): ...
27.152174
75
0.5004
1,246
0.997598
126
0.100881
0
0
0
0
201
0.160929
6f3bc48d07d6db347089edf80b48b6fd74fd6c76
2,108
py
Python
download_cifar100_teacher.py
valeoai/QuEST
02a23d2d8e0d059b4a30433f92eec5db146467f4
[ "Apache-2.0" ]
3
2021-06-03T22:45:47.000Z
2022-03-27T18:50:06.000Z
download_cifar100_teacher.py
valeoai/QuEST
02a23d2d8e0d059b4a30433f92eec5db146467f4
[ "Apache-2.0" ]
null
null
null
download_cifar100_teacher.py
valeoai/QuEST
02a23d2d8e0d059b4a30433f92eec5db146467f4
[ "Apache-2.0" ]
1
2021-08-20T15:39:40.000Z
2021-08-20T15:39:40.000Z
import os import urllib.request os.makedirs('saved_models', exist_ok=True) model_path = 'http://shape2prog.csail.mit.edu/repo/wrn_40_2_vanilla/ckpt_epoch_240.pth' model_dir = 'saved_models/wrn_40_2_vanilla' os.makedirs(model_dir, exist_ok=True) urllib.request.urlretrieve(model_path, os.path.join(model_dir, mo...
51.414634
91
0.766129
0
0
0
0
0
0
0
0
1,034
0.490512
6f3bd5a39dfdffc25d3e3bcdbc5be1926e9811b6
48
py
Python
aliyunsdkcore/__init__.py
gikoluo/aliyun-python-sdk-core
5c4e79ad5f7668af048ae1a18d424c4919131a9c
[ "MIT" ]
null
null
null
aliyunsdkcore/__init__.py
gikoluo/aliyun-python-sdk-core
5c4e79ad5f7668af048ae1a18d424c4919131a9c
[ "MIT" ]
null
null
null
aliyunsdkcore/__init__.py
gikoluo/aliyun-python-sdk-core
5c4e79ad5f7668af048ae1a18d424c4919131a9c
[ "MIT" ]
4
2017-07-27T11:27:01.000Z
2020-09-01T07:49:21.000Z
__author__ = 'alex jiang' __version__ = '2.3.3'
16
25
0.6875
0
0
0
0
0
0
0
0
19
0.395833
6f3cd19601af3a6ec8e27fb00bfee8d9af472214
95,791
py
Python
leaderboard/scenarios/background_activity.py
casper-auto/leaderboard
111a48f9099c08a2f1068ee8aea2ad56ce52ef9d
[ "MIT" ]
68
2020-03-25T10:04:21.000Z
2022-03-21T01:03:39.000Z
leaderboard/scenarios/background_activity.py
casper-auto/leaderboard
111a48f9099c08a2f1068ee8aea2ad56ce52ef9d
[ "MIT" ]
32
2020-06-16T22:11:05.000Z
2022-03-24T09:35:48.000Z
leaderboard/scenarios/background_activity.py
casper-auto/leaderboard
111a48f9099c08a2f1068ee8aea2ad56ce52ef9d
[ "MIT" ]
40
2020-03-21T23:43:39.000Z
2022-01-03T14:04:31.000Z
#!/usr/bin/env python # # This work is licensed under the terms of the MIT license. # For a copy, see <https://opensource.org/licenses/MIT>. """ Scenario spawning elements to make the town dynamic and interesting """ import math from collections import OrderedDict import py_trees import numpy as np import carla fr...
44.741242
120
0.608784
91,784
0.958149
0
0
0
0
0
0
18,687
0.195077
6f3d6d699afb7966b9d1c11324477310b224dc24
502
py
Python
Python/Interfacing_C_C++_Fortran/F2py/comp_pi_f2py.py
Gjacquenot/training-material
16b29962bf5683f97a1072d961dd9f31e7468b8d
[ "CC-BY-4.0" ]
115
2015-03-23T13:34:42.000Z
2022-03-21T00:27:21.000Z
Python/Interfacing_C_C++_Fortran/F2py/comp_pi_f2py.py
Gjacquenot/training-material
16b29962bf5683f97a1072d961dd9f31e7468b8d
[ "CC-BY-4.0" ]
56
2015-02-25T15:04:26.000Z
2022-01-03T07:42:48.000Z
Python/Interfacing_C_C++_Fortran/F2py/comp_pi_f2py.py
Gjacquenot/training-material
16b29962bf5683f97a1072d961dd9f31e7468b8d
[ "CC-BY-4.0" ]
59
2015-11-26T11:44:51.000Z
2022-03-21T00:27:22.000Z
#!/usr/bin/env python from argparse import ArgumentParser import sys from comp_pi import compute_pi def main(): arg_parser = ArgumentParser(description='compute pi using Fortran ' 'function') arg_parser.add_argument('n', default=1000, nargs='?', hel...
25.1
71
0.62749
0
0
0
0
0
0
0
0
99
0.197211
6f3d81cff53a00e04f111ddf20aa94a2c2b57bda
3,885
py
Python
test/lazy/test_cat_lazy_tensor.py
Mehdishishehbor/gpytorch
432e537b3f6679ea4ab3acf33b14626b7e161c92
[ "MIT" ]
null
null
null
test/lazy/test_cat_lazy_tensor.py
Mehdishishehbor/gpytorch
432e537b3f6679ea4ab3acf33b14626b7e161c92
[ "MIT" ]
null
null
null
test/lazy/test_cat_lazy_tensor.py
Mehdishishehbor/gpytorch
432e537b3f6679ea4ab3acf33b14626b7e161c92
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import unittest import torch from Lgpytorch.lazy import CatLazyTensor, NonLazyTensor from Lgpytorch.test.lazy_tensor_test_case import LazyTensorTestCase class TestCatLazyTensor(LazyTensorTestCase, unittest.TestCase): seed = 1 def create_lazy_tensor(self): root = torch.randn(...
31.844262
73
0.667954
3,642
0.937452
0
0
0
0
0
0
142
0.036551
6f3d9e5be4e02104620356819d1fd22753eef212
3,349
py
Python
dbSchema.py
zikasak/ReadOnlyBot
912403a5d6386c1ce691bbe22dad660af49b26e8
[ "MIT" ]
1
2020-12-17T20:50:29.000Z
2020-12-17T20:50:29.000Z
dbSchema.py
zikasak/ReadOnlyBot
912403a5d6386c1ce691bbe22dad660af49b26e8
[ "MIT" ]
null
null
null
dbSchema.py
zikasak/ReadOnlyBot
912403a5d6386c1ce691bbe22dad660af49b26e8
[ "MIT" ]
null
null
null
import datetime from sqlalchemy import Column, Integer, Boolean, ForeignKey, String, DateTime, UniqueConstraint, ForeignKeyConstraint from sqlalchemy.orm import relationship from dbConfig import Base, engine class GroupStatus(Base): __tablename__ = "groupstatus" id = Column(Integer, primary_key=True) sta...
40.349398
121
0.701702
3,088
0.922066
0
0
0
0
0
0
602
0.179755
6f3e4697377cf878d0a79c14a88b2faa221afbab
2,224
py
Python
dqn/dqn_noisy_networks/model.py
AgentMaker/Paddle-RLBooks
2e879f7ec3befa2058f0181e205b790d47770a85
[ "Apache-2.0" ]
127
2021-03-22T07:34:43.000Z
2022-02-04T13:33:15.000Z
dqn/dqn_noisy_networks/model.py
WhiteFireFox/Paddle-RLBooks
1a6add1d01b1bab08bb9d246fcd6ab852a43c18c
[ "Apache-2.0" ]
1
2021-05-16T09:51:07.000Z
2021-05-16T09:51:07.000Z
dqn/dqn_noisy_networks/model.py
WhiteFireFox/Paddle-RLBooks
1a6add1d01b1bab08bb9d246fcd6ab852a43c18c
[ "Apache-2.0" ]
16
2021-04-03T05:31:30.000Z
2022-03-26T07:53:49.000Z
import paddle import paddle.nn as nn import paddle.nn.functional as F from paddle.nn.initializer import Assign import math class NoisyLinear(nn.Linear): def __init__(self, in_features, out_features, sigma_zero=0.4, bias=True): super(NoisyLinear, self).__init__(in_features, out_features) sigma_init ...
38.344828
131
0.619155
2,096
0.942446
0
0
0
0
0
0
57
0.025629
6f3fea7c8f1bfc40279f3c4ea0ed4489009162a1
50
py
Python
players/__init__.py
lejbron/arkenstone
d5341c27ba81eaf116e5ee5983b4fa422437d294
[ "MIT" ]
null
null
null
players/__init__.py
lejbron/arkenstone
d5341c27ba81eaf116e5ee5983b4fa422437d294
[ "MIT" ]
4
2021-03-17T19:46:35.000Z
2021-04-09T11:37:53.000Z
players/__init__.py
lejbron/arkenstone
d5341c27ba81eaf116e5ee5983b4fa422437d294
[ "MIT" ]
1
2021-04-11T07:50:56.000Z
2021-04-11T07:50:56.000Z
default_app_config = 'players.apps.PlayersConfig'
25
49
0.84
0
0
0
0
0
0
0
0
28
0.56
6f405d7dc1023a5440b606895121fbd0e2262df7
1,631
py
Python
forte/utils/utils_io.py
swapnull7/forte
737a72afd440d40c3826c3a7c5e4e44235c0f701
[ "Apache-2.0" ]
2
2021-01-01T12:07:27.000Z
2021-09-10T03:57:18.000Z
forte/utils/utils_io.py
swapnull7/forte
737a72afd440d40c3826c3a7c5e4e44235c0f701
[ "Apache-2.0" ]
null
null
null
forte/utils/utils_io.py
swapnull7/forte
737a72afd440d40c3826c3a7c5e4e44235c0f701
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The Forte 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 ...
24.343284
77
0.660331
0
0
0
0
0
0
0
0
948
0.581239
6f4276bb292fddfa79fdb894416964ab4cf57b3a
4,834
py
Python
src/AFN.py
mbampi/LinguagensRegulares
1fc7fbcc21053577bbeb1f71e742aee3a48f2188
[ "MIT" ]
null
null
null
src/AFN.py
mbampi/LinguagensRegulares
1fc7fbcc21053577bbeb1f71e742aee3a48f2188
[ "MIT" ]
null
null
null
src/AFN.py
mbampi/LinguagensRegulares
1fc7fbcc21053577bbeb1f71e742aee3a48f2188
[ "MIT" ]
null
null
null
import re from AFD import AFD class AFN: def __init__(self, nome=None, estados=[], simbolos=[], estado_inicial=None, estados_finais=[], funcoes_programa={}): self.nome = nome self.estados = estados self.simbolos = simbolos self.estado_inicial = estado_inicial self.estados...
37.184615
156
0.528962
4,800
0.992966
0
0
2,510
0.519239
0
0
599
0.123914
6f428bd943ae35a4fd79dc7877617c8e0b05143f
11,348
py
Python
cs_tools/tools/_searchable-dependencies/app.py
thoughtspot/cs_tools
7b516476be94adf7f121645b7c3fc7206fdae4ca
[ "MIT" ]
1
2022-03-14T19:04:53.000Z
2022-03-14T19:04:53.000Z
cs_tools/tools/_searchable-dependencies/app.py
thoughtspot/cs_tools
7b516476be94adf7f121645b7c3fc7206fdae4ca
[ "MIT" ]
10
2021-06-01T14:34:52.000Z
2022-03-24T00:47:47.000Z
cs_tools/tools/_searchable-dependencies/app.py
thoughtspot/cs_tools
7b516476be94adf7f121645b7c3fc7206fdae4ca
[ "MIT" ]
null
null
null
from typing import List, Dict import pathlib import shutil import enum from typer import Option as O_ import typer from cs_tools.helpers.cli_ux import console, frontend, CSToolsGroup, CSToolsCommand from cs_tools.util.datetime import to_datetime from cs_tools.tools.common import run_tql_command, run_tql_script, tsloa...
36.371795
139
0.607684
829
0.073053
0
0
3,684
0.324639
0
0
4,197
0.369845
6f454cefd9a2976b1fecad345694dd6dc38f8205
6,098
py
Python
bots/philBots.py
phyxl/GameOfPureStrategy
95ec7b1cb0c85dbdd4da315dac02d12d5d9c1a6a
[ "MIT" ]
null
null
null
bots/philBots.py
phyxl/GameOfPureStrategy
95ec7b1cb0c85dbdd4da315dac02d12d5d9c1a6a
[ "MIT" ]
null
null
null
bots/philBots.py
phyxl/GameOfPureStrategy
95ec7b1cb0c85dbdd4da315dac02d12d5d9c1a6a
[ "MIT" ]
null
null
null
#!/usr/bin/python import math import random from utils.log import log from bots.simpleBots import BasicBot def get_Chosen(num_cards, desired_score): chosen = list(range(1,num_cards+1)) last_removed = 0 while sum(chosen) > desired_score: #remove a random element last_removed = random.randint(0,len(chosen)-1) ...
38.594937
130
0.735323
5,659
0.928009
0
0
0
0
0
0
2,389
0.391768
6f459b6385eeaec430778e2b8c2a198dc774b06f
1,280
py
Python
tests/ws/TestWebsocketRegisterAgent.py
sinri/nehushtan
6fda496e16a8d443a86c617173d35f31c392beb6
[ "MIT" ]
null
null
null
tests/ws/TestWebsocketRegisterAgent.py
sinri/nehushtan
6fda496e16a8d443a86c617173d35f31c392beb6
[ "MIT" ]
1
2020-11-20T03:10:23.000Z
2020-11-20T09:30:34.000Z
tests/ws/TestWebsocketRegisterAgent.py
sinri/nehushtan
6fda496e16a8d443a86c617173d35f31c392beb6
[ "MIT" ]
1
2021-10-13T10:16:58.000Z
2021-10-13T10:16:58.000Z
import uuid from typing import Dict, List from nehushtan.ws.NehushtanWebsocketConnectionEntity import NehushtanWebsocketConnectionEntity class TestWebsocketRegisterAgent: def __init__(self): self.__map: Dict[str, NehushtanWebsocketConnectionEntity] = {} self.agent_identity = str(uuid.uuid4()) ...
36.571429
99
0.682813
1,139
0.889844
0
0
0
0
0
0
303
0.236719
6f47b4b418f600c91349bca3f946db81bd280d01
470
py
Python
decorator_pattern/starbuzz/condiment.py
garyeechung/design-pattern-practice
00ca66b79773de06c2d043c33caf37cb5f40a507
[ "MIT" ]
2
2021-02-25T06:04:34.000Z
2021-02-25T06:13:48.000Z
decorator_pattern/starbuzz/condiment.py
garyeechung/design-pattern-practice
00ca66b79773de06c2d043c33caf37cb5f40a507
[ "MIT" ]
1
2021-02-17T16:45:58.000Z
2021-02-23T12:54:39.000Z
decorator_pattern/starbuzz/condiment.py
garyeechung/design-pattern-practice
00ca66b79773de06c2d043c33caf37cb5f40a507
[ "MIT" ]
null
null
null
from .interface import Beverage, CondimentDecorator class Mocha(CondimentDecorator): def __init__(self, beverage: Beverage): super().__init__(beverage) self._cost = 0.2 class Whip(CondimentDecorator): def __init__(self, beverage: Beverage): super().__init__(beverage) self._...
20.434783
51
0.67234
409
0.870213
0
0
0
0
0
0
0
0
6f480b5d92cd89679ad9577e9f8230981a8ae4ea
1,641
py
Python
src/geo_testing/test_scripts/psgs_big.py
hpgl/hpgl
72d8c4113c242295de740513093f5779c94ba84a
[ "BSD-3-Clause" ]
70
2015-01-21T12:24:50.000Z
2022-03-16T02:10:45.000Z
src/geo_testing/test_scripts/psgs_big.py
hpgl/hpgl
72d8c4113c242295de740513093f5779c94ba84a
[ "BSD-3-Clause" ]
8
2015-04-22T13:14:30.000Z
2021-11-23T12:16:32.000Z
src/geo_testing/test_scripts/psgs_big.py
hpgl/hpgl
72d8c4113c242295de740513093f5779c94ba84a
[ "BSD-3-Clause" ]
18
2015-02-15T18:04:31.000Z
2021-01-16T08:54:32.000Z
# # # Copyright 2009 HPGL Team # # This file is part of HPGL (High Perfomance Geostatistics Library). # # HPGL 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, version 2 of the License. # # HPGL is ...
33.489796
229
0.702011
0
0
0
0
0
0
0
0
1,033
0.629494
6f484367a2e17cf732eb810bd88c47b5caccd1c1
166
py
Python
app/src/constants.py
hubacekjirka/dailyPhotoTwitterBot
abd490b73603883d4e71bfa6076e9925a055fcb7
[ "MIT" ]
1
2020-03-16T10:51:07.000Z
2020-03-16T10:51:07.000Z
app/src/constants.py
hubacekjirka/dailyPhotoTwitterBot
abd490b73603883d4e71bfa6076e9925a055fcb7
[ "MIT" ]
6
2019-08-11T10:00:36.000Z
2021-06-02T00:18:58.000Z
app/src/constants.py
hubacekjirka/dailyPhotoTwitterBot
abd490b73603883d4e71bfa6076e9925a055fcb7
[ "MIT" ]
2
2019-09-30T18:45:47.000Z
2021-01-09T10:38:14.000Z
friendly_camera_mapping = { "GM1913": "Oneplus 7 Pro", "FC3170": "Mavic Air 2", # An analogue scanner in FilmNeverDie "SP500": "Canon AE-1 Program" }
23.714286
41
0.638554
0
0
0
0
0
0
0
0
108
0.650602
6f486f62f9567ab5d28e26f5db6697fa139744ec
1,622
py
Python
refined/refinement_types.py
espetro/refined
c2f38418268e8d89634ede1265d869d8d54dc9d4
[ "MIT" ]
4
2021-10-04T19:53:04.000Z
2021-12-17T07:08:42.000Z
refined/refinement_types.py
espetro/refined
c2f38418268e8d89634ede1265d869d8d54dc9d4
[ "MIT" ]
null
null
null
refined/refinement_types.py
espetro/refined
c2f38418268e8d89634ede1265d869d8d54dc9d4
[ "MIT" ]
null
null
null
from typing_extensions import Annotated, TypeGuard from typing import TypeVar, List, Set, Dict from refined.predicates import ( PositivePredicate, NegativePredicate, ValidIntPredicate, ValidFloatPredicate, EmptyPredicate, NonEmptyPredicate, TrimmedPredicate, IPv4Predicate, IPv6Predi...
25.34375
75
0.727497
0
0
0
0
0
0
0
0
281
0.173243
6f4befaddb9a5f3e1b6a96cd0450bb3e135fa72a
1,151
py
Python
setup.py
evamvid/SpotPRIS2
4def72c626ac4184fbfb5741ae1f5616f9c34245
[ "MIT" ]
null
null
null
setup.py
evamvid/SpotPRIS2
4def72c626ac4184fbfb5741ae1f5616f9c34245
[ "MIT" ]
null
null
null
setup.py
evamvid/SpotPRIS2
4def72c626ac4184fbfb5741ae1f5616f9c34245
[ "MIT" ]
null
null
null
from setuptools import setup with open("README.md", "r") as f: long_description = f.read() setup(name="SpotPRIS2", version='0.3.1', author="Adrian Freund", author_email="adrian@freund.io", url="https://github.com/freundTech/SpotPRIS2", description="MPRIS2 interface for Spotify Connec...
31.972222
66
0.569939
0
0
0
0
0
0
0
0
586
0.509123
6f4c1702195066e993129a8eb57596bee6bd8234
2,371
py
Python
partycipe/migrations/0001_initial.py
spexxsoldier51/PartyCipe
5b8038db408fca1e1d568d6520daaf04889ccef0
[ "CC0-1.0" ]
null
null
null
partycipe/migrations/0001_initial.py
spexxsoldier51/PartyCipe
5b8038db408fca1e1d568d6520daaf04889ccef0
[ "CC0-1.0" ]
null
null
null
partycipe/migrations/0001_initial.py
spexxsoldier51/PartyCipe
5b8038db408fca1e1d568d6520daaf04889ccef0
[ "CC0-1.0" ]
null
null
null
# Generated by Django 4.0.3 on 2022-04-02 17:32 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ...
43.907407
126
0.578237
2,204
0.929566
0
0
0
0
0
0
307
0.129481
6f4c2801d9bd553871475afb7b65130adbc0816c
7,963
py
Python
raster_statistic.py
Summer0328/DeeplabforRS
e2f7fcee7a226bcf4ac0dfe481e5559cbd86c602
[ "MIT" ]
3
2019-02-03T00:11:34.000Z
2020-12-08T03:12:29.000Z
raster_statistic.py
Summer0328/DeeplabforRS
e2f7fcee7a226bcf4ac0dfe481e5559cbd86c602
[ "MIT" ]
null
null
null
raster_statistic.py
Summer0328/DeeplabforRS
e2f7fcee7a226bcf4ac0dfe481e5559cbd86c602
[ "MIT" ]
8
2019-03-08T03:20:24.000Z
2021-12-29T09:12:54.000Z
#!/usr/bin/env python # Filename: raster_statistic """ introduction: conduct statistic based on vectos, similar to https://github.com/perrygeo/python-rasterstats, # but allow image tiles (multi-raster). authors: Huang Lingcao email:huanglingcao@gmail.com add time: 02 March, 2021 """ import os,sys import ve...
39.034314
128
0.672485
0
0
0
0
0
0
0
0
2,253
0.282934
6f4f6ae38349e41996b32d4d35373858a72fda8b
1,226
py
Python
ariadne/old/defutils.py
microns-ariadne/ariadne-pipeline-test-harness
73e749c48d1ff103fee2044833778e33c70be73b
[ "MIT" ]
2
2016-03-15T15:07:06.000Z
2016-05-10T23:01:05.000Z
ariadne/old/defutils.py
microns-ariadne/ariadne-pipeline-test-harness
73e749c48d1ff103fee2044833778e33c70be73b
[ "MIT" ]
null
null
null
ariadne/old/defutils.py
microns-ariadne/ariadne-pipeline-test-harness
73e749c48d1ff103fee2044833778e33c70be73b
[ "MIT" ]
null
null
null
# Defutils.py -- Contains parsing functions for definition files. # Produces an organized list of tokens in the file. def parse(filename): f=open(filename, "r") contents=f.read() f.close() # Tokenize the file: #contents=contents.replace('\t', '\n') lines=contents.splitlines() outList=[] ...
22.703704
65
0.596248
411
0.335237
0
0
0
0
0
0
304
0.247961
6f501da078c8264f3aa97dd237a4fd33b8efc2d3
492
py
Python
qnap_locate_parser.py
killruana/snippets
c4c63dc61c727cce53fd44175bdf0dbaa6ca2b3e
[ "WTFPL" ]
null
null
null
qnap_locate_parser.py
killruana/snippets
c4c63dc61c727cce53fd44175bdf0dbaa6ca2b3e
[ "WTFPL" ]
null
null
null
qnap_locate_parser.py
killruana/snippets
c4c63dc61c727cce53fd44175bdf0dbaa6ca2b3e
[ "WTFPL" ]
null
null
null
#!/usr/bin/env python3 import json import sys import clize def get_file_handler(input_file): if input_file is None: return sys.stdin return open(input_file, 'r') @clize.clize def main(input_file=None): result = {'datas': []} with get_file_handler(input_file) as input_han...
17.571429
56
0.628049
0
0
0
0
237
0.481707
0
0
60
0.121951
6f51e1b0451d36b7c6fa181d10bcac54b6aff907
2,254
py
Python
evennia/contrib/tutorial_examples/mirror.py
lootcrawl/evennia
a5f736ca0ff89e4f7da7d3f89a8886f1ea3698aa
[ "BSD-3-Clause" ]
null
null
null
evennia/contrib/tutorial_examples/mirror.py
lootcrawl/evennia
a5f736ca0ff89e4f7da7d3f89a8886f1ea3698aa
[ "BSD-3-Clause" ]
null
null
null
evennia/contrib/tutorial_examples/mirror.py
lootcrawl/evennia
a5f736ca0ff89e4f7da7d3f89a8886f1ea3698aa
[ "BSD-3-Clause" ]
null
null
null
""" TutorialMirror A simple mirror object to experiment with. """ from evennia import DefaultObject from evennia.utils import make_iter, is_iter from evennia import logger class TutorialMirror(DefaultObject): """ A simple mirror object that - echoes back the description of the object looking at it ...
35.777778
96
0.612689
2,076
0.921029
0
0
0
0
0
0
1,556
0.690328
6f52486edca89f5433834a3b9b6ee311e8cbfc7a
1,087
py
Python
python/patternlock.py
Floozutter/silly
8273b4a33e2001c0a530e859c12dbc30b9590a94
[ "Unlicense" ]
null
null
null
python/patternlock.py
Floozutter/silly
8273b4a33e2001c0a530e859c12dbc30b9590a94
[ "Unlicense" ]
null
null
null
python/patternlock.py
Floozutter/silly
8273b4a33e2001c0a530e859c12dbc30b9590a94
[ "Unlicense" ]
null
null
null
from tkinter import Tk from turtle import ScrolledCanvas, TurtleScreen, RawTurtle DIGIT2POS = dict(zip( "123456789", ((100 * (j - 1), 100 * (-i + 1)) for i in range(3) for j in range(3)) )) def draw_dots(turt: RawTurtle) -> None: penstate = turt.pen() turt.penup() for x, y in DIGIT2POS.values(): ...
25.880952
73
0.618215
0
0
0
0
0
0
0
0
31
0.028519
6f52a901e875d32b20f9451889c4b2196619f283
3,879
py
Python
synthesizing/gui/python-portmidi-0.0.7/test_pyportmidi.py
Chiel92/MusicTheory
ddaaa60042c2db3522144e90ceabcd1bbd9818c3
[ "MIT" ]
null
null
null
synthesizing/gui/python-portmidi-0.0.7/test_pyportmidi.py
Chiel92/MusicTheory
ddaaa60042c2db3522144e90ceabcd1bbd9818c3
[ "MIT" ]
null
null
null
synthesizing/gui/python-portmidi-0.0.7/test_pyportmidi.py
Chiel92/MusicTheory
ddaaa60042c2db3522144e90ceabcd1bbd9818c3
[ "MIT" ]
null
null
null
#!/usr/bin/env python # test code for PyPortMidi # a port of a subset of test.c provided with PortMidi # John Harrison # harrison [at] media [dot] mit [dot] edu # March 15, 2005: accommodate for SysEx messages and preferred list formats # SysEx test code contributed by Markus Pfaff # February 27, 2005...
38.405941
105
0.63109
0
0
0
0
0
0
0
0
1,672
0.431039
6f541abd19a1111ebb51682e3f0933b11c46ab1e
1,043
py
Python
cnn_model/Compute_accuarcy.py
csJd/dg_text_contest_2018
24bf8ded51841ebc1b1487f239471d65ee1a2b18
[ "MIT" ]
null
null
null
cnn_model/Compute_accuarcy.py
csJd/dg_text_contest_2018
24bf8ded51841ebc1b1487f239471d65ee1a2b18
[ "MIT" ]
null
null
null
cnn_model/Compute_accuarcy.py
csJd/dg_text_contest_2018
24bf8ded51841ebc1b1487f239471d65ee1a2b18
[ "MIT" ]
null
null
null
#coding=utf-8 import pandas as pd def get_labels(init_file,predict_file): init_label = [] predict_label = [] pd_init = pd.read_csv(init_file,sep="^",header=None) for index,row in pd_init.iterrows(): init_label.append(row[0]) pd_predict = pd.read_csv(predict_file,sep=",",header=None) ...
21.729167
121
0.663471
0
0
0
0
0
0
0
0
158
0.151486
6f54410348912d7242d35c3b0676a8ad9e832eda
1,219
py
Python
ex01/arquivo/__init__.py
duartele/exerc-python
fc149a5bcd0686ba4cad87e95277658f9bbdc63b
[ "MIT" ]
null
null
null
ex01/arquivo/__init__.py
duartele/exerc-python
fc149a5bcd0686ba4cad87e95277658f9bbdc63b
[ "MIT" ]
null
null
null
ex01/arquivo/__init__.py
duartele/exerc-python
fc149a5bcd0686ba4cad87e95277658f9bbdc63b
[ "MIT" ]
null
null
null
from ex01.funcoes import * def arqExiste(nome): try: a = open(nome, 'rt') #rt = read text a.close() except FileNotFoundError: return False else: return True def criarArq(nome): try: a = open(nome, 'wt+') #wt = write text and + = create one if it not exists ...
23
82
0.528302
0
0
0
0
0
0
0
0
398
0.326497
6f54793f102a2f9346990845e8357d9f1db537d3
4,330
py
Python
ck_airport.py
58565856/checkinpanel
58f2292d9c4d65f15ffd6bc4fa4b9f23214d3d72
[ "MIT" ]
3
2022-02-08T16:11:43.000Z
2022-03-23T16:18:59.000Z
ck_airport.py
58565856/checkinpanel
58f2292d9c4d65f15ffd6bc4fa4b9f23214d3d72
[ "MIT" ]
null
null
null
ck_airport.py
58565856/checkinpanel
58f2292d9c4d65f15ffd6bc4fa4b9f23214d3d72
[ "MIT" ]
2
2022-02-01T05:35:56.000Z
2022-02-10T01:37:38.000Z
# -*- coding: utf-8 -*- """ :author @Icrons cron: 20 10 * * * new Env('机场签到'); """ import json import re import traceback import requests import urllib3 from notify_mtr import send from utils import get_data urllib3.disable_warnings() class SspanelQd(object): def __init__(self, check_items): self.chec...
31.151079
138
0.505081
4,271
0.90911
0
0
3,643
0.775436
0
0
1,498
0.318859
6f55278da18ee1b87b293e3ecbf2009597eacc92
2,541
py
Python
src/04_exploration/03_determine_fire_season.py
ranarango/fuegos-orinoquia
d82941ef0c90fe66162c8678b6f4a4c010d4313b
[ "MIT" ]
null
null
null
src/04_exploration/03_determine_fire_season.py
ranarango/fuegos-orinoquia
d82941ef0c90fe66162c8678b6f4a4c010d4313b
[ "MIT" ]
null
null
null
src/04_exploration/03_determine_fire_season.py
ranarango/fuegos-orinoquia
d82941ef0c90fe66162c8678b6f4a4c010d4313b
[ "MIT" ]
null
null
null
# ----------------------------------------------------------------------- # Author: Marcelo Villa-Piñeros # # Purpose: Determines the fire season for each window. The fire season is # defined as the minimum number of consecutive months that contain more # than 80% of the burned area (Archibald ett al 2013; Abatzoglou e...
38.5
87
0.646989
0
0
0
0
0
0
0
0
1,350
0.529619
6f5611d11711ac2d42a20770b0203d11ed9c22de
5,719
py
Python
holo/modules/blender.py
chinarjoshi/holo
45da9a8b4186b405d4f7338b953e10b335b76573
[ "MIT" ]
1
2021-08-01T02:26:59.000Z
2021-08-01T02:26:59.000Z
holo/modules/blender.py
chinarjoshi/holo
45da9a8b4186b405d4f7338b953e10b335b76573
[ "MIT" ]
null
null
null
holo/modules/blender.py
chinarjoshi/holo
45da9a8b4186b405d4f7338b953e10b335b76573
[ "MIT" ]
null
null
null
import bpy import json from bpy.types import SpaceView3D from bpy.app.handlers import persistent from mathutils import Quaternion, Matrix, Vector from holo.gestures import prediction_from_camera def duplicate_window(window_type: str = 'INVOKE_DEFAULT') -> None: """Duplicates a new window into bpy.data.screens fro...
43.656489
135
0.673719
0
0
0
0
237
0.041441
0
0
1,343
0.234831
6f57b93666fc12f3542b15b4104bbd2e0df4bc2a
2,506
py
Python
ncp/models/det_mix_ncp.py
JoeMWatson/ncp
705634393cc5b739323009aaa3ad0bd02f540728
[ "Apache-2.0" ]
2
2020-10-21T23:54:28.000Z
2020-12-26T14:00:07.000Z
ncp/models/det_mix_ncp.py
JoeMWatson/ncp
705634393cc5b739323009aaa3ad0bd02f540728
[ "Apache-2.0" ]
null
null
null
ncp/models/det_mix_ncp.py
JoeMWatson/ncp
705634393cc5b739323009aaa3ad0bd02f540728
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
41.081967
75
0.7502
0
0
0
0
0
0
0
0
571
0.227853
6f59ecc61ca13580a763007d05b1e7a17bc242cb
165
py
Python
api/models/target.py
zanachka/proxy-service
769e263606a6e520efdfe7d119bb717487d0e27e
[ "MIT" ]
1
2020-08-08T17:06:43.000Z
2020-08-08T17:06:43.000Z
api/models/target.py
zanachka/proxy-service
769e263606a6e520efdfe7d119bb717487d0e27e
[ "MIT" ]
2
2021-03-30T01:01:59.000Z
2021-03-30T01:01:59.000Z
api/models/target.py
zanachka/proxy-service
769e263606a6e520efdfe7d119bb717487d0e27e
[ "MIT" ]
4
2020-12-22T18:13:24.000Z
2021-11-26T13:03:45.000Z
""" DB operations for Targets """ from api.models.base import DBModel class TargetDB(DBModel): '''DBModel for the targets table''' tablename = 'targets'
13.75
39
0.684848
91
0.551515
0
0
0
0
0
0
77
0.466667
6f5a67d0b0a7c3b0ab3f8a01d7d7b783ef80e5c4
15,107
py
Python
myTeam.py
alexrichardson21/PacmanDQNAgent
7a7aff6f8fa80c0e00e107adb07380194e2fc2d3
[ "MIT" ]
null
null
null
myTeam.py
alexrichardson21/PacmanDQNAgent
7a7aff6f8fa80c0e00e107adb07380194e2fc2d3
[ "MIT" ]
null
null
null
myTeam.py
alexrichardson21/PacmanDQNAgent
7a7aff6f8fa80c0e00e107adb07380194e2fc2d3
[ "MIT" ]
null
null
null
# myTeam.py # --------- # Licensing Infoesmation: You are free to use or extend these projects for # educational purposes provided that (1) you do not distribute or publish # solutions, (2) you retain this notice, and (3) you provide clear # attribution to UC Berkeley, including a link to http://ai.berkeley.edu. # # A...
34.256236
112
0.583769
12,912
0.854703
0
0
0
0
0
0
4,814
0.31866
6f5beb9a275be58bdbdf0da45a8be956e56f7cc6
850
py
Python
wordBreak2.py
saai/LeetcodePythonSolutions
201f2054dda3f303ae6a376b40cbc7f98688322c
[ "MIT" ]
null
null
null
wordBreak2.py
saai/LeetcodePythonSolutions
201f2054dda3f303ae6a376b40cbc7f98688322c
[ "MIT" ]
null
null
null
wordBreak2.py
saai/LeetcodePythonSolutions
201f2054dda3f303ae6a376b40cbc7f98688322c
[ "MIT" ]
null
null
null
class Solution: # @param s, a string # @param wordDict, a set<string> # @return a string[] def wordBreak(self, s, wordDict): n = len(s) res = [] chars = ''.join(wordDict) for i in xrange(n): if s[i] not in chars: return res lw = s[-1] ...
28.333333
49
0.443529
850
1
0
0
0
0
0
0
77
0.090588
6f5c96a2170db005f0df74623642b0c6df9f9c2a
433
py
Python
setup.py
astrodeepnet/sbi_experiments
70af041da08565ba15e0c011145b11ab3fd973d7
[ "MIT" ]
3
2021-12-11T20:57:07.000Z
2021-12-14T22:20:42.000Z
setup.py
astrodeepnet/sbi_experiments
70af041da08565ba15e0c011145b11ab3fd973d7
[ "MIT" ]
20
2021-11-15T17:08:54.000Z
2022-03-25T10:32:52.000Z
setup.py
astrodeepnet/sbi_experiments
70af041da08565ba15e0c011145b11ab3fd973d7
[ "MIT" ]
3
2021-11-22T21:44:04.000Z
2021-12-14T10:31:46.000Z
from setuptools import setup, find_packages setup( name='SBIExperiments', version='0.0.1', url='https://github.com/astrodeepnet/sbi_experiments', author='Justine Zeghal and friends', description='Package for numerical experiments of SBI tools', packages=find_packages(), install_requires=[ 'numpy>=1.1...
24.055556
63
0.681293
0
0
0
0
0
0
0
0
240
0.554273
6f5dc8fddaaa9b918695e316e6b45bac16a19712
880
py
Python
deploy/deploy_asterisk_provider2.py
orpolaczek/astricon-2017-demos
1d3f24a72b19bf7ecf70831fd6b122cde59ea47b
[ "MIT" ]
null
null
null
deploy/deploy_asterisk_provider2.py
orpolaczek/astricon-2017-demos
1d3f24a72b19bf7ecf70831fd6b122cde59ea47b
[ "MIT" ]
null
null
null
deploy/deploy_asterisk_provider2.py
orpolaczek/astricon-2017-demos
1d3f24a72b19bf7ecf70831fd6b122cde59ea47b
[ "MIT" ]
1
2018-09-14T08:32:07.000Z
2018-09-14T08:32:07.000Z
import datetime import libcloud from libcloud.compute.types import Provider from libcloud.compute.providers import get_driver from pprint import pprint Engine = get_driver(Provider.ELASTICHOSTS) driver = Engine("733b7dc7-7498-4db4-9dc4-74d3fee8abed", secret="6w6CDAqL6JyXFj3xNkWW2zpUjYfv9dYaLVdaaR4Y",...
25.882353
83
0.729545
0
0
0
0
0
0
0
0
223
0.253409
6f5df725ff569b1c32118a15233cd3613598d3f9
95
py
Python
todo/admin.py
haidoro/TODO_lesson
fa0b92eb5d6f05ee15900dcc407e1ae3451fee5b
[ "CECILL-B" ]
null
null
null
todo/admin.py
haidoro/TODO_lesson
fa0b92eb5d6f05ee15900dcc407e1ae3451fee5b
[ "CECILL-B" ]
null
null
null
todo/admin.py
haidoro/TODO_lesson
fa0b92eb5d6f05ee15900dcc407e1ae3451fee5b
[ "CECILL-B" ]
null
null
null
from django.contrib import admin from .models import TodoModel admin.site.register(TodoModel)
19
32
0.831579
0
0
0
0
0
0
0
0
0
0
6f60ca83d2a6e347812ac821a5981278c5493d55
1,853
py
Python
assignments/06-python-first-lines/first_lines.py
antoniog1995/biosys-analytics
f4ac78f0918c402b5405bcb95b6ad1f76f2d9f08
[ "MIT" ]
null
null
null
assignments/06-python-first-lines/first_lines.py
antoniog1995/biosys-analytics
f4ac78f0918c402b5405bcb95b6ad1f76f2d9f08
[ "MIT" ]
null
null
null
assignments/06-python-first-lines/first_lines.py
antoniog1995/biosys-analytics
f4ac78f0918c402b5405bcb95b6ad1f76f2d9f08
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Author : antoniog1 Date : 2019-02-21 Purpose: Rock the Casbah """ import argparse import sys import os # -------------------------------------------------- def get_args(): """get command-line arguments""" parser = argparse.ArgumentParser( description='Argparse Python scri...
28.953125
110
0.51538
0
0
0
0
0
0
0
0
659
0.35564
6f60f993f98cc6ec2f6e673c50ecaa903ed57a90
4,042
py
Python
lvmsurveysim/target/target.py
albireox/lvmsurveysim
8ebe8ae7a90e5f50c4ea186b947a49720b7ed9ed
[ "BSD-3-Clause" ]
null
null
null
lvmsurveysim/target/target.py
albireox/lvmsurveysim
8ebe8ae7a90e5f50c4ea186b947a49720b7ed9ed
[ "BSD-3-Clause" ]
null
null
null
lvmsurveysim/target/target.py
albireox/lvmsurveysim
8ebe8ae7a90e5f50c4ea186b947a49720b7ed9ed
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 # # @Author: José Sánchez-Gallego # @Date: Oct 10, 2017 # @Filename: target.py # @License: BSD 3-Clause # @Copyright: José Sánchez-Gallego from __future__ import division from __future__ import print_function from __future__ import absolute_import import os import pathlib impo...
30.854962
79
0.596487
3,666
0.90608
0
0
1,942
0.47998
0
0
2,786
0.688581
6f628605ce1d839a711154a74d7ae1743fe66d28
1,889
py
Python
samples/snippets/test_export_to_bigquery.py
renovate-bot/python-contact-center-insights
d133f4028d862cc39d10ba4b0879df256a3505c1
[ "Apache-2.0" ]
4
2021-08-15T04:55:44.000Z
2022-02-01T09:19:57.000Z
samples/snippets/test_export_to_bigquery.py
renovate-bot/python-contact-center-insights
d133f4028d862cc39d10ba4b0879df256a3505c1
[ "Apache-2.0" ]
53
2021-07-16T11:02:44.000Z
2022-03-07T16:39:20.000Z
samples/snippets/test_export_to_bigquery.py
renovate-bot/python-contact-center-insights
d133f4028d862cc39d10ba4b0879df256a3505c1
[ "Apache-2.0" ]
5
2021-07-15T18:17:53.000Z
2022-01-29T08:09:16.000Z
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
28.621212
87
0.755956
0
0
630
0.33351
858
0.454209
0
0
837
0.443092