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
9174a9a160fcff0158f13bc6e2446b2a1e838429
5,743
py
Python
napari/_vispy/vispy_points_layer.py
mkitti/napari
4e954d30b5a1b70c5e495db1b8f48a3bdda1ff86
[ "BSD-3-Clause" ]
null
null
null
napari/_vispy/vispy_points_layer.py
mkitti/napari
4e954d30b5a1b70c5e495db1b8f48a3bdda1ff86
[ "BSD-3-Clause" ]
null
null
null
napari/_vispy/vispy_points_layer.py
mkitti/napari
4e954d30b5a1b70c5e495db1b8f48a3bdda1ff86
[ "BSD-3-Clause" ]
null
null
null
import numpy as np from vispy.scene.visuals import Compound, Line, Text from ..utils.colormaps.standardize_color import transform_color from ._text_utils import update_text from .markers import Markers from .vispy_base_layer import VispyBaseLayer class VispyPointsLayer(VispyBaseLayer): _highlight_color = (0, 0.6...
35.233129
76
0.589587
9174be8e56c144fa6d1ac24895e01baa4b5816c8
3,496
py
Python
src/api/bkuser_core/categories/plugins/custom/models.py
Canway-shiisa/bk-user
a049e80d12082960828015742cea4b041f4af796
[ "MIT" ]
null
null
null
src/api/bkuser_core/categories/plugins/custom/models.py
Canway-shiisa/bk-user
a049e80d12082960828015742cea4b041f4af796
[ "MIT" ]
null
null
null
src/api/bkuser_core/categories/plugins/custom/models.py
Canway-shiisa/bk-user
a049e80d12082960828015742cea4b041f4af796
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ TencentBlueKing is pleased to support the open source community by making 蓝鲸智云-用户管理(Bk-User) available. Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in compliance with the Lic...
27.968
115
0.677918
9174cbca2577bbae553fb5af682170cfc7709fb7
2,144
py
Python
galaxycloudrunner/rules/cloudlaunch_pulsar_compat.py
CloudVE/wip-bursting-misc
b31879081136f9aca042a3926008bcee0ab71ca5
[ "MIT" ]
2
2019-05-09T16:28:52.000Z
2019-11-19T12:07:31.000Z
galaxycloudrunner/rules/cloudlaunch_pulsar_compat.py
CloudVE/wip-bursting-misc
b31879081136f9aca042a3926008bcee0ab71ca5
[ "MIT" ]
1
2019-01-16T18:44:53.000Z
2019-01-16T18:44:53.000Z
galaxycloudrunner/rules/cloudlaunch_pulsar_compat.py
CloudVE/wip-bursting-misc
b31879081136f9aca042a3926008bcee0ab71ca5
[ "MIT" ]
1
2019-01-16T18:31:58.000Z
2019-01-16T18:31:58.000Z
""" This is a legacy layer for Galaxy versions prior to 19.01 as they do not support chaining dynamic rules. This provides a single rule that simulates the chaining of burst, to_destination_if_size and cloudlaunch_pulsar_burst rules. """ from galaxy.jobs.stock_rules import burst from galaxy.util import asbool from gala...
40.45283
76
0.694496
917522b35be48c41bceb432d25d0e6f64dabba04
175
py
Python
services/heartbeat/urls.py
Bellboy-Capstone/Services
36888d90fe7ba4b2afc2ea8ad4839a8e13c7f98b
[ "MIT" ]
null
null
null
services/heartbeat/urls.py
Bellboy-Capstone/Services
36888d90fe7ba4b2afc2ea8ad4839a8e13c7f98b
[ "MIT" ]
5
2020-10-07T16:31:54.000Z
2022-03-01T22:16:54.000Z
services/heartbeat/urls.py
Bellboy-Capstone/Services
36888d90fe7ba4b2afc2ea8ad4839a8e13c7f98b
[ "MIT" ]
2
2020-10-04T23:57:00.000Z
2020-10-10T03:14:18.000Z
from django.urls import path from services.heartbeat.views import HeartbeatView app_name = "heartbeat" urlpatterns = [path("", view=HeartbeatView.as_view(), name="update")]
25
69
0.771429
91752d2533f9b901facfab6c5680452ffb92e654
532
py
Python
utils/Logger.py
Taosheng-ty/cs6350MLcourse
738bc5ccc50b78a1721986e1a703a575adda2ca6
[ "MIT" ]
null
null
null
utils/Logger.py
Taosheng-ty/cs6350MLcourse
738bc5ccc50b78a1721986e1a703a575adda2ca6
[ "MIT" ]
null
null
null
utils/Logger.py
Taosheng-ty/cs6350MLcourse
738bc5ccc50b78a1721986e1a703a575adda2ca6
[ "MIT" ]
null
null
null
import sys class Logger(object): def __init__(self,filename="logfile.log"): self.terminal = sys.stdout self.log = open(filename, "w") def write(self, message): self.log.flush() self.terminal.flush() self.terminal.write(message) self.log.write(message) def...
26.6
64
0.629699
91757c8daf67cc5edb9dfc6bbe9d7ad3125858ce
8,761
py
Python
datasets/mmdet_tusimple/mmdet/apis/test.py
Jinming-Su/SGNet
fcf35edaf332c1a4e2713acad5a0fc0e21509c3e
[ "MIT" ]
13
2021-10-15T15:14:45.000Z
2022-03-09T00:22:55.000Z
datasets/mmdet_tusimple/mmdet/apis/test.py
Jinming-Su/SGNet
fcf35edaf332c1a4e2713acad5a0fc0e21509c3e
[ "MIT" ]
4
2021-10-17T09:04:20.000Z
2022-03-25T06:43:00.000Z
datasets/mmdet_tusimple/mmdet/apis/test.py
Jinming-Su/SGNet
fcf35edaf332c1a4e2713acad5a0fc0e21509c3e
[ "MIT" ]
2
2021-11-17T11:31:35.000Z
2021-11-29T06:50:35.000Z
import os.path as osp import pickle import shutil import tempfile import time import mmcv import torch import torch.distributed as dist from mmcv.runner import get_dist_info from mmdet.core import encode_mask_results, tensor2imgs def single_gpu_test(model, data_loader, show=F...
35.905738
79
0.582354
9175aac4472009b0682f1344fff1f0c22a04f5ca
1,029
py
Python
setup.py
langosco/understanding-rl-vision
cf749a29b5c8f74e5fd579f4a8810cef5f96f79c
[ "MIT" ]
23
2020-11-17T16:05:14.000Z
2022-01-18T14:58:32.000Z
setup.py
langosco/understanding-rl-vision
cf749a29b5c8f74e5fd579f4a8810cef5f96f79c
[ "MIT" ]
1
2021-09-19T06:57:12.000Z
2021-09-19T06:57:12.000Z
setup.py
langosco/understanding-rl-vision
cf749a29b5c8f74e5fd579f4a8810cef5f96f79c
[ "MIT" ]
6
2020-11-17T19:24:31.000Z
2021-09-19T06:57:00.000Z
import os import urllib.request from setuptools import setup, find_packages REMOTE_JS_PATH = ( "https://openaipublic.blob.core.windows.net/rl-clarity/attribution/js/interface.js" ) def download_js(): dir_ = os.path.dirname(os.path.realpath(__file__)) js_dir_path = os.path.join(dir_, "understanding_rl_vis...
27.810811
103
0.661808
9175c27ed611966afb547b096a02ed7b3873f8bf
4,801
py
Python
tests/test_bucketer_WoEBucketer.py
satya-pattnaik/skorecard
ba31821799985052ffb498569b41e969034ea28e
[ "MIT" ]
31
2021-06-10T13:35:07.000Z
2022-03-30T12:34:26.000Z
tests/test_bucketer_WoEBucketer.py
satya-pattnaik/skorecard
ba31821799985052ffb498569b41e969034ea28e
[ "MIT" ]
50
2021-06-10T10:56:34.000Z
2022-01-26T18:23:31.000Z
tests/test_bucketer_WoEBucketer.py
satya-pattnaik/skorecard
ba31821799985052ffb498569b41e969034ea28e
[ "MIT" ]
2
2021-09-09T00:44:17.000Z
2021-09-24T17:08:32.000Z
import numpy as np import pytest import pandas as pd from skorecard.preprocessing import WoeEncoder from skorecard.bucketers import DecisionTreeBucketer, OptimalBucketer, AsIsCategoricalBucketer from skorecard.pipeline import BucketingProcess from sklearn.pipeline import make_pipeline import numpy.testing as npt # ...
31.585526
120
0.597584
9176554cac617481166a43a66f89b5bf89c9a319
389
py
Python
blog/migrations/0010_auto_20151217_1650.py
FarmCodeGary/InspirationForge
2b78e9c388608ac19ed0ecb114ce5e0cc1f33213
[ "MIT" ]
1
2015-09-16T17:14:36.000Z
2015-09-16T17:14:36.000Z
blog/migrations/0010_auto_20151217_1650.py
FarmCodeGary/InspirationForge
2b78e9c388608ac19ed0ecb114ce5e0cc1f33213
[ "MIT" ]
null
null
null
blog/migrations/0010_auto_20151217_1650.py
FarmCodeGary/InspirationForge
2b78e9c388608ac19ed0ecb114ce5e0cc1f33213
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('blog', '0009_auto_20151217_1411'), ] operations = [ migrations.RenameField( model_name='article', ol...
19.45
44
0.598972
9176628118de5b34ab8efd9567e6b439ac25cfa1
1,974
py
Python
dn3/transforms/preprocessors.py
MohammadJavadD/dn3
cf29e4fe753e5e0a1e4ad3bf5d36c12776c3e4f9
[ "BSD-3-Clause" ]
28
2021-02-01T08:05:13.000Z
2022-03-25T04:52:00.000Z
dn3/transforms/preprocessors.py
MohammadJavadD/dn3
cf29e4fe753e5e0a1e4ad3bf5d36c12776c3e4f9
[ "BSD-3-Clause" ]
10
2020-11-16T15:35:44.000Z
2021-12-02T16:20:25.000Z
dn3/transforms/preprocessors.py
MohammadJavadD/dn3
cf29e4fe753e5e0a1e4ad3bf5d36c12776c3e4f9
[ "BSD-3-Clause" ]
7
2021-03-01T08:25:39.000Z
2021-12-20T06:35:10.000Z
from dn3.transforms.instance import InstanceTransform class Preprocessor: """ Base class for various preprocessing actions. Sub-classes are called with a subclass of `_Recording` and operate on these instances in-place. Any modifications to data specifically should be implemented through a subclass o...
35.890909
119
0.652989
91767ada6e1ce79cecfbdefa7b907b30109b151a
880
py
Python
bin/detect-changes.py
cossio/ProteoPy
a3569dcef34e4d416863c812e90498d749dc288f
[ "MIT" ]
null
null
null
bin/detect-changes.py
cossio/ProteoPy
a3569dcef34e4d416863c812e90498d749dc288f
[ "MIT" ]
null
null
null
bin/detect-changes.py
cossio/ProteoPy
a3569dcef34e4d416863c812e90498d749dc288f
[ "MIT" ]
null
null
null
#!/usr/bin/env python import argparse PARSER = argparse.ArgumentParser(description='Detect fold-changes in two vectors', fromfile_prefix_chars='@') PARSER.add_argument('--x1', type=str, help='vector 1') PARSER.add_argument('--x2', type=str, help='vector 2') PARSER.add_argument('--name...
25.882353
82
0.647727
917689552d60ab981fcab266b3767feb33aad85f
451
py
Python
tests/test_main_views.py
chivalry/structured-flask
c6930d87a7364b86a3ab3db03c93c04235f1e93b
[ "MIT" ]
3
2019-04-15T00:54:43.000Z
2019-05-18T01:05:00.000Z
tests/test_main_views.py
chivalry/structured-flask
c6930d87a7364b86a3ab3db03c93c04235f1e93b
[ "MIT" ]
6
2019-04-15T01:37:29.000Z
2019-04-24T18:47:24.000Z
tests/test_main_views.py
chivalry/structured-flask
c6930d87a7364b86a3ab3db03c93c04235f1e93b
[ "MIT" ]
1
2019-04-23T04:04:18.000Z
2019-04-23T04:04:18.000Z
from .conftest import template_used def test_index(client): response = client.get('/', follow_redirects=True) assert response.status_code == 200 assert 'Login' in str(response.data) def test_404(client): response = client.get('/route_does_not_exist') assert response.status_code == 404 def test...
25.055556
53
0.7051
917697be92fda2950403085f35cfe41ac5923a14
17,649
py
Python
bot/cogs/moderation/scheduler.py
Savant-Dev/bot
cfc5720925b6bbc40c45507f8579145a0014a6eb
[ "MIT" ]
null
null
null
bot/cogs/moderation/scheduler.py
Savant-Dev/bot
cfc5720925b6bbc40c45507f8579145a0014a6eb
[ "MIT" ]
null
null
null
bot/cogs/moderation/scheduler.py
Savant-Dev/bot
cfc5720925b6bbc40c45507f8579145a0014a6eb
[ "MIT" ]
null
null
null
import asyncio import logging import textwrap import typing as t from abc import abstractmethod from datetime import datetime from gettext import ngettext import dateutil.parser import discord from discord.ext.commands import Context from bot import constants from bot.api import ResponseCodeError from bot.bot import ...
40.665899
100
0.593008
9176abf6b1daa79b91f2e3cc0b255918e2e86f11
1,354
py
Python
datadog_checks_dev/datadog_checks/dev/tooling/commands/validate/__init__.py
gaffneyd4/integrations-core
4c7725c9f1be4985381aad9740e7186f16a87976
[ "BSD-3-Clause" ]
1
2021-06-06T23:49:17.000Z
2021-06-06T23:49:17.000Z
datadog_checks_dev/datadog_checks/dev/tooling/commands/validate/__init__.py
gaffneyd4/integrations-core
4c7725c9f1be4985381aad9740e7186f16a87976
[ "BSD-3-Clause" ]
null
null
null
datadog_checks_dev/datadog_checks/dev/tooling/commands/validate/__init__.py
gaffneyd4/integrations-core
4c7725c9f1be4985381aad9740e7186f16a87976
[ "BSD-3-Clause" ]
null
null
null
# (C) Datadog, Inc. 2018-present # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) import click from ..console import CONTEXT_SETTINGS from .agent_reqs import agent_reqs from .agent_signature import legacy_signature from .all_validations import all from .ci import ci from .codeowners im...
22.196721
96
0.762925
9176b2b11383e029427f82fd2f9d6b42fe478faa
10,574
py
Python
flask_userflow/views.py
vgavro/flask-userflow
17e73698d5adb293f2ffdfef78957a2c4d1eadc1
[ "MIT" ]
null
null
null
flask_userflow/views.py
vgavro/flask-userflow
17e73698d5adb293f2ffdfef78957a2c4d1eadc1
[ "MIT" ]
null
null
null
flask_userflow/views.py
vgavro/flask-userflow
17e73698d5adb293f2ffdfef78957a2c4d1eadc1
[ "MIT" ]
null
null
null
from datetime import datetime from functools import wraps from werkzeug.local import LocalProxy from flask import (request, Response, after_this_request, make_response, session, redirect, jsonify, current_app) from flask_login import login_user as _login_user, logout_user, current_user, login_requir...
31.945619
92
0.649896
9176dc29057fde0c15cd3d9b5b0825785bff37b2
13,957
py
Python
sigdbscan.py
SpatialUMN/Significant-DBSCAN-python
f00d1e50603e3a5475c1f128d9eadf642c9478da
[ "MIT" ]
2
2021-06-17T05:06:59.000Z
2021-06-25T06:48:36.000Z
sigdbscan.py
SpatialUMN/Significant-DBSCAN-python
f00d1e50603e3a5475c1f128d9eadf642c9478da
[ "MIT" ]
null
null
null
sigdbscan.py
SpatialUMN/Significant-DBSCAN-python
f00d1e50603e3a5475c1f128d9eadf642c9478da
[ "MIT" ]
1
2021-08-01T13:29:04.000Z
2021-08-01T13:29:04.000Z
# @Author: xie # @Date: 2021-06-16T21:19:11-04:00 # @Email: xie@umd.edu # @Last modified by: xie # @Last modified time: 2021-06-16T21:19:14-04:00 # @License: MIT License from sklearn.cluster import DBSCAN import numpy as np from numpy.linalg import norm import math from helper import * from montecarlo import * d...
48.800699
180
0.665258
9176e141fa06637b35094287e0ad64d3b1577987
1,329
py
Python
magma/souputils.py
bfontaine/p7magma
713647aa9e3187c93c2577ef812f33ec42ae5494
[ "MIT" ]
4
2015-01-21T20:57:09.000Z
2015-01-27T14:43:12.000Z
magma/souputils.py
bfontaine/p7magma
713647aa9e3187c93c2577ef812f33ec42ae5494
[ "MIT" ]
2
2015-02-08T14:53:09.000Z
2019-10-23T08:12:49.000Z
magma/souputils.py
bfontaine/p7magma
713647aa9e3187c93c2577ef812f33ec42ae5494
[ "MIT" ]
1
2016-03-30T17:12:00.000Z
2016-03-30T17:12:00.000Z
# -*- coding: UTF-8 -*- from __future__ import unicode_literals import re def text(el, strip=True): """ Return the text of a ``BeautifulSoup`` element """ if not el: return "" text = el.text if strip: text = text.strip() return text # .encode("utf-8") def coursecode(e...
17.72
79
0.555305
9177013803734bfe6c4f1e67d40da1afb8cdf52a
13,281
py
Python
app.py
ktruong29/Book-Review
6d279293afd0c3219042b4fab8e97125fc55d399
[ "Unlicense", "MIT" ]
null
null
null
app.py
ktruong29/Book-Review
6d279293afd0c3219042b4fab8e97125fc55d399
[ "Unlicense", "MIT" ]
null
null
null
app.py
ktruong29/Book-Review
6d279293afd0c3219042b4fab8e97125fc55d399
[ "Unlicense", "MIT" ]
null
null
null
from init import * from config import * logging.basicConfig(level=logging.DEBUG) app = Flask(__name__) # CsrfProtect(app) app.secret_key = 'hjkdjeuqoe157!@' #Path to save profile pictures DIR_PATH = "static/images/users" #Connecting to MySQL instance RDS try: db = pymysql.connect(host=DB_HOST, port=3306, user=DB_...
41.503125
139
0.556208
917712833d45a1707d4f4f65b04302af758fcaa1
8,148
py
Python
kadi/commands/command_sets.py
jzuhone/kadi
de4885327d256e156cfe42b2b1700775f5b4d6cf
[ "BSD-3-Clause" ]
null
null
null
kadi/commands/command_sets.py
jzuhone/kadi
de4885327d256e156cfe42b2b1700775f5b4d6cf
[ "BSD-3-Clause" ]
null
null
null
kadi/commands/command_sets.py
jzuhone/kadi
de4885327d256e156cfe42b2b1700775f5b4d6cf
[ "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst import re from pathlib import Path import astropy.units as u from Quaternion import Quat from cxotime import CxoTime from parse_cm.common import _coerce_type as coerce_type from kadi.commands.core import CommandTable RTS_PATH = Path('FOT/configuration/p...
30.863636
80
0.557069
91771663458179f1b60d711d2a6f7c371eed8a7b
140
py
Python
ThirdParty/Twisted/twisted/words/_version.py
OpenGeoscience/VTK
a373e975b9284a022f43a062ebf5042bb17b4e44
[ "BSD-3-Clause" ]
1
2021-10-13T01:57:14.000Z
2021-10-13T01:57:14.000Z
ThirdParty/Twisted/twisted/words/_version.py
OpenGeoscience/VTK
a373e975b9284a022f43a062ebf5042bb17b4e44
[ "BSD-3-Clause" ]
null
null
null
ThirdParty/Twisted/twisted/words/_version.py
OpenGeoscience/VTK
a373e975b9284a022f43a062ebf5042bb17b4e44
[ "BSD-3-Clause" ]
5
2015-10-09T04:12:29.000Z
2021-12-15T16:57:11.000Z
# This is an auto-generated file. Do not edit it. from twisted.python import versions version = versions.Version('twisted.words', 12, 3, 0)
35
53
0.75
91776135ae94abefd9c2c22c3e8743feb1a993ba
6,055
py
Python
src/zebrafish_ec_migration/pipelines/FAIR_pipeline/process_key_file.py
wgiese/zebrafish_ec_migration
6c0e83716f4b9dcf8ca67528ae1efba031c75117
[ "Apache-2.0" ]
null
null
null
src/zebrafish_ec_migration/pipelines/FAIR_pipeline/process_key_file.py
wgiese/zebrafish_ec_migration
6c0e83716f4b9dcf8ca67528ae1efba031c75117
[ "Apache-2.0" ]
null
null
null
src/zebrafish_ec_migration/pipelines/FAIR_pipeline/process_key_file.py
wgiese/zebrafish_ec_migration
6c0e83716f4b9dcf8ca67528ae1efba031c75117
[ "Apache-2.0" ]
null
null
null
import pandas as pd from typing import Dict def process_key_file(parameters: Dict) -> pd.DataFrame: ''' reads original key file and extracts all rows with relevant experimental conditions, here imaging start 1 dpf (= days post fertilization) and treatment control morpholino, Wasp1 [100 $\m...
43.876812
120
0.636664
91778501b205082c1e9275216658597a1039d356
253
py
Python
tests/conftest.py
cclauss/py-dbutils
ccd901b4cd9fee9480c87aa6386d2025df023ea7
[ "MIT" ]
6
2021-03-21T23:21:34.000Z
2022-03-15T03:19:42.000Z
tests/conftest.py
cclauss/py-dbutils
ccd901b4cd9fee9480c87aa6386d2025df023ea7
[ "MIT" ]
3
2020-03-24T17:00:22.000Z
2021-03-21T23:25:27.000Z
tests/conftest.py
cclauss/py-dbutils
ccd901b4cd9fee9480c87aa6386d2025df023ea7
[ "MIT" ]
3
2021-03-21T23:16:52.000Z
2022-02-04T21:53:11.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Dummy conftest.py for py_dbutils. If you don't know what this is for, just leave it empty. Read more about conftest.py under: https://pytest.org/latest/plugins.html """ # import pytest
21.083333
60
0.656126
9177f60e6f50b2182f63da849070c54cd3a0f3a4
187
py
Python
go/src/infra/tools/vpython/testdata/test_exit_code.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
2
2021-04-13T21:22:18.000Z
2021-09-07T02:11:57.000Z
go/src/infra/tools/vpython/testdata/test_exit_code.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
21
2020-09-06T02:41:05.000Z
2022-03-02T04:40:01.000Z
go/src/infra/tools/vpython/testdata/test_exit_code.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2017 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import sys sys.exit(42)
26.714286
72
0.764706
9177f6c4ac0c6965ccc3bb1d20e1148f1be1fc38
738
py
Python
tests/megawing/spartan6/ram/_ram32q.py
splhack/loam
10b08bd622b7cfd63eabaec4729f6238e4521b30
[ "MIT" ]
14
2017-10-08T09:16:10.000Z
2021-11-27T19:12:24.000Z
tests/megawing/spartan6/ram/_ram32q.py
splhack/loam
10b08bd622b7cfd63eabaec4729f6238e4521b30
[ "MIT" ]
7
2018-04-12T21:33:49.000Z
2018-08-21T22:14:20.000Z
tests/megawing/spartan6/ram/_ram32q.py
splhack/loam
10b08bd622b7cfd63eabaec4729f6238e4521b30
[ "MIT" ]
3
2018-07-24T04:55:02.000Z
2019-12-30T08:12:39.000Z
import sys from magma import * from mantle.xilinx.spartan6.RAM import RAM32Q from loam.shields.megawing import MegaWing megawing = MegaWing() megawing.Clock.on() megawing.Switch.on(8) megawing.LED.on(8) main = megawing.main() ram = RAM32Q([16 * [1,0], 16 * [1,1], 16 * [0,1], ...
19.945946
45
0.630081
9177f7f07dc71c92c7b4c9c2d7e2a9d2335a36d2
886
py
Python
aula6/aula6listas.py
diegocolombo1989/Trabalho-Python
4603117bebfb6e801c3289e108b4e8f29442ab6f
[ "MIT" ]
null
null
null
aula6/aula6listas.py
diegocolombo1989/Trabalho-Python
4603117bebfb6e801c3289e108b4e8f29442ab6f
[ "MIT" ]
null
null
null
aula6/aula6listas.py
diegocolombo1989/Trabalho-Python
4603117bebfb6e801c3289e108b4e8f29442ab6f
[ "MIT" ]
null
null
null
#aula 6 - 13/11/2019 # listas #---- Inicialização de uma variável do tipo lista vazia lista1 = [] #---- Inicialização de uma variável lista, com elementos lista2 = ["Marcela", 'Nicole', '*Matheus'] #---- Lista de inteiros lista3 = [1,2,3,5] #---- lista de tipos diferentes lista4 = [1, "Maykon", 12.5] #---- Impressao...
24.611111
99
0.717833
91780e073f75d30e975eb895b998f846a49931fc
20,424
py
Python
satellite_czml/satellite_czml.py
cassova/satellite-czml
eae460c139b1adf55eed88890c4298e33c855462
[ "MIT" ]
10
2021-02-05T20:56:23.000Z
2022-01-11T18:40:30.000Z
satellite_czml/satellite_czml.py
cassova/satellite-czml
eae460c139b1adf55eed88890c4298e33c855462
[ "MIT" ]
null
null
null
satellite_czml/satellite_czml.py
cassova/satellite-czml
eae460c139b1adf55eed88890c4298e33c855462
[ "MIT" ]
5
2021-02-04T03:20:20.000Z
2022-01-11T18:40:26.000Z
# satellite_czml # Author: Nicholas Miller (miller.nicholas.a@gmail.com) # https://github.com/cassova/satellite-czml from .czml import (CZML, Billboard, CZMLPacket, Description, Label, Path, Position, Point) from sgp4.earth_gravity import wgs72 from sgp4.io import twoline2rv from datetime import da...
38.390977
110
0.559244
917825f9028c5c6aa718b322d8e0decceef7f43a
5,754
py
Python
preapp/node.py
najaco/preapp
6206d4cee68f9b6a63d4e1661c7c439012fc5ce0
[ "MIT" ]
null
null
null
preapp/node.py
najaco/preapp
6206d4cee68f9b6a63d4e1661c7c439012fc5ce0
[ "MIT" ]
null
null
null
preapp/node.py
najaco/preapp
6206d4cee68f9b6a63d4e1661c7c439012fc5ce0
[ "MIT" ]
null
null
null
from abc import ABC from typing import Dict, Any, Callable, List, Tuple import json from PyInquirer import prompt from queue import PriorityQueue from .question import Question class Node(ABC): """Base class for a node in the input tree """ _full_response: Dict[str, Any] = dict() """This is a json repres...
34.047337
118
0.605492
91785179b8c55847fff2221a3e41515eb4cb17c6
3,866
py
Python
invenio_explicit_acls/actors/role.py
oarepo/invenio-acls
a649b2e71e729e3bcfa44110afeb73358aa6034a
[ "MIT" ]
null
null
null
invenio_explicit_acls/actors/role.py
oarepo/invenio-acls
a649b2e71e729e3bcfa44110afeb73358aa6034a
[ "MIT" ]
7
2019-05-08T08:35:01.000Z
2021-06-25T15:21:34.000Z
invenio_explicit_acls/actors/role.py
oarepo/invenio-explicit-acls
a649b2e71e729e3bcfa44110afeb73358aa6034a
[ "MIT" ]
2
2019-03-31T19:07:30.000Z
2019-05-06T08:11:45.000Z
# # Copyright (c) 2019 UCT Prague. # # role.py is part of Invenio Explicit ACLs # (see https://github.com/oarepo/invenio-explicit-acls). # # 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 w...
39.85567
110
0.660372
9178c3b116e0d11fa84cfdef67c101038f9f2dc1
755
py
Python
server/framework/db/fields/__init__.py
tetelevm/OrdeRPG
5bea9fbaf3fdd84ab14f7e3033e18eead2cf30ab
[ "MIT" ]
null
null
null
server/framework/db/fields/__init__.py
tetelevm/OrdeRPG
5bea9fbaf3fdd84ab14f7e3033e18eead2cf30ab
[ "MIT" ]
null
null
null
server/framework/db/fields/__init__.py
tetelevm/OrdeRPG
5bea9fbaf3fdd84ab14f7e3033e18eead2cf30ab
[ "MIT" ]
null
null
null
""" Field types to use in models. This is done to make it easier to use when creating models, as well as to allow customization and additional functionality to the standard `Column` class. """ from .base import __all_for_module__ as __base_all__ from .custom import __all_for_module__ as __custom_all__ from .field_mi...
30.2
75
0.819868
917905f45110cc746a3433c91e157f8d798db60c
8,203
py
Python
ThirdParty/Twisted/twisted/test/test_error.py
OpenGeoscience/VTK
a373e975b9284a022f43a062ebf5042bb17b4e44
[ "BSD-3-Clause" ]
3
2016-02-01T02:29:51.000Z
2020-09-04T17:19:24.000Z
ThirdParty/Twisted/twisted/test/test_error.py
OpenGeoscience/VTK
a373e975b9284a022f43a062ebf5042bb17b4e44
[ "BSD-3-Clause" ]
4
2017-02-19T23:58:13.000Z
2019-11-01T15:31:22.000Z
ThirdParty/Twisted/twisted/test/test_error.py
OpenGeoscience/VTK
a373e975b9284a022f43a062ebf5042bb17b4e44
[ "BSD-3-Clause" ]
6
2017-02-13T09:11:02.000Z
2021-06-29T11:22:18.000Z
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. from __future__ import division, absolute_import import socket, errno from twisted.trial import unittest from twisted.internet import error from twisted.python.runtime import platformType class TestStringification(unittest.SynchronousTestCase):...
32.551587
97
0.615872
9179227b1e3e584cb6c03970765528847f46c242
26,738
py
Python
ExtentionPackages/tornado/httpclient.py
hongsofwing/PyQYT-master
9a112d9adbf9885a8b7535b7ef7759b60a0f9a29
[ "CNRI-Python" ]
652
2015-07-26T00:00:17.000Z
2022-02-24T18:30:04.000Z
ExtentionPackages/tornado/httpclient.py
hongsofwing/PyQYT-master
9a112d9adbf9885a8b7535b7ef7759b60a0f9a29
[ "CNRI-Python" ]
8
2015-09-07T03:38:19.000Z
2021-05-23T03:18:51.000Z
ExtentionPackages/tornado/httpclient.py
hongsofwing/PyQYT-master
9a112d9adbf9885a8b7535b7ef7759b60a0f9a29
[ "CNRI-Python" ]
40
2015-07-24T19:45:08.000Z
2021-11-01T14:54:56.000Z
"""Blocking and non-blocking HTTP client interfaces. This module defines a common interface shared by two implementations, ``simple_httpclient`` and ``curl_httpclient``. Applications may either instantiate their chosen implementation class directly or use the `AsyncHTTPClient` class from this module, which selects an...
40.512121
83
0.653115
917936b8537097e4a644840b18a764bb4185c59d
412
py
Python
refpapers/doctypes.py
Waino/refpapers
451665909bdf64a1f1ed47ba24dc9b6755e59792
[ "MIT" ]
3
2022-03-06T10:38:11.000Z
2022-03-07T14:47:49.000Z
refpapers/doctypes.py
Waino/refpapers
451665909bdf64a1f1ed47ba24dc9b6755e59792
[ "MIT" ]
null
null
null
refpapers/doctypes.py
Waino/refpapers
451665909bdf64a1f1ed47ba24dc9b6755e59792
[ "MIT" ]
null
null
null
import delegator # type: ignore import os from pathlib import Path from refpapers.conf import Conf from refpapers.utils import q def open_in_viewer(path: Path, conf: Conf): _, ending = os.path.splitext(path) if not ending: print(f'Unable to determine ending of path "{path}"') return view...
25.75
61
0.699029
917938df50724b7ac1a32de46732fbcfcf87dac2
27,290
py
Python
examples/karmaSMB.py
black-security/impacket3
5b6145b3f511d4f7cddaba64cf150b109113afea
[ "Apache-1.1" ]
null
null
null
examples/karmaSMB.py
black-security/impacket3
5b6145b3f511d4f7cddaba64cf150b109113afea
[ "Apache-1.1" ]
null
null
null
examples/karmaSMB.py
black-security/impacket3
5b6145b3f511d4f7cddaba64cf150b109113afea
[ "Apache-1.1" ]
1
2022-01-28T00:53:41.000Z
2022-01-28T00:53:41.000Z
#!/usr/bin/python # Copyright (c) 2015 CORE Security Technologies # # This software is provided under under a slightly modified version # of the Apache Software License. See the accompanying LICENSE file # for more information. # # Karma SMB # # Author: # Alberto Solino (@agsolino) # Original idea by @mubix # # Descr...
44.158576
208
0.646794
91793a36e00616c5678dd15e6037a9bd6c7759df
675
py
Python
services/traction/acapy_wrapper/models/create_wallet_token_request.py
Open-Earth-Foundation/traction
908b555a7f408a88541b7692d3730e37a297c919
[ "Apache-2.0" ]
12
2022-01-29T20:30:03.000Z
2022-03-29T11:46:14.000Z
services/traction/acapy_wrapper/models/create_wallet_token_request.py
Open-Earth-Foundation/traction
908b555a7f408a88541b7692d3730e37a297c919
[ "Apache-2.0" ]
38
2021-11-22T17:52:50.000Z
2022-03-31T17:52:00.000Z
services/traction/acapy_wrapper/models/create_wallet_token_request.py
Open-Earth-Foundation/traction
908b555a7f408a88541b7692d3730e37a297c919
[ "Apache-2.0" ]
9
2021-11-22T18:05:48.000Z
2022-03-29T11:25:08.000Z
# coding: utf-8 from __future__ import annotations from datetime import date, datetime # noqa: F401 import re # noqa: F401 from typing import Any, Dict, List, Optional # noqa: F401 from pydantic import AnyUrl, BaseModel, EmailStr, validator # noqa: F401 class CreateWalletTokenRequest(BaseModel): """NOTE: T...
25.961538
96
0.748148
91794ecfe90025c84abfefc21b032295907a878c
1,027
py
Python
connector/fyle_integrations_platform_connector/apis/categories.py
fylein/fyle-integrations-platform-connector
72f5d364deca8d98516e8486ec0ab377a8ceaccc
[ "MIT" ]
null
null
null
connector/fyle_integrations_platform_connector/apis/categories.py
fylein/fyle-integrations-platform-connector
72f5d364deca8d98516e8486ec0ab377a8ceaccc
[ "MIT" ]
1
2021-12-08T13:51:14.000Z
2021-12-08T13:51:14.000Z
connector/fyle_integrations_platform_connector/apis/categories.py
fylein/fyle-integrations-platform-connector
72f5d364deca8d98516e8486ec0ab377a8ceaccc
[ "MIT" ]
null
null
null
from .base import Base class Categories(Base): """Class for Categories APIs.""" def __init__(self): Base.__init__(self, attribute_type='CATEGORY', query_params={'is_enabled': 'eq.true'}) def sync(self): """ Syncs the latest API data to DB. """ generator = self.get...
35.413793
101
0.558909
9179534c3a92a2b334f853bb7014020a64f4c5df
401
py
Python
train.py
phanxuanphucnd/ngram_language_model
53f4819853aaeaaf3cdaaf11da715a2bcdb6f9a3
[ "MIT" ]
null
null
null
train.py
phanxuanphucnd/ngram_language_model
53f4819853aaeaaf3cdaaf11da715a2bcdb6f9a3
[ "MIT" ]
null
null
null
train.py
phanxuanphucnd/ngram_language_model
53f4819853aaeaaf3cdaaf11da715a2bcdb6f9a3
[ "MIT" ]
null
null
null
import pickle from pathlib import Path from utils import load_data from ngram_lm import LanguageModel data_path = Path('./data/rewrite/') train, test = load_data(data_path) n = 5 laplace = 0.01 print("Loading {}-gram model...".format(n)) lm = LanguageModel(train, n, laplace=laplace) print("Vocabulary size: {}".for...
20.05
50
0.705736
91797bec16857678188a7d1ce6d5d25da4952f8b
3,634
py
Python
ideaman_analyzer/textteaser/summarizer.py
LibRec-Practical/ideaman-offline
f8341fc9ca77adcc1191c01037dda18c02d77b29
[ "MIT" ]
1
2021-06-21T06:41:12.000Z
2021-06-21T06:41:12.000Z
ideaman_analyzer/textteaser/summarizer.py
LibRec-Practical/ideaman-offline
f8341fc9ca77adcc1191c01037dda18c02d77b29
[ "MIT" ]
null
null
null
ideaman_analyzer/textteaser/summarizer.py
LibRec-Practical/ideaman-offline
f8341fc9ca77adcc1191c01037dda18c02d77b29
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- from .parser import Parser class Summarizer: def __init__(self): self.parser = Parser() def summarize(self, text, title, source, category): sentences = self.parser.splitSentences(text) titleWords = self.parser.removePunctations(title) ...
34.609524
135
0.579527
91799a29f6f8fbfda6f9242bfc5c3b218d98ee6f
539
py
Python
questioner/apps/questions/urls.py
sam-karis/questioner-api
bbffe431cc94fc2eeaae29600fb546a1f483920d
[ "MIT" ]
null
null
null
questioner/apps/questions/urls.py
sam-karis/questioner-api
bbffe431cc94fc2eeaae29600fb546a1f483920d
[ "MIT" ]
null
null
null
questioner/apps/questions/urls.py
sam-karis/questioner-api
bbffe431cc94fc2eeaae29600fb546a1f483920d
[ "MIT" ]
null
null
null
from django.urls import path # local imports from questioner.apps.questions.views import ( CreateGetQuestionsAPIView, SpecificQuestionAPIView, VoteAPIView ) app_name = 'questions' urlpatterns = [ path('meetups/<slug>/questions/', CreateGetQuestionsAPIView.as_view(), name='create_get_questions'), ...
29.944444
74
0.717996
9179a69b58dfe0ef255bbe6cf5348e51d5864de8
10,254
py
Python
tests/launcher_test.py
pokerman9527/eos
59626f1e6361df3b715e926ee13a9a8e84d177af
[ "MIT" ]
144
2017-10-18T16:38:51.000Z
2022-01-09T12:43:57.000Z
tests/launcher_test.py
pokerman9527/eos
59626f1e6361df3b715e926ee13a9a8e84d177af
[ "MIT" ]
60
2017-10-11T13:07:43.000Z
2019-03-26T04:33:27.000Z
tests/launcher_test.py
pokerman9527/eos
59626f1e6361df3b715e926ee13a9a8e84d177af
[ "MIT" ]
38
2017-12-05T01:13:56.000Z
2022-01-07T07:06:53.000Z
#!/usr/bin/env python3 from testUtils import Utils from Cluster import Cluster from WalletMgr import WalletMgr from Node import Node from TestHelper import TestHelper import decimal import re ############################################################### # nodeos_run_test # --dump-error-details <Upon error print et...
41.180723
138
0.714843
9179ad019e6cf1027fbf0b9987b9d52dc00589ec
17,571
py
Python
openstackclient/shell.py
redhat-openstack/python-openstackclient
7dc2e1dc08b0692a3accb343c62451fb3d83f4cd
[ "Apache-2.0" ]
null
null
null
openstackclient/shell.py
redhat-openstack/python-openstackclient
7dc2e1dc08b0692a3accb343c62451fb3d83f4cd
[ "Apache-2.0" ]
null
null
null
openstackclient/shell.py
redhat-openstack/python-openstackclient
7dc2e1dc08b0692a3accb343c62451fb3d83f4cd
[ "Apache-2.0" ]
null
null
null
# Copyright 2012-2013 OpenStack Foundation # Copyright 2015 Dean Troyer # # 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 # # U...
36.682672
79
0.588014
9179bc8c1b9a97e25e57531de1414919c866ca35
271
py
Python
Turtles/index11.py
Sudani-Coder/python
9c35f04a0521789ba91b7058695139ed074f7796
[ "MIT" ]
null
null
null
Turtles/index11.py
Sudani-Coder/python
9c35f04a0521789ba91b7058695139ed074f7796
[ "MIT" ]
null
null
null
Turtles/index11.py
Sudani-Coder/python
9c35f04a0521789ba91b7058695139ed074f7796
[ "MIT" ]
null
null
null
import turtle def spiral(sides = 100, turn = 20, color = "cyan", width = 3): john = turtle.Turtle() john.color(color) john.width(width) for side in range(sides): john.forward(side) john.right(turn) spiral(150, 45, "dodgerblue"); input()
22.583333
62
0.616236
9179cf99b632e0915a7322d81c37db8645e70923
385
py
Python
src/sagemaker/train/siamese_triplet/__init__.py
reneang17/authorencoder
e607ddc77d18fc62e292adfe1595a5dd35e10f99
[ "MIT" ]
2
2020-03-12T18:12:32.000Z
2020-04-02T07:08:52.000Z
src/sagemaker/train/siamese_triplet/__init__.py
reneang17/authorencoder
e607ddc77d18fc62e292adfe1595a5dd35e10f99
[ "MIT" ]
3
2020-01-31T01:02:21.000Z
2020-02-12T19:32:42.000Z
src/sagemaker/train/siamese_triplet/__init__.py
reneang17/authorencoder
e607ddc77d18fc62e292adfe1595a5dd35e10f99
[ "MIT" ]
null
null
null
# __init__.py from .losses import OnlineTripletLoss from .utils import AllTripletSelector,HardestNegativeTripletSelector, RandomNegativeTripletSelector, SemihardNegativeTripletSelector # Strategies for selecting triplets within a minibatch from .metrics import AverageNonzeroTripletsMetric from .train import simplified_...
55
187
0.883117
9179dedfb6fca684366dde9081dfc68e6c546e29
3,248
py
Python
tutorials/nnvm/imagenet_inference_gpu.py
Aimledge/tvm
f41c050fc681a9d9805e6c73e729df233e1acbac
[ "Apache-2.0" ]
1
2019-06-23T11:25:25.000Z
2019-06-23T11:25:25.000Z
tutorials/nnvm/imagenet_inference_gpu.py
Aimledge/tvm
f41c050fc681a9d9805e6c73e729df233e1acbac
[ "Apache-2.0" ]
null
null
null
tutorials/nnvm/imagenet_inference_gpu.py
Aimledge/tvm
f41c050fc681a9d9805e6c73e729df233e1acbac
[ "Apache-2.0" ]
null
null
null
""" Compile GPU Inference ===================== **Author**: `Yuwei Hu <https://huyuwei.github.io/>`_ This is an example of using NNVM to compile MobileNet/ResNet model and deploy its inference on GPU. To begin with, we import nnvm(for compilation) and TVM(for deployment). """ import tvm import numpy as np from tvm.co...
36.088889
143
0.661946
917a1af9049e060ec16a0f9816f736344290c266
277
py
Python
frontend/routes/scopes.py
acasi-ctf/ctf
1136185c359252d80f5dd4ebd4ce4cc404cd4ea3
[ "Apache-2.0" ]
4
2021-03-13T04:45:23.000Z
2022-03-22T06:45:04.000Z
frontend/routes/scopes.py
acasi-ctf/ctf
1136185c359252d80f5dd4ebd4ce4cc404cd4ea3
[ "Apache-2.0" ]
207
2021-03-09T22:36:46.000Z
2022-03-28T13:49:50.000Z
frontend/routes/scopes.py
acasi-ctf/ctf
1136185c359252d80f5dd4ebd4ce4cc404cd4ea3
[ "Apache-2.0" ]
2
2021-03-13T01:07:37.000Z
2021-12-23T00:01:40.000Z
permission_write_challenges = "write:challenges" permission_read_user_environments = "read:user_environments" permission_write_user_environments = "write:user_environments" permission_read_environments = "read:environments" permission_write_environments = "write:environments"
46.166667
62
0.873646
917a3ecf647e263f19d2ac26edc44ed0180bee0b
157
py
Python
smiler/instrumenting/general_exceptions.py
samadpaydar/acvtool
84d6977cf9e7db247216735cd8828ae90111cf85
[ "Apache-2.0" ]
53
2018-10-02T18:54:20.000Z
2022-01-11T03:56:36.000Z
smiler/instrumenting/general_exceptions.py
samadpaydar/acvtool
84d6977cf9e7db247216735cd8828ae90111cf85
[ "Apache-2.0" ]
23
2019-01-07T08:31:39.000Z
2021-12-13T19:50:02.000Z
smiler/instrumenting/general_exceptions.py
samadpaydar/acvtool
84d6977cf9e7db247216735cd8828ae90111cf85
[ "Apache-2.0" ]
22
2018-11-17T03:42:28.000Z
2022-02-12T05:29:52.000Z
class MsgException(Exception): ''' Generic exception with an optional string msg. ''' def __init__(self, msg=""): self.msg = msg
22.428571
50
0.592357
917a4be1f968de7edb59d740dafc0286640900f7
3,079
py
Python
km/utils/common.py
iric-soft/km
d846d1b7c9cc19fcf263e64fe05080f274610d0c
[ "MIT" ]
9
2017-12-18T23:38:19.000Z
2022-03-18T13:52:56.000Z
km/utils/common.py
iric-soft/km
d846d1b7c9cc19fcf263e64fe05080f274610d0c
[ "MIT" ]
11
2018-07-10T18:37:48.000Z
2022-02-28T09:15:01.000Z
km/utils/common.py
iric-soft/km
d846d1b7c9cc19fcf263e64fe05080f274610d0c
[ "MIT" ]
5
2017-10-27T15:13:31.000Z
2021-02-10T17:53:13.000Z
import os import re from itertools import groupby from .Jellyfish import Jellyfish def args_2_list_files(args): """Gather file names for ref. sequences.""" if len(args) > 1: lst_files = args else: if os.path.isdir(args[0]): lst_files = [os.path.join(args[0], f) for f in os.list...
26.09322
89
0.566418
917a64661753ae6e03b552fdedc59963df8531f4
544
py
Python
glimix_core/mean/test/test_mean_kron.py
Horta/limix-inference
1ba102fc544f8d307412d361b574da9d4c166f8e
[ "MIT" ]
7
2019-06-10T12:27:25.000Z
2021-07-23T16:36:04.000Z
glimix_core/mean/test/test_mean_kron.py
Horta/limix-inference
1ba102fc544f8d307412d361b574da9d4c166f8e
[ "MIT" ]
12
2017-05-28T10:59:31.000Z
2021-05-17T20:11:00.000Z
glimix_core/mean/test/test_mean_kron.py
Horta/limix-inference
1ba102fc544f8d307412d361b574da9d4c166f8e
[ "MIT" ]
5
2017-08-27T20:13:45.000Z
2022-02-14T06:33:14.000Z
from numpy import kron, ravel from numpy.random import RandomState from numpy.testing import assert_allclose from glimix_core.mean import KronMean def test_mean_kron(): random = RandomState(0) # number of trais p = 2 # number of covariates c = 3 # sample size n = 4 A = random.randn(...
20.923077
67
0.643382
917a676d11385a925c994474cbe8c7a0135a94b0
3,360
py
Python
xos/core/xoslib/methods/truckroll.py
xmaruto/mcord
3678a3d10c3703c2b73f396c293faebf0c82a4f4
[ "Apache-2.0" ]
null
null
null
xos/core/xoslib/methods/truckroll.py
xmaruto/mcord
3678a3d10c3703c2b73f396c293faebf0c82a4f4
[ "Apache-2.0" ]
null
null
null
xos/core/xoslib/methods/truckroll.py
xmaruto/mcord
3678a3d10c3703c2b73f396c293faebf0c82a4f4
[ "Apache-2.0" ]
null
null
null
from rest_framework.decorators import api_view from rest_framework.response import Response from rest_framework.reverse import reverse from rest_framework import serializers from rest_framework import generics from rest_framework import status from core.models import * from django.forms import widgets from services.cor...
36.129032
167
0.71369
917a8b5850397c1f5d82e3dac7e501b4d70cceb4
13,400
py
Python
src/gluonts/model/wavenet/_network.py
lovvge/gluon-ts
284376138f41968bec0a4cb05b274c8ee259493a
[ "Apache-2.0" ]
2
2019-09-05T05:39:03.000Z
2020-11-08T17:07:04.000Z
src/gluonts/model/wavenet/_network.py
lovvge/gluon-ts
284376138f41968bec0a4cb05b274c8ee259493a
[ "Apache-2.0" ]
null
null
null
src/gluonts/model/wavenet/_network.py
lovvge/gluon-ts
284376138f41968bec0a4cb05b274c8ee259493a
[ "Apache-2.0" ]
null
null
null
# Standard library imports import math from typing import List # Third-party imports import mxnet as mx from mxnet import gluon from mxnet.gluon import nn # First-party imports from gluonts.block.feature import FeatureEmbedder from gluonts.model.common import Tensor class LookupValues(gluon.HybridBlock): def __...
31.980907
96
0.554552
917aa990416c45dc0111f56fff57ba46b8847462
331
py
Python
users/migrations/0005_remove_user_creation_date.py
MTES-MCT/sparte
3b8ae6d21da81ca761d64ae9dfe2c8f54487211c
[ "MIT" ]
null
null
null
users/migrations/0005_remove_user_creation_date.py
MTES-MCT/sparte
3b8ae6d21da81ca761d64ae9dfe2c8f54487211c
[ "MIT" ]
3
2022-02-10T11:47:58.000Z
2022-02-23T18:50:24.000Z
users/migrations/0005_remove_user_creation_date.py
MTES-MCT/sparte
3b8ae6d21da81ca761d64ae9dfe2c8f54487211c
[ "MIT" ]
null
null
null
# Generated by Django 3.2.5 on 2021-09-10 20:28 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ("users", "0004_auto_20210910_2023"), ] operations = [ migrations.RemoveField( model_name="user", name="creation_date", ...
18.388889
47
0.595166
917ac92cf2a652dd3c8f1da9750ba1993aaa5ba4
5,476
py
Python
venv/lib/python3.8/site-packages/dateparser/data/date_translation_data/se.py
yuta-komura/vishnu
67173b674d5f4f3be189474103612447ef69ab44
[ "MIT" ]
1
2021-11-17T04:55:14.000Z
2021-11-17T04:55:14.000Z
dateparser/data/date_translation_data/se.py
cool-RR/dateparser
c38336df521cc57d947dc2c9111539a72f801652
[ "BSD-3-Clause" ]
null
null
null
dateparser/data/date_translation_data/se.py
cool-RR/dateparser
c38336df521cc57d947dc2c9111539a72f801652
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- info = { "name": "se", "date_order": "YMD", "january": [ "ođđajagemánnu", "ođđj" ], "february": [ "guovvamánnu", "guov" ], "march": [ "njukčamánnu", "njuk" ], "april": [ "cuoŋománnu", "cuo" ],...
19.41844
40
0.287071
917acbeedb9c20258263f6a98c3d08f0e4359cb8
5,351
py
Python
data/core-configuration/packs/core-functions/module/fldap.py
naparuba/opsbro
98618a002cd47250d21e7b877a24448fc95fec80
[ "MIT" ]
32
2017-08-29T08:57:16.000Z
2021-04-21T08:53:04.000Z
data/core-configuration/packs/core-functions/module/fldap.py
naparuba/opsbro
98618a002cd47250d21e7b877a24448fc95fec80
[ "MIT" ]
108
2017-09-04T19:59:28.000Z
2022-03-31T08:12:07.000Z
data/core-configuration/packs/core-functions/module/fldap.py
naparuba/kunai
98618a002cd47250d21e7b877a24448fc95fec80
[ "MIT" ]
8
2015-02-03T12:30:53.000Z
2017-07-29T19:43:54.000Z
''' ldaparray Table of Contents This function is only available in CFEngine Enterprise. Prototype: ldaparray(array, uri, dn, filter, scope, security) Return type: boolean Description: Fills array with the entire LDAP record, and returns whether there was a match for the search. This function retrieves an entire record ...
35.912752
330
0.627172
917aecbe5694a7e0c75dd3ceba7356730077bbf5
5,952
py
Python
ftl/common/args.py
wgrzelak/runtimes-common
163729a385110fc87bdfcb780576c12f8352c940
[ "Apache-2.0" ]
1
2020-12-10T03:42:59.000Z
2020-12-10T03:42:59.000Z
ftl/common/args.py
wgrzelak/runtimes-common
163729a385110fc87bdfcb780576c12f8352c940
[ "Apache-2.0" ]
null
null
null
ftl/common/args.py
wgrzelak/runtimes-common
163729a385110fc87bdfcb780576c12f8352c940
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Google 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 by applicable law or ag...
32
78
0.582493
917b00a1536c4c4908a0c3d8e93451e44c80db56
2,743
py
Python
google-datacatalog-sisense-connector/tests/google/datacatalog_connectors/sisense/prepare/sisense_connector_strings_helper_test.py
anugrah86/datacatalog-connectors-bi
58cc57e12632cbd1e237b3d6930e519333c51f4e
[ "Apache-2.0" ]
27
2020-04-27T21:55:49.000Z
2022-02-18T22:09:13.000Z
google-datacatalog-sisense-connector/tests/google/datacatalog_connectors/sisense/prepare/sisense_connector_strings_helper_test.py
anugrah86/datacatalog-connectors-bi
58cc57e12632cbd1e237b3d6930e519333c51f4e
[ "Apache-2.0" ]
36
2020-05-01T15:26:14.000Z
2022-03-26T00:09:19.000Z
google-datacatalog-sisense-connector/tests/google/datacatalog_connectors/sisense/prepare/sisense_connector_strings_helper_test.py
anugrah86/datacatalog-connectors-bi
58cc57e12632cbd1e237b3d6930e519333c51f4e
[ "Apache-2.0" ]
18
2020-04-30T22:14:09.000Z
2022-01-13T10:28:03.000Z
#!/usr/bin/python # # Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
41.560606
78
0.739336
917b0388853d747ae3324fb82ccc25cbbc8e667b
20,769
py
Python
mlrun/utils/helpers.py
EdmondIguazio/mlrun
e63b34a610788ebe522ce7a46642e26927e39882
[ "Apache-2.0" ]
null
null
null
mlrun/utils/helpers.py
EdmondIguazio/mlrun
e63b34a610788ebe522ce7a46642e26927e39882
[ "Apache-2.0" ]
null
null
null
mlrun/utils/helpers.py
EdmondIguazio/mlrun
e63b34a610788ebe522ce7a46642e26927e39882
[ "Apache-2.0" ]
1
2021-05-05T14:19:46.000Z
2021-05-05T14:19:46.000Z
# Copyright 2018 Iguazio # # 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, softwa...
29.047552
103
0.586836
917b3b569a1956b301352abc458f7a9cffd115f5
18,751
py
Python
eegip/sources.py
christian-oreilly/eegip
521a408b65ec99b11ca7903f67288807704015e4
[ "BSD-3-Clause" ]
null
null
null
eegip/sources.py
christian-oreilly/eegip
521a408b65ec99b11ca7903f67288807704015e4
[ "BSD-3-Clause" ]
null
null
null
eegip/sources.py
christian-oreilly/eegip
521a408b65ec99b11ca7903f67288807704015e4
[ "BSD-3-Clause" ]
null
null
null
import os from glob import glob from mne import make_forward_solution from mne.minimum_norm import make_inverse_operator, apply_inverse_epochs from .config import eegip_config, load_additionnal_config from .path import get_path, parse_pattern from .recording import Recording import mne import xarray as xr import num...
44.966427
120
0.605728
917b85863f3ab4763f83da364d2b4646e88d6b2e
252
py
Python
tql/ml/automl/ft/__init__.py
Jie-Yuan/1_DataMining
f5338388b4f883233f350d4fb9c5903180883430
[ "Apache-2.0" ]
14
2019-06-25T13:46:32.000Z
2020-10-27T02:04:59.000Z
tql/ml/automl/ft/__init__.py
Jie-Yuan/2_DataMining
f5338388b4f883233f350d4fb9c5903180883430
[ "Apache-2.0" ]
null
null
null
tql/ml/automl/ft/__init__.py
Jie-Yuan/2_DataMining
f5338388b4f883233f350d4fb9c5903180883430
[ "Apache-2.0" ]
7
2019-06-25T13:26:16.000Z
2020-10-27T02:05:03.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Project : tql-Python. # @File : __init__.py # @Time : 2020/9/4 11:13 上午 # @Author : yuanjie # @Email : yuanjie@xiaomi.com # @Software : PyCharm # @Description :
21
36
0.519841
917b9055a5b1385366e8e3e2daddfecd44d58b31
2,270
py
Python
tests/integration/shell/minion.py
skrobul/salt
ef7fb71082cce7a9783e00b9c65062fefae09263
[ "Apache-2.0" ]
1
2018-02-03T17:30:56.000Z
2018-02-03T17:30:56.000Z
tests/integration/shell/minion.py
skrobul/salt
ef7fb71082cce7a9783e00b9c65062fefae09263
[ "Apache-2.0" ]
null
null
null
tests/integration/shell/minion.py
skrobul/salt
ef7fb71082cce7a9783e00b9c65062fefae09263
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' :codeauthor: :email:`Pedro Algarvio (pedro@algarvio.me)` :copyright: © 2012-2013 by the SaltStack Team, see AUTHORS for more details :license: Apache 2.0, see LICENSE for more details. tests.integration.shell.minion ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ''' # Import python li...
28.024691
79
0.586344
917b90fa688eaa8d8036fc294e964e160e504361
1,375
py
Python
grabber.py
varl/media-artwork
eff88f5dc2c2e37962b7ff0490f7c1378c9c1909
[ "MIT" ]
null
null
null
grabber.py
varl/media-artwork
eff88f5dc2c2e37962b7ff0490f7c1378c9c1909
[ "MIT" ]
null
null
null
grabber.py
varl/media-artwork
eff88f5dc2c2e37962b7ff0490f7c1378c9c1909
[ "MIT" ]
null
null
null
#-*- coding: utf-8 -*- import os import os.path import codecs import sys import re import urllib import fanarttv from meta import music_meta, movie_meta, tv_meta, scan_media from config import Config def scan_music(path): data = [] dirs = scan_media(path) for d in dirs: meta = music_meta(path, d) data ...
21.153846
64
0.663273
917b970f959447ab882e66350144fe2f34b8ceb0
4,491
py
Python
anchor_topic/topics.py
forest-snow/anchor-topic
ad947f2ff6aefc28394531fa74ba3e94e5a01fc2
[ "MIT" ]
13
2019-02-14T15:55:55.000Z
2022-03-03T01:01:28.000Z
anchor_topic/topics.py
forest-snow/anchor-topic
ad947f2ff6aefc28394531fa74ba3e94e5a01fc2
[ "MIT" ]
1
2020-11-12T22:49:16.000Z
2020-11-12T22:49:16.000Z
anchor_topic/topics.py
forest-snow/anchor-topic
ad947f2ff6aefc28394531fa74ba3e94e5a01fc2
[ "MIT" ]
2
2019-02-14T15:26:56.000Z
2021-08-21T02:37:53.000Z
from . import search, cooccur, recover import numpy import scipy.sparse import multiprocessing.pool # Functions for preprocessing lists # def flatten_list(lst): flat_lst = [item for sublist in lst for item in sublist] return flat_lst def convert_2dlist(lst, index): new_lst = [] for row in lst: ...
34.813953
95
0.683144
917b983d3cd83f26d14ef2ca9ddb8e134bf746ff
1,677
py
Python
models/problem_1.py
taoyilee/ml_final_project
0ac5ee3938d70e9ffcae8e186e0ef1a621391980
[ "Unlicense" ]
null
null
null
models/problem_1.py
taoyilee/ml_final_project
0ac5ee3938d70e9ffcae8e186e0ef1a621391980
[ "Unlicense" ]
null
null
null
models/problem_1.py
taoyilee/ml_final_project
0ac5ee3938d70e9ffcae8e186e0ef1a621391980
[ "Unlicense" ]
null
null
null
import numpy as np import mltools as ml if __name__ == "__main__": # Data Loading X = np.genfromtxt('data/X_train.txt', delimiter=None) Y = np.genfromtxt('data/Y_train.txt', delimiter=None) X, Y = ml.shuffleData(X, Y) print(f"Shape of X is {X.shape}") print(f"Shape of Y is {Y.shape}") for ...
40.902439
79
0.553965
917ba30ec8e97bd5b2b4979ed197d0c5c7ae2c38
4,268
py
Python
venv/Lib/site-packages/pyrogram/raw/functions/messages/forward_messages.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
2
2021-12-13T07:09:55.000Z
2022-01-12T12:15:20.000Z
venv/Lib/site-packages/pyrogram/raw/functions/messages/forward_messages.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pyrogram/raw/functions/messages/forward_messages.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free...
38.8
288
0.617385
917bc9aa00ed8ade1e4575fc5b29b6b62816d324
273
py
Python
test.py
bunCha-cob/IT-Project-Group-5
f67bb4e4bfafb4428b31668cc14a499704c86bd2
[ "Apache-2.0" ]
null
null
null
test.py
bunCha-cob/IT-Project-Group-5
f67bb4e4bfafb4428b31668cc14a499704c86bd2
[ "Apache-2.0" ]
null
null
null
test.py
bunCha-cob/IT-Project-Group-5
f67bb4e4bfafb4428b31668cc14a499704c86bd2
[ "Apache-2.0" ]
null
null
null
import subprocess import sys with open('test.log', 'wb') as f: process = subprocess.Popen("import sys; print(Hello from other console)", stdout=subprocess.PIPE) for line in iter(process.stdout.readline, 'b'): sys.stdout.write(line) f.write(line)
39
101
0.677656
917c717ec1b0339ac997ac20fb80c560b01685b4
14,809
py
Python
freerad_manager/identity/views.py
fizzi/django-freeradius-manager
d81fe6ed28b9bdb135c52c4a422df2760f72d0cb
[ "Apache-2.0" ]
null
null
null
freerad_manager/identity/views.py
fizzi/django-freeradius-manager
d81fe6ed28b9bdb135c52c4a422df2760f72d0cb
[ "Apache-2.0" ]
null
null
null
freerad_manager/identity/views.py
fizzi/django-freeradius-manager
d81fe6ed28b9bdb135c52c4a422df2760f72d0cb
[ "Apache-2.0" ]
null
null
null
import datetime import logging from django.conf import settings from django.contrib import auth from django.contrib.auth import (login as django_login, logout as django_logout, authenticate, get_user_model) from django.contrib.auth.decorators import log...
46.278125
138
0.552029
917c75934907778a4d87e63cd95f17f8fd849ce6
251
py
Python
Modulo 3/esPrimo.py
antonio343/clase
fda04a606246695aa5d93c8b2b5e2890a16d5973
[ "MIT" ]
null
null
null
Modulo 3/esPrimo.py
antonio343/clase
fda04a606246695aa5d93c8b2b5e2890a16d5973
[ "MIT" ]
null
null
null
Modulo 3/esPrimo.py
antonio343/clase
fda04a606246695aa5d93c8b2b5e2890a16d5973
[ "MIT" ]
null
null
null
numero=int(input("¿Que número quieres comprobar?")) denominador=2 resto=2.1 while denominador < resto: resto= numero%denominador if resto==0: print("El numero no es primo") denominador+=1 print("El numero es primo")
19.307692
51
0.649402
917c8539e1a51f1e890f747fefa9b0b18b8325fb
64
py
Python
dietr.py
essoplerck/dietr
982636c1fea848cf6b90c036dc6ca8a4f37f68a2
[ "MIT" ]
1
2020-09-25T03:53:46.000Z
2020-09-25T03:53:46.000Z
dietr.py
essoplerck/dietr
982636c1fea848cf6b90c036dc6ca8a4f37f68a2
[ "MIT" ]
null
null
null
dietr.py
essoplerck/dietr
982636c1fea848cf6b90c036dc6ca8a4f37f68a2
[ "MIT" ]
null
null
null
from dietr import app if __name__ == '__main__': app.run()
12.8
26
0.65625
917cbcc789f3a6b0f80010d60ee97a3298a4f408
304
py
Python
master/terraform-consul-lock-demo-master/terraform/configuration-utils/get_kv_token.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
4
2018-09-07T15:35:24.000Z
2019-03-27T09:48:12.000Z
master/terraform-consul-lock-demo-master/terraform/configuration-utils/get_kv_token.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
371
2020-03-04T21:51:56.000Z
2022-03-31T20:59:11.000Z
master/terraform-consul-lock-demo-master/terraform/configuration-utils/get_kv_token.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
3
2019-06-18T19:57:17.000Z
2020-11-06T03:55:08.000Z
import consul import json import pprint MASTER_TOKEN = "Arandom$tring" client = consul.Consul(token=MASTER_TOKEN) rules = """ key "app1/" { policy = "read" } key "app1/" { policy = "write" } """ token = client.acl.create(rules=rules) print(json.dumps(token, indent=4))
16
42
0.621711
917cd9a04efaf0d0675ff82504298282be67a185
46,903
py
Python
pandas/tests/frame/test_to_csv.py
MaxVanDeursen/pandas
9821b77de692716d7c2b62db1a68cac9ffc456c3
[ "BSD-3-Clause" ]
1
2019-03-25T09:31:34.000Z
2019-03-25T09:31:34.000Z
pandas/tests/frame/test_to_csv.py
MaxVanDeursen/pandas
9821b77de692716d7c2b62db1a68cac9ffc456c3
[ "BSD-3-Clause" ]
null
null
null
pandas/tests/frame/test_to_csv.py
MaxVanDeursen/pandas
9821b77de692716d7c2b62db1a68cac9ffc456c3
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import print_function import csv import os import numpy as np import pytest from pandas.compat import StringIO, lmap, lrange from pandas.errors import ParserError import pandas as pd from pandas import ( DataFrame, Index, MultiIndex, Series, Timestamp, compat, date_range...
37.947411
79
0.514743
917cda225362d5c0d333872c811e77dbaf7b60c6
5,391
py
Python
foliant/contrib/chapters.py
foliant-docs/foliantcontrib.utils
c740d14fa8f6fe4954c86e83db832fe7e8d26d24
[ "MIT" ]
null
null
null
foliant/contrib/chapters.py
foliant-docs/foliantcontrib.utils
c740d14fa8f6fe4954c86e83db832fe7e8d26d24
[ "MIT" ]
null
null
null
foliant/contrib/chapters.py
foliant-docs/foliantcontrib.utils
c740d14fa8f6fe4954c86e83db832fe7e8d26d24
[ "MIT" ]
null
null
null
from pathlib import Path from typing import Dict from typing import List from typing import Optional from typing import Iterator from typing import Union def flatten_seq(seq: Union[list, dict]) -> list: """convert a sequence of embedded sequences into a plain list""" result = [] vals = seq.values() if is...
32.672727
94
0.58709
917cda234092e10327c5d370ef44256e13327483
5,373
py
Python
todoapp/tests/todo_test.py
compilers-ai/create-django-app
1b3e8b30bd8428f163788428b6c37aecfa406e07
[ "MIT" ]
70
2021-03-03T08:59:42.000Z
2022-01-10T14:02:28.000Z
todoapp/tests/todo_test.py
compilers-ai/create-django-app
1b3e8b30bd8428f163788428b6c37aecfa406e07
[ "MIT" ]
2
2021-03-12T22:29:56.000Z
2021-12-13T05:46:06.000Z
todoapp/tests/todo_test.py
imagineai/create-django-app
e34337bfb7f1719f011344f856a385b21f01062f
[ "MIT" ]
6
2021-03-06T08:28:29.000Z
2021-09-29T13:10:29.000Z
import json import factory from django.core import management from django.test import TestCase from django.urls import reverse from faker import Factory from rest_framework import status from rest_framework.test import APIClient from ..models import Todo from .factories import CommentFactory, PersonFactory, TodoFacto...
40.704545
107
0.666853
917cfb472b4ee0e3d209df9965daf69f7268e2ab
33,909
py
Python
intersight/apis/iam_ldap_group_api.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/apis/iam_ldap_group_api.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/apis/iam_ldap_group_api.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Intersight REST API This is Intersight REST API OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import sys import os import re # python 2 and python 3 compatibility library from s...
47.558205
818
0.599929
917d26944fea23af28167074145f5a620fe57799
10,559
py
Python
All_Digital_VTSensor/1st_version/Hard_Macro/Sensor_Compiler.py
scale-lab/PVTsensors
e0111a8b63bb7ceccbb5ea0107a89c9ed80d3bad
[ "Apache-2.0" ]
14
2019-01-18T02:16:54.000Z
2021-12-19T11:31:26.000Z
All_Digital_VTSensor/1st_version/Hard_Macro/Sensor_Compiler.py
scale-lab/PVTsensors
e0111a8b63bb7ceccbb5ea0107a89c9ed80d3bad
[ "Apache-2.0" ]
null
null
null
All_Digital_VTSensor/1st_version/Hard_Macro/Sensor_Compiler.py
scale-lab/PVTsensors
e0111a8b63bb7ceccbb5ea0107a89c9ed80d3bad
[ "Apache-2.0" ]
3
2019-01-18T15:34:58.000Z
2020-04-24T22:28:28.000Z
########################################################## # Demo code for POSH Integartion Meeting # Created by Brown University Group # Founded by DARPA ########################################################## import math import re import sys # Welcome code welcome_text = 'Welcome to use VT Sensor Compiler\n\nMad...
38.536496
297
0.567573
917d2f36fcbc0a4dc97b7cb5c83de5d0148b3742
20,879
py
Python
tests/regressiontests/file_storage/tests.py
hafeez3000/django
08e1175ac8d683b692ec3c67dc31df149f07dc8f
[ "BSD-3-Clause" ]
4
2015-08-27T22:03:47.000Z
2017-09-04T08:13:44.000Z
tests/regressiontests/file_storage/tests.py
hafeez3000/django
08e1175ac8d683b692ec3c67dc31df149f07dc8f
[ "BSD-3-Clause" ]
null
null
null
tests/regressiontests/file_storage/tests.py
hafeez3000/django
08e1175ac8d683b692ec3c67dc31df149f07dc8f
[ "BSD-3-Clause" ]
1
2020-01-04T14:51:18.000Z
2020-01-04T14:51:18.000Z
# -*- coding: utf-8 -*- import os import errno import shutil import sys import tempfile import time from datetime import datetime, timedelta try: from cStringIO import StringIO except ImportError: from StringIO import StringIO try: import threading except ImportError: import dummy_threading as threadin...
37.085258
99
0.639446
917d35b3aff63f36d2e2d6bc5b24b9a587ef9710
395
py
Python
tarakania_rpg/rpg/items/consumables/consumable.py
MKokyn/discord-bot
00f58512739be9b2eec1adb16214c72da59e696b
[ "MIT" ]
1
2021-06-04T16:50:42.000Z
2021-06-04T16:50:42.000Z
tarakania_rpg/rpg/items/consumables/consumable.py
MKokyn/discord-bot
00f58512739be9b2eec1adb16214c72da59e696b
[ "MIT" ]
3
2021-06-02T00:22:51.000Z
2021-06-03T15:20:25.000Z
tarakania_rpg/rpg/items/consumables/consumable.py
MKokyn/discord-bot
00f58512739be9b2eec1adb16214c72da59e696b
[ "MIT" ]
2
2019-08-22T07:30:12.000Z
2021-06-04T16:49:42.000Z
from typing import Any, Dict from rpg.items import Item class Consumable(Item): __slots__ = ("modifiers",) def __init__(self, **kwargs: Any): self.modifiers: Dict[str, int] = kwargs.pop("modifiers", {}) super().__init__(**kwargs) def __repr__(self) -> str: return f"<{self.__cl...
23.235294
102
0.643038
917d4e4ffed0ed7260a88944a369c50ed72ec146
2,607
py
Python
es_search_exporter/collector.py
ipstatic/es_search_exporter
20d94b19ed0ae7e78d04187d91d753a1a05e84e4
[ "MIT" ]
13
2016-10-18T20:58:27.000Z
2019-07-24T02:21:22.000Z
es_search_exporter/collector.py
ipstatic/es_search_exporter
20d94b19ed0ae7e78d04187d91d753a1a05e84e4
[ "MIT" ]
2
2018-01-23T21:27:10.000Z
2021-03-25T21:47:06.000Z
es_search_exporter/collector.py
ipstatic/es_search_exporter
20d94b19ed0ae7e78d04187d91d753a1a05e84e4
[ "MIT" ]
4
2016-09-14T17:11:39.000Z
2018-11-19T11:10:02.000Z
import json import requests from requests_kerberos import HTTPKerberosAuth import time from prometheus_client import Metric, CollectorRegistry, generate_latest def collect_es(name, config, host, kerberos, tls): """Execute a search against Elasticsearch and return prometheus text format for it""" try: a...
50.134615
138
0.667817
917d5500b7094c7020aeae38a678fda57dc0d464
15,696
py
Python
dibase/rpi/gpio/test/pin-platformtests.py
ralph-mcardell/dibase-rpi-python
724c18d1f3c6745b3dddf582ea2272ed4e2df8ac
[ "BSD-3-Clause" ]
null
null
null
dibase/rpi/gpio/test/pin-platformtests.py
ralph-mcardell/dibase-rpi-python
724c18d1f3c6745b3dddf582ea2272ed4e2df8ac
[ "BSD-3-Clause" ]
null
null
null
dibase/rpi/gpio/test/pin-platformtests.py
ralph-mcardell/dibase-rpi-python
724c18d1f3c6745b3dddf582ea2272ed4e2df8ac
[ "BSD-3-Clause" ]
null
null
null
''' Part of the dibase.rpi.gpio.test package. Platform tests on read/write operations on single GPIO pin IO type instances. Developed by R.E. McArdell / Dibase Limited. Copyright (c) 2012,2013 Dibase Limited License: dual: GPL or BSD. ''' import time import unittest import sys if __name__ == ...
43.120879
96
0.68081
917d7cde3b63d2265e07189e1814d57d786d591b
8,355
py
Python
sdk/eventhub/azure-eventhubs/tests/asynctests/test_send_async.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
sdk/eventhub/azure-eventhubs/tests/asynctests/test_send_async.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
sdk/eventhub/azure-eventhubs/tests/asynctests/test_send_async.py
xiafu-msft/azure-sdk-for-python
4d9560cfd519ee60667f3cc2f5295a58c18625db
[ "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. #-----------------------------------------------------------------...
31.292135
118
0.670856
917d90ab6a80f609f93d152b4c4b490afc7ca7a5
9,781
py
Python
doctr/models/recognition/crnn/tensorflow.py
Mindee/doctr
b9d8feb1b4a2206e4944ef2dea109acc19585074
[ "Apache-2.0" ]
628
2021-02-13T21:49:37.000Z
2022-03-31T19:48:57.000Z
doctr/models/recognition/crnn/tensorflow.py
Mindee/doctr
b9d8feb1b4a2206e4944ef2dea109acc19585074
[ "Apache-2.0" ]
694
2021-02-08T15:23:38.000Z
2022-03-31T07:24:59.000Z
doctr/models/recognition/crnn/tensorflow.py
Mindee/doctr
b9d8feb1b4a2206e4944ef2dea109acc19585074
[ "Apache-2.0" ]
90
2021-04-28T05:39:02.000Z
2022-03-31T06:48:36.000Z
# Copyright (C) 2021, Mindee. # This program is licensed under the Apache License version 2. # See LICENSE or go to <https://www.apache.org/licenses/LICENSE-2.0.txt> for full license details. from copy import deepcopy from typing import Any, Dict, List, Optional, Tuple import tensorflow as tf from tensorflow.keras i...
35.057348
119
0.641141
917dc387c101bd84f810eec0e20010c1497fe08b
13,469
py
Python
fsupport.py
kappernie/udacity_image_classifier
fc6bbbb8104052f2603ea50c71808a659811631f
[ "MIT" ]
null
null
null
fsupport.py
kappernie/udacity_image_classifier
fc6bbbb8104052f2603ea50c71808a659811631f
[ "MIT" ]
null
null
null
fsupport.py
kappernie/udacity_image_classifier
fc6bbbb8104052f2603ea50c71808a659811631f
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import numpy as np import torch from torch import nn from torch import tensor from torch import optim import torch.nn.functional as F from torch.autograd import Variable from torchvision import datasets, transforms import torchvision.models as models from collections import OrderedDict i...
31.691765
274
0.512436
917e086abbefa5503996254a3a9ae3f13c87f348
19,646
py
Python
config/assembly_config.py
YifanQie/Deep_Learning_for_Manufacturing
9ba19e41f69c561b04b8573ab9c52c0969f45bfd
[ "MIT" ]
null
null
null
config/assembly_config.py
YifanQie/Deep_Learning_for_Manufacturing
9ba19e41f69c561b04b8573ab9c52c0969f45bfd
[ "MIT" ]
null
null
null
config/assembly_config.py
YifanQie/Deep_Learning_for_Manufacturing
9ba19e41f69c561b04b8573ab9c52c0969f45bfd
[ "MIT" ]
null
null
null
"""The assembly config file required to initialize the assembly class and perform model training and deployment :param assembly_system['data_type']: The incoming data type from the assembly/VRM system, currently defaults to 3D point cloud data :type assembly_system['data_type']: str (required) ...
57.110465
211
0.660745
917e3b0de6da444cd3770e0e62b4b7893299cfb8
556
py
Python
redmine_shell/__main__.py
shlomo90/redmine_shell
546a28ca216cf9d75082b5008089e8263916a876
[ "MIT" ]
1
2021-11-09T03:44:48.000Z
2021-11-09T03:44:48.000Z
redmine_shell/__main__.py
shlomo90/redmine_shell
546a28ca216cf9d75082b5008089e8263916a876
[ "MIT" ]
null
null
null
redmine_shell/__main__.py
shlomo90/redmine_shell
546a28ca216cf9d75082b5008089e8263916a876
[ "MIT" ]
null
null
null
""" Author: shlomo90 redmine_shell is a program based on shell terminal. It helps easily to edit issues, wiki, etc. in your redmine server. If you are a heavy CLI terminal user (or vim?), This is the one you are looking for. """ from redmine_shell.shell import Shell def debug_on(): import sys import redmin...
18.533333
66
0.692446
917e60dc5c642e8e9d098a0636c580785d55dc54
6,490
py
Python
Test09/test09_pCNN.py
hooloong/My_TensorFlow
ef115989035b9ae14938dca47c0814b0d16dd6ba
[ "MIT" ]
3
2018-07-29T17:31:58.000Z
2019-06-27T10:36:34.000Z
Test09/test09_pCNN.py
hooloong/My_TensorFlow
ef115989035b9ae14938dca47c0814b0d16dd6ba
[ "MIT" ]
null
null
null
Test09/test09_pCNN.py
hooloong/My_TensorFlow
ef115989035b9ae14938dca47c0814b0d16dd6ba
[ "MIT" ]
1
2019-02-18T02:27:39.000Z
2019-02-18T02:27:39.000Z
# -*- coding: utf-8 -*- import tensorflow as tf import numpy as np import os import cv2 # 如果使用mnist数据集,把MNIST设置为True MNIST = False if MNIST == True: from tensorflow.examples.tutorials.mnist import input_data data = input_data.read_data_sets('/tmp/') image_height = 28 image_width = 28 image_channe...
32.777778
123
0.602928
917e61ffaf01fcb268ca1e0f57e8b7dfb9e1b7a6
1,970
py
Python
kpiit/providers/datacite.py
lnielsen/kpiit
a48c1c2ff807aa63b04b776d010f7e6da9cfc2e0
[ "MIT" ]
null
null
null
kpiit/providers/datacite.py
lnielsen/kpiit
a48c1c2ff807aa63b04b776d010f7e6da9cfc2e0
[ "MIT" ]
11
2018-07-05T09:44:46.000Z
2019-08-26T08:57:39.000Z
kpiit/providers/datacite.py
lnielsen/kpiit
a48c1c2ff807aa63b04b776d010f7e6da9cfc2e0
[ "MIT" ]
2
2018-06-25T13:49:32.000Z
2018-09-14T10:01:41.000Z
# -*- coding: utf-8 -*- # # Copyright (C) 2018 CERN. # # KPIit is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """Uptime Robot provider.""" import requests from bs4 import BeautifulSoup from celery.utils.log import get_task_logger fr...
28.970588
72
0.603553
917e63ef73213e4cd7ea456c27766f4408ad25af
8,175
py
Python
cinder/volume/drivers/hitachi/vsp_horcm_fc.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
null
null
null
cinder/volume/drivers/hitachi/vsp_horcm_fc.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
2
2018-10-25T13:04:01.000Z
2019-08-17T13:15:24.000Z
cinder/volume/drivers/hitachi/vsp_horcm_fc.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
2
2018-10-17T13:32:50.000Z
2018-11-08T08:39:39.000Z
# Copyright (C) 2016, Hitachi, 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...
43.026316
79
0.587645
917e66df50cc32d7c5317e0ef4862d606a89d784
8,457
py
Python
experiments/soroush/lha/ikea.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/soroush/lha/ikea.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/soroush/lha/ikea.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
import rlkit.misc.hyperparameter as hyp from exp_util import ( run_experiment, parse_args, preprocess_args, ) from rlkit.launchers.exp_launcher import rl_experiment from furniture.env.furniture_multiworld import FurnitureMultiworld variant = dict( rl_variant=dict( do_state_exp=True, alg...
30.978022
85
0.57077
917ea27ccb44b67b0b3c97b172a3f09bda75b6b0
9,012
py
Python
data/level/level60.py
levelupai/match3-level-similarity
cc9b28b8741b41bea1273c8bc9b4d265d79a1dca
[ "Apache-2.0" ]
null
null
null
data/level/level60.py
levelupai/match3-level-similarity
cc9b28b8741b41bea1273c8bc9b4d265d79a1dca
[ "Apache-2.0" ]
6
2020-07-04T02:53:08.000Z
2022-03-11T23:53:14.000Z
data/level/level60.py
levelupai/match3-level-similarity
cc9b28b8741b41bea1273c8bc9b4d265d79a1dca
[ "Apache-2.0" ]
3
2019-12-31T11:42:59.000Z
2021-03-28T20:06:13.000Z
data = { 'level_index': 60, 'move_count': 22, 'board_info': { (0, 3): { 'base': (6, 1), 'next': (0, 1), 'prev': (0, -1) }, (0, 4): { 'base': (2, 1), 'next': (0, 1), 'prev': (0, -1) }, (0, 5): { ...
22.873096
34
0.199956
917ea3d97ea0809a55e4cd01a4cc4b583de930d6
1,381
py
Python
aoc/solutions/day_02.py
kwzrd/advent-of-code
293e3494e5a5addb8da9ad838756e08a1e790c51
[ "MIT" ]
null
null
null
aoc/solutions/day_02.py
kwzrd/advent-of-code
293e3494e5a5addb8da9ad838756e08a1e790c51
[ "MIT" ]
1
2021-05-18T20:52:01.000Z
2021-05-18T20:52:01.000Z
aoc/solutions/day_02.py
kwzrd/advent-of-code
293e3494e5a5addb8da9ad838756e08a1e790c51
[ "MIT" ]
null
null
null
# Reference: https://adventofcode.com/2020/day/2 import re import typing as t RE_CONSTRAINT = re.compile(r"(\d+)-(\d+) ([a-z]): ([a-z]+)") Constraint = t.Tuple[int, int, str, str] def parse_constraints(input_data: str) -> t.List[Constraint]: """Parse `input_data` into a list of `Constraint` tuples.""" cons...
25.109091
79
0.643012
917ed75ccae0db7600939683308ccee60af323bc
1,106
py
Python
test/unit/test_operators_ancestors.py
nccr-itmo/FedotWeb
763fb1f39ad2b69104b6568e6f941c4c67762e34
[ "BSD-3-Clause" ]
1
2020-12-24T10:49:02.000Z
2020-12-24T10:49:02.000Z
test/unit/test_operators_ancestors.py
nccr-itmo/FedotWeb
763fb1f39ad2b69104b6568e6f941c4c67762e34
[ "BSD-3-Clause" ]
null
null
null
test/unit/test_operators_ancestors.py
nccr-itmo/FedotWeb
763fb1f39ad2b69104b6568e6f941c4c67762e34
[ "BSD-3-Clause" ]
null
null
null
import os from fedot.core.optimisers.opt_history import OptHistory from app.api.composer.history_convert_utils import history_to_graph from utils import project_root def test_correct_operator_ancestors_count(client): case_path = os.path.join(project_root(), 'data/scoring/scoring_classification.json') histor...
38.137931
99
0.635624
917ed83d20213dd6381b1a7066a87f8a1067977a
3,750
py
Python
tests/test_schemes.py
m4ta1l/deal
2a8e9bf412b8635b00a2b798dd8802375814a1c8
[ "MIT" ]
1
2020-09-05T13:54:16.000Z
2020-09-05T13:54:16.000Z
tests/test_schemes.py
m4ta1l/deal
2a8e9bf412b8635b00a2b798dd8802375814a1c8
[ "MIT" ]
7
2020-09-05T13:54:28.000Z
2020-11-27T05:59:19.000Z
tests/test_schemes.py
Smirenost/deal
2a8e9bf412b8635b00a2b798dd8802375814a1c8
[ "MIT" ]
null
null
null
# external import marshmallow import pytest import vaa # project import deal @vaa.marshmallow class MarshMallowScheme(marshmallow.Schema): name = marshmallow.fields.Str() class CustomScheme(deal.Scheme): def is_valid(self): if not isinstance(self.data['name'], str): self.errors = vaa.Er...
23.291925
86
0.640533
917ee06ae892f284a6c7fabcc25ccd78dafe827a
4,405
py
Python
backend/backend/utils/marketdata_client.py
ravirahman/sancus
6563852b98edeb1068574e2d99e1fc18b815bee3
[ "MIT" ]
2
2022-03-17T04:50:20.000Z
2022-03-17T04:51:31.000Z
backend/backend/utils/marketdata_client.py
ravirahman/sancus
6563852b98edeb1068574e2d99e1fc18b815bee3
[ "MIT" ]
null
null
null
backend/backend/utils/marketdata_client.py
ravirahman/sancus
6563852b98edeb1068574e2d99e1fc18b815bee3
[ "MIT" ]
null
null
null
import logging from datetime import datetime from decimal import Decimal from typing import Tuple import pytz import requests from common.constants import Currency from common.utils.datetime import get_current_datetime from sqlalchemy.orm import sessionmaker from backend.sql.exchange_rate import ExchangeRate GEMINI_...
45.885417
120
0.665153
917ee1c9e3fa25f5d2bdd19bd6fd3dc6a45457fa
5,475
py
Python
earlier-2020/pytorch/block_mix/test_loc.py
transcendentsky/py_tutorials
fed8e6c8d79f854a1cebcfd5c37297a163846208
[ "Apache-2.0" ]
1
2018-06-18T12:09:33.000Z
2018-06-18T12:09:33.000Z
earlier-2020/pytorch/block_mix/test_loc.py
transcendentsky/py_tutorials
fed8e6c8d79f854a1cebcfd5c37297a163846208
[ "Apache-2.0" ]
null
null
null
earlier-2020/pytorch/block_mix/test_loc.py
transcendentsky/py_tutorials
fed8e6c8d79f854a1cebcfd5c37297a163846208
[ "Apache-2.0" ]
1
2018-06-18T12:13:21.000Z
2018-06-18T12:13:21.000Z
#coding:utf-8 import torch import torch.utils.data as data import numpy as np import torch.nn as nn import torchvision import torchvision.transforms as transforms from torch.autograd import Variable import torch.nn.functional as F from torch.optim import lr_scheduler from tensorboardX import SummaryWriter writer = Summ...
32.589286
92
0.526941
917eeecef3fac73e3950aecd43b6e3a88b5fb9b3
1,157
py
Python
lightly/transforms/solarize.py
Tekrific/lightly
75a1d56b4cee77f68e0f3166e3a412711d0dbb2d
[ "MIT" ]
1,515
2020-10-05T13:04:17.000Z
2022-03-31T16:14:55.000Z
lightly/transforms/solarize.py
Tekrific/lightly
75a1d56b4cee77f68e0f3166e3a412711d0dbb2d
[ "MIT" ]
628
2020-10-14T11:38:51.000Z
2022-03-31T14:40:54.000Z
lightly/transforms/solarize.py
Tekrific/lightly
75a1d56b4cee77f68e0f3166e3a412711d0dbb2d
[ "MIT" ]
108
2020-10-17T08:31:06.000Z
2022-03-20T16:44:22.000Z
""" Solarization """ # Copyright (c) 2021. Lightly AG and its affiliates. # All Rights Reserved import numpy as np from PIL import ImageOps class RandomSolarization(object): """Implementation of random image Solarization. Utilizes the integrated image operation `solarize` from Pillow. Solarization inve...
25.711111
80
0.619706
917f412318a3eda01f74274dbf1b99f6b203a853
15,952
py
Python
hybrid_ranking/matchzoo/main.py
yangliuy/Hybrid-Neural-Conversation-Model
329a9310b2608ed1c04d17285a16a7170d6d4703
[ "Apache-2.0" ]
22
2019-09-23T20:14:54.000Z
2022-02-24T20:49:35.000Z
hybrid_ranking/matchzoo/main.py
yangliuy/Hybrid-Neural-Conversation-Model
329a9310b2608ed1c04d17285a16a7170d6d4703
[ "Apache-2.0" ]
2
2019-08-31T08:41:14.000Z
2020-10-03T21:10:34.000Z
hybrid_ranking/matchzoo/main.py
yangliuy/Hybrid-Neural-Conversation-Model
329a9310b2608ed1c04d17285a16a7170d6d4703
[ "Apache-2.0" ]
3
2019-11-07T03:03:53.000Z
2020-10-23T15:50:44.000Z
# -*- coding: utf8 -*- import os import sys import time import json import argparse import random random.seed(49999) import numpy numpy.random.seed(49999) import tensorflow tensorflow.set_random_seed(49999) from collections import OrderedDict import keras import keras.backend as K from keras.models import Sequential,...
42.88172
133
0.600426
917f4d710cf0ca19a5aae9fe56388bb1a2c8407e
3,113
py
Python
apysc/_animation/animation_width_for_ellipse_interface.py
ynsnf/apysc
b10ffaf76ec6beb187477d0a744fca00e3efc3fb
[ "MIT" ]
null
null
null
apysc/_animation/animation_width_for_ellipse_interface.py
ynsnf/apysc
b10ffaf76ec6beb187477d0a744fca00e3efc3fb
[ "MIT" ]
null
null
null
apysc/_animation/animation_width_for_ellipse_interface.py
ynsnf/apysc
b10ffaf76ec6beb187477d0a744fca00e3efc3fb
[ "MIT" ]
null
null
null
"""Class implementation for the animation_width (for ellipse) interface. """ from typing import Union from apysc._animation.animation_interface_base import AnimationInterfaceBase from apysc._animation.animation_width_for_ellipse import \ AnimationWidthForEllipse from apysc._animation.easing import Easing ...
36.623529
78
0.593318
917f86e7fe5e5ed14d2c68c016f128f26a3fd697
534
py
Python
0x0F-python-object_relational_mapping/5-filter_cities.py
flourishcodes/holbertonschool-higher_level_programming
6fda5cca4ed960d7f3d40c26292ad55e1e7d3065
[ "MIT" ]
null
null
null
0x0F-python-object_relational_mapping/5-filter_cities.py
flourishcodes/holbertonschool-higher_level_programming
6fda5cca4ed960d7f3d40c26292ad55e1e7d3065
[ "MIT" ]
null
null
null
0x0F-python-object_relational_mapping/5-filter_cities.py
flourishcodes/holbertonschool-higher_level_programming
6fda5cca4ed960d7f3d40c26292ad55e1e7d3065
[ "MIT" ]
4
2018-05-01T05:04:15.000Z
2020-04-28T22:22:54.000Z
#!/usr/bin/python3 """ Python scripte to list items from MySQL """ import MySQLdb from sys import argv if __name__ == "__main__": db = MySQLdb.connect(host="localhost", port=3306, user=argv[1], passwd=argv[2], db=argv[3], charset="utf8") c = db.cursor() c.execute("SELECT cities....
25.428571
78
0.625468
917fa87273510ba2e1f289c266d85dbd96e130d7
16,586
py
Python
oscar/lib/python2.7/site-packages/faker/providers/person/ru_RU/__init__.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/faker/providers/person/ru_RU/__init__.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/faker/providers/person/ru_RU/__init__.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
# coding=utf-8 from __future__ import unicode_literals from collections import OrderedDict from .. import Provider as PersonProvider class Provider(PersonProvider): formats_male = OrderedDict(( ('{{last_name_male}} {{first_name_male}} {{middle_name_male}}', 0.97), ('{{prefix_male}} {{last...
60.532847
103
0.579103
917faee0a90107f738123e7b824d1b06a90b2132
5,033
py
Python
scripts/libAnt/drivers/usb.py
arsakhar/FitViz
49bcfa74db6a023e2032c3662dc92ab27b554746
[ "MIT" ]
1
2020-11-24T14:13:52.000Z
2020-11-24T14:13:52.000Z
scripts/libAnt/drivers/usb.py
arsakhar/FitViz
49bcfa74db6a023e2032c3662dc92ab27b554746
[ "MIT" ]
null
null
null
scripts/libAnt/drivers/usb.py
arsakhar/FitViz
49bcfa74db6a023e2032c3662dc92ab27b554746
[ "MIT" ]
null
null
null
from queue import Queue from threading import Event, Thread from usb import USBError, ENDPOINT_OUT, ENDPOINT_IN from usb.control import get_interface from usb.core import find from usb.util import find_descriptor, endpoint_direction, claim_interface, dispose_resources from scripts.libAnt.drivers.driver import Driver,...
35.443662
98
0.57123
917fbb4363be15cea2ebc4c3ae989daf694535fd
5,516
py
Python
main.py
Sobhan1996/gpt2-tpu
2fa82c28174cbdb22458cf60fb8c59e0ad67eb32
[ "MIT" ]
null
null
null
main.py
Sobhan1996/gpt2-tpu
2fa82c28174cbdb22458cf60fb8c59e0ad67eb32
[ "MIT" ]
null
null
null
main.py
Sobhan1996/gpt2-tpu
2fa82c28174cbdb22458cf60fb8c59e0ad67eb32
[ "MIT" ]
null
null
null
import argparse import json import logging import sys import time from functools import partial from pathlib import Path import tensorflow as tf from inputs import * from model_fns import * from predict_fns import * # This program was designed to function with multiple kinds of models, but currently only GPT2 is sup...
33.634146
150
0.63488
917fc423012bac975a82f808666480a90c8b9f87
650
py
Python
gpMgmt/bin/gpconfig_modules/database_segment_guc.py
rodel-talampas/gpdb
9c955e350334abbd922102f289f782697eb52069
[ "PostgreSQL", "Apache-2.0" ]
9
2018-04-20T03:31:01.000Z
2020-05-13T14:10:53.000Z
gpMgmt/bin/gpconfig_modules/database_segment_guc.py
rodel-talampas/gpdb
9c955e350334abbd922102f289f782697eb52069
[ "PostgreSQL", "Apache-2.0" ]
36
2017-09-21T09:12:27.000Z
2020-06-17T16:40:48.000Z
gpMgmt/bin/gpconfig_modules/database_segment_guc.py
rodel-talampas/gpdb
9c955e350334abbd922102f289f782697eb52069
[ "PostgreSQL", "Apache-2.0" ]
32
2017-08-31T12:50:52.000Z
2022-03-01T07:34:53.000Z
from gpconfig_modules.segment_guc import SegmentGuc class DatabaseSegmentGuc(SegmentGuc): def __init__(self, row): SegmentGuc.__init__(self, row) if len(row) < 3: raise Exception("must provide ['context', 'guc name', 'value']") self.value = row[2] def report_success_for...
26
101
0.630769
917fdbc6eb554cd34d9c5c97728fe57210f9906e
487
py
Python
PlayArea/screen/npTest2.py
JetStarBlues/Nand-2-Tetris
c27b5c2ac659f1edb63d36d89bf87e226bc5672c
[ "MIT" ]
null
null
null
PlayArea/screen/npTest2.py
JetStarBlues/Nand-2-Tetris
c27b5c2ac659f1edb63d36d89bf87e226bc5672c
[ "MIT" ]
null
null
null
PlayArea/screen/npTest2.py
JetStarBlues/Nand-2-Tetris
c27b5c2ac659f1edb63d36d89bf87e226bc5672c
[ "MIT" ]
null
null
null
''' # Original s = 300 for x in xrange(s): for y in xrange(s): screen.set_at( (x, y), (red, green, blue) ) # Faster? screenarray = np.zeros((s,s)) for x in range(100): screenarray.fill(?) pygame.surfarray.blit_array(screen, screenarray) ''' import numpy as np nRows = 2 nCols = 4 z = 3 bgCol =...
13.162162
60
0.579055