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
1eed2b0669eafd581e3cbf619d30ba2ae1602a19
1,717
py
Python
notebooks/batch_evaluate_mvar.py
facebookresearch/robust_mobo
39195f5796e3dd19c411d4cd4c8252488ecbd0ec
[ "MIT" ]
5
2022-02-15T17:08:14.000Z
2022-03-25T04:12:30.000Z
notebooks/batch_evaluate_mvar.py
facebookresearch/robust_mobo
39195f5796e3dd19c411d4cd4c8252488ecbd0ec
[ "MIT" ]
null
null
null
notebooks/batch_evaluate_mvar.py
facebookresearch/robust_mobo
39195f5796e3dd19c411d4cd4c8252488ecbd0ec
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import json import os import sys import torch from approximate_max_hv_run import construct_mvar_hv, max_hv_dir, exp_...
31.796296
79
0.684916
e340350b8b9305464632dfe464ae1fb853c58599
202
py
Python
django_profile/fields.py
millerthegorilla/django_profile
9860022a8c442901c955c4e3c7500f338b958d16
[ "MIT" ]
null
null
null
django_profile/fields.py
millerthegorilla/django_profile
9860022a8c442901c955c4e3c7500f338b958d16
[ "MIT" ]
null
null
null
django_profile/fields.py
millerthegorilla/django_profile
9860022a8c442901c955c4e3c7500f338b958d16
[ "MIT" ]
null
null
null
from crispy_forms import layout class FloatingField(layout.Field): template = 'fields/profile_floating_field.html' class FileInput(layout.Field): template = 'fields/profile_file_input.html'
20.2
51
0.782178
288232c9b5b36672f10da7958d1449f28da85944
96
py
Python
newfile.py
kumarjsandip/gmb
62cae0d43b5da6f2c571a47842b2c4c1e5ea342d
[ "MIT" ]
null
null
null
newfile.py
kumarjsandip/gmb
62cae0d43b5da6f2c571a47842b2c4c1e5ea342d
[ "MIT" ]
null
null
null
newfile.py
kumarjsandip/gmb
62cae0d43b5da6f2c571a47842b2c4c1e5ea342d
[ "MIT" ]
null
null
null
def main(): print("This is check") return "This is check" if __name__ == '__main__': main()
13.714286
26
0.645833
fc019522e2adb38e42772742e717995e230caa6d
3,755
py
Python
stored_mail/models.py
rectory-school/rectory-apps-updated
a6d47f6d5928f0c816eb45fd229da2f9f2fa2ff1
[ "MIT" ]
null
null
null
stored_mail/models.py
rectory-school/rectory-apps-updated
a6d47f6d5928f0c816eb45fd229da2f9f2fa2ff1
[ "MIT" ]
30
2021-07-16T12:54:14.000Z
2021-12-24T16:59:04.000Z
stored_mail/models.py
rectory-school/rectory-apps-updated
a6d47f6d5928f0c816eb45fd229da2f9f2fa2ff1
[ "MIT" ]
null
null
null
"""Models for stored mail sender""" import email.utils import email.message from email.headerregistry import Address from typing import List from uuid import uuid4 from django.db import models from django.conf import settings from django.core.mail import EmailMessage, EmailMultiAlternatives FIELD_OPTIONS = ( ('t...
29.108527
100
0.630892
2866a1d656e089a1386439a4b1be58ac9a4047b3
3,144
py
Python
tools/data/kinetics400/add_keys_for_missing_dets.py
vt-vl-lab/video-data-aug
01667cdbd1b952f2510af3422beeeb76e0d9e15a
[ "Apache-2.0" ]
20
2021-03-31T02:25:20.000Z
2022-03-11T11:45:59.000Z
tools/data/kinetics400/add_keys_for_missing_dets.py
vt-vl-lab/video-data-aug
01667cdbd1b952f2510af3422beeeb76e0d9e15a
[ "Apache-2.0" ]
6
2021-05-27T18:08:39.000Z
2022-03-23T14:00:51.000Z
tools/data/kinetics400/add_keys_for_missing_dets.py
vt-vl-lab/video-data-aug
01667cdbd1b952f2510af3422beeeb76e0d9e15a
[ "Apache-2.0" ]
4
2021-03-31T03:11:45.000Z
2021-08-22T11:11:45.000Z
import numpy as np import os import pdb from PIL import Image, ImageDraw import cv2 import glob as gb # import av from skvideo.io import ffprobe import pandas as pd import sys """ Add keys for videos without any detections, add also frame keys for those videos """ split = 'train' src_det_file_path = '/home/jinch...
36.988235
176
0.689567
da8bc1d648651e0c54e92513c0976deec680728f
1,191
py
Python
core/script/oidrules/hires.py
xUndero/noc
9fb34627721149fcf7064860bd63887e38849131
[ "BSD-3-Clause" ]
1
2019-09-20T09:36:48.000Z
2019-09-20T09:36:48.000Z
core/script/oidrules/hires.py
ewwwcha/noc
aba08dc328296bb0e8e181c2ac9a766e1ec2a0bb
[ "BSD-3-Clause" ]
null
null
null
core/script/oidrules/hires.py
ewwwcha/noc
aba08dc328296bb0e8e181c2ac9a766e1ec2a0bb
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # ---------------------------------------------------------------------- # HiresRule # ---------------------------------------------------------------------- # Copyright (C) 2007-2018 The NOC Project # See LICENSE for details # --------------------------------------------------------------------...
28.357143
90
0.494542
31ed781e820e3383b8130a3c65172c8681dea7f6
1,721
py
Python
data_source/stations_meteo/data.py
Frovu/cr-data-tool
4a87115eb10c548bcf8f4f3364e28196cfd3ebf4
[ "MIT" ]
null
null
null
data_source/stations_meteo/data.py
Frovu/cr-data-tool
4a87115eb10c548bcf8f4f3364e28196cfd3ebf4
[ "MIT" ]
null
null
null
data_source/stations_meteo/data.py
Frovu/cr-data-tool
4a87115eb10c548bcf8f4f3364e28196cfd3ebf4
[ "MIT" ]
null
null
null
import data_source.temperature_model.temperature as temperature import data_source.stations_meteo.db_proxy as proxy import data_source.stations_meteo.parser as parser from core.sequence_filler import SequenceFiller, fill_fn from datetime import datetime, timezone from math import floor, ceil import logging as log sche...
44.128205
99
0.710052
c57a471a1162a0614d4f9876e9ebef248b8f3891
1,998
py
Python
examples/pix2pix/facade_dataset_chainerio.py
shu65/chainerio
929d091160e524e1ca746bd254ba5cff3bd116b7
[ "MIT" ]
null
null
null
examples/pix2pix/facade_dataset_chainerio.py
shu65/chainerio
929d091160e524e1ca746bd254ba5cff3bd116b7
[ "MIT" ]
null
null
null
examples/pix2pix/facade_dataset_chainerio.py
shu65/chainerio
929d091160e524e1ca746bd254ba5cff3bd116b7
[ "MIT" ]
null
null
null
from PIL import Image from chainer.dataset import dataset_mixin import numpy as np # CHAINERIO import import chainerio # CHAINERIO import end # download `BASE` dataset from http://cmp.felk.cvut.cz/~tylecr1/facade/ # chainerio.set_root("hdfs") class FacadeDataset(dataset_mixin.DatasetMixin): def __init__(self, ...
35.052632
80
0.571071
04d2fb1f6503f16ef71a65724aeec6bb98ffe535
7,455
py
Python
recognition/arcface_torch/backbones/iresnet.py
yx9527/insightface
4eae1d4e0d4232789df1968d099cd6219752a4a3
[ "MIT" ]
null
null
null
recognition/arcface_torch/backbones/iresnet.py
yx9527/insightface
4eae1d4e0d4232789df1968d099cd6219752a4a3
[ "MIT" ]
null
null
null
recognition/arcface_torch/backbones/iresnet.py
yx9527/insightface
4eae1d4e0d4232789df1968d099cd6219752a4a3
[ "MIT" ]
null
null
null
import torch from torch import nn __all__ = ['iresnet18', 'iresnet34', 'iresnet50', 'iresnet100', 'iresnet200'] def conv3x3(in_planes, out_planes, stride=1, groups=1, dilation=1): """3x3 convolution with padding""" return nn.Conv2d(in_planes, out_planes, kernel_size=...
39.444444
107
0.548759
a3caa54bc154d2b17dca22e1731d4f539c1be6ef
891
py
Python
craigslist/sites.py
echentw/python-craigslist
a20f02afee6ce4d1f20faa320b7f6085c589bfe7
[ "MIT-0" ]
1
2020-08-08T22:11:11.000Z
2020-08-08T22:11:11.000Z
craigslist/sites.py
pythonthings/python-craigslist
a20f02afee6ce4d1f20faa320b7f6085c589bfe7
[ "MIT-0" ]
null
null
null
craigslist/sites.py
pythonthings/python-craigslist
a20f02afee6ce4d1f20faa320b7f6085c589bfe7
[ "MIT-0" ]
null
null
null
from bs4 import BeautifulSoup import requests ALL_SITES_URL = 'http://www.craigslist.org/about/sites' SITE_URL = 'http://%s.craigslist.org' def get_all_sites(): response = requests.get(ALL_SITES_URL) response.raise_for_status() # Something failed? soup = BeautifulSoup(response.content, 'html.parser') ...
29.7
67
0.646465
ad3f7e6cfe842d43aa9c34023fbecb48fb6c2102
200
py
Python
slnee_quality/slnee_quality/doctype/deps_table/deps_table.py
erpcloudsystems/slnee_quality
ad81f029a795ee073768c7c933cd91e61b6df059
[ "MIT" ]
null
null
null
slnee_quality/slnee_quality/doctype/deps_table/deps_table.py
erpcloudsystems/slnee_quality
ad81f029a795ee073768c7c933cd91e61b6df059
[ "MIT" ]
null
null
null
slnee_quality/slnee_quality/doctype/deps_table/deps_table.py
erpcloudsystems/slnee_quality
ad81f029a795ee073768c7c933cd91e61b6df059
[ "MIT" ]
null
null
null
# Copyright (c) 2021, erpcloud.systems and contributors # For license information, please see license.txt # import frappe from frappe.model.document import Document class DepsTable(Document): pass
22.222222
55
0.795
56afdf96454a994591a3d97e71b8d9619e0e68c8
7,717
py
Python
PaddleCV/PaddleDetection/ppdet/modeling/backbones/mobilenet.py
XiaoguangHu01/models
a95d49323ed504e5a9164586f171f408954fd43a
[ "Apache-2.0" ]
4
2020-01-04T13:15:02.000Z
2021-07-21T07:50:02.000Z
PaddleCV/PaddleDetection/ppdet/modeling/backbones/mobilenet.py
XiaoguangHu01/models
a95d49323ed504e5a9164586f171f408954fd43a
[ "Apache-2.0" ]
null
null
null
PaddleCV/PaddleDetection/ppdet/modeling/backbones/mobilenet.py
XiaoguangHu01/models
a95d49323ed504e5a9164586f171f408954fd43a
[ "Apache-2.0" ]
3
2019-10-31T07:18:49.000Z
2020-01-13T03:18:39.000Z
# Copyright (c) 2019 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...
36.57346
77
0.543994
7c72ff7a37714d5faef2242d63931e5810f85241
10,109
py
Python
MLBackend/trainlbp_knn.py
plsakr/CVAgePredictionTool
5324bcf22bbd146cf8abcc21bd3c0fe55813cbef
[ "Unlicense" ]
null
null
null
MLBackend/trainlbp_knn.py
plsakr/CVAgePredictionTool
5324bcf22bbd146cf8abcc21bd3c0fe55813cbef
[ "Unlicense" ]
null
null
null
MLBackend/trainlbp_knn.py
plsakr/CVAgePredictionTool
5324bcf22bbd146cf8abcc21bd3c0fe55813cbef
[ "Unlicense" ]
null
null
null
import numpy as np import cv2 import pandas as pd import matplotlib.pyplot as plt import os from skimage import feature from tqdm import tqdm import glob import pickle from sklearn.preprocessing import StandardScaler from sklearn.model_selection import train_test_split from sklearn.neighbors import KNeighborsClassifi...
33.47351
163
0.66792
aeb79c44fd6f9feb526e260b88c26d5e67e1afe1
380
py
Python
notices/Common.py
classroomtechtools/moodle_daily_notices
369ebe827f9c1a0aee37071b425cf3e9a09bda5c
[ "MIT" ]
null
null
null
notices/Common.py
classroomtechtools/moodle_daily_notices
369ebe827f9c1a0aee37071b425cf3e9a09bda5c
[ "MIT" ]
null
null
null
notices/Common.py
classroomtechtools/moodle_daily_notices
369ebe827f9c1a0aee37071b425cf3e9a09bda5c
[ "MIT" ]
null
null
null
# shared strings STUDENT_NOTICES = 'STUDENT_NOTICES' TEACHER_NOTICES = 'TEACHER_NOTICES' FULL_CONTENT = 'Full Content' ATTACHED_CONTENT = 'Attached Content' SCHOOL_SECTION = 'School Section' NEXT_DAY = "next day" # stuff that goes in settings ACTIVITY_NAME = 'activity_name' SENDER = 'sender' PRIORITY_USERNAMES = 'pri...
25.333333
41
0.784211
ff742b8b21f0d11421b5e1fdd6ee00940d1e895a
2,428
py
Python
TIPE/dessiner_avion2.py
clementlagneau/TIPE-2019
5dc8f2c4619fadad6fbc5745e0887053c81a7bfe
[ "MIT" ]
null
null
null
TIPE/dessiner_avion2.py
clementlagneau/TIPE-2019
5dc8f2c4619fadad6fbc5745e0887053c81a7bfe
[ "MIT" ]
null
null
null
TIPE/dessiner_avion2.py
clementlagneau/TIPE-2019
5dc8f2c4619fadad6fbc5745e0887053c81a7bfe
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Nov 12 10:26:25 2018 @author: Clement LAGNEAU """ from copy import deepcopy from avion import a from strategie import strat2 from iteration import avance2 #b=strat2(a) k=40 n=20 import tkinter dico = {-1 : "red", 2 : "yellow",1 :"blue", 0: "white"} score = 0 def init(): ...
37.9375
940
0.405684
22e6e39008c6f97a2102bc7f7fcdde52c4bd7bb9
8,190
py
Python
tools/project-creator/Python2.6.6/Lib/ctypes/test/test_pep3118.py
gohopo/nineck.ca
9601f5ae4c20f8a3ea27b06551556fa5e1eecce3
[ "MIT" ]
81
2017-03-13T08:24:01.000Z
2021-04-02T09:48:38.000Z
tools/project-creator/Python2.6.6/Lib/ctypes/test/test_pep3118.py
gohopo/nineck.ca
9601f5ae4c20f8a3ea27b06551556fa5e1eecce3
[ "MIT" ]
6
2017-04-30T08:36:55.000Z
2017-09-22T01:37:28.000Z
tools/project-creator/Python2.6.6/Lib/ctypes/test/test_pep3118.py
gohopo/nineck.ca
9601f5ae4c20f8a3ea27b06551556fa5e1eecce3
[ "MIT" ]
41
2017-03-18T14:11:58.000Z
2021-04-14T05:06:09.000Z
import unittest from ctypes import * import re, struct, sys if sys.byteorder == "little": THIS_ENDIAN = "<" OTHER_ENDIAN = ">" else: THIS_ENDIAN = ">" OTHER_ENDIAN = "<" class memoryview(object): # This class creates a memoryview - like object from data returned # by the private _...
38.632075
99
0.445055
35cbebcf0ae4cb51b94dd580eb132e05d1c51124
60,838
py
Python
scipy/linalg/tests/test_basic.py
ikamensh/scipy
d645404be21b7c0b1e7ba24bf8d525b624aeb848
[ "BSD-3-Clause" ]
null
null
null
scipy/linalg/tests/test_basic.py
ikamensh/scipy
d645404be21b7c0b1e7ba24bf8d525b624aeb848
[ "BSD-3-Clause" ]
null
null
null
scipy/linalg/tests/test_basic.py
ikamensh/scipy
d645404be21b7c0b1e7ba24bf8d525b624aeb848
[ "BSD-3-Clause" ]
null
null
null
import warnings import itertools import numpy as np from numpy import (arange, array, dot, zeros, identity, conjugate, transpose, float32) import numpy.linalg as linalg from numpy.random import random from numpy.testing import (assert_equal, assert_almost_equal, assert_, a...
37.647277
79
0.432115
b695ddf00dc1ee34342c4ca39e3e7bc7674b7434
15,731
py
Python
latools/filtering/filt_obj.py
douglascoenen/latools
d7fa4cfc70d480a1f079d4d209b0c8f33ac78c6d
[ "MIT" ]
null
null
null
latools/filtering/filt_obj.py
douglascoenen/latools
d7fa4cfc70d480a1f079d4d209b0c8f33ac78c6d
[ "MIT" ]
null
null
null
latools/filtering/filt_obj.py
douglascoenen/latools
d7fa4cfc70d480a1f079d4d209b0c8f33ac78c6d
[ "MIT" ]
null
null
null
""" An object used for storing, manipulating and modifying data filters. """ import re import numpy as np from difflib import SequenceMatcher as seqm from latools.helpers.helpers import bool_2_indices class filt(object): """ Container for creating, storing and selecting data filters. Parameters -----...
28.395307
201
0.496536
68e0cf731c704bd346a53056787fac7107448516
7,306
py
Python
emonitor/modules/maps/content_admin.py
Durburz/eMonitor
56f3b1fe39b9da3a12b49bdd60d0cfca51c23351
[ "BSD-3-Clause" ]
21
2015-03-04T11:36:47.000Z
2021-04-20T07:51:53.000Z
emonitor/modules/maps/content_admin.py
Durburz/eMonitor
56f3b1fe39b9da3a12b49bdd60d0cfca51c23351
[ "BSD-3-Clause" ]
79
2015-01-04T21:35:49.000Z
2020-03-05T07:22:10.000Z
emonitor/modules/maps/content_admin.py
Durburz/eMonitor
56f3b1fe39b9da3a12b49bdd60d0cfca51c23351
[ "BSD-3-Clause" ]
27
2015-03-04T11:36:48.000Z
2021-09-20T08:15:17.000Z
import os from flask import request, render_template, current_app from emonitor.extensions import db, babel, signal from emonitor.modules.maps.map import Map from emonitor.modules.settings.settings import Settings import map_utils OBSERVERACTIVE = 1 def getAdminContent(self, **params): """ Deliver admin con...
45.949686
260
0.575691
6ea7c62555bb58fa5f6200f1b67aa352c1957260
24,467
py
Python
Samples/sympl/python/etgen.py
TwoUnderscorez/dlr
60dfacb9852ec022dd076c152e286b116553c905
[ "Apache-2.0" ]
307
2015-01-03T19:57:57.000Z
2022-03-30T21:22:59.000Z
Src/Languages/sympl/python/etgen.py
rudimk/dlr-dotnet
71d11769f99d6ff1516ddbaed091a359eb46c670
[ "MS-PL" ]
72
2015-09-28T16:23:24.000Z
2022-03-14T00:47:04.000Z
Src/Languages/sympl/python/etgen.py
rudimk/dlr-dotnet
71d11769f99d6ff1516ddbaed091a359eb46c670
[ "MS-PL" ]
85
2015-01-03T19:58:01.000Z
2021-12-23T15:47:11.000Z
import clr if clr.use35: clr.AddReference("Microsoft.Scripting.Core") import Microsoft.Scripting.Ast as Exprs else: clr.AddReference("System.Core") import System.Linq.Expressions as Exprs from System.Collections.Generic import IEnumerable from System.Dynamic import CallInfo import System import pars...
41.96741
85
0.629419
406e57fb64f0d30c5eb09008e3544fd072b4a1fc
2,950
py
Python
scripts/run_s2p.py
willyh101/analysis
64ac21ae58b56dfef2d240049777432a64ee041c
[ "MIT" ]
null
null
null
scripts/run_s2p.py
willyh101/analysis
64ac21ae58b56dfef2d240049777432a64ee041c
[ "MIT" ]
null
null
null
scripts/run_s2p.py
willyh101/analysis
64ac21ae58b56dfef2d240049777432a64ee041c
[ "MIT" ]
null
null
null
from suite2p.run_s2p import run_s2p import os import shutil import glob from ScanImageTiffReader import ScanImageTiffReader # data location and inputs # animalid = 'w32_2' # date = '20210420' # expt_ids = ['1','2','3'] # result_base = 'E:/functional connectivity' animalid = 'w42_2' date = '20220302' expt_ids = ['1', ...
30.412371
148
0.63661
8cb0afa18c8bfc90dc657f15aad5a0050f5638eb
217
py
Python
ui.py
hmiyake/my-test-repo
42118133888b0a74c0da9e01211acb4023f713f9
[ "MIT" ]
null
null
null
ui.py
hmiyake/my-test-repo
42118133888b0a74c0da9e01211acb4023f713f9
[ "MIT" ]
2
2021-07-30T06:32:41.000Z
2021-08-01T18:54:45.000Z
ui.py
hmiyake/my-test-repo
42118133888b0a74c0da9e01211acb4023f713f9
[ "MIT" ]
null
null
null
#!/bin/env python import sys import calc def main(): val1 = sys.argv[1] val2 = sys.argv[2] val1 = float(val1) val2 = float(val2) print calc.calc_wari(val1,val2) if __name__ == "__main__": main()
12.055556
33
0.626728
f5d50e2f634c8a3a873f8a4cd041d67e07663617
5,805
py
Python
examples/raspberry-pi-garage-watch/main.py
carrasti/pi-garage-watch
878719e11278caf3a9529efa68fa35a134f4fd6d
[ "MIT" ]
null
null
null
examples/raspberry-pi-garage-watch/main.py
carrasti/pi-garage-watch
878719e11278caf3a9529efa68fa35a134f4fd6d
[ "MIT" ]
6
2020-12-29T13:59:28.000Z
2022-01-13T03:29:18.000Z
examples/raspberry-pi-garage-watch/main.py
carrasti/garage-watch
878719e11278caf3a9529efa68fa35a134f4fd6d
[ "MIT" ]
null
null
null
""" Example on how to integrate the garage_watch module with a Raspberry PI equipped with a Raspberry Pi camera, a door sensor and a cancel button. It will use the following specific libraries for the Raspberry Pi gpiozero RPI.GPIO # backend for gpiozero picamera requests twisted scp (+ param...
29.92268
93
0.682171
ade8bcbeb45d800bac0678f9d2f377a6b7cbc8b5
9,751
py
Python
test/integration/framework/nsh-lwm2m/lwm2m/tlv.py
dextero/Anjay
968bec079207315bba27bc59bd59f6d17a65d80d
[ "Apache-2.0" ]
null
null
null
test/integration/framework/nsh-lwm2m/lwm2m/tlv.py
dextero/Anjay
968bec079207315bba27bc59bd59f6d17a65d80d
[ "Apache-2.0" ]
null
null
null
test/integration/framework/nsh-lwm2m/lwm2m/tlv.py
dextero/Anjay
968bec079207315bba27bc59bd59f6d17a65d80d
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2017 AVSystem <avsystem@avsystem.com> # # 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 requi...
35.849265
118
0.590196
535468bf4b59d82f72bd0d24ea4d6a2b37133add
1,949
py
Python
kde/unreleased/kaidan/kaidan.py
lnjX/craft-blueprints-kde
08dc4a6c5873c362504a9454ddbf8e965e26d3c2
[ "BSD-2-Clause" ]
null
null
null
kde/unreleased/kaidan/kaidan.py
lnjX/craft-blueprints-kde
08dc4a6c5873c362504a9454ddbf8e965e26d3c2
[ "BSD-2-Clause" ]
null
null
null
kde/unreleased/kaidan/kaidan.py
lnjX/craft-blueprints-kde
08dc4a6c5873c362504a9454ddbf8e965e26d3c2
[ "BSD-2-Clause" ]
null
null
null
import info class subinfo(info.infoclass): def setTargets(self): self.description = "A simple, user-friendly Jabber/XMPP client for every device!" self.displayName = "Kaidan" self.svnTargets['master'] = 'https://anongit.kde.org/kaidan.git' for ver in ["0.4.1"]: self.ta...
42.369565
113
0.661365
f7742dd224f99c8404ce1d3d3b5c26ffbce6dc8e
1,483
py
Python
azure/mgmt/network/v2017_06_01/models/express_route_circuit_sku.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
1
2022-01-25T22:52:58.000Z
2022-01-25T22:52:58.000Z
azure/mgmt/network/v2017_06_01/models/express_route_circuit_sku.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
azure/mgmt/network/v2017_06_01/models/express_route_circuit_sku.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
37.075
79
0.608901
20849854b1be38dd2d1bf72d7b64b3e6c70aa677
604
py
Python
Scripts/Mechatronic-II_Final-Year-Project/code/CutterToggle.py
WilliamMokoena/portfolio
8176d81e669279510af9fc7ff98aa769603cff60
[ "MIT" ]
null
null
null
Scripts/Mechatronic-II_Final-Year-Project/code/CutterToggle.py
WilliamMokoena/portfolio
8176d81e669279510af9fc7ff98aa769603cff60
[ "MIT" ]
null
null
null
Scripts/Mechatronic-II_Final-Year-Project/code/CutterToggle.py
WilliamMokoena/portfolio
8176d81e669279510af9fc7ff98aa769603cff60
[ "MIT" ]
null
null
null
import RPi.GPIO as gpio class toggle: def LaserCutterToggle(self, OnOff): gpio.setmode(gpio.BOARD) gpio.setwarnings(False) gpio.setup(10, gpio.OUT) if OnOff == 'ON': gpio.output(10, gpio.HIGH) if OnOff == 'OFF': gpio.output(10, gpio.LOW)...
24.16
43
0.529801
18db4c9e0ea9d32b88f6626e6691d752ebc4e836
3,530
py
Python
virtual/lib/python3.6/site-packages/dns/rdtypes/ANY/TSIG.py
amoskipz/pitch
477599a56958bc677e22764d7e0cc14d34510e8c
[ "Unlicense", "MIT" ]
2
2021-07-26T15:04:07.000Z
2021-07-26T17:23:08.000Z
virtual/lib/python3.6/site-packages/dns/rdtypes/ANY/TSIG.py
amoskipz/pitch
477599a56958bc677e22764d7e0cc14d34510e8c
[ "Unlicense", "MIT" ]
30
2020-07-31T05:23:33.000Z
2022-03-25T11:04:00.000Z
virtual/lib/python3.6/site-packages/dns/rdtypes/ANY/TSIG.py
amoskipz/pitch
477599a56958bc677e22764d7e0cc14d34510e8c
[ "Unlicense", "MIT" ]
2
2021-02-27T09:46:02.000Z
2021-08-06T03:12:20.000Z
# Copyright (C) Dnspython Contributors, see LICENSE for text of ISC license # Copyright (C) 2001-2017 Nominum, Inc. # # Permission to use, copy, modify, and distribute this software and its # documentation for any purpose with or without fee is hereby granted, # provided that the above copyright notice and this permis...
38.369565
77
0.624363
463214a58745bc450a7bac5069f1b8f33e04b2a7
7,939
py
Python
onmt/model_builder.py
yapdianang/fast_transformer
3c47e67dd98a3c5642304d5c7d8343618ada1f24
[ "MIT" ]
null
null
null
onmt/model_builder.py
yapdianang/fast_transformer
3c47e67dd98a3c5642304d5c7d8343618ada1f24
[ "MIT" ]
null
null
null
onmt/model_builder.py
yapdianang/fast_transformer
3c47e67dd98a3c5642304d5c7d8343618ada1f24
[ "MIT" ]
null
null
null
""" This file is for models creation, which consults options and creates each encoder and decoder accordingly. """ import re import torch import torch.nn as nn from torch.nn.init import xavier_uniform_ import onmt.inputters as inputters import onmt.modules from onmt.encoders import str2enc from onmt.decoders import s...
34.820175
100
0.655624
e19ab35cff7f08cbe5d6b8f207e910e8cc30189b
27
py
Python
test.py
catjacks38/FCC-GAN
b5e10e8249d5bba1aca75ab0081c6b54921c3ddc
[ "MIT" ]
2
2021-10-31T20:54:27.000Z
2021-10-31T20:54:30.000Z
test.py
catjacks38/FCC-GAN
b5e10e8249d5bba1aca75ab0081c6b54921c3ddc
[ "MIT" ]
null
null
null
test.py
catjacks38/FCC-GAN
b5e10e8249d5bba1aca75ab0081c6b54921c3ddc
[ "MIT" ]
null
null
null
import model model.test()
6.75
12
0.740741
c70724be2a7b5d97bb1957043848e0c86a2ec383
1,050
py
Python
example.py
developius/ControlRoom
004b7b62f7af4d8d82b44d18a21228cb3afdcecd
[ "Apache-2.0" ]
null
null
null
example.py
developius/ControlRoom
004b7b62f7af4d8d82b44d18a21228cb3afdcecd
[ "Apache-2.0" ]
null
null
null
example.py
developius/ControlRoom
004b7b62f7af4d8d82b44d18a21228cb3afdcecd
[ "Apache-2.0" ]
null
null
null
import mcpi.minecraft as minecraft import mcpi.block as block from controlroom import ControlRoom import time mc = minecraft.Minecraft.create() cr = ControlRoom(mc) # Hunger Games-like tree chase (try changing the threat to "lava" or "water" #mc.postToChat("We're hunting one of you down...") #duration = cr.chase(bloc...
36.206897
101
0.707619
c4e8768f79f349645298dd8ccf551834b40a1cdf
394
py
Python
core/migrations/0009_player_password.py
Gabe-Corral/Clone-Labs
2de59b83899aa4f0de761207c62ad02fc9323611
[ "MIT" ]
null
null
null
core/migrations/0009_player_password.py
Gabe-Corral/Clone-Labs
2de59b83899aa4f0de761207c62ad02fc9323611
[ "MIT" ]
null
null
null
core/migrations/0009_player_password.py
Gabe-Corral/Clone-Labs
2de59b83899aa4f0de761207c62ad02fc9323611
[ "MIT" ]
null
null
null
# Generated by Django 3.1.7 on 2021-06-02 22:24 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0008_remove_player_user'), ] operations = [ migrations.AddField( model_name='player', name='password', ...
20.736842
61
0.598985
cb8b4d29138bb84e4e81b77846fb79d46cf71ba0
11,407
py
Python
tests/handlers/test_typing.py
skalarproduktraum/synapse
c831748f4d243d74e9a3fd2042bc2b35cc30f961
[ "Apache-2.0" ]
1
2019-06-22T04:17:50.000Z
2019-06-22T04:17:50.000Z
tests/handlers/test_typing.py
skalarproduktraum/synapse
c831748f4d243d74e9a3fd2042bc2b35cc30f961
[ "Apache-2.0" ]
null
null
null
tests/handlers/test_typing.py
skalarproduktraum/synapse
c831748f4d243d74e9a3fd2042bc2b35cc30f961
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2014-2016 OpenMarket Ltd # # 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...
33.748521
89
0.591304
423960473214712794bd471ec0192cd7d8ce82d7
3,637
py
Python
autobrat/annotator.py
autogoal/autobrat
421677c5db0874ec40080de38f802623a211ba96
[ "MIT" ]
1
2022-02-10T12:02:17.000Z
2022-02-10T12:02:17.000Z
autobrat/annotator.py
autogoal/autobrat
421677c5db0874ec40080de38f802623a211ba96
[ "MIT" ]
null
null
null
autobrat/annotator.py
autogoal/autobrat
421677c5db0874ec40080de38f802623a211ba96
[ "MIT" ]
3
2021-03-03T19:06:41.000Z
2022-03-05T21:15:12.000Z
from collections import defaultdict import collections from os import sendfile from typing import Dict, List, Tuple from math import log2 import spacy from scripts.utils import Collection, Sentence from autogoal.ml import AutoML from autogoal.kb import Sentence, Word, Postag from autogoal.kb import List as ag_List impo...
32.765766
79
0.617542
91bbbffc353bc10d5cc9358f5031d4802aa8aad2
2,408
py
Python
pyscf/nao/test/test_0004_log_mesh.py
mfkasim1/pyscf
7be5e015b2b40181755c71d888449db936604660
[ "Apache-2.0" ]
3
2021-02-28T00:52:53.000Z
2021-03-01T06:23:33.000Z
pyscf/nao/test/test_0004_log_mesh.py
mfkasim1/pyscf
7be5e015b2b40181755c71d888449db936604660
[ "Apache-2.0" ]
36
2018-08-22T19:44:03.000Z
2020-05-09T10:02:36.000Z
pyscf/nao/test/test_0004_log_mesh.py
mfkasim1/pyscf
7be5e015b2b40181755c71d888449db936604660
[ "Apache-2.0" ]
4
2018-02-14T16:28:28.000Z
2019-08-12T16:40:30.000Z
# Copyright 2014-2018 The PySCF Developers. 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 appl...
36.484848
74
0.702658
fe68d558db00c8a14fd269e4f1f38d36548f1195
1,978
py
Python
tests/callbacks/test_run_directory_uploader.py
stanford-crfm/composer
4996fbd818971afd6439961df58b531d9b47a37b
[ "Apache-2.0" ]
null
null
null
tests/callbacks/test_run_directory_uploader.py
stanford-crfm/composer
4996fbd818971afd6439961df58b531d9b47a37b
[ "Apache-2.0" ]
null
null
null
tests/callbacks/test_run_directory_uploader.py
stanford-crfm/composer
4996fbd818971afd6439961df58b531d9b47a37b
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 MosaicML. All Rights Reserved. import os import pathlib import pytest from composer.callbacks import RunDirectoryUploaderHparams from composer.core.event import Event from composer.core.logging import Logger from composer.core.state import State from composer.utils import dist, run_directory @pyte...
37.320755
112
0.72548
49dfcfed54a2f91d1081b4b0b96adf015a977b3c
3,033
py
Python
examples/example_classification_sound.py
fbussv/PyDSlog
7a2d1a0a615ac261eca6d9e9613e7edbe7869217
[ "MIT" ]
null
null
null
examples/example_classification_sound.py
fbussv/PyDSlog
7a2d1a0a615ac261eca6d9e9613e7edbe7869217
[ "MIT" ]
null
null
null
examples/example_classification_sound.py
fbussv/PyDSlog
7a2d1a0a615ac261eca6d9e9613e7edbe7869217
[ "MIT" ]
null
null
null
import PyDSlog.classificator as classificator import pandas as pd import numpy as np from scipy import signal from scipy.fftpack import fft ################## STREAM DATA PARAMETERS ################# N = 2000 f_s = 1000 T = 1 / f_s PREFIX = "1478194076527" X_FILES = [PREFIX+"_x_AI1U_.csv"] Y_FILE = PREFIX+"_y...
26.840708
88
0.612595
bab2f0328fab70389ad80e631d4cb5a31f61c73c
26,265
py
Python
openmdao/func_api.py
gdmcbain/OpenMDAO
ded968b82e05951979c14348b68c1c70b671055d
[ "Apache-2.0" ]
null
null
null
openmdao/func_api.py
gdmcbain/OpenMDAO
ded968b82e05951979c14348b68c1c70b671055d
[ "Apache-2.0" ]
1
2021-09-15T20:02:09.000Z
2021-09-15T20:02:09.000Z
openmdao/func_api.py
gdmcbain/OpenMDAO
ded968b82e05951979c14348b68c1c70b671055d
[ "Apache-2.0" ]
3
2016-09-06T21:21:56.000Z
2017-05-31T15:01:11.000Z
""" API to associate metadata with and retrieve metadata from function objects. """ from numbers import Number import ast import inspect import textwrap import warnings import numpy as np from contextlib import contextmanager try: import jax import jax.numpy as jnp except ImportError: jax = None _allowe...
31.759371
100
0.55968
cb111b99d1a9147cafa9998d1004bab2eeb96d82
1,022
py
Python
configs/config4.py
ebrunet28/MultiDecoder-DPRNN
36fd6c35e730379e4f676a25eac451409a01f068
[ "MIT" ]
8
2021-01-22T07:33:55.000Z
2022-01-14T03:11:55.000Z
configs/config4.py
ebrunet28/MultiDecoder-DPRNN
36fd6c35e730379e4f676a25eac451409a01f068
[ "MIT" ]
null
null
null
configs/config4.py
ebrunet28/MultiDecoder-DPRNN
36fd6c35e730379e4f676a25eac451409a01f068
[ "MIT" ]
4
2021-02-28T13:30:21.000Z
2022-03-28T12:47:08.000Z
import time import sys import os config = os.path.basename(__file__).split('.')[0] root = "/ws/ifp-10_3/hasegawa/junzhez2/Baseline_Model" lamb = 0.5 maxlen = 4 minlen = 2 kernel_size = 8 enc = 256 bottleneck = 64 hidden = 128 num_layers = 6 K = 125 num_spks = 5 epochs = 128 half_lr = True # feature not enabled early_s...
24.333333
92
0.715264
76a7193b80321206f370bced1ad192bc12f327df
5,674
py
Python
src/ai-did-you-mean-this/azext_ai_did_you_mean_this/tests/latest/data/scenarios.py
SDKAutoUP/azure-cli-extensions
5991b1656318130b78ea83a2aa87386fbe0b60eb
[ "MIT" ]
null
null
null
src/ai-did-you-mean-this/azext_ai_did_you_mean_this/tests/latest/data/scenarios.py
SDKAutoUP/azure-cli-extensions
5991b1656318130b78ea83a2aa87386fbe0b60eb
[ "MIT" ]
null
null
null
src/ai-did-you-mean-this/azext_ai_did_you_mean_this/tests/latest/data/scenarios.py
SDKAutoUP/azure-cli-extensions
5991b1656318130b78ea83a2aa87386fbe0b60eb
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
38.863014
108
0.635883
352c08b882848d80f4bb133a4415633417336daa
1,649
py
Python
Performance.py
evan-mcginnis/weeds
dabda454622d021be3aa92306d6d796e4388d080
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
Performance.py
evan-mcginnis/weeds
dabda454622d021be3aa92306d6d796e4388d080
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
Performance.py
evan-mcginnis/weeds
dabda454622d021be3aa92306d6d796e4388d080
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# # P E R F O R M A N C E # from datetime import datetime import constants as constants class Performance: def __init__(self, performanceFile: str): self.times = {} self._performanceFile = performanceFile def initialize(self) -> bool: """ Initialize the performance data file, t...
31.711538
106
0.607641
bb6c9cee4e94d9ad19f89e72ccdce18bb4b4b01d
2,160
py
Python
tests/nantest.py
fgregg/fastcluster
8bd94197b782b9c86469a665e889cf907b90ebc3
[ "BSD-2-Clause" ]
92
2016-03-12T09:27:31.000Z
2022-03-20T23:48:45.000Z
tests/nantest.py
fgregg/fastcluster
8bd94197b782b9c86469a665e889cf907b90ebc3
[ "BSD-2-Clause" ]
27
2016-04-28T04:51:51.000Z
2022-02-27T13:50:29.000Z
tests/nantest.py
fgregg/fastcluster
8bd94197b782b9c86469a665e889cf907b90ebc3
[ "BSD-2-Clause" ]
29
2016-03-16T14:18:26.000Z
2022-03-30T23:26:34.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- '''Test whether the fastcluster package correctly recognizes NaN values and raises a FloatingPointError.''' print(''' Test program for the 'fastcluster' package. Copyright: * Until package version 1.1.23: (c) 2011 Daniel Müllner <http://danifold.net> * All changes from ...
30
104
0.63287
7b6ab69dc0bd9125e287851780af345a7ca10a30
19,402
py
Python
analysis/utils.py
bizeasy17/investtrack
3840948896573f3906a5df80ea80859a492f4133
[ "MIT" ]
null
null
null
analysis/utils.py
bizeasy17/investtrack
3840948896573f3906a5df80ea80859a492f4133
[ "MIT" ]
3
2021-07-15T13:23:28.000Z
2021-12-09T03:32:16.000Z
analysis/utils.py
bizeasy17/investtrack
3840948896573f3906a5df80ea80859a492f4133
[ "MIT" ]
1
2021-08-19T14:42:59.000Z
2021-08-19T14:42:59.000Z
from datetime import date, datetime, timedelta import numpy as np import pandas as pd # from investors.models import TradeStrategy import tushare as ts from dashboard.utils import days_between from django.utils import timezone from .models import (AnalysisEventLog, StockHistoryDaily, StockStrategyTestLog, ...
39.275304
175
0.595145
69e055da869d83f3c9a25eba3b5fffcae973b40c
842
py
Python
avgamah/modules/Music/join.py
thenishantsapkota/Hikari-Bot
0d04d679b04fd0c17aa194a5e5a885292dc8f788
[ "MIT" ]
6
2021-08-31T04:53:09.000Z
2021-09-28T15:46:21.000Z
avgamah/modules/Music/join.py
thenishantsapkota/Avgamah
c7f1f9a69f8a3f4c4ea53b25dbf62e272750f76c
[ "MIT" ]
7
2021-11-03T14:58:38.000Z
2022-03-29T23:16:21.000Z
avgamah/modules/Music/join.py
thenishantsapkota/Avgamah
c7f1f9a69f8a3f4c4ea53b25dbf62e272750f76c
[ "MIT" ]
1
2021-08-31T08:04:51.000Z
2021-08-31T08:04:51.000Z
import hikari import tanjun from avgamah.core.client import Client from avgamah.utils.buttons import DELETE_ROW from . import _join join_component = tanjun.Component() @join_component.with_slash_command @tanjun.with_own_permission_check( hikari.Permissions.SEND_MESSAGES | hikari.Permissions.VIEW_CHANNEL ...
26.3125
83
0.760095
d6b71b9c0cf3830e722ee0894b5fafd3034fc1f8
2,103
py
Python
correction.py
andrew-xu-monash/UMM-Modified
18729dc34733c203e8cd3873fec2b9f7d0b56dba
[ "Apache-2.0" ]
4
2021-01-12T17:46:13.000Z
2022-03-01T23:36:38.000Z
correction.py
Novartis/UMM-Discovery
18729dc34733c203e8cd3873fec2b9f7d0b56dba
[ "Apache-2.0" ]
null
null
null
correction.py
Novartis/UMM-Discovery
18729dc34733c203e8cd3873fec2b9f7d0b56dba
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Novartis Institutes for BioMedical Research Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
30.478261
80
0.664765
3505516a3dfda13c70b059086a09ec43cf9cd8fe
11,667
py
Python
tests/test_anchor_target_layer.py
ghelloumi/CafeObjectReco
9491b655e47ee9a4e96e0634a7397330f81608c7
[ "MIT" ]
null
null
null
tests/test_anchor_target_layer.py
ghelloumi/CafeObjectReco
9491b655e47ee9a4e96e0634a7397330f81608c7
[ "MIT" ]
null
null
null
tests/test_anchor_target_layer.py
ghelloumi/CafeObjectReco
9491b655e47ee9a4e96e0634a7397330f81608c7
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from lib.faster_rcnn.anchor_target_layer import AnchorTargetLayer import chainer import cv2 as cv import numpy as np import six import unittest class TestAnchorTargetLayer(unittest.TestCase): def setUp(self): self.feat_stride = 16 self.n_channels, s...
44.026415
78
0.578641
1da73d14744303a4c20f0da078a15eb9529a6e87
9,967
py
Python
Weather-Data-Collector/Tkinter.py
Sachinsingh14/Python-Projects
1edba3574b618bc59c68a7647217a7957c604878
[ "Apache-2.0" ]
1
2021-10-18T14:52:42.000Z
2021-10-18T14:52:42.000Z
Weather-Data-Collector/Tkinter.py
Sachinsingh14/Python-Projects
1edba3574b618bc59c68a7647217a7957c604878
[ "Apache-2.0" ]
1
2021-10-18T15:30:50.000Z
2021-10-18T15:34:24.000Z
Weather-Data-Collector/Tkinter.py
Sachinsingh14/Python-Projects
1edba3574b618bc59c68a7647217a7957c604878
[ "Apache-2.0" ]
1
2021-10-18T15:20:48.000Z
2021-10-18T15:20:48.000Z
# ===== imports ======= import json from urllib.request import urlopen from API_key import api_key from html.parser import HTMLParser from tkinter import scrolledtext import urllib.request import tkinter as tk from tkinter import Menu from tkinter import ttk # ===== functions ====== # Exit GUI cleanly ...
37.897338
96
0.599177
d66554af8629ef3cd88b52450bfaad1045183c08
435
py
Python
env/Lib/site-packages/plotly/validators/carpet/aaxis/_minorgridcolor.py
andresgreen-byte/Laboratorio-1--Inversion-de-Capital
8a4707301d19c3826c31026c4077930bcd6a8182
[ "MIT" ]
11,750
2015-10-12T07:03:39.000Z
2022-03-31T20:43:15.000Z
env/Lib/site-packages/plotly/validators/carpet/aaxis/_minorgridcolor.py
andresgreen-byte/Laboratorio-1--Inversion-de-Capital
8a4707301d19c3826c31026c4077930bcd6a8182
[ "MIT" ]
2,951
2015-10-12T00:41:25.000Z
2022-03-31T22:19:26.000Z
env/Lib/site-packages/plotly/validators/carpet/aaxis/_minorgridcolor.py
andresgreen-byte/Laboratorio-1--Inversion-de-Capital
8a4707301d19c3826c31026c4077930bcd6a8182
[ "MIT" ]
2,623
2015-10-15T14:40:27.000Z
2022-03-28T16:05:50.000Z
import _plotly_utils.basevalidators class MinorgridcolorValidator(_plotly_utils.basevalidators.ColorValidator): def __init__( self, plotly_name="minorgridcolor", parent_name="carpet.aaxis", **kwargs ): super(MinorgridcolorValidator, self).__init__( plotly_name=plotly_name, ...
31.071429
80
0.668966
d3eeec9d7bec1aae5e165f2a91bbfc7244d924f5
1,560
py
Python
yatube/posts/views.py
an10nimus/yatube
2745953551f0f9b1b62d8194511cdfc567b31276
[ "MIT" ]
null
null
null
yatube/posts/views.py
an10nimus/yatube
2745953551f0f9b1b62d8194511cdfc567b31276
[ "MIT" ]
5
2021-03-19T11:47:40.000Z
2022-02-10T12:39:10.000Z
yatube/posts/views.py
an10nimus/yatube
2745953551f0f9b1b62d8194511cdfc567b31276
[ "MIT" ]
null
null
null
from django.shortcuts import render, get_object_or_404, redirect from .models import Post, Group from .forms import NewPostForm from django.contrib.auth.decorators import login_required from django.contrib.auth import get_user_model from django.core.paginator import Paginator User = get_user_model() def index(requ...
26.896552
64
0.65641
c5b8755b408df29d479226c25ff3f2134ab422fb
1,587
py
Python
aliyun-python-sdk-gts-phd/aliyunsdkgts_phd/request/v20200228/ListApiMsgRecordsRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
1,001
2015-07-24T01:32:41.000Z
2022-03-25T01:28:18.000Z
aliyun-python-sdk-gts-phd/aliyunsdkgts_phd/request/v20200228/ListApiMsgRecordsRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
363
2015-10-20T03:15:00.000Z
2022-03-08T12:26:19.000Z
aliyun-python-sdk-gts-phd/aliyunsdkgts_phd/request/v20200228/ListApiMsgRecordsRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
682
2015-09-22T07:19:02.000Z
2022-03-22T09:51:46.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
32.387755
74
0.753623
392e3aa98023b7812c8a1baa91cb63eef3928a9e
1,312
py
Python
test/frcnn_test/util_test/test_bbox.py
shtamura/maskrcnn
bc4d599efe414f03dc4f73f979ac056487997c35
[ "MIT" ]
21
2018-06-18T02:29:48.000Z
2021-11-08T09:31:31.000Z
test/frcnn_test/util_test/test_bbox.py
shtamura/maskrcnn
bc4d599efe414f03dc4f73f979ac056487997c35
[ "MIT" ]
null
null
null
test/frcnn_test/util_test/test_bbox.py
shtamura/maskrcnn
bc4d599efe414f03dc4f73f979ac056487997c35
[ "MIT" ]
7
2018-07-06T07:59:53.000Z
2019-01-10T05:30:18.000Z
import unittest from keras import backend as K import numpy as np import xrcnn.util.bbox as bbox from test.generate_random_bbox import generate_random_bbox class TestBbox(unittest.TestCase): def setUp(self): self.src_bbox = generate_random_bbox(8, (64, 32), 4, 16) self.dst_bbox = self.src_bbox + ...
32.8
77
0.556402
2127ca0b8fc41c29d00d12e8db7a8a626a02ce66
866
py
Python
ladim/utilities.py
pnsaevik/ladim
967728b291631dd5a83cb0ee041770a0a9b08313
[ "MIT" ]
null
null
null
ladim/utilities.py
pnsaevik/ladim
967728b291631dd5a83cb0ee041770a0a9b08313
[ "MIT" ]
null
null
null
ladim/utilities.py
pnsaevik/ladim
967728b291631dd5a83cb0ee041770a0a9b08313
[ "MIT" ]
null
null
null
""" General utilities for LADiM """ from typing import Any, Dict, List import numpy as np def timestep2stamp(config: Dict[str, Any], n: int) -> np.datetime64: """Convert from time step number to timestamp""" timestamp = config["start_time"] + n * np.timedelta64(config["dt"], "s") return timestamp def t...
30.928571
77
0.639723
097570eacf18a6e65ded003aa95fdeebeb0c5f6e
1,068
py
Python
enstools/io/__init__.py
wavestoweather/enstools
d0f612b0187b0ad54dfbbb78aa678564f46eaedf
[ "Apache-2.0" ]
5
2021-12-16T14:08:00.000Z
2022-03-02T14:08:10.000Z
enstools/io/__init__.py
wavestoweather/enstools
d0f612b0187b0ad54dfbbb78aa678564f46eaedf
[ "Apache-2.0" ]
null
null
null
enstools/io/__init__.py
wavestoweather/enstools
d0f612b0187b0ad54dfbbb78aa678564f46eaedf
[ "Apache-2.0" ]
null
null
null
""" Reading and Writing of meteorological data """ def __clean_HDF5_PLUGIN_PATH(): """ if the libraries from hdf5plugin are in HDF5_PLUGIN_PATH, then remove them """ import os import logging if "HDF5_PLUGIN_PATH" in os.environ: paths = os.environ["HDF5_PLUGIN_PATH"].split(":") k...
28.864865
78
0.646067
8b6d7ccb4c9c131d5335fd6a137d4ace33ecef96
7,114
py
Python
tensorflow/lite/python/lite_v2_test_util.py
Van-an/tensorflow
322463c34a2fff12c8a8fd47b0ae99d7e1de1734
[ "Apache-2.0" ]
190,993
2015-11-09T13:17:30.000Z
2022-03-31T23:05:27.000Z
tensorflow/lite/python/lite_v2_test_util.py
govl-psb/tensorflow-1
60028072a1c3b4376e145b6fea8e4ccd3324377f
[ "Apache-2.0" ]
48,461
2015-11-09T14:21:11.000Z
2022-03-31T23:17:33.000Z
tensorflow/lite/python/lite_v2_test_util.py
govl-psb/tensorflow-1
60028072a1c3b4376e145b6fea8e4ccd3324377f
[ "Apache-2.0" ]
104,981
2015-11-09T13:40:17.000Z
2022-03-31T19:51:54.000Z
# Lint as: python2, python3 # Copyright 2019 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # ...
34.038278
80
0.666151
06d7720a490e461fd2ff0b383030409b8ea2fefd
5,568
py
Python
gfx/py/residualInterpolation.py
valentjn/defense
a0ce0be1fb1832af919f804c51febfc248aefc47
[ "CC0-1.0" ]
1
2021-01-15T16:34:33.000Z
2021-01-15T16:34:33.000Z
gfx/py/residualInterpolation.py
valentjn/defense
a0ce0be1fb1832af919f804c51febfc248aefc47
[ "CC0-1.0" ]
null
null
null
gfx/py/residualInterpolation.py
valentjn/defense
a0ce0be1fb1832af919f804c51febfc248aefc47
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/python3 # number of output figures = 1 import matplotlib.patches as patches import numpy as np from helper.figure import Figure import helper.grid import helper.plot def plotNodalSpace(X, l, ax, pos, size, K=None, KColor="r", notKColor="b", textColor="k", borderColor="k"): xSquare = n...
34.37037
77
0.507902
15d3252b739a8e33bdcbeb67420455a441ce46ab
1,121
py
Python
data/p4VQE/R1/benchmark/startPyquil101.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p4VQE/R1/benchmark/startPyquil101.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p4VQE/R1/benchmark/startPyquil101.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=4 # total number=10 import pyquil from pyquil.api import local_forest_runtime, QVMConnection from pyquil import Program, get_qc from pyquil.gates import * import numpy as np conn = QVMConnection() def make_circuit()-> Program: prog = Program() # circuit begin prog += H(0) # number=1 pr...
22.42
64
0.603925
c22cdf7b0450254198c06a58e33cabca338fbc47
362
py
Python
top/api/rest/WdtDictLogisticsQueryRequest.py
SAMZONG/taobao-sdk-python3
202a9df2085229838541713bd24433a90d07c7fc
[ "MIT" ]
null
null
null
top/api/rest/WdtDictLogisticsQueryRequest.py
SAMZONG/taobao-sdk-python3
202a9df2085229838541713bd24433a90d07c7fc
[ "MIT" ]
null
null
null
top/api/rest/WdtDictLogisticsQueryRequest.py
SAMZONG/taobao-sdk-python3
202a9df2085229838541713bd24433a90d07c7fc
[ "MIT" ]
null
null
null
''' Created by auto_sdk on 2020.06.01 ''' from top.api.base import RestApi class WdtDictLogisticsQueryRequest(RestApi): def __init__(self,domain='gw.api.taobao.com',port=80): RestApi.__init__(self,domain, port) self.page_no = None self.page_size = None self.sid = None def getapiname(self): retu...
25.857143
56
0.720994
e7f4ca5d787fd9d08f48924e7e5eb8301f619790
407
py
Python
dashboard/context_processors.py
yuandrew/my-learning-analytics
9d15d54799ea29d07d04c6dde6e733ec17fb1412
[ "Apache-2.0" ]
null
null
null
dashboard/context_processors.py
yuandrew/my-learning-analytics
9d15d54799ea29d07d04c6dde6e733ec17fb1412
[ "Apache-2.0" ]
null
null
null
dashboard/context_processors.py
yuandrew/my-learning-analytics
9d15d54799ea29d07d04c6dde6e733ec17fb1412
[ "Apache-2.0" ]
1
2020-11-16T19:59:02.000Z
2020-11-16T19:59:02.000Z
from dashboard.common import db_util from dashboard.common import utils import logging logger = logging.getLogger(__name__) def get_git_version_info(request): return {'git_version': utils.get_git_version_info()} def get_myla_globals(request): return {'myla_globals': utils.get_myla_globals(request.user)} ...
22.611111
65
0.786241
78b44e0c86e31505ad8f2a50b738ae4e13ee564d
3,081
py
Python
shaka/tools/gen_eme_plugins.py
Mousmi122767/shaka-player-embedded
10d9b5e0ec737c714c7d40c62593b9fae8514a36
[ "Apache-2.0", "BSD-3-Clause" ]
185
2018-11-06T06:04:44.000Z
2022-03-02T22:20:39.000Z
shaka/tools/gen_eme_plugins.py
Mousmi122767/shaka-player-embedded
10d9b5e0ec737c714c7d40c62593b9fae8514a36
[ "Apache-2.0", "BSD-3-Clause" ]
211
2018-11-15T22:52:49.000Z
2022-03-02T18:46:20.000Z
shaka/tools/gen_eme_plugins.py
Mousmi122767/shaka-player-embedded
10d9b5e0ec737c714c7d40c62593b9fae8514a36
[ "Apache-2.0", "BSD-3-Clause" ]
52
2018-12-12T11:00:46.000Z
2022-02-23T17:35:02.000Z
#!/usr/bin/python # Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
31.438776
79
0.694904
fe5dac154cd9168308320b7e5a3978a37158ce41
942
py
Python
7_Greedy/2.py
allenalvin333/Hackerrank_Interview
b40981ef55d04fb14d81a6e1c9ade1878f59394d
[ "MIT" ]
2
2021-11-21T07:59:17.000Z
2021-11-25T13:41:50.000Z
7_Greedy/2.py
allenalvin333/Hackerrank_Interview
b40981ef55d04fb14d81a6e1c9ade1878f59394d
[ "MIT" ]
null
null
null
7_Greedy/2.py
allenalvin333/Hackerrank_Interview
b40981ef55d04fb14d81a6e1c9ade1878f59394d
[ "MIT" ]
1
2021-09-20T16:20:07.000Z
2021-09-20T16:20:07.000Z
# https://www.hackerrank.com/challenges/luck-balance/problem #!/bin/python3 import math import os import random import re import sys # # Complete the 'luckBalance' function below. # # The function is expected to return an INTEGER. # The function accepts following parameters: # 1. INTEGER k # 2. 2D_INTEGER_ARRAY co...
20.042553
65
0.643312
f45d087b9a904001bc86e27324c7095eb6b4082b
4,668
py
Python
settings.py
tsuyukimakoto/django-every_resources
caf6fd55c9d1f1a7a611bbbe740d1ee59ecdd14c
[ "BSD-3-Clause" ]
null
null
null
settings.py
tsuyukimakoto/django-every_resources
caf6fd55c9d1f1a7a611bbbe740d1ee59ecdd14c
[ "BSD-3-Clause" ]
null
null
null
settings.py
tsuyukimakoto/django-every_resources
caf6fd55c9d1f1a7a611bbbe740d1ee59ecdd14c
[ "BSD-3-Clause" ]
null
null
null
# Django settings for every_resources project. from django.conf import global_settings DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = ( # ('Your Name', 'your_email@domain.com'), ) MANAGERS = ADMINS import os BASE_DIR = os.path.dirname(__file__) DATABASE_ENGINE = 'mysql' # 'postgresql_psycopg2', 'post...
33.826087
108
0.733719
cc45d5bfea7f03cde8a99b71dbdd95a44eb2ff8d
129
py
Python
kube_apiserver_metrics/datadog_checks/kube_apiserver_metrics/__about__.py
fujigon/integrations-core
256b1c138fd1bf1c71db63698737e813cfda00f8
[ "BSD-3-Clause" ]
null
null
null
kube_apiserver_metrics/datadog_checks/kube_apiserver_metrics/__about__.py
fujigon/integrations-core
256b1c138fd1bf1c71db63698737e813cfda00f8
[ "BSD-3-Clause" ]
null
null
null
kube_apiserver_metrics/datadog_checks/kube_apiserver_metrics/__about__.py
fujigon/integrations-core
256b1c138fd1bf1c71db63698737e813cfda00f8
[ "BSD-3-Clause" ]
1
2019-12-23T13:35:17.000Z
2019-12-23T13:35:17.000Z
# (C) Datadog, Inc. 2019 # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) __version__ = '1.2.1'
25.8
59
0.713178
c2588bca0d9324f8b466768102800c7402f5e818
1,515
py
Python
tests/python/gaia-ui-tests/gaiatest/tests/functional/contacts/test_add_new_contact.py
AshayNeema/gaia
01a19813b5577b987335becf6b15734e4fe4057d
[ "Apache-2.0" ]
1
2015-03-19T19:15:33.000Z
2015-03-19T19:15:33.000Z
tests/python/gaia-ui-tests/gaiatest/tests/functional/contacts/test_add_new_contact.py
AmyYLee/gaia
a5dbae8235163d7f985bdeb7d649268f02749a8b
[ "Apache-2.0" ]
1
2021-11-01T18:29:16.000Z
2021-11-01T18:29:16.000Z
tests/python/gaia-ui-tests/gaiatest/tests/functional/contacts/test_add_new_contact.py
AmyYLee/gaia
a5dbae8235163d7f985bdeb7d649268f02749a8b
[ "Apache-2.0" ]
1
2021-08-20T11:26:36.000Z
2021-08-20T11:26:36.000Z
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. from gaiatest import GaiaTestCase from gaiatest.mocks.mock_contact import MockContact from gaiatest.apps.contacts.app i...
39.868421
85
0.712871
3a7a62be42a861e1091ca6658c337f36b05ae358
10,414
py
Python
src/finite_arm/agent_finite.py
AbhinavGopal/ts_tutorial
147ff28dc507172774693f225071f8e244e5994e
[ "MIT" ]
null
null
null
src/finite_arm/agent_finite.py
AbhinavGopal/ts_tutorial
147ff28dc507172774693f225071f8e244e5994e
[ "MIT" ]
null
null
null
src/finite_arm/agent_finite.py
AbhinavGopal/ts_tutorial
147ff28dc507172774693f225071f8e244e5994e
[ "MIT" ]
null
null
null
"""Finite bandit agents.""" import numpy as np import random as rd from scipy.stats import beta from base.agent import Agent from base.agent import random_argmax _SMALL_NUMBER = 1e-10 ############################################################################## class FiniteBernoulliBanditEpsilonGreedy(Agent): "...
36.669014
110
0.603995
14084a289a59980fa8a35e9cc1af0ad4f4acae97
205
py
Python
example/tests/integration_test.py
stickperson/test-finder
d26ae56308d720deb859480200c53aedceb07b3d
[ "MIT" ]
null
null
null
example/tests/integration_test.py
stickperson/test-finder
d26ae56308d720deb859480200c53aedceb07b3d
[ "MIT" ]
null
null
null
example/tests/integration_test.py
stickperson/test-finder
d26ae56308d720deb859480200c53aedceb07b3d
[ "MIT" ]
null
null
null
import unittest from example.code.thing import MyClass class MyClassTestCase(unittest.TestCase): def test_my_class(self): my_class = MyClass() self.assertEqual(my_class.true(), True)
22.777778
47
0.726829
0214b1418689909b151e8886adb34dc3bbef66b6
4,689
py
Python
fsb5/vorbis_headers2.py
aspadm/DEMD-database-old
6bc3407f5260b9c85dc050de676b2d07723f4632
[ "MIT" ]
3
2020-02-23T04:22:06.000Z
2021-06-02T22:24:36.000Z
fsb5/vorbis_headers2.py
aspadm/DEMD-database
6bc3407f5260b9c85dc050de676b2d07723f4632
[ "MIT" ]
null
null
null
fsb5/vorbis_headers2.py
aspadm/DEMD-database
6bc3407f5260b9c85dc050de676b2d07723f4632
[ "MIT" ]
1
2020-07-10T23:11:29.000Z
2020-07-10T23:11:29.000Z
lookup = { 2959665: (2, 2, 48000), 43260314: (9, 2, 32000), 84231274: (5, 2, 32000), 118203318: (32, 1, 32000), 138890043: (27, 1, 44100), 145177876: (3, 1, 48000), 158483422: (9, 1, 11000), 177207038: (100, 2, 24000), 252678865: (1, 2, 44100), 325328602: (12, 2, 16000), 348001315: (28, 2, 32000), 351620542...
28.077844
29
0.61399
dd004d4de09f1ae229a3639e11a79d4da9ab34c0
9,344
py
Python
testplan/testing/multitest/driver/fix/client.py
apretori-tic/testplan
d3926d328e46c88d12a9c2568d4918f8aa44f26e
[ "Apache-2.0" ]
null
null
null
testplan/testing/multitest/driver/fix/client.py
apretori-tic/testplan
d3926d328e46c88d12a9c2568d4918f8aa44f26e
[ "Apache-2.0" ]
null
null
null
testplan/testing/multitest/driver/fix/client.py
apretori-tic/testplan
d3926d328e46c88d12a9c2568d4918f8aa44f26e
[ "Apache-2.0" ]
null
null
null
"""FixClient driver classes.""" import os import errno import socket from schema import Use, Or from testplan.common.config import ConfigOption from testplan.common.utils.context import is_context, expand from testplan.common.utils.strings import slugify from testplan.common.utils.sockets.fix.client import Client fr...
33.017668
80
0.592466
39f40870b4dba9faa2c7762d0bfc34c9879af5d9
572
py
Python
grafica/assets_path.py
cristobalfuenzalida/grafica
cf7bb90c4c5c34ee56d328188111c917a0d10389
[ "MIT" ]
12
2021-08-17T12:57:39.000Z
2022-03-28T02:52:30.000Z
grafica/assets_path.py
cristobalfuenzalida/grafica
cf7bb90c4c5c34ee56d328188111c917a0d10389
[ "MIT" ]
3
2021-03-18T17:32:12.000Z
2021-03-22T10:02:19.000Z
grafica/assets_path.py
cristobalfuenzalida/grafica
cf7bb90c4c5c34ee56d328188111c917a0d10389
[ "MIT" ]
13
2021-08-17T03:23:21.000Z
2022-03-20T21:40:16.000Z
# coding=utf-8 """Convenience functionality to access assets files""" import os.path __author__ = "Daniel Calderon" __license__ = "MIT" def getAssetPath(filename): """Convenience function to access assets files regardless from where you run the example script.""" thisFilePath = os.path.abspath(__file__) ...
30.105263
103
0.755245
b159b87b6f7631fde4f4fe1f71677b78824386a3
55,120
py
Python
mirage/libs/ble.py
byte-arts/mirage
ab67f234d446abe3a02796145165e16966175b51
[ "MIT" ]
null
null
null
mirage/libs/ble.py
byte-arts/mirage
ab67f234d446abe3a02796145165e16966175b51
[ "MIT" ]
null
null
null
mirage/libs/ble.py
byte-arts/mirage
ab67f234d446abe3a02796145165e16966175b51
[ "MIT" ]
1
2021-06-22T09:34:01.000Z
2021-06-22T09:34:01.000Z
from scapy.all import * from mirage.core.module import WirelessModule from mirage.libs.ble_utils.scapy_hci_layers import * from mirage.libs.ble_utils.packets import * from mirage.libs.ble_utils.constants import * from mirage.libs.bt_utils.assigned_numbers import AssignedNumbers from mirage.libs.ble_utils.ubertooth impo...
37.117845
227
0.688879
5e7cadc00efd429364fb4288e669d962d758488b
5,067
py
Python
odziez/orders/views.py
szymanskirafal/odziez
029d20da0474a0380e8383f9f89c1072666c5399
[ "MIT" ]
null
null
null
odziez/orders/views.py
szymanskirafal/odziez
029d20da0474a0380e8383f9f89c1072666c5399
[ "MIT" ]
null
null
null
odziez/orders/views.py
szymanskirafal/odziez
029d20da0474a0380e8383f9f89c1072666c5399
[ "MIT" ]
null
null
null
from django.core.mail import EmailMessage from django.core.exceptions import ObjectDoesNotExist from django.urls import reverse_lazy from django.utils.timezone import localdate from django.views import generic from clothes.models import Clothe, KindOfClothe from employees.models import Employee, Manager, Supervisor f...
34.944828
107
0.677916
90ca26646cd80fbdd4e99fc91026282aec822442
7,379
py
Python
investmentportfolio.py
mikolajroszak/Analyze-Investment-Portfolio
6e3c30c9e6c96e007e1a81053cccfee52996b714
[ "IBM-pibs" ]
14
2018-10-15T07:12:53.000Z
2021-09-23T02:29:29.000Z
investmentportfolio.py
mikolajroszak/Analyze-Investment-Portfolio
6e3c30c9e6c96e007e1a81053cccfee52996b714
[ "IBM-pibs" ]
null
null
null
investmentportfolio.py
mikolajroszak/Analyze-Investment-Portfolio
6e3c30c9e6c96e007e1a81053cccfee52996b714
[ "IBM-pibs" ]
13
2018-08-24T20:42:52.000Z
2020-10-01T04:33:51.000Z
import requests import json import argparse from dotenv import load_dotenv import os import datetime #Initalize Investment Portfolio Service credentials to find on Bluemix otherwise from .env file if 'VCAP_SERVICES' in os.environ: vcap_servicesData = json.loads(os.environ['VCAP_SERVICES']) # Log the fact that ...
36.529703
152
0.675566
65551497f8f48ab00d345eb3479d937eb3396b1e
592
py
Python
Leetcode-python/_Python3/Threading/thread.py
gnsalok/algo-ds-python
6e37f9a536c634673451d9acaeb4968536fb0b8b
[ "MIT" ]
3
2021-12-17T17:12:23.000Z
2022-03-29T13:41:21.000Z
Leetcode-python/_Python3/Threading/thread.py
gnsalok/algo-ds-python
6e37f9a536c634673451d9acaeb4968536fb0b8b
[ "MIT" ]
null
null
null
Leetcode-python/_Python3/Threading/thread.py
gnsalok/algo-ds-python
6e37f9a536c634673451d9acaeb4968536fb0b8b
[ "MIT" ]
null
null
null
import threading def printCube(num): print("Cube: {}\n".format(num*num*num)) def printSquare(num): print("Square: {}\n".format(num * num)) if __name__ == "__main__": # creating thread t1 = threading.Thread(target=printSquare, args=(10,)) t2 = threading.Thread(target=printCube, args=(10,)) # ...
16
57
0.628378
5e0739a7f7e0292c4cbddb47d069074bf392ae45
5,511
py
Python
stats/cli/commands.py
48ix/stats
4b7ae032c4db3d7e01ee48e4af071d793753da1a
[ "MIT" ]
null
null
null
stats/cli/commands.py
48ix/stats
4b7ae032c4db3d7e01ee48e4af071d793753da1a
[ "MIT" ]
null
null
null
stats/cli/commands.py
48ix/stats
4b7ae032c4db3d7e01ee48e4af071d793753da1a
[ "MIT" ]
1
2020-10-22T00:00:42.000Z
2020-10-22T00:00:42.000Z
"""CLI Commands & Configuration.""" # Standard Library import asyncio # Third Party from click import CommandCollection, group, option, prompt, argument # Project from stats.cli.echo import Echo echo = Echo() @group() def main(): """Initialize CLI commands.""" pass def aiorun(coro, *args, **kwargs): ...
25.05
80
0.636908
1632dbf8b4dea71adbf28701881d93a57bb7343b
11,237
py
Python
cogs/help.py
Brettanda/friday-bot
d103b1c103052b8d6d12f44456fea3823bd22447
[ "CC0-1.0" ]
5
2021-09-04T09:08:55.000Z
2022-02-08T00:28:08.000Z
cogs/help.py
Brettanda/friday-bot
d103b1c103052b8d6d12f44456fea3823bd22447
[ "CC0-1.0" ]
2
2021-10-11T21:44:08.000Z
2021-11-05T07:41:23.000Z
cogs/help.py
Brettanda/friday-bot
d103b1c103052b8d6d12f44456fea3823bd22447
[ "CC0-1.0" ]
3
2021-09-04T09:12:34.000Z
2021-12-16T20:02:03.000Z
# import itertools # import math import discord from discord import Embed from discord.ext import commands from discord.ext.menus import ListPageSource, ButtonMenuPages # from discord.utils import get # from interactions import Context as SlashContext # import typing from typing_extensions import TYPE_CHECKING # from ...
37.835017
442
0.671799
0d0f53562b223ec1c7396ecc313c7cc59b5a2c19
232,161
py
Python
skimage/external/tifffile/tifffile.py
thewtex/scikit-image
22bb6b94698b8889cbdf26b25d9e4fdb8b968d97
[ "BSD-3-Clause" ]
1
2022-01-29T23:04:13.000Z
2022-01-29T23:04:13.000Z
skimage/external/tifffile/tifffile.py
thewtex/scikit-image
22bb6b94698b8889cbdf26b25d9e4fdb8b968d97
[ "BSD-3-Clause" ]
null
null
null
skimage/external/tifffile/tifffile.py
thewtex/scikit-image
22bb6b94698b8889cbdf26b25d9e4fdb8b968d97
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # tifffile.py # Copyright (c) 2008-2017, Christoph Gohlke # Copyright (c) 2008-2017, The Regents of the University of California # Produced at the Laboratory for Fluorescence Dynamics # All rights reserved. # # Redistribution and use in source and binary forms, with or wit...
36.224216
79
0.556868
7c82701f6f499b9d0cdcd12caf514abd70e7e29e
1,039
py
Python
bulk-update-github-auth-token.py
gopaljigaur/github-gitea-mirror
de3b97ef9fd36fd352f94ceee7e79de02cc6ebef
[ "MIT" ]
79
2020-10-14T03:05:45.000Z
2022-03-27T01:07:52.000Z
bulk-update-github-auth-token.py
Ta180m/github-gitea-mirror
0238264eda182f8ad946a28a95405297ef12e6e7
[ "MIT" ]
2
2021-02-20T01:26:07.000Z
2021-03-16T00:52:06.000Z
bulk-update-github-auth-token.py
Ta180m/github-gitea-mirror
0238264eda182f8ad946a28a95405297ef12e6e7
[ "MIT" ]
12
2020-10-18T01:31:47.000Z
2021-11-09T23:44:57.000Z
#!/usr/bin/env python ################################################################# ### This file can be used to bulk update ### ### all repositories with new auth token ### ### Because Gitea Currently Dose not provide a option for it. ### ### Usage : python3 bulk-update-gi...
35.827586
89
0.556304
869c8ee615e45e1731db86633730a86f47c1b7c8
22,399
py
Python
saleor/giftcard/tests/test_utils.py
victor-abz/saleor
f8e2b49703d995d4304d5a690dbe9c83631419d0
[ "CC-BY-4.0" ]
1
2022-03-25T00:21:11.000Z
2022-03-25T00:21:11.000Z
saleor/giftcard/tests/test_utils.py
victor-abz/saleor
f8e2b49703d995d4304d5a690dbe9c83631419d0
[ "CC-BY-4.0" ]
81
2021-10-11T04:26:07.000Z
2022-03-28T04:46:43.000Z
saleor/giftcard/tests/test_utils.py
victor-abz/saleor
f8e2b49703d995d4304d5a690dbe9c83631419d0
[ "CC-BY-4.0" ]
1
2022-02-16T22:00:59.000Z
2022-02-16T22:00:59.000Z
from datetime import date, timedelta from unittest.mock import patch import pytest from dateutil.relativedelta import relativedelta from django.core.exceptions import ValidationError from django.utils import timezone from ...core import TimePeriodType from ...core.utils.promo_code import InvalidPromoCode from ...orde...
29.472368
88
0.726148
37d736a5ad2d8e9c0af9699ffd61953b92266018
16,635
py
Python
tests/flow/test_ts_createrule.py
elena-kolevska/RedisTimeSeries
7aa3e5b90e593adce60bf1506ec76d055c05f278
[ "MIT", "Ruby", "BSD-3-Clause" ]
643
2019-05-14T15:38:10.000Z
2022-03-29T01:15:49.000Z
tests/flow/test_ts_createrule.py
elena-kolevska/RedisTimeSeries
7aa3e5b90e593adce60bf1506ec76d055c05f278
[ "MIT", "Ruby", "BSD-3-Clause" ]
888
2019-05-15T10:51:07.000Z
2022-03-31T10:40:04.000Z
tests/flow/test_ts_createrule.py
elena-kolevska/RedisTimeSeries
7aa3e5b90e593adce60bf1506ec76d055c05f278
[ "MIT", "Ruby", "BSD-3-Clause" ]
107
2019-05-24T11:12:39.000Z
2022-03-31T10:01:00.000Z
import math import random import statistics import pytest import redis from RLTest import Env from test_helper_classes import _get_series_value, calc_rule, ALLOWED_ERROR, _insert_data, \ _get_ts_info, _insert_agg_data key_name = 'tester{abc}' agg_key_name = '{}_agg_max_10'.format(key_name) def test_compaction_ru...
49.508929
116
0.62092
71e4e98a075c68c33cb94c262a55f4da0dad8712
1,928
py
Python
unittests/test_cpp_standards.py
RoyVorster/pygccxml
f487b1e26e88d521d623e6a587510b322f7d3dc7
[ "BSL-1.0" ]
80
2015-01-01T08:20:16.000Z
2020-05-03T15:58:27.000Z
unittests/test_cpp_standards.py
RoyVorster/pygccxml
f487b1e26e88d521d623e6a587510b322f7d3dc7
[ "BSL-1.0" ]
99
2015-01-10T09:36:43.000Z
2020-05-07T20:03:18.000Z
unittests/test_cpp_standards.py
RoyVorster/pygccxml
f487b1e26e88d521d623e6a587510b322f7d3dc7
[ "BSL-1.0" ]
27
2015-03-12T20:00:13.000Z
2019-11-28T09:07:02.000Z
# Copyright 2014-2017 Insight Software Consortium. # Copyright 2004-2009 Roman Yakovenko. # Distributed under the Boost Software License, Version 1.0. # See http://www.boost.org/LICENSE_1_0.txt import platform import unittest from . import parser_test_case from pygccxml import parser class Test(parser_test_case.pa...
28.352941
70
0.635892
fe3b80424e8c9107df15af184d8c210dbbc8abd5
4,036
py
Python
examples/plot_matching_outlier.py
atong01/unbalanced_gromov_wasserstein
7675d8512d81007cc29e7564f1f6784d81f39740
[ "MIT" ]
1
2020-09-11T02:05:11.000Z
2020-09-11T02:05:11.000Z
examples/plot_matching_outlier.py
dpduanpu/unbalanced_gromov_wasserstein
8f37685e801ae65bda9fc421070b92e414bc2980
[ "MIT" ]
null
null
null
examples/plot_matching_outlier.py
dpduanpu/unbalanced_gromov_wasserstein
8f37685e801ae65bda9fc421070b92e414bc2980
[ "MIT" ]
null
null
null
import os import numpy as np import matplotlib.pyplot as plt import torch from solver.utils_numpy import euclid_dist from ot.gromov import gromov_wasserstein from solver.tlb_kl_sinkhorn_solver import TLBSinkhornSolver path = os.getcwd() + "/output" if not os.path.isdir(path): os.mkdir(path) path = path + "/plots...
39.184466
112
0.573588
e329c69d7dcb64ff9e9e4dab30f4c65f9938d461
91,992
py
Python
scalyr_agent/builtin_monitors/kubernetes_monitor.py
echee2/scalyr-agent-2
da7d168260b94dc95aedb5ae0dca03165e55cb02
[ "Apache-2.0" ]
null
null
null
scalyr_agent/builtin_monitors/kubernetes_monitor.py
echee2/scalyr-agent-2
da7d168260b94dc95aedb5ae0dca03165e55cb02
[ "Apache-2.0" ]
null
null
null
scalyr_agent/builtin_monitors/kubernetes_monitor.py
echee2/scalyr-agent-2
da7d168260b94dc95aedb5ae0dca03165e55cb02
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Scalyr Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, so...
51.106667
523
0.634251
f6f8c36315ab14609c40584e7864382cf9687ef1
10,795
py
Python
bips/workflows/workflow6.py
FCP-INDI/BrainImagingPipelines
2b0da2b50814cc685f15fefbae8144624308ebfc
[ "Apache-2.0" ]
1
2015-07-15T19:48:09.000Z
2015-07-15T19:48:09.000Z
bips/workflows/workflow6.py
FCP-INDI/BrainImagingPipelines
2b0da2b50814cc685f15fefbae8144624308ebfc
[ "Apache-2.0" ]
null
null
null
bips/workflows/workflow6.py
FCP-INDI/BrainImagingPipelines
2b0da2b50814cc685f15fefbae8144624308ebfc
[ "Apache-2.0" ]
null
null
null
import os from .base import MetaWorkflow, load_config, register_workflow from ..utils.reportsink.io import ReportSink from traits.api import HasTraits, Directory, Bool, Button import traits.api as traits from .scripts.u0a14c5b5899911e1bca80023dfa375f2.workflow1 import get_dataflow """ Part 1: Define a MetaWorkflow """...
38.41637
141
0.668921
22baa4f819aa880990c6f3759110cfaf27f35664
1,735
py
Python
tests/test_maps.py
potsdam-language-vision-2021/eyebot-1.0
dd2f618a8357ef16c497d06b8b19ab38d628645a
[ "MIT" ]
null
null
null
tests/test_maps.py
potsdam-language-vision-2021/eyebot-1.0
dd2f618a8357ef16c497d06b8b19ab38d628645a
[ "MIT" ]
46
2021-04-30T15:28:40.000Z
2021-08-21T15:26:34.000Z
tests/test_maps.py
potsdam-language-vision-2021/eyebot-1.0
dd2f618a8357ef16c497d06b8b19ab38d628645a
[ "MIT" ]
1
2021-08-07T19:41:12.000Z
2021-08-07T19:41:12.000Z
import unittest from matplotlib import pyplot as plt from avatar.mapworld.maps import ADEMap class ADEMapTestCase(unittest.TestCase): def test_print_mapping(self): # Create map with five rooms on a four times three grid with no repetitions map = ADEMap(n=4, m=4, n_rooms=8, types_to_repeat=[2, 2...
23.767123
83
0.402305
2fcee5e3ad0dcd6155ab38ed3c8dc6828116abd1
1,954
py
Python
crypto_compare/client.py
BoTreeConsultingTeam/crypto_compare
048ac3ef34ccfc5100ce5310318787fb222f55da
[ "MIT" ]
28
2017-08-30T18:05:20.000Z
2022-03-31T10:28:38.000Z
crypto_compare/client.py
joe-wojniak/crypto_compare
048ac3ef34ccfc5100ce5310318787fb222f55da
[ "MIT" ]
2
2017-12-25T22:11:07.000Z
2018-11-24T08:19:07.000Z
crypto_compare/client.py
joe-wojniak/crypto_compare
048ac3ef34ccfc5100ce5310318787fb222f55da
[ "MIT" ]
9
2017-11-15T19:01:54.000Z
2021-06-19T11:04:27.000Z
class Client: def __init__(self, apikey): self.apikey = apikey BASE_URL = 'https://min-api.cryptocompare.com' COIN_LIST_URL = BASE_URL + '/data/all/coinlist' COIN_SNAPSHOT_FULL_BY_ID_URL = 'https://www.cryptocompare.com/api/data/coinsnapshotfullbyid/?id=' COIN_SNAPSHOT_URL = BASE_URL...
41.574468
101
0.735415
7e86573567ad0520f8b3d4bb00da0491fa042ead
285
py
Python
packaging_example/2_and_now_we_are_really_growing/lab/computations/list_methods.py
sr105/python_packages_tutorial
e795ce1ff14463dd5c3da06d120a4e40da5ad732
[ "MIT" ]
1
2021-06-11T17:47:39.000Z
2021-06-11T17:47:39.000Z
packaging_example/2_and_now_we_are_really_growing/lab/computations/list_methods.py
sr105/python_packages_tutorial
e795ce1ff14463dd5c3da06d120a4e40da5ad732
[ "MIT" ]
null
null
null
packaging_example/2_and_now_we_are_really_growing/lab/computations/list_methods.py
sr105/python_packages_tutorial
e795ce1ff14463dd5c3da06d120a4e40da5ad732
[ "MIT" ]
null
null
null
# Computations def multiply_a_list_by(a_list, number): """Return a list with every item multiplied by number.""" return [item * number for item in a_list] def square_a_list(a_list): """Return a list with every item squared.""" return [item * item for item in a_list]
28.5
61
0.701754
5acc822ed84d52be956b8af5c4d1f5bff394ab7c
7,486
py
Python
xo.py
Gooif/iiii-files
60096f948db416a05a8a038f8eb15c9d60ad4873
[ "MIT" ]
null
null
null
xo.py
Gooif/iiii-files
60096f948db416a05a8a038f8eb15c9d60ad4873
[ "MIT" ]
null
null
null
xo.py
Gooif/iiii-files
60096f948db416a05a8a038f8eb15c9d60ad4873
[ "MIT" ]
null
null
null
from utlis.rank import setrank,isrank,remrank,remsudos,setsudo, GPranks,IDrank from utlis.send import send_msg, BYusers, GetLink,Name,Glang from utlis.locks import st,getOR from utlis.tg import Bot from config import * from pyrogram import ReplyKeyboardMarkup, InlineKeyboardMarkup, InlineKeyboardButton import threadin...
30.555102
179
0.583088
0f361c22ba07987763abd44e4b5ad4ac00e76f16
193
py
Python
ex051.py
honeyhugh/PythonCurso
e5b8efe04e100ea0b0c0aacde1caf7ae52489f40
[ "MIT" ]
null
null
null
ex051.py
honeyhugh/PythonCurso
e5b8efe04e100ea0b0c0aacde1caf7ae52489f40
[ "MIT" ]
null
null
null
ex051.py
honeyhugh/PythonCurso
e5b8efe04e100ea0b0c0aacde1caf7ae52489f40
[ "MIT" ]
null
null
null
n1 = int(input('Digite o 1º termo: ')) r = int(input('Digite a razão: ')) print('Os dez primeiros termos dessa PA são:') for c in range(n1, n1 + 10 * r, r): print(c, end=', ') print('fim')
27.571429
46
0.601036
83b441edcc83909a9ebd00af49ef8c901c05c222
4,849
py
Python
src/qt/qtwebkit/Tools/QueueStatusServer/model/attachment.py
viewdy/phantomjs
eddb0db1d253fd0c546060a4555554c8ee08c13c
[ "BSD-3-Clause" ]
1
2015-05-27T13:52:20.000Z
2015-05-27T13:52:20.000Z
src/qt/qtwebkit/Tools/QueueStatusServer/model/attachment.py
mrampersad/phantomjs
dca6f77a36699eb4e1c46f7600cca618f01b0ac3
[ "BSD-3-Clause" ]
null
null
null
src/qt/qtwebkit/Tools/QueueStatusServer/model/attachment.py
mrampersad/phantomjs
dca6f77a36699eb4e1c46f7600cca618f01b0ac3
[ "BSD-3-Clause" ]
1
2017-03-19T13:03:23.000Z
2017-03-19T13:03:23.000Z
# Copyright (C) 2009 Google 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 conditions and the...
39.104839
133
0.66323
f8e3bb31903275953aa11986300ccc8f94aa8642
3,298
py
Python
src/cpu/testers/garnet_synthetic_traffic/GarnetSyntheticTraffic.py
georgia-tech-synergy-lab/gem5_astra
41695878a2b60c5a28fa104465558cd1acb8a695
[ "BSD-3-Clause" ]
5
2020-11-15T12:27:28.000Z
2021-09-20T03:50:54.000Z
src/cpu/testers/garnet_synthetic_traffic/GarnetSyntheticTraffic.py
georgia-tech-synergy-lab/gem5_astra
41695878a2b60c5a28fa104465558cd1acb8a695
[ "BSD-3-Clause" ]
null
null
null
src/cpu/testers/garnet_synthetic_traffic/GarnetSyntheticTraffic.py
georgia-tech-synergy-lab/gem5_astra
41695878a2b60c5a28fa104465558cd1acb8a695
[ "BSD-3-Clause" ]
2
2020-10-27T01:15:41.000Z
2020-11-16T02:30:32.000Z
# Copyright (c) 2016 Georgia Institute of Technology # 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...
52.349206
73
0.701941
dd8b050956ae03d5159d15cc8313e4f99d55b95f
2,445
py
Python
source/scripts/python/watzon/source/watzon.py
gargakshit/core
84868a3e3151088c68520f9db9235e03c0ac0d11
[ "Apache-2.0" ]
928
2018-12-26T22:40:59.000Z
2022-03-31T12:17:43.000Z
source/scripts/python/watzon/source/watzon.py
gargakshit/core
84868a3e3151088c68520f9db9235e03c0ac0d11
[ "Apache-2.0" ]
132
2019-03-01T21:01:17.000Z
2022-03-17T09:00:42.000Z
source/scripts/python/watzon/source/watzon.py
gargakshit/core
84868a3e3151088c68520f9db9235e03c0ac0d11
[ "Apache-2.0" ]
112
2019-01-15T09:36:11.000Z
2022-03-12T06:39:01.000Z
import sys import ast # import contextlib from os import remove from io import StringIO async def python_eval(expression): response, out = await async_eval(expression) return [response, out] async def async_eval(code, **kwargs): # Note to self: please don't set globals here as they will be lost. # Don't clutter l...
29.817073
109
0.676483
6de62933c02352bdcc55a94d71ec1bbd55915fa4
1,774
py
Python
src/constants.py
shigashiyama/seikanlp
fa052bf4062a1be01458f03fe11c833f887cc127
[ "MIT" ]
4
2019-08-14T10:51:51.000Z
2021-03-18T07:53:20.000Z
src/constants.py
shigashiyama/seikanlp
fa052bf4062a1be01458f03fe11c833f887cc127
[ "MIT" ]
null
null
null
src/constants.py
shigashiyama/seikanlp
fa052bf4062a1be01458f03fe11c833f887cc127
[ "MIT" ]
null
null
null
import numpy as np global __version __version__ = 'v0.1.0' ### task TASK_SEG = 'seg' TASK_SEGTAG = 'segtag' TASK_TAG = 'tag' TASK_DEP = 'dep' TASK_TDEP = 'tdep' TASK_MTMD_SEG = 'mtmd_seg' TASK_MTMD_SEGTAG = 'mtmd_segtag' TASK_MTMD_TAG = 'mtmd_tag' ### for analyzer LOG_DIR = 'log' MODEL_DIR = 'models/main' ### fo...
17.74
70
0.609921
46de4ec280f94390bef59a94185ef204378d19d3
479
py
Python
tweepy_client.py
thecodepixi/hug-bot
9ac20ea13b482522a8b7a37d3a6a3623a09f6319
[ "MIT" ]
15
2020-02-26T17:26:40.000Z
2021-05-05T19:51:52.000Z
tweepy_client.py
thecodepixi/hug-bot
9ac20ea13b482522a8b7a37d3a6a3623a09f6319
[ "MIT" ]
8
2020-02-23T04:38:18.000Z
2020-12-29T00:40:07.000Z
tweepy_client.py
thecodepixi/hug-bot
9ac20ea13b482522a8b7a37d3a6a3623a09f6319
[ "MIT" ]
4
2020-02-27T00:20:04.000Z
2020-12-29T00:24:26.000Z
from os import environ import tweepy from statuses import STATUSES def twitter_api(): twitter_api_key = environ['twitter_api_key'] twitter_api_secret = environ['twitter_api_secret'] twitter_access_token = environ['twitter_access_token'] twitter_access_secret = environ['twitter_access_secret'] auth...
34.214286
70
0.797495
1afe5666801a5ebac0d33fe7067a25d3165c1447
1,014
py
Python
main.py
vantage-ola/youtubedl-appDownloader
e54ff787e741e3056f130bbbc638eada17e6f586
[ "MIT" ]
1
2021-08-19T22:06:30.000Z
2021-08-19T22:06:30.000Z
main.py
vantage-ola/youtubedl-appDownloader
e54ff787e741e3056f130bbbc638eada17e6f586
[ "MIT" ]
null
null
null
main.py
vantage-ola/youtubedl-appDownloader
e54ff787e741e3056f130bbbc638eada17e6f586
[ "MIT" ]
null
null
null
from kivy.app import App from kivy.uix.recycleview import RecycleView from kivy.uix.boxlayout import BoxLayout from kivy.properties import ObjectProperty, NumericProperty, StringProperty from kivy.core.window import Window from kivy.utils import get_color_from_hex from download import checkOnlineActivity, checkValidUr...
26.684211
101
0.751479
0ad5c5b70cbbc78b4d9e9e42c825d0eb72e55df8
2,369
py
Python
data/p4VQE/R2/benchmark/startQiskit_noisy20.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p4VQE/R2/benchmark/startQiskit_noisy20.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p4VQE/R2/benchmark/startQiskit_noisy20.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=3 # total number=8 import numpy as np from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ import networkx as nx from qiskit.visualization import plot_histogram from typing import * from pprint import pprint from math import log2 from collection...
26.920455
118
0.633179
a5b27dc483a0aed22f6bc47c97d1cea8641fb627
3,162
py
Python
k-means/loadata.py
ysx001/IIC
e72eb0833785e867ded0a9bac47ce1d1f9f47b4b
[ "MIT" ]
null
null
null
k-means/loadata.py
ysx001/IIC
e72eb0833785e867ded0a9bac47ce1d1f9f47b4b
[ "MIT" ]
null
null
null
k-means/loadata.py
ysx001/IIC
e72eb0833785e867ded0a9bac47ce1d1f9f47b4b
[ "MIT" ]
null
null
null
#!python #!/usr/bin/env python from scipy.io import loadmat from glob import glob import os.path as osp root = '/home/sarah/DiffSeg-Data/' subjects = sorted(glob(osp.join(root, 'mwu*'))) print(len(subjects)) # %% Write the labels acutally in data to labels.csv # subjects = sorted(glob(osp.join(root, 'mwu*'))) # act...
30.114286
103
0.590765
f927bde48619c19bf9acad8505dafa89dab1736c
2,670
py
Python
tests/test_multidb_migrate.py
Nibblecomm/Customersite-Migrate
499816364e9256a70e794a6aadf0170bc8cbe5ae
[ "MIT" ]
null
null
null
tests/test_multidb_migrate.py
Nibblecomm/Customersite-Migrate
499816364e9256a70e794a6aadf0170bc8cbe5ae
[ "MIT" ]
null
null
null
tests/test_multidb_migrate.py
Nibblecomm/Customersite-Migrate
499816364e9256a70e794a6aadf0170bc8cbe5ae
[ "MIT" ]
null
null
null
import os import shutil import unittest import subprocess import shlex import sqlite3 def run_cmd(cmd): """Run a command and return a tuple with (stdout, stderr, exit_code)""" process = subprocess.Popen(shlex.split(cmd), stdout=subprocess.PIPE, stderr=subprocess.PIPE) (stdou...
30.689655
75
0.576779
9c75c2f08da55fb9751732d448756e8c516ebf86
20,467
py
Python
printer/Adafruit_Thermal.py
plane000/IOT-recept-printer
b7f9269c6d7c943aed626a4eb31223ed91a9d0d8
[ "MIT" ]
null
null
null
printer/Adafruit_Thermal.py
plane000/IOT-recept-printer
b7f9269c6d7c943aed626a4eb31223ed91a9d0d8
[ "MIT" ]
null
null
null
printer/Adafruit_Thermal.py
plane000/IOT-recept-printer
b7f9269c6d7c943aed626a4eb31223ed91a9d0d8
[ "MIT" ]
null
null
null
from __future__ import print_function from serial import Serial import time import sys class Adafruit_Thermal(Serial): resumeTime = 0.0 byteTime = 0.0 dotPrintTime = 0.0 dotFeedTime = 0.0 prevByte = '\n' column = 0 maxColumn = 32 charHeight = 120...
28.949081
72
0.656765
22e4ac6421d3449689efc69931e02d078d5b4758
245
py
Python
ddtrace/ext/kombu.py
vijayperiasamy-eb/dd-trace-py
2b0d396fc7f76582e8ffedff48933245a77ebaf2
[ "BSD-3-Clause" ]
1
2020-03-10T01:45:56.000Z
2020-03-10T01:45:56.000Z
ddtrace/ext/kombu.py
vijayperiasamy-eb/dd-trace-py
2b0d396fc7f76582e8ffedff48933245a77ebaf2
[ "BSD-3-Clause" ]
null
null
null
ddtrace/ext/kombu.py
vijayperiasamy-eb/dd-trace-py
2b0d396fc7f76582e8ffedff48933245a77ebaf2
[ "BSD-3-Clause" ]
null
null
null
# type of the spans TYPE = 'kombu' # net extension VHOST = 'out.vhost' # standard tags EXCHANGE = 'kombu.exchange' BODY_LEN = 'kombu.body_length' ROUTING_KEY = 'kombu.routing_key' PUBLISH_NAME = 'kombu.publish' RECEIVE_NAME = 'kombu.receive'
17.5
33
0.734694
833c79e41781588c05316beda10e02e743a1fce6
862
py
Python
HashDB/writer.py
LordGhostX/HashDB
960aeb6558303ff37f3ac3fb2256172271ca0ae6
[ "MIT" ]
10
2019-08-15T15:40:52.000Z
2021-02-13T09:52:47.000Z
HashDB/writer.py
LordGhostX/HashDB
960aeb6558303ff37f3ac3fb2256172271ca0ae6
[ "MIT" ]
1
2019-09-14T22:50:34.000Z
2020-07-05T22:44:15.000Z
HashDB/writer.py
LordGhostX/HashDB
960aeb6558303ff37f3ac3fb2256172271ca0ae6
[ "MIT" ]
3
2019-08-16T09:47:05.000Z
2019-12-15T11:41:41.000Z
#HashDB #Author - LordGhostX from event_logger import event_log from crypt import encryptdb from json import dumps from time import time #Creating a new HashDB Database #Usage: write(<name of database to create>, <data to save as json>, <password if any>, <indentation to use for JSON output>) def write(dbname, dbcont...
33.153846
124
0.709977
98bdca82b38af55049452ef874b9125496829e69
338
py
Python
docs/conf.py
NicDom/pyoverload
88d4421aedec55a1f43442daabf2a3a91bb5260a
[ "MIT" ]
1
2021-10-05T20:15:15.000Z
2021-10-05T20:15:15.000Z
docs/conf.py
NicDom/pyoverload
88d4421aedec55a1f43442daabf2a3a91bb5260a
[ "MIT" ]
48
2021-09-27T07:25:36.000Z
2022-03-30T10:27:01.000Z
docs/conf.py
NicDom/overloadlib
88d4421aedec55a1f43442daabf2a3a91bb5260a
[ "MIT" ]
null
null
null
"""Sphinx configuration.""" from datetime import datetime project = "Overloadlib" author = "Niclas D. Gesing" copyright = f"{datetime.now().year}, {author}" extensions = [ "sphinx.ext.autodoc", "sphinx.ext.napoleon", "sphinx_click", "sphinx_rtd_theme", ] autodoc_typehints = "description" html_theme = "...
22.533333
46
0.704142