hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
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
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
251
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
3
251
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.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
18e8661bfba7a01963831fc9dac3f2b59f8ea633
2,074
py
Python
examples/set_holidaydates.py
ultratolido/ekmmetters
e15325023262e228b4dc037021c28a8d2b9b9b03
[ "MIT" ]
null
null
null
examples/set_holidaydates.py
ultratolido/ekmmetters
e15325023262e228b4dc037021c28a8d2b9b9b03
[ "MIT" ]
null
null
null
examples/set_holidaydates.py
ultratolido/ekmmetters
e15325023262e228b4dc037021c28a8d2b9b9b03
[ "MIT" ]
null
null
null
""" Simple example set holiday dates (c) 2016 EKM Metering. """ import random from ekmmeters import * #port setup my_port_name = "COM3" my_meter_address = "300001162" #log to console ekm_set_log(ekm_print_log) # init port and meter port = SerialPort(my_port_name) if (port.initPort() == True): my_meter = V4Meter(...
27.289474
49
0.747348
18e9b27e387d5cd010bbb4d876619abf03cb83f9
4,242
py
Python
FCN.py
alexandrefelipemuller/timeseries_shapelet_transferlearning
be19c05ae88c5bf733fedcfed24a7140168f9727
[ "Apache-2.0" ]
null
null
null
FCN.py
alexandrefelipemuller/timeseries_shapelet_transferlearning
be19c05ae88c5bf733fedcfed24a7140168f9727
[ "Apache-2.0" ]
null
null
null
FCN.py
alexandrefelipemuller/timeseries_shapelet_transferlearning
be19c05ae88c5bf733fedcfed24a7140168f9727
[ "Apache-2.0" ]
1
2021-03-31T07:46:37.000Z
2021-03-31T07:46:37.000Z
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Sun Oct 30 20:11:19 2016 @author: stephen """ from __future__ import print_function from keras.models import Model from keras.utils import np_utils import numpy as np import os from keras.callbacks import ModelCheckpoint import pandas as pd import sys i...
40.018868
169
0.677982
18e9e49334b24d6e872726b2848571c7d6855286
624
py
Python
localpackage/calcs.py
chapmanwilliam/Ogden8
e17b26609fc3cdd5650bfeba387bd7253513e00e
[ "Apache-2.0" ]
null
null
null
localpackage/calcs.py
chapmanwilliam/Ogden8
e17b26609fc3cdd5650bfeba387bd7253513e00e
[ "Apache-2.0" ]
null
null
null
localpackage/calcs.py
chapmanwilliam/Ogden8
e17b26609fc3cdd5650bfeba387bd7253513e00e
[ "Apache-2.0" ]
null
null
null
import os indentSize=1 #size of the indent
20.8
50
0.56891
18ea5f7f2758aa0649c55416dd1e9152a5f44a15
7,146
py
Python
src/cops_and_robots/fusion/probability.py
COHRINT/cops_and_robots
1df99caa1e38bde1b5ce2d04389bc232a68938d6
[ "Apache-2.0" ]
3
2016-01-19T17:54:51.000Z
2019-10-21T12:09:03.000Z
src/cops_and_robots/fusion/probability.py
COHRINT/cops_and_robots
1df99caa1e38bde1b5ce2d04389bc232a68938d6
[ "Apache-2.0" ]
null
null
null
src/cops_and_robots/fusion/probability.py
COHRINT/cops_and_robots
1df99caa1e38bde1b5ce2d04389bc232a68938d6
[ "Apache-2.0" ]
5
2015-02-19T02:53:24.000Z
2019-03-05T20:29:12.000Z
#!/usr/bin/env python from __future__ import division """MODULE_DESCRIPTION""" __author__ = "Nick Sweet" __copyright__ = "Copyright 2015, Cohrint" __credits__ = ["Nick Sweet", "Nisar Ahmed"] __license__ = "GPL" __version__ = "1.0.0" __maintainer__ = "Nick Sweet" __email__ = "nick.sweet@colorado.edu" __status__ = "Deve...
34.191388
102
0.502379
18ea77727f1cb2220f22073ef4e4393ab431d65a
7,952
py
Python
vulnman/tests/mixins.py
blockomat2100/vulnman
835ff3aae1168d8e2fa5556279bc86efd2e46472
[ "MIT" ]
null
null
null
vulnman/tests/mixins.py
blockomat2100/vulnman
835ff3aae1168d8e2fa5556279bc86efd2e46472
[ "MIT" ]
23
2021-12-01T10:00:38.000Z
2021-12-11T11:43:13.000Z
vulnman/tests/mixins.py
blockomat2100/vulnman
835ff3aae1168d8e2fa5556279bc86efd2e46472
[ "MIT" ]
null
null
null
from django.contrib.auth.models import User, Group from django.utils import timezone from django.conf import settings from django.urls import reverse_lazy from apps.projects.models import Project, Client, ProjectContributor from ddf import G from guardian.shortcuts import assign_perm
47.616766
111
0.692027
18ea8109933fbbfe2b0922e33bce91ae934e86e1
2,010
py
Python
StateTracing/tester_helper.py
junchenfeng/diagnosis_tracing
4e26e2ad0c7abc547f22774b6c9c299999a152c3
[ "MIT" ]
null
null
null
StateTracing/tester_helper.py
junchenfeng/diagnosis_tracing
4e26e2ad0c7abc547f22774b6c9c299999a152c3
[ "MIT" ]
null
null
null
StateTracing/tester_helper.py
junchenfeng/diagnosis_tracing
4e26e2ad0c7abc547f22774b6c9c299999a152c3
[ "MIT" ]
1
2020-09-08T13:42:16.000Z
2020-09-08T13:42:16.000Z
# -*- coding: utf-8 -*- import numpy as np from torch import load as Tload from torch import tensor from dataloader import read_data,DataLoader,load_init from cdkt import CDKT if 'model' not in dir(): model = CDKT() model.load_state_dict(Tload('model.pkl')) # inits = load_init() data = """0...
35.892857
60
0.783085
18eaed4c6444d0552d8dc7a9cc73624816ce21fa
3,958
py
Python
grpc-errors/stub/hello_pb2.py
twotwo/tools-python
b9e7a97e58fb0a3f3fb5e8b674e64a997669c2c4
[ "MIT" ]
null
null
null
grpc-errors/stub/hello_pb2.py
twotwo/tools-python
b9e7a97e58fb0a3f3fb5e8b674e64a997669c2c4
[ "MIT" ]
null
null
null
grpc-errors/stub/hello_pb2.py
twotwo/tools-python
b9e7a97e58fb0a3f3fb5e8b674e64a997669c2c4
[ "MIT" ]
1
2016-10-21T07:51:24.000Z
2016-10-21T07:51:24.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: hello.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf impor...
27.678322
348
0.741031
18eb73361ec3feb33d8a12b5b8881d917685a4cc
504
py
Python
ckanext-sitemap/ckanext/sitemap/plugin.py
alexandru-m-g/hdx-ckan
647f1f23f0505fa195601245b758edcaf4d25985
[ "Apache-2.0" ]
1
2020-03-07T02:47:15.000Z
2020-03-07T02:47:15.000Z
ckanext-sitemap/ckanext/sitemap/plugin.py
datopian/hdx-ckan
2d8871c035a18e48b53859fec522b997b500afe9
[ "Apache-2.0" ]
null
null
null
ckanext-sitemap/ckanext/sitemap/plugin.py
datopian/hdx-ckan
2d8871c035a18e48b53859fec522b997b500afe9
[ "Apache-2.0" ]
null
null
null
''' Sitemap plugin for CKAN ''' from ckan.plugins import implements, SingletonPlugin from ckan.plugins import IRoutes
29.647059
96
0.712302
18ebf74aba4efdef03b71cc4501701981953cbd1
3,049
py
Python
experiment_wrapper/__init__.py
stonkens/experiment_wrapper
78b02a09d412097834bc81bba4452db1738b99da
[ "MIT" ]
2
2022-03-24T22:31:20.000Z
2022-03-25T03:26:01.000Z
experiment_wrapper/__init__.py
stonkens/experiment_wrapper
78b02a09d412097834bc81bba4452db1738b99da
[ "MIT" ]
null
null
null
experiment_wrapper/__init__.py
stonkens/experiment_wrapper
78b02a09d412097834bc81bba4452db1738b99da
[ "MIT" ]
null
null
null
from typing import Any, Dict, List class Controller: """Provides a template for the functionality required from a controller class to interface with the experiment wrappper functionality. A controller class must implement the following methods: - __call__: takes in the current state and time and ret...
32.094737
119
0.700886
18ecd7bb8ba5638e693807de98d542a164bfce66
2,870
py
Python
Figure_2/panel_a_Count_mC_bin.py
Wustl-Zhanglab/Placenta_Epigenome
227f2a42e5c0af821d372b42c9bcf9e561e4627c
[ "MIT" ]
2
2021-06-28T09:16:17.000Z
2021-07-15T02:39:35.000Z
Figure_2/panel_a_Count_mC_bin.py
Wustl-Zhanglab/Placenta_Epigenome
227f2a42e5c0af821d372b42c9bcf9e561e4627c
[ "MIT" ]
null
null
null
Figure_2/panel_a_Count_mC_bin.py
Wustl-Zhanglab/Placenta_Epigenome
227f2a42e5c0af821d372b42c9bcf9e561e4627c
[ "MIT" ]
2
2020-05-29T01:06:19.000Z
2021-07-02T01:04:50.000Z
#!/usr/bin/python # programmer : Bo # usage: Count_Reads_bin.py file_list import sys import re import random import string import time if __name__=="__main__": tS = time.time() bin = 50000 BL = Read_blacklist() #(B_site,B_name,C_reads,tt) = Read_data(sys.argv[1]) OP = main(sys.argv[1])...
27.075472
94
0.444599
18ed346e6be46b5b4a74b44f23d751e2dd5b808b
6,648
py
Python
slm_lab/agent/memory/replay.py
jmribeiro/SLM-Lab
7cf7a10e56c9558764544e7683023945c72a42a7
[ "MIT" ]
1,074
2017-11-10T02:20:09.000Z
2022-03-31T18:14:02.000Z
slm_lab/agent/memory/replay.py
jmribeiro/SLM-Lab
7cf7a10e56c9558764544e7683023945c72a42a7
[ "MIT" ]
98
2017-11-04T22:00:01.000Z
2022-03-31T14:13:45.000Z
slm_lab/agent/memory/replay.py
jmribeiro/SLM-Lab
7cf7a10e56c9558764544e7683023945c72a42a7
[ "MIT" ]
229
2018-01-07T22:39:09.000Z
2022-03-20T12:04:31.000Z
from collections import deque from copy import deepcopy from slm_lab.agent.memory.base import Memory from slm_lab.lib import logger, math_util, util from slm_lab.lib.decorator import lab_api import numpy as np import pydash as ps logger = logger.get_logger(__name__) def sample_next_states(head, max_size, ns_idx_offs...
43.168831
170
0.646811
18ee4afcda48045a6b4b58a5f641a2905cb15b51
1,958
py
Python
misc/docker/GenDockerfile.py
Wheest/atJIT
7e29862db7b5eb9cee470edeb165380f881903c9
[ "BSD-3-Clause" ]
47
2018-08-03T09:15:08.000Z
2022-02-14T07:06:12.000Z
misc/docker/GenDockerfile.py
Wheest/atJIT
7e29862db7b5eb9cee470edeb165380f881903c9
[ "BSD-3-Clause" ]
15
2018-06-18T19:50:50.000Z
2019-08-29T16:52:11.000Z
misc/docker/GenDockerfile.py
Wheest/atJIT
7e29862db7b5eb9cee470edeb165380f881903c9
[ "BSD-3-Clause" ]
5
2018-08-28T02:35:44.000Z
2021-11-01T06:54:51.000Z
import yaml import sys Head = "# Dockerfile derived from easy::jit's .travis.yml" From = "ubuntu:latest" Manteiner = "Juan Manuel Martinez Caamao jmartinezcaamao@gmail.com" base_packages = ['build-essential', 'python', 'python-pip', 'git', 'wget', 'unzip', 'cmake'] travis = yaml.load(open(sys.argv[1])) travis_sources...
35.6
152
0.704801
18eebda43ebee826c1945694815a04fc15eb96ef
278
py
Python
howareyoutwitter/api/tasks.py
tyheise/how-are-you-twitter
1e4b938381e7d552486e981b0f696f330635ba82
[ "MIT" ]
1
2019-10-24T20:47:24.000Z
2019-10-24T20:47:24.000Z
howareyoutwitter/api/tasks.py
tyheise/how-are-you-twitter
1e4b938381e7d552486e981b0f696f330635ba82
[ "MIT" ]
12
2019-10-22T22:32:40.000Z
2021-01-07T05:13:25.000Z
howareyoutwitter/api/tasks.py
tyheise/how-are-you-twitter
1e4b938381e7d552486e981b0f696f330635ba82
[ "MIT" ]
1
2020-01-02T22:28:52.000Z
2020-01-02T22:28:52.000Z
from api import models from api.twitter_tools.tweet_seeker import TweetSeeker
19.857143
54
0.672662
18ef5021800d056c99fea4a85de29d3c6771923f
390
py
Python
examples/example1.py
wallrj/twisted-names-talk
d3098ab6745abd0d14bb0b6eef41727e5a89de1f
[ "MIT" ]
2
2017-12-01T00:14:25.000Z
2020-07-01T00:27:44.000Z
examples/example1.py
wallrj/twisted-names-talk
d3098ab6745abd0d14bb0b6eef41727e5a89de1f
[ "MIT" ]
null
null
null
examples/example1.py
wallrj/twisted-names-talk
d3098ab6745abd0d14bb0b6eef41727e5a89de1f
[ "MIT" ]
null
null
null
from twisted.internet import task from twisted.names import dns task.react(main)
24.375
78
0.697436
18f0e1c869c59304bc5b9379e901a05831726491
5,975
py
Python
utility.py
ying-wen/pmln
76d82dd620504ac00035d9d0dc9d752cd53518d4
[ "MIT" ]
1
2019-09-10T16:42:34.000Z
2019-09-10T16:42:34.000Z
utility.py
ying-wen/pmln
76d82dd620504ac00035d9d0dc9d752cd53518d4
[ "MIT" ]
null
null
null
utility.py
ying-wen/pmln
76d82dd620504ac00035d9d0dc9d752cd53518d4
[ "MIT" ]
null
null
null
from __future__ import print_function import numpy as np import pandas as pd from sklearn import metrics def get_substitute_cate(sample, target_index, opts): field_i = opts.fields_index_inverse.get(sample[target_index]) if field_i is None: field_i = np.random.choice(opts.fields_index.keys()...
36.882716
89
0.60887
18f0f41a4a703e23e45d0e7b9b74208ed5cbd775
1,294
py
Python
setup.py
jeremycline/crochet
ecfc22cefa90f3dfbafa71883c1470e7294f2b6d
[ "MIT" ]
null
null
null
setup.py
jeremycline/crochet
ecfc22cefa90f3dfbafa71883c1470e7294f2b6d
[ "MIT" ]
null
null
null
setup.py
jeremycline/crochet
ecfc22cefa90f3dfbafa71883c1470e7294f2b6d
[ "MIT" ]
1
2020-01-25T18:00:31.000Z
2020-01-25T18:00:31.000Z
try: from setuptools import setup except ImportError: from distutils.core import setup import versioneer def read(path): """ Read the contents of a file. """ with open(path) as f: return f.read() setup( classifiers=[ 'Intended Audience :: Developers', 'License ::...
28.130435
71
0.616692
18f12f8a5d648308d20dd8053de45efc7d50fb10
1,071
py
Python
polling_test.py
ngocdh236/pypusu
2453ca4236e4467d4fc0b7dea062ae195183b293
[ "MIT" ]
null
null
null
polling_test.py
ngocdh236/pypusu
2453ca4236e4467d4fc0b7dea062ae195183b293
[ "MIT" ]
null
null
null
polling_test.py
ngocdh236/pypusu
2453ca4236e4467d4fc0b7dea062ae195183b293
[ "MIT" ]
null
null
null
from __future__ import division from __future__ import print_function from builtins import range from past.utils import old_div from pypusu.polling import PuSuClient from time import sleep, time if __name__ == "__main__": print("Connecting") c = PuSuClient("ws://127.0.0.1:55000") count = 0 print("Aut...
22.3125
74
0.601307
18f2ad5a7c870598e6dec3394ee47ca770ec9558
3,289
py
Python
tests/test_nacl.py
intangere/NewHope_X25519_XSalsa20_Poly1305
459914e520bcb5aa207a11533ae217d50719307d
[ "MIT" ]
null
null
null
tests/test_nacl.py
intangere/NewHope_X25519_XSalsa20_Poly1305
459914e520bcb5aa207a11533ae217d50719307d
[ "MIT" ]
1
2021-06-21T03:07:13.000Z
2021-06-21T03:07:13.000Z
tests/test_nacl.py
intangere/NewHope_X25519_XSalsa20_Poly1305
459914e520bcb5aa207a11533ae217d50719307d
[ "MIT" ]
null
null
null
# Import libnacl libs import libnacl import libnacl.utils # Import python libs import unittest t = TestPublic() t.test_box_seal()
38.244186
72
0.663728
18f2c7ccc01f817c8542ea8ba418a16fde40bf5a
2,815
py
Python
gui.py
flifloo/PyTchat
89e0305557cfedba7637f061184d020ac7f71eeb
[ "MIT" ]
1
2019-07-27T08:43:05.000Z
2019-07-27T08:43:05.000Z
gui.py
flifloo/PyTchat
89e0305557cfedba7637f061184d020ac7f71eeb
[ "MIT" ]
5
2019-07-19T15:11:16.000Z
2019-07-24T15:11:00.000Z
gui.py
flifloo/PyTchat
89e0305557cfedba7637f061184d020ac7f71eeb
[ "MIT" ]
null
null
null
from tkinter import Tk, Frame, Scrollbar, Label, Text, Button, Entry, StringVar, IntVar, TclError from tkinter.messagebox import showerror, showwarning from client import Client from threading import Thread from socket import error as socket_error destroy = False login = Tk() login.title("Login") host = StringV...
27.067308
97
0.628064
18f342f2a9acba64d1ea5575f081da8b2ad4064d
281
py
Python
nautobot_secrets_providers/urls.py
jifox/nautobot-plugin-secrets-providers
4d6ca51d0c78b4785f78909b04cf7c7b33c02e5d
[ "Apache-2.0" ]
6
2021-12-22T21:26:12.000Z
2022-02-16T10:00:04.000Z
nautobot_secrets_providers/urls.py
jifox/nautobot-plugin-secrets-providers
4d6ca51d0c78b4785f78909b04cf7c7b33c02e5d
[ "Apache-2.0" ]
9
2021-12-14T13:43:13.000Z
2022-03-29T18:49:55.000Z
nautobot_secrets_providers/urls.py
jifox/nautobot-plugin-secrets-providers
4d6ca51d0c78b4785f78909b04cf7c7b33c02e5d
[ "Apache-2.0" ]
2
2022-02-04T19:11:09.000Z
2022-03-22T16:23:31.000Z
"""Django urlpatterns declaration for nautobot_secrets_providers plugin.""" from django.urls import path from nautobot_secrets_providers import views app_name = "nautobot_secrets_providers" urlpatterns = [ path("", views.SecretsProvidersHomeView.as_view(), name="home"), ]
23.416667
75
0.786477
18f380451d6001349051a85381a7ca31b31818f6
1,920
py
Python
nadlogar/quizzes/views.py
LenartBucar/nadlogar
2aba693254d56896419d09e066f91551492f8980
[ "MIT" ]
null
null
null
nadlogar/quizzes/views.py
LenartBucar/nadlogar
2aba693254d56896419d09e066f91551492f8980
[ "MIT" ]
null
null
null
nadlogar/quizzes/views.py
LenartBucar/nadlogar
2aba693254d56896419d09e066f91551492f8980
[ "MIT" ]
null
null
null
from django.contrib.auth.decorators import login_required from django.core.exceptions import PermissionDenied from django.shortcuts import get_object_or_404, redirect, render from .forms import QuizForm from .models import Quiz
28.656716
73
0.690625
18f4895ff656c51b070791d34f8e28cf58f2c463
6,757
py
Python
cogs/vote.py
FFrost/CBot
aee077ee36462cfef14a3fb2fa5e3c1ffe741064
[ "MIT" ]
4
2018-06-26T08:15:04.000Z
2019-10-09T22:49:38.000Z
cogs/vote.py
FFrost/CBot
aee077ee36462cfef14a3fb2fa5e3c1ffe741064
[ "MIT" ]
null
null
null
cogs/vote.py
FFrost/CBot
aee077ee36462cfef14a3fb2fa5e3c1ffe741064
[ "MIT" ]
null
null
null
import discord from discord.ext import commands import asyncio import time from enum import Enum def setup(bot): bot.add_cog(Vote(bot))
35.563158
168
0.557052
18f4a88074003325bea709addb8e527765d91168
5,227
py
Python
async_limits/storage/memcached.py
anomit/limits
a02d3234664d2b4da9968fd5ad25899ce106517a
[ "MIT" ]
1
2021-06-21T13:51:56.000Z
2021-06-21T13:51:56.000Z
async_limits/storage/memcached.py
anomit/limits
a02d3234664d2b4da9968fd5ad25899ce106517a
[ "MIT" ]
null
null
null
async_limits/storage/memcached.py
anomit/limits
a02d3234664d2b4da9968fd5ad25899ce106517a
[ "MIT" ]
null
null
null
import inspect import threading import time from six.moves import urllib from ..errors import ConfigurationError from ..util import get_dependency from .base import Storage
32.465839
79
0.543524
18f6a37e4dfb35bf57b4cd1ecadb7071de8cbf6b
4,617
py
Python
floreal/views/view_purchases.py
caracole-io/circuitscourts
4e9279226373ae41eb4d0e0f37f84f12197f34ff
[ "MIT" ]
null
null
null
floreal/views/view_purchases.py
caracole-io/circuitscourts
4e9279226373ae41eb4d0e0f37f84f12197f34ff
[ "MIT" ]
null
null
null
floreal/views/view_purchases.py
caracole-io/circuitscourts
4e9279226373ae41eb4d0e0f37f84f12197f34ff
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- import os from django.http import HttpResponse, HttpResponseForbidden from django.shortcuts import render_to_response from django.contrib.auth.decorators import login_required from caracole import settings from .decorators import nw_admin_required from .getters import get_de...
41.972727
118
0.706953
18f75103fffe006c35337768f20ad10b43a5b636
411
py
Python
hack_today_2017/web/web_time_solver.py
runsel/CTF_Writeups
df3d8469b981265d4d43bfc90e75075a95acb1dd
[ "MIT" ]
4
2019-01-07T03:15:45.000Z
2021-01-10T04:58:15.000Z
hack_today_2017/web/web_time_solver.py
runsel/CTF_Writeups
df3d8469b981265d4d43bfc90e75075a95acb1dd
[ "MIT" ]
null
null
null
hack_today_2017/web/web_time_solver.py
runsel/CTF_Writeups
df3d8469b981265d4d43bfc90e75075a95acb1dd
[ "MIT" ]
3
2018-10-21T19:17:34.000Z
2020-07-07T08:58:25.000Z
import requests charset = "abcdefghijklmnopqrstuvwxyz0123456789_{}" password = "HackToday{" url = "http://sawah.ittoday.web.id:40137/" while(password[-1]!="}"): for i in charset: r = requests.get(url) payload = {'password': password+i, 'submit': 'Submit+Query'} r = requests.post(url, data=...
27.4
68
0.615572
18f9f056fd0c54a5b1e0f0f03ecf846e53698354
484
py
Python
mayan/__init__.py
sneha-rk/drawings-version-control
4e5a2bf0fd8b8026f1d3d56917b5be4b5c7be497
[ "Apache-2.0" ]
1
2021-05-14T18:40:37.000Z
2021-05-14T18:40:37.000Z
mayan/__init__.py
sneha-rk/drawings-version-control
4e5a2bf0fd8b8026f1d3d56917b5be4b5c7be497
[ "Apache-2.0" ]
null
null
null
mayan/__init__.py
sneha-rk/drawings-version-control
4e5a2bf0fd8b8026f1d3d56917b5be4b5c7be497
[ "Apache-2.0" ]
null
null
null
from __future__ import unicode_literals <<<<<<< HEAD __title__ = 'Mayan EDMS' __version__ = '2.7.3' __build__ = 0x020703 ======= __title__ = 'IITH DVC' __version__ = '2.7.2' __build__ = 0x020702 >>>>>>> 4cedd41ab6b9750abaebc35d1970556408d83cf5 __author__ = 'Roberto Rosario' __author_email__ = 'roberto.rosario@mayan-ed...
28.470588
74
0.760331
18fa914340e673af7a09db0d4d032b0e04e6bdee
5,728
py
Python
ldt/utils/usaf/bcsd_preproc/lib_bcsd_metrics/BCSD_function.py
rkim3/LISF
afaf6a228d2b29a1d26111acc951204f0b436387
[ "Apache-2.0" ]
67
2018-11-13T21:40:54.000Z
2022-02-23T08:11:56.000Z
ldt/utils/usaf/bcsd_preproc/lib_bcsd_metrics/BCSD_function.py
dmocko/LISF
08d024d6d5fe66db311e43e78740842d653749f4
[ "Apache-2.0" ]
679
2018-11-13T20:10:29.000Z
2022-03-30T19:55:25.000Z
ldt/utils/usaf/bcsd_preproc/lib_bcsd_metrics/BCSD_function.py
dmocko/LISF
08d024d6d5fe66db311e43e78740842d653749f4
[ "Apache-2.0" ]
119
2018-11-08T15:53:35.000Z
2022-03-28T10:16:01.000Z
from __future__ import division import pandas as pd import numpy as np import calendar import os.path as op import sys from datetime import datetime from dateutil.relativedelta import relativedelta from scipy.stats import percentileofscore from scipy.stats import scoreatpercentile, pearsonr from math import * import t...
61.591398
191
0.662884
18fd4c8c14d7b745e7af13adc4fd4221571ac4a2
1,212
py
Python
charybde/parsers/dump_parser.py
m09/charybde
3f8d7d17ed7b9df4bc42743bbd953f61bc807b81
[ "Apache-2.0" ]
1
2020-03-12T12:58:30.000Z
2020-03-12T12:58:30.000Z
charybde/parsers/dump_parser.py
m09/charybde
3f8d7d17ed7b9df4bc42743bbd953f61bc807b81
[ "Apache-2.0" ]
24
2019-10-28T07:21:19.000Z
2020-04-13T22:38:37.000Z
charybde/parsers/dump_parser.py
m09/charybde
3f8d7d17ed7b9df4bc42743bbd953f61bc807b81
[ "Apache-2.0" ]
null
null
null
from bz2 import BZ2File from pathlib import Path from queue import Queue from threading import Thread from typing import Any, Callable, Dict, Iterator, List, Tuple from xmltodict import parse as xmltodict_parse
28.857143
88
0.615512
18fdbb6a59afbc92dbdea6d53c5bce95efda434c
5,321
py
Python
server/py/camera.py
sreyas/Attendance-management-system
eeb57bcc942f407151b71bfab528e817c6806c74
[ "MIT" ]
null
null
null
server/py/camera.py
sreyas/Attendance-management-system
eeb57bcc942f407151b71bfab528e817c6806c74
[ "MIT" ]
null
null
null
server/py/camera.py
sreyas/Attendance-management-system
eeb57bcc942f407151b71bfab528e817c6806c74
[ "MIT" ]
null
null
null
import cv2 import sys,json,numpy as np import glob,os import face_recognition import datetime from pathlib import Path from pymongo import MongoClient from flask_mongoengine import MongoEngine from bson.objectid import ObjectId face_cascade = cv2.CascadeClassifier('haarcascade_frontalface_default.xml') client = MongoCl...
41.248062
100
0.595001
18fe1679223211eeb9c906c7f88442b62f5fd7cf
929
py
Python
scgrn/src/utils.py
Fassial/nibs-intern
493a340f431c11712723db89476cae4056c6ef5b
[ "MIT" ]
null
null
null
scgrn/src/utils.py
Fassial/nibs-intern
493a340f431c11712723db89476cae4056c6ef5b
[ "MIT" ]
null
null
null
scgrn/src/utils.py
Fassial/nibs-intern
493a340f431c11712723db89476cae4056c6ef5b
[ "MIT" ]
null
null
null
################################### # Created on 22:20, Nov. 16th, 2020 # Author: fassial # Filename: utils.py ################################### # dep import os import pandas as pd import scanpy as sp from collections import defaultdict # local dep # macro # def get_data_lm func # def get_data_csv func # def UTIL...
19.765957
62
0.603875
18feec8ad8d14751af185b1bf50263837f32d416
1,376
py
Python
PQencryption/pub_key/pk_signature/quantum_vulnerable/signing_Curve25519_PyNaCl.py
OleMussmann/PQencryption
e9a550e285c4b5145210425fbaa2cac338f3d266
[ "Apache-2.0" ]
null
null
null
PQencryption/pub_key/pk_signature/quantum_vulnerable/signing_Curve25519_PyNaCl.py
OleMussmann/PQencryption
e9a550e285c4b5145210425fbaa2cac338f3d266
[ "Apache-2.0" ]
null
null
null
PQencryption/pub_key/pk_signature/quantum_vulnerable/signing_Curve25519_PyNaCl.py
OleMussmann/PQencryption
e9a550e285c4b5145210425fbaa2cac338f3d266
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- """ Created on Mon Jul 10 16:26:41 CEST 2017 @author: BMMN """ import gc # garbage collector import nacl.signing import nacl.encoding if __name__ == "__main__": # This in an example. In production, you would want to read the key from an # external file or the command ...
25.018182
75
0.699855
18ff8d36aadc1e7329aa5016280d4db4c68e6086
17,187
py
Python
app.py
otsaloma/bort-proxy
28ac4ab2c249d4a47f71a4e39cf21c44d2fdf991
[ "MIT" ]
2
2016-10-02T01:33:24.000Z
2016-12-12T09:20:06.000Z
app.py
otsaloma/bort-proxy
28ac4ab2c249d4a47f71a4e39cf21c44d2fdf991
[ "MIT" ]
2
2019-12-15T20:17:09.000Z
2020-12-28T01:10:26.000Z
app.py
otsaloma/bort-proxy
28ac4ab2c249d4a47f71a4e39cf21c44d2fdf991
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2016 Osmo Salomaa # # 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, modif...
38.535874
98
0.615872
18ffb685c2a877f7f518f970f9a6eafbcd304771
2,099
py
Python
apps/comments/migrations/0001_initial.py
puertoricanDev/horas
28597af13409edd088a71143d2f4c94cd7fd83f5
[ "MIT" ]
10
2015-01-18T02:39:35.000Z
2021-11-09T22:53:10.000Z
apps/comments/migrations/0001_initial.py
puertoricanDev/horas
28597af13409edd088a71143d2f4c94cd7fd83f5
[ "MIT" ]
52
2015-03-02T17:46:23.000Z
2022-02-10T13:23:11.000Z
apps/comments/migrations/0001_initial.py
puertoricanDev/horas
28597af13409edd088a71143d2f4c94cd7fd83f5
[ "MIT" ]
7
2015-03-02T01:23:35.000Z
2021-11-09T22:58:39.000Z
# Generated by Django 1.10.6 on 2017-03-13 04:46 # Modified by Ral Negrn on 2019-06-22 16:48 import django.db.models.deletion import django.utils.timezone from django.conf import settings from django.db import migrations, models import apps.core.models
31.328358
85
0.45212
18ffb7e91b90c1915102493dee2fe7ea4b7d621d
9,607
py
Python
IRIS_data_download/IRIS_download_support/obspy/io/nied/knet.py
earthinversion/Fnet_IRIS_data_automated_download
09a6e0c992662feac95744935e038d1c68539fa1
[ "MIT" ]
2
2020-03-05T01:03:01.000Z
2020-12-17T05:04:07.000Z
IRIS_data_download/IRIS_download_support/obspy/io/nied/knet.py
earthinversion/Fnet_IRIS_data_automated_download
09a6e0c992662feac95744935e038d1c68539fa1
[ "MIT" ]
4
2021-03-31T19:25:55.000Z
2021-12-13T20:32:46.000Z
IRIS_data_download/IRIS_download_support/obspy/io/nied/knet.py
earthinversion/Fnet_IRIS_data_automated_download
09a6e0c992662feac95744935e038d1c68539fa1
[ "MIT" ]
2
2020-09-08T19:33:40.000Z
2021-04-05T09:47:50.000Z
# -*- coding: utf-8 -*- """ obspy.io.nied.knet - K-NET/KiK-net read support for ObsPy ========================================================= Reading of the K-NET and KiK-net ASCII format as defined on http://www.kyoshin.bosai.go.jp. """ from __future__ import (absolute_import, division, print_function, ...
31.498361
78
0.613407
7a0036f8904ef04950506fa3bb65a2bb9ab285ce
159
py
Python
great_expectations/dataset/__init__.py
avanderm/great_expectations
e4619a890700a492441a7ed3cbb9e5abb0953268
[ "Apache-2.0" ]
1
2021-01-10T18:00:06.000Z
2021-01-10T18:00:06.000Z
great_expectations/dataset/__init__.py
avanderm/great_expectations
e4619a890700a492441a7ed3cbb9e5abb0953268
[ "Apache-2.0" ]
null
null
null
great_expectations/dataset/__init__.py
avanderm/great_expectations
e4619a890700a492441a7ed3cbb9e5abb0953268
[ "Apache-2.0" ]
null
null
null
from .base import Dataset from .pandas_dataset import MetaPandasDataset, PandasDataset from .sqlalchemy_dataset import MetaSqlAlchemyDataset, SqlAlchemyDataset
53
72
0.886792
7a00d530de18db23fd30cafb2ab4bd712d82beb0
379
py
Python
app/main/routes.py
theambidextrous/digitalemployeeapp
2c8b593a590621a34c1fa033a720f1e412c76b96
[ "MIT" ]
null
null
null
app/main/routes.py
theambidextrous/digitalemployeeapp
2c8b593a590621a34c1fa033a720f1e412c76b96
[ "MIT" ]
null
null
null
app/main/routes.py
theambidextrous/digitalemployeeapp
2c8b593a590621a34c1fa033a720f1e412c76b96
[ "MIT" ]
null
null
null
from flask import Blueprint, jsonify, request, redirect, abort, url_for, render_template main = Blueprint('main', __name__) # routes
29.153846
88
0.672823
7a00ecf5169810e7505addc750380ef02512919a
5,377
py
Python
python/jittor/test/test_grad.py
llehtahw/jittor
d83389117fd026a0881dd713e658ce5ae2a75bcb
[ "Apache-2.0" ]
1
2020-11-13T10:08:00.000Z
2020-11-13T10:08:00.000Z
python/jittor/test/test_grad.py
llehtahw/jittor
d83389117fd026a0881dd713e658ce5ae2a75bcb
[ "Apache-2.0" ]
null
null
null
python/jittor/test/test_grad.py
llehtahw/jittor
d83389117fd026a0881dd713e658ce5ae2a75bcb
[ "Apache-2.0" ]
null
null
null
# *************************************************************** # Copyright (c) 2020 Jittor. Authors: Dun Liang <randonlang@gmail.com>. All Rights Reserved. # This file is subject to the terms and conditions defined in # file 'LICENSE.txt', which is part of this source code package. # ********************************...
32.197605
92
0.455644
7a012bf9cfedafb87b6096b3721323abb9371444
846
py
Python
mre/helper/Range.py
alvarofpp/mre
025a5f10b92a0a4bf32d673509958b660871b2f6
[ "MIT" ]
7
2019-04-21T18:25:49.000Z
2020-12-22T19:13:25.000Z
mre/helper/Range.py
alvarofpp/mre
025a5f10b92a0a4bf32d673509958b660871b2f6
[ "MIT" ]
12
2019-08-10T02:09:43.000Z
2021-10-02T15:29:48.000Z
mre/helper/Range.py
alvarofpp/mre
025a5f10b92a0a4bf32d673509958b660871b2f6
[ "MIT" ]
22
2019-04-21T18:25:54.000Z
2020-10-04T21:43:12.000Z
from typing import Union from mre.Regex import Regex
26.4375
83
0.568558
7a014283816fd43c5b99389dd4a3fcc4eb6396ff
3,463
py
Python
tests/python/unittest/test_tir_transform_remove_weight_layout_rewrite_block.py
driazati/tvm
b76c817986040dc070d215cf32523d9b2adc8e8b
[ "Apache-2.0" ]
1
2021-12-13T22:07:00.000Z
2021-12-13T22:07:00.000Z
tests/python/unittest/test_tir_transform_remove_weight_layout_rewrite_block.py
driazati/tvm
b76c817986040dc070d215cf32523d9b2adc8e8b
[ "Apache-2.0" ]
7
2022-02-17T23:04:46.000Z
2022-03-31T22:22:55.000Z
tests/python/unittest/test_tir_transform_remove_weight_layout_rewrite_block.py
driazati/tvm
b76c817986040dc070d215cf32523d9b2adc8e8b
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
37.641304
76
0.547791
7a0383028d6c513dd8786b4e28fcf20c534cff1a
341
py
Python
CS1/Ch11/Artwork.py
DoctorOac/SwosuCsPythonExamples
07476b9b4ef9a6f8bd68921aef19e8f00183b1e7
[ "Apache-2.0" ]
1
2022-03-28T18:27:10.000Z
2022-03-28T18:27:10.000Z
CS1/Ch11/Artwork.py
DoctorOac/SwosuCsPythonExamples
07476b9b4ef9a6f8bd68921aef19e8f00183b1e7
[ "Apache-2.0" ]
1
2022-01-11T16:27:40.000Z
2022-01-11T16:27:40.000Z
CS1/Ch11/Artwork.py
DoctorOac/SwosuCsPythonExamples
07476b9b4ef9a6f8bd68921aef19e8f00183b1e7
[ "Apache-2.0" ]
7
2022-03-25T21:01:42.000Z
2022-03-28T18:51:24.000Z
from Artist import Artist
26.230769
64
0.630499
7a03cb031046f0f5a4ab04de791c5d2ae9f6699d
2,249
py
Python
nearproteins/__init__.py
audy/nearproteins
ed426a98004c7608894a63c6b445ff60ae251d05
[ "MIT" ]
null
null
null
nearproteins/__init__.py
audy/nearproteins
ed426a98004c7608894a63c6b445ff60ae251d05
[ "MIT" ]
1
2019-07-10T05:47:01.000Z
2019-07-10T17:23:52.000Z
nearproteins/__init__.py
audy/nearproteins
ed426a98004c7608894a63c6b445ff60ae251d05
[ "MIT" ]
null
null
null
#!/usr/bin/env python from collections import defaultdict from itertools import product import json import random import sys from annoy import AnnoyIndex from Bio import SeqIO import numpy as np
22.267327
85
0.578924
7a042b77715a588fe196553691f390b7d45b469f
314
py
Python
arm_control/src/orientation.py
ALxander19/zobov_arm
8b5b322b53a7a0d9c91fcbc720473a2a6e6f5826
[ "BSD-2-Clause" ]
null
null
null
arm_control/src/orientation.py
ALxander19/zobov_arm
8b5b322b53a7a0d9c91fcbc720473a2a6e6f5826
[ "BSD-2-Clause" ]
null
null
null
arm_control/src/orientation.py
ALxander19/zobov_arm
8b5b322b53a7a0d9c91fcbc720473a2a6e6f5826
[ "BSD-2-Clause" ]
null
null
null
# tf.transformations alternative is not yet available in tf2 from tf.transformations import quaternion_from_euler if __name__ == '__main__': # RPY to convert: 90deg, 0, -90deg q = quaternion_from_euler(1.5707, 0, -1.5707) print "The quaternion representation is %s %s %s %s." % (q[0], q[1], q[2], q[3])
31.4
82
0.694268
7a05099cb4069ff152e86f9e7700bcfd829e2375
2,997
py
Python
django_server/fvh_courier/rest/tests/base.py
ForumViriumHelsinki/CityLogistics
df4efef49bdc740a1dc47d0bda49ce2b3833e9c1
[ "MIT" ]
1
2021-11-02T03:21:48.000Z
2021-11-02T03:21:48.000Z
django_server/fvh_courier/rest/tests/base.py
ForumViriumHelsinki/CityLogistics
df4efef49bdc740a1dc47d0bda49ce2b3833e9c1
[ "MIT" ]
136
2019-12-03T14:52:17.000Z
2022-02-26T21:18:15.000Z
django_server/fvh_courier/rest/tests/base.py
ForumViriumHelsinki/CityLogistics
df4efef49bdc740a1dc47d0bda49ce2b3833e9c1
[ "MIT" ]
2
2020-06-23T23:58:08.000Z
2020-12-08T13:19:28.000Z
import datetime from django.contrib.auth.models import User, Group from django.utils import timezone from rest_framework.test import APITestCase import fvh_courier.models.base from fvh_courier import models
36.54878
112
0.593594
7a0915dbc8c3508d29e923526b1c9bacf3a1ca69
12,039
py
Python
pynoorm/binder.py
jpeyret/pynoorm
d6f7e0e102bb0eb4865beff75cf671b560ebc8b2
[ "MIT" ]
2
2016-04-14T23:11:06.000Z
2016-06-04T22:39:10.000Z
pynoorm/binder.py
jpeyret/pynoorm
d6f7e0e102bb0eb4865beff75cf671b560ebc8b2
[ "MIT" ]
null
null
null
pynoorm/binder.py
jpeyret/pynoorm
d6f7e0e102bb0eb4865beff75cf671b560ebc8b2
[ "MIT" ]
1
2022-01-16T15:19:16.000Z
2022-01-16T15:19:16.000Z
""" Binder classes perform two functions through their format method - given a query template with %(somevar)s python substition class MyClass(object): pass arg1 = MyClass() arg1.customer = 101 default = MyClass() default.customer = 201 arg2.country = "CAN" qry, sub = format(" ...
27.675862
93
0.572971
7a0b66937d09d19c265c09560989c32e86648150
4,313
py
Python
parselglossy/documentation.py
dev-cafe/parseltongue
834e78724bb90dfa19748d7f65f6af02d525e3f2
[ "MIT" ]
5
2019-03-11T18:42:26.000Z
2021-08-24T18:24:05.000Z
parselglossy/documentation.py
dev-cafe/parseltongue
834e78724bb90dfa19748d7f65f6af02d525e3f2
[ "MIT" ]
105
2018-12-04T03:07:22.000Z
2022-03-24T13:04:48.000Z
parselglossy/documentation.py
dev-cafe/parseltongue
834e78724bb90dfa19748d7f65f6af02d525e3f2
[ "MIT" ]
1
2019-02-08T09:54:49.000Z
2019-02-08T09:54:49.000Z
# -*- coding: utf-8 -*- # # parselglossy -- Generic input parsing library, speaking in tongues # Copyright (C) 2020 Roberto Di Remigio, Radovan Bast, and contributors. # # This file is part of parselglossy. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associate...
31.713235
121
0.644563
7a0b7b8522bbe2e3900e18756663a43a8ac174f7
2,765
py
Python
functions/print_initial_values.py
CINPLA/edNEGmodel_analysis
be8854c563376a14ee7d15e51d98d0d82be96a35
[ "MIT" ]
null
null
null
functions/print_initial_values.py
CINPLA/edNEGmodel_analysis
be8854c563376a14ee7d15e51d98d0d82be96a35
[ "MIT" ]
null
null
null
functions/print_initial_values.py
CINPLA/edNEGmodel_analysis
be8854c563376a14ee7d15e51d98d0d82be96a35
[ "MIT" ]
null
null
null
import numpy as np
56.428571
158
0.637975
7a0c0a5f5ecb615e0a6336ce27fac2621034f8ff
21,021
py
Python
anyway/parsers/cbs.py
edermon/anyway
3523b7871b7eebeca225e088af653ba074e5bee3
[ "BSD-3-Clause" ]
null
null
null
anyway/parsers/cbs.py
edermon/anyway
3523b7871b7eebeca225e088af653ba074e5bee3
[ "BSD-3-Clause" ]
null
null
null
anyway/parsers/cbs.py
edermon/anyway
3523b7871b7eebeca225e088af653ba074e5bee3
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import glob import os import json from collections import OrderedDict import itertools import re from datetime import datetime import six from six import iteritems from flask.ext.sqlalchemy import SQLAlchemy from sqlalchemy import or_ from .. import field_names, localization from ..models impo...
43.521739
120
0.667999
7a0d3a18b6c3bcab1db31cd7020fbecfa8d1cc2b
7,709
py
Python
src/tests/test_pagure_flask_api_project_delete_project.py
yifengyou/learn-pagure
e54ba955368918c92ad2be6347b53bb2c24a228c
[ "Unlicense" ]
null
null
null
src/tests/test_pagure_flask_api_project_delete_project.py
yifengyou/learn-pagure
e54ba955368918c92ad2be6347b53bb2c24a228c
[ "Unlicense" ]
null
null
null
src/tests/test_pagure_flask_api_project_delete_project.py
yifengyou/learn-pagure
e54ba955368918c92ad2be6347b53bb2c24a228c
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- """ (c) 2020 - Copyright Red Hat Inc Authors: Pierre-Yves Chibon <pingou@pingoured.fr> """ from __future__ import unicode_literals, absolute_import import datetime import json import unittest import shutil import sys import tempfile import os import pygit2 from celery.result import Ea...
37.42233
188
0.572578
7a0ed4f58fe297f5e920c7a02179f8ba85d4d8b4
3,827
py
Python
06_reproducibility/workflow_pipeline/my_pipeline/pipeline/configs.py
fanchi/ml-design-patterns
6f686601d2385a11a517f8394324062ec6094e14
[ "Apache-2.0" ]
1,149
2020-04-09T21:20:56.000Z
2022-03-31T02:41:53.000Z
06_reproducibility/workflow_pipeline/my_pipeline/pipeline/configs.py
dfinke/ml-design-patterns
6f686601d2385a11a517f8394324062ec6094e14
[ "Apache-2.0" ]
28
2020-06-14T15:17:59.000Z
2022-02-17T10:13:08.000Z
06_reproducibility/workflow_pipeline/my_pipeline/pipeline/configs.py
dfinke/ml-design-patterns
6f686601d2385a11a517f8394324062ec6094e14
[ "Apache-2.0" ]
296
2020-04-28T06:26:41.000Z
2022-03-31T06:52:33.000Z
# Copyright 2020 Google LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
37.519608
104
0.736608
7a0ee0d44c1b61902945942d2ba7e385c1519999
4,707
py
Python
tests/test_vcf_info_annotator.py
apaul7/VAtools
9e969cfdb605ec5e65a6aa60a416d7d74a8ff4fd
[ "MIT" ]
15
2019-03-20T06:55:04.000Z
2022-02-22T06:16:56.000Z
tests/test_vcf_info_annotator.py
apaul7/VAtools
9e969cfdb605ec5e65a6aa60a416d7d74a8ff4fd
[ "MIT" ]
27
2019-03-05T18:20:19.000Z
2022-03-04T14:58:36.000Z
tests/test_vcf_info_annotator.py
apaul7/VAtools
9e969cfdb605ec5e65a6aa60a416d7d74a8ff4fd
[ "MIT" ]
4
2019-03-19T10:33:38.000Z
2022-02-23T13:40:33.000Z
import unittest import sys import os import py_compile from vatools import vcf_info_annotator import tempfile from filecmp import cmp
40.930435
183
0.599745
7a0f470f2ade1699e468a55aa0458f89b6b1d2f2
17,965
py
Python
bddtests/peer/admin_pb2.py
hacera-jonathan/fabric
3ba291e8fbb0246aa440e02cba54d16924649479
[ "Apache-2.0" ]
null
null
null
bddtests/peer/admin_pb2.py
hacera-jonathan/fabric
3ba291e8fbb0246aa440e02cba54d16924649479
[ "Apache-2.0" ]
1
2021-03-20T05:34:24.000Z
2021-03-20T05:34:24.000Z
bddtests/peer/admin_pb2.py
hacera-jonathan/fabric
3ba291e8fbb0246aa440e02cba54d16924649479
[ "Apache-2.0" ]
null
null
null
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: peer/admin.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _re...
41.77907
1,109
0.74044
7a11c84dcc647f7a847b687bafc676e5c125037d
4,002
py
Python
tests/basic_test.py
c0fec0de/anycache
1848d9b85cd11c16c271284e0911ba5628391835
[ "Apache-2.0" ]
13
2018-02-07T15:52:07.000Z
2022-02-18T12:37:40.000Z
tests/basic_test.py
c0fec0de/anycache
1848d9b85cd11c16c271284e0911ba5628391835
[ "Apache-2.0" ]
2
2018-09-23T15:43:32.000Z
2021-09-21T00:34:55.000Z
tests/basic_test.py
c0fec0de/anycache
1848d9b85cd11c16c271284e0911ba5628391835
[ "Apache-2.0" ]
1
2020-01-20T23:58:54.000Z
2020-01-20T23:58:54.000Z
from pathlib import Path from tempfile import mkdtemp from nose.tools import eq_ from anycache import AnyCache from anycache import get_defaultcache from anycache import anycache def test_basic(): """Basic functionality.""" myfunc.callcount = 0 eq_(myfunc(4, 5), 9) eq_(myfunc.callcount, 1) eq_(...
21.063158
53
0.581709
7a11f415ef1c8a456c66c6b816eed5e347dea42d
2,173
py
Python
self-paced-labs/vertex-ai/vertex-pipelines/tfx/tfx_taxifare_tips/model_training/model_runner.py
Glairly/introduction_to_tensorflow
aa0a44d9c428a6eb86d1f79d73f54c0861b6358d
[ "Apache-2.0" ]
2
2022-01-06T11:52:57.000Z
2022-01-09T01:53:56.000Z
self-paced-labs/vertex-ai/vertex-pipelines/tfx/tfx_taxifare_tips/model_training/model_runner.py
Glairly/introduction_to_tensorflow
aa0a44d9c428a6eb86d1f79d73f54c0861b6358d
[ "Apache-2.0" ]
null
null
null
self-paced-labs/vertex-ai/vertex-pipelines/tfx/tfx_taxifare_tips/model_training/model_runner.py
Glairly/introduction_to_tensorflow
aa0a44d9c428a6eb86d1f79d73f54c0861b6358d
[ "Apache-2.0" ]
null
null
null
"""A run_fn method called by the TFX Trainer component.""" import os import logging from tfx import v1 as tfx from tfx_taxifare_tips.model_training import defaults from tfx_taxifare_tips.model_training import model_trainer from tfx_taxifare_tips.model_training import model_exporter # TFX Trainer will call ...
34.492063
83
0.703175
7a15cfeb891a079af5b1c667c60e264effefd0f3
4,602
py
Python
main.py
Lorn-Hukka/academy-record-sender
137ef9d1dff373662a046bc2a50d7dd5f4fad0ee
[ "MIT" ]
null
null
null
main.py
Lorn-Hukka/academy-record-sender
137ef9d1dff373662a046bc2a50d7dd5f4fad0ee
[ "MIT" ]
null
null
null
main.py
Lorn-Hukka/academy-record-sender
137ef9d1dff373662a046bc2a50d7dd5f4fad0ee
[ "MIT" ]
null
null
null
import random, os, string, subprocess, shutil, requests from discord import Webhook, RequestsWebhookAdapter, Embed from dotenv import dotenv_values import argparse, colorama from colorama import Fore if __name__ == "__main__": colorama.init(autoreset=True) parser = argparse.ArgumentParser() parser.add_a...
40.368421
140
0.526945
7a1607febbd34072033d2922ea13752164e46320
357
py
Python
src/__init__.py
w9PcJLyb/GFootball
b271238bd0dc922787a0a9b984a8ae598cea2b2b
[ "Apache-2.0" ]
null
null
null
src/__init__.py
w9PcJLyb/GFootball
b271238bd0dc922787a0a9b984a8ae598cea2b2b
[ "Apache-2.0" ]
null
null
null
src/__init__.py
w9PcJLyb/GFootball
b271238bd0dc922787a0a9b984a8ae598cea2b2b
[ "Apache-2.0" ]
null
null
null
from .board import Board from .slide import slide_action from .corner import corner_action from .control import control_action from .penalty import penalty_action from .throwin import throwin_action from .kickoff import kickoff_action from .goalkick import goalkick_action from .freekick import freekick_action from .wit...
32.454545
45
0.859944
7a1ab771a442031e1729dd19987c53780afb2187
3,447
py
Python
tests/bin/test_tcex_list.py
phuerta-tc/tcex
4a4e800e1a6114c1fde663f8c3ab7a1d58045c79
[ "Apache-2.0" ]
null
null
null
tests/bin/test_tcex_list.py
phuerta-tc/tcex
4a4e800e1a6114c1fde663f8c3ab7a1d58045c79
[ "Apache-2.0" ]
null
null
null
tests/bin/test_tcex_list.py
phuerta-tc/tcex
4a4e800e1a6114c1fde663f8c3ab7a1d58045c79
[ "Apache-2.0" ]
null
null
null
"""Bin Testing""" # standard library from importlib.machinery import SourceFileLoader from importlib.util import module_from_spec, spec_from_loader from typing import List # third-party from typer.testing import CliRunner # dynamically load bin/tcex file spec = spec_from_loader('app', SourceFileLoader('app', 'bin/tce...
33.794118
83
0.642878
7a1abf4048e07e8bc9343e0dfe167284107c6c27
16,752
py
Python
sdk/python/pulumi_aws/ec2/managed_prefix_list.py
jen20/pulumi-aws
172e00c642adc03238f89cc9c5a16b914a77c2b1
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/ec2/managed_prefix_list.py
jen20/pulumi-aws
172e00c642adc03238f89cc9c5a16b914a77c2b1
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/ec2/managed_prefix_list.py
jen20/pulumi-aws
172e00c642adc03238f89cc9c5a16b914a77c2b1
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
41.465347
168
0.621299
7a1b3ef788466c80c3a4e53bf1538ad6b91df51a
1,847
py
Python
scripts/ann_architectures/mnist/lenet5.py
qian-liu/snn_toolbox
9693647f9b2421a4f1ab789a97cc19fd17781e87
[ "MIT" ]
null
null
null
scripts/ann_architectures/mnist/lenet5.py
qian-liu/snn_toolbox
9693647f9b2421a4f1ab789a97cc19fd17781e87
[ "MIT" ]
null
null
null
scripts/ann_architectures/mnist/lenet5.py
qian-liu/snn_toolbox
9693647f9b2421a4f1ab789a97cc19fd17781e87
[ "MIT" ]
null
null
null
# coding=utf-8 """LeNet for MNIST""" import os from keras.datasets import mnist from keras.models import Sequential from keras.layers import Dense, Dropout, Flatten, Conv2D, MaxPooling2D from keras.utils import np_utils from keras.callbacks import ModelCheckpoint, TensorBoard from snntoolbox.parsing.utils import \ ...
33.581818
79
0.750947
7a1eab82419109b15e6baf92f1df08cd9c6fa14b
856
py
Python
class_exercises/using_numpy.py
Eddz7/astr-19
380c6b45762e0207cd6c237fa28a4d796b1aef94
[ "MIT" ]
null
null
null
class_exercises/using_numpy.py
Eddz7/astr-19
380c6b45762e0207cd6c237fa28a4d796b1aef94
[ "MIT" ]
1
2022-03-31T17:57:17.000Z
2022-03-31T17:57:17.000Z
class_exercises/using_numpy.py
Eddz7/astr-19
380c6b45762e0207cd6c237fa28a4d796b1aef94
[ "MIT" ]
null
null
null
import numpy as np x = 1.0 #define a float y = 2.0 #define another float #trigonometry print(f"np.sin({x}) = {np.sin(x)}") #sin(x) print(f"np.cos({x}) = {np.cos(x)}") #cos(x) print(f"np.tan({x}) = {np.tan(x)}") #tan(x) print(f"np.arcsin({x}) = {np.arcsin(x)}") #arcsin(x) print(f"np.arccos({x}) = {np.arccos(x)...
40.761905
67
0.580607
7a1ed1421848b1354b08c81026945785b3714d10
10,544
py
Python
amy/workshops/migrations/0158_curriculum_workshoprequest.py
code-review-doctor/amy
268c1a199510457891459f3ddd73fcce7fe2b974
[ "MIT" ]
53
2015-01-10T17:39:19.000Z
2019-06-12T17:36:34.000Z
amy/workshops/migrations/0158_curriculum_workshoprequest.py
code-review-doctor/amy
268c1a199510457891459f3ddd73fcce7fe2b974
[ "MIT" ]
1,176
2015-01-02T06:32:47.000Z
2019-06-18T11:57:47.000Z
amy/workshops/migrations/0158_curriculum_workshoprequest.py
code-review-doctor/amy
268c1a199510457891459f3ddd73fcce7fe2b974
[ "MIT" ]
44
2015-01-03T15:08:56.000Z
2019-06-09T05:33:08.000Z
# Generated by Django 2.1.2 on 2018-10-27 15:50 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django_countries.fields
142.486486
860
0.71434
7a1ef72332e8f8f0f2089763d5744f430bdbbf1f
2,365
py
Python
log_parser/single_hand_efficiency_training_data.py
xinranhe/mahjong
8cfc6234f9c80fd11267adf06b420b63f4c8d87d
[ "MIT" ]
null
null
null
log_parser/single_hand_efficiency_training_data.py
xinranhe/mahjong
8cfc6234f9c80fd11267adf06b420b63f4c8d87d
[ "MIT" ]
null
null
null
log_parser/single_hand_efficiency_training_data.py
xinranhe/mahjong
8cfc6234f9c80fd11267adf06b420b63f4c8d87d
[ "MIT" ]
null
null
null
import argparse from mahjong.shanten import Shanten from multiprocessing import Pool import os import sys from log_parser.discard_prediction_parser import parse_discard_prediction SHANTEN = Shanten() INPUT_DATA_FOLDER = "data/raw" OUTPUT_DATA_DIR = "data/single_hand_efficiency" if __name__ == '__main__': parse...
35.833333
124
0.60296
e12e6ff3f71515946f2d758523bf5e5b716bfa6b
1,942
py
Python
apps/portalbase/system/system__alerts/methodclass/system_alerts.py
Jumpscale/jumpscale_portal8
3a4d56a1ba985b68fe9b525aed2486a54808332f
[ "Apache-2.0" ]
null
null
null
apps/portalbase/system/system__alerts/methodclass/system_alerts.py
Jumpscale/jumpscale_portal8
3a4d56a1ba985b68fe9b525aed2486a54808332f
[ "Apache-2.0" ]
74
2015-12-28T16:17:20.000Z
2021-09-08T12:28:59.000Z
apps/portalbase/system/system__alerts/methodclass/system_alerts.py
Jumpscale/jumpscale_portal8
3a4d56a1ba985b68fe9b525aed2486a54808332f
[ "Apache-2.0" ]
null
null
null
from JumpScale import j
30.825397
89
0.581874
e12ea6090b7a3fc25058fb7f99f94d6f336e2f07
17,628
py
Python
docs/pyqbdi.py
pbrunet/QBDI
39a936b2efd000f0c5def0a8ea27538d7d5fab47
[ "Apache-2.0" ]
1
2019-10-01T08:32:41.000Z
2019-10-01T08:32:41.000Z
docs/pyqbdi.py
pbrunet/QBDI
39a936b2efd000f0c5def0a8ea27538d7d5fab47
[ "Apache-2.0" ]
null
null
null
docs/pyqbdi.py
pbrunet/QBDI
39a936b2efd000f0c5def0a8ea27538d7d5fab47
[ "Apache-2.0" ]
null
null
null
# This file is only used to generate documentation # VM class # PyQBDI module functions def alignedAlloc(size, align): """Allocate a block of memory of a specified sized with an aligned base address. :param size: Allocation size in bytes. :param align: Base address alignement in bytes. ...
35.90224
271
0.645677
e13042781e2e380894da0aab1c6ec72861b3ce01
227
py
Python
krkbipscraper/settings.py
pawmar/krkbipscraper
f2629bede33930cf91378caa7f2ee5d683cf1616
[ "BSD-3-Clause" ]
null
null
null
krkbipscraper/settings.py
pawmar/krkbipscraper
f2629bede33930cf91378caa7f2ee5d683cf1616
[ "BSD-3-Clause" ]
null
null
null
krkbipscraper/settings.py
pawmar/krkbipscraper
f2629bede33930cf91378caa7f2ee5d683cf1616
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """Scrapy settings.""" BOT_NAME = 'krkbipscraper' SPIDER_MODULES = ['krkbipscraper.spiders'] NEWSPIDER_MODULE = 'krkbipscraper.spiders' ITEM_PIPELINES = ['krkbipscraper.pipelines.JsonWriterPipeline']
22.7
63
0.744493
e1311759e08a6c90f2dd14452c29543ae793ad35
1,797
py
Python
sap hana/connections and query execution with python/script.py
Phelipe-Sempreboni/databases
3be823db9029994d7b50d23d1830209276e5f40a
[ "MIT" ]
1
2020-10-27T21:50:28.000Z
2020-10-27T21:50:28.000Z
sap hana/connections and query execution with python/script.py
Phelipe-Sempreboni/databases
3be823db9029994d7b50d23d1830209276e5f40a
[ "MIT" ]
null
null
null
sap hana/connections and query execution with python/script.py
Phelipe-Sempreboni/databases
3be823db9029994d7b50d23d1830209276e5f40a
[ "MIT" ]
null
null
null
# Importao da biblioteca. # Certifique-se de ter a biblioteca instalada. import pyhdb # Essa funo traz/chama outro arquivo que contm a senha, visando no deixar exposta na aplicao. # Caso no queira utilizar esse mtodo e inserir diretamente a senha na conexo, exclua esse bloco e insira a senha diretamente no bloco (def...
41.790698
171
0.670006
e131340a4484b6722bf5a16704072d57bfdba8fe
2,418
py
Python
tests/mvae/distributions/test_von_mises_fisher.py
macio232/mvae
df3d5158ce29744e54b378ad663361e8b785632a
[ "Apache-2.0" ]
53
2019-11-20T05:39:54.000Z
2022-02-05T06:36:43.000Z
tests/mvae/distributions/test_von_mises_fisher.py
macio232/mvae
df3d5158ce29744e54b378ad663361e8b785632a
[ "Apache-2.0" ]
8
2020-03-14T20:25:08.000Z
2021-06-10T08:06:15.000Z
tests/mvae/distributions/test_von_mises_fisher.py
macio232/mvae
df3d5158ce29744e54b378ad663361e8b785632a
[ "Apache-2.0" ]
10
2020-03-14T20:17:47.000Z
2021-12-01T14:08:06.000Z
# Copyright 2019 Ondrej Skopek. # # 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...
37.2
110
0.669975
e13147c692ddf6997325ddaffddf29246eba0b66
1,033
py
Python
cello/download_resources.py
Ann-Holmes/CellO
bc2192a2d27e0859f6df885a6fc246e26e54a7b0
[ "MIT" ]
42
2019-05-14T19:04:38.000Z
2022-03-06T12:57:00.000Z
cello/download_resources.py
Ann-Holmes/CellO
bc2192a2d27e0859f6df885a6fc246e26e54a7b0
[ "MIT" ]
16
2020-08-04T12:34:08.000Z
2022-03-31T22:30:48.000Z
cello/download_resources.py
Ann-Holmes/CellO
bc2192a2d27e0859f6df885a6fc246e26e54a7b0
[ "MIT" ]
6
2019-05-13T15:57:03.000Z
2022-03-18T02:17:05.000Z
""" Download CellO's resources files. These files include CellO's pre-trained models, gene ID-to-symbol mappings, and training sets for training CellO's models on new gene sets. Authors: Matthew Bernstein <mbernstein@morgridge.org> """ import subprocess from os.path import join from shutil import which
31.30303
109
0.621491
e133fe625681b1837857d1c7c1998eeec6f05e88
7,755
py
Python
mmtrack/models/mot/trackers/base_tracker.py
sht47/mmtracking
5a25e418e9c598d1b576bce8702f5e156cbbefe7
[ "Apache-2.0" ]
12
2021-09-05T20:47:16.000Z
2022-03-23T07:00:35.000Z
mmtrack/models/mot/trackers/base_tracker.py
hellock/mmtracking
a22a36b2055d80cf4a7a5ef3913849abb56defcb
[ "Apache-2.0" ]
2
2021-09-06T13:20:09.000Z
2022-01-13T05:36:14.000Z
mmtrack/models/mot/trackers/base_tracker.py
hellock/mmtracking
a22a36b2055d80cf4a7a5ef3913849abb56defcb
[ "Apache-2.0" ]
1
2022-02-28T19:33:49.000Z
2022-02-28T19:33:49.000Z
from abc import ABCMeta, abstractmethod import torch import torch.nn.functional as F from addict import Dict from mmtrack.models import TRACKERS
34.466667
79
0.52392
e134a13671522e1fa873cc9f15fcf37d47bcca9a
3,675
py
Python
test/conftest.py
pauldg/ro-crate-py
695004f18175ca70b439534adece9e2242dca778
[ "Apache-2.0" ]
null
null
null
test/conftest.py
pauldg/ro-crate-py
695004f18175ca70b439534adece9e2242dca778
[ "Apache-2.0" ]
null
null
null
test/conftest.py
pauldg/ro-crate-py
695004f18175ca70b439534adece9e2242dca778
[ "Apache-2.0" ]
null
null
null
# Copyright 2019-2022 The University of Manchester, UK # Copyright 2020-2022 Vlaams Instituut voor Biotechnologie (VIB), BE # Copyright 2020-2022 Barcelona Supercomputing Center (BSC), ES # Copyright 2020-2022 Center for Advanced Studies, Research and Development in Sardinia (CRS4), IT # Copyright 2022 cole Polytechniq...
37.5
98
0.71619
e134f405b60309ac638075a35a6b8ff83d2c5ab6
3,791
py
Python
tests/unit/test_marathon.py
seomoz/roger-mesos-tools
88b4cb3550a4b49d0187cfb5e6a22246ff6b9765
[ "Apache-2.0" ]
null
null
null
tests/unit/test_marathon.py
seomoz/roger-mesos-tools
88b4cb3550a4b49d0187cfb5e6a22246ff6b9765
[ "Apache-2.0" ]
47
2016-05-26T22:09:56.000Z
2018-08-08T20:33:39.000Z
tests/unit/test_marathon.py
seomoz/roger-mesos-tools
88b4cb3550a4b49d0187cfb5e6a22246ff6b9765
[ "Apache-2.0" ]
3
2017-09-20T22:39:03.000Z
2017-11-07T22:29:29.000Z
#!/usr/bin/python from __future__ import print_function import unittest import json import os import sys import requests sys.path.insert(0, os.path.abspath(os.path.join( os.path.dirname(os.path.realpath(__file__)), os.pardir, "cli"))) from cli.marathon import Marathon from cli.appconfig import AppConfig from mocki...
36.104762
80
0.613031
e136e8225ad172a851846dc46f34389a3f760935
65
py
Python
1/0/10821/10821.py
chr0m3/boj-codes
d71d0a22d0a3ae62c225f382442461275f56fe8f
[ "MIT" ]
3
2017-07-08T16:29:06.000Z
2020-07-20T00:17:45.000Z
1/0/10821/10821.py
chr0m3/boj-codes
d71d0a22d0a3ae62c225f382442461275f56fe8f
[ "MIT" ]
null
null
null
1/0/10821/10821.py
chr0m3/boj-codes
d71d0a22d0a3ae62c225f382442461275f56fe8f
[ "MIT" ]
2
2017-11-20T14:06:06.000Z
2020-07-20T00:17:47.000Z
numbers = list(map(int, input().split(','))) print(len(numbers))
21.666667
44
0.646154
e137881799720563759aa64b3e6bb8a63eb7afae
496
py
Python
Chapter13/server.py
Joustie/Mastering-GitLab-12
5ac4700791e4274ef3de825bc789c46142af403e
[ "MIT" ]
40
2019-07-06T04:40:27.000Z
2022-03-31T09:25:07.000Z
Chapter13/server.py
Joustie/Mastering-GitLab-12
5ac4700791e4274ef3de825bc789c46142af403e
[ "MIT" ]
1
2019-08-03T17:52:08.000Z
2020-12-16T06:31:53.000Z
Chapter13/server.py
Joustie/Mastering-GitLab-12
5ac4700791e4274ef3de825bc789c46142af403e
[ "MIT" ]
50
2019-07-26T08:49:49.000Z
2022-03-17T21:01:03.000Z
from flask import Flask, request import json app = Flask(__name__) if __name__ == '__main__': app.run()
24.8
74
0.635081
e1380bef90ab2ac303d6b8ab31b603e3157ac287
4,349
py
Python
tests/test_nlp4e.py
EDTAKE/IA
2731e8ccb9d1b72f564c8c7a1c46a855760edfac
[ "MIT" ]
null
null
null
tests/test_nlp4e.py
EDTAKE/IA
2731e8ccb9d1b72f564c8c7a1c46a855760edfac
[ "MIT" ]
null
null
null
tests/test_nlp4e.py
EDTAKE/IA
2731e8ccb9d1b72f564c8c7a1c46a855760edfac
[ "MIT" ]
1
2019-10-26T22:33:40.000Z
2019-10-26T22:33:40.000Z
import pytest import nlp from nlp4e import Rules, Lexicon, Grammar, ProbRules, ProbLexicon, ProbGrammar, E0 from nlp4e import Chart, CYK_parse, subspan, astar_search_parsing, beam_search_parsing # Clumsy imports because we want to access certain nlp.py globals explicitly, because # they are accessed by functions...
31.977941
87
0.539894
e13a783a47008677ccb95568f58fe7dd6ad2e4f3
1,598
py
Python
integration_test/ESI/cosim/loopback.py
Patosga/circt
ebf06c9aa5a4e8ae2485b52fd3c564eec7df5754
[ "Apache-2.0" ]
null
null
null
integration_test/ESI/cosim/loopback.py
Patosga/circt
ebf06c9aa5a4e8ae2485b52fd3c564eec7df5754
[ "Apache-2.0" ]
null
null
null
integration_test/ESI/cosim/loopback.py
Patosga/circt
ebf06c9aa5a4e8ae2485b52fd3c564eec7df5754
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 import binascii import random import cosim
27.551724
72
0.6602
e13cf9268aca0f5ca5922030192f194f32c26039
48,282
py
Python
pcdsdevices/targets.py
christina-pino/pcdsdevices
c696093b33b252a5fe6ca020063216b0d062aa61
[ "BSD-3-Clause-LBNL" ]
3
2019-06-17T20:08:54.000Z
2022-01-11T17:55:21.000Z
pcdsdevices/targets.py
christina-pino/pcdsdevices
c696093b33b252a5fe6ca020063216b0d062aa61
[ "BSD-3-Clause-LBNL" ]
757
2017-12-21T23:16:41.000Z
2022-03-31T22:56:06.000Z
pcdsdevices/targets.py
christina-pino/pcdsdevices
c696093b33b252a5fe6ca020063216b0d062aa61
[ "BSD-3-Clause-LBNL" ]
38
2018-01-26T00:01:35.000Z
2022-02-17T00:48:55.000Z
""" Module for common target stage stack configurations. """ import logging import numpy as np from datetime import datetime import os from ophyd.device import Device import json import jsonschema import yaml from itertools import chain from pcdsdevices.epics_motor import _GetMotorClass from .interface import tweak_b...
35.579956
79
0.558096
e13d3df96caed4ad7bea9f68e21a31547457cf49
1,564
py
Python
release/src-rt-6.x.4708/router/samba3/source4/scripting/python/samba/netcmd/time.py
zaion520/ATtomato
4d48bb79f8d147f89a568cf18da9e0edc41f93fb
[ "FSFAP" ]
2
2019-01-13T09:16:31.000Z
2019-02-15T03:30:28.000Z
release/src-rt-6.x.4708/router/samba3/source4/scripting/python/samba/netcmd/time.py
zaion520/ATtomato
4d48bb79f8d147f89a568cf18da9e0edc41f93fb
[ "FSFAP" ]
null
null
null
release/src-rt-6.x.4708/router/samba3/source4/scripting/python/samba/netcmd/time.py
zaion520/ATtomato
4d48bb79f8d147f89a568cf18da9e0edc41f93fb
[ "FSFAP" ]
2
2020-03-08T01:58:25.000Z
2020-12-20T10:34:54.000Z
#!/usr/bin/env python # # time # # Copyright Jelmer Vernooij 2010 <jelmer@samba.org> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any ...
32.583333
85
0.710997
e13edb5a04062ed656b823c80283871afa60af92
900
py
Python
tests/job/test_redis.py
ulule/bokchoy
58afaf325ce275edf5c4a955379afb1cc5eb5de3
[ "MIT" ]
null
null
null
tests/job/test_redis.py
ulule/bokchoy
58afaf325ce275edf5c4a955379afb1cc5eb5de3
[ "MIT" ]
null
null
null
tests/job/test_redis.py
ulule/bokchoy
58afaf325ce275edf5c4a955379afb1cc5eb5de3
[ "MIT" ]
null
null
null
import unittest import redis import socket import pytest from bokchoy.conductors.dummy import DummyConductor from bokchoy.results.redis import RedisResult from bokchoy.serializers.json import JSONSerializer from exam import fixture from .base import JobTests requires_redis = pytest.mark.skipif( not redis_is_av...
21.95122
77
0.728889
e13fba4b45b4ccda568c26a9f752c38c0cf1cb17
97
py
Python
venv/lib/python3.8/site-packages/pip/_internal/network/__init__.py
realxwx/leetcode-solve
3a7d7d8e92a5fd5fecc347d141a1c532b92e763e
[ "Apache-2.0" ]
null
null
null
venv/lib/python3.8/site-packages/pip/_internal/network/__init__.py
realxwx/leetcode-solve
3a7d7d8e92a5fd5fecc347d141a1c532b92e763e
[ "Apache-2.0" ]
null
null
null
venv/lib/python3.8/site-packages/pip/_internal/network/__init__.py
realxwx/leetcode-solve
3a7d7d8e92a5fd5fecc347d141a1c532b92e763e
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020 # Author: xiaoweixiang """Contains purely network-related utilities. """
16.166667
45
0.71134
e13fcadccf45c68be598d453263bc3fd7d573b02
3,004
py
Python
Constants.py
micv-dev/DeepKubeGPUCluster
b1f674ea3c251a5287ee83d582b193248e04f9d6
[ "Apache-2.0" ]
2
2021-01-22T05:56:40.000Z
2021-07-03T17:50:49.000Z
Constants.py
micv-dev/DeepKubeGPUCluster
b1f674ea3c251a5287ee83d582b193248e04f9d6
[ "Apache-2.0" ]
null
null
null
Constants.py
micv-dev/DeepKubeGPUCluster
b1f674ea3c251a5287ee83d582b193248e04f9d6
[ "Apache-2.0" ]
null
null
null
DEFAULT_KUBE_VERSION=1.14 KUBE_VERSION="kubeVersion" USER_ID="userId" DEFAULT_USER_ID=1 CLUSTER_NAME="clusterName" CLUSTER_MASTER_IP="masterHostIP" CLUSTER_WORKER_IP_LIST="workerIPList" FRAMEWORK_TYPE= "frameworkType" FRAMEWORK_VERSION="frameworkVersion" FRAMEWORK_RESOURCES="frameworkResources" FRAMEWORK_VOLUME_SIZE= ...
25.243697
67
0.831891
e13feb6e08fa5f3de107d84f4998b9cc0fdd3b93
1,582
py
Python
mpcontribs-portal/mpcontribs/portal/urls.py
fraricci/MPContribs
800e8fded594dce57807e7ef0ec8d3192ce54825
[ "MIT" ]
null
null
null
mpcontribs-portal/mpcontribs/portal/urls.py
fraricci/MPContribs
800e8fded594dce57807e7ef0ec8d3192ce54825
[ "MIT" ]
null
null
null
mpcontribs-portal/mpcontribs/portal/urls.py
fraricci/MPContribs
800e8fded594dce57807e7ef0ec8d3192ce54825
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from django.conf.urls import url from django.views.generic.base import RedirectView from mpcontribs.portal import views app_name = "mpcontribs_portal" urlpatterns = [ url(r"^$", views.index, name="index"), url(r"^healthcheck/?$", views.healthcheck, name="healthcheck"), url( ...
31.019608
87
0.584071
e1404018df8652fa89529ce0d2a499530d166df6
3,363
py
Python
src/mp_api/dielectric/client.py
jmmshn/api
5254a453f6ec749793639e4ec08bea14628c7dc3
[ "BSD-3-Clause-LBNL" ]
null
null
null
src/mp_api/dielectric/client.py
jmmshn/api
5254a453f6ec749793639e4ec08bea14628c7dc3
[ "BSD-3-Clause-LBNL" ]
159
2020-11-16T16:02:31.000Z
2022-03-28T15:03:38.000Z
src/mp_api/dielectric/client.py
jmmshn/api
5254a453f6ec749793639e4ec08bea14628c7dc3
[ "BSD-3-Clause-LBNL" ]
null
null
null
from typing import List, Optional, Tuple from collections import defaultdict from mp_api.core.client import BaseRester, MPRestError import warnings
33.969697
106
0.600059
e1404a753371b136c19314c274ee0f8405dd2c32
1,598
py
Python
docs/example/advanced/view.py
Kozea/Pynuts
f2eb1839f59d2e8a4ec96175726186e67f85c4b0
[ "BSD-3-Clause" ]
1
2016-06-16T15:31:30.000Z
2016-06-16T15:31:30.000Z
docs/example/advanced/view.py
Kozea/Pynuts
f2eb1839f59d2e8a4ec96175726186e67f85c4b0
[ "BSD-3-Clause" ]
null
null
null
docs/example/advanced/view.py
Kozea/Pynuts
f2eb1839f59d2e8a4ec96175726186e67f85c4b0
[ "BSD-3-Clause" ]
null
null
null
from wtforms import TextField, IntegerField, PasswordField from wtforms.ext.sqlalchemy.fields import ( QuerySelectField, QuerySelectMultipleField) from wtforms.validators import Required from pynuts.view import BaseForm import database from application import nuts
35.511111
76
0.682728
e1412f411269485acbe2ebcad67a9f18d2b335f9
330
py
Python
scripts/extract_hit_upstreams.py
waglecn/helD_search
2b77e81419b9929d5cf5ecc519f27cb381178b2c
[ "MIT" ]
null
null
null
scripts/extract_hit_upstreams.py
waglecn/helD_search
2b77e81419b9929d5cf5ecc519f27cb381178b2c
[ "MIT" ]
null
null
null
scripts/extract_hit_upstreams.py
waglecn/helD_search
2b77e81419b9929d5cf5ecc519f27cb381178b2c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys from Bio import SeqIO import os genome = sys.argv[1] in_aa = f'hits/{genome}.hits' in_up = f'fa/{genome}.upstream' hits = SeqIO.to_dict(SeqIO.parse(in_aa, 'fasta')) raes = SeqIO.to_dict(SeqIO.parse(in_up, 'fasta')) for k in hits.keys(): i = k.split('|')[1] print(raes[i].format('...
17.368421
49
0.672727
e14130d3b319054f84f8b96b0e660e7e60ab2e53
11,674
py
Python
homeassistant/components/airtouch4/climate.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
4
2021-07-11T09:11:00.000Z
2022-02-27T14:43:50.000Z
homeassistant/components/airtouch4/climate.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
277
2021-10-04T06:39:33.000Z
2021-12-28T22:04:17.000Z
homeassistant/components/airtouch4/climate.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
3
2022-01-02T18:49:54.000Z
2022-01-25T02:03:54.000Z
"""AirTouch 4 component to control of AirTouch 4 Climate Devices.""" from __future__ import annotations import logging from homeassistant.components.climate import ClimateEntity from homeassistant.components.climate.const import ( FAN_AUTO, FAN_DIFFUSE, FAN_FOCUS, FAN_HIGH, FAN_LOW, FAN_MEDIUM...
33.642651
91
0.668837
e1414f639d12d9584079f8b303441fd98b73dfdd
772
py
Python
giosgappsdk/giosg_api.py
mentholi/giosgapp-python-sdk
2a5ea25e223dc4a88a32e917dd393cc9a07f9999
[ "MIT" ]
null
null
null
giosgappsdk/giosg_api.py
mentholi/giosgapp-python-sdk
2a5ea25e223dc4a88a32e917dd393cc9a07f9999
[ "MIT" ]
null
null
null
giosgappsdk/giosg_api.py
mentholi/giosgapp-python-sdk
2a5ea25e223dc4a88a32e917dd393cc9a07f9999
[ "MIT" ]
null
null
null
import json import requests
38.6
120
0.700777
e1416e342916d61944b1391ba364f72736a6b340
1,415
py
Python
Pixelfonts/Delete duplicate components.py
NaN-xyz/Glyphs-Scripts
bdacf455babc72e0801d8d8db5dc10f8e88aa37b
[ "Apache-2.0" ]
1
2022-01-09T04:28:36.000Z
2022-01-09T04:28:36.000Z
Pixelfonts/Delete duplicate components.py
NaN-xyz/Glyphs-Scripts
bdacf455babc72e0801d8d8db5dc10f8e88aa37b
[ "Apache-2.0" ]
null
null
null
Pixelfonts/Delete duplicate components.py
NaN-xyz/Glyphs-Scripts
bdacf455babc72e0801d8d8db5dc10f8e88aa37b
[ "Apache-2.0" ]
null
null
null
#MenuTitle: Delete Duplicate Components # -*- coding: utf-8 -*- from __future__ import division, print_function, unicode_literals __doc__=""" Looks for duplicate components (same component, same x/y values) and keeps only one of them. """ Font = Glyphs.font selectedLayers = Font.selectedLayers Font.disableUpdateIn...
27.745098
128
0.743463
e141938b24307f066ff503fed7f111fa1bbefd00
3,317
py
Python
src/structures/Errors.py
Xiddoc/ComPy
7d26f95209d0615d7eb188fa02470ddae5311fca
[ "MIT" ]
null
null
null
src/structures/Errors.py
Xiddoc/ComPy
7d26f95209d0615d7eb188fa02470ddae5311fca
[ "MIT" ]
9
2022-02-23T10:32:44.000Z
2022-03-27T17:55:43.000Z
src/structures/Errors.py
Xiddoc/ComPy
7d26f95209d0615d7eb188fa02470ddae5311fca
[ "MIT" ]
null
null
null
""" Error classes, when needed for exceptions. """ from _ast import AST from dataclasses import dataclass, field from typing import Optional, Union from src.compiler.Util import Util
31.894231
118
0.67561
e1419fb66f46497cc9f96ff1980d0c0ddc909d97
4,314
py
Python
github/recorders/github/github_user_info_recorder.py
zvtvz/play-github
30ad38ca88c1a57b2cec48b19ca31ffa28fa0154
[ "MIT" ]
2
2019-09-21T04:31:01.000Z
2020-01-21T03:45:51.000Z
github/recorders/github/github_user_info_recorder.py
zvtvz/play-github
30ad38ca88c1a57b2cec48b19ca31ffa28fa0154
[ "MIT" ]
null
null
null
github/recorders/github/github_user_info_recorder.py
zvtvz/play-github
30ad38ca88c1a57b2cec48b19ca31ffa28fa0154
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import argparse from github.accounts.github_account import GithubAccount from github.domain.github import GithubUser from github.recorders.github.common import get_result from zvdata.api import get_entities from zvdata.domain import get_db_session from zvdata.recorder import TimeSeriesDataRecor...
38.176991
119
0.592721
e141a2ac84bf3c71baee17e1baf51d264eb93a13
94
py
Python
pyEDAA/OutputFilter/__init__.py
edaa-org/pyEDAA.OutputFilter
ca602c9992b40df7bd117968c0dc333a4f16d255
[ "Apache-2.0" ]
1
2021-12-30T02:49:43.000Z
2021-12-30T02:49:43.000Z
pyEDAA/OutputFilter/__init__.py
edaa-org/pyEDAA.OutputFilter
ca602c9992b40df7bd117968c0dc333a4f16d255
[ "Apache-2.0" ]
null
null
null
pyEDAA/OutputFilter/__init__.py
edaa-org/pyEDAA.OutputFilter
ca602c9992b40df7bd117968c0dc333a4f16d255
[ "Apache-2.0" ]
null
null
null
from pyTooling.Decorators import export __version__ = "0.1.0"
9.4
39
0.744681
e141a89f1384646896cf35e7b57e68052818e1a7
1,766
py
Python
tut/app.py
Tyler9937/titanic-test
6a5200558caf203ed1dc3de71a6c9b5d488f847a
[ "MIT" ]
null
null
null
tut/app.py
Tyler9937/titanic-test
6a5200558caf203ed1dc3de71a6c9b5d488f847a
[ "MIT" ]
null
null
null
tut/app.py
Tyler9937/titanic-test
6a5200558caf203ed1dc3de71a6c9b5d488f847a
[ "MIT" ]
null
null
null
# Importing needed libraries import uuid from decouple import config from dotenv import load_dotenv from flask import Flask, render_template, request, jsonify from sklearn.externals import joblib import traceback import pandas as pd import numpy as np from flask_sqlalchemy import SQLAlchemy # Saving DB var DB = SQLAlc...
28.95082
86
0.623443
e143b369aa9fc5500990d0521c4867296c4568dc
1,237
py
Python
trainer.py
thedesertm/leapmotion_training_svm
659a439be4209450b98d638e655ee025e5bd562b
[ "MIT" ]
null
null
null
trainer.py
thedesertm/leapmotion_training_svm
659a439be4209450b98d638e655ee025e5bd562b
[ "MIT" ]
null
null
null
trainer.py
thedesertm/leapmotion_training_svm
659a439be4209450b98d638e655ee025e5bd562b
[ "MIT" ]
null
null
null
import pandas as pd import os from sklearn.svm import SVC from sklearn.preprocessing import StandardScaler from sklearn.metrics import classification_report, confusion_matrix from sklearn.model_selection import train_test_split import pickle BASE_PATH = os.path.join(os.getcwd() , "dataset") df = None i = 0 for file_na...
31.717949
87
0.735651
e145c5c7a800878dc251c5025a3fb2b44ba71b0b
6,266
py
Python
1 - Data Analysis/2_Analysis - Data Exploration.py
dkim319/NFL_Predictive_Model_v2
5884e10a681e2e34f54a2280c94d2f42fc442d17
[ "CNRI-Python" ]
1
2019-09-14T04:04:51.000Z
2019-09-14T04:04:51.000Z
1 - Data Analysis/2_Analysis - Data Exploration.py
dkim319/NFL_Predictive_Model_v2
5884e10a681e2e34f54a2280c94d2f42fc442d17
[ "CNRI-Python" ]
null
null
null
1 - Data Analysis/2_Analysis - Data Exploration.py
dkim319/NFL_Predictive_Model_v2
5884e10a681e2e34f54a2280c94d2f42fc442d17
[ "CNRI-Python" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Aug 14 20:21:23 2017 @author: DKIM """ import pandas as pd import numpy as np # required libraries loaded import pandas as pd import numpy as np import matplotlib matplotlib.style.use('ggplot') import matplotlib.pyplot as plt seednumber = 319 data = pd.read_csv('Data.csv...
34.811111
141
0.76157
e1473bb4e004b0d3642a2fee0b5a8667fbdf36d4
597
py
Python
tests/functional/testplan/test_plan_timeout.py
dobragab/testplan
407ac1dfd33d19753e41235a1f576aeb06118840
[ "Apache-2.0" ]
null
null
null
tests/functional/testplan/test_plan_timeout.py
dobragab/testplan
407ac1dfd33d19753e41235a1f576aeb06118840
[ "Apache-2.0" ]
null
null
null
tests/functional/testplan/test_plan_timeout.py
dobragab/testplan
407ac1dfd33d19753e41235a1f576aeb06118840
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """Testplan that is expected to time out.""" import sys import threading import testplan from testplan.testing import multitest if __name__ == '__main__': sys.exit(main().exit_code)
20.586207
58
0.643216
e14841f80a1f905b5006c26969f6f10bf64c27b5
107
py
Python
Codefights/arcade/intro/level-2/6.Make-Array-Consecutive-2/Python/solution1.py
RevansChen/online-judge
ad1b07fee7bd3c49418becccda904e17505f3018
[ "MIT" ]
7
2017-09-20T16:40:39.000Z
2021-08-31T18:15:08.000Z
Codefights/arcade/intro/level-2/6.Make-Array-Consecutive-2/Python/solution1.py
RevansChen/online-judge
ad1b07fee7bd3c49418becccda904e17505f3018
[ "MIT" ]
null
null
null
Codefights/arcade/intro/level-2/6.Make-Array-Consecutive-2/Python/solution1.py
RevansChen/online-judge
ad1b07fee7bd3c49418becccda904e17505f3018
[ "MIT" ]
null
null
null
# Python3
21.4
59
0.700935
e14a89ff9896dc6d76ffe641bcbb01393e6b478d
1,127
py
Python
tests/classification_test.py
mjirik/lisa
06c5cb8f375f51302341e768512f02236774c8a3
[ "BSD-3-Clause" ]
22
2015-01-26T12:58:54.000Z
2021-04-15T17:48:13.000Z
tests/classification_test.py
mjirik/lisa
06c5cb8f375f51302341e768512f02236774c8a3
[ "BSD-3-Clause" ]
31
2015-01-23T14:46:13.000Z
2018-05-18T14:47:18.000Z
tests/classification_test.py
mjirik/lisa
06c5cb8f375f51302341e768512f02236774c8a3
[ "BSD-3-Clause" ]
13
2015-06-30T08:54:27.000Z
2020-09-11T16:08:19.000Z
# ! /usr/bin/python # -*- coding: utf-8 -*- # import funkc z jinho adrese # import sys import os.path path_to_script = os.path.dirname(os.path.abspath(__file__)) # sys.path.append(os.path.join(path_to_script, "../extern/pyseg_base/src/")) # sys.path.append(os.path.join(path_to_script, "../extern/sed3/")) # sys.path.ap...
29.657895
76
0.615794
e14b23b0342f7644f668cb1aa04ae3158b4e1e5b
751
py
Python
application.py
milindvb/python-docs-hello-world
6d3c8b1936c10ee245cc7c4ffb448e94c8b4b9de
[ "MIT" ]
null
null
null
application.py
milindvb/python-docs-hello-world
6d3c8b1936c10ee245cc7c4ffb448e94c8b4b9de
[ "MIT" ]
null
null
null
application.py
milindvb/python-docs-hello-world
6d3c8b1936c10ee245cc7c4ffb448e94c8b4b9de
[ "MIT" ]
null
null
null
from flask import Flask # import pyodbc app = Flask(__name__)
28.884615
141
0.600533
e14ca387e55877393570685f057c5e66f54b5ec5
3,906
py
Python
basefiles/sweeps/SMTBFsweep.py
hpec-2021-ccu-lanl/simulator
21a7cc0dd12feef5ad26668a3cc216854cc2dd40
[ "BSD-3-Clause" ]
null
null
null
basefiles/sweeps/SMTBFsweep.py
hpec-2021-ccu-lanl/simulator
21a7cc0dd12feef5ad26668a3cc216854cc2dd40
[ "BSD-3-Clause" ]
null
null
null
basefiles/sweeps/SMTBFsweep.py
hpec-2021-ccu-lanl/simulator
21a7cc0dd12feef5ad26668a3cc216854cc2dd40
[ "BSD-3-Clause" ]
null
null
null
from sweeps.sweepFunctions import * import numpy as np
48.222222
164
0.575269
e14ce3e30f3e8ef1bb113abf4b81672a5245be55
1,708
py
Python
tests/functional_pyecore/regressions/test_issue_34_resolving_pyecore.py
aranega/textX
abb04d272a1b74f937d43400be130cf7a3be3516
[ "MIT" ]
4
2017-12-04T11:07:11.000Z
2021-06-21T20:54:09.000Z
tests/functional_pyecore/regressions/test_issue_34_resolving_pyecore.py
aranega/textX
abb04d272a1b74f937d43400be130cf7a3be3516
[ "MIT" ]
null
null
null
tests/functional_pyecore/regressions/test_issue_34_resolving_pyecore.py
aranega/textX
abb04d272a1b74f937d43400be130cf7a3be3516
[ "MIT" ]
null
null
null
from __future__ import unicode_literals import pytest # noqa import sys pytestmark = pytest.mark.skipif(sys.version_info[0] < 3, reason="pyecore is not Python 2 compatible") # noqa pyecore = pytest.importorskip("pyecore") # noqa import textx from textx.metamodel import metamodel_from_...
25.878788
84
0.67096
e14d0acbede38071c9f51e6e3d4fd2359e4f607b
863
py
Python
pylbd/s3_object.py
MacHu-GWU/pylbd-project
d9be28d1f9f7679237e4d3c86f63ea06f43249dd
[ "MIT" ]
null
null
null
pylbd/s3_object.py
MacHu-GWU/pylbd-project
d9be28d1f9f7679237e4d3c86f63ea06f43249dd
[ "MIT" ]
null
null
null
pylbd/s3_object.py
MacHu-GWU/pylbd-project
d9be28d1f9f7679237e4d3c86f63ea06f43249dd
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import boto3 from botocore.exceptions import ClientError import attr from attrs_mate import AttrsClass import weakref
26.151515
86
0.659328
e14d1130b819743aa4189ff145d7b0695bac00b3
543
py
Python
android_toast/toast.py
ShareASmile/car-locator
765d26ad414ab86e4d93bc5338868769e8b3e90f
[ "MIT" ]
21
2020-09-08T21:03:25.000Z
2022-02-15T07:08:04.000Z
android_toast/toast.py
ShareASmile/car-locator
765d26ad414ab86e4d93bc5338868769e8b3e90f
[ "MIT" ]
3
2021-04-13T09:40:20.000Z
2021-05-28T20:53:07.000Z
android_toast/toast.py
ShareASmile/car-locator
765d26ad414ab86e4d93bc5338868769e8b3e90f
[ "MIT" ]
9
2020-12-11T09:01:42.000Z
2022-03-28T00:55:59.000Z
from android.runnable import run_on_ui_thread from jnius import autoclass, cast mActivity = autoclass("org.kivy.android.PythonActivity").mActivity Toast = autoclass("android.widget.Toast") CharSequence = autoclass("java.lang.CharSequence") String = autoclass("java.lang.String")
28.578947
66
0.756906