hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
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
209
max_issues_repo_name
stringlengths
5
121
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
209
max_forks_repo_name
stringlengths
5
121
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
b65708f79844663d5227eae40e33fe52930ab933
18,721
py
Python
sourcecode/System.py
rlp81/CoalOS
f5d2d9bdae8f17ef43b905a9628dd91ef70e0ae5
[ "MIT" ]
3
2021-03-17T22:31:08.000Z
2022-03-30T12:46:39.000Z
sourcecode/System.py
rlp81/CoalOS
f5d2d9bdae8f17ef43b905a9628dd91ef70e0ae5
[ "MIT" ]
1
2022-03-30T19:14:21.000Z
2022-03-30T19:40:38.000Z
sourcecode/System.py
rlp81/CoalOS
f5d2d9bdae8f17ef43b905a9628dd91ef70e0ae5
[ "MIT" ]
3
2021-03-17T22:31:10.000Z
2021-06-17T13:44:38.000Z
from logging import fatal import time import json sysopen = False Topen = False Fopen = False Adpan = False with open("first.json", "r") as f: first = json.load(f) with open("permissions.json", 'r') as f: per = json.load(f) with open("name.json", "r") as f: Termname = json.load(f) whi...
65.003472
135
0.307302
b3f6a564d9fa3457391d3026baa153bd68aa4d78
13,071
py
Python
allel/stats/window.py
petrelharp/scikit-allel
3ad21209c9ad9d7914761be7e04cb6a67fb02024
[ "MIT" ]
null
null
null
allel/stats/window.py
petrelharp/scikit-allel
3ad21209c9ad9d7914761be7e04cb6a67fb02024
[ "MIT" ]
null
null
null
allel/stats/window.py
petrelharp/scikit-allel
3ad21209c9ad9d7914761be7e04cb6a67fb02024
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import, print_function, division import numpy as np from allel.model.ndarray import SortedIndex from allel.util import asarray_ndim, ignore_invalid, check_equal_length def moving_statistic(values, statistic, size, start=0, stop=None, step=None): """Calcu...
28.918142
79
0.60026
9b090affac3ba6390bd54044bec85e12bb7138e3
924
py
Python
scripts/stl/udp_1pkt_dns.py
ajitkhaparde/trex-core
1834ebd49112af0731a819056612dde832f7a94e
[ "Apache-2.0" ]
956
2015-06-24T15:04:55.000Z
2022-03-30T06:25:04.000Z
scripts/stl/udp_1pkt_dns.py
hjat2005/trex-core
400f03c86c844a0096dff3f6b13e58a808aaefff
[ "Apache-2.0" ]
782
2015-09-20T15:19:00.000Z
2022-03-31T23:52:05.000Z
scripts/stl/udp_1pkt_dns.py
hjat2005/trex-core
400f03c86c844a0096dff3f6b13e58a808aaefff
[ "Apache-2.0" ]
429
2015-06-27T19:34:21.000Z
2022-03-23T11:02:51.000Z
from trex_stl_lib.api import * from scapy.layers.dns import * # import from layers. in default only ipv4/ipv6 are imported for speedup import argparse class STLS1(object): def __init__ (self): pass; def create_stream (self): # DNS pkt = Ether()/IP(src="16.0.0.1",dst="48.0.0.1")/UDP...
28
108
0.609307
f563662358baa7bb20d3105d63e8091fce5fb999
861
py
Python
CppSimShared/Python/test_phase_noise_plot.py
silicon-vlsi-org/eda-sue2Plus
83a2afa9c80308d5afe07a3fa0214d8412addb6d
[ "MIT" ]
1
2021-05-30T13:27:33.000Z
2021-05-30T13:27:33.000Z
CppSimShared/Python/test_phase_noise_plot.py
silicon-vlsi-org/eda-sue2Plus
83a2afa9c80308d5afe07a3fa0214d8412addb6d
[ "MIT" ]
null
null
null
CppSimShared/Python/test_phase_noise_plot.py
silicon-vlsi-org/eda-sue2Plus
83a2afa9c80308d5afe07a3fa0214d8412addb6d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import division # import cppsimdata module import os import sys cppsimsharedhome = os.getenv("CPPSIMSHAREDHOME") if cppsimsharedhome != None: CPPSIMSHARED_PATH = '%s' % cppsimsharedhome else: home_dir = os.getenv("HOME") CPPSIMSHARED_PATH = '%s/CppSim/CppSimShared' % h...
22.657895
58
0.722416
fe3aa6d2476a508dff0d5b3f049c27e23699cab9
455
py
Python
data/scripts/templates/object/building/poi/shared_corellia_meatlump_small1.py
obi-two/GameServer
7d37024e2291a97d49522610cd8f1dbe5666afc2
[ "MIT" ]
20
2015-02-23T15:11:56.000Z
2022-03-18T20:56:48.000Z
data/scripts/templates/object/building/poi/shared_corellia_meatlump_small1.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
null
null
null
data/scripts/templates/object/building/poi/shared_corellia_meatlump_small1.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
20
2015-04-04T16:35:59.000Z
2022-03-24T14:54:37.000Z
#### NOTICE: THIS FILE IS AUTOGENERATED #### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY #### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES from swgpy.object import * def create(kernel): result = Building() result.template = "object/building/poi/shared_corellia_meatlump_small1.iff" result.attribute_template_...
26.764706
76
0.731868
2db0af3716a8e7ccb2c2e64743701936f747da92
411
py
Python
userpwd.py
jacksonkirka/bristosoftcontacts
9e4b12cb45b115336af9988c1267a52e4793220d
[ "MIT" ]
null
null
null
userpwd.py
jacksonkirka/bristosoftcontacts
9e4b12cb45b115336af9988c1267a52e4793220d
[ "MIT" ]
null
null
null
userpwd.py
jacksonkirka/bristosoftcontacts
9e4b12cb45b115336af9988c1267a52e4793220d
[ "MIT" ]
null
null
null
#!/usr/bin/python import uuid import hashlib def hashpwd(_pwd): ''' hashpwd hashes a password by NSA Secure Hash Algorithm 2 sha256 algorithm and adds a uuid prefix salt. ''' salt = uuid.uuid4().hex return hashlib.sha256(salt.encode() +\ _pwd.encode()).hexdigest() + ':' + sal...
20.55
61
0.647202
9dad849c0e21778ff5b58c1c14549afea542c081
2,292
py
Python
salt/utils/virt.py
byteskeptical/salt
637fe0b04f38b2274191b005d73b3c6707d7f400
[ "Apache-2.0" ]
12
2015-01-21T00:18:25.000Z
2021-07-11T07:35:26.000Z
salt/utils/virt.py
byteskeptical/salt
637fe0b04f38b2274191b005d73b3c6707d7f400
[ "Apache-2.0" ]
86
2017-01-27T11:54:46.000Z
2020-05-20T06:25:26.000Z
salt/utils/virt.py
byteskeptical/salt
637fe0b04f38b2274191b005d73b3c6707d7f400
[ "Apache-2.0" ]
12
2015-01-05T09:50:42.000Z
2019-08-19T01:43:40.000Z
# -*- coding: utf-8 -*- ''' This module contains routines shared by the virt system. ''' from __future__ import absolute_import, print_function, unicode_literals # Import python libs import os import time import logging # Import salt libs import salt.utils.files log = logging.getLogger(__name__) class VirtKey(obj...
27.614458
89
0.54712
e7a0e933aeb33d0c713b2a951badbb4a2e4906fd
3,830
py
Python
aesara/d3viz/d3viz.py
danhphan/aesara
5a0fb0e731358d54648823170acd911cc1534d6a
[ "BSD-3-Clause" ]
null
null
null
aesara/d3viz/d3viz.py
danhphan/aesara
5a0fb0e731358d54648823170acd911cc1534d6a
[ "BSD-3-Clause" ]
null
null
null
aesara/d3viz/d3viz.py
danhphan/aesara
5a0fb0e731358d54648823170acd911cc1534d6a
[ "BSD-3-Clause" ]
null
null
null
"""Dynamic visualization of Aesara graphs. Author: Christof Angermueller <cangermueller@gmail.com> """ import json import os import shutil from aesara.d3viz.formatting import PyDotFormatter __path__ = os.path.dirname(os.path.realpath(__file__)) def replace_patterns(x, replace): """Replace `replace` in strin...
28.37037
78
0.649086
77958837464b76d1be8bb9627011a10165b72bff
1,784
py
Python
commands/prefix.py
denzven/Denzven-Graphing-Api-Bot
1865fc4e38d363eaef6a6509aaaf0bec9176910a
[ "MIT" ]
2
2021-06-29T06:30:32.000Z
2021-08-08T07:34:42.000Z
commands/prefix.py
denzven/Denzven-Graphing-Api-Bot
1865fc4e38d363eaef6a6509aaaf0bec9176910a
[ "MIT" ]
6
2021-08-30T12:09:23.000Z
2021-12-08T06:33:44.000Z
commands/prefix.py
denzven/Denzven-Graphing-Api-Bot
1865fc4e38d363eaef6a6509aaaf0bec9176910a
[ "MIT" ]
5
2021-08-16T12:29:24.000Z
2021-12-07T23:56:54.000Z
# this deals with setting a custom prefix and writing it to a json file # (not the best way, but works) # Imports from discord.ext import commands import discord import json # config from config import DEFAULT_PREFIX # cog class class Prefix(commands.Cog): def __init__(self, bot): self.bot = bot @c...
35.68
130
0.580717
0e64cb1242e2e5d104f3dbd0f0f7bfd353f7b1b3
6,163
py
Python
fullnode.py
nicoloridulfo/PyChain
d0969abedb6e51f8822c90e4bd74d6ce1c4576e6
[ "MIT" ]
null
null
null
fullnode.py
nicoloridulfo/PyChain
d0969abedb6e51f8822c90e4bd74d6ce1c4576e6
[ "MIT" ]
null
null
null
fullnode.py
nicoloridulfo/PyChain
d0969abedb6e51f8822c90e4bd74d6ce1c4576e6
[ "MIT" ]
null
null
null
#!env/bin/python import json from operator import truediv import socketserver import sys import threading import time import logging from PyChain import Blockchain, request from PyChain.protocol import recv_msg, send_msg """ A PyChain full node This network communicated through sockets. Messages are encoded using JSON...
32.781915
99
0.625994
c91fabb4ca29da3e1b016198247429a6981837d6
2,117
py
Python
sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/catalog/models/acl_create_or_update_parameters.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/catalog/models/acl_create_or_update_parameters.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/catalog/models/acl_create_or_update_parameters.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 ...
40.711538
82
0.629192
f6561d062f07184331a63131600c946dd72ec179
1,896
py
Python
test/test_api_alert_profile_pager_duty_settings.py
hi-artem/twistlock-py
9888e905f5b9d3cc00f9b84244588c0992f8e4f4
[ "RSA-MD" ]
null
null
null
test/test_api_alert_profile_pager_duty_settings.py
hi-artem/twistlock-py
9888e905f5b9d3cc00f9b84244588c0992f8e4f4
[ "RSA-MD" ]
null
null
null
test/test_api_alert_profile_pager_duty_settings.py
hi-artem/twistlock-py
9888e905f5b9d3cc00f9b84244588c0992f8e4f4
[ "RSA-MD" ]
null
null
null
# coding: utf-8 """ Prisma Cloud Compute API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: 21.04.439 Generated by: https://openapi-generator.tech """ from __future__ import absolute_impor...
33.263158
126
0.679325
a8553a1c0e43ae6e5f6cf0b51b3ad365653d0d66
8,103
py
Python
review/review-dev.py
radish608/graduationProject_DL4WebSecurity
1bafeca95d8c02be438b79e8192cae3f624879c9
[ "MIT" ]
1
2020-09-15T01:44:21.000Z
2020-09-15T01:44:21.000Z
review/review-dev.py
radish608/graduationProject_DL4WebSecurity
1bafeca95d8c02be438b79e8192cae3f624879c9
[ "MIT" ]
null
null
null
review/review-dev.py
radish608/graduationProject_DL4WebSecurity
1bafeca95d8c02be438b79e8192cae3f624879c9
[ "MIT" ]
null
null
null
from sklearn.feature_extraction.text import CountVectorizer import os from sklearn.naive_bayes import GaussianNB from sklearn.model_selection import train_test_split from sklearn import metrics import matplotlib.pyplot as plt import numpy as np from sklearn import svm from sklearn.feature_extraction.text import TfidfTr...
32.939024
97
0.626928
c196fa8ba12f2d139b4f3b7233fd4f0bdf53fa7a
391
py
Python
category/migrations/0003_remove_category_slug.py
Moisestuli/karrata
962ce0c573214bfc83720727c9cacae823a8c372
[ "MIT" ]
null
null
null
category/migrations/0003_remove_category_slug.py
Moisestuli/karrata
962ce0c573214bfc83720727c9cacae823a8c372
[ "MIT" ]
null
null
null
category/migrations/0003_remove_category_slug.py
Moisestuli/karrata
962ce0c573214bfc83720727c9cacae823a8c372
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.4 on 2017-11-09 09:41 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('category', '0002_category_upload'), ] operations = [ migrations.RemoveField( ...
19.55
48
0.611253
0b23ee06bb7ff048a89fc89f4563d10a300f6873
37,242
py
Python
tests/installation/test_installer.py
zymergen-luke/poetry
69a6bbe90630b4f1920dc6677771f92f05f564ac
[ "MIT" ]
null
null
null
tests/installation/test_installer.py
zymergen-luke/poetry
69a6bbe90630b4f1920dc6677771f92f05f564ac
[ "MIT" ]
null
null
null
tests/installation/test_installer.py
zymergen-luke/poetry
69a6bbe90630b4f1920dc6677771f92f05f564ac
[ "MIT" ]
null
null
null
from __future__ import unicode_literals import sys import pytest from poetry.installation import Installer as BaseInstaller from poetry.installation.noop_installer import NoopInstaller from poetry.io import NullIO from poetry.packages import Locker as BaseLocker from poetry.packages import ProjectPackage from poetry...
29.393844
119
0.531846
5dbcb3675aafe65972fc85e355fcfd1e5c1bfdad
732
py
Python
THUMT-master/thumt/models/__init__.py
shawnkx/Fast-MoS
af54093c7368da34d6b709ab8aaf4fd2218348d8
[ "MIT" ]
3
2019-07-17T19:44:26.000Z
2020-01-28T04:39:08.000Z
THUMT-master/thumt/models/__init__.py
shawnkx/Fast-MoS
af54093c7368da34d6b709ab8aaf4fd2218348d8
[ "MIT" ]
null
null
null
THUMT-master/thumt/models/__init__.py
shawnkx/Fast-MoS
af54093c7368da34d6b709ab8aaf4fd2218348d8
[ "MIT" ]
null
null
null
# coding=utf-8 # Copyright 2018 The THUMT Authors from __future__ import absolute_import from __future__ import division from __future__ import print_function import thumt.models.seq2seq import thumt.models.rnnsearch import thumt.models.transformer import thumt.models.transformer_relpos def get_model(name): nam...
27.111111
59
0.737705
2a3fd7db75759685bae966f662f407e3f5697745
13,038
py
Python
tests/torch/nas/test_scheduler.py
vuiseng9/nncf_pytorch
c2b1f069c867327203629201aecae3b7815e7895
[ "Apache-2.0" ]
null
null
null
tests/torch/nas/test_scheduler.py
vuiseng9/nncf_pytorch
c2b1f069c867327203629201aecae3b7815e7895
[ "Apache-2.0" ]
null
null
null
tests/torch/nas/test_scheduler.py
vuiseng9/nncf_pytorch
c2b1f069c867327203629201aecae3b7815e7895
[ "Apache-2.0" ]
null
null
null
""" Copyright (c) 2022 Intel Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writin...
42.469055
119
0.702102
7a906e32f4b30f84c3a04de8b9a2af3f823f61a0
742
py
Python
molsysmt/item/nglview_NGLWidget/to_string_pdb_text.py
uibcdf/MolModMTs
4f6b6f671a9fa3e73008d1e9c48686d5f20a6573
[ "MIT" ]
null
null
null
molsysmt/item/nglview_NGLWidget/to_string_pdb_text.py
uibcdf/MolModMTs
4f6b6f671a9fa3e73008d1e9c48686d5f20a6573
[ "MIT" ]
null
null
null
molsysmt/item/nglview_NGLWidget/to_string_pdb_text.py
uibcdf/MolModMTs
4f6b6f671a9fa3e73008d1e9c48686d5f20a6573
[ "MIT" ]
null
null
null
from molsysmt._private.exceptions import * from molsysmt._private.digestion import * def to_string_pdb_text(item, atom_indices='all', structure_indices='all', check=True): if check: digest_item(item, 'string:pdb_text') atom_indices = digest_atom_indices(atom_indices) structure_indices = d...
28.538462
96
0.712938
245e7d2a9a6161e3df1470f6cd09f03a985feed3
16,789
py
Python
synapseclient/multipart_upload.py
pcstout/synapsePythonClient
25ec524dd6acde1fe66224fba04abb3a549faa9e
[ "Apache-2.0" ]
null
null
null
synapseclient/multipart_upload.py
pcstout/synapsePythonClient
25ec524dd6acde1fe66224fba04abb3a549faa9e
[ "Apache-2.0" ]
null
null
null
synapseclient/multipart_upload.py
pcstout/synapsePythonClient
25ec524dd6acde1fe66224fba04abb3a549faa9e
[ "Apache-2.0" ]
null
null
null
""" ************************ Synapse Multipart Upload ************************ Implements the client side of `Synapse multipart upload`_, which provides a robust means of uploading large files (into the 10s of GB). End users should not need to call any of these functions directly. .. _Synapse multipart upload: http:...
41.763682
120
0.649532
899ce4370a4f0d892b25e759a7fa45c1adb242c1
4,592
py
Python
denise.alana.py
dtepie1/pythonteachingcode
d6fe56ff52a089a8a38f3d2182f40ddf98ff9cac
[ "MIT" ]
null
null
null
denise.alana.py
dtepie1/pythonteachingcode
d6fe56ff52a089a8a38f3d2182f40ddf98ff9cac
[ "MIT" ]
null
null
null
denise.alana.py
dtepie1/pythonteachingcode
d6fe56ff52a089a8a38f3d2182f40ddf98ff9cac
[ "MIT" ]
null
null
null
#vfebfe import cv2.cv as cv from datetime import datetime import time class MotionDetectorInstantaneous(): def onChange(self, val): #callback when the user change the detection threshold self.threshold = val def __init__(self,threshold=8, doRecord=True, showWindows=True): self.writer =...
44.153846
128
0.592334
aa66e9aca2a2c13aee71aa08797c01cdf4f72cc8
7,611
py
Python
pyrice/utils.py
SouthGreenPlatform/PyRice
ca34acf65099db0c906cb9453a1b39c46b2263ee
[ "MIT" ]
14
2020-04-22T01:17:25.000Z
2021-07-01T13:17:01.000Z
pyrice/utils.py
SouthGreenPlatform/PyRice
ca34acf65099db0c906cb9453a1b39c46b2263ee
[ "MIT" ]
10
2019-10-14T09:07:41.000Z
2021-06-11T06:17:11.000Z
pyrice/utils.py
SouthGreenPlatform/PyRice
ca34acf65099db0c906cb9453a1b39c46b2263ee
[ "MIT" ]
2
2020-11-23T01:11:09.000Z
2021-02-03T11:23:06.000Z
# -*- coding: utf-8 -*- import os import requests import urllib3 from selenium import webdriver from selenium.webdriver.common.action_chains import ActionChains from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions ...
40.269841
117
0.532913
32f6b710df361011584e669f0ad3cbad5746a62a
1,835
py
Python
checkers.py
pikulak/xoxo
2c2aec2cc890907593d3837da2b5942b87993072
[ "Apache-2.0" ]
1
2017-02-26T11:08:19.000Z
2017-02-26T11:08:19.000Z
checkers.py
pikulak/xoxo
2c2aec2cc890907593d3837da2b5942b87993072
[ "Apache-2.0" ]
null
null
null
checkers.py
pikulak/xoxo
2c2aec2cc890907593d3837da2b5942b87993072
[ "Apache-2.0" ]
null
null
null
from statics import BOARD_SIDE_LENGTH class WinConditionChecker: def __init__(self, board, player_1_win_condition, player_2_win_condition): self._board = board self._winner = None self._player_1_win_condition = player_1_win_condition self._player_2_win_condition = player_2_win_co...
28.671875
79
0.60436
0899554bda452527d8c14117cc198012bee9877d
5,095
py
Python
gae/layers.py
JiaxiangBU/link-prediction
8fd569dae07cc4fc2972e2fb97cce0fb00875111
[ "MIT" ]
309
2018-02-01T22:31:23.000Z
2022-03-13T21:18:49.000Z
gae/layers.py
JiaxiangBU/link-prediction
8fd569dae07cc4fc2972e2fb97cce0fb00875111
[ "MIT" ]
null
null
null
gae/layers.py
JiaxiangBU/link-prediction
8fd569dae07cc4fc2972e2fb97cce0fb00875111
[ "MIT" ]
125
2018-01-31T10:33:08.000Z
2022-03-31T07:53:33.000Z
from gae.initializations import * import tensorflow as tf flags = tf.app.flags FLAGS = flags.FLAGS # global unique layer ID dictionary for layer name assignment _LAYER_UIDS = {} def get_layer_uid(layer_name=''): """Helper function, assigns unique layer IDs """ if layer_name not in _LAYER_UIDS: _...
37.189781
125
0.641609
142f7fef75795d7dd77c82472da63fb1dc8fcf7a
4,471
py
Python
sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_06_01/aio/operations_async/_operations_async.py
LianwMS/azure-sdk-for-python
612d7bca9de86ee1bd1fa59291d7bf897ba9213f
[ "MIT" ]
2
2019-05-17T21:24:53.000Z
2020-02-12T11:13:42.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_06_01/aio/operations_async/_operations_async.py
LianwMS/azure-sdk-for-python
612d7bca9de86ee1bd1fa59291d7bf897ba9213f
[ "MIT" ]
15
2019-07-12T18:18:04.000Z
2019-07-25T20:55:51.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_06_01/aio/operations_async/_operations_async.py
LianwMS/azure-sdk-for-python
612d7bca9de86ee1bd1fa59291d7bf897ba9213f
[ "MIT" ]
2
2020-05-21T22:51:22.000Z
2020-05-26T20:53:01.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 ...
43.833333
115
0.660926
7cab2274365aa17353f1332b7bc0a3c98a7ba89e
76,034
py
Python
ciftify/bin/ciftify_recon_all.py
helloTC/ciftify
ca6b83c8d40cd384de54269d7c62281552b91e21
[ "MIT" ]
null
null
null
ciftify/bin/ciftify_recon_all.py
helloTC/ciftify
ca6b83c8d40cd384de54269d7c62281552b91e21
[ "MIT" ]
null
null
null
ciftify/bin/ciftify_recon_all.py
helloTC/ciftify
ca6b83c8d40cd384de54269d7c62281552b91e21
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Converts a freesurfer recon-all output to a working directory Usage: ciftify_recon_all [options] <Subject> Arguments: <Subject> The Subject ID in the HCP data folder Options: --ciftify-work-dir PATH The directory for HCP subjects (overrides ...
48.398472
154
0.652235
1663f37ef1696bbc15c2e8e5ed865d76748de6f0
1,452
py
Python
aliyun-python-sdk-vcs/aliyunsdkvcs/request/v20200515/GetInventoryRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
1,001
2015-07-24T01:32:41.000Z
2022-03-25T01:28:18.000Z
aliyun-python-sdk-vcs/aliyunsdkvcs/request/v20200515/GetInventoryRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
363
2015-10-20T03:15:00.000Z
2022-03-08T12:26:19.000Z
aliyun-python-sdk-vcs/aliyunsdkvcs/request/v20200515/GetInventoryRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
682
2015-09-22T07:19:02.000Z
2022-03-22T09:51:46.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
38.210526
74
0.769284
89eb84c329b74fc4079dba02f2ea62458e13d5c2
620
py
Python
setup.py
techlib/sklady
11475005f2544d3d0e0159546eb73d9cc650394d
[ "MIT" ]
null
null
null
setup.py
techlib/sklady
11475005f2544d3d0e0159546eb73d9cc650394d
[ "MIT" ]
null
null
null
setup.py
techlib/sklady
11475005f2544d3d0e0159546eb73d9cc650394d
[ "MIT" ]
null
null
null
#!/usr/bin/python3 -tt from setuptools import setup import os.path setup( name = 'sklady', version = '1', author = 'NTK', description = ('Tool for getting status of supplies in storage'), license = 'MIT', keywords = 'storage supplies database', url = 'http://github.com/techlib/sklady', ...
20.666667
69
0.556452
ac9617ef101e6d7fd4af667ded03231e2650e2e8
240
py
Python
unidesign/spatial/workflow/__init__.py
unidesigner/unidesign
ee24a7152d937d1b95c2bb67b3f050966850d50f
[ "BSD-3-Clause" ]
4
2015-02-26T20:08:42.000Z
2019-12-28T09:08:19.000Z
unidesign/spatial/workflow/__init__.py
unidesigner/unidesign
ee24a7152d937d1b95c2bb67b3f050966850d50f
[ "BSD-3-Clause" ]
null
null
null
unidesign/spatial/workflow/__init__.py
unidesigner/unidesign
ee24a7152d937d1b95c2bb67b3f050966850d50f
[ "BSD-3-Clause" ]
1
2019-12-28T09:08:23.000Z
2019-12-28T09:08:23.000Z
""" Workflows --------- Basic units are the neuronal morphologies 1) Compute statistical measures 2) Create a partition of the data 3) Identify the partitions (e.g. cell classes, species etc.) 4) Classify a new neuron based on database """
24
60
0.7375
0a7316c1d847f519e58bfe05b125aefd7acac85c
614
py
Python
metaci/build/migrations/0007_auto_20170505_1607.py
abhishekalgo/metaci
cd62473b3fb85fb0f39623f9fb2850993ff708a5
[ "BSD-3-Clause" ]
48
2018-10-24T14:52:06.000Z
2022-03-25T21:14:50.000Z
metaci/build/migrations/0007_auto_20170505_1607.py
abhishekalgo/metaci
cd62473b3fb85fb0f39623f9fb2850993ff708a5
[ "BSD-3-Clause" ]
2,034
2018-10-31T20:59:16.000Z
2022-03-22T21:38:03.000Z
metaci/build/migrations/0007_auto_20170505_1607.py
abhishekalgo/metaci
cd62473b3fb85fb0f39623f9fb2850993ff708a5
[ "BSD-3-Clause" ]
27
2018-12-24T18:16:23.000Z
2021-12-15T17:57:27.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.3 on 2017-05-05 16:07 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('build', '0006_build_commit_message'), ] operations = [ migrations.AlterFiel...
29.238095
212
0.607492
49777aa673e7e25c3512efb1f43265cd93785620
233
py
Python
ex052.py
jgabriel1607/Python
d6b75519eb8f0d4fef944e1690ba8914d81a5d16
[ "MIT" ]
null
null
null
ex052.py
jgabriel1607/Python
d6b75519eb8f0d4fef944e1690ba8914d81a5d16
[ "MIT" ]
null
null
null
ex052.py
jgabriel1607/Python
d6b75519eb8f0d4fef944e1690ba8914d81a5d16
[ "MIT" ]
null
null
null
print('Vamos verificar se um número é primo: ') n = int(input('Digite um número: ')) if n % 1 == 0 and n % n == 0: print('O número {} é um número primo.'.format(n)) else: print('O número {} não é um número primo.'.format(n))
33.285714
57
0.609442
c1be9f62b9d0cd913d47ce5f36e5eb61f1c9ad62
1,801
py
Python
adctest/pages/base_landing.py
pysalt/e2e-test
692339dee485df330f623aa0c05954494586c5ad
[ "MIT" ]
null
null
null
adctest/pages/base_landing.py
pysalt/e2e-test
692339dee485df330f623aa0c05954494586c5ad
[ "MIT" ]
null
null
null
adctest/pages/base_landing.py
pysalt/e2e-test
692339dee485df330f623aa0c05954494586c5ad
[ "MIT" ]
null
null
null
from adctest.helpers.exceptions import PageNotOpened from adctest.helpers.utils import get_param_from_url from adctest.pages.base_abstract import AbstractBasePage class BaseLandingPage(AbstractBasePage): page_url = None """Адрес, на котором открывается лендинг""" check_param = None """Имя параметра, п...
34.634615
102
0.67518
288dca996bf06376b2988dac21f41cd817709da4
4,611
py
Python
tests/test_clusters/test_serializers.py
elyase/polyaxon
1c19f059a010a6889e2b7ea340715b2bcfa382a0
[ "MIT" ]
null
null
null
tests/test_clusters/test_serializers.py
elyase/polyaxon
1c19f059a010a6889e2b7ea340715b2bcfa382a0
[ "MIT" ]
null
null
null
tests/test_clusters/test_serializers.py
elyase/polyaxon
1c19f059a010a6889e2b7ea340715b2bcfa382a0
[ "MIT" ]
null
null
null
import pytest from api.clusters.serializers import ClusterSerializer from api.nodes.serializers import ClusterNodeDetailSerializer, ClusterNodeSerializer, GPUSerializer from db.models.clusters import Cluster from db.models.nodes import ClusterNode, NodeGPU from factories.factory_clusters import ClusterNodeFactory, GPU...
35.744186
99
0.655823
f7fd7cd4894f14adfd39d9d3acfd511035572d38
27,769
py
Python
examples/inc/pytorch/multiple-choice/run_swag.py
michaelbenayoun/optimum
21c5809577e2ef5687f293d31d1d3e28288e1bb7
[ "Apache-2.0" ]
null
null
null
examples/inc/pytorch/multiple-choice/run_swag.py
michaelbenayoun/optimum
21c5809577e2ef5687f293d31d1d3e28288e1bb7
[ "Apache-2.0" ]
null
null
null
examples/inc/pytorch/multiple-choice/run_swag.py
michaelbenayoun/optimum
21c5809577e2ef5687f293d31d1d3e28288e1bb7
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding=utf-8 # Copyright The HuggingFace Team and The HuggingFace Inc. team. 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.ap...
41.94713
132
0.674961
e0300a1be9c4173ce9e38cda9d4fd3b9b19b661f
2,655
py
Python
labs/lab3/udt.py
jamestiotio/networks
8967ee34c423989ff68eec650ba6ebb492499cb4
[ "MIT" ]
null
null
null
labs/lab3/udt.py
jamestiotio/networks
8967ee34c423989ff68eec650ba6ebb492499cb4
[ "MIT" ]
null
null
null
labs/lab3/udt.py
jamestiotio/networks
8967ee34c423989ff68eec650ba6ebb492499cb4
[ "MIT" ]
null
null
null
import collections import config import random import socket import threading import time class NetworkLayer: def __init__(self, local_port, remote_port, transport_layer): # Port for recv and send packets. self.local_port = local_port self.remote_port = remote_port # Listening on l...
34.934211
74
0.60565
732477e67d5ecb64b0dc4a66c995c25c0c8900b0
6,320
py
Python
ml/rl/workflow/ddpg_workflow.py
ccphillippi/Horizon
a18d8941f663eea55488781c804e6305a36f1b58
[ "BSD-3-Clause" ]
null
null
null
ml/rl/workflow/ddpg_workflow.py
ccphillippi/Horizon
a18d8941f663eea55488781c804e6305a36f1b58
[ "BSD-3-Clause" ]
null
null
null
ml/rl/workflow/ddpg_workflow.py
ccphillippi/Horizon
a18d8941f663eea55488781c804e6305a36f1b58
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. import logging import sys from typing import Dict from ml.rl.evaluation.evaluator import Evaluator from ml.rl.preprocessing.normalization import ( construct_action_scale_tensor, get_num_output_features, ) from ml.rl...
33.978495
105
0.706171
65a04bd9b0c136710ee0a831b381a04b49f9b18c
5,996
py
Python
metamapper/wasm_util.py
rdaly525/MetaMapper
7f8278a012435d5d05ff6b388b7c1146061d6f1c
[ "BSD-3-Clause" ]
3
2019-04-09T22:58:21.000Z
2019-08-16T18:18:12.000Z
metamapper/wasm_util.py
rdaly525/MetaMapper
7f8278a012435d5d05ff6b388b7c1146061d6f1c
[ "BSD-3-Clause" ]
22
2019-03-13T19:42:35.000Z
2022-03-29T19:49:33.000Z
metamapper/wasm_util.py
rdaly525/MetaMapper
7f8278a012435d5d05ff6b388b7c1146061d6f1c
[ "BSD-3-Clause" ]
1
2019-04-09T05:35:52.000Z
2019-04-09T05:35:52.000Z
from .node import Dag, Nodes, DagNode, Input, Constant, Select, Output from .irs.wasm import gen_WasmNodes import metamapper.wasm.interp.convention as C import metamapper.wasm.interp as interp from metamapper.wasm.interp.structure import Instruction import typing as tp import delegator WasmNodes = gen_WasmNodes() cl...
31.067358
109
0.600734
c51ee692b6d01d388ca4f039fca4c9cd5c0765fe
787
py
Python
Notes.py
Youngl42/model-building-lab
36a350e6d1340b094133f5ab3cceb2443d4a86bb
[ "Apache-2.0" ]
null
null
null
Notes.py
Youngl42/model-building-lab
36a350e6d1340b094133f5ab3cceb2443d4a86bb
[ "Apache-2.0" ]
null
null
null
Notes.py
Youngl42/model-building-lab
36a350e6d1340b094133f5ab3cceb2443d4a86bb
[ "Apache-2.0" ]
null
null
null
================================================================= PEP8 Coding ================================================================= module_name, package_name, ClassName, method_name, ExceptionName, function_name, GLOBAL_CONSTANT_NAME, global_var_name, instance_var_name, function_parameter_name, local_var_na...
49.1875
178
0.409149
5eb86af73d1637854c03a8fbe3bbdca4b1d5fc95
8,253
py
Python
lib/xos-config/tests/test_config.py
iecedge/xos
566617f676fedcb2602266191c755d191b37018a
[ "Apache-2.0" ]
null
null
null
lib/xos-config/tests/test_config.py
iecedge/xos
566617f676fedcb2602266191c755d191b37018a
[ "Apache-2.0" ]
null
null
null
lib/xos-config/tests/test_config.py
iecedge/xos
566617f676fedcb2602266191c755d191b37018a
[ "Apache-2.0" ]
null
null
null
# Copyright 2017-present Open Networking Foundation # # 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 agr...
33.685714
117
0.619775
0ee0cf0d09ee46434526f2421d655ff288b05f9d
28,250
py
Python
python/ee/image.py
KMarkert/earthengine-api
761c088ca2a79860903f0af1ffea7d4165de88db
[ "Apache-2.0" ]
null
null
null
python/ee/image.py
KMarkert/earthengine-api
761c088ca2a79860903f0af1ffea7d4165de88db
[ "Apache-2.0" ]
null
null
null
python/ee/image.py
KMarkert/earthengine-api
761c088ca2a79860903f0af1ffea7d4165de88db
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """A representation of an Earth Engine image. See: https://sites.google.com/site/earthengineapidocs for more details. """ # Using lowercase function naming to match the JavaScript names. # pylint: disable=g-bad-name # Disable lint messages caused by Python 3 compatibility changes. # pylint: d...
38.435374
102
0.655398
514b706bf9a5c8b9edd166ed310ceeb6e17adbca
3,590
py
Python
tests/search/test_arc_concistency.py
GeekLiB/simpleai-lee
dd49778d3521b725fa1666c6e64b48c986528250
[ "MIT" ]
null
null
null
tests/search/test_arc_concistency.py
GeekLiB/simpleai-lee
dd49778d3521b725fa1666c6e64b48c986528250
[ "MIT" ]
null
null
null
tests/search/test_arc_concistency.py
GeekLiB/simpleai-lee
dd49778d3521b725fa1666c6e64b48c986528250
[ "MIT" ]
2
2020-01-03T06:28:23.000Z
2020-02-23T16:01:42.000Z
# coding=utf-8 import unittest from operator import itemgetter from simpleai.search.arc import all_arcs, revise, arc_consistency_3 first = itemgetter(0) class TestAllArcs(unittest.TestCase): def setUp(self): self.constraint = lambda variables, values: False def test_adds_pairs_in_both_directions(...
35.196078
83
0.593593
ab459cbec25c6756ef7836cb28fa13bc276e92b7
3,555
py
Python
loc/helper/messages.py
guluc3m/loc-server
b25b6b2deec5d27c840d60f33e5aa33bd56ba08a
[ "MIT" ]
null
null
null
loc/helper/messages.py
guluc3m/loc-server
b25b6b2deec5d27c840d60f33e5aa33bd56ba08a
[ "MIT" ]
7
2017-12-10T17:12:04.000Z
2017-12-29T12:23:18.000Z
loc/helper/messages.py
guluc3m/loc-server
b25b6b2deec5d27c840d60f33e5aa33bd56ba08a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # League of Code server implementation # https://github.com/guluc3m/loc-server # # The MIT License (MIT) # # Copyright (c) 2017 Grupo de Usuarios de Linux UC3M <http://gul.es> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated doc...
39.065934
80
0.759212
4078ad71972d9b2e1877ce6fe5c344aa65123d55
4,044
py
Python
Examples/Text Record/add_text_record/add_text_record_page.py
kemori-bc/gateway-workflows
5aa1e3492b0c0b4ec23a6247ca92861cc77f2187
[ "Apache-2.0" ]
null
null
null
Examples/Text Record/add_text_record/add_text_record_page.py
kemori-bc/gateway-workflows
5aa1e3492b0c0b4ec23a6247ca92861cc77f2187
[ "Apache-2.0" ]
null
null
null
Examples/Text Record/add_text_record/add_text_record_page.py
kemori-bc/gateway-workflows
5aa1e3492b0c0b4ec23a6247ca92861cc77f2187
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 BlueCat Networks (USA) Inc. and its affiliates # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
33.983193
91
0.657765
1df9763f39c2d56b4bf5a843fea19659d3e66919
3,345
py
Python
ActorNetwork2.py
yuxinma4life/gym_torcs_vision
41bf2f4c4322f8c455fbd46b1b80629ac4a7eea5
[ "MIT" ]
1
2018-11-12T12:11:40.000Z
2018-11-12T12:11:40.000Z
ActorNetwork2.py
yuxinma4life/gym_torcs_vision
41bf2f4c4322f8c455fbd46b1b80629ac4a7eea5
[ "MIT" ]
1
2018-11-17T15:02:06.000Z
2018-11-17T15:02:06.000Z
ActorNetwork2.py
yuxinma4life/gym_torcs_vision
41bf2f4c4322f8c455fbd46b1b80629ac4a7eea5
[ "MIT" ]
null
null
null
import numpy as np import math from keras.initializations import normal, identity from keras.models import model_from_json from keras.models import Sequential, Model #from keras.engine.training import collect_trainable_weights from keras.layers import Dense, Flatten, Input, merge, Lambda, Reshape, Convolution2D, MaxPoo...
46.458333
128
0.692676
38e13637448dc2ba63d6d78313afc0cdc3405ffc
7,406
py
Python
GOTool/AnnotationParser.py
alfonsoeromero/S2F
fccb741b15acfdeb02ca0de411eb4b00ae73be85
[ "MIT" ]
9
2019-10-24T18:46:46.000Z
2022-03-23T13:21:45.000Z
GOTool/AnnotationParser.py
alfonsoeromero/S2F
fccb741b15acfdeb02ca0de411eb4b00ae73be85
[ "MIT" ]
5
2022-01-26T18:00:01.000Z
2022-02-08T14:09:42.000Z
GOTool/AnnotationParser.py
alfonsoeromero/S2F
fccb741b15acfdeb02ca0de411eb4b00ae73be85
[ "MIT" ]
2
2022-01-27T12:52:32.000Z
2022-01-29T12:08:26.000Z
""" A higher level Gene Ontology representation in Python ======= License ======= Copyright (c) 2009 Tamas Nepusz <tamas@cs.rhul.ac.uk> 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 r...
41.144444
79
0.641237
1b8f02b94df397477315decefe42dcbaf5141d78
1,639
py
Python
doc/integrations/pytorch/tests/nightly/gpu/test_bert.py
novium258/cortx-1
ce5b939b33b8d24d89b31807ac3bcaa8f24096bc
[ "Apache-2.0" ]
1
2020-09-27T05:00:06.000Z
2020-09-27T05:00:06.000Z
doc/integrations/pytorch/tests/nightly/gpu/test_bert.py
novium258/cortx-1
ce5b939b33b8d24d89b31807ac3bcaa8f24096bc
[ "Apache-2.0" ]
1
2021-08-04T11:17:39.000Z
2021-08-04T11:17:39.000Z
doc/integrations/pytorch/tests/nightly/gpu/test_bert.py
novium258/cortx-1
ce5b939b33b8d24d89b31807ac3bcaa8f24096bc
[ "Apache-2.0" ]
1
2021-05-03T13:27:14.000Z
2021-05-03T13:27:14.000Z
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import unittest import parlai.utils.testing as testing_utils @testing_utils.skipUnlessGPU class TestBertMod...
30.351852
85
0.57108
c73b6c895a4875f67c286403d7044f82e93f802f
10,459
py
Python
certbot-ci/certbot_integration_tests/utils/acme_server.py
mikma/certbot
ac8798e8185699cd2b7ddc904bccd978968e8e2f
[ "Apache-2.0" ]
5
2021-01-26T08:47:29.000Z
2021-01-30T00:42:12.000Z
certbot-ci/certbot_integration_tests/utils/acme_server.py
mikma/certbot
ac8798e8185699cd2b7ddc904bccd978968e8e2f
[ "Apache-2.0" ]
null
null
null
certbot-ci/certbot_integration_tests/utils/acme_server.py
mikma/certbot
ac8798e8185699cd2b7ddc904bccd978968e8e2f
[ "Apache-2.0" ]
1
2020-10-28T05:49:43.000Z
2020-10-28T05:49:43.000Z
#!/usr/bin/env python """Module to setup an ACME CA server environment able to run multiple tests in parallel""" from __future__ import print_function import errno import json import os from os.path import join import shutil import subprocess import sys import tempfile import time import requests from certbot_integr...
44.696581
108
0.625394
1273b620e276796c28d3d6ee287408bc1467646c
291
py
Python
vmraid/patches/v7_0/set_user_fullname.py
sowrisurya/vmraid
f833e00978019dad87af80b41279c0146c063ed5
[ "MIT" ]
null
null
null
vmraid/patches/v7_0/set_user_fullname.py
sowrisurya/vmraid
f833e00978019dad87af80b41279c0146c063ed5
[ "MIT" ]
null
null
null
vmraid/patches/v7_0/set_user_fullname.py
sowrisurya/vmraid
f833e00978019dad87af80b41279c0146c063ed5
[ "MIT" ]
null
null
null
from __future__ import unicode_literals import vmraid def execute(): vmraid.reload_doc("Core", "DocType", "User") for user in vmraid.db.get_all('User'): user = vmraid.get_doc('User', user.name) user.set_full_name() user.db_set('full_name', user.full_name, update_modified = False)
29.1
67
0.738832
036ea907f39f81ac07aa19830525ffa9a7450677
7,838
py
Python
tests/system/base.py
rpatil524/mlrun
bb2259a959f871d7a479834ddc55ad1470e6c2c0
[ "Apache-2.0" ]
null
null
null
tests/system/base.py
rpatil524/mlrun
bb2259a959f871d7a479834ddc55ad1470e6c2c0
[ "Apache-2.0" ]
null
null
null
tests/system/base.py
rpatil524/mlrun
bb2259a959f871d7a479834ddc55ad1470e6c2c0
[ "Apache-2.0" ]
1
2019-12-10T01:54:27.000Z
2019-12-10T01:54:27.000Z
import os import pathlib import sys import typing import pytest import yaml import mlrun.api.schemas from mlrun import get_run_db, mlconf, set_environment from mlrun.utils import create_logger logger = create_logger(level="debug", name="test-system") class TestMLRunSystem: project_name = "system-test-project"...
32.658333
105
0.598495
1d3ae7389b399516939759b9563c7b1b62287e4c
4,476
py
Python
src/m2_functions.py
mccurrec/02-ObjectsFunctionsAndMethods
f1662a0c1493c80294859c5385c24ef6042b3fae
[ "MIT" ]
null
null
null
src/m2_functions.py
mccurrec/02-ObjectsFunctionsAndMethods
f1662a0c1493c80294859c5385c24ef6042b3fae
[ "MIT" ]
null
null
null
src/m2_functions.py
mccurrec/02-ObjectsFunctionsAndMethods
f1662a0c1493c80294859c5385c24ef6042b3fae
[ "MIT" ]
null
null
null
""" Practice DEFINING and CALLING FUNCTIONS Authors: David Mutchler, Vibha Alangar, Matt Boutell, Dave Fisher, Aaron Wilkin, their colleagues, and Ezrie McCurry. """ # DONE: 1. PUT YOUR NAME IN THE ABOVE LINE. ############################################################################### # DONE: 2. # ...
37.932203
79
0.557194
611149c794c223bdb644f790d781937a96a12fa5
8,148
py
Python
hexa/plugins/connector_s3/schema.py
hastakecorp/openhexa-app
dde38f14701c3bfe7fb51f29d73b35e6b8d45b7b
[ "MIT" ]
null
null
null
hexa/plugins/connector_s3/schema.py
hastakecorp/openhexa-app
dde38f14701c3bfe7fb51f29d73b35e6b8d45b7b
[ "MIT" ]
1
2021-09-07T08:10:18.000Z
2021-09-07T08:10:18.000Z
hexa/plugins/connector_s3/schema.py
hastakecorp/openhexa-app
dde38f14701c3bfe7fb51f29d73b35e6b8d45b7b
[ "MIT" ]
null
null
null
from ariadne import convert_kwargs_to_snake_case, QueryType, ObjectType, MutationType from django.http import HttpRequest from django.template.defaultfilters import filesizeformat from django.templatetags.static import static from django.utils.translation import gettext_lazy as trans from hexa.core.resolvers import re...
28
90
0.652062
b84ae3516df453378e341d9a3e5d9e99b0c3ef93
5,679
py
Python
pettingzoo/classic/backgammon/backgammon_env.py
rodrigodelazcano/PettingZoo
41fe43c7da2fd92fa8c6aa5a5a28083664092aa5
[ "Apache-2.0" ]
null
null
null
pettingzoo/classic/backgammon/backgammon_env.py
rodrigodelazcano/PettingZoo
41fe43c7da2fd92fa8c6aa5a5a28083664092aa5
[ "Apache-2.0" ]
null
null
null
pettingzoo/classic/backgammon/backgammon_env.py
rodrigodelazcano/PettingZoo
41fe43c7da2fd92fa8c6aa5a5a28083664092aa5
[ "Apache-2.0" ]
null
null
null
import numpy as np from gym import spaces from pettingzoo import AECEnv from pettingzoo.utils import agent_selector, wrappers from . import bg_utils from .backgammon import BLACK, COLORS, WHITE from .backgammon import Backgammon as Game def env(**kwargs): env = raw_env(**kwargs) env = wrappers.CaptureStdout...
33.60355
84
0.564184
6f013dc09e14747419a9c36d1fc6eb291ac64ff5
12,394
py
Python
chemdataextractor_batteries/chemdataextractor/parse/previous_parsers/battery_voltage.py
ShuHuang/batterydatabase
10a94617c00ddca6e5e382f50bfe0b6079457166
[ "MIT" ]
26
2020-08-06T13:40:58.000Z
2022-03-23T13:34:45.000Z
chemdataextractor_batteries/chemdataextractor/parse/previous_parsers/battery_voltage.py
ShuHuang/batterydatabase
10a94617c00ddca6e5e382f50bfe0b6079457166
[ "MIT" ]
3
2020-08-07T10:54:37.000Z
2021-07-13T20:42:21.000Z
chemdataextractor_batteries/chemdataextractor/parse/previous_parsers/battery_voltage.py
ShuHuang/batterydatabase
10a94617c00ddca6e5e382f50bfe0b6079457166
[ "MIT" ]
8
2020-09-15T14:48:12.000Z
2022-01-29T05:54:24.000Z
# -*- coding: utf-8 -*- """ chemdataextractor.parse.battery_voltage.py ~~~~~~~~~~~~~~~~~~~~~~~~~~~ Parser for voltage. """ import logging from lxml import etree import traceback from . import R, I, W, Optional, merge, join from .base import BaseSentenceParser from ..utils import first from .cem import cem, chemical...
43.487719
277
0.43634
01d44cafcfb81f8eba56ee090428ddd16d8380de
1,562
py
Python
modules/test/test_info.py
amuritna/phenny
c01f409f41db125fe3f50093ed1ec3454f95a529
[ "EFL-2.0" ]
7
2018-10-29T18:01:47.000Z
2022-01-21T04:13:46.000Z
modules/test/test_info.py
amuritna/phenny
c01f409f41db125fe3f50093ed1ec3454f95a529
[ "EFL-2.0" ]
225
2018-03-08T10:41:50.000Z
2021-11-01T19:51:17.000Z
modules/test/test_info.py
amuritna/phenny
c01f409f41db125fe3f50093ed1ec3454f95a529
[ "EFL-2.0" ]
44
2018-03-19T15:30:15.000Z
2020-07-29T08:47:45.000Z
""" test_info.py - tests for the info module author: nu11us <work.willeggleston@gmail.com> """ import re import unittest from mock import MagicMock from modules import info from web import catch_timeout class TestInfo(unittest.TestCase): def setUp(self): self.phenny = MagicMock() self.input = Magi...
35.5
154
0.643406
3688f280234700471cdc0c0ccb6f82858e2914a2
4,126
py
Python
dolweb/downloads/views.py
Armada651/www
829a1bc3f578b92b3ad7aa646a451775ef02c3b3
[ "MIT" ]
null
null
null
dolweb/downloads/views.py
Armada651/www
829a1bc3f578b92b3ad7aa646a451775ef02c3b3
[ "MIT" ]
null
null
null
dolweb/downloads/views.py
Armada651/www
829a1bc3f578b92b3ad7aa646a451775ef02c3b3
[ "MIT" ]
null
null
null
from annoying.decorators import render_to from django.conf import settings from django.core.paginator import EmptyPage from django.http import Http404, HttpResponse from django.shortcuts import get_object_or_404 from django.views.decorators.csrf import csrf_exempt from dolweb.downloads.diggpaginator import DiggPaginato...
32.234375
85
0.660446
89a486952b4b0a943cfaf7dfdcaf06f87aa6848a
1,507
py
Python
lists/migrations/0001_initial.py
brendanodwyer/python-tdd-book
ff3a8a8254a3112937ce9924dfa05ba52069c8bf
[ "Apache-2.0" ]
null
null
null
lists/migrations/0001_initial.py
brendanodwyer/python-tdd-book
ff3a8a8254a3112937ce9924dfa05ba52069c8bf
[ "Apache-2.0" ]
null
null
null
lists/migrations/0001_initial.py
brendanodwyer/python-tdd-book
ff3a8a8254a3112937ce9924dfa05ba52069c8bf
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.1.6 on 2021-07-19 18:28 import django.db.models.deletion from django.db import migrations from django.db import models class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name="List", fiel...
26.910714
68
0.363636
f5516d9eb1c4f6d1f921ae8e1fc78d1636b967c3
872
py
Python
b_cfn_custom_userpool_authorizer_test/integration/tests/test_authorizer_allow.py
simonasvaitkus/B.CfnCustomUserPoolAuthorizer
6532665d3b29031f86c19205cd58b0bcd9e4f827
[ "Apache-2.0" ]
null
null
null
b_cfn_custom_userpool_authorizer_test/integration/tests/test_authorizer_allow.py
simonasvaitkus/B.CfnCustomUserPoolAuthorizer
6532665d3b29031f86c19205cd58b0bcd9e4f827
[ "Apache-2.0" ]
null
null
null
b_cfn_custom_userpool_authorizer_test/integration/tests/test_authorizer_allow.py
simonasvaitkus/B.CfnCustomUserPoolAuthorizer
6532665d3b29031f86c19205cd58b0bcd9e4f827
[ "Apache-2.0" ]
1
2022-01-04T07:46:14.000Z
2022-01-04T07:46:14.000Z
import urllib3 from urllib3 import HTTPResponse from b_cfn_custom_userpool_authorizer_test.integration.infrastructure.main_stack import MainStack def test_authorizer_allow(access_token: str) -> None: """ Tests whether the authorizer allows the request to pass through, if the access token is valid. :...
25.647059
97
0.692661
3d8a58ea8c4dcecec6cf8d9a6280ec5c177f56c5
226,439
py
Python
nova/tests/unit/api/openstack/compute/test_serversV21.py
Juniper/nova
f7876474846be4b32070cc33c29535a4174aca7f
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/api/openstack/compute/test_serversV21.py
Juniper/nova
f7876474846be4b32070cc33c29535a4174aca7f
[ "Apache-2.0" ]
2
2015-02-03T06:25:24.000Z
2015-02-04T10:10:36.000Z
nova/tests/unit/api/openstack/compute/test_serversV21.py
Juniper/nova
f7876474846be4b32070cc33c29535a4174aca7f
[ "Apache-2.0" ]
7
2015-01-20T10:30:08.000Z
2020-02-05T10:29:05.000Z
# Copyright 2010-2011 OpenStack Foundation # Copyright 2011 Piston Cloud Computing, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www...
43.705655
79
0.594889
037fb7e08e6a587159778909b6f4172506336054
828
py
Python
tests/contrib/pyramid/app/app.py
p7g/dd-trace-py
141ac0ab6e9962e3b3bafc9de172076075289a19
[ "Apache-2.0", "BSD-3-Clause" ]
308
2016-12-07T16:49:27.000Z
2022-03-15T10:06:45.000Z
tests/contrib/pyramid/app/app.py
p7g/dd-trace-py
141ac0ab6e9962e3b3bafc9de172076075289a19
[ "Apache-2.0", "BSD-3-Clause" ]
1,928
2016-11-28T17:13:18.000Z
2022-03-31T21:43:19.000Z
tests/contrib/pyramid/app/app.py
p7g/dd-trace-py
141ac0ab6e9962e3b3bafc9de172076075289a19
[ "Apache-2.0", "BSD-3-Clause" ]
311
2016-11-27T03:01:49.000Z
2022-03-18T21:34:03.000Z
from wsgiref.simple_server import make_server from pyramid.config import Configurator from pyramid.response import Response from ddtrace import tracer from tests.webclient import PingFilter tracer.configure( settings={ "FILTERS": [PingFilter()], } ) def hello_world(request): return Response("H...
22.378378
70
0.699275
c42d6b61f8fc8519d496e503e142e2c2e9d84cc7
692
py
Python
expenses/urls.py
georgiawang5332/meatFoodManager
204b5b7aa2a3c5a6c9cc38077a10a72c0c69f140
[ "MIT" ]
null
null
null
expenses/urls.py
georgiawang5332/meatFoodManager
204b5b7aa2a3c5a6c9cc38077a10a72c0c69f140
[ "MIT" ]
null
null
null
expenses/urls.py
georgiawang5332/meatFoodManager
204b5b7aa2a3c5a6c9cc38077a10a72c0c69f140
[ "MIT" ]
null
null
null
from django.urls import path from . import views from django.views.decorators.csrf import csrf_exempt # Create your urls here. app_name = 'expenses' urlpatterns = [ path('', views.index, name="expenses"), path('add-expense/', views.add_expense, name="add-expenses"), path('edit-expense/<int:id>/', views.expense...
32.952381
80
0.718208
0f401b2f6cdd5d9a443bafe8eba58ace8bf74dc0
38,757
py
Python
bundle/sagemaker_rl_agent/lib/python3.5/site-packages/markov/multi_agent_coach/multi_agent_graph_manager.py
Asdafers/deepracer-simapp
539ee72942c18c453c65fb7300beb586dd440690
[ "MIT" ]
null
null
null
bundle/sagemaker_rl_agent/lib/python3.5/site-packages/markov/multi_agent_coach/multi_agent_graph_manager.py
Asdafers/deepracer-simapp
539ee72942c18c453c65fb7300beb586dd440690
[ "MIT" ]
null
null
null
bundle/sagemaker_rl_agent/lib/python3.5/site-packages/markov/multi_agent_coach/multi_agent_graph_manager.py
Asdafers/deepracer-simapp
539ee72942c18c453c65fb7300beb586dd440690
[ "MIT" ]
null
null
null
import copy import glob import os import time from collections import OrderedDict from distutils.dir_util import copy_tree, remove_tree from typing import Dict, List, Tuple import contextlib from rl_coach.base_parameters import iterable_to_items, TaskParameters, DistributedTaskParameters, Frameworks, \ Visualizati...
48.567669
145
0.649689
67dc6fac67595026ac5eec16595785c6091aa0ba
182
py
Python
carto/master/config.py
wallarelvo/SmallCartography
007e621386eb86d904fefef3f518b1d5f1dc7fe6
[ "Apache-2.0" ]
null
null
null
carto/master/config.py
wallarelvo/SmallCartography
007e621386eb86d904fefef3f518b1d5f1dc7fe6
[ "Apache-2.0" ]
null
null
null
carto/master/config.py
wallarelvo/SmallCartography
007e621386eb86d904fefef3f518b1d5f1dc7fe6
[ "Apache-2.0" ]
null
null
null
from flask import Flask app = Flask(__name__) app.config.from_object(__name__) mappers = list() reducers = list() workers = dict() # in seconds max_time = 3 OMISSION_PROB = 0.1
12.133333
32
0.71978
edeb32e1062d26d4c53c45814eb9589b94062bf4
1,200
py
Python
setup.py
jjaakola/bang-a-gong
d30f889c18eeaff3d62d47cd02e93516e4d24dd7
[ "MIT" ]
null
null
null
setup.py
jjaakola/bang-a-gong
d30f889c18eeaff3d62d47cd02e93516e4d24dd7
[ "MIT" ]
null
null
null
setup.py
jjaakola/bang-a-gong
d30f889c18eeaff3d62d47cd02e93516e4d24dd7
[ "MIT" ]
null
null
null
import setuptools install_requires = [ "kafka-python==2.0.2", "psycopg2-binary==2.8.6", "aiohttp==3.7.4.post0", "docopt==0.6.2", "PyYAML==5.4.1", "jsonpath-ng==1.5.2" ] development_requirements = { "dev" : ["coverage==5.5", "pylint==2.8.2", "pycodestyle==2.7.0", ...
26.666667
83
0.591667
4abdae46be3bb6c2b4fe0fa6769ee70c1ae12df7
3,359
py
Python
tests/unit/test_sentry.py
fairhopeweb/warehouse
7d8ef742e8fe6b401190c28ce56761848041c89f
[ "Apache-2.0" ]
3,103
2015-01-30T00:24:10.000Z
2022-03-31T23:21:39.000Z
tests/unit/test_sentry.py
fairhopeweb/warehouse
7d8ef742e8fe6b401190c28ce56761848041c89f
[ "Apache-2.0" ]
6,709
2015-01-05T01:23:20.000Z
2022-03-31T14:49:46.000Z
tests/unit/test_sentry.py
fairhopeweb/warehouse
7d8ef742e8fe6b401190c28ce56761848041c89f
[ "Apache-2.0" ]
959
2015-01-12T22:22:40.000Z
2022-03-31T22:21:51.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the Li...
34.628866
83
0.673117
dbb3f4ca5db1c6da44cd9516ce73e3f67be85635
2,283
py
Python
lldb/test/API/python_api/sbplatform/TestSBPlatform.py
ornata/llvm-project
494913b8b4e4bce0b3525e5569d8e486e82b9a52
[ "Apache-2.0" ]
null
null
null
lldb/test/API/python_api/sbplatform/TestSBPlatform.py
ornata/llvm-project
494913b8b4e4bce0b3525e5569d8e486e82b9a52
[ "Apache-2.0" ]
null
null
null
lldb/test/API/python_api/sbplatform/TestSBPlatform.py
ornata/llvm-project
494913b8b4e4bce0b3525e5569d8e486e82b9a52
[ "Apache-2.0" ]
null
null
null
"""Test the SBPlatform APIs.""" from lldbsuite.test.decorators import * from lldbsuite.test.lldbtest import * class SBPlatformAPICase(TestBase): mydir = TestBase.compute_mydir(__file__) NO_DEBUG_INFO_TESTCASE = True @skipIfRemote # Remote environment not supported. def test_run(self): self.b...
42.277778
84
0.708717
2a5674ee0772db84380338ab9a382f5236c83c3e
7,231
py
Python
electrum_scribe/crypto.py
scribenetwork/scribe-electrum-desktop
b0507a8df1a88038e200905070524fded0a00978
[ "MIT" ]
null
null
null
electrum_scribe/crypto.py
scribenetwork/scribe-electrum-desktop
b0507a8df1a88038e200905070524fded0a00978
[ "MIT" ]
null
null
null
electrum_scribe/crypto.py
scribenetwork/scribe-electrum-desktop
b0507a8df1a88038e200905070524fded0a00978
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Electrum - lightweight Bitcoin client # Copyright (C) 2018 The Electrum developers # # 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, # includi...
31.854626
103
0.689116
3996bb1e863a29130d89ec78075d97a321df5b32
1,705
py
Python
src/waldur_slurm/executors.py
virtengine/ve-waldur-v2
c9d90bc659171de678bd552e92cfc59cffb6fc3a
[ "MIT" ]
2
2018-08-16T14:42:24.000Z
2019-07-20T03:36:59.000Z
src/waldur_slurm/executors.py
virtengine/ve-waldur-v2
c9d90bc659171de678bd552e92cfc59cffb6fc3a
[ "MIT" ]
null
null
null
src/waldur_slurm/executors.py
virtengine/ve-waldur-v2
c9d90bc659171de678bd552e92cfc59cffb6fc3a
[ "MIT" ]
3
2019-02-27T19:17:49.000Z
2019-07-25T21:40:01.000Z
from waldur_core.core import executors as core_executors from waldur_core.core import tasks as core_tasks from waldur_core.structure import executors as structure_executors from . import models ## Class to create Allocation class AllocationCreateExecutor(core_executors.CreateExecutor): @classmethod def get_ta...
34.795918
83
0.730205
3641178c663da592e82db814c4e99731afe8e199
1,072
py
Python
heat/core/constants.py
shssf/heat
9db0a936c92491fa5aa862f558cb385c9916216b
[ "MIT" ]
105
2018-05-18T11:34:03.000Z
2022-03-29T06:37:23.000Z
heat/core/constants.py
shssf/heat
9db0a936c92491fa5aa862f558cb385c9916216b
[ "MIT" ]
909
2018-05-18T07:50:26.000Z
2022-03-31T20:16:30.000Z
heat/core/constants.py
shssf/heat
9db0a936c92491fa5aa862f558cb385c9916216b
[ "MIT" ]
28
2018-05-24T14:39:18.000Z
2022-03-31T19:18:47.000Z
""" This module defines constants used in HeAT. """ import torch __all__ = ["e", "Euler", "inf", "Inf", "Infty", "Infinity", "nan", "NaN", "pi"] # infinity INF = float("inf") # Not a number NAN = float("nan") # Negative infinity NINF = -float("inf") # Archimedes' constant PI = 3.141592653589793 # Euler's number E = ...
26.8
86
0.662313
56999720f058de647229bc7fab8fae7d063fb302
1,117
py
Python
src/python/dart/engine/emr/steps/python/fix_partition_folder_names.py
RetailMeNotSandbox/dart
58a05f56c04fadd6741501262d92aeb143cd2f2e
[ "MIT" ]
18
2016-03-03T19:10:21.000Z
2021-07-14T22:37:35.000Z
src/python/dart/engine/emr/steps/python/fix_partition_folder_names.py
RetailMeNotSandbox/dart
58a05f56c04fadd6741501262d92aeb143cd2f2e
[ "MIT" ]
62
2016-04-11T15:17:23.000Z
2017-09-08T17:18:53.000Z
src/python/dart/engine/emr/steps/python/fix_partition_folder_names.py
RetailMeNotSandbox/dart
58a05f56c04fadd6741501262d92aeb143cd2f2e
[ "MIT" ]
15
2016-03-03T15:38:34.000Z
2019-03-27T19:33:08.000Z
#!/usr/bin/env python27 import sys import subprocess __author__ = 'dmcpherson' def call(cmd): try: print cmd result = subprocess.check_output(cmd, stderr=subprocess.STDOUT, shell=True) print result return result except subprocess.CalledProcessError as e: print e.outpu...
25.976744
83
0.59624
03fb52da97ccf19bfd928b7b1f078ce6cd273bc1
249
py
Python
WeatherSpider/WeatherSpider/spiders/SeniverseSpider15d.py
superlova/WeatherSpider
fa8ed79f780d8ef065a41208ed7e80f94581fac4
[ "MIT" ]
1
2020-05-26T01:51:13.000Z
2020-05-26T01:51:13.000Z
WeatherSpider/WeatherSpider/spiders/SeniverseSpider15d.py
superlova/WeatherSpider
fa8ed79f780d8ef065a41208ed7e80f94581fac4
[ "MIT" ]
null
null
null
WeatherSpider/WeatherSpider/spiders/SeniverseSpider15d.py
superlova/WeatherSpider
fa8ed79f780d8ef065a41208ed7e80f94581fac4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import scrapy class Seniversespider15dSpider(scrapy.Spider): name = 'SeniverseSpider15d' allowed_domains = ['seniverse.comm'] start_urls = ['http://seniverse.comm/'] def parse(self, response): pass
20.75
46
0.658635
b012a1549e2b6536258719ad0bf53ce95a30453f
906
py
Python
test/com/facebook/buck/features/python/testdata/python_binary/external_sources/wheel_package/setup.py
isfaaghyth/buck
cad8f7ac2de2c9a4f08ce66180db677e44d61aee
[ "Apache-2.0" ]
2
2019-09-22T05:33:37.000Z
2019-09-22T06:36:24.000Z
test/com/facebook/buck/features/python/testdata/python_binary/external_sources/wheel_package/setup.py
isfaaghyth/buck
cad8f7ac2de2c9a4f08ce66180db677e44d61aee
[ "Apache-2.0" ]
null
null
null
test/com/facebook/buck/features/python/testdata/python_binary/external_sources/wheel_package/setup.py
isfaaghyth/buck
cad8f7ac2de2c9a4f08ce66180db677e44d61aee
[ "Apache-2.0" ]
null
null
null
from setuptools import find_packages, setup setup( name="wheel_package", version="0.0.1", description="A sample Python project", long_description="A sample Python project", url="https://buck.build", author="Buck", license="Apache License 2.0", packages=["wheel_package"], # See https...
33.555556
72
0.610375
00f84a6f5d032cdf2143ec342ebca9a83d7c1fbc
1,236
py
Python
arjuna/interact/http/model/internal/processor/text/store.py
bhargavkumar-65/arjuna
400dfd598096199e89d64eb6e8d2932892d37f6d
[ "Apache-2.0" ]
13
2020-05-12T06:32:51.000Z
2022-01-24T18:21:19.000Z
arjuna/interact/http/model/internal/processor/text/store.py
bhargavkumar-65/arjuna
400dfd598096199e89d64eb6e8d2932892d37f6d
[ "Apache-2.0" ]
5
2020-02-14T12:51:07.000Z
2021-12-01T10:39:51.000Z
arjuna/interact/http/model/internal/processor/text/store.py
bhargavkumar-65/arjuna
400dfd598096199e89d64eb6e8d2932892d37f6d
[ "Apache-2.0" ]
25
2020-01-16T10:44:25.000Z
2022-02-24T13:22:22.000Z
# This file is a part of Arjuna # Copyright 2015-2021 Rahul Verma # Website: www.RahulVerma.net # 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...
30.9
121
0.68123
1198d083d0a1f87bffc27dd0a2f4a1798f7f9e80
8,794
py
Python
ag/forest/bin/tree_cli.py
justyre/jus
1339c010ac4499c253061d2cce5e638ec06062bd
[ "MIT" ]
null
null
null
ag/forest/bin/tree_cli.py
justyre/jus
1339c010ac4499c253061d2cce5e638ec06062bd
[ "MIT" ]
null
null
null
ag/forest/bin/tree_cli.py
justyre/jus
1339c010ac4499c253061d2cce5e638ec06062bd
[ "MIT" ]
null
null
null
# Licensed under MIT License. # See LICENSE in the project root for license information. """A simple CLI application.""" import cmd from typing import Optional from forest import tree_exceptions from forest.binary_trees import avl_tree from forest.binary_trees import binary_search_tree from forest.binary_trees impor...
36.641667
88
0.521947
dd1e46c4fa1beff069538ad42e9264635b06a278
345
py
Python
game/game_stats.py
ArturYazykov/alien-invasion
eb5728cdbecbe34a53d96bb16aea2e60a59aa9c0
[ "MIT" ]
null
null
null
game/game_stats.py
ArturYazykov/alien-invasion
eb5728cdbecbe34a53d96bb16aea2e60a59aa9c0
[ "MIT" ]
null
null
null
game/game_stats.py
ArturYazykov/alien-invasion
eb5728cdbecbe34a53d96bb16aea2e60a59aa9c0
[ "MIT" ]
null
null
null
class GameStats: def __init__(self, ai_game): self.settings = ai_game.settings self.reset_stats() self.game_active = False # self.high_score = 0 def reset_stats(self): self.ships_left = self.settings.ship_limit self.score = 0 self.level = 1 ...
24.642857
50
0.597101
dcc68a8988bad400edd820c3ec55859e92f2e2e1
1,687
py
Python
ivi/agilent/agilentMSO7104B.py
sacherjj/python-ivi
6dd1ba93d65dc30a652a3a1b34c66921d94315e8
[ "MIT" ]
161
2015-01-23T17:43:01.000Z
2022-03-29T14:42:42.000Z
ivi/agilent/agilentMSO7104B.py
sacherjj/python-ivi
6dd1ba93d65dc30a652a3a1b34c66921d94315e8
[ "MIT" ]
45
2015-01-15T13:35:04.000Z
2021-06-03T01:58:55.000Z
ivi/agilent/agilentMSO7104B.py
sacherjj/python-ivi
6dd1ba93d65dc30a652a3a1b34c66921d94315e8
[ "MIT" ]
87
2015-01-31T10:55:23.000Z
2022-03-17T08:18:47.000Z
""" Python Interchangeable Virtual Instrument Library Copyright (c) 2012-2017 Alex Forencich 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...
37.488889
86
0.755187
0b23072cc6482f8a6601120fdf7bfbc7effedcb3
1,516
py
Python
twittertail/http_server.py
ndavison/twitter-demo
9f753c6211c3388db6816f6c7d1915b734d89f66
[ "MIT" ]
null
null
null
twittertail/http_server.py
ndavison/twitter-demo
9f753c6211c3388db6816f6c7d1915b734d89f66
[ "MIT" ]
1
2021-03-13T03:35:42.000Z
2021-03-13T03:35:42.000Z
twittertail/http_server.py
ndavison/twitter-demo
9f753c6211c3388db6816f6c7d1915b734d89f66
[ "MIT" ]
null
null
null
from aiohttp import web import json class HTTPServer: def start_server(self, loop, interface, port, tweets): ''' Starts the aiohttp server on the supplied interface and port. Arguments: loop: the asyncio event loop. interface (string): the interface to listen on. ...
29.153846
69
0.523087
48873997e74133ebc841372457358b9a373f7f1c
730
py
Python
Extracting_the_Data/recipe_3_collecting_data_from_word_file/main.py
Rezwanul-Haque/NLP-Project
50555c740a66e229dc723b448456c6534fd17707
[ "MIT" ]
null
null
null
Extracting_the_Data/recipe_3_collecting_data_from_word_file/main.py
Rezwanul-Haque/NLP-Project
50555c740a66e229dc723b448456c6534fd17707
[ "MIT" ]
null
null
null
Extracting_the_Data/recipe_3_collecting_data_from_word_file/main.py
Rezwanul-Haque/NLP-Project
50555c740a66e229dc723b448456c6534fd17707
[ "MIT" ]
null
null
null
from docx import Document # Creating a word file object doc = open('data/file.docx', 'rb') # creating word reader object document = Document(doc) # create an empty string and call this document. This document # variable store each paragraph in the Word document.We then # create a for loop that goes through each para...
20.857143
64
0.70411
70d0b07fba9de9e0e8e7ab6b56ca5f07e148caf7
7,171
py
Python
python/mead/trainer.py
amyhemmeter/baseline
101a393398570747d14a32eb3af72664e2774c8b
[ "Apache-2.0" ]
null
null
null
python/mead/trainer.py
amyhemmeter/baseline
101a393398570747d14a32eb3af72664e2774c8b
[ "Apache-2.0" ]
null
null
null
python/mead/trainer.py
amyhemmeter/baseline
101a393398570747d14a32eb3af72664e2774c8b
[ "Apache-2.0" ]
null
null
null
import os import logging import argparse import copy from itertools import chain from baseline.utils import read_config_stream, normalize_backend import mead from mead.utils import convert_path, parse_extra_args, configure_logger DEFAULT_SETTINGS_LOC = 'config/mead-settings.json' DEFAULT_DATASETS_LOC = 'config/dataset...
49.798611
131
0.714266
20fe887f1b9f2a764d2d5da035684fb1fde6e624
8,201
py
Python
tests/bundle_download/test_download.py
reuterbal/ecbundle
94118ffa4384795ceed9d54cf886c975db4af9af
[ "Apache-2.0" ]
null
null
null
tests/bundle_download/test_download.py
reuterbal/ecbundle
94118ffa4384795ceed9d54cf886c975db4af9af
[ "Apache-2.0" ]
2
2022-01-12T10:02:57.000Z
2022-02-22T21:11:29.000Z
tests/bundle_download/test_download.py
reuterbal/ecbundle
94118ffa4384795ceed9d54cf886c975db4af9af
[ "Apache-2.0" ]
1
2022-02-22T20:39:14.000Z
2022-02-22T20:39:14.000Z
# (C) Copyright 2020- ECMWF. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernment...
29.289286
97
0.646385
540030a6387198673a55191608cfe8eef7659e2d
701
py
Python
binary_search.py
Kabongosalomon/Sorting-Algorithm
6e8fa49accb20582390ae2eff64b21645d9c1a8a
[ "Apache-2.0" ]
null
null
null
binary_search.py
Kabongosalomon/Sorting-Algorithm
6e8fa49accb20582390ae2eff64b21645d9c1a8a
[ "Apache-2.0" ]
null
null
null
binary_search.py
Kabongosalomon/Sorting-Algorithm
6e8fa49accb20582390ae2eff64b21645d9c1a8a
[ "Apache-2.0" ]
null
null
null
def binary_search(input_array, value): """this function take an input array, and return the index of value if present in the input array or -1 if not""" min_index = 0 max_index = len(input_array)-1 while (min_index<=max_index): midle = (min_index+max_index)//2 if input_arra...
28.04
72
0.631954
328298e8cd9e52e5550a235a30949d5de8a58cea
39,783
py
Python
tests/integration-tests/tests/schedulers/test_slurm.py
enrico-usai/aws-parallelcluster
caed724204c7db00424fabd803aa07d9fac2d962
[ "Apache-2.0" ]
null
null
null
tests/integration-tests/tests/schedulers/test_slurm.py
enrico-usai/aws-parallelcluster
caed724204c7db00424fabd803aa07d9fac2d962
[ "Apache-2.0" ]
14
2022-03-11T10:26:58.000Z
2022-03-28T10:40:43.000Z
tests/integration-tests/tests/schedulers/test_slurm.py
enrico-usai/aws-parallelcluster
caed724204c7db00424fabd803aa07d9fac2d962
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). # You may not use this file except in compliance with the License. # A copy of the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "LICENSE.txt" file acc...
42.232484
120
0.72619
e1fb5cb431a5f274e61cd65b4964c085b1f6715e
2,502
py
Python
examples/issue_asset.py
Shaptic/py-stellar-base
f5fa47f4d96f215889d99249fb25c7be002f5cf3
[ "Apache-2.0" ]
null
null
null
examples/issue_asset.py
Shaptic/py-stellar-base
f5fa47f4d96f215889d99249fb25c7be002f5cf3
[ "Apache-2.0" ]
27
2022-01-12T10:55:38.000Z
2022-03-28T01:38:24.000Z
examples/issue_asset.py
Shaptic/py-stellar-base
f5fa47f4d96f215889d99249fb25c7be002f5cf3
[ "Apache-2.0" ]
null
null
null
""" This example shows how to issue assets on the Stellar network. # See: https://developers.stellar.org/docs/issuing-assets/ """ from stellar_sdk.asset import Asset from stellar_sdk.keypair import Keypair from stellar_sdk.network import Network from stellar_sdk.server import Server from stellar_sdk.transaction_build...
35.742857
88
0.792566
7a20713bf2afd7c8056561ad8e08e1c01878e9c4
1,896
py
Python
test/test_caper_uri.py
guma44/caper
1fe8c6bfa23045f798e27fd083187beb6d6ddf85
[ "MIT" ]
null
null
null
test/test_caper_uri.py
guma44/caper
1fe8c6bfa23045f798e27fd083187beb6d6ddf85
[ "MIT" ]
null
null
null
test/test_caper_uri.py
guma44/caper
1fe8c6bfa23045f798e27fd083187beb6d6ddf85
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """Tester for CaperURI Author: Jin Lee (leepc12@gmail.com) at ENCODE-DCC """ import unittest import os import json try: import caper except: import sys, os script_path = os.path.dirname(os.path.realpath(__file__)) sys.path.append(os.path.join(script_path, '../')) import...
35.773585
147
0.643987
9580157dfdb2795a929ca230ea79da98d81ccd04
11,099
py
Python
custom_components/xiaomi_cloud_map_extractor/common/image_handler.py
GuyKh/Home-Assistant-custom-components-Xiaomi-Cloud-Map-Extractor
65e0a905fdb6048facdb34cbec40b7ece4fef991
[ "MIT" ]
697
2020-09-30T08:35:58.000Z
2022-03-31T17:14:20.000Z
custom_components/xiaomi_cloud_map_extractor/common/image_handler.py
Neonox31/Home-Assistant-custom-components-Xiaomi-Cloud-Map-Extractor
7bc868278f74fdaba475987dd5fdf485e430fe53
[ "MIT" ]
216
2020-10-01T12:05:24.000Z
2022-03-31T11:35:46.000Z
custom_components/xiaomi_cloud_map_extractor/common/image_handler.py
Neonox31/Home-Assistant-custom-components-Xiaomi-Cloud-Map-Extractor
7bc868278f74fdaba475987dd5fdf485e430fe53
[ "MIT" ]
92
2020-09-30T18:10:19.000Z
2022-03-24T12:15:18.000Z
import logging from typing import Callable from PIL import Image, ImageDraw, ImageFont from PIL.Image import Image as ImageType from custom_components.xiaomi_cloud_map_extractor.common.map_data import ImageData from custom_components.xiaomi_cloud_map_extractor.const import * _LOGGER = logging.getLogger(__name__) c...
43.01938
116
0.643662
75d545bc583d1f422e15b338241928ccf02ba440
797
py
Python
tests/test_help.py
rzr/mopidy
f6556ffafce34aebbc43ca266f69ac0068edc31d
[ "Apache-2.0" ]
2
2015-07-09T09:36:26.000Z
2019-10-05T04:13:19.000Z
tests/test_help.py
rzr/mopidy
f6556ffafce34aebbc43ca266f69ac0068edc31d
[ "Apache-2.0" ]
null
null
null
tests/test_help.py
rzr/mopidy
f6556ffafce34aebbc43ca266f69ac0068edc31d
[ "Apache-2.0" ]
1
2019-10-05T04:13:10.000Z
2019-10-05T04:13:10.000Z
from __future__ import unicode_literals import os import subprocess import sys import unittest import mopidy class HelpTest(unittest.TestCase): def test_help_has_mopidy_options(self): mopidy_dir = os.path.dirname(mopidy.__file__) args = [sys.executable, mopidy_dir, '--help'] process = su...
29.518519
63
0.632371
ba564fa1b1319e1cdfd4519052afe820daa16c1a
6,163
py
Python
sacred/arg_parser.py
ahallermed/sacred
5a25c89aae75192a52dce8772ed0979104627fed
[ "MIT" ]
3,895
2015-03-16T18:52:44.000Z
2022-03-31T01:43:56.000Z
sacred/arg_parser.py
ahallermed/sacred
5a25c89aae75192a52dce8772ed0979104627fed
[ "MIT" ]
710
2015-03-26T11:45:42.000Z
2022-03-31T21:51:08.000Z
sacred/arg_parser.py
ahallermed/sacred
5a25c89aae75192a52dce8772ed0979104627fed
[ "MIT" ]
401
2015-03-18T14:34:42.000Z
2022-03-05T23:26:50.000Z
""" Contains the command-line parsing and help for experiments. The command-line interface of sacred is built on top of ``docopt``, which constructs a command-line parser from a usage text. Curiously in sacred we first programmatically generate a usage text and then parse it with ``docopt``. """ import ast import tex...
28.665116
80
0.623722
7aa79d299fc604f84a7d006f2f2aebb8de01e309
20,697
py
Python
keras/applications/mobilenet_v2.py
quantumalaviya/keras
8d874de12ed2e199d9528bfff891f4f60ee2a636
[ "Apache-2.0" ]
1
2021-09-11T21:25:20.000Z
2021-09-11T21:25:20.000Z
keras/applications/mobilenet_v2.py
quantumalaviya/keras
8d874de12ed2e199d9528bfff891f4f60ee2a636
[ "Apache-2.0" ]
null
null
null
keras/applications/mobilenet_v2.py
quantumalaviya/keras
8d874de12ed2e199d9528bfff891f4f60ee2a636
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
39.050943
87
0.65594
32cf29818e06947aa32ddfbd02d85ab6e1772325
3,862
py
Python
pandas/tests/extension/base/missing.py
mapehe/pandas
8ddc0fd801d794fcd7735816790dff66d1c678e2
[ "BSD-3-Clause" ]
3
2019-04-01T11:03:04.000Z
2019-12-31T02:17:15.000Z
pandas/tests/extension/base/missing.py
mapehe/pandas
8ddc0fd801d794fcd7735816790dff66d1c678e2
[ "BSD-3-Clause" ]
1
2021-04-15T18:46:45.000Z
2021-04-15T18:46:45.000Z
pandas/tests/extension/base/missing.py
mapehe/pandas
8ddc0fd801d794fcd7735816790dff66d1c678e2
[ "BSD-3-Clause" ]
1
2020-06-18T15:56:53.000Z
2020-06-18T15:56:53.000Z
import numpy as np import pytest import pandas as pd import pandas.util.testing as tm from .base import BaseExtensionTests class BaseMissingTests(BaseExtensionTests): def test_isna(self, data_missing): expected = np.array([True, False]) result = pd.isna(data_missing) tm.assert_numpy_arr...
31.655738
71
0.615743
895baeefd7f79415307cfe7b140ce052399a9a31
7,196
py
Python
NeurIPS_2021/Figure_1/QD_cubic/DataGen.py
streeve/PI3NN
f7f08a195096e0388bb9230bc67c6acd6f41581a
[ "Apache-2.0" ]
11
2021-11-08T20:38:50.000Z
2022-01-30T02:46:39.000Z
NeurIPS_2021/Figure_1/QD_cubic/DataGen.py
streeve/PI3NN
f7f08a195096e0388bb9230bc67c6acd6f41581a
[ "Apache-2.0" ]
1
2022-01-13T19:46:32.000Z
2022-02-09T16:23:56.000Z
NeurIPS_2021/Figure_1/QD_cubic/DataGen.py
streeve/PI3NN
f7f08a195096e0388bb9230bc67c6acd6f41581a
[ "Apache-2.0" ]
1
2021-12-17T18:38:26.000Z
2021-12-17T18:38:26.000Z
# -*- coding: utf-8 -*- import numpy as np import scipy as sp import math import matplotlib.pyplot as plt import importlib """ this file contains object to create data sets for regression synthetic datasets: drunk_bow_tie - as in paper, with gaussian noise drunk_bow_tie_exp - as in paper with exp noise x_cubed_gap -...
28
139
0.638549
570045baa58513e37ae03d8f13bf0cbab49762e4
4,692
py
Python
examples-master/python_examples/test_pot_dq.py
JungHoonJung/2021MD
29bfae7a750217d50654e4973a2be6fb0d968bdf
[ "MIT" ]
186
2017-04-30T18:11:12.000Z
2022-03-31T18:35:09.000Z
examples-master/python_examples/test_pot_dq.py
JungHoonJung/2021MD
29bfae7a750217d50654e4973a2be6fb0d968bdf
[ "MIT" ]
17
2017-02-09T11:08:49.000Z
2022-01-29T14:40:09.000Z
examples-master/python_examples/test_pot_dq.py
JungHoonJung/2021MD
29bfae7a750217d50654e4973a2be6fb0d968bdf
[ "MIT" ]
92
2017-09-13T05:20:40.000Z
2022-03-19T16:17:02.000Z
#!/usr/bin/env python3 # test_pot_dq.py #------------------------------------------------------------------------------------------------# # This software was written in 2016/17 # # by Michael P. Allen <m.p.allen@warwick.ac.uk>/<m.p.allen@bristol.ac.uk> ...
48.875
98
0.5211
a017ffa7109803cae535880895bc7b0bb8e39b17
164
py
Python
tests/model_control/detailed/transf_Logit/model_control_one_enabled_Logit_ConstantTrend_Seasonal_MonthOfYear_NoAR.py
shaido987/pyaf
b9afd089557bed6b90b246d3712c481ae26a1957
[ "BSD-3-Clause" ]
377
2016-10-13T20:52:44.000Z
2022-03-29T18:04:14.000Z
tests/model_control/detailed/transf_Logit/model_control_one_enabled_Logit_ConstantTrend_Seasonal_MonthOfYear_NoAR.py
ysdede/pyaf
b5541b8249d5a1cfdc01f27fdfd99b6580ed680b
[ "BSD-3-Clause" ]
160
2016-10-13T16:11:53.000Z
2022-03-28T04:21:34.000Z
tests/model_control/detailed/transf_Logit/model_control_one_enabled_Logit_ConstantTrend_Seasonal_MonthOfYear_NoAR.py
ysdede/pyaf
b5541b8249d5a1cfdc01f27fdfd99b6580ed680b
[ "BSD-3-Clause" ]
63
2017-03-09T14:51:18.000Z
2022-03-27T20:52:57.000Z
import tests.model_control.test_ozone_custom_models_enabled as testmod testmod.build_model( ['Logit'] , ['ConstantTrend'] , ['Seasonal_MonthOfYear'] , ['NoAR'] );
41
91
0.762195
fe67c40ce9ecf1d76fc170ecd6e31ab09246551a
64
py
Python
prml/linear/_classifier.py
alexandru-dinu/PRML
acd823e098df67abe0306a70225e7539f8edda40
[ "MIT" ]
null
null
null
prml/linear/_classifier.py
alexandru-dinu/PRML
acd823e098df67abe0306a70225e7539f8edda40
[ "MIT" ]
null
null
null
prml/linear/_classifier.py
alexandru-dinu/PRML
acd823e098df67abe0306a70225e7539f8edda40
[ "MIT" ]
1
2019-06-22T20:56:02.000Z
2019-06-22T20:56:02.000Z
class Classifier(object): """Base class for classifiers."""
21.333333
37
0.6875
5eec48a9800b4ea4b6e828b3ac90ba6752022547
3,329
py
Python
malaya_speech/train/model/vits/transformer/__init__.py
ishine/malaya-speech
fd34afc7107af1656dff4b3201fa51dda54fde18
[ "MIT" ]
null
null
null
malaya_speech/train/model/vits/transformer/__init__.py
ishine/malaya-speech
fd34afc7107af1656dff4b3201fa51dda54fde18
[ "MIT" ]
null
null
null
malaya_speech/train/model/vits/transformer/__init__.py
ishine/malaya-speech
fd34afc7107af1656dff4b3201fa51dda54fde18
[ "MIT" ]
null
null
null
""" MIT License Copyright (c) 2021 YoungJoong Kim Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish...
36.184783
78
0.619706
176160226aaab4a1c2632a248c8487c4f1da78b8
33,972
py
Python
third_party/cython/src/Cython/Compiler/TypeSlots.py
domenic/mojo
53dda76fed90a47c35ed6e06baf833a0d44495b8
[ "BSD-3-Clause" ]
8
2016-02-08T11:59:31.000Z
2020-05-31T15:19:54.000Z
third_party/cython/src/Cython/Compiler/TypeSlots.py
domenic/mojo
53dda76fed90a47c35ed6e06baf833a0d44495b8
[ "BSD-3-Clause" ]
1
2018-02-10T21:00:08.000Z
2018-03-20T05:09:50.000Z
third_party/cython/src/Cython/Compiler/TypeSlots.py
domenic/mojo
53dda76fed90a47c35ed6e06baf833a0d44495b8
[ "BSD-3-Clause" ]
7
2016-02-09T09:28:14.000Z
2020-07-25T19:03:36.000Z
# # Tables describing slots in the CPython type object # and associated know-how. # import Naming import PyrexTypes import StringEncoding invisible = ['__cinit__', '__dealloc__', '__richcmp__', '__nonzero__', '__bool__'] class Signature(object): # Method slot signature descriptor. # # ...
40.539379
133
0.607
8ff7851d1eb838ce12779d37081a37ba235ffab9
1,499
py
Python
src/gamesbyexample/middleletterscrambler.py
skinzor/PythonStdioGames
75f27af19d7f1d555b0fd85fbcf215f07660b93f
[ "MIT" ]
1
2019-11-30T17:04:09.000Z
2019-11-30T17:04:09.000Z
src/gamesbyexample/middleletterscrambler.py
skinzor/PythonStdioGames
75f27af19d7f1d555b0fd85fbcf215f07660b93f
[ "MIT" ]
null
null
null
src/gamesbyexample/middleletterscrambler.py
skinzor/PythonStdioGames
75f27af19d7f1d555b0fd85fbcf215f07660b93f
[ "MIT" ]
null
null
null
# Middle Letter Scrambler, by Al Sweigart al@inventwithpython.com # Scrambles the middle letters of words, but not the first and last letters. import random try: import pyperclip except ImportError: pass # It's not a big deal if pyperclip is not installed. def englishToMiddleLetterScramble(message): if m...
28.826923
85
0.661775
0719e908e2e913b1ac1756c93c3d919e8c1226f1
7,567
py
Python
e2efold_rt/e2efold/data_generator.py
Lucmon/TopologyDetect
79607f3ce39a1ee6ded41b2500629065cf1cfe51
[ "Apache-2.0" ]
null
null
null
e2efold_rt/e2efold/data_generator.py
Lucmon/TopologyDetect
79607f3ce39a1ee6ded41b2500629065cf1cfe51
[ "Apache-2.0" ]
null
null
null
e2efold_rt/e2efold/data_generator.py
Lucmon/TopologyDetect
79607f3ce39a1ee6ded41b2500629065cf1cfe51
[ "Apache-2.0" ]
null
null
null
import numpy as np import os import _pickle as cPickle import collections from e2efold.common.utils import * from e2efold.common.long_seq_pre_post_process import * from multiprocessing import Pool from torch.utils import data from collections import Counter from random import shuffle import torch class RNASSDataGenera...
35.525822
110
0.63658
8e75bd93873526b7914377bf9240b0b242293674
255
py
Python
ddtrace/ext/system.py
KDWSS/dd-trace-py
6d859bec403347f7c1e7efd039210908b562741e
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
ddtrace/ext/system.py
KDWSS/dd-trace-py
6d859bec403347f7c1e7efd039210908b562741e
[ "Apache-2.0", "BSD-3-Clause" ]
6
2021-06-29T14:58:43.000Z
2021-12-15T14:14:36.000Z
ddtrace/ext/system.py
KDWSS/dd-trace-py
6d859bec403347f7c1e7efd039210908b562741e
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
""" Standard system tags """ from ddtrace.constants import PID from ddtrace.utils.deprecation import deprecation deprecation( name="ddtrace.ext.system", message="Use `ddtrace.constants` module instead", version="1.0.0", ) __all__ = ["PID"]
17
53
0.709804
9cc85ef750e0603375230be2360918982f526570
4,108
py
Python
UNet.py
chenhsiu48/HiDDeN
0ed98ffb5c4852cc45024169119f7e3732a99044
[ "MIT" ]
1
2022-03-13T03:07:41.000Z
2022-03-13T03:07:41.000Z
UNet.py
chenhsiu48/HiDDeN
0ed98ffb5c4852cc45024169119f7e3732a99044
[ "MIT" ]
null
null
null
UNet.py
chenhsiu48/HiDDeN
0ed98ffb5c4852cc45024169119f7e3732a99044
[ "MIT" ]
1
2021-12-11T08:44:57.000Z
2021-12-11T08:44:57.000Z
# encoding: utf-8 import functools import torch import torch.nn as nn # Defines the Unet generator. # |num_downs|: number of downsamplings in UNet. For example, # if |num_downs| == 7, image of size 128x128 will become of size 1x1 # at the bottleneck class UnetGenerator(nn.Module): def __init__(self, input_nc, ...
42.350515
173
0.615141
5b6d09645a1159c80d020aba01dc62995005c7ab
9,342
py
Python
tests/test_approx.py
jobovy/wendy
99545871283d55f9fb08e597ed52453dc44051aa
[ "MIT" ]
14
2017-07-21T23:48:56.000Z
2021-08-15T07:55:29.000Z
tests/test_approx.py
jobovy/wendy
99545871283d55f9fb08e597ed52453dc44051aa
[ "MIT" ]
6
2017-05-13T00:53:25.000Z
2020-11-11T02:49:10.000Z
tests/test_approx.py
jobovy/wendy
99545871283d55f9fb08e597ed52453dc44051aa
[ "MIT" ]
6
2017-11-11T05:40:14.000Z
2019-04-28T17:54:56.000Z
# test_approx.py: some basic tests of the approximate N-body code import numpy import pytest import wendy numpy.random.seed(2) def test_energy_conservation(): # Test that energy is conserved for a simple problem x= numpy.array([-1.1,0.1,1.3]) v= numpy.array([3.,2.,-5.]) m= numpy.array([1.,1.,1.]) g=...
37.518072
152
0.639264
4daf654ac0a6a742706bc4dddb893d1c3d03c0e9
2,173
py
Python
dimod/meta.py
randomir/dimod
8f636168a620e0dc9d969fb0a813f6b4ba5a755c
[ "Apache-2.0" ]
1
2022-02-01T14:40:05.000Z
2022-02-01T14:40:05.000Z
dimod/meta.py
randomir/dimod
8f636168a620e0dc9d969fb0a813f6b4ba5a755c
[ "Apache-2.0" ]
24
2021-07-09T08:19:47.000Z
2022-03-08T08:15:48.000Z
dimod/meta.py
randomir/dimod
8f636168a620e0dc9d969fb0a813f6b4ba5a755c
[ "Apache-2.0" ]
1
2019-08-15T17:16:46.000Z
2019-08-15T17:16:46.000Z
# Copyright 2018 D-Wave Systems Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
33.953125
98
0.603313
e7d08c148779a57560a0e1eaa999673a0daccaef
13,926
py
Python
process.py
Yousof-Mahmoud/Digital_Smile_Design_Biomeetrics
7e33796f400225ab727364f44344b8e4ce2838ae
[ "MIT" ]
null
null
null
process.py
Yousof-Mahmoud/Digital_Smile_Design_Biomeetrics
7e33796f400225ab727364f44344b8e4ce2838ae
[ "MIT" ]
null
null
null
process.py
Yousof-Mahmoud/Digital_Smile_Design_Biomeetrics
7e33796f400225ab727364f44344b8e4ce2838ae
[ "MIT" ]
null
null
null
import cv2 import mediapipe as mp import numpy as np from PIL import Image import os, io from PIL import Image, ImageDraw import cv2 import numpy as np from numpy.core.fromnumeric import shape, size import matplotlib as plt global Zefer Zefer = 0 global width21 width21 =0 def template(fname,tempfilename): img =...
28.832298
118
0.577912