hexsha
stringlengths
40
40
size
int64
6
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
247
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
247
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.04M
avg_line_length
float64
1.53
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
6
1.04M
filtered:remove_non_ascii
int64
0
538k
filtered:remove_decorators
int64
0
917k
filtered:remove_async
int64
0
722k
filtered:remove_classes
int64
-45
1M
filtered:remove_generators
int64
0
814k
filtered:remove_function_no_docstring
int64
-102
850k
filtered:remove_class_no_docstring
int64
-3
5.46k
filtered:remove_unused_imports
int64
-1,350
52.4k
filtered:remove_delete_markers
int64
0
59.6k
b70fdc8bf52039d2c2d5c4f1ddb9c314fa9b21cc
7,140
py
Python
src/datasource.py
Muhazerin/auto-star-planner
4a4a2054dacdfd614b82c300eb8760fddc0a7260
[ "MIT" ]
1
2021-06-05T17:13:47.000Z
2021-06-05T17:13:47.000Z
src/datasource.py
Muhazerin/auto-star-planner
4a4a2054dacdfd614b82c300eb8760fddc0a7260
[ "MIT" ]
null
null
null
src/datasource.py
Muhazerin/auto-star-planner
4a4a2054dacdfd614b82c300eb8760fddc0a7260
[ "MIT" ]
1
2020-12-03T02:32:13.000Z
2020-12-03T02:32:13.000Z
source = DataSource()
46.666667
117
0.594818
import requests import re from bs4 import BeautifulSoup import indexParser class DataSource: def __init__(self): self.__acad_sem_dict = None # Dict self.__chosen_acad_sem = None # String self.__course_year_value = None # List self.__course_year_key = None # ...
0
417
0
6,600
0
0
0
-13
111
5424c7e93680618774daa851b9a17447ac5087bb
421
py
Python
Library/app/migrations/0003_user_slug.py
kumarnishu/BOOKS-LIBRARY
28690850248acbe90bb47a37700f6152e047829c
[ "Apache-2.0" ]
1
2020-03-30T16:39:42.000Z
2020-03-30T16:39:42.000Z
Library/app/migrations/0003_user_slug.py
kumarnishu/BOOKS-LIBRARY
28690850248acbe90bb47a37700f6152e047829c
[ "Apache-2.0" ]
8
2021-03-19T01:21:01.000Z
2022-03-12T00:21:57.000Z
Library/app/migrations/0003_user_slug.py
kumarnishu/BOOKS-LIBRARY
28690850248acbe90bb47a37700f6152e047829c
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.0.2 on 2020-02-02 05:09
21.05
59
0.589074
# Generated by Django 3.0.2 on 2020-02-02 05:09 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('app', '0002_auto_20200201_1054'), ] operations = [ migrations.AddField( model_name='user', name='slug', ...
0
0
0
307
0
0
0
19
46
e6b9b1217c4b0f3170afd80044dc33127aaf422c
4,210
py
Python
eval_shapes.py
VLL-HD/HINT
b26c5026bd486bb392a9416430cb1dfebe5aa06f
[ "MIT" ]
14
2020-03-23T20:31:27.000Z
2022-03-02T21:12:23.000Z
eval_shapes.py
VLL-HD/HINT
b26c5026bd486bb392a9416430cb1dfebe5aa06f
[ "MIT" ]
1
2020-04-02T17:44:26.000Z
2020-05-04T21:50:35.000Z
eval_shapes.py
VLL-HD/HINT
b26c5026bd486bb392a9416430cb1dfebe5aa06f
[ "MIT" ]
4
2020-04-02T17:45:40.000Z
2021-06-24T19:12:49.000Z
configs = [ # 'plus_shape.conditional_cinn_4', # 'plus_shape.conditional_cinn_8', # 'plus_shape.conditional_hint_4_full', # 'plus_shape.conditional_hint_8_full', # 'plus_shape.unconditional_inn_4_Q', # 'plus_shape.unconditional_inn_8', # 'plus_sha...
31.41791
94
0.609026
import numpy as np import traceback import multiprocessing as mp from tqdm import tqdm from best_shape_fit import * from data import PlusShapeModel configs = [ # 'plus_shape.conditional_cinn_4', # 'plus_shape.conditional_cinn_8', # 'plus_shape.conditional_hint_4_full', ...
0
0
0
0
0
1,997
0
16
214
9d9175a033fb44ad4b48daf8451547ae55922b48
6,298
py
Python
botto/core/models/jmdict.py
MusicOnline/Tango-Legacy
6c7b65924392a182fc01686cdd3a83638a64aaa4
[ "MIT" ]
2
2019-05-27T06:41:02.000Z
2020-03-18T19:08:45.000Z
botto/core/models/jmdict.py
MusicOnline/Tango
6c7b65924392a182fc01686cdd3a83638a64aaa4
[ "MIT" ]
null
null
null
botto/core/models/jmdict.py
MusicOnline/Tango
6c7b65924392a182fc01686cdd3a83638a64aaa4
[ "MIT" ]
null
null
null
from botto.core.bot import Botto db = Botto.db # pylint: disable=no-member
34.415301
88
0.636075
from botto.core.bot import Botto db = Botto.db # pylint: disable=no-member class Entry(db.Model): # type: ignore # <entry> __tablename__ = "JMdict_Entry" id = db.Column(db.Integer, primary_key=True) # <ent_seq> def __repr__(self) -> str: return "<Entry id={0.id}>".format(self) class Writi...
0
0
0
6,005
0
0
0
0
207
06248ee30f4354aece78fbe7fb4ab9742f2eb407
1,161
py
Python
utils/parse_arguments.py
xujinzh/csk
136002da069d300fc2da9ae8530861818087ff40
[ "BSD-2-Clause" ]
4
2021-09-21T14:24:11.000Z
2022-02-27T06:46:11.000Z
utils/parse_arguments.py
xujinzh/CSK
136002da069d300fc2da9ae8530861818087ff40
[ "BSD-2-Clause" ]
null
null
null
utils/parse_arguments.py
xujinzh/CSK
136002da069d300fc2da9ae8530861818087ff40
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Author : Jinzhong Xu # @Contact : jinzhongxu@csu.ac.cn # @Time : 10/12/2020 3:56 PM # @File : parse_arguments.py # @Software: PyCharm
32.25
88
0.587425
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Author : Jinzhong Xu # @Contact : jinzhongxu@csu.ac.cn # @Time : 10/12/2020 3:56 PM # @File : parse_arguments.py # @Software: PyCharm import os from optparse import OptionParser def parse_arguments(): parser = OptionParser() parser.descrip...
0
0
0
0
0
889
0
0
73
fda6cb12c17fb53e321e374fd86da7176480a1f1
1,005
py
Python
Python OOP/OOP/Static and Class Methods/Lab/Task03.py
IvanTodorovBG/SoftUni
7b667f6905d9f695ab1484efbb02b6715f6d569e
[ "MIT" ]
1
2022-03-16T10:23:04.000Z
2022-03-16T10:23:04.000Z
Python OOP/OOP/Static and Class Methods/Lab/Task03.py
IvanTodorovBG/SoftUni
7b667f6905d9f695ab1484efbb02b6715f6d569e
[ "MIT" ]
null
null
null
Python OOP/OOP/Static and Class Methods/Lab/Task03.py
IvanTodorovBG/SoftUni
7b667f6905d9f695ab1484efbb02b6715f6d569e
[ "MIT" ]
null
null
null
first_num = Integer(10) print(first_num.value) second_num = Integer.from_roman("IV") print(second_num.value) print(Integer.from_float("2.6")) print(Integer.from_string(2.6))
25.125
72
0.579104
import math class Integer: def __init__(self, value: int): self.value = value @classmethod def from_float(cls, float_value): if type(float_value) != float: return "value is not a float" return cls(math.floor(float_value)) @classmethod def from_roman(cls, value...
0
654
0
137
0
0
0
-10
45
0bb36db59fbc86162f8a7314f21f36a272c8c5ba
2,067
py
Python
InvenTree/InvenTree/test_api.py
linucks/InvenTree
fa789036e0ae7d56ced3c9e1f2d2ff596983a365
[ "MIT" ]
null
null
null
InvenTree/InvenTree/test_api.py
linucks/InvenTree
fa789036e0ae7d56ced3c9e1f2d2ff596983a365
[ "MIT" ]
8
2020-06-06T01:14:46.000Z
2022-03-12T00:14:35.000Z
InvenTree/InvenTree/test_api.py
linucks/InvenTree
fa789036e0ae7d56ced3c9e1f2d2ff596983a365
[ "MIT" ]
null
null
null
""" Low level tests for the InvenTree API """
30.397059
122
0.652637
""" Low level tests for the InvenTree API """ from rest_framework.test import APITestCase from rest_framework import status from django.urls import reverse from django.contrib.auth import get_user_model class APITests(APITestCase): """ Tests for the InvenTree API """ fixtures = [ 'location', ...
0
0
0
1,837
0
0
0
69
114
8fbe9592818a42e980cd5c36fa7ec5bfffa7c074
146
py
Python
ex014.py
ChrysWillians/exercicios-python3
354c8684cbc9de0c734e6a40e76e2f613845de96
[ "MIT" ]
1
2021-09-26T01:08:36.000Z
2021-09-26T01:08:36.000Z
ex014.py
ChrysWillians/exercicios-python3
354c8684cbc9de0c734e6a40e76e2f613845de96
[ "MIT" ]
null
null
null
ex014.py
ChrysWillians/exercicios-python3
354c8684cbc9de0c734e6a40e76e2f613845de96
[ "MIT" ]
null
null
null
c = float(input('Digite a temperatura para ser convertida: ')) f = ((9*c)/5)+32 print('A temperatura de {}C, igual a {}F!'.format(c, f))
29.2
63
0.616438
c = float(input('Digite a temperatura para ser convertida: ')) f = ((9*c)/5)+32 print('A temperatura de {}ºC, é igual a {}ºF!'.format(c, f))
6
0
0
0
0
0
0
0
0
9f25517180c05a14e99b59867617e829be8fc282
19,378
py
Python
capsnet-arch/train.py
eaaskt/nlu
77382be572ce59f15d8ea9c5cd653615c39891d1
[ "MIT" ]
3
2019-03-11T09:15:36.000Z
2020-04-06T15:06:33.000Z
capsnet-arch/train.py
eaaskt/nlu
77382be572ce59f15d8ea9c5cd653615c39891d1
[ "MIT" ]
24
2020-03-31T11:22:54.000Z
2022-03-12T00:23:49.000Z
capsnet-arch/train.py
eaaskt/nlu
77382be572ce59f15d8ea9c5cd653615c39891d1
[ "MIT" ]
5
2020-03-29T10:04:31.000Z
2020-05-28T06:50:18.000Z
import math import os import util import errno import json import numpy as np import tensorflow as tf from seqeval.metrics import accuracy_score from seqeval.metrics import f1_score from seqeval.metrics import precision_score from seqeval.metrics import recall_score from sklearn.metrics import accuracy_score as scikit_...
45.275701
136
0.655537
import math import os from random import * import data_loader import model_s2i import util import flags import errno import json import numpy as np import tensorflow as tf from seqeval.metrics import accuracy_score from seqeval.metrics import f1_score from seqeval.metrics import precision_score from seqeval.metrics im...
0
0
0
0
0
3,650
0
12
157
5055c590ee27d86e094c6eb93148926211ad9ca4
415
py
Python
zerver/migrations/0188_userprofile_enable_login_emails.py
TylerPham2000/zulip
2e7aaba0dde5517b4a55cb0bd782f009be45e3ba
[ "Apache-2.0" ]
17,004
2015-09-25T18:27:24.000Z
2022-03-31T22:02:32.000Z
zerver/migrations/0188_userprofile_enable_login_emails.py
TylerPham2000/zulip
2e7aaba0dde5517b4a55cb0bd782f009be45e3ba
[ "Apache-2.0" ]
20,344
2015-09-25T19:02:42.000Z
2022-03-31T23:54:40.000Z
zerver/migrations/0188_userprofile_enable_login_emails.py
TylerPham2000/zulip
2e7aaba0dde5517b4a55cb0bd782f009be45e3ba
[ "Apache-2.0" ]
7,271
2015-09-25T18:48:39.000Z
2022-03-31T21:06:11.000Z
# Generated by Django 1.11.14 on 2018-08-22 09:57
21.842105
56
0.626506
# Generated by Django 1.11.14 on 2018-08-22 09:57 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("zerver", "0187_userprofile_is_billing_admin"), ] operations = [ migrations.AddField( model_name="userprofile", nam...
0
0
0
299
0
0
0
19
46
dd0482f8708b53c479a409a1122ba3e19eb16cdc
1,061
py
Python
nettest/utils.py
public0821/nettest
0fed7949526640dd55dda51ba37a98e1ab7e9109
[ "Apache-2.0" ]
2
2016-06-29T08:01:58.000Z
2020-11-25T02:51:29.000Z
nettest/utils.py
public0821/nettest
0fed7949526640dd55dda51ba37a98e1ab7e9109
[ "Apache-2.0" ]
null
null
null
nettest/utils.py
public0821/nettest
0fed7949526640dd55dda51ba37a98e1ab7e9109
[ "Apache-2.0" ]
1
2020-11-24T07:05:24.000Z
2020-11-24T07:05:24.000Z
import struct import array def mac2str(mac): """Converts mac address to string . Args: mac: 6 bytes mac address Returns: readable string """ return '%02x:%02x:%02x:%02x:%02x:%02x'%tuple(int(x) for x in struct.unpack('BBBBBB', mac)) def str2mac...
23.065217
94
0.531574
import struct import array def mac2str(mac): """Converts mac address to string . Args: mac: 6 bytes mac address Returns: readable string """ return '%02x:%02x:%02x:%02x:%02x:%02x'%tuple(int(x) for x in struct.unpack('BBBBBB', mac)) def str2mac...
0
0
0
0
0
0
0
0
0
343669861f664697fc3420138a36fe9eb392d316
21,927
py
Python
script/panda_grasp.py
Hymwgk/gpg
07bb0c3a357ba2ac21bc179ba57584fee9eda6d3
[ "BSD-2-Clause" ]
null
null
null
script/panda_grasp.py
Hymwgk/gpg
07bb0c3a357ba2ac21bc179ba57584fee9eda6d3
[ "BSD-2-Clause" ]
null
null
null
script/panda_grasp.py
Hymwgk/gpg
07bb0c3a357ba2ac21bc179ba57584fee9eda6d3
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python #coding=utf-8 """ moveit_ik_demo.py - Version 0.1 2014-01-14 Use inverse kinemtatics to move the end effector to a specified pose Created for the Pi Robot Project: http://www.pirobot.org Copyleft (c) 2014 Patrick Goebel. All lefts reserved. This program is free software;...
38.333916
136
0.634879
#!/usr/bin/env python #coding=utf-8 """ moveit_ik_demo.py - Version 0.1 2014-01-14 Use inverse kinemtatics to move the end effector to a specified pose Created for the Pi Robot Project: http://www.pirobot.org Copyleft (c) 2014 Patrick Goebel. All lefts reserved. This program is free software;...
3,447
0
0
18,469
0
0
0
439
467
3f86479e0b03f5d196f79e5392543c14b05df6c0
20,008
py
Python
opennem/db/models/opennem.py
tourdownunder/opennem
deec3e2079db9d9d84171010fd0c239170d1e7ce
[ "MIT" ]
null
null
null
opennem/db/models/opennem.py
tourdownunder/opennem
deec3e2079db9d9d84171010fd0c239170d1e7ce
[ "MIT" ]
1
2020-09-06T04:17:59.000Z
2020-09-06T04:17:59.000Z
opennem/db/models/opennem.py
tourdownunder/opennem
deec3e2079db9d9d84171010fd0c239170d1e7ce
[ "MIT" ]
null
null
null
""" OpenNEM primary schema adapted to support multiple energy sources Currently supported: - NEM - WEM """ from dictalchemy import DictableModel from sqlalchemy.ext.declarative import declarative_base Base = declarative_base(cls=DictableModel) metadata = Base.metadata
27.445816
141
0.636795
""" OpenNEM primary schema adapted to support multiple energy sources Currently supported: - NEM - WEM """ from decimal import Decimal from typing import Optional from dictalchemy import DictableModel from geoalchemy2 import Geometry from shapely import wkb from sqlalchemy import ( JSON, Boo...
0
4,540
0
14,272
0
0
0
346
544
1088673daa0097667a5fca816f207d5e564b7fe1
22
py
Python
factest/data_service/__init__.py
zzb610/factest
1e628f6fc885cd1975c2e68181caf40e2874dc08
[ "MIT" ]
4
2020-12-17T11:45:09.000Z
2020-12-20T05:42:55.000Z
factest/data_service/__init__.py
zzb610/factest
1e628f6fc885cd1975c2e68181caf40e2874dc08
[ "MIT" ]
null
null
null
factest/data_service/__init__.py
zzb610/factest
1e628f6fc885cd1975c2e68181caf40e2874dc08
[ "MIT" ]
null
null
null
name = 'data_service'
11
21
0.727273
name = 'data_service'
0
0
0
0
0
0
0
0
0
5d52583f6c7ba537e0737f4e7009f8e8792c8c36
6,037
py
Python
wifi_direct/wfd.py
sabzo/PiDroid
8f80f751424335cee89ff6455255e65c06f1ea10
[ "Apache-2.0" ]
16
2017-01-04T20:50:39.000Z
2021-09-15T17:23:34.000Z
wifi_direct/wfd.py
sabzo/PiDroid
8f80f751424335cee89ff6455255e65c06f1ea10
[ "Apache-2.0" ]
null
null
null
wifi_direct/wfd.py
sabzo/PiDroid
8f80f751424335cee89ff6455255e65c06f1ea10
[ "Apache-2.0" ]
8
2016-02-02T21:27:37.000Z
2021-04-21T11:17:04.000Z
# -*- coding: UTF-8 -*- # This file is forked from Piracast (July 2014): https://github.com/codemonkeyricky/piracast # cmd_killall_wpa_spplicant = 'killall wpa_supplicant' cmd_killall_hostapd = 'killall hostapd' cmd_iwlist_wlan0_scan = 'iwlist wlan0 scan' # ----------------------- # p2p_enable # ...
23.490272
96
0.598807
# -*- coding: UTF-8 -*- # This file is forked from Piracast (July 2014): https://github.com/codemonkeyricky/piracast # import re import time from util import get_stdout cmd_killall_wpa_spplicant = 'killall wpa_supplicant' cmd_killall_hostapd = 'killall hostapd' cmd_iwlist_wlan0_scan = 'iwlist wl...
0
0
0
0
0
5,038
0
-16
433
dbd5a54d0bb2ef3bda2378f863fa670f59924a50
2,301
py
Python
stock_portfolio/stock_portfolio/views/auth.py
tyler-fishbone/pyramid-stocks
2d7c5a9aa74d5a9eec04005a99af25048a6666df
[ "MIT" ]
null
null
null
stock_portfolio/stock_portfolio/views/auth.py
tyler-fishbone/pyramid-stocks
2d7c5a9aa74d5a9eec04005a99af25048a6666df
[ "MIT" ]
3
2019-12-26T16:42:46.000Z
2021-06-01T22:22:44.000Z
stock_portfolio/views/auth.py
tyler-fishbone/new_stock_portfolio
05ec449b4a5798f197e1e147151a1c222cb26f9d
[ "MIT" ]
null
null
null
from pyramid.response import Response # from ..sample_data import MOCK_DATA
34.343284
103
0.646241
from pyramid.response import Response from pyramid.view import view_config # from ..sample_data import MOCK_DATA from sqlalchemy.exc import DBAPIError, IntegrityError from pyramid.httpexceptions import HTTPFound, HTTPNotFound, HTTPUnauthorized, HTTPBadRequest from pyramid.security import NO_PERMISSION_REQUIRED, remembe...
0
1,815
0
0
0
0
0
186
222
cdf623d62d45366dbca8833e23fde4ea5943179d
14,782
py
Python
primehub/__init__.py
InfuseAI/primehub-python-sdk
edbdbcb3e41f0c99e4542245de1345a64f509fb4
[ "Apache-2.0" ]
10
2021-09-13T23:14:22.000Z
2022-02-06T06:07:40.000Z
primehub/__init__.py
KellenJohn/primehub-python-sdk
edbdbcb3e41f0c99e4542245de1345a64f509fb4
[ "Apache-2.0" ]
4
2021-08-10T03:10:27.000Z
2021-12-16T02:11:50.000Z
primehub/__init__.py
KellenJohn/primehub-python-sdk
edbdbcb3e41f0c99e4542245de1345a64f509fb4
[ "Apache-2.0" ]
1
2021-12-21T11:59:51.000Z
2021-12-21T11:59:51.000Z
from primehub.utils import create_logger logger = create_logger('primehub-config') __version__ = _get_version() def has_data_from_stdin(): """ Check if any data comes from stdin. :return: True if there are data from stdin, otherwise False """ import sys import select if select....
32.559471
114
0.636991
import abc import importlib import json import os import sys from typing import Union, Callable, Any from primehub.utils import group_required, create_logger, PrimeHubException from primehub.utils.core import CommandContainer from primehub.utils.decorators import cmd # noqa: F401 from primehub.utils.display import Di...
0
3,700
0
9,701
0
417
0
131
422
ce9e0db3f30d2be75fb0fc0351d471e23abcab55
168
py
Python
Werewolf/WP/__init__.py
HuangFuSL/Werewolf
4791aa4b743acb810c86e1bad6b2442b38e2821c
[ "MIT" ]
3
2020-10-24T09:04:59.000Z
2020-11-23T03:49:27.000Z
Werewolf/WP/__init__.py
HuangFuSL/Werewolf
4791aa4b743acb810c86e1bad6b2442b38e2821c
[ "MIT" ]
8
2020-11-11T04:07:53.000Z
2020-11-23T04:37:53.000Z
Werewolf/WP/__init__.py
HuangFuSL/Werewolf
4791aa4b743acb810c86e1bad6b2442b38e2821c
[ "MIT" ]
3
2020-10-18T13:23:55.000Z
2020-11-08T16:27:48.000Z
""" The protocol for the werewolf game """
18.666667
88
0.785714
""" The protocol for the werewolf game """ import os import socket import sys from .api import ChunckedData, ReceiveThread, _recv, TimeLock, KillableThread, ReadInput
0
0
0
0
0
0
0
36
89
7f0e7f9590442369c6f34ff92071d31f95b824ae
1,093
py
Python
gunicorn_logstash_formatter/gunicorn_logstash_formatter.py
alphagov/gunicorn-logstash-formatter
0787016e085b40856f2b1d07ce753523a05f8bdb
[ "MIT" ]
1
2020-05-03T09:27:12.000Z
2020-05-03T09:27:12.000Z
gunicorn_logstash_formatter/gunicorn_logstash_formatter.py
alphagov/gunicorn-logstash-formatter
0787016e085b40856f2b1d07ce753523a05f8bdb
[ "MIT" ]
2
2017-10-11T23:02:25.000Z
2019-06-04T17:26:28.000Z
gunicorn_logstash_formatter/gunicorn_logstash_formatter.py
alphagov/gunicorn-logstash-formatter
0787016e085b40856f2b1d07ce753523a05f8bdb
[ "MIT" ]
3
2017-10-11T23:16:28.000Z
2021-04-10T19:54:03.000Z
# -*- coding: utf-8 -*- """Main module.""" # this only works with post-19.7.1 gunicorn to pull in commit 610596c9 # which logs separate format and args
33.121212
73
0.505032
# -*- coding: utf-8 -*- """Main module.""" import json import logging # this only works with post-19.7.1 gunicorn to pull in commit 610596c9 # which logs separate format and args class AccessFormatter(logging.Formatter): def __init__(self, *args, **kwargs): pass def format(self, record): msg...
0
0
0
889
0
0
0
-17
66
40710d8467979f15b42d1c45bd0a92775dacde11
9,907
py
Python
src/rogerthat/bizz/news/influx/__init__.py
goubertbrent/oca-backend
b9f59cc02568aecb55d4b54aec05245790ea25fd
[ "Apache-2.0" ]
null
null
null
src/rogerthat/bizz/news/influx/__init__.py
goubertbrent/oca-backend
b9f59cc02568aecb55d4b54aec05245790ea25fd
[ "Apache-2.0" ]
null
null
null
src/rogerthat/bizz/news/influx/__init__.py
goubertbrent/oca-backend
b9f59cc02568aecb55d4b54aec05245790ea25fd
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Green Valley Belgium NV # # 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 appl...
47.401914
119
0.62683
# -*- coding: utf-8 -*- # Copyright 2020 Green Valley Belgium NV # # 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 appl...
0
0
0
0
0
8,444
0
343
473
e8eef6e7da1adab3641ffa7a4ccbd1615df1d5c7
303
py
Python
mindhome_alpha/erpnext/patches/v7_2/update_website_for_variant.py
Mindhome/field_service
3aea428815147903eb9af1d0c1b4b9fc7faed057
[ "MIT" ]
1
2021-04-29T14:55:29.000Z
2021-04-29T14:55:29.000Z
mindhome_alpha/erpnext/patches/v7_2/update_website_for_variant.py
Mindhome/field_service
3aea428815147903eb9af1d0c1b4b9fc7faed057
[ "MIT" ]
null
null
null
mindhome_alpha/erpnext/patches/v7_2/update_website_for_variant.py
Mindhome/field_service
3aea428815147903eb9af1d0c1b4b9fc7faed057
[ "MIT" ]
1
2021-04-29T14:39:01.000Z
2021-04-29T14:39:01.000Z
from __future__ import unicode_literals
23.307692
40
0.726073
from __future__ import unicode_literals import frappe def execute(): # variant must have show_in_website = 0 frappe.reload_doctype('Item') frappe.db.sql(''' update tabItem set show_variant_in_website = 1, show_in_website = 0 where show_in_website=1 and ifnull(variant_of, "")!=""''')
0
0
0
0
0
227
0
-8
45
3f80b87d12d499c59e0bbc921240b76b2fa3a219
3,381
py
Python
SyslogIP.py
sschaefervmw/vshieldSyslog
a2b42b37fdb79e7e94febec22e7bc76a6c0d6c43
[ "Unlicense" ]
2
2015-03-12T09:53:27.000Z
2015-03-13T21:25:02.000Z
SyslogIP.py
sschaefervmw/vshieldSyslog
a2b42b37fdb79e7e94febec22e7bc76a6c0d6c43
[ "Unlicense" ]
null
null
null
SyslogIP.py
sschaefervmw/vshieldSyslog
a2b42b37fdb79e7e94febec22e7bc76a6c0d6c43
[ "Unlicense" ]
null
null
null
# coding=utf-8 API_URL = "Place vCD URL Here" #Cloud API URL ending in /api/ EDGE_NAME = 'Place Edge Name Here' #Edge Gateway Name SYSLOG_IP = 'Place Syslog IP Here' #IP of syslog server USERNAME = 'Place Username Here' #Username@orgname E.g: email@domain.com@org PASSWORD = 'Place Password Here' #Password if __name_...
40.25
131
0.656906
# coding=utf-8 import requests import getpass from requests.auth import HTTPBasicAuth import xml.etree.ElementTree as ET API_URL = "Place vCD URL Here" #Cloud API URL ending in /api/ EDGE_NAME = 'Place Edge Name Here' #Edge Gateway Name SYSLOG_IP = 'Place Syslog IP Here' #IP of syslog server USERNAME = 'Place Usernam...
0
0
0
2,650
0
208
0
18
157
cd21e79a44fe5ee27387f892bb515f4bb277f8fa
5,318
py
Python
redditscript.py
Azl-Eyekay/channel-keepalive
a3aaf4fa5e716484c7ede35be37aeeab26e024fd
[ "MIT" ]
null
null
null
redditscript.py
Azl-Eyekay/channel-keepalive
a3aaf4fa5e716484c7ede35be37aeeab26e024fd
[ "MIT" ]
null
null
null
redditscript.py
Azl-Eyekay/channel-keepalive
a3aaf4fa5e716484c7ede35be37aeeab26e024fd
[ "MIT" ]
null
null
null
# Installed python3-praw, geany and ffmpeg from debian # and others from pip # Made a Reddit account, set up an application and added its client id and secret # made a white noise video named noise.mkv and downloaded 3 pieces of music as music{0-1}.mp3 import praw from PIL import Image, ImageDraw, ImageFont import url...
42.887097
246
0.657202
# Installed python3-praw, geany and ffmpeg from debian # and others from pip # Made a Reddit account, set up an application and added its client id and secret # made a white noise video named noise.mkv and downloaded 3 pieces of music as music{0-1}.mp3 import praw from PIL import Image, ImageDraw, ImageFont import url...
0
0
0
0
0
0
0
1
22
c4c26982ca660d6c3c28d85eb698c83bf6259908
210
py
Python
shot_detector/services/__init__.py
w495/shot_detector
617ff45c9c3c96bbd9a975aef15f1b2697282b9c
[ "BSD-3-Clause" ]
18
2015-09-27T21:34:18.000Z
2022-03-24T12:14:51.000Z
shot_detector/services/__init__.py
w495/shot_detector
617ff45c9c3c96bbd9a975aef15f1b2697282b9c
[ "BSD-3-Clause" ]
6
2021-03-18T21:21:35.000Z
2022-03-11T23:32:55.000Z
shot_detector/services/__init__.py
w495/shot_detector
617ff45c9c3c96bbd9a975aef15f1b2697282b9c
[ "BSD-3-Clause" ]
3
2017-09-14T20:53:26.000Z
2021-12-18T19:18:18.000Z
# -*- coding: utf8 -*- """ Services """ from __future__ import absolute_import, division, print_function
19.090909
64
0.771429
# -*- coding: utf8 -*- """ Services """ from __future__ import absolute_import, division, print_function from .base_service import BaseService from .shot_detector_service import ShotDetectorPlotService
0
0
0
0
0
0
0
53
45
bca359f6502b4247bcc9867263ccbe22ad06b24c
174
py
Python
eplot/__init__.py
SophiaHanx/eplot
1cc104bba6c41fe3cce98a24e2c722a890cef2c2
[ "MIT" ]
76
2019-02-04T05:05:56.000Z
2021-12-26T05:56:07.000Z
eplot/__init__.py
SophiaHanx/eplot
1cc104bba6c41fe3cce98a24e2c722a890cef2c2
[ "MIT" ]
5
2019-05-13T02:45:39.000Z
2022-03-27T14:57:16.000Z
eplot/__init__.py
SophiaHanx/eplot
1cc104bba6c41fe3cce98a24e2c722a890cef2c2
[ "MIT" ]
18
2019-05-13T02:45:46.000Z
2021-08-10T00:32:57.000Z
#! /usr/bin/env python # -*- coding: utf-8 -*- """ @version: 0.1 @author: pjgao @city: Nanjing @file: __init__.py.py @time: 2018/12/10 16:22 """ __version__ = '0.1.1'
15.818182
26
0.586207
#! /usr/bin/env python # -*- coding: utf-8 -*- """ @version: 0.1 @author: pjgao @city: Nanjing @file: __init__.py.py @time: 2018/12/10 16:22 """ __version__ = '0.1.1'
0
0
0
0
0
0
0
0
0
ee1b696fd0dd9bef0ddf714611f2ae67f9df1f0d
1,067
py
Python
jussi/middlewares/__init__.py
bnchdrff/jussi
79d8decde323b84cdd8331e5cbb490021ea78cee
[ "MIT" ]
null
null
null
jussi/middlewares/__init__.py
bnchdrff/jussi
79d8decde323b84cdd8331e5cbb490021ea78cee
[ "MIT" ]
null
null
null
jussi/middlewares/__init__.py
bnchdrff/jussi
79d8decde323b84cdd8331e5cbb490021ea78cee
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*-
35.566667
77
0.811621
# -*- coding: utf-8 -*- from .jsonrpc import validate_jsonrpc_request from .jussi import finalize_jussi_response from .jussi import convert_to_jussi_request from .limits import check_limits from .caching import get_response from .caching import cache_response from .update_block_num import update_last_irreversible_bloc...
0
0
0
0
0
717
0
147
178
5752b7e60dffe0e263eaf7ca7c23f9cbf7ed6ee4
5,072
py
Python
Book/chap1/python/chap1_intro.py
lorenghoh/pyman
9b4ddd52c5577fc85e2601ae3128f398f0eb673c
[ "CC0-1.0" ]
3
2020-04-30T19:50:11.000Z
2020-10-17T02:07:00.000Z
Book/chap1/python/chap1_intro.py
lorenghoh/pyman
9b4ddd52c5577fc85e2601ae3128f398f0eb673c
[ "CC0-1.0" ]
35
2020-04-21T04:25:31.000Z
2021-11-06T22:49:44.000Z
Book/chap1/python/chap1_intro.py
lorenghoh/pyman
9b4ddd52c5577fc85e2601ae3128f398f0eb673c
[ "CC0-1.0" ]
11
2020-04-21T04:33:48.000Z
2020-10-23T21:12:12.000Z
# --- # jupyter: # jupytext: # cell_metadata_filter: all # notebook_metadata_filter: all,-language_info # text_representation: # extension: .py # format_name: percent # format_version: '1.2' # jupytext_version: 1.2.1 # kernelspec: # display_name: Python 3 # language: pyth...
48.769231
474
0.743494
# --- # jupyter: # jupytext: # cell_metadata_filter: all # notebook_metadata_filter: all,-language_info # text_representation: # extension: .py # format_name: percent # format_version: '1.2' # jupytext_version: 1.2.1 # kernelspec: # display_name: Python 3 # language: pyth...
0
0
0
0
0
0
0
0
0
9e12d44f5d5d039463c31ca6d9efbeeca62f298e
5,812
py
Python
src/python/janelia_emrp/zcorr/plot_z_coords.py
JaneliaSciComp/EM_recon_pipeline
0a1076aaa0de24623014902a4c7ee9741a0730fb
[ "BSD-3-Clause" ]
null
null
null
src/python/janelia_emrp/zcorr/plot_z_coords.py
JaneliaSciComp/EM_recon_pipeline
0a1076aaa0de24623014902a4c7ee9741a0730fb
[ "BSD-3-Clause" ]
null
null
null
src/python/janelia_emrp/zcorr/plot_z_coords.py
JaneliaSciComp/EM_recon_pipeline
0a1076aaa0de24623014902a4c7ee9741a0730fb
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import sys if __name__ == '__main__': if len(sys.argv) < 4: print(f'USAGE: {sys.argv[0]} <owner> <project> <stack> <run> [label ...]') else: plot_run(owner=sys.argv[1], project=sys.argv[2], stack=sys.argv[3], run=sys...
34.188235
111
0.639195
#!/usr/bin/env python import glob import os import sys from bokeh.io import output_file from bokeh.models import SingleIntervalTicker from bokeh.plotting import figure, show def load_z_coords_file_data(z_coords_path): z_values = [] delta_values = [] layer_count = 0 first_z = None previous_corre...
0
0
0
0
0
5,141
0
31
227
18b61b5c3fb43146fb5267cd7120f9d26e8dde9f
148
py
Python
paralleldomain/constants.py
parallel-domain/pd-sdk
20e3d052a5cb612a2dd84bda7b1b5487a6a60edc
[ "Apache-2.0" ]
10
2021-11-17T17:23:49.000Z
2022-03-18T09:51:23.000Z
paralleldomain/constants.py
parallel-domain/pd-sdk
20e3d052a5cb612a2dd84bda7b1b5487a6a60edc
[ "Apache-2.0" ]
3
2021-12-02T17:16:20.000Z
2022-01-07T12:47:13.000Z
paralleldomain/constants.py
parallel-domain/pd-sdk
20e3d052a5cb612a2dd84bda7b1b5487a6a60edc
[ "Apache-2.0" ]
2
2022-03-09T07:03:54.000Z
2022-03-23T15:53:48.000Z
CAMERA_MODEL_OPENCV_PINHOLE: str = "opencv_pinhole" CAMERA_MODEL_OPENCV_FISHEYE: str = "opencv_fisheye" CAMERA_MODEL_PD_FISHEYE: str = "pd_fisheye"
37
51
0.837838
CAMERA_MODEL_OPENCV_PINHOLE: str = "opencv_pinhole" CAMERA_MODEL_OPENCV_FISHEYE: str = "opencv_fisheye" CAMERA_MODEL_PD_FISHEYE: str = "pd_fisheye"
0
0
0
0
0
0
0
0
0
c1639b26a8e3699cd950a8a4897360c1ca8da877
2,395
py
Python
panoptes_aggregation/tests/reducer_tests/test_question_reducer.py
CKrawczyk/python-reducers-for-caesar
9c5d9e072906d3fde2497fa61a66e4c8c0113ec2
[ "Apache-2.0" ]
1
2018-11-27T16:43:37.000Z
2018-11-27T16:43:37.000Z
panoptes_aggregation/tests/reducer_tests/test_question_reducer.py
CKrawczyk/python-reducers-for-caesar
9c5d9e072906d3fde2497fa61a66e4c8c0113ec2
[ "Apache-2.0" ]
2
2017-07-27T09:05:03.000Z
2019-04-03T20:28:31.000Z
panoptes_aggregation/tests/reducer_tests/test_question_reducer.py
CKrawczyk/python-reducers-for-caesar
9c5d9e072906d3fde2497fa61a66e4c8c0113ec2
[ "Apache-2.0" ]
2
2017-07-26T17:30:17.000Z
2017-07-27T09:14:51.000Z
import unittest from collections import Counter extracted_data = [ {'a': 1, 'b': 1}, {'a': 1}, {'b': 1, 'c': 1}, {'b': 1, 'a': 1} ] processed_data = [ Counter({'a': 1, 'b': 1}), Counter({'a': 1}), Counter({'b': 1, 'c': 1}), Counter({'b': 1, 'a': 1}) ] processed_data_pairs = [ Coun...
27.528736
89
0.66096
import unittest from collections import Counter import flask import json from panoptes_aggregation.reducers.question_reducer import process_data, question_reducer from panoptes_aggregation.reducers.test_utils import extract_in_data extracted_data = [ {'a': 1, 'b': 1}, {'a': 1}, {'b': 1, 'c': 1}, {'b': ...
0
0
0
1,607
0
0
0
96
111
7cf76b633da3ca24efc2b044a305e83bcc121a93
905
py
Python
chapter_08/03_date_printer.py
SergeHall/Tony-Gaddis-Python-4th
24e7c70fbd196ff531a5e4e7f6f5021c4b4177ba
[ "MIT" ]
2
2021-04-07T03:26:37.000Z
2021-07-26T07:38:49.000Z
chapter_08/03_date_printer.py
SergeHall/Tony-Gaddis-Python-4th
24e7c70fbd196ff531a5e4e7f6f5021c4b4177ba
[ "MIT" ]
null
null
null
chapter_08/03_date_printer.py
SergeHall/Tony-Gaddis-Python-4th
24e7c70fbd196ff531a5e4e7f6f5021c4b4177ba
[ "MIT" ]
null
null
null
# 3. . , # , //. # 12 2018 . main()
25.138889
71
0.614365
# 3. Принтер дат. Напишите программу, которая считывает от пользователя # строковое значение, содержащее дату в формате дд/мм/гггг. Она должна # напечатать дату в формате 12 марта 2018 г. def main(): # get the date from the user. date = get_date() # convert date to like March 12, 2014 literal_date = c...
282
0
0
0
0
637
0
0
69
b763443b905c931d81818a74873ed7fa19410bcf
2,461
py
Python
Mailbot/cogs/utils/strManip/owo.py
tekofu/Mailbot
a0475d20ae01c9f09c1174a8ddaf3a92cf1707a2
[ "MIT" ]
null
null
null
Mailbot/cogs/utils/strManip/owo.py
tekofu/Mailbot
a0475d20ae01c9f09c1174a8ddaf3a92cf1707a2
[ "MIT" ]
null
null
null
Mailbot/cogs/utils/strManip/owo.py
tekofu/Mailbot
a0475d20ae01c9f09c1174a8ddaf3a92cf1707a2
[ "MIT" ]
null
null
null
# Port from https://github.com/zuzak/owo """MIT License Original substitutions: Copyright (c) 2018 Eva (Nepeta) JavaScript library: Copyright (c) 2019 Douglas Gardner <douglas@chippy.ch> Python library: Copyright (c) 2019 tekofu Permission is hereby granted, free of charge, to any person obtaining a copy...
23.893204
78
0.60382
# Port from https://github.com/zuzak/owo """MIT License Original substitutions: Copyright (c) 2018 Eva (Nepeta) JavaScript library: Copyright (c) 2019 Douglas Gardner <douglas@chippy.ch> Python library: Copyright (c) 2019 tekofu Permission is hereby granted, free of charge, to any person obtaining a copy...
52
0
0
0
0
517
0
-8
46
16cc64d424b0814ed9440ed104da575c4aaeb25f
7,366
py
Python
darling_ansible/python_venv/lib/python3.7/site-packages/oci/cims/models/limit_item.py
revnav/sandbox
f9c8422233d093b76821686b6c249417502cf61d
[ "Apache-2.0" ]
null
null
null
darling_ansible/python_venv/lib/python3.7/site-packages/oci/cims/models/limit_item.py
revnav/sandbox
f9c8422233d093b76821686b6c249417502cf61d
[ "Apache-2.0" ]
null
null
null
darling_ansible/python_venv/lib/python3.7/site-packages/oci/cims/models/limit_item.py
revnav/sandbox
f9c8422233d093b76821686b6c249417502cf61d
[ "Apache-2.0" ]
1
2020-06-25T03:12:58.000Z
2020-06-25T03:12:58.000Z
# coding: utf-8 # Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
32.307018
245
0.63508
# coding: utf-8 # Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
0
6,813
0
0
0
0
0
106
104
522211a4f5a97c6fa2d49305fa8392bcbc68d35d
12,541
py
Python
pytests/sg/sginstalltests.py
sumedhpb/testrunner
9ff887231c75571624abc31a3fb5248110e01203
[ "Apache-2.0" ]
14
2015-02-06T02:47:57.000Z
2020-03-14T15:06:05.000Z
pytests/sg/sginstalltests.py
sumedhpb/testrunner
9ff887231c75571624abc31a3fb5248110e01203
[ "Apache-2.0" ]
3
2019-02-27T19:29:11.000Z
2021-06-02T02:14:27.000Z
pytests/sg/sginstalltests.py
sumedhpb/testrunner
9ff887231c75571624abc31a3fb5248110e01203
[ "Apache-2.0" ]
108
2015-03-26T08:58:49.000Z
2022-03-21T05:21:39.000Z
help_string = ['This script creates an init service to run a sync_gateway instance.', 'If you want to install more than one service instance', 'create additional services with different names.', '', 'sync_gateway_service_install.sh', ' -h --help', ' --r...
55.49115
128
0.667889
from sg.sg_base import GatewayBaseTest from remote.remote_util import RemoteMachineShellConnection import time help_string = ['This script creates an init service to run a sync_gateway instance.', 'If you want to install more than one service instance', 'create additional services with di...
0
0
0
11,546
0
0
0
45
89
bc824221bd86159252cc6ddafd65edc617bbc567
3,713
py
Python
build-tools/garbage-files-generator.py
neuro-inc/neuro-cli
72bd2a825cc319bbc79c6df16f33380796fad4f5
[ "Apache-2.0" ]
5
2019-09-24T15:37:47.000Z
2020-08-04T09:25:29.000Z
build-tools/garbage-files-generator.py
neuromation/platform-client-python
72bd2a825cc319bbc79c6df16f33380796fad4f5
[ "Apache-2.0" ]
748
2019-08-05T14:57:11.000Z
2020-09-28T09:54:41.000Z
build-tools/garbage-files-generator.py
neuro-inc/neuro-cli
72bd2a825cc319bbc79c6df16f33380796fad4f5
[ "Apache-2.0" ]
3
2019-10-07T19:25:22.000Z
2020-06-29T01:41:26.000Z
#!/usr/bin/env python if __name__ == "__main__": main()
31.466102
88
0.587934
#!/usr/bin/env python import argparse import math import os import pathlib import re from rich.console import Console from rich.progress import Progress def main(): args = _parse_args() generate_data( args.total_size, args.files_count, args.branching_factor, args.output_dir, ...
0
0
0
0
0
3,398
0
-23
271
aa2432989d267f1697e3b7870f5529c883957cbd
416
py
Python
app.py
youqad/oxford-hack-2020
7c4bf02f0dc52ce99cee721a3b7b3344060018f2
[ "MIT" ]
null
null
null
app.py
youqad/oxford-hack-2020
7c4bf02f0dc52ce99cee721a3b7b3344060018f2
[ "MIT" ]
null
null
null
app.py
youqad/oxford-hack-2020
7c4bf02f0dc52ce99cee721a3b7b3344060018f2
[ "MIT" ]
null
null
null
from flask import Flask app = Flask(__name__) app.config['SECRET_KEY'] = 'mA7OumwKVZQr9ousrge1OVQxQr51WEs7'
23.111111
75
0.730769
from flask import Flask, render_template, request, url_for, flash, redirect from werkzeug.exceptions import abort app = Flask(__name__) app.config['SECRET_KEY'] = 'mA7OumwKVZQr9ousrge1OVQxQr51WEs7' @app.route('/') def index(): return render_template('index.html') @app.route('/info') def info(): return rende...
0
148
0
0
0
0
0
68
91
b1b31f991a09674904d9957324ed536384780435
2,369
py
Python
analysis/active/saccades/deconvolve-saccades.py
goldman-lab/oculomotor-response-timescales
fa9f73e6f6a256a5983248b30c6348a50f1fdfcf
[ "BSD-3-Clause" ]
null
null
null
analysis/active/saccades/deconvolve-saccades.py
goldman-lab/oculomotor-response-timescales
fa9f73e6f6a256a5983248b30c6348a50f1fdfcf
[ "BSD-3-Clause" ]
null
null
null
analysis/active/saccades/deconvolve-saccades.py
goldman-lab/oculomotor-response-timescales
fa9f73e6f6a256a5983248b30c6348a50f1fdfcf
[ "BSD-3-Clause" ]
1
2022-01-05T18:26:33.000Z
2022-01-05T18:26:33.000Z
import sys sys.path.append('../../../tools/') import os import scipy.io as sio import tqdm if __name__ == "__main__": file_names = [ ('090711e_0006',), ('090811c_0002',), ('090811d_0002','090811d_0004',), ('091111a_0001', '091111a_0003'), ('091111c_0003',), ('091211a_0002', '091211a_0005')] best_nu...
37.603175
104
0.633179
import numpy as np import sys sys.path.append('../../../tools/') import fitting_functions import os import scipy.io as sio import scipy.optimize import tqdm def deconvolveEyePos(trange, eye_pos, plant, ind=-1): plant_model = fitting_functions.exponentialModel(trange, plant) dt = trange[2]-trange[1] def...
0
0
0
0
0
566
0
0
89
7f099f5157ae9f8859ce21a33bfc1f8961efeb77
7,032
py
Python
models/backbone/shufflenet.py
Minerva-J/Pytorch-Segmentation-multi-models
0845b54d4fbc8d38c70f158054b7ab1be2b3ceb9
[ "Apache-2.0" ]
84
2020-06-10T11:50:10.000Z
2022-03-28T15:24:27.000Z
models/backbone/shufflenet.py
eeaesa/Pytorch-Segmentation-multi-models
0845b54d4fbc8d38c70f158054b7ab1be2b3ceb9
[ "Apache-2.0" ]
4
2020-08-10T07:22:08.000Z
2022-01-28T01:58:25.000Z
models/backbone/shufflenet.py
eeaesa/Pytorch-Segmentation-multi-models
0845b54d4fbc8d38c70f158054b7ab1be2b3ceb9
[ "Apache-2.0" ]
28
2020-07-02T11:04:56.000Z
2022-02-16T13:57:20.000Z
# -*- coding: utf-8 -*- # Thanks to https://github.com/ericsun99/Shufflenet-v2-Pytorch import torch.nn as nn __all__ = ['shufflenet_v2', 'ShuffleNetV2'] if __name__ == "__main__": """Testing """ from torchsummary import summary model = shufflenet_v2(pretrained=True, output_stride=16) summa...
34.135922
115
0.567975
# -*- coding: utf-8 -*- # Thanks to https://github.com/ericsun99/Shufflenet-v2-Pytorch import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable from collections import OrderedDict from torch.nn import init import math __all__ = ['shufflenet_v2', 'ShuffleNetV2'] def conv_...
0
96
0
5,420
0
864
0
23
270
3305587d836a98367649a9f623ff4f20d1af90de
1,826
py
Python
backend/importer/import_tmks.py
warent/ACLU
94c617658284b93ac1edb6c01193fb344f8f60cc
[ "MIT" ]
23
2017-07-13T04:47:43.000Z
2021-12-12T09:33:08.000Z
backend/importer/import_tmks.py
warent/ACLU
94c617658284b93ac1edb6c01193fb344f8f60cc
[ "MIT" ]
188
2017-07-13T04:40:27.000Z
2021-07-20T05:42:30.000Z
backend/importer/import_tmks.py
warent/ACLU
94c617658284b93ac1edb6c01193fb344f8f60cc
[ "MIT" ]
16
2017-08-17T05:05:58.000Z
2019-03-18T21:54:31.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2017 # # Distributed under terms of the MIT license. import logging import logging.config import os logging.config.fileConfig( os.path.join(os.path.dirname(os.path.realpath(__file__)), 'logging.conf')) logger = logging.getLogger("aclu_importer.tmks") ...
26.463768
131
0.7092
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright © 2017 # # Distributed under terms of the MIT license. import click import datetime import logging import logging.config import multiprocessing import os import sys import uuid from utilities import get_features_from_geojson from utilities import get_organi...
2
780
0
0
0
340
0
50
246
dc2fa87cd670ce4ae43ad47ddaa88ef5cbdd69cf
112
py
Python
Marauders_GUI/kirk.py
kmackenzieii/marauders-map
0027d2880cec8e5ef77b7e5c6454f43ef17b9867
[ "MIT" ]
null
null
null
Marauders_GUI/kirk.py
kmackenzieii/marauders-map
0027d2880cec8e5ef77b7e5c6454f43ef17b9867
[ "MIT" ]
null
null
null
Marauders_GUI/kirk.py
kmackenzieii/marauders-map
0027d2880cec8e5ef77b7e5c6454f43ef17b9867
[ "MIT" ]
null
null
null
width = 300 height = 450 box_size = 35 x = width / box_size y = height / box_size File = "/interface/kirk.gif"
14
28
0.678571
width = 300 height = 450 box_size = 35 x = width / box_size y = height / box_size File = "/interface/kirk.gif"
0
0
0
0
0
0
0
0
0
66441229a6c1d50bf2de571106f41bcdf21efda4
989
py
Python
discovery-provider/alembic/versions/f775fb87f5ff_add_skipped_transaction_level_column.py
lucylow/audius-protocol
5ef93462f9dc7df01a15877c02ca79b9a7d99236
[ "Apache-2.0" ]
1
2022-03-27T21:40:36.000Z
2022-03-27T21:40:36.000Z
discovery-provider/alembic/versions/f775fb87f5ff_add_skipped_transaction_level_column.py
abelxmendoza/audius-protocol
33757e1b722a4be97960086b98b26ae3a75ee56b
[ "Apache-2.0" ]
null
null
null
discovery-provider/alembic/versions/f775fb87f5ff_add_skipped_transaction_level_column.py
abelxmendoza/audius-protocol
33757e1b722a4be97960086b98b26ae3a75ee56b
[ "Apache-2.0" ]
null
null
null
"""add skipped_transaction level column Revision ID: f775fb87f5ff Revises: be27a2794f75 Create Date: 2022-01-12 22:32:24.949547 """ # revision identifiers, used by Alembic. revision = "f775fb87f5ff" down_revision = "be27a2794f75" branch_labels = None depends_on = None
26.026316
88
0.697674
"""add skipped_transaction level column Revision ID: f775fb87f5ff Revises: be27a2794f75 Create Date: 2022-01-12 22:32:24.949547 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = "f775fb87f5ff" down_revision = "be27a2794f75" branch_labels = None depends_on = None ...
0
0
0
0
0
621
0
3
90
cb86331692b61d5b15915b797e85955b1ce6bdaa
344
py
Python
Doc/includes/sqlite3/adapter_point_2.py
shawwn/cpython
0ff8a3b374286d2218fc18f47556a5ace202dad3
[ "0BSD" ]
52,316
2015-01-01T15:56:25.000Z
2022-03-31T23:19:01.000Z
Doc/includes/sqlite3/adapter_point_2.py
shawwn/cpython
0ff8a3b374286d2218fc18f47556a5ace202dad3
[ "0BSD" ]
25,286
2015-03-03T23:18:02.000Z
2022-03-31T23:17:27.000Z
Doc/includes/sqlite3/adapter_point_2.py
shawwn/cpython
0ff8a3b374286d2218fc18f47556a5ace202dad3
[ "0BSD" ]
31,623
2015-01-01T13:29:37.000Z
2022-03-31T19:55:06.000Z
import sqlite3 sqlite3.register_adapter(Point, adapt_point) con = sqlite3.connect(":memory:") cur = con.cursor() p = Point(4.0, -3.2) cur.execute("select ?", (p,)) print(cur.fetchone()[0]) con.close()
17.2
44
0.630814
import sqlite3 class Point: def __init__(self, x, y): self.x, self.y = x, y def adapt_point(point): return "%f;%f" % (point.x, point.y) sqlite3.register_adapter(Point, adapt_point) con = sqlite3.connect(":memory:") cur = con.cursor() p = Point(4.0, -3.2) cur.execute("select ?", (p,)) print(cur.fetc...
0
0
0
51
0
42
0
0
46
64b3ce3a7dd6f9e321707f00bb7be83f35d3e438
177
py
Python
src/test/shedule test/schedule_0.5.0.py
dev-gmmahs/block-vote-service
cc1e296f4bfff657961a50e05150ad5b0f7479e5
[ "MIT" ]
4
2018-08-28T10:14:58.000Z
2020-02-14T07:49:20.000Z
src/test/shedule test/schedule_0.5.0.py
dev-gmmahs/block-vote-service
cc1e296f4bfff657961a50e05150ad5b0f7479e5
[ "MIT" ]
17
2018-08-29T01:57:04.000Z
2022-02-12T02:49:52.000Z
src/test/shedule test/schedule_0.5.0.py
dev-gmmahs/block-vote-service
cc1e296f4bfff657961a50e05150ad5b0f7479e5
[ "MIT" ]
5
2018-08-27T12:02:10.000Z
2018-12-07T20:54:52.000Z
# schedule 0.5.0 import schedule import time # 1 schedule.every().minutes.do(job) while True: schedule.run_pending() time.sleep(1)
12.642857
32
0.666667
# schedule 0.5.0 import schedule import time def job(): print("호출 됨") # 1분마다 호출 schedule.every().minutes.do(job) while True: schedule.run_pending() time.sleep(1)
24
0
0
0
0
4
0
0
23
47f5a4c8ff80d736fd6553d71572644d4ce13d3b
739
py
Python
back-end/credentials.py
tamasandacian/Flask-Angular-EmployeeSearch
dfe4fd825de36eabdf9b293f8e566e44a5a49ebf
[ "MIT" ]
3
2019-07-20T20:19:47.000Z
2022-01-06T16:44:05.000Z
back-end/credentials.py
tamasandacian/Flask-Angular-EmployeeSearch
dfe4fd825de36eabdf9b293f8e566e44a5a49ebf
[ "MIT" ]
9
2020-09-06T14:09:14.000Z
2022-03-02T04:55:41.000Z
back-end/credentials.py
tamasandacian/Flask-Angular-EmployeeSearch
dfe4fd825de36eabdf9b293f8e566e44a5a49ebf
[ "MIT" ]
null
null
null
import os from dotenv import load_dotenv from pathlib import Path env_path = Path('.') / '.env' load_dotenv(dotenv_path=env_path) ############################# CONNECTION TO ELASTICSEARCH LOCALHOST ############################# # username = os.environ.get('ELASTICSEARCH_USERNAME_LOCALHOST') # password = os.environ.g...
43.470588
97
0.554804
import os from dotenv import load_dotenv from pathlib import Path env_path = Path('.') / '.env' load_dotenv(dotenv_path=env_path) ############################# CONNECTION TO ELASTICSEARCH LOCALHOST ############################# # username = os.environ.get('ELASTICSEARCH_USERNAME_LOCALHOST') # password = os.environ.g...
0
0
0
0
0
0
0
0
0
d3d36bed3f73ffc3b77760185d28d8fe4c701b22
3,132
py
Python
benchmark/bench_objectify.py
skeptycal/lxml
32ac7a3bdc8faf2104a77787ed18f2096d0a7346
[ "BSD-3-Clause" ]
null
null
null
benchmark/bench_objectify.py
skeptycal/lxml
32ac7a3bdc8faf2104a77787ed18f2096d0a7346
[ "BSD-3-Clause" ]
1
2020-07-07T04:35:41.000Z
2020-07-07T04:35:41.000Z
benchmark/bench_objectify.py
skeptycal/lxml
32ac7a3bdc8faf2104a77787ed18f2096d0a7346
[ "BSD-3-Clause" ]
null
null
null
import benchbase ############################################################ # Benchmarks ############################################################ if __name__ == "__main__": benchbase.main(BenchMark)
26.1
70
0.58014
from itertools import * import benchbase from benchbase import with_text, children, nochange ############################################################ # Benchmarks ############################################################ class BenchMark(benchbase.TreeBenchMark): repeat100 = range(100) repeat1000 = ra...
0
1,815
0
1,004
0
0
0
32
67
d20d5b327d487d24d93236afb3de25b6fe501f5e
12,392
py
Python
sdk/python/pulumi_proxmox/ct/outputs.py
meyskens/pulumi-proxmox
bf48570690350be68fa554e1cec376212eb449ab
[ "ECL-2.0", "Apache-2.0" ]
16
2021-01-11T11:26:19.000Z
2022-01-23T02:32:34.000Z
sdk/python/pulumi_proxmox/ct/outputs.py
meyskens/pulumi-proxmox
bf48570690350be68fa554e1cec376212eb449ab
[ "ECL-2.0", "Apache-2.0" ]
2
2021-01-29T08:15:46.000Z
2021-10-17T16:33:19.000Z
sdk/python/pulumi_proxmox/ct/outputs.py
meyskens/pulumi-proxmox
bf48570690350be68fa554e1cec376212eb449ab
[ "ECL-2.0", "Apache-2.0" ]
4
2021-04-06T00:36:05.000Z
2021-12-16T14:25:07.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import pulumi from .. import _utilities, _tables __all__ = [ 'ContainerClone', 'ContainerConsole', 'ContainerCpu', 'Con...
30.902743
98
0.633393
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from .. import _utilitie...
0
11,304
0
0
0
0
0
31
388
9ee5b034b8a1988afc54329a5bec46ecaa4b519c
4,585
py
Python
vizier/api/webservice/__init__.py
VizierDB/web-api-async
e99f43df3df80ad5647f57d805c339257336ac73
[ "ECL-2.0", "Apache-2.0" ]
2
2019-10-21T03:01:39.000Z
2020-06-05T01:43:00.000Z
vizier/api/webservice/__init__.py
VizierDB/web-api-async
e99f43df3df80ad5647f57d805c339257336ac73
[ "ECL-2.0", "Apache-2.0" ]
56
2019-07-12T21:16:03.000Z
2020-11-06T23:29:22.000Z
vizier/api/webservice/__init__.py
VizierDB/web-api-async
e99f43df3df80ad5647f57d805c339257336ac73
[ "ECL-2.0", "Apache-2.0" ]
2
2020-02-07T19:56:55.000Z
2020-08-07T11:17:51.000Z
# Copyright (C) 2017-2019 New York University, # University at Buffalo, # Illinois Institute of Technology. # # 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 th...
33.224638
113
0.627481
# Copyright (C) 2017-2019 New York University, # University at Buffalo, # Illinois Institute of Technology. # # 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 th...
0
1,479
0
0
0
0
0
55
180
316e27aa43683da3ab30191f818a1621683e1504
3,228
py
Python
http_helper.py
uk-gov-mirror/alphagov.github-actions-runner-orchestration
9803e0c96d3da3c800d8c809f06065a611a65a10
[ "MIT" ]
8
2021-03-19T17:40:51.000Z
2021-12-24T04:18:28.000Z
http_helper.py
uk-gov-mirror/alphagov.github-actions-runner-orchestration
9803e0c96d3da3c800d8c809f06065a611a65a10
[ "MIT" ]
3
2021-03-15T15:55:30.000Z
2021-06-07T10:42:40.000Z
http_helper.py
uk-gov-mirror/alphagov.github-actions-runner-orchestration
9803e0c96d3da3c800d8c809f06065a611a65a10
[ "MIT" ]
2
2021-04-10T17:16:39.000Z
2021-04-10T20:14:41.000Z
import hmac import hashlib import base64 import json import time def extractAndValidateBody( body: str, key: str = "", signature: str = "", isBase64: bool = False, with_validate: bool = True, ) -> dict: """ Basic parsing of the body, including optional validation of a HMAC, ...
29.888889
125
0.550186
import hmac import hashlib import base64 import json import re import time def extractAndValidateBody( body: str, key: str = "", signature: str = "", isBase64: bool = False, with_validate: bool = True, ) -> dict: """ Basic parsing of the body, including optional validation ...
0
0
0
0
0
0
0
-12
23
6726cbedef2c6f18fa62a6fb72c6c2851af790bb
50
py
Python
tests/tests/test.py
cbsi-dto/KubernetesJobOperator
32f23c20adaa7db63e35a103f466207908063b43
[ "MIT" ]
35
2020-02-10T16:55:41.000Z
2022-03-18T01:25:00.000Z
tests/tests/test.py
LamaAni/KubernetesJobOperator
32f23c20adaa7db63e35a103f466207908063b43
[ "MIT" ]
26
2020-02-10T05:36:44.000Z
2022-03-02T18:44:47.000Z
tests/tests/test.py
cbsi-dto/KubernetesJobOperator
32f23c20adaa7db63e35a103f466207908063b43
[ "MIT" ]
8
2020-02-28T23:24:07.000Z
2021-11-29T21:35:46.000Z
from airflow import version print(version.version)
25
27
0.86
from airflow import version print(version.version)
0
0
0
0
0
0
0
0
0
9e4a27f78a5c2ba5e353dcd5fc86de8de8171e03
1,723
py
Python
geonode/geonode/maps/__init__.py
ttungbmt/BecaGIS_GeoPortal
6c05f9fc020ec4ccf600ba2503a06c2231443920
[ "MIT" ]
null
null
null
geonode/geonode/maps/__init__.py
ttungbmt/BecaGIS_GeoPortal
6c05f9fc020ec4ccf600ba2503a06c2231443920
[ "MIT" ]
null
null
null
geonode/geonode/maps/__init__.py
ttungbmt/BecaGIS_GeoPortal
6c05f9fc020ec4ccf600ba2503a06c2231443920
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ######################################################################### # # Copyright (C) 2016 OSGeo # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 ...
44.179487
96
0.598375
# -*- coding: utf-8 -*- ######################################################################### # # Copyright (C) 2016 OSGeo # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 ...
0
0
0
684
0
0
0
80
68
d343e3206562b2f8211d80e497a5ea3ebe66d36a
3,970
py
Python
draalcore/middleware/tests/test_login.py
jojanper/draalcore
3d3f5a53efe32c721c34d7e48267328a4e9e8402
[ "MIT" ]
1
2017-04-25T10:54:55.000Z
2017-04-25T10:54:55.000Z
draalcore/middleware/tests/test_login.py
jojanper/draalcore
3d3f5a53efe32c721c34d7e48267328a4e9e8402
[ "MIT" ]
1
2022-02-10T06:48:36.000Z
2022-02-10T06:48:36.000Z
draalcore/middleware/tests/test_login.py
jojanper/draalcore
3d3f5a53efe32c721c34d7e48267328a4e9e8402
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """Login middleware tests""" # System imports import logging # Project imports logger = logging.getLogger(__name__)
31.015625
105
0.678086
#!/usr/bin/env python # -*- coding: utf-8 -*- """Login middleware tests""" # System imports import logging from mock import MagicMock, patch from datetime import datetime, timedelta from django.http import HttpRequest from django.conf import settings from django.contrib import auth from django.urls import reverse # P...
0
719
0
2,639
0
0
0
198
245
f1c8a2ea1e6774516b221761cec538d39be7d6c1
254
py
Python
learn-python/sort_with_key.py
barissimsek/gopython
7e2c1bdb20b2a908c601794ea9dbf71ea035a869
[ "Apache-2.0" ]
null
null
null
learn-python/sort_with_key.py
barissimsek/gopython
7e2c1bdb20b2a908c601794ea9dbf71ea035a869
[ "Apache-2.0" ]
null
null
null
learn-python/sort_with_key.py
barissimsek/gopython
7e2c1bdb20b2a908c601794ea9dbf71ea035a869
[ "Apache-2.0" ]
null
null
null
ips = [ '10.0.0.5', '10.5.3.1', '192.168.11.10', '2.2.2.2', '100.0.0.1', '20.3.2.4' ] print(sort_ips(ips))
12.095238
52
0.566929
ips = [ '10.0.0.5', '10.5.3.1', '192.168.11.10', '2.2.2.2', '100.0.0.1', '20.3.2.4' ] def getKey(item): return tuple(int(part) for part in item.split('.')) def sort_ips(iplist): return sorted(ips, key=getKey) print(sort_ips(ips))
0
0
0
0
0
81
0
0
46
472bac29ae211663cfbeeaa2790296ad3609df06
4,913
py
Python
src/glusterfsweb/glusternodestate.py
aravindavk/glusterfs-web
5ffacd4ac614a524b4e118b7f4aa68f12453b82a
[ "BSD-3-Clause" ]
10
2015-08-28T10:18:05.000Z
2019-10-04T03:45:25.000Z
src/glusterfsweb/glusternodestate.py
iesool/glusterfs-web
5ffacd4ac614a524b4e118b7f4aa68f12453b82a
[ "BSD-3-Clause" ]
null
null
null
src/glusterfsweb/glusternodestate.py
iesool/glusterfs-web
5ffacd4ac614a524b4e118b7f4aa68f12453b82a
[ "BSD-3-Clause" ]
7
2015-11-21T00:59:49.000Z
2022-02-21T20:37:00.000Z
# -*- coding: utf-8 -*- """ glusternodestate.py :copyright: (c) 2013 by Aravinda VK :license: BSD, GPL v2, see LICENSE for more details. """ _glusterfs_events_funcs = {} if __name__ == "__main__": main()
24.565
77
0.607165
# -*- coding: utf-8 -*- """ glusternodestate.py :copyright: (c) 2013 by Aravinda VK :license: BSD, GPL v2, see LICENSE for more details. """ import argparse import errno import os from functools import wraps import sys import requests from glusterfstools import volumes import nodestatedb as _db from conf...
0
2,846
0
27
0
1,251
0
5
545
c91d9e8b4b3fd15318d5312b088f30df2d69e23d
940
py
Python
array/defuse_the_bomb.py
elenaborisova/LeetCode-Solutions
98376aab7fd150a724e316357ae5ea46988d9eac
[ "MIT" ]
null
null
null
array/defuse_the_bomb.py
elenaborisova/LeetCode-Solutions
98376aab7fd150a724e316357ae5ea46988d9eac
[ "MIT" ]
null
null
null
array/defuse_the_bomb.py
elenaborisova/LeetCode-Solutions
98376aab7fd150a724e316357ae5ea46988d9eac
[ "MIT" ]
null
null
null
print(decrypt([5, 7, 1, 4], 3)) print(decrypt([1, 2, 3, 4], 0)) print(decrypt([2, 4, 9, 3], -2))
21.860465
44
0.370213
def decrypt(code, k): decoded = [] if k > 0: for i in range(len(code)): num = 0 idx = i count = 0 while count < k: if idx == len(code): idx = 0 num += code[idx] idx += 1 ...
0
0
0
0
0
819
0
0
22
865161f80d1b8ceda72b675814ede88a53fd25f6
1,321
py
Python
extrairdados/lpl springs 21/dragons.py
pedrograngeiro/Webcrasping-E-sports-Wiki
d5f6f1a0577b7ff2e2796bfd18b412f296256fe9
[ "MIT" ]
null
null
null
extrairdados/lpl springs 21/dragons.py
pedrograngeiro/Webcrasping-E-sports-Wiki
d5f6f1a0577b7ff2e2796bfd18b412f296256fe9
[ "MIT" ]
null
null
null
extrairdados/lpl springs 21/dragons.py
pedrograngeiro/Webcrasping-E-sports-Wiki
d5f6f1a0577b7ff2e2796bfd18b412f296256fe9
[ "MIT" ]
null
null
null
import requests from bs4 import BeautifulSoup import csv cont = 0 i = 0 j = 0 source = requests.get('https://lol.gamepedia.com/LPL/2021_Season/Spring_Season/Scoreboards/Week_10').text soup = BeautifulSoup(source, 'html.parser') times = soup.find_all('span', "teamname") kills = soup.find_all('div', "sb-footer-item s...
23.589286
105
0.643452
import requests from bs4 import BeautifulSoup import csv cont = 0 i = 0 j = 0 source = requests.get('https://lol.gamepedia.com/LPL/2021_Season/Spring_Season/Scoreboards/Week_10').text soup = BeautifulSoup(source, 'html.parser') times = soup.find_all('span', "teamname") kills = soup.find_all('div', "sb-footer-item s...
0
0
0
0
0
0
0
0
0
9090ec2dfef9312f57c4b22062703c36c0d45f2c
6,375
py
Python
tests/python_tests/ryw_benchmark.py
sfc-gh-bvr/foundationdb
7594f5c0f92d2582dae717ce0244c11642b27dd4
[ "Apache-2.0" ]
1
2022-02-23T07:17:32.000Z
2022-02-23T07:17:32.000Z
tests/python_tests/ryw_benchmark.py
sfc-gh-bvr/foundationdb
7594f5c0f92d2582dae717ce0244c11642b27dd4
[ "Apache-2.0" ]
null
null
null
tests/python_tests/ryw_benchmark.py
sfc-gh-bvr/foundationdb
7594f5c0f92d2582dae717ce0244c11642b27dd4
[ "Apache-2.0" ]
1
2022-03-01T12:28:03.000Z
2022-03-01T12:28:03.000Z
#!/usr/bin/env python # # ryw_benchmark.py # # This source file is part of the FoundationDB open source project # # Copyright 2013-2018 Apple Inc. and the FoundationDB project authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. #...
32.19697
93
0.586667
#!/usr/bin/env python # # ryw_benchmark.py # # This source file is part of the FoundationDB open source project # # Copyright 2013-2018 Apple Inc. and the FoundationDB project authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. #...
0
0
0
4,606
0
0
0
-1
89
9cc587f7aa5a1c467dbabad1cd923174c7d37d14
2,836
py
Python
example/generateExampleIFP.py
whitesides1/spify
5e7ec10f96d486ec15167ebe09bc5d9c05e7f0a8
[ "BSD-3-Clause" ]
1
2021-10-20T21:32:32.000Z
2021-10-20T21:32:32.000Z
example/generateExampleIFP.py
LLNL/spify
6b8386837de7398a43d0440c3b229cb4cefebdf9
[ "BSD-3-Clause" ]
null
null
null
example/generateExampleIFP.py
LLNL/spify
6b8386837de7398a43d0440c3b229cb4cefebdf9
[ "BSD-3-Clause" ]
null
null
null
#!/bin/env python import os, sys #Root of spify src directory SPIFY_SRC_DIR = os.path.join(os.getcwd(),'..') #Name your parser spify_parser_name = "ExampleIFP" spify_parser_params = [] #Specify parameters spify_parser_params.append( { 'name':'boolOption', 'type':'bool', 'shortDesc':'My Boolean Option',...
19.971831
82
0.680536
#!/bin/env python import os,sys #Root of spify src directory SPIFY_SRC_DIR = os.path.join(os.getcwd(),'..') #Name your parser spify_parser_name = "ExampleIFP" spify_parser_params = [] #Specify parameters spify_parser_params.append( { 'name':'boolOption', 'type':'bool', 'shortDesc':'My Boolean Option', ...
0
0
0
0
0
0
0
-1
0
8eb50fbdaf93c046a32c9ce8f6cfefb2ba329d1a
1,749
py
Python
init.py
substancegrise/POKEMON_TP
641c5be5a641c39a52c6e382528218a36807badb
[ "Xnet", "X11" ]
null
null
null
init.py
substancegrise/POKEMON_TP
641c5be5a641c39a52c6e382528218a36807badb
[ "Xnet", "X11" ]
null
null
null
init.py
substancegrise/POKEMON_TP
641c5be5a641c39a52c6e382528218a36807badb
[ "Xnet", "X11" ]
null
null
null
from bs4 import BeautifulSoup import mysql.connector conn = mysql.connector.connect(host="localhost", user="root", password="root", database="pokedex", port=8889) cursor = conn.cursor(buffered=True) # connexion et rcupration des donnes / parse du site #response = requests.get("https://pokemondb.net/pokedex/all") #h...
26.104478
159
0.563751
import requests from bs4 import BeautifulSoup import mysql.connector conn = mysql.connector.connect(host="localhost", user="root", password="root", database="pokedex", port=8889) cursor = conn.cursor(buffered=True) # connexion et récupération des données / parse du site #response = requests.get("https://pokemondb.n...
6
0
0
0
0
0
0
-6
22
6a97bb611be63764ae92d04e937cf473eb3bec37
191,812
pyt
Python
Create arcgis project tool.pyt
traderboy/collector-tools
2afa61a0f93095461c6b324ef9641786a969c0a7
[ "MIT" ]
null
null
null
Create arcgis project tool.pyt
traderboy/collector-tools
2afa61a0f93095461c6b324ef9641786a969c0a7
[ "MIT" ]
null
null
null
Create arcgis project tool.pyt
traderboy/collector-tools
2afa61a0f93095461c6b324ef9641786a969c0a7
[ "MIT" ]
null
null
null
import arcpy import os import os import copy import ConfigParser import logging import sys Config = ConfigParser.ConfigParser() #logging.basicConfig(filename="logfile.txt") logger = logging.getLogger(__name__) logger.setLevel(logging.INFO) # create a file handler handler = logging.FileHandler("logfile.txt") handler...
49.270999
1,296
0.61883
import subprocess import arcpy from arcpy import env import sqlite3 import xml.etree.ElementTree import os import json import zipfile from arcpy import mapping import os from xml.dom.minidom import parse from datetime import datetime import time import copy import shutil import types import ConfigParser import copy imp...
0
0
0
74,969
0
111,729
0
-34
1,585
55facd052781622c3e1a9c0e26c779edb3f62050
1,313
py
Python
test/cases/response/text.py
zefirka/bobot
76d4f9e8d1cf57341ae1c709b46d7f9ceea5064d
[ "MIT" ]
5
2016-08-07T06:05:05.000Z
2017-01-12T20:19:28.000Z
test/cases/response/text.py
zefirka/bobot
76d4f9e8d1cf57341ae1c709b46d7f9ceea5064d
[ "MIT" ]
1
2016-12-15T16:28:01.000Z
2016-12-16T09:26:27.000Z
test/cases/response/text.py
zefirka/bobot
76d4f9e8d1cf57341ae1c709b46d7f9ceea5064d
[ "MIT" ]
2
2016-08-07T09:38:59.000Z
2016-10-05T16:10:35.000Z
"Testcases for text messages" from .. import Case from bobot.Rule import Rule from bobot.Response import Text responseAsTextDict = Case.Case([ Rule({ 'match': 'text', 'response': { 'text': 'Waiting for text' } }) ], [ { 'expected': [Case.Expectation('Waiting fo...
21.177419
67
0.514851
"Testcases for text messages" from .. import Case from bobot.Rule import Rule from bobot.Response import Text responseAsTextDict = Case.Case([ Rule({ 'match': 'text', 'response': { 'text': 'Waiting for text' } }) ], [ { 'expected': [Case.Expectation('Waiting fo...
0
0
0
0
0
0
0
0
0
7fdd40e4ebe3b02e3d9613f13bc2c9e4556a6616
5,977
py
Python
axon/db/sql/repository.py
gitvipin/validation-app-engine
5581c506bd9d7f1810edc9ae25faec0761f2c840
[ "BSD-2-Clause" ]
null
null
null
axon/db/sql/repository.py
gitvipin/validation-app-engine
5581c506bd9d7f1810edc9ae25faec0761f2c840
[ "BSD-2-Clause" ]
null
null
null
axon/db/sql/repository.py
gitvipin/validation-app-engine
5581c506bd9d7f1810edc9ae25faec0761f2c840
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2019 VMware, Inc. All Rights Reserved. # SPDX-License-Identifier: BSD-2 License # The full license information can be found in LICENSE.txt # in the root directory of this project.
35.158824
77
0.655011
#!/usr/bin/env python # Copyright (c) 2019 VMware, Inc. All Rights Reserved. # SPDX-License-Identifier: BSD-2 License # The full license information can be found in LICENSE.txt # in the root directory of this project. import uuid from sqlalchemy.orm import joinedload from sqlalchemy.sql import func from axon.db.sql....
0
0
0
5,381
0
0
0
73
297
b759390c7b719a8979700c907dcbf9dda1a7735f
856
py
Python
test3d.py
ivandumas/Algoritmos
6ba6e548f4d0150a052346a53e11cc40fa234fd5
[ "MIT" ]
null
null
null
test3d.py
ivandumas/Algoritmos
6ba6e548f4d0150a052346a53e11cc40fa234fd5
[ "MIT" ]
null
null
null
test3d.py
ivandumas/Algoritmos
6ba6e548f4d0150a052346a53e11cc40fa234fd5
[ "MIT" ]
null
null
null
from py3dbp import Packer, Bin, Item packer = Packer() packer.add_bin(Bin('small', 300,300,200,5)) packer.add_bin(Bin('big', 500,600,400,8)) packer.add_item(Item('Producto 1',45,60,70,0.5)) packer.add_item(Item('Producto 2',30,50,30,0.7)) packer.add_item(Item('Producto 3',20,70,70,1)) packer.add_item(Item('Producto ...
29.517241
64
0.560748
from py3dbp import Packer, Bin, Item packer = Packer() packer.add_bin(Bin('small', 300,300,200,5)) packer.add_bin(Bin('big', 500,600,400,8)) packer.add_item(Item('Producto 1',45,60,70,0.5)) packer.add_item(Item('Producto 2',30,50,30,0.7)) packer.add_item(Item('Producto 3',20,70,70,1)) packer.add_item(Item('Producto ...
0
0
0
0
0
0
0
0
0
31e4b8813206b272d5411d76736c75a9b6ad48fb
840
py
Python
Beginner/day-3-5-exercise.py
pathilink/TheAppBrewery
d8dc6c7c6908aca8ce039450dfb8f3c16891c8eb
[ "MIT" ]
1
2021-06-02T12:55:24.000Z
2021-06-02T12:55:24.000Z
Beginner/day-3-5-exercise.py
pathilink/TheAppBrewery
d8dc6c7c6908aca8ce039450dfb8f3c16891c8eb
[ "MIT" ]
null
null
null
Beginner/day-3-5-exercise.py
pathilink/TheAppBrewery
d8dc6c7c6908aca8ce039450dfb8f3c16891c8eb
[ "MIT" ]
null
null
null
# Don't change the code below print("Welcome to the Love Calculator!") name1 = input("What is your name? \n") name2 = input("What is their name? \n") # Don't change the code above #Write your code below this line names_concat = name1.lower() + name2.lower() names_true_total = names_concat.count('t') + names_con...
36.521739
120
0.695238
# 🚨 Don't change the code below 👇 print("Welcome to the Love Calculator!") name1 = input("What is your name? \n") name2 = input("What is their name? \n") # 🚨 Don't change the code above 👆 #Write your code below this line 👇 names_concat = name1.lower() + name2.lower() names_true_total = names_concat.count('t') +...
20
0
0
0
0
0
0
0
0
eb3b96adabc5946dd2424b870a549c05eed80663
6,557
py
Python
input_adj_pipeline.py
Lednik7/SMART_Product
069f63ec944747352b8609d103e7ffb5023c798f
[ "Apache-2.0" ]
2
2021-03-21T18:07:04.000Z
2022-01-23T10:18:20.000Z
input_adj_pipeline.py
Lednik7/SMART_Product
069f63ec944747352b8609d103e7ffb5023c798f
[ "Apache-2.0" ]
null
null
null
input_adj_pipeline.py
Lednik7/SMART_Product
069f63ec944747352b8609d103e7ffb5023c798f
[ "Apache-2.0" ]
null
null
null
import os import pymorphy2 import pickle PATH = 'models/' with open(os.path.join(PATH, 'tfidf.pkl'), 'rb') as f: tfidf = pickle.load(f) time_related = ['', ' ', '', '', '', ''] specials_to_remove = [ '.', '"', "'", '?', '(', ')', '`', ] specials_to_replace = [ '-', '\\', '/', ',' ] key_pos ...
37.901734
116
0.617813
import pandas as pd import os import pymorphy2 from sklearn.preprocessing import MinMaxScaler from sklearn.feature_extraction.text import CountVectorizer, TfidfVectorizer import numpy as np import pickle PATH = 'models/' with open(os.path.join(PATH, 'tfidf.pkl'), 'rb') as f: tfidf = pickle.load(f) tim...
98
0
0
0
0
5,611
0
75
416
269b2b608f55030cd416d3cd10c67de0ffea7a94
2,175
py
Python
rebound/rebound/tests/test_shearingsheet.py
rodluger/ttv-devil
e534e4f3cd75db951cba54441f7a5458c87e0cf9
[ "MIT" ]
null
null
null
rebound/rebound/tests/test_shearingsheet.py
rodluger/ttv-devil
e534e4f3cd75db951cba54441f7a5458c87e0cf9
[ "MIT" ]
null
null
null
rebound/rebound/tests/test_shearingsheet.py
rodluger/ttv-devil
e534e4f3cd75db951cba54441f7a5458c87e0cf9
[ "MIT" ]
null
null
null
import unittest if __name__ == "__main__": unittest.main()
33.984375
70
0.512644
import rebound import unittest import math import numpy as np class TestShearingSheet(unittest.TestCase): def test_saturnsrings(self): sim = rebound.Simulation() OMEGA = 0.00013143527 # [1/s] sim.ri_sei.OMEGA = OMEGA surface_density = 400. # kg/m^2 particle_densi...
0
0
0
2,042
0
0
0
-20
89
b2a466cb655eb0070b424a1359656da5287dd289
4,282
py
Python
examples/self_supervised/common.py
sandutsar/catalyst
55a3a557cb9276149cf2f70381878d87264e71c2
[ "Apache-2.0" ]
4
2019-12-14T07:27:09.000Z
2021-03-23T14:34:37.000Z
examples/self_supervised/common.py
sandutsar/catalyst
55a3a557cb9276149cf2f70381878d87264e71c2
[ "Apache-2.0" ]
null
null
null
examples/self_supervised/common.py
sandutsar/catalyst
55a3a557cb9276149cf2f70381878d87264e71c2
[ "Apache-2.0" ]
null
null
null
from typing import Dict, Optional from datasets import datasets from torch.utils.data import DataLoader from catalyst.contrib import nn from catalyst.contrib.models.cv.encoders import ResnetEncoder from catalyst.data.dataset.self_supervised import SelfSupervisedDatasetWrapper def add_arguments(parser) -> None: ...
31.255474
96
0.671649
from typing import Dict, Optional from datasets import datasets import torch from torch.utils.data import DataLoader from catalyst.contrib import nn from catalyst.contrib.models.cv.encoders import ResnetEncoder from catalyst.data.dataset.self_supervised import SelfSupervisedDatasetWrapper def add_arguments(parser) ...
0
0
0
598
0
0
0
-9
45
63a068b07249210cbb884b5404a8565cf36c1246
20,121
py
Python
versgedropt.py
Kunstenpunt/versgedropt
b1cc889d601f3ad4b1e86e6c7a054cf09ad281bb
[ "Apache-2.0" ]
null
null
null
versgedropt.py
Kunstenpunt/versgedropt
b1cc889d601f3ad4b1e86e6c7a054cf09ad281bb
[ "Apache-2.0" ]
1
2021-06-02T00:46:21.000Z
2021-06-02T00:46:21.000Z
versgedropt.py
Kunstenpunt/versgedropt
b1cc889d601f3ad4b1e86e6c7a054cf09ad281bb
[ "Apache-2.0" ]
null
null
null
import sys from datetime import datetime if __name__ == "__main__": tst = sys.argv[1] if len(sys.argv) > 1 else False vg = Versgedropt(test=tst) vg.set_mbids(mscbrnz_path="") if vg.test: vg.get_drops_for_musicbrainz_belgians() vg.generate_website() vg.put_website_online...
40.648485
196
0.551315
import spotipy import sys import musicbrainzngs from spotipy.oauth2 import SpotifyClientCredentials from requests import get, exceptions from json import loads from dateparser import parse from pandas import DataFrame, read_excel from bs4 import BeautifulSoup from time import sleep from datetime import datetime, timede...
0
0
0
19,027
0
0
0
73
492
c7f7911950c25ab495d084c77ad18ed923650d20
42
py
Python
tests/components/pushbullet/__init__.py
domwillcode/home-assistant
f170c80bea70c939c098b5c88320a1c789858958
[ "Apache-2.0" ]
30,023
2016-04-13T10:17:53.000Z
2020-03-02T12:56:31.000Z
tests/components/pushbullet/__init__.py
jagadeeshvenkatesh/core
1bd982668449815fee2105478569f8e4b5670add
[ "Apache-2.0" ]
31,101
2020-03-02T13:00:16.000Z
2022-03-31T23:57:36.000Z
tests/components/pushbullet/__init__.py
jagadeeshvenkatesh/core
1bd982668449815fee2105478569f8e4b5670add
[ "Apache-2.0" ]
11,956
2016-04-13T18:42:31.000Z
2020-03-02T09:32:12.000Z
"""Tests for the pushbullet component."""
21
41
0.714286
"""Tests for the pushbullet component."""
0
0
0
0
0
0
0
0
0
1638445b983d8d6ecbff1ab862d979b7aba9bc68
5,321
py
Python
sosia/processing/tests/test_querying.py
sosia-dev/sosia
d4d2d5edb0cd1d085b5a457eb6d19bf8e9fea7f5
[ "MIT" ]
14
2019-03-12T22:07:47.000Z
2022-03-08T14:05:05.000Z
sosia/processing/tests/test_querying.py
sosia-dev/sosia
d4d2d5edb0cd1d085b5a457eb6d19bf8e9fea7f5
[ "MIT" ]
31
2018-10-15T16:02:44.000Z
2021-04-09T08:13:44.000Z
sosia/processing/tests/test_querying.py
sosia-dev/sosia
d4d2d5edb0cd1d085b5a457eb6d19bf8e9fea7f5
[ "MIT" ]
2
2020-01-09T06:47:09.000Z
2020-12-05T13:21:03.000Z
# -*- coding: utf-8 -*- """Tests for processing.querying module.""" from os.path import expanduser from sosia.establishing import connect_database test_cache = expanduser("~/.sosia/test.sqlite") test_conn = connect_database(test_cache) test_id = 53164702100 year = 2017 refresh = 30
39.708955
83
0.66698
# -*- coding: utf-8 -*- """Tests for processing.querying module.""" from os.path import expanduser from nose.tools import assert_equal, assert_true from string import Template from sosia.establishing import connect_database from sosia.processing import base_query, count_citations, create_queries,\ query_pubs_by_...
0
0
0
0
0
4,646
0
130
251
87cb912625c5f0172dccede1f05b6398960d3c64
3,004
py
Python
data/scripts/weather/weather.py
obi-two/GameServer
7d37024e2291a97d49522610cd8f1dbe5666afc2
[ "MIT" ]
20
2015-02-23T15:11:56.000Z
2022-03-18T20:56:48.000Z
data/scripts/weather/weather.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
null
null
null
data/scripts/weather/weather.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
20
2015-04-04T16:35:59.000Z
2022-03-24T14:54:37.000Z
# swgpy from swgpy import utility, weather from swgpy.weather import WeatherEvent, WeatherSequence # modules service_mgr = kernel.serviceManager() weather_svc = service_mgr.weatherService() #This script is called every 30 minutes. #Weather duration is now set in minutes: weather_event(duration(mins),weatherType,cloud...
61.306122
121
0.778296
# swgpy from swgpy import app, utility, weather from swgpy.weather import WeatherEvent, WeatherSequence # modules import random service_mgr = kernel.serviceManager() weather_svc = service_mgr.weatherService() #This script is called every 30 minutes. #Weather duration is now set in minutes: weather_event(duration(mins...
0
0
0
0
0
165
0
-3
44
bad18646aa55721ad9b73e97436ebeaa678b78df
3,353
py
Python
run.py
tomplays/raspberry-car
1458b0ed698232bc03133248b5ff616f3b6f3290
[ "MIT" ]
6
2015-07-13T10:19:55.000Z
2018-11-08T13:16:55.000Z
run.py
tomplays/raspberry-car
1458b0ed698232bc03133248b5ff616f3b6f3290
[ "MIT" ]
null
null
null
run.py
tomplays/raspberry-car
1458b0ed698232bc03133248b5ff616f3b6f3290
[ "MIT" ]
1
2021-02-13T19:49:16.000Z
2021-02-13T19:49:16.000Z
#!/usr/bin/env python # blou # Raspberry Car v1.xx # MIT Licence - Tom Wersinger https://github.com/tomplays/raspberry-car/ import RPi.GPIO as io # pins attribution #motor A in3_pin = 4 in4_pin = 17 #motor B in1_pin = 27 in2_pin = 22 #Blinking orange leds o_pin = 24 or_pin = 23 # always stop motors after xx seco...
22.503356
72
0.554131
#!/usr/bin/env python # blou # Raspberry Car v1.xx # MIT Licence - Tom Wersinger https://github.com/tomplays/raspberry-car/ import RPi.GPIO as io import time # pins attribution #motor A in3_pin = 4 in4_pin = 17 #motor B in1_pin = 27 in2_pin = 22 #Blinking orange leds o_pin = 24 or_pin = 23 # always stop motors a...
0
0
0
0
0
1,795
0
-10
132
0d575dfb068e866aa2a4d160851da5eda651fa00
1,971
py
Python
jdcloud_sdk/services/monitor/models/UpdateCmAlarmSpec.py
jdcloud-demo/jdcloud-sdk-python
fddc2af24031c597948b8b8091978ac7e01a2695
[ "Apache-2.0" ]
null
null
null
jdcloud_sdk/services/monitor/models/UpdateCmAlarmSpec.py
jdcloud-demo/jdcloud-sdk-python
fddc2af24031c597948b8b8091978ac7e01a2695
[ "Apache-2.0" ]
null
null
null
jdcloud_sdk/services/monitor/models/UpdateCmAlarmSpec.py
jdcloud-demo/jdcloud-sdk-python
fddc2af24031c597948b8b8091978ac7e01a2695
[ "Apache-2.0" ]
null
null
null
# coding=utf8 # Copyright 2018 JDCLOUD.COM # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
39.42
186
0.679351
# coding=utf8 # Copyright 2018 JDCLOUD.COM # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
480
0
0
1,119
0
0
0
0
23
e12340c19552627ebf352b0af090b6a4d4ab0aac
728
py
Python
ella/articles/admin.py
petrlosa/ella
120eac56b46b7b79cdeea0582d2711f5a4b0bf51
[ "BSD-3-Clause" ]
75
2015-01-17T08:30:08.000Z
2022-02-23T19:05:36.000Z
ella/articles/admin.py
petrlosa/ella
120eac56b46b7b79cdeea0582d2711f5a4b0bf51
[ "BSD-3-Clause" ]
3
2016-04-21T22:16:37.000Z
2021-07-08T12:47:37.000Z
ella/articles/admin.py
petrlosa/ella
120eac56b46b7b79cdeea0582d2711f5a4b0bf51
[ "BSD-3-Clause" ]
26
2015-02-12T04:13:41.000Z
2022-01-08T05:26:27.000Z
from django.contrib import admin from ella.articles.models import Article admin.site.register(Article, ArticleAdmin)
36.4
96
0.677198
from django.contrib import admin from django.utils.translation import ugettext_lazy as _ from ella.core.admin import PublishableAdmin, ListingInlineAdmin, RelatedInlineAdmin from ella.articles.models import Article class ArticleAdmin(PublishableAdmin): ordering = ('-publish_from',) fieldsets = ( (_("...
0
0
0
443
0
0
0
97
68
611d92992de419cc5427a81b74c872d81cd71fb4
23,971
py
Python
pyraptor/model/structures.py
yfredrix/pyraptor
a00b1d5576cd4126611483409e293d283cb7917d
[ "MIT" ]
null
null
null
pyraptor/model/structures.py
yfredrix/pyraptor
a00b1d5576cd4126611483409e293d283cb7917d
[ "MIT" ]
null
null
null
pyraptor/model/structures.py
yfredrix/pyraptor
a00b1d5576cd4126611483409e293d283cb7917d
[ "MIT" ]
null
null
null
"""Datatypes""" from __future__ import annotations from itertools import compress from typing import List import numpy as np def same_type_and_id(first, second): """Same type and ID""" return type(first) is type(second) and first.id == second.id def pareto_set(labels: List[Label], keep_equa...
29.889027
110
0.597931
"""Datatypes""" from __future__ import annotations from itertools import compress from collections import defaultdict from operator import attrgetter from typing import List, Dict, Tuple from dataclasses import dataclass, field from copy import copy import attr import numpy as np from loguru import logger from pyrap...
3
15,557
0
6,489
0
0
0
62
547
c39d8d353d6f99bd28e3afe51aff55b07c44c66f
363
py
Python
util/mqtt_db_dump.py
mgroseman/mqtt-repeater
3205d0b39036c1f782e3bb8554ebad19e5582cc0
[ "MIT" ]
3
2016-07-29T20:09:21.000Z
2022-03-24T20:27:33.000Z
util/mqtt_db_dump.py
mgroseman/mqtt-repeater
3205d0b39036c1f782e3bb8554ebad19e5582cc0
[ "MIT" ]
null
null
null
util/mqtt_db_dump.py
mgroseman/mqtt-repeater
3205d0b39036c1f782e3bb8554ebad19e5582cc0
[ "MIT" ]
null
null
null
#!/usr/bin/env python #This needs to be fully commented and have a Usage message # Copyright (c) 2016 - mgroseman - Mike Roseman # MIT License import sqlite3 SQLDB='db/mqtt_repeater.db' conn = sqlite3.connect(SQLDB) db = conn.cursor() for row in db.execute('SELECT * FROM states ORDER BY last_timestamp'): pr...
20.166667
70
0.699725
#!/usr/bin/env python #This needs to be fully commented and have a Usage message # Copyright (c) 2016 - mgroseman - Mike Roseman # MIT License import sqlite3 SQLDB='db/mqtt_repeater.db' conn = sqlite3.connect(SQLDB) db = conn.cursor() for row in db.execute('SELECT * FROM states ORDER BY last_timestamp'): pr...
0
0
0
0
0
0
0
0
0
3aff9b937003ede708026bb44e8f51b4ba682f45
7,628
py
Python
algorithms/embdi/EmbDI/schema_matching.py
Soton-Song/valentine
9a47859f912540cdbe961ed3585201d3accd07be
[ "Apache-2.0" ]
null
null
null
algorithms/embdi/EmbDI/schema_matching.py
Soton-Song/valentine
9a47859f912540cdbe961ed3585201d3accd07be
[ "Apache-2.0" ]
null
null
null
algorithms/embdi/EmbDI/schema_matching.py
Soton-Song/valentine
9a47859f912540cdbe961ed3585201d3accd07be
[ "Apache-2.0" ]
null
null
null
import gensim.models as models
30.882591
117
0.552832
import argparse import warnings from operator import itemgetter import gensim.models as models import mlflow def parse_args(): parser = argparse.ArgumentParser() parser.add_argument('-i', '--input_file', action='store', required=True, type=str, help='Input embeddings file.') parser.add_argument('-d', '--...
0
0
0
0
0
7,302
0
-10
295
43cc65b8437584ccacdf26fa5aeab9bce6192420
4,498
py
Python
rsi_stoch_signalmod_djcommie.py
adamje42/Binance-volatility-trading-bot
13523c82ce4e5255d3c38de8db5c2ebde053525a
[ "MIT" ]
null
null
null
rsi_stoch_signalmod_djcommie.py
adamje42/Binance-volatility-trading-bot
13523c82ce4e5255d3c38de8db5c2ebde053525a
[ "MIT" ]
null
null
null
rsi_stoch_signalmod_djcommie.py
adamje42/Binance-volatility-trading-bot
13523c82ce4e5255d3c38de8db5c2ebde053525a
[ "MIT" ]
null
null
null
# Available indicators here: https://python-tradingview-ta.readthedocs.io/en/latest/usage.html#retrieving-the-analysis from tradingview_ta import Interval # use for environment variables # use if needed to pass args to external modules # used for directory handling OSC_INDICATORS = ['RSI', 'Stoch.RSI'] # Indicators t...
40.890909
220
0.648288
# Available indicators here: https://python-tradingview-ta.readthedocs.io/en/latest/usage.html#retrieving-the-analysis from tradingview_ta import TA_Handler, Interval, Exchange # use for environment variables import os # use if needed to pass args to external modules import sys # used for directory handling import glo...
0
0
0
0
0
3,385
0
-26
156
c50af4199b3acde52f62b4fb1d0b9c1d7a9a253f
7,827
py
Python
balloon_learning_environment/env/generative_wind_field.py
taodav/balloon-learning-environment
4beb45f52ab7127a4c051df25894738420e8e691
[ "Apache-2.0" ]
null
null
null
balloon_learning_environment/env/generative_wind_field.py
taodav/balloon-learning-environment
4beb45f52ab7127a4c051df25894738420e8e691
[ "Apache-2.0" ]
null
null
null
balloon_learning_environment/env/generative_wind_field.py
taodav/balloon-learning-environment
4beb45f52ab7127a4c051df25894738420e8e691
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2021 The Balloon Learning Environment Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
38.940299
80
0.681743
# coding=utf-8 # Copyright 2021 The Balloon Learning Environment Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
0
307
0
6,421
0
0
0
137
289
75369ccfbfd56359bbe939f3b80a1491d0f64ef6
125
py
Python
test/client/data_storage/生成逻辑.py
sf-fl/federatedML
6cb48525d662ba1bad12702622f2b43f67da67cf
[ "Apache-2.0" ]
null
null
null
test/client/data_storage/生成逻辑.py
sf-fl/federatedML
6cb48525d662ba1bad12702622f2b43f67da67cf
[ "Apache-2.0" ]
null
null
null
test/client/data_storage/生成逻辑.py
sf-fl/federatedML
6cb48525d662ba1bad12702622f2b43f67da67cf
[ "Apache-2.0" ]
1
2020-11-17T08:45:49.000Z
2020-11-17T08:45:49.000Z
# =IF(D2=1,IF(RAND()>0.5,NORMINV(RAND(),75,2),NORMINV(RAND(),85,2)),IF(RAND()>0.5,NORMINV(RAND(),70,2),NORMINV(RAND(),80,2)))
125
125
0.616
# =IF(D2=1,IF(RAND()>0.5,NORMINV(RAND(),75,2),NORMINV(RAND(),85,2)),IF(RAND()>0.5,NORMINV(RAND(),70,2),NORMINV(RAND(),80,2)))
0
0
0
0
0
0
0
0
0
85315571c7e446e5cdd29c10abe9c3f4b6e48628
423
py
Python
shabanipy/quantum_hall/__init__.py
ShabaniLab/DataAnalysis
e234b7d0e4ff8ecc11e58134e6309a095abcd2c0
[ "MIT" ]
6
2019-06-25T20:01:03.000Z
2022-03-25T23:15:57.000Z
shabanipy/quantum_hall/__init__.py
ShabaniLab/DataAnalysis
e234b7d0e4ff8ecc11e58134e6309a095abcd2c0
[ "MIT" ]
null
null
null
shabanipy/quantum_hall/__init__.py
ShabaniLab/DataAnalysis
e234b7d0e4ff8ecc11e58134e6309a095abcd2c0
[ "MIT" ]
5
2019-06-11T17:21:54.000Z
2021-08-24T14:45:08.000Z
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # Copyright 2019 by ShabaniPy Authors, see AUTHORS for more details. # # Distributed under the terms of the MIT license. # # The full license is in the file LICENCE, distributed with this software. # ----------------...
38.454545
79
0.451537
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # Copyright 2019 by ShabaniPy Authors, see AUTHORS for more details. # # Distributed under the terms of the MIT license. # # The full license is in the file LICENCE, distributed with this software. # ----------------...
0
0
0
0
0
0
0
0
0
f97e6091781d14277df8d8e2098f687f75cf426f
15,930
py
Python
pegasus/sih-anomalias/sih_composite_detector_outlier.py
SecexSaudeTCU/PegaSUS
0e24c00595e8a7376680dfb2e5aa42e1e9eb7770
[ "MIT" ]
null
null
null
pegasus/sih-anomalias/sih_composite_detector_outlier.py
SecexSaudeTCU/PegaSUS
0e24c00595e8a7376680dfb2e5aa42e1e9eb7770
[ "MIT" ]
null
null
null
pegasus/sih-anomalias/sih_composite_detector_outlier.py
SecexSaudeTCU/PegaSUS
0e24c00595e8a7376680dfb2e5aa42e1e9eb7770
[ "MIT" ]
1
2020-08-19T19:31:42.000Z
2020-08-19T19:31:42.000Z
import pandas as pd NOME_COLUNA = 'TX_QTD' NAO_NORMAL = 'NO NORMAL' AP_S_LOG = 'NORMAL APS LOG' NORMAL_ORIGINAL = 'NORMAL ORIGINAL' AP_S_BOXCOX = 'NORMAL APS BOXCOX' # TODO: Implemenar tambm CompositeSIADetector e checar o que existe em comum em termos de lgica ## ANALISE 2 - municipio x procedimento - a...
47.981928
124
0.696359
from outliers.estatistica.zscore import ZScore, ZScoreModificado from outliers.estatistica.iqr import InterquartileRange from outliers.densidade.lof import LOF from outliers.proximidade.isolation_forest import IsolationForest from outliers.detector import DetectorOutlier from sih.sih_facade import SIHFacade import sys ...
94
0
0
2,562
0
11,893
0
233
538
59a6208aa3aa279f34787ee181cc22bd8893cd57
2,811
py
Python
frocket/common/helpers/utils.py
DynamicYieldProjects/funnel-rocket
70963fddc0881cebdc6da1af2654d412f95d660c
[ "Apache-2.0" ]
56
2021-04-04T08:15:33.000Z
2022-03-14T06:31:20.000Z
frocket/common/helpers/utils.py
DynamicYieldProjects/funnel-rocket
70963fddc0881cebdc6da1af2654d412f95d660c
[ "Apache-2.0" ]
19
2021-04-01T20:35:48.000Z
2022-03-30T22:07:27.000Z
frocket/common/helpers/utils.py
DynamicYieldProjects/funnel-rocket
70963fddc0881cebdc6da1af2654d412f95d660c
[ "Apache-2.0" ]
2
2021-07-14T13:47:00.000Z
2021-08-12T07:58:32.000Z
"""For everything but the kitchen sink.""" # Copyright 2021 The Funnel Rocket Maintainers # # 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...
30.554348
109
0.677339
"""For everything but the kitchen sink.""" # Copyright 2021 The Funnel Rocket Maintainers # # 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
174
0
0
0
312
0
-25
186
e13a954566afd8fd45f8e48d543bd6a3bc071277
740
py
Python
util/logo/serialize_dataset.py
yyyliu/latent-space-cartography
c731029bfe540ac9ef703e832aac6774c01f075a
[ "BSD-3-Clause" ]
59
2019-04-09T16:18:19.000Z
2021-11-29T10:44:26.000Z
util/logo/serialize_dataset.py
yyyliu/latent-space-cartography
c731029bfe540ac9ef703e832aac6774c01f075a
[ "BSD-3-Clause" ]
4
2020-08-17T12:05:28.000Z
2021-06-28T14:13:12.000Z
util/logo/serialize_dataset.py
yyyliu/latent-space-cartography
c731029bfe540ac9ef703e832aac6774c01f075a
[ "BSD-3-Clause" ]
11
2019-05-15T18:48:53.000Z
2021-08-14T10:33:22.000Z
import h5py import os import numpy as np dim = 12288 base = '/home/yliu0/data/' pin= os.path.join(base, 'logos.hdf5') out = os.path.join(base, './latent/latent{}.h5'.format(dim)) num_chns = 3 img_size = 64 if __name__ == '__main__': # clean if os.path.exists(out): os.remove(out) fin = h5py.File...
19.473684
60
0.540541
import h5py import os import numpy as np dim = 12288 base = '/home/yliu0/data/' pin= os.path.join(base, 'logos.hdf5') out = os.path.join(base, './latent/latent{}.h5'.format(dim)) num_chns = 3 img_size = 64 if __name__ == '__main__': # clean if os.path.exists(out): os.remove(out) fin = h5py.File...
0
0
0
0
0
0
0
0
0
afb5601db4ef7607fb7ef8b5a3855ab5738f8f72
446
py
Python
migrations/versions/8550c7394f4_change_commands_env_to_text.py
vault-the/changes
37e23c3141b75e4785cf398d015e3dbca41bdd56
[ "Apache-2.0" ]
443
2015-01-03T16:28:39.000Z
2021-04-26T16:39:46.000Z
migrations/versions/8550c7394f4_change_commands_env_to_text.py
vault-the/changes
37e23c3141b75e4785cf398d015e3dbca41bdd56
[ "Apache-2.0" ]
12
2015-07-30T19:07:16.000Z
2016-11-07T23:11:21.000Z
migrations/versions/8550c7394f4_change_commands_env_to_text.py
vault-the/changes
37e23c3141b75e4785cf398d015e3dbca41bdd56
[ "Apache-2.0" ]
47
2015-01-09T10:04:00.000Z
2020-11-18T17:58:19.000Z
"""change commands.env to text Revision ID: 8550c7394f4 Revises: 5844fbc9d9e4 Create Date: 2015-06-15 13:42:13.990095 """ # revision identifiers, used by Alembic. revision = '8550c7394f4' down_revision = '5844fbc9d9e4'
18.583333
75
0.721973
"""change commands.env to text Revision ID: 8550c7394f4 Revises: 5844fbc9d9e4 Create Date: 2015-06-15 13:42:13.990095 """ # revision identifiers, used by Alembic. revision = '8550c7394f4' down_revision = '5844fbc9d9e4' from alembic import op import sqlalchemy as sa def upgrade(): op.alter_column('command', 'e...
0
0
0
0
0
127
0
3
91
2d6e51702f64e5ffa0f59ad631d68552d46f5365
733
py
Python
exercicios3/ex072.py
LuanGermano/Mundo-3-Curso-em-Video-Python
1dffda71ff769e4e901b85e4cca5595a5dbb545c
[ "MIT" ]
null
null
null
exercicios3/ex072.py
LuanGermano/Mundo-3-Curso-em-Video-Python
1dffda71ff769e4e901b85e4cca5595a5dbb545c
[ "MIT" ]
null
null
null
exercicios3/ex072.py
LuanGermano/Mundo-3-Curso-em-Video-Python
1dffda71ff769e4e901b85e4cca5595a5dbb545c
[ "MIT" ]
null
null
null
#Crie um programa que tenha uma Tupla totalmente preenchida com uma contagem por extenso, de zero ate vinte. #Seu programa dever ler um numero pelo teclado e mostra-lo por extenso. # s catar o numero gerado e botar dentro do indice extenso = ('Zero', 'Um', 'Dois', 'Tres', 'Quatro', 'Cinco', 'Seis', 'Sete', 'Oito', 'No...
43.117647
108
0.620737
#Crie um programa que tenha uma Tupla totalmente preenchida com uma contagem por extenso, de zero ate vinte. #Seu programa deverá ler um numero pelo teclado e mostra-lo por extenso. # só catar o numero gerado e botar dentro do indice extenso = ('Zero', 'Um', 'Dois', 'Tres', 'Quatro', 'Cinco', 'Seis', 'Sete', 'Oito', '...
6
0
0
0
0
0
0
0
0
078501ad68ff4eeafc7889f044308e6c71e94f42
5,981
py
Python
lib/python/treadmill/cgroups.py
vrautela/treadmill
05e47fa8acdf8bad7af78e737efb26ea6488de82
[ "Apache-2.0" ]
133
2016-09-15T13:36:12.000Z
2021-01-18T06:29:13.000Z
lib/python/treadmill/cgroups.py
vrautela/treadmill
05e47fa8acdf8bad7af78e737efb26ea6488de82
[ "Apache-2.0" ]
108
2016-12-28T23:41:27.000Z
2020-03-05T21:20:37.000Z
lib/python/treadmill/cgroups.py
evreng/treadmill
05e47fa8acdf8bad7af78e737efb26ea6488de82
[ "Apache-2.0" ]
69
2016-09-23T20:38:58.000Z
2020-11-11T02:31:21.000Z
"""Common cgroups management routines. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import io import logging import os from treadmill import fs from treadmill.fs import linux as fs_linux #: Base directory wh...
26.582222
79
0.650393
"""Common cgroups management routines. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import io import logging import os from treadmill import fs from treadmill.fs import linux as fs_linux #: Base directory wh...
0
0
0
0
0
0
0
0
0
6949cc9dfbe6a66151419b8c802249bfffe52479
935
py
Python
Projects_in_Python/QR_Reader/main.py
pky99/Mini_Python_Projects
1cd3caa0aa48503a1f501f1ab90f34546615cf9a
[ "MIT" ]
null
null
null
Projects_in_Python/QR_Reader/main.py
pky99/Mini_Python_Projects
1cd3caa0aa48503a1f501f1ab90f34546615cf9a
[ "MIT" ]
null
null
null
Projects_in_Python/QR_Reader/main.py
pky99/Mini_Python_Projects
1cd3caa0aa48503a1f501f1ab90f34546615cf9a
[ "MIT" ]
null
null
null
# Press the green button in the gutter to run the script. if __name__ == '__main__': readQR()
25.27027
84
0.583957
import cv2 from pyzbar import pyzbar def read_code(frame): codes = pyzbar.decode(frame) for code in codes: x, y, w, h = code.rect code_info = code.data.decode('utf-8') cv2.rectangle(frame, (x, y), (x + w, y + h), (0, 255, 0), 2) font = cv2.FONT_HERSHEY_DUPLEX cv2.putT...
0
0
0
0
0
748
0
-7
91
fae391c60409d4e71f461ce211e8f4aed8541f56
901
py
Python
fcc_split/credo_download.py
sunlightlabs/fcc-net-neutrality-comments
56bcc6101a0dd5dcc3dc251014f30c2a2e0cde5b
[ "MIT" ]
18
2015-02-11T20:11:19.000Z
2020-11-13T23:22:47.000Z
fcc_split/credo_download.py
sunlightlabs/fcc-net-neutrality-comments
56bcc6101a0dd5dcc3dc251014f30c2a2e0cde5b
[ "MIT" ]
null
null
null
fcc_split/credo_download.py
sunlightlabs/fcc-net-neutrality-comments
56bcc6101a0dd5dcc3dc251014f30c2a2e0cde5b
[ "MIT" ]
6
2015-10-26T20:51:26.000Z
2021-04-18T16:47:30.000Z
import os, json, sys, operator, urllib, urllib2 from pyquery import PyQuery as pq credo_dir = sys.argv[1] if __name__ == "__main__": json_files = [f for f in all_files(credo_dir) if f.endswith('.json') and '-' not in os.path.basename(f)] for filename in json_files: meta = json.load(open(filename)) ...
47.421053
152
0.631521
import os, json, sys, operator, urllib, urllib2 from pyquery import PyQuery as pq def all_files(dir): return reduce(operator.add, [[os.path.join(x[0], y) for y in x[2]] for x in os.walk(dir)]) credo_dir = sys.argv[1] if __name__ == "__main__": json_files = [f for f in all_files(credo_dir) if f.endswith('.jso...
0
0
0
0
0
93
0
0
23
ed84a4b201d8276a22307f2ecf603a258673a174
3,830
py
Python
timeflux/core/node.py
HerySon/timeflux
01a5a27a3368afe8b0c1da475f84618e11ffec3b
[ "MIT" ]
123
2019-01-09T08:57:39.000Z
2022-03-18T18:59:51.000Z
timeflux/core/node.py
HerySon/timeflux
01a5a27a3368afe8b0c1da475f84618e11ffec3b
[ "MIT" ]
43
2019-03-08T10:16:39.000Z
2021-06-14T17:17:18.000Z
timeflux/core/node.py
HerySon/timeflux
01a5a27a3368afe8b0c1da475f84618e11ffec3b
[ "MIT" ]
18
2019-03-26T08:51:21.000Z
2021-10-14T23:10:33.000Z
"""Node base class."""
29.236641
93
0.547781
"""Node base class.""" import re import logging from abc import ABC, abstractmethod from timeflux.core.io import Port class Node(ABC): def __new__(cls, *args, **kwargs): """Create instance and initialize the logger.""" instance = super().__new__(cls) instance.logger = logging.getLogger( ...
0
79
0
3,608
0
0
0
7
112
ae8656f4c14d4106475af259c361d5ab27b3ce99
1,667
py
Python
cegid/apps/users/urls.py
vsoch/tcell
3c4a19e5c78f1a36a2fe5e0f3229d1d70ef3a2c6
[ "MIT" ]
null
null
null
cegid/apps/users/urls.py
vsoch/tcell
3c4a19e5c78f1a36a2fe5e0f3229d1d70ef3a2c6
[ "MIT" ]
9
2016-08-04T22:56:21.000Z
2016-08-17T20:55:57.000Z
cegid/apps/users/urls.py
vsoch/tcell
3c4a19e5c78f1a36a2fe5e0f3229d1d70ef3a2c6
[ "MIT" ]
1
2016-10-11T04:22:52.000Z
2016-10-11T04:22:52.000Z
from django.conf.urls import url from django.conf import settings from django.contrib import admin from .views import view_profile, edit_user, create_user, view_faculty, view_staff, edit_profile from django.contrib.auth import views as auth_views admin.autodiscover() urlpatterns = [ url(r'^people/faculty$',view_f...
61.740741
141
0.704859
from django.conf.urls import patterns, url from django.conf import settings from django.contrib import admin from .views import view_profile, edit_user, create_user, view_faculty, view_staff, edit_profile from django.contrib.auth import views as auth_views admin.autodiscover() urlpatterns = [ url(r'^people/facult...
0
0
0
0
0
0
0
10
0
ecc509661456f00ad41ada5efec4da261bcad594
328
py
Python
gpullall/tests/test_githelpers.py
0xcomposure/gpullall
77f93d9fb3eba838e5f885d41c84174f0980c64f
[ "MIT" ]
1
2021-04-13T13:33:23.000Z
2021-04-13T13:33:23.000Z
gpullall/tests/test_githelpers.py
0xcomposure/gpullall
77f93d9fb3eba838e5f885d41c84174f0980c64f
[ "MIT" ]
null
null
null
gpullall/tests/test_githelpers.py
0xcomposure/gpullall
77f93d9fb3eba838e5f885d41c84174f0980c64f
[ "MIT" ]
null
null
null
import unittest import sys sys.path.append("..") if __name__ == "__main__": unittest.main()
19.294118
53
0.621951
import os import unittest import sys sys.path.append("..") import githelpers # noqa: E402 class TestGitHelpers(unittest.TestCase): def test_get_path(self): self.assertIn( os.path.abspath("../../"), githelpers.get_repositories("../../../")) if __name__ == "__main__": unittest...
0
0
0
164
0
0
0
-16
81
f5fa1a321ab9f4569ec04c9bbb52bcf961dec01e
11,104
py
Python
videoProcess.py
kaleem94/CarND-Advanced-Lane-Lines
eaed810c947d534613e919b688377c87735dab5b
[ "MIT" ]
null
null
null
videoProcess.py
kaleem94/CarND-Advanced-Lane-Lines
eaed810c947d534613e919b688377c87735dab5b
[ "MIT" ]
null
null
null
videoProcess.py
kaleem94/CarND-Advanced-Lane-Lines
eaed810c947d534613e919b688377c87735dab5b
[ "MIT" ]
null
null
null
import cv2 import matplotlib.image as mpimg import matplotlib.pyplot as plt import glob import pickle line = None M = None Minv = None cameraMat = None distCoeffs = None dist_pickle = pickle.load( open( "camera_cal/wide_dist_pickle.p", "rb" ) ) objpoints = dist_pickle["objpoints"] imgpoints = dist_pickle["imgpo...
40.231884
211
0.646884
import cv2 import numpy as np import matplotlib.image as mpimg import matplotlib.pyplot as plt import glob import pickle line = None M = None Minv = None cameraMat = None distCoeffs = None class Line: def __init__(self): # if the first frame of video has been processed self.first_frame_processed...
0
0
0
2,136
0
7,839
0
-3
160
54d91d9ffe932c56641df845d5520675cc8f9b5a
500
py
Python
vis/latex_tables.py
dhpollack/mgc
ed1b8fb512f0b42cb8121a2809def65f232dc154
[ "MIT" ]
null
null
null
vis/latex_tables.py
dhpollack/mgc
ed1b8fb512f0b42cb8121a2809def65f232dc154
[ "MIT" ]
null
null
null
vis/latex_tables.py
dhpollack/mgc
ed1b8fb512f0b42cb8121a2809def65f232dc154
[ "MIT" ]
null
null
null
import os from tabulate import tabulate OUTPATH = "output/latex" a = [["Dataset Name", "# of Samples", "Total Length"], ["Balanced", "3,146", "8.74 hours"], ["Eval", "2,574", "7.15 hours"], ["Unbalanced", "224,155", "622.65 hours"], ["Unbalanced - Subset", "19,042", "52.89 hours"]] if not os.path.exists(OUTPATH): ...
35.714286
217
0.618
import os from tabulate import tabulate OUTPATH = "output/latex" a = [["Dataset Name", "# of Samples", "Total Length"], ["Balanced", "3,146", "8.74 hours"], ["Eval", "2,574", "7.15 hours"], ["Unbalanced", "224,155", "622.65 hours"], ["Unbalanced - Subset", "19,042", "52.89 hours"]] if not os.path.exists(OUTPATH): ...
0
0
0
0
0
0
0
0
0
e6c0bba16d38f75f94d0fd5e47e63b18ed184940
29,409
py
Python
modisco/hit_scoring/densityadapted_hitscoring.py
Bluedragon137/tfmodisco
d7c56b21e1bb58b07695ef3035f173b7d1a039e6
[ "MIT" ]
null
null
null
modisco/hit_scoring/densityadapted_hitscoring.py
Bluedragon137/tfmodisco
d7c56b21e1bb58b07695ef3035f173b7d1a039e6
[ "MIT" ]
null
null
null
modisco/hit_scoring/densityadapted_hitscoring.py
Bluedragon137/tfmodisco
d7c56b21e1bb58b07695ef3035f173b7d1a039e6
[ "MIT" ]
null
null
null
from __future__ import division, print_function from collections import namedtuple from .. import core from .. import affinitymat from .. import util from .. import cluster from .. import aggregator from .. import seqlet_embedding from .. import affinitymat from .. import coordproducers from .. import tfmodisco_workflo...
45.666149
81
0.622292
from __future__ import division, print_function from collections import defaultdict, OrderedDict, namedtuple import numpy as np import time import itertools from .. import core from .. import affinitymat from .. import util from .. import cluster from .. import aggregator from .. import seqlet_embedding from .. import ...
0
0
0
23,583
0
4,591
0
23
184
273c03d48184ab1f7f82a588a4e85ab8215354df
460
py
Python
Projetos Python/pythonexercicios/des113.py
Moyses-Nunes/Projetos-Python
71ae170fb0d7be6afea18608bca630b57b9f0dff
[ "MIT" ]
null
null
null
Projetos Python/pythonexercicios/des113.py
Moyses-Nunes/Projetos-Python
71ae170fb0d7be6afea18608bca630b57b9f0dff
[ "MIT" ]
null
null
null
Projetos Python/pythonexercicios/des113.py
Moyses-Nunes/Projetos-Python
71ae170fb0d7be6afea18608bca630b57b9f0dff
[ "MIT" ]
null
null
null
num = leiaInt('Digite um valor: ') print(f'Voc digitou o nmero {num}')
21.904762
76
0.554348
def leiaInt(msg): while True: try: n = int(input(msg)) except (ValueError, TypeError): print('\033[31mERRO: Digite um número inteiro válido.\033[m') continue except KeyboardInterrupt: print('\n\033[31mERRO: O usuário interrompeu o programa.\033...
10
0
0
0
0
356
0
0
22
df9d10b687bbbe0ed587c3c1a23fb3e7ada4e76a
427
py
Python
Zarooni/gopro/src/openfromsocket.py
AV-Lab/SNAIL
c07ff9a9a8ca1e171c83d10011d037cf6844cfc7
[ "MIT" ]
1
2021-11-21T12:54:12.000Z
2021-11-21T12:54:12.000Z
Zarooni/gopro/src/openfromsocket.py
majid-khonji/SNAIL
c07ff9a9a8ca1e171c83d10011d037cf6844cfc7
[ "MIT" ]
3
2021-09-15T21:19:23.000Z
2021-12-19T20:34:12.000Z
Zarooni/gopro/src/openfromsocket.py
majid-khonji/SNAIL
c07ff9a9a8ca1e171c83d10011d037cf6844cfc7
[ "MIT" ]
1
2021-11-21T12:56:47.000Z
2021-11-21T12:56:47.000Z
#!/usr/bin/env python3 # import rospy import socket import cv2 import time cap = cv2.VideoCapture("udp://10.5.5.9:10000", cv2.CAP_FFMPEG) sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) last_message = time.time() while True: # Get an image ret, img = cap.read() # Do something with img cv2.im...
18.565217
62
0.702576
#!/usr/bin/env python3 # import rospy import socket import cv2 import numpy as np import time cap = cv2.VideoCapture("udp://10.5.5.9:10000", cv2.CAP_FFMPEG) sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) last_message = time.time() while True: # Get an image ret, img = cap.read() # Do something ...
0
0
0
0
0
0
0
-3
22
a2135f0efcd8f453d9288597d6319a5e4b435fe5
1,219
py
Python
tf_autoaugment/transforms/rotate.py
sebastian-sz/tf-autoaugment
6807f5095df1b842a8a17265dc2361165f5d1658
[ "MIT" ]
null
null
null
tf_autoaugment/transforms/rotate.py
sebastian-sz/tf-autoaugment
6807f5095df1b842a8a17265dc2361165f5d1658
[ "MIT" ]
null
null
null
tf_autoaugment/transforms/rotate.py
sebastian-sz/tf-autoaugment
6807f5095df1b842a8a17265dc2361165f5d1658
[ "MIT" ]
null
null
null
"""Code for Rotate Transform."""
35.852941
84
0.673503
"""Code for Rotate Transform.""" import tensorflow as tf import tensorflow_addons as tfa from tf_autoaugment.transforms.base_transform import BaseTransform class Rotate(BaseTransform): """Transform for Rotate op.""" def __init__(self, fill_value=128, tf_function: bool = False): super().__init__(tf_f...
0
0
0
1,038
0
0
0
57
90
5847f016de6efae3149713498e64bdc415dafa59
572
py
Python
recipe_recommender/tests/test_scraping_and_processing.py
lisamnash/recipe_recommender
f02ea57c36b39f4965625d90f6d6f73a4131b449
[ "BSD-3-Clause" ]
1
2019-01-07T19:56:40.000Z
2019-01-07T19:56:40.000Z
recipe_recommender/tests/test_scraping_and_processing.py
lisamnash/recipe_recommender
f02ea57c36b39f4965625d90f6d6f73a4131b449
[ "BSD-3-Clause" ]
7
2018-12-28T21:22:15.000Z
2019-01-08T22:07:26.000Z
recipe_recommender/tests/test_scraping_and_processing.py
lisamnash/recipe_recommender
f02ea57c36b39f4965625d90f6d6f73a4131b449
[ "BSD-3-Clause" ]
1
2018-12-26T23:19:59.000Z
2018-12-26T23:19:59.000Z
""" Tests for scraping and processing """ def test_bodybuilding_scrape(testing_data): """ Test that pulling single recipe from bodybuilding database works. """ data = testing_data # Write more tests here to see this data is what we expect (TODO) def test_bodybuilding_process(): """ Test t...
19.724138
71
0.70979
""" Tests for scraping and processing """ import pytest import recipe_recommender as rr @pytest.fixture() def testing_data(): data = rr.scraping_and_processing.bodybuilding.scrape_db(test=True) return data def test_bodybuilding_scrape(testing_data): """ Test that pulling single recipe from bodybuildi...
0
104
0
0
0
0
0
2
68
cc37cfc49a0a2389cc7757855f918ffec9cc417c
1,302
py
Python
recipe-search/recipe/urls.py
talpor/recipe-search-hackathon
7471f08e1067317f3bb1f35b4ebd4b3cd96e0580
[ "BSD-3-Clause" ]
null
null
null
recipe-search/recipe/urls.py
talpor/recipe-search-hackathon
7471f08e1067317f3bb1f35b4ebd4b3cd96e0580
[ "BSD-3-Clause" ]
null
null
null
recipe-search/recipe/urls.py
talpor/recipe-search-hackathon
7471f08e1067317f3bb1f35b4ebd4b3cd96e0580
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.conf.urls import patterns, url, include from rest_framework.routers import DefaultRouter from serializers import RecipeViewSet, IngredientViewSet, RecipeSearchIngTimeViewSet, RecipeRandomIngTimeViewSet router = DefaultRouter() router.regist...
23.672727
68
0.715822
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.conf.urls import patterns, url, include from rest_framework.routers import DefaultRouter from serializers import RecipeViewSet, IngredientViewSet, \ RecipeSearchIngTimeViewSet, RecipeRandomIngTimeViewSet router = DefaultRouter() router....
0
0
0
0
0
0
0
6
0
c2150ce62ffd47c29665cff5b2c8493e916833e2
1,432
py
Python
pytest/speed_tests/conftest.py
ribuild/delphin_6_automation
12024381fc1042b46314c55d88b6349229ea33b7
[ "MIT" ]
2
2017-11-08T18:37:36.000Z
2018-01-09T12:10:58.000Z
pytest/speed_tests/conftest.py
ribuild/delphin_6_automation
12024381fc1042b46314c55d88b6349229ea33b7
[ "MIT" ]
111
2018-02-26T08:25:44.000Z
2021-03-31T19:17:19.000Z
pytest/speed_tests/conftest.py
thp44/delphin_6_automation
12024381fc1042b46314c55d88b6349229ea33b7
[ "MIT" ]
3
2017-11-06T10:01:25.000Z
2018-02-14T09:45:28.000Z
__author__ = "Christian Kongsgaard" __license__ = 'MIT' # -------------------------------------------------------------------------------------------------------------------- # # IMPORTS # Modules # RiBuild Modules # ---------------------------------------------------------------------------------------------------...
31.130435
120
0.594274
__author__ = "Christian Kongsgaard" __license__ = 'MIT' # -------------------------------------------------------------------------------------------------------------------- # # IMPORTS # Modules import pytest import datetime import os # RiBuild Modules from delphin_6_automation.backend import simulation_worker fro...
0
872
0
0
0
0
0
53
156