hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
357951c0b40f80c53a3a5f44fa52511a12076619
6,426
py
Python
python/utility_functions.py
stellarpower/vio_common
5508203cbcc166cbcd34dc0a6f7852c73e2cff55
[ "BSD-3-Clause" ]
16
2017-06-02T07:22:31.000Z
2022-03-23T02:39:39.000Z
python/utility_functions.py
stellarpower/vio_common
5508203cbcc166cbcd34dc0a6f7852c73e2cff55
[ "BSD-3-Clause" ]
2
2020-08-10T04:01:35.000Z
2021-01-18T08:21:17.000Z
python/utility_functions.py
stellarpower/vio_common
5508203cbcc166cbcd34dc0a6f7852c73e2cff55
[ "BSD-3-Clause" ]
19
2017-08-03T02:23:11.000Z
2021-09-22T02:17:46.000Z
import json import os import numpy as np from numpy import genfromtxt SECOND_TO_MILLIS = 1000 SECOND_TO_MICROS = 1000000 SECOND_TO_NANOS = 1000000000 TIME_UNIT_TO_DECIMALS = {'s': 0, "ms": 3, "us": 6, "ns": 9} def parse_time(timestamp_str, time_unit): """ convert a timestamp string to a rospy time if a ...
31.194175
77
0.571429
0
0
0
0
0
0
0
0
1,538
0.23934
357a7c212d64ef469b6cfe0399c8c3f62da9f7bf
7,160
py
Python
app/models.py
nickspeal/net-zero-python-backend
a31139fe8d365abed4f48407a2f407a9b5ac7357
[ "MIT" ]
null
null
null
app/models.py
nickspeal/net-zero-python-backend
a31139fe8d365abed4f48407a2f407a9b5ac7357
[ "MIT" ]
null
null
null
app/models.py
nickspeal/net-zero-python-backend
a31139fe8d365abed4f48407a2f407a9b5ac7357
[ "MIT" ]
null
null
null
from app import db # Junction Tables for many-to-many relationships campaign_users = db.Table('campaign_users', db.Column('campaign', db.Integer, db.ForeignKey('campaigns.id'), primary_key=True), db.Column('user', db.Integer, db.ForeignKey('users.username'), primary_key=True), ) campaign_vehicles = db.Table('...
41.149425
161
0.691899
3,310
0.462291
0
0
0
0
0
0
4,873
0.680587
357adb90337719d5723ab2cf058c01616c052b6e
806
py
Python
course/views.py
author31/HongsBlog
a94dc56a05062b5b2bab3f28f84b7ede1ae44bf8
[ "MIT" ]
null
null
null
course/views.py
author31/HongsBlog
a94dc56a05062b5b2bab3f28f84b7ede1ae44bf8
[ "MIT" ]
null
null
null
course/views.py
author31/HongsBlog
a94dc56a05062b5b2bab3f28f84b7ede1ae44bf8
[ "MIT" ]
null
null
null
from typing import List from django.shortcuts import render from django.views.generic.detail import DetailView from django.views.generic.list import ListView from assignment.models import Assignment from course.models import Course class CourseListView(ListView): template_name = 'course/course_list.html' model...
29.851852
76
0.729529
568
0.704715
0
0
0
0
0
0
84
0.104218
357beddbd194c981ff7bfbba130b3a5fe87ac6d4
157
py
Python
aldryn_search/apps.py
lab360-ch/aldryn-search
15a319edac126aa1e44f22d34a7bcb5aec3e3dde
[ "BSD-3-Clause" ]
11
2019-03-29T10:32:13.000Z
2021-02-26T11:44:44.000Z
aldryn_search/apps.py
lab360-ch/aldryn-search
15a319edac126aa1e44f22d34a7bcb5aec3e3dde
[ "BSD-3-Clause" ]
23
2019-01-31T16:20:57.000Z
2021-11-10T19:57:58.000Z
aldryn_search/apps.py
lab360-ch/aldryn-search
15a319edac126aa1e44f22d34a7bcb5aec3e3dde
[ "BSD-3-Clause" ]
23
2019-02-14T09:59:40.000Z
2022-03-10T12:38:48.000Z
from django.apps import AppConfig class AldrynSearchConfig(AppConfig): name = 'aldryn_search' def ready(self): from . import conf # noqa
17.444444
36
0.687898
120
0.764331
0
0
0
0
0
0
21
0.133758
357c2647b8417e551b803cdb6ce940f55d5d1f67
606
py
Python
tests/utils.py
openlobby/openlobby-server
b7a1a2b73e903c4da57970926844b0639dce5aae
[ "MIT" ]
7
2017-11-23T15:24:50.000Z
2018-11-29T21:47:55.000Z
tests/utils.py
openlobby/openlobby-server
b7a1a2b73e903c4da57970926844b0639dce5aae
[ "MIT" ]
20
2018-02-21T22:25:42.000Z
2020-06-05T17:22:36.000Z
tests/utils.py
openlobby/openlobby-server
b7a1a2b73e903c4da57970926844b0639dce5aae
[ "MIT" ]
3
2018-03-08T10:05:01.000Z
2018-08-16T14:36:28.000Z
from datetime import datetime def strip_value(data, *path): element = path[0] value = data.get(element) if len(path) == 1: data[element] = "__STRIPPED__" return value else: if isinstance(value, dict): return strip_value(value, *path[1:]) elif isinstance(valu...
25.25
67
0.589109
0
0
0
0
0
0
0
0
14
0.023102
357cffec267dd0668f1c68a283ee49efc4b0ead9
3,077
py
Python
datastructures/binarytree.py
tkaleas/python-sandbox
37ebe92c5f89300e27803118259d16f62d67f612
[ "MIT" ]
null
null
null
datastructures/binarytree.py
tkaleas/python-sandbox
37ebe92c5f89300e27803118259d16f62d67f612
[ "MIT" ]
null
null
null
datastructures/binarytree.py
tkaleas/python-sandbox
37ebe92c5f89300e27803118259d16f62d67f612
[ "MIT" ]
null
null
null
class Node(object): def __init__(self, value): self.value = value self.left = None self.right = None #Binary Tree class BinaryTree(object): def __init__(self, root): self.root = Node(root) def search(self, find_val): """Return True if the value is in the tre...
32.734043
118
0.577836
3,030
0.984725
0
0
0
0
0
0
544
0.176796
357d8ee4029bbe48236c823d9888079f0ce3ef3f
4,203
py
Python
cs15211/StoneGame.py
JulyKikuAkita/PythonPrac
0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c
[ "Apache-2.0" ]
1
2021-07-05T01:53:30.000Z
2021-07-05T01:53:30.000Z
cs15211/StoneGame.py
JulyKikuAkita/PythonPrac
0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c
[ "Apache-2.0" ]
null
null
null
cs15211/StoneGame.py
JulyKikuAkita/PythonPrac
0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c
[ "Apache-2.0" ]
1
2018-01-08T07:14:08.000Z
2018-01-08T07:14:08.000Z
__source__ = 'https://leetcode.com/problems/stone-game/' # Time: O() # Space: O() # # Description: Leetcode # 877. Stone Game # # Alex and Lee play a game with piles of stones. # There are an even number of piles arranged in a row, # and each pile has a positive integer number of stones piles[i]. # # The objective of ...
28.02
103
0.524863
718
0.17083
0
0
0
0
0
0
3,496
0.831787
3580446fc9f2895b65f629897e85da7d65bcfe94
149
py
Python
project_pawz/sponsorships/apps.py
rlaneyjr/project_pawz
27f316ef35968ed1319ec0585a050ebed795763a
[ "MIT" ]
null
null
null
project_pawz/sponsorships/apps.py
rlaneyjr/project_pawz
27f316ef35968ed1319ec0585a050ebed795763a
[ "MIT" ]
13
2020-02-12T00:12:52.000Z
2022-02-12T09:42:36.000Z
project_pawz/sponsorships/apps.py
rlaneyjr/project_pawz
27f316ef35968ed1319ec0585a050ebed795763a
[ "MIT" ]
null
null
null
from django.apps import AppConfig class SponsorshipsAppConfig(AppConfig): name = 'project_pawz.sponsorships' verbose_name = "Sponsorships"
21.285714
39
0.778523
112
0.751678
0
0
0
0
0
0
41
0.275168
3580b7cb753fcaa31d0c440e5b6586620bfd111a
745
py
Python
assignment_solutions/6/is_all_upper.py
dannymeijer/level-up-with-python
1bd1169aafd0fdc124984c30edc7f0153626cf06
[ "MIT" ]
null
null
null
assignment_solutions/6/is_all_upper.py
dannymeijer/level-up-with-python
1bd1169aafd0fdc124984c30edc7f0153626cf06
[ "MIT" ]
null
null
null
assignment_solutions/6/is_all_upper.py
dannymeijer/level-up-with-python
1bd1169aafd0fdc124984c30edc7f0153626cf06
[ "MIT" ]
null
null
null
import re only_letters = re.compile("[a-zA-Z]") def is_all_upper(text: str) -> bool: # check if text has actual content has_no_content = len(only_letters.findall(text)) == 0 return False if has_no_content else text.upper() == text if __name__ == '__main__': print("Example:") print(is_all_upper(...
29.8
76
0.689933
0
0
0
0
0
0
0
0
258
0.346309
3581a840c4be8b7ea8177fe99a8cfde9dc61f37d
1,661
py
Python
osm/GeoFabrikSpider.py
TheGreatRefrigerator/openpoiservice
e345062c4eb887e661597f47cf167b793a586d49
[ "Apache-2.0" ]
null
null
null
osm/GeoFabrikSpider.py
TheGreatRefrigerator/openpoiservice
e345062c4eb887e661597f47cf167b793a586d49
[ "Apache-2.0" ]
null
null
null
osm/GeoFabrikSpider.py
TheGreatRefrigerator/openpoiservice
e345062c4eb887e661597f47cf167b793a586d49
[ "Apache-2.0" ]
null
null
null
# sudo scrapy runspider GeoFabrikSpider.py import scrapy import os import urlparse from scrapy.selector import Selector import subprocess from time import sleep class GeoFabrikSpider(scrapy.Spider): name = "geofabrik_spider" start_urls = ['https://download.geofabrik.de/'] def parse(self, response): ...
30.759259
85
0.580373
1,496
0.900662
1,365
0.821794
0
0
0
0
310
0.186635
35822f26b3ef7809b8f1f7729babe9f761bebf6a
3,252
py
Python
tests/basic.py
mkindahl/mysql-replicant-python
e627d29feae623f3f406ea472ca8cfae97abaa97
[ "Apache-2.0" ]
null
null
null
tests/basic.py
mkindahl/mysql-replicant-python
e627d29feae623f3f406ea472ca8cfae97abaa97
[ "Apache-2.0" ]
null
null
null
tests/basic.py
mkindahl/mysql-replicant-python
e627d29feae623f3f406ea472ca8cfae97abaa97
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2010, Mats Kindahl, Charles Bell, and Lars Thalmann # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistributions of source code must retain the above copyright # ...
41.164557
71
0.671279
1,369
0.420972
0
0
0
0
0
0
1,983
0.609779
358309e43cd19cc91ae52a7e9d812eb22388abf7
2,348
py
Python
routa/test_levenshtein.py
piglaker/SpecialEdition
172688ef111e1b5c62bdb1ba0a523a2654201b90
[ "Apache-2.0" ]
2
2022-01-06T07:41:50.000Z
2022-01-22T14:18:51.000Z
routa/test_levenshtein.py
piglaker/SpecialEdition
172688ef111e1b5c62bdb1ba0a523a2654201b90
[ "Apache-2.0" ]
null
null
null
routa/test_levenshtein.py
piglaker/SpecialEdition
172688ef111e1b5c62bdb1ba0a523a2654201b90
[ "Apache-2.0" ]
null
null
null
def iterative_levenshtein(string, target, costs=(1, 1, 1)): """ piglaker modified version : return edits iterative_levenshtein(s, t) -> ldist ldist is the Levenshtein distance between the strings s and t. For all i and j, dist[i,j] will contain the Levenshtein...
35.044776
96
0.534072
0
0
0
0
0
0
0
0
849
0.361584
3583587e857ba2e03f4dbec666f2d6bee6d2dba7
168
py
Python
loggo2/__init__.py
bitpanda-labs/loggo2
0e0d157b12a34a737ddfc0c9083241a6db03b78a
[ "MIT" ]
6
2018-05-15T13:30:02.000Z
2022-03-08T16:08:05.000Z
loggo2/__init__.py
bitpanda-labs/loggo2
0e0d157b12a34a737ddfc0c9083241a6db03b78a
[ "MIT" ]
102
2018-06-15T11:08:11.000Z
2022-01-21T11:12:11.000Z
loggo2/__init__.py
bitpanda-labs/loggo
0e0d157b12a34a737ddfc0c9083241a6db03b78a
[ "MIT" ]
10
2018-05-15T11:01:14.000Z
2022-02-06T20:58:56.000Z
from ._loggo2 import JsonLogFormatter, LocalLogFormatter, Loggo # noqa: F401 __version__ = "10.1.2" # DO NOT EDIT THIS LINE MANUALLY. LET bump2version UTILITY DO IT
42
88
0.767857
0
0
0
0
0
0
0
0
84
0.5
3584dd069c4afaf6ad2ec3546a7187fbdbbed6aa
1,762
py
Python
aoc/day11/__init__.py
scorphus/advent-of-code-2020
12270ccc86475a18e587007da0fbfc6c9ef3a6a8
[ "BSD-3-Clause" ]
9
2020-12-04T17:40:49.000Z
2022-01-08T03:14:21.000Z
aoc/day11/__init__.py
scorphus/advent-of-code-2020
12270ccc86475a18e587007da0fbfc6c9ef3a6a8
[ "BSD-3-Clause" ]
1
2021-02-12T20:49:33.000Z
2021-02-12T20:49:33.000Z
aoc/day11/__init__.py
scorphus/advent-of-code-2020
12270ccc86475a18e587007da0fbfc6c9ef3a6a8
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # This file is part of Advent of Code 2020 # https://github.com/scorphus/advent-of-code-2020 # Licensed under the BSD-3-Clause license: # https://opensource.org/licenses/BSD-3-Clause # Copyright (c) 2020, Pablo S. Blum de Aguiar <scorphus@gmail.com> from aoc import strip...
25.911765
87
0.498297
0
0
0
0
0
0
0
0
450
0.255392
35869169565f147aa6ca2effa9a220febbbdf872
3,349
py
Python
analyses/ParamAnalyzer.py
ThinkNaive/Matrix-Vector-Multiplication
9a00ba9e4d0d298ce4ff3bfae092f49571a56605
[ "MIT" ]
null
null
null
analyses/ParamAnalyzer.py
ThinkNaive/Matrix-Vector-Multiplication
9a00ba9e4d0d298ce4ff3bfae092f49571a56605
[ "MIT" ]
null
null
null
analyses/ParamAnalyzer.py
ThinkNaive/Matrix-Vector-Multiplication
9a00ba9e4d0d298ce4ff3bfae092f49571a56605
[ "MIT" ]
null
null
null
# coding=utf-8 import matplotlib.pyplot as plt import numpy as np if __name__ == '__main__': rows = [10000] col = 10000 iteration = 10 params = [ {'id': '01', 'strategy': 'rep', 'p': 10, 'repNum': 1}, {'id': '02', 'strategy': 'rep', 'p': 10, 'repNum': 2}, {'id': '03', 'strategy'...
48.536232
119
0.521947
0
0
0
0
0
0
0
0
1,438
0.425822
358826b9087dfd29b78b2c2b77da9c4af1e5706c
2,077
py
Python
MsgRoute/myBackend.py
zhouli1014/OurGame
5c1aa81c928c23b3ac3ca8a447dd1da44d4de44a
[ "MIT" ]
3
2018-08-11T14:47:11.000Z
2018-12-06T09:21:01.000Z
MsgRoute/myBackend.py
zhouli1014/OurGame
5c1aa81c928c23b3ac3ca8a447dd1da44d4de44a
[ "MIT" ]
null
null
null
MsgRoute/myBackend.py
zhouli1014/OurGame
5c1aa81c928c23b3ac3ca8a447dd1da44d4de44a
[ "MIT" ]
null
null
null
#!/usr/bin/env python import sys, time from backend import daemon import itchat import time from ipcqueue import posixmq import logging import datetime as dt import threading import time logFileDir = "/opt/crontab/IpcToItchat/" nowDateTime = dt.datetime.now().strftime('%Y%m%d%H%M%S') pyFilename = sys.argv[0].split('/...
34.616667
96
0.569571
886
0.426577
0
0
0
0
0
0
458
0.22051
35884559fa63fe01a4c1157a7757aab150c568df
3,979
py
Python
mlbgame/data/people.py
trevor-viljoen/mlbgame3
73e79aebad751b36773f01c93f09a422f69ef9cc
[ "MIT" ]
6
2018-03-23T02:51:10.000Z
2021-06-15T21:26:51.000Z
mlbgame/data/people.py
trevor-viljoen/mlbgame3
73e79aebad751b36773f01c93f09a422f69ef9cc
[ "MIT" ]
null
null
null
mlbgame/data/people.py
trevor-viljoen/mlbgame3
73e79aebad751b36773f01c93f09a422f69ef9cc
[ "MIT" ]
1
2019-02-23T07:11:51.000Z
2019-02-23T07:11:51.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """mlbgame functions for the people API endpoints. This module's functions gets the JSON payloads for the mlb.com games API endpoints. .. _Google Python Style Guide: http://google.github.io/styleguide/pyguide.html """ from mlbgame.data import request def get_person...
32.349593
79
0.642372
0
0
0
0
0
0
0
0
3,533
0.887912
35889badcfa8dc6a845da5eecd5c85fc2bdcc83d
25,571
py
Python
src/swadr.py
ericpruitt/swadr
17ce19032ce9cd0ac2b640c5a54093ef9ff0effc
[ "BSD-2-Clause" ]
2
2015-01-14T13:43:52.000Z
2015-03-30T08:36:24.000Z
src/swadr.py
ericpruitt/swadr
17ce19032ce9cd0ac2b640c5a54093ef9ff0effc
[ "BSD-2-Clause" ]
null
null
null
src/swadr.py
ericpruitt/swadr
17ce19032ce9cd0ac2b640c5a54093ef9ff0effc
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function import csv import getopt import io import itertools import logging import numbers import os import re import sqlite3 import string import sys import textwrap import time try: import readline except ImportError: pass try: ...
36.322443
80
0.538383
7,680
0.30034
585
0.022877
1,089
0.042587
0
0
9,223
0.360682
3589c234fc1a0fe7e6d360402ae2ceaf2a97c3d8
726
py
Python
django_analyses/filters/output/output_definition.py
TheLabbingProject/django_analyses
08cac40a32754a265b37524f08ec6160c69ebea8
[ "Apache-2.0" ]
1
2020-12-30T12:43:34.000Z
2020-12-30T12:43:34.000Z
django_analyses/filters/output/output_definition.py
TheLabbingProject/django_analyses
08cac40a32754a265b37524f08ec6160c69ebea8
[ "Apache-2.0" ]
59
2019-12-25T13:14:56.000Z
2021-07-22T12:24:46.000Z
django_analyses/filters/output/output_definition.py
TheLabbingProject/django_analyses
08cac40a32754a265b37524f08ec6160c69ebea8
[ "Apache-2.0" ]
2
2020-05-24T06:44:27.000Z
2020-07-09T15:47:31.000Z
""" Definition of an :class:`~django_analyses.filters.output.output_definition.OutputDefinitionFilter` for the :class:`~django_analyses.models.output.definitions.OutputDefinition` model. """ from django_analyses.models.output.definitions.output_definition import \ OutputDefinition from django_filters import rest_f...
27.923077
90
0.774105
383
0.527548
0
0
0
0
0
0
396
0.545455
358a40fd5689697a1d8d1a2da43fe16bdb4a6fd3
87
py
Python
mypage/apps.py
shotastage/neco-sys
60816ceee3eaf36d8d278db72e741d45c3f4af41
[ "MIT" ]
2
2021-08-15T02:17:43.000Z
2022-01-31T14:46:20.000Z
rainy_project/mypage/apps.py
habijung/WEB_HeavyReading_Rainy
58b7429e88931175ddceab2c280161a267149a15
[ "MIT" ]
10
2020-02-12T00:37:45.000Z
2022-03-03T21:58:40.000Z
rainy_project/mypage/apps.py
habijung/WEB_HeavyReading_Rainy
58b7429e88931175ddceab2c280161a267149a15
[ "MIT" ]
2
2020-11-17T09:37:24.000Z
2021-10-04T05:59:02.000Z
from django.apps import AppConfig class MypageConfig(AppConfig): name = 'mypage'
14.5
33
0.747126
50
0.574713
0
0
0
0
0
0
8
0.091954
358b78e3032d08e2e8e1264f9dd0d6ae5c3241bb
3,225
py
Python
additional.py
NatName/BD_2
67392c77af02e3e41075c3e79eeea0eb1991ffa1
[ "MIT" ]
null
null
null
additional.py
NatName/BD_2
67392c77af02e3e41075c3e79eeea0eb1991ffa1
[ "MIT" ]
null
null
null
additional.py
NatName/BD_2
67392c77af02e3e41075c3e79eeea0eb1991ffa1
[ "MIT" ]
null
null
null
import psycopg2 class Additional(object): @staticmethod def findExistRow(connection, tableName): cursor = connection.cursor() cursor.execute("""SELECT "{}Id" FROM public."{}" OFFSET floor(random()) LIMIT 1;""" .format(tableName, tableName)) value = cursor.fetcha...
39.329268
202
0.548837
3,206
0.994109
0
0
3,133
0.971473
0
0
894
0.277209
358e7dc25cf28a3ce33d67b2d2dc79f0f2e5bd52
12,008
py
Python
hanoi_window.py
SirIsaacNeutron/tower_of_hanoi
18f7200b9b90b3117137c611fc31878405a17017
[ "MIT" ]
null
null
null
hanoi_window.py
SirIsaacNeutron/tower_of_hanoi
18f7200b9b90b3117137c611fc31878405a17017
[ "MIT" ]
null
null
null
hanoi_window.py
SirIsaacNeutron/tower_of_hanoi
18f7200b9b90b3117137c611fc31878405a17017
[ "MIT" ]
null
null
null
""" Created on Mar 12, 2018 @author: SirIsaacNeutron """ import tkinter import tkinter.messagebox import hanoi DEFAULT_FONT = ('Helvetica', 14) class DiskDialog: """A dialog window meant to get the number of Disks per Tower for the Tower of Hanoi puzzle. """ def __init__(self): self._dialog...
43.194245
110
0.553131
11,778
0.980846
0
0
0
0
0
0
2,555
0.212775
358ee60cb29f177fb65f6050d60d87a71d7179ec
4,801
py
Python
parser.py
PouletFreak/mailparser
6877b879cbaaccb5e00491726ead740a42922ae3
[ "MIT" ]
1
2019-07-02T02:05:07.000Z
2019-07-02T02:05:07.000Z
parser.py
PouletFreak/mailparser
6877b879cbaaccb5e00491726ead740a42922ae3
[ "MIT" ]
null
null
null
parser.py
PouletFreak/mailparser
6877b879cbaaccb5e00491726ead740a42922ae3
[ "MIT" ]
null
null
null
import email, json, os, re import magic import ssdeep import hashlib import datetime def md5(fname): hash_md5 = hashlib.md5() with open(fname, "rb") as f: for chunk in iter(lambda: f.read(4096), b""): hash_md5.update(chunk) return hash_md5.hexdigest() def sha1(fname): hash_sha1 = ...
32.006667
112
0.587378
0
0
0
0
0
0
0
0
795
0.165591
358f891b1298dda3ec2ff6f47a9bf5842305d9ac
5,937
py
Python
analysis_vis/scripts/CovarEpi.py
arubenstein/deep_seq
96c2bc131dc3bd3afb05486bfbc6f7297c57e604
[ "BSD-2-Clause" ]
null
null
null
analysis_vis/scripts/CovarEpi.py
arubenstein/deep_seq
96c2bc131dc3bd3afb05486bfbc6f7297c57e604
[ "BSD-2-Clause" ]
null
null
null
analysis_vis/scripts/CovarEpi.py
arubenstein/deep_seq
96c2bc131dc3bd3afb05486bfbc6f7297c57e604
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python """Create edges and nodes from a list of sequences that are a given hamming distance apart""" import itertools import sys import operator import numpy as np import argparse from general_seq import conv from general_seq import seq_IO from plot import conv as pconv import matplotlib.pyplot as plt i...
36.648148
243
0.640391
0
0
0
0
0
0
0
0
1,686
0.283982
359068a8c7d26ee7c6e843121d47283532279c4e
1,664
py
Python
Modules/DirectoryIndex.py
spanoselias/LazyReplicationTool
8fdc968e4fdf82992b704e1c7422f3a5591798eb
[ "MIT" ]
null
null
null
Modules/DirectoryIndex.py
spanoselias/LazyReplicationTool
8fdc968e4fdf82992b704e1c7422f3a5591798eb
[ "MIT" ]
null
null
null
Modules/DirectoryIndex.py
spanoselias/LazyReplicationTool
8fdc968e4fdf82992b704e1c7422f3a5591798eb
[ "MIT" ]
null
null
null
import os import pickle from Utils import DirectoryUtils, IOUtils, LoggingUtils # Write to the disk the structure such that will be # persistent. from Utils.FilesUtils import readConfigFile def writePersistentStructure(filename, structure): try: writeSerializer = open(filename, "wb") pickle.dum...
28.689655
105
0.713942
0
0
0
0
0
0
0
0
421
0.253005
35919643af15226e39bb83cf34dbdca479b35d9b
5,046
py
Python
perslay/utils.py
YuryUoL/perslay
b7f61ae60eaca110ef125d1c90685318ff934ae2
[ "MIT" ]
null
null
null
perslay/utils.py
YuryUoL/perslay
b7f61ae60eaca110ef125d1c90685318ff934ae2
[ "MIT" ]
null
null
null
perslay/utils.py
YuryUoL/perslay
b7f61ae60eaca110ef125d1c90685318ff934ae2
[ "MIT" ]
null
null
null
"""Module :mod:`perslay.utils` provide utils functions.""" # Authors: Mathieu Carriere <mathieu.carriere3@gmail.com> # Theo Lacombe <theo.lacombe@inria.fr> # Martin Royer <martin.royer@inria.fr> # License: MIT from __future__ import absolute_import from __future__ import division from __future__ impo...
41.02439
109
0.589378
0
0
0
0
0
0
0
0
398
0.078874
3591df80ea06a09fcf32bb3e38ed7f6312abf19d
389
py
Python
fabric/exceptions.py
lin-zh-cn/fabric
fd60d7e3d31eeddc2b90cfe367a573aff9f0540d
[ "BSD-2-Clause" ]
1
2016-05-17T19:04:42.000Z
2016-05-17T19:04:42.000Z
fabric/exceptions.py
offbyone/fabric
4b1cd1f1326deee75d8699161e12d2da0cb09a1d
[ "BSD-2-Clause" ]
null
null
null
fabric/exceptions.py
offbyone/fabric
4b1cd1f1326deee75d8699161e12d2da0cb09a1d
[ "BSD-2-Clause" ]
null
null
null
# TODO: this may want to move to Invoke if we can find a use for it there too? # Or make it _more_ narrowly focused and stay here? class NothingToDo(Exception): pass class GroupException(Exception): """ Lightweight exception wrapper for `.GroupResult` when one contains errors. .. versionadded:: 2.0 ...
24.3125
78
0.686375
254
0.652956
0
0
0
0
0
0
246
0.632391
3591f068c0bebd3f9604752d46dc6a1ba19f8459
20,183
py
Python
baselines/utils/agent_can_choose_helper.py
ClemenceLanfranchi/Flatland_project
9ce4c80bb25f6cdca28cfd607ac733cb16688cc1
[ "MIT" ]
null
null
null
baselines/utils/agent_can_choose_helper.py
ClemenceLanfranchi/Flatland_project
9ce4c80bb25f6cdca28cfd607ac733cb16688cc1
[ "MIT" ]
null
null
null
baselines/utils/agent_can_choose_helper.py
ClemenceLanfranchi/Flatland_project
9ce4c80bb25f6cdca28cfd607ac733cb16688cc1
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import numpy as np from flatland.core.grid.grid4_utils import get_new_position from flatland.envs.agent_utils import TrainState from flatland.utils.rendertools import RenderTool, AgentRenderVariant from utils.fast_methods import fast_count_nonzero, fast_argmax class AgentCanChooseHelp...
45.152125
122
0.60769
19,886
0.985285
0
0
0
0
0
0
4,315
0.213794
359377901334427aec4295ca0684ad7dffa3d7ff
182
py
Python
server/app/api/weather/resources.py
WagnerJM/home_pod
f6a51e4956d5956a85084f637e267406f21df6df
[ "MIT" ]
null
null
null
server/app/api/weather/resources.py
WagnerJM/home_pod
f6a51e4956d5956a85084f637e267406f21df6df
[ "MIT" ]
null
null
null
server/app/api/weather/resources.py
WagnerJM/home_pod
f6a51e4956d5956a85084f637e267406f21df6df
[ "MIT" ]
null
null
null
from flask import request from flask_restful import Resource from flask_jwt_extended import get_jwt_claims, get_jwt_identity, jwt_required from app.cache import redis_client
26
78
0.840659
0
0
0
0
0
0
0
0
0
0
35939e520372bd241032dd0ca8f839c03e847bef
1,792
py
Python
demo/buf.py
uldisa/tuxedo-python
59bd44ee9be1807b63599b48b3af9b4dc4ac4277
[ "MIT" ]
4
2019-11-05T17:44:29.000Z
2022-03-21T08:51:14.000Z
demo/buf.py
uldisa/tuxedo-python
59bd44ee9be1807b63599b48b3af9b4dc4ac4277
[ "MIT" ]
3
2020-12-15T19:39:38.000Z
2021-11-22T20:54:13.000Z
demo/buf.py
uldisa/tuxedo-python
59bd44ee9be1807b63599b48b3af9b4dc4ac4277
[ "MIT" ]
4
2020-12-13T17:02:21.000Z
2021-12-15T22:46:00.000Z
#!/usr/bin/env python3 import tuxedo as t if __name__ == '__main__': buf = {'TA_CLASS': ['T_SVCGRP'], 'TA_OPERATION': ['GET']} assert t.tpimport(t.tpexport(buf)) == buf assert t.tpimport(t.tpexport(buf, t.TPEX_STRING), t.TPEX_STRING) == buf assert t.Fname32(t.Fldid32('TA_OPERATION')) == 'TA_OPERATIO...
41.674419
92
0.671875
0
0
0
0
0
0
0
0
713
0.397879
359544a5826b09544016d35aa73f09018ee2fb1c
1,746
py
Python
src/term/api/serializers.py
eeriksp/e-dhamma-backend
c473b4504fb79e109c20f8f7ebaf05608d0a48ce
[ "MIT" ]
1
2018-05-03T19:31:57.000Z
2018-05-03T19:31:57.000Z
src/term/api/serializers.py
eeriksp/e-dhamma-backend
c473b4504fb79e109c20f8f7ebaf05608d0a48ce
[ "MIT" ]
18
2018-05-03T19:30:52.000Z
2022-02-12T04:20:58.000Z
src/term/api/serializers.py
eeriksp/e-dhamma-backend
c473b4504fb79e109c20f8f7ebaf05608d0a48ce
[ "MIT" ]
1
2018-11-15T19:15:34.000Z
2018-11-15T19:15:34.000Z
from rest_framework import serializers from ..models import Term, Meaning, Comment, Example class CommentSerializer(serializers.ModelSerializer): class Meta: model = Comment fields = '__all__' # class TranslatorsChatSerializer(serializers.ModelSerializer): # class Meta: # model = Tra...
25.304348
105
0.596793
1,489
0.852806
0
0
0
0
0
0
647
0.370561
359667e8aabcd97e7d2ce1d0e41dfa0d7e888640
302
py
Python
archive/2017/week12/tasks/more_list_tasks/tail.py
YAtOff/python0
b5af5004131d64dd52d42746eddb72b6c43a13c7
[ "Apache-2.0" ]
6
2017-11-08T14:04:39.000Z
2019-03-24T22:11:04.000Z
archive/2016/week13/tasks/tail.py
YAtOff/python0
b5af5004131d64dd52d42746eddb72b6c43a13c7
[ "Apache-2.0" ]
null
null
null
archive/2016/week13/tasks/tail.py
YAtOff/python0
b5af5004131d64dd52d42746eddb72b6c43a13c7
[ "Apache-2.0" ]
7
2015-10-27T09:04:58.000Z
2019-03-03T14:18:26.000Z
def tail(xs): """ Напишете функция в Python, която взима списък и връща нов списък, който се състои от всички елементи **без първия** от първоначалния списъка. **Не се грижете, ако списъка е празен** >>> tail([1, 2, 3]) [2, 3] >>> tail(["Python"]) [] """ pass
21.571429
79
0.572848
0
0
0
0
0
0
0
0
409
0.935927
35973f812223d4b16bcdd0f01ec5321169f6268b
12,094
py
Python
pool_automation/roles/aws_manage/library/stateful_set.py
Rob-S/indy-node
0aefbda62c5a7412d7e03b2fb9795c500ea67e9f
[ "Apache-2.0" ]
627
2017-07-06T12:38:08.000Z
2022-03-30T13:18:43.000Z
pool_automation/roles/aws_manage/library/stateful_set.py
Rob-S/indy-node
0aefbda62c5a7412d7e03b2fb9795c500ea67e9f
[ "Apache-2.0" ]
580
2017-06-29T17:59:57.000Z
2022-03-29T21:37:52.000Z
pool_automation/roles/aws_manage/library/stateful_set.py
Rob-S/indy-node
0aefbda62c5a7412d7e03b2fb9795c500ea67e9f
[ "Apache-2.0" ]
704
2017-06-29T17:45:34.000Z
2022-03-30T07:08:58.000Z
#!/usr/bin/python import re from itertools import cycle from collections import namedtuple, defaultdict, OrderedDict import boto3 from ansible.module_utils.basic import AnsibleModule # import logging # boto3.set_stream_logger('', logging.DEBUG) HostInfo = namedtuple('HostInfo', 'tag_id public_ip user') InstancePara...
33.225275
112
0.588722
5,250
0.4341
0
0
387
0.031999
0
0
3,204
0.264925
3598073bb8b0c52a37225a3d3dc812d2999277d1
20,289
py
Python
backend/hqlib/domain/measurement/metric.py
ICTU/quality-report
f6234e112228ee7cfe6476c2d709fe244579bcfe
[ "Apache-2.0" ]
25
2016-11-25T10:41:24.000Z
2021-07-03T14:02:49.000Z
backend/hqlib/domain/measurement/metric.py
ICTU/quality-report
f6234e112228ee7cfe6476c2d709fe244579bcfe
[ "Apache-2.0" ]
783
2016-09-19T12:10:21.000Z
2021-01-04T20:39:15.000Z
backend/hqlib/domain/measurement/metric.py
ICTU/quality-report
f6234e112228ee7cfe6476c2d709fe244579bcfe
[ "Apache-2.0" ]
15
2015-03-25T13:52:49.000Z
2021-03-08T17:17:56.000Z
""" Copyright 2012-2019 Ministerie van Sociale Zaken en Werkgelegenheid 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...
48.078199
119
0.642368
19,238
0.948199
0
0
3,193
0.157376
0
0
6,468
0.318793
35981b6b41348f376489c82ca46f8c08bcc7ebf0
3,564
py
Python
examples/decrypt.py
joke325/Pyrop
79669e3a3362180a239cd496513a60007a914e22
[ "BSD-2-Clause" ]
null
null
null
examples/decrypt.py
joke325/Pyrop
79669e3a3362180a239cd496513a60007a914e22
[ "BSD-2-Clause" ]
null
null
null
examples/decrypt.py
joke325/Pyrop
79669e3a3362180a239cd496513a60007a914e22
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2020 Janky <box@janky.tech> # All right reserved. # # 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 code must retain the above copyright notice, # ...
36.742268
100
0.672559
0
0
0
0
0
0
0
0
2,091
0.5867
359a0ef6c0200615c6b4cd4163ac0cfe31bb7efc
970
py
Python
squealy/urls.py
vaibhav-singh/squealy
abfe8fc5e7406987d84fb065bb70152d43f61250
[ "MIT" ]
null
null
null
squealy/urls.py
vaibhav-singh/squealy
abfe8fc5e7406987d84fb065bb70152d43f61250
[ "MIT" ]
null
null
null
squealy/urls.py
vaibhav-singh/squealy
abfe8fc5e7406987d84fb065bb70152d43f61250
[ "MIT" ]
null
null
null
from __future__ import absolute_import from django.conf.urls import url from django.contrib.auth.decorators import login_required from . import views urlpatterns = [ url(r'^swagger.json/$',views.swagger_json_api), url(r'^swagger/$', login_required(views.swagger)), url(r'charts/$', login_required(views.Char...
44.090909
96
0.710309
0
0
0
0
0
0
0
0
229
0.236082
359a485e3ad209d745beb2991ca78d9f951ff276
1,023
py
Python
src/jomiel_kore/version.py
guendto/jomiel-kore
7bbb7193baed13d7bb7baacd6cf63b28f5ddf6ac
[ "Apache-2.0" ]
null
null
null
src/jomiel_kore/version.py
guendto/jomiel-kore
7bbb7193baed13d7bb7baacd6cf63b28f5ddf6ac
[ "Apache-2.0" ]
null
null
null
src/jomiel_kore/version.py
guendto/jomiel-kore
7bbb7193baed13d7bb7baacd6cf63b28f5ddf6ac
[ "Apache-2.0" ]
null
null
null
# # jomiel-kore # # Copyright # 2019-2020 Toni Gündoğdu # # # SPDX-License-Identifier: Apache-2.0 # """TODO.""" try: # py38+ from importlib.metadata import version as metadata_version from importlib.metadata import PackageNotFoundError except ModuleNotFoundError: from importlib_metadata import version as...
22.733333
67
0.675464
0
0
0
0
0
0
0
0
376
0.366829
359ae6ec741ebfaca3f4e8299fb7c7de7b44d9e6
883
py
Python
gpdist/tanh_saturate.py
saalfeldlab/gunpowder-distances
eb7702ccc21900987bf9539ea0f1c75a4502ef50
[ "MIT" ]
null
null
null
gpdist/tanh_saturate.py
saalfeldlab/gunpowder-distances
eb7702ccc21900987bf9539ea0f1c75a4502ef50
[ "MIT" ]
null
null
null
gpdist/tanh_saturate.py
saalfeldlab/gunpowder-distances
eb7702ccc21900987bf9539ea0f1c75a4502ef50
[ "MIT" ]
null
null
null
import logging import numpy as np from gunpowder.nodes.batch_filter import BatchFilter logger = logging.getLogger(__name__) class TanhSaturate(BatchFilter): '''Saturate the values of an array to be floats between -1 and 1 by applying the tanh function. Args: array (:class:`ArrayKey`): ...
23.236842
112
0.628539
755
0.85504
0
0
0
0
0
0
345
0.390713
359bb85f1c025b4fbb8e2575afa0f0a3d21e6da8
2,497
py
Python
app/api/users/views.py
msoedov/hackit
ebe1addbf7b9a457c6627b69223cc995a5d7ed5d
[ "MIT" ]
null
null
null
app/api/users/views.py
msoedov/hackit
ebe1addbf7b9a457c6627b69223cc995a5d7ed5d
[ "MIT" ]
null
null
null
app/api/users/views.py
msoedov/hackit
ebe1addbf7b9a457c6627b69223cc995a5d7ed5d
[ "MIT" ]
null
null
null
import os from django.conf import settings from django.http.response import HttpResponse from django.shortcuts import get_object_or_404 from rest_framework.generics import ListAPIView, RetrieveUpdateAPIView, RetrieveAPIView from rest_framework.pagination import PageNumberPagination from rest_framework.authentication im...
33.293333
87
0.678414
1,950
0.780937
0
0
0
0
0
0
338
0.135362
359bd535f1f4c3e1aa4fe7671744773be664415f
3,542
py
Python
main.py
azerpas/OFFSPRING_RAFFLE_NIKE_OW
83d27376739ea772731d6d289506480933225368
[ "MIT" ]
3
2017-11-04T16:52:27.000Z
2019-11-25T22:48:20.000Z
main.py
azerpas/OFFSPRING_RAFFLE_NIKE_OW
83d27376739ea772731d6d289506480933225368
[ "MIT" ]
null
null
null
main.py
azerpas/OFFSPRING_RAFFLE_NIKE_OW
83d27376739ea772731d6d289506480933225368
[ "MIT" ]
null
null
null
import requests, json, time, random, datetime, threading, pickle from termcolor import colored sitekey = "6Ld-VBsUAAAAABeqZuOqiQmZ-1WAMVeTKjdq2-bJ" def log(event): d = datetime.datetime.now().strftime("%H:%M:%S") print("Raffle OFF-S by Azerpas :: " + str(d) + " :: " + event) class Raffle(object): def __init__(...
32.495413
142
0.61773
2,981
0.841615
0
0
0
0
0
0
1,602
0.452287
359d7f659114e08efb5857c6c56f60369996d99c
142
py
Python
my_site/objects.py
mequetrefe-do-subtroco/web_constel_cont_ext
c720c66e6d394e9aad0ed7039e1ff44e4a1c61c1
[ "MIT" ]
1
2020-06-18T09:03:53.000Z
2020-06-18T09:03:53.000Z
my_site/objects.py
mequetrefe-do-subtroco/web_constel_cont_ext
c720c66e6d394e9aad0ed7039e1ff44e4a1c61c1
[ "MIT" ]
33
2020-06-16T18:59:33.000Z
2021-08-12T21:33:17.000Z
constel/objects.py
gabrielhjs/web_constel
57b5626fb17b4fefc740cbe1ac95fd4ab90147bc
[ "MIT" ]
null
null
null
class Button(object): def __init__(self, url, label, get=''): self.url = url self.label = label self.get = get
15.777778
43
0.542254
139
0.978873
0
0
0
0
0
0
2
0.014085
359e4a1d1a339ad0c2dbb1f04272dbcd884b9fc0
163
py
Python
HSTB/shared/settings.py
noaa-ocs-hydrography/shared
d2004e803c708dffa43d09d3ffea4e4045811b28
[ "CC0-1.0" ]
null
null
null
HSTB/shared/settings.py
noaa-ocs-hydrography/shared
d2004e803c708dffa43d09d3ffea4e4045811b28
[ "CC0-1.0" ]
null
null
null
HSTB/shared/settings.py
noaa-ocs-hydrography/shared
d2004e803c708dffa43d09d3ffea4e4045811b28
[ "CC0-1.0" ]
null
null
null
from sys import platform if 'win' in platform: from .winreg import * elif 'linux' in platform: from posixreg import * import posixreg posixreg.__init__()
18.111111
25
0.730061
0
0
0
0
0
0
0
0
12
0.07362
359f1c4eaa4c5057ef7d59000e8d7426e73f5504
13,956
py
Python
src/skdh/features/core.py
PfizerRD/scikit-digital-health
f834a82d750d9e3cdd35f4f5692a0a388210b821
[ "MIT" ]
1
2022-03-31T20:56:49.000Z
2022-03-31T20:56:49.000Z
src/skdh/features/core.py
PfizerRD/scikit-digital-health
f834a82d750d9e3cdd35f4f5692a0a388210b821
[ "MIT" ]
null
null
null
src/skdh/features/core.py
PfizerRD/scikit-digital-health
f834a82d750d9e3cdd35f4f5692a0a388210b821
[ "MIT" ]
null
null
null
""" Core functionality for feature computation Lukas Adamowicz Copyright (c) 2021. Pfizer Inc. All rights reserved. """ from abc import ABC, abstractmethod from collections.abc import Iterator, Sequence import json from warnings import warn from pandas import DataFrame from numpy import float_, asarray, zeros, sum, m...
37.718919
99
0.481227
8,580
0.614789
0
0
653
0.04679
0
0
8,028
0.575236
359f880a9b970ee0910222ff4448b1d006562320
4,013
py
Python
src/bin/shipyard_airflow/tests/unit/control/test_actions_validations_id_api.py
openvdro/airship-shipyard
bae15294c534cf321f5c7ca37592dfa74c4ad7c2
[ "Apache-2.0" ]
12
2018-05-18T18:59:23.000Z
2019-05-10T12:31:44.000Z
src/bin/shipyard_airflow/tests/unit/control/test_actions_validations_id_api.py
openvdro/airship-shipyard
bae15294c534cf321f5c7ca37592dfa74c4ad7c2
[ "Apache-2.0" ]
4
2021-07-28T14:36:57.000Z
2022-03-22T16:39:23.000Z
src/bin/shipyard_airflow/tests/unit/control/test_actions_validations_id_api.py
openvdro/airship-shipyard
bae15294c534cf321f5c7ca37592dfa74c4ad7c2
[ "Apache-2.0" ]
9
2018-05-18T16:42:41.000Z
2019-04-18T20:12:14.000Z
# Copyright 2017 AT&T Intellectual Property. All other 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...
37.157407
79
0.676053
2,280
0.568154
0
0
1,105
0.275355
0
0
1,640
0.408672
35a03d99d3719963febefb8c4a03a9c25373c377
17,650
py
Python
tests/test_lccv.py
fmohr/llcv
22ba7b9712397f750150ed7e793245b5a0ae3fdf
[ "BSD-3-Clause" ]
3
2021-11-30T18:58:58.000Z
2022-03-07T20:40:41.000Z
tests/test_lccv.py
fmohr/llcv
22ba7b9712397f750150ed7e793245b5a0ae3fdf
[ "BSD-3-Clause" ]
null
null
null
tests/test_lccv.py
fmohr/llcv
22ba7b9712397f750150ed7e793245b5a0ae3fdf
[ "BSD-3-Clause" ]
null
null
null
import logging import lccv import numpy as np import sklearn.datasets from sklearn import * import unittest from parameterized import parameterized import itertools as it import time from sklearn.experimental import enable_hist_gradient_boosting # noqa import openml import pandas as pd def get_dataset(openmlid): ...
53.810976
791
0.634051
16,351
0.926402
0
0
9,883
0.559943
0
0
5,135
0.290935
35a09d34a43d1ae1af511bf3da1674e129960148
4,099
py
Python
plaso/formatters/firefox.py
cvandeplas/plaso
b625a2c267ed09505cfac84c9593d8c0922852b1
[ "Apache-2.0" ]
3
2016-03-11T02:47:08.000Z
2016-12-24T03:19:27.000Z
plaso/formatters/firefox.py
cvandeplas/plaso
b625a2c267ed09505cfac84c9593d8c0922852b1
[ "Apache-2.0" ]
null
null
null
plaso/formatters/firefox.py
cvandeplas/plaso
b625a2c267ed09505cfac84c9593d8c0922852b1
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright 2013 The Plaso Project Authors. # Please see the AUTHORS file for details on individual 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 L...
29.919708
78
0.704562
3,247
0.792144
0
0
0
0
0
0
2,200
0.536716
35a1f18f3c8d17f340bbcfd1a00b92ff04a898ed
496
py
Python
LeetCode/Unique Email Addresses.py
UtkarshPathrabe/Competitive-Coding
ba322fbb1b88682d56a9b80bdd92a853f1caa84e
[ "MIT" ]
13
2021-09-02T07:30:02.000Z
2022-03-22T19:32:03.000Z
LeetCode/Unique Email Addresses.py
UtkarshPathrabe/Competitive-Coding
ba322fbb1b88682d56a9b80bdd92a853f1caa84e
[ "MIT" ]
null
null
null
LeetCode/Unique Email Addresses.py
UtkarshPathrabe/Competitive-Coding
ba322fbb1b88682d56a9b80bdd92a853f1caa84e
[ "MIT" ]
3
2021-08-24T16:06:22.000Z
2021-09-17T15:39:53.000Z
class Solution: def getFormattedEMail(self, email): userName, domain = email.split('@') if '+' in userName: userName = userName.split('+')[0] if '.' in userName: userName = ''.join(userName.split('.')) return userName + '@' + domain def numUniqueEmail...
35.428571
56
0.5625
496
1
0
0
0
0
0
0
20
0.040323
35a2f5e7894ff096b0490a08a6c06f504ef9c5b2
1,175
py
Python
algorithms/prims.py
karensuzue/Maze
a9c613323d24d115279b1892a33036acef7b715e
[ "MIT" ]
null
null
null
algorithms/prims.py
karensuzue/Maze
a9c613323d24d115279b1892a33036acef7b715e
[ "MIT" ]
null
null
null
algorithms/prims.py
karensuzue/Maze
a9c613323d24d115279b1892a33036acef7b715e
[ "MIT" ]
null
null
null
import random from grid import Grid from grid import Cell class Prim(): def grid_to_list(self, grid): """ Place all cells from grid matrix into a list :param grid: a Grid object :return: a list of all cells contained in the grid """ list = [] for r in range(g...
28.658537
58
0.544681
1,116
0.949787
0
0
0
0
0
0
363
0.308936
35a50fd2c3fd502485183ee67073c6d3b767aa38
14,065
py
Python
secfs/fs.py
quinnmagendanz/vFileSystem
9a3c4b1d27a6325325a4f048f6a8fe93e5d871bf
[ "MIT" ]
null
null
null
secfs/fs.py
quinnmagendanz/vFileSystem
9a3c4b1d27a6325325a4f048f6a8fe93e5d871bf
[ "MIT" ]
null
null
null
secfs/fs.py
quinnmagendanz/vFileSystem
9a3c4b1d27a6325325a4f048f6a8fe93e5d871bf
[ "MIT" ]
null
null
null
# This file implements file system operations at the level of inodes. import time import secfs.crypto import secfs.tables import secfs.access import secfs.store.tree import secfs.store.block from secfs.store.inode import Inode from secfs.store.tree import Directory from cryptography.fernet import Fernet from secfs.typ...
40.650289
140
0.664842
0
0
0
0
0
0
0
0
4,838
0.343974
35a5e76930a9f052656cb9ba7d71587f5d8d63d6
3,355
py
Python
neurons/feynman/visualization.py
unconst/SimpleWord2Vec
d1af6993c1d6bca273a0c8d147132ee9867f5543
[ "MIT" ]
9
2019-12-18T10:20:15.000Z
2021-03-18T00:07:28.000Z
neurons/feynman/visualization.py
unconst/SimpleWord2Vec
d1af6993c1d6bca273a0c8d147132ee9867f5543
[ "MIT" ]
5
2020-02-12T02:21:15.000Z
2022-02-10T00:25:28.000Z
neurons/feynman/visualization.py
unconst/BitTensor
d1af6993c1d6bca273a0c8d147132ee9867f5543
[ "MIT" ]
null
null
null
from __future__ import division import io import matplotlib as mpl import matplotlib.pyplot as plt import networkx as nx import numpy import os import tensorflow as tf def figure_to_buff(figure): """Converts the matplotlib plot specified by 'figure' to a PNG image and returns it. The supplied figure is closed a...
34.234694
80
0.538897
0
0
0
0
0
0
0
0
707
0.21073
35a69bb4fad1c93931ffcca42ca3cfdb048e79fa
160
py
Python
signalwire/relay/messaging/send_result.py
ramarketing/signalwire-python
c0663bdd0454faaa39f42af7c936cea1d43e1842
[ "MIT" ]
23
2018-12-19T14:48:18.000Z
2022-01-11T03:58:36.000Z
signalwire/relay/messaging/send_result.py
ramarketing/signalwire-python
c0663bdd0454faaa39f42af7c936cea1d43e1842
[ "MIT" ]
13
2018-10-17T12:57:54.000Z
2021-09-01T21:46:01.000Z
signalwire/relay/messaging/send_result.py
ramarketing/signalwire-python
c0663bdd0454faaa39f42af7c936cea1d43e1842
[ "MIT" ]
12
2020-01-21T14:29:43.000Z
2022-01-11T07:48:06.000Z
class SendResult: def __init__(self, result={}): self.successful = result.get('code', None) == '200' self.message_id = result.get('message_id', None)
32
55
0.66875
159
0.99375
0
0
0
0
0
0
23
0.14375
35a7208f14977580e5b6c2241d160acef1319811
610
py
Python
harvester/letsdoit/discovery/sublist3r.py
Average-stu/osint
21c3f2b5145fb82156a317f7728498f368f6f6bb
[ "MIT" ]
2
2021-02-13T13:46:21.000Z
2021-02-13T13:53:46.000Z
harvester/letsdoit/discovery/sublist3r.py
Average-stu/osint
21c3f2b5145fb82156a317f7728498f368f6f6bb
[ "MIT" ]
null
null
null
harvester/letsdoit/discovery/sublist3r.py
Average-stu/osint
21c3f2b5145fb82156a317f7728498f368f6f6bb
[ "MIT" ]
null
null
null
from typing import Type from letsdoit.lib.core import * class SearchSublist3r: def __init__(self, word): self.word = word self.totalhosts = list self.proxy = False async def do_search(self): url = f'https://api.sublist3r.com/search.php?domain={self.word}' response = a...
26.521739
83
0.64918
551
0.903279
0
0
0
0
397
0.65082
58
0.095082
35a81e5b99ffdc95fe04f5cfea1745dceab51074
959
py
Python
src/spinnaker_ros_lsm/venv/lib/python2.7/site-packages/spinnman/messages/eieio/data_messages/eieio_16bit_with_payload/eieio_16bit_with_payload_timed_data_message.py
Roboy/LSM_SpiNNaker_MyoArm
04fa1eaf78778edea3ba3afa4c527d20c491718e
[ "BSD-3-Clause" ]
2
2020-11-01T13:22:11.000Z
2020-11-01T13:22:20.000Z
src/spinnaker_ros_lsm/venv/lib/python2.7/site-packages/spinnman/messages/eieio/data_messages/eieio_16bit_with_payload/eieio_16bit_with_payload_timed_data_message.py
Roboy/LSM_SpiNNaker_MyoArm
04fa1eaf78778edea3ba3afa4c527d20c491718e
[ "BSD-3-Clause" ]
null
null
null
src/spinnaker_ros_lsm/venv/lib/python2.7/site-packages/spinnman/messages/eieio/data_messages/eieio_16bit_with_payload/eieio_16bit_with_payload_timed_data_message.py
Roboy/LSM_SpiNNaker_MyoArm
04fa1eaf78778edea3ba3afa4c527d20c491718e
[ "BSD-3-Clause" ]
null
null
null
from spinnman.messages.eieio.eieio_type import EIEIOType from spinnman.messages.eieio.data_messages.eieio_with_payload_data_message\ import EIEIOWithPayloadDataMessage from spinnman.messages.eieio.data_messages.eieio_data_header\ import EIEIODataHeader from spinnman.messages.eieio.data_messages.eieio_data_messa...
38.36
77
0.746611
604
0.629823
0
0
139
0.144943
0
0
128
0.133472
35a90826145b4db8ac5f1bb20d348f0f7947e310
4,505
py
Python
reliability/tasks/Apps.py
RH-ematysek/svt
3c4f99d453c6956b434f1a90e0658a95f3fda0a4
[ "Apache-2.0" ]
115
2016-07-15T12:24:42.000Z
2022-02-21T20:40:09.000Z
reliability/tasks/Apps.py
RH-ematysek/svt
3c4f99d453c6956b434f1a90e0658a95f3fda0a4
[ "Apache-2.0" ]
452
2016-05-19T13:55:19.000Z
2022-03-24T11:25:20.000Z
reliability/tasks/Apps.py
RH-ematysek/svt
3c4f99d453c6956b434f1a90e0658a95f3fda0a4
[ "Apache-2.0" ]
112
2016-05-16T08:48:55.000Z
2022-01-12T13:13:37.000Z
from .GlobalData import global_data from .utils.oc import oc import requests import time import logging class App: def __init__(self, deployment, project, template, build_config,route=""): self.project = project self.template = template self.deployment = deployment self.build_conf...
40.954545
130
0.583796
4,092
0.908324
0
0
0
0
0
0
1,251
0.277691
35a90fa7fe750428ce519a6161eec0ec07750701
4,463
py
Python
recognize.py
aerdem4/rock-paper-scissors
0e520aa53d8cb146a8ab4f5fd1ebd823ffed3a4b
[ "MIT" ]
null
null
null
recognize.py
aerdem4/rock-paper-scissors
0e520aa53d8cb146a8ab4f5fd1ebd823ffed3a4b
[ "MIT" ]
1
2020-03-02T13:26:05.000Z
2020-03-02T13:26:05.000Z
recognize.py
aerdem4/rock-paper-scissors
0e520aa53d8cb146a8ab4f5fd1ebd823ffed3a4b
[ "MIT" ]
null
null
null
import cv2 import numpy as np from keras.models import load_model bg = None def run_avg(image, acc_weight): global bg if bg is None: bg = image.copy().astype("float") return cv2.accumulateWeighted(image, bg, acc_weight) def segment(image, threshold=10): global bg diff = cv2.absdif...
33.556391
118
0.561058
0
0
0
0
0
0
0
0
1,221
0.273583
35ab2a8e1ddb97b8c757c40675e5df5553af81af
4,829
py
Python
src/extract-data.py
SMTG-UCL/singlet-fission-screening
69c85d672a98420397094e55bef98287879db685
[ "MIT" ]
null
null
null
src/extract-data.py
SMTG-UCL/singlet-fission-screening
69c85d672a98420397094e55bef98287879db685
[ "MIT" ]
null
null
null
src/extract-data.py
SMTG-UCL/singlet-fission-screening
69c85d672a98420397094e55bef98287879db685
[ "MIT" ]
null
null
null
#!/usr/bin/env python from __future__ import unicode_literals import os import sys import tarfile import shutil import tempfile from contextlib import contextmanager from pymatgen.io.gaussian import GaussianInput, GaussianOutput from tinydb import TinyDB @contextmanager def cd(run_path, cleanup=lambda: True): ...
37.726563
84
0.601781
0
0
501
0.103748
533
0.110375
0
0
1,034
0.214123
35acde1fca854d1c0727ab3afd45a6080b48ff76
14,007
py
Python
src/pyprocessing/shapes.py
agarwalnaimish/pyprocessing
46695c379c95a7b874f76257c37f44f4b59d39e9
[ "MIT" ]
3
2018-04-23T17:33:02.000Z
2021-01-05T04:52:36.000Z
src/pyprocessing/shapes.py
agarwalnaimish/pyprocessing
46695c379c95a7b874f76257c37f44f4b59d39e9
[ "MIT" ]
1
2018-04-23T17:37:37.000Z
2018-04-23T17:37:37.000Z
src/pyprocessing/shapes.py
agarwalnaimish/pyprocessing
46695c379c95a7b874f76257c37f44f4b59d39e9
[ "MIT" ]
2
2019-01-16T06:34:52.000Z
2019-10-15T14:03:07.000Z
# coding: utf-8 # ************************ # SHAPE STUFF # ************************ import ctypes from pyglet.gl import * from .globs import * from .constants import * from .pvector import * from .primitives import _smoothFixHackBegin, _smoothFixHackEnd from math import * __all__ = ['beginShape', 'vertex', 'normal...
36.667539
92
0.520811
1,659
0.118399
0
0
0
0
0
0
3,539
0.252569
35adcf6adc687ab72f83ce164d7c0aba3ae2e753
22,531
py
Python
ptpy/transports/usb.py
komodo108/sequoia-ptpy
3395e68286ef0dc8a026e48a960ff4d0c65792a4
[ "BSD-3-Clause" ]
null
null
null
ptpy/transports/usb.py
komodo108/sequoia-ptpy
3395e68286ef0dc8a026e48a960ff4d0c65792a4
[ "BSD-3-Clause" ]
null
null
null
ptpy/transports/usb.py
komodo108/sequoia-ptpy
3395e68286ef0dc8a026e48a960ff4d0c65792a4
[ "BSD-3-Clause" ]
null
null
null
'''This module implements the USB transport layer for PTP. It exports the PTPUSB class. Both the transport layer and the basic PTP implementation are Vendor agnostic. Vendor extensions should extend these to support more operations. ''' from __future__ import absolute_import import atexit import logging import usb.cor...
37.42691
79
0.509609
21,448
0.951933
325
0.014425
185
0.008211
0
0
4,155
0.184413
35ae9be77ddd9d5c96ad4c48dcd4d7d31ac05858
4,598
py
Python
cablegate/cable/models.py
h3/django-cablegate
bffa2970a1fb21717a48cfce76b8a24f909acab0
[ "BSD-3-Clause" ]
1
2016-04-03T03:15:48.000Z
2016-04-03T03:15:48.000Z
cablegate/cable/models.py
h3/django-cablegate
bffa2970a1fb21717a48cfce76b8a24f909acab0
[ "BSD-3-Clause" ]
null
null
null
cablegate/cable/models.py
h3/django-cablegate
bffa2970a1fb21717a48cfce76b8a24f909acab0
[ "BSD-3-Clause" ]
1
2019-07-31T06:02:12.000Z
2019-07-31T06:02:12.000Z
import re from operator import itemgetter from django.conf import settings from django.utils import simplejson from django.db import models from nltk.tokenize.simple import SpaceTokenizer from nltk.stem import LancasterStemmer WORDS_IGNORED = ( 'after', 'that', 'with', 'which', 'into', 'when', 'than', 'them', 't...
37.382114
101
0.565681
4,114
0.894737
0
0
0
0
0
0
690
0.150065
35aec8279955fef5781af2402034c048af969760
618
py
Python
ztools/Fs/__init__.py
ItsCinnabar/Mass_Custom_XCIs
94551f43eeed3a6ab7a761fd41ff5500435910dc
[ "MIT" ]
6
2019-05-08T18:52:48.000Z
2019-10-01T06:58:20.000Z
ztools/Fs/__init__.py
ItsCinnabar/Mass_Custom_XCIs
94551f43eeed3a6ab7a761fd41ff5500435910dc
[ "MIT" ]
null
null
null
ztools/Fs/__init__.py
ItsCinnabar/Mass_Custom_XCIs
94551f43eeed3a6ab7a761fd41ff5500435910dc
[ "MIT" ]
1
2020-01-01T07:44:06.000Z
2020-01-01T07:44:06.000Z
from Fs.Xci import Xci from Fs.pXci import uXci from Fs.pXci import nXci from Fs.Nca import Nca from Fs.Nsp import Nsp from Fs.Rom import Rom from Fs.Nacp import Nacp from Fs.Pfs0 import Pfs0 from Fs.Hfs0 import Hfs0 from Fs.Ticket import Ticket from Fs.File import File def factory(name): if name.endswith('.xci'): ...
20.6
29
0.666667
0
0
0
0
0
0
0
0
44
0.071197
35b0214bdc1e4c57ae70c73b860e17dcca99ae17
808
py
Python
Days/Day 5 - Doesn't He Have Intern-Elves For This/Part 2.py
jamesjiang52/Advent-of-Code-2015
29c19eb11d9bde532bc2609c5b970a0a6924d11b
[ "MIT" ]
null
null
null
Days/Day 5 - Doesn't He Have Intern-Elves For This/Part 2.py
jamesjiang52/Advent-of-Code-2015
29c19eb11d9bde532bc2609c5b970a0a6924d11b
[ "MIT" ]
null
null
null
Days/Day 5 - Doesn't He Have Intern-Elves For This/Part 2.py
jamesjiang52/Advent-of-Code-2015
29c19eb11d9bde532bc2609c5b970a0a6924d11b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Jan 3 10:27:50 2018 @author: James Jiang """ all_lines = [line.rstrip('\n') for line in open('Data.txt')] def has_two_pairs(string): for i in range(len(string) - 1): pair = string[i:i + 2] if (pair in string[:i]) or (pair in string[i + 2:]): ...
21.837838
83
0.566832
0
0
0
0
0
0
0
0
102
0.126238
35b02597463fbb5f50f5b66d1352a253be0edf70
4,708
py
Python
loggerBot.py
jskrist/channelLogger
42d5820d29ce9213c823d76dbdc748e288f45eb8
[ "MIT" ]
null
null
null
loggerBot.py
jskrist/channelLogger
42d5820d29ce9213c823d76dbdc748e288f45eb8
[ "MIT" ]
null
null
null
loggerBot.py
jskrist/channelLogger
42d5820d29ce9213c823d76dbdc748e288f45eb8
[ "MIT" ]
null
null
null
import asyncio, discord, json from discord.ext.commands import Bot from discord.ext import commands from tinydb import TinyDB, Query from tinydb.operations import delete, increment ''' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - SETUP - - - - - - - - - - - - - - - - - - - - - - - - - - - - -...
37.664
105
0.647409
0
0
0
0
2,135
0.453483
2,694
0.572218
3,037
0.645072
35b0660ef14051f12a9964eb3155f5bf5f684943
2,080
py
Python
roomBasedLightControl/roomBasedLightControl.py
pippyn/appdaemon-scripts
615cdfeaaf039ffbe1be041eb07c35a2494f008d
[ "MIT" ]
null
null
null
roomBasedLightControl/roomBasedLightControl.py
pippyn/appdaemon-scripts
615cdfeaaf039ffbe1be041eb07c35a2494f008d
[ "MIT" ]
null
null
null
roomBasedLightControl/roomBasedLightControl.py
pippyn/appdaemon-scripts
615cdfeaaf039ffbe1be041eb07c35a2494f008d
[ "MIT" ]
null
null
null
import appdaemon.plugins.hass.hassapi as hass import datetime import globals # # App which turns on the light based on the room the user is currently in # # # Args: # room_sensor: the sensor which shows the room the user is in. example: sensor.mqtt_room_user_one # entity: The entity which gets turned on by alexa/snips....
33.015873
97
0.664423
1,510
0.725962
0
0
0
0
0
0
618
0.297115
35b0f708a1bc7275f2341dabd56cd8622b49aa36
4,074
py
Python
Platypus StableSwap/emissions_rate.py
MattAHarrington/protocol-analysis
50f15e186bb70b4c76c9e77c8fc832619382c8d0
[ "MIT" ]
null
null
null
Platypus StableSwap/emissions_rate.py
MattAHarrington/protocol-analysis
50f15e186bb70b4c76c9e77c8fc832619382c8d0
[ "MIT" ]
null
null
null
Platypus StableSwap/emissions_rate.py
MattAHarrington/protocol-analysis
50f15e186bb70b4c76c9e77c8fc832619382c8d0
[ "MIT" ]
null
null
null
#!/usr/bin/env python ''' Calculating the emissions from deposits in Platypus stable accounts ''' import numpy as np import matplotlib.pyplot as plt from matplotlib import cm from matplotlib.ticker import LinearLocator, EngFormatter, PercentFormatter from strategy_const import * from const import * def boosted_pool_...
42.884211
120
0.738095
0
0
0
0
1,188
0.291605
0
0
1,608
0.394698
35b1c053362f87cf922d6f371df237e7204dcea6
1,477
py
Python
Tests/test_management_client.py
acronis/acronis-cyber-platform-python-samples
bfcbea06753a773ac889054f7e4dee2a6496a8de
[ "MIT" ]
16
2019-10-12T12:14:57.000Z
2021-11-29T12:06:58.000Z
Tests/test_management_client.py
acronis/acronis-cyber-platform-python-samples
bfcbea06753a773ac889054f7e4dee2a6496a8de
[ "MIT" ]
null
null
null
Tests/test_management_client.py
acronis/acronis-cyber-platform-python-samples
bfcbea06753a773ac889054f7e4dee2a6496a8de
[ "MIT" ]
4
2019-10-18T17:16:14.000Z
2021-11-16T20:35:43.000Z
""" @date 30.08.2019 @author Anna.Shavrina@acronis.com @details :copyright: 2003–2019 Acronis International GmbH, Rheinweg 9, 8200 Schaffhausen, Switzerland. All rights reserved. """ from ManagementAPI.ManagementClient.how_to_create_client import create_client from ManagementAPI.ManagementClient.how_to_delete_client ...
36.925
77
0.786053
0
0
0
0
0
0
0
0
310
0.209601
35b5a9f36ac319cd4dda6dbca8387f49972a915d
6,276
py
Python
holide1/src_test/unittests/test_school_holidays.py
SmartDataInnovationLab/holide-library
2c2b023659fbaf40474caf693b57aafc98f45f7b
[ "MIT" ]
1
2020-11-30T19:34:37.000Z
2020-11-30T19:34:37.000Z
holide1/src_test/unittests/test_school_holidays.py
SmartDataInnovationLab/holide-library
2c2b023659fbaf40474caf693b57aafc98f45f7b
[ "MIT" ]
2
2021-06-08T09:25:47.000Z
2021-06-08T09:26:34.000Z
holide1/src_test/unittests/test_school_holidays.py
SmartDataInnovationLab/holide-library
2c2b023659fbaf40474caf693b57aafc98f45f7b
[ "MIT" ]
1
2021-05-09T22:07:25.000Z
2021-05-09T22:07:25.000Z
#!/usr/bin/env python3 import os, sys, inspect currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))) parentdir = os.path.dirname(currentdir) parentdir = os.path.dirname(parentdir) sys.path.insert(0, parentdir) import unittest import datetime from datetime import date from src.holide i...
39.721519
110
0.688177
5,704
0.908859
0
0
0
0
0
0
485
0.077279
35b60f638217a742f0dcf90d5b6242bfd1caa4d0
4,705
py
Python
migrations/migrate.py
MJJojo97/openslides-backend
af0d1edb0070e352d46f285a1ba0bbe3702d49ae
[ "MIT" ]
null
null
null
migrations/migrate.py
MJJojo97/openslides-backend
af0d1edb0070e352d46f285a1ba0bbe3702d49ae
[ "MIT" ]
null
null
null
migrations/migrate.py
MJJojo97/openslides-backend
af0d1edb0070e352d46f285a1ba0bbe3702d49ae
[ "MIT" ]
null
null
null
import pkgutil import sys from argparse import ArgumentParser from importlib import import_module from typing import Any, List, Type from datastore.migrations import BaseMigration, MigrationException, PrintFunction, setup class BadMigrationModule(MigrationException): pass class InvalidMigrationCommand(Migratio...
32.902098
133
0.636557
2,523
0.536238
0
0
1,514
0.321785
0
0
1,039
0.220829
35b754ce093c02acd53d79d1aafbde7ead2584ed
2,221
py
Python
src/refactor/parallel.py
luislorenzom/b33th0v3n
cf2665a51ed6779093c273cf9d7c404dd9222493
[ "MIT" ]
null
null
null
src/refactor/parallel.py
luislorenzom/b33th0v3n
cf2665a51ed6779093c273cf9d7c404dd9222493
[ "MIT" ]
null
null
null
src/refactor/parallel.py
luislorenzom/b33th0v3n
cf2665a51ed6779093c273cf9d7c404dd9222493
[ "MIT" ]
null
null
null
from types import FunctionType import numpy as np import pandas as pd from functools import partial from multiprocessing import Pool, cpu_count def get_levenshtein_distance(str1: str, str2: str) -> float: """ Computes the Levenshtein distance between two strings :param str1: first string :param str...
30.013514
123
0.594327
0
0
0
0
0
0
0
0
791
0.356146
35b8e7d7bd8c548bc9dcbb5f851dbbc98f40925a
3,540
py
Python
pygbif/caching.py
bartaelterman/pygbif
110e0cbcd8cb2b1813f6e27d66e95a95579d4643
[ "MIT" ]
37
2015-03-20T13:50:27.000Z
2021-07-10T11:23:16.000Z
pygbif/caching.py
bartaelterman/pygbif
110e0cbcd8cb2b1813f6e27d66e95a95579d4643
[ "MIT" ]
82
2015-10-30T06:12:48.000Z
2021-07-13T12:20:57.000Z
pygbif/caching.py
bartaelterman/pygbif
110e0cbcd8cb2b1813f6e27d66e95a95579d4643
[ "MIT" ]
12
2015-03-20T13:50:29.000Z
2020-09-23T08:53:46.000Z
import requests_cache import os.path import tempfile try: from requests_cache import remove_expired_responses except ModuleNotFoundError: from requests_cache.core import remove_expired_responses def caching( cache=False, name=None, backend="sqlite", expire_after=86400, allowable_codes=(200...
34.705882
90
0.663559
0
0
0
0
0
0
0
0
2,554
0.720655
35bbfe712541d7c2876a8f989c17d4e15afb5e72
1,441
py
Python
mlir/lib/Bindings/Python/mlir/dialects/linalg/opdsl/lang/types.py
MochalovaAn/llvm
528aa5ca4aa9df447dc3497ef19da3b124e88d7d
[ "Apache-2.0" ]
null
null
null
mlir/lib/Bindings/Python/mlir/dialects/linalg/opdsl/lang/types.py
MochalovaAn/llvm
528aa5ca4aa9df447dc3497ef19da3b124e88d7d
[ "Apache-2.0" ]
null
null
null
mlir/lib/Bindings/Python/mlir/dialects/linalg/opdsl/lang/types.py
MochalovaAn/llvm
528aa5ca4aa9df447dc3497ef19da3b124e88d7d
[ "Apache-2.0" ]
null
null
null
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. # See https://llvm.org/LICENSE.txt for license information. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception """Facility for symbolically referencing type variables. Type variables are instances of the TypeVar class, which is u...
20.585714
80
0.66898
665
0.461485
0
0
232
0.160999
0
0
811
0.562804
35bc18ea4360aa47732f68c69e53ac55b41e9de8
2,867
py
Python
run_exp/run_theory.py
andeyeluguo/AI_physicist
b242204da5a284cd22175bae66e6b4f79814ceeb
[ "MIT" ]
25
2019-10-22T16:49:45.000Z
2021-12-21T03:53:59.000Z
run_exp/run_theory.py
andeyeluguo/AI_physicist
b242204da5a284cd22175bae66e6b4f79814ceeb
[ "MIT" ]
1
2021-01-21T15:57:19.000Z
2021-04-04T15:51:27.000Z
run_exp/run_theory.py
andeyeluguo/AI_physicist
b242204da5a284cd22175bae66e6b4f79814ceeb
[ "MIT" ]
10
2019-10-30T03:42:32.000Z
2022-03-18T14:20:48.000Z
import os, sys exp_id=[ "exp1.0", ] env_source=[ "file", ] exp_mode = [ "continuous", #"newb", #"base", ] num_theories_init=[ 4, ] pred_nets_neurons=[ 8, ] pred_nets_activation=[ "linear", # "leakyRelu", ] domain_net_neurons=[ 8, ] domain_pred_mode=[ "onehot", ] mse_amp=[ 1e-7, ] simplify_criteria=[ '\("DLs",...
14.123153
89
0.647018
0
0
0
0
0
0
0
0
365
0.127311
35bd4ab483f73871726c5a33d5a113b95bd2e29f
10,304
py
Python
lib/dataset/cao_cifar.py
jrcai/ACE
1e2b04d1cf4bb517f107664ac489a1a96e95a4c1
[ "MIT" ]
18
2021-08-06T01:15:32.000Z
2022-03-14T07:09:39.000Z
lib/dataset/cao_cifar.py
jrcai/BagofTricks-LT
d75b195367e3d535d316d134ec4bbef4bb7fcbdd
[ "MIT" ]
2
2021-09-24T03:29:17.000Z
2021-11-22T19:18:58.000Z
lib/dataset/cao_cifar.py
jrcai/BagofTricks-LT
d75b195367e3d535d316d134ec4bbef4bb7fcbdd
[ "MIT" ]
2
2021-10-17T18:09:20.000Z
2021-11-08T04:19:19.000Z
# To ensure fairness, we use the same code in LDAM (https://github.com/kaidic/LDAM-DRW) to produce long-tailed CIFAR datasets. import torchvision import torchvision.transforms as transforms import numpy as np from PIL import Image import random import os import cv2 import time import json import copy from utils.utils ...
36.8
128
0.58948
9,570
0.928766
0
0
0
0
0
0
1,519
0.147418
35be620af3553df16e0f3406f42cf348349c4566
6,428
py
Python
fs.py
titouanc/docfub
a06fdb9100c85ac3d80aa6e3102029436963d27c
[ "MIT" ]
1
2018-03-26T15:58:49.000Z
2018-03-26T15:58:49.000Z
fs.py
titouanc/docfub
a06fdb9100c85ac3d80aa6e3102029436963d27c
[ "MIT" ]
1
2021-06-01T22:25:28.000Z
2021-06-01T22:25:28.000Z
fs.py
titouanc/docfub
a06fdb9100c85ac3d80aa6e3102029436963d27c
[ "MIT" ]
null
null
null
import os import errno import stat import logging from io import BytesIO from time import time, mktime, strptime from fuse import FuseOSError, Operations, LoggingMixIn logger = logging.getLogger('dochub_fs') def wrap_errno(func): """ @brief Transform Exceptions happening inside func into meaningful ...
28.192982
80
0.564872
5,629
0.8757
0
0
1,933
0.300716
0
0
1,053
0.163815
35beb2659c3525943e08592cd4e9ebc8b9fd9ed7
2,239
py
Python
algolab_class_API/migrations/0011_auto_20190110_1307.py
KMU-algolab/algolab_class
fdf22cd10d5af71eae63e259c4f88f2b55b44ec7
[ "MIT" ]
1
2019-01-10T05:46:09.000Z
2019-01-10T05:46:09.000Z
algolab_class_API/migrations/0011_auto_20190110_1307.py
KMU-algolab/algolab_class
fdf22cd10d5af71eae63e259c4f88f2b55b44ec7
[ "MIT" ]
7
2018-12-25T15:59:49.000Z
2019-01-10T05:45:25.000Z
algolab_class_API/migrations/0011_auto_20190110_1307.py
KMU-algolab/algolab_class
fdf22cd10d5af71eae63e259c4f88f2b55b44ec7
[ "MIT" ]
null
null
null
# Generated by Django 2.1.4 on 2019-01-10 04:07 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('algolab_class_API', '0010_submithistory'), ] operations = [ migrations.Rem...
38.603448
305
0.604734
2,160
0.931436
0
0
0
0
0
0
717
0.309185
35befecc57c6a5bb3923fbaf46cad1525bfacb20
11,266
py
Python
spiderpy/spiderapi.py
peternijssen/python-itho-daalderop-api
a4c2b1488e7f32b892004df1ccfeb902f8e19135
[ "MIT" ]
null
null
null
spiderpy/spiderapi.py
peternijssen/python-itho-daalderop-api
a4c2b1488e7f32b892004df1ccfeb902f8e19135
[ "MIT" ]
null
null
null
spiderpy/spiderapi.py
peternijssen/python-itho-daalderop-api
a4c2b1488e7f32b892004df1ccfeb902f8e19135
[ "MIT" ]
null
null
null
""" Python wrapper for the Spider API """ from __future__ import annotations import json import logging import time from datetime import datetime, timedelta from typing import Any, Dict, ValuesView from urllib.parse import unquote import requests from spiderpy.devices.powerplug import SpiderPowerPlug from spiderpy.d...
33.933735
106
0.582105
10,507
0.932629
0
0
0
0
0
0
2,550
0.226345
35bf68b8af9e43feff762af717348577fdc8b44c
3,548
py
Python
http_nudger/persister.py
askolosov/http-nudger
c483ffdef0df57ef625d0912cc2317d3c67f2303
[ "MIT" ]
null
null
null
http_nudger/persister.py
askolosov/http-nudger
c483ffdef0df57ef625d0912cc2317d3c67f2303
[ "MIT" ]
null
null
null
http_nudger/persister.py
askolosov/http-nudger
c483ffdef0df57ef625d0912cc2317d3c67f2303
[ "MIT" ]
null
null
null
""" Persister module contains part of the http-nudger which consumes records from Kafka and stores them into the database """ import json import logging from pathlib import Path from typing import List import aiokafka import asyncpg from .helpers import create_kafka_consumer, create_postgres_connection_pool from .url...
29.081967
85
0.598365
0
0
0
0
0
0
3,112
0.877114
1,060
0.29876
35c0bcc2adb3ea68d0b4f4ffb1f220f03d52c1be
724
py
Python
var/spack/repos/builtin/packages/liblzf/package.py
BenWibking/spack
49b3b43a4a9375210b578635d9240875a5f3106b
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2,360
2017-11-06T08:47:01.000Z
2022-03-31T14:45:33.000Z
var/spack/repos/builtin/packages/liblzf/package.py
BenWibking/spack
49b3b43a4a9375210b578635d9240875a5f3106b
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
13,838
2017-11-04T07:49:45.000Z
2022-03-31T23:38:39.000Z
var/spack/repos/builtin/packages/liblzf/package.py
joequant/spack
e028ee0d5903045e1cdeb57550cbff61f2ffb2fa
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
1,793
2017-11-04T07:45:50.000Z
2022-03-30T14:31:53.000Z
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Liblzf(AutotoolsPackage): """LibLZF is a very small data compression library. It cons...
36.2
93
0.740331
503
0.694751
0
0
0
0
0
0
603
0.832873
35c0d7b1584b734cc6675d562fe57b7a5059350f
15,565
py
Python
blaze/compute/tests/test_elwise_eval.py
talumbau/blaze
66c9e61476f11d53f7b734664214537182397739
[ "BSD-3-Clause" ]
1
2018-01-24T08:54:04.000Z
2018-01-24T08:54:04.000Z
blaze/compute/tests/test_elwise_eval.py
talumbau/blaze
66c9e61476f11d53f7b734664214537182397739
[ "BSD-3-Clause" ]
null
null
null
blaze/compute/tests/test_elwise_eval.py
talumbau/blaze
66c9e61476f11d53f7b734664214537182397739
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import, division, print_function import unittest import numpy as np from numpy.testing import assert_array_equal, assert_allclose from dynd import nd, ndt import blaze import unittest import tempfile import os, os.path import glob import shutil import blaze # Useful superclass for ...
35.946882
76
0.595952
13,405
0.861227
0
0
0
0
0
0
4,826
0.310055
35c0ed329cd7d8d2056b7e34556321128f797142
1,457
py
Python
torch3d/models/pointnet2.py
zhangmozhe/torch3d
d47e9b243e520f9c0c72a26c271d2c7ad242cb65
[ "BSD-3-Clause" ]
null
null
null
torch3d/models/pointnet2.py
zhangmozhe/torch3d
d47e9b243e520f9c0c72a26c271d2c7ad242cb65
[ "BSD-3-Clause" ]
null
null
null
torch3d/models/pointnet2.py
zhangmozhe/torch3d
d47e9b243e520f9c0c72a26c271d2c7ad242cb65
[ "BSD-3-Clause" ]
1
2020-06-03T15:19:25.000Z
2020-06-03T15:19:25.000Z
import torch import torch.nn as nn from torch3d.nn import SetAbstraction class PointNetSSG(nn.Module): """ PointNet++ single-scale grouping architecture from the `"PointNet++: Deep Hierarchical Feature Learning on Point Sets in a Metric Space" <https://arxiv.org/abs/1706.02413>`_ paper. Args: in_...
35.536585
184
0.59094
1,381
0.947838
0
0
0
0
0
0
422
0.289636
35c12c665a38adb43714ee6a7e812bc5fee89003
325
py
Python
tests/test_engine.py
znhv/winsio
4d4e69961285ea3dcebc5ad6358e2d753d6b4f9d
[ "MIT" ]
null
null
null
tests/test_engine.py
znhv/winsio
4d4e69961285ea3dcebc5ad6358e2d753d6b4f9d
[ "MIT" ]
null
null
null
tests/test_engine.py
znhv/winsio
4d4e69961285ea3dcebc5ad6358e2d753d6b4f9d
[ "MIT" ]
null
null
null
import unittest.mock as mock import pytest from brainstorm.scripts import engine from brainstorm.games import calc # def test_player_ready(monkeypatch): # with monkeypatch.context() as m: # m.setattr('builtins.input', lambda prompt="": "y") # result = engine.player_ready() # assert result is ...
25
60
0.707692
0
0
0
0
0
0
0
0
202
0.621538
35c16cadc73c78b1e8e17420e27d77517793b258
1,328
py
Python
Day01.py
peiliming007/PythonByJoker
f457706bcdc43c8743dd88a210c5ca0b28aabd21
[ "Apache-2.0" ]
null
null
null
Day01.py
peiliming007/PythonByJoker
f457706bcdc43c8743dd88a210c5ca0b28aabd21
[ "Apache-2.0" ]
null
null
null
Day01.py
peiliming007/PythonByJoker
f457706bcdc43c8743dd88a210c5ca0b28aabd21
[ "Apache-2.0" ]
null
null
null
#1 celsius=float(input("请输入一个摄氏度:>>")) fahrenheit=(9 / 5) *celsius + 32 print("华氏温度为:%.1f" % fahrenheit) #2 radius=float(input("请输入圆柱体的半径:>>")) length=float(input("请输入圆柱体的高:>>")) area= radius*radius*3.14159265 volume=area*length print("The area is %.4f" % area ) print("The volume is %.1f" % volume) #...
21.419355
65
0.637048
0
0
0
0
0
0
0
0
651
0.413071
35c4595b0ebd1fa1dbe98d7023f5193c7b298c15
5,595
py
Python
botx/bots/bots.py
ExpressApp/pybotx
97c8b1ce5d45a05567ed01d545cb43174a2dcbb9
[ "MIT" ]
13
2021-01-21T12:43:10.000Z
2022-03-23T11:11:59.000Z
botx/bots/bots.py
ExpressApp/pybotx
97c8b1ce5d45a05567ed01d545cb43174a2dcbb9
[ "MIT" ]
259
2020-02-26T08:51:03.000Z
2022-03-23T11:08:36.000Z
botx/bots/bots.py
ExpressApp/pybotx
97c8b1ce5d45a05567ed01d545cb43174a2dcbb9
[ "MIT" ]
5
2019-12-02T16:19:22.000Z
2021-11-22T20:33:34.000Z
"""Implementation for bot classes.""" import asyncio from dataclasses import InitVar, field from typing import Any, Callable, Dict, List from weakref import WeakSet from loguru import logger from pydantic.dataclasses import dataclass from botx import concurrency, exception_handlers, exceptions, shared, typing from b...
36.331169
87
0.648794
4,685
0.837355
0
0
4,731
0.845576
2,719
0.48597
1,187
0.212154
35c7b5af3988bd0290ffa3910c3ac39d7b3a8d95
4,242
py
Python
orka_inventory.py
jeff-vincent/orka-ansible-dynamic-inventory
0a0e19597d5cd06e6bb0214a96826376dca76a1e
[ "MIT" ]
null
null
null
orka_inventory.py
jeff-vincent/orka-ansible-dynamic-inventory
0a0e19597d5cd06e6bb0214a96826376dca76a1e
[ "MIT" ]
null
null
null
orka_inventory.py
jeff-vincent/orka-ansible-dynamic-inventory
0a0e19597d5cd06e6bb0214a96826376dca76a1e
[ "MIT" ]
1
2022-01-05T20:31:53.000Z
2022-01-05T20:31:53.000Z
#!/usr/bin/python3 import argparse import json import os import subprocess class OrkaAnsibleInventory: def __init__(self): self.vm_data = None self.filtered_data = None self.inventory = { 'group': {'hosts': []}, 'vars': [], '_meta': { '...
32.883721
99
0.610797
2,975
0.70132
0
0
0
0
0
0
1,579
0.37223
35c890b336369e56ae920d6e9a1f19392e8e1399
8,647
py
Python
tests/test_release_summary.py
kids-first/kf-task-release-reports
6c973fc82b7dab89c45832dd0b61a1ef85a5ebf7
[ "Apache-2.0" ]
null
null
null
tests/test_release_summary.py
kids-first/kf-task-release-reports
6c973fc82b7dab89c45832dd0b61a1ef85a5ebf7
[ "Apache-2.0" ]
11
2018-10-26T17:09:17.000Z
2019-09-23T14:53:53.000Z
tests/test_release_summary.py
kids-first/kf-task-release-reports
6c973fc82b7dab89c45832dd0b61a1ef85a5ebf7
[ "Apache-2.0" ]
null
null
null
import boto3 import datetime import requests import pytest from unittest.mock import patch from reports.reporting import release_summary from collections import Counter from functools import partial ENTITIES = [ 'participants', 'biospecimens', 'phenotypes', 'genomic-files', 'study-files', 'rea...
35.731405
77
0.663814
0
0
0
0
278
0.03215
0
0
2,831
0.327397
35cadb5be4b90796980534e95cf42d32733a5cb1
875
py
Python
apps/payroll/models/employee.py
youssriaboelseod/pyerp
9ef9873e2ff340010656f0c518bccf9d7a14dbaa
[ "MIT" ]
115
2019-08-18T16:12:54.000Z
2022-03-29T14:17:20.000Z
apps/payroll/models/employee.py
youssriaboelseod/pyerp
9ef9873e2ff340010656f0c518bccf9d7a14dbaa
[ "MIT" ]
22
2019-09-09T01:34:54.000Z
2022-03-12T00:33:40.000Z
apps/payroll/models/employee.py
youssriaboelseod/pyerp
9ef9873e2ff340010656f0c518bccf9d7a14dbaa
[ "MIT" ]
83
2019-08-17T17:09:20.000Z
2022-03-25T04:46:53.000Z
# Django Library from django.contrib.auth.models import User from django.db import models from django.urls import reverse from django.utils.translation import ugettext_lazy as _ # Thirdparty Library from apps.base.models import PyFather # Tabla de Empleados class PyEmployee(PyFather): name = models.CharField('No...
35
80
0.742857
614
0.700913
0
0
0
0
0
0
164
0.187215
35cba22e1908f51ae40f6b613a82f59b7cb71986
89
py
Python
apps/players/apps.py
xeroz/admin-django
e10c5eb87f9aea7a714e5be2307969a3b998706c
[ "MIT" ]
12
2018-03-20T21:38:53.000Z
2021-10-31T10:00:12.000Z
apps/players/apps.py
xeroz/admin-django
e10c5eb87f9aea7a714e5be2307969a3b998706c
[ "MIT" ]
79
2018-03-18T14:26:47.000Z
2022-03-01T15:51:40.000Z
apps/players/apps.py
xeroz/admin-django
e10c5eb87f9aea7a714e5be2307969a3b998706c
[ "MIT" ]
4
2018-05-18T15:39:56.000Z
2020-10-29T09:28:41.000Z
from django.apps import AppConfig class PlayersConfig(AppConfig): name = 'players'
14.833333
33
0.752809
52
0.58427
0
0
0
0
0
0
9
0.101124
35cbb4dfe9729e65b9b76b8a0c6acb3a8449dd0a
8,063
py
Python
tas/__main__.py
lispsil/tas
cccc48b3de23050acd094d62b9dae9ff2db81ca8
[ "MIT" ]
1
2020-03-12T15:29:41.000Z
2020-03-12T15:29:41.000Z
tas/__main__.py
lispsil/tas
cccc48b3de23050acd094d62b9dae9ff2db81ca8
[ "MIT" ]
null
null
null
tas/__main__.py
lispsil/tas
cccc48b3de23050acd094d62b9dae9ff2db81ca8
[ "MIT" ]
1
2021-10-10T18:21:24.000Z
2021-10-10T18:21:24.000Z
import os import signal import atexit import json import time from pathlib import Path import subprocess import argparse import pprint from distutils.util import strtobool children_pid = [] @atexit.register def kill_child(): for child_pid in children_pid: os.kill(child_pid, signal.SIGTERM) cmd_parser = ...
36.156951
87
0.549423
0
0
0
0
112
0.013891
0
0
1,592
0.197445
35cc4a008448b3ebfc8b1a072bfd124465d46230
2,410
py
Python
1._metis_models_and_data_2019-12-16b/METIS source code/Indicators/kpis/Transmission usage.py
tamas-borbath/METIS
cf3dc0f0f96ccb6ad72ddf15ba7e31ddc6339036
[ "CC-BY-4.0" ]
1
2021-12-07T09:05:48.000Z
2021-12-07T09:05:48.000Z
1._metis_models_and_data_2019-12-16b/METIS source code/Indicators/kpis/Transmission usage.py
tamas-borbath/METIS_data_and_scripts
cf3dc0f0f96ccb6ad72ddf15ba7e31ddc6339036
[ "CC-BY-4.0" ]
null
null
null
1._metis_models_and_data_2019-12-16b/METIS source code/Indicators/kpis/Transmission usage.py
tamas-borbath/METIS_data_and_scripts
cf3dc0f0f96ccb6ad72ddf15ba7e31ddc6339036
[ "CC-BY-4.0" ]
null
null
null
######################################################## # Copyright (c) 2015-2017 by European Commission. # # All Rights Reserved. # ######################################################## extends("BaseKPI.py") """ Transmission usage (%) ---------------------- Indexed by * sco...
41.551724
209
0.734855
0
0
0
0
0
0
0
0
881
0.36556
35cc8dce8cfa78125ee76beb2078c100cbc1294f
672
py
Python
apps/bloguser/migrations/0003_auto_20180505_1717.py
dryprojects/MyBlog
ec04ba2bc658e96cddeb1d4766047ca8e89ff656
[ "BSD-3-Clause" ]
2
2021-08-17T13:29:21.000Z
2021-09-04T05:00:01.000Z
apps/bloguser/migrations/0003_auto_20180505_1717.py
dryprojects/MyBlog
ec04ba2bc658e96cddeb1d4766047ca8e89ff656
[ "BSD-3-Clause" ]
1
2020-07-16T11:22:32.000Z
2020-07-16T11:22:32.000Z
apps/bloguser/migrations/0003_auto_20180505_1717.py
dryprojects/MyBlog
ec04ba2bc658e96cddeb1d4766047ca8e89ff656
[ "BSD-3-Clause" ]
1
2020-09-18T10:41:59.000Z
2020-09-18T10:41:59.000Z
# Generated by Django 2.0.3 on 2018-05-05 17:17 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('bloguser', '0002_auto_20180504_1808'), ] operations = [ migrations.AddField( model_name='userprofile', name='image_u...
28
135
0.610119
595
0.864826
0
0
0
0
0
0
203
0.295058
35ccd2a1b21c453583e810926aac3c4fcc8ecf4b
10,808
py
Python
qrcodescanner.py
globophobe/pygame-qrcode-demo
3a375b4e658712fed56df0005314bdd0d92ccfff
[ "MIT" ]
3
2015-04-08T12:54:06.000Z
2016-08-13T04:32:40.000Z
qrcodescanner.py
globophobe/qrcodescanner-base
3a375b4e658712fed56df0005314bdd0d92ccfff
[ "MIT" ]
null
null
null
qrcodescanner.py
globophobe/qrcodescanner-base
3a375b4e658712fed56df0005314bdd0d92ccfff
[ "MIT" ]
3
2018-01-16T02:49:18.000Z
2019-05-21T19:52:34.000Z
# -*- coding: utf-8 -*- import os import datetime import logging import requests import numpy import cv2 import zbar from Queue import Queue from threading import Thread from PIL import Image logger = logging.getLogger(__name__) TEMP_DIR = os.path.join(os.getcwd(), 'temp') def get_temp_dir(): """Create TEMP_DIR ...
34.864516
78
0.560696
8,291
0.767117
0
0
0
0
0
0
1,817
0.168116
35cdb055a4bb2320fd07ae79ac8bec7d003524cf
4,495
py
Python
rescape_region/schema_models/settings/settings_schema.py
calocan/rescape-region
8cb0c4d5e2f4c92939eb9a30473808decdb4bef2
[ "MIT" ]
1
2021-05-08T12:04:23.000Z
2021-05-08T12:04:23.000Z
rescape_region/schema_models/settings/settings_schema.py
rescapes/rescape-region
b247aa277928d126bcf020c8204994b00ae4c18d
[ "MIT" ]
15
2021-04-06T18:05:04.000Z
2022-03-12T00:22:35.000Z
rescape_region/schema_models/settings/settings_schema.py
rescapes/rescape-region
b247aa277928d126bcf020c8204994b00ae4c18d
[ "MIT" ]
null
null
null
import graphene from django.db import transaction from graphene import InputObjectType, Mutation, Field, ObjectType from graphene_django.types import DjangoObjectType from graphql_jwt.decorators import login_required from rescape_graphene import REQUIRE, graphql_update_or_create, graphql_query, guess_update_or_create, ...
36.844262
117
0.754171
2,301
0.511902
0
0
913
0.203115
0
0
784
0.174416
35d3caf546997ac4a3e9ab5b7bbe7a7b734d8898
72,977
py
Python
juju/client/_client8.py
wallyworld/python-libjuju
1de9ad1cea120a691041c243877a6316ba648900
[ "Apache-2.0" ]
null
null
null
juju/client/_client8.py
wallyworld/python-libjuju
1de9ad1cea120a691041c243877a6316ba648900
[ "Apache-2.0" ]
1
2019-02-11T10:00:15.000Z
2019-02-11T10:06:20.000Z
juju/client/_client8.py
CanonicalBootStack/python-libjuju
43fb846042f4cd7d31ae11b1542862477bd76d36
[ "Apache-2.0" ]
null
null
null
# DO NOT CHANGE THIS FILE! This file is auto-generated by facade.py. # Changes will be overwritten/lost when the file is regenerated. from juju.client.facade import Type, ReturnMapping from juju.client._definitions import * class ApplicationFacade(Type): name = 'Application' version = 8 schema = {'de...
57.057858
163
0.357113
72,747
0.996848
0
0
18,398
0.252107
17,243
0.23628
25,949
0.355578
35d5d3f3a69a394f6e66a0e4e4556dcfbb654d90
4,637
py
Python
dectate/app.py
morepath/dectate
511920acbeba5b070c532c9b0fa54b53c2baeb0a
[ "BSD-3-Clause" ]
23
2016-03-24T20:13:43.000Z
2021-08-10T05:16:41.000Z
dectate/app.py
morepath/dectate
511920acbeba5b070c532c9b0fa54b53c2baeb0a
[ "BSD-3-Clause" ]
46
2016-03-29T14:03:39.000Z
2021-04-18T14:39:54.000Z
dectate/app.py
morepath/dectate
511920acbeba5b070c532c9b0fa54b53c2baeb0a
[ "BSD-3-Clause" ]
6
2016-04-06T14:08:36.000Z
2020-04-19T14:22:38.000Z
import sys from .config import Configurable, Directive, commit, create_code_info class Config: """The object that contains the configurations. The configurations are specified by the :attr:`Action.config` class attribute of :class:`Action`. """ pass class AppMeta(type): """Dectate metaclas...
31.544218
78
0.665301
3,375
0.727841
294
0.063403
1,423
0.306879
0
0
3,148
0.678887
35d5e04e5892b72fc7057d291530a91e4883bc62
1,127
py
Python
app/user/serializers.py
falleng0d/medicar-backend
30bedff54ae84da7a67350852cd508c54e5bf6e7
[ "MIT" ]
null
null
null
app/user/serializers.py
falleng0d/medicar-backend
30bedff54ae84da7a67350852cd508c54e5bf6e7
[ "MIT" ]
null
null
null
app/user/serializers.py
falleng0d/medicar-backend
30bedff54ae84da7a67350852cd508c54e5bf6e7
[ "MIT" ]
null
null
null
from collections import OrderedDict from django.contrib.auth import get_user_model # If used custom user model from rest_framework import serializers UserModel = get_user_model() class UserSerializer(serializers.ModelSerializer): password = serializers.CharField(write_only=True) def create(self, validated...
34.151515
87
0.645075
942
0.835847
0
0
0
0
0
0
130
0.11535
35d619e412abb96bf3e95ecb361e6a948cab08cb
2,542
py
Python
easy-receptive-fields-pytorch/receptivefield/tests/test_pytorch.py
Swinsie/cv-rep-fork
1c3454934645e3f9afa39ba90c3b216eb9ed7f75
[ "Apache-2.0" ]
null
null
null
easy-receptive-fields-pytorch/receptivefield/tests/test_pytorch.py
Swinsie/cv-rep-fork
1c3454934645e3f9afa39ba90c3b216eb9ed7f75
[ "Apache-2.0" ]
null
null
null
easy-receptive-fields-pytorch/receptivefield/tests/test_pytorch.py
Swinsie/cv-rep-fork
1c3454934645e3f9afa39ba90c3b216eb9ed7f75
[ "Apache-2.0" ]
null
null
null
import pytest import torch.nn as nn from numpy.testing import assert_allclose from receptivefield.pytorch import PytorchReceptiveField from receptivefield.image import get_default_image from receptivefield.types import ImageShape class Linear(nn.Module): """An identity activation function""" def forward(self...
29.218391
87
0.616444
1,443
0.567663
0
0
0
0
0
0
47
0.018489
35d72c0843e71e8c73c42625fa71b7593cdf2c85
192
py
Python
KSFGHAction/__init__.py
KOLANICH-GHActions/KSFGHAction.py
e1d54ae0043d93d8b190f8e758b978bf8e779c51
[ "Unlicense" ]
null
null
null
KSFGHAction/__init__.py
KOLANICH-GHActions/KSFGHAction.py
e1d54ae0043d93d8b190f8e758b978bf8e779c51
[ "Unlicense" ]
3
2019-12-23T22:58:40.000Z
2019-12-25T11:20:13.000Z
KSFGHAction/__init__.py
KOLANICH/KSFGHAction.py
e1d54ae0043d93d8b190f8e758b978bf8e779c51
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 import typing from .utils import ClassDictMeta from .issueParser import * from .linter import * from miniGHAPI.GitHubAPI import * from miniGHAPI.GHActionsEnv import *
19.2
36
0.791667
0
0
0
0
0
0
0
0
22
0.114583
35da15160bebb0c093e96b03a913df011244fd8f
831
py
Python
model_zoo/jag_utils/python/build_inclusive_from_exclusive.py
jonesholger/lbann
3214f189a1438565d695542e076c4fa8e7332d34
[ "Apache-2.0" ]
194
2016-07-19T15:40:21.000Z
2022-03-19T08:06:10.000Z
model_zoo/jag_utils/python/build_inclusive_from_exclusive.py
jonesholger/lbann
3214f189a1438565d695542e076c4fa8e7332d34
[ "Apache-2.0" ]
1,021
2016-07-19T12:56:31.000Z
2022-03-29T00:41:47.000Z
model_zoo/jag_utils/python/build_inclusive_from_exclusive.py
jonesholger/lbann
3214f189a1438565d695542e076c4fa8e7332d34
[ "Apache-2.0" ]
74
2016-07-28T18:24:00.000Z
2022-01-24T19:41:04.000Z
import sys if len(sys.argv) != 4 : print 'usage:', sys.argv[0], 'index_fn id_mapping_fn output_fn' exit(9) a = open(sys.argv[1]) a.readline() header = a.readline() dir = a.readline() #build map: filename -> set of bad samples mp = {} mp_good = {} mp_bad = {} for line in a : t = line.split() mp[t[0]] = set() ...
17.680851
65
0.56438
0
0
0
0
0
0
0
0
145
0.174489
35db3c607e8460d5391f5e65c6e7e40b3c6921ac
7,147
py
Python
app/tests/functional/test_user.py
sun-fengcai/flask_template
fc6c5963ac9ac632c83d81c7b62ab74d7e99d02d
[ "MIT" ]
3
2019-11-16T06:51:17.000Z
2019-11-21T01:18:31.000Z
app/tests/functional/test_user.py
sun-fengcai/flask_template
fc6c5963ac9ac632c83d81c7b62ab74d7e99d02d
[ "MIT" ]
27
2019-11-17T13:56:49.000Z
2021-06-28T12:04:18.000Z
app/tests/functional/test_user.py
sun-fengcai/flask_template
fc6c5963ac9ac632c83d81c7b62ab74d7e99d02d
[ "MIT" ]
1
2021-04-23T23:57:28.000Z
2021-04-23T23:57:28.000Z
import json from app import utils def test_add_user(test_app, test_database): client = test_app.test_client() response = client.post( "/users", data=json.dumps( {"username": "onlinejudge95", "email": "onlinejudge95@gmail.com",} ), content_type="application/json", ...
31.484581
78
0.646705
0
0
0
0
0
0
0
0
2,018
0.282356
35dd29f78d96791ddc38a66b186a7265c181d8b6
15,814
py
Python
MultiAV/MultiAV.py
Virag007/Multi-Malware-Detection-Engine-based-on-Blockchain
80e91b2f2ec15d271141568451492fefd88f8ace
[ "MIT" ]
2
2020-11-18T10:00:22.000Z
2020-12-18T13:48:25.000Z
MultiAV/MultiAV.py
Virag007/Multi-Malware-Detection-Engine-based-on-Blockchain
80e91b2f2ec15d271141568451492fefd88f8ace
[ "MIT" ]
null
null
null
MultiAV/MultiAV.py
Virag007/Multi-Malware-Detection-Engine-based-on-Blockchain
80e91b2f2ec15d271141568451492fefd88f8ace
[ "MIT" ]
1
2020-12-18T13:48:27.000Z
2020-12-18T13:48:27.000Z
from threading import * from tkinter import * from tkinter.filedialog import askopenfilename import tkinter, tkinter.scrolledtext import os import sys import urllib.request import glob import time import hashlib import quarantaene from vta import vtapi import argparse os_name = sys.platform terminations = [] if "win"...
34.008602
155
0.608511
0
0
0
0
0
0
0
0
2,533
0.160175
35de2fad41fb3b2060ce525003204693b12af0ed
8,421
py
Python
model.py
ishine/Speaker_Verification
69935cf422c2fbfe1258c5b4e682c46cf07ec4f4
[ "MIT" ]
337
2018-11-12T14:52:43.000Z
2022-03-09T09:23:33.000Z
model.py
ishine/Speaker_Verification
69935cf422c2fbfe1258c5b4e682c46cf07ec4f4
[ "MIT" ]
27
2018-12-17T09:53:18.000Z
2022-02-17T01:43:51.000Z
model.py
ishine/Speaker_Verification
69935cf422c2fbfe1258c5b4e682c46cf07ec4f4
[ "MIT" ]
112
2018-11-29T05:29:31.000Z
2022-03-23T09:23:19.000Z
import tensorflow as tf import numpy as np import os import time from utils import random_batch, normalize, similarity, loss_cal, optim from configuration import get_config from tensorflow.contrib import rnn config = get_config() def train(path): tf.reset_default_graph() # reset graph # dra...
49.828402
134
0.609785
0
0
0
0
0
0
0
0
2,256
0.267902