hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
bb734538ec2a9233cef1f9e991b5131a0b62c0dc
10,301
py
Python
flink-ai-flow/examples/python_examples/sklearn_stream_train_batch_predict/python_codes/stream_train_batch_predict_executor.py
shanshanpt/flink-ai-extended
c9f4a980ac229188a2bc09558952f7e0085bda70
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
1
2021-06-03T05:37:21.000Z
2021-06-03T05:37:21.000Z
flink-ai-flow/examples/python_examples/sklearn_stream_train_batch_predict/python_codes/stream_train_batch_predict_executor.py
sentimentist/flink-ai-extended
689d000f2db8919fd80e0725a1609918ca4a26f4
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
flink-ai-flow/examples/python_examples/sklearn_stream_train_batch_predict/python_codes/stream_train_batch_predict_executor.py
sentimentist/flink-ai-extended
689d000f2db8919fd80e0725a1609918ca4a26f4
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
41.704453
116
0.67275
be69f5d54594307d796b3ab6d29edb9ae1e3d037
27
py
Python
test_rational/__init__.py
daniel-dinu/rational-python
917ad8ff8b319a66a676aa84227ff76770f6277b
[ "MIT" ]
null
null
null
test_rational/__init__.py
daniel-dinu/rational-python
917ad8ff8b319a66a676aa84227ff76770f6277b
[ "MIT" ]
null
null
null
test_rational/__init__.py
daniel-dinu/rational-python
917ad8ff8b319a66a676aa84227ff76770f6277b
[ "MIT" ]
null
null
null
__author__ = 'Daniel Dinu'
13.5
26
0.740741
5ddf37a58a616a620dbe66ad503c3548bd0d6ca8
259
py
Python
src/python_autocite/formatter/__init__.py
thenaterhood/python-autocite
e4930ff8240ed97733e0708af6946b1d05ca820e
[ "MIT" ]
26
2017-06-21T01:12:59.000Z
2022-02-13T03:06:35.000Z
src/python_autocite/formatter/__init__.py
nutellaweera/python-autocite
2009cc8362a7d7a2c0e28ace2d9b36a2e713109a
[ "MIT" ]
6
2020-02-07T17:18:14.000Z
2021-07-10T02:35:05.000Z
src/python_autocite/formatter/__init__.py
nutellaweera/python-autocite
2009cc8362a7d7a2c0e28ace2d9b36a2e713109a
[ "MIT" ]
8
2019-12-15T16:42:21.000Z
2021-12-19T10:27:33.000Z
class CitationFormatter(object): AUTHOR_UNKNOWN = "[[[AUTHORS]]]" PUBDATE_UNKNOWN = "[[[PUBLICATION DATE]]]" ACCESSDATE_UNKNOWN = "[[[ACCESS DATE]]]" def format(citation): raise NotImplementedError("Citation format not implemeted")
25.9
67
0.675676
8cd8dc2ab24a78fe237656a48f3720257150a62a
1,919
py
Python
wal_e/worker/s3/s3_deleter.py
paalkr/wal-e
ff6102a1d19cf0f683c7232f618dbe8d14e6e017
[ "BSD-3-Clause" ]
2,739
2015-01-05T03:57:02.000Z
2022-03-22T10:51:38.000Z
wal_e/worker/s3/s3_deleter.py
0xgpapad/wal-e
f5b3e790fe10daa098b8cbf01d836c4885dc13c7
[ "BSD-3-Clause" ]
264
2015-01-13T01:07:19.000Z
2022-02-08T00:56:14.000Z
wal_e/worker/s3/s3_deleter.py
0xgpapad/wal-e
f5b3e790fe10daa098b8cbf01d836c4885dc13c7
[ "BSD-3-Clause" ]
245
2015-01-11T15:13:42.000Z
2022-02-10T10:58:09.000Z
import csv import sys from wal_e import exception from wal_e import retries from wal_e.worker.base import _Deleter class Deleter(_Deleter): @retries.retry(retries.critical_stop_exception_processor) def _delete_batch(self, page): # Check that all keys are in the same bucket; this code is not ...
42.644444
73
0.56592
f0990c49497509a33d496692fbe2c8607d885385
1,569
py
Python
develop/mongodb.py
adamwang0705/cross_media_affect_analysis
ff156e42914775231e20f0f5e2e2026d3a06791c
[ "MIT" ]
1
2017-10-17T15:12:43.000Z
2017-10-17T15:12:43.000Z
develop/mongodb.py
adamwang0705/cross_media_affect_analysis
ff156e42914775231e20f0f5e2e2026d3a06791c
[ "MIT" ]
null
null
null
develop/mongodb.py
adamwang0705/cross_media_affect_analysis
ff156e42914775231e20f0f5e2e2026d3a06791c
[ "MIT" ]
null
null
null
""" Get connection to (local) MongoDB database """ import pymongo from pymongo import MongoClient from pymongo import errors def initialize(db_name: object, collection_name: object, host: object = 'localhost', port: object = 27017) -> object: """ Initialize connection to MongoDB database and get collection o...
29.055556
117
0.650096
9460cf356a142e5cd9d3470736459552e0124aa0
47
py
Python
comment/__init__.py
cxq1/c
52507017f676b4ebed561581ced0d4edf15cdc70
[ "MIT" ]
1
2019-03-22T05:54:24.000Z
2019-03-22T05:54:24.000Z
comment/__init__.py
cxq1/c
52507017f676b4ebed561581ced0d4edf15cdc70
[ "MIT" ]
4
2021-04-08T18:40:39.000Z
2021-06-10T17:40:34.000Z
comment/__init__.py
cxq1/c
52507017f676b4ebed561581ced0d4edf15cdc70
[ "MIT" ]
null
null
null
default_app_config='comment.apps.CommentConfig'
47
47
0.893617
4cc270efbfc1330b86113d0459c56b44aaf577b6
12,955
py
Python
mfi_customization/mfi/doctype/task.py
anuradha-88/mfi_customization
eb19ed43d0178b461f1d9914d2f7b6b55c9d030c
[ "MIT" ]
null
null
null
mfi_customization/mfi/doctype/task.py
anuradha-88/mfi_customization
eb19ed43d0178b461f1d9914d2f7b6b55c9d030c
[ "MIT" ]
null
null
null
mfi_customization/mfi/doctype/task.py
anuradha-88/mfi_customization
eb19ed43d0178b461f1d9914d2f7b6b55c9d030c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2020, bizmap technologies and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.utils.data import getdate,today from frappe.model.mapper import get_mapped_doc from frappe.permissions import add_user_p...
33.825065
210
0.689772
deea1da4661bc78f99e8c156b5b4ed453a09ebd4
873
py
Python
api/tests/python/end_points/auto_analyse/_data/xpro_names/data_xp_xul.py
sumesh-aot/namex
53e11aed5ea550b71b7b983f1b57b65db5a06766
[ "Apache-2.0" ]
4
2018-10-05T23:41:05.000Z
2019-06-19T16:17:50.000Z
api/tests/python/end_points/auto_analyse/_data/xpro_names/data_xp_xul.py
sumesh-aot/namex
53e11aed5ea550b71b7b983f1b57b65db5a06766
[ "Apache-2.0" ]
635
2018-05-31T04:12:46.000Z
2022-03-31T18:45:42.000Z
api/tests/python/end_points/auto_analyse/_data/xpro_names/data_xp_xul.py
sumesh-aot/namex
53e11aed5ea550b71b7b983f1b57b65db5a06766
[ "Apache-2.0" ]
71
2018-05-14T20:47:55.000Z
2022-03-31T23:08:30.000Z
def data_for_contains_unclassifiable_word_request_test(): return { 'name': 'MOUNTAIN VIEW FOOD BLOGGINS ULC.', 'location': 'CA', 'entity_type_cd': 'XUL', 'request_action_cd': 'NEW' } def data_for_contains_words_to_avoid_request_test(): return { 'name': 'MOUNTAIN VIE...
24.942857
57
0.600229
5c514e4b5024204e00e0404aa7f37a9cbf18df17
428
py
Python
strings/phone_num.py
ethyl2/code_challenges
3c9ccca1782f92728e60a515a7ca797f6d470e81
[ "MIT" ]
null
null
null
strings/phone_num.py
ethyl2/code_challenges
3c9ccca1782f92728e60a515a7ca797f6d470e81
[ "MIT" ]
null
null
null
strings/phone_num.py
ethyl2/code_challenges
3c9ccca1782f92728e60a515a7ca797f6d470e81
[ "MIT" ]
null
null
null
""" https://www.codewars.com/kata/525f50e3b73515a6db000b83 Given an array of 10 ints, return a string with format of a phone num. Example: create_phone_number([1, 2, 3, 4, 5, 6, 7, 8, 9, 0]) # => returns "(123) 456-7890" """ def create_phone_number(n): # return "({0}{1}{2}) {3}{4}{5}-{6}{7}{8}{9}".format(*n) ...
25.176471
81
0.577103
c81095ba1c5e0c8a6afbf3b195b63e20c913f79e
2,355
py
Python
Fooling/utilities.py
alexborio/Projects
a85ad4aab370b009de14e3696e06aad92ca4859f
[ "MIT" ]
null
null
null
Fooling/utilities.py
alexborio/Projects
a85ad4aab370b009de14e3696e06aad92ca4859f
[ "MIT" ]
null
null
null
Fooling/utilities.py
alexborio/Projects
a85ad4aab370b009de14e3696e06aad92ca4859f
[ "MIT" ]
null
null
null
import tensorflow as tf import numpy as np from tensorflow.examples.tutorials.mnist import input_data from layer import DenseLayer, ConvLayer, MaxPoolingLayer import matplotlib.pyplot as plt import os class _Hook(tf.train.SessionRunHook): def __init__(self, params_dict, is_training=False): self.params_dic...
34.130435
98
0.670064
6030b1bd8e41fe46c0ec553bc0deb40bc23224d4
24,350
py
Python
src/common/yolo/utils/general.py
wenksi/pren-robo-cube-ipcv
e2cf655a7e33aa63dae6e2b2a91abaa11d587f8f
[ "MIT" ]
null
null
null
src/common/yolo/utils/general.py
wenksi/pren-robo-cube-ipcv
e2cf655a7e33aa63dae6e2b2a91abaa11d587f8f
[ "MIT" ]
null
null
null
src/common/yolo/utils/general.py
wenksi/pren-robo-cube-ipcv
e2cf655a7e33aa63dae6e2b2a91abaa11d587f8f
[ "MIT" ]
null
null
null
# YOLOv5 general utils import glob import logging import math import os import platform import re import subprocess import time from itertools import repeat from multiprocessing.pool import ThreadPool from pathlib import Path import cv2 import numpy as np import pkg_resources as pkg import torch import torchvision ...
41.766724
120
0.578686
aa1fbe2e4a6dc448ba0bf5b7a8eba868777e3c3c
1,100
py
Python
0066 Plus One.py
AtharvRedij/leetcode-solutions
7194d202302989d53c241b12c9befb06923b1510
[ "MIT" ]
null
null
null
0066 Plus One.py
AtharvRedij/leetcode-solutions
7194d202302989d53c241b12c9befb06923b1510
[ "MIT" ]
null
null
null
0066 Plus One.py
AtharvRedij/leetcode-solutions
7194d202302989d53c241b12c9befb06923b1510
[ "MIT" ]
1
2021-03-06T06:15:48.000Z
2021-03-06T06:15:48.000Z
''' URL: https://leetcode.com/problems/plus-one/ Difficulty: Easy Description: Plus One Given a non-empty array of decimal digits representing a non-negative integer, increment one to the integer. The digits are stored such that the most significant digit is at the head of the list, and each element in the array co...
19.298246
141
0.631818
1c04e272e2cad32ccf0aaabba47ce2e61da69124
846
py
Python
stft_core/utils/imports.py
lingyunwu14/STFT
1af5d26c1d27388ef8b143b1de5713d5da8eb787
[ "BSD-2-Clause" ]
22
2021-07-09T12:42:33.000Z
2022-03-31T08:36:39.000Z
stft_core/utils/imports.py
lingyunwu14/STFT
1af5d26c1d27388ef8b143b1de5713d5da8eb787
[ "BSD-2-Clause" ]
1
2021-10-05T06:19:13.000Z
2021-11-12T09:12:48.000Z
stft_core/utils/imports.py
lingyunwu14/STFT
1af5d26c1d27388ef8b143b1de5713d5da8eb787
[ "BSD-2-Clause" ]
3
2021-07-09T12:42:55.000Z
2022-03-31T08:36:40.000Z
# Copyright (c) SenseTime Research and its affiliates. All Rights Reserved. import torch if torch._six.PY3: import importlib import importlib.util import sys # from https://stackoverflow.com/questions/67631/how-to-import-a-module-given-the-full-path?utm_medium=organic&utm_source=google_rich_qa&utm_cam...
36.782609
168
0.735225
2bcaee12a1c430e910092c19013b0a0a3e20a884
107
py
Python
src/observer/Observer.py
fuqinshen/Python--
aaa5230354258e1bba761e483c8b9fb6be00402a
[ "MIT" ]
31
2018-10-19T15:28:36.000Z
2022-02-14T03:01:25.000Z
src/observer/Observer.py
fuqinshen/Python--
aaa5230354258e1bba761e483c8b9fb6be00402a
[ "MIT" ]
null
null
null
src/observer/Observer.py
fuqinshen/Python--
aaa5230354258e1bba761e483c8b9fb6be00402a
[ "MIT" ]
10
2019-01-10T04:02:12.000Z
2021-11-17T01:52:15.000Z
class Observer(object): @classmethod def update(cls, generator): raise NotImplementedError
21.4
33
0.700935
501408a1244c4eebd2f395045ba64576c33da9ff
798
py
Python
taso-ae/onnx_test.py
hgl71964/PET
4cedb25c5dce0c49eebb693125235fc4ad1e26f8
[ "Apache-2.0" ]
69
2021-06-01T03:19:12.000Z
2022-03-26T00:14:20.000Z
taso-ae/onnx_test.py
hgl71964/PET
4cedb25c5dce0c49eebb693125235fc4ad1e26f8
[ "Apache-2.0" ]
null
null
null
taso-ae/onnx_test.py
hgl71964/PET
4cedb25c5dce0c49eebb693125235fc4ad1e26f8
[ "Apache-2.0" ]
4
2021-07-10T07:21:11.000Z
2022-02-06T18:56:56.000Z
import taso import onnx import argparse parser = argparse.ArgumentParser() parser.add_argument("-f", "--file", help="Path to input ONNX file", required=True) args = parser.parse_args() #graph = taso.load_onnx("/home/ubuntu/taso/onnx/squeezenet1.1.onnx") #graph = taso.load_onnx("/home/ubuntu/taso/onnx/bertsquad10.onn...
36.272727
82
0.745614
80e62f604e2e8ea3c2ec13cf55291c7f5566c597
10,969
py
Python
tuframework/run/run_training_DP.py
Magnety/tuFramework_win
4c49e1fdb292aaf1945c81d5d9bc57db0eea42b3
[ "Apache-2.0" ]
null
null
null
tuframework/run/run_training_DP.py
Magnety/tuFramework_win
4c49e1fdb292aaf1945c81d5d9bc57db0eea42b3
[ "Apache-2.0" ]
null
null
null
tuframework/run/run_training_DP.py
Magnety/tuFramework_win
4c49e1fdb292aaf1945c81d5d9bc57db0eea42b3
[ "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...
59.939891
135
0.592944
c9182b716c55284ac11d6f83c3d2d9503b5f914d
11,503
py
Python
pdm/utils.py
orions-stardom/pdm
005e6ed1549330479c12d9152fab14c5f04e22cd
[ "MIT" ]
null
null
null
pdm/utils.py
orions-stardom/pdm
005e6ed1549330479c12d9152fab14c5f04e22cd
[ "MIT" ]
null
null
null
pdm/utils.py
orions-stardom/pdm
005e6ed1549330479c12d9152fab14c5f04e22cd
[ "MIT" ]
null
null
null
""" Utility functions """ import atexit import functools import importlib import json import os import shutil import subprocess import tempfile import urllib.parse as parse from contextlib import contextmanager from pathlib import Path from typing import Any, Dict, List, Optional, Tuple, Union from distlib.wheel impor...
29.646907
87
0.624533
956c4a43422ddfce6a5da22e216722e524db1c2c
1,482
py
Python
getheadshot.py
pierce403/nweb-agent
912803883a221eb45abc5a2c78366f52876fa8a9
[ "Apache-2.0" ]
null
null
null
getheadshot.py
pierce403/nweb-agent
912803883a221eb45abc5a2c78366f52876fa8a9
[ "Apache-2.0" ]
null
null
null
getheadshot.py
pierce403/nweb-agent
912803883a221eb45abc5a2c78366f52876fa8a9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 import subprocess import os # wkhtmltoimage --width 50 --quality 80 -f jpg <target> out.jpg # vncsnapshot -quality 50 <target> out.jpg def getheadshot(ip,rand, service): # display hack, wkhtmltoimage doesn't like to run headless # this requires you to run a vncserver or something # os.envir...
32.933333
233
0.614035
705f36eef62448a2d8075b038a84bccbb151fd16
8,085
py
Python
sim.py
Solomoriah/level1sim
f809c51a8caf305c027108a96efb9d655f651a91
[ "MIT" ]
null
null
null
sim.py
Solomoriah/level1sim
f809c51a8caf305c027108a96efb9d655f651a91
[ "MIT" ]
null
null
null
sim.py
Solomoriah/level1sim
f809c51a8caf305c027108a96efb9d655f651a91
[ "MIT" ]
null
null
null
#!/usr/bin/python # sim.py -- Very simple simulator for first level BFRPG combat, used to test # out the effects of house rules. # # Copyright 2019 Chris Gonnerman # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the ...
28.772242
99
0.586518
4cebb7119d13df73a333664919a4a9d0b65fa023
2,641
py
Python
41.first-missing-positive.py
windard/leeeeee
0107a5f95746592ca4fe78d2b5875cf65b1910e7
[ "MIT" ]
null
null
null
41.first-missing-positive.py
windard/leeeeee
0107a5f95746592ca4fe78d2b5875cf65b1910e7
[ "MIT" ]
null
null
null
41.first-missing-positive.py
windard/leeeeee
0107a5f95746592ca4fe78d2b5875cf65b1910e7
[ "MIT" ]
null
null
null
# coding=utf-8 # # @lc app=leetcode id=41 lang=python # # [41] First Missing Positive # # https://leetcode.com/problems/first-missing-positive/description/ # # algorithms # Hard (29.46%) # Likes: 1957 # Dislikes: 625 # Total Accepted: 234.9K # Total Submissions: 795.2K # Testcase Example: '[1,2,0]' # # Given an ...
20.960317
78
0.497917
aad34887d8b0fb2324debacf4900b8e30f84f779
13,790
py
Python
bclaw_runner/tests/test_repo.py
jack-e-tabaska/BayerCLAW
7e94777f4a5b155a3beead625c460117ffcb56af
[ "BSD-3-Clause" ]
7
2021-06-25T18:14:08.000Z
2022-03-20T18:27:29.000Z
bclaw_runner/tests/test_repo.py
jack-e-tabaska/BayerCLAW
7e94777f4a5b155a3beead625c460117ffcb56af
[ "BSD-3-Clause" ]
1
2022-03-30T20:15:44.000Z
2022-03-30T20:15:44.000Z
bclaw_runner/tests/test_repo.py
jack-e-tabaska/BayerCLAW
7e94777f4a5b155a3beead625c460117ffcb56af
[ "BSD-3-Clause" ]
3
2021-06-07T18:26:24.000Z
2021-12-02T17:59:04.000Z
from contextlib import closing import jmespath import json import os import boto3 import moto import pytest from ..src.runner.repo import _is_glob, _s3_file_exists, _expand_s3_glob, _inputerator, _download_this, _outputerator, \ _upload_that, Repository TEST_BUCKET = "test-bucket" JOB_DATA = {"job": "data"} FILE...
34.823232
122
0.688905
d5c8dd59ed765641b96b42829fdf866676ae63b2
1,170
py
Python
plugins/misp/komand_misp/actions/add_attachment/action.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
46
2019-06-05T20:47:58.000Z
2022-03-29T10:18:01.000Z
plugins/misp/komand_misp/actions/add_attachment/action.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
386
2019-06-07T20:20:39.000Z
2022-03-30T17:35:01.000Z
plugins/misp/komand_misp/actions/add_attachment/action.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
43
2019-07-09T14:13:58.000Z
2022-03-28T12:04:46.000Z
import komand from .schema import AddAttachmentInput, AddAttachmentOutput # Custom imports below import shutil import tempfile import base64 class AddAttachment(komand.Action): def __init__(self): super(self.__class__, self).__init__( name="add_attachment", description="Add attach...
28.536585
89
0.626496
de0825bfc4255fe02b69595ea4429b75091b6cb8
23
py
Python
__init__.py
cove9988/git-talk
9f549d8565948a150834bcaa704b55ae15c094c1
[ "MIT" ]
5
2020-04-06T11:00:27.000Z
2020-09-30T15:16:56.000Z
__init__.py
ggdrg/git-talk
89ed00caa6a426ea9d5fa84cbef588d07aebc1f0
[ "MIT" ]
3
2020-09-26T02:53:30.000Z
2020-10-09T01:46:37.000Z
__init__.py
ggdrg/git-talk
89ed00caa6a426ea9d5fa84cbef588d07aebc1f0
[ "MIT" ]
1
2020-09-25T23:41:54.000Z
2020-09-25T23:41:54.000Z
__version__ = '1.6.5'
11.5
22
0.608696
6b73397140a04b27ae38d74a8e1615d4aa193b33
1,069
py
Python
venv/lib/python3.6/site-packages/pelican/tests/test_rstdirectives.py
Patrisha-de-Boon/CMPUT404-Lab5
cc235c56d707a96345e1093c8f346eee78e3644d
[ "Apache-2.0" ]
null
null
null
venv/lib/python3.6/site-packages/pelican/tests/test_rstdirectives.py
Patrisha-de-Boon/CMPUT404-Lab5
cc235c56d707a96345e1093c8f346eee78e3644d
[ "Apache-2.0" ]
null
null
null
venv/lib/python3.6/site-packages/pelican/tests/test_rstdirectives.py
Patrisha-de-Boon/CMPUT404-Lab5
cc235c56d707a96345e1093c8f346eee78e3644d
[ "Apache-2.0" ]
null
null
null
from unittest.mock import Mock from pelican.tests.support import unittest class Test_abbr_role(unittest.TestCase): def call_it(self, text): from pelican.rstdirectives import abbr_role rawtext = text lineno = 42 inliner = Mock(name='inliner') nodes, system_messages = abbr_r...
33.40625
63
0.63985
e271921fa859350679be5ed5d3b8ca62da266349
3,748
py
Python
contrib/seeds/makeseeds.py
wargo32/DOTCoin
24e9c5e5a547a6b782a8b4fe1fdb51f6a2a7e6fa
[ "MIT" ]
null
null
null
contrib/seeds/makeseeds.py
wargo32/DOTCoin
24e9c5e5a547a6b782a8b4fe1fdb51f6a2a7e6fa
[ "MIT" ]
null
null
null
contrib/seeds/makeseeds.py
wargo32/DOTCoin
24e9c5e5a547a6b782a8b4fe1fdb51f6a2a7e6fa
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # Generate seeds.txt from Pieter's DNS seeder # NSEEDS=512 MAX_SEEDS_PER_ASN=2 MIN_BLOCKS = 337600 # These are hosts that have been observed to be behaving strangely (e.g. # aggressively connecting to every node). SUSPICIOUS_HOSTS = set([ "130.211.129.106", "178.63.107.226", "83.81.1...
31.495798
186
0.580843
8e1f0c83aa9d0c9f4c0b27c6d8a6a1350fbcfaf6
666
py
Python
aiida_phonopy/utils/resources.py
bastonero/aiida-phonopy
0202372dc3e877c07d1990b9669468dc200e5e0c
[ "MIT" ]
1
2018-06-22T21:23:55.000Z
2018-06-22T21:23:55.000Z
aiida_phonopy/utils/resources.py
bastonero/aiida-phonopy
0202372dc3e877c07d1990b9669468dc200e5e0c
[ "MIT" ]
4
2018-02-09T02:23:37.000Z
2018-05-22T13:37:54.000Z
aiida_phonopy/utils/resources.py
bastonero/aiida-phonopy
0202372dc3e877c07d1990b9669468dc200e5e0c
[ "MIT" ]
4
2018-02-08T02:54:47.000Z
2018-07-04T08:23:38.000Z
# -*- coding: utf-8 -*- """Utilities for CalcJob resources.""" def get_default_options(max_num_machines=1, max_wallclock_seconds=300, with_mpi=False): """Return an instance of the options dictionary with the minimally required parameters for a `CalcJob`. :param max_num_machines: set the number of nodes, defa...
39.176471
107
0.717718
522b02b7dd4ce6c18e49eaf00929454e9b9ac5b8
1,939
py
Python
Configuration/Theme.py
olmedoluis/pix
872fc75a3cef0d8cb152b1565a831874b9fd3fb5
[ "MIT" ]
null
null
null
Configuration/Theme.py
olmedoluis/pix
872fc75a3cef0d8cb152b1565a831874b9fd3fb5
[ "MIT" ]
null
null
null
Configuration/Theme.py
olmedoluis/pix
872fc75a3cef0d8cb152b1565a831874b9fd3fb5
[ "MIT" ]
null
null
null
ANSI = "\u001b[" CODE = f"{ANSI}38;5;" THEME = { "th_added": f"{CODE}48;1m", "th_conflicted": f"{CODE}209;1m", "th_deleted": f"{CODE}203;1m", "th_dim": f"{ANSI}2m", "th_error": f"{CODE}9;1m", "th_keyword": f"{CODE}171;1m", "th_modified": f"{CODE}221;1m", "th_normal": f"{CODE}15;1m", ...
27.309859
59
0.574007
387e8826576626e1918e23f03e15e24ae0e7e1e4
1,627
py
Python
src/yafs/__init__.py
diegopso/YAFS
5e9d22bcea836cb3c8caef1d3f721f889536a54e
[ "MIT" ]
1
2020-03-12T13:16:09.000Z
2020-03-12T13:16:09.000Z
src/yafs/__init__.py
mikesneider/YAFS
1b805cb0dc5ceb438ab335c347750e1cb1cdd34a
[ "MIT" ]
null
null
null
src/yafs/__init__.py
mikesneider/YAFS
1b805cb0dc5ceb438ab335c347750e1cb1cdd34a
[ "MIT" ]
null
null
null
""" The ``yafs`` module is the main component who perform the simulation. The following tables list all of the available components in this module. {toc} """ from pkgutil import extend_path from yafs.core import Sim from yafs.placement import Placement,ClusterPlacement from yafs.selection import Selection,OneRandom...
29.581818
87
0.712354
f2913634af5aaa1f88bbf9351e34263eeff6e79a
727
py
Python
LeetcodeAlgorithms/055. Jump Game/jump-game.py
Fenghuapiao/PyLeetcode
d804a62643fe935eb61808196a2c093ea9583654
[ "MIT" ]
3
2019-08-20T06:54:38.000Z
2022-01-07T12:56:46.000Z
LeetcodeAlgorithms/055. Jump Game/jump-game.py
yhangf/PyLeetcode
d804a62643fe935eb61808196a2c093ea9583654
[ "MIT" ]
null
null
null
LeetcodeAlgorithms/055. Jump Game/jump-game.py
yhangf/PyLeetcode
d804a62643fe935eb61808196a2c093ea9583654
[ "MIT" ]
2
2018-11-01T16:10:34.000Z
2020-06-02T03:24:43.000Z
class Solution(object): def canJump(self, nums): """ :type nums: List[int] :rtype: int """ pos = 0 bound = len(nums) while pos < len(nums) - 1: dis = nums[pos] if dis == 0: return False farthest =...
33.045455
65
0.416781
2c9845b16fcdbb10780ef664170002fe5463a85e
3,633
py
Python
main.py
jiharal/multi_camera
006c3afed64302bda067ad19080173fee5c11206
[ "MIT" ]
null
null
null
main.py
jiharal/multi_camera
006c3afed64302bda067ad19080173fee5c11206
[ "MIT" ]
null
null
null
main.py
jiharal/multi_camera
006c3afed64302bda067ad19080173fee5c11206
[ "MIT" ]
null
null
null
from threading import Thread from multicamera import MultiCapture, FramesThreadBody, NormalizerCLAHE import time, sys, queue, cv2 import numpy as np def check_pressed_keys(key): if key == 32: # Pause while True: key = cv2.waitKey(0) if key == 27 or key == 32 or key == 13: # ente...
29.536585
98
0.566199
b6b964cb72d8dc9de805702c25a4a5cf51057d01
10,926
py
Python
m3tl/predefined_problems/ner_data.py
vishalbelsare/bert-multitask-learning
688c2bab1dcbcd8ab6c795c116d252a19b66b793
[ "Apache-2.0" ]
456
2018-12-11T09:43:10.000Z
2021-11-14T17:33:21.000Z
m3tl/predefined_problems/ner_data.py
vishalbelsare/bert-multitask-learning
688c2bab1dcbcd8ab6c795c116d252a19b66b793
[ "Apache-2.0" ]
57
2018-12-24T05:59:53.000Z
2021-11-16T05:58:52.000Z
m3tl/predefined_problems/ner_data.py
vishalbelsare/bert-multitask-learning
688c2bab1dcbcd8ab6c795c116d252a19b66b793
[ "Apache-2.0" ]
123
2018-12-25T03:41:03.000Z
2021-11-12T18:00:53.000Z
# AUTOGENERATED! DO NOT EDIT! File to edit: source_nbs/09_predefined_problems_ner.ipynb (unless otherwise specified). __all__ = ['gold_horse_ent_type_process_fn', 'chinese_literature_ent_type_process_fn', 'read_ner_data', 'get_weibo_ner_fn', 'gold_horse_segment_process_fn', 'get_weibo_cws_fn', 'read_bosonnl...
30.777465
118
0.528739
79269e8cdd6f3cc7473709460bfe901f53d26d14
4,686
py
Python
contrib/python-sdk/openpaisdk/io_utils.py
vdedyukhin/pai
0b63e1590f63b9de2f7038900664af4622d22354
[ "MIT" ]
2
2018-07-16T03:40:31.000Z
2018-11-15T02:45:59.000Z
contrib/python-sdk/openpaisdk/io_utils.py
ydye/patch-for-openpai-build
8a004492326db398ddc7b006f67f8997c0b15801
[ "MIT" ]
139
2019-07-05T06:22:28.000Z
2020-07-07T06:33:57.000Z
contrib/python-sdk/openpaisdk/io_utils.py
ydye/patch-for-openpai-build
8a004492326db398ddc7b006f67f8997c0b15801
[ "MIT" ]
null
null
null
import os import errno import shutil from webbrowser import open_new_tab from contextlib import contextmanager import json from openpaisdk import __logger__, __local_default_file__ from urllib.request import urlopen from urllib.parse import urlparse, urlsplit from urllib.request import urlretrieve import cgi __yaml_e...
29.847134
112
0.644473
4633e0fbd06a016ff934d0e8d1e0ad2875a10f04
1,294
py
Python
dashboard/dashboard/common/bot_configurations.py
bopopescu/chromium72-third-party-catapult
774e1355b871e13bb858147a136e9cb476f55030
[ "BSD-3-Clause" ]
1
2019-01-04T10:08:58.000Z
2019-01-04T10:08:58.000Z
dashboard/dashboard/common/bot_configurations.py
kind-john/catapult
29635376119833f172a58a48a3282d353ce55d2b
[ "BSD-3-Clause" ]
null
null
null
dashboard/dashboard/common/bot_configurations.py
kind-john/catapult
29635376119833f172a58a48a3282d353ce55d2b
[ "BSD-3-Clause" ]
1
2019-04-21T23:48:15.000Z
2019-04-21T23:48:15.000Z
# Copyright 2018 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import string from google.appengine.ext import ndb from dashboard.common import namespaced_stored_object BOT_CONFIGURATIONS_KEY = 'bot_configurations' ...
29.409091
75
0.757342
13e30ce01654129e27047def0c3f660c1403563a
5,414
py
Python
tests/commands/test_teams.py
Teja-Nagoori/platformio-core
e0e97a36297852128016b2ba8360d77f64b276db
[ "Apache-2.0" ]
1
2020-06-09T05:03:45.000Z
2020-06-09T05:03:45.000Z
tests/commands/test_teams.py
Teja7048/platformio-core
e0e97a36297852128016b2ba8360d77f64b276db
[ "Apache-2.0" ]
null
null
null
tests/commands/test_teams.py
Teja7048/platformio-core
e0e97a36297852128016b2ba8360d77f64b276db
[ "Apache-2.0" ]
1
2020-06-05T18:50:48.000Z
2020-06-05T18:50:48.000Z
# Copyright (c) 2014-present PlatformIO <contact@platformio.org> # # 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...
34.050314
104
0.561507
48e1c17d55fdc70de9b3b9ba649c2ffc96f82ebc
17,431
py
Python
scripts/releaser/release.py
aag09/azurecli
30c98a75c36c02a657f1753ff5c48502dc7f7933
[ "MIT" ]
null
null
null
scripts/releaser/release.py
aag09/azurecli
30c98a75c36c02a657f1753ff5c48502dc7f7933
[ "MIT" ]
null
null
null
scripts/releaser/release.py
aag09/azurecli
30c98a75c36c02a657f1753ff5c48502dc7f7933
[ "MIT" ]
1
2017-12-28T04:51:44.000Z
2017-12-28T04:51:44.000Z
#!/usr/bin/env python # -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # ----------------------------------------------...
46.731903
218
0.674373
697622be9db126fbf5d638b17dadece2f92b3638
23,758
py
Python
tests/test_objects.py
AvRajath/infoblox-client
357317e00db0f95e50afff4493fa7ff67f2bfcb5
[ "Apache-2.0" ]
null
null
null
tests/test_objects.py
AvRajath/infoblox-client
357317e00db0f95e50afff4493fa7ff67f2bfcb5
[ "Apache-2.0" ]
null
null
null
tests/test_objects.py
AvRajath/infoblox-client
357317e00db0f95e50afff4493fa7ff67f2bfcb5
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 OpenStack LLC. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
43.196364
87
0.56743
9319e7de7a61f6e5843bb1f421ed06d0a08e4869
34,065
py
Python
tools/pythonpoint/pythonpoint.py
sbluen/reportlab
98758940eeae30db80bbc9c555e42b8c89b86be8
[ "BSD-3-Clause" ]
8
2018-11-01T10:40:18.000Z
2021-12-16T03:20:48.000Z
tools/pythonpoint/pythonpoint.py
sbluen/reportlab
98758940eeae30db80bbc9c555e42b8c89b86be8
[ "BSD-3-Clause" ]
2
2015-03-16T18:32:58.000Z
2019-03-20T07:17:04.000Z
tools/pythonpoint/pythonpoint.py
sbluen/reportlab
98758940eeae30db80bbc9c555e42b8c89b86be8
[ "BSD-3-Clause" ]
26
2015-03-16T18:27:04.000Z
2022-03-25T10:08:33.000Z
#!/usr/bin/env python #Copyright ReportLab Europe Ltd. 2000-2012 #see license.txt for license details """ This is PythonPoint! The idea is a simple markup languages for describing presentation slides, and other documents which run page by page. I expect most of it will be reusable in other page layout stuff. Look at...
30.28
172
0.582122
9671be561a1455cf16f32621b5af0192d7bdc626
5,065
py
Python
compiler/test_add.py
SandraKersevan/BioProc
be267ff78a6d2aca98950e58534962437c831260
[ "CC-BY-4.0" ]
null
null
null
compiler/test_add.py
SandraKersevan/BioProc
be267ff78a6d2aca98950e58534962437c831260
[ "CC-BY-4.0" ]
1
2020-12-15T14:35:13.000Z
2020-12-15T14:35:13.000Z
compiler/test_add.py
SandraKersevan/BioProc
be267ff78a6d2aca98950e58534962437c831260
[ "CC-BY-4.0" ]
1
2021-01-09T20:36:03.000Z
2021-01-09T20:36:03.000Z
from bioproc.hill_functions import * def model(Y, T, params): a0, not_a0, q0, not_q0,a1, not_a1, q1, not_q1,a2, not_a2, q2, not_q2,a3, not_a3, q3, not_q3,i1, i2, i3, i4, i5, i6, i7, i8,A,B,C,=Y alpha1, alpha2, alpha3, alpha4, delta1, delta2, Kd, n, deltaE, KM,alpha_a, delta_a, Kd_a, n_a,KD_cond,=params clk = get_clo...
77.923077
227
0.640079
26c09961d2bae31a5e0630fbef90058f14b00e82
885
py
Python
11-iface-abc/tombola_runner.py
matteoshen/example-code
b54c22a1b8cee3fc53d1473cb38ca46eb179b4c3
[ "MIT" ]
5,651
2015-01-06T21:58:46.000Z
2022-03-31T13:39:07.000Z
11-iface-abc/tombola_runner.py
matteoshen/example-code
b54c22a1b8cee3fc53d1473cb38ca46eb179b4c3
[ "MIT" ]
42
2016-12-11T19:17:11.000Z
2021-11-23T19:41:16.000Z
11-iface-abc/tombola_runner.py
matteoshen/example-code
b54c22a1b8cee3fc53d1473cb38ca46eb179b4c3
[ "MIT" ]
2,394
2015-01-18T10:57:38.000Z
2022-03-31T11:41:12.000Z
# BEGIN TOMBOLA_RUNNER import doctest from tombola import Tombola # modules to test import bingo, lotto, tombolist, drum # <1> TEST_FILE = 'tombola_tests.rst' TEST_MSG = '{0:16} {1.attempted:2} tests, {1.failed:2} failed - {2}' def main(argv): verbose = '-v' in argv real_subclasses = Tombola.__subclasses_...
23.918919
68
0.647458
bfa19869db8292b1a1a1deba103dc63f902c1727
24,112
py
Python
RequestsGeneration/generateMediSynDataset.py
eman-ramadan/deepcache_netai2018
b13474dc677f4b13095498baa7b8be05f9c2b3d0
[ "BSD-3-Clause" ]
2
2020-10-18T19:56:14.000Z
2021-01-08T09:28:49.000Z
RequestsGeneration/generateMediSynDataset.py
eman-ramadan/deepcache_netai2018
b13474dc677f4b13095498baa7b8be05f9c2b3d0
[ "BSD-3-Clause" ]
null
null
null
RequestsGeneration/generateMediSynDataset.py
eman-ramadan/deepcache_netai2018
b13474dc677f4b13095498baa7b8be05f9c2b3d0
[ "BSD-3-Clause" ]
1
2020-11-05T12:20:32.000Z
2020-11-05T12:20:32.000Z
""" DeepCache DeepCache is distributed under the following BSD 3-Clause License: Copyright(c) 2019 University of Minensota - Twin Cities Authors: Arvind Narayanan, Saurabh Verma, Eman Ramadan, Pariya Babaie, and Zhi-Li Zhang All rights reserved. Redi...
43.21147
121
0.623797
6e5b43b4277df4f548ca85c5df9163fdb9438cf2
1,761
py
Python
src/wgm/newhost.py
allhailthetail/wgm
6d8fbc84deaf3feeda22d6c5c58a0dc3d40e323b
[ "MIT" ]
null
null
null
src/wgm/newhost.py
allhailthetail/wgm
6d8fbc84deaf3feeda22d6c5c58a0dc3d40e323b
[ "MIT" ]
null
null
null
src/wgm/newhost.py
allhailthetail/wgm
6d8fbc84deaf3feeda22d6c5c58a0dc3d40e323b
[ "MIT" ]
null
null
null
import wgkey import os def newhost(hostname, ip_cidr, listenport): ''' Responsible for creating a new "host" interface, writing the interface to /etc/wireguard/.conf and backing up a copy to /etc/wireguard/hosts/.conf.bak ''' # replace default values if passed a None type: if hostname == ...
44.025
124
0.522998
3fc0a3c0da154fb343f6eda1d37bc6ce805f4c99
362
py
Python
lab12/IRtest1.py
chrijack/csap-rpi
afc8bc8b826285682855d044d54a87b7ab8ab2e3
[ "Unlicense" ]
null
null
null
lab12/IRtest1.py
chrijack/csap-rpi
afc8bc8b826285682855d044d54a87b7ab8ab2e3
[ "Unlicense" ]
null
null
null
lab12/IRtest1.py
chrijack/csap-rpi
afc8bc8b826285682855d044d54a87b7ab8ab2e3
[ "Unlicense" ]
null
null
null
""" $ If KEY_1 is pressed,this script will be executed,LED1 will turn on(or off) $ LED1 connect to GPIO5(BCM_GPIO 24) """ import RPi.GPIO as GPIO PIN = 24 GPIO.setmode(GPIO.BCM) GPIO.setwarnings(False) GPIO.setup(PIN, GPIO.IN) GPIO.setup(PIN, GPIO.OUT) if GPIO.input(PIN) == 0: GPIO.output(PIN, GPIO.H...
20.111111
81
0.679558
dc89874534623185904c22303858b5a30fe3155b
1,425
py
Python
Python3/0558-Logical-Or-of-Two-Binary-Grids-Represented-as-Quad-Trees/soln.py
wyaadarsh/LeetCode-Solutions
3719f5cb059eefd66b83eb8ae990652f4b7fd124
[ "MIT" ]
5
2020-07-24T17:48:59.000Z
2020-12-21T05:56:00.000Z
Python3/0558-Logical-Or-of-Two-Binary-Grids-Represented-as-Quad-Trees/soln.py
zhangyaqi1989/LeetCode-Solutions
2655a1ffc8678ad1de6c24295071308a18c5dc6e
[ "MIT" ]
null
null
null
Python3/0558-Logical-Or-of-Two-Binary-Grids-Represented-as-Quad-Trees/soln.py
zhangyaqi1989/LeetCode-Solutions
2655a1ffc8678ad1de6c24295071308a18c5dc6e
[ "MIT" ]
2
2020-07-24T17:49:01.000Z
2020-08-31T19:57:35.000Z
""" # Definition for a QuadTree node. class Node: def __init__(self, val, isLeaf, topLeft, topRight, bottomLeft, bottomRight): self.val = val self.isLeaf = isLeaf self.topLeft = topLeft self.topRight = topRight self.bottomLeft = bottomLeft self.bottomRight = bottomRig...
40.714286
86
0.625263
27614ce2996396a9c7b320562e9797e935f67056
761
py
Python
src/LDTPLibrary/utils/events/scope_event.py
wywincl/LDTPLibrary
2efe912216fddccb63aae15d58adce9334dd89bf
[ "ECL-2.0", "Apache-2.0" ]
10
2016-02-14T16:58:38.000Z
2022-01-17T00:50:05.000Z
src/LDTPLibrary/utils/events/scope_event.py
wywincl/LDTPLibrary
2efe912216fddccb63aae15d58adce9334dd89bf
[ "ECL-2.0", "Apache-2.0" ]
6
2016-01-12T14:07:09.000Z
2020-01-29T16:10:31.000Z
src/LDTPLibrary/utils/events/scope_event.py
wywincl/LDTPLibrary
2efe912216fddccb63aae15d58adce9334dd89bf
[ "ECL-2.0", "Apache-2.0" ]
9
2016-04-10T06:51:38.000Z
2020-01-21T15:12:00.000Z
from .event import Event from robot.libraries.BuiltIn import BuiltIn class ScopeEvent(Event): def __init__(self, scope, action, *args, **kwargs): self.scope = scope self.action = action self.action_args = args self.action_kwargs = kwargs if scope == 'current': ...
27.178571
68
0.613666
97bc0aadd5bc0403f78eb0de635d00be72269da3
12,759
py
Python
alembic/versions/affc03cb46f5_game_data.py
andreasots/lrrbot
6564f641be3548fcdeb500337770cf2c03759428
[ "Apache-2.0" ]
24
2015-02-06T10:58:44.000Z
2021-12-07T14:55:12.000Z
alembic/versions/affc03cb46f5_game_data.py
andreasots/lrrbot
6564f641be3548fcdeb500337770cf2c03759428
[ "Apache-2.0" ]
343
2015-01-13T21:55:41.000Z
2022-03-31T16:32:39.000Z
alembic/versions/affc03cb46f5_game_data.py
andreasots/lrrbot
6564f641be3548fcdeb500337770cf2c03759428
[ "Apache-2.0" ]
18
2015-03-07T02:10:48.000Z
2019-09-02T00:48:01.000Z
revision = 'affc03cb46f5' down_revision = '988883a6be1d' branch_labels = None depends_on = None import alembic import sqlalchemy import json import itertools import requests import logging import urllib.parse log = logging.getLogger("affc03cb46f5_game_data") def upgrade(): conn = alembic.context.get_context().bind ...
37.198251
157
0.695352
d75ffcf6a870d4d3ab46a783fe89cd8d15252e43
6,674
py
Python
tests/applicator-utils/test_applicators.py
marcgarreau/eth-utils
386863e6b7d95ac5acb11f6ba81619dc88ed6eb9
[ "MIT" ]
1
2021-05-13T18:32:16.000Z
2021-05-13T18:32:16.000Z
tests/applicator-utils/test_applicators.py
marcgarreau/eth-utils
386863e6b7d95ac5acb11f6ba81619dc88ed6eb9
[ "MIT" ]
null
null
null
tests/applicator-utils/test_applicators.py
marcgarreau/eth-utils
386863e6b7d95ac5acb11f6ba81619dc88ed6eb9
[ "MIT" ]
null
null
null
import collections import pytest import eth_utils from eth_utils.curried import ( apply_formatter_at_index, apply_formatter_if, apply_formatter_to_array, apply_formatters_to_dict, apply_formatters_to_sequence, apply_key_map, apply_one_of_formatters, is_list_like, is_string, ) def...
32.241546
86
0.67246
482acc1c0f224d7fa1f52025ce3e039426053d63
47,389
py
Python
Lib/test/test_urllib.py
deadsnakes/python3.1
88d77610a7873c5161bfc15cd69557fc7697b1a3
[ "PSF-2.0" ]
null
null
null
Lib/test/test_urllib.py
deadsnakes/python3.1
88d77610a7873c5161bfc15cd69557fc7697b1a3
[ "PSF-2.0" ]
null
null
null
Lib/test/test_urllib.py
deadsnakes/python3.1
88d77610a7873c5161bfc15cd69557fc7697b1a3
[ "PSF-2.0" ]
null
null
null
"""Regresssion tests for urllib""" import urllib.parse import urllib.request import urllib.error import http.client import email.message import io import unittest from test import support import os import sys import tempfile import warnings import collections def hexescape(char): """Escape char as RFC 2396 specif...
41.24369
91
0.571019
b06db2ac41f7767ec9c2757ad02626dc6527f0fa
1,173
py
Python
setup.py
martinfleis/contextily
fc00861c9756821f62de27bb06ef6771abc517d6
[ "BSD-3-Clause" ]
182
2020-04-08T15:56:50.000Z
2022-03-24T15:02:19.000Z
setup.py
martinfleis/contextily
fc00861c9756821f62de27bb06ef6771abc517d6
[ "BSD-3-Clause" ]
66
2020-04-09T06:23:50.000Z
2022-02-20T19:04:38.000Z
setup.py
martinfleis/contextily
fc00861c9756821f62de27bb06ef6771abc517d6
[ "BSD-3-Clause" ]
28
2020-04-08T12:53:44.000Z
2021-12-18T01:05:58.000Z
from setuptools import setup # Dependencies. with open("requirements.txt") as f: tests_require = f.readlines() install_requires = [t.strip() for t in tests_require] with open("README.md") as f: long_description = f.read() setup( name="contextily", version="1.2.0", description="Context geo-tiles i...
31.702703
70
0.647059
02ae70349d69e9c130d58228ed8fc722ea65d891
687
py
Python
setup.py
nowindxdw/dingdingwebhook
305f2faf6bf003e5fc19cdadd3ddef9723335fd9
[ "MIT" ]
null
null
null
setup.py
nowindxdw/dingdingwebhook
305f2faf6bf003e5fc19cdadd3ddef9723335fd9
[ "MIT" ]
null
null
null
setup.py
nowindxdw/dingdingwebhook
305f2faf6bf003e5fc19cdadd3ddef9723335fd9
[ "MIT" ]
1
2021-03-10T07:28:16.000Z
2021-03-10T07:28:16.000Z
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="dingding_webhook", # Replace with your own username version="0.0.3", author="nowindxdw", author_email="nowindxdw@126.com", description="A simple api for dingding robot", long_descripti...
31.227273
61
0.6754
6ab5a8199d25487b6699dffa62b6497b8ebdcd83
20,051
py
Python
configs/example/read_config.py
taomiao/gem5
4effe34f94b599add133357473e1b120b54719ab
[ "BSD-3-Clause" ]
1
2021-08-31T13:49:29.000Z
2021-08-31T13:49:29.000Z
configs/example/read_config.py
taomiao/gem5
4effe34f94b599add133357473e1b120b54719ab
[ "BSD-3-Clause" ]
1
2019-06-10T21:33:54.000Z
2019-06-10T21:33:54.000Z
configs/example/read_config.py
taomiao/gem5
4effe34f94b599add133357473e1b120b54719ab
[ "BSD-3-Clause" ]
1
2019-04-13T20:24:43.000Z
2019-04-13T20:24:43.000Z
# Copyright (c) 2014 ARM Limited # All rights reserved. # # The license below extends only to copyright in the software and shall # not be construed as granting a license to any other intellectual # property including but not limited to intellectual property relating # to a hardware implementation of the functionality ...
36.656307
78
0.644407
72e3c3a8597283916762d92dcc9f5e95c6261d2f
1,406
py
Python
demos/automatic_video_subtitiles/recognize.py
JiehangXie/PaddleSpeech
60090b49ec27437127ab62358026dd5bb95fccc7
[ "Apache-2.0" ]
1,540
2017-11-14T13:26:33.000Z
2021-11-09T14:05:08.000Z
demos/automatic_video_subtitiles/recognize.py
JiehangXie/PaddleSpeech
60090b49ec27437127ab62358026dd5bb95fccc7
[ "Apache-2.0" ]
599
2017-11-14T13:19:12.000Z
2021-11-09T01:58:26.000Z
demos/automatic_video_subtitiles/recognize.py
JiehangXie/PaddleSpeech
60090b49ec27437127ab62358026dd5bb95fccc7
[ "Apache-2.0" ]
449
2017-11-14T12:48:46.000Z
2021-11-06T09:34:33.000Z
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
31.954545
74
0.726174
f69422b19f218e9df4b97398a1f962c6247ed0f8
5,506
py
Python
python/seldon_core/wrapper.py
SandhyaaGopchandani/seldon-core
00360bd7c90e85da980730c34e55318997907d44
[ "Apache-2.0" ]
null
null
null
python/seldon_core/wrapper.py
SandhyaaGopchandani/seldon-core
00360bd7c90e85da980730c34e55318997907d44
[ "Apache-2.0" ]
null
null
null
python/seldon_core/wrapper.py
SandhyaaGopchandani/seldon-core
00360bd7c90e85da980730c34e55318997907d44
[ "Apache-2.0" ]
null
null
null
import grpc from concurrent import futures from flask import jsonify, Flask, send_from_directory, request from flask_cors import CORS import logging from seldon_core.utils import json_to_seldon_message, seldon_message_to_json, json_to_feedback, json_to_seldon_messages from seldon_core.flask_utils import get_request imp...
38.236111
119
0.705412
f1358ed113b5c99cdfd30c4e161d15d16dc68015
1,916
py
Python
writeDB.py
kosovojs/pywikibot-scripts
4a9bf5177ebcfbba719970f9f3b48fbd51831818
[ "MIT" ]
3
2021-10-03T17:27:43.000Z
2021-10-05T12:27:06.000Z
writeDB.py
kosovojs/pywikibot-scripts
4a9bf5177ebcfbba719970f9f3b48fbd51831818
[ "MIT" ]
null
null
null
writeDB.py
kosovojs/pywikibot-scripts
4a9bf5177ebcfbba719970f9f3b48fbd51831818
[ "MIT" ]
null
null
null
import pywikibot, re, json, os, time, requests from datetime import datetime import sqlite3 as lite import sys import re, os, sys, pywikibot, toolforge connLabs = toolforge.connect_tools('s53143__meta_p') cursor1 = connLabs.cursor() def encode_if_necessary(b): if type(b) is bytes: return b.decode('utf8'...
22.541176
79
0.648747
c70ef7e8424069f1dd06e85d744ea2cccd1f715e
415
py
Python
grascii/grammars/__init__.py
chanicpanic/grascii
654d24529dd8373d9df35f07b06323bb17ed7ffb
[ "MIT" ]
3
2020-10-02T11:45:47.000Z
2021-06-27T01:16:08.000Z
grascii/grammars/__init__.py
chanicpanic/grascii
654d24529dd8373d9df35f07b06323bb17ed7ffb
[ "MIT" ]
2
2021-07-03T23:09:00.000Z
2021-07-06T17:46:02.000Z
grascii/grammars/__init__.py
grascii/grascii
654d24529dd8373d9df35f07b06323bb17ed7ffb
[ "MIT" ]
null
null
null
"""Contains grammars used by grascii.""" import io from pathlib import Path from pkg_resources import resource_string def get_grammar(name: str) -> str: """Get a grammar string. :param name: The name of the grammar resource. :returns: A grammar string. """ return Path(__file__).with_name(nam...
24.411765
80
0.681928
bdf54311411f9515092539aad8b3596e4cc0f6cc
31,433
py
Python
nova/conf/network.py
j-griffith/nova
8d9325b525034e6e967818bc8431e91585d8abb7
[ "Apache-2.0" ]
null
null
null
nova/conf/network.py
j-griffith/nova
8d9325b525034e6e967818bc8431e91585d8abb7
[ "Apache-2.0" ]
11
2017-06-19T01:28:55.000Z
2017-06-23T02:01:47.000Z
nova/conf/network.py
j-griffith/nova
8d9325b525034e6e967818bc8431e91585d8abb7
[ "Apache-2.0" ]
1
2020-07-22T21:08:25.000Z
2020-07-22T21:08:25.000Z
# Copyright 2016 OpenStack Foundation # 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 requ...
30.547133
79
0.71285
627681bd796daa7a19310fc7d6f540d4487a0968
1,540
py
Python
tests/python/pants_test/backend/jvm/targets/test_jvm_target.py
WamBamBoozle/pants
98cadfa1a5d337146903eb66548cfe955f2627b3
[ "Apache-2.0" ]
null
null
null
tests/python/pants_test/backend/jvm/targets/test_jvm_target.py
WamBamBoozle/pants
98cadfa1a5d337146903eb66548cfe955f2627b3
[ "Apache-2.0" ]
null
null
null
tests/python/pants_test/backend/jvm/targets/test_jvm_target.py
WamBamBoozle/pants
98cadfa1a5d337146903eb66548cfe955f2627b3
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) from textwrap import...
35.813953
95
0.74026
691dac29df6f8981d524643f603bd4ae5226ae0b
9,091
py
Python
latent_programmer/tasks/robust_fill/dataset/write_data.py
dshirron/google-research
0c0f6ce46af61250e0604bb5a6aa481d849e66dc
[ "Apache-2.0" ]
1
2022-01-19T23:35:59.000Z
2022-01-19T23:35:59.000Z
latent_programmer/tasks/robust_fill/dataset/write_data.py
dshirron/google-research
0c0f6ce46af61250e0604bb5a6aa481d849e66dc
[ "Apache-2.0" ]
null
null
null
latent_programmer/tasks/robust_fill/dataset/write_data.py
dshirron/google-research
0c0f6ce46af61250e0604bb5a6aa481d849e66dc
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2022 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
35.373541
80
0.701243
09d60c1573e1009122d66de088204d02f73f0563
2,906
py
Python
src/py42/modules/alerts.py
kboghdady/py42
c91486d98a177c774b14991d89b44c7501f491ff
[ "MIT" ]
1
2020-08-18T22:00:22.000Z
2020-08-18T22:00:22.000Z
src/py42/modules/alerts.py
kboghdady/py42
c91486d98a177c774b14991d89b44c7501f491ff
[ "MIT" ]
null
null
null
src/py42/modules/alerts.py
kboghdady/py42
c91486d98a177c774b14991d89b44c7501f491ff
[ "MIT" ]
1
2021-05-10T23:33:34.000Z
2021-05-10T23:33:34.000Z
from py42.modules.alertrules import AlertRulesModule class AlertsModule(object): def __init__(self, microservice_client_factory, alert_rules_module=None): self._microservice_client_factory = microservice_client_factory self._alert_rules_module = alert_rules_module or AlertRulesModule( ...
39.27027
102
0.668961
c5a94cdd097e78b5e8e5daf47dcd88e43dc98a72
697
py
Python
wien2kparser/__init__.py
ondracka/nomad-parser-wien2k
f108ea41f49b78e9494423204eebb385b450da2a
[ "Apache-2.0" ]
null
null
null
wien2kparser/__init__.py
ondracka/nomad-parser-wien2k
f108ea41f49b78e9494423204eebb385b450da2a
[ "Apache-2.0" ]
3
2021-05-18T19:00:39.000Z
2021-07-14T15:17:17.000Z
wien2kparser/__init__.py
ondracka/nomad-parser-wien2k
f108ea41f49b78e9494423204eebb385b450da2a
[ "Apache-2.0" ]
1
2021-05-19T19:32:34.000Z
2021-05-19T19:32:34.000Z
# # Copyright The NOMAD Authors. # # This file is part of NOMAD. See https://nomad-lab.eu for further info. # # 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/licen...
34.85
74
0.757532
9e3f7d6c223ed7fb01a29ba05dd862b065379481
12,743
py
Python
src/twisted/test/test_stdio.py
apjanke/twisted
22f949f7ce187513f0c218b73186c8a73baa00b4
[ "Unlicense", "MIT" ]
1
2021-01-03T01:54:14.000Z
2021-01-03T01:54:14.000Z
src/twisted/test/test_stdio.py
zerospam/twisted
e23b5e2040a4d643bc6a43785621358569886a0d
[ "MIT", "Unlicense" ]
null
null
null
src/twisted/test/test_stdio.py
zerospam/twisted
e23b5e2040a4d643bc6a43785621358569886a0d
[ "MIT", "Unlicense" ]
null
null
null
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Tests for L{twisted.internet.stdio}. @var properEnv: A copy of L{os.environ} which has L{bytes} keys/values on POSIX platforms and native L{str} keys/values on Windows. """ import os import sys import itertools from unittest import ski...
34.255376
87
0.626697
4bf265cae449fdd5292591073dc10436ae47c90e
24,084
py
Python
HICO-DET_Benchmark/Generate_HICO_detection_nis.py
enlighten0707/Transferable-Interactiveness-Network
5ffbf1d0779702225bac37d6cc5d3ddf9b17a1cd
[ "MIT" ]
227
2019-03-23T16:17:29.000Z
2022-03-29T03:01:36.000Z
HICO-DET_Benchmark/Generate_HICO_detection_nis.py
enlighten0707/Transferable-Interactiveness-Network
5ffbf1d0779702225bac37d6cc5d3ddf9b17a1cd
[ "MIT" ]
68
2019-03-27T06:28:55.000Z
2021-09-24T13:37:35.000Z
HICO-DET_Benchmark/Generate_HICO_detection_nis.py
enlighten0707/Transferable-Interactiveness-Network
5ffbf1d0779702225bac37d6cc5d3ddf9b17a1cd
[ "MIT" ]
51
2019-03-23T12:29:15.000Z
2022-03-23T01:37:04.000Z
# -------------------------------------------------------- # Tensorflow TIN # Licensed under The MIT License [see LICENSE for details] # -------------------------------------------------------- """ Change the HICO-DET detection results to the right format. input arg: python Generate_HICO_detection_nis.py (1:pkl_path) ...
47.316306
3,294
0.639263
7530a0ef5892d980f098bf65fadf53123d3e6efa
3,367
py
Python
tests/st/bgp/test_single_route_reflector.py
EdSchouten/calico-containers
e4e3c1ba2b883395de4b340bb0c2b64e8595f49d
[ "Apache-2.0" ]
null
null
null
tests/st/bgp/test_single_route_reflector.py
EdSchouten/calico-containers
e4e3c1ba2b883395de4b340bb0c2b64e8595f49d
[ "Apache-2.0" ]
null
null
null
tests/st/bgp/test_single_route_reflector.py
EdSchouten/calico-containers
e4e3c1ba2b883395de4b340bb0c2b64e8595f49d
[ "Apache-2.0" ]
1
2021-08-18T09:47:40.000Z
2021-08-18T09:47:40.000Z
# Copyright (c) 2015-2016 Tigera, Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
43.727273
86
0.621622
d66ead32d60d31339862c95511e50af8b55d6252
233
py
Python
src/movie_service/app.py
kenesparta/movie-service-api
9b7e132e9729af516dfa9f2f9bc7613e392624f8
[ "MIT" ]
4
2021-05-03T19:37:43.000Z
2021-05-03T22:40:51.000Z
src/movie_service/app.py
kenesparta/movie-service-api
9b7e132e9729af516dfa9f2f9bc7613e392624f8
[ "MIT" ]
null
null
null
src/movie_service/app.py
kenesparta/movie-service-api
9b7e132e9729af516dfa9f2f9bc7613e392624f8
[ "MIT" ]
null
null
null
from flask import Flask import config from api.routes import general, movie app = Flask(__name__) app.config.update() def register_routes(): app.register_blueprint(general.general) app.register_blueprint(movie.movie_bp)
16.642857
43
0.776824
c29f78e989f128af997edddfb73391eb32d36bc0
588
py
Python
net_interp.py
dmitrykroo/deepmux_super_resolution
4b0a6635d15aa2c2f214edd3f84d83699e4f2327
[ "Apache-2.0" ]
1
2021-04-05T14:24:44.000Z
2021-04-05T14:24:44.000Z
net_interp.py
dmitrykroo/deepmux_super_resolution
4b0a6635d15aa2c2f214edd3f84d83699e4f2327
[ "Apache-2.0" ]
null
null
null
net_interp.py
dmitrykroo/deepmux_super_resolution
4b0a6635d15aa2c2f214edd3f84d83699e4f2327
[ "Apache-2.0" ]
null
null
null
import sys import torch from collections import OrderedDict alpha = float(sys.argv[1]) net_PSNR_path = './models/RRDB_PSNR_x4.pth' net_ESRGAN_path = './models/RRDB_ESRGAN_x4.pth' net_interp_path = './models/interp_{:02d}.pth'.format(int(alpha*10)) net_PSNR = torch.load(net_PSNR_path) net_ESRGAN = torch.lo...
26.727273
69
0.719388
afc85a0b8bd1818dcb784053665050a96174bfce
182
py
Python
harpoon/src/plugins/Config/commands/DisablePersist.py
xezzz/Harpoon
4a0bdea10a6e961013738598726a4205a5cc4c91
[ "MIT" ]
null
null
null
harpoon/src/plugins/Config/commands/DisablePersist.py
xezzz/Harpoon
4a0bdea10a6e961013738598726a4205a5cc4c91
[ "MIT" ]
null
null
null
harpoon/src/plugins/Config/commands/DisablePersist.py
xezzz/Harpoon
4a0bdea10a6e961013738598726a4205a5cc4c91
[ "MIT" ]
null
null
null
async def run(plugin, ctx): plugin.db.configs.update(ctx.guild.id, "persist", False) await ctx.send(plugin.t(ctx.guild, "disabled_module", _emote="YES", module="Persist"))
30.333333
90
0.697802
9755e0556c0c1e52b4f1c523ddf495cf1d5a9819
1,104
py
Python
examples/miniapps/api_client/main.py
vlad-ghita/python-dependency-injector
5cf5bdda24851dd97cfa0f5054f4a8c35ddac014
[ "BSD-3-Clause" ]
null
null
null
examples/miniapps/api_client/main.py
vlad-ghita/python-dependency-injector
5cf5bdda24851dd97cfa0f5054f4a8c35ddac014
[ "BSD-3-Clause" ]
null
null
null
examples/miniapps/api_client/main.py
vlad-ghita/python-dependency-injector
5cf5bdda24851dd97cfa0f5054f4a8c35ddac014
[ "BSD-3-Clause" ]
null
null
null
"""TBD.""" from dependency_injector import providers import api import models # Creating ApiClient and User providers: api_client = providers.Singleton(api.ApiClient, host='production.com', api_key='PROD_API_KEY') user_factory = providers.Factory(mod...
29.837838
75
0.584239
a63e4e1392b35165d7e139025c2570fa50e197a0
2,240
py
Python
blog/blog_app/models.py
MadMaxINDIAN/thePythoneer.tech-v2.0
74d988c1f04095557ed43daa2aabf232faf3d159
[ "MIT" ]
null
null
null
blog/blog_app/models.py
MadMaxINDIAN/thePythoneer.tech-v2.0
74d988c1f04095557ed43daa2aabf232faf3d159
[ "MIT" ]
null
null
null
blog/blog_app/models.py
MadMaxINDIAN/thePythoneer.tech-v2.0
74d988c1f04095557ed43daa2aabf232faf3d159
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. class Tag(models.Model): name = models.CharField(max_length=20) def __str__(self): return self.name class Author(models.Model): name = models.CharField(max_length=50) description = models.CharField(max_length=250) content = models.Te...
33.939394
78
0.717411
52eb652bc2d41cfcfae93f6aafe49b22bcce3244
21,949
py
Python
ax/models/model_utils.py
trsvchn/Ax
0b430641c6b33920757dd09ae4318ea487fb4136
[ "MIT" ]
1,803
2019-05-01T16:04:15.000Z
2022-03-31T16:01:29.000Z
ax/models/model_utils.py
trsvchn/Ax
0b430641c6b33920757dd09ae4318ea487fb4136
[ "MIT" ]
810
2019-05-01T07:17:47.000Z
2022-03-31T23:58:46.000Z
ax/models/model_utils.py
trsvchn/Ax
0b430641c6b33920757dd09ae4318ea487fb4136
[ "MIT" ]
220
2019-05-01T05:37:22.000Z
2022-03-29T04:30:45.000Z
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from __future__ import annotations import itertools import warnings from collections import defaultdict from typing im...
39.194643
88
0.664449
29371591412a402583c88893ee3c188e29730b10
9,155
py
Python
curiefense/curietasker/curietasker/tasks_list_updates.py
bartavelle/curiefense
9c8d466453880ce6c1d51e59bb695773b09d2b2c
[ "Apache-2.0" ]
388
2020-11-08T07:53:51.000Z
2022-03-31T19:04:32.000Z
curiefense/curietasker/curietasker/tasks_list_updates.py
bartavelle/curiefense
9c8d466453880ce6c1d51e59bb695773b09d2b2c
[ "Apache-2.0" ]
617
2020-11-08T11:33:10.000Z
2022-03-31T17:04:40.000Z
curiefense/curietasker/curietasker/tasks_list_updates.py
bartavelle/curiefense
9c8d466453880ce6c1d51e59bb695773b09d2b2c
[ "Apache-2.0" ]
67
2020-11-09T07:34:53.000Z
2022-03-22T15:02:13.000Z
import time import datetime import requests import json import re from jsonschema import validate, ValidationError from .task import Task SCHEMAFILE = "/global-filters.schema" @Task.register("update") class TaskUpdate(Task): parsers = { # "ip": re.compile("^(?P<val>(([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\...
36.043307
167
0.462698
93e4b79ad03083bd209909804bdb3586447d4b10
1,273
py
Python
LoliBot/cogs/joinleave.py
Aiyumii/KawaiiSoup
929f1d58183e01993ca9f7a4647433231e65c3ad
[ "MIT" ]
null
null
null
LoliBot/cogs/joinleave.py
Aiyumii/KawaiiSoup
929f1d58183e01993ca9f7a4647433231e65c3ad
[ "MIT" ]
null
null
null
LoliBot/cogs/joinleave.py
Aiyumii/KawaiiSoup
929f1d58183e01993ca9f7a4647433231e65c3ad
[ "MIT" ]
null
null
null
import discord from LoliBot.settings import guild_settings class JoinLeave(): def __init__(self, Bot): self.bot = Bot async def on_member_join(self, member): """ Greets users when they join a server. """ settings = guild_settings.get(member.guild) if not settings.greets["enabled"]: return if sett...
28.288889
109
0.714847
9475c1e8de56dbf4c96ea1356aa016e6c86b7bb9
579
py
Python
vbdiar/utils/__init__.py
VarunSrivastava19/VBDiarization
2a460b4fc11b3a5ff73d0534cadb182be1a9d882
[ "Apache-2.0" ]
101
2017-12-19T21:55:59.000Z
2022-03-15T06:56:06.000Z
vbdiar/utils/__init__.py
VarunSrivastava19/VBDiarization
2a460b4fc11b3a5ff73d0534cadb182be1a9d882
[ "Apache-2.0" ]
27
2017-07-20T06:10:42.000Z
2020-11-22T14:15:16.000Z
vbdiar/utils/__init__.py
VarunSrivastava19/VBDiarization
2a460b4fc11b3a5ff73d0534cadb182be1a9d882
[ "Apache-2.0" ]
30
2017-07-17T08:53:44.000Z
2021-05-18T07:37:46.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (C) 2018 Brno University of Technology FIT # Author: Jan Profant <xprofa00@stud.fit.vutbr.cz> # All Rights Reserved import os import errno def mkdir_p(path): """ Behaviour similar to mkdir -p in shell. Args: path (string_types): path to cre...
20.678571
73
0.613126
70712dcdb2ba4f69ce77c456cd2190fb02ad52eb
714
py
Python
examples/message.py
Conchbot-Development/EpikCord.py
d81f4075ee9621edec05c8ab0ccbb4a6c4ec46c6
[ "MIT" ]
null
null
null
examples/message.py
Conchbot-Development/EpikCord.py
d81f4075ee9621edec05c8ab0ccbb4a6c4ec46c6
[ "MIT" ]
5
2022-02-03T00:35:57.000Z
2022-03-18T22:06:03.000Z
examples/message.py
Conchbot-Development/EpikCord.py
d81f4075ee9621edec05c8ab0ccbb4a6c4ec46c6
[ "MIT" ]
1
2022-03-04T22:57:14.000Z
2022-03-04T22:57:14.000Z
""" Before you implement this in your bot, please note that its just for testing, If you have a test bot and are professional with your code, you can experiment with different features and report the bugs in an issue """ from EpikCord import Client,Intents,Messageable, Embed intents = Intents().guilds.gui...
31.043478
80
0.722689
64cf07eb2dab3161535ababd1b260bc63a3513aa
1,683
py
Python
google-cloud-secret_manager/synth.py
trambui09/google-cloud-ruby
9c5f5fc27cbfbb4c4fc55d1171f450d1af3226aa
[ "Apache-2.0" ]
542
2018-09-19T18:52:38.000Z
2022-03-17T10:49:38.000Z
google-cloud-secret_manager/synth.py
trambui09/google-cloud-ruby
9c5f5fc27cbfbb4c4fc55d1171f450d1af3226aa
[ "Apache-2.0" ]
6,226
2018-09-19T17:31:37.000Z
2022-03-31T23:08:01.000Z
google-cloud-secret_manager/synth.py
trambui09/google-cloud-ruby
9c5f5fc27cbfbb4c4fc55d1171f450d1af3226aa
[ "Apache-2.0" ]
310
2018-09-20T02:19:43.000Z
2022-03-18T12:31:05.000Z
# 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 agreed to in writing, s...
40.071429
283
0.734997
cfc4a5861ff55df32c6208ddb9d4ddff47b9704c
1,669
py
Python
cohesity_management_sdk/models/reducers_wrapper.py
nick6655/management-sdk-python
88e792cb83e5c24a22af495b220c145d0c45841d
[ "Apache-2.0" ]
18
2019-09-24T17:35:53.000Z
2022-03-25T08:08:47.000Z
cohesity_management_sdk/models/reducers_wrapper.py
nick6655/management-sdk-python
88e792cb83e5c24a22af495b220c145d0c45841d
[ "Apache-2.0" ]
18
2019-03-29T19:32:29.000Z
2022-01-03T23:16:45.000Z
cohesity_management_sdk/models/reducers_wrapper.py
nick6655/management-sdk-python
88e792cb83e5c24a22af495b220c145d0c45841d
[ "Apache-2.0" ]
16
2019-02-27T06:54:12.000Z
2021-11-16T18:10:24.000Z
# -*- coding: utf-8 -*- # Copyright 2021 Cohesity Inc. import cohesity_management_sdk.models.reducer_info class ReducersWrapper(object): """Implementation of the 'ReducersWrapper' model. ReducersWrapper is the struct to define the list of reducers. Attributes: reducers (list of ReducerInfo): Re...
28.775862
117
0.638107
b95ef2588e6dcbec4f4dd3fbe0d8f1192a90aa49
2,938
py
Python
sphinx/ext/imgconverter.py
choldgraf/sphinx
97d2f9fbf8eab478908af981c1a36aed1d75a4ce
[ "BSD-2-Clause" ]
null
null
null
sphinx/ext/imgconverter.py
choldgraf/sphinx
97d2f9fbf8eab478908af981c1a36aed1d75a4ce
[ "BSD-2-Clause" ]
null
null
null
sphinx/ext/imgconverter.py
choldgraf/sphinx
97d2f9fbf8eab478908af981c1a36aed1d75a4ce
[ "BSD-2-Clause" ]
null
null
null
""" sphinx.ext.imgconverter ~~~~~~~~~~~~~~~~~~~~~~~ Image converter extension for Sphinx :copyright: Copyright 2007-2020 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. """ import subprocess from subprocess import CalledProcessError, PIPE from typing import Any, Dict fro...
34.97619
77
0.578285
ec01f6c45dc99423f3791eb799351c0ad33f117e
2,565
py
Python
scripts/build.py
Shagroth/tutorial
96cc36b2b66a5003c4b745b45fa6578b70c7993c
[ "Apache-2.0" ]
null
null
null
scripts/build.py
Shagroth/tutorial
96cc36b2b66a5003c4b745b45fa6578b70c7993c
[ "Apache-2.0" ]
4
2021-09-02T19:57:51.000Z
2022-02-27T11:41:09.000Z
scripts/build.py
Shagroth/tutorial
96cc36b2b66a5003c4b745b45fa6578b70c7993c
[ "Apache-2.0" ]
null
null
null
import functools import json import os import re import semver import subprocess as sp BASE_URL_ENV = 'TOUR_BASE_URL' def exec(*argv): print("$>"," ".join(argv)) res = sp.run(argv, stdout=sp.PIPE, stderr=sp.PIPE) if not res.returncode == 0: print('Error running', argv) print('StdOut:\n', r...
24.663462
68
0.578947
f341c44f834f5e8bbeea2fba0ed1107ddaf5c7cf
41,317
py
Python
test/run_test.py
mrTsjolder/pytorch
778f9eab6c036964d6dbca06549fb138f1e21c67
[ "Intel" ]
1
2022-01-19T15:28:17.000Z
2022-01-19T15:28:17.000Z
test/run_test.py
mrTsjolder/pytorch
778f9eab6c036964d6dbca06549fb138f1e21c67
[ "Intel" ]
null
null
null
test/run_test.py
mrTsjolder/pytorch
778f9eab6c036964d6dbca06549fb138f1e21c67
[ "Intel" ]
null
null
null
#!/usr/bin/env python import argparse import copy from datetime import datetime import json import modulefinder import os import shutil import signal import subprocess import sys import tempfile import torch from torch.utils import cpp_extension from torch.testing._internal.common_utils import TEST_WITH_ROCM, shell, ...
37.73242
121
0.662367
1c88b59ee3f98e230f9c75c3fcde53b039199721
1,536
py
Python
tests/image/test_image.py
rajatscibi/chitra
1543805f1401c571e516e47ab1c8a83b93dd657c
[ "Apache-2.0" ]
158
2020-01-27T05:35:35.000Z
2021-12-24T16:15:23.000Z
tests/image/test_image.py
rajatscibi/chitra
1543805f1401c571e516e47ab1c8a83b93dd657c
[ "Apache-2.0" ]
112
2020-02-15T15:12:38.000Z
2021-12-22T13:18:14.000Z
tests/image/test_image.py
rajatscibi/chitra
1543805f1401c571e516e47ab1c8a83b93dd657c
[ "Apache-2.0" ]
33
2020-09-25T13:49:17.000Z
2021-12-01T13:05:23.000Z
from unittest.mock import MagicMock import numpy as np from PIL import Image from chitra.image.image import Chitra, _cache_image url = ( "https://raw.githubusercontent.com/aniketmaurya/chitra/master/docs/assets/logo.png" ) image = Chitra(url, cache=True) def test__load_image(): url = "https://raw.githubuse...
22.26087
93
0.703125
09128e50839791f582a05c82dd558d9c4759e33e
4,445
py
Python
avalanche/models/helper_method.py
AlexTo/avalanche
e5562e3f3e1aaf7e9623698f7fd493ff97b4bf64
[ "MIT" ]
null
null
null
avalanche/models/helper_method.py
AlexTo/avalanche
e5562e3f3e1aaf7e9623698f7fd493ff97b4bf64
[ "MIT" ]
null
null
null
avalanche/models/helper_method.py
AlexTo/avalanche
e5562e3f3e1aaf7e9623698f7fd493ff97b4bf64
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import torch import torch.nn as nn from avalanche.models.dynamic_modules import ( MultiTaskModule, MultiHeadClassifier, ) class MultiTaskDecorator(MultiTaskModule): """ Encapsulates an existing nn.Module to make it subclass MultiTaskModule, the user should still be able to ...
38.652174
79
0.648819
4ebb4bf3ce7ace152263d6338f41f09d97e0ab6b
1,152
py
Python
test.py
looput/Rotated_ROIAlign
edf2bcfbd8580b90dcaae3cb92546b719c995a35
[ "MIT" ]
14
2019-10-18T11:50:08.000Z
2022-03-22T12:20:07.000Z
test.py
looput/Rotated_ROIAlign
edf2bcfbd8580b90dcaae3cb92546b719c995a35
[ "MIT" ]
3
2020-06-11T11:09:03.000Z
2022-02-25T12:23:49.000Z
test.py
looput/Rotated_ROIAlign
edf2bcfbd8580b90dcaae3cb92546b719c995a35
[ "MIT" ]
2
2019-11-18T23:46:28.000Z
2021-09-28T09:12:32.000Z
import torch import numpy as np from matplotlib import pyplot as plt import cv2 import torchvision.utils as vutils from roi_align_rotate import ROIAlignRotated pooler_rotated=ROIAlignRotated((32,192), spatial_scale = (1.), sampling_ratio = 0) image=cv2.imread('IMG_0451.jpg') with open('IMG_0451.gt') as f: lines...
28.8
90
0.733507
6325d47c4ccddd3c677dc4be2bc4c0b6a0539d9c
626
py
Python
src/003_aggregation/06/answer_a.py
negi524/awesomebook
42eedc88fb43276044debc604044badb0e8bcaf0
[ "BSD-3-Clause" ]
null
null
null
src/003_aggregation/06/answer_a.py
negi524/awesomebook
42eedc88fb43276044debc604044badb0e8bcaf0
[ "BSD-3-Clause" ]
null
null
null
src/003_aggregation/06/answer_a.py
negi524/awesomebook
42eedc88fb43276044debc604044badb0e8bcaf0
[ "BSD-3-Clause" ]
null
null
null
from pandas._libs.tslibs.timestamps import Timestamp from preprocess.load_data.data_loader import load_hotel_reserve import pandas as pd def main(): """順位の算出 顧客ごとに予約日時の順位を古い順につける 同じ予約日時の場合はデータ行の読み込み順に小さな順位をつける """ customer_tb, hotel_tb, reserve_tb = load_hotel_reserve() # 予約日時のデータ型をDateTime型に...
26.083333
83
0.731629
f45e09d414ca816cdb039de5d2201b602d1b912b
65,345
py
Python
pysnmp/CISCO-ATM-CONN-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/CISCO-ATM-CONN-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/CISCO-ATM-CONN-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module CISCO-ATM-CONN-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-ATM-CONN-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 17:33:08 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, ...
155.954654
8,508
0.759829
391b4e0dbf38208e3126be094ef8a3614b2790c1
2,753
py
Python
21.Car-insurance-claim(Challenges-in-Machine-Learning)/code.py
swapnilbpatil/ga-learner-dsmp-repo
fdea54e911dae514f1a73fd429c33799102dc45b
[ "MIT" ]
null
null
null
21.Car-insurance-claim(Challenges-in-Machine-Learning)/code.py
swapnilbpatil/ga-learner-dsmp-repo
fdea54e911dae514f1a73fd429c33799102dc45b
[ "MIT" ]
null
null
null
21.Car-insurance-claim(Challenges-in-Machine-Learning)/code.py
swapnilbpatil/ga-learner-dsmp-repo
fdea54e911dae514f1a73fd429c33799102dc45b
[ "MIT" ]
null
null
null
# -------------- import numpy as np import pandas as pd import seaborn as sns import matplotlib.pyplot as plt from sklearn.model_selection import train_test_split # Code starts here df = pd.read_csv(path) print(df.head()) #Remove the $ and , from columns for col in ['INCOME','HOME_VAL','BLUEBOOK','OLDCLAIM','CLM_AMT'...
21.341085
106
0.703233
db2c3164a482219271ca9e037cc7e46fddcca9f0
13,990
py
Python
mako/ast.py
gcodebackups/shaderman
5472ad7cd6ab1ce85e1c75aabf367d0ea7d485ca
[ "BSD-3-Clause" ]
5
2016-08-20T07:13:47.000Z
2021-09-28T21:07:59.000Z
mako/ast.py
gcodebackups/shaderman
5472ad7cd6ab1ce85e1c75aabf367d0ea7d485ca
[ "BSD-3-Clause" ]
null
null
null
mako/ast.py
gcodebackups/shaderman
5472ad7cd6ab1ce85e1c75aabf367d0ea7d485ca
[ "BSD-3-Clause" ]
2
2019-02-22T01:58:08.000Z
2021-09-28T21:08:45.000Z
# ast.py # Copyright (C) 2006, 2007 Michael Bayer mike_mp@zzzcomputing.com # # This module is part of Mako and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """utilities for analyzing expressions and blocks of Python code, as well as generating Python from AST nodes""" from c...
40.787172
248
0.557327
c39d2ea8b4954d5b4a40f2a3abb0412bd3b1ca8a
5,015
py
Python
py_proto/modules/common/proto/header_pb2.py
yujianyi/fusion_localization
c0057e29cbf690d6260f021080fd951c1a6b6baa
[ "Apache-2.0" ]
2
2019-03-04T02:11:04.000Z
2019-04-18T11:19:45.000Z
py_proto/modules/common/proto/header_pb2.py
yujianyi/fusion_localization
c0057e29cbf690d6260f021080fd951c1a6b6baa
[ "Apache-2.0" ]
1
2019-03-15T08:37:53.000Z
2019-03-15T08:37:53.000Z
py_proto/modules/common/proto/header_pb2.py
yujianyi/fusion_localization
c0057e29cbf690d6260f021080fd951c1a6b6baa
[ "Apache-2.0" ]
1
2019-03-04T02:11:09.000Z
2019-03-04T02:11:09.000Z
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: modules/common/proto/header.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import ...
41.106557
528
0.746959
737831182965b4a13e66805f5d08c33603c262a8
310
py
Python
pybart/settings.py
ericdwang/pybart
87985306ab1e068927ef89b44dd968440026ab01
[ "BSD-3-Clause" ]
20
2015-12-14T04:56:11.000Z
2020-05-26T04:41:33.000Z
pybart/settings.py
ericdwang/pybart
87985306ab1e068927ef89b44dd968440026ab01
[ "BSD-3-Clause" ]
3
2015-12-14T19:11:53.000Z
2017-03-13T03:14:33.000Z
pybart/settings.py
ericdwang/pybart
87985306ab1e068927ef89b44dd968440026ab01
[ "BSD-3-Clause" ]
1
2018-02-01T03:28:50.000Z
2018-02-01T03:28:50.000Z
import os DEFAULT_API_KEY = 'MW9S-E7SL-26DU-VV8V' REFRESH_INTERVAL = 100 # Milliseconds TOTAL_COLUMNS = 4 BART_API_KEY = os.environ.get('BART_API_KEY') try: BART_STATIONS = os.environ['BART_STATIONS'].split(',') except KeyError: BART_STATIONS = [] BART_MAP_URL = 'https://www.bart.gov/stations'
18.235294
58
0.725806
d4f3f266b910c407e3685a5cbeac44a6c662aa5d
4,515
py
Python
nyoka/Base64.py
maxibor/nyoka
19f480eee608035aa5fba368c96d4143bc2f5710
[ "Apache-2.0" ]
1
2021-04-07T07:55:31.000Z
2021-04-07T07:55:31.000Z
nyoka/Base64.py
maxibor/nyoka
19f480eee608035aa5fba368c96d4143bc2f5710
[ "Apache-2.0" ]
null
null
null
nyoka/Base64.py
maxibor/nyoka
19f480eee608035aa5fba368c96d4143bc2f5710
[ "Apache-2.0" ]
null
null
null
""" Copyright (c) 2004-2016 Zementis, Inc. Copyright (c) 2016-2020 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or its SPDX-License-Identifier: Apache-2.0 Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with t...
33.198529
207
0.683942
ee2ed7eabd443373907a794bdabf4fab7d1edd9d
2,503
py
Python
setup.py
SolSpecSolutions/OpenSfM
b3f39ad5acbbe05aba14e611d6f2d1b204f35daa
[ "BSD-2-Clause" ]
null
null
null
setup.py
SolSpecSolutions/OpenSfM
b3f39ad5acbbe05aba14e611d6f2d1b204f35daa
[ "BSD-2-Clause" ]
null
null
null
setup.py
SolSpecSolutions/OpenSfM
b3f39ad5acbbe05aba14e611d6f2d1b204f35daa
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python from __future__ import print_function import errno import os import setuptools import subprocess import sys from wheel.bdist_wheel import bdist_wheel class platform_bdist_wheel(bdist_wheel): """Patched bdist_well to make sure wheels include platform tag.""" def finalize_options(self): ...
26.072917
75
0.588494
67387d8d097d981be11ea59eafc5bdaf496ad51c
13,499
py
Python
sdk/python/pulumi_azure_native/network/v20180201/get_express_route_circuit_peering.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/network/v20180201/get_express_route_circuit_peering.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/network/v20180201/get_express_route_circuit_peering.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "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 from ... import _utilities, _tables from...
40.906061
454
0.671679
1d64cd256663d289fc105f7cbfa46b9e5281f994
2,172
py
Python
var/spack/repos/builtin/packages/r-manipulatewidget/package.py
kkauder/spack
6ae8d5c380c1f42094b05d38be26b03650aafb39
[ "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/r-manipulatewidget/package.py
kkauder/spack
6ae8d5c380c1f42094b05d38be26b03650aafb39
[ "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/r-manipulatewidget/package.py
kkauder/spack
6ae8d5c380c1f42094b05d38be26b03650aafb39
[ "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 RManipulatewidget(RPackage): """Add Even More Interactivity to Interactive Charts Lik...
54.3
96
0.745396
51c26cd7b8a2ded1122fd7122d5564ad66b08b37
11,905
py
Python
attack_check.py
Jakb1202/Discord-bot-attack-defence
021798e6e6b83481b66c1cda1fec2c4a8329073b
[ "BSD-3-Clause" ]
null
null
null
attack_check.py
Jakb1202/Discord-bot-attack-defence
021798e6e6b83481b66c1cda1fec2c4a8329073b
[ "BSD-3-Clause" ]
null
null
null
attack_check.py
Jakb1202/Discord-bot-attack-defence
021798e6e6b83481b66c1cda1fec2c4a8329073b
[ "BSD-3-Clause" ]
1
2021-05-31T23:58:28.000Z
2021-05-31T23:58:28.000Z
import asyncio import inspect from io import BytesIO import typing import re import discord from discord.ext import commands from datetime import timedelta, datetime from utils import * class AttackCheck(commands.Cog): def __init__(self, client): self.client = client self.joined_...
44.755639
130
0.601428
5821bb4bedb914076accc5bb19450d90206793c9
252
py
Python
utils/image_12_coe_converter.py
HowyoungZhou/cyber-melody-2
b96fff16f4bc57b47867389f8d6dc297fae58387
[ "MIT" ]
null
null
null
utils/image_12_coe_converter.py
HowyoungZhou/cyber-melody-2
b96fff16f4bc57b47867389f8d6dc297fae58387
[ "MIT" ]
null
null
null
utils/image_12_coe_converter.py
HowyoungZhou/cyber-melody-2
b96fff16f4bc57b47867389f8d6dc297fae58387
[ "MIT" ]
null
null
null
from sys import argv from PIL import Image from coe_writer import write_coe from image import rgb12_pixel_generator def main(): im = Image.open(argv[1]) write_coe(argv[2], 16, rgb12_pixel_generator(im)) if __name__ == "__main__": main()
19.384615
53
0.730159
e50e0419a7a51cd65804a1019954c264594c88cd
118
py
Python
wsgi.py
Baez2222/TaqueriaPointOfSale
9c60b15609754945d822ef3e9c5587eac959412a
[ "MIT" ]
null
null
null
wsgi.py
Baez2222/TaqueriaPointOfSale
9c60b15609754945d822ef3e9c5587eac959412a
[ "MIT" ]
null
null
null
wsgi.py
Baez2222/TaqueriaPointOfSale
9c60b15609754945d822ef3e9c5587eac959412a
[ "MIT" ]
1
2020-12-10T02:56:04.000Z
2020-12-10T02:56:04.000Z
from taqueriaposapp import create_app application = create_app() if __name__ == "__main__": application.run()
13.111111
37
0.737288
73fcf94c3f8a69c1c067ba43acda0f217145b603
5,086
py
Python
app/user/tests/test_users_api.py
MForte101/recipe-app-api
58cf88354b73a00303a722ff0ef04756800384bb
[ "MIT" ]
null
null
null
app/user/tests/test_users_api.py
MForte101/recipe-app-api
58cf88354b73a00303a722ff0ef04756800384bb
[ "MIT" ]
null
null
null
app/user/tests/test_users_api.py
MForte101/recipe-app-api
58cf88354b73a00303a722ff0ef04756800384bb
[ "MIT" ]
null
null
null
from django.test import TestCase from django.contrib.auth import get_user_model from django.urls import reverse from rest_framework.test import APIClient from rest_framework import status CREATE_USER_URL = reverse('user:create') TOKEN_URL = reverse('user:token') ME_URL = reverse('user:me') def create_user(**params...
36.328571
77
0.63665
514d7451dc6cd222175f0539bbd658eb7b3250ee
69
py
Python
app/config.py
wplam107/babynames
f5a7707449b6c8c9224ed8102235e3882c76d9bc
[ "MIT" ]
null
null
null
app/config.py
wplam107/babynames
f5a7707449b6c8c9224ed8102235e3882c76d9bc
[ "MIT" ]
null
null
null
app/config.py
wplam107/babynames
f5a7707449b6c8c9224ed8102235e3882c76d9bc
[ "MIT" ]
null
null
null
DATABASE_URI = 'postgres+psycopg2://postgres:@localhost:5432/name_db'
69
69
0.811594
ca9aa48a46422d4557b482033361194933e32d33
136,161
py
Python
sympy/tensor/tensor.py
iamabhishek0/sympy
c461bd1ff9d178d1012b04fd0bf37ee3abb02cdd
[ "BSD-3-Clause" ]
2
2019-12-16T16:02:58.000Z
2020-01-20T04:07:18.000Z
sympy/tensor/tensor.py
iamabhishek0/sympy
c461bd1ff9d178d1012b04fd0bf37ee3abb02cdd
[ "BSD-3-Clause" ]
null
null
null
sympy/tensor/tensor.py
iamabhishek0/sympy
c461bd1ff9d178d1012b04fd0bf37ee3abb02cdd
[ "BSD-3-Clause" ]
null
null
null
""" This module defines tensors with abstract index notation. The abstract index notation has been first formalized by Penrose. Tensor indices are formal objects, with a tensor type; there is no notion of index range, it is only possible to assign the dimension, used to trace the Kronecker delta; the dimension can be...
34.031742
157
0.580254
3bd9891efbedd6a59cd40abe7a6667ddca9bdd20
1,181
py
Python
nodes/input_logx3dpro.py
WisconsinRobotics/wreadinput
8d63d130dd2e6a8e440b9ca1cee571c01d4091ea
[ "MIT" ]
null
null
null
nodes/input_logx3dpro.py
WisconsinRobotics/wreadinput
8d63d130dd2e6a8e440b9ca1cee571c01d4091ea
[ "MIT" ]
1
2022-03-16T06:49:21.000Z
2022-03-16T06:49:21.000Z
nodes/input_logx3dpro.py
WisconsinRobotics/wreadinput
8d63d130dd2e6a8e440b9ca1cee571c01d4091ea
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from wreadinput import DeviceAxis, DeviceShape, DeviceKey, default_node # TODO check to make sure these are what actually get mapped by evdev SHAPE_LOGX3DPRO = DeviceShape()\ .with_axis(DeviceAxis.ABS_X, 'stick_x', deadband = 0.1)\ .with_axis(DeviceAxis.ABS_Y, 'stick_y', 1, -1, deadband...
40.724138
71
0.707875
b9fede06c12e550f23f845691e9b72397575c184
597
py
Python
data/AVA/extract_flow.py
pedro-abreu/twostream-attention
60a47c50b8f2427911e5e30fd6c6f933dbf08a4e
[ "MIT" ]
10
2018-10-26T05:19:15.000Z
2019-02-02T03:39:29.000Z
data/AVA/extract_flow.py
pedro-abreu/twostream-attention
60a47c50b8f2427911e5e30fd6c6f933dbf08a4e
[ "MIT" ]
2
2018-11-14T05:03:56.000Z
2019-02-19T09:06:52.000Z
data/AVA/extract_flow.py
pedro-abreu/twostream-attention
60a47c50b8f2427911e5e30fd6c6f933dbf08a4e
[ "MIT" ]
3
2018-11-14T05:12:24.000Z
2019-03-02T15:01:15.000Z
import os set_type = 'test' OUT_DIR = '/media/pedro/actv-ssd/flow_' + set_type + "_warp/" DATA_DIR = "/media/pedro/actv-ssd/segments_" + set_type + "/" GPU_FLOW_DIR = '../../arch/tvl1_flow/build/' def _process_dataset(): os.system(GPU_FLOW_DIR + "./compute_flow_si_warp --gpuID=0 --type=1 --vid_path=" + ...
22.961538
86
0.624791
83802fedda5bae7f834072b922480bab18cf1730
6,992
py
Python
day22/day22.py
mpirnat/adventofcode
f63ce466b91d5be2687be95fd4ab0b442f1ea5c8
[ "MIT" ]
12
2015-12-02T05:56:36.000Z
2017-11-29T18:58:47.000Z
day22/day22.py
mpirnat/adventofcode
f63ce466b91d5be2687be95fd4ab0b442f1ea5c8
[ "MIT" ]
1
2015-12-06T03:36:18.000Z
2015-12-06T20:52:29.000Z
day22/day22.py
mpirnat/adventofcode
f63ce466b91d5be2687be95fd4ab0b442f1ea5c8
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Solve day 22 of Advent of Code. http://adventofcode.com/day/22 Right now this implementation is somewhat flaky and doesn't reliably find the right winning scenarios but it did produce the right output a couple of times. It should probably be rewritten if I can muster up the energy to care. ...
29.133333
76
0.616848
ab563e0af5bc6a0c402b6bcb67814b1e5305b814
6,909
py
Python
FWD/server.py
Nasfame/Assignments-Masai
0dc95c3fb58849637a7aad4914b92970c9196eca
[ "MIT" ]
1
2020-05-29T09:00:44.000Z
2020-05-29T09:00:44.000Z
FWD/server.py
Nasfame/Assignments-Masai
0dc95c3fb58849637a7aad4914b92970c9196eca
[ "MIT" ]
null
null
null
FWD/server.py
Nasfame/Assignments-Masai
0dc95c3fb58849637a7aad4914b92970c9196eca
[ "MIT" ]
null
null
null
import csv import json from flask import Flask, request flag = False app = Flask(__name__) @app.route('/') def hello_world() : return json.dumps('Hello Guys!')#jwt.encode("jsjd","sdjs") @app.route('/users/details') def listing() : with open('data/users.csv', 'r') as f1 : f1 = csv.DictReader(f1) ...
29.275424
125
0.586916