hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
36903acebc23474f337d040919537687c0fe638f
2,845
py
Python
sdk/python/pulumi_azure_native/web/v20210101/list_web_app_sync_function_triggers_slot.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/web/v20210101/list_web_app_sync_function_triggers_slot.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/web/v20210101/list_web_app_sync_function_triggers_slot.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities __...
34.695122
173
0.663972
41f442b704e89f6e4f69ff1c6ed80e8617baaabd
1,324
py
Python
models.py
anthill-gaming/blog
473f036afa77f5c27fb2b4be1aacf2631d9fea56
[ "MIT" ]
null
null
null
models.py
anthill-gaming/blog
473f036afa77f5c27fb2b4be1aacf2631d9fea56
[ "MIT" ]
null
null
null
models.py
anthill-gaming/blog
473f036afa77f5c27fb2b4be1aacf2631d9fea56
[ "MIT" ]
null
null
null
# For more details, see # http://docs.sqlalchemy.org/en/latest/orm/tutorial.html#declare-a-mapping from anthill.framework.db import db from anthill.framework.utils import timezone from sqlalchemy.ext.hybrid import hybrid_property class Post(db.Model): __tablename__ = 'posts' id = db.Column(db.Integer, primar...
32.292683
74
0.689577
efe5796d2e449abb8209b0e84c3b752b4cce3819
13,131
py
Python
build-tools/apb_packaging/sb_cfn_package/sb_cfn_package.py
isotoma/aws-servicebroker
6ff31872adaba26abd8266164fcdf96cfd757371
[ "Apache-2.0" ]
null
null
null
build-tools/apb_packaging/sb_cfn_package/sb_cfn_package.py
isotoma/aws-servicebroker
6ff31872adaba26abd8266164fcdf96cfd757371
[ "Apache-2.0" ]
null
null
null
build-tools/apb_packaging/sb_cfn_package/sb_cfn_package.py
isotoma/aws-servicebroker
6ff31872adaba26abd8266164fcdf96cfd757371
[ "Apache-2.0" ]
null
null
null
import argparse import logging import yaml import json from taskcat.utils import CFNYAMLHandler import os from random import random from base64 import b64encode import shutil import subprocess import re import jinja2 try: from aws_servicebroker_spec import AwsServiceBrokerSpec except: from sb_cfn_package.aws_se...
51.901186
268
0.618765
cff7451c9ed9c648fbb89a35b32affc876134c66
8,878
py
Python
plots.py
keyboardAnt/Decoupling-Gating-From-Linearity
8ca98c4e2723e776651983272cf570cbda027aad
[ "MIT" ]
null
null
null
plots.py
keyboardAnt/Decoupling-Gating-From-Linearity
8ca98c4e2723e776651983272cf570cbda027aad
[ "MIT" ]
null
null
null
plots.py
keyboardAnt/Decoupling-Gating-From-Linearity
8ca98c4e2723e776651983272cf570cbda027aad
[ "MIT" ]
null
null
null
from collections import defaultdict import numpy as np import matplotlib.pyplot as plt from tikzplotlib import save as tikz_save import parse plt.style.use("ggplot") ################################################################################ # ...
34.410853
122
0.513629
e32d2f0d0023d522a88b16ed9863bf336c5c2e86
1,018
py
Python
external_libs/wifi_config/tools/embed.py
q-barbar/esp-homekit-devices
3b5ead070f83296dfa70f6f8403beb6feccaadb2
[ "Apache-2.0" ]
75
2020-04-07T01:59:32.000Z
2022-03-24T23:28:52.000Z
external_libs/wifi_config/tools/embed.py
q-barbar/esp-homekit-devices
3b5ead070f83296dfa70f6f8403beb6feccaadb2
[ "Apache-2.0" ]
3
2020-04-13T03:34:59.000Z
2022-02-25T03:44:19.000Z
external_libs/wifi_config/tools/embed.py
q-barbar/esp-homekit-devices
3b5ead070f83296dfa70f6f8403beb6feccaadb2
[ "Apache-2.0" ]
22
2020-05-10T15:28:44.000Z
2021-09-26T15:34:33.000Z
#!/usr/bin/env python import re import sys def gen_embedded(content): content = re.sub(r'{{.*?}}', '%s', re.sub(r'{%.*?%}', '', content)) part_headers = list(re.finditer(r'<!-- part (\S+) -->', content)) if not part_headers: print 'Error: no parts found' return def process_part(part...
22.130435
71
0.510806
bd7357844f68627f9d663c31ef2a8ab8bc3bc034
1,624
py
Python
autotools/modelparser/excelpublicenumparser.py
LMiceOrg/Modelingtools
f372336d7c356dcf754db755f62165ba6961727a
[ "MIT" ]
1
2016-01-08T10:54:02.000Z
2016-01-08T10:54:02.000Z
autotools/modelparser/excelpublicenumparser.py
LMiceOrg/Modelingtools
f372336d7c356dcf754db755f62165ba6961727a
[ "MIT" ]
null
null
null
autotools/modelparser/excelpublicenumparser.py
LMiceOrg/Modelingtools
f372336d7c356dcf754db755f62165ba6961727a
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Excel PublicEnum表单解析器基类, ExcelPublicEnumParser Sheet struct: 枚举数据类型名称 数据类型描述 枚举项 值 值定义 """ import excelsheetparser class ExcelPublicEnumParser(excelsheetparser.ExcelSheetParser): def ParseExcelSheet(self, model, xl_name, sh_ctx, sh_idx, sh_...
37.767442
129
0.575123
983e52013371caa7ebac6f3d869a0fbed9755905
7,651
py
Python
tests/system/test_classify.py
JHUAPL/meta-system
d3e80e50d64e1a9e83d81efbcb8de1ec9cc34e03
[ "Apache-2.0" ]
5
2021-07-30T00:59:59.000Z
2022-03-23T16:52:46.000Z
tests/system/test_classify.py
JHUAPL/meta-system
d3e80e50d64e1a9e83d81efbcb8de1ec9cc34e03
[ "Apache-2.0" ]
null
null
null
tests/system/test_classify.py
JHUAPL/meta-system
d3e80e50d64e1a9e83d81efbcb8de1ec9cc34e03
[ "Apache-2.0" ]
null
null
null
# ********************************************************************** # Copyright (C) 2020 Johns Hopkins University Applied Physics Laboratory # # All Rights Reserved. # For any other permission, please contact the Legal Office at JHU/APL. # # Licensed under the Apache License, Version 2.0 (the "License"); # y...
45.272189
110
0.690759
4bc36d514183c9398c332bec352fa2d70a66818f
10,676
py
Python
uhd_restpy/testplatform/sessions/ixnetwork/topology/isistrillpseudoifaceattpoint1config_4c83cc199df8becee43d785e9ef03dc7.py
rfrye-github/ixnetwork_restpy
23eeb24b21568a23d3f31bbd72814ff55eb1af44
[ "MIT" ]
null
null
null
uhd_restpy/testplatform/sessions/ixnetwork/topology/isistrillpseudoifaceattpoint1config_4c83cc199df8becee43d785e9ef03dc7.py
rfrye-github/ixnetwork_restpy
23eeb24b21568a23d3f31bbd72814ff55eb1af44
[ "MIT" ]
null
null
null
uhd_restpy/testplatform/sessions/ixnetwork/topology/isistrillpseudoifaceattpoint1config_4c83cc199df8becee43d785e9ef03dc7.py
rfrye-github/ixnetwork_restpy
23eeb24b21568a23d3f31bbd72814ff55eb1af44
[ "MIT" ]
null
null
null
# MIT LICENSE # # Copyright 1997 - 2020 by IXIA Keysight # # 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, ...
40.904215
190
0.644998
24da1e620f8b774764cbc238578f7450a67e8d32
1,345
py
Python
skills/dff_program_y_dangerous/test.py
oserikov/dream
109ba2df799025dcdada1fddbb7380e1c03100eb
[ "Apache-2.0" ]
34
2021-08-18T14:51:44.000Z
2022-03-10T14:14:48.000Z
skills/dff_program_y_dangerous/test.py
oserikov/dream
109ba2df799025dcdada1fddbb7380e1c03100eb
[ "Apache-2.0" ]
27
2021-08-30T14:42:09.000Z
2022-03-17T22:11:45.000Z
skills/dff_program_y_dangerous/test.py
oserikov/dream
109ba2df799025dcdada1fddbb7380e1c03100eb
[ "Apache-2.0" ]
40
2021-08-22T07:13:32.000Z
2022-03-29T11:45:32.000Z
import requests def to_dialogs(sentences): utters = [{"text": sent, "user": {"user_type": "human"}} for sent in ["hi"] + sentences] return {"dialogs": [{"utterances": utters, "bot_utterances": utters, "human_utterances": utters}]} def main_test(): url = "http://0.0.0.0:8022/api/rest/v1.0/ask" senten...
43.387097
120
0.622305
11a0a59e67a824a3e455fd9377e05f969e9517e7
4,271
py
Python
lambdas/shared/t4_lambda_shared/decorator.py
BearerPipelineTest/quilt
5ebef2332dca7600d58d34b2e5a1821d442a3d35
[ "Apache-2.0" ]
62
2017-09-07T15:13:49.000Z
2017-12-13T02:20:01.000Z
lambdas/shared/t4_lambda_shared/decorator.py
BearerPipelineTest/quilt
5ebef2332dca7600d58d34b2e5a1821d442a3d35
[ "Apache-2.0" ]
41
2017-09-08T05:11:37.000Z
2017-12-14T13:14:35.000Z
lambdas/shared/t4_lambda_shared/decorator.py
BearerPipelineTest/quilt
5ebef2332dca7600d58d34b2e5a1821d442a3d35
[ "Apache-2.0" ]
8
2017-09-27T11:42:16.000Z
2017-12-10T03:07:03.000Z
""" Decorators for using lambdas in API Gateway """ import gzip import traceback import urllib.parse from base64 import b64decode, b64encode from functools import wraps from jsonschema import Draft4Validator, ValidationError GZIP_MIN_LENGTH = 1024 GZIP_TYPES = {'text/plain', 'application/json'} # Used, e.g., for bin...
33.108527
109
0.520253
fbb660dcad0a82ac1422d4517fcc69ac2b9185da
2,982
py
Python
sidecar/endpoint/tests/base.py
rmontenegroo/sidecar.endpoint
bb4392ac97583a599982898bea2f113476be09c1
[ "Apache-2.0" ]
null
null
null
sidecar/endpoint/tests/base.py
rmontenegroo/sidecar.endpoint
bb4392ac97583a599982898bea2f113476be09c1
[ "Apache-2.0" ]
null
null
null
sidecar/endpoint/tests/base.py
rmontenegroo/sidecar.endpoint
bb4392ac97583a599982898bea2f113476be09c1
[ "Apache-2.0" ]
null
null
null
"""Test setup for integration and functional tests. When we import PloneTestCase and then call setupPloneSite(), all of Plone's products are loaded, and a Plone site will be created. This happens at module level, which makes it faster to run each test, but slows down test runner startup. """ from Products.Five import...
36.365854
71
0.711938
035b30b95bc4b38684babb3dd4d934bd09f23d29
10,584
py
Python
main.py
wizofe/urus-mri-recon
eab8e48dca31d2b936ce69ccc251ec5a4a10facc
[ "MIT" ]
null
null
null
main.py
wizofe/urus-mri-recon
eab8e48dca31d2b936ce69ccc251ec5a4a10facc
[ "MIT" ]
null
null
null
main.py
wizofe/urus-mri-recon
eab8e48dca31d2b936ce69ccc251ec5a4a10facc
[ "MIT" ]
null
null
null
# models import shutil import sys from tensorboardX import SummaryWriter from torch import optim from utils.myloss import * import torch.nn.modules.loss as Loss from unet import UNet from utils import * from utils.cmplxBatchNorm import magnitude, normalizeComplexBatch_byMagnitudeOnly from utils.dataset import * # # ...
32.971963
116
0.510299
b36c5f4f4df15a8bd150032c3cd5416d695e0d58
285
py
Python
atest/testdata/running/skip/skiplib.py
rdagum/robotframework
b7069d505374e9f09a140ed5a9727d2a40716446
[ "ECL-2.0", "Apache-2.0" ]
7,073
2015-01-01T17:19:16.000Z
2022-03-31T22:01:29.000Z
atest/testdata/running/skip/skiplib.py
imust6226/robotframework
08c56fef2ebc64d682c7f99acd77c480d8d0e028
[ "ECL-2.0", "Apache-2.0" ]
2,412
2015-01-02T09:29:05.000Z
2022-03-31T13:10:46.000Z
atest/testdata/running/skip/skiplib.py
rticau/robotframework
33ee46dfacd5173c0a38d89c1a60abf6a747c8c0
[ "ECL-2.0", "Apache-2.0" ]
2,298
2015-01-03T02:47:15.000Z
2022-03-31T02:00:16.000Z
from robot.api import SkipExecution class CustomSkipException(Exception): ROBOT_SKIP_EXECUTION = True def skip_with_message(msg, html=False): raise SkipExecution(msg, html) def skip_with_custom_exception(): raise CustomSkipException("Skipped with custom exception.")
20.357143
63
0.785965
997f4985937e3b961efad0a0317248d90d43e916
637
py
Python
cpylog/jupyter_utils.py
cpylog/cpylog
4b0dd669e7f5bd6dfa1376d95d0c368bc42f9f19
[ "BSD-3-Clause" ]
1
2021-01-29T18:17:58.000Z
2021-01-29T18:17:58.000Z
cpylog/jupyter_utils.py
SteveDoyle2/cpylog
4b0dd669e7f5bd6dfa1376d95d0c368bc42f9f19
[ "BSD-3-Clause" ]
1
2020-01-03T22:14:38.000Z
2020-01-05T00:26:17.000Z
cpylog/jupyter_utils.py
cpylog/cpylog
4b0dd669e7f5bd6dfa1376d95d0c368bc42f9f19
[ "BSD-3-Clause" ]
2
2019-03-09T01:20:35.000Z
2020-06-17T03:15:30.000Z
from IPython.core.display import display, HTML WARNING_TO_COLOR_MAP = { 'DEBUG' : 'blue', 'INFO' : 'green', 'WARNING' : 'orange', 'ERROR' : 'red', 'EXCEPTION' : 'red', 'CRITICAL' : 'red', } def write_html(typ: str, name: str, msg: str, encoding: str) -> None: """ per: - https://st...
31.85
118
0.643642
554bb4c12f6809931b6a2e9f713102e9886487c2
3,036
py
Python
aliyun-python-sdk-gdb/aliyunsdkgdb/request/v20190903/DescribeBackupsRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
1,001
2015-07-24T01:32:41.000Z
2022-03-25T01:28:18.000Z
aliyun-python-sdk-gdb/aliyunsdkgdb/request/v20190903/DescribeBackupsRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
363
2015-10-20T03:15:00.000Z
2022-03-08T12:26:19.000Z
aliyun-python-sdk-gdb/aliyunsdkgdb/request/v20190903/DescribeBackupsRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
682
2015-09-22T07:19:02.000Z
2022-03-22T09:51:46.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
33
74
0.765481
d86db4e720242a5160ed56b43c7d2564e614cbd3
425
py
Python
saleor/greinar/migrations/0019_greinar_picture.py
wahello/sminor
24ffcafedfd0c0eff8db4a53e2f1f5f6ff3ebfc9
[ "BSD-3-Clause" ]
null
null
null
saleor/greinar/migrations/0019_greinar_picture.py
wahello/sminor
24ffcafedfd0c0eff8db4a53e2f1f5f6ff3ebfc9
[ "BSD-3-Clause" ]
null
null
null
saleor/greinar/migrations/0019_greinar_picture.py
wahello/sminor
24ffcafedfd0c0eff8db4a53e2f1f5f6ff3ebfc9
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 2.0.3 on 2018-06-20 22:56 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('greinar', '0018_remove_greinar_image'), ] operations = [ migrations.AddField( model_name='greinar', name='picture', ...
22.368421
87
0.616471
3ac64373b3ae65717b678d8ccca8aeb10cbc4b4c
1,983
py
Python
tests/test_models/test_cohort.py
wikimedia/analytics-wikimetrics
1d2036657b06ccd16ecfc76edd3f9a6119ff75f4
[ "MIT" ]
6
2015-01-28T05:59:08.000Z
2018-01-09T07:48:57.000Z
tests/test_models/test_cohort.py
wikimedia/analytics-wikimetrics
1d2036657b06ccd16ecfc76edd3f9a6119ff75f4
[ "MIT" ]
2
2020-05-09T16:36:43.000Z
2020-05-09T16:52:35.000Z
tests/test_models/test_cohort.py
wikimedia/analytics-wikimetrics
1d2036657b06ccd16ecfc76edd3f9a6119ff75f4
[ "MIT" ]
1
2016-01-13T07:19:44.000Z
2016-01-13T07:19:44.000Z
from nose.tools import assert_equal, raises from wikimetrics.models import CohortStore, WikiUserStore from wikimetrics.api import CohortService from ..fixtures import DatabaseTest class CohortStoreTest(DatabaseTest): def setUp(self): DatabaseTest.setUp(self) self.common_cohort_1() self.co...
36.722222
86
0.669188
3eb8a4f54238bf701dcb3b035c57a5e5bfce0c85
10,746
py
Python
tests/test_red_flags.py
Anguandia/i-reporter
61c8236174101a229a72a2a4a01c465062dba893
[ "MIT" ]
null
null
null
tests/test_red_flags.py
Anguandia/i-reporter
61c8236174101a229a72a2a4a01c465062dba893
[ "MIT" ]
null
null
null
tests/test_red_flags.py
Anguandia/i-reporter
61c8236174101a229a72a2a4a01c465062dba893
[ "MIT" ]
null
null
null
import os import pytest import json from tests.test_data import dat from app import implementation, routes @pytest.fixture(scope='function') def client(): red_flags = implementation.red_flags app = routes.app test_client = app.test_client() red_flags.clear() cxt = app.app_context() cxt.push() ...
35.465347
79
0.692351
df56625a599843b0885c8ff45b19bf144a35b733
4,596
py
Python
Src/StdLib/Lib/test/test_shelve.py
cwensley/ironpython2
f854444e1e08afc8850cb7c1a739a7dd2d10d32a
[ "Apache-2.0" ]
2,209
2016-11-20T10:32:58.000Z
2022-03-31T20:51:27.000Z
Src/StdLib/Lib/test/test_shelve.py
cwensley/ironpython2
f854444e1e08afc8850cb7c1a739a7dd2d10d32a
[ "Apache-2.0" ]
1,074
2016-12-07T05:02:48.000Z
2022-03-22T02:09:11.000Z
Src/StdLib/Lib/test/test_shelve.py
cwensley/ironpython2
f854444e1e08afc8850cb7c1a739a7dd2d10d32a
[ "Apache-2.0" ]
338
2020-04-18T08:03:10.000Z
2022-03-29T12:33:22.000Z
import os import unittest import shelve import glob from test import test_support test_support.import_module('anydbm', deprecated=True) class TestCase(unittest.TestCase): fn = "shelftemp" + os.extsep + "db" def test_close(self): d1 = {} s = shelve.Shelf(d1, protocol=2, writeback=False) ...
28.02439
74
0.549391
5246d8fa864a7ee6843d9c146fb41b6952880e36
75,520
py
Python
release/scripts/startup/bl_ui/space_view3d_toolbar.py
scorpion81/boneMaster
4a1e45679b979b7eb646c91e2f67596a474a3e0b
[ "Naumen", "Condor-1.1", "MS-PL" ]
3
2019-07-20T23:14:45.000Z
2019-11-02T13:31:10.000Z
release/scripts/startup/bl_ui/space_view3d_toolbar.py
scorpion81/boneMaster
4a1e45679b979b7eb646c91e2f67596a474a3e0b
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
release/scripts/startup/bl_ui/space_view3d_toolbar.py
scorpion81/boneMaster
4a1e45679b979b7eb646c91e2f67596a474a3e0b
[ "Naumen", "Condor-1.1", "MS-PL" ]
1
2019-11-02T13:31:13.000Z
2019-11-02T13:31:13.000Z
# ##### BEGIN GPL LICENSE BLOCK ##### # # 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 the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distrib...
33.911091
110
0.654449
17a35ee8d2294ef06b593b209e0a444ad9bed9ed
87
py
Python
brood/__main__.py
JoshKarpel/brood
22a454bdd462a29d895f218ba28a3c4ca51f9767
[ "MIT" ]
null
null
null
brood/__main__.py
JoshKarpel/brood
22a454bdd462a29d895f218ba28a3c4ca51f9767
[ "MIT" ]
36
2021-08-31T01:50:03.000Z
2022-03-14T20:50:13.000Z
brood/__main__.py
JoshKarpel/brood
22a454bdd462a29d895f218ba28a3c4ca51f9767
[ "MIT" ]
null
null
null
from .constants import PACKAGE_NAME from .main import app app(prog_name=PACKAGE_NAME)
17.4
35
0.827586
91e62939a9d6b5597c037baec97bbcfb5d97261e
98,510
py
Python
modbus_server/modbus_redis_server_py3/backup/minimalmodbus.py
bopopescu/docker_images_a
348d0982c5962f2ae34d10183ed9522b7a6fe286
[ "MIT" ]
2
2018-02-21T03:46:51.000Z
2019-12-24T16:40:51.000Z
modbus_server/modbus_redis_server_py3/backup/minimalmodbus.py
bopopescu/docker_images_a
348d0982c5962f2ae34d10183ed9522b7a6fe286
[ "MIT" ]
7
2020-07-16T19:54:08.000Z
2022-03-02T03:29:07.000Z
modbus_server/modbus_redis_server_py3/backup/minimalmodbus.py
bopopescu/docker_images_a
348d0982c5962f2ae34d10183ed9522b7a6fe286
[ "MIT" ]
2
2018-04-16T07:02:35.000Z
2020-07-23T21:57:19.000Z
#!/usr/bin/env python # # Copyright 2015 Jonas Berg # # 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...
38.601097
215
0.633905
15c8f408f5cb66f652c7388e632faac2c4e926a9
405
py
Python
db/base_model.py
convers39/IR-ecommerce
57665aace80c14b52a40a9576de8b433a13f8f3f
[ "MIT" ]
2
2021-10-12T11:04:57.000Z
2022-01-04T08:17:11.000Z
db/base_model.py
convers39/IR-ecommerce
57665aace80c14b52a40a9576de8b433a13f8f3f
[ "MIT" ]
null
null
null
db/base_model.py
convers39/IR-ecommerce
57665aace80c14b52a40a9576de8b433a13f8f3f
[ "MIT" ]
1
2021-04-30T16:43:29.000Z
2021-04-30T16:43:29.000Z
from django.db import models class BaseModel(models.Model): """ Base model inheritated by other models """ created_at = models.DateTimeField( auto_now_add=True, verbose_name='created') updated_at = models.DateTimeField(auto_now=True, verbose_name='updated') is_deleted = models.BooleanF...
27
76
0.706173
7acaa7de72abba5851d4aa1ab67c2698e0189391
4,207
py
Python
bambi/families/likelihood.py
yannmclatchie/bambi
363cb3bf2fd4170e49625d9c063a4da13e6af9e0
[ "MIT" ]
793
2016-09-08T22:41:00.000Z
2022-03-25T20:19:12.000Z
bambi/families/likelihood.py
yannmclatchie/bambi
363cb3bf2fd4170e49625d9c063a4da13e6af9e0
[ "MIT" ]
397
2016-08-25T05:28:41.000Z
2022-03-28T15:09:01.000Z
bambi/families/likelihood.py
yannmclatchie/bambi
363cb3bf2fd4170e49625d9c063a4da13e6af9e0
[ "MIT" ]
93
2016-09-09T03:16:28.000Z
2022-03-16T12:16:35.000Z
from bambi.priors import Prior from bambi.utils import multilinify, spacify DISTRIBUTIONS = { "Bernoulli": {"params": ("p",), "parent": "p", "args": None}, "Beta": {"params": ("mu", "kappa"), "parent": "mu", "args": ("kappa",)}, "Binomial": {"params": ("p",), "parent": "p", "args": None}, "Categorical"...
37.900901
100
0.599952
60d469d50d5121b661d0fae037a87755976bb0d7
344
py
Python
test/accessor/test_both.py
Zeroto521/my-data-toolkit
bde37f625aa81e65b97648798535f6d931864888
[ "MIT" ]
1
2021-10-09T04:50:58.000Z
2021-10-09T04:50:58.000Z
test/accessor/test_both.py
Zeroto521/my-data-toolkit
bde37f625aa81e65b97648798535f6d931864888
[ "MIT" ]
427
2021-06-04T02:40:22.000Z
2022-03-30T12:55:52.000Z
test/accessor/test_both.py
Zeroto521/my-data-toolkit
bde37f625aa81e65b97648798535f6d931864888
[ "MIT" ]
1
2021-07-09T09:56:44.000Z
2021-07-09T09:56:44.000Z
from test.accessor import d from test.accessor import s import pytest from dtoolkit.accessor.dataframe import cols # noqa from dtoolkit.accessor.series import cols # noqa @pytest.mark.parametrize( "df, expt", [ (s, s.name), (d, d.columns.tolist()), ], ) def test_column(df, expt): a...
18.105263
52
0.65407
5215945254d3a2e7d7a65f19949b3eb971c0bd78
608
py
Python
conferences/models.py
red-and-black/friendly
f453344ad1e9173ad3545e4ea0c825b65190b3c5
[ "Apache-2.0" ]
2
2020-01-28T12:56:56.000Z
2021-07-02T03:07:39.000Z
conferences/models.py
red-and-black/friendly
f453344ad1e9173ad3545e4ea0c825b65190b3c5
[ "Apache-2.0" ]
5
2021-03-18T23:02:11.000Z
2021-09-17T11:02:08.000Z
conferences/models.py
red-and-black/goodchat
1a391a04d4edfbcefaf87663f08308dd58578634
[ "Apache-2.0" ]
null
null
null
from django.db import models class Conference(models.Model): name = models.CharField(max_length=255) hashtag = models.CharField(max_length=40) collective_noun = models.CharField(max_length=40, default='attendees') polling_interval = models.PositiveSmallIntegerField(default=5) location = models.Cha...
40.533333
74
0.753289
3bd87b7b3aa08dff8dab4677493fed51b45a1964
2,465
py
Python
tools/ISysPy/isys.py
thekaigonzalez/ISys
16b933dc25551268bdcdba36a925c7203859e52e
[ "MIT" ]
null
null
null
tools/ISysPy/isys.py
thekaigonzalez/ISys
16b933dc25551268bdcdba36a925c7203859e52e
[ "MIT" ]
null
null
null
tools/ISysPy/isys.py
thekaigonzalez/ISys
16b933dc25551268bdcdba36a925c7203859e52e
[ "MIT" ]
null
null
null
import os import sys """ ISysPy - Python replica of ISys """ # fix2: Remove "data" #data = ["PRINT"] datap = ["ISYS_PRINT", "ISYS_EXECUTE"] class Statement: # create statement (ISys statement) def __init__(self, statement ): self.stat = statement def split_down(self): return self.stat.spl...
23.932039
67
0.595538
d3b2d6fcc19b5f3b93749b3ee20a091ba26fda0d
2,120
py
Python
TrackProblems/migration/env.py
tongpa/TrackProblems
41e827a21907f0e9e4cc036ec0f96ab379b94544
[ "Apache-2.0" ]
null
null
null
TrackProblems/migration/env.py
tongpa/TrackProblems
41e827a21907f0e9e4cc036ec0f96ab379b94544
[ "Apache-2.0" ]
null
null
null
TrackProblems/migration/env.py
tongpa/TrackProblems
41e827a21907f0e9e4cc036ec0f96ab379b94544
[ "Apache-2.0" ]
null
null
null
from __future__ import with_statement from alembic import context from sqlalchemy import engine_from_config, pool from logging.config import fileConfig # this is the Alembic Config object, which provides # access to the values within the .ini file in use. config = context.config # Interpret the config file for Python...
28.648649
69
0.706604
cd2ff3688bce9a6c9e70026d770f0288cb14774a
6,675
py
Python
market_financial.py
Gauravk2610/ShareMarket-Crypto-Currency-Bot-
4f5fac6bb6a7f51cafb89a12b4d76efffcbde0be
[ "MIT" ]
4
2020-10-27T05:27:04.000Z
2021-08-13T15:43:05.000Z
market_financial.py
Gauravk2610/ShareMarket-Crypto-Currency-Bot-
4f5fac6bb6a7f51cafb89a12b4d76efffcbde0be
[ "MIT" ]
null
null
null
market_financial.py
Gauravk2610/ShareMarket-Crypto-Currency-Bot-
4f5fac6bb6a7f51cafb89a12b4d76efffcbde0be
[ "MIT" ]
2
2021-05-02T23:24:01.000Z
2021-05-14T05:28:01.000Z
import requests from bs4 import BeautifulSoup import json URL = ["https://www.moneycontrol.com/india/stockpricequote/banks-private-sector/hdfcbank/HDF01", "https://www.moneycontrol.com/india/stockpricequote/banks-private-sector/axisbank/AB16", "https://www.moneycontrol.com/india/stockpricequote/banks-private-sector/...
73.351648
424
0.619625
60f6e2ed669b99c27a9549ca1a88986b5a644aaf
12,664
py
Python
main.py
LucasFernando-aes/MS-DIAL
e18a07b989c311a8c77149c7c45c0be6ec293aed
[ "MIT" ]
2
2021-09-18T10:01:49.000Z
2021-09-19T09:13:06.000Z
main.py
LucasFernando-aes/MS-DIAL
e18a07b989c311a8c77149c7c45c0be6ec293aed
[ "MIT" ]
null
null
null
main.py
LucasFernando-aes/MS-DIAL
e18a07b989c311a8c77149c7c45c0be6ec293aed
[ "MIT" ]
null
null
null
import os import time import argparse import numpy as np import torch import torch.optim as optim from sklearn.manifold import TSNE import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D import seaborn as sns import umap from model import DarnMLP, DarnConv, MdmnMLP, MdmnConv, MsdaMLP, MsdaConv, MSDi...
39.20743
153
0.599021
f743f075b71f34c008fe9a24eeb0107af283da24
809
py
Python
castor_krfe/matrices.py
maremita/CASTOR_KRFE
2cc01d202640a580f9923ab6ff262f0ba1e1ec0c
[ "MIT" ]
null
null
null
castor_krfe/matrices.py
maremita/CASTOR_KRFE
2cc01d202640a580f9923ab6ff262f0ba1e1ec0c
[ "MIT" ]
null
null
null
castor_krfe/matrices.py
maremita/CASTOR_KRFE
2cc01d202640a580f9923ab6ff262f0ba1e1ec0c
[ "MIT" ]
null
null
null
def generateMatrice(data, K_mer, k): # Variables X = [] # Generate K-mer dictionnary X_dict = {} for i, e in enumerate(K_mer): X_dict[e] = 0; # Generates X (matrix attributes) for d in data: x = [] x_dict = X_dict.copy() # Count K-mer occurences (with overlaping) for i in range(0, len(d[1]) - k + 1...
20.74359
64
0.637824
f04dcf5514965ebbef89cfcee455b91904323660
2,887
py
Python
wc.py
hebi123/tupianpubuliu
baa51245d95a2d8fa74f0c54a00694c956becfa4
[ "MIT" ]
137
2015-07-18T20:59:41.000Z
2021-03-02T01:07:05.000Z
wc.py
hebi123/tupianpubuliu
baa51245d95a2d8fa74f0c54a00694c956becfa4
[ "MIT" ]
null
null
null
wc.py
hebi123/tupianpubuliu
baa51245d95a2d8fa74f0c54a00694c956becfa4
[ "MIT" ]
43
2015-07-18T23:58:00.000Z
2019-11-30T03:32:34.000Z
from flask import Blueprint, request, url_for from models import Image, Runtime, User import settings import requests import hashlib import xmltodict import time import shortuuid appid = settings.wc_appid secret = settings.wc_secret wc_id = settings.wc_id wc_token = settings.wc_token wc = Blueprint('wc', __name__, te...
28.584158
119
0.625216
8c3d0da98976659760ec8482c047a019f2bfd04e
409
py
Python
BinarySearch/cyclically_shifted_array_index.py
DomirScire/DataStructs
a7e417df93598743305db95f818def8bdf9fca4c
[ "MIT" ]
1
2021-03-19T01:20:38.000Z
2021-03-19T01:20:38.000Z
BinarySearchAlgorithm_Usecases/cyclically_shifted_array_index.py
DomirScire/DataStructs
a7e417df93598743305db95f818def8bdf9fca4c
[ "MIT" ]
null
null
null
BinarySearchAlgorithm_Usecases/cyclically_shifted_array_index.py
DomirScire/DataStructs
a7e417df93598743305db95f818def8bdf9fca4c
[ "MIT" ]
null
null
null
# DomirScire """ Write a function that determines the index of the smallest element of the cyclically sorted array. """ def find(A): low=0 high=len(A)-1 while low < high: mid=(low+high)//2 if A[mid] > A[high]: low = mid + 1 elif A[mid] <= A[high]: high = mid...
17.782609
98
0.535452
55b6d9dfbea6afefd44a94ebd9e3253badb171c2
593
py
Python
CTMP/experimentation/perplexity/perplexity.py
buzzer4mornin/CTMP-ThesisProject
83e54700d0edd8dd141127998dacd7faf11be081
[ "MIT" ]
5
2021-07-11T13:36:37.000Z
2022-02-07T22:21:13.000Z
CTMP/experimentation/perplexity/perplexity.py
buzzer4mornin/CTMP-ThesisProject
83e54700d0edd8dd141127998dacd7faf11be081
[ "MIT" ]
null
null
null
CTMP/experimentation/perplexity/perplexity.py
buzzer4mornin/CTMP-ThesisProject
83e54700d0edd8dd141127998dacd7faf11be081
[ "MIT" ]
null
null
null
import sys sys.path.insert(0, '../../common') import perplexity_vb def compute_perplexities_vb(beta, alpha, eta, max_iter, corpusids_part1, wordids_1, wordcts_1, wordids_2, wordcts_2): vb = per_vb.VB(beta, alpha, eta, max_iter) LD2 = vb.compute_perplexity(corpusids_part1[k], corpusc...
45.615385
111
0.634064
e0cb7b41ee66b3f8d2658fa315de1a204ecdc8f1
1,556
py
Python
dev/breeze/src/airflow_breeze/utils/ci_group.py
ReadytoRocc/airflow
ec6761a5c0d031221d53ce213c0e42813606c55d
[ "Apache-2.0" ]
8,092
2016-04-27T20:32:29.000Z
2019-01-05T07:39:33.000Z
dev/breeze/src/airflow_breeze/utils/ci_group.py
ReadytoRocc/airflow
ec6761a5c0d031221d53ce213c0e42813606c55d
[ "Apache-2.0" ]
2,961
2016-05-05T07:16:16.000Z
2019-01-05T08:47:59.000Z
dev/breeze/src/airflow_breeze/utils/ci_group.py
ReadytoRocc/airflow
ec6761a5c0d031221d53ce213c0e42813606c55d
[ "Apache-2.0" ]
3,546
2016-05-04T20:33:16.000Z
2019-01-05T05:14:26.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
36.186047
125
0.723008
58a0837d6c483a152a7bf84eea5770323c50391b
968
py
Python
tourney/lookup.py
seangeggie/tourney
405b6abd35d7501a094b3fd4a8d5fd215f073912
[ "MIT" ]
null
null
null
tourney/lookup.py
seangeggie/tourney
405b6abd35d7501a094b3fd4a8d5fd215f073912
[ "MIT" ]
null
null
null
tourney/lookup.py
seangeggie/tourney
405b6abd35d7501a094b3fd4a8d5fd215f073912
[ "MIT" ]
null
null
null
class Lookup: def __init__(self, client): self.__client = client self.__all_channels = None self.__all_users = {} def channel_id_by_name(self, name): self.__init_channels() for channel in self.__all_channels: if channel["name"] == name: return channel["id"] return None def ...
27.657143
89
0.688017
25cb2361bcda60d4db0d4d8a077971eb782dbfc9
3,324
py
Python
examples/advanced/ex_forcefield_fit.py
JeschkeLab/DeerLab
ae890ef20a9fec7e5bdf16bf38ba5d52d0445d27
[ "MIT" ]
16
2020-05-04T09:09:23.000Z
2022-01-28T13:41:31.000Z
examples/advanced/ex_forcefield_fit.py
JeschkeLab/DeerLab
ae890ef20a9fec7e5bdf16bf38ba5d52d0445d27
[ "MIT" ]
188
2020-04-23T07:18:12.000Z
2022-03-29T19:04:12.000Z
examples/advanced/ex_forcefield_fit.py
JeschkeLab/DeerLab
ae890ef20a9fec7e5bdf16bf38ba5d52d0445d27
[ "MIT" ]
11
2020-05-08T17:33:04.000Z
2022-03-17T05:15:08.000Z
#%% """ Fit a polynomial force field to a dipolar signal ============================================================================ This example shows how to extract a force fields (modelled as a polynomial function) from a dipolar signal. """ #%% # Import required libraries import numpy as np import matplotlib...
30.777778
91
0.705475
8f25eae21d18e9bb892ac4ddc67c45dae2508638
10,110
py
Python
server/athenian/api/controllers/features/jira/issue_metrics.py
athenianco/athenian-api
dd5556101a8c49703d6b0516e4268b9e8d8eda5b
[ "RSA-MD" ]
9
2020-10-11T22:12:03.000Z
2022-02-26T02:16:45.000Z
server/athenian/api/controllers/features/jira/issue_metrics.py
athenianco/athenian-api
dd5556101a8c49703d6b0516e4268b9e8d8eda5b
[ "RSA-MD" ]
246
2019-12-05T06:37:30.000Z
2022-03-29T10:00:07.000Z
server/athenian/api/controllers/features/jira/issue_metrics.py
athenianco/athenian-api
dd5556101a8c49703d6b0516e4268b9e8d8eda5b
[ "RSA-MD" ]
5
2019-12-04T22:38:05.000Z
2021-02-26T00:50:04.000Z
from datetime import timedelta from typing import Dict, Sequence, Type import numpy as np import pandas as pd from athenian.api.controllers.features.metric import MetricInt, MetricTimeDelta from athenian.api.controllers.features.metric_calculator import AverageMetricCalculator, \ BinnedHistogramCalculator, Binned...
41.434426
97
0.693274
09f195f63254e7792e6f4d056dda0911de4af0f3
3,476
py
Python
hexonet/ispapicli/gui/login.py
angrycaptain19/ispapicli-test
e119d997caf4dff0c746d66824f15d0a4491c9c2
[ "MIT" ]
null
null
null
hexonet/ispapicli/gui/login.py
angrycaptain19/ispapicli-test
e119d997caf4dff0c746d66824f15d0a4491c9c2
[ "MIT" ]
1
2021-02-23T12:37:44.000Z
2021-02-23T12:37:44.000Z
hexonet/ispapicli/gui/login.py
angrycaptain19/ispapicli-test
e119d997caf4dff0c746d66824f15d0a4491c9c2
[ "MIT" ]
null
null
null
from PyQt5.QtWidgets import QApplication, QMessageBox, QDialog, QGridLayout, QVBoxLayout, QHBoxLayout, QLineEdit, QComboBox, QLabel, QStyleFactory, QGroupBox, QPushButton, QFormLayout, QDesktopWidget from PyQt5.QtCore import Qt, QSize from PyQt5.QtGui import QIcon, QMovie from modules.core import Core import time impor...
32.792453
199
0.61939
8b9fbbd01be0aeb794ec4dd8d471c4c43f9d3fdf
538
py
Python
__manifest__.py
rocketgithub/pos_sv
2786ca31559cd198ad909990edae49926e0059e8
[ "BSD-3-Clause" ]
null
null
null
__manifest__.py
rocketgithub/pos_sv
2786ca31559cd198ad909990edae49926e0059e8
[ "BSD-3-Clause" ]
null
null
null
__manifest__.py
rocketgithub/pos_sv
2786ca31559cd198ad909990edae49926e0059e8
[ "BSD-3-Clause" ]
1
2021-01-27T00:20:55.000Z
2021-01-27T00:20:55.000Z
# -*- coding: utf-8 -*- { 'name': "Point of Sale para El Salvador", 'summary': """Cambios al Punto de Venta para el manejo en El Salvador""", 'description': """Cambios al Punto de Venta para el manejo en El Salvador""", 'author': "aquíH", 'website': "http://www.aquih.com", 'category': 'Point...
21.52
81
0.552045
dc9b39c8da78f43a1a48db3990f222d81527e869
1,507
py
Python
tests/functional/scripts/pyi_lib_sphinx.py
yoda-vid/pyinstaller
419f349dad721a253b19d9c596e251818132d6ba
[ "Apache-2.0" ]
2
2017-02-08T22:22:09.000Z
2020-10-08T12:28:36.000Z
tests/functional/scripts/pyi_lib_sphinx.py
416426/pyinstaller
0f2b2e921433ab5a510c7efdb21d9c1d7cfbc645
[ "Apache-2.0" ]
3
2020-04-06T15:48:37.000Z
2021-03-23T10:22:21.000Z
tests/functional/scripts/pyi_lib_sphinx.py
416426/pyinstaller
0f2b2e921433ab5a510c7efdb21d9c1d7cfbc645
[ "Apache-2.0" ]
4
2018-06-04T20:40:37.000Z
2020-10-13T22:38:40.000Z
#----------------------------------------------------------------------------- # Copyright (c) 2013-2021, PyInstaller Development Team. # # Distributed under the terms of the GNU General Public License (version 2 # or later) with exception for distributing the bootloader. # # The full license is in the file COPYING.txt...
32.76087
80
0.632382
74d5f0304b56fb28906e95a8a656033c02796cc4
1,601
py
Python
Parita_Visualization/code.py
Parita-D/greyatom-python-for-data-science
8d1954d1490f5a46bafd7463addc662c9a12e7d1
[ "MIT" ]
null
null
null
Parita_Visualization/code.py
Parita-D/greyatom-python-for-data-science
8d1954d1490f5a46bafd7463addc662c9a12e7d1
[ "MIT" ]
null
null
null
Parita_Visualization/code.py
Parita-D/greyatom-python-for-data-science
8d1954d1490f5a46bafd7463addc662c9a12e7d1
[ "MIT" ]
null
null
null
# -------------- #Importing header files import pandas as pd import numpy as np import matplotlib.pyplot as plt data = pd.read_csv(path) loan_status = data['Loan_Status'].value_counts() loan_status.plot(kind='bar', stacked=True) #Code starts here # -------------- #Code starts here property_and_loan = ...
20.265823
84
0.678326
11a8726d729d650f5a9f64996be76bb34ca9bdbe
16,835
py
Python
part_seg/train_multi_gpu_one_hot.py
LinZhuoChen/pointnet2-
4fb620dab6af5f76e905c88a7f4150eab8d85933
[ "MIT" ]
1
2018-12-05T15:04:33.000Z
2018-12-05T15:04:33.000Z
part_seg/train_multi_gpu_one_hot.py
LinZhuoChen/pointnet2-
4fb620dab6af5f76e905c88a7f4150eab8d85933
[ "MIT" ]
null
null
null
part_seg/train_multi_gpu_one_hot.py
LinZhuoChen/pointnet2-
4fb620dab6af5f76e905c88a7f4150eab8d85933
[ "MIT" ]
null
null
null
import argparse import subprocess import tensorflow as tf import numpy as np from datetime import datetime import h5py import socket import importlib import os import sys BASE_DIR = os.path.dirname(os.path.abspath(__file__)) ROOT_DIR = os.path.dirname(BASE_DIR) sys.path.append(BASE_DIR) sys.path.append(os.path.j...
42.83715
155
0.620255
d48cdbf717cb791b1778cdc3f8131ec7793864e6
985
py
Python
io_export_psk_psa/psa/exporter.py
DarklightGames/io_export_psk_psa
a42ebbd2406b36035bd495caf977dae3917699ea
[ "MIT" ]
12
2020-05-03T12:05:21.000Z
2022-01-18T21:23:17.000Z
io_export_psk_psa/psa/exporter.py
DarklightGames/io_export_psk_psa
a42ebbd2406b36035bd495caf977dae3917699ea
[ "MIT" ]
10
2020-04-07T06:46:49.000Z
2022-01-19T22:56:42.000Z
io_export_psk_psa/psa/exporter.py
DarklightGames/io_export_psk_psa
a42ebbd2406b36035bd495caf977dae3917699ea
[ "MIT" ]
3
2019-12-21T10:12:59.000Z
2021-11-04T06:57:31.000Z
from typing import Type from .data import * class PsaExporter(object): def __init__(self, psa: Psa): self.psa: Psa = psa # This method is shared by both PSA/K file formats, move this? @staticmethod def write_section(fp, name: bytes, data_type: Type[Structure] = None, data: list = None): ...
35.178571
93
0.612183
4d3147d5245cef3130e0be83a6205b21056bc7f6
1,818
py
Python
python/cartesian_plans/api/viewsets.py
batestin1/django_mars
44d2e4d28f87e17f90fc0910eb63b55be3639b30
[ "MIT" ]
null
null
null
python/cartesian_plans/api/viewsets.py
batestin1/django_mars
44d2e4d28f87e17f90fc0910eb63b55be3639b30
[ "MIT" ]
null
null
null
python/cartesian_plans/api/viewsets.py
batestin1/django_mars
44d2e4d28f87e17f90fc0910eb63b55be3639b30
[ "MIT" ]
null
null
null
#********************************************************************************# # # # нεℓℓσ,вαтεs! #...
55.090909
106
0.310781
3c3d61ebc4c6ef1a7ae0f26938c7a97ae987e541
4,345
py
Python
bibpy/preprocess.py
MisanthropicBit/bibpy
3195790105544672f622ed893213a627b5280f2b
[ "BSD-3-Clause" ]
1
2021-08-18T13:17:10.000Z
2021-08-18T13:17:10.000Z
bibpy/preprocess.py
MisanthropicBit/bibpy
3195790105544672f622ed893213a627b5280f2b
[ "BSD-3-Clause" ]
7
2018-02-18T12:29:20.000Z
2020-05-14T18:08:48.000Z
bibpy/preprocess.py
MisanthropicBit/bibpy
3195790105544672f622ed893213a627b5280f2b
[ "BSD-3-Clause" ]
3
2018-02-17T18:27:43.000Z
2022-01-20T02:28:58.000Z
# -*- coding: utf-8 -*- """Conversion functions for preprocessing of bib(la)tex fields.""" import bibpy.name import calendar from collections.abc import Iterable import re _MONTHNAME_TO_INT = {v: k for k, v in enumerate(calendar.month_name)} def preprocess_namelist(namelist, **options): """Convert a list of na...
32.425373
78
0.64626
3c450391d51dddbee5166bbda656e91a7287bc2f
9,295
py
Python
sdk/python/pulumi_azure_nextgen/batch/v20170101/batch_account.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
31
2020-09-21T09:41:01.000Z
2021-02-26T13:21:59.000Z
sdk/python/pulumi_azure_nextgen/batch/v20170101/batch_account.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
231
2020-09-21T09:38:45.000Z
2021-03-01T11:16:03.000Z
sdk/python/pulumi_azure_nextgen/batch/v20170101/batch_account.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
4
2020-09-29T14:14:59.000Z
2021-02-10T20:38:16.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
47.423469
832
0.674556
24bed64947d4b73b63856ece3cf6bf4f278f136a
10,224
py
Python
mayan/apps/linking/api_views.py
PatrickMugayaJoel/Mayan-EDMS
1a2b4d4fa784a68498f82e0735958dc116b60d46
[ "Apache-2.0" ]
null
null
null
mayan/apps/linking/api_views.py
PatrickMugayaJoel/Mayan-EDMS
1a2b4d4fa784a68498f82e0735958dc116b60d46
[ "Apache-2.0" ]
null
null
null
mayan/apps/linking/api_views.py
PatrickMugayaJoel/Mayan-EDMS
1a2b4d4fa784a68498f82e0735958dc116b60d46
[ "Apache-2.0" ]
1
2021-09-01T14:07:47.000Z
2021-09-01T14:07:47.000Z
from django.shortcuts import get_object_or_404 from mayan.apps.acls.models import AccessControlList from mayan.apps.documents.models.document_models import Document from mayan.apps.documents.models.document_type_models import DocumentType from mayan.apps.documents.permissions import ( permission_document_type_view...
31.075988
93
0.670579
3867b8b9f9f0faf62da574b2b2f0c6150d667f26
29,979
py
Python
math/draw_scatter.py
alexander-zou/useful-scripts
7baf5a594437dbe13588d30e1d357e9c19fcc19c
[ "MIT" ]
8
2019-05-21T10:35:35.000Z
2021-04-09T07:12:35.000Z
math/draw_scatter.py
alexander-zou/useful-scripts
7baf5a594437dbe13588d30e1d357e9c19fcc19c
[ "MIT" ]
null
null
null
math/draw_scatter.py
alexander-zou/useful-scripts
7baf5a594437dbe13588d30e1d357e9c19fcc19c
[ "MIT" ]
5
2018-11-07T09:03:24.000Z
2021-11-15T15:06:03.000Z
#!/usr/bin/env python3 # -*- coding: UTF-8 -*- ''' @File : draw_scatter.py @Author : alexander.here@gmail.com @Date : 2020-07-07 15:29 CST(+0800) @Brief : ''' import os, sys import csv import numpy as np import warnings import matplotlib.pyplot as plt try: from tkinterdnd2 import TkinterDnD, DND...
35.689286
172
0.565362
06829aa5926718fd1a52d6287ba6a7446027f18f
665
py
Python
Final_project/PostBoard/manage.py
GregTMJ/django-files
dfd2c8da596522b77fb3dfc8089f0d287a94d53b
[ "MIT" ]
1
2021-05-29T21:17:56.000Z
2021-05-29T21:17:56.000Z
Final_project/PostBoard/manage.py
GregTMJ/django-files
dfd2c8da596522b77fb3dfc8089f0d287a94d53b
[ "MIT" ]
null
null
null
Final_project/PostBoard/manage.py
GregTMJ/django-files
dfd2c8da596522b77fb3dfc8089f0d287a94d53b
[ "MIT" ]
1
2021-06-30T12:43:39.000Z
2021-06-30T12:43:39.000Z
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): """Run administrative tasks.""" os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'PostBoard.settings') try: from django.core.management import execute_from_command_line except Im...
28.913043
73
0.679699
2f3b38af0025061acdf6a3bd68f6fa5ef0218384
5,650
bzl
Python
bazel/python_rules.bzl
AustinSchuh/grpc
b7e726a7488f9b0a0a635335ffde1c8995e6ec7a
[ "Apache-2.0" ]
2
2019-05-26T05:00:55.000Z
2019-06-15T10:18:57.000Z
bazel/python_rules.bzl
AustinSchuh/grpc
b7e726a7488f9b0a0a635335ffde1c8995e6ec7a
[ "Apache-2.0" ]
1
2019-05-21T05:25:15.000Z
2019-05-21T05:25:15.000Z
bazel/python_rules.bzl
AustinSchuh/grpc
b7e726a7488f9b0a0a635335ffde1c8995e6ec7a
[ "Apache-2.0" ]
1
2019-05-26T05:01:13.000Z
2019-05-26T05:01:13.000Z
"""Generates and compiles Python gRPC stubs from proto_library rules.""" load("@grpc_python_dependencies//:requirements.bzl", "requirement") load( "//bazel:protobuf.bzl", "get_include_protoc_args", "get_plugin_args", "get_proto_root", "proto_path_to_generated_filename", ) _GENERATED_PROTO_FORMAT =...
30.213904
105
0.590265
85ed2fd09a50fbc6f64e359b193f28c5ad9a0551
39,366
py
Python
modin/core/io/text/text_file_dispatcher.py
wangxiaoying/modin
95d71b2bde0ceb40cb1b64fa762b3009a94168dd
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
modin/core/io/text/text_file_dispatcher.py
wangxiaoying/modin
95d71b2bde0ceb40cb1b64fa762b3009a94168dd
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
modin/core/io/text/text_file_dispatcher.py
wangxiaoying/modin
95d71b2bde0ceb40cb1b64fa762b3009a94168dd
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Licensed to Modin Development Team under one or more contributor license agreements. # See the NOTICE file distributed with this work for additional information regarding # copyright ownership. The Modin Development Team licenses this file to you under the # Apache License, Version 2.0 (the "License"); you may not u...
35.819836
97
0.585302
addf9e476f3e3c3cd8c461194ab45812d8ff7030
291
py
Python
coach_app/admin.py
xjati46/maestro_project
4bef5b1674f2b366a35a9b9fe9f1f3776a44a293
[ "MIT" ]
null
null
null
coach_app/admin.py
xjati46/maestro_project
4bef5b1674f2b366a35a9b9fe9f1f3776a44a293
[ "MIT" ]
4
2021-03-23T13:51:03.000Z
2021-09-22T19:26:51.000Z
coach_app/admin.py
xjati46/maestro_project
4bef5b1674f2b366a35a9b9fe9f1f3776a44a293
[ "MIT" ]
null
null
null
from django.contrib import admin from coach_app.models import Coach from import_export.admin import ImportExportModelAdmin # Register your models here. @admin.register(Coach) class CoachAdmin(ImportExportModelAdmin): list_display = ('__str__', 'id', 'nama_lengkap', 'alamat_kotakab')
26.454545
70
0.797251
a27fd3e3097d460a25624ab7443a00a7f8e1f1de
11,873
py
Python
v1.0/python_scripts/convolutional.py
mateusgs/FEC_IEEE.802.15.7
3177d0cb07d99439f206a58384a30eec91e88e17
[ "MIT" ]
1
2021-05-25T03:10:53.000Z
2021-05-25T03:10:53.000Z
v1.0/python_scripts/convolutional.py
mateusgs/FEC_IEEE.802.15.7
3177d0cb07d99439f206a58384a30eec91e88e17
[ "MIT" ]
null
null
null
v1.0/python_scripts/convolutional.py
mateusgs/FEC_IEEE.802.15.7
3177d0cb07d99439f206a58384a30eec91e88e17
[ "MIT" ]
null
null
null
import math from random import random as random NUMBER_OF_PERIODS = 450; def convolutional_encoder(input_arguments = { "clk": [0, 1], "rst": [1, 1], "i_consume": [0, 0], "i_last_data": [0, 0], "i_valid": [0, 0], "i_data": [0, 0] }): cnt = 'U'; bit_array = ['U', 'U', 'U', 'U', 'U', 'U'...
39.184818
80
0.529773
bdbf7b97f922b53fe51d2afe5442337a9e1d92bb
439
py
Python
5-2.py
Holaplace/path_to_python
8fae2aca8d6da04c39a67514948fdf50e883750a
[ "MIT" ]
1
2019-02-06T01:49:18.000Z
2019-02-06T01:49:18.000Z
5-2.py
Holaplace/path_to_python
8fae2aca8d6da04c39a67514948fdf50e883750a
[ "MIT" ]
null
null
null
5-2.py
Holaplace/path_to_python
8fae2aca8d6da04c39a67514948fdf50e883750a
[ "MIT" ]
null
null
null
str_1 = 'apple' str_2 = 'APPLE' print(str_1 == str_2) print(str_1 == str_2.lower()) str_3 = '12' str_4 = '15' print(str_3 == str_4) print(str_3 != str_4) print(str_3 > str_4) print(str_3 < str_4) print(str_3 >= str_4) print(str_3 <= str_4) print((str_3 > str_4) and (str_3 < str_4)) print((str_3 > str_4...
19.954545
43
0.605923
f8bf1cddbe497e9dd06167bf8dd93eb4768f3746
504
py
Python
katas/sum_of_the_first_nth_term.py
kavdi/code-katas
ac329aaac142f8c4e08c45f80e4f0c055eb03cf0
[ "MIT" ]
null
null
null
katas/sum_of_the_first_nth_term.py
kavdi/code-katas
ac329aaac142f8c4e08c45f80e4f0c055eb03cf0
[ "MIT" ]
null
null
null
katas/sum_of_the_first_nth_term.py
kavdi/code-katas
ac329aaac142f8c4e08c45f80e4f0c055eb03cf0
[ "MIT" ]
null
null
null
"""This module contains a function that returns the nth sum, the best practice solution was: def series_sum(n): return '{:.2f}'.format(sum(1.0/(3 * i + 1) for i in range(n))).""" def series_sum(n): """This function returns the nth sum to the 2nd decimal place.""" x = 4 y = 1 if n == 0: retu...
29.647059
111
0.511905
0d7f1cdd9c3f3e322580ce3e363064cf0370089a
2,355
py
Python
src/Applications/GEOS_Workflow/setup/suite/setup.py
GEOS-ESM/GEOSadas
8e3665af71eb37c48573c65ed0e9daa5ca429535
[ "NASA-1.3", "Apache-2.0" ]
2
2019-09-07T09:00:32.000Z
2021-03-12T02:25:56.000Z
src/Applications/GEOS_Workflow/setup/suite/setup.py
GEOS-ESM/GEOSadas
8e3665af71eb37c48573c65ed0e9daa5ca429535
[ "NASA-1.3", "Apache-2.0" ]
81
2019-07-05T19:28:50.000Z
2022-03-04T19:37:47.000Z
src/Applications/GEOS_Workflow/setup/suite/setup.py
GEOS-ESM/GEOSadas
8e3665af71eb37c48573c65ed0e9daa5ca429535
[ "NASA-1.3", "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ Script to setup a workflow suite """ import os import argparse import shutil from datetime import datetime import ecfsetup def setup_suite(config_file, time0, n_sixhr_segs, run_dir): """main program""" sanity_check(config_file, time0, n_sixhr_segs, run_dir) config = ecfset...
29.810127
82
0.66879
02c079461cba020f41788f8abab950900ad15004
2,362
py
Python
mrec/mf/evaluate.py
imall100/mrec
764e58170c219dfc33abe50b3e28ff539511a91d
[ "BSD-3-Clause" ]
392
2015-01-11T20:21:38.000Z
2022-03-29T07:04:05.000Z
mrec/mf/evaluate.py
m-tian/mrec
d299e3b9490703843b041e6585643b7e42e229f0
[ "BSD-3-Clause" ]
9
2016-01-16T08:09:26.000Z
2022-03-17T09:48:17.000Z
mrec/mf/evaluate.py
m-tian/mrec
d299e3b9490703843b041e6585643b7e42e229f0
[ "BSD-3-Clause" ]
122
2015-01-01T14:05:57.000Z
2021-11-28T23:48:15.000Z
def retrain_recommender(model,dataset): model.fit(dataset.X) if __name__ == '__main__': try: from sklearn.grid_search import ParameterGrid except ImportError: from sklearn.grid_search import IterGrid as ParameterGrid from optparse import OptionParser from warp import WARPMFRecommen...
45.423077
143
0.628704
6970618e4e1222f0b60d4ed4ba8045d19703d692
15,507
py
Python
mitmproxy/certs.py
Abcdefghijklmnopqrstuvwxyzxyz/mitmproxy
8bdffcf5174f000032ba6df4b243acb14506f5cf
[ "MIT" ]
null
null
null
mitmproxy/certs.py
Abcdefghijklmnopqrstuvwxyzxyz/mitmproxy
8bdffcf5174f000032ba6df4b243acb14506f5cf
[ "MIT" ]
null
null
null
mitmproxy/certs.py
Abcdefghijklmnopqrstuvwxyzxyz/mitmproxy
8bdffcf5174f000032ba6df4b243acb14506f5cf
[ "MIT" ]
null
null
null
import os import ssl import time import datetime import ipaddress import sys import typing import contextlib from pyasn1.type import univ, constraint, char, namedtype, tag from pyasn1.codec.der.decoder import decode from pyasn1.error import PyAsn1Error import OpenSSL from mitmproxy.coretypes import serializable # De...
31.973196
119
0.594828
36c593cb9dd141435e1233d60189edb3682bcb77
5,219
py
Python
archon_bot/tournament.py
lionel-panhaleux/archon-bot
8366cf8e624b727f2d21340b3a014e00e31eb89c
[ "MIT" ]
null
null
null
archon_bot/tournament.py
lionel-panhaleux/archon-bot
8366cf8e624b727f2d21340b3a014e00e31eb89c
[ "MIT" ]
null
null
null
archon_bot/tournament.py
lionel-panhaleux/archon-bot
8366cf8e624b727f2d21340b3a014e00e31eb89c
[ "MIT" ]
null
null
null
import functools import itertools import math import krcg.seating @functools.total_ordering class Score: def __init__(self, gw=0, vp=0, tp=0): self.gw = gw self.vp = vp self.tp = tp def __eq__(self, rhs): return (self.gw, self.vp, self.tp) == (rhs.gw, rhs.vp, rhs.tp) def...
38.659259
82
0.557578
b0566967796d5fdeac858cb979b18c588862b6c5
6,258
py
Python
wa2latex.py
pbeck/whatsbook
6bca6390c88a0f07d54db1d11a7fde546859f280
[ "MIT" ]
175
2016-02-02T20:29:54.000Z
2022-03-29T12:11:21.000Z
wa2latex.py
pbeck/whatsbook
6bca6390c88a0f07d54db1d11a7fde546859f280
[ "MIT" ]
7
2016-09-28T07:10:27.000Z
2021-12-16T12:03:50.000Z
wa2latex.py
pbeck/whatsbook
6bca6390c88a0f07d54db1d11a7fde546859f280
[ "MIT" ]
26
2016-03-27T18:03:39.000Z
2020-02-23T10:07:54.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' wa2latex.py Pelle Beckman, 2016 Reformats data from WhatsApp chat logs for LaTeX. See medium.com/@pbeck and the article about 'Books from WhatsApp' for more info. Uses code from socialmediaparse (github.com/seandolinar/socialmediaparse). Requires python2.7 and pandas ...
35.76
135
0.535634
3a8ff0249bc2317ee40d490167c5bdcabe552da9
59,156
py
Python
u4pak.py
benrg/u4pak
33a5ccd21ecfad2ea29398919537fddd6bd17184
[ "Unlicense" ]
null
null
null
u4pak.py
benrg/u4pak
33a5ccd21ecfad2ea29398919537fddd6bd17184
[ "Unlicense" ]
null
null
null
u4pak.py
benrg/u4pak
33a5ccd21ecfad2ea29398919537fddd6bd17184
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python # coding=UTF-8 # # Copyright (c) 2014 Mathias Panzenböck # # 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 #...
31.533049
203
0.702465
101657f3441fd1a36b4dc0d51d4f0bd64b88dde1
17
py
Python
eto/bak/__init__.py
bopopescu/local_scda
40fa4a586f140dc00b8d3f53c732e22e022be338
[ "MIT" ]
null
null
null
eto/bak/__init__.py
bopopescu/local_scda
40fa4a586f140dc00b8d3f53c732e22e022be338
[ "MIT" ]
null
null
null
eto/bak/__init__.py
bopopescu/local_scda
40fa4a586f140dc00b8d3f53c732e22e022be338
[ "MIT" ]
2
2020-07-23T21:55:21.000Z
2021-01-14T12:27:19.000Z
from eto import *
17
17
0.764706
a50101b64a204cb2b2bc7c3f198e881bef09e972
866
py
Python
build.py
EManual/preview
8911faec6c8075a8b13676c1479a60108e4df7b9
[ "Apache-2.0" ]
null
null
null
build.py
EManual/preview
8911faec6c8075a8b13676c1479a60108e4df7b9
[ "Apache-2.0" ]
null
null
null
build.py
EManual/preview
8911faec6c8075a8b13676c1479a60108e4df7b9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python #coding=utf-8 import json import codecs def read(file): with codecs.open(file,encoding='utf-8') as f: content = f.read() return content res = json.loads(read('map.json')) result = ''; with codecs.open('preview.html',encoding='utf-8') as f: for line in f.readlines(): ...
21.65
103
0.534642
8cf936f57eb8eb042f6facdbe69337b260b2d030
11,085
py
Python
gpgraph/fixation_models.py
harmsm/gpgraph
4ec3cd2c23b71413a48dda050839f3d8d8d2cf0b
[ "Unlicense" ]
null
null
null
gpgraph/fixation_models.py
harmsm/gpgraph
4ec3cd2c23b71413a48dda050839f3d8d8d2cf0b
[ "Unlicense" ]
null
null
null
gpgraph/fixation_models.py
harmsm/gpgraph
4ec3cd2c23b71413a48dda050839f3d8d8d2cf0b
[ "Unlicense" ]
null
null
null
__description__ = \ """ Collection of fixation models given the fitness values of genotype i and j. Functions take pains to avoid infinite outputs given finite inputs. """ __author__ = "Zach Sailer, Michael J. Harms" __date__ = "2021-09-01" import numpy as np def strong_selection_weak_mutation(fitness_i, fitness_j): ...
32.795858
121
0.572124
1d369ea7bc6ff16ee6af710e77943ad9e968e77c
4,406
py
Python
actions/update_source.py
StackStorm-Exchange/sumologic
2c84d38616a55dfd7061521920e11693f36e2f3b
[ "Apache-2.0" ]
1
2018-01-24T22:37:28.000Z
2018-01-24T22:37:28.000Z
actions/update_source.py
StackStorm-Exchange/sumologic
2c84d38616a55dfd7061521920e11693f36e2f3b
[ "Apache-2.0" ]
null
null
null
actions/update_source.py
StackStorm-Exchange/sumologic
2c84d38616a55dfd7061521920e11693f36e2f3b
[ "Apache-2.0" ]
3
2019-01-29T00:13:10.000Z
2021-01-28T17:47:21.000Z
#!/usr/bin/env python from lib.actions import BaseAction class SumoUpdateSource(BaseAction): def run(self, collector_id=None, source_id=None, timezone=None, category=None, descr=None, force_timezone=None, hostname=None, ...
39.339286
95
0.564458
1b91cc7d0ab7c4db07d3bbcf353bc109f39cc4c2
97
py
Python
src/language/grammar/__init__.py
ArielTriana/battle-sim
75205bbff62024d28b42fd25ce268440ecc6f009
[ "MIT" ]
2
2021-11-23T15:47:07.000Z
2022-03-03T01:38:19.000Z
src/language/grammar/__init__.py
ArielTriana/battle-sim
75205bbff62024d28b42fd25ce268440ecc6f009
[ "MIT" ]
11
2021-11-05T15:47:39.000Z
2022-02-07T05:05:11.000Z
src/language/grammar/__init__.py
ArielTriana/battle-sim
75205bbff62024d28b42fd25ce268440ecc6f009
[ "MIT" ]
1
2021-12-07T00:00:48.000Z
2021-12-07T00:00:48.000Z
from .grammar import Grammar, Terminal, Production, NonTerminal, Symbol from pathlib import Path
32.333333
71
0.824742
de70633f5c2af6913a14dd235fd967ea471ebabe
741
py
Python
emission/net/usercache/formatters/android/incident.py
Andrew-Tan/e-mission-server
91d59bee86e63d803e401f10f4b6a2502effedda
[ "BSD-3-Clause" ]
null
null
null
emission/net/usercache/formatters/android/incident.py
Andrew-Tan/e-mission-server
91d59bee86e63d803e401f10f4b6a2502effedda
[ "BSD-3-Clause" ]
1
2017-08-31T19:54:16.000Z
2017-08-31T19:54:16.000Z
emission/net/usercache/formatters/android/incident.py
Andrew-Tan/e-mission-server
91d59bee86e63d803e401f10f4b6a2502effedda
[ "BSD-3-Clause" ]
null
null
null
import logging import arrow import emission.net.usercache.formatters.common as fc import emission.storage.decorations.local_date_queries as ecsdlq import attrdict as ad def format(entry): formatted_entry = ad.AttrDict() formatted_entry["_id"] = entry["_id"] formatted_entry.user_id = entry.user_id ...
29.64
103
0.740891
daa10c4bc8e4d4f75043cb031d083d923d378ff8
3,007
py
Python
setup.py
khaledhosny/gftools
fa9dd7d93072919780e6dcf56dd8863f6e320779
[ "Apache-2.0" ]
null
null
null
setup.py
khaledhosny/gftools
fa9dd7d93072919780e6dcf56dd8863f6e320779
[ "Apache-2.0" ]
null
null
null
setup.py
khaledhosny/gftools
fa9dd7d93072919780e6dcf56dd8863f6e320779
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # Copyright 2013 The Font Bakery Authors. # Copyright 2017 The Google Fonts Tools Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licens...
34.170455
93
0.607915
a24f75e7be8ec51a094375bda4e03a309f95982f
8,587
py
Python
pysnmp/SWPRIMGMT-DES3200-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/SWPRIMGMT-DES3200-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/SWPRIMGMT-DES3200-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module SWPRIMGMT-DES3200-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/SWPRIMGMT-DES3200-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 18:24:56 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (def...
122.671429
1,757
0.727612
a339c5f0fd823a1b940553fb920644c783844a53
448
py
Python
survey_app_repo/survey/migrations/0007_auto_20200103_2059.py
devbkhadka/survey_app
51c4a4844e57f771d1157be8a8307552d390df67
[ "Apache-1.1" ]
1
2020-01-12T06:48:28.000Z
2020-01-12T06:48:28.000Z
survey_app_repo/survey/migrations/0007_auto_20200103_2059.py
devbkhadka/survey_app
51c4a4844e57f771d1157be8a8307552d390df67
[ "Apache-1.1" ]
null
null
null
survey_app_repo/survey/migrations/0007_auto_20200103_2059.py
devbkhadka/survey_app
51c4a4844e57f771d1157be8a8307552d390df67
[ "Apache-1.1" ]
null
null
null
# Generated by Django 2.2.9 on 2020-01-03 15:14 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('survey', '0006_auto_20200103_2040'), ] operations = [ migrations.AlterField( model_name='question', name='question_t...
23.578947
104
0.602679
e8c2ae6db64ddb05d8094662afa383647a5f2f1f
1,173
py
Python
get_data.py
UVG-Teams/tesla-bot-launch-analysis
f951e974b280359a50d97edf9a45158b25bd7ba8
[ "MIT" ]
null
null
null
get_data.py
UVG-Teams/tesla-bot-launch-analysis
f951e974b280359a50d97edf9a45158b25bd7ba8
[ "MIT" ]
null
null
null
get_data.py
UVG-Teams/tesla-bot-launch-analysis
f951e974b280359a50d97edf9a45158b25bd7ba8
[ "MIT" ]
null
null
null
import tweepy, json, xlsxwriter try: access_token = '723857363392851969-43F1DgxrLdiEfaMn5KubWt1VI7FkRHa' access_token_secret = '' consumer_key = 'kjLXsYD27YLPR4r5KWP4GeHLT' consumer_secret = '' auth= tweepy.OAuthHandler(consumer_key,consumer_secret) auth.set_access_token(access_token,access_to...
29.325
74
0.682012
a78a41ae6924af5d009ecdf7450d897d22fb6954
1,437
py
Python
229_majorityElementII.py
Echo226/LeetCode
19d753eaed9b048722d6c23e86c5f977ef20edff
[ "MIT" ]
null
null
null
229_majorityElementII.py
Echo226/LeetCode
19d753eaed9b048722d6c23e86c5f977ef20edff
[ "MIT" ]
null
null
null
229_majorityElementII.py
Echo226/LeetCode
19d753eaed9b048722d6c23e86c5f977ef20edff
[ "MIT" ]
null
null
null
''' Method1: Brute Force Method2: Boyer-Moore Algorithm Author: Xinting Date : 2019-11-04 ''' # Brute Force class Solution: def majorityElement(self, nums: List[int]) -> List[int]: res = [] for num1 in nums: if num1 not in res and sum(1 for num2 in nums if num2 ==...
27.634615
96
0.504523
d9cc0d372f1940ad9c5ee1ab6187cb788e187fd8
22,990
py
Python
electrum/coinchooser.py
AvianNetwork/electrum
36c99526a0caed5fadf49db25db94717f96e39c0
[ "MIT" ]
1
2022-02-21T03:17:41.000Z
2022-02-21T03:17:41.000Z
electrum/coinchooser.py
AvianNetwork/electrum
36c99526a0caed5fadf49db25db94717f96e39c0
[ "MIT" ]
null
null
null
electrum/coinchooser.py
AvianNetwork/electrum
36c99526a0caed5fadf49db25db94717f96e39c0
[ "MIT" ]
1
2022-02-28T19:42:24.000Z
2022-02-28T19:42:24.000Z
#!/usr/bin/env python # # Electrum - lightweight Avian client # Copyright (C) 2015 kyuupichan@gmail # # 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 ...
45.98
115
0.632231
bf14ed31d791898cdeb724eb28f20b4779421d6a
1,848
py
Python
cloudentries/gcp/query/constants.py
CloudChef/CloudEntries
a890e2eb96cc537db131e7ca8a0e6e1edc0b6ebd
[ "Apache-2.0" ]
null
null
null
cloudentries/gcp/query/constants.py
CloudChef/CloudEntries
a890e2eb96cc537db131e7ca8a0e6e1edc0b6ebd
[ "Apache-2.0" ]
null
null
null
cloudentries/gcp/query/constants.py
CloudChef/CloudEntries
a890e2eb96cc537db131e7ca8a0e6e1edc0b6ebd
[ "Apache-2.0" ]
1
2021-03-26T05:45:00.000Z
2021-03-26T05:45:00.000Z
# Copyright (c) 2021 Qianyun, Inc. All rights reserved. GCP_PUBLIC_PROJECT = { 'centos-cloud': ['centos-6', 'centos-7', 'centos-8'], 'cos-cloud': ['cos-65-lts', 'cos-69-lts', 'cos-73-lts', 'cos-77-lts', 'cos-81-lts', 'cos-beta', 'cos-dev', 'cos-stable'], 'debian-cloud': ['debian-7-backpor...
25.315068
114
0.53355
5528ac38da4b91a90f7e89c03adb1efdb407a344
841
py
Python
tests/test_url.py
artcom-net/pytgram
445c7d83892357127c4319d514e1160232fd8e3c
[ "MIT" ]
null
null
null
tests/test_url.py
artcom-net/pytgram
445c7d83892357127c4319d514e1160232fd8e3c
[ "MIT" ]
1
2022-02-11T03:39:57.000Z
2022-02-11T03:39:57.000Z
tests/test_url.py
artcom-net/pytgram
445c7d83892357127c4319d514e1160232fd8e3c
[ "MIT" ]
null
null
null
from unittest import TestCase from pytgram.url import get_url class TestURL(TestCase): def test_method(self): url = get_url(token='some_token', method='some_method') self.assertEqual(url, 'https://api.telegram.org/botsome_token/some_method') def test_file(self): ...
32.346154
78
0.617122
1df4b1273460f2b25a0da391abeadf33a24a8abc
39
py
Python
run.py
beenje/aiolegomac
4bf780749e018750c5644fea3e84f09444c43d3d
[ "BSD-2-Clause" ]
1
2017-12-29T14:24:34.000Z
2017-12-29T14:24:34.000Z
run.py
beenje/aiolegomac
4bf780749e018750c5644fea3e84f09444c43d3d
[ "BSD-2-Clause" ]
5
2021-03-18T20:23:21.000Z
2022-03-11T23:16:41.000Z
run.py
beenje/aiolegomac
4bf780749e018750c5644fea3e84f09444c43d3d
[ "BSD-2-Clause" ]
null
null
null
from aiolegomac.app import run run()
7.8
30
0.74359
dcbac2c454eb79f91257137af60206adcbe4db66
2,738
py
Python
keras/regularizers.py
lvapeab/keras
aa7174cd9977e317d546adb458b1f4e64d0c92c3
[ "MIT" ]
259
2016-02-09T09:06:29.000Z
2021-07-29T05:27:40.000Z
keras/regularizers.py
lvapeab/keras
aa7174cd9977e317d546adb458b1f4e64d0c92c3
[ "MIT" ]
50
2016-02-24T14:46:57.000Z
2020-01-20T07:34:19.000Z
keras/regularizers.py
MarcBS/keras
82ee0908e5fab22e63434cceb60a680bc991b0c6
[ "MIT" ]
94
2016-02-17T20:59:27.000Z
2021-04-19T08:18:16.000Z
"""Built-in regularizers. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function import six from . import backend as K from .utils.generic_utils import serialize_keras_object from .utils.generic_utils import deserialize_keras_object class Regularizer(object):...
24.890909
108
0.628926
5debf7789a6a58db32e2ecde7f77aef90f88423f
2,997
py
Python
fapistrano/plugins/git.py
liwushuo/fapistrano
2a31aad01a04d7ea9108dc6f95aee9a53290459f
[ "MIT" ]
18
2016-03-25T09:40:20.000Z
2022-02-23T02:09:50.000Z
fapistrano/plugins/git.py
liwushuo/fapistrano
2a31aad01a04d7ea9108dc6f95aee9a53290459f
[ "MIT" ]
null
null
null
fapistrano/plugins/git.py
liwushuo/fapistrano
2a31aad01a04d7ea9108dc6f95aee9a53290459f
[ "MIT" ]
3
2016-03-22T07:41:15.000Z
2021-02-25T04:27:53.000Z
# -*- coding: utf-8 -*- from fabric.api import cd, env, local, task, abort from fabric.contrib.files import exists from ..utils import green_alert, red_alert, yellow_alert, run from .. import signal, configuration def init(): configuration.setdefault('git_shallow_clone', 1) configuration.setdefault('branch',...
28.542857
147
0.64698
479d7bc0b152763bd9b7da2bec9bf4a7eb0d4269
3,235
py
Python
tests/core/test_http_utils.py
overstory/ml-monitoring-plugin
c79e04ff0654d3739585d261dfd83a7c5f867923
[ "Apache-2.0" ]
5
2017-01-05T13:16:55.000Z
2020-06-13T07:51:37.000Z
tests/core/test_http_utils.py
overstory/ml-monitoring-plugin
c79e04ff0654d3739585d261dfd83a7c5f867923
[ "Apache-2.0" ]
30
2016-11-30T16:45:12.000Z
2017-05-25T14:57:49.000Z
tests/core/test_http_utils.py
overstory/ml-monitoring-plugin
c79e04ff0654d3739585d261dfd83a7c5f867923
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2016 MarkLogic Corporation # # 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...
42.012987
117
0.461515
cc5b561e4125c49a522125ffad028dc74b9f454a
677
py
Python
praktikum/gpu.py
fahmikebel/praktikum-python
6270b97f0ec50afc317a35a8da37f1b8a98754fa
[ "CC0-1.0" ]
null
null
null
praktikum/gpu.py
fahmikebel/praktikum-python
6270b97f0ec50afc317a35a8da37f1b8a98754fa
[ "CC0-1.0" ]
null
null
null
praktikum/gpu.py
fahmikebel/praktikum-python
6270b97f0ec50afc317a35a8da37f1b8a98754fa
[ "CC0-1.0" ]
null
null
null
import numpy as np import cupy as cp import time # Numpy dan CPU s = time.time() x_cpu = np.ones((1000, 1000, 1000)) e = time.time() print("Waktu yang diperlukan untuk CPU :", e - s) # CuPy dan GPU s = time.time() x_gpu = cp.ones((1000, 1000, 1000)) cp.cuda.Stream.null.synchronize() e = time.time() print("...
24.178571
50
0.644018
8bfa990c3a241a7a7adf61827e31e6fc77a4c664
2,090
py
Python
utils.py
lanargh/FaceMaskDetection
70966fa655a3baf0af06b07ea5b17a4ecb6f5a36
[ "MIT" ]
null
null
null
utils.py
lanargh/FaceMaskDetection
70966fa655a3baf0af06b07ea5b17a4ecb6f5a36
[ "MIT" ]
null
null
null
utils.py
lanargh/FaceMaskDetection
70966fa655a3baf0af06b07ea5b17a4ecb6f5a36
[ "MIT" ]
null
null
null
import os import random from os.path import basename from shutil import copyfile from zipfile import ZipFile def genlabels(labels): f = open("labels.txt","w+") f.write("__ignore__\r\n") f.write("_background_\r\n") for label in labels: f.write(label + "\r\n") f.close() def splitdata(inpu...
40.192308
156
0.626316
347fb5e77d49f5eddc4abc03bcffb902101d7ec4
26,070
py
Python
vectorbt/indicators/basic.py
RileyMShea/vectorbt
92ce571ce9fd0667f2994a2c922fb4cfcde10c88
[ "Apache-2.0" ]
1
2021-01-15T00:02:11.000Z
2021-01-15T00:02:11.000Z
vectorbt/indicators/basic.py
RileyMShea/vectorbt
92ce571ce9fd0667f2994a2c922fb4cfcde10c88
[ "Apache-2.0" ]
null
null
null
vectorbt/indicators/basic.py
RileyMShea/vectorbt
92ce571ce9fd0667f2994a2c922fb4cfcde10c88
[ "Apache-2.0" ]
null
null
null
"""Indicators built with `vectorbt.indicators.factory.IndicatorFactory`. ```python-repl >>> import vectorbt as vbt >>> from datetime import datetime >>> start = datetime(2019, 3, 1) >>> end = datetime(2019, 9, 1) >>> cols = ['Open', 'High', 'Low', 'Close', 'Volume'] >>> ohlcv = vbt.utils.data.download("BTC-USD", star...
31.63835
125
0.606521
0ee2947fab369299b5bd4a101cc7bdb31fc61c02
2,397
py
Python
setup.py
AdamDS/urlAPIs
90ca3d4a1320651cffe7d00c97ecf5d307bbeba9
[ "MIT" ]
1
2019-08-07T03:56:59.000Z
2019-08-07T03:56:59.000Z
setup.py
AdamDS/urlAPIs
90ca3d4a1320651cffe7d00c97ecf5d307bbeba9
[ "MIT" ]
4
2017-01-19T00:04:50.000Z
2019-06-21T09:20:15.000Z
setup.py
AdamDS/urlAPIs
90ca3d4a1320651cffe7d00c97ecf5d307bbeba9
[ "MIT" ]
8
2016-06-08T22:52:46.000Z
2019-09-13T22:07:25.000Z
#https://docs.python.org/2/distutils/examples.html from distutils.core import setup version = "0.9.5" setup( \ name = 'BioMine' , version = version , author = 'Adam D Scott' , author_email = 'adam@adamscottphd.com' , maintainer = 'Adam D Scott' , maintainer_email = 'adam@adamscottphd.com' , url = 'https://gith...
39.295082
170
0.693367
e9074d8fc43b2125ec284bf8992954694e845825
4,005
py
Python
pml/data/loader.py
ashadhaz/pml
8d9261c8885a82d795c89de23f53ff7d05ef9495
[ "MIT" ]
2
2018-03-21T16:26:16.000Z
2020-10-27T02:45:11.000Z
pml/data/loader.py
ashadhaz/pml
8d9261c8885a82d795c89de23f53ff7d05ef9495
[ "MIT" ]
null
null
null
pml/data/loader.py
ashadhaz/pml
8d9261c8885a82d795c89de23f53ff7d05ef9495
[ "MIT" ]
4
2015-02-25T16:19:05.000Z
2021-02-06T06:36:46.000Z
# Copyright (C) 2012 David Rusk # # 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, distr...
40.454545
84
0.694881
19bb27c66066dd4440ccd890ca1cf60e4ff94544
1,026
py
Python
pytoolkit/dl.py
ak110/pytoolk
8eef7e0add7bbc0ced1f1f1d82ed245388cc6684
[ "MIT" ]
26
2018-12-03T23:02:56.000Z
2020-08-07T06:33:21.000Z
pytoolkit/dl.py
ak110/pytoolk
8eef7e0add7bbc0ced1f1f1d82ed245388cc6684
[ "MIT" ]
null
null
null
pytoolkit/dl.py
ak110/pytoolk
8eef7e0add7bbc0ced1f1f1d82ed245388cc6684
[ "MIT" ]
5
2019-08-10T11:10:59.000Z
2020-11-18T02:39:37.000Z
"""DeepLearning(主にKeras)関連。""" import os import pathlib import subprocess import numpy as np def get_gpu_count(): """GPU数の取得。""" if "CUDA_VISIBLE_DEVICES" in os.environ: gpus = os.environ["CUDA_VISIBLE_DEVICES"].strip() if gpus in ("-1", "none"): return 0 return len(np.uni...
26.307692
79
0.598441
44479dba69b2808f45c408ea1ed1c73b32583835
2,143
py
Python
test/integration/test_graph_service.py
amarvin/py2neo
19ba35644725da47e036ed1079c634f89128856e
[ "Apache-2.0" ]
545
2017-01-06T07:27:01.000Z
2021-06-10T01:08:23.000Z
test/integration/test_graph_service.py
amarvin/py2neo
19ba35644725da47e036ed1079c634f89128856e
[ "Apache-2.0" ]
370
2016-12-25T15:47:37.000Z
2021-06-17T06:09:43.000Z
test/integration/test_graph_service.py
amarvin/py2neo
19ba35644725da47e036ed1079c634f89128856e
[ "Apache-2.0" ]
133
2016-12-21T19:39:28.000Z
2021-05-26T14:26:02.000Z
#!/usr/bin/env python # -*- encoding: utf-8 -*- # Copyright 2011-2021, Nigel Small # # 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 # # Unle...
27.126582
74
0.729818
549c46a5a27baecdaad891ba5cff823b8432e55f
12,189
py
Python
dreem_learning_open/models/modulo_net/modules/bn_lstm.py
Dreem-Organization/dreem-learning-open
5f03f93e814fa5bf74b45e9c6c99be38ce29c347
[ "MIT" ]
44
2019-12-02T13:55:18.000Z
2022-03-06T12:13:25.000Z
dreem_learning_open/models/modulo_net/modules/bn_lstm.py
Dreem-Organization/dreem-learning-open
5f03f93e814fa5bf74b45e9c6c99be38ce29c347
[ "MIT" ]
3
2019-12-06T12:07:09.000Z
2021-10-19T08:40:39.000Z
dreem_learning_open/models/modulo_net/modules/bn_lstm.py
Dreem-Organization/dreem-learning-open
5f03f93e814fa5bf74b45e9c6c99be38ce29c347
[ "MIT" ]
9
2019-12-11T20:03:35.000Z
2021-12-05T05:59:41.000Z
"""Implementation of batch-normalized LSTM.""" """Very Strongly inspired by https://github.com/pytorch/benchmark/blob/master/rnns/benchmarks/models /bnlstm.py""" import torch from torch import nn from torch.autograd import Variable from torch.nn import functional, init from torch.nn.init import eye_ def reverse(lst):...
37.275229
100
0.592912
114f297757232a880d1e8a0da5ce88c5e7a2d0f5
649
py
Python
google_cloud_compute/komand_google_cloud_compute/actions/list_firewalls/action.py
killstrelok/insightconnect-plugins
911358925f4233ab273dbd8172e8b7b9188ebc01
[ "MIT" ]
null
null
null
google_cloud_compute/komand_google_cloud_compute/actions/list_firewalls/action.py
killstrelok/insightconnect-plugins
911358925f4233ab273dbd8172e8b7b9188ebc01
[ "MIT" ]
null
null
null
google_cloud_compute/komand_google_cloud_compute/actions/list_firewalls/action.py
killstrelok/insightconnect-plugins
911358925f4233ab273dbd8172e8b7b9188ebc01
[ "MIT" ]
null
null
null
import insightconnect_plugin_runtime from .schema import ListFirewallsInput, ListFirewallsOutput, Input, Component # Custom imports below class ListFirewalls(insightconnect_plugin_runtime.Action): def __init__(self): super(self.__class__, self).__init__( name='list_firewalls', d...
28.217391
77
0.671803
25c62f499a3dbcdf39a5440ebc3732f1047cb668
3,263
py
Python
src/process/infrastructure/connection/queue/QueueProvider.py
PythonDataIntegrator/pythondataintegrator
6167778c36c2295e36199ac0d4d256a4a0c28d7a
[ "MIT" ]
14
2020-12-19T15:06:13.000Z
2022-01-12T19:52:17.000Z
src/process/infrastructure/connection/queue/QueueProvider.py
PythonDataIntegrator/pythondataintegrator
6167778c36c2295e36199ac0d4d256a4a0c28d7a
[ "MIT" ]
43
2021-01-06T22:05:22.000Z
2022-03-10T10:30:30.000Z
src/process/infrastructure/connection/queue/QueueProvider.py
PythonDataIntegrator/pythondataintegrator
6167778c36c2295e36199ac0d4d256a4a0c28d7a
[ "MIT" ]
4
2020-12-18T23:10:09.000Z
2021-04-02T13:03:12.000Z
from injector import inject from domain.connection.services.ConnectionSecretService import ConnectionSecretService from domain.connection.services.ConnectionServerService import ConnectionServerService from infrastructure.connection.queue.connectors.KafkaConnector import KafkaConnector from infrastructure.connection.q...
54.383333
130
0.684952
3b2f5ebe469003e24c17dd74f307fece2c81295d
466
py
Python
00_Original/21_Objektorientierung/vererbung_abstrakt_3.py
felixdittrich92/Python3_book
cd0e2b55aa72c51927d347b70199fb9ed928e06f
[ "MIT" ]
null
null
null
00_Original/21_Objektorientierung/vererbung_abstrakt_3.py
felixdittrich92/Python3_book
cd0e2b55aa72c51927d347b70199fb9ed928e06f
[ "MIT" ]
null
null
null
00_Original/21_Objektorientierung/vererbung_abstrakt_3.py
felixdittrich92/Python3_book
cd0e2b55aa72c51927d347b70199fb9ed928e06f
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- class A: def __init__(self): self.X = 1337 print("Konstruktor von A") def m(self): print("Methode m von A. Es ist self.X =", self.X) class B(A): def __init__(self): super().__init__() self.Y = 1...
17.923077
57
0.484979
d03ee3223e52da45d0fce8e1df994eddd1c53740
713
py
Python
code/installation/THP/tools/make_thumbs_texture.py
CreativeInquiry/TeenieHarrisProject
c7c2e1730ade29ed086a4bd21d5d21315fcde5e5
[ "MIT" ]
null
null
null
code/installation/THP/tools/make_thumbs_texture.py
CreativeInquiry/TeenieHarrisProject
c7c2e1730ade29ed086a4bd21d5d21315fcde5e5
[ "MIT" ]
9
2019-03-27T18:42:41.000Z
2019-03-31T17:04:24.000Z
code/installation/THP/tools/make_thumbs_texture.py
CreativeInquiry/TeenieHarrisProject
c7c2e1730ade29ed086a4bd21d5d21315fcde5e5
[ "MIT" ]
null
null
null
import cv2 import numpy as np from glob import glob #59278 import sys print(sys.maxsize) W = 256 n = 256 path = "F:/LINGDONG/Teenie_Harris_JPG640/Teenie_Harris_JPG640/" files = [path+x.split("/")[-1].split(".")[0]+".jpeg" for x in open("../bin/data/canonical_filename_order.txt",'r').read().split("\n")] thumbs = np.zer...
22.28125
134
0.614306
de6ebe4a2530555a1bdb6f9ad87c58c1d81ce43e
4,057
py
Python
src/sdf_tools/utils_2d.py
hujiawei-sjtu/sdf_tools
deefe5f03c062b8f312d35b3d30202f7462b3000
[ "BSD-2-Clause" ]
159
2017-04-27T00:30:13.000Z
2022-03-16T01:35:19.000Z
src/sdf_tools/utils_2d.py
hujiawei-sjtu/sdf_tools
deefe5f03c062b8f312d35b3d30202f7462b3000
[ "BSD-2-Clause" ]
21
2017-08-22T23:45:30.000Z
2021-03-04T01:59:59.000Z
src/sdf_tools/utils_2d.py
hujiawei-sjtu/sdf_tools
deefe5f03c062b8f312d35b3d30202f7462b3000
[ "BSD-2-Clause" ]
36
2017-03-16T23:01:20.000Z
2022-03-29T12:50:23.000Z
import numpy as np import pysdf_tools def compute_sdf_and_gradient(grid_world, sdf_resolution, sdf_origin, frame='world'): """ :param grid_world: a 2d numpy array of the world full of 0 and 1 :param sdf_resolution: float in meters :param sdf_origin: size 2 np.array (vector) in meters :param frame...
37.564815
119
0.701504
2fcd02813b374373a72f83b5ddb8083caddccac1
4,385
py
Python
temboo/core/Library/Basecamp/CreateMessage.py
jordanemedlock/psychtruths
52e09033ade9608bd5143129f8a1bfac22d634dd
[ "Apache-2.0" ]
7
2016-03-07T02:07:21.000Z
2022-01-21T02:22:41.000Z
temboo/core/Library/Basecamp/CreateMessage.py
jordanemedlock/psychtruths
52e09033ade9608bd5143129f8a1bfac22d634dd
[ "Apache-2.0" ]
null
null
null
temboo/core/Library/Basecamp/CreateMessage.py
jordanemedlock/psychtruths
52e09033ade9608bd5143129f8a1bfac22d634dd
[ "Apache-2.0" ]
8
2016-06-14T06:01:11.000Z
2020-04-22T09:21:44.000Z
# -*- coding: utf-8 -*- ############################################################################### # # CreateMessage # Creates a new message under a specified project. # # Python versions 2.6, 2.7, 3.x # # Copyright 2014, Temboo Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may no...
40.601852
188
0.680958
1a7952c85a6a26c04c630bb5e73d7003764f9b11
10,702
py
Python
python/test/sentencepiece_test.py
yuslzq/00_sentencepiece
42b9a86c51b237eb7ece657fb961f011c4abfeff
[ "Apache-2.0" ]
null
null
null
python/test/sentencepiece_test.py
yuslzq/00_sentencepiece
42b9a86c51b237eb7ece657fb961f011c4abfeff
[ "Apache-2.0" ]
null
null
null
python/test/sentencepiece_test.py
yuslzq/00_sentencepiece
42b9a86c51b237eb7ece657fb961f011c4abfeff
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright 2018 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required ...
43.504065
105
0.700243
d71beb1ecac899af6a43ab7f5cc507734a3be372
38,568
py
Python
scripts/common_test.py
EishaMazhar/oppia
ab4f3cf20764b27f567798e4b1184471aaf7f73b
[ "Apache-2.0" ]
1
2020-09-30T17:55:05.000Z
2020-09-30T17:55:05.000Z
scripts/common_test.py
gitter-badger/oppia
7d8e659264582d7ce74bc6c139e597b82bca0e04
[ "Apache-2.0" ]
1
2020-05-27T06:08:17.000Z
2020-05-27T06:08:17.000Z
scripts/common_test.py
gitter-badger/oppia
7d8e659264582d7ce74bc6c139e597b82bca0e04
[ "Apache-2.0" ]
1
2018-03-20T14:12:31.000Z
2018-03-20T14:12:31.000Z
# # Copyright 2019 The Oppia 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 applicabl...
42.243154
93
0.641283
1a53a1c1d62c832b60de24c0e23166fe9204d006
1,348
py
Python
torch/ao/quantization/fx/backend_config_dict/tensorrt.py
lsh838384/Pytorch
90b722c5441ec99bf5bd84ee645eece367de5664
[ "Intel" ]
null
null
null
torch/ao/quantization/fx/backend_config_dict/tensorrt.py
lsh838384/Pytorch
90b722c5441ec99bf5bd84ee645eece367de5664
[ "Intel" ]
null
null
null
torch/ao/quantization/fx/backend_config_dict/tensorrt.py
lsh838384/Pytorch
90b722c5441ec99bf5bd84ee645eece367de5664
[ "Intel" ]
null
null
null
import torch from .observation_type import ObservationType def get_tensorrt_backend_config_dict(): """ Get the backend config dictionary for tensorrt backend NOTE: Current api will change in the future, it's just to unblock experimentation for new backends, please don't use it right now. """ weight...
32.095238
89
0.64095
7e675b2b2d2641fdb44a5c0f2c0b0f49de02b11e
15,339
py
Python
nova/conductor/tasks/migrate.py
cloudscale-ch/nova
4b4e005c639204f2c680eda61131a6930379d70e
[ "Apache-2.0" ]
1
2018-05-27T09:38:17.000Z
2018-05-27T09:38:17.000Z
nova/conductor/tasks/migrate.py
ljzjohnson/nova
87e1951a1b8c03b9ecdf8f75610d14690b61f272
[ "Apache-2.0" ]
null
null
null
nova/conductor/tasks/migrate.py
ljzjohnson/nova
87e1951a1b8c03b9ecdf8f75610d14690b61f272
[ "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 required by applicable law or agreed to in writing, software # d...
47.785047
79
0.639416
b1049831e7362587cc380d24c76ee5eef1ea3fb7
10,020
py
Python
sdk/python/tests/sdk/test_importer.py
tims/feast
3499b6576b55afd5b37fa1b9a38c817ed6aa1b1a
[ "Apache-2.0" ]
null
null
null
sdk/python/tests/sdk/test_importer.py
tims/feast
3499b6576b55afd5b37fa1b9a38c817ed6aa1b1a
[ "Apache-2.0" ]
null
null
null
sdk/python/tests/sdk/test_importer.py
tims/feast
3499b6576b55afd5b37fa1b9a38c817ed6aa1b1a
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The Feast 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wr...
38.098859
91
0.588224
ff5625e817fa09c0723249851af708113349383d
3,379
py
Python
deep_signature/linalg/affine_transform.py
xenomarz/deep-signature
f831f05971727c5d00cf3b5c556b6a8b658048df
[ "MIT" ]
null
null
null
deep_signature/linalg/affine_transform.py
xenomarz/deep-signature
f831f05971727c5d00cf3b5c556b6a8b658048df
[ "MIT" ]
null
null
null
deep_signature/linalg/affine_transform.py
xenomarz/deep-signature
f831f05971727c5d00cf3b5c556b6a8b658048df
[ "MIT" ]
null
null
null
# numpy import numpy def _validate_eigen_values_ratio(A, min_eig_value_ratio, max_eig_value_ratio, min_eig_value, max_eig_value): w, v = numpy.linalg.eig(A) r1 = w[0] / w[1] r2 = w[1] / w[0] r = numpy.maximum(r1, r2) # return ((r > min_eig_value_ratio) and (r < max_eig_value_ratio)) return ((m...
52.796875
189
0.710269