hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
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.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
4a0c81bfd26f2a5645994b62a19327844a56c59f
3,943
py
Python
tests/benchmark_djangocache.py
allaudet/python-diskcache
2774689c60bac3ebd06246943bca2014779ee2c6
[ "Apache-2.0" ]
null
null
null
tests/benchmark_djangocache.py
allaudet/python-diskcache
2774689c60bac3ebd06246943bca2014779ee2c6
[ "Apache-2.0" ]
null
null
null
tests/benchmark_djangocache.py
allaudet/python-diskcache
2774689c60bac3ebd06246943bca2014779ee2c6
[ "Apache-2.0" ]
null
null
null
"""Benchmark diskcache.DjangoCache $ export PYTHONPATH=/Users/grantj/repos/python-diskcache $ python tests/benchmark_djangocache.py > tests/timings_djangocache.txt """ from __future__ import print_function import collections as co import multiprocessing as mp import os import random import shutil import sys import...
22.66092
75
0.583566
4a0c82c30180fbcdcf5b0cd27c559054ce409fb5
11,030
py
Python
src/cluster/fine_tuning/custom_trainers.py
maximumSHOT-HSE/CurriculumLearning
bf5291812a9ec3feb083d3d84b579329781c8a6a
[ "MIT" ]
null
null
null
src/cluster/fine_tuning/custom_trainers.py
maximumSHOT-HSE/CurriculumLearning
bf5291812a9ec3feb083d3d84b579329781c8a6a
[ "MIT" ]
null
null
null
src/cluster/fine_tuning/custom_trainers.py
maximumSHOT-HSE/CurriculumLearning
bf5291812a9ec3feb083d3d84b579329781c8a6a
[ "MIT" ]
null
null
null
import collections from transformers import Trainer from transformers import PreTrainedModel from transformers.trainer_callback import TrainerState import datasets import os import torch from torch.utils.data import RandomSampler, Sampler, Dataset, DataLoader, SequentialSampler from typing import Iterator, Op...
32.063953
113
0.59447
4a0c8344aeb64b181bcadd144816892ed1c745ae
228
py
Python
metasearch/tests/unit_test/view/__init__.py
suzanagi/materials-researchactivity-uoa-2020-public-metasearch-mosaicsearch_publication
37553698e6f778b313922dca23c4ed40530d8f31
[ "MIT" ]
null
null
null
metasearch/tests/unit_test/view/__init__.py
suzanagi/materials-researchactivity-uoa-2020-public-metasearch-mosaicsearch_publication
37553698e6f778b313922dca23c4ed40530d8f31
[ "MIT" ]
null
null
null
metasearch/tests/unit_test/view/__init__.py
suzanagi/materials-researchactivity-uoa-2020-public-metasearch-mosaicsearch_publication
37553698e6f778b313922dca23c4ed40530d8f31
[ "MIT" ]
null
null
null
from metasearch.tests.unit_test.view.development_utilities import DevelopmentUtilitiesTests from metasearch.tests.unit_test.view.tests import MetasearchFunctionTests from metasearch.tests.unit_test.view.scraping_modules import *
76
91
0.894737
4a0c83e1f766ba95924abd78dffab29df30806d6
883
py
Python
BotHandler.py
Krylovsentry/nature-morning-telegram-bot
a287f4b31eabb95d58a2b3733c390825817465b6
[ "MIT" ]
null
null
null
BotHandler.py
Krylovsentry/nature-morning-telegram-bot
a287f4b31eabb95d58a2b3733c390825817465b6
[ "MIT" ]
null
null
null
BotHandler.py
Krylovsentry/nature-morning-telegram-bot
a287f4b31eabb95d58a2b3733c390825817465b6
[ "MIT" ]
null
null
null
import requests class BotHandler: def __init__(self, token): self.token = token self.api_url = "https://api.telegram.org/bot{}/".format(token) def get_updates(self, offset=None, timeout=180): method = 'getUpdates' params = {'timeout': timeout, 'offset': offset} resp = r...
29.433333
70
0.608154
4a0c84b5ec44680bf829b65c160c61aeb5592522
22
py
Python
src/simple_backup/__init__.py
Am6puk/Simple_Mysql_Backup
a9cfcfd421fbd09d5dd1a693456065bd24e6ee4f
[ "MIT" ]
1
2021-06-08T09:45:47.000Z
2021-06-08T09:45:47.000Z
src/simple_backup/__init__.py
Am6puk/Simple_Mysql_Backup
a9cfcfd421fbd09d5dd1a693456065bd24e6ee4f
[ "MIT" ]
null
null
null
src/simple_backup/__init__.py
Am6puk/Simple_Mysql_Backup
a9cfcfd421fbd09d5dd1a693456065bd24e6ee4f
[ "MIT" ]
null
null
null
__author__ = 'Am6puk'
11
21
0.727273
4a0c8547703baecc438ff42074c6295224409465
14,004
py
Python
archai/common/metrics.py
cclauss/archai
a5fb8f937f7f1319e3204120803b2a045e9f768b
[ "MIT" ]
1
2020-10-03T18:18:41.000Z
2020-10-03T18:18:41.000Z
archai/common/metrics.py
cclauss/archai
a5fb8f937f7f1319e3204120803b2a045e9f768b
[ "MIT" ]
null
null
null
archai/common/metrics.py
cclauss/archai
a5fb8f937f7f1319e3204120803b2a045e9f768b
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import time import copy from typing import List, Mapping, Optional, Tuple import pathlib import math import statistics from collections import defaultdict from torch import Tensor import yaml from . import utils, ml_utils from ...
40.357349
135
0.56441
4a0c86a75414d2f85b7adc7f4559b975e5351f14
6,300
py
Python
examples/reinforcement_learning/TD3_model_evaluation.py
DavidMeda/gym-donkeycar
d162fd58d0369282e54dd2ee1ae4538d049c2575
[ "MIT" ]
null
null
null
examples/reinforcement_learning/TD3_model_evaluation.py
DavidMeda/gym-donkeycar
d162fd58d0369282e54dd2ee1ae4538d049c2575
[ "MIT" ]
null
null
null
examples/reinforcement_learning/TD3_model_evaluation.py
DavidMeda/gym-donkeycar
d162fd58d0369282e54dd2ee1ae4538d049c2575
[ "MIT" ]
null
null
null
from tqdm import tqdm import sys # setting path sys.path.append('../reinforcement_learning') import os import pandas as pd from torch.utils.data import Dataset, DataLoader import torch from torch.nn import L1Loss, MSELoss from torchvision import transforms from PIL import Image import numpy as np import glob import jso...
39.873418
137
0.663968
4a0c87908cf08573cb7a426067ade2e91777051d
967
py
Python
model/contact.py
barancev/python_training_final
a479150fd7003f2dadf42df2e0348253a9013429
[ "Apache-2.0" ]
3
2020-01-12T21:09:41.000Z
2022-01-13T00:20:28.000Z
model/contact.py
barancev/python_training_final
a479150fd7003f2dadf42df2e0348253a9013429
[ "Apache-2.0" ]
null
null
null
model/contact.py
barancev/python_training_final
a479150fd7003f2dadf42df2e0348253a9013429
[ "Apache-2.0" ]
1
2019-10-11T12:13:19.000Z
2019-10-11T12:13:19.000Z
__author__ = 'alexei' from sys import maxsize class Contact: def __init__(self, firstname=None, lastname=None, id=None, homephone=None, mobilephone=None, workphone=None, secondaryphone=None, all_phones_from_home_page=None): self.firstname = firstname self.lastname = lastname ...
32.233333
120
0.644261
4a0c87a0d10bbd1181fc8034670dcde2f89918fb
19,263
py
Python
mozillians/mozspaces/migrations/0010_auto_20190109_0324.py
divyamoncy/mozillians
d53d1d05d1f05b74f8533541e37083dcb89b29a8
[ "BSD-3-Clause" ]
202
2015-01-14T10:19:55.000Z
2021-12-11T06:04:16.000Z
mozillians/mozspaces/migrations/0010_auto_20190109_0324.py
divyamoncy/mozillians
d53d1d05d1f05b74f8533541e37083dcb89b29a8
[ "BSD-3-Clause" ]
2,924
2015-01-07T11:27:32.000Z
2021-01-19T14:05:17.000Z
mozillians/mozspaces/migrations/0010_auto_20190109_0324.py
divyamoncy/mozillians
d53d1d05d1f05b74f8533541e37083dcb89b29a8
[ "BSD-3-Clause" ]
270
2015-01-02T18:31:01.000Z
2021-02-17T20:57:44.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.18 on 2019-01-09 11:24 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('mozspaces', '0009_auto_20171016_0340'), ] operations = [ migrations.AlterF...
917.285714
18,855
0.713856
4a0c8892216a601116094e01bcc39f4a616f4bd2
2,062
py
Python
code/deploy/score.py
andrwwong-uw/azure-github-actions-demo
5c25ac57729b81598e0ae02bdc9af0b16b57543a
[ "MIT" ]
null
null
null
code/deploy/score.py
andrwwong-uw/azure-github-actions-demo
5c25ac57729b81598e0ae02bdc9af0b16b57543a
[ "MIT" ]
null
null
null
code/deploy/score.py
andrwwong-uw/azure-github-actions-demo
5c25ac57729b81598e0ae02bdc9af0b16b57543a
[ "MIT" ]
null
null
null
import os import joblib import numpy as np from sklearn.svm import SVC from azureml.core import Model from azureml.monitoring import ModelDataCollector from inference_schema.schema_decorators import input_schema, output_schema from inference_schema.parameter_types.numpy_parameter_type import NumpyParameterType from in...
46.863636
124
0.774976
4a0c897bf2ca5a1578b8ec833840f4e3f22b8415
1,812
py
Python
frontend/pages/utils.py
DaniilJSN/timeflow
9b61bdb207f994fc1088db9c9957455a107e6907
[ "MIT" ]
null
null
null
frontend/pages/utils.py
DaniilJSN/timeflow
9b61bdb207f994fc1088db9c9957455a107e6907
[ "MIT" ]
null
null
null
frontend/pages/utils.py
DaniilJSN/timeflow
9b61bdb207f994fc1088db9c9957455a107e6907
[ "MIT" ]
null
null
null
# pages shared logic goes here import requests from config import base_url from typing import TypedDict, Callable, List from datetime import datetime from idom import component class Select(TypedDict): value: str dispay_value: str # fmt: off year_month_list = ["2022_01","2022_02","2022_03","2022_04","2022_...
21.571429
70
0.651766
4a0c89b936f8e76b2a038c671af64b2395d40269
2,974
py
Python
ciscoisesdk/models/validators/v3_0_0/jsd_d011417d18d055ccb864c1dc2ae0456d.py
oianson/ciscoisesdk
c8fe9d80416048dd0ff2241209c4f78ab78c1a4a
[ "MIT" ]
null
null
null
ciscoisesdk/models/validators/v3_0_0/jsd_d011417d18d055ccb864c1dc2ae0456d.py
oianson/ciscoisesdk
c8fe9d80416048dd0ff2241209c4f78ab78c1a4a
[ "MIT" ]
null
null
null
ciscoisesdk/models/validators/v3_0_0/jsd_d011417d18d055ccb864c1dc2ae0456d.py
oianson/ciscoisesdk
c8fe9d80416048dd0ff2241209c4f78ab78c1a4a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Identity Services Engine leaveDomainWithAllNodes data model. Copyright (c) 2021 Cisco and/or its affiliates. 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 res...
33.41573
83
0.585407
4a0c8a77280747fd63e1c2894428fb57e18e82b5
1,546
py
Python
src/smtp_text.py
viraatdas/Twitter-Notifications
9bc3d97e71aeacdafba3a884c6536ade4d7566db
[ "MIT" ]
null
null
null
src/smtp_text.py
viraatdas/Twitter-Notifications
9bc3d97e71aeacdafba3a884c6536ade4d7566db
[ "MIT" ]
7
2021-01-14T06:23:43.000Z
2021-03-18T05:54:03.000Z
src/smtp_text.py
viraatdas/Twitter-Notifications
9bc3d97e71aeacdafba3a884c6536ade4d7566db
[ "MIT" ]
null
null
null
import smtplib import email from email.mime.text import MIMEText from email.mime.multipart import MIMEMultipart from email.message import EmailMessage class smtp_text: def __init__(self, GMAIL_EMAIL, GMAIL_PASSWORD): self.GMAIL_EMAIL = GMAIL_EMAIL self.GMAIL_PASSWORD = GMAIL_PASSWORD self....
35.136364
102
0.581501
4a0c8c093d62b0a2ec857a640bfb651888ad56ae
14,850
py
Python
sdk/python/pulumi_azure_native/apimanagement/email_template.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/apimanagement/email_template.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/apimanagement/email_template.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities from...
44.196429
1,515
0.654276
4a0c8c6fd9034fbdfd1212124652dc10c2aa4210
5,934
py
Python
kubernetes_asyncio/client/models/v2beta1_pods_metric_status.py
playground-julia/kubernetes_asyncio
91b2c41eedd282d9ebc059377fb7f207e220133d
[ "Apache-2.0" ]
null
null
null
kubernetes_asyncio/client/models/v2beta1_pods_metric_status.py
playground-julia/kubernetes_asyncio
91b2c41eedd282d9ebc059377fb7f207e220133d
[ "Apache-2.0" ]
null
null
null
kubernetes_asyncio/client/models/v2beta1_pods_metric_status.py
playground-julia/kubernetes_asyncio
91b2c41eedd282d9ebc059377fb7f207e220133d
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v1.15.9 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six fr...
33.150838
132
0.634816
4a0c8d0855750753bb3bb747dd23037c86dea364
3,021
py
Python
wsgi-server.py
iboukris/webgss
0e4732e2f7b4de111eafc60b5876aedcc3577f97
[ "MIT" ]
1
2021-12-26T22:17:24.000Z
2021-12-26T22:17:24.000Z
wsgi-server.py
iboukris/webgss
0e4732e2f7b4de111eafc60b5876aedcc3577f97
[ "MIT" ]
null
null
null
wsgi-server.py
iboukris/webgss
0e4732e2f7b4de111eafc60b5876aedcc3577f97
[ "MIT" ]
null
null
null
# MIT Licensed, see LICENSE file # Copyright (c) 2021 Isaac Boukris <iboukris@gmail.com> import os import sys import mimetypes import kdcproxy import base64 import gssapi from wsgiref.simple_server import make_server from wsgiref import util # Run with: KRB5_KTNAME=keytab python ./wsgi-server.py class gssAuth(obj...
29.910891
83
0.609401
4a0c8de977ca9f744fe1def0ad4fca532a94deb4
1,304
py
Python
ch12/MC_All_Paths/all_paths_12_nodes.py
yosais/Computer-Simulation-Book
87b2d83eded02f69cd7b8d839adfa554b25ae19d
[ "MIT" ]
16
2017-10-26T02:35:31.000Z
2021-11-24T04:31:32.000Z
ch12/MC_All_Paths/all_paths_12_nodes.py
yosais/Computer-Simulation-Book
87b2d83eded02f69cd7b8d839adfa554b25ae19d
[ "MIT" ]
null
null
null
ch12/MC_All_Paths/all_paths_12_nodes.py
yosais/Computer-Simulation-Book
87b2d83eded02f69cd7b8d839adfa554b25ae19d
[ "MIT" ]
11
2018-02-04T05:10:11.000Z
2021-11-24T05:30:45.000Z
import timeit def find_all_paths(graph, start, end, path=[]): path = path + [start] if start == end: return [path] # if start not in graph: # return [] paths = [] for node in graph[start]: if node not in path: newpaths = find_all_paths(graph, node, end, path) ...
31.047619
61
0.411043
4a0c8ee3449ff57355a3e148c02b42d43906fa0e
7,888
py
Python
victor_hardware_interface/scripts/xbox_control.py
MMintLab/kuka_iiwa_interface
0dd258641377263e7275bc63f37cf32eb12f3e56
[ "BSD-2-Clause" ]
5
2021-01-11T09:00:26.000Z
2021-12-13T15:59:01.000Z
victor_hardware_interface/scripts/xbox_control.py
MMintLab/kuka_iiwa_interface
0dd258641377263e7275bc63f37cf32eb12f3e56
[ "BSD-2-Clause" ]
35
2020-07-01T14:48:40.000Z
2021-07-13T18:38:53.000Z
victor_hardware_interface/scripts/xbox_control.py
MMintLab/kuka_iiwa_interface
0dd258641377263e7275bc63f37cf32eb12f3e56
[ "BSD-2-Clause" ]
1
2021-01-08T23:39:17.000Z
2021-01-08T23:39:17.000Z
#! /usr/bin/env python # ROS node to turn joystick msgs into Messages for Victor import rospy from arc_utilities.listener import Listener from victor_hardware_interface_msgs.msg import Robotiq3FingerStatus, Robotiq3FingerCommand from sensor_msgs.msg import Joy from copy import deepcopy from numpy import clip from ar...
35.372197
111
0.64427
4a0c8f82f50046e7a18aa4686ffb33bdbe74d216
2,207
py
Python
tests/test_reliable_executor.py
Kazzer/reliable_executor
e6c32711e80112cdff22bb592ddd636de59a4272
[ "WTFPL" ]
null
null
null
tests/test_reliable_executor.py
Kazzer/reliable_executor
e6c32711e80112cdff22bb592ddd636de59a4272
[ "WTFPL" ]
null
null
null
tests/test_reliable_executor.py
Kazzer/reliable_executor
e6c32711e80112cdff22bb592ddd636de59a4272
[ "WTFPL" ]
null
null
null
#!/usr/bin/env python """Tests for the reliable_executor module""" import functools import random import unittest import reliable_executor class ReliablyExecuteTest(unittest.TestCase): """Test Case for reliable_executor.reliably_execute()""" def setUp(self): """Sets up a function with a random numbe...
30.232877
84
0.61169
4a0c90d56c79a77b28eff8bdd2c8692a958701b5
2,142
py
Python
setup.py
nepython/django-netjsongraph
ab8de783b71864e06cf0e0dc5d564559df3f21cd
[ "MIT" ]
null
null
null
setup.py
nepython/django-netjsongraph
ab8de783b71864e06cf0e0dc5d564559df3f21cd
[ "MIT" ]
null
null
null
setup.py
nepython/django-netjsongraph
ab8de783b71864e06cf0e0dc5d564559df3f21cd
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys from django_netjsongraph import get_version from setuptools import find_packages, setup def get_install_requires(): """ parse requirements.txt, ignore links, exclude comments """ requirements = [] for line in open('requirements.txt').readlines(): ...
33.46875
99
0.644258
4a0c9361b851c727385ec38fc209d62634ee4d5e
4,288
py
Python
xmlschema/tests/check_memory.py
jayvdb/xmlschema
257ef230c4b4c42a3374d0a5bc620c68d579e0fd
[ "MIT" ]
null
null
null
xmlschema/tests/check_memory.py
jayvdb/xmlschema
257ef230c4b4c42a3374d0a5bc620c68d579e0fd
[ "MIT" ]
null
null
null
xmlschema/tests/check_memory.py
jayvdb/xmlschema
257ef230c4b4c42a3374d0a5bc620c68d579e0fd
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (c), 2016-2019, SISSA (International School for Advanced Studies). # All rights reserved. # This file is distributed under the terms of the MIT License. # See the file 'LICENSE' in the root directory of the present # distribution, or http://opensource.org/lice...
28.026144
101
0.692631
4a0c950f7959613bea7d779bd0b96616dc1f3a1e
254
py
Python
ko_model/crawler.py
Ohjiwoo-lab/News-Articles-Recommendation
a0880fad62114c4ddda05ca5c41a1ceab2a923b4
[ "MIT" ]
null
null
null
ko_model/crawler.py
Ohjiwoo-lab/News-Articles-Recommendation
a0880fad62114c4ddda05ca5c41a1ceab2a923b4
[ "MIT" ]
null
null
null
ko_model/crawler.py
Ohjiwoo-lab/News-Articles-Recommendation
a0880fad62114c4ddda05ca5c41a1ceab2a923b4
[ "MIT" ]
4
2021-08-23T15:02:11.000Z
2021-11-09T01:10:40.000Z
from korea_news_crawler.articlecrawler import ArticleCrawler if __name__ == "__main__": Crawler = ArticleCrawler() Crawler.set_category("정치", "IT과학", "economy", "사회", "생활문화") Crawler.set_date_range(2017, 1, 2018, 4) Crawler.start()
36.285714
65
0.692913
4a0c9606b23f3bae09fc55bfb41ce3c011036e75
9,829
py
Python
server/user.py
psylopunk/mpei-timetable-bot
be8e51676a4688c9a31ac5f837c030b9ea8ba190
[ "MIT" ]
3
2021-05-06T00:20:49.000Z
2021-12-03T20:56:38.000Z
server/user.py
psylopunk/mpei-timetable-bot
be8e51676a4688c9a31ac5f837c030b9ea8ba190
[ "MIT" ]
null
null
null
server/user.py
psylopunk/mpei-timetable-bot
be8e51676a4688c9a31ac5f837c030b9ea8ba190
[ "MIT" ]
1
2020-12-31T18:33:21.000Z
2020-12-31T18:33:21.000Z
from storage import db from config import TELEGRAM_API_KEY from aiogram import Bot from functions import log, get_default_inline_keyboard, get_keyboard, get_inline_keyboard, get_weekday_name, get_timetable_json from datetime import datetime, timedelta bot = Bot(token=TELEGRAM_API_KEY) class User: def log(self, te...
37.949807
143
0.52223
4a0c977267f002a137154eccd9351924dc41288d
97
py
Python
stib_administraciones/personales/admin.py
nfheredia/stib-administraciones
05dae746d2fecf75c1d50c4ee679c02ddbf7208a
[ "BSD-3-Clause" ]
null
null
null
stib_administraciones/personales/admin.py
nfheredia/stib-administraciones
05dae746d2fecf75c1d50c4ee679c02ddbf7208a
[ "BSD-3-Clause" ]
null
null
null
stib_administraciones/personales/admin.py
nfheredia/stib-administraciones
05dae746d2fecf75c1d50c4ee679c02ddbf7208a
[ "BSD-3-Clause" ]
1
2020-10-28T15:46:48.000Z
2020-10-28T15:46:48.000Z
from django.contrib import admin from models import Personales admin.site.register(Personales)
16.166667
32
0.835052
4a0c97905370d484d687fd13369876008e48a472
2,180
py
Python
src/lp_detector/lp_detection.py
heroclass728/alpr_egyptian
a94e287245595233100b4f3683e68dcc25f8c11b
[ "CNRI-Python" ]
null
null
null
src/lp_detector/lp_detection.py
heroclass728/alpr_egyptian
a94e287245595233100b4f3683e68dcc25f8c11b
[ "CNRI-Python" ]
null
null
null
src/lp_detector/lp_detection.py
heroclass728/alpr_egyptian
a94e287245595233100b4f3683e68dcc25f8c11b
[ "CNRI-Python" ]
null
null
null
import os import time import cv2 import numpy as np from settings import LP_MODEL_DIR, LP_CONFIG_DIR, LP_NAMES_DIR class LPDetector: def __init__(self): self.model_path = os.path.join(LP_MODEL_DIR, 'yolov2-tiny-custom_final.weights') self.config_path = os.path.join(LP_CONFIG_DIR, 'yolov2-tiny-c...
32.537313
120
0.600459
4a0c979659dac99fdadac234683bec9699c15d75
118
py
Python
ML_NBD/analogs_search/urls.py
danielSoler93/DrugDiscoveryAI
74736e4807fefe254dd983afdcd90fa4640fd359
[ "MIT" ]
2
2021-06-13T15:11:56.000Z
2022-01-09T11:20:10.000Z
ML_NBD/analogs_search/urls.py
AspirinCode/DrugDiscoveryAI
74736e4807fefe254dd983afdcd90fa4640fd359
[ "MIT" ]
2
2020-06-06T00:50:29.000Z
2021-06-10T22:40:41.000Z
ML_NBD/analogs_search/urls.py
AspirinCode/DrugDiscoveryAI
74736e4807fefe254dd983afdcd90fa4640fd359
[ "MIT" ]
2
2020-05-14T03:02:34.000Z
2020-05-22T16:36:06.000Z
from django.urls import path from . import views urlpatterns = [ path('', views.home, name='analogs-home') ]
16.857143
45
0.661017
4a0c9830d6a56e1604c511e4aada9e90caa803a8
2,243
py
Python
demo/tasks_app/migrations/0003_create_superuser_and_data.py
ociule/django-users-admin
817590dc7a6c1e3657f31202d4068fd25002a30a
[ "BSD-3-Clause" ]
1
2019-03-30T15:28:36.000Z
2019-03-30T15:28:36.000Z
demo/tasks_app/migrations/0003_create_superuser_and_data.py
ociule/django-users-admin
817590dc7a6c1e3657f31202d4068fd25002a30a
[ "BSD-3-Clause" ]
null
null
null
demo/tasks_app/migrations/0003_create_superuser_and_data.py
ociule/django-users-admin
817590dc7a6c1e3657f31202d4068fd25002a30a
[ "BSD-3-Clause" ]
null
null
null
from django.db import migrations from django.conf import settings from django.contrib.auth.admin import User def create_superuser(apps, schema_editor): superuser = User() superuser.is_active = True superuser.is_superuser = True superuser.is_staff = True superuser.username = 'admin' superuser.e...
48.76087
151
0.719572
4a0c98ae0065805180bfea75449d728178c902f8
1,718
py
Python
objects/leg/foot.py
martin-helmich/spacicon
284a389fd75bdc8558ddde9d7fd30bb0f50fc6f3
[ "MIT" ]
1
2020-10-16T18:49:54.000Z
2020-10-16T18:49:54.000Z
objects/leg/foot.py
martin-helmich/spacicon
284a389fd75bdc8558ddde9d7fd30bb0f50fc6f3
[ "MIT" ]
3
2021-06-08T19:04:04.000Z
2022-03-11T23:19:09.000Z
objects/leg/foot.py
martin-helmich/spacicon
284a389fd75bdc8558ddde9d7fd30bb0f50fc6f3
[ "MIT" ]
null
null
null
from svgwrite import Drawing from svgwrite.container import Group class LegWithFoot: def __init__(self, leg_length: float, leg_color: str, thickness_thigh: float = 50, thickness_foot: float = 30, boot_height: float = 20, ...
35.791667
183
0.582072
4a0c9926d1be49cfd2f7dcb042f286ef6e0b72a4
4,485
py
Python
benchmark/startQiskit_Class1490.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startQiskit_Class1490.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startQiskit_Class1490.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=5 # total number=57 import cirq import qiskit from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister from qiskit import BasicAer, execute, transpile from pprint import pprint from qiskit.test.mock import FakeVigo from math import log2,floor, sqrt, pi import numpy as np import networkx as ...
32.035714
80
0.612486
4a0c99fd03c9ecd9abd13b2fda770251f5862c05
1,838
py
Python
Intermediate/RandomWords/RandomWords.py
arunkgupta/PythonTrainingExercises
d260cf71298e34b2a18bd11a76f1764ef28677c7
[ "BSD-3-Clause" ]
150
2015-11-27T14:19:15.000Z
2019-11-03T18:34:21.000Z
Intermediate/RandomWords/RandomWords.py
prmohanty/PythonTrainingExercises
00a2435649fcf53fdafede2d10b40f08463728fe
[ "BSD-3-Clause" ]
1
2015-12-30T11:41:30.000Z
2015-12-30T11:41:30.000Z
Intermediate/RandomWords/RandomWords.py
prmohanty/PythonTrainingExercises
00a2435649fcf53fdafede2d10b40f08463728fe
[ "BSD-3-Clause" ]
95
2015-12-01T18:44:13.000Z
2019-10-28T16:25:08.000Z
"""Write a function that randomises letters in words after the first N letters. It will be called randomWords(words, n) where words is a list of words and n the number of leading letters of each word to keep in order the remainder are to be randomly jumbled up. The code in main will call your function with different ...
36.039216
86
0.702394
4a0c9a8fd6fad6e957743a5f25c27d243daed396
952
py
Python
mundo3/utilidadecv/dados/dados.py
KayanOkagawa/Cursoemvideo-Python3-Exercicios
10c8386102cc0928f8f090070eb3218deb3d60fe
[ "MIT" ]
null
null
null
mundo3/utilidadecv/dados/dados.py
KayanOkagawa/Cursoemvideo-Python3-Exercicios
10c8386102cc0928f8f090070eb3218deb3d60fe
[ "MIT" ]
null
null
null
mundo3/utilidadecv/dados/dados.py
KayanOkagawa/Cursoemvideo-Python3-Exercicios
10c8386102cc0928f8f090070eb3218deb3d60fe
[ "MIT" ]
null
null
null
def leia_dinheiro(msg): while True: numero = input(f'{msg} ').strip() if numero.isnumeric(): return float(numero) elif numero.isalnum() or numero.isalpha(): print('\033[01;31mERRO! Digite um valor númerico.\033[m') else: if numero.find(',') >= 0 or...
43.272727
77
0.452731
4a0c9ab58e88c736c3e70d42b8a69a7c8af02300
20
py
Python
data/studio21_generated/introductory/3149/starter_code.py
vijaykumawat256/Prompt-Summarization
614f5911e2acd2933440d909de2b4f86653dc214
[ "Apache-2.0" ]
null
null
null
data/studio21_generated/introductory/3149/starter_code.py
vijaykumawat256/Prompt-Summarization
614f5911e2acd2933440d909de2b4f86653dc214
[ "Apache-2.0" ]
null
null
null
data/studio21_generated/introductory/3149/starter_code.py
vijaykumawat256/Prompt-Summarization
614f5911e2acd2933440d909de2b4f86653dc214
[ "Apache-2.0" ]
null
null
null
def roof_fix(f,r):
10
18
0.65
4a0c9b97c4df152fbfbec33b0eabdd3f7322f6db
698
py
Python
dpk_annotator/utils/__init__.py
jgraving/deepposekit-annotator
6115e47604f604e34d00189beacb54e4ed5457f1
[ "Apache-2.0" ]
3
2019-05-22T16:35:21.000Z
2019-05-24T08:20:32.000Z
dpk_annotator/utils/__init__.py
jgraving/deepposekit-annotator
6115e47604f604e34d00189beacb54e4ed5457f1
[ "Apache-2.0" ]
1
2019-10-22T01:23:48.000Z
2019-10-22T11:30:46.000Z
analysis/chrelli_annotator/dpk_annotator/utils/__init__.py
chrelli/3DDD_social_mouse_tracker
291d2ed90029628dd65db0ce3e8972b721159a15
[ "Apache-2.0" ]
2
2021-08-17T06:50:51.000Z
2021-09-26T07:22:14.000Z
# -*- coding: utf-8 -*- """ Copyright 2018-2019 Jacob M. Graving <jgraving@gmail.com> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required...
31.727273
72
0.772206
4a0c9b9c4f3a562ee6cef2bbe9f09eb1ca503278
3,183
py
Python
core/ip.py
richaSinha120/phython
12dd5a2abd8279d98416f3f5dcdd76e85ea9603e
[ "Apache-2.0" ]
1
2021-08-29T05:34:02.000Z
2021-08-29T05:34:02.000Z
core/ip.py
zer0x0/Nettacker
52c5e39a3fd0ab9842c7cf1a8be2de9f560c5d53
[ "Apache-2.0" ]
104
2018-04-30T03:59:58.000Z
2022-03-31T02:31:34.000Z
core/ip.py
pradeepjairamani/OWASP-Nettacker
988bd960d31e1982d422f6e58590b0f34d7e5215
[ "Apache-2.0" ]
1
2021-07-23T23:38:19.000Z
2021-07-23T23:38:19.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import netaddr import time import sys import requests from core.alert import * from core.compatible import version from netaddr import iprange_to_cidrs from netaddr import IPNetwork from core.log import __log_into_file def getIPRange(IP): """ get IPv4 range from R...
24.867188
109
0.534087
4a0c9e5830f5b25ecc04f33f46beaf5d79f62e26
709
py
Python
interview/urls.py
JorgeScp/performance
b7de0498fdcf346ad0b44558ff62f4bf9cc1a986
[ "MIT" ]
1
2022-01-05T19:52:35.000Z
2022-01-05T19:52:35.000Z
interview/urls.py
JorgeScp/performance
b7de0498fdcf346ad0b44558ff62f4bf9cc1a986
[ "MIT" ]
null
null
null
interview/urls.py
JorgeScp/performance
b7de0498fdcf346ad0b44558ff62f4bf9cc1a986
[ "MIT" ]
null
null
null
from django.urls import path, include from . import views urlpatterns = [ #path('int_main_form/<int:pk>/', views.int_form,name='int_insert'), # get and post req. for insert operation path('int_add/<int:id>/<int:pk>/', views.int_form,name='int_insert'), # get and post req. for update operation path('int_upd...
59.083333
117
0.70945
4a0c9eec4c35e50df0ce7c06a1b830ac36985a21
944
py
Python
nemo/collections/nlp/modules/common/transformer/__init__.py
vadam5/NeMo
3c5db09539293c3c19a6bb7437011f91261119af
[ "Apache-2.0" ]
10
2021-04-01T05:55:18.000Z
2022-02-15T01:41:41.000Z
nemo/collections/nlp/modules/common/transformer/__init__.py
vadam5/NeMo
3c5db09539293c3c19a6bb7437011f91261119af
[ "Apache-2.0" ]
null
null
null
nemo/collections/nlp/modules/common/transformer/__init__.py
vadam5/NeMo
3c5db09539293c3c19a6bb7437011f91261119af
[ "Apache-2.0" ]
12
2021-06-20T08:56:10.000Z
2022-03-16T19:07:10.000Z
# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
49.684211
84
0.797669
4a0c9f0799c0d3fbb2b44cec8bc81ebc2dcbed7c
4,171
py
Python
ultracart/models/email_stat_postcard_summary_request.py
UltraCart/rest_api_v2_sdk_python
d734ea13fabc7a57872ff68bac06861edb8fd882
[ "Apache-2.0" ]
1
2018-03-15T16:56:23.000Z
2018-03-15T16:56:23.000Z
ultracart/models/email_stat_postcard_summary_request.py
UltraCart/rest_api_v2_sdk_python
d734ea13fabc7a57872ff68bac06861edb8fd882
[ "Apache-2.0" ]
null
null
null
ultracart/models/email_stat_postcard_summary_request.py
UltraCart/rest_api_v2_sdk_python
d734ea13fabc7a57872ff68bac06861edb8fd882
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ UltraCart Rest API V2 UltraCart REST API Version 2 # noqa: E501 OpenAPI spec version: 2.0.0 Contact: support@ultracart.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class EmailStatPostcardSummary...
29.373239
120
0.603452
4a0ca04a85b3cfb28d49976a8c09d0f87d013abb
3,733
py
Python
deepdefacer/defacer_utils.py
chrisfilo/DeepDeface
c362eb6a0b563557ed726838ae64c4a3bd454a71
[ "MIT" ]
null
null
null
deepdefacer/defacer_utils.py
chrisfilo/DeepDeface
c362eb6a0b563557ed726838ae64c4a3bd454a71
[ "MIT" ]
null
null
null
deepdefacer/defacer_utils.py
chrisfilo/DeepDeface
c362eb6a0b563557ed726838ae64c4a3bd454a71
[ "MIT" ]
null
null
null
import numpy as np import nibabel as nib import SimpleITK as sitk import os from termcolor import colored try: from keras import backend as K from keras.models import * from tensorflow.python.client import device_lib except Exception as e: print(e) print('-' * 100) print(colored("""ERROR: Failed ...
34.564815
129
0.710956
4a0ca085cdbf984239ab18d4fd513c5d37d143a1
20,403
py
Python
src/test/scenarios/managed-network/output/src/managed-network/azext_managed_network/vendored_sdks/managed-network/operations/_managed_network_peering_policy_operations.py
changlong-liu/autorest.az
d6a85324b2849f65ccfef872d0ecb44eb28e16a0
[ "MIT" ]
null
null
null
src/test/scenarios/managed-network/output/src/managed-network/azext_managed_network/vendored_sdks/managed-network/operations/_managed_network_peering_policy_operations.py
changlong-liu/autorest.az
d6a85324b2849f65ccfef872d0ecb44eb28e16a0
[ "MIT" ]
null
null
null
src/test/scenarios/managed-network/output/src/managed-network/azext_managed_network/vendored_sdks/managed-network/operations/_managed_network_peering_policy_operations.py
changlong-liu/autorest.az
d6a85324b2849f65ccfef872d0ecb44eb28e16a0
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
51.263819
254
0.6923
4a0ca133b655f6451272eed072620dfdf9b651dc
400
py
Python
17/9.py
deadnotxaa/homework
c56b1298f0f3198ff1be919e369256c67f54915f
[ "MIT" ]
null
null
null
17/9.py
deadnotxaa/homework
c56b1298f0f3198ff1be919e369256c67f54915f
[ "MIT" ]
null
null
null
17/9.py
deadnotxaa/homework
c56b1298f0f3198ff1be919e369256c67f54915f
[ "MIT" ]
null
null
null
if __name__ == "__main__": path = input("Enter a path to file: ") with open(path, "r", encoding="utf-8") as f: a = [int(i) for i in f] count = 0 max_sum = 0 for i in range(len(a) - 1): for j in range(i + 1, len(a)): if (a[i] * a[j]) % 26 == 0: count += 1 ...
25
51
0.4575
4a0ca23f7407aabc1e595046ea13e0ca4173caf9
3,176
py
Python
flask/main.py
RengeMiyauchi/vrchat-time-shaders
486f0a7064a6689bcfec79938ff2aa5ffec8a0f8
[ "CC0-1.0" ]
null
null
null
flask/main.py
RengeMiyauchi/vrchat-time-shaders
486f0a7064a6689bcfec79938ff2aa5ffec8a0f8
[ "CC0-1.0" ]
null
null
null
flask/main.py
RengeMiyauchi/vrchat-time-shaders
486f0a7064a6689bcfec79938ff2aa5ffec8a0f8
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python3 import io import requests from pendulum import timezone from datetime import datetime from timezonefinder import TimezoneFinder from PIL import Image, ImageDraw from flask_caching import Cache from werkzeug.wsgi import FileWrapper from flask import Flask, Response, request, redirect config = ...
25.408
79
0.61335
4a0ca29ac1c621537787e633c7822d463cb218b0
10,416
py
Python
pytorch/function/evaluate_s3dis_dist.py
paulwong16/CloserLook3D
71a7f519e55354c96c579adc7322a26fe7779ce7
[ "MIT" ]
215
2020-07-03T01:39:57.000Z
2022-03-21T09:05:55.000Z
pytorch/function/evaluate_s3dis_dist.py
eglrp/CloserLook3D
f640be8e7ec9fb99a563034616b7ef413f5bf58e
[ "MIT" ]
35
2020-07-15T04:12:26.000Z
2022-01-15T13:38:36.000Z
pytorch/function/evaluate_s3dis_dist.py
eglrp/CloserLook3D
f640be8e7ec9fb99a563034616b7ef413f5bf58e
[ "MIT" ]
39
2020-07-05T13:53:00.000Z
2022-03-14T01:53:50.000Z
""" Distributed evaluating script for scene segmentation with S3DIS dataset """ import argparse import os import sys import time import json import random import numpy as np BASE_DIR = os.path.dirname(os.path.abspath(__file__)) ROOT_DIR = os.path.dirname(BASE_DIR) sys.path.append(ROOT_DIR) import torch import torch.n...
42.864198
112
0.619816
4a0ca36225309a19df1b213ef8992816148da31e
11,638
py
Python
dali/test/python/test_torch_pipeline_rnnt.py
roclark/DALI
e44a212d89a5449bbe7f4bae3d0f55f11a262932
[ "ECL-2.0", "Apache-2.0" ]
1
2020-10-07T23:07:23.000Z
2020-10-07T23:07:23.000Z
dali/test/python/test_torch_pipeline_rnnt.py
MAKali4737/DALI
3b114c6ebee38ff3815a9b4a234402e4d1affaa0
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
dali/test/python/test_torch_pipeline_rnnt.py
MAKali4737/DALI
3b114c6ebee38ff3815a9b4a234402e4d1affaa0
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
39.585034
100
0.602509
4a0ca37878e99734984a91777a00f3174ba749de
3,876
py
Python
woocommerce/api.py
brumar/wc-api-python
7824e4410dca6950326fbd9d62ae9cfa4a886c72
[ "MIT" ]
null
null
null
woocommerce/api.py
brumar/wc-api-python
7824e4410dca6950326fbd9d62ae9cfa4a886c72
[ "MIT" ]
null
null
null
woocommerce/api.py
brumar/wc-api-python
7824e4410dca6950326fbd9d62ae9cfa4a886c72
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ WooCommerce API Class """ __title__ = "woocommerce-api" __version__ = "2.1.0" __author__ = "Claudio Sanches @ Automattic" __license__ = "MIT" from requests import request from json import dumps as jsonencode from time import time from woocommerce.oauth import OAuth try: from urllib.p...
30.28125
75
0.579205
4a0ca39a3e42dc10215109e6e441ccb062093f45
2,574
py
Python
udemy/Aula17_Conjuntos_Exercicios.py
estercardosotoja/curso_python
dc115bee4bbb66cd5224e80e13e295d30fb5473e
[ "MIT" ]
null
null
null
udemy/Aula17_Conjuntos_Exercicios.py
estercardosotoja/curso_python
dc115bee4bbb66cd5224e80e13e295d30fb5473e
[ "MIT" ]
1
2021-12-10T18:44:42.000Z
2021-12-10T18:44:42.000Z
udemy/Aula17_Conjuntos_Exercicios.py
estercardosotoja/curso_python
dc115bee4bbb66cd5224e80e13e295d30fb5473e
[ "MIT" ]
null
null
null
""" 1) Sami e Dudu irão fazer uma competição de quem visita mais Estados no Brasil em um período de 6 meses, até então Dudu já visitou o Espírito Santo e São Paulo, enquanto Sami visitou Rio de Janeiro e Bahia. Crie dois conjuntos diferentes para simbolizar os estados que cada um foi. Após 6 meses Dudu visitou Bahia, ...
35.75
108
0.692696
4a0ca5630ac30e7aca65f496695528efc7ab1ca8
2,449
py
Python
src/arch/x86/isa/insts/general_purpose/flags/push_and_pop.py
sjl1826/gem5
47ab53ef35b03aad7a92439d268ac57f10a90612
[ "BSD-3-Clause" ]
1
2022-03-25T13:18:26.000Z
2022-03-25T13:18:26.000Z
src/arch/x86/isa/insts/general_purpose/flags/push_and_pop.py
sjl1826/gem5
47ab53ef35b03aad7a92439d268ac57f10a90612
[ "BSD-3-Clause" ]
1
2022-03-25T14:15:30.000Z
2022-03-25T14:15:30.000Z
src/arch/x86/isa/insts/general_purpose/flags/push_and_pop.py
ksco/gem5-xiangshan
0baf1b5229885d81d689a677102f0665aaac5514
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2007-2008 The Hewlett-Packard Development Company # All rights reserved. # # The license below extends only to copyright in the software and shall # not be construed as granting a license to any other intellectual # property including but not limited to intellectual property relating # to a hardware imp...
46.207547
72
0.775419
4a0ca644da5039a5c3f031f1e0bdbfef64929e31
3,993
py
Python
_old/HW6.py
haydenshively/AME-261
1cf686835e4eead3a5d23cae65dd7644515fe665
[ "MIT" ]
1
2022-03-29T23:59:23.000Z
2022-03-29T23:59:23.000Z
_old/HW6.py
haydenshively/AME-261
1cf686835e4eead3a5d23cae65dd7644515fe665
[ "MIT" ]
null
null
null
_old/HW6.py
haydenshively/AME-261
1cf686835e4eead3a5d23cae65dd7644515fe665
[ "MIT" ]
null
null
null
import sys sys.path.append('..') import numpy as np import matplotlib.pyplot as plt from matplotlib.font_manager import FontProperties if __name__ == '__main__': from haydens_code.atmosphere import std_atm_earth from haydens_code.plane import Plane # Initialize Cessna CJ-1 plane object # plane = Plan...
33
116
0.604057
4a0ca6bd07c02758b4056997815d2895b3d585ad
3,397
py
Python
service/tools/generate_sdk_configuration.py
lcrh/falken
7545431c7bfa34a9b45c2243cae40dbb58adefaa
[ "Apache-2.0" ]
213
2021-06-11T01:15:16.000Z
2022-02-25T16:18:57.000Z
service/tools/generate_sdk_configuration.py
lcrh/falken
7545431c7bfa34a9b45c2243cae40dbb58adefaa
[ "Apache-2.0" ]
32
2021-06-17T17:58:54.000Z
2022-02-02T05:58:10.000Z
service/tools/generate_sdk_configuration.py
lcrh/falken
7545431c7bfa34a9b45c2243cae40dbb58adefaa
[ "Apache-2.0" ]
28
2021-06-17T17:34:21.000Z
2022-03-24T14:05:20.000Z
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
29.284483
77
0.685899
4a0ca70ee4e8213b43782c218727693766c17eed
1,364
py
Python
Currency.py
michael-canaran/pybank-app
491885d3732c922dad4649cf56650a6fd721908c
[ "MIT" ]
null
null
null
Currency.py
michael-canaran/pybank-app
491885d3732c922dad4649cf56650a6fd721908c
[ "MIT" ]
null
null
null
Currency.py
michael-canaran/pybank-app
491885d3732c922dad4649cf56650a6fd721908c
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod class Currency(ABC): """ Abstract factory class of Currency. """ def __init__(self): prefix = "" rate = None @abstractmethod def get_prefix(self) -> str: """ Gets the string pre-fix of the currency. ...
18.432432
55
0.515396
4a0ca7bd73965ba49d781fa068f717ae72070eb3
2,429
py
Python
src/loader/transition_time.py
Sensors-in-Paradise/OpportunityML
a123b4842de45f735d517be6bcd96ca35171db91
[ "MIT" ]
1
2022-03-25T16:00:36.000Z
2022-03-25T16:00:36.000Z
src/loader/transition_time.py
Sensors-in-Paradise/OpportunityML
a123b4842de45f735d517be6bcd96ca35171db91
[ "MIT" ]
1
2022-03-28T13:50:28.000Z
2022-03-28T13:50:28.000Z
src/loader/transition_time.py
Sensors-in-Paradise/OpportunityML
a123b4842de45f735d517be6bcd96ca35171db91
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import utils.settings as settings def transition_time_cut(recordings: "list[Recording]", seconds_from_start = 2, seconds_from_end = 0) -> "list[Recording]": """ 1 - max 2 seconds at the end of every activity, to make windows cleaner - the timestep_frequency need...
45.830189
122
0.701112
4a0ca7fa0ed8567e362832662d5e017d4c84f754
797
py
Python
py/py_0504_square_on_the_inside.py
lcsm29/project-euler
fab794ece5aa7a11fc7c2177f26250f40a5b1447
[ "MIT" ]
null
null
null
py/py_0504_square_on_the_inside.py
lcsm29/project-euler
fab794ece5aa7a11fc7c2177f26250f40a5b1447
[ "MIT" ]
null
null
null
py/py_0504_square_on_the_inside.py
lcsm29/project-euler
fab794ece5aa7a11fc7c2177f26250f40a5b1447
[ "MIT" ]
null
null
null
# Solution of; # Project Euler Problem 504: Square on the Inside # https://projecteuler.net/problem=504 # # Let ABCD be a quadrilateral whose vertices are lattice points lying on the # coordinate axes as follows:A(a, 0), B(0, b), C(−c, 0), D(0, −d), where 1 ≤ # a, b, c, d ≤ m and a, b, c, d, m are integers. It can b...
30.653846
78
0.685069
4a0ca81ab2254ef9adec22ddf86b6a5e79bf5a1b
1,633
py
Python
cogs/Makeemoji.py
nerdguyahmad/discord-emoji-stealer
5e34b7edac0f14cae21de2bd43c573cee0f7631f
[ "MIT" ]
null
null
null
cogs/Makeemoji.py
nerdguyahmad/discord-emoji-stealer
5e34b7edac0f14cae21de2bd43c573cee0f7631f
[ "MIT" ]
null
null
null
cogs/Makeemoji.py
nerdguyahmad/discord-emoji-stealer
5e34b7edac0f14cae21de2bd43c573cee0f7631f
[ "MIT" ]
null
null
null
from discord.ext import commands import requests import discord class Makeemoji(commands.Cog): def __init__(self, bot): self.bot = bot @commands.command() async def makeemoji(self, ctx, name, url=None): if url: file_request = requests.get(url) try: ...
39.829268
125
0.607471
4a0ca825652b4e62259cb63a4270f86b39495f3e
21,761
py
Python
test/functional/wallet_importmulti.py
bitstockproject/bitstock-core
5d18f0f2c922e8de2b1ff26fa3687ac3d28ec60c
[ "MIT" ]
null
null
null
test/functional/wallet_importmulti.py
bitstockproject/bitstock-core
5d18f0f2c922e8de2b1ff26fa3687ac3d28ec60c
[ "MIT" ]
null
null
null
test/functional/wallet_importmulti.py
bitstockproject/bitstock-core
5d18f0f2c922e8de2b1ff26fa3687ac3d28ec60c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2017 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the importmulti RPC.""" from test_framework.test_framework import BitstockTestFramework from test_...
48.143805
135
0.629842
4a0ca8e3fc5da55d6d6c4c79b36a17cddbfb11bc
760
py
Python
tools/mo/unit_tests/mo/front/kaldi/sigmoid_ext_test.py
ryanloney/openvino-1
4e0a740eb3ee31062ba0df88fcf438564f67edb7
[ "Apache-2.0" ]
1,127
2018-10-15T14:36:58.000Z
2020-04-20T09:29:44.000Z
tools/mo/unit_tests/mo/front/kaldi/sigmoid_ext_test.py
ryanloney/openvino-1
4e0a740eb3ee31062ba0df88fcf438564f67edb7
[ "Apache-2.0" ]
439
2018-10-20T04:40:35.000Z
2020-04-19T05:56:25.000Z
tools/mo/unit_tests/mo/front/kaldi/sigmoid_ext_test.py
ryanloney/openvino-1
4e0a740eb3ee31062ba0df88fcf438564f67edb7
[ "Apache-2.0" ]
414
2018-10-17T05:53:46.000Z
2020-04-16T17:29:53.000Z
# Copyright (C) 2018-2022 Intel Corporation # SPDX-License-Identifier: Apache-2.0 from openvino.tools.mo.front.kaldi.sigmoid_ext import SigmoidFrontExtractor from openvino.tools.mo.ops.activation_ops import Sigmoid from unit_tests.mo.front.kaldi.extractors.common_ext_test import KaldiFrontExtractorTest from openvino.t...
36.190476
88
0.788158
4a0ca9264a8e3d18498aa6478bcff4f7ef6fa782
1,646
py
Python
samples/scripts/read_dataset.py
OkanoShogo0903/open3d_workspace
38386e9dd65a75ea62202487bd4d18712eab3f1e
[ "MIT" ]
null
null
null
samples/scripts/read_dataset.py
OkanoShogo0903/open3d_workspace
38386e9dd65a75ea62202487bd4d18712eab3f1e
[ "MIT" ]
null
null
null
samples/scripts/read_dataset.py
OkanoShogo0903/open3d_workspace
38386e9dd65a75ea62202487bd4d18712eab3f1e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # rgbd_redwood.py #conda install pillow matplotlib import types #from py3d import * from open3d import * #from py3d import * import matplotlib.pyplot as plt def run(): print("Read Redwood dataset") color_raw = read_image("./TestData/RGBD/color/00000.jpg") depth_raw = rea...
33.591837
81
0.617861
4a0ca944d82b344c21981063d02bd497c6a82442
5,919
py
Python
pybind/slxos/v16r_1_00b/routing_system/interface/ve/ipv6/ipv6_nd_ra/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
null
null
null
pybind/slxos/v16r_1_00b/routing_system/interface/ve/ipv6/ipv6_nd_ra/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
null
null
null
pybind/slxos/v16r_1_00b/routing_system/interface/ve/ipv6/ipv6_nd_ra/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
1
2021-11-05T22:15:42.000Z
2021-11-05T22:15:42.000Z
from operator import attrgetter import pyangbind.lib.xpathhelper as xpathhelper from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType from pyangbind.lib.base import PybindBase from d...
47.733871
452
0.718365
4a0ca96e977a0589542cdf85880ed2ca55ccb2fb
4,828
py
Python
core/dbt/context/parser.py
NiallRees/dbt
da7afd84ab961cd1b90775e900514f7379ba2e84
[ "Apache-2.0" ]
1
2021-09-01T20:50:52.000Z
2021-09-01T20:50:52.000Z
core/dbt/context/parser.py
NiallRees/dbt
da7afd84ab961cd1b90775e900514f7379ba2e84
[ "Apache-2.0" ]
1
2019-10-28T15:33:04.000Z
2019-10-28T15:33:04.000Z
core/dbt/context/parser.py
NiallRees/dbt
da7afd84ab961cd1b90775e900514f7379ba2e84
[ "Apache-2.0" ]
2
2019-05-10T21:23:08.000Z
2021-06-09T01:28:37.000Z
import dbt.exceptions import dbt.context.common from dbt.adapters.factory import get_adapter from dbt.contracts.graph.parsed import Docref def docs(unparsed, docrefs, column_name=None): def do_docs(*args): if len(args) != 1 and len(args) != 2: dbt.exceptions.doc_invalid_args(unparsed, args) ...
31.97351
79
0.61599
4a0caa8cd3af62c7ccc69fd6d9143221a8972aa9
13,609
py
Python
barbican/tests/tasks/test_keystone_consumer.py
dmend/barbican
5ff7b4ca1474225acabc36acedcf70a41946e6d0
[ "Apache-2.0" ]
177
2015-01-02T09:35:53.000Z
2022-02-26T01:43:55.000Z
barbican/tests/tasks/test_keystone_consumer.py
dmend/barbican
5ff7b4ca1474225acabc36acedcf70a41946e6d0
[ "Apache-2.0" ]
3
2015-06-23T19:07:31.000Z
2017-08-19T04:38:11.000Z
barbican/tests/tasks/test_keystone_consumer.py
dmend/barbican
5ff7b4ca1474225acabc36acedcf70a41946e6d0
[ "Apache-2.0" ]
87
2015-01-13T17:33:40.000Z
2021-11-09T05:30:36.000Z
# Copyright (c) 2014 Hewlett-Packard Development Company, L.P. # # 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 applica...
40.382789
79
0.67764
4a0cab360ca849a3b6562caa72fae083d0387dc7
2,313
py
Python
cryomem/tnminstruments/SR830.py
bebaek/cryomem
088fba2568d10451adda51a068c15c8c2a73d9ce
[ "MIT" ]
1
2018-09-16T12:29:04.000Z
2018-09-16T12:29:04.000Z
cryomem/tnminstruments/SR830.py
bebaek/cryomem
088fba2568d10451adda51a068c15c8c2a73d9ce
[ "MIT" ]
null
null
null
cryomem/tnminstruments/SR830.py
bebaek/cryomem
088fba2568d10451adda51a068c15c8c2a73d9ce
[ "MIT" ]
null
null
null
from .base import Interface class SR830(Interface): """SRS lock-in""" def __init__(self, interface="gpib0"): super().__init__(interface) self.vsens = [2e-9, 5e-9, 10e-9, 2e-8, 5e-8, 10e-8, 2e-7, 5e-7, 10e-7,\ 2e-6, 5e-6, 10e-6, 2e-5, 5e-5, 10e-5, 2e-4, 5e-4, 10e-4,\ 2e-3...
29.653846
79
0.525724
4a0cab5869563f2d42b64d60c002d206d686b726
766
py
Python
project/globalnews/news/models.py
sam-littlefield/GlobalNews
217d0c030a1b028da99117600d48751300a81e15
[ "MIT" ]
null
null
null
project/globalnews/news/models.py
sam-littlefield/GlobalNews
217d0c030a1b028da99117600d48751300a81e15
[ "MIT" ]
null
null
null
project/globalnews/news/models.py
sam-littlefield/GlobalNews
217d0c030a1b028da99117600d48751300a81e15
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models from django.contrib.auth.models import User from django.utils.timezone import now class Article(models.Model): sumbitter = models.ForeignKey(User,on_delete=models.CASCADE) submitted_date = models.DateTimeField(default...
33.304348
70
0.738903
4a0cac1bd732d208609f04bf7af09c982965fa8b
5,485
py
Python
noxfile.py
PaoloTo/renault-api
66976aa23dee1b4790363a610193b990acd0a345
[ "MIT" ]
null
null
null
noxfile.py
PaoloTo/renault-api
66976aa23dee1b4790363a610193b990acd0a345
[ "MIT" ]
null
null
null
noxfile.py
PaoloTo/renault-api
66976aa23dee1b4790363a610193b990acd0a345
[ "MIT" ]
null
null
null
"""Nox sessions.""" import shutil import sys from pathlib import Path from textwrap import dedent import nox import nox_poetry.patch from nox.sessions import Session package = "renault_api" python_versions = ["3.9", "3.8", "3.7"] nox.options.sessions = ( "pre-commit", "safety", "mypy", "tests", "...
29.021164
88
0.618778
4a0cac5f3095a1a455c007ea83a16cec1848333f
131
py
Python
twitchBot/bot/cogs/__init__.py
IPLSplatoon/Radia-Productions
e7d27f3dd686557cee95340be56cee81a0d02c2f
[ "MIT" ]
null
null
null
twitchBot/bot/cogs/__init__.py
IPLSplatoon/Radia-Productions
e7d27f3dd686557cee95340be56cee81a0d02c2f
[ "MIT" ]
1
2021-07-17T11:40:46.000Z
2021-07-17T13:58:24.000Z
twitchBot/bot/cogs/__init__.py
IPLSplatoon/Radia-Productions
e7d27f3dd686557cee95340be56cee81a0d02c2f
[ "MIT" ]
1
2021-05-19T21:26:17.000Z
2021-05-19T21:26:17.000Z
from .commentators import CommentatorsCog from .information import InformationCog names = [ "commentators", "information" ]
16.375
41
0.763359
4a0cac9c73e3210e6fe321e3a2b4869ca8970f0c
1,022
py
Python
samples/lipanampesa.py
CleoMugs/mpesa
970b8fecf9b1b963495587c671328261c356acaf
[ "MIT" ]
null
null
null
samples/lipanampesa.py
CleoMugs/mpesa
970b8fecf9b1b963495587c671328261c356acaf
[ "MIT" ]
null
null
null
samples/lipanampesa.py
CleoMugs/mpesa
970b8fecf9b1b963495587c671328261c356acaf
[ "MIT" ]
null
null
null
import requests from requests.auth import HTTPBasicAuth from access_token import generate_access_token from encode import generate_password from utils import get_timestamp import keys def lipa_na_mpesa(): formatted_time = get_timestamp() decoded_password = generate_password(formatted_time) access_token = gene...
27.621622
76
0.760274
4a0cad8dc0052f9f6466d36ee82a21a76aef1ccc
1,174
py
Python
examples/grad_descent.py
seba-1511/randopt
74cefcc734c6a38418151025b0a4d8b6cb41eb14
[ "Apache-2.0" ]
115
2016-11-21T06:44:19.000Z
2022-01-21T22:21:27.000Z
examples/grad_descent.py
seba-1511/randopt
74cefcc734c6a38418151025b0a4d8b6cb41eb14
[ "Apache-2.0" ]
26
2016-11-21T07:31:37.000Z
2019-01-16T14:13:23.000Z
examples/grad_descent.py
seba-1511/randopt
74cefcc734c6a38418151025b0a4d8b6cb41eb14
[ "Apache-2.0" ]
9
2018-04-02T19:54:20.000Z
2020-02-11T09:12:41.000Z
#!/usr/bin/env python import randopt as ro def loss(x): return x**2 + 2*x - 3 def dloss(x): return 2*x + 2 def grad_descent(f, df, init, num_epochs, lr): params = init convergence = [] for epoch in range(num_epochs): params = params - (lr * df(params)) convergence.append(f(par...
25.521739
92
0.572402
4a0caf4f27ac19245b4a216d2a6e8579b6b80c0d
1,982
py
Python
conf.py
phuang1024/tutorials
092f999431aa6ba5148c2a2f95ea26e913f3f7bb
[ "CC0-1.0" ]
1
2021-11-23T19:58:37.000Z
2021-11-23T19:58:37.000Z
conf.py
phuang1024/tutorials
092f999431aa6ba5148c2a2f95ea26e913f3f7bb
[ "CC0-1.0" ]
null
null
null
conf.py
phuang1024/tutorials
092f999431aa6ba5148c2a2f95ea26e913f3f7bb
[ "CC0-1.0" ]
null
null
null
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
34.77193
79
0.668012
4a0cb0d97b69ec6757f5bdb7495cae00c014408e
17,484
py
Python
msgraph-cli-extensions/v1_0/identitydirmgt_v1_0/azext_identitydirmgt_v1_0/vendored_sdks/identitydirmgt/operations/_directory_roles_directory_role_operations.py
thewahome/msgraph-cli
33127d9efa23a0e5f5303c93242fbdbb73348671
[ "MIT" ]
null
null
null
msgraph-cli-extensions/v1_0/identitydirmgt_v1_0/azext_identitydirmgt_v1_0/vendored_sdks/identitydirmgt/operations/_directory_roles_directory_role_operations.py
thewahome/msgraph-cli
33127d9efa23a0e5f5303c93242fbdbb73348671
[ "MIT" ]
22
2022-03-29T22:54:37.000Z
2022-03-29T22:55:27.000Z
msgraph-cli-extensions/v1_0/identitydirmgt_v1_0/azext_identitydirmgt_v1_0/vendored_sdks/identitydirmgt/operations/_directory_roles_directory_role_operations.py
thewahome/msgraph-cli
33127d9efa23a0e5f5303c93242fbdbb73348671
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
46.748663
133
0.655857
4a0cb18d69e023ff658e8c0808e1c0ddeb395755
1,408
py
Python
plotly/validators/heatmap/colorbar/_tickfont.py
fcollonval/plotly.py
5c7f100db1af8c82bb740a38ef684955a8ed6d0e
[ "MIT" ]
2
2020-03-24T11:41:14.000Z
2021-01-14T07:59:43.000Z
plotly/validators/heatmap/colorbar/_tickfont.py
fcollonval/plotly.py
5c7f100db1af8c82bb740a38ef684955a8ed6d0e
[ "MIT" ]
null
null
null
plotly/validators/heatmap/colorbar/_tickfont.py
fcollonval/plotly.py
5c7f100db1af8c82bb740a38ef684955a8ed6d0e
[ "MIT" ]
4
2019-06-03T14:49:12.000Z
2022-01-06T01:05:12.000Z
import _plotly_utils.basevalidators class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): def __init__( self, plotly_name='tickfont', parent_name='heatmap.colorbar', **kwargs ): super(TickfontValidator, self).__init__( plotly_name=plotly_name, parent...
38.054054
78
0.569602
4a0cb1ce3eadfbfc3895c39d26a96fd19d20f0f6
6,990
py
Python
tools/build/v2/tools/package.py
jmuskaan72/Boost
047e36c01841a8cd6a5c74d4e3034da46e327bc1
[ "BSL-1.0" ]
198
2015-01-13T05:47:18.000Z
2022-03-09T04:46:46.000Z
libs/boost/tools/build/src/tools/package.py
flingone/frameworks_base_cmds_remoted
4509d9f0468137ed7fd8d100179160d167e7d943
[ "Apache-2.0" ]
9
2015-01-28T16:33:19.000Z
2020-04-12T23:03:28.000Z
libs/boost/tools/build/src/tools/package.py
flingone/frameworks_base_cmds_remoted
4509d9f0468137ed7fd8d100179160d167e7d943
[ "Apache-2.0" ]
139
2015-01-15T20:09:31.000Z
2022-01-31T15:21:16.000Z
# Status: ported # Base revision: 64488 # # Copyright (c) 2005, 2010 Vladimir Prus. # Copyright 2006 Rene Rivera. # # Use, modification and distribution is subject to the Boost Software # License Version 1.0. (See accompanying file LICENSE_1_0.txt or # http://www.boost.org/LICENSE_1_0.txt) # Provides mechani...
41.360947
118
0.646066
4a0cb1cfb325d70f415e502d5873a1b89f13a3ce
26,797
py
Python
tensorflow_text/python/ops/pointer_ops.py
unclepeddy/text
71e07fd898b8ceae26fd765b251d615ab06b2306
[ "Apache-2.0" ]
null
null
null
tensorflow_text/python/ops/pointer_ops.py
unclepeddy/text
71e07fd898b8ceae26fd765b251d615ab06b2306
[ "Apache-2.0" ]
null
null
null
tensorflow_text/python/ops/pointer_ops.py
unclepeddy/text
71e07fd898b8ceae26fd765b251d615ab06b2306
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2019 TF.Text 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 applicable law or ag...
44.811037
80
0.667314
4a0cb208484377c0c963386c28c7c984bb200852
513
py
Python
server/djangoapp/admin.py
inzi95/agfzb-CloudAppDevelopment_Capstone
615f1021258f232c1cd4f1d28c571b77a401e32e
[ "Apache-2.0" ]
null
null
null
server/djangoapp/admin.py
inzi95/agfzb-CloudAppDevelopment_Capstone
615f1021258f232c1cd4f1d28c571b77a401e32e
[ "Apache-2.0" ]
null
null
null
server/djangoapp/admin.py
inzi95/agfzb-CloudAppDevelopment_Capstone
615f1021258f232c1cd4f1d28c571b77a401e32e
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin from .models import CarMake, CarModel # Register your models here. # CarModelInline class class CarModelInline(admin.StackedInline): model = CarModel extra = 2 # CarModelAdmin class class CarModelAdmin(admin.ModelAdmin): list_filter = ['dealership_id'] model = CarM...
19
44
0.758285
4a0cb283699b1fade50ac2d6677e0e2385a92861
5,050
py
Python
py/abd/abdcmd_arcyd.py
aevri/phabricator-tools
ef7501bcaee83e98d168d16f64b3f73e744d3336
[ "Apache-2.0" ]
150
2015-01-21T15:52:22.000Z
2021-11-09T05:53:36.000Z
py/abd/abdcmd_arcyd.py
aevri/phabricator-tools
ef7501bcaee83e98d168d16f64b3f73e744d3336
[ "Apache-2.0" ]
72
2015-05-08T04:33:08.000Z
2017-01-27T09:37:36.000Z
py/abd/abdcmd_arcyd.py
aevri/phabricator-tools
ef7501bcaee83e98d168d16f64b3f73e744d3336
[ "Apache-2.0" ]
38
2015-01-30T10:33:47.000Z
2021-11-09T05:53:30.000Z
"""Arcyd - daemon to watch git repos, create and land reviews automatically. Intended to make it easy for large teams to start using Differential without individual contributors needing to install and configure Arcanist. Individual contributors are still free to use Arcanist if they wish, Arcyd provides a zero-config...
33.443709
79
0.665941
4a0cb2cb804b15dea33615a20817b48051bd9972
159
py
Python
tests/model_control/detailed/transf_BoxCox/model_control_one_enabled_BoxCox_Lag1Trend_Seasonal_Hour_LSTM.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
null
null
null
tests/model_control/detailed/transf_BoxCox/model_control_one_enabled_BoxCox_Lag1Trend_Seasonal_Hour_LSTM.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
1
2019-11-30T23:39:38.000Z
2019-12-01T04:34:35.000Z
tests/model_control/detailed/transf_BoxCox/model_control_one_enabled_BoxCox_Lag1Trend_Seasonal_Hour_LSTM.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
null
null
null
import pyaf.tests.model_control.test_ozone_custom_models_enabled as testmod testmod.build_model( ['BoxCox'] , ['Lag1Trend'] , ['Seasonal_Hour'] , ['LSTM'] );
39.75
81
0.748428
4a0cb46e582566edae9f8806328df8ab47b4a519
14,599
py
Python
nnunet/network_architecture/custom_modules/conv_block_for_dense_residual_decoder.py
hasukmin12/nnUNet_MDD_UNet_with_Semi_Supervised
58c5665a5d89d1ad77038e5d6420be76fadab136
[ "Apache-2.0" ]
3
2022-03-07T07:59:14.000Z
2022-03-17T08:50:42.000Z
nnunet/network_architecture/custom_modules/conv_block_for_dense_residual_decoder.py
hasukmin12/nnUNet_MDD_UNet_with_Semi_Supervised
58c5665a5d89d1ad77038e5d6420be76fadab136
[ "Apache-2.0" ]
1
2022-03-07T13:21:42.000Z
2022-03-07T13:21:42.000Z
nnunet/network_architecture/custom_modules/conv_block_for_dense_residual_decoder.py
hasukmin12/nnUNet_MDD_UNet_with_Semi_Supervised
58c5665a5d89d1ad77038e5d6420be76fadab136
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany # # 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://w...
32.156388
143
0.601069
4a0cb488d7b2f2a70ead84a2ff831d5c1c232921
144
py
Python
mayiutils/algorithm/algorithmset/__init__.py
mayi140611/mayiutils
5340d7bd4590e2a41afd5d02ffc569745d67c866
[ "Apache-2.0" ]
null
null
null
mayiutils/algorithm/algorithmset/__init__.py
mayi140611/mayiutils
5340d7bd4590e2a41afd5d02ffc569745d67c866
[ "Apache-2.0" ]
null
null
null
mayiutils/algorithm/algorithmset/__init__.py
mayi140611/mayiutils
5340d7bd4590e2a41afd5d02ffc569745d67c866
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # encoding: utf-8 """ @author: Ian @contact:yongguiluo@hotmail.com @file: __init__.py.py @time: 2019/3/5 15:19 牛逼的算法汇总 """
11.076923
31
0.673611
4a0cb4907ac2b9fc8982109a0bbbd790a3cbab25
3,530
py
Python
vb_simulation_pkgs/pkg_vb_sim/scripts/node_merge_tf_tress.py
1arshan/Eyantra_Virgi-bot
30ebe99fec6a0d4767fe94468b21bc00091bc527
[ "MIT" ]
1
2021-09-09T04:41:28.000Z
2021-09-09T04:41:28.000Z
vb_simulation_pkgs/pkg_vb_sim/scripts/node_merge_tf_tress.py
1arshan/Eyantra_Virgi-bot
30ebe99fec6a0d4767fe94468b21bc00091bc527
[ "MIT" ]
null
null
null
vb_simulation_pkgs/pkg_vb_sim/scripts/node_merge_tf_tress.py
1arshan/Eyantra_Virgi-bot
30ebe99fec6a0d4767fe94468b21bc00091bc527
[ "MIT" ]
null
null
null
#!/usr/bin/env python2.7 import rospy # Because of transformations import tf_conversions import tf2_ros import geometry_msgs.msg import turtlesim.msg def handle_turtle_pose(msg, turtlename): br = tf2_ros.TransformBroadcaster() t = geometry_msgs.msg.TransformStamped() if __name__ == '__main__': rosp...
31.238938
75
0.620397
4a0cb4d5c533fbe6bb88d248380cc65cd5e8d49f
2,306
py
Python
04-network/utils.py
rionbr/meionav
3e0cca6bea206023ea3a3b322c5bfdd2081e9842
[ "MIT" ]
1
2019-08-15T10:50:38.000Z
2019-08-15T10:50:38.000Z
04-network/utils.py
rionbr/spermnet
3e0cca6bea206023ea3a3b322c5bfdd2081e9842
[ "MIT" ]
null
null
null
04-network/utils.py
rionbr/spermnet
3e0cca6bea206023ea3a3b322c5bfdd2081e9842
[ "MIT" ]
null
null
null
import os import gzip from io import StringIO import pandas as pd import networkx as nx from collections import defaultdict, Counter def transpose_variable_across_layers(G, variable, combination='sum'): """ Method to transpose results in one layer to another. Note duplicate results are either summed or set to maj...
37.803279
124
0.658283
4a0cb5b22453e773504a7a994ecc2a1f0e406554
4,744
py
Python
CORDEX_netcdf2csv.py
lorincmeszaros/stochastic-climate-generator
5d5d6af2cbcca1eb5caba50f7e6188609aa32c31
[ "MIT" ]
null
null
null
CORDEX_netcdf2csv.py
lorincmeszaros/stochastic-climate-generator
5d5d6af2cbcca1eb5caba50f7e6188609aa32c31
[ "MIT" ]
null
null
null
CORDEX_netcdf2csv.py
lorincmeszaros/stochastic-climate-generator
5d5d6af2cbcca1eb5caba50f7e6188609aa32c31
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Read and extracting data in NetCDF 2D array Grids Files For product: Cordex EUR-11 Note: Check information of nc files, because it relates to #Root_name Items need to be addressed: 1 - path_folder, data_name 2 - site_name, site_name_ful, lati, loni in Lookup_WZsite.xlsx ...
38.258065
116
0.537099
4a0cb6832a8fe0d070e7d4d2f1ccc12cc43e538a
2,510
py
Python
conceptnet5/vectors/miniaturize.py
MattCurryCom/conceptnet5
a16d94e635aee3d35a22aa04fcad7bb87ce927d8
[ "Apache-2.0" ]
1
2018-11-27T17:00:57.000Z
2018-11-27T17:00:57.000Z
conceptnet5/vectors/miniaturize.py
MattCurryCom/conceptnet5
a16d94e635aee3d35a22aa04fcad7bb87ce927d8
[ "Apache-2.0" ]
null
null
null
conceptnet5/vectors/miniaturize.py
MattCurryCom/conceptnet5
a16d94e635aee3d35a22aa04fcad7bb87ce927d8
[ "Apache-2.0" ]
null
null
null
import wordfreq import numpy as np import pandas as pd from conceptnet5.uri import split_uri from conceptnet5.languages import CORE_LANGUAGES from .debias import de_bias_frame def term_freq(term): """ Get an estimate of the frequency of this term from the 'wordfreq' library. When miniaturizing, we use th...
35.857143
78
0.684462
4a0cb93fd97a8e38ed67fbfc91bbfe48189978a3
576
py
Python
openprescribing/frontend/migrations/0022_auto_20170324_1458.py
annapowellsmith/openpresc
cfa9fb07d6fc2ee304159c04fcc132cefcf78745
[ "MIT" ]
91
2015-10-14T09:10:32.000Z
2022-03-10T22:09:21.000Z
openprescribing/frontend/migrations/0022_auto_20170324_1458.py
annapowellsmith/openpresc
cfa9fb07d6fc2ee304159c04fcc132cefcf78745
[ "MIT" ]
1,828
2015-12-04T14:52:27.000Z
2022-03-31T08:51:14.000Z
openprescribing/frontend/migrations/0022_auto_20170324_1458.py
HDRUK/openprescribing
510e8c07e841cd42284c109774d1730b6463f376
[ "MIT" ]
27
2015-12-03T18:26:56.000Z
2021-01-09T21:58:53.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.1 on 2017-03-24 14:58 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('frontend', '0021_chemical_is_current'), ] operations = [ migrations.AddField( model_name='product', ...
22.153846
52
0.574653
4a0cba44ec4d2ed792304c5eb99448014f2f9fea
6,752
py
Python
indicators/urls.py
mikael19/activity
3932de42d9b423bff5739f7e06520035df213fc6
[ "Apache-2.0" ]
null
null
null
indicators/urls.py
mikael19/activity
3932de42d9b423bff5739f7e06520035df213fc6
[ "Apache-2.0" ]
null
null
null
indicators/urls.py
mikael19/activity
3932de42d9b423bff5739f7e06520035df213fc6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- from django.urls import path, re_path from .views import ( IndicatorList, add_indicator, indicator_create, IndicatorCreate, IndicatorUpdate, IndicatorDelete, PeriodicTargetDeleteView, PeriodicTargetView, CollectedDataReportData, CollectedDataCreate, CollectedDataD...
42.465409
141
0.682168
4a0cbab0430ab666d0bf06195d243c679991d2a7
761
py
Python
advanced/image_processing/examples/plot_synthetic_data.py
junghun73/Learning
8b5a295c42f142a3b2f5fa13fc75434a2ea9235a
[ "CC-BY-4.0" ]
419
2016-03-05T08:50:48.000Z
2022-03-24T15:16:46.000Z
advanced/image_processing/examples/plot_synthetic_data.py
techeye220/scipy-lecture-notes-zh-CN
cc87204fcc4bd2f4702f7c29c83cb8ed5c94b7d6
[ "CC-BY-4.0" ]
5
2016-05-21T14:21:12.000Z
2017-10-06T11:09:48.000Z
advanced/image_processing/examples/plot_synthetic_data.py
techeye220/scipy-lecture-notes-zh-CN
cc87204fcc4bd2f4702f7c29c83cb8ed5c94b7d6
[ "CC-BY-4.0" ]
233
2016-02-13T09:22:57.000Z
2021-11-11T17:58:44.000Z
""" Synthetic data =============== The example generates and displays simple synthetic data. """ import numpy as np from scipy import ndimage import matplotlib.pyplot as plt np.random.seed(1) n = 10 l = 256 im = np.zeros((l, l)) points = l*np.random.random((2, n**2)) im[(points[0]).astype(np.int), (points[1]).astype...
20.026316
79
0.68594
4a0cbac0c684041aa7380ff3fd608e4c5aded66d
11,014
py
Python
Audio/Adaptive_Voice_Conversion/model.py
LiuHaolan/models
1639b3039237c3997c51ff87f0b6113bb2e8d236
[ "Apache-2.0" ]
43
2021-06-03T09:07:08.000Z
2022-03-31T15:21:48.000Z
Audio/Adaptive_Voice_Conversion/model.py
LiuHaolan/models
1639b3039237c3997c51ff87f0b6113bb2e8d236
[ "Apache-2.0" ]
64
2021-05-31T10:34:06.000Z
2022-01-17T03:44:58.000Z
Audio/Adaptive_Voice_Conversion/model.py
LiuHaolan/models
1639b3039237c3997c51ff87f0b6113bb2e8d236
[ "Apache-2.0" ]
37
2021-07-04T03:13:18.000Z
2022-03-25T07:30:47.000Z
import oneflow as flow import oneflow.nn as nn import oneflow.nn.functional as F def pad_layer(inp, layer): kernel_size = layer.kernel_size[0] if kernel_size % 2 == 0: pad = (kernel_size // 2, kernel_size // 2 - 1, 0, 0) else: pad = (kernel_size // 2, kernel_size // 2, 0, 0) pad_fn = ...
32.017442
88
0.571182
4a0cbcdf3d6fa43bd3f6574f0b2e012204bae6b1
22,729
py
Python
pcdet/datasets/waymo/waymo_utils.py
xiangruhuang/OpenPCDet
d82d9594a0629ffed0c457aedc304e0805e93221
[ "Apache-2.0" ]
null
null
null
pcdet/datasets/waymo/waymo_utils.py
xiangruhuang/OpenPCDet
d82d9594a0629ffed0c457aedc304e0805e93221
[ "Apache-2.0" ]
null
null
null
pcdet/datasets/waymo/waymo_utils.py
xiangruhuang/OpenPCDet
d82d9594a0629ffed0c457aedc304e0805e93221
[ "Apache-2.0" ]
null
null
null
# OpenPCDet PyTorch Dataloader and Evaluation Tools for Waymo Open Dataset # Reference https://github.com/open-mmlab/OpenPCDet # Written by Shaoshuai Shi, Chaoxu Guo # All Rights Reserved 2019-2020. import os import pickle import numpy as np import torch from ...utils import common_utils import tensorflow as tf from ...
41.704587
116
0.602006
4a0cbcfbb1426966d107a4206383a1494f885afb
18,798
py
Python
samples/openapi3/client/petstore/python/petstore_api/models/format_test.py
therockstorm/openapi-generator
01d0b5d4780ebe2d6025e2b443ec136c6ce16c45
[ "Apache-2.0" ]
3
2021-04-09T01:04:32.000Z
2022-02-02T11:02:22.000Z
samples/openapi3/client/petstore/python/petstore_api/models/format_test.py
therockstorm/openapi-generator
01d0b5d4780ebe2d6025e2b443ec136c6ce16c45
[ "Apache-2.0" ]
3
2021-05-11T23:55:26.000Z
2022-02-27T11:17:21.000Z
samples/openapi3/client/petstore/python/petstore_api/models/format_test.py
therockstorm/openapi-generator
01d0b5d4780ebe2d6025e2b443ec136c6ce16c45
[ "Apache-2.0" ]
4
2020-12-07T02:43:58.000Z
2020-12-07T10:23:39.000Z
# coding: utf-8 """ OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech """ ...
32.863636
314
0.603468
4a0cbd057adf70501146be9be6a7cb3b5901b311
2,331
py
Python
src/datamgr/datamanager/lifecycle/metrics/sort_metric.py
Chromico/bk-base
be822d9bbee544a958bed4831348185a75604791
[ "MIT" ]
84
2021-06-30T06:20:23.000Z
2022-03-22T03:05:49.000Z
src/datamgr/datamanager/lifecycle/metrics/sort_metric.py
Chromico/bk-base
be822d9bbee544a958bed4831348185a75604791
[ "MIT" ]
7
2021-06-30T06:21:16.000Z
2022-03-29T07:36:13.000Z
src/datamgr/datamanager/lifecycle/metrics/sort_metric.py
Chromico/bk-base
be822d9bbee544a958bed4831348185a75604791
[ "MIT" ]
40
2021-06-30T06:21:26.000Z
2022-03-29T12:42:26.000Z
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making BK-BASE 蓝鲸基础平台 available. Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. BK-BASE 蓝鲸基础平台 is licensed under the MIT License. License for BK-BASE 蓝鲸基础平台: ---------------------------------------------...
49.595745
111
0.716002
4a0cbdc43d5fc212d5f89ac52a4ee85d0f4b5a16
2,662
py
Python
model_compiler/src/model_compiler/compilers/paddle_model_file_to_onnx_model.py
yuanliya/Adlik
602074b44064002fc0bb054e17a989a5bcf22e92
[ "Apache-2.0" ]
548
2019-09-27T07:37:47.000Z
2022-03-31T05:12:38.000Z
model_compiler/src/model_compiler/compilers/paddle_model_file_to_onnx_model.py
yuanliya/Adlik
602074b44064002fc0bb054e17a989a5bcf22e92
[ "Apache-2.0" ]
533
2019-09-27T06:30:41.000Z
2022-03-29T07:34:08.000Z
model_compiler/src/model_compiler/compilers/paddle_model_file_to_onnx_model.py
yuanliya/Adlik
602074b44064002fc0bb054e17a989a5bcf22e92
[ "Apache-2.0" ]
54
2019-10-10T02:19:31.000Z
2021-12-28T03:37:45.000Z
# Copyright 2019 ZTE corporation. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 from typing import Any, Mapping, NamedTuple, Optional, Sequence from tempfile import NamedTemporaryFile import onnx import onnx.utils from . import repository from .. import utilities from ..models.data_format import DataForm...
46.701754
119
0.684823
4a0cbe3b0cbfe412c0dc69911a57b4921a86aee6
6,865
py
Python
homeassistant/components/overkiz/cover_entities/generic_cover.py
mtarjoianu/core
44e9146463ac505eb3d1c0651ad126cb25c28a54
[ "Apache-2.0" ]
null
null
null
homeassistant/components/overkiz/cover_entities/generic_cover.py
mtarjoianu/core
44e9146463ac505eb3d1c0651ad126cb25c28a54
[ "Apache-2.0" ]
12
2021-12-16T06:18:49.000Z
2022-03-31T06:25:54.000Z
homeassistant/components/overkiz/cover_entities/generic_cover.py
mtarjoianu/core
44e9146463ac505eb3d1c0651ad126cb25c28a54
[ "Apache-2.0" ]
1
2021-12-10T10:33:28.000Z
2021-12-10T10:33:28.000Z
"""Base class for Overkiz covers, shutters, awnings, etc.""" from __future__ import annotations from collections.abc import Mapping from typing import Any, cast from pyoverkiz.enums import OverkizCommand, OverkizCommandParam, OverkizState from homeassistant.components.cover import ( ATTR_TILT_POSITION, Cover...
36.131579
121
0.682739
4a0cbf13218ef7ca5d7c98eab9cb765802096efc
20,686
py
Python
nengo/dists.py
HugoChateauLaurent/nengo
749893186ee09aa6c621a40da3ffd3878114db9c
[ "BSD-2-Clause" ]
null
null
null
nengo/dists.py
HugoChateauLaurent/nengo
749893186ee09aa6c621a40da3ffd3878114db9c
[ "BSD-2-Clause" ]
null
null
null
nengo/dists.py
HugoChateauLaurent/nengo
749893186ee09aa6c621a40da3ffd3878114db9c
[ "BSD-2-Clause" ]
null
null
null
from __future__ import absolute_import import warnings import numpy as np from nengo.exceptions import ValidationError from nengo.params import (BoolParam, IntParam, NdarrayParam, NumberParam, Parameter, Unconfigurable, FrozenObject) import nengo.utils.numpy as npext class Distribution(Fr...
33.745514
79
0.598617
4a0cbf89cfe1776aea1b37aab4b9989990d3cef0
13,533
py
Python
src/fever_doc_retri/fever_retrieval_v0.py
ethanjperez/semanticRetrievalMRS
765e00d6e7693e0eaba20ef1407fad0be4a7a92b
[ "MIT" ]
61
2019-09-19T03:04:32.000Z
2022-03-08T03:59:28.000Z
src/fever_doc_retri/fever_retrieval_v0.py
ethanjperez/semanticRetrievalMRS
765e00d6e7693e0eaba20ef1407fad0be4a7a92b
[ "MIT" ]
13
2019-09-19T12:11:01.000Z
2020-12-28T17:51:43.000Z
src/fever_doc_retri/fever_retrieval_v0.py
ethanjperez/semanticRetrievalMRS
765e00d6e7693e0eaba20ef1407fad0be4a7a92b
[ "MIT" ]
10
2019-09-20T05:07:28.000Z
2022-01-12T08:12:08.000Z
import collections from flashtext import KeywordProcessor import wiki_util from build_rindex.build_rvindex import load_from_file from build_rindex.rvindex_scoring import get_query_ngrams from fever_utils.fever_db import reverse_convert_brc from hotpot_doc_retri.hotpot_doc_retri_v0 import filter_word, filter_document_...
42.290625
130
0.672283
4a0cc048d1d689fd7b9e4379cb61c4c66003011e
7,650
py
Python
tools/generate-vbinary-test.py
shi510/XNNPACK
ea2088b668b760cdc5c67df7d2854320ee34aeb8
[ "BSD-3-Clause" ]
null
null
null
tools/generate-vbinary-test.py
shi510/XNNPACK
ea2088b668b760cdc5c67df7d2854320ee34aeb8
[ "BSD-3-Clause" ]
null
null
null
tools/generate-vbinary-test.py
shi510/XNNPACK
ea2088b668b760cdc5c67df7d2854320ee34aeb8
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # Copyright 2019 Google LLC # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. import argparse import codecs import math import os import re import sys import yaml sys.path.insert(0, os.path.dirname(os.path.abspath(...
29.198473
173
0.625621
4a0cc0f32258e60fa34371d5b63dac92ac48653f
892
py
Python
leetcode/0033_Search_in_Rotated_Sorted_Array/result.py
theck17/notes
f32f0f4b8f821b1ed38d173ef0913efddd094b91
[ "MIT" ]
null
null
null
leetcode/0033_Search_in_Rotated_Sorted_Array/result.py
theck17/notes
f32f0f4b8f821b1ed38d173ef0913efddd094b91
[ "MIT" ]
null
null
null
leetcode/0033_Search_in_Rotated_Sorted_Array/result.py
theck17/notes
f32f0f4b8f821b1ed38d173ef0913efddd094b91
[ "MIT" ]
null
null
null
# !/usr/bin/env python3 # Author: C.K # Email: theck17@163.com # DateTime:2021-03-21 17:53:33 # Description: import os improt sys class Solution: def search(self, nums: List[int], target: int) -> int: left = 0 right = len(nums) - 1 while left <= right: mid =...
21.756098
64
0.436099
4a0cc1befe04434a1f5cf5e46fb6ce19e0e0026d
21,293
py
Python
datawrapper/__main__.py
elanals/Datawrapper
8dc3920944e2bb4901ab6ea3c0e01d93b2db1adb
[ "MIT" ]
null
null
null
datawrapper/__main__.py
elanals/Datawrapper
8dc3920944e2bb4901ab6ea3c0e01d93b2db1adb
[ "MIT" ]
null
null
null
datawrapper/__main__.py
elanals/Datawrapper
8dc3920944e2bb4901ab6ea3c0e01d93b2db1adb
[ "MIT" ]
null
null
null
"""Access Datawrapper's API to create, update, delete charts. Datawrapper API lets you programatically interface with your charts. It lets you create and edit charts, update your account information and many more things to come. This package is a light-weight wrapper around Datawrapper's API. Typical usa...
32.607963
148
0.554736
4a0cc1c59c199c115fa56e512499651cdeaaa900
2,997
py
Python
aws_workspace_utils.py
zulily/aws_workspace_maker
bcdd157023ee6e28016d10158f82fb02beea76b9
[ "Apache-2.0" ]
null
null
null
aws_workspace_utils.py
zulily/aws_workspace_maker
bcdd157023ee6e28016d10158f82fb02beea76b9
[ "Apache-2.0" ]
null
null
null
aws_workspace_utils.py
zulily/aws_workspace_maker
bcdd157023ee6e28016d10158f82fb02beea76b9
[ "Apache-2.0" ]
1
2021-11-05T21:17:14.000Z
2021-11-05T21:17:14.000Z
""" Helper function for all things workspaces """ import boto3 class WorkSpaceClient(): ''' A class that abstracts AWS Workspace boto client ''' def __init__(self, region): ''' Create a client to interact with WorkSpaces in a region ''' self.ws_client = boto3.client('wo...
29.97
96
0.627961
4a0cc2fc79ad6f0e637641c6a24a71bd26caa6d3
4,488
py
Python
tclCommands/TclCommandCncjob.py
JuanoVenegas/flatcam
f3b7f7205a530a553e5a7b33e264cc5e681a76e9
[ "MIT" ]
1
2021-09-11T10:59:08.000Z
2021-09-11T10:59:08.000Z
tclCommands/TclCommandCncjob.py
JuanoVenegas/flatcam
f3b7f7205a530a553e5a7b33e264cc5e681a76e9
[ "MIT" ]
null
null
null
tclCommands/TclCommandCncjob.py
JuanoVenegas/flatcam
f3b7f7205a530a553e5a7b33e264cc5e681a76e9
[ "MIT" ]
2
2020-05-17T10:51:03.000Z
2022-02-04T14:35:38.000Z
from ObjectCollection import * from tclCommands.TclCommand import TclCommandSignaled class TclCommandCncjob(TclCommandSignaled): """ Tcl shell command to Generates a CNC Job from a Geometry Object. example: set_sys units MM new open_gerber tests/gerber_files/simple1.gbr -outname m...
42.339623
118
0.615196
4a0cc377643d9a70b6e8626d4dac654abffcf1d3
3,106
py
Python
container.py
Higert/ride-sharing-simulation-01
826f7f7e8cf12f1423aa3d1bc0dc7847267ff985
[ "MIT" ]
1
2019-01-24T01:55:41.000Z
2019-01-24T01:55:41.000Z
container.py
jellycsc/Uber-ride-sharing-simulation
826f7f7e8cf12f1423aa3d1bc0dc7847267ff985
[ "MIT" ]
null
null
null
container.py
jellycsc/Uber-ride-sharing-simulation
826f7f7e8cf12f1423aa3d1bc0dc7847267ff985
[ "MIT" ]
null
null
null
class Container: """A container that holds objects. This is an abstract class. Only child classes should be instantiated. """ def add(self, item): """Add <item> to this Container. @type self: Container @type item: Object @rtype: None """ raise NotImple...
25.459016
77
0.556986
4a0cc3b38a3186ceba30aca132491f9a7fa3c1b2
1,624
py
Python
iOSIconPrep.py
NViday/PrepAppIconIOS-Android
168b1388d3129b527bae4da2e7d1a6e7754062e7
[ "MIT" ]
null
null
null
iOSIconPrep.py
NViday/PrepAppIconIOS-Android
168b1388d3129b527bae4da2e7d1a6e7754062e7
[ "MIT" ]
null
null
null
iOSIconPrep.py
NViday/PrepAppIconIOS-Android
168b1388d3129b527bae4da2e7d1a6e7754062e7
[ "MIT" ]
null
null
null
# Goal : Resize an high-resolution Image to fit iOS Icon standard # Follwoing Android Stnadard # @ 1x # @ 2x # @ 3x #!/bin/python import os import errno from resizeImage import * path = os.getcwd() print(path) def createIOSFolder(folderPath): try : os.makedirs(folderPath + "/iOS/") except FileExistE...
20.3
157
0.656404
4a0cc41f0c9a9888ca40bd0895b6ea016765174e
1,551
py
Python
gridgui/simplepanel.py
joetjo/jopLauncher
ff8496fd8416727a6f6feb5d8575d53cd9ebaeb6
[ "Apache-2.0" ]
null
null
null
gridgui/simplepanel.py
joetjo/jopLauncher
ff8496fd8416727a6f6feb5d8575d53cd9ebaeb6
[ "Apache-2.0" ]
null
null
null
gridgui/simplepanel.py
joetjo/jopLauncher
ff8496fd8416727a6f6feb5d8575d53cd9ebaeb6
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 joetjo https://github.com/joetjo/MarkdownHelper # # 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 requir...
33.717391
97
0.687299
4a0cc491438354120386609a3f1fe2db63b528ca
3,695
py
Python
examples/middleware_and_antiflood.py
setazer/aiogram
1ea76cd902cfc19986389a52adda70a8bb4555db
[ "MIT" ]
1
2020-02-27T02:46:51.000Z
2020-02-27T02:46:51.000Z
examples/middleware_and_antiflood.py
setazer/aiogram
1ea76cd902cfc19986389a52adda70a8bb4555db
[ "MIT" ]
null
null
null
examples/middleware_and_antiflood.py
setazer/aiogram
1ea76cd902cfc19986389a52adda70a8bb4555db
[ "MIT" ]
null
null
null
import asyncio from aiogram import Bot, Dispatcher, executor, types from aiogram.contrib.fsm_storage.redis import RedisStorage2 from aiogram.dispatcher import DEFAULT_RATE_LIMIT from aiogram.dispatcher.handler import CancelHandler, current_handler from aiogram.dispatcher.middlewares import BaseMiddleware from aiogram....
30.53719
117
0.660893
4a0cc4f1ac707f22d6558ca19a99fe839264f5dd
9,006
py
Python
sdk/python/pulumi_azure_native/network/v20200501/get_firewall_policy.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/network/v20200501/get_firewall_policy.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/network/v20200501/get_firewall_policy.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
37.682008
276
0.658339
4a0cc63f7869d2bfaf5d43d56eca4c64309328b1
6,452
py
Python
pygmt/__init__.py
jbusecke/pygmt
9ef6338dbb9bdd4c31dda94da6d4126852a6cd85
[ "BSD-3-Clause" ]
1
2021-11-16T01:29:59.000Z
2021-11-16T01:29:59.000Z
pygmt/__init__.py
jbusecke/pygmt
9ef6338dbb9bdd4c31dda94da6d4126852a6cd85
[ "BSD-3-Clause" ]
20
2021-04-02T14:27:45.000Z
2022-03-29T11:05:24.000Z
pygmt/__init__.py
jbusecke/pygmt
9ef6338dbb9bdd4c31dda94da6d4126852a6cd85
[ "BSD-3-Clause" ]
null
null
null
""" PyGMT is a library for processing geospatial and geophysical data and making publication quality maps and figures. It provides a Pythonic interface for the Generic Mapping Tools (GMT), a command-line program widely used in the Earth Sciences. Besides making GMT more accessible to new users, PyGMT aims to provide in...
27.810345
83
0.629727