hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
b91e43c53b9635fa2ef0dc770610e64bf82e300e
65,476
py
Python
python/paddle/fluid/tests/unittests/dist_transformer.py
L-Net-1992/Paddle
4d0ca02ba56760b456f3d4b42a538555b9b6c307
[ "Apache-2.0" ]
11
2016-08-29T07:43:26.000Z
2016-08-29T07:51:24.000Z
python/paddle/fluid/tests/unittests/dist_transformer.py
L-Net-1992/Paddle
4d0ca02ba56760b456f3d4b42a538555b9b6c307
[ "Apache-2.0" ]
null
null
null
python/paddle/fluid/tests/unittests/dist_transformer.py
L-Net-1992/Paddle
4d0ca02ba56760b456f3d4b42a538555b9b6c307
[ "Apache-2.0" ]
1
2021-09-24T11:23:36.000Z
2021-09-24T11:23:36.000Z
# Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
37.694876
127
0.588246
225e732b84035265a317ecc34da2ac703e550fe0
1,185
py
Python
main.py
Deepanjalli/job_portal6
2869de5dca16a88f840ce0e4a26fe2edba3e9cae
[ "MIT" ]
null
null
null
main.py
Deepanjalli/job_portal6
2869de5dca16a88f840ce0e4a26fe2edba3e9cae
[ "MIT" ]
4
2020-06-06T01:42:22.000Z
2021-09-08T01:50:57.000Z
main.py
Deepanjalli/job_portal6
2869de5dca16a88f840ce0e4a26fe2edba3e9cae
[ "MIT" ]
null
null
null
import os #import magic import urllib.request from app import app from flask import Flask, flash, request, redirect, render_template from werkzeug.utils import secure_filename ALLOWED_EXTENSIONS = set(['txt', 'pdf', 'png', 'jpg', 'jpeg', 'gif']) def allowed_file(filename): return '.' in filename and filename.rsplit(...
29.625
84
0.699578
3244dece2f3802a3633f68949939a2369ca8a76c
977
py
Python
api/medicine_api/management/commands/link_database_populator.py
maxwelld90/medicine-for-ukraine
f10152929a3827b9de055d993103b352959f3b33
[ "MIT" ]
2
2022-03-21T14:00:27.000Z
2022-03-21T17:17:51.000Z
api/medicine_api/management/commands/link_database_populator.py
maxwelld90/medicine-for-ukraine
f10152929a3827b9de055d993103b352959f3b33
[ "MIT" ]
19
2022-03-21T14:14:26.000Z
2022-03-31T07:49:40.000Z
api/medicine_api/management/commands/link_database_populator.py
maxwelld90/medicine-for-ukraine
f10152929a3827b9de055d993103b352959f3b33
[ "MIT" ]
4
2022-03-02T13:56:30.000Z
2022-03-22T10:49:00.000Z
import os import logging from medicine_api import models from medicine_api.readers.price_reader import PriceReader from django.core.management.base import BaseCommand logger = logging.getLogger('medicine_api.readers.link_database_populator') class Command(BaseCommand): """ Runs the CRON job to (re)populate th...
36.185185
116
0.714432
22e631daa8890fc280d5abef1e78f6c9eed5c87c
481
py
Python
src/queries/hacker_news_comments.py
llazarmk/hacker_news_comments_processing
8a3b8206e7bfaa7847a85deb05bf721f0f64772a
[ "Apache-2.0" ]
null
null
null
src/queries/hacker_news_comments.py
llazarmk/hacker_news_comments_processing
8a3b8206e7bfaa7847a85deb05bf721f0f64772a
[ "Apache-2.0" ]
null
null
null
src/queries/hacker_news_comments.py
llazarmk/hacker_news_comments_processing
8a3b8206e7bfaa7847a85deb05bf721f0f64772a
[ "Apache-2.0" ]
null
null
null
def get_hacker_news_comments_query(table): query = f"""SELECT comments.id AS comment_id, comments.parent AS comment_story_id, comments.text AS comment_text, comments.by AS comment_author, DATE(comments.timestamp) AS comment_date...
40.083333
65
0.532225
22aa86c670e26451dc9ec0d740610b8bb2d5aa6b
370
py
Python
parking_lot/entities/merchant.py
kuntalchandra/parking_lot
7990162c15b7f6bd33e5c0e99544b9abe1c76940
[ "MIT" ]
null
null
null
parking_lot/entities/merchant.py
kuntalchandra/parking_lot
7990162c15b7f6bd33e5c0e99544b9abe1c76940
[ "MIT" ]
null
null
null
parking_lot/entities/merchant.py
kuntalchandra/parking_lot
7990162c15b7f6bd33e5c0e99544b9abe1c76940
[ "MIT" ]
null
null
null
from datetime import datetime class Merchant: def __init__(self, id: int, name: str, registered_at: datetime): self.id = id self.name = name self.registered_at = registered_at def get_name(self): return self.name def get_id(self): return self.id def get_regis...
20.555556
68
0.643243
377d7f373cd3505587ad6b5d0f8343402185bea2
17,215
py
Python
IPython/utils/_tokenize_py2.py
pyarnold/ipython
c4797f7f069d0a974ddfa1e4251c7550c809dba0
[ "BSD-3-Clause-Clear" ]
1
2020-12-18T01:07:55.000Z
2020-12-18T01:07:55.000Z
IPython/utils/_tokenize_py2.py
pyarnold/ipython
c4797f7f069d0a974ddfa1e4251c7550c809dba0
[ "BSD-3-Clause-Clear" ]
null
null
null
IPython/utils/_tokenize_py2.py
pyarnold/ipython
c4797f7f069d0a974ddfa1e4251c7550c809dba0
[ "BSD-3-Clause-Clear" ]
null
null
null
"""Patched version of standard library tokenize, to deal with various bugs. Patches - Relevant parts of Gareth Rees' patch for Python issue #12691 (untokenizing), manually applied. - Newlines in comments and blank lines should be either NL or NEWLINE, depending on whether they are in a multi-line statement. Filed...
37.342733
80
0.512809
a92d9dde939f0ffa8c8b7906ce4cf432a94739f7
448
py
Python
微信聊天记录/utils/string_utils.py
xingag/spider_python
80668005f1416dab04c25569b35b679a2a6b2e5d
[ "Apache-2.0" ]
762
2018-11-22T04:40:15.000Z
2022-03-31T03:53:33.000Z
微信聊天记录/utils/string_utils.py
xingag/spider_python
80668005f1416dab04c25569b35b679a2a6b2e5d
[ "Apache-2.0" ]
15
2019-07-22T17:57:58.000Z
2022-03-11T23:36:46.000Z
微信聊天记录/utils/string_utils.py
xingag/spider_python
80668005f1416dab04c25569b35b679a2a6b2e5d
[ "Apache-2.0" ]
414
2018-12-18T00:33:18.000Z
2022-03-31T15:02:04.000Z
#!/usr/bin/env python # encoding: utf-8 """ @version: v1.0 @author: xag @license: Apache Licence @contact: xinganguo@gmail.com @site: http://www.xingag.top @software: PyCharm @file: StringUtils.py @time: 2020-04-11 18:39 @description:TODO """ import re def get_ava_string(str): """ 去掉特殊符号,保留正常内容...
17.92
89
0.629464
bdfe54dc9eefb56d8774f768df93322b94474a77
4,714
py
Python
models/gat.py
anshu0612/acmmm21_human_attributes_prediction_in_privacy_conditions
98cfc1820952e7d65520b029a53043fdf2d6c005
[ "MIT" ]
6
2021-09-01T07:44:59.000Z
2021-12-11T11:32:59.000Z
models/gat.py
anshu0612/human_attributes_prediction_in_privacy_conditions
98cfc1820952e7d65520b029a53043fdf2d6c005
[ "MIT" ]
null
null
null
models/gat.py
anshu0612/human_attributes_prediction_in_privacy_conditions
98cfc1820952e7d65520b029a53043fdf2d6c005
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F class _GraphAttentionLayer(nn.Module): ''' Part of code borrows from https://github.com/Diego999/pyGAT/blob/master/layers.py Simple GAT layer, similar to https://arxiv.org/abs/1710.10903 ''' def __init__(self, in_feat, out_feat, ...
35.443609
101
0.604794
ac682a26d10895b705fcc00eb7a4ae7d356bb1dc
94
py
Python
skypy/cluster/__init__.py
ArthurTolley/skypy
5621877ada75c667b1af7e665b02a91026f7ef0f
[ "BSD-3-Clause" ]
1
2020-12-28T18:00:24.000Z
2020-12-28T18:00:24.000Z
skypy/cluster/__init__.py
ArthurTolley/skypy
5621877ada75c667b1af7e665b02a91026f7ef0f
[ "BSD-3-Clause" ]
2
2020-12-28T20:14:40.000Z
2020-12-28T21:49:27.000Z
skypy/cluster/__init__.py
ArthurTolley/skypy
5621877ada75c667b1af7e665b02a91026f7ef0f
[ "BSD-3-Clause" ]
null
null
null
""" This module contains methods that model the properties of galaxy cluster populations. """
18.8
72
0.776596
b0e7cff87d8a247f2001cc1033118817f6c37096
948
py
Python
rulesets/onboarding/on-gcs-csv-upload/__deploy__.py
airspot-dev/iot-demo
5f8c1877192043f4118b102ad1f71326d40de858
[ "Apache-2.0" ]
1
2021-06-22T10:26:54.000Z
2021-06-22T10:26:54.000Z
rulesets/onboarding/on-gcs-csv-upload/__deploy__.py
airspot-dev/iot-demo
5f8c1877192043f4118b102ad1f71326d40de858
[ "Apache-2.0" ]
null
null
null
rulesets/onboarding/on-gcs-csv-upload/__deploy__.py
airspot-dev/iot-demo
5f8c1877192043f4118b102ad1f71326d40de858
[ "Apache-2.0" ]
1
2021-09-20T11:56:50.000Z
2021-09-20T11:56:50.000Z
name = "on-gcs-csv-upload" add_files = ( "ruleset.py", ) add_modules = True # find modules in directory (folders having __init__.py file) and add them to container extra_commands = ( ("RUN", "pip install google-cloud-storage==1.20.0"), ("RUN", "pip install cloudstorage==0.10.0") ) labels = { "networ...
21.066667
107
0.627637
1fa5af8e9ca21cc243249470b10ea5d9ae849b01
4,779
py
Python
test/functional/tiertwo_masternode_ping.py
Simple-Software-Solutions/RBX-Core
8cf0dfda708233e080e8729cec0b5014218386e3
[ "MIT" ]
null
null
null
test/functional/tiertwo_masternode_ping.py
Simple-Software-Solutions/RBX-Core
8cf0dfda708233e080e8729cec0b5014218386e3
[ "MIT" ]
null
null
null
test/functional/tiertwo_masternode_ping.py
Simple-Software-Solutions/RBX-Core
8cf0dfda708233e080e8729cec0b5014218386e3
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2020 The PIVX Developers # Copyright (c) 2020 The Rubus Developers # Distributed under the MIT software license, see the accompanying # file COPYING or https://www.opensource.org/licenses/mit-license.php. from test_framework.test_framework import RbxTestFramework from test_frame...
37.928571
99
0.644068
630ac008f07d95486834762ae3d04700f6629255
928
py
Python
listings/kafka_utils.py
fabiofumarola/scraper
d848f71c6c1b68c116fdbe63f9f9b2b3def87441
[ "Apache-2.0" ]
null
null
null
listings/kafka_utils.py
fabiofumarola/scraper
d848f71c6c1b68c116fdbe63f9f9b2b3def87441
[ "Apache-2.0" ]
3
2016-07-13T19:42:42.000Z
2016-08-17T13:15:55.000Z
listings/kafka_utils.py
fabiofumarola/scraper
d848f71c6c1b68c116fdbe63f9f9b2b3def87441
[ "Apache-2.0" ]
null
null
null
from kafka import KafkaConsumer, KafkaProducer import json class KafkaListing(object): def __init__(self, bootstrap_servers): self.bootstrap_servers = '127.0.0.1:9092' self.topic = 'raw_home_listings' def producer(self): return Producer(self.bootstrap_servers, self.topic) def con...
32
74
0.679957
e48f21f1a166d8e46d0f930b40380f4a41595b3c
1,527
py
Python
appdev/package.py
timshannon/freehold
3d054738f9d2dcb91543ce2a369af647b910a621
[ "MIT" ]
25
2016-11-25T16:49:56.000Z
2022-02-20T20:13:31.000Z
appdev/package.py
fidget77/freehold
3d054738f9d2dcb91543ce2a369af647b910a621
[ "MIT" ]
2
2018-09-21T10:53:24.000Z
2019-11-25T14:09:43.000Z
appdev/package.py
fidget77/freehold
3d054738f9d2dcb91543ce2a369af647b910a621
[ "MIT" ]
7
2017-02-26T11:00:09.000Z
2021-01-08T10:46:19.000Z
#!/usr/bin/env python import sys import subprocess import os import shutil def package(app): if not isApp(app): return print "packaging " + app tmpDir = "."+app+"_tmp" #copy to temp folder shutil.copytree(app, tmpDir) os.chdir(tmpDir) if not makeFolder("./"): #minify ...
21.507042
94
0.54093
0b9b3f881fdce1c6dd12e738e0a95d2ddd264610
929
py
Python
nipype/interfaces/nipy/tests/test_auto_Trim.py
nicholsn/nipype
6601b00aac39d17bb9fb3a6801f5a740a6ebb1e3
[ "BSD-3-Clause" ]
1
2018-04-18T12:13:37.000Z
2018-04-18T12:13:37.000Z
nipype/interfaces/nipy/tests/test_auto_Trim.py
ito-takuya/nipype
9099a5809487b55868cdec82a719030419cbd6ba
[ "BSD-3-Clause" ]
null
null
null
nipype/interfaces/nipy/tests/test_auto_Trim.py
ito-takuya/nipype
9099a5809487b55868cdec82a719030419cbd6ba
[ "BSD-3-Clause" ]
1
2021-09-08T14:31:47.000Z
2021-09-08T14:31:47.000Z
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT from nipype.testing import assert_equal from nipype.interfaces.nipy.preprocess import Trim def test_Trim_inputs(): input_map = dict(begin_index=dict(usedefault=True, ), end_index=dict(usedefault=True, ), ignore_exception=dict(nohash=True, us...
27.323529
78
0.67169
9fb3d2a9aa0ee1d4a8260205d6660497cd9a1f92
517
py
Python
Bit Manipulation/power_of_two.py
lim1202/LeetCode
931c8d5a8d80206fb329dc7792416d45804d2ba3
[ "MIT" ]
null
null
null
Bit Manipulation/power_of_two.py
lim1202/LeetCode
931c8d5a8d80206fb329dc7792416d45804d2ba3
[ "MIT" ]
null
null
null
Bit Manipulation/power_of_two.py
lim1202/LeetCode
931c8d5a8d80206fb329dc7792416d45804d2ba3
[ "MIT" ]
null
null
null
# Given an integer, write a function to determine if it is a power of two. def is_power_of_two(num): if num < 0: return False hasOne = False while num > 0: if num & 1: if hasOne: return False else: hasOne = True ...
20.68
75
0.491296
8583d925794a025ba0a55447f501f935910e8319
6,484
py
Python
google/cloud/container_v1beta1/types/__init__.py
donmccasland/python-container
5053428f63792fa822ae28f34c0e35150794d153
[ "Apache-2.0" ]
null
null
null
google/cloud/container_v1beta1/types/__init__.py
donmccasland/python-container
5053428f63792fa822ae28f34c0e35150794d153
[ "Apache-2.0" ]
null
null
null
google/cloud/container_v1beta1/types/__init__.py
donmccasland/python-container
5053428f63792fa822ae28f34c0e35150794d153
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
26.251012
74
0.730105
4b2c09b10701679df9e5486b7df55a879935b63f
2,595
py
Python
pychron/tx/factories.py
ASUPychron/pychron
dfe551bdeb4ff8b8ba5cdea0edab336025e8cc76
[ "Apache-2.0" ]
31
2016-03-07T02:38:17.000Z
2022-02-14T18:23:43.000Z
pychron/tx/factories.py
ASUPychron/pychron
dfe551bdeb4ff8b8ba5cdea0edab336025e8cc76
[ "Apache-2.0" ]
1,626
2015-01-07T04:52:35.000Z
2022-03-25T19:15:59.000Z
pychron/tx/factories.py
UIllinoisHALPychron/pychron
f21b79f4592a9fb9dc9a4cb2e4e943a3885ededc
[ "Apache-2.0" ]
26
2015-05-23T00:10:06.000Z
2022-03-07T16:51:57.000Z
# =============================================================================== # Copyright 2015 Jake Ross # # 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...
27.315789
81
0.663584
696e2cdc85bab58e2e82c4ea0107a83ab9a710e5
325
py
Python
sorting/selectionSort.py
MayankShrivastava17/algorithms-python-hacktoberfest-2021
bfb06448229c6a00f81f126e62f212205ce7d7e7
[ "MIT" ]
4
2021-10-01T13:22:20.000Z
2021-10-04T11:39:25.000Z
sorting/selectionSort.py
MayankShrivastava17/algorithms-python-hacktoberfest-2021
bfb06448229c6a00f81f126e62f212205ce7d7e7
[ "MIT" ]
2
2021-10-11T16:56:03.000Z
2021-10-30T14:25:25.000Z
sorting/selectionSort.py
MayankShrivastava17/algorithms-python-hacktoberfest-2021
bfb06448229c6a00f81f126e62f212205ce7d7e7
[ "MIT" ]
10
2021-10-11T12:28:48.000Z
2021-10-31T16:37:02.000Z
import sys n = int(input("Enter the size of array : ")) A = list(map(int, input("Enter the array elements :\n").strip().split()))[:n] for i in range(len(A)): min_idx = i for j in range(i+1, len(A)): if A[min_idx] > A[j]: min_idx = j A[i], A[min_idx] = A[min_idx], A[i] print ("Sorted array") prin...
14.130435
77
0.578462
26e9972bb1654c6e9cbd73a776be08b3044e2b7c
5,594
py
Python
bamboo/unit_tests/test_unit_layer_softsign.py
jonesholger/lbann
3214f189a1438565d695542e076c4fa8e7332d34
[ "Apache-2.0" ]
194
2016-07-19T15:40:21.000Z
2022-03-19T08:06:10.000Z
bamboo/unit_tests/test_unit_layer_softsign.py
jonesholger/lbann
3214f189a1438565d695542e076c4fa8e7332d34
[ "Apache-2.0" ]
1,021
2016-07-19T12:56:31.000Z
2022-03-29T00:41:47.000Z
bamboo/unit_tests/test_unit_layer_softsign.py
jonesholger/lbann
3214f189a1438565d695542e076c4fa8e7332d34
[ "Apache-2.0" ]
74
2016-07-28T18:24:00.000Z
2022-01-24T19:41:04.000Z
import functools import operator import os import os.path import sys import numpy as np # Bamboo utilities current_file = os.path.realpath(__file__) current_dir = os.path.dirname(current_file) sys.path.insert(0, os.path.join(os.path.dirname(current_dir), 'common_python')) import tools # ==============================...
29.287958
80
0.555953
ffe182532e59429cdd3fa4496f6bb231ea9a05bf
18,092
py
Python
data/rainbow/script1/20210217-121832/script1.py
lbaiao/sys-simulator-2
94f00d43309fe7b56dac5099bd4024695ba317b6
[ "MIT" ]
1
2020-06-14T13:50:28.000Z
2020-06-14T13:50:28.000Z
data/rainbow/script1/20210217-121832/script1.py
lbaiao/sys-simulator-2
94f00d43309fe7b56dac5099bd4024695ba317b6
[ "MIT" ]
null
null
null
data/rainbow/script1/20210217-121832/script1.py
lbaiao/sys-simulator-2
94f00d43309fe7b56dac5099bd4024695ba317b6
[ "MIT" ]
null
null
null
# Similar to script . # Uses CompleteEnvironment10dB # Centralized Learning-Distributed Execution # Simulates many times, for different number of agents, and take the averages. # There are different channels to the BS and to the devices. # Multiple episodes convergence. Everything is in dB. # One NN is trained and copi...
36.184
94
0.644097
f50031cd1c35db6c3a55a9851b43fb57241070cc
69,583
py
Python
tensorflow/python/keras/layers/recurrent_v2.py
where-is-brett/tensorflow
5da8599b2cf9edfb9fac4431c705501bf7ceccd8
[ "Apache-2.0" ]
50
2020-03-15T01:04:36.000Z
2021-11-21T23:25:44.000Z
tensorflow/python/keras/layers/recurrent_v2.py
where-is-brett/tensorflow
5da8599b2cf9edfb9fac4431c705501bf7ceccd8
[ "Apache-2.0" ]
47
2020-05-15T11:30:04.000Z
2021-08-11T16:51:08.000Z
tensorflow/python/keras/layers/recurrent_v2.py
where-is-brett/tensorflow
5da8599b2cf9edfb9fac4431c705501bf7ceccd8
[ "Apache-2.0" ]
66
2020-05-15T10:05:12.000Z
2022-02-14T07:28:18.000Z
# Copyright 2019 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...
42.273998
83
0.693388
275d0891a8dd15a24a11627bae5896e719816219
4,898
py
Python
ample/util/mrbump_cmd.py
fsimkovic/ample
c3c2196ca292e831e3cd8d15e3d3079bb6609848
[ "BSD-3-Clause" ]
6
2017-03-17T14:43:14.000Z
2021-08-06T07:07:14.000Z
ample/util/mrbump_cmd.py
fsimkovic/ample
c3c2196ca292e831e3cd8d15e3d3079bb6609848
[ "BSD-3-Clause" ]
47
2017-03-17T14:37:09.000Z
2021-01-28T10:22:15.000Z
ample/util/mrbump_cmd.py
fsimkovic/ample
c3c2196ca292e831e3cd8d15e3d3079bb6609848
[ "BSD-3-Clause" ]
6
2017-09-26T08:45:09.000Z
2020-03-19T14:26:49.000Z
""" Created on 28 Feb 2013 @author: jmht """ import os import sys from ample.util import ample_util def mrbump_cmd(name, mtz, mr_sequence, keyword_file): """Return the command to run mrbump""" if sys.platform.startswith("win"): mrbump = os.path.join(os.environ["CCP4"], "bin", "mrbump" + ample_util.S...
32.437086
98
0.584116
2edc71e479412a68160442fbace3e04789a2bd59
11,642
py
Python
fairseq/data/seq2sql_dataset.py
nikitacs16/fairseq
4db7d93e03bae242bb845dd4b6a193e999a9af99
[ "MIT" ]
null
null
null
fairseq/data/seq2sql_dataset.py
nikitacs16/fairseq
4db7d93e03bae242bb845dd4b6a193e999a9af99
[ "MIT" ]
null
null
null
fairseq/data/seq2sql_dataset.py
nikitacs16/fairseq
4db7d93e03bae242bb845dd4b6a193e999a9af99
[ "MIT" ]
null
null
null
# 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 logging import numpy as np import torch import copy import torch.nn as nn from . import data_utils, FairseqDataset, dictionary from ...
37.076433
176
0.738705
1acb9f25c0c8c3713d2e173dc12825a5c32288a5
5,864
py
Python
homeassistant/components/mobile_app/notify.py
mikan-megane/core
837220cce40890e296920d33a623adbc11bd15a6
[ "Apache-2.0" ]
5
2018-10-23T14:15:05.000Z
2021-11-26T06:38:44.000Z
homeassistant/components/mobile_app/notify.py
mikan-megane/core
837220cce40890e296920d33a623adbc11bd15a6
[ "Apache-2.0" ]
79
2020-07-23T07:13:37.000Z
2022-03-22T06:02:37.000Z
homeassistant/components/mobile_app/notify.py
mikan-megane/core
837220cce40890e296920d33a623adbc11bd15a6
[ "Apache-2.0" ]
3
2022-01-17T20:10:54.000Z
2022-01-17T20:17:22.000Z
"""Support for mobile_app push notifications.""" import asyncio import logging import aiohttp import async_timeout from homeassistant.components.notify import ( ATTR_DATA, ATTR_MESSAGE, ATTR_TARGET, ATTR_TITLE, ATTR_TITLE_DEFAULT, BaseNotificationService, ) from homeassistant.const import ( ...
31.697297
88
0.625853
715d5664c93f1bf62f6077e117761199b0dbf1aa
541
py
Python
launch/minimal.launch.py
mlherd/turtlebot2_ros2
0ecf31cd81bed1a269916e963b2a788221bd845e
[ "Apache-2.0" ]
null
null
null
launch/minimal.launch.py
mlherd/turtlebot2_ros2
0ecf31cd81bed1a269916e963b2a788221bd845e
[ "Apache-2.0" ]
null
null
null
launch/minimal.launch.py
mlherd/turtlebot2_ros2
0ecf31cd81bed1a269916e963b2a788221bd845e
[ "Apache-2.0" ]
null
null
null
from launch import LaunchDescription import launch.actions import launch_ros.actions def generate_launch_description(): return LaunchDescription([ launch.actions.LogInfo( msg="ROS2 start turtlebot_bringup minimal node." ), launch_ros.actions.Node( package="ydlidar", ...
21.64
57
0.63586
4df6b79d25cf2380b55fe9d3c5a3b8c00d828c1d
962
py
Python
friends/migrations/0003_friendrequest.py
DK-Nguyen/Django_Social_Network
6061e28b7574a612a71ba2661eabf6d024b930cd
[ "MIT" ]
14
2020-12-05T08:20:21.000Z
2022-03-07T12:18:40.000Z
friends/migrations/0003_friendrequest.py
DK-Nguyen/Django_Social_Network
6061e28b7574a612a71ba2661eabf6d024b930cd
[ "MIT" ]
1
2021-02-22T17:48:10.000Z
2021-02-22T17:48:10.000Z
friends/migrations/0003_friendrequest.py
DK-Nguyen/Django_Social_Network
6061e28b7574a612a71ba2661eabf6d024b930cd
[ "MIT" ]
13
2020-10-20T09:32:46.000Z
2022-01-02T00:27:51.000Z
# Generated by Django 2.1.2 on 2018-11-11 12:54 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('friends', '0002_auto_201...
37
149
0.665281
1a1e30b443a70d9c9d91e163587ba717da36c5bf
1,690
py
Python
tempest/stress/actions/server_create_destroy.py
citrix-openstack-build/tempest
385f0b116e8f02d24338e0f11f4ae3ccf2edd661
[ "Apache-2.0" ]
null
null
null
tempest/stress/actions/server_create_destroy.py
citrix-openstack-build/tempest
385f0b116e8f02d24338e0f11f4ae3ccf2edd661
[ "Apache-2.0" ]
null
null
null
tempest/stress/actions/server_create_destroy.py
citrix-openstack-build/tempest
385f0b116e8f02d24338e0f11f4ae3ccf2edd661
[ "Apache-2.0" ]
null
null
null
# Copyright 2013 Quanta Research Cambridge, 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 appli...
42.25
77
0.681065
798803e076d2e5ca04b9d22a04051df99ba64bc5
82
py
Python
bot/error_classes/__init__.py
NMisko/monkalot
965a16ca6a4921c8a9e6e996e9a0e3a9beb8444b
[ "MIT" ]
20
2017-09-08T21:13:38.000Z
2022-01-29T03:24:13.000Z
bot/error_classes/__init__.py
NMisko/monkalot
965a16ca6a4921c8a9e6e996e9a0e3a9beb8444b
[ "MIT" ]
32
2017-08-20T17:46:14.000Z
2021-11-18T22:54:59.000Z
bot/error_classes/__init__.py
NMisko/monkalot
965a16ca6a4921c8a9e6e996e9a0e3a9beb8444b
[ "MIT" ]
10
2017-08-19T01:13:41.000Z
2021-08-07T08:45:30.000Z
""" Package for custom classes.""" from .error_classes import UserNotFoundError
16.4
44
0.768293
381731d57d1bd9397e2803e2fa8594ea4771e1ca
1,027
py
Python
analyze.py
Term-inator/Brain-Tumor-Detection
b59715092cca7a17b589b5d906983eb42ee4ad87
[ "MIT" ]
null
null
null
analyze.py
Term-inator/Brain-Tumor-Detection
b59715092cca7a17b589b5d906983eb42ee4ad87
[ "MIT" ]
null
null
null
analyze.py
Term-inator/Brain-Tumor-Detection
b59715092cca7a17b589b5d906983eb42ee4ad87
[ "MIT" ]
null
null
null
import numpy as np seed_list = [31, 37, 41, 42, 43, 47, 53] type_list = ['tumor', 'T1SS', 'T2SS', 'T1', '2label', 'randT1', 'randTumor'] def get_test_result(test_scores): print(f'{np.round(np.mean(test_scores, axis=0), decimals=4)}') for type in type_list: for epochs in range(10, 61, 10): all_score...
33.129032
89
0.508277
e5205b6f20a239e93a1300c5f360763227e6d7fe
3,883
py
Python
tests/test_extraction_synthesis.py
pwang00/PrivacyRaven
50d18f403f92c4b6ddb14be438584b9746f6bad6
[ "Apache-2.0" ]
121
2020-09-01T21:55:22.000Z
2022-03-28T11:38:43.000Z
tests/test_extraction_synthesis.py
pwang00/PrivacyRaven
50d18f403f92c4b6ddb14be438584b9746f6bad6
[ "Apache-2.0" ]
49
2020-09-08T19:02:16.000Z
2022-02-11T20:52:40.000Z
tests/test_extraction_synthesis.py
pwang00/PrivacyRaven
50d18f403f92c4b6ddb14be438584b9746f6bad6
[ "Apache-2.0" ]
16
2020-09-09T00:45:30.000Z
2022-02-25T01:53:53.000Z
# This test code was modified from code written by the `hypothesis.extra.ghostwriter` module # and is provided under the Creative Commons Zero public domain dedication. import numpy as np import pytest import torch from art.estimators.classification import BlackBoxClassifier from hypothesis import assume, given, setti...
29.641221
92
0.726243
c2763c7a85f3334b1c58ee999328017be0957ac5
2,708
py
Python
training/dataloader_lightning.py
denix56/stylegan2-ada-pytorch
9df6a704a5dd1db779966307422b70c293b393fc
[ "BSD-Source-Code" ]
1
2021-02-24T19:24:04.000Z
2021-02-24T19:24:04.000Z
training/dataloader_lightning.py
denix56/stylegan2-ada-pytorch
9df6a704a5dd1db779966307422b70c293b393fc
[ "BSD-Source-Code" ]
null
null
null
training/dataloader_lightning.py
denix56/stylegan2-ada-pytorch
9df6a704a5dd1db779966307422b70c293b393fc
[ "BSD-Source-Code" ]
null
null
null
import torch from torch.utils.data import DataLoader import pytorch_lightning as pl import dnnlib import numpy as np from .dataset import worker_init_fn class StyleGANDataModule(pl.LightningDataModule): def __init__(self, batch_size_per_unit, training_set_kwargs, data_loader_kwargs): super().__init__() ...
42.3125
126
0.688331
cf8d36174783f3deb1919c0c05c6091b6805374c
8,890
py
Python
droid_slam/visualization.py
TruongKhang/DROID-SLAM
7a2aa9a2b4b04952dd095bdb562f140c899ca8a7
[ "BSD-3-Clause" ]
null
null
null
droid_slam/visualization.py
TruongKhang/DROID-SLAM
7a2aa9a2b4b04952dd095bdb562f140c899ca8a7
[ "BSD-3-Clause" ]
null
null
null
droid_slam/visualization.py
TruongKhang/DROID-SLAM
7a2aa9a2b4b04952dd095bdb562f140c899ca8a7
[ "BSD-3-Clause" ]
null
null
null
import torch import torch.nn.functional as F import cv2 import lietorch import droid_backends import time import argparse import numpy as np import open3d as o3d from lietorch import SE3 import geom.projective_ops as pops import depth_fusion CAM_POINTS = np.array([ [ 0, 0, 0], [-1, -1, 1.5], ...
42.740385
125
0.593476
69b4bd44be9a0776a4d080958f11e76ebdf4f20c
42,284
py
Python
src/sentry/event_manager.py
pkaminski/sentry
27e948283e27d93ca5192ca7b580830e092c25c7
[ "BSD-3-Clause" ]
1
2021-04-04T07:26:13.000Z
2021-04-04T07:26:13.000Z
src/sentry/event_manager.py
pkaminski/sentry
27e948283e27d93ca5192ca7b580830e092c25c7
[ "BSD-3-Clause" ]
null
null
null
src/sentry/event_manager.py
pkaminski/sentry
27e948283e27d93ca5192ca7b580830e092c25c7
[ "BSD-3-Clause" ]
null
null
null
""" sentry.event_manager ~~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2010-2014 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from __future__ import absolute_import, print_function import logging import math import six from datetime import datetime, timedelta from collect...
35.894737
130
0.570831
e15f588c2d1d95f5fe6f2a5b6474fe7cbba9ef85
9,902
py
Python
python/http_client/v1/polyaxon_sdk/models/v1_project_settings.py
mouradmourafiq/polyaxon-client
5fc32b9decc7305161561d404b0127f3e900c64a
[ "Apache-2.0" ]
null
null
null
python/http_client/v1/polyaxon_sdk/models/v1_project_settings.py
mouradmourafiq/polyaxon-client
5fc32b9decc7305161561d404b0127f3e900c64a
[ "Apache-2.0" ]
null
null
null
python/http_client/v1/polyaxon_sdk/models/v1_project_settings.py
mouradmourafiq/polyaxon-client
5fc32b9decc7305161561d404b0127f3e900c64a
[ "Apache-2.0" ]
1
2021-12-03T07:12:03.000Z
2021-12-03T07:12:03.000Z
#!/usr/bin/python # # Copyright 2018-2022 Polyaxon, 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 ...
27.736695
198
0.595738
7c3a625a990734f9f1da72b5e7ea1566d8136165
2,576
py
Python
pyquil_decomp.py
dumkar/learning-to-learn-qnn
289518ef1b04acd834055491752d4e3351ffbb53
[ "MIT" ]
37
2019-07-19T18:51:36.000Z
2021-11-03T14:58:27.000Z
pyquil_decomp.py
dumkar/learning-to-learn-qnn
289518ef1b04acd834055491752d4e3351ffbb53
[ "MIT" ]
1
2019-07-23T21:32:13.000Z
2019-07-23T21:32:13.000Z
pyquil_decomp.py
dumkar/learning-to-learn-qnn
289518ef1b04acd834055491752d4e3351ffbb53
[ "MIT" ]
4
2020-01-06T10:49:10.000Z
2021-04-21T07:24:02.000Z
import itertools import numpy as np from functools import partial from pyquil import Program, api from pyquil.paulis import PauliSum, PauliTerm, exponential_map, sZ from pyquil.gates import * from scipy.optimize import minimize import pennylane as qml from pennylane import numpy as np np.set_printoptions(precision=3, s...
31.414634
90
0.578028
349fd91b966fb95f2ac69f5938d688922861a939
21,311
py
Python
sdk/python/pulumi_azure_nextgen/web/v20160801/web_app.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
31
2020-09-21T09:41:01.000Z
2021-02-26T13:21:59.000Z
sdk/python/pulumi_azure_nextgen/web/v20160801/web_app.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
231
2020-09-21T09:38:45.000Z
2021-03-01T11:16:03.000Z
sdk/python/pulumi_azure_nextgen/web/v20160801/web_app.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
4
2020-09-29T14:14:59.000Z
2021-02-10T20:38:16.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
44.771008
562
0.654169
733a5d837d60f942bc4a41d728c76187694ff738
644
py
Python
GraphClient.py
MCSainz/Data_Structures_Algorithms_in_Python
c09439bdadf4c872a01e115ffb596b840bcb64c2
[ "MIT" ]
null
null
null
GraphClient.py
MCSainz/Data_Structures_Algorithms_in_Python
c09439bdadf4c872a01e115ffb596b840bcb64c2
[ "MIT" ]
null
null
null
GraphClient.py
MCSainz/Data_Structures_Algorithms_in_Python
c09439bdadf4c872a01e115ffb596b840bcb64c2
[ "MIT" ]
null
null
null
# Client test program for graphs. from argparse import ArgumentParser from Graph import Graph from DepthFirstSearch import DepthFirstSearch as DFS def main(): ap = ArgumentParser() ap.add_argument('-i', '--input-file-path', required=True, help='Input graph file path.') args = vars(ap.pa...
18.941176
61
0.627329
8b1f729eb34350994cd53655ce64f45feb031eeb
1,545
py
Python
__init__.py
ashelto6/unJumble
cf557668133186e7ea419f6f08ccadef4cad89a1
[ "MIT" ]
null
null
null
__init__.py
ashelto6/unJumble
cf557668133186e7ea419f6f08ccadef4cad89a1
[ "MIT" ]
7
2021-02-26T07:31:12.000Z
2021-04-25T03:21:35.000Z
__init__.py
ashelto6/unJumble
cf557668133186e7ea419f6f08ccadef4cad89a1
[ "MIT" ]
null
null
null
from flask import Flask from flask_login import LoginManager from flask_mail import Mail, Message from flask_sqlalchemy import SQLAlchemy from dotenv import load_dotenv from td.client import TDClient import os basedir = os.path.abspath(os.path.dirname(__file__)) load_dotenv(os.path.join(basedir, '.env')) TDSession = ...
28.090909
68
0.771521
220ad6d3ef03aec2305ab6da2aab60262db98469
469
py
Python
mite/web/__init__.py
markgreene74/mite
339bdfc39be30534ea2169d8257469bd0ff535fb
[ "MIT" ]
17
2019-11-14T22:32:56.000Z
2022-02-01T15:38:03.000Z
mite/web/__init__.py
markgreene74/mite
339bdfc39be30534ea2169d8257469bd0ff535fb
[ "MIT" ]
35
2020-01-08T10:50:31.000Z
2022-02-17T17:00:34.000Z
mite/web/__init__.py
markgreene74/mite
339bdfc39be30534ea2169d8257469bd0ff535fb
[ "MIT" ]
4
2019-11-14T14:48:18.000Z
2020-05-06T22:09:25.000Z
import logging from flask import Flask, Response from .prometheus import PrometheusMetrics app = Flask(__name__) # FIXME: the goal of this line is to cut down on the once-per-second server # log line from the prometheus scrape. But I don't think it works... app.logger.setLevel(logging.WARNING) prometheus_metrics =...
24.684211
75
0.75693
9ce667027a207276aabb8a3cc7c62728c1dd08ef
1,128
py
Python
lib/python/plow/client/conf.py
Br3nda/plow
eea4468078df58d6798ceabe14c0d3e83f2c3a8d
[ "Apache-2.0" ]
36
2015-01-02T21:02:04.000Z
2021-09-07T12:01:06.000Z
lib/python/plow/client/conf.py
Br3nda/plow
eea4468078df58d6798ceabe14c0d3e83f2c3a8d
[ "Apache-2.0" ]
null
null
null
lib/python/plow/client/conf.py
Br3nda/plow
eea4468078df58d6798ceabe14c0d3e83f2c3a8d
[ "Apache-2.0" ]
11
2015-04-01T21:31:40.000Z
2022-03-30T17:55:27.000Z
import sys import os import ConfigParser _Config = ConfigParser.RawConfigParser() _Args = { } def _init(): """ Parse an initalize the Config object """ mod = sys.modules[__name__] if os.environ.get("PLOW_CFG"): parsed = _Config.read([os.environ["PLOW_CFG"]]) else: parsed = _C...
25.636364
102
0.635638
9042181927827c36d8a7a499a084ea19d4a4f228
4,434
py
Python
env/Lib/site-packages/OpenGL/GLES1/OES/texture_cube_map.py
5gconnectedbike/Navio2
8c3f2b5d8bbbcea1fc08739945183c12b206712c
[ "BSD-3-Clause" ]
210
2016-04-09T14:26:00.000Z
2022-03-25T18:36:19.000Z
env/Lib/site-packages/OpenGL/GLES1/OES/texture_cube_map.py
5gconnectedbike/Navio2
8c3f2b5d8bbbcea1fc08739945183c12b206712c
[ "BSD-3-Clause" ]
72
2016-09-04T09:30:19.000Z
2022-03-27T17:06:53.000Z
env/Lib/site-packages/OpenGL/GLES1/OES/texture_cube_map.py
5gconnectedbike/Navio2
8c3f2b5d8bbbcea1fc08739945183c12b206712c
[ "BSD-3-Clause" ]
64
2016-04-09T14:26:49.000Z
2022-03-21T11:19:47.000Z
'''OpenGL extension OES.texture_cube_map This module customises the behaviour of the OpenGL.raw.GLES1.OES.texture_cube_map to provide a more Python-friendly API Overview (from the spec) This extension provides a new texture generation scheme for cube map textures. Instead of the current texture providing a 1D,...
47.170213
76
0.792512
15c782543995d6b640c620a364a9f54dd5cc37b7
24,761
py
Python
tests/core_tests_chain_collection.py
gf712/AbPyTools
9ff0d4346ad80487d43875bc77d99fbe76170db4
[ "MIT" ]
13
2017-06-13T12:31:47.000Z
2022-03-23T02:14:01.000Z
tests/core_tests_chain_collection.py
gf712/AbPyTools
9ff0d4346ad80487d43875bc77d99fbe76170db4
[ "MIT" ]
8
2018-02-21T22:15:35.000Z
2022-02-01T12:27:58.000Z
tests/core_tests_chain_collection.py
gf712/AbPyTools
9ff0d4346ad80487d43875bc77d99fbe76170db4
[ "MIT" ]
3
2018-04-10T08:01:39.000Z
2021-10-10T14:37:43.000Z
import unittest from abpytools import ChainCollection, Chain import operator import os from glob import glob from . import read_sequence, check_connection, ABNUM_URL, IGBLAST_URL class ChainCollectionCore(unittest.TestCase): @classmethod def setUpClass(cls): cls.antibody_collection_1_name = 'test' ...
67.838356
118
0.667259
fca40bd6afa91ed2eaf529bafdf14a7091138930
2,711
py
Python
chat_assistant/chat_assistant_api/views.py
mrhegemon/Rasa_zero_rpc_XR_bot
a468cc1f2b1a4e935ce18e97dcb7a11070bbea0b
[ "MIT" ]
1
2021-06-21T10:44:51.000Z
2021-06-21T10:44:51.000Z
chat_assistant/chat_assistant_api/views.py
mrhegemon/Rasa_zero_rpc_XR_bot
a468cc1f2b1a4e935ce18e97dcb7a11070bbea0b
[ "MIT" ]
null
null
null
chat_assistant/chat_assistant_api/views.py
mrhegemon/Rasa_zero_rpc_XR_bot
a468cc1f2b1a4e935ce18e97dcb7a11070bbea0b
[ "MIT" ]
1
2021-06-07T23:09:30.000Z
2021-06-07T23:09:30.000Z
from rest_framework import viewsets from rest_framework.views import APIView from rest_framework.response import Response from rest_framework import status from rest_framework.authentication import TokenAuthentication from rest_framework.authtoken.serializers import AuthTokenSerializer from rest_framework.authtoken.mod...
39.289855
89
0.689045
73e1a6c400533ce1fbdae96317cb0299357bf67f
3,403
py
Python
brno_process_data.py
shelltitan/CardioML
50b977807e2417bd422022168e1c48f8f23491db
[ "MIT" ]
null
null
null
brno_process_data.py
shelltitan/CardioML
50b977807e2417bd422022168e1c48f8f23491db
[ "MIT" ]
null
null
null
brno_process_data.py
shelltitan/CardioML
50b977807e2417bd422022168e1c48f8f23491db
[ "MIT" ]
null
null
null
from os import listdir from os.path import isfile, join import os import wfdb import matplotlib.pyplot as plt import numpy as np import pywt from pathlib import Path target_dir = "D:/Arythmia PPG-ECG/processed_data/brno" #well brno_test is basically this just for one file def ProcessData(filenames, directory, target):...
37.811111
101
0.698795
99512f904ee4a18c8fee10464558c0aba6bf6b3a
346
py
Python
jobs/sierras_24.py
tylertucker202/tibet_project
84278a894f1853d2a560f1552e98508e7ffd1688
[ "MIT" ]
2
2018-10-05T15:40:54.000Z
2020-06-15T12:26:06.000Z
jobs/sierras_24.py
tylertucker202/tibet_project
84278a894f1853d2a560f1552e98508e7ffd1688
[ "MIT" ]
4
2021-02-02T23:01:16.000Z
2022-03-12T00:47:35.000Z
jobs/sierras_24.py
tylertucker202/tibet_project
84278a894f1853d2a560f1552e98508e7ffd1688
[ "MIT" ]
1
2018-08-28T03:12:47.000Z
2018-08-28T03:12:47.000Z
from region_parameters import get_sierras_24x24_param from job_functions import run_job if __name__ == '__main__': input_dict = get_sierras_24x24_param() make_grid = True make_hdf5 = False make_time_series_df = False make_plots = False run_job(input_dict, make_grid, make_hdf5, make_t...
26.615385
78
0.754335
4740f107ab2f8b637fca34863642d97cd69a73cd
13,210
py
Python
tools/deployment/pytorch2onnx.py
LaudateCorpus1/edgeai-mmdetection
43914fe6bf25e7584033d784babb518b28c76b5c
[ "BSD-3-Clause" ]
9
2021-09-30T16:02:18.000Z
2022-03-09T00:42:21.000Z
tools/deployment/pytorch2onnx.py
LaudateCorpus1/edgeai-mmdetection
43914fe6bf25e7584033d784babb518b28c76b5c
[ "BSD-3-Clause" ]
10
2021-10-30T05:34:01.000Z
2022-03-09T01:41:26.000Z
tools/deployment/pytorch2onnx.py
LaudateCorpus1/edgeai-mmdetection
43914fe6bf25e7584033d784babb518b28c76b5c
[ "BSD-3-Clause" ]
8
2021-10-20T09:39:56.000Z
2022-01-28T06:33:29.000Z
# Copyright (c) OpenMMLab. All rights reserved. import argparse import os.path as osp import warnings from functools import partial import numpy as np import onnx import torch from mmcv import Config, DictAction import mmdet.utils from mmdet.core.export import build_model_from_cfg, preprocess_example_input from mmdet...
35.039788
127
0.619682
abe9e7be94479eaa45c7d911cfd045fd2a2df911
1,700
py
Python
racecar_control/scripts/labo_brushfire.py
gene2302/RacecarS5
82ac296a10aeefa56bac0fa8d7ab3a725391b07a
[ "MIT" ]
null
null
null
racecar_control/scripts/labo_brushfire.py
gene2302/RacecarS5
82ac296a10aeefa56bac0fa8d7ab3a725391b07a
[ "MIT" ]
null
null
null
racecar_control/scripts/labo_brushfire.py
gene2302/RacecarS5
82ac296a10aeefa56bac0fa8d7ab3a725391b07a
[ "MIT" ]
null
null
null
#!/usr/bin/env python import rospy import cv2 import numpy as np from nav_msgs.srv import GetMap from libcontrol import * def main(): rospy.init_node('brushfire') prefix = "racecar" rospy.wait_for_service(prefix + '/get_map') try: get_map = rospy.ServiceProxy(prefix + '/get_map', GetMap) ...
35.416667
133
0.649412
f64110d6cf37d6a167e235100293bda745b12e07
1,402
py
Python
utils/common.py
qtisan/asteria
9378b4d6b882ea15c79d6b81b601f4265e55a301
[ "MIT" ]
null
null
null
utils/common.py
qtisan/asteria
9378b4d6b882ea15c79d6b81b601f4265e55a301
[ "MIT" ]
3
2021-06-02T00:45:51.000Z
2021-09-08T01:29:09.000Z
utils/common.py
qtisan/asteria
9378b4d6b882ea15c79d6b81b601f4265e55a301
[ "MIT" ]
null
null
null
import logging from pathlib import Path root_dir = Path(__file__).parent.parent def get_logger(app_name, level=logging.DEBUG): logger = logging.getLogger(app_name) logger.setLevel(logging.DEBUG) logfile = logging.FileHandler(root_dir / 'logs/{0}'.format(app_name + '-log.txt')) logfile.setLevel(level...
23.366667
119
0.645506
e18d153674bc8af964e582ac7a103e51b91e20a5
21
py
Python
build/lib/subnet/__init__.py
usamaimdadsian/subnet-pkg
3d815a22cd82044cce3607e5ab16102f8897324c
[ "MIT" ]
null
null
null
build/lib/subnet/__init__.py
usamaimdadsian/subnet-pkg
3d815a22cd82044cce3607e5ab16102f8897324c
[ "MIT" ]
null
null
null
build/lib/subnet/__init__.py
usamaimdadsian/subnet-pkg
3d815a22cd82044cce3607e5ab16102f8897324c
[ "MIT" ]
null
null
null
from .subnet import *
21
21
0.761905
2da1c793fe1afa5c590b89254b77ecb813d5cea9
15,123
py
Python
commands/base_commands/exchanges.py
bopopescu/arxcode
3d279ce801e177d2f98671c438c52d39ed6edd41
[ "MIT" ]
null
null
null
commands/base_commands/exchanges.py
bopopescu/arxcode
3d279ce801e177d2f98671c438c52d39ed6edd41
[ "MIT" ]
null
null
null
commands/base_commands/exchanges.py
bopopescu/arxcode
3d279ce801e177d2f98671c438c52d39ed6edd41
[ "MIT" ]
null
null
null
from django.db import transaction from commands.base import ArxCommand from commands.base_commands.overrides import args_are_currency, check_volume from world.dominion.models import CraftingMaterials from server.utils.arx_utils import text_box class TradeError(Exception): pass class PersonalTradeInProgress: ...
40.328
113
0.585796
b98065586c7dfce53ff9558c48c42c7023232342
29,973
py
Python
uploadr.py
baumrasen/flickr-uploader
55c73dc15a90705c17031ddaf8ac41351e8f481f
[ "MIT" ]
39
2017-11-04T10:10:59.000Z
2021-01-06T22:07:55.000Z
uploadr.py
baumrasen/flickr-uploader
55c73dc15a90705c17031ddaf8ac41351e8f481f
[ "MIT" ]
60
2017-11-01T01:28:46.000Z
2019-09-29T12:26:39.000Z
uploadr.py
baumrasen/flickr-uploader
55c73dc15a90705c17031ddaf8ac41351e8f481f
[ "MIT" ]
9
2017-11-09T20:35:12.000Z
2021-01-10T16:34:32.000Z
#!/usr/bin/env python """ by oPromessa, 2017, 2018 Published on https://github.com/oPromessa/flickr-uploader/ ## LICENSE.txt -------------- * Check usage and licensing notice on LICENSE.txt file. * PLEASE REVIEW THE SOURCE CODE TO MAKE SURE IT WILL WORK FOR YOUR NEEDS. ## CONTRIBUTIONS AR...
42.575284
79
0.519434
9230187d8ad559ff52e30856f5221d9619ae6d43
847
py
Python
platform/polycommon/polycommon/options/option_subjects.py
denisoliveirac/polyaxon
21d33e50bbbd4bfbe474683f977eecf0b741ddd4
[ "Apache-2.0" ]
null
null
null
platform/polycommon/polycommon/options/option_subjects.py
denisoliveirac/polyaxon
21d33e50bbbd4bfbe474683f977eecf0b741ddd4
[ "Apache-2.0" ]
null
null
null
platform/polycommon/polycommon/options/option_subjects.py
denisoliveirac/polyaxon
21d33e50bbbd4bfbe474683f977eecf0b741ddd4
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # # Copyright 2018-2021 Polyaxon, 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 ...
33.88
74
0.767414
fd75bfd653c61e5840c8a0871e2e840c5904b25e
462
py
Python
Aula13.py
juniorsmartins/Aulas-Python
48cf784c8856a588a4789c3206601a970206fdfe
[ "MIT" ]
null
null
null
Aula13.py
juniorsmartins/Aulas-Python
48cf784c8856a588a4789c3206601a970206fdfe
[ "MIT" ]
null
null
null
Aula13.py
juniorsmartins/Aulas-Python
48cf784c8856a588a4789c3206601a970206fdfe
[ "MIT" ]
null
null
null
print('') print('-'*20) print('Curso em Vídeo') print('Professor: Gustavo Guanabara') print('Operações Aritméticas') print('-'*20) print('') n1 = int(input('Digite o primeiro valor: ')) n2 = int(input('Digite o segundo valor: ')) s = n1 + n2 m = n1 * n2 d = n1 / n2 di = n1 // n2 e = n1 ** n2 print('A soma é {}, a mult...
23.1
79
0.608225
9611deb88ec4f63cd0f7d05dbe1d62cf0d1a0fb8
128
py
Python
01_Python_Basico_Intermediario/Aula029/aula29.py
Joao-Inacio/Curso-de-Python3
179d85f43f77dced640ffb143a87214538254cf3
[ "MIT" ]
1
2021-07-19T12:31:49.000Z
2021-07-19T12:31:49.000Z
01_Python_Basico_Intermediario/Aula029/aula29.py
Joao-Inacio/Curso-de-Python3
179d85f43f77dced640ffb143a87214538254cf3
[ "MIT" ]
null
null
null
01_Python_Basico_Intermediario/Aula029/aula29.py
Joao-Inacio/Curso-de-Python3
179d85f43f77dced640ffb143a87214538254cf3
[ "MIT" ]
null
null
null
""" Funções def = return """ def f(var): print(var) def dumb(): return f # var = dumb()() dumb()('Colocar valor')
8
23
0.53125
cc0e31b79b121c35f0950391a4f25518a22ca6f1
5,665
py
Python
.history/src/data/data_20191021144922.py
bkraft4257/kaggle_titanic
f29ea1773773109a867278c001dbd21a9f7b21dd
[ "MIT" ]
null
null
null
.history/src/data/data_20191021144922.py
bkraft4257/kaggle_titanic
f29ea1773773109a867278c001dbd21a9f7b21dd
[ "MIT" ]
null
null
null
.history/src/data/data_20191021144922.py
bkraft4257/kaggle_titanic
f29ea1773773109a867278c001dbd21a9f7b21dd
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np from typing import Union from pathlib import Path from nameparser import HumanName class ExtractData: def __init__(self, filename: Union[str, Path], age_bins=None, drop_columns=None): # """Extract Training Data from file or Path # Arguments: # fi...
29.815789
114
0.556222
8eef5c280bc1135d0dab46268e49f2df628e5dd7
2,238
py
Python
squarecloud/Square.py
squarecl/square-python-status
ec29adc9a3ff6575eb2fc669111599745bbe5926
[ "Apache-2.0" ]
null
null
null
squarecloud/Square.py
squarecl/square-python-status
ec29adc9a3ff6575eb2fc669111599745bbe5926
[ "Apache-2.0" ]
2
2021-12-02T05:04:18.000Z
2021-12-02T05:15:37.000Z
squarecloud/Square.py
squarecl/square-python-status
ec29adc9a3ff6575eb2fc669111599745bbe5926
[ "Apache-2.0" ]
3
2021-11-29T19:20:50.000Z
2021-12-02T04:51:31.000Z
# This code was made for SquareCloud (https://squarecloud.app) by Mudinho and NemRela. # Imports Section import os import sys from warnings import warn # Bytes converter (RAM Function) def bytes_to(n: int, formatted: bool = False): if formatted: for i in ['B', 'KB', 'MB', 'GB']: if ...
36.096774
107
0.537534
375079570429dedb1d17297f30fb7b51109ef5bb
2,250
py
Python
python/paddle/fluid/entry_attr.py
L-Net-1992/Paddle
4d0ca02ba56760b456f3d4b42a538555b9b6c307
[ "Apache-2.0" ]
11
2016-08-29T07:43:26.000Z
2016-08-29T07:51:24.000Z
python/paddle/fluid/entry_attr.py
L-Net-1992/Paddle
4d0ca02ba56760b456f3d4b42a538555b9b6c307
[ "Apache-2.0" ]
null
null
null
python/paddle/fluid/entry_attr.py
L-Net-1992/Paddle
4d0ca02ba56760b456f3d4b42a538555b9b6c307
[ "Apache-2.0" ]
1
2021-12-09T08:59:17.000Z
2021-12-09T08:59:17.000Z
# Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
29.220779
79
0.662667
50c293c624738998a432f6ce75b1741eaa87620e
2,062
py
Python
pinakes/main/migrations/0009_auto_20211004_2054.py
hsong-rh/pinakes
2f08cb757ca64c866af3244686b92a3074fc7571
[ "Apache-2.0" ]
2
2022-03-17T18:53:58.000Z
2022-03-17T22:04:22.000Z
pinakes/main/migrations/0009_auto_20211004_2054.py
hsong-rh/pinakes
2f08cb757ca64c866af3244686b92a3074fc7571
[ "Apache-2.0" ]
9
2022-03-18T08:22:57.000Z
2022-03-30T17:14:49.000Z
pinakes/main/migrations/0009_auto_20211004_2054.py
hsong-rh/pinakes
2f08cb757ca64c866af3244686b92a3074fc7571
[ "Apache-2.0" ]
7
2022-03-17T22:03:08.000Z
2022-03-28T21:28:34.000Z
# Generated by Django 3.2.5 on 2021-10-04 20:54 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("main", "0008_alter_request_parent"), ] operations = [ migrations.RemoveConstraint( model_name="catalogserviceplan", ...
31.242424
74
0.580989
ff01b7de93e7b8e385f01c2f9c15f436923d70d3
1,198
py
Python
tanit/filesystem/config.py
yassineazzouz/kraken
30d536eae2583e6fff51becbff836301058b8e69
[ "MIT" ]
1
2020-09-01T15:16:11.000Z
2020-09-01T15:16:11.000Z
tanit/filesystem/config.py
yassineazzouz/kraken
30d536eae2583e6fff51becbff836301058b8e69
[ "MIT" ]
null
null
null
tanit/filesystem/config.py
yassineazzouz/kraken
30d536eae2583e6fff51becbff836301058b8e69
[ "MIT" ]
null
null
null
import json import logging as lg import os _logger = lg.getLogger(__name__) class FileSystemsConfig(object): config_file = "filesystems.json" default_conf_dir = os.path.expanduser("/etc/tanit/conf") def __init__(self, path=None): self._filesystems = {} self.conf_dir = path or os.getenv(...
28.52381
87
0.606845
3d7be0d21a633e4aaefba89c22cb4d2334ee4e7e
25,813
py
Python
pyrsss/mag/sm_stations.py
butala/pyrsss
3f4412cdab36ecd36de72e5607791d2633c658a9
[ "MIT" ]
7
2016-12-27T08:00:54.000Z
2021-12-16T06:55:16.000Z
pyrsss/mag/sm_stations.py
butala/pyrsss
3f4412cdab36ecd36de72e5607791d2633c658a9
[ "MIT" ]
1
2017-01-31T20:36:08.000Z
2017-01-31T20:36:08.000Z
pyrsss/mag/sm_stations.py
butala/pyrsss
3f4412cdab36ecd36de72e5607791d2633c658a9
[ "MIT" ]
6
2016-04-08T16:25:14.000Z
2021-05-02T12:05:16.000Z
from csv import reader from collections import namedtuple from cStringIO import StringIO # MLAT and MLON are from IGRF 2010 STATION_CSV = """\ IAGA,GLON,GLAT,MLON,MLAT,STATION-NAME,OPERATOR-NUM,OPERATORS SPA,0.00,-90.00,19.56,-74.19,South Pole Station,1,PENGUIN B23,316.13,-88.03,20.41,-72.34,m88-316,1,BAS B21,28.41,-...
50.025194
82
0.728625
b4a1b041b1f82065670f45b047d956c15cdbd547
36,853
py
Python
synapse/storage/databases/main/deviceinbox.py
buffless-matt/synapse
dda9b7fc4d2e6ca84a1a994a7ff1943b590e71df
[ "Apache-2.0" ]
null
null
null
synapse/storage/databases/main/deviceinbox.py
buffless-matt/synapse
dda9b7fc4d2e6ca84a1a994a7ff1943b590e71df
[ "Apache-2.0" ]
1
2022-03-23T08:03:58.000Z
2022-03-23T08:03:58.000Z
synapse/storage/databases/main/deviceinbox.py
buffless-matt/synapse
dda9b7fc4d2e6ca84a1a994a7ff1943b590e71df
[ "Apache-2.0" ]
1
2022-03-31T09:03:27.000Z
2022-03-31T09:03:27.000Z
# Copyright 2016 OpenMarket Ltd # Copyright 2021 The Matrix.org Foundation C.I.C. # # 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...
39.372863
97
0.597889
e6492b66ac275ce3f870b603e41e4e0e037b7589
24,515
py
Python
src/encoded/upgrade/file.py
caseylitton/encoded
ecfb135ba84ef5cad2a71638720d782cbfc4d14a
[ "MIT" ]
null
null
null
src/encoded/upgrade/file.py
caseylitton/encoded
ecfb135ba84ef5cad2a71638720d782cbfc4d14a
[ "MIT" ]
1
2018-12-14T18:00:30.000Z
2018-12-14T18:00:30.000Z
src/encoded/upgrade/file.py
caseylitton/encoded
ecfb135ba84ef5cad2a71638720d782cbfc4d14a
[ "MIT" ]
null
null
null
from snovault import upgrade_step from pyramid.traversal import find_root from datetime import datetime, time @upgrade_step('file', '', '2') def file_0_2(value, system): # http://redmine.encodedcc.org/issues/1295 # http://redmine.encodedcc.org/issues/1307 if 'status' in value: value['status'] = va...
39.161342
109
0.572343
ca63131a835d1da99ec954b6d49b83db2b6e6e7a
4,724
py
Python
google/appengine/tools/cron_xml_parser.py
enpi/Test
5fb2055c7cfd4cc91ff97471c529b041f21abeb6
[ "Apache-2.0" ]
3
2019-01-28T03:57:20.000Z
2020-02-20T01:37:33.000Z
google/appengine/tools/cron_xml_parser.py
enpi/Test
5fb2055c7cfd4cc91ff97471c529b041f21abeb6
[ "Apache-2.0" ]
null
null
null
google/appengine/tools/cron_xml_parser.py
enpi/Test
5fb2055c7cfd4cc91ff97471c529b041f21abeb6
[ "Apache-2.0" ]
3
2019-01-18T11:33:56.000Z
2020-01-05T10:44:05.000Z
#!/usr/bin/env python # # Copyright 2007 Google 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 o...
33.267606
87
0.701524
73be989993e90d72912fc08516bce82d12deed07
3,896
py
Python
src/evaluation/evaluate.py
G-Simeone/Learning_Accident_Occurence_on_Dutch_Highways
1f3992a529fed70fd488811d68128a1e255fac5f
[ "MIT" ]
4
2018-11-09T16:18:28.000Z
2019-04-09T11:19:23.000Z
src/evaluation/evaluate.py
G-Simeone/Learning_Accident_Occurence_on_Dutch_Highways
1f3992a529fed70fd488811d68128a1e255fac5f
[ "MIT" ]
null
null
null
src/evaluation/evaluate.py
G-Simeone/Learning_Accident_Occurence_on_Dutch_Highways
1f3992a529fed70fd488811d68128a1e255fac5f
[ "MIT" ]
1
2020-05-28T18:48:17.000Z
2020-05-28T18:48:17.000Z
import os from utils.read_exp_utils import read_raw_y, read_results_for_experiment, read_empty_results, read_experiment_result_db, read_raw_y_db from utils.write_exp_utils import update_results_eval, update_raw_eval import sys import pandas as pd import numpy as np from sklearn.metrics import * import itertools from ut...
32.198347
134
0.652977
5beb2c0035542aba0b34e6e62f70b5fc1dfd22e9
26,678
py
Python
jax/interpreters/partial_eval.py
david-waterworth/jax
f6e1d01f94936c992d9e63810eae5db69c06a026
[ "ECL-2.0", "Apache-2.0" ]
2
2020-02-26T16:05:11.000Z
2021-06-05T00:36:37.000Z
jax/interpreters/partial_eval.py
david-waterworth/jax
f6e1d01f94936c992d9e63810eae5db69c06a026
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
jax/interpreters/partial_eval.py
david-waterworth/jax
f6e1d01f94936c992d9e63810eae5db69c06a026
[ "ECL-2.0", "Apache-2.0" ]
1
2020-03-03T21:29:13.000Z
2020-03-03T21:29:13.000Z
# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
40.238311
99
0.703688
a65c2015bee745f6c52b2667f26dc17e5598f3af
21,311
py
Python
keras/utils/layer_utils_test.py
mcx/keras
3613c3defc39c236fb1592c4f7ba1a9cc887343a
[ "Apache-2.0" ]
null
null
null
keras/utils/layer_utils_test.py
mcx/keras
3613c3defc39c236fb1592c4f7ba1a9cc887343a
[ "Apache-2.0" ]
null
null
null
keras/utils/layer_utils_test.py
mcx/keras
3613c3defc39c236fb1592c4f7ba1a9cc887343a
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 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...
42.367793
275
0.49932
c691947f2362cc1d99855bb223faba82c541d1da
1,989
py
Python
python/vsi/test/test_dir_util.py
NoahRJohnson/vsi_common
e19e14bc276b20b9dcfd62e3e38abfd6f3487502
[ "MIT" ]
null
null
null
python/vsi/test/test_dir_util.py
NoahRJohnson/vsi_common
e19e14bc276b20b9dcfd62e3e38abfd6f3487502
[ "MIT" ]
null
null
null
python/vsi/test/test_dir_util.py
NoahRJohnson/vsi_common
e19e14bc276b20b9dcfd62e3e38abfd6f3487502
[ "MIT" ]
null
null
null
import os import unittest from vsi.tools.dir_util import ( find_file_in_path ) from vsi.test.utils import TestCase class DirTest(TestCase): pass class FindFileInPath(DirTest): def test_path_argument(self): # Empty lists self.assertIsNone(find_file_in_path('foo.txt', '')) self.assertIsNone(find_fil...
33.15
76
0.645048
5d5f5f4e6c3ad67e2d0bd90d5ed71f2a0c8b3700
868
py
Python
read_json_url_pyspark.py
arturosolutions/earthquakes
1afda35a373b3d31d6e912db4d17d3b66e70bc9c
[ "MIT" ]
null
null
null
read_json_url_pyspark.py
arturosolutions/earthquakes
1afda35a373b3d31d6e912db4d17d3b66e70bc9c
[ "MIT" ]
null
null
null
read_json_url_pyspark.py
arturosolutions/earthquakes
1afda35a373b3d31d6e912db4d17d3b66e70bc9c
[ "MIT" ]
null
null
null
import json from urllib.request import urlopen from pyspark.shell import spark, sqlContext url = "https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_month.geojson" def load_json_data(json_url): """ :param json_url: :return: earthquakes json data """ response = urlopen(json_url) s...
24.8
83
0.642857
ced1a0f64237267c1d2a4f4c925c4f5d38bf8016
12,038
py
Python
angr/procedures/definitions/win32_mrmsupport.py
r4b3rt/angr
c133cfd4f83ffea2a1d9e064241e9459eaabc55f
[ "BSD-2-Clause" ]
null
null
null
angr/procedures/definitions/win32_mrmsupport.py
r4b3rt/angr
c133cfd4f83ffea2a1d9e064241e9459eaabc55f
[ "BSD-2-Clause" ]
null
null
null
angr/procedures/definitions/win32_mrmsupport.py
r4b3rt/angr
c133cfd4f83ffea2a1d9e064241e9459eaabc55f
[ "BSD-2-Clause" ]
null
null
null
# pylint:disable=line-too-long import logging from ...sim_type import SimTypeFunction, SimTypeShort, SimTypeInt, SimTypeLong, SimTypeLongLong, SimTypeDouble, SimTypeFloat, SimTypePointer, SimTypeChar, SimStruct, SimTypeFixedSizeArray, SimTypeBottom, SimUnion, SimTypeBool from ...calling...
171.971429
695
0.745971
13c9c188645002aa53364964f14ae72fff1a72c2
13,655
py
Python
sdk/python/pulumi_azure_native/network/v20201101/ddos_protection_plan.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/network/v20201101/ddos_protection_plan.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/network/v20201101/ddos_protection_plan.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
53.54902
3,488
0.690809
d4b42f38f2dbf3b438ec751a66430a3f5ad9d24c
3,545
py
Python
TP_04/ejercicio_6/script_1/tokenizer.py
AgustinNormand/recuperacion-de-informacion
511ff6a83a929621792ee684aa5a55bcad512c9d
[ "MIT" ]
null
null
null
TP_04/ejercicio_6/script_1/tokenizer.py
AgustinNormand/recuperacion-de-informacion
511ff6a83a929621792ee684aa5a55bcad512c9d
[ "MIT" ]
null
null
null
TP_04/ejercicio_6/script_1/tokenizer.py
AgustinNormand/recuperacion-de-informacion
511ff6a83a929621792ee684aa5a55bcad512c9d
[ "MIT" ]
null
null
null
from constants import * from entity_extractor import Entity_Extractor from normalizer import Normalizer class Tokenizer: def __init__(self): self.vocabulary = {} self.inverted_index = {} self.index = {} self.palabras_vacias = [] self.load_empty_words() self.normal...
34.754902
88
0.57433
33e56bcd81788bf507a779a7beabc0eea256f458
12,217
py
Python
px/px_ipc_map.py
walles/px
e513e51de56d581b8ea1483acebf24547caec86d
[ "MIT" ]
149
2016-03-27T20:39:37.000Z
2022-03-01T07:53:42.000Z
px/px_ipc_map.py
walles/px
e513e51de56d581b8ea1483acebf24547caec86d
[ "MIT" ]
85
2016-06-06T17:33:54.000Z
2022-02-14T06:06:58.000Z
px/px_ipc_map.py
walles/px
e513e51de56d581b8ea1483acebf24547caec86d
[ "MIT" ]
9
2016-05-05T11:22:13.000Z
2021-03-04T12:03:59.000Z
import sys if sys.version_info.major >= 3: # For mypy PEP-484 static typing validation from . import px_file # NOQA from . import px_process # NOQA from typing import Set # NOQA from typing import List # NOQA from typing import Dict # NOQA from typing import Text # NOQA from typi...
35.514535
95
0.569207
e617946da1fc64ae6a87bba9a763fabec813dc1f
3,848
py
Python
tests/test_hdf5.py
Pooppap/io
4ad8e0a4cdabf17f43c81cae0907ac4a1af8c251
[ "Apache-2.0" ]
10
2019-04-19T01:21:09.000Z
2021-11-17T11:25:52.000Z
tests/test_hdf5.py
Pooppap/io
4ad8e0a4cdabf17f43c81cae0907ac4a1af8c251
[ "Apache-2.0" ]
null
null
null
tests/test_hdf5.py
Pooppap/io
4ad8e0a4cdabf17f43c81cae0907ac4a1af8c251
[ "Apache-2.0" ]
2
2019-04-25T14:31:06.000Z
2019-06-25T03:47:34.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 applic...
34.981818
80
0.66684
79a70782d1a975f42b977419b8cecda4def2d1d3
51,613
py
Python
src/pyrad_proc/pyrad/prod/process_product.py
MeteoSwiss/pyrad
f733179075fdf3fcff475a5af8b6b71e9ac4379d
[ "BSD-3-Clause" ]
9
2021-02-22T15:34:37.000Z
2022-03-29T13:16:25.000Z
src/pyrad_proc/pyrad/prod/process_product.py
MeteoSwiss/pyrad
f733179075fdf3fcff475a5af8b6b71e9ac4379d
[ "BSD-3-Clause" ]
15
2021-02-08T10:16:41.000Z
2022-03-31T09:26:26.000Z
src/pyrad_proc/pyrad/prod/process_product.py
MeteoSwiss/pyrad
f733179075fdf3fcff475a5af8b6b71e9ac4379d
[ "BSD-3-Clause" ]
2
2021-02-08T09:44:40.000Z
2021-03-24T14:56:31.000Z
""" pyrad.prod.process_product ========================== Functions for obtaining Pyrad products from the datasets .. autosummary:: :toctree: generated/ generate_occurrence_products generate_cosmo_coord_products generate_cosmo_to_radar_products generate_sun_hits_products generate_qvp_products...
35.767845
79
0.577374
619a62179d49d58520cf48ffa95d5fff061653f7
8,109
py
Python
acapy_plugin_toolbox/schemas.py
lynnbendixsen/aries-acapy-plugin-toolbox
c19c6c26486e8acdc3814b07e620f7a291754089
[ "Apache-2.0" ]
null
null
null
acapy_plugin_toolbox/schemas.py
lynnbendixsen/aries-acapy-plugin-toolbox
c19c6c26486e8acdc3814b07e620f7a291754089
[ "Apache-2.0" ]
null
null
null
acapy_plugin_toolbox/schemas.py
lynnbendixsen/aries-acapy-plugin-toolbox
c19c6c26486e8acdc3814b07e620f7a291754089
[ "Apache-2.0" ]
null
null
null
"""Define messages for schemas admin protocols.""" # pylint: disable=invalid-name # pylint: disable=too-few-public-methods from asyncio import shield from marshmallow import fields from aries_cloudagent.messaging.base_handler import BaseHandler, BaseResponder, RequestContext from aries_cloudagent.messaging.models.b...
30.144981
94
0.647305
aa66eadcfb9e09b73c7dc70b20bc7312992b14f2
4,191
py
Python
unit3_lesson_01_understanding_modules.py
RaviTejaKomma/learn-python
c9788b958371c013e19f2af289ebb4c5e4dd04ba
[ "MIT" ]
null
null
null
unit3_lesson_01_understanding_modules.py
RaviTejaKomma/learn-python
c9788b958371c013e19f2af289ebb4c5e4dd04ba
[ "MIT" ]
null
null
null
unit3_lesson_01_understanding_modules.py
RaviTejaKomma/learn-python
c9788b958371c013e19f2af289ebb4c5e4dd04ba
[ "MIT" ]
null
null
null
__author__ = 'Kalyan' notes = ''' modules are a abstraction feature which greatly aids in building large applications. modules are defined in .py file (socket.py, random.py, csv.py ...) and usually contain a set of function, data and class definitions which provide a specific functionality. This allows for ea...
30.151079
147
0.645669
c8025d8a01fec6071f49adb91e14661c071a49e9
1,191
py
Python
nm/code/tochenDeepSEA.py
wzthu/NeuronMotif
0f7f786e4b75916039388824d04d2041747fd299
[ "MIT" ]
null
null
null
nm/code/tochenDeepSEA.py
wzthu/NeuronMotif
0f7f786e4b75916039388824d04d2041747fd299
[ "MIT" ]
null
null
null
nm/code/tochenDeepSEA.py
wzthu/NeuronMotif
0f7f786e4b75916039388824d04d2041747fd299
[ "MIT" ]
2
2021-09-13T06:59:36.000Z
2021-11-10T00:17:25.000Z
import h5py import numpy as np import sys layer = str(sys.argv[1]) pfmsf = h5py.File('layer' + str(layer)+ '/allppm.h5','r') pfms=pfmsf['allppm'][:] act = pfmsf['act'][:] conact = pfmsf['conact'][:] spnumb = pfmsf['spnumb'][:] pfmsf.close() lines=[] for i in range(int(pfms.shape[0])): pfm = pfms[i,:,] if (p...
27.068182
107
0.565911
0f965a87ebe914eb6690cea2d57593f7c32a36c3
21,109
py
Python
tests/tracer/test_span.py
ganeshkumarsv/dd-trace-py
0665507ecfd95a4c247c1d789321f9ab5004977f
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
tests/tracer/test_span.py
ganeshkumarsv/dd-trace-py
0665507ecfd95a4c247c1d789321f9ab5004977f
[ "Apache-2.0", "BSD-3-Clause" ]
9
2021-07-26T01:22:38.000Z
2022-03-21T19:20:53.000Z
tests/tracer/test_span.py
ganeshkumarsv/dd-trace-py
0665507ecfd95a4c247c1d789321f9ab5004977f
[ "Apache-2.0", "BSD-3-Clause" ]
1
2021-08-03T12:41:49.000Z
2021-08-03T12:41:49.000Z
# -*- coding: utf-8 -*- import re import sys import time from unittest.case import SkipTest import mock import pytest import six from ddtrace.constants import ANALYTICS_SAMPLE_RATE_KEY from ddtrace.constants import ENV_KEY from ddtrace.constants import SERVICE_VERSION_KEY from ddtrace.constants import SPAN_MEASURED_K...
31.180207
107
0.605761
babe227403b3e4c5e4c798bc3ff786dcdfee37eb
21,018
py
Python
src/twisted/scripts/trial.py
muelli/twisted
eacc5964187aebf5c34fa255c7e0a3700eaab15a
[ "MIT", "Unlicense" ]
null
null
null
src/twisted/scripts/trial.py
muelli/twisted
eacc5964187aebf5c34fa255c7e0a3700eaab15a
[ "MIT", "Unlicense" ]
null
null
null
src/twisted/scripts/trial.py
muelli/twisted
eacc5964187aebf5c34fa255c7e0a3700eaab15a
[ "MIT", "Unlicense" ]
null
null
null
# -*- test-case-name: twisted.trial.test.test_script -*- # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. import gc import inspect import os import pdb import random import sys import time import warnings from twisted.internet import defer from twisted.application import app from twisted.pytho...
33.57508
87
0.590161
990f6d9206d940139506ec36eee5338795b247e7
4,682
py
Python
backend/cvs.py
nhnb/postsai
6e906d9c332c7b2346abdb98f00264ced28c8e36
[ "MIT" ]
5
2016-02-19T19:51:33.000Z
2020-03-23T00:41:40.000Z
backend/cvs.py
nhnb/postsai
6e906d9c332c7b2346abdb98f00264ced28c8e36
[ "MIT" ]
37
2016-02-20T01:40:25.000Z
2018-07-03T22:22:09.000Z
backend/cvs.py
nhnb/postsai
6e906d9c332c7b2346abdb98f00264ced28c8e36
[ "MIT" ]
5
2016-02-19T19:51:37.000Z
2016-03-22T12:25:45.000Z
# The MIT License (MIT) # Copyright (c) 2016-2021 Postsai # # 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...
34.175182
116
0.607219
03d4789772bf6ace8c71d0931ed588307e190e5c
9,048
py
Python
tests/test_thread_twitter.py
berna1995/CovidDailyUpdate
b74c2b7340f1366cf510be352c05f7bca0078302
[ "MIT" ]
1
2020-05-17T17:58:06.000Z
2020-05-17T17:58:06.000Z
tests/test_thread_twitter.py
berna1995/CovidDailyUpdateBot
b74c2b7340f1366cf510be352c05f7bca0078302
[ "MIT" ]
null
null
null
tests/test_thread_twitter.py
berna1995/CovidDailyUpdateBot
b74c2b7340f1366cf510be352c05f7bca0078302
[ "MIT" ]
null
null
null
import unittest import random import string from unittest.mock import Mock from unittest.mock import create_autospec from bot.twitter import ThreadTwitter from bot.twitter import MediaType from twitter.api import CHARACTER_LIMIT class MockStatus: current_id = 0 def __init__(self, id): self.id = id ...
34.934363
77
0.643015
83ee51286bb11b3af3da07664b68ba907d707420
6,004
py
Python
form_api/models/combine_pdfs_data.py
DocSpring/formapi-python
69fe8b14f78cae57e07a888f97c0903d5f0f545c
[ "MIT" ]
2
2017-10-07T17:38:10.000Z
2017-10-10T06:14:13.000Z
form_api/models/combine_pdfs_data.py
FormAPI/formapi-python
69fe8b14f78cae57e07a888f97c0903d5f0f545c
[ "MIT" ]
null
null
null
form_api/models/combine_pdfs_data.py
FormAPI/formapi-python
69fe8b14f78cae57e07a888f97c0903d5f0f545c
[ "MIT" ]
null
null
null
# coding: utf-8 """ API v1 FormAPI is a service that helps you fill out and sign PDF templates. # noqa: E501 OpenAPI spec version: v1 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class CombinePdfsData(object): """NOTE: This class is auto ...
27.541284
124
0.589107
c47f0d9859b52311112ef7b2e4d136a421bd885c
569
py
Python
awx/main/tests/functional/test_execution_environments.py
bhyunki/awx
ce588a6af5a5c7f71a5b176ffe53eda5ebc3492c
[ "Apache-2.0" ]
2
2020-03-19T20:49:37.000Z
2020-05-04T14:36:11.000Z
awx/main/tests/functional/test_execution_environments.py
bhyunki/awx
ce588a6af5a5c7f71a5b176ffe53eda5ebc3492c
[ "Apache-2.0" ]
35
2021-03-01T06:34:26.000Z
2022-03-01T01:18:42.000Z
awx/main/tests/functional/test_execution_environments.py
bhyunki/awx
ce588a6af5a5c7f71a5b176ffe53eda5ebc3492c
[ "Apache-2.0" ]
null
null
null
import pytest from awx.main.models import ExecutionEnvironment @pytest.mark.django_db def test_execution_environment_creation(execution_environment, organization): execution_env = ExecutionEnvironment.objects.create( name='Hello Environment', image='', organization=organization, managed_by_tower=False, c...
37.933333
126
0.787346
3c7baff3932da6a158d55e7d402991802c7022a1
2,595
py
Python
leet/prefix/numMatrix.py
peterlamar/python-cp-cheatsheet
f9f854064a3c657c04fab27d0a496401bfa97da1
[ "Apache-2.0" ]
140
2020-10-21T13:23:52.000Z
2022-03-31T15:09:45.000Z
leet/prefix/numMatrix.py
stacykutyepov/python-cp-cheatsheet
a00a57e1b36433648d1cace331e15ff276cef189
[ "Apache-2.0" ]
1
2021-07-22T14:01:25.000Z
2021-07-22T14:01:25.000Z
leet/prefix/numMatrix.py
stacykutyepov/python-cp-cheatsheet
a00a57e1b36433648d1cace331e15ff276cef189
[ "Apache-2.0" ]
33
2020-10-21T14:17:02.000Z
2022-03-25T11:25:03.000Z
""" +-----+-+-------+ +--------+-----+ +-----+---------+ +-----+--------+ | | | | | | | | | | | | | | | | | | | | | | | | | | +-----+-+ | +--------+ | | | | +----...
48.055556
108
0.203083
e8caaae4d0e63caf6ebcbde83ffbb7087ee66092
850
py
Python
var/spack/repos/builtin/packages/perl-test-most/package.py
LiamBindle/spack
e90d5ad6cfff2ba3de7b537d6511adccd9d5fcf1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2,360
2017-11-06T08:47:01.000Z
2022-03-31T14:45:33.000Z
var/spack/repos/builtin/packages/perl-test-most/package.py
LiamBindle/spack
e90d5ad6cfff2ba3de7b537d6511adccd9d5fcf1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
13,838
2017-11-04T07:49:45.000Z
2022-03-31T23:38:39.000Z
var/spack/repos/builtin/packages/perl-test-most/package.py
LiamBindle/spack
e90d5ad6cfff2ba3de7b537d6511adccd9d5fcf1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
1,793
2017-11-04T07:45:50.000Z
2022-03-30T14:31:53.000Z
# 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) from spack import * class PerlTestMost(PerlPackage): """Most commonly needed test functions and features.""" ho...
38.636364
94
0.703529
ecfcbd0bc8e1979f5a433c9fb9a9dde04000e5e5
60,167
py
Python
aidants_connect_web/tests/test_models.py
betagouv/Aidants_Connect
2329d41545912460c4a43b5b41c892189fc1df11
[ "MIT" ]
16
2019-05-13T08:32:40.000Z
2022-03-22T13:40:57.000Z
aidants_connect_web/tests/test_models.py
betagouv/Aidants_Connect
2329d41545912460c4a43b5b41c892189fc1df11
[ "MIT" ]
207
2019-05-15T16:30:52.000Z
2022-03-31T15:26:25.000Z
aidants_connect_web/tests/test_models.py
betagouv/Aidants_Connect
2329d41545912460c4a43b5b41c892189fc1df11
[ "MIT" ]
12
2019-11-08T13:44:35.000Z
2022-02-14T15:38:37.000Z
from os.path import join as path_join from datetime import date, datetime, timedelta from unittest.mock import Mock import mock from django.db.utils import IntegrityError from django.test import tag, TestCase from django.utils import timezone from django.conf import settings from django_otp.plugins.otp_totp.models imp...
37.651439
88
0.654977
1e797652f0ff70a1f3c8e9b7e867c040a8a29da7
3,338
py
Python
transfers_skinkie-v1.py
bliksemlabs/rrrr
81b4afa1a5e1184a5ef31db4d6fd12f6ebf2ddb3
[ "BSD-2-Clause" ]
95
2015-01-03T18:16:19.000Z
2022-03-08T11:23:49.000Z
transfers_skinkie-v1.py
bliksemlabs/rrrr
81b4afa1a5e1184a5ef31db4d6fd12f6ebf2ddb3
[ "BSD-2-Clause" ]
55
2015-01-08T00:30:37.000Z
2019-04-03T19:13:57.000Z
transfers_skinkie-v1.py
bliksemlabs/rrrr
81b4afa1a5e1184a5ef31db4d6fd12f6ebf2ddb3
[ "BSD-2-Clause" ]
25
2015-01-03T10:13:39.000Z
2020-09-11T11:10:10.000Z
#!/usr/bin/python import math, sys from copy import copy # requires graphserver to be installed from graphserver.ext.gtfs.gtfsdb import GTFSDatabase verbose = False RADIUS = 2000 # meters OBSTRUCTION = 1.3 #factor to expand straight-line distance range_lat = RADIUS / 111111.111 if len(sys.argv) < 2 : print 'usa...
34.412371
163
0.644997
b63a9d22815b567142e121ddb848452852fd6213
19,802
py
Python
cinder/opts.py
lightsey/cinder
e03d68e42e57a63f8d0f3e177fb4287290612b24
[ "Apache-2.0" ]
1
2019-02-17T17:49:41.000Z
2019-02-17T17:49:41.000Z
cinder/opts.py
lightsey/cinder
e03d68e42e57a63f8d0f3e177fb4287290612b24
[ "Apache-2.0" ]
null
null
null
cinder/opts.py
lightsey/cinder
e03d68e42e57a63f8d0f3e177fb4287290612b24
[ "Apache-2.0" ]
3
2020-06-16T07:29:48.000Z
2020-06-21T10:22:57.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 th...
53.088472
78
0.748308
682c944735a64e69ca54c3b93d66fcc8014fbacc
2,332
py
Python
tests/unit/types/request/test_request.py
yk/jina
ab66e233e74b956390f266881ff5dc4e0110d3ff
[ "Apache-2.0" ]
null
null
null
tests/unit/types/request/test_request.py
yk/jina
ab66e233e74b956390f266881ff5dc4e0110d3ff
[ "Apache-2.0" ]
null
null
null
tests/unit/types/request/test_request.py
yk/jina
ab66e233e74b956390f266881ff5dc4e0110d3ff
[ "Apache-2.0" ]
null
null
null
import pytest from google.protobuf.json_format import MessageToDict, MessageToJson from jina.excepts import BadRequestType from jina.helper import get_random_identity from jina.proto import jina_pb2 from jina.types.request import Request from jina.types.sets.document import DocumentSet from jina.types.sets.querylang i...
25.911111
68
0.738422
d12f85facd1a89f48b19e0f3d3448a479b4b7833
23,818
py
Python
calm/dsl/builtins/models/substrate.py
darshanpyadav93/calm-dsl
0c12474a26ea5aa9c800dea7f45b51da10d85041
[ "Apache-2.0" ]
null
null
null
calm/dsl/builtins/models/substrate.py
darshanpyadav93/calm-dsl
0c12474a26ea5aa9c800dea7f45b51da10d85041
[ "Apache-2.0" ]
3
2022-03-04T11:21:29.000Z
2022-03-04T12:14:33.000Z
calm/dsl/builtins/models/substrate.py
abhijeetkaurav1st/calm-dsl
6487a896967b3fd667b9320e2ad3a397c9960497
[ "Apache-2.0" ]
null
null
null
import sys from distutils.version import LooseVersion as LV from .entity import EntityType, Entity, EntityTypeBase, EntityDict from .validator import PropertyValidator from .readiness_probe import readiness_probe from .provider_spec import provider_spec from .ahv_vm import AhvVmType, ahv_vm from .client_attrs import u...
41.136442
123
0.531279
3992d814b825eb30b83133e3e3f52fa9311b2adf
2,643
py
Python
doc/sphinxext/github_link.py
MaiRajborirug/scikit-learn
c18d015372f7041099d19c215cd4c36ffd6fe5c5
[ "BSD-3-Clause" ]
50,961
2015-01-01T06:06:31.000Z
2022-03-31T23:40:12.000Z
doc/sphinxext/github_link.py
MaiRajborirug/scikit-learn
c18d015372f7041099d19c215cd4c36ffd6fe5c5
[ "BSD-3-Clause" ]
17,065
2015-01-01T02:01:58.000Z
2022-03-31T23:48:34.000Z
doc/sphinxext/github_link.py
MaiRajborirug/scikit-learn
c18d015372f7041099d19c215cd4c36ffd6fe5c5
[ "BSD-3-Clause" ]
26,886
2015-01-01T00:59:27.000Z
2022-03-31T18:03:23.000Z
from operator import attrgetter import inspect import subprocess import os import sys from functools import partial REVISION_CMD = "git rev-parse --short HEAD" def _get_git_revision(): try: revision = subprocess.check_output(REVISION_CMD.split()).strip() except (subprocess.CalledProcessError, OSError...
31.094118
85
0.614075
631c3195d17570d4a6766ca0b9fdd42be90b55d1
6,033
py
Python
cryptotools/ECDSA/secp256k1.py
ArtoLabs/cryptotools
cdb03d4900513d057391562af9d1255f81b79a30
[ "MIT" ]
155
2018-02-16T17:12:04.000Z
2022-03-17T08:27:12.000Z
cryptotools/ECDSA/secp256k1.py
djmuratb/cryptotools
51c641c8cd6b564d7c39cb3eaaee05d62e024147
[ "MIT" ]
22
2018-07-03T18:56:22.000Z
2022-03-23T12:05:39.000Z
cryptotools/ECDSA/secp256k1.py
djmuratb/cryptotools
51c641c8cd6b564d7c39cb3eaaee05d62e024147
[ "MIT" ]
61
2018-06-01T20:28:43.000Z
2022-03-25T04:11:51.000Z
import secrets from cryptotools import message from cryptotools import ECDSA from cryptotools.number_theory_stuff import mulinv, modsqrt from cryptotools.transformations import int_to_bytes, bytes_to_int, hex_to_int, bytes_to_hex, hex_to_bytes P = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F # ...
31.421875
138
0.59158
44f738869fbccdb1d607dd8b8353db8f579ab35a
18,429
py
Python
ikbtfunctions/ik_robots.py
mdecourse/IKBT
ed62fd027ca34a59067cf30a6c3ab58c356c14fb
[ "BSD-3-Clause" ]
null
null
null
ikbtfunctions/ik_robots.py
mdecourse/IKBT
ed62fd027ca34a59067cf30a6c3ab58c356c14fb
[ "BSD-3-Clause" ]
null
null
null
ikbtfunctions/ik_robots.py
mdecourse/IKBT
ed62fd027ca34a59067cf30a6c3ab58c356c14fb
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python # # Inverse Kinematics Classes # # Copyright 2017 University of Washington # Developed by Dianmu Zhang and Blake Hannaford # BioRobotics Lab, University of Washington # Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following co...
38.797895
757
0.397471
b221c5cc1a7d8dc6c02ef68bfa344545eb96b283
6,634
py
Python
tests/core/test_relayer.py
Jacobs4/pyatv
52956adf3b79198be52cc03649f3ddeee19f9e6c
[ "MIT" ]
null
null
null
tests/core/test_relayer.py
Jacobs4/pyatv
52956adf3b79198be52cc03649f3ddeee19f9e6c
[ "MIT" ]
null
null
null
tests/core/test_relayer.py
Jacobs4/pyatv
52956adf3b79198be52cc03649f3ddeee19f9e6c
[ "MIT" ]
null
null
null
"""Unit tests for pyatv.core.relayer.""" import pytest from pyatv import exceptions from pyatv.const import Protocol from pyatv.core.relayer import Relayer @pytest.fixture def relay_base_only(): relayer = Relayer(BaseClass, [Protocol.MRP]) relayer.register(SubClass1(), Protocol.MRP) yield relayer class...
27.991561
83
0.702743
381f6b38713cc91451a23a7f06571962dce0bdb8
915
py
Python
tests/unit/test_simple.py
pyadorn/adorn
a34a9a20c1a80c7bdbee0fa641c2bd17e20e60e6
[ "Apache-2.0" ]
3
2021-12-11T03:52:57.000Z
2022-03-22T20:42:56.000Z
tests/unit/test_simple.py
pyadorn/adorn
a34a9a20c1a80c7bdbee0fa641c2bd17e20e60e6
[ "Apache-2.0" ]
12
2021-12-31T19:22:09.000Z
2022-03-21T03:49:13.000Z
tests/unit/test_simple.py
pyadorn/adorn
a34a9a20c1a80c7bdbee0fa641c2bd17e20e60e6
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Jacob Baumbach # # 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...
32.678571
74
0.769399
2e8a8659cfa29b1bb15672d44ddcb9d9044b4036
12,413
py
Python
cinderclient/tests/v1/test_auth.py
Acidburn0zzz/python-cinderclient
a58e14fc4f33e1f1eea7aa4ced3cf8976cb112c2
[ "Apache-1.1" ]
null
null
null
cinderclient/tests/v1/test_auth.py
Acidburn0zzz/python-cinderclient
a58e14fc4f33e1f1eea7aa4ced3cf8976cb112c2
[ "Apache-1.1" ]
null
null
null
cinderclient/tests/v1/test_auth.py
Acidburn0zzz/python-cinderclient
a58e14fc4f33e1f1eea7aa4ced3cf8976cb112c2
[ "Apache-1.1" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the...
36.616519
78
0.491662
90c0c95bdf40453feb4a39fc7b046c0c7f25357a
5,582
py
Python
src/admin_extra_buttons/handlers.py
saxix/django-admin-extra-buttons
7c72d0887ba71b4f7ae8bd2a1c0f8b78bf0fe6ca
[ "BSD-1-Clause" ]
null
null
null
src/admin_extra_buttons/handlers.py
saxix/django-admin-extra-buttons
7c72d0887ba71b4f7ae8bd2a1c0f8b78bf0fe6ca
[ "BSD-1-Clause" ]
null
null
null
src/admin_extra_buttons/handlers.py
saxix/django-admin-extra-buttons
7c72d0887ba71b4f7ae8bd2a1c0f8b78bf0fe6ca
[ "BSD-1-Clause" ]
null
null
null
import inspect from django.core.exceptions import PermissionDenied from django.http import HttpResponse from django.utils.functional import cached_property from .buttons import Button, ChoiceButton, LinkButton from .utils import HttpResponseRedirectToReferrer, check_permission, handle_basic_auth, labelize class Bas...
35.55414
96
0.596381
2706819b1900d5480ea950f6363b998984534291
197
py
Python
hmm/tests/utils.py
ondrejba/hmm
1e9fe47a6057d93e7c77614016a89d5d46959e97
[ "MIT" ]
null
null
null
hmm/tests/utils.py
ondrejba/hmm
1e9fe47a6057d93e7c77614016a89d5d46959e97
[ "MIT" ]
null
null
null
hmm/tests/utils.py
ondrejba/hmm
1e9fe47a6057d93e7c77614016a89d5d46959e97
[ "MIT" ]
null
null
null
def get_tensor_shape(tensor): shape = [] for s in tensor.shape: if s is None: shape.append(s) else: shape.append(s.value) return tuple(shape)
16.416667
33
0.532995
59b9b3bf50605e1e1ca2712745ccb1285a037fd9
678
py
Python
accounts/sitemaps.py
SarangWadode/medstore
07cb70661a8cba6f8dd090dfbd589bfacb7bf12a
[ "MIT" ]
2
2021-03-24T13:36:39.000Z
2022-02-10T13:51:59.000Z
accounts/sitemaps.py
SarangWadode/medstore
07cb70661a8cba6f8dd090dfbd589bfacb7bf12a
[ "MIT" ]
44
2021-01-05T01:51:38.000Z
2022-02-10T13:44:26.000Z
accounts/sitemaps.py
mukeshgurpude/medstore
498b76acbeb9727e7a61560e4016b3577c2706d2
[ "MIT" ]
1
2020-10-28T09:26:01.000Z
2020-10-28T09:26:01.000Z
""" Sitemap classes related to the account related views """ from django.contrib import sitemaps from django.urls import reverse class AccountSiteMap(sitemaps.Sitemap): """ Urls related to custom user model """ priority = .5 changeFreq = 'daily' def items(self): return ['profile', 'ap...
19.941176
52
0.632743
ea9c958abe73ce21beb124d7c402204387de7e98
193
py
Python
code/comp_racine.py
christophesaintjean/IntroProgS1_2020
99555d1e3681d88ee023592a16caecdec6f7c0b4
[ "CC0-1.0" ]
null
null
null
code/comp_racine.py
christophesaintjean/IntroProgS1_2020
99555d1e3681d88ee023592a16caecdec6f7c0b4
[ "CC0-1.0" ]
null
null
null
code/comp_racine.py
christophesaintjean/IntroProgS1_2020
99555d1e3681d88ee023592a16caecdec6f7c0b4
[ "CC0-1.0" ]
null
null
null
import math import racine x = float(input('x ? ')) if abs(math.sqrt(x) - racine.racine_dicho(x)) < 1e-6: print("Les valeurs sont les mêmes") else: print("Roger, on a un problème !!!")
21.444444
53
0.642487