hexsha
stringlengths
40
40
size
int64
6
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
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
247
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
247
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.04M
avg_line_length
float64
1.53
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
6
1.04M
filtered:remove_non_ascii
int64
0
538k
filtered:remove_decorators
int64
0
917k
filtered:remove_async
int64
0
722k
filtered:remove_classes
int64
-45
1M
filtered:remove_generators
int64
0
814k
filtered:remove_function_no_docstring
int64
-102
850k
filtered:remove_class_no_docstring
int64
-3
5.46k
filtered:remove_unused_imports
int64
-1,350
52.4k
filtered:remove_delete_markers
int64
0
59.6k
7292e3a62c53434a27486c5dfb526a299fb18720
1,979
py
Python
readalongs/g2p/make_dict.py
finguist/ReadAlong-Studio
fb2ad609eec175ff18cf9a53df05d8dad739898a
[ "MIT" ]
1
2021-10-02T09:38:49.000Z
2021-10-02T09:38:49.000Z
readalongs/g2p/make_dict.py
finguist/ReadAlong-Studio
fb2ad609eec175ff18cf9a53df05d8dad739898a
[ "MIT" ]
null
null
null
readalongs/g2p/make_dict.py
finguist/ReadAlong-Studio
fb2ad609eec175ff18cf9a53df05d8dad739898a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ################################################## # # make_dict.py # # This module takes a text file, marked up with # units (e.g. w for word, m for morpheme) and ids # and converted to IPA, and produces a # .dict file for processing by PocketSphinx. # ##################...
27.873239
76
0.590197
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ################################################## # # make_dict.py # # This module takes a text file, marked up with # units (e.g. w for word, m for morpheme) and ids # and converted to IPA, and produces a # .dict file for processing by PocketSphinx. # ##################...
0
0
0
0
0
719
0
16
112
bde58d6a194b02eb7680e0fa09837b37da9569a8
1,604
py
Python
computeChebyshevDerivativeMatrix.py
jeguerra/nonlinearMtnWavesSolver
e2fe83d1f7c3c57cbe9ba0299a1b9179cf4b5869
[ "MIT" ]
null
null
null
computeChebyshevDerivativeMatrix.py
jeguerra/nonlinearMtnWavesSolver
e2fe83d1f7c3c57cbe9ba0299a1b9179cf4b5869
[ "MIT" ]
null
null
null
computeChebyshevDerivativeMatrix.py
jeguerra/nonlinearMtnWavesSolver
e2fe83d1f7c3c57cbe9ba0299a1b9179cf4b5869
[ "MIT" ]
1
2019-09-30T05:04:44.000Z
2019-09-30T05:04:44.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Jul 19 13:05:23 2019 @author: TempestGuerra """
26.295082
71
0.502494
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Jul 19 13:05:23 2019 @author: TempestGuerra """ import numpy as np import math as mt from HerfunChebNodesWeights import chebpolym, cheblb def computeChebyshevDerivativeMatrix(DIMS): # Get data from DIMS ZH = DIMS[2] NZ = D...
0
0
0
0
0
1,376
0
24
90
ad8ebe3758f338692569062dba22fc8064048c61
6,519
py
Python
opensubtitles/create_data_test.py
azizullah2017/conversational-datasets
932050fbfa0f650c43a3a4df78238e0fcf848f3f
[ "Apache-2.0" ]
1,017
2019-04-16T01:01:07.000Z
2022-03-29T23:22:19.000Z
opensubtitles/create_data_test.py
azizullah2017/conversational-datasets
932050fbfa0f650c43a3a4df78238e0fcf848f3f
[ "Apache-2.0" ]
27
2019-04-21T20:01:10.000Z
2022-03-09T12:11:10.000Z
opensubtitles/create_data_test.py
azizullah2017/conversational-datasets
932050fbfa0f650c43a3a4df78238e0fcf848f3f
[ "Apache-2.0" ]
153
2019-04-16T10:09:36.000Z
2022-02-24T13:17:41.000Z
"""Tests for create_data.py.""" import unittest _TRAIN_FILE = "\n".join([ "matt: AAAA", # words followed by colons are stripped. "[skip]", # text in brackets is removed. "BBBB", "", "", "" # empty lines are ignored. "CCCC", "(all laughing)", "c3po:", "- DDDD (boom!)", "123", # l...
33.430769
76
0.564044
"""Tests for create_data.py.""" import json import shutil import tempfile import unittest from glob import glob from os import path import tensorflow as tf from opensubtitles import create_data _TRAIN_FILE = "\n".join([ "matt: AAAA", # words followed by colons are stripped. "[skip]", # text in brackets is...
0
0
0
5,819
0
0
0
-8
180
8a0bc7147cd3b6c1ede46c69b65f77f506ff6f17
7,335
py
Python
clover/core/variable.py
52clover/clover
9c8b763a54059f396c5338856b9402dc7159512e
[ "Apache-2.0" ]
5
2020-05-26T15:19:38.000Z
2021-11-13T15:00:22.000Z
clover/core/variable.py
52clover/clover
9c8b763a54059f396c5338856b9402dc7159512e
[ "Apache-2.0" ]
4
2020-07-26T10:55:39.000Z
2021-09-07T04:17:21.000Z
clover/core/variable.py
52clover/clover
9c8b763a54059f396c5338856b9402dc7159512e
[ "Apache-2.0" ]
3
2020-06-09T01:57:09.000Z
2020-09-03T11:13:25.000Z
""" # Clover # author : taoyanli0808 # date : 2020-05-27 # version: 1.2 # -------------------- Clover -------------------- # clover4 # 1 # cloverresponserequestkeywordvariableexception # validatorextractor7 # 2 # default- # # # 3 # Jenkins # # hosthttp://test.52clover.cn # hosthttp://www.52clover.cn # 4 # # # #...
34.43662
88
0.543422
""" # Clover平台变量机制实现。 # author : taoyanli0808 # date : 2020-05-27 # version: 1.2 # -------------------- Clover平台变量机制 -------------------- # clover平台变量分为4种类型,平台内置变量、自定义变量、触发变量与运行时变量 # 1、平台内置变量 # clover平台内置变量目前有response、request、keyword、variable、exception、 # validator、extractor共7个,详见各模块说明文档。 # 2、自定义变量 # 自定义变量(default)通过...
2,502
577
0
5,277
0
0
0
105
202
05da3974fb6e3504f505cbb3d1649d9973b0a8b9
1,657
py
Python
59/59.py
bobismijnnaam/bobe-euler
111abdf37256d19c4a8c4e1a071db52929acf9d9
[ "MIT" ]
null
null
null
59/59.py
bobismijnnaam/bobe-euler
111abdf37256d19c4a8c4e1a071db52929acf9d9
[ "MIT" ]
null
null
null
59/59.py
bobismijnnaam/bobe-euler
111abdf37256d19c4a8c4e1a071db52929acf9d9
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 if __name__ == "__main__": with open("./p059_cipher.txt", "r") as f: contents = f.read() contents = contents[:-1].split(",") contents = [int(x) for x in contents] print(contents) testContents = contents[:120] candidates = [] # Your code here! for a in r...
31.865385
90
0.490646
#!/usr/bin/env python3 from Utils import * def isNormalCharacter(c): if c == ' ': return True if ord(c) >= ord('a') and ord(c) <= ord('z'): return True if ord(c) >= ord('A') and ord(c) <= ord('Z'): return True return False if __name__ == "__main__": with open("./p059_ciphe...
0
0
0
0
0
198
0
-2
46
2003f2d4e31957f7e197dbfb5909a968f0b07601
3,902
py
Python
services/controller/src/plz/controller/volumes.py
prodo-ai/plz
46d179fca5730b7ed2f236d53d78c42358aed72b
[ "MIT" ]
29
2018-04-14T20:05:41.000Z
2019-04-15T09:02:40.000Z
services/controller/src/plz/controller/volumes.py
neomatrix369/plz
12f05a8d071e9c1976c444d34161530ffa73eeae
[ "MIT" ]
23
2018-04-14T23:32:32.000Z
2019-06-07T21:38:58.000Z
services/controller/src/plz/controller/volumes.py
neomatrix369/plz
12f05a8d071e9c1976c444d34161530ffa73eeae
[ "MIT" ]
3
2018-09-19T15:08:21.000Z
2019-03-22T12:21:07.000Z
import docker
32.789916
76
0.650692
import io import os.path import tarfile import tempfile from abc import ABC, abstractmethod from typing import List import docker import docker.errors from docker.models.containers import Container from docker.models.volumes import Volume from docker.types import Mount class VolumeObject(ABC): @abstractmethod ...
0
187
0
3,274
0
0
0
36
384
ef0af89c33c3e540c333c2c2fba1b76a30120509
1,361
py
Python
examples/undocumented/python_modular/classifier_multiclasslogisticregression_modular.py
srgnuclear/shogun
33c04f77a642416376521b0cd1eed29b3256ac13
[ "Ruby", "MIT" ]
1
2015-11-05T18:31:14.000Z
2015-11-05T18:31:14.000Z
examples/undocumented/python_modular/classifier_multiclasslogisticregression_modular.py
waderly/shogun
9288b6fa38e001d63c32188f7f847dadea66e2ae
[ "Ruby", "MIT" ]
null
null
null
examples/undocumented/python_modular/classifier_multiclasslogisticregression_modular.py
waderly/shogun
9288b6fa38e001d63c32188f7f847dadea66e2ae
[ "Ruby", "MIT" ]
null
null
null
#!/usr/bin/env python from tools.multiclass_shared import prepare_data [traindat, label_traindat, testdat, label_testdat] = prepare_data(False) parameter_list = [[traindat,testdat,label_traindat,label_testdat,2.1,1e-5],[traindat,testdat,label_traindat,label_testdat,2.2,1e-5]] if __name__=='__main__': print('Multi...
33.195122
189
0.825129
#!/usr/bin/env python from tools.multiclass_shared import prepare_data [traindat, label_traindat, testdat, label_testdat] = prepare_data(False) parameter_list = [[traindat,testdat,label_traindat,label_testdat,2.1,1e-5],[traindat,testdat,label_traindat,label_testdat,2.2,1e-5]] def classifier_multiclasslogisticregre...
0
0
0
0
0
923
0
0
23
8936f81e124bfacbe4b930301caafb02ebc69faa
18,361
py
Python
pycket/option_helper.py
pmatos/pycket
6a04b064981f99538df5c3170a2f947e841e79de
[ "MIT" ]
null
null
null
pycket/option_helper.py
pmatos/pycket
6a04b064981f99538df5c3170a2f947e841e79de
[ "MIT" ]
null
null
null
pycket/option_helper.py
pmatos/pycket
6a04b064981f99538df5c3170a2f947e841e79de
[ "MIT" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- # file_expr_opts = ["-e", "--eval", "-f", "--load", "-t", "--require", "-l", "--lib", "-p", "-r", "--script", "-u", "--require-script", "-k", ...
35.652427
120
0.456457
#! /usr/bin/env python # -*- coding: utf-8 -*- # from rpython.rlib import jit def print_help(argv): print """Welcome to Pycket. %s [<option> ...] <argument> ... File and expression options: -e <exprs>, --eval <exprs> : Evaluate <exprs>, prints results -f <file>, --load <file> : Like -e '(loa...
0
0
0
0
0
16,310
0
7
114
1b799fbbf83ad1972c0cba7b83433448593b70f8
2,969
py
Python
src/states/oklahoma/main.py
mail-my-ballot/elections-officials
f52862b62121a6e30f8f1c865bfe62705d3a0748
[ "Apache-2.0" ]
3
2020-04-26T02:05:33.000Z
2020-07-06T22:11:04.000Z
src/states/oklahoma/main.py
mail-my-ballot/elections-officials
f52862b62121a6e30f8f1c865bfe62705d3a0748
[ "Apache-2.0" ]
25
2020-05-22T18:51:01.000Z
2020-06-28T00:47:19.000Z
src/states/oklahoma/main.py
vote-by-mail/elections-officials
ac3cfb896db11f553f9c22ea2303fa54e6bb1a39
[ "Apache-2.0" ]
5
2020-05-21T01:28:57.000Z
2020-07-01T23:02:31.000Z
import re BASE_URL = 'https://www.ok.gov/elections/About_Us/County_Election_Boards/' # covers county edge case where next line starts with * re_county_section = re.compile(r'(?<=COUNTY\n).*?(?=\n\n|\n\*)', flags=re.MULTILINE + re.DOTALL) re_phone_fax_section = re.compile(r'(?<=PHONE\n).*?(?=\n\n)', flags=re.MULTILINE...
34.523256
119
0.712698
from io import BytesIO from io import StringIO import re from urllib.parse import urljoin from pdfminer.pdfinterp import PDFResourceManager, PDFPageInterpreter from pdfminer.converter import TextConverter from pdfminer.layout import LAParams from pdfminer.pdfpage import PDFPage from bs4 import BeautifulSoup from common...
0
0
0
0
0
1,948
0
134
289
374c68d8637ec6856bc86d4706d8076c322277a6
2,877
py
Python
everyday_wechat/control/horoscope/T2345_horescope.py
filon7/EverydayWechat
cf4f509eb570de312995ce5c3b517f369753a1e9
[ "MIT" ]
null
null
null
everyday_wechat/control/horoscope/T2345_horescope.py
filon7/EverydayWechat
cf4f509eb570de312995ce5c3b517f369753a1e9
[ "MIT" ]
null
null
null
everyday_wechat/control/horoscope/T2345_horescope.py
filon7/EverydayWechat
cf4f509eb570de312995ce5c3b517f369753a1e9
[ "MIT" ]
null
null
null
#! usr/bin/env python # -*- coding: utf-8 -*- """ http://tools.2345.com/naonao/ """ import requests from bs4 import BeautifulSoup from everyday_wechat.utils.common import SPIDER_HEADERS __all__ = ['get_2345_horoscope', 'get_today_horoscope'] XZW_BASE_URL_TODAY = "http://tools.2345.com/naonao/" XZW_BASE_UR...
31.271739
133
0.577338
#! usr/bin/env python # -*- coding: utf-8 -*- """ 爬取 星座屋 星座运势 http://tools.2345.com/naonao/ """ import re from functools import reduce import requests from bs4 import BeautifulSoup from everyday_wechat.utils.common import SPIDER_HEADERS __all__ = ['get_2345_horoscope', 'get_today_horoscope'] XZW_BASE_URL_TOD...
342
0
0
0
0
0
0
-5
44
10e9231683df2d9465801c1fb234717d37c518ec
1,725
py
Python
src/gateways/sqlite3_db.py
SaltyCatFish/rlt-yify-tools
758bfbde5535d80a2f70c6b5a2f913a3da321a6a
[ "MIT" ]
null
null
null
src/gateways/sqlite3_db.py
SaltyCatFish/rlt-yify-tools
758bfbde5535d80a2f70c6b5a2f913a3da321a6a
[ "MIT" ]
null
null
null
src/gateways/sqlite3_db.py
SaltyCatFish/rlt-yify-tools
758bfbde5535d80a2f70c6b5a2f913a3da321a6a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ .. module:: sqlite3_db :platform: Unix :synopsis: I/O for sqlite3 database .. moduleauthor:: Ryan Long <ryanlong1004@gmail.com> """ if __name__ == "__main__": pass
25.746269
81
0.512464
# -*- coding: utf-8 -*- """ .. module:: sqlite3_db :platform: Unix :synopsis: I/O for sqlite3 database .. moduleauthor:: Ryan Long <ryanlong1004@gmail.com> """ import os import sqlite3 class Sqlite3: """Gateway for I/O to sqlite 3 database ..todo:: Add context manager so we can close the db """ ...
0
0
0
1,471
0
0
0
-19
67
14b57ea50cfb35e04530851c3a3f920798b3208a
53
py
Python
Functions advanced - Lab/Aboslute values.py
DiyanKalaydzhiev23/Advanced---Python
ed2c60bb887c49e5a87624719633e2b8432f6f6b
[ "MIT" ]
null
null
null
Functions advanced - Lab/Aboslute values.py
DiyanKalaydzhiev23/Advanced---Python
ed2c60bb887c49e5a87624719633e2b8432f6f6b
[ "MIT" ]
null
null
null
Functions advanced - Lab/Aboslute values.py
DiyanKalaydzhiev23/Advanced---Python
ed2c60bb887c49e5a87624719633e2b8432f6f6b
[ "MIT" ]
null
null
null
print([abs(float(num)) for num in input().split()])
26.5
52
0.641509
print([abs(float(num)) for num in input().split()])
0
0
0
0
0
0
0
0
0
5ec984d8dc0e97318302b3f803e506a717a9d987
9,090
py
Python
modules/misc.py
kraileth/miniraven
00e703482240b7db96749ed4631c8d34e6cc7d2a
[ "BSD-2-Clause" ]
1
2021-08-21T04:54:39.000Z
2021-08-21T04:54:39.000Z
modules/misc.py
kraileth/miniraven
00e703482240b7db96749ed4631c8d34e6cc7d2a
[ "BSD-2-Clause" ]
3
2021-08-21T08:17:50.000Z
2021-11-24T09:09:49.000Z
modules/misc.py
kraileth/miniraven
00e703482240b7db96749ed4631c8d34e6cc7d2a
[ "BSD-2-Clause" ]
1
2021-08-29T06:08:30.000Z
2021-08-29T06:08:30.000Z
############# # Imports # ############# import modules.conf as conf ############### # Functions # ############### ########## # Main # ########## if __name__ == "__main__": main()
38.846154
150
0.612651
############# # Imports # ############# import globalvars import modules.conf as conf import hashlib import os import shutil import subprocess from urllib.request import urlretrieve ############### # Functions # ############### def die(msg): print(msg) exit(1) def verbose_output(string): if globalvars...
0
0
0
0
0
8,257
0
-18
662
181c0f79602e5dd8070844bb93a31038cafbc56c
477
py
Python
accounts/views.py
lukeaparker/makewiki_v2
67e4789c5f7fffdeb8f0fbf6b1a2366e32633204
[ "MIT" ]
null
null
null
accounts/views.py
lukeaparker/makewiki_v2
67e4789c5f7fffdeb8f0fbf6b1a2366e32633204
[ "MIT" ]
5
2020-06-06T00:38:29.000Z
2022-02-10T10:30:47.000Z
accounts/views.py
lukeaparker/makewiki_v2
67e4789c5f7fffdeb8f0fbf6b1a2366e32633204
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals
26.5
54
0.75891
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.shortcuts import render from django.contrib.auth.forms import UserCreationForm from django.urls import reverse_lazy from django.views.generic import CreateView class SignUpView(CreateView): form_class = UserCreationForm success_url = ...
0
0
0
209
0
0
0
84
111
a9c7bc91fa36f637b09e12bc7ea9ab66acbc19d2
2,079
py
Python
pagework/backlogin/views.py
Grizzy-bear/Virtual-experiment-WEB
9fc1fdfc1bb369addfc52e39f713200a3724c8e8
[ "MIT" ]
null
null
null
pagework/backlogin/views.py
Grizzy-bear/Virtual-experiment-WEB
9fc1fdfc1bb369addfc52e39f713200a3724c8e8
[ "MIT" ]
null
null
null
pagework/backlogin/views.py
Grizzy-bear/Virtual-experiment-WEB
9fc1fdfc1bb369addfc52e39f713200a3724c8e8
[ "MIT" ]
null
null
null
# Create your views here. # @login_required # @csrf_exempt #403 # def login_redirect(request): # # pass # return render(request, 'backweb/index')
31.984615
66
0.622415
from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect from django.shortcuts import redirect, reverse from django import forms from django.views.decorators.csrf import csrf_exempt from django.contrib.auth.decorators import login_required # Create your views here. def index(req...
36
0
0
63
0
1,467
0
146
223
f568858393088566079b0a9338f9153052633141
2,215
py
Python
getHrs.py
anthonytoribio/MLBHomeRuns
99405585f63c300acf765af6889f65346aecb1ae
[ "MIT" ]
null
null
null
getHrs.py
anthonytoribio/MLBHomeRuns
99405585f63c300acf765af6889f65346aecb1ae
[ "MIT" ]
null
null
null
getHrs.py
anthonytoribio/MLBHomeRuns
99405585f63c300acf765af6889f65346aecb1ae
[ "MIT" ]
null
null
null
# getHrs.py # Creator: Robert Toribio # Date: 10/28/2021 if __name__ == "__main__": main()
26.369048
85
0.582844
# getHrs.py # Creator: Robert Toribio # Date: 10/28/2021 import statsapi from datetime import date import re def totalhrsToday(all_hrs): total_hrs = 0 for element in all_hrs: total_hrs += int(element[1]) return total_hrs def getGames(date): game_ids = [] gamesToday = statsapi.schedule(d...
0
0
0
0
0
1,907
0
-14
194
9fb4ba1dc50eab2b20907ba4b668bcad8e0c63de
409
py
Python
mundo02/exe061.py
victor-nog/python3-exercicios
3996a41ee6cb8125573bf6f8997a69c9764fabae
[ "MIT" ]
null
null
null
mundo02/exe061.py
victor-nog/python3-exercicios
3996a41ee6cb8125573bf6f8997a69c9764fabae
[ "MIT" ]
null
null
null
mundo02/exe061.py
victor-nog/python3-exercicios
3996a41ee6cb8125573bf6f8997a69c9764fabae
[ "MIT" ]
null
null
null
#061: Refaa o DESAFIO 51, lendo o primeiro termo e a razo de uma PA, mostrando os 10 primeiros termos da progresso usando a estrutura while. print('=-=' * 15) print(f'{"PROGRESSO ARITMTICA":^40}') print('=-=' * 15) n = int(input('Digite o 1 termo da PA: ')) r = int(input('Digite a razo: ')) c = n z = 0 while z <= 1...
25.5625
143
0.603912
#061: Refaça o DESAFIO 51, lendo o primeiro termo e a razão de uma PA, mostrando os 10 primeiros termos da progressão usando a estrutura while. print('=-=' * 15) print(f'{"PROGRESSÃO ARITMÉTICA":^40}') print('=-=' * 15) n = int(input('Digite o 1º termo da PA: ')) r = int(input('Digite a razão: ')) c = n z = 0 while...
14
0
0
0
0
0
0
0
0
703fb42904ffbaf021f55f86833b77627d7e77b8
434
py
Python
steelconnection/__version__.py
gwenblum/SteelConnection
1ee809a72696eb3c888b422d382dacfd016e2484
[ "MIT" ]
null
null
null
steelconnection/__version__.py
gwenblum/SteelConnection
1ee809a72696eb3c888b422d382dacfd016e2484
[ "MIT" ]
null
null
null
steelconnection/__version__.py
gwenblum/SteelConnection
1ee809a72696eb3c888b422d382dacfd016e2484
[ "MIT" ]
null
null
null
"""Provide version and author details.""" __title__ = "steelconnection" __description__ = "Simplify access to the Riverbed SteelConnect REST API." __version__ = "0.95.0" __author__ = "Greg Mueller" __author_email__ = "steelconnection@grelleum.com" __copyright__ = "Copyright 2018 Greg Mueller" __license__ = "MIT" __ur...
33.384615
74
0.778802
"""Provide version and author details.""" __title__ = "steelconnection" __description__ = "Simplify access to the Riverbed SteelConnect REST API." __version__ = "0.95.0" __author__ = "Greg Mueller" __author_email__ = "steelconnection@grelleum.com" __copyright__ = "Copyright 2018 Greg Mueller" __license__ = "MIT" __ur...
0
0
0
0
0
0
0
0
0
cc2c055b3d482041b571ee0b15f4759db9a25404
11,747
py
Python
test_la.py
olgarogova86/loganalyzer
19bba7c7dac1b5f6b73d8dce32d99406bfbaa85d
[ "MIT" ]
null
null
null
test_la.py
olgarogova86/loganalyzer
19bba7c7dac1b5f6b73d8dce32d99406bfbaa85d
[ "MIT" ]
null
null
null
test_la.py
olgarogova86/loganalyzer
19bba7c7dac1b5f6b73d8dce32d99406bfbaa85d
[ "MIT" ]
null
null
null
import unittest if __name__ == "__main__": unittest.main()
42.407942
274
0.49519
import unittest import logging from log_analyzer import * import os import imp class LogAnalyzerTest(unittest.TestCase): @staticmethod def create_files_for_test(): with open( "test_config_ok.txt", mode='w+', encoding="utf-8") as test_file: ...
0
2,071
0
9,514
0
0
0
-25
117
cd43b342d0b091404a211c04b0d5a837c2d32045
2,773
py
Python
Calibaration.py
wq13552463699/3D_Printed_2_Fingers_Gripper
4b0aab18bac54e6862bc38e6ac7a0b5229ffe01d
[ "MIT" ]
3
2021-11-02T10:48:52.000Z
2021-11-25T02:14:44.000Z
Calibaration.py
wq13552463699/3D_Printed_2_Fingers_Gripper
4b0aab18bac54e6862bc38e6ac7a0b5229ffe01d
[ "MIT" ]
null
null
null
Calibaration.py
wq13552463699/3D_Printed_2_Fingers_Gripper
4b0aab18bac54e6862bc38e6ac7a0b5229ffe01d
[ "MIT" ]
null
null
null
import time import sys import pandas as pd print("--------------------------------------------------------------------") print("README") print("The is the calibration function, help you to calibarate the gripper") print("for different device. Stongly reconmmend you calibarate the gripper") print("every time yo...
36.486842
116
0.638298
from Robotic_Servos import * import time import sys import pandas as pd print("--------------------------------------------------------------------") print("README") print("The is the calibration function, help you to calibarate the gripper") print("for different device. Stongly reconmmend you calibarate the g...
0
0
0
0
0
0
0
7
23
b8271594117334721ebed7650607ebd2032029b2
22,068
py
Python
src/apiflask/scaffold.py
Farmer-chong/apiflask
a2bc208770a703bdf6ecabe2bb0ddbfce3015aab
[ "MIT" ]
null
null
null
src/apiflask/scaffold.py
Farmer-chong/apiflask
a2bc208770a703bdf6ecabe2bb0ddbfce3015aab
[ "MIT" ]
null
null
null
src/apiflask/scaffold.py
Farmer-chong/apiflask
a2bc208770a703bdf6ecabe2bb0ddbfce3015aab
[ "MIT" ]
null
null
null
import typing as t BODY_LOCATIONS = ['json', 'files', 'form', 'form_and_files', 'json_or_form'] SUPPORTED_LOCATIONS = BODY_LOCATIONS + ['query', 'headers', 'cookies', 'querystring'] parser: FlaskParser = FlaskParser() use_args: t.Callable = parser.use_args
37.214165
100
0.55909
import typing as t import warnings from collections.abc import Mapping as ABCMapping from functools import wraps from flask import current_app from flask import jsonify from flask import Response from flask.views import MethodViewType from marshmallow import ValidationError as MarshmallowValidationError from webargs.f...
0
1,058
0
19,258
0
550
0
310
625
d7025517b649a6f69189b2de7d3a565d13475133
2,852
py
Python
test/test_evaluation.py
Yifei-Liu/knee
7c2c7092a2c2dc4c4dac5ebc3b623c5725e0339b
[ "MIT" ]
null
null
null
test/test_evaluation.py
Yifei-Liu/knee
7c2c7092a2c2dc4c4dac5ebc3b623c5725e0339b
[ "MIT" ]
null
null
null
test/test_evaluation.py
Yifei-Liu/knee
7c2c7092a2c2dc4c4dac5ebc3b623c5725e0339b
[ "MIT" ]
null
null
null
import unittest import knee.evaluation as evaluation if __name__ == '__main__': unittest.main()
35.209877
84
0.556101
import math import unittest import numpy as np import knee.evaluation as evaluation class TestEvaluation(unittest.TestCase): def test_mae_0(self): points = np.array([[0,0], [1,1], [2,2]]) knees = np.array([0,1,2]) expected = np.array([[0,0], [1,1], [2,2]]) result = evaluation.mae(p...
0
0
0
2,697
0
0
0
-13
67
f4157fbbe6301964ab0dc2a49ae803eee6dc1a70
1,507
py
Python
compoelem/detect/openpose_wrapper.py
tilman/compositional_elements
45271196ed01d0515357c7abdf35d6b87f2036d5
[ "MIT" ]
2
2021-06-13T16:21:52.000Z
2021-06-13T16:21:53.000Z
compoelem/detect/openpose_wrapper.py
tilman/compositional_elements
45271196ed01d0515357c7abdf35d6b87f2036d5
[ "MIT" ]
null
null
null
compoelem/detect/openpose_wrapper.py
tilman/compositional_elements
45271196ed01d0515357c7abdf35d6b87f2036d5
[ "MIT" ]
null
null
null
import argparse import torch import torch.nn as nn from .openpose.lib.network.rtpose_vgg import get_model from .openpose.lib.config import cfg, update_config parser = argparse.ArgumentParser() parser.add_argument('--cfg', help='experiment configure file name', default='./compoelem/detect/openpose/...
33.488889
103
0.704711
import argparse from .openpose.lib.utils.common import Human from typing import Sequence import torch import torch.nn as nn from . import converter from .openpose.lib.network.rtpose_vgg import get_model from .openpose.evaluate.coco_eval import get_outputs from .openpose.lib.utils.paf_to_pose import paf_to_pose_cpp fro...
0
0
0
0
0
226
0
100
134
b7f3cad9283f59f7ed3be01005cd36d5edaac206
20,097
py
Python
Tensorflow/Inception/Trainer.py
BreastCancerAI/IDC-Classifier
cf75d97fd17e58ca8f47004928933f2972254a42
[ "MIT" ]
15
2018-08-09T03:40:58.000Z
2019-07-08T08:47:44.000Z
Tensorflow/Inception/Trainer.py
AdamMiltonBarker/IDC-Classifier
a354effdf65e6461baf083eeb9737d51fc5e7cbd
[ "MIT" ]
null
null
null
Tensorflow/Inception/Trainer.py
AdamMiltonBarker/IDC-Classifier
a354effdf65e6461baf083eeb9737d51fc5e7cbd
[ "MIT" ]
6
2018-08-09T03:41:17.000Z
2019-03-17T16:49:34.000Z
from __future__ import print_function ############################################################################################ # # The MIT License (MIT) # # Intel AI DevJam IDC Demo Classification Server # Copyright (C) 2018 Adam Milton-Barker (AdamMiltonBarker.com) # # Permission is hereby granted, free of charg...
43.5
218
0.665771
from __future__ import print_function ############################################################################################ # # The MIT License (MIT) # # Intel AI DevJam IDC Demo Classification Server # Copyright (C) 2018 Adam Milton-Barker (AdamMiltonBarker.com) # # Permission is hereby granted, free of charg...
0
0
0
7,740
0
8,995
0
220
293
1f2c40556d9a2e5c386f7f78d56c1324b2a9ed22
588
py
Python
stapy/sta/entities/observation.py
zMoooooritz/STApy
022183e0a35ba0d73b97986a695b2a1e6bd0c77c
[ "MIT" ]
8
2021-09-02T18:53:19.000Z
2022-03-10T13:40:57.000Z
stapy/sta/entities/observation.py
zMoooooritz/stapy
022183e0a35ba0d73b97986a695b2a1e6bd0c77c
[ "MIT" ]
20
2021-08-30T19:06:30.000Z
2022-03-15T21:16:53.000Z
stapy/sta/entities/observation.py
zMoooooritz/stapy
022183e0a35ba0d73b97986a695b2a1e6bd0c77c
[ "MIT" ]
null
null
null
# TODO resultQuality DQ_Element
30.947368
52
0.62415
from stapy.sta.time import Time from stapy.sta.abstract_entity import AbstractEntity # TODO resultQuality DQ_Element class Observation(AbstractEntity): entry_map = { "phenomenonTime": (True, True, Time), "result": (True, True, object), "resultTime": (False, True, Time), "resultQuali...
0
0
0
448
0
0
0
41
66
310857b0018e081679937b133dc6372333ac7766
9,280
py
Python
d2bot/test/Non-RL.py
lenLRX/Dota2BotStepByStep
3b6bebeb194bc9d4657947afa0776944dea24b84
[ "MIT" ]
11
2018-06-24T12:45:58.000Z
2021-10-14T02:16:12.000Z
d2bot/test/Non-RL.py
lenLRX/Dota2BotStepByStep
3b6bebeb194bc9d4657947afa0776944dea24b84
[ "MIT" ]
null
null
null
d2bot/test/Non-RL.py
lenLRX/Dota2BotStepByStep
3b6bebeb194bc9d4657947afa0776944dea24b84
[ "MIT" ]
3
2019-03-02T07:40:43.000Z
2021-06-05T02:09:16.000Z
import d2bot.visualizer as visualizer import d2bot.core.game_env as game_env import d2bot.simulator as simulator import torch.nn as nn import torch.optim as optim import sys from tensorboardX import SummaryWriter writer = SummaryWriter() ''' model from https://github.com/ikostrikov/pytorch-a3c ''' if __name__ ...
27.867868
93
0.577047
import d2bot.visualizer as visualizer import d2bot.core.game_env as game_env import d2bot.simulator as simulator from d2bot.torch.a3c.ActorCritic import ActorCritic import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from torch.autograd import Variable import random import ...
0
0
0
8,284
0
278
0
27
250
f2f87fcca3b8d55be7da08d089431edd1729a2a7
1,654
py
Python
dependency_tree.py
oriolmirosa/dash-recipes
c01372292d60c3fd8c1f3a47bca6330c2b268ba4
[ "MIT" ]
932
2017-07-08T06:37:23.000Z
2022-03-31T11:10:07.000Z
dependency_tree.py
oriolmirosa/dash-recipes
c01372292d60c3fd8c1f3a47bca6330c2b268ba4
[ "MIT" ]
29
2018-02-06T20:09:58.000Z
2021-08-24T06:01:11.000Z
dependency_tree.py
oriolmirosa/dash-recipes
c01372292d60c3fd8c1f3a47bca6330c2b268ba4
[ "MIT" ]
301
2017-09-25T16:16:41.000Z
2022-03-24T23:48:59.000Z
import numpy as np import dash import dash_core_components as dcc import dash_html_components as html app = dash.Dash() # function to plot # default ranges for x0 & x1 xranges = [[0,1], [-np.pi, np.pi]] # dropdown to pick which x to plot against xchooser = dcc.Dropdown( id='xchooser', options=[{'label'...
35.191489
90
0.646312
import numpy as np import dash from dash.dependencies import Input, Output from plotly.graph_objs import * import dash_core_components as dcc import dash_html_components as html app = dash.Dash() # function to plot def func(x): return x[:,0]**2 + np.sin(x[:,1]) # default ranges for x0 & x1 xranges = [[0,1], [-np.p...
0
601
0
0
0
29
0
32
133
c7a9abf5053cd3d1b3e6bced909732c831680d81
5,522
py
Python
datasets_process/get_counter_per_class.py
mumu0419/Python-data_analysis
f81d5d439801dc3668e6a6fc925a73b0aa8750ff
[ "MIT" ]
1
2020-12-01T09:06:35.000Z
2020-12-01T09:06:35.000Z
datasets_process/get_counter_per_class.py
mumu0419/Python-data_analysis
f81d5d439801dc3668e6a6fc925a73b0aa8750ff
[ "MIT" ]
null
null
null
datasets_process/get_counter_per_class.py
mumu0419/Python-data_analysis
f81d5d439801dc3668e6a6fc925a73b0aa8750ff
[ "MIT" ]
null
null
null
''' 2020.4.21 ''' import matplotlib.pyplot as plt plt.rcParams['font.sans-serif'] = ['SimHei'] # path = 'D:\wsm\pycharm_pjs\data-analysis\scripts\\traffic_anno.txt' #txt results_files_path = 'D:\wsm\pycharm_pjs\data-analysis\scripts\\' # image_num = 13910 ##selfimage_annotation.py draw_plot = True gt_...
33.26506
124
0.659906
''' 统计标注类别和各类别数量 2020.4.21 ''' import operator import sys import argparse import matplotlib.pyplot as plt plt.rcParams['font.sans-serif'] = ['SimHei'] # 用来正常显示中文标签 path = 'D:\wsm\pycharm_pjs\data-analysis\scripts\\traffic_anno.txt' #标注txt文件路径 results_files_path = 'D:\wsm\pycharm_pjs\data-analysis\scripts\...
195
0
0
0
0
3,781
0
-23
115
9be070e9c3789d14b959cd841911b74851dac19f
302
py
Python
summation_of_primes/python/summation_of_primes.py
ncovercash/sample_projects
7cfd77e8f20fa1a67b0ed7957f9b2b49cb5f5dac
[ "MIT" ]
1
2017-03-31T14:42:36.000Z
2017-03-31T14:42:36.000Z
summation_of_primes/python/summation_of_primes.py
smileytechguy/sample_projects
7cfd77e8f20fa1a67b0ed7957f9b2b49cb5f5dac
[ "MIT" ]
1
2020-03-21T05:51:19.000Z
2020-03-21T05:51:19.000Z
summation_of_primes/python/summation_of_primes.py
ncovercash/sample_projects
7cfd77e8f20fa1a67b0ed7957f9b2b49cb5f5dac
[ "MIT" ]
1
2018-10-23T10:57:08.000Z
2018-10-23T10:57:08.000Z
import math max = 2000000 primes = [2] for i in xrange(3,max,2): prime = True limit = math.ceil(math.sqrt(i)) # tip from SO for j in xrange(3, int(limit)+1, 2): if prime: if i % j == 0: prime = False if prime: primes.append(i) sum = 0 for prime in primes: sum += prime; print sum;
13.727273
46
0.612583
import math max = 2000000 primes = [2] for i in xrange(3,max,2): prime = True limit = math.ceil(math.sqrt(i)) # tip from SO for j in xrange(3, int(limit)+1, 2): if prime: if i % j == 0: prime = False if prime: primes.append(i) sum = 0 for prime in primes: sum += prime; print sum;
0
0
0
0
0
0
0
0
0
d9365d7de5ef088acc5c1dbada1888d46dd9b611
914
py
Python
my_study/sys_study/oneos.py
zhangyage/Python-oldboy
a95c1b465929e2be641e425fcb5e15b366800831
[ "Apache-2.0" ]
1
2020-06-04T08:44:09.000Z
2020-06-04T08:44:09.000Z
my_study/sys_study/oneos.py
zhangyage/Python-oldboy
a95c1b465929e2be641e425fcb5e15b366800831
[ "Apache-2.0" ]
null
null
null
my_study/sys_study/oneos.py
zhangyage/Python-oldboy
a95c1b465929e2be641e425fcb5e15b366800831
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- import os # print os.name # print os.getcwd() # print os.listdir('E:\workspace\Python-oldboy') #shell # os.system("calc") # #os.remove("E:\workspace\Python-oldboy\my_study\sys_study") # print os.path.isfile("E:\workspace\Python-oldboy\my_study\...
26.882353
79
0.714442
#!/usr/bin/env python # -*- coding:utf-8 -*- import os #查看操作系统 print os.name #获取工作目录 print os.getcwd() #获取某个目录下的所有文件名 print os.listdir('E:\workspace\Python-oldboy') #运行一个shell命令 调用计算器 # os.system("calc") #删除某个文件 #os.remove("E:\workspace\Python-oldboy\my_study\sys_study") #判断是文件还是文件夹 print ...
303
0
0
0
0
0
0
0
0
a0a8a1163d4425922eb4c83ff3a2dd05050764f8
9,470
py
Python
tests/helpers/test_cmd.py
lucasvieirasilva/aws-codeartifact-poetry
ad224f8e403373bc6336d362ce11ba84c2bad616
[ "MIT" ]
null
null
null
tests/helpers/test_cmd.py
lucasvieirasilva/aws-codeartifact-poetry
ad224f8e403373bc6336d362ce11ba84c2bad616
[ "MIT" ]
null
null
null
tests/helpers/test_cmd.py
lucasvieirasilva/aws-codeartifact-poetry
ad224f8e403373bc6336d362ce11ba84c2bad616
[ "MIT" ]
null
null
null
"""aws_codeartifact_poetry.helpers.cmd unit tests."""
36.992188
107
0.564942
"""aws_codeartifact_poetry.helpers.cmd unit tests.""" import os import subprocess import sys from unittest.mock import MagicMock, patch import pytest from _pytest.logging import LogCaptureFixture from aws_codeartifact_poetry.helpers.catch_exceptions import CLIError from aws_codeartifact_poetry.helpers.cmd import exe...
0
8,814
0
0
0
0
0
137
454
2c47de5b76b6c54b316d8474d4ada4ab32ab4b83
7,171
py
Python
servers/genesis/builder.py
peterhajas/Genesis
2f1a03c38934b892ee6bb04e07e867bf463b7ae5
[ "0BSD" ]
7
2015-07-06T02:36:54.000Z
2017-08-10T14:28:01.000Z
servers/genesis/builder.py
peterhajas/Genesis
2f1a03c38934b892ee6bb04e07e867bf463b7ae5
[ "0BSD" ]
1
2021-03-25T22:30:40.000Z
2021-03-25T22:30:40.000Z
servers/genesis/builder.py
peterhajas/Genesis
2f1a03c38934b892ee6bb04e07e867bf463b7ae5
[ "0BSD" ]
2
2015-03-23T22:45:46.000Z
2015-12-22T11:30:02.000Z
# TODO: simplify here
30.130252
117
0.619858
import os import mimetypes import fnmatch import yaml from genesis.shell import ShellProxy, ProcessQuery from genesis.utils import expand, is_windows from genesis.config import load_yaml from genesis.scm import get_scm # TODO: simplify here class IgnoreList(object): def __init__(self, ignored): self.ig...
0
870
0
5,960
0
0
0
43
270
be736746afe8eca23cd41c79204de3296f3b8f02
1,171
py
Python
alipay/aop/api/response/AlipaySecurityRiskHufuAuthQueryResponse.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/response/AlipaySecurityRiskHufuAuthQueryResponse.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/response/AlipaySecurityRiskHufuAuthQueryResponse.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*-
25.456522
112
0.641332
#!/usr/bin/env python # -*- coding: utf-8 -*- import simplejson as json from alipay.aop.api.response.AlipayResponse import AlipayResponse class AlipaySecurityRiskHufuAuthQueryResponse(AlipayResponse): def __init__(self): super(AlipaySecurityRiskHufuAuthQueryResponse, self).__init__() self._seria...
0
242
0
766
0
0
0
48
68
10948e902dc363f8c5e4c3ca350f3b8613e4a2d6
790
py
Python
Challenge1/main.py
Gerifield/websocket-smuggle
3541c358c431aad5f26452538a561b79ff682750
[ "MIT" ]
284
2019-11-02T16:47:48.000Z
2022-03-29T10:06:39.000Z
Challenge1/main.py
Gerifield/websocket-smuggle
3541c358c431aad5f26452538a561b79ff682750
[ "MIT" ]
2
2019-12-04T08:58:34.000Z
2020-08-06T01:48:21.000Z
Challenge1/main.py
Gerifield/websocket-smuggle
3541c358c431aad5f26452538a561b79ff682750
[ "MIT" ]
38
2019-11-02T16:50:21.000Z
2022-02-25T02:26:02.000Z
#!/usr/bin/python from flask import Flask from flask_socketio import SocketIO from flask_restful import Api app = Flask(__name__) api = Api(app) socketio = SocketIO(app, cors_allowed_origins="*") api.add_resource(Flag, '/flag') api.add_resource(InternalAPI, '/api/internal') if __name__ == '__main__': soc...
19.268293
63
0.689873
#!/usr/bin/python from flask import Flask, render_template from flask_socketio import SocketIO from flask_restful import Resource, Api app = Flask(__name__) api = Api(app) socketio = SocketIO(app, cors_allowed_origins="*") @app.route('/') def index(): return render_template('index.html') class InternalAPI(Re...
0
136
0
170
0
0
0
27
92
d9cf514f3a64cd53c79d6e2b597170f2805f5843
941
py
Python
backend/app/app/api/api_v1/endpoints/utils.py
Pinafore/Karl-flashcards-web-app
2f4d9925c545f83eb3289dfef85d9b0bf9bfeb8c
[ "Apache-2.0" ]
7
2020-09-13T06:06:32.000Z
2021-11-15T11:37:16.000Z
backend/app/app/api/api_v1/endpoints/utils.py
Pinafore/Karl-flashcards-web-app
2f4d9925c545f83eb3289dfef85d9b0bf9bfeb8c
[ "Apache-2.0" ]
16
2020-08-28T20:38:27.000Z
2021-03-18T04:03:00.000Z
backend/app/app/api/api_v1/endpoints/utils.py
Pinafore/Karl-flashcards-web-app
2f4d9925c545f83eb3289dfef85d9b0bf9bfeb8c
[ "Apache-2.0" ]
null
null
null
from fastapi import APIRouter router = APIRouter()
26.885714
79
0.712009
from typing import Any from app import models, schemas from app.api import deps from app.core.celery_app import celery_app from app.utils.utils import send_test_email from fastapi import APIRouter, Depends from pydantic.networks import EmailStr router = APIRouter() @router.post("/test-celery/", response_model=schem...
0
625
0
0
0
0
0
83
179
01ad6f5244ddd28d391f605c62bcb75f67862871
1,246
py
Python
aceclient/clientcounter.py
sergelevin/aceproxy
bdd9283426ebb4431c48ede3f43a2245f2644ff1
[ "MIT" ]
182
2015-01-25T09:43:55.000Z
2021-10-20T02:47:45.000Z
aceclient/clientcounter.py
sergelevin/aceproxy
bdd9283426ebb4431c48ede3f43a2245f2644ff1
[ "MIT" ]
39
2015-01-02T18:25:47.000Z
2018-05-20T15:01:03.000Z
aceclient/clientcounter.py
sergelevin/aceproxy
bdd9283426ebb4431c48ede3f43a2245f2644ff1
[ "MIT" ]
120
2015-01-07T00:59:21.000Z
2022-03-17T10:37:42.000Z
''' Simple Client Counter for VLC VLM '''
22.25
48
0.500803
''' Simple Client Counter for VLC VLM ''' class ClientCounter(object): def __init__(self): self.clients = dict() self.aces = dict() self.total = 0 def get(self, id): return self.clients.get(id, (False,))[0] def add(self, id, ip): if self.clients.has_key(id): ...
0
0
0
1,180
0
0
0
0
23
793a5efcd180daeef2d43cb9b39b2ee7f68c98ad
1,379
py
Python
setup.py
swoopyy/dask-pipes
2a4be29e428b330623a7cfd1f9245e17b0a51fda
[ "MIT" ]
1
2019-12-12T18:23:25.000Z
2019-12-12T18:23:25.000Z
setup.py
swoopyy/dask-pipes
2a4be29e428b330623a7cfd1f9245e17b0a51fda
[ "MIT" ]
null
null
null
setup.py
swoopyy/dask-pipes
2a4be29e428b330623a7cfd1f9245e17b0a51fda
[ "MIT" ]
null
null
null
import importlib import os import io import logging import pathlib PARENT = pathlib.Path(__file__).parent logger = logging.getLogger(__name__) # Kept manually in sync with dask_pipes.__version__ # noinspection PyUnresolvedReferences spec = importlib.util.spec_from_file_location("dask_pipes.version", ...
27.039216
95
0.68963
import importlib import os import io import logging from setuptools import setup, find_packages from typing import List import pathlib PARENT = pathlib.Path(__file__).parent logger = logging.getLogger(__name__) # Kept manually in sync with dask_pipes.__version__ # noinspection PyUnresolvedReferences spec = importlib...
0
0
0
0
0
546
0
24
90
c2e1150cf4ae0e085212327cc80e2ce40f2d8ab0
5,297
py
Python
tests/conftest.py
nismod/energy_demand
247fcea074a846026710ed9b039b22f8b9835643
[ "MIT" ]
14
2018-02-23T10:03:45.000Z
2022-03-03T13:59:30.000Z
tests/conftest.py
nismod/energy_demand
247fcea074a846026710ed9b039b22f8b9835643
[ "MIT" ]
59
2017-02-22T15:03:30.000Z
2020-12-16T12:26:17.000Z
tests/conftest.py
nismod/energy_demand
247fcea074a846026710ed9b039b22f8b9835643
[ "MIT" ]
5
2017-08-22T11:31:42.000Z
2020-06-24T18:30:12.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Dummy conftest.py for energy_demand. If you don't know what this is for, just leave it empty. Read more about conftest.py under: https://pytest.org/latest/plugins.html """ from __future__ import absolute_import, division, print_function
50.447619
147
0.871814
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Dummy conftest.py for energy_demand. If you don't know what this is for, just leave it empty. Read more about conftest.py under: https://pytest.org/latest/plugins.html """ from __future__ import absolute_import, division, print_function from pytest imp...
0
4,941
0
0
0
0
0
5
46
5701e722487411fa3e060fad1f184a3bcbc85256
1,630
py
Python
Bootstrapping.py
marcovaas/uclametrics
be321933bcc6416424512e94aae3a4a780813b4d
[ "MIT" ]
null
null
null
Bootstrapping.py
marcovaas/uclametrics
be321933bcc6416424512e94aae3a4a780813b4d
[ "MIT" ]
null
null
null
Bootstrapping.py
marcovaas/uclametrics
be321933bcc6416424512e94aae3a4a780813b4d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Jan 26 18:33:09 2022 @author: marco """ import pandas as pd import os os.chdir('C://Users//marco//Desktop//Projects//Bootstrapping') cwd = os.getcwd() print("Current working directory: {0}".format(cwd)) import warnings # `do not d...
28.103448
102
0.596319
# -*- coding: utf-8 -*- """ Created on Wed Jan 26 18:33:09 2022 @author: marco """ import pandas as pd import numpy as np import random import math import os from scipy.linalg import pinv as inv from sklearn.linear_model import Lasso from sklearn.linear_model import LassoCV import matplotlib.pyplot as ...
0
0
0
0
0
827
0
40
209
ed12d0cbb78972864309087cd934535298b1aaae
228
py
Python
bmsSenderDummyData.py
clean-code-craft-tcq-1/stream-bms-data-karippalrohith
7581a4a84e85ec22864e7a181f74b4baee6ae5bb
[ "MIT" ]
null
null
null
bmsSenderDummyData.py
clean-code-craft-tcq-1/stream-bms-data-karippalrohith
7581a4a84e85ec22864e7a181f74b4baee6ae5bb
[ "MIT" ]
null
null
null
bmsSenderDummyData.py
clean-code-craft-tcq-1/stream-bms-data-karippalrohith
7581a4a84e85ec22864e7a181f74b4baee6ae5bb
[ "MIT" ]
1
2021-06-15T12:52:34.000Z
2021-06-15T12:52:34.000Z
import random import json for i in range(10): # print("\n{\"Temperature\":{},\"SOC\":{}}\n".format(48.00, 58.00)); print(json.dumps({'Temperature':random.randint(10,100), 'SOC':random.randint(10,100)}))
28.5
92
0.587719
import random import json for i in range(10): # print("\n{\"Temperature\":{},\"SOC\":{}}\n".format(48.00, 58.00)); print(json.dumps({'Temperature':random.randint(10,100), 'SOC':random.randint(10,100)}))
0
0
0
0
0
0
0
0
0
9cea8902face673bf6b7c9672cec7ec939ed9a53
787
py
Python
src/data/575.py
NULLCT/LOMC
79a16474a8f21310e0fb47e536d527dd5dc6d655
[ "MIT" ]
null
null
null
src/data/575.py
NULLCT/LOMC
79a16474a8f21310e0fb47e536d527dd5dc6d655
[ "MIT" ]
null
null
null
src/data/575.py
NULLCT/LOMC
79a16474a8f21310e0fb47e536d527dd5dc6d655
[ "MIT" ]
null
null
null
import sys sys.setrecursionlimit(10**6) N, Q = map(int, input().split()) ab = [[int(i) for i in input().split()] for _ in range(N - 1)] cd = [[int(i) for i in input().split()] for _ in range(Q)] G = [[] for _ in range(N)] for a, b in ab: G[a - 1].append(b - 1) G[b - 1].append(a - 1) #Euler tour vs = [-1] * (...
21.27027
74
0.462516
import sys sys.setrecursionlimit(10**6) N, Q = map(int, input().split()) ab = [[int(i) for i in input().split()] for _ in range(N - 1)] cd = [[int(i) for i in input().split()] for _ in range(Q)] G = [[] for _ in range(N)] for a, b in ab: G[a - 1].append(b - 1) G[b - 1].append(a - 1) #Euler tour vs = [-1] * (...
66
0
0
0
0
222
0
0
23
f208e3c47cc674a3755c6e7f5151dfbf26d6144d
8,328
py
Python
src/amuse/test/suite/core_tests/test_pickle.py
UniExeterRSE/amuse
b81504ffa12fced1b94e0014df8610a1d363c10f
[ "Apache-2.0" ]
null
null
null
src/amuse/test/suite/core_tests/test_pickle.py
UniExeterRSE/amuse
b81504ffa12fced1b94e0014df8610a1d363c10f
[ "Apache-2.0" ]
12
2021-11-15T09:13:03.000Z
2022-02-02T14:53:04.000Z
src/amuse/test/suite/core_tests/test_pickle.py
UniExeterRSE/amuse
b81504ffa12fced1b94e0014df8610a1d363c10f
[ "Apache-2.0" ]
null
null
null
import pickle
34.991597
118
0.62488
from amuse.test import amusetest import pickle from amuse.support.exceptions import AmuseException from amuse.units import core from amuse.units import si from amuse.units import nbody_system from amuse.units import generic_unit_system from amuse.units.quantities import zero from amuse.units.units import * from amus...
0
0
0
7,746
0
0
0
125
420
bb58999e39b1a02a306c7d509378e3240c9bd06d
6,219
py
Python
east/layers/models.py
embracesource-cv-com/keras-east
0733a9a99c4446a30c8b8e1d62e102391f7a854a
[ "Apache-2.0" ]
12
2019-04-01T01:58:13.000Z
2019-12-10T02:54:18.000Z
east/layers/models.py
embracesource-cv-com/keras-east
0733a9a99c4446a30c8b8e1d62e102391f7a854a
[ "Apache-2.0" ]
5
2019-04-22T16:00:02.000Z
2020-08-12T07:03:05.000Z
east/layers/models.py
embracesource-cv-com/keras-east
0733a9a99c4446a30c8b8e1d62e102391f7a854a
[ "Apache-2.0" ]
1
2019-05-24T11:34:44.000Z
2019-05-24T11:34:44.000Z
# -*- coding: utf-8 -*- """ File Name model Description : Author : mick.yi date 2019/4/1 """ import keras from keras import layers import tensorflow as tf def merge_block(f_pre, f_cur, out_channels, index): """ east :param f_pre: :param f_cur: :para...
37.920732
117
0.64512
# -*- coding: utf-8 -*- """ File Name: model Description : 模型层 Author : mick.yi date: 2019/4/1 """ import keras from keras import layers, Input, Model import tensorflow as tf from east.layers.base_net import resnet50 from east.layers.losses import balanced_cross_entropy, iou_lo...
627
0
0
0
0
1,782
0
107
94
1e3a112d31066b788dc27d12fd5c5022d08451b2
4,018
py
Python
oocran/django/oocran/settings.py
howls90/oocran
9951f3ff752f9f6517a4d016476c1d1e2bb44a4d
[ "Apache-2.0", "BSD-3-Clause" ]
3
2018-12-12T10:32:16.000Z
2022-02-07T19:46:10.000Z
oocran/django/oocran/settings.py
howls90/oocran
9951f3ff752f9f6517a4d016476c1d1e2bb44a4d
[ "Apache-2.0", "BSD-3-Clause" ]
1
2017-06-16T08:16:57.000Z
2017-06-16T09:45:28.000Z
oocran/django/oocran/settings.py
howls90/OOCRAN
9951f3ff752f9f6517a4d016476c1d1e2bb44a4d
[ "Apache-2.0", "BSD-3-Clause" ]
6
2017-05-29T03:34:23.000Z
2022-02-07T19:46:11.000Z
import os # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) PROJECT_ROOT = os.path.dirname(os.path.abspath(__file__)) # Quick-start development settings - unsuitable for production # See https://docs.djangoproject.com/en/1.9/...
25.43038
91
0.669985
import os # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) PROJECT_ROOT = os.path.dirname(os.path.abspath(__file__)) # Quick-start development settings - unsuitable for production # See https://docs.djangoproject.com/en/1.9/...
0
0
0
0
0
0
0
6
52
d47e94bf1a45227e99e512e32b5070c0ff25a395
9,944
py
Python
orangehackathon/widgets/lineplot.py
e-mental-health/orange-hackathon
ff4ece2495fb47599e61e634f94b55c4f5692b0f
[ "Apache-2.0" ]
1
2022-01-06T16:48:07.000Z
2022-01-06T16:48:07.000Z
orangehackathon/widgets/lineplot.py
e-mental-health/orange-hackathon
ff4ece2495fb47599e61e634f94b55c4f5692b0f
[ "Apache-2.0" ]
4
2019-08-30T17:28:11.000Z
2022-02-01T08:06:08.000Z
orangehackathon/widgets/lineplot.py
e-mental-health/orange-hackathon
ff4ece2495fb47599e61e634f94b55c4f5692b0f
[ "Apache-2.0" ]
1
2019-08-30T11:06:20.000Z
2019-08-30T11:06:20.000Z
# alternatives: seaborn, plotnine,
44.591928
147
0.621078
import re import sys from matplotlib.figure import Figure from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg as FigureCanvas # alternatives: seaborn, plotnine, from PyQt5.QtCore import Qt,pyqtSignal from PyQt5.QtWidgets import QFormLayout from Orange.widgets.widget import OWWidget, Input from Orange.widg...
0
330
0
9,161
0
0
0
173
243
89b007824d01089c838fcd8c26342e4c5c8867cf
49,367
py
Python
src/interface/Python/paramonte/vis/LineScatterPlot.py
shahmoradi/paramonte-1
77c81c14e475bfacb19fa6de1f41629380e453d3
[ "MIT" ]
null
null
null
src/interface/Python/paramonte/vis/LineScatterPlot.py
shahmoradi/paramonte-1
77c81c14e475bfacb19fa6de1f41629380e453d3
[ "MIT" ]
null
null
null
src/interface/Python/paramonte/vis/LineScatterPlot.py
shahmoradi/paramonte-1
77c81c14e475bfacb19fa6de1f41629380e453d3
[ "MIT" ]
1
2020-09-19T03:45:07.000Z
2020-09-19T03:45:07.000Z
#################################################################################################################################### #################################################################################################################################### #### #### MIT License #### #### ParaMonte: plain p...
45.166514
166
0.430814
#################################################################################################################################### #################################################################################################################################### #### #### MIT License #### #### ParaMonte: plain p...
0
0
0
46,368
0
0
0
37
178
067504a01da9ec318e0dbd9bd3df5b19eaa8c016
6,351
py
Python
roles/custom_module/library/ibm_ss_cluster.py
dheren-git/ibm-spectrum-scale-install-infra
21f86774a09d9c36fba1ca75e489c9d4b99768d3
[ "Apache-2.0" ]
null
null
null
roles/custom_module/library/ibm_ss_cluster.py
dheren-git/ibm-spectrum-scale-install-infra
21f86774a09d9c36fba1ca75e489c9d4b99768d3
[ "Apache-2.0" ]
null
null
null
roles/custom_module/library/ibm_ss_cluster.py
dheren-git/ibm-spectrum-scale-install-infra
21f86774a09d9c36fba1ca75e489c9d4b99768d3
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # author: IBM Corporation # description: Highly-customizable Ansible module # for installing and configuring IBM Spectrum Scale (GPFS) # company: IBM # license: Apache-2.0 ANSIBLE_METADATA = { 'status': ['preview'], 'supported_by...
30.38756
93
0.534876
#!/usr/bin/python # -*- coding: utf-8 -*- # author: IBM Corporation # description: Highly-customizable Ansible module # for installing and configuring IBM Spectrum Scale (GPFS) # company: IBM # license: Apache-2.0 ANSIBLE_METADATA = { 'status': ['preview'], 'supported_by...
0
0
0
0
0
3,395
0
69
203
140f592268d8d602432a1c2e2ee6848f46a1e781
4,131
py
Python
bbKnapsack.py
LangchunSi/0-1-Knapsack-problem
48cf5c65fe6139c585bc31fe16a245eec592e805
[ "Unlicense" ]
null
null
null
bbKnapsack.py
LangchunSi/0-1-Knapsack-problem
48cf5c65fe6139c585bc31fe16a245eec592e805
[ "Unlicense" ]
null
null
null
bbKnapsack.py
LangchunSi/0-1-Knapsack-problem
48cf5c65fe6139c585bc31fe16a245eec592e805
[ "Unlicense" ]
null
null
null
# Branch and bound method if __name__ == '__main__': BranchBoundRun()
30.828358
103
0.506657
# Branch and bound method import queue class Node: ''' upbound: upbound value of node value: value of current node weight: weight of current node level: level number of the current node on the subset tree ''' upbound = 0 value = 0 weight = 0 level = 0 def ...
0
0
0
3,665
0
298
0
-9
98
c27adb36ef98cd03b956b8db80176e513a8fb706
464
py
Python
demos/scope_vrml_test.py
isuthermography/spatialnde
983de2e68139c33ab5eb8df59ac0aaa84bad096a
[ "Apache-2.0" ]
null
null
null
demos/scope_vrml_test.py
isuthermography/spatialnde
983de2e68139c33ab5eb8df59ac0aaa84bad096a
[ "Apache-2.0" ]
null
null
null
demos/scope_vrml_test.py
isuthermography/spatialnde
983de2e68139c33ab5eb8df59ac0aaa84bad096a
[ "Apache-2.0" ]
null
null
null
import numpy as np import dataguzzler as dg import dg_metadata as dgm import dg_file as dgf fin = "/home/linuxadm/usr_local/src/freecad-git032314/build/data/Mod/Robot/Lib/Kuka/kr125_3.wrl" fout = "/tmp/robot.dgs" wfmdict={} fh=open(fin,"r"); wfmdict["robot"]=dg.wfminfo() wfmdict["robot"].Name="robot" wfmdict["rob...
21.090909
96
0.737069
import numpy as np import dataguzzler as dg import dg_metadata as dgm import dg_file as dgf fin = "/home/linuxadm/usr_local/src/freecad-git032314/build/data/Mod/Robot/Lib/Kuka/kr125_3.wrl" fout = "/tmp/robot.dgs" wfmdict={} fh=open(fin,"r"); wfmdict["robot"]=dg.wfminfo() wfmdict["robot"].Name="robot" wfmdict["rob...
0
0
0
0
0
0
0
0
0
c67cb4a02a3fac12aac6f7b9bd93974e4fcc1b34
243
py
Python
setup.py
manics/napari-omero
e1964cb4e44dfd84f7cc43f37c0c795f98339c2a
[ "BSD-3-Clause" ]
23
2020-06-23T01:28:33.000Z
2022-01-22T13:36:21.000Z
setup.py
manics/napari-omero
e1964cb4e44dfd84f7cc43f37c0c795f98339c2a
[ "BSD-3-Clause" ]
29
2020-06-24T00:58:50.000Z
2022-02-02T12:46:55.000Z
setup.py
manics/napari-omero
e1964cb4e44dfd84f7cc43f37c0c795f98339c2a
[ "BSD-3-Clause" ]
7
2020-06-23T11:28:39.000Z
2022-02-03T06:51:38.000Z
from setuptools import setup, find_packages setup( package_dir={"": "src"}, packages=find_packages("src") + ['omero.plugins'], use_scm_version={"write_to": "src/napari_omero/_version.py"}, setup_requires=["setuptools_scm"], )
27
65
0.695473
from setuptools import setup, find_packages setup( package_dir={"": "src"}, packages=find_packages("src") + ['omero.plugins'], use_scm_version={"write_to": "src/napari_omero/_version.py"}, setup_requires=["setuptools_scm"], )
0
0
0
0
0
0
0
0
0
c350ddd466fedbe443d442a3d40d88864309e621
1,076
py
Python
2020/Python/day09/part2.py
tymscar/Advent-Of-Code
cd7b96b0253191e236bd704b0d8b5540fb3e8ef6
[ "MIT" ]
4
2019-12-08T08:20:53.000Z
2021-12-17T12:04:11.000Z
2020/Python/day09/part2.py
tymscar/AdventOfCode2018
9742ddb6bbbc917062baad87d6b6de75375f1ae8
[ "MIT" ]
null
null
null
2020/Python/day09/part2.py
tymscar/AdventOfCode2018
9742ddb6bbbc917062baad87d6b6de75375f1ae8
[ "MIT" ]
4
2020-12-11T22:10:24.000Z
2021-12-25T22:39:05.000Z
print(part_2())
25.023256
85
0.597584
def two_num_sum(arr, start, end, find): for i in range(start, end + 1): complement = find - arr[i] if complement != arr[i] and complement in arr[start:end + 1]: return True return False def find_bad_num_index(arr): file = open('input.txt', 'r') for line in file: li...
0
0
0
0
0
964
0
0
91
2795b922566833e3fee13765e73b9b758e105780
3,176
py
Python
main.py
Philipnah/Corona-Discord-Bot
12b3b267c627ffbcb06f859b6370c0ebdef32a88
[ "Apache-2.0" ]
null
null
null
main.py
Philipnah/Corona-Discord-Bot
12b3b267c627ffbcb06f859b6370c0ebdef32a88
[ "Apache-2.0" ]
null
null
null
main.py
Philipnah/Corona-Discord-Bot
12b3b267c627ffbcb06f859b6370c0ebdef32a88
[ "Apache-2.0" ]
2
2020-04-01T11:10:05.000Z
2020-04-21T08:29:13.000Z
import discord import os token = os.environ.get("S3_KEY") webpage = "https://www.worldometers.info/coronavirus/" # ------------- start data gathering ---------------------- # # ------------- end data gathering ---------------------- # client = discord.Client() dataGather = dataGather() client.run(token)
32.742268
119
0.598866
import requests import lxml from bs4 import BeautifulSoup import discord import os token = os.environ.get("S3_KEY") webpage = "https://www.worldometers.info/coronavirus/" # ------------- start data gathering ---------------------- # class dataGather: def __init__(self): print("dataGather has been instanc...
4
1,234
0
1,520
0
0
0
-8
111
8a16fcb02288043fd068a6a1acdbef11a03a4613
25,254
py
Python
tests/test_integration_test_of_client.py
ndexbio/nice-cx-python
f8cf207e439b3afcf77c45ea80792968a2258bfb
[ "BSD-3-Clause" ]
5
2017-12-01T20:19:46.000Z
2022-03-06T19:22:36.000Z
tests/test_integration_test_of_client.py
ndexbio/nice-cx-python
f8cf207e439b3afcf77c45ea80792968a2258bfb
[ "BSD-3-Clause" ]
77
2017-11-20T17:53:38.000Z
2022-01-26T23:43:34.000Z
tests/test_integration_test_of_client.py
ndexbio/nice-cx-python
f8cf207e439b3afcf77c45ea80792968a2258bfb
[ "BSD-3-Clause" ]
5
2017-11-20T17:03:34.000Z
2021-04-26T20:40:20.000Z
# -*- coding: utf-8 -*- """Integration/acceptance tests for `ndex2.client` package.""" SKIP_REASON = 'NDEX2_TEST_SERVER, NDEX2_TEST_USER, NDEX2_TEST_PASS ' \ 'environment variables not set, cannot run integration' \ ' tests with server'
43.692042
91
0.570484
# -*- coding: utf-8 -*- """Integration/acceptance tests for `ndex2.client` package.""" import os import re import sys import io import time import unittest import json import uuid from datetime import datetime import requests from requests.exceptions import HTTPError import ndex2 from ndex2.nice_cx_network import Ni...
0
24,510
0
0
0
0
0
54
421
358327d55339c0cde8f97408cc8c6e1d08e55300
866
py
Python
eventstore_grpc/streams/tombstone.py
jmshnds/eventstore_grpc
cf6a5978bcdf5bb725a569b7373ce15ee4babb25
[ "MIT" ]
6
2021-02-04T15:48:28.000Z
2021-12-26T03:04:26.000Z
eventstore_grpc/streams/tombstone.py
jmshnds/eventstore_grpc
cf6a5978bcdf5bb725a569b7373ce15ee4babb25
[ "MIT" ]
1
2021-04-14T00:06:25.000Z
2021-04-14T07:28:34.000Z
eventstore_grpc/streams/tombstone.py
jmshnds/eventstore_grpc
cf6a5978bcdf5bb725a569b7373ce15ee4babb25
[ "MIT" ]
1
2021-04-14T17:22:54.000Z
2021-04-14T17:22:54.000Z
""" Tombstone stream. """ from typing import Union from eventstore_grpc.proto import streams_pb2, streams_pb2_grpc, shared_pb2 from eventstore_grpc import constants def tombstone_stream( stub: streams_pb2_grpc.StreamsStub, stream: str, expected_version: Union[int, str], **kwargs, ): """Tombstone....
29.862069
75
0.733256
""" Tombstone stream. """ from typing import Union from eventstore_grpc.proto import streams_pb2, streams_pb2_grpc, shared_pb2 from eventstore_grpc import constants def tombstone_stream( stub: streams_pb2_grpc.StreamsStub, stream: str, expected_version: Union[int, str], **kwargs, ): """Tombstone....
0
0
0
0
0
0
0
0
0
9e69aad9e2c55ad699c47b42c6ccc627fb9b0e53
1,810
py
Python
Python/DL/Keras/predict-orbit.py
James-McNeill/Learning
3c4fe1a64240cdf5614db66082bd68a2f16d2afb
[ "MIT" ]
null
null
null
Python/DL/Keras/predict-orbit.py
James-McNeill/Learning
3c4fe1a64240cdf5614db66082bd68a2f16d2afb
[ "MIT" ]
null
null
null
Python/DL/Keras/predict-orbit.py
James-McNeill/Learning
3c4fe1a64240cdf5614db66082bd68a2f16d2afb
[ "MIT" ]
null
null
null
# Predicting the orbit trajectory # Function created to plot the output # Build model # Instantiate a Sequential model model = Sequential() # Add a Dense layer with 50 neurons and an input of 1 neuron model.add(Dense(50, input_shape=(1,), activation='relu')) # Add two Dense layers with 50 neurons and relu activatio...
35.490196
133
0.748619
# Predicting the orbit trajectory # Function created to plot the output def plot_orbit(model_preds): axeslim = int(len(model_preds)/2) plt.plot(np.arange(-axeslim, axeslim + 1),np.arange(-axeslim, axeslim + 1)**2,color="mediumslateblue") plt.plot(np.arange(-axeslim, axeslim + 1),model_preds,color="orange") plt...
0
0
0
0
0
383
0
0
22
f3f259426445bd6af585209580fa95c40c05f9a2
64,579
py
Python
appengine/monorail/tracker/tracker_bizobj.py
xswz8015/infra
f956b78ce4c39cc76acdda47601b86794ae0c1ba
[ "BSD-3-Clause" ]
null
null
null
appengine/monorail/tracker/tracker_bizobj.py
xswz8015/infra
f956b78ce4c39cc76acdda47601b86794ae0c1ba
[ "BSD-3-Clause" ]
7
2022-02-15T01:11:37.000Z
2022-03-02T12:46:13.000Z
appengine/monorail/tracker/tracker_bizobj.py
NDevTK/chromium-infra
d38e088e158d81f7f2065a38aa1ea1894f735ec4
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2016 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file or at # https://developers.google.com/open-source/licenses/bsd """Business objects for the Monorail issue tracker. These are classes and functions that opera...
35.250546
80
0.732158
# Copyright 2016 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file or at # https://developers.google.com/open-source/licenses/bsd """Business objects for the Monorail issue tracker. These are classes and functions that opera...
0
0
0
0
0
1,260
0
-10
93
9f2e8f5899d963fef1779e7cb634f752703de003
2,502
py
Python
scripts/resnet_stacked.py
solomatov/cs229-project
9b04ddfaefc0b7ba302bc849e1259cad65f73fe8
[ "Apache-2.0" ]
null
null
null
scripts/resnet_stacked.py
solomatov/cs229-project
9b04ddfaefc0b7ba302bc849e1259cad65f73fe8
[ "Apache-2.0" ]
null
null
null
scripts/resnet_stacked.py
solomatov/cs229-project
9b04ddfaefc0b7ba302bc849e1259cad65f73fe8
[ "Apache-2.0" ]
null
null
null
""" Copyright 2017 JetBrains, s.r.o 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 ...
38.492308
167
0.735412
""" Copyright 2017 JetBrains, s.r.o 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 ...
0
0
0
0
0
0
0
0
0
c178224c4abf244b4417bd5580d5f0da2d0b9ef6
1,392
py
Python
omigami/cli.py
omigami/omigami
80800901acd3523dfae4245f95d269e6e949a1eb
[ "MIT" ]
2
2021-06-29T12:03:09.000Z
2022-01-18T23:00:19.000Z
omigami/cli.py
omigami/omigami
80800901acd3523dfae4245f95d269e6e949a1eb
[ "MIT" ]
9
2021-06-11T14:23:37.000Z
2022-01-07T09:46:47.000Z
omigami/cli.py
omigami/omigami_client
80800901acd3523dfae4245f95d269e6e949a1eb
[ "MIT" ]
1
2021-11-24T17:59:39.000Z
2021-11-24T17:59:39.000Z
omigami.add_command(credentials_helper)
27.294118
94
0.719109
import pickle from pathlib import Path import click from click import ClickException from omigami.authentication import encrypt_credentials from omigami.omi_settings import get_credentials_path, get_credentials_folder_path @click.command() @click.option("--username", help="Your Omigami.com username") @click.option(...
0
1,077
0
0
0
0
0
91
180
78e1ce1ea0489261164cc3e946dbfac0821a3c42
283
py
Python
ex109/teste.py
Jander94/Primeiros_comandos_python
188c89bdab8fa38ed58830397b1ce3328730bde3
[ "MIT" ]
null
null
null
ex109/teste.py
Jander94/Primeiros_comandos_python
188c89bdab8fa38ed58830397b1ce3328730bde3
[ "MIT" ]
null
null
null
ex109/teste.py
Jander94/Primeiros_comandos_python
188c89bdab8fa38ed58830397b1ce3328730bde3
[ "MIT" ]
null
null
null
import moeda moeda.limpar() v = float(input('Digite um valor: R$ ')) print(f'Aumentando 10% temos: {moeda.aumentar(v, 10, True)}') print(f'Diminuindo 20% temos: {moeda.diminuir(v, 20, True)}') print(f'O dobro {moeda.dobro(v, True)}') print(f'A metade {moeda.metade(v, True)}')
28.3
61
0.674912
import moeda moeda.limpar() v = float(input('Digite um valor: R$ ')) print(f'Aumentando 10% temos: {moeda.aumentar(v, 10, True)}') print(f'Diminuindo 20% temos: {moeda.diminuir(v, 20, True)}') print(f'O dobro é {moeda.dobro(v, True)}') print(f'A metade é {moeda.metade(v, True)}')
4
0
0
0
0
0
0
0
0
5dd8d07e766d7483edee062df37c73fd4685dd88
22,661
py
Python
keras_cv_attention_models/coco/data.py
dcleres/keras_cv_attention_models
264876673e369f23eff49b3b589b72f908a9625b
[ "MIT" ]
null
null
null
keras_cv_attention_models/coco/data.py
dcleres/keras_cv_attention_models
264876673e369f23eff49b3b589b72f908a9625b
[ "MIT" ]
null
null
null
keras_cv_attention_models/coco/data.py
dcleres/keras_cv_attention_models
264876673e369f23eff49b3b589b72f908a9625b
[ "MIT" ]
null
null
null
import tensorflow as tf COCO_LABELS = """person, bicycle, car, motorcycle, airplane, bus, train, truck, boat, traffic light, fire hydrant, stop sign, parking meter, bench, bird, cat, dog, horse, sheep, cow, elephant, bear, zebra, giraffe, backpack, umbrella, handbag, tie, suitcase, frisbee, skis, snowboard, sp...
52.7
155
0.690481
import tensorflow as tf import tensorflow_datasets as tfds from tensorflow import keras from keras_cv_attention_models.imagenet.data import init_mean_std_by_rescale_mode, random_crop_fraction COCO_LABELS = """person, bicycle, car, motorcycle, airplane, bus, train, truck, boat, traffic light, fire hydrant, stop sign, ...
0
0
0
3,350
0
13,463
0
102
388
472ca0ec9cc39d3078370904a7e7bd576cd512a2
761
py
Python
accounts/migrations/0006_auto_20210322_0832.py
Osca-M/django-oauth2
15bdd5c39e013c9f390eb586e64367e98ff59c4c
[ "MIT" ]
null
null
null
accounts/migrations/0006_auto_20210322_0832.py
Osca-M/django-oauth2
15bdd5c39e013c9f390eb586e64367e98ff59c4c
[ "MIT" ]
null
null
null
accounts/migrations/0006_auto_20210322_0832.py
Osca-M/django-oauth2
15bdd5c39e013c9f390eb586e64367e98ff59c4c
[ "MIT" ]
null
null
null
# Generated by Django 3.0.3 on 2021-03-22 08:32
30.44
190
0.646518
# Generated by Django 3.0.3 on 2021-03-22 08:32 from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('accounts', '0005_auto_20210304_0836'), ] operations = [ migrations.AddField( model_name='user', ...
0
0
0
618
0
0
0
26
68
5e9bfc48762614f2506979c001a5b8a3571ec74b
6,229
py
Python
examples/rgb_rotate_warp.py
ic/depthai-python
fe6424277641dbff0f0fe705ddacdbb04a7bf06d
[ "MIT" ]
null
null
null
examples/rgb_rotate_warp.py
ic/depthai-python
fe6424277641dbff0f0fe705ddacdbb04a7bf06d
[ "MIT" ]
null
null
null
examples/rgb_rotate_warp.py
ic/depthai-python
fe6424277641dbff0f0fe705ddacdbb04a7bf06d
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ This example shows usage of ImageManip to crop a rotated rectangle area on a frame, or perform various image transforms: rotate, mirror, flip, perspective transform. """ import depthai as dai import cv2 import numpy as np keyRotateDecr = 'z' keyRotateIncr = 'x' keyResizeInc = 'v' keyWarpTe...
35.392045
98
0.5773
#!/usr/bin/env python3 """ This example shows usage of ImageManip to crop a rotated rectangle area on a frame, or perform various image transforms: rotate, mirror, flip, perspective transform. """ import depthai as dai import cv2 import numpy as np keyRotateDecr = 'z' keyRotateIncr = 'x' keyResizeInc = 'v' keyWarpTe...
0
0
0
0
0
343
0
0
23
17755a716ca497a33024db00edf8f173f1e78c8c
454
py
Python
tests/unittests/dispatcher_functions/show_context/__init__.py
gohar94/azure-functions-python-worker
4322e53ddbcc1eea40c1b061b42653336d9003f6
[ "MIT" ]
277
2018-01-25T23:13:03.000Z
2022-02-22T06:12:04.000Z
tests/unittests/dispatcher_functions/show_context/__init__.py
gohar94/azure-functions-python-worker
4322e53ddbcc1eea40c1b061b42653336d9003f6
[ "MIT" ]
731
2018-01-18T18:54:38.000Z
2022-03-29T00:01:46.000Z
tests/unittests/dispatcher_functions/show_context/__init__.py
YunchuWang/azure-functions-python-worker
1f23e038a506c6412e4efbf07eb471a6afab0c2a
[ "MIT" ]
109
2018-01-18T02:22:57.000Z
2022-02-15T18:59:54.000Z
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License.
32.428571
76
0.69163
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. import json import azure.functions as func def main(req: func.HttpRequest, context: func.Context) -> func.HttpResponse: result = { 'function_directory': context.function_directory, 'function_name': contex...
0
0
0
0
0
293
0
-1
67
cf7c0d91e274616c0bd3b5dd09d02288d5be7453
11,888
py
Python
ploy/plain.py
ployground/ploy
9295b5597c09c434f170afbfd245d73f09affc39
[ "BSD-3-Clause" ]
32
2015-01-19T06:34:07.000Z
2021-07-27T08:48:28.000Z
ploy/plain.py
kernt/ploy
9295b5597c09c434f170afbfd245d73f09affc39
[ "BSD-3-Clause" ]
19
2015-01-30T23:30:39.000Z
2018-01-23T10:04:27.000Z
ploy/plain.py
kernt/ploy
9295b5597c09c434f170afbfd245d73f09affc39
[ "BSD-3-Clause" ]
9
2015-01-07T14:00:26.000Z
2019-03-10T20:15:37.000Z
import logging log = logging.getLogger('ploy') plugin = dict( get_massagers=get_massagers, get_masters=get_masters)
38.597403
96
0.567379
from functools import partial from lazy import lazy from ploy.common import BaseMaster, BaseInstance from ploy.common import SSHKeyFingerprint from ploy.common import SSHKeyFingerprintAsk from ploy.common import SSHKeyFingerprintIgnore from ploy.common import SSHKeyFingerprintInstance from ploy.common import SSHKeyInfo...
0
602
0
9,873
162
441
0
140
535
0b9abeccea67432787d4967aab8648e7f676d869
4,415
py
Python
skultrafast/zero_finding.py
Tillsten/skultrafast
778eaf1539b6d85f21ac53b011472605673ef7e8
[ "BSD-3-Clause" ]
10
2019-02-17T15:57:51.000Z
2021-11-15T02:00:33.000Z
skultrafast/zero_finding.py
cZahn/skultrafast
23572ba9ea32238f34a8a15390fb572ecd8bc6fa
[ "BSD-3-Clause" ]
1
2019-01-17T11:56:38.000Z
2019-07-11T15:30:58.000Z
skultrafast/zero_finding.py
cZahn/skultrafast
23572ba9ea32238f34a8a15390fb572ecd8bc6fa
[ "BSD-3-Clause" ]
6
2018-11-08T14:11:06.000Z
2021-09-01T14:53:02.000Z
# -*- coding: utf-8 -*- """ Contains functions to find the time-zero and to interpolate the data. """ import numpy as np import skultrafast.dv as dv #from skultrafast.fitter import _coh_gaussian from scipy.linalg import lstsq from scipy.optimize import least_squares def _fit_func(t, y, x0, w, tau): """ ...
25.085227
99
0.551529
# -*- coding: utf-8 -*- """ Contains functions to find the time-zero and to interpolate the data. """ import numpy as np import skultrafast.dv as dv import scipy.ndimage as nd import matplotlib.pyplot as plt #from skultrafast.fitter import _coh_gaussian from scipy.linalg import lstsq from scipy.optimize import least_...
0
2,145
0
6
0
19
0
22
256
a6803725d5400b4ac3619b4f18d0768c8355442c
6,468
py
Python
utils/test/test_cmpdirs.py
golharam/genomics
ca0c7c239b0f04353e2f2fa897db9c24a1211596
[ "Artistic-2.0" ]
49
2015-01-03T17:09:10.000Z
2022-03-17T19:28:08.000Z
utils/test/test_cmpdirs.py
burkesquires/genomics
9dd93a23e6401bcaa2d2ac17e319d72b0c80a410
[ "AFL-3.0" ]
59
2015-04-16T14:21:04.000Z
2022-03-15T11:56:33.000Z
utils/test/test_cmpdirs.py
burkesquires/genomics
9dd93a23e6401bcaa2d2ac17e319d72b0c80a410
[ "AFL-3.0" ]
29
2015-01-29T08:50:44.000Z
2021-08-19T02:15:44.000Z
####################################################################### # Tests for cmpdirs.py #######################################################################
45.230769
91
0.647341
####################################################################### # Tests for cmpdirs.py ####################################################################### import unittest import os import tempfile import shutil from bcftbx.Md5sum import Md5Checker from bcftbx.test.mock_data import TestUtils,ExampleDirLangu...
0
0
0
5,975
0
0
0
57
268
68dd16daf3339778319a442e4802bbfe6f999485
76
py
Python
rubicon/repository/utils/__init__.py
gforsyth/rubicon
b77c0bdfc73d3f5666f76c83240706c10cd2e88c
[ "Apache-2.0" ]
null
null
null
rubicon/repository/utils/__init__.py
gforsyth/rubicon
b77c0bdfc73d3f5666f76c83240706c10cd2e88c
[ "Apache-2.0" ]
null
null
null
rubicon/repository/utils/__init__.py
gforsyth/rubicon
b77c0bdfc73d3f5666f76c83240706c10cd2e88c
[ "Apache-2.0" ]
null
null
null
from rubicon.repository.utils.slugify import slugify __all__ = ["slugify"]
19
52
0.789474
from rubicon.repository.utils.slugify import slugify __all__ = ["slugify"]
0
0
0
0
0
0
0
0
0
2cd9f6565cecf480a63b62b31a3796167807b651
3,199
py
Python
bin/trimming_libraries2.py
Gabaldonlab/karyon
ba81828921b83b553f126892795253be1fd941ba
[ "MIT" ]
null
null
null
bin/trimming_libraries2.py
Gabaldonlab/karyon
ba81828921b83b553f126892795253be1fd941ba
[ "MIT" ]
2
2021-07-07T08:40:56.000Z
2022-01-06T16:10:27.000Z
bin/trimming_libraries2.py
Gabaldonlab/karyon
ba81828921b83b553f126892795253be1fd941ba
[ "MIT" ]
null
null
null
#!/bin/python import argparse if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('-l', '--library_file', help="File containing the library report generated by the script prepare_libraries.py") parser.add_argument('-p', '--path', required=True, help="Path de Trimmomatic") ...
39.012195
190
0.648953
#!/bin/python import sys, numpy, os.path, re import argparse from Bio import SeqIO if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('-l', '--library_file', help="File containing the library report generated by the script prepare_libraries.py") parser.add_argument('-p', '--p...
0
0
0
0
0
2,051
0
9
67
195d6bb65734f9c7e8588f4fa0e785dd42ba0b43
377
py
Python
src/util/filters.py
ayushgarg1804/Eventico
b0412c8fc15a94dc90cce6a1de55e4b2ac29ba83
[ "MIT" ]
2
2017-03-27T06:23:29.000Z
2017-04-20T17:48:25.000Z
src/util/filters.py
ayushgarg1804/Eventico
b0412c8fc15a94dc90cce6a1de55e4b2ac29ba83
[ "MIT" ]
null
null
null
src/util/filters.py
ayushgarg1804/Eventico
b0412c8fc15a94dc90cce6a1de55e4b2ac29ba83
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # @Author: amaneureka # @Date: 2017-03-30 13:53:13 # @Last Modified by: amaneureka # @Last Modified time: 2017-03-30 22:10:02 from .. import app
25.133333
42
0.697613
# -*- coding: utf-8 -*- # @Author: amaneureka # @Date: 2017-03-30 13:53:13 # @Last Modified by: amaneureka # @Last Modified time: 2017-03-30 22:10:02 from dateutil import parser from .. import app @app.template_filter('strftime') def _jinja2_filter_datetime(date, fmt): date = parser.parse(date) native = d...
0
152
0
0
0
0
0
6
46
a0036479429aa5c37e419622928e5d7314299531
762
py
Python
src/enjcli.py
adam-phelps/enjambre
2877ae6722648419520380744f8bfc986ec406e5
[ "MIT" ]
null
null
null
src/enjcli.py
adam-phelps/enjambre
2877ae6722648419520380744f8bfc986ec406e5
[ "MIT" ]
5
2020-07-03T00:02:43.000Z
2020-07-07T00:03:23.000Z
src/enjcli.py
adam-phelps/enjambre
2877ae6722648419520380744f8bfc986ec406e5
[ "MIT" ]
null
null
null
if __name__ == "__main__": myCli = EnjCLI() myvars = myCli.create_parser() print(myvars)
36.285714
107
0.664042
import argparse class EnjCLI: def __init__(self): pass def create_parser(self): ''' Create CLI with sensible defaults.''' parser = argparse.ArgumentParser(description='Enjambre robot manager') parser.add_argument('--add-robot', help='String name of robot.', required=False) ...
0
0
0
622
0
0
0
-6
45
f75968317e392c13ae034cbf31f9db18911c4778
1,035
py
Python
tests/test_controls/test_valloxcontrol.py
jussike/kuappi
985040dc813c023dc1577f31ca7f6744d42c91de
[ "MIT" ]
null
null
null
tests/test_controls/test_valloxcontrol.py
jussike/kuappi
985040dc813c023dc1577f31ca7f6744d42c91de
[ "MIT" ]
null
null
null
tests/test_controls/test_valloxcontrol.py
jussike/kuappi
985040dc813c023dc1577f31ca7f6744d42c91de
[ "MIT" ]
null
null
null
from unittest.mock import patch with patch('serial.Serial'):
29.571429
66
0.66087
from unittest import TestCase from unittest.mock import patch with patch('serial.Serial'): from controls.valloxcontrol import ValloxControl from valloxserial import vallox_serial class TestValloxControl(TestCase): @patch('serial.Serial') def setUp(self, _): self.vc = ValloxControl() @patch.o...
0
391
0
437
0
0
0
52
93
d567ba6e73a3cd20207462b55671309948a986b0
1,881
py
Python
dataladmetadatamodel/mapper/gitmapper/utils.py
christian-monch/metadata-model
d8ac56c1708cb6040fbf96bfa8d0c389a2be7333
[ "MIT" ]
1
2021-02-12T09:54:46.000Z
2021-02-12T09:54:46.000Z
dataladmetadatamodel/mapper/gitmapper/utils.py
christian-monch/metadata-model
d8ac56c1708cb6040fbf96bfa8d0c389a2be7333
[ "MIT" ]
6
2021-02-11T08:10:21.000Z
2021-10-07T20:45:48.000Z
dataladmetadatamodel/mapper/gitmapper/utils.py
christian-monch/metadata-model
d8ac56c1708cb6040fbf96bfa8d0c389a2be7333
[ "MIT" ]
1
2021-02-16T15:30:37.000Z
2021-02-16T15:30:37.000Z
""" Simple lock interface. """ import os PID = os.getpid() GIT_MAPPER_LOCK_FILE_NAME = "metadata-model-git.lock" read_write_locked = dict()
27.26087
81
0.669856
""" Simple lock interface. """ import os import time from dataclasses import dataclass from pathlib import Path from fasteners import InterProcessLock from dataladmetadatamodel.log import logger PID = os.getpid() GIT_MAPPER_LOCK_FILE_NAME = "metadata-model-git.lock" read_write_locked = dict() @dataclass class Lo...
0
50
0
0
0
1,412
0
44
227
418bc0b5811508162f31cbf97411a9da8a3cae6a
3,614
py
Python
fig5_gap_gene_patterning/fig5_1_train.py
sjx93/rnn_for_gene_network_2020
d2e16d836f35321923660777179e260065e3976c
[ "MIT" ]
5
2021-04-20T14:43:51.000Z
2022-02-09T07:43:11.000Z
fig5_gap_gene_patterning/fig5_1_train.py
sjx93/rnn_for_gene_network_2020
d2e16d836f35321923660777179e260065e3976c
[ "MIT" ]
null
null
null
fig5_gap_gene_patterning/fig5_1_train.py
sjx93/rnn_for_gene_network_2020
d2e16d836f35321923660777179e260065e3976c
[ "MIT" ]
1
2022-02-02T09:23:20.000Z
2022-02-02T09:23:20.000Z
import argparse import sys import tensorflow as tf BATCH = 1 NUM_GENES = 4 N1 = 91 EXPLICIT_NOISE_LEVEL = 0.05 FLAGS = None if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument('--output_name', type=int, default=1, help='***') FLAGS, unparsed = parser.parse_known_args() tf.app.r...
30.627119
118
0.657167
import argparse import sys import csv import os import numpy as np import matplotlib.pyplot as plt import tensorflow as tf BATCH = 1 NUM_GENES = 4 N1 = 91 EXPLICIT_NOISE_LEVEL = 0.05 FLAGS = None def main(_): if not os.path.exists(repr(FLAGS.output_name)): os.mkdir(repr(FLAGS.output_name)) if not os.path.e...
0
0
0
0
0
3,154
0
-16
111
020786b949349a53cf4db9ee348166f29a7eb6d5
1,177
py
Python
get_key_code/UI.py
daviaws/missionText
7fb3bfce52e17f8156f8f5eca9a6a97f72e81adc
[ "Apache-2.0" ]
null
null
null
get_key_code/UI.py
daviaws/missionText
7fb3bfce52e17f8156f8f5eca9a6a97f72e81adc
[ "Apache-2.0" ]
null
null
null
get_key_code/UI.py
daviaws/missionText
7fb3bfce52e17f8156f8f5eca9a6a97f72e81adc
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- APPNAME = "WRITER TEST" WELCOME_MSG = "Welcome to {}\n".format(APPNAME) ui = UI()
28.02381
81
0.587086
#!/usr/bin/python # -*- coding: utf-8 -*- from tkinter import Tk, Text, BOTH, DISABLED, NORMAL, END APPNAME = "WRITER TEST" WELCOME_MSG = "Welcome to {}\n".format(APPNAME) class Output(Text): def __init__(self, parent): Text.__init__(self, parent) self.parent = parent self....
0
0
0
947
0
0
0
36
69
913187d7aa46aaed851077b7fe47f4c867251f46
179,184
py
Python
env/lib/python3.8/site-packages/CoreFoundation/_metadata.py
evilcomputer12/macOSAutoJoinAndRecordZoomSession
2157de803c1d67fe493ff330f1558892507e8e49
[ "MIT" ]
1
2021-02-06T21:00:00.000Z
2021-02-06T21:00:00.000Z
env/lib/python3.8/site-packages/CoreFoundation/_metadata.py
evilcomputer12/macOSAutoJoinAndRecordZoomSession
2157de803c1d67fe493ff330f1558892507e8e49
[ "MIT" ]
null
null
null
env/lib/python3.8/site-packages/CoreFoundation/_metadata.py
evilcomputer12/macOSAutoJoinAndRecordZoomSession
2157de803c1d67fe493ff330f1558892507e8e49
[ "MIT" ]
null
null
null
# This file is generated by objective.metadata # # Last update: Mon Mar 16 08:52:15 2020 # # flake8: noqa import objc, sys if sys.maxsize > 2 ** 32: else: misc = {} misc.update( { "CFXMLEntityInfo": objc.createStructType( "CFXMLEntityInfo", sel32or64( b"{_CFXMLE...
43.939186
15,638
0.585354
# This file is generated by objective.metadata # # Last update: Mon Mar 16 08:52:15 2020 # # flake8: noqa import objc, sys if sys.maxsize > 2 ** 32: def sel32or64(a, b): return b else: def sel32or64(a, b): return a misc = {} misc.update( { "CFXMLEntityInfo": objc.createStruct...
0
0
0
0
0
32
0
0
54
88e9e24537c107cf35819d0f210d7e1323014386
6,892
py
Python
graffati.py
yorozultd/nobrand
ee308f87f7f5929df803ffef11b3b79eec6e763b
[ "MIT" ]
null
null
null
graffati.py
yorozultd/nobrand
ee308f87f7f5929df803ffef11b3b79eec6e763b
[ "MIT" ]
null
null
null
graffati.py
yorozultd/nobrand
ee308f87f7f5929df803ffef11b3b79eec6e763b
[ "MIT" ]
null
null
null
import numpy from progress.bar import Bar bar = Bar('Sending', max=4000) try : dictdata = numpy.load("stockDictionary.npy",allow_pickle=True) except : if args.downloadStock or args.syncDictionary : pass else: print("Try using python3 graffati.py -ds to download the stock file with dictio...
44.753247
208
0.56892
import argparse import xml.etree.ElementTree as ET import requests import numpy from progress.bar import Bar bar = Bar('Sending', max=4000) try : dictdata = numpy.load("stockDictionary.npy",allow_pickle=True) except : if args.downloadStock or args.syncDictionary : pass else: print("Try ...
0
0
0
0
0
6,207
0
1
179
af1a36a84b57634789682556e1bc5fb8840adfd2
988
py
Python
migrations/versions/3acf60608a7d_.py
uk-gov-mirror/alphagov.digitalmarketplace-api
5a1db63691d0c4a435714837196ab6914badaf62
[ "MIT" ]
25
2015-01-14T10:45:13.000Z
2021-05-26T17:21:41.000Z
migrations/versions/3acf60608a7d_.py
uk-gov-mirror/alphagov.digitalmarketplace-api
5a1db63691d0c4a435714837196ab6914badaf62
[ "MIT" ]
641
2015-01-15T11:10:50.000Z
2021-06-15T22:18:42.000Z
migrations/versions/3acf60608a7d_.py
uk-gov-mirror/alphagov.digitalmarketplace-api
5a1db63691d0c4a435714837196ab6914badaf62
[ "MIT" ]
22
2015-06-13T15:37:45.000Z
2021-08-19T23:40:49.000Z
"""empty message Revision ID: 3acf60608a7d Revises: 48a5caa0a762 Create Date: 2015-03-26 11:26:40.461247 """ # revision identifiers, used by Alembic. revision = '3acf60608a7d' down_revision = '48a5caa0a762'
26.702703
63
0.63664
"""empty message Revision ID: 3acf60608a7d Revises: 48a5caa0a762 Create Date: 2015-03-26 11:26:40.461247 """ # revision identifiers, used by Alembic. revision = '3acf60608a7d' down_revision = '48a5caa0a762' from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated by Alembic - ...
0
0
0
0
0
682
0
3
91
99a07da7533ba8f77dc0c234de5c405d926f4bcd
2,993
py
Python
plain-python/6-search.py
Bio-Otto/pdbe-api-training
1d5016e463c86a0ccc55c4808eba9060dba191e4
[ "Apache-2.0" ]
1
2020-09-15T19:44:41.000Z
2020-09-15T19:44:41.000Z
plain-python/6-search.py
leelasd/pdbe-api-training
1d5016e463c86a0ccc55c4808eba9060dba191e4
[ "Apache-2.0" ]
null
null
null
plain-python/6-search.py
leelasd/pdbe-api-training
1d5016e463c86a0ccc55c4808eba9060dba191e4
[ "Apache-2.0" ]
1
2020-09-16T16:30:09.000Z
2020-09-16T16:30:09.000Z
#!/usr/bin/env python3 # Copyright 2018 EMBL - European Bioinformatics Institute # # 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 require...
27.971963
153
0.743735
#!/usr/bin/env python3 # Copyright 2018 EMBL - European Bioinformatics Institute # # 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 require...
0
0
0
0
0
480
0
-6
69
b006a1505dde10f585964e815fc5f6d7bc4310b3
1,332
py
Python
JWTtoken.py
GabrielIFPB/wishlist-fastapi
1d39bf4c65dcc4491d0836487a218e67dbb07a80
[ "MIT" ]
null
null
null
JWTtoken.py
GabrielIFPB/wishlist-fastapi
1d39bf4c65dcc4491d0836487a218e67dbb07a80
[ "MIT" ]
null
null
null
JWTtoken.py
GabrielIFPB/wishlist-fastapi
1d39bf4c65dcc4491d0836487a218e67dbb07a80
[ "MIT" ]
null
null
null
from fastapi.security import OAuth2PasswordBearer SECRET_KEY = "09d25e094faa6ca2556c818166b7a9563b93f7099f6f0f4caa6cf63b88e8d3e7" ALGORITHM = "HS256" ACCESS_TOKEN_EXPIRE_MINUTES = 60 oauth2_scheme = OAuth2PasswordBearer(tokenUrl="login")
28.340426
98
0.807808
from datetime import datetime, timedelta from fastapi import HTTPException from typing import Optional from fastapi.security import OAuth2PasswordBearer from fastapi import Depends from jose import JWTError, jwt from sqlalchemy.orm import Session from database import get_db from repository.user import User as ModelU...
0
0
511
0
0
242
0
88
248
447521bc7258b71f7c5b0baafe3fb7087a605cbf
3,151
py
Python
autoaug/cutmix.py
Dou-Yu-xuan/deep-learning-visal
82978f454c7f2662d0eb972b5a4a1e5d5961b232
[ "Apache-2.0" ]
150
2021-12-10T01:21:06.000Z
2022-03-30T08:13:42.000Z
autoaug/cutmix.py
Curdboycc/torch-template-for-deep-learning
da1ebc527d44c8c5a524e757a1d784ba37ec2d5c
[ "Apache-2.0" ]
2
2021-12-23T04:59:54.000Z
2021-12-23T06:23:24.000Z
autoaug/cutmix.py
Curdboycc/torch-template-for-deep-learning
da1ebc527d44c8c5a524e757a1d784ba37ec2d5c
[ "Apache-2.0" ]
54
2021-12-10T03:36:27.000Z
2022-03-22T11:57:12.000Z
def cross_entropy(input, target, size_average=True): """ Cross entropy that accepts soft targets Args: pred: predictions for neural network targets: targets, can be soft size_average: if false, sum is returned instead of mean Examples:: input = torch.FloatTensor([[1.1,...
29.726415
89
0.58299
import numpy as np import random from torch.utils.data.dataset import Dataset class CutMixCrossEntropyLoss(Module): def __init__(self, size_average=True): super().__init__() self.size_average = size_average def forward(self, input, target): if len(target.size()) == 1: targe...
0
0
0
1,515
0
631
0
12
158
6724f9b981c41398d8f6357187d6e007909b935e
9,929
py
Python
crawler.py
SpereShelde/Google_news
5cc87487a5b1747f8206ce13706e34023fd136a1
[ "MIT" ]
null
null
null
crawler.py
SpereShelde/Google_news
5cc87487a5b1747f8206ce13706e34023fd136a1
[ "MIT" ]
null
null
null
crawler.py
SpereShelde/Google_news
5cc87487a5b1747f8206ce13706e34023fd136a1
[ "MIT" ]
null
null
null
#Author: Zifan Wang | frank@zifan.wang import re import urllib.request import collections import time from textblob import TextBlob if __name__ == '__main__': print("Please input key words: ", end='') key_words = input().strip().replace(" ", "+") print("Please input result number limit: ", end='') l...
49.645
172
0.538524
#Author: Zifan Wang | frank@zifan.wang import re import urllib.request import collections import time from textblob import TextBlob class News: def __init__(self, link, source, title, time, sentiment) -> None: self.link = link self.source = source self.title = title self.time = tim...
0
0
0
324
0
0
0
0
23
3f28d03dbf5cede9994a4d93451133a7e11c59f6
4,247
py
Python
insta/views.py
Ammoh-Moringa/-Instagram
e3f8cfff8f5a4f0d2698675af067f31c0f288388
[ "MIT" ]
null
null
null
insta/views.py
Ammoh-Moringa/-Instagram
e3f8cfff8f5a4f0d2698675af067f31c0f288388
[ "MIT" ]
null
null
null
insta/views.py
Ammoh-Moringa/-Instagram
e3f8cfff8f5a4f0d2698675af067f31c0f288388
[ "MIT" ]
null
null
null
# Create your views here. # def activate(request, uidb64, token): # try: # uid = force_text(urlsafe_base64_decode(uidb64)) # user = User.objects.get(pk=uid) # except (TypeError, ValueError, OverflowError, User.DoesNotExist): # user = None # if user is not None and account_activatio...
35.099174
86
0.658112
from insta.forms import CommentForm, ImageForm, ProfileForm, SignupForm from django.shortcuts import render,redirect # Create your views here. from django.http import HttpResponse from django.contrib.auth import login, authenticate from django.contrib.sites.shortcuts import get_current_site from django.utils.encoding...
0
927
0
0
0
1,831
0
399
450
0d34521a28efb3ba86ab8c34a4cd7d59dda535e8
13,906
py
Python
local_search/intra_route_operators.py
yorak/VeRyPy
0cb7a83279352ecba83117357589c83e576edaa2
[ "MIT" ]
156
2019-11-09T00:40:14.000Z
2022-03-31T10:05:50.000Z
local_search/intra_route_operators.py
yorak/VeRyPy
0cb7a83279352ecba83117357589c83e576edaa2
[ "MIT" ]
13
2020-03-07T10:56:38.000Z
2021-12-16T07:46:28.000Z
local_search/intra_route_operators.py
yorak/VeRyPy
0cb7a83279352ecba83117357589c83e576edaa2
[ "MIT" ]
47
2019-12-16T00:17:11.000Z
2022-03-27T12:47:24.000Z
# -*- coding: utf-8 -*- ############################################################################### """ This file is a part of the VeRyPy classical vehicle routing problem heuristic library and implements intra route (i.e. within one route) local search improvement heuristics such as 2-opt, one-point-move etc. All...
38.09863
83
0.454121
# -*- coding: utf-8 -*- ############################################################################### """ This file is a part of the VeRyPy classical vehicle routing problem heuristic library and implements intra route (i.e. within one route) local search improvement heuristics such as 2-opt, one-point-move etc. All...
0
0
0
0
0
0
0
0
0
a3feae5e18e01c13000d7015f2be22a22b2dc70e
1,232
py
Python
package_name/module_name.py
TobiasRosskopf/TEMPLATE_REPO_Python
01fa58bf7eb834b1e8778c1f5050f40e3bb3073c
[ "MIT" ]
null
null
null
package_name/module_name.py
TobiasRosskopf/TEMPLATE_REPO_Python
01fa58bf7eb834b1e8778c1f5050f40e3bb3073c
[ "MIT" ]
null
null
null
package_name/module_name.py
TobiasRosskopf/TEMPLATE_REPO_Python
01fa58bf7eb834b1e8778c1f5050f40e3bb3073c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3.8 # -*- coding: utf-8 -*- """ **Created:** ??.??.2022 **Modified:** ??.??.2022 **Authors:** [Tobias Rosskopf](mailto:tobirosskopf@gmail.com) <module_name>'s docstring """
20.881356
64
0.525974
#!/usr/bin/env python3.8 # -*- coding: utf-8 -*- """ **Created:** ??.??.2022 **Modified:** ??.??.2022 **Authors:** [Tobias Rosskopf](mailto:tobirosskopf@gmail.com) <module_name>'s docstring """ class ClassName: """ Class for <ClassName> """ def __init__(self, name: str = "") -> None: ...
0
0
0
1,003
0
0
0
0
23
7d1270929a102898672c815d5daca60cc5cf81b7
1,309
py
Python
src/architecture_analysis/calculate_arch_neighborhood.py
mhnnunes/fla_nas_gnn
cf7f5c9143c4e6851eaef29af741ac8872364027
[ "Apache-2.0" ]
3
2021-04-12T08:06:00.000Z
2021-11-25T08:49:22.000Z
src/architecture_analysis/calculate_arch_neighborhood.py
mhnnunes/fla_nas_gnn
cf7f5c9143c4e6851eaef29af741ac8872364027
[ "Apache-2.0" ]
null
null
null
src/architecture_analysis/calculate_arch_neighborhood.py
mhnnunes/fla_nas_gnn
cf7f5c9143c4e6851eaef29af741ac8872364027
[ "Apache-2.0" ]
null
null
null
from scipy.sparse import load_npz from joblib import Parallel from joblib import delayed # Import one-hot encoded architectures macro_one_hot_archs = load_npz('one_hot_encoded_unique_macro_archs.npz') macro_one_hot_archs = macro_one_hot_archs.todense() print('Read archs') # Create neighborhood graph n_nodes = macr...
27.270833
95
0.601222
from scipy.sparse import load_npz from scipy.spatial import distance from joblib import Parallel from joblib import delayed def chunks(lst, n): """ Yield successive n-sized chunks from lst. from: https://stackoverflow.com/questions/312443/how-do-you-split-a-list-into-evenly-sized-chunks """ f...
0
0
0
0
229
214
0
13
68
c312677c9b145af44b4067a0170bfcb56054d6a7
4,839
py
Python
certs/3.5_post_process_remove_5_percentile.py
prchander/lsquic
4b677add01b750461a72642c9730b02efcb1b195
[ "BSD-3-Clause", "MIT" ]
null
null
null
certs/3.5_post_process_remove_5_percentile.py
prchander/lsquic
4b677add01b750461a72642c9730b02efcb1b195
[ "BSD-3-Clause", "MIT" ]
null
null
null
certs/3.5_post_process_remove_5_percentile.py
prchander/lsquic
4b677add01b750461a72642c9730b02efcb1b195
[ "BSD-3-Clause", "MIT" ]
1
2021-03-30T20:49:46.000Z
2021-03-30T20:49:46.000Z
import csv import os import sys # Given a regular expression, list the files that match it, and ask for user input # Given a regular expression, list the directories that match it, and ask for user input # List the files with a regular expression # Change the color of text in the terminal # Leaving the forground o...
26.156757
139
0.659847
import csv import numpy as np import os import re import scipy.stats import sys import time # Given a regular expression, list the files that match it, and ask for user input def selectFile(regex, subdirs = False): files = [] if subdirs: for (dirpath, dirnames, filenames) in os.walk('.'): for file in filenames:...
0
0
0
0
0
2,571
0
-28
198
9da76e1cea28b5c881b7a7dad13e5bf1c05bc48d
3,253
py
Python
modules/reminder_thread.py
Petricpwnz/NyAI
8fca182c45f677cbd1d128f0aa73b3ee61cfced9
[ "MIT" ]
1
2021-01-23T00:13:10.000Z
2021-01-23T00:13:10.000Z
modules/reminder_thread.py
Petricpwnz/NyAI
8fca182c45f677cbd1d128f0aa73b3ee61cfced9
[ "MIT" ]
null
null
null
modules/reminder_thread.py
Petricpwnz/NyAI
8fca182c45f677cbd1d128f0aa73b3ee61cfced9
[ "MIT" ]
null
null
null
# TODO set a limit on reminders per user? also same for offlinemessages
39.192771
135
0.622195
import threading import time from datetime import datetime class StartOverException(Exception): """Raise to restart the reminder thread loop""" pass # TODO set a limit on reminders per user? also same for offlinemessages class ReminderThread(threading.Thread): def __init__(self, bot_object, bot): ...
0
0
0
3,074
0
0
0
-7
111
d9dacfc2e3f4db256e6241bce30c59355dd174c9
5,618
py
Python
rasa_integration_testing/socketio_runner.py
nuecho/rasa-integration-testing
4e5f55634a8effb29011f32667983d96b7c69740
[ "Apache-2.0" ]
2
2020-09-29T13:53:51.000Z
2020-10-24T19:33:27.000Z
rasa_integration_testing/socketio_runner.py
nuecho/rasa-integration-testing
4e5f55634a8effb29011f32667983d96b7c69740
[ "Apache-2.0" ]
22
2020-05-27T17:15:56.000Z
2020-11-27T19:27:59.000Z
rasa_integration_testing/socketio_runner.py
nuecho/rasa-integration-testing
4e5f55634a8effb29011f32667983d96b7c69740
[ "Apache-2.0" ]
1
2021-02-06T03:58:52.000Z
2021-02-06T03:58:52.000Z
import os SESSION_ID_KEY = "session_id" EVENT_BOT_UTTERED = "bot_uttered" EVENT_USER_UTTERED = "user_uttered" ENV_BOT_RESPONSE_TIMEOUT = "BOT_RESPONSE_TIMEOUT" BOT_RESPONSE_TIMEOUT = float(os.environ.get(ENV_BOT_RESPONSE_TIMEOUT, 6.0)) IS_USER_MESSAGE = True IS_BOT_MESSAGE = False
32.853801
85
0.686365
import os from threading import Condition from typing import Any, List, Optional, Tuple from socketio import Client, ClientNamespace from .common.configuration import configure from .comparator import JsonDataComparator from .interaction import Interaction, InteractionLoader from .runner import FailedInteraction, Sce...
0
753
0
3,235
0
873
0
199
270
2aceb23fd02e8275e951cf2060549f774e907a9e
721
py
Python
examples/ts_surrogates.py
wmvanvliet/dyconnmap
15a830a5755ce198a33b245b18927c494c767a60
[ "BSD-3-Clause" ]
42
2020-02-09T02:21:25.000Z
2022-03-29T20:24:29.000Z
examples/ts_surrogates.py
wmvanvliet/dyconnmap
15a830a5755ce198a33b245b18927c494c767a60
[ "BSD-3-Clause" ]
74
2020-01-23T17:50:16.000Z
2022-02-28T04:08:01.000Z
examples/ts_surrogates.py
wmvanvliet/dyconnmap
15a830a5755ce198a33b245b18927c494c767a60
[ "BSD-3-Clause" ]
16
2020-03-04T04:53:00.000Z
2022-03-21T01:49:05.000Z
# -*- coding: utf-8 -*- import numpy as np np.set_printoptions(precision=3, linewidth=256) from dyconnmap.ts import fdr, surrogate_analysis if __name__ == "__main__": rng = np.random.RandomState(0) data = np.load( "/home/makism/Github/dyconnmap/examples/data/eeg_32chans_10secs.npy") ts1 = data[...
26.703704
82
0.628294
# -*- coding: utf-8 -*- import numpy as np np.set_printoptions(precision=3, linewidth=256) from dyconnmap.ts import fdr, surrogate_analysis if __name__ == "__main__": rng = np.random.RandomState(0) data = np.load( "/home/makism/Github/dyconnmap/examples/data/eeg_32chans_10secs.npy") ts1 = data[...
0
0
0
0
0
0
0
0
0
6c0fc595a138d36bf6a83c4ba2f8613292dfb360
576
py
Python
setup.py
ehenry2/xgbatch
476150b89b77f4f35400efcbbd3bb6a0afae4eef
[ "MIT" ]
5
2021-04-21T23:41:10.000Z
2022-03-11T03:58:43.000Z
setup.py
ehenry2/xgbatch
476150b89b77f4f35400efcbbd3bb6a0afae4eef
[ "MIT" ]
1
2021-04-26T23:22:50.000Z
2021-05-14T17:48:27.000Z
setup.py
ehenry2/xgbatch
476150b89b77f4f35400efcbbd3bb6a0afae4eef
[ "MIT" ]
2
2021-08-19T13:40:07.000Z
2021-09-08T09:00:45.000Z
import setuptools setuptools.setup( name="xgbatch", version="0.0.2", author="Eric Henry", description="High Performance Serving for XGBoost", url="https://github.com/ehenry2/xgbatch", packages=["xgbatch"], classifiers=[ "Programming Language :: Python :: 3", "License :: OSI...
23.04
55
0.565972
import setuptools setuptools.setup( name="xgbatch", version="0.0.2", author="Eric Henry", description="High Performance Serving for XGBoost", url="https://github.com/ehenry2/xgbatch", packages=["xgbatch"], classifiers=[ "Programming Language :: Python :: 3", "License :: OSI...
0
0
0
0
0
0
0
0
0
a0f318dc395eb35d33e7b41aad49e33d032dd153
1,443
py
Python
demoslogic/premises/migrations/0002_auto_20161126_1154.py
amstart/demoslogic
059575b502c21f8f27c66a26abee9a42fcb788b7
[ "MIT" ]
null
null
null
demoslogic/premises/migrations/0002_auto_20161126_1154.py
amstart/demoslogic
059575b502c21f8f27c66a26abee9a42fcb788b7
[ "MIT" ]
3
2021-06-08T20:04:58.000Z
2022-03-11T23:26:36.000Z
demoslogic/premises/migrations/0002_auto_20161126_1154.py
amstart/demoslogic
059575b502c21f8f27c66a26abee9a42fcb788b7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.2 on 2016-11-26 10:54 from __future__ import unicode_literals
35.195122
154
0.613306
# -*- coding: utf-8 -*- # Generated by Django 1.10.2 on 2016-11-26 10:54 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('premises', '0001_initial'), ] operations = [ ...
0
0
0
1,231
0
0
0
30
68
7c912919a4189771d14d1e71b863486b960706a1
3,176
py
Python
examples/simple.py
lukevs/web3-flashbots
5e75ddc32a2379d71c7b01be3ccbe5f96167de06
[ "MIT" ]
1
2022-02-04T17:16:12.000Z
2022-02-04T17:16:12.000Z
examples/simple.py
lukevs/web3-flashbots
5e75ddc32a2379d71c7b01be3ccbe5f96167de06
[ "MIT" ]
null
null
null
examples/simple.py
lukevs/web3-flashbots
5e75ddc32a2379d71c7b01be3ccbe5f96167de06
[ "MIT" ]
null
null
null
from eth_account.signers.local import LocalAccount from web3.middleware import construct_sign_and_send_raw_middleware from flashbots import flashbot from flashbots.types import SignTx from eth_account.account import Account from web3 import Web3, HTTPProvider from web3.types import TxParams, Wei import os """ In thi...
29.682243
94
0.724181
from eth_account.signers.local import LocalAccount from web3.middleware import construct_sign_and_send_raw_middleware from flashbots import flashbot from flashbots.types import SignTx from eth_account.account import Account from web3 import Web3, HTTPProvider from web3.types import TxParams, Wei import os """ In thi...
0
0
0
0
0
0
0
0
0
8c5d973f7d9c4dc4175b419802410a93a609ceb9
2,861
py
Python
hsv_tool.py
Forkxz/Running-Robot
b2bb25f15423762bc06a6483f0ee1ecae4e93813
[ "MIT" ]
2
2020-12-30T15:26:10.000Z
2021-04-21T15:37:45.000Z
hsv_tool.py
Forkxz/Running-Robot
b2bb25f15423762bc06a6483f0ee1ecae4e93813
[ "MIT" ]
null
null
null
hsv_tool.py
Forkxz/Running-Robot
b2bb25f15423762bc06a6483f0ee1ecae4e93813
[ "MIT" ]
null
null
null
if __name__ == '__main__': ##: h=Hsv_change() h.inRange_byFilePath("chest/stage.jpg")
37.644737
107
0.54841
import cv2 as cv class Hsv_change: #hsv 调试 def __init__(self): self.i1 = 0 self.i2 = 0 self.i3 = 0 self.i4 = 0 self.i5 = 0 self.i6 = 0 pass def onChange(self,a, b, hsv): if a == 1: self.i1 = b elif a == 2: self...
72
0
0
2,692
0
0
0
-5
44
6aaa23a3d3e3b83112086898cfe3f0fd517c13ee
27,219
py
Python
pycroscopy/analysis/utils/atom_finding_general_gaussian.py
ealopez/pycroscopy
9f7c0543b67eaa0668296295fc5f492360c130a0
[ "MIT" ]
null
null
null
pycroscopy/analysis/utils/atom_finding_general_gaussian.py
ealopez/pycroscopy
9f7c0543b67eaa0668296295fc5f492360c130a0
[ "MIT" ]
null
null
null
pycroscopy/analysis/utils/atom_finding_general_gaussian.py
ealopez/pycroscopy
9f7c0543b67eaa0668296295fc5f492360c130a0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ @author: Ondrej Dyck """ from __future__ import division, print_function, absolute_import, unicode_literals import numpy as np def gauss_2d_residuals(parms_vec, orig_data_mat, x_data, y_data, **kwargs): """ Calculates the residual Parameters ---------- ...
45.289517
120
0.587274
# -*- coding: utf-8 -*- """ @author: Ondrej Dyck """ from __future__ import division, print_function, absolute_import, unicode_literals import numpy as np from scipy.optimize import least_squares import itertools as itt import multiprocessing as mp import time as tm import matplotlib.pyplot as plt from ....
0
1,407
0
21,647
0
792
0
154
259
6a59fecf66d836060c78579d9ecf16f890b01071
1,347
py
Python
tests.py
cyberorgnizm/passgeny
b492b36b0c3073cad322dc28175f60905e1f614a
[ "MIT" ]
null
null
null
tests.py
cyberorgnizm/passgeny
b492b36b0c3073cad322dc28175f60905e1f614a
[ "MIT" ]
null
null
null
tests.py
cyberorgnizm/passgeny
b492b36b0c3073cad322dc28175f60905e1f614a
[ "MIT" ]
null
null
null
import unittest if __name__ == '__main__': unittest.main()
39.617647
103
0.712695
import string import unittest from collections import Counter from main import extract_characters, generate_password class TestPasswordGenerator(unittest.TestCase): def setUp(self): self.length = 10 self.alphabets = 3 self.digits = 7 def test_extract_characters(self): """test...
0
0
0
1,159
0
0
0
35
89
cb2028dc0370b3c796bd4400d29bed6ec69cf172
2,595
py
Python
Tools/idle/eventparse.py
1byte2bytes/cpython
7fbaeb819ca7b20dca048217ff585ec195e999ec
[ "Unlicense", "TCL", "DOC", "AAL", "X11" ]
5
2022-03-26T21:53:36.000Z
2022-03-30T21:47:20.000Z
Tools/idle/eventparse.py
1byte2bytes/cpython
7fbaeb819ca7b20dca048217ff585ec195e999ec
[ "Unlicense", "TCL", "DOC", "AAL", "X11" ]
6
2020-11-18T15:48:14.000Z
2021-05-03T21:20:50.000Z
Tools/idle/eventparse.py
1byte2bytes/cpython
7fbaeb819ca7b20dca048217ff585ec195e999ec
[ "Unlicense", "TCL", "DOC", "AAL", "X11" ]
2
2015-07-16T08:14:13.000Z
2022-03-27T01:55:17.000Z
#! /usr/bin/env python """Parse event definitions out of comments in source files.""" import sys if __name__ == '__main__': sys.exit(main())
27.606383
70
0.463198
#! /usr/bin/env python """Parse event definitions out of comments in source files.""" import re import sys import os import string import getopt import glob import fileinput import pprint def main(): hits = [] sublist = [] args = sys.argv[1:] if not args: args = filter(lambda s: 'A' <= s[0] <...
0
0
0
0
0
2,310
0
-63
201
ff23db65fc85c33f78cd5feeac8a1c90b6b0cfa7
4,229
py
Python
Sensor-Code-2018/Redundant Code/my_motion_colour_notReq.py
Max-Godfrey-2018/RoboCup-2018-Driving-Code
a39dc01f7c1213c8079216d49d376b317efbf5f3
[ "MIT" ]
1
2018-11-27T05:11:04.000Z
2018-11-27T05:11:04.000Z
Sensor-Code-2018/Redundant Code/my_motion_colour_notReq.py
Max-Godfrey-2018/RoboCup-2018-Driving-Code
a39dc01f7c1213c8079216d49d376b317efbf5f3
[ "MIT" ]
null
null
null
Sensor-Code-2018/Redundant Code/my_motion_colour_notReq.py
Max-Godfrey-2018/RoboCup-2018-Driving-Code
a39dc01f7c1213c8079216d49d376b317efbf5f3
[ "MIT" ]
null
null
null
#code based on example found at: #http://www.pyimagesearch.com/2015/09/14/ball-tracking-with-opencv/ # import the necessary packages from collections import deque import numpy as np import argparse import imutils import cv2 import time as t # construct the argument parse and parse the arguments ap = argparse.ArgumentP...
28.768707
67
0.655711
#code based on example found at: #http://www.pyimagesearch.com/2015/09/14/ball-tracking-with-opencv/ # import the necessary packages from collections import deque import numpy as np import argparse import imutils import cv2 import time as t # construct the argument parse and parse the arguments ap = argparse.ArgumentP...
0
0
0
0
0
0
0
0
0
4c07c2d843d2683d0a737250b780360c8e38eb65
5,038
py
Python
registration_utils/register.py
jic-dtool/dtool_lookup_server
fc5ed28504eafb4e5d1f279897eb722f7a929b12
[ "MIT" ]
4
2021-11-03T21:55:21.000Z
2022-02-25T14:22:07.000Z
registration_utils/register.py
jic-dtool/dtool_lookup_server
fc5ed28504eafb4e5d1f279897eb722f7a929b12
[ "MIT" ]
19
2018-08-14T12:37:05.000Z
2022-02-23T21:32:37.000Z
registration_utils/register.py
jic-dtool/dtool_lookup_server
fc5ed28504eafb4e5d1f279897eb722f7a929b12
[ "MIT" ]
3
2020-03-09T13:47:06.000Z
2021-11-19T23:18:47.000Z
import requests import yaml from dtool_lookup_server.utils import (iter_datasets_in_base_uri, generate_dataset_info) def get_projects(fpath): """Return projects dictionary.""" with open(fpath) as fh: projects = yaml.load(fh, Loader=yaml.FullLoader) return projects def get_header(token): """...
30.719512
78
0.679436
import click import requests import yaml from dtool_lookup_server.utils import ( iter_datasets_in_base_uri, generate_dataset_info, ) def get_projects(fpath): """Return projects dictionary.""" with open(fpath) as fh: projects = yaml.load(fh, Loader=yaml.FullLoader) return projects def ge...
0
1,698
0
0
0
0
0
2
160
bec2099680dbaa88d6a1cab072c23f913e9e23fa
707
py
Python
km3pipe/io/tests/test_ch.py
KM3NeT/km3pipe
e27df0ceea02bcb26d128494a4e1d6a55e2f2e54
[ "MIT" ]
1
2021-01-26T01:57:56.000Z
2021-01-26T01:57:56.000Z
km3pipe/io/tests/test_ch.py
KM3NeT/km3pipe
e27df0ceea02bcb26d128494a4e1d6a55e2f2e54
[ "MIT" ]
null
null
null
km3pipe/io/tests/test_ch.py
KM3NeT/km3pipe
e27df0ceea02bcb26d128494a4e1d6a55e2f2e54
[ "MIT" ]
null
null
null
# Filename: test_ch.py # pylint: disable=locally-disabled,C0111,R0904,C0301,C0103,W0212 __author__ = "Tamas Gal" __copyright__ = "Copyright 2018, Tamas Gal and the KM3NeT collaboration." __credits__ = [] __license__ = "MIT" __maintainer__ = "Tamas Gal" __email__ = "tgal@km3net.de" __status__ = "Development"
32.136364
73
0.756719
# Filename: test_ch.py # pylint: disable=locally-disabled,C0111,R0904,C0301,C0103,W0212 from km3pipe.testing import TestCase, patch, Mock from km3pipe.io.ch import CHPump __author__ = "Tamas Gal" __copyright__ = "Copyright 2018, Tamas Gal and the KM3NeT collaboration." __credits__ = [] __license__ = "MIT" __maintainer...
0
258
0
6
0
0
0
39
93
da65ae1903e7531796af350366f1a1c905737326
1,055
py
Python
scripts/main.py
dimadobriy/turtlebot3
b04cd1f7fb2ad7efeac043c22069e347d7cf6359
[ "Apache-2.0" ]
null
null
null
scripts/main.py
dimadobriy/turtlebot3
b04cd1f7fb2ad7efeac043c22069e347d7cf6359
[ "Apache-2.0" ]
null
null
null
scripts/main.py
dimadobriy/turtlebot3
b04cd1f7fb2ad7efeac043c22069e347d7cf6359
[ "Apache-2.0" ]
1
2020-10-14T15:07:01.000Z
2020-10-14T15:07:01.000Z
#!/usr/bin/env python # coding: utf-8 import rospy from traj_generator import TrajectoryGenerator from controller import Controller if __name__ == '__main__': # 1. Create new node rospy.init_node("main_node") rate = rospy.Rate(5) # controller freq in Hz # init our trajectory generator and co...
28.513514
99
0.599052
#!/usr/bin/env python # coding: utf-8 import rospy from traj_generator import TrajectoryGenerator from controller import Controller if __name__ == '__main__': # 1. Create new node rospy.init_node("main_node") rate = rospy.Rate(5) # controller freq in Hz # init our trajectory generator and co...
0
0
0
0
0
0
0
0
0