hexsha
stringlengths
40
40
size
int64
2
1.02M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
245
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
245
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
245
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
40
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
2
1.02M
avg_line_length
float64
1
958k
max_line_length
int64
1
987k
alphanum_fraction
float64
0
1
content_no_comment
stringlengths
0
1.01M
is_comment_constant_removed
bool
2 classes
is_sharp_comment_removed
bool
1 class
f73889eefdaf5142fa18e7f573ffd713f576ac95
6,243
py
Python
tests/core/util/test_keychain.py
yuanliuus/thyme-blockchain
9ea5cddc78f601fcbe77101d74147cf8190e423d
[ "Apache-2.0" ]
6
2021-06-30T13:03:47.000Z
2021-07-10T12:46:37.000Z
tests/core/util/test_keychain.py
yuanliuus/thyme-blockchain
9ea5cddc78f601fcbe77101d74147cf8190e423d
[ "Apache-2.0" ]
8
2021-07-01T15:45:09.000Z
2021-09-08T04:30:46.000Z
tests/core/util/test_keychain.py
yuanliuus/thyme-blockchain
9ea5cddc78f601fcbe77101d74147cf8190e423d
[ "Apache-2.0" ]
11
2021-07-03T17:30:57.000Z
2022-03-15T08:47:03.000Z
import json import unittest from secrets import token_bytes from blspy import AugSchemeMPL, PrivateKey from thyme.util.keychain import Keychain, bytes_from_mnemonic, bytes_to_mnemonic, generate_mnemonic, mnemonic_to_seed class TesKeychain(unittest.TestCase): def test_basic_add_delete(self): kc: Keychain...
51.595041
278
0.707833
import json import unittest from secrets import token_bytes from blspy import AugSchemeMPL, PrivateKey from thyme.util.keychain import Keychain, bytes_from_mnemonic, bytes_to_mnemonic, generate_mnemonic, mnemonic_to_seed class TesKeychain(unittest.TestCase): def test_basic_add_delete(self): kc: Keychain...
true
true
f73889fd6a9ba5321c99288f50c62740c1329694
20,345
py
Python
qiskit/compiler/assemble.py
wagnersj/qiskit-terra
8636502a832ee5c63a26f66c9669c88a1149e432
[ "Apache-2.0" ]
null
null
null
qiskit/compiler/assemble.py
wagnersj/qiskit-terra
8636502a832ee5c63a26f66c9669c88a1149e432
[ "Apache-2.0" ]
null
null
null
qiskit/compiler/assemble.py
wagnersj/qiskit-terra
8636502a832ee5c63a26f66c9669c88a1149e432
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2017, 2019. # # 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...
49.142512
100
0.646891
import uuid import copy import logging import warnings from time import time from typing import Union, List, Dict, Optional from qiskit.circuit import QuantumCircuit, Qubit, Parameter from qiskit.exceptions import QiskitError from qiskit.pulse import ScheduleComponent, LoConfig from qiskit.assembler.run_c...
true
true
f7388a06dbdae2eaa3784a579a31cb9b67ebaeac
682
py
Python
app/core/migrations/0002_tag.py
Y-Chishiro/recipe-app-api
85bbfbef47587898895c7b34f2444bc0b2717838
[ "MIT" ]
null
null
null
app/core/migrations/0002_tag.py
Y-Chishiro/recipe-app-api
85bbfbef47587898895c7b34f2444bc0b2717838
[ "MIT" ]
null
null
null
app/core/migrations/0002_tag.py
Y-Chishiro/recipe-app-api
85bbfbef47587898895c7b34f2444bc0b2717838
[ "MIT" ]
null
null
null
# Generated by Django 3.1.4 on 2020-12-12 06:48 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.416667
118
0.615836
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( name='Tag', fields=[ ...
true
true
f7388a32d6244a9ebc6e8ed203770f2a545ec410
4,167
py
Python
sdk/operationsmanagement/azure-mgmt-operationsmanagement/azure/mgmt/operationsmanagement/aio/_configuration.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/operationsmanagement/azure-mgmt-operationsmanagement/azure/mgmt/operationsmanagement/aio/_configuration.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/operationsmanagement/azure-mgmt-operationsmanagement/azure/mgmt/operationsmanagement/aio/_configuration.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.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 ...
48.453488
177
0.700504
from typing import Any, TYPE_CHECKING from azure.core.configuration import Configuration from azure.core.pipeline import policies from azure.mgmt.core.policies import ARMHttpLoggingPolicy from .._version import VERSION if TYPE_CHECKING: from azure.core.credentials_async import AsyncTokenCredential ...
true
true
f7388ad7e6f554b4412b475060f4aa97cc9d185e
6,409
py
Python
tools/wptrunner/wptrunner/browsers/base.py
jimmywarting/wpt
75d80fa43c763935dff59b3c6b21f4dffa9b03b7
[ "BSD-3-Clause" ]
575
2015-06-18T23:58:20.000Z
2022-03-23T09:32:39.000Z
tools/wptrunner/wptrunner/browsers/base.py
jimmywarting/wpt
75d80fa43c763935dff59b3c6b21f4dffa9b03b7
[ "BSD-3-Clause" ]
113
2015-05-04T09:58:14.000Z
2022-01-31T19:35:03.000Z
tools/wptrunner/wptrunner/browsers/base.py
almajlis/wpt
a1d4dd189a5bdca857845b374946b8002c41d199
[ "BSD-3-Clause" ]
52
2015-07-14T10:40:50.000Z
2022-03-15T01:11:49.000Z
import os import platform import socket from abc import ABCMeta, abstractmethod from copy import deepcopy from ..wptcommandline import require_arg # noqa: F401 here = os.path.dirname(__file__) def inherit(super_module, child_globals, product_name): super_wptrunner = super_module.__wptrunner__ child_globals...
30.519048
99
0.660633
import os import platform import socket from abc import ABCMeta, abstractmethod from copy import deepcopy from ..wptcommandline import require_arg here = os.path.dirname(__file__) def inherit(super_module, child_globals, product_name): super_wptrunner = super_module.__wptrunner__ child_globals["__wptrunne...
true
true
f7388b96d6e7b06494d6da8401c197fda18dab4b
3,942
py
Python
source/fraud_detection/index.py
ldomb/fraud-detection-using-machine-learning
925f838d78f0e40b6a0c7d27d2bb38b8001c2ad7
[ "Apache-2.0" ]
13
2019-09-30T04:40:53.000Z
2021-08-17T00:31:58.000Z
source/fraud_detection/index.py
ldomb/fraud-detection-using-machine-learning
925f838d78f0e40b6a0c7d27d2bb38b8001c2ad7
[ "Apache-2.0" ]
null
null
null
source/fraud_detection/index.py
ldomb/fraud-detection-using-machine-learning
925f838d78f0e40b6a0c7d27d2bb38b8001c2ad7
[ "Apache-2.0" ]
14
2019-09-18T12:04:53.000Z
2021-09-28T07:08:13.000Z
############################################################################## # Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # # # Licensed under the Amazon Software License (the "License"). You may not # # u...
55.521127
161
0.58346
true
true
f7388e0d13624cb560384478f92976049c90672f
12,276
py
Python
akshare/option/option_commodity.py
ghmole/akshare
eeeec96f90c6738bcd9ce92fcfa6b9c9176928a6
[ "MIT" ]
12
2020-12-30T02:50:01.000Z
2021-11-08T11:32:51.000Z
akshare/option/option_commodity.py
ghmole/akshare
eeeec96f90c6738bcd9ce92fcfa6b9c9176928a6
[ "MIT" ]
null
null
null
akshare/option/option_commodity.py
ghmole/akshare
eeeec96f90c6738bcd9ce92fcfa6b9c9176928a6
[ "MIT" ]
5
2020-12-31T01:31:48.000Z
2021-07-17T15:54:03.000Z
# -*- coding:utf-8 -*- # /usr/bin/env python """ Date: 2021/1/14 20:50 Desc: 商品期权数据 说明: (1) 价格:自2019年12月02日起,纤维板报价单位由元/张改为元/立方米 (2) 价格:元/吨,鸡蛋为元/500千克,纤维板为元/立方米,胶合板为元/张 (3) 成交量、持仓量:手(按双边计算) (4) 成交额:万元(按双边计算) (5) 涨跌=收盘价-前结算价 (6) 涨跌1=今结算价-前结算价 (7) 合约系列:具有相同月份标的期货合约的所有期权合约的统称 (8) 隐含波动率:根据期权市场价格,利用期权定价模型计算的标的期货合约价格波动率 """ i...
39.095541
118
0.463587
import datetime import warnings from io import StringIO, BytesIO import requests import pandas as pd from akshare.option.cons import ( get_calendar, convert_date, DCE_DAILY_OPTION_URL, SHFE_OPTION_URL, CZCE_DAILY_OPTION_URL_3, SHFE_HEADERS, ) def get_dce_option_daily(trade_date="20200817",...
true
true
f7388e4bd0b2d195926289caa4bb2bb37ec68d7b
676
py
Python
lib-python/modified-2.4.1/encodings/raw_unicode_escape.py
camillobruni/pygirl
ddbd442d53061d6ff4af831c1eab153bcc771b5a
[ "MIT" ]
12
2016-01-06T07:10:28.000Z
2021-05-13T23:02:02.000Z
lib-python/modified-2.4.1/encodings/raw_unicode_escape.py
camillobruni/pygirl
ddbd442d53061d6ff4af831c1eab153bcc771b5a
[ "MIT" ]
null
null
null
lib-python/modified-2.4.1/encodings/raw_unicode_escape.py
camillobruni/pygirl
ddbd442d53061d6ff4af831c1eab153bcc771b5a
[ "MIT" ]
2
2016-07-29T07:09:50.000Z
2016-10-16T08:50:26.000Z
""" Python 'raw-unicode-escape' Codec Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. """ import codecs ### Codec APIs class Codec(codecs.Codec): # Note: Binding these as C functions will result in the class not # converting them to methods. This is ...
21.806452
69
0.748521
import codecs c): encode = staticmethod(codecs.raw_unicode_escape_encode) decode = staticmethod(codecs.raw_unicode_escape_decode) class StreamWriter(Codec,codecs.StreamWriter): pass class StreamReader(Codec,codecs.StreamReader): pass e,Codec.decode,StreamReader,StreamWriter)
true
true
f7388e882f1c8dc07674770a9c19d61c63f93aa8
559
py
Python
locking/urls.py
ZG-Tennis/django-locking
2f10ff5b787d0de471ddb8bfa54cb70126b85f77
[ "BSD-2-Clause-FreeBSD" ]
21
2015-01-27T16:49:48.000Z
2021-12-05T09:41:56.000Z
locking/urls.py
ZG-Tennis/django-locking
2f10ff5b787d0de471ddb8bfa54cb70126b85f77
[ "BSD-2-Clause-FreeBSD" ]
4
2015-01-26T21:53:49.000Z
2015-05-16T22:34:26.000Z
locking/urls.py
ZG-Tennis/django-locking
2f10ff5b787d0de471ddb8bfa54cb70126b85f77
[ "BSD-2-Clause-FreeBSD" ]
4
2015-11-23T19:10:20.000Z
2018-01-09T00:25:03.000Z
from django.conf.urls.defaults import * urlpatterns = patterns('locking.views', # verwijst naar een ajax-view voor het lockingmechanisme (r'(?P<app>[\w-]+)/(?P<model>[\w-]+)/(?P<id>\d+)/lock/$', 'lock'), (r'(?P<app>[\w-]+)/(?P<model>[\w-]+)/(?P<id>\d+)/unlock/$', 'unlock'), (r'(?P<app>[\w-]+)/(?P<model...
43
83
0.561717
from django.conf.urls.defaults import * urlpatterns = patterns('locking.views', (r'(?P<app>[\w-]+)/(?P<model>[\w-]+)/(?P<id>\d+)/lock/$', 'lock'), (r'(?P<app>[\w-]+)/(?P<model>[\w-]+)/(?P<id>\d+)/unlock/$', 'unlock'), (r'(?P<app>[\w-]+)/(?P<model>[\w-]+)/(?P<id>\d+)/is_locked/$', 'is_locked'), (r'...
true
true
f7388f3e868b6143d0048c4ef7eddde44943c9a8
10,219
py
Python
bootstrap.py
RileyGibbs/django-emailmgr
82dae79aceab20ac2146103067d31b01ee51731a
[ "BSD-3-Clause" ]
null
null
null
bootstrap.py
RileyGibbs/django-emailmgr
82dae79aceab20ac2146103067d31b01ee51731a
[ "BSD-3-Clause" ]
null
null
null
bootstrap.py
RileyGibbs/django-emailmgr
82dae79aceab20ac2146103067d31b01ee51731a
[ "BSD-3-Clause" ]
1
2019-10-17T19:37:14.000Z
2019-10-17T19:37:14.000Z
############################################################################## # # Copyright (c) 2006 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOF...
38.708333
132
0.643996
the default working set. We will # do it. for path in sys.path: if path not in pkg_resources.working_set.entries: pkg_resources.working_set.add_entry(path) cmd = [quote(sys.executable), '-c', quote('from setuptools.command.easy_install import main; main()'), '-mqNxd',...
true
true
f73890c6457ba003e6dfaf3adf5139ae6bd61634
783
py
Python
multi_linugual_chatbot/offline_chat.py
HrushikeshShukla/multilingual_chatbot
696b403ef4e5482e2f670924b557dd17375fc5a9
[ "Apache-2.0" ]
null
null
null
multi_linugual_chatbot/offline_chat.py
HrushikeshShukla/multilingual_chatbot
696b403ef4e5482e2f670924b557dd17375fc5a9
[ "Apache-2.0" ]
null
null
null
multi_linugual_chatbot/offline_chat.py
HrushikeshShukla/multilingual_chatbot
696b403ef4e5482e2f670924b557dd17375fc5a9
[ "Apache-2.0" ]
null
null
null
lang=['en','mr'] #defining the languages print("***Welcome to multilinugal chatbot.***") print("***बहुभाषिक ​​चॅटबॉटमध्ये आपले स्वागत आहे.***") print("\n \nPlease Select language:\nकृपया भाषा निवडा:") indx=int(input("\nPress 1 for english, मराठीसाठी 2 दाबा: ")) if indx==2: from mbot import chat print("starting ma...
27.964286
60
0.641124
lang=['en','mr'] print("***Welcome to multilinugal chatbot.***") print("***बहुभाषिक ​​चॅटबॉटमध्ये आपले स्वागत आहे.***") print("\n \nPlease Select language:\nकृपया भाषा निवडा:") indx=int(input("\nPress 1 for english, मराठीसाठी 2 दाबा: ")) if indx==2: from mbot import chat print("starting marathi version.") prin...
true
true
f738911d788f2c0904e06435d327d83b0a4b94bd
27,305
py
Python
pycorrector/transformers/models/bert_generation/modeling_bert_generation.py
xinjianlv/pycorrector
697fc09032d129b2777cf686bb05663f2fc3c04f
[ "Apache-2.0" ]
null
null
null
pycorrector/transformers/models/bert_generation/modeling_bert_generation.py
xinjianlv/pycorrector
697fc09032d129b2777cf686bb05663f2fc3c04f
[ "Apache-2.0" ]
null
null
null
pycorrector/transformers/models/bert_generation/modeling_bert_generation.py
xinjianlv/pycorrector
697fc09032d129b2777cf686bb05663f2fc3c04f
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2020 The Google AI Language Team Authors and The HuggingFace Inc. team. # # 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/LICEN...
47.158895
213
0.672587
import torch import torch.utils.checkpoint from torch import nn from torch.nn import CrossEntropyLoss from ...file_utils import ( add_code_sample_docstrings, add_start_docstrings, add_start_docstrings_to_model_forward, replace_return_docstrings, ) from ...modeling_outputs import BaseMod...
true
true
f738915be11f76308153be10d6c77fe1d1a29212
13,254
py
Python
PyYaMusic/track.py
AlexRoar/YaMusic-Python
d709f8920ab4c66dafae9b5bcb8e623512d60b3a
[ "MIT" ]
2
2020-07-14T08:15:34.000Z
2020-08-25T07:13:25.000Z
PyYaMusic/track.py
AlexRoar/YaMusic-Python
d709f8920ab4c66dafae9b5bcb8e623512d60b3a
[ "MIT" ]
null
null
null
PyYaMusic/track.py
AlexRoar/YaMusic-Python
d709f8920ab4c66dafae9b5bcb8e623512d60b3a
[ "MIT" ]
null
null
null
# Copyright (c) 2019. # Designed and codded with love by Aleksander Dremov # # import json import random from PyYaMusic import obfuscYandex from mutagen.mp3 import MP3 from mutagen.id3 import ID3, APIC, error, USLT, TCON, TDRC from mutagen.easyid3 import EasyID3 import os, urllib.parse from pydub import AudioSegment...
38.086207
154
0.514411
import json import random from PyYaMusic import obfuscYandex from mutagen.mp3 import MP3 from mutagen.id3 import ID3, APIC, error, USLT, TCON, TDRC from mutagen.easyid3 import EasyID3 import os, urllib.parse from pydub import AudioSegment from pydub.playback import play import requests class Track: def __ini...
true
true
f73891686c1bc1c1b3e745479b93018789e8326b
3,355
py
Python
xyz/tree.py
mrzl/Composition37XY
92214b080666930c5643972cdbe9ddd856a64650
[ "MIT" ]
67
2015-12-27T09:22:39.000Z
2022-01-23T14:26:11.000Z
xyz/tree.py
mrzl/Composition37XY
92214b080666930c5643972cdbe9ddd856a64650
[ "MIT" ]
4
2016-02-06T17:46:51.000Z
2018-02-26T00:31:34.000Z
xyz/tree.py
mrzl/Composition37XY
92214b080666930c5643972cdbe9ddd856a64650
[ "MIT" ]
14
2015-12-25T12:52:08.000Z
2020-03-16T20:52:44.000Z
class Tree(object): def __init__(self, shapes): self.root = Node(shapes) self.root.split() def intersect(self, o, d, tmin, tmax): return self.root.intersect(o, d, tmin, tmax) class Node(object): def __init__(self, shapes): self.shapes = shapes self.axis = None ...
29.690265
68
0.469747
class Tree(object): def __init__(self, shapes): self.root = Node(shapes) self.root.split() def intersect(self, o, d, tmin, tmax): return self.root.intersect(o, d, tmin, tmax) class Node(object): def __init__(self, shapes): self.shapes = shapes self.axis = None ...
true
true
f738916df25cc5631054f7f6c953ee8ea8fa49b8
5,787
py
Python
king_phisher/client/dialogs/login.py
chachabooboo/king-phisher
8a91b9043de0f12b5cad9a5f1d64ebd0179a6c4d
[ "BSD-3-Clause" ]
1,143
2015-01-12T15:05:16.000Z
2020-04-12T16:10:19.000Z
king_phisher/client/dialogs/login.py
chachabooboo/king-phisher
8a91b9043de0f12b5cad9a5f1d64ebd0179a6c4d
[ "BSD-3-Clause" ]
399
2015-01-22T15:20:03.000Z
2020-04-08T23:01:46.000Z
king_phisher/client/dialogs/login.py
chachabooboo/king-phisher
8a91b9043de0f12b5cad9a5f1d64ebd0179a6c4d
[ "BSD-3-Clause" ]
351
2015-02-02T21:39:38.000Z
2020-03-21T11:45:20.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # king_phisher/client/dialogs/login.py # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # not...
35.286585
131
0.762744
import functools from king_phisher.client import gui_utilities from king_phisher.client.dialogs import about from king_phisher.client.widget import extras from king_phisher.client.widget import managers from gi.repository import Gdk from gi.repository import Gtk __all__ = ('LoginDialo...
true
true
f7389198d497633059e288fdbf1378847c4c40e9
4,604
py
Python
examples/functional_api/chapter_4.py
Ankur3107/zenml
5dc05a833b50ac9cc49e851b9d91255da6016dfd
[ "Apache-2.0" ]
null
null
null
examples/functional_api/chapter_4.py
Ankur3107/zenml
5dc05a833b50ac9cc49e851b9d91255da6016dfd
[ "Apache-2.0" ]
null
null
null
examples/functional_api/chapter_4.py
Ankur3107/zenml
5dc05a833b50ac9cc49e851b9d91255da6016dfd
[ "Apache-2.0" ]
null
null
null
# Copyright (c) ZenML GmbH 2021. 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: # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
26.767442
80
0.695482
import numpy as np import tensorflow as tf from sklearn.base import ClassifierMixin from sklearn.linear_model import LogisticRegression from zenml.integrations.constants import SKLEARN, TENSORFLOW from zenml.pipelines import pipeline from zenml.repository import Repository from zenml.steps import BaseSte...
true
true
f73891b1258a8876018ed3b5faf7baa984f7619a
58,385
py
Python
ThirdParty/Twisted/twisted/web/_newclient.py
jasper-yeh/VtkDotNet
84b56f781cb511694e4380cebfb245bbefe2560b
[ "BSD-3-Clause" ]
3
2020-06-20T23:31:06.000Z
2021-01-11T02:17:16.000Z
ThirdParty/Twisted/twisted/web/_newclient.py
jasper-yeh/VtkDotNet
84b56f781cb511694e4380cebfb245bbefe2560b
[ "BSD-3-Clause" ]
null
null
null
ThirdParty/Twisted/twisted/web/_newclient.py
jasper-yeh/VtkDotNet
84b56f781cb511694e4380cebfb245bbefe2560b
[ "BSD-3-Clause" ]
1
2021-12-02T07:29:15.000Z
2021-12-02T07:29:15.000Z
# -*- test-case-name: twisted.web.test.test_newclient -*- # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ An U{HTTP 1.1<http://www.w3.org/Protocols/rfc2616/rfc2616.html>} client. The way to use the functionality provided by this module is to: - Connect a L{HTTP11ClientProtocol} to an HT...
36.286513
92
0.628295
""" An U{HTTP 1.1<http://www.w3.org/Protocols/rfc2616/rfc2616.html>} client. The way to use the functionality provided by this module is to: - Connect a L{HTTP11ClientProtocol} to an HTTP server - Create a L{Request} with the appropriate data - Pass the request to L{HTTP11ClientProtocol.request} - The ret...
false
true
f738928eed8d844a1268df7a89e8ce633f758e55
1,296
py
Python
scripts/4_similarity.py
ersilia-os/osm-series4-candidates-2
a0b7f55d79c65182dcc4c102791d2ababbfb176e
[ "MIT" ]
1
2021-07-23T14:57:30.000Z
2021-07-23T14:57:30.000Z
scripts/4_similarity.py
ersilia-os/osm-series4-candidates-2
a0b7f55d79c65182dcc4c102791d2ababbfb176e
[ "MIT" ]
null
null
null
scripts/4_similarity.py
ersilia-os/osm-series4-candidates-2
a0b7f55d79c65182dcc4c102791d2ababbfb176e
[ "MIT" ]
null
null
null
from __init__ import OUTPUT from tqdm import tqdm import pandas as pd import numpy as np from rdkit import Chem from rdkit.Chem import AllChem from rdkit.DataStructs import BulkTanimotoSimilarity import os, sys print("SIMILARITY SCORES") def mols_to_fingerprints(molecules, radius=3, useCounts=False, useFeatures=True...
28.173913
90
0.733025
from __init__ import OUTPUT from tqdm import tqdm import pandas as pd import numpy as np from rdkit import Chem from rdkit.Chem import AllChem from rdkit.DataStructs import BulkTanimotoSimilarity import os, sys print("SIMILARITY SCORES") def mols_to_fingerprints(molecules, radius=3, useCounts=False, useFeatures=True...
true
true
f73892c10f8e2431f7809355be6604ff30a63386
1,106
py
Python
caches/importer.py
AndreMiras/async-caches
d87ffc4d154617acc1622e21db536d9062be8cc4
[ "BSD-3-Clause" ]
29
2019-07-14T15:07:47.000Z
2022-03-20T14:41:14.000Z
caches/importer.py
AndreMiras/async-caches
d87ffc4d154617acc1622e21db536d9062be8cc4
[ "BSD-3-Clause" ]
11
2019-07-14T03:29:08.000Z
2021-06-13T11:27:30.000Z
caches/importer.py
AndreMiras/async-caches
d87ffc4d154617acc1622e21db536d9062be8cc4
[ "BSD-3-Clause" ]
4
2019-11-03T18:27:41.000Z
2021-05-19T07:55:33.000Z
import importlib from typing import Any class ImportFromStringError(Exception): pass def import_from_string(import_str: str) -> Any: module_str, _, attrs_str = import_str.partition(":") if not module_str or not attrs_str: message = ( 'Import string "{import_str}" must be in format "<...
30.722222
84
0.66094
import importlib from typing import Any class ImportFromStringError(Exception): pass def import_from_string(import_str: str) -> Any: module_str, _, attrs_str = import_str.partition(":") if not module_str or not attrs_str: message = ( 'Import string "{import_str}" must be in format "<...
true
true
f73892c4d95ebb75d3f233eeabc4bc6f86c071a8
2,442
py
Python
python/slack_types/rtm_api/file_public_event.py
warrenseine/slack-types
19e280aa43186ab4b9126ac6891f43cac22d3aaf
[ "MIT" ]
null
null
null
python/slack_types/rtm_api/file_public_event.py
warrenseine/slack-types
19e280aa43186ab4b9126ac6891f43cac22d3aaf
[ "MIT" ]
null
null
null
python/slack_types/rtm_api/file_public_event.py
warrenseine/slack-types
19e280aa43186ab4b9126ac6891f43cac22d3aaf
[ "MIT" ]
null
null
null
# To use this code, make sure you # # import json # # and then, to convert JSON from a string, do # # result = file_public_event_from_dict(json.loads(json_string)) from dataclasses import dataclass from typing import Optional, Any, TypeVar, Type, cast T = TypeVar("T") def from_str(x: Any) -> str: asser...
27.133333
88
0.640868
from dataclasses import dataclass from typing import Optional, Any, TypeVar, Type, cast T = TypeVar("T") def from_str(x: Any) -> str: assert isinstance(x, str) return x def from_none(x: Any) -> Any: assert x is None return x def from_union(fs, x): for f in fs: try: ...
true
true
f738930e77a762d27692c625571113f029d1504c
15,545
py
Python
endpoints/appr/models_cnr.py
syed/quay
3b94cda75180d1355046ed656490aa45f63ee479
[ "Apache-2.0" ]
null
null
null
endpoints/appr/models_cnr.py
syed/quay
3b94cda75180d1355046ed656490aa45f63ee479
[ "Apache-2.0" ]
null
null
null
endpoints/appr/models_cnr.py
syed/quay
3b94cda75180d1355046ed656490aa45f63ee479
[ "Apache-2.0" ]
null
null
null
from collections import namedtuple from datetime import datetime import cnr.semver from cnr.exception import raise_package_not_found, raise_channel_not_found, CnrException import features import data.model from app import app, storage, authentication, model_cache from data import appr_model from data import model a...
35.490868
100
0.632422
from collections import namedtuple from datetime import datetime import cnr.semver from cnr.exception import raise_package_not_found, raise_channel_not_found, CnrException import features import data.model from app import app, storage, authentication, model_cache from data import appr_model from data import model a...
true
true
f73893397861444506c7617568c6486458e910db
1,428
py
Python
planning/search.py
talhaHavadar/RobotLocalization
58f8347012d5d9690b2f742a4d692817673d602a
[ "MIT" ]
null
null
null
planning/search.py
talhaHavadar/RobotLocalization
58f8347012d5d9690b2f742a4d692817673d602a
[ "MIT" ]
null
null
null
planning/search.py
talhaHavadar/RobotLocalization
58f8347012d5d9690b2f742a4d692817673d602a
[ "MIT" ]
null
null
null
""" MIT License Copyright (c) 2017 Talha Can Havadar Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publ...
36.615385
78
0.755602
class Search(object): def __init__(self, map_, initial_pos, cost): self.map = map_ self.current_position = initial_pos self.cost = cost def set_map(self, map_): self.map = map_ def set_position(self, pos): self.current_position = pos
true
true
f73893503301d9004f6efa86764f40295f756317
5,667
py
Python
website/venv/lib/python2.7/site-packages/google/cloud/pubsub_v1/futures.py
wenhuiyang/ARgot
3fd1eacca6f81a3157649dda95ab427ca1f5efe1
[ "MIT" ]
null
null
null
website/venv/lib/python2.7/site-packages/google/cloud/pubsub_v1/futures.py
wenhuiyang/ARgot
3fd1eacca6f81a3157649dda95ab427ca1f5efe1
[ "MIT" ]
2
2021-02-08T20:18:59.000Z
2021-04-30T20:35:11.000Z
website/venv/lib/python2.7/site-packages/google/cloud/pubsub_v1/futures.py
wenhuiyang/ARgot
3fd1eacca6f81a3157649dda95ab427ca1f5efe1
[ "MIT" ]
null
null
null
# Copyright 2017, 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...
32.016949
79
0.630669
from __future__ import absolute_import import threading import google.api_core.future from google.cloud.pubsub_v1.publisher import exceptions class Future(google.api_core.future.Future): _SENTINEL = object() def __init__(self): self._result = self._SENTINEL self._exception = s...
true
true
f738949eb75771c3ce36937a0a251f1a66189fa0
1,851
py
Python
tessellation/tessellation.py
My-MindPalace/Tessellation
655cc34aa405e6fdd029f6cf073a846e0e9b7dd5
[ "Apache-2.0" ]
null
null
null
tessellation/tessellation.py
My-MindPalace/Tessellation
655cc34aa405e6fdd029f6cf073a846e0e9b7dd5
[ "Apache-2.0" ]
null
null
null
tessellation/tessellation.py
My-MindPalace/Tessellation
655cc34aa405e6fdd029f6cf073a846e0e9b7dd5
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ filename - tessellation.py author - MyMindPalace Description A Tessellation (or Tiling) is the act of covering a surface with a pattern of flat shapes so that there are no overlaps or gaps. Tessellations express fascinating geometric and symmetric properties as art, and famously...
22.301205
132
0.591032
tessellation_dimension = 0 tile_dimension = 0 tile = [] tess = [] def tessellation(): global tile,tessellation_dimension,tile_dimension tile_row = 0 tile_column = 0 print("Enter the tile") for i in range(tile_dimension): tile.append([]) for i in range(tile_dimension): ...
true
true
f7389511a27c7a3dfc1807776ab247fc893bfe60
4,443
py
Python
grmpy/read/read_auxiliary.py
OpenSourceEconomics/grmpy
13a262fb615c79829eb4869cbb6693c9c51fb101
[ "MIT" ]
18
2018-04-10T01:08:22.000Z
2022-02-23T02:37:24.000Z
grmpy/read/read_auxiliary.py
grmToolbox/grmpy
13a262fb615c79829eb4869cbb6693c9c51fb101
[ "MIT" ]
127
2017-08-02T13:29:26.000Z
2018-03-27T19:42:07.000Z
grmpy/read/read_auxiliary.py
SeBecker/grmpy
3ff5ec9cd108582c23cb61e6b8d87f4db6ceaee1
[ "MIT" ]
13
2018-04-28T09:46:22.000Z
2020-11-06T09:32:27.000Z
"""This module provides auxiliary functions for the import process of the init file.""" import numpy as np def create_attr_dict_est(init_dict, semipar=False, include_constant=False): """This function processes the imported initialization file so that it fulfills the requirements for the subsequent estimation ...
32.669118
87
0.625703
import numpy as np def create_attr_dict_est(init_dict, semipar=False, include_constant=False): init_dict["AUX"] = {"init_values"} init_values = [] if semipar is True: if include_constant is True: init_dict = add_constant(init_dict, semipar) else: pass init...
true
true
f738952d6e915761ad398d3ac89ddb1b3550e307
22,054
py
Python
tensorflow_hub/feature_column_test.py
mwizasimbeye11/hub
d743b0f14ee538e8bb50006895779b048d0f4db1
[ "Apache-2.0" ]
null
null
null
tensorflow_hub/feature_column_test.py
mwizasimbeye11/hub
d743b0f14ee538e8bb50006895779b048d0f4db1
[ "Apache-2.0" ]
null
null
null
tensorflow_hub/feature_column_test.py
mwizasimbeye11/hub
d743b0f14ee538e8bb50006895779b048d0f4db1
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The TensorFlow Hub 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 app...
39.382143
106
0.65657
from __future__ import absolute_import from __future__ import division from __future__ import print_function try: import mock as mock except ImportError: import unittest.mock as mock import os import numpy as np import tensorflow as tf import tensorflow_hub as hub from tensorflow_hub import tf_v...
true
true
f7389596bdb749b9575aff40037d9ad81d08005c
1,260
py
Python
qiskit/extensions/standard/x.py
jagunnels/qiskit-sdk-py
153cdde972e65c0f23675bbe17c93e18be27bd51
[ "Apache-2.0" ]
null
null
null
qiskit/extensions/standard/x.py
jagunnels/qiskit-sdk-py
153cdde972e65c0f23675bbe17c93e18be27bd51
[ "Apache-2.0" ]
null
null
null
qiskit/extensions/standard/x.py
jagunnels/qiskit-sdk-py
153cdde972e65c0f23675bbe17c93e18be27bd51
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2017, IBM. # # This source code is licensed under the Apache License, Version 2.0 found in # the LICENSE.txt file in the root directory of this source tree. # pylint: disable=invalid-name """ Pauli X (bit-flip) gate. """ from qiskit.circuit import CompositeGate from qiskit.circuit...
22.105263
77
0.603968
from qiskit.circuit import CompositeGate from qiskit.circuit import Gate from qiskit.circuit import QuantumCircuit from qiskit.circuit import QuantumRegister from qiskit.circuit.decorators import _op_expand from qiskit.qasm import pi from qiskit.extensions.standard.u3 import U3Gate class XGate(Gate): de...
true
true
f73897464eec5dfd237e31a4d8f787d41ed1bef8
1,619
py
Python
procgen_adventure/utils/torch_utils.py
Laurans/procgen_adventure
5f88f3f647f7854c8fb2ae516f3490d89845eefa
[ "MIT" ]
2
2020-04-02T11:51:43.000Z
2020-04-20T20:07:03.000Z
procgen_adventure/utils/torch_utils.py
Laurans/procgen_adventure
5f88f3f647f7854c8fb2ae516f3490d89845eefa
[ "MIT" ]
1
2020-04-08T10:34:29.000Z
2020-04-29T21:08:48.000Z
procgen_adventure/utils/torch_utils.py
Laurans/procgen_adventure
5f88f3f647f7854c8fb2ae516f3490d89845eefa
[ "MIT" ]
null
null
null
import numpy as np import torch import torch.distributed as dist def tensor(x, device): if isinstance(x, torch.Tensor): return x.to(device) x = np.asarray(x, dtype=np.float) x = torch.tensor(x, device=device, dtype=torch.float32) return x def input_preprocessing(x, device): x = tensor(x...
23.128571
75
0.697344
import numpy as np import torch import torch.distributed as dist def tensor(x, device): if isinstance(x, torch.Tensor): return x.to(device) x = np.asarray(x, dtype=np.float) x = torch.tensor(x, device=device, dtype=torch.float32) return x def input_preprocessing(x, device): x = tensor(x...
true
true
f738984da5bf2c1af3e248b86b937f164fb9ed8e
4,274
py
Python
qa/rpc-tests/keypool.py
hkaase/TestCoin
73c647a99e933085ecc04c1d51491eeb44a922a4
[ "MIT" ]
null
null
null
qa/rpc-tests/keypool.py
hkaase/TestCoin
73c647a99e933085ecc04c1d51491eeb44a922a4
[ "MIT" ]
null
null
null
qa/rpc-tests/keypool.py
hkaase/TestCoin
73c647a99e933085ecc04c1d51491eeb44a922a4
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # Copyright (c) 2014 The Testcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # Exercise the wallet keypool, and interaction with wallet encryption/locking # Add python-Testcoinrpc to mo...
32.135338
101
0.652784
import os import sys sys.path.append(os.path.join(os.path.dirname(os.path.abspath(__file__)), "python-Testcoinrpc")) import json import shutil import subprocess import tempfile import traceback from Testcoinrpc.authproxy import AuthServiceProxy, JSONRPCException from util import * def check_array_result(obj...
false
true
f7389a07051a305f3313f7a63271b2f4966e093d
6,985
py
Python
ECG_Dataloader_Brazilian_records.py
vgliner/Chlng_20_Sub
169d098e5315510df83ad988c7e2067317cef4cf
[ "BSD-2-Clause" ]
null
null
null
ECG_Dataloader_Brazilian_records.py
vgliner/Chlng_20_Sub
169d098e5315510df83ad988c7e2067317cef4cf
[ "BSD-2-Clause" ]
null
null
null
ECG_Dataloader_Brazilian_records.py
vgliner/Chlng_20_Sub
169d098e5315510df83ad988c7e2067317cef4cf
[ "BSD-2-Clause" ]
null
null
null
from torch.utils.data import Dataset import os import scipy.io as sio import numpy as np import matplotlib.pyplot as plt import h5py import pandas as pd import random from scipy.io import loadmat import Utils from scipy import interpolate from scipy import signal import csv from scipy.signal import butter, lfilter, fre...
36.005155
107
0.643951
from torch.utils.data import Dataset import os import scipy.io as sio import numpy as np import matplotlib.pyplot as plt import h5py import pandas as pd import random from scipy.io import loadmat import Utils from scipy import interpolate from scipy import signal import csv from scipy.signal import butter, lfilter, fre...
true
true
f7389a19e9d0ff7b128f5ec0d44950498ceefaf7
5,501
py
Python
PaintsChainer/server.py
xiaofengShi/Gans
03938440f5f83da22602a0b3b78d689f310c1a95
[ "MIT" ]
null
null
null
PaintsChainer/server.py
xiaofengShi/Gans
03938440f5f83da22602a0b3b78d689f310c1a95
[ "MIT" ]
null
null
null
PaintsChainer/server.py
xiaofengShi/Gans
03938440f5f83da22602a0b3b78d689f310c1a95
[ "MIT" ]
null
null
null
#!/usr/bin/env python import http.server import sys import time import re import argparse from cgi import parse_header, parse_multipart from urllib.parse import parse_qs sys.path.append('./sketchKeras') import run sys.path.append('./cgi-bin/paint_x2_unet') import cgi_exe sys.path.append('./cgi-bin/helpers') from pl...
29.260638
111
0.548446
import http.server import sys import time import re import argparse from cgi import parse_header, parse_multipart from urllib.parse import parse_qs sys.path.append('./sketchKeras') import run sys.path.append('./cgi-bin/paint_x2_unet') import cgi_exe sys.path.append('./cgi-bin/helpers') from platformAdapter import ...
true
true
f7389b0fa337f966813df242e778dadeafe34bbb
9,157
py
Python
python_modules/dagit/dagit/app.py
Kilo59/dagster
ed8f5a86c923ba748618e0a73e7bea0d4544ae54
[ "Apache-2.0" ]
null
null
null
python_modules/dagit/dagit/app.py
Kilo59/dagster
ed8f5a86c923ba748618e0a73e7bea0d4544ae54
[ "Apache-2.0" ]
null
null
null
python_modules/dagit/dagit/app.py
Kilo59/dagster
ed8f5a86c923ba748618e0a73e7bea0d4544ae54
[ "Apache-2.0" ]
null
null
null
import gzip import io import os import uuid import nbformat from dagster import __version__ as dagster_version from dagster import check from dagster.cli.workspace import Workspace from dagster.cli.workspace.context import WorkspaceProcessContext from dagster.core.debug import DebugRunPayload from dagster.core.executi...
35.909804
100
0.694878
import gzip import io import os import uuid import nbformat from dagster import __version__ as dagster_version from dagster import check from dagster.cli.workspace import Workspace from dagster.cli.workspace.context import WorkspaceProcessContext from dagster.core.debug import DebugRunPayload from dagster.core.executi...
true
true
f7389c2b6b455447ae8105af74392a88df24aa73
55
py
Python
python/testData/refactoring/changeSignature/removeDefaultFromParam.after.py
truthiswill/intellij-community
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/refactoring/changeSignature/removeDefaultFromParam.after.py
truthiswill/intellij-community
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
[ "Apache-2.0" ]
173
2018-07-05T13:59:39.000Z
2018-08-09T01:12:03.000Z
python/testData/refactoring/changeSignature/removeDefaultFromParam.after.py
truthiswill/intellij-community
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
def bar(a, b): pass bar(1, 3) bar(1, b=3) bar(1, 2)
7.857143
14
0.509091
def bar(a, b): pass bar(1, 3) bar(1, b=3) bar(1, 2)
true
true
f7389c8aa5a728e71f63988b7eb4de5389e7d0f7
2,670
py
Python
inst/python/torchtools/data_util.py
f0nzie/rTorch
0010f675b7c086a03d0ead38d883f752cf159e80
[ "MIT" ]
79
2018-11-21T16:07:18.000Z
2021-11-03T22:19:20.000Z
inst/python/torchtools/data_util.py
f0nzie/rTorch.old
40292ecd8a9ac1af6a03247cbb5f7a3227d60e2f
[ "MIT" ]
3
2020-04-13T00:39:26.000Z
2020-08-30T01:51:17.000Z
inst/python/torchtools/data_util.py
f0nzie/rTorch.old
40292ecd8a9ac1af6a03247cbb5f7a3227d60e2f
[ "MIT" ]
10
2018-11-21T16:42:09.000Z
2020-10-28T15:33:41.000Z
import gzip import os from os import path import numpy as np import sys if sys.version_info.major < 3: import urllib else: import urllib.request as request DATASET_DIR = 'datasets/' MNIST_FILES = ["train-images-idx3-ubyte.gz", "train-labels-idx1-ubyte.gz", "t10k-images-idx3-ubyte.gz", "t10k-l...
27.8125
79
0.613109
import gzip import os from os import path import numpy as np import sys if sys.version_info.major < 3: import urllib else: import urllib.request as request DATASET_DIR = 'datasets/' MNIST_FILES = ["train-images-idx3-ubyte.gz", "train-labels-idx1-ubyte.gz", "t10k-images-idx3-ubyte.gz", "t10k-l...
true
true
f7389ca5b4a58075edda4abe42d5044cedeb2d5d
270
py
Python
embedding_utils/__init__.py
Johnny-Wish/fake-news-detection-pipeline
3bdad59d680968375a23d72c80af7d6ef11d7711
[ "Apache-2.0" ]
52
2018-11-02T00:00:10.000Z
2020-06-21T03:55:13.000Z
embedding_utils/__init__.py
Johnny-Wish/fake-news-detection-pipeline
3bdad59d680968375a23d72c80af7d6ef11d7711
[ "Apache-2.0" ]
null
null
null
embedding_utils/__init__.py
Johnny-Wish/fake-news-detection-pipeline
3bdad59d680968375a23d72c80af7d6ef11d7711
[ "Apache-2.0" ]
8
2018-11-12T20:54:48.000Z
2020-02-14T08:24:40.000Z
from .embedding_loader import EmbeddingLoader from .embedding_visualizer import visualize_embeddings from .embedding_getter import DocumentEmbedder, DocumentSequence __all__ = [ EmbeddingLoader, visualize_embeddings, DocumentSequence, DocumentEmbedder ]
27
64
0.825926
from .embedding_loader import EmbeddingLoader from .embedding_visualizer import visualize_embeddings from .embedding_getter import DocumentEmbedder, DocumentSequence __all__ = [ EmbeddingLoader, visualize_embeddings, DocumentSequence, DocumentEmbedder ]
true
true
f7389d8989af34f20343a6ecea9a78bab8f4f000
109
py
Python
tic_tac_toe/ai_agents/minimax_agent/__init__.py
shuvoxcd01/tictactoe
6c949200734233e1a9ea5cd7280e2ce409f3eb0b
[ "Apache-2.0" ]
null
null
null
tic_tac_toe/ai_agents/minimax_agent/__init__.py
shuvoxcd01/tictactoe
6c949200734233e1a9ea5cd7280e2ce409f3eb0b
[ "Apache-2.0" ]
null
null
null
tic_tac_toe/ai_agents/minimax_agent/__init__.py
shuvoxcd01/tictactoe
6c949200734233e1a9ea5cd7280e2ce409f3eb0b
[ "Apache-2.0" ]
null
null
null
import os memory_file_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), "minimax_memory.json")
36.333333
98
0.788991
import os memory_file_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), "minimax_memory.json")
true
true
f7389fb21329c82635c4439aa1232be460237d97
2,420
py
Python
delivery_bots/bots/tgbot/checkout/payment/handlers.py
savilard/delivery-bots
5385a08c5c02a886c3105413624424d6127b9363
[ "MIT" ]
null
null
null
delivery_bots/bots/tgbot/checkout/payment/handlers.py
savilard/delivery-bots
5385a08c5c02a886c3105413624424d6127b9363
[ "MIT" ]
null
null
null
delivery_bots/bots/tgbot/checkout/payment/handlers.py
savilard/delivery-bots
5385a08c5c02a886c3105413624424d6127b9363
[ "MIT" ]
null
null
null
from aiogram import Dispatcher, types from aiogram.dispatcher import FSMContext from delivery_bots.bots.tgbot.settings import TgBotSettings from delivery_bots.bots.tgbot.states import BotState async def handle_payment(query: types.CallbackQuery, state: FSMContext): """Handle payment.""" current_state = await...
37.8125
119
0.709091
from aiogram import Dispatcher, types from aiogram.dispatcher import FSMContext from delivery_bots.bots.tgbot.settings import TgBotSettings from delivery_bots.bots.tgbot.states import BotState async def handle_payment(query: types.CallbackQuery, state: FSMContext): current_state = await state.get_data() paym...
true
true
f738a075b3abb51ebd1c8c2f76ad6b5d279f6e02
759
py
Python
app/users/forms.py
Nilsen11/django-training-CBV
b470fd1ea11df5d360389cbd24cac18c9383b8bd
[ "MIT" ]
null
null
null
app/users/forms.py
Nilsen11/django-training-CBV
b470fd1ea11df5d360389cbd24cac18c9383b8bd
[ "MIT" ]
null
null
null
app/users/forms.py
Nilsen11/django-training-CBV
b470fd1ea11df5d360389cbd24cac18c9383b8bd
[ "MIT" ]
null
null
null
from django import forms from django.contrib.auth.models import User from django.contrib.auth.forms import UserCreationForm from .models import Profile class UserOurRegistration(UserCreationForm): email = forms.EmailField(required=True) class Meta: model = User fields = ['email', 'username', ...
23.71875
64
0.667984
from django import forms from django.contrib.auth.models import User from django.contrib.auth.forms import UserCreationForm from .models import Profile class UserOurRegistration(UserCreationForm): email = forms.EmailField(required=True) class Meta: model = User fields = ['email', 'username', ...
true
true
f738a0eb7d1f987ced124ebc931373226ca61e84
3,604
py
Python
src/get_playlist_videos.py
manufactured/Youtube_Scraper_mod1
df4293655227a43b309fd00f9479d437b12838e8
[ "MIT" ]
null
null
null
src/get_playlist_videos.py
manufactured/Youtube_Scraper_mod1
df4293655227a43b309fd00f9479d437b12838e8
[ "MIT" ]
null
null
null
src/get_playlist_videos.py
manufactured/Youtube_Scraper_mod1
df4293655227a43b309fd00f9479d437b12838e8
[ "MIT" ]
null
null
null
import sqlite3 from datetime import timedelta from get_video_stats import get_videos_stats from get_channel_details import get_channel_details def get_playlist_videos(youtube,playlistID,ec=False,ch_id=None): ch_ID = 'skip' conn = sqlite3.connect('youtube.db') cur = conn.cursor() videos...
42.4
133
0.536626
import sqlite3 from datetime import timedelta from get_video_stats import get_videos_stats from get_channel_details import get_channel_details def get_playlist_videos(youtube,playlistID,ec=False,ch_id=None): ch_ID = 'skip' conn = sqlite3.connect('youtube.db') cur = conn.cursor() videos...
true
true
f738a3279aa6cfae687cdccf7c90a0d459f6e3ea
1,410
py
Python
actions/plugins/modules/real_facts.py
ccamacho/pystol-galaxy
99a7281bbfaac436a58255c2ef31c695d3f49fc7
[ "Apache-2.0" ]
null
null
null
actions/plugins/modules/real_facts.py
ccamacho/pystol-galaxy
99a7281bbfaac436a58255c2ef31c695d3f49fc7
[ "Apache-2.0" ]
null
null
null
actions/plugins/modules/real_facts.py
ccamacho/pystol-galaxy
99a7281bbfaac436a58255c2ef31c695d3f49fc7
[ "Apache-2.0" ]
null
null
null
import random from ansible.module_utils.basic import AnsibleModule ANSIBLE_METADATA = { 'metadata_version': '1.1', 'status': ['preview'], 'supported_by': 'community' } DOCUMENTATION = ''' --- module: real_facts short_description: A module that dishes out the true facts. version_added: "2.8" description...
17.195122
73
0.629787
import random from ansible.module_utils.basic import AnsibleModule ANSIBLE_METADATA = { 'metadata_version': '1.1', 'status': ['preview'], 'supported_by': 'community' } DOCUMENTATION = ''' --- module: real_facts short_description: A module that dishes out the true facts. version_added: "2.8" description...
true
true
f738a3591efb2e9395f343c0d1e211c7ba0b3e16
745
py
Python
kolibri/core/serializers.py
jonboiser/kolibri
8ea2febc1739ac772007aae4084f0226dfb4ed40
[ "MIT" ]
1
2021-03-26T03:44:24.000Z
2021-03-26T03:44:24.000Z
kolibri/core/serializers.py
jonboiser/kolibri
8ea2febc1739ac772007aae4084f0226dfb4ed40
[ "MIT" ]
7
2016-06-23T16:01:02.000Z
2018-12-01T22:15:13.000Z
kolibri/core/serializers.py
MingDai/kolibri
e4719b7d41a40e0cc9fc4150bc137017643fea62
[ "MIT" ]
1
2021-06-01T23:15:26.000Z
2021-06-01T23:15:26.000Z
import pytz from django.utils import timezone from rest_framework.serializers import DateTimeField, ModelSerializer from .fields import DateTimeTzField as DjangoDateTimeTzField class DateTimeTzField(DateTimeField): def to_internal_value(self, data): data = super(DateTimeTzField, self).to_internal_value(d...
28.653846
73
0.785235
import pytz from django.utils import timezone from rest_framework.serializers import DateTimeField, ModelSerializer from .fields import DateTimeTzField as DjangoDateTimeTzField class DateTimeTzField(DateTimeField): def to_internal_value(self, data): data = super(DateTimeTzField, self).to_internal_value(d...
true
true
f738a393c7d730893fc0783bc0c7e4039c508d50
8,334
py
Python
src_py/hat/monitor/client.py
hrvojekeserica/hat-core
759def68620cf4f8c11e7bbbdbfd1e701dbafb09
[ "MIT" ]
null
null
null
src_py/hat/monitor/client.py
hrvojekeserica/hat-core
759def68620cf4f8c11e7bbbdbfd1e701dbafb09
[ "MIT" ]
null
null
null
src_py/hat/monitor/client.py
hrvojekeserica/hat-core
759def68620cf4f8c11e7bbbdbfd1e701dbafb09
[ "MIT" ]
null
null
null
"""Library used by components for communication with Monitor Server This module provides low-level interface (connect/Client) and high-level interface (run_component) for communication with Monitor Server. :func:`connect` is used for establishing single chatter based connection with Monitor Server which is represent...
32.682353
79
0.640509
import asyncio import logging from hat import chatter from hat import util from hat.monitor import common from hat.util import aio mlog = logging.getLogger(__name__) async def connect(conf): client = Client() client._name = conf['name'] client._group = conf['group'] client._address = conf['compone...
true
true
f738a4738731c19b10539bd6bcf377dc5b4c2ca9
6,260
py
Python
sqlmodel/engine/create.py
WavesandCode/sqlmodel
ca4afa57e08ed895ce0823ec8c064e7bdd520576
[ "MIT" ]
null
null
null
sqlmodel/engine/create.py
WavesandCode/sqlmodel
ca4afa57e08ed895ce0823ec8c064e7bdd520576
[ "MIT" ]
null
null
null
sqlmodel/engine/create.py
WavesandCode/sqlmodel
ca4afa57e08ed895ce0823ec8c064e7bdd520576
[ "MIT" ]
null
null
null
import json import sqlite3 from typing import Any, Callable, Dict, List, Optional, Type, Union from sqlalchemy.ext.asyncio import create_async_engine as _create_async_engine from sqlalchemy.engine.url import URL from sqlalchemy.future import Engine as _FutureEngine from sqlalchemy.pool import Pool from typing_extensio...
44.714286
88
0.735304
import json import sqlite3 from typing import Any, Callable, Dict, List, Optional, Type, Union from sqlalchemy.ext.asyncio import create_async_engine as _create_async_engine from sqlalchemy.engine.url import URL from sqlalchemy.future import Engine as _FutureEngine from sqlalchemy.pool import Pool from typing_extensio...
true
true
f738a6cb7be7d4b4fd71486e7095742443a648d5
2,457
py
Python
WiredQT/examples/BySomeBody/DataGrid/SQLLITE/frmmain.py
chiptrontech/WiredQTv1.0
760948bb736867db4e772031b23ed9151e0364b9
[ "MIT" ]
1
2021-12-18T09:17:08.000Z
2021-12-18T09:17:08.000Z
WiredQT/examples/BySomeBody/DataGrid/SQLLITE/frmmain.py
chiptrontech/WiredQTv1.0
760948bb736867db4e772031b23ed9151e0364b9
[ "MIT" ]
null
null
null
WiredQT/examples/BySomeBody/DataGrid/SQLLITE/frmmain.py
chiptrontech/WiredQTv1.0
760948bb736867db4e772031b23ed9151e0364b9
[ "MIT" ]
2
2021-12-18T09:15:53.000Z
2022-01-19T15:10:14.000Z
from PyQt5 import QtCore, QtWidgets from PyQt5.QtGui import * from wired_module import * # Generated By WiredQT for Python: by Rocky Nuarin, 2021 Phils class Handler(QtWidgets.QWidget,usercontrol): def __init__(self, *param): super(Handler, self).__init__(None) initUI(self,param,w=400,h=400,title="Wir...
43.105263
432
0.634921
from PyQt5 import QtCore, QtWidgets from PyQt5.QtGui import * from wired_module import * class Handler(QtWidgets.QWidget,usercontrol): def __init__(self, *param): super(Handler, self).__init__(None) initUI(self,param,w=400,h=400,title="WiredQTv5.0",controlbox=True,startpos=(0,30),timeoutdestroy=-1) ...
true
true
f738a73e64ead48b126973cf863a8f0ebf981aa3
55,179
py
Python
tests/auth_tests/test_views.py
PaulWay/django
782d85b6dfa191e67c0f1d572641d8236c79174c
[ "PSF-2.0", "BSD-3-Clause" ]
1
2019-03-01T11:58:20.000Z
2019-03-01T11:58:20.000Z
tests/auth_tests/test_views.py
PaulWay/django
782d85b6dfa191e67c0f1d572641d8236c79174c
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
tests/auth_tests/test_views.py
PaulWay/django
782d85b6dfa191e67c0f1d572641d8236c79174c
[ "PSF-2.0", "BSD-3-Clause" ]
1
2019-03-19T20:57:55.000Z
2019-03-19T20:57:55.000Z
import datetime import itertools import os import re from importlib import import_module from unittest import mock from urllib.parse import quote from django.apps import apps from django.conf import settings from django.contrib.admin.models import LogEntry from django.contrib.auth import ( BACKEND_SESSION_KEY, RED...
42.974299
119
0.652911
import datetime import itertools import os import re from importlib import import_module from unittest import mock from urllib.parse import quote from django.apps import apps from django.conf import settings from django.contrib.admin.models import LogEntry from django.contrib.auth import ( BACKEND_SESSION_KEY, RED...
true
true
f738a7c9d738f2e45ab035ef9b7e3a7f6537a9a5
1,620
py
Python
tests/registration/warnings_test.py
martvanrijthoven/creationism
510040dc4f3cd622c48006318e3d291a66f5335f
[ "MIT" ]
null
null
null
tests/registration/warnings_test.py
martvanrijthoven/creationism
510040dc4f3cd622c48006318e3d291a66f5335f
[ "MIT" ]
1
2021-07-29T18:20:54.000Z
2021-07-29T18:20:54.000Z
tests/warnings_test.py
martvanrijthoven/strar
d58a78eabd758778b9320b08302da5ab46f3e0a8
[ "MIT" ]
null
null
null
from pytest import warns from strar.registration import Registrar from strar.utils import Text, chain_functions from strar.warnings import DuplicateRegistrantNameWarning class TestWarnings: def test_no_replace(self): with warns(DuplicateRegistrantNameWarning): class A(Registrar): ...
26.129032
70
0.509259
from pytest import warns from strar.registration import Registrar from strar.utils import Text, chain_functions from strar.warnings import DuplicateRegistrantNameWarning class TestWarnings: def test_no_replace(self): with warns(DuplicateRegistrantNameWarning): class A(Registrar): ...
true
true
f738a8260fe5c9038d920145eecc1199373d4207
1,292
py
Python
backend-project/small_eod/cases/migrations/0012_auto_20200527_1127.py
WlodzimierzKorza/small_eod
027022bd71122a949a2787d0fb86518df80e48cd
[ "MIT" ]
64
2019-12-30T11:24:03.000Z
2021-06-24T01:04:56.000Z
backend-project/small_eod/cases/migrations/0012_auto_20200527_1127.py
WlodzimierzKorza/small_eod
027022bd71122a949a2787d0fb86518df80e48cd
[ "MIT" ]
465
2018-06-13T21:43:43.000Z
2022-01-04T23:33:56.000Z
backend-project/small_eod/cases/migrations/0012_auto_20200527_1127.py
WlodzimierzKorza/small_eod
027022bd71122a949a2787d0fb86518df80e48cd
[ "MIT" ]
72
2018-12-02T19:47:03.000Z
2022-01-04T22:54:49.000Z
# Generated by Django 3.0.6 on 2020-05-27 11:27 from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('cases', '0011_auto_20200420_0717'), ] operations...
36.914286
210
0.652477
from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('cases', '0011_auto_20200420_0717'), ] operations = [ migrations.RemoveField( ...
true
true
f738a85b9d72c89ed626b92eb71969493f9198ba
133
py
Python
BackEnd/lib/Modules/joke.py
nekumelon/Jarvis
e3256d5f20c8d1bb6f2954b9ca300018e43768cd
[ "MIT" ]
null
null
null
BackEnd/lib/Modules/joke.py
nekumelon/Jarvis
e3256d5f20c8d1bb6f2954b9ca300018e43768cd
[ "MIT" ]
null
null
null
BackEnd/lib/Modules/joke.py
nekumelon/Jarvis
e3256d5f20c8d1bb6f2954b9ca300018e43768cd
[ "MIT" ]
null
null
null
import requests, json, pyjokes def joke(textToSpeech, phrases, text, server): joke = pyjokes.get_joke(); textToSpeech(joke);
26.6
46
0.721805
import requests, json, pyjokes def joke(textToSpeech, phrases, text, server): joke = pyjokes.get_joke(); textToSpeech(joke);
true
true
f738a88472d70064fb2347b65d5b17a59db71134
2,988
py
Python
main.py
lacygoill/inkscape-shortcut-manager
3c2eacd9573a854c5c8fec449f524c6e680dcc68
[ "MIT" ]
1
2019-04-27T18:23:46.000Z
2019-04-27T18:23:46.000Z
main.py
lacygoill/inkscape-shortcut-manager
3c2eacd9573a854c5c8fec449f524c6e680dcc68
[ "MIT" ]
null
null
null
main.py
lacygoill/inkscape-shortcut-manager
3c2eacd9573a854c5c8fec449f524c6e680dcc68
[ "MIT" ]
1
2021-03-09T16:19:57.000Z
2021-03-09T16:19:57.000Z
import threading import Xlib from Xlib.display import Display from Xlib import X, XK from Xlib.protocol import event from normal import normal_mode class Manager(): def __init__(self, inkscape_id): self.id = inkscape_id self.disp = Display() self.screen = self.disp.screen() self.ro...
32.478261
109
0.602744
import threading import Xlib from Xlib.display import Display from Xlib import X, XK from Xlib.protocol import event from normal import normal_mode class Manager(): def __init__(self, inkscape_id): self.id = inkscape_id self.disp = Display() self.screen = self.disp.screen() self.ro...
true
true
f738a8e813dd9ace1fbe232f9e27b602958b8c38
4,062
py
Python
virtual/lib/python3.10/site-packages/bootstrap_py/commands.py
alex-mu/Moringa-blog
430ab9c1f43f2f0066369433ac3f60c41a51a01c
[ "MIT" ]
null
null
null
virtual/lib/python3.10/site-packages/bootstrap_py/commands.py
alex-mu/Moringa-blog
430ab9c1f43f2f0066369433ac3f60c41a51a01c
[ "MIT" ]
7
2021-03-30T14:10:56.000Z
2022-03-12T00:43:13.000Z
virtual/lib/python3.6/site-packages/bootstrap_py/commands.py
sarahsindet/pitch
c7a4256e19c9a250b6d88d085699a34f508eb86b
[ "Unlicense", "MIT" ]
1
2021-08-19T06:07:23.000Z
2021-08-19T06:07:23.000Z
# -*- coding: utf-8 -*- """bootstrap_py.commands.""" import os import sys import re import argparse from bootstrap_py import control, __prog__, __version__ from bootstrap_py.update import Update from bootstrap_py.exceptions import BackendFailure, Conflict def setoption(parser, metadata=None): """Set argument pars...
39.057692
77
0.566962
import os import sys import re import argparse from bootstrap_py import control, __prog__, __version__ from bootstrap_py.update import Update from bootstrap_py.exceptions import BackendFailure, Conflict def setoption(parser, metadata=None): parser.add_argument('-v', action='version', vers...
true
true
f738a9f000115ed33e65863504a8d657cbba9d95
128,196
py
Python
lib/python2.7/site-packages/numpy/f2py/crackfortran.py
wfehrnstrom/harmonize
e5661d24b2021739e8ac4bf1d3a530eda4e155b3
[ "MIT" ]
2
2020-11-01T13:22:11.000Z
2020-11-01T13:22:20.000Z
lib/python2.7/site-packages/numpy/f2py/crackfortran.py
wfehrnstrom/harmonize
e5661d24b2021739e8ac4bf1d3a530eda4e155b3
[ "MIT" ]
12
2020-07-11T01:42:51.000Z
2020-08-12T17:17:35.000Z
lib/python2.7/site-packages/numpy/f2py/crackfortran.py
wfehrnstrom/harmonize
e5661d24b2021739e8ac4bf1d3a530eda4e155b3
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ crackfortran --- read fortran (77,90) code and extract declaration information. Copyright 1999-2004 Pearu Peterson all rights reserved, Pearu Peterson <pearu@ioc.ee> Permission to use, modify, and distribute this software is given under the terms of the NumPy License. NO WARRANTY IS EXPRESSE...
38.347592
207
0.472503
from __future__ import division, absolute_import, print_function import sys import string import fileinput import re import os import copy import platform from . import __version__ from .auxfuncs import * f2py_version = __version__.version strictf77 = 1 sourcecodeform = 'fix' # 'fix','free' quiet ...
true
true
f738ab0ed992e9cc6d31af3226bae8dde35d79c6
12,535
py
Python
StandAlone/AlienSpy.py
denmilu/RATDecoders
39c28645c35c03aa3f12ccd60158b98668d004a3
[ "MIT" ]
4
2020-04-30T08:07:39.000Z
2021-03-24T05:11:43.000Z
StandAlone/AlienSpy.py
stevenchen0x01/RATDecoders
39c28645c35c03aa3f12ccd60158b98668d004a3
[ "MIT" ]
1
2020-04-30T08:07:12.000Z
2020-04-30T08:07:12.000Z
StandAlone/AlienSpy.py
stevenchen0x01/RATDecoders
39c28645c35c03aa3f12ccd60158b98668d004a3
[ "MIT" ]
2
2018-03-29T15:51:00.000Z
2018-04-29T20:06:57.000Z
#!/usr/bin/env python ''' AlienSpy Rat Rat Config Decoder ''' __description__ = 'AlienSpy Rat Config Extractor' __author__ = 'Kevin Breen http://techanarchy.net http://malwareconfig.com' __version__ = '0.4' __date__ = '2015/10/30' #Standard Imports Go Here import os import re import sys import json import string impor...
36.020115
116
0.605903
''' AlienSpy Rat Rat Config Decoder ''' __description__ = 'AlienSpy Rat Config Extractor' __author__ = 'Kevin Breen http://techanarchy.net http://malwareconfig.com' __version__ = '0.4' __date__ = '2015/10/30' import os import re import sys import json import string import struct from optparse import OptionParser fro...
false
true
f738ab779415b269bda9727a7fdc7c85dda2ca86
2,925
py
Python
code_server/run_evaluate.py
Dragon-M-Ren/grad_code
d814b81adaec709d5dffd737f0c350953cc361fd
[ "Apache-2.0" ]
null
null
null
code_server/run_evaluate.py
Dragon-M-Ren/grad_code
d814b81adaec709d5dffd737f0c350953cc361fd
[ "Apache-2.0" ]
null
null
null
code_server/run_evaluate.py
Dragon-M-Ren/grad_code
d814b81adaec709d5dffd737f0c350953cc361fd
[ "Apache-2.0" ]
null
null
null
from evaluate import * import tensorflow as tf from utils import * from model.gcn import GCN from model.mlp import MLP from model.firstcheb import FirstCheb from model.gat import GAT from model.dcnn import DCNN from model.spectralcnn import SpectralCNN from model.chebnet import ChebNet from model.graphsage import Graph...
31.117021
89
0.696068
from evaluate import * import tensorflow as tf from utils import * from model.gcn import GCN from model.mlp import MLP from model.firstcheb import FirstCheb from model.gat import GAT from model.dcnn import DCNN from model.spectralcnn import SpectralCNN from model.chebnet import ChebNet from model.graphsage import Graph...
true
true
f738ae17c137a7db78adb44ca30ff26da58f5b69
1,401
py
Python
clock.py
vishal71421/pythonclock
1688be589bdcef3a17431c5aa7f91f43b710b000
[ "MIT" ]
1
2020-08-12T18:24:46.000Z
2020-08-12T18:24:46.000Z
clock.py
vishal71421/pythonclock
1688be589bdcef3a17431c5aa7f91f43b710b000
[ "MIT" ]
null
null
null
clock.py
vishal71421/pythonclock
1688be589bdcef3a17431c5aa7f91f43b710b000
[ "MIT" ]
1
2022-03-30T11:50:29.000Z
2022-03-30T11:50:29.000Z
# Simple analogue clock in Python 3 import turtle import time wndw = turtle.Screen() wndw.bgcolor("black") wndw.setup(width=600, height=600) wndw.title("Analogue Clock") wndw.tracer(0) # Create the drawing pen pen = turtle.Turtle() pen.hideturtle() pen.speed(0) pen.pensize(3) def draw_clock(hr, mn, sec, pen): ...
19.732394
68
0.578158
import turtle import time wndw = turtle.Screen() wndw.bgcolor("black") wndw.setup(width=600, height=600) wndw.title("Analogue Clock") wndw.tracer(0) pen = turtle.Turtle() pen.hideturtle() pen.speed(0) pen.pensize(3) def draw_clock(hr, mn, sec, pen): pen.up() pen.goto(0, 210) pen.setheading(180)...
true
true
f738ae6a93e083d3796cdb1f95525084c99a21fa
1,809
py
Python
azure-cognitiveservices-vision-customvision/azure/cognitiveservices/vision/customvision/training/models/image_create_result.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
azure-cognitiveservices-vision-customvision/azure/cognitiveservices/vision/customvision/training/models/image_create_result.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-cognitiveservices-vision-customvision/azure/cognitiveservices/vision/customvision/training/models/image_create_result.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2019-06-17T22:18:23.000Z
2019-06-17T22:18:23.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 ...
34.788462
83
0.615257
from msrest.serialization import Model class ImageCreateResult(Model): _validation = { 'source_url': {'readonly': True}, 'status': {'readonly': True}, 'image': {'readonly': True}, } _attribute_map = { 'source_url': {'key': 'sourceUrl', 'type': 'str'}, '...
true
true
f738aeabb12e34c1fac77f5e37010adaa44ec4b8
1,819
py
Python
src/sentry/api/serializers/models/alert_rule_trigger_action.py
pierredup/sentry
0145e4b3bc0e775bf3482fe65f5e1a689d0dbb80
[ "BSD-3-Clause" ]
null
null
null
src/sentry/api/serializers/models/alert_rule_trigger_action.py
pierredup/sentry
0145e4b3bc0e775bf3482fe65f5e1a689d0dbb80
[ "BSD-3-Clause" ]
null
null
null
src/sentry/api/serializers/models/alert_rule_trigger_action.py
pierredup/sentry
0145e4b3bc0e775bf3482fe65f5e1a689d0dbb80
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import import six from sentry.api.serializers import register, Serializer from sentry.incidents.models import AlertRuleTriggerAction @register(AlertRuleTriggerAction) class AlertRuleTriggerActionSerializer(Serializer): def human_desc(self, action): # Returns a human reada...
42.302326
87
0.654755
from __future__ import absolute_import import six from sentry.api.serializers import register, Serializer from sentry.incidents.models import AlertRuleTriggerAction @register(AlertRuleTriggerAction) class AlertRuleTriggerActionSerializer(Serializer): def human_desc(self, action): if action.type...
true
true
f738af43ce1b3a193391862e705092eb5b0f05da
2,489
py
Python
unified/tests/test_xfs.py
LoganCook/reporting-unified
9d2c7e083c5c400e9120bb8552348e41406a1bc1
[ "Apache-2.0" ]
null
null
null
unified/tests/test_xfs.py
LoganCook/reporting-unified
9d2c7e083c5c400e9120bb8552348e41406a1bc1
[ "Apache-2.0" ]
null
null
null
unified/tests/test_xfs.py
LoganCook/reporting-unified
9d2c7e083c5c400e9120bb8552348e41406a1bc1
[ "Apache-2.0" ]
null
null
null
import unittest from flask import json from ..apis.xfs import app from . import client_get, now, now_minus_24hrs get = client_get(app) class XFSTestCase(unittest.TestCase): def test_root_not_allowed(self): rv = get('/') self.assertEqual(rv.status_code, 404) def test_all_top_objects_should_p...
37.149254
115
0.593009
import unittest from flask import json from ..apis.xfs import app from . import client_get, now, now_minus_24hrs get = client_get(app) class XFSTestCase(unittest.TestCase): def test_root_not_allowed(self): rv = get('/') self.assertEqual(rv.status_code, 404) def test_all_top_objects_should_p...
true
true
f738af46f448eb15c41e30d9aaae2454e0c5a8dd
11,680
py
Python
goose3/crawler.py
Nimit-Khurana/goose3
5006bf40f88f15f9b6a1d0da5b9945eaa306c1aa
[ "Apache-2.0" ]
null
null
null
goose3/crawler.py
Nimit-Khurana/goose3
5006bf40f88f15f9b6a1d0da5b9945eaa306c1aa
[ "Apache-2.0" ]
null
null
null
goose3/crawler.py
Nimit-Khurana/goose3
5006bf40f88f15f9b6a1d0da5b9945eaa306c1aa
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """\ This is a python port of "Goose" orignialy licensed to Gravity.com under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. Python port was written by Xavier Grangier for Recrutae Gravity.co...
34.658754
97
0.675171
import os import glob from copy import deepcopy import dateutil.parser from dateutil.tz import tzutc from goose3.article import Article from goose3.utils import URLHelper, RawHelper from goose3.text import get_encodings_from_content from goose3.extractors.content import StandardContentExtractor from goose3.extractor...
true
true
f738af9551c78eaaaf480ca434a71c84550dc693
22,843
py
Python
snakeai/gameplayAttackAndHideRandom/environmentattackandhiderandom.py
sunher/game
84b01b2c69b5cdecbc301fb0e56380ff06bfe353
[ "MIT" ]
null
null
null
snakeai/gameplayAttackAndHideRandom/environmentattackandhiderandom.py
sunher/game
84b01b2c69b5cdecbc301fb0e56380ff06bfe353
[ "MIT" ]
null
null
null
snakeai/gameplayAttackAndHideRandom/environmentattackandhiderandom.py
sunher/game
84b01b2c69b5cdecbc301fb0e56380ff06bfe353
[ "MIT" ]
null
null
null
import pprint import random import time import numpy as np import pandas as pd from .entities import Snake, Field, CellType, SnakeAction, ALL_SNAKE_ACTIONS, SnakeDirection, Point class EnvironmentAttackAndHideRandom(object): """ Represents the RL environment for the Snake game that implements the game logic...
41.010772
117
0.541391
import pprint import random import time import numpy as np import pandas as pd from .entities import Snake, Field, CellType, SnakeAction, ALL_SNAKE_ACTIONS, SnakeDirection, Point class EnvironmentAttackAndHideRandom(object): def __init__(self, config, verbose=1): self.field = Field(level_map=config['fi...
true
true
f738b22029dc69219a26c4c48c3bb6178ab5a0cd
934
py
Python
homepairs/HomepairsApp/Apps/ServiceRequest/models.py
YellowRainBoots/2.0
bf215350c2da0ab28ad2ec6f9338fb1b73b3f2e5
[ "MIT" ]
1
2021-01-19T00:48:10.000Z
2021-01-19T00:48:10.000Z
homepairs/HomepairsApp/Apps/ServiceRequest/models.py
YellowRainBoots/2.0
bf215350c2da0ab28ad2ec6f9338fb1b73b3f2e5
[ "MIT" ]
17
2020-01-23T05:51:18.000Z
2020-06-16T02:33:41.000Z
homepairs/HomepairsApp/Apps/ServiceRequest/models.py
YellowRainBoots/2.0
bf215350c2da0ab28ad2ec6f9338fb1b73b3f2e5
[ "MIT" ]
1
2020-08-06T02:10:58.000Z
2020-08-06T02:10:58.000Z
from django.db import models from django.db.models.fields import CharField, DateTimeField from ..Appliances.models import Appliance from ..Properties.models import Property class ServiceRequest(models.Model): job = CharField(max_length=100) details = CharField(max_length=300) serviceCompany = CharField(m...
29.1875
69
0.669165
from django.db import models from django.db.models.fields import CharField, DateTimeField from ..Appliances.models import Appliance from ..Properties.models import Property class ServiceRequest(models.Model): job = CharField(max_length=100) details = CharField(max_length=300) serviceCompany = CharField(m...
true
true
f738b34082bfb96e054dc6f30df60bef90277cbb
551
py
Python
lang/py/pylib/code/json/json_compact_encoding.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
1
2022-01-29T08:32:11.000Z
2022-01-29T08:32:11.000Z
lang/py/pylib/code/json/json_compact_encoding.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
null
null
null
lang/py/pylib/code/json/json_compact_encoding.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
1
2022-01-29T08:32:12.000Z
2022-01-29T08:32:12.000Z
#!/usr/bin/env python # encoding: utf-8 # # Copyright (c) 2009 Doug Hellmann All rights reserved. # """ """ #end_pymotw_header import json data = [ { 'a':'A', 'b':(2, 4), 'c':3.0 } ] print 'DATA:', repr(data) print 'repr(data) :', len(repr(data)) plain_dump = json.dumps(data) print 'dumps(data) ...
22.04
56
0.631579
""" """ import json data = [ { 'a':'A', 'b':(2, 4), 'c':3.0 } ] print 'DATA:', repr(data) print 'repr(data) :', len(repr(data)) plain_dump = json.dumps(data) print 'dumps(data) :', len(plain_dump) small_indent = json.dumps(data, indent=2) print 'dumps(data, indent=2) :', len(small_ind...
false
true
f738b4c36c04a658f2f353f2e3fd72cdeb52bc0e
3,413
py
Python
app/app/settings.py
Khande1n/recipe-app-api
0b2f1f91d18ab51f73b957a92ba46287ce958867
[ "MIT" ]
null
null
null
app/app/settings.py
Khande1n/recipe-app-api
0b2f1f91d18ab51f73b957a92ba46287ce958867
[ "MIT" ]
null
null
null
app/app/settings.py
Khande1n/recipe-app-api
0b2f1f91d18ab51f73b957a92ba46287ce958867
[ "MIT" ]
null
null
null
""" Django settings for app project. Generated by 'django-admin startproject' using Django 2.1.15. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/settings/ """ import os # Bu...
25.281481
91
0.684735
import os BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) SECRET_KEY = 'k=k+n1wya85+_r@t#er))vo4-yq80*qiqv&t&8##ou5r(9i*8+' DEBUG = True ALLOWED_HOSTS = [] # Application definition INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.content...
true
true
f738b5189dfa185778930199175713cfeabf6d2c
8,011
py
Python
galaxy/accounts/admin.py
tima/galaxy
b371b973e0e9150f3e8b9b08068828b092982f62
[ "Apache-2.0" ]
null
null
null
galaxy/accounts/admin.py
tima/galaxy
b371b973e0e9150f3e8b9b08068828b092982f62
[ "Apache-2.0" ]
null
null
null
galaxy/accounts/admin.py
tima/galaxy
b371b973e0e9150f3e8b9b08068828b092982f62
[ "Apache-2.0" ]
null
null
null
# (c) 2012-2018, Ansible by Red Hat # # This file is part of Ansible Galaxy # # Ansible Galaxy is free software: you can redistribute it and/or modify # it under the terms of the Apache License as published by # the Apache Software Foundation, either version 2 of the License, or # (at your option) any later version. # ...
43.069892
79
0.641992
from django.db import transaction from django.conf import settings from django.contrib import admin from django.contrib.auth.forms import AdminPasswordChangeForm from django.contrib import messages from django.core.exceptions import PermissionDenied from django.http import HttpResponseRedirect, Http404...
true
true
f738b5569e02938bb525d44a2a327da0723323ba
1,273
py
Python
paddlespeech/t2s/modules/transformer/repeat.py
xuesu/PaddleSpeech
89e69ee10ee02b875af663146bc46fcf095e812a
[ "Apache-2.0" ]
1
2022-02-07T02:53:58.000Z
2022-02-07T02:53:58.000Z
paddlespeech/t2s/modules/transformer/repeat.py
ziwenag/PaddleSpeech
89e69ee10ee02b875af663146bc46fcf095e812a
[ "Apache-2.0" ]
null
null
null
paddlespeech/t2s/modules/transformer/repeat.py
ziwenag/PaddleSpeech
89e69ee10ee02b875af663146bc46fcf095e812a
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 PaddlePaddle 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 appli...
28.288889
74
0.671642
import paddle class MultiSequential(paddle.nn.Sequential): def forward(self, *args): for m in self: args = m(*args) return args def repeat(N, fn): return MultiSequential(*[fn(n) for n in range(N)])
true
true
f738b58dd1e7432a7a1618a360877d41411e8813
1,199
py
Python
wsitools/examples/patch_extraction_pl.py
m081429/wsitools
d521b4b1484aaf96628b3d83e51388cb699aa11d
[ "Apache-2.0" ]
5
2020-01-24T02:58:25.000Z
2022-02-06T08:14:32.000Z
wsitools/examples/patch_extraction_pl.py
m081429/wsitools
d521b4b1484aaf96628b3d83e51388cb699aa11d
[ "Apache-2.0" ]
null
null
null
wsitools/examples/patch_extraction_pl.py
m081429/wsitools
d521b4b1484aaf96628b3d83e51388cb699aa11d
[ "Apache-2.0" ]
null
null
null
from wsitools.tissue_detection.tissue_detector import TissueDetector from wsitools.patch_extraction.feature_map_creator import FeatureMapCreator from wsitools.wsi_annotation.region_annotation import AnnotationRegions from wsitools.patch_extraction.patch_extractor import ExtractorParameters, PatchExtractor wsi_fn = "/p...
63.105263
125
0.842369
from wsitools.tissue_detection.tissue_detector import TissueDetector from wsitools.patch_extraction.feature_map_creator import FeatureMapCreator from wsitools.wsi_annotation.region_annotation import AnnotationRegions from wsitools.patch_extraction.patch_extractor import ExtractorParameters, PatchExtractor wsi_fn = "/p...
true
true
f738b672b45295be65688dc6d316c28ccad69603
28,020
py
Python
tests/test_bndfun.py
KennyKangMPC/chebpy
5ad603b15f90a0f36093f1705e3e08d090330cef
[ "BSD-3-Clause" ]
2
2020-05-06T00:14:59.000Z
2021-02-15T03:18:16.000Z
tests/test_bndfun.py
KennyKangMPC/chebpy
5ad603b15f90a0f36093f1705e3e08d090330cef
[ "BSD-3-Clause" ]
null
null
null
tests/test_bndfun.py
KennyKangMPC/chebpy
5ad603b15f90a0f36093f1705e3e08d090330cef
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """Unit-tests for pyfun/core/bndfun.py""" from __future__ import division import itertools import operator import unittest import numpy as np import matplotlib.pyplot as plt from chebpy.core.bndfun import Bndfun from chebpy.core.chebtech import Chebtech2 from chebpy.core.settings import Defa...
38.331053
82
0.569379
from __future__ import division import itertools import operator import unittest import numpy as np import matplotlib.pyplot as plt from chebpy.core.bndfun import Bndfun from chebpy.core.chebtech import Chebtech2 from chebpy.core.settings import DefaultPrefs from chebpy.core.utilities import Interval from chebpy.c...
true
true
f738b6daaa9a461eecc3aa0b6a12081fbe06512b
670
py
Python
blur.py
solderneer/opencv-adventures
20abea930f44296367217145fab73866ea654084
[ "MIT" ]
null
null
null
blur.py
solderneer/opencv-adventures
20abea930f44296367217145fab73866ea654084
[ "MIT" ]
null
null
null
blur.py
solderneer/opencv-adventures
20abea930f44296367217145fab73866ea654084
[ "MIT" ]
null
null
null
#!/usr/bin/env python import cv2 import numpy as np image = cv2.imread('../images/input.jpg') blur = cv2.blur(image, (3,3)) gaussian_blur = cv2.GaussianBlur(image, (3,3), 0) median = cv2.medianBlur(image, 5) cv2.imshow("boxblux", blur) cv2.waitKey() cv2.imshow("gaussian", gaussian_blur) cv2.waitKey() cv2.imshow("me...
23.928571
63
0.68209
import cv2 import numpy as np image = cv2.imread('../images/input.jpg') blur = cv2.blur(image, (3,3)) gaussian_blur = cv2.GaussianBlur(image, (3,3), 0) median = cv2.medianBlur(image, 5) cv2.imshow("boxblux", blur) cv2.waitKey() cv2.imshow("gaussian", gaussian_blur) cv2.waitKey() cv2.imshow("median", median) cv2.wa...
true
true
f738b7eb85617dbbd989f7cc5a00cd6defee1715
2,375
py
Python
models/wingspan/wingspan_report_manager.py
shimech/board_game_reporter
e4ed3035e5adfdf0dadf514d2546f3cc29672007
[ "MIT" ]
null
null
null
models/wingspan/wingspan_report_manager.py
shimech/board_game_reporter
e4ed3035e5adfdf0dadf514d2546f3cc29672007
[ "MIT" ]
1
2020-05-23T05:36:43.000Z
2020-05-23T05:36:43.000Z
models/wingspan/wingspan_report_manager.py
shimech/board_game_reporter
e4ed3035e5adfdf0dadf514d2546f3cc29672007
[ "MIT" ]
null
null
null
import os import sys sys.path.append(os.getcwd()) import gspread from utils import Utils from models.wingspan.wingspan_player import WingspanPlayer class WingspanReportManager: """ WINGSPANのレポートを管理するクラス """ MAX_NUM_PLAYER = 30 def wingspan_players(self, workbook: gspread.models.Spreadsheet) -> l...
30.844156
102
0.600421
import os import sys sys.path.append(os.getcwd()) import gspread from utils import Utils from models.wingspan.wingspan_player import WingspanPlayer class WingspanReportManager: MAX_NUM_PLAYER = 30 def wingspan_players(self, workbook: gspread.models.Spreadsheet) -> list: year, month = Utils.target_ye...
true
true
f738b8748ff190f8320e07643dfda2a23a205587
3,873
py
Python
segment tree 1/2B.py
iammanish17/CodeforcesEdu
961543b332c773010320bd0b2e9d4a4b1c8dc0ea
[ "MIT" ]
6
2020-09-14T19:16:23.000Z
2021-12-10T19:07:51.000Z
segment tree 1/2B.py
iammanish17/CodeforcesEdu
961543b332c773010320bd0b2e9d4a4b1c8dc0ea
[ "MIT" ]
null
null
null
segment tree 1/2B.py
iammanish17/CodeforcesEdu
961543b332c773010320bd0b2e9d4a4b1c8dc0ea
[ "MIT" ]
1
2021-08-12T19:37:22.000Z
2021-08-12T19:37:22.000Z
# By manish.17, contest: ITMO Academy. Дерево отрезков часть 1. 2, problem: (B) K-th one # https://codeforces.com/profile/manish.17 # ------------------- fast io -------------------- import os import sys from io import BytesIO, IOBase BUFSIZE = 8192 class FastIO(IOBase): newlines = 0 def __init__(self, fil...
31.487805
88
0.53731
import os import sys from io import BytesIO, IOBase BUFSIZE = 8192 class FastIO(IOBase): newlines = 0 def __init__(self, file): self._fd = file.fileno() self.buffer = BytesIO() self.writable = "x" in file.mode or "r" not in file.mode self.write = self.buffer.write if self...
true
true
f738b8ca2d0911c6dc22a033fd172ad4961cd0f4
756
bzl
Python
source/bazel/deps/openal/get.bzl
luxe/CodeLang-compiler
78837d90bdd09c4b5aabbf0586a5d8f8f0c1e76a
[ "MIT" ]
1
2019-01-06T08:45:46.000Z
2019-01-06T08:45:46.000Z
source/bazel/deps/openal/get.bzl
luxe/CodeLang-compiler
78837d90bdd09c4b5aabbf0586a5d8f8f0c1e76a
[ "MIT" ]
264
2015-11-30T08:34:00.000Z
2018-06-26T02:28:41.000Z
source/bazel/deps/openal/get.bzl
UniLang/compiler
c338ee92994600af801033a37dfb2f1a0c9ca897
[ "MIT" ]
null
null
null
# Do not edit this file directly. # It was auto-generated by: code/programs/reflexivity/reflexive_refresh load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_file") def openal(): http_archive( name = "openal", build_file =...
37.8
104
0.681217
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_file") def openal(): http_archive( name = "openal", build_file = "//bazel/deps/openal:build.BUILD", sha256 = "992d88ffb89a9a8fd2ed42936caaca20fb3cee3f23ac8a07de...
true
true
f738bab7247e42f74f5264add35fd0c6d547c325
2,590
py
Python
webshop/urls.py
it-teaching-abo-akademi/webshop-project-arnelimperial
98fc7bd8ce031a50c0bd83a6c5c48ed93030e528
[ "Unlicense" ]
null
null
null
webshop/urls.py
it-teaching-abo-akademi/webshop-project-arnelimperial
98fc7bd8ce031a50c0bd83a6c5c48ed93030e528
[ "Unlicense" ]
null
null
null
webshop/urls.py
it-teaching-abo-akademi/webshop-project-arnelimperial
98fc7bd8ce031a50c0bd83a6c5c48ed93030e528
[ "Unlicense" ]
null
null
null
from django.contrib import admin from django.urls import path, include, re_path from core.views import client_view from django.conf import settings from django.conf.urls.static import static from django.http import HttpResponseRedirect from django.views import defaults as default_views from rest_framework.authtoken.vie...
34.533333
93
0.666409
from django.contrib import admin from django.urls import path, include, re_path from core.views import client_view from django.conf import settings from django.conf.urls.static import static from django.http import HttpResponseRedirect from django.views import defaults as default_views from rest_framework.authtoken.vie...
true
true
f738bbdc72e5367719d660a3595ad56aa23dcc85
3,675
py
Python
src/cryptography/hazmat/primitives/kdf/hkdf.py
balabit-deps/balabit-os-6-python-cryptography
c31d184a56a18bad89a6444313367be71b5b0877
[ "Apache-2.0", "BSD-3-Clause" ]
674
2015-11-06T04:22:47.000Z
2022-02-26T17:31:43.000Z
src/cryptography/hazmat/primitives/kdf/hkdf.py
balabit-deps/balabit-os-6-python-cryptography
c31d184a56a18bad89a6444313367be71b5b0877
[ "Apache-2.0", "BSD-3-Clause" ]
713
2015-11-06T10:48:58.000Z
2018-11-27T16:32:18.000Z
src/cryptography/hazmat/primitives/kdf/hkdf.py
balabit-deps/balabit-os-6-python-cryptography
c31d184a56a18bad89a6444313367be71b5b0877
[ "Apache-2.0", "BSD-3-Clause" ]
106
2015-12-07T11:21:06.000Z
2022-03-11T10:58:41.000Z
# This file is dual licensed under the terms of the Apache License, Version # 2.0, and the BSD License. See the LICENSE file in the root of this repository # for complete details. from __future__ import absolute_import, division, print_function import six from cryptography import utils from cryptography.exceptions i...
31.410256
79
0.647075
from __future__ import absolute_import, division, print_function import six from cryptography import utils from cryptography.exceptions import ( AlreadyFinalized, InvalidKey, UnsupportedAlgorithm, _Reasons ) from cryptography.hazmat.backends.interfaces import HMACBackend from cryptography.hazmat.primitives im...
true
true
f738bce587654bcba0eb98a3fd5794ef99517ba5
45
py
Python
Python/basics/one.py
Tikam02/Data_Structure_Algorithms
7c17f744975a72fa42f0f3f892c0b7e041cdef0c
[ "MIT" ]
null
null
null
Python/basics/one.py
Tikam02/Data_Structure_Algorithms
7c17f744975a72fa42f0f3f892c0b7e041cdef0c
[ "MIT" ]
null
null
null
Python/basics/one.py
Tikam02/Data_Structure_Algorithms
7c17f744975a72fa42f0f3f892c0b7e041cdef0c
[ "MIT" ]
null
null
null
print(*range(1, int(input()) + 1), sep="")
22.5
44
0.511111
print(*range(1, int(input()) + 1), sep="")
true
true
f738be281d99251b10d7793746ea257565038f81
147
py
Python
socialcrawl/auth_sample.py
enterstudio/socialcrawl
8ad0081db3eafe96132291e579984e504c48021f
[ "MIT" ]
13
2015-03-04T22:34:28.000Z
2021-12-26T06:27:21.000Z
socialcrawl/auth_sample.py
MrMugiwara/socialcrawl
8ad0081db3eafe96132291e579984e504c48021f
[ "MIT" ]
2
2017-01-28T21:45:53.000Z
2018-08-05T10:58:15.000Z
socialcrawl/auth_sample.py
enterstudio/socialcrawl
8ad0081db3eafe96132291e579984e504c48021f
[ "MIT" ]
4
2016-09-19T20:29:34.000Z
2020-07-24T18:04:00.000Z
"""Authentication tokens for twitter and facebook""" TWITTER_ACCESS_TOKEN = "MyTwitterAccessToken" FACEBOOK_ACCESS_TOKEN = "MyFacebookAccessToken"
36.75
52
0.836735
TWITTER_ACCESS_TOKEN = "MyTwitterAccessToken" FACEBOOK_ACCESS_TOKEN = "MyFacebookAccessToken"
true
true
f738be426977d8a67731ddcf2d9214283a77f7e5
6,713
py
Python
asposetaskscloud/models/aspose_response.py
aspose-tasks-cloud/aspose-tasks-cloud-python
d1852a02fb1aa2591501a34d5e56079f8aac43f0
[ "MIT" ]
2
2021-08-16T09:25:51.000Z
2022-01-27T20:20:41.000Z
asposetaskscloud/models/aspose_response.py
aspose-tasks-cloud/aspose-tasks-cloud-python
d1852a02fb1aa2591501a34d5e56079f8aac43f0
[ "MIT" ]
null
null
null
asposetaskscloud/models/aspose_response.py
aspose-tasks-cloud/aspose-tasks-cloud-python
d1852a02fb1aa2591501a34d5e56079f8aac43f0
[ "MIT" ]
null
null
null
# coding: utf-8 # ----------------------------------------------------------------------------------- # <copyright company="Aspose" file="AsposeResponse.py"> # Copyright (c) 2020 Aspose.Tasks Cloud # </copyright> # <summary> # Permission is hereby granted, free of charge, to any person obtaining a copy # of this s...
36.091398
90
0.614032
import pprint import re import six class AsposeResponse(object): swagger_types = { 'code': 'int', 'status': 'str' } attribute_map = { 'code': 'code', 'status': 'status' } discriminator_value_class_map = { 'TaskLinkResponse': 'T...
true
true
f738bfa6b1263c0bb166fb26f531cc3af19dccd5
1,706
py
Python
PYTHON/practice/lru_cache/doubly_linked_list.py
Web-Dev-Collaborative/DS-ALGO-OFFICIAL
6d7195d33c28a0fe22f12231efffb39f4bf05c97
[ "Apache-2.0" ]
71
2019-03-05T04:44:48.000Z
2022-03-24T09:47:48.000Z
PYTHON/practice/lru_cache/doubly_linked_list.py
Web-Dev-Collaborative/DS-ALGO-OFFICIAL
6d7195d33c28a0fe22f12231efffb39f4bf05c97
[ "Apache-2.0" ]
null
null
null
PYTHON/practice/lru_cache/doubly_linked_list.py
Web-Dev-Collaborative/DS-ALGO-OFFICIAL
6d7195d33c28a0fe22f12231efffb39f4bf05c97
[ "Apache-2.0" ]
37
2019-03-07T05:08:03.000Z
2022-01-05T11:32:51.000Z
"""Each ListNode holds a reference to its previous node as well as its next node in the List.""" class ListNode: def __init__(self, value, prev=None, next=None): self.value = value self.prev = prev self.next = next """Wrap the given value in a ListNode and insert it after this node. Note that this no...
25.088235
58
0.685229
class ListNode: def __init__(self, value, prev=None, next=None): self.value = value self.prev = prev self.next = next def insert_after(self, value): current_next = self.next self.next = ListNode(value, self, current_next) if current_next: current_next.prev = self.next def insert_be...
true
true
f738c00af6e1c6e7598042f41faf3534b5051ca6
218
py
Python
codeforces.com/202A/solution.py
zubtsov/competitive-programming
919d63130144347d7f6eddcf8f5bc2afb85fddf3
[ "MIT" ]
null
null
null
codeforces.com/202A/solution.py
zubtsov/competitive-programming
919d63130144347d7f6eddcf8f5bc2afb85fddf3
[ "MIT" ]
null
null
null
codeforces.com/202A/solution.py
zubtsov/competitive-programming
919d63130144347d7f6eddcf8f5bc2afb85fddf3
[ "MIT" ]
null
null
null
s = input() count = 1 max_char = s[0] for i in range(1, len(s)): if ascii(s[i]) > ascii(max_char): max_char = s[i] count = 1 elif s[i] == max_char: count += 1 print(max_char * count)
15.571429
37
0.522936
s = input() count = 1 max_char = s[0] for i in range(1, len(s)): if ascii(s[i]) > ascii(max_char): max_char = s[i] count = 1 elif s[i] == max_char: count += 1 print(max_char * count)
true
true
f738c0be232c9371760bd3db4e9fc48ae12ce15a
6,673
py
Python
zerver/webhooks/splunk/tests.py
TylerPham2000/zulip
2e7aaba0dde5517b4a55cb0bd782f009be45e3ba
[ "Apache-2.0" ]
2
2020-11-12T12:28:46.000Z
2020-11-16T11:17:46.000Z
zerver/webhooks/splunk/tests.py
TylerPham2000/zulip
2e7aaba0dde5517b4a55cb0bd782f009be45e3ba
[ "Apache-2.0" ]
1
2021-08-05T14:46:02.000Z
2021-08-05T14:46:02.000Z
zerver/webhooks/splunk/tests.py
TylerPham2000/zulip
2e7aaba0dde5517b4a55cb0bd782f009be45e3ba
[ "Apache-2.0" ]
1
2021-08-05T14:27:13.000Z
2021-08-05T14:27:13.000Z
from zerver.lib.test_classes import WebhookTestCase class SplunkHookTests(WebhookTestCase): STREAM_NAME = "splunk" URL_TEMPLATE = "/api/v1/external/splunk?api_key={api_key}&stream={stream}" FIXTURE_DIR_NAME = "splunk" def test_splunk_search_one_result(self) -> None: self.url = self.build_web...
39.720238
445
0.671212
from zerver.lib.test_classes import WebhookTestCase class SplunkHookTests(WebhookTestCase): STREAM_NAME = "splunk" URL_TEMPLATE = "/api/v1/external/splunk?api_key={api_key}&stream={stream}" FIXTURE_DIR_NAME = "splunk" def test_splunk_search_one_result(self) -> None: self.url = self.build_web...
true
true
f738c0cf5e85f6761c0e2399f730cb999ee7c2cc
391
py
Python
piawareradar/const_touch.py
hippyau/PiAwareRadar
6cfe30aea8f7bb7d5977d19aeb01cfbe42788a2d
[ "MIT" ]
24
2015-11-11T17:29:45.000Z
2021-02-06T17:41:35.000Z
piawareradar/const_touch.py
hippyau/PiAwareRadar
6cfe30aea8f7bb7d5977d19aeb01cfbe42788a2d
[ "MIT" ]
null
null
null
piawareradar/const_touch.py
hippyau/PiAwareRadar
6cfe30aea8f7bb7d5977d19aeb01cfbe42788a2d
[ "MIT" ]
3
2017-02-10T03:11:48.000Z
2021-01-22T14:33:30.000Z
BLACK = (0, 0, 0) GREEN = (0, 255, 0) SIZE = (800, 480) RADARRECT = (165, 5, 470, 470) CLOSERECT = (760, 20, 20, 20) SCALEPLUSRECT = (760, 50, 20, 20) SCALENEGRECT = (730, 50, 20, 20) TITLEPOS = (10, 10) FLIGHTDATAPOS = (620, 330) FLIGHTDATARECT = (FLIGHTDATAPOS[0], FLIGHTDATAPOS[1], 180, 150) FLIGHTDATATIMEOUT = 30 FO...
24.4375
63
0.667519
BLACK = (0, 0, 0) GREEN = (0, 255, 0) SIZE = (800, 480) RADARRECT = (165, 5, 470, 470) CLOSERECT = (760, 20, 20, 20) SCALEPLUSRECT = (760, 50, 20, 20) SCALENEGRECT = (730, 50, 20, 20) TITLEPOS = (10, 10) FLIGHTDATAPOS = (620, 330) FLIGHTDATARECT = (FLIGHTDATAPOS[0], FLIGHTDATAPOS[1], 180, 150) FLIGHTDATATIMEOUT = 30 FO...
true
true
f738c1c2441bd105783c6c401a65daa59455be64
1,861
py
Python
tests/test_mean_std.py
liuzuxin/RL-Safety-Algorithms
2575225b1ea8ce12e1e13f7a81f8dda7b4189708
[ "MIT" ]
4
2021-09-05T17:49:02.000Z
2021-12-22T03:13:39.000Z
tests/test_mean_std.py
liuzuxin/RL-Safety-Algorithms
2575225b1ea8ce12e1e13f7a81f8dda7b4189708
[ "MIT" ]
null
null
null
tests/test_mean_std.py
liuzuxin/RL-Safety-Algorithms
2575225b1ea8ce12e1e13f7a81f8dda7b4189708
[ "MIT" ]
2
2021-09-05T17:49:07.000Z
2021-11-30T17:36:30.000Z
import unittest import numpy as np import torch from rl_safety_algorithms.common.online_mean_std import OnlineMeanStd import rl_safety_algorithms.common.mpi_tools as mpi_tools class TestOnlineMeanStd(unittest.TestCase): """ Testing the non-MPI version. """ @staticmethod def perform_single_pass(rms, i...
32.086207
79
0.617947
import unittest import numpy as np import torch from rl_safety_algorithms.common.online_mean_std import OnlineMeanStd import rl_safety_algorithms.common.mpi_tools as mpi_tools class TestOnlineMeanStd(unittest.TestCase): @staticmethod def perform_single_pass(rms, input_shape) -> bool: x = torch.from_n...
true
true
f738c2aca32bd7a909ae9cff8505b2039bef1b0d
900
py
Python
q2_composition/_impute.py
Jiung-Wen/q2-composition
c543f50173691c539036313a21985e4178e86b14
[ "BSD-3-Clause" ]
null
null
null
q2_composition/_impute.py
Jiung-Wen/q2-composition
c543f50173691c539036313a21985e4178e86b14
[ "BSD-3-Clause" ]
null
null
null
q2_composition/_impute.py
Jiung-Wen/q2-composition
c543f50173691c539036313a21985e4178e86b14
[ "BSD-3-Clause" ]
null
null
null
# ---------------------------------------------------------------------------- # Copyright (c) 2016-2019, QIIME 2 development team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file LICENSE, distributed with this software. # ------------------------------------------------...
37.5
78
0.551111
import biom def add_pseudocount(table: biom.Table, pseudocount: int = 1) -> biom.Table: # all values). result = biom.Table( [v + pseudocount for v in table.iter_data(dense=True, axis='observation')], table.ids(axis='observation'), tab...
true
true
f738c3856f1b160339b9d8cc5f5b7be11c71155a
3,135
py
Python
driverapp/models.py
manisharmagarg/nessus-driver
b0aef1a9c6ec5a00036c3040e062a334b1a1ca7f
[ "Apache-2.0" ]
null
null
null
driverapp/models.py
manisharmagarg/nessus-driver
b0aef1a9c6ec5a00036c3040e062a334b1a1ca7f
[ "Apache-2.0" ]
null
null
null
driverapp/models.py
manisharmagarg/nessus-driver
b0aef1a9c6ec5a00036c3040e062a334b1a1ca7f
[ "Apache-2.0" ]
null
null
null
from driverapp import db import uuid import datetime from sqlalchemy import Column, Integer, Text from sqlalchemy import ForeignKey # from sqlalchemy.dialects.postgresql import JSON, JSONB def generate_uuid(): return str(uuid.uuid4()) class Events(db.Model): id = db.Column(Integer, primary_key=True) red...
34.076087
75
0.635088
from driverapp import db import uuid import datetime from sqlalchemy import Column, Integer, Text from sqlalchemy import ForeignKey def generate_uuid(): return str(uuid.uuid4()) class Events(db.Model): id = db.Column(Integer, primary_key=True) redtree_event_id = db.Column(Integer, nullable=True) ev...
true
true
f738c45d1f5cf19acf9d47da5e8341ee1d71c692
570
py
Python
common/util/updateAmpPhase.py
silky/Qlab
ce4085d3ad5bac7f6056c6b71e4cdfad2d70820c
[ "Apache-2.0" ]
1
2019-06-27T11:33:05.000Z
2019-06-27T11:33:05.000Z
common/util/updateAmpPhase.py
silky/Qlab
ce4085d3ad5bac7f6056c6b71e4cdfad2d70820c
[ "Apache-2.0" ]
null
null
null
common/util/updateAmpPhase.py
silky/Qlab
ce4085d3ad5bac7f6056c6b71e4cdfad2d70820c
[ "Apache-2.0" ]
null
null
null
import argparse import sys, os parser = argparse.ArgumentParser() parser.add_argument('pyqlabpath', help='path to PyQLab directory') parser.add_argument('physChan', help='physChan') parser.add_argument('ampFactor', type=float, help='ampFactor') parser.add_argument('phaseSkew', type=float, help='phaseSkew') args = parse...
33.529412
66
0.796491
import argparse import sys, os parser = argparse.ArgumentParser() parser.add_argument('pyqlabpath', help='path to PyQLab directory') parser.add_argument('physChan', help='physChan') parser.add_argument('ampFactor', type=float, help='ampFactor') parser.add_argument('phaseSkew', type=float, help='phaseSkew') args = parse...
true
true
f738c485df6fda414acd48bfe683ecab9bc1709e
8,005
py
Python
desr/sympy_helper.py
tanbur/diffalg
cbebb5db36f4d112ebf6e09ace2bbf9c5cf0c2fb
[ "Apache-2.0" ]
2
2019-04-01T06:43:27.000Z
2022-01-14T06:38:21.000Z
desr/sympy_helper.py
tanbur/diffalg
cbebb5db36f4d112ebf6e09ace2bbf9c5cf0c2fb
[ "Apache-2.0" ]
1
2021-06-01T22:17:47.000Z
2021-06-01T22:17:47.000Z
desr/sympy_helper.py
tanbur/diffalg
cbebb5db36f4d112ebf6e09ace2bbf9c5cf0c2fb
[ "Apache-2.0" ]
1
2020-04-06T23:44:22.000Z
2020-04-06T23:44:22.000Z
""" Created on Fri Dec 26 12:35:16 2014 Helper functions to deal with sympy expressions and equations Author: Richard Tanburn (richard.tanburn@gmail.com) """ import fractions import re import sympy from __builtin__ import isinstance def is_monomial(expr): ''' Determine whether expr is a monomial ...
31.640316
93
0.540537
import fractions import re import sympy from __builtin__ import isinstance def is_monomial(expr): _const, _expr = expr.expand().as_coeff_add() if (_const != 0 and len(_expr)) or (len(_expr) > 1): return False return True def monomial_to_powers(monomial, variables): if not is_monom...
true
true
f738c54d1b3e71e3312699678842c098ea8f797e
3,481
py
Python
src/frameworks/detrac_torch/feature_composer.py
abdelsamea/DeTraC
2c94d55908285fc9cbb24086da63078ee917525a
[ "MIT" ]
1
2020-09-17T14:17:50.000Z
2020-09-17T14:17:50.000Z
src/frameworks/detrac_torch/feature_composer.py
arkkhanu/DeTraC_COVId19
ab03719b49a1a048f74f08600a6670f6757bbe60
[ "MIT" ]
null
null
null
src/frameworks/detrac_torch/feature_composer.py
arkkhanu/DeTraC_COVId19
ab03719b49a1a048f74f08600a6670f6757bbe60
[ "MIT" ]
1
2021-04-21T15:04:49.000Z
2021-04-21T15:04:49.000Z
import tensorflow as tf from sklearn.metrics import confusion_matrix import numpy as np from tools.preprocessing import preprocess_images, preprocess_single_image from tools.kfold import KFold_cross_validation_split from tools.extraction_and_metrics import extract_features, compute_confusion_matrix from .network impo...
24.173611
125
0.625395
import tensorflow as tf from sklearn.metrics import confusion_matrix import numpy as np from tools.preprocessing import preprocess_images, preprocess_single_image from tools.kfold import KFold_cross_validation_split from tools.extraction_and_metrics import extract_features, compute_confusion_matrix from .network impo...
true
true
f738c609edefe08595c13dc1da0d70448f547242
1,196
py
Python
metric.py
rangsimanketkaew/learning-to-smell
17021a82f7fcdda00536a906dd8dc64cb5663261
[ "MIT" ]
1
2021-01-01T13:11:39.000Z
2021-01-01T13:11:39.000Z
metric.py
rangsimanketkaew/learning-to-smell
17021a82f7fcdda00536a906dd8dc64cb5663261
[ "MIT" ]
null
null
null
metric.py
rangsimanketkaew/learning-to-smell
17021a82f7fcdda00536a906dd8dc64cb5663261
[ "MIT" ]
null
null
null
import tensorflow as tf # from tensorflow.python.framework.ops import disable_eager_execution # disable_eager_execution() from tensorflow.keras import backend as K def jaccard_tensorflow(y_true, y_pred): """Jaccard score of Tensor in tensorflow for graph mode. """ intersection = tf.sets.intersection(y_tru...
36.242424
111
0.704013
import tensorflow as tf from tensorflow.keras import backend as K def jaccard_tensorflow(y_true, y_pred): intersection = tf.sets.intersection(y_true[None:], y_pred[None:]) intersection = tf.sparse.to_dense(intersection)[0] union = tf.sets.union(y_true[None:], y_pred[None:]) union = tf.sparse.to_dens...
true
true
f738c6a9f21e18499d42ab07ca78ccb41d88c010
1,673
py
Python
code/plot_wind.py
faver2014/InertialNav_Learn
58a0b6db95918e037ed6d08e5d2c8ba2ce388554
[ "BSD-3-Clause" ]
2
2019-09-01T13:12:32.000Z
2019-10-06T13:02:31.000Z
code/plot_wind.py
faver2014/InertialNav_Learn
58a0b6db95918e037ed6d08e5d2c8ba2ce388554
[ "BSD-3-Clause" ]
null
null
null
code/plot_wind.py
faver2014/InertialNav_Learn
58a0b6db95918e037ed6d08e5d2c8ba2ce388554
[ "BSD-3-Clause" ]
1
2020-03-08T18:30:10.000Z
2020-03-08T18:30:10.000Z
#!/bin/python import matplotlib as mpl import matplotlib.pyplot as plt import matplotlib.cbook as cbook import numpy as np import math # State vector: # 0-3: quaternions (q0, q1, q2, q3) # 4-6: Velocity - m/sec (North, East, Down) # 7-9: Position - m (North, East, Down) # 10-12: Delta Angle bias - rad (X,Y,Z) #...
34.854167
92
0.595935
import matplotlib as mpl import matplotlib.pyplot as plt import matplotlib.cbook as cbook import numpy as np import math try: data = np.genfromtxt('StateDataOut.txt', delimiter=' ', skip_header=1, skip_footer=1, names=['time', 'q1', 'q2', 'q3', 'q4', 'Vn', 'Ve', 'Vd', 'Pn', 'Pe', 'Pd', 'Bx',...
true
true
f738c77366bc2eac6bc9b6f0231ea2a809e38aa3
1,595
py
Python
0221/solution.py
yuyan1991/leetcode
eec7874b513318a27af7517663473c6d985edf70
[ "MIT" ]
null
null
null
0221/solution.py
yuyan1991/leetcode
eec7874b513318a27af7517663473c6d985edf70
[ "MIT" ]
null
null
null
0221/solution.py
yuyan1991/leetcode
eec7874b513318a27af7517663473c6d985edf70
[ "MIT" ]
null
null
null
class Solution: def maximalSquare(self, matrix: List[List[str]]) -> int: n = len(matrix) m = len(matrix[0]) sum = [[0 for i in range(m)] for i in range(n)] if matrix[0][0] == '1': sum[0][0] = 1 else: sum[0][0] = 0 for i in range(1, m): ...
35.444444
84
0.344828
class Solution: def maximalSquare(self, matrix: List[List[str]]) -> int: n = len(matrix) m = len(matrix[0]) sum = [[0 for i in range(m)] for i in range(n)] if matrix[0][0] == '1': sum[0][0] = 1 else: sum[0][0] = 0 for i in range(1, m): ...
true
true
f738c775e314127c27326ce6ca14c2f665ce477e
5,336
py
Python
src/petronia/base/events/component_events.py
groboclown/petronia
486338023d19cee989e92f0c5692680f1a37811f
[ "MIT" ]
19
2017-06-21T10:28:24.000Z
2021-12-31T11:49:28.000Z
src/petronia/base/events/component_events.py
groboclown/petronia
486338023d19cee989e92f0c5692680f1a37811f
[ "MIT" ]
10
2016-11-11T18:57:57.000Z
2021-02-01T15:33:43.000Z
src/petronia/base/events/component_events.py
groboclown/petronia
486338023d19cee989e92f0c5692680f1a37811f
[ "MIT" ]
3
2017-09-17T03:29:35.000Z
2019-06-03T10:43:08.000Z
""" The events around component lifecycle creation. """ from typing import Generic from ..internal_.identity_types import ( ParticipantId, ComponentId, ) from ..internal_.bus_types import ( EventBus, EventId, EventCallback, ListenerSetup, ) from ..util.memory import T from ..util.messages import UserMessa...
29
90
0.656859
from typing import Generic from ..internal_.identity_types import ( ParticipantId, ComponentId, ) from ..internal_.bus_types import ( EventBus, EventId, EventCallback, ListenerSetup, ) from ..util.memory import T from ..util.messages import UserMessage EVENT_ID_REQUEST_NEW_COMPONENT = EventId('petroni...
true
true
f738c8435d3fbed95a6e9687a5bbe8f05cb05aab
4,476
py
Python
__init__.py
niekvdg/domoticz_skill
8b6ee046350c6ec14337fb1dd6c880b19acb1adb
[ "MIT" ]
null
null
null
__init__.py
niekvdg/domoticz_skill
8b6ee046350c6ec14337fb1dd6c880b19acb1adb
[ "MIT" ]
null
null
null
__init__.py
niekvdg/domoticz_skill
8b6ee046350c6ec14337fb1dd6c880b19acb1adb
[ "MIT" ]
null
null
null
# Copyright 2016 Mycroft AI, Inc. # # This file is part of Mycroft Core. # # Mycroft Core is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later versio...
36.390244
98
0.604781
from adapt.intent import IntentBuilder from mycroft.skills.core import MycroftSkill from mycroft.util.log import getLogger from os.path import dirname, abspath from .Domoticz import Domoticz import sys import re __author__ = 'mTreussart' sys.path.append(abspath(dirname(__file__))) LOGGER = getLogger(_...
true
true
f738c8d7c592d77c0c81025d123c1cecf33946f4
154
py
Python
pysensors/basis/__init__.py
Jimmy-INL/pysensors
62b79a233a551ae01125e20e06fde0c96b4dffd2
[ "MIT" ]
null
null
null
pysensors/basis/__init__.py
Jimmy-INL/pysensors
62b79a233a551ae01125e20e06fde0c96b4dffd2
[ "MIT" ]
null
null
null
pysensors/basis/__init__.py
Jimmy-INL/pysensors
62b79a233a551ae01125e20e06fde0c96b4dffd2
[ "MIT" ]
null
null
null
from ._identity import Identity from ._random_projection import RandomProjection from ._svd import SVD __all__ = ["Identity", "SVD", "RandomProjection"]
25.666667
49
0.792208
from ._identity import Identity from ._random_projection import RandomProjection from ._svd import SVD __all__ = ["Identity", "SVD", "RandomProjection"]
true
true
f738c9a6762bcb2a35099b936401cb4af0906605
4,669
py
Python
src/clients/ctm_api_client/models/raw_cms_xml_request.py
IceT-M/ctm-python-client
0ef1d8a3c9a27a01c088be1cdf5d177d25912bac
[ "BSD-3-Clause" ]
5
2021-12-01T18:40:00.000Z
2022-03-04T10:51:44.000Z
src/clients/ctm_api_client/models/raw_cms_xml_request.py
IceT-M/ctm-python-client
0ef1d8a3c9a27a01c088be1cdf5d177d25912bac
[ "BSD-3-Clause" ]
3
2022-02-21T20:08:32.000Z
2022-03-16T17:41:03.000Z
src/clients/ctm_api_client/models/raw_cms_xml_request.py
IceT-M/ctm-python-client
0ef1d8a3c9a27a01c088be1cdf5d177d25912bac
[ "BSD-3-Clause" ]
7
2021-12-01T11:59:16.000Z
2022-03-01T18:16:40.000Z
# coding: utf-8 """ Control-M Services Provides access to BMC Control-M Services # noqa: E501 OpenAPI spec version: 9.20.215 Contact: customer_support@bmc.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six from clients.ct...
29.929487
99
0.602484
import pprint import re import six from clients.ctm_api_client.configuration import Configuration class RawCmsXmlRequest(object): swagger_types = { "raw_xml_request": "str", "encryption_metadata": "EncryptionMetadata", } attribute_map = { "raw_xml_request": "rawXmlRequest...
true
true
f738ca239bd2274d28c1686d0902a2152d62598d
5,973
py
Python
tests/test_foreignkey.py
chenmin1992/SchemaObject
e7eefb07d842a8ac026e2431c799430ba730fcfe
[ "Apache-2.0" ]
18
2015-04-11T18:28:07.000Z
2020-12-11T08:14:48.000Z
tests/test_foreignkey.py
chenmin1992/SchemaObject
e7eefb07d842a8ac026e2431c799430ba730fcfe
[ "Apache-2.0" ]
8
2015-09-03T18:38:48.000Z
2020-01-25T21:40:47.000Z
tests/test_foreignkey.py
chenmin1992/SchemaObject
e7eefb07d842a8ac026e2431c799430ba730fcfe
[ "Apache-2.0" ]
27
2015-02-20T22:01:39.000Z
2021-07-12T15:39:29.000Z
#!/usr/bin/python import re import unittest import schemaobject class TestForeignKeySchema(unittest.TestCase): def setUp(self): self.database_url = "mysql://root:root@localhost:3306/" self.schema = schemaobject.SchemaObject(self.database_url + 'sakila', charset='utf8') self.fk = self.sche...
48.169355
186
0.680897
import re import unittest import schemaobject class TestForeignKeySchema(unittest.TestCase): def setUp(self): self.database_url = "mysql://root:root@localhost:3306/" self.schema = schemaobject.SchemaObject(self.database_url + 'sakila', charset='utf8') self.fk = self.schema.selected.table...
true
true
f738ca4546da7ac1bfe5e0404bac34620c087ed6
10,454
py
Python
xlson/xl_preparation.py
loven-doo/xlson
2461db4c73bbdc5c84b4a11eb2241c7614ab84f7
[ "BSD-3-Clause" ]
null
null
null
xlson/xl_preparation.py
loven-doo/xlson
2461db4c73bbdc5c84b4a11eb2241c7614ab84f7
[ "BSD-3-Clause" ]
null
null
null
xlson/xl_preparation.py
loven-doo/xlson
2461db4c73bbdc5c84b4a11eb2241c7614ab84f7
[ "BSD-3-Clause" ]
null
null
null
import datetime from copy import deepcopy from openpyxl import load_workbook from openpyxl.utils import coordinate_to_tuple from xlrd import open_workbook, xldate_as_tuple from xlson.constants import xlson_logger from xlson.formatting import cell_meta_to_dict from xlson.handlers import XLSonHandler, XLSonSheetHandler...
43.92437
121
0.55816
import datetime from copy import deepcopy from openpyxl import load_workbook from openpyxl.utils import coordinate_to_tuple from xlrd import open_workbook, xldate_as_tuple from xlson.constants import xlson_logger from xlson.formatting import cell_meta_to_dict from xlson.handlers import XLSonHandler, XLSonSheetHandler...
true
true
f738ca9f58a637abb2c6f7fcd732220c4a38674a
483
py
Python
imagersite/imager_images/migrations/0002_auto_20171203_2331.py
famavott/django-imager
a9867656af7a665f81574c1be5d50a2a703b4af4
[ "MIT" ]
null
null
null
imagersite/imager_images/migrations/0002_auto_20171203_2331.py
famavott/django-imager
a9867656af7a665f81574c1be5d50a2a703b4af4
[ "MIT" ]
1
2017-11-27T05:32:39.000Z
2017-11-27T05:32:39.000Z
imagersite/imager_images/migrations/0002_auto_20171203_2331.py
famavott/django-imager
a9867656af7a665f81574c1be5d50a2a703b4af4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2017-12-03 23:31 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('imager_images', '0001_initial'), ] operations = [ migrations.AlterField( ...
23
89
0.625259
from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('imager_images', '0001_initial'), ] operations = [ migrations.AlterField( model_name='album', name='photo', fie...
true
true
f738cbc0425789b9ea6b28462237198682a598ac
2,823
py
Python
mindspore/python/mindspore/train/callback/_loss_monitor.py
zimo-geek/mindspore
665ec683d4af85c71b2a1f0d6829356f2bc0e1ff
[ "Apache-2.0" ]
1
2021-12-27T13:42:29.000Z
2021-12-27T13:42:29.000Z
mindspore/python/mindspore/train/callback/_loss_monitor.py
zimo-geek/mindspore
665ec683d4af85c71b2a1f0d6829356f2bc0e1ff
[ "Apache-2.0" ]
null
null
null
mindspore/python/mindspore/train/callback/_loss_monitor.py
zimo-geek/mindspore
665ec683d4af85c71b2a1f0d6829356f2bc0e1ff
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
38.671233
116
0.650372
import numpy as np from mindspore.common.tensor import Tensor from ._callback import Callback class LossMonitor(Callback): def __init__(self, per_print_times=1): super(LossMonitor, self).__init__() if not isinstance(per_print_times, int) or per_print_times < 0: raise V...
true
true
f738cc052adb066e7d7edc7e0e9e7e58caf06a76
1,459
py
Python
sandbox/lib/jumpscale/JumpscaleLibsExtra/sal_zos/tfchain/TfChainFactory.py
threefoldtech/threebot_prebuilt
1f0e1c65c14cef079cd80f73927d7c8318755c48
[ "Apache-2.0" ]
1
2020-10-05T08:53:57.000Z
2020-10-05T08:53:57.000Z
sandbox/lib/jumpscale/JumpscaleLibsExtra/sal_zos/tfchain/TfChainFactory.py
threefoldtech/threebot_prebuilt
1f0e1c65c14cef079cd80f73927d7c8318755c48
[ "Apache-2.0" ]
17
2019-11-14T08:41:37.000Z
2020-05-27T09:23:51.000Z
sandbox/lib/jumpscale/JumpscaleLibsExtra/sal_zos/tfchain/TfChainFactory.py
threefoldtech/threebot_prebuilt
1f0e1c65c14cef079cd80f73927d7c8318755c48
[ "Apache-2.0" ]
null
null
null
from .TfChain import TfChainClient, TfChainExplorer, TfChainBridged, TfChainDaemon from Jumpscale import j JSBASE = j.baseclasses.object_config_collection class TfChainFactory(JSBASE): __jslocation__ = "j.sal_zos.tfchain" def daemon( self, name, container, data_dir="/mnt/data...
30.395833
116
0.638794
from .TfChain import TfChainClient, TfChainExplorer, TfChainBridged, TfChainDaemon from Jumpscale import j JSBASE = j.baseclasses.object_config_collection class TfChainFactory(JSBASE): __jslocation__ = "j.sal_zos.tfchain" def daemon( self, name, container, data_dir="/mnt/data...
true
true
f738cd121013442359615340082f55926bc27b78
4,808
py
Python
acme/adders/reverb/sequence.py
StepNeverStop/acme
1966849118ac25a86dcbf9b8edf9c9615cde41ff
[ "Apache-2.0" ]
null
null
null
acme/adders/reverb/sequence.py
StepNeverStop/acme
1966849118ac25a86dcbf9b8edf9c9615cde41ff
[ "Apache-2.0" ]
null
null
null
acme/adders/reverb/sequence.py
StepNeverStop/acme
1966849118ac25a86dcbf9b8edf9c9615cde41ff
[ "Apache-2.0" ]
null
null
null
# python3 # Copyright 2018 DeepMind Technologies Limited. 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 re...
35.094891
80
0.703619
from typing import Optional from acme.adders.reverb import base from acme.adders.reverb import utils import reverb import tree class SequenceAdder(base.ReverbAdder): def __init__( self, client: reverb.Client, sequence_length: int, period: int, delta_encoded: bool = F...
true
true
f738cd4aef654b46eaa7486f003ac40a4d71b295
4,097
py
Python
onnx/backend/test/case/node/reducemin.py
How-Wang/onnx
c940fa3fea84948e46603cab2f86467291443beb
[ "Apache-2.0" ]
1
2022-02-04T07:45:14.000Z
2022-02-04T07:45:14.000Z
onnx/backend/test/case/node/reducemin.py
How-Wang/onnx
c940fa3fea84948e46603cab2f86467291443beb
[ "Apache-2.0" ]
null
null
null
onnx/backend/test/case/node/reducemin.py
How-Wang/onnx
c940fa3fea84948e46603cab2f86467291443beb
[ "Apache-2.0" ]
null
null
null
# SPDX-License-Identifier: Apache-2.0 from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import numpy as np # type: ignore import onnx from ..base import Base from . import expect class ReduceMin(Base): @staticm...
33.308943
109
0.573346
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import numpy as np import onnx from ..base import Base from . import expect class ReduceMin(Base): @staticmethod def export_do_not_keepdims() -> None: ...
true
true
f738cdc91311c1bb24cd8c46ec6c3b5cb5d0cfe4
2,509
py
Python
qcinfo/D.py
icharm/cninfo-sdk
dff3f7fe3044c203d7d9a8c758392053c8b26ee5
[ "MIT" ]
1
2019-04-14T05:37:56.000Z
2019-04-14T05:37:56.000Z
qcinfo/D.py
icharm/quantc
dff3f7fe3044c203d7d9a8c758392053c8b26ee5
[ "MIT" ]
null
null
null
qcinfo/D.py
icharm/quantc
dff3f7fe3044c203d7d9a8c758392053c8b26ee5
[ "MIT" ]
1
2018-10-18T06:43:43.000Z
2018-10-18T06:43:43.000Z
# -*- coding: UTF-8 -*- # Stock data fetch from website. from qcinfo import xueqiu as XQ from qcinfo import qcrepo, gtimg from qcinfo.log import qcinfo_log logger = qcinfo_log() async def company_info_async(code): ''' 上市公司基本信息 :param code: Stock code :return: ''' return await XQ.company_info_a...
24.359223
92
0.555201
from qcinfo import xueqiu as XQ from qcinfo import qcrepo, gtimg from qcinfo.log import qcinfo_log logger = qcinfo_log() async def company_info_async(code): return await XQ.company_info_async(code) def quotes(code, type="d"): return qcrepo.quotes(code, type) def quotes_lately(code, type="d"): if type ...
true
true