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
3d8d68a0d3d4bfb90a5a607834eb5cc46b7afd8b
9,277
py
Python
States/playstate.py
Rishikesh-kumar-7258/Hot_Air_Balloon
6c18162c9775723b78588a6d641bc7b919d4da07
[ "MIT" ]
2
2021-10-02T09:03:58.000Z
2021-10-03T18:55:01.000Z
States/playstate.py
Rishikesh-kumar-7258/Hot_Air_Balloon
6c18162c9775723b78588a6d641bc7b919d4da07
[ "MIT" ]
null
null
null
States/playstate.py
Rishikesh-kumar-7258/Hot_Air_Balloon
6c18162c9775723b78588a6d641bc7b919d4da07
[ "MIT" ]
1
2021-10-06T09:17:02.000Z
2021-10-06T09:17:02.000Z
from Classes.bonuspoints import Bonus from Classes.hurdles import Hurdle from pygame.constants import K_LEFT, K_RIGHT, KEYDOWN, KEYUP, K_p from pygame.color import THECOLORS from Classes.balloon import Balloon from Utils.functions import Write, resource_path import pygame from States.basestate import Base from random i...
37.865306
179
0.611512
b22e67f7138ada3a73632802ac5130f48d0b9788
455
py
Python
env/lib/python3.8/site-packages/plotly/validators/sankey/_customdatasrc.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
76
2020-07-06T14:44:05.000Z
2022-02-14T15:30:21.000Z
env/lib/python3.8/site-packages/plotly/validators/sankey/_customdatasrc.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
11
2020-08-09T02:30:14.000Z
2022-03-12T00:50:14.000Z
env/lib/python3.8/site-packages/plotly/validators/sankey/_customdatasrc.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
11
2020-07-12T16:18:07.000Z
2022-02-05T16:48:35.000Z
import _plotly_utils.basevalidators class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): def __init__(self, plotly_name="customdatasrc", parent_name="sankey", **kwargs): super(CustomdatasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_na...
35
84
0.663736
b00e79a01cc33cb42d1a822568722ccf0b8176bc
5,120
py
Python
deepctr/models/multitask/mmoe.py
dzzxjl/DeepCTR
ec3fa832865c14aa2cc843be2b1eab1bfa7b3e4e
[ "Apache-2.0" ]
6,192
2017-12-05T03:02:35.000Z
2022-03-31T20:59:30.000Z
deepctr/models/multitask/mmoe.py
dzzxjl/DeepCTR
ec3fa832865c14aa2cc843be2b1eab1bfa7b3e4e
[ "Apache-2.0" ]
362
2018-04-15T06:53:20.000Z
2022-03-21T15:03:02.000Z
deepctr/models/multitask/mmoe.py
dzzxjl/DeepCTR
ec3fa832865c14aa2cc843be2b1eab1bfa7b3e4e
[ "Apache-2.0" ]
1,960
2017-12-05T03:16:04.000Z
2022-03-31T06:37:00.000Z
""" Author: Mincai Lai, laimc@shanghaitech.edu.cn Weichen Shen, weichenswc@163.com Reference: [1] Ma J, Zhao Z, Yi X, et al. Modeling task relationships in multi-task learning with multi-gate mixture-of-experts[C]//Proceedings of the 24th ACM SIGKDD International Conference on Knowledge Discovery & Data M...
53.333333
280
0.698047
5b61abd55cdf63bf7fc00c18d9aa4400e616fc3c
16,447
py
Python
models/shufflenetv2plus.py
ZAKAUDD/LightNet
58353b28d33e69cc877db878c4a888aabc2118ce
[ "MIT" ]
737
2018-03-21T12:28:04.000Z
2021-07-07T16:03:09.000Z
models/shufflenetv2plus.py
ZAKAUDD/LightNet
58353b28d33e69cc877db878c4a888aabc2118ce
[ "MIT" ]
23
2018-03-22T01:19:53.000Z
2021-03-26T15:08:26.000Z
models/shufflenetv2plus.py
ZAKAUDD/LightNet
58353b28d33e69cc877db878c4a888aabc2118ce
[ "MIT" ]
189
2018-03-22T08:55:43.000Z
2021-07-01T12:14:08.000Z
import torch.nn.functional as F import torch.nn as nn import torch from modules import SCSEBlock, InPlaceABN, ASPPInPlaceABNBlock, InPlaceABNWrapper from torch.autograd import Variable from collections import OrderedDict from torch.nn import init def conv3x3(in_channels, out_channels, stride=1, bias=True, groups=1, ...
40.311275
113
0.528485
b5306347c70bcded531715388b8a675da6ba6a67
195
py
Python
qtools/__init__.py
imagect/qtools
debc3f3870fb61a240e1961aba01c08e69522bdc
[ "MIT" ]
null
null
null
qtools/__init__.py
imagect/qtools
debc3f3870fb61a240e1961aba01c08e69522bdc
[ "MIT" ]
null
null
null
qtools/__init__.py
imagect/qtools
debc3f3870fb61a240e1961aba01c08e69522bdc
[ "MIT" ]
null
null
null
from .app import qtApp from .event import CallbackEvent from .event import EventSpy from qtpy.QtCore import QEvent from .rxtool import QtUiScheduler QEvent.registerEventType(CallbackEvent.typeid)
32.5
46
0.851282
a21095303977244786bf47e1796edbeb12fca87d
858
py
Python
desktop/src/controllers/getProject.py
gabrielkiller13/Game-Project-Manager
ed78ec2252257837cf3c45d7aeb290c145e17782
[ "MIT" ]
null
null
null
desktop/src/controllers/getProject.py
gabrielkiller13/Game-Project-Manager
ed78ec2252257837cf3c45d7aeb290c145e17782
[ "MIT" ]
null
null
null
desktop/src/controllers/getProject.py
gabrielkiller13/Game-Project-Manager
ed78ec2252257837cf3c45d7aeb290c145e17782
[ "MIT" ]
null
null
null
########################### # DOCUMENTS VISUALIZAITON # ########################### from src.database.tableCreations import * from src.database.connection import * # List all registers from database def getGameProjects(): try: select = "SELECT * FROM game_projects" cursor.execute(select) excep...
27.677419
83
0.568765
0db69e71ad685d1264189ae720925c9d6f04cffe
575
py
Python
apps/core/utils.py
felix781/market-access-public-frontend
26e7594a86976df941ba97b7d0084364837405db
[ "MIT" ]
null
null
null
apps/core/utils.py
felix781/market-access-public-frontend
26e7594a86976df941ba97b7d0084364837405db
[ "MIT" ]
null
null
null
apps/core/utils.py
felix781/market-access-public-frontend
26e7594a86976df941ba97b7d0084364837405db
[ "MIT" ]
null
null
null
import datetime def get_future_date(days): date = datetime.datetime.now() + datetime.timedelta(days=days) date = datetime.datetime.replace(date, hour=0, minute=0, second=0) return datetime.datetime.strftime(date, "%a, %d-%b-%Y %H:%M:%S GMT") def convert_to_snake_case(value): value = value.lower().re...
30.263158
72
0.65913
1f8c9e908462359aba6d58a890da1c7e16c2aa98
3,560
py
Python
pyalgotrade/cn/tushare/test_get_trading_days.py
01FinTech/pyalgotrade-cn
e917f69fb1f48619cf29295a1469b4659e0e1a46
[ "Apache-2.0" ]
1,000
2016-01-26T12:10:11.000Z
2022-03-01T23:59:50.000Z
pyalgotrade/cn/tushare/test_get_trading_days.py
collinswei/pyalgotrade-cn
d8ba00e9a2bb609e3e925db17a9a97929c57f672
[ "Apache-2.0" ]
22
2016-01-26T15:14:09.000Z
2019-01-30T02:36:38.000Z
pyalgotrade/cn/tushare/test_get_trading_days.py
collinswei/pyalgotrade-cn
d8ba00e9a2bb609e3e925db17a9a97929c57f672
[ "Apache-2.0" ]
613
2016-01-27T01:02:30.000Z
2022-03-21T01:38:58.000Z
# Copyright 2011-2015 ZackZK # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, so...
37.87234
95
0.649438
e4fb796e8735c34723ffdafcae3beee2c6257e23
4,079
py
Python
tianshou/policy/modelfree/pg.py
edieson/tianshou
679a0ce9ad2f7090b5a642c71dd7d9babf318fb8
[ "MIT" ]
null
null
null
tianshou/policy/modelfree/pg.py
edieson/tianshou
679a0ce9ad2f7090b5a642c71dd7d9babf318fb8
[ "MIT" ]
null
null
null
tianshou/policy/modelfree/pg.py
edieson/tianshou
679a0ce9ad2f7090b5a642c71dd7d9babf318fb8
[ "MIT" ]
null
null
null
import numpy as np import torch from tianshou.data import Batch from tianshou.policy import BasePolicy class PGPolicy(BasePolicy): """Implementation of Vanilla Policy Gradient. :param torch.nn.Module model: a model following the rules in :class:`~tianshou.policy.BasePolicy`. (s -> logits) :param...
36.419643
79
0.573915
fb666c8f98052b9cbf07be54b96cf335dcc2fc9a
1,015
py
Python
test/test_del_contact.py
nkoshkina/Python_Training2
1c7d8e51af8d35c058e8040a8d904667c14f1698
[ "Apache-2.0" ]
null
null
null
test/test_del_contact.py
nkoshkina/Python_Training2
1c7d8e51af8d35c058e8040a8d904667c14f1698
[ "Apache-2.0" ]
null
null
null
test/test_del_contact.py
nkoshkina/Python_Training2
1c7d8e51af8d35c058e8040a8d904667c14f1698
[ "Apache-2.0" ]
null
null
null
from model.contact import Contact import random def test_delete_some_contact(app, db, check_ui): if len(db.get_contact_list()) == 0: app.contact.add_new(Contact("1n", "2n", "3n", "", "Title", "Comp", "address", "", "", "+7900", "+723456789", ...
46.136364
89
0.571429
37ae01217dea63714868df8b3df20a3c95c5be5c
4,902
py
Python
toontown/fishing/FishPanel.py
cmarshall108/Project-Altis
7ead614abdb5072ca06323982de461f4e775d1b3
[ "Apache-2.0" ]
1
2021-02-25T06:02:04.000Z
2021-02-25T06:02:04.000Z
toontown/fishing/FishPanel.py
AnythingTechPro/Project-Altis
7ead614abdb5072ca06323982de461f4e775d1b3
[ "Apache-2.0" ]
null
null
null
toontown/fishing/FishPanel.py
AnythingTechPro/Project-Altis
7ead614abdb5072ca06323982de461f4e775d1b3
[ "Apache-2.0" ]
2
2021-02-25T06:02:05.000Z
2021-06-19T03:11:22.000Z
from toontown.toonbase import ToontownGlobals from direct.directnotify import DirectNotifyGlobal from toontown.pgui.DirectGui import * from pandac.PandaModules import * from toontown.toonbase import TTLocalizer from direct.interval.IntervalGlobal import * from toontown.fishing import FishGlobals from toontown.fishing i...
46.245283
263
0.639943
b94c5cb695eb1be1211ca22a7b3330b7b69a2813
6,126
py
Python
main.py
tpcstld/youtube
7979683e60135563ae86becd41b6a7d1df84e0b6
[ "MIT" ]
null
null
null
main.py
tpcstld/youtube
7979683e60135563ae86becd41b6a7d1df84e0b6
[ "MIT" ]
1
2016-12-07T14:09:51.000Z
2016-12-07T14:09:51.000Z
main.py
tpcstld/youtube
7979683e60135563ae86becd41b6a7d1df84e0b6
[ "MIT" ]
null
null
null
import os import json import threading import unicodedata import urllib.parse from flask import Flask from flask import render_template from flask import jsonify from flask import send_from_directory from flask import request from werkzeug.urls import url_quote app = Flask(__name__) from backend import list_files fr...
30.939394
88
0.659811
88c7894332b22bbbec5c96e0e9f18dfd5021450d
767
py
Python
google/cloud/spanner_admin_instance_v1/services/instance_admin/__init__.py
zoercai/python-spanner
ed7152adc37290c63e59865265f36c593d9b8da3
[ "Apache-2.0" ]
null
null
null
google/cloud/spanner_admin_instance_v1/services/instance_admin/__init__.py
zoercai/python-spanner
ed7152adc37290c63e59865265f36c593d9b8da3
[ "Apache-2.0" ]
null
null
null
google/cloud/spanner_admin_instance_v1/services/instance_admin/__init__.py
zoercai/python-spanner
ed7152adc37290c63e59865265f36c593d9b8da3
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 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 o...
30.68
74
0.754889
4c070ffe81b5eb1a2e73fc63d1905715d9a470ce
9,274
py
Python
test/python/opflow/test_state_op_meas_evals.py
Feigenbaum4669/qiskit-terra
9e770b21991b2c030dc7ca0405aff71d29c9ea39
[ "Apache-2.0" ]
null
null
null
test/python/opflow/test_state_op_meas_evals.py
Feigenbaum4669/qiskit-terra
9e770b21991b2c030dc7ca0405aff71d29c9ea39
[ "Apache-2.0" ]
1
2019-10-03T12:22:41.000Z
2019-10-03T12:22:41.000Z
test/python/opflow/test_state_op_meas_evals.py
nonhermitian/qiskit-terra
6a2602a9ecf9b1a3345de1516b873ac7b3da587f
[ "Apache-2.0" ]
null
null
null
# This code is part of Qiskit. # # (C) Copyright IBM 2018, 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 derivat...
41.587444
97
0.639099
da0aff2dd97792130f1f4fedba5a670c48aa2022
4,959
py
Python
unrolr/utils/utils.py
jeeberhardt/unrolr
76d432643525a1999a6b14d6af500b9ffb296b82
[ "MIT" ]
2
2019-06-05T19:44:25.000Z
2021-07-25T04:42:25.000Z
unrolr/utils/utils.py
jeeberhardt/unrolr
76d432643525a1999a6b14d6af500b9ffb296b82
[ "MIT" ]
null
null
null
unrolr/utils/utils.py
jeeberhardt/unrolr
76d432643525a1999a6b14d6af500b9ffb296b82
[ "MIT" ]
1
2019-06-21T16:57:52.000Z
2019-06-21T16:57:52.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Jérôme Eberhardt 2016-2018 # Unrolr # # Utils functions # Author: Jérôme Eberhardt <qksoneo@gmail.com> # # License: MIT from __future__ import print_function import os import sys if sys.version_info >= (3, ): import importlib else: import imp import h5py im...
26.37766
101
0.620488
608faf8f25fe0a1179a843256b50185f9f141bd6
33,953
py
Python
mypy/meet.py
dongweiming/mypy
e2668a236f9cceda2bab9314d20b5585ee63bec9
[ "PSF-2.0" ]
1
2021-06-12T22:24:40.000Z
2021-06-12T22:24:40.000Z
Thonny/Lib/site-packages/mypy/meet.py
Pydiderot/pydiderotIDE
a42fcde3ea837ae40c957469f5d87427e8ce46d3
[ "MIT" ]
30
2019-01-04T10:14:56.000Z
2020-10-12T14:00:31.000Z
Thonny/Lib/site-packages/mypy/meet.py
Pydiderot/pydiderotIDE
a42fcde3ea837ae40c957469f5d87427e8ce46d3
[ "MIT" ]
null
null
null
from collections import OrderedDict from typing import List, Optional, Tuple, Callable from mypy.join import ( is_similar_callables, combine_similar_callables, join_type_list, unpack_callback_protocol ) from mypy.types import ( Type, AnyType, TypeVisitor, UnboundType, NoneType, TypeVarType, Instance, CallableT...
44.209635
98
0.640827
d0246c0aea7d8ca10fa9ae06924c41e996c5e7ab
27,036
py
Python
Src/StdLib/Lib/telnetlib.py
cwensley/ironpython2
f854444e1e08afc8850cb7c1a739a7dd2d10d32a
[ "Apache-2.0" ]
6,989
2017-07-18T06:23:18.000Z
2022-03-31T15:58:36.000Z
Src/StdLib/Lib/telnetlib.py
cwensley/ironpython2
f854444e1e08afc8850cb7c1a739a7dd2d10d32a
[ "Apache-2.0" ]
1,978
2017-07-18T09:17:58.000Z
2022-03-31T14:28:43.000Z
Src/StdLib/Lib/telnetlib.py
cwensley/ironpython2
f854444e1e08afc8850cb7c1a739a7dd2d10d32a
[ "Apache-2.0" ]
1,228
2017-07-18T09:03:13.000Z
2022-03-29T05:57:40.000Z
r"""TELNET client class. Based on RFC 854: TELNET Protocol Specification, by J. Postel and J. Reynolds Example: >>> from telnetlib import Telnet >>> tn = Telnet('www.python.org', 79) # connect to finger port >>> tn.write('guido\r\n') >>> print tn.read_all() Login Name TTY Idle When ...
34.136364
87
0.548861
b556c3aa8bf2b8611e4f90ad73a3dafffd1e7790
3,811
py
Python
zeroaccess.py
mischw/botnet_dissectors
a67dbdac740a4f9f97d0507b4fa7ed83f68e99c2
[ "MIT" ]
1
2021-09-16T11:20:45.000Z
2021-09-16T11:20:45.000Z
zeroaccess.py
mischw/botnet_dissectors
a67dbdac740a4f9f97d0507b4fa7ed83f68e99c2
[ "MIT" ]
null
null
null
zeroaccess.py
mischw/botnet_dissectors
a67dbdac740a4f9f97d0507b4fa7ed83f68e99c2
[ "MIT" ]
null
null
null
import binascii from dataclasses import dataclass from base import BaseMessage from exceptions import DissectError @dataclass(frozen=True) class ZeroAccessMessage(BaseMessage): data: bytearray plain: bool def __str__(self) -> str: fstr = "Checksum: %s, Command: %s, Flag: %s, Payload: %s" return fstr % (hex(...
32.02521
124
0.649436
e738feca61b5d5561390a379afd29682409a645d
8,694
py
Python
cc_licenses/settings/base.py
brylie/cc-licenses
9367a268ef5d136fab194b09685f69e72564ddef
[ "MIT" ]
null
null
null
cc_licenses/settings/base.py
brylie/cc-licenses
9367a268ef5d136fab194b09685f69e72564ddef
[ "MIT" ]
null
null
null
cc_licenses/settings/base.py
brylie/cc-licenses
9367a268ef5d136fab194b09685f69e72564ddef
[ "MIT" ]
null
null
null
""" Django settings for cc_licenses project. """ # Standard library import os # Third-party from babel import Locale from django.conf.locale import LANG_INFO # Build paths inside the project like this: os.path.join(BASE_DIR, ...) # SETTINGS_DIR is where this settings file is SETTINGS_DIR = os.path.dirname(os.path.abs...
29.571429
82
0.660686
80f29f871035a990861dd44517ab25ac7dadf459
1,418
py
Python
test/functional/feature_reindex.py
ScooterCoinWallet/wallet-pos
8685f2c36110cc847b73208eb8919f5497daad78
[ "MIT" ]
null
null
null
test/functional/feature_reindex.py
ScooterCoinWallet/wallet-pos
8685f2c36110cc847b73208eb8919f5497daad78
[ "MIT" ]
null
null
null
test/functional/feature_reindex.py
ScooterCoinWallet/wallet-pos
8685f2c36110cc847b73208eb8919f5497daad78
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2018 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 running scootercoind with -reindex and -reindex-chainstate options. - Start a single node and gen...
37.315789
106
0.717913
b0ca523c06199dd802379fba816aaaf6205bb806
11,233
py
Python
dev/buildtool/image_commands.py
kevinawoo/spinnaker
22cfbc9b640cc9536b16333ff2f5b412347e7223
[ "Apache-2.0" ]
null
null
null
dev/buildtool/image_commands.py
kevinawoo/spinnaker
22cfbc9b640cc9536b16333ff2f5b412347e7223
[ "Apache-2.0" ]
null
null
null
dev/buildtool/image_commands.py
kevinawoo/spinnaker
22cfbc9b640cc9536b16333ff2f5b412347e7223
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
38.601375
80
0.694828
87f8e6aebe2affc23242c16b59b99e717779dad0
1,221
py
Python
NLUtils.py
IlhamH13/VideoCaptioning-Inceptionv4
150606affc6f8a738ca148492446393971a15dc6
[ "MIT" ]
null
null
null
NLUtils.py
IlhamH13/VideoCaptioning-Inceptionv4
150606affc6f8a738ca148492446393971a15dc6
[ "MIT" ]
null
null
null
NLUtils.py
IlhamH13/VideoCaptioning-Inceptionv4
150606affc6f8a738ca148492446393971a15dc6
[ "MIT" ]
null
null
null
import torch import torch.nn as nn def decode_sequence(ix_to_word, seq): seq = seq.cpu() N, D = seq.size() out = [] for i in range(N): txt = '' for j in range(D): ix = seq[i, j].item() if ix > 0: if j >= 1: txt = txt + ' ' ...
29.071429
62
0.524161
e3e96b4806a689caf0038a5250b3532e11e86a19
893
py
Python
train/3c-check_caption-en_data.py
kota7/kgschart
a08a1ac37d351a9c999c0221ba3a35c28492f148
[ "MIT" ]
1
2020-10-26T16:23:58.000Z
2020-10-26T16:23:58.000Z
train/3c-check_caption-en_data.py
kota7/kgschart
a08a1ac37d351a9c999c0221ba3a35c28492f148
[ "MIT" ]
3
2017-05-11T17:07:43.000Z
2017-05-12T18:41:17.000Z
train/3c-check_caption-en_data.py
kota7/kgschart
a08a1ac37d351a9c999c0221ba3a35c28492f148
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from matplotlib import pyplot as plt import numpy as np import os proj_root = os.path.abspath(os.path.join(os.path.dirname( \ os.path.realpath(__file__)), '../')) def check(xfile, yfile): X = np.load(xfile) Y = np.load(yfile) print('size of X =',...
24.805556
65
0.525196
1395466ab47033d6856c1a39e3d2d2ed45fdc80a
595
py
Python
addons/test_website/tests/test_multi_company.py
SHIVJITH/Odoo_Machine_Test
310497a9872db7844b521e6dab5f7a9f61d365a4
[ "Apache-2.0" ]
null
null
null
addons/test_website/tests/test_multi_company.py
SHIVJITH/Odoo_Machine_Test
310497a9872db7844b521e6dab5f7a9f61d365a4
[ "Apache-2.0" ]
null
null
null
addons/test_website/tests/test_multi_company.py
SHIVJITH/Odoo_Machine_Test
310497a9872db7844b521e6dab5f7a9f61d365a4
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo.tests.common import HttpCase, tagged @tagged('post_install', '-at_install') class TestMultiCompany(HttpCase): def test_company_in_context(self): """ Test website company is set in context """ ...
35
74
0.682353
0c07d2d61a8b68b54514334601b81fd32b29bcc0
1,040
py
Python
Monte_Carlo/pi_Monte_Carlo.py
Farhad-UPC/Reinforcement_Learning
6a48f6347adcf8b07267eab33290a32164c5d165
[ "MIT" ]
null
null
null
Monte_Carlo/pi_Monte_Carlo.py
Farhad-UPC/Reinforcement_Learning
6a48f6347adcf8b07267eab33290a32164c5d165
[ "MIT" ]
null
null
null
Monte_Carlo/pi_Monte_Carlo.py
Farhad-UPC/Reinforcement_Learning
6a48f6347adcf8b07267eab33290a32164c5d165
[ "MIT" ]
null
null
null
from __future__ import division import numpy as np from bokeh.plotting import figure, show from bokeh.plotting import * import math import random # generate some random points # equation --> x**2 + y**2 <= size points_in = 0 # number of points inside the circle points_out = 0 # number of points outside the circle s...
26
82
0.700962
65f88213d169294c26f84dc1ab7ef5e689f1eaea
9,289
py
Python
mdso/spectral_embedding_.py
artk2019/AISTAT_2019_107
31475dc9b54404a01e519111250377ed9bd85820
[ "BSD-3-Clause" ]
null
null
null
mdso/spectral_embedding_.py
artk2019/AISTAT_2019_107
31475dc9b54404a01e519111250377ed9bd85820
[ "BSD-3-Clause" ]
null
null
null
mdso/spectral_embedding_.py
artk2019/AISTAT_2019_107
31475dc9b54404a01e519111250377ed9bd85820
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ''' Given a similarity matrix on sparse or numpy format, it creates a Laplacian Embedding, for various type of graph Laplacian as well as normalization. So far the similarity is assumed to represent a fully connected graph. ''' # try: # np # except: import numpy as np ...
34.276753
83
0.549898
88b86f6a2d7bf17710b6199b01667aa119f0dc5e
681
py
Python
app/core/migrations/0002_tag.py
tatjapan/python-recipe-backend-api
d1e07086d3f2f5ba01b47fa69928272a106e55c2
[ "MIT" ]
null
null
null
app/core/migrations/0002_tag.py
tatjapan/python-recipe-backend-api
d1e07086d3f2f5ba01b47fa69928272a106e55c2
[ "MIT" ]
null
null
null
app/core/migrations/0002_tag.py
tatjapan/python-recipe-backend-api
d1e07086d3f2f5ba01b47fa69928272a106e55c2
[ "MIT" ]
null
null
null
# Generated by Django 2.1.5 on 2019-01-21 01:25 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('core', '0001_initial'), ] operations = [ migrations.CreateModel( ...
28.375
118
0.615272
e14d57a6cbf68c433deda3d5c63a340507c4dc9e
1,498
py
Python
statistical_learning_method/debug.py
StudyExchange/CourseCode
82d25da36a7c40b3c36151575793e2901d23927b
[ "MIT" ]
1
2019-06-28T07:22:51.000Z
2019-06-28T07:22:51.000Z
statistical_learning_method/debug.py
StudyExchange/CourseCode
82d25da36a7c40b3c36151575793e2901d23927b
[ "MIT" ]
null
null
null
statistical_learning_method/debug.py
StudyExchange/CourseCode
82d25da36a7c40b3c36151575793e2901d23927b
[ "MIT" ]
null
null
null
import math class MarkovForward(object): def probability(self, a, b, pi, output): an = len(a[0]) # a的状态的数量 = len(pi) bn = len(b[0]) # b的状态的数量 m = len(output) # 观测序列的长度 alphas = [] alpha1 = [0] * an # alpha1 for i in range(an): alpha1[i] =...
21.710145
77
0.435247
2f65a2bc03f881865e40083fcfb80131e545bec3
9,417
py
Python
beginner_source/nlp/pytorch_tutorial.py
b21527616/tutorials
07918d2401a0d8ca7af5ad38b876f5cb6b9aa646
[ "BSD-3-Clause" ]
2
2018-03-22T06:13:44.000Z
2018-07-14T07:34:56.000Z
beginner_source/nlp/pytorch_tutorial.py
b21527616/tutorials
07918d2401a0d8ca7af5ad38b876f5cb6b9aa646
[ "BSD-3-Clause" ]
null
null
null
beginner_source/nlp/pytorch_tutorial.py
b21527616/tutorials
07918d2401a0d8ca7af5ad38b876f5cb6b9aa646
[ "BSD-3-Clause" ]
5
2017-04-05T22:08:27.000Z
2021-07-31T12:29:35.000Z
# -*- coding: utf-8 -*- r""" Introduction to PyTorch *********************** Introduction to Torch's tensor library ====================================== All of deep learning is computations on tensors, which are generalizations of a matrix that can be indexed in more than 2 dimensions. We will see exactly what this...
33.393617
125
0.644791
4c4cccd78a14d9742d6ee8a6ba3ed2d281aab12e
672
py
Python
machine_vision/draw_ellipse.py
cyrus07424/M5stickV-playground
9c1447078bebb279684bf9fc4b485c1aae1c8b12
[ "MIT" ]
3
2020-03-17T16:20:14.000Z
2021-03-21T09:12:20.000Z
machine_vision/draw_ellipse.py
cyrus07424/M5stickV-playground
9c1447078bebb279684bf9fc4b485c1aae1c8b12
[ "MIT" ]
null
null
null
machine_vision/draw_ellipse.py
cyrus07424/M5stickV-playground
9c1447078bebb279684bf9fc4b485c1aae1c8b12
[ "MIT" ]
2
2020-04-17T01:35:36.000Z
2020-10-31T00:54:45.000Z
# # 楕円を描画. # ドキュメントに載っていない隠しメソッド? # ################################################## # import ################################################## import lcd import image ################################################## # initialize ################################################## # LCDを初期化 lcd.ini...
21.677419
91
0.334821
3f5932743d4c3184e99d51acad2adbf87c1c66ee
23,406
py
Python
scripts/release_scripts/deploy.py
queencai/oppia
c9a36db9c258588b04be9bc26f3d2efef7d21abc
[ "Apache-2.0" ]
1
2021-06-26T00:31:08.000Z
2021-06-26T00:31:08.000Z
scripts/release_scripts/deploy.py
queencai/oppia
c9a36db9c258588b04be9bc26f3d2efef7d21abc
[ "Apache-2.0" ]
null
null
null
scripts/release_scripts/deploy.py
queencai/oppia
c9a36db9c258588b04be9bc26f3d2efef7d21abc
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 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 applicable ...
39.604061
80
0.675211
482b21ff62606a4d93a41cb1e5fae13fbfc71ad1
5,740
py
Python
examples/process_module/functional.py
muliarska/Twitter-sentiment-analysis
2e5e92771085ac488e965ed33695a5452bf40ddf
[ "MIT" ]
null
null
null
examples/process_module/functional.py
muliarska/Twitter-sentiment-analysis
2e5e92771085ac488e965ed33695a5452bf40ddf
[ "MIT" ]
2
2020-04-04T16:27:17.000Z
2020-05-19T06:46:37.000Z
examples/process_module/functional.py
muliarska/Twitter-sentiment-analysis
2e5e92771085ac488e965ed33695a5452bf40ddf
[ "MIT" ]
null
null
null
"""Module for main calculations and processing of the program""" from examples.adt_realization.tweets_linked_list import TweetsLinkedList from examples.adt_realization.emotions_list import EmotionsList class Functional: """Manages a process of the program_process""" def __init__(self): """ () ...
33.179191
87
0.595645
04115d01d63888710f2d9bffdd3ececd072af5c4
5,745
py
Python
api/rf_temps/rf_collect.py
barretobrock/server-tools
2f2b899994df90817686b2232d3d65e53defd8c2
[ "MIT" ]
1
2021-03-16T19:57:49.000Z
2021-03-16T19:57:49.000Z
api/rf_temps/rf_collect.py
barretobrock/server-tools
2f2b899994df90817686b2232d3d65e53defd8c2
[ "MIT" ]
3
2021-06-08T21:37:55.000Z
2021-06-13T01:24:59.000Z
api/rf_temps/rf_collect.py
barretobrock/server-tools
2f2b899994df90817686b2232d3d65e53defd8c2
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ ETL for RTL_433 json objects via syslog -> processed Dataframe -> influx Note: depends on `rf_stream` already being running and feeding data to port 1433 via `rtl_433 -F syslog::1433` """ import json from json import JSONDecodeError import socket from datetime import datetime import pand...
36.592357
113
0.631506
4a9f881befb291a09606e3402e4386c72246e985
5,387
py
Python
ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/get_nlu_evaluation_results_response.py
Signal-Kinetics/alexa-apis-for-python
abb8d3dce18a5510c48b215406ed36c024f01495
[ "Apache-2.0" ]
null
null
null
ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/get_nlu_evaluation_results_response.py
Signal-Kinetics/alexa-apis-for-python
abb8d3dce18a5510c48b215406ed36c024f01495
[ "Apache-2.0" ]
null
null
null
ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/get_nlu_evaluation_results_response.py
Signal-Kinetics/alexa-apis-for-python
abb8d3dce18a5510c48b215406ed36c024f01495
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2019 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "lice...
41.122137
165
0.66679
ecebe959b63e253efc07b6aab9f99f055b56a8e9
1,112
py
Python
riprova/backoff.py
EdwardBetts/riprova
0242cc3b633f582ae4f65bdfc8cbf14d1549b20f
[ "MIT" ]
114
2016-12-27T11:22:15.000Z
2021-06-17T19:24:40.000Z
riprova/backoff.py
EdwardBetts/riprova
0242cc3b633f582ae4f65bdfc8cbf14d1549b20f
[ "MIT" ]
20
2016-12-27T20:27:09.000Z
2021-03-03T17:39:29.000Z
riprova/backoff.py
EdwardBetts/riprova
0242cc3b633f582ae4f65bdfc8cbf14d1549b20f
[ "MIT" ]
15
2016-12-27T17:30:49.000Z
2018-08-24T16:42:23.000Z
# -*- coding: utf-8 -*- import abc from six import with_metaclass class Backoff(with_metaclass(abc.ABCMeta, object)): """ Backoff representing the minimum implementable interface by backoff strategies. This class does not provide any logic, it's simply used for documentation purposes and type pol...
27.121951
79
0.666367
f5c468bc56f872d19df254a2b918dc10ac159c2e
2,689
py
Python
Linear Regression/linear_regression.py
SpencerOfwiti/machine-learning-algorithms
a5fec0fd6b8da8f431902aacb1d938fa7873047e
[ "MIT" ]
2
2021-07-16T10:23:36.000Z
2021-11-29T05:41:49.000Z
Linear Regression/linear_regression.py
SpencerOfwiti/machine-learning-algorithms
a5fec0fd6b8da8f431902aacb1d938fa7873047e
[ "MIT" ]
5
2021-06-09T17:46:31.000Z
2022-03-12T00:24:20.000Z
Linear Regression/linear_regression.py
SpencerOfwiti/machine-learning-algorithms
a5fec0fd6b8da8f431902aacb1d938fa7873047e
[ "MIT" ]
1
2021-09-27T16:48:18.000Z
2021-09-27T16:48:18.000Z
# import libraries import pandas as pd import numpy as np import sklearn from sklearn import linear_model from sklearn.utils import shuffle import matplotlib.pyplot as plt from matplotlib import style import pickle style.use('ggplot') data = pd.read_csv('Linear Regression/student-mat.csv', sep=';') # since our data i...
33.197531
100
0.705095
2e77799233f1ed7a8b0064e4a5ff6d621ddaa6af
3,761
py
Python
var/spack/repos/builtin/packages/ncurses/package.py
adrianjhpc/spack
0a9e4fcee57911f2db586aa50c8873d9cca8de92
[ "ECL-2.0", "Apache-2.0", "MIT" ]
2
2020-10-15T01:08:42.000Z
2021-10-18T01:28:18.000Z
var/spack/repos/builtin/packages/ncurses/package.py
adrianjhpc/spack
0a9e4fcee57911f2db586aa50c8873d9cca8de92
[ "ECL-2.0", "Apache-2.0", "MIT" ]
2
2019-07-30T10:12:28.000Z
2019-12-17T09:02:27.000Z
var/spack/repos/builtin/packages/ncurses/package.py
adrianjhpc/spack
0a9e4fcee57911f2db586aa50c8873d9cca8de92
[ "ECL-2.0", "Apache-2.0", "MIT" ]
5
2019-07-30T09:42:14.000Z
2021-01-25T05:39:20.000Z
# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * from glob import glob from os.path import exists, join from os import makedirs class Ncurses(Autotoo...
34.824074
93
0.604095
1660a1b698bd2f3bf787ec5a8ef7917691932071
4,234
py
Python
src/web/views.py
andrii1812/blood-test-ocr
8094da4d3f2758d870f57e593e4368a51be4f1f2
[ "MIT" ]
1
2020-12-07T02:32:13.000Z
2020-12-07T02:32:13.000Z
src/web/views.py
andrii1812/blood-test-ocr
8094da4d3f2758d870f57e593e4368a51be4f1f2
[ "MIT" ]
null
null
null
src/web/views.py
andrii1812/blood-test-ocr
8094da4d3f2758d870f57e593e4368a51be4f1f2
[ "MIT" ]
null
null
null
import os from PIL import Image from flask import request, jsonify, send_from_directory from flask_restful import Resource, abort import ocr import web import orm @web.app.route('/') def index(): return web.app.send_static_file('dist/index.html') @web.app.route('/uploads/<path:filename>') def uploaded_file(fil...
26.4625
79
0.624941
69c0d4a2bb75e8b6336fe3ab90dd8bf68d55f8a7
281
py
Python
Beriflapp/4 CTRAONTS/CTRAONTS.py
rootaniumcca/Beriflapp
036126550942c2825281325f13e5f70642de3566
[ "MIT" ]
null
null
null
Beriflapp/4 CTRAONTS/CTRAONTS.py
rootaniumcca/Beriflapp
036126550942c2825281325f13e5f70642de3566
[ "MIT" ]
null
null
null
Beriflapp/4 CTRAONTS/CTRAONTS.py
rootaniumcca/Beriflapp
036126550942c2825281325f13e5f70642de3566
[ "MIT" ]
null
null
null
# Convert the resulting array of numbers to strings. Beriflapp = 7 # check and print type of num variable print(type(Beriflapp)) # convert the num into string converted_num = str(Beriflapp) # check and print type converted_num variable print(type(converted_num))
20.071429
53
0.740214
eb9f315157040322b833961f21d983773eeb5938
2,637
py
Python
tests/openfl/transport/grpc/test_director_server.py
msheller/openfl
dc6b7b55e66fa69379036e9a412bee41ed46bde5
[ "Apache-2.0" ]
1
2021-07-14T08:43:55.000Z
2021-07-14T08:43:55.000Z
tests/openfl/transport/grpc/test_director_server.py
msheller/openfl
dc6b7b55e66fa69379036e9a412bee41ed46bde5
[ "Apache-2.0" ]
null
null
null
tests/openfl/transport/grpc/test_director_server.py
msheller/openfl
dc6b7b55e66fa69379036e9a412bee41ed46bde5
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2020-2021 Intel Corporation # SPDX-License-Identifier: Apache-2.0 """Director tests module.""" from pathlib import Path from unittest import mock import pytest from openfl.component.director import Director from openfl.transport import DirectorGRPCServer @pytest.fixture def insecure_director(): ...
32.9625
74
0.7281
a84a7d3b2450e44e7d7a64d5224f283cbb6646a3
5,340
py
Python
NNServer/src/user_info.py
yinkn/iam_plus
9b3912147e3a66cf3726ce074d03372d873c3c79
[ "Apache-2.0" ]
null
null
null
NNServer/src/user_info.py
yinkn/iam_plus
9b3912147e3a66cf3726ce074d03372d873c3c79
[ "Apache-2.0" ]
null
null
null
NNServer/src/user_info.py
yinkn/iam_plus
9b3912147e3a66cf3726ce074d03372d873c3c79
[ "Apache-2.0" ]
null
null
null
""" UserInfo: | user_name | password | e_mail | register_time| key_value | | demo1 | **** | demo1@demo.com | 2017-11-30 | key1=value1;key2=value2 | UserRecord: |user_name | record_time | typing_record | key_value | |demo1 ...
37.87234
152
0.592509
cfb5549094d882420b1e369326e142de3864c5ba
2,814
py
Python
cookbook/core/flyte_basics/files.py
jinserk/flytesnacks
b4742d1dedecdf8d4d6fc20f854128bc24657e8f
[ "Apache-2.0" ]
1
2021-08-20T17:28:42.000Z
2021-08-20T17:28:42.000Z
cookbook/core/flyte_basics/files.py
jeevb/flytesnacks
f32f32482088d717b399864c5470ae546ebcba7d
[ "Apache-2.0" ]
null
null
null
cookbook/core/flyte_basics/files.py
jeevb/flytesnacks
f32f32482088d717b399864c5470ae546ebcba7d
[ "Apache-2.0" ]
null
null
null
""" Working With Files ------------------- Files are one of the most fundamental things that users of Python work with, and they are fully supported by Flyte. In the IDL, they are known as `Blob <https://github.com/lyft/flyteidl/blob/cee566b2e6e109120f1bb34c980b1cfaf006a473/protos/flyteidl/core/literals.proto#L33>`__ ...
40.2
168
0.729922
c3eff7a877fffa3ad806094faf12001a64c89ba7
32,888
py
Python
io_scene_vrm/importer/py_model.py
saturday06/VRM_IMPORTER_for_Blender
42562eead251c82cf25f63451de6598b1dfa6140
[ "MIT" ]
105
2020-08-31T13:03:27.000Z
2021-02-05T12:33:53.000Z
io_scene_vrm/importer/py_model.py
saturday06/VRM_IMPORTER_for_Blender
42562eead251c82cf25f63451de6598b1dfa6140
[ "MIT" ]
44
2020-09-05T20:38:57.000Z
2021-02-02T13:00:26.000Z
io_scene_vrm/importer/py_model.py
saturday06/VRM_IMPORTER_for_Blender
42562eead251c82cf25f63451de6598b1dfa6140
[ "MIT" ]
12
2020-10-02T14:10:31.000Z
2021-02-01T10:51:52.000Z
""" Copyright (c) 2018 iCyP Released under the MIT license https://opensource.org/licenses/mit-license.php """ import contextlib import json import math import os import re import sys import tempfile from collections import OrderedDict from dataclasses import dataclass, field from itertools import repeat from typing ...
35.982495
286
0.589972
df75012898b5d451a2b416ab0eabbe0b9f6a16e6
18,391
py
Python
test/functional/interface_zmq_ttm.py
mytitanium/Titanium-Core-1.0
470e6a0a23de1ea867d693e362d1a0f6ccc12aa7
[ "MIT" ]
2
2020-12-01T17:15:50.000Z
2020-12-11T13:29:54.000Z
test/functional/interface_zmq_ttm.py
mytitanium/Titanium-Core-1.0
470e6a0a23de1ea867d693e362d1a0f6ccc12aa7
[ "MIT" ]
1
2020-07-27T10:54:07.000Z
2020-08-28T05:37:26.000Z
test/functional/interface_zmq_ttm.py
mytitanium/Titanium-Core-1.0
470e6a0a23de1ea867d693e362d1a0f6ccc12aa7
[ "MIT" ]
2
2020-11-09T16:38:04.000Z
2021-04-02T05:27:36.000Z
#!/usr/bin/env python3 # Copyright (c) 2018-2020 The Ttm Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the ttm specific ZMQ notification interfaces.""" import configparser from enum import Enum import io ...
47.399485
119
0.701756
410d08f1420b85c8ea2550903f474849b6901daf
2,760
py
Python
tests/data/test_agrawal_generator.py
Darkmyter/scikit-multiflow
e455cb9023bda8c2a5a4ec7917c9b3c7ab8586a9
[ "BSD-3-Clause" ]
null
null
null
tests/data/test_agrawal_generator.py
Darkmyter/scikit-multiflow
e455cb9023bda8c2a5a4ec7917c9b3c7ab8586a9
[ "BSD-3-Clause" ]
null
null
null
tests/data/test_agrawal_generator.py
Darkmyter/scikit-multiflow
e455cb9023bda8c2a5a4ec7917c9b3c7ab8586a9
[ "BSD-3-Clause" ]
null
null
null
import os import numpy as np from skmultiflow.data.agrawal_generator import AGRAWALGenerator def test_agrawal_generator(test_path): stream = AGRAWALGenerator(classification_function=2, random_state=112, balance_classes=False, perturbation=0.28) stream.prepare_for_use() assert stream.n_remaining_samples()...
30.32967
116
0.681522
73686f5910a4c1f0a4332723c75b2454106b20de
3,096
py
Python
corefacility/core/entity/entity_fields/field_managers/public_file_manager.py
serik1987/corefacility
78d84e19403361e83ef562e738473849f9133bef
[ "RSA-MD" ]
null
null
null
corefacility/core/entity/entity_fields/field_managers/public_file_manager.py
serik1987/corefacility
78d84e19403361e83ef562e738473849f9133bef
[ "RSA-MD" ]
null
null
null
corefacility/core/entity/entity_fields/field_managers/public_file_manager.py
serik1987/corefacility
78d84e19403361e83ef562e738473849f9133bef
[ "RSA-MD" ]
null
null
null
from django.core.files import File from django.db import transaction from django.conf import settings from core.entity.entity_fields.field_managers.entity_value_manager import EntityValueManager from core.entity.entity_exceptions import EntityOperationNotPermitted class PublicFileManager(EntityValueManager): """...
37.301205
109
0.656977
d3fe4c57c86e0a68f581adf84a94103acc57ea46
1,837
py
Python
tests/test_connection_manager.py
Sceptre/sceptre-core
83818e69d4e3c35c2a048240f7bc35f66d989db5
[ "Apache-2.0" ]
null
null
null
tests/test_connection_manager.py
Sceptre/sceptre-core
83818e69d4e3c35c2a048240f7bc35f66d989db5
[ "Apache-2.0" ]
1
2019-10-22T08:52:23.000Z
2019-10-22T08:52:23.000Z
tests/test_connection_manager.py
Sceptre/sceptre-core
83818e69d4e3c35c2a048240f7bc35f66d989db5
[ "Apache-2.0" ]
null
null
null
import pytest from unittest import mock from sceptre.provider.connection_manager import ConnectionManager from sceptre.exceptions import ClientError from sceptre.exceptions import RetryLimitExceededError class TestConnectionManager: def test_connection_manager_instantiates_with_config(self): connection_...
32.803571
76
0.703321
9818f72487db6371b0a65c5bc276eae478dc61a3
1,200
gyp
Python
node_modules/node-ios-device/binding.gyp
GertjanSmits/titanium_mobile
5320df5bfe2a5953879a46b89906c6e73ba1e714
[ "Apache-2.0" ]
null
null
null
node_modules/node-ios-device/binding.gyp
GertjanSmits/titanium_mobile
5320df5bfe2a5953879a46b89906c6e73ba1e714
[ "Apache-2.0" ]
null
null
null
node_modules/node-ios-device/binding.gyp
GertjanSmits/titanium_mobile
5320df5bfe2a5953879a46b89906c6e73ba1e714
[ "Apache-2.0" ]
null
null
null
{ 'targets': [ { 'target_name': 'node_module_version', 'type': 'executable', 'sources': [ 'src/node-module-version.cpp' ] }, { 'target_name': 'node_ios_device', 'dependencies': [ 'node_module_version' ], 'sources': [ 'src/ios-device.cpp', 'src/mobiledevice.h' ], 'libraries'...
23.076923
64
0.575833
211c5ee0ef79854bf2b61e2c836dceb68c5c77db
5,568
py
Python
syspy/pycube/_line.py
systragroup/quetzal
bb7934bcae588cddf0f0da810d75114d1c64768f
[ "CECILL-B" ]
25
2018-11-20T16:33:02.000Z
2022-03-03T12:46:52.000Z
syspy/pycube/_line.py
systragroup/quetzal
bb7934bcae588cddf0f0da810d75114d1c64768f
[ "CECILL-B" ]
14
2019-06-13T13:26:20.000Z
2022-01-13T03:51:07.000Z
syspy/pycube/_line.py
systragroup/quetzal
bb7934bcae588cddf0f0da810d75114d1c64768f
[ "CECILL-B" ]
4
2020-01-31T18:34:59.000Z
2022-03-18T17:22:45.000Z
__author__ = 'qchasserieau' import re class Line: def __init__(self, chunk): self.chunk = chunk try: self.name = self.chunk.split("'")[1] except Exception: self.name = 'not_a_line' def change_time(self, time_factor=1, offset=0): self.chunk = _change_ti...
35.922581
121
0.571121
cbd79ccea177250abb74080b6b2f3b7e3ac779c5
1,830
py
Python
packager/third_party/yasm/run_yasm.py
koln67/shaka-packager
5b9fd409a5de502e8af2e46ee12840bd2226874d
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
packager/third_party/yasm/run_yasm.py
koln67/shaka-packager
5b9fd409a5de502e8af2e46ee12840bd2226874d
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
894
2016-05-17T00:39:30.000Z
2022-03-02T18:46:21.000Z
packager/third_party/yasm/run_yasm.py
koln67/shaka-packager
5b9fd409a5de502e8af2e46ee12840bd2226874d
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
400
2016-05-25T01:20:35.000Z
2022-03-03T02:12:00.000Z
# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """A wrapper to run yasm. Its main job is to provide a Python wrapper for GN integration, and to write the makefile-style output yasm generates in stdout to...
35.192308
79
0.754098
8d8a696ecdf83ebbf6b6d030e0950e2616979178
1,596
py
Python
tests/test_index.py
brunobord/static-markdown
7d9d7f3b76068087b3754cf15d2ae4d2dc2a5531
[ "MIT" ]
5
2019-06-14T10:10:07.000Z
2021-12-20T17:46:53.000Z
tests/test_index.py
brunobord/static-markdown
7d9d7f3b76068087b3754cf15d2ae4d2dc2a5531
[ "MIT" ]
13
2019-06-13T21:00:58.000Z
2021-05-12T19:35:40.000Z
tests/test_index.py
brunobord/static-markdown
7d9d7f3b76068087b3754cf15d2ae4d2dc2a5531
[ "MIT" ]
null
null
null
import requests def test_home(http_server): response = requests.get("http://127.0.0.1:8080/index.html") assert response.status_code == 200 index_html = response.content response = requests.get("http://127.0.0.1:8080/") assert response.status_code == 200 assert response.content == index_html ...
34.695652
80
0.697995
fb80c00ee57d3260f146a3282ae2ae87fe941ec9
7,552
py
Python
python/ccxt/async/coinmate.py
hippylover/ccxt
db304e95b699c1971ad37b9053ae71fcb5dc3b03
[ "MIT" ]
2
2018-02-28T02:51:59.000Z
2018-02-28T03:25:51.000Z
python/ccxt/async/coinmate.py
August-Ghost/ccxt
886c596ffde611b5a92cb5b6e3788ff010324c74
[ "MIT" ]
null
null
null
python/ccxt/async/coinmate.py
August-Ghost/ccxt
886c596ffde611b5a92cb5b6e3788ff010324c74
[ "MIT" ]
9
2018-02-20T18:24:00.000Z
2019-06-18T14:23:11.000Z
# -*- coding: utf-8 -*- from ccxt.async.base.exchange import Exchange from ccxt.base.errors import ExchangeError class coinmate (Exchange): def describe(self): return self.deep_extend(super(coinmate, self).describe(), { 'id': 'coinmate', 'name': 'CoinMate', 'countries...
38.335025
137
0.476165
021dc3a19644ba8086ed5934b550cab5b20ac488
254
py
Python
example_projects/basic/skeleton/version.py
olklymov/valkka-examples
92be5f815cd3927100ccc4220c588bdd7c510797
[ "MIT" ]
12
2018-06-28T13:40:53.000Z
2022-01-07T12:46:15.000Z
skeleton/version.py
elsampsa/skeleton
30679fc787014e347e0b21a6f74193237c0ffe61
[ "MIT" ]
6
2019-04-29T16:55:38.000Z
2022-03-04T17:00:15.000Z
skeleton/version.py
elsampsa/skeleton
30679fc787014e347e0b21a6f74193237c0ffe61
[ "MIT" ]
5
2019-04-21T15:42:55.000Z
2021-08-16T10:53:30.000Z
"""This module has the version number. Automatically changed with the "setver.bash" script. Don't touch! """ VERSION_MAJOR=1 VERSION_MINOR=0 VERSION_PATCH=0 def getVersionTag(): return "(%i.%i.%i)" % (VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH)
25.4
106
0.73622
821e828ed68d72ac7dfa353aed38eb4937015657
6,483
py
Python
test/decoders/test_rnn_transducer_decoder.py
ishine/neural_sp
7995613541d994976b00d80dcc12e2835163acfb
[ "Apache-2.0" ]
577
2018-09-17T14:39:34.000Z
2022-03-29T10:48:09.000Z
test/decoders/test_rnn_transducer_decoder.py
ishine/neural_sp
7995613541d994976b00d80dcc12e2835163acfb
[ "Apache-2.0" ]
221
2019-04-21T01:44:09.000Z
2022-02-10T02:08:47.000Z
test/decoders/test_rnn_transducer_decoder.py
ishine/neural_sp
7995613541d994976b00d80dcc12e2835163acfb
[ "Apache-2.0" ]
139
2019-01-09T02:18:00.000Z
2022-03-29T07:40:08.000Z
#! /usr/bin/env python3 # -*- coding: utf-8 -*- """Test for RNN Transducer.""" import argparse import importlib import numpy as np import pytest import torch from neural_sp.datasets.token_converter.character import Idx2char from neural_sp.models.torch_utils import ( np2tensor, pad_list ) ENC_N_UNITS = 16 V...
30.580189
90
0.592627
45d8bf0f51af468f019d852a9425b5aa807b3131
118
py
Python
oldpost/urls.py
AmanSangwan127306/cricket-match-tip-website
b74fb2473312a9a87ac7b00e5bdf6d6bdbf1649b
[ "MIT" ]
null
null
null
oldpost/urls.py
AmanSangwan127306/cricket-match-tip-website
b74fb2473312a9a87ac7b00e5bdf6d6bdbf1649b
[ "MIT" ]
null
null
null
oldpost/urls.py
AmanSangwan127306/cricket-match-tip-website
b74fb2473312a9a87ac7b00e5bdf6d6bdbf1649b
[ "MIT" ]
null
null
null
from django.urls import path , include from . import views urlpatterns=[ path("",views.oldpost,name="oldpost") ]
16.857143
41
0.711864
d11ef76451e6da0a63b331ffdd029027894b338c
2,002
py
Python
mykoreanromanizer/syllable.py
teresagarcia/my-korean-romanizer
0bc9813ee4b5ceb2739b58c421cedcd071fc4006
[ "MIT" ]
2
2021-08-01T13:50:51.000Z
2022-03-30T11:21:53.000Z
mykoreanromanizer/syllable.py
teresagarcia/my-korean-romanizer
0bc9813ee4b5ceb2739b58c421cedcd071fc4006
[ "MIT" ]
4
2020-06-28T10:32:35.000Z
2020-10-27T10:05:20.000Z
mykoreanromanizer/syllable.py
teresagarcia/my-korean-romanizer
0bc9813ee4b5ceb2739b58c421cedcd071fc4006
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from jamo import h2j, j2hcj class Syllable(object): def __init__(self, char): self.char = char self.initial = '' self.medial = '' self.final = '' self.double_final = '' self.separate() def separate(self): result = list(j2hcj(h2j...
21.76087
65
0.564935
6675a2daabdd07c02385bb3ecda979c44b90e39b
134,715
py
Python
test/cpython/test_datetime.py
aisk/pyston
ac69cfef0621dbc8901175e84fa2b5cb5781a646
[ "BSD-2-Clause", "Apache-2.0" ]
1
2020-02-06T14:28:45.000Z
2020-02-06T14:28:45.000Z
test/cpython/test_datetime.py
aisk/pyston
ac69cfef0621dbc8901175e84fa2b5cb5781a646
[ "BSD-2-Clause", "Apache-2.0" ]
null
null
null
test/cpython/test_datetime.py
aisk/pyston
ac69cfef0621dbc8901175e84fa2b5cb5781a646
[ "BSD-2-Clause", "Apache-2.0" ]
1
2020-02-06T14:29:00.000Z
2020-02-06T14:29:00.000Z
# expected: fail """Test date/time type. See http://www.zope.org/Members/fdrake/DateTimeWiki/TestCases """ from __future__ import division import sys import pickle import cPickle import unittest from test import test_support from datetime import MINYEAR, MAXYEAR from datetime import timedelta from datetime import tz...
39.974777
91
0.572653
7dd3878dadf27938dbde011e287e66a4ae78bc22
1,114
py
Python
appleusergroup/meeting/tests.py
jenslauterbach/appleusergroup
c13b80e66c6054a243acebab40fb9c49ed6708db
[ "MIT" ]
null
null
null
appleusergroup/meeting/tests.py
jenslauterbach/appleusergroup
c13b80e66c6054a243acebab40fb9c49ed6708db
[ "MIT" ]
null
null
null
appleusergroup/meeting/tests.py
jenslauterbach/appleusergroup
c13b80e66c6054a243acebab40fb9c49ed6708db
[ "MIT" ]
null
null
null
from datetime import timedelta from django.test import TestCase from django.utils import timezone from .models import Meeting class MeetingTestCase(TestCase): def test_upcoming_meeting(self): """ Tests if the correct meeting is found if there are multiple meetings. The meetings are in the past ...
34.8125
114
0.696589
2c750b0c503819e0357b52527e82c2ac04d15e83
6,161
py
Python
Test/spec/simd/meta/simd_i16x8_arith.py
WebAssembly/wasm-jit-prototype
65ca25f8e6578ffc3bcf09c10c80af4f1ba443b2
[ "BSD-3-Clause" ]
327
2015-10-22T16:48:07.000Z
2021-12-31T14:47:02.000Z
Test/spec/simd/meta/simd_i16x8_arith.py
WebAssembly/wasm-jit-prototype
65ca25f8e6578ffc3bcf09c10c80af4f1ba443b2
[ "BSD-3-Clause" ]
10
2015-12-22T12:11:25.000Z
2019-10-14T22:42:21.000Z
Test/spec/simd/meta/simd_i16x8_arith.py
WebAssembly/wasm-jit-prototype
65ca25f8e6578ffc3bcf09c10c80af4f1ba443b2
[ "BSD-3-Clause" ]
30
2015-10-22T16:48:12.000Z
2022-01-18T16:37:10.000Z
#!/usr/bin/env python3 """ Generate i16x8 integer arithmetic operation cases. """ from simd_arithmetic import SimdArithmeticCase class SimdI16x8ArithmeticCase(SimdArithmeticCase): LANE_LEN = 8 LANE_TYPE = 'i16x8' @property def hex_binary_op_test_data(self): return [ ('0x3fff', ...
38.993671
95
0.393605
b04e65b82446f695ae23e7f95974f7a9ebfca6d3
2,549
py
Python
tests/scripts/test_partition_data.py
microsoft/lightgbm-benchmark
286668d698d9d166857f924ecb775d5de224d489
[ "MIT" ]
13
2021-08-20T01:03:51.000Z
2022-02-12T05:34:46.000Z
tests/scripts/test_partition_data.py
microsoft/lightgbm-benchmark
286668d698d9d166857f924ecb775d5de224d489
[ "MIT" ]
199
2021-08-21T21:18:53.000Z
2022-03-27T23:08:44.000Z
tests/scripts/test_partition_data.py
microsoft/lightgbm-benchmark
286668d698d9d166857f924ecb775d5de224d489
[ "MIT" ]
4
2021-08-20T06:53:26.000Z
2022-01-24T22:22:39.000Z
""" test src/scripts/partition_data/partition.py """ import os import sys import tempfile import pytest from unittest.mock import patch from scripts.data_processing.partition_data import partition # IMPORTANT: see conftest.py for fixtures def verify_partitioned_files(partitioned_data_dir, expected_file_count, expect...
31.469136
130
0.690467
3299f8668d3ec246d06cc4c13ed77ee418f915b5
3,058
py
Python
FeedBackSystem/NewsReader.py
xzhuah/Domain-news-enhancement-system
0ece35bb26b811c8b00895044da2d5b076a2c553
[ "Apache-2.0" ]
1
2020-11-28T04:33:27.000Z
2020-11-28T04:33:27.000Z
FeedBackSystem/NewsReader.py
xzhuah/Domain-news-enhancement-system
0ece35bb26b811c8b00895044da2d5b076a2c553
[ "Apache-2.0" ]
null
null
null
FeedBackSystem/NewsReader.py
xzhuah/Domain-news-enhancement-system
0ece35bb26b811c8b00895044da2d5b076a2c553
[ "Apache-2.0" ]
null
null
null
#0~14 #14~19 import json from flask import render_template from flask import Flask,redirect from flask import request import feedback import NewsRanker app = Flask(__name__) result_file_path = "../sortedResult.txt" def loadNews(news_path): high_score_news_ = [] mid_score_news_ = [] low_score_news_ = [] ...
30.888889
119
0.702093
3408e92ba358828dbc252a7698c9b7450eff78f6
7,021
py
Python
h5plexos/query/solution.py
NREL/h5plexos
fa14e2f21d4710e05f058cd1cc3e714d5eab51b2
[ "BSD-3-Clause" ]
2
2021-09-09T05:29:07.000Z
2021-12-06T05:45:54.000Z
h5plexos/query/solution.py
NREL/h5plexos
fa14e2f21d4710e05f058cd1cc3e714d5eab51b2
[ "BSD-3-Clause" ]
2
2021-07-08T14:42:41.000Z
2022-01-18T20:33:51.000Z
h5plexos/query/solution.py
NREL/h5plexos
fa14e2f21d4710e05f058cd1cc3e714d5eab51b2
[ "BSD-3-Clause" ]
1
2021-10-08T16:23:33.000Z
2021-10-08T16:23:33.000Z
import h5py import numpy as np import pandas as pd import re # We can probably do better def issequence(x): return hasattr(x, '__iter__') version_rgx = re.compile("^v(\d+)\.(\d+)\.(\d+)$") class PLEXOSSolution: def __init__(self, h5filepath): self.h5file = h5py.File(h5filepath, "r") ...
37.951351
99
0.558183
ce2f620cb9f13a9ef613b8db664bf874f97eb0b7
1,234
py
Python
torcms/script/autocrud/base_crud.py
bukun/TorCMS
5d7480865fd46e706b84f5f65a5c24cd03bb2142
[ "MIT" ]
243
2015-02-11T03:22:19.000Z
2022-03-02T11:13:27.000Z
torcms/script/autocrud/base_crud.py
bukun/TorCMS
5d7480865fd46e706b84f5f65a5c24cd03bb2142
[ "MIT" ]
8
2015-09-09T10:49:52.000Z
2020-08-30T08:52:48.000Z
torcms/script/autocrud/base_crud.py
bukun/TorCMS
5d7480865fd46e706b84f5f65a5c24cd03bb2142
[ "MIT" ]
101
2015-02-12T02:17:16.000Z
2021-11-19T09:20:10.000Z
# -*- coding:utf-8 -*- ''' Basic configuration for CRUD. ''' import os CRUD_PATH = os.path.abspath('./templates/autogen') META_DIR = './database/meta' XLSX_FILE = './database/meta/info_tags.xlsx' for wfile in os.listdir(META_DIR): if wfile.startswith('~'): continue if wfile.lower().endswith('.xlsx'...
27.422222
82
0.511345
931db214d8543db250fda3cc669da3334ed02ada
10,483
py
Python
setup.py
thomasjpfan/pyamg
b0904d31c8da0c29affcd7d0fcd2bb8cb910b42a
[ "MIT" ]
null
null
null
setup.py
thomasjpfan/pyamg
b0904d31c8da0c29affcd7d0fcd2bb8cb910b42a
[ "MIT" ]
null
null
null
setup.py
thomasjpfan/pyamg
b0904d31c8da0c29affcd7d0fcd2bb8cb910b42a
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ PyAMG: Algebraic Multigrid Solvers in Python PyAMG is a library of Algebraic Multigrid (AMG) solvers with a convenient Python interface. PyAMG features implementations of: - Ruge-Stuben (RS) or Classical AMG - AMG based on Smoothed Aggregation (SA) - Adaptive Smoothe...
31.575301
98
0.603739
5ff790839665c94b28ed5cd469abdba2bdb4370d
3,259
py
Python
chapter_3/moreplus.py
bimri/programming_python
ba52ccd18b9b4e6c5387bf4032f381ae816b5e77
[ "MIT" ]
null
null
null
chapter_3/moreplus.py
bimri/programming_python
ba52ccd18b9b4e6c5387bf4032f381ae816b5e77
[ "MIT" ]
null
null
null
chapter_3/moreplus.py
bimri/programming_python
ba52ccd18b9b4e6c5387bf4032f381ae816b5e77
[ "MIT" ]
null
null
null
""" split and interactively page a string, file, or stream of text to stdout; when run as a script, page stdin or file whose name is passed on cmdline; if input is stdin, can't use it for user reply--use platform-specific tools or GUI; """ import sys def getreply(): """ read a reply key from an interactive u...
36.211111
99
0.601105
0c015141fa322465b1476e035f87da223555b211
1,544
py
Python
youtube_dl/extractor/goshgay.py
rajkotraja/YTDownloader
01a0c511ebfa56699c1f58164c679b24f7972681
[ "Unlicense" ]
10
2020-05-29T03:20:03.000Z
2022-03-29T01:05:20.000Z
youtube_dl/extractor/goshgay.py
huyangfeng/youtobedl
7b0d1c28597bd38567e5b4e853f669a5a601c6e8
[ "Unlicense" ]
1
2016-05-18T01:27:28.000Z
2016-05-18T05:00:36.000Z
PythonSamples/library/files/lib/python2.7/site-packages/youtube_dl/extractor/goshgay.py
jianglei12138/python2.7
280aa96d8cac98c03ca8c8ed71541f7ff7817055
[ "PSF-2.0" ]
9
2020-05-29T03:21:02.000Z
2021-04-14T03:26:05.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from .common import InfoExtractor from ..compat import ( compat_parse_qs, ) from ..utils import ( parse_duration, ) class GoshgayIE(InfoExtractor): _VALID_URL = r'https?://www\.goshgay\.com/video(?P<id>\d+?)($|/)' _TEST = { 'url'...
29.692308
73
0.542746
820d60bb930a5327289229d0f68314ccd3ee0736
1,737
py
Python
clubsuite/suite/views/view_activity.py
lazyCodes7/Clubspot
39ddee5adcd6e40f7552fd9048282225ff058abd
[ "MIT" ]
5
2021-09-19T15:09:51.000Z
2021-09-20T06:43:27.000Z
clubsuite/suite/views/view_activity.py
lazyCodes7/Clubspot
39ddee5adcd6e40f7552fd9048282225ff058abd
[ "MIT" ]
null
null
null
clubsuite/suite/views/view_activity.py
lazyCodes7/Clubspot
39ddee5adcd6e40f7552fd9048282225ff058abd
[ "MIT" ]
1
2021-09-20T13:27:13.000Z
2021-09-20T13:27:13.000Z
from django.shortcuts import render, get_object_or_404 from django.http import HttpResponse, HttpResponseRedirect from django.contrib.auth.mixins import LoginRequiredMixin, UserPassesTestMixin from django.views.generic import View from django.urls import reverse from django.contrib import messages from suite.models imp...
34.74
122
0.716177
6563e82db9f2903fcedce04fb58bcfb9f2054b10
377
py
Python
return_practice.py
Athenian-ComputerScience-Fall2020/functions-practice-Jackypop101
f2b74bdbda0dc9fbc3ab94b18746c8c4443f49a0
[ "Apache-2.0" ]
null
null
null
return_practice.py
Athenian-ComputerScience-Fall2020/functions-practice-Jackypop101
f2b74bdbda0dc9fbc3ab94b18746c8c4443f49a0
[ "Apache-2.0" ]
null
null
null
return_practice.py
Athenian-ComputerScience-Fall2020/functions-practice-Jackypop101
f2b74bdbda0dc9fbc3ab94b18746c8c4443f49a0
[ "Apache-2.0" ]
null
null
null
# Add comments to explain what the output from this program will be and how you know. def math1(): num1 = 50 num2 = 5 return num1 + num2 #50+5=55 def math2(): num1 = 50 num2 = 5 return num1 - num2 #50-5=45 def math3(): num1 = 50 num2 = 5 return num1 * num2 #50*5=150 output_num = math2(...
11.78125
85
0.615385
af66b7ecab355f14f12c8293a035f0f48be8962b
525
py
Python
spacy/lang/it/examples.py
cedar101/spaCy
66e22098a8bb77cbe527b1a4a3c69ec1cfb56f95
[ "MIT" ]
12
2019-03-20T20:43:47.000Z
2020-04-13T11:10:52.000Z
spacy/lang/it/examples.py
cedar101/spaCy
66e22098a8bb77cbe527b1a4a3c69ec1cfb56f95
[ "MIT" ]
13
2018-06-05T11:54:40.000Z
2019-07-02T11:33:14.000Z
spacy/lang/it/examples.py
cedar101/spaCy
66e22098a8bb77cbe527b1a4a3c69ec1cfb56f95
[ "MIT" ]
2
2021-12-09T07:23:21.000Z
2022-03-31T06:13:10.000Z
# coding: utf8 from __future__ import unicode_literals """ Example sentences to test spaCy and its language models. >>> from spacy.lang.it.examples import sentences >>> docs = nlp.pipe(sentences) """ sentences = [ "Apple vuole comprare una startup del Regno Unito per un miliardo di dollari", "Le automobili...
27.631579
96
0.742857
f21a740554226f5a4015b5fbabe6725fe37ff161
904
py
Python
test/tts_demo/setup.py
marklogg/mini_demo
71c71826e6819372e5e759d93eb5b4f338964c1e
[ "MIT" ]
7
2020-07-02T08:03:17.000Z
2022-03-11T12:52:00.000Z
test/tts_demo/setup.py
marklogg/mini_demo
71c71826e6819372e5e759d93eb5b4f338964c1e
[ "MIT" ]
2
2021-05-11T10:06:13.000Z
2021-11-22T21:34:35.000Z
test/tts_demo/setup.py
marklogg/mini_demo
71c71826e6819372e5e759d93eb5b4f338964c1e
[ "MIT" ]
11
2020-07-02T06:42:03.000Z
2021-05-31T02:10:39.000Z
#!/usr/bin/env python3 # coding=utf-8 import setuptools setuptools.setup( name="tts_demo", version="0.0.2", author='Gino Deng', author_email='jingjing.deng@ubtrobot.com', description="demo with mini_sdk", long_description='demo with mini_sdk,xxxxxxx', long_description_content_type="text/ma...
26.588235
51
0.610619
3861276a493679b37368c6d9b56591278223452d
4,228
py
Python
.circleci/deselect_tests.py
a-vasenin/scikit-learn-intelex
b81f81098a7f9302c6a052a5d22ecd372682844d
[ "Apache-2.0" ]
null
null
null
.circleci/deselect_tests.py
a-vasenin/scikit-learn-intelex
b81f81098a7f9302c6a052a5d22ecd372682844d
[ "Apache-2.0" ]
null
null
null
.circleci/deselect_tests.py
a-vasenin/scikit-learn-intelex
b81f81098a7f9302c6a052a5d22ecd372682844d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python #=============================================================================== # Copyright 2020-2022 Intel 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 ...
36.765217
90
0.613765
ed3a183446962ac18acd72bd23b851e3d75bf0ba
10,611
py
Python
exp/exp016_RoBERTa_large_ITPTv2.py
Hiroki29/kaggle2021-CommonLit-Readability-Prize
c588174c378f93890d6a16436050ec21f76cf919
[ "MIT" ]
null
null
null
exp/exp016_RoBERTa_large_ITPTv2.py
Hiroki29/kaggle2021-CommonLit-Readability-Prize
c588174c378f93890d6a16436050ec21f76cf919
[ "MIT" ]
null
null
null
exp/exp016_RoBERTa_large_ITPTv2.py
Hiroki29/kaggle2021-CommonLit-Readability-Prize
c588174c378f93890d6a16436050ec21f76cf919
[ "MIT" ]
null
null
null
import logging import math import os import datasets import pandas as pd import torch import transformers from accelerate import Accelerator from datasets import load_dataset from torch.utils.data import DataLoader from tqdm.auto import tqdm from transformers import (AdamW, AutoConfig, AutoModelForMaskedLM, AutoTokeni...
40.655172
118
0.664782
e333c41d024a3ccbaa54c08a6664915dc6c442f4
5,970
py
Python
goap/Automaton.py
leopepe/GOApy
6cc3c355e5b286a6aef01b83a0c2373a58d01278
[ "BSD-2-Clause" ]
37
2016-09-17T16:25:27.000Z
2022-01-28T17:06:42.000Z
goap/Automaton.py
leopepe/GOApy
6cc3c355e5b286a6aef01b83a0c2373a58d01278
[ "BSD-2-Clause" ]
7
2017-02-22T03:24:38.000Z
2021-10-02T07:35:47.000Z
goap/Automaton.py
leopepe/GOApy
6cc3c355e5b286a6aef01b83a0c2373a58d01278
[ "BSD-2-Clause" ]
11
2017-02-03T11:31:20.000Z
2021-08-02T19:33:29.000Z
from datetime import datetime from automat import MethodicalMachine from goap.Sensor import Sensors from goap.Action import Actions from goap.Planner import Planner from goap.WorldState import WorldState from time import sleep class Fact(object): def __init__(self, sensor, data, binding): self.binding = b...
27.511521
95
0.582245
704dcf0acbe14b487504a079c6e0f927895a8e88
956
py
Python
samples/reporting/coreservices/delete_subscription_of_report_name_by_organization.py
shalltell/cybersource-rest-samples-python
95b0557456d99538fca5d01c238d3600378930de
[ "MIT" ]
null
null
null
samples/reporting/coreservices/delete_subscription_of_report_name_by_organization.py
shalltell/cybersource-rest-samples-python
95b0557456d99538fca5d01c238d3600378930de
[ "MIT" ]
null
null
null
samples/reporting/coreservices/delete_subscription_of_report_name_by_organization.py
shalltell/cybersource-rest-samples-python
95b0557456d99538fca5d01c238d3600378930de
[ "MIT" ]
null
null
null
from CyberSource import * import os from importlib.machinery import SourceFileLoader config_file = os.path.join(os.getcwd(), "data", "Configuration.py") configuration = SourceFileLoader("module.name", config_file).load_module() def delete_subscriptions_report(reportname): try: report_name = reportname ...
35.407407
93
0.738494
38f9f6af9e6f1dfc3daca10322b07d4eb4cf065f
8,008
py
Python
blog/views.py
ProjectInAction/final-work-blog
898dc45389fbd9302971b7e26558e4c31cda7d21
[ "Apache-2.0" ]
null
null
null
blog/views.py
ProjectInAction/final-work-blog
898dc45389fbd9302971b7e26558e4c31cda7d21
[ "Apache-2.0" ]
null
null
null
blog/views.py
ProjectInAction/final-work-blog
898dc45389fbd9302971b7e26558e4c31cda7d21
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from blog import app from flask import Flask, render_template, session, redirect, url_for, request, g, flash, send_from_directory,abort from .mylib import Comment,Article,ArtiList,blogInfo from random import randint as randint def getName(): preName=['路过的','隐匿的','黯淡的','蒙面的','薄情的','无名的'] ...
29.659259
134
0.611014
ef6d050b264fe1f8f3d9192f4d8dab65923dd510
5,625
py
Python
homeassistant/components/solarlog/sensor.py
aaearon/core
b2c9bd2ca67df277093790e3fc0def34d9f7fb04
[ "Apache-2.0" ]
null
null
null
homeassistant/components/solarlog/sensor.py
aaearon/core
b2c9bd2ca67df277093790e3fc0def34d9f7fb04
[ "Apache-2.0" ]
43
2020-12-21T08:18:31.000Z
2022-03-31T06:04:27.000Z
homeassistant/components/solarlog/sensor.py
aaearon/core
b2c9bd2ca67df277093790e3fc0def34d9f7fb04
[ "Apache-2.0" ]
null
null
null
"""Platform for solarlog sensors.""" import logging from urllib.parse import ParseResult, urlparse from requests.exceptions import HTTPError, Timeout from sunwatcher.solarlog.solarlog import SolarLog from homeassistant.const import CONF_HOST from homeassistant.helpers.entity import Entity from homeassistant.util impo...
36.290323
153
0.645689
d87c7d0e0c062aa38797760fdaed67fc901a6e19
1,488
py
Python
src/resources/baserouter.py
solnsumei/properties
45361b7d46a5ac34931f3ed24bb6c5eb7fc8a81b
[ "MIT" ]
null
null
null
src/resources/baserouter.py
solnsumei/properties
45361b7d46a5ac34931f3ed24bb6c5eb7fc8a81b
[ "MIT" ]
null
null
null
src/resources/baserouter.py
solnsumei/properties
45361b7d46a5ac34931f3ed24bb6c5eb7fc8a81b
[ "MIT" ]
null
null
null
from fastapi import APIRouter class BaseRouter(APIRouter): def __init__(self, request_schema, response_schema, model): super().__init__() self.request_schema = request_schema self.response_schema = response_schema self.model = model def load_crud_routes(self): request_...
37.2
75
0.663978
ae2a3e91cc6000057372bf5bb793c33d21ff2440
43,779
py
Python
src/toil/jobStores/abstractJobStore.py
smoe/toil
3dae6d44d98516f0100f769aedfbfd57371ab458
[ "Apache-2.0" ]
null
null
null
src/toil/jobStores/abstractJobStore.py
smoe/toil
3dae6d44d98516f0100f769aedfbfd57371ab458
[ "Apache-2.0" ]
null
null
null
src/toil/jobStores/abstractJobStore.py
smoe/toil
3dae6d44d98516f0100f769aedfbfd57371ab458
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2015-2016 Regents of the University of California # # 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 app...
41.300943
130
0.645515
a73808d1cbadb32576a374d5d727e33c6fa880d9
222
py
Python
lib/Gassmann.py
yohanesnuwara/CO2Inject
0be66ca14e1eb3787701541fd91d2d190c1e50b9
[ "MIT" ]
null
null
null
lib/Gassmann.py
yohanesnuwara/CO2Inject
0be66ca14e1eb3787701541fd91d2d190c1e50b9
[ "MIT" ]
null
null
null
lib/Gassmann.py
yohanesnuwara/CO2Inject
0be66ca14e1eb3787701541fd91d2d190c1e50b9
[ "MIT" ]
null
null
null
def Ks(Kd, Km, Kf, phi): gamma = 1.0 - phi - Kd/Km return Kd + (gamma + phi)**2/(gamma/Km + phi/Kf) def Kd(Ks, Km, Kf, phi): gamma = phi*(Km/Kf - 1.0) return (Ks*(gamma + 1.0) - Km)/(gamma - 1.0 + Ks/Km)
24.666667
56
0.509009
e467627aceed4ba4feb788a5253732784b5ecff7
1,224
py
Python
atest/testresources/testlibs/ArgumentsPython.py
userzimmermann/robotframework
7aa16338ce2120cb082605cf548c0794956ec901
[ "Apache-2.0" ]
7
2015-02-25T10:55:02.000Z
2015-11-04T03:20:05.000Z
atest/testresources/testlibs/ArgumentsPython.py
userzimmermann/robotframework
7aa16338ce2120cb082605cf548c0794956ec901
[ "Apache-2.0" ]
12
2015-02-24T17:00:06.000Z
2015-07-31T08:32:07.000Z
atest/testresources/testlibs/ArgumentsPython.py
userzimmermann/robotframework
7aa16338ce2120cb082605cf548c0794956ec901
[ "Apache-2.0" ]
2
2015-12-15T11:00:35.000Z
2018-02-24T18:11:24.000Z
import sys class ArgumentsPython: # method docs are used in unit tests as expected min and max args def a_0(self): """(0,0)""" return 'a_0' def a_1(self, arg): """(1,1)""" return 'a_1: ' + arg def a_3(self, arg1, arg2, arg3): """(3,3)""" ...
25.5
69
0.482026
54515116899fa6adb55ce236d3ca284b639c067c
8,604
py
Python
train_abstractor.py
binhna/fast_abs_rl
f371696590ac7ab7116c729dbcde5f8992b69420
[ "MIT" ]
null
null
null
train_abstractor.py
binhna/fast_abs_rl
f371696590ac7ab7116c729dbcde5f8992b69420
[ "MIT" ]
null
null
null
train_abstractor.py
binhna/fast_abs_rl
f371696590ac7ab7116c729dbcde5f8992b69420
[ "MIT" ]
null
null
null
""" train the abstractor""" import argparse import json import os from os.path import join, exists import pickle as pkl from cytoolz import compose import torch from torch import optim from torch.nn import functional as F from torch.optim.lr_scheduler import ReduceLROnPlateau from torch.utils.data import DataLoader ...
37.903084
99
0.63331
90a73edfccd41d24f41722ce07c98b27ed940ea4
614
py
Python
pysimpleframe/interface/input/linux/test.py
OriDevTeam/PySimpleFrame
105654736a0ecc2ddb00921f1bc139faeaba2c84
[ "BSD-3-Clause" ]
null
null
null
pysimpleframe/interface/input/linux/test.py
OriDevTeam/PySimpleFrame
105654736a0ecc2ddb00921f1bc139faeaba2c84
[ "BSD-3-Clause" ]
null
null
null
pysimpleframe/interface/input/linux/test.py
OriDevTeam/PySimpleFrame
105654736a0ecc2ddb00921f1bc139faeaba2c84
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Name: TOFILL\n Description: TOFILL """ """PySimpleFrame Author: Miguel Silva License: Check LICENSE file """ import sys import tty, termios, fcntl import os def smt(): fd = sys.stdin.fileno() old_settings = termios.tcgetattr(fd) old_flags = fcntl.fcnt...
18.606061
59
0.690554
1d0f18d54bb0fb6a07989d6cf00ee97741bd9f4f
128
py
Python
wrappers/python/manual/virgil_crypto/phe/_c_bridge/__init__.py
odidev/virgil-crypto-c
3d5d5cb19fdcf81eab08cdc63647f040117ecbd8
[ "BSD-3-Clause" ]
26
2018-12-17T13:45:25.000Z
2022-01-16T20:00:04.000Z
wrappers/python/manual/virgil_crypto/phe/_c_bridge/__init__.py
odidev/virgil-crypto-c
3d5d5cb19fdcf81eab08cdc63647f040117ecbd8
[ "BSD-3-Clause" ]
4
2019-01-03T12:08:52.000Z
2021-12-02T05:21:13.000Z
wrappers/python/manual/virgil_crypto/phe/_c_bridge/__init__.py
odidev/virgil-crypto-c
3d5d5cb19fdcf81eab08cdc63647f040117ecbd8
[ "BSD-3-Clause" ]
8
2019-01-24T08:22:06.000Z
2022-02-07T11:37:00.000Z
from ._vsce_phe_server import * from ._vsce_phe_client import * from ._vsce_phe_common import * from ._vsce_phe_cipher import *
25.6
31
0.8125
aaead560932eeb19eb50b8fda73e2ec57be748f6
1,841
py
Python
BST_CRUD/BST_Delete.py
wilbertgeng/LintCode_exercise
e7a343b746e98ca3b4bc7b36655af7291f3150db
[ "MIT" ]
null
null
null
BST_CRUD/BST_Delete.py
wilbertgeng/LintCode_exercise
e7a343b746e98ca3b4bc7b36655af7291f3150db
[ "MIT" ]
null
null
null
BST_CRUD/BST_Delete.py
wilbertgeng/LintCode_exercise
e7a343b746e98ca3b4bc7b36655af7291f3150db
[ "MIT" ]
null
null
null
"""基本操作之删除(Delete) 思路(最为复杂) 考虑待删除的节点为叶子节点,可以直接删除并修改父亲节点(Parent Node)的指针,需要区分待删节点是否为根节点 考虑待删除的节点为单支节点(只有一棵子树——左子树 or 右子树),与删除链表节点操作类似,同样的需要区分待删节点是否为根节点 考虑待删节点有两棵子树,可以将待删节点与左子树中的最大节点进行交换,由于左子树中的最大节点一定为叶子节点,所以这时再删除待删的节点可以参考第一条 详细的解释可以看 http://www.algolist.net/Data_structures/Binary_search_tree/Removal""" class TreeNode: ...
31.20339
78
0.560022
83b7a24dc72af1cbe81b7e3405b84b47288702fe
8,713
py
Python
supervisely/train/src/train_config.py
supervisely-ecosystem/mmsegmentation
494333c74cbe9e919bc0b6dbe57d0bbbb8cee79b
[ "Apache-2.0" ]
null
null
null
supervisely/train/src/train_config.py
supervisely-ecosystem/mmsegmentation
494333c74cbe9e919bc0b6dbe57d0bbbb8cee79b
[ "Apache-2.0" ]
13
2022-02-15T20:05:18.000Z
2022-02-15T20:05:21.000Z
supervisely/train/src/train_config.py
supervisely-ecosystem/mmsegmentation
494333c74cbe9e919bc0b6dbe57d0bbbb8cee79b
[ "Apache-2.0" ]
null
null
null
import os import re import supervisely_lib as sly from mmcv.utils.config import Config import sly_globals as g import architectures import augs model_config_name = "model_config.py" dataset_config_name = "dataset_config.py" schedule_config_name = "schedule_config.py" runtime_config_name = "runtime_config.py" main_co...
41.293839
116
0.63411
c120f8563cd73a0d8e91d9974a8a695a18ee508a
7,384
py
Python
DonkiDirector/DonkiOrchestraLib.py
ess-dmsc/do-ess-data-simulator
37ef0d87ad0152b092e3a636ef8d080db0711aaa
[ "BSD-2-Clause" ]
null
null
null
DonkiDirector/DonkiOrchestraLib.py
ess-dmsc/do-ess-data-simulator
37ef0d87ad0152b092e3a636ef8d080db0711aaa
[ "BSD-2-Clause" ]
null
null
null
DonkiDirector/DonkiOrchestraLib.py
ess-dmsc/do-ess-data-simulator
37ef0d87ad0152b092e3a636ef8d080db0711aaa
[ "BSD-2-Clause" ]
null
null
null
import zmq import traceback import socket import time class CommunicationClass: def __init__(self, name='director'): self.context = zmq.Context() self.poller = zmq.Poller() self.pub_sock = None self.sub_socks = {} self.pub_tag = name # self.create_pub_socket(...
38.061856
85
0.401002
ecba3f40d7e24426706982e2d2fe940b464ca8f6
1,906
py
Python
tensorflow_federated/python/aggregators/factory.py
iahsanujunda/federated
109a5653a305dc9d4bcbafc259257add4dc70365
[ "Apache-2.0" ]
null
null
null
tensorflow_federated/python/aggregators/factory.py
iahsanujunda/federated
109a5653a305dc9d4bcbafc259257add4dc70365
[ "Apache-2.0" ]
null
null
null
tensorflow_federated/python/aggregators/factory.py
iahsanujunda/federated
109a5653a305dc9d4bcbafc259257add4dc70365
[ "Apache-2.0" ]
null
null
null
# Copyright 2020, The TensorFlow Federated Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
38.897959
80
0.752886
a578be22e1860695f55b8437bdc117528083ab27
7,508
py
Python
tfx/dsl/components/base/base_driver_test.py
Saiprasad16/tfx
c1e0704b2a83232469f55598efcdb7808b6c909f
[ "Apache-2.0" ]
1
2021-05-10T10:41:06.000Z
2021-05-10T10:41:06.000Z
tfx/dsl/components/base/base_driver_test.py
Saiprasad16/tfx
c1e0704b2a83232469f55598efcdb7808b6c909f
[ "Apache-2.0" ]
null
null
null
tfx/dsl/components/base/base_driver_test.py
Saiprasad16/tfx
c1e0704b2a83232469f55598efcdb7808b6c909f
[ "Apache-2.0" ]
null
null
null
# Lint as: python2, python3 # Copyright 2019 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 req...
39.93617
80
0.722829
f6bffc41805c6e6524a5569d6db64273a9eb42f6
4,397
py
Python
bot3.py
ankitp544/ZulipBot
83806be3182a83f8dc2ccbe5a9b9caea6437afa3
[ "Apache-2.0" ]
null
null
null
bot3.py
ankitp544/ZulipBot
83806be3182a83f8dc2ccbe5a9b9caea6437afa3
[ "Apache-2.0" ]
null
null
null
bot3.py
ankitp544/ZulipBot
83806be3182a83f8dc2ccbe5a9b9caea6437afa3
[ "Apache-2.0" ]
null
null
null
import pprint import zulip import sys import re import json from random import randrange import requests from textblob import TextBlob from random import shuffle, choice import sem BOT_MAIL = "bruh-bot@chiru.zulipchat.com" class ZulipBot(object): def __init__(self): self.client = zulip.Client(site="https://chiru....
28.927632
106
0.656357
a461ecf6ced0b525bb77409952c9ae1f151aca6e
4,851
py
Python
studies/upgrade_neutrino_reconstruction/modelling/train_model.py
BozianuLeon/graphnet
54c41a9486ba35fa3700c5ade3fddd69620bc721
[ "Apache-2.0" ]
null
null
null
studies/upgrade_neutrino_reconstruction/modelling/train_model.py
BozianuLeon/graphnet
54c41a9486ba35fa3700c5ade3fddd69620bc721
[ "Apache-2.0" ]
1
2022-03-15T11:01:47.000Z
2022-03-15T11:01:47.000Z
studies/upgrade_neutrino_reconstruction/modelling/train_model.py
BozianuLeon/graphnet
54c41a9486ba35fa3700c5ade3fddd69620bc721
[ "Apache-2.0" ]
null
null
null
import logging import os from timer import timer from pytorch_lightning import Trainer from pytorch_lightning.callbacks import EarlyStopping from pytorch_lightning.loggers import WandbLogger import torch from torch.optim.adam import Adam from graphnet.components.loss_functions import ( LogCoshLoss, VonMisesFi...
26.508197
141
0.661101
848cbe3a4e3f31640965f85e2ed00b82bde9802e
639
py
Python
package_monitor/migrations/0003_packageversion_next_version.py
yunojuno-archive/django-package-monitor
5e387c1274b707050dcb441dbfd5b6c0aa7c57dc
[ "MIT" ]
4
2019-07-22T18:28:26.000Z
2020-08-03T15:06:33.000Z
package_monitor/migrations/0003_packageversion_next_version.py
yunojuno-archive/django-package-monitor
5e387c1274b707050dcb441dbfd5b6c0aa7c57dc
[ "MIT" ]
4
2020-09-12T12:15:02.000Z
2020-09-13T09:38:26.000Z
package_monitor/migrations/0003_packageversion_next_version.py
yunojuno-archive/django-package-monitor
5e387c1274b707050dcb441dbfd5b6c0aa7c57dc
[ "MIT" ]
2
2019-07-22T18:50:54.000Z
2020-06-30T03:19:03.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals import semantic_version.django_fields from django.db import migrations class Migration(migrations.Migration): dependencies = [ ("package_monitor", "0002_auto_20151126_1453"), ] operations = [ migrations.AddField( ...
24.576923
72
0.597809
3919aefd2e49bc4d43f2525a3237106ebfab6004
1,655
py
Python
icc/mongodb-example.py
jinhopark8345/ICC
be0ee8fb36399b156427749c867d64524dff786e
[ "MIT" ]
null
null
null
icc/mongodb-example.py
jinhopark8345/ICC
be0ee8fb36399b156427749c867d64524dff786e
[ "MIT" ]
7
2020-09-28T07:17:58.000Z
2020-11-25T08:00:08.000Z
icc/mongodb-example.py
jinhopark8345/icc
be0ee8fb36399b156427749c867d64524dff786e
[ "MIT" ]
null
null
null
# https://stackoverflow.com/questions/61074297/how-to-create-schema-in-mongodb-using-python from pymongo import MongoClient from pymongo.errors import CollectionInvalid from collections import OrderedDict # db = MongoClient("mongodb://localhost:27019/")['mydatabase'] db = MongoClient("localhost")['test'] user_schema...
22.671233
91
0.586103
b9d2ffe6ed2fa269a38c6160d63c6feb0461776b
6,254
py
Python
tests/test_click.py
InvestWeMust/lean-cli
a7241a0af6202dc7d56c0f35d09e51798cc5d426
[ "Apache-2.0" ]
76
2021-02-03T02:32:32.000Z
2022-03-28T17:04:03.000Z
tests/test_click.py
InvestWeMust/lean-cli
a7241a0af6202dc7d56c0f35d09e51798cc5d426
[ "Apache-2.0" ]
64
2021-02-28T23:14:17.000Z
2022-03-30T23:22:24.000Z
tests/test_click.py
InvestWeMust/lean-cli
a7241a0af6202dc7d56c0f35d09e51798cc5d426
[ "Apache-2.0" ]
50
2021-02-11T01:25:24.000Z
2022-03-17T03:56:29.000Z
# QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. # Lean CLI v1.0. Copyright 2021 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 License at http://www.apache...
30.21256
114
0.713783
8cc739fefc22fd6323802ad6b7676ff7da7c74d1
3,164
py
Python
HFSS-tests.py
jsidabras/GA-PMR
d0dbe823b5873e2a05176d405c42f0396c38f480
[ "MIT" ]
null
null
null
HFSS-tests.py
jsidabras/GA-PMR
d0dbe823b5873e2a05176d405c42f0396c38f480
[ "MIT" ]
null
null
null
HFSS-tests.py
jsidabras/GA-PMR
d0dbe823b5873e2a05176d405c42f0396c38f480
[ "MIT" ]
null
null
null
# ---------------------------------------------- # Script Written by Jason W. Sidabras (jason.sidabras@cec.mpg.de) # requires jsidabras/hycohanz as of 20-04-2017 # 20-04-2017: script runs 3m00s for 2490 element change. Hfss-Region # (Model/NonModel change) Vacuum can produce non-solvable geometries. Meshed 1 pass ...
31.959596
186
0.647914
5c491472dac56e65e28b6b6c7de60ae7a3865a38
2,221
py
Python
testinfra/backend/salt.py
smarlowucf/pytest-testinfra
468f1d002a1d5903d9063c4a4155594aff05d794
[ "Apache-2.0" ]
null
null
null
testinfra/backend/salt.py
smarlowucf/pytest-testinfra
468f1d002a1d5903d9063c4a4155594aff05d794
[ "Apache-2.0" ]
null
null
null
testinfra/backend/salt.py
smarlowucf/pytest-testinfra
468f1d002a1d5903d9063c4a4155594aff05d794
[ "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 # distributed under th...
34.703125
82
0.615038
91150271775e1bcf188908a5352023d285ea5e40
363
py
Python
src/python_package/__init__.py
microsoft/ai-python-package
770f5167ebc32b5410739f04c5730e68f84785c9
[ "MIT" ]
3
2021-12-11T17:02:56.000Z
2022-02-23T19:45:35.000Z
src/python_package/__init__.py
microsoft/ai-python-package
770f5167ebc32b5410739f04c5730e68f84785c9
[ "MIT" ]
5
2022-03-24T13:21:21.000Z
2022-03-31T13:21:39.000Z
src/python_package/__init__.py
microsoft/python-package-template
770f5167ebc32b5410739f04c5730e68f84785c9
[ "MIT" ]
null
null
null
# ------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See LICENSE in project root for information. # ------------------------------------------------------------- """Python Package Template""" from __future__...
40.333333
80
0.484848
77effa961f64acaefcd2d4dc9d0ee220f0605d74
3,891
py
Python
textmining/firstname.py
michelcaradec/textmining
b8261730e2205d8c988fdbaea27e11025bb66b68
[ "MIT" ]
null
null
null
textmining/firstname.py
michelcaradec/textmining
b8261730e2205d8c988fdbaea27e11025bb66b68
[ "MIT" ]
null
null
null
textmining/firstname.py
michelcaradec/textmining
b8261730e2205d8c988fdbaea27e11025bb66b68
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- import os import codecs import utils from singleton import Singleton from firstnameinfo import FirstNameInfo class FirstName(Singleton): """ First name manipulation class. """ count_threshold = 0 """First name count threshold""" year_threshold = 0 ...
26.469388
93
0.583912
38943f437c9cbba19cd112b4b3411076e45d39d2
208
py
Python
pages/urls.py
NizarAlsaeed/blogx
6e834c6553010074d18243a64693e749e59a41c5
[ "MIT" ]
null
null
null
pages/urls.py
NizarAlsaeed/blogx
6e834c6553010074d18243a64693e749e59a41c5
[ "MIT" ]
null
null
null
pages/urls.py
NizarAlsaeed/blogx
6e834c6553010074d18243a64693e749e59a41c5
[ "MIT" ]
null
null
null
from django.urls import path from .views import HomePageView, AboutPageView urlpatterns = [ # path('', HomePageView.as_view(), name='home'), path('about/', AboutPageView.as_view(), name='about'), ]
23.111111
58
0.692308
09154f715c718aa9ce03a606ae941c1521983c90
2,550
py
Python
clients/python/tyckiting_client/ai/myai.py
HimanshuSingal/space_mission
7d032f02b6144f412e23cd012d87965f68484fea
[ "MIT" ]
null
null
null
clients/python/tyckiting_client/ai/myai.py
HimanshuSingal/space_mission
7d032f02b6144f412e23cd012d87965f68484fea
[ "MIT" ]
null
null
null
clients/python/tyckiting_client/ai/myai.py
HimanshuSingal/space_mission
7d032f02b6144f412e23cd012d87965f68484fea
[ "MIT" ]
null
null
null
import random from tyckiting_client.ai import base from tyckiting_client import actions class Ai(base.BaseAi): a = 0 wait_list = [] def move(self, bots, events): """ Move the bot to a random legal positon. Args: bots: List of bot states for own team event...
28.977273
82
0.512941
674d528199f5c0fc975fc3e3bb94ed21883bc0b4
10,335
py
Python
screens.py
lutre69/ProjectZ
09209883df16ce8588cfa2653b25e1fefab6800c
[ "MIT" ]
1
2020-02-04T07:32:58.000Z
2020-02-04T07:32:58.000Z
screens.py
lutre69/ProjectZ
09209883df16ce8588cfa2653b25e1fefab6800c
[ "MIT" ]
null
null
null
screens.py
lutre69/ProjectZ
09209883df16ce8588cfa2653b25e1fefab6800c
[ "MIT" ]
null
null
null
from kivy.uix.screenmanager import Screen from kivy.uix.gridlayout import GridLayout from kivy.uix.label import Label from kivy.uix.popup import Popup from kivy.properties import ObjectProperty from popups import ConfirmPopup from functools import partial import time class StartScreen(Screen): app_obj = ObjectPro...
39.446565
78
0.551524