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
41c7c36420889797027869260f59634279ae7c65
386
py
Python
pw_manager/ui/settings/settings_screen.py
DestinyofYeet/PasswordManagerV2
e70e90f262426f097e902f8e64d2b751717f8900
[ "MIT" ]
null
null
null
pw_manager/ui/settings/settings_screen.py
DestinyofYeet/PasswordManagerV2
e70e90f262426f097e902f8e64d2b751717f8900
[ "MIT" ]
null
null
null
pw_manager/ui/settings/settings_screen.py
DestinyofYeet/PasswordManagerV2
e70e90f262426f097e902f8e64d2b751717f8900
[ "MIT" ]
null
null
null
from pw_manager.utils import utils, constants from pw_manager.ui.settings.color import color from YeetsMenu.menu import Menu from YeetsMenu.option import Option def show(): utils.clear_screen() menu = Menu(utils.get_noice_text("Settings"), colors=constants.colors) menu.add_selectable(Option("Color sett...
24.125
91
0.76943
0
0
0
0
0
0
0
0
26
0.067358
41c855c0455a1e213ee8f4c1aed1a04581517581
16,416
py
Python
bundestagger/bundestag/models.py
stefanw/Bundestagger
14787cf18622d0330a94696981bd28eaa8ba0f3a
[ "MIT" ]
3
2018-03-27T10:29:31.000Z
2021-02-28T21:35:27.000Z
bundestagger/bundestag/models.py
stefanw/Bundestagger
14787cf18622d0330a94696981bd28eaa8ba0f3a
[ "MIT" ]
null
null
null
bundestagger/bundestag/models.py
stefanw/Bundestagger
14787cf18622d0330a94696981bd28eaa8ba0f3a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import datetime from difflib import SequenceMatcher import re from django.db import models from django.db.models import Q from django.conf import settings from django.core.urlresolvers import reverse from django.conf import settings import django.dispatch from django.template.defaultfilters imp...
36.15859
249
0.596308
15,650
0.952932
0
0
2,110
0.128478
0
0
1,769
0.107715
41c87d04befa3b08aff049a14265e8461d8d9c45
2,181
py
Python
rubikscubennnsolver/combinatorial.py
dwalton76/rubiks-cube-NxNxN-solver
db42aeacca81366dba87ef475274ffb99645193d
[ "MIT" ]
59
2017-04-29T15:19:29.000Z
2022-03-18T22:17:20.000Z
rubikscubennnsolver/combinatorial.py
dwalton76/rubiks-cube-NxNxN-solver
db42aeacca81366dba87ef475274ffb99645193d
[ "MIT" ]
44
2017-05-25T00:05:31.000Z
2022-03-23T22:39:34.000Z
rubikscubennnsolver/combinatorial.py
dwalton76/rubiks-cube-NxNxN-solver
db42aeacca81366dba87ef475274ffb99645193d
[ "MIT" ]
19
2017-06-17T00:32:47.000Z
2021-12-18T00:03:56.000Z
""" https://en.wikipedia.org/wiki/Combinatorial_number_system The code below is no longer used but am saving it for a rainy day """ # standard libraries import math from typing import List def choose(a: int, b: int) -> int: """ >>> choose(23, 8) 490314 >>> choose(9, 6) 84 >>> choose(8, 5) ...
15.919708
79
0.497478
0
0
0
0
0
0
0
0
970
0.44475
41c8b05fb5813f637c5e573303e9ec8ee0854eb2
149
py
Python
homework_day_3/6.py
wxz896446511/Manyu
5974ba3a3f27fbaf53bf9f876150ff764a70ac46
[ "Apache-2.0" ]
4
2018-09-26T00:48:02.000Z
2020-08-21T02:06:59.000Z
homework_day_3/6.py
wxz896446511/Manyu
5974ba3a3f27fbaf53bf9f876150ff764a70ac46
[ "Apache-2.0" ]
null
null
null
homework_day_3/6.py
wxz896446511/Manyu
5974ba3a3f27fbaf53bf9f876150ff764a70ac46
[ "Apache-2.0" ]
1
2020-08-21T02:07:04.000Z
2020-08-21T02:07:04.000Z
s1=0 s2=0 n=1 m=50000 while n<50001: s1=s1+1/(n*1.0) n+=1 while m>0: s2=s2+1/(m*1.0) m=m-1 print('s1='+str(s1)) print('s2='+str(s2))
11.461538
20
0.516779
0
0
0
0
0
0
0
0
10
0.067114
41c9205a05089b2cfa8d6a14c30a8d7f603ca089
835
py
Python
assignments/a3/constructBinaryTreeFromPreorderAndInorderTraversal.py
jcdiv47/geekbang-algorithms
38dae85aeadb684b2c44945bd07a32cdede4ad5a
[ "MIT" ]
null
null
null
assignments/a3/constructBinaryTreeFromPreorderAndInorderTraversal.py
jcdiv47/geekbang-algorithms
38dae85aeadb684b2c44945bd07a32cdede4ad5a
[ "MIT" ]
null
null
null
assignments/a3/constructBinaryTreeFromPreorderAndInorderTraversal.py
jcdiv47/geekbang-algorithms
38dae85aeadb684b2c44945bd07a32cdede4ad5a
[ "MIT" ]
null
null
null
""" Leetcode(https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/ )""" # Definition for a binary tree node. class TreeNode: def __init__(self, val=0, left=None, right=None): self.val = val self.left = left self.right = right class Solution: def bui...
29.821429
97
0.603593
685
0.820359
0
0
0
0
0
0
182
0.217964
41c945a668d50c919e3c2f44477e14432d43dec2
1,292
py
Python
appengine/swarming/test_env.py
stefb965/luci-py
e0a8a5640c4104e5c90781d833168aa8a8d1f24d
[ "Apache-2.0" ]
1
2017-10-30T15:08:10.000Z
2017-10-30T15:08:10.000Z
appengine/swarming/test_env.py
stefb965/luci-py
e0a8a5640c4104e5c90781d833168aa8a8d1f24d
[ "Apache-2.0" ]
1
2022-03-02T11:45:18.000Z
2022-03-02T11:45:18.000Z
appengine/swarming/test_env.py
stefb965/luci-py
e0a8a5640c4104e5c90781d833168aa8a8d1f24d
[ "Apache-2.0" ]
1
2021-07-23T15:32:55.000Z
2021-07-23T15:32:55.000Z
# Copyright 2013 The LUCI Authors. All rights reserved. # Use of this source code is governed under the Apache License, Version 2.0 # that can be found in the LICENSE file. import os import sys # swarming/ APP_DIR = os.path.dirname(os.path.realpath(os.path.abspath(__file__))) def init_symlinks(root): """Adds supp...
28.711111
76
0.681889
0
0
0
0
0
0
0
0
596
0.4613
41cb04f14dbe73f40c68a5e989b2ab363ee6874c
3,415
py
Python
tiddlywebplugins/tiddlyspace/template.py
TiddlySpace/tiddlyspace
5f2139340d2d9e3a37068b5c58ecb2e599d798b8
[ "BSD-3-Clause" ]
32
2015-01-04T10:54:29.000Z
2022-01-22T16:45:24.000Z
tiddlywebplugins/tiddlyspace/template.py
TiddlySpace/tiddlyspace
5f2139340d2d9e3a37068b5c58ecb2e599d798b8
[ "BSD-3-Clause" ]
4
2016-12-08T14:04:26.000Z
2018-02-20T10:23:33.000Z
tiddlywebplugins/tiddlyspace/template.py
TiddlySpace/tiddlyspace
5f2139340d2d9e3a37068b5c58ecb2e599d798b8
[ "BSD-3-Clause" ]
14
2015-01-19T23:18:20.000Z
2021-06-22T01:10:08.000Z
""" Send a template with some default data. """ from jinja2 import TemplateNotFound from tiddlywebplugins.virtualhosting import original_server_host_url from tiddlyweb import control from tiddlyweb.model.tiddler import Tiddler from tiddlyweb.model.recipe import Recipe from tiddlyweb.store import StoreError from tidd...
38.370787
78
0.585652
0
0
0
0
0
0
0
0
476
0.139385
41cb1605a676dad204255fde9474a9b324ee8353
588
py
Python
test.py
yanzhenxing123/illegal_fund_raising_forecast
dcff8f3d73c1f1ea3548e8d25afc9fe5233e3f64
[ "Apache-2.0" ]
null
null
null
test.py
yanzhenxing123/illegal_fund_raising_forecast
dcff8f3d73c1f1ea3548e8d25afc9fe5233e3f64
[ "Apache-2.0" ]
null
null
null
test.py
yanzhenxing123/illegal_fund_raising_forecast
dcff8f3d73c1f1ea3548e8d25afc9fe5233e3f64
[ "Apache-2.0" ]
null
null
null
""" @Author: yanzx @Date: 2021-08-10 09:27:55 @Desc: """ import time li = [str(i) + "闫振兴" for i in range(1000000)] li_s = set(li) start_time1 = time.time() if "100000闫振兴" in li: print(time.time() - start_time1) start_time2 = time.time() if "100000闫振兴" in li_s: print(time.time() - start_time2) import ...
14
59
0.664966
0
0
0
0
0
0
0
0
170
0.274194
68b72c53435e9aa9b4922a013905036e51730503
7,953
py
Python
mispro/mispro.py
dzubke/speech-lite
65f83ac2b7551650820f079ce5152741f2a6fdb8
[ "Apache-2.0" ]
null
null
null
mispro/mispro.py
dzubke/speech-lite
65f83ac2b7551650820f079ce5152741f2a6fdb8
[ "Apache-2.0" ]
null
null
null
mispro/mispro.py
dzubke/speech-lite
65f83ac2b7551650820f079ce5152741f2a6fdb8
[ "Apache-2.0" ]
null
null
null
# these functions help to detect mispronunciations using editops # # # standard libs import argparse # third-party libs import Levenshtein as lev # local libs from speech.utils.data_helpers import path_to_id from speech.utils.io import read_data_json def main(hypo_path:str, tgt_path:str, eval_phn_path:str): """T...
36.481651
108
0.592355
0
0
0
0
0
0
0
0
2,810
0.353326
68b8e7dbe442c7b6fd61ce801dacded91cd54f52
1,057
py
Python
tests/runtests.py
joshuagl/in-toto
9fb038fd7f3521df4ba358180de1e2bd2b8d2430
[ "Apache-2.0" ]
1
2020-02-02T23:29:15.000Z
2020-02-02T23:29:15.000Z
tests/runtests.py
MikailSeremet/in-toto
2052ba55c5351c690ee66807ca332deee44cf1cf
[ "Apache-2.0" ]
null
null
null
tests/runtests.py
MikailSeremet/in-toto
2052ba55c5351c690ee66807ca332deee44cf1cf
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ <Program Name> runtests.py <Author> Santiago Torres <santiago@nyu.edu> Lukas Puehringer <lukas.puehringer@nyu.edu> <Started> May 23, 2016 <Copyright> See LICENSE for licensing information. <Purpose> Script to search, load and run in-toto tests using the Python `unittest` fram...
21.14
74
0.69631
0
0
0
0
0
0
0
0
577
0.545885
68b8f74ca63a7bf7763bdfc88965696eef401268
1,980
py
Python
pipelines/utils/conv_to_json.py
cds-mipt/HPointLoc
b346c10928939ddc1fe5840aef5085418e3aa0ad
[ "MIT" ]
2
2021-05-30T04:04:51.000Z
2022-02-21T09:11:27.000Z
pipelines/utils/conv_to_json.py
cds-mipt/HPointLoc
b346c10928939ddc1fe5840aef5085418e3aa0ad
[ "MIT" ]
null
null
null
pipelines/utils/conv_to_json.py
cds-mipt/HPointLoc
b346c10928939ddc1fe5840aef5085418e3aa0ad
[ "MIT" ]
null
null
null
from tqdm import tqdm import h5py from os.path import join import os import numpy as np from pathlib import Path import json import numpy as np MAXDEPTH = 10 def conv_to_json(dataset_root, path_to_npz_folder, output_dir): root_datasets = Path(dataset_root).parent dataset_path = join(root_datasets, 'HPointLoc...
36.666667
84
0.609596
0
0
0
0
0
0
0
0
168
0.084848
68b95b6093337df79dd5bbb71ce078550e408fb4
709
py
Python
internet_SpeedTest/main.py
Mark-Kinyua/python_public
25c4eff3a6f93c35a949f94a2f9c3df3202a3113
[ "MIT" ]
null
null
null
internet_SpeedTest/main.py
Mark-Kinyua/python_public
25c4eff3a6f93c35a949f94a2f9c3df3202a3113
[ "MIT" ]
null
null
null
internet_SpeedTest/main.py
Mark-Kinyua/python_public
25c4eff3a6f93c35a949f94a2f9c3df3202a3113
[ "MIT" ]
null
null
null
import speedtest # Lets test Zuku. # Its getting frustrating now.... test = speedtest.Speedtest() print("Loading server list...") test.get_servers() # Get list of servers print("Getting best server...") best = test.get_best_server() print(f"Found: {best['host']} located in : {best['country']}") print("Performing ...
25.321429
90
0.712271
0
0
0
0
0
0
0
0
433
0.610719
68b9f1d61e16d200b4bd96fbc017a9c896eef126
1,020
py
Python
tests/test_settings.py
nerdoc/django-unicorn
e512b8f64f5c276a78127db9a05d9d5c042232d5
[ "MIT" ]
1
2021-12-21T16:20:49.000Z
2021-12-21T16:20:49.000Z
tests/test_settings.py
teury/django-unicorn
5e9142b8a7e13b862ece419d567e805cc783b517
[ "MIT" ]
null
null
null
tests/test_settings.py
teury/django-unicorn
5e9142b8a7e13b862ece419d567e805cc783b517
[ "MIT" ]
1
2022-02-10T07:47:01.000Z
2022-02-10T07:47:01.000Z
from django_unicorn.settings import get_cache_alias, get_serial_enabled, get_settings def test_settings_cache_alias(settings): settings.UNICORN["CACHE_ALIAS"] = "unicorn_cache" expected = "unicorn_cache" actual = get_cache_alias() assert expected == actual def test_settings_legacy(settings): se...
29.142857
85
0.721569
0
0
0
0
0
0
0
0
249
0.244118
68ba116787e1a4e63e9786fddd4525fabeef6657
104
py
Python
desafio21.py
kelson-gs/Desafios-python
b40867a331c0dab84b4ceff5391c5dcd07c42da2
[ "MIT" ]
null
null
null
desafio21.py
kelson-gs/Desafios-python
b40867a331c0dab84b4ceff5391c5dcd07c42da2
[ "MIT" ]
null
null
null
desafio21.py
kelson-gs/Desafios-python
b40867a331c0dab84b4ceff5391c5dcd07c42da2
[ "MIT" ]
null
null
null
import pygame pygame.mixer.init() pygame.mixer.music.load('anzenchitai.mp3') pygame.mixer.music.play()
17.333333
42
0.778846
0
0
0
0
0
0
0
0
17
0.163462
68bb1ca8c41ec71774a259dc4b023dd208cc1eb5
5,208
py
Python
timemarker/timer.py
davidr/python-timemarker
16fc4d4f9d6b534b94005169c977ed143f4f9dc5
[ "MIT" ]
null
null
null
timemarker/timer.py
davidr/python-timemarker
16fc4d4f9d6b534b94005169c977ed143f4f9dc5
[ "MIT" ]
1
2017-10-31T03:54:26.000Z
2017-11-01T03:01:43.000Z
timemarker/timer.py
davidr/python-timemarker
16fc4d4f9d6b534b94005169c977ed143f4f9dc5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import logging from operator import itemgetter from typing import List, Tuple, Callable, Dict # TODO(davidr) is it faster to do this here or to save the function as an attribute of the # class instance? from timeit import default_timer from collections import defaultdict _logger = logging.ge...
31.756098
100
0.594278
4,867
0.934524
0
0
541
0.103879
0
0
1,967
0.377688
68bb5d0db0e0b727efc6187a6b67ad8cb5bad0f9
1,151
py
Python
boundfield_renderer/registry.py
bmampaey/django-form-renderer
b56eecb16bb8f7a47667aec8baf1ffcc0cd5b776
[ "MIT" ]
1
2020-10-09T15:27:47.000Z
2020-10-09T15:27:47.000Z
boundfield_renderer/registry.py
bmampaey/django-form-renderer
b56eecb16bb8f7a47667aec8baf1ffcc0cd5b776
[ "MIT" ]
null
null
null
boundfield_renderer/registry.py
bmampaey/django-form-renderer
b56eecb16bb8f7a47667aec8baf1ffcc0cd5b776
[ "MIT" ]
null
null
null
import inspect from collections import UserDict class RendererRegistry(UserDict): ''' Registry for the form field renderers. A renderer is a function that takes a context dict and returns the html representation of the form field, for example the render method of a Template instance. ''' def __getitem__(s...
25.577778
75
0.741964
1,101
0.95656
0
0
0
0
0
0
710
0.616855
68bbf627a9afc37939a7f82cf9c685bca13e0e51
10,068
py
Python
salika/views/django_admin_log_views.py
BarisSari/django_crud
ce9586c10da2f865d29d9a18e9ff5582abe5e3a0
[ "MIT" ]
null
null
null
salika/views/django_admin_log_views.py
BarisSari/django_crud
ce9586c10da2f865d29d9a18e9ff5582abe5e3a0
[ "MIT" ]
null
null
null
salika/views/django_admin_log_views.py
BarisSari/django_crud
ce9586c10da2f865d29d9a18e9ff5582abe5e3a0
[ "MIT" ]
null
null
null
from django.views.generic.detail import DetailView from django.views.generic.edit import CreateView, UpdateView, DeleteView from django.views.generic.list import ListView from ..models import DjangoAdminLog from ..forms import DjangoAdminLogForm from django.urls import reverse_lazy from django.urls import reverse from ...
37.707865
124
0.723977
9,706
0.964044
0
0
0
0
0
0
653
0.064859
68bc0a2004e16535e83b92fe67c14274b4673fe7
353
py
Python
service/config.py
ssunqf/mana
eff753f83b2129e3537dc3cee3952cb61f55fea0
[ "BSD-3-Clause" ]
null
null
null
service/config.py
ssunqf/mana
eff753f83b2129e3537dc3cee3952cb61f55fea0
[ "BSD-3-Clause" ]
null
null
null
service/config.py
ssunqf/mana
eff753f83b2129e3537dc3cee3952cb61f55fea0
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3.6 # -*- coding: utf-8 -*- import os from datetime import timedelta basedir = os.path.abspath(os.path.dirname(__file__)) class Config(object): SECRET_KEY = 'private key' SEND_FILE_MAX_AGE_DEFAULT = timedelta(hours=1) CACHE_TYPE = 'redis' CACHE_DEFAULT_TIMEOUT = 240 * 60 * 60 ...
22.0625
52
0.70255
207
0.586402
0
0
0
0
0
0
78
0.220963
68bd12edd81d237215484f0a679fa547355b6ddd
5,132
py
Python
tests/test_algolia_doc_manager.py
algolia/mongo-connector
d668e9fb556abe63916ba0594e035d2f34880b1c
[ "Apache-2.0" ]
15
2015-01-06T08:10:21.000Z
2017-03-12T23:06:43.000Z
tests/test_algolia_doc_manager.py
algolia/mongo-connector
d668e9fb556abe63916ba0594e035d2f34880b1c
[ "Apache-2.0" ]
16
2015-03-11T09:28:33.000Z
2016-03-06T14:45:54.000Z
tests/test_algolia_doc_manager.py
algolia/mongo-connector
d668e9fb556abe63916ba0594e035d2f34880b1c
[ "Apache-2.0" ]
13
2015-03-21T13:39:10.000Z
2022-03-14T11:50:24.000Z
# Copyright 2013-2014 MongoDB, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writin...
38.298507
90
0.616329
4,119
0.802611
0
0
1,144
0.222915
0
0
1,480
0.288387
68bfdc92a00fb5b201a60c596f05590bb0c70edb
6,281
py
Python
File Man/note.py
splimter/Univ
f28723756616ffd212d1c59d5547240c694a2d24
[ "MIT" ]
null
null
null
File Man/note.py
splimter/Univ
f28723756616ffd212d1c59d5547240c694a2d24
[ "MIT" ]
null
null
null
File Man/note.py
splimter/Univ
f28723756616ffd212d1c59d5547240c694a2d24
[ "MIT" ]
null
null
null
import os import helpers as H # Cette function va afficher le menu def menu(): print("1- Ajouter un Etudiant") print("2- Ajouter un Matieres") print("3- Ajouter un Note") print("4- afficher la Moyenne d'un Etudiant") print("5- Modifie le numIns d'un Etudiant") print("6- suprimer une N...
27.915556
109
0.532559
717
0.114154
0
0
0
0
0
0
1,811
0.28833
68c4c2351edd365a050e5485ec101ebf7af1067c
3,214
py
Python
model/baa99_basemodel.py
USC3DLAB/learning-based-optimization
2f1563462de7920f6ba2624987ae1f419e05591e
[ "Apache-2.0" ]
null
null
null
model/baa99_basemodel.py
USC3DLAB/learning-based-optimization
2f1563462de7920f6ba2624987ae1f419e05591e
[ "Apache-2.0" ]
null
null
null
model/baa99_basemodel.py
USC3DLAB/learning-based-optimization
2f1563462de7920f6ba2624987ae1f419e05591e
[ "Apache-2.0" ]
4
2019-04-05T00:06:14.000Z
2021-04-29T03:32:47.000Z
# ___________________________________________________________________________ # # Pyomo: Python Optimization Modeling Objects # Copyright 2017 National Technology and Engineering Solutions of Sandia, LLC # Under the terms of Contract DE-NA0003525 with National Technology and # Engineering Solutions of Sandia, LLC...
26.783333
84
0.698195
0
0
0
0
0
0
0
0
1,146
0.356565
68c4d76626da0bce8c26017b492f398cab45c0ab
18,560
py
Python
GZP_GTO_QGIS/INSTALLATION/GeoTaskOrganizer/gto_point.py
msgis/swwat-gzp-template
080afbe9d49fb34ed60ba45654383d9cfca01e24
[ "MIT" ]
3
2019-06-18T15:28:09.000Z
2019-07-11T07:31:45.000Z
GZP_GTO_QGIS/INSTALLATION/GeoTaskOrganizer/gto_point.py
msgis/swwat-gzp-template
080afbe9d49fb34ed60ba45654383d9cfca01e24
[ "MIT" ]
2
2019-07-11T14:03:25.000Z
2021-02-08T16:14:04.000Z
GZP_GTO_QGIS/INSTALLATION/GeoTaskOrganizer/gto_point.py
msgis/swwat-gzp-template
080afbe9d49fb34ed60ba45654383d9cfca01e24
[ "MIT" ]
1
2019-06-12T11:07:37.000Z
2019-06-12T11:07:37.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- import sys # QDoubleValidator needs QValidator in qgis 3.4! from PyQt5.QtCore import Qt, QLocale, pyqtSignal from PyQt5.QtGui import QDoubleValidator from PyQt5.QtWidgets import QWidget, QLabel, QLineEdit, QHBoxLayout, QToolButton, QToolBar, QComboBox, QDoubleSpinBox from PyQ...
41.061947
154
0.563524
17,955
0.967142
0
0
0
0
0
0
2,146
0.115594
68c6139534bf7157139c6f49ef0d7f2bbafd28d8
318
py
Python
quokka/module_template/quokka_module_template/__init__.py
songshansitulv/quokka
5d031d419691285481ec045d42773ed713abdaf7
[ "BSD-3-Clause" ]
1,141
2015-02-19T12:21:16.000Z
2022-03-29T10:07:18.000Z
quokka/module_template/quokka_module_template/__init__.py
songshansitulv/quokka
5d031d419691285481ec045d42773ed713abdaf7
[ "BSD-3-Clause" ]
284
2015-02-23T01:03:55.000Z
2019-12-20T04:54:31.000Z
quokka/module_template/quokka_module_template/__init__.py
songshansitulv/quokka
5d031d419691285481ec045d42773ed713abdaf7
[ "BSD-3-Clause" ]
370
2015-02-19T10:15:19.000Z
2022-03-31T20:08:15.000Z
from .admin import UserView, TweetView def configure(app): app.admin.register( app.db.users, UserView, # category='User', name='User' ) app.admin.register( app.db.get_collection('tweets'), TweetView, # category='User', name='Tweets' )
17.666667
40
0.544025
0
0
0
0
0
0
0
0
58
0.18239
68c9488a495919a38f2ff870419c8d832b14221b
11,909
py
Python
model/loss.py
arthurlirui/MVSDF
0b1014682e9b5cd5a92fea715d26ebc9845da4bf
[ "MIT" ]
76
2022-02-11T12:04:49.000Z
2022-03-30T10:43:59.000Z
model/loss.py
arthurlirui/MVSDF
0b1014682e9b5cd5a92fea715d26ebc9845da4bf
[ "MIT" ]
1
2022-03-22T12:57:43.000Z
2022-03-22T12:57:43.000Z
model/loss.py
arthurlirui/MVSDF
0b1014682e9b5cd5a92fea715d26ebc9845da4bf
[ "MIT" ]
4
2022-02-13T11:47:50.000Z
2022-03-02T12:07:21.000Z
from numpy.lib.function_base import diff import torch from torch import nn from torch.nn import functional as F from itertools import accumulate import numpy as np import os import importlib from utils.my_utils import carving_t, carving_t2, FeatExt, get_in_range, idx_cam2img, idx_world2cam, normalize_for_grid...
54.131818
237
0.591485
11,339
0.952137
0
0
0
0
0
0
1,515
0.127215
68c9514528013da4b21120807688c8993cf15c6d
28
py
Python
__init__.py
AbhiK002/Matrix
2d83f08877dccba9e4c710bd5fb65f613848d63f
[ "MIT" ]
2
2022-02-11T04:39:21.000Z
2022-02-12T15:50:35.000Z
__init__.py
AbhiK002/Matrix
2d83f08877dccba9e4c710bd5fb65f613848d63f
[ "MIT" ]
null
null
null
__init__.py
AbhiK002/Matrix
2d83f08877dccba9e4c710bd5fb65f613848d63f
[ "MIT" ]
null
null
null
from .matrix import Matrix
9.333333
26
0.785714
0
0
0
0
0
0
0
0
0
0
68c9c5b05677eeb8639ae06e7dceaa64258bc6fc
645
py
Python
database/tables/transaction.py
gyani91/data-engineering
cdf389b42c8b715e5d8db8ac2feaf42919a8668b
[ "MIT" ]
null
null
null
database/tables/transaction.py
gyani91/data-engineering
cdf389b42c8b715e5d8db8ac2feaf42919a8668b
[ "MIT" ]
null
null
null
database/tables/transaction.py
gyani91/data-engineering
cdf389b42c8b715e5d8db8ac2feaf42919a8668b
[ "MIT" ]
null
null
null
from sqlalchemy import Column, Integer, String, Date from run import db class Transaction(db.Model): __tablename__ = "transaction" id = Column(Integer, primary_key=True, autoincrement=True) itemid = Column(String) locationid = Column(String) transactiondate = Column(Date) transferquantity = Co...
30.714286
78
0.708527
570
0.883721
0
0
0
0
0
0
31
0.048062
68c9e87b18bf9b5cf5cffc96cfae86418021989e
60
py
Python
Data/Write/Write pickle.py
fraunhofer-iais/IAIS-Python-Snippets
a3ee610d6270cda2c891688851696c34831ffa2b
[ "MIT" ]
null
null
null
Data/Write/Write pickle.py
fraunhofer-iais/IAIS-Python-Snippets
a3ee610d6270cda2c891688851696c34831ffa2b
[ "MIT" ]
null
null
null
Data/Write/Write pickle.py
fraunhofer-iais/IAIS-Python-Snippets
a3ee610d6270cda2c891688851696c34831ffa2b
[ "MIT" ]
null
null
null
### Pickle the data pickle.dump(data, open("data.p", "wb"))
20
39
0.633333
0
0
0
0
0
0
0
0
31
0.516667
68c9ea4c15db64ff1e75a845e1e422b9fc6a1a9f
682
py
Python
list-users/list-users.py
nl-hugo/power-bi-snippets
5d63f88526b8dc4241dd26301b4b8fd72096c822
[ "MIT" ]
null
null
null
list-users/list-users.py
nl-hugo/power-bi-snippets
5d63f88526b8dc4241dd26301b4b8fd72096c822
[ "MIT" ]
null
null
null
list-users/list-users.py
nl-hugo/power-bi-snippets
5d63f88526b8dc4241dd26301b4b8fd72096c822
[ "MIT" ]
null
null
null
import argparse from bs4 import BeautifulSoup def list_users(file_name): with open(file_name, 'r', encoding='utf-8') as f: soup = BeautifulSoup(f.read(), 'html.parser') for user in soup.find_all('li', class_='accessListData'): user_name = user.find(class_='username').string ...
27.28
75
0.64956
0
0
0
0
0
0
0
0
149
0.218475
68cf170ee8230ba31ec966d1a0949d9a8190f908
6,614
py
Python
module.py
Afvanjaffer/Image-translation-
a7b379ddd1fb3fa21a6f0a41fdb1ed986b5c68d7
[ "MIT" ]
9
2019-02-10T20:23:21.000Z
2021-03-04T04:15:49.000Z
module.py
Afvanjaffer/Image-translation-
a7b379ddd1fb3fa21a6f0a41fdb1ed986b5c68d7
[ "MIT" ]
1
2020-05-07T05:55:24.000Z
2020-05-07T05:55:24.000Z
module.py
Afvanjaffer/Image-translation-
a7b379ddd1fb3fa21a6f0a41fdb1ed986b5c68d7
[ "MIT" ]
4
2018-07-14T08:03:27.000Z
2020-07-29T09:36:54.000Z
import tensorflow as tf def conv2d_layer( inputs, filters, kernel_size = [4, 4], strides = [2, 2], padding = 'same', activation = None, kernel_initializer = tf.truncated_normal_initializer(stddev = 0.02), name = None): conv_layer = tf.layers.conv2d( inputs = inputs, ...
42.127389
171
0.638948
0
0
0
0
0
0
0
0
672
0.101603
68d042d8038be826bddc190c99ee0038a473ba8a
260
py
Python
mayan/apps/django_gpg/runtime.py
darrenflexxu/Mayan-EDMS
6707365bfacd137e625ddc1b990168012246fa07
[ "Apache-2.0" ]
null
null
null
mayan/apps/django_gpg/runtime.py
darrenflexxu/Mayan-EDMS
6707365bfacd137e625ddc1b990168012246fa07
[ "Apache-2.0" ]
5
2021-03-19T22:59:52.000Z
2022-03-12T00:13:16.000Z
mayan/apps/django_gpg/runtime.py
Sumit-Kumar-Jha/mayan
5b7ddeccf080b9e41cc1074c70e27dfe447be19f
[ "Apache-2.0" ]
1
2020-07-29T21:03:27.000Z
2020-07-29T21:03:27.000Z
from django.utils.module_loading import import_string from .settings import setting_gpg_path SETTING_GPG_BACKEND = 'mayan.apps.django_gpg.classes.PythonGNUPGBackend' gpg_backend = import_string(SETTING_GPG_BACKEND)( binary_path=setting_gpg_path.value )
26
72
0.846154
0
0
0
0
0
0
0
0
50
0.192308
68d4f0dba4165b60a9f6a49e7dd00013f11a1692
335
py
Python
Oefeningen/standalone/set.py
Seviran/Python_3
e30ead250129d25bbc0a7ee2f6298775b2f4529a
[ "MIT" ]
null
null
null
Oefeningen/standalone/set.py
Seviran/Python_3
e30ead250129d25bbc0a7ee2f6298775b2f4529a
[ "MIT" ]
null
null
null
Oefeningen/standalone/set.py
Seviran/Python_3
e30ead250129d25bbc0a7ee2f6298775b2f4529a
[ "MIT" ]
null
null
null
math_students = {"Matthew", "Helen", "Prashant", "James", "Asparna"} biology_students = {"Jane", "Matthew", "Charlotte", "Mesut", "Oliver", "James"} # Union (All unique students) students_union = math_students | biology_students # Intersection (Students who are in both sets) students_intersection = math_students & bi...
37.222222
79
0.740299
0
0
0
0
0
0
0
0
165
0.492537
68d55b5aefd614b22b142233553491d7448b67bf
40,735
py
Python
src/core/train.py
spencerpomme/GSPNet
ff165de95ec0f258ba444ff343d18d812a066b8f
[ "MIT" ]
null
null
null
src/core/train.py
spencerpomme/GSPNet
ff165de95ec0f258ba444ff343d18d812a066b8f
[ "MIT" ]
null
null
null
src/core/train.py
spencerpomme/GSPNet
ff165de95ec0f258ba444ff343d18d812a066b8f
[ "MIT" ]
null
null
null
''' Copyright <2019> <COPYRIGHT Pingcheng Zhang> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, ...
33.037307
139
0.59455
0
0
0
0
0
0
0
0
16,608
0.407708
68d59a01d4c210fcbd52841f20fd474a440205a5
7,727
py
Python
tests/time_tests.py
ankpradh/parallel-composition-RE
8e1d1df8a27951445fd1d80e89febba89d275fdf
[ "MIT" ]
null
null
null
tests/time_tests.py
ankpradh/parallel-composition-RE
8e1d1df8a27951445fd1d80e89febba89d275fdf
[ "MIT" ]
null
null
null
tests/time_tests.py
ankpradh/parallel-composition-RE
8e1d1df8a27951445fd1d80e89febba89d275fdf
[ "MIT" ]
null
null
null
import sys import time import random sys.path.append("..") from pympler import asizeof from test_automata import * # For computing average runtimes def avg_tests(runs, test, string, test_num): test_avg_runs = runs test_Ptime = 0 test_Ctime = 0 if test.__name__ in ["test4", "test5"]: test_Sti...
30.662698
109
0.613045
0
0
0
0
0
0
0
0
1,906
0.246668
68d613cc70f67605e1ded6567d3363c8e7b337d4
501
py
Python
Python for zombies/Rest 0.py
ElptsJunior/Python
7347b38947b439afa392764aafe0a55f808530dd
[ "MIT" ]
null
null
null
Python for zombies/Rest 0.py
ElptsJunior/Python
7347b38947b439afa392764aafe0a55f808530dd
[ "MIT" ]
null
null
null
Python for zombies/Rest 0.py
ElptsJunior/Python
7347b38947b439afa392764aafe0a55f808530dd
[ "MIT" ]
null
null
null
'''start = 0 end = int ( input(' insert an value for conting')) # criando uma variavel indice que recebe o valor inteiro digitado# while start <= end : if end % 2 == 0: print (start) start = start +1 print('this number is par') else: print('this number is impar') ''' start = 0 end = int ...
20.04
66
0.616766
0
0
0
0
0
0
0
0
395
0.788423
68d6234592f2e3a24cd47ab684d14a6a36f999f3
4,815
py
Python
language/evm/hardhat-examples/compile_move.py
lxfind/move
2e7c37edada44436805e047dd26724a26c07635a
[ "Apache-2.0" ]
63
2021-12-22T10:17:18.000Z
2022-03-31T22:03:06.000Z
language/evm/hardhat-examples/compile_move.py
lxfind/move
2e7c37edada44436805e047dd26724a26c07635a
[ "Apache-2.0" ]
150
2021-11-04T20:16:14.000Z
2022-03-31T23:00:21.000Z
language/evm/hardhat-examples/compile_move.py
lxfind/move
2e7c37edada44436805e047dd26724a26c07635a
[ "Apache-2.0" ]
63
2021-11-04T19:32:56.000Z
2022-03-30T16:28:41.000Z
#!/usr/local/bin/python3 # This is a script to compile Move source code into artifacts that can be used for testing. # Copy this to the root of your hardhat project to use it. # # Note: this is a temporary solution that will be phased out once we implement the Move plugin. # # Move code should be stored within the `co...
27.672414
132
0.620561
0
0
0
0
0
0
0
0
1,455
0.302181
68d73f2fd34917de7803f28010db6b89758be818
443
py
Python
scripts/check_internet_con.py
prathimacode-hub/python-scripts-bible
7643f6324c9f771f573f254289d912d812fe2494
[ "MIT" ]
null
null
null
scripts/check_internet_con.py
prathimacode-hub/python-scripts-bible
7643f6324c9f771f573f254289d912d812fe2494
[ "MIT" ]
null
null
null
scripts/check_internet_con.py
prathimacode-hub/python-scripts-bible
7643f6324c9f771f573f254289d912d812fe2494
[ "MIT" ]
1
2021-05-14T10:18:09.000Z
2021-05-14T10:18:09.000Z
# Filename : check_internet_con.py # Author : Abhijit Kumar # Created : 29 Dec 2017 # Description : Just checks internet connection is works or not. #!/usr/bin/python3 import urllib2 def checkInternetConnectivity(): try: urllib2.urlopen("http://google.com", timeout=2) print("Working con...
21.095238
66
0.68623
0
0
0
0
0
0
0
0
232
0.523702
68d811e1eb8d333e27beb3d574db367c7c6dade8
326
py
Python
backend/src/baserow/contrib/database/api/fields/errors.py
OpenSourceMarketing/Baserow
5778059fde594a3b1838f7a964bc5060ab45bbad
[ "MIT" ]
null
null
null
backend/src/baserow/contrib/database/api/fields/errors.py
OpenSourceMarketing/Baserow
5778059fde594a3b1838f7a964bc5060ab45bbad
[ "MIT" ]
7
2021-03-19T12:07:13.000Z
2022-02-10T14:47:21.000Z
backend/src/baserow/contrib/database/api/fields/errors.py
OpenSourceMarketing/Baserow
5778059fde594a3b1838f7a964bc5060ab45bbad
[ "MIT" ]
null
null
null
from rest_framework.status import HTTP_404_NOT_FOUND ERROR_FIELD_DOES_NOT_EXIST = ( 'ERROR_FIELD_DOES_NOT_EXIST', HTTP_404_NOT_FOUND, 'The requested field does not exist.' ) ERROR_CANNOT_DELETE_PRIMARY_FIELD = 'ERROR_CANNOT_DELETE_PRIMARY_FIELD' ERROR_CANNOT_CHANGE_FIELD_TYPE = 'ERROR_CANNOT_CHANGE_FIELD_...
29.636364
71
0.837423
0
0
0
0
0
0
0
0
132
0.404908
68d9429f6da9f4047b22ecae607eeab851aaf188
253,493
py
Python
glasses/__init__.py
tonyfast/metallic-glasses
7ce019d0c8406e990836b88b9661839c3f1928cf
[ "BSD-3-Clause" ]
null
null
null
glasses/__init__.py
tonyfast/metallic-glasses
7ce019d0c8406e990836b88b9661839c3f1928cf
[ "BSD-3-Clause" ]
null
null
null
glasses/__init__.py
tonyfast/metallic-glasses
7ce019d0c8406e990836b88b9661839c3f1928cf
[ "BSD-3-Clause" ]
null
null
null
# coding: utf-8 # In[325]: __version__ = "0.0.1" __all__ = [] # In[8]: from time import sleep # In[22]: get_ipython().magic('ls /Users/tfast/Desktop/SLAC_MG_0716/') # In[23]: get_ipython().magic('ls /Users/tfast/Desktop/SLAC_MG_0716/Sample1/') # In[14]: get_ipython().magic( 'cat /Users/tfast/Desktop/...
823.029221
239,848
0.962326
0
0
0
0
0
0
0
0
250,367
0.987668
68d98076bb5b653763a5e9f475b2dcc2aac6d8ae
577
py
Python
agents.py
lukebabs/autosurf
858a268765bbe4f3ae48d38816597eef0754c6e4
[ "MIT" ]
1
2020-09-23T19:10:42.000Z
2020-09-23T19:10:42.000Z
agents.py
lukebabs/autosurf
858a268765bbe4f3ae48d38816597eef0754c6e4
[ "MIT" ]
null
null
null
agents.py
lukebabs/autosurf
858a268765bbe4f3ae48d38816597eef0754c6e4
[ "MIT" ]
null
null
null
import os, random def get_user_agents(): with open('./data/user-agents.txt') as file: user_agents = [site.strip() for site in file] #function to turn the txt file content into list return user_agents #new list of user_agents in list format class UserAgent(): def __init__(self, user_age...
28.85
106
0.681109
204
0.353553
0
0
0
0
0
0
121
0.209705
68d99f26e2d322b5f1410136dc8d32fdc852ce2d
4,497
py
Python
tuiuiu/tuiuiuredirects/views.py
caputomarcos/tuiuiu.io
d8fb57cf95487e7fe1454b2130ef18acc916da46
[ "BSD-3-Clause" ]
3
2019-08-08T09:09:35.000Z
2020-12-15T18:04:17.000Z
tuiuiu/tuiuiuredirects/views.py
caputomarcos/tuiuiu.io
d8fb57cf95487e7fe1454b2130ef18acc916da46
[ "BSD-3-Clause" ]
null
null
null
tuiuiu/tuiuiuredirects/views.py
caputomarcos/tuiuiu.io
d8fb57cf95487e7fe1454b2130ef18acc916da46
[ "BSD-3-Clause" ]
1
2017-09-09T20:10:40.000Z
2017-09-09T20:10:40.000Z
from __future__ import absolute_import, unicode_literals from django.core.urlresolvers import reverse from django.shortcuts import get_object_or_404, redirect, render from django.utils.translation import ugettext as _ from django.views.decorators.vary import vary_on_headers from tuiuiu.utils.pagination import paginat...
35.690476
103
0.681565
0
0
0
0
3,769
0.838114
0
0
888
0.197465
68d9c2874c4137a2cc2a81b3b6c8979882134cbf
2,639
py
Python
fd_lib/feature_engineering.py
fdavidsen/Personal-Data-Science-Projects
4167744295c96e3f984830b6203428ea41b111e7
[ "MIT" ]
null
null
null
fd_lib/feature_engineering.py
fdavidsen/Personal-Data-Science-Projects
4167744295c96e3f984830b6203428ea41b111e7
[ "MIT" ]
null
null
null
fd_lib/feature_engineering.py
fdavidsen/Personal-Data-Science-Projects
4167744295c96e3f984830b6203428ea41b111e7
[ "MIT" ]
null
null
null
from itertools import combinations from sklearn.base import BaseEstimator from sklearn.base import TransformerMixin class BestPair: ''' Find out the feature pairs with the highest correlation (positive and negative). ''' def __init__(self, X, y, how='product'): self.X = X self.y = y ...
33.405063
102
0.530125
2,504
0.948844
0
0
0
0
0
0
317
0.120121
68da0b7e3b7b6e70fde041111bd397e4346b2c04
3,778
py
Python
benchmarks/cocompilation_benchmarks.py
SanggunLee/edgetpu
d3cf166783265f475c1ddba5883e150ee84f7bfe
[ "Apache-2.0" ]
2
2020-05-07T22:34:16.000Z
2020-09-03T20:30:37.000Z
benchmarks/cocompilation_benchmarks.py
SanggunLee/edgetpu
d3cf166783265f475c1ddba5883e150ee84f7bfe
[ "Apache-2.0" ]
null
null
null
benchmarks/cocompilation_benchmarks.py
SanggunLee/edgetpu
d3cf166783265f475c1ddba5883e150ee84f7bfe
[ "Apache-2.0" ]
1
2020-01-08T05:55:58.000Z
2020-01-08T05:55:58.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
34.981481
91
0.736633
0
0
0
0
0
0
0
0
1,978
0.523557
68da25d88380998dc70170f5b963f169ab2d9195
11,849
py
Python
pygl.py
sidd5sci/game-engin
8aa580ae79083c6420e004720ea91650029caf2c
[ "Apache-2.0" ]
null
null
null
pygl.py
sidd5sci/game-engin
8aa580ae79083c6420e004720ea91650029caf2c
[ "Apache-2.0" ]
null
null
null
pygl.py
sidd5sci/game-engin
8aa580ae79083c6420e004720ea91650029caf2c
[ "Apache-2.0" ]
null
null
null
#Import OpenGL and GLU. Don't import GLUT because it is ancient, broken, inflexible, and poorly #designed--and we aren't using it. from OpenGL.GL import * from OpenGL.GLU import * #Import PyGame. We'll mostly just use this to make a window. Also import all the local #declarations (e.g. pygame.KEYDOWN, etc.), so that...
54.856481
100
0.720314
0
0
0
0
0
0
0
0
8,561
0.722508
68e1f5cc56b5a7a07848391ac060d809aa03eb20
6,827
py
Python
cogdl/models/nn/pyg_gpt_gnn.py
zhangdan0602/cogdl
35a338f29066e4b1a5d7f46217f09ebceaf13106
[ "MIT" ]
null
null
null
cogdl/models/nn/pyg_gpt_gnn.py
zhangdan0602/cogdl
35a338f29066e4b1a5d7f46217f09ebceaf13106
[ "MIT" ]
null
null
null
cogdl/models/nn/pyg_gpt_gnn.py
zhangdan0602/cogdl
35a338f29066e4b1a5d7f46217f09ebceaf13106
[ "MIT" ]
null
null
null
from typing import Any, Union, Type, Optional from cogdl.models import register_model from cogdl.models.supervised_model import ( SupervisedHomogeneousNodeClassificationModel, SupervisedHeterogeneousNodeClassificationModel, ) from cogdl.trainers.gpt_gnn_trainer import ( GPT_GNNHomogeneousTrainer, GPT_...
32.509524
107
0.535228
4,361
0.638787
0
0
4,388
0.642742
0
0
3,756
0.550168
68e4fa47e5e77d8c29f364b8fa74a2d2eaa11de8
476
py
Python
ex/ex113.py
Ozcry/PythonExercicio
b4d4a4fbd6467d1ced0815677ecbd78c2613c4c9
[ "MIT" ]
null
null
null
ex/ex113.py
Ozcry/PythonExercicio
b4d4a4fbd6467d1ced0815677ecbd78c2613c4c9
[ "MIT" ]
null
null
null
ex/ex113.py
Ozcry/PythonExercicio
b4d4a4fbd6467d1ced0815677ecbd78c2613c4c9
[ "MIT" ]
null
null
null
'''Reescreva a função leiaInt() que fizemos no DESAFIO 104, incluindo agora a possibilidade da digitação de um número de tipo inválido. Aproveite e crie também uma função leiaFloot() com a mesma funcionalidade.''' from utilidadesCeV import moeda, texto n1 = moeda.leiainteiro('\033[34mDigite um Inteiro:\033[m ') n2 = mo...
52.888889
120
0.754202
0
0
0
0
0
0
0
0
363
0.748454
68e8192cc2ff542a1fbc557bde4a3ec054ffbb9e
1,511
py
Python
qtpy/tests/test_qtwidgets.py
tlambert-forks/qtpy
016e8c5e67d30cb6803a2310bdbd7c4cabe33959
[ "MIT" ]
null
null
null
qtpy/tests/test_qtwidgets.py
tlambert-forks/qtpy
016e8c5e67d30cb6803a2310bdbd7c4cabe33959
[ "MIT" ]
null
null
null
qtpy/tests/test_qtwidgets.py
tlambert-forks/qtpy
016e8c5e67d30cb6803a2310bdbd7c4cabe33959
[ "MIT" ]
null
null
null
"""Test QtWidgets.""" import pytest from qtpy import PYQT5, PYQT_VERSION, QtWidgets def test_qtextedit_functions(): """Test functions mapping for QtWidgets.QTextEdit.""" assert QtWidgets.QTextEdit.setTabStopWidth assert QtWidgets.QTextEdit.tabStopWidth assert QtWidgets.QTextEdit.print_ def test_qpl...
34.340909
95
0.750496
0
0
0
0
576
0.381205
0
0
460
0.304434
68e86e12af161f52f04fd90498184998e3306c7b
5,519
py
Python
dispatch/events/emitter.py
Alphadelta14/python-newdispatch
9d386ae0aa56af1bca38d9f732ff718a6642779c
[ "MIT" ]
1
2015-06-08T01:43:37.000Z
2015-06-08T01:43:37.000Z
dispatch/events/emitter.py
Alphadelta14/python-newdispatch
9d386ae0aa56af1bca38d9f732ff718a6642779c
[ "MIT" ]
null
null
null
dispatch/events/emitter.py
Alphadelta14/python-newdispatch
9d386ae0aa56af1bca38d9f732ff718a6642779c
[ "MIT" ]
null
null
null
import functools import sys from event import EventData, EventCancelled, EventDeferred class Emitter(object): def on(self, event, callback=None): """Hook to an event Parameters ---------- event : str Event to attach to callback : func(EventData) C...
29.672043
79
0.494111
5,427
0.98333
0
0
384
0.069578
0
0
2,487
0.450625
68e9df88a8438097eecff1b4827fb3a86127f7cc
88
py
Python
output/models/ms_data/regex/re_t61_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/ms_data/regex/re_t61_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/ms_data/regex/re_t61_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from output.models.ms_data.regex.re_t61_xsd.re_t61 import Doc __all__ = [ "Doc", ]
14.666667
61
0.715909
0
0
0
0
0
0
0
0
5
0.056818
68edc1beb9d2bae550d0e6eb145fb0caa55200b1
2,663
py
Python
hadoopCluster/hadoop.py
anycode-inc/TerminalUI-CGI
8db7d19d25b0de6d599b9de8a4172d0668f4d688
[ "MIT" ]
null
null
null
hadoopCluster/hadoop.py
anycode-inc/TerminalUI-CGI
8db7d19d25b0de6d599b9de8a4172d0668f4d688
[ "MIT" ]
null
null
null
hadoopCluster/hadoop.py
anycode-inc/TerminalUI-CGI
8db7d19d25b0de6d599b9de8a4172d0668f4d688
[ "MIT" ]
null
null
null
#!/usr/bin/python3 from jinja2 import Environment, FileSystemLoader import subprocess import cgi print("content-type: text/html") print() mydata = cgi.FieldStorage() namenode_ip = mydata.getvalue("namenode_ip") namenode_port = mydata.getvalue("namenode_port") namenode_directory = mydata.getvalue("namenode_directory...
35.506667
96
0.733383
0
0
0
0
0
0
0
0
670
0.251596
68ef832af775f775cdb4bb4048470a320e163217
10,396
py
Python
module/cek_tanda_tangan_bap.py
riandakarizal/ITeung
2d3fc7e4974c9a9b67ff61f2a77a528988b55820
[ "MIT" ]
null
null
null
module/cek_tanda_tangan_bap.py
riandakarizal/ITeung
2d3fc7e4974c9a9b67ff61f2a77a528988b55820
[ "MIT" ]
37
2020-03-22T23:21:14.000Z
2020-09-16T15:07:06.000Z
module/cek_tanda_tangan_bap.py
riandakarizal/ITeung
2d3fc7e4974c9a9b67ff61f2a77a528988b55820
[ "MIT" ]
1
2020-09-08T11:31:30.000Z
2020-09-08T11:31:30.000Z
from module import kelas from lib import numbers, wa, reply, message import subprocess, config, os def getMateriFromJadwalID(jadwalid): db = kelas.dbConnectSiap() sql = f"select MP from simak_trn_presensi_dosen WHERE `JadwalID` = {jadwalid} ORDER BY Pertemuan ASC" with db: cur = db.cursor() ...
35.60274
212
0.653905
0
0
0
0
0
0
0
0
3,153
0.30329
68efa2f47f268526a9d0f5230984fd8a4c74294f
5,184
py
Python
tests/test_plasmid_extractor.py
lowandrew/Plasmid_Assembler
7366e5e5a88e3a87d164934de0c6a3ee51f241b3
[ "MIT" ]
5
2018-01-16T04:55:10.000Z
2020-10-23T08:59:52.000Z
tests/test_plasmid_extractor.py
lowandrew/Plasmid_Assembler
7366e5e5a88e3a87d164934de0c6a3ee51f241b3
[ "MIT" ]
null
null
null
tests/test_plasmid_extractor.py
lowandrew/Plasmid_Assembler
7366e5e5a88e3a87d164934de0c6a3ee51f241b3
[ "MIT" ]
3
2018-02-16T18:49:07.000Z
2021-06-20T06:45:02.000Z
import os import shutil """ Remaining things to test: find_plasmid_kmer_scores find_score filter_similar_plasmids generate_consensus """ parentdir = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) os.sys.path.insert(0, parentdir) from plasmidextractor.PlasmidExtractor import * def test_mash_paired_gzipp...
42.491803
132
0.656829
0
0
0
0
0
0
0
0
1,937
0.37365
68f2c194115b15d0b37b208d612c93ce0b1eb749
1,418
py
Python
gs15_py/Inversion.py
Jajajzhh/Blockchain_EncryptionKasumi
604352a804433e482d754ab928aaacfd70cada04
[ "MIT" ]
null
null
null
gs15_py/Inversion.py
Jajajzhh/Blockchain_EncryptionKasumi
604352a804433e482d754ab928aaacfd70cada04
[ "MIT" ]
null
null
null
gs15_py/Inversion.py
Jajajzhh/Blockchain_EncryptionKasumi
604352a804433e482d754ab928aaacfd70cada04
[ "MIT" ]
null
null
null
#!/usr/bin/env python #Examples of irreductible polynomes 16 degree #x^16 + x^9 + x^8 + x^7 + x^6 + x^4 + x^3 + x^2 + 1 #x^16 + x^12 + x^3 + x^1 + 1 #x^16 + x^12 + x^7 + x^2 + 1 from sympy.polys.domains import ZZ from sympy.polys.galoistools import gf_gcdex, gf_strip def gf_inv(a): # irriducible polynomial ...
23.245902
111
0.504937
0
0
0
0
0
0
0
0
376
0.265162
68f420504667e37d1a0941ff619b2ce7a315791e
252
py
Python
bot/adapters/bitfinex.py
greenseedyo/triangular_arbitrage
813282715f2c9064a160948a0305b26e15ac1bab
[ "MIT" ]
3
2020-02-26T06:41:22.000Z
2020-06-18T02:22:11.000Z
bot/adapters/bitfinex.py
greenseedyo/triangular_arbitrage
813282715f2c9064a160948a0305b26e15ac1bab
[ "MIT" ]
null
null
null
bot/adapters/bitfinex.py
greenseedyo/triangular_arbitrage
813282715f2c9064a160948a0305b26e15ac1bab
[ "MIT" ]
1
2020-02-26T06:41:28.000Z
2020-02-26T06:41:28.000Z
# -*- coding: utf-8 -*- from bot.adapters.ccxt_adapter import CcxtAdapter from secrets import BITFINEX_KEY, BITFINEX_SECRET class BitfinexAdapter(CcxtAdapter): ccxt_module_name = 'bitfinex' apiKey = BITFINEX_KEY secret = BITFINEX_SECRET
22.909091
49
0.761905
124
0.492063
0
0
0
0
0
0
33
0.130952
68f4f86882cc9b12d44b29372c5ed00acbd058e5
2,469
py
Python
pic2formula/polyline.py
s-col/pic2formula
0e254f98fca8dd22b5136d018cd33413baba85d5
[ "MIT" ]
null
null
null
pic2formula/polyline.py
s-col/pic2formula
0e254f98fca8dd22b5136d018cd33413baba85d5
[ "MIT" ]
null
null
null
pic2formula/polyline.py
s-col/pic2formula
0e254f98fca8dd22b5136d018cd33413baba85d5
[ "MIT" ]
null
null
null
import math import numpy as np from scipy import interpolate class Polyline(list): @staticmethod def _2Dcheck(value): if len(value) != 2: raise ValueError("Value must be 2-D.") def __init__(self): super().__init__() def __setitem__(self, key, value): ...
26.548387
63
0.45565
2,413
0.971808
0
0
120
0.048329
0
0
131
0.052759
68f5649c62aa4f43394924b3ae19b877c4eef1be
188
py
Python
create_db.py
rdclif/GCloud-WebProject
5e548cce536ed71ae5f0a1641c95e9ce3b08a912
[ "CNRI-Python" ]
null
null
null
create_db.py
rdclif/GCloud-WebProject
5e548cce536ed71ae5f0a1641c95e9ce3b08a912
[ "CNRI-Python" ]
null
null
null
create_db.py
rdclif/GCloud-WebProject
5e548cce536ed71ae5f0a1641c95e9ce3b08a912
[ "CNRI-Python" ]
null
null
null
from main import db from main import Visit from main import sqlalchemy if __name__ == '__main__': print('Creating all database tables...') x = db.create_all() print('Done!')
18.8
44
0.68617
0
0
0
0
0
0
0
0
50
0.265957
68f9926a1a6cee5c7b3808e4d3e51e60201ff9cc
122
py
Python
pycantonese/tests/__init__.py
chaaklau/pycantonese
94694fea2f3c3405d3b6bb6d504a56bb05a6496c
[ "MIT" ]
124
2019-08-12T13:10:43.000Z
2022-03-24T18:35:58.000Z
pycantonese/tests/__init__.py
chaaklau/pycantonese
94694fea2f3c3405d3b6bb6d504a56bb05a6496c
[ "MIT" ]
13
2019-09-03T17:08:49.000Z
2021-12-28T21:37:17.000Z
pycantonese/tests/__init__.py
chaaklau/pycantonese
94694fea2f3c3405d3b6bb6d504a56bb05a6496c
[ "MIT" ]
15
2019-08-09T04:03:01.000Z
2022-03-17T10:18:21.000Z
import os _THIS_DIR = os.path.dirname(os.path.realpath(__file__)) REPO_DIR = os.path.dirname(os.path.dirname(_THIS_DIR))
24.4
55
0.778689
0
0
0
0
0
0
0
0
0
0
68fb355cda715a722270422ee795218d8af71a03
3,824
py
Python
seed.py
thereals0beit/aria2-batch-downloader
22503c4c4c0cf6dbe74c83de1c2932bb4753598f
[ "MIT" ]
2
2017-03-30T22:49:28.000Z
2019-05-16T07:39:31.000Z
seed.py
thereals0beit/aria2-batch-downloader
22503c4c4c0cf6dbe74c83de1c2932bb4753598f
[ "MIT" ]
null
null
null
seed.py
thereals0beit/aria2-batch-downloader
22503c4c4c0cf6dbe74c83de1c2932bb4753598f
[ "MIT" ]
5
2015-09-05T00:48:51.000Z
2020-08-19T02:32:28.000Z
#!/usr/bin/env python import sys import subprocess import urllib2 import base64 import re import os.path from bs4 import BeautifulSoup, NavigableString USERNAME = "YOUR_USERNAME" PASSWORD = "YOUR_PASSWORD" def startAndWaitForAria(chdir, url): if os.path.exists(chdir) is not True: print "Path {0} does not exist, ...
28.325926
174
0.695868
0
0
0
0
0
0
0
0
1,149
0.300471
68fc81206a378d15958f90dac2d8f1cdad2053ed
396
py
Python
python/ql/test/query-tests/Classes/should-be-context-manager/should_be_context_manager.py
vadi2/codeql
a806a4f08696d241ab295a286999251b56a6860c
[ "MIT" ]
4,036
2020-04-29T00:09:57.000Z
2022-03-31T14:16:38.000Z
python/ql/test/query-tests/Classes/should-be-context-manager/should_be_context_manager.py
vadi2/codeql
a806a4f08696d241ab295a286999251b56a6860c
[ "MIT" ]
2,970
2020-04-28T17:24:18.000Z
2022-03-31T22:40:46.000Z
python/ql/test/query-tests/Classes/should-be-context-manager/should_be_context_manager.py
ScriptBox99/github-codeql
2ecf0d3264db8fb4904b2056964da469372a235c
[ "MIT" ]
794
2020-04-29T00:28:25.000Z
2022-03-30T08:21:46.000Z
#Should be context manager class MegaDel(object): def __del__(self): a = self.x + self.y if a: print(a) if sys._getframe().f_lineno > 100: print("Hello") sum = 0 for a in range(100): sum += a print(sum) class MiniDel(object): ...
18
42
0.494949
366
0.924242
0
0
0
0
0
0
33
0.083333
68fe5357f2994a0a75698eb8a8e7824b9a9f7c44
2,592
py
Python
season_crawler.py
charmoky/f1_crawler
c4edec5d0a19283690347fc9ed21c454e5db2d4b
[ "MIT" ]
null
null
null
season_crawler.py
charmoky/f1_crawler
c4edec5d0a19283690347fc9ed21c454e5db2d4b
[ "MIT" ]
null
null
null
season_crawler.py
charmoky/f1_crawler
c4edec5d0a19283690347fc9ed21c454e5db2d4b
[ "MIT" ]
null
null
null
import requests from bs4 import BeautifulSoup import lxml import re import ast import urllib.parse as urllib class season_crawler(): def __init__(self, url): self.url = url self.hostname = urllib.urlparse(url).hostname self.source = requests.get(url).text self.soup = BeautifulSoup(...
28.483516
101
0.486497
2,479
0.956404
0
0
0
0
0
0
325
0.125386
68ff13e3e208e09b794739d2c907043aabd15844
130
py
Python
sudoku/python/sudoku.py
sandos/MastersOfCode
582e372901857b853eb50435298001e378b45e0f
[ "Unlicense" ]
null
null
null
sudoku/python/sudoku.py
sandos/MastersOfCode
582e372901857b853eb50435298001e378b45e0f
[ "Unlicense" ]
null
null
null
sudoku/python/sudoku.py
sandos/MastersOfCode
582e372901857b853eb50435298001e378b45e0f
[ "Unlicense" ]
null
null
null
import csv with open("../sudoku.csv", "r") as csvfile: reader = csv.reader(csvfile) for row in reader: print row
18.571429
43
0.615385
0
0
0
0
0
0
0
0
18
0.138462
68ffd02431b608770d9cb6427c85ad56bdc7189e
1,921
py
Python
cogs/clock/cog.py
DenverCoder1/weasley-chess-bot
70d6250cf2eea4faceacf3a809f38d8cc6f19059
[ "MIT" ]
2
2021-05-05T16:06:38.000Z
2021-05-05T19:21:30.000Z
cogs/clock/cog.py
DenverCoder1/weasley-chess-bot
70d6250cf2eea4faceacf3a809f38d8cc6f19059
[ "MIT" ]
7
2021-06-22T21:36:29.000Z
2022-01-21T19:15:58.000Z
cogs/clock/cog.py
DenverCoder1/weasley-chess-bot
70d6250cf2eea4faceacf3a809f38d8cc6f19059
[ "MIT" ]
null
null
null
import config import discord from discord.errors import HTTPException from discord.ext import commands from discord.ext.tasks import loop from .clock import ( clock_embed, get_or_create_message, new_channel_name, get_embed_title, ) class Clock(commands.Cog, name="🕒 Clock"): def __init__(self, bo...
32.559322
84
0.645497
1,626
0.845114
0
0
1,495
0.777027
1,422
0.739085
481
0.25
ec006c8af6686f4d727533bc4bdf28b8f92b3527
6,989
py
Python
Ellie_Lambda_Introductory_Convo.py
dodobirb/Project_2_ETF_Lex_RoboAdvisor
f8e1a5143e74c0dc6f8bef1ed6d4b4fbd6c66739
[ "MIT" ]
null
null
null
Ellie_Lambda_Introductory_Convo.py
dodobirb/Project_2_ETF_Lex_RoboAdvisor
f8e1a5143e74c0dc6f8bef1ed6d4b4fbd6c66739
[ "MIT" ]
null
null
null
Ellie_Lambda_Introductory_Convo.py
dodobirb/Project_2_ETF_Lex_RoboAdvisor
f8e1a5143e74c0dc6f8bef1ed6d4b4fbd6c66739
[ "MIT" ]
null
null
null
### Required Libraries ### from datetime import datetime from dateutil.relativedelta import relativedelta from botocore.vendored import requests ### Functionality Helper Functions ### def parse_float(n): """ Securely converts a non-numeric value to float. """ try: return float(n) ...
31.624434
126
0.593075
0
0
0
0
0
0
0
0
2,833
0.405351
ec01276c37a7b31604c880dcb9890eab8f123340
876
py
Python
Algoritma/radixSort.py
SyamsulAlterra/Alta
13e8c185e91414e3f46e5d20f39370f8e58e7cd0
[ "MIT" ]
null
null
null
Algoritma/radixSort.py
SyamsulAlterra/Alta
13e8c185e91414e3f46e5d20f39370f8e58e7cd0
[ "MIT" ]
6
2021-09-02T18:50:40.000Z
2022-02-27T11:06:31.000Z
Algoritma/radixSort.py
SyamsulAlterra/Alta
13e8c185e91414e3f46e5d20f39370f8e58e7cd0
[ "MIT" ]
null
null
null
arr=[123,321,487,908,123,465,987,46,762,12389] def findMax(arr): Max=None for num in arr: if Max==None or num>Max: Max=num return Max def checkDigit(num): i=0 remainder=0 while (remainder!=num): i+=1 remainder=num%(10**i) return i def digit(i,num): ...
21.365854
57
0.515982
0
0
0
0
0
0
0
0
0
0
ec029f2e7581e96d907379e0c7b77a55feafa39c
577
py
Python
users/urls.py
pauloaugusto-dmf/blog_django
7374e85dd4f0622aefbbb99d27ceb85f19fd1cd8
[ "MIT" ]
2
2021-12-31T22:14:31.000Z
2021-12-31T22:14:34.000Z
users/urls.py
pauloaugusto-dmf/blog_django
7374e85dd4f0622aefbbb99d27ceb85f19fd1cd8
[ "MIT" ]
null
null
null
users/urls.py
pauloaugusto-dmf/blog_django
7374e85dd4f0622aefbbb99d27ceb85f19fd1cd8
[ "MIT" ]
null
null
null
from django.urls import path from .views import ( UserLoginView, UserLogoutView, UserSignupView, UserUpdateView, UserDeleteView, UserProfileView, ) app_name = "user" urlpatterns = [ path("signup", UserSignupView.as_view(), name="signup"), path("update", UserUpdateView.as_view(), name=...
26.227273
63
0.679376
0
0
0
0
0
0
0
0
102
0.176776
ec037e8ff41b312d1239dc04d766e9f4b8fe7357
391
py
Python
petstagram/core/views.py
BoyanPeychinov/python_web_basics
2f892ac119f7fe3a5c03fc5e7b35670dc609a70f
[ "MIT" ]
1
2021-07-20T12:16:34.000Z
2021-07-20T12:16:34.000Z
petstagram/core/views.py
BoyanPeychinov/python_web_basics
2f892ac119f7fe3a5c03fc5e7b35670dc609a70f
[ "MIT" ]
null
null
null
petstagram/core/views.py
BoyanPeychinov/python_web_basics
2f892ac119f7fe3a5c03fc5e7b35670dc609a70f
[ "MIT" ]
null
null
null
from django.views import View class PostOnlyView(View): form_class = None def post(self, request, *args, **kwargs): form = self.form_class(request.POST) if form.is_valid(): return self.form_valid(form) else: return self.form_invalid(form) def form_valid(se...
21.722222
45
0.606138
359
0.918159
0
0
0
0
0
0
0
0
ec03beeeb8e83dd9401f7dcd95618bf9eb96ca5c
7,232
py
Python
utils/image_processing.py
ebritsyn/obormot
de05707d0a9b7a8de813ee8e1104dea02caeb236
[ "MIT" ]
3
2017-12-09T16:16:18.000Z
2020-05-05T12:01:53.000Z
utils/image_processing.py
ebritsyn/obormot
de05707d0a9b7a8de813ee8e1104dea02caeb236
[ "MIT" ]
null
null
null
utils/image_processing.py
ebritsyn/obormot
de05707d0a9b7a8de813ee8e1104dea02caeb236
[ "MIT" ]
null
null
null
import io import cv2 import numpy as np import tensorflow as tf from PIL import Image from keras.models import model_from_json import dlib class Model: """This class represents the base model of the whole project. The model predicts if the face on the picture is smiling or not. The model and its weights a...
33.953052
86
0.552683
7,090
0.980365
0
0
2,617
0.361864
0
0
2,107
0.291344
ec04ace165066b72928eb9637889dba57eabd704
498
py
Python
dumbtils/_c1.py
paaksing/dumbtils
6d19bf5daa4f87b0f732ebbbec90a7327b672da9
[ "MIT" ]
null
null
null
dumbtils/_c1.py
paaksing/dumbtils
6d19bf5daa4f87b0f732ebbbec90a7327b672da9
[ "MIT" ]
null
null
null
dumbtils/_c1.py
paaksing/dumbtils
6d19bf5daa4f87b0f732ebbbec90a7327b672da9
[ "MIT" ]
null
null
null
import sys import signal from functools import partial def handler(counters, signum, *args): print(f"C1 received signal {signum}") counters["i"] += 1 if counters["i"] == 10: sys.exit() def main(): counters = {"i": 0} if sys.platform.startswith("linux"): signal.signal(signal.SIGAL...
19.92
66
0.626506
0
0
0
0
0
0
0
0
56
0.11245
ec05ae5f172a76ae27b1aab78fa3fe888df7828e
30,898
py
Python
antipetros_discordbot/cogs/general_cogs/image_manipulation_cog.py
official-antistasi-community/Antipetros_Discord_Bot
1b5c8b61c09e61cdff671e259f0478d343a50c8d
[ "MIT" ]
null
null
null
antipetros_discordbot/cogs/general_cogs/image_manipulation_cog.py
official-antistasi-community/Antipetros_Discord_Bot
1b5c8b61c09e61cdff671e259f0478d343a50c8d
[ "MIT" ]
null
null
null
antipetros_discordbot/cogs/general_cogs/image_manipulation_cog.py
official-antistasi-community/Antipetros_Discord_Bot
1b5c8b61c09e61cdff671e259f0478d343a50c8d
[ "MIT" ]
1
2021-02-12T01:10:51.000Z
2021-02-12T01:10:51.000Z
# region [Imports] # * Standard Library Imports ----------------------------------------------------------------------------> import os import asyncio from io import BytesIO from pathlib import Path from datetime import datetime from tempfile import TemporaryDirectory # * Third Party Imports ------------------------...
49.122417
214
0.643472
28,378
0.918441
0
0
14,268
0.461777
14,254
0.461324
6,268
0.202861
ec085bbbaef39f0640fc7171919973e59bcfe3fd
885
py
Python
exe84.py
henrique-alvaro/EXERCICIOS
dd2509a682009ee4a01f0ca346d960ab09cc284b
[ "MIT" ]
null
null
null
exe84.py
henrique-alvaro/EXERCICIOS
dd2509a682009ee4a01f0ca346d960ab09cc284b
[ "MIT" ]
null
null
null
exe84.py
henrique-alvaro/EXERCICIOS
dd2509a682009ee4a01f0ca346d960ab09cc284b
[ "MIT" ]
null
null
null
reserva = list() principal = list() maior = menor = 0 while True: reserva.append(str(input('Nome: '))) reserva.append(float(input('Peso: '))) if len(principal) == 0: maior = menor = reserva[1] else: if reserva[1] > maior: maior = reserva[1] if reserva[1] < menor: ...
26.818182
69
0.542373
0
0
0
0
0
0
0
0
206
0.232768
ec09685680a3107d366ed078bdbf9404ece34bc4
1,560
py
Python
ws2122-lspm/Lib/site-packages/pm4py/algo/discovery/alpha/utils/endpoints.py
Malekhy/ws2122-lspm
e4dc8b801d12f862b8ef536a0f125f346f085a00
[ "MIT" ]
1
2022-01-19T04:02:46.000Z
2022-01-19T04:02:46.000Z
ws2122-lspm/Lib/site-packages/pm4py/algo/discovery/alpha/utils/endpoints.py
Malekhy/ws2122-lspm
e4dc8b801d12f862b8ef536a0f125f346f085a00
[ "MIT" ]
1
2021-11-19T07:21:48.000Z
2021-11-19T07:21:48.000Z
ws2122-lspm/Lib/site-packages/pm4py/algo/discovery/alpha/utils/endpoints.py
Malekhy/ws2122-lspm
e4dc8b801d12f862b8ef536a0f125f346f085a00
[ "MIT" ]
1
2022-01-14T17:15:38.000Z
2022-01-14T17:15:38.000Z
''' This file is part of PM4Py (More Info: https://pm4py.fit.fraunhofer.de). PM4Py is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any late...
24.761905
76
0.604487
0
0
0
0
0
0
0
0
1,123
0.719872
ec09fbb6283c15ce280ed78dbf9c0d4cee3fc770
691
py
Python
view/inputs.py
gabrielfelipecsk/searchport
aa1f9067a5d1f59d9913b172cc99e933255a0824
[ "MIT" ]
2
2022-01-16T02:34:40.000Z
2022-02-26T01:31:54.000Z
view/inputs.py
gabrielfelipecsk/searchport
aa1f9067a5d1f59d9913b172cc99e933255a0824
[ "MIT" ]
null
null
null
view/inputs.py
gabrielfelipecsk/searchport
aa1f9067a5d1f59d9913b172cc99e933255a0824
[ "MIT" ]
null
null
null
from .colors import Colorize from .banners import banner def inputc(text: str, foreground_color: str = 'default', background_color: str = 'default') -> str: return input(Colorize(text, foreground_color, background_color)) def input_banner(text: str, simbol: str = '-', size: int = 50, text_foreground_color: str =...
53.153846
122
0.720695
0
0
0
0
0
0
0
0
63
0.091172
ec0b058f553343a897e71eea532d993fcfa42a8b
926
py
Python
ground_truth_labeling_jobs/bring_your_own_model_for_sagemaker_labeling_workflows_with_active_learning/src/tests/test_add_record_id.py
jerrypeng7773/amazon-sagemaker-examples
c5ddecce1f739a345465b9a38b064983a129141d
[ "Apache-2.0" ]
2,610
2020-10-01T14:14:53.000Z
2022-03-31T18:02:31.000Z
ground_truth_labeling_jobs/bring_your_own_model_for_sagemaker_labeling_workflows_with_active_learning/src/tests/test_add_record_id.py
jerrypeng7773/amazon-sagemaker-examples
c5ddecce1f739a345465b9a38b064983a129141d
[ "Apache-2.0" ]
1,959
2020-09-30T20:22:42.000Z
2022-03-31T23:58:37.000Z
ground_truth_labeling_jobs/bring_your_own_model_for_sagemaker_labeling_workflows_with_active_learning/src/tests/test_add_record_id.py
jerrypeng7773/amazon-sagemaker-examples
c5ddecce1f739a345465b9a38b064983a129141d
[ "Apache-2.0" ]
2,052
2020-09-30T22:11:46.000Z
2022-03-31T23:02:51.000Z
import boto3 from Bootstrap.add_record_id import lambda_handler from moto import mock_s3 @mock_s3 def test_add_record_id(): manifest_content = b'{"source":"Fed revises guidelines sending stocks up."}\n{"source": "Review Guardians of the Galaxy"}' s3r = boto3.resource("s3", region_name="us-east-1") s3r.cre...
37.04
155
0.708423
0
0
0
0
834
0.900648
0
0
425
0.458963
ec0bb06346d0c766db6b7559f79689b68488b806
523
py
Python
utils/redis.py
lq411122/fast-methods
0bca39c37abc4c9dac9a194e635641848c128b1b
[ "MIT" ]
null
null
null
utils/redis.py
lq411122/fast-methods
0bca39c37abc4c9dac9a194e635641848c128b1b
[ "MIT" ]
null
null
null
utils/redis.py
lq411122/fast-methods
0bca39c37abc4c9dac9a194e635641848c128b1b
[ "MIT" ]
null
null
null
import redis REDIS_CACHE = { "host": '192.168.196.129', "port": '6379', "db": 0, "password": '' } class RedisClient(redis.StrictRedis): """ Singleton pattern """ _instance = {} def __init__(self, server): redis.StrictRedis.__init__(self, **server) def __new__(cls, *...
17.433333
75
0.596558
367
0.701721
0
0
0
0
0
0
84
0.160612
ec0bbf6fa340a30833399fb89ab800ad2004fd7e
8,517
py
Python
src/rest-api/tests/routes/v1/test_dex.py
geometry-labs/craft-multi-token-api
e533fd02c928c4857076ee11e14d8c0608bf367d
[ "Apache-2.0" ]
null
null
null
src/rest-api/tests/routes/v1/test_dex.py
geometry-labs/craft-multi-token-api
e533fd02c928c4857076ee11e14d8c0608bf367d
[ "Apache-2.0" ]
null
null
null
src/rest-api/tests/routes/v1/test_dex.py
geometry-labs/craft-multi-token-api
e533fd02c928c4857076ee11e14d8c0608bf367d
[ "Apache-2.0" ]
null
null
null
from fastapi.testclient import TestClient from app.core.config import settings def test_get_transactions(prep_fixtures, client: TestClient) -> None: r = client.get(f"{settings.PREFIX}/dex/transactions") response = r.json() assert r.status_code == 200 assert response assert len(response) == 1 ...
29.470588
100
0.628977
0
0
0
0
0
0
0
0
1,120
0.131502
ec0c6262fe29bd601bf3b54997ca27eee3386b1b
1,785
py
Python
dissertation/code/mouse-data/DecodeMouseData.py
spanners/dissertation
e7f0cbf681d2341ecb2e00d40557e4e34f8b7209
[ "MIT" ]
2
2015-09-09T16:53:46.000Z
2019-04-03T01:19:48.000Z
dissertation/code/mouse-data/DecodeMouseData.py
spanners/dissertation
e7f0cbf681d2341ecb2e00d40557e4e34f8b7209
[ "MIT" ]
null
null
null
dissertation/code/mouse-data/DecodeMouseData.py
spanners/dissertation
e7f0cbf681d2341ecb2e00d40557e4e34f8b7209
[ "MIT" ]
null
null
null
#!/usr/bin/python2.7 import json import sys class DecodeMouseData(object): def decode(self, jsonString): return json.loads(jsonString) def getNumberOfClicks(self, jsonString): return len(self.decode(jsonString)) def getSessionDuration(self, jsonString): decoded = self.decode(jso...
31.315789
75
0.60056
1,427
0.79944
0
0
0
0
0
0
159
0.089076
ec0ebec4153df6eb77466725e0c8fd3afb8e6d9e
2,604
py
Python
telemetry/telemetry/internal/platform/cast_platform_backend.py
BearerPipelineTest/catapult
3800a67cd916200046a50748893bbd0dcf3d7f4a
[ "BSD-3-Clause" ]
null
null
null
telemetry/telemetry/internal/platform/cast_platform_backend.py
BearerPipelineTest/catapult
3800a67cd916200046a50748893bbd0dcf3d7f4a
[ "BSD-3-Clause" ]
null
null
null
telemetry/telemetry/internal/platform/cast_platform_backend.py
BearerPipelineTest/catapult
3800a67cd916200046a50748893bbd0dcf3d7f4a
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2019 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from __future__ import absolute_import from telemetry.core import platform as telemetry_platform from telemetry.internal.platform import cast_device from te...
25.281553
72
0.75768
2,231
0.856759
0
0
403
0.154762
0
0
237
0.091014
ec0f9ff9cd997919f338a2ecbd614e9c94929507
828
py
Python
pages/homepage.py
kriss-u/selenium-python-framework
d4f6416de25c955861f6d8a099a780c702693b63
[ "MIT" ]
null
null
null
pages/homepage.py
kriss-u/selenium-python-framework
d4f6416de25c955861f6d8a099a780c702693b63
[ "MIT" ]
6
2021-04-26T16:12:48.000Z
2021-04-29T17:05:33.000Z
pages/homepage.py
kriss-u/selenium-python-framework
d4f6416de25c955861f6d8a099a780c702693b63
[ "MIT" ]
null
null
null
from selenium.webdriver.common.by import By from utilities import find_all_contains_text from utilities import find_one_present from utilities import wait class Homepage: def __init__(self, driver, base_url, timeout=10): self.driver = driver self.base_url = base_url self.wait = wait(drive...
30.666667
89
0.669082
669
0.807971
0
0
0
0
0
0
99
0.119565
ec109640aff1646df46aa0a6708a27349d22a4e5
1,731
py
Python
tests/test_2_cnv_annotation.py
jakob-he/TADA
8db4e0af19b4a32c7071c175a21bbafe3b02cb31
[ "MIT" ]
3
2021-12-24T18:40:14.000Z
2022-03-05T22:22:38.000Z
tests/test_2_cnv_annotation.py
jakob-he/TADA
8db4e0af19b4a32c7071c175a21bbafe3b02cb31
[ "MIT" ]
1
2020-11-30T09:49:08.000Z
2021-05-14T12:28:04.000Z
tests/test_2_cnv_annotation.py
jakob-he/TADA
8db4e0af19b4a32c7071c175a21bbafe3b02cb31
[ "MIT" ]
2
2021-12-07T17:25:55.000Z
2021-12-24T18:40:16.000Z
"""Test the annotation of CNVs""" import io import sys import unittest import pickle import pathlib import yaml import tadacnv.lib.utils as utils import tadacnv.lib.preprocessing as preprocessing from tadacnv.annotate_cnvs import annotate class CnvAnnotationTest(unittest.TestCase): """Test class for the annota...
41.214286
292
0.697285
1,486
0.858463
0
0
0
0
0
0
599
0.346043
ec115fe1a2a4d72124bd94bbcc8e5a9b7e0ee2de
30,311
py
Python
pysnmp/BTI7800-INVENTORY-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/BTI7800-INVENTORY-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/BTI7800-INVENTORY-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module BTI7800-INVENTORY-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/BTI7800-INVENTORY-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 17:24:46 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (def...
114.381132
4,847
0.769853
1,863
0.061463
0
0
0
0
0
0
5,877
0.19389
ec12e98cc644839d7e6aaadb7ca7b24595f6ffa0
8,897
py
Python
main/page/foreign_transfer.py
keith-lewis100/pont-workbench
010716e115c47ca881645800befffcc97d07f638
[ "MIT" ]
null
null
null
main/page/foreign_transfer.py
keith-lewis100/pont-workbench
010716e115c47ca881645800befffcc97d07f638
[ "MIT" ]
null
null
null
main/page/foreign_transfer.py
keith-lewis100/pont-workbench
010716e115c47ca881645800befffcc97d07f638
[ "MIT" ]
null
null
null
#_*_ coding: UTF-8 _*_ from flask import request, redirect, render_template from application import app import wtforms import db import data_models import mailer import renderers import properties import views from role_types import RoleType import urls from . import grants from . import purchases STATE_REQUESTED =...
46.098446
112
0.725188
2,476
0.278265
0
0
2,669
0.299955
0
0
681
0.076534
ec13fe98492730273c7c459f9bb522087bca7d2e
889
py
Python
patient_app/migrations/0006_auto_20200909_1921.py
JuliasBright/SendMoney
d13e2df81bf75a9154abfc57d897a416b4950e80
[ "CC0-1.0" ]
1
2021-01-29T16:57:42.000Z
2021-01-29T16:57:42.000Z
patient_app/migrations/0006_auto_20200909_1921.py
JuliasBright/SendMoney
d13e2df81bf75a9154abfc57d897a416b4950e80
[ "CC0-1.0" ]
null
null
null
patient_app/migrations/0006_auto_20200909_1921.py
JuliasBright/SendMoney
d13e2df81bf75a9154abfc57d897a416b4950e80
[ "CC0-1.0" ]
null
null
null
# Generated by Django 3.1 on 2020-09-09 19:21 import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('patient_app', '0005_auto_20200817_1713'), ] operations = [ migrations.AlterField( model_name='booking_patient', ...
29.633333
109
0.605174
782
0.87964
0
0
0
0
0
0
184
0.206974
ec1403cf6f7b91861d5877a772a1b93da4045f15
2,332
py
Python
finite_element_networks/lightning/data/common.py
martenlienen/finite-element-networks
5e8f6ecc473d1e93ccf366fcc45a47b08492ffde
[ "MIT" ]
5
2022-03-21T12:39:01.000Z
2022-03-31T06:02:01.000Z
finite_element_networks/lightning/data/common.py
martenlienen/finite-element-networks
5e8f6ecc473d1e93ccf366fcc45a47b08492ffde
[ "MIT" ]
null
null
null
finite_element_networks/lightning/data/common.py
martenlienen/finite-element-networks
5e8f6ecc473d1e93ccf366fcc45a47b08492ffde
[ "MIT" ]
1
2022-03-26T02:58:58.000Z
2022-03-26T02:58:58.000Z
from dataclasses import dataclass from typing import Callable, Optional import numpy as np from scipy.spatial import Delaunay from ...data import TimeEncoder from ...domain import ( BoundaryAnglePredicate, CellPredicate, Domain, select_boundary_mesh_cells, ) @dataclass(frozen=True) class MeshConfig:...
27.435294
85
0.690823
638
0.273585
0
0
662
0.283877
0
0
708
0.303602
ec15071df1bf9ea9d459a13a9ce32f102c847633
1,245
py
Python
DataProcess/community_detection.py
teamclouday/Mooner
ed7deed101e92b1d8f5ec47091cdbdadb2c1159c
[ "MIT" ]
null
null
null
DataProcess/community_detection.py
teamclouday/Mooner
ed7deed101e92b1d8f5ec47091cdbdadb2c1159c
[ "MIT" ]
null
null
null
DataProcess/community_detection.py
teamclouday/Mooner
ed7deed101e92b1d8f5ec47091cdbdadb2c1159c
[ "MIT" ]
null
null
null
import os import community import pandas as pd import networkx as nx graphdf = pd.read_csv(os.path.join("..", "NetworkData", "fetchcontent.csv")) G = nx.from_pandas_edgelist(graphdf) partition = community.best_partition(G) # following code comes from https://medium.com/@adityagandhi.7/network-analysis-and-community-...
36.617647
162
0.767871
0
0
0
0
0
0
0
0
452
0.363052
ec18386bf1e4f992e71d8f27e8056dac7297cb93
1,404
py
Python
getFileList.py
DoJing/hd3
124b1b169422898830d2cd602cf6e074f1238b6f
[ "BSD-3-Clause" ]
null
null
null
getFileList.py
DoJing/hd3
124b1b169422898830d2cd602cf6e074f1238b6f
[ "BSD-3-Clause" ]
null
null
null
getFileList.py
DoJing/hd3
124b1b169422898830d2cd602cf6e074f1238b6f
[ "BSD-3-Clause" ]
null
null
null
import os import cv2 def ListFilesToTxt(dir,file,wildcard,recursion): file_list=[] exts = wildcard.split(" ") files = os.listdir(dir) for name in files: fullname=os.path.join(dir,name) if(os.path.isdir(fullname) & recursion): ListFilesToTxt(fullname,file,wildcard,recursion) ...
29.87234
92
0.581909
0
0
0
0
0
0
0
0
211
0.146325
ec18cd1695ba62deebb499631731dcc890f6543b
7,647
py
Python
Lib/site-packages/ginga/canvas/transform.py
fochoao/cpython
3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9
[ "bzip2-1.0.6", "0BSD" ]
null
null
null
Lib/site-packages/ginga/canvas/transform.py
fochoao/cpython
3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9
[ "bzip2-1.0.6", "0BSD" ]
20
2021-05-03T18:02:23.000Z
2022-03-12T12:01:04.000Z
Lib/site-packages/ginga/canvas/transform.py
fochoao/cpython
3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9
[ "bzip2-1.0.6", "0BSD" ]
null
null
null
# # transform.py -- coordinate transforms for Ginga # # This is open-source software licensed under a BSD license. # Please see the file LICENSE.txt for details. # import numpy as np from ginga import trcalc __all__ = ['TransformError', 'BaseTransform', 'ComposedTransform', 'CanvasWindowTransform', 'Cartes...
28.427509
78
0.613574
7,117
0.930692
0
0
0
0
0
0
2,202
0.287956
ec19b37d7cd7097b5f677c5e778aa0038e22318d
1,179
py
Python
problems/098.Validate_Binary_Search_Tree/li_inorder.py
subramp-prep/leetcode
d125201d9021ab9b1eea5e5393c2db4edd84e740
[ "Unlicense" ]
null
null
null
problems/098.Validate_Binary_Search_Tree/li_inorder.py
subramp-prep/leetcode
d125201d9021ab9b1eea5e5393c2db4edd84e740
[ "Unlicense" ]
null
null
null
problems/098.Validate_Binary_Search_Tree/li_inorder.py
subramp-prep/leetcode
d125201d9021ab9b1eea5e5393c2db4edd84e740
[ "Unlicense" ]
null
null
null
# coding=utf-8 # Author: Jianghan LI # Question: 098.Validate_Binary_Search_Tree # Date: 2017-04-17 class Solution: def isValidBST(self, root): self.res = [] return self.inOrder(root) def inOrder(self, root): if not root: return True if not self.inOrder(root.left)...
26.2
84
0.619169
778
0.659881
0
0
0
0
0
0
390
0.330789
ec1afc2d097e9ba6dee27be5f9ffabe63e509327
1,179
py
Python
cronsense/main.py
nicwaller/cronsense
f8eebaf6604edb30c770380a798c2173041eb0fa
[ "MIT" ]
null
null
null
cronsense/main.py
nicwaller/cronsense
f8eebaf6604edb30c770380a798c2173041eb0fa
[ "MIT" ]
null
null
null
cronsense/main.py
nicwaller/cronsense
f8eebaf6604edb30c770380a798c2173041eb0fa
[ "MIT" ]
null
null
null
'''A cron wrapper that tells you more about your cron jobs ''' from __future__ import absolute_import from __future__ import print_function from .config import config from .logger import logger def main(): print("Here is our logger: " + str(logger)) print("Here is our config: " + str(config)) # parser...
34.676471
103
0.69296
0
0
0
0
0
0
0
0
885
0.750636
ec1cb933ea83bd23033b713c50c654940e1a7f32
1,771
py
Python
runtimes/alibi-explain/mlserver_alibi_explain/explainers/white_box_runtime.py
alexander-manley/MLServer
42eac4715f208f028a8920c984ab296830d90f08
[ "ECL-2.0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
191
2020-06-16T18:07:27.000Z
2022-03-29T05:56:23.000Z
runtimes/alibi-explain/mlserver_alibi_explain/explainers/white_box_runtime.py
alexander-manley/MLServer
42eac4715f208f028a8920c984ab296830d90f08
[ "ECL-2.0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
347
2020-08-21T02:22:04.000Z
2022-03-31T12:27:26.000Z
runtimes/alibi-explain/mlserver_alibi_explain/explainers/white_box_runtime.py
alexander-manley/MLServer
42eac4715f208f028a8920c984ab296830d90f08
[ "ECL-2.0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
56
2020-06-22T14:29:25.000Z
2022-03-25T21:58:48.000Z
from abc import ABC from typing import Any, Type from alibi.api.interfaces import Explainer from mlserver import ModelSettings from mlserver_alibi_explain.common import AlibiExplainSettings from mlserver_alibi_explain.runtime import AlibiExplainRuntimeBase class AlibiExplainWhiteBoxRuntime(ABC, AlibiExplainRuntimeB...
37.680851
82
0.722191
1,509
0.852061
0
0
0
0
670
0.378317
437
0.246753
ec1e30101ec04ff986f4f441cf6da3dbede160cc
13,178
py
Python
src/mvnfeed_modules/mvnfeed-cli-transfer/mvnfeed/cli/transfer/transfer.py
Bhaskers-Blu-Org2/mvnfeed-cli
cf4b43e300edee8f5bc64de9bcf1faf924fa2737
[ "MIT" ]
8
2019-08-05T20:28:45.000Z
2021-09-02T09:20:59.000Z
src/mvnfeed_modules/mvnfeed-cli-transfer/mvnfeed/cli/transfer/transfer.py
Bhaskers-Blu-Org2/mvnfeed-cli
cf4b43e300edee8f5bc64de9bcf1faf924fa2737
[ "MIT" ]
3
2019-07-31T10:12:52.000Z
2021-09-13T12:01:51.000Z
src/mvnfeed_modules/mvnfeed-cli-transfer/mvnfeed/cli/transfer/transfer.py
easterapps/mvnfeed-cli
cf4b43e300edee8f5bc64de9bcf1faf924fa2737
[ "MIT" ]
11
2019-07-31T12:58:14.000Z
2021-09-13T12:50:21.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
39.573574
113
0.635074
0
0
0
0
0
0
0
0
3,989
0.302701
ec1ec45da4dd0341da0c46ea4e27eea53aabbec2
676
py
Python
H01/Semaphore.py
scottyyf/MultiWorker
4abd361c3053140be6453d6e6e30f5c31a189e79
[ "Apache-2.0" ]
null
null
null
H01/Semaphore.py
scottyyf/MultiWorker
4abd361c3053140be6453d6e6e30f5c31a189e79
[ "Apache-2.0" ]
null
null
null
H01/Semaphore.py
scottyyf/MultiWorker
4abd361c3053140be6453d6e6e30f5c31a189e79
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ File: h03.py Author: Scott Yang(Scott) Email: yangyingfa@skybility.com Copyright: Copyright (c) 2021, Skybility Software Co.,Ltd. All rights reserved. Description: """ import threading import time semaphore = threading.Semaphore(10) def run(n): semaphore.acquire...
18.777778
79
0.640533
0
0
0
0
0
0
0
0
296
0.43787
ec1ee81ce412cde25b50543e502ef0e9f4204892
16,523
py
Python
portal/models/intervention.py
uwcirg/true_nth_usa_portal
e2434731aed86f1c43f15d428dde8ffc28ac7e5f
[ "BSD-3-Clause" ]
3
2017-01-15T10:11:57.000Z
2018-10-02T23:46:44.000Z
portal/models/intervention.py
uwcirg/true_nth_usa_portal
e2434731aed86f1c43f15d428dde8ffc28ac7e5f
[ "BSD-3-Clause" ]
876
2016-04-04T20:45:11.000Z
2019-02-28T00:10:36.000Z
portal/models/intervention.py
uwcirg/truenth-portal
459a0d157982f010175c50b9cccd860a61790370
[ "BSD-3-Clause" ]
9
2016-04-13T01:18:55.000Z
2018-09-19T20:44:23.000Z
"""Intervention Module""" from flask import current_app from sqlalchemy import and_ from sqlalchemy.dialects.postgresql import ENUM from sqlalchemy.ext.hybrid import hybrid_property from sqlalchemy.orm.exc import NoResultFound from werkzeug.exceptions import BadRequest from ..database import db from ..dict_tools impor...
38.159353
79
0.651516
12,786
0.77383
694
0.042002
1,745
0.10561
0
0
7,524
0.455365
ec1f0874784570485a2cb6d70a6752e769ab9710
3,156
py
Python
utils/extract_features.py
ArjitJ/tbd-nets
8e93ecad54489706ec3249c9ca5d345d6866e1ba
[ "MIT" ]
371
2018-03-15T00:26:23.000Z
2022-03-30T14:32:48.000Z
utils/extract_features.py
ArjitJ/tbd-nets
8e93ecad54489706ec3249c9ca5d345d6866e1ba
[ "MIT" ]
14
2018-03-23T08:03:02.000Z
2022-02-06T18:39:05.000Z
utils/extract_features.py
ArjitJ/tbd-nets
8e93ecad54489706ec3249c9ca5d345d6866e1ba
[ "MIT" ]
81
2018-03-15T00:54:46.000Z
2021-12-07T16:09:58.000Z
# DISTRIBUTION STATEMENT A. Approved for public release: distribution unlimited. # # This material is based upon work supported by the Assistant Secretary of Defense for Research and # Engineering under Air Force Contract No. FA8721-05-C-0002 and/or FA8702-15-D-0001. Any opinions, # findings, conclusions or recommendat...
36.697674
100
0.695501
0
0
0
0
0
0
0
0
2,146
0.679759
ec1f28c2ec9b0b2ceb318ed55956b42468f20f98
491
py
Python
app/schemas.py
pnguyenduong/virustracker-api
0622558ceb431667cc0af75f4835455258ec054b
[ "MIT" ]
null
null
null
app/schemas.py
pnguyenduong/virustracker-api
0622558ceb431667cc0af75f4835455258ec054b
[ "MIT" ]
null
null
null
app/schemas.py
pnguyenduong/virustracker-api
0622558ceb431667cc0af75f4835455258ec054b
[ "MIT" ]
null
null
null
from .models import VirusData from app import ma class DataSchema(ma.SQLAlchemyAutoSchema): class Meta: model = VirusData id = ma.auto_field() name = ma.auto_field() case_total = ma.auto_field() case_today = ma.auto_field() recovered_total = ma.auto_field() death_today = ma.au...
20.458333
42
0.682281
340
0.692464
0
0
0
0
0
0
25
0.050916
ec1feb9807faf84631629db4a3a466c150882506
14,080
py
Python
ai_solutions/maze_solver.py
zerobits01/AI-Project
68d5e7a8b2c826644683a08e916f961f878d218f
[ "MIT" ]
null
null
null
ai_solutions/maze_solver.py
zerobits01/AI-Project
68d5e7a8b2c826644683a08e916f961f878d218f
[ "MIT" ]
null
null
null
ai_solutions/maze_solver.py
zerobits01/AI-Project
68d5e7a8b2c826644683a08e916f961f878d218f
[ "MIT" ]
null
null
null
import sys import collections from queue import PriorityQueue from itertools import count from ai_solutions.graph_node import GraphNode class MazeSolver: ''' this class is for solving the maze question using three algorithms: - BFS - IDS - A* ''' def __init__(self, s...
34.594595
100
0.464063
13,556
0.962784
0
0
0
0
0
0
3,421
0.242969
ec212b4bab89667f0bd94d6a9a7ed05d39f3098c
4,998
py
Python
examples/development/simulate_policy_with_state.py
zhanghc12/mopo
f6db90f55ca6becbc34988b88404b289699637da
[ "MIT" ]
107
2020-09-07T01:06:37.000Z
2022-03-31T04:16:51.000Z
examples/development/simulate_policy_with_state.py
zhanghc12/mopo
f6db90f55ca6becbc34988b88404b289699637da
[ "MIT" ]
9
2020-09-09T06:49:03.000Z
2022-03-25T18:19:57.000Z
examples/development/simulate_policy_with_state.py
zhanghc12/mopo
f6db90f55ca6becbc34988b88404b289699637da
[ "MIT" ]
29
2020-09-10T16:26:33.000Z
2022-03-16T08:15:41.000Z
import argparse from distutils.util import strtobool import json import os import pickle import numpy as np import tensorflow as tf import pdb from softlearning.environments.utils import get_environment_from_params from softlearning.policies.utils import get_policy_from_variant # from softlearning.samplers import rol...
31.2375
88
0.622649
0
0
0
0
0
0
0
0
643
0.128651
ec21a2f2b80af73693b16e92ab450451f7f0d1b4
2,566
py
Python
test_mask_rcnn_bdd.py
sxhxliang/challenagerAI-gluon-cv
a0018adad887e9045d3d356b8eb16372323888bf
[ "Apache-2.0" ]
1
2019-12-17T14:18:00.000Z
2019-12-17T14:18:00.000Z
test_mask_rcnn_bdd.py
sxhxliang/challenagerAI-gluon-cv
a0018adad887e9045d3d356b8eb16372323888bf
[ "Apache-2.0" ]
1
2019-04-29T04:05:51.000Z
2019-04-29T04:05:51.000Z
test_mask_rcnn_bdd.py
AaronLeong/challenagerAI-gluon-cv
a0018adad887e9045d3d356b8eb16372323888bf
[ "Apache-2.0" ]
1
2019-04-28T11:53:40.000Z
2019-04-28T11:53:40.000Z
from matplotlib import pyplot as plt from gluoncv import model_zoo, data, utils import mxnet as mx import numpy as np from PIL import Image import json from tqdm import tqdm # epoch = 1 save_path = '/data1/datasets/bdd100k/testB_result/' test_path = '/data1/datasets/bdd100k/images/100k/test2018/' test_json = [] CLAS...
33.763158
111
0.622759
0
0
0
0
0
0
0
0
594
0.230769
ec21accf9670823d9e86649f1391298f34bb5e19
300
py
Python
boj/1110.py
byeonggukgong/algorithm
d9283fdbcfe4966cd4de3e394d9fd3aa33d533a8
[ "MIT" ]
3
2018-03-11T14:10:59.000Z
2019-01-23T12:34:27.000Z
boj/1110.py
byeonggukgong/algorithm
d9283fdbcfe4966cd4de3e394d9fd3aa33d533a8
[ "MIT" ]
null
null
null
boj/1110.py
byeonggukgong/algorithm
d9283fdbcfe4966cd4de3e394d9fd3aa33d533a8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- if __name__ == '__main__': input = int(input()) output = 0 temp = input while True: temp = temp % 10 * 10 + (int(temp / 10) + temp % 10) % 10 output += 1 if input == temp: break print(output)
18.75
65
0.43
0
0
0
0
0
0
0
0
33
0.11
ec21d79eb0f508eab1e4d4b450e489d5d2153f80
1,222
py
Python
data_load.py
IdanAzuri/tensorflow-generative-model-collections
321f45f6dc0e7d4321b35a32e2eb7e864c9e0546
[ "Apache-2.0" ]
null
null
null
data_load.py
IdanAzuri/tensorflow-generative-model-collections
321f45f6dc0e7d4321b35a32e2eb7e864c9e0546
[ "Apache-2.0" ]
null
null
null
data_load.py
IdanAzuri/tensorflow-generative-model-collections
321f45f6dc0e7d4321b35a32e2eb7e864c9e0546
[ "Apache-2.0" ]
null
null
null
from __future__ import division from __future__ import print_function from __future__ import absolute_import import scipy.misc import glob import scipy import utils import tensorflow as tf """ param """ epoch = 50 batch_size = 64 lr = 0.0002 z_dim = 100 n_critic = 5 gpu_id = 3 ''' data ''' # you should prepare yo...
22.62963
117
0.739771
0
0
0
0
0
0
0
0
203
0.166121
ec2292a307aabbcf6f5e4ccd767c69ef19ef7823
153
py
Python
gifts/urls.py
Sahil1515/First-Wish-Website
de973f2a5c682b142c6faba4b127e4d83291dac5
[ "MIT" ]
null
null
null
gifts/urls.py
Sahil1515/First-Wish-Website
de973f2a5c682b142c6faba4b127e4d83291dac5
[ "MIT" ]
null
null
null
gifts/urls.py
Sahil1515/First-Wish-Website
de973f2a5c682b142c6faba4b127e4d83291dac5
[ "MIT" ]
null
null
null
from django.contrib import admin from django.urls import path from gifts import views urlpatterns = [ path('', views.gifts, name='gifts') ]
12.75
39
0.69281
0
0
0
0
0
0
0
0
9
0.058824
ec22caa7cd01e65afec1f8798f9973d911f36787
3,824
py
Python
seymour/accounts/models.py
lerouxb/seymour
124a93da67b6d6757b738469673232739ff0a4dc
[ "MIT" ]
null
null
null
seymour/accounts/models.py
lerouxb/seymour
124a93da67b6d6757b738469673232739ff0a4dc
[ "MIT" ]
null
null
null
seymour/accounts/models.py
lerouxb/seymour
124a93da67b6d6757b738469673232739ff0a4dc
[ "MIT" ]
null
null
null
import datetime from django.db import models, connection from seymour.feeds.models import Feed, Item, AccountFeed class Account(models.Model): openid = models.CharField('openid', max_length=255, null=True) firstname = models.CharField('first name', max_length=100, null=True) lastname = models.CharField('l...
37.490196
131
0.613494
3,707
0.969404
0
0
0
0
0
0
837
0.218881