hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
1d31b51af902984eaae881c738587fae7bce3bb0
21,698
py
Python
appengine/monorail/api/api_proto/common_pb2.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
2
2021-04-13T21:22:18.000Z
2021-09-07T02:11:57.000Z
appengine/monorail/api/api_proto/common_pb2.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
21
2020-09-06T02:41:05.000Z
2022-03-02T04:40:01.000Z
appengine/monorail/api/api_proto/common_pb2.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: api/api_proto/common.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import ...
35.512275
1,663
0.731773
1d31fd76599abd2c52e9644b7a117a09ab60ded0
434
py
Python
one-get/process/merge_ts.py
wenbindu/HungryTools
7b44d373784246e215e82d6278bf97c7b1afcb95
[ "MIT" ]
null
null
null
one-get/process/merge_ts.py
wenbindu/HungryTools
7b44d373784246e215e82d6278bf97c7b1afcb95
[ "MIT" ]
null
null
null
one-get/process/merge_ts.py
wenbindu/HungryTools
7b44d373784246e215e82d6278bf97c7b1afcb95
[ "MIT" ]
null
null
null
import os import ffmpy def ts2mp4(output_path, name): print("Starting to merge...") os.chdir(output_path) fs = [] for fn in os.listdir(output_path): if fn.endswith('.ts'): fs.append(fn) fs = sorted(fs) os.system(f"cat {' '.join(fs)} > tmp.ts") os.system(f"ffmpeg ...
19.727273
71
0.576037
1d3248335f2f0da17b6a0692f5f763d6d2fca96c
4,243
py
Python
nova/scheduler/filters/ram_filter.py
rossella/nova
9b1180d5a09227604a470cb9d0790b57daf1b6d7
[ "Apache-2.0" ]
null
null
null
nova/scheduler/filters/ram_filter.py
rossella/nova
9b1180d5a09227604a470cb9d0790b57daf1b6d7
[ "Apache-2.0" ]
null
null
null
nova/scheduler/filters/ram_filter.py
rossella/nova
9b1180d5a09227604a470cb9d0790b57daf1b6d7
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2011 OpenStack Foundation # Copyright (c) 2012 Cloudscaling # 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/l...
39.654206
79
0.679943
1d325920d18892822c4e266ce9b94444dbf78470
84
py
Python
textvinf/__init__.py
vikigenius/textvinf
65f1f5595c17488a01a56a064dc217a94d887399
[ "MIT" ]
null
null
null
textvinf/__init__.py
vikigenius/textvinf
65f1f5595c17488a01a56a064dc217a94d887399
[ "MIT" ]
null
null
null
textvinf/__init__.py
vikigenius/textvinf
65f1f5595c17488a01a56a064dc217a94d887399
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from typing import Any, Dict config: Dict[str, Any] = {}
12
28
0.583333
1d325cda5139edc8d3eaf509131c42fcf36977e9
15,187
py
Python
mapusaurus/censusdata/migrations/0001_initial.py
mehtadev17/mapusaurus
ad49c45f375ace9b8271f27aca64f2f81e23a4bd
[ "CC0-1.0" ]
null
null
null
mapusaurus/censusdata/migrations/0001_initial.py
mehtadev17/mapusaurus
ad49c45f375ace9b8271f27aca64f2f81e23a4bd
[ "CC0-1.0" ]
null
null
null
mapusaurus/censusdata/migrations/0001_initial.py
mehtadev17/mapusaurus
ad49c45f375ace9b8271f27aca64f2f81e23a4bd
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'Census2010Race' db.create_table(u'censusdata_census2010ra...
67.199115
259
0.602621
1d326fe253dd6b6c444128220df166eee4d1b1a6
9,336
py
Python
utils/metric.py
moliushang/PlaneTR3D
3c74be1b8cbef2ce871bf6f8492c4e2fbbea5783
[ "Apache-2.0" ]
62
2021-07-27T22:06:26.000Z
2022-03-14T05:29:02.000Z
utils/metric.py
moliushang/PlaneTR3D
3c74be1b8cbef2ce871bf6f8492c4e2fbbea5783
[ "Apache-2.0" ]
5
2021-08-05T03:29:27.000Z
2022-03-28T04:01:12.000Z
utils/metric.py
moliushang/PlaneTR3D
3c74be1b8cbef2ce871bf6f8492c4e2fbbea5783
[ "Apache-2.0" ]
7
2021-08-04T19:24:44.000Z
2022-03-14T07:57:56.000Z
import numpy as np import torch # https://github.com/davisvideochallenge/davis/blob/master/python/lib/davis/measures/jaccard.py def eval_iou(annotation, segmentation): """ Compute region similarity as the Jaccard Index. Arguments: annotation (ndarray): binary annotation map. segmentation (...
41.865471
139
0.646851
1d328940344375c9fb6a1970cba64733bd466727
8,938
py
Python
czywiesz.py
alkamid/wiktionary
ce242da609a1001ae7462b07da2f6e83f1a7281b
[ "MIT" ]
3
2015-01-06T22:00:22.000Z
2016-08-14T08:07:32.000Z
czywiesz.py
alkamid/wiktionary
ce242da609a1001ae7462b07da2f6e83f1a7281b
[ "MIT" ]
56
2015-07-12T10:21:38.000Z
2020-02-23T18:51:01.000Z
czywiesz.py
alkamid/wiktionary
ce242da609a1001ae7462b07da2f6e83f1a7281b
[ "MIT" ]
2
2015-01-06T21:25:06.000Z
2018-01-17T12:03:17.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # robienie listy haseł polskich bez wymowy import codecs import pywikibot from pywikibot import pagegenerators import re import math import datetime import logging def main(): logging.basicConfig() wiki = pywikibot.Site('pl', 'wikipedia') wikt = pywikibot.Site(...
46.552083
802
0.550571
1d32a06ab10d50cd72a1c2184330802e87ff5cee
291
py
Python
debug/__init__.py
mm4rks/Cnerator
8fef06901a2d0398fb9771bde86d274e7673f54a
[ "BSD-3-Clause" ]
8
2021-06-13T03:41:43.000Z
2021-12-19T09:50:21.000Z
debug/__init__.py
ComputationalReflection/cnerator
e8791a10ad3ba1f9387f968543d559bc9ae7d99a
[ "BSD-3-Clause" ]
null
null
null
debug/__init__.py
ComputationalReflection/cnerator
e8791a10ad3ba1f9387f968543d559bc9ae7d99a
[ "BSD-3-Clause" ]
3
2021-05-18T10:14:28.000Z
2021-07-21T13:02:04.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ This package stores different program information (call graphs and struct representations) as graphs and saves them as .dot files. Such functionality only occurs when the ``-d`` or ``--debug`` options are passed from the command line. """
29.1
103
0.718213
1d32b50cf92f908eeff855d83def6f1875fb0b49
6,328
py
Python
characters/Player.py
Quikks1lver/gran-forest
894dc8a05d7067dd14f05cc3318fbc584df748c1
[ "MIT" ]
1
2021-06-13T19:40:30.000Z
2021-06-13T19:40:30.000Z
characters/Player.py
Quikks1lver/sweet-retreat
894dc8a05d7067dd14f05cc3318fbc584df748c1
[ "MIT" ]
50
2021-05-11T00:34:42.000Z
2021-11-15T02:15:05.000Z
characters/Player.py
Quikks1lver/sweet-retreat
894dc8a05d7067dd14f05cc3318fbc584df748c1
[ "MIT" ]
null
null
null
import math import pygame from color.Colors import Colors from text.Text import Text from typing import List, Union from weapons.Weapon import Weapon class Player(): """ Represents a player character in the pygame """ def __init__(self, image_path: str, x_start: int, y_start: int, start_scrolling_pos...
34.205405
191
0.619311
1d32f111fc41e4293d5092cc1bb68b6cd4fa02aa
787
py
Python
src/oscar/test/contextmanagers.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
src/oscar/test/contextmanagers.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
src/oscar/test/contextmanagers.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
from contextlib import contextmanager from mock import Mock @contextmanager def mock_signal_receiver(signal, wraps=None, **kwargs): """ Temporarily attaches a receiver to the provided ``signal`` within the scope of the context manager. Example use:: with mock_signal_receiver(si...
27.137931
80
0.659466
1d32f241768a5a13a0b8bca661a219c0f101cd92
478
py
Python
guest-talks/20170501-testing/test_calculate_mortgage_pytest.py
mgadagin/PythonClass
70b370362d75720b3fb0e1d6cc8158f9445e9708
[ "MIT" ]
46
2017-09-27T20:19:36.000Z
2020-12-08T10:07:19.000Z
guest-talks/20170501-testing/test_calculate_mortgage_pytest.py
mgadagin/PythonClass
70b370362d75720b3fb0e1d6cc8158f9445e9708
[ "MIT" ]
6
2018-01-09T08:07:37.000Z
2020-09-07T12:25:13.000Z
guest-talks/20170501-testing/test_calculate_mortgage_pytest.py
mgadagin/PythonClass
70b370362d75720b3fb0e1d6cc8158f9445e9708
[ "MIT" ]
18
2017-10-10T02:06:51.000Z
2019-12-01T10:18:13.000Z
from calculate_mortgage import ( calculate_monthly_payment, calculate_total_payments ) def test_monthly_payment(): monthly_payment = calculate_monthly_payment( principal=1_000_000, rate_percent=1, mortgage_years=10 ) assert monthly_payment == 8760.41 def test_total_paymen...
19.916667
48
0.690377
1d3304601020febcf01508219a176c98048783a8
41,781
py
Python
plugin.video.torrentin/resources/parches/plexus/014/acecore.py
ponchofcult/Turning-Japanese
d29118817c369a7f9161c72ac0cfb3b0f17f7298
[ "MIT" ]
null
null
null
plugin.video.torrentin/resources/parches/plexus/014/acecore.py
ponchofcult/Turning-Japanese
d29118817c369a7f9161c72ac0cfb3b0f17f7298
[ "MIT" ]
null
null
null
plugin.video.torrentin/resources/parches/plexus/014/acecore.py
ponchofcult/Turning-Japanese
d29118817c369a7f9161c72ac0cfb3b0f17f7298
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Plexus (c) 2015 enen92 This file contains the acestream console of the addon. Initial versions were coded by Nouismons and so, this file is based on his work. Classes: Logger() -> Log class _TSPlayer(xbmc.Player) -> Inheritance of the xbmc.Player class for acestr...
42.677222
361
0.558555
1d3319334ae8c37f76e53f2c4c7db030cea85c0b
1,040
py
Python
supriya/ugens/DecodeB2.py
deeuu/supriya
14fcb5316eccb4dafbe498932ceff56e1abb9d27
[ "MIT" ]
null
null
null
supriya/ugens/DecodeB2.py
deeuu/supriya
14fcb5316eccb4dafbe498932ceff56e1abb9d27
[ "MIT" ]
null
null
null
supriya/ugens/DecodeB2.py
deeuu/supriya
14fcb5316eccb4dafbe498932ceff56e1abb9d27
[ "MIT" ]
null
null
null
import collections from supriya import CalculationRate from supriya.synthdefs import MultiOutUGen class DecodeB2(MultiOutUGen): """ A 2D Ambisonic B-format decoder. :: >>> source = supriya.ugens.PinkNoise.ar() >>> w, x, y = supriya.ugens.PanB2.ar( ... source=source, ...
23.636364
79
0.560577
1d33267b4dcba4394213a04bf7dd7ae4d9bc40e6
1,837
py
Python
Python_files/OD_matrix_estimation_GLS_Jul_weekday_AM_ext.py
jingzbu/InverseVITraffic
c0d33d91bdd3c014147d58866c1a2b99fb8a9608
[ "MIT" ]
null
null
null
Python_files/OD_matrix_estimation_GLS_Jul_weekday_AM_ext.py
jingzbu/InverseVITraffic
c0d33d91bdd3c014147d58866c1a2b99fb8a9608
[ "MIT" ]
null
null
null
Python_files/OD_matrix_estimation_GLS_Jul_weekday_AM_ext.py
jingzbu/InverseVITraffic
c0d33d91bdd3c014147d58866c1a2b99fb8a9608
[ "MIT" ]
null
null
null
#!/usr/bin/env python __author__ = "Jing Zhang" __email__ = "jingzbu@gmail.com" __status__ = "Development" from util import * import numpy as np from numpy.linalg import inv import json # load logit_route_choice_probability_matrix P = zload('../temp_files/logit_route_choice_probability_matrix_ext.pkz') P = np.mat...
27.833333
114
0.661404
1d333883f414b722ef3c2ad5fffd2398861a29ee
3,107
py
Python
combat-turtles/combat-turtles-master/ai/direct.py
TommyXiee/testing
2d281fea77c6e4408dc6cea6ecc53729dedc45fb
[ "MIT" ]
null
null
null
combat-turtles/combat-turtles-master/ai/direct.py
TommyXiee/testing
2d281fea77c6e4408dc6cea6ecc53729dedc45fb
[ "MIT" ]
null
null
null
combat-turtles/combat-turtles-master/ai/direct.py
TommyXiee/testing
2d281fea77c6e4408dc6cea6ecc53729dedc45fb
[ "MIT" ]
null
null
null
# Built-In Example AI # Title: DirectTurtle # Author: Adam Rumpf # Version: 1.0.1 # Date: 11/13/2020 import game.tcturtle class CombatTurtle(game.tcturtle.TurtleParent): """Direct combat turtle. Its main strategy is to try to move directly towards the opponent, firing missiles when it has clear line of ...
32.030928
97
0.515288
1d33583ea54d322e9d8af1be698e7fecb0d70a3e
15,313
py
Python
tests/unit/plugins/openstack/scenarios/cinder/test_utils.py
LorenzoBianconi/rally
2bbd7ee590cca048fb4ad6a8eefc484989979ff8
[ "Apache-2.0" ]
1
2021-09-29T02:16:09.000Z
2021-09-29T02:16:09.000Z
tests/unit/plugins/openstack/scenarios/cinder/test_utils.py
noah8713/rally-ovs
2434787c2cf4ca267108966c4ddc55ded3c333d9
[ "Apache-2.0" ]
1
2020-07-14T11:29:31.000Z
2020-07-14T11:29:31.000Z
tests/unit/plugins/openstack/scenarios/cinder/test_utils.py
noah8713/rally-ovs
2434787c2cf4ca267108966c4ddc55ded3c333d9
[ "Apache-2.0" ]
1
2020-07-02T01:33:48.000Z
2020-07-02T01:33:48.000Z
# Copyright 2013: Mirantis Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
45.574405
79
0.652126
1d335db1c69a203488652a93ed672117702b140b
171
py
Python
tests/core/test_shop_conn/test_wc.py
pypipet/pypipet
8c489e4a7992281fbb68b12e2627decf24f2facb
[ "MIT" ]
null
null
null
tests/core/test_shop_conn/test_wc.py
pypipet/pypipet
8c489e4a7992281fbb68b12e2627decf24f2facb
[ "MIT" ]
null
null
null
tests/core/test_shop_conn/test_wc.py
pypipet/pypipet
8c489e4a7992281fbb68b12e2627decf24f2facb
[ "MIT" ]
1
2021-12-10T22:36:34.000Z
2021-12-10T22:36:34.000Z
import pytest from pipet.core.shop_conn.wc import * from pipet.core.transform.model_to_wc import * from pipet.core.transform.wc_to_model import * from pprint import pprint
34.2
46
0.830409
1d3362c3337bfe28ade4b96bef36e57bf1cadb9d
30,539
py
Python
src/PySCUBA/SCUBA_core.py
GGiecold/PySCUBA
1a800d2b4584c4cebb2c3a61973b2f6c006f3260
[ "MIT" ]
8
2016-07-09T02:17:10.000Z
2020-03-08T07:08:31.000Z
src/PySCUBA/SCUBA_core.py
GGiecold/PySCUBA
1a800d2b4584c4cebb2c3a61973b2f6c006f3260
[ "MIT" ]
null
null
null
src/PySCUBA/SCUBA_core.py
GGiecold/PySCUBA
1a800d2b4584c4cebb2c3a61973b2f6c006f3260
[ "MIT" ]
3
2016-07-01T14:12:56.000Z
2017-08-31T11:05:39.000Z
#!/usr/bin/env python # PySCUBA/src/PySCUBA/SCUBA_core.py # Author: Gregory Giecold for the GC Yuan Lab # Affiliation: Harvard University # Contact: g.giecold@gmail.com; ggiecold@jimmy.harvard.edu from collections import defaultdict from math import exp, floor, sqrt from os import getcwd, path import sys import w...
41.777018
160
0.590425
1d33a5f750597b46d96a786b8c7cbdec9658355f
37,178
py
Python
rlkit/torch/vae/conditional_conv_vae.py
naomilwx/rlkit
d4514f89e4cef0a93a936c4f6b34b2099ae3a523
[ "MIT" ]
null
null
null
rlkit/torch/vae/conditional_conv_vae.py
naomilwx/rlkit
d4514f89e4cef0a93a936c4f6b34b2099ae3a523
[ "MIT" ]
null
null
null
rlkit/torch/vae/conditional_conv_vae.py
naomilwx/rlkit
d4514f89e4cef0a93a936c4f6b34b2099ae3a523
[ "MIT" ]
null
null
null
import torch import torch.utils.data from torch import nn from torch.nn import functional as F from rlkit.pythonplusplus import identity from rlkit.torch import pytorch_util as ptu import numpy as np from rlkit.torch.conv_networks import CNN, TwoHeadDCNN, DCNN from rlkit.torch.vae.vae_base import compute_bernoulli_log_...
36.628571
127
0.616601
1d33ad05f22764f4483b8a2b7fd7fdccdb6a1684
678
py
Python
python/domain/people/person.py
ICTU/document-as-code
e65fddb94513e7c2f54f248b4ce69e9e10ce42f5
[ "Apache-2.0" ]
2
2021-01-09T17:00:51.000Z
2021-02-19T09:35:26.000Z
python/domain/people/person.py
ICTU/document-as-code
e65fddb94513e7c2f54f248b4ce69e9e10ce42f5
[ "Apache-2.0" ]
null
null
null
python/domain/people/person.py
ICTU/document-as-code
e65fddb94513e7c2f54f248b4ce69e9e10ce42f5
[ "Apache-2.0" ]
1
2020-02-24T15:50:05.000Z
2020-02-24T15:50:05.000Z
""" person - describe a person """ from domain import base class Person(base.Base): """ person - information describing a person """ def __init__(self, given_name, surname, email=None, **kwargs): """ create a person's description """ super().__init__...
22.6
67
0.530973
1d33b0fd00e2ff3ab1a7c436fb6b8b861962f399
260
py
Python
setup.py
nayanadasgupta/NewsCLI
4ad4b03e17fd560c2bae5eb6627c55bea0f3fd1f
[ "MIT" ]
null
null
null
setup.py
nayanadasgupta/NewsCLI
4ad4b03e17fd560c2bae5eb6627c55bea0f3fd1f
[ "MIT" ]
null
null
null
setup.py
nayanadasgupta/NewsCLI
4ad4b03e17fd560c2bae5eb6627c55bea0f3fd1f
[ "MIT" ]
null
null
null
from setuptools import setup setup( name='news', version='1.0', py_modules=['news'], install_requires=[ 'Click', 'requests', 'pyfiglet', 'termcolor' ], entry_points=''' [console_scripts] news=news:cli ''', )
18.571429
52
0.557692
1d33e912353d04b25d038cfc0886cc39141a5af3
12,083
py
Python
test_fritzcollectd.py
wintersandroid/fritzcollectd
b09c24f119ed188e52e6f0f61580508bf785bb53
[ "MIT" ]
null
null
null
test_fritzcollectd.py
wintersandroid/fritzcollectd
b09c24f119ed188e52e6f0f61580508bf785bb53
[ "MIT" ]
null
null
null
test_fritzcollectd.py
wintersandroid/fritzcollectd
b09c24f119ed188e52e6f0f61580508bf785bb53
[ "MIT" ]
null
null
null
# fritzcollectd - FRITZ!Box collectd plugin # Copyright (c) 2014-2017 Christian Fetzer # # 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 ...
36.504532
82
0.675494
1d33f238f3d20ee19aec8e3260b45f0909b675c8
767
py
Python
test/test_set.py
rivethealth/slice-db
2f94ae7e6c8970bd4ff42b10b0d612c4df179ab8
[ "MIT" ]
1
2021-04-07T18:13:56.000Z
2021-04-07T18:13:56.000Z
test/test_set.py
rivethealth/slice-db
2f94ae7e6c8970bd4ff42b10b0d612c4df179ab8
[ "MIT" ]
null
null
null
test/test_set.py
rivethealth/slice-db
2f94ae7e6c8970bd4ff42b10b0d612c4df179ab8
[ "MIT" ]
null
null
null
import gc import os import numpy import psutil from slice_db.collection.set import IntSet def test_set_memory(): process = psutil.Process(os.getpid()) set = IntSet(numpy.int32) gc.collect() start = process.memory_info().rss set = IntSet(numpy.int32) count = 4 * 1000 * 1000 a = list(rang...
18.707317
42
0.597132
1d3403d1477883a098baa01c9acdf4a69a3b2eda
1,130
py
Python
services/director/tests/test_json_schemas.py
oetiker/osparc-simcore
00918bf8f000840cc70cc49458780a55858d52ea
[ "MIT" ]
null
null
null
services/director/tests/test_json_schemas.py
oetiker/osparc-simcore
00918bf8f000840cc70cc49458780a55858d52ea
[ "MIT" ]
2
2018-05-13T09:10:57.000Z
2019-03-06T08:10:40.000Z
services/director/tests/test_json_schemas.py
oetiker/osparc-simcore
00918bf8f000840cc70cc49458780a55858d52ea
[ "MIT" ]
null
null
null
import json from pathlib import Path import pytest from jsonschema import ( SchemaError, ValidationError, validate) from simcore_service_director import resources API_VERSIONS = resources.listdir(resources.RESOURCE_OPENAPI_ROOT) def validate_individual_schemas(list_of_paths): for spe...
35.3125
104
0.69823
1d3424460696dd052ffa48083ba4391f5b5ca53d
3,617
py
Python
igibson/examples/demo/temperature_example.py
suresh-guttikonda/iGibson
a69e623058180146466cd52d4bb3c00d1facdacf
[ "MIT" ]
360
2020-04-02T11:12:09.000Z
2022-03-24T21:46:58.000Z
igibson/examples/demo/temperature_example.py
suresh-guttikonda/iGibson
a69e623058180146466cd52d4bb3c00d1facdacf
[ "MIT" ]
169
2020-04-07T21:01:05.000Z
2022-03-31T10:07:39.000Z
igibson/examples/demo/temperature_example.py
suresh-guttikonda/iGibson
a69e623058180146466cd52d4bb3c00d1facdacf
[ "MIT" ]
94
2020-04-09T23:22:17.000Z
2022-03-17T21:49:03.000Z
import os import numpy as np import igibson from igibson import object_states from igibson.objects.articulated_object import URDFObject from igibson.scenes.empty_scene import EmptyScene from igibson.simulator import Simulator from igibson.utils.assets_utils import download_assets download_assets() def main(): ...
36.908163
120
0.614874
1d343f3c2d9db02026fa5e98c0e5e737d927b069
1,283
py
Python
examples/get-auditevents.py
hokenssh/privx-sdk-for-python
24627d25c0343f350c9b2396677344b771f8aec6
[ "Apache-2.0" ]
4
2020-06-15T17:14:18.000Z
2021-12-20T12:12:56.000Z
examples/get-auditevents.py
hokenssh/privx-sdk-for-python
24627d25c0343f350c9b2396677344b771f8aec6
[ "Apache-2.0" ]
5
2019-11-25T07:04:07.000Z
2021-05-19T08:09:53.000Z
examples/get-auditevents.py
hokenssh/privx-sdk-for-python
24627d25c0343f350c9b2396677344b771f8aec6
[ "Apache-2.0" ]
23
2019-11-22T08:17:58.000Z
2022-02-21T15:50:36.000Z
# An example for fetching PrivX audit events. # Requires Python 3.6+ import config # this importation for demonstration purpose only # for proper importation of privx_api module # see https://github.com/SSHcom/privx-sdk-for-python#getting-started try: # Running example with pip-installed SDK import privx_api ...
23.759259
76
0.734217
1d344ff871b665610b7b4ad1aaf3fb6b4d43ac01
123,319
py
Python
salt/states/file.py
dnd/salt
aa8cee3ce31147062afb99e300ab389cff76af63
[ "Apache-2.0" ]
null
null
null
salt/states/file.py
dnd/salt
aa8cee3ce31147062afb99e300ab389cff76af63
[ "Apache-2.0" ]
null
null
null
salt/states/file.py
dnd/salt
aa8cee3ce31147062afb99e300ab389cff76af63
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Operations on regular files, special files, directories, and symlinks ===================================================================== Salt States can aggressively manipulate files on a system. There are a number of ways in which files can be managed. Regular files can be enforced wit...
34.103706
117
0.541401
1d347205cfbdd7545e3c45816305fc79b76c934f
5,809
py
Python
scripts/generate_heatmap_dataset_qval.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
scripts/generate_heatmap_dataset_qval.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
scripts/generate_heatmap_dataset_qval.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
import ipdb import pandas as pd import numpy as np import argparse from rlkit.torch.conv_networks import CNN, ConcatCNN, ConcatBottleneckCNN, TwoHeadCNN, VQVAEEncoderCNN import torchvision.transforms.functional as F from PIL import Image import matplotlib.pyplot as plt import matplotlib import torch import rlkit.torch...
31.064171
162
0.666035
1d34d2eb3149333dcbbbd7058b5a52e8878c6450
21,359
py
Python
detection/RetinaFace/rcnn/core/loader.py
dwhite54/insightface
ea172e4921c3960c0684404afff6d0d862447eae
[ "MIT" ]
12,377
2017-12-04T02:46:57.000Z
2022-03-31T16:48:31.000Z
detection/RetinaFace/rcnn/core/loader.py
dwhite54/insightface
ea172e4921c3960c0684404afff6d0d862447eae
[ "MIT" ]
1,851
2017-12-05T05:41:23.000Z
2022-03-30T13:06:22.000Z
detection/RetinaFace/rcnn/core/loader.py
dwhite54/insightface
ea172e4921c3960c0684404afff6d0d862447eae
[ "MIT" ]
4,198
2017-12-05T02:57:19.000Z
2022-03-30T10:29:37.000Z
from __future__ import print_function import sys import mxnet as mx import numpy as np import random import datetime import multiprocessing import cv2 from mxnet.executor_manager import _split_input_slice from rcnn.config import config from rcnn.io.image import tensor_vstack from rcnn.io.rpn import get_rpn_testbatch, ...
38.834545
152
0.538836
1d34d34bbb12b9b58e9befbdd46f7552f2d3d740
244
py
Python
terrascript/resource/dedunumax/awslambda.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
terrascript/resource/dedunumax/awslambda.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
terrascript/resource/dedunumax/awslambda.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# terrascript/resource/dedunumax/awslambda.py # Automatically generated by tools/makecode.py (24-Sep-2021 15:12:30 UTC) import terrascript class awslambda_invocation(terrascript.Resource): pass __all__ = [ "awslambda_invocation", ]
18.769231
73
0.770492
1d34e4ccd7425d09969c25270e836bb3dbc7d5ba
2,516
py
Python
data/services/cv19srv/cv19srv/collector/__init__.py
TISTATechnologies/cv19
5200d20d51ee9e0f4f8cc6f0af0267a3670398ed
[ "Apache-2.0" ]
2
2020-10-20T12:05:16.000Z
2021-09-21T13:10:17.000Z
data/services/cv19srv/cv19srv/collector/__init__.py
TISTATechnologies/cv19
5200d20d51ee9e0f4f8cc6f0af0267a3670398ed
[ "Apache-2.0" ]
10
2020-07-01T16:40:39.000Z
2022-01-19T21:37:47.000Z
data/services/cv19srv/cv19srv/collector/__init__.py
TISTATechnologies/cv19
5200d20d51ee9e0f4f8cc6f0af0267a3670398ed
[ "Apache-2.0" ]
1
2021-08-09T13:53:50.000Z
2021-08-09T13:53:50.000Z
import datetime from ..utils import logger from ..utils.helper import DateTimeHelper from . import cdc from . import covidtracking from . import custom_areas from . import executive_news from . import jhu log = logger.get_logger('collector') """ List of all external sources which we are using to pull Covid-19 relate...
35.43662
118
0.625596
1d34e7a2d4a4363f5eac1e4928df3792ac85fe74
8,578
py
Python
main/registration/views.py
mahkhaled/class2go
b32cb441e8d96c257f70cb61274812ebeed2649d
[ "Apache-2.0" ]
1
2020-11-09T02:59:29.000Z
2020-11-09T02:59:29.000Z
main/registration/views.py
sunu/class2go
653b1edd01d390ad387dd788e0fc2d89445fbcab
[ "Apache-2.0" ]
null
null
null
main/registration/views.py
sunu/class2go
653b1edd01d390ad387dd788e0fc2d89445fbcab
[ "Apache-2.0" ]
null
null
null
""" Views which allow users to create and activate accounts. """ from django.shortcuts import redirect from django.shortcuts import render_to_response from django.template import RequestContext from django.core.urlresolvers import reverse from registration.backends import get_backend from courses.common_page_data im...
37.295652
139
0.66962
1d34edf77bc0ff39d6cae66773c960ea05622e63
2,078
py
Python
py/lang/swedish.py
triffid/kiki
b64b8524063c149a5cc9118f48d80afec1d8a942
[ "Unlicense" ]
2
2020-01-04T23:44:10.000Z
2020-07-12T17:10:09.000Z
py/lang/swedish.py
triffid/kiki
b64b8524063c149a5cc9118f48d80afec1d8a942
[ "Unlicense" ]
null
null
null
py/lang/swedish.py
triffid/kiki
b64b8524063c149a5cc9118f48d80afec1d8a942
[ "Unlicense" ]
1
2022-03-16T05:43:33.000Z
2022-03-16T05:43:33.000Z
# -*- encoding: utf-8 -*- # Swedish versions of kiki texts # translation by Ivan aka Fenris lang["swedish"] = { # game title "kiki the nano bot": "Nanoroboten Kiki", # menu "new game": "nytt spel", "load level": "ladda bana", "next level": "nästa bana", "restart": "börja om", "setup": "inställningar", "story"...
26.987013
210
0.688162
1d3531847d216d5eb905a10d78b78a7ed8a8c776
25,235
py
Python
detection/RetinaFace/rcnn/pycocotools/cocoeval.py
dwhite54/insightface
ea172e4921c3960c0684404afff6d0d862447eae
[ "MIT" ]
12,377
2017-12-04T02:46:57.000Z
2022-03-31T16:48:31.000Z
detection/RetinaFace/rcnn/pycocotools/cocoeval.py
dwhite54/insightface
ea172e4921c3960c0684404afff6d0d862447eae
[ "MIT" ]
1,851
2017-12-05T05:41:23.000Z
2022-03-30T13:06:22.000Z
detection/RetinaFace/rcnn/pycocotools/cocoeval.py
dwhite54/insightface
ea172e4921c3960c0684404afff6d0d862447eae
[ "MIT" ]
4,198
2017-12-05T02:57:19.000Z
2022-03-30T10:29:37.000Z
__author__ = 'tsungyi' import numpy as np import datetime import time from collections import defaultdict from .mask import * import copy class COCOeval: # Interface for evaluating detection on the Microsoft COCO dataset. # # The usage for CocoEval is as follows: # cocoGt=..., cocoDt=... # loa...
42.554806
100
0.48615
1d35590a4c01dfc696bd7b94cc6a121dc044d5f6
10,930
py
Python
app/create_video.py
joshchen984/Text2Video
c47806612e3705f129b67fbd82838d84d36e9486
[ "MIT" ]
15
2020-12-02T01:33:28.000Z
2022-01-16T01:23:19.000Z
app/create_video.py
joshchen984/Text2Video
c47806612e3705f129b67fbd82838d84d36e9486
[ "MIT" ]
1
2021-05-08T11:02:20.000Z
2021-05-12T03:08:57.000Z
app/create_video.py
joshchen984/Text2Video
c47806612e3705f129b67fbd82838d84d36e9486
[ "MIT" ]
4
2021-05-10T04:34:17.000Z
2021-12-23T09:02:08.000Z
import argparse from gtts import gTTS import os import shutil from google_images_download import google_images_download import requests from random import choice import subprocess from PIL import Image import concurrent.futures from werkzeug.utils import secure_filename class ImageCreator: """ ...
38.216783
137
0.544099
1d356385426263adbf8d0f51fcc88305985b62ca
11,332
py
Python
numerous/engine/model/graph_representation/graph.py
fossilfree/Numerous
121cd00456f263cab9def10cb99a21655f5832c9
[ "BSD-3-Clause" ]
null
null
null
numerous/engine/model/graph_representation/graph.py
fossilfree/Numerous
121cd00456f263cab9def10cb99a21655f5832c9
[ "BSD-3-Clause" ]
null
null
null
numerous/engine/model/graph_representation/graph.py
fossilfree/Numerous
121cd00456f263cab9def10cb99a21655f5832c9
[ "BSD-3-Clause" ]
null
null
null
import logging from copy import copy import numpy as np from graphviz import Digraph from .utils import EdgeType, TemporaryKeyGenerator from .lower_graph import multi_replace, _Graph tmp_generator = TemporaryKeyGenerator().generate class Node: def __init__(self, key=None, ao=None, file=None, name=None, ln=None,...
34.339394
119
0.585951
1d35a8baa8af4c0ae1d5fa3b12bad54719e1756a
21,533
py
Python
src/python/pants/backend/python/util_rules/pex_test.py
ericsun2/pants
49b446e5031b8c68cad6212b46f40b4fda3a0a3b
[ "Apache-2.0" ]
1
2021-02-22T18:11:26.000Z
2021-02-22T18:11:26.000Z
src/python/pants/backend/python/util_rules/pex_test.py
ericsun2/pants
49b446e5031b8c68cad6212b46f40b4fda3a0a3b
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/python/util_rules/pex_test.py
ericsun2/pants
49b446e5031b8c68cad6212b46f40b4fda3a0a3b
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import annotations import json import os.path import textwrap import zipfile from dataclasses import dataclass from typing import Dict, Iterable, Iterator, List, Mapping, ...
36.558574
118
0.61357
1d35ad49ec4c961d0dc8b5eae902c3375b49ac3a
5,393
py
Python
lemur/authorities/service.py
x-lhan/lemur
1d8aaa4a242af610363e961167bc31691b358773
[ "Apache-2.0" ]
null
null
null
lemur/authorities/service.py
x-lhan/lemur
1d8aaa4a242af610363e961167bc31691b358773
[ "Apache-2.0" ]
null
null
null
lemur/authorities/service.py
x-lhan/lemur
1d8aaa4a242af610363e961167bc31691b358773
[ "Apache-2.0" ]
null
null
null
""" .. module: lemur.authorities.service :platform: Unix :synopsis: This module contains all of the services level functions used to administer authorities in Lemur :copyright: (c) 2018 by Netflix Inc., see AUTHORS for more :license: Apache, see LICENSE for more details. .. moduleauthor:: Kevin Glis...
27.515306
118
0.650658
1d35dcc1f80f1c9424b24a07bf0a7186b3da3f6e
7,721
py
Python
datatables/datatables.py
vsevolod-kolchinsky/sqlalchemy-datatables
e0af01f347e35eb063ed826e7e6f7ec699d9c5ef
[ "MIT" ]
157
2015-03-17T04:07:40.000Z
2022-02-08T22:23:01.000Z
datatables/datatables.py
vsevolod-kolchinsky/sqlalchemy-datatables
e0af01f347e35eb063ed826e7e6f7ec699d9c5ef
[ "MIT" ]
116
2015-07-25T11:14:30.000Z
2022-01-19T20:26:39.000Z
datatables/datatables.py
vsevolod-kolchinsky/sqlalchemy-datatables
e0af01f347e35eb063ed826e7e6f7ec699d9c5ef
[ "MIT" ]
68
2015-07-25T05:29:11.000Z
2021-12-22T21:35:48.000Z
from __future__ import absolute_import import math from sqlalchemy import Text, func, or_ from sqlalchemy.dialects import mysql, postgresql, sqlite from datatables.clean_regex import clean_regex from datatables.search_methods import SEARCH_METHODS class DataTables: """Class defining a DataTables object. :...
35.74537
88
0.5871
1d360288be1886745833d7c987edc0ec293ef308
4,070
py
Python
alipay/aop/api/request/AlipayCommerceMedicalIndustrydataDoctorUploadRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/request/AlipayCommerceMedicalIndustrydataDoctorUploadRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/request/AlipayCommerceMedicalIndustrydataDoctorUploadRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AlipayCommerceMedicalIndustrydataDoctorUploadModel import AlipayCommerceMedicalIndustrydataDoctorUploadModel class AlipayCommerceMed...
28.068966
148
0.653071
1d3607a57667c346e2c3533e4861a73786011fa2
2,045
py
Python
asynq/tests/test_batching.py
JelleZijlstra/asynq
e69469b7c3af62439c82434202a349c43da4159d
[ "Apache-2.0" ]
null
null
null
asynq/tests/test_batching.py
JelleZijlstra/asynq
e69469b7c3af62439c82434202a349c43da4159d
[ "Apache-2.0" ]
null
null
null
asynq/tests/test_batching.py
JelleZijlstra/asynq
e69469b7c3af62439c82434202a349c43da4159d
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Quora, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, so...
32.983871
117
0.610758
1d3664fedbaef576a886e204ca05e0d46b6c3cba
1,238
py
Python
ielex/lexicon/management/commands/computeNexusExport.py
lingdb/CoBL-public
e50b441c4281b9299fb1cd0b46f906887cb86dd1
[ "BSD-2-Clause" ]
3
2017-05-30T04:40:43.000Z
2019-04-25T14:54:54.000Z
ielex/lexicon/management/commands/computeNexusExport.py
lingdb/CoBL-public
e50b441c4281b9299fb1cd0b46f906887cb86dd1
[ "BSD-2-Clause" ]
null
null
null
ielex/lexicon/management/commands/computeNexusExport.py
lingdb/CoBL-public
e50b441c4281b9299fb1cd0b46f906887cb86dd1
[ "BSD-2-Clause" ]
3
2018-07-02T13:42:12.000Z
2019-05-17T13:11:13.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals, print_function from time import strftime from django.core.management import BaseCommand from ielex.lexicon.models import NexusExport from ielex.lexicon.views import write_nexus class Command(BaseCommand): help = "Computes nexus export for a give...
36.411765
77
0.630048
1d366b9df4326914aea9442fc5fbd8abc5a024f8
10,215
py
Python
reproduce/learning-to-drive-in-minutes-carla/algos/custom_ppo2.py
wangyubin112/selfdrive
51436d1779cc3d1187aa8c84d432df34266a6b5a
[ "MIT" ]
null
null
null
reproduce/learning-to-drive-in-minutes-carla/algos/custom_ppo2.py
wangyubin112/selfdrive
51436d1779cc3d1187aa8c84d432df34266a6b5a
[ "MIT" ]
null
null
null
reproduce/learning-to-drive-in-minutes-carla/algos/custom_ppo2.py
wangyubin112/selfdrive
51436d1779cc3d1187aa8c84d432df34266a6b5a
[ "MIT" ]
null
null
null
import time from collections import deque import gym import numpy as np from stable_baselines import logger, PPO2 from stable_baselines.a2c.utils import total_episode_reward_logger from stable_baselines.common import explained_variance, TensorboardWriter from stable_baselines.common.runners import AbstractEnvRunner fr...
51.852792
119
0.578365
1d366eadaf720f8e1e2fb360e38b92aa355acfae
4,266
py
Python
pypeit/scripts/ql_keck_nires.py
brackham/PypeIt
8769f06ae8e8f18d3a55d12b01dd3dde50b98040
[ "BSD-3-Clause" ]
107
2018-08-06T07:07:20.000Z
2022-02-28T14:33:42.000Z
pypeit/scripts/ql_keck_nires.py
brackham/PypeIt
8769f06ae8e8f18d3a55d12b01dd3dde50b98040
[ "BSD-3-Clause" ]
889
2018-07-26T12:14:33.000Z
2022-03-18T22:49:42.000Z
pypeit/scripts/ql_keck_nires.py
brackham/PypeIt
8769f06ae8e8f18d3a55d12b01dd3dde50b98040
[ "BSD-3-Clause" ]
74
2018-09-25T17:03:07.000Z
2022-03-10T23:59:24.000Z
""" This script runs PypeIt on a pair of NIRES images (A-B) .. include common links, assuming primary doc root is up one directory .. include:: ../include/links.rst """ from pypeit.scripts import scriptbase class QLKeckNIRES(scriptbase.ScriptBase): @classmethod def get_parser(cls, width=None): pars...
39.137615
97
0.580638
1d36756714496d0a556b921288d436fc8ba9d8e3
4,158
py
Python
setup.py
hayj/MachineLearning
66a34b6776450f7d597acca05525120fb28c8deb
[ "MIT" ]
null
null
null
setup.py
hayj/MachineLearning
66a34b6776450f7d597acca05525120fb28c8deb
[ "MIT" ]
null
null
null
setup.py
hayj/MachineLearning
66a34b6776450f7d597acca05525120fb28c8deb
[ "MIT" ]
1
2021-02-08T04:30:09.000Z
2021-02-08T04:30:09.000Z
# coding: utf-8 import os from setuptools import setup, find_packages import importlib import re # Vars to set: description = "" author = "hayj" author_email = "hj@hayj.fr" version = "0.0.1" # replaced by the version in the main init file if exists # Current dir: thelibFolder = os.path.dirname(os.path.realpath(__fil...
29.489362
128
0.6443
1d367a72281455ca0c8e827943c31538fd399ad2
1,748
py
Python
src/problem014.py
galah92/project-euler
d4be56e945e8549905fc530449b3d1f59d71554d
[ "MIT" ]
null
null
null
src/problem014.py
galah92/project-euler
d4be56e945e8549905fc530449b3d1f59d71554d
[ "MIT" ]
null
null
null
src/problem014.py
galah92/project-euler
d4be56e945e8549905fc530449b3d1f59d71554d
[ "MIT" ]
null
null
null
""" Longest Collatz sequence The following iterative sequence is defined for the set of positive integers: n -> n/2 (n is even) n -> 3n + 1 (n is odd) Using the rule above and starting with 13, we generate the following sequence: 13 -> 40 -> 20 -> 10 -> 5 -> 16 -> 8 -> 4 -> 2 -> 1 It can be seen that this sequence (sta...
42.634146
78
0.684783
1d3689efd883778b91d65e693f18a940098c56f3
8,505
py
Python
compute_features_modified.py
Sengming/argo-forecasting-competition
136137e1a61c3b353de2ac7ca426e3c08534ae7a
[ "BSD-3-Clause-Clear" ]
1
2021-04-11T08:40:59.000Z
2021-04-11T08:40:59.000Z
compute_features_modified.py
Sengming/argo-forecasting-competition
136137e1a61c3b353de2ac7ca426e3c08534ae7a
[ "BSD-3-Clause-Clear" ]
null
null
null
compute_features_modified.py
Sengming/argo-forecasting-competition
136137e1a61c3b353de2ac7ca426e3c08534ae7a
[ "BSD-3-Clause-Clear" ]
null
null
null
#! /usr/bin/python3 """This module is used for computing social and map features for motion forecasting baselines. Example usage: $ python compute_features.py --data_dir ~/val/data --feature_dir ~/val/features --mode val """ import os import shutil import tempfile import time from typing import Any, Dict...
33.093385
113
0.644562
1d368ded77719c8641dec18aa46888507bd3bc8a
6,127
py
Python
tf_agents/drivers/dynamic_episode_driver.py
wookayin/tensorflow-agents
ae3751dfeed52422a350227047648dd82297960b
[ "Apache-2.0" ]
null
null
null
tf_agents/drivers/dynamic_episode_driver.py
wookayin/tensorflow-agents
ae3751dfeed52422a350227047648dd82297960b
[ "Apache-2.0" ]
null
null
null
tf_agents/drivers/dynamic_episode_driver.py
wookayin/tensorflow-agents
ae3751dfeed52422a350227047648dd82297960b
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2018 The TF-Agents Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
37.359756
80
0.708014
1d369b674458dcbe912a9804f80d9e475172b295
784
py
Python
website/common/utilities/extract/gather_locations.py
T-Santos/django-weather-app
79ee6ad67b861aaf27396965a1d45012deadca3b
[ "MIT" ]
null
null
null
website/common/utilities/extract/gather_locations.py
T-Santos/django-weather-app
79ee6ad67b861aaf27396965a1d45012deadca3b
[ "MIT" ]
2
2020-02-11T23:23:09.000Z
2020-06-05T17:24:59.000Z
website/common/utilities/extract/gather_locations.py
T-Santos/django-weather-app
79ee6ad67b861aaf27396965a1d45012deadca3b
[ "MIT" ]
null
null
null
import requests from operator import itemgetter def sort_value(item): return int(item[0]) def remove_bad_entries(result): if not result[0]: return None elif " city," not in result[1]: return None return True def gather_locations(): BASE_URL = 'https://api.census.gov/data/2016/pep/population?' payload ...
18.232558
69
0.683673
1d36dde253693d112832b7535e08020a771d9ae4
805
py
Python
utils/loss.py
HapKoM/pyhowfar
b12c248f696dc9bc2b50455b63a2b6ca7a440ba7
[ "BSD-3-Clause" ]
59
2018-12-13T10:14:58.000Z
2021-11-23T19:16:58.000Z
utils/loss.py
JPlin/pyhowfar
81a9aa1b5969cbe985a592f2908428a7abf4967b
[ "BSD-3-Clause" ]
7
2019-03-29T05:13:39.000Z
2021-02-08T23:00:32.000Z
utils/loss.py
JPlin/pyhowfar
81a9aa1b5969cbe985a592f2908428a7abf4967b
[ "BSD-3-Clause" ]
14
2017-12-19T09:48:10.000Z
2022-01-10T08:14:43.000Z
import torch import numpy as np import torch.nn as nn import torch.nn.functional as F def ldmk_loss(input, target, weight=None, size_average=True): n, c = input.size() loss_ = (input - target) ** 2 iod = torch.sqrt(torch.sum( (target[:, 36*2:37*2] - target[:, 45*2:46*2])**2, 1)) loss = torch....
29.814815
79
0.61118
1d36e0a102bba055e1e2f0680183fd5c3f8ef980
13,528
py
Python
pyspider/libs/base_handler.py
HenryKamg/pyspider
a1d68d29961a1dcd42d19d907bcf12dba1fa1f58
[ "Apache-2.0" ]
5
2015-03-31T13:25:25.000Z
2016-03-14T11:17:02.000Z
pyspider/libs/base_handler.py
HenryKamg/pyspider
a1d68d29961a1dcd42d19d907bcf12dba1fa1f58
[ "Apache-2.0" ]
null
null
null
pyspider/libs/base_handler.py
HenryKamg/pyspider
a1d68d29961a1dcd42d19d907bcf12dba1fa1f58
[ "Apache-2.0" ]
1
2016-02-17T23:12:47.000Z
2016-02-17T23:12:47.000Z
#!/usr/bin/env python # -*- encoding: utf-8 -*- # vim: set et sw=4 ts=4 sts=4 ff=unix fenc=utf8: # Author: Binux<i@binux.me> # http://binux.me # Created on 2014-02-16 23:12:48 import sys import inspect import functools import fractions import six from six import add_metaclass, iteritems from pyspider.libs.ur...
31.90566
100
0.569412
1d36e67cda230bec14f56e7add05cda407c3ed78
164,341
py
Python
run_calibration.py
lilianschuster/PyGEM
c805d09960f937fe6e35cdd1587f9089d4bec6b8
[ "MIT" ]
null
null
null
run_calibration.py
lilianschuster/PyGEM
c805d09960f937fe6e35cdd1587f9089d4bec6b8
[ "MIT" ]
null
null
null
run_calibration.py
lilianschuster/PyGEM
c805d09960f937fe6e35cdd1587f9089d4bec6b8
[ "MIT" ]
null
null
null
"""Run the model calibration""" # Spyder cannot run parallels, so always set -option_parallels=0 when testing in Spyder. # Built-in libraries import os import argparse import multiprocessing import resource import time import inspect # External libraries from datetime import datetime import pandas as pd import numpy a...
58.112093
125
0.596461
1d36e7d07ded76a434d8892ab5a661332d018da9
160,529
py
Python
logrotate/skel/usr/lib/python2.7/lib-tk/Tkinter.py
sroettger/35c3ctf_chals
3d64486e6adddb3a3f3d2c041242b88b50abdb8d
[ "Apache-2.0" ]
15
2019-07-10T16:50:17.000Z
2022-01-23T14:28:17.000Z
logrotate/skel/usr/lib/python2.7/lib-tk/Tkinter.py
sroettger/35c3ctf_chals
3d64486e6adddb3a3f3d2c041242b88b50abdb8d
[ "Apache-2.0" ]
2
2020-01-18T11:19:04.000Z
2021-04-27T13:30:33.000Z
logrotate/skel/usr/lib/python2.7/lib-tk/Tkinter.py
sroettger/35c3ctf_chals
3d64486e6adddb3a3f3d2c041242b88b50abdb8d
[ "Apache-2.0" ]
4
2020-01-09T20:14:30.000Z
2021-04-23T07:47:27.000Z
"""Wrapper functions for Tcl/Tk. Tkinter provides classes which allow the display, positioning and control of widgets. Toplevel widgets are Tk and Toplevel. Other widgets are Frame, Label, Entry, Text, Canvas, Button, Radiobutton, Checkbutton, Scale, Listbox, Scrollbar, OptionMenu, Spinbox LabelFrame and PanedWindow. ...
41.52328
110
0.609317
1d36f9ae432ee7ce2b7ddaba6d06353bae02740f
3,814
py
Python
detection/detection.py
luismavs/FocusDetection
20c8f52f5e821df38b6dad784222ecb8dc1efc7b
[ "MIT" ]
2
2020-12-15T09:56:55.000Z
2021-11-13T07:55:51.000Z
detection/detection.py
luismavs/FocusDetection
20c8f52f5e821df38b6dad784222ecb8dc1efc7b
[ "MIT" ]
null
null
null
detection/detection.py
luismavs/FocusDetection
20c8f52f5e821df38b6dad784222ecb8dc1efc7b
[ "MIT" ]
null
null
null
import cv2 import numpy as np from typing import Tuple def focus_overlay(img: np.array, working_image_size=0.5e6, high_pass_size=3, in_focus_regions=3, print_debug=False) -> np.array: """ draw an overlay on top of an image to mask ar...
31.00813
120
0.62323
1d370b57e65e91693dbdde9bfab5978267375c27
4,001
py
Python
alipay/aop/api/domain/ShopQueryInfo.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/ShopQueryInfo.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/ShopQueryInfo.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class ShopQueryInfo(object): def __init__(self): self._address = None self._latitude = None self._longitude = None self._name = None self._pid = None sel...
27.40411
69
0.545614
1d37183d0070e24fef5ccf86e95f3de5ebc59656
1,830
py
Python
ci-scripts/infra-setup/roles/rrcockpit/files/telegraf/last_promotions.py
amolkahat/ci-config
100ca1248432ba8d1a97a9a02ec35a80f57767ed
[ "Apache-2.0" ]
null
null
null
ci-scripts/infra-setup/roles/rrcockpit/files/telegraf/last_promotions.py
amolkahat/ci-config
100ca1248432ba8d1a97a9a02ec35a80f57767ed
[ "Apache-2.0" ]
null
null
null
ci-scripts/infra-setup/roles/rrcockpit/files/telegraf/last_promotions.py
amolkahat/ci-config
100ca1248432ba8d1a97a9a02ec35a80f57767ed
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import argparse import dlrnapi_client from influxdb_utils import format_ts_from_float from promoter_utils import get_dlrn_instance from promoter_utils import get_promoter_config PROMOTION_INFLUXDB_LINE = ("dlrn-promotion," "release={release},distro={distro}," ...
33.888889
73
0.627322
1d372ecc21e5ce4d070db85911ab1b90a61b0396
1,532
py
Python
src/streamlink/plugins/chaturbate.py
zel4ever/streamlink
0e48e2f01a370fa83cabc27b067b6f72cd1b8d9d
[ "BSD-2-Clause" ]
5
2019-12-18T21:35:17.000Z
2020-07-05T11:25:52.000Z
src/streamlink/plugins/chaturbate.py
zel4ever/streamlink
0e48e2f01a370fa83cabc27b067b6f72cd1b8d9d
[ "BSD-2-Clause" ]
3
2019-10-13T23:04:23.000Z
2019-11-04T02:14:02.000Z
src/streamlink/plugins/chaturbate.py
zel4ever/streamlink
0e48e2f01a370fa83cabc27b067b6f72cd1b8d9d
[ "BSD-2-Clause" ]
10
2019-11-12T19:57:40.000Z
2022-03-09T13:17:25.000Z
import re import uuid from streamlink.plugin import Plugin from streamlink.plugin.api import http from streamlink.plugin.api import validate from streamlink.stream import HLSStream API_HLS = "https://chaturbate.com/get_edge_hls_url_ajax/" _url_re = re.compile(r"https?://(\w+\.)?chaturbate\.com/(?P<username>\w+)") _...
27.357143
89
0.624021
1d3737df2d9cdccfb72fbe25e12ca1d5c9f69460
1,295
py
Python
scripts/pybind_demo.py
RAIL-group/RAIL-software-infrastructure-demos
98efc7d5d93957e85e9a10cb3881bf824b3f6187
[ "MIT" ]
2
2021-12-27T11:46:01.000Z
2022-03-24T01:19:18.000Z
scripts/pybind_demo.py
RAIL-group/RAIL-software-infrastructure-demos
98efc7d5d93957e85e9a10cb3881bf824b3f6187
[ "MIT" ]
null
null
null
scripts/pybind_demo.py
RAIL-group/RAIL-software-infrastructure-demos
98efc7d5d93957e85e9a10cb3881bf824b3f6187
[ "MIT" ]
1
2022-03-11T18:21:35.000Z
2022-03-11T18:21:35.000Z
import numpy as np import pycpp_examples from pytest import approx import time def main(): """Show how PyBind works with vectors/lists. Generates random data and sqrt-sum's in different ways.""" # Generate some random data N = 5000000 print(f"PyBind Demo: taking the sqrt & summing {N} elements.")...
25.9
66
0.636293
1d373ebfed8fbd73a4f72c4f05cf362243937caf
1,317
py
Python
src/ggrc_basic_permissions/roles/ProgramOwner.py
Killswitchz/ggrc-core
2460df94daf66727af248ad821462692917c97a9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/ggrc_basic_permissions/roles/ProgramOwner.py
Killswitchz/ggrc-core
2460df94daf66727af248ad821462692917c97a9
[ "ECL-2.0", "Apache-2.0" ]
10
2018-07-06T00:04:23.000Z
2021-02-26T21:13:20.000Z
src/ggrc_basic_permissions/roles/ProgramOwner.py
Killswitchz/ggrc-core
2460df94daf66727af248ad821462692917c97a9
[ "ECL-2.0", "Apache-2.0" ]
1
2017-11-11T22:16:56.000Z
2017-11-11T22:16:56.000Z
# Copyright (C) 2017 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> scope = "Private Program" description = """ User with authorization to peform administrative tasks such as associating users to roles within the scope of of a program.<br/><br/>When a person creates a ...
25.326923
78
0.579347
1d37442ecf24d200349e1a9b0240882f500177e2
15,355
py
Python
revrand/utils/base.py
basaks/revrand
4c1881b6c1772d2b988518e49dde954f165acfb6
[ "Apache-2.0" ]
62
2015-11-06T00:45:21.000Z
2022-03-21T08:08:29.000Z
revrand/utils/base.py
basaks/revrand
4c1881b6c1772d2b988518e49dde954f165acfb6
[ "Apache-2.0" ]
112
2015-11-05T06:47:16.000Z
2021-06-28T20:07:26.000Z
revrand/utils/base.py
basaks/revrand
4c1881b6c1772d2b988518e49dde954f165acfb6
[ "Apache-2.0" ]
16
2016-04-10T08:54:07.000Z
2021-04-27T11:43:53.000Z
"""Assortment of handy functions.""" import inspect import numpy as np from six.moves import map, range, zip from functools import partial from itertools import tee from inspect import isgenerator class Bunch(dict): """ Container object for datasets. Dictionary-like object that exposes its keys as attr...
25.213465
79
0.526539
1d374fecd3abe75a20d5c8c674f56949d7741549
1,227
py
Python
antarest/study/storage/rawstudy/model/filesystem/root/output/simulation/mode/mcall/mcall.py
AntaresSimulatorTeam/antaREST
d686d2a86a52737c211ae67f3cee591f559909f2
[ "Apache-2.0" ]
2
2020-09-30T11:40:22.000Z
2020-11-09T09:06:30.000Z
antarest/study/storage/rawstudy/model/filesystem/root/output/simulation/mode/mcall/mcall.py
AntaresSimulatorTeam/antaREST
d686d2a86a52737c211ae67f3cee591f559909f2
[ "Apache-2.0" ]
542
2021-01-11T13:23:47.000Z
2022-03-31T15:38:10.000Z
antarest/study/storage/rawstudy/model/filesystem/root/output/simulation/mode/mcall/mcall.py
AntaresSimulatorTeam/antaREST
d686d2a86a52737c211ae67f3cee591f559909f2
[ "Apache-2.0" ]
1
2020-10-01T12:18:15.000Z
2020-10-01T12:18:15.000Z
from antarest.study.storage.rawstudy.model.filesystem.config.model import ( FileStudyTreeConfig, ) from antarest.study.storage.rawstudy.model.filesystem.folder_node import ( FolderNode, ) from antarest.study.storage.rawstudy.model.filesystem.inode import TREE from antarest.study.storage.rawstudy.model.filesyste...
37.181818
108
0.709861
1d37669800fec4dc5b1f299b402427a1ed47fc00
7,653
py
Python
bittensor/utils/__init__.py
chaosxcode/bittensor
9c2f513cc7fb03844952ae3755162ed914b11cba
[ "MIT" ]
null
null
null
bittensor/utils/__init__.py
chaosxcode/bittensor
9c2f513cc7fb03844952ae3755162ed914b11cba
[ "MIT" ]
null
null
null
bittensor/utils/__init__.py
chaosxcode/bittensor
9c2f513cc7fb03844952ae3755162ed914b11cba
[ "MIT" ]
null
null
null
import binascii import struct import hashlib import math import bittensor import rich import time import torch import numbers import pandas from typing import Tuple, List, Union, Optional def indexed_values_to_dataframe ( prefix: Union[str, int], index: Union[list, torch.LongTensor], values:...
37.699507
340
0.629818
1d3785c8b742c5a416800c294e5d4ecc51567a6a
424
py
Python
pkgcore/plugins/pkgcore_triggers.py
pombreda/pkgcore
b438fc573af1a031d7ce12adbbf299bab5338451
[ "BSD-3-Clause" ]
1
2021-07-05T13:10:18.000Z
2021-07-05T13:10:18.000Z
pkgcore/plugins/pkgcore_triggers.py
vapier/pkgcore
35a7e4f4f0fc61dd9c4dc72d35a57e2e9d5b832f
[ "BSD-3-Clause" ]
8
2015-03-24T14:21:44.000Z
2015-03-24T14:21:44.000Z
pkgcore/plugins/pkgcore_triggers.py
vapier/pkgcore
35a7e4f4f0fc61dd9c4dc72d35a57e2e9d5b832f
[ "BSD-3-Clause" ]
null
null
null
# Copyright: 2006-2011 Brian Harring <ferringb@gmail.com> # License: GPL2/BSD pkgcore_plugins = { 'triggers': ['pkgcore.merge.triggers.%s' % x for x in [ 'ldconfig', 'merge', 'unmerge', 'fix_uid_perms', 'fix_gid_perms', 'fix_set_bits', 'detect_world_writable'...
23.555556
59
0.57783
1d378745bc7169ac8ca9a97747449640d22de570
19,731
py
Python
nnunet/inference/predict.py
ieee820/nnUNet
1ec28f439018fe31085040c4f8c1d999421537b3
[ "Apache-2.0" ]
null
null
null
nnunet/inference/predict.py
ieee820/nnUNet
1ec28f439018fe31085040c4f8c1d999421537b3
[ "Apache-2.0" ]
null
null
null
nnunet/inference/predict.py
ieee820/nnUNet
1ec28f439018fe31085040c4f8c1d999421537b3
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany # # 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://w...
56.374286
139
0.549035
1d378810e33f275b9c6b8fe75a6eea13bc9dae81
331
py
Python
Ideas/cricket-umpire-assistance-master/visualization/balls.py
hsspratt/Nott-Hawkeye1
178f4f0fef62e8699f6057d9d50adfd61a851047
[ "MIT" ]
null
null
null
Ideas/cricket-umpire-assistance-master/visualization/balls.py
hsspratt/Nott-Hawkeye1
178f4f0fef62e8699f6057d9d50adfd61a851047
[ "MIT" ]
1
2021-11-11T22:15:36.000Z
2021-11-11T22:15:36.000Z
Ideas/cricket-umpire-assistance-master/visualization/balls.py
hsspratt/Nott-Hawkeye1
178f4f0fef62e8699f6057d9d50adfd61a851047
[ "MIT" ]
null
null
null
from visual import * from random import random scene1 = display(title="BTP", x=0, y=0, width=800, height=600, range=10, background=color.white, center=(10,0,-10)) floor = box(pos=(50,0,0), size=(150,0.25,10)) balls = [] for i in range(10): balls.append(sphere(pos=(5*i, 5, 0), radius=2, color=(random(), random(), r...
27.583333
115
0.655589
1d3798d8c008ce2c12fe35208e9d1c1a0ced40e4
4,763
bzl
Python
nixpkgs/toolchains/go.bzl
cocreature/rules_nixpkgs
9b26935bcff383442c9334c6468b791b585994fc
[ "Apache-2.0" ]
null
null
null
nixpkgs/toolchains/go.bzl
cocreature/rules_nixpkgs
9b26935bcff383442c9334c6468b791b585994fc
[ "Apache-2.0" ]
null
null
null
nixpkgs/toolchains/go.bzl
cocreature/rules_nixpkgs
9b26935bcff383442c9334c6468b791b585994fc
[ "Apache-2.0" ]
null
null
null
"""Rules for importing a Go toolchain from Nixpkgs. **NOTE: The following rules must be loaded from `@io_tweag_rules_nixpkgs//nixpkgs:toolchains/go.bzl` to avoid unnecessary dependencies on rules_go for those who don't need go toolchain. `io_bazel_rules_go` must be available for loading before loading of `@io_tweag_ru...
34.766423
254
0.60991
1d37a037a027fc45de5c507af8fc2ea5f973c343
2,214
py
Python
sns/__init__.py
gongchengshi/aws
d04d42739e026d2e99936dd046be05293e063e08
[ "MIT" ]
null
null
null
sns/__init__.py
gongchengshi/aws
d04d42739e026d2e99936dd046be05293e063e08
[ "MIT" ]
null
null
null
sns/__init__.py
gongchengshi/aws
d04d42739e026d2e99936dd046be05293e063e08
[ "MIT" ]
null
null
null
def get_subscriptions_to_topic_arn(sns_connection, topic_arn): response = sns_connection.get_all_subscriptions_by_topic(topic_arn) return response['ListSubscriptionsByTopicResponse']['ListSubscriptionsByTopicResult']['Subscriptions'] def get_confirmed_subscriptions_to_topic_arn(sns_connection, topic_arn): ...
36.295082
106
0.768293
1d37a1ba9629e2ae3394518f2cabe00f253f0d34
5,458
py
Python
scripts/cam.py
FragLegs/mrnet
a05eb8902463cbcf88126c616911bd9f69d019df
[ "MIT" ]
1
2021-06-18T08:16:01.000Z
2021-06-18T08:16:01.000Z
scripts/hist.py
FragLegs/mrnet
a05eb8902463cbcf88126c616911bd9f69d019df
[ "MIT" ]
null
null
null
scripts/hist.py
FragLegs/mrnet
a05eb8902463cbcf88126c616911bd9f69d019df
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import argparse from collections import Counter import logging import os import cv2 import numpy as np import pandas as pd import torch from loader import load_data from model_choice import MODELS log = logging.getLogger(__name__) def get_weights(model): return model.classifier.weight.d...
25.990476
73
0.621107
1d37baf1fd3d8e9ff873b9882c29dedeb604acfc
5,409
py
Python
v0.91/dc/utils/commun.py
iaiting/Flask-and-pywebview-followup-application-gui
b665334403b4a8471b5f28054ee2dc7adda7d9fc
[ "MIT" ]
null
null
null
v0.91/dc/utils/commun.py
iaiting/Flask-and-pywebview-followup-application-gui
b665334403b4a8471b5f28054ee2dc7adda7d9fc
[ "MIT" ]
null
null
null
v0.91/dc/utils/commun.py
iaiting/Flask-and-pywebview-followup-application-gui
b665334403b4a8471b5f28054ee2dc7adda7d9fc
[ "MIT" ]
1
2019-12-25T11:57:45.000Z
2019-12-25T11:57:45.000Z
import os import json import string import random import shutil import time import traceback from time import mktime from datetime import timedelta from datetime import datetime class Commun: """Commun unspecific funcs """ upper = list(string.ascii_uppercase) lower = list(string.ascii_low...
33.80625
124
0.581623
1d37c3589365f60cec084544b132f06c10622f5d
69,057
py
Python
gslib/tests/test_ui.py
stanhu/gsutil
e8403ed5e07caed3027455c7b883fef733612360
[ "Apache-2.0" ]
649
2015-01-08T01:50:15.000Z
2022-03-31T08:33:38.000Z
gslib/tests/test_ui.py
stanhu/gsutil
e8403ed5e07caed3027455c7b883fef733612360
[ "Apache-2.0" ]
798
2015-01-02T07:46:09.000Z
2022-03-31T20:37:19.000Z
gslib/tests/test_ui.py
stanhu/gsutil
e8403ed5e07caed3027455c7b883fef733612360
[ "Apache-2.0" ]
315
2015-01-02T10:26:53.000Z
2022-03-27T02:18:58.000Z
# -*- coding: utf-8 -*- # Copyright 2016 Google Inc. All Rights Reserved. # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to u...
43.901462
80
0.658181
1d38190208783d735a6c34873d4dc501e124f7a7
2,392
py
Python
tests/test_main.py
balkian/tsih
92c5c219bdfe8a273bbe4dda69e9e6804c5ce0d8
[ "Apache-2.0" ]
null
null
null
tests/test_main.py
balkian/tsih
92c5c219bdfe8a273bbe4dda69e9e6804c5ce0d8
[ "Apache-2.0" ]
null
null
null
tests/test_main.py
balkian/tsih
92c5c219bdfe8a273bbe4dda69e9e6804c5ce0d8
[ "Apache-2.0" ]
null
null
null
from unittest import TestCase import os import shutil import pathlib from tsih import Dict ROOT = pathlib.Path(os.path.abspath(os.path.dirname(__file__))) DBROOT = ROOT / 'testdb' class TestTsih(TestCase): def setUp(self): if not os.path.exists(DBROOT): os.makedirs(DBROOT) def tearDown...
29.9
99
0.539716
1d382005f38d0f0e935ea7faad36fdcbb24b095b
2,363
py
Python
common/config.py
Mark-Zwaving/weather-model-download-animation
3687ad2ed4f368230338a3ff8f35d67933fedb93
[ "MIT" ]
null
null
null
common/config.py
Mark-Zwaving/weather-model-download-animation
3687ad2ed4f368230338a3ff8f35d67933fedb93
[ "MIT" ]
null
null
null
common/config.py
Mark-Zwaving/weather-model-download-animation
3687ad2ed4f368230338a3ff8f35d67933fedb93
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- '''Variables for the base configuration of the bfn module''' __author__ = 'Mark Zwaving' __email__ = 'markzwaving@gmail.com' __copyright__ = 'Copyright (C) Mark Zwaving. All rights reserved.' __license__ = 'MIT License' __version__ = '0.1.0' __maintainer__ = 'Mark Zwaving' ...
36.921875
89
0.682184
1d38538a126483b2a23d0b009cf4fee179f4934e
8,302
py
Python
src/validation/aux_functions2.py
christianhilscher/dynasim
881cfd3bd9d4b9291d289d703ec7da4a617a479a
[ "MIT" ]
null
null
null
src/validation/aux_functions2.py
christianhilscher/dynasim
881cfd3bd9d4b9291d289d703ec7da4a617a479a
[ "MIT" ]
2
2020-08-06T10:01:59.000Z
2021-05-17T12:14:44.000Z
src/validation/aux_functions2.py
christianhilscher/dynasim
881cfd3bd9d4b9291d289d703ec7da4a617a479a
[ "MIT" ]
2
2020-08-19T06:52:09.000Z
2021-12-10T08:57:54.000Z
import sys from pathlib import Path import numpy as np import pandas as pd from bokeh.models import ColumnDataSource from bokeh.io import export_png from bokeh.plotting import figure ########################## # Define plot object class ########################## class plot_obj: def __init__(self, data, var...
30.634686
129
0.55854
1d3868d944805d0b595bfee8265314b39af78c1f
27
py
Python
contrib/fanfouapi/__init__.py
joodo/loser-fan
ad6be4fb171ee7a8ca1fa8da572acaf11a1548b9
[ "MIT" ]
null
null
null
contrib/fanfouapi/__init__.py
joodo/loser-fan
ad6be4fb171ee7a8ca1fa8da572acaf11a1548b9
[ "MIT" ]
null
null
null
contrib/fanfouapi/__init__.py
joodo/loser-fan
ad6be4fb171ee7a8ca1fa8da572acaf11a1548b9
[ "MIT" ]
null
null
null
__all__ = ['management']
6.75
24
0.62963
1d386e389a22fb81386a642db5726fc20a40e196
110
py
Python
office365/sharepoint/taxonomy/taxonomy_field.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
null
null
null
office365/sharepoint/taxonomy/taxonomy_field.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
null
null
null
office365/sharepoint/taxonomy/taxonomy_field.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
null
null
null
from office365.sharepoint.fields.field_lookup import FieldLookup class TaxonomyField(FieldLookup): pass
18.333333
64
0.827273
1d38902300c4d8f712c86e67b460878a283dbf8a
3,191
py
Python
dakotathon/responses/response_functions.py
csdms/dakotathon
6af575b0c21384b2a1ab51e26b6a08512313bd84
[ "MIT" ]
8
2019-09-11T12:59:57.000Z
2021-08-11T16:31:58.000Z
dakotathon/responses/response_functions.py
csdms/dakota
6af575b0c21384b2a1ab51e26b6a08512313bd84
[ "MIT" ]
66
2015-04-06T17:11:21.000Z
2019-02-03T18:09:52.000Z
dakotathon/responses/response_functions.py
csdms/dakota
6af575b0c21384b2a1ab51e26b6a08512313bd84
[ "MIT" ]
5
2015-03-24T22:39:34.000Z
2018-04-21T12:14:05.000Z
"""Implementation of the Dakota response_function response type.""" from .base import ResponsesBase from ..utils import to_iterable classname = "ResponseFunctions" class ResponseFunctions(ResponsesBase): """Define attributes for Dakota response functions.""" def __init__( self, response_d...
30.390476
84
0.60702
1d38a33b3e370c6241bfd67ab8874d6252a6121a
628
py
Python
Python/preprocessing/flownet2/utils/frame_utils.py
kokizzu/OmniPhotos
b8aa4c90b87b87b087bca8de3cf0e2b6d13f84da
[ "Apache-2.0" ]
129
2020-12-13T02:22:05.000Z
2022-03-22T02:45:39.000Z
Python/preprocessing/flownet2/utils/frame_utils.py
kokizzu/OmniPhotos
b8aa4c90b87b87b087bca8de3cf0e2b6d13f84da
[ "Apache-2.0" ]
4
2020-12-20T20:18:05.000Z
2021-06-03T10:51:55.000Z
Python/preprocessing/flownet2/utils/frame_utils.py
kokizzu/OmniPhotos
b8aa4c90b87b87b087bca8de3cf0e2b6d13f84da
[ "Apache-2.0" ]
23
2020-12-15T15:11:18.000Z
2022-03-18T00:15:30.000Z
import numpy as np from os.path import * #from scipy.misc import imread #from matplotlib.pyplot import imread import imageio from . import flow_utils def read_gen(file_name): ext = splitext(file_name)[-1] if ext == '.png' or ext == '.jpeg' or ext == '.ppm' or ext == '.jpg': #im = imread(file_name) ...
28.545455
73
0.590764
1d38acc8ae14284e34d2a177dab8cedf9f50fef8
417
py
Python
src/components/footer/cms_plugins.py
svenvandescheur/svenv.nl-new
c448714853d96ad31d26c825d8b35c4890be40a1
[ "MIT" ]
null
null
null
src/components/footer/cms_plugins.py
svenvandescheur/svenv.nl-new
c448714853d96ad31d26c825d8b35c4890be40a1
[ "MIT" ]
null
null
null
src/components/footer/cms_plugins.py
svenvandescheur/svenv.nl-new
c448714853d96ad31d26c825d8b35c4890be40a1
[ "MIT" ]
null
null
null
from cms.plugin_base import CMSPluginBase from cms.plugin_pool import plugin_pool from cms.models.pluginmodel import CMSPlugin from django.utils.translation import ugettext_lazy as _ class FooterPlugin(CMSPluginBase): """ A simple navigation bar plugin. """ module = _('Website elements') name = _(...
24.529412
55
0.76259
1d38d72dfa7356e2af18db1b158a5ec202fafae5
3,243
py
Python
nnef/data_prep_scripts/casp2complex.py
lahplover/nnef
dcabf31337e5849593f343e6502fe0b8dc20452e
[ "MIT" ]
2
2021-04-30T06:07:49.000Z
2021-06-30T06:47:00.000Z
nnef/data_prep_scripts/casp2complex.py
lahplover/nnef
dcabf31337e5849593f343e6502fe0b8dc20452e
[ "MIT" ]
null
null
null
nnef/data_prep_scripts/casp2complex.py
lahplover/nnef
dcabf31337e5849593f343e6502fe0b8dc20452e
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np from tqdm import tqdm import os def casp_match(): """ match the CASP structures and the PDBs using the seq_index in PDBs files. This method does not work because the sequences used in CASP are different from the sequences in PDB files. """ casp_set = '11' ...
39.072289
111
0.62473
1d38e080d87b6cc7831164a0754aab7d5b75cf3f
6,226
py
Python
src/utils/setup.py
jwwangchn/RSD
8d7597cad0b344775040d29a267378354daaca5d
[ "BSD-2-Clause" ]
1
2018-07-29T02:32:58.000Z
2018-07-29T02:32:58.000Z
src/utils/setup.py
jwwangchn/RSD
8d7597cad0b344775040d29a267378354daaca5d
[ "BSD-2-Clause" ]
null
null
null
src/utils/setup.py
jwwangchn/RSD
8d7597cad0b344775040d29a267378354daaca5d
[ "BSD-2-Clause" ]
null
null
null
# -------------------------------------------------------- # Fast R-CNN # Copyright (c) 2015 Microsoft # Licensed under The MIT License [see LICENSE for details] # Written by Ross Girshick # -------------------------------------------------------- import os from os.path import join as pjoin from setuptools import setu...
38.196319
105
0.583521
1d392ef87db4c726efedab4b281749e09f425a37
7,503
py
Python
WP3/Task3.1/spark/jobs/datasetextraction_question4/__init__.py
on-merrit/ON-MERRIT
a21324a54a6365f2f769b5952b0cf5347a97d480
[ "MIT" ]
2
2019-12-10T13:10:58.000Z
2019-12-13T10:11:41.000Z
WP3/Task3.1/spark/jobs/datasetextraction_question4/__init__.py
on-merrit/ON-MERRIT
a21324a54a6365f2f769b5952b0cf5347a97d480
[ "MIT" ]
4
2020-03-31T12:13:45.000Z
2020-04-15T15:59:17.000Z
WP3/Task3.1/spark/jobs/datasetextraction_question4/__init__.py
on-merrit/ON-MERRIT
a21324a54a6365f2f769b5952b0cf5347a97d480
[ "MIT" ]
1
2020-02-26T08:52:39.000Z
2020-02-26T08:52:39.000Z
''' Q4: Distribution of seniority of the staff (number of years since their first publication until the last publication in the given university) at a particular university. Extracts dataset of papers for authors with their publication year for all the universities listed in THE WUR. A separate csv will be generated...
57.715385
391
0.715181
1d392fa3f44d22952712cddb5a229e64e5bdd7d3
236
py
Python
theseus/segmentation/metrics/__init__.py
kaylode/shrec22-pothole
700d1632de686214e42a2f56aeaceab30c8b9a3f
[ "MIT" ]
1
2022-03-19T11:52:53.000Z
2022-03-19T11:52:53.000Z
theseus/segmentation/metrics/__init__.py
kaylode/shrec22-pothole
700d1632de686214e42a2f56aeaceab30c8b9a3f
[ "MIT" ]
null
null
null
theseus/segmentation/metrics/__init__.py
kaylode/shrec22-pothole
700d1632de686214e42a2f56aeaceab30c8b9a3f
[ "MIT" ]
1
2022-03-19T11:53:10.000Z
2022-03-19T11:53:10.000Z
from theseus.base.metrics import METRIC_REGISTRY from .dicecoeff import * from .pixel_accuracy import * from .mean_iou import * METRIC_REGISTRY.register(PixelAccuracy) METRIC_REGISTRY.register(DiceScore) METRIC_REGISTRY.register(mIOU)
26.222222
48
0.84322
1d394ed34269a290c473c9d74919fe0a28833262
481
py
Python
construct_launcher/__init__.py
construct-org/construct_launcher
72d51a479cb3f0ff0d06830e3497fc0affd568fe
[ "MIT" ]
null
null
null
construct_launcher/__init__.py
construct-org/construct_launcher
72d51a479cb3f0ff0d06830e3497fc0affd568fe
[ "MIT" ]
null
null
null
construct_launcher/__init__.py
construct-org/construct_launcher
72d51a479cb3f0ff0d06830e3497fc0affd568fe
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import __title__ = 'construct_launcher' __description__ = 'Construct Launcher Actions' __version__ = '0.2.0' __author__ = 'Dan Bradham' __email__ = 'danielbradham@gmail.com' __license__ = 'MIT' __url__ = 'https://github.com/danbradham/construct_launcher' from c...
28.294118
60
0.7921
1d3978c75259d3c431cffb29f23aa993e5d67608
2,541
py
Python
examples/batchCell/cfg.py
sanjayankur31/netpyne
d8b7e94cabeb27e23e30853ff17ae86518b35ac2
[ "MIT" ]
null
null
null
examples/batchCell/cfg.py
sanjayankur31/netpyne
d8b7e94cabeb27e23e30853ff17ae86518b35ac2
[ "MIT" ]
null
null
null
examples/batchCell/cfg.py
sanjayankur31/netpyne
d8b7e94cabeb27e23e30853ff17ae86518b35ac2
[ "MIT" ]
null
null
null
""" cfg.py Simulation configuration """ from netpyne import specs cfg = specs.SimConfig() ############################################################################### # # SIMULATION CONFIGURATION # ############################################################################### ##################################...
33
93
0.317591
1d397e01eada69d6bbca0dea7718809378f5a6cd
4,865
py
Python
plugins/maya/publish/extract_rig.py
davidlatwe/reveries-config
4a282dd64a32a9b87bd1a070759b6425ff785d68
[ "MIT" ]
3
2020-04-01T10:51:17.000Z
2021-08-05T18:35:23.000Z
plugins/maya/publish/extract_rig.py
davidlatwe/reveries-config
4a282dd64a32a9b87bd1a070759b6425ff785d68
[ "MIT" ]
null
null
null
plugins/maya/publish/extract_rig.py
davidlatwe/reveries-config
4a282dd64a32a9b87bd1a070759b6425ff785d68
[ "MIT" ]
1
2020-07-05T12:06:30.000Z
2020-07-05T12:06:30.000Z
import contextlib import pyblish.api class ExtractRig(pyblish.api.InstancePlugin): """Extract rig as mayaBinary""" label = "Extract Rig (mb)" order = pyblish.api.ExtractorOrder hosts = ["maya"] families = ["reveries.rig"] def process(self, instance): from maya import cmds fr...
40.206612
79
0.528469
1d397ea91137d510c1387e188bb256a955c25d6c
1,516
py
Python
src/epivizFileParser/InteractionBigBed.py
epiviz/parser
255dc6409db3f55b6f967df079ada469862cd02c
[ "MIT" ]
4
2018-09-14T19:00:16.000Z
2020-04-08T07:58:34.000Z
src/epivizFileParser/InteractionBigBed.py
epiviz/parser
255dc6409db3f55b6f967df079ada469862cd02c
[ "MIT" ]
6
2019-04-27T21:08:49.000Z
2021-12-21T01:03:11.000Z
src/epivizFileParser/InteractionBigBed.py
epiviz/epivizFileParser
bba301db40458b6666653c77a446db8778ee07f8
[ "MIT" ]
2
2021-01-11T17:09:24.000Z
2021-01-28T16:17:11.000Z
from .BigBed import BigBed import struct import zlib import math import pandas as pd __author__ = "Jayaram Kancherla" __copyright__ = "jkanche" __license__ = "mit" class InteractionBigBed(BigBed): """ BigBed file parser for chromosome interaction Data Columns in the bed file are (chr, start, e...
35.255814
115
0.625989
1d397f38fc125890d5745d354a3640e83c892e01
1,720
py
Python
fridge-api/application.py
MonoHelixLabs/myfridge-rpi
a96a555e4df4c10e843381f6e4f7ebb5ed22a66d
[ "BSD-2-Clause" ]
2
2017-04-27T09:44:24.000Z
2019-09-06T19:58:21.000Z
fridge-api/application.py
MonoHelixLabs/myfridge-rpi
a96a555e4df4c10e843381f6e4f7ebb5ed22a66d
[ "BSD-2-Clause" ]
17
2017-02-19T21:36:14.000Z
2017-04-02T14:44:35.000Z
fridge-api/application.py
MonoHelixLabs/myfridge-rpi
a96a555e4df4c10e843381f6e4f7ebb5ed22a66d
[ "BSD-2-Clause" ]
1
2018-03-02T08:06:28.000Z
2018-03-02T08:06:28.000Z
# Fridge API providing an interface for publishing and # receiving data to/from Adafruit IO, and adding some # logic in between. # # Copyright (c) 2017 MonoHelix Labs import time from Adafruit_IO import Client from flask import Flask, jsonify from flask_cors import CORS, cross_origin application = Flask(__name__) cor...
28.666667
84
0.706977
1d398c978c794247448f85e12348a3702168e4f5
2,815
py
Python
app/core/tests/test_models.py
Guaaaan/recipe-app-api
e60d06acdb2942f624432bd14fadb0d1195cc8d8
[ "MIT" ]
null
null
null
app/core/tests/test_models.py
Guaaaan/recipe-app-api
e60d06acdb2942f624432bd14fadb0d1195cc8d8
[ "MIT" ]
null
null
null
app/core/tests/test_models.py
Guaaaan/recipe-app-api
e60d06acdb2942f624432bd14fadb0d1195cc8d8
[ "MIT" ]
null
null
null
from unittest.mock import patch from django.test import TestCase from django.contrib.auth import get_user_model from core import models def sample_user(email='test@londonapptest.com', password='testpass'): """Create a sample user""" return get_user_model().objects.create_user(email, password) class ModelT...
30.597826
70
0.634458
1d39e9bf17904ed1953f7d3234745e6765e979a7
5,708
py
Python
bert-distillation/bert_distill/run/distill_siamese_rnn_mse.py
distillbert/code
f71b25e68fbac6ab4b6b4abe5a4d04f56c6b8791
[ "MIT" ]
null
null
null
bert-distillation/bert_distill/run/distill_siamese_rnn_mse.py
distillbert/code
f71b25e68fbac6ab4b6b4abe5a4d04f56c6b8791
[ "MIT" ]
null
null
null
bert-distillation/bert_distill/run/distill_siamese_rnn_mse.py
distillbert/code
f71b25e68fbac6ab4b6b4abe5a4d04f56c6b8791
[ "MIT" ]
null
null
null
import os import sys from scipy.stats import pearsonr, spearmanr from torch.nn.utils import clip_grad_norm_ from torch.optim import Adadelta, Adam from tqdm import tqdm import torch import torch.nn as nn import torch.nn.functional as F from .args import read_args from bert_distill.data import find_dataset, set_seed, ...
39.916084
120
0.662754
1d3a2df49ad959a0da0c7084da4c056db4ec9461
4,659
py
Python
results_sa.py
jmnel/simulated-annealing
1b50e172eed35f85f7278db1778b88d428ecf5ea
[ "MIT" ]
null
null
null
results_sa.py
jmnel/simulated-annealing
1b50e172eed35f85f7278db1778b88d428ecf5ea
[ "MIT" ]
null
null
null
results_sa.py
jmnel/simulated-annealing
1b50e172eed35f85f7278db1778b88d428ecf5ea
[ "MIT" ]
null
null
null
from pprint import pprint import matplotlib matplotlib.use('module://matplotlib-backend-kitty') # matplotlib.use('Agg') import matplotlib.pyplot as plt #import matplotlib.patches as patches import numpy as np from zoo import Zoo from sa import simulated_annealing TOL = 1e-7 NUM_RUNS = 50 TOL_SAME = 1e-4 SA_L0 = 20...
27.087209
101
0.482722
1d3a3151eb24a939bb4fd75f5e5a5f6d741d922d
518
py
Python
migrations/versions/0217_default_email_branding.py
cds-snc/notifier-api
90b385ec49efbaee7e607516fc7d9f08991af813
[ "MIT" ]
41
2019-11-28T16:58:41.000Z
2022-01-28T21:11:16.000Z
migrations/versions/0217_default_email_branding.py
cds-snc/notification-api
b1c1064f291eb860b494c3fa65ac256ad70bf47c
[ "MIT" ]
1,083
2019-07-08T12:57:24.000Z
2022-03-08T18:53:40.000Z
migrations/versions/0217_default_email_branding.py
cds-snc/notifier-api
90b385ec49efbaee7e607516fc7d9f08991af813
[ "MIT" ]
9
2020-01-24T19:56:43.000Z
2022-01-27T21:36:53.000Z
""" Revision ID: 0217_default_email_branding Revises: 0216_remove_colours Create Date: 2018-08-24 13:36:49.346156 """ from alembic import op from app.models import BRANDING_ORG revision = "0217_default_email_branding" down_revision = "0216_remove_colours" def upgrade(): op.execute( """ update ...
16.709677
41
0.608108
1d3a45513010f818441af7510347902839cd0e37
4,028
py
Python
alipay/aop/api/request/KoubeiQualityTestShieldCaselaunchApplyRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/request/KoubeiQualityTestShieldCaselaunchApplyRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/request/KoubeiQualityTestShieldCaselaunchApplyRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.KoubeiQualityTestShieldCaselaunchApplyModel import KoubeiQualityTestShieldCaselaunchApplyModel class KoubeiQualityTestShieldCaselaun...
27.77931
148
0.649454
1d3a4639d9aeac634c9c54afb8676aa9c4d7fec4
774
py
Python
devices/local_serial_connection.py
sravichandran-contractor/boardfarm
cb8cbe75db5f0323bb56cf9563d7e9b4e940a880
[ "BSD-3-Clause-Clear" ]
74
2015-08-25T22:50:38.000Z
2022-01-04T16:32:00.000Z
devices/local_serial_connection.py
sravichandran-contractor/boardfarm
cb8cbe75db5f0323bb56cf9563d7e9b4e940a880
[ "BSD-3-Clause-Clear" ]
72
2015-10-12T17:42:47.000Z
2019-01-19T14:11:18.000Z
devices/local_serial_connection.py
sravichandran-contractor/boardfarm
cb8cbe75db5f0323bb56cf9563d7e9b4e940a880
[ "BSD-3-Clause-Clear" ]
50
2015-08-25T22:45:44.000Z
2022-01-05T09:47:04.000Z
import pexpect class LocalSerialConnection(): ''' To use, set conn_cmd in your json to "cu -s <port_speed> -l <path_to_serialport>" and set connection_type to "local_serial" ''' def __init__(self, device=None, conn_cmd=None, **kwargs): self.device = device self.conn_cmd = conn_cmd ...
32.25
114
0.529716
1d3a6551614db55e52a66bdfc9a593be39d36370
11,054
py
Python
readthedocs/projects/urls/private.py
mehrdad-khojastefar/readthedocs.org
b958bb8d04c454324d612345890b13af54a19eb6
[ "MIT" ]
2,092
2019-06-29T07:47:30.000Z
2022-03-31T14:54:59.000Z
readthedocs/projects/urls/private.py
mehrdad-khojastefar/readthedocs.org
b958bb8d04c454324d612345890b13af54a19eb6
[ "MIT" ]
2,389
2019-06-29T04:22:55.000Z
2022-03-31T22:57:49.000Z
readthedocs/projects/urls/private.py
mehrdad-khojastefar/readthedocs.org
b958bb8d04c454324d612345890b13af54a19eb6
[ "MIT" ]
1,185
2019-06-29T21:49:31.000Z
2022-03-30T09:57:15.000Z
"""Project URLs for authenticated users.""" from django.conf import settings from django.conf.urls import url from django.contrib.auth.decorators import login_required from django.views.generic.base import RedirectView from readthedocs.constants import pattern_opts from readthedocs.projects.backends.views import Impo...
29.477333
121
0.596436
1d3a6ae15164fde2b0c5aa80c2660c33d5a68870
5,001
py
Python
docs/source/conf.py
awslabs/aws-media-replay-engine
2c217eff42f8e2c56b43e2ecf593f5aaa92c5451
[ "Apache-2.0" ]
22
2021-11-24T01:23:07.000Z
2022-03-26T23:24:46.000Z
docs/source/conf.py
awslabs/aws-media-replay-engine
2c217eff42f8e2c56b43e2ecf593f5aaa92c5451
[ "Apache-2.0" ]
null
null
null
docs/source/conf.py
awslabs/aws-media-replay-engine
2c217eff42f8e2c56b43e2ecf593f5aaa92c5451
[ "Apache-2.0" ]
3
2021-12-10T09:42:51.000Z
2022-02-16T02:22:50.000Z
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # http://www.sphinx-doc.org/en/master/config # -- Path setup -------------------------------------------------------------- # If extensions (or module...
45.463636
94
0.754649
1d3a8aced0befe16ee9988ccf80d07f2245eaad8
479
py
Python
06_debugging_and_benchmarking/threadException.py
837477/Python_Parallel
7590ff38e6a2b1dbec139e9571b6564b5bbf276f
[ "MIT" ]
67
2017-08-27T18:00:46.000Z
2022-03-01T11:54:16.000Z
06_debugging_and_benchmarking/threadException.py
837477/python_parallel_programming_study
2294f4a3de9e9f5b16b6772a3a8d96c37eb63c0f
[ "MIT" ]
8
2018-10-18T17:15:45.000Z
2021-12-24T01:58:05.000Z
06_debugging_and_benchmarking/threadException.py
837477/python_parallel_programming_study
2294f4a3de9e9f5b16b6772a3a8d96c37eb63c0f
[ "MIT" ]
49
2017-08-18T12:53:30.000Z
2022-02-06T09:40:50.000Z
import sys import threading import time import queue def myThread(queue): while True: try: time.sleep(2) raise Exception("Exception Thrown In Child Thread {}".format(threading.current_thread())) except: queue.put(sys.exc_info()) queue = queue.Queue() myThread = threading.Thread(target=myT...
17.740741
95
0.678497
1d3a93f669711aea57d7b7712e8c8a370a0eb974
1,481
py
Python
tools/kbpy/adapters/iri-2018/team_averages.py
yuliu2016/knotbook
122488c0a71c69551dbdf3903634b9ca0a7e9fc1
[ "MIT" ]
null
null
null
tools/kbpy/adapters/iri-2018/team_averages.py
yuliu2016/knotbook
122488c0a71c69551dbdf3903634b9ca0a7e9fc1
[ "MIT" ]
16
2019-08-22T23:39:15.000Z
2019-10-28T20:27:02.000Z
tools/kbpy/adapters/offseason-2018/team_averages.py
yuliu2016/knotbook
122488c0a71c69551dbdf3903634b9ca0a7e9fc1
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd TITLE_NAME = "Team Averages" SOURCE_NAME = "team_averages" LABELS = ["Team", "Average Scale", "Average Alliance Switch", "Average Opponent Switch", "Average Exchange"] def get_team_data(manager): teams_data = {} for entry in manag...
31.510638
90
0.561783
1d3aac27d91b132215b103bdff1400dcb1648556
29,900
py
Python
demisto_sdk/commands/unify/tests/unifier_test.py
yalonso7/demisto-sdk
4b832078cdadb0b604a064532975e8be68ac726a
[ "MIT" ]
null
null
null
demisto_sdk/commands/unify/tests/unifier_test.py
yalonso7/demisto-sdk
4b832078cdadb0b604a064532975e8be68ac726a
[ "MIT" ]
null
null
null
demisto_sdk/commands/unify/tests/unifier_test.py
yalonso7/demisto-sdk
4b832078cdadb0b604a064532975e8be68ac726a
[ "MIT" ]
null
null
null
import base64 import copy import json import os import shutil import pytest import yaml import yamlordereddictloader from click.testing import CliRunner from demisto_sdk.__main__ import main from demisto_sdk.commands.common.git_tools import git_path from demisto_sdk.commands.common.tools import get_yaml from demisto_s...
40.569878
140
0.683746
1d3ac86db6218f6035a669240aa261601201336c
2,648
py
Python
checkov/cloudformation/graph_manager.py
graybrandonpfg/checkov
3081a8560f6369465314ee8f4ac8a8ec01649d68
[ "Apache-2.0" ]
null
null
null
checkov/cloudformation/graph_manager.py
graybrandonpfg/checkov
3081a8560f6369465314ee8f4ac8a8ec01649d68
[ "Apache-2.0" ]
null
null
null
checkov/cloudformation/graph_manager.py
graybrandonpfg/checkov
3081a8560f6369465314ee8f4ac8a8ec01649d68
[ "Apache-2.0" ]
null
null
null
import json import logging from typing import List, Dict, Type, Optional, Tuple from checkov.cloudformation.cfn_utils import get_folder_definitions from checkov.cloudformation.context_parser import ContextParser from checkov.cloudformation.graph_builder.graph_to_definitions import convert_graph_vertices_to_definitions...
51.921569
114
0.751511
1d3acaf4d8850ca065da1f5b2193924de3921148
4,425
py
Python
custom_components/meross_lan/devices/mts100.py
aicarmic/meross_lan
acaecd2ca2325f515638e1cefa0224125bbfa675
[ "MIT" ]
null
null
null
custom_components/meross_lan/devices/mts100.py
aicarmic/meross_lan
acaecd2ca2325f515638e1cefa0224125bbfa675
[ "MIT" ]
null
null
null
custom_components/meross_lan/devices/mts100.py
aicarmic/meross_lan
acaecd2ca2325f515638e1cefa0224125bbfa675
[ "MIT" ]
null
null
null
from __future__ import annotations from ..climate import ( MtsClimate, MtsSetPointNumber, PRESET_OFF, PRESET_CUSTOM, PRESET_COMFORT, PRESET_SLEEP, PRESET_AWAY, PRESET_AUTO, ATTR_TEMPERATURE, ) from ..merossclient import const as mc # mEROSS cONST class Mts100Climate(MtsClimate): MTS_MODE_AUTO = mc....
35.119048
103
0.622147