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
c97fb65ad57fdb00bbfc2ec6a2a6804e6bf866f3
50
py
Python
src/__init__.py
ProfessorManhattan/mod-ansible-autodoc
3cc6fd25f817efc63ec0fc158088d637dd689ad3
[ "MIT" ]
null
null
null
src/__init__.py
ProfessorManhattan/mod-ansible-autodoc
3cc6fd25f817efc63ec0fc158088d637dd689ad3
[ "MIT" ]
null
null
null
src/__init__.py
ProfessorManhattan/mod-ansible-autodoc
3cc6fd25f817efc63ec0fc158088d637dd689ad3
[ "MIT" ]
null
null
null
__name__ = "{{Name}}" __version__ = "{{Version}}"
16.666667
27
0.6
c9801e27d75fc448c57278f4f2febd70cf000239
3,203
py
Python
alfred/views/main_widget.py
Sefrwahed/Alfred
0b77ec547fb665ef29fe1a3b7e1c4ad30c31170d
[ "MIT" ]
5
2016-09-06T10:29:24.000Z
2017-02-22T14:07:48.000Z
alfred/views/main_widget.py
Sefrwahed/Alfred
0b77ec547fb665ef29fe1a3b7e1c4ad30c31170d
[ "MIT" ]
66
2016-09-06T06:40:24.000Z
2022-03-11T23:18:05.000Z
alfred/views/main_widget.py
Sefrwahed/Alfred
0b77ec547fb665ef29fe1a3b7e1c4ad30c31170d
[ "MIT" ]
3
2016-10-06T15:17:38.000Z
2016-12-04T13:25:53.000Z
import json # PyQt imports from PyQt5.QtCore import Qt, pyqtSignal, pyqtSlot from PyQt5.QtWidgets import QDialog from PyQt5.QtWebChannel import QWebChannel # Local includes from .ui.widget_ui import Ui_Dialog from alfred import data_rc import alfred.alfred_globals as ag from alfred.modules.api.view_components import ...
37.244186
138
0.67468
c98046d6e476b2db7f4e9b5014b73851b0a58d74
5,573
py
Python
projects/11/jackTokenizer.py
nadavWeisler/Nand2Tetris
59c2e616c45044c15b99aeb8459d39b59e5e07ba
[ "MIT" ]
null
null
null
projects/11/jackTokenizer.py
nadavWeisler/Nand2Tetris
59c2e616c45044c15b99aeb8459d39b59e5e07ba
[ "MIT" ]
null
null
null
projects/11/jackTokenizer.py
nadavWeisler/Nand2Tetris
59c2e616c45044c15b99aeb8459d39b59e5e07ba
[ "MIT" ]
null
null
null
import re from utils import * def get_token_type(self, token): if self.is_keyword(token): return 'keyword' elif self.is_symbol(token): return 'symbol' elif self.is_identifier(token): return 'identifier' elif self.is_int(token): return...
33.981707
102
0.466535
c98092ff02eaf3078402f8fe2053638da3880d53
1,115
py
Python
main.py
TimKozak/NearestFilms
991f8b7b1cb9f7f47c6bff818aaae3b91eb80375
[ "MIT" ]
2
2021-02-15T20:38:03.000Z
2021-12-15T12:42:54.000Z
main.py
TimKozak/NearestFilms
991f8b7b1cb9f7f47c6bff818aaae3b91eb80375
[ "MIT" ]
null
null
null
main.py
TimKozak/NearestFilms
991f8b7b1cb9f7f47c6bff818aaae3b91eb80375
[ "MIT" ]
null
null
null
""" Main module of a program. """ import folium from tools import find_coords, user_input def creating_map(): """ Creates HTML page for a given data. """ year, coords = user_input() locations = find_coords(year, coords) mp = folium.Map(location=coords, zoom_start=10) mp.add_child(folium....
27.195122
75
0.552466
c98373f93bfe070f74725f6b7462934da5ef570c
1,366
py
Python
ptCrypt/Symmetric/Modes/ECB.py
0awawa0/aCrypt
7c5d07271d524b9e5b03035d63587b69bff5abc7
[ "MIT" ]
null
null
null
ptCrypt/Symmetric/Modes/ECB.py
0awawa0/aCrypt
7c5d07271d524b9e5b03035d63587b69bff5abc7
[ "MIT" ]
25
2021-12-08T07:20:11.000Z
2021-12-10T12:07:05.000Z
ptCrypt/Symmetric/Modes/ECB.py
0awawa0/aCrypt
7c5d07271d524b9e5b03035d63587b69bff5abc7
[ "MIT" ]
null
null
null
from ptCrypt.Symmetric.Modes.Mode import Mode from ptCrypt.Symmetric.BlockCipher import BlockCipher from ptCrypt.Symmetric.Paddings.Padding import Padding
35.947368
170
0.666179
c983d81c361719032d41d5bf9ca26fcce754a0f2
1,335
py
Python
src/static-vxlan-agent/test/arp_tracer.py
jbemmel/srl-evpn-proxy
240b8180ab03ee06a5043e646781860ba32a3530
[ "Apache-2.0" ]
8
2021-08-25T01:08:09.000Z
2022-01-18T12:44:41.000Z
src/static-vxlan-agent/test/arp_tracer.py
jbemmel/srl-evpn-proxy
240b8180ab03ee06a5043e646781860ba32a3530
[ "Apache-2.0" ]
null
null
null
src/static-vxlan-agent/test/arp_tracer.py
jbemmel/srl-evpn-proxy
240b8180ab03ee06a5043e646781860ba32a3530
[ "Apache-2.0" ]
1
2022-03-13T22:36:18.000Z
2022-03-13T22:36:18.000Z
#!/usr/bin/env python3 # Originally python2 # Sample from https://www.collabora.com/news-and-blog/blog/2019/05/14/an-ebpf-overview-part-5-tracing-user-processes/ # Python program with embedded C eBPF program from bcc import BPF, USDT import sys bpf = """ #include <uapi/linux/ptrace.h> BPF_PERF_OUTPUT(events); struc...
31.046512
117
0.702622
c984c4501d6e403db82fdd8d7b4131f8e313f048
1,004
py
Python
test/test_reference.py
ognibit/sudoku-solver
1c47b80b36b4bd57a11a4084e04defd849531782
[ "Apache-2.0" ]
null
null
null
test/test_reference.py
ognibit/sudoku-solver
1c47b80b36b4bd57a11a4084e04defd849531782
[ "Apache-2.0" ]
null
null
null
test/test_reference.py
ognibit/sudoku-solver
1c47b80b36b4bd57a11a4084e04defd849531782
[ "Apache-2.0" ]
null
null
null
import numpy as np import pytest from sudoku import SudokuLine, build_rows, build_columns from sudoku import SudokuSquare, build_squares
23.348837
56
0.657371
c985d647edcaf8c1a409b8e34f91d4add29cf574
1,424
py
Python
ReaderBoard/Score.py
JongbinRyu/Ajou_Challenge
26c1e6e8464f2b50941dccbbca017ab99b6d4489
[ "MIT" ]
null
null
null
ReaderBoard/Score.py
JongbinRyu/Ajou_Challenge
26c1e6e8464f2b50941dccbbca017ab99b6d4489
[ "MIT" ]
null
null
null
ReaderBoard/Score.py
JongbinRyu/Ajou_Challenge
26c1e6e8464f2b50941dccbbca017ab99b6d4489
[ "MIT" ]
null
null
null
import os import json import datetime from pytz import timezone, utc def update_total_score(name_list_dict, score_rules, now_kst_aware, penalty_const=.1): """ Update Total Score when scheduled day written in "ScoreRule.json" :param name_list_dict: This contains contestants score info loaded from "namelist....
45.935484
95
0.67486
c98644a1740c0b9a2213d68e9dafb7bed9e7032f
3,500
py
Python
src/utils/loaders.py
OE-Heart/span-based-srl
a03b46a5ea4c59e14bea80ea724b0de276df4bc1
[ "MIT" ]
41
2018-10-05T21:48:33.000Z
2022-02-16T10:24:39.000Z
src/utils/loaders.py
OE-Heart/span-based-srl
a03b46a5ea4c59e14bea80ea724b0de276df4bc1
[ "MIT" ]
9
2018-10-21T14:45:01.000Z
2022-02-25T14:25:29.000Z
src/utils/loaders.py
OE-Heart/span-based-srl
a03b46a5ea4c59e14bea80ea724b0de276df4bc1
[ "MIT" ]
9
2018-10-16T07:00:51.000Z
2022-02-17T13:10:47.000Z
import os import gzip import pickle import h5py import numpy as np import theano from utils.misc import get_file_names_in_dir from utils.vocab import UNK class Conll05Loader(Loader): class Conll12Loader(Loader): def load_emb(path): word_list = [] emb = [] with open(path) as f: for line in f...
26.315789
69
0.513714
a309e90ac2f88ea56edc2aaeacb9b7f74fba3681
591
py
Python
system_test_progress_tracking/progress_tracking/urls.py
TobKed/system_test_progress_tracking
633792e7057289b6a23db30c6353241123eaa2e4
[ "MIT" ]
null
null
null
system_test_progress_tracking/progress_tracking/urls.py
TobKed/system_test_progress_tracking
633792e7057289b6a23db30c6353241123eaa2e4
[ "MIT" ]
3
2020-02-11T23:29:05.000Z
2021-06-10T21:03:42.000Z
system_test_progress_tracking/progress_tracking/urls.py
TobKed/system_test_progress_tracking
633792e7057289b6a23db30c6353241123eaa2e4
[ "MIT" ]
2
2019-01-24T20:39:31.000Z
2019-01-29T07:42:27.000Z
from django.urls import path from .views import ( home, MachineDetailView, MachineListView, DryRunDataDetailView, MachineLastDataView, ) urlpatterns = [ path('', MachineListView.as_view(), name='home-view'), path('', MachineListView.as_view(), name='machine-list-view'), path('machine/<...
32.833333
103
0.698816
a30a5b9c466fd79c98aae5b462aff3ba4ea72d40
480
py
Python
main.py
mrroot5/wall-builder
2f0414359080fecdba5312463dd05cd9c11da6c1
[ "MIT" ]
null
null
null
main.py
mrroot5/wall-builder
2f0414359080fecdba5312463dd05cd9c11da6c1
[ "MIT" ]
null
null
null
main.py
mrroot5/wall-builder
2f0414359080fecdba5312463dd05cd9c11da6c1
[ "MIT" ]
null
null
null
""" Python version 3.6.7 OS Linux Ubuntu 18.04.1 LTS Created: 30/11/2018 17:12 Finished: 30/11/2018 19: Author: Adrian Garrido Garcia """ import sys from wall.builder import build_a_wall if __name__ == '__main__': try: build_a_wall(sys.argv[1], sys.argv[2]) except IndexError: rows = input("Ple...
25.263158
83
0.672917
a30c417b3a747422a1fa92c8a3a68fa2a0ddf883
2,770
py
Python
dataset.py
njoel-ethz/saliency-rl
61cf7acf10569b04c3a59528a4fc511c6e794895
[ "MIT" ]
null
null
null
dataset.py
njoel-ethz/saliency-rl
61cf7acf10569b04c3a59528a4fc511c6e794895
[ "MIT" ]
null
null
null
dataset.py
njoel-ethz/saliency-rl
61cf7acf10569b04c3a59528a4fc511c6e794895
[ "MIT" ]
null
null
null
import os import csv import cv2 import numpy as np import torch from torch.utils.data import Dataset, DataLoader def transform(snippet): ''' stack & noralization ''' snippet = np.concatenate(snippet, axis=-1) snippet = torch.from_numpy(snippet).permute(2, 0, 1).contiguous().float() snippet = snippet.mu...
37.432432
136
0.615884
a30c4f34a3721276b10ca7d81878d13ffef5c2e3
1,342
py
Python
back-end/api/migrations/0003_address_event.py
tuftsjumbocode/bostonathleticsassociation
4a01607bd530e9f4973d3b345a442b4eceafa8e1
[ "MIT" ]
2
2017-01-30T01:33:07.000Z
2017-02-12T22:00:19.000Z
back-end/api/migrations/0003_address_event.py
tuftsjumbocode/bostonathleticsassociation
4a01607bd530e9f4973d3b345a442b4eceafa8e1
[ "MIT" ]
90
2017-02-02T01:56:30.000Z
2017-05-07T02:58:46.000Z
back-end/api/migrations/0003_address_event.py
tuftsjumbocode/bostonathleticsassociation
4a01607bd530e9f4973d3b345a442b4eceafa8e1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.2 on 2016-10-19 08:29 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion
34.410256
114
0.551416
a30c6a24fddc04808da5db4f7c0d305641d9674e
8,505
py
Python
Pre-Processing/generate_tfrecords.py
beric7/COCO-Bridge
c3ae8e5eb72cbc2fce982215c55bac09844764d8
[ "Apache-2.0" ]
2
2020-07-06T23:25:12.000Z
2021-09-21T23:11:55.000Z
Pre-Processing/generate_tfrecords.py
beric7/COCO-Bridge
c3ae8e5eb72cbc2fce982215c55bac09844764d8
[ "Apache-2.0" ]
null
null
null
Pre-Processing/generate_tfrecords.py
beric7/COCO-Bridge
c3ae8e5eb72cbc2fce982215c55bac09844764d8
[ "Apache-2.0" ]
null
null
null
# generate_tfrecords.py # Note: substantial portions of this code, expecially the create_tf_example() function, are credit to Dat Tran # see his website here: https://towardsdatascience.com/how-to-train-your-own-object-detector-with-tensorflows-object-detector-api-bec72ecfe1d9 # and his GitHub here: https://github.com...
45
142
0.642563
a30d6af902c1a8c64022ae0458cac17dd1fa6032
6,398
py
Python
openprocurement/chronograph/__init__.py
yshalenyk/openprocurement.chronograph
c15a6da519cea8a09b5d9a943752a49dd6f5131f
[ "Apache-2.0" ]
null
null
null
openprocurement/chronograph/__init__.py
yshalenyk/openprocurement.chronograph
c15a6da519cea8a09b5d9a943752a49dd6f5131f
[ "Apache-2.0" ]
null
null
null
openprocurement/chronograph/__init__.py
yshalenyk/openprocurement.chronograph
c15a6da519cea8a09b5d9a943752a49dd6f5131f
[ "Apache-2.0" ]
null
null
null
import gevent.monkey gevent.monkey.patch_all() import os from logging import getLogger #from apscheduler.executors.pool import ThreadPoolExecutor, ProcessPoolExecutor from apscheduler.schedulers.gevent import GeventScheduler as Scheduler from couchdb import Server, Session from couchdb.http import Unauthorized, extract...
44.124138
215
0.664739
a30f4fc2ab1f50558de3a730d24cdd2bc794f650
1,078
py
Python
poc/setmanyblocks.py
astro-pi/SpaceCRAFT
b577681b31c0554db9e77ed816cd63900fe195ca
[ "BSD-3-Clause" ]
12
2016-03-05T16:40:16.000Z
2019-10-27T07:48:12.000Z
poc/setmanyblocks.py
astro-pi/SpaceCRAFT
b577681b31c0554db9e77ed816cd63900fe195ca
[ "BSD-3-Clause" ]
1
2016-03-03T16:54:59.000Z
2016-03-09T12:14:33.000Z
poc/setmanyblocks.py
astro-pi/SpaceCRAFT
b577681b31c0554db9e77ed816cd63900fe195ca
[ "BSD-3-Clause" ]
2
2015-12-01T08:01:07.000Z
2019-10-27T07:48:19.000Z
#code which sends many setBlock commands all in one go, to see if there was # a performance improvement.. It sent them a lot quicker, but you still had to wait # for minecraft to catch up import mcpi.minecraft as minecraft import mcpi.block as block import mcpi.util as util from time import time, sleep mc = minecraft....
25.069767
83
0.666976
a31137aa372b035d450bbbaac3b873065c92d845
2,059
py
Python
modules/yatse/templatetags/strings.py
Hinnack/yatse
3386630d974cfe2d832c0297defd1822e463855d
[ "MIT" ]
null
null
null
modules/yatse/templatetags/strings.py
Hinnack/yatse
3386630d974cfe2d832c0297defd1822e463855d
[ "MIT" ]
1
2021-02-22T18:06:52.000Z
2021-02-22T18:06:52.000Z
modules/yatse/templatetags/strings.py
Hinnack/yatse
3386630d974cfe2d832c0297defd1822e463855d
[ "MIT" ]
null
null
null
from django import template from django.conf import settings from django.utils.translation import ugettext as _ from django.forms.forms import pretty_name #from yats.diff import generate_patch_html import re try: import json except ImportError: from django.utils import simplejson as json register = template.L...
27.824324
107
0.599806
a3140847cb4f8ae37f600751b8e796fb5fea58ee
129
py
Python
Lib/test/test_import/data/circular_imports/rebinding.py
sireliah/polish-python
605df4944c2d3bc25f8bf6964b274c0a0d297cc3
[ "PSF-2.0" ]
1
2018-06-21T18:21:24.000Z
2018-06-21T18:21:24.000Z
Lib/test/test_import/data/circular_imports/rebinding.py
sireliah/polish-python
605df4944c2d3bc25f8bf6964b274c0a0d297cc3
[ "PSF-2.0" ]
null
null
null
Lib/test/test_import/data/circular_imports/rebinding.py
sireliah/polish-python
605df4944c2d3bc25f8bf6964b274c0a0d297cc3
[ "PSF-2.0" ]
null
null
null
"""Test the binding of names when a circular zaimportuj shares the same name jako an attribute.""" z .rebinding2 zaimportuj util
32.25
84
0.782946
a3156184194412b6c58e7f98504a56f1d8eea1bf
1,132
py
Python
Chapter08/8_2_save_packets_in_pcap_format.py
shamir456/Python-Network-Programming-Cookbook-Second-Edition
7f5ebcbb4ef79c41da677afdf0d8e0fb575dcf0b
[ "MIT" ]
125
2017-08-10T18:09:55.000Z
2022-03-29T10:14:31.000Z
Chapter08/8_2_save_packets_in_pcap_format.py
shamir456/Python-Network-Programming-Cookbook-Second-Edition
7f5ebcbb4ef79c41da677afdf0d8e0fb575dcf0b
[ "MIT" ]
4
2018-01-19T05:42:58.000Z
2019-03-07T06:18:52.000Z
Chapter08/8_2_save_packets_in_pcap_format.py
shamir456/Python-Network-Programming-Cookbook-Second-Edition
7f5ebcbb4ef79c41da677afdf0d8e0fb575dcf0b
[ "MIT" ]
79
2017-08-15T00:40:36.000Z
2022-02-26T10:20:24.000Z
#!/usr/bin/env python # Python Network Programming Cookbook, Second Edition -- Chapter - 8 # This program is optimized for Python 2.7.12 and Python 3.5.2. # It may run on any other version with/without modifications. import os from scapy.all import * pkts = [] count = 0 pcapnum = 0 if __name__ == '__main__': pr...
24.085106
74
0.590106
a316647d2535cb3b325343092f5d4ee583cf738e
2,862
py
Python
tests/test_init.py
Javex/pyramid_crud
873ca8a84c9e5030257a327259f7f1972ba42c9d
[ "MIT" ]
4
2015-03-04T11:35:15.000Z
2017-05-05T04:00:26.000Z
tests/test_init.py
Javex/pyramid_crud
873ca8a84c9e5030257a327259f7f1972ba42c9d
[ "MIT" ]
16
2015-02-14T00:56:03.000Z
2015-02-19T22:23:13.000Z
tests/test_init.py
Javex/pyramid_crud
873ca8a84c9e5030257a327259f7f1972ba42c9d
[ "MIT" ]
3
2015-08-25T13:20:17.000Z
2020-05-10T19:02:18.000Z
import pyramid_crud import pytest from pyramid.exceptions import ConfigurationError from pyramid.interfaces import ISessionFactory def test_check_session_no_factory(config): with pytest.raises(ConfigurationError): pyramid_crud.check_session(config) def test_parse_options_from_settings_defaults(): ...
30.446809
74
0.759609
a3168c69f4eb9f2ba122306fee2a6890c6f1230e
1,621
py
Python
Assignments/Sprint2/FinValuePivot.py
mark-morelos/CS_Notes
339c47ae5d7e678b7ac98d6d78857d016c611e38
[ "MIT" ]
1
2021-02-28T07:43:59.000Z
2021-02-28T07:43:59.000Z
Assignments/Sprint2/FinValuePivot.py
mark-morelos/CS_Notes
339c47ae5d7e678b7ac98d6d78857d016c611e38
[ "MIT" ]
null
null
null
Assignments/Sprint2/FinValuePivot.py
mark-morelos/CS_Notes
339c47ae5d7e678b7ac98d6d78857d016c611e38
[ "MIT" ]
1
2021-03-03T03:52:21.000Z
2021-03-03T03:52:21.000Z
""" You are given a sorted array in ascending order that is rotated at some unknown pivot (i.e., [0,1,2,4,5,6,7] might become [4,5,6,7,0,1,2]) and a target value. Write a function that returns the target value's index. If the target value is not present in the array, return -1. You may assume no duplicate exists in...
25.730159
91
0.58359
a31d402b111d9ee652386e79f628f7e0ddffa959
987
py
Python
utility.py
Forthyse/Forsythe-Bot
c8871b1fde456403d951a9dde13dddaca2d3f67b
[ "MIT" ]
3
2021-01-18T22:10:05.000Z
2022-01-07T21:46:34.000Z
utility.py
Forthyse/Forsythe-Bot
c8871b1fde456403d951a9dde13dddaca2d3f67b
[ "MIT" ]
null
null
null
utility.py
Forthyse/Forsythe-Bot
c8871b1fde456403d951a9dde13dddaca2d3f67b
[ "MIT" ]
2
2020-10-21T01:27:34.000Z
2021-01-02T23:51:02.000Z
import discord from discord.ext import commands
37.961538
140
0.64843
a31f5b674099dd26d6054dab2dbff6ca679ee640
8,215
py
Python
torch/ao/quantization/fx/fusion_patterns.py
li-ang/pytorch
17f3179d607b9a2eac5efdfc36673e89f70e6628
[ "Intel" ]
1
2022-02-15T07:07:31.000Z
2022-02-15T07:07:31.000Z
torch/ao/quantization/fx/fusion_patterns.py
xiaozhoushi/pytorch
7dba88dfdb414def252531027658afe60409291d
[ "Intel" ]
null
null
null
torch/ao/quantization/fx/fusion_patterns.py
xiaozhoushi/pytorch
7dba88dfdb414def252531027658afe60409291d
[ "Intel" ]
null
null
null
import torch from torch.fx.graph import Node from .pattern_utils import ( register_fusion_pattern, ) from .utils import _parent_name from .quantization_types import QuantizerCls, NodePattern, Pattern from ..fuser_method_mappings import get_fuser_method from ..fuser_method_mappings import get_fuser_method_new from a...
48.89881
118
0.684967
a31fadf9b33e9208ee29c713435331b8514e5684
9,786
py
Python
derender/networks.py
tonyman1008/RADAR
b2fc944230c2fd445528a9827eea42e1a94957b8
[ "CC0-1.0" ]
38
2021-08-19T18:07:49.000Z
2022-02-28T10:41:29.000Z
derender/networks.py
tonyman1008/RADAR
b2fc944230c2fd445528a9827eea42e1a94957b8
[ "CC0-1.0" ]
1
2021-10-30T14:43:18.000Z
2021-11-13T01:18:53.000Z
derender/networks.py
tonyman1008/RADAR
b2fc944230c2fd445528a9827eea42e1a94957b8
[ "CC0-1.0" ]
5
2021-08-20T05:12:42.000Z
2022-01-13T06:14:27.000Z
import numpy as np import torch import torch.nn as nn import torchvision EPS = 1e-7
41.466102
128
0.54251
a31fd12f7a47de59f2c6b4b5f49ad1fb2f1eaf44
244
py
Python
app/generator-input.py
consoles/dsa4js
83a064c3485e33bf3f0c70a10167b8a5bc08e10e
[ "MIT" ]
2
2018-01-19T08:16:13.000Z
2019-08-15T12:26:08.000Z
app/generator-input.py
consoles/dsa4js
83a064c3485e33bf3f0c70a10167b8a5bc08e10e
[ "MIT" ]
null
null
null
app/generator-input.py
consoles/dsa4js
83a064c3485e33bf3f0c70a10167b8a5bc08e10e
[ "MIT" ]
1
2019-08-15T12:26:11.000Z
2019-08-15T12:26:11.000Z
#!/usr/bin python #coding:utf-8 # # 10^7 import random RANGE = 10000000 f = open('../test/input/bitSort.input','w') for i in random.sample(range(RANGE),RANGE): f.write(str(i) + '\n') f.close() print 'generator input file success!'
15.25
43
0.672131
a323da1e6144f951fab0d4c366a9e8d27bf93ca5
46,478
py
Python
sdk/ml/azure-ai-ml/azure/ai/ml/_restclient/v2020_09_01_dataplanepreview/models/_models.py
dubiety/azure-sdk-for-python
62ffa839f5d753594cf0fe63668f454a9d87a346
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/ml/azure-ai-ml/azure/ai/ml/_restclient/v2020_09_01_dataplanepreview/models/_models.py
ellhe-blaster/azure-sdk-for-python
82193ba5e81cc5e5e5a5239bba58abe62e86f469
[ "MIT" ]
null
null
null
sdk/ml/azure-ai-ml/azure/ai/ml/_restclient/v2020_09_01_dataplanepreview/models/_models.py
ellhe-blaster/azure-sdk-for-python
82193ba5e81cc5e5e5a5239bba58abe62e86f469
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
39.48853
146
0.650652
a3256f1d5ce64484739511b64bf4572f8dcbb09c
407
py
Python
utils.py
AbinavRavi/Federated-learning-MI
06294e5de94bf5b8826dedb469a3430fdae76e37
[ "MIT" ]
3
2021-04-04T19:32:29.000Z
2022-02-10T05:25:27.000Z
utils.py
AbinavRavi/Federated-learning-MI
06294e5de94bf5b8826dedb469a3430fdae76e37
[ "MIT" ]
null
null
null
utils.py
AbinavRavi/Federated-learning-MI
06294e5de94bf5b8826dedb469a3430fdae76e37
[ "MIT" ]
null
null
null
import nibabel as nib import numpy as np from glob import glob
22.611111
44
0.638821
a3259ed1f24efeaecf755551060f140ed167c93c
576
py
Python
tests/test_ebook.py
plysytsya/doublebook
09dcd5399288c9544df928136a9e2f2e54639cbd
[ "MIT" ]
null
null
null
tests/test_ebook.py
plysytsya/doublebook
09dcd5399288c9544df928136a9e2f2e54639cbd
[ "MIT" ]
null
null
null
tests/test_ebook.py
plysytsya/doublebook
09dcd5399288c9544df928136a9e2f2e54639cbd
[ "MIT" ]
null
null
null
import os import unittest from doublebook.ebook import Ebook THIS_DIR = os.path.dirname(os.path.abspath(__file__)) if __name__ == '__main__': unittest.main(verbosity=3)
22.153846
72
0.689236
a32a2a3e9e3b2d5447dc0047b1a00f9577f9eedc
13,924
py
Python
build_github_actions.py
Geequlim/ECMAScript
8817a9f63b28d07bde65334e8663d324da06282b
[ "MIT" ]
155
2019-02-04T20:24:35.000Z
2020-07-10T00:14:37.000Z
build_github_actions.py
Geequlim/ECMAScript
8817a9f63b28d07bde65334e8663d324da06282b
[ "MIT" ]
25
2019-02-15T05:36:02.000Z
2020-07-10T08:06:00.000Z
build_github_actions.py
Geequlim/ECMAScript
8817a9f63b28d07bde65334e8663d324da06282b
[ "MIT" ]
13
2019-04-09T09:32:55.000Z
2020-07-07T20:56:46.000Z
#!/usr/bin/env python """ run this every time you upgrade the godot-base version to generate new matching github workflows You must be in this directory, and in the modules subfolder of godot (just as if you would install this project into godot) usage: python build_github_actions.py --godot-version "3.4.4-stable" --g...
40.242775
214
0.568946
a32ad9de709c3a24f830152b0d7a35e9a5113527
10,061
py
Python
src/panoramic/cli/husky/service/blending/tel_planner.py
kubamahnert/panoramic-cli
036f45a05d39f5762088ce23dbe367b938192f79
[ "MIT" ]
5
2020-11-13T17:26:59.000Z
2021-03-19T15:11:26.000Z
src/panoramic/cli/husky/service/blending/tel_planner.py
kubamahnert/panoramic-cli
036f45a05d39f5762088ce23dbe367b938192f79
[ "MIT" ]
5
2020-10-28T10:22:35.000Z
2021-01-27T17:33:58.000Z
src/panoramic/cli/husky/service/blending/tel_planner.py
kubamahnert/panoramic-cli
036f45a05d39f5762088ce23dbe367b938192f79
[ "MIT" ]
3
2021-01-26T07:58:03.000Z
2021-03-11T13:28:34.000Z
from collections import defaultdict from typing import Dict, Iterable, List, Optional, Set, Tuple, cast from sqlalchemy import column from panoramic.cli.husky.common.enum import EnumHelper from panoramic.cli.husky.core.taxonomy.aggregations import AggregationDefinition from panoramic.cli.husky.core.taxonomy.enums imp...
43.743478
125
0.657191
a32bb9ecf389628aa17fb222486d5eb8bc144dcb
13,836
py
Python
mrcnn/callbacks.py
dtitenko-dev/Mask_RCNN
5167db4174d96e9f2accc0a9f4866fb3a7bf5993
[ "MIT" ]
null
null
null
mrcnn/callbacks.py
dtitenko-dev/Mask_RCNN
5167db4174d96e9f2accc0a9f4866fb3a7bf5993
[ "MIT" ]
null
null
null
mrcnn/callbacks.py
dtitenko-dev/Mask_RCNN
5167db4174d96e9f2accc0a9f4866fb3a7bf5993
[ "MIT" ]
null
null
null
import os import re import six import h5py import json import logging import tensorflow.keras as keras from tensorflow.python.keras import optimizers from tensorflow.python.keras.saving import hdf5_format from tensorflow.python.keras.utils import tf_utils from tensorflow.python.keras.saving import saving_utils from t...
44.632258
92
0.626337
a32cb578d2151333cae6b68de0344e2c78b2c29d
875
py
Python
wapps/gallery/migrations/0002_manual_album_image_deletion.py
apihackers/wapps
e8158747aa3d77246d41142580faf9a5f2b0d968
[ "MIT" ]
7
2018-01-17T20:26:59.000Z
2022-03-23T08:12:00.000Z
wapps/gallery/migrations/0002_manual_album_image_deletion.py
apihackers/wapps
e8158747aa3d77246d41142580faf9a5f2b0d968
[ "MIT" ]
511
2017-10-21T17:59:50.000Z
2022-03-28T18:49:21.000Z
wapps/gallery/migrations/0002_manual_album_image_deletion.py
apihackers/wapps
e8158747aa3d77246d41142580faf9a5f2b0d968
[ "MIT" ]
2
2018-05-02T08:27:42.000Z
2020-08-17T18:42:49.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.2 on 2016-10-26 06:57 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion from wapps.utils import get_image_model
28.225806
121
0.693714
a32cce774b4abbb45c4fa0ea764a45099fab3182
6,888
py
Python
lib/examples/TOA_balance.py
CliMT/climt-legacy
adbd4fe77426c90deb8d2c046a2f3dc3b72df89e
[ "BSD-3-Clause" ]
null
null
null
lib/examples/TOA_balance.py
CliMT/climt-legacy
adbd4fe77426c90deb8d2c046a2f3dc3b72df89e
[ "BSD-3-Clause" ]
null
null
null
lib/examples/TOA_balance.py
CliMT/climt-legacy
adbd4fe77426c90deb8d2c046a2f3dc3b72df89e
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import climt from pylab import * # Replicates the behavior of the online radiation calculator # see maths.ucd.ie/~rca scheme = 'ccm3' Insolation = 337. #* .75 Imbalance = 30. Albedo = 30. /100. CO2 = 350. CH4 = 1.7 + 1.e-9 N2O = 0. + 1.e-...
30.613333
123
0.612079
a32d307b1fe682f59762c7e5a70a9d45122fc794
117
py
Python
tools/inject_pydoc/idp.py
fengjixuchui/src
0c5a6cd8057717f73b1373f8d85eb9b19e1934e1
[ "BSD-3-Clause" ]
1,160
2015-05-02T15:13:20.000Z
2022-03-31T20:04:28.000Z
tools/inject_pydoc/idp.py
fengjixuchui/src
0c5a6cd8057717f73b1373f8d85eb9b19e1934e1
[ "BSD-3-Clause" ]
19
2015-04-20T13:47:00.000Z
2021-07-07T13:00:42.000Z
tools/inject_pydoc/idp.py
fengjixuchui/src
0c5a6cd8057717f73b1373f8d85eb9b19e1934e1
[ "BSD-3-Clause" ]
257
2015-04-01T21:42:33.000Z
2022-03-10T11:57:51.000Z
{ "ev_get_bg_color" : { "repl_text" : ("(self, color, ea) -> int", "(self, ea) -> int or None"), } }
19.5
80
0.452991
a32d410f0fad03a9c0fdccb975ef58812fe45a3f
4,576
py
Python
pca.py
vgp314/Udacity-Arvato-Identify-Customer-Segments
6be1d4f1eeac391c17c70fdf584bdc4813f80fd8
[ "ADSL" ]
1
2020-05-21T23:56:57.000Z
2020-05-21T23:56:57.000Z
pca.py
vgp314/Udacity-Arvato-Identify-Customer-Segments
6be1d4f1eeac391c17c70fdf584bdc4813f80fd8
[ "ADSL" ]
null
null
null
pca.py
vgp314/Udacity-Arvato-Identify-Customer-Segments
6be1d4f1eeac391c17c70fdf584bdc4813f80fd8
[ "ADSL" ]
null
null
null
#pca model n componentes from sklearn.decomposition import PCA import numpy as np from pylab import rcParams import matplotlib.pyplot as plt import pandas as pd def pca_model_n_components(df,n_components): ''' Definition: Initialize pca with n_components args: dataframe and number of components returns: ...
29.908497
101
0.671547
a32ec2ac9f37deceb74746f32c5ce3fa89c08ee8
4,446
py
Python
media_analyzer/core/top_news.py
nyancol/MediaAnalyzer
fe504aa63646d27dfca6ca2c5435b0877d65ab2a
[ "MIT" ]
null
null
null
media_analyzer/core/top_news.py
nyancol/MediaAnalyzer
fe504aa63646d27dfca6ca2c5435b0877d65ab2a
[ "MIT" ]
null
null
null
media_analyzer/core/top_news.py
nyancol/MediaAnalyzer
fe504aa63646d27dfca6ca2c5435b0877d65ab2a
[ "MIT" ]
null
null
null
import datetime import numpy as np import json from sklearn.decomposition import NMF, LatentDirichletAllocation, TruncatedSVD from sklearn.feature_extraction.text import CountVectorizer from nltk.corpus import stopwords import spacy from media_analyzer import database NUM_TOPICS = 20 if __name__ == "__main...
33.938931
97
0.634278
a3306511794dd745848ecb0131b99b481e38843f
669
py
Python
PYTHON/IP-Address-Checker.py
ayushyado/HACKTOBERFEST2021-2
b63d568fd7f33023ca0b0dbd91325444c70c4d10
[ "MIT" ]
125
2021-10-01T19:05:26.000Z
2021-10-03T13:32:42.000Z
PYTHON/IP-Address-Checker.py
ayushyado/HACKTOBERFEST2021-2
b63d568fd7f33023ca0b0dbd91325444c70c4d10
[ "MIT" ]
201
2021-10-30T20:40:01.000Z
2022-03-22T17:26:28.000Z
PYTHON/IP-Address-Checker.py
ayushyado/HACKTOBERFEST2021-2
b63d568fd7f33023ca0b0dbd91325444c70c4d10
[ "MIT" ]
294
2021-10-01T18:46:05.000Z
2021-10-03T14:25:07.000Z
import urllib2 public_ip = "None" target_url = "http://ip.42.pl/raw" public_ip = get_public_ip(target_url) if not "None" in public_ip: print("Your Public IP address is: %s") % (str(public_ip)) else: print("Your Public IP address was not found")
31.857143
72
0.730942
a3325c6fb73e3191f10fa77771bfdc292d1ff768
2,586
py
Python
scraper.py
squash-bit/Automate-Whatsapp-News
9bdbbbb397dc680825b19adcda4da81d1f66270c
[ "MIT" ]
4
2020-11-21T19:08:56.000Z
2021-05-06T13:09:45.000Z
scraper.py
squash-bit/Agent-Wallie
9bdbbbb397dc680825b19adcda4da81d1f66270c
[ "MIT" ]
1
2021-05-06T19:26:06.000Z
2021-05-06T19:26:06.000Z
scraper.py
squash-bit/Agent-Wallie
9bdbbbb397dc680825b19adcda4da81d1f66270c
[ "MIT" ]
1
2021-05-06T13:25:08.000Z
2021-05-06T13:25:08.000Z
# import necessary modules import os import re import requests import newspaper from bs4 import BeautifulSoup from newspaper import Article from newspaper import Config from article_summarizer import summarizer from time import sleep # clean data
39.181818
144
0.593968
a3340d73b31131cbb0f369140b3afe55408788f6
1,351
py
Python
soli/aria/forms/species.py
rcdixon/soli
d29c77c1d391dfcc3c0dd0297ecf93fa9aa046ab
[ "MIT" ]
null
null
null
soli/aria/forms/species.py
rcdixon/soli
d29c77c1d391dfcc3c0dd0297ecf93fa9aa046ab
[ "MIT" ]
null
null
null
soli/aria/forms/species.py
rcdixon/soli
d29c77c1d391dfcc3c0dd0297ecf93fa9aa046ab
[ "MIT" ]
null
null
null
from aria.models import Genus, Species, Subspecies from django import forms from django.forms import inlineformset_factory from .templates.templates import createTextInput, createSelectInput
29.369565
67
0.634345
a3349b6abd791f21baf0e781406ef6802460401f
285
py
Python
hour.py
anokata/pythonPetProjects
245c3ff11ae560b17830970061d8d60013948fd7
[ "MIT" ]
3
2017-04-30T17:44:53.000Z
2018-02-03T06:02:11.000Z
hour.py
anokata/pythonPetProjects
245c3ff11ae560b17830970061d8d60013948fd7
[ "MIT" ]
10
2021-03-18T20:17:19.000Z
2022-03-11T23:14:19.000Z
hour.py
anokata/pythonPetProjects
245c3ff11ae560b17830970061d8d60013948fd7
[ "MIT" ]
null
null
null
import math print(angle(20)) i = 0 for m in range(0,1440*60): a = angle(m) / 360 d = a - math.floor(a) if (d < 0.00001): print(a, math.floor(a), d, d == 0.0) i += 1 print(i) for m in range(25): print(360*m/5.5)
14.25
44
0.508772
a33556dfd1ea6c5a377213bf148dae18a67adec5
4,038
py
Python
src/third_party/wiredtiger/test/suite/test_encrypt08.py
benety/mongo
203430ac9559f82ca01e3cbb3b0e09149fec0835
[ "Apache-2.0" ]
null
null
null
src/third_party/wiredtiger/test/suite/test_encrypt08.py
benety/mongo
203430ac9559f82ca01e3cbb3b0e09149fec0835
[ "Apache-2.0" ]
null
null
null
src/third_party/wiredtiger/test/suite/test_encrypt08.py
benety/mongo
203430ac9559f82ca01e3cbb3b0e09149fec0835
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Public Domain 2014-present MongoDB, Inc. # Public Domain 2008-2014 WiredTiger, Inc. # # This is free and unencumbered software released into the public domain. # # Anyone is free to copy, modify, publish, use, compile, sell, or # distribute this software, either in source code form or as a com...
43.419355
87
0.698613
a336bdbfb6767de53ac20167cacab792872e5ecf
1,779
py
Python
{{cookiecutter.github_repository_name}}/{{cookiecutter.app_name}}/urls.py
mabdullahabid/cookiecutter-django-rest
8cab90f115b99f7b700ec38a08cb3647eb0a847b
[ "MIT" ]
null
null
null
{{cookiecutter.github_repository_name}}/{{cookiecutter.app_name}}/urls.py
mabdullahabid/cookiecutter-django-rest
8cab90f115b99f7b700ec38a08cb3647eb0a847b
[ "MIT" ]
null
null
null
{{cookiecutter.github_repository_name}}/{{cookiecutter.app_name}}/urls.py
mabdullahabid/cookiecutter-django-rest
8cab90f115b99f7b700ec38a08cb3647eb0a847b
[ "MIT" ]
null
null
null
from django.conf import settings from django.conf.urls.static import static from django.contrib import admin from django.urls import path, re_path, include, reverse_lazy from django.views.generic.base import RedirectView from rest_framework import permissions from rest_framework.authtoken import views from rest_framew...
35.58
88
0.754918
a33868010eb5e7ae344ef9b1e3fe0336947b0c2f
4,260
py
Python
pdk_api.py
audacious-software/Passive-Data-Kit-External-Sensors
c4781c04ce3cb485b0c1e50a9e7c6db0c92a9959
[ "Apache-2.0" ]
null
null
null
pdk_api.py
audacious-software/Passive-Data-Kit-External-Sensors
c4781c04ce3cb485b0c1e50a9e7c6db0c92a9959
[ "Apache-2.0" ]
null
null
null
pdk_api.py
audacious-software/Passive-Data-Kit-External-Sensors
c4781c04ce3cb485b0c1e50a9e7c6db0c92a9959
[ "Apache-2.0" ]
null
null
null
# pylint: disable=line-too-long, no-member from __future__ import print_function import arrow import requests from django.conf import settings from django.contrib.gis.geos import GEOSGeometry from django.utils import timezone from django.utils.text import slugify from passive_data_kit_external_sensors.models import...
38.035714
141
0.603286
a339496b618754603c49253c77c1461b236400c0
37,496
py
Python
fgcm/fgcmConfig.py
erykoff/fgcm
51c39c5c7f904fbac755e775038730b4e6ba11bd
[ "Apache-2.0" ]
5
2018-02-02T15:36:46.000Z
2021-05-11T21:54:49.000Z
fgcm/fgcmConfig.py
erykoff/fgcm
51c39c5c7f904fbac755e775038730b4e6ba11bd
[ "Apache-2.0" ]
1
2021-08-19T19:56:33.000Z
2021-08-19T19:56:33.000Z
fgcm/fgcmConfig.py
lsst/fgcm
51c39c5c7f904fbac755e775038730b4e6ba11bd
[ "Apache-2.0" ]
10
2019-01-09T22:50:04.000Z
2020-02-12T16:36:27.000Z
import numpy as np import os import sys import yaml from .fgcmUtilities import FocalPlaneProjectorFromOffsets from .fgcmLogger import FgcmLogger def _setVarsFromDict(self, d): for key in d: if key not in type(self).__dict__: raise AttributeError("Unknown config variable: %s" %...
46.063882
139
0.618759
a339e1e76e5e76805cb412ba27d8dde8548e8e54
1,474
py
Python
spearmint/transformations/demos/bibeta/show_warp_bibeta.py
fernandezdaniel/Spearmint
3c9e0a4be6108c3d652606bd957f0c9ae1bfaf84
[ "RSA-MD" ]
6
2021-06-29T11:26:49.000Z
2022-01-20T18:12:47.000Z
spearmint/transformations/demos/bibeta/show_warp_bibeta.py
fernandezdaniel/Spearmint
3c9e0a4be6108c3d652606bd957f0c9ae1bfaf84
[ "RSA-MD" ]
null
null
null
spearmint/transformations/demos/bibeta/show_warp_bibeta.py
fernandezdaniel/Spearmint
3c9e0a4be6108c3d652606bd957f0c9ae1bfaf84
[ "RSA-MD" ]
9
2018-06-28T13:06:35.000Z
2021-06-20T18:21:58.000Z
#Bibeta in action. import numpy as np import matplotlib.pyplot as plt from scipy.stats import beta from scipy.stats import randint a_1 = np.linspace(0,10,100) a_2 = np.linspace(0,10,100) b_1 = np.linspace(0,10,100) b_2 = np.linspace(0,10,100) pi = np.linspace(0,1,10) input_space = np.linspace(0,1,1000) pi_rvs = randi...
29.48
94
0.720488
a33b33e393caf1662689964e235489b7f1ad1bdc
1,350
py
Python
setup.py
agflood/scatteringmatrix
dc9a048e4b57475c67bbac7d3165cf29b5cc66e9
[ "MIT" ]
1
2021-04-18T16:09:17.000Z
2021-04-18T16:09:17.000Z
setup.py
agflood/scatteringmatrix
dc9a048e4b57475c67bbac7d3165cf29b5cc66e9
[ "MIT" ]
6
2018-09-03T06:46:39.000Z
2019-05-25T21:42:17.000Z
setup.py
agflood/scatteringmatrix
dc9a048e4b57475c67bbac7d3165cf29b5cc66e9
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages from scatteringmatrix import __version__ with open("README.md", "r") as fh: long_description = fh.read() setup(name='scatteringmatrix', version=__version__, description='Optical scattering matrix library', long_description=long_description, long_...
39.705882
66
0.60963
a33e27da81bb7bce9e69f05f780fb86f4b322234
501
py
Python
tests/test_trinomial.py
caltechlibrary/trinomial
0313e16400aca50f54bfe79080a10a1977702e9a
[ "BSD-3-Clause" ]
1
2021-05-22T17:29:17.000Z
2021-05-22T17:29:17.000Z
tests/test_trinomial.py
caltechlibrary/trinomial
0313e16400aca50f54bfe79080a10a1977702e9a
[ "BSD-3-Clause" ]
null
null
null
tests/test_trinomial.py
caltechlibrary/trinomial
0313e16400aca50f54bfe79080a10a1977702e9a
[ "BSD-3-Clause" ]
null
null
null
import os import pytest import sys from time import time try: thisdir = os.path.dirname(os.path.abspath(__file__)) sys.path.append(os.path.join(thisdir, '..')) except: sys.path.append('..') import trinomial
22.772727
56
0.686627
a33e48a10e11e80e4f5b747b61f4474ae03b0923
667
py
Python
openprocurement/tender/openeu/views/award_complaint_document.py
leits/openprocurement.tender.openeu
6e8b6650a23761cc09794030583206029a2928e8
[ "Apache-2.0" ]
1
2016-02-02T09:55:08.000Z
2016-02-02T09:55:08.000Z
openprocurement/tender/openeu/views/award_complaint_document.py
Leits/openprocurement.tender.openeu
6e8b6650a23761cc09794030583206029a2928e8
[ "Apache-2.0" ]
2
2021-03-26T00:35:37.000Z
2022-03-21T22:21:31.000Z
openprocurement/tender/openeu/views/award_complaint_document.py
leits/openprocurement.tender.openeu
6e8b6650a23761cc09794030583206029a2928e8
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from openprocurement.api.utils import opresource from openprocurement.tender.openua.views.award_complaint_document import TenderUaAwardComplaintDocumentResource
51.307692
111
0.773613
a33e4ece404ced51ee4f1506f207476b0d455c63
2,398
py
Python
pymic/layer/activation.py
vincentme/PyMIC
5cbbca7d0a19232be647086d4686ceea523f45ee
[ "Apache-2.0" ]
147
2019-12-23T02:52:04.000Z
2022-03-06T16:30:43.000Z
pymic/layer/activation.py
vincentme/PyMIC
5cbbca7d0a19232be647086d4686ceea523f45ee
[ "Apache-2.0" ]
4
2020-12-18T12:47:21.000Z
2021-05-21T02:18:01.000Z
pymic/layer/activation.py
vincentme/PyMIC
5cbbca7d0a19232be647086d4686ceea523f45ee
[ "Apache-2.0" ]
32
2020-01-08T13:48:50.000Z
2022-03-12T06:31:13.000Z
# -*- coding: utf-8 -*- from __future__ import print_function, division import torch import torch.nn as nn
31.552632
67
0.607173
a33eb973d0edc831eea7bb11066042e56e9c2e88
3,359
py
Python
ui/flowlayout.py
amadotejada/self-portal
c508fb120548f3eb65e872d08a823d3942fc650d
[ "Apache-2.0" ]
9
2022-03-15T02:02:30.000Z
2022-03-18T16:16:59.000Z
ui/flowlayout.py
amadotejada/self-portal
c508fb120548f3eb65e872d08a823d3942fc650d
[ "Apache-2.0" ]
null
null
null
ui/flowlayout.py
amadotejada/self-portal
c508fb120548f3eb65e872d08a823d3942fc650d
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Amado Tejada # # Licensed under the Apache License, Version 2.0 (the 'License'); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
31.688679
112
0.575171
a340df3cf71eb1be1675fbe29cece65cbcc98d43
3,183
py
Python
methods/smartdumpRJ.py
wdempsey/sense2stop-lvm
ea44d5f9199382d30e4c5a5ff4bd524313ceb5b2
[ "CECILL-B" ]
1
2020-04-18T11:16:02.000Z
2020-04-18T11:16:02.000Z
methods/smartdumpRJ.py
wdempsey/sense2stop-lvm
ea44d5f9199382d30e4c5a5ff4bd524313ceb5b2
[ "CECILL-B" ]
6
2020-04-13T18:38:04.000Z
2022-03-12T00:55:56.000Z
methods/smartdumpRJ.py
wdempsey/sense2stop-lvm
ea44d5f9199382d30e4c5a5ff4bd524313ceb5b2
[ "CECILL-B" ]
1
2020-07-02T04:47:00.000Z
2020-07-02T04:47:00.000Z
# -*- coding: utf-8 -*- """ Created on Tue May 26 14:29:26 2020 @author: Walter Dempsey & Jamie Yap """ #%% ############################################################################### # Build a RJMCMC class ############################################################################### from pymc import Stochast...
31.514851
88
0.602576
a34205264c406b528a6fcfa5ac69debf00a2b02c
2,021
py
Python
tests/test_slack_user.py
tomcooperca/mlb-slack-tracker
bbfd8ed6f0c345d5286813a6cd4b04e0557a762a
[ "MIT" ]
null
null
null
tests/test_slack_user.py
tomcooperca/mlb-slack-tracker
bbfd8ed6f0c345d5286813a6cd4b04e0557a762a
[ "MIT" ]
7
2018-09-08T20:07:43.000Z
2021-12-13T19:54:53.000Z
tests/test_slack_user.py
tomcooperca/mlb-slack-tracker
bbfd8ed6f0c345d5286813a6cd4b04e0557a762a
[ "MIT" ]
null
null
null
from unittest.mock import MagicMock from slack.user import User from baseball.team import Team reusableUser = User(token='blah', id='UB00123', team=None) testTeam = Team(abbreviation='CN', location='City Name', full_name='City Name Players', record='0W-162L', division='CL Beast', wins=0, losses=162, standing=5...
34.844828
74
0.730332
a342151afcda4ba72f2d257247a2de01de22ba98
1,934
py
Python
tmuxp/testsuite/test_workspacefreezer.py
wrongwaycn/tmuxp
367cca3eb1b3162bb7e4801fe752b520f1f8eefa
[ "BSD-3-Clause" ]
2
2018-02-05T01:27:07.000Z
2018-06-10T02:02:25.000Z
tmuxp/testsuite/test_workspacefreezer.py
wrongwaycn/tmuxp
367cca3eb1b3162bb7e4801fe752b520f1f8eefa
[ "BSD-3-Clause" ]
null
null
null
tmuxp/testsuite/test_workspacefreezer.py
wrongwaycn/tmuxp
367cca3eb1b3162bb7e4801fe752b520f1f8eefa
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function, with_statement import os import sys import logging import time import kaptan from .. import Window, config, exc from ..workspacebuilder import WorkspaceBuilder, freeze from .helpers import TmuxTestCase logger = logging.getLogger...
23.585366
80
0.609617
a343d4acc1180ec43471b02424e6695cc4893a9e
9,132
py
Python
libs/configs/DOTA1.0/dota_train/cfgs_res50_dotatrain_dcl_v15.py
Thinklab-SJTU/DCL_RetinaNet_Tensorflow
1d14c9800c3eb1975e8832978f7a263783d171ec
[ "Apache-2.0" ]
36
2020-11-19T07:23:42.000Z
2022-03-30T03:35:57.000Z
libs/configs/DOTA1.0/dota_train/cfgs_res50_dotatrain_dcl_v15.py
Thinklab-SJTU/DCL_RetinaNet_Tensorflow
1d14c9800c3eb1975e8832978f7a263783d171ec
[ "Apache-2.0" ]
4
2021-01-30T09:49:10.000Z
2021-12-05T12:49:11.000Z
libs/configs/DOTA1.0/dota_train/cfgs_res50_dotatrain_dcl_v15.py
Thinklab-SJTU/DCL_RetinaNet_Tensorflow
1d14c9800c3eb1975e8832978f7a263783d171ec
[ "Apache-2.0" ]
6
2020-11-23T07:54:47.000Z
2021-07-09T07:20:15.000Z
# -*- coding: utf-8 -*- from __future__ import division, print_function, absolute_import import os import tensorflow as tf import math """ GCL + OMEGA = 180 / 512. {'0.6': {'ground-track-field': 0.573582489319409, 'harbor': 0.3891521609424017, 'bridge': 0.2563337419887201, 'small-vehicle': 0.5648505388890961, 'plane'...
71.34375
583
0.727551
a34438fcd2d05af774f8b7d208037ebd093f49f3
1,488
py
Python
test.py
KyleJeong/ast_calculator
cf65ad76739839ac4b3df36b82862612d6bd4492
[ "MIT" ]
6
2016-07-20T07:37:07.000Z
2022-01-14T06:35:26.000Z
test.py
KyleJeong/ast_calculator
cf65ad76739839ac4b3df36b82862612d6bd4492
[ "MIT" ]
1
2020-03-29T05:13:58.000Z
2020-03-29T05:13:58.000Z
test.py
KyleJeong/ast_calculator
cf65ad76739839ac4b3df36b82862612d6bd4492
[ "MIT" ]
1
2020-03-29T04:29:36.000Z
2020-03-29T04:29:36.000Z
""" Test cases for AST calculator """ from unittest import TestCase from calc import evaluate
23.619048
62
0.511425
a3446186d570e00d5586a746c5e62060ac9246b6
315
py
Python
app/main/utils.py
tmeftah/e-invoice
7cfe31e9391eb60ab3d06f0055bd2f1e9a524971
[ "MIT" ]
2
2019-06-10T19:30:06.000Z
2020-04-30T01:05:04.000Z
app/main/utils.py
tmeftah/e-invoice
7cfe31e9391eb60ab3d06f0055bd2f1e9a524971
[ "MIT" ]
null
null
null
app/main/utils.py
tmeftah/e-invoice
7cfe31e9391eb60ab3d06f0055bd2f1e9a524971
[ "MIT" ]
3
2019-01-23T21:37:29.000Z
2020-04-08T13:22:29.000Z
from flask import request from app.main.extensions import cache
19.6875
83
0.733333
a344e089a4efbd0afbd6c50e23cff7269d7dd9c8
1,931
py
Python
gum/managers.py
marcosgabarda/django-gum
796a496e95391aab9e462bde6d8f775534d5f6c6
[ "MIT" ]
16
2015-05-04T18:47:33.000Z
2021-02-03T17:10:40.000Z
gum/managers.py
marcosgabarda/django-gum
796a496e95391aab9e462bde6d8f775534d5f6c6
[ "MIT" ]
4
2015-09-08T14:48:31.000Z
2016-09-09T09:49:41.000Z
gum/managers.py
marcosgabarda/django-gum
796a496e95391aab9e462bde6d8f775534d5f6c6
[ "MIT" ]
2
2015-05-04T18:39:23.000Z
2016-04-18T14:35:47.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from gum.utils import elasticsearch_connection
32.183333
86
0.658726
a34991845be5613841f0b124224655a27cd95755
1,732
py
Python
app.py
u-aaa/House-_prediction_model
4808b4aefb802520a7ccd878c342699093e6942d
[ "MIT" ]
null
null
null
app.py
u-aaa/House-_prediction_model
4808b4aefb802520a7ccd878c342699093e6942d
[ "MIT" ]
null
null
null
app.py
u-aaa/House-_prediction_model
4808b4aefb802520a7ccd878c342699093e6942d
[ "MIT" ]
1
2021-09-23T19:42:36.000Z
2021-09-23T19:42:36.000Z
import pickle import json import numpy as np from flask import Flask, request, jsonify app = Flask(__name__) with open('models/regressor.pkl', 'rb') as f: model = pickle.load(f) def __process_input(posted_data) -> np.array: ''' transforms JSON type data acquired from request and transforms it into 2D ...
28.393443
105
0.639723
a34ab44ceb198f7ffec0e7a91a4d37823eb68330
4,734
py
Python
sobit_bringup/src/joint_state_listner.py
Choi-Laboratory/sobit_blue
81a228390e1726653d54f33afb3fbb1c1fdb5b24
[ "Apache-2.0" ]
null
null
null
sobit_bringup/src/joint_state_listner.py
Choi-Laboratory/sobit_blue
81a228390e1726653d54f33afb3fbb1c1fdb5b24
[ "Apache-2.0" ]
null
null
null
sobit_bringup/src/joint_state_listner.py
Choi-Laboratory/sobit_blue
81a228390e1726653d54f33afb3fbb1c1fdb5b24
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- import rospy import math from sensor_msgs.msg import * from geometry_msgs.msg import * from sobit_bringup.msg import * #-------------------------------- motion = [0]*21 TIME = 0.1 serial_joint = Serial_motion() state_jointstate = JointState() state_jointstate.name =["L_wheel...
37.872
322
0.603929
a34d2a23f38ff576e6a5ef0f805165729d2fc6ef
2,789
py
Python
scalex/metrics.py
jsxlei/SCALEX
021c6d35a0cebeaa1f59ea53b9b9e22015ce6e5f
[ "MIT" ]
11
2021-04-09T02:46:29.000Z
2022-01-04T16:42:44.000Z
scale/metrics.py
QingZhan98/SCALE_v2
69bb02beee40ec085684335f356798d4dcb53fbc
[ "MIT" ]
2
2021-04-18T02:30:18.000Z
2022-03-05T10:40:00.000Z
scale/metrics.py
QingZhan98/SCALE_v2
69bb02beee40ec085684335f356798d4dcb53fbc
[ "MIT" ]
4
2021-03-29T12:34:47.000Z
2022-03-06T12:42:45.000Z
#!/usr/bin/env python """ # Author: Xiong Lei # Created Time : Thu 10 Jan 2019 07:38:10 PM CST # File Name: metrics.py # Description: """ import numpy as np import scipy from sklearn.neighbors import NearestNeighbors, KNeighborsRegressor def batch_entropy_mixing_score(data, batches, n_neighbors=100, n_pools=100, n...
34.8625
114
0.639656
a34d8a9377344d0edaae44dd4947affb31816584
189
py
Python
src/miu/colorbilding.py
memowe/miniciti-user
ce1cbccdb693c4916217e1395eacb14f06d536a1
[ "MIT" ]
null
null
null
src/miu/colorbilding.py
memowe/miniciti-user
ce1cbccdb693c4916217e1395eacb14f06d536a1
[ "MIT" ]
null
null
null
src/miu/colorbilding.py
memowe/miniciti-user
ce1cbccdb693c4916217e1395eacb14f06d536a1
[ "MIT" ]
null
null
null
from miniciti.bilding import Bilding
18.9
36
0.650794
a34e461868bd92e65252352e4554823a69ea35c7
2,603
py
Python
examples/data/create_data.py
fdabek1/EHR-Functions
e6bd0b6fa213930358c4a19be31c459ac7430ca9
[ "MIT" ]
null
null
null
examples/data/create_data.py
fdabek1/EHR-Functions
e6bd0b6fa213930358c4a19be31c459ac7430ca9
[ "MIT" ]
null
null
null
examples/data/create_data.py
fdabek1/EHR-Functions
e6bd0b6fa213930358c4a19be31c459ac7430ca9
[ "MIT" ]
null
null
null
import pandas as pd import random import time # Source: https://stackoverflow.com/a/553320/556935 def str_time_prop(start, end, date_format, prop): """Get a time at a proportion of a range of two formatted times. start and end should be strings specifying times formated in the given format (strftime-styl...
31.743902
102
0.579332
a350ecde028977958b337223398f9351c3e4bbec
1,317
py
Python
contests/ccpc20qhd/f超时.py
yofn/pyacm
e573f8fdeea77513711f00c42f128795cbba65a6
[ "Apache-2.0" ]
null
null
null
contests/ccpc20qhd/f超时.py
yofn/pyacm
e573f8fdeea77513711f00c42f128795cbba65a6
[ "Apache-2.0" ]
null
null
null
contests/ccpc20qhd/f超时.py
yofn/pyacm
e573f8fdeea77513711f00c42f128795cbba65a6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 ''' #ccpc20qhd-f => #,, #=- #(>0)? #DFS,? ? # O(V+E).. Runtime Error? : 1: DFS 2: ! ''' t = int(input()) for i in range(t): n,m = list(map(int,input().split())) l = [list(map(int,input().split())) for _ in range(m)] print('Case #%d: %s'%((i+1), f(n,l)))
23.105263
82
0.430524
a3525d2e36b057b387fd2a242a0be1258c2a7481
2,920
py
Python
test/feature_extraction/list_counter_test.py
tmhatton/MLinPractice
759706e13181cec864d6aa8ece9ae7042f083e4c
[ "MIT" ]
null
null
null
test/feature_extraction/list_counter_test.py
tmhatton/MLinPractice
759706e13181cec864d6aa8ece9ae7042f083e4c
[ "MIT" ]
1
2021-10-19T08:09:44.000Z
2021-10-19T08:09:44.000Z
test/feature_extraction/list_counter_test.py
tmhatton/MLinPractice
759706e13181cec864d6aa8ece9ae7042f083e4c
[ "MIT" ]
null
null
null
import unittest import pandas as pd from code.feature_extraction.list_counter import PhotosNum, URLsNum, HashtagNum, MentionNum, TokenNum from code.util import COLUMN_PHOTOS, COLUMN_URLS, COLUMN_HASHTAGS, COLUMN_MENTIONS if __name__ == '__main__': unittest.main()
30.736842
161
0.667466
a352f55dcd4b6a9dcf2653a39663d590b4d79e27
926
py
Python
tests/test_2_promethee.py
qanastek/EasyMCDM
7fa2e2dfe9397834ca9f50211ea2717a16785394
[ "MIT" ]
4
2022-03-05T20:51:38.000Z
2022-03-15T17:10:22.000Z
tests/test_2_promethee.py
qanastek/EasyMCDM
7fa2e2dfe9397834ca9f50211ea2717a16785394
[ "MIT" ]
null
null
null
tests/test_2_promethee.py
qanastek/EasyMCDM
7fa2e2dfe9397834ca9f50211ea2717a16785394
[ "MIT" ]
1
2022-03-08T13:45:22.000Z
2022-03-08T13:45:22.000Z
import unittest from operator import index from EasyMCDM.models.Promethee import Promethee if __name__ == '__main__': unittest.main()
42.090909
161
0.565875
a354ea47baa38abfde41024d2fd179d6d96966cf
1,207
py
Python
testbed_frontend/api/emulation/emulation_handler.py
Ncu-software-research-center/IIOT-testbed
b4c8f91d1fd1e596d2262152ce99afeb22976f7a
[ "Apache-2.0" ]
1
2021-05-25T09:33:28.000Z
2021-05-25T09:33:28.000Z
testbed_frontend/api/emulation/emulation_handler.py
Ncu-software-research-center/IIOT-testbed
b4c8f91d1fd1e596d2262152ce99afeb22976f7a
[ "Apache-2.0" ]
6
2020-06-06T01:59:09.000Z
2021-06-10T20:17:56.000Z
testbed_frontend/api/emulation/emulation_handler.py
Ncu-software-research-center/IIOT-testbed
b4c8f91d1fd1e596d2262152ce99afeb22976f7a
[ "Apache-2.0" ]
null
null
null
''' Vortex OpenSplice This software and documentation are Copyright 2006 to TO_YEAR ADLINK Technology Limited, its affiliated companies and licensors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the Lice...
32.621622
92
0.729909
a3551761361e06ddd937cee500aed18df74cd70f
2,027
py
Python
torchtraining/functional/metrics/regression.py
szymonmaszke/torchtraining
1ddf169325b7239d6d6686b20072a406b69a0180
[ "MIT" ]
3
2020-08-26T06:11:58.000Z
2020-08-27T08:11:15.000Z
torchtraining/functional/metrics/regression.py
klaudiapalasz/torchtraining
7ac54009eea2fd84aa635b6f3cbfe306f317d087
[ "MIT" ]
1
2020-08-25T19:19:43.000Z
2020-08-25T19:19:43.000Z
torchtraining/functional/metrics/regression.py
klaudiapalasz/torchtraining
7ac54009eea2fd84aa635b6f3cbfe306f317d087
[ "MIT" ]
1
2021-04-15T18:55:57.000Z
2021-04-15T18:55:57.000Z
import typing import torch from .. import utils
27.026667
84
0.693143
a3552615d55b8131f79fc858dd41da8c30cf2d71
6,028
py
Python
Source/game/systems/puzzle/hold.py
LucXyMan/starseeker
b5c3365514c982734da7d95621e6b85af550ce82
[ "BSD-3-Clause" ]
null
null
null
Source/game/systems/puzzle/hold.py
LucXyMan/starseeker
b5c3365514c982734da7d95621e6b85af550ce82
[ "BSD-3-Clause" ]
null
null
null
Source/game/systems/puzzle/hold.py
LucXyMan/starseeker
b5c3365514c982734da7d95621e6b85af550ce82
[ "BSD-3-Clause" ]
1
2019-11-27T18:00:00.000Z
2019-11-27T18:00:00.000Z
#!/usr/bin/env python2.7 # -*- coding:UTF-8 -*-2 u"""hold.py Copyright (c) 2019 Yukio Kuro This software is released under BSD license. """ import pieces as _pieces import utils.const as _const import utils.layouter as _layouter
31.233161
77
0.535169
a35602a1c5d4bcf343e77bdb5e4000c799357ee5
347
py
Python
homeworks/kirill_shevchuk/hw05/level04.py
tgrx/Z22
b2539682ff26c8b6d9f63a7670c8a9c6b614a8ff
[ "Apache-2.0" ]
null
null
null
homeworks/kirill_shevchuk/hw05/level04.py
tgrx/Z22
b2539682ff26c8b6d9f63a7670c8a9c6b614a8ff
[ "Apache-2.0" ]
8
2019-11-15T18:15:56.000Z
2020-02-03T18:05:05.000Z
homeworks/kirill_shevchuk/hw05/level04.py
tgrx/Z22
b2539682ff26c8b6d9f63a7670c8a9c6b614a8ff
[ "Apache-2.0" ]
null
null
null
from urllib.parse import urlparse
21.6875
44
0.570605
a35af943a1738408edb737fd87daf987635bfda0
1,554
py
Python
pertemuan_13/draw_utils.py
Muhammad-Yunus/Jetson-Nano-OpenCV-Learn
933cb2594539a877030fb82dc3e6867409c1a557
[ "Apache-2.0" ]
null
null
null
pertemuan_13/draw_utils.py
Muhammad-Yunus/Jetson-Nano-OpenCV-Learn
933cb2594539a877030fb82dc3e6867409c1a557
[ "Apache-2.0" ]
null
null
null
pertemuan_13/draw_utils.py
Muhammad-Yunus/Jetson-Nano-OpenCV-Learn
933cb2594539a877030fb82dc3e6867409c1a557
[ "Apache-2.0" ]
2
2021-09-28T00:24:21.000Z
2022-03-09T13:38:29.000Z
import cv2 import numpy as np # draw_ped() function to draw bounding box with top labeled text
39.846154
135
0.47426
a35b39c11aff2330ec7aa6556e235a658417a015
2,204
py
Python
Sensors/PortStart.py
cybertraining-dsc/boat
32e4942b69059d1dd48d79c8e0f55bac438eb5e7
[ "Apache-2.0" ]
null
null
null
Sensors/PortStart.py
cybertraining-dsc/boat
32e4942b69059d1dd48d79c8e0f55bac438eb5e7
[ "Apache-2.0" ]
null
null
null
Sensors/PortStart.py
cybertraining-dsc/boat
32e4942b69059d1dd48d79c8e0f55bac438eb5e7
[ "Apache-2.0" ]
null
null
null
""" Code modified from: apps.fishandwhistle.net/archives/1155 """ from __future__ import print_function import serial import sys import glob port_list = {} def identifyPort(port): """ tests the port and identifies what device is attached to it from probing it :param port: :return: a port list dict w...
26.878049
79
0.583031
a35c7cddf46b7abcc142f392526fdba0c6a3aa7e
112
py
Python
test/python/test_utils.py
AdityaSidharta/docker_base
ccdbe7f10e4ddb329dfc106734b3e58226cd0b05
[ "MIT" ]
null
null
null
test/python/test_utils.py
AdityaSidharta/docker_base
ccdbe7f10e4ddb329dfc106734b3e58226cd0b05
[ "MIT" ]
null
null
null
test/python/test_utils.py
AdityaSidharta/docker_base
ccdbe7f10e4ddb329dfc106734b3e58226cd0b05
[ "MIT" ]
null
null
null
from app.python.utils import get_datetime
18.666667
42
0.776786
a35f847cfae16fa50a6998fa4b3afcf7165085cb
883
py
Python
tests/core/test_registered_plugins.py
MajesticFalcon/nornir
75f82dbb7f492d0f283abcc5eb6b5fee08db9487
[ "Apache-2.0" ]
955
2018-05-16T17:10:12.000Z
2022-03-30T20:14:26.000Z
tests/core/test_registered_plugins.py
MajesticFalcon/nornir
75f82dbb7f492d0f283abcc5eb6b5fee08db9487
[ "Apache-2.0" ]
490
2018-05-16T08:00:22.000Z
2022-03-28T21:14:39.000Z
tests/core/test_registered_plugins.py
MajesticFalcon/nornir
75f82dbb7f492d0f283abcc5eb6b5fee08db9487
[ "Apache-2.0" ]
243
2018-05-17T11:07:24.000Z
2022-03-27T18:01:07.000Z
from nornir.core.plugins.inventory import InventoryPluginRegister from nornir.core.plugins.runners import RunnersPluginRegister from nornir.plugins.inventory import SimpleInventory from nornir.plugins.runners import SerialRunner, ThreadedRunner from nornir_utils.plugins.inventory import YAMLInventory
33.961538
65
0.737259
a3644bcfb5d4ed17d821b83cba8aacde7ddfe23f
1,411
py
Python
setup.py
hodgestar/tesseract-control-software
41f47a4b901a0069f1745c90abe28f0778704b0e
[ "MIT" ]
2
2019-07-13T14:15:30.000Z
2020-01-04T10:44:47.000Z
setup.py
hodgestar/tesseract-control-software
41f47a4b901a0069f1745c90abe28f0778704b0e
[ "MIT" ]
null
null
null
setup.py
hodgestar/tesseract-control-software
41f47a4b901a0069f1745c90abe28f0778704b0e
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup( name="tessled", version="0.0.1", url='http://github.com/hodgestar/tesseract-control-software', license='MIT', description="Tesseract control software and simulator.", long_description=open('README.rst', 'r').read(), author='Simon Cross', ...
30.673913
65
0.593196
a364c15aa063e5f5b9ce9b053b0dc00b7991aba9
45
py
Python
config.py
grimpy/glunit
ed8b8fabc8539abe94a9bf93418b95d006283066
[ "MIT" ]
null
null
null
config.py
grimpy/glunit
ed8b8fabc8539abe94a9bf93418b95d006283066
[ "MIT" ]
null
null
null
config.py
grimpy/glunit
ed8b8fabc8539abe94a9bf93418b95d006283066
[ "MIT" ]
1
2019-03-02T12:32:40.000Z
2019-03-02T12:32:40.000Z
GITLAB_URL = "XXXXXX" GITLAB_TOKEN = "XXXXX"
15
22
0.733333
a3670442cb8f6ed8744f92e8d59bbfa74b3455a4
481
py
Python
app/collect/patch.py
luiscape/hdxscraper-unhcr-mediterranean-refugees
372bd7f565569e1d3a8428e6f09e86a01842bb9c
[ "MIT" ]
null
null
null
app/collect/patch.py
luiscape/hdxscraper-unhcr-mediterranean-refugees
372bd7f565569e1d3a8428e6f09e86a01842bb9c
[ "MIT" ]
2
2015-10-08T15:41:56.000Z
2015-10-08T15:50:48.000Z
app/collect/patch.py
luiscape/hdxscraper-unhcr-mediterranean-refugees
372bd7f565569e1d3a8428e6f09e86a01842bb9c
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- import time def Epoch(data): '''Patching Epoch timestamps.''' for record in data: record['last_updated'] = time.strftime('%Y-%m-%d', time.localtime(record['last_updated'])) return data def Date(data): '''Patching date stamps.''' for record in data: m = t...
20.041667
94
0.619543
a3686d9e544eb4ac435a125dc81bd7efb5af661e
1,875
py
Python
datasets/nlmap/preprocess_nlmap.py
zhuang-li/pyaudio_with_tranx
934d0431539564bb815c4c2c6399fe9d2fe7db55
[ "Apache-2.0" ]
null
null
null
datasets/nlmap/preprocess_nlmap.py
zhuang-li/pyaudio_with_tranx
934d0431539564bb815c4c2c6399fe9d2fe7db55
[ "Apache-2.0" ]
null
null
null
datasets/nlmap/preprocess_nlmap.py
zhuang-li/pyaudio_with_tranx
934d0431539564bb815c4c2c6399fe9d2fe7db55
[ "Apache-2.0" ]
null
null
null
from nltk.tokenize import TweetTokenizer import io dir_path = "../../data/nlmap/" train_en_path = dir_path + "nlmaps.train.en" train_mrl_path = dir_path + "nlmaps.train.mrl" test_en_path = dir_path + "nlmaps.test.en" test_mrl_path = dir_path + "nlmaps.test.mrl" train_txt = dir_path + "train.txt" test_txt = dir...
29.296875
82
0.6208
a3697ddf813bc6d7c74b1660f1c7cbb233952678
2,228
py
Python
ocr.py
RonLek/ALPR-and-Identification-for-Indian-Vehicles
2c6cd5d6d883e67ed17a8dbb96830f813c6ab55e
[ "FTL", "Xnet", "X11" ]
13
2020-09-25T16:48:06.000Z
2022-01-31T01:36:33.000Z
ocr.py
RonLek/ALPR-and-Identification-for-Indian-Vehicles
2c6cd5d6d883e67ed17a8dbb96830f813c6ab55e
[ "FTL", "Xnet", "X11" ]
5
2021-01-19T09:36:59.000Z
2022-03-25T06:56:08.000Z
ocr.py
RonLek/ALPR-and-Identification-for-Indian-Vehicles
2c6cd5d6d883e67ed17a8dbb96830f813c6ab55e
[ "FTL", "Xnet", "X11" ]
7
2020-09-24T01:15:52.000Z
2022-03-23T06:50:55.000Z
states = ['AP', 'AR', 'AS', 'BR', 'CG', 'GA', 'GJ', 'HR', 'HP', 'JH', 'KA', 'KL', 'MP', 'MH', 'MN', 'ML', 'MZ', 'NL', 'OD', 'PB', 'RJ', 'SK', 'TN', 'TS', 'TR', 'UP', 'UK', 'WB', 'AN', 'CH', 'DD', 'DL', 'JK', 'LA', 'LD', 'PY'] def detect_text(path): """D...
30.520548
75
0.508528
a36a1929d767b48efa4751ceab577496580f2e66
667
py
Python
setup.py
LehmRob/photorename
b499b08f225264e5c7be3b51988d8e8fcbeb088f
[ "MIT" ]
null
null
null
setup.py
LehmRob/photorename
b499b08f225264e5c7be3b51988d8e8fcbeb088f
[ "MIT" ]
null
null
null
setup.py
LehmRob/photorename
b499b08f225264e5c7be3b51988d8e8fcbeb088f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from setuptools import setup from distutils.util import convert_path main_ns = {} vpath = convert_path('photorename/version.py') with open(vpath) as vfile: exec(vfile.read(), main_ns) setup( name='photorename', version=main_ns['__version__'], description='bulk rename photos in ...
23.821429
58
0.667166
a36a758d49817dccb80abed74b7ead8eedf80c06
456
py
Python
python_loop/groom_lt1.py
hesthers/self-python-practice-
79e7a86385e599ca430af761f533f6eaf90aa448
[ "MIT" ]
1
2021-09-07T00:26:56.000Z
2021-09-07T00:26:56.000Z
python_loop/groom_lt1.py
hesthers/self-python-practice
79e7a86385e599ca430af761f533f6eaf90aa448
[ "MIT" ]
null
null
null
python_loop/groom_lt1.py
hesthers/self-python-practice
79e7a86385e599ca430af761f533f6eaf90aa448
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # UTF-8 encoding when using korean import numpy as np import math input_l = [] while True: user_input = int(input('')) input_l.append(user_input) if len(input_l[1:]) == input_l[0]: #user_input = user_input.split('\n') cnt_input = [] for i in range(1, len(input_l)): if np.sqrt(input...
17.538462
54
0.640351
a36c8b3504ed6254b18b5d9848ed7acfd15782c9
454
py
Python
setup.py
hasangchun/ContextNet
da2515bb506a304186c9f579b251be8f086c541a
[ "Apache-2.0" ]
8
2021-06-20T17:59:22.000Z
2021-09-15T05:28:45.000Z
setup.py
hasangchun/ContextNet
da2515bb506a304186c9f579b251be8f086c541a
[ "Apache-2.0" ]
2
2021-12-02T20:33:08.000Z
2021-12-28T14:23:17.000Z
setup.py
hasangchun/ContextNet
da2515bb506a304186c9f579b251be8f086c541a
[ "Apache-2.0" ]
3
2022-02-02T10:36:01.000Z
2022-03-03T09:04:37.000Z
from setuptools import setup, find_packages setup( name='ContextNet', version='latest', packages=find_packages(), description='ContextNet: Improving Convolutional Neural Networks for Automatic Speech Recognition with Global Context', author='Sangchun Ha', author_email='seomk9896@naver.com', ...
28.375
123
0.698238
a36d0ac9736ee7f0f87c898553b9622f6343c622
130
py
Python
katas/kyu_7/product_of_main_diagonal.py
the-zebulan/CodeWars
1eafd1247d60955a5dfb63e4882e8ce86019f43a
[ "MIT" ]
40
2016-03-09T12:26:20.000Z
2022-03-23T08:44:51.000Z
katas/kyu_7/product_of_main_diagonal.py
akalynych/CodeWars
1eafd1247d60955a5dfb63e4882e8ce86019f43a
[ "MIT" ]
null
null
null
katas/kyu_7/product_of_main_diagonal.py
akalynych/CodeWars
1eafd1247d60955a5dfb63e4882e8ce86019f43a
[ "MIT" ]
36
2016-11-07T19:59:58.000Z
2022-03-31T11:18:27.000Z
from operator import mul
21.666667
67
0.730769
a36e85cc522d69fee1eb9747d2afca83c85e094a
1,643
py
Python
src/ctc/protocols/curve_utils/cli/curve_pools_command.py
fei-protocol/checkthechain
ec838f3d0d44af228f45394d9ba8d8eb7f677520
[ "MIT" ]
94
2022-02-15T19:34:49.000Z
2022-03-26T19:26:22.000Z
src/ctc/protocols/curve_utils/cli/curve_pools_command.py
fei-protocol/checkthechain
ec838f3d0d44af228f45394d9ba8d8eb7f677520
[ "MIT" ]
7
2022-03-03T02:58:47.000Z
2022-03-11T18:41:05.000Z
src/ctc/protocols/curve_utils/cli/curve_pools_command.py
fei-protocol/checkthechain
ec838f3d0d44af228f45394d9ba8d8eb7f677520
[ "MIT" ]
7
2022-02-15T17:53:07.000Z
2022-03-17T19:14:17.000Z
from __future__ import annotations import toolcli from ctc.protocols import curve_utils
26.934426
80
0.593427
a3724c66e413effcdf21b1d39aedb643be084706
218
py
Python
constants/db.py
sshikshu/app.cavill.in
4e9472ea9640dad920f17d29b9625c8485022a5e
[ "MIT" ]
null
null
null
constants/db.py
sshikshu/app.cavill.in
4e9472ea9640dad920f17d29b9625c8485022a5e
[ "MIT" ]
null
null
null
constants/db.py
sshikshu/app.cavill.in
4e9472ea9640dad920f17d29b9625c8485022a5e
[ "MIT" ]
null
null
null
""" db constants """ DB_HOST = 'localhost' DB_PORT = 28015 # Database is cavilling DB_NAME = 'cavilling' DB_TABLE_CAVILLS = 'cavills' DB_TABLE_HAIRDOS = 'hairdos' DB_TABLE_POLRUS = 'polrus' DB_TABLE_USERS = 'users'
14.533333
28
0.733945
a3725144f31da3c2b8b26f9fa9ea6b635892f533
76,062
py
Python
socfakerservice/api/api.py
MSAdministrator/soc-faker-service
f3c401f8d6931d1c421f594dc8f1137f2ad984aa
[ "MIT" ]
1
2021-04-11T05:53:38.000Z
2021-04-11T05:53:38.000Z
socfakerservice/api/api.py
MSAdministrator/soc-faker-service
f3c401f8d6931d1c421f594dc8f1137f2ad984aa
[ "MIT" ]
null
null
null
socfakerservice/api/api.py
MSAdministrator/soc-faker-service
f3c401f8d6931d1c421f594dc8f1137f2ad984aa
[ "MIT" ]
1
2021-04-11T05:53:42.000Z
2021-04-11T05:53:42.000Z
from flask import Blueprint, render_template, request, abort, jsonify, Response from socfakerservice import status, HTMLRenderer, set_renderers from socfakerservice.model import TokenModel from socfaker import SocFaker socfaker = SocFaker() api_bp = Blueprint( 'api', __name__ ) ### AGENT ROUTES ### ### ALER...
28.349609
162
0.639623
a37355a19aa8f440bb3300c6b512a843d8e672aa
3,494
py
Python
jdit/trainer/instances/fashionClassParallelTrainer.py
dingguanglei/jdit
ef878e696c9e2fad5069f106496289d4e4cc6154
[ "Apache-2.0" ]
28
2019-06-18T15:56:53.000Z
2021-11-09T13:11:13.000Z
jdit/trainer/instances/fashionClassParallelTrainer.py
dingguanglei/jdit
ef878e696c9e2fad5069f106496289d4e4cc6154
[ "Apache-2.0" ]
2
2018-10-24T01:09:56.000Z
2018-11-08T07:13:48.000Z
jdit/trainer/instances/fashionClassParallelTrainer.py
dingguanglei/jdit
ef878e696c9e2fad5069f106496289d4e4cc6154
[ "Apache-2.0" ]
8
2019-01-11T01:12:15.000Z
2021-03-12T10:15:43.000Z
# coding=utf-8 import torch import torch.nn as nn import torch.nn.functional as F from jdit.trainer.single.classification import ClassificationTrainer from jdit.model import Model from jdit.optimizer import Optimizer from jdit.dataset import FashionMNIST from jdit.parallel import SupParallelTrainer def build_task_t...
32.351852
105
0.634516
a37644a1e11006bb540b7235f3216f75efbca584
5,711
py
Python
movies_modeling.py
amotter443/movies
ae375d19befb8133c014199dc1bf1ae728fd0147
[ "MIT" ]
1
2022-01-13T21:46:40.000Z
2022-01-13T21:46:40.000Z
movies_modeling.py
amotter443/movies
ae375d19befb8133c014199dc1bf1ae728fd0147
[ "MIT" ]
null
null
null
movies_modeling.py
amotter443/movies
ae375d19befb8133c014199dc1bf1ae728fd0147
[ "MIT" ]
null
null
null
#Initialize packages import numpy as np import pandas as pd import seaborn as sns import matplotlib.pyplot as plt import sklearn.model_selection as model_selection from sklearn import linear_model import sklearn.metrics as metrics from sklearn.preprocessing import StandardScaler from sklearn.ensemble import Ra...
38.073333
366
0.711959
a3767371ed8f0cd8ffdd0f52e641dd47e92c68df
1,287
py
Python
Python/142.py
jaimeliew1/Project_Euler_Solutions
963c9c6d6571cade8f87341f97a6a2cd1af202bb
[ "MIT" ]
null
null
null
Python/142.py
jaimeliew1/Project_Euler_Solutions
963c9c6d6571cade8f87341f97a6a2cd1af202bb
[ "MIT" ]
1
2018-04-16T21:01:50.000Z
2018-04-16T21:01:50.000Z
Python/142.py
jaimeliew1/Project_Euler_Solutions
963c9c6d6571cade8f87341f97a6a2cd1af202bb
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Solution to Project Euler problem 142 - Perfect Square Collection Author: Jaime Liew https://github.com/jaimeliew1/Project_Euler_Solutions """ from itertools import combinations import numpy as np if __name__ == "__main__": print(run())
28.6
79
0.529915
a3775d28ecda7be7aab9864818d4a6bf38e3387c
6,032
py
Python
garcon/activity.py
mortaliorchard/garcon
281221c63da0b2ea3ea51174a3d5878d1de8f487
[ "MIT" ]
null
null
null
garcon/activity.py
mortaliorchard/garcon
281221c63da0b2ea3ea51174a3d5878d1de8f487
[ "MIT" ]
null
null
null
garcon/activity.py
mortaliorchard/garcon
281221c63da0b2ea3ea51174a3d5878d1de8f487
[ "MIT" ]
null
null
null
""" Activity ======== Activities are self generated classes to which you can pass an identifier, and a list of tasks to perform. The activities are in between the decider and the task. For ease, two types of task runners are available: SyncTasks and AsyncTasks. If you need something more specific, you should either c...
28.587678
79
0.629145
a37b1669512f165099c1e03b767ae6863a2fb2c7
7,754
py
Python
csvdiff.py
bugph0bia/PyCsvDiff
57d438d50e758e13834affd8d0e46f8a7bfe0ebe
[ "MIT" ]
null
null
null
csvdiff.py
bugph0bia/PyCsvDiff
57d438d50e758e13834affd8d0e46f8a7bfe0ebe
[ "MIT" ]
null
null
null
csvdiff.py
bugph0bia/PyCsvDiff
57d438d50e758e13834affd8d0e46f8a7bfe0ebe
[ "MIT" ]
null
null
null
import sys import csv import json import argparse from collections import namedtuple # diff info DiffInfo = namedtuple('DiffInfo', [ 'mark', # diff kind (!, -, +) 'address', # row/column addresses of diff 'keyname', # row/column key names of diff 'value', # values of diff ]) def ...
33.5671
131
0.554037
a37e426d249e4fa306b483523b559a9a0ae9cff3
2,563
py
Python
map_reduce/core/data_source.py
HuynhThanhQuan/graph-network
e429a641e7baecad9765700cac580cfbdedbe1bd
[ "MIT" ]
null
null
null
map_reduce/core/data_source.py
HuynhThanhQuan/graph-network
e429a641e7baecad9765700cac580cfbdedbe1bd
[ "MIT" ]
11
2020-11-13T18:29:37.000Z
2022-02-10T00:25:15.000Z
map_reduce/core/data_source.py
HuynhThanhQuan/graph-network
e429a641e7baecad9765700cac580cfbdedbe1bd
[ "MIT" ]
null
null
null
import os from time import time import pandas as pd from sqlalchemy import create_engine import logging logger = logging.getLogger(__name__) logger.setLevel(logging.INFO)
35.109589
106
0.587593
a37e9163f756c5b933aa7522cfc07f57edae5c1e
3,431
py
Python
setup.py
michael-borisov/django-omnibus
3275ae41dcad5a140433f0bfcea5961dc837e913
[ "BSD-3-Clause" ]
null
null
null
setup.py
michael-borisov/django-omnibus
3275ae41dcad5a140433f0bfcea5961dc837e913
[ "BSD-3-Clause" ]
4
2020-08-19T08:39:55.000Z
2021-03-31T08:23:26.000Z
setup.py
radiosilence/django-omnibus
c31337306c601e75fbdac9d6b9b62dcc980e04f5
[ "BSD-3-Clause" ]
null
null
null
import codecs import os import sys from setuptools import setup, find_packages from setuptools.command.test import test as TestCommand test_requires = [ 'pytest>=2.5.2', 'pytest-cov>=1.6', 'pytest-flakes>=0.2', 'pytest-pep8>=1.0.5', 'pytest-django>=2.6', 'mock==1.0.1', 'pep8==1.4.6' ] i...
27.669355
86
0.575051
a37f3e393c9a970f74e1fb50bf59be6bc0954abc
504
py
Python
scripts/tests/snapshots/snap_etc_test.py
Duroktar/Wolf
c192d5c27eb2098e440f7726eb1bff40ed004db5
[ "Apache-2.0" ]
105
2018-02-07T22:07:47.000Z
2022-03-31T18:16:47.000Z
scripts/tests/snapshots/snap_etc_test.py
Duroktar/Wolf
c192d5c27eb2098e440f7726eb1bff40ed004db5
[ "Apache-2.0" ]
57
2018-02-07T23:07:41.000Z
2021-11-21T17:14:06.000Z
scripts/tests/snapshots/snap_etc_test.py
Duroktar/Wolf
c192d5c27eb2098e440f7726eb1bff40ed004db5
[ "Apache-2.0" ]
10
2018-02-24T23:44:51.000Z
2022-03-02T07:52:27.000Z
# -*- coding: utf-8 -*- # snapshottest: v1 - https://goo.gl/zC4yUc from __future__ import unicode_literals from snapshottest import Snapshot snapshots = Snapshot() snapshots['test_etc 1'] = '[{"lineno": 2, "value": "tup = (1, 2, 3)"}, {"lineno": 3, "source": ["tup\\n"], "value": "(1, 2, 3)"}, {"lineno": 5, "value":...
45.818182
335
0.56746
a37f43b419e3def4e72bb772a8952c0f709cee66
1,823
py
Python
config.py
greatwallet/cosypose
e72ce7d521ef61870daef267cbbe65aaebe9d24d
[ "MIT" ]
null
null
null
config.py
greatwallet/cosypose
e72ce7d521ef61870daef267cbbe65aaebe9d24d
[ "MIT" ]
null
null
null
config.py
greatwallet/cosypose
e72ce7d521ef61870daef267cbbe65aaebe9d24d
[ "MIT" ]
null
null
null
import cosypose import os import yaml from joblib import Memory from pathlib import Path import getpass import socket import torch.multiprocessing torch.multiprocessing.set_sharing_strategy('file_system') hostname = socket.gethostname() username = getpass.getuser() PROJECT_ROOT = Path(cosypose.__file__)....
30.383333
88
0.765222
a37f76a50ac5297fbe0ae2e72f8f20c6b13bb7e0
2,761
py
Python
2018/16/main.py
zelane/advent-of-code-2016
72ebda3ec4eca4d1921dd8d94f2f84bbd0566fc5
[ "MIT" ]
null
null
null
2018/16/main.py
zelane/advent-of-code-2016
72ebda3ec4eca4d1921dd8d94f2f84bbd0566fc5
[ "MIT" ]
null
null
null
2018/16/main.py
zelane/advent-of-code-2016
72ebda3ec4eca4d1921dd8d94f2f84bbd0566fc5
[ "MIT" ]
null
null
null
from copy import copy import re opts = [ "addr", "addi", "mulr", "muli", "banr", "bani", "borr", "bori", "setr", "seti", "gtir", "gtri", "gtrr", "eqir", "eqri", "eqrr" ] inputs = [] program = [] parse_mem = lambda s: list(map(int, re.findall(r"[0-9]", s))) parse_params = lambda s: list(map(int, s.split(" ")...
23.801724
75
0.522637
a382674b28c095d002534f7e5a89fab99c7987b3
2,700
py
Python
streamlit/About.py
sarthak815/sage2therescue
b4bc38731a2b43866c545560e850cdddd85a0852
[ "MIT" ]
null
null
null
streamlit/About.py
sarthak815/sage2therescue
b4bc38731a2b43866c545560e850cdddd85a0852
[ "MIT" ]
null
null
null
streamlit/About.py
sarthak815/sage2therescue
b4bc38731a2b43866c545560e850cdddd85a0852
[ "MIT" ]
1
2022-03-04T09:31:18.000Z
2022-03-04T09:31:18.000Z
import streamlit as st
117.391304
1,320
0.802963
a3842c6138c7e752e05c72628b0129a00a3d511f
1,617
py
Python
tests/test_reduce_sum.py
gavinuhma/tf-encrypted
4e18d78a151bbe91489a1773fb839b889ff5b460
[ "Apache-2.0" ]
3
2018-10-18T19:36:02.000Z
2020-07-05T19:46:23.000Z
tests/test_reduce_sum.py
dropoutlabs/tf-encrypted
48c9dc7419163425e736ad05bb19980d134fc851
[ "Apache-2.0" ]
null
null
null
tests/test_reduce_sum.py
dropoutlabs/tf-encrypted
48c9dc7419163425e736ad05bb19980d134fc851
[ "Apache-2.0" ]
null
null
null
# pylint: disable=missing-docstring import unittest import numpy as np import tensorflow as tf import tf_encrypted as tfe if __name__ == '__main__': unittest.main()
24.134328
54
0.650588
a38463fb4d443f7e3aa2457876c06216a04ae227
1,010
py
Python
tests/test_nodes.py
simonzabrocki/GraphModels
b43e44a189d663364ae08de9a1d1305320854d63
[ "MIT" ]
null
null
null
tests/test_nodes.py
simonzabrocki/GraphModels
b43e44a189d663364ae08de9a1d1305320854d63
[ "MIT" ]
null
null
null
tests/test_nodes.py
simonzabrocki/GraphModels
b43e44a189d663364ae08de9a1d1305320854d63
[ "MIT" ]
null
null
null
import pytest from GraphModels.models.Sarah.model_agricultural_water import AgriculturalWaterNodes from GraphModels.models.Sarah.model_freshwater_available import FreshwaterAvailableNodes from GraphModels.models.Sarah.model_municipal_water import MunicipalWaterNodes nodes_list = AgriculturalWaterNodes + FreshwaterAv...
37.407407
116
0.773267
a3859a2bc6f5180117d2aa59a1b851252ca8c8a5
1,350
py
Python
backend/telegram/methods/messages_and_media/get_updated_message_entity_types.py
appheap/social-media-analyzer
0f9da098bfb0b4f9eb38e0244aa3a168cf97d51c
[ "Apache-2.0" ]
5
2021-09-11T22:01:15.000Z
2022-03-16T21:33:42.000Z
backend/telegram/methods/messages_and_media/get_updated_message_entity_types.py
iamatlasss/social-media-analyzer
429d1d2bbd8bfce80c50c5f8edda58f87ace668d
[ "Apache-2.0" ]
null
null
null
backend/telegram/methods/messages_and_media/get_updated_message_entity_types.py
iamatlasss/social-media-analyzer
429d1d2bbd8bfce80c50c5f8edda58f87ace668d
[ "Apache-2.0" ]
3
2022-01-18T11:06:22.000Z
2022-02-26T13:39:28.000Z
from django.db import transaction from db.scaffold import Scaffold from typing import List from telegram import models as tg_models from pyrogram import types
32.926829
92
0.565926
a387303aea958c01ac561cbc1d4a035d79ef4112
486
py
Python
app/user_api/user_api.py
Basselbi/hikma-health-backend
0f891821a04aa103fff62097443bd585bc342dbc
[ "MIT" ]
null
null
null
app/user_api/user_api.py
Basselbi/hikma-health-backend
0f891821a04aa103fff62097443bd585bc342dbc
[ "MIT" ]
null
null
null
app/user_api/user_api.py
Basselbi/hikma-health-backend
0f891821a04aa103fff62097443bd585bc342dbc
[ "MIT" ]
null
null
null
from flask import Blueprint, request, jsonify from web_util import assert_data_has_keys from users.user import User user_api = Blueprint('users_api', __name__, url_prefix='/api/user')
34.714286
81
0.73251