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
268562770a21fee8a3d94159f9ef1e10697f56c3
23,901
py
Python
yocto/poky/bitbake/lib/bb/ui/knotty.py
libreswitch/libreswitch
1bb99e4bbc55aff46048453e28a1466b08d338aa
[ "Apache-2.0" ]
16
2017-01-17T15:20:43.000Z
2021-03-19T05:45:14.000Z
yocto/poky/bitbake/lib/bb/ui/knotty.py
libreswitch/libreswitch
1bb99e4bbc55aff46048453e28a1466b08d338aa
[ "Apache-2.0" ]
415
2016-12-20T17:20:45.000Z
2018-09-23T07:59:23.000Z
yocto/poky/bitbake/lib/bb/ui/knotty.py
libreswitch/libreswitch
1bb99e4bbc55aff46048453e28a1466b08d338aa
[ "Apache-2.0" ]
10
2016-12-20T13:24:50.000Z
2021-03-19T05:46:43.000Z
# # BitBake (No)TTY UI Implementation # # Handling output to TTYs or files (no TTY) # # Copyright (C) 2006-2012 Richard Purdie # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as # published by the Free Software Foundation. # # Thi...
40.169748
175
0.557843
c841c80869a2cb40a9a667feca26835a0271be2b
3,509
py
Python
legacy/ad/feature_extractor/list_queries.py
GaloisInc/adapt
2ccff778d3e77505899266572f8f7caacb5b630f
[ "BSD-3-Clause" ]
2
2020-04-09T13:04:25.000Z
2021-09-24T14:17:26.000Z
legacy/ad/feature_extractor/list_queries.py
GaloisInc/adapt
2ccff778d3e77505899266572f8f7caacb5b630f
[ "BSD-3-Clause" ]
null
null
null
legacy/ad/feature_extractor/list_queries.py
GaloisInc/adapt
2ccff778d3e77505899266572f8f7caacb5b630f
[ "BSD-3-Clause" ]
3
2019-09-20T20:49:54.000Z
2021-09-02T17:33:47.000Z
#! /usr/bin/env python3 import sys, os, csv, json, math, logging sys.path.append(os.path.expanduser('~/adapt/tools')) import gremlin_query # varibale bindings for gremlin queries bindings = { 'ETYPE':'eventType', 'STYPE':'subjectType', 'SIZE':'size', 'STIME':'startedAtTime', 'DPORT':'dstPort', ...
34.067961
95
0.572813
9777e88df6ca4f9dd20ff48a33090d4b31630f5e
88,284
py
Python
Lib/datetime.py
Kshitijkrishnadas/haribol
ca45e633baaabaad3bb923f5633340ccf88d996c
[ "bzip2-1.0.6" ]
4
2020-08-06T04:39:33.000Z
2020-12-01T08:35:09.000Z
Lib/datetime.py
Kshitijkrishnadas/haribol
ca45e633baaabaad3bb923f5633340ccf88d996c
[ "bzip2-1.0.6" ]
6
2020-07-22T01:19:01.000Z
2021-04-25T15:03:35.000Z
Lib/datetime.py
Kshitijkrishnadas/haribol
ca45e633baaabaad3bb923f5633340ccf88d996c
[ "bzip2-1.0.6" ]
2
2020-12-02T03:52:33.000Z
2021-01-20T01:36:09.000Z
"""Concrete date/time and related types. See http://www.iana.org/time-zones/repository/tz-link.html for time zone and DST data sources. """ import time as _time import math as _math import sys def _cmp(x, y): return 0 if x == y else 1 if x > y else -1 MINYEAR = 1 MAXYEAR = 9999 _MAXORDINAL = 3652059 # date.max...
35.019437
94
0.565346
fde224c37bad686fd6ce41d369572344e37a4e0e
187
py
Python
math/linear-algebra/np-1.py
admariner/playground
02a3104472c8fa3589fe87f7265e70c61d5728c7
[ "MIT" ]
3
2021-06-12T04:42:32.000Z
2021-06-24T13:57:38.000Z
math/linear-algebra/np-1.py
admariner/playground
02a3104472c8fa3589fe87f7265e70c61d5728c7
[ "MIT" ]
null
null
null
math/linear-algebra/np-1.py
admariner/playground
02a3104472c8fa3589fe87f7265e70c61d5728c7
[ "MIT" ]
1
2021-08-19T14:57:17.000Z
2021-08-19T14:57:17.000Z
import numpy as np x = [5.0, 1.0, 3.0] a = np.array(x) print(a) print(a.shape) print(a.dtype) b = np.empty([2, 2]) print(b) c = np.zeros([3, 3]) print(c) d = np.ones([5, 1]) print(d)
11
20
0.566845
48df2c06d143977a6b45468bb6132a16c76a187a
9,925
py
Python
pyqtgraph/graphicsItems/ViewBox/ViewBoxMenu.py
hyperiongeo/pyqtgraph
7f7c6217cc2fae5fdfad6d3c27739461abd32c84
[ "MIT" ]
null
null
null
pyqtgraph/graphicsItems/ViewBox/ViewBoxMenu.py
hyperiongeo/pyqtgraph
7f7c6217cc2fae5fdfad6d3c27739461abd32c84
[ "MIT" ]
null
null
null
pyqtgraph/graphicsItems/ViewBox/ViewBoxMenu.py
hyperiongeo/pyqtgraph
7f7c6217cc2fae5fdfad6d3c27739461abd32c84
[ "MIT" ]
null
null
null
import importlib from ...Qt import QT_LIB, QtCore, QtGui, QtWidgets from ...WidgetGroup import WidgetGroup ui_template = importlib.import_module( f'.axisCtrlTemplate_{QT_LIB.lower()}', package=__package__) import weakref translate = QtCore.QCoreApplication.translate class ViewBoxMenu(QtWidgets.QMenu): def _...
36.488971
159
0.575718
7a6893c1042bae71b9e36028980afb1556a13cd9
3,154
py
Python
zerver/management/commands/set_message_flags.py
alexandraciobica/zulip
f3753504469070bfccc73f22f933c87bee7d1852
[ "Apache-2.0" ]
1
2019-10-01T14:04:07.000Z
2019-10-01T14:04:07.000Z
zerver/management/commands/set_message_flags.py
alexandraciobica/zulip
f3753504469070bfccc73f22f933c87bee7d1852
[ "Apache-2.0" ]
3
2020-06-05T22:30:24.000Z
2022-02-10T19:04:47.000Z
zerver/management/commands/set_message_flags.py
alexandraciobica/zulip
f3753504469070bfccc73f22f933c87bee7d1852
[ "Apache-2.0" ]
1
2020-01-06T15:12:36.000Z
2020-01-06T15:12:36.000Z
import logging import sys from typing import Any, Iterable from django.core.management.base import CommandParser from django.db import models from zerver.lib import utils from zerver.lib.management import ZulipBaseCommand, CommandError from zerver.models import UserMessage class Command(ZulipBaseCommand): help =...
38.463415
97
0.541852
badf717febf46b89151210694acf8739d9a7e8d8
1,294
py
Python
polls/tests.py
longthanhtran/easy-django
b300090bcb530ee04264406bcc1586975e9fdeda
[ "MIT" ]
null
null
null
polls/tests.py
longthanhtran/easy-django
b300090bcb530ee04264406bcc1586975e9fdeda
[ "MIT" ]
null
null
null
polls/tests.py
longthanhtran/easy-django
b300090bcb530ee04264406bcc1586975e9fdeda
[ "MIT" ]
null
null
null
import datetime from django.utils import timezone from django.test import TestCase from .models import Question class QuestionMethodTests(TestCase): def test_was_published_recently_with_future_question(self): """ was_published_recently() should return False for questions whose pub_date i...
35.944444
73
0.702473
351960ad99bf66061ebbb104bda66ea4d51f12d1
1,298
py
Python
management/commands/createspider.py
Zadigo/zineb
2addaa337600afec3c9696d77e0ccf3c5edc29da
[ "MIT" ]
3
2021-10-17T20:37:40.000Z
2022-03-17T10:29:14.000Z
management/commands/createspider.py
Zadigo/zineb
2addaa337600afec3c9696d77e0ccf3c5edc29da
[ "MIT" ]
4
2021-09-02T13:26:11.000Z
2022-03-16T12:26:36.000Z
management/commands/createspider.py
Zadigo/zineb
2addaa337600afec3c9696d77e0ccf3c5edc29da
[ "MIT" ]
null
null
null
import os from zineb import global_logger from zineb.management.base import RequiresProjectError from zineb.management.base import BaseCommand class Command(BaseCommand): def add_arguments(self, parser): parser.add_argument('name', type=str, help='Name of your spider') parser.add_argument('--type...
34.157895
126
0.595532
4e120a95ea2cd65f2243cd2b3995d9532b9c48fe
2,076
py
Python
073_setMatrixZeroes.py
stuti-rastogi/leetcode-python-solutions
73593fe642a06a83cde974ba5e6de3a7b396ec84
[ "MIT" ]
4
2018-07-24T08:36:42.000Z
2019-08-25T17:48:47.000Z
073_setMatrixZeroes.py
stuti-rastogi/leetcodesolutions
73593fe642a06a83cde974ba5e6de3a7b396ec84
[ "MIT" ]
null
null
null
073_setMatrixZeroes.py
stuti-rastogi/leetcodesolutions
73593fe642a06a83cde974ba5e6de3a7b396ec84
[ "MIT" ]
null
null
null
class Solution: def setZeroes(self, matrix: List[List[int]]) -> None: """ Do not return anything, modify matrix in-place instead. """ if not matrix: return # use first row as "cols" array, use first column as "rows" array # to do that, first store what ne...
26.278481
73
0.391618
2889750ed71139faf081513559426248a6cf8f61
8,773
py
Python
ctl_adm.py
saydulk/admin4
dc99fa7c8a1e0417b131b7627a748e5a9b12c1bb
[ "Apache-2.0" ]
null
null
null
ctl_adm.py
saydulk/admin4
dc99fa7c8a1e0417b131b7627a748e5a9b12c1bb
[ "Apache-2.0" ]
null
null
null
ctl_adm.py
saydulk/admin4
dc99fa7c8a1e0417b131b7627a748e5a9b12c1bb
[ "Apache-2.0" ]
14
2017-01-12T11:13:49.000Z
2019-04-19T10:02:50.000Z
# The Admin4 Project # (c) 2013-2014 Andreas Pflug # # Licensed under the Apache License, # see LICENSE.TXT for conditions of usage import wx try: import adm import logger except: print "ctl_adm: XRCED mode" adm=None class ComboBox(wx.ComboBox): def __init__(self, parentWin, id=-1, pos=wx.DefaultPositi...
26.345345
125
0.631141
3725ceb5b572ebe8b8ea97d8fd5c3c6538df7c55
8,171
py
Python
stock-tools/quote_change.py
Muyoo/blueberry-tools
cac16cfd39c51d22efd6c8c3d40c22c3b84cb100
[ "Apache-2.0" ]
null
null
null
stock-tools/quote_change.py
Muyoo/blueberry-tools
cac16cfd39c51d22efd6c8c3d40c22c3b84cb100
[ "Apache-2.0" ]
null
null
null
stock-tools/quote_change.py
Muyoo/blueberry-tools
cac16cfd39c51d22efd6c8c3d40c22c3b84cb100
[ "Apache-2.0" ]
null
null
null
# encoding: utf8 import psycopg2 as pg import json import pdb import sys import time import requests import re from datetime import datetime STOCK_LIST_SQL = ''' SELECT code, name FROM stock_code WHERE (code LIKE '6%' OR code LIKE '00%') -- WHERE code = '002498' AND name NOT LIKE '*ST%' ''' CHA...
29.712727
130
0.546445
0659aac7eb3787313a2eda638e09e305c6fab4de
12,437
py
Python
tests/test_dplyr_slice.py
stjordanis/datar
4e2b5db026ad35918954576badef9951928c0cb1
[ "MIT" ]
null
null
null
tests/test_dplyr_slice.py
stjordanis/datar
4e2b5db026ad35918954576badef9951928c0cb1
[ "MIT" ]
null
null
null
tests/test_dplyr_slice.py
stjordanis/datar
4e2b5db026ad35918954576badef9951928c0cb1
[ "MIT" ]
null
null
null
# tests grabbed from: # https://github.com/tidyverse/dplyr/blob/master/tests/testthat/test-slice.r from pandas.testing import assert_frame_equal from pipda.context import ContextError import pytest from datar.core.grouped import DataFrameRowwise from datar.all import * from datar.datasets import mtcars from datar.dplyr...
30.55774
87
0.58133
de4fc6cd225b5238ec6567c4899b02feb68e9cda
8,915
py
Python
gammapy/cube/make.py
watsonjj/gammapy
8d2498c8f63f73d1fbe4ba81ab02d9e72552df67
[ "BSD-3-Clause" ]
null
null
null
gammapy/cube/make.py
watsonjj/gammapy
8d2498c8f63f73d1fbe4ba81ab02d9e72552df67
[ "BSD-3-Clause" ]
null
null
null
gammapy/cube/make.py
watsonjj/gammapy
8d2498c8f63f73d1fbe4ba81ab02d9e72552df67
[ "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst import logging from astropy.nddata.utils import NoOverlapError from astropy.coordinates import Angle from ..maps import Map, WcsGeom from .counts import fill_map_counts from .exposure import make_map_exposure_true_energy, _map_spectrum_weight from .backgro...
33.641509
86
0.61963
f7e6e9e294e27bf952bce884d4c77681a9103fc7
313
py
Python
tests/conftest.py
predakanga/resolve
80400b4b132297c04bd09a1448b0c4d78ba4ed1f
[ "MIT" ]
null
null
null
tests/conftest.py
predakanga/resolve
80400b4b132297c04bd09a1448b0c4d78ba4ed1f
[ "MIT" ]
null
null
null
tests/conftest.py
predakanga/resolve
80400b4b132297c04bd09a1448b0c4d78ba4ed1f
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Dummy conftest.py for resolve. If you don't know what this is for, just leave it empty. Read more about conftest.py under: https://pytest.org/latest/plugins.html """ from __future__ import print_function, absolute_import, division import pytest
24.076923
64
0.702875
23394f026cfdb39e4a6ac25e7cd5cf8a8f379462
1,821
py
Python
paddlex/tools/split.py
yaoshanliang/PaddleX
fe40b6d10db0e4d46f3a73cc5e83c3236d6a5842
[ "Apache-2.0" ]
3,655
2020-03-28T09:19:50.000Z
2022-03-31T13:28:39.000Z
paddlex/tools/split.py
yaoshanliang/PaddleX
fe40b6d10db0e4d46f3a73cc5e83c3236d6a5842
[ "Apache-2.0" ]
829
2020-03-28T04:03:18.000Z
2022-03-31T14:34:30.000Z
paddlex/tools/split.py
yaoshanliang/PaddleX
fe40b6d10db0e4d46f3a73cc5e83c3236d6a5842
[ "Apache-2.0" ]
738
2020-03-28T03:56:46.000Z
2022-03-31T13:11:03.000Z
#!/usr/bin/env python # coding: utf-8 # Copyright (c) 2020 PaddlePaddle 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/LI...
43.357143
74
0.727622
435be635d2b6912b837bf2ee60756870e38d5a7f
1,423
py
Python
src/robotican_demos_upgrade/script/robot_navigation_client.py
aosbgu/ROSPlan-ExperimentPDDL
09de0ba980362606dd1269c6689cb59d6f8776c6
[ "MIT" ]
null
null
null
src/robotican_demos_upgrade/script/robot_navigation_client.py
aosbgu/ROSPlan-ExperimentPDDL
09de0ba980362606dd1269c6689cb59d6f8776c6
[ "MIT" ]
null
null
null
src/robotican_demos_upgrade/script/robot_navigation_client.py
aosbgu/ROSPlan-ExperimentPDDL
09de0ba980362606dd1269c6689cb59d6f8776c6
[ "MIT" ]
null
null
null
#!/usr/bin/env python from __future__ import print_function import sys import rospy from robotican_demos_upgrade.srv import * def push_button_client(): rospy.wait_for_service('robot_navigation') try: robot_navigation_req = rospy.ServiceProxy('robot_navigation', robot_navigation) resp1 = robo...
27.901961
107
0.662684
0b1510496a86788d974a0c79fb2762ea250a12f3
1,777
py
Python
discussion/models.py
ThusharaX/mumbleapi
8435fe9d86869cce81961f42c9860fa3810c171b
[ "Apache-2.0" ]
187
2021-04-24T14:49:44.000Z
2022-03-31T14:25:22.000Z
discussion/models.py
shukl08vk/mumbleapi
101825d8aecba7eac4e31046e7b4b15b36c55f77
[ "Apache-2.0" ]
119
2021-04-24T18:08:43.000Z
2022-01-09T00:57:19.000Z
discussion/models.py
shukl08vk/mumbleapi
101825d8aecba7eac4e31046e7b4b15b36c55f77
[ "Apache-2.0" ]
174
2021-04-24T15:57:23.000Z
2022-03-11T02:09:04.000Z
from django.db import models from django.contrib.auth.models import User from ckeditor.fields import RichTextField from users.models import TopicTag import uuid class Discussion(models.Model): id = models.UUIDField(default=uuid.uuid4, unique=True, primary_key=True, editable=False) user = models.ForeignKey(Us...
42.309524
99
0.756331
2530823d17bc4ee1f2546447684b700eb78f99d2
20,659
py
Python
swapnil_tamrakar_lab_6_creating_validation_data.py
swappy208/Artificial-Intelligence-Computational-Model
fbbbf13fe3912243645f22cc9724721ca3c23162
[ "Apache-2.0" ]
null
null
null
swapnil_tamrakar_lab_6_creating_validation_data.py
swappy208/Artificial-Intelligence-Computational-Model
fbbbf13fe3912243645f22cc9724721ca3c23162
[ "Apache-2.0" ]
null
null
null
swapnil_tamrakar_lab_6_creating_validation_data.py
swappy208/Artificial-Intelligence-Computational-Model
fbbbf13fe3912243645f22cc9724721ca3c23162
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """Swapnil Tamrakar Lab 6: Creating Validation Data.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1qM6t-O6UEv6QrXCm17CgnIBYIw5XrZqY #### Copyright 2017 Google LLC. """ # Licensed under the Apache License, Version 2.0 (t...
43.676533
636
0.750956
c26abfbb42761a46a0e7e008187ed8590aa2e158
170,846
py
Python
bottle.py
sailfish009/bottle
a6384a93a8fff4c1be44fd808f71bad7728a4c74
[ "MIT" ]
null
null
null
bottle.py
sailfish009/bottle
a6384a93a8fff4c1be44fd808f71bad7728a4c74
[ "MIT" ]
null
null
null
bottle.py
sailfish009/bottle
a6384a93a8fff4c1be44fd808f71bad7728a4c74
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Bottle is a fast and simple micro-framework for small web applications. It offers request dispatching (Routes) with URL parameter support, templates, a built-in HTTP Server and adapters for many third party WSGI/HTTP-server and template engines - all in a single file an...
38.600542
117
0.58191
4af197ebe332e027e29849c418500ef9619b3d08
533
py
Python
cc/engine/characteristic/views.py
Abbas-000/cc.engine
eb4b5e5f6c695a16c7ab8bcc52036cf16a0fba22
[ "MIT" ]
6
2017-12-25T08:18:43.000Z
2021-01-02T09:02:59.000Z
cc/engine/characteristic/views.py
Abbas-000/cc.engine
eb4b5e5f6c695a16c7ab8bcc52036cf16a0fba22
[ "MIT" ]
39
2017-11-17T01:59:38.000Z
2021-12-14T19:14:12.000Z
cc/engine/characteristic/views.py
Abbas-000/cc.engine
eb4b5e5f6c695a16c7ab8bcc52036cf16a0fba22
[ "MIT" ]
17
2017-12-25T08:18:13.000Z
2021-04-12T12:50:35.000Z
from cc.engine import util from webob import Response def characteristic_view(request): """ Return one of the characteristic description pages. """ target_lang = util.get_target_lang_from_request(request) template_name = 'characteristic/%s.html' % ( request.matchdict['characteristic']) ...
25.380952
60
0.688555
313c421b4de8cfe877e2121300f3b2eedd2bd35c
298
py
Python
FishCDailyQuestion/ex021-030/Python3_023/023_02.py
YorkFish/git_study
6e023244daaa22e12b24e632e76a13e5066f2947
[ "MIT" ]
null
null
null
FishCDailyQuestion/ex021-030/Python3_023/023_02.py
YorkFish/git_study
6e023244daaa22e12b24e632e76a13e5066f2947
[ "MIT" ]
null
null
null
FishCDailyQuestion/ex021-030/Python3_023/023_02.py
YorkFish/git_study
6e023244daaa22e12b24e632e76a13e5066f2947
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # coding:utf-8 def solve(lst): res = [] for e in str(lst).split(','): t = eval(e.strip(' []')) res.append(t) return res if __name__ == "__main__": list1 = [1, [2], [3, 4], [[5, 6], 7], [8, [[9, [10], 11], 12], 13]] print(solve(list1))
18.625
71
0.47651
46a06f2aab4beae9de4b4f0a3e9af4b01a47794f
1,869
py
Python
sans/_lock.py
zephyrkul/sans
4b1d4dde110b4f3ceca0b8a5d3a75460bcc43105
[ "MIT" ]
6
2019-01-17T17:25:06.000Z
2021-06-05T17:24:30.000Z
sans/_lock.py
zephyrkul/sans
4b1d4dde110b4f3ceca0b8a5d3a75460bcc43105
[ "MIT" ]
3
2019-01-19T07:55:14.000Z
2021-04-06T01:58:57.000Z
sans/_lock.py
zephyrkul/sans
4b1d4dde110b4f3ceca0b8a5d3a75460bcc43105
[ "MIT" ]
2
2019-02-10T20:08:14.000Z
2022-02-23T01:23:59.000Z
import aiohttp import asyncio import collections import time RATE = collections.namedtuple( "RateLimit", ("requests", "block", "rpad", "bpad", "retry") )(50, 30, 2, 0.1, 900) class ResetLock(asyncio.Lock): __slots__ = "__xrlrs", "__xra", "__deferred" def __init__(self, *args, **kwargs): super()...
26.7
75
0.58641
0fd25e5a8086845ea5a5e624d6336530147eb96e
3,396
py
Python
dev/scripts/render_templated_sql.py
rubik-ai/koku
3255d1c217b7b6685cb2e130bf4e025946e76fac
[ "Apache-2.0" ]
157
2018-04-30T16:27:53.000Z
2022-03-31T08:17:21.000Z
dev/scripts/render_templated_sql.py
rubik-ai/koku
3255d1c217b7b6685cb2e130bf4e025946e76fac
[ "Apache-2.0" ]
3,250
2018-04-26T14:14:25.000Z
2022-03-31T23:49:15.000Z
dev/scripts/render_templated_sql.py
rubik-ai/koku
3255d1c217b7b6685cb2e130bf4e025946e76fac
[ "Apache-2.0" ]
65
2018-05-10T14:11:50.000Z
2022-03-18T19:22:58.000Z
# # Copyright 2021 Red Hat Inc. # SPDX-License-Identifier: Apache-2.0 # """Script to render valid SQL from a Jinja template.""" import argparse import datetime from uuid import uuid4 from jinjasql import JinjaSql def valid_date(date_string): """Create date from date string.""" try: datetime.datetime....
33.623762
116
0.649293
42b6bb688850f5da84b9ea39c0f9641d5c5e4737
4,752
py
Python
new_test.py
trohit920/Custom_Yolo_Object_Detection
1cf9f774b02a747ae7c316879333ecf89382bea8
[ "MIT" ]
1
2021-06-22T06:57:05.000Z
2021-06-22T06:57:05.000Z
new_test.py
trohit920/Custom_Yolo_Object_Detection
1cf9f774b02a747ae7c316879333ecf89382bea8
[ "MIT" ]
null
null
null
new_test.py
trohit920/Custom_Yolo_Object_Detection
1cf9f774b02a747ae7c316879333ecf89382bea8
[ "MIT" ]
null
null
null
# coding: utf-8 from __future__ import division, print_function import tensorflow as tf import numpy as np import argparse import cv2 import random from new_args import parse_anchors, read_class_names from new_train import gpu_nms from new_train import letterbox_resize from new_train import yolov3 def get_color_ta...
40.271186
149
0.66351
b2cc02570671e7c7390c1f76908cafbf6c1f99f1
73,367
py
Python
tencentcloud/zj/v20190121/models.py
qin5506/tencentcloud-sdk-python
e9c59d80beabf75fb96456bb8d7a53400346fe9a
[ "Apache-2.0" ]
null
null
null
tencentcloud/zj/v20190121/models.py
qin5506/tencentcloud-sdk-python
e9c59d80beabf75fb96456bb8d7a53400346fe9a
[ "Apache-2.0" ]
null
null
null
tencentcloud/zj/v20190121/models.py
qin5506/tencentcloud-sdk-python
e9c59d80beabf75fb96456bb8d7a53400346fe9a
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf8 -*- # Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. 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...
29.464659
111
0.585045
03957807fe96daebc991be138aca614d6113e7df
7,852
py
Python
ultracart/models/coupon_free_items_with_item_purchase.py
UltraCart/rest_api_v2_sdk_python
d734ea13fabc7a57872ff68bac06861edb8fd882
[ "Apache-2.0" ]
1
2018-03-15T16:56:23.000Z
2018-03-15T16:56:23.000Z
ultracart/models/coupon_free_items_with_item_purchase.py
UltraCart/rest_api_v2_sdk_python
d734ea13fabc7a57872ff68bac06861edb8fd882
[ "Apache-2.0" ]
null
null
null
ultracart/models/coupon_free_items_with_item_purchase.py
UltraCart/rest_api_v2_sdk_python
d734ea13fabc7a57872ff68bac06861edb8fd882
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ UltraCart Rest API V2 UltraCart REST API Version 2 # noqa: E501 OpenAPI spec version: 2.0.0 Contact: support@ultracart.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class CouponFreeItemsWithItemP...
34.13913
147
0.646714
f5cbbefbec56249cc31bf1420801ff13af96eccb
6,454
py
Python
gqa/function/test.py
xiling42/VL-BERT
4573b4e1e82b6c092d4830d0b88821e9ee1a81fb
[ "MIT" ]
null
null
null
gqa/function/test.py
xiling42/VL-BERT
4573b4e1e82b6c092d4830d0b88821e9ee1a81fb
[ "MIT" ]
null
null
null
gqa/function/test.py
xiling42/VL-BERT
4573b4e1e82b6c092d4830d0b88821e9ee1a81fb
[ "MIT" ]
null
null
null
import os import pprint import shutil import pandas as pd from tqdm import tqdm, trange import numpy as np import torch import torch.nn.functional as F from common.utils.load import smart_load_model_state_dict from common.trainer import to_cuda from common.utils.create_logger import create_logger from gqa.modules imp...
43.026667
126
0.683297
25b00aca851d97bd8ea0d3d033daf52b2fbf884b
589
py
Python
dicom_viewer/osirix/export_roi.py
aarashy/dicom-viewer
438ecd9f196555f7c432c1b956783fd321a30abb
[ "MIT" ]
null
null
null
dicom_viewer/osirix/export_roi.py
aarashy/dicom-viewer
438ecd9f196555f7c432c1b956783fd321a30abb
[ "MIT" ]
null
null
null
dicom_viewer/osirix/export_roi.py
aarashy/dicom-viewer
438ecd9f196555f7c432c1b956783fd321a30abb
[ "MIT" ]
null
null
null
#HeaderInfo #type=ROITool #name=Export to DICOM Overlay #version=2021.08.05 #author=aheyd@berkeley.edu #EndHeaderInfo CSV_FILE_PATH = "./Users/aarash/annotations.csv" print("wtf") def embed_rois(): osirix_backend = OsirixBackend(osirix) actions = [WriteToDicomOverlay(), AppendToCsv(CSV_FILE_PATH)] dicom_...
25.608696
65
0.72326
6f6168922ffae8916ed949f1b84f2b51b1c9dadd
2,138
py
Python
bertdotconfig/dictutils.py
berttejeda/bertconfig
ebd9cfe1f2cbaeab2ffc167e00c70233638752d6
[ "MIT" ]
null
null
null
bertdotconfig/dictutils.py
berttejeda/bertconfig
ebd9cfe1f2cbaeab2ffc167e00c70233638752d6
[ "MIT" ]
null
null
null
bertdotconfig/dictutils.py
berttejeda/bertconfig
ebd9cfe1f2cbaeab2ffc167e00c70233638752d6
[ "MIT" ]
null
null
null
from functools import reduce import collections import sys class DictUtils: def __init__(self): pass def Merge(self, dct, merge_dct): """ Recursive dict merge. Inspired by :meth:``dict.update()``, instead of updating only top-level keys, dict_merge recurses down into dicts nested to...
35.04918
85
0.574369
67cec514e925721aa0d9371d2e912cd8115eb7d0
2,669
py
Python
thirdpart/shibboleth/backends.py
yuyichao/seahub
82f16b9e47b41a73ed46311ebc6151745e3b6fc7
[ "Apache-2.0" ]
null
null
null
thirdpart/shibboleth/backends.py
yuyichao/seahub
82f16b9e47b41a73ed46311ebc6151745e3b6fc7
[ "Apache-2.0" ]
null
null
null
thirdpart/shibboleth/backends.py
yuyichao/seahub
82f16b9e47b41a73ed46311ebc6151745e3b6fc7
[ "Apache-2.0" ]
null
null
null
from django.conf import settings from django.db import connection from seaserv import ccnet_api from seahub.auth.backends import RemoteUserBackend from seahub.base.accounts import User from registration.models import ( notify_admins_on_activate_request, notify_admins_on_register_complete) class ShibbolethRemoteUs...
39.835821
85
0.667291
97a8133b3eab5e90c5e930634226d3eeddf55910
16,939
py
Python
trainGrasp_es.py
irom-lab/PAC-Imitation
1b9c203b02551895613b6710da33e1bebe4a0f11
[ "MIT" ]
12
2020-08-11T03:26:36.000Z
2022-02-10T01:14:08.000Z
trainGrasp_es.py
irom-lab/PAC-Imitation
1b9c203b02551895613b6710da33e1bebe4a0f11
[ "MIT" ]
null
null
null
trainGrasp_es.py
irom-lab/PAC-Imitation
1b9c203b02551895613b6710da33e1bebe4a0f11
[ "MIT" ]
1
2021-03-08T10:46:06.000Z
2021-03-08T10:46:06.000Z
import os import sys import warnings warnings.filterwarnings("ignore") import torch import numpy as np from numpy import array import ray import json import time import scipy import random import matplotlib.pyplot as plt from src.nn_grasp import PolicyNet from src.grasp_rollout_env import GraspRolloutEnv from src.pac...
34.289474
162
0.69585
262c9530469a2468e2dc5641f3bcf8f60d0db315
528
py
Python
backend/api-site/user/views.py
Basel-h-ashour/product-catalog
f37974c1de0b5a8dcd46deaebc1af7627b1c343d
[ "MIT" ]
null
null
null
backend/api-site/user/views.py
Basel-h-ashour/product-catalog
f37974c1de0b5a8dcd46deaebc1af7627b1c343d
[ "MIT" ]
null
null
null
backend/api-site/user/views.py
Basel-h-ashour/product-catalog
f37974c1de0b5a8dcd46deaebc1af7627b1c343d
[ "MIT" ]
null
null
null
from rest_framework import generics from rest_framework.authtoken.views import ObtainAuthToken from rest_framework.settings import api_settings from user.serializers import UserSerializer, TokenSerializer class CreateUserView(generics.CreateAPIView): """creates a new user from JSON data""" serializer_class =...
31.058824
60
0.814394
d3f870ad87df883b422bfd7a0c13c79eac432c0a
2,259
py
Python
testing/python3/dcptestautomation/run_dcgm_tests.py
deepio/DCGM
d10273f18fb3d425da752ab6bb7e07af3d18caec
[ "Apache-2.0" ]
85
2021-02-03T19:58:50.000Z
2022-03-21T08:00:11.000Z
testing/python3/dcptestautomation/run_dcgm_tests.py
deepio/DCGM
d10273f18fb3d425da752ab6bb7e07af3d18caec
[ "Apache-2.0" ]
19
2021-03-19T08:13:58.000Z
2022-03-17T02:50:41.000Z
testing/python3/dcptestautomation/run_dcgm_tests.py
deepio/DCGM
d10273f18fb3d425da752ab6bb7e07af3d18caec
[ "Apache-2.0" ]
17
2021-02-04T06:47:30.000Z
2022-03-21T22:14:03.000Z
# Copyright (c) 2020, NVIDIA CORPORATION. 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...
35.857143
100
0.671093
4430aef4b432a8264dedf71322b2235da15de193
215
py
Python
examples/Python/XdmfExampleSystemUtils.py
scottwedge/xdmf
f41196c966997a20f60525a3d2083490a63626a3
[ "BSD-3-Clause" ]
4
2015-12-07T08:11:06.000Z
2020-06-15T01:39:07.000Z
examples/Python/XdmfExampleSystemUtils.py
scottwedge/xdmf
f41196c966997a20f60525a3d2083490a63626a3
[ "BSD-3-Clause" ]
1
2020-04-26T16:50:37.000Z
2020-04-26T16:50:37.000Z
examples/Python/XdmfExampleSystemUtils.py
scottwedge/xdmf
f41196c966997a20f60525a3d2083490a63626a3
[ "BSD-3-Clause" ]
4
2016-04-04T20:54:31.000Z
2020-06-15T01:39:08.000Z
from Xdmf import * if __name__ == "__main__": #//getRealPath begin priorPath = "Path you want to convert" convertedPath = XdmfSystemUtils.getRealPath(priorPath) #//getRealPath end
21.5
62
0.646512
4192a2f38bd02ea1bba24bda58a61e91cc210112
5,931
py
Python
source/run_nbow.py
ucabops/robbie
f74aefbdb9069d62188d4bb820bf91fa50f73b8c
[ "OML" ]
null
null
null
source/run_nbow.py
ucabops/robbie
f74aefbdb9069d62188d4bb820bf91fa50f73b8c
[ "OML" ]
null
null
null
source/run_nbow.py
ucabops/robbie
f74aefbdb9069d62188d4bb820bf91fa50f73b8c
[ "OML" ]
null
null
null
import argparse import json import os import time import urllib import numpy as np import pandas as pd import gensim from models.nbow import master_base, key_adder from models.amer_brit import wordpairs def print_metrics(metrics, runs): acc_at_1 = metrics[4]/runs acc_at_10 = metrics[0]/runs acc_at_100 =...
39.805369
118
0.511718
925e83547232da3fedf200ebaab887dba0b2736e
9,901
py
Python
face_detection/caffemodel/predict_caffemodel.py
hhliao/A-Light-and-Fast-Face-Detector-for-Edge-Devices
439408ca0b3dbe29531dc83ff52643e38e511070
[ "MIT" ]
1,172
2019-08-09T09:59:15.000Z
2020-12-14T03:20:08.000Z
face_detection/caffemodel/predict_caffemodel.py
hhliao/A-Light-and-Fast-Face-Detector-for-Edge-Devices
439408ca0b3dbe29531dc83ff52643e38e511070
[ "MIT" ]
95
2019-08-19T01:15:49.000Z
2020-12-15T05:34:39.000Z
face_detection/caffemodel/predict_caffemodel.py
hhliao/A-Light-and-Fast-Face-Detector-for-Edge-Devices
439408ca0b3dbe29531dc83ff52643e38e511070
[ "MIT" ]
317
2019-08-11T05:52:06.000Z
2020-12-14T13:34:53.000Z
# coding: utf-8 import sys import os import numpy import numpy as np import cv2 import time # empty data batch class for dynamical properties class DataBatch: pass def NMS(boxes, overlap_threshold): ''' :param boxes: numpy nx5, n is the number of boxes, 0:4->x1, y1, x2, y2, 4->score :param overlap_...
40.744856
155
0.607918
ec62bd71c87c6d68cf8752d37b2095f429ca73ec
543
py
Python
utils/sharding.py
tparikh/qontract-reconcile
b4b2c2af69b9b43616b26c60484a6953c4e433e7
[ "Apache-2.0" ]
null
null
null
utils/sharding.py
tparikh/qontract-reconcile
b4b2c2af69b9b43616b26c60484a6953c4e433e7
[ "Apache-2.0" ]
null
null
null
utils/sharding.py
tparikh/qontract-reconcile
b4b2c2af69b9b43616b26c60484a6953c4e433e7
[ "Apache-2.0" ]
null
null
null
import hashlib import logging import os LOG = logging.getLogger(__name__) SHARDS = int(os.environ.get('SHARDS', 1)) SHARD_ID = int(os.environ.get('SHARD_ID', 0)) def is_in_shard(value): if SHARDS == 1: return True value_md5 = hashlib.md5(value.encode()) value_hex = value_md5.hexdigest() va...
19.392857
46
0.653775
0f443d0be93821f6f35a919eb50db6d2bf0c4be9
1,116
py
Python
example-plugins/mynoop.py
gsi-upm/senpy
c5a2cf23cb5ccb5ba96ae11aa1dcbb3d902c6218
[ "Apache-2.0" ]
74
2015-02-26T18:27:00.000Z
2022-02-17T17:14:43.000Z
example-plugins/mynoop.py
gsi-upm/senpy
c5a2cf23cb5ccb5ba96ae11aa1dcbb3d902c6218
[ "Apache-2.0" ]
39
2015-02-26T18:26:45.000Z
2018-05-14T09:42:59.000Z
example-plugins/mynoop.py
gsi-upm/senpy
c5a2cf23cb5ccb5ba96ae11aa1dcbb3d902c6218
[ "Apache-2.0" ]
24
2016-03-10T11:52:55.000Z
2020-11-27T06:38:37.000Z
# # Copyright 2014 Grupo de Sistemas Inteligentes (GSI) DIT, UPM # # 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 # # Unles...
27.219512
77
0.646057
b5e3bf4d75a6bd37fca7a7ecfee7b11e80ee9a2d
2,368
py
Python
examples/demo/pictures/main.py
hakanardo/kivy
707b4aa35bfb79577bd87dfc23aa527f0eb03640
[ "MIT" ]
null
null
null
examples/demo/pictures/main.py
hakanardo/kivy
707b4aa35bfb79577bd87dfc23aa527f0eb03640
[ "MIT" ]
null
null
null
examples/demo/pictures/main.py
hakanardo/kivy
707b4aa35bfb79577bd87dfc23aa527f0eb03640
[ "MIT" ]
null
null
null
#!/usr/bin/kivy ''' Basic Picture Viewer ==================== This simple image browser demonstrates the scatter widget. You should see three framed photographs on a background. You can click and drag the photos around, or multi-touch to drop a red dot to scale and rotate the photos. The photos are loaded from the lo...
30.358974
78
0.70777
59b3ca7ebea2d9cd9be740f7304d959b96f92e93
5,744
py
Python
utils/upgrade_utils.py
Ostrokrzew/open-cas-linux
35eb5682c9aae13ee7b44da5acc2dd0b593a0b10
[ "BSD-3-Clause-Clear" ]
139
2019-03-29T08:01:40.000Z
2022-03-19T01:01:44.000Z
utils/upgrade_utils.py
Ostrokrzew/open-cas-linux
35eb5682c9aae13ee7b44da5acc2dd0b593a0b10
[ "BSD-3-Clause-Clear" ]
604
2019-04-12T14:18:59.000Z
2022-03-31T18:19:56.000Z
utils/upgrade_utils.py
Ostrokrzew/open-cas-linux
35eb5682c9aae13ee7b44da5acc2dd0b593a0b10
[ "BSD-3-Clause-Clear" ]
64
2019-03-29T08:44:01.000Z
2022-03-30T09:11:30.000Z
# # Copyright(c) 2020-2021 Intel Corporation # SPDX-License-Identifier: BSD-3-Clause-Clear # import logging import subprocess import os import re def user_prompt(message, choices, default): result = None prompt = f"{message} ({'/'.join(choices)})[{default}]: " logging.info(f"Prompting user: {prompt}") ...
26.109091
97
0.584958
5b0c0aa6d528c9470d7e6b31bfc7df01bd41f3dd
2,379
py
Python
docanchors/search/strategies/highlight.py
kluge-ai/docanchors
15108f8fb1bab9f356ef7ca8f5a21a1ff6bd08ba
[ "Apache-2.0" ]
null
null
null
docanchors/search/strategies/highlight.py
kluge-ai/docanchors
15108f8fb1bab9f356ef7ca8f5a21a1ff6bd08ba
[ "Apache-2.0" ]
null
null
null
docanchors/search/strategies/highlight.py
kluge-ai/docanchors
15108f8fb1bab9f356ef7ca8f5a21a1ff6bd08ba
[ "Apache-2.0" ]
null
null
null
"""Strategies for documents represented as arrays of tokens. As presented in [1]. References ---------- [1] Kluge and Eckhardt, 2020: Explaining Suspected Phishing Attempts with Document Anchors """ import numpy as np from .strategy import Strategy class Grow(Strategy): """Grows highlights by adding an element...
27.034091
90
0.643548
af840b33e664c66f9a3f6e83f7f350e2602f57d5
2,792
py
Python
__main__.py
clash402/stock-alert
220fb237ac97d670446987d228d9a8573e95193a
[ "MIT" ]
null
null
null
__main__.py
clash402/stock-alert
220fb237ac97d670446987d228d9a8573e95193a
[ "MIT" ]
null
null
null
__main__.py
clash402/stock-alert
220fb237ac97d670446987d228d9a8573e95193a
[ "MIT" ]
null
null
null
import requests as req from decouple import config from twilio.rest import Client # PROPERTIES STOCK_NAME = "TSLA" COMPANY_NAME = "Tesla Inc" # STOCK def get_stock_closing_price(stock_name, day: int): alpha_vantage_endpoint = "https://www.alphavantage.co/query" alpha_vantage_key = config("ALPHA_VANTAGE_KEY...
33.238095
111
0.739613
27ef6431fb5efed44a1daee24f0ebe0f69a13a74
2,358
py
Python
Coding_Block_Project1.py
chiranjeevbitp/Python27new
d366efee57857402bae16cabf1df94c657490750
[ "bzip2-1.0.6" ]
null
null
null
Coding_Block_Project1.py
chiranjeevbitp/Python27new
d366efee57857402bae16cabf1df94c657490750
[ "bzip2-1.0.6" ]
null
null
null
Coding_Block_Project1.py
chiranjeevbitp/Python27new
d366efee57857402bae16cabf1df94c657490750
[ "bzip2-1.0.6" ]
null
null
null
import numpy as np from matplotlib import pyplot as plt # for apple mean_01 = np.array([3.0,4.0]) cov_01 = np.array([[1.0,-0.5],[-0.5,1.0]]) #for leman(sweetness and color) # Red is higher and yello is lower value # sweetnes is higher and surness in lesser value # for Lemon mean_02 = np.array([0.0,0.0]) cov_02 = np...
20.504348
96
0.672604
ac0ae8c272a8bccfd634f392cb4c1b4345357945
5,768
py
Python
pyjswidgets/pyjamas/ui/horizsplitpanel.ie6.py
takipsizad/pyjs
54db0ba6747aca744f9f3c3e985a17e913dfb951
[ "ECL-2.0", "Apache-2.0" ]
739
2015-01-01T02:05:11.000Z
2022-03-30T15:26:16.000Z
pyjswidgets/pyjamas/ui/horizsplitpanel.ie6.py
takipsizad/pyjs
54db0ba6747aca744f9f3c3e985a17e913dfb951
[ "ECL-2.0", "Apache-2.0" ]
33
2015-03-25T23:17:04.000Z
2021-08-19T08:25:22.000Z
pyjswidgets/pyjamas/ui/horizsplitpanel.ie6.py
takipsizad/pyjs
54db0ba6747aca744f9f3c3e985a17e913dfb951
[ "ECL-2.0", "Apache-2.0" ]
167
2015-01-01T22:27:47.000Z
2022-03-17T13:29:19.000Z
""" Horizontal Split Panel: Left and Right layouts with a movable splitter. /* * Copyright 2008 Google Inc. * Copyright 2009 Luke Kenneth Casson Leighton <lkcl@lkcl.net> * * Licensed under the Apache License, Version 2.0 (the "License") you may not * use this file except in compliance with the License. You ma...
38.198675
89
0.642684
9fc649b653d5a1c6d0f5673ec6d91050db2b9193
563
py
Python
pdb_chain_separate.py
naotohori/cafysis
9d8534121c01ea75ae965cf39a1e307052ff8523
[ "MIT" ]
2
2022-02-25T17:32:41.000Z
2022-03-31T14:38:55.000Z
pdb_chain_separate.py
naotohori/cafysis
9d8534121c01ea75ae965cf39a1e307052ff8523
[ "MIT" ]
2
2020-05-03T08:36:10.000Z
2021-01-27T12:40:50.000Z
pdb_chain_separate.py
naotohori/life-of-py
9d8534121c01ea75ae965cf39a1e307052ff8523
[ "MIT" ]
null
null
null
#!/usr/bin/env python import sys from .file_io.pdb import PdbFile if len(sys.argv) != 3: print ('\n Usage: SCRIPT [input PDB file] [output DIR (with/without prefix)]\n') sys.exit(2) f_pdb = PdbFile(sys.argv[1]) f_pdb.open_to_read() chains = f_pdb.read_all() f_pdb.close() print(('%i chains' %len(chains))...
22.52
84
0.626998
611245cb4ea59f93fbc0409929be4b23f234a324
4,046
py
Python
spotdl/metadata/embedder_base.py
khjxiaogu/spotify-downloader
a8dcb8d998da0769bbe210f2808d16b346453c23
[ "MIT" ]
4,698
2017-06-20T22:37:10.000Z
2022-03-28T13:38:07.000Z
spotdl/metadata/embedder_base.py
Delgan/spotify-downloader
8adf3e8d6b98269b1538dd91c9a44ed345c77545
[ "MIT" ]
690
2017-06-20T20:08:42.000Z
2022-02-26T23:36:07.000Z
spotdl/metadata/embedder_base.py
Delgan/spotify-downloader
8adf3e8d6b98269b1538dd91c9a44ed345c77545
[ "MIT" ]
741
2017-06-21T23:32:51.000Z
2022-03-07T12:11:54.000Z
import mutagen import os from abc import ABC from abc import abstractmethod import urllib.request from spotdl.metadata import BadMediaFileError class EmbedderBase(ABC): """ The subclass must define the supported media file encoding formats here using a static variable - such as: >>> supported_forma...
32.894309
82
0.61221
6ea205edc357c8153620b9167e73cbe93292f6d2
3,964
py
Python
parkings/migrations/0001_initial.py
klemmari1/parkkihubi
93218c6046c0910e8a4c723dc7128c6eec085b8c
[ "MIT" ]
12
2016-11-29T15:13:10.000Z
2021-06-12T06:45:38.000Z
parkings/migrations/0001_initial.py
niuzhipeng123/parkkihubi
93218c6046c0910e8a4c723dc7128c6eec085b8c
[ "MIT" ]
154
2016-11-30T09:07:58.000Z
2022-02-12T08:29:36.000Z
parkings/migrations/0001_initial.py
niuzhipeng123/parkkihubi
93218c6046c0910e8a4c723dc7128c6eec085b8c
[ "MIT" ]
15
2016-11-29T19:32:48.000Z
2022-01-05T11:31:39.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.3 on 2016-12-05 14:40 from __future__ import unicode_literals from django.conf import settings import django.contrib.gis.db.models.fields import django.core.validators from django.db import migrations, models import django.db.models.deletion import uuid class Migrat...
55.830986
192
0.637235
269b52fc88fb7b518cdcd44990b916bed1d683d7
4,097
py
Python
src/algorithm/stp.py
ShuhuaGao/bcn_ss
7f0a46e1ed94e6c4d9df114e8d241b61dc551d85
[ "MIT" ]
null
null
null
src/algorithm/stp.py
ShuhuaGao/bcn_ss
7f0a46e1ed94e6c4d9df114e8d241b61dc551d85
[ "MIT" ]
null
null
null
src/algorithm/stp.py
ShuhuaGao/bcn_ss
7f0a46e1ed94e6c4d9df114e8d241b61dc551d85
[ "MIT" ]
null
null
null
""" Semi-tensor product. This is an (incomplete) Python & numpy implementation of Dr. Cheng Daizhan's STP toolbox (http://lsc.amss.ac.cn/~dcheng/). We try to follow the implementation details of that toolbox as much as possible. Please refer to the documentation of that toolbox for more details. """ import numpy as np...
36.90991
123
0.581401
b2f4a0df44a85cb973b50765b292b8df12ef8ced
43,780
py
Python
minecraft_discord_bridge/minecraft_discord_bridge.py
Tominous/minecraft-discord-bridge
6aa4ecec22cb7317591b6e7d6a1622264a6c915e
[ "Apache-2.0" ]
1
2019-12-12T12:09:50.000Z
2019-12-12T12:09:50.000Z
minecraft_discord_bridge/minecraft_discord_bridge.py
Tominous/minecraft-discord-bridge
6aa4ecec22cb7317591b6e7d6a1622264a6c915e
[ "Apache-2.0" ]
null
null
null
minecraft_discord_bridge/minecraft_discord_bridge.py
Tominous/minecraft-discord-bridge
6aa4ecec22cb7317591b6e7d6a1622264a6c915e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright (c) 2018 Tristan Gosselin-Hane. # # This file is part of minecraft-discord-bridge # (see https://github.com/starcraft66/minecraft-discord-bridge). # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # ...
51.264637
120
0.555688
ea810793cf7893c43a0a2d045596d3ac121df09e
44,767
py
Python
backend/hqlib/metric_source/sonar.py
ICTU/quality-report
f6234e112228ee7cfe6476c2d709fe244579bcfe
[ "Apache-2.0" ]
25
2016-11-25T10:41:24.000Z
2021-07-03T14:02:49.000Z
backend/hqlib/metric_source/sonar.py
ICTU/quality-report
f6234e112228ee7cfe6476c2d709fe244579bcfe
[ "Apache-2.0" ]
783
2016-09-19T12:10:21.000Z
2021-01-04T20:39:15.000Z
backend/hqlib/metric_source/sonar.py
ICTU/quality-report
f6234e112228ee7cfe6476c2d709fe244579bcfe
[ "Apache-2.0" ]
15
2015-03-25T13:52:49.000Z
2021-03-08T17:17:56.000Z
""" Copyright 2012-2019 Ministerie van Sociale Zaken en Werkgelegenheid 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...
49.63082
119
0.643644
761ecae0961721822835283f6d97e540c224bf59
1,579
py
Python
pyston/order/parsers.py
zamazaljiri/django-pyston
38adee8e96fc807e5b529f6f18093bf2a920e8d5
[ "BSD-3-Clause" ]
7
2017-03-23T15:00:30.000Z
2021-02-24T17:41:15.000Z
pyston/order/parsers.py
zamazaljiri/django-pyston
38adee8e96fc807e5b529f6f18093bf2a920e8d5
[ "BSD-3-Clause" ]
36
2016-05-11T07:51:08.000Z
2022-02-24T14:12:48.000Z
pyston/order/parsers.py
zamazaljiri/django-pyston
38adee8e96fc807e5b529f6f18093bf2a920e8d5
[ "BSD-3-Clause" ]
29
2016-05-01T21:26:30.000Z
2022-03-18T17:17:04.000Z
from pyston.utils import LOOKUP_SEP from .utils import DIRECTION class OrderParserError(Exception): """ Exception that is raised if order input is invalid. """ pass class OrderTerm: """ Simple order term that contains order identifiers list, direction and source inpout value which is used t...
25.467742
119
0.648512
0b48b19a97bde11781e95b510d2c54d7f94b1437
1,616
py
Python
display.py
weightan/SchrodingerWellPython
ceed86cdbe935f523be61616c1b81877c9d5d74f
[ "MIT" ]
21
2021-03-22T08:26:44.000Z
2022-02-15T02:10:43.000Z
display.py
weightan/SchrodingerWellPython
ceed86cdbe935f523be61616c1b81877c9d5d74f
[ "MIT" ]
1
2021-03-28T02:28:21.000Z
2021-03-28T02:28:21.000Z
display.py
weightan/SchrodingerWellPython
ceed86cdbe935f523be61616c1b81877c9d5d74f
[ "MIT" ]
2
2021-03-24T23:35:20.000Z
2021-03-28T02:22:13.000Z
import numpy as np import matplotlib.pyplot as plt from matplotlib.pyplot import figure from matplotlib import cm from matplotlib.colors import ListedColormap, LinearSegmentedColormap e_vec = np.load('data_E_vectors_circle200x200e120.npy') N = 300 print('done load') def cMap1(): v = 10 k = 256 vals...
22.760563
71
0.530322
7ac77ed90febbec89de9ce4985c76b4be6ae614b
6,832
py
Python
scripts/us_epa/superfund/site_hazards/process_sites_hazards.py
rpatil524/data
9e76c7f22a75ad4e52522444a080ed3f5c6da7dd
[ "Apache-2.0" ]
null
null
null
scripts/us_epa/superfund/site_hazards/process_sites_hazards.py
rpatil524/data
9e76c7f22a75ad4e52522444a080ed3f5c6da7dd
[ "Apache-2.0" ]
null
null
null
scripts/us_epa/superfund/site_hazards/process_sites_hazards.py
rpatil524/data
9e76c7f22a75ad4e52522444a080ed3f5c6da7dd
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
37.745856
292
0.804157
337ac7e6c1ff4b6607d6b890ba189eb16076ed20
8,174
py
Python
config/settings/production.py
mabdullahadeel/facegram
f0eaa42008e876ae892b50f9f621a25b17cc70d5
[ "MIT" ]
1
2021-09-26T13:37:22.000Z
2021-09-26T13:37:22.000Z
config/settings/production.py
mabdullahadeel/facegram
f0eaa42008e876ae892b50f9f621a25b17cc70d5
[ "MIT" ]
1
2021-08-08T22:04:39.000Z
2021-08-08T22:04:39.000Z
config/settings/production.py
mabdullahadeel/facegram
f0eaa42008e876ae892b50f9f621a25b17cc70d5
[ "MIT" ]
null
null
null
import logging import sentry_sdk from sentry_sdk.integrations.django import DjangoIntegration from sentry_sdk.integrations.logging import LoggingIntegration from sentry_sdk.integrations.celery import CeleryIntegration from sentry_sdk.integrations.redis import RedisIntegration from .base import * # noqa from .base i...
40.26601
87
0.628334
6a511fe67362b107ddbfac5c119c5fb20941b8d7
903
py
Python
setup.py
mmadsen/axelrod-ct
90ea4319dd571546888c4d2a50255514e7d7fb94
[ "Apache-2.0" ]
5
2015-05-03T08:49:11.000Z
2022-03-23T11:44:00.000Z
setup.py
mmadsen/axelrod-ct
90ea4319dd571546888c4d2a50255514e7d7fb94
[ "Apache-2.0" ]
null
null
null
setup.py
mmadsen/axelrod-ct
90ea4319dd571546888c4d2a50255514e7d7fb94
[ "Apache-2.0" ]
null
null
null
from distutils.core import setup setup(name="axelrod-ct", version="1.0", packages=['madsenlab', 'madsenlab.axelrod', 'madsenlab.axelrod.utils', 'madsenlab.axelrod.analysis', 'madsenlab.axelrod.data', 'madsenlab.axelrod.traits',...
34.730769
63
0.548173
4f6e69c6756cd12dd7a118773d9ca39b338646db
419
py
Python
syphon/errors.py
tektronix/syphon
04460a1196c3e5a211d01cd1f02ab307b46d5932
[ "MIT" ]
3
2019-03-05T15:36:00.000Z
2019-08-01T18:33:40.000Z
syphon/errors.py
tektronix/syphon
04460a1196c3e5a211d01cd1f02ab307b46d5932
[ "MIT" ]
32
2019-02-27T15:12:52.000Z
2020-10-04T17:39:45.000Z
syphon/errors.py
tektronix/syphon
04460a1196c3e5a211d01cd1f02ab307b46d5932
[ "MIT" ]
3
2019-09-26T16:47:17.000Z
2020-03-18T14:38:31.000Z
"""syphon.errors.py Copyright Keithley Instruments, LLC. Licensed under MIT (https://github.com/tektronix/syphon/blob/master/LICENSE) """ class InconsistentMetadataError(BaseException): def __init__(self, column: str): super().__init__() self.column = column class MalformedLineError(Base...
22.052632
79
0.682578
0c1e202b2d58dddaff8ed8314e6008fc15d64f0c
1,128
py
Python
api/tacticalrmm/checks/tasks.py
jeffreyvh/tacticalrmm
dcfb1732954c2c165e82e6b24686e27f9f909eb3
[ "MIT" ]
1
2020-08-14T20:42:31.000Z
2020-08-14T20:42:31.000Z
api/tacticalrmm/checks/tasks.py
jeffreyvh/tacticalrmm
dcfb1732954c2c165e82e6b24686e27f9f909eb3
[ "MIT" ]
5
2021-04-08T19:44:31.000Z
2021-09-22T19:34:33.000Z
api/tacticalrmm/checks/tasks.py
jeffreyvh/tacticalrmm
dcfb1732954c2c165e82e6b24686e27f9f909eb3
[ "MIT" ]
null
null
null
import datetime as dt import random from time import sleep from tacticalrmm.celery import app from django.core.exceptions import ObjectDoesNotExist from django.utils import timezone as djangotime from agents.models import Agent from clients.models import Client, Site @app.task def handle_check_email_alert_task(pk):...
26.857143
74
0.687943
7dc97b3c9db29759eb1727328f78dbe5138e90c4
403
py
Python
maccorcyclingdata/.ipynb_checkpoints/validation_check_charging-checkpoint.py
jasonkuo88/maccorcyclingdata
dffcc5bbb4135f025b44303243928f8f0b121af9
[ "MIT" ]
2
2021-03-29T15:34:22.000Z
2022-03-12T13:52:40.000Z
maccorcyclingdata/.ipynb_checkpoints/validation_check_charging-checkpoint.py
jasonkuo88/maccorcyclingdata
dffcc5bbb4135f025b44303243928f8f0b121af9
[ "MIT" ]
10
2020-08-25T22:25:59.000Z
2021-08-23T20:51:10.000Z
maccorcyclingdata/.ipynb_checkpoints/validation_check_charging-checkpoint.py
jasonkuo88/maccorcyclingdata
dffcc5bbb4135f025b44303243928f8f0b121af9
[ "MIT" ]
2
2020-10-12T20:48:35.000Z
2021-10-02T00:11:26.000Z
def validation_check_charging(validation_df, df, charge_steps): if df['step'][i] in charge_steps: if df['current_ma'][i] <= 0: validation_df = validation_df.append({'time':datetime.now().strftime("%d/%m/%Y %H:%M:%S"), 'run': 'in progress', 'cell_num': cell_id, 'row_number': i, 'error': 'error - ...
67.166667
238
0.669975
582270d824a02b5a07038271aeb40ee9f3234408
864
py
Python
examples/subscribe_topic_testnet.py
wensheng/hcs-grpc-api-py-client
8c393b8ad145f11f8d1a6e5881fd51de8a9ee0a3
[ "Apache-2.0" ]
null
null
null
examples/subscribe_topic_testnet.py
wensheng/hcs-grpc-api-py-client
8c393b8ad145f11f8d1a6e5881fd51de8a9ee0a3
[ "Apache-2.0" ]
null
null
null
examples/subscribe_topic_testnet.py
wensheng/hcs-grpc-api-py-client
8c393b8ad145f11f8d1a6e5881fd51de8a9ee0a3
[ "Apache-2.0" ]
1
2021-09-12T17:51:04.000Z
2021-09-12T17:51:04.000Z
import sys import logging import grpc from hcs_grpc_client import ConsensusTopicQuery, TopicID, ConsensusServiceStub def run(tid: TopicID): request = ConsensusTopicQuery(topicID=tid) channel = grpc.insecure_channel("hcs.testnet.mirrornode.hedera.com:5600") stub = ConsensusServiceStub(channel) stream =...
30.857143
78
0.643519
0d8782a15884ce8e103cb0a2d2940de09a9d2310
3,673
py
Python
python/svm.py
DEVESHTARASIA/thundersvm
b61f858c4e46962566ba12fadf92fc06aa343852
[ "Apache-2.0" ]
1
2021-03-08T22:49:34.000Z
2021-03-08T22:49:34.000Z
python/svm.py
DEVESHTARASIA/thundersvm
b61f858c4e46962566ba12fadf92fc06aa343852
[ "Apache-2.0" ]
null
null
null
python/svm.py
DEVESHTARASIA/thundersvm
b61f858c4e46962566ba12fadf92fc06aa343852
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from ctypes import * from ctypes.util import find_library from os import path import sys dirname = path.dirname(path.abspath(__file__)) libsvm = CDLL(path.join(dirname, '../build/lib/libthundersvm.so')) dataset_path = dirname + '/../dataset/' class dataset(object): def __init_...
34.650943
148
0.685543
8c1124cb326a13425ce5ebc5e86e2fa464497745
3,409
py
Python
tests/knowledge/rules/aws/non_context_aware/encryption_enforcement_rules/encrypt_at_rest/test_ensure_docdb_clusters_encrypted_customer_managed_cmk_rule.py
my-devops-info/cloudrail-knowledge
b7c1bbd6fe1faeb79c105a01c0debbe24d031a0e
[ "MIT" ]
null
null
null
tests/knowledge/rules/aws/non_context_aware/encryption_enforcement_rules/encrypt_at_rest/test_ensure_docdb_clusters_encrypted_customer_managed_cmk_rule.py
my-devops-info/cloudrail-knowledge
b7c1bbd6fe1faeb79c105a01c0debbe24d031a0e
[ "MIT" ]
null
null
null
tests/knowledge/rules/aws/non_context_aware/encryption_enforcement_rules/encrypt_at_rest/test_ensure_docdb_clusters_encrypted_customer_managed_cmk_rule.py
my-devops-info/cloudrail-knowledge
b7c1bbd6fe1faeb79c105a01c0debbe24d031a0e
[ "MIT" ]
null
null
null
import unittest from cloudrail.knowledge.context.aws.docdb.docdb_cluster import DocumentDbCluster from cloudrail.knowledge.context.aws.kms.kms_key import KmsKey from cloudrail.knowledge.context.aws.kms.kms_key_manager import KeyManager from cloudrail.knowledge.context.aws.aws_environment_context import AwsEnvironmentC...
49.405797
164
0.777647
4a49a72848dfa5f254ce70ca46e6cd45be3819fe
47,845
py
Python
data/AnomalDataLoader.py
qgking/DASC_COVID19
3300516b1d0e9896e2fb2ffda8527e0e1a1fcf2c
[ "MIT" ]
4
2021-04-21T05:09:49.000Z
2022-01-17T13:02:45.000Z
data/AnomalDataLoader.py
qgking/DASC_COVID19
3300516b1d0e9896e2fb2ffda8527e0e1a1fcf2c
[ "MIT" ]
null
null
null
data/AnomalDataLoader.py
qgking/DASC_COVID19
3300516b1d0e9896e2fb2ffda8527e0e1a1fcf2c
[ "MIT" ]
1
2021-07-08T02:20:43.000Z
2021-07-08T02:20:43.000Z
# -*- coding: utf-8 -*- # @Time : 20/5/1 16:58 # @Author : qgking # @Email : qgking@tju.edu.cn # @Software: PyCharm # @Desc : LungSegDataLoader.py from skimage.transform import resize from torch.utils.data import Dataset from common.base_utls import * from common.data_utils import * import torch from torchvisi...
44.673203
121
0.549943
6dcce1cdb21534569ec7f201da65d36a51f36c07
4,865
py
Python
statdyn/simulation/equilibrate.py
malramsay64/MD-Molecules-Hoomd
c3f2e83404cc9be6731ddd40983c6fa5b2ca9a2d
[ "MIT" ]
1
2017-09-04T15:01:10.000Z
2017-09-04T15:01:10.000Z
statdyn/simulation/equilibrate.py
malramsay64/MD-Molecules-Hoomd
c3f2e83404cc9be6731ddd40983c6fa5b2ca9a2d
[ "MIT" ]
null
null
null
statdyn/simulation/equilibrate.py
malramsay64/MD-Molecules-Hoomd
c3f2e83404cc9be6731ddd40983c6fa5b2ca9a2d
[ "MIT" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- # vim:fenc=utf-8 # # Copyright © 2017 Malcolm Ramsay <malramsay64@gmail.com> # # Distributed under terms of the MIT license. """A series of methods for the equilibration of configurations.""" import logging import hoomd import hoomd.md import numpy as np from .helper i...
34.260563
89
0.664748
9b4e915f229c05f26885449628da70f2da25386b
17,459
py
Python
sie_get_clients/sie_get_python/sie_get_py.py
farsightsec/blog-code
e0e46ed4b93debc3eaadec2c3019f9538c324aee
[ "ECL-2.0", "Apache-2.0" ]
11
2016-07-02T19:00:02.000Z
2021-03-06T20:48:13.000Z
sie_get_clients/sie_get_python/sie_get_py.py
farsightsec/blog-code
e0e46ed4b93debc3eaadec2c3019f9538c324aee
[ "ECL-2.0", "Apache-2.0" ]
1
2021-08-04T09:53:54.000Z
2021-08-10T22:32:42.000Z
sie_get_clients/sie_get_python/sie_get_py.py
farsightsec/blog-code
e0e46ed4b93debc3eaadec2c3019f9538c324aee
[ "ECL-2.0", "Apache-2.0" ]
9
2015-03-16T15:06:42.000Z
2019-04-08T16:07:58.000Z
#!/usr/bin/env python3 """This script demonstrates use of the SIE-Batch API from Python3""" # Lint with $ pylint sie_get_py.py (assumes .pylintrc file in dir) import calendar import datetime from datetime import datetime from io import BytesIO import json from os import path from pathlib import Path import re im...
36.989407
116
0.616129
7ee610860134b77cbf38c732c6c184f56c814977
148
py
Python
recaptcha_form/account_backend/forms.py
ntucker/django-recaptcha-form
7d803d5ad7efb3cfa6b65b0c3a8a1289fefbcd9b
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
recaptcha_form/account_backend/forms.py
ntucker/django-recaptcha-form
7d803d5ad7efb3cfa6b65b0c3a8a1289fefbcd9b
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
recaptcha_form/account_backend/forms.py
ntucker/django-recaptcha-form
7d803d5ad7efb3cfa6b65b0c3a8a1289fefbcd9b
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
from recaptcha_form.forms import RecaptchaForm from account.forms import SignupForm class RecaptchaSignupForm(RecaptchaForm, SignupForm): pass
24.666667
53
0.844595
70822d2ee74a32ed71d9c11e5591a664f6cfeb7a
12,725
py
Python
sfs/core.py
rhino2rhonda/vfs
8f55ae36d34871fc649092f2a28b91465a495341
[ "MIT" ]
null
null
null
sfs/core.py
rhino2rhonda/vfs
8f55ae36d34871fc649092f2a28b91465a495341
[ "MIT" ]
null
null
null
sfs/core.py
rhino2rhonda/vfs
8f55ae36d34871fc649092f2a28b91465a495341
[ "MIT" ]
null
null
null
import os import collections import itertools import shutil import sfs.file_system as fs import sfs.log_utils as log # Constants constants = { 'SFS_DIR': 'sfs', 'SFS_META_FILE': 'meta', 'COLLECTION_DIR': 'cols', 'COLLECTION_STATS_DIR': 'stats', 'SFS_FILE_EXTENSION': '.sfs', } # Tuple of altered ...
41.584967
119
0.650059
52a6ee70f41a8481901dfdb90a905cf9b9aa9eda
1,855
py
Python
populate/populator/common/populator_actions.py
jsanchezgr/lib-exo-populator
c8c9e7e983d91149f561b01680f2890cd2ca0629
[ "BSD-3-Clause" ]
null
null
null
populate/populator/common/populator_actions.py
jsanchezgr/lib-exo-populator
c8c9e7e983d91149f561b01680f2890cd2ca0629
[ "BSD-3-Clause" ]
5
2019-07-03T06:26:00.000Z
2019-08-02T10:24:46.000Z
populate/populator/common/populator_actions.py
jsanchezgr/lib-exo-populator
c8c9e7e983d91149f561b01680f2890cd2ca0629
[ "BSD-3-Clause" ]
2
2019-07-31T10:54:28.000Z
2019-08-01T10:59:37.000Z
import os from django.core.management.base import BaseCommand from django.core.management import call_command from django.db import connection from django.conf import settings from populate.define_signals import post_populate, post_migrate from populate.populator.common.bulk_operations import BulkOperations from popu...
33.727273
80
0.679784
1cf1cdf663354b7687a106b9c8b576dfc7188047
6,715
py
Python
test/functional/feature_alerts_reorg.py
lunatechza/bitcoinvault
3110c208b1946ee5f689e469e58f80926282b0f2
[ "MIT" ]
null
null
null
test/functional/feature_alerts_reorg.py
lunatechza/bitcoinvault
3110c208b1946ee5f689e469e58f80926282b0f2
[ "MIT" ]
null
null
null
test/functional/feature_alerts_reorg.py
lunatechza/bitcoinvault
3110c208b1946ee5f689e469e58f80926282b0f2
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2016-2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the Alerts changeover logic.""" import os import shutil from decimal import Decimal from test_fra...
38.371429
132
0.657632
0d55a3b0de938fc3a06229f94bd222710c79035d
9,228
py
Python
habitat/tasks/rearrange/multi_task/composite_sensors.py
jturner65/habitat-api
b54dd6eb4a7d99762f326d1a78035600c4e57929
[ "MIT" ]
489
2019-02-21T21:47:40.000Z
2020-08-10T06:43:24.000Z
habitat/tasks/rearrange/multi_task/composite_sensors.py
jturner65/habitat-api
b54dd6eb4a7d99762f326d1a78035600c4e57929
[ "MIT" ]
380
2019-02-26T00:50:48.000Z
2020-08-11T14:57:07.000Z
habitat/tasks/rearrange/multi_task/composite_sensors.py
jturner65/habitat-api
b54dd6eb4a7d99762f326d1a78035600c4e57929
[ "MIT" ]
167
2019-02-26T00:38:30.000Z
2020-08-09T23:07:10.000Z
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from habitat.core.embodied_task import Measure from habitat.core.registry import registry from habitat.tasks.rearrange....
31.930796
110
0.604356
c67e0a1ad84ccf2a2826d118f14d801f51785b85
768
py
Python
wdna_tests/unit/test_flask_app_phylo.py
dduleba/mtdna
e98b8d08df862dcb9baa8d3918d86bc428ad4342
[ "MIT" ]
null
null
null
wdna_tests/unit/test_flask_app_phylo.py
dduleba/mtdna
e98b8d08df862dcb9baa8d3918d86bc428ad4342
[ "MIT" ]
null
null
null
wdna_tests/unit/test_flask_app_phylo.py
dduleba/mtdna
e98b8d08df862dcb9baa8d3918d86bc428ad4342
[ "MIT" ]
null
null
null
from unittest import TestCase from wdna.www import flask_app class FlaskAppTestPhyloCase(TestCase): @classmethod def setUpClass(cls) -> None: super().setUpClass() flask_app.app.testing = True cls.client = flask_app.app.test_client() cls.rv = cls.client.get('/wdna/phylo') ...
30.72
77
0.617188
29b93abe3e6a13fde8de7495a80c2034c5fde8b3
14,583
py
Python
pytorch_lightning/core/datamodule.py
hobogalaxy/pytorch-lightning
46540ee260af5137ac38ff0ce1022290cbc120b9
[ "Apache-2.0" ]
1
2021-03-03T11:01:43.000Z
2021-03-03T11:01:43.000Z
pytorch_lightning/core/datamodule.py
hobogalaxy/pytorch-lightning
46540ee260af5137ac38ff0ce1022290cbc120b9
[ "Apache-2.0" ]
null
null
null
pytorch_lightning/core/datamodule.py
hobogalaxy/pytorch-lightning
46540ee260af5137ac38ff0ce1022290cbc120b9
[ "Apache-2.0" ]
null
null
null
# Copyright The PyTorch Lightning 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 law or agreed to i...
35.830467
117
0.629774
7c859b95fc1a4bd627e1fb807d9af6870b062468
510
py
Python
hw6/main.py
go-may/goiteens-python3-abdaladze
5fb544a3696fcf57f11b6292b468fc7f533ff749
[ "MIT" ]
null
null
null
hw6/main.py
go-may/goiteens-python3-abdaladze
5fb544a3696fcf57f11b6292b468fc7f533ff749
[ "MIT" ]
null
null
null
hw6/main.py
go-may/goiteens-python3-abdaladze
5fb544a3696fcf57f11b6292b468fc7f533ff749
[ "MIT" ]
null
null
null
print ("Hello this is our calendar application") print ("Please choouse your option: ") print ("1.Write new date") print ("2.Read all dates") print ("3.Exit") messageFromUser = input() if messageFromUser == "1": print ("Enter your new date: ") newDate = input() calendar = open("calendar.txt", "a") calen...
25.5
49
0.647059
6dd82b859285c875d3e5efd5c068f105638088c3
9,743
py
Python
RebuttalAnalysis/predict_after_score.py
UKPLab/naacl2019-does-my-rebuttal-matter
ad76295863046e8d44995736598ca2643e47a3c9
[ "Apache-2.0" ]
24
2019-03-11T13:53:41.000Z
2021-03-26T01:39:43.000Z
RebuttalAnalysis/predict_after_score.py
yg211/naacl2019-does-my-rebuttal-matter
69b5311e5f5c51755091c0db8cffa8f17f01615a
[ "Apache-2.0" ]
2
2020-06-13T10:59:51.000Z
2020-08-06T09:03:27.000Z
RebuttalAnalysis/predict_after_score.py
yg211/naacl2019-does-my-rebuttal-matter
69b5311e5f5c51755091c0db8cffa8f17f01615a
[ "Apache-2.0" ]
2
2019-09-17T09:25:27.000Z
2020-03-09T15:55:16.000Z
# SAMPLE USAGE: # python3 step2_featureSelction_regression.py # before running, install all packages in requirement.txt import sys sys.path.append('../..') import argparse import numpy as np import sklearn.linear_model from sklearn.metrics import mean_squared_error, r2_score from sklearn.feature_selection import f_r...
41.109705
228
0.685826
687673dad4a1dca2e63146b033e042d2c2bd17d2
1,682
py
Python
nnef_tools/io/tensorflow/tflite_fb/SqueezeOptions.py
jnorwood/NNEF-Tools
5eb3755b5322040d42893e41b15093337abe04ce
[ "Apache-2.0" ]
1
2019-09-06T19:37:01.000Z
2019-09-06T19:37:01.000Z
nnef_tools/io/tensorflow/tflite_fb/SqueezeOptions.py
Acidburn0zzz/NNEF-Tools
f9bcb3e043474d47f6a8a552abcc6d1069476072
[ "Apache-2.0" ]
null
null
null
nnef_tools/io/tensorflow/tflite_fb/SqueezeOptions.py
Acidburn0zzz/NNEF-Tools
f9bcb3e043474d47f6a8a552abcc6d1069476072
[ "Apache-2.0" ]
null
null
null
# automatically generated by the FlatBuffers compiler, do not modify # namespace: tflite_fb import flatbuffers class SqueezeOptions(object): __slots__ = ['_tab'] @classmethod def GetRootAsSqueezeOptions(cls, buf, offset): n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) ...
35.787234
158
0.701546
50bda1f204307fec9154b835c7c088c9552ff71f
2,175
py
Python
test/ml/test_breast_cancer.py
charmerDark/qiskit-aqua
c1564af8792c6664670807614a378147fd04d28f
[ "Apache-2.0" ]
504
2018-12-15T16:34:03.000Z
2022-03-26T11:24:53.000Z
test/ml/test_breast_cancer.py
charmerDark/qiskit-aqua
c1564af8792c6664670807614a378147fd04d28f
[ "Apache-2.0" ]
746
2018-12-16T16:44:42.000Z
2021-07-10T16:59:43.000Z
test/ml/test_breast_cancer.py
charmerDark/qiskit-aqua
c1564af8792c6664670807614a378147fd04d28f
[ "Apache-2.0" ]
421
2018-12-22T14:49:00.000Z
2022-03-04T09:47:07.000Z
# This code is part of Qiskit. # # (C) Copyright IBM 2020, 2021. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivat...
43.5
97
0.624828
fd06f5a20877f580553abd42adf53a293df446f7
2,482
py
Python
titanicTest.py
Biubiupia/MachineLearningProject
37ddb20cef0da8f5cd43eaee21a5248af4a41584
[ "MIT" ]
null
null
null
titanicTest.py
Biubiupia/MachineLearningProject
37ddb20cef0da8f5cd43eaee21a5248af4a41584
[ "MIT" ]
null
null
null
titanicTest.py
Biubiupia/MachineLearningProject
37ddb20cef0da8f5cd43eaee21a5248af4a41584
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sat Mar 31 09:30:24 2018 @author: Administrator 随机森林不需要预处理数据 """ # 导入数据预处理,包括标准化处理或正则处理 from sklearn import preprocessing from sklearn.preprocessing import Imputer from sklearn.impute import SimpleImputer from sklearn import metrics import numpy as np import matplotlib.pyplot as ...
28.528736
85
0.794923
49edeed5517761e1dd5030828827e08742195cf3
67,664
py
Python
nova/compute/resource_tracker.py
WeifanFu-bsn/nova
c7b54a80ac25f6a01d0a150c546532f5ae2592ce
[ "Apache-2.0" ]
null
null
null
nova/compute/resource_tracker.py
WeifanFu-bsn/nova
c7b54a80ac25f6a01d0a150c546532f5ae2592ce
[ "Apache-2.0" ]
null
null
null
nova/compute/resource_tracker.py
WeifanFu-bsn/nova
c7b54a80ac25f6a01d0a150c546532f5ae2592ce
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2012 OpenStack Foundation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
46.632667
79
0.622872
932a16f38bd3e371e894a271b9481ab24379cc18
1,095
py
Python
permabots/models/environment_vars.py
eafanasev/permabots
24de0376e8c482800f4214c021c133d81b9de69f
[ "BSD-3-Clause" ]
null
null
null
permabots/models/environment_vars.py
eafanasev/permabots
24de0376e8c482800f4214c021c133d81b9de69f
[ "BSD-3-Clause" ]
null
null
null
permabots/models/environment_vars.py
eafanasev/permabots
24de0376e8c482800f4214c021c133d81b9de69f
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from django.db import models from django.utils.encoding import python_2_unicode_compatible from django.utils.translation import ugettext_lazy as _ from permabots.models.base import PermabotsModel from permabots.models import Bot import logging logger = logging.getLogger(__name__) @python_2_uni...
35.322581
154
0.702283
1056290896a217342ab163dfeec84bbe5f3c803a
7,224
py
Python
refparse/control.py
MattWellie/refparse
068721329b70cd727301c1c1c08f6989ce31c17b
[ "MIT" ]
null
null
null
refparse/control.py
MattWellie/refparse
068721329b70cd727301c1c1c08f6989ce31c17b
[ "MIT" ]
null
null
null
refparse/control.py
MattWellie/refparse
068721329b70cd727301c1c1c08f6989ce31c17b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import argparse import configparser from reader import Reader from latex_writer import LatexWriter from GBParser import GBParser from LRGParser import LRGParser from primer_module import Primer import os import logging from utilities import check_file_type __author__ = "mwelland" __version__ = ...
36.301508
140
0.586379
84b9452c6cb88f5d6c5c527ff606610120ed0e4c
1,123
py
Python
Week 1/id_700/88_mergeTwoSortArray.py
larryRishi/algorithm004-05
e60d0b1176acd32a9184b215e36d4122ba0b6263
[ "Apache-2.0" ]
1
2019-10-12T06:48:45.000Z
2019-10-12T06:48:45.000Z
Week 1/id_700/88_mergeTwoSortArray.py
larryRishi/algorithm004-05
e60d0b1176acd32a9184b215e36d4122ba0b6263
[ "Apache-2.0" ]
1
2019-12-01T10:02:03.000Z
2019-12-01T10:02:03.000Z
Week 1/id_700/88_mergeTwoSortArray.py
larryRishi/algorithm004-05
e60d0b1176acd32a9184b215e36d4122ba0b6263
[ "Apache-2.0" ]
null
null
null
# 给定两个有序整数数组 nums1 和 nums2,将 nums2 合并到 nums1 中,使得 num1 成为一个有序数组。 # # 说明: # # 初始化 nums1 和 nums2 的元素数量分别为 m 和 n。 # 你可以假设 nums1 有足够的空间(空间大小大于或等于 m + n)来保存 nums2 中的元素。 # # # 来源:力扣(LeetCode) # 链接:https://leetcode-cn.com/problems/merge-sorted-array # 著作权归领扣网络所有。商业转载请联系官方授权,非商业转载请注明出处。 ##### 思路1 暴力求解,将nums1的数组拷贝出来,nums1设置为...
32.085714
102
0.535174
227d3761d33f00daeaf174555f849152337706da
4,449
py
Python
scripts/msgf2seq.py
marcottelab/infer_complexes
45ee1fb948f48fcf7fa97289c67d098e533116e4
[ "MIT" ]
1
2017-10-04T05:17:22.000Z
2017-10-04T05:17:22.000Z
scripts/msgf2seq.py
marcottelab/infer_complexes
45ee1fb948f48fcf7fa97289c67d098e533116e4
[ "MIT" ]
null
null
null
scripts/msgf2seq.py
marcottelab/infer_complexes
45ee1fb948f48fcf7fa97289c67d098e533116e4
[ "MIT" ]
null
null
null
from __future__ import division import itertools as it import numpy as np import subprocess from os.path import abspath import os import sys sys.path.append(os.path.dirname(abspath(__file__))+'/../') import utils as ut import seqs PROTON = 1.00727646677 WATER = 18.01048 # mass of a water due to no peptide bonds on the...
30.682759
89
0.621938
031fef7b47575ab63fa043e9aeab3ec837eefa01
1,092
py
Python
lesson10/exercise1a.py
mfeindt0705/pynetmf
02fc092fd42ce5be5e160fa88b65c63d23408a6a
[ "Apache-2.0" ]
null
null
null
lesson10/exercise1a.py
mfeindt0705/pynetmf
02fc092fd42ce5be5e160fa88b65c63d23408a6a
[ "Apache-2.0" ]
7
2021-03-18T21:28:13.000Z
2022-02-10T10:39:10.000Z
lesson10/exercise1a.py
mfeindt0705/pynetmf
02fc092fd42ce5be5e160fa88b65c63d23408a6a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 """ Create a Python script that executes "show version" on each of the network devices defined in my_devices.py. This script should execute serially """ from datetime import datetime from netmiko import ConnectHandler from my_devices_mf import device_list as devices import warnings warnings.fil...
24.818182
109
0.682234
bc655ea1c883d5fc12bf63902c1b97a84eed42fd
2,764
py
Python
jdcloud_sdk/services/monitor/models/Alarm.py
lidaobing/jdcloud-sdk-python
f305e8ddd74ab4ad445477744534e7299d4d93fb
[ "Apache-2.0" ]
null
null
null
jdcloud_sdk/services/monitor/models/Alarm.py
lidaobing/jdcloud-sdk-python
f305e8ddd74ab4ad445477744534e7299d4d93fb
[ "Apache-2.0" ]
null
null
null
jdcloud_sdk/services/monitor/models/Alarm.py
lidaobing/jdcloud-sdk-python
f305e8ddd74ab4ad445477744534e7299d4d93fb
[ "Apache-2.0" ]
1
2019-03-01T08:44:37.000Z
2019-03-01T08:44:37.000Z
# coding=utf8 # Copyright 2018-2025 JDCLOUD.COM # # 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...
41.878788
328
0.668234
6314414d0f7dfac608fc979495a757a1f0acd0e6
1,418
py
Python
migrations/versions/177a65486a0_.py
PyGotham/pygotham
310508c16dabf2ce9aaf0c2624132d725f71143b
[ "BSD-3-Clause" ]
19
2015-03-03T19:50:55.000Z
2019-11-19T17:55:33.000Z
migrations/versions/177a65486a0_.py
PyGotham/pygotham
310508c16dabf2ce9aaf0c2624132d725f71143b
[ "BSD-3-Clause" ]
124
2015-01-23T06:28:44.000Z
2020-10-03T12:59:30.000Z
migrations/versions/177a65486a0_.py
PyGotham/pygotham
310508c16dabf2ce9aaf0c2624132d725f71143b
[ "BSD-3-Clause" ]
21
2015-04-15T03:01:07.000Z
2020-10-03T12:55:38.000Z
"""Add slugs to events. Revision ID: 177a65486a0 Revises: 32dc1be3b22 Create Date: 2015-04-27 04:40:15.594924 """ # revision identifiers, used by Alembic. revision = '177a65486a0' down_revision = '32dc1be3b22' from alembic import op from slugify import slugify import sqlalchemy as sa from sqlalchemy import Integer,...
26.754717
86
0.636812
9da09aa1e942010041c160ee8cf11d403506ab60
482
py
Python
test_actionlib/curlpp/catkin_generated/pkg.installspace.context.pc.py
ChendiDotLin/FlexBE-Trial
a6b3ef005b6c4ac751377a2737a3efae2b439da6
[ "BSD-3-Clause" ]
null
null
null
test_actionlib/curlpp/catkin_generated/pkg.installspace.context.pc.py
ChendiDotLin/FlexBE-Trial
a6b3ef005b6c4ac751377a2737a3efae2b439da6
[ "BSD-3-Clause" ]
null
null
null
test_actionlib/curlpp/catkin_generated/pkg.installspace.context.pc.py
ChendiDotLin/FlexBE-Trial
a6b3ef005b6c4ac751377a2737a3efae2b439da6
[ "BSD-3-Clause" ]
null
null
null
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/usr/local/include".split(';') if "/usr/local/include" != "" else [] PROJECT_CATKIN_DEPENDS = "actionlib;actionlib_msgs;message_generation;roscpp;rospy".replace(';', ' ') PKG_CONFIG_LIBRARIES_WITH_PREF...
53.555556
103
0.751037
c82514b68037cfed7ba552386499961a2d9332e2
3,321
py
Python
example/train_R_net.py
zuoqing1988/train-mtcnn-head
a19a0d494809035eff04b489962c7112a312aca3
[ "MIT" ]
91
2019-01-03T01:58:56.000Z
2022-03-04T06:28:06.000Z
example/train_R_net.py
joey2014/train-mtcnn-head
10c120e7bfa5519bd81634138db63c97de034197
[ "MIT" ]
7
2019-02-14T07:53:32.000Z
2020-03-06T06:50:56.000Z
example/train_R_net.py
joey2014/train-mtcnn-head
10c120e7bfa5519bd81634138db63c97de034197
[ "MIT" ]
20
2019-01-20T08:37:47.000Z
2020-09-18T23:20:54.000Z
import argparse import mxnet as mx import sys,os sys.path.append(os.getcwd()) from core.imdb import IMDB from train import train_net from core.symbol import R_Net def train_R_net(image_set, root_path, dataset_path, prefix, ctx, pretrained, epoch, begin_epoch, end_epoch, batch_size, thread_num, ...
52.714286
130
0.624511
6e7897ba5f12da26ab9ead63bd682875dcf76723
1,110
py
Python
stock_analysis/testing/bitcoin.py
RyanArnasonML/stock-analysis
a5c79d9c438f095dc370f2db4e4780356cdc5d01
[ "MIT" ]
null
null
null
stock_analysis/testing/bitcoin.py
RyanArnasonML/stock-analysis
a5c79d9c438f095dc370f2db4e4780356cdc5d01
[ "MIT" ]
null
null
null
stock_analysis/testing/bitcoin.py
RyanArnasonML/stock-analysis
a5c79d9c438f095dc370f2db4e4780356cdc5d01
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sun Nov 1 10:24:21 2020 @author: ryanar """ import matplotlib.pyplot as plt from stock_analysis import StockReader, StockVisualizer, Technical, AssetGroupVisualizer, StockAnalyzer, AssetGroupAnalyzer, StockModeler from stock_analysis.utils import group_stocks, describe_group, ...
27.073171
138
0.743243
7642e7a20320678a4c783e6fe188aaae6f3f6841
1,124
py
Python
src/tutorials/3-Movan/2-Session/main.py
yungshenglu/tensorflow-practice
3ec162c64531b20e143937c97b6bb56a54a20a40
[ "Apache-2.0" ]
1
2018-12-16T12:59:57.000Z
2018-12-16T12:59:57.000Z
src/tutorials/3-Movan/2-Session/main.py
yungshenglu/tensorflow-practice
3ec162c64531b20e143937c97b6bb56a54a20a40
[ "Apache-2.0" ]
1
2019-01-01T10:17:33.000Z
2019-01-01T10:17:33.000Z
src/tutorials/3-Movan/2-Session/main.py
yungshenglu/tensorflow-practice
3ec162c64531b20e143937c97b6bb56a54a20a40
[ "Apache-2.0" ]
1
2018-12-31T10:38:06.000Z
2018-12-31T10:38:06.000Z
#!/usr/bin/env python3 import sys import tensorflow as tf def main(arg): ''' Create TensorFlow model ''' # Define two matrices as constant matrix1 = tf.constant([[3, 3]]) matrix2 = tf.constant([[2],[2]]) # Product two matrices (same as np.dot(matrix1, matrix2)) product = tf.matmul(matrix1, matrix2) ''' Star...
24.977778
69
0.645018
c6da50f994fb6dec8552e2cb6d5017c97cbec004
208
py
Python
chapter6/6.2/decorator_test.py
yifengyou/crazy-python
28099bd5011de6981a7c5412783952cc7601ae0c
[ "Unlicense" ]
null
null
null
chapter6/6.2/decorator_test.py
yifengyou/crazy-python
28099bd5011de6981a7c5412783952cc7601ae0c
[ "Unlicense" ]
null
null
null
chapter6/6.2/decorator_test.py
yifengyou/crazy-python
28099bd5011de6981a7c5412783952cc7601ae0c
[ "Unlicense" ]
null
null
null
# coding:utf-8 # File Name: decorator_test # Author : yifengyou # Date : 2021/07/18 def funA(fn): print("A") fn() return "hello" @funA def funB(): print("B") print(funB)
12.235294
31
0.543269
b4b7cf1a2e8ba7903274e4aec953e6e8e421b934
17,545
py
Python
utilities/math_utils.py
amiravni/DataHack2018
3e8b7003f418186a4c351390c67453d8f6d90f4b
[ "BSD-3-Clause" ]
10
2018-09-26T21:37:20.000Z
2021-02-02T22:28:28.000Z
utilities/math_utils.py
amiravni/DataHack2018
3e8b7003f418186a4c351390c67453d8f6d90f4b
[ "BSD-3-Clause" ]
null
null
null
utilities/math_utils.py
amiravni/DataHack2018
3e8b7003f418186a4c351390c67453d8f6d90f4b
[ "BSD-3-Clause" ]
2
2018-10-06T06:49:12.000Z
2019-06-18T21:20:07.000Z
# Copyright (C) 2018 Innoviz Technologies # All rights reserved. # # This software may be modified and distributed under the terms # of the BSD 3-Clause license. See the LICENSE file for details. import numpy as np import matplotlib.pyplot as plt import matplotlib.patches as plt_patches import shapely.geometry import ...
37.093023
120
0.603705
4e93c87af525c99da6c24c264f5bb3e8590a3022
93
py
Python
query.py
MatthewRobertDunn/tetrominos
f864f6da44e50e2ee435ad8fabef2679c1e21a8b
[ "MIT" ]
null
null
null
query.py
MatthewRobertDunn/tetrominos
f864f6da44e50e2ee435ad8fabef2679c1e21a8b
[ "MIT" ]
null
null
null
query.py
MatthewRobertDunn/tetrominos
f864f6da44e50e2ee435ad8fabef2679c1e21a8b
[ "MIT" ]
null
null
null
def find_first(items, predicate): return next(item for item in items if predicate(item))
31
58
0.752688
3ffbf649f78915f7ef1c775100f743d8f37becf4
10,966
py
Python
ari_backup/lvm.py
jpwoodbu/ari-backup
7c0c87e6ff7e10853f0f1478685c1250e176a9f7
[ "BSD-3-Clause" ]
1
2018-05-02T13:33:51.000Z
2018-05-02T13:33:51.000Z
ari_backup/lvm.py
jpwoodbu/ari-backup
7c0c87e6ff7e10853f0f1478685c1250e176a9f7
[ "BSD-3-Clause" ]
23
2015-01-04T08:03:03.000Z
2017-11-04T16:25:11.000Z
ari_backup/lvm.py
jpwoodbu/ari-backup
7c0c87e6ff7e10853f0f1478685c1250e176a9f7
[ "BSD-3-Clause" ]
1
2015-09-20T04:38:18.000Z
2015-09-20T04:38:18.000Z
"""LVM based backup workflows and MixIn classes.""" import copy import os import gflags import rdiff_backup_wrapper FLAGS = gflags.FLAGS gflags.DEFINE_string( 'snapshot_mount_root', '/tmp', 'root path for creating temporary directories for mounting LVM snapshots') gflags.DEFINE_string('snapshot_suffix', '-a...
42.835938
79
0.632683
49315e17e8fd41ca242e660e776a43be45073835
255
py
Python
docs_src/subcommands/tutorial003/users.py
madkinsz/typer
a1520dcda685220a9a796288f5eaaebd00d68845
[ "MIT" ]
7,615
2019-12-24T13:08:20.000Z
2022-03-31T22:07:53.000Z
docs_src/subcommands/tutorial003/users.py
madkinsz/typer
a1520dcda685220a9a796288f5eaaebd00d68845
[ "MIT" ]
351
2019-12-24T22:17:54.000Z
2022-03-31T15:35:08.000Z
docs_src/subcommands/tutorial003/users.py
jina-ai/typer
8b5e14b25ddf0dd777403015883301b17bedcee0
[ "MIT" ]
360
2019-12-24T15:29:59.000Z
2022-03-30T20:33:10.000Z
import typer app = typer.Typer() @app.command() def create(user_name: str): typer.echo(f"Creating user: {user_name}") @app.command() def delete(user_name: str): typer.echo(f"Deleting user: {user_name}") if __name__ == "__main__": app()
14.166667
45
0.662745
a3aebb53c08744dbe62aa01a1184de198bc0d59a
879
bzl
Python
tools/markdown.bzl
depp/terrestrial-collection-machine
54b4f2906bd733d2f5b62622cfcbb7508674bc98
[ "MIT" ]
null
null
null
tools/markdown.bzl
depp/terrestrial-collection-machine
54b4f2906bd733d2f5b62622cfcbb7508674bc98
[ "MIT" ]
null
null
null
tools/markdown.bzl
depp/terrestrial-collection-machine
54b4f2906bd733d2f5b62622cfcbb7508674bc98
[ "MIT" ]
null
null
null
def _impl(ctx): outputs = [] for src in ctx.files.srcs: name = src.basename idx = name.find(".") if idx >= 0: name = name[:idx] out = ctx.actions.declare_file(name + ".html") outputs.append(out) ctx.actions.run_shell( inputs = [src], ...
30.310345
76
0.488055
b639ac3d74d2c78cbdfc88ee1218fe981fa96e27
12,643
py
Python
test/unit_test/test_rolling_windows_model.py
WheatonCS/Lexos
994be4e403053ebbef18e5758a100af616195706
[ "MIT" ]
107
2015-03-19T09:10:31.000Z
2022-01-29T01:33:48.000Z
test/unit_test/test_rolling_windows_model.py
WheatonCS/Lexos
994be4e403053ebbef18e5758a100af616195706
[ "MIT" ]
864
2015-05-19T19:27:00.000Z
2022-01-28T18:48:52.000Z
test/unit_test/test_rolling_windows_model.py
WheatonCS/Lexos
994be4e403053ebbef18e5758a100af616195706
[ "MIT" ]
25
2015-06-02T23:03:06.000Z
2020-08-06T04:27:49.000Z
import numpy as np import pandas as pd from lexos.models.rolling_window_model import RollingWindowsModel, \ RWATestOptions from lexos.receivers.rolling_window_receiver import RWAFrontEndOptions, \ WindowUnitType, RWATokenType, RWARatioTokenOptions, RWAWindowOptions, \ RWAAverageTokenOptions, RWAPlotOptions ...
36.646377
79
0.534525
5bce5a16af16f4a5a2ab428150dfb06af2a7f66d
1,811
py
Python
tools/Polygraphy/setup.py
spradius/TensorRT
eb5de99b523c76c2f3ae997855ad86d3a1e86a31
[ "Apache-2.0" ]
1
2021-08-23T01:15:16.000Z
2021-08-23T01:15:16.000Z
tools/Polygraphy/setup.py
spradius/TensorRT
eb5de99b523c76c2f3ae997855ad86d3a1e86a31
[ "Apache-2.0" ]
null
null
null
tools/Polygraphy/setup.py
spradius/TensorRT
eb5de99b523c76c2f3ae997855ad86d3a1e86a31
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2021, NVIDIA CORPORATION. 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 appl...
30.694915
94
0.677526
074b21e06e2f433b6399b07848bb11d144683d48
461
py
Python
src/test_bell_state.py
raviksharma/quantum
b76e9eaff59a59dada645f2da81bc5b8361c6722
[ "MIT" ]
null
null
null
src/test_bell_state.py
raviksharma/quantum
b76e9eaff59a59dada645f2da81bc5b8361c6722
[ "MIT" ]
null
null
null
src/test_bell_state.py
raviksharma/quantum
b76e9eaff59a59dada645f2da81bc5b8361c6722
[ "MIT" ]
null
null
null
from math import sqrt import numpy as np from base import zero, one, \ zz, zo, oz, oo from gates import I, H, K, CNOT # entangled quantum state # # +---+ # |0> ----+ H +-----.--- |00> + |11> # +---+ | } ----------- # ...
24.263158
55
0.364425
6cdcfc0a9097347ee2d2363cc6618ec9a7ecae44
15,237
py
Python
tests/query_test/test_udfs.py
andybab/Impala
d520a9cdea2fc97e8d5da9fbb0244e60ee416bfa
[ "Apache-2.0" ]
null
null
null
tests/query_test/test_udfs.py
andybab/Impala
d520a9cdea2fc97e8d5da9fbb0244e60ee416bfa
[ "Apache-2.0" ]
null
null
null
tests/query_test/test_udfs.py
andybab/Impala
d520a9cdea2fc97e8d5da9fbb0244e60ee416bfa
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2012 Cloudera, Inc. All rights reserved. from tests.beeswax.impala_beeswax import ImpalaBeeswaxException from tests.common.test_vector import * from tests.common.impala_test_suite import * from tests.common.impala_cluster import ImpalaCluster from subprocess import call class Tes...
43.410256
103
0.754282
fb55d8d53ff329b361e22c59af97231cd25e717e
4,673
py
Python
purity_fb/purity_fb_1dot8/models/linkaggregationgroup.py
tlewis-ps/purity_fb_python_client
652835cbd485c95a86da27f8b661679727ec6ea0
[ "Apache-2.0" ]
5
2017-09-08T20:47:22.000Z
2021-06-29T02:11:05.000Z
purity_fb/purity_fb_1dot8/models/linkaggregationgroup.py
tlewis-ps/purity_fb_python_client
652835cbd485c95a86da27f8b661679727ec6ea0
[ "Apache-2.0" ]
16
2017-11-27T20:57:48.000Z
2021-11-23T18:46:43.000Z
purity_fb/purity_fb_1dot8/models/linkaggregationgroup.py
tlewis-ps/purity_fb_python_client
652835cbd485c95a86da27f8b661679727ec6ea0
[ "Apache-2.0" ]
22
2017-10-13T15:33:05.000Z
2021-11-08T19:56:21.000Z
# coding: utf-8 """ Pure Storage FlashBlade REST 1.8 Python SDK Pure Storage FlashBlade REST 1.8 Python SDK, developed by [Pure Storage, Inc](http://www.purestorage.com/). Documentations can be found at [purity-fb.readthedocs.io](http://purity-fb.readthedocs.io/). OpenAPI spec version: 1.8 Contact: i...
26.551136
204
0.572651
77df47a3b5af7388aad738253a41e6be324659e9
4,213
py
Python
labml_nn/transformers/fast_weights/token_wise.py
BioGeek/annotated_deep_learning_paper_implementations
e2516cc3063cdfdf11cda05f22a10082297aa33e
[ "MIT" ]
3,714
2021-05-26T03:42:15.000Z
2022-03-31T16:45:20.000Z
labml_nn/transformers/fast_weights/token_wise.py
BioGeek/annotated_deep_learning_paper_implementations
e2516cc3063cdfdf11cda05f22a10082297aa33e
[ "MIT" ]
43
2021-05-26T05:26:42.000Z
2022-03-23T11:50:56.000Z
labml_nn/transformers/fast_weights/token_wise.py
BioGeek/annotated_deep_learning_paper_implementations
e2516cc3063cdfdf11cda05f22a10082297aa33e
[ "MIT" ]
349
2021-05-26T21:07:09.000Z
2022-03-31T07:52:00.000Z
""" --- title: Fast Weight Systems summary: > This is an annotated implementation/tutorial of Linear Transformers Are Secretly Fast Weight Memory Systems in PyTorch. --- """ from typing import Optional import torch from torch import nn from labml_helpers.module import Module from labml_nn.transformers.fast_weight...
32.160305
95
0.626869