hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
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
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
7959ab19a11899c2ced3262c2e7ea3c70a7a5d4a
7,106
py
Python
kubernetes_asyncio/client/models/v1_subject_access_review.py
PidgeyBE/kubernetes_asyncio
14d15dc309890253c26b6274a022e84441e05217
[ "Apache-2.0" ]
null
null
null
kubernetes_asyncio/client/models/v1_subject_access_review.py
PidgeyBE/kubernetes_asyncio
14d15dc309890253c26b6274a022e84441e05217
[ "Apache-2.0" ]
null
null
null
kubernetes_asyncio/client/models/v1_subject_access_review.py
PidgeyBE/kubernetes_asyncio
14d15dc309890253c26b6274a022e84441e05217
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: v1.13.5 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class V1SubjectA...
32.009009
295
0.618491
7959ab340a01764236d466d7b8acbddb3ca0db8f
1,813
py
Python
data_import.py
schenkd/webdev-project
8b2ae4396d5f3f059692021b07fe74394408dfea
[ "MIT" ]
1
2017-04-27T09:36:17.000Z
2017-04-27T09:36:17.000Z
data_import.py
schenkd/webdev-project
8b2ae4396d5f3f059692021b07fe74394408dfea
[ "MIT" ]
null
null
null
data_import.py
schenkd/webdev-project
8b2ae4396d5f3f059692021b07fe74394408dfea
[ "MIT" ]
null
null
null
# ~*~ encoding: utf-8 ~*~ from pymongo import MongoClient from pandas import read_csv from datetime import date mongodb = MongoClient('192.168.178.82', 9999) db = mongodb['dev'] drug_collection = db['drug'] drugs = read_csv('~/Dokumente/bfarm_lieferenpass_meldung.csv', delimiter=';', encoding='iso8859_2').to_dict() ...
32.963636
109
0.607832
7959ab642e8506fd393c0133c60e28e816765cc1
4,891
py
Python
src/bench/data/convert-raw-files.py
bitcoin-ce/bitcoin-ce
e6a0f3907a58ad4a0f67a30d6b8b3940f08fe2c9
[ "MIT" ]
1
2021-11-24T03:54:05.000Z
2021-11-24T03:54:05.000Z
src/bench/data/convert-raw-files.py
1Crazymoney/bitcoin-cash-node
8f82823b3c5d4bcb401b0e4e6b464c1228f936e1
[ "MIT" ]
null
null
null
src/bench/data/convert-raw-files.py
1Crazymoney/bitcoin-cash-node
8f82823b3c5d4bcb401b0e4e6b464c1228f936e1
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2019 The Bitcoin Core developers # Copyright (c) 2019-2020 The Bitcoin developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. from glob import glob from os.path import basename names_raw...
40.090164
124
0.532815
7959abc40b48eab1b2becc369fe69288a1768bee
4,325
py
Python
sa/profiles/Qtech/QSW2800/get_switchport.py
xUndero/noc
9fb34627721149fcf7064860bd63887e38849131
[ "BSD-3-Clause" ]
1
2019-09-20T09:36:48.000Z
2019-09-20T09:36:48.000Z
sa/profiles/Qtech/QSW2800/get_switchport.py
ewwwcha/noc
aba08dc328296bb0e8e181c2ac9a766e1ec2a0bb
[ "BSD-3-Clause" ]
null
null
null
sa/profiles/Qtech/QSW2800/get_switchport.py
ewwwcha/noc
aba08dc328296bb0e8e181c2ac9a766e1ec2a0bb
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # --------------------------------------------------------------------- # Qtech.QSW2800.get_switchport # --------------------------------------------------------------------- # Copyright (C) 2007-2019 The NOC Project # See LICENSE for details # ---------------------------------------------------...
36.041667
86
0.482312
7959abcb3c357d16b4940fc8ac974c14057ca42c
132
py
Python
tastefulpy/__init__.py
mjschultz/django-tastefulpy
c81c7b32da16f9b181589a0311d9819718fdc960
[ "BSD-3-Clause" ]
null
null
null
tastefulpy/__init__.py
mjschultz/django-tastefulpy
c81c7b32da16f9b181589a0311d9819718fdc960
[ "BSD-3-Clause" ]
null
null
null
tastefulpy/__init__.py
mjschultz/django-tastefulpy
c81c7b32da16f9b181589a0311d9819718fdc960
[ "BSD-3-Clause" ]
null
null
null
from __future__ import unicode_literals __author__ = 'Daniel Lindsley & the Tastefulpy core team' __version__ = (0, 12, 2, 'dev')
22
57
0.75
7959ac4c4faa09464693018d1fd2599eea85a398
340
py
Python
chat/urls.py
aimengda/django-chat
ac4def489d6a568eacfd5dec3f159e47025365a6
[ "MIT" ]
null
null
null
chat/urls.py
aimengda/django-chat
ac4def489d6a568eacfd5dec3f159e47025365a6
[ "MIT" ]
5
2021-03-30T13:51:39.000Z
2021-09-22T19:14:56.000Z
chat/urls.py
aimengda/django-chat
ac4def489d6a568eacfd5dec3f159e47025365a6
[ "MIT" ]
null
null
null
from django.urls import path from . import views urlpatterns = [ path('', views.user_login, name='login'), path(r'login', views.user_login, name='login'), path(r'logout', views.user_logout, name='logout'), path(r'homepage', views.homepage, name='homepage'), path(r'register',views.Register.as_view()...
34
63
0.682353
7959ac9ee8333f19a09810c3d51a72fa1d720280
352
py
Python
exceptions_FancyDivide2.py
medifle/python_6.00.1x
d40629f83e09b02cd4fc4e79e790d51d9b0ebf63
[ "MIT" ]
4
2015-10-27T15:42:33.000Z
2018-03-08T07:16:26.000Z
exceptions_FancyDivide2.py
medifle/python_6.00.1x
d40629f83e09b02cd4fc4e79e790d51d9b0ebf63
[ "MIT" ]
null
null
null
exceptions_FancyDivide2.py
medifle/python_6.00.1x
d40629f83e09b02cd4fc4e79e790d51d9b0ebf63
[ "MIT" ]
null
null
null
def FancyDivide2(list_of_numbers, index): try: try: denom = list_of_numbers[index] for i in range(len(list_of_numbers)): list_of_numbers[i] /= denom finally: raise Exception("1") except Exception, e: print (e) ...
27.076923
50
0.488636
7959ad959eafe8184a08d51fb10b03af4fa3b556
4,711
py
Python
napari/_qt/qt_about_key_bindings.py
danielballan/napari
9963d6bf52971f8f240b507be206ec682487fb4a
[ "BSD-3-Clause" ]
null
null
null
napari/_qt/qt_about_key_bindings.py
danielballan/napari
9963d6bf52971f8f240b507be206ec682487fb4a
[ "BSD-3-Clause" ]
null
null
null
napari/_qt/qt_about_key_bindings.py
danielballan/napari
9963d6bf52971f8f240b507be206ec682487fb4a
[ "BSD-3-Clause" ]
null
null
null
from qtpy.QtCore import Qt from qtpy.QtWidgets import ( QDialog, QVBoxLayout, QHBoxLayout, QTextEdit, QComboBox, ) from collections import OrderedDict import napari from ..utils.interactions import get_key_bindings_summary class QtAboutKeyBindings(QDialog): """Qt dialog window for displaying k...
35.961832
80
0.652303
7959adbcf0fa0241760efbf738dea7cc9262173c
765
py
Python
apps/estoque/migrations/0004_auto_20170201_2231.py
SamuelsonH2T/erp
5973c6b9f4ce4ddcdc47cdd809d9c3d9a5f0ef6e
[ "MIT" ]
null
null
null
apps/estoque/migrations/0004_auto_20170201_2231.py
SamuelsonH2T/erp
5973c6b9f4ce4ddcdc47cdd809d9c3d9a5f0ef6e
[ "MIT" ]
null
null
null
apps/estoque/migrations/0004_auto_20170201_2231.py
SamuelsonH2T/erp
5973c6b9f4ce4ddcdc47cdd809d9c3d9a5f0ef6e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-02-01 22:31 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('estoque', '0003_auto_20170201_2216'), ] operations = [ migrations.AlterMode...
26.37931
94
0.593464
7959b0263b10d68c7f34529049211675c59d0aa1
16,984
py
Python
tensorflow/python/keras/utils/layer_utils.py
EricLi404/tensorflow
23759800d89f7b5362c338d9a3fd72a6810c3e22
[ "Apache-2.0" ]
2
2020-09-08T15:04:52.000Z
2020-09-08T15:04:54.000Z
tensorflow/python/keras/utils/layer_utils.py
EricLi404/tensorflow
23759800d89f7b5362c338d9a3fd72a6810c3e22
[ "Apache-2.0" ]
2
2021-08-25T16:12:15.000Z
2022-02-10T02:19:16.000Z
tensorflow/python/keras/utils/layer_utils.py
EricLi404/tensorflow
23759800d89f7b5362c338d9a3fd72a6810c3e22
[ "Apache-2.0" ]
2
2019-03-07T05:54:18.000Z
2019-05-16T20:31:25.000Z
# 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...
33.698413
80
0.675224
7959b06cab4baf1fbff9ee7da7f17a96c8709dbe
5,253
py
Python
ToDo_CLI_App/todo.py
Dutta-SD/Python_Programs
f002dbd49c979a6d8b156f88003a79f364ff01da
[ "MIT" ]
1
2021-01-04T07:16:05.000Z
2021-01-04T07:16:05.000Z
ToDo_CLI_App/todo.py
Dutta-SD/Python_Programs
f002dbd49c979a6d8b156f88003a79f364ff01da
[ "MIT" ]
2
2021-01-27T04:24:50.000Z
2021-07-25T17:44:00.000Z
ToDo_CLI_App/todo.py
Dutta-SD/Python_Programs
f002dbd49c979a6d8b156f88003a79f364ff01da
[ "MIT" ]
null
null
null
''' ----------------------------------------------- todo : CLI tool for managing daily tasks ----------------------------------------------- __author__ : Sandip Dutta ----------------------------------------------- Note : Some error occuring due to help function formatting issues ''' #------------ Dependencies---------...
33.246835
98
0.598134
7959b0f8d6952080060f39f0a59866cebce9748d
1,550
py
Python
QFA/test/gqfa_test.py
gustawlippa/QFA
7f1f8bd0d2c9cb9aeeeb924b2f002c9e849523be
[ "MIT" ]
2
2021-01-30T23:14:36.000Z
2021-02-17T01:41:56.000Z
QFA/test/gqfa_test.py
gustawlippa/QFA
7f1f8bd0d2c9cb9aeeeb924b2f002c9e849523be
[ "MIT" ]
null
null
null
QFA/test/gqfa_test.py
gustawlippa/QFA
7f1f8bd0d2c9cb9aeeeb924b2f002c9e849523be
[ "MIT" ]
null
null
null
import unittest from QFA import GQFA import numpy as np from math import sqrt class GQFATest(unittest.TestCase): def test_example(self): # example is the same as in GQFA.example() alphabet = 'a' a_matrix = np.array([[1 / 2, 1 / 2, sqrt(1 / 2), 0], [sqrt(1 / 2...
32.291667
95
0.413548
7959b1277d858496fb5954356e1cb9c651f1935b
5,068
py
Python
package/xarl/agents/xaddpg/xaddpg_tf_loss.py
proroklab/xaer
9a59d1ec19ffd8037697aa7ffc43246d4c0c0e69
[ "MIT" ]
1
2021-10-16T16:48:56.000Z
2021-10-16T16:48:56.000Z
package/xarl/agents/xaddpg/xaddpg_tf_loss.py
proroklab/xaer
9a59d1ec19ffd8037697aa7ffc43246d4c0c0e69
[ "MIT" ]
null
null
null
package/xarl/agents/xaddpg/xaddpg_tf_loss.py
proroklab/xaer
9a59d1ec19ffd8037697aa7ffc43246d4c0c0e69
[ "MIT" ]
null
null
null
from ray.rllib.agents.ddpg.ddpg_tf_policy import * def xaddpg_actor_critic_loss(policy, model, _, train_batch): twin_q = policy.config["twin_q"] gamma = policy.config["gamma"] n_step = policy.config["n_step"] use_huber = policy.config["use_huber"] huber_threshold = policy.config["huber_threshold"] l2_reg = polic...
36.2
74
0.747238
7959b1e757836d74ff59259ac79d920874a8730c
35,426
py
Python
src/pymor/operators/fv.py
ManuelMBaumann/pymor
9ad226a0a46c7ba30a18bdab27b8bbbfe8f83a31
[ "Unlicense" ]
null
null
null
src/pymor/operators/fv.py
ManuelMBaumann/pymor
9ad226a0a46c7ba30a18bdab27b8bbbfe8f83a31
[ "Unlicense" ]
null
null
null
src/pymor/operators/fv.py
ManuelMBaumann/pymor
9ad226a0a46c7ba30a18bdab27b8bbbfe8f83a31
[ "Unlicense" ]
null
null
null
# This file is part of the pyMOR project (http://www.pymor.org). # Copyright 2013-2019 pyMOR developers and contributors. All rights reserved. # License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) """ This module provides some operators for finite volume discretizations.""" import numpy as np ...
41.482436
119
0.629848
7959b22f2a8456c946ff2e50d7c94d7f6c7c62bc
4,583
py
Python
test_20201216.py
tjdalsckd/Hyc_wheelchair
7279775fafbbafc6419d372ab2ea1199f1c3d033
[ "Apache-2.0" ]
null
null
null
test_20201216.py
tjdalsckd/Hyc_wheelchair
7279775fafbbafc6419d372ab2ea1199f1c3d033
[ "Apache-2.0" ]
1
2021-01-06T08:40:11.000Z
2021-01-06T08:40:11.000Z
test_20201216.py
tjdalsckd/Hyc_wheelchair
7279775fafbbafc6419d372ab2ea1199f1c3d033
[ "Apache-2.0" ]
null
null
null
import sys, time import threading import keyboard import numpy as np from bledevice import scanble, BLEDevice Device1 = BLEDevice("DD:43:89:16:43:81") Device2 = BLEDevice("F4:82:B3:50:ED:55") time.sleep(0.5) sum_time = 0; mean_time = 0; count = 0; STOP = 0 MOVE_FWD = 1 MOVE_BWD = 2 MOVE_FWR_R = 10 MOVE_FWR_L = 11 MO...
20.644144
70
0.696487
7959b311c4550391f3df7e45ff99ea45171b74f5
4,620
py
Python
ico/tests/contracts/test_releasable.py
miohtama/Smart-Contracts
8892e85d1c75994871a0fa14eb8c03016db39d88
[ "Apache-2.0" ]
1,148
2017-03-28T08:41:32.000Z
2019-01-26T13:39:39.000Z
ico/tests/contracts/test_releasable.py
miohtama/Smart-Contracts
8892e85d1c75994871a0fa14eb8c03016db39d88
[ "Apache-2.0" ]
117
2017-03-31T07:31:22.000Z
2019-01-14T16:14:49.000Z
ico/tests/contracts/test_releasable.py
miohtama/Smart-Contracts
8892e85d1c75994871a0fa14eb8c03016db39d88
[ "Apache-2.0" ]
494
2017-03-30T23:11:45.000Z
2019-01-29T17:41:37.000Z
"""Releasable token.""" import pytest from eth_tester.exceptions import TransactionFailed from web3.contract import Contract def test_bad_released(token: Contract, team_multisig: str, malicious_address: str, empty_address: str): """Only release agent can make token transferable.""" assert not token.function...
40.173913
118
0.725974
7959b3ed0d0d780b3dd2127650c09ca43c2ad7e3
1,433
py
Python
main.py
Imran95942/CrocodileGame
fa8e710a2a3d90a29b4126610147ad4442835f89
[ "Unlicense" ]
null
null
null
main.py
Imran95942/CrocodileGame
fa8e710a2a3d90a29b4126610147ad4442835f89
[ "Unlicense" ]
null
null
null
main.py
Imran95942/CrocodileGame
fa8e710a2a3d90a29b4126610147ad4442835f89
[ "Unlicense" ]
null
null
null
from telegram.ext import Defaults from telegram.ext import Updater from config import BOT_TOKEN from config import SUDO_USERS updater = Updater( token=1951787106:AAFbVL0eaJha8luz8IjPa8xBaftpoztWBU4, defaults=Defaults( parse_mode='HTML', disable_web_page_preview=True, quote=False, ...
24.288136
60
0.637823
7959b41cc201437433b81e1cae33ea561ca1d47d
930
py
Python
src/tests/unit/security/permission/manager.py
wilsonGmn/pyrin
25dbe3ce17e80a43eee7cfc7140b4c268a6948e0
[ "BSD-3-Clause" ]
null
null
null
src/tests/unit/security/permission/manager.py
wilsonGmn/pyrin
25dbe3ce17e80a43eee7cfc7140b4c268a6948e0
[ "BSD-3-Clause" ]
null
null
null
src/tests/unit/security/permission/manager.py
wilsonGmn/pyrin
25dbe3ce17e80a43eee7cfc7140b4c268a6948e0
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ permission manager module. """ from pyrin.database.services import get_current_store from pyrin.security.permission.manager import PermissionManager as BasePermissionManager from tests.unit.security.permission import PermissionPackage from tests.unit.security.permission.models import Permi...
27.352941
89
0.670968
7959b5636f1a4fc82ae644e9aea773d70cd51b6b
23,612
py
Python
simulation_ws/src/rl-agent/markov/environments/mars_env.py
ToxaIvchenko/AWS-JPL-OSR-Challenge-1
6acb5603d7300ac500fea98df6fcff08a386e0dd
[ "Apache-2.0" ]
null
null
null
simulation_ws/src/rl-agent/markov/environments/mars_env.py
ToxaIvchenko/AWS-JPL-OSR-Challenge-1
6acb5603d7300ac500fea98df6fcff08a386e0dd
[ "Apache-2.0" ]
null
null
null
simulation_ws/src/rl-agent/markov/environments/mars_env.py
ToxaIvchenko/AWS-JPL-OSR-Challenge-1
6acb5603d7300ac500fea98df6fcff08a386e0dd
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function import time import boto3 import gym import numpy as np from gym import spaces import PIL from PIL import Image import os import random import math import sys import rospy from nav_msgs.msg import Odometry from geometry_msgs.msg import Twist, Pose, Quaternion from gazebo_msgs.srv i...
38.083871
172
0.590505
7959b6c0b54d56922b9fa277d445fc729455b3d1
24,234
py
Python
plasmapy/particles/ionization_state.py
cacsphysics/PlasmaPy
fbf7f2654e27f14fe696048773c9cae3b377ca3a
[ "MIT", "BSD-2-Clause-Patent", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
plasmapy/particles/ionization_state.py
cacsphysics/PlasmaPy
fbf7f2654e27f14fe696048773c9cae3b377ca3a
[ "MIT", "BSD-2-Clause-Patent", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
plasmapy/particles/ionization_state.py
cacsphysics/PlasmaPy
fbf7f2654e27f14fe696048773c9cae3b377ca3a
[ "MIT", "BSD-2-Clause-Patent", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
""" Objects for storing ionization state data for a single element or for a single ionization level. """ __all__ = ["IonizationState", "State"] import astropy.units as u import collections import numpy as np import warnings from numbers import Integral, Real from typing import List, Optional, Union from plasmapy.par...
34.919308
95
0.576628
7959b706d50a696318ae018d00fd3286ed4f4d97
1,254
py
Python
setup.py
jmoon1506/pytaridx
8cb8e23c69ce4c611ac8ade76ecb4f0dd634d476
[ "MIT" ]
1
2021-11-11T18:51:10.000Z
2021-11-11T18:51:10.000Z
setup.py
jmoon1506/pytaridx
8cb8e23c69ce4c611ac8ade76ecb4f0dd634d476
[ "MIT" ]
1
2021-11-11T19:40:54.000Z
2021-11-11T19:40:54.000Z
setup.py
jmoon1506/pytaridx
8cb8e23c69ce4c611ac8ade76ecb4f0dd634d476
[ "MIT" ]
1
2021-11-11T18:47:00.000Z
2021-11-11T18:47:00.000Z
from setuptools import setup, find_packages with open("README.md", "r", encoding="utf-8") as fh: long_description = fh.read() setup(name='pytaridx', description='A package for creating, reading from, and writing to indexed tar archives.', long_description=long_description, long_description_conte...
33.891892
95
0.601276
7959b72f7004d25d4d90bf7ed74fcd00cd82615a
167
py
Python
onmt/encoders/__init__.py
kolk/qa_factoid2natural
ccdd0096217c8e88b148f353f0c89628b85f9c4d
[ "MIT" ]
4
2019-11-28T17:49:19.000Z
2022-02-23T17:07:08.000Z
onmt/encoders/__init__.py
kolk/qa_factoid2natural
ccdd0096217c8e88b148f353f0c89628b85f9c4d
[ "MIT" ]
5
2019-11-28T17:49:09.000Z
2022-02-28T16:37:17.000Z
onmt/encoders/__init__.py
kolk/qa_factoid2natural
ccdd0096217c8e88b148f353f0c89628b85f9c4d
[ "MIT" ]
null
null
null
"""Module defining encoders.""" from onmt.encoders.encoder import EncoderBase from onmt.encoders.rnn_encoder import RNNEncoder __all__ = ["EncoderBase" "RNNEncoder"]
27.833333
48
0.796407
7959b818da13fae42beaa05d8d22794e80bb0330
369
py
Python
slixmpp/plugins/xep_0325/stanza/base.py
marconfus/slixmpp
bcf186f42dc31d360e0a0af8a4b3aaf1e0b212aa
[ "BSD-3-Clause" ]
null
null
null
slixmpp/plugins/xep_0325/stanza/base.py
marconfus/slixmpp
bcf186f42dc31d360e0a0af8a4b3aaf1e0b212aa
[ "BSD-3-Clause" ]
1
2021-02-24T07:58:40.000Z
2021-02-24T07:58:40.000Z
slixmpp/plugins/xep_0325/stanza/base.py
marconfus/slixmpp
bcf186f42dc31d360e0a0af8a4b3aaf1e0b212aa
[ "BSD-3-Clause" ]
null
null
null
""" Slixmpp: The Slick XMPP Library Implementation of xeps for Internet of Things http://wiki.xmpp.org/web/Tech_pages/IoT_systems Copyright (C) 2013 Sustainable Innovation, Joachim.lindborg@sust.se, bjorn.westrom@consoden.se This file is part of Slixmpp. See the file LICENSE for copying permiss...
26.357143
98
0.742547
7959b824f54bb299c1dcc8aa712aeb0240c0b2f0
324
py
Python
users/migrations/0005_remove_user_username.py
serajushsalekin/Custom-AbstractUser-User
7a95b4402005f9088144d1f0a05116ec95b30a72
[ "MIT" ]
null
null
null
users/migrations/0005_remove_user_username.py
serajushsalekin/Custom-AbstractUser-User
7a95b4402005f9088144d1f0a05116ec95b30a72
[ "MIT" ]
6
2020-06-05T20:04:45.000Z
2021-09-22T18:06:48.000Z
users/migrations/0005_remove_user_username.py
serajushsalekin/Custom-AbstractUser-User
7a95b4402005f9088144d1f0a05116ec95b30a72
[ "MIT" ]
null
null
null
# Generated by Django 3.0 on 2019-12-12 09:38 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('users', '0004_remove_user_is_man'), ] operations = [ migrations.RemoveField( model_name='user', name='username', ), ...
18
45
0.589506
7959b83b95f5c56c73388aaa877a9cb14a06973f
1,198
py
Python
LearnGUItkinter/chapter-9/gui_9_5.py
eastsheng/LearningPythonGUI
79f62f235cefab84b10a5159ecc81f0656b1d611
[ "MIT" ]
1
2021-09-08T07:54:46.000Z
2021-09-08T07:54:46.000Z
LearnGUItkinter/chapter-9/gui_9_5.py
eastsheng/LearningPythonGUI
79f62f235cefab84b10a5159ecc81f0656b1d611
[ "MIT" ]
null
null
null
LearnGUItkinter/chapter-9/gui_9_5.py
eastsheng/LearningPythonGUI
79f62f235cefab84b10a5159ecc81f0656b1d611
[ "MIT" ]
null
null
null
from tkinter import * from tkinter.colorchooser import * def bgUpdate(source):#这里source可以替换为任意字符 """窗口颜色""" r = rSlider.get() g = gSlider.get() b = bSlider.get() print("R=%d,G=%d,B=%d" % (r,g,b)) myColor = "#%02x%02x%02x" %(r,g,b) root.config(bg=myColor) def bgChoose(): """窗口颜色""" myColor = askcolor() print...
20.655172
53
0.701169
7959b8c7e6d8b3a250a5da83a22742c15c783d91
1,721
py
Python
scripts/CheckoutCidTools.py
SickScan/ssbl
b7338253ac653853f8f785e9275270a808d557ed
[ "Apache-2.0" ]
1
2021-04-03T03:36:00.000Z
2021-04-03T03:36:00.000Z
scripts/CheckoutCidTools.py
SickScan/ssbl
b7338253ac653853f8f785e9275270a808d557ed
[ "Apache-2.0" ]
1
2020-06-23T11:14:29.000Z
2020-06-23T11:14:29.000Z
scripts/CheckoutCidTools.py
SickScan/sick_scan_base
b7338253ac653853f8f785e9275270a808d557ed
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # This file is derived from the work of # Francesco Conti <f.conti@unibo.it> # https://github.com/pulp-platform/bigpulp/blob/master/ipstools_cfg.py REPOSITORY = "github.com/SickScan/CID-Tools.git" CHECKOUT_DIR = '../src/CID-Tools' COMMIT = '' #leave this blank to checkout HEAD import argparse ...
27.31746
117
0.644974
7959b921404d3a18d402a67913972464be75d0af
8,784
py
Python
grand/backends/gremlin.py
aplbrain/grand
d85669df17a40834a13478ae200e984e13b41650
[ "Apache-2.0" ]
31
2020-10-16T16:46:02.000Z
2022-03-04T20:45:05.000Z
grand/backends/gremlin.py
aplbrain/grand
d85669df17a40834a13478ae200e984e13b41650
[ "Apache-2.0" ]
15
2020-10-15T16:28:49.000Z
2022-02-10T16:41:32.000Z
grand/backends/gremlin.py
aplbrain/grand
d85669df17a40834a13478ae200e984e13b41650
[ "Apache-2.0" ]
null
null
null
""" https://tinkerpop.apache.org/docs/current/reference/ """ from typing import Hashable, Generator, Iterable import time import pandas as pd from gremlin_python.structure.graph import Graph from gremlin_python.process.graph_traversal import __, GraphTraversalSource from gremlin_python.driver.driver_remote_connection...
27.45
83
0.493056
7959b92b68a374d6ea518cc4c55d747de110d072
9,787
py
Python
padre/handlers/gerrit.py
krislindgren/padre
56e3342a953fdc472adc11ce301acabf6c595760
[ "MIT" ]
null
null
null
padre/handlers/gerrit.py
krislindgren/padre
56e3342a953fdc472adc11ce301acabf6c595760
[ "MIT" ]
null
null
null
padre/handlers/gerrit.py
krislindgren/padre
56e3342a953fdc472adc11ce301acabf6c595760
[ "MIT" ]
null
null
null
import json import logging import re import munch from oslo_utils import reflection import requests from padre import channel as c from padre import handler from padre import matchers from padre import utils LOG = logging.getLogger(__name__) def _filter_by_project(ok_projects, event): in_projects = [ e...
36.655431
79
0.526821
7959b981837542836184418f5fe3aab78ac12629
21,147
py
Python
test/test_punt.py
mnaser/vpp
8934a04596d1421c35b194949b2027ca1fe71aef
[ "Apache-2.0" ]
null
null
null
test/test_punt.py
mnaser/vpp
8934a04596d1421c35b194949b2027ca1fe71aef
[ "Apache-2.0" ]
null
null
null
test/test_punt.py
mnaser/vpp
8934a04596d1421c35b194949b2027ca1fe71aef
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import binascii import random import socket import unittest import os import scapy.layers.inet6 as inet6 import threading import struct from struct import unpack, unpack_from from util import ppp, ppc from re import compile from scapy.packet import Raw from scapy.layers.l2 import Ether from scapy...
32.434049
79
0.587081
7959bb09a3ee2d73900bc7ab52d5a9fc5a87f062
10,010
py
Python
My_data.py
jw787/-
4fd957095e21b557bad4640fc75658d2037ca21a
[ "Apache-2.0" ]
2
2020-03-27T02:25:22.000Z
2020-03-27T04:07:36.000Z
My_data.py
KyanChen/FaceKeypointsDetection
bb4dc73fc8a3ffb8fc507b8e10a00dd6b2ca3250
[ "Apache-2.0" ]
null
null
null
My_data.py
KyanChen/FaceKeypointsDetection
bb4dc73fc8a3ffb8fc507b8e10a00dd6b2ca3250
[ "Apache-2.0" ]
1
2020-12-14T07:24:39.000Z
2020-12-14T07:24:39.000Z
import numpy as np import cv2 import torch from torchvision import transforms from torch.utils.data import Dataset from PIL import Image, ImageDraw import os import pandas as pd import matplotlib.pyplot as plt train_boarder = 112 class FaceLandmarksDataset(Dataset): def __init__(self, data_file, transform=None):...
38.35249
108
0.570829
7959bba7bfc04ebef2c9a0e7a1eb4a0528dd0acb
314
py
Python
aitlas/datasets/dfc15_multilabel.py
alex-hayhoe/aitlas-docker
57686f9c18f28c884511fc0c84618506cbf61eae
[ "MIT" ]
null
null
null
aitlas/datasets/dfc15_multilabel.py
alex-hayhoe/aitlas-docker
57686f9c18f28c884511fc0c84618506cbf61eae
[ "MIT" ]
null
null
null
aitlas/datasets/dfc15_multilabel.py
alex-hayhoe/aitlas-docker
57686f9c18f28c884511fc0c84618506cbf61eae
[ "MIT" ]
null
null
null
from .multilabel_classification import MultiLabelClassificationDataset LABELS = ["impervious", "water", "clutter", "vegetation", "building", "tree", "boat", "car"] class DFC15MultiLabelDataset(MultiLabelClassificationDataset): url = "https://github.com/Hua-YS/DFC15-Multilabel-Dataset" labels = LABELS
31.4
92
0.754777
7959bcb085a0ab9183540da0cacafe89ff5f9c64
9,345
py
Python
models/CaptionModel.py
gstoica27/object_relation_transformer
dc41a88c3e2c01677347edfd3fb5479181388ff8
[ "MIT" ]
null
null
null
models/CaptionModel.py
gstoica27/object_relation_transformer
dc41a88c3e2c01677347edfd3fb5479181388ff8
[ "MIT" ]
null
null
null
models/CaptionModel.py
gstoica27/object_relation_transformer
dc41a88c3e2c01677347edfd3fb5479181388ff8
[ "MIT" ]
null
null
null
# This file contains ShowAttendTell and AllImg model # ShowAttendTell is from Show, Attend and Tell: Neural Image Caption Generation with Visual Attention # https://arxiv.org/abs/1502.03044 # AllImg is a model where # img feature is concatenated with word embedding at every time step as the input of lstm from __futur...
51.065574
142
0.571001
7959bd10f184170b7efffe25bddaf3d8771ede7b
1,086
py
Python
OOP/oop_terms/super().py
danielkpodo/python-zero-to-mastery
d39468f48211bc82e4e2613745d9107d433e05af
[ "MIT" ]
null
null
null
OOP/oop_terms/super().py
danielkpodo/python-zero-to-mastery
d39468f48211bc82e4e2613745d9107d433e05af
[ "MIT" ]
null
null
null
OOP/oop_terms/super().py
danielkpodo/python-zero-to-mastery
d39468f48211bc82e4e2613745d9107d433e05af
[ "MIT" ]
null
null
null
# super() is referrin to the super class or the class from which the child inherits # it helps us to inherit attr of the paret class # To do this you pass the parameters you want to inherit to the __init__ func and call super # To do this we do super__init__(the attibutes we want to inherit) # super side in child takes...
36.2
92
0.723757
7959bfd3402a6589091b8fbb49fb80d8a1bd37df
383
py
Python
events/migrations/0040_tournament_games.py
RVHowarth/warwick_gg
a8a1a8f902dad76ba77025839c49fc34178af2b3
[ "MIT" ]
5
2018-03-08T13:02:07.000Z
2020-04-09T13:36:20.000Z
events/migrations/0040_tournament_games.py
RVHowarth/warwick_gg
a8a1a8f902dad76ba77025839c49fc34178af2b3
[ "MIT" ]
15
2018-05-29T13:22:40.000Z
2022-03-11T23:20:32.000Z
events/migrations/0040_tournament_games.py
RVHowarth/warwick_gg
a8a1a8f902dad76ba77025839c49fc34178af2b3
[ "MIT" ]
7
2018-05-26T15:15:43.000Z
2020-01-04T20:24:33.000Z
# Generated by Django 2.2.1 on 2019-05-16 10:26 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('events', '0039_auto_20190516_1123'), ] operations = [ migrations.AddField( model_name='tournament', name='games', ...
20.157895
47
0.5953
7959c03bfa52facdb397d5f08bc28a82623a46cd
1,359
py
Python
sklearnex/_utils.py
fschlimb/daal4py
51015148f92db728f23e8e4628c393dff2df23eb
[ "Apache-2.0" ]
1
2021-08-13T13:39:17.000Z
2021-08-13T13:39:17.000Z
sklearnex/_utils.py
raoberman/daal4py
65e74dd90342bebbfbb51f1057db9a78ec818b9c
[ "Apache-2.0" ]
null
null
null
sklearnex/_utils.py
raoberman/daal4py
65e74dd90342bebbfbb51f1057db9a78ec818b9c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python #=============================================================================== # Copyright 2021 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...
41.181818
87
0.573216
7959c106f92841a5302bd4955304eb3abb723f0b
4,534
py
Python
Kmeans/kmeans_cluster.py
johnny161/Text-Clustering
d3eb7cebfb7679d10070e5ba20096631c92bb673
[ "Apache-2.0" ]
null
null
null
Kmeans/kmeans_cluster.py
johnny161/Text-Clustering
d3eb7cebfb7679d10070e5ba20096631c92bb673
[ "Apache-2.0" ]
null
null
null
Kmeans/kmeans_cluster.py
johnny161/Text-Clustering
d3eb7cebfb7679d10070e5ba20096631c92bb673
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf8 -*- import os, sys from sklearn.cluster import KMeans from sklearn import feature_extraction from sklearn.feature_extraction.text import TfidfTransformer from sklearn.feature_extraction.text import CountVectorizer from sklearn.metrics import silhouette_score from sklearn.manifold import TSNE import ...
31.706294
122
0.651301
7959c2d3d96671730e36bf9df3eefdc116b8b7f4
2,687
py
Python
tune_hyperparameters.py
jessvb/zhorai-speech-rec
64fe2589fa8ebbf62c133e91ff9a30728831f922
[ "CC-BY-4.0" ]
null
null
null
tune_hyperparameters.py
jessvb/zhorai-speech-rec
64fe2589fa8ebbf62c133e91ff9a30728831f922
[ "CC-BY-4.0" ]
null
null
null
tune_hyperparameters.py
jessvb/zhorai-speech-rec
64fe2589fa8ebbf62c133e91ff9a30728831f922
[ "CC-BY-4.0" ]
null
null
null
########################################################## # pytorch-kaldi v.0.1 # Mirco Ravanelli, Titouan Parcollet # Mila, University of Montreal # October 2018 # # Description: # This scripts generates config files with the random hyperparamters specified by the user. # python ...
28.892473
229
0.605136
7959c2e5c47fa9d06bed7e14580eeff880503c93
5,162
py
Python
mmpose/models/keypoint_heads/top_down_simple_head.py
filipkro/mmpose
b4b6eda3fe3c2470ab0e44936f4bf7f82db6d3e4
[ "Apache-2.0" ]
1
2020-09-22T03:39:47.000Z
2020-09-22T03:39:47.000Z
mmpose/models/keypoint_heads/top_down_simple_head.py
filipkro/mmpose
b4b6eda3fe3c2470ab0e44936f4bf7f82db6d3e4
[ "Apache-2.0" ]
null
null
null
mmpose/models/keypoint_heads/top_down_simple_head.py
filipkro/mmpose
b4b6eda3fe3c2470ab0e44936f4bf7f82db6d3e4
[ "Apache-2.0" ]
1
2021-07-13T03:42:27.000Z
2021-07-13T03:42:27.000Z
import torch.nn as nn from mmcv.cnn import (build_conv_layer, build_upsample_layer, constant_init, normal_init) from ..registry import HEADS @HEADS.register_module() class TopDownSimpleHead(nn.Module): """Top-down model head of simple baseline paper ref: Bin Xiao. ``Simple Baselines for...
35.115646
77
0.555211
7959c3d1ad30a094a622f0433c7549072e248f96
4,203
py
Python
classification/models/pointnet_cls.py
asafmanor/SampleNet
b55e2b336d54db31a2d689abede2c3d049275d97
[ "Unlicense" ]
283
2019-12-07T15:20:06.000Z
2022-03-30T19:13:43.000Z
classification/models/pointnet_cls.py
asafmanor/SampleNet
b55e2b336d54db31a2d689abede2c3d049275d97
[ "Unlicense" ]
12
2020-04-10T17:41:23.000Z
2022-03-22T22:01:28.000Z
classification/models/pointnet_cls.py
asafmanor/SampleNet
b55e2b336d54db31a2d689abede2c3d049275d97
[ "Unlicense" ]
34
2019-12-15T15:24:10.000Z
2022-03-12T16:07:20.000Z
from __future__ import print_function import tensorflow as tf import numpy as np import math import sys import os BASE_DIR = os.path.dirname(os.path.abspath(__file__)) sys.path.append(BASE_DIR) sys.path.append(os.path.join(BASE_DIR, "../utils")) import tf_util from transform_nets import input_transform_net, feature_tr...
30.021429
84
0.643112
7959c5a2dc9493c9cb8af7ae30f5515064b66a62
636
py
Python
c2cwsgiutils/broadcast/interface.py
arnaud-morvan/c2cwsgiutils
aa06b77b247bd8969b88225ee3ea109886aefeac
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
c2cwsgiutils/broadcast/interface.py
arnaud-morvan/c2cwsgiutils
aa06b77b247bd8969b88225ee3ea109886aefeac
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
c2cwsgiutils/broadcast/interface.py
arnaud-morvan/c2cwsgiutils
aa06b77b247bd8969b88225ee3ea109886aefeac
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
from abc import abstractmethod from typing import Optional, Callable, Mapping, Any, List class BaseBroadcaster(object): """ Interface definition for message broadcasting implementation """ @abstractmethod def subscribe(self, channel: str, callback: Callable[..., Any]) -> None: pass # pra...
28.909091
86
0.657233
7959c5af70e3e24ffd8db449276c584a04cfe6c5
5,378
py
Python
source/infrastructure/personalize/aws_lambda/functions/create_dataset_import_job.py
turnoutnow/maintaining-personalized-experiences-with-machine-learning
b45588c094734cce70198811890a28e65b8e39e1
[ "Apache-2.0" ]
null
null
null
source/infrastructure/personalize/aws_lambda/functions/create_dataset_import_job.py
turnoutnow/maintaining-personalized-experiences-with-machine-learning
b45588c094734cce70198811890a28e65b8e39e1
[ "Apache-2.0" ]
null
null
null
source/infrastructure/personalize/aws_lambda/functions/create_dataset_import_job.py
turnoutnow/maintaining-personalized-experiences-with-machine-learning
b45588c094734cce70198811890a28e65b8e39e1
[ "Apache-2.0" ]
null
null
null
# ###################################################################################################################### # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # # ...
45.576271
120
0.465415
7959c60e66e1885dfd84d642b38c83b671bd91b4
2,714
py
Python
base/site-packages/pymongo/__init__.py
edisonlz/fastor
342078a18363ac41d3c6b1ab29dbdd44fdb0b7b3
[ "Apache-2.0" ]
285
2019-12-23T09:50:21.000Z
2021-12-08T09:08:49.000Z
base/site-packages/pymongo/__init__.py
jeckun/fastor
342078a18363ac41d3c6b1ab29dbdd44fdb0b7b3
[ "Apache-2.0" ]
null
null
null
base/site-packages/pymongo/__init__.py
jeckun/fastor
342078a18363ac41d3c6b1ab29dbdd44fdb0b7b3
[ "Apache-2.0" ]
9
2019-12-23T12:59:25.000Z
2022-03-15T05:12:11.000Z
# Copyright 2009-2012 10gen, 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 agreed to in writing,...
28.270833
149
0.722918
7959c6476d53bd4c7ed86fcc5fa8785f3dd7e237
2,783
py
Python
arch/task_manager/apps/machine_learning_model.py
ZZIQIN/FATE
cc6783927564cbb15c067d5010f1cdf82a5de20a
[ "Apache-2.0" ]
null
null
null
arch/task_manager/apps/machine_learning_model.py
ZZIQIN/FATE
cc6783927564cbb15c067d5010f1cdf82a5de20a
[ "Apache-2.0" ]
null
null
null
arch/task_manager/apps/machine_learning_model.py
ZZIQIN/FATE
cc6783927564cbb15c067d5010f1cdf82a5de20a
[ "Apache-2.0" ]
null
null
null
# # Copyright 2019 The FATE 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...
36.618421
81
0.719727
7959c706e99995ff510d2c58c84ad3521165012f
5,609
py
Python
core/face_processing.py
ArtyDev57/face_recon
c0a79b3fe41e0db37cb13ce54e17bef8f8dbf685
[ "MIT" ]
4
2020-05-22T03:17:03.000Z
2021-07-29T04:24:02.000Z
core/face_processing.py
ArtyDev57/face_recon
c0a79b3fe41e0db37cb13ce54e17bef8f8dbf685
[ "MIT" ]
null
null
null
core/face_processing.py
ArtyDev57/face_recon
c0a79b3fe41e0db37cb13ce54e17bef8f8dbf685
[ "MIT" ]
1
2020-10-01T11:58:05.000Z
2020-10-01T11:58:05.000Z
import cv2 import numpy as np import math from database import list_know_people_by_id, insert_people_access from os import path, getcwd, mkdir from datetime import datetime import core.face_detection as fd import face_recognition as fr class faceproc: def __init__(self, resize_frame=4, camera_id=None): se...
40.064286
115
0.622571
7959c745aa3b3791d6ac02b483b733af520c8d59
11,676
py
Python
keras_frcnn/pascal_voc.py
Heyjuke58/frcnn-wind-turbine-detection
29311020188d3a26c8935cae710bd2c5013653ab
[ "Apache-2.0" ]
null
null
null
keras_frcnn/pascal_voc.py
Heyjuke58/frcnn-wind-turbine-detection
29311020188d3a26c8935cae710bd2c5013653ab
[ "Apache-2.0" ]
null
null
null
keras_frcnn/pascal_voc.py
Heyjuke58/frcnn-wind-turbine-detection
29311020188d3a26c8935cae710bd2c5013653ab
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import os import pickle import numpy as np import xml.etree.ElementTree as ET class pascal_voc_util(object): def __init__(self, devkit_path): self.classes = ('__background__', # always index 0 'aeroplane', 'bicycle', 'bird', 'boat', ...
37.543408
89
0.523553
7959c75960a356c8ef0d8488954adb7451b1fed3
4,915
py
Python
rgw/v2/tests/s3_swift/swift_stats.py
viduship/ceph-qe-scripts
886619fa6600c24cbf989d65868951b9c3decd72
[ "MIT" ]
6
2019-04-12T17:45:44.000Z
2021-09-14T19:59:05.000Z
rgw/v2/tests/s3_swift/swift_stats.py
viduship/ceph-qe-scripts
886619fa6600c24cbf989d65868951b9c3decd72
[ "MIT" ]
111
2019-12-10T10:41:08.000Z
2022-03-31T11:42:30.000Z
rgw/v2/tests/s3_swift/swift_stats.py
viduship/ceph-qe-scripts
886619fa6600c24cbf989d65868951b9c3decd72
[ "MIT" ]
23
2019-05-30T19:48:25.000Z
2022-03-24T17:07:19.000Z
""" swift_stats - Test swift stat command is working for more than 1000 buckets Usage: swift_stats.py -c <input_yaml> <input_yaml> swift_stats.yaml Operation: Create tenanted user Set max bucket count to 2000 Create number of buckets mentioned in swift_stats.yaml Check swift stat command exec...
35.875912
111
0.661851
7959c7ab574837bafc86e295ed47f00567e4e0b9
341
py
Python
week_functs.py
digitaljosh/meal-planner
53193fc49a5f10867e43068622961acfdd8dd762
[ "Unlicense", "MIT" ]
12
2018-12-29T20:42:02.000Z
2022-02-19T21:01:22.000Z
week_functs.py
digitaljosh/meal-planner
53193fc49a5f10867e43068622961acfdd8dd762
[ "Unlicense", "MIT" ]
62
2018-02-01T20:40:28.000Z
2021-02-07T10:44:55.000Z
week_functs.py
digitaljosh/meal-planner
53193fc49a5f10867e43068622961acfdd8dd762
[ "Unlicense", "MIT" ]
7
2018-02-02T00:31:54.000Z
2021-05-31T15:50:26.000Z
import datetime def get_today_string(): today_string = "{date:%m/%d}".format(date=datetime.datetime.now()) return today_string def get_week_from_string(): today = datetime.datetime.today() week_from_date = today + datetime.timedelta(days=7) week_from = "{date:%m/%d}".format(date=week_from_date) ...
24.357143
70
0.709677
7959c84533a78fdb318d8f3430e371da2cafcf85
875
py
Python
view/test.py
LianGee/zed
0838eec03733a26705126d96dfb59af6bdf19a9e
[ "MIT" ]
null
null
null
view/test.py
LianGee/zed
0838eec03733a26705126d96dfb59af6bdf19a9e
[ "MIT" ]
null
null
null
view/test.py
LianGee/zed
0838eec03733a26705126d96dfb59af6bdf19a9e
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @File : test.py # @Author: zaoshu # @Date : 2020-02-12 # @Desc : from flask import Blueprint, request from common.response import Response from service.qiniu_service import QiniuService test_bp = Blueprint('test', __name__) @test_bp.route('/upload/img', methods=['P...
26.515152
83
0.646857
7959cab026ee87ac8a13f63d594d31e7f2d4f3ea
1,451
py
Python
IRIS_data_download/IRIS_download_support/obspy/scripts/flinnengdahl.py
earthinversion/Fnet_IRIS_data_automated_download
09a6e0c992662feac95744935e038d1c68539fa1
[ "MIT" ]
2
2020-03-05T01:03:01.000Z
2020-12-17T05:04:07.000Z
IRIS_data_download/IRIS_download_support/obspy/scripts/flinnengdahl.py
earthinversion/Fnet_IRIS_data_automated_download
09a6e0c992662feac95744935e038d1c68539fa1
[ "MIT" ]
4
2021-03-31T19:25:55.000Z
2021-12-13T20:32:46.000Z
IRIS_data_download/IRIS_download_support/obspy/scripts/flinnengdahl.py
earthinversion/Fnet_IRIS_data_automated_download
09a6e0c992662feac95744935e038d1c68539fa1
[ "MIT" ]
2
2020-09-08T19:33:40.000Z
2021-04-05T09:47:50.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Get the Flinn-Engdahl region name from longitude and latitude. """ from __future__ import (absolute_import, division, print_function, unicode_literals) from future.builtins import * # NOQA from argparse import ArgumentParser from obspy import ...
37.205128
77
0.63887
7959cadd71b9aea7eeac2fc9705ed08e6b1077ab
1,989
py
Python
aiida_exciting/commands/lapwbasis.py
electronic-structure/aiida-exciting
c7f4d2d2370dc0b5cb1270883ff24d4880a11dad
[ "MIT" ]
1
2017-06-25T18:25:12.000Z
2017-06-25T18:25:12.000Z
aiida_exciting/commands/lapwbasis.py
electronic-structure/aiida-exciting
c7f4d2d2370dc0b5cb1270883ff24d4880a11dad
[ "MIT" ]
null
null
null
aiida_exciting/commands/lapwbasis.py
electronic-structure/aiida-exciting
c7f4d2d2370dc0b5cb1270883ff24d4880a11dad
[ "MIT" ]
null
null
null
import click @click.group() def lapwbasis(): """Help for lapwbasis command""" @lapwbasis.command('upload') @click.option('--fmt', type=str, help='Format of the species: \"xml\" or \"json\""', required=True) @click.option('--name', type=str, help='Name of the LAPW basis set', required=True) @click.option('--descrip...
31.571429
107
0.651584
7959cafbf8c85d480fbb1e25dd02e32c3d0f8cf6
2,300
py
Python
webapp/src/routes/auth_routes.py
muctadir/labeling-machine
eb6dde48457715d2aa8a304b2686a8eec8a809ae
[ "MIT" ]
null
null
null
webapp/src/routes/auth_routes.py
muctadir/labeling-machine
eb6dde48457715d2aa8a304b2686a8eec8a809ae
[ "MIT" ]
null
null
null
webapp/src/routes/auth_routes.py
muctadir/labeling-machine
eb6dde48457715d2aa8a304b2686a8eec8a809ae
[ "MIT" ]
null
null
null
from flask import request, redirect, url_for, flash from flask_login import login_user, logout_user from sqlalchemy import select from werkzeug.security import check_password_hash from src import app, db from src.database.models import User from src.helper.tools_common import string_none_or_empty @app.route("/signin...
36.507937
104
0.633478
7959cbeec367f450e1667a84274e190f99e7ed69
675
py
Python
learning_object/collections/manager/collections/get_one.py
dsvalenciah/ROAp
24cbff0e719c5009ec1f1e7190924d4d9297e992
[ "MIT" ]
4
2018-04-23T00:04:01.000Z
2018-10-28T22:56:51.000Z
learning_object/collections/manager/collections/get_one.py
dsvalenciah/ROAp
24cbff0e719c5009ec1f1e7190924d4d9297e992
[ "MIT" ]
23
2017-12-22T08:27:35.000Z
2021-12-13T19:57:35.000Z
learning_object/collections/manager/collections/get_one.py
dsvalenciah/ROAp
24cbff0e719c5009ec1f1e7190924d4d9297e992
[ "MIT" ]
1
2020-06-03T02:07:26.000Z
2020-06-03T02:07:26.000Z
from ..exceptions import CollectionNotFoundError def get_one(db_client, collection_id, user): _ = user.get('language') collection = db_client.locollection.find_one({ '_id': collection_id }) if not collection: raise CollectionNotFoundError(_('Collection not found')) lo_quantity = ...
33.75
141
0.72
7959cc531f4f7d5dac123866c9d0cb09ec8f05b9
14,891
py
Python
fastai/text/models/transformer.py
vettukal/fastai
cfe5eba3635737f0a3b2ed9fb0e03e0e153e1b37
[ "Apache-2.0" ]
null
null
null
fastai/text/models/transformer.py
vettukal/fastai
cfe5eba3635737f0a3b2ed9fb0e03e0e153e1b37
[ "Apache-2.0" ]
null
null
null
fastai/text/models/transformer.py
vettukal/fastai
cfe5eba3635737f0a3b2ed9fb0e03e0e153e1b37
[ "Apache-2.0" ]
null
null
null
from ...torch_core import * from ...layers import * from .awd_lstm import RNNDropout, LinearDecoder, SequentialRNN __all__ = ['Activation', 'PositionalEncoding', 'GeLU', 'Swish', 'feed_forward', 'MultiHeadAttention', 'MultiHeadRelativeAttention', 'DecoderLayer', 'Transformer', 'TransformerXL', 'get_transfor...
59.326693
131
0.6422
7959cdd16280948ca25a6b6cbc47967e57ecfd1a
3,632
py
Python
pydrawing/modules/beautifiers/oilpainting/oilpainting.py
CharlesPikachu/pydrawing
be95378a5667ea345f2a3760f8814dff255ebe15
[ "MIT" ]
93
2022-01-18T01:42:58.000Z
2022-03-18T18:42:55.000Z
pydrawing/modules/beautifiers/oilpainting/oilpainting.py
CharlesPikachu/pydrawing
be95378a5667ea345f2a3760f8814dff255ebe15
[ "MIT" ]
null
null
null
pydrawing/modules/beautifiers/oilpainting/oilpainting.py
CharlesPikachu/pydrawing
be95378a5667ea345f2a3760f8814dff255ebe15
[ "MIT" ]
1
2022-02-17T04:36:17.000Z
2022-02-17T04:36:17.000Z
''' Function: 照片油画化 Author: Charles 微信公众号: Charles的皮卡丘 ''' import cv2 import random import numpy as np from scipy import ndimage from ..base import BaseBeautifier '''照片油画化''' class OilpaintingBeautifier(BaseBeautifier): def __init__(self, brush_width=5, palette=0, edge_operator='sobel', **kwargs): ...
42.729412
128
0.553139
7959ce711bcc6dd549f1388d36f2f193bdb66264
847
py
Python
docs/conf.py
palewire/geomac-wildfires
178f3800c59435b6ba071d92a998beb6190fa0f2
[ "MIT" ]
null
null
null
docs/conf.py
palewire/geomac-wildfires
178f3800c59435b6ba071d92a998beb6190fa0f2
[ "MIT" ]
7
2021-11-30T16:19:03.000Z
2021-11-30T16:35:37.000Z
docs/conf.py
palewire/geomac-wildfires
178f3800c59435b6ba071d92a998beb6190fa0f2
[ "MIT" ]
2
2021-12-01T01:41:36.000Z
2021-12-02T00:00:06.000Z
"""Configure Sphinx configuration.""" import os import sys from datetime import datetime # Insert the parent directory into the path sys.path.insert(0, os.path.abspath("..")) extensions = [ "myst_parser", ] templates_path = ["_templates"] source_suffix = ".rst" master_doc = "index" project = "nifc-wildfires" yea...
19.25
58
0.649351
7959ce7c3b827672afff59ea43648e3c65fc7b28
129,118
py
Python
python/ccxt/async_support/gateio.py
xsmedjax/ccxt
ef505e625fdced258c0745d8285abdfccde6af2b
[ "MIT" ]
null
null
null
python/ccxt/async_support/gateio.py
xsmedjax/ccxt
ef505e625fdced258c0745d8285abdfccde6af2b
[ "MIT" ]
null
null
null
python/ccxt/async_support/gateio.py
xsmedjax/ccxt
ef505e625fdced258c0745d8285abdfccde6af2b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.async_support.base.exchange import Exchange import hashlib from ccxt.base.errors import ExchangeError from ccxt.base.errors impor...
43.57678
194
0.456544
7959cf2a494187c8a5efee158b7c05471b6b6871
3,983
py
Python
leapp/exceptions.py
dhodovsk/leapp
bcd6580a19dabd132b3da8bcf2ed61fa8864ef18
[ "Apache-2.0" ]
29
2019-05-29T05:34:52.000Z
2022-03-14T19:09:34.000Z
leapp/exceptions.py
dhodovsk/leapp
bcd6580a19dabd132b3da8bcf2ed61fa8864ef18
[ "Apache-2.0" ]
373
2018-11-21T11:41:49.000Z
2022-03-31T11:40:56.000Z
leapp/exceptions.py
dhodovsk/leapp
bcd6580a19dabd132b3da8bcf2ed61fa8864ef18
[ "Apache-2.0" ]
27
2018-11-26T17:14:15.000Z
2022-03-10T13:30:50.000Z
class LeappError(Exception): def __init__(self, message): super(LeappError, self).__init__(message) self.message = message class RepositoryConfigurationError(LeappError): pass class CannotConsumeErrorMessages(LeappError): def __init__(self): super(CannotConsumeErrorMessages, self...
27.853147
116
0.728597
7959cf6640300aaa19d4d3dd4942feaf9152fdfc
5,966
py
Python
tests/helpers/test_check_config.py
dlintott/core
a6c83cc46a34084fdc4c0e7221b6ba493f82cbac
[ "Apache-2.0" ]
2
2021-05-19T19:05:08.000Z
2021-06-06T06:51:05.000Z
tests/helpers/test_check_config.py
jrhubott/core
89fe232643134f283c041537e9f6841f47dc1c5e
[ "Apache-2.0" ]
52
2020-07-23T07:15:00.000Z
2022-03-31T06:01:47.000Z
tests/helpers/test_check_config.py
jrhubott/core
89fe232643134f283c041537e9f6841f47dc1c5e
[ "Apache-2.0" ]
2
2017-10-13T21:54:28.000Z
2018-02-24T23:48:21.000Z
"""Test check_config helper.""" import logging from homeassistant.config import YAML_CONFIG_FILE from homeassistant.helpers.check_config import ( CheckConfigError, async_check_ha_config_file, ) from tests.async_mock import Mock, patch from tests.common import mock_platform, patch_yaml_files _LOGGER = logging...
30.594872
87
0.645659
7959cfc22b2162c3fc1e7cac03063926ad543944
4,139
py
Python
examples/app/movies/main.py
goncaloperes/bokeh
b857d2d17d7c19779bb0a7be2601d8238fb1d5e9
[ "BSD-3-Clause" ]
1
2021-04-09T02:57:29.000Z
2021-04-09T02:57:29.000Z
examples/app/movies/main.py
goncaloperes/bokeh
b857d2d17d7c19779bb0a7be2601d8238fb1d5e9
[ "BSD-3-Clause" ]
1
2021-03-01T14:04:56.000Z
2021-03-01T14:04:56.000Z
examples/app/movies/main.py
goncaloperes/bokeh
b857d2d17d7c19779bb0a7be2601d8238fb1d5e9
[ "BSD-3-Clause" ]
null
null
null
import sqlite3 as sql from os.path import dirname, join import numpy as np import pandas.io.sql as psql from bokeh.io import curdoc from bokeh.layouts import column, row from bokeh.models import ColumnDataSource, Div, Select, Slider, TextInput from bokeh.plotting import figure from bokeh.sampledata.movies_data import...
36.307018
121
0.672385
7959d284b7b823ed4d6d63ab7195da688ba24dd5
2,618
py
Python
bigchaindb/events.py
innoprenuer/bigchaindb
32b64ccc2a208f38162566f3e088ad49baced79f
[ "Apache-2.0" ]
1
2019-05-31T14:06:02.000Z
2019-05-31T14:06:02.000Z
bigchaindb/events.py
innoprenuer/bigchaindb
32b64ccc2a208f38162566f3e088ad49baced79f
[ "Apache-2.0" ]
null
null
null
bigchaindb/events.py
innoprenuer/bigchaindb
32b64ccc2a208f38162566f3e088ad49baced79f
[ "Apache-2.0" ]
1
2019-08-28T23:38:52.000Z
2019-08-28T23:38:52.000Z
from queue import Empty from collections import defaultdict from multiprocessing import Queue POISON_PILL = 'POISON_PILL' class EventTypes: """Container class that holds all the possible events BigchainDB manages. """ # If you add a new Event Type, make sure to add it # to the docs in docs/serv...
24.933333
97
0.579832
7959d540d2df46677f26bd94b551d930688cace8
5,317
py
Python
BattleBombRoyale/tests/test_ready_ok.py
iconation/BattleBombRoyale
682b4e67212a2478a2ef0c01e29acec775210075
[ "Apache-2.0" ]
null
null
null
BattleBombRoyale/tests/test_ready_ok.py
iconation/BattleBombRoyale
682b4e67212a2478a2ef0c01e29acec775210075
[ "Apache-2.0" ]
null
null
null
BattleBombRoyale/tests/test_ready_ok.py
iconation/BattleBombRoyale
682b4e67212a2478a2ef0c01e29acec775210075
[ "Apache-2.0" ]
null
null
null
import os from iconsdk.builder.transaction_builder import DeployTransactionBuilder from iconsdk.builder.call_builder import CallBuilder from iconsdk.icon_service import IconService from iconsdk.libs.in_memory_zip import gen_deploy_data_content from iconsdk.providers.http_provider import HTTPProvider from iconsd...
35.684564
109
0.602219
7959d5e5374bbada832c35a6a43296b39d9ea26f
12,990
py
Python
setup.py
stillmatic/onnx
8d5eb62d5299f6dcb6ac787f0ea8e6cf5b8331a7
[ "Apache-2.0" ]
null
null
null
setup.py
stillmatic/onnx
8d5eb62d5299f6dcb6ac787f0ea8e6cf5b8331a7
[ "Apache-2.0" ]
null
null
null
setup.py
stillmatic/onnx
8d5eb62d5299f6dcb6ac787f0ea8e6cf5b8331a7
[ "Apache-2.0" ]
null
null
null
# SPDX-License-Identifier: Apache-2.0 from __future__ import (absolute_import, division, print_function, unicode_literals) import glob import multiprocessing import os import platform import shlex import subprocess import sys from collections import namedtuple from contextlib import contextman...
36.183844
156
0.564973
7959d8f859c9a269a59bb43816e40eac056a521c
4,225
py
Python
utils/type-layout-fuzzer.py
gandhi56/swift
2d851ff61991bb8964079661339671c2fd21d88a
[ "Apache-2.0" ]
72,551
2015-12-03T16:45:13.000Z
2022-03-31T18:57:59.000Z
utils/type-layout-fuzzer.py
gandhi56/swift
2d851ff61991bb8964079661339671c2fd21d88a
[ "Apache-2.0" ]
39,352
2015-12-03T16:55:06.000Z
2022-03-31T23:43:41.000Z
utils/type-layout-fuzzer.py
gandhi56/swift
2d851ff61991bb8964079661339671c2fd21d88a
[ "Apache-2.0" ]
13,845
2015-12-03T16:45:13.000Z
2022-03-31T11:32:29.000Z
#!/usr/bin/env python # This script outputs a Swift source with randomly-generated type definitions, # which can be used for ABI or layout algorithm fuzzing. # TODO: generate types with generics, existentials, compositions from __future__ import print_function import random import sys maxDepth = 5 maxMembers = 5 t...
26.40625
78
0.599527
7959d940a11946c564524bec99faf74be21dd564
2,182
py
Python
src/richie/apps/persons/cms_plugins.py
sampaccoud/richie
3d222aedab0636a84011dced568c5dcd48fc5b15
[ "MIT" ]
null
null
null
src/richie/apps/persons/cms_plugins.py
sampaccoud/richie
3d222aedab0636a84011dced568c5dcd48fc5b15
[ "MIT" ]
null
null
null
src/richie/apps/persons/cms_plugins.py
sampaccoud/richie
3d222aedab0636a84011dced568c5dcd48fc5b15
[ "MIT" ]
null
null
null
""" Person CMS plugin """ from collections import defaultdict from django.utils.translation import ugettext_lazy as _ from cms.plugin_base import CMSPluginBase from cms.plugin_pool import plugin_pool from cms.utils import get_language_from_request from .models import PersonPluginModel class PageExtensionPluginMixi...
36.983051
98
0.722731
7959d9dfda9a9f3bb85c4196b604a21b5a4f682f
22,590
py
Python
corporate/lib/stripe.py
fearless0307/zulip
378d14af7ea73a9a83c7245706cd918bec5a37bf
[ "Apache-2.0" ]
2
2019-04-24T15:22:52.000Z
2020-01-18T11:01:31.000Z
corporate/lib/stripe.py
fearless0307/zulip
378d14af7ea73a9a83c7245706cd918bec5a37bf
[ "Apache-2.0" ]
10
2019-02-26T11:10:42.000Z
2019-02-26T14:30:24.000Z
corporate/lib/stripe.py
fearless0307/zulip
378d14af7ea73a9a83c7245706cd918bec5a37bf
[ "Apache-2.0" ]
1
2020-01-07T15:49:54.000Z
2020-01-07T15:49:54.000Z
from datetime import datetime from decimal import Decimal from functools import wraps import logging import math import os from typing import Any, Callable, Dict, Optional, TypeVar, Tuple, cast import ujson from django.conf import settings from django.db import transaction from django.utils.translation import ugettext...
48.269231
108
0.698008
7959da76e520357b198a9a8187fd142bb3b87f2d
12,140
py
Python
splunk_eventgen/lib/generatorplugin.py
hexecute/eventgen
9978ef0725ad63a717e0019c6b30c5a5d9086fe1
[ "Apache-2.0" ]
null
null
null
splunk_eventgen/lib/generatorplugin.py
hexecute/eventgen
9978ef0725ad63a717e0019c6b30c5a5d9086fe1
[ "Apache-2.0" ]
1
2019-06-28T01:40:16.000Z
2019-06-28T01:40:16.000Z
splunk_eventgen/lib/generatorplugin.py
hexecute/eventgen
9978ef0725ad63a717e0019c6b30c5a5d9086fe1
[ "Apache-2.0" ]
null
null
null
from __future__ import division import datetime import logging import logging.handlers import pprint import time import random import urllib from xml.dom import minidom from xml.parsers.expat import ExpatError import httplib2 from eventgenoutput import Output from eventgentimestamp import EventgenTimestamp from time...
50.373444
119
0.583526
7959dad25b40e0eb724649109c434a7da8004a4e
29,067
py
Python
lib/spack/spack/compilers/__init__.py
robertu94/spack
4cf1a9620216f0c5f3db691ce1fe629484742918
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
lib/spack/spack/compilers/__init__.py
robertu94/spack
4cf1a9620216f0c5f3db691ce1fe629484742918
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
lib/spack/spack/compilers/__init__.py
robertu94/spack
4cf1a9620216f0c5f3db691ce1fe629484742918
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) """This module contains functions related to finding compilers on the system and configuring Spack to use multiple compile...
36.470514
88
0.659236
7959db9d2d804c9a4cddaa10f70f96fa1e335b97
47,594
py
Python
compilador/vm/virtual_machine.py
Nombre-Pendiente/Super-Compi
3f2a8e0219b04863fbf78d03aba782d235ccb11a
[ "MIT" ]
6
2021-05-20T16:01:45.000Z
2021-05-27T18:48:57.000Z
compilador/vm/virtual_machine.py
Nombre-Pendiente/Super-Compi
3f2a8e0219b04863fbf78d03aba782d235ccb11a
[ "MIT" ]
1
2021-05-18T14:44:04.000Z
2021-05-18T14:44:04.000Z
compilador/vm/virtual_machine.py
Nombre-Pendiente/Super-Compi
3f2a8e0219b04863fbf78d03aba782d235ccb11a
[ "MIT" ]
null
null
null
from router_solver import * import compilador.vm.memory_segment from compilador.vm.memory_segment import * import compilador.objects.function_table from compilador.objects.function_table import * import compilador.objects.variable_tables from compilador.objects.variable_tables import * import compilador.objects.quadrup...
43.704316
98
0.560995
7959dbcd49fd1956b30eaf89781c71e8f80038eb
8,117
py
Python
doc/conf.py
hydratk/hydratk-ext-testenv
90eea9c460cc206781154cb541ed0fb8b2b292f3
[ "BSD-3-Clause" ]
null
null
null
doc/conf.py
hydratk/hydratk-ext-testenv
90eea9c460cc206781154cb541ed0fb8b2b292f3
[ "BSD-3-Clause" ]
null
null
null
doc/conf.py
hydratk/hydratk-ext-testenv
90eea9c460cc206781154cb541ed0fb8b2b292f3
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # HydraTK TestEnv extension documentation build configuration file # All configuration values have a default values that are commented out # serve to show the default. import sys import os import sphinx_rtd_theme # If extensions (or modules to document with autodoc) are in another directory,...
32.468
124
0.714673
7959dcf46909f103b5b82b452b29ad5e352348fa
5,741
py
Python
musicdl/musicdl.py
jerrysx/stunning-octo-train
97d6254c9427046fef5d2ef1e65297cf04397728
[ "MIT" ]
null
null
null
musicdl/musicdl.py
jerrysx/stunning-octo-train
97d6254c9427046fef5d2ef1e65297cf04397728
[ "MIT" ]
null
null
null
musicdl/musicdl.py
jerrysx/stunning-octo-train
97d6254c9427046fef5d2ef1e65297cf04397728
[ "MIT" ]
null
null
null
''' Function: 音乐下载器 Author: Charles 微信公众号: Charles的皮卡丘 ''' import sys if __name__ == '__main__': from modules import * else: from .modules import * '''basic info''' BASICINFO = '''************************************************************ Function: 音乐下载器 V2.1.8 Author: Charles 微信公众号: Charles的皮卡丘 操作帮助: 输入r: 重新初始...
34.377246
141
0.662254
7959dd531e9d6edc3283266e3e9e10fc8f259e05
8,227
py
Python
cmt/util/evaluation.py
erichilarysmithsr/CrisisMappingToolkit
33eb4f158cf7ae4c3e58025b2639186d17fe8d01
[ "Apache-2.0" ]
2
2017-11-30T18:45:59.000Z
2018-04-08T16:47:43.000Z
cmt/util/evaluation.py
erichilarysmithsr/CrisisMappingToolkit
33eb4f158cf7ae4c3e58025b2639186d17fe8d01
[ "Apache-2.0" ]
null
null
null
cmt/util/evaluation.py
erichilarysmithsr/CrisisMappingToolkit
33eb4f158cf7ae4c3e58025b2639186d17fe8d01
[ "Apache-2.0" ]
1
2021-09-09T06:03:44.000Z
2021-09-09T06:03:44.000Z
# ----------------------------------------------------------------------------- # Copyright * 2014, United States Government, as represented by the # Administrator of the National Aeronautics and Space Administration. All # rights reserved. # # The Crisis Mapping Toolkit (CMT) v1 platform is licensed under the Apache #...
50.472393
172
0.674973
7959de44fbf68e5a61138f7e58255d806172fff8
1,316
py
Python
azure-mgmt-network/azure/mgmt/network/v2018_02_01/models/express_route_circuits_routes_table_summary_list_result_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
azure-mgmt-network/azure/mgmt/network/v2018_02_01/models/express_route_circuits_routes_table_summary_list_result_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-mgmt-network/azure/mgmt/network/v2018_02_01/models/express_route_circuits_routes_table_summary_list_result_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2018-08-28T14:36:47.000Z
2018-08-28T14:36:47.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 ...
37.6
88
0.630699
7959df01c16494fcc1ea5fab4424bda5c53fff46
25,009
py
Python
btclib/tests/test_ssa.py
giubby84/btclib
0dd7e4e8ca43451a03b577fd7ec95715a1a21711
[ "MIT" ]
null
null
null
btclib/tests/test_ssa.py
giubby84/btclib
0dd7e4e8ca43451a03b577fd7ec95715a1a21711
[ "MIT" ]
null
null
null
btclib/tests/test_ssa.py
giubby84/btclib
0dd7e4e8ca43451a03b577fd7ec95715a1a21711
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (C) 2017-2020 The btclib developers # # This file is part of btclib. It is subject to the license terms in the # LICENSE file found in the top-level directory of this distribution. # # No part of btclib including this file, may be copied, modified, propagated, # or distributed except...
35.125
121
0.604103
7959e2bda4fa28ff6360907eb4bce7266d39d13d
747
py
Python
code/bubble_sort.py
Rustam-Z/data-structures-and-algorithms
0ed253c433198fb6fa6d609a806f4ae7e820af06
[ "MIT" ]
6
2021-09-19T11:01:27.000Z
2021-11-11T08:53:31.000Z
code/bubble_sort.py
Rustam-Z/data-structures-and-algorithms
0ed253c433198fb6fa6d609a806f4ae7e820af06
[ "MIT" ]
null
null
null
code/bubble_sort.py
Rustam-Z/data-structures-and-algorithms
0ed253c433198fb6fa6d609a806f4ae7e820af06
[ "MIT" ]
1
2021-12-20T13:25:12.000Z
2021-12-20T13:25:12.000Z
""" Optimized Bubble sort algorithm implementation. Time Complexity: O(n^2) Best O(n) Worst O(n^2) Average O(n^2) Space Complexity: O(1) """ def bubble_sort(array): for i in range(len(array)): swapped = False for j in range(0, len(array) - i - 1): # change > to < to sort in...
23.34375
63
0.547523
7959e3cfe747cafab34b11a5c3faca4ee5ace902
21,547
py
Python
tests/test_mhtml_parse.py
Querela/MHTML
b814ada1d1980cade05f47339625fdd61036bbb0
[ "MIT" ]
7
2019-06-11T14:57:46.000Z
2022-01-29T18:29:52.000Z
tests/test_mhtml_parse.py
Querela/MHTML
b814ada1d1980cade05f47339625fdd61036bbb0
[ "MIT" ]
1
2020-12-18T00:16:28.000Z
2020-12-18T00:16:28.000Z
tests/test_mhtml_parse.py
Querela/MHTML
b814ada1d1980cade05f47339625fdd61036bbb0
[ "MIT" ]
2
2020-01-04T01:19:56.000Z
2021-04-25T18:54:04.000Z
# pylint: disable=missing-docstring,invalid-name # pylint: disable=protected-access import pytest import mhtml def test_get_content_type(): # more verbose construction mock_headers = mhtml.ResourceHeader() mock_headers['Content-Type'] = 'text/html' assert mhtml.get_content_type(mock_headers) == 'tex...
40.199627
93
0.626955
7959e3ee79a5b53bed592c56126d39aab3130f92
2,083
py
Python
sortingview/config/job_handler.py
garrettmflynn/sortingview
0bb3df40d5d031ec651c4821f928787bbee71fbb
[ "Apache-2.0" ]
2
2021-11-19T04:51:42.000Z
2022-03-12T23:36:19.000Z
sortingview/config/job_handler.py
magland/sortingview
0b1be9d55048cd4b8a0b6b6733bd7d35cb440aa7
[ "Apache-2.0" ]
172
2021-05-10T17:39:15.000Z
2022-03-18T21:46:15.000Z
sortingview/config/job_handler.py
garrettmflynn/sortingview
0bb3df40d5d031ec651c4821f928787bbee71fbb
[ "Apache-2.0" ]
2
2021-08-29T20:13:57.000Z
2022-03-12T23:36:34.000Z
import os import hither2 as hi import yaml from copy import deepcopy default_config_yaml = ''' job_handlers: correlograms: type: parallel params: num_workers: 4 timeseries: type: parallel params: num_workers: 4 waveforms: type: parallel ...
31.089552
118
0.677868
7959e454f949137ed80aaf6199f4b81aab8235c8
1,069
py
Python
fastNLP/modules/__init__.py
KuNyaa/fastNLP
22f9b87c54a4eebec7352c7ff772cd24685c7186
[ "Apache-2.0" ]
1
2019-10-05T06:02:44.000Z
2019-10-05T06:02:44.000Z
fastNLP/modules/__init__.py
awesomemachinelearning/fastNLP
945b30bb6174751130744231aa26119bf9bb2601
[ "Apache-2.0" ]
1
2019-12-09T06:34:44.000Z
2019-12-09T06:34:44.000Z
fastNLP/modules/__init__.py
awesomemachinelearning/fastNLP
945b30bb6174751130744231aa26119bf9bb2601
[ "Apache-2.0" ]
null
null
null
""" .. image:: figures/text_classification.png 大部分用于的 NLP 任务神经网络都可以看做由 :mod:`embedding<fastNLP.embeddings>` 、 :mod:`~fastNLP.modules.encoder` 、 :mod:`~fastNLP.modules.decoder` 三种模块组成。 本模块中实现了 fastNLP 提供的诸多模块组件, 可以帮助用户快速搭建自己所需的网络。几种模块的功能和常见组件如下: .. csv-table:: :header: "类型", "功能", "常见组件" "embedding", 参见 :doc:`...
18.754386
96
0.657624
7959e5159cd012ca1c61cd94a3cb357a67b1becb
2,157
py
Python
examples/linear_time_model.py
pupil-labs/pupil-invisible-lsl-relay
68f31b5408479d5324e69063e67e517c6354b31d
[ "MIT" ]
null
null
null
examples/linear_time_model.py
pupil-labs/pupil-invisible-lsl-relay
68f31b5408479d5324e69063e67e517c6354b31d
[ "MIT" ]
2
2022-01-31T08:32:16.000Z
2022-01-31T08:32:24.000Z
examples/linear_time_model.py
pupil-labs/pupil-invisible-lsl-relay
68f31b5408479d5324e69063e67e517c6354b31d
[ "MIT" ]
null
null
null
# imports for the full pipeline import numpy as np import pandas as pd import pyxdf from sklearn import linear_model # import xdf data # define the name of the stream of interest stream_name = 'pupil_invisible_Event' # load xdf data path_to_recording = './lsl_recordings/recorded_xdf_file.xdf' data, header = pyxdf.loa...
33.184615
88
0.802503
7959e669b8396eaf596d1b0acac84f517f98711f
2,723
py
Python
cctbx/covariance/tests/tst_covariance.py
dperl-sol/cctbx_project
b9e390221a2bc4fd00b9122e97c3b79c632c6664
[ "BSD-3-Clause-LBNL" ]
155
2016-11-23T12:52:16.000Z
2022-03-31T15:35:44.000Z
cctbx/covariance/tests/tst_covariance.py
dperl-sol/cctbx_project
b9e390221a2bc4fd00b9122e97c3b79c632c6664
[ "BSD-3-Clause-LBNL" ]
590
2016-12-10T11:31:18.000Z
2022-03-30T23:10:09.000Z
cctbx/covariance/tests/tst_covariance.py
dperl-sol/cctbx_project
b9e390221a2bc4fd00b9122e97c3b79c632c6664
[ "BSD-3-Clause-LBNL" ]
115
2016-11-15T08:17:28.000Z
2022-02-09T15:30:14.000Z
from __future__ import absolute_import, division, print_function from cctbx.array_family import flex from cctbx import covariance, crystal, xray from libtbx.test_utils import approx_equal, Exception_expected from scitbx import matrix from six.moves import range def exercise_covariance(): xs = xray.structure( cry...
40.641791
102
0.678663
7959e6c5b32d19b211aa33701f64566ebe4f615a
9,732
py
Python
highway_env/envs/common/action.py
boschresearch/highway-env
19770b9e2a4a4e740b1aec6680d14d36fd4da3c2
[ "MIT" ]
2
2021-08-13T02:02:10.000Z
2021-08-14T14:16:36.000Z
highway_env/envs/common/action.py
boschresearch/highway-env
19770b9e2a4a4e740b1aec6680d14d36fd4da3c2
[ "MIT" ]
null
null
null
highway_env/envs/common/action.py
boschresearch/highway-env
19770b9e2a4a4e740b1aec6680d14d36fd4da3c2
[ "MIT" ]
1
2022-03-04T23:14:15.000Z
2022-03-04T23:14:15.000Z
import functools from itertools import product from typing import TYPE_CHECKING, Optional, Union, Tuple, Callable from gym import spaces import numpy as np from highway_env import utils from highway_env.utils import Vector from highway_env.vehicle.dynamics import BicycleVehicle from highway_env.vehicle.kinematics impo...
36.313433
119
0.632552
7959e755f67aa8ba96d4b1eb23eaad82464b94bc
3,334
py
Python
smartpages/models.py
zemogle/astroEDU
8d240ff35a288c9e920f6527f1cd3957d116e6ae
[ "MIT" ]
1
2021-09-09T12:32:34.000Z
2021-09-09T12:32:34.000Z
smartpages/models.py
zemogle/astroEDU
8d240ff35a288c9e920f6527f1cd3957d116e6ae
[ "MIT" ]
4
2021-09-09T19:53:18.000Z
2021-09-24T09:11:26.000Z
smartpages/models.py
zemogle/astroEDU
8d240ff35a288c9e920f6527f1cd3957d116e6ae
[ "MIT" ]
null
null
null
from django.db import models from django.utils.translation import ugettext_lazy as _ from django.urls import get_script_prefix, reverse from django.utils.encoding import iri_to_uri from parler.models import TranslatableModel, TranslatedFieldsModel from parler.managers import TranslatableManager, TranslatableQuerySet ...
38.767442
184
0.711758
7959e7a854486794cb4679db562b765559722ab5
2,070
py
Python
test/record/parser/test_response_whois_nic_am_status_registered.py
huyphan/pyyawhois
77fb2f73a9c67989f1d41d98f37037406a69d136
[ "MIT" ]
null
null
null
test/record/parser/test_response_whois_nic_am_status_registered.py
huyphan/pyyawhois
77fb2f73a9c67989f1d41d98f37037406a69d136
[ "MIT" ]
null
null
null
test/record/parser/test_response_whois_nic_am_status_registered.py
huyphan/pyyawhois
77fb2f73a9c67989f1d41d98f37037406a69d136
[ "MIT" ]
null
null
null
# This file is autogenerated. Do not edit it manually. # If you want change the content of this file, edit # # spec/fixtures/responses/whois.nic.am/status_registered # # and regenerate the tests with the following script # # $ scripts/generate_tests.py # from nose.tools import * from dateutil.parser import parse ...
36.964286
83
0.688889
7959e88c765803b7c712b3a856cfe3c6ecfa0dd2
447
py
Python
idz.py
Timofej8971/lab-9
68f41fca3f2750e76e1d25d9a2f08c80075964c5
[ "MIT" ]
null
null
null
idz.py
Timofej8971/lab-9
68f41fca3f2750e76e1d25d9a2f08c80075964c5
[ "MIT" ]
null
null
null
idz.py
Timofej8971/lab-9
68f41fca3f2750e76e1d25d9a2f08c80075964c5
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Вариант 7 if __name__ == "__main__": U = set("abcdefghijklmnopqrstuvwxyz") A = {'b', 'f', 'g', 'm', 'o'} B = {'b', 'g', 'h', 'l', 'u'} C = {'e', 'f', 'm'} D = {'e', 'g', 'l', 'p', 'q', 'u', 'v'} X = (A.intersection(C)).union(B) ...
21.285714
52
0.425056
7959e917eb323864b9df591c1d1ddf26a93f7b59
2,932
py
Python
Lib/test/test_threadsignals.py
ystk/debian-python3.1
6241444a6994140621d1b143a2d6b311b184366a
[ "PSF-2.0" ]
1
2020-11-26T18:53:46.000Z
2020-11-26T18:53:46.000Z
Lib/test/test_threadsignals.py
ystk/debian-python3.1
6241444a6994140621d1b143a2d6b311b184366a
[ "PSF-2.0" ]
null
null
null
Lib/test/test_threadsignals.py
ystk/debian-python3.1
6241444a6994140621d1b143a2d6b311b184366a
[ "PSF-2.0" ]
2
2018-08-06T04:37:38.000Z
2022-02-27T18:07:12.000Z
"""PyUnit testing that threads honor our signal semantics""" import unittest import _thread as thread import signal import os import sys from test.support import run_unittest if sys.platform[:3] in ('win', 'os2') or sys.platform=='riscos': raise unittest.SkipTest("Can't test signal on %s" % sys.platform) process...
34.494118
77
0.662005
7959eabd6f3a5c48a968d152be80784f00175f91
1,271
py
Python
interpro7dw/interpro/oracle/taxa.py
matthiasblum/i7dw
b40e5b9984dec2895956828ddf9db8af4a8ec932
[ "Apache-2.0" ]
null
null
null
interpro7dw/interpro/oracle/taxa.py
matthiasblum/i7dw
b40e5b9984dec2895956828ddf9db8af4a8ec932
[ "Apache-2.0" ]
null
null
null
interpro7dw/interpro/oracle/taxa.py
matthiasblum/i7dw
b40e5b9984dec2895956828ddf9db8af4a8ec932
[ "Apache-2.0" ]
null
null
null
import pickle import cx_Oracle def export_taxa(url: str, file: str): con = cx_Oracle.connect(url) cur = con.cursor() cur.execute( """ SELECT TO_CHAR(TAX_ID), TO_CHAR(PARENT_ID), SCIENTIFIC_NAME, FULL_NAME, RANK FROM INTERPRO.ETAXI """ ) taxa = {} fo...
23.981132
69
0.526357
7959eb73d28985defeb9d8e3496000e24ea8b7f0
767
py
Python
examples/example_02.py
cfangmeier/matplotboard
a6e2c638f611c0cc9206ac18dd0ea827f367dc3a
[ "MIT" ]
3
2019-05-12T04:04:39.000Z
2020-12-15T20:25:15.000Z
examples/example_02.py
cfangmeier/matplotboard
a6e2c638f611c0cc9206ac18dd0ea827f367dc3a
[ "MIT" ]
1
2018-08-15T20:18:45.000Z
2018-08-15T20:18:45.000Z
examples/example_02.py
cfangmeier/matplotboard
a6e2c638f611c0cc9206ac18dd0ea827f367dc3a
[ "MIT" ]
null
null
null
from itertools import product import numpy as np import matplotlib.pyplot as plt import matplotboard as mpb @mpb.decl_fig def cool_fig(func, scale, color="b"): xs = np.linspace(-scale, scale, 100) f = { "sin": lambda xs: np.sin(xs), "tan": lambda xs: np.tan(xs), "exp": lambda xs: np.ex...
23.96875
63
0.597132
7959ebde8cebee6dc0c9d674c8896eb1850a2bda
3,678
py
Python
core/hash/hash.py
awesome-archive/OAG
551a237e8aa1fd6642b6c89f0fdb545104c09712
[ "MIT" ]
50
2019-08-02T05:46:55.000Z
2022-03-28T02:01:52.000Z
core/hash/hash.py
awesome-archive/OAG
551a237e8aa1fd6642b6c89f0fdb545104c09712
[ "MIT" ]
1
2019-08-14T07:51:49.000Z
2019-08-16T07:22:24.000Z
core/hash/hash.py
awesome-archive/OAG
551a237e8aa1fd6642b6c89f0fdb545104c09712
[ "MIT" ]
15
2019-07-30T07:32:58.000Z
2022-01-09T13:28:29.000Z
from os.path import join import os import numpy as np import time from collections import defaultdict as dd from core.hash.title2vec import Title2Vec from core.utils import feature_utils from core.utils import data_utils from core.utils import eval_utils from core.utils import settings import logging logger = loggin...
41.325843
101
0.706906
7959ecdd6dd69031a04f935d7b85e2434f6d5bb4
768
py
Python
flaskrestful/FlaskProject/migrations/versions/8a3c7a3d27e9_.py
riverstation/project-all
c56f1879e1303d561e95a3ff3a70f94fb5fa2191
[ "Apache-2.0" ]
null
null
null
flaskrestful/FlaskProject/migrations/versions/8a3c7a3d27e9_.py
riverstation/project-all
c56f1879e1303d561e95a3ff3a70f94fb5fa2191
[ "Apache-2.0" ]
null
null
null
flaskrestful/FlaskProject/migrations/versions/8a3c7a3d27e9_.py
riverstation/project-all
c56f1879e1303d561e95a3ff3a70f94fb5fa2191
[ "Apache-2.0" ]
null
null
null
"""empty message Revision ID: 8a3c7a3d27e9 Revises: 5f2c5108ef26 Create Date: 2018-08-14 15:36:10.352682 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '8a3c7a3d27e9' down_revision = '5f2c5108ef26' branch_labels = None depends_on = None def upgrade(): # ...
23.272727
72
0.686198
7959ed24d2cc11b25f3b89bc7f2fd3e458eb264b
1,696
py
Python
mutation.py
DilipIITBHU/MLST-IMPLEMENTATION
6ecfaab85f954171fc5aa9694a511a9e44a4ffa8
[ "MIT" ]
1
2020-02-26T17:28:37.000Z
2020-02-26T17:28:37.000Z
mutation.py
DilipIITBHU/MLST-IMPLEMENTATION
6ecfaab85f954171fc5aa9694a511a9e44a4ffa8
[ "MIT" ]
null
null
null
mutation.py
DilipIITBHU/MLST-IMPLEMENTATION
6ecfaab85f954171fc5aa9694a511a9e44a4ffa8
[ "MIT" ]
1
2020-02-26T17:29:00.000Z
2020-02-26T17:29:00.000Z
from encode_decode import encode,decode from freq_element import * from collections import defaultdict from check_spanning import * """graph = { 'a': {'b': 1, 'e': 4,'c':2}, 'b': {'a':1,'c': 3, 'd':3, 'e':4}, 'c': {'a':2,'d':1,'b':3}, 'd': {'b':3,'e':1, 'c':1}, 'e': {'...
22.918919
58
0.520047
7959ed7847ba0776dea1f4cd61d7c37cd15cc066
12,265
py
Python
nnunet/preprocessing/sanity_checks.py
zyw19980410/avm
a00e9ac09a5ca394eb18b4f55fc9adeeb2c0f1ec
[ "Apache-2.0" ]
null
null
null
nnunet/preprocessing/sanity_checks.py
zyw19980410/avm
a00e9ac09a5ca394eb18b4f55fc9adeeb2c0f1ec
[ "Apache-2.0" ]
null
null
null
nnunet/preprocessing/sanity_checks.py
zyw19980410/avm
a00e9ac09a5ca394eb18b4f55fc9adeeb2c0f1ec
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany # # 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://w...
44.277978
198
0.678924
7959ede9bd294129626eb2c1d5eebe14afd9e379
855
py
Python
node_launcher/node_set/tor/tor_node.py
ryan-lingle/node-launcher
4f1f7087a28d76f5b8153adac548d09b0558f6d5
[ "MIT" ]
null
null
null
node_launcher/node_set/tor/tor_node.py
ryan-lingle/node-launcher
4f1f7087a28d76f5b8153adac548d09b0558f6d5
[ "MIT" ]
null
null
null
node_launcher/node_set/tor/tor_node.py
ryan-lingle/node-launcher
4f1f7087a28d76f5b8153adac548d09b0558f6d5
[ "MIT" ]
null
null
null
from node_launcher.node_set.lib.managed_process import ManagedProcess from node_launcher.node_set.lib.network_node import NetworkNode from node_launcher.node_set.lib.node_status import NodeStatus from .tor_configuration import TorConfiguration from .tor_software import TorSoftware class TorNode(NetworkNode): soft...
32.884615
69
0.720468
7959ee7071f93dad476f1add115c1bf827ed4961
13,014
py
Python
elmclient/_typesystem.py
IBM/ELM-Python-Client
cd61ae6a253cc7ebffcfce78c9c6d67c93864ac6
[ "MIT" ]
10
2021-10-21T12:23:41.000Z
2022-03-30T22:43:30.000Z
elmclient/_typesystem.py
IBM/ELM-Python-Client
cd61ae6a253cc7ebffcfce78c9c6d67c93864ac6
[ "MIT" ]
6
2021-11-16T10:37:23.000Z
2022-03-14T11:38:46.000Z
elmclient/_typesystem.py
IBM/ELM-Python-Client
cd61ae6a253cc7ebffcfce78c9c6d67c93864ac6
[ "MIT" ]
4
2021-11-15T23:40:46.000Z
2022-03-28T19:41:51.000Z
## ## © Copyright 2021- IBM Inc. All rights reserved # SPDX-License-Identifier: MIT ## import logging from . import rdfxml from . import utils logger = logging.getLogger(__name__) ################################################################################################# class No_Type_System_Mixin(): de...
47.49635
192
0.599201
7959eec07eacea13bb66c51db35b2ef7f591b124
924
py
Python
migrations/versions/06600f194fb3_observation_model.py
rajhiren/test
b60572e505a79a1aed18fbffd3924a05d3f18a0c
[ "Apache-2.0" ]
null
null
null
migrations/versions/06600f194fb3_observation_model.py
rajhiren/test
b60572e505a79a1aed18fbffd3924a05d3f18a0c
[ "Apache-2.0" ]
null
null
null
migrations/versions/06600f194fb3_observation_model.py
rajhiren/test
b60572e505a79a1aed18fbffd3924a05d3f18a0c
[ "Apache-2.0" ]
null
null
null
"""Observation Model Revision ID: 06600f194fb3 Revises: bc494540d50e Create Date: 2020-01-11 16:33:33.237128 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '06600f194fb3' down_revision = 'bc494540d50e' branch_labels = None depends_on = None def upgrade(): ...
25.666667
65
0.678571
7959ef26ed4dcd2c446e4738847c18c0d9bae0b0
9,367
py
Python
python2/prac/pracmodules/achieved_by/src/achievedBy.py
danielnyga/prac-dev
107855cb9ddc294467098334725065b3937af150
[ "BSD-2-Clause" ]
3
2018-10-04T05:13:02.000Z
2022-01-18T15:06:05.000Z
python2/prac/pracmodules/achieved_by/src/achievedBy.py
danielnyga/prac-dev
107855cb9ddc294467098334725065b3937af150
[ "BSD-2-Clause" ]
2
2017-03-01T07:17:14.000Z
2019-06-26T14:28:57.000Z
python2/prac/pracmodules/achieved_by/src/achievedBy.py
danielnyga/prac-dev
107855cb9ddc294467098334725065b3937af150
[ "BSD-2-Clause" ]
2
2018-12-18T23:01:11.000Z
2020-12-15T08:57:19.000Z
# PROBABILISTIC ROBOT ACTION CORES # # (C) 2012-2015 by Daniel Nyga (nyga@cs.tum.edu) # (C) 2015 by Sebastian Koralewski (seba@informatik.uni-bremen.de) # # 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 ...
48.283505
155
0.551724
7959ef43530445df8f1a8cd21a3d76e6f28be9f6
7,049
py
Python
d_parser/d_spider_30ssd.py
Holovin/D_GrabDemo
6adb03fb42ae03e7896eb2eacb342cf9660feb92
[ "MIT" ]
null
null
null
d_parser/d_spider_30ssd.py
Holovin/D_GrabDemo
6adb03fb42ae03e7896eb2eacb342cf9660feb92
[ "MIT" ]
2
2018-03-28T19:47:46.000Z
2021-12-13T20:56:31.000Z
d_parser/d_spider_30ssd.py
Holovin/D_GrabDemo
6adb03fb42ae03e7896eb2eacb342cf9660feb92
[ "MIT" ]
null
null
null
from d_parser.d_spider_common import DSpiderCommon from d_parser.helpers.re_set import Ree from d_parser.helpers.stat_counter import StatCounter as SC from helpers.url_generator import UrlGenerator VERSION = 29 # Warn: Don't remove task argument even if not use it (it's break grab and spider crashed) # Warn: noinsp...
35.245
134
0.520925
7959ef60ae23deff7672bbd5b3058693cbcdd161
2,366
py
Python
docs/update_req_for_rtd.py
borellim/aiida_core
eebef392c81e8b130834a92e1d7abf5e2e30b3ce
[ "BSD-2-Clause" ]
1
2019-03-15T10:37:53.000Z
2019-03-15T10:37:53.000Z
docs/update_req_for_rtd.py
odarbelaeze/aiida_core
934b4ccdc73a993f2a6656caf516500470e3da08
[ "BSD-2-Clause" ]
null
null
null
docs/update_req_for_rtd.py
odarbelaeze/aiida_core
934b4ccdc73a993f2a6656caf516500470e3da08
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- ########################################################################### # Copyright (c), The AiiDA team. All rights reserved. # # This file is part of the AiiDA code. # # ...
40.793103
107
0.610313
7959f0b4ce229f6608ed4fd354830364822e8bf8
1,727
py
Python
gcloud/core/migrations/0004_environmentvariables.py
dtlisir/bk_sops
c39a23681e1fb2408ae93cebea20eb2a7dcec8ea
[ "Apache-2.0" ]
1
2019-05-21T06:44:18.000Z
2019-05-21T06:44:18.000Z
gcloud/core/migrations/0004_environmentvariables.py
dtlisir/bk_sops
c39a23681e1fb2408ae93cebea20eb2a7dcec8ea
[ "Apache-2.0" ]
9
2020-06-05T21:18:43.000Z
2021-06-10T21:34:38.000Z
gcloud/core/migrations/0004_environmentvariables.py
dtlisir/bk_sops
c39a23681e1fb2408ae93cebea20eb2a7dcec8ea
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available. Copyright (C) 2017-2019 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in co...
49.342857
305
0.68674
7959f166e296b20d0278c4aab0e7c6817d62d5ae
2,559
py
Python
azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/route_table_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/route_table_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/route_table_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2018-08-28T14:36:47.000Z
2018-08-28T14:36:47.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 ...
38.772727
162
0.602188
7959f16b6e69165322389dda166417064963412b
2,633
py
Python
ucsmsdk/mometa/ape/ApeMc.py
Kego/ucsmsdk
244f283a5c295cf746110bb96686d079b19927ce
[ "Apache-2.0" ]
78
2015-11-30T14:10:05.000Z
2022-02-13T00:29:08.000Z
ucsmsdk/mometa/ape/ApeMc.py
Kego/ucsmsdk
244f283a5c295cf746110bb96686d079b19927ce
[ "Apache-2.0" ]
113
2015-11-20T09:42:46.000Z
2022-03-16T16:53:29.000Z
ucsmsdk/mometa/ape/ApeMc.py
Kego/ucsmsdk
244f283a5c295cf746110bb96686d079b19927ce
[ "Apache-2.0" ]
86
2015-12-12T08:22:18.000Z
2022-01-23T03:56:34.000Z
"""This module contains the general information for ApeMc ManagedObject.""" from ...ucsmo import ManagedObject from ...ucscoremeta import MoPropertyMeta, MoMeta from ...ucsmeta import VersionMeta class ApeMcConsts: UPDATE_TYPE_DELTA = "delta" UPDATE_TYPE_PERIODIC = "periodic" UPDATE_TYPE_SYNC = "sync" ...
48.759259
247
0.628181
7959f239a3e21b67545f0cf9fd4ce2049af02049
1,471
py
Python
oaei2nt.py
insight-centre/naisc
01e13e35b6aaace98606e8ac56d7f9f21ee51ff1
[ "Apache-2.0" ]
6
2019-09-11T12:48:23.000Z
2022-03-22T14:04:34.000Z
oaei2nt.py
insight-centre/naisc
01e13e35b6aaace98606e8ac56d7f9f21ee51ff1
[ "Apache-2.0" ]
9
2020-10-22T15:35:07.000Z
2021-09-01T08:01:03.000Z
oaei2nt.py
insight-centre/naisc
01e13e35b6aaace98606e8ac56d7f9f21ee51ff1
[ "Apache-2.0" ]
1
2021-10-31T14:38:58.000Z
2021-10-31T14:38:58.000Z
############################################################################## ### Converts an OAEI file into an RDF alignment file as required by Naisc import xml.etree.ElementTree as ET import sys def main(): if len(sys.argv) < 1: print("Usage:\n\t python oaei2nt.py oaei.rdf > datasets/name/align.rdf") ...
61.291667
175
0.654657