hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
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
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
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
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
8b8fdfbcf9706a09172ee59fba63e07828a65599
2,492
py
Python
tests/array_creation.py
manopapad/legate.numpy
896f4fd9b32db445da6cdabf7b78d523fca96936
[ "Apache-2.0" ]
null
null
null
tests/array_creation.py
manopapad/legate.numpy
896f4fd9b32db445da6cdabf7b78d523fca96936
[ "Apache-2.0" ]
null
null
null
tests/array_creation.py
manopapad/legate.numpy
896f4fd9b32db445da6cdabf7b78d523fca96936
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 NVIDIA Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wr...
25.428571
74
0.620385
0
0
0
0
0
0
0
0
738
0.296148
8b90aeb5aec1b01857b6aa8b3d9934d4cfdd1543
29,250
py
Python
libs/python/qumranica/models/catalogue_match_dto.py
Scripta-Qumranica-Electronica/SQE_API_Connectors
aaa9b9eb8709d4257c32ea57321a179c6b1e041a
[ "MIT" ]
null
null
null
libs/python/qumranica/models/catalogue_match_dto.py
Scripta-Qumranica-Electronica/SQE_API_Connectors
aaa9b9eb8709d4257c32ea57321a179c6b1e041a
[ "MIT" ]
null
null
null
libs/python/qumranica/models/catalogue_match_dto.py
Scripta-Qumranica-Electronica/SQE_API_Connectors
aaa9b9eb8709d4257c32ea57321a179c6b1e041a
[ "MIT" ]
null
null
null
# coding: utf-8 """ SQE API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v1 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six from qumra...
32.79148
653
0.645675
28,887
0.98759
0
0
21,097
0.721265
0
0
14,751
0.504308
8b914a0a6371ff8952db67b7eee682b5c44c059b
569
py
Python
nengo_ssp/hrr_algebra.py
nsdumont/nengo_ssp
9530a4618e213fb695b52887772c1309d0f07a0b
[ "MIT" ]
null
null
null
nengo_ssp/hrr_algebra.py
nsdumont/nengo_ssp
9530a4618e213fb695b52887772c1309d0f07a0b
[ "MIT" ]
null
null
null
nengo_ssp/hrr_algebra.py
nsdumont/nengo_ssp
9530a4618e213fb695b52887772c1309d0f07a0b
[ "MIT" ]
null
null
null
import numpy as np from nengo_spa.algebras.hrr_algebra import HrrAlgebra from nengo.utils.numpy import is_number class HrrAlgebra(HrrAlgebra): def fractional_bind(self, A, b): """Fractional circular convolution.""" if not is_number(b): raise ValueError("b must be a scalar.") re...
35.5625
62
0.620387
455
0.799649
0
0
0
0
0
0
90
0.158172
8b9247a613a137d9a893fcd8004929a037e3fffd
2,234
py
Python
server.py
Xinzhe-Qi/15112-Term-Project
07a4b78d23629478039667ed4c29287e5e781bf3
[ "MIT" ]
null
null
null
server.py
Xinzhe-Qi/15112-Term-Project
07a4b78d23629478039667ed4c29287e5e781bf3
[ "MIT" ]
null
null
null
server.py
Xinzhe-Qi/15112-Term-Project
07a4b78d23629478039667ed4c29287e5e781bf3
[ "MIT" ]
null
null
null
import socket from _thread import * import pickle from board import Board import time hostname = socket.gethostname() ipAddr = socket.gethostbyname(hostname) print(ipAddr) server = ipAddr port = 5556 s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) try: s.bind((server, port)) except socket.error as e: ...
21.27619
86
0.499552
0
0
0
0
0
0
0
0
158
0.070725
8b93ff57b731c6c33351b57dd2f1b5402cee9a07
72
py
Python
examples/random_article.py
yusufusta/wikiHowUnofficialAPI
e29ae96a2dcf893f5b587804b9dd37a412cdd561
[ "MIT" ]
5
2021-04-17T14:02:58.000Z
2022-03-06T02:18:16.000Z
examples/random_article.py
yusufusta/wikiHowUnofficialAPI
e29ae96a2dcf893f5b587804b9dd37a412cdd561
[ "MIT" ]
1
2021-07-09T12:28:27.000Z
2021-07-10T10:04:11.000Z
examples/random_article.py
yusufusta/wikiHowUnofficialAPI
e29ae96a2dcf893f5b587804b9dd37a412cdd561
[ "MIT" ]
4
2021-02-02T14:23:58.000Z
2021-11-15T04:38:10.000Z
import wikihowunofficialapi as wha ra = wha.random_article() print(ra)
14.4
34
0.791667
0
0
0
0
0
0
0
0
0
0
8b9488221b16161dd9b114f9406bbcd8771818fb
11,341
py
Python
nilmtk/simulate/gaussianstatemachines.py
BaluJr/energytk
e9b06bcb43a40010ccc40a534a7067ee520fb3a7
[ "Apache-2.0" ]
3
2018-11-09T16:13:32.000Z
2019-11-10T20:10:10.000Z
nilmtk/simulate/gaussianstatemachines.py
BaluJr/energytk
e9b06bcb43a40010ccc40a534a7067ee520fb3a7
[ "Apache-2.0" ]
null
null
null
nilmtk/simulate/gaussianstatemachines.py
BaluJr/energytk
e9b06bcb43a40010ccc40a534a7067ee520fb3a7
[ "Apache-2.0" ]
1
2018-10-24T10:28:52.000Z
2018-10-24T10:28:52.000Z
import numpy as np import pandas as pd from nilmtk import TimeFrame import datetime import matplotlib.pyplot as plt # transients['active transition'].cumsum().resample('2s', how='ffill').plot() class GaussianStateMachines(object): """ This class is a basic simulator, which creates sample loads by randomizing...
49.308696
184
0.571907
11,139
0.982189
0
0
0
0
0
0
4,906
0.43259
8b95a94d3b25a23a56d3d3d661b084a44e828fab
543
py
Python
my_gallery/migrations/0006_photos_image.py
Abdihakim-Muhumed/gallery
bfdb58466503bedda6ac4b686afb42b69c055f0c
[ "Unlicense" ]
null
null
null
my_gallery/migrations/0006_photos_image.py
Abdihakim-Muhumed/gallery
bfdb58466503bedda6ac4b686afb42b69c055f0c
[ "Unlicense" ]
null
null
null
my_gallery/migrations/0006_photos_image.py
Abdihakim-Muhumed/gallery
bfdb58466503bedda6ac4b686afb42b69c055f0c
[ "Unlicense" ]
null
null
null
# Generated by Django 3.1.2 on 2020-10-14 07:15 import cloudinary.models from django.db import migrations import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('my_gallery', '0005_auto_20201013_0828'), ] operations = [ migrations.AddField( mod...
24.681818
125
0.655617
404
0.744015
0
0
0
0
0
0
106
0.195212
8b98b8d35fd76526fa88fe1c8a30101c9a8baac3
9,713
py
Python
bot/ts/ThreadSafeTSConnection.py
Asnanon/ts-gw2-verifyBot
4da70450bc53631e61a42d18df36f5aef710cdbe
[ "MIT" ]
null
null
null
bot/ts/ThreadSafeTSConnection.py
Asnanon/ts-gw2-verifyBot
4da70450bc53631e61a42d18df36f5aef710cdbe
[ "MIT" ]
null
null
null
bot/ts/ThreadSafeTSConnection.py
Asnanon/ts-gw2-verifyBot
4da70450bc53631e61a42d18df36f5aef710cdbe
[ "MIT" ]
null
null
null
import logging from threading import RLock from typing import Callable, Tuple, TypeVar import schedule import ts3 from ts3.query import TS3ServerConnection from bot.config import Config LOG = logging.getLogger(__name__) R = TypeVar('R') def default_exception_handler(ex): """ prints the trace and returns the e...
45.176744
171
0.601153
8,601
0.885514
0
0
126
0.012972
0
0
4,164
0.428704
8b9915ff298534b2c620ead53ddd94b9a9c59202
87
py
Python
software/reachy/io/__init__.py
pollen-robotics/reachy-2.0
1721c2d93737e576e328bfdb78376d1b0163d3d6
[ "Apache-1.1" ]
167
2018-02-07T21:42:13.000Z
2021-03-06T08:25:45.000Z
software/reachy/io/__init__.py
pollen-robotics/reachy-2.0
1721c2d93737e576e328bfdb78376d1b0163d3d6
[ "Apache-1.1" ]
39
2019-11-27T13:11:59.000Z
2021-01-12T09:33:26.000Z
software/reachy/io/__init__.py
pollen-robotics/reachy-2.0
1721c2d93737e576e328bfdb78376d1b0163d3d6
[ "Apache-1.1" ]
47
2018-05-27T02:59:28.000Z
2021-03-07T14:56:10.000Z
"""Reachy submodule responsible for low-level IO.""" from .io import IO # noqa F401
17.4
52
0.701149
0
0
0
0
0
0
0
0
63
0.724138
8ba05404268d52ee6b9dcf341a6f596fdbe8cb19
453
py
Python
test/unit/test_wrapper.py
Bowowzahoya/cordis_search
8766717fdd785b2768785b9147e63cac62dfbd43
[ "MIT" ]
null
null
null
test/unit/test_wrapper.py
Bowowzahoya/cordis_search
8766717fdd785b2768785b9147e63cac62dfbd43
[ "MIT" ]
null
null
null
test/unit/test_wrapper.py
Bowowzahoya/cordis_search
8766717fdd785b2768785b9147e63cac62dfbd43
[ "MIT" ]
null
null
null
import pandas as pd from context import * from cordis_search import wrapper as wr TEST_PROJECTS_FILE = pd.read_csv(RESOURCES_FOLDER+"fp7_test_projects.csv", sep=";") print(TEST_PROJECTS_FILE) def test_search(): query = "multiculturalism" selected_projects = wr.search(TEST_PROJECTS_FILE, query) assert se...
25.166667
83
0.766004
0
0
0
0
0
0
0
0
44
0.09713
8ba0eaca96c9b2d167fd14d08ba774e477aea1cb
1,067
py
Python
dpsniper/mechanisms/noisy_hist.py
barryZZJ/dp-sniper
71a3fc06f3fc319b023bde9aad8f05b8c5a47a80
[ "MIT" ]
13
2021-03-30T15:39:35.000Z
2022-02-21T08:30:45.000Z
dpsniper/mechanisms/noisy_hist.py
barryZZJ/dp-sniper
71a3fc06f3fc319b023bde9aad8f05b8c5a47a80
[ "MIT" ]
null
null
null
dpsniper/mechanisms/noisy_hist.py
barryZZJ/dp-sniper
71a3fc06f3fc319b023bde9aad8f05b8c5a47a80
[ "MIT" ]
4
2021-06-30T08:37:45.000Z
2022-03-05T03:21:14.000Z
import numpy as np from dpsniper.mechanisms.abstract import Mechanism class NoisyHist1(Mechanism): """ Alg. 9 from: Zeyu Ding, YuxinWang, GuanhongWang, Danfeng Zhang, and Daniel Kifer. 2018. Detecting Violations of Differential Privacy. CCS 2018. """ def __init__(self, eps: float = 0....
26.02439
82
0.597938
991
0.928772
0
0
0
0
0
0
409
0.383318
8ba24d39fccf745cf193a9313e6f0347c33e72ba
1,122
py
Python
workalendar/europe/georgia.py
macharmi/workalendar
4f8644484d6ba56c66e4bb82c377aa19eccfc0dc
[ "MIT" ]
null
null
null
workalendar/europe/georgia.py
macharmi/workalendar
4f8644484d6ba56c66e4bb82c377aa19eccfc0dc
[ "MIT" ]
null
null
null
workalendar/europe/georgia.py
macharmi/workalendar
4f8644484d6ba56c66e4bb82c377aa19eccfc0dc
[ "MIT" ]
null
null
null
from ..core import OrthodoxCalendar from ..registry_tools import iso_register @iso_register('GE') class Georgia(OrthodoxCalendar): 'Country of Georgia' "Sources: " "https://en.wikipedia.org/wiki/Public_holidays_in_Georgia_(country)" "https://www.officeholidays.com/countries/georgia/2021" include...
30.324324
72
0.646168
1,021
0.909982
0
0
1,041
0.927807
0
0
404
0.360071
8ba29d9fb01d60102507bf5db6c09210143677fa
3,471
py
Python
release/util/splunkbase_releaser.py
xynazog/amp4e_splunk_events_input
a5bb57cf82ca3e96fa9a444e5e5e9789eb16b70b
[ "BSD-2-Clause" ]
9
2017-07-31T16:13:51.000Z
2021-01-06T15:02:36.000Z
release/util/splunkbase_releaser.py
xynazog/amp4e_splunk_events_input
a5bb57cf82ca3e96fa9a444e5e5e9789eb16b70b
[ "BSD-2-Clause" ]
51
2017-10-24T17:25:44.000Z
2022-03-31T16:47:58.000Z
release/util/splunkbase_releaser.py
xynazog/amp4e_splunk_events_input
a5bb57cf82ca3e96fa9a444e5e5e9789eb16b70b
[ "BSD-2-Clause" ]
12
2017-08-01T08:59:39.000Z
2021-02-24T21:10:46.000Z
import os from distutils.dir_util import copy_tree from invoke import task, run import shutil class SplunkbaseReleaser: DIRS_TO_ARCHIVE = ['appserver', 'bin', 'certs', 'default', 'metadata', 'README', 'static'] APP_NAME = 'amp4e_events_input' PATH_TO_PYTHON_LIBS = '/opt/splunk/lib/python3.7/site-packages' ...
34.71
109
0.645923
3,375
0.972342
0
0
638
0.183809
0
0
428
0.123307
8ba46c9ce685361335be0d77dfae9a2dd018991f
2,502
py
Python
sorts.py
zhangxl97/leetcode
aa94228eba86d761ce5c9b6bfb8b2015c1629074
[ "MIT" ]
1
2020-09-12T10:35:22.000Z
2020-09-12T10:35:22.000Z
sorts.py
zhangxl97/leetcode
aa94228eba86d761ce5c9b6bfb8b2015c1629074
[ "MIT" ]
null
null
null
sorts.py
zhangxl97/leetcode
aa94228eba86d761ce5c9b6bfb8b2015c1629074
[ "MIT" ]
null
null
null
from typing import List class sort: def quick(self, nums:List[int]) -> List[int]: if len(nums) >= 2: base = nums[-1] # 选取基准值,可以为任何值 left, right = [], [] nums = nums[:-1] for num in nums: if num >= base: # 大于等于基准值的数存于right ...
26.617021
68
0.406475
2,536
0.903778
0
0
0
0
0
0
632
0.225232
8ba6b11d7fb6854358fc0d437c22f1ff827b55c0
6,622
py
Python
energy_consumption_lstm/data/model.py
DiarmuidKelly/predictors
9087302ab3cc54463807b0777f341b575a8fcc90
[ "MIT" ]
null
null
null
energy_consumption_lstm/data/model.py
DiarmuidKelly/predictors
9087302ab3cc54463807b0777f341b575a8fcc90
[ "MIT" ]
null
null
null
energy_consumption_lstm/data/model.py
DiarmuidKelly/predictors
9087302ab3cc54463807b0777f341b575a8fcc90
[ "MIT" ]
null
null
null
import datetime as dt import numpy as np def calculate_ranges(dataset): arr = np.array(dataset) mean = np.mean(arr, axis=0) min = np.min(arr, axis=0) max = np.max(arr, axis=0) ranges = np.array((min, mean, max)).T return ranges class Record: def __init__(self): self.time_date =...
43.854305
123
0.643914
6,361
0.960586
0
0
0
0
0
0
669
0.101027
8ba7da6d41b49d8a498bec0f19c0c437b815e955
558
py
Python
RecoTracker/CkfPattern/python/CkfTrackCandidatesNoOverlaps_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
RecoTracker/CkfPattern/python/CkfTrackCandidatesNoOverlaps_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
RecoTracker/CkfPattern/python/CkfTrackCandidatesNoOverlaps_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms # TrackerTrajectoryBuilders from RecoTracker.CkfPattern.CkfTrajectoryBuilder_cff import * # TrajectoryCleaning from TrackingTools.TrajectoryCleaning.TrajectoryCleanerBySharedHits_cfi import * # navigation school from RecoTracker.TkNavigation.NavigationSchoolESProducer_cff impor...
39.857143
80
0.844086
0
0
0
0
0
0
0
0
132
0.236559
8ba816e0011648c0f031c8c0072d0e07ef644345
3,639
py
Python
python ex12.py
IMDCGP105-1819/portfolio-s184286
e5485f640f341090823bbcaabe287376a048b2c4
[ "MIT" ]
null
null
null
python ex12.py
IMDCGP105-1819/portfolio-s184286
e5485f640f341090823bbcaabe287376a048b2c4
[ "MIT" ]
null
null
null
python ex12.py
IMDCGP105-1819/portfolio-s184286
e5485f640f341090823bbcaabe287376a048b2c4
[ "MIT" ]
null
null
null
""" Task 3 Write an application that allows you to calculate the cost of a trip. Implement a function called hotel_cost that takes one argument, nights, as input. The hotel costs £70 per night – so return a suitable value. Implement a function called plane_ticket_cost that accepts a string, city, and a float...
34.657143
183
0.687826
0
0
0
0
0
0
0
0
2,575
0.700871
8ba86635b84461a1f0a395b2d0b3f48cfc499bf5
7,050
py
Python
segment_chars.py
indranildchandra/Automatic-Licence-Plate-Recognizer
12abcf40459f8e2d5d7491aedaed2ee3ea1eb1a7
[ "Apache-2.0" ]
1
2020-10-12T12:49:05.000Z
2020-10-12T12:49:05.000Z
segment_chars.py
indranildchandra/Automatic-Licence-Plate-Recognizer
12abcf40459f8e2d5d7491aedaed2ee3ea1eb1a7
[ "Apache-2.0" ]
null
null
null
segment_chars.py
indranildchandra/Automatic-Licence-Plate-Recognizer
12abcf40459f8e2d5d7491aedaed2ee3ea1eb1a7
[ "Apache-2.0" ]
null
null
null
import pandas as pd import numpy as np import cv2 import os import math import pickle from matplotlib import pyplot as plt from PIL import Image from matplotlib.pyplot import imshow # %matplotlib inline def rotate_image(img): # gray = cv2.cvtColor(img,cv2.COLOR_BGR2GRAY) gray = img edges = cv2.Canny(gray,50,150,ap...
31.61435
141
0.699433
0
0
0
0
0
0
0
0
2,016
0.285957
8ba8b01b1342226dbfd45e390f34ba1e3c088e34
123
py
Python
clase1/multiplicadores.py
Munoz-Rojas-Adriana/Computacion_para_Ingenieria
4f695887966a94b6c422d100c2c4ec4a94d1e80e
[ "Apache-2.0" ]
null
null
null
clase1/multiplicadores.py
Munoz-Rojas-Adriana/Computacion_para_Ingenieria
4f695887966a94b6c422d100c2c4ec4a94d1e80e
[ "Apache-2.0" ]
null
null
null
clase1/multiplicadores.py
Munoz-Rojas-Adriana/Computacion_para_Ingenieria
4f695887966a94b6c422d100c2c4ec4a94d1e80e
[ "Apache-2.0" ]
null
null
null
multi = 0 list = (1 , 2 , 3) for i in list: multi = multi + i print (f'la multi total de 1 al 3 es {multi}')
15.375
50
0.528455
0
0
0
0
0
0
0
0
38
0.308943
8ba8ed599cf94b78021c68a977f2d000df6dcd16
2,476
py
Python
aiida_jutools/__init__.py
PhilippRue/aiida-jutools
66070e7077cb454bcfd70dd3327b335499556a16
[ "MIT" ]
5
2020-12-11T13:32:09.000Z
2022-01-19T08:36:40.000Z
aiida_jutools/__init__.py
PhilippRue/aiida-jutools
66070e7077cb454bcfd70dd3327b335499556a16
[ "MIT" ]
7
2021-01-28T10:24:13.000Z
2021-08-18T13:42:47.000Z
aiida_jutools/__init__.py
PhilippRue/aiida-jutools
66070e7077cb454bcfd70dd3327b335499556a16
[ "MIT" ]
5
2020-12-07T17:13:38.000Z
2021-11-25T09:58:48.000Z
# -*- coding: utf-8 -*- # pylint: disable=unused-import ############################################################################### # Copyright (c), Forschungszentrum Jülich GmbH, IAS-1/PGI-1, Germany. # # All rights reserved. # # This file is part of t...
51.583333
117
0.586026
0
0
0
0
0
0
0
0
2,154
0.8696
8bab05cccc2b06bc0e17af38af464fd773e79545
5,358
py
Python
beastx/__main__.py
Mrunal1911/Beast-X
b7b13b3b5db754894a830569909c4b77aa1ff19d
[ "MIT" ]
null
null
null
beastx/__main__.py
Mrunal1911/Beast-X
b7b13b3b5db754894a830569909c4b77aa1ff19d
[ "MIT" ]
null
null
null
beastx/__main__.py
Mrunal1911/Beast-X
b7b13b3b5db754894a830569909c4b77aa1ff19d
[ "MIT" ]
null
null
null
import logging from pathlib import Path from sys import argv import var import telethon.utils from telethon import TelegramClient from telethon import events,Button import os from var import Var from . import beast from telethon.tl import functions from beastx.Configs import Config from telethon.tl.functi...
28.652406
140
0.58044
0
0
0
0
0
0
1,427
0.258843
1,848
0.335208
8bac89c0e7fe595c62cbe29b2411dd910e49d2c2
859
py
Python
tests/day02/test_day02.py
SebastiaanZ/aoc-2019
e1fe4630b0f375be0b79398e07e23b9c0196efbb
[ "MIT" ]
3
2019-12-02T19:38:14.000Z
2020-01-28T00:06:09.000Z
tests/day02/test_day02.py
SebastiaanZ/aoc-2019
e1fe4630b0f375be0b79398e07e23b9c0196efbb
[ "MIT" ]
6
2020-03-24T17:58:40.000Z
2022-03-12T00:18:45.000Z
tests/day02/test_day02.py
SebastiaanZ/aoc-2019
e1fe4630b0f375be0b79398e07e23b9c0196efbb
[ "MIT" ]
null
null
null
import unittest from solutions.day02.solution import ship_computer from tests.helpers import Puzzle class DayTwoTests(unittest.TestCase): """Tests for my solutions to Day 1 of the Advent of Code 2019.""" def test_ship_computer_with_example_data(self): """Test the ship computer used for day 2 using t...
37.347826
99
0.641444
755
0.878929
0
0
0
0
0
0
238
0.277066
8bacb9d61c16b4122f25721e214182358d00a686
24,678
py
Python
ActiveSuspensions/2DOF Fuzzy Suspension.py
MarcoFerrari128/Portfolio
82cd81a4235dbd804cd13100b2304a04ca6771b5
[ "MIT" ]
null
null
null
ActiveSuspensions/2DOF Fuzzy Suspension.py
MarcoFerrari128/Portfolio
82cd81a4235dbd804cd13100b2304a04ca6771b5
[ "MIT" ]
null
null
null
ActiveSuspensions/2DOF Fuzzy Suspension.py
MarcoFerrari128/Portfolio
82cd81a4235dbd804cd13100b2304a04ca6771b5
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt from scipy.integrate import ode import FLC import pyprind from numpy.linalg import eig import pandas as pd def impulse(lenght): i = 0 Impulse = [] while i < lenght: if i == 99: Impulse.append(1) else: Impulse.append...
29.73253
82
0.56678
0
0
0
0
0
0
0
0
7,148
0.289651
8bae7f55a261a7c3c248850c794f2efd73be536a
950
py
Python
pywatts/modules/wrappers/dl_wrapper.py
KIT-IAI/pyWATTS
68993bb51ff272c1a98add31e2b537b63e9d0848
[ "MIT" ]
30
2020-10-04T17:32:58.000Z
2022-03-18T15:06:39.000Z
pywatts/modules/wrappers/dl_wrapper.py
KIT-IAI/pyWATTS
68993bb51ff272c1a98add31e2b537b63e9d0848
[ "MIT" ]
123
2020-10-26T14:42:12.000Z
2022-03-31T09:15:55.000Z
pywatts/modules/wrappers/dl_wrapper.py
KIT-IAI/pyWATTS
68993bb51ff272c1a98add31e2b537b63e9d0848
[ "MIT" ]
7
2020-10-21T15:13:43.000Z
2022-03-07T15:47:49.000Z
# pylint: disable=W0223 # Pylint cannot handle abstract subclasses of abstract base classes from abc import ABC import xarray as xr from pywatts.modules.wrappers.base_wrapper import BaseWrapper class DlWrapper(BaseWrapper, ABC): """ Super class for deep learning framework wrappers :param model: The de...
26.388889
80
0.656842
751
0.790526
0
0
190
0.2
0
0
367
0.386316
8baf2837359bef97c791a3fa5aa72048d1181a43
590
py
Python
examples/parallel_spectra.py
zhaonat/py-maxwell-fd3d
bfa4fb826401b98371fdd9306c5fee2e74e7e545
[ "MIT" ]
3
2022-01-21T03:53:25.000Z
2022-01-23T04:54:43.000Z
examples/parallel_spectra.py
Guowu-Mcgill/py-maxwell-fd3d
bfa4fb826401b98371fdd9306c5fee2e74e7e545
[ "MIT" ]
null
null
null
examples/parallel_spectra.py
Guowu-Mcgill/py-maxwell-fd3d
bfa4fb826401b98371fdd9306c5fee2e74e7e545
[ "MIT" ]
1
2022-01-23T04:54:47.000Z
2022-01-23T04:54:47.000Z
import os,sys Nthread = 1 os.environ["OMP_NUM_THREADS"] = str(Nthread) # export OMP_NUM_THREADS=1 os.environ["OPENBLAS_NUM_THREADS"] = str(Nthread) # export OPENBLAS_NUM_THREADS=1 os.environ["MKL_NUM_THREADS"] = str(Nthread) # export MKL_NUM_THREADS=1 os.environ["VECLIB_MAXIMUM_THREADS"] = str(Nthread) # export VECLIB_...
59
99
0.798305
0
0
0
0
0
0
0
0
417
0.70678
8bb10d5482f7eb91428767e4939740b77a7d3702
2,386
py
Python
Emotional-Recognition-Facial/create_training_classification_set.py
ductai199x/No-more-bad-days
ceb7da2d2464062ad4aea028cdfa98380661702c
[ "Apache-2.0" ]
1
2018-01-18T15:10:40.000Z
2018-01-18T15:10:40.000Z
Emotional-Recognition-Facial/create_training_classification_set.py
ductai199x/No-more-bad-days
ceb7da2d2464062ad4aea028cdfa98380661702c
[ "Apache-2.0" ]
null
null
null
Emotional-Recognition-Facial/create_training_classification_set.py
ductai199x/No-more-bad-days
ceb7da2d2464062ad4aea028cdfa98380661702c
[ "Apache-2.0" ]
null
null
null
import cv2 import glob import random import numpy as np emotions = ["neutral", "anger", "disgust", "happy", "surprise"] fishface = cv2.face.FisherFaceRecognizer_create() #Initialize fisher face classifier data = {} def get_files(emotion): #Define function to get file list, randomly shuffle it and split 80/20 traini...
33.605634
129
0.731769
0
0
0
0
0
0
0
0
624
0.261526
8bb228a7e4380e3d2e78dff77a6e5e75257a88f3
1,109
py
Python
main.py
Zlobin/wp-updater
e10ebbb7ddd2a2398c7a660d134ce8598738fe7d
[ "MIT" ]
null
null
null
main.py
Zlobin/wp-updater
e10ebbb7ddd2a2398c7a660d134ce8598738fe7d
[ "MIT" ]
null
null
null
main.py
Zlobin/wp-updater
e10ebbb7ddd2a2398c7a660d134ce8598738fe7d
[ "MIT" ]
null
null
null
# python3 main.py import urllib.request import zipfile import os import shutil # @TODO change it # eg.: /var/www/blog OLD_WP_PATH = '' NEW_WP_PATH_TMP = '' if not (os.path.exists(OLD_WP_PATH)) or not (os.path.exists(NEW_WP_PATH_TMP)): os._exit(0) WP_URL = 'http://wordpress.org/latest.zip' EXTRACTED_NAME = 'wordpr...
27.04878
97
0.757439
0
0
0
0
0
0
0
0
354
0.319206
8bb2c815f8cb9c7313bf196f810ccfc535e6256b
435
py
Python
第4章/program/Chapter_4_compare.py
kingname/SourceCodeOfBook
ab7275108994dca564905818b678bbd2f771c18e
[ "MIT" ]
274
2018-10-01T11:07:25.000Z
2022-03-17T13:48:45.000Z
第4章/program/Chapter_4_compare.py
kingname/SourceCodeOfBook
ab7275108994dca564905818b678bbd2f771c18e
[ "MIT" ]
6
2019-02-28T14:18:21.000Z
2022-03-02T14:57:39.000Z
第4章/program/Chapter_4_compare.py
kingname/SourceCodeOfBook
ab7275108994dca564905818b678bbd2f771c18e
[ "MIT" ]
110
2018-10-16T06:08:37.000Z
2022-03-16T08:19:29.000Z
import requests import time from multiprocessing.dummy import Pool def query(url): requests.get(url) start = time.time() for i in range(100): query('https://baidu.com') end = time.time() print(f'单线程循环访问100次百度,耗时:{end - start}') start = time.time() url_list = [] for i in range(100): url_list.append('http...
18.125
40
0.682759
0
0
0
0
0
0
0
0
152
0.313402
8bb336feea80faaae86bf909a42bb1e797a4c310
702
py
Python
hole/migrations/0008_auto_20210128_1959.py
kavinzhao/fduhole
508922cfa0558c58b95206dd8fbf51d10525fa1e
[ "Apache-2.0" ]
9
2021-04-14T12:08:38.000Z
2021-12-16T08:14:40.000Z
hole/migrations/0008_auto_20210128_1959.py
kavinzhao/fduhole
508922cfa0558c58b95206dd8fbf51d10525fa1e
[ "Apache-2.0" ]
9
2021-04-18T09:48:25.000Z
2021-11-26T07:43:22.000Z
hole/migrations/0008_auto_20210128_1959.py
kavinzhao/fduhole
508922cfa0558c58b95206dd8fbf51d10525fa1e
[ "Apache-2.0" ]
4
2021-07-15T02:10:42.000Z
2022-01-22T02:12:11.000Z
# Generated by Django 3.1.5 on 2021-01-28 11:59 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('hole', '0007_auto_20210126_2138'), ] operations = [ migrations.RemoveField( model_name='post', name='number', ...
24.206897
73
0.566952
609
0.867521
0
0
0
0
0
0
133
0.189459
8bb369887e18a7fa4f7256d2ff77d3ccf9f84c6a
5,607
py
Python
nfv/nfv-vim/nfv_vim/nfvi/api/v1/_nfvi_network_api.py
SidneyAn/nfv
5f0262a5b6ea4be59f977b9c587c483cbe0e373d
[ "Apache-2.0" ]
2
2020-02-07T19:01:36.000Z
2022-02-23T01:41:46.000Z
nfv/nfv-vim/nfv_vim/nfvi/api/v1/_nfvi_network_api.py
SidneyAn/nfv
5f0262a5b6ea4be59f977b9c587c483cbe0e373d
[ "Apache-2.0" ]
1
2021-01-14T12:02:25.000Z
2021-01-14T12:02:25.000Z
nfv/nfv-vim/nfv_vim/nfvi/api/v1/_nfvi_network_api.py
SidneyAn/nfv
5f0262a5b6ea4be59f977b9c587c483cbe0e373d
[ "Apache-2.0" ]
2
2021-01-13T08:39:21.000Z
2022-02-09T00:21:55.000Z
# # Copyright (c) 2015-2016 Wind River Systems, Inc. # # SPDX-License-Identifier: Apache-2.0 # import abc import six @six.add_metaclass(abc.ABCMeta) class NFVINetworkAPI(object): """ Abstract NFVI Network API Class Definition """ @abc.abstractproperty def name(self): """ Returns th...
24.809735
85
0.574817
5,455
0.972891
0
0
5,487
0.978598
0
0
1,962
0.34992
8bb4b5b36380f83dc59bb259a75e2877488cbe5c
750
py
Python
array/max_subarray.py
elenaborisova/LeetCode-Solutions
98376aab7fd150a724e316357ae5ea46988d9eac
[ "MIT" ]
null
null
null
array/max_subarray.py
elenaborisova/LeetCode-Solutions
98376aab7fd150a724e316357ae5ea46988d9eac
[ "MIT" ]
null
null
null
array/max_subarray.py
elenaborisova/LeetCode-Solutions
98376aab7fd150a724e316357ae5ea46988d9eac
[ "MIT" ]
null
null
null
# DP; Time: O(n); Space: O(1) def max_subarray(nums): for i in range(1, len(nums)): if nums[i - 1] > 0: nums[i] += nums[i - 1] return max(nums) # Time: O(n); Space: O(1) def max_subarray2(nums): max_sum = nums[0] curr_sum = nums[0] for i in range(len(nums)): if curr_s...
22.058824
57
0.52
0
0
0
0
0
0
0
0
146
0.194667
8bb4f4ea88058eb0410caa3dc14fb32b876055fc
4,696
py
Python
python/trezorlib/cosi.py
Kayuii/trezor-crypto
6556616681a4e2d7e18817e8692d4f6e041dee01
[ "MIT" ]
null
null
null
python/trezorlib/cosi.py
Kayuii/trezor-crypto
6556616681a4e2d7e18817e8692d4f6e041dee01
[ "MIT" ]
1
2019-02-08T00:22:42.000Z
2019-02-13T09:41:54.000Z
python/trezorlib/cosi.py
Kayuii/trezor-crypto
6556616681a4e2d7e18817e8692d4f6e041dee01
[ "MIT" ]
2
2019-02-07T23:57:09.000Z
2020-10-21T07:07:27.000Z
# This file is part of the Trezor project. # # Copyright (C) 2012-2018 SatoshiLabs and contributors # # This library is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License version 3 # as published by the Free Software Foundation. # # This library is distrib...
33.784173
105
0.70379
0
0
0
0
426
0.090716
0
0
1,977
0.420997
8bb52f491af72661c47a685434d4940a457e1a8b
2,881
py
Python
workflow/scripts/modifyFastQC.py
StephenRicher/RNA-Flow
57890772cb95beb390990618eb02f5d6e138312b
[ "MIT" ]
null
null
null
workflow/scripts/modifyFastQC.py
StephenRicher/RNA-Flow
57890772cb95beb390990618eb02f5d6e138312b
[ "MIT" ]
null
null
null
workflow/scripts/modifyFastQC.py
StephenRicher/RNA-Flow
57890772cb95beb390990618eb02f5d6e138312b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Create new FastQC zip directory with a new sample name for multiQC.""" import os import sys import logging import zipfile import tempfile import argparse __version__ = '1.0.0' def main(zipIn, zipOut, sample, **kwargs): with tempfile.TemporaryDirectory() as tmpDir: # Create...
34.710843
94
0.637279
0
0
0
0
0
0
0
0
820
0.284623
8bb63310aa365a92b778a469e0b31fbf329b889f
7,711
py
Python
v0/aia_eis_v0/circuits/circuit_pack_01.py
DreamBoatOve/aia_eis
458b4d29846669b10db4da1b3e86c0b394614ceb
[ "MIT" ]
1
2022-03-02T12:57:19.000Z
2022-03-02T12:57:19.000Z
v0/aia_eis_v0/circuits/circuit_pack_01.py
DreamBoatOve/aia_eis
458b4d29846669b10db4da1b3e86c0b394614ceb
[ "MIT" ]
null
null
null
v0/aia_eis_v0/circuits/circuit_pack_01.py
DreamBoatOve/aia_eis
458b4d29846669b10db4da1b3e86c0b394614ceb
[ "MIT" ]
null
null
null
from circuits.elements import ele_C as C from circuits.elements import ele_L as L from circuits.elements import ele_Warburg as WB from circuits.elements import ele_Q as Q """ 支惠在原始的几个电路基础上新加了很多简单的单路,之后有空再去合并 """ """ Define all the circuits used in this project Python 电路模型函数名 命名规则: ‘a’ == ‘(’; ‘b’ == ‘)’,直...
26.317406
126
0.489171
0
0
0
0
0
0
0
0
2,877
0.366264
8bb6d2bd0e69ae1dc3728d097c16522641fbedbf
1,155
py
Python
devlib/exception.py
BayLibre/devlib
efa0ecdfe931caebc9a7dab16bb172b96c3f92cb
[ "Apache-2.0" ]
1
2021-06-19T09:32:50.000Z
2021-06-19T09:32:50.000Z
devlib/exception.py
BayLibre/devlib
efa0ecdfe931caebc9a7dab16bb172b96c3f92cb
[ "Apache-2.0" ]
1
2016-02-08T11:27:34.000Z
2016-02-08T11:27:34.000Z
devlib/exception.py
BayLibre/devlib
efa0ecdfe931caebc9a7dab16bb172b96c3f92cb
[ "Apache-2.0" ]
3
2015-12-15T11:28:06.000Z
2016-03-04T16:36:19.000Z
# Copyright 2013-2015 ARM Limited # # 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 w...
28.170732
101
0.732468
482
0.417316
0
0
0
0
0
0
796
0.689177
8bb84845a4e4ca234bb0e7dc0448fc8b70e6253a
843
py
Python
chill/examples/chill/testcases/lu.py
CompOpt4Apps/Artifact-DataDepSimplify
4fa1bf2bda2902fec50a54ee79ae405a554fc9f4
[ "MIT" ]
5
2019-05-20T03:35:41.000Z
2021-09-16T22:22:13.000Z
chill/examples/chill/testcases/lu.py
CompOpt4Apps/Artifact-DataDepSimplify
4fa1bf2bda2902fec50a54ee79ae405a554fc9f4
[ "MIT" ]
null
null
null
chill/examples/chill/testcases/lu.py
CompOpt4Apps/Artifact-DataDepSimplify
4fa1bf2bda2902fec50a54ee79ae405a554fc9f4
[ "MIT" ]
null
null
null
# LAPACK optimization strategy for LU factorization. from chill import * source('lu.c') procedure('lu') loop(0) TJ = 64 original() tile(1, 3, TJ, 1) split(1, 2, 'L1-L2>=2') #t2-t4>=2 permute(3, 2, [2,4,3]) # mini-LU permute(1, 2, [3,4,2]) # other than mini-LU split(1, 2, 'L2>=L1-1') # seperate MM by t4 >= t2-1 # no...
17.204082
52
0.578885
0
0
0
0
0
0
0
0
226
0.26809
8bb882a476b7069df7988169620b13ea93893010
2,204
py
Python
dj_vercereg/client/vercereg_client.py
davidath/dj-vercereg
d1ae1dba21cab93c759ecf79346bc60c2d88d7a8
[ "Apache-2.0" ]
null
null
null
dj_vercereg/client/vercereg_client.py
davidath/dj-vercereg
d1ae1dba21cab93c759ecf79346bc60c2d88d7a8
[ "Apache-2.0" ]
null
null
null
dj_vercereg/client/vercereg_client.py
davidath/dj-vercereg
d1ae1dba21cab93c759ecf79346bc60c2d88d7a8
[ "Apache-2.0" ]
1
2022-03-14T13:33:19.000Z
2022-03-14T13:33:19.000Z
#!/usr/bin/env python # Copyright 2014 The University of Edinburgh # # 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 a...
32.895522
169
0.720054
204
0.092559
0
0
0
0
0
0
1,305
0.592105
8bb96428aea103e57829628f8aba75da646487e4
6,803
py
Python
scripts/DailyJob/api_data_fetcher.py
SamFangshan/CZ2006CarPark
663b0370e7d2e0cbe4d0a7391656a731fc7dac52
[ "MIT" ]
2
2020-02-26T03:28:02.000Z
2020-04-25T07:03:36.000Z
scripts/DailyJob/api_data_fetcher.py
SamFangshan/CZ2006CarPark
663b0370e7d2e0cbe4d0a7391656a731fc7dac52
[ "MIT" ]
null
null
null
scripts/DailyJob/api_data_fetcher.py
SamFangshan/CZ2006CarPark
663b0370e7d2e0cbe4d0a7391656a731fc7dac52
[ "MIT" ]
null
null
null
import json import pandas as pd import numpy as np from urllib.request import Request, urlopen from onemap_converter import OneMapConverter def load_HDB_carpark(): converter = OneMapConverter('FJIANG003@e.ntu.edu.sg', 'XS4teTdcYz') # Load HDB Carpark Information url_HDB_carpark = 'https://data.gov.sg/api/...
58.646552
129
0.66456
0
0
0
0
0
0
0
0
2,228
0.327503
8bba17146d82323f502dee13164e2dcf746f9322
4,108
py
Python
tests/push/test_sse.py
cfogg/python-client
40e6891c8240e6b2acd5df538e622e9f15de43d6
[ "Apache-2.0" ]
13
2017-03-17T15:15:20.000Z
2022-03-14T22:24:10.000Z
tests/push/test_sse.py
cfogg/python-client
40e6891c8240e6b2acd5df538e622e9f15de43d6
[ "Apache-2.0" ]
81
2017-01-12T23:06:48.000Z
2022-02-21T18:20:23.000Z
tests/push/test_sse.py
cfogg/python-client
40e6891c8240e6b2acd5df538e622e9f15de43d6
[ "Apache-2.0" ]
14
2017-05-25T10:49:13.000Z
2021-12-27T16:39:20.000Z
"""SSEClient unit tests.""" import time import threading import pytest from splitio.push.sse import SSEClient, SSEEvent from tests.helpers.mockserver import SSEMockServer class SSEClientTests(object): """SSEClient test cases.""" def test_sse_client_disconnects(self): """Test correct initialization. ...
31.844961
73
0.547955
3,933
0.9574
0
0
0
0
0
0
940
0.228822
8bbca367e9908a584ebeb0ff48984d79eb8c67ba
859
py
Python
api_updater.py
jpes707/quiz-api
18af31b9cdba8927e4e7a38e0bd3623e938cf7dc
[ "MIT" ]
null
null
null
api_updater.py
jpes707/quiz-api
18af31b9cdba8927e4e7a38e0bd3623e938cf7dc
[ "MIT" ]
null
null
null
api_updater.py
jpes707/quiz-api
18af31b9cdba8927e4e7a38e0bd3623e938cf7dc
[ "MIT" ]
null
null
null
import os from mongo_config import questions_collection, client def get_relative_path(*args): return os.path.join(os.path.dirname(os.path.abspath(__file__)), *args) questions_collection.delete_many({}) # clears all questions in MongoDB question_objects = [] lines = [line[:-1] for line in open(get_relative_path(...
37.347826
99
0.733411
0
0
0
0
0
0
0
0
170
0.197905
8bbcec0ab14f44786258536c11d18bbc453834f6
2,429
py
Python
util.py
AndreasWieg/PC-BIGAN
0738f9bf56bd30b43eb2db9765ce9bae25ca81f6
[ "MIT" ]
null
null
null
util.py
AndreasWieg/PC-BIGAN
0738f9bf56bd30b43eb2db9765ce9bae25ca81f6
[ "MIT" ]
null
null
null
util.py
AndreasWieg/PC-BIGAN
0738f9bf56bd30b43eb2db9765ce9bae25ca81f6
[ "MIT" ]
null
null
null
import numpy as np import random from plyfile import PlyData, PlyElement import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D from pyntcloud import PyntCloud import os import sys import re def shuffle_data(training_data): np.random.shuffle(training_data) return training_data def save_poin...
37.369231
107
0.691231
0
0
0
0
0
0
0
0
555
0.228489
8bbd00b53513bf84f5c58a5ce90fbc7b1806da00
7,474
py
Python
seq_to_seq.py
jlibovicky/char-nmt-two-step-decoder
3fa90c38556f23568f6b88eb98e4bc2193f3b744
[ "BSD-3-Clause" ]
null
null
null
seq_to_seq.py
jlibovicky/char-nmt-two-step-decoder
3fa90c38556f23568f6b88eb98e4bc2193f3b744
[ "BSD-3-Clause" ]
null
null
null
seq_to_seq.py
jlibovicky/char-nmt-two-step-decoder
3fa90c38556f23568f6b88eb98e4bc2193f3b744
[ "BSD-3-Clause" ]
null
null
null
"""Encoder-decoder model.""" from typing import List, Tuple, Union import torch import torch.nn as nn from encoder import Encoder, VanillaEncoder from decoder import Decoder, VanillaDecoder T = torch.Tensor def compute_attention_entropy( att_matrix: T, query_mask: T) -> float: # att matrix is: batch ...
37.18408
77
0.596602
6,617
0.885336
0
0
2,434
0.325662
0
0
489
0.065427
8bbe4c37ae3a9b71342799d82ae3b600239ac59b
2,638
py
Python
src/backends/example_mongodb/database.py
rartino/python-optimade-server
84457091c7ec0db52a7e034bb6a7cd4bcbdd4e57
[ "MIT" ]
null
null
null
src/backends/example_mongodb/database.py
rartino/python-optimade-server
84457091c7ec0db52a7e034bb6a7cd4bcbdd4e57
[ "MIT" ]
null
null
null
src/backends/example_mongodb/database.py
rartino/python-optimade-server
84457091c7ec0db52a7e034bb6a7cd4bcbdd4e57
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # Copyright 2019 Rickard Armiento # # This file is part of a Python candidate reference implementation of # the optimade API [https://www.optimade.org/] # # Permission is hereby granted, free of charge, to any person # obtaining a copy of this software and associated documentation files # (the "...
35.173333
97
0.674375
1,362
0.5163
0
0
0
0
0
0
1,228
0.465504
8bbe4fd060a6878adde13a88356535b7bfb0e331
29,288
py
Python
tests/utils.py
Ouranosinc/cowbird
108195ca6abbd58fd75b180f6fa7d40eab0f8ea5
[ "MIT" ]
1
2021-02-04T18:56:36.000Z
2021-02-04T18:56:36.000Z
tests/utils.py
Ouranosinc/cowbird
108195ca6abbd58fd75b180f6fa7d40eab0f8ea5
[ "MIT" ]
12
2021-02-05T22:01:10.000Z
2022-03-09T14:23:10.000Z
tests/utils.py
Ouranosinc/cowbird
108195ca6abbd58fd75b180f6fa7d40eab0f8ea5
[ "MIT" ]
null
null
null
import functools import json as json_pkg # avoid conflict name with json argument employed for some function import os from distutils.version import LooseVersion from typing import TYPE_CHECKING from urllib.parse import urlparse import mock import requests import requests.exceptions from pyramid.httpexceptions import...
44.042105
120
0.651974
2,992
0.102158
0
0
232
0.007921
0
0
13,281
0.453462
8bc1dc764cc3286fa9cb0c9dbac2a3360dc97788
764
py
Python
sqds/jobs/update_guilds.py
abey79/sqds
acab1d9c6d4a010fff9d8e89a5fdd9d94def7c89
[ "MIT" ]
null
null
null
sqds/jobs/update_guilds.py
abey79/sqds
acab1d9c6d4a010fff9d8e89a5fdd9d94def7c89
[ "MIT" ]
null
null
null
sqds/jobs/update_guilds.py
abey79/sqds
acab1d9c6d4a010fff9d8e89a5fdd9d94def7c89
[ "MIT" ]
null
null
null
from django.utils import timezone from django_extensions.management.jobs import BaseJob from ..models import Player, Guild def update_guild(ally_code): should_execute = False try: player = Player.objects.get(ally_code=ally_code) guild = player.guild; since_last_update = timezone.now()...
27.285714
70
0.704188
170
0.222513
0
0
0
0
0
0
51
0.066754
8bc3ea498abafb408b2345871e2adf30ac6a71a4
1,907
py
Python
src/saleor_app/install.py
przlada/saleor-app-framework-python
3a561c93bf586b4210e7b3c4d2db3408046a9599
[ "BSD-3-Clause" ]
20
2021-05-18T18:05:25.000Z
2022-03-02T00:39:15.000Z
src/saleor_app/install.py
przlada/saleor-app-framework-python
3a561c93bf586b4210e7b3c4d2db3408046a9599
[ "BSD-3-Clause" ]
13
2021-10-19T19:05:24.000Z
2022-03-22T13:17:55.000Z
src/saleor_app/install.py
przlada/saleor-app-framework-python
3a561c93bf586b4210e7b3c4d2db3408046a9599
[ "BSD-3-Clause" ]
11
2021-06-09T21:24:56.000Z
2022-03-12T17:33:30.000Z
import logging import secrets import string from typing import Awaitable, Callable, List from saleor_app.conf import get_settings from saleor_app.errors import InstallAppError from saleor_app.graphql import GraphQLError, get_executor, get_saleor_api_url from saleor_app.mutations import CREATE_WEBHOOK from saleor_app.s...
31.783333
80
0.678553
0
0
0
0
0
0
1,488
0.780283
289
0.151547
8bc41c33e45aca9a963dba5e594b74e5dcb92d03
64,465
py
Python
sdk/python/pulumi_aws/fsx/open_zfs_file_system.py
chivandikwa/pulumi-aws
19c08bf9dcb90544450ffa4eec7bf6751058fde2
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/fsx/open_zfs_file_system.py
chivandikwa/pulumi-aws
19c08bf9dcb90544450ffa4eec7bf6751058fde2
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/fsx/open_zfs_file_system.py
chivandikwa/pulumi-aws
19c08bf9dcb90544450ffa4eec7bf6751058fde2
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** 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...
56.30131
550
0.694982
63,983
0.992523
0
0
59,088
0.91659
0
0
33,779
0.52399
8bc5033e6745dd8bddb7a355569fc61f7cd99932
1,410
py
Python
tools/other/syn.py
fengjixuchui/geospy
12ff83372a7e128babd8f16c357672d1495022c8
[ "MIT" ]
1
2019-11-12T05:53:25.000Z
2019-11-12T05:53:25.000Z
tools/other/syn.py
fengjixuchui/geospy
12ff83372a7e128babd8f16c357672d1495022c8
[ "MIT" ]
null
null
null
tools/other/syn.py
fengjixuchui/geospy
12ff83372a7e128babd8f16c357672d1495022c8
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import random import time from scapy.all import IP, TCP, send from threading import Thread # Import modules for SYN flood import tools.randomData as randomData def SYN_ATTACK(threads, attack_time, target): # Finish global FINISH FINISH = False target_ip = target.split(":")[0] target_port ...
23.114754
78
0.668085
0
0
0
0
0
0
0
0
334
0.236879
8bc5c14508eaa101207214cbf9fa6cdfc7a9bf62
19,405
py
Python
NIQ_uncompiled/source_code/check_valid.py
wxhawkins/NestIQ
3a004d330e2c68b0c7eb0b0676bc4d044e52cbe4
[ "Apache-2.0" ]
null
null
null
NIQ_uncompiled/source_code/check_valid.py
wxhawkins/NestIQ
3a004d330e2c68b0c7eb0b0676bc4d044e52cbe4
[ "Apache-2.0" ]
null
null
null
NIQ_uncompiled/source_code/check_valid.py
wxhawkins/NestIQ
3a004d330e2c68b0c7eb0b0676bc4d044e52cbe4
[ "Apache-2.0" ]
null
null
null
import time import datetime as dt from pathlib import Path from tkinter import messagebox import re import niq_misc import math import traceback from niq_misc import replace_entry def check_valid_vertex_file(gui): """ Checks user-provided vertex selection file (HTML) for issues that could cause errors wi...
38.198819
171
0.588199
0
0
0
0
0
0
0
0
7,656
0.394537
8bca7c3ef84914924b0c15217d9b07d51210a502
395
py
Python
xrobot_launcher.py
martinRenou/xeus-robot-wheel
e14034c9e7c15417b9b125d3b03f660606df0b4e
[ "BSD-3-Clause" ]
null
null
null
xrobot_launcher.py
martinRenou/xeus-robot-wheel
e14034c9e7c15417b9b125d3b03f660606df0b4e
[ "BSD-3-Clause" ]
null
null
null
xrobot_launcher.py
martinRenou/xeus-robot-wheel
e14034c9e7c15417b9b125d3b03f660606df0b4e
[ "BSD-3-Clause" ]
null
null
null
if __name__ == '__main__': def _xrobot_get_connection_filename(): import argparse parser = argparse.ArgumentParser() parser.add_argument('-f', help='Jupyter kernel connection filename') args, unknown = parser.parse_known_args() return args.f from xrobot import launch as ...
35.909091
76
0.701266
0
0
0
0
0
0
0
0
52
0.131646
8bcfdd9c7b143588acd04d3d0910371718e911e3
2,977
py
Python
amodem/sampling.py
Matthew-MK/amodem
a75dda9ab0f7445589a036357e604703ccb34726
[ "MIT" ]
766
2015-01-14T15:48:07.000Z
2022-03-30T01:19:48.000Z
amodem/sampling.py
Matthew-MK/amodem
a75dda9ab0f7445589a036357e604703ccb34726
[ "MIT" ]
42
2015-01-02T18:50:11.000Z
2022-03-11T19:10:35.000Z
amodem/sampling.py
Matthew-MK/amodem
a75dda9ab0f7445589a036357e604703ccb34726
[ "MIT" ]
116
2015-01-14T20:43:52.000Z
2022-03-24T13:10:30.000Z
import itertools import numpy as np from . import common class Interpolator: def __init__(self, resolution=1024, width=128): self.width = width self.resolution = resolution N = resolution * width u = np.arange(-N, N, dtype=float) window = np.cos(0.5 * np.pi * u / N) **...
32.010753
75
0.555929
2,690
0.903594
0
0
0
0
0
0
498
0.167282
8bcfe7bd84165cc2d8ec0ab76054e252d5ad9337
2,913
py
Python
rando/core/models.py
camillemonchicourt/Geotrek-rando
df92c0f19ca37ea1750d934cedafcdb23325bc95
[ "BSD-2-Clause" ]
null
null
null
rando/core/models.py
camillemonchicourt/Geotrek-rando
df92c0f19ca37ea1750d934cedafcdb23325bc95
[ "BSD-2-Clause" ]
null
null
null
rando/core/models.py
camillemonchicourt/Geotrek-rando
df92c0f19ca37ea1750d934cedafcdb23325bc95
[ "BSD-2-Clause" ]
null
null
null
import os import json import datetime from easydict import EasyDict as edict from django.conf import settings from rando import logger from rando.core import classproperty class JSONManager(object): def __init__(self, klass=object, filepath='', language=None, use_tmp=False): self.klass = klass s...
27.481132
93
0.632338
2,724
0.935118
0
0
1,250
0.429111
0
0
387
0.132853
8bd1ed48c83c831815502fd8f24e3c648f5c81ee
3,741
py
Python
libs/dungeon.py
IdeaBot/explorer
2cd02cacb2a37f3da3308e79e88f8c26f4401b8e
[ "MIT" ]
null
null
null
libs/dungeon.py
IdeaBot/explorer
2cd02cacb2a37f3da3308e79e88f8c26f4401b8e
[ "MIT" ]
null
null
null
libs/dungeon.py
IdeaBot/explorer
2cd02cacb2a37f3da3308e79e88f8c26f4401b8e
[ "MIT" ]
null
null
null
''' Dungeon object class created 2019-03-19 by NGnius ''' # import math import random DEFAULT_SIZE = 16 WIDTH = 42 ANIMATION_CHAR = '*' BLANK_CHAR = '.' PORTAL_CHAR = '0' class Dungeon(): def __init__(self, size=DEFAULT_SIZE, level=1): self.WIDTH = WIDTH self.size = size self.level = leve...
35.971154
159
0.555199
3,566
0.953221
0
0
0
0
0
0
346
0.092489
8bd259e0e2d2b9af5c910c05de23636129ffb891
113
py
Python
01_Language/01_Functions/python/fflush.py
cliff363825/TwentyFour
09df59bd5d275e66463e343647f46027397d1233
[ "MIT" ]
3
2020-06-28T07:42:51.000Z
2021-01-15T10:32:11.000Z
01_Language/01_Functions/python/fflush.py
cliff363825/TwentyFour
09df59bd5d275e66463e343647f46027397d1233
[ "MIT" ]
9
2021-03-10T22:45:40.000Z
2022-02-27T06:53:20.000Z
01_Language/01_Functions/python/fflush.py
cliff363825/TwentyFour
09df59bd5d275e66463e343647f46027397d1233
[ "MIT" ]
1
2021-01-15T10:51:24.000Z
2021-01-15T10:51:24.000Z
# coding: utf-8 f = open("test.txt", mode="r+") f.write("hello world") f.flush() f.truncate(f.tell()) f.close()
14.125
31
0.610619
0
0
0
0
0
0
0
0
42
0.371681
8bd2af77c54189a911eb6a57a33e86e0c8005dbd
10,917
py
Python
scrapyproject/showingspiders/toho_v2.py
gas1121/JapanCinemaStatusSpider
67c7b963914565589f64dd1bcf18839a4160ea34
[ "MIT" ]
2
2018-06-07T13:28:03.000Z
2018-12-10T14:04:53.000Z
scrapyproject/showingspiders/toho_v2.py
gas1121/JapanCinemaStatusSpider
67c7b963914565589f64dd1bcf18839a4160ea34
[ "MIT" ]
null
null
null
scrapyproject/showingspiders/toho_v2.py
gas1121/JapanCinemaStatusSpider
67c7b963914565589f64dd1bcf18839a4160ea34
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import unicodedata import json import arrow import scrapy from scrapyproject.showingspiders.showing_spider import ShowingSpider from scrapyproject.items import (ShowingLoader, init_show_booking_loader) from scrapyproject.utils import TohoUtil class TohoV2Spider(ShowingSpider): """ Toho...
45.298755
79
0.646973
10,661
0.9753
1,951
0.178483
0
0
0
0
3,590
0.328424
8bd49f53da7caa09d61a988bf0e05ae48ef80b17
947
py
Python
tasks.py
ggrbill/fortran-examples
a790462fa3956a65505d4f529556f81cd5b0de95
[ "MIT" ]
null
null
null
tasks.py
ggrbill/fortran-examples
a790462fa3956a65505d4f529556f81cd5b0de95
[ "MIT" ]
null
null
null
tasks.py
ggrbill/fortran-examples
a790462fa3956a65505d4f529556f81cd5b0de95
[ "MIT" ]
null
null
null
from invoke import task @task() def clean(ctx): """ Delete 'build' folder. """ print("Cleaning!") ctx.run("rm -Rf build") @task( help = { 'cclean': "Call Clean task (Delete 'build' folder) before build again." } ) def build(ctx, cclean=False): """ Build Fortran95 code. """ if cclean: ...
18.211538
74
0.583949
0
0
0
0
909
0.959873
0
0
519
0.548046
8bd4b1d2130b763d822163e0d5fcb7c191a3f224
203
py
Python
aristotle_json_editor/apps.py
aristotle-mdr/json-metadata-editor
2d97bea85c822d2e7b59fc8d96ca3eaa3b1ed916
[ "MIT" ]
null
null
null
aristotle_json_editor/apps.py
aristotle-mdr/json-metadata-editor
2d97bea85c822d2e7b59fc8d96ca3eaa3b1ed916
[ "MIT" ]
1
2017-07-25T09:44:11.000Z
2017-07-25T09:44:11.000Z
aristotle_json_editor/apps.py
aristotle-mdr/json-metadata-editor
2d97bea85c822d2e7b59fc8d96ca3eaa3b1ed916
[ "MIT" ]
null
null
null
from aristotle_mdr.apps import AristotleExtensionBaseConfig class AristotleJSONEditorConfig(AristotleExtensionBaseConfig): name = 'aristotle_json_editor' verbose_name = "Aristotle JSON Editor"
29
62
0.832512
140
0.689655
0
0
0
0
0
0
46
0.226601
8bd58dcecb3710fe85f09d22baab6422be4f4f1c
323
py
Python
fairlearn/reductions/_exponentiated_gradient/__init__.py
arita37/fairlearn
8f2cb25ca6a0c0aadcff90b927936de6d53ff5fa
[ "MIT" ]
2
2019-11-30T09:02:42.000Z
2019-12-02T10:24:29.000Z
fairlearn/reductions/_exponentiated_gradient/__init__.py
arita37/fairlearn
8f2cb25ca6a0c0aadcff90b927936de6d53ff5fa
[ "MIT" ]
null
null
null
fairlearn/reductions/_exponentiated_gradient/__init__.py
arita37/fairlearn
8f2cb25ca6a0c0aadcff90b927936de6d53ff5fa
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. from .exponentiated_gradient import ExponentiatedGradient # noqa: F401 from .exponentiated_gradient import ExponentiatedGradientResult # noqa: F401 __all__ = [ "ExponentiatedGradient", "ExponentiatedGradientResult"...
29.363636
77
0.79257
0
0
0
0
0
0
0
0
168
0.520124
8bd6939b53a3043718695a488bbde929cd4e44d7
423
py
Python
akagi/contents/__init__.py
pauchan/akagi
7cf1f5a52b8f1ebfdc74a527bf6b26254f99343b
[ "MIT" ]
26
2017-05-18T11:52:04.000Z
2018-08-25T22:03:07.000Z
akagi/contents/__init__.py
pauchan/akagi
7cf1f5a52b8f1ebfdc74a527bf6b26254f99343b
[ "MIT" ]
325
2017-05-08T07:22:28.000Z
2022-03-31T15:43:18.000Z
akagi/contents/__init__.py
pauchan/akagi
7cf1f5a52b8f1ebfdc74a527bf6b26254f99343b
[ "MIT" ]
7
2017-05-02T02:06:15.000Z
2020-04-09T05:32:11.000Z
# -*- coding: utf-8 -*- from akagi.contents import s3_content from akagi.contents import local_file_content from akagi.contents import spreadsheet_content from akagi.contents import url_content from akagi.contents.s3_content import S3Content from akagi.contents.local_file_content import LocalFileContent from akagi.co...
35.25
65
0.858156
0
0
0
0
0
0
0
0
23
0.054374
8bd769344a472b553f48b5163b0040a5e6c76aa3
4,313
py
Python
src/advent/year2019/intcode.py
davidism/advent
761756f179c3547f44ec035880f29f58d80903f8
[ "BSD-3-Clause" ]
5
2019-12-09T06:02:22.000Z
2021-12-03T18:02:49.000Z
src/advent/year2019/intcode.py
davidism/advent
761756f179c3547f44ec035880f29f58d80903f8
[ "BSD-3-Clause" ]
null
null
null
src/advent/year2019/intcode.py
davidism/advent
761756f179c3547f44ec035880f29f58d80903f8
[ "BSD-3-Clause" ]
2
2019-09-19T04:44:33.000Z
2021-05-09T14:39:58.000Z
from collections import defaultdict from collections import deque from typing import Deque from typing import Dict from typing import Iterable from typing import List from advent.load import read_input def op(code: int, size: int, write=False): def wrapper(f): f.op = code f.size = size f....
23.828729
85
0.537909
3,367
0.780663
0
0
2,596
0.601901
0
0
25
0.005796
8bd88ec45c6933abd1b51585d3a13a40674a382b
225
py
Python
exer/ex5-2.py
vitorsergiota/python
2cc95392a2a52a871e0582e4e900c0aa24a021a1
[ "MIT" ]
null
null
null
exer/ex5-2.py
vitorsergiota/python
2cc95392a2a52a871e0582e4e900c0aa24a021a1
[ "MIT" ]
null
null
null
exer/ex5-2.py
vitorsergiota/python
2cc95392a2a52a871e0582e4e900c0aa24a021a1
[ "MIT" ]
null
null
null
num = int(input('Escreva um digito:')) soma=0 while num > 0 digito = num%10 # obtem algarismo unidades num = num // 10 # remove algarismo unidades if digito % 2 == 0: #par soma = soma + digito print(soma)
25
47
0.622222
0
0
0
0
0
0
0
0
77
0.342222
8bd89aabbee1878012e7f1e4e9d5683197eea5ee
342
py
Python
korzh_bot/uleague/exceptions.py
uleague/universityleague-steam
65539664c0c6aad94a7ff3a3208323a554e1fddd
[ "MIT" ]
null
null
null
korzh_bot/uleague/exceptions.py
uleague/universityleague-steam
65539664c0c6aad94a7ff3a3208323a554e1fddd
[ "MIT" ]
2
2020-09-14T21:55:03.000Z
2020-11-17T17:23:34.000Z
korzh_bot/uleague/exceptions.py
uleague/universityleague-steam
65539664c0c6aad94a7ff3a3208323a554e1fddd
[ "MIT" ]
null
null
null
class ULeagueRequestError(Exception): """ Basic exception for all requests """ def __init__(self, message): self.message = message super().__init__(self.message) def __str__(self): return "Произошла ошибка во время выполнения запроса на ULeague --> {}".format( s...
24.428571
87
0.614035
382
0.997389
0
0
0
0
0
0
153
0.399478
8bd97144b2dc03785cd1d725114cfe7c4ea6a97a
644
py
Python
story/models.py
sachink2010/DjangoTrial
8b78a31409b614959ed45380f2b8ee9f03fa9f90
[ "MIT" ]
null
null
null
story/models.py
sachink2010/DjangoTrial
8b78a31409b614959ed45380f2b8ee9f03fa9f90
[ "MIT" ]
null
null
null
story/models.py
sachink2010/DjangoTrial
8b78a31409b614959ed45380f2b8ee9f03fa9f90
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. class Story(models.Model): user_input = models.CharField(max_length=600) api_response = models.CharField(max_length=2000, null=True, blank=True) #timestamp=models.DateTimeField created_at = models.DateTimeField(auto_now_add=True) username = mo...
40.25
75
0.768634
585
0.908385
0
0
0
0
0
0
88
0.136646
8bdc456df221aa9aaf1072900c707aafc646d202
3,123
py
Python
scripts/find_best_fit.py
NERC-CEH/nanofase-calibration
e45da5f0566e345504214018eb4b9c013bab4c57
[ "BSD-3-Clause" ]
null
null
null
scripts/find_best_fit.py
NERC-CEH/nanofase-calibration
e45da5f0566e345504214018eb4b9c013bab4c57
[ "BSD-3-Clause" ]
null
null
null
scripts/find_best_fit.py
NERC-CEH/nanofase-calibration
e45da5f0566e345504214018eb4b9c013bab4c57
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 import os import sys import argparse import re import shutil import numpy as np from netCDF4 import Dataset """This script is useful for finding the best find from the `optimize.log` file, the getting the parameters for this fit from logged results""" # Parse the input arguments parser = argpar...
42.780822
114
0.700288
0
0
0
0
0
0
0
0
1,503
0.481268
8bde4876eb8d22e2a2bf6ea4f21056c49d4893b8
347
py
Python
examples/simple1.py
jimcortez/spotipy_twisted
49ff2a4a5a5a9b3184b22adbe068eb91a38f3102
[ "MIT" ]
null
null
null
examples/simple1.py
jimcortez/spotipy_twisted
49ff2a4a5a5a9b3184b22adbe068eb91a38f3102
[ "MIT" ]
null
null
null
examples/simple1.py
jimcortez/spotipy_twisted
49ff2a4a5a5a9b3184b22adbe068eb91a38f3102
[ "MIT" ]
null
null
null
import spotipy_twisted birdy_uri = 'spotify:artist:2WX2uTcsvV5OnS0inACecP' spotify = spotipy_twisted.Spotify() results = spotify.artist_albums(birdy_uri, album_type='album') albums = results['items'] while results['next']: results = spotify.next(results) albums.extend(results['items']) for album in albums:...
20.411765
62
0.743516
0
0
0
0
0
0
0
0
72
0.207493
8bde558284ee50c285e21e6e1f4a0e2c6265f5bf
21,737
py
Python
pysnmp-with-texts/CISCO-ATM-EXT-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/CISCO-ATM-EXT-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/CISCO-ATM-EXT-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-EXT-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-ATM-EXT-MIB # Produced by pysmi-0.3.4 at Wed May 1 11:50:35 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Ma...
134.179012
2,083
0.776096
1,022
0.047017
0
0
0
0
0
0
8,161
0.375443
8bdf0a8fc72d26035fdc4522645b4d01820727b6
4,905
py
Python
arrows/pytorch/seg_utils.py
neal-siekierski/kwiver
1c97ad72c8b6237cb4b9618665d042be16825005
[ "BSD-3-Clause" ]
null
null
null
arrows/pytorch/seg_utils.py
neal-siekierski/kwiver
1c97ad72c8b6237cb4b9618665d042be16825005
[ "BSD-3-Clause" ]
null
null
null
arrows/pytorch/seg_utils.py
neal-siekierski/kwiver
1c97ad72c8b6237cb4b9618665d042be16825005
[ "BSD-3-Clause" ]
null
null
null
# ckwg +28 # Copyright 2018 by Kitware, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, # this list of conditi...
33.367347
80
0.626504
0
0
0
0
0
0
0
0
1,698
0.346177
8bdf61ec1b8d8328f9ce10467e5dc4c43240c500
6,421
py
Python
fdtd/2d/src/fdtd/solver.py
Elena-Torres-Lozano/MCFNL2021
b60ecda2dc35fe08ce6cf131c45acc0349dce29c
[ "BSD-3-Clause" ]
null
null
null
fdtd/2d/src/fdtd/solver.py
Elena-Torres-Lozano/MCFNL2021
b60ecda2dc35fe08ce6cf131c45acc0349dce29c
[ "BSD-3-Clause" ]
null
null
null
fdtd/2d/src/fdtd/solver.py
Elena-Torres-Lozano/MCFNL2021
b60ecda2dc35fe08ce6cf131c45acc0349dce29c
[ "BSD-3-Clause" ]
null
null
null
import math import numpy as np import scipy.constants as sp import copy import time X = 0 # Cartesian indices Y = 1 L = 0 # Lower U = 1 # Upper def gaussian(x, delay, spread): return np.exp( - ((x-delay)**2 / (2*spread**2)) ) def subsId(id): if id is None: return -1 else: return id-1 cl...
33.973545
79
0.454914
6,103
0.950475
0
0
125
0.019467
0
0
1,069
0.166485
8bdfa2aafd82d2863e79980ee316f8cecf63acbc
2,505
py
Python
myticker.py
bitsanity/rateboard
f362505d6b9672d2f22bc6e6650975899d2ea127
[ "Apache-2.0" ]
3
2017-08-24T14:36:49.000Z
2018-11-21T21:14:06.000Z
myticker.py
bitsanity/rateboard
f362505d6b9672d2f22bc6e6650975899d2ea127
[ "Apache-2.0" ]
null
null
null
myticker.py
bitsanity/rateboard
f362505d6b9672d2f22bc6e6650975899d2ea127
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- import os import sys, traceback import threading import time from PyQt4 import QtGui,QtCore from boardlet import Boardlet from modellet import Modellet class MyTicker(Boardlet): def __init__(self, parent, getbidobj, getaskobj): super(MyTicker, self).__init__(parent) ...
28.793103
76
0.64511
2,303
0.919361
0
0
0
0
0
0
177
0.070659
8bdfada5a195abb5fa1a5addc5ae23054f34a07f
62,005
py
Python
pysnmp-with-texts/ASSETMANAGEMENT-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/ASSETMANAGEMENT-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/ASSETMANAGEMENT-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 ASSETMANAGEMENT-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ASSETMANAGEMENT-MIB # Produced by pysmi-0.3.4 at Wed May 1 11:29:30 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default...
157.773537
5,190
0.784856
3,608
0.058189
0
0
0
0
0
0
28,995
0.467624
8be140e08c2dfb6a0ad53e343aaf11199164a255
487
py
Python
secret.py
yoyu777/Poll-Bot
db239b42c5c5e1af38a7c0a12b977c38949f0724
[ "MIT" ]
null
null
null
secret.py
yoyu777/Poll-Bot
db239b42c5c5e1af38a7c0a12b977c38949f0724
[ "MIT" ]
null
null
null
secret.py
yoyu777/Poll-Bot
db239b42c5c5e1af38a7c0a12b977c38949f0724
[ "MIT" ]
null
null
null
# Import the Secret Manager client library. from google.cloud import secretmanager # Create the Secret Manager client. secretmanager_client = secretmanager.SecretManagerServiceClient() def get_discord_token(project_id,secret_id): latest_secret_version=secretmanager_client.access_secret_version( name=f'pro...
34.785714
74
0.804928
0
0
0
0
0
0
0
0
145
0.297741
8be594b734f337508a46bc13ebf1d32d3f8e6f53
1,663
py
Python
Bot/extensions/moderation/ban.py
ChrissisCodeXD/Hikari-TestProject
236c8fc9081172d9edff6d629e5d11c5abe64205
[ "MIT" ]
null
null
null
Bot/extensions/moderation/ban.py
ChrissisCodeXD/Hikari-TestProject
236c8fc9081172d9edff6d629e5d11c5abe64205
[ "MIT" ]
null
null
null
Bot/extensions/moderation/ban.py
ChrissisCodeXD/Hikari-TestProject
236c8fc9081172d9edff6d629e5d11c5abe64205
[ "MIT" ]
null
null
null
from imports import * ban_plugin = lightbulb.Plugin("moderation.ban") ban_plugin.add_checks( lightbulb.checks.guild_only, lightbulb.checks.bot_has_guild_permissions(hikari.Permissions.BAN_MEMBERS), lightbulb.checks.has_guild_permissions(hikari.Permissions.BAN_MEMBERS), ) @ban_plugin.command() @lightbulb...
33.938776
119
0.719784
0
0
0
0
1,154
0.693927
865
0.520144
267
0.160553
8be59cb6314fe38c5f76d083bb061587be243807
2,043
py
Python
trend_analyze/test/test_fecth_data_from_api.py
popper2710/Trend_Analyze
0c98bcd7986bdb2d2b9bdc8022bfa08ddf0e7b0f
[ "MIT" ]
null
null
null
trend_analyze/test/test_fecth_data_from_api.py
popper2710/Trend_Analyze
0c98bcd7986bdb2d2b9bdc8022bfa08ddf0e7b0f
[ "MIT" ]
2
2020-09-26T14:58:33.000Z
2021-03-31T20:01:40.000Z
trend_analyze/test/test_fecth_data_from_api.py
popper2710/Trend_Analyze
0c98bcd7986bdb2d2b9bdc8022bfa08ddf0e7b0f
[ "MIT" ]
null
null
null
import unittest from trend_analyze.config import * from trend_analyze.src.model import * from trend_analyze.src.fetch_data_from_api import ApiTwitterFetcher class TestFetchDataFromApi(unittest.TestCase): """ test class for fetch_data_from_api.py """ def __init__(self, *args, **kwargs): super...
32.951613
87
0.698972
1,833
0.89721
0
0
0
0
0
0
144
0.070485
8be760a4114acf5a4db49d05c1ef322eef5d00e1
1,779
py
Python
leetcode/easy/compare-version-numbers.py
rainzhop/cumulus-tank
09ebc7858ea53630e30606945adfea856a80faa3
[ "MIT" ]
null
null
null
leetcode/easy/compare-version-numbers.py
rainzhop/cumulus-tank
09ebc7858ea53630e30606945adfea856a80faa3
[ "MIT" ]
null
null
null
leetcode/easy/compare-version-numbers.py
rainzhop/cumulus-tank
09ebc7858ea53630e30606945adfea856a80faa3
[ "MIT" ]
null
null
null
# https://leetcode.com/problems/compare-version-numbers/ # # Compare two version numbers version1 and version2. # If version1 > version2 return 1, if version1 < version2 return -1, otherwise return 0. # # You may assume that the version strings are non-empty and contain only digits and the . character. # The . characte...
30.152542
100
0.518269
1,058
0.594716
0
0
0
0
0
0
817
0.459247
8be7873229c136c3351120aeb123d5e799820294
710
py
Python
utils.py
florenthemmi/ips-by-country
2f63ec2108ceaae97221de52654753c545733d84
[ "MIT" ]
1
2021-05-24T06:16:49.000Z
2021-05-24T06:16:49.000Z
utils.py
florenthemmi/ips-by-country
2f63ec2108ceaae97221de52654753c545733d84
[ "MIT" ]
null
null
null
utils.py
florenthemmi/ips-by-country
2f63ec2108ceaae97221de52654753c545733d84
[ "MIT" ]
null
null
null
from datetime import datetime from config import CIDR_MAX_SUBNETS class IPRange(object): def __init__(self, data): self.range_start = data[0] self.range_end = data[1] self.total_ips = int(data[2]) self.assign_date = datetime.strptime(data[3], '%d/%m/%y') self.owner = data[...
26.296296
71
0.640845
640
0.901408
0
0
227
0.319718
0
0
21
0.029577
8be7899428e46960e100ad08d01429e3242a6f7d
4,897
py
Python
keats_crawler/crawl.py
mannmann2/keats-crawler
9fc108b75e63bf3dfac0c18ed2f0bec84d003c14
[ "MIT" ]
8
2021-01-21T19:34:59.000Z
2022-02-14T23:09:48.000Z
keats_crawler/crawl.py
mannmann2/keats-crawler
9fc108b75e63bf3dfac0c18ed2f0bec84d003c14
[ "MIT" ]
null
null
null
keats_crawler/crawl.py
mannmann2/keats-crawler
9fc108b75e63bf3dfac0c18ed2f0bec84d003c14
[ "MIT" ]
1
2021-12-27T11:09:44.000Z
2021-12-27T11:09:44.000Z
"""Main module.""" from config import * import os import re from threading import Thread import requests from urllib.parse import unquote from bs4 import BeautifulSoup from m3u8downloader.main import M3u8Downloader from selenium import webdriver from selenium.webdriver.chrome.options import Options VIDEO_DICT = {}...
27.357542
150
0.588115
0
0
0
0
0
0
0
0
1,063
0.217072
8be7a3c80ff1ca3e87607f2cacd6a9420c5e831e
7,305
py
Python
logging_with_arcpy.py
Kortforsyningen/logging-with-arcpy
b227aea9c377ca6e98b2c398d294c08bce506f84
[ "MIT" ]
1
2022-03-03T13:20:12.000Z
2022-03-03T13:20:12.000Z
logging_with_arcpy.py
Kortforsyningen/logging-with-arcpy
b227aea9c377ca6e98b2c398d294c08bce506f84
[ "MIT" ]
null
null
null
logging_with_arcpy.py
Kortforsyningen/logging-with-arcpy
b227aea9c377ca6e98b2c398d294c08bce506f84
[ "MIT" ]
1
2022-03-30T11:33:43.000Z
2022-03-30T11:33:43.000Z
# -*- coding: utf-8 -*- """ This module allows Python's logging module and Esri's ArcMap tools to play nicely together. Everything here works with the root logger, there is currently no functionality to work with multiple loggers. The standard logging.basicConfig() doesn't work out of the box in ArcMap tools, b...
46.826923
132
0.699384
1,640
0.224504
0
0
0
0
0
0
5,501
0.753046
8be7ac2245946060119cdd1d1ac823a02f85034d
892
py
Python
bot.py
fangyi-zhou/renamer
ec1215f7afea1c942116a37bdd2a5fcbabee6e94
[ "Unlicense" ]
null
null
null
bot.py
fangyi-zhou/renamer
ec1215f7afea1c942116a37bdd2a5fcbabee6e94
[ "Unlicense" ]
null
null
null
bot.py
fangyi-zhou/renamer
ec1215f7afea1c942116a37bdd2a5fcbabee6e94
[ "Unlicense" ]
null
null
null
import os import re import discord from dotenv import load_dotenv load_dotenv() TOKEN = os.getenv("DISCORD_TOKEN") RENAME_REGEX = re.compile(r"^[Ii]'m (\w+)$") if TOKEN is None: raise RuntimeError("Bot TOKEN not set") client = discord.Client() @client.event async def on_ready(): print("We have logged in ...
21.756098
88
0.649103
0
0
0
0
613
0.68722
585
0.65583
159
0.178251
8be86bfbc616af693be4c8b1bf95b938750cfb4b
8,035
py
Python
market/views.py
morphosis-nitmz/Stock-Bridge-2018
5f7d55a5dfeed52e2fa46fd1e2abd6bba80c954a
[ "MIT" ]
12
2019-09-10T02:51:01.000Z
2022-03-23T07:19:34.000Z
market/views.py
morphosis-nitmz/Stock-Bridge-2018
5f7d55a5dfeed52e2fa46fd1e2abd6bba80c954a
[ "MIT" ]
null
null
null
market/views.py
morphosis-nitmz/Stock-Bridge-2018
5f7d55a5dfeed52e2fa46fd1e2abd6bba80c954a
[ "MIT" ]
8
2019-06-26T14:16:23.000Z
2022-01-07T08:48:08.000Z
from datetime import datetime from decimal import Decimal from django.conf import settings from django.contrib.auth import get_user_model from django.shortcuts import render, redirect from django.http import HttpResponseRedirect, HttpResponse from django.views.generic import View, ListView from django.urls import reve...
40.994898
108
0.601369
6,314
0.785812
0
0
734
0.09135
0
0
1,288
0.160299
8be87a2381ba6a63956f68b01f8d66e526e6f9d0
21,478
py
Python
library.py
Kladmen228/kurs_work-c-
6648ca3d4f454aaa429993db80cd2fc6a3ab2bb4
[ "Apache-2.0" ]
2
2020-07-11T21:12:42.000Z
2020-07-11T21:49:22.000Z
library.py
Kladmen228/kurs_work-PP
6648ca3d4f454aaa429993db80cd2fc6a3ab2bb4
[ "Apache-2.0" ]
null
null
null
library.py
Kladmen228/kurs_work-PP
6648ca3d4f454aaa429993db80cd2fc6a3ab2bb4
[ "Apache-2.0" ]
null
null
null
# coding=utf8 import os from tkinter import messagebox from tkinter import ttk from tkinter import * import tkinter as tk import database from tkinter import filedialog databaseName = 'dataBase.db' who = 0 currentUserID = 0 currentTable = 0 root = tk.Tk() root.title("Библиотека") root.geometry("1750x500") root.resizab...
44.193416
122
0.648524
0
0
0
0
0
0
0
0
4,608
0.202585
8be8ad1bff74a971fe98e6113f758f85c95026e6
621
py
Python
utilities.py
tsilifis/BayesEmbed-mfGP
61ee75284bac34084ee4d171257023cc4d60c910
[ "MIT" ]
null
null
null
utilities.py
tsilifis/BayesEmbed-mfGP
61ee75284bac34084ee4d171257023cc4d60c910
[ "MIT" ]
null
null
null
utilities.py
tsilifis/BayesEmbed-mfGP
61ee75284bac34084ee4d171257023cc4d60c910
[ "MIT" ]
null
null
null
from datetime import datetime import numpy as np def add_basis_element(W): """ Given a D x d orthonormal matrix W (with d << D), it computes a new vector v that is orthogonal to all d columns of W and add it as an additional column. Return : D x (d+1) orthonormal matrix [W v] """ dim = W.shape[1] d = W.sha...
23
83
0.621578
0
0
0
0
0
0
0
0
228
0.36715
8be92b2b82e61183cec9beb6bacf4eefc2f03ab0
4,049
py
Python
data/LoadingScripts/adapt_tcga.py
Bertinus/causal_cell_embedding
417b55749130fc7b7832fd3ee4c49feff4a04593
[ "MIT" ]
null
null
null
data/LoadingScripts/adapt_tcga.py
Bertinus/causal_cell_embedding
417b55749130fc7b7832fd3ee4c49feff4a04593
[ "MIT" ]
null
null
null
data/LoadingScripts/adapt_tcga.py
Bertinus/causal_cell_embedding
417b55749130fc7b7832fd3ee4c49feff4a04593
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd ######################################################################################################################## # Load data ######################################################################################################################## print("Adapt TCGA: Loadin...
46.011364
120
0.514942
0
0
0
0
0
0
0
0
2,316
0.571993
8bea72f709ee92f0256045645314ed84137d7a0e
6,924
py
Python
tests/test_share_resource/test_master_data.py
anhlt59/django_refactor
1b1d86af9f732a000e30feb7644f6ca60b6e516a
[ "MIT" ]
null
null
null
tests/test_share_resource/test_master_data.py
anhlt59/django_refactor
1b1d86af9f732a000e30feb7644f6ca60b6e516a
[ "MIT" ]
null
null
null
tests/test_share_resource/test_master_data.py
anhlt59/django_refactor
1b1d86af9f732a000e30feb7644f6ca60b6e516a
[ "MIT" ]
null
null
null
import pytest from app.share_resources.master_data.models import * # test company_type_category @pytest.mark.django_db class TestCompanyTypeCategory: def test_create(self, create_company_type_category): assert CompanyTypeCategory.objects.count() == 1 def test_update(self, create_company_type_categor...
33.941176
102
0.718515
6,358
0.918255
0
0
6,588
0.951473
0
0
586
0.084633
8bec7a78ef815c669108337b9955421ae8412b87
1,192
py
Python
deep-rl/lib/python2.7/site-packages/OpenGL/raw/GL/ARB/get_program_binary.py
ShujaKhalid/deep-rl
99c6ba6c3095d1bfdab81bd01395ced96bddd611
[ "MIT" ]
210
2016-04-09T14:26:00.000Z
2022-03-25T18:36:19.000Z
deep-rl/lib/python2.7/site-packages/OpenGL/raw/GL/ARB/get_program_binary.py
ShujaKhalid/deep-rl
99c6ba6c3095d1bfdab81bd01395ced96bddd611
[ "MIT" ]
72
2016-09-04T09:30:19.000Z
2022-03-27T17:06:53.000Z
deep-rl/lib/python2.7/site-packages/OpenGL/raw/GL/ARB/get_program_binary.py
ShujaKhalid/deep-rl
99c6ba6c3095d1bfdab81bd01395ced96bddd611
[ "MIT" ]
64
2016-04-09T14:26:49.000Z
2022-03-21T11:19:47.000Z
'''Autogenerated by xml_generate script, do not edit!''' from OpenGL import platform as _p, arrays # Code generation uses this from OpenGL.raw.GL import _types as _cs # End users want this... from OpenGL.raw.GL._types import * from OpenGL.raw.GL import _errors from OpenGL.constant import Constant as _C import ctypes _...
44.148148
119
0.833054
0
0
0
0
400
0.33557
0
0
281
0.235738
4733f343c64441b45c6474b08ce6fa31a64e3fde
176
py
Python
hazm/utils.py
perryyo/hazm
8596ea060f0c241eba7dece3ad1db6baa36439ed
[ "MIT" ]
null
null
null
hazm/utils.py
perryyo/hazm
8596ea060f0c241eba7dece3ad1db6baa36439ed
[ "MIT" ]
null
null
null
hazm/utils.py
perryyo/hazm
8596ea060f0c241eba7dece3ad1db6baa36439ed
[ "MIT" ]
1
2018-12-09T05:16:06.000Z
2018-12-09T05:16:06.000Z
from os import path data_path = path.join(path.dirname(__file__), 'data') default_words = path.join(data_path, 'words.dat') default_verbs = path.join(data_path, 'verbs.dat')
25.142857
53
0.75
0
0
0
0
0
0
0
0
28
0.159091
4735a6be395ffd4914453c63b7dd438db0593092
629
py
Python
parseridge/parser/training/callbacks/save_model_callback.py
jgontrum/parseridge
f87ef82a9468addeb09a91c3b5310db38840bf0f
[ "Apache-2.0" ]
6
2019-10-06T23:00:29.000Z
2020-04-08T02:04:24.000Z
parseridge/parser/training/callbacks/save_model_callback.py
jgontrum/parseridge
f87ef82a9468addeb09a91c3b5310db38840bf0f
[ "Apache-2.0" ]
2
2020-04-28T12:06:23.000Z
2020-04-28T13:30:03.000Z
parseridge/parser/training/callbacks/save_model_callback.py
jgontrum/parseridge
f87ef82a9468addeb09a91c3b5310db38840bf0f
[ "Apache-2.0" ]
1
2019-12-23T00:53:38.000Z
2019-12-23T00:53:38.000Z
import os from typing import Any, Optional import torch from parseridge.parser.modules.data_parallel import Module from parseridge.parser.training.callbacks.base_callback import Callback class SaveModelCallback(Callback): _order = 5 def __init__(self, folder_path: Optional[str] = None): self.folder...
28.590909
77
0.696343
437
0.694754
0
0
0
0
0
0
36
0.057234
4735d1f5a8954c473193826a0ee08dd64ab9a93e
35
py
Python
Training/pylens/__init__.py
Annarien/GravitationalLenses
c2606aacc62d2534fb199f5228dc21c0ea604251
[ "MIT" ]
null
null
null
Training/pylens/__init__.py
Annarien/GravitationalLenses
c2606aacc62d2534fb199f5228dc21c0ea604251
[ "MIT" ]
null
null
null
Training/pylens/__init__.py
Annarien/GravitationalLenses
c2606aacc62d2534fb199f5228dc21c0ea604251
[ "MIT" ]
null
null
null
import massmodel,pylens,MassModels
17.5
34
0.885714
0
0
0
0
0
0
0
0
0
0
473611358315db91be2c68a0523fa1b4712e6722
1,083
py
Python
conanfile.py
martinmoene/lest-conan-package
db0a1eda840e819edb0c1bb5dc4d8384d1a92c19
[ "MIT" ]
null
null
null
conanfile.py
martinmoene/lest-conan-package
db0a1eda840e819edb0c1bb5dc4d8384d1a92c19
[ "MIT" ]
null
null
null
conanfile.py
martinmoene/lest-conan-package
db0a1eda840e819edb0c1bb5dc4d8384d1a92c19
[ "MIT" ]
null
null
null
from contextlib import closing from tarfile import open as taropen from urllib2 import urlopen from conans import ConanFile class lestConan(ConanFile): name = "lest" version = "1.26.0" url = "https://github.com/martinmoene/lest-conan-package" license = "Boost 1.0" author = "Martin Moene (martin.m...
32.818182
104
0.644506
955
0.88181
0
0
0
0
0
0
377
0.348107
47364a3924f1597cca49227e92174ee485e954ae
555
py
Python
erp/migrations/0093_auto_20200922_0802.py
Foohx/acceslibre
55135e096f2ec4e413ff991f01c17f5e0d5925c0
[ "MIT" ]
8
2020-07-23T08:17:28.000Z
2022-03-09T22:31:36.000Z
erp/migrations/0093_auto_20200922_0802.py
Foohx/acceslibre
55135e096f2ec4e413ff991f01c17f5e0d5925c0
[ "MIT" ]
37
2020-07-01T08:47:33.000Z
2022-02-03T19:50:58.000Z
erp/migrations/0093_auto_20200922_0802.py
Foohx/acceslibre
55135e096f2ec4e413ff991f01c17f5e0d5925c0
[ "MIT" ]
4
2021-04-08T10:57:18.000Z
2022-01-31T13:16:31.000Z
# Generated by Django 3.1.1 on 2020-09-22 06:02 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('erp', '0092_merge_20200916_1733'), ] operations = [ migrations.AlterField( model_name='accessibilite', name='chemine...
29.210526
189
0.641441
465
0.833333
0
0
0
0
0
0
202
0.362007
4738887a5abd7d5e02db7c0d3385f50ba3f81899
8,290
py
Python
cli/cli.py
MustafaTheCoder/create-a-cli-tool
9f7c327927e22b390a58c8c8b599a59cad246f2e
[ "MIT" ]
3
2021-09-27T10:35:24.000Z
2021-10-02T08:16:46.000Z
cli/cli.py
MustafaTheCoder/create-a-cli-tool
9f7c327927e22b390a58c8c8b599a59cad246f2e
[ "MIT" ]
1
2021-09-22T15:44:30.000Z
2021-09-22T15:44:30.000Z
cli/cli.py
MustafaTheCoder/create-a-cli-tool
9f7c327927e22b390a58c8c8b599a59cad246f2e
[ "MIT" ]
3
2021-09-21T05:19:42.000Z
2021-10-02T08:16:48.000Z
import asyncio import sys from typing import Any, Callable, List, Optional, Union from .commands import Command from .commands import CommandGroup as Group from .errors import * class CLI: """ The CLI class it self, this will represent your cli. Parameters ----------- name: :class:`str` ...
30.932836
124
0.458987
8,108
0.978046
0
0
0
0
0
0
2,305
0.278046
47391c58cb36718e353c6d24ef9b6c3dc10d34e8
230
py
Python
propertiesTemplate/Fields/FieldTester.py
HenShalom/tableTransform
ede5c9ed3ecb32f74712778a6746b03773ac28ef
[ "Apache-2.0" ]
null
null
null
propertiesTemplate/Fields/FieldTester.py
HenShalom/tableTransform
ede5c9ed3ecb32f74712778a6746b03773ac28ef
[ "Apache-2.0" ]
null
null
null
propertiesTemplate/Fields/FieldTester.py
HenShalom/tableTransform
ede5c9ed3ecb32f74712778a6746b03773ac28ef
[ "Apache-2.0" ]
2
2019-11-20T02:47:23.000Z
2019-11-20T02:47:23.000Z
from propertiesTemplate.Fields.BasicField import BasicField from propertiesTemplate.Fields.ConstField import ConstField def get_field(value): if value[0] == '@': return BasicField(value) return ConstField(value)
25.555556
59
0.76087
0
0
0
0
0
0
0
0
3
0.013043
473931c03e87e8ad7ec18f92b6ba042e2eddadd3
494
py
Python
Alice/Sorting/selection_sort.py
sandeepm96/cormen-algos
9154f6ce9cb0c318bc0d6ecaa13676d080985cec
[ "MIT" ]
1
2017-09-15T13:34:19.000Z
2017-09-15T13:34:19.000Z
Alice/Sorting/selection_sort.py
sandeepm96/cormen-algos
9154f6ce9cb0c318bc0d6ecaa13676d080985cec
[ "MIT" ]
null
null
null
Alice/Sorting/selection_sort.py
sandeepm96/cormen-algos
9154f6ce9cb0c318bc0d6ecaa13676d080985cec
[ "MIT" ]
null
null
null
class SelectionSort: def __init__(self,array): self.array = array def result(self): n = len(self.array) for i in range(n): minimum = i for j in range(i+1,n): if self.array[minimum] > self.array[j]: minimum = j self.a...
29.058824
81
0.544534
409
0.827935
0
0
0
0
0
0
3
0.006073
4739439933f695399a93b2006266d661c9ac6918
1,521
py
Python
sprint/DS-Unit-3-Sprint-3-Productization-and-Cloud/sprint/aq_dashboard.py
ndow33/DS-Unit-3-Sprint-3-Productization-and-Cloud
17ebfc34991649580fce24dae5c0a7933f5b3095
[ "MIT" ]
null
null
null
sprint/DS-Unit-3-Sprint-3-Productization-and-Cloud/sprint/aq_dashboard.py
ndow33/DS-Unit-3-Sprint-3-Productization-and-Cloud
17ebfc34991649580fce24dae5c0a7933f5b3095
[ "MIT" ]
null
null
null
sprint/DS-Unit-3-Sprint-3-Productization-and-Cloud/sprint/aq_dashboard.py
ndow33/DS-Unit-3-Sprint-3-Productization-and-Cloud
17ebfc34991649580fce24dae5c0a7933f5b3095
[ "MIT" ]
null
null
null
from flask import Flask from flask_sqlalchemy import SQLAlchemy import openaq import requests # connects to the api api = openaq.OpenAQ() # initialize the app APP = Flask(__name__) # configure the database APP.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///db.sqlite3' DB = SQLAlchemy(APP) # define a fu...
27.160714
76
0.663379
254
0.166995
0
0
462
0.303748
0
0
531
0.349112
47398e6b8466cbdbb207c2820f76f1b99f1321a9
21,273
py
Python
circus/watcher.py
j4mie/circus
d026b692cc7c4ec57bed7aaa671fce561adc0f3d
[ "Apache-2.0" ]
1
2015-11-05T11:44:54.000Z
2015-11-05T11:44:54.000Z
circus/watcher.py
j4mie/circus
d026b692cc7c4ec57bed7aaa671fce561adc0f3d
[ "Apache-2.0" ]
null
null
null
circus/watcher.py
j4mie/circus
d026b692cc7c4ec57bed7aaa671fce561adc0f3d
[ "Apache-2.0" ]
null
null
null
import copy import errno import os import signal import time from psutil import STATUS_ZOMBIE, STATUS_DEAD, NoSuchProcess from zmq.utils.jsonapi import jsonmod as json from circus.process import Process, DEAD_OR_ZOMBIE, UNEXISTING from circus import logger from circus import util from circus.stream import get_pipe_re...
33.29108
79
0.56889
20,895
0.982231
0
0
7,978
0.375029
0
0
6,172
0.290133
4739f9dd85a98ca4914a3d95480d40fee9c3fdfc
192
py
Python
ex021.py
Jordemar-D-Bousquet/Exercicios_Python
705d4c83720db033841f01aa843e4dbab08f1423
[ "MIT" ]
null
null
null
ex021.py
Jordemar-D-Bousquet/Exercicios_Python
705d4c83720db033841f01aa843e4dbab08f1423
[ "MIT" ]
null
null
null
ex021.py
Jordemar-D-Bousquet/Exercicios_Python
705d4c83720db033841f01aa843e4dbab08f1423
[ "MIT" ]
null
null
null
# Faça um programa em Python que abra e reproduza o áudio de um arquivo MP3. from pygame import mixer mixer.init() mixer.music.load('ex021.mp3') mixer.music.play() input('Agora vc escuta?')
21.333333
76
0.744792
0
0
0
0
0
0
0
0
107
0.551546
473a4e921e84f823480cb7ff0d481a46699ba915
15,171
py
Python
admin_views.py
JackCurragh/DARNED
13963d129bd8f69fb1106ad1f47394b3211a939c
[ "MIT" ]
null
null
null
admin_views.py
JackCurragh/DARNED
13963d129bd8f69fb1106ad1f47394b3211a939c
[ "MIT" ]
null
null
null
admin_views.py
JackCurragh/DARNED
13963d129bd8f69fb1106ad1f47394b3211a939c
[ "MIT" ]
null
null
null
from django.http import HttpResponseRedirect, HttpResponse from django.shortcuts import render_to_response from django.core.context_processors import csrf from admin_forms import * from django.template import loader,RequestContext from django.contrib.admin.views.decorators import staff_member_required from Human.mode...
40.564171
187
0.497265
0
0
0
0
0
0
0
0
2,515
0.165777
473a6e55a1141afc8bdd4f4dc054a62915b0f948
320
py
Python
Module 2/Chapter 7/ch7_yahooweatherapi.py
saicharanabhishek/machinelearning_examples
f89857ae7e1a2baa76951fe1d55541832d0f0d20
[ "MIT" ]
101
2016-11-08T11:17:55.000Z
2021-12-24T10:43:32.000Z
Module 2/Chapter 7/ch7_yahooweatherapi.py
saicharanabhishek/machinelearning_examples
f89857ae7e1a2baa76951fe1d55541832d0f0d20
[ "MIT" ]
2
2017-11-28T11:22:25.000Z
2019-02-12T17:09:18.000Z
Module 2/Chapter 7/ch7_yahooweatherapi.py
saicharanabhishek/machinelearning_examples
f89857ae7e1a2baa76951fe1d55541832d0f0d20
[ "MIT" ]
102
2016-10-22T12:14:23.000Z
2022-03-26T19:59:09.000Z
import urllib, json baseurl = 'https://query.yahooapis.com/v1/public/yql?' yql_query = "select item.condition from weather.forecast where woeid=9807" yql_url = baseurl + urllib.urlencode({'q':yql_query}) + "&format=json" result = urllib.urlopen(yql_url).read() data = json.loads(result) print data['query']['results']
32
74
0.7375
0
0
0
0
0
0
0
0
139
0.434375
473a74f5da28e0b4ce33777ece6a2e2116a72644
1,697
py
Python
lib/assets/Lib/signal.py
s6007589/cafe-grader-web
18a993801c698fb7b7ec6ae5f4b67920503cb242
[ "MIT" ]
25
2016-09-04T07:34:13.000Z
2022-02-14T07:39:02.000Z
lib/assets/Lib/signal.py
it56660024/cafe-grader-web
e9a1305fd62e79e54f6961f97ddc5cd57bafd73c
[ "MIT" ]
25
2015-02-05T03:59:27.000Z
2022-02-11T16:54:04.000Z
lib/assets/Lib/signal.py
it56660024/cafe-grader-web
e9a1305fd62e79e54f6961f97ddc5cd57bafd73c
[ "MIT" ]
16
2016-09-05T00:30:27.000Z
2021-12-05T11:07:02.000Z
"""This module provides mechanisms to use signal handlers in Python. Functions: alarm() -- cause SIGALRM after a specified time [Unix only] setitimer() -- cause a signal (described below) after a specified float time and the timer may restart then [Unix only] getitimer() -- get current value of ...
32.634615
78
0.700059
0
0
0
0
0
0
0
0
1,501
0.884502
473ed6ec1fc8acc6f0c2b764921eaea82a6ea886
400
py
Python
npc_engine/service_clients/__init__.py
npc-engine/npc-engine
0047794e96369c23515f794a1e77009c516a382c
[ "MIT" ]
12
2021-11-10T21:03:19.000Z
2022-03-21T21:55:34.000Z
npc_engine/service_clients/__init__.py
npc-engine/npc-engine
0047794e96369c23515f794a1e77009c516a382c
[ "MIT" ]
1
2021-12-05T14:51:44.000Z
2021-12-05T14:51:44.000Z
npc_engine/service_clients/__init__.py
npc-engine/npc-engine
0047794e96369c23515f794a1e77009c516a382c
[ "MIT" ]
null
null
null
# flake8: noqa """Module implementing the clients for services.""" from npc_engine.service_clients.text_generation_client import TextGenerationClient from npc_engine.service_clients.control_client import ControlClient from npc_engine.service_clients.sequence_classifier_client import ( SequenceClassifierClient,...
44.444444
83
0.8525
0
0
0
0
0
0
0
0
66
0.165
473f1e1eeb6b340b2ca16fc3da17da150f626195
661
py
Python
setup.py
libre-man/DJFeet
7517e7930bdc23d22765c64d7351d4011515dcaa
[ "MIT" ]
2
2018-09-29T22:41:28.000Z
2018-10-02T16:07:11.000Z
setup.py
libre-man/DJFeet
7517e7930bdc23d22765c64d7351d4011515dcaa
[ "MIT" ]
null
null
null
setup.py
libre-man/DJFeet
7517e7930bdc23d22765c64d7351d4011515dcaa
[ "MIT" ]
null
null
null
try: from setuptools import setup except ImportError: from distutils.core import setup config = { 'description': 'A program does that is a DJ by using feedback provided by the dancers.', 'author': 'Thomas Schaper', 'url': 'https://gitlab.com/SilentDiscoAsAService/DJFeet', 'download_url': 'https...
26.44
92
0.621785
0
0
0
0
0
0
0
0
400
0.605144