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
3a80e45572fc5514acb986c5407a0e6e79f09f0d
182
py
Python
custom_components/centrometal_boiler/const.py
9a4gl/hass-peltec
1d5267c1cbd538c47575fad479d4e6ef6dd9b51f
[ "Apache-2.0" ]
2
2021-12-27T11:24:36.000Z
2022-02-10T21:54:51.000Z
custom_components/centrometal_boiler/const.py
9a4gl/hass-centrometal-boiler
1d5267c1cbd538c47575fad479d4e6ef6dd9b51f
[ "Apache-2.0" ]
null
null
null
custom_components/centrometal_boiler/const.py
9a4gl/hass-centrometal-boiler
1d5267c1cbd538c47575fad479d4e6ef6dd9b51f
[ "Apache-2.0" ]
null
null
null
DOMAIN = "centrometal_boiler" WEB_BOILER_CLIENT = "web_boiler_client" WEB_BOILER_SYSTEM = "web_boiler_system" WEB_BOILER_LOGIN_RETRY_INTERVAL = 60 WEB_BOILER_REFRESH_INTERVAL = 600
26
39
0.851648
DOMAIN = "centrometal_boiler" WEB_BOILER_CLIENT = "web_boiler_client" WEB_BOILER_SYSTEM = "web_boiler_system" WEB_BOILER_LOGIN_RETRY_INTERVAL = 60 WEB_BOILER_REFRESH_INTERVAL = 600
0
0
0
0
0
0
0
0
0
b9e458875fb732878444d9d4232ae2ad03ec26a7
15,912
py
Python
src/alembic_utils/replaceable_entity.py
tdamsma/alembic_utils
944e3a732bef1b90e5ff077b349d839d8470a4e6
[ "MIT" ]
null
null
null
src/alembic_utils/replaceable_entity.py
tdamsma/alembic_utils
944e3a732bef1b90e5ff077b349d839d8470a4e6
[ "MIT" ]
null
null
null
src/alembic_utils/replaceable_entity.py
tdamsma/alembic_utils
944e3a732bef1b90e5ff077b349d839d8470a4e6
[ "MIT" ]
null
null
null
# pylint: disable=unused-argument,invalid-name,line-too-long import logging from typing import List, Optional, Type, TypeVar from alembic.autogenerate.api import AutogenContext import alembic_utils from alembic_utils.experimental import collect_subclasses logger = logging.getLogger(__name__) T = TypeVar("T", bound="...
40.181818
228
0.631536
# pylint: disable=unused-argument,invalid-name,line-too-long import logging from itertools import zip_longest from pathlib import Path from typing import List, Optional, Set, Type, TypeVar from alembic.autogenerate import comparators from alembic.autogenerate.api import AutogenContext from flupy import flu from sqlalc...
0
7,712
0
3,808
0
0
0
447
293
65577169dfbc90a959d801eac3993b53499c43a6
3,407
py
Python
cam_main.py
NakitaOza/fcd
866f4323c8b8ff512b27eb23501dfefedb10ed4e
[ "MIT" ]
4
2021-11-24T08:40:20.000Z
2022-01-22T17:01:27.000Z
cam_main.py
NakitaOza/fcd
866f4323c8b8ff512b27eb23501dfefedb10ed4e
[ "MIT" ]
2
2022-03-06T09:26:32.000Z
2022-03-07T07:41:10.000Z
cam_main.py
NakitaOza/fcd
866f4323c8b8ff512b27eb23501dfefedb10ed4e
[ "MIT" ]
3
2021-12-23T16:16:49.000Z
2022-02-20T10:28:10.000Z
import argparse import torch if __name__ == '__main__': parser = argparse.ArgumentParser() # Train configuration. parser.add_argument('--image_size', type=int, default=128, help='image resolution') parser.add_argument('--dataset', type=str, default='L8Biome', choices=['L8Biome']) parser.add_arg...
41.048193
123
0.70091
import argparse import os import matplotlib import torch from torch.backends import cudnn import evaluate from supervised_solver import SupervisedSolver from cam_solver import CAMSolver def str2bool(v): return v.lower() in ('true') def main(config): # For fast training. cudnn.benchmark = True if n...
0
0
0
0
0
597
0
25
180
fc9c4dbe86cfa59cc21358cfd5786917e7523f23
2,712
py
Python
src/sfn_workflow_client/exceptions.py
NarrativeScience/sfn-workflow-client
aa8bf9f536bcb85ec64c139389774a7a96688ad1
[ "BSD-3-Clause" ]
null
null
null
src/sfn_workflow_client/exceptions.py
NarrativeScience/sfn-workflow-client
aa8bf9f536bcb85ec64c139389774a7a96688ad1
[ "BSD-3-Clause" ]
4
2020-03-03T16:54:16.000Z
2020-08-11T17:31:40.000Z
src/sfn_workflow_client/exceptions.py
NarrativeScience/sfn-workflow-client
aa8bf9f536bcb85ec64c139389774a7a96688ad1
[ "BSD-3-Clause" ]
null
null
null
"""Workflow client exception classes"""
30.133333
99
0.643805
"""Workflow client exception classes""" from typing import Any, Dict, Set from .enums import ExecutionStatus class WorkflowClientError(Exception): """Base class for workflow client errors""" pass class WorkflowDoesNotExist(WorkflowClientError): """Raised when a workflow does not exist in AWS Step Func...
0
0
0
2,458
0
0
0
25
183
be866cb1332c1720b4198aa9533ecb3e8ce429fd
5,447
py
Python
data/templates/admin/Message.mako.py
sumukh210991/Cyberweb
297bd54c9e223d38818b802087055e397c403f1c
[ "Apache-2.0" ]
null
null
null
data/templates/admin/Message.mako.py
sumukh210991/Cyberweb
297bd54c9e223d38818b802087055e397c403f1c
[ "Apache-2.0" ]
null
null
null
data/templates/admin/Message.mako.py
sumukh210991/Cyberweb
297bd54c9e223d38818b802087055e397c403f1c
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- from mako import runtime UNDEFINED = runtime.UNDEFINED STOP_RENDERING = runtime.STOP_RENDERING __M_dict_builtin = dict __M_locals_builtin = locals _magic_number = 10 _modified_time = 1468813642.546569 _enable_loop = True _template_filename = '/home/sumukh/Documents/thesis/Cyberweb/cyberweb/cyberw...
63.337209
2,295
0.66275
# -*- coding:utf-8 -*- from mako import runtime, filters, cache UNDEFINED = runtime.UNDEFINED STOP_RENDERING = runtime.STOP_RENDERING __M_dict_builtin = dict __M_locals_builtin = locals _magic_number = 10 _modified_time = 1468813642.546569 _enable_loop = True _template_filename = '/home/sumukh/Documents/thesis/Cyberweb...
0
0
0
0
0
4,368
0
29
180
9b4d5b2ea07219b3e6af43bf699207ad57bdca55
231
py
Python
applications/client/controllers/test_connection.py
slugiot/slugiot-client
749f896638cab0c5cefaa0068f19178072886c21
[ "BSD-3-Clause" ]
4
2016-05-05T07:02:42.000Z
2016-05-17T21:14:41.000Z
applications/client/controllers/test_connection.py
tungedison/slugiot-client
749f896638cab0c5cefaa0068f19178072886c21
[ "BSD-3-Clause" ]
7
2016-04-15T00:38:20.000Z
2016-06-08T20:18:06.000Z
applications/client/controllers/test_connection.py
tungedison/slugiot-client
749f896638cab0c5cefaa0068f19178072886c21
[ "BSD-3-Clause" ]
5
2016-04-17T20:50:22.000Z
2019-10-08T07:53:03.000Z
import requests def call_server(): """Does a simple server call, and returns whatever the server returns.""" call_url = server_url + '/tests/test_connection' r = requests.get(call_url) return r.text
23.1
77
0.709957
import requests import urllib def call_server(): """Does a simple server call, and returns whatever the server returns.""" call_url = server_url + '/tests/test_connection' r = requests.get(call_url) return r.text
0
0
0
0
0
0
0
-8
22
da82177bda6ed350fdbb8ac227d209943d5fcb1a
1,894
py
Python
database.py
Julianpse/googleAIYMonkey
f6bf85b64ce573f58ef7e860224284d5f2b40987
[ "MIT" ]
1
2018-04-27T01:46:23.000Z
2018-04-27T01:46:23.000Z
database.py
Julianpse/googleAIYMonkey
f6bf85b64ce573f58ef7e860224284d5f2b40987
[ "MIT" ]
1
2018-05-04T00:32:34.000Z
2018-05-04T00:32:34.000Z
database.py
Julianpse/googleAIYMonkey
f6bf85b64ce573f58ef7e860224284d5f2b40987
[ "MIT" ]
null
null
null
import os # Global vars below username = os.environ.get('DATABASE_USERNAME', None) access_key = os.environ.get('DATABASE_PASS', None) database_endpoint= os.environ.get('DATABASE_ENDPOINT', None)
26.676056
110
0.652587
import psycopg2 import os from os import environ import json from datetime import datetime # Global vars below username = os.environ.get('DATABASE_USERNAME', None) access_key = os.environ.get('DATABASE_PASS', None) database_endpoint= os.environ.get('DATABASE_ENDPOINT', None) def connect_to_postgres(): conn = psy...
0
0
0
0
0
1,474
0
-7
226
e454dc50032831f9327db1cf531a00898c1b4a7c
943
py
Python
measure/measure_hamming_loss.py
sunshiding/M3DNS
363301b6f95f7a144a94ecf6f88a3efe378cd562
[ "MIT" ]
1
2021-05-18T04:57:24.000Z
2021-05-18T04:57:24.000Z
measure/measure_hamming_loss.py
sunshiding/M3DNS
363301b6f95f7a144a94ecf6f88a3efe378cd562
[ "MIT" ]
null
null
null
measure/measure_hamming_loss.py
sunshiding/M3DNS
363301b6f95f7a144a94ecf6f88a3efe378cd562
[ "MIT" ]
null
null
null
def hamming_loss(x, y, thread=0.5): """ :param x: the predicted outputs of the classifier, the output of the ith instance for the jth class is stored in x(i,j) :param y: the actual labels of the instances, if the ith instance belong to the jth class, y(i,j)=1, otherwise y(i,j)=0 :return: the hamming ...
31.433333
123
0.581124
import numpy as np def cal_single_instance(x, y, p): miss = 0 for i in range(x.shape[0]): if x[i] >= p and y[i] == 0: miss += 1 if x[i] < p and y[i] == 1: miss += 1 return miss def hamming_loss(x, y, thread=0.5): """ :param x: the predicted outputs of the ...
0
0
0
0
0
188
0
-3
45
dee22633d92966e73170d77d35fa8a0e36a42e6e
20,149
py
Python
models/tubedetr.py
antoyang/TubeDETR
3c32cc92a0fdaa0c770d95a59d8764e0e212424c
[ "Apache-2.0" ]
4
2022-03-31T04:57:59.000Z
2022-03-31T12:26:34.000Z
models/tubedetr.py
antoyang/TubeDETR
3c32cc92a0fdaa0c770d95a59d8764e0e212424c
[ "Apache-2.0" ]
null
null
null
models/tubedetr.py
antoyang/TubeDETR
3c32cc92a0fdaa0c770d95a59d8764e0e212424c
[ "Apache-2.0" ]
null
null
null
# Adapted from # Copyright (c) Aishwarya Kamath & Nicolas Carion. Licensed under the Apache License 2.0. All Rights Reserved # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved """ TubeDETR model and criterion classes. """ import torch import util.dist as dist
39.741617
134
0.553377
# Adapted from # Copyright (c) Aishwarya Kamath & Nicolas Carion. Licensed under the Apache License 2.0. All Rights Reserved # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved """ TubeDETR model and criterion classes. """ from typing import Dict, Optional import torch import torch.distributed impor...
0
0
0
18,314
0
1,192
0
66
291
13a06f69898b152f0c192b014262b62edd482842
11,619
py
Python
tensorflow_datasets/image/cityscapes.py
abhinavsp0730/datasets
3c69b42456fb947a7af7086a3310b972bd1ae3fb
[ "Apache-2.0" ]
2
2019-09-27T10:28:27.000Z
2020-12-25T17:20:14.000Z
tensorflow_datasets/image/cityscapes.py
abhinavsp0730/datasets
3c69b42456fb947a7af7086a3310b972bd1ae3fb
[ "Apache-2.0" ]
null
null
null
tensorflow_datasets/image/cityscapes.py
abhinavsp0730/datasets
3c69b42456fb947a7af7086a3310b972bd1ae3fb
[ "Apache-2.0" ]
3
2019-12-06T01:05:46.000Z
2019-12-07T16:53:21.000Z
# coding=utf-8 # Copyright 2020 The TensorFlow Datasets 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 required by appl...
37.724026
180
0.680093
# coding=utf-8 # Copyright 2020 The TensorFlow Datasets 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 required by appl...
0
1,999
0
6,293
0
0
0
49
136
c84a1eb482cf9c80ba7151ae47bbe7aeac9832a3
2,607
py
Python
moledit/leap_runner.py
hainm/moledit
3951c7248bf5684caf2a48c1de1abfeb848763a4
[ "MIT" ]
null
null
null
moledit/leap_runner.py
hainm/moledit
3951c7248bf5684caf2a48c1de1abfeb848763a4
[ "MIT" ]
null
null
null
moledit/leap_runner.py
hainm/moledit
3951c7248bf5684caf2a48c1de1abfeb848763a4
[ "MIT" ]
null
null
null
import parmed from .utils import easy_call def run_tleap(parm, ns_names, gaplist, sslist, leap_input=None): # adapted from amber_adaptbx code in phenix ''' Parameters ---------- parm : parmed.Structure ns_names : List[str] gaplist : List[int] sslist : List[Tuple[int, int]] If...
27.734043
77
0.579977
import subprocess import parmed from .template import default_force_field, leap_template from .utils import easy_call def _make_leap_template(parm, ns_names, gaplist, sslist, input_pdb, prmtop='prmt...
0
0
0
0
0
1,263
0
31
67
8c614f97b5a226ddc1c66870b9721c417b5cf6e6
14,678
py
Python
exe/tit.py
Rr210/dayjs
9eb3cc7fd6e616c4bcccfefa4ac230304b086057
[ "MIT" ]
2
2021-08-14T11:44:42.000Z
2022-03-30T01:25:45.000Z
exe/tit.py
Rr210/dayjs
9eb3cc7fd6e616c4bcccfefa4ac230304b086057
[ "MIT" ]
null
null
null
exe/tit.py
Rr210/dayjs
9eb3cc7fd6e616c4bcccfefa4ac230304b086057
[ "MIT" ]
null
null
null
# -*-coding:utf8 -*- import os, requests, datetime from io import BytesIO from PIL import ImageTk, Image # today_time = datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S') # title.json # # # # # # # # if __name__ == "__main__": # window = Tk() # window window.title('...
39.88587
122
0.571399
# -*-coding:utf8 -*- import os, requests, json, threading, datetime, webbrowser import tkinter.messagebox from io import BytesIO from tkinter import * # 使用Tkinter前需要先导入 from tkinter import ttk from PIL import ImageTk, Image from tkinter.ttk import Separator, Combobox # 获取今日时间戳 today_time = datetime.datetime.now().st...
2,433
0
0
11,076
0
1,603
0
57
298
70c949c421401a9f112b800e66d35d39419117a1
575
py
Python
Logic/or_gate.py
FPGA-4-all/FPGA4all_MyHDL
20ab2b1ff86d7b13cfca947967a9b4618325fbb1
[ "MIT" ]
null
null
null
Logic/or_gate.py
FPGA-4-all/FPGA4all_MyHDL
20ab2b1ff86d7b13cfca947967a9b4618325fbb1
[ "MIT" ]
null
null
null
Logic/or_gate.py
FPGA-4-all/FPGA4all_MyHDL
20ab2b1ff86d7b13cfca947967a9b4618325fbb1
[ "MIT" ]
null
null
null
#or gate class
23
41
0.464348
#or gate class from myhdl import * class or_gate: def __init__(self): self.inputs = 2 def two_input_or(self, a, b, c): """Two Input or Gate a, b -> Data imputs c -> output """ @always_comb def or_logic(): c.next = a | b return ...
0
88
0
430
0
0
0
-2
44
0dc1ccae7c3add6f3ac61a36f64d99edbe98a9f3
420
py
Python
core/migrations/0014_auto_20190910_1744.py
altafshaikh/Friends-The-Social-Network
13d5ec54d502f6f936491595e84cbe3b9d4bbdc8
[ "MIT" ]
1
2019-11-02T04:20:58.000Z
2019-11-02T04:20:58.000Z
core/migrations/0014_auto_20190910_1744.py
altafshaikh/Friends-The-Social-Network
13d5ec54d502f6f936491595e84cbe3b9d4bbdc8
[ "MIT" ]
null
null
null
core/migrations/0014_auto_20190910_1744.py
altafshaikh/Friends-The-Social-Network
13d5ec54d502f6f936491595e84cbe3b9d4bbdc8
[ "MIT" ]
null
null
null
# Generated by Django 2.1.7 on 2019-09-10 17:44
19.090909
47
0.547619
# Generated by Django 2.1.7 on 2019-09-10 17:44 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('core', '0013_post_count'), ] operations = [ migrations.RemoveField( model_name='comment', name='pic', ), mig...
0
0
0
314
0
0
0
11
46
3d783e442541f4098ceee7fa81b9f02ebb4ab482
4,848
py
Python
Baselines/mtsc_ca_sfcn/src/fileio/data_checking.py
JingweiZuo/SMATE
d3e847038d9b7fb2bc08b3720b93f80b934e538d
[ "MIT" ]
11
2021-04-21T08:32:21.000Z
2022-02-28T06:12:10.000Z
Baselines/mtsc_ca_sfcn/src/fileio/data_checking.py
SMATE2021/SMATE
d3e847038d9b7fb2bc08b3720b93f80b934e538d
[ "MIT" ]
1
2022-02-24T10:38:46.000Z
2022-02-24T10:38:46.000Z
Baselines/mtsc_ca_sfcn/src/fileio/data_checking.py
SMATE2021/SMATE
d3e847038d9b7fb2bc08b3720b93f80b934e538d
[ "MIT" ]
null
null
null
#import matplotlib.pyplot as plt if __name__ == '__main__': #data_file = '../../data/gesture_data/processed_data/data.txt_trainTest10/train_0.txt' #data_file = '../../data/arc_activity_recognition/s1_ijcal/train.txt' #class_column = 0 #delimiter = ' ' #ret_str = data_checking(data_file, class_...
36.727273
102
0.634076
import logging import os from os.path import isfile, join import numpy as np from data_io import file_reading from data_io import x_y_spliting #import matplotlib.pyplot as plt def data_plot(data_file, class_column=0, delimiter=' '): x_matrix, attr_num = file_reading(data_file, delimiter, True) x_matrix, y_vect...
0
0
0
0
0
2,595
0
11
201
a79f9219fbcebe165698a536f7fb318f3a9964b3
928
py
Python
Python_Programming_Case_studies_1/cs1.py
deb991/TopGear__Projects_n_Assignments
f86cd4883feb40ab3ae0740a7f83c9ecf05df053
[ "MIT" ]
null
null
null
Python_Programming_Case_studies_1/cs1.py
deb991/TopGear__Projects_n_Assignments
f86cd4883feb40ab3ae0740a7f83c9ecf05df053
[ "MIT" ]
null
null
null
Python_Programming_Case_studies_1/cs1.py
deb991/TopGear__Projects_n_Assignments
f86cd4883feb40ab3ae0740a7f83c9ecf05df053
[ "MIT" ]
null
null
null
#!/usr/bin/env python -i import threading thread_list = [] print('This program will process 5 files at a time Max') for x in range(1, 6): file__IO = input('\tEnter file name here to analize with path:: ') t = threading.Thread(target=cat) thread_list.append(t) #Starting threading for thread in thread_li...
22.095238
155
0.609914
#!/usr/bin/env python -i import os import string import sys import random import threading import getopt def cat(): if os.path.isfile(file__IO): with open(file__IO, 'r') as f: data = f.read() line = data.splitlines() words = data.split() spaces = data.split(...
0
0
0
0
0
404
0
-47
133
eef24b9b14f3b1260e41222abeec94249bf36766
26
py
Python
tests/util/src/opentelemetry/test/version.py
LetzNico/opentelemetry-python
b565d6b643f175faee3f57ef81c8b7edbf50ec41
[ "Apache-2.0" ]
1
2020-10-05T05:25:14.000Z
2020-10-05T05:25:14.000Z
tests/util/src/opentelemetry/test/version.py
LetzNico/opentelemetry-python
b565d6b643f175faee3f57ef81c8b7edbf50ec41
[ "Apache-2.0" ]
null
null
null
tests/util/src/opentelemetry/test/version.py
LetzNico/opentelemetry-python
b565d6b643f175faee3f57ef81c8b7edbf50ec41
[ "Apache-2.0" ]
null
null
null
__version__ = "0.14.dev0"
13
25
0.692308
__version__ = "0.14.dev0"
0
0
0
0
0
0
0
0
0
048173d766008771746387191f68e98952cd4d6f
438
py
Python
app/stac_api/migrations/0008_auto_20210621_0840.py
Niclnx/service-stac
ad9129a7130d09b2bed387d8e82575eb86fdfa7b
[ "BSD-3-Clause" ]
9
2020-08-17T11:01:48.000Z
2022-01-17T22:24:13.000Z
app/stac_api/migrations/0008_auto_20210621_0840.py
Niclnx/service-stac
ad9129a7130d09b2bed387d8e82575eb86fdfa7b
[ "BSD-3-Clause" ]
100
2020-08-14T05:56:40.000Z
2022-03-01T22:39:58.000Z
app/stac_api/migrations/0008_auto_20210621_0840.py
Niclnx/service-stac
ad9129a7130d09b2bed387d8e82575eb86fdfa7b
[ "BSD-3-Clause" ]
3
2020-09-02T14:01:07.000Z
2021-07-27T06:30:26.000Z
# Generated by Django 3.1.10 on 2021-06-21 08:40
21.9
72
0.625571
# Generated by Django 3.1.10 on 2021-06-21 08:40 from django.db import migrations from django.db import models class Migration(migrations.Migration): dependencies = [ ('stac_api', '0007_auto_20210421_0701'), ] operations = [ migrations.AlterField( model_name='provider', ...
0
0
0
302
0
0
0
18
68
50cb7517a00eab9ccc2a98de331197e644762aab
15,511
py
Python
tkp/db/monitoringlist.py
ajstewart/tkp
2aab1d021d10e3d1f3c4c8a836aea96ac6ae413f
[ "BSD-2-Clause" ]
9
2015-04-30T22:10:14.000Z
2020-06-09T01:24:20.000Z
tkp/db/monitoringlist.py
ajstewart/tkp
2aab1d021d10e3d1f3c4c8a836aea96ac6ae413f
[ "BSD-2-Clause" ]
218
2015-01-08T11:10:57.000Z
2021-11-25T05:52:42.000Z
tkp/db/monitoringlist.py
ajstewart/tkp
2aab1d021d10e3d1f3c4c8a836aea96ac6ae413f
[ "BSD-2-Clause" ]
14
2015-03-11T11:21:58.000Z
2020-06-16T09:15:57.000Z
""" A collection of back end subroutines (mostly SQL queries). This module contains the routines to deal with the monitoring sources, provided by the user via the command line. """ import logging from tkp.db import execute as execute from tkp.db.associations import _empty_temprunningcatalog as _del_tempruncat from tk...
29.376894
95
0.610406
""" A collection of back end subroutines (mostly SQL queries). This module contains the routines to deal with the monitoring sources, provided by the user via the command line. """ import logging, sys from tkp.db import execute as execute from tkp.db.associations import _empty_temprunningcatalog as _del_tempruncat fr...
0
0
0
0
0
0
0
22
0
6ff4feb2bf9c3a685170ddf02fe37936bfe04096
2,510
py
Python
check-in/weekly/All-Divisions-With-the-Highest-Score-of-a-Binary-Array-(Medium).py
huandrew99/LeetCode
aa36b48d06100ce5f0bc64c789a906ec29409440
[ "MIT" ]
36
2021-12-23T15:44:41.000Z
2022-03-31T04:26:26.000Z
check-in/weekly/All-Divisions-With-the-Highest-Score-of-a-Binary-Array-(Medium).py
wzy0766/LeetCode-1
3070e672c519e8af74966811b8058a9baef8c0bc
[ "MIT" ]
null
null
null
check-in/weekly/All-Divisions-With-the-Highest-Score-of-a-Binary-Array-(Medium).py
wzy0766/LeetCode-1
3070e672c519e8af74966811b8058a9baef8c0bc
[ "MIT" ]
11
2022-02-26T22:41:26.000Z
2022-03-02T07:18:41.000Z
""" LC 2155 You are given a 0-indexed binary array nums of length n. nums can be divided at index i (where 0 <= i <= n) into two arrays (possibly empty) numsleft and numsright: numsleft has all the elements of nums between index 0 and i - 1 (inclusive), while numsright has all the elements of nums between index i and ...
35.857143
164
0.604382
""" LC 2155 You are given a 0-indexed binary array nums of length n. nums can be divided at index i (where 0 <= i <= n) into two arrays (possibly empty) numsleft and numsright: numsleft has all the elements of nums between index 0 and i - 1 (inclusive), while numsright has all the elements of nums between index i and ...
0
0
0
447
0
0
0
0
22
3e353134a1ae6cf3fc0193e717f09e831bad8c3a
771
py
Python
easyutil/estring.py
Moguf/BasicModule
b995cc606ae7369fcb090fa1f95074446eb5c521
[ "MIT" ]
null
null
null
easyutil/estring.py
Moguf/BasicModule
b995cc606ae7369fcb090fa1f95074446eb5c521
[ "MIT" ]
1
2016-08-21T02:43:55.000Z
2016-08-21T02:43:55.000Z
easyutil/estring.py
Moguf/BasicModule
b995cc606ae7369fcb090fa1f95074446eb5c521
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # fileencoding=utf-8
22.676471
63
0.623865
#!/usr/bin/env python3 # fileencoding=utf-8 def char_width(char): # For japanese. if len(char) == 1: return 1 else: return 2 def string_width(_string): char_width_list = [] for c in _string.decode('utf-8'): char_width_list.append(char_width(c)) return char_width_list d...
0
0
0
0
0
635
0
0
92
f4c06882a87a9a67a85041d82061b020c0af3d1c
1,730
py
Python
health_care/urls.py
rashiddaha/health-care-backend
ed9f918a30f1648501184804816ab98d00bcc3ed
[ "MIT" ]
null
null
null
health_care/urls.py
rashiddaha/health-care-backend
ed9f918a30f1648501184804816ab98d00bcc3ed
[ "MIT" ]
null
null
null
health_care/urls.py
rashiddaha/health-care-backend
ed9f918a30f1648501184804816ab98d00bcc3ed
[ "MIT" ]
null
null
null
# from allauth.account.views import confirm_email from django.conf import settings from django.contrib import admin from django.urls import path, include from drf_yasg import openapi from drf_yasg.views import get_schema_view from rest_framework import permissions from django.conf.urls.static import static # swagger f...
32.037037
90
0.717341
# from allauth.account.views import confirm_email from django.conf import settings from django.contrib import admin from django.urls import path, include from drf_yasg import openapi from drf_yasg.views import get_schema_view from rest_framework import permissions from django.conf.urls.static import static # swagger f...
0
0
0
0
0
0
0
0
0
803a118328123833b5fb800113a8f948da1823b8
2,765
py
Python
scripts/check_usuario_nodo.py
ramajoballester/interaccion
fbe96877bf9e2daa66d2b68b5a518011494a3222
[ "BSD-3-Clause" ]
null
null
null
scripts/check_usuario_nodo.py
ramajoballester/interaccion
fbe96877bf9e2daa66d2b68b5a518011494a3222
[ "BSD-3-Clause" ]
null
null
null
scripts/check_usuario_nodo.py
ramajoballester/interaccion
fbe96877bf9e2daa66d2b68b5a518011494a3222
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import rospy import rospkg if __name__ == "__main__": try: rosp = rospkg.RosPack() path = rosp.get_path('interaccion') # Ruta del directorio para guardar # los datos sec_check = SecurityCheck(path) rate = rospy.Rate(10.0) while not rospy.is_...
35.909091
78
0.55009
#!/usr/bin/env python import csv import rospy import rospkg import roslaunch from interaccion.msg import * from std_msgs.msg import String, Bool, Empty class SecurityCheck: def __init__(self, path): self.path = path # Ruta de los datos self.running = False self.update_node = False ...
0
0
0
1,877
0
0
0
15
112
f0fc8c2a6fc5f79b3ece7d9e239b6013b716f2ca
4,381
py
Python
src/pyperapp/pyperapp.py
ntoll/pyperapp
721ae5bc99e6d4ed8c177beda445900283ee32d3
[ "MIT" ]
null
null
null
src/pyperapp/pyperapp.py
ntoll/pyperapp
721ae5bc99e6d4ed8c177beda445900283ee32d3
[ "MIT" ]
null
null
null
src/pyperapp/pyperapp.py
ntoll/pyperapp
721ae5bc99e6d4ed8c177beda445900283ee32d3
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ PyperApp - it all starts here. PyperCard inspired applications in your browser via Brython. This module provides commands for users to set up everything and carry our common tasks. As `manage.py` is to Django, so `pypr` is to PyperApp. Copyright 2020 Nicholas H.Toll...
33.189394
79
0.732709
#!/usr/bin/env python # -*- coding: utf-8 -*- """ PyperApp - it all starts here. PyperCard inspired applications in your browser via Brython. This module provides commands for users to set up everything and carry our common tasks. As `manage.py` is to Django, so `pypr` is to PyperApp. Copyright © 2020 Nicholas H.Tol...
2
1,738
0
0
0
0
0
-28
157
164bb2a97f62c6730ae1ba379ea1af0938830793
5,627
py
Python
NLP/DuSQL-Baseline/text2sql/framework/reader/tokenizer/mrc_tokenizer.py
pkulzb/Research
88da4910a356f1e95e1e1e05316500055533683d
[ "Apache-2.0" ]
53
2020-03-31T16:20:53.000Z
2021-11-16T11:48:38.000Z
NLP/DuSQL-Baseline/text2sql/framework/reader/tokenizer/mrc_tokenizer.py
pkulzb/Research
88da4910a356f1e95e1e1e05316500055533683d
[ "Apache-2.0" ]
1
2020-04-06T08:10:12.000Z
2020-04-06T08:10:12.000Z
NLP/DuSQL-Baseline/text2sql/framework/reader/tokenizer/mrc_tokenizer.py
pkulzb/Research
88da4910a356f1e95e1e1e05316500055533683d
[ "Apache-2.0" ]
53
2020-04-01T01:59:08.000Z
2022-03-14T07:59:58.000Z
# coding=utf-8 # Copyright 2018 The Google AI Language Team 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 required...
35.613924
92
0.633197
# coding=utf-8 # Copyright 2018 The Google AI Language Team 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 required...
0
0
0
3,028
0
0
0
110
201
f595896cea044c923763199fb091a644b142bf8a
2,668
py
Python
speed.py
rdlauer/pispeedtrap
ce41eb54c331afc3a525abac79478e1a44880d16
[ "MIT" ]
16
2021-07-13T04:33:39.000Z
2022-02-19T14:25:23.000Z
speed.py
rdlauer/pispeedtrap
ce41eb54c331afc3a525abac79478e1a44880d16
[ "MIT" ]
1
2021-07-16T08:09:21.000Z
2021-07-16T13:16:59.000Z
speed.py
rdlauer/pispeedtrap
ce41eb54c331afc3a525abac79478e1a44880d16
[ "MIT" ]
2
2021-07-16T06:16:07.000Z
2022-01-19T15:15:30.000Z
import serial def send_serial_cmd(print_prefix, command): """ function for sending serial commands to the OPS module """ data_for_send_str = command data_for_send_bytes = str.encode(data_for_send_str) print(print_prefix, command) ser.write(data_for_send_bytes) # initialize message veri...
31.761905
84
0.666042
import time import serial def send_serial_cmd(print_prefix, command): """ function for sending serial commands to the OPS module """ data_for_send_str = command data_for_send_bytes = str.encode(data_for_send_str) print(print_prefix, command) ser.write(data_for_send_bytes) # initialize ...
0
0
0
0
0
0
0
-10
22
85c93b609cc255bd839a7501bb3495658046e25a
28,868
py
Python
txsocksx/test/test_client.py
pythonhacker/txsocksx
effa70cfedb31c96318d70b776804adde1c035a4
[ "ISC" ]
1
2020-08-12T23:44:58.000Z
2020-08-12T23:44:58.000Z
txsocksx/test/test_client.py
pythonhacker/txsocksx
effa70cfedb31c96318d70b776804adde1c035a4
[ "ISC" ]
null
null
null
txsocksx/test/test_client.py
pythonhacker/txsocksx
effa70cfedb31c96318d70b776804adde1c035a4
[ "ISC" ]
5
2019-10-25T06:09:13.000Z
2020-09-05T02:33:56.000Z
# Copyright (c) Aaron Gallagher <_@habnab.it> # See COPYING for details. from parsley import makeProtocol, stack from twisted.internet.error import ConnectionLost, ConnectionRefusedError from twisted.python import failure from txsocksx import client, grammar connectionLostFailure = failure.Failure(ConnectionLost()) ...
44.687307
132
0.605619
# Copyright (c) Aaron Gallagher <_@habnab.it> # See COPYING for details. import six from parsley import makeProtocol, stack from twisted.internet.error import ConnectionLost, ConnectionRefusedError from twisted.internet import defer, protocol from twisted.python import failure, log from twisted.trial import unittest ...
0
0
0
27,670
0
0
0
86
387
e583b171c81a90df7bfc3c64674927997eab5a81
499
py
Python
pret/pokemontools/exceptions.py
etdv-thevoid/pokemon-rgb-enhanced
5b244c1cf46aab98b9c820d1b7888814eb7fa53f
[ "MIT" ]
16
2018-08-28T21:47:01.000Z
2022-02-20T20:29:59.000Z
pret/pokemontools/exceptions.py
ETDV-TheVoid/pokemon-rgb-enhanced
5b244c1cf46aab98b9c820d1b7888814eb7fa53f
[ "MIT" ]
5
2019-04-03T19:53:11.000Z
2022-03-11T22:49:34.000Z
pret/pokemontools/exceptions.py
ETDV-TheVoid/pokemon-rgb-enhanced
5b244c1cf46aab98b9c820d1b7888814eb7fa53f
[ "MIT" ]
2
2019-12-09T19:46:02.000Z
2020-12-05T21:36:30.000Z
""" Custom exceptions used throughout the project. """
20.791667
78
0.681363
""" Custom exceptions used throughout the project. """ class AddressException(Exception): """ There was a problem with an address. Maybe it was out of range or invalid. """ class TextScriptException(Exception): """ TextScript encountered an inconsistency or problem. """ class PreprocessorExce...
0
0
0
352
0
0
0
0
92
079597cc1ff78e10b7d8ae560f15dc12b9b8c2a4
442
py
Python
ap/apps/photos/migrations/0004_auto_20181009_2304.py
shacker/ap
9059c5737b0dbef82e968cf8a9a6bf303c7a1688
[ "BSD-3-Clause" ]
1
2020-11-08T03:11:17.000Z
2020-11-08T03:11:17.000Z
ap/apps/photos/migrations/0004_auto_20181009_2304.py
shacker/ap
9059c5737b0dbef82e968cf8a9a6bf303c7a1688
[ "BSD-3-Clause" ]
null
null
null
ap/apps/photos/migrations/0004_auto_20181009_2304.py
shacker/ap
9059c5737b0dbef82e968cf8a9a6bf303c7a1688
[ "BSD-3-Clause" ]
1
2021-10-20T07:39:04.000Z
2021-10-20T07:39:04.000Z
# Generated by Django 2.1.1 on 2018-10-10 06:04
22.1
89
0.628959
# Generated by Django 2.1.1 on 2018-10-10 06:04 import ap.apps.photos.models from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('photos', '0003_photo_file'), ] operations = [ migrations.AlterField( model_name='photo', ...
0
0
0
299
0
0
0
26
68
e1e51e4c7c6dbc4c7e5146b462adfd2be68fde64
11,356
py
Python
nephoria/testcases/ec2/images/load_hvm_image.py
Corymbia/nephoria
fe8ad7beba479e7a8de70f09cf1fdb4d640b4987
[ "BSD-2-Clause" ]
5
2016-08-31T06:51:18.000Z
2018-04-25T20:50:25.000Z
nephoria/testcases/ec2/images/load_hvm_image.py
Corymbia/nephoria
fe8ad7beba479e7a8de70f09cf1fdb4d640b4987
[ "BSD-2-Clause" ]
49
2016-04-19T07:01:46.000Z
2017-11-17T23:57:18.000Z
nephoria/testcases/ec2/images/load_hvm_image.py
Corymbia/nephoria
fe8ad7beba479e7a8de70f09cf1fdb4d640b4987
[ "BSD-2-Clause" ]
14
2016-04-14T17:01:35.000Z
2021-07-13T13:35:38.000Z
#!/usr/bin/env python if __name__ == "__main__": test =LoadHvmImage() result = test.run() if test.created_image: test.log.info('\n---------------------------\nCreated EMI:{0}\n' '---------------------------'.format(test.created_image)) exit(result)
39.024055
98
0.522807
#!/usr/bin/env python from nephoria.testcase_utils.cli_test_runner import CliTestRunner, SkipTestException from nephoria.testcases.euca2ools.euca2ools_image_utils import Euca2oolsImageUtils from nephoria.usercontext import UserContext from nephoria.testcontroller import TestController import copy import time from urlli...
0
1,618
0
9,078
0
0
0
181
177
a4a759b1084b642dfb5e3b6669adbc999e1d0c4a
20,605
py
Python
src/python_pybind11/test/Inertial_TEST.py
srmainwaring/ign-math
ff55578b52b9c42daaea666c3c1205551b07afbb
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/python_pybind11/test/Inertial_TEST.py
srmainwaring/ign-math
ff55578b52b9c42daaea666c3c1205551b07afbb
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/python_pybind11/test/Inertial_TEST.py
srmainwaring/ign-math
ff55578b52b9c42daaea666c3c1205551b07afbb
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright (C) 2021 Open Source Robotics Foundation # # 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 o...
41.542339
92
0.581849
# Copyright (C) 2021 Open Source Robotics Foundation # # 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 o...
18
0
0
19,794
0
0
0
49
91
f8b2bc47c508e4cd49b8388e2453cc04b41f752e
4,874
py
Python
predict.py
erikperillo/deeptrain
af1b39e0a4561de2cc5054ec4dce7de77c75a349
[ "MIT" ]
null
null
null
predict.py
erikperillo/deeptrain
af1b39e0a4561de2cc5054ec4dce7de77c75a349
[ "MIT" ]
null
null
null
predict.py
erikperillo/deeptrain
af1b39e0a4561de2cc5054ec4dce7de77c75a349
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ The MIT License (MIT) Copyright (c) 2017 Erik Perillo <erik.perillo@gmail.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without l...
31.649351
79
0.652031
#!/usr/bin/env python3 """ The MIT License (MIT) Copyright (c) 2017 Erik Perillo <erik.perillo@gmail.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without l...
0
0
0
0
0
3,382
0
-48
335
a96a5c2efa0d1e0cd4d21ca1854f845ed41e5a9e
803
py
Python
examples/models.py
podhmo/kanagata
078d4e87ae474b873690b0905ae1557c5e5b4846
[ "MIT" ]
null
null
null
examples/models.py
podhmo/kanagata
078d4e87ae474b873690b0905ae1557c5e5b4846
[ "MIT" ]
null
null
null
examples/models.py
podhmo/kanagata
078d4e87ae474b873690b0905ae1557c5e5b4846
[ "MIT" ]
null
null
null
from kanagata import RestrictionBuilder # group: name, users # user: name, age, Option[skills], Option[school] # skill: name # school: name, groups with RestrictionBuilder() as b: with b.define_dict("Group") as group: group.add_member("name", required=True) group.add_list("users", "User", required=...
33.458333
57
0.662516
from kanagata import RestrictionBuilder # group: name, users # user: name, age, Option[skills], Option[school] # skill: name # school: name, groups with RestrictionBuilder() as b: with b.define_dict("Group") as group: group.add_member("name", required=True) group.add_list("users", "User", required=...
0
0
0
0
0
0
0
0
0
38cb0e79aa28947341e05525ac6aee043425dced
873
py
Python
portfolios/portf_main_get_data.py
taatuco/smartalpha-data-collection
0c184f156d60314cf1606b2cf1fb9e22526d5171
[ "MIT" ]
4
2018-07-06T05:55:05.000Z
2018-11-13T01:07:59.000Z
portfolios/portf_main_get_data.py
taatuco/smartalpha-data-collection
0c184f156d60314cf1606b2cf1fb9e22526d5171
[ "MIT" ]
null
null
null
portfolios/portf_main_get_data.py
taatuco/smartalpha-data-collection
0c184f156d60314cf1606b2cf1fb9e22526d5171
[ "MIT" ]
null
null
null
""" Collect and compute strategy portfolio data """ # Copyright (c) 2018-present, Taatu Ltd. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import sys import os PDIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) sys.path.appe...
33.576923
66
0.806415
""" Collect and compute strategy portfolio data """ # Copyright (c) 2018-present, Taatu Ltd. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import sys import os PDIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) sys.path.appe...
0
0
0
0
0
0
0
0
0
ec766a91d50160c1f3a159889ebe073be2de8f74
20,732
py
Python
TicTacToe.py
corndog2000/TicTacToe
01b8c4450f488f5eec73b01d79d59fd9a573f861
[ "Unlicense" ]
null
null
null
TicTacToe.py
corndog2000/TicTacToe
01b8c4450f488f5eec73b01d79d59fd9a573f861
[ "Unlicense" ]
null
null
null
TicTacToe.py
corndog2000/TicTacToe
01b8c4450f488f5eec73b01d79d59fd9a573f861
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Joseph Schroedl # joe.schroedl@outlook.com # https://github.com/corndog2000 import argparse gameboard = [] global_moves = [] playerList = [] winners = [] whosTurn = -1 # Variables needed for formatting the csv output file header_check = False write_header = True # A...
29.282486
133
0.553926
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Joseph Schroedl # joe.schroedl@outlook.com # https://github.com/corndog2000 import random import os import argparse import csv import json import matplotlib.pyplot as plt import time import numba from numba import jit from colorama import init, Fore from TreeModel im...
84
0
0
4,685
0
11,984
0
-28
522
51c2ace0c9f8fe1768c15f479ea87c8580243d97
1,271
py
Python
src/azure-cli/azure/cli/command_modules/relay/_completers.py
YuanyuanNi/azure-cli
63844964374858bfacd209bfe1b69eb456bd64ca
[ "MIT" ]
3,287
2016-07-26T17:34:33.000Z
2022-03-31T09:52:13.000Z
src/azure-cli/azure/cli/command_modules/relay/_completers.py
YuanyuanNi/azure-cli
63844964374858bfacd209bfe1b69eb456bd64ca
[ "MIT" ]
19,206
2016-07-26T07:04:42.000Z
2022-03-31T23:57:09.000Z
src/azure-cli/azure/cli/command_modules/relay/_completers.py
YuanyuanNi/azure-cli
63844964374858bfacd209bfe1b69eb456bd64ca
[ "MIT" ]
2,575
2016-07-26T06:44:40.000Z
2022-03-31T22:56:06.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
45.392857
110
0.691581
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
0
722
0
0
0
0
0
26
69
50fc1c239258b1ae92882bbb0f4f98a278bf1887
23,783
py
Python
freezegun/api.py
qntln/freezegun
1534e21995bcf212508b76b54db50d899c1c597a
[ "Apache-2.0" ]
1
2017-10-30T13:11:08.000Z
2017-10-30T13:11:08.000Z
freezegun/api.py
qntln/freezegun
1534e21995bcf212508b76b54db50d899c1c597a
[ "Apache-2.0" ]
null
null
null
freezegun/api.py
qntln/freezegun
1534e21995bcf212508b76b54db50d899c1c597a
[ "Apache-2.0" ]
null
null
null
import datetime import inspect import time import uuid import platform from dateutil import parser real_time = time.time real_localtime = time.localtime real_gmtime = time.gmtime real_strftime = time.strftime real_date = datetime.date real_datetime = datetime.datetime real_date_objects = [real_time, real_localtime, r...
34.368497
120
0.661607
import datetime import functools import hashlib import inspect import sys import time import uuid import calendar import unittest import platform import warnings import types import numbers from dateutil import parser from dateutil.tz import tzlocal real_time = time.time real_localtime = time.localtime real_gmtime = ...
0
1,242
0
13,789
0
4,351
0
-32
934
7182bf070668d1b6a30805d001a430166d63ac06
673
py
Python
hoomd/jit/__init__.py
FeynmanDNA/hoomd-blue
707e5163b0e15e5d2bae1f992f985c7d97ebef32
[ "BSD-3-Clause" ]
1
2019-05-21T00:48:37.000Z
2019-05-21T00:48:37.000Z
hoomd/jit/__init__.py
FeynmanDNA/hoomd-blue
707e5163b0e15e5d2bae1f992f985c7d97ebef32
[ "BSD-3-Clause" ]
null
null
null
hoomd/jit/__init__.py
FeynmanDNA/hoomd-blue
707e5163b0e15e5d2bae1f992f985c7d97ebef32
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2009-2019 The Regents of the University of Michigan # This file is part of the HOOMD-blue project, released under the BSD 3-Clause License. """ JIT The JIT module provides *experimental* support to to JIT (just in time) compile C++ code and call it during the simulation. Compiled C++ code will execute...
35.421053
111
0.745914
# Copyright (c) 2009-2019 The Regents of the University of Michigan # This file is part of the HOOMD-blue project, released under the BSD 3-Clause License. """ JIT The JIT module provides *experimental* support to to JIT (just in time) compile C++ code and call it during the simulation. Compiled C++ code will execute...
0
0
0
0
0
0
0
15
45
1acee690b6e2d224ef1067da5bc88d83dfebf726
12,188
py
Python
scripts/size.py
sjurajpuchky/rust-lexical
827dd8722967030bfe75cfbd786f0e160ffb9c0c
[ "Apache-2.0", "MIT" ]
249
2018-12-15T22:10:42.000Z
2022-03-28T05:43:13.000Z
scripts/size.py
sjurajpuchky/rust-lexical
827dd8722967030bfe75cfbd786f0e160ffb9c0c
[ "Apache-2.0", "MIT" ]
76
2018-11-25T03:41:43.000Z
2022-03-15T18:57:00.000Z
scripts/size.py
sjurajpuchky/rust-lexical
827dd8722967030bfe75cfbd786f0e160ffb9c0c
[ "Apache-2.0", "MIT" ]
35
2018-12-02T19:35:28.000Z
2022-03-12T23:37:39.000Z
#!/usr/bin/env python ''' size ==== Get the binary sizes from executables using lexical. By default, this uses binutils `size` command to probe binary sizes: if `size` is not on the path, like on Windows, you can set the `SIZE` environment variable to manually specify the `size` executable. Lik...
28.745283
85
0.575812
#!/usr/bin/env python ''' size ==== Get the binary sizes from executables using lexical. By default, this uses binutils `size` command to probe binary sizes: if `size` is not on the path, like on Windows, you can set the `SIZE` environment variable to manually specify the `size` executable. Lik...
0
0
0
0
0
271
0
-5
75
8fd94991e60f7903c56d144d22ddfcf506bbef41
45
py
Python
notebooks/_solutions/case-curieuzeneuzen-air-quality39.py
jorisvandenbossche/DS-python-geospatial
893a12edc5c203a75815f6dcb5f1e18c577c8cd5
[ "BSD-3-Clause" ]
58
2020-10-09T10:10:59.000Z
2022-03-07T14:58:07.000Z
notebooks/_solutions/case-curieuzeneuzen-air-quality39.py
jorisvandenbossche/DS-python-geospatial
893a12edc5c203a75815f6dcb5f1e18c577c8cd5
[ "BSD-3-Clause" ]
24
2020-09-30T19:57:14.000Z
2021-10-05T07:21:09.000Z
notebooks/_solutions/case-curieuzeneuzen-air-quality39.py
jorisvandenbossche/DS-python-geospatial
893a12edc5c203a75815f6dcb5f1e18c577c8cd5
[ "BSD-3-Clause" ]
19
2020-10-05T09:32:18.000Z
2022-03-20T00:09:14.000Z
counts = gdf['land_use_class'].value_counts()
45
45
0.777778
counts = gdf['land_use_class'].value_counts()
0
0
0
0
0
0
0
0
0
94a950449090aa7f47c95a9a55b1ec85f695ea0b
316
py
Python
openks/models/pytorch/mmd_modules/det_sgg/maskrcnn_benchmark/data/datasets/utils/image_ops.py
lzy1203/OpenKS
6a22fac7550e248e43d5b55ef39b1fe67c4b4b68
[ "Apache-2.0" ]
null
null
null
openks/models/pytorch/mmd_modules/det_sgg/maskrcnn_benchmark/data/datasets/utils/image_ops.py
lzy1203/OpenKS
6a22fac7550e248e43d5b55ef39b1fe67c4b4b68
[ "Apache-2.0" ]
null
null
null
openks/models/pytorch/mmd_modules/det_sgg/maskrcnn_benchmark/data/datasets/utils/image_ops.py
lzy1203/OpenKS
6a22fac7550e248e43d5b55ef39b1fe67c4b4b68
[ "Apache-2.0" ]
2
2021-11-18T06:55:55.000Z
2021-12-29T15:21:07.000Z
# Copyright (c) 2021 Microsoft Corporation. Licensed under the MIT license.
19.75
76
0.702532
# Copyright (c) 2021 Microsoft Corporation. Licensed under the MIT license. import base64 from PIL import Image import io def img_from_base64(imagestring): try: img = Image.open(io.BytesIO(base64.b64decode(imagestring))) return img.convert('RGB') except ValueError: return None
0
0
0
0
0
166
0
-20
89
8bbc4b0c04ce9d9f70bb7da63ebb6c921c090bd3
1,070
py
Python
myia/operations/prim_scalar_lt.py
strint/myia
3d00d3fb3df80ab7a264a724226c5f56c6ff1a8a
[ "MIT" ]
222
2019-02-13T07:56:28.000Z
2022-03-28T07:07:54.000Z
myia/operations/prim_scalar_lt.py
strint/myia
3d00d3fb3df80ab7a264a724226c5f56c6ff1a8a
[ "MIT" ]
107
2019-02-12T21:56:39.000Z
2022-03-12T01:08:03.000Z
myia/operations/prim_scalar_lt.py
strint/myia
3d00d3fb3df80ab7a264a724226c5f56c6ff1a8a
[ "MIT" ]
27
2017-11-14T17:58:15.000Z
2019-01-14T01:36:09.000Z
"""Definitions for the primitive `scalar_lt`.""" from ..lib import (UniformPrimitiveInferrer, assert_scalar) from ..xtype import Bool, Number from . import primitives as P def pyimpl_scalar_lt(x: Number, y: Number) -> Bool: """Implement `scalar_lt`.""" assert_scalar(x, y) return x < y infer_scalar_lt =...
23.26087
61
0.707477
"""Definitions for the primitive `scalar_lt`.""" from ..lib import ( UniformPrimitiveInferrer, assert_scalar, bprop_to_grad_transform, ) from ..operations import zeros_like from ..xtype import Bool, Number from . import primitives as P def pyimpl_scalar_lt(x: Number, y: Number) -> Bool: """Implement ...
0
138
0
0
0
0
0
54
45
701a949dae8460ba329482a2ff4252668233f3f9
5,580
py
Python
basisopt/testing/dunham.py
robashaw/basisopt
c02fd307bc72c576ed298ea14648818b237d2f30
[ "MIT" ]
4
2022-03-23T09:22:54.000Z
2022-03-26T13:18:45.000Z
basisopt/testing/dunham.py
robashaw/basisopt
c02fd307bc72c576ed298ea14648818b237d2f30
[ "MIT" ]
null
null
null
basisopt/testing/dunham.py
robashaw/basisopt
c02fd307bc72c576ed298ea14648818b237d2f30
[ "MIT" ]
1
2022-03-23T09:22:54.000Z
2022-03-23T09:22:54.000Z
# base test types import numpy as np from basisopt import data from basisopt.util import fit_poly _VALUE_NAMES = ["Ee", "Re", "BRot", "ARot", "We", "Wx", "Wy", "De", "D0"] def dunham(energies, distances, mu, poly_order=6, angstrom=True, Emax=0): "Performs a Dunham analysis on a diatomic, given energy/distance val...
40.434783
127
0.594444
# base test types import numpy as np from .test import Test from basisopt.molecule import Molecule, build_diatomic from basisopt import api, data from basisopt.util import fit_poly from basisopt.exceptions import InvalidDiatomic from mendeleev import element as md_element _VALUE_NAMES = ["Ee", "Re", "BRot", "ARot", "W...
0
0
0
3,804
0
0
0
87
111
d2d1182704dce9a053b57bc273ab73a1f27d8a34
2,532
py
Python
tests/sample/views.py
iml1111/django-jwt-extended
37e90aa1b830333b2bf66449e85d5747b4be74e1
[ "MIT" ]
null
null
null
tests/sample/views.py
iml1111/django-jwt-extended
37e90aa1b830333b2bf66449e85d5747b4be74e1
[ "MIT" ]
null
null
null
tests/sample/views.py
iml1111/django-jwt-extended
37e90aa1b830333b2bf66449e85d5747b4be74e1
[ "MIT" ]
1
2022-01-24T16:02:39.000Z
2022-01-24T16:02:39.000Z
# # # # # Rest framework # Rest framework Func
25.069307
56
0.647314
from django.http import JsonResponse from rest_framework.views import APIView from rest_framework.response import Response from rest_framework.decorators import api_view from django_jwt_extended import jwt_required from django_jwt_extended import create_access_token from django_jwt_extended import create_refresh_token ...
123
1,627
0
6
0
137
0
211
438
56a694a1d8a34edc165d9db318b462035401664c
67,497
py
Python
bkt/library/powerpoint/helpers.py
pyro-team/bkt-toolbox
bbccba142a81ca0a46056f2bcda75899979158a5
[ "MIT" ]
12
2019-05-31T02:57:26.000Z
2022-03-26T09:40:50.000Z
bkt/library/powerpoint/helpers.py
mrflory/bkt-toolbox
bbccba142a81ca0a46056f2bcda75899979158a5
[ "MIT" ]
27
2021-11-27T16:33:19.000Z
2022-03-27T17:47:26.000Z
bkt/library/powerpoint/helpers.py
pyro-team/bkt-toolbox
bbccba142a81ca0a46056f2bcda75899979158a5
[ "MIT" ]
3
2019-06-12T10:59:20.000Z
2020-04-21T15:13:50.000Z
# -*- coding: utf-8 -*- ''' Created on 02.11.2017 @author: fstallmann ''' from __future__ import absolute_import, division import System.Array # to create int/str-Arrays from bkt import dotnet # required to save global locpin setting # DO NOT REMOVE REFERENCE # reference is used by other modules PowerPoint = dotne...
42.450943
176
0.606027
# -*- coding: utf-8 -*- ''' Created on 02.11.2017 @author: fstallmann ''' from __future__ import absolute_import, division import time import json # required for tags from collections import namedtuple # required for color class from contextlib import contextmanager # for locale helper import System.Array # to crea...
67
9,728
0
20,768
0
728
0
32
706
e0db28e7dbaa4bda251e43fcc19f9aac85d5fd6b
1,180
py
Python
specs/train_baselineconv_on_Battleship.py
jasonmhwu/wmg_agent
7a2d5f99cc160b27560da623b58d9ebdc97a6c82
[ "MIT" ]
null
null
null
specs/train_baselineconv_on_Battleship.py
jasonmhwu/wmg_agent
7a2d5f99cc160b27560da623b58d9ebdc97a6c82
[ "MIT" ]
null
null
null
specs/train_baselineconv_on_Battleship.py
jasonmhwu/wmg_agent
7a2d5f99cc160b27560da623b58d9ebdc97a6c82
[ "MIT" ]
null
null
null
config = { # general "TYPE_OF_RUN": "train", # train, test, test_episodes, render "PROJECT_PATH": "/Users/mhwu/Desktop/rochester/RL_projects/wmg_agent", # worker.py "ENV": "BattleshipEnv", "ENV_RANDOM_SEED": 3, "AGENT_RANDOM_SEED": 1, "REPORTING_INTERVAL": 5_000, "TOTAL_STEPS": 200_...
28.780488
74
0.64661
config = { # general "TYPE_OF_RUN": "train", # train, test, test_episodes, render "PROJECT_PATH": "/Users/mhwu/Desktop/rochester/RL_projects/wmg_agent", # worker.py "ENV": "BattleshipEnv", "ENV_RANDOM_SEED": 3, "AGENT_RANDOM_SEED": 1, "REPORTING_INTERVAL": 5_000, "TOTAL_STEPS": 200_...
0
0
0
0
0
0
0
0
0
16915666e557977a74c740b5c33c39e74ea3f278
3,451
py
Python
flags/templatetags/flags_debug.py
darakian/django-flags
0f24748a0c4307e154f7ce7c245cdc3f3ec7a1c1
[ "CC0-1.0" ]
null
null
null
flags/templatetags/flags_debug.py
darakian/django-flags
0f24748a0c4307e154f7ce7c245cdc3f3ec7a1c1
[ "CC0-1.0" ]
null
null
null
flags/templatetags/flags_debug.py
darakian/django-flags
0f24748a0c4307e154f7ce7c245cdc3f3ec7a1c1
[ "CC0-1.0" ]
null
null
null
from django import template register = template.Library()
34.51
78
0.631701
from django import template from django.utils.safestring import mark_safe from django.utils.translation import gettext as _ register = template.Library() @register.filter def bool_enabled(flag): return any(c.check() for c in flag.conditions if c.condition == 'boolean') @register.filter def conditions_without_...
0
3,199
0
0
0
0
0
52
136
85e070c57423afd9e6145c5d39ec31bbb2fba32f
944
py
Python
esercizi/meteoMilanoGenTxt.py
gdv/python-alfabetizzazione
d87561222de8a230db11d8529c49cf1702aec326
[ "MIT" ]
null
null
null
esercizi/meteoMilanoGenTxt.py
gdv/python-alfabetizzazione
d87561222de8a230db11d8529c49cf1702aec326
[ "MIT" ]
null
null
null
esercizi/meteoMilanoGenTxt.py
gdv/python-alfabetizzazione
d87561222de8a230db11d8529c49cf1702aec326
[ "MIT" ]
1
2019-03-26T11:14:33.000Z
2019-03-26T11:14:33.000Z
import numpy as np import matplotlib.pyplot as plt fileName = 'MeteoMilano.csv' # [0] CET # Temperatura maxC # Temperatura mediaC # Temperatura minC # Punto di rugiadaC # MeanDew PointC # Min DewpointC # Max Umidit # Mean Umidit # [9] Min Umidit # Max Pressione a livello ...
26.971429
78
0.675847
import numpy as np import matplotlib.pyplot as plt fileName = 'MeteoMilano.csv' # [0] CET # Temperatura maxC # Temperatura mediaC # Temperatura minC # Punto di rugiadaC # MeanDew PointC # Min DewpointC # Max Umidità # Mean Umidità # [9] Min Umidità # Max Pressione a livel...
18
0
0
0
0
0
0
0
0
a331722b5a29decad7f1b312fceb7d09a1b71733
161
py
Python
submissions/code-festival-2016-qualc/a.py
m-star18/atcoder
08e475810516602fa088f87daf1eba590b4e07cc
[ "Unlicense" ]
1
2021-05-10T01:16:28.000Z
2021-05-10T01:16:28.000Z
submissions/code-festival-2016-qualc/a.py
m-star18/atcoder
08e475810516602fa088f87daf1eba590b4e07cc
[ "Unlicense" ]
3
2021-05-11T06:14:15.000Z
2021-06-19T08:18:36.000Z
submissions/code-festival-2016-qualc/a.py
m-star18/atcoder
08e475810516602fa088f87daf1eba590b4e07cc
[ "Unlicense" ]
null
null
null
s = input() cnt = 0 for i in range(len(s)): if s[i] == 'C': cnt = 1 if cnt == 1 and s[i] == 'F': print('Yes') exit() print('No')
16.1
32
0.403727
s = input() cnt = 0 for i in range(len(s)): if s[i] == 'C': cnt = 1 if cnt == 1 and s[i] == 'F': print('Yes') exit() print('No')
0
0
0
0
0
0
0
0
0
522ebcdad1d8916af8121f52b9af475c9a90f4e2
4,344
py
Python
machine_learning/exercises/python/ex7.py
akhilmw/coursera-stanford
f6f8087e3db936e1125ae590edcb6d3f189c1d8b
[ "MIT" ]
4
2022-01-19T14:46:36.000Z
2022-01-20T08:32:11.000Z
machine_learning/exercises/python/ex7.py
arpitporwal92/coursera-stanford
f6f8087e3db936e1125ae590edcb6d3f189c1d8b
[ "MIT" ]
null
null
null
machine_learning/exercises/python/ex7.py
arpitporwal92/coursera-stanford
f6f8087e3db936e1125ae590edcb6d3f189c1d8b
[ "MIT" ]
3
2016-01-25T02:58:20.000Z
2016-04-10T18:35:26.000Z
#!/usr/local/Cellar/python/2.7.6/bin/python # -*- coding: utf-8 -*- '''Standard python modules''' '''For scientific computing''' import scipy.misc, scipy.io, scipy.optimize '''For plotting''' if __name__ == '__main__': main()
24.268156
99
0.637661
#!/usr/local/Cellar/python/2.7.6/bin/python # -*- coding: utf-8 -*- '''Standard python modules''' import sys '''For scientific computing''' from numpy import * import scipy.misc, scipy.io, scipy.optimize, scipy.cluster.vq '''For plotting''' from matplotlib import pyplot, cm, colors from mpl_toolkits.mplot3d import A...
0
0
0
0
0
3,743
0
43
322
d55160962a2eec12d21eb3f9e238800b7e086848
666
py
Python
chatbot/deprecated_bot/server.py
AldiT/seminar
463bc2024970c02bf58b6cc9733efc7254faae30
[ "Apache-2.0" ]
null
null
null
chatbot/deprecated_bot/server.py
AldiT/seminar
463bc2024970c02bf58b6cc9733efc7254faae30
[ "Apache-2.0" ]
null
null
null
chatbot/deprecated_bot/server.py
AldiT/seminar
463bc2024970c02bf58b6cc9733efc7254faae30
[ "Apache-2.0" ]
null
null
null
from bot import Telegram_Chatbot from chat_controller import Chat_Controller # Instantiate bot with token specified in the config my_bot = Telegram_Chatbot("config.cfg") chat_controller = Chat_Controller() update_id = None while True: updates = my_bot.get_updates(offset=update_id) updates = updates['result'] ...
30.272727
74
0.720721
from bot import Telegram_Chatbot from chat_controller import Chat_Controller # Instantiate bot with token specified in the config my_bot = Telegram_Chatbot("config.cfg") chat_controller = Chat_Controller() def make_reply(message): return "Okay cool" update_id = None while True: updates = my_bot.get_updates(o...
0
0
0
0
0
26
0
0
23
365a4899c349ea2fca92fdec77d45160cf8f3aff
1,079
py
Python
post/migrations/0012_auto_20190926_0847.py
abhiabhi94/blog
0da1522361e47af3bbfba974f801277e14c7a397
[ "MIT" ]
null
null
null
post/migrations/0012_auto_20190926_0847.py
abhiabhi94/blog
0da1522361e47af3bbfba974f801277e14c7a397
[ "MIT" ]
12
2019-09-11T18:37:19.000Z
2019-09-16T21:51:35.000Z
post/migrations/0012_auto_20190926_0847.py
abhiabhi94/blog
0da1522361e47af3bbfba974f801277e14c7a397
[ "MIT" ]
null
null
null
# Generated by Django 2.2.5 on 2019-09-26 08:47
35.966667
274
0.619092
# Generated by Django 2.2.5 on 2019-09-26 08:47 from django.db import migrations, models import markupfield.fields class Migration(migrations.Migration): dependencies = [ ('post', '0011_auto_20190926_0836'), ] operations = [ migrations.AddField( model_name='post', ...
0
0
0
939
0
0
0
23
68
39e33a88d088d00a1fbd7b0de3d92f88a6aaf065
3,326
py
Python
ca_nb_moncton/people.py
tor-councilmatic/scrapers-ca
821be4ccfc4f5aef3f8272b626b031e225aef7ee
[ "MIT" ]
2
2017-06-02T09:41:28.000Z
2017-11-17T15:27:07.000Z
ca_nb_moncton/people.py
tor-councilmatic/scrapers-ca
821be4ccfc4f5aef3f8272b626b031e225aef7ee
[ "MIT" ]
null
null
null
ca_nb_moncton/people.py
tor-councilmatic/scrapers-ca
821be4ccfc4f5aef3f8272b626b031e225aef7ee
[ "MIT" ]
null
null
null
from __future__ import unicode_literals COUNCIL_PAGE = 'http://www.moncton.ca/Government/City_Council.htm'
39.129412
121
0.543897
from __future__ import unicode_literals from utils import CanadianScraper, CanadianPerson as Person import re from collections import defaultdict COUNCIL_PAGE = 'http://www.moncton.ca/Government/City_Council.htm' class MonctonPersonScraper(CanadianScraper): def scrape(self): seat_numbers = defaultdict(...
0
0
0
3,087
0
0
0
40
90
869e38bb2a4558305470c2cb0d6bc243433a4f4b
10,457
py
Python
arch/common/gen_isr_tables.py
hakonfam/fw-nrfconnect-zephyr-1
4aa479f2f8f206c937952d845d7f931a8185a05c
[ "Apache-2.0" ]
2
2018-02-07T21:38:25.000Z
2018-03-01T15:35:24.000Z
arch/common/gen_isr_tables.py
hakonfam/fw-nrfconnect-zephyr-1
4aa479f2f8f206c937952d845d7f931a8185a05c
[ "Apache-2.0" ]
4
2019-04-04T07:45:40.000Z
2020-01-16T11:25:44.000Z
arch/common/gen_isr_tables.py
hakonfam/fw-nrfconnect-zephyr-1
4aa479f2f8f206c937952d845d7f931a8185a05c
[ "Apache-2.0" ]
2
2019-01-10T14:52:56.000Z
2019-02-15T05:46:08.000Z
#!/usr/bin/env python3 # # Copyright (c) 2017 Intel Corporation # Copyright (c) 2018 Foundries.io # # SPDX-License-Identifier: Apache-2.0 # import struct ISR_FLAG_DIRECT = (1 << 0) # The below few hardware independent magic numbers represent various # levels of interrupts in a multi-level interrupt system. # 0x000000...
34.173203
86
0.590131
#!/usr/bin/env python3 # # Copyright (c) 2017 Intel Corporation # Copyright (c) 2018 Foundries.io # # SPDX-License-Identifier: Apache-2.0 # import argparse import struct import sys import os from elftools.elf.elffile import ELFFile from elftools.elf.sections import SymbolTableSection ISR_FLAG_DIRECT = (1 << 0) # The...
0
0
0
0
0
7,403
0
21
295
926e5a252a36c5bbf1c4e6bcea7605e5a420681a
2,859
py
Python
python_mqtt_pir_controller/python_mqtt_pir_controller.py
bodhiconnolly/mqtt_home_control
0faf6d33e63aa7c855eb74c47146da0af9875d5c
[ "MIT" ]
null
null
null
python_mqtt_pir_controller/python_mqtt_pir_controller.py
bodhiconnolly/mqtt_home_control
0faf6d33e63aa7c855eb74c47146da0af9875d5c
[ "MIT" ]
null
null
null
python_mqtt_pir_controller/python_mqtt_pir_controller.py
bodhiconnolly/mqtt_home_control
0faf6d33e63aa7c855eb74c47146da0af9875d5c
[ "MIT" ]
null
null
null
import datetime import paho.mqtt.client as mqtt MQTTServer="home.bodhiconnolly.com" MQTTPort=1882 waitTime=datetime.timedelta(milliseconds=50) lastTime=datetime.datetime.now() fadeSeconds=5 onTopic = "system/room/PIR" onMessage = "PIR Receiver On" funcTopic = "room/function/" incomingTopic = "room/pir/status" ...
28.878788
79
0.519063
from time import sleep import threading import datetime import paho.mqtt.client as mqtt MQTTServer="home.bodhiconnolly.com" MQTTPort=1882 waitTime=datetime.timedelta(milliseconds=50) lastTime=datetime.datetime.now() fadeSeconds=5 onTopic = "system/room/PIR" onMessage = "PIR Receiver On" funcTopic = "room/function/" i...
0
0
0
2,143
0
41
0
-4
90
0b14ebb4f84ed4c3310d457d6e283082d5eb0d7a
352
py
Python
cookbook/migrations/0018_auto_20200216_2303.py
mhoellmann/recipes
525aa4e4a4f218a47e1770498fff9fa8b0d7a097
[ "MIT" ]
null
null
null
cookbook/migrations/0018_auto_20200216_2303.py
mhoellmann/recipes
525aa4e4a4f218a47e1770498fff9fa8b0d7a097
[ "MIT" ]
1
2020-04-11T09:47:20.000Z
2020-04-11T09:47:20.000Z
cookbook/migrations/0018_auto_20200216_2303.py
mcejp/recipes
913d858473a1d44b2ced02e09fddfc4d320848b7
[ "MIT" ]
null
null
null
# Generated by Django 3.0.2 on 2020-02-16 22:03
19.555556
48
0.619318
# Generated by Django 3.0.2 on 2020-02-16 22:03 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('cookbook', '0017_auto_20200216_2257'), ] operations = [ migrations.RenameModel( old_name='RecipeIngredients', new_name='Reci...
0
0
0
246
0
0
0
11
46
76de3593631a92a1bbd8b41d5ea383efb1c99926
1,350
py
Python
00_Code/01_LeetCode/21_MergeTwoSortedLists.py
KartikKannapur/Data_Structures_and_Algorithms_Python
66e3c8112826aeffb78bd74d02be1a8d1e478de8
[ "MIT" ]
1
2017-06-11T04:57:07.000Z
2017-06-11T04:57:07.000Z
00_Code/01_LeetCode/21_MergeTwoSortedLists.py
KartikKannapur/Data_Structures_and_Algorithms_Python
66e3c8112826aeffb78bd74d02be1a8d1e478de8
[ "MIT" ]
null
null
null
00_Code/01_LeetCode/21_MergeTwoSortedLists.py
KartikKannapur/Data_Structures_and_Algorithms_Python
66e3c8112826aeffb78bd74d02be1a8d1e478de8
[ "MIT" ]
null
null
null
""" Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists. Example: Input: 1->2->4, 1->3->4 Output: 1->1->2->3->4->4 Your runtime beats 55.16 % of python submissions. """ # Definition for singly-linked list. # class ListNode(obj...
24.545455
141
0.548148
""" Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists. Example: Input: 1->2->4, 1->3->4 Output: 1->1->2->3->4->4 Your runtime beats 55.16 % of python submissions. """ # Definition for singly-linked list. # class ListNode(obj...
0
0
0
922
0
0
0
0
23
0ad1b7f4d3b1a6d2615ce7677b1535d8aee144ef
834
py
Python
binarytree/填充同一层的兄弟节点.py
ResolveWang/algorithm_qa
a0cb649acaf8cf9d808272bc15f1951f2c05c828
[ "MIT" ]
79
2018-03-27T12:37:49.000Z
2022-01-21T10:18:17.000Z
binarytree/填充同一层的兄弟节点.py
ResolveWang/algorithm_qa
a0cb649acaf8cf9d808272bc15f1951f2c05c828
[ "MIT" ]
null
null
null
binarytree/填充同一层的兄弟节点.py
ResolveWang/algorithm_qa
a0cb649acaf8cf9d808272bc15f1951f2c05c828
[ "MIT" ]
27
2018-04-08T03:07:06.000Z
2021-10-30T00:01:50.000Z
""" struct TreeLinkNode { TreeLinkNode *left; TreeLinkNode *right; TreeLinkNode *next; } next next NULL next NULL : 1.(1) 2. """ # Definition for binary tree with next pointer. # class TreeLinkNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None...
21.384615
63
0.568345
""" 给定一个二叉树 struct TreeLinkNode { TreeLinkNode *left; TreeLinkNode *right; TreeLinkNode *next; } 填充它的每个 next 指针,让这个指针指向其下一个右侧节点。如果找不到下一个右侧节点,则将 next 指针设置为 NULL。 初始状态下,所有 next 指针都被设置为 NULL。 要求: 1.额外空间复杂度为(1),递归的栈空间不算 2.给定的二叉树为满二叉树 """ # Definition for binary tree with next pointer. # class TreeLinkNode: # d...
297
0
0
365
0
0
0
0
23
20283ff649bc21a0aa16efb922787ac3615863b4
1,696
py
Python
jeu_educatif/python/test_substitution.py
Charles-Svg/Projet_L3_jeu_educatif
841f70f1368117288128342258f5832ca9028161
[ "MIT" ]
null
null
null
jeu_educatif/python/test_substitution.py
Charles-Svg/Projet_L3_jeu_educatif
841f70f1368117288128342258f5832ca9028161
[ "MIT" ]
null
null
null
jeu_educatif/python/test_substitution.py
Charles-Svg/Projet_L3_jeu_educatif
841f70f1368117288128342258f5832ca9028161
[ "MIT" ]
null
null
null
import temp try: if not ("substitution" in dir(temp) and callable(getattr(temp,'substitution'))): print("Incorrect : fonction substitution(mot, cle) non dclare") answer = False else: answer = test() except Exception as e: print(type(e).__name__, ":", e) answer = False if answ...
29.241379
106
0.618514
import temp def test(): if temp.substitution("a", "a") is None: print("Incorrect : aucun retour") return False test1 = temp.substitution("avion", "xylophone") if test1 != "ixodg": if test1 == "xtaig": print("Incorrect : ceci est une fonction de chiffrement et non de dé...
22
0
0
0
0
1,272
0
0
23
d612f2588b31282346aaf08953bbbd69052ea17d
2,394
py
Python
terraform/cloudfront/lambda.tf.json.template.py
DataBiosphere/cellxgene-fargate
602f593c37e793c8300e3153c5e3cb278aeb04e5
[ "MIT" ]
null
null
null
terraform/cloudfront/lambda.tf.json.template.py
DataBiosphere/cellxgene-fargate
602f593c37e793c8300e3153c5e3cb278aeb04e5
[ "MIT" ]
14
2020-03-12T23:40:10.000Z
2021-04-28T00:12:10.000Z
terraform/cloudfront/lambda.tf.json.template.py
DataBiosphere/cellxgene-fargate
602f593c37e793c8300e3153c5e3cb278aeb04e5
[ "MIT" ]
null
null
null
import json from azul.deployment import (emit_tf) emit_tf({ 'data': { 'aws_cloudfront_distribution': { 'cloudfront': { 'id': 'E3QDNPF7XH7O7G' } } }, 'resource': { 'aws_iam_role': { 'cloudfront': { 'name': 'cellxgen...
31.5
73
0.333333
import json from azul.deployment import ( emit_tf, ) emit_tf({ 'data': { 'aws_cloudfront_distribution': { 'cloudfront': { 'id': 'E3QDNPF7XH7O7G' } } }, 'resource': { 'aws_iam_role': { 'cloudfront': { 'name': 'c...
0
0
0
0
0
0
0
7
0
4950170fa5aada96e9c9864501035714e720b0c8
5,583
py
Python
Semana4/Projeto/readWebInfo.py
cglsoft/DataScience-FDSII
18c1de0f6cb1471aee88f9a547c242fbbc61fa19
[ "Apache-2.0" ]
null
null
null
Semana4/Projeto/readWebInfo.py
cglsoft/DataScience-FDSII
18c1de0f6cb1471aee88f9a547c242fbbc61fa19
[ "Apache-2.0" ]
null
null
null
Semana4/Projeto/readWebInfo.py
cglsoft/DataScience-FDSII
18c1de0f6cb1471aee88f9a547c242fbbc61fa19
[ "Apache-2.0" ]
null
null
null
""" #https://github.com/AlanPrado/FDSI2_subway_data/blob/master/analyzing-subway-data-ndfdsi.ipynb Subway Data Analysis Introduction O sistema de nibus e trens de Nova Iorque - o Metro Transit Authority - fornece seus dados para download atravs de arquivos csv. Uma das informaes disponveis so os dados das catracas do...
38.239726
317
0.671682
""" #https://github.com/AlanPrado/FDSI2_subway_data/blob/master/analyzing-subway-data-ndfdsi.ipynb Subway Data Analysis Introduction O sistema de ônibus e trens de Nova Iorque - o Metro Transit Authority - fornece seus dados para download através de arquivos csv. Uma das informações disponíveis são os dados das catra...
90
0
0
0
0
2,417
0
-2
233
07cb5ed5af31a252c88cff712eca87386679c684
1,181
py
Python
sheetsite/tweaks/list_to_rows.py
paulfitz/sheetsite
3ec3226a3d7e9cce7e92e5bcae96acf4d970ab0e
[ "MIT" ]
33
2016-01-17T15:32:56.000Z
2020-11-30T01:49:32.000Z
sheetsite/tweaks/list_to_rows.py
paulfitz/sheetsite
3ec3226a3d7e9cce7e92e5bcae96acf4d970ab0e
[ "MIT" ]
null
null
null
sheetsite/tweaks/list_to_rows.py
paulfitz/sheetsite
3ec3226a3d7e9cce7e92e5bcae96acf4d970ab0e
[ "MIT" ]
3
2018-10-30T08:32:28.000Z
2020-11-30T02:03:22.000Z
''' Take a list and make extra rows from it tweaks: list_to_rows: column: "Other Addresses" target: "address" # optional '''
24.604167
62
0.463167
''' Take a list and make extra rows from it tweaks: list_to_rows: column: "Other Addresses" target: "address" # optional ''' import copy import re import six def apply(wb, params): column = params['column'] target = params.get('target', column) table = params.get('table') active = Fal...
0
0
0
0
0
968
0
-33
90
e1f7fe2014b958f8d449b820a504b12e5b1697ea
4,464
py
Python
ant/fs/test/command_test.py
ddboline/Garmin-Forerunner-610-Extractor_fork
3cea481bd103a1f20a3ff17f307d2a3a68068ba5
[ "MIT" ]
3
2016-07-19T12:04:46.000Z
2019-08-03T21:17:28.000Z
ant/fs/test/command_test.py
ddboline/Garmin-Forerunner-610-Extractor_fork
3cea481bd103a1f20a3ff17f307d2a3a68068ba5
[ "MIT" ]
null
null
null
ant/fs/test/command_test.py
ddboline/Garmin-Forerunner-610-Extractor_fork
3cea481bd103a1f20a3ff17f307d2a3a68068ba5
[ "MIT" ]
2
2019-02-18T08:57:30.000Z
2019-08-03T20:54:37.000Z
# Ant-FS # # Copyright (c) 2012, Gustav Tiger <gustav@tiger.name> # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights to use, copy...
51.310345
82
0.573477
# Ant-FS # # Copyright (c) 2012, Gustav Tiger <gustav@tiger.name> # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights to use, copy...
0
0
0
0
0
3,158
0
67
115
7fa94d0c36ae17fb7490233a6caf6c47c8509aba
5,305
py
Python
supports/pyload/src/pyload/plugins/decrypters/SexuriaCom.py
LuckyNicky/pycrawler
4b3fe2f6e8e51f236d95a64a89a44199e4e97743
[ "Apache-2.0" ]
1
2020-04-02T17:03:39.000Z
2020-04-02T17:03:39.000Z
supports/pyload/src/pyload/plugins/decrypters/SexuriaCom.py
LuckyNicky/pycrawler
4b3fe2f6e8e51f236d95a64a89a44199e4e97743
[ "Apache-2.0" ]
null
null
null
supports/pyload/src/pyload/plugins/decrypters/SexuriaCom.py
LuckyNicky/pycrawler
4b3fe2f6e8e51f236d95a64a89a44199e4e97743
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*-
38.165468
141
0.531008
# -*- coding: utf-8 -*- import re from ..base.decrypter import BaseDecrypter class SexuriaCom(BaseDecrypter): __name__ = "SexuriaCom" __type__ = "decrypter" __version__ = "0.15" __status__ = "testing" __pyload_version__ = "0.5" __pattern__ = r"http://(?:www\.)?sexuria\.com/(v1/)?(Pornos_Kos...
0
0
0
5,203
0
0
0
9
68
0c8ac301e6eb827b2930763eeccf024b21aa630c
762
py
Python
src/dnd_character_sheet/finestraDelCappero.py
alelucio/dnd_character_sheet
b66fd326568fee51189f1dcbfc336acfc3d158f8
[ "MIT" ]
null
null
null
src/dnd_character_sheet/finestraDelCappero.py
alelucio/dnd_character_sheet
b66fd326568fee51189f1dcbfc336acfc3d158f8
[ "MIT" ]
1
2018-03-18T16:05:52.000Z
2018-03-18T16:06:10.000Z
src/dnd_character_sheet/finestraDelCappero.py
alelucio/dnd_character_sheet
b66fd326568fee51189f1dcbfc336acfc3d158f8
[ "MIT" ]
null
null
null
from dnd_character_sheet.sheets.Abilities import Abilities finestra = Tk() finestra.geometry('500x300+400+200') finestra.title('D&D CHARACTER SHEET') abilities = Abilities() abilities.strength = 13 abilities.dexterity = 16 abilities.constitution = 14 abilities.intelligence = 11 abilities.wisdom = 16 abilities.char...
30.48
124
0.765092
from tkinter import * from dnd_character_sheet.sheets.Abilities import Abilities finestra = Tk() finestra.geometry('500x300+400+200') finestra.title('D&D CHARACTER SHEET') abilities = Abilities() abilities.strength = 13 abilities.dexterity = 16 abilities.constitution = 14 abilities.intelligence = 11 abilities.wisd...
0
0
0
0
0
0
0
0
22
ed11f32bd6f67b6c901740f70659bf92a82feedc
170
py
Python
src/gpyts/errors/__init__.py
Ripeey/Gpyts
6777e70ee01939c7c0face38bc0bfd3c38e9ca22
[ "MIT" ]
5
2021-06-03T17:01:44.000Z
2022-02-25T12:57:20.000Z
src/gpyts/errors/__init__.py
Ripeey/Gpyts
6777e70ee01939c7c0face38bc0bfd3c38e9ca22
[ "MIT" ]
null
null
null
src/gpyts/errors/__init__.py
Ripeey/Gpyts
6777e70ee01939c7c0face38bc0bfd3c38e9ca22
[ "MIT" ]
null
null
null
#!/usr/bin/python3 #MIT License #Copyright (c) 2021 Ripe
14.166667
33
0.770588
#!/usr/bin/python3 #MIT License #Copyright (c) 2021 Ripe class InvalidLanguage(Exception): pass class FloodError(Exception): pass class ConfigError(Exception): pass
0
0
0
45
0
0
0
0
67
b86820c35cd9e629b870f0e148640fadf690fe0f
3,161
py
Python
checkers/evalexpr/checker.py
MathiDEV/epitech_productivity_tools
33ab321f1605d373da9f8f72837afd69280c92d8
[ "MIT" ]
10
2022-03-09T20:33:46.000Z
2022-03-21T11:14:53.000Z
checkers/evalexpr/checker.py
MathiDEV/epitech_productivity_tools
33ab321f1605d373da9f8f72837afd69280c92d8
[ "MIT" ]
null
null
null
checkers/evalexpr/checker.py
MathiDEV/epitech_productivity_tools
33ab321f1605d373da9f8f72837afd69280c92d8
[ "MIT" ]
null
null
null
import subprocess import warnings warnings.filterwarnings("ignore") nb_prob = 50 open_prob = 100 prob_end = 5 num_range = [0, 100] expr = "" operators = ["+","-","*","/", "%"] opened_p = 0 min_expr_len = 5 max_expr_len = 30 no_overflow = False error = False while not error: while not no_overflow: while (...
32.927083
123
0.50522
from random import * import subprocess import sys import warnings warnings.filterwarnings("ignore") nb_prob = 50 open_prob = 100 prob_end = 5 num_range = [0, 100] expr = "" operators = ["+","-","*","/", "%"] opened_p = 0 min_expr_len = 5 max_expr_len = 30 no_overflow = False error = False def append_number(): glo...
0
0
0
0
0
359
0
-12
111
0e4a8b164fc1191a958a421fd829ebbd82b52ca9
1,749
py
Python
fastCell/pixelize_segment.py
Mouse-Imaging-Centre/fastCell
1d1c39d9953ee83e2c56b284f5b1f57052e490a8
[ "MIT" ]
1
2021-02-03T14:41:02.000Z
2021-02-03T14:41:02.000Z
fastCell/pixelize_segment.py
Mouse-Imaging-Centre/fastCell
1d1c39d9953ee83e2c56b284f5b1f57052e490a8
[ "MIT" ]
2
2019-11-11T19:09:59.000Z
2021-03-12T17:36:55.000Z
fastCell/pixelize_segment.py
Mouse-Imaging-Centre/fastCell
1d1c39d9953ee83e2c56b284f5b1f57052e490a8
[ "MIT" ]
1
2020-01-16T21:09:41.000Z
2020-01-16T21:09:41.000Z
import argparse import cv2 as cv import numpy as np import pandas as pd parser = argparse.ArgumentParser(description='Segment the cells from an image.') parser.add_argument(dest="segment", type=str, help = "Segmentation to pixelize") parser.add_argument(dest="centroids", type=str, ...
42.658537
106
0.616924
import argparse import cv2 as cv import numpy as np import pandas as pd parser = argparse.ArgumentParser(description='Segment the cells from an image.') parser.add_argument(dest="segment", type=str, help = "Segmentation to pixelize") parser.add_argument(dest="centroids", type=str, ...
0
0
0
0
0
0
0
0
0
16902671a63edba6fcc6430ecf5a50c420911c98
4,784
py
Python
launch/launch/event_handler.py
pal-robotics-forks/launch
9a0a01924cd88f832c5a50903553ddcec6ef648d
[ "Apache-2.0" ]
67
2015-06-12T21:17:24.000Z
2022-03-30T07:19:52.000Z
launch/launch/event_handler.py
pal-robotics-forks/launch
9a0a01924cd88f832c5a50903553ddcec6ef648d
[ "Apache-2.0" ]
516
2015-03-20T02:22:59.000Z
2022-03-30T12:33:33.000Z
launch/launch/event_handler.py
pal-robotics-forks/launch
9a0a01924cd88f832c5a50903553ddcec6ef648d
[ "Apache-2.0" ]
101
2016-01-12T16:56:54.000Z
2022-03-09T12:35:37.000Z
# Copyright 2018 Open Source Robotics Foundation, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
33.690141
97
0.655936
# Copyright 2018 Open Source Robotics Foundation, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
0
484
0
3,298
0
0
0
67
242
1866369714a49ae749ceeb074f0bed7d4bd0ad90
1,910
py
Python
setup.py
rambler-digital-solutions/aioriak
682e8e1a014129eaa9653238b9fc0d7a1ada6a47
[ "MIT" ]
29
2016-02-15T07:57:26.000Z
2021-11-12T11:42:29.000Z
setup.py
rambler-digital-solutions/aioriak
682e8e1a014129eaa9653238b9fc0d7a1ada6a47
[ "MIT" ]
114
2016-02-09T06:30:39.000Z
2022-03-22T08:33:29.000Z
setup.py
rambler-digital-solutions/aioriak
682e8e1a014129eaa9653238b9fc0d7a1ada6a47
[ "MIT" ]
7
2016-08-23T09:11:12.000Z
2019-04-17T07:33:37.000Z
from setuptools import setup, find_packages import codecs import os from commands import (docker_build, docker_start, docker_stop, setup_riak, create_bucket_types, Test) HERE = os.path.abspath(os.path.dirname(__file__)) def read(*parts): """ Build an absolute path from *parts* and and return the contents of...
30.31746
74
0.63822
from setuptools import setup, find_packages import codecs import os from commands import (docker_build, docker_start, docker_stop, setup_riak, create_bucket_types, Test) HERE = os.path.abspath(os.path.dirname(__file__)) def read(*parts): """ Build an absolute path from *parts* and and ...
0
0
0
0
0
104
0
22
23
6af925fb5a2a39bb5c3a65ece672a871cb30a2af
3,411
py
Python
data_loader/weighted_data_loader.py
jessicamecht/learning_from_mistakes
e05aa49b673af2d0964e4c1b6b618b8397935b9d
[ "MIT" ]
null
null
null
data_loader/weighted_data_loader.py
jessicamecht/learning_from_mistakes
e05aa49b673af2d0964e4c1b6b618b8397935b9d
[ "MIT" ]
null
null
null
data_loader/weighted_data_loader.py
jessicamecht/learning_from_mistakes
e05aa49b673af2d0964e4c1b6b618b8397935b9d
[ "MIT" ]
null
null
null
import torch from torchvision import transforms def loadCIFARData(root = '../data'): '''loads the cifar dataset and creates train, test and validation splits''' train_data = WeightedCIFAR(root=root, train=True, download=True, transform=transform_train) test_data = WeightedCIFAR(root=root, train=False, down...
46.726027
137
0.722076
import torch from torchvision import transforms from torchvision.datasets import CIFAR10 from typing import Any, Callable, Optional, Tuple import os import numpy as np class WeightedCIFAR(CIFAR10): '''initialized the weighted CIFAR dataset with its instance weights initially, all instance weights are set to 1'...
0
0
0
1,355
0
132
0
32
134
fba1fd94fd9b0ee890094c69899f01ada277c590
8,540
py
Python
pymatgen/analysis/tests/test_chempot_diagram.py
exenGT/pymatgen
a8ffb820ab8fc3f60251099e38c8888f45eae618
[ "MIT" ]
1
2021-11-02T21:10:11.000Z
2021-11-02T21:10:11.000Z
pymatgen/analysis/tests/test_chempot_diagram.py
exenGT/pymatgen
a8ffb820ab8fc3f60251099e38c8888f45eae618
[ "MIT" ]
5
2018-08-07T23:00:23.000Z
2021-01-05T22:46:23.000Z
pymatgen/analysis/tests/test_chempot_diagram.py
exenGT/pymatgen
a8ffb820ab8fc3f60251099e38c8888f45eae618
[ "MIT" ]
6
2019-04-26T18:50:41.000Z
2020-03-29T17:58:34.000Z
# Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. import unittest from pathlib import Path module_dir = Path(__file__).absolute().parent if __name__ == "__main__": unittest.main()
36.340426
105
0.488525
# Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. import unittest import warnings from pathlib import Path import numpy as np from plotly.graph_objects import Figure from pymatgen.analysis.chempot_diagram import ( ChemicalPotentialDiagram, simple_pca, get_centro...
0
0
0
7,917
0
0
0
212
179
0169397766800e28b86b98a546e273691730b282
709
py
Python
images/imagry.py
thirschbuechler/didactic-barnacles
88d0a2b572aacb2cb45e68bb4f05fa5273224439
[ "MIT" ]
null
null
null
images/imagry.py
thirschbuechler/didactic-barnacles
88d0a2b572aacb2cb45e68bb4f05fa5273224439
[ "MIT" ]
null
null
null
images/imagry.py
thirschbuechler/didactic-barnacles
88d0a2b572aacb2cb45e68bb4f05fa5273224439
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Apr 10 11:23:13 2020 @author: thomas """ import matplotlib.pyplot as plt from skimage import data, color from skimage.transform import rescale, resize, downscale_local_mean image = color.rgb2gray(data.astronaut()) image_rescaled = rescale(image, 0.25...
25.321429
73
0.703808
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Apr 10 11:23:13 2020 @author: thomas """ import matplotlib.pyplot as plt from skimage import data, color from skimage.transform import rescale, resize, downscale_local_mean image = color.rgb2gray(data.astronaut()) image_rescaled = rescale(image, 0.25...
0
0
0
0
0
0
0
0
0
4dc061dee123c198d047362c5677e20e10d072ff
1,257
py
Python
subscription.py
pjshi23/mcvmsseditor
ffea655feb58836a25148b965809a272184cbeac
[ "MIT" ]
1
2017-01-19T07:45:53.000Z
2017-01-19T07:45:53.000Z
subscription.py
pjshi23/mcvmsseditor
ffea655feb58836a25148b965809a272184cbeac
[ "MIT" ]
null
null
null
subscription.py
pjshi23/mcvmsseditor
ffea655feb58836a25148b965809a272184cbeac
[ "MIT" ]
null
null
null
# Azure subscription class
34.916667
100
0.665076
import json import mcazurerm # Azure subscription class class subscription(): def __init__(self, tenant_id, app_id, app_secret, subscription_id): self.sub_id = subscription_id self.tenant_id = tenant_id self.app_id = app_id self.app_secret = app_secret self.access_token =...
0
0
0
1,176
0
0
0
-15
67
8e80cbd56f41fc425883c011959453fe99544a30
1,021
py
Python
mongo/chats.py
burakizm/kelimembott
e5712dc69b05480820116141e161961a58f732fd
[ "Unlicense" ]
2
2021-12-02T01:23:45.000Z
2022-02-02T07:04:13.000Z
mongo/chats.py
burakizm/kelimembott
e5712dc69b05480820116141e161961a58f732fd
[ "Unlicense" ]
1
2022-01-25T18:07:25.000Z
2022-01-25T18:07:25.000Z
mongo/chats.py
burakizm/kelimembott
e5712dc69b05480820116141e161961a58f732fd
[ "Unlicense" ]
29
2021-05-10T23:45:59.000Z
2022-03-22T16:53:17.000Z
from . import database collection = database.chats
18.907407
61
0.468168
from typing import Union from . import database collection = database.chats def get(chat_id: int) -> Union[dict, bool]: return collection.find_one({'chat_id': chat_id}) or False def update(chat_id: int, title: str) -> bool: find = get(chat_id) if not find: collection.insert_one( {...
0
0
0
0
0
871
0
3
91
d67b3f8f468bac6a9a529e28106d1e8e6ec7972e
20,916
py
Python
tests/numberwang.py
posita/dyce
aa0180cc1e3607e552e45f9d03af7de667838aea
[ "MIT" ]
18
2021-07-08T07:04:48.000Z
2022-03-25T07:42:50.000Z
tests/numberwang.py
posita/dyce
aa0180cc1e3607e552e45f9d03af7de667838aea
[ "MIT" ]
6
2021-07-21T23:40:41.000Z
2022-01-08T14:50:53.000Z
tests/numberwang.py
posita/dyce
aa0180cc1e3607e552e45f9d03af7de667838aea
[ "MIT" ]
null
null
null
# ====================================================================================== # Copyright and other protections apply. Please see the accompanying LICENSE file for # rights and restrictions governing use of this software. All rights not expressly # waived or licensed are reserved. If that file is missing or ...
25.822222
99
0.57903
# ====================================================================================== # Copyright and other protections apply. Please see the accompanying LICENSE file for # rights and restrictions governing use of this software. All rights not expressly # waived or licensed are reserved. If that file is missing or ...
0
15,367
0
3,953
0
0
0
354
136
dad4ff011f1301d8bf72bb9c805ff8effdf6dd3a
7,204
py
Python
testdata/PyFEM-master/XPyFEM.py
Konstantin8105/py4go
7c9f3cf0d939ad94d13abe109d15c885ca849cda
[ "MIT" ]
3
2021-01-28T17:40:50.000Z
2021-10-05T17:48:32.000Z
testdata/PyFEM-master/XPyFEM.py
Konstantin8105/py4go
7c9f3cf0d939ad94d13abe109d15c885ca849cda
[ "MIT" ]
1
2021-07-04T14:38:48.000Z
2021-07-04T14:38:48.000Z
testdata/PyFEM-master/XPyFEM.py
Konstantin8105/py4go
7c9f3cf0d939ad94d13abe109d15c885ca849cda
[ "MIT" ]
2
2021-07-11T12:51:08.000Z
2021-10-05T17:48:44.000Z
############################################################################ # This Python file is part of PyFEM, the code that accompanies the book: # # # # 'Non-Linear Finite Element Analysis of Solids and Structures' # # R. ...
36.383838
100
0.573154
############################################################################ # This Python file is part of PyFEM, the code that accompanies the book: # # # # 'Non-Linear Finite Element Analysis of Solids and Structures' # # R. ...
0
0
0
4,514
0
71
0
132
280
23deb43755e8062b2f3ef0e3b52505f44c88f817
646
py
Python
desafios/Mundo 1/Ex004.py
duartecgustavo/Python---Estudos-
13a47f115dd24ef475addaed7b0c860a7b3817ca
[ "MIT" ]
6
2021-01-20T20:43:39.000Z
2021-08-13T15:44:10.000Z
desafios/Mundo 1/Ex004.py
duartecgustavo/PythonProgress
13a47f115dd24ef475addaed7b0c860a7b3817ca
[ "MIT" ]
null
null
null
desafios/Mundo 1/Ex004.py
duartecgustavo/PythonProgress
13a47f115dd24ef475addaed7b0c860a7b3817ca
[ "MIT" ]
1
2020-09-06T03:34:19.000Z
2020-09-06T03:34:19.000Z
# Desafio 4 - Aula 6 : Ler o tipo primitivo daquilo que foi digitado e dizer todas as infos pertinentes. a = input('Digite algo: ') print('\033[31mO tipo primitivo de {} : '.format(a), type(a)) print('\033[32m{} um numero?'.format(a), a.isnumeric()) print('\033[33m{} alfabtico?'.format(a), a.isalpha()) print('\033[...
53.833333
104
0.676471
# Desafio 4 - Aula 6 : Ler o tipo primitivo daquilo que foi digitado e dizer todas as infos pertinentes. a = input('Digite algo: ') print('\033[31mO tipo primitivo de {} é: '.format(a), type(a)) print('\033[32m{} é um numero?'.format(a), a.isnumeric()) print('\033[33m{} é alfabético?'.format(a), a.isalpha()) print('\...
14
0
0
0
0
0
0
0
0
97d8ed42f2d0845a065c36d0eed05e801ce23da3
850
py
Python
tOpt/unit_conversion.py
chemalot/tOpt
1e5e2ee52950d139be36255bfd84de5290ae3b96
[ "MIT" ]
4
2020-04-01T02:33:50.000Z
2021-12-27T04:33:16.000Z
tOpt/unit_conversion.py
chemalot/tOpt
1e5e2ee52950d139be36255bfd84de5290ae3b96
[ "MIT" ]
1
2020-05-28T20:52:52.000Z
2020-05-28T20:52:52.000Z
tOpt/unit_conversion.py
chemalot/tOpt
1e5e2ee52950d139be36255bfd84de5290ae3b96
[ "MIT" ]
1
2020-04-01T03:01:26.000Z
2020-04-01T03:01:26.000Z
bohr2ang = 0.5291772105638411 HARTREE_TO_EV = 27.211386024367243 # equal to ase.units.Hartree EV_TO_JOULE = 1.6021766208e-19 # equal to ase.units._e (electron charge) JOULE_TO_KCAL = 1 / 4184. ...
44.736842
114
0.6
from enum import Enum bohr2ang = 0.5291772105638411 HARTREE_TO_EV = 27.211386024367243 # equal to ase.units.Hartree EV_TO_JOULE = 1.6021766208e-19 # equal to ase.units._e (electron charge) JOULE_TO_KCAL = 1 / 4184. ...
0
0
0
31
0
0
0
0
45
00a341f270264e2d4fbfa7b967cf43cf1ebc415d
1,051
py
Python
db_migration/alembic/versions/20211104_125153_b28851e1a2ea_copy_database_structure_from_sandbox.py
lkuchenb/drs3
e651c7dc77bb9b3ef422102e12aab3c5aac1ffee
[ "Apache-2.0" ]
null
null
null
db_migration/alembic/versions/20211104_125153_b28851e1a2ea_copy_database_structure_from_sandbox.py
lkuchenb/drs3
e651c7dc77bb9b3ef422102e12aab3c5aac1ffee
[ "Apache-2.0" ]
5
2021-11-16T14:27:07.000Z
2021-12-17T14:08:40.000Z
db_migration/alembic/versions/20211104_125153_b28851e1a2ea_copy_database_structure_from_sandbox.py
lkuchenb/drs3
e651c7dc77bb9b3ef422102e12aab3c5aac1ffee
[ "Apache-2.0" ]
1
2022-01-15T21:06:21.000Z
2022-01-15T21:06:21.000Z
"""copy database structure from sandbox Revision ID: b28851e1a2ea Revises: Create Date: 2021-11-04 12:51:53.151314 """ # revision identifiers, used by Alembic. revision = "b28851e1a2ea" down_revision = None branch_labels = None depends_on = None
27.657895
65
0.652712
"""copy database structure from sandbox Revision ID: b28851e1a2ea Revises: Create Date: 2021-11-04 12:51:53.151314 """ import sqlalchemy as sa from alembic import op # revision identifiers, used by Alembic. revision = "b28851e1a2ea" down_revision = None branch_labels = None depends_on = None def upgrade(): # #...
0
0
0
0
0
707
0
3
90
f1010fc5ea464d96c7db6b3f7d69be4012756674
2,018
py
Python
seven23/models/categories/migrations/0001_initial.py
sebastienbarbier/723e_server
3501d143d371355a88bf3129828a9d5fd61d6be4
[ "MIT" ]
27
2019-03-07T17:23:59.000Z
2022-01-29T16:08:09.000Z
seven23/models/categories/migrations/0001_initial.py
sebastienbarbier/723e_server
3501d143d371355a88bf3129828a9d5fd61d6be4
[ "MIT" ]
31
2017-06-14T08:19:48.000Z
2022-01-26T14:55:39.000Z
seven23/models/categories/migrations/0001_initial.py
sebastienbarbier/723e_server
3501d143d371355a88bf3129828a9d5fd61d6be4
[ "MIT" ]
14
2019-07-22T09:49:13.000Z
2021-12-21T08:52:02.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.1 on 2016-09-17 14:34 from __future__ import unicode_literals
46.930233
174
0.64668
# -*- coding: utf-8 -*- # Generated by Django 1.10.1 on 2016-09-17 14:34 from __future__ import unicode_literals import colorfield.fields from django.conf import settings from django.db import migrations, models import django.db.models.deletion import mptt.fields class Migration(migrations.Migration): initial =...
0
0
0
1,729
0
0
0
41
134
781196c459abedbc1302ad097cd050595354823c
1,369
py
Python
test/test_optimizer_basic.py
efortner/tunepy
28ab7aa0b851d42cf2a81a5573fb24b261daba89
[ "MIT" ]
null
null
null
test/test_optimizer_basic.py
efortner/tunepy
28ab7aa0b851d42cf2a81a5573fb24b261daba89
[ "MIT" ]
null
null
null
test/test_optimizer_basic.py
efortner/tunepy
28ab7aa0b851d42cf2a81a5573fb24b261daba89
[ "MIT" ]
null
null
null
import unittest if __name__ == '__main__': unittest.main()
31.837209
94
0.733382
import unittest from tunepy2 import Genome from tunepy2.interfaces.stubs import PassThroughConvergenceCriterion, PassThroughGenomeFactory from tunepy2.optimizers import BasicOptimizer class TestOptimizerBasic(unittest.TestCase): def test_next_generation_improvement(self): def fitness_func_zero(bitstring)...
0
0
0
1,111
0
0
0
102
90
8cabd9b35a22c293d6089059b4c2db4f658d8611
1,392
py
Python
sample-app.py
formcorp/python-formcorp
ed8d3767c260d45d084a7df8c25e485bb62752dc
[ "Apache-2.0" ]
null
null
null
sample-app.py
formcorp/python-formcorp
ed8d3767c260d45d084a7df8c25e485bb62752dc
[ "Apache-2.0" ]
null
null
null
sample-app.py
formcorp/python-formcorp
ed8d3767c260d45d084a7df8c25e485bb62752dc
[ "Apache-2.0" ]
null
null
null
__author__ = 'Alex Berriman <aberriman@formcorp.com.au>' import sys import formcorp.api # FormCorp configurations public_key = '' private_key = '' form_id = 0 # Initialise the module formcorp.api.init(private_key, public_key) # Set the form id formcorp.api.set_form_id(form_id) print "==============================...
26.264151
82
0.642241
__author__ = 'Alex Berriman <aberriman@formcorp.com.au>' import sys import formcorp.api # FormCorp configurations public_key = '' private_key = '' form_id = 0 # Initialise the module formcorp.api.init(private_key, public_key) # Set the form id formcorp.api.set_form_id(form_id) print "==============================...
0
0
0
0
0
0
0
0
0
32a243a6ddc9a0127ac5dc5cc34e9e20efbee2ee
353
py
Python
raspberrymint/mcpipy/test.py
alienhunter3010/raspberryjammod-minetest
98ac119b77bb8ae5769c90c543bede66b1cf5422
[ "MIT" ]
2
2021-12-20T09:40:11.000Z
2022-01-07T11:43:51.000Z
raspberrymint/mcpipy/test.py
alienhunter3010/raspberryjammod-minetest
98ac119b77bb8ae5769c90c543bede66b1cf5422
[ "MIT" ]
null
null
null
raspberrymint/mcpipy/test.py
alienhunter3010/raspberryjammod-minetest
98ac119b77bb8ae5769c90c543bede66b1cf5422
[ "MIT" ]
null
null
null
#!/usr/bin/env python import mcpi.minecraft as minecraft from lib import server mc = minecraft.Minecraft.create(server.address) mc.player.setPos(0,3,4) print("hello") mc.setBlock(0,0,0,3,0) print(mc.getBlock(0,0,0)) pos = mc.player.getPos() pos.x = pos.x - 10 print(mc.player.getPitch()) print(mc.player.getRotation())...
22.0625
47
0.736544
#!/usr/bin/env python import mcpi.minecraft as minecraft from lib import server mc = minecraft.Minecraft.create(server.address) mc.player.setPos(0,3,4) print("hello") mc.setBlock(0,0,0,3,0) print(mc.getBlock(0,0,0)) pos = mc.player.getPos() pos.x = pos.x - 10 print(mc.player.getPitch()) print(mc.player.getRotation())...
0
0
0
0
0
0
0
0
0
99d2564127bc803b492dd0ad96c576c92a283d75
365
py
Python
section_7/deque.py
thiagofreitascarneiro/Python-avancado-Geek-University
861b742ad6b30955fcbe63274b8cf8afc6ca028f
[ "MIT" ]
null
null
null
section_7/deque.py
thiagofreitascarneiro/Python-avancado-Geek-University
861b742ad6b30955fcbe63274b8cf8afc6ca028f
[ "MIT" ]
null
null
null
section_7/deque.py
thiagofreitascarneiro/Python-avancado-Geek-University
861b742ad6b30955fcbe63274b8cf8afc6ca028f
[ "MIT" ]
null
null
null
''' Mdulo Collection - Deque Podemos dizer que o deque uma lista de alta performance. ''' from collections import deque # Criando deques deq = deque('geek') # adicionando elementos no deque deq.append('y') print(deq) deq.appendleft('k') print(deq) print(deq.pop()) # remove o ultimo elemento print(deq.popleft...
14.6
59
0.723288
''' Módulo Collection - Deque Podemos dizer que o deque é uma lista de alta performance. ''' from collections import deque # Criando deques deq = deque('geek') # adicionando elementos no deque deq.append('y') print(deq) deq.appendleft('k') print(deq) print(deq.pop()) # remove o ultimo elemento print(deq.pople...
4
0
0
0
0
0
0
0
0
055c38a364f8eea4859625cf4289d699fb67c367
1,637
py
Python
twitter_bookmark_downloader.py
bnymnsntrk/Twitter-Bookmark-Downloader
7f22e861e9b509ee716fb4ec6d4320d4f56bbd04
[ "MIT" ]
1
2021-09-13T10:54:48.000Z
2021-09-13T10:54:48.000Z
twitter_bookmark_downloader.py
bnymnsntrk/Twitter-Bookmark-Downloader
7f22e861e9b509ee716fb4ec6d4320d4f56bbd04
[ "MIT" ]
null
null
null
twitter_bookmark_downloader.py
bnymnsntrk/Twitter-Bookmark-Downloader
7f22e861e9b509ee716fb4ec6d4320d4f56bbd04
[ "MIT" ]
null
null
null
''' A script that downloads all the pictures from twitter links given in a file. Author: Bunyamin Senturk Inspired by: Krishanu Konar ''' if __name__ == '__main__': main()
24.80303
94
0.61515
''' A script that downloads all the pictures from twitter links given in a file. Author: Bunyamin Senturk Inspired by: Krishanu Konar ''' import API_Tokens as t from tweepy import OAuthHandler, API import os import wget import time import progressbar def main(): file1 = open("bookmarks.txt", "r") line_cou...
0
0
0
0
0
1,272
0
-19
202
bed3a26ae53633acee1535480f5e377aee3ede7a
37,477
py
Python
nuggetbot/util/gen_embed.py
LimeProgramming/NuggetBot
e6955be61210e231251c97ee2b8280e85403660e
[ "MIT" ]
null
null
null
nuggetbot/util/gen_embed.py
LimeProgramming/NuggetBot
e6955be61210e231251c97ee2b8280e85403660e
[ "MIT" ]
null
null
null
nuggetbot/util/gen_embed.py
LimeProgramming/NuggetBot
e6955be61210e231251c97ee2b8280e85403660e
[ "MIT" ]
null
null
null
### Embed generater for when a member joins ### to be posted in archive #==================== Massive perms embeds #==================== Owner commands #==================== Functions
49.117955
184
0.446834
import discord import datetime import random import asyncio import colorsys ### Embed generater for when a member joins ### to be posted in archive async def getMemJoinStaff(member, invite): embed = discord.Embed( description="Mention: <@{0.id}> | Username: {0.name}#{0.discriminator}\n" ...
8
813
34,416
0
0
1,368
0
-34
689
8333aafe568ca2f7e92751747a431d4cc421599b
1,258
py
Python
Math/python/leetcode29_Divide_Two_Integers.py
wenxinjie/leetcode
c459a01040c8fe0783e15a16b8d7cca4baf4612a
[ "Apache-2.0" ]
null
null
null
Math/python/leetcode29_Divide_Two_Integers.py
wenxinjie/leetcode
c459a01040c8fe0783e15a16b8d7cca4baf4612a
[ "Apache-2.0" ]
null
null
null
Math/python/leetcode29_Divide_Two_Integers.py
wenxinjie/leetcode
c459a01040c8fe0783e15a16b8d7cca4baf4612a
[ "Apache-2.0" ]
null
null
null
# Given two integers dividend and divisor, divide two integers without using multiplication, division and mod operator. # Return the quotient after dividing dividend by divisor. # The integer division should truncate toward zero. # Example 1: # Input: dividend = 10, divisor = 3 # Output: 3 # Example 2: # Input: d...
24.666667
119
0.569952
# Given two integers dividend and divisor, divide two integers without using multiplication, division and mod operator. # Return the quotient after dividing dividend by divisor. # The integer division should truncate toward zero. # Example 1: # Input: dividend = 10, divisor = 3 # Output: 3 # Example 2: # Input: d...
0
0
0
781
0
0
0
0
22
00cd13faf17de732d58489155308b073cab56013
2,019
py
Python
learning/requests/alphavantage.py
gerryw1389/python
74fedaf2034769f2865659f14d332026b9aaede3
[ "MIT" ]
2
2020-12-01T17:29:09.000Z
2020-12-13T02:54:43.000Z
learning/requests/alphavantage.py
gerryw1389/python
74fedaf2034769f2865659f14d332026b9aaede3
[ "MIT" ]
4
2020-12-26T15:08:02.000Z
2021-05-16T13:19:33.000Z
learning/requests/alphavantage.py
gerryw1389/python
74fedaf2034769f2865659f14d332026b9aaede3
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 ################################################################ # Example of using AlphaVantage API # Sign up to get an API key and import it # This script currently just gets the 5 latest values for bitcoin but can do others as well # will eventually replace my powershell script at https://aut...
26.565789
115
0.65577
#!/usr/bin/env python3 ################################################################ # Example of using AlphaVantage API # Sign up to get an API key and import it # This script currently just gets the 5 latest values for bitcoin but can do others as well # will eventually replace my powershell script at https://aut...
0
0
0
0
0
0
0
-3
66
4c1c9c6cf23925d585d8365b1e508937420fb14c
1,314
py
Python
pysnmp/smi/mibs/RFC1158-MIB.py
fabriziovanni/pysnmp
eef4cc03b4da199e9c131ddd18ccb7501f1f2c40
[ "BSD-2-Clause" ]
null
null
null
pysnmp/smi/mibs/RFC1158-MIB.py
fabriziovanni/pysnmp
eef4cc03b4da199e9c131ddd18ccb7501f1f2c40
[ "BSD-2-Clause" ]
null
null
null
pysnmp/smi/mibs/RFC1158-MIB.py
fabriziovanni/pysnmp
eef4cc03b4da199e9c131ddd18ccb7501f1f2c40
[ "BSD-2-Clause" ]
null
null
null
# # This file is part of pysnmp software. # # Copyright (c) 2005-2018, Ilya Etingof <etingof@gmail.com> # License: http://snmplabs.com/pysnmp/license.html # # PySNMP MIB module RFC1158-MIB (http://snmplabs.com/pysnmp) # ASN.1 source http://mibs.snmplabs.com:80/asn1/RFC1158-MIB # Produced by pysmi-0.1.3 at Mon Apr 17 12...
59.727273
296
0.751903
# # This file is part of pysnmp software. # # Copyright (c) 2005-2018, Ilya Etingof <etingof@gmail.com> # License: http://snmplabs.com/pysnmp/license.html # # PySNMP MIB module RFC1158-MIB (http://snmplabs.com/pysnmp) # ASN.1 source http://mibs.snmplabs.com:80/asn1/RFC1158-MIB # Produced by pysmi-0.1.3 at Mon Apr 17 12...
0
0
0
0
0
0
0
0
0
85dad768de1899d28f26e2578806efe52df0cbef
19,056
py
Python
qa/rpc-tests/pak_tests.py
devfans/liquid
dd1d4eb4ad07dea869de3401f42a0f62e552fdb9
[ "MIT" ]
83
2018-11-06T20:49:33.000Z
2021-11-17T23:46:59.000Z
qa/rpc-tests/pak_tests.py
devfans/liquid
dd1d4eb4ad07dea869de3401f42a0f62e552fdb9
[ "MIT" ]
31
2018-11-07T14:03:24.000Z
2019-11-27T15:25:56.000Z
qa/rpc-tests/pak_tests.py
devfans/liquid
dd1d4eb4ad07dea869de3401f42a0f62e552fdb9
[ "MIT" ]
40
2018-11-07T00:12:10.000Z
2022-01-31T03:10:15.000Z
#!/usr/bin/env python3 # Copyright (c) 2016 The Bitcoin Core developers # Distributed under the MIT/X11 software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # This tests a PAK list transition from the genesis state ('reject') to pak1 to # 'reject' and finally to ...
52.065574
210
0.680626
#!/usr/bin/env python3 # Copyright (c) 2016 The Bitcoin Core developers # Distributed under the MIT/X11 software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. from test_framework.test_framework import BitcoinTestFramework from test_framework.util import * import cop...
0
0
0
17,293
0
77
0
43
112
fb6eaa1c5a87859001c6733c883854047abaa127
5,234
py
Python
tests/scenarios/test_two_stages_scenario.py
sberbank-ai-lab/RePlay
25db2d45fdc5882e3d05d8a8a27231a02987a6b2
[ "Apache-2.0" ]
63
2021-09-03T19:09:09.000Z
2022-03-31T12:35:35.000Z
tests/scenarios/test_two_stages_scenario.py
sberbank-ai-lab/RePlay
25db2d45fdc5882e3d05d8a8a27231a02987a6b2
[ "Apache-2.0" ]
63
2021-09-03T19:06:31.000Z
2022-03-30T10:06:03.000Z
tests/scenarios/test_two_stages_scenario.py
sberbank-ai-lab/RePlay
25db2d45fdc5882e3d05d8a8a27231a02987a6b2
[ "Apache-2.0" ]
2
2021-12-23T16:57:33.000Z
2022-02-22T07:54:03.000Z
# pylint: disable=redefined-outer-name, missing-function-docstring, unused-import
30.08046
81
0.695453
# pylint: disable=redefined-outer-name, missing-function-docstring, unused-import import pytest from pyspark.sql import functions as sf from lightautoml.automl.presets.tabular_presets import TabularAutoML from replay.models import ALSWrap, KNN, PopRec, LightFMWrap from replay.scenarios.two_stages.feature_processor i...
0
656
0
0
0
3,812
0
384
295
e0e033e562fb3a4af27b89867f1d6a0ed7c3b17c
6,888
py
Python
examples/showcase.py
cmdvmd/kivy-cupertino
8091063ae063211beec07234f0ae6485244e2130
[ "MIT" ]
51
2021-02-20T18:53:09.000Z
2022-03-19T19:03:17.000Z
examples/showcase.py
meow464/kivy-cupertino
8091063ae063211beec07234f0ae6485244e2130
[ "MIT" ]
5
2021-02-23T21:00:20.000Z
2021-09-14T19:36:49.000Z
examples/showcase.py
meow464/kivy-cupertino
8091063ae063211beec07234f0ae6485244e2130
[ "MIT" ]
12
2021-03-19T18:30:59.000Z
2022-02-22T00:45:13.000Z
""" Showcase ======== .. codeauthor:: cmdvmd <vcmd43@gmail.com> A program to show all widgets in Kivy Cupertino """ __author__ = 'Eduardo Mendes' # dunossauro on GitHub <https://github.com/dunossauro> __maintainer__ = 'cmdvmd' from kivy.core.window import Window Window.clearcolor = 0.98, 0.98, 0.98, 1 Window.siz...
35.689119
106
0.664489
""" Showcase ======== .. codeauthor:: cmdvmd <vcmd43@gmail.com> A program to show all widgets in Kivy Cupertino """ __author__ = 'Eduardo Mendes' # dunossauro on GitHub <https://github.com/dunossauro> __maintainer__ = 'cmdvmd' from kivycupertino.app import CupertinoApp from kivycupertino.uix.bar import CupertinoNa...
0
613
0
5,041
0
0
0
545
288
e2c411a6c102e6056ca4e7e226809a4020e9f120
399
py
Python
src/lib/centipede/Crawler/Fs/Image/Exr.py
ramgopal99/centipede
0b1dc1f17b025f6b37c9a3cf5753a46cbbcd36ba
[ "MIT" ]
3
2018-05-28T20:56:19.000Z
2018-06-02T15:58:10.000Z
src/lib/centipede/Crawler/Fs/Image/Exr.py
ramgopal99/centipede
0b1dc1f17b025f6b37c9a3cf5753a46cbbcd36ba
[ "MIT" ]
2
2018-07-01T07:45:38.000Z
2018-07-11T03:15:35.000Z
src/lib/centipede/Crawler/Fs/Image/Exr.py
ramgopal99/centipede
0b1dc1f17b025f6b37c9a3cf5753a46cbbcd36ba
[ "MIT" ]
3
2018-07-10T14:51:13.000Z
2022-03-17T00:39:58.000Z
# registration Exr.register( 'exr', Exr )
16.625
63
0.56391
from .Oiio import Oiio class Exr(Oiio): """ Exr crawler. """ @classmethod def test(cls, pathHolder, parentCrawler): """ Test if the path holder contains an exr file. """ if not super(Exr, cls).test(pathHolder, parentCrawler): return False return...
0
246
0
55
0
0
0
1
45
61daeb4fc1d51b13b470b7145064bebcc0643093
4,156
py
Python
agent/Activity.py
ottomattas/INFOIAG-Project_2020
1b0a18267e4bd499504e71c48765aa25f8df9b71
[ "MIT" ]
null
null
null
agent/Activity.py
ottomattas/INFOIAG-Project_2020
1b0a18267e4bd499504e71c48765aa25f8df9b71
[ "MIT" ]
null
null
null
agent/Activity.py
ottomattas/INFOIAG-Project_2020
1b0a18267e4bd499504e71c48765aa25f8df9b71
[ "MIT" ]
null
null
null
texts = {True:{ "present":{ "companionsbegin":"Alright! Tell me about who's accompanying you (if any). Are you going to be alone at the {place}? (yes/no): ", "companionsmore":"Are you going with anybody else? (yes/no): "}, "past":{ "companionsbegi...
36.778761
145
0.612368
from owlready2 import * from UInterface import userMenu, clear from Person import AGPerson, extractPerson from Location import extractLocation from Transportation import extractTransportation texts = {True:{ "present":{ "companionsbegin":"Alright! Tell me about who's accompanying you (if an...
0
0
0
842
0
2,060
0
82
179
341bac00fbe96226101372647b109cb9e7adc478
5,790
py
Python
examples/DeepBlueAI/AutoSpeech/PASA_NJU/models/bilstm_attention.py
zichuan-scott-xu/automl-workflow
d108e55da943775953b9f1801311a86ac07e58a0
[ "Apache-2.0" ]
3
2020-12-15T02:40:43.000Z
2021-01-14T02:32:13.000Z
examples/DeepBlueAI/AutoSpeech/PASA_NJU/models/bilstm_attention.py
zichuan-scott-xu/automl-workflow
d108e55da943775953b9f1801311a86ac07e58a0
[ "Apache-2.0" ]
null
null
null
examples/DeepBlueAI/AutoSpeech/PASA_NJU/models/bilstm_attention.py
zichuan-scott-xu/automl-workflow
d108e55da943775953b9f1801311a86ac07e58a0
[ "Apache-2.0" ]
4
2021-01-07T05:41:38.000Z
2021-04-07T08:02:22.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time: 2019/9/27 10:12 # @Author: Mecthew
37.843137
136
0.573057
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time: 2019/9/27 10:12 # @Author: Mecthew import tensorflow as tf from tensorflow.python.keras import optimizers from tensorflow.python.keras.layers import (SpatialDropout1D, Input, GlobalMaxPool1D,Bidirectional,GlobalAvgPool1D,concatenate,CuDNNGRU, ...
0
0
0
4,841
0
0
0
610
244
5b680a62a409cd10f476443d3a74e11b1c0f6555
45
py
Python
flask_celery_job_status/blueprints/landing/__init__.py
nitred/flask-celery-job-status
09727413e687ac0dca41767dc4c87b310eab2ac3
[ "MIT" ]
null
null
null
flask_celery_job_status/blueprints/landing/__init__.py
nitred/flask-celery-job-status
09727413e687ac0dca41767dc4c87b310eab2ac3
[ "MIT" ]
null
null
null
flask_celery_job_status/blueprints/landing/__init__.py
nitred/flask-celery-job-status
09727413e687ac0dca41767dc4c87b310eab2ac3
[ "MIT" ]
null
null
null
"""."""
15
36
0.711111
""".""" from .landing import landing_handler
0
0
0
0
0
0
0
15
22
92db2f7fe26d10298b54ce10b601b9586b3083b5
948
py
Python
palindrome.py
gcrowder/palindrome
31bc1ab62f849dbbfef8e31b0d0d081e7bf2aced
[ "MIT" ]
null
null
null
palindrome.py
gcrowder/palindrome
31bc1ab62f849dbbfef8e31b0d0d081e7bf2aced
[ "MIT" ]
null
null
null
palindrome.py
gcrowder/palindrome
31bc1ab62f849dbbfef8e31b0d0d081e7bf2aced
[ "MIT" ]
null
null
null
if __name__ == '__main__': main()
21.545455
63
0.625527
import re def reverse_string(text): if len(text) == 0: return '' else: return reverse_string(text[1:]) + text[0] def is_palindrome(sentence): string = sentence.lower() pattern = r'[^A-Za-z]' maybe_palindrome = re.sub(pattern, '', string) backwards_maybe_drome = reverse_string(...
0
0
0
0
0
780
0
-12
137
f60c0cf641a541f5fc6bb29d95ddce104740c5ae
411
py
Python
src/console_counter.py
mgfcf/tof-people-count
630b52074b371674b1e924bbff721044ee8e41e7
[ "MIT" ]
null
null
null
src/console_counter.py
mgfcf/tof-people-count
630b52074b371674b1e924bbff721044ee8e41e7
[ "MIT" ]
null
null
null
src/console_counter.py
mgfcf/tof-people-count
630b52074b371674b1e924bbff721044ee8e41e7
[ "MIT" ]
null
null
null
from sensor.people_counter import PeopleCounter from sensor.vl53l1x_sensor import VL53L1XSensor import logging counter = PeopleCounter(VL53L1XSensor()) peopleCount = 0 logging.getLogger().setLevel(logging.INFO) counter.hookCounting(countChange) counter.run()
21.631579
58
0.783455
from sensor.people_counter import PeopleCounter from sensor.vl53l1x_sensor import VL53L1XSensor import logging counter = PeopleCounter(VL53L1XSensor()) peopleCount = 0 logging.getLogger().setLevel(logging.INFO) def countChange(change: int) -> None: global peopleCount peopleCount += change logging.info(f...
0
0
0
0
0
124
0
0
23
7e33d464bfe6e29a4ed2380b5e0954cd2cb6e291
15,332
py
Python
tests/keywords/test_multipleAppiumConnections.py
praveen2525/Praveen
15f71000e36be64e5194bc910c0a86b4d2c1de76
[ "Apache-2.0" ]
2
2016-07-11T08:01:37.000Z
2020-07-30T07:20:27.000Z
tests/keywords/test_multipleAppiumConnections.py
praveen2525/Praveen
15f71000e36be64e5194bc910c0a86b4d2c1de76
[ "Apache-2.0" ]
1
2018-11-07T09:41:08.000Z
2018-11-07T09:41:08.000Z
tests/keywords/test_multipleAppiumConnections.py
praveen2525/Praveen
15f71000e36be64e5194bc910c0a86b4d2c1de76
[ "Apache-2.0" ]
null
null
null
import logging import sys logger = logging.getLogger() stream_handler = logging.StreamHandler(sys.stdout) logger.addHandler(stream_handler) stream_handler = logging.StreamHandler(sys.stderr) logger.addHandler(stream_handler)
67.840708
195
0.699256
import logging import sys import unittest import appium import mock from AppiumLibrary.keywords import _ApplicationManagementKeywords from webdriverremotemock import WebdriverRemoteMock logger = logging.getLogger() stream_handler = logging.StreamHandler(sys.stdout) logger.addHandler(stream_handler) stream_handler = l...
0
0
0
14,918
0
0
0
50
137