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
30500ae58b36dab9ac902322155ef133a3c4bfe5
373
py
Python
Loop_Induced_Vertices/lorentz_ggZ.py
ycwu1030/2HDM_FR
599490fd785cb67e3e4ffad1fa7536906ac8bcd5
[ "MIT" ]
1
2019-09-04T01:44:29.000Z
2019-09-04T01:44:29.000Z
Loop_Induced_Vertices/lorentz_ggZ.py
ycwu1030/2HDM_FR
599490fd785cb67e3e4ffad1fa7536906ac8bcd5
[ "MIT" ]
null
null
null
Loop_Induced_Vertices/lorentz_ggZ.py
ycwu1030/2HDM_FR
599490fd785cb67e3e4ffad1fa7536906ac8bcd5
[ "MIT" ]
null
null
null
VVVtop = Lorentz(name = 'VVVtop', spins = [ 3, 3, 3 ], structure = 'FTriZTop(2*P(-1,1)*P(-1,2)) * (Epsilon(1,2,-1,-2)*P(-1,1)*P(-2,2)*P(3,3))') VVVbot = Lorentz(name = 'VVVbot', spins = [ 3, 3, 3 ], structure = 'FTriZBot(2*P(-1,1)*P(-1,2...
31.083333
108
0.402145
VVVtop = Lorentz(name = 'VVVtop', spins = [ 3, 3, 3 ], structure = 'FTriZTop(2*P(-1,1)*P(-1,2)) * (Epsilon(1,2,-1,-2)*P(-1,1)*P(-2,2)*P(3,3))') VVVbot = Lorentz(name = 'VVVbot', spins = [ 3, 3, 3 ], structure = 'FTriZBot(2*P(-1,1)*P(-1,2...
0
0
0
0
0
0
0
0
0
10ff488f24fcfec2914a73fe8cba55da99fb8c61
8,155
py
Python
tests/test_NHL.py
scrambldchannel/SportradarAPIs
e42e128313647d51784b6f1f3aa201b07fca0a08
[ "MIT" ]
33
2018-07-05T17:07:06.000Z
2022-02-05T16:32:19.000Z
tests/test_NHL.py
scrambldchannel/SportradarAPIs
e42e128313647d51784b6f1f3aa201b07fca0a08
[ "MIT" ]
6
2018-11-16T15:53:33.000Z
2021-06-26T23:04:33.000Z
tests/test_NHL.py
scrambldchannel/SportradarAPIs
e42e128313647d51784b6f1f3aa201b07fca0a08
[ "MIT" ]
17
2018-08-08T08:10:49.000Z
2021-10-06T00:25:21.000Z
import os from sportradar import NHL # Import API keys from environment variables api_key_name = "SPORTRADAR_API_KEY_NHL" api_key = os.environ.get(api_key_name, None) assert api_key is not None, "Must declare environment variable: {key_name}".format( key_name=api_key_name) api = NHL.NHL(api_key, format_="json", ti...
43.37766
131
0.674433
import os import unittest from sportradar import NHL # Import API keys from environment variables api_key_name = "SPORTRADAR_API_KEY_NHL" api_key = os.environ.get(api_key_name, None) assert api_key is not None, "Must declare environment variable: {key_name}".format( key_name=api_key_name) api = NHL.NHL(api_key, fo...
0
602
0
7,168
0
0
0
-6
45
2387e278d3aafd92b7dfe4b2ca45de0e1ef2480d
5,111
py
Python
tools/blink_rename_merge_helper/run.py
metux/chromium-deb
3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
tools/blink_rename_merge_helper/run.py
metux/chromium-deb
3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
tools/blink_rename_merge_helper/run.py
metux/chromium-deb
3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # Copyright 2017 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. """Tool to help developers rebase branches across the Blink rename.""" import os import sys def _whereis(name): """Find and return ...
31.549383
80
0.710233
#!/usr/bin/env python # Copyright 2017 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. """Tool to help developers rebase branches across the Blink rename.""" import argparse import json import os import subprocess import s...
0
0
0
2,350
0
1,020
0
-34
205
b435fafce0a59f11f645388807ab94a4c526348c
3,300
py
Python
ai_chickenpoker/python/echo_bot.py
hilkoc/AI_Arena
592be09062a4cf02f2b153e3c2e5afc7ca15d084
[ "MIT" ]
35
2017-05-29T04:25:20.000Z
2021-10-03T22:43:57.000Z
ai_chickenpoker/python/echo_bot.py
hilkoc/AI_Arena
592be09062a4cf02f2b153e3c2e5afc7ca15d084
[ "MIT" ]
null
null
null
ai_chickenpoker/python/echo_bot.py
hilkoc/AI_Arena
592be09062a4cf02f2b153e3c2e5afc7ca15d084
[ "MIT" ]
1
2019-03-05T03:38:17.000Z
2019-03-05T03:38:17.000Z
""" Chicken Poker echo bot. """ import logging logging.basicConfig(filename='echo_bot.log', level=logging.WARN, filemode='w', format='%(levelname)s %(message)s') log = logging.getLogger(__name__) log.info("Starting") # # Networking # def deserialize_round(round_string): """ param: round_string is expected to ...
25.984252
114
0.588485
""" Chicken Poker echo bot. """ import logging logging.basicConfig(filename='echo_bot.log', level=logging.WARN, filemode='w', format='%(levelname)s %(message)s') log = logging.getLogger(__name__) log.info("Starting") # # Networking # import sys def deserialize_round(round_string): """ param: round_string is e...
0
0
0
1,601
0
690
0
-19
228
f77b93c5d335f1a4a405c53278cc536a56724859
2,061
py
Python
source/random_walk.py
xalhs/Random-Walks
106f972e2b9c204039ba4ae0e39ccdec4165e656
[ "MIT" ]
null
null
null
source/random_walk.py
xalhs/Random-Walks
106f972e2b9c204039ba4ae0e39ccdec4165e656
[ "MIT" ]
null
null
null
source/random_walk.py
xalhs/Random-Walks
106f972e2b9c204039ba4ae0e39ccdec4165e656
[ "MIT" ]
null
null
null
import random import math import numpy as np import matplotlib.pyplot as plt from matplotlib import animation tmax = 875 t = 0 x = [0] y = [0] t=0 t_total = 0 dist = 0 #coord = [[x[t],y[t]]] while t < tmax: coord = random.randint(0,1) if coord == 0: direction = random.randint(0,1) dire...
21.030612
81
0.59049
import random import math import numpy as np import matplotlib.pyplot as plt from matplotlib import animation tmax = 875 t = 0 x = [0] y = [0] t=0 t_total = 0 dist = 0 #coord = [[x[t],y[t]]] while t < tmax: coord = random.randint(0,1) if coord == 0: direction = random.randint(0,1) dire...
0
0
0
0
0
803
0
0
46
85f03a24d0a65614f8a9c4cb85b5e316e4f2acd6
1,048
py
Python
api/user_role/set_own_role.py
BernarBerdikul/Auth_sprint_2
9286803f7e073456b2f02f2072072773331b9e5b
[ "BSD-3-Clause" ]
null
null
null
api/user_role/set_own_role.py
BernarBerdikul/Auth_sprint_2
9286803f7e073456b2f02f2072072773331b9e5b
[ "BSD-3-Clause" ]
null
null
null
api/user_role/set_own_role.py
BernarBerdikul/Auth_sprint_2
9286803f7e073456b2f02f2072072773331b9e5b
[ "BSD-3-Clause" ]
null
null
null
from flask_restful import reqparse parser = reqparse.RequestParser() parser.add_argument( "role_id", trim=True, type=str, help="send correct id", required=True ) # TODO: DELETE IT, not for production
30.823529
75
0.694656
import http from flask_jwt_extended import get_jwt_identity, jwt_required from flask_restful import Resource, reqparse from core import config from models import UserRole from utils.decorators import api_response_wrapper from utils.rate_limit import rate_limit parser = reqparse.RequestParser() parser.add_argument( ...
0
515
0
76
0
0
0
94
156
ebfd2a332e25c8c2417af2099741c136ec0e9a4e
152
py
Python
webapi.py
zhulinhai/pyLearn
664f03cad26b540f83e64f278adf60316efb81d9
[ "MIT" ]
null
null
null
webapi.py
zhulinhai/pyLearn
664f03cad26b540f83e64f278adf60316efb81d9
[ "MIT" ]
null
null
null
webapi.py
zhulinhai/pyLearn
664f03cad26b540f83e64f278adf60316efb81d9
[ "MIT" ]
null
null
null
import requests url = 'https://api.github.com/repos/pandas-dev/pandas/issues' resp = requests.get(url) data = resp.json() print(data[0].avatar_url)
15.2
61
0.723684
import requests url = 'https://api.github.com/repos/pandas-dev/pandas/issues' resp = requests.get(url) data = resp.json() print(data[0].avatar_url)
0
0
0
0
0
0
0
0
0
8b3d19de2881cc4f8fb5289b7e96d859fd39def1
942
py
Python
cowsay_app/views.py
JustDeWitt8485/django-cowsay
4c3cf91eb7ba394cd7fd581b3d86c56494acf413
[ "MIT" ]
null
null
null
cowsay_app/views.py
JustDeWitt8485/django-cowsay
4c3cf91eb7ba394cd7fd581b3d86c56494acf413
[ "MIT" ]
null
null
null
cowsay_app/views.py
JustDeWitt8485/django-cowsay
4c3cf91eb7ba394cd7fd581b3d86c56494acf413
[ "MIT" ]
null
null
null
# Create your views here.
26.914286
68
0.617834
import subprocess from django.shortcuts import render from cowsay_app.form import AddMessageForm from cowsay_app.models import Message # Create your views here. def index(request, ): html = 'index.html' if request.method == 'POST': form = AddMessageForm(request.POST) if form.is_valid(): ...
0
0
0
0
0
729
0
47
136
55d14eff6398db53818deab7c18611e64b7586a5
218
py
Python
translation/admin.py
paxenarius/ajiragis-api
414ed05b8218cf116474889a9fb959e98e48ddad
[ "MIT" ]
null
null
null
translation/admin.py
paxenarius/ajiragis-api
414ed05b8218cf116474889a9fb959e98e48ddad
[ "MIT" ]
1
2018-07-21T08:58:10.000Z
2018-07-21T08:58:10.000Z
translation/admin.py
paxenarius/ajiragis-api
414ed05b8218cf116474889a9fb959e98e48ddad
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Translation, Language, Word, Language, Payment admin.site.register(Translation) admin.site.register(Language) admin.site.register(Word) admin.site.register(Payment)
31.142857
66
0.825688
from django.contrib import admin from .models import Translation, Language, Word, Language, Payment admin.site.register(Translation) admin.site.register(Language) admin.site.register(Word) admin.site.register(Payment)
0
0
0
0
0
0
0
0
0
07aca9a7b77fb6b4daa367123f2ce2277b78f4a4
1,523
py
Python
3. Numbers/numbers-python-V2.py
guruawate/PYTHON-CODEBASE
1a8eff9e81a49a2fc3ca99d26588c15a97cbe379
[ "MIT" ]
4
2017-03-29T17:03:22.000Z
2018-10-17T11:50:43.000Z
3. Numbers/numbers-python-V2.py
guruawate/PYTHON-CODEBASE
1a8eff9e81a49a2fc3ca99d26588c15a97cbe379
[ "MIT" ]
null
null
null
3. Numbers/numbers-python-V2.py
guruawate/PYTHON-CODEBASE
1a8eff9e81a49a2fc3ca99d26588c15a97cbe379
[ "MIT" ]
2
2017-09-13T18:17:22.000Z
2018-10-17T11:50:44.000Z
message = """\n\nThere are 4 types of numbers in python-2 & 3 types of numbers in python-3 Now we will see python-2 numbers which are of 4 types, namely: int, long, float & complex. ints & longs are whole numbers and floats are rea...
27.196429
123
0.631648
message = """\n\nThere are 4 types of numbers in python-2 & 3 types of numbers in python-3 Now we will see python-2 numbers which are of 4 types, namely: int, long, float & complex. ints & longs are whole numbers and floats are rea...
0
0
0
0
0
0
0
0
0
35e72bb7def870ccf8993c022721c1f933cfb65f
971
py
Python
OpenScope/FixModel.py
openscope/qgsopenscope
123926cb2e67abc90070da85407fa54e7cbd66eb
[ "MIT" ]
2
2020-01-23T12:09:59.000Z
2021-03-23T18:20:56.000Z
OpenScope/FixModel.py
openscope/qgsopenscope
123926cb2e67abc90070da85407fa54e7cbd66eb
[ "MIT" ]
1
2021-02-25T09:44:01.000Z
2021-04-07T14:39:23.000Z
OpenScope/FixModel.py
openscope/qgsopenscope
123926cb2e67abc90070da85407fa54e7cbd66eb
[ "MIT" ]
null
null
null
"""An opeScope Fix object"""
26.243243
88
0.548919
"""An opeScope Fix object""" import json from .utilities.converters import fromPointXY, toPointXY class FixModel: """An opeScope Fix object""" location = None name = None def __init__(self, name, location): self.location = toPointXY(location) self.name = name @staticmethod d...
0
648
0
202
0
0
0
25
67
30c2dd8de48cfd0967d2d2b4f061fe5c560cc12e
633
py
Python
pkg/protocols/__init__.py
aivazis/qed
d8717ea807e956beb8b1c59e51c45c672bb7d05e
[ "BSD-2-Clause" ]
6
2022-03-07T17:47:28.000Z
2022-03-19T05:16:25.000Z
pkg/protocols/__init__.py
aivazis/qed
d8717ea807e956beb8b1c59e51c45c672bb7d05e
[ "BSD-2-Clause" ]
4
2022-03-17T01:54:42.000Z
2022-03-19T05:17:33.000Z
pkg/protocols/__init__.py
aivazis/qed
d8717ea807e956beb8b1c59e51c45c672bb7d05e
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # michael a.g. avzis <michael.aivazis@para-sim.com> # (c) 1998-2022 all rights reserved # custom properties # export the local wrappers over the flow protocols # datasets and their readers # visualization workflows # and their controllers # end of file
23.444444
57
0.78515
# -*- coding: utf-8 -*- # # michael a.g. aïvázis <michael.aivazis@para-sim.com> # (c) 1998-2022 all rights reserved # custom properties from .properties import selectors # export the local wrappers over the flow protocols from .Producer import Producer as producer from .Specification import Specification as specifi...
4
0
0
0
0
0
0
168
176
427492e28b4fdd182f6ddfab4fe02ea50d20eebd
3,152
py
Python
src/export_to_spotify_playlist.py
PinPinIre/slack-scripts
4a86b949ee37aab821684f596b8230316c32aebe
[ "MIT" ]
null
null
null
src/export_to_spotify_playlist.py
PinPinIre/slack-scripts
4a86b949ee37aab821684f596b8230316c32aebe
[ "MIT" ]
2
2021-02-08T20:17:56.000Z
2021-04-30T20:34:30.000Z
src/export_to_spotify_playlist.py
PinPinIre/slack-scripts
4a86b949ee37aab821684f596b8230316c32aebe
[ "MIT" ]
null
null
null
import re from elasticsearch import Elasticsearch from elasticsearch_dsl import Search from spotify_wrapper import SpotifyWrapper TRACK_REGEX = 'track.' SONG_ID_LENGTH = 22 # TODO:The elasticsearch functions here could be abstracted out into a new file def get_all_elastic_links(index, service_name="Spotify"): ...
31.207921
88
0.725888
import sys import os import json import argparse import re from urlparse import urlparse, parse_qs from datetime import datetime from elasticsearch import Elasticsearch, ElasticsearchException from elasticsearch_dsl import Search from spotify_wrapper import SpotifyWrapper TRACK_REGEX = 'track.' SONG_ID_LENGTH = 22 #...
0
0
0
0
0
693
0
11
155
f3898c00018381c75d7be14ca8f07404b750f6f3
1,755
py
Python
fastNLP/models/cnn_text_classification.py
YanLiqi/fastNLP
a8c45796158a3b8dbc81e22412bd6e4e4b97539a
[ "Apache-2.0" ]
4
2019-01-19T13:58:10.000Z
2019-01-19T15:07:48.000Z
fastNLP/models/cnn_text_classification.py
TTTREE/fastNLP
ef82c1f10000752db32a5fa323668b94bcb940a1
[ "Apache-2.0" ]
1
2018-09-30T13:30:51.000Z
2018-09-30T13:30:51.000Z
fastNLP/models/cnn_text_classification.py
TTTREE/fastNLP
ef82c1f10000752db32a5fa323668b94bcb940a1
[ "Apache-2.0" ]
null
null
null
# python: 3.6 # encoding: utf-8 import torch.nn as nn # import torch.nn.functional as F import fastNLP.modules.encoder as encoder
30.258621
75
0.581766
# python: 3.6 # encoding: utf-8 import torch import torch.nn as nn # import torch.nn.functional as F import fastNLP.modules.encoder as encoder class CNNText(torch.nn.Module): """ Text classification model by character CNN, the implementation of paper 'Yoon Kim. 2014. Convolution Neural Networks for Sent...
0
0
0
1,586
0
0
0
-9
46
ac64b077757bdbefdd1d8a6aca3f26b70d545ea9
932
py
Python
test/selfTest.py
repo-satish/bruteforce
866b2d16f93c2eb121dad9f2a7b13988883bbc7a
[ "Unlicense" ]
1
2016-03-15T14:18:01.000Z
2016-03-15T14:18:01.000Z
test/selfTest.py
repo-satish/bruteforce
866b2d16f93c2eb121dad9f2a7b13988883bbc7a
[ "Unlicense" ]
null
null
null
test/selfTest.py
repo-satish/bruteforce
866b2d16f93c2eb121dad9f2a7b13988883bbc7a
[ "Unlicense" ]
null
null
null
""" PUORPOSE: to check that the brute-force machine with all its components is actually working - i.e. when the algorithms used for padding, key derivation and encryption are known CORRECTLY """
20.26087
74
0.703863
""" PUORPOSE: to check that the brute-force machine with all its components is actually working - i.e. when the algorithms used for padding, key derivation and encryption are known CORRECTLY """ from raw import img from breaker import breaker, init import os import base64 import tempfile def createTestImages(): ...
0
0
0
0
0
544
0
-16
205
7908caa4c581577ad0c130e7ce6fab5638920619
3,685
py
Python
pygimli/viewer/mpl/matrixview.py
JuliusHen/gimli
a5c5779261acfe5a53015c9ee6f7c9ed2dd6c57f
[ "Apache-2.0" ]
224
2015-02-20T21:36:24.000Z
2022-03-30T07:27:43.000Z
pygimli/viewer/mpl/matrixview.py
JuliusHen/gimli
a5c5779261acfe5a53015c9ee6f7c9ed2dd6c57f
[ "Apache-2.0" ]
341
2015-05-21T14:39:51.000Z
2022-03-31T01:54:07.000Z
pygimli/viewer/mpl/matrixview.py
JuliusHen/gimli
a5c5779261acfe5a53015c9ee6f7c9ed2dd6c57f
[ "Apache-2.0" ]
107
2015-01-24T14:40:21.000Z
2022-02-25T12:12:13.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """Functions to draw various pygimli matrices with matplotlib.""" import numpy as np import pygimli as pg def drawSparseMatrix(ax, mat, **kwargs): """Draw a view of a matrix into the axes. Parameters ---------- ax : mpl axis instance, optional A...
28.789063
110
0.538128
#!/usr/bin/env python # -*- coding: utf-8 -*- """Functions to draw various pygimli matrices with matplotlib.""" import numpy as np import matplotlib.pyplot as plt import pygimli as pg def drawSparseMatrix(ax, mat, **kwargs): """Draw a view of a matrix into the axes. Parameters ---------- ax : mpl a...
0
0
0
0
0
0
0
10
22
e9e6eb2656bb47805079103416164d651126377a
4,287
py
Python
LOBDeepPP/LOBDeepPP_model/__LOB_models_features.py
mariussterling/LOBDeepPP_code
010782f8db9a745940753f49d953361c32ee1190
[ "MIT" ]
1
2021-07-09T08:40:58.000Z
2021-07-09T08:40:58.000Z
LOBDeepPP/LOBDeepPP_model/__LOB_models_features.py
mariussterling/LOBDeepPP_code
010782f8db9a745940753f49d953361c32ee1190
[ "MIT" ]
null
null
null
LOBDeepPP/LOBDeepPP_model/__LOB_models_features.py
mariussterling/LOBDeepPP_code
010782f8db9a745940753f49d953361c32ee1190
[ "MIT" ]
null
null
null
bn_axis = -1
38.276786
78
0.594122
from keras import layers, models from .__inception import inception2D bn_axis = -1 def fe0a(input, params, interpretable, L): if interpretable: out = input else: inp = layers.InputLayer(input_shape=input.get_shape().as_list()[1:], name='inp0') out = inp...
0
0
0
0
0
4,155
0
26
90
34b147880807934392a4bdd919ed1af2d4097a0c
5,135
py
Python
tests/test_cursor.py
whalebot-helmsman/pykt-64
ee5e0413cd850876d3abc438480fffea4f7b7517
[ "BSD-3-Clause" ]
null
null
null
tests/test_cursor.py
whalebot-helmsman/pykt-64
ee5e0413cd850876d3abc438480fffea4f7b7517
[ "BSD-3-Clause" ]
null
null
null
tests/test_cursor.py
whalebot-helmsman/pykt-64
ee5e0413cd850876d3abc438480fffea4f7b7517
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- d = dict(A="B", C="D", E="F", G="H") d2 = { "": "ABC", "": "2", "": "2", } """ @nottest @with_setup(setup = clear, teardown = stop_db) def test_cursor_jump_back(): db = KyotoTycoon() db = db.open() db.set_bulk(d) c = db.cursor() ret = c.jump() k1, v1 = ...
20.376984
49
0.534372
# -*- coding: utf-8 -*- from setup_teardown import clear, stop_db from nose.tools import * from pykt import KyotoTycoon, KTException, Cursor import time d = dict(A="B", C="D", E="F", G="H") d2 = { "あいうえお": "ABC", "かきくけこ": "てすと2", "さしすせそ": "てすと2", } @nottest @raises(IOError) def test_cursor_err(): ...
93
4,166
0
0
0
0
0
41
479
f62eab45f79915cc14c7c0def321d3e6ec0d6c54
3,667
py
Python
integrations/tensorflow/e2e/conv_transpose_test.py
metagraph-dev/iree
3d6acd1c47072fdf4cfab842807f70b1c2d34396
[ "Apache-2.0" ]
2
2021-10-03T15:58:09.000Z
2021-11-17T10:34:35.000Z
integrations/tensorflow/e2e/conv_transpose_test.py
metagraph-dev/iree
3d6acd1c47072fdf4cfab842807f70b1c2d34396
[ "Apache-2.0" ]
null
null
null
integrations/tensorflow/e2e/conv_transpose_test.py
metagraph-dev/iree
3d6acd1c47072fdf4cfab842807f70b1c2d34396
[ "Apache-2.0" ]
null
null
null
# Lint as: python3 # Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
32.451327
74
0.595037
# Lint as: python3 # Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
0
1,496
0
1,126
0
100
0
48
232
0e8527be56b7c736e3b98cb600e706392c084af0
519
py
Python
sender.py
JimmyLiang-lzm/TimeForSchool
e38e04865e6c154b2f655681e93aa1bb85fc5e87
[ "BSD-3-Clause" ]
3
2020-04-08T04:05:50.000Z
2020-04-09T02:09:39.000Z
sender.py
JimmyLiang-lzm/TimeForSchool
e38e04865e6c154b2f655681e93aa1bb85fc5e87
[ "BSD-3-Clause" ]
null
null
null
sender.py
JimmyLiang-lzm/TimeForSchool
e38e04865e6c154b2f655681e93aa1bb85fc5e87
[ "BSD-3-Clause" ]
null
null
null
# -*-coding:utf-8 -*- #__Author__:"JimmyLiang" #__Date__: 2020/4/7
32.4375
93
0.689788
# -*-coding:utf-8 -*- #__Author__:"JimmyLiang" #__Date__: 2020/4/7 from twilio.rest import Client import re def SendMessage(phonenum,messages): #此为短信发送设置,请登录twilio获取XXXX与0000部分 res = re.match(r'^1[35789]\d{9}$',phonenum) if res: account_sid = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' auth_token = ...
51
0
0
0
0
371
0
-3
68
18a873aa2beb7251322efbd6f08ddc0360ff07dc
524
py
Python
build.py
dendisuhubdy/tgbot-cpp
89ec4e3d1186e1a250adb18cb6a8cce7c4756bf6
[ "MIT" ]
1
2020-07-03T20:09:30.000Z
2020-07-03T20:09:30.000Z
build.py
dendisuhubdy/tgbot-cpp
89ec4e3d1186e1a250adb18cb6a8cce7c4756bf6
[ "MIT" ]
null
null
null
build.py
dendisuhubdy/tgbot-cpp
89ec4e3d1186e1a250adb18cb6a8cce7c4756bf6
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from cpt.packager import ConanMultiPackager if __name__ == "__main__": builder = ConanMultiPackager( username="reo7sp", login_username="reo7sp", upload="https://api.bintray.com/conan/reo7sp/tgbot-cpp", channel="ci", stable_bran...
29.111111
93
0.65458
#!/usr/bin/env python # -*- coding: utf-8 -*- from cpt.packager import ConanMultiPackager if __name__ == "__main__": builder = ConanMultiPackager( username="reo7sp", login_username="reo7sp", upload="https://api.bintray.com/conan/reo7sp/tgbot-cpp", channel="ci", stable_bran...
0
0
0
0
0
0
0
0
0
ae6cdb75673eee70553b1036a90e74e193c2c5f3
4,896
py
Python
tests/strategies/literals.py
skrat/martinez
86db48324cb50ecb52be8ab2e4278a6d5cdd562b
[ "MIT" ]
7
2020-05-07T08:13:44.000Z
2021-12-17T07:33:51.000Z
tests/strategies/literals.py
skrat/martinez
86db48324cb50ecb52be8ab2e4278a6d5cdd562b
[ "MIT" ]
17
2019-11-29T23:17:26.000Z
2020-12-20T15:47:17.000Z
tests/strategies/literals.py
skrat/martinez
86db48324cb50ecb52be8ab2e4278a6d5cdd562b
[ "MIT" ]
1
2020-12-17T22:44:21.000Z
2020-12-17T22:44:21.000Z
import sys from decimal import Decimal from fractions import Fraction from hypothesis import strategies MAX_DIGITS_COUNT = sys.float_info.dig booleans = strategies.booleans() scalars_strategies_factories = {Decimal: to_decimals, float: to_floats, ...
40.131148
79
0.618464
import sys from decimal import Decimal from fractions import Fraction from functools import partial from typing import (Optional, SupportsFloat) from hypothesis import strategies from martinez.hints import Scalar from tests.utils import (MAX_VALUE, MIN_VALUE, ...
0
0
0
0
0
3,418
0
148
227
5942bedf735f04bd1f260b26548f7ad0b5927012
898
py
Python
tests/mock/gpio_checks_isr.py
jontrulson/mraa
d7ae17171bd733291aca70f910a0c2618fa4fe1a
[ "MIT" ]
1,167
2015-01-01T08:59:59.000Z
2019-12-16T03:23:42.000Z
tests/mock/gpio_checks_isr.py
jontrulson/mraa
d7ae17171bd733291aca70f910a0c2618fa4fe1a
[ "MIT" ]
889
2015-01-02T11:44:45.000Z
2019-12-09T09:28:57.000Z
tests/mock/gpio_checks_isr.py
jontrulson/mraa
d7ae17171bd733291aca70f910a0c2618fa4fe1a
[ "MIT" ]
634
2015-01-01T03:01:05.000Z
2019-12-17T04:01:39.000Z
#!/usr/bin/env python # Author: Alex Tereschenko <alext.mkrs@gmail.com> # Copyright (c) 2016 Alex Tereschenko <alext.mkrs@gmail.com> # # SPDX-License-Identifier: MIT import unittest as u MRAA_TEST_PIN = 0 if __name__ == '__main__': u.main()
24.944444
110
0.702673
#!/usr/bin/env python # Author: Alex Tereschenko <alext.mkrs@gmail.com> # Copyright (c) 2016 Alex Tereschenko <alext.mkrs@gmail.com> # # SPDX-License-Identifier: MIT import mraa as m import unittest as u MRAA_TEST_PIN = 0 def test_isr(): print("In the ISR") class GpioChecksIsr(u.TestCase): def setUp(self): ...
0
0
0
570
0
18
0
-5
69
89f0640de4fd375a5253a53749e440da70ac2ede
55,096
py
Python
legged_gym/envs/pat/pat.py
DARoSLab/legged_gym_pat
b258408e2b5ed243e9099dfd25be7a2733144527
[ "BSD-3-Clause" ]
null
null
null
legged_gym/envs/pat/pat.py
DARoSLab/legged_gym_pat
b258408e2b5ed243e9099dfd25be7a2733144527
[ "BSD-3-Clause" ]
null
null
null
legged_gym/envs/pat/pat.py
DARoSLab/legged_gym_pat
b258408e2b5ed243e9099dfd25be7a2733144527
[ "BSD-3-Clause" ]
1
2021-12-26T02:56:34.000Z
2021-12-26T02:56:34.000Z
# SPDX-FileCopyrightText: Copyright (c) 2021 NVIDIA CORPORATION & AFFILIATES. All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source...
52.472381
175
0.656
# SPDX-FileCopyrightText: Copyright (c) 2021 NVIDIA CORPORATION & AFFILIATES. All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source...
0
0
0
49,376
0
3,549
0
110
400
ce74d60f5f5a107f9ee5a1f4228678a7315f7264
855
py
Python
contrib/logfaker/main.py
repejota/misto
409486a35d05c0e5c63b081f17e40c145d5429df
[ "Apache-2.0" ]
1
2018-02-03T13:10:36.000Z
2018-02-03T13:10:36.000Z
contrib/logfaker/main.py
repejota/misto
409486a35d05c0e5c63b081f17e40c145d5429df
[ "Apache-2.0" ]
null
null
null
contrib/logfaker/main.py
repejota/misto
409486a35d05c0e5c63b081f17e40c145d5429df
[ "Apache-2.0" ]
null
null
null
if __name__ == "__main__": main()
22.5
72
0.623392
import sys import time import random from faker import Faker def generate_fakelog(): fake = Faker() # param nb_words - around how many words the sentence should contain logstring = fake.sentence(nb_words=12) return logstring def log_stderr(logstring): sys.stderr.write("{}{}".format(logstring, "\n...
6
0
0
0
0
636
0
-27
204
b800911eb46b47c4d99e9fdf9a6ac0b59ae659d7
1,913
py
Python
035_search_insert_position.py
Sanster/LeetCode
5a0c448928b216b49c127c4542ae3cd74c797782
[ "MIT" ]
2
2018-10-13T15:12:55.000Z
2020-06-07T09:35:40.000Z
035_search_insert_position.py
Sanster/PyLeeCode
5a0c448928b216b49c127c4542ae3cd74c797782
[ "MIT" ]
null
null
null
035_search_insert_position.py
Sanster/PyLeeCode
5a0c448928b216b49c127c4542ae3cd74c797782
[ "MIT" ]
null
null
null
if __name__ == "__main__": s = Solution() assert s.searchInsert([1, 3, 5, 6], 7) == 4 assert s.searchInsert([1, 3, 5, 6], 5) == 2 assert s.searchInsert([1, 3, 5, 6], 2) == 1 assert s.searchInsert([1, 3, 5, 6], 0) == 0 assert s.searchInsert([1, 2, 6, 8], 4) == 2 assert s.searchInsert2([1,...
26.943662
65
0.472556
from typing import List class Solution: def searchInsert(self, nums: List[int], target: int) -> int: """ Time O(n) """ if target < nums[0]: return 0 for i, num in enumerate(nums): if num == target: return i if i < len(nu...
0
0
0
1,046
0
0
0
2
45
132e190671940d4e2665081c441119af79b77322
42,905
py
Python
Support/Python/unitybuild/main.py
panjea/open-brush
8092ec49890b9090db9d92d7d1061279e621a28d
[ "Apache-2.0" ]
321
2021-01-27T21:56:45.000Z
2022-03-18T01:51:25.000Z
Support/Python/unitybuild/main.py
panjea/open-brush
8092ec49890b9090db9d92d7d1061279e621a28d
[ "Apache-2.0" ]
154
2021-01-28T11:21:59.000Z
2022-03-29T17:20:40.000Z
Support/Python/unitybuild/main.py
panjea/open-brush
8092ec49890b9090db9d92d7d1061279e621a28d
[ "Apache-2.0" ]
76
2021-01-27T22:43:33.000Z
2022-03-08T06:21:18.000Z
# Copyright 2020 The Tilt Brush Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to ...
38.137778
219
0.586202
# Copyright 2020 The Tilt Brush Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to ...
0
0
0
2,390
7,313
13,947
0
66
820
f945e3e666096b8e477c7c8c157203755f0c6a75
8,487
py
Python
build/lib/NMisS/spectral.py
JoshJson/nummethod
e9380f873a029205e2f843d4629e363a8f2f2f92
[ "MIT" ]
null
null
null
build/lib/NMisS/spectral.py
JoshJson/nummethod
e9380f873a029205e2f843d4629e363a8f2f2f92
[ "MIT" ]
null
null
null
build/lib/NMisS/spectral.py
JoshJson/nummethod
e9380f873a029205e2f843d4629e363a8f2f2f92
[ "MIT" ]
null
null
null
# import pip try: __import__('matplotlib') except ImportError: pip.main([ 'install', 'matplotlib' ]) try: __import__('pandas') except ImportError: pip.main([ 'install', 'pandas' ]) try: __import__('numpy') except ImportError: pip.main([ 'install', 'numpy' ]) try: __import__('scipy') ex...
33.023346
136
0.635207
# Импорты import pip try: __import__('matplotlib') except ImportError: pip.main([ 'install', 'matplotlib' ]) try: __import__('pandas') except ImportError: pip.main([ 'install', 'pandas' ]) try: __import__('numpy') except ImportError: pip.main([ 'install', 'numpy' ]) try: __import__('sci...
3,834
0
0
0
0
441
0
18
156
50a6002ad0d1602336d28f0eed8dd9eef7e1a3e4
4,417
py
Python
app/auth/views.py
aacsspkt/autodealerappliation
c7ab3ae8e57e91c797129e87a13bd00d41bc4753
[ "MIT" ]
null
null
null
app/auth/views.py
aacsspkt/autodealerappliation
c7ab3ae8e57e91c797129e87a13bd00d41bc4753
[ "MIT" ]
null
null
null
app/auth/views.py
aacsspkt/autodealerappliation
c7ab3ae8e57e91c797129e87a13bd00d41bc4753
[ "MIT" ]
null
null
null
# class AccountPasswordChangeView(PasswordChangeView): # template_name = "/account/password_reset_confirm.html" # class AccountPasswordChangeDoneView(PasswordChangeDoneView): # template_name = "/account/password_reset_confirm.html" # class VerifyTokenView(TemplateView): # template_name = "ac...
31.55
102
0.719266
from django.conf import settings from django.contrib.auth import authenticate, login from django.urls.base import reverse, reverse_lazy from django.views.generic import FormView from django.contrib.auth.decorators import login_required from django.utils.decorators import method_decorator from django.views.generic impor...
0
863
0
2,190
0
0
0
480
449
7d9bf7c4cb9152253f2a24165829f6da996638ff
5,993
bzl
Python
rules/providers.bzl
tjarvstrand/rules_scala
ff423d8bdd0e5383f8f2c048ffd7704bb51a91bf
[ "Apache-2.0" ]
53
2019-01-07T23:15:32.000Z
2021-09-24T00:27:40.000Z
rules/providers.bzl
tjarvstrand/rules_scala
ff423d8bdd0e5383f8f2c048ffd7704bb51a91bf
[ "Apache-2.0" ]
101
2019-01-05T04:52:40.000Z
2021-01-29T16:48:58.000Z
rules/providers.bzl
tjarvstrand/rules_scala
ff423d8bdd0e5383f8f2c048ffd7704bb51a91bf
[ "Apache-2.0" ]
24
2019-01-23T07:54:28.000Z
2022-02-10T19:42:07.000Z
load( "//rules/common:private/utils.bzl", _collect = "collect", _collect_optionally = "collect_optionally", ) ScalaConfiguration = provider( doc = "Scala compile-time and runtime configuration", fields = { "version": "The Scala full version.", "compiler_classpath": "The compiler cla...
29.668317
107
0.627399
load( "//rules/common:private/utils.bzl", _collect = "collect", _collect_optionally = "collect_optionally", ) ScalaConfiguration = provider( doc = "Scala compile-time and runtime configuration", fields = { "version": "The Scala full version.", "compiler_classpath": "The compiler cla...
0
0
0
0
0
1,572
0
0
92
45b3e03f2eb6b546822d27fe4f031e25397a4f4f
818
py
Python
Python Snippets with Documentation/05 Data Structures/08 Lambda Functions.py
AhmedRaja1/Python-Beginner-s-Starter-Kit
285cfbeb7207e6531954f21cae3a062f977ee5a0
[ "MIT" ]
1
2021-09-27T16:47:25.000Z
2021-09-27T16:47:25.000Z
Python Snippets with Documentation/05 Data Structures/08 Lambda Functions.py
AhmedRaja1/Python-Beginner-s-Starter-Kit
285cfbeb7207e6531954f21cae3a062f977ee5a0
[ "MIT" ]
null
null
null
Python Snippets with Documentation/05 Data Structures/08 Lambda Functions.py
AhmedRaja1/Python-Beginner-s-Starter-Kit
285cfbeb7207e6531954f21cae3a062f977ee5a0
[ "MIT" ]
1
2021-09-27T16:47:33.000Z
2021-09-27T16:47:33.000Z
# 08 Lambda Functions # List of complex objects, like a list of tuples, example a list of orders with product name and price # in situations like this we need to define a function to sort the list, the above methos don't work items = [ ("Product1", 15), ("Product2", 50), ("Product3", 5) ] print(items) # ...
34.083333
157
0.733496
# 08 Lambda Functions # List of complex objects, like a list of tuples, example a list of orders with product name and price # in situations like this we need to define a function to sort the list, the above methos don't work items = [ ("Product1", 15), ("Product2", 50), ("Product3", 5) ] print(items) # ...
0
0
0
0
0
0
0
0
0
ed7eea7563229f7e7807cec0d731f50dcda1a54a
2,109
py
Python
examples/metapath2vec.py
beneisner/pytorch_geometric
53d44a96bd2de2753b1ab1d7153c026c92606a81
[ "MIT" ]
1
2022-02-17T09:40:17.000Z
2022-02-17T09:40:17.000Z
examples/metapath2vec.py
beneisner/pytorch_geometric
53d44a96bd2de2753b1ab1d7153c026c92606a81
[ "MIT" ]
null
null
null
examples/metapath2vec.py
beneisner/pytorch_geometric
53d44a96bd2de2753b1ab1d7153c026c92606a81
[ "MIT" ]
1
2021-08-25T08:06:57.000Z
2021-08-25T08:06:57.000Z
# Reaches around 91.8% Micro-F1 after 5 epochs. import os.path as osp import torch from torch_geometric.datasets import AMiner from torch_geometric.nn import MetaPath2Vec path = osp.join(osp.dirname(osp.realpath(__file__)), '..', 'data', 'AMiner') dataset = AMiner(path) data = dataset[0] metapath = [ ('author',...
29.704225
79
0.598388
# Reaches around 91.8% Micro-F1 after 5 epochs. import os.path as osp import torch from torch_geometric.datasets import AMiner from torch_geometric.nn import MetaPath2Vec path = osp.join(osp.dirname(osp.realpath(__file__)), '..', 'data', 'AMiner') dataset = AMiner(path) data = dataset[0] metapath = [ ('author',...
0
389
0
0
0
664
0
0
46
8a435781b636c786a2bdfa4300b811f927fd7383
298
py
Python
top/api/rest/TbkContentEffectGetRequest.py
fengjinqi/python-taobao-sdk
abe829af75e69bd0f76003737fcf140595c86ac2
[ "MIT" ]
12
2019-10-24T01:36:03.000Z
2021-08-10T10:52:03.000Z
top/api/rest/TbkContentEffectGetRequest.py
fengjinqi/python-taobao-sdk
abe829af75e69bd0f76003737fcf140595c86ac2
[ "MIT" ]
2
2020-10-12T07:12:48.000Z
2021-06-02T03:15:47.000Z
top/api/rest/TbkContentEffectGetRequest.py
fengjinqi/python-taobao-sdk
abe829af75e69bd0f76003737fcf140595c86ac2
[ "MIT" ]
6
2019-10-24T01:36:37.000Z
2021-04-06T17:21:59.000Z
''' Created by auto_sdk on 2019.07.04 '''
24.833333
55
0.751678
''' Created by auto_sdk on 2019.07.04 ''' from top.api.base import RestApi class TbkContentEffectGetRequest(RestApi): def __init__(self,domain='gw.api.taobao.com',port=80): RestApi.__init__(self,domain, port) self.option = None def getapiname(self): return 'taobao.tbk.content.effect.get'
0
0
0
201
0
0
0
11
44
7583fbce2a0ad16c92032106b7f236dbf57ab848
11,536
py
Python
fpga/myhdl/sampler.py
wingel/sds7102
77d85533d2ddfd26a0fb45f3ceff4cf8e6ff447a
[ "MIT" ]
47
2016-07-16T20:03:19.000Z
2021-12-21T03:35:41.000Z
fpga/myhdl/sampler.py
wingel/sds7102
77d85533d2ddfd26a0fb45f3ceff4cf8e6ff447a
[ "MIT" ]
null
null
null
fpga/myhdl/sampler.py
wingel/sds7102
77d85533d2ddfd26a0fb45f3ceff4cf8e6ff447a
[ "MIT" ]
15
2016-07-29T08:10:11.000Z
2020-11-28T15:49:55.000Z
#! /usr/bin/python from myhdl import Signal, ConcatSignal, intbv, always, always_seq, always_comb, instances from fifo.async import AsyncFifo from fifo.dummy import DummyFifo, DummyReadFifo from fifo.interleaver import FifoInterleaver from wb import WbSlave # This one could actually be split into two parts, one part...
32.96
89
0.499133
#! /usr/bin/python from myhdl import Signal, ConcatSignal, intbv, always, always_seq, always_comb, instances from fifo.async import AsyncFifo from fifo.dummy import DummyFifo, DummyReadFifo from fifo.interleaver import FifoInterleaver from wb import WbSlave class Sampler(WbSlave): def __init__(self, addr_depth, ...
0
4,266
0
6,559
0
32
0
0
136
573aa957045deedd4ff6531f2567358a98d435f1
2,557
py
Python
algorithms/sorting/time_complexities.py
greglan/python_scripts
f2e98ed3fd975d79b0a6b569b65c850a7f4f3ab3
[ "MIT" ]
null
null
null
algorithms/sorting/time_complexities.py
greglan/python_scripts
f2e98ed3fd975d79b0a6b569b65c850a7f4f3ab3
[ "MIT" ]
null
null
null
algorithms/sorting/time_complexities.py
greglan/python_scripts
f2e98ed3fd975d79b0a6b569b65c850a7f4f3ab3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # !/usr/bin/env python from algorithms.sorting.merge_sort import merge_sort from algorithms.sorting.utils import randomize from algorithms.sorting.bubble_sort import bubble_sort from algorithms.sorting.selection_sort import selection_sort from algorithms.sorting.insertion_sort import insertion_...
27.202128
60
0.684787
# -*- coding: utf-8 -*- # !/usr/bin/env python import matplotlib.pyplot as plt from algorithms.sorting.merge_sort import merge_sort from algorithms.sorting.utils import randomize from algorithms.sorting.bubble_sort import bubble_sort from algorithms.sorting.selection_sort import selection_sort from algorithms.sorting...
0
0
0
0
0
873
0
10
92
84aa384ee2e57b4d6147f8b0b3b5f1c9ad8ba761
36,595
py
Python
tests/unit/state_machines/bulkop/resource_system.py
tessia-project/tessia
b9ded8dc7f0b9a7a0ea00d95b5ccc4af4d2e7540
[ "Apache-2.0" ]
5
2020-06-04T10:20:33.000Z
2020-10-26T15:09:19.000Z
tests/unit/state_machines/bulkop/resource_system.py
tessia-project/tessia
b9ded8dc7f0b9a7a0ea00d95b5ccc4af4d2e7540
[ "Apache-2.0" ]
null
null
null
tests/unit/state_machines/bulkop/resource_system.py
tessia-project/tessia
b9ded8dc7f0b9a7a0ea00d95b5ccc4af4d2e7540
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 IBM Corp. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, sof...
37.687951
79
0.54614
# Copyright 2019 IBM Corp. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, sof...
0
776
0
34,627
0
0
0
65
222
264159dcd39a2f2756c2edb6be616e6122c2b9c5
2,907
py
Python
core/imperator.py
MyerFire/Myaer
9de3838573bdd6718ec27660ea4cc2c958b79423
[ "MIT" ]
3
2020-05-13T15:51:39.000Z
2020-07-13T06:37:36.000Z
core/imperator.py
myerfire/Myaer
dc96302a398e08409e2ad1176109f8e502949b5e
[ "MIT" ]
2
2021-03-04T14:25:03.000Z
2021-03-04T19:19:58.000Z
core/imperator.py
myerfire/Myaer
dc96302a398e08409e2ad1176109f8e502949b5e
[ "MIT" ]
4
2020-05-22T22:49:05.000Z
2021-03-11T15:33:19.000Z
""" MIT License Copyright (c) 2020 Myer Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, ...
40.943662
116
0.662883
""" MIT License Copyright (c) 2020 Myer Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, ...
0
0
1,293
379
0
0
0
16
121
59318e0ffe655eba5798399e05174dad6f234294
9,623
py
Python
util/mean_ap.py
Treiblesschorle/Mask_RCNN
63e1a112d3f60d8c7cebc6151e5c50bab497198e
[ "MIT" ]
null
null
null
util/mean_ap.py
Treiblesschorle/Mask_RCNN
63e1a112d3f60d8c7cebc6151e5c50bab497198e
[ "MIT" ]
null
null
null
util/mean_ap.py
Treiblesschorle/Mask_RCNN
63e1a112d3f60d8c7cebc6151e5c50bab497198e
[ "MIT" ]
null
null
null
"""Utilities for computing the Average Precision (AP) and mean Average Precision (mAP). TODO improve naming of functions TODO finish implementation TODO document every function TODO publish in own package """ from operator import itemgetter import numpy as np from scipy.ndimage import find_objects # ===============...
36.041199
99
0.60584
"""Utilities for computing the Average Precision (AP) and mean Average Precision (mAP). TODO improve naming of functions TODO finish implementation TODO document every function TODO publish in own package """ from operator import itemgetter import numpy as np from scipy.ndimage import find_objects # ===============...
0
0
0
0
0
330
0
0
50
38c2767363248bcdfdf69159abadfe1a28c23fa0
325
py
Python
polyaxon/polyaxon/config_settings/integrations/hipchat_webhooks.py
elyase/polyaxon
1c19f059a010a6889e2b7ea340715b2bcfa382a0
[ "MIT" ]
null
null
null
polyaxon/polyaxon/config_settings/integrations/hipchat_webhooks.py
elyase/polyaxon
1c19f059a010a6889e2b7ea340715b2bcfa382a0
[ "MIT" ]
null
null
null
polyaxon/polyaxon/config_settings/integrations/hipchat_webhooks.py
elyase/polyaxon
1c19f059a010a6889e2b7ea340715b2bcfa382a0
[ "MIT" ]
null
null
null
from polyaxon.config_manager import config INTEGRATIONS_HIPCHAT_WEBHOOKS = config.get_dict('POLYAXON_INTEGRATIONS_HIPCHAT_WEBHOOKS', is_list=True, is_optional=True, is_local=T...
46.428571
89
0.483077
from polyaxon.config_manager import config INTEGRATIONS_HIPCHAT_WEBHOOKS = config.get_dict('POLYAXON_INTEGRATIONS_HIPCHAT_WEBHOOKS', is_list=True, is_optional=True, is_local=T...
0
0
0
0
0
0
0
0
0
beb3423d90b0d8689cb7cdc3066f9e07f2435834
1,020
py
Python
plugins/zen.py
llimllib/pyphage
6c546955d6dc8a0fa2bf480b2a1dfab975155509
[ "WTFPL" ]
4
2015-11-05T08:56:39.000Z
2017-06-19T15:12:04.000Z
plugins/zen.py
llimllib/pyphage
6c546955d6dc8a0fa2bf480b2a1dfab975155509
[ "WTFPL" ]
null
null
null
plugins/zen.py
llimllib/pyphage
6c546955d6dc8a0fa2bf480b2a1dfab975155509
[ "WTFPL" ]
null
null
null
"""/zen:"""
145.714286
917
0.765686
"""/zen:""" from chatbot import send def on_message(message): if message[u"message"] == u"/zen": send(message['topic']['id'], u"The Zen of Python, by Tim Peters\n\nBeautiful is better than ugly.\nExplicit is better than implicit.\nSimple is better than complex.\nComplex is better than complicated.\nFlat is...
0
0
0
0
0
960
0
3
45
d11aba81d332f7fa297dcc0d01c6832dcc202308
2,044
py
Python
videoclub/migrations/0001_initial.py
lhbelfanti/django-crud
68d29c388b9697787894270168c8e126bf5c2eca
[ "MIT" ]
null
null
null
videoclub/migrations/0001_initial.py
lhbelfanti/django-crud
68d29c388b9697787894270168c8e126bf5c2eca
[ "MIT" ]
null
null
null
videoclub/migrations/0001_initial.py
lhbelfanti/django-crud
68d29c388b9697787894270168c8e126bf5c2eca
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.12 on 2018-04-10 02:36 from __future__ import unicode_literals
37.851852
128
0.569472
# -*- coding: utf-8 -*- # Generated by Django 1.11.12 on 2018-04-10 02:36 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.Cre...
0
0
0
1,831
0
0
0
30
68
2a68ed5870648ffb60de10d6e2449ce58303384b
3,788
py
Python
final_project_group3/src/spawn_marker_on_robot.py
njnovak/RoboticsFinalProject
25cec640e1ee0e0803be6fd054e9758bd4f45c2f
[ "MIT" ]
null
null
null
final_project_group3/src/spawn_marker_on_robot.py
njnovak/RoboticsFinalProject
25cec640e1ee0e0803be6fd054e9758bd4f45c2f
[ "MIT" ]
null
null
null
final_project_group3/src/spawn_marker_on_robot.py
njnovak/RoboticsFinalProject
25cec640e1ee0e0803be6fd054e9758bd4f45c2f
[ "MIT" ]
null
null
null
#! /usr/bin/env python2.7 import time import rospy from math import pi from std_srvs.srv import Empty from gazebo_ros_link_attacher.srv import Attach from gazebo_msgs.srv import SpawnModel, SpawnModelRequest from gazebo_msgs.msg import ModelStates from geometry_msgs.msg import Quaternion from tf.transformations impor...
35.074074
96
0.713569
#! /usr/bin/env python2.7 import time import rospy from math import pi from std_srvs.srv import Empty from gazebo_ros_link_attacher.srv import Attach from gazebo_msgs.srv import SpawnModel, SpawnModelRequest from gazebo_msgs.msg import ModelStates from geometry_msgs.msg import Quaternion from tf.transformations impor...
0
0
0
0
0
0
0
0
0
965824a252f4ed6af6e0f089b33832fe9f856105
5,392
py
Python
tensorflow_gnn/runner/tasks/classification_test.py
tensorflow/gnn
c529f2a83230c028186f6c6754e17587e4ec90d1
[ "Apache-2.0" ]
611
2021-11-18T06:04:10.000Z
2022-03-29T11:46:42.000Z
tensorflow_gnn/runner/tasks/classification_test.py
tensorflow/gnn
c529f2a83230c028186f6c6754e17587e4ec90d1
[ "Apache-2.0" ]
25
2021-11-18T17:21:12.000Z
2022-03-31T06:36:55.000Z
tensorflow_gnn/runner/tasks/classification_test.py
tensorflow/gnn
c529f2a83230c028186f6c6754e17587e4ec90d1
[ "Apache-2.0" ]
52
2021-11-18T23:12:30.000Z
2022-03-27T06:31:08.000Z
"""Tests for classification.""" import tensorflow as tf import tensorflow_gnn as tfgnn as_tensor = tf.convert_to_tensor as_ragged = tf.ragged.constant SCHEMA = """ node_sets { key: "nodes" value { features { key: "%s" value { dtype: DT_FLOAT shape { dim { size: 4 } } } } ...
32.287425
80
0.648739
"""Tests for classification.""" from typing import Sequence from absl.testing import parameterized import tensorflow as tf import tensorflow_gnn as tfgnn from tensorflow_gnn.runner import orchestration from tensorflow_gnn.runner.tasks import classification as_tensor = tf.convert_to_tensor as_ragged = tf.ragged.const...
0
4,599
0
42
0
0
0
82
188
0ae89423c5b2fb528e3c0b81cb36311cdc56be5e
472
py
Python
eelbrain/_io/tests/test_pickle.py
jpkulasingham/Eelbrain
1061ce0b781a8e55ec187723b58491a5cde32e08
[ "BSD-3-Clause" ]
null
null
null
eelbrain/_io/tests/test_pickle.py
jpkulasingham/Eelbrain
1061ce0b781a8e55ec187723b58491a5cde32e08
[ "BSD-3-Clause" ]
null
null
null
eelbrain/_io/tests/test_pickle.py
jpkulasingham/Eelbrain
1061ce0b781a8e55ec187723b58491a5cde32e08
[ "BSD-3-Clause" ]
null
null
null
# Author: Christian Brodbeck <christianbrodbeck@nyu.edu>
31.466667
60
0.754237
# Author: Christian Brodbeck <christianbrodbeck@nyu.edu> from eelbrain import datasets, load from eelbrain._utils import IS_OSX from eelbrain.testing import assert_dataobj_equal, file_path def test_pickle(): ds = datasets.get_uts() decimal = None if IS_OSX else 15 ds_2 = load.unpickle(file_path('uts-py2....
0
0
0
0
0
259
0
66
89
506aa46f2760accb6c7d0ce527f1ea6690b3c489
542
py
Python
jrecomments/migrations/0008_auto_20211105_0129.py
ChristianJStarr/jrecomments
2c4d72e8848d639e3b1004e58b2cc8e0889ad23d
[ "MIT" ]
null
null
null
jrecomments/migrations/0008_auto_20211105_0129.py
ChristianJStarr/jrecomments
2c4d72e8848d639e3b1004e58b2cc8e0889ad23d
[ "MIT" ]
null
null
null
jrecomments/migrations/0008_auto_20211105_0129.py
ChristianJStarr/jrecomments
2c4d72e8848d639e3b1004e58b2cc8e0889ad23d
[ "MIT" ]
null
null
null
# Generated by Django 3.1.6 on 2021-11-05 05:29
22.583333
51
0.575646
# Generated by Django 3.1.6 on 2021-11-05 05:29 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('jrecomments', '0007_auto_20211028_0505'), ] operations = [ migrations.AddField( model_name='podcast', name='populari...
0
0
0
428
0
0
0
19
46
d3ba0857157cc7eea703c74a87631d271d65d963
2,721
py
Python
memo/_base.py
bradday4/memo
2ab048999ae88b2b99c862ffcc726f76a7d9bc80
[ "MIT" ]
82
2020-11-29T02:24:55.000Z
2022-02-21T04:56:38.000Z
memo/_base.py
bradday4/memo
2ab048999ae88b2b99c862ffcc726f76a7d9bc80
[ "MIT" ]
16
2020-12-04T16:43:13.000Z
2022-02-22T09:51:23.000Z
memo/_base.py
bradday4/memo
2ab048999ae88b2b99c862ffcc726f76a7d9bc80
[ "MIT" ]
9
2020-11-29T16:06:52.000Z
2021-11-11T14:52:49.000Z
from typing import Callable, List def memlist(data: List): """ Remembers input/output of a function in python list. Arguments: data: a list to push received data into Example ```python from memo import memlist data = [] @memlist(data=data) def simulate(a, b): r...
21.595238
79
0.54943
import orjson from typing import Callable, List from functools import wraps def memlist(data: List): """ Remembers input/output of a function in python list. Arguments: data: a list to push received data into Example ```python from memo import memlist data = [] @memlist(da...
0
652
0
0
0
159
0
-2
125
6f8be6f2fe0b3cb3451b64b271ff92eda49b402d
2,041
py
Python
baxter_end_effector_control/scripts/end_effector_trajectory_client.py
birlrobotics/birlBaxter_demos
a4871cbf2587a759c958c8451746554e1663e829
[ "MIT" ]
24
2016-12-29T11:17:41.000Z
2021-12-06T00:49:10.000Z
baxter_end_effector_control/scripts/end_effector_trajectory_client.py
birlrobotics/birlBaxter_demos
a4871cbf2587a759c958c8451746554e1663e829
[ "MIT" ]
2
2019-11-20T05:52:02.000Z
2019-12-30T09:07:56.000Z
baxter_end_effector_control/scripts/end_effector_trajectory_client.py
birlrobotics/birlBaxter_demos
a4871cbf2587a759c958c8451746554e1663e829
[ "MIT" ]
9
2018-02-10T06:12:12.000Z
2021-10-11T11:56:07.000Z
#!/usr/bin/env python #import pdb if __name__ == '__main__': listener()
26.506494
77
0.651151
#!/usr/bin/env python import rospy import struct import sys #import pdb from copy import copy from geometry_msgs.msg import ( PoseStamped, Pose, Point, Quaternion, ) from std_msgs.msg import Header from baxter_core_msgs.msg import ( JointCommand ) import actionlib from control_msgs.msg import ( ...
0
0
0
0
0
1,432
0
213
319
05ec669d2272999589562125fd1618b674dfc761
10,739
py
Python
cyphort_connector.py
splunk-soar-connectors/cyphort
f95c5d01181bcf3a4a2bcfdca94548efd19714a1
[ "Apache-2.0" ]
null
null
null
cyphort_connector.py
splunk-soar-connectors/cyphort
f95c5d01181bcf3a4a2bcfdca94548efd19714a1
[ "Apache-2.0" ]
2
2021-11-29T12:11:26.000Z
2021-12-06T06:00:43.000Z
cyphort_connector.py
splunk-soar-connectors/cyphort
f95c5d01181bcf3a4a2bcfdca94548efd19714a1
[ "Apache-2.0" ]
null
null
null
# -- # File: cyphort_connector.py # Copyright (c) 2014-2021 Splunk Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required ...
35.796667
130
0.655648
# -- # File: cyphort_connector.py # Copyright (c) 2014-2021 Splunk Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required ...
0
0
0
9,409
0
0
0
39
157
3f8f06f600bfef37e6fa4cad5791e6549d0223a6
420
py
Python
QuantFin_Python/Lecture00_Plot_heart.py
jamesfang8499/QuantFin
b4abe18d1baa8c52e9c890268b958f85576fd9fa
[ "Apache-2.0" ]
24
2017-08-06T06:37:58.000Z
2021-09-04T01:09:52.000Z
QuantFin_Python/Lecture00_Plot_heart.py
minying1999/QuantFin
b4abe18d1baa8c52e9c890268b958f85576fd9fa
[ "Apache-2.0" ]
null
null
null
QuantFin_Python/Lecture00_Plot_heart.py
minying1999/QuantFin
b4abe18d1baa8c52e9c890268b958f85576fd9fa
[ "Apache-2.0" ]
22
2016-08-24T20:50:41.000Z
2022-01-03T05:54:59.000Z
import matplotlib.pylab as plt import numpy as np import math as mm llen=1000; x=np.zeros(llen); y=np.zeros(llen); for i in range(0,llen): t=2*i*(mm.pi)/llen; x[i]=16*mm.pow(mm.sin(t),3); y[i]=13*mm.cos(t)-5*(mm.cos(t*2))-2*mm.cos(3*t)-mm.cos(4*t); plt.figu...
22.105263
63
0.564286
import matplotlib.pylab as plt import numpy as np import math as mm llen=1000; x=np.zeros(llen); y=np.zeros(llen); for i in range(0,llen): t=2*i*(mm.pi)/llen; x[i]=16*mm.pow(mm.sin(t),3); y[i]=13*mm.cos(t)-5*(mm.cos(t*2))-2*mm.cos(3*t)-mm.cos(4*t); plt.figu...
0
0
0
0
0
0
0
0
0
65c48cad486d6b88b95c4740ed0cb3745cb8ba08
5,763
py
Python
steelpy/codes/api/main.py
svortega/steelpy
bef35eb8ab8728fc29f57b7070b5f3bac0b0e840
[ "MIT" ]
4
2021-09-28T12:52:01.000Z
2022-02-24T22:30:22.000Z
steelpy/codes/api/main.py
svortega/steelpy
bef35eb8ab8728fc29f57b7070b5f3bac0b0e840
[ "MIT" ]
null
null
null
steelpy/codes/api/main.py
svortega/steelpy
bef35eb8ab8728fc29f57b7070b5f3bac0b0e840
[ "MIT" ]
null
null
null
# # Copyright (c) 2019-2021 steelpy # # Python stdlib imports #import math #import datetime # package imports #from steelpy.f2uModel.load.operations.actions import Actions #from steelpy.f2uModel.sections.process.stress import BeamStress import steelpy.codes.process.print_report as print_report # #
31.491803
87
0.521083
# # Copyright (c) 2019-2021 steelpy # # Python stdlib imports #import math #import datetime from typing import Union, ClassVar # package imports from steelpy.codes.api.wsd_22ed import APIwsd22ed from steelpy.design.beam.process import BeamDesignParameters, CodeResults #from steelpy.f2uModel.load.operations.actions im...
0
191
0
5,090
0
0
0
93
88
c44c60d0144954e47067015221863bd1091c350d
210
py
Python
tests/context.py
stpotter16/splineDIC
d61f9615699aade74e14f56f3c9ede505d86e39f
[ "MIT" ]
null
null
null
tests/context.py
stpotter16/splineDIC
d61f9615699aade74e14f56f3c9ede505d86e39f
[ "MIT" ]
null
null
null
tests/context.py
stpotter16/splineDIC
d61f9615699aade74e14f56f3c9ede505d86e39f
[ "MIT" ]
1
2020-08-29T22:17:26.000Z
2020-08-29T22:17:26.000Z
import os import sys # Add the library top directory to first position in $PATH variable sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
23.333333
82
0.757143
import os import sys # Add the library top directory to first position in $PATH variable sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))) import splineDIC import numpy as np
0
0
0
0
0
0
0
-8
45
5e9c51abce2c25e47d6aac1b48488e477a66919a
19,058
py
Python
_tools/testservice.py
sailfish009/bsdf
e69feaf43d4d553d2bfaeedd87396c4bf7054936
[ "BSD-2-Clause" ]
null
null
null
_tools/testservice.py
sailfish009/bsdf
e69feaf43d4d553d2bfaeedd87396c4bf7054936
[ "BSD-2-Clause" ]
null
null
null
_tools/testservice.py
sailfish009/bsdf
e69feaf43d4d553d2bfaeedd87396c4bf7054936
[ "BSD-2-Clause" ]
null
null
null
""" This script provides a service to test BSDF implementations of different languages. It is written in Python, since BSDF's reference implementation is. To use, import this module and use ``main(test_dir, *exe)``. The test_dir will be the current directory when the command is executed. The exe is the command to run,...
33.202091
118
0.570836
""" This script provides a service to test BSDF implementations of different languages. It is written in Python, since BSDF's reference implementation is. To use, import this module and use ``main(test_dir, *exe)``. The test_dir will be the current directory when the command is executed. The exe is the command to run,...
10
0
0
185
0
8,169
0
-25
205
9b38972815095daa65f912f91a4dea5aa0b41894
6,071
py
Python
krypton/hkpserver/controllers/lookupcontroller.py
zerodine/krypton
3876b37739f0b9110f460bf1d0aec668d216a7b7
[ "Apache-2.0" ]
1
2020-11-17T16:29:52.000Z
2020-11-17T16:29:52.000Z
krypton/hkpserver/controllers/lookupcontroller.py
zerodine/krypton
3876b37739f0b9110f460bf1d0aec668d216a7b7
[ "Apache-2.0" ]
null
null
null
krypton/hkpserver/controllers/lookupcontroller.py
zerodine/krypton
3876b37739f0b9110f460bf1d0aec668d216a7b7
[ "Apache-2.0" ]
null
null
null
__author__ = "Thomas Spycher, Philipp Spinnler" __copyright__ = "Copyright 2013, Zerodine GmbH (zerodine.com) " __credits__ = ["Thomas Spycher", "Philipp Spinnler"] __license__ = "Apache-2.0" __maintainer__ = "Thomas Spycher" __email__ = "me@tspycher.com" __status__ = "Development" # TODO: add X-HKP-Results-Count: 8 ...
29.470874
103
0.590348
__author__ = "Thomas Spycher, Philipp Spinnler" __copyright__ = "Copyright 2013, Zerodine GmbH (zerodine.com) " __credits__ = ["Thomas Spycher", "Philipp Spinnler"] __license__ = "Apache-2.0" __maintainer__ = "Thomas Spycher" __email__ = "me@tspycher.com" __status__ = "Development" import tornado.template from baseco...
0
248
0
5,337
0
0
0
58
90
53111fd36d05457f116c77c9570c539dce3e12df
1,481
py
Python
translators/FLIR-IdentiFinder-ResultsTranslator.py
LLNL/RASE
6e3452c35297709de3de8d9318c25e6346214c79
[ "MIT" ]
5
2020-01-30T14:13:30.000Z
2021-06-25T16:37:50.000Z
translators/FLIR-IdentiFinder-ResultsTranslator.py
LLNL/RASE
6e3452c35297709de3de8d9318c25e6346214c79
[ "MIT" ]
null
null
null
translators/FLIR-IdentiFinder-ResultsTranslator.py
LLNL/RASE
6e3452c35297709de3de8d9318c25e6346214c79
[ "MIT" ]
1
2019-09-10T20:38:19.000Z
2019-09-10T20:38:19.000Z
### Static Parameters ### # TemplateSpectrum = 'FLIR-ID-2_TemplateSpectrum_CmdLine.n42' ### End of the Static Parameters ### import xml.etree.ElementTree as ET def retrieve_FLIR_Results(filepath): """ :param filepath: :return: """ it = ET.parse(filepath) root = it.getroot() resultsArray ...
26.927273
108
0.673869
### Static Parameters ### # TemplateSpectrum = 'FLIR-ID-2_TemplateSpectrum_CmdLine.n42' ### End of the Static Parameters ### import os import xml.etree.ElementTree as ET from src.rase_functions import write_results def retrieve_FLIR_Results(filepath): """ :param filepath: :return: """ it = ET.p...
0
0
0
0
0
348
0
11
69
cf26e52a1dab727db1e93ba2ea1004133b406c20
4,366
py
Python
tello_formation/src/controller.py
PedroS235/TelloSwarm
193abba280efd467318f9d19e2fc91433ea75525
[ "MIT" ]
null
null
null
tello_formation/src/controller.py
PedroS235/TelloSwarm
193abba280efd467318f9d19e2fc91433ea75525
[ "MIT" ]
null
null
null
tello_formation/src/controller.py
PedroS235/TelloSwarm
193abba280efd467318f9d19e2fc91433ea75525
[ "MIT" ]
2
2021-11-24T01:54:22.000Z
2022-02-16T21:00:26.000Z
#!/usr/bin/python3 # -- the rest of the code will be only runned when executed from the terminal if __name__ == '__main__': import argparse parser = argparse.ArgumentParser() parser.add_argument('--id', type=int, required=True, help='Tello ID (should be equal to or greater than 1)') args, unknown = pa...
38.982143
127
0.617957
#!/usr/bin/python3 import math import threading import numpy as np import rospy import tf2_ros from geometry_msgs.msg import TransformStamped from tello_formation.msg import GotoCommand from tello_ros.srv import TelloCommand class TelloController: """ This class is the one that controls the Tello. (It...
0
0
0
3,752
0
0
0
30
203
d516501d37d636374903bca64751792fad00cfc7
8,936
py
Python
codenerix/templatetags/codenerix_lists.py
centrologic/django-codenerix
136d3cab1a19d2dfac810f902e3fcb5ea94e13ba
[ "Apache-2.0" ]
28
2017-02-25T01:39:34.000Z
2018-01-22T21:48:10.000Z
codenerix/templatetags/codenerix_lists.py
centrologic/django-codenerix
136d3cab1a19d2dfac810f902e3fcb5ea94e13ba
[ "Apache-2.0" ]
2
2017-03-10T12:31:33.000Z
2017-07-14T07:03:07.000Z
codenerix/templatetags/codenerix_lists.py
centrologic/django-codenerix
136d3cab1a19d2dfac810f902e3fcb5ea94e13ba
[ "Apache-2.0" ]
6
2017-03-10T12:00:02.000Z
2017-11-22T20:15:42.000Z
# -*- coding: utf-8 -*- # # django-codenerix # # Codenerix GNU # # Project URL : http://www.codenerix.com # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LI...
26.595238
206
0.611907
# -*- coding: utf-8 -*- # # django-codenerix # # Codenerix GNU # # Project URL : http://www.codenerix.com # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LI...
0
6,838
0
499
0
0
0
162
683
73e77b9cfa78dd7db668c8f5619e8d259dea0454
3,292
py
Python
novaclient/tests/functional/v2/legacy/test_keypairs.py
dtroyer/python-novaclient
4c483322fe5454c8ece66cc9c86cbc0702e14368
[ "Apache-1.1" ]
null
null
null
novaclient/tests/functional/v2/legacy/test_keypairs.py
dtroyer/python-novaclient
4c483322fe5454c8ece66cc9c86cbc0702e14368
[ "Apache-1.1" ]
null
null
null
novaclient/tests/functional/v2/legacy/test_keypairs.py
dtroyer/python-novaclient
4c483322fe5454c8ece66cc9c86cbc0702e14368
[ "Apache-1.1" ]
1
2019-01-11T16:15:52.000Z
2019-01-11T16:15:52.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
35.021277
78
0.670109
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
0
0
0
2,509
0
0
0
74
136
123ab816b0bb039ae3617996dce9aaf4843f1459
5,377
py
Python
rabbit_force/__main__.py
elaredo/rabbit-force-wefox
ec5108f9341ace8a6d44d424c8174bba41558ba3
[ "MIT" ]
19
2018-10-25T15:31:14.000Z
2022-01-18T17:47:39.000Z
rabbit_force/__main__.py
elaredo/rabbit-force-wefox
ec5108f9341ace8a6d44d424c8174bba41558ba3
[ "MIT" ]
1
2021-01-13T13:28:35.000Z
2021-01-13T13:28:35.000Z
rabbit_force/__main__.py
elaredo/rabbit-force-wefox
ec5108f9341ace8a6d44d424c8174bba41558ba3
[ "MIT" ]
1
2019-05-10T10:44:48.000Z
2019-05-10T10:44:48.000Z
"""rabbit_force application entrypoint""" import logging from collections import namedtuple from ._metadata import TITLE #: Basic logging parameters LoggingParameters = namedtuple("LoggingParameters", ("level", "name", "format")) LoggingParameters.level.__doc__ = "The level of the logg...
36.828767
79
0.686628
"""rabbit_force application entrypoint""" import logging from enum import IntEnum from collections import namedtuple import click from .config import load_config from .app import Application from ._metadata import TITLE, VERSION class Verbosity(IntEnum): """Logging detail level""" #: Application messages wi...
0
2,553
0
288
0
0
0
20
135
b5190741e4210a2b522a3e9dbfce2443dd241b22
1,829
py
Python
ttcal/calfns.py
datakortet/ttcal
0df8000d1b4e6d64d25a0fe1dcdbd328dcc5a8af
[ "MIT" ]
null
null
null
ttcal/calfns.py
datakortet/ttcal
0df8000d1b4e6d64d25a0fe1dcdbd328dcc5a8af
[ "MIT" ]
3
2020-03-06T10:36:41.000Z
2022-01-19T16:21:20.000Z
ttcal/calfns.py
datakortet/ttcal
0df8000d1b4e6d64d25a0fe1dcdbd328dcc5a8af
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Misc. calendar functions. """ import datetime def rangetuple(x): """Return a 2-tuple of datetimes representing a time range. """ if hasattr(x, 'rangetuple'): return x.rangetuple() if isinstance(x, datetime.date): return ( datetime.datetime.comb...
23.753247
66
0.553855
# -*- coding: utf-8 -*- """ Misc. calendar functions. """ import datetime from itertools import islice def chop(it, n): """Chop iterator into `n` size chuchks. """ while 1: s = list(islice(it, n)) if not s: break yield s def isoweek(year, week): """Iterate over th...
0
0
0
0
662
0
0
7
68
633e8550238563d51de704b19688e7f20990fce1
1,586
py
Python
watcher/tests/cmd/test_status.py
ajaytikoo/watcher
6dbac1f6ae7f3e10dfdcef5721fa4af7af54e159
[ "Apache-2.0" ]
64
2015-10-18T02:57:24.000Z
2022-01-13T11:27:51.000Z
watcher/tests/cmd/test_status.py
ajaytikoo/watcher
6dbac1f6ae7f3e10dfdcef5721fa4af7af54e159
[ "Apache-2.0" ]
null
null
null
watcher/tests/cmd/test_status.py
ajaytikoo/watcher
6dbac1f6ae7f3e10dfdcef5721fa4af7af54e159
[ "Apache-2.0" ]
35
2015-12-25T13:53:21.000Z
2021-07-19T15:50:16.000Z
# Copyright (c) 2018 NEC, Corp. # # 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 agr...
36.883721
78
0.718789
# Copyright (c) 2018 NEC, Corp. # # 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 agr...
0
0
0
801
0
0
0
44
91
e6b048059a16b349f42fea0bcebaba02d0321e0a
243
py
Python
homeassistant/components/abode/const.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
30,023
2016-04-13T10:17:53.000Z
2020-03-02T12:56:31.000Z
homeassistant/components/abode/const.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
24,710
2016-04-13T08:27:26.000Z
2020-03-02T12:59:13.000Z
homeassistant/components/abode/const.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
11,956
2016-04-13T18:42:31.000Z
2020-03-02T09:32:12.000Z
"""Constants for the Abode Security System component.""" import logging LOGGER = logging.getLogger(__package__) DOMAIN = "abode" ATTRIBUTION = "Data provided by goabode.com" DEFAULT_CACHEDB = "abodepy_cache.pickle" CONF_POLLING = "polling"
22.090909
56
0.773663
"""Constants for the Abode Security System component.""" import logging LOGGER = logging.getLogger(__package__) DOMAIN = "abode" ATTRIBUTION = "Data provided by goabode.com" DEFAULT_CACHEDB = "abodepy_cache.pickle" CONF_POLLING = "polling"
0
0
0
0
0
0
0
0
0
088813b6777ecdf690df1f3d7f0a8520b84c6023
170
py
Python
jqtodobackend/settings.py
johannes-qvarford/jq-todo-backend-py
8b54023f89174098991c0ee59d8798ace58a6649
[ "MIT" ]
null
null
null
jqtodobackend/settings.py
johannes-qvarford/jq-todo-backend-py
8b54023f89174098991c0ee59d8798ace58a6649
[ "MIT" ]
null
null
null
jqtodobackend/settings.py
johannes-qvarford/jq-todo-backend-py
8b54023f89174098991c0ee59d8798ace58a6649
[ "MIT" ]
null
null
null
settings = Settings()
17
49
0.694118
from pydantic import BaseSettings class Settings(BaseSettings): db_args: str = '{"check_same_thread": false}' db_url: str = "sqlite://" settings = Settings()
0
0
0
88
0
0
0
12
45
31661dcae05a2f022eb046592b8462f690591281
2,292
py
Python
configs/defaults.py
steermomo/WSI_extract
9db3bca2e59617a244c0f09d05146bfb44fb96e7
[ "Apache-2.0" ]
null
null
null
configs/defaults.py
steermomo/WSI_extract
9db3bca2e59617a244c0f09d05146bfb44fb96e7
[ "Apache-2.0" ]
null
null
null
configs/defaults.py
steermomo/WSI_extract
9db3bca2e59617a244c0f09d05146bfb44fb96e7
[ "Apache-2.0" ]
null
null
null
from yacs.yacs_config import CfgNode as CN import os.path as osp # https://github.com/rbgirshick/yacs _C = CN() _C.DEST_EXT = "png" _C.SAVE_PATCH = False _C.SLIDE = CN() _C.SLIDE.BASE_DIR = '' _C.SLIDE.SCALE_FACTOR = 32 _C.SLIDE.DEST_DIR = '' _C.SLIDE.THUMBNAIL_SIZE = 300 _C.SLIDE.THUMBNAIL_EXT = "...
36.380952
136
0.739965
from yacs.yacs_config import CfgNode as CN import os.path as osp # https://github.com/rbgirshick/yacs _C = CN() _C.DEST_EXT = "png" _C.SAVE_PATCH = False _C.SLIDE = CN() _C.SLIDE.BASE_DIR = '' _C.SLIDE.SCALE_FACTOR = 32 _C.SLIDE.DEST_DIR = '' _C.SLIDE.THUMBNAIL_SIZE = 300 _C.SLIDE.THUMBNAIL_EXT = "...
0
0
0
0
0
0
0
0
0
d47cbe27ecf0fb6e8635ad04dd50e38f99641579
161
py
Python
conf/__init__.py
huzidabanzhang/Python
7b304290e5be7db4bce253edb069a12dcbc3c998
[ "MIT" ]
4
2019-09-04T09:16:24.000Z
2019-09-18T08:50:36.000Z
conf/__init__.py
huzidabanzhang/Python
7b304290e5be7db4bce253edb069a12dcbc3c998
[ "MIT" ]
null
null
null
conf/__init__.py
huzidabanzhang/Python
7b304290e5be7db4bce253edb069a12dcbc3c998
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding:UTF-8 -*- ''' @Description: @Author: Zpp @Date: 2019-09-02 16:04:11 @LastEditTime: 2019-09-12 11:27:19 @LastEditors: Zpp '''
16.1
34
0.639752
#!/usr/bin/env python # -*- coding:UTF-8 -*- ''' @Description: @Author: Zpp @Date: 2019-09-02 16:04:11 @LastEditTime: 2019-09-12 11:27:19 @LastEditors: Zpp '''
0
0
0
0
0
0
0
0
0
62ec8d0542517cad4cae583dfc537c1e0c54fc31
2,339
py
Python
sstcam_sandbox/old/charge_resolution_tfwf/extract_average_vs_amplitude.py
watsonjj/CHECLabPySB
91330d3a6f510a392f635bd7f4abd2f77871322c
[ "BSD-3-Clause" ]
null
null
null
sstcam_sandbox/old/charge_resolution_tfwf/extract_average_vs_amplitude.py
watsonjj/CHECLabPySB
91330d3a6f510a392f635bd7f4abd2f77871322c
[ "BSD-3-Clause" ]
null
null
null
sstcam_sandbox/old/charge_resolution_tfwf/extract_average_vs_amplitude.py
watsonjj/CHECLabPySB
91330d3a6f510a392f635bd7f4abd2f77871322c
[ "BSD-3-Clause" ]
1
2021-03-30T09:46:56.000Z
2021-03-30T09:46:56.000Z
if __name__ == '__main__': main()
32.041096
79
0.645575
import argparse import os import re from argparse import ArgumentDefaultsHelpFormatter as Formatter import numpy as np from tqdm import tqdm from CHECLabPy.core.io import ReaderR1 from CHECLabPy.utils.waveform import get_average_wf_per_pixel def commonsuffix(files): reveresed = [f[::-1] for f in files] return...
0
0
0
0
0
1,961
0
66
268
2f7d9b5ca25e01d39889eb55e38edcc9ca99bb5e
8,401
py
Python
gramtools/tests/commands/build/test_vcf_to_prg_string.py
bricoletc/gramtools
1ce06178b7b26f42d72e47d3d7b8a7a606e6f256
[ "MIT" ]
null
null
null
gramtools/tests/commands/build/test_vcf_to_prg_string.py
bricoletc/gramtools
1ce06178b7b26f42d72e47d3d7b8a7a606e6f256
[ "MIT" ]
null
null
null
gramtools/tests/commands/build/test_vcf_to_prg_string.py
bricoletc/gramtools
1ce06178b7b26f42d72e47d3d7b8a7a606e6f256
[ "MIT" ]
null
null
null
""" Tested behaviour: * Overlapping vcf records (same CHROM, same POS): the first is kept, the rest is ignored * Fasta records with no variation: they are output to the prg string in the order seen in the input fasta. * Adjacent records: site markers placed adjacent to each other, * Allele markers: in ...
39.257009
113
0.672063
""" Tested behaviour: * Overlapping vcf records (same CHROM, same POS): the first is kept, the rest is ignored * Fasta records with no variation: they are output to the prg string in the order seen in the input fasta. * Adjacent records: site markers placed adjacent to each other, * Allele markers: in ...
0
5,883
0
1,402
0
0
0
106
360
e023985c99cf34d89a2c2a11c3c80c40ada6e2f5
7,091
py
Python
shot-tracking.py
raysinensis/Hot-Cold-Hand
95b5f756429a75f655d0a2f270486bae86172a1c
[ "MIT" ]
null
null
null
shot-tracking.py
raysinensis/Hot-Cold-Hand
95b5f756429a75f655d0a2f270486bae86172a1c
[ "MIT" ]
null
null
null
shot-tracking.py
raysinensis/Hot-Cold-Hand
95b5f756429a75f655d0a2f270486bae86172a1c
[ "MIT" ]
null
null
null
import sys import datetime import requests import json import glob import re import numpy as np import os import csv DATAPATH='C:/NBA' url_base='http://data.nba.com/5s/json/cms/noseason/scoreboard/%s/games.json' get_season(2015,dateprocess("10/27/2015"),dateprocess("4/13/2016")) teamlist=["ATL","BKN...
28.708502
191
0.597095
import sys import datetime import requests import json import glob import re import numpy as np import os import csv DATAPATH='C:/NBA' url_base='http://data.nba.com/5s/json/cms/noseason/scoreboard/%s/games.json' def get_season(seasonnum,startd,endd): datelist=[] numberd= (endd-startd).days for i ...
0
0
0
0
0
5,951
0
0
251
e4395ee2c03d230d6fd5b925d6c6f30f4c5cce2c
907
py
Python
lcm/examples/python/listener_select.py
RX-00/monopod
faf59a765db029423402ed1a2b4ab137c6242c9e
[ "MIT" ]
null
null
null
lcm/examples/python/listener_select.py
RX-00/monopod
faf59a765db029423402ed1a2b4ab137c6242c9e
[ "MIT" ]
null
null
null
lcm/examples/python/listener_select.py
RX-00/monopod
faf59a765db029423402ed1a2b4ab137c6242c9e
[ "MIT" ]
null
null
null
# This example demonstrates how to use LCM with the Python select module import select import lcm lc = lcm.LCM() lc.subscribe("EXAMPLE", my_handler) try: timeout = 1.5 # amount of time to wait, in seconds while True: rfds, wfds, efds = select.select([lc.fileno()], [], [], timeout) if rfds: ...
29.258065
72
0.596472
# This example demonstrates how to use LCM with the Python select module import select import lcm from exlcm import example_t def my_handler(channel, data): msg = example_t.decode(data) print("Received message on channel \"%s\"" % channel) print(" timestamp = %s" % str(msg.timestamp)) print(" po...
0
0
0
0
0
420
0
6
45
3a6660e6775f18793493014c8b61bbe43eae4150
5,718
py
Python
split/db_split.py
duyunhe/vehAnalysis
a3788c3851b786683ed11a3b2f88dc7502a163d3
[ "Apache-2.0" ]
1
2020-05-26T11:13:17.000Z
2020-05-26T11:13:17.000Z
split/db_split.py
duyunhe/vehAnalysis
a3788c3851b786683ed11a3b2f88dc7502a163d3
[ "Apache-2.0" ]
null
null
null
split/db_split.py
duyunhe/vehAnalysis
a3788c3851b786683ed11a3b2f88dc7502a163d3
[ "Apache-2.0" ]
1
2021-06-24T13:13:00.000Z
2021-06-24T13:13:00.000Z
# -*- coding: utf-8 -*- # @Time : 2019/9/6 15:46 # @Author : # @ : # @File : db_split.py import os os.environ['NLS_LANG'] = 'SIMPLIFIED CHINESE_CHINA.AL32UTF8' veh_trace = {} # restore last list in history trace for each vehicle if __name__ == '__main__': main()
30.414894
112
0.581322
# -*- coding: utf-8 -*- # @Time : 2019/9/6 15:46 # @Author : # @简介 : # @File : db_split.py import cx_Oracle from collections import defaultdict import os from copy import copy from time import clock from datetime import datetime, timedelta from meter_analysis import get_meter_data, get_offset from trace_m ...
33
2,390
0
143
0
2,439
0
75
362
a895a0abf92f3fa813d289f3717d726fa429e939
6,427
py
Python
sdl2/ext/algorithms.py
smcv/py-sdl2
209095d858b461c6314f7b7b96b2051ec1656d20
[ "CC0-1.0" ]
12
2022-02-10T17:04:08.000Z
2022-03-30T21:05:12.000Z
sdl2/ext/algorithms.py
smcv/py-sdl2
209095d858b461c6314f7b7b96b2051ec1656d20
[ "CC0-1.0" ]
4
2022-02-08T14:16:24.000Z
2022-03-18T01:32:00.000Z
sdl2/ext/algorithms.py
smcv/py-sdl2
209095d858b461c6314f7b7b96b2051ec1656d20
[ "CC0-1.0" ]
1
2022-03-21T22:23:34.000Z
2022-03-21T22:23:34.000Z
import sys __all__ = ["liangbarsky", "cohensutherland", "clipline", "point_on_line"] def cohensutherland(left, top, right, bottom, x1, y1, x2, y2): """Clips a line to a rectangular area. This implements the Cohen-Sutherland line clipping algorithm. ``left``, ``top``, ``right`` and ``bottom`` define the ...
34.005291
79
0.541932
import sys __all__ = ["liangbarsky", "cohensutherland", "clipline", "point_on_line"] def cohensutherland(left, top, right, bottom, x1, y1, x2, y2): """Clips a line to a rectangular area. This implements the Cohen-Sutherland line clipping algorithm. ``left``, ``top``, ``right`` and ``bottom`` define the ...
0
0
0
0
0
214
0
0
27
7cbe0feed9b8f5309e653215d888c0161aeaa6c9
368
py
Python
bourbaki/application/config/__init__.py
bourbaki-py/application
78e601a51e292d7fd8cf568f203d1abb58f9bd50
[ "Apache-2.0" ]
null
null
null
bourbaki/application/config/__init__.py
bourbaki-py/application
78e601a51e292d7fd8cf568f203d1abb58f9bd50
[ "Apache-2.0" ]
6
2021-10-30T13:38:47.000Z
2021-10-30T14:12:34.000Z
bourbaki/application/config/__init__.py
bourbaki-py/application
78e601a51e292d7fd8cf568f203d1abb58f9bd50
[ "Apache-2.0" ]
null
null
null
# coding:utf-8
23
84
0.782609
# coding:utf-8 from .io import load_config, dump_config, register_dump_config, register_load_config from .io import ( allow_unsafe_yaml, require_safe_yaml, ConfigFormat, LEGAL_CONFIG_EXTENSIONS, ) from .python import ( is_json_serializable, UnsafePythonSourceConfig, PythonConfigNotSerializa...
0
0
0
0
0
0
0
264
89
cbaa096923733254264ab8f42214bbbb1eb9b48f
107
py
Python
Lesson09/readJSON.py
PacktPublishing/Python-Fundamentals
f24569826b1b7f97e3d54630a34ae61110ca12da
[ "MIT" ]
1
2021-04-23T14:01:56.000Z
2021-04-23T14:01:56.000Z
Lesson09/readJSON.py
PacktPublishing/Python-Fundamentals
f24569826b1b7f97e3d54630a34ae61110ca12da
[ "MIT" ]
null
null
null
Lesson09/readJSON.py
PacktPublishing/Python-Fundamentals
f24569826b1b7f97e3d54630a34ae61110ca12da
[ "MIT" ]
4
2021-06-29T05:57:44.000Z
2021-09-02T10:14:55.000Z
import json with open('example.json') as f: data = json.loads(f.read()) print(data) print(type(data))
15.285714
31
0.672897
import json with open('example.json') as f: data = json.loads(f.read()) print(data) print(type(data))
0
0
0
0
0
0
0
0
0
4e299c10d1342e51e2568318e5c7b6f54354930e
4,801
py
Python
utility/eva_report_to_tables.py
gfrancis-ALElab/Landuse_DL
d655bd3d008533b54113a0d8cb79e7f8e035c2aa
[ "Apache-2.0" ]
null
null
null
utility/eva_report_to_tables.py
gfrancis-ALElab/Landuse_DL
d655bd3d008533b54113a0d8cb79e7f8e035c2aa
[ "Apache-2.0" ]
null
null
null
utility/eva_report_to_tables.py
gfrancis-ALElab/Landuse_DL
d655bd3d008533b54113a0d8cb79e7f8e035c2aa
[ "Apache-2.0" ]
2
2021-08-07T10:16:53.000Z
2021-12-31T02:30:37.000Z
#!/usr/bin/env python # Filename: eva_report_to_tables """ introduction: convert multiple evaluation reports to tables. authors: Huang Lingcao email:huanglingcao@gmail.com add time: 28 June, 2020 """ import sys from optparse import OptionParser if __name__ == "__main__": usage = "usage: %prog [options] eva_re...
34.292857
134
0.681108
#!/usr/bin/env python # Filename: eva_report_to_tables """ introduction: convert multiple evaluation reports to tables. authors: Huang Lingcao email:huanglingcao@gmail.com add time: 28 June, 2020 """ import os,sys import re from optparse import OptionParser import pandas as pd def get_tp_fp_fn_etc(six_lines): ...
0
0
0
0
0
3,846
0
-11
160
12dacc9608416397f5f47eac4baf01cbf69f7b08
552
py
Python
src/bdbd/src/bdbd/test/tfwho_test.py
rkent/BDBD
c5d391da84faf5607c443078781f8b4e1c017dd5
[ "MIT" ]
null
null
null
src/bdbd/src/bdbd/test/tfwho_test.py
rkent/BDBD
c5d391da84faf5607c443078781f8b4e1c017dd5
[ "MIT" ]
null
null
null
src/bdbd/src/bdbd/test/tfwho_test.py
rkent/BDBD
c5d391da84faf5607c443078781f8b4e1c017dd5
[ "MIT" ]
null
null
null
#!/usr/bin/python2 # Send a face to be recognized. This is a ros node. First run node tfwho. if __name__ == '__main__': main()
24
78
0.686594
#!/usr/bin/python2 # Send a face to be recognized. This is a ros node. First run node tfwho. import rospy import numpy as np import logging from cv_bridge import CvBridge def main(): bridge = CvBridge() logging.basicConfig(level='DEBUG') rospy.init_node('tfwho_test') # get the test image data = n...
0
0
0
0
0
319
0
-10
111
c86484dd5e1559e6ee2688542d101e2985ae581b
2,332
py
Python
pysnmp/Fore-Errors-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/Fore-Errors-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/Fore-Errors-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module Fore-Errors-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Fore-Errors-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 19:03:25 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27...
101.391304
477
0.786021
# # PySNMP MIB module Fore-Errors-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Fore-Errors-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 19:03:25 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27...
0
0
0
0
0
0
0
0
0
f8dc1f66414fb0bc7bea446729e1e32774bbe206
9,697
py
Python
vehicle.py
jmgraeffe/gtao_python_wrapper
f1a50fa045a22e1c6e48ee863e19eb5606c1dbd5
[ "MIT" ]
2
2020-10-26T11:19:39.000Z
2020-10-26T11:19:41.000Z
vehicle.py
jmgraeffe/gtao_python_wrapper
f1a50fa045a22e1c6e48ee863e19eb5606c1dbd5
[ "MIT" ]
3
2017-04-04T15:49:03.000Z
2017-04-04T16:18:27.000Z
vehicle.py
j0nnib0y/gtao_python_wrapper
f1a50fa045a22e1c6e48ee863e19eb5606c1dbd5
[ "MIT" ]
null
null
null
"""Python wrapper for GTA Orange's vehicle functions Subscribable built-in events: +===============+=========================+====================================+ | name | vehicle-local arguments | global arguments | +===============+=========================+===============================...
28.860119
106
0.536351
"""Python wrapper for GTA Orange's vehicle functions Subscribable built-in events: +===============+=========================+====================================+ | name | vehicle-local arguments | global arguments | +===============+=========================+===============================...
0
0
0
4,407
0
565
0
48
135
d323454fe03c0cba22924db01e7c90206efebe8b
1,806
py
Python
external_identifier.py
mike-k0/wikidata-toolkit
2c2c77473ca3bc86a0b16d164d1037883428823f
[ "MIT" ]
null
null
null
external_identifier.py
mike-k0/wikidata-toolkit
2c2c77473ca3bc86a0b16d164d1037883428823f
[ "MIT" ]
null
null
null
external_identifier.py
mike-k0/wikidata-toolkit
2c2c77473ca3bc86a0b16d164d1037883428823f
[ "MIT" ]
null
null
null
import requests from bs4 import BeautifulSoup def imdb_id(title): """IMDB identifier >>> imdb_id("Inception") 'tt1375666' >>> imdb_id("Interstellar") 'tt0816692' """ web_text = requests.get(f"https://www.imdb.com/find?q={title}").text soup = BeautifulSoup(web_text, "html.parser") c...
23.763158
90
0.66113
import requests from bs4 import BeautifulSoup def imdb_id(title): """IMDB identifier >>> imdb_id("Inception") 'tt1375666' >>> imdb_id("Interstellar") 'tt0816692' """ web_text = requests.get(f"https://www.imdb.com/find?q={title}").text soup = BeautifulSoup(web_text, "html.parser") c...
0
0
0
0
0
0
0
0
0
f4af1609246d8b34742420dd198deb76f1efe5e3
5,609
py
Python
clients/python-client/swagger_client/api/default_api.py
mayple/versed
3faad90799b886a8f3728852be36677b8b7b75e5
[ "MIT" ]
null
null
null
clients/python-client/swagger_client/api/default_api.py
mayple/versed
3faad90799b886a8f3728852be36677b8b7b75e5
[ "MIT" ]
null
null
null
clients/python-client/swagger_client/api/default_api.py
mayple/versed
3faad90799b886a8f3728852be36677b8b7b75e5
[ "MIT" ]
null
null
null
# coding: utf-8 """ Versed conversion API No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import #...
40.064286
207
0.617579
# coding: utf-8 """ Versed conversion API No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import i...
0
0
0
5,135
0
0
0
3
105
02aff8181b0dbece1ea2d0164648a1afb779ca20
170
py
Python
lesson3/practice/ex3.py
karina-marques/programming-exercises
ecce7ed3fee02b717bff8e4b8405ea65a574d93b
[ "MIT" ]
null
null
null
lesson3/practice/ex3.py
karina-marques/programming-exercises
ecce7ed3fee02b717bff8e4b8405ea65a574d93b
[ "MIT" ]
null
null
null
lesson3/practice/ex3.py
karina-marques/programming-exercises
ecce7ed3fee02b717bff8e4b8405ea65a574d93b
[ "MIT" ]
null
null
null
# Write here the test case for 'celsius_to_kelvin' function import lesson3_module x = float(input('Temperature in C:')) print(lesson3_module.celsius_to_kelvin(x), 'K')
28.333333
59
0.776471
# Write here the test case for 'celsius_to_kelvin' function import lesson3_module x = float(input('Temperature in ºC:')) print(lesson3_module.celsius_to_kelvin(x), 'K')
2
0
0
0
0
0
0
0
0
3cf86ebe0b484806063d2c27915307b660d5121a
834
py
Python
pyfrcsim/types/relay.py
ariovistus/pyfrcsim
a95a3723abdadceaf4fc2ce9ac65e88de54c40ee
[ "BSD-3-Clause" ]
null
null
null
pyfrcsim/types/relay.py
ariovistus/pyfrcsim
a95a3723abdadceaf4fc2ce9ac65e88de54c40ee
[ "BSD-3-Clause" ]
1
2016-11-26T17:58:25.000Z
2016-11-27T20:04:59.000Z
pyfrcsim/types/relay.py
ariovistus/pyfrcsim
a95a3723abdadceaf4fc2ce9ac65e88de54c40ee
[ "BSD-3-Clause" ]
null
null
null
import logging logger = logging.getLogger(__name__)
26.0625
75
0.619904
import logging from ..main_node import advertise from ..gazebo.gz_msgs.float64_pb2 import Float64 logger = logging.getLogger(__name__) class SimRelay: def __init__(self, channel, relay_dict): self.relay_dict = relay_dict self.publisher = advertise('simulator/relay/%s' % channel, Float64...
0
0
0
673
0
0
0
39
68
11ce799861d7e0cdc3ceff7db0d0f1a5a0e6d214
4,035
py
Python
vrft/utils.py
alexberndt/PythonVRFT
b70b6fe48eb58a1f2d64b07f655ad478461dde37
[ "MIT" ]
3
2020-01-11T09:31:43.000Z
2021-01-08T07:33:25.000Z
vrft/utils.py
alexberndt/PythonVRFT
b70b6fe48eb58a1f2d64b07f655ad478461dde37
[ "MIT" ]
27
2017-03-27T07:26:28.000Z
2021-01-10T15:40:36.000Z
vrft/utils.py
alexberndt/PythonVRFT
b70b6fe48eb58a1f2d64b07f655ad478461dde37
[ "MIT" ]
1
2021-01-08T17:09:30.000Z
2021-01-08T17:09:30.000Z
# utils.py - VRFT utility functions # # Code author: [Alessio Russo - alessior@kth.se] # Last update: 10th January 2021, by alessior@kth.se # # Copyright (c) [2017-2021] Alessio Russo [alessior@kth.se]. All rights reserved. # This file is part of PythonVRFT. # PythonVRFT is free software: you can redistribute it and/or...
27.827586
88
0.624287
# utils.py - VRFT utility functions # # Code author: [Alessio Russo - alessior@kth.se] # Last update: 10th January 2021, by alessior@kth.se # # Copyright (c) [2017-2021] Alessio Russo [alessior@kth.se]. All rights reserved. # This file is part of PythonVRFT. # PythonVRFT is free software: you can redistribute it and/or...
0
603
0
0
0
0
0
6
69
249739bfc9ec89f7c5665de18e1f4059fe63663f
2,434
py
Python
preproc/EOG_fix.py
athiede13/free_speech
bde32c2d48724c98f089376876cf9888f67a9f20
[ "MIT" ]
null
null
null
preproc/EOG_fix.py
athiede13/free_speech
bde32c2d48724c98f089376876cf9888f67a9f20
[ "MIT" ]
null
null
null
preproc/EOG_fix.py
athiede13/free_speech
bde32c2d48724c98f089376876cf9888f67a9f20
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ EOG channel assignment/fix. - read all preprocessed files - check whether EOG channels are correctly assigned - fix EOG assignment if not - save with '_EOG' extension Created on Mon Jan 8 15:55:09 2018 @author: Anja Thiede <anja.thiede@helsinki.fi> """ import os from os import walk import ...
36.328358
89
0.599425
# -*- coding: utf-8 -*- """ EOG channel assignment/fix. - read all preprocessed files - check whether EOG channels are correctly assigned - fix EOG assignment if not - save with '_EOG' extension Created on Mon Jan 8 15:55:09 2018 @author: Anja Thiede <anja.thiede@helsinki.fi> """ import os from os import walk import ...
0
0
0
0
0
0
0
0
0
128f59be0bf02ba1f5105f575b731eb827ba460f
3,496
py
Python
app/core/config.py
BrunoComitre/todo-fastapi-mongodb
f6033612cfebd4d2f19f9eab4e28eaa88a4ccfa1
[ "CNRI-Python", "RSA-MD" ]
null
null
null
app/core/config.py
BrunoComitre/todo-fastapi-mongodb
f6033612cfebd4d2f19f9eab4e28eaa88a4ccfa1
[ "CNRI-Python", "RSA-MD" ]
null
null
null
app/core/config.py
BrunoComitre/todo-fastapi-mongodb
f6033612cfebd4d2f19f9eab4e28eaa88a4ccfa1
[ "CNRI-Python", "RSA-MD" ]
null
null
null
import secrets import os import urllib.parse from dotenv import load_dotenv from starlette.datastructures import CommaSeparatedStrings from databases import DatabaseURL API_V1_STR = "/api" load_dotenv(".env") MAX_CONNECTIONS_COUNT = int(os.getenv("MAX_CONNECTIONS_COUNT", 10)) MIN_CONNECTIONS_COUNT = int(os.getenv(...
43.7
110
0.794622
import secrets import os import urllib.parse from dotenv import load_dotenv from starlette.datastructures import CommaSeparatedStrings from databases import DatabaseURL from urllib.parse import quote_plus from pydantic import BaseSettings API_V1_STR = "/api" load_dotenv(".env") MAX_CONNECTIONS_COUNT = int(os.gete...
84
0
0
0
0
0
0
26
45
ba3297569bcbc853538116b1b98556f588500820
18
py
Python
test/__init__.py
MrBitBucket/preppy-mirror
9b2356a24069e531710f13313c2131ffcd37d469
[ "BSD-3-Clause" ]
null
null
null
test/__init__.py
MrBitBucket/preppy-mirror
9b2356a24069e531710f13313c2131ffcd37d469
[ "BSD-3-Clause" ]
null
null
null
test/__init__.py
MrBitBucket/preppy-mirror
9b2356a24069e531710f13313c2131ffcd37d469
[ "BSD-3-Clause" ]
null
null
null
#enables imports
9
17
0.777778
#enables imports
0
0
0
0
0
0
0
0
0
569d38994265895d566b44cc2ef2672f4f5e8428
3,447
py
Python
config/m600/monitor/landing_zone.py
leozz37/makani
c94d5c2b600b98002f932e80a313a06b9285cc1b
[ "Apache-2.0" ]
1,178
2020-09-10T17:15:42.000Z
2022-03-31T14:59:35.000Z
config/m600/monitor/landing_zone.py
leozz37/makani
c94d5c2b600b98002f932e80a313a06b9285cc1b
[ "Apache-2.0" ]
1
2020-05-22T05:22:35.000Z
2020-05-22T05:22:35.000Z
config/m600/monitor/landing_zone.py
leozz37/makani
c94d5c2b600b98002f932e80a313a06b9285cc1b
[ "Apache-2.0" ]
107
2020-09-10T17:29:30.000Z
2022-03-18T09:00:14.000Z
# Copyright 2020 Makani Technologies LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
38.730337
80
0.644909
# Copyright 2020 Makani Technologies LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
0
2,749
0
0
0
0
0
9
68
3c896fd68ffa65179c436a507ddcb557ccb2edc4
361
py
Python
aether-odk-module/aether/odk/api/migrations/0101_xform_unique_index.py
eHealthAfrica/aether
6845d7eeebd4ae57332f73d74db3617e00032204
[ "Apache-2.0" ]
14
2018-08-09T20:57:16.000Z
2020-10-11T12:22:18.000Z
aether-odk-module/aether/odk/api/migrations/0101_xform_unique_index.py
eHealthAfrica/aether
6845d7eeebd4ae57332f73d74db3617e00032204
[ "Apache-2.0" ]
148
2018-07-24T10:52:29.000Z
2022-02-10T09:06:44.000Z
aether-odk-module/aether/odk/api/migrations/0101_xform_unique_index.py
eHealthAfrica/aether
6845d7eeebd4ae57332f73d74db3617e00032204
[ "Apache-2.0" ]
6
2018-07-25T13:33:10.000Z
2019-09-23T03:02:09.000Z
# Generated by Django 2.2.3 on 2019-07-24 15:08
20.055556
64
0.595568
# Generated by Django 2.2.3 on 2019-07-24 15:08 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('odk', '0100_initial_squashed'), ] operations = [ migrations.AlterUniqueTogether( name='xform', unique_together={('project', ...
0
0
0
255
0
0
0
11
46
d77d8eda6dabe7639080931dced891bebc2e6fe5
714
py
Python
tests/test_table_enforcer.py
xguse/table_enforcer
f3137839574bf8ea933a14ea16a8acba45e3e0c3
[ "MIT" ]
13
2017-11-16T23:24:17.000Z
2021-05-28T01:05:31.000Z
tests/test_table_enforcer.py
xguse/table_enforcer
f3137839574bf8ea933a14ea16a8acba45e3e0c3
[ "MIT" ]
1
2019-09-26T18:34:21.000Z
2021-10-12T17:18:24.000Z
tests/test_table_enforcer.py
xguse/table_enforcer
f3137839574bf8ea933a14ea16a8acba45e3e0c3
[ "MIT" ]
1
2017-11-17T17:18:31.000Z
2017-11-17T17:18:31.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """Tests for `table_enforcer` package."""
25.5
64
0.759104
#!/usr/bin/env python # -*- coding: utf-8 -*- """Tests for `table_enforcer` package.""" import pytest from .conftest import TABLE_PATH_1, TABLE_PATH_2 from . import Usage_Demo as ud from table_enforcer.errors import ValidationError, RecodingError from table_enforcer import Column, Enforcer def test_basic(): ud....
0
0
0
0
0
326
0
93
204
4af9fdad2a669fe44b6281c40a0452f218deb856
1,552
py
Python
selfdrive/test/tests/process_replay/compare_logs.py
iambluefred/Test_2
87de20745dfc918a639aca42d7ef167a1b4e2a63
[ "MIT" ]
null
null
null
selfdrive/test/tests/process_replay/compare_logs.py
iambluefred/Test_2
87de20745dfc918a639aca42d7ef167a1b4e2a63
[ "MIT" ]
null
null
null
selfdrive/test/tests/process_replay/compare_logs.py
iambluefred/Test_2
87de20745dfc918a639aca42d7ef167a1b4e2a63
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 import os import sys if "CI" in os.environ: tqdm = lambda x: x else: from tools.lib.logreader import LogReader if __name__ == "__main__": log1 = list(LogReader(sys.argv[1])) log2 = list(LogReader(sys.argv[2])) compare_logs(log1, log2, sys.argv[3:])
25.032258
83
0.653351
#!/usr/bin/env python2 import bz2 import os import sys import dictdiffer if "CI" in os.environ: tqdm = lambda x: x else: from tqdm import tqdm from tools.lib.logreader import LogReader def save_log(dest, log_msgs): dat = "" for msg in log_msgs: dat += msg.as_builder().to_bytes() dat = bz2.compress(dat)...
0
0
0
0
0
1,147
0
-15
138
9417b7e1f6a97193c09d7f3d61f0efaf43168bca
584
py
Python
newsme/NewsReader.py
lunfman/NewsMe
c429b7c143c69dfb5b8c3f17e91cfd8ef1be96f4
[ "MIT" ]
null
null
null
newsme/NewsReader.py
lunfman/NewsMe
c429b7c143c69dfb5b8c3f17e91cfd8ef1be96f4
[ "MIT" ]
null
null
null
newsme/NewsReader.py
lunfman/NewsMe
c429b7c143c69dfb5b8c3f17e91cfd8ef1be96f4
[ "MIT" ]
null
null
null
from html_creator import CreateHtml from get_news import GetNews from mail import ShareNews topics = ['github'] key = 'api_key' news = GetNews(key) news.articles_num = 1 create_html = CreateHtml() sender = ShareNews( mail='mail', password='pass', destination='to', smtp_server='smtp') for topic in topic...
18.83871
48
0.695205
from html_creator import CreateHtml from get_news import GetNews from mail import ShareNews topics = ['github'] key = 'api_key' news = GetNews(key) news.articles_num = 1 create_html = CreateHtml() sender = ShareNews( mail='mail', password='pass', destination='to', smtp_server='smtp') for topic in topic...
0
0
0
0
0
0
0
0
0
a96faaa762938e3365ab95589e023e3e7b6e16e0
1,404
py
Python
setup.py
Haikson/virtenviro-news
0ce85bace7308cbc009923e035cc95ede1641787
[ "Apache-2.0" ]
null
null
null
setup.py
Haikson/virtenviro-news
0ce85bace7308cbc009923e035cc95ede1641787
[ "Apache-2.0" ]
null
null
null
setup.py
Haikson/virtenviro-news
0ce85bace7308cbc009923e035cc95ede1641787
[ "Apache-2.0" ]
null
null
null
from distutils.core import setup from setuptools import find_packages, setup EXCLUDE_FROM_PACKAGES = [] setup( name='virtenviro-news', version="0.1.0" packages=find_packages(exclude=EXCLUDE_FROM_PACKAGES), include_package_data=True, url='http://www.virtenviro.org/', license='GPL3', author...
31.909091
71
0.60755
from distutils.core import setup from setuptools import find_packages, setup EXCLUDE_FROM_PACKAGES = [] setup( name='virtenviro-news', version="0.1.0" packages=find_packages(exclude=EXCLUDE_FROM_PACKAGES), include_package_data=True, url='http://www.virtenviro.org/', license='GPL3', author...
0
0
0
0
0
0
0
0
0
8ab55b8dba729af539f49920abaf3d8baa14945f
748
py
Python
blueprints/home_blueprint.py
headwinds/flask-now-postgres-offline
83420250c26dd3b2bcdfaed95fb310deccbd9db2
[ "MIT" ]
null
null
null
blueprints/home_blueprint.py
headwinds/flask-now-postgres-offline
83420250c26dd3b2bcdfaed95fb310deccbd9db2
[ "MIT" ]
5
2019-12-21T00:23:05.000Z
2022-03-21T22:17:43.000Z
blueprints/home_blueprint.py
headwinds/forge
83420250c26dd3b2bcdfaed95fb310deccbd9db2
[ "MIT" ]
null
null
null
from flask import Blueprint home_blueprint = Blueprint("home", __name__) # -------- Home --------- #
32.521739
87
0.688503
from flask import Blueprint, redirect, url_for, render_template, request, session, json from helpers.helpers_user import get_user, credentials_valid from forms.login_form import LoginForm home_blueprint = Blueprint("home", __name__) # -------- Home --------- # @home_blueprint.route('/home', methods=['GET']) def home...
0
438
0
0
0
0
0
116
89
3badb128bfd2e9778188437945375abc926b0df6
829
py
Python
adminApp/views.py
winsphinx/webApp
222c0877ed6f48d9c7939293c8ce83f274eb71b9
[ "MIT" ]
null
null
null
adminApp/views.py
winsphinx/webApp
222c0877ed6f48d9c7939293c8ce83f274eb71b9
[ "MIT" ]
null
null
null
adminApp/views.py
winsphinx/webApp
222c0877ed6f48d9c7939293c8ce83f274eb71b9
[ "MIT" ]
null
null
null
# Create your views here.
33.16
73
0.636912
from django.contrib.auth import authenticate, login, logout from django.contrib.auth.forms import UserCreationForm from django.shortcuts import redirect, render # Create your views here. def logout_view(request): logout(request) return redirect('adminApp:login') def register_view(request): i...
0
0
0
0
0
584
0
95
117
a469b73d55c54797b226d12396d4906820bbf794
3,802
py
Python
dag_car_abandon.py
kspaler/teste-b2w
a6531d79a61fe638338b2904ba423baf2eb43e73
[ "MIT" ]
null
null
null
dag_car_abandon.py
kspaler/teste-b2w
a6531d79a61fe638338b2904ba423baf2eb43e73
[ "MIT" ]
null
null
null
dag_car_abandon.py
kspaler/teste-b2w
a6531d79a61fe638338b2904ba423baf2eb43e73
[ "MIT" ]
null
null
null
# Bibliotecas from datetime import datetime, timedelta from airflow import DAG from airflow.operators.python import PythonOperator from airflow.operators.bash_operator import BashOperator import os home_dir='~/Documents/teste-b2w' stream = os.popen('echo ~/Documents/teste-b2w') output = stream.read() dir_home=outpu...
33.350877
164
0.670963
# Bibliotecas from datetime import datetime, timedelta from airflow import DAG from airflow.operators.python import PythonOperator from airflow.operators.bash_operator import BashOperator from airflow.utils.dates import days_ago import json import pandas as pd from pandas.io.json import json_normalize #package for ...
14
0
0
0
0
1,753
0
27
155
7b44456fe60b11c5fd7a657b04545e306469d581
644
py
Python
listusers.py
codingforhelp/fbserv
b09cc2ce20eaa3714e80d23e0f5741f144d2eed2
[ "MIT" ]
5
2019-01-31T08:09:53.000Z
2020-04-13T22:48:25.000Z
listusers.py
codingforhelp/fbserv
b09cc2ce20eaa3714e80d23e0f5741f144d2eed2
[ "MIT" ]
2
2021-04-30T21:04:37.000Z
2021-06-01T23:42:18.000Z
listusers.py
codingforhelp/fbserv
b09cc2ce20eaa3714e80d23e0f5741f144d2eed2
[ "MIT" ]
3
2019-08-04T07:51:58.000Z
2022-02-25T13:39:30.000Z
import firebase_admin from firebase_admin import credentials, auth from utils.ansi import pretty, brightwhite cred = credentials.Certificate('firebase/fbsacckey.json') firebase_admin.initialize_app(cred) page = auth.list_users() while page: for user in page.users: uid = user.uid data = user.__dict...
28
57
0.630435
import firebase_admin from firebase_admin import credentials, auth from time import sleep from utils.ansi import pretty, brightwhite cred = credentials.Certificate('firebase/fbsacckey.json') firebase_admin.initialize_app(cred) page = auth.list_users() while page: for user in page.users: uid = user.uid ...
0
0
0
0
0
0
0
1
22
72a88074275fbcdd24c13a6b972d526580f090ff
1,979
py
Python
_site/tomat/apps/uploads/views.py
Lisaveta-K/lisaveta-k.github.io
96306c4d2634d62e6d0ac504aee8ca91f8b3de11
[ "MIT" ]
null
null
null
_site/tomat/apps/uploads/views.py
Lisaveta-K/lisaveta-k.github.io
96306c4d2634d62e6d0ac504aee8ca91f8b3de11
[ "MIT" ]
null
null
null
_site/tomat/apps/uploads/views.py
Lisaveta-K/lisaveta-k.github.io
96306c4d2634d62e6d0ac504aee8ca91f8b3de11
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # TODO: require_POST # TODO: # TODO: require_POST # TODO:
28.681159
70
0.641233
# -*- coding: utf-8 -*- import datetime import uuid import os.path from django.http import HttpResponseForbidden, HttpResponse from django.core.files.storage import default_storage from django.views.decorators.csrf import csrf_exempt from pytils.translit import slugify from uploads.forms import ImageForm, FileForm f...
232
1,388
0
0
0
0
0
130
245
8312cb7f707052fbf9521d5c81de8b48994e1506
3,064
py
Python
fivetran_provider/example_dags/example_fivetran_bigquery.py
PubChimps/airflow-provider-fivetran-1
f84f3fd72356ea453361af4ce8c40eabe5d1c733
[ "Apache-2.0" ]
21
2021-02-19T20:30:01.000Z
2022-01-26T21:53:25.000Z
fivetran_provider/example_dags/example_fivetran_bigquery.py
PubChimps/airflow-provider-fivetran-1
f84f3fd72356ea453361af4ce8c40eabe5d1c733
[ "Apache-2.0" ]
34
2021-02-23T02:13:47.000Z
2022-03-03T14:41:31.000Z
fivetran_provider/example_dags/example_fivetran_bigquery.py
PubChimps/airflow-provider-fivetran-1
f84f3fd72356ea453361af4ce8c40eabe5d1c733
[ "Apache-2.0" ]
13
2021-02-23T01:54:41.000Z
2022-01-04T12:05:25.000Z
from airflow import DAG from airflow.operators.dummy_operator import DummyOperator from airflow.providers.google.cloud.sensors.bigquery import BigQueryTableExistenceSensor from airflow.providers.google.cloud.operators.bigquery import BigQueryValueCheckOperator from fivetran_provider.operators.fivetran import FivetranOp...
35.218391
88
0.70953
from airflow import DAG, AirflowException from airflow.operators.dummy_operator import DummyOperator from airflow.providers.google.cloud.sensors.bigquery import BigQueryTableExistenceSensor from airflow.providers.google.cloud.operators.bigquery import BigQueryValueCheckOperator from fivetran_provider.operators.fivetran...
0
0
0
0
0
0
0
18
0
73467ba0fe258371769d468a9a73899ba655c859
1,128
py
Python
BaseFile/GetProxyIp.py
solider245/Requests_Html_Spider
3ea30f8f16f88e8f2934b411fa720c76ad054482
[ "Apache-2.0" ]
10
2018-11-21T09:38:03.000Z
2021-02-01T07:13:37.000Z
BaseFile/GetProxyIp.py
solider245/Requests_Html_Spider
3ea30f8f16f88e8f2934b411fa720c76ad054482
[ "Apache-2.0" ]
null
null
null
BaseFile/GetProxyIp.py
solider245/Requests_Html_Spider
3ea30f8f16f88e8f2934b411fa720c76ad054482
[ "Apache-2.0" ]
8
2019-03-21T13:33:08.000Z
2021-02-01T07:20:49.000Z
#!/usr/bin/env python # encoding: utf-8 """ @version: v1.0 @author: W_H_J @license: Apache Licence @contact: 415900617@qq.com @software: PyCharm @file: GetProxyIp.py @time: 2018/9/25 17:45 @describe: IP """ import sys import os sys.path.append(os.path.abspath(os.path.dirname(__file__) + '/' + '..')) sys.p...
20.142857
72
0.559397
#!/usr/bin/env python # encoding: utf-8 """ @version: v1.0 @author: W_H_J @license: Apache Licence @contact: 415900617@qq.com @software: PyCharm @file: GetProxyIp.py @time: 2018/9/25 17:45 @describe: 返回代理IP """ import sys import os import random import time sys.path.append(os.path.abspath(os.path.dirname(...
81
296
0
351
0
0
0
-18
67
91290d5d9e402ac07467d46bfe83bfbc81306ced
452
py
Python
setup.py
chrsbats/kvstore
6d478ac47f52eddd7fc84c334e4a1d5c040a8a5d
[ "MIT" ]
2
2018-09-08T04:36:13.000Z
2019-04-13T15:35:07.000Z
setup.py
chrsbats/kvstore
6d478ac47f52eddd7fc84c334e4a1d5c040a8a5d
[ "MIT" ]
3
2015-03-10T10:28:16.000Z
2015-03-10T10:29:38.000Z
setup.py
chrsbats/kvstore
6d478ac47f52eddd7fc84c334e4a1d5c040a8a5d
[ "MIT" ]
null
null
null
from distutils.core import setup setup( name='kvstore', version='0.4', author='C Bates', author_email='chrsbats@gmail.com', packages=['kvstore'], scripts=[], url='https://github.com/chrsbats/kvstore', license='LICENSE.TXT', description='Key value store with Filesystem and S3 backend...
25.111111
71
0.652655
from distutils.core import setup setup( name='kvstore', version='0.4', author='C Bates', author_email='chrsbats@gmail.com', packages=['kvstore'], scripts=[], url='https://github.com/chrsbats/kvstore', license='LICENSE.TXT', description='Key value store with Filesystem and S3 backend...
0
0
0
0
0
0
0
0
0
f4921af7a3c83ba3c1199e6e5f19c6df3b94bdc6
547
py
Python
tests/test_methods/test_utils.py
NationalJournal/py-votesmart
9194f28564d8d005386f498b1fc915cc7772f38b
[ "BSD-3-Clause" ]
7
2018-03-08T16:33:02.000Z
2020-12-22T08:12:31.000Z
tests/test_methods/test_utils.py
NationalJournal/py-votesmart
9194f28564d8d005386f498b1fc915cc7772f38b
[ "BSD-3-Clause" ]
7
2018-02-13T02:40:29.000Z
2018-03-08T17:04:53.000Z
tests/test_methods/test_utils.py
NationalJournal/py-votesmart
9194f28564d8d005386f498b1fc915cc7772f38b
[ "BSD-3-Clause" ]
4
2018-02-13T13:41:28.000Z
2021-12-21T22:14:54.000Z
# import _parse_api_response, VotesmartApiError
28.789474
59
0.738574
import pytest from votesmart.methods import utils as uts from votesmart.methods.containers import VotesmartApiObject # import _parse_api_response, VotesmartApiError def test_sanity(): assert 1 + 1 == 2 def test_parse_api_response(): response = {"noerror": "here"} value = uts.parse_api_response(response) ...
0
0
0
0
0
312
0
51
135
68cb9e91964699d07d0df58268025c9484c1878f
1,043
py
Python
run.py
fabric8-analytics/fabric8-analytics-github-events-monitor
bda33c3521d36677a7c70056621e18ff24e525c3
[ "Apache-2.0" ]
null
null
null
run.py
fabric8-analytics/fabric8-analytics-github-events-monitor
bda33c3521d36677a7c70056621e18ff24e525c3
[ "Apache-2.0" ]
43
2018-12-10T10:53:05.000Z
2021-12-13T19:53:58.000Z
run.py
fabric8-analytics/fabric8-analytics-github-events-monitor
bda33c3521d36677a7c70056621e18ff24e525c3
[ "Apache-2.0" ]
5
2018-12-07T11:20:55.000Z
2022-01-28T23:31:25.000Z
"""Entry point for the service.""" import logging import os from time import sleep from ghmonitor.monitor import get_auth_header from ghmonitor.backend import get_backend_by_name from ghmonitor.utils import create_monitors, process_new_events logger = logging.getLogger('Monitor') if __name__ == "__main__": #...
25.439024
83
0.707574
"""Entry point for the service.""" import logging import os from time import sleep from ghmonitor.monitor import get_auth_header from ghmonitor.backend import get_backend_by_name from ghmonitor.utils import create_monitors, process_new_events logger = logging.getLogger('Monitor') if __name__ == "__main__": #...
0
0
0
0
0
0
0
0
0