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
2d464667bbb8d7ee842199230f887d203d83d692
106,505
py
Python
src/sage/algebras/quatalg/quaternion_algebra.py
saraedum/sage-renamed
d2da67b14da2ad766a5906425d60d43a3b3e1270
[ "BSL-1.0" ]
1
2016-11-04T16:31:48.000Z
2016-11-04T16:31:48.000Z
src/sage/algebras/quatalg/quaternion_algebra.py
rwst/sage
a9d274b9338e6ee24bf35ea8d25875507e51e455
[ "BSL-1.0" ]
null
null
null
src/sage/algebras/quatalg/quaternion_algebra.py
rwst/sage
a9d274b9338e6ee24bf35ea8d25875507e51e455
[ "BSL-1.0" ]
null
null
null
""" Quaternion Algebras AUTHORS: - Jon Bobber (2009): rewrite - William Stein (2009): rewrite - Julian Rueth (2014-03-02): use UniqueFactory for caching This code is partly based on Sage code by David Kohel from 2005. TESTS: Pickling test:: sage: Q.<i,j,k> = QuaternionAlgebra(QQ,-5,-2) sage: Q == loads(...
36.066712
397
0.534012
2d46956e2d4ba8137aea525baf1d040738019844
8,640
py
Python
testmp.py
blackbliss/bbb_radio
48e060c5ed93f8c48de48a5db347b84988c99ebf
[ "MIT" ]
1
2018-03-22T07:46:54.000Z
2018-03-22T07:46:54.000Z
testmp.py
blackbliss/bbb_radio
48e060c5ed93f8c48de48a5db347b84988c99ebf
[ "MIT" ]
1
2018-03-24T19:08:04.000Z
2018-03-24T19:08:04.000Z
testmp.py
blackbliss/bbb_radio
48e060c5ed93f8c48de48a5db347b84988c99ebf
[ "MIT" ]
null
null
null
import os import subprocess import time import sys import re import lcd import threading import Adafruit_BBIO.GPIO as GPIO stations={'JAZZ': 'http://www.radioswissjazz.ch/live/aacp.m3u', 'Virgin Radio': 'http://shoutcast.unitedradio.it:1301','Deejay': 'http://mp3.kataweb.it:8000/RadioDeejay','105Hits': 'http:...
33.618677
232
0.599653
2d469e0f0cd7e94474bc0380605cd6e02931fc82
1,390
py
Python
HavelCMS/views.py
uhuramedia/Havel
665854b84fb5e798f390af47fdcbba53cf90a830
[ "BSD-3-Clause" ]
null
null
null
HavelCMS/views.py
uhuramedia/Havel
665854b84fb5e798f390af47fdcbba53cf90a830
[ "BSD-3-Clause" ]
4
2015-05-26T14:57:48.000Z
2016-06-16T09:34:44.000Z
HavelCMS/views.py
uhuramedia/Havel
665854b84fb5e798f390af47fdcbba53cf90a830
[ "BSD-3-Clause" ]
2
2015-05-19T12:42:22.000Z
2019-10-02T17:42:55.000Z
from itertools import chain from django.db.models import Q from django.conf import settings from django.http import HttpResponsePermanentRedirect, HttpResponse from django.shortcuts import render, get_object_or_404 from django.template.base import TemplateDoesNotExist from django.utils import translation from HavelCM...
39.714286
106
0.729496
2d46ce808dff98ed291ed576cc120f6c05deeb63
292
py
Python
launch_disk_in_virtualbox.py
jcaw/Physical-VirtualBox
071fce534a0f34d2fa3e83e924b6eba6db220c8d
[ "MIT" ]
null
null
null
launch_disk_in_virtualbox.py
jcaw/Physical-VirtualBox
071fce534a0f34d2fa3e83e924b6eba6db220c8d
[ "MIT" ]
null
null
null
launch_disk_in_virtualbox.py
jcaw/Physical-VirtualBox
071fce534a0f34d2fa3e83e924b6eba6db220c8d
[ "MIT" ]
null
null
null
import traceback try: # Wrap the entire module in a try/except to catch unexpected issues # introduced by PyInstaller. from _launch_disk_in_virtualbox import main main() except Exception as e: traceback.print_exc() input("Encountered an error. Press Enter to exit.")
26.545455
71
0.732877
2d46cf6d8f0bd4c97febba5af7c1b788d1667053
737
py
Python
anon/__init__.py
Tesorio/django-anon
5288d84001e2cbe4027c3c0f00173e6fe49da959
[ "MIT" ]
146
2019-11-08T20:17:39.000Z
2022-03-30T12:34:13.000Z
anon/__init__.py
Tesorio/django-anon
5288d84001e2cbe4027c3c0f00173e6fe49da959
[ "MIT" ]
35
2019-11-04T17:37:41.000Z
2021-07-28T12:22:02.000Z
anon/__init__.py
Tesorio/django-anon
5288d84001e2cbe4027c3c0f00173e6fe49da959
[ "MIT" ]
3
2020-10-02T13:55:49.000Z
2021-06-23T10:46:50.000Z
# stdlib import sys __version__ = "0.3.2" try: from .base import BaseAnonymizer, lazy_attribute # noqa: F401 from .utils import * # noqa: F401,F403 except ImportError: # During setup.py not all dependencies may be installed, which may cause some # imports to fail. We still need to be able to impor...
26.321429
88
0.658073
2d46d4c7fa6d8d87bc59829fb7975ca6a01c0503
1,368
py
Python
authors/apps/authentication/tests/base.py
andela/ah-backend-prime
0708463d4565a4977a5a5dcb839f1dfed52fdc90
[ "BSD-3-Clause" ]
1
2019-09-19T14:30:05.000Z
2019-09-19T14:30:05.000Z
authors/apps/authentication/tests/base.py
e-ian/authors-haven-frontend
05829c8088ca49ef2cf0863dc87ec55b44b13534
[ "BSD-3-Clause" ]
22
2019-03-25T16:10:53.000Z
2022-03-11T23:44:21.000Z
authors/apps/authentication/tests/base.py
e-ian/authors-haven-frontend
05829c8088ca49ef2cf0863dc87ec55b44b13534
[ "BSD-3-Clause" ]
6
2019-03-25T09:39:39.000Z
2021-03-11T23:54:12.000Z
from django.urls import reverse from rest_framework.test import APIClient, APITestCase from authors.apps.authentication.models import User from authors.apps.authentication.tests.test_data import VALID_LOGIN_DATA, VALID_USER_DATA class BaseTest(APITestCase): """ sets up a base class upon which all our test dep...
31.813953
89
0.649123
2d46e73ea355f87917a248b674ad2ae2366d43b2
530
py
Python
tests/trader/test_settings.py
howyu88/vnpy2
c8ae445823dc1f71abda1a79fae7d4be3dd92dd4
[ "MIT" ]
323
2015-11-21T14:45:29.000Z
2022-03-16T08:54:37.000Z
tests/trader/test_settings.py
howyu88/vnpy2
c8ae445823dc1f71abda1a79fae7d4be3dd92dd4
[ "MIT" ]
9
2017-03-21T08:26:21.000Z
2021-08-23T06:41:17.000Z
tests/trader/test_settings.py
howyu88/vnpy2
c8ae445823dc1f71abda1a79fae7d4be3dd92dd4
[ "MIT" ]
148
2016-09-26T03:25:39.000Z
2022-02-06T14:43:48.000Z
""" Test if database works fine """ import unittest from vnpy.trader.setting import SETTINGS, get_settings class TestSettings(unittest.TestCase): def test_get_settings(self): SETTINGS['a'] = 1 got = get_settings() self.assertIn('a', got) self.assertEqual(got['a'], 1) def tes...
20.384615
54
0.622642
2d46f55f759321427b06bb43b7a9091c133578d3
549
py
Python
src/snakes/example.txt.py
soutys/snakes
dda708471bf8cb9aa06d00db12e689997c310db4
[ "MIT" ]
null
null
null
src/snakes/example.txt.py
soutys/snakes
dda708471bf8cb9aa06d00db12e689997c310db4
[ "MIT" ]
null
null
null
src/snakes/example.txt.py
soutys/snakes
dda708471bf8cb9aa06d00db12e689997c310db4
[ "MIT" ]
1
2018-11-13T10:50:25.000Z
2018-11-13T10:50:25.000Z
import sys import random WIDTH, HEIGHT = {WIDTH}, {HEIGHT} # Change here! # ------------ # Board is a list of strings (board rows), where: # - o = apple # - # = snake # - H = head of our snake # - . = empty field # # Move should return 'left', 'right', 'up' or 'down' def move(board): return random.choice(['l...
22.875
70
0.601093
2d46f5bce6475b1471c83f0122ab0d0d93e3966e
4,275
py
Python
modelscript/metamodels/classes/oclchecker.py
ScribesZone/ModelScribes
a36be1047283f2e470dc2dd4353f2a714377bb7d
[ "MIT" ]
1
2019-02-22T14:27:06.000Z
2019-02-22T14:27:06.000Z
modelscript/metamodels/classes/oclchecker.py
ScribesZone/ModelScribes
a36be1047283f2e470dc2dd4353f2a714377bb7d
[ "MIT" ]
4
2015-12-18T10:30:02.000Z
2015-12-18T10:36:28.000Z
modelscript/metamodels/classes/oclchecker.py
ScribesZone/ModelScribes
a36be1047283f2e470dc2dd4353f2a714377bb7d
[ "MIT" ]
null
null
null
from typing import Optional, Text import re from modelscript.interfaces.environment import Environment from modelscript.base.issues import ( Levels, Issue, FatalError) from modelscript.base.grammars import ( ASTNodeSourceIssue) from modelscript.metamodels.classes import ( ClassModel) from modelscr...
31.20438
87
0.588304
2d46fea1f76eb8738d21d0c14eb1143912f50600
26,407
py
Python
nova/conductor/manager.py
windskyer/nova
df485344dfd0f9e927e51273a3aaa71d948f2980
[ "Apache-2.0" ]
null
null
null
nova/conductor/manager.py
windskyer/nova
df485344dfd0f9e927e51273a3aaa71d948f2980
[ "Apache-2.0" ]
null
null
null
nova/conductor/manager.py
windskyer/nova
df485344dfd0f9e927e51273a3aaa71d948f2980
[ "Apache-2.0" ]
null
null
null
# Copyright 2013 IBM Corp. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
48.992579
79
0.581058
2d470b9aab743ef3151fc15a07ddb3d823786ec2
58,328
py
Python
salt/client/__init__.py
jbq/pkg-salt
b6742e03cbbfb82f4ce7db2e21a3ff31b270cdb3
[ "Apache-2.0" ]
1
2020-09-16T21:31:02.000Z
2020-09-16T21:31:02.000Z
salt/client/__init__.py
jbq/pkg-salt
b6742e03cbbfb82f4ce7db2e21a3ff31b270cdb3
[ "Apache-2.0" ]
null
null
null
salt/client/__init__.py
jbq/pkg-salt
b6742e03cbbfb82f4ce7db2e21a3ff31b270cdb3
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' The client module is used to create a client connection to the publisher The data structure needs to be: {'enc': 'clear', 'load': {'fun': '<mod.callable>', 'arg':, ('arg1', 'arg2', ...), 'tgt': '<glob or id>', 'key': '<read in the key file>'...
35.806016
123
0.502074
2d4747d04103533bf79696baa3ffb07c8158cbe8
4,002
py
Python
VECO/NLG/fairseq/modules/transformer_sentence_encoder_layer.py
onlyrico/AliceMind
a6a070b1610e4c4bfe84ee6c4195b2bc4f725ded
[ "Apache-2.0" ]
28
2021-06-01T17:30:46.000Z
2022-03-10T09:41:52.000Z
fairseq/modules/transformer_sentence_encoder_layer.py
ayu1812/fairseq
a87cafda718c7706e6f1694f0d39fc589ed2b264
[ "MIT" ]
11
2021-06-07T11:01:51.000Z
2022-01-04T05:52:44.000Z
fairseq/modules/transformer_sentence_encoder_layer.py
ayu1812/fairseq
a87cafda718c7706e6f1694f0d39fc589ed2b264
[ "MIT" ]
6
2021-07-02T05:08:00.000Z
2022-01-19T13:31:34.000Z
# 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 typing import Optional import torch import torch.nn as nn import torch.nn.functional as F from fairseq import utils from fairseq.modules...
29.865672
80
0.614443
2d479fee7b58a7dcb680652304a0373b615d51b7
14,634
py
Python
conjur/api.py
conjurinc/api-python
32b32774c4f1ac475b2da1f6f3839e8654423b13
[ "Apache-2.0" ]
1
2018-05-31T17:29:30.000Z
2018-05-31T17:29:30.000Z
conjur/api.py
conjurinc/api-python
32b32774c4f1ac475b2da1f6f3839e8654423b13
[ "Apache-2.0" ]
8
2015-02-20T16:22:12.000Z
2019-04-25T23:57:43.000Z
conjur/api.py
conjurinc/api-python
32b32774c4f1ac475b2da1f6f3839e8654423b13
[ "Apache-2.0" ]
8
2015-02-28T06:56:15.000Z
2020-01-02T22:42:09.000Z
# # Copyright (C) 2014 Conjur Inc # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including without limitation the rights to # use, copy, modify, merge, publish, distri...
36.861461
111
0.638035
2d47b0ab43ac6fc4fc6ccf7f9fd6f305529bec5c
7,112
py
Python
mooringlicensing/components/main/api.py
thakurpriya1990/mooringlicensing
f7e6e301b9cbfc877b020de76fd3b4942ea14ef6
[ "Apache-2.0" ]
null
null
null
mooringlicensing/components/main/api.py
thakurpriya1990/mooringlicensing
f7e6e301b9cbfc877b020de76fd3b4942ea14ef6
[ "Apache-2.0" ]
null
null
null
mooringlicensing/components/main/api.py
thakurpriya1990/mooringlicensing
f7e6e301b9cbfc877b020de76fd3b4942ea14ef6
[ "Apache-2.0" ]
null
null
null
import traceback from django.http import Http404, HttpResponse, HttpResponseRedirect, JsonResponse from ledger.payments.utils import oracle_parser from django.conf import settings from django.db import transaction from wsgiref.util import FileWrapper from rest_framework import viewsets, serializers, status, generics, v...
39.731844
129
0.676744
2d47b2f8773a4b5168770f0f05e9b0564802b66d
688
py
Python
Blockwise_scramble.py
MADONOKOUKI/Block-wise-Scrambled-Image-Recognition
0b4606a244e19ca79cc518f9298662c3a4973aea
[ "MIT" ]
12
2020-05-07T11:12:59.000Z
2022-03-28T03:06:06.000Z
Blockwise_scramble.py
MADONOKOUKI/Block-wise-Scrambled-Image-Recognition
0b4606a244e19ca79cc518f9298662c3a4973aea
[ "MIT" ]
3
2020-06-01T12:46:30.000Z
2022-03-30T01:59:33.000Z
Blockwise_scramble.py
MADONOKOUKI/Block-wise-Scrambled-Image-Recognition
0b4606a244e19ca79cc518f9298662c3a4973aea
[ "MIT" ]
5
2020-05-07T11:13:29.000Z
2022-02-11T12:11:06.000Z
from learnable_encryption import BlockScramble import numpy as np def blockwise_scramble(imgs,key_size = 4): x_stack = None for k in range(8): tmp = None # x_stack = None for j in range(8): key_file = 'key4/'+str(k*8+j)+'_.pkl' bs = BlockScramble( key_file ) out = np.transpose(imgs,(0,...
29.913043
88
0.59157
2d47ca9cbb845e3cca0a011f272eec98eb8fc1de
7,927
py
Python
robust_kalman/robust_kalman.py
Seven-Tree/robust-kalman
15b039cbbc4d10055a581fdfafb41e9dfa1d6f6f
[ "MIT" ]
92
2018-02-07T17:07:24.000Z
2022-03-21T15:06:37.000Z
robust_kalman/robust_kalman.py
Seven-Tree/robust-kalman
15b039cbbc4d10055a581fdfafb41e9dfa1d6f6f
[ "MIT" ]
15
2015-03-07T12:46:41.000Z
2015-04-11T09:08:36.000Z
self_driving/deps/robust_kalman/robust_kalman/robust_kalman.py
zaqwes8811/micro-apps
7f63fdf613eff5d441a3c2c7b52d2a3d02d9736a
[ "MIT" ]
34
2018-01-01T19:16:07.000Z
2022-03-31T11:58:35.000Z
""" Robust Kalman filter implementation. Author: Milos Stojanovic (github: milsto) """ import numpy as np from scipy.optimize import minimize from .utils import HuberScore class RobustKalman(): """Robust Kalman filter for estimation immune to outliers. The implementation is based on rewriting classical lin...
43.081522
149
0.638325
2d47d06948652b6c936fbcb5a6ba4a8af4561d22
5,528
py
Python
FlaskApp/db/agent.py
schmocker/Pyjamas
52a72d6e8b915f77a2194d4e7d53c46d0ec28c17
[ "MIT" ]
2
2018-05-31T15:02:08.000Z
2018-07-11T11:02:44.000Z
FlaskApp/db/agent.py
schmocker/Pyjamas
52a72d6e8b915f77a2194d4e7d53c46d0ec28c17
[ "MIT" ]
null
null
null
FlaskApp/db/agent.py
schmocker/Pyjamas
52a72d6e8b915f77a2194d4e7d53c46d0ec28c17
[ "MIT" ]
null
null
null
from .db_main import db, controller from .model_used import Model_used from .connection import Connection from .model import Model import json class Agent(db.Model): id = db.Column(db.Integer, primary_key=True) name = db.Column(db.String(80), unique=True, nullable=False) def __init__(self, name): ...
29.248677
110
0.605825
2d47da8372afd3c6dc0fc7d8b458ec5bd128725f
5,766
py
Python
selfdrive/controls/lib/latcontrol_lqr.py
chanhojung777/OP_076_Conan
e531a2f105d10da172304042ab558adabe676490
[ "MIT" ]
2
2020-10-06T16:27:53.000Z
2021-07-02T03:23:02.000Z
selfdrive/controls/lib/latcontrol_lqr.py
chanhojung777/OP_076_Conan
e531a2f105d10da172304042ab558adabe676490
[ "MIT" ]
null
null
null
selfdrive/controls/lib/latcontrol_lqr.py
chanhojung777/OP_076_Conan
e531a2f105d10da172304042ab558adabe676490
[ "MIT" ]
null
null
null
import numpy as np import random import datetime from selfdrive.controls.lib.drive_helpers import get_steer_max from common.numpy_fast import clip from common.realtime import DT_CTRL from cereal import log from common.numpy_fast import interp from selfdrive.config import Conversions as CV import common.log as trace1 c...
36.264151
200
0.666667
2d47df874f12f9b5abb65a71d83abbcb5a9865d8
3,901
py
Python
jupytext/languages.py
fool65c/jupytext
4b55d2e6ccc995c04679de0863234c60c3741a69
[ "MIT" ]
null
null
null
jupytext/languages.py
fool65c/jupytext
4b55d2e6ccc995c04679de0863234c60c3741a69
[ "MIT" ]
null
null
null
jupytext/languages.py
fool65c/jupytext
4b55d2e6ccc995c04679de0863234c60c3741a69
[ "MIT" ]
null
null
null
"""Determine notebook or cell language""" _JUPYTER_LANGUAGES = ['R', 'bash', 'sh', 'python', 'python2', 'python3', 'javascript', 'js', 'perl', 'html', 'latex', 'markdown', 'pypy', 'ruby', 'script', 'svg', 'writefile', 'matlab', 'octave', 'idl'] _SCRIPT_EXTENSIONS = {'.py':...
41.5
100
0.528582
2d47e9f3c458902baf5d9134f80b7ee6d6628f9e
678
py
Python
scripts/plot_stale_dependencies.py
KyleKing/Dash-HelloWorld
b74c399197f0207dfe5dd9e3a1b453b97d4c66b0
[ "Unlicense" ]
16
2020-02-22T00:51:54.000Z
2022-03-03T21:45:51.000Z
scripts/plot_stale_dependencies.py
KyleKing/Dash-HelloWorld
b74c399197f0207dfe5dd9e3a1b453b97d4c66b0
[ "Unlicense" ]
29
2020-06-29T22:14:00.000Z
2022-03-22T02:10:00.000Z
scripts/plot_stale_dependencies.py
KyleKing/Dash-HelloWorld
b74c399197f0207dfe5dd9e3a1b453b97d4c66b0
[ "Unlicense" ]
1
2022-02-03T09:07:07.000Z
2022-02-03T09:07:07.000Z
"""Plot the release date of all dependencies.""" from pathlib import Path from typing import Any, Dict import pandas as pd import plotly.express as px from calcipy.doit_tasks.packaging import _PATH_PACK_LOCK, _read_cache path_pack_lock = Path.cwd().parent / 'calcipy' / _PATH_PACK_LOCK.name cache = _read_cache(path_p...
26.076923
69
0.724189
2d480c703ec3a09304035cd513faea337ba9a242
113,227
py
Python
MersProject/Mers.py
arpitbajaj98/MersProject
e26230ad748b164cbde6efd1165f8c0c1b456329
[ "Apache-2.0" ]
1
2020-01-17T02:37:34.000Z
2020-01-17T02:37:34.000Z
MersProject/Mers.py
nhcha6/MersProject
445ee9dfb0c60002a7f3317f90eaa0115d5c6484
[ "Apache-2.0" ]
null
null
null
MersProject/Mers.py
nhcha6/MersProject
445ee9dfb0c60002a7f3317f90eaa0115d5c6484
[ "Apache-2.0" ]
1
2020-01-17T02:19:26.000Z
2020-01-17T02:19:26.000Z
from Bio import SeqIO from Bio.Seq import Seq from Bio.SeqRecord import SeqRecord from TransPlaceholder import * import csv from MonoAminoAndMods import * import multiprocessing from multiprocessing import Queue from collections import Counter import time import sys # import h5py import json import logging from MGFMain...
52.130295
164
0.665124
2d4813faa32ae02a5a31905eee9b7a4c096ded76
28,383
py
Python
discretisedfield/tests/test_mesh.py
ubermag/discretisedfield
fec016c85fcc091006e678845bca999b993b987c
[ "BSD-3-Clause" ]
9
2019-08-30T14:00:43.000Z
2022-01-16T15:01:44.000Z
discretisedfield/tests/test_mesh.py
ubermag/discretisedfield
fec016c85fcc091006e678845bca999b993b987c
[ "BSD-3-Clause" ]
50
2019-06-13T13:41:57.000Z
2022-03-28T09:14:33.000Z
discretisedfield/tests/test_mesh.py
ubermag/discretisedfield
fec016c85fcc091006e678845bca999b993b987c
[ "BSD-3-Clause" ]
7
2019-08-28T14:16:10.000Z
2021-12-13T21:06:06.000Z
import os import re import types import pytest import numbers import tempfile import ipywidgets import numpy as np import discretisedfield as df import matplotlib.pyplot as plt def check_mesh(mesh): assert isinstance(mesh.region, df.Region) assert isinstance(mesh.cell, tuple) assert len(mesh.cell) == 3 ...
34.783088
79
0.49357
2d48221ce81ab2c9246fdc458ef3ee8fa7cccbb9
2,254
py
Python
smooth/examples/example_model_var_grid.py
LauWien/smooth
3d2ee96e3c2b2f9d5d805da1a920748f2dbbd538
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
5
2019-10-15T15:56:35.000Z
2021-02-04T10:11:31.000Z
smooth/examples/example_model_var_grid.py
LauWien/smooth
3d2ee96e3c2b2f9d5d805da1a920748f2dbbd538
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
121
2020-01-06T14:32:30.000Z
2021-09-23T11:26:11.000Z
smooth/examples/example_model_var_grid.py
LauWien/smooth
3d2ee96e3c2b2f9d5d805da1a920748f2dbbd538
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
6
2019-10-21T08:36:05.000Z
2021-03-26T10:37:17.000Z
""" DEFINE THE MODEL YOU WANT TO SIMULATE """ import os # Define where Python should look for csv files my_path = os.path.join(os.path.dirname(__file__), 'example_timeseries') """ Create busses """ # create hydrogen bus busses = ['bel'] """ Define components """ components = list() components.append({ 'compone...
27.487805
94
0.59228
2d482899473f8fbe401bfdbd0307b1b50cd7e3cb
46,160
py
Python
Florence/VariationalPrinciple/CoupleStressFormulation.py
jdlaubrie/florence
830dca4a34be00d6e53cbec3007c10d438b27f57
[ "MIT" ]
65
2017-08-04T10:21:13.000Z
2022-02-21T21:45:09.000Z
Florence/VariationalPrinciple/CoupleStressFormulation.py
jdlaubrie/florence
830dca4a34be00d6e53cbec3007c10d438b27f57
[ "MIT" ]
6
2018-06-03T02:29:20.000Z
2022-01-18T02:30:22.000Z
Florence/VariationalPrinciple/CoupleStressFormulation.py
jdlaubrie/florence
830dca4a34be00d6e53cbec3007c10d438b27f57
[ "MIT" ]
10
2018-05-30T09:44:10.000Z
2021-05-18T08:06:51.000Z
from copy import deepcopy import gc from numpy.linalg import det, inv, norm, cond from Florence import QuadratureRule, FunctionSpace from Florence.FiniteElements.LocalAssembly.KinematicMeasures import * from Florence.FiniteElements.LocalAssembly._KinematicMeasures_ import _KinematicMeasures_ from ._ConstitutiveStiffnes...
41.849501
146
0.625368
2d482f711287175339697d16d2d6ed8597c8bf61
754
py
Python
modelConfigs/ModelF.py
jesisca-tandi/video-actions-classification
c90aafc9d212982368565fc373ac7fd0ff08e1d6
[ "MIT" ]
null
null
null
modelConfigs/ModelF.py
jesisca-tandi/video-actions-classification
c90aafc9d212982368565fc373ac7fd0ff08e1d6
[ "MIT" ]
null
null
null
modelConfigs/ModelF.py
jesisca-tandi/video-actions-classification
c90aafc9d212982368565fc373ac7fd0ff08e1d6
[ "MIT" ]
null
null
null
from keras.models import Sequential, load_model from keras.layers import Dense, Dropout, Flatten, Conv1D, Conv2D, MaxPooling2D, Embedding, LSTM, TimeDistributed, Masking, Lambda, GRU, Bidirectional, LeakyReLU from keras.optimizers import Adam def createModel(modelName='ModelF'): opt = Adam(lr=0.005) model =...
39.684211
160
0.740053
2d4863f99117e998d65cda6e75ad431b1a68c3fe
4,547
py
Python
trainers/trainer_u_segnet.py
VVRud/u-segnet
d73579e5990505ef802f1be1d902127123df1963
[ "Apache-2.0" ]
8
2019-03-04T02:38:59.000Z
2022-03-31T04:03:08.000Z
trainers/trainer_u_segnet.py
VVRud/u-segnet
d73579e5990505ef802f1be1d902127123df1963
[ "Apache-2.0" ]
null
null
null
trainers/trainer_u_segnet.py
VVRud/u-segnet
d73579e5990505ef802f1be1d902127123df1963
[ "Apache-2.0" ]
1
2019-12-13T16:54:28.000Z
2019-12-13T16:54:28.000Z
from base.base_train import BaseTrain from tqdm import tqdm import tensorflow as tf from utils.metrics import AverageMeter class USegNetTrainer(BaseTrain): def __init__(self, sess, model, config, logger, data_loader): """ Constructing the U-SegNet trainer based on the Base Train.. Here i...
30.516779
107
0.578183
2d487ef33517417834a40b95750a6ea72026a0dc
2,410
py
Python
veros/backend.py
AkasDutta/veros
9f530596a0148a398829050017de3e01a71261a0
[ "MIT" ]
115
2019-11-23T02:31:30.000Z
2022-03-29T12:58:30.000Z
veros/backend.py
AkasDutta/veros
9f530596a0148a398829050017de3e01a71261a0
[ "MIT" ]
207
2019-11-21T13:21:22.000Z
2022-03-31T23:36:09.000Z
veros/backend.py
AkasDutta/veros
9f530596a0148a398829050017de3e01a71261a0
[ "MIT" ]
21
2020-01-28T13:13:39.000Z
2022-02-02T13:46:33.000Z
import warnings BACKENDS = ("numpy", "jax") BACKEND_MESSAGES = {"jax": "Kernels are compiled during first iteration, be patient"} _init_done = set() def init_jax_config(): if "jax" in _init_done: return import jax from veros import runtime_settings, runtime_state from veros.state import ( ...
29.390244
120
0.7
2d48a9ea23bf89d041e05f2f27dd5785901bb717
508
py
Python
synapse/tests/test_cells.py
larrycameron80/synapse
24bf21c40b4a467e5dc28c8204aecaf502d5cddf
[ "Apache-2.0" ]
null
null
null
synapse/tests/test_cells.py
larrycameron80/synapse
24bf21c40b4a467e5dc28c8204aecaf502d5cddf
[ "Apache-2.0" ]
null
null
null
synapse/tests/test_cells.py
larrycameron80/synapse
24bf21c40b4a467e5dc28c8204aecaf502d5cddf
[ "Apache-2.0" ]
null
null
null
import synapse.axon as s_axon import synapse.cells as s_cells import synapse.cryotank as s_cryotank from synapse.tests.common import * class CellTest(SynTest): def test_cell_cryo(self): with self.getTestDir() as dirn: with s_cells.cryo(dirn) as cryo: self.isinstance(cryo, s_cr...
28.222222
58
0.67126
2d48aa12ef1e2ee8606e347683dbdc984d327469
1,768
py
Python
advertorch/advertorch/context.py
sleepstagingrest/rest
cf0de7ae82b6b74fe23e9d057214970cd3c9672d
[ "MIT" ]
18
2020-02-03T07:14:40.000Z
2021-12-20T18:45:43.000Z
advertorch/advertorch/context.py
sleepstagingrest/rest
cf0de7ae82b6b74fe23e9d057214970cd3c9672d
[ "MIT" ]
11
2020-01-28T23:16:25.000Z
2022-02-10T01:04:56.000Z
advertorch/advertorch/context.py
sleepstagingrest/REST
cf0de7ae82b6b74fe23e9d057214970cd3c9672d
[ "MIT" ]
2
2020-08-20T08:15:09.000Z
2021-02-23T07:30:40.000Z
# Copyright (c) 2018-present, Royal Bank of Canada. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # from contextlib import contextmanager class ctx_noparamgrad(object): def __init__(self, module): self.prev...
24.901408
72
0.712104
2d48acaf03a8dab13b69d8c437d44ca64a893de5
132,813
py
Python
edb/pgsql/delta.py
aeros/edgedb
db8c240d1607765799caf124a4b418250e0c0a96
[ "Apache-2.0" ]
null
null
null
edb/pgsql/delta.py
aeros/edgedb
db8c240d1607765799caf124a4b418250e0c0a96
[ "Apache-2.0" ]
null
null
null
edb/pgsql/delta.py
aeros/edgedb
db8c240d1607765799caf124a4b418250e0c0a96
[ "Apache-2.0" ]
null
null
null
# # This source file is part of the EdgeDB open source project. # # Copyright 2008-present MagicStack Inc. and the EdgeDB 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...
36.051303
79
0.581193
2d48eae0fa70e511983d34fad05aa83b53322f2f
4,427
py
Python
ev3sim/objects/base.py
platy11/ev3sim
df8693523f630e9838b8f79f2b7017a86633d696
[ "BSD-3-Clause" ]
null
null
null
ev3sim/objects/base.py
platy11/ev3sim
df8693523f630e9838b8f79f2b7017a86633d696
[ "BSD-3-Clause" ]
null
null
null
ev3sim/objects/base.py
platy11/ev3sim
df8693523f630e9838b8f79f2b7017a86633d696
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import pymunk from typing import List from ev3sim.visual.objects import IVisualElement, visualFactory from ev3sim.simulation.world import stop_on_pause DYNAMIC_CATEGORY = 0b10 STATIC_CATEGORY = 0b100 class BaseObject: parent: 'BaseObject' _position: np.ndarray _rotation: float v...
35.134921
132
0.637452
2d4904a0d9a2e01a42d947007894b2ee60a7982e
4,192
py
Python
cbox/cli.py
shmuelamar/cbox
2d0cda5b3f61a55e530251430bf3d460dcd3732e
[ "MIT" ]
164
2017-08-31T05:52:11.000Z
2021-11-25T05:41:46.000Z
cbox/cli.py
shmuelamar/cbox
2d0cda5b3f61a55e530251430bf3d460dcd3732e
[ "MIT" ]
4
2017-11-27T16:08:46.000Z
2018-03-13T15:16:46.000Z
cbox/cli.py
shmuelamar/cbox
2d0cda5b3f61a55e530251430bf3d460dcd3732e
[ "MIT" ]
5
2017-09-19T06:12:32.000Z
2019-12-06T11:53:26.000Z
import sys from functools import wraps from sys import stdin, stdout, stderr from cbox import executors from . import concurrency, streams __all__ = ('stream', 'cmd', 'main', ) def stream(input_type='lines', output_type=None, worker_type='simple', max_workers=1, workers_window=100): """wrapper for pr...
34.360656
78
0.630248
2d4908de5410068b3056a3bc0721615b2d6211b2
3,821
py
Python
scripts/generate_sample_file_fromcghub.py
matanhofree/bcbio-nextgen
e6938cedb20ff3b7632165105941d71189e46aac
[ "MIT" ]
1
2015-04-08T17:43:39.000Z
2015-04-08T17:43:39.000Z
scripts/generate_sample_file_fromcghub.py
matanhofree/bcbio-nextgen
e6938cedb20ff3b7632165105941d71189e46aac
[ "MIT" ]
null
null
null
scripts/generate_sample_file_fromcghub.py
matanhofree/bcbio-nextgen
e6938cedb20ff3b7632165105941d71189e46aac
[ "MIT" ]
null
null
null
#!/usr/bin/env python -E """ A script to process CGHUB input to sample csv format. Chooses samples according to the following set of rules: 1. Latest version. 2. Normal is chosen to match on the assembly, and be closest in date to the tumor. 3. Normal tumor is preferred to blood. Usage: generate_sample_file_fromcg...
32.65812
198
0.540958
2d4920139d1f61732f801b80d1b4cdcaeed724d4
4,449
py
Python
tests/home_platform/test_utils.py
LuCeHe/home-platform
06f9370bfacecebd0c8623a3b8f0511532a9a1f0
[ "BSD-3-Clause" ]
1
2021-07-27T09:15:43.000Z
2021-07-27T09:15:43.000Z
tests/home_platform/test_utils.py
LuCeHe/home-platform
06f9370bfacecebd0c8623a3b8f0511532a9a1f0
[ "BSD-3-Clause" ]
null
null
null
tests/home_platform/test_utils.py
LuCeHe/home-platform
06f9370bfacecebd0c8623a3b8f0511532a9a1f0
[ "BSD-3-Clause" ]
1
2021-07-27T09:21:12.000Z
2021-07-27T09:21:12.000Z
# Copyright (c) 2017, IGLU consortium # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # - Redistributions of source code must retain the above copyright notice, # this list of conditions and...
37.386555
116
0.656327
2d492d2806469cc11b6e03f8f610a99d9683807d
35,272
py
Python
grispy/core.py
mchalela/GriSPy
be0e33d40960fc8a329efef331b4fce770b0c673
[ "MIT" ]
30
2019-10-02T14:34:16.000Z
2022-02-09T07:40:10.000Z
grispy/core.py
mchalela/GriSPy
be0e33d40960fc8a329efef331b4fce770b0c673
[ "MIT" ]
14
2019-09-19T23:02:12.000Z
2021-11-09T18:04:55.000Z
grispy/core.py
mchalela/GriSPy
be0e33d40960fc8a329efef331b4fce770b0c673
[ "MIT" ]
8
2020-10-25T14:55:36.000Z
2021-11-08T13:03:00.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # This file is part of the # GriSPy Project (https://github.com/mchalela/GriSPy). # Copyright (c) 2019, Martin Chalela # License: MIT # Full Text: https://github.com/mchalela/GriSPy/blob/master/LICENSE # ===============================================================...
38.974586
81
0.568411
2d493cb6b5cc42981c986b20460095ef9dbdb6c3
1,811
py
Python
oscar/lib/python2.7/site-packages/phonenumbers/data/region_MD.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/phonenumbers/data/region_MD.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/phonenumbers/data/region_MD.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
"""Auto-generated file, do not edit by hand. MD metadata""" from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata PHONE_METADATA_MD = PhoneMetadata(id='MD', country_code=373, international_prefix='00', general_desc=PhoneNumberDesc(national_number_pattern='[235-9]\\d{7}', possible_length=(8,)...
95.315789
168
0.701822
2d495a34121164b72c2b37f91ef9b0ab39a8e79d
9,842
py
Python
company/helpers.py
konradko/directory-api
e9cd05b1deaf575e94352c46ddbd1857d8119fda
[ "MIT" ]
1
2021-11-06T12:08:26.000Z
2021-11-06T12:08:26.000Z
company/helpers.py
konradko/directory-api
e9cd05b1deaf575e94352c46ddbd1857d8119fda
[ "MIT" ]
null
null
null
company/helpers.py
konradko/directory-api
e9cd05b1deaf575e94352c46ddbd1857d8119fda
[ "MIT" ]
null
null
null
import datetime from functools import partial from uuid import uuid4 import http import logging import os import re from urllib.parse import urljoin from directory_constants import choices import directory_components.helpers from directory_forms_api_client import actions from elasticsearch_dsl import Q from elasticsea...
31.544872
79
0.646617
2d4967c7ba0d0864f2fd801e7b9f77a5e8b02a95
5,648
py
Python
env/Lib/site-packages/vext/cmdline/__init__.py
Nitinsd96/Air-Pollution-Monitoring-System
4870223ce7b40b4ea465620a4c3d39cf617c6eff
[ "MIT" ]
null
null
null
env/Lib/site-packages/vext/cmdline/__init__.py
Nitinsd96/Air-Pollution-Monitoring-System
4870223ce7b40b4ea465620a4c3d39cf617c6eff
[ "MIT" ]
null
null
null
env/Lib/site-packages/vext/cmdline/__init__.py
Nitinsd96/Air-Pollution-Monitoring-System
4870223ce7b40b4ea465620a4c3d39cf617c6eff
[ "MIT" ]
null
null
null
from __future__ import print_function import os import re import sys from os.path import basename, join from vext import vext_pth from vext.conf import open_spec from vext.env import in_venv from vext.install import install_vexts, create_pth def requires_venv(f): def run(): if not in_venv(): ...
28.24
118
0.583569
2d49771ab756359712a3ee0b23649c231678f952
1,529
py
Python
tensorflow/contrib/framework/python/framework/__init__.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
848
2019-12-03T00:16:17.000Z
2022-03-31T22:53:17.000Z
tensorflow/contrib/framework/python/framework/__init__.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
656
2019-12-03T00:48:46.000Z
2022-03-31T18:41:54.000Z
tensorflow/contrib/framework/python/framework/__init__.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
506
2019-12-03T00:46:26.000Z
2022-03-30T10:34:56.000Z
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
47.78125
83
0.776324
2d4986fdf4721600cca1bc4d5a987d25ae231e2f
2,961
py
Python
examples/obsolete_legacy/devclient_example.py
dasec/ForTrace
b8187522a2c83fb661e5a1a5f403da8f40a31ead
[ "MIT" ]
1
2022-03-31T14:01:51.000Z
2022-03-31T14:01:51.000Z
examples/obsolete_legacy/devclient_example.py
dasec/ForTrace
b8187522a2c83fb661e5a1a5f403da8f40a31ead
[ "MIT" ]
null
null
null
examples/obsolete_legacy/devclient_example.py
dasec/ForTrace
b8187522a2c83fb661e5a1a5f403da8f40a31ead
[ "MIT" ]
1
2022-03-31T14:02:30.000Z
2022-03-31T14:02:30.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ This module contains an example on how to control the virtual device drivers via the DevControlClient. """ from __future__ import absolute_import from __future__ import print_function import logging import sys import time import subprocess from six.moves import input ...
28.747573
116
0.642688
2d499b26db0c5dd8f27f207f8f59cef5e20ad9c2
1,829
py
Python
test2/test_RewriteQuery.py
IreneZhou0129/PyLucene-assignment
70916f1c8451c5dce5c5205915b25f214ffed2e4
[ "Apache-2.0" ]
null
null
null
test2/test_RewriteQuery.py
IreneZhou0129/PyLucene-assignment
70916f1c8451c5dce5c5205915b25f214ffed2e4
[ "Apache-2.0" ]
null
null
null
test2/test_RewriteQuery.py
IreneZhou0129/PyLucene-assignment
70916f1c8451c5dce5c5205915b25f214ffed2e4
[ "Apache-2.0" ]
null
null
null
# ==================================================================== # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless re...
32.660714
80
0.635867
2d49c009ea07c0e0d35dd20df63d2fdf170f7519
61
py
Python
synapse/links/__init__.py
larrycameron80/synapse
24bf21c40b4a467e5dc28c8204aecaf502d5cddf
[ "Apache-2.0" ]
null
null
null
synapse/links/__init__.py
larrycameron80/synapse
24bf21c40b4a467e5dc28c8204aecaf502d5cddf
[ "Apache-2.0" ]
4
2017-10-03T21:50:40.000Z
2017-11-20T15:49:38.000Z
synapse/links/__init__.py
larrycameron80/synapse
24bf21c40b4a467e5dc28c8204aecaf502d5cddf
[ "Apache-2.0" ]
null
null
null
''' The package for the built in link protocol handlers. '''
15.25
52
0.704918
2d49d5eb9602a9731be6ee8bf2f424fd8bdb970d
3,932
py
Python
src/figures_for_paper_gen.py
anathnath/schrodinger
dc803f62f8b846e3c847e94bcd8be945f0cd937f
[ "MIT" ]
3
2021-01-03T05:00:04.000Z
2021-09-17T11:40:38.000Z
src/figures_for_paper_gen.py
anathnath/schrodinger
dc803f62f8b846e3c847e94bcd8be945f0cd937f
[ "MIT" ]
null
null
null
src/figures_for_paper_gen.py
anathnath/schrodinger
dc803f62f8b846e3c847e94bcd8be945f0cd937f
[ "MIT" ]
1
2021-02-14T14:08:30.000Z
2021-02-14T14:08:30.000Z
import numpy as np import matplotlib import matplotlib.pyplot as plt font = { 'family': 'Times New Roman', 'size': 8} matplotlib.rc('font', **font) def figsize(scale, nplots=1): fig_width_pt = 390.0 inches_per_pt = 1.0/72.27 golden_mean = (np.sqrt(5.0)-1.0)/2.0 fig...
31.206349
92
0.600458
2d4a1539a5b95ade4d4806114167d6d0f4adfc8f
21,383
py
Python
utils/tk_dynamic.py
sparkie3/MF_run_counter
e4b672fcdefbccf7bf82493c1f69a264e0bca54e
[ "MIT" ]
43
2020-10-04T12:00:09.000Z
2022-03-01T15:05:15.000Z
utils/tk_dynamic.py
sparkie3/MF_run_counter
e4b672fcdefbccf7bf82493c1f69a264e0bca54e
[ "MIT" ]
7
2020-10-02T15:16:07.000Z
2022-01-14T02:36:52.000Z
utils/tk_dynamic.py
oskros/MF_counter_releases
8a94fa8ad388d16eb516dd462e7dd716a7e80729
[ "MIT" ]
12
2020-09-30T22:58:41.000Z
2022-02-09T02:52:57.000Z
from init import * import os, sys import tkinter as tk from tkinter import ttk import webbrowser from functools import partial class Toplevel(tk.Toplevel): objects = [] def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.__class__.objects.append(self) @classmethod...
30.900289
120
0.58481
2d4a5fea6fb3e538f8540d45cfe9b3c744558f5b
863
py
Python
atom/nucleus/python/test/test_check_images.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
null
null
null
atom/nucleus/python/test/test_check_images.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
null
null
null
atom/nucleus/python/test/test_check_images.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Hydrogen Nucleus API The Hydrogen Nucleus API # noqa: E501 OpenAPI spec version: 1.9.5 Contact: info@hydrogenplatform.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import nucleus_api from nu...
21.04878
79
0.695249
2d4a64bc84ea8b9992965408121e15df6d35c453
5,610
py
Python
sdk/sql/azure-mgmt-sql/azure/mgmt/sql/aio/operations/_server_operations_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/sql/azure-mgmt-sql/azure/mgmt/sql/aio/operations/_server_operations_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/sql/azure-mgmt-sql/azure/mgmt/sql/aio/operations/_server_operations_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
45.241935
179
0.672549
2d4a9064f19ae900285804a0027ef5856fb8556d
32,034
py
Python
src/sage/algebras/lie_algebras/free_lie_algebra.py
saraedum/sage-renamed
d2da67b14da2ad766a5906425d60d43a3b3e1270
[ "BSL-1.0" ]
null
null
null
src/sage/algebras/lie_algebras/free_lie_algebra.py
saraedum/sage-renamed
d2da67b14da2ad766a5906425d60d43a3b3e1270
[ "BSL-1.0" ]
null
null
null
src/sage/algebras/lie_algebras/free_lie_algebra.py
saraedum/sage-renamed
d2da67b14da2ad766a5906425d60d43a3b3e1270
[ "BSL-1.0" ]
null
null
null
""" Free Lie Algebras AUTHORS: - Travis Scrimshaw (2013-05-03): Initial version REFERENCES: - [Bou1989]_ - [Reu2003]_ """ #***************************************************************************** # Copyright (C) 2013-2017 Travis Scrimshaw <tcscrims at gmail.com> # # This program is free software: you ca...
34.593952
110
0.496878
2d4a9d1366b637135369fa7f14b6eaa093fa1752
3,426
py
Python
bamboos/docker/environment/docker.py
xorver/oneprovider-ccm
ec30625a3ecb62e22b7ba5e0dd18d53668009bf9
[ "MIT" ]
null
null
null
bamboos/docker/environment/docker.py
xorver/oneprovider-ccm
ec30625a3ecb62e22b7ba5e0dd18d53668009bf9
[ "MIT" ]
null
null
null
bamboos/docker/environment/docker.py
xorver/oneprovider-ccm
ec30625a3ecb62e22b7ba5e0dd18d53668009bf9
[ "MIT" ]
null
null
null
import json import os import sys import subprocess # noinspection PyDefaultArgument def run(image, docker_host=None, detach=False, dns_list=[], envs={}, hostname=None, interactive=False, link={}, tty=False, rm=False, reflect=[], volumes=[], name=None, workdir=None, user=None, run_params=[], co...
24.126761
80
0.579393
2d4abf0b5fe77780711f2f0fd04ccd3063e9b44a
3,655
py
Python
qnarre/blog/autograph.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
qnarre/blog/autograph.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
qnarre/blog/autograph.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
# Copyright 2019 Quantapix Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
30.714286
79
0.569904
2d4b0d2e7725e87acc7cde5824366222a643a27e
129,072
py
Python
lib/googlecloudsdk/third_party/apis/genomics/v1/genomics_v1_messages.py
ianel20/google-cloud-sdk
36ed4e06ba3961d0a8fbf30a3eaabf7db6d4e9c3
[ "Apache-2.0" ]
null
null
null
lib/googlecloudsdk/third_party/apis/genomics/v1/genomics_v1_messages.py
ianel20/google-cloud-sdk
36ed4e06ba3961d0a8fbf30a3eaabf7db6d4e9c3
[ "Apache-2.0" ]
null
null
null
lib/googlecloudsdk/third_party/apis/genomics/v1/genomics_v1_messages.py
ianel20/google-cloud-sdk
36ed4e06ba3961d0a8fbf30a3eaabf7db6d4e9c3
[ "Apache-2.0" ]
1
2020-07-25T12:23:41.000Z
2020-07-25T12:23:41.000Z
"""Generated message classes for genomics version v1. Stores, processes, explores and shares genomic data. This API implements the Global Alliance for Genomics and Health (GA4GH) v0.5.1 API as well as several extensions. """ # NOTE: This file is autogenerated and should not be edited by hand. from googlecloudsdk.thir...
40.936251
92
0.735566
2d4b19b81a26a632e1a4c4cb0741674e6cdbb8b1
2,874
py
Python
pandocacro/__init__.py
kprussing/pandoc-acro
979a77fda087a6d90e11de61ed1e87c97c0a1193
[ "BSD-2-Clause" ]
3
2020-12-19T06:46:57.000Z
2022-01-06T13:01:56.000Z
pandocacro/__init__.py
kprussing/pandoc-acro
979a77fda087a6d90e11de61ed1e87c97c0a1193
[ "BSD-2-Clause" ]
6
2020-11-11T17:03:53.000Z
2021-04-17T05:44:12.000Z
pandocacro/__init__.py
kprussing/pandoc-acro
979a77fda087a6d90e11de61ed1e87c97c0a1193
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 __doc__ = r"""Translate acronyms in the Pandoc flavored Markdown to LaTeX's ``acro`` syntax or just do the replacement directly. Acronyms are defined in the ``acronyms`` map in the metadata and used in text with the key prepended by ``+`` or in a native_span. Each acronym must have a ``long`` a...
34.214286
80
0.655532
2d4b36037e023c7138b28852795efd7e73b67f78
14,151
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_virtual_machine_images_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_virtual_machine_images_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_virtual_machine_images_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
42.368263
221
0.675641
2d4b4f8324a068f8c0d488bcbff17fc0d24d4e4d
2,946
py
Python
tree/617_merge_two_binary_trees.py
shawlu95/Algorithm-Toolbox
b6c7b2228d8e70e0842e0bad607533a2c8322cf0
[ "MIT" ]
null
null
null
tree/617_merge_two_binary_trees.py
shawlu95/Algorithm-Toolbox
b6c7b2228d8e70e0842e0bad607533a2c8322cf0
[ "MIT" ]
null
null
null
tree/617_merge_two_binary_trees.py
shawlu95/Algorithm-Toolbox
b6c7b2228d8e70e0842e0bad607533a2c8322cf0
[ "MIT" ]
2
2020-02-07T20:49:02.000Z
2020-02-11T06:01:55.000Z
import Tree root_1 = Tree.Tree([1,3,2,5]).root root_2 = Tree.Tree([2,1,3,None,4,None,7]).root class Solution(object): def mergeTrees(self, t1, t2): """ :type t1: TreeNode :type t2: TreeNode :rtype: TreeNode """ if not t1 and not t2: return None if...
25.617391
83
0.45723
2d4b665f42bb27071f4ecba344057eca2b3502ed
19,709
py
Python
domainbed/scripts/train_prototype.py
abhimanyudubey/DomainBed
5c8373e40a04035081937b0fa3eb4fa5339dae32
[ "MIT" ]
6
2021-08-05T11:50:34.000Z
2022-02-28T15:29:09.000Z
domainbed/scripts/train_prototype.py
abhimanyudubey/DomainBed
5c8373e40a04035081937b0fa3eb4fa5339dae32
[ "MIT" ]
null
null
null
domainbed/scripts/train_prototype.py
abhimanyudubey/DomainBed
5c8373e40a04035081937b0fa3eb4fa5339dae32
[ "MIT" ]
1
2021-09-30T12:25:07.000Z
2021-09-30T12:25:07.000Z
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import argparse import collections import json import math import os import sys from os.path import dirname up1 = dirname(dirname(__file__)) sys.path.insert(0, up1) import random import time import numpy as np import torc...
32.204248
88
0.590339
2d4b6a4101edb4103bc69d5349c6d610836795a5
2,466
py
Python
test/test_webhooks.py
mikiec84/gaffer
8c5d5b5e2ff3fcb1f7cc7c8fbfc623f97dd0da8d
[ "MIT", "Unlicense" ]
null
null
null
test/test_webhooks.py
mikiec84/gaffer
8c5d5b5e2ff3fcb1f7cc7c8fbfc623f97dd0da8d
[ "MIT", "Unlicense" ]
null
null
null
test/test_webhooks.py
mikiec84/gaffer
8c5d5b5e2ff3fcb1f7cc7c8fbfc623f97dd0da8d
[ "MIT", "Unlicense" ]
1
2018-10-28T00:59:17.000Z
2018-10-28T00:59:17.000Z
# -*- coding: utf-8 - # # This file is part of gaffer. See the NOTICE for more information. import os import json import time # patch tornado IOLoop from gaffer.tornado_pyuv import IOLoop, install install() import pyuv from tornado.web import Application, RequestHandler from tornado.httpserver import HTTPServer from ...
27.4
68
0.651663
2d4b83ddcae2d342cd1b49301fed42980f7cafea
5,277
py
Python
download/local_download.py
andrewdyates/geo_api
3c60afcdeab8af472e0c03587ee52c39101bfcef
[ "Unlicense" ]
1
2020-04-29T18:55:56.000Z
2020-04-29T18:55:56.000Z
download/local_download.py
andrewdyates/geo_api
3c60afcdeab8af472e0c03587ee52c39101bfcef
[ "Unlicense" ]
null
null
null
download/local_download.py
andrewdyates/geo_api
3c60afcdeab8af472e0c03587ee52c39101bfcef
[ "Unlicense" ]
null
null
null
#!/usr/bin/python # # Copyright 2012 Andrew D. Yates # """Library and platform independent HTTP/FTP handles. LocalDownload: download to PC using ordinary HTTP calls and disk writes. Notes: The gzip file handle cannot directly accept an http "file handle" without raising an exception like: File "/Library/Framework...
28.679348
100
0.653591
2d4bbcccf6d3dbaabf18494d0fd1d0f758ab28b6
70,099
py
Python
distributed/dashboard/components/scheduler.py
marco-neumann-jdas/distributed
86b5743ae1be52c80ebe440f5b58e8529fe2817e
[ "BSD-3-Clause" ]
null
null
null
distributed/dashboard/components/scheduler.py
marco-neumann-jdas/distributed
86b5743ae1be52c80ebe440f5b58e8529fe2817e
[ "BSD-3-Clause" ]
null
null
null
distributed/dashboard/components/scheduler.py
marco-neumann-jdas/distributed
86b5743ae1be52c80ebe440f5b58e8529fe2817e
[ "BSD-3-Clause" ]
null
null
null
from collections import defaultdict import logging import math from numbers import Number import operator import os from bokeh.layouts import column, row from bokeh.models import ( ColumnDataSource, ColorBar, DataRange1d, HoverTool, ResetTool, PanTool, WheelZoomTool, TapTool, OpenUR...
32.619358
104
0.517112
2d4c03b145b9d46a093e442d391cd5c87b257120
17,564
py
Python
ocs_ci/ocs/cluster_load.py
nbalacha/ocs-ci
9c5a5474d62777e868b80894d6b0f3567a7b605d
[ "MIT" ]
null
null
null
ocs_ci/ocs/cluster_load.py
nbalacha/ocs-ci
9c5a5474d62777e868b80894d6b0f3567a7b605d
[ "MIT" ]
null
null
null
ocs_ci/ocs/cluster_load.py
nbalacha/ocs-ci
9c5a5474d62777e868b80894d6b0f3567a7b605d
[ "MIT" ]
null
null
null
""" A module for cluster load related functionalities """ import logging import time from datetime import datetime from uuid import uuid4 import math from range_key_dict import RangeKeyDict from yaml.scanner import ScannerError from ocs_ci.utility.retry import retry from ocs_ci.utility.prometheus import PrometheusAP...
37.29087
94
0.575097
2d4c13ebd44c281ac5ec1fe8c9a72ea22b5dcc30
2,165
py
Python
leaflet/utils.py
montebond/pyp
9a0356f8ade44fd813e03d54f5b934336c6b6656
[ "BSD-3-Clause" ]
null
null
null
leaflet/utils.py
montebond/pyp
9a0356f8ade44fd813e03d54f5b934336c6b6656
[ "BSD-3-Clause" ]
null
null
null
leaflet/utils.py
montebond/pyp
9a0356f8ade44fd813e03d54f5b934336c6b6656
[ "BSD-3-Clause" ]
null
null
null
from collections import Sequence from django.utils.functional import Promise class memoized_lazy_function(Promise): """ Represents a lazy value which is calculated by calling func(*args, **kwargs) and then is memoized. >>> f = memoized_lazy_function(lambda a: print('.') or a, 'hello') >>> f() ...
23.791209
70
0.6194
2d4c3ba2f2f7829d0a15473d08391dbc05db7f23
6,445
py
Python
endpoints/api/robot_models_pre_oci.py
jakedt/quay
424c1a19d744be444ed27aa1718fd74af311d863
[ "Apache-2.0" ]
1
2020-10-16T19:30:41.000Z
2020-10-16T19:30:41.000Z
endpoints/api/robot_models_pre_oci.py
jakedt/quay
424c1a19d744be444ed27aa1718fd74af311d863
[ "Apache-2.0" ]
15
2020-06-18T15:32:06.000Z
2022-03-03T23:06:24.000Z
endpoints/api/robot_models_pre_oci.py
jakedt/quay
424c1a19d744be444ed27aa1718fd74af311d863
[ "Apache-2.0" ]
null
null
null
import features from app import avatar from data import model from data.database import ( User, FederatedLogin, RobotAccountToken, Team as TeamTable, Repository, RobotAccountMetadata, ) from endpoints.api.robot_models_interface import ( RobotInterface, Robot, RobotWithPermissions, ...
35.218579
100
0.576881
2d4c3f2c448df972b7ae1c58430ab8e75f132810
7,569
py
Python
jax_cosmo/probes.py
austinpeel/jax_cosmo
39404b339580ea671f3afebeedd44ca19a363c90
[ "MIT" ]
null
null
null
jax_cosmo/probes.py
austinpeel/jax_cosmo
39404b339580ea671f3afebeedd44ca19a363c90
[ "MIT" ]
null
null
null
jax_cosmo/probes.py
austinpeel/jax_cosmo
39404b339580ea671f3afebeedd44ca19a363c90
[ "MIT" ]
null
null
null
# This module defines kernel functions for various tracers from __future__ import absolute_import from __future__ import division from __future__ import print_function import jax.numpy as np from jax import jit from jax import vmap from jax.tree_util import register_pytree_node_class import jax_cosmo.background as bk...
30.893878
86
0.611177
2d4c66418c5ac3f4ec9cbba029719a1c5fe6ec58
1,584
py
Python
widgets.py
ashmoreinc/Soundboard
4810eaeb92ebeaa887f5e8bc0c44909cccd21137
[ "MIT" ]
1
2018-11-05T22:15:42.000Z
2018-11-05T22:15:42.000Z
widgets.py
ashmoreinc/Soundboard
4810eaeb92ebeaa887f5e8bc0c44909cccd21137
[ "MIT" ]
null
null
null
widgets.py
ashmoreinc/Soundboard
4810eaeb92ebeaa887f5e8bc0c44909cccd21137
[ "MIT" ]
null
null
null
import tkinter as tk import threading class GetInput: """Creates a new window to get the input from a question answer is saved to Data attribute""" def __init__ (self, parent, title=None, question=None, font=None): top = self.top = tk.Toplevel(parent) if title: top.title(s...
31.058824
107
0.544823
2d4ca79cc7bd096aab68beb4a258866dd316a5e9
12,654
py
Python
src/worldweatheronlineapi.py
Vistaus/my-weather-indicator
32aaa77a14cf2f85edbfb72c45d154e1676abe83
[ "MIT" ]
null
null
null
src/worldweatheronlineapi.py
Vistaus/my-weather-indicator
32aaa77a14cf2f85edbfb72c45d154e1676abe83
[ "MIT" ]
null
null
null
src/worldweatheronlineapi.py
Vistaus/my-weather-indicator
32aaa77a14cf2f85edbfb72c45d154e1676abe83
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # A library for accessing to gunderground api # # Copyright (C) 2012 Lorenzo Carbonell # lorenzo.carbonell.cerezo@gmail.com # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # t...
44.090592
79
0.564327
2d4cc329e516ea8c6a683de8ca1498fce67034b0
987
py
Python
test/test_uusisuomi.py
joniok/hybra-medialoader
ebc6df58287b5146917d66de69d807309cea4a8f
[ "MIT" ]
null
null
null
test/test_uusisuomi.py
joniok/hybra-medialoader
ebc6df58287b5146917d66de69d807309cea4a8f
[ "MIT" ]
14
2016-10-14T15:09:42.000Z
2017-03-01T14:29:29.000Z
test/test_uusisuomi.py
joniok/hybra-medialoader
ebc6df58287b5146917d66de69d807309cea4a8f
[ "MIT" ]
1
2020-11-18T13:06:48.000Z
2020-11-18T13:06:48.000Z
import sys import os import filecmp import importlib import datetime import common path = os.path.abspath('.') sys.path.append(path) domain = 'uusisuomi' url = 'https://www.uusisuomi.fi/kotimaa/203792-nainen-kuoli-bakteeritartuntaan-sairaalahoidon-jalkeen-poliisi-tutkii' out = 'test/parser_out.txt' module = importli...
24.073171
117
0.739615
2d4cfab57d94f4211367a675a4ba64b0b773de60
877
py
Python
tests/test_docs/test_agent_vs_aea/__init__.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
28
2021-10-31T18:54:14.000Z
2022-03-17T13:10:43.000Z
tests/test_docs/test_agent_vs_aea/__init__.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
66
2021-10-31T11:55:48.000Z
2022-03-31T06:26:23.000Z
tests/test_docs/test_agent_vs_aea/__init__.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Copyright 2022 Valory AG # Copyright 2018-2020 Fetch.AI Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # ...
41.761905
80
0.588369
2d4d0073026ade05d2635894d72104c030558b15
51,714
py
Python
twink/ofp5/parse.py
hkwi/twink
9f79be401a0ffddf8752f9e95b6cd6070a344ef7
[ "Apache-2.0" ]
11
2015-04-24T10:21:34.000Z
2022-01-28T08:37:02.000Z
twink/ofp5/parse.py
hkwi/twink
9f79be401a0ffddf8752f9e95b6cd6070a344ef7
[ "Apache-2.0" ]
2
2015-06-03T04:30:50.000Z
2015-06-05T02:12:00.000Z
twink/ofp5/parse.py
hkwi/twink
9f79be401a0ffddf8752f9e95b6cd6070a344ef7
[ "Apache-2.0" ]
6
2015-04-08T18:57:20.000Z
2022-01-28T08:37:01.000Z
from __future__ import absolute_import import struct from collections import namedtuple from . import * _len = len _type = type def _align(length): return (length+7)//8*8 class _pos(object): offset = 0 def _cursor(offset): if isinstance(offset, _pos): return offset elif isinstance(offset, int...
34.430093
121
0.748173
2d4d10f3764ff7a816f35b4fa96c87b70988246b
622
py
Python
atlas/prodtask/management/commands/extendopenended.py
PanDAWMS/panda-bigmon-atlas
a3688b9ed722a15c0469c8bee84cc9a417670608
[ "Apache-2.0" ]
null
null
null
atlas/prodtask/management/commands/extendopenended.py
PanDAWMS/panda-bigmon-atlas
a3688b9ed722a15c0469c8bee84cc9a417670608
[ "Apache-2.0" ]
15
2015-01-06T13:41:52.000Z
2022-03-30T10:37:25.000Z
atlas/prodtask/management/commands/extendopenended.py
PanDAWMS/panda-bigmon-atlas
a3688b9ed722a15c0469c8bee84cc9a417670608
[ "Apache-2.0" ]
1
2017-07-20T08:01:24.000Z
2017-07-20T08:01:24.000Z
from django.core.management.base import BaseCommand, CommandError import time from atlas.prodtask.open_ended import check_open_ended class Command(BaseCommand): args = '<request_id, request_id>' help = 'Extend open ended requests' def handle(self, *args, **options): self.stdout.write('Start open ...
36.588235
85
0.665595
2d4d232affdf79d69412a145f267d56f48c25183
451
py
Python
rbc/tests/test_libcudart_ctypes.py
krunalkharat/rbc
f3a4665bde03d2cef6521dcea030f22236435f79
[ "BSD-3-Clause" ]
null
null
null
rbc/tests/test_libcudart_ctypes.py
krunalkharat/rbc
f3a4665bde03d2cef6521dcea030f22236435f79
[ "BSD-3-Clause" ]
null
null
null
rbc/tests/test_libcudart_ctypes.py
krunalkharat/rbc
f3a4665bde03d2cef6521dcea030f22236435f79
[ "BSD-3-Clause" ]
null
null
null
import pytest cudart = pytest.importorskip('rbc.libcudart_ctypes') driver_version = cudart.get_cuda_versions()[0] if driver_version == 0: pytest.importorskip('rbc.libcudart_ctypes_NODRIVER', reason='CUDA driver not installed') def test_get_device_count(): assert cudart.get_device_co...
23.736842
59
0.722838
2d4d3382ac01036d8847fab23647550ac593e27b
5,414
py
Python
adrenaline/snaps_adrenaline/playbooks/consts.py
anniyanvr/snaps-kubernetes
6114d15fdb476a2235cd73bd9118072c698ba045
[ "Apache-2.0" ]
null
null
null
adrenaline/snaps_adrenaline/playbooks/consts.py
anniyanvr/snaps-kubernetes
6114d15fdb476a2235cd73bd9118072c698ba045
[ "Apache-2.0" ]
null
null
null
adrenaline/snaps_adrenaline/playbooks/consts.py
anniyanvr/snaps-kubernetes
6114d15fdb476a2235cd73bd9118072c698ba045
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 ARICENT HOLDINGS LUXEMBOURG SARL and Cable Television # Laboratories, 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 # #...
44.743802
152
0.804581
2d4d4d5192dfea4573c16992809c0d784171969f
2,410
py
Python
aea/helpers/file_lock.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
aea/helpers/file_lock.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
aea/helpers/file_lock.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Copyright 2022 Valory AG # Copyright 2018-2021 Fetch.AI Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance...
35.970149
87
0.629046
2d4d61f014965dba38e08b64c7ff2e7acf97a383
9,637
py
Python
master/rabbitvcs-master/rabbitvcs-master/rabbitvcs/util/log.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
4
2018-09-07T15:35:24.000Z
2019-03-27T09:48:12.000Z
master/rabbitvcs-master/rabbitvcs-master/rabbitvcs/util/log.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
371
2020-03-04T21:51:56.000Z
2022-03-31T20:59:11.000Z
master/rabbitvcs-master/rabbitvcs-master/rabbitvcs/util/log.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
3
2019-06-18T19:57:17.000Z
2020-11-06T03:55:08.000Z
# # This is an extension to the Nautilus file manager to allow better # integration with the Subversion source control system. # # Copyright (C) 2006-2008 by Jason Field <jason@jasonfield.com> # Copyright (C) 2007-2008 by Bruce van der Kooij <brucevdkooij@gmail.com> # Copyright (C) 2008-2010 by Adam Plumb <adamplumb@...
29.027108
90
0.62011
2d4d7420c19bfde6fed8057e4ca9da74e2406565
230
py
Python
glob_glob_extract.py
DongChengdongHangZhou/spectrumGAN-entropy-loss
3a9cad2cffa75c041fc13cd78831be62083f40f4
[ "BSD-3-Clause" ]
null
null
null
glob_glob_extract.py
DongChengdongHangZhou/spectrumGAN-entropy-loss
3a9cad2cffa75c041fc13cd78831be62083f40f4
[ "BSD-3-Clause" ]
null
null
null
glob_glob_extract.py
DongChengdongHangZhou/spectrumGAN-entropy-loss
3a9cad2cffa75c041fc13cd78831be62083f40f4
[ "BSD-3-Clause" ]
null
null
null
import glob import shutil dir_list = glob.glob('./images/*fake_B.tiff') for i in range(7400): src_dir = dir_list[i] dst_dir = './extract/' + dir_list[i][9::] print(i) shutil.move(src_dir,dst_dir)
16.428571
46
0.604348
2d4dc33400b0c51c1d4f30a183309c5ca58d46b9
5,490
py
Python
sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2020_10_31/operations/_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2020_10_31/operations/_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2020_10_31/operations/_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
40.072993
133
0.663934
2d4dc3ea86c018553c505f233410f640e3d99c0d
18,400
py
Python
oscar/lib/python2.7/site-packages/django/utils/feedgenerator.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/django/utils/feedgenerator.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/django/utils/feedgenerator.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
""" Syndication feed generation library -- used for generating RSS, etc. Sample usage: >>> from django.utils import feedgenerator >>> feed = feedgenerator.Rss201rev2Feed( ... title="Poynter E-Media Tidbits", ... link="http://www.poynter.org/column.asp?id=31", ... description="A group Weblog by th...
39.913232
108
0.594022
2d4dcb04f5a8b099659ee723c3a994ebee9cce98
1,795
py
Python
human_body_prior/train/vposer_single_trainer.py
jiyeonkim127/PSI
5c525d5304fb756c9314ea3e225bbb180e521b9a
[ "Xnet", "X11" ]
138
2020-04-18T19:32:12.000Z
2022-03-31T06:58:33.000Z
human_body_prior/train/vposer_single_trainer.py
sanweiliti/Generating_Person_Scene_Interactions
0cf72576b1f31d80be43b057b81df42190a3c72b
[ "MIT" ]
19
2020-04-21T18:24:20.000Z
2022-03-12T00:25:11.000Z
human_body_prior/train/vposer_single_trainer.py
sanweiliti/Generating_Person_Scene_Interactions
0cf72576b1f31d80be43b057b81df42190a3c72b
[ "MIT" ]
19
2020-04-22T01:32:25.000Z
2022-03-24T02:52:01.000Z
# -*- coding: utf-8 -*- # # Copyright (C) 2019 Max-Planck-Gesellschaft zur Förderung der Wissenschaften e.V. (MPG), # acting on behalf of its Max Planck Institute for Intelligent Systems and the # Max Planck Institute for Biological Cybernetics. All rights reserved. # # Max-Planck-Gesellschaft zur Förderung der Wissens...
41.744186
115
0.749861
2d4ddb36bc4fa18cda4ca9680a825061f24cc8fd
13,290
py
Python
lib/googlecloudsdk/third_party/apis/autoscaler/v1beta2/autoscaler_v1beta2_client.py
ianel20/google-cloud-sdk
36ed4e06ba3961d0a8fbf30a3eaabf7db6d4e9c3
[ "Apache-2.0" ]
null
null
null
lib/googlecloudsdk/third_party/apis/autoscaler/v1beta2/autoscaler_v1beta2_client.py
ianel20/google-cloud-sdk
36ed4e06ba3961d0a8fbf30a3eaabf7db6d4e9c3
[ "Apache-2.0" ]
null
null
null
lib/googlecloudsdk/third_party/apis/autoscaler/v1beta2/autoscaler_v1beta2_client.py
ianel20/google-cloud-sdk
36ed4e06ba3961d0a8fbf30a3eaabf7db6d4e9c3
[ "Apache-2.0" ]
1
2020-07-25T12:23:41.000Z
2020-07-25T12:23:41.000Z
"""Generated client library for autoscaler version v1beta2.""" # NOTE: This file is autogenerated and should not be edited by hand. from googlecloudsdk.third_party.apitools.base.py import base_api from googlecloudsdk.third_party.apis.autoscaler.v1beta2 import autoscaler_v1beta2_messages as messages class AutoscalerV1...
40.518293
109
0.642212
2d4e02c8d6a762740f3431eba70f98ac855cb450
292,978
py
Python
mindspore/ops/operations/array_ops.py
LaiYongqiang/mindspore
1b7a38ccd86b55af50a0ea55c7f2f43813ed3e0e
[ "Apache-2.0" ]
1
2021-11-19T14:21:45.000Z
2021-11-19T14:21:45.000Z
mindspore/ops/operations/array_ops.py
LaiYongqiang/mindspore
1b7a38ccd86b55af50a0ea55c7f2f43813ed3e0e
[ "Apache-2.0" ]
null
null
null
mindspore/ops/operations/array_ops.py
LaiYongqiang/mindspore
1b7a38ccd86b55af50a0ea55c7f2f43813ed3e0e
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # Copyright 2020-2021 Huawei Technologies Co., Ltd # # 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...
42.82678
120
0.584228
2d4e124a76d3dc95da2a444dd4394fee22c15444
5,538
py
Python
sfp/binning.py
billbrod/spatial-frequency-preferences
4a83fe209bbbf8130f297bcc6e17cb79b36006c2
[ "MIT" ]
3
2020-12-17T14:28:17.000Z
2022-03-13T20:17:14.000Z
sfp/binning.py
billbrod/spatial-frequency-preferences
4a83fe209bbbf8130f297bcc6e17cb79b36006c2
[ "MIT" ]
null
null
null
sfp/binning.py
billbrod/spatial-frequency-preferences
4a83fe209bbbf8130f297bcc6e17cb79b36006c2
[ "MIT" ]
null
null
null
#!/usr/bin/python """bins first level results dataframe to reduce the data size """ import pandas as pd import numpy as np import argparse def _bin_eccen(eccens): eccen_min = int(np.floor(eccens.min())) eccen_max = int(np.ceil(eccens.max())) return pd.cut(eccens, range(eccen_min, eccen_max+1), ...
48.156522
99
0.646804
2d4e3e1ed9f6d6fa86ff2cc8a2265166e23f7c86
1,092
py
Python
examples/turbulent_condensate_error_profile/plot.py
chrisjbillington/parpde
4f882cbbb9ad6c57814e4422e9ba063fa27886a0
[ "BSD-2-Clause" ]
null
null
null
examples/turbulent_condensate_error_profile/plot.py
chrisjbillington/parpde
4f882cbbb9ad6c57814e4422e9ba063fa27886a0
[ "BSD-2-Clause" ]
null
null
null
examples/turbulent_condensate_error_profile/plot.py
chrisjbillington/parpde
4f882cbbb9ad6c57814e4422e9ba063fa27886a0
[ "BSD-2-Clause" ]
null
null
null
# To be run as a single process, not with MPI: # python plot.py from __future__ import division, print_function import sys sys.path.insert(0, '../..') # The location of the modules we need to import import os import numpy as np import matplotlib matplotlib.use('Agg') import matplotlib.image pi = np.pi from parPDE...
26.634146
76
0.641026
2d4e3f822e3035549fd3bb47670b49a4b9f90759
12,711
py
Python
train_procgen/train_test_ensemble.py
MandiZhao/train-procgen
2c3e1d34aaeab7598cf859e0f9137552a3ce27cb
[ "MIT" ]
null
null
null
train_procgen/train_test_ensemble.py
MandiZhao/train-procgen
2c3e1d34aaeab7598cf859e0f9137552a3ce27cb
[ "MIT" ]
null
null
null
train_procgen/train_test_ensemble.py
MandiZhao/train-procgen
2c3e1d34aaeab7598cf859e0f9137552a3ce27cb
[ "MIT" ]
null
null
null
""" Train OR test an ensemble agent $ taskset -c 0-7 python train_procgen/train_recenter.py -id 7 --num_levels 25 """ import os from os.path import join import json import tensorflow as tf # from baselines.ppo2 import ppo2 import ensemble_ppo from train_procgen.ensemble_ppo import Model, Runner, EnsembleCnnPolicy from...
39.110769
134
0.663126
2d4e50698d5622bd9978aef21554203f51b432ba
738
py
Python
souvenirs/tests/factories.py
appsembler/django-souvenirs
57f70df7d662e5ad0a376723b579cc911bc96585
[ "MIT" ]
10
2017-03-27T21:53:03.000Z
2022-02-15T15:37:36.000Z
souvenirs/tests/factories.py
appsembler/django-souvenirs
57f70df7d662e5ad0a376723b579cc911bc96585
[ "MIT" ]
1
2017-04-03T21:46:04.000Z
2017-04-03T21:46:04.000Z
souvenirs/tests/factories.py
appsembler/django-souvenirs
57f70df7d662e5ad0a376723b579cc911bc96585
[ "MIT" ]
2
2017-04-03T21:43:01.000Z
2019-04-02T13:23:25.000Z
from __future__ import absolute_import, unicode_literals from django.contrib.auth import get_user_model from django.utils import timezone import factory from factory.django import DjangoModelFactory from souvenirs.models import Souvenir class UserFactory(DjangoModelFactory): class Meta: model = get_user_...
26.357143
75
0.737127
2d4e52764f6d4a7dd2d915aaa2679663c5e61a45
3,232
py
Python
tests/test_general.py
greshilov/pysegmenttree
2ca987f0a03da6777f779ec0d15052b512ef3b1c
[ "MIT" ]
1
2022-01-10T06:09:30.000Z
2022-01-10T06:09:30.000Z
tests/test_general.py
greshilov/pysegmenttree
2ca987f0a03da6777f779ec0d15052b512ef3b1c
[ "MIT" ]
5
2021-11-13T12:58:26.000Z
2021-11-28T00:18:36.000Z
tests/test_general.py
greshilov/pysegmenttree
2ca987f0a03da6777f779ec0d15052b512ef3b1c
[ "MIT" ]
null
null
null
import random from typing import List, Union import pytest from pysegmenttree import PySegmentTree, QueryFunction, stree from pysegmenttree._abc import T from pysegmenttree.c_extensions import FloatSegmentTree, IntSegmentTree from pysegmenttree.test_utils import VerifySegmentTree CLASSES = [PySegmentTree, IntSegment...
30.205607
88
0.67729
2d4e76f5fc1b33769b06934c33b648069676e684
22,400
py
Python
reference_ANN_tropics_Wheeler_kiladis_1_year.py
GunnarBehrens/CBRAIN-CAM
1b59b5b4731ada7c077c181b543339412d25e5c3
[ "MIT" ]
null
null
null
reference_ANN_tropics_Wheeler_kiladis_1_year.py
GunnarBehrens/CBRAIN-CAM
1b59b5b4731ada7c077c181b543339412d25e5c3
[ "MIT" ]
null
null
null
reference_ANN_tropics_Wheeler_kiladis_1_year.py
GunnarBehrens/CBRAIN-CAM
1b59b5b4731ada7c077c181b543339412d25e5c3
[ "MIT" ]
null
null
null
""" This script computes the Wheeler-Kiladis diagram based on 1 year of OLR predictions of reference ANN (Rasp et al.,2018) and SP data """ from tensorflow.keras.layers import Lambda, Input, Dense from cbrain.layers import * from tensorflow.keras.models import Model, load_model from tensorflow.keras.losses import mse,...
37.901861
306
0.648571
2d4e80e38bdea5cde7575e3ad00e2b99ee874042
7,097
py
Python
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2021_12_01_preview/_container_registry_management_client.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2021_12_01_preview/_container_registry_management_client.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2021_12_01_preview/_container_registry_management_client.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
53.360902
286
0.748908
2d4e820a98c9c4c5597cba3db6d0db34a6a3041c
167
py
Python
deep_compression/zoo/__init__.py
YodaEmbedding/deep-compression
cc1ea691921fbe2e5cffeb30a02b777dadd08700
[ "MIT" ]
null
null
null
deep_compression/zoo/__init__.py
YodaEmbedding/deep-compression
cc1ea691921fbe2e5cffeb30a02b777dadd08700
[ "MIT" ]
null
null
null
deep_compression/zoo/__init__.py
YodaEmbedding/deep-compression
cc1ea691921fbe2e5cffeb30a02b777dadd08700
[ "MIT" ]
null
null
null
import compressai.zoo from .models import setup_models setup_models() models = compressai.zoo.models model_architectures = compressai.zoo.image.model_architectures
18.555556
62
0.838323
2d4e8696fa2a675d8e7571e03f99ef5060081aaa
7,227
py
Python
MGN/src/dataset.py
kingcong/MindSpore_Code
afe6ef9cada6c98f601754197db84ee1c21dbc9d
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
MGN/src/dataset.py
kingcong/MindSpore_Code
afe6ef9cada6c98f601754197db84ee1c21dbc9d
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
MGN/src/dataset.py
kingcong/MindSpore_Code
afe6ef9cada6c98f601754197db84ee1c21dbc9d
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2022 Huawei Technologies Co., Ltd # # 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...
27.796154
97
0.58406
2d4ec31c6799e0efb206d4120fb10665f3eb68d0
5,802
py
Python
src/python/visualize.py
SiavashMT/OCT-MPS
1fe8a8c25063ef3cee8b96128f20d040ac613ba7
[ "MIT" ]
18
2018-03-12T01:15:47.000Z
2021-08-09T15:20:56.000Z
src/python/visualize.py
SiavashMT/OCT-MPS
1fe8a8c25063ef3cee8b96128f20d040ac613ba7
[ "MIT" ]
5
2019-03-18T05:49:44.000Z
2021-07-02T08:14:05.000Z
src/python/visualize.py
SiavashMT/OCT-MPS
1fe8a8c25063ef3cee8b96128f20d040ac613ba7
[ "MIT" ]
7
2019-04-01T02:47:50.000Z
2021-11-15T07:59:57.000Z
from __future__ import absolute_import, division, print_function, unicode_literals """ This is the visualization module, using Mayavi and tvtk to visualize tetrahedron mesh of the OCTMPS mesh file. You can visualize two cases: 1. Full tetrahedron mesh 2. Surface mesh (triangular mesh) of the surfaces o...
34.535714
117
0.649948
2d4ede05d369514d7616c51f4972994d0f511751
689
py
Python
build/__init__.py
VirtualVFix/PythonSourceEncrypt
a656c2db721fd6aaadad7049fd7bd650fb3a12c0
[ "MIT" ]
2
2019-06-18T14:02:18.000Z
2021-04-16T12:20:55.000Z
build/__init__.py
VirtualVFix/PythonSourceEncrypt
a656c2db721fd6aaadad7049fd7bd650fb3a12c0
[ "MIT" ]
null
null
null
build/__init__.py
VirtualVFix/PythonSourceEncrypt
a656c2db721fd6aaadad7049fd7bd650fb3a12c0
[ "MIT" ]
null
null
null
# All rights reserved by forest fairy. # You cannot modify or share anything without sacrifice. # If you don't agree, keep calm and don't look on text below... __author__ = "VirtualV <github.com/virtualvfix>" __date__ = "07/10/17 13:16" import platform from pkg_resources import parse_version # check python version ...
32.809524
92
0.75762
2d4f02386c1ab8d3c98b67fc7490e564d4de1365
1,156
py
Python
src/mila/run.py
elix-tech/kmol
f7fb610d0cbe958891ed15032bb301fb664e4e25
[ "MIT" ]
27
2021-11-18T12:12:38.000Z
2022-03-15T06:34:55.000Z
src/mila/run.py
elix-tech/kmol
f7fb610d0cbe958891ed15032bb301fb664e4e25
[ "MIT" ]
3
2022-01-25T05:19:54.000Z
2022-02-03T01:30:29.000Z
src/mila/run.py
elix-tech/kmol
f7fb610d0cbe958891ed15032bb301fb664e4e25
[ "MIT" ]
3
2022-02-08T16:12:14.000Z
2022-03-31T05:47:57.000Z
import logging from argparse import ArgumentParser from .configs import ServerConfiguration, ClientConfiguration from .services import Server, Client, DefaultServicer logging.basicConfig(format="%(asctime)s %(message)s", level=logging.INFO) class Executor: def __init__(self, config_path: str): self._co...
24.595745
86
0.685986
2d4f1c01aa423c164e7b65089c000d27ddc4a88f
4,040
py
Python
bot.py
sgrieve/COUNTRYCAPSBOT
b81f36ac06a262dfb9682b768aab804c5f9af9c6
[ "MIT" ]
null
null
null
bot.py
sgrieve/COUNTRYCAPSBOT
b81f36ac06a262dfb9682b768aab804c5f9af9c6
[ "MIT" ]
null
null
null
bot.py
sgrieve/COUNTRYCAPSBOT
b81f36ac06a262dfb9682b768aab804c5f9af9c6
[ "MIT" ]
null
null
null
# Framework Copyright (c) 2015-2016 Molly White # Additional code Copyright (c) 2016 Stuart Grieve # # 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 lim...
31.317829
79
0.656683
2d4f4ff04abb5cb894db7891e663fa87b2e389ec
5,788
py
Python
robot_cameraman/tracking.py
maiermic/robot-cameraman
afe441cf1677322062da77aa782a08f10440fcc7
[ "MIT" ]
7
2019-11-17T13:18:07.000Z
2022-03-13T04:14:15.000Z
robot_cameraman/tracking.py
maiermic/robot-cameraman
afe441cf1677322062da77aa782a08f10440fcc7
[ "MIT" ]
14
2021-02-03T16:21:21.000Z
2022-03-11T23:57:48.000Z
robot_cameraman/tracking.py
maiermic/robot-cameraman
afe441cf1677322062da77aa782a08f10440fcc7
[ "MIT" ]
2
2021-04-21T21:22:49.000Z
2021-05-28T17:39:13.000Z
import logging from abc import abstractmethod from dataclasses import dataclass from logging import Logger from typing import Tuple, Optional import time from typing_extensions import Protocol from robot_cameraman.box import Box, TwoPointsBox, Point logger: Logger = logging.getLogger(__name__) class Destination: ...
34.047059
80
0.63718
2d4f7574bc115edd96af91cccc6168e3b3dc9d4c
2,285
py
Python
aws_xray_sdk/core/sampling/target_poller.py
musicinmybrain/aws-xray-sdk-python
b8e59423f1891351ceb1a0bd585603e0cd46c74c
[ "Apache-2.0" ]
294
2017-10-10T19:01:04.000Z
2022-03-18T15:52:19.000Z
aws_xray_sdk/core/sampling/target_poller.py
musicinmybrain/aws-xray-sdk-python
b8e59423f1891351ceb1a0bd585603e0cd46c74c
[ "Apache-2.0" ]
285
2017-10-20T09:27:21.000Z
2022-03-29T15:33:45.000Z
aws_xray_sdk/core/sampling/target_poller.py
musicinmybrain/aws-xray-sdk-python
b8e59423f1891351ceb1a0bd585603e0cd46c74c
[ "Apache-2.0" ]
134
2017-10-11T13:55:17.000Z
2022-03-23T07:21:17.000Z
import logging from random import Random import time import threading log = logging.getLogger(__name__) class TargetPoller(object): """ The poller to report the current statistics of all centralized sampling rules and retrieve the new allocated sampling quota and TTL from X-Ray service. """ d...
34.621212
92
0.645952
2d4f789baf22ac6a75b36295a6dc51513c834aee
1,106
py
Python
data/model/oci/blob.py
jakedt/quay
424c1a19d744be444ed27aa1718fd74af311d863
[ "Apache-2.0" ]
1
2020-10-16T19:30:41.000Z
2020-10-16T19:30:41.000Z
data/model/oci/blob.py
jakedt/quay
424c1a19d744be444ed27aa1718fd74af311d863
[ "Apache-2.0" ]
15
2020-06-18T15:32:06.000Z
2022-03-03T23:06:24.000Z
data/model/oci/blob.py
jakedt/quay
424c1a19d744be444ed27aa1718fd74af311d863
[ "Apache-2.0" ]
null
null
null
from data.database import ImageStorage, ManifestBlob from data.model import BlobDoesNotExist from data.model.storage import get_storage_by_uuid, InvalidImageException from data.model.blob import get_repository_blob_by_digest as legacy_get def get_repository_blob_by_digest(repository, blob_digest): """ Find th...
34.5625
98
0.663653
2d4f7b1c2ea9d339dc163f0f58cd9b902760dd2e
436
py
Python
camp/robot/siren.py
cloudmesh/cloudmesh.pi
bdf706b3763031341c41b811749064c293e73c14
[ "Apache-2.0" ]
2
2017-09-18T00:56:36.000Z
2018-06-01T23:41:23.000Z
camp/robot/siren.py
cloudmesh/cloudmesh-pi
bdf706b3763031341c41b811749064c293e73c14
[ "Apache-2.0" ]
1
2018-04-16T18:37:17.000Z
2018-04-16T18:37:17.000Z
camp/robot/siren.py
cloudmesh/cloudmesh.pi
bdf706b3763031341c41b811749064c293e73c14
[ "Apache-2.0" ]
3
2017-09-20T11:13:54.000Z
2017-11-30T23:48:37.000Z
import grovepi class Siren (object): def __init__(self,led,buzzer): self.led=led self.buzzer=buzzer grovepi.pinMode(buzzer, "OUTPUT") grovepi.pinMode(led, "OUTPUT") def start(self): grovepi.digitalWrite(self.led, 1) grovepi.digitalWrite(self.buzzer, 1) ...
24.222222
44
0.607798
2d4f852563e9f108236ec146e1601e0ddafc7f60
1,160
py
Python
src/test/tests/databases/history.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/test/tests/databases/history.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/test/tests/databases/history.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
# ---------------------------------------------------------------------------- # MODES: serial # CLASSES: nightly # # Test Case: history.py # # Tests: variables that only have values for real zones (not ghost zones) # Some history variables have this property. # # Programmer: Hank Childs # Dat...
24.680851
79
0.607759
2d4ff6a2c887f84368189bc3a5fa4f4d03209e02
3,180
py
Python
sdk/formrecognizer/azure-ai-formrecognizer/samples/v3.1/sample_train_model_without_labels.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/formrecognizer/azure-ai-formrecognizer/samples/v3.1/sample_train_model_without_labels.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/formrecognizer/azure-ai-formrecognizer/samples/v3.1/sample_train_model_without_labels.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# coding: utf-8 # ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # --------------------------------------------------------------------...
42.4
121
0.668868
2d50250514bb7a298bb033563ae24e33aa72a9fb
2,629
py
Python
fitting.py
AlexProutski/Casimir-Programming-2
622192c1fc4b32d5fbcb40e3eedf3a6fa20733cb
[ "MIT" ]
null
null
null
fitting.py
AlexProutski/Casimir-Programming-2
622192c1fc4b32d5fbcb40e3eedf3a6fa20733cb
[ "MIT" ]
null
null
null
fitting.py
AlexProutski/Casimir-Programming-2
622192c1fc4b32d5fbcb40e3eedf3a6fa20733cb
[ "MIT" ]
null
null
null
import numpy as np from scipy import optimize class Parameter: def __init__(self, value, name=''): self.value = value self.name = name def set(self, value): self.value = value def __call__(self): return self.value def gauss(gA,gx0,gs): """ returns the fit func...
25.038095
94
0.533663
2d504954579ad05f97f6085659250b2e264459ab
757
py
Python
0x04-python-more_data_structures/12-roman_to_int.py
oluwaseun-ebenezer/holbertonschool-higher_level_programming
e830f969d3ca71abf0a2f6d4f7c64a82337eccd7
[ "MIT" ]
null
null
null
0x04-python-more_data_structures/12-roman_to_int.py
oluwaseun-ebenezer/holbertonschool-higher_level_programming
e830f969d3ca71abf0a2f6d4f7c64a82337eccd7
[ "MIT" ]
null
null
null
0x04-python-more_data_structures/12-roman_to_int.py
oluwaseun-ebenezer/holbertonschool-higher_level_programming
e830f969d3ca71abf0a2f6d4f7c64a82337eccd7
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # 12-roman_to_int.py def roman_to_int(roman_string): """Converts a roman numeral to an integer.""" if (not isinstance(roman_string, str) or roman_string is None): return (0) roman_dict = { "I": 1, "V": 5, "X": 10, "L": 50, "C"...
22.939394
79
0.501982
2d504cfdbd18bf8def6482422b0577ec62f71b7d
1,716
py
Python
examples/AdAccountAdCreativesPostCreateAdCreativePageLike.py
pasha-r/facebook-python-ads-sdk
76feadd77baed839516b53297628e7a254c8c3c0
[ "CNRI-Python" ]
null
null
null
examples/AdAccountAdCreativesPostCreateAdCreativePageLike.py
pasha-r/facebook-python-ads-sdk
76feadd77baed839516b53297628e7a254c8c3c0
[ "CNRI-Python" ]
null
null
null
examples/AdAccountAdCreativesPostCreateAdCreativePageLike.py
pasha-r/facebook-python-ads-sdk
76feadd77baed839516b53297628e7a254c8c3c0
[ "CNRI-Python" ]
1
2018-09-24T14:04:48.000Z
2018-09-24T14:04:48.000Z
# Copyright 2014 Facebook, Inc. # You are hereby granted a non-exclusive, worldwide, royalty-free license to # use, copy, modify, and distribute this software in source code or binary # form for use in connection with the web services and APIs provided by # Facebook. # As with any software that integrates with the Fa...
42.9
224
0.765734
2d50a32ec0618cddd83a236fdb2d29f3f444a9da
4,134
py
Python
capnpy/testing/compiler/test_null.py
wridgers/capnpy
63546597cc94434a271187f2e5af60f02e086caa
[ "MIT" ]
1
2019-05-29T19:47:53.000Z
2019-05-29T19:47:53.000Z
capnpy/testing/compiler/test_null.py
wridgers/capnpy
63546597cc94434a271187f2e5af60f02e086caa
[ "MIT" ]
null
null
null
capnpy/testing/compiler/test_null.py
wridgers/capnpy
63546597cc94434a271187f2e5af60f02e086caa
[ "MIT" ]
4
2018-01-28T23:44:41.000Z
2019-09-28T17:50:14.000Z
import py from six import b from capnpy.testing.compiler.support import CompilerTest class TestNullPointers(CompilerTest): @py.test.fixture def mod(self): schema = """ @0xbf5147cbbecf40c1; struct P { a @0 :Int64; b @1 :Int64; } struct Foo { ...
29.741007
83
0.512095