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
a80da02f6a0a76a970ed34b401c5b246804b823e
82,930
py
Python
pyeccodes/defs/gaussians/1280.py
ecmwf/pyeccodes
dce2c72d3adcc0cb801731366be53327ce13a00b
[ "Apache-2.0" ]
7
2020-04-14T09:41:17.000Z
2021-08-06T09:38:19.000Z
pyeccodes/defs/gaussians/1280.py
ecmwf/pyeccodes
dce2c72d3adcc0cb801731366be53327ce13a00b
[ "Apache-2.0" ]
null
null
null
pyeccodes/defs/gaussians/1280.py
ecmwf/pyeccodes
dce2c72d3adcc0cb801731366be53327ce13a00b
[ "Apache-2.0" ]
3
2020-04-30T12:44:48.000Z
2020-12-15T08:40:26.000Z
def load(h): return (89.946187715665616, 89.876478353332288, 89.806357319542244, 89.736143271609578, 89.665893941215700, 89.595627537554492, 89.525351592371393, 89.455069779122610, 89.384784101392100, 89.3144...
32.369243
33
0.521524
d048feb373a42c1f7f023b5983d47a49f66aa4ec
132
py
Python
venv/lib/python3.8/site-packages/crispy_forms/templates/bootstrap4/layout/column.html.py
Solurix/Flashcards-Django
03c863f6722936093927785a2b20b6b668bb743d
[ "MIT" ]
1
2021-05-16T03:20:23.000Z
2021-05-16T03:20:23.000Z
venv/lib/python3.8/site-packages/crispy_forms/templates/bootstrap4/layout/column.html.py
Solurix/Flashcards-Django
03c863f6722936093927785a2b20b6b668bb743d
[ "MIT" ]
4
2021-03-30T14:06:09.000Z
2021-09-22T19:26:31.000Z
venv/lib/python3.8/site-packages/crispy_forms/templates/bootstrap4/layout/column.html.py
Solurix/Flashcards-Django
03c863f6722936093927785a2b20b6b668bb743d
[ "MIT" ]
null
null
null
XXXX BB BBBBBBBBBBXXXXXBBBBB XXXXXXXBB BBBBB BB BBBBBBBBBBBBBFFFFFFFFFFBBBBXXXXXX FFFFFFFFFFBBBBBX FFFFX FFFF XXXXXX
18.857143
80
0.80303
ca4599dadd6a6581d7f263d643aefb7b9076254d
5,651
py
Python
noxfile.py
zdog234/typer-make
3e28102c091e832eae5b5112a5ff4ad2e9e5aa2e
[ "MIT" ]
null
null
null
noxfile.py
zdog234/typer-make
3e28102c091e832eae5b5112a5ff4ad2e9e5aa2e
[ "MIT" ]
83
2021-05-12T06:17:38.000Z
2022-03-28T00:42:29.000Z
noxfile.py
zdog234/typer-make
3e28102c091e832eae5b5112a5ff4ad2e9e5aa2e
[ "MIT" ]
null
null
null
"""Nox sessions.""" import shutil import sys from pathlib import Path from textwrap import dedent import nox try: from nox_poetry import Session, session except ImportError: message = f"""\ Nox failed to import the 'nox-poetry' package. Please install it using the following command: {sys.executa...
28.685279
87
0.619713
a6e93ac43716bf8339647a351fa04c3e7e2d2573
5,324
py
Python
clients/python/Team-Client.py
Ranakhamis/423xchallenge
90d8b690d145d09004d9cbf6e27ddfe5adf3a0ee
[ "MIT" ]
4
2019-02-23T08:22:03.000Z
2020-01-13T20:11:51.000Z
clients/python/Team-Client.py
Ranakhamis/423xchallenge
90d8b690d145d09004d9cbf6e27ddfe5adf3a0ee
[ "MIT" ]
null
null
null
clients/python/Team-Client.py
Ranakhamis/423xchallenge
90d8b690d145d09004d9cbf6e27ddfe5adf3a0ee
[ "MIT" ]
5
2019-02-23T08:31:32.000Z
2019-03-10T22:20:04.000Z
#!/bin/python # Mars Team Client Example written in Python # Requires the following library to install: sudo pip install websocket-client # if you encounter errors with a Six import: # you can try: pip remove six; pip install six # Windows users: you may need to install the Microsoft Visual C++ Compiler for Python 2.7 ...
35.258278
126
0.632795
463a731fcfee696424b4e1afcffb8bd11c2489b9
1,483
py
Python
src/api-service/__app__/onefuzzlib/task_event.py
bmc-msft/onefuzz
087e6d19b42add9285b53ec963c8bd4ead6067b3
[ "MIT" ]
1
2020-10-27T08:05:57.000Z
2020-10-27T08:05:57.000Z
src/api-service/__app__/onefuzzlib/task_event.py
bmc-msft/onefuzz
087e6d19b42add9285b53ec963c8bd4ead6067b3
[ "MIT" ]
1
2021-02-15T00:38:32.000Z
2021-02-15T00:38:32.000Z
src/api-service/__app__/onefuzzlib/task_event.py
bmc-msft/onefuzz
087e6d19b42add9285b53ec963c8bd4ead6067b3
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. import datetime from typing import List, Optional, Tuple from uuid import UUID from onefuzztypes.models import TaskEvent as BASE_TASK_EVENT from onefuzztypes.models import TaskEventSummary, WorkerEvent from .orm import O...
27.981132
75
0.659474
d3feb5662f53d7ae01c7368354d6f86c88892a29
6,518
py
Python
tests/test_coro.py
johnnoone/py-retry
41e43a8990825d80ffa7d10a0480c55cfc8b3791
[ "MIT" ]
null
null
null
tests/test_coro.py
johnnoone/py-retry
41e43a8990825d80ffa7d10a0480c55cfc8b3791
[ "MIT" ]
null
null
null
tests/test_coro.py
johnnoone/py-retry
41e43a8990825d80ffa7d10a0480c55cfc8b3791
[ "MIT" ]
null
null
null
import pytest from itertools import cycle from retrying import retry, Backoff, ExponentialBackoff, RandBackoff from retrying import RetryError, MaxRetriesError, TimeoutError, TryAgain from unittest.mock import Mock from datetime import timedelta class Dumb(Exception): pass async def coro(stub): action = stu...
27.158333
78
0.662013
33acde58b55fabafc9beb0725c756b2ad37f961a
2,270
py
Python
tothc/bin/run_bot.py
kennydo/tweets-of-the-highest-caliber
5f9d61ded2b4d9e0e65af0524321eac448c79a68
[ "MIT" ]
null
null
null
tothc/bin/run_bot.py
kennydo/tweets-of-the-highest-caliber
5f9d61ded2b4d9e0e65af0524321eac448c79a68
[ "MIT" ]
null
null
null
tothc/bin/run_bot.py
kennydo/tweets-of-the-highest-caliber
5f9d61ded2b4d9e0e65af0524321eac448c79a68
[ "MIT" ]
null
null
null
import argparse import asyncio import logging import os import sys from pathlib import Path from tothc.bots import TOTHCBot from tothc.clients import twitter from tothc.logging import configure_logging log = logging.getLogger(__name__) def parse_args() -> argparse.Namespace: parser = argparse.ArgumentParser() ...
24.408602
93
0.685022
6d2d39c30125a60e2a162e554895604058b841e7
1,033
py
Python
packages/pyre/config/cfg/Config.py
lijun99/pyre
004dfd4c06489b4ba5b32877338ca6440f2d523b
[ "BSD-3-Clause" ]
3
2019-08-02T21:02:47.000Z
2021-09-08T13:59:43.000Z
packages/pyre/config/cfg/Config.py
lijun99/pyre
004dfd4c06489b4ba5b32877338ca6440f2d523b
[ "BSD-3-Clause" ]
null
null
null
packages/pyre/config/cfg/Config.py
lijun99/pyre
004dfd4c06489b4ba5b32877338ca6440f2d523b
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # michael a.g. aïvázis # orthologue # (c) 1998-2019 all rights reserved # # my superclass from ..Codec import Codec # class declaration class Config(Codec): """ This package contains the implementation of the {cfg} reader and writer """ # constants encoding = "cfg" ...
21.520833
77
0.612778
c92d4d4b2751b91ee95978e6968f32c201ae4b07
25,021
py
Python
oraclesql/_forms_builtins.py
felipebz/oraclesql-pygments-lexer
4e34c2356495d1d780aef1d138e78bbdf025b1e0
[ "BSD-2-Clause" ]
2
2017-01-14T20:38:51.000Z
2017-02-16T13:30:03.000Z
oraclesql/_forms_builtins.py
felipebz/oraclesql-pygments-lexer
4e34c2356495d1d780aef1d138e78bbdf025b1e0
[ "BSD-2-Clause" ]
1
2015-06-08T08:21:53.000Z
2015-06-09T01:01:53.000Z
oraclesql/_forms_builtins.py
felipebz/oraclesql-pygments-lexer
4e34c2356495d1d780aef1d138e78bbdf025b1e0
[ "BSD-2-Clause" ]
1
2022-01-06T05:50:53.000Z
2022-01-06T05:50:53.000Z
import re import urllib __all__ = ['ORACLE_KEYWORDS', 'FORMS_BUILTINS'] # Oracle reserved keywords # http://docs.oracle.com/cd/E14072_01/appdev.112/e10830/appb.htm ORACLE_KEYWORDS = ['ACCESS', 'ELSE', 'MODIFY', 'START', 'ADD', ...
32.119384
79
0.290636
0bd7c6a7a20ef49dd183f4696e36f091991f1e63
3,974
py
Python
alipay/aop/api/request/AlipayOpenAgentCancelRequest.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/request/AlipayOpenAgentCancelRequest.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/request/AlipayOpenAgentCancelRequest.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import simplejson as json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AlipayOpenAgentCancelModel import AlipayOpenAgentCancelModel class AlipayOpenAgentCancelRequest(object): def __in...
27.406897
166
0.643181
f671cfb13cb0e9874f59b7558a841f302c28e226
15,557
py
Python
venv/lib/python3.6/site-packages/graphene_django_optimizer/query.py
jyoost/saleordjangooriginal
e7d0da1f6f653607580a9cd792acfc4917908649
[ "CC-BY-4.0" ]
2
2019-12-06T15:40:14.000Z
2020-07-29T21:30:35.000Z
venv/lib/python3.6/site-packages/graphene_django_optimizer/query.py
jyoost/saleor
e7d0da1f6f653607580a9cd792acfc4917908649
[ "CC-BY-4.0" ]
null
null
null
venv/lib/python3.6/site-packages/graphene_django_optimizer/query.py
jyoost/saleor
e7d0da1f6f653607580a9cd792acfc4917908649
[ "CC-BY-4.0" ]
1
2020-07-15T11:27:24.000Z
2020-07-15T11:27:24.000Z
import functools from django.core.exceptions import FieldDoesNotExist from django.db.models import ForeignKey, Prefetch from django.db.models.constants import LOOKUP_SEP from django.db.models.fields.reverse_related import ManyToOneRel from graphene import InputObjectType from graphene.types.generic import GenericScala...
37.759709
99
0.604808
a1ab8e7212f77fc82c4c18700b7444a1f24ecd3a
999
py
Python
knowledge_repo/app/auth_providers/debug.py
meiwanlanjun/knowledge-repo
285d93fa8dd511d45107ff04acb8d255558ee946
[ "Apache-2.0" ]
5,290
2016-09-27T04:23:44.000Z
2022-03-31T16:19:06.000Z
knowledge_repo/app/auth_providers/debug.py
meiwanlanjun/knowledge-repo
285d93fa8dd511d45107ff04acb8d255558ee946
[ "Apache-2.0" ]
459
2016-09-27T14:44:44.000Z
2022-03-31T05:42:30.000Z
knowledge_repo/app/auth_providers/debug.py
meiwanlanjun/knowledge-repo
285d93fa8dd511d45107ff04acb8d255558ee946
[ "Apache-2.0" ]
803
2016-09-27T06:15:48.000Z
2022-03-28T19:03:55.000Z
import flask from flask import request, render_template, flash, redirect, url_for from flask_login import login_user from ..models import User from ..utils.auth import is_safe_url from ..auth_provider import KnowledgeAuthProvider class DebugAuthProvider(KnowledgeAuthProvider): _registry_keys = ['debug'] de...
31.21875
74
0.666667
3af617aab1c5398089e81c83f28914883b88274d
2,330
py
Python
python_code_examples/flask/actors_app/actors.py
gotoplanb/python-adv-web-apps
ea7cec31e412419f39df2744e2b20eff248587cb
[ "MIT" ]
34
2020-02-26T21:31:38.000Z
2022-03-23T05:13:15.000Z
python_code_examples/flask/actors_app/actors.py
gotoplanb/python-adv-web-apps
ea7cec31e412419f39df2744e2b20eff248587cb
[ "MIT" ]
5
2021-05-24T19:18:37.000Z
2022-02-01T15:41:42.000Z
python_code_examples/flask/actors_app/actors.py
gotoplanb/python-adv-web-apps
ea7cec31e412419f39df2744e2b20eff248587cb
[ "MIT" ]
64
2020-03-13T13:16:48.000Z
2022-03-30T11:25:53.000Z
from flask import Flask, render_template, redirect, url_for from flask_bootstrap import Bootstrap from flask_wtf import FlaskForm from wtforms import StringField, SubmitField from wtforms.validators import DataRequired from data import ACTORS from modules import get_names, get_actor, get_id app = Flask(__name__) # Fl...
32.816901
84
0.691416
82d7adf27953b390faefe2f994f1938147623c16
14,706
py
Python
PythonNetwork/venv/Lib/site-packages/scipy/linalg/decomp_svd.py
Moldovandreii/RepetitionCount
b5715b0948b609fde0ce05d45023b7d4cfd635e7
[ "FTL" ]
6,989
2017-07-18T06:23:18.000Z
2022-03-31T15:58:36.000Z
PythonNetwork/venv/Lib/site-packages/scipy/linalg/decomp_svd.py
Moldovandreii/RepetitionCount
b5715b0948b609fde0ce05d45023b7d4cfd635e7
[ "FTL" ]
1,978
2017-07-18T09:17:58.000Z
2022-03-31T14:28:43.000Z
PythonNetwork/venv/Lib/site-packages/scipy/linalg/decomp_svd.py
Moldovandreii/RepetitionCount
b5715b0948b609fde0ce05d45023b7d4cfd635e7
[ "FTL" ]
1,228
2017-07-18T09:03:13.000Z
2022-03-29T05:57:40.000Z
"""SVD decomposition functions.""" from __future__ import division, print_function, absolute_import import numpy from numpy import zeros, r_, diag, dot, arccos, arcsin, where, clip # Local imports. from .misc import LinAlgError, _datacopied from .lapack import get_lapack_funcs, _compute_lwork from .decomp import _asa...
29.589537
80
0.574119
a4fd26b6b044a60d0deddcb59ca40549863aaed4
1,858
py
Python
packaging/rest-service/files/opt/manager/scripts/set-manager-ssl.py
TS-at-WS/cloudify-manager
3e062e8dec16c89d2ab180d0b761cbf76d3f7ddc
[ "Apache-2.0" ]
null
null
null
packaging/rest-service/files/opt/manager/scripts/set-manager-ssl.py
TS-at-WS/cloudify-manager
3e062e8dec16c89d2ab180d0b761cbf76d3f7ddc
[ "Apache-2.0" ]
1
2021-03-26T00:32:30.000Z
2021-03-26T00:32:30.000Z
packaging/rest-service/files/opt/manager/scripts/set-manager-ssl.py
TS-at-WS/cloudify-manager
3e062e8dec16c89d2ab180d0b761cbf76d3f7ddc
[ "Apache-2.0" ]
1
2019-11-24T12:07:18.000Z
2019-11-24T12:07:18.000Z
#!/usr/bin/env python ######### # Copyright (c) 2017 GigaSpaces Technologies Ltd. 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/...
32.596491
77
0.70775
d86b6074ccdb60735df2a5c1d9ebf78bf4189668
71
py
Python
example-flask-peewee/example/models/__init__.py
jaywhy13/social-examples
02e42dd616f80510aaccb278374b686ee8dee2da
[ "BSD-3-Clause" ]
77
2016-12-06T02:28:12.000Z
2021-12-21T03:37:07.000Z
example-flask-peewee/example/models/__init__.py
jaywhy13/social-examples
02e42dd616f80510aaccb278374b686ee8dee2da
[ "BSD-3-Clause" ]
6
2017-01-06T12:18:02.000Z
2020-12-02T17:23:04.000Z
example-flask-peewee/example/models/__init__.py
jaywhy13/social-examples
02e42dd616f80510aaccb278374b686ee8dee2da
[ "BSD-3-Clause" ]
29
2017-02-02T18:11:36.000Z
2022-01-27T08:31:04.000Z
from example.models import user from social_flask_peewee import models
23.666667
38
0.873239
8093b33a5d58698f410cc2ba498e5bea4264ab5b
5,431
py
Python
shard/auto_responses_migration.py
architus/aut-bot
391b98533f0ed9ce235487c27559fe0aad037644
[ "MIT" ]
27
2019-07-06T07:04:26.000Z
2022-02-12T12:10:54.000Z
shard/auto_responses_migration.py
architus/aut-bot
391b98533f0ed9ce235487c27559fe0aad037644
[ "MIT" ]
65
2019-07-06T07:12:45.000Z
2021-10-31T22:45:07.000Z
shard/auto_responses_migration.py
architus/aut-bot
391b98533f0ed9ce235487c27559fe0aad037644
[ "MIT" ]
17
2019-07-06T06:59:04.000Z
2021-06-26T13:42:06.000Z
import os import string import time from sqlalchemy.orm import sessionmaker from sqlalchemy import create_engine import json from collections import defaultdict from lib.models import Command, AutoResponse, Settings from lib.hoar_frost import HoarFrostGenerator from lib.response_grammar.response import parse from lib....
30.005525
97
0.633769
5eae767bdfca3dd268e42ec920e664d1880167b8
2,925
py
Python
transformers/tests/tokenization_gpt2_test.py
wietsedv/transformers
8efc6dd544bf1a30d99d4b5abfc5e214699eab2b
[ "Apache-2.0" ]
56
2020-04-07T09:03:20.000Z
2022-01-05T04:28:48.000Z
transformers/tests/tokenization_gpt2_test.py
eangelica2014/transformers
5e289f69bc564c94132f77c89a34e5f1dd69a592
[ "Apache-2.0" ]
5
2020-06-08T09:21:56.000Z
2021-12-16T12:55:03.000Z
transformers/tests/tokenization_gpt2_test.py
eangelica2014/transformers
5e289f69bc564c94132f77c89a34e5f1dd69a592
[ "Apache-2.0" ]
11
2020-04-17T03:35:50.000Z
2021-12-16T02:50:38.000Z
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
40.625
95
0.672821
12276a8905be53065179d66be483b1102c084789
1,103
py
Python
tests/test_deferred.py
Infinidat/infi.gevent-utils
7aef923fb19c2ea7abfe9f8341d2dfcb7b7eebdd
[ "BSD-3-Clause" ]
null
null
null
tests/test_deferred.py
Infinidat/infi.gevent-utils
7aef923fb19c2ea7abfe9f8341d2dfcb7b7eebdd
[ "BSD-3-Clause" ]
null
null
null
tests/test_deferred.py
Infinidat/infi.gevent-utils
7aef923fb19c2ea7abfe9f8341d2dfcb7b7eebdd
[ "BSD-3-Clause" ]
null
null
null
import sys import os sys.path.append(os.path.dirname(__file__)) from utils import GreenletCalledValidatorTestCase class DeferredTestCase(GreenletCalledValidatorTestCase): def test_func_with_doc(self): from infi.gevent_utils.deferred import create_threadpool_executed_func def foo(): ""...
29.810811
78
0.701723
39eab11883f391844c015afac1611f1a99c901aa
1,519
py
Python
azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/operation_display.py
v-Ajnava/azure-sdk-for-python
a1f6f80eb5869c5b710e8bfb66146546697e2a6f
[ "MIT" ]
4
2016-06-17T23:25:29.000Z
2022-03-30T22:37:45.000Z
azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/operation_display.py
v-Ajnava/azure-sdk-for-python
a1f6f80eb5869c5b710e8bfb66146546697e2a6f
[ "MIT" ]
54
2016-03-25T17:25:01.000Z
2018-10-22T17:27:54.000Z
azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/operation_display.py
v-Ajnava/azure-sdk-for-python
a1f6f80eb5869c5b710e8bfb66146546697e2a6f
[ "MIT" ]
3
2016-05-03T20:49:46.000Z
2017-10-05T21:05:27.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
36.166667
87
0.608295
86dc6e33da0b638aedcd065e2666506fa0a778ac
3,708
py
Python
opennem/diff/loader.py
paulculmsee/opennem
9ebe4ab6d3b97bdeebc352e075bbd5c22a8ddea1
[ "MIT" ]
22
2020-06-30T05:27:21.000Z
2022-02-21T12:13:51.000Z
opennem/diff/loader.py
paulculmsee/opennem
9ebe4ab6d3b97bdeebc352e075bbd5c22a8ddea1
[ "MIT" ]
71
2020-08-07T13:06:30.000Z
2022-03-15T06:44:49.000Z
opennem/diff/loader.py
paulculmsee/opennem
9ebe4ab6d3b97bdeebc352e075bbd5c22a8ddea1
[ "MIT" ]
13
2020-06-30T03:28:32.000Z
2021-12-30T08:17:16.000Z
import json from operator import attrgetter from typing import Any, List from opennem.core.loader import load_data from opennem.core.normalizers import clean_capacity, normalize_whitespace from opennem.importer.compat import ( map_compat_facility_state, map_compat_fueltech, map_compat_network_region, ) fr...
27.671642
78
0.608145
89868c3d5f84efead7d9cc12d0972b1efe63377a
17,347
py
Python
src/regress.py
faskowit/app-fmri-2-mat
2eef29115cb49126547400423d0f9ff681988cc9
[ "MIT" ]
2
2021-08-13T13:39:40.000Z
2022-02-07T15:02:23.000Z
src/regress.py
faskowit/app-fmri-2-mat
2eef29115cb49126547400423d0f9ff681988cc9
[ "MIT" ]
12
2019-07-10T14:05:03.000Z
2022-02-22T16:35:08.000Z
src/regress.py
faskowit/app-fmri-2-mat
2eef29115cb49126547400423d0f9ff681988cc9
[ "MIT" ]
3
2019-04-17T21:26:15.000Z
2021-04-01T07:42:46.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Oct 23 15:46:26 2018 @author: jfaskowi copied/adapted from original code here: https://github.com/fliem/sea_zrh_rs """ import argparse import json import nibabel as nib import numpy as np from nilearn import input_data, image import pandas as pd # f...
38.634744
117
0.582579
02de4b0b105af415b40a27a33626c00d0feedac0
3,892
py
Python
ecs_ecs/hooks.py
erpcloudsystems/ecs_ecs
0e6d9978c542b526eb41514e2d347881631374cb
[ "MIT" ]
null
null
null
ecs_ecs/hooks.py
erpcloudsystems/ecs_ecs
0e6d9978c542b526eb41514e2d347881631374cb
[ "MIT" ]
null
null
null
ecs_ecs/hooks.py
erpcloudsystems/ecs_ecs
0e6d9978c542b526eb41514e2d347881631374cb
[ "MIT" ]
null
null
null
from . import __version__ as app_version app_name = "ecs_ecs" app_title = "ECS" app_publisher = "erpcloud.systems" app_description = "ecs customizations" app_icon = "octicon octicon-file-directory" app_color = "grey" app_email = "info" app_license = "MIT" # Includes in <head> # ------------------ # include js, css f...
22.113636
78
0.655447
21d5701d02c24d38d9031d3de443f512702181ec
40
py
Python
AlienMagicTranscript/__init__.py
luxuncang/AlienMagicTranscript
32fbb59582b13cc67afe14bef1a0187c5637ac8b
[ "MIT" ]
2
2022-03-15T09:14:57.000Z
2022-03-27T16:43:23.000Z
AlienMagicTranscript/__init__.py
luxuncang/AlienMagicTranscript
32fbb59582b13cc67afe14bef1a0187c5637ac8b
[ "MIT" ]
null
null
null
AlienMagicTranscript/__init__.py
luxuncang/AlienMagicTranscript
32fbb59582b13cc67afe14bef1a0187c5637ac8b
[ "MIT" ]
null
null
null
from .defhook import defhook, cover_var
20
39
0.825
d1fb23b72da86b9bedbb6e8bd2f5afc2fda60270
1,200
py
Python
assignments/10_conserved/conserved.py
saminamomtaz/be434-fall-2021
33ef93b9648584a881fc9e83cfc6f49569b01dea
[ "MIT" ]
null
null
null
assignments/10_conserved/conserved.py
saminamomtaz/be434-fall-2021
33ef93b9648584a881fc9e83cfc6f49569b01dea
[ "MIT" ]
null
null
null
assignments/10_conserved/conserved.py
saminamomtaz/be434-fall-2021
33ef93b9648584a881fc9e83cfc6f49569b01dea
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Author : saminamomtaz <saminamomtaz@localhost> Date : 2021-11-08 Purpose: Find conserved bases """ import argparse # -------------------------------------------------- def get_args(): """Get command-line arguments""" parser = argparse.ArgumentParser( description='Find co...
25.531915
63
0.4925
6d0fe2a624aac229c4326ba99ebd37deb7e0f26e
1,107
py
Python
add_data.py
anushka19/FM_Music
4a78c93972deb09849d29a23c76a5228b36bd6b3
[ "MIT" ]
null
null
null
add_data.py
anushka19/FM_Music
4a78c93972deb09849d29a23c76a5228b36bd6b3
[ "MIT" ]
null
null
null
add_data.py
anushka19/FM_Music
4a78c93972deb09849d29a23c76a5228b36bd6b3
[ "MIT" ]
null
null
null
from app import db from models import Song, Playlist, Item, User p1 = Playlist(id = 3456) p2 = Playlist(id = 2342) p3 = Playlist(id = 4576) p4 = Playlist(id = 8743) u1 = User(id = 1, username = "mlky_way", playlist_id = p1.id) u2 = User(id = 2, username = "martian2", playlist_id = p2.id) u3 = User(id = 3, use...
34.59375
91
0.63776
4e0f79eb8c8d5e896d8d31a750442336e5194b76
476
py
Python
setup.py
kailin-lu/recordlinker
9112337ab9c39098489364a958112f9626fca34a
[ "MIT" ]
1
2019-06-24T12:32:40.000Z
2019-06-24T12:32:40.000Z
setup.py
kailin-lu/recordlinker
9112337ab9c39098489364a958112f9626fca34a
[ "MIT" ]
null
null
null
setup.py
kailin-lu/recordlinker
9112337ab9c39098489364a958112f9626fca34a
[ "MIT" ]
1
2019-03-06T15:59:39.000Z
2019-03-06T15:59:39.000Z
from setuptools import setup setup(name='recordlinker', version='0.1', description='Record linking with blocking using deep learning', license='MIT', keywords='recordlinker autoencoder blocking record linkage', install_requires=[ 'numpy>=1.0', 'pandas>=0.22', ...
26.444444
69
0.579832
a9c86d2591a09368385cbc9b41fb4a8102b5b2e1
17,089
py
Python
test/test_commands.py
MikeKneeB/wordle-buddy
53e13b8cbcd1aa0ddb819071e82ba872116142a1
[ "MIT" ]
1
2022-01-28T18:20:36.000Z
2022-01-28T18:20:36.000Z
test/test_commands.py
MikeKneeB/wordle-buddy
53e13b8cbcd1aa0ddb819071e82ba872116142a1
[ "MIT" ]
null
null
null
test/test_commands.py
MikeKneeB/wordle-buddy
53e13b8cbcd1aa0ddb819071e82ba872116142a1
[ "MIT" ]
null
null
null
import datetime import discord import pytest from wordle_buddy import commands as wc from unittest.mock import patch from unittest.mock import call TEST_DATE = datetime.datetime(day=27, month=1, year=2021) TEST_DATE_BEFORE = datetime.datetime(day=26, month=1, year=2021) TEST_DAY_NUM = 321 normal_inputs = (4, {'Mik...
41.987715
149
0.6259
6708ac68cde10970e197d75e18823db3a0f93f54
1,241
py
Python
src/k8s-configuration/azext_k8s_configuration/vendored_sdks/models/_source_control_configuration_client_enums.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
2
2021-03-24T21:06:20.000Z
2021-03-24T21:07:58.000Z
src/k8s-configuration/azext_k8s_configuration/vendored_sdks/models/_source_control_configuration_client_enums.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
3
2020-05-27T20:16:26.000Z
2020-07-23T19:46:49.000Z
src/k8s-configuration/azext_k8s_configuration/vendored_sdks/models/_source_control_configuration_client_enums.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
5
2020-09-08T22:46:48.000Z
2020-11-08T14:54:35.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
21.77193
76
0.603546
5972cfd7a5ef5a196ef65a879e6080ad3acd0925
4,290
py
Python
tests/integration/test_jdbc_bridge/test.py
mga-chka/ClickHouse
4fe722d1a460aea63de883299790ae8671424fae
[ "Apache-2.0" ]
3
2019-06-27T08:59:08.000Z
2021-09-03T02:38:02.000Z
tests/integration/test_jdbc_bridge/test.py
mga-chka/ClickHouse
4fe722d1a460aea63de883299790ae8671424fae
[ "Apache-2.0" ]
1
2020-10-30T15:17:16.000Z
2020-10-30T15:17:16.000Z
tests/integration/test_jdbc_bridge/test.py
mga-chka/ClickHouse
4fe722d1a460aea63de883299790ae8671424fae
[ "Apache-2.0" ]
1
2022-01-11T05:56:58.000Z
2022-01-11T05:56:58.000Z
import contextlib import os.path as p import pytest import time import uuid from helpers.cluster import ClickHouseCluster from helpers.test_tools import TSV from string import Template cluster = ClickHouseCluster(__file__) instance = cluster.add_instance("instance", main_configs=["configs/jdbc_bridge.xml"], with_jdbc...
38.303571
115
0.640559
ab819a1734ddb45819300c0b88a06de4ac9371c2
1,735
py
Python
ui/ui_button.py
vamoosebbf/MaixUI
b8069509419e37fe767169a4996372c32a841ef9
[ "MIT" ]
1
2020-12-07T05:57:46.000Z
2020-12-07T05:57:46.000Z
ui/ui_button.py
vamoosebbf/MaixUI
b8069509419e37fe767169a4996372c32a841ef9
[ "MIT" ]
null
null
null
ui/ui_button.py
vamoosebbf/MaixUI
b8069509419e37fe767169a4996372c32a841ef9
[ "MIT" ]
null
null
null
import os import image try: from ui_label import Label except: from ui.ui_label import Label class Button(Label): def __init__(self, x, y, w, h): super().__init__(x, y, w, h) if __name__ == '__main__': import time try: from ui_canvas import ui from touch import Touch ...
23.767123
70
0.599424
dfbd4b1b7f07e7e435704a4514fc98fbc5cb2b06
8,608
py
Python
PathPlanning/RRT/rrt.py
ilkeratik/PythonRobotics
9da650e31bc7879ac2a5d59bf46415b0232377d6
[ "MIT" ]
15,431
2016-10-07T08:25:10.000Z
2022-03-31T22:06:02.000Z
PathPlanning/RRT/rrt.py
rongrong1314/PythonRobotics
ee729d6b6ef1809c4cd402531e8fdce91a54d155
[ "MIT" ]
486
2017-05-01T00:40:00.000Z
2022-03-23T06:57:42.000Z
PathPlanning/RRT/rrt.py
rongrong1314/PythonRobotics
ee729d6b6ef1809c4cd402531e8fdce91a54d155
[ "MIT" ]
4,978
2017-03-05T22:23:36.000Z
2022-03-31T12:42:17.000Z
""" Path planning Sample Code with Randomized Rapidly-Exploring Random Trees (RRT) author: AtsushiSakai(@Atsushi_twi) """ import math import random import matplotlib.pyplot as plt import numpy as np show_animation = True class RRT: """ Class for RRT planning """ class Node: """ ...
30.309859
79
0.546701
da204a0b757a6887f5efcb5021ca65777d1909be
51,386
py
Python
skywalker/Skywalker.py
iPlantCollaborativeOpenSource/skywalker-python.tornado
2fe2c03271c3c86dfb362d4e44d1108a97b38e3c
[ "BSD-3-Clause" ]
null
null
null
skywalker/Skywalker.py
iPlantCollaborativeOpenSource/skywalker-python.tornado
2fe2c03271c3c86dfb362d4e44d1108a97b38e3c
[ "BSD-3-Clause" ]
null
null
null
skywalker/Skywalker.py
iPlantCollaborativeOpenSource/skywalker-python.tornado
2fe2c03271c3c86dfb362d4e44d1108a97b38e3c
[ "BSD-3-Clause" ]
null
null
null
# # Autogenerated by Thrift Compiler (0.9.2) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # # options string: py:tornado # from thrift.Thrift import TType, TMessageType, TException, TApplicationException from ttypes import * from thrift.Thrift import TProcessor from thrift.transport import TTr...
31.467238
188
0.670883
cc097bc365d78fa9aae075f6e3a607b05e36019d
369
py
Python
examples/20184227035.py
lobo0616/bysj
c90bf1de8328cf44acb6faaaac4b575b83ef11a1
[ "MIT" ]
1
2020-03-30T15:33:25.000Z
2020-03-30T15:33:25.000Z
examples/20184227035.py
lobo0616/bysj
c90bf1de8328cf44acb6faaaac4b575b83ef11a1
[ "MIT" ]
null
null
null
examples/20184227035.py
lobo0616/bysj
c90bf1de8328cf44acb6faaaac4b575b83ef11a1
[ "MIT" ]
1
2020-04-02T14:37:26.000Z
2020-04-02T14:37:26.000Z
def sort(data_list): length = len(data_list) for i in range(0, length): min = i for j in range(i+1, length): if data_list[j] < data_list[min]: min = j data_list[min], data_list[i] = data_list[i], data_list[min] return data_list def two_s...
24.6
67
0.542005
6c4abe9a439334c0f82517033eee5fe431557942
920
py
Python
Graphs/EulerGraph.py
Saicharan67/Interview-Coding-Questions
b28cccd41e380f15b833039d687931570908adfb
[ "MIT" ]
12
2021-06-18T16:24:27.000Z
2021-11-04T03:30:00.000Z
Graphs/EulerGraph.py
Saicharan67/Interview-Coding-Questions
b28cccd41e380f15b833039d687931570908adfb
[ "MIT" ]
32
2021-10-01T07:15:00.000Z
2021-11-05T15:35:53.000Z
Graphs/EulerGraph.py
Saicharan67/Interview-Coding-Questions
b28cccd41e380f15b833039d687931570908adfb
[ "MIT" ]
21
2021-09-29T09:16:31.000Z
2021-10-30T10:06:21.000Z
def Connected_Graph(adjlist): visted = [False]*(len(adjlist)) node = -1 for i in adjlist.keys(): if len(adjlist[i]) > 0: node = i break if node == -1: return True def DFS(node): visted[node] = True for x in adjlist[node]: if not ...
20
54
0.509783
9b0476793cbe132e7287f616fdfee68192eb4374
4,702
py
Python
Boosting_DTL_Multithread.py
DelaunayTriangulationLearner/DTLearn
87cc1ca480cc489b3c67ab68da4b8276aec74bd5
[ "Apache-1.1" ]
null
null
null
Boosting_DTL_Multithread.py
DelaunayTriangulationLearner/DTLearn
87cc1ca480cc489b3c67ab68da4b8276aec74bd5
[ "Apache-1.1" ]
null
null
null
Boosting_DTL_Multithread.py
DelaunayTriangulationLearner/DTLearn
87cc1ca480cc489b3c67ab68da4b8276aec74bd5
[ "Apache-1.1" ]
null
null
null
from DTL import * import itertools import statsmodels.api as sm from pathos.multiprocessing import Pool from contextlib import closing import warnings warnings.filterwarnings("ignore") class Boosting_DTL_Regression: def __init__(self): self.n_estimators = 10 self.min_dim = 1 self.max_dim = ...
32.205479
171
0.574436
4a65a75444bd34a576dee20a78c4d8500f39b33b
1,674
py
Python
source/lambda/quicksight-custom-resources/test/dump_environment.py
swipswaps/discovering-hot-topics-using-machine-learning
6de8b4670e5a00ad5bf2eb7c27895241d4ea95bf
[ "Apache-2.0" ]
8
2021-09-25T10:14:30.000Z
2022-02-14T10:45:00.000Z
source/lambda/quicksight-custom-resources/test/dump_environment.py
swipswaps/discovering-hot-topics-using-machine-learning
6de8b4670e5a00ad5bf2eb7c27895241d4ea95bf
[ "Apache-2.0" ]
21
2021-07-22T19:02:25.000Z
2022-02-14T16:28:18.000Z
source/lambda/quicksight-custom-resources/test/dump_environment.py
swipswaps/discovering-hot-topics-using-machine-learning
6de8b4670e5a00ad5bf2eb7c27895241d4ea95bf
[ "Apache-2.0" ]
7
2021-09-28T03:09:08.000Z
2022-02-24T16:33:25.000Z
#!/usr/bin/env python ###################################################################################################################### # Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # ...
59.785714
119
0.366786
e95577cfd8211bff3d29a604ab7ede292f56f600
4,230
py
Python
attentionocr/data_generator.py
rzamarefat/Att_OCR
71695ebca65c9c7070c193b167530a74da1902c9
[ "MIT" ]
null
null
null
attentionocr/data_generator.py
rzamarefat/Att_OCR
71695ebca65c9c7070c193b167530a74da1902c9
[ "MIT" ]
null
null
null
attentionocr/data_generator.py
rzamarefat/Att_OCR
71695ebca65c9c7070c193b167530a74da1902c9
[ "MIT" ]
null
null
null
import string from glob import glob from random import randint, choice from typing import Tuple, Optional import os import numpy as np from PIL import Image, ImageDraw, ImageFont from imgaug import augmenters as iaa import random from .image import ImageUtil from .vectorizer import Vectorizer from .vocabulary import d...
32.045455
127
0.652009
ec4c73d643f1ff3b2a9cd9250f674fd412b6416a
1,938
py
Python
email_server.py
clavesi/bonjour-morning-emailer
8664e9eb5e53295da3891ef9c1b2b4d8792bf6c2
[ "MIT" ]
null
null
null
email_server.py
clavesi/bonjour-morning-emailer
8664e9eb5e53295da3891ef9c1b2b4d8792bf6c2
[ "MIT" ]
1
2020-01-01T20:57:20.000Z
2020-01-01T20:57:20.000Z
email_server.py
clavesi/bonjour-morning-emailer
8664e9eb5e53295da3891ef9c1b2b4d8792bf6c2
[ "MIT" ]
null
null
null
import smtplib, ssl, settings from email.mime.text import MIMEText from email.utils import formataddr from email.mime.multipart import MIMEMultipart from email.mime.base import MIMEBase from email import encoders from datetime import date # Email body text email_html = open('email.html') # Open html file email_body = ...
33.413793
84
0.71259
8072e6bac5cc448935c4fe3dae191beb20a0b2e7
6,678
py
Python
model/raft/utils.py
askerlee/rift
d4dbf42b82f1f83dfab18f8da8fe3a1d0a716fa2
[ "MIT" ]
11
2022-02-14T08:31:04.000Z
2022-03-29T08:20:17.000Z
model/raft/utils.py
askerlee/rift
d4dbf42b82f1f83dfab18f8da8fe3a1d0a716fa2
[ "MIT" ]
3
2022-02-14T11:19:15.000Z
2022-03-19T05:11:25.000Z
model/raft/utils.py
askerlee/rift
d4dbf42b82f1f83dfab18f8da8fe3a1d0a716fa2
[ "MIT" ]
null
null
null
import torch import torch.nn.functional as F import numpy as np from scipy import interpolate # from torch_scatter import scatter_softmax, scatter_add import os # Only print on GPU0. Avoid duplicate messages. def print0(*print_args, **kwargs): local_rank = int(os.environ.get('LOCAL_RANK', 0)) if local_rank == ...
33.727273
86
0.59988
56fd83e9e9e826fab0ff229bb4666b192f1f9cc0
2,937
py
Python
depend/zcash/qa/rpc-tests/wallet_db_flush.py
jvff/zcash_script
7ea844c80fa3741dfb9a75004b155807f21afb8d
[ "Apache-2.0" ]
27
2018-06-01T02:39:28.000Z
2021-03-24T13:19:00.000Z
depend/zcash/qa/rpc-tests/wallet_db_flush.py
jvff/zcash_script
7ea844c80fa3741dfb9a75004b155807f21afb8d
[ "Apache-2.0" ]
15
2018-07-07T14:29:51.000Z
2022-03-02T10:22:51.000Z
depend/zcash/qa/rpc-tests/wallet_db_flush.py
jvff/zcash_script
7ea844c80fa3741dfb9a75004b155807f21afb8d
[ "Apache-2.0" ]
15
2018-07-25T16:58:30.000Z
2021-10-30T07:51:25.000Z
#!/usr/bin/env python3 # Copyright (c) 2020 The Zcash developers # Distributed under the MIT software license, see the accompanying # file COPYING or https://www.opensource.org/licenses/mit-license.php . # # This test reproduces https://github.com/zcash/zcash/issues/4301 # It takes an hour to run! from test_framework....
34.151163
95
0.637385
36cff4195f9a00ee132215c386d5480c91266fea
9,991
py
Python
singer.py
memukuge/roomBallerina
04d56e7dd80610421503bddc1c0668c8317482ae
[ "WTFPL" ]
null
null
null
singer.py
memukuge/roomBallerina
04d56e7dd80610421503bddc1c0668c8317482ae
[ "WTFPL" ]
null
null
null
singer.py
memukuge/roomBallerina
04d56e7dd80610421503bddc1c0668c8317482ae
[ "WTFPL" ]
null
null
null
#read file until eof/digit/alphabet def readChar(file): while True: c = file.read(1) if not c: print("EOF") return None else: if c.isdigit(): return c elif c.isalpha(): return c elif c=='.' or c=='+'...
23.343458
83
0.486438
801fee0b94f704056f54c18fe82ef6fb69600aba
9,789
py
Python
jobs/migrations/0014_auto__chg_field_job_updated.py
dltj/shortimer
60934f0eaba20a79344b26976119a404688aa4e5
[ "CC0-1.0" ]
null
null
null
jobs/migrations/0014_auto__chg_field_job_updated.py
dltj/shortimer
60934f0eaba20a79344b26976119a404688aa4e5
[ "CC0-1.0" ]
8
2015-01-07T02:29:59.000Z
2015-02-20T15:54:51.000Z
jobs/migrations/0014_auto__chg_field_job_updated.py
thatandromeda/shortimer
3eb3e2e9c98d06b50c846e241ecfb9fb466c4785
[ "CC0-1.0" ]
null
null
null
# encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Changing field 'Job.updated' db.alter_column('jobs_job', 'updated', self.gf('django.db.models.fields.Dat...
74.159091
182
0.557667
995647aa60cf324ea8f300366440c97c6154e000
14,353
py
Python
topo/tests/unit/testplot.py
Tasignotas/topographica_mirror
28d02cc4a45d79b24a8b1051e25c20f0bb8b911b
[ "BSD-3-Clause" ]
null
null
null
topo/tests/unit/testplot.py
Tasignotas/topographica_mirror
28d02cc4a45d79b24a8b1051e25c20f0bb8b911b
[ "BSD-3-Clause" ]
null
null
null
topo/tests/unit/testplot.py
Tasignotas/topographica_mirror
28d02cc4a45d79b24a8b1051e25c20f0bb8b911b
[ "BSD-3-Clause" ]
null
null
null
""" Test for the Plot class. """ import unittest from topo.base.sheet import * #from testsheetview import ImageGenerator SHOW_PLOTS = False ### JC: My new imports from topo.plotting.plot import make_template_plot import numpy as np import param from holoviews.core import BoundingBox, NdMapping from holoviews.inte...
38.479893
111
0.59228
67ad7efe281fa1cf5207ce65570970dfa1ebac91
1,487
py
Python
index/migrations/0003_answers_story_storydetail.py
WowSyler/django-start
0f0fb4df54d2e2d4427f9232eba3b1e736289130
[ "MIT" ]
null
null
null
index/migrations/0003_answers_story_storydetail.py
WowSyler/django-start
0f0fb4df54d2e2d4427f9232eba3b1e736289130
[ "MIT" ]
null
null
null
index/migrations/0003_answers_story_storydetail.py
WowSyler/django-start
0f0fb4df54d2e2d4427f9232eba3b1e736289130
[ "MIT" ]
null
null
null
# Generated by Django 2.2.1 on 2019-05-26 20:38 from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('index', '0002_auto_20190524_0033'), ] operations = [ migrations.CreateModel( ...
35.404762
122
0.572293
89f91b1add277d5b5c773dd5f9fec2a5de16423c
14,127
py
Python
_build/jupyter_execute/Module1/m1_03.py
liuzhengqi1996/math452_Spring2022
b01d1d9bee4778b3069e314c775a54f16dd44053
[ "MIT" ]
null
null
null
_build/jupyter_execute/Module1/m1_03.py
liuzhengqi1996/math452_Spring2022
b01d1d9bee4778b3069e314c775a54f16dd44053
[ "MIT" ]
null
null
null
_build/jupyter_execute/Module1/m1_03.py
liuzhengqi1996/math452_Spring2022
b01d1d9bee4778b3069e314c775a54f16dd44053
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # # Logistic regression # In[1]: from IPython.display import IFrame IFrame(src="https://cdnapisec.kaltura.com/p/2356971/sp/235697100/embedIframeJs/uiconf_id/41416911/partner_id/2356971?iframeembed=true&playerId=kaltura_player&entry_id=1_3im0zbc7&flashvars[streamerType]=auto&am...
34.040964
804
0.633893
41155ef5094622a24740fc80cd354dbcad2d23f7
1,057
py
Python
migrations/versions/245330ec1bc0_posts_table.py
arvitaly/flask_mega_tutorial
c26b396718142037d7fd6c766a0869c45d7499a4
[ "MIT" ]
null
null
null
migrations/versions/245330ec1bc0_posts_table.py
arvitaly/flask_mega_tutorial
c26b396718142037d7fd6c766a0869c45d7499a4
[ "MIT" ]
null
null
null
migrations/versions/245330ec1bc0_posts_table.py
arvitaly/flask_mega_tutorial
c26b396718142037d7fd6c766a0869c45d7499a4
[ "MIT" ]
null
null
null
"""posts table Revision ID: 245330ec1bc0 Revises: d3b9355e115e Create Date: 2021-01-29 01:09:20.680630 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '245330ec1bc0' down_revision = 'd3b9355e115e' branch_labels = None depends_on = None def upgrade(): # ##...
27.815789
83
0.676443
f980e7e67dc3da5352772f2764db939f35292bce
11,404
py
Python
scripts/NavPy/archive/magcal_ekf.py
AuraUAS/aura-core
4711521074db72ba9089213e14455d89dc5306c0
[ "MIT", "BSD-2-Clause-FreeBSD" ]
8
2016-08-03T19:35:03.000Z
2019-12-15T06:25:05.000Z
scripts/NavPy/archive/magcal_ekf.py
jarilq/aura-core
7880ed265396bf8c89b783835853328e6d7d1589
[ "MIT", "BSD-2-Clause-FreeBSD" ]
4
2018-09-27T15:48:56.000Z
2018-11-05T12:38:10.000Z
scripts/NavPy/archive/magcal_ekf.py
jarilq/aura-core
7880ed265396bf8c89b783835853328e6d7d1589
[ "MIT", "BSD-2-Clause-FreeBSD" ]
5
2017-06-28T19:15:36.000Z
2020-02-19T19:31:24.000Z
#!/usr/bin/python import argparse import fileinput import geomag from mpl_toolkits.mplot3d import Axes3D import matplotlib.pyplot as plt import numpy as np import os import re from scipy import interpolate import sys import navpy import imucal import transformations argparser = argparse.ArgumentParser(description='...
36.787097
116
0.622325
d757c75c228626a21419d1932d89647f04629536
2,397
py
Python
scripts/airport_poster.py
RaphaelDELAIR/traffic
47591f39f83e22aff65ae06987bce238cd2dd353
[ "MIT" ]
209
2018-06-29T10:55:27.000Z
2022-03-31T19:30:06.000Z
scripts/airport_poster.py
RaphaelDELAIR/traffic
47591f39f83e22aff65ae06987bce238cd2dd353
[ "MIT" ]
151
2018-10-05T12:47:53.000Z
2022-02-20T14:47:57.000Z
scripts/airport_poster.py
RaphaelDELAIR/traffic
47591f39f83e22aff65ae06987bce238cd2dd353
[ "MIT" ]
68
2018-12-19T13:42:34.000Z
2022-03-11T15:33:41.000Z
from itertools import count import matplotlib.pyplot as plt from cartes.crs import Mercator # type: ignore from cartes.osm import Overpass def main() -> None: icaos = [ "EGLL", # Heathrow Airport "LFPG", # Charles de Gaulle Airport "EHAM", # Amsterdam Airport Schiphol "EDDF",...
31.12987
68
0.53859
0343fd3a34969488fef0e731b3b2be9d85c04f0b
503
py
Python
Tanks_new/main.py
cfzile/muzero-general
25d80f1c8858d8e8adc8e91cbdb6866dc701c656
[ "MIT" ]
null
null
null
Tanks_new/main.py
cfzile/muzero-general
25d80f1c8858d8e8adc8e91cbdb6866dc701c656
[ "MIT" ]
null
null
null
Tanks_new/main.py
cfzile/muzero-general
25d80f1c8858d8e8adc8e91cbdb6866dc701c656
[ "MIT" ]
1
2020-12-23T09:44:01.000Z
2020-12-23T09:44:01.000Z
import pygame #from maze import draw_maze, maze_generation from settings import Settings from game_func import GameFunc def run_game(): pygame.init() settings = Settings() clock = pygame.time.Clock() screen = pygame.display.set_mode(settings.screen_sizes) pygame.display.set_caption('Environment') ...
23.952381
59
0.695825
0306eed87574c7104616cec48c3c21ac1abfa1cf
20,003
py
Python
tests/unit/pydsl_test.py
jkur/salt
3e62675550f9869d550d7787800270e632955d2f
[ "Apache-2.0" ]
2
2015-11-07T12:05:15.000Z
2018-10-29T13:21:06.000Z
tests/unit/pydsl_test.py
jkur/salt
3e62675550f9869d550d7787800270e632955d2f
[ "Apache-2.0" ]
null
null
null
tests/unit/pydsl_test.py
jkur/salt
3e62675550f9869d550d7787800270e632955d2f
[ "Apache-2.0" ]
1
2020-10-19T11:49:50.000Z
2020-10-19T11:49:50.000Z
# -*- coding: utf-8 -*- # Import Python libs from __future__ import absolute_import import os import sys import shutil import tempfile import textwrap import copy from cStringIO import StringIO # Import Salt Testing libs from salttesting.unit import TestCase from salttesting.helpers import ensure_in_syspath ensure_i...
36.17179
114
0.498975
69821763bdb1cb015230f9143c5c0b82386feb95
2,862
py
Python
test/functional/p2p_addr_relay.py
leolin04/bitcoin
16153662a43884fd68636b1c0433f787965cc2c0
[ "MIT" ]
149
2021-03-21T18:04:20.000Z
2021-07-01T21:14:39.000Z
test/functional/p2p_addr_relay.py
davidpales1/mastercoin
457c011e84bd2e00b06d3338b78d42b5b8999172
[ "MIT" ]
30
2018-01-30T21:24:30.000Z
2021-05-08T19:50:38.000Z
test/functional/p2p_addr_relay.py
davidpales1/mastercoin
457c011e84bd2e00b06d3338b78d42b5b8999172
[ "MIT" ]
23
2018-04-02T11:55:16.000Z
2022-01-25T02:12:57.000Z
#!/usr/bin/env python3 # Copyright (c) 2020 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """ Test addr relay """ from test_framework.messages import ( CAddress, NODE_NETWORK, NODE_WITNESS...
32.522727
102
0.654088
27aeb7fdf16b09f7237de1869c61700ab3070d36
1,561
py
Python
examples/diffusion/time_poisson_explicit.py
vondrejc/sfepy
8e427af699c4b2858eb096510057abb3ae7e28e8
[ "BSD-3-Clause" ]
null
null
null
examples/diffusion/time_poisson_explicit.py
vondrejc/sfepy
8e427af699c4b2858eb096510057abb3ae7e28e8
[ "BSD-3-Clause" ]
null
null
null
examples/diffusion/time_poisson_explicit.py
vondrejc/sfepy
8e427af699c4b2858eb096510057abb3ae7e28e8
[ "BSD-3-Clause" ]
2
2019-01-14T03:12:34.000Z
2021-05-25T11:44:50.000Z
r""" Transient Laplace equation. The same example as time_poisson.py, but using the short syntax of keywords, and explicit time-stepping. Find :math:`T(t)` for :math:`t \in [0, t_{\rm final}]` such that: .. math:: \int_{\Omega} s \pdiff{T}{t} + \int_{\Omega} c \nabla s \cdot \nabla T = 0 \;, \quad \f...
19.759494
77
0.519539
58f23a81390d59b1f82e967952aa1dffdd8c80d9
29,817
py
Python
mars/scheduler/operands/common.py
ChenQuan/mars
46fc9747e99210cebfabfc2d85bcc8272440d1a3
[ "Apache-2.0" ]
null
null
null
mars/scheduler/operands/common.py
ChenQuan/mars
46fc9747e99210cebfabfc2d85bcc8272440d1a3
[ "Apache-2.0" ]
null
null
null
mars/scheduler/operands/common.py
ChenQuan/mars
46fc9747e99210cebfabfc2d85bcc8272440d1a3
[ "Apache-2.0" ]
null
null
null
# Copyright 1999-2018 Alibaba Group Holding 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 a...
44.502985
110
0.616293
253a55d7326b83bf07c241c2c3c0c1708df46c07
3,041
py
Python
hha_prj/backend/serializers.py
cxtruong70/HHA-PRJ
da9e7bffac8b28c30daf218188b4cf402028b820
[ "MIT" ]
null
null
null
hha_prj/backend/serializers.py
cxtruong70/HHA-PRJ
da9e7bffac8b28c30daf218188b4cf402028b820
[ "MIT" ]
null
null
null
hha_prj/backend/serializers.py
cxtruong70/HHA-PRJ
da9e7bffac8b28c30daf218188b4cf402028b820
[ "MIT" ]
null
null
null
from django.db.models import fields from rest_framework import serializers from backend.models import MonthlyRecord from backend.models import CustomUser from backend.models import Department, Role, CurrentFieldsList from backend.models import DischargedAliveRehabGreenData,StayedInWardRehabGreenData from rest_framewo...
32.351064
83
0.675436
a2882b46b2ae0dc904ffdcf47f8b18697bc41758
499
py
Python
output/models/nist_data/list_pkg/time/schema_instance/nistschema_sv_iv_list_time_length_4_xsd/nistschema_sv_iv_list_time_length_4.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/nist_data/list_pkg/time/schema_instance/nistschema_sv_iv_list_time_length_4_xsd/nistschema_sv_iv_list_time_length_4.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/nist_data/list_pkg/time/schema_instance/nistschema_sv_iv_list_time_length_4_xsd/nistschema_sv_iv_list_time_length_4.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from dataclasses import dataclass, field from typing import List from xsdata.models.datatype import XmlTime __NAMESPACE__ = "NISTSchema-SV-IV-list-time-length-4-NS" @dataclass class NistschemaSvIvListTimeLength4: class Meta: name = "NISTSchema-SV-IV-list-time-length-4" namespace = "NISTSchema-SV-...
23.761905
60
0.653307
8c09d838c497605f0810280ba75a41569b4ad2fa
17,019
py
Python
lib/osv/impact.py
isabella232/osv
2e8fdf7983ed170e9d94cebed8e0a98f3269cebb
[ "Apache-2.0" ]
null
null
null
lib/osv/impact.py
isabella232/osv
2e8fdf7983ed170e9d94cebed8e0a98f3269cebb
[ "Apache-2.0" ]
1
2021-06-18T13:51:59.000Z
2021-06-18T13:52:43.000Z
lib/osv/impact.py
isabella232/osv
2e8fdf7983ed170e9d94cebed8e0a98f3269cebb
[ "Apache-2.0" ]
null
null
null
# 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 agreed to in writing, ...
33.568047
80
0.687408
8214ca24c1d34a606662dd79179841fd9096f725
607
py
Python
routes/auth.py
dvrpc/tmc-uploader
e7aea6c6b2a66031daf7aecf4f264aecf298f347
[ "MIT" ]
null
null
null
routes/auth.py
dvrpc/tmc-uploader
e7aea6c6b2a66031daf7aecf4f264aecf298f347
[ "MIT" ]
null
null
null
routes/auth.py
dvrpc/tmc-uploader
e7aea6c6b2a66031daf7aecf4f264aecf298f347
[ "MIT" ]
null
null
null
from flask import flash, redirect, url_for from flask_login import logout_user, current_user, login_user, LoginManager from models import User login_manager = LoginManager() @login_manager.user_loader def load_user(user_id): """Check if user is logged-in on every page load.""" if user_id is not None: ...
27.590909
75
0.747941
69251f99751f35a01aee33aa399772d28293ebeb
852
py
Python
mqbench/custom_quantizer/nlp_quantizer.py
PannenetsF/MQBench
4336493ded0bf2bb9f11377e9105b14ec6191c09
[ "Apache-2.0" ]
179
2021-09-22T08:44:51.000Z
2022-03-31T08:09:43.000Z
mqbench/custom_quantizer/nlp_quantizer.py
PannenetsF/MQBench
4336493ded0bf2bb9f11377e9105b14ec6191c09
[ "Apache-2.0" ]
46
2021-09-29T03:04:30.000Z
2022-03-31T11:53:23.000Z
mqbench/custom_quantizer/nlp_quantizer.py
PannenetsF/MQBench
4336493ded0bf2bb9f11377e9105b14ec6191c09
[ "Apache-2.0" ]
42
2021-09-24T16:08:26.000Z
2022-03-30T10:21:34.000Z
import torch from mqbench.utils.registry import register_model_quantizer from mqbench.prepare_by_platform import BackendType from mqbench.custom_quantizer import ModelQuantizer @register_model_quantizer(BackendType.Academic_NLP) class AcademicNLPQuantizer(ModelQuantizer): """ NLP model quantizer for Academic...
30.428571
69
0.704225
be71b48bb346fca240a6081a56d91a01893a6c9c
2,231
py
Python
code_src/staking/dot/arg_parser/nominatorArgParser.py
luca590/staking_manager
ede5a36c98353e3066a5f6c2f085b157d5842394
[ "MIT" ]
null
null
null
code_src/staking/dot/arg_parser/nominatorArgParser.py
luca590/staking_manager
ede5a36c98353e3066a5f6c2f085b157d5842394
[ "MIT" ]
null
null
null
code_src/staking/dot/arg_parser/nominatorArgParser.py
luca590/staking_manager
ede5a36c98353e3066a5f6c2f085b157d5842394
[ "MIT" ]
null
null
null
from code_src.staking.dot.fxn_decorator_implementations.substrateCallImplementation import DotSubstrateCall from common import MyHelpFormatter from code_src.staking.dot.dotArgparserUtil import actionMnemonic, actionValidatorAddress, actionHelp, subcommand, \ actionTest from examples import exampleNominator, example...
48.5
120
0.688032
23dd3ee95df3e2eae913c6fd45bff9b53715ed72
9,110
py
Python
exps/NATS-algos/bohb.py
Joey61Liuyi/AutoDL-Projects
2092e144920e82d74753a7ac31e1890a150d41cf
[ "MIT" ]
817
2020-01-15T00:23:41.000Z
2022-03-31T14:52:03.000Z
exps/NATS-algos/bohb.py
Joey61Liuyi/AutoDL-Projects
2092e144920e82d74753a7ac31e1890a150d41cf
[ "MIT" ]
77
2020-01-14T14:02:45.000Z
2022-03-25T07:06:02.000Z
exps/NATS-algos/bohb.py
Joey61Liuyi/AutoDL-Projects
2092e144920e82d74753a7ac31e1890a150d41cf
[ "MIT" ]
176
2020-01-15T10:39:41.000Z
2022-03-31T04:24:53.000Z
################################################## # Copyright (c) Xuanyi Dong [GitHub D-X-Y], 2020 # ################################################################### # BOHB: Robust and Efficient Hyperparameter Optimization at Scale # # required to install hpbandster ################################## # pip install ...
32.888087
160
0.605928
421962b7259003235ef50465ad71cd46493e8b1b
490
py
Python
enteletaor_lib/modules/brute/cmd_list_wordlists.py
Seabreg/enteletaor
d1fbda5fcd68677fbce76e3ed4e79a886b8ad9db
[ "BSD-3-Clause" ]
159
2016-03-05T09:57:19.000Z
2022-02-20T02:45:03.000Z
enteletaor_lib/modules/brute/cmd_list_wordlists.py
Seabreg/enteletaor
d1fbda5fcd68677fbce76e3ed4e79a886b8ad9db
[ "BSD-3-Clause" ]
8
2016-03-06T13:02:45.000Z
2020-06-12T08:19:16.000Z
enteletaor_lib/modules/brute/cmd_list_wordlists.py
Seabreg/enteletaor
d1fbda5fcd68677fbce76e3ed4e79a886b8ad9db
[ "BSD-3-Clause" ]
30
2016-03-06T16:52:42.000Z
2021-03-31T09:46:39.000Z
# -*- coding: utf-8 -*- import os import logging log = logging.getLogger() # ---------------------------------------------------------------------- def cmd_list_wordlists(config): """ Get all internal wordlist """ base_wordlists = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "..", "resources",...
23.333333
111
0.542857
eda6443ace44a83b7d0bac24dbd5f833a9aaf689
6,682
py
Python
examples/lsc/mag240m/analysis.py
CnBDM-Su/kdd2021_lsc_sy
7e7be19a3c9751355470f4e60c518d077572281f
[ "MIT" ]
2
2021-06-23T05:37:26.000Z
2021-07-29T05:44:55.000Z
examples/lsc/mag240m/analysis.py
CnBDM-Su/kdd2021_lsc_sy
7e7be19a3c9751355470f4e60c518d077572281f
[ "MIT" ]
null
null
null
examples/lsc/mag240m/analysis.py
CnBDM-Su/kdd2021_lsc_sy
7e7be19a3c9751355470f4e60c518d077572281f
[ "MIT" ]
null
null
null
import time import argparse import numpy as np import torch import torch.nn.functional as F from torch.utils.data import DataLoader from torch.nn import ModuleList, Linear, BatchNorm1d, Identity, Softmax from ogb.lsc import MAG240MDataset from root import ROOT import os.path as osp import torch import numpy as np fr...
35.168421
78
0.634092
2a249265e9b74f5583d407a46c53d6840a736174
3,154
py
Python
tests/cupy_tests/manipulation_tests/test_split.py
svlandeg/cupy
484e007d5bf58a0445af2f6e7aa3fdfe0fcc2363
[ "MIT" ]
2
2020-02-17T18:47:30.000Z
2020-02-17T18:47:35.000Z
tests/cupy_tests/manipulation_tests/test_split.py
svlandeg/cupy
484e007d5bf58a0445af2f6e7aa3fdfe0fcc2363
[ "MIT" ]
1
2020-06-03T10:59:17.000Z
2020-06-03T11:38:20.000Z
tests/cupy_tests/manipulation_tests/test_split.py
svlandeg/cupy
484e007d5bf58a0445af2f6e7aa3fdfe0fcc2363
[ "MIT" ]
null
null
null
import unittest from cupy import testing @testing.gpu class TestSplit(unittest.TestCase): @testing.numpy_cupy_array_list_equal() def test_array_split1(self, xp): a = testing.shaped_arange((3, 11), xp) return xp.array_split(a, 4, 1) @testing.numpy_cupy_array_list_equal() def test_arr...
32.183673
54
0.652188
1a2bd133b165689120f06b9b134a08804f728fda
9,298
py
Python
groot-jr/weather/weather_board.py
henryse/pi-weather-pro
edc44820295492a0437ec36a7a868bb56c309f77
[ "Apache-2.0" ]
null
null
null
groot-jr/weather/weather_board.py
henryse/pi-weather-pro
edc44820295492a0437ec36a7a868bb56c309f77
[ "Apache-2.0" ]
null
null
null
groot-jr/weather/weather_board.py
henryse/pi-weather-pro
edc44820295492a0437ec36a7a868bb56c309f77
[ "Apache-2.0" ]
null
null
null
# ========================================================================= # System Imports.... # ========================================================================= import sys import time from datetime import datetime import random import traceback import config # ============================================...
37.341365
118
0.475694
a2e42ed0034a96376cc9e70d6cbfec7c4091068f
750
py
Python
qiskit_dynamics/dispatch/backends/__init__.py
dekelmeirom/qiskit-dynamics
9ed616c0715d1ba6189ea2bc57330cecb21ef181
[ "Apache-2.0" ]
32
2021-06-15T17:59:35.000Z
2022-03-16T09:43:50.000Z
qiskit_dynamics/dispatch/backends/__init__.py
dekelmeirom/qiskit-dynamics
9ed616c0715d1ba6189ea2bc57330cecb21ef181
[ "Apache-2.0" ]
46
2021-07-22T10:58:49.000Z
2022-03-15T13:04:29.000Z
qiskit_dynamics/dispatch/backends/__init__.py
dekelmeirom/qiskit-dynamics
9ed616c0715d1ba6189ea2bc57330cecb21ef181
[ "Apache-2.0" ]
19
2021-06-21T12:23:28.000Z
2022-02-11T21:32:47.000Z
# This code is part of Qiskit. # # (C) Copyright IBM 2020. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivative wo...
31.25
77
0.754667
1102f0cf67b697c0fbcaec3b4005beac8cfb7359
50,457
py
Python
QUANTAXIS/QAFetch/QATdx.py
xiongyixiaoyang/QUANTAXIS
08441ce711e55385e2b01f80df17d34e7e89f564
[ "MIT" ]
2
2019-05-31T02:53:12.000Z
2020-03-09T03:21:55.000Z
QUANTAXIS/QAFetch/QATdx.py
xiongyixiaoyang/QUANTAXIS
08441ce711e55385e2b01f80df17d34e7e89f564
[ "MIT" ]
null
null
null
QUANTAXIS/QAFetch/QATdx.py
xiongyixiaoyang/QUANTAXIS
08441ce711e55385e2b01f80df17d34e7e89f564
[ "MIT" ]
3
2018-11-29T07:07:56.000Z
2021-02-09T17:24:56.000Z
# coding:utf-8 # # The MIT License (MIT) # # Copyright (c) 2016-2018 yutiansut/QUANTAXIS # # 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 th...
36.696
186
0.581584
f2b4f7dc261813afefaa401138fc78ae81b9ef48
613
py
Python
src/ch04/if_elif_else_test.py
jashburn8020/the-python-tutorial
025e2b93b3a297411374e1198497ff7d14467051
[ "Apache-2.0" ]
null
null
null
src/ch04/if_elif_else_test.py
jashburn8020/the-python-tutorial
025e2b93b3a297411374e1198497ff7d14467051
[ "Apache-2.0" ]
null
null
null
src/ch04/if_elif_else_test.py
jashburn8020/the-python-tutorial
025e2b93b3a297411374e1198497ff7d14467051
[ "Apache-2.0" ]
null
null
null
"""Demonstrate `if`, `elif`, `else`.""" from typing import Literal def test_if() -> None: """if-elif-else.""" PositiveOrNegative = Literal[-1, 0, 1] def positive_negative(number: int) -> PositiveOrNegative: """Return -1 for negative numbers, 1 for positive numbers, and 0 for 0.""" result...
25.541667
82
0.577488
8220fc540e3ac19f2fd315a674869addbd8c52ab
4,113
py
Python
python/GafferSceneUI/__init__.py
Kthulhu/gaffer
8995d579d07231988abc92c3ac2788c15c8bc75c
[ "BSD-3-Clause" ]
1
2016-07-31T09:55:09.000Z
2016-07-31T09:55:09.000Z
python/GafferSceneUI/__init__.py
Kthulhu/gaffer
8995d579d07231988abc92c3ac2788c15c8bc75c
[ "BSD-3-Clause" ]
null
null
null
python/GafferSceneUI/__init__.py
Kthulhu/gaffer
8995d579d07231988abc92c3ac2788c15c8bc75c
[ "BSD-3-Clause" ]
null
null
null
########################################################################## # # Copyright (c) 2012, John Haddon. All rights reserved. # Copyright (c) 2012-2016, Image Engine Design Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided ...
31.159091
95
0.798201
3a50fec0bda44910847c7d9d58f6825dda9eedd8
80,279
py
Python
NELSON_ENGINE.py
MrEluzium/Project-Nelson
4fc05bb0d9396aa2631ca69b581784b6a2a8cae0
[ "MIT" ]
null
null
null
NELSON_ENGINE.py
MrEluzium/Project-Nelson
4fc05bb0d9396aa2631ca69b581784b6a2a8cae0
[ "MIT" ]
null
null
null
NELSON_ENGINE.py
MrEluzium/Project-Nelson
4fc05bb0d9396aa2631ca69b581784b6a2a8cae0
[ "MIT" ]
null
null
null
# By Artem Eluzium, 2019/20. Use free with MIT License. # Telegram: @ArtemEluzium import csv import random import shutil from PyQt5.QtWidgets import QWidget, QMainWindow, QTableWidgetItem from PyQt5 import QtMultimedia from PyQt5.QtWidgets import QMessageBox, QInputDialog from PyQt5.QtCore import QSettings, QUr...
46.538551
123
0.557892
9487c4a044504568fec5cc7d5281f37e62b66e8b
34
py
Python
meli_challenge/__init__.py
rafaelleinio/meli-challenge
72391cc24a502a199523f204779d4fe928c7b10d
[ "MIT" ]
1
2021-02-28T02:12:37.000Z
2021-02-28T02:12:37.000Z
meli_challenge/__init__.py
rafaelleinio/meli-challenge
72391cc24a502a199523f204779d4fe928c7b10d
[ "MIT" ]
null
null
null
meli_challenge/__init__.py
rafaelleinio/meli-challenge
72391cc24a502a199523f204779d4fe928c7b10d
[ "MIT" ]
null
null
null
"""meli_challenge root module."""
17
33
0.705882
2ce89cc1920a72664913fa19981a96bcdd8a05eb
11,747
py
Python
tools/nni_trial_tool/trial_keeper.py
mchesser/nni
4ede394ee504c3d04b7770062cd5c022fad519b1
[ "MIT" ]
2
2020-02-03T09:00:47.000Z
2020-02-03T09:00:49.000Z
tools/nni_trial_tool/trial_keeper.py
liuyongheng123/nni
ae36373c8b2dfb338f32af6f9d3e1eed083a085a
[ "MIT" ]
null
null
null
tools/nni_trial_tool/trial_keeper.py
liuyongheng123/nni
ae36373c8b2dfb338f32af6f9d3e1eed083a085a
[ "MIT" ]
null
null
null
# ============================================================================================================================== # # Copyright (c) Microsoft Corporation # All rights reserved. # # MIT License # # Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated...
46.800797
130
0.642207
dd5c121565d03b6b6503488633730c2afc3b1d46
433
py
Python
collections/default-dict-tutorial.py
anishLearnsToCode/hackerrank-python
7d707c07af051e7b00471ebe547effd7e1d6d9d9
[ "MIT" ]
2
2020-05-21T16:18:26.000Z
2021-11-28T15:44:33.000Z
collections/default-dict-tutorial.py
anishLearnsToCode/hackerrank-python
7d707c07af051e7b00471ebe547effd7e1d6d9d9
[ "MIT" ]
null
null
null
collections/default-dict-tutorial.py
anishLearnsToCode/hackerrank-python
7d707c07af051e7b00471ebe547effd7e1d6d9d9
[ "MIT" ]
2
2020-11-01T00:55:53.000Z
2021-10-31T16:05:17.000Z
# https://github.com/anishLearnsToCode/hackerrank-python/blob/master/collections/collections-counter.py import collections n, m = map(int, input().split()) frequencies = collections.defaultdict(list) for i in range(n): word = input() frequencies[word].append(i + 1) for _ in range(m): word = input() ...
22.789474
103
0.660508
b59b64d0b24f68712244e1726c93bfd61edc207c
1,342
py
Python
xlsxwriter/test/comparison/test_chart_axis11.py
edparcell/XlsxWriter
d6a5df232ac0091017ae5c65f592bcc776d296ea
[ "BSD-2-Clause-FreeBSD" ]
1
2019-01-09T19:43:43.000Z
2019-01-09T19:43:43.000Z
xlsxwriter/test/comparison/test_chart_axis11.py
edparcell/XlsxWriter
d6a5df232ac0091017ae5c65f592bcc776d296ea
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
xlsxwriter/test/comparison/test_chart_axis11.py
edparcell/XlsxWriter
d6a5df232ac0091017ae5c65f592bcc776d296ea
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
############################################################################### # # Tests for XlsxWriter. # # Copyright (c), 2013-2018, John McNamara, jmcnamara@cpan.org # from ..excel_comparsion_test import ExcelComparisonTest from ...workbook import Workbook class TestCompareXLSXFiles(ExcelComparisonTest): """...
24.851852
79
0.555887
671afb83379c8ed849d9111faa4774658658f598
496
py
Python
vademecum/code-src/biblioteki/API_pythonowe_biblioteki_C++.py
opcode-eu-org/opcode-vip
fabafbfa363fc7748589e461c4cdeea34b24014b
[ "MIT" ]
null
null
null
vademecum/code-src/biblioteki/API_pythonowe_biblioteki_C++.py
opcode-eu-org/opcode-vip
fabafbfa363fc7748589e461c4cdeea34b24014b
[ "MIT" ]
null
null
null
vademecum/code-src/biblioteki/API_pythonowe_biblioteki_C++.py
opcode-eu-org/opcode-vip
fabafbfa363fc7748589e461c4cdeea34b24014b
[ "MIT" ]
null
null
null
# skrypt wykorzystujący moduł # MyPyAPI stworzony w C++ # dodajemy bierzący katalog do ścieżki w której python szuka bibliotek import sys sys.path.append('./') # importujemy naszą bibliotekę (z pliku MyPyAPI.so) import MyPyAPI # uruchomienie funkcji f1 i odebranie wyniku ret = MyPyAPI.f1(2) print(ret) # utworzenie...
17.714286
70
0.717742
9ad9abcf9bfc7a862b845c35c46929ef07858c73
52,204
py
Python
ironstubs/generator3/pycharm_generator_utils/module_redeclarator.py
paoloemilioserra/ironpython-stubs
49d92db7f28f25ccd3654c5f6ae83daa0c401fa1
[ "MIT" ]
null
null
null
ironstubs/generator3/pycharm_generator_utils/module_redeclarator.py
paoloemilioserra/ironpython-stubs
49d92db7f28f25ccd3654c5f6ae83daa0c401fa1
[ "MIT" ]
null
null
null
ironstubs/generator3/pycharm_generator_utils/module_redeclarator.py
paoloemilioserra/ironpython-stubs
49d92db7f28f25ccd3654c5f6ae83daa0c401fa1
[ "MIT" ]
null
null
null
import keyword from .util_methods import * from .constants import * class emptylistdict(dict): """defaultdict not available before 2.5; simplest reimplementation using [] as default""" def __getitem__(self, item): if item in self: return dict.__getitem__(self, item) else: ...
45.27667
137
0.525132
29db85c928c8bd9954b311647fdf888ebdc8d104
47,843
py
Python
flopy/utils/modpathfile.py
ritchie46/flopy
8e7284dcb3aaf5c12293d442248c2c2d9959f835
[ "CC0-1.0", "BSD-3-Clause" ]
1
2022-03-30T14:48:22.000Z
2022-03-30T14:48:22.000Z
flopy/utils/modpathfile.py
ritchie46/flopy
8e7284dcb3aaf5c12293d442248c2c2d9959f835
[ "CC0-1.0", "BSD-3-Clause" ]
null
null
null
flopy/utils/modpathfile.py
ritchie46/flopy
8e7284dcb3aaf5c12293d442248c2c2d9959f835
[ "CC0-1.0", "BSD-3-Clause" ]
2
2020-01-03T17:14:39.000Z
2020-03-04T14:21:27.000Z
""" Module to read MODPATH output files. The module contains two important classes that can be accessed by the user. * EndpointFile (ascii endpoint file) * PathlineFile (ascii pathline file) """ import itertools import collections import warnings import numpy as np from numpy.lib.recfunctions import append_field...
34.972953
83
0.482119
e440379a7ff5a2f9fed9493dfdf305c3dc75cc2d
762
py
Python
alipay/aop/api/response/ZolozAuthenticationCustomerSmilepayInitializeResponse.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/response/ZolozAuthenticationCustomerSmilepayInitializeResponse.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/response/ZolozAuthenticationCustomerSmilepayInitializeResponse.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import simplejson as json from alipay.aop.api.response.AlipayResponse import AlipayResponse class ZolozAuthenticationCustomerSmilepayInitializeResponse(AlipayResponse): def __init__(self): super(ZolozAuthenticationCustomerSmilepayInitializeResponse, self).__...
29.307692
126
0.729659
f04dc8da39140240edbe4efb75de30e321436d55
8,862
py
Python
tensorflow/contrib/distributions/python/ops/sinh_arcsinh.py
shanest/tensorflow
8e8a8a574020227889b08778f57bfe004d2d5ff5
[ "Apache-2.0" ]
2
2018-05-29T10:53:43.000Z
2020-12-22T08:55:29.000Z
tensorflow/contrib/distributions/python/ops/sinh_arcsinh.py
caelean/tensorflow
dcb10b1d557168646204239bea6ca5bf1abc40a3
[ "Apache-2.0" ]
null
null
null
tensorflow/contrib/distributions/python/ops/sinh_arcsinh.py
caelean/tensorflow
dcb10b1d557168646204239bea6ca5bf1abc40a3
[ "Apache-2.0" ]
1
2021-11-16T19:59:48.000Z
2021-11-16T19:59:48.000Z
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
40.651376
80
0.656624
67ef9354136aba931f5ae6729256999c621cde19
1,096
py
Python
utils2devops/lxd_lxc/profile.py
alainivars/utils2devops
ff7deb2bc315d18b693d53ae6472da5163a3260e
[ "Apache-2.0" ]
2
2019-06-29T20:09:37.000Z
2020-12-09T22:38:57.000Z
utils2devops/lxd_lxc/profile.py
alainivars/utils2devops
ff7deb2bc315d18b693d53ae6472da5163a3260e
[ "Apache-2.0" ]
null
null
null
utils2devops/lxd_lxc/profile.py
alainivars/utils2devops
ff7deb2bc315d18b693d53ae6472da5163a3260e
[ "Apache-2.0" ]
null
null
null
# doc: https://pylxd.readthedocs.io/en/latest/profiles.html from time import sleep from pylxd.exceptions import NotFound from utils2devops.lxd_lxc import BaseLXD class Profile(BaseLXD): """ missing feature for command line """ def delete_all(self): for obj in self.client.profiles.all(): ...
34.25
79
0.560219
cd0a1cfe3b98c69a848f25ef01391e12481c3738
3,503
py
Python
citychat/settings.py
raybesiga/citychat
66d7c3ffe5cd6804ef4193ce28455376f51f9164
[ "MIT" ]
null
null
null
citychat/settings.py
raybesiga/citychat
66d7c3ffe5cd6804ef4193ce28455376f51f9164
[ "MIT" ]
null
null
null
citychat/settings.py
raybesiga/citychat
66d7c3ffe5cd6804ef4193ce28455376f51f9164
[ "MIT" ]
null
null
null
""" Django settings for citychat project. Generated by 'django-admin startproject' using Django 1.9. For more information on this file, see https://docs.djangoproject.com/en/1.9/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.9/ref/settings/ """ import os # ...
26.338346
91
0.706537
bd179e5b44fc35d205e06cd7c3ed5e5ee3236cff
5,813
py
Python
examples/model_compress/pruning/v2/taylorfo_pruning_torch.py
LikeJulia/nni
611ed639bb2ecd1db5a0241833c0d0a1e7812b1d
[ "MIT" ]
null
null
null
examples/model_compress/pruning/v2/taylorfo_pruning_torch.py
LikeJulia/nni
611ed639bb2ecd1db5a0241833c0d0a1e7812b1d
[ "MIT" ]
null
null
null
examples/model_compress/pruning/v2/taylorfo_pruning_torch.py
LikeJulia/nni
611ed639bb2ecd1db5a0241833c0d0a1e7812b1d
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. ''' NNI example for supported TaylorFOWeight pruning algorithms. In this example, we show the end-to-end pruning process: pre-training -> pruning -> fine-tuning. Note that pruners use masks to simulate the real pruning. In order to obtain a real ...
42.430657
128
0.675727
17f9a1e396dae1b8fb740eccbd2058a065133f94
514
py
Python
peps/management/commands/dump_pep_pages.py
digimatronics/py
8ee737e5d2dbb226c18a7dd46912c7301b37cc0e
[ "Apache-2.0" ]
1
2017-03-12T06:29:04.000Z
2017-03-12T06:29:04.000Z
peps/management/commands/dump_pep_pages.py
digimatronics/py
8ee737e5d2dbb226c18a7dd46912c7301b37cc0e
[ "Apache-2.0" ]
4
2021-03-31T20:10:38.000Z
2021-09-08T02:47:18.000Z
peps/management/commands/dump_pep_pages.py
digimatronics/py
8ee737e5d2dbb226c18a7dd46912c7301b37cc0e
[ "Apache-2.0" ]
1
2019-04-03T20:26:54.000Z
2019-04-03T20:26:54.000Z
from django.core import serializers from django.core.management.base import NoArgsCommand from pages.models import Page class Command(NoArgsCommand): """ Dump PEP related Pages as indented JSON """ help = "Dump PEP related Pages as indented JSON" def handle_noargs(self, **options): qs = ...
23.363636
58
0.636187
cb80a0e09cef7f8c97fbc323ce6b8c11b646bb1a
27,069
py
Python
lib/models/pose_hrnet.py
vvhj/APRCP-HRNet-Adaptive-Pruning-Rate-Channel-Pruning-for-HRNet
bb3d946b9de311f7d1161a0056f39d84db00cb4c
[ "MIT" ]
15
2020-11-01T15:36:16.000Z
2021-04-13T08:24:47.000Z
lib/models/pose_hrnet.py
vvhj/APRCP-HRNet-Adaptive-Pruning-Rate-Channel-Purning-for-HRNet
bb3d946b9de311f7d1161a0056f39d84db00cb4c
[ "MIT" ]
3
2020-12-30T07:28:58.000Z
2021-04-07T07:16:38.000Z
lib/models/pose_hrnet.py
vvhj/APRCP-HRNet-Adaptive-Pruning-Rate-Channel-Purning-for-HRNet
bb3d946b9de311f7d1161a0056f39d84db00cb4c
[ "MIT" ]
7
2020-11-01T15:36:17.000Z
2021-06-01T09:50:36.000Z
# ------------------------------------------------------------------------------ # Copyright (c) Microsoft # Licensed under the MIT License. # Written by Bin Xiao (Bin.Xiao@microsoft.com) # ------------------------------------------------------------------------------ from __future__ import absolute_import from __futu...
37.285124
93
0.533488
b188896c794bdacbbd927c45357b3ef16269bc0e
1,502
py
Python
bsolutions/users/tests/test_views.py
xergioalex/django-multiple-databases-engines
f289a6402ada0be88728244b15b721f1e03993b5
[ "MIT" ]
8
2018-10-27T21:05:27.000Z
2021-12-11T07:51:23.000Z
bsolutions/users/tests/test_views.py
xergioalex/django-multiple-databases-engines
f289a6402ada0be88728244b15b721f1e03993b5
[ "MIT" ]
null
null
null
bsolutions/users/tests/test_views.py
xergioalex/django-multiple-databases-engines
f289a6402ada0be88728244b15b721f1e03993b5
[ "MIT" ]
3
2019-07-05T02:25:45.000Z
2021-09-13T07:48:35.000Z
import pytest from django.conf import settings from django.test import RequestFactory from bsolutions.users.views import UserRedirectView, UserUpdateView pytestmark = pytest.mark.django_db class TestUserUpdateView: """ TODO: extracting view initialization code as class-scoped fixture would b...
27.814815
77
0.6751
f0be5882a93070f179c7d8d6aa9159fd7923a0b9
257
py
Python
Client/step2_test.py
stardustsuperwizard/CognitoAuthentication
1f841ba70a6fb7d8454cf9066d333af1341b5c86
[ "MIT" ]
1
2019-03-16T17:15:57.000Z
2019-03-16T17:15:57.000Z
Client/step2_test.py
stardustsuperwizard/CognitoAuthentication
1f841ba70a6fb7d8454cf9066d333af1341b5c86
[ "MIT" ]
null
null
null
Client/step2_test.py
stardustsuperwizard/CognitoAuthentication
1f841ba70a6fb7d8454cf9066d333af1341b5c86
[ "MIT" ]
null
null
null
import json import requests # fill in the api of the helloworld Lambda function # fill in the JWT from step 1 in the authorization dictionary. api = '' event = { "AUTHORIZATION": "" } response = requests.get(api, headers=event).json() print(response)
19.769231
62
0.723735
7103ecdc8c08119c19edefb70a7a81521b83248c
636
py
Python
Lists-as-Stacks-and-Queues/fast_food.py
dechevh/Python-Advanced
9daf33771b9096db77bcbf05ae2a4591b876c723
[ "MIT" ]
2
2020-09-15T19:12:26.000Z
2020-09-15T19:12:30.000Z
Lists-as-Stacks-and-Queues/fast_food.py
dechevh/Python-Advanced
9daf33771b9096db77bcbf05ae2a4591b876c723
[ "MIT" ]
1
2021-07-06T09:20:49.000Z
2021-07-06T09:20:49.000Z
Lists-as-Stacks-and-Queues/fast_food.py
dechevh/Python-Advanced
9daf33771b9096db77bcbf05ae2a4591b876c723
[ "MIT" ]
null
null
null
from _collections import deque total_qty = int(input()) orders_queue = deque(map(int, input().split(" "))) # orders_queue = deque([int(x) for x in input().split(" ")]) # with comprehension print(max(orders_queue)) while orders_queue: # take first order order = orders_queue.popleft() if total_qty >= orde...
25.44
81
0.658805
a0871910dc99cb06d97c94fe25fdf11a41ffb472
539
py
Python
Python/main.py
DanielHuji-RB/RB-article
e5a9ba30edfb030db1cd3bcf562c6abff3f9d48e
[ "MIT" ]
null
null
null
Python/main.py
DanielHuji-RB/RB-article
e5a9ba30edfb030db1cd3bcf562c6abff3f9d48e
[ "MIT" ]
null
null
null
Python/main.py
DanielHuji-RB/RB-article
e5a9ba30edfb030db1cd3bcf562c6abff3f9d48e
[ "MIT" ]
null
null
null
# coding=utf-8 # This is a sample Python script. # Press ⇧F10 to execute it or replace it with your code. # Press Double ⇧ to search everywhere for classes, files, tool windows, actions, and settings. def print_hi(name): # Use a breakpoint in the code line below to debug your script. print("Hi, {0}".format(n...
29.944444
94
0.71243
cade464569f910c3effa5fe120e98f0b1bba9419
5,652
py
Python
PythonAPI/docs/doc_gen_snipets.py
cpc/carla
2b4af4c08c751461e23558809a1d8dcb5dc740dc
[ "MIT" ]
3
2021-01-08T13:04:11.000Z
2021-01-25T16:56:52.000Z
PythonAPI/docs/doc_gen_snipets.py
cpc/carla
2b4af4c08c751461e23558809a1d8dcb5dc740dc
[ "MIT" ]
2
2021-03-31T20:10:04.000Z
2021-12-13T20:48:30.000Z
PythonAPI/docs/doc_gen_snipets.py
cpc/carla
2b4af4c08c751461e23558809a1d8dcb5dc740dc
[ "MIT" ]
4
2021-04-15T03:45:53.000Z
2021-12-24T13:13:39.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c) 2017 Computer Vision Center (CVC) at the Universitat Autonoma de # Barcelona (UAB). # # This work is licensed under the terms of the MIT license. # For a copy, see <https://opensource.org/licenses/MIT>. import os import yaml import re COLOR_METHOD = '#7fb...
38.44898
279
0.605626
c4aa922a2d5a5fd82f54efa1aa2aff1cd0cc961e
1,538
py
Python
src/command_modules/azure-cli-lab/azure/cli/command_modules/lab/sdk/devtestlabs/models/inbound_nat_rule.py
saurabsa/azure-cli-old
f77477a98c9aa9cb55daf5b0d2f410d1455a9225
[ "MIT" ]
null
null
null
src/command_modules/azure-cli-lab/azure/cli/command_modules/lab/sdk/devtestlabs/models/inbound_nat_rule.py
saurabsa/azure-cli-old
f77477a98c9aa9cb55daf5b0d2f410d1455a9225
[ "MIT" ]
2
2021-03-25T21:38:56.000Z
2021-11-15T17:46:45.000Z
src/command_modules/azure-cli-lab/azure/cli/command_modules/lab/sdk/devtestlabs/models/inbound_nat_rule.py
Visual-Studio-China/azure-cli-int
48c7c7f371a0ecc4ebfd4dcfdc72764beddf5c31
[ "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. # -----------------------------------------------------...
41.567568
94
0.622887
006243992346f34fb1f5734975f2a7a9b445825c
19,933
py
Python
train_openfold.py
empyriumz/openfold
12b33cc4f72ba07ef97fbc46972bc4bbb0c7ee32
[ "Apache-2.0" ]
null
null
null
train_openfold.py
empyriumz/openfold
12b33cc4f72ba07ef97fbc46972bc4bbb0c7ee32
[ "Apache-2.0" ]
null
null
null
train_openfold.py
empyriumz/openfold
12b33cc4f72ba07ef97fbc46972bc4bbb0c7ee32
[ "Apache-2.0" ]
null
null
null
import argparse import logging import os # os.environ["CUDA_VISIBLE_DEVICES"] = "0" # os.environ["MASTER_ADDR"]="10.119.81.14" # os.environ["MASTER_PORT"]="42069" # os.environ["NODE_RANK"]="0" import pytorch_lightning as pl from pytorch_lightning.callbacks.lr_monitor import LearningRateMonitor from pytorch_lightning....
32.570261
88
0.627101
3ffd63dcc3088a64c67e009332706d0adc808400
6,620
py
Python
qmhub/electools/result.py
panxl/qmhub
bbe58c9194854bb55c6912d365d32c2b291c4e24
[ "MIT" ]
null
null
null
qmhub/electools/result.py
panxl/qmhub
bbe58c9194854bb55c6912d365d32c2b291c4e24
[ "MIT" ]
1
2021-09-17T18:21:22.000Z
2021-09-17T18:21:22.000Z
qmhub/electools/result.py
panxl/qmhub
bbe58c9194854bb55c6912d365d32c2b291c4e24
[ "MIT" ]
null
null
null
import numpy as np from ..utils.darray import DependArray from ..units import CODATA08_BOHR_TO_A class Result(object): def __init__( self, qm_energy, qm_energy_gradient, mm_esp, qm_charges, mm_charges, near_field_mask, scaling_factor, scali...
33.604061
117
0.529607
801f5aaf61412c2a34e3c5f31aa0094ae6abcf15
140
py
Python
wagtail_graphql/tests/home/models.py
yatesrates/wagtail-graphql-api
8183c3c69340c9a48e2c352fc398e8bd255efa96
[ "BSD-3-Clause" ]
4
2019-07-19T21:17:02.000Z
2020-08-30T05:15:07.000Z
wagtail_graphql/tests/home/models.py
yatesrates/wagtail-graphql-api
8183c3c69340c9a48e2c352fc398e8bd255efa96
[ "BSD-3-Clause" ]
1
2019-11-06T03:44:42.000Z
2019-11-06T03:44:42.000Z
wagtail_graphql/tests/home/models.py
yatesrates/wagtail-graphql-api
8183c3c69340c9a48e2c352fc398e8bd255efa96
[ "BSD-3-Clause" ]
3
2019-07-19T21:17:06.000Z
2019-10-31T03:34:44.000Z
from wagtail.core.models import Page from wagtail_graphql import GraphQLEnabledModel class HomePage(GraphQLEnabledModel, Page): pass
17.5
47
0.821429
db697dbf9a0c2d71ef5adba47aaaa9c682afa5a3
2,256
py
Python
test/test_fpn.py
mingruimingrui/kindler
8a9c2278b607a167b0ce827b218e54949a1120e7
[ "MIT" ]
null
null
null
test/test_fpn.py
mingruimingrui/kindler
8a9c2278b607a167b0ce827b218e54949a1120e7
[ "MIT" ]
null
null
null
test/test_fpn.py
mingruimingrui/kindler
8a9c2278b607a167b0ce827b218e54949a1120e7
[ "MIT" ]
null
null
null
import os import sys # Append Kindler root directory to sys test_dir = os.path.dirname(os.path.realpath(__file__)) root_dir = os.path.abspath(os.path.join(test_dir, os.pardir)) sys.path.append(root_dir) import pytest import numpy as np import torch from kindler.backbone import Backbone from kindler.fpn import FPN ...
30.486486
88
0.680851
e7524b084549329c6f295eea2127674bb6516389
7,041
py
Python
tfx/orchestration/portable/cache_utils.py
yifanmai/tfx
56b4d373b8b777a780f4552b5834925e837c51e9
[ "Apache-2.0" ]
3
2020-07-20T18:37:16.000Z
2021-11-17T11:24:27.000Z
tfx/orchestration/portable/cache_utils.py
yifanmai/tfx
56b4d373b8b777a780f4552b5834925e837c51e9
[ "Apache-2.0" ]
2
2020-08-11T00:19:14.000Z
2020-08-26T20:10:31.000Z
tfx/orchestration/portable/cache_utils.py
yifanmai/tfx
56b4d373b8b777a780f4552b5834925e837c51e9
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Google LLC. 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 a...
40.005682
80
0.727311
c69ce99ada086c0af1aa2ed1b30918ce9d634477
14,966
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/operations/_log_analytics_operations.py
beltr0n/azure-sdk-for-python
2f7fb8bee881b0fc0386a0ad5385755ceedd0453
[ "MIT" ]
1
2021-09-07T18:35:49.000Z
2021-09-07T18:35:49.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/operations/_log_analytics_operations.py
beltr0n/azure-sdk-for-python
2f7fb8bee881b0fc0386a0ad5385755ceedd0453
[ "MIT" ]
4
2019-04-17T17:57:49.000Z
2020-04-24T21:11:22.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/operations/_log_analytics_operations.py
beltr0n/azure-sdk-for-python
2f7fb8bee881b0fc0386a0ad5385755ceedd0453
[ "MIT" ]
2
2021-05-23T16:46:31.000Z
2021-05-26T23:51:09.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
51.253425
211
0.680409
245dd8f1cd2f7f18f8c7d9a0eb537357e05603f8
1,825
py
Python
organiser.py
MihirBhave/File_Organiser
d5e05addcc442fbc7648bef027958965504f88be
[ "MIT" ]
1
2020-10-18T08:39:24.000Z
2020-10-18T08:39:24.000Z
organiser.py
MihirBhave/File_Organiser
d5e05addcc442fbc7648bef027958965504f88be
[ "MIT" ]
1
2020-10-18T04:46:40.000Z
2020-10-18T05:54:39.000Z
organiser.py
MihirBhave/File_Organiser
d5e05addcc442fbc7648bef027958965504f88be
[ "MIT" ]
1
2020-10-18T05:47:03.000Z
2020-10-18T05:47:03.000Z
import os import json class Setup: def __init__(self,absolute_path): self.path = absolute_path def list_files(self): files_list = [] for file_name in os.listdir(self.path): result = os.path.isfile(file_name) if not result: files_list....
28.515625
55
0.45589
a3448c6fbe33c3eb451074953244353746880748
1,826
py
Python
src/paithon/base/reactive.py
MarcSkovMadsen/panel-ai
ceb70e33bb30f0224753764d98cf8431f9b2d142
[ "MIT" ]
1
2021-12-09T15:17:21.000Z
2021-12-09T15:17:21.000Z
src/paithon/base/reactive.py
MarcSkovMadsen/paithon
d30f3b9b8b39721cdce17f734dbc15364799828a
[ "MIT" ]
null
null
null
src/paithon/base/reactive.py
MarcSkovMadsen/paithon
d30f3b9b8b39721cdce17f734dbc15364799828a
[ "MIT" ]
null
null
null
"""Module for making the developer experience for ReactiveHTML event better """ import pathlib import textwrap from typing import Dict def _clean_script(value): return textwrap.dedent(value).strip() def text_to_scripts(text: str) -> Dict: """Returns a `_scripts` dictionary for ReactiveHTML based on a string...
25.361111
86
0.562979
0fae28220cc93f81ed841fa73bafdfceebbd2577
3,229
py
Python
Common/AlgorithmImports.py
echoplaza/Lean
66f32cffe2ddb07532c8160299a7b1b6d67429ee
[ "Apache-2.0" ]
1
2021-02-11T21:13:12.000Z
2021-02-11T21:13:12.000Z
Common/AlgorithmImports.py
echoplaza/Lean
66f32cffe2ddb07532c8160299a7b1b6d67429ee
[ "Apache-2.0" ]
1
2021-01-23T17:59:52.000Z
2021-01-23T17:59:52.000Z
Common/AlgorithmImports.py
echoplaza/Lean
66f32cffe2ddb07532c8160299a7b1b6d67429ee
[ "Apache-2.0" ]
null
null
null
# QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. # Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect 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 Licen...
37.546512
84
0.807371
929aa4adb30171d5add61f0d42938a6a6f17e8f2
4,153
py
Python
markup/Tree.py
MarkGotham/Taking-Form
6130a56d180aae36a7903e423078e287cfa92b55
[ "MIT" ]
7
2019-09-11T04:07:58.000Z
2022-02-24T07:43:11.000Z
markup/Tree.py
MarkGotham/Taking-Form
6130a56d180aae36a7903e423078e287cfa92b55
[ "MIT" ]
5
2019-08-15T17:50:53.000Z
2020-04-27T08:35:58.000Z
markup/Tree.py
MarkGotham/Taking-Form
6130a56d180aae36a7903e423078e287cfa92b55
[ "MIT" ]
3
2019-12-19T08:08:04.000Z
2022-01-07T21:51:56.000Z
from Annotation import Annotation import sys class TreeBuildException(Exception): def __init__(self, annotation): self.annotation = annotation class Node: def __init__(self, annotation : Annotation = None): self.annotation = annotation self.span = None self.children = [] ...
28.840278
132
0.604623