hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
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
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
6118ab0c9ad03220b1d53b73c0792540f08313ef
34,292
py
Python
mAP/main.py
juwangvsu/yolov3.keras
4816fd25f30a420e52877657929aa1505e9fa8c3
[ "MIT" ]
null
null
null
mAP/main.py
juwangvsu/yolov3.keras
4816fd25f30a420e52877657929aa1505e9fa8c3
[ "MIT" ]
null
null
null
mAP/main.py
juwangvsu/yolov3.keras
4816fd25f30a420e52877657929aa1505e9fa8c3
[ "MIT" ]
null
null
null
import glob import json import os import shutil import operator import sys import argparse import math import numpy as np import matplotlib.pyplot as plt MINOVERLAP = 0.5 # default value (defined in the PASCAL VOC2012 challenge) parser = argparse.ArgumentParser() parser.add_argument('-na', '--no-animation', help="no...
38.704289
135
0.582702
eb2d0b19fc6ea15542127b22f6bef1f240b95aac
5,778
py
Python
tests/test_download.py
TimurPlusPlus/nexus3-cli
5c4dc4393ccdc07ad3769e8bb44f3fb20857ffa8
[ "MIT" ]
null
null
null
tests/test_download.py
TimurPlusPlus/nexus3-cli
5c4dc4393ccdc07ad3769e8bb44f3fb20857ffa8
[ "MIT" ]
null
null
null
tests/test_download.py
TimurPlusPlus/nexus3-cli
5c4dc4393ccdc07ad3769e8bb44f3fb20857ffa8
[ "MIT" ]
null
null
null
import itertools import os import pytest from faker import Faker @pytest.mark.parametrize('flatten, remote, destination, x_local_path', [ # no rename (file to dir) (False, 'file', '.', '_TMP_file'), (False, 'file', './', '_TMP_file'), (False, 'file', '..', '_TMP_../file...
39.575342
79
0.573728
894c34478352982699e4b7370f60d96c9eb14199
2,352
py
Python
satchmo/accounts/urls.py
sankroh/satchmo
e48df0c2a4be4ce14785d0a5d6dd1e516c57a838
[ "BSD-3-Clause" ]
1
2016-05-09T12:21:04.000Z
2016-05-09T12:21:04.000Z
satchmo/accounts/urls.py
sankroh/satchmo
e48df0c2a4be4ce14785d0a5d6dd1e516c57a838
[ "BSD-3-Clause" ]
null
null
null
satchmo/accounts/urls.py
sankroh/satchmo
e48df0c2a4be4ce14785d0a5d6dd1e516c57a838
[ "BSD-3-Clause" ]
null
null
null
""" URLConf for Django user registration. Recommended usage is to use a call to ``include()`` in your project's root URLConf to include this URLConf for any URL beginning with '/accounts/'. """ from django.conf.urls.defaults import * from satchmo.configuration import config_value # extending the urls in contacts fro...
45.230769
142
0.713435
6dcf2a2bb851681d3cab154a8dc1e7fabd12fc60
1,993
py
Python
models/BrowserModel.py
lunarca/fngrpt
11b06456d73502d3ad178520742848c27f074160
[ "Apache-2.0" ]
null
null
null
models/BrowserModel.py
lunarca/fngrpt
11b06456d73502d3ad178520742848c27f074160
[ "Apache-2.0" ]
null
null
null
models/BrowserModel.py
lunarca/fngrpt
11b06456d73502d3ad178520742848c27f074160
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from sqlalchemy import Column, ForeignKey, Integer from sqlalchemy.types import String from sqlalchemy.orm import relationship, backref from models import dbsession from models.BaseModels import DatabaseObject, generate_uuid class Browser(DatabaseObject): uuid = Column(String(32), unique...
23.447059
78
0.649774
8b44825bcb19b5ef9e17e4c345010b0c709cfe2d
1,577
py
Python
server/accounts/views.py
paulu/opensurfaces
7f3e987560faa62cd37f821760683ccd1e053c7c
[ "MIT" ]
137
2015-02-19T00:00:42.000Z
2022-03-31T03:56:01.000Z
server/accounts/views.py
paulu/opensurfaces
7f3e987560faa62cd37f821760683ccd1e053c7c
[ "MIT" ]
20
2015-07-28T23:39:58.000Z
2020-05-19T11:40:55.000Z
server/accounts/views.py
paulu/opensurfaces
7f3e987560faa62cd37f821760683ccd1e053c7c
[ "MIT" ]
49
2015-02-09T15:21:46.000Z
2021-12-15T14:22:33.000Z
from django.conf import settings from django.contrib.admin.views.decorators import staff_member_required from django.shortcuts import render from django.views.generic.list import ListView from django.views.generic.detail import DetailView import account.views from accounts.models import UserProfile from accounts.form...
27.189655
79
0.755866
2fcf482b5314a8acc4adecea4bfdfb58683003fd
5,293
py
Python
rubric_sampling/experiments/rubric_utils/load_params.py
YangAzure/rubric-sampling-public
24e8c6bc154633566f93a20661c67484029c3591
[ "MIT" ]
20
2019-01-29T03:21:40.000Z
2022-03-04T08:52:24.000Z
rubric_sampling/experiments/rubric_utils/load_params.py
YangAzure/rubric-sampling-public
24e8c6bc154633566f93a20661c67484029c3591
[ "MIT" ]
null
null
null
rubric_sampling/experiments/rubric_utils/load_params.py
YangAzure/rubric-sampling-public
24e8c6bc154633566f93a20661c67484029c3591
[ "MIT" ]
5
2019-08-31T11:49:23.000Z
2021-03-18T13:22:58.000Z
from __future__ import division from __future__ import print_function from __future__ import absolute_import import os import cPickle import numpy as np from ..utils import DATASETS_ROOT def get_label_params(problem_id): r"""Load constants for a particular problem. @param problem_id: integer ...
37.274648
90
0.683733
e784d1361d2e780b40e9ca8ce567393d59dd590d
32,091
py
Python
docs/ext/credmark_autosummary/__init__.py
credmark/credmark-model-sdk-py
5a649d41738bb9f033792328aef56f0d4b91b7fd
[ "MIT" ]
7
2022-03-10T22:28:23.000Z
2022-03-31T17:02:16.000Z
docs/ext/credmark_autosummary/__init__.py
credmark/credmark-model-sdk-py
5a649d41738bb9f033792328aef56f0d4b91b7fd
[ "MIT" ]
2
2022-03-09T04:11:13.000Z
2022-03-24T14:36:14.000Z
docs/ext/credmark_autosummary/__init__.py
credmark/credmark-model-sdk-py
5a649d41738bb9f033792328aef56f0d4b91b7fd
[ "MIT" ]
1
2022-03-29T22:42:07.000Z
2022-03-29T22:42:07.000Z
"""Extension that adds an autosummary:: directive. The directive can be used to generate function/method/attribute/etc. summary lists, similar to those output eg. by Epydoc and other API doc generation tools. An :autolink: role is also provided. autosummary directive --------------------- The autosummary directive ...
37.271777
94
0.594653
4dda2477dfbfcdc6ef507f27602b2009d138ba4a
9,147
py
Python
fabfile.py
petarmaric/fsm_eigenvalue_experiments
80842eb2387d38360e78b9051af8c98466a18079
[ "BSD-3-Clause" ]
null
null
null
fabfile.py
petarmaric/fsm_eigenvalue_experiments
80842eb2387d38360e78b9051af8c98466a18079
[ "BSD-3-Clause" ]
null
null
null
fabfile.py
petarmaric/fsm_eigenvalue_experiments
80842eb2387d38360e78b9051af8c98466a18079
[ "BSD-3-Clause" ]
null
null
null
import fnmatch import os import shutil from fabric.api import local, task from fsm_eigenvalue.load import linspace_with_step import tables as tb ANALYSES_TYPES = { 'fsm_damage_analysis': { 'program_args_fmt': "%(results_file)s --report_file %(report_file)s", 'report_file_ext': 'pdf', 'var...
47.890052
112
0.561277
cda07cff0ebf6a216bc25000a7bcd2cf2d5a3295
394
py
Python
testapp/wagtail_wordpress_importer/migrations/0071_remove_customfieldslayoutsubfield_custom_field.py
nickmoreton/wagtail_wordpress_importer
fbe6b60ae624edac3f42a62ce30af4a0c548b4ed
[ "MIT" ]
null
null
null
testapp/wagtail_wordpress_importer/migrations/0071_remove_customfieldslayoutsubfield_custom_field.py
nickmoreton/wagtail_wordpress_importer
fbe6b60ae624edac3f42a62ce30af4a0c548b4ed
[ "MIT" ]
null
null
null
testapp/wagtail_wordpress_importer/migrations/0071_remove_customfieldslayoutsubfield_custom_field.py
nickmoreton/wagtail_wordpress_importer
fbe6b60ae624edac3f42a62ce30af4a0c548b4ed
[ "MIT" ]
null
null
null
# Generated by Django 3.1.4 on 2021-01-11 15:28 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('wagtail_wordpress_importer', '0070_customfieldslayoutsubfield_custom_field'), ] operations = [ migrations.RemoveField( model_name='custo...
21.888889
87
0.659898
6798e3b8b9d54255157777fb40998494c62af670
1,614
py
Python
scrape_extensions.py
LaudateCorpus1/file-extensions
c7f9fb815579c0d24fbc99c5cfa42d21feb44a53
[ "MIT" ]
15
2018-03-01T19:29:33.000Z
2021-12-11T22:44:41.000Z
scrape_extensions.py
LaudateCorpus1/file-extensions
c7f9fb815579c0d24fbc99c5cfa42d21feb44a53
[ "MIT" ]
1
2021-08-20T04:45:34.000Z
2021-08-20T04:45:34.000Z
scrape_extensions.py
LaudateCorpus1/file-extensions
c7f9fb815579c0d24fbc99c5cfa42d21feb44a53
[ "MIT" ]
6
2018-04-18T13:14:52.000Z
2021-08-20T04:45:25.000Z
#! /usr/bin/env python3 ''' Scrapes file extensions for various file types from FileInfo.com. The file types are defined in the constants module. ''' import io import json from time import sleep from urllib.request import urlopen from bs4 import BeautifulSoup from constants import BASE_URL, FILE_TYPES EXTENSIONS_D...
26.459016
74
0.652416
3fffa0af97d5037d77bce64c36dacc660fd170cd
332
py
Python
scrapybot/items/proxylist.py
roadt/scrapybot
c4588f3d2c354a464f67f7199933775bc7a859e0
[ "MIT" ]
null
null
null
scrapybot/items/proxylist.py
roadt/scrapybot
c4588f3d2c354a464f67f7199933775bc7a859e0
[ "MIT" ]
null
null
null
scrapybot/items/proxylist.py
roadt/scrapybot
c4588f3d2c354a464f67f7199933775bc7a859e0
[ "MIT" ]
1
2015-09-11T05:59:42.000Z
2015-09-11T05:59:42.000Z
from scrapy.item import Item, Field class Proxy(Item): ''' info of proxy server''' ip = Field() port = Field() typ = Field() anonymity = Field() country = Field() region = Field() city = Field() uptime = Field() response = Field() transfer = Field() key...
13.28
35
0.527108
9002e4cef505e332ade64a1184afc0c68664ed40
2,494
py
Python
yt_dlp/extractor/cultureunplugged.py
mrBliss/yt-dlp
aecd021656b672dbb617e5bae54a8986f9c4ebaf
[ "Unlicense" ]
80
2021-05-25T11:33:49.000Z
2022-03-29T20:36:53.000Z
yt_dlp/extractor/cultureunplugged.py
mrBliss/yt-dlp
aecd021656b672dbb617e5bae54a8986f9c4ebaf
[ "Unlicense" ]
53
2017-04-12T19:53:18.000Z
2022-02-22T10:33:13.000Z
yt_dlp/extractor/cultureunplugged.py
mrBliss/yt-dlp
aecd021656b672dbb617e5bae54a8986f9c4ebaf
[ "Unlicense" ]
22
2021-05-07T05:01:27.000Z
2022-03-26T19:10:54.000Z
from __future__ import unicode_literals import time from .common import InfoExtractor from ..utils import ( int_or_none, HEADRequest, ) class CultureUnpluggedIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?cultureunplugged\.com/documentary/watch-online/play/(?P<id>\d+)(?:/(?P<display_id>[^/]+))?' ...
35.628571
129
0.585405
05c54c3c5af3a72b2a383978cf4c6d09f01e4a66
282
py
Python
custom_components/senz/const.py
astrandb/senz_hass
6725d37fd9c6d250ac10a16e68c56908bf1c8404
[ "MIT" ]
2
2022-01-15T09:55:58.000Z
2022-02-10T10:13:35.000Z
custom_components/senz/const.py
astrandb/senz_hass
6725d37fd9c6d250ac10a16e68c56908bf1c8404
[ "MIT" ]
4
2022-01-15T19:41:28.000Z
2022-02-14T16:01:47.000Z
custom_components/senz/const.py
astrandb/senz_hass
6725d37fd9c6d250ac10a16e68c56908bf1c8404
[ "MIT" ]
null
null
null
"""Constants for the SENZ WiFi integration.""" DOMAIN = "senz" VERSION = "0.0.6" SENZ_API = "https://api.senzthermostat.nvent.com/api/v1" OAUTH2_AUTHORIZE = "https://id.senzthermostat.nvent.com/connect/authorize" OAUTH2_TOKEN = "https://id.senzthermostat.nvent.com/connect/token"
31.333333
74
0.748227
eafa146f5dfa1a167fbebef9de65fa30ecd042e0
2,842
py
Python
rllib/agents/a3c/a3c.py
firebolt55439/ray
215300b070628c06f0106906fc6c03bd70ebf140
[ "Apache-2.0" ]
null
null
null
rllib/agents/a3c/a3c.py
firebolt55439/ray
215300b070628c06f0106906fc6c03bd70ebf140
[ "Apache-2.0" ]
null
null
null
rllib/agents/a3c/a3c.py
firebolt55439/ray
215300b070628c06f0106906fc6c03bd70ebf140
[ "Apache-2.0" ]
null
null
null
import logging from ray.rllib.agents.a3c.a3c_tf_policy import A3CTFPolicy from ray.rllib.agents.trainer import with_common_config from ray.rllib.agents.trainer_template import build_trainer from ray.rllib.execution.rollout_ops import AsyncGradients from ray.rllib.execution.train_ops import ApplyGradients from ray.rlli...
33.833333
76
0.720267
13b10d26ffa93906cc33cfb44730f1718d345af4
756
py
Python
pages/result_sk.py
sunjeet-khokhar/tau-playwright-workshop
b2133164f8432e8b2564a7bfa91e4be9a9db62ca
[ "MIT" ]
2
2021-12-07T19:22:26.000Z
2021-12-12T04:36:20.000Z
pages/result_sk.py
sunjeet-khokhar/tau-playwright-workshop
b2133164f8432e8b2564a7bfa91e4be9a9db62ca
[ "MIT" ]
null
null
null
pages/result_sk.py
sunjeet-khokhar/tau-playwright-workshop
b2133164f8432e8b2564a7bfa91e4be9a9db62ca
[ "MIT" ]
null
null
null
""" This module contains DuckDuckGoResultPage, the page object for the DuckDuckGo result page. """ from playwright.sync_api import Page class ResultsPage: SEARCH_FIELD= "[id='search_form_input']" RESULT_TITLES = "[data-testid=result-title-a]" def __init__(self,page : Page): self.pag...
28
73
0.675926
0156e438e9e24820943c9e48b04565710ea2fd4b
1,632
py
Python
ppocr/postprocess/__init__.py
Bourne-M/PaddleOCR
865e737413d430798b8c17525dcc22db4d106752
[ "Apache-2.0" ]
506
2020-10-07T04:06:40.000Z
2022-03-31T20:28:25.000Z
ppocr/postprocess/__init__.py
Bourne-M/PaddleOCR
865e737413d430798b8c17525dcc22db4d106752
[ "Apache-2.0" ]
80
2020-11-19T14:02:56.000Z
2022-03-29T10:56:19.000Z
ppocr/postprocess/__init__.py
Bourne-M/PaddleOCR
865e737413d430798b8c17525dcc22db4d106752
[ "Apache-2.0" ]
98
2020-10-22T06:37:34.000Z
2022-03-31T04:57:22.000Z
# copyright (c) 2020 PaddlePaddle Authors. All Rights Reserve. # # 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...
36.266667
80
0.761642
d09569eb7509b6ba89eb69c50cb0f8eac9a0e9ff
2,600
py
Python
httprunner/locusts.py
QiChangYin/MultipleInterfaceManager
0732cbd2dc9065aa4947ab3243136450874579a4
[ "MIT" ]
null
null
null
httprunner/locusts.py
QiChangYin/MultipleInterfaceManager
0732cbd2dc9065aa4947ab3243136450874579a4
[ "MIT" ]
null
null
null
httprunner/locusts.py
QiChangYin/MultipleInterfaceManager
0732cbd2dc9065aa4947ab3243136450874579a4
[ "MIT" ]
1
2019-07-04T12:46:20.000Z
2019-07-04T12:46:20.000Z
# encoding: utf-8 import io import multiprocessing import os import sys from httprunner.logger import color_print from httprunner.testcase import TestcaseLoader from locust.main import main def parse_locustfile(file_path): """ parse testcase file and return locustfile path. if file_path is...
30.952381
94
0.641154
0fe775cf66e2cc0b7685725685c992dbbb84d903
26,468
py
Python
tensorflow/contrib/keras/python/keras/engine/topology_test.py
ralic/tensorflow
1209491913def44650d6457c60a6e41d56de3306
[ "Apache-2.0" ]
1
2017-09-05T02:22:07.000Z
2017-09-05T02:22:07.000Z
tensorflow/contrib/keras/python/keras/engine/topology_test.py
ralic/tensorflow
1209491913def44650d6457c60a6e41d56de3306
[ "Apache-2.0" ]
null
null
null
tensorflow/contrib/keras/python/keras/engine/topology_test.py
ralic/tensorflow
1209491913def44650d6457c60a6e41d56de3306
[ "Apache-2.0" ]
1
2021-01-25T14:18:12.000Z
2021-01-25T14:18:12.000Z
# Copyright 2016 The TensorFlow Authors. 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 applica...
38.35942
80
0.639376
d7e66dda47f3797b486a992ceaebb95da37bf0e4
2,943
py
Python
bear_hug/atlas_viewer.py
PaulDJoachim/bear_hug
9d048052563974456bfd052aa7774da57678e1a3
[ "MIT" ]
17
2018-02-27T07:03:03.000Z
2021-08-20T05:37:40.000Z
bear_hug/atlas_viewer.py
PaulDJoachim/bear_hug
9d048052563974456bfd052aa7774da57678e1a3
[ "MIT" ]
null
null
null
bear_hug/atlas_viewer.py
PaulDJoachim/bear_hug
9d048052563974456bfd052aa7774da57678e1a3
[ "MIT" ]
2
2019-10-10T16:53:12.000Z
2021-06-10T05:14:18.000Z
#! /usr/bin/env python3.6 from bear_hug import BearTerminal, BearLoop from bear_utilities import copy_shape from event import BearEventDispatcher from widgets import InputScrollable, ClosingListener, Layout,\ Label, Widget, FPSCounter from resources import XpLoader, Atlas import os class ElementBox(Layout): ...
33.827586
79
0.615698
7a0c50250ac54c78102cb5304e6255e39bd2c12b
2,659
py
Python
setup.py
pantonante/quantstats
6d6cb52b854366bf8ebed7bf821e96f89af0c5ac
[ "Apache-2.0" ]
null
null
null
setup.py
pantonante/quantstats
6d6cb52b854366bf8ebed7bf821e96f89af0c5ac
[ "Apache-2.0" ]
null
null
null
setup.py
pantonante/quantstats
6d6cb52b854366bf8ebed7bf821e96f89af0c5ac
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: UTF-8 -*- """QuantStats: Portfolio analytics for quants https://github.com/ranaroussi/quantstats QuantStats performs portfolio profiling, to allow quants and portfolio managers to understand their performance better, by providing them with in-depth analytics and risk metrics. """ f...
34.986842
77
0.635953
ceb2f025c797e80a4aaee80959f2ea28af6e45e3
1,155
py
Python
tf_rl/env/pybullet/wrapper.py
Rowing0914/TF2_RL
c1b7f9b376cbecf01deb17f76f8e761035ed336a
[ "MIT" ]
8
2020-01-13T03:29:50.000Z
2021-11-19T00:59:42.000Z
tf_rl/env/pybullet/wrapper.py
Rowing0914/TF2_RL
c1b7f9b376cbecf01deb17f76f8e761035ed336a
[ "MIT" ]
5
2020-11-13T17:40:40.000Z
2022-03-12T00:11:33.000Z
tf_rl/env/pybullet/wrapper.py
Rowing0914/TF2_RL
c1b7f9b376cbecf01deb17f76f8e761035ed336a
[ "MIT" ]
1
2021-04-02T13:42:39.000Z
2021-04-02T13:42:39.000Z
import gym from tf_rl.common.wrappers import WarpFrame, ScaledFloatFrame from tf_rl.env.pybullet.env_list import ENVS class PixelObservationWrapper(gym.ObservationWrapper): """ check this post: https://github.com/openai/gym/pull/740#issuecomment-470382987 """ def __init__(self, env, img_shape=None): ...
33.970588
90
0.716017
cf335d47a1f89ffd00a33b7f5520ea00f47dc634
790
py
Python
55. Jump Game.py
rohitpatwa/leetcode
f4826763e8f154cac9134d53b154b8299acd39a8
[ "Xnet", "X11", "CECILL-B" ]
1
2020-07-15T20:48:27.000Z
2020-07-15T20:48:27.000Z
55. Jump Game.py
rohitpatwa/leetcode
f4826763e8f154cac9134d53b154b8299acd39a8
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
55. Jump Game.py
rohitpatwa/leetcode
f4826763e8f154cac9134d53b154b8299acd39a8
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
# Keep calculating max reachable index from current index. If curr index passes max reachable index, return False class Solution(object): def canJump(self, nums): """ :type nums: List[int] :rtype: bool """ # Reverse array approach # last_valid_index = -1 # fo...
32.916667
113
0.535443
98ea86bad81d25218f10b7525261d2e27a313af8
1,580
py
Python
pi_mqtt_gpio/modules/bme680.py
kapratt/pi-mqtt-gpio
199473d411381eaa1af9781081814a1130799b1e
[ "MIT" ]
null
null
null
pi_mqtt_gpio/modules/bme680.py
kapratt/pi-mqtt-gpio
199473d411381eaa1af9781081814a1130799b1e
[ "MIT" ]
null
null
null
pi_mqtt_gpio/modules/bme680.py
kapratt/pi-mqtt-gpio
199473d411381eaa1af9781081814a1130799b1e
[ "MIT" ]
null
null
null
from pi_mqtt_gpio.modules import GenericSensor REQUIREMENTS = ("smbus", "bme680") CONFIG_SCHEMA = { "i2c_bus_num": dict(type="integer", required=False, empty=False), "chip_addr": dict(type="integer", required=True, empty=False), } SENSOR_SCHEMA = { "type": dict( type="string", required=Fal...
29.811321
99
0.639873
db571d5baa95fd663764b4634ad3860fc2352143
1,741
py
Python
domain-parse-location/server.py
Logistic98/yoyo-algorithm
db4a866517ca77b0ce3b589a40c35d68a255e733
[ "Apache-2.0" ]
2
2022-02-27T04:58:40.000Z
2022-02-27T04:58:45.000Z
domain-parse-location/server.py
Logistic98/yoyo-algorithm
db4a866517ca77b0ce3b589a40c35d68a255e733
[ "Apache-2.0" ]
null
null
null
domain-parse-location/server.py
Logistic98/yoyo-algorithm
db4a866517ca77b0ce3b589a40c35d68a255e733
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import json from flask import Flask, request, jsonify from flask_cors import CORS from code import ResponseCode, ResponseMessage from log import logger from utils import get_ip_by_domain, ip_get_location # 创建一个服务 app = Flask(__name__) CORS(app, supports_credentials=True) """ # 获取域名或IP的地理位置信息...
29.016667
107
0.71166
3d45ef93772ffee558bfff137d9710ab6427165a
1,133
py
Python
050_microsoft_easy_evaluateArithmeticTree.py
ericwangg/daily_coding_problem
ce401c512a49f9e2410b059e797b21056adab4ac
[ "MIT" ]
null
null
null
050_microsoft_easy_evaluateArithmeticTree.py
ericwangg/daily_coding_problem
ce401c512a49f9e2410b059e797b21056adab4ac
[ "MIT" ]
null
null
null
050_microsoft_easy_evaluateArithmeticTree.py
ericwangg/daily_coding_problem
ce401c512a49f9e2410b059e797b21056adab4ac
[ "MIT" ]
null
null
null
# This problem was asked by Microsoft. # # Suppose an arithmetic expression is given as a binary tree. Each leaf is an integer and each internal node is one of '+', '−', '∗', or '/'. # # Given the root to such a tree, write a function to evaluate it. # # For example, given the following tree: # # * # / \ # + ...
27.634146
141
0.601942
35492e6a4712508a8e0b37b182cdd85bb543fb11
67,419
py
Python
Lib/test/support/__init__.py
Wind-River/cpython
9e82877bf15b360fe9ab74cf7e69210ec006a624
[ "0BSD" ]
5
2019-04-28T05:24:54.000Z
2021-05-08T02:04:27.000Z
Lib/test/support/__init__.py
Wind-River/cpython
9e82877bf15b360fe9ab74cf7e69210ec006a624
[ "0BSD" ]
11
2020-11-12T07:04:51.000Z
2022-01-01T14:00:52.000Z
Lib/test/support/__init__.py
Wind-River/cpython
9e82877bf15b360fe9ab74cf7e69210ec006a624
[ "0BSD" ]
1
2020-10-30T14:25:00.000Z
2020-10-30T14:25:00.000Z
"""Supporting definitions for the Python regression tests.""" if __name__ != 'test.support': raise ImportError('support must be imported from the test package') import contextlib import functools import os import re import stat import sys import sysconfig import time import types import unittest from .testresult...
33.7095
92
0.618268
ebc2a756a27ca3b98792245bfc3ea9bcffce1fab
1,635
py
Python
allennlp/tests/models/coreference_resolution/coref_test.py
tianjianjiang/allennlp
0839f5c263911ec5ff04a2ebe575493c7e0436ef
[ "Apache-2.0" ]
2
2019-12-03T20:04:56.000Z
2021-03-29T10:38:06.000Z
allennlp/tests/models/coreference_resolution/coref_test.py
dasguptar/allennlp
35b285585e0677b1025eac1c19b5eefe7e2a70db
[ "Apache-2.0" ]
null
null
null
allennlp/tests/models/coreference_resolution/coref_test.py
dasguptar/allennlp
35b285585e0677b1025eac1c19b5eefe7e2a70db
[ "Apache-2.0" ]
2
2019-12-04T16:55:13.000Z
2019-12-06T18:47:15.000Z
import torch from allennlp.common.testing import ModelTestCase class CorefTest(ModelTestCase): def setUp(self): super().setUp() self.set_up_model( self.FIXTURES_ROOT / "coref" / "experiment.json", self.FIXTURES_ROOT / "coref" / "coref.gold_conll", ) def test_c...
31.442308
86
0.541896
58bc5241d3219785674bc714c17f316ebc47a7e1
3,422
py
Python
tests/dtypes_test.py
rappie/vaex
7f49d3864a5c969105511a07526894c20a22d9bf
[ "MIT" ]
1
2022-01-10T09:04:31.000Z
2022-01-10T09:04:31.000Z
tests/dtypes_test.py
rappie/vaex
7f49d3864a5c969105511a07526894c20a22d9bf
[ "MIT" ]
null
null
null
tests/dtypes_test.py
rappie/vaex
7f49d3864a5c969105511a07526894c20a22d9bf
[ "MIT" ]
null
null
null
from common import * from vaex.datatype import DataType from unittest.mock import MagicMock def test_dtype_basics(df): df['new_virtual_column'] = df.x + 1 for name in df.get_column_names(): if df.is_string(name): assert df[name].to_numpy().dtype.kind in 'OSU' else: asse...
36.795699
124
0.625658
5377c492bb526cd6f444d4ffd530116dca25af7a
3,434
py
Python
examples/nc03.py
vbajpai/ncclient
c19ab546e1af4fa00f1ae162d5d3865fba49a76b
[ "Apache-2.0" ]
4
2015-10-07T21:29:03.000Z
2020-12-04T01:38:12.000Z
examples/nc03.py
vbajpai/ncclient
c19ab546e1af4fa00f1ae162d5d3865fba49a76b
[ "Apache-2.0" ]
null
null
null
examples/nc03.py
vbajpai/ncclient
c19ab546e1af4fa00f1ae162d5d3865fba49a76b
[ "Apache-2.0" ]
2
2015-01-12T23:47:01.000Z
2016-10-16T09:56:40.000Z
#! /usr/bin/env python # # Copyright 2012 Vaibhav Bajpai <contact@vaibhavbajpai.com> # Copyright 2009 Shikhar Bhushan <shikhar@schmizz.net> # # Retrieve a config portion selected by an XPATH expression from the # configuration store passed on the command line using # get-config and write the XML configs to files. # # $...
34.686869
76
0.481363
b090d4dced1a623fc66663a2d30035d7faa695e6
3,477
py
Python
scripts/addons/keentools_facebuilder/utils/images.py
Tilapiatsu/blender-custom_conf
05592fedf74e4b7075a6228b8448a5cda10f7753
[ "MIT" ]
2
2020-04-16T22:12:40.000Z
2022-01-22T17:18:45.000Z
scripts/addons/keentools_facebuilder/utils/images.py
Tilapiatsu/blender-custom_conf
05592fedf74e4b7075a6228b8448a5cda10f7753
[ "MIT" ]
null
null
null
scripts/addons/keentools_facebuilder/utils/images.py
Tilapiatsu/blender-custom_conf
05592fedf74e4b7075a6228b8448a5cda10f7753
[ "MIT" ]
2
2019-05-16T04:01:09.000Z
2020-08-25T11:42:26.000Z
# ##### BEGIN GPL LICENSE BLOCK ##### # KeenTools for blender is a blender addon for using KeenTools in Blender. # Copyright (C) 2019 KeenTools # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, ...
31.324324
79
0.665804
8344013282e83708d865cb97e92cb0533ce5c2ae
7,885
py
Python
imcsdk/mometa/system/SystemIOControllerNVMe.py
ecoen66/imcsdk
b10eaa926a5ee57cea7182ae0adc8dd1c818b0ab
[ "Apache-2.0" ]
31
2016-06-14T07:23:59.000Z
2021-09-12T17:17:26.000Z
imcsdk/mometa/system/SystemIOControllerNVMe.py
sthagen/imcsdk
1831eaecb5960ca03a8624b1579521749762b932
[ "Apache-2.0" ]
109
2016-05-25T03:56:56.000Z
2021-10-18T02:58:12.000Z
imcsdk/mometa/system/SystemIOControllerNVMe.py
sthagen/imcsdk
1831eaecb5960ca03a8624b1579521749762b932
[ "Apache-2.0" ]
67
2016-05-17T05:53:56.000Z
2022-03-24T15:52:53.000Z
"""This module contains the general information for SystemIOControllerNVMe ManagedObject.""" from ...imcmo import ManagedObject from ...imccoremeta import MoPropertyMeta, MoMeta from ...imcmeta import VersionMeta class SystemIOControllerNVMeConsts: pass class SystemIOControllerNVMe(ManagedObject): """This ...
63.58871
264
0.653519
eefc7d3e0d3eb6aeca7643729e797cdf200887d7
1,002
py
Python
manage.py
andreffs18/flask-template-project
a5ed56cfc59c181d33e7147feb4fdb9a4094996e
[ "MIT" ]
9
2017-02-08T21:42:15.000Z
2021-12-15T05:18:18.000Z
manage.py
andreffs18/flask-template-project
a5ed56cfc59c181d33e7147feb4fdb9a4094996e
[ "MIT" ]
10
2016-07-25T11:00:08.000Z
2019-09-25T14:56:40.000Z
manage.py
andreffs18/flask-template-project
a5ed56cfc59c181d33e7147feb4fdb9a4094996e
[ "MIT" ]
7
2016-11-01T20:11:03.000Z
2020-02-04T14:25:49.000Z
# !/usr/bin/python # -*- coding: utf-8 -*- from flask_script import Manager from flask import render_template from project import create_app # in case we run the test command choose the "TestConfig" import sys arg_dict = dict((i, v) for i, v in enumerate(sys.argv)) config = "config.TestConfig" if arg_dict.get(1, None)...
29.470588
73
0.726547
0c2a1fea9ea548bc98dd47c001203aa7237274da
4,623
py
Python
AlphaZero_book/chap3/3-4.py
jisuk500/ML_learning
4f77eb34bd652753e63fb75fa2be5bd252232f80
[ "Apache-2.0" ]
null
null
null
AlphaZero_book/chap3/3-4.py
jisuk500/ML_learning
4f77eb34bd652753e63fb75fa2be5bd252232f80
[ "Apache-2.0" ]
null
null
null
AlphaZero_book/chap3/3-4.py
jisuk500/ML_learning
4f77eb34bd652753e63fb75fa2be5bd252232f80
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Jan 18 17:53:45 2021 @author: 알파제로를 분석하며 배우는 인공지능 """ #%% # 3-4-3 패키지 임포트 from tensorflow.keras.datasets import cifar10 from tensorflow.keras.callbacks import LearningRateScheduler from tensorflow.keras.layers import Activation, Add, BatchNormalization, Conv2D, Dense, Dro...
22.441748
126
0.658447
9e1c96308539471696fc8a582bbd7ba3cef89913
1,504
py
Python
testapp/models.py
nazmul-pro/py-channels
709af1c84bdf1aac6112033863c3ed0af1a23eea
[ "MIT" ]
null
null
null
testapp/models.py
nazmul-pro/py-channels
709af1c84bdf1aac6112033863c3ed0af1a23eea
[ "MIT" ]
null
null
null
testapp/models.py
nazmul-pro/py-channels
709af1c84bdf1aac6112033863c3ed0af1a23eea
[ "MIT" ]
null
null
null
# Create your models here. from django.db import models # from django.template.defaultfilters import slugify # from django.contrib.auth.models import User class AppUser(models.Model): name = models.CharField(max_length=255) email = models.EmailField(max_length=75) phone = models.TextField() password =...
32.695652
67
0.667553
50c5f9d9dfcbd00b548ad2ecaa90cffd98596c14
457
py
Python
setup.py
QueoLda/django-unicorn
01573cd65282c467bfb0925542b180ffa9efba05
[ "MIT" ]
null
null
null
setup.py
QueoLda/django-unicorn
01573cd65282c467bfb0925542b180ffa9efba05
[ "MIT" ]
null
null
null
setup.py
QueoLda/django-unicorn
01573cd65282c467bfb0925542b180ffa9efba05
[ "MIT" ]
null
null
null
from distutils.core import setup from setuptools import find_packages setup( name="django-unicorn", version="0.26.0", description="A magical full-stack framework for Django.", authors=["Adam Hill <unicorn@adamghill.com>"], license="MIT", readme="README.md", repository="https://github.com/ad...
30.466667
62
0.689278
f75fc6f8bf9507bd6c1a1e4b893b9157cb5c30e6
490
py
Python
Ejercicios/Arrays.py
dannieldev/Fundamentos-de-Python
63bf92c7256b373b631cae3ae9a80a3a5071f61d
[ "MIT" ]
null
null
null
Ejercicios/Arrays.py
dannieldev/Fundamentos-de-Python
63bf92c7256b373b631cae3ae9a80a3a5071f61d
[ "MIT" ]
null
null
null
Ejercicios/Arrays.py
dannieldev/Fundamentos-de-Python
63bf92c7256b373b631cae3ae9a80a3a5071f61d
[ "MIT" ]
null
null
null
lis = [2,"tres",True,["uno",10,"Hola"],2,"Miau"] rec = lis[2] print(lis) print(rec) print(lis[3][2]) #Acceder a un lista dentro de una lista lis[0] = "zero" lis2 = lis[1:3]#copiar datos de otro array a un nuevo array lis3 = lis[0::2]#Va intercalando dependiendo de lo deseado lis24 = lis[1:3]# print(li...
21.304348
60
0.644898
9680a61cbac800f8844a5c136fedebb7cfa20d16
1,945
py
Python
alphastarmini/core/rl/rl_train_HAS.py
liuruoze/Raw-vs-Human-in-AlphaStar
99acae772eb5c93000dca87b78d6acdf7699f331
[ "Apache-2.0" ]
3
2021-09-07T11:13:34.000Z
2021-09-07T13:05:26.000Z
alphastarmini/core/rl/rl_train_HAS.py
liuruoze/Raw-vs-Human-in-AlphaStar
99acae772eb5c93000dca87b78d6acdf7699f331
[ "Apache-2.0" ]
null
null
null
alphastarmini/core/rl/rl_train_HAS.py
liuruoze/Raw-vs-Human-in-AlphaStar
99acae772eb5c93000dca87b78d6acdf7699f331
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- " Train for RL by interacting with the environment" import os USED_DEVICES = "0" import os os.environ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID" os.environ["CUDA_VISIBLE_DEVICES"] = USED_DEVICES os.environ["CUDA_LAUNCH_BLOCKING"] = "1" import traceback from time import time, s...
25.592105
110
0.676607
76718f99c0ba7dc179c5581caea5f25c339efcc4
31,852
py
Python
tool/cstar_perf/tool/benchmark.py
cooldoger/cstar_perf
aceadd1d5a2331668647c53cca231ff9c1338eb4
[ "Apache-2.0" ]
60
2015-01-01T03:01:40.000Z
2021-11-06T16:03:41.000Z
tool/cstar_perf/tool/benchmark.py
cooldoger/cstar_perf
aceadd1d5a2331668647c53cca231ff9c1338eb4
[ "Apache-2.0" ]
182
2015-01-04T20:02:54.000Z
2021-04-23T18:16:23.000Z
tool/cstar_perf/tool/benchmark.py
datastax/cstar_perf
aceadd1d5a2331668647c53cca231ff9c1338eb4
[ "Apache-2.0" ]
30
2015-03-11T14:37:38.000Z
2021-01-13T10:48:02.000Z
""" Bootstrap Cassandra onto a cluster and benchmark stress. """ import subprocess import tempfile import os import time import datetime from pprint import pprint import uuid import re import json import socket import getpass import logging import itertools import shutil import distutils.util from fabric.tasks import...
42.754362
201
0.643225
1675b5c8335969ab24e623208993dceba23908b6
1,371
py
Python
tests/test_get_upcoming.py
ludeeus/pylaunches
8f44f9b6084bb93f0429e17e94deb7af47a01a9b
[ "MIT" ]
1
2021-11-14T19:08:52.000Z
2021-11-14T19:08:52.000Z
tests/test_get_upcoming.py
ludeeus/pylaunches
8f44f9b6084bb93f0429e17e94deb7af47a01a9b
[ "MIT" ]
2
2020-10-30T19:13:16.000Z
2022-01-25T17:00:36.000Z
tests/test_get_upcoming.py
ludeeus/pylaunches
8f44f9b6084bb93f0429e17e94deb7af47a01a9b
[ "MIT" ]
4
2019-03-04T03:05:53.000Z
2022-01-25T02:01:28.000Z
import aiohttp import pytest from pylaunches import PyLaunches, PyLaunchesException, PyLaunchesNoData from pylaunches.const import HEADERS from tests.common import fixture @pytest.mark.asyncio async def test_upcoming_launches(aresponses): response = fixture("upcoming.json", False) aresponses.add( "ll...
28.5625
72
0.66302
ec12f0816bf0fdd929ad122fa466581596248d4a
32,514
py
Python
Python/libraries/recognizers-date-time/recognizers_date_time/resources/portuguese_date_time.py
XiaoxiaoMa0815/Recognizers-Text
d9a4bc939348bd79b5982345255961dff5f356c6
[ "MIT" ]
1
2020-12-02T03:35:04.000Z
2020-12-02T03:35:04.000Z
Python/libraries/recognizers-date-time/recognizers_date_time/resources/portuguese_date_time.py
XiaoxiaoMa0815/Recognizers-Text
d9a4bc939348bd79b5982345255961dff5f356c6
[ "MIT" ]
1
2021-02-24T00:16:41.000Z
2021-02-24T00:16:41.000Z
Python/libraries/recognizers-date-time/recognizers_date_time/resources/portuguese_date_time.py
XiaoxiaoMa0815/Recognizers-Text
d9a4bc939348bd79b5982345255961dff5f356c6
[ "MIT" ]
1
2020-12-02T04:55:25.000Z
2020-12-02T04:55:25.000Z
# ------------------------------------------------------------------------------ # <auto-generated> # This code was generated by a tool. # Changes to this file may cause incorrect behavior and will be lost if # the code is regenerated. # </auto-generated> # # Copyright (c) Microsoft Corporation. All rights ...
64.003937
419
0.482039
ca0389f8409a1ba780ef4d8f00868c8b02b93926
517
py
Python
Python-Projects/Random Number Guessing Game/random_no_guessing_game.py
kuwarkapur/Hacktoberfest-2022
efaafeba5ce51d8d2e2d94c6326cc20bff946f17
[ "MIT" ]
1
2021-12-03T09:23:41.000Z
2021-12-03T09:23:41.000Z
Python-Projects/Random Number Guessing Game/random_no_guessing_game.py
kuwarkapur/Hacktoberfest-2022
efaafeba5ce51d8d2e2d94c6326cc20bff946f17
[ "MIT" ]
null
null
null
Python-Projects/Random Number Guessing Game/random_no_guessing_game.py
kuwarkapur/Hacktoberfest-2022
efaafeba5ce51d8d2e2d94c6326cc20bff946f17
[ "MIT" ]
null
null
null
import random num = random.randint(1, 100) user_input = 0 count = 0 while user_input != num: user_input = int(input("Enter your guess ")) if user_input < num: print("Your number is less") print("Try Again") elif user_input > num: print("Your number is much") print("Try ...
19.884615
71
0.62089
c50eea79f85a5b758aa466d3bb0359557d2eab7c
211
py
Python
neurotic/examples/internal/paths.py
gigaquads/neurotic
ce3d57acf8fa8256af55fc65a213ecb99dfb3f07
[ "MIT" ]
null
null
null
neurotic/examples/internal/paths.py
gigaquads/neurotic
ce3d57acf8fa8256af55fc65a213ecb99dfb3f07
[ "MIT" ]
null
null
null
neurotic/examples/internal/paths.py
gigaquads/neurotic
ce3d57acf8fa8256af55fc65a213ecb99dfb3f07
[ "MIT" ]
null
null
null
import os DATA_DIR = os.path.join(os.path.dirname(__file__), 'data') TITANIC_CSV_FILEPATH = os.path.join(DATA_DIR, 'titanic.csv') JENA_CLIMATE_CSV_FILEPATH = os.path.join(DATA_DIR, 'jena_climate_2009_2016.csv')
42.2
80
0.791469
1772a508f28a639e2e47a3e3c85f76e1e18b4977
12,643
py
Python
src/tenants/management/commands/update_lastseen.py
litedesk/litedesk-webserver-provision
1576b9d3e5e2e64d1136d276767c2710cfb1938f
[ "Apache-2.0" ]
1
2016-01-18T08:19:22.000Z
2016-01-18T08:19:22.000Z
src/tenants/management/commands/update_lastseen.py
litedesk/litedesk-webserver-provision
1576b9d3e5e2e64d1136d276767c2710cfb1938f
[ "Apache-2.0" ]
null
null
null
src/tenants/management/commands/update_lastseen.py
litedesk/litedesk-webserver-provision
1576b9d3e5e2e64d1136d276767c2710cfb1938f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2014, Deutsche Telekom AG - Laboratories (T-Labs) # # 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...
45.315412
91
0.536423
73dae20608e722f58a5213c0d97a8e567bc988b6
1,950
py
Python
jccli/helpers.py
zaro0508/jccli
1de9a7f493d14bbbe6f3d201eb1aa989cdeec5bb
[ "Apache-2.0" ]
null
null
null
jccli/helpers.py
zaro0508/jccli
1de9a7f493d14bbbe6f3d201eb1aa989cdeec5bb
[ "Apache-2.0" ]
null
null
null
jccli/helpers.py
zaro0508/jccli
1de9a7f493d14bbbe6f3d201eb1aa989cdeec5bb
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ .. currentmodule:: jccli.helpers.py .. moduleauthor:: zaro0508 <zaro0508@gmail.com> This is a set of helper methods """ import json import yaml def class_to_dict(class_object): """ Convert a list of jumpcloud users to a list of dicts """ new_obj = [] for item in clas...
20.3125
83
0.58359
9878f58b5a9a4a97b43fa2b3d0c711b65d1ce554
10,183
py
Python
src/oci/opsi/models/exadata_member_collection.py
ezequielramos/oci-python-sdk
cc4235cf217beaf9feed75760e9ce82610222762
[ "Apache-2.0", "BSD-3-Clause" ]
249
2017-09-11T22:06:05.000Z
2022-03-04T17:09:29.000Z
src/oci/opsi/models/exadata_member_collection.py
ezequielramos/oci-python-sdk
cc4235cf217beaf9feed75760e9ce82610222762
[ "Apache-2.0", "BSD-3-Clause" ]
228
2017-09-11T23:07:26.000Z
2022-03-23T10:58:50.000Z
src/oci/opsi/models/exadata_member_collection.py
ezequielramos/oci-python-sdk
cc4235cf217beaf9feed75760e9ce82610222762
[ "Apache-2.0", "BSD-3-Clause" ]
224
2017-09-27T07:32:43.000Z
2022-03-25T16:55:42.000Z
# coding: utf-8 # Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
37.164234
245
0.68143
1dbd983eb7aa8564c1eea73a4cfc4cab42dfb8ba
668
py
Python
mooring/migrations/0126_auto_20190410_1625.py
jawaidm/moorings
22db3fa5917fb13cbee144e64529221ef862cb39
[ "Apache-2.0" ]
null
null
null
mooring/migrations/0126_auto_20190410_1625.py
jawaidm/moorings
22db3fa5917fb13cbee144e64529221ef862cb39
[ "Apache-2.0" ]
2
2020-04-30T12:02:15.000Z
2021-03-19T22:41:46.000Z
mooring/migrations/0126_auto_20190410_1625.py
jawaidm/moorings
22db3fa5917fb13cbee144e64529221ef862cb39
[ "Apache-2.0" ]
6
2020-01-13T08:45:09.000Z
2021-02-24T03:31:02.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.8 on 2019-04-10 08:25 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('mooring', '0125_auto_20190404_1046'), ] operations = [ migrations.AlterFiel...
25.692308
70
0.60479
f9cea16808c36fc55f74ad82ccb920618eb2e3e3
38
py
Python
pytoda/__init__.py
PaccMann/paccmann_datasets
0cb0cee349ffab8e227f09f7df0a8bca6a71f22e
[ "MIT" ]
14
2019-11-01T12:45:56.000Z
2022-03-11T15:38:31.000Z
pytoda/__init__.py
PaccMann/paccmann_datasets
0cb0cee349ffab8e227f09f7df0a8bca6a71f22e
[ "MIT" ]
74
2019-11-12T19:36:27.000Z
2022-02-28T08:19:37.000Z
pytoda/__init__.py
PaccMann/paccmann_datasets
0cb0cee349ffab8e227f09f7df0a8bca6a71f22e
[ "MIT" ]
2
2021-08-14T11:15:07.000Z
2021-08-25T06:42:01.000Z
name = 'pytoda' __version__ = '0.2.5'
12.666667
21
0.631579
e649988f85d9af77e34c1a8deaa752aa59058e7e
225
py
Python
src/Dominion/Gametable/Cardstack.py
CarlGathmann/Dominion
dc30a6db5f005d1148c5ddb4346a8d2b4397001c
[ "MIT" ]
null
null
null
src/Dominion/Gametable/Cardstack.py
CarlGathmann/Dominion
dc30a6db5f005d1148c5ddb4346a8d2b4397001c
[ "MIT" ]
null
null
null
src/Dominion/Gametable/Cardstack.py
CarlGathmann/Dominion
dc30a6db5f005d1148c5ddb4346a8d2b4397001c
[ "MIT" ]
null
null
null
from typing import TypeVar, List from src.Dominion import Card T = TypeVar('T', bound=Card) class Cardstack: def __init__(self): self.cards: List[T] = None def size(self): return len(self.cards)
15
34
0.648889
aac4563eb4e2c22d01351c82284078baaf3a2947
3,537
py
Python
airflow/providers/airbyte/operators/airbyte.py
ChaseKnowlden/airflow
6b71eac1997a7c0db3b8e3aed6b4e65d01871440
[ "Apache-2.0" ]
15,947
2019-01-05T13:51:02.000Z
2022-03-31T23:33:16.000Z
airflow/providers/airbyte/operators/airbyte.py
ChaseKnowlden/airflow
6b71eac1997a7c0db3b8e3aed6b4e65d01871440
[ "Apache-2.0" ]
14,603
2019-01-05T09:43:19.000Z
2022-03-31T23:11:59.000Z
airflow/providers/airbyte/operators/airbyte.py
ChaseKnowlden/airflow
6b71eac1997a7c0db3b8e3aed6b4e65d01871440
[ "Apache-2.0" ]
8,429
2019-01-05T19:45:47.000Z
2022-03-31T22:13:01.000Z
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
42.107143
110
0.711055
3fefd0f85758bcef7e1384b8099aac27ddf84ef2
7,744
py
Python
source/operators/translate/start_translate.py
hasanp87/aws-media-insights-engine
45d093e450a11d4c919d1d6f9a0f0017b2ae5a44
[ "Apache-2.0" ]
1
2020-09-11T19:12:21.000Z
2020-09-11T19:12:21.000Z
source/operators/translate/start_translate.py
hasanp87/aws-media-insights-engine
45d093e450a11d4c919d1d6f9a0f0017b2ae5a44
[ "Apache-2.0" ]
null
null
null
source/operators/translate/start_translate.py
hasanp87/aws-media-insights-engine
45d093e450a11d4c919d1d6f9a0f0017b2ae5a44
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 import boto3 import os import json from botocore import config import math import nltk.data from MediaInsightsEngineLambdaHelper import DataPlane from MediaInsightsEngineLambdaHelper import MediaInsightsOpe...
50.614379
152
0.715651
28f0c9752910e645ae432be328faf121d2c57538
611,210
py
Python
sdk/network/azure-mgmt-network/azure/mgmt/network/v2016_12_01/aio/operations/_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-01-24T08:54:57.000Z
2022-01-24T08:54:57.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2016_12_01/aio/operations/_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/network/azure-mgmt-network/azure/mgmt/network/v2016_12_01/aio/operations/_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# pylint: disable=too-many-lines # 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) AutoRe...
45.938369
6,753
0.668032
83e753e89e37edb739f6aba61260e9087f9f7b29
2,476
py
Python
problems/04/4.py
artcz/euler
7418387162f3e6c55673e6f70fee66f987df4a35
[ "MIT" ]
null
null
null
problems/04/4.py
artcz/euler
7418387162f3e6c55673e6f70fee66f987df4a35
[ "MIT" ]
null
null
null
problems/04/4.py
artcz/euler
7418387162f3e6c55673e6f70fee66f987df4a35
[ "MIT" ]
null
null
null
# coding: utf-8 """ To run: python2.7 4.py Problem: A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 × 99. Find the largest palindrome made from the product of two 3-digit numbers. """ import time def oneliner(): ""...
21.162393
78
0.577544
84785230a2bdeb6e30a859b4a597b65885b58da3
6,792
py
Python
pystiche_papers/utils/misc.py
jbueltemeier/pystiche_papers
d162c2db87251f9e3280fea35cf149d030dc335b
[ "BSD-3-Clause" ]
null
null
null
pystiche_papers/utils/misc.py
jbueltemeier/pystiche_papers
d162c2db87251f9e3280fea35cf149d030dc335b
[ "BSD-3-Clause" ]
null
null
null
pystiche_papers/utils/misc.py
jbueltemeier/pystiche_papers
d162c2db87251f9e3280fea35cf149d030dc335b
[ "BSD-3-Clause" ]
null
null
null
import contextlib import hashlib import random import shutil import tempfile from collections import OrderedDict from collections.abc import Sequence from os import path from typing import Any, Callable, Dict, Iterator, Optional from typing import Sequence as SequenceType from typing import Tuple, TypeVar, Union, cast,...
26.53125
90
0.650471
52de3b1d42c4a4d3de73f1af01310d2de13c9f5b
1,795
py
Python
src/Project 2.py
ArsenDarbinyan/DS_Course
a2cd3c3d61d1e8ccd95dc23af7c3e4ced31e5ebb
[ "MIT" ]
null
null
null
src/Project 2.py
ArsenDarbinyan/DS_Course
a2cd3c3d61d1e8ccd95dc23af7c3e4ced31e5ebb
[ "MIT" ]
null
null
null
src/Project 2.py
ArsenDarbinyan/DS_Course
a2cd3c3d61d1e8ccd95dc23af7c3e4ced31e5ebb
[ "MIT" ]
null
null
null
import matplotlib.ticker as ticker import numpy as np import pandas as pd from matplotlib import pyplot as plt import googletrans as gt import csv def cleaning(): with open('Data-Project-2.csv', 'r+', newline='') as file: read = csv.reader(file) wri = csv.writer(open("Data-Project-2.csv...
31.491228
92
0.671309
3a5aaa138a9edd92dafb0c4ee5b8def33a3beec8
19,969
py
Python
chapter1-nlp-essentials/SMS_Spam_Detection.py
c-w-m/anlp-tf2
24453710d1c6f9bdd9f235189cc0f7dd7a2e82da
[ "MIT" ]
null
null
null
chapter1-nlp-essentials/SMS_Spam_Detection.py
c-w-m/anlp-tf2
24453710d1c6f9bdd9f235189cc0f7dd7a2e82da
[ "MIT" ]
null
null
null
chapter1-nlp-essentials/SMS_Spam_Detection.py
c-w-m/anlp-tf2
24453710d1c6f9bdd9f235189cc0f7dd7a2e82da
[ "MIT" ]
null
null
null
# Based on SMS_Spam_Detection # edited to run on local PC without GPU setup import io import re import stanza import pandas as pd import tensorflow as tf import stopwordsiso as stopwords from sklearn.feature_extraction.text import CountVectorizer from sklearn.metrics.pairwise import cosine_similarity from sklearn.feat...
37.820076
93
0.4195
4d0c248641d2957f4b686fedeb0cfa0301c728cb
2,145
py
Python
esbmc_wr/log/log.py
thalestas/esbmc-wr
b10521a1f36e3c8c08799c05bed710263d7c1df6
[ "Apache-2.0" ]
1
2022-01-21T18:36:20.000Z
2022-01-21T18:36:20.000Z
esbmc_wr/log/log.py
thalestas/esbmc-wr
b10521a1f36e3c8c08799c05bed710263d7c1df6
[ "Apache-2.0" ]
4
2021-06-01T20:50:46.000Z
2022-01-04T04:30:24.000Z
esbmc_wr/log/log.py
thalestas/esbmc-wr
b10521a1f36e3c8c08799c05bed710263d7c1df6
[ "Apache-2.0" ]
1
2022-01-31T03:47:33.000Z
2022-01-31T03:47:33.000Z
import os import sys import logging from datetime import datetime DIRECTORY = "output" LOG_FILE = "output.log" def create_dir(name): try: os.mkdir(name) except FileExistsError: print("Directory ", name, " already exists.") def configure(verbose): create_dir(DIRECTORY) logger = loggin...
28.6
62
0.544522
4132743b20bc469f867d057d2bb6383f7da68343
704
py
Python
pj_23.py
luisalvaradoar/pj_euler
03e4ee9d0cc64ae9650b801554bf053d2db0b684
[ "Apache-2.0" ]
null
null
null
pj_23.py
luisalvaradoar/pj_euler
03e4ee9d0cc64ae9650b801554bf053d2db0b684
[ "Apache-2.0" ]
null
null
null
pj_23.py
luisalvaradoar/pj_euler
03e4ee9d0cc64ae9650b801554bf053d2db0b684
[ "Apache-2.0" ]
null
null
null
from math import sqrt from itertools import combinations def sum_divisores(n): lista = [] for i in range(1, int(sqrt(n)) + 1): if n%i == i: lista.append(i) elif n%i == 0: lista.append(i) lista.append(n//i) lista.remove(n) return(sum(sorted(set(lista)))) abundant = [] for i in range(1, 28123 + 1): ...
14.978723
46
0.644886
3fab8d907f59068adacaca3ac3cda32921c04dd4
739
py
Python
cogs/config.py
Xeift/Kizmeow-NFT-Mint-Progress-Discord-Bot
1507857ff838a45492c24d5e7fa2661caf3831c1
[ "MIT" ]
2
2022-03-07T10:41:48.000Z
2022-03-11T01:52:30.000Z
cogs/config.py
Xeift/Kizmeow-NFT-Mint-Progress-Discord-Bot
1507857ff838a45492c24d5e7fa2661caf3831c1
[ "MIT" ]
null
null
null
cogs/config.py
Xeift/Kizmeow-NFT-Mint-Progress-Discord-Bot
1507857ff838a45492c24d5e7fa2661caf3831c1
[ "MIT" ]
null
null
null
import discord import asyncio from discord_slash.utils.manage_commands import create_option import urllib.request as ur import json from discord_slash import cog_ext from core.cog_core import cogcore import os import time class config_check(cogcore): @cog_ext.cog_slash( name="config_check", description="[admin]...
29.56
102
0.746955
4bfd42c1273061e2e9b0aa4c90ca21fd4acf0fd8
3,374
py
Python
mnist_softmax.py
cnishina/tf-mnist
3a60dc6061b29a33bf449500b3875963d1ea97af
[ "MIT" ]
null
null
null
mnist_softmax.py
cnishina/tf-mnist
3a60dc6061b29a33bf449500b3875963d1ea97af
[ "MIT" ]
null
null
null
mnist_softmax.py
cnishina/tf-mnist
3a60dc6061b29a33bf449500b3875963d1ea97af
[ "MIT" ]
null
null
null
# Follows the tutorial https://www.tensorflow.org/get_started/mnist/beginners from tensorflow.examples.tutorials.mnist import input_data import tensorflow as tf class MnistSoftmax: def __init__(self): self.accuracy = None def find_accuracy(self): # Download input from tensorflow mnist...
46.219178
104
0.570243
1fb778d8ca79145f111d9d629e9995d7391cf241
557
py
Python
qmpy/data/__init__.py
JosephMontoya-TRI/qmpy
5a5aa7b25b1231801969ea042bbd2309cacc7859
[ "MIT" ]
1
2019-11-15T20:54:04.000Z
2019-11-15T20:54:04.000Z
qmpy/data/__init__.py
JosephMontoya-TRI/qmpy_py3
5a5aa7b25b1231801969ea042bbd2309cacc7859
[ "MIT" ]
null
null
null
qmpy/data/__init__.py
JosephMontoya-TRI/qmpy_py3
5a5aa7b25b1231801969ea042bbd2309cacc7859
[ "MIT" ]
null
null
null
import yaml import os.path location = os.path.dirname(__file__) data = open(location+'/elements/groups.yml').read() element_groups = yaml.load(data, Loader=yaml.FullLoader) data = open(location+'/elements/data.yml').read() elements = yaml.load(data, Loader=yaml.FullLoader) data = open(location+'/elements/chemical_p...
30.944444
66
0.75763
94de659b2fea4911532e008cef2f0b2acfe3bdd3
3,756
py
Python
faster-rcnn-resnet50/model/faster_rcnn_resnet50.py
fengkaibit/faster-rcnn_resnet50
ad0f9377012aba12a562e2827bc815c79e4b7c8a
[ "MIT" ]
5
2019-05-21T13:20:03.000Z
2021-04-24T15:44:37.000Z
faster-rcnn-resnet50/model/faster_rcnn_resnet50.py
chenjun19950315/faster-rcnn_resnet50
ad0f9377012aba12a562e2827bc815c79e4b7c8a
[ "MIT" ]
1
2019-05-23T03:22:04.000Z
2019-05-23T03:22:04.000Z
faster-rcnn-resnet50/model/faster_rcnn_resnet50.py
fengkaibit/faster-rcnn_resnet50
ad0f9377012aba12a562e2827bc815c79e4b7c8a
[ "MIT" ]
2
2019-05-21T13:20:04.000Z
2019-08-23T08:43:04.000Z
from __future__ import absolute_import import torch from torchvision.models import resnet50 from model.region_proposal_network import RegionProposalNetwork from model.faster_rcnn import FasterRCNN from model.roi_module import RoIPooling2D from utils.config import opt from utils import array_tool from roi_align.function...
36.466019
91
0.660011
83c3b16002beb14208c18622a7af6c420ebea8ff
9,202
py
Python
reinforcement/tensorflow/minigo/selfplay_worker.py
mwnewlin/afit_mlperf_training
abdf362abe6a14a85e13b8b18afe7d40cc9e5430
[ "Apache-2.0" ]
null
null
null
reinforcement/tensorflow/minigo/selfplay_worker.py
mwnewlin/afit_mlperf_training
abdf362abe6a14a85e13b8b18afe7d40cc9e5430
[ "Apache-2.0" ]
12
2019-03-25T17:38:16.000Z
2022-03-11T23:43:25.000Z
reinforcement/tensorflow/minigo/selfplay_worker.py
mwnewlin/afit_mlperf_training
abdf362abe6a14a85e13b8b18afe7d40cc9e5430
[ "Apache-2.0" ]
1
2019-03-11T15:59:25.000Z
2019-03-11T15:59:25.000Z
# Copyright 2018 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, ...
32.982079
111
0.694632
367006a0d92b33733f3798d4757a182275e06f25
19,259
py
Python
local/usap/create_cruise.py
schmidtocean/openrvdas
c83505a41c71d56d8e8edfb4bc3d077700e88b91
[ "BSD-2-Clause" ]
null
null
null
local/usap/create_cruise.py
schmidtocean/openrvdas
c83505a41c71d56d8e8edfb4bc3d077700e88b91
[ "BSD-2-Clause" ]
null
null
null
local/usap/create_cruise.py
schmidtocean/openrvdas
c83505a41c71d56d8e8edfb4bc3d077700e88b91
[ "BSD-2-Clause" ]
null
null
null
#! /usr/bin/env python3 """This script creates a fairly simple "skinny" cruise definition file from a port_def.yaml specification that, in addition to other destinations, also writes parsed data to InfluxDB. A typical invocation would be local/usap/create_cruise.py \ test/NBP1406/NBP1406_port_defs.yaml > test/NB...
28.874063
89
0.554494
314d8b77d3ba2377f8f9060bee4f82ca28277b23
1,314
py
Python
app.py
gabrielbazan/http_auth
5d86669ead6beedd8d980031d09d7dedfc1033fd
[ "MIT" ]
null
null
null
app.py
gabrielbazan/http_auth
5d86669ead6beedd8d980031d09d7dedfc1033fd
[ "MIT" ]
null
null
null
app.py
gabrielbazan/http_auth
5d86669ead6beedd8d980031d09d7dedfc1033fd
[ "MIT" ]
null
null
null
from functools import wraps from flask import Flask, request, jsonify from authentication import AuthenticatorFactory, Token, AuthenticationException app = Flask(__name__) # This is an example, so we declare it here. You should store it elsewhere user_id = None @app.errorhandler(AuthenticationException) def error...
23.890909
79
0.67656
d337436f0559791c01be429314ece6bc54eb8c8e
2,937
py
Python
cloudroast/images/v2/functional/test_get_versions.py
bhushan5/cloudroast
60e05df96fe50b3bc511ee1cf1c818329d4360a1
[ "Apache-2.0" ]
null
null
null
cloudroast/images/v2/functional/test_get_versions.py
bhushan5/cloudroast
60e05df96fe50b3bc511ee1cf1c818329d4360a1
[ "Apache-2.0" ]
null
null
null
cloudroast/images/v2/functional/test_get_versions.py
bhushan5/cloudroast
60e05df96fe50b3bc511ee1cf1c818329d4360a1
[ "Apache-2.0" ]
null
null
null
""" Copyright 2014 Rackspace 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, software dist...
39.16
78
0.670752
f26067e1bf60965e4cdf78886e9a27d84c7b80aa
16,304
py
Python
handleExcel/exportor/scripts/xlrd-1.0.0/scripts/runxlrd.py
Jack301/toolkit
2d1e37a36281af7722be93d4d5299c1ce8b7f365
[ "MIT" ]
95
2016-09-30T02:55:26.000Z
2022-01-12T05:47:30.000Z
handleExcel/exportor/scripts/xlrd-1.0.0/scripts/runxlrd.py
Jack301/toolkit
2d1e37a36281af7722be93d4d5299c1ce8b7f365
[ "MIT" ]
5
2019-06-27T19:02:18.000Z
2019-08-07T07:16:49.000Z
handleExcel/exportor/scripts/xlrd-1.0.0/scripts/runxlrd.py
Jack301/toolkit
2d1e37a36281af7722be93d4d5299c1ce8b7f365
[ "MIT" ]
32
2017-03-28T06:45:09.000Z
2021-12-21T10:33:10.000Z
#!/usr/bin/env python # Copyright (c) 2005-2012 Stephen John Machin, Lingfo Pty Ltd # This script is part of the xlrd package, which is released under a # BSD-style licence. from __future__ import print_function cmd_doc = """ Commands: 2rows Print the contents of first and last row in each sheet 3rows ...
39.286747
101
0.50276
6aff2f810447a6eef6b2eab696fdac584f35e0f9
461
py
Python
src/main/python/gemini/beam_pydss_processing.py
cday97/beam
7e1ab50eecaefafd04daab360f8b12bc7cab559b
[ "BSD-3-Clause-LBNL" ]
1
2021-06-23T00:19:42.000Z
2021-06-23T00:19:42.000Z
src/main/python/gemini/beam_pydss_processing.py
cday97/beam
7e1ab50eecaefafd04daab360f8b12bc7cab559b
[ "BSD-3-Clause-LBNL" ]
3
2020-12-10T19:12:31.000Z
2020-12-11T16:01:43.000Z
src/main/python/gemini/beam_pydss_processing.py
cday97/beam
7e1ab50eecaefafd04daab360f8b12bc7cab559b
[ "BSD-3-Clause-LBNL" ]
1
2022-03-21T19:39:32.000Z
2022-03-21T19:39:32.000Z
import os basefolder = "/Users/haitamlaarabi/Data/GEMINI/2021March22/370k-warmstart/output" beamLog_out = "{}/beamLog.out".format(basefolder) beamLog_out_csv = "{}/beamLog.csv".format(basefolder) file1 = open(beamLog_out, 'r') Lines = file1.readlines() file2 = open(beamLog_out_csv, 'w') # Strips the newline character ...
28.8125
81
0.720174
2a12fd47548ccd8bef8780c2789c325774728994
580
py
Python
django_shares/views/auth.py
InfoAgeTech/django-shares
1b301852fa261a7eb6c872dc912517368da6cb33
[ "MIT" ]
null
null
null
django_shares/views/auth.py
InfoAgeTech/django-shares
1b301852fa261a7eb6c872dc912517368da6cb33
[ "MIT" ]
null
null
null
django_shares/views/auth.py
InfoAgeTech/django-shares
1b301852fa261a7eb6c872dc912517368da6cb33
[ "MIT" ]
null
null
null
from django.core.exceptions import PermissionDenied class ShareRequiredViewMixin(object): """Share mixin that ensures the authenticated user has a share to the object being viewed or get a permission denied. This method assumes the following mixin has already been called: * django_shares.mixins....
34.117647
76
0.72931
744765130def8a1b28ebe4cc5cac3ffa1667b884
1,916
py
Python
src/keyboard.py
coders-creed/botathon
b98e6302d43cd1bcad5c79fbb3d8b02b3cfab2ae
[ "MIT" ]
1
2017-02-06T22:32:05.000Z
2017-02-06T22:32:05.000Z
src/keyboard.py
coders-creed/botathon
b98e6302d43cd1bcad5c79fbb3d8b02b3cfab2ae
[ "MIT" ]
null
null
null
src/keyboard.py
coders-creed/botathon
b98e6302d43cd1bcad5c79fbb3d8b02b3cfab2ae
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # @Author: chandan # @Date: 2016-12-11 09:49:42 # @Last Modified by: chandan # @Last Modified time: 2016-12-11 09:50:08 #!/usr/bin/env python # -*- coding: utf-8 -*- # # Basic example for a bot that uses inline keyboards. # This program is dedicated to the public domain under the CC0 license...
31.409836
82
0.70929
1ec94519e285dcf3f19f57935728514ea81581b6
3,759
py
Python
tests/servers/test_windows.py
ginjeni1/mountequist
795d6921e41be8c3097c7c4a06f0ad0a1e4742b5
[ "MIT" ]
null
null
null
tests/servers/test_windows.py
ginjeni1/mountequist
795d6921e41be8c3097c7c4a06f0ad0a1e4742b5
[ "MIT" ]
null
null
null
tests/servers/test_windows.py
ginjeni1/mountequist
795d6921e41be8c3097c7c4a06f0ad0a1e4742b5
[ "MIT" ]
null
null
null
import os import subprocess import sys import pytest from mountequist import exceptions from mountequist.servers import windows from mountequist.util import get_root_mountebank_path from tests.defaults import DEFAULT_TEST_PATH from tests.helpers import is_process_active windows_only = pytest.mark.skipif(sys.platform...
31.588235
83
0.741687
9ca4ed668cc77b9cf2f4da33a0e6899b47ca5a3c
457
py
Python
hc/accounts/migrations/0004_profile_api_key.py
andela/healthchecks_aphas
a08f9208f569f6bd3e51ef40b9e95dfc675705a1
[ "BSD-3-Clause" ]
3
2017-12-14T03:23:59.000Z
2021-07-07T13:19:32.000Z
hc/accounts/migrations/0004_profile_api_key.py
andela/healthchecks_aphas
a08f9208f569f6bd3e51ef40b9e95dfc675705a1
[ "BSD-3-Clause" ]
34
2019-09-05T06:41:12.000Z
2021-06-25T15:25:28.000Z
hc/accounts/migrations/0004_profile_api_key.py
andela/healthchecks_aphas
a08f9208f569f6bd3e51ef40b9e95dfc675705a1
[ "BSD-3-Clause" ]
30
2017-04-22T07:09:56.000Z
2019-06-30T08:24:01.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9 on 2016-02-16 12:14 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('accounts', '0003_profile_token'), ] operations = [ migrations.AddField( ...
21.761905
63
0.617068
a99747d7619ca494ac6e0807a7fe585a4ff56ce8
282
py
Python
backend/app/main.py
uedaeita/bestsell
b452017168aae10799d0b8f4a8f2dd83b39635d0
[ "MIT" ]
null
null
null
backend/app/main.py
uedaeita/bestsell
b452017168aae10799d0b8f4a8f2dd83b39635d0
[ "MIT" ]
null
null
null
backend/app/main.py
uedaeita/bestsell
b452017168aae10799d0b8f4a8f2dd83b39635d0
[ "MIT" ]
null
null
null
from typing import Dict from fastapi import FastAPI from app.api.v1.api import api_router app = FastAPI( title="BestSell", root_path="/bestsell/api", ) @app.get("/") def health_check() -> Dict[str, str]: return {"version": "1.0.0"} app.include_router(api_router)
14.842105
37
0.680851
9a8b40cb263b3d9d1074b43df307b0f5347e0b72
3,940
py
Python
kubernetes_asyncio/client/models/v1alpha1_group_subject.py
icamposrivera/kubernetes_asyncio
f028cc793e3a2c519be6a52a49fb77ff0b014c9b
[ "Apache-2.0" ]
null
null
null
kubernetes_asyncio/client/models/v1alpha1_group_subject.py
icamposrivera/kubernetes_asyncio
f028cc793e3a2c519be6a52a49fb77ff0b014c9b
[ "Apache-2.0" ]
null
null
null
kubernetes_asyncio/client/models/v1alpha1_group_subject.py
icamposrivera/kubernetes_asyncio
f028cc793e3a2c519be6a52a49fb77ff0b014c9b
[ "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.19.15 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six f...
31.774194
224
0.601523
440bb53284285a6e49f9a59028777474b4773663
4,936
py
Python
herokuapp/main.py
Quuxplusone/cwg-issue-browser
f4c245d59ae3518865fc6c46f788f2759b6bf346
[ "MIT" ]
1
2019-05-28T00:14:31.000Z
2019-05-28T00:14:31.000Z
herokuapp/main.py
Quuxplusone/cwg-issue-browser
f4c245d59ae3518865fc6c46f788f2759b6bf346
[ "MIT" ]
null
null
null
herokuapp/main.py
Quuxplusone/cwg-issue-browser
f4c245d59ae3518865fc6c46f788f2759b6bf346
[ "MIT" ]
null
null
null
#!/usr/bin/env python import bottle from bottle import Bottle import os import re import requests import time app = Bottle() bottle.TEMPLATE_PATH.insert(0, os.path.join(os.path.dirname(os.path.realpath(__file__)), 'views')) class NoSuchIssueException(Exception): def __init__(self, n): self.issue_number...
28.697674
98
0.608185
e32e910cac0d3c44e88e8fad2d0ff65892a6a12f
3,541
py
Python
chapter11-语音识别(LSTM-CTC)/data.py
1364354238/PYTORCH_LEARNING
d7ab877512ab41c80b37ab68bd1a42193916f31c
[ "MIT" ]
137
2018-11-13T06:35:49.000Z
2022-03-07T09:21:31.000Z
chapter11-语音识别(LSTM-CTC)/data.py
WQAQs/PYTORCH_LEARNING
d7ab877512ab41c80b37ab68bd1a42193916f31c
[ "MIT" ]
null
null
null
chapter11-语音识别(LSTM-CTC)/data.py
WQAQs/PYTORCH_LEARNING
d7ab877512ab41c80b37ab68bd1a42193916f31c
[ "MIT" ]
54
2018-11-13T09:38:37.000Z
2022-03-25T03:46:25.000Z
#encoding=utf-8 #本文件继承构建了Dataset类和DataLoader类,用来处理音频和标签文件 #转化为网络可输入的格式 import os import torch import scipy.signal from torch.utils.data import Dataset from torch.utils.data import DataLoader from utils import parse_audio, process_label_file windows = {'hamming':scipy.signal.hamming, 'hann':scipy.signal.hann, 'blackm...
36.885417
106
0.614516
419e7b9bdef5c7567024c51b6f7036ffd6a822b9
318
py
Python
s2cnn/__init__.py
aycatakmaz/s2cnn
b75efee458686e7d7ecb4c337402c668ede0dece
[ "MIT" ]
853
2017-12-03T19:03:02.000Z
2021-07-23T13:41:30.000Z
s2cnn/__init__.py
aycatakmaz/s2cnn
b75efee458686e7d7ecb4c337402c668ede0dece
[ "MIT" ]
52
2018-04-13T15:33:47.000Z
2021-07-28T19:41:56.000Z
s2cnn/__init__.py
aycatakmaz/s2cnn
b75efee458686e7d7ecb4c337402c668ede0dece
[ "MIT" ]
169
2017-12-15T17:47:24.000Z
2021-07-10T09:18:15.000Z
# pylint: disable=R,C,E1101,W0401 from .s2_ft import s2_rft from .so3_ft import so3_rft from .s2_grid import s2_near_identity_grid, s2_equatorial_grid, s2_soft_grid from .so3_grid import so3_near_identity_grid, so3_equatorial_grid, so3_soft_grid from .s2_mm import s2_mm from .so3_mm import so3_mm from .soft import *
35.333333
80
0.833333
3e0a4855905b15b4fcf3de92458339e12e8741b7
805
py
Python
users/migrations/0001_initial.py
royaleagle-dev/flinch
789262cc207b3fa10ab6882ef8aa72ab368bee85
[ "Apache-2.0" ]
null
null
null
users/migrations/0001_initial.py
royaleagle-dev/flinch
789262cc207b3fa10ab6882ef8aa72ab368bee85
[ "Apache-2.0" ]
null
null
null
users/migrations/0001_initial.py
royaleagle-dev/flinch
789262cc207b3fa10ab6882ef8aa72ab368bee85
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.2.7 on 2020-04-19 01:33 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
29.814815
121
0.63354
a83f1af2e7e8c7126eb0bf469f4e4d20dfa91f10
4,279
py
Python
benchmark/startQiskit_QC2681.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startQiskit_QC2681.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startQiskit_QC2681.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=4 # total number=35 import cirq import qiskit from qiskit import IBMQ from qiskit.providers.ibmq import least_busy from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister from qiskit import BasicAer, execute, transpile from pprint import pprint from qiskit.test.mock import FakeVigo from ma...
35.07377
165
0.655293
53fe057302123598794eaa2a073e92211f6d7739
4,369
py
Python
tests/benchmarks.py
smartfile/wsgidav
17df81a4b8b92c153d7a50a463a60bbe0868545e
[ "MIT" ]
1
2015-04-28T19:16:01.000Z
2015-04-28T19:16:01.000Z
tests/benchmarks.py
smartfile/wsgidav
17df81a4b8b92c153d7a50a463a60bbe0868545e
[ "MIT" ]
null
null
null
tests/benchmarks.py
smartfile/wsgidav
17df81a4b8b92c153d7a50a463a60bbe0868545e
[ "MIT" ]
null
null
null
# -*- coding: iso-8859-1 -*- # (c) 2009-2014 Martin Wendt and contributors; see WsgiDAV https://github.com/mar10/wsgidav # Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php """ Benchmark suite for WsgiDAV. This test suite uses davclient to generate WebDAV requests. ...
30.985816
99
0.624857
41e3619c3a2930f22602f9e068f254f6ba0b63e0
1,910
py
Python
position.py
sattila83/Robocar
3454b4ed15d985b0bfa1a9388c20546081124ae9
[ "MIT" ]
1
2017-07-06T09:22:24.000Z
2017-07-06T09:22:24.000Z
position.py
sattila83/Robocar
3454b4ed15d985b0bfa1a9388c20546081124ae9
[ "MIT" ]
null
null
null
position.py
sattila83/Robocar
3454b4ed15d985b0bfa1a9388c20546081124ae9
[ "MIT" ]
null
null
null
#!/usr/bin/env python import math EARTH_RADIUS = 6371e3; class Position: def __init__(self, lat = 0.0, lon = 0.0): self.lat = math.radians(float(lat)) self.lon = math.radians(float(lon)) def __cmp__(self, other): if 0.0 == self.distanceTo(other): return 0 elif self.bearingTo(other) < other.bearingTo(se...
31.833333
203
0.663351
106bdbf8ef5d0f5b7c18d17104e19a900bd3184a
329
py
Python
homeassistant/util/yaml/__init__.py
domwillcode/home-assistant
f170c80bea70c939c098b5c88320a1c789858958
[ "Apache-2.0" ]
23
2017-11-15T21:03:53.000Z
2021-03-29T21:33:48.000Z
homeassistant/util/yaml/__init__.py
domwillcode/home-assistant
f170c80bea70c939c098b5c88320a1c789858958
[ "Apache-2.0" ]
52
2020-07-14T14:12:26.000Z
2022-03-31T06:24:02.000Z
homeassistant/util/yaml/__init__.py
klauern/home-assistant-core
c18ba6aec0627e6afb6442c678edb5ff2bb17db6
[ "Apache-2.0" ]
10
2018-01-01T00:12:51.000Z
2021-12-21T23:08:05.000Z
"""YAML utility functions.""" from .const import _SECRET_NAMESPACE, SECRET_YAML from .dumper import dump, save_yaml from .loader import clear_secret_cache, load_yaml, secret_yaml __all__ = [ "SECRET_YAML", "_SECRET_NAMESPACE", "dump", "save_yaml", "clear_secret_cache", "load_yaml", "secret_...
21.933333
62
0.705167
325faf3a45c21df26e15c4bba8ca0c39031fa5b8
795
py
Python
var/spack/repos/builtin/packages/py-magic/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/py-magic/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
8
2021-11-09T20:28:40.000Z
2022-03-15T03:26:33.000Z
var/spack/repos/builtin/packages/py-magic/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2019-02-08T20:37:20.000Z
2019-03-31T15:19:26.000Z
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack.package import * class PyMagic(PythonPackage): """A python wrapper for libmagic. .. warning:: ...
33.125
113
0.700629
f0713ed5cd83ed0691f7e5b3f07899851b0aafc3
3,256
py
Python
jaxdl/rl/networks/actor_nets.py
patrickhart/jaxdl
032df55292410c2976703213e67fff7bcafaedbe
[ "MIT" ]
1
2022-02-09T09:19:40.000Z
2022-02-09T09:19:40.000Z
jaxdl/rl/networks/actor_nets.py
patrickhart/jaxdl
032df55292410c2976703213e67fff7bcafaedbe
[ "MIT" ]
null
null
null
jaxdl/rl/networks/actor_nets.py
patrickhart/jaxdl
032df55292410c2976703213e67fff7bcafaedbe
[ "MIT" ]
null
null
null
"""Actor network implementations""" import functools from typing import Callable, Optional, Sequence, Tuple import numpy as np import flax.linen as nn import jax import jax.numpy as jnp from tensorflow_probability.substrates import jax as tfp tfb = tfp.bijectors tfd = tfp.distributions from jaxdl.utils.commons import...
29.6
80
0.727273
5e293fbf998bba3828307fb747310dbcc443e679
9
py
Python
packages/jsii-rosetta/test/translations/expressions/prefix_unary_expression.py
NGL321/jsii
a31ebf5ef676391d97f2286edc21e5859c38c96c
[ "Apache-2.0" ]
1
2019-12-12T21:51:17.000Z
2019-12-12T21:51:17.000Z
packages/jsii-rosetta/test/translations/expressions/prefix_unary_expression.py
NGL321/jsii
a31ebf5ef676391d97f2286edc21e5859c38c96c
[ "Apache-2.0" ]
424
2020-10-08T16:37:02.000Z
2022-03-30T22:04:41.000Z
packages/jsii-rosetta/test/translations/expressions/prefix_unary_expression.py
NGL321/jsii
a31ebf5ef676391d97f2286edc21e5859c38c96c
[ "Apache-2.0" ]
1
2019-10-07T05:51:48.000Z
2019-10-07T05:51:48.000Z
print(-3)
9
9
0.666667
e7f9c58acd6f1ff48f4955a8c244b5dae489e040
2,953
py
Python
scripts/necklace/gui/simple_ui.py
r4inm4ker/neklace
93d7ee3d3b9017144fcda16a34959933b4a48a06
[ "Apache-2.0" ]
null
null
null
scripts/necklace/gui/simple_ui.py
r4inm4ker/neklace
93d7ee3d3b9017144fcda16a34959933b4a48a06
[ "Apache-2.0" ]
null
null
null
scripts/necklace/gui/simple_ui.py
r4inm4ker/neklace
93d7ee3d3b9017144fcda16a34959933b4a48a06
[ "Apache-2.0" ]
1
2017-12-08T15:21:31.000Z
2017-12-08T15:21:31.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Author: Jefri Haryono # @Email : jefri.yeh@gmail.com import pymel.core as pm import necklace.lib as nlib class NecklaceSimpleUI(): uiName = 'necklaceSimpleUI' uiTitle = 'Necklace Simple UI' necklaceName = 'testNecklaceNode' tmpGrp = 'necklaceDupGrp' ...
29.828283
88
0.540129
daf48954d7d70e4e13a788c69736a83c31cf30c3
17,921
py
Python
scripts/transforms.py
MichelML/ml-aging
b54470c00450da7d5b50e7be4a1f162f1c4b8531
[ "Apache-2.0" ]
7
2019-07-08T06:24:53.000Z
2022-03-22T13:41:00.000Z
scripts/transforms.py
MichelML/ml-aging
b54470c00450da7d5b50e7be4a1f162f1c4b8531
[ "Apache-2.0" ]
null
null
null
scripts/transforms.py
MichelML/ml-aging
b54470c00450da7d5b50e7be4a1f162f1c4b8531
[ "Apache-2.0" ]
2
2019-08-19T13:43:49.000Z
2019-08-25T02:01:48.000Z
""" This module includes modified versions of some Pytorch transforms functions to be able to modify a sequence of images with the exact same transformations. See https://pytorch.org/docs/stable/_modules/torchvision/transforms/transforms.html to see The original methods. """ from __future__ import division import ...
37.335417
108
0.612131
ef7a649c9b7477c44a349f837170b1dcb28520d3
3,340
py
Python
src/homework/d_repetition/main.py
acc-cosc-1336-spring-2022/acc-cosc-1336-spring-2022-ChristianHamilton77
ee6156890c5ca581fe1e18cec58f5bbd4010d088
[ "MIT" ]
null
null
null
src/homework/d_repetition/main.py
acc-cosc-1336-spring-2022/acc-cosc-1336-spring-2022-ChristianHamilton77
ee6156890c5ca581fe1e18cec58f5bbd4010d088
[ "MIT" ]
null
null
null
src/homework/d_repetition/main.py
acc-cosc-1336-spring-2022/acc-cosc-1336-spring-2022-ChristianHamilton77
ee6156890c5ca581fe1e18cec58f5bbd4010d088
[ "MIT" ]
null
null
null
# import repetition #print(repetition.sum_odd_numbers(9)) #print(repetition.get_factorial(4)) #/////// ~f def dblChk(run,message): while run == True: #print('run = ',run,"\n") display = input(message) #validate if display == 'y' or display == 'Y' or display == 'n' or display == 'N...
31.809524
89
0.508683
16a1e0a7154bd12dc10f2e1e307b16113907a037
1,753
py
Python
gryphon/core/operations/bash_utils.py
ow-gryphon/gryphon
0b34f2f61a50af46b9d1ec1d3c15d53cf4055dd5
[ "MIT" ]
null
null
null
gryphon/core/operations/bash_utils.py
ow-gryphon/gryphon
0b34f2f61a50af46b9d1ec1d3c15d53cf4055dd5
[ "MIT" ]
1
2022-03-08T14:54:26.000Z
2022-03-08T15:02:52.000Z
gryphon/core/operations/bash_utils.py
ow-gryphon/gryphon
0b34f2f61a50af46b9d1ec1d3c15d53cf4055dd5
[ "MIT" ]
null
null
null
import errno import logging import os import shutil import stat from pathlib import Path logger = logging.getLogger('gryphon') def on_error(func, path, exc): value = exc[1] # os.rmdir if func in (os.unlink, os.remove) and value.errno == errno.EACCES: os.chmod(path, stat.S_IRWXU | stat.S_IRWXG | stat...
26.969231
82
0.615516
4fe5ae92f697b3802e6a0f846877561ac914651d
5,173
py
Python
openstackclient/volume/v3/volume_message.py
mydevice/python-openstackclient
4891bb38208fdcd1a2ae60e47b056841e14fbdf7
[ "Apache-2.0" ]
262
2015-01-29T20:10:49.000Z
2022-03-23T01:59:23.000Z
openstackclient/volume/v3/volume_message.py
mydevice/python-openstackclient
4891bb38208fdcd1a2ae60e47b056841e14fbdf7
[ "Apache-2.0" ]
5
2015-01-21T02:37:35.000Z
2021-11-23T02:26:00.000Z
openstackclient/volume/v3/volume_message.py
mydevice/python-openstackclient
4891bb38208fdcd1a2ae60e47b056841e14fbdf7
[ "Apache-2.0" ]
194
2015-01-08T07:39:27.000Z
2022-03-30T13:51:23.000Z
# # 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, software # distr...
31.162651
77
0.593273
45b78f024c449f52fdb3ae8ed4377e61bdb40080
5,331
py
Python
airflow/providers/amazon/aws/transfers/mysql_to_s3.py
emilioego/airflow
3457c7847cd24413ff5b622e65c27d8370f94502
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
79
2021-10-15T07:32:27.000Z
2022-03-28T04:10:19.000Z
airflow/providers/amazon/aws/transfers/mysql_to_s3.py
emilioego/airflow
3457c7847cd24413ff5b622e65c27d8370f94502
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
153
2021-10-15T05:23:46.000Z
2022-02-23T06:07:10.000Z
airflow/providers/amazon/aws/transfers/mysql_to_s3.py
emilioego/airflow
3457c7847cd24413ff5b622e65c27d8370f94502
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
23
2021-10-15T02:36:37.000Z
2022-03-17T02:59:27.000Z
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
41.325581
109
0.672669
52eeb394830606375c0ab62c69ace2c3897ed19d
389
py
Python
misago/misago/conf/staticsettings.py
vascoalramos/misago-deployment
20226072138403108046c0afad9d99eb4163cedc
[ "MIT" ]
2
2021-03-06T21:06:13.000Z
2021-03-09T15:05:12.000Z
misago/misago/conf/staticsettings.py
vascoalramos/misago-deployment
20226072138403108046c0afad9d99eb4163cedc
[ "MIT" ]
null
null
null
misago/misago/conf/staticsettings.py
vascoalramos/misago-deployment
20226072138403108046c0afad9d99eb4163cedc
[ "MIT" ]
null
null
null
from django.conf import settings from . import defaults class StaticSettings: def __getattr__(self, name): try: return getattr(settings, name) except AttributeError: pass try: return getattr(defaults, name) except AttributeError: pa...
20.473684
64
0.601542
28dad0395aa2df7ae897d8f355cedccbf777859d
324
py
Python
forkplot3d/parameters.py
raalesir/forkplot3d
068fb2472870cfc57201eb7c738afa124931f56b
[ "MIT" ]
null
null
null
forkplot3d/parameters.py
raalesir/forkplot3d
068fb2472870cfc57201eb7c738afa124931f56b
[ "MIT" ]
null
null
null
forkplot3d/parameters.py
raalesir/forkplot3d
068fb2472870cfc57201eb7c738afa124931f56b
[ "MIT" ]
null
null
null
""" parameters for system and simulation """ import numpy as np l_0 = 0.7 # the "equilibrium" length of the bond between nodes of the same size bin number_of_size_bins = 10 # the number of size bins number_of_histogram_bins = np.linspace(0,5,30) #20 # number of bins for histogram for each node PLOT_ROOT ='plots...
19.058824
95
0.734568
d1a15b9094bc7fa13330eef75f713c369496ef05
2,829
py
Python
twitchbot/database/models.py
jostster/PythonTwitchBotFramework
931fdac9226b0086b37a011fd7c0265580c87ef0
[ "MIT" ]
null
null
null
twitchbot/database/models.py
jostster/PythonTwitchBotFramework
931fdac9226b0086b37a011fd7c0265580c87ef0
[ "MIT" ]
null
null
null
twitchbot/database/models.py
jostster/PythonTwitchBotFramework
931fdac9226b0086b37a011fd7c0265580c87ef0
[ "MIT" ]
null
null
null
from asyncio import Future, Task from sqlalchemy import Column, Integer, String, Float, Boolean from ..config import cfg from ..enums import CommandContext from .session import Base, database_init __all__ = ('Quote', 'CustomCommand') class Quote(Base): __tablename__ = 'quotes' id = Column(Integer, primary...
30.095745
106
0.699187
ed16ec3f21338900892241d0f06e54dd4f1fb83e
2,032
py
Python
main.py
EmanuelAngelo/emailporvoz
925b37c57106964dbd38bc7acf700d968ee75846
[ "MIT" ]
null
null
null
main.py
EmanuelAngelo/emailporvoz
925b37c57106964dbd38bc7acf700d968ee75846
[ "MIT" ]
null
null
null
main.py
EmanuelAngelo/emailporvoz
925b37c57106964dbd38bc7acf700d968ee75846
[ "MIT" ]
null
null
null
import pyttsx3 import speech_recognition as speech import smtplib from email.message import EmailMessage motor = pyttsx3.init() def jarvisPobreFalar(mensagem): #converter texto em voz motor.say(mensagem) motor.runAndWait() # jarvisPobreFalar("Por quê Emanuel é lindo?") def jarvisPobreOuvir(): ...
30.787879
96
0.639272
05858f9f3937539515db07acf38e749723f48719
1,036
py
Python
secret auction.py
claudialsm/mini-projects
d0d3033074dee1ee94abb01fae2365371e5a5285
[ "MIT" ]
null
null
null
secret auction.py
claudialsm/mini-projects
d0d3033074dee1ee94abb01fae2365371e5a5285
[ "MIT" ]
null
null
null
secret auction.py
claudialsm/mini-projects
d0d3033074dee1ee94abb01fae2365371e5a5285
[ "MIT" ]
null
null
null
"""Secret Auction Program The program secretly asks each participant to state their max bid, and chooses the max winner once all bids have been received. """ from os import system def ask_bid(): # Secret individual bid session name = input("What is your name?: ") amount = int(input("What is y...
31.393939
114
0.616795
f6171ffb69722daef8bbc02dae4f5f0dfd762498
821
py
Python
nectr/chat/migrations/0003_auto_20170511_0436.py
FarmingdaleTUTR/nectr
39b6e2b65bc9d9b1877f1b7c31258b2558fff371
[ "MIT" ]
1
2017-05-07T11:40:22.000Z
2017-05-07T11:40:22.000Z
nectr/chat/migrations/0003_auto_20170511_0436.py
FarmingdaleTUTR/nectr
39b6e2b65bc9d9b1877f1b7c31258b2558fff371
[ "MIT" ]
83
2017-03-17T15:00:02.000Z
2017-05-08T02:59:32.000Z
nectr/chat/migrations/0003_auto_20170511_0436.py
FarmingdaleTUTR/nectr
39b6e2b65bc9d9b1877f1b7c31258b2558fff371
[ "MIT" ]
2
2017-04-04T22:54:16.000Z
2017-05-07T05:51:38.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-05-11 04:36 from __future__ import unicode_literals import datetime from django.db import migrations, models from django.utils.timezone import utc class Migration(migrations.Migration): dependencies = [ ('chat', '0002_auto_20170510_1535'), ...
29.321429
109
0.644336
eb705d20625f3e62bfb25e31c4f1c293e328bc94
7,265
py
Python
jsjy/models.py
Qin6468/Schoolmanagement
8991bd12069d249156ced89a6311589667061ac5
[ "MulanPSL-1.0" ]
null
null
null
jsjy/models.py
Qin6468/Schoolmanagement
8991bd12069d249156ced89a6311589667061ac5
[ "MulanPSL-1.0" ]
1
2021-01-05T06:46:53.000Z
2021-01-05T06:46:53.000Z
jsjy/models.py
Qin6468/Schoolmanagement
8991bd12069d249156ced89a6311589667061ac5
[ "MulanPSL-1.0" ]
3
2021-01-04T12:20:23.000Z
2021-01-04T14:01:29.000Z
from flask_sqlalchemy import SQLAlchemy db = SQLAlchemy() class Admin(db.Model): """用户表 """ id = db.Column(db.Integer, primary_key=True) admin = db.Column(db.String(20), unique=True, nullable=False) password = db.Column(db.String(32), nullable=False) salt = db.Column(db.String(32), nullable=F...
28.944223
105
0.625877
76c938a8ba8e948cb9c1f600ec4af0d5877eabec
1,888
py
Python
edexOsgi/com.raytheon.edex.plugin.gfe/utility/common_static/base/gfe/smartinit/HPCQPF.py
srcarter3/awips2
37f31f5e88516b9fd576eaa49d43bfb762e1d174
[ "Apache-2.0" ]
null
null
null
edexOsgi/com.raytheon.edex.plugin.gfe/utility/common_static/base/gfe/smartinit/HPCQPF.py
srcarter3/awips2
37f31f5e88516b9fd576eaa49d43bfb762e1d174
[ "Apache-2.0" ]
null
null
null
edexOsgi/com.raytheon.edex.plugin.gfe/utility/common_static/base/gfe/smartinit/HPCQPF.py
srcarter3/awips2
37f31f5e88516b9fd576eaa49d43bfb762e1d174
[ "Apache-2.0" ]
1
2021-10-30T00:03:05.000Z
2021-10-30T00:03:05.000Z
## # This software was developed and / or modified by Raytheon Company, # pursuant to Contract DG133W-05-CQ-1067 with the US Government. # # U.S. EXPORT CONTROLLED TECHNICAL DATA # This software product contains export-restricted data whose # export/transfer/disclosure is restricted by U.S. law. Dissemination # to ...
37.76
78
0.577331
f1132334b867a0a393c0473b7b9b0241f1846dc9
1,740
py
Python
recipes/multisig/1_create_address.py
GRS-Community/pycoin
4a9b9722c91e2831519ddf9675fe8c70246432b7
[ "MIT" ]
5
2017-12-15T13:40:50.000Z
2021-12-18T13:18:54.000Z
recipes/multisig/1_create_address.py
GRS-Community/pycoin
4a9b9722c91e2831519ddf9675fe8c70246432b7
[ "MIT" ]
1
2018-08-06T03:48:14.000Z
2018-09-03T03:01:03.000Z
recipes/multisig/1_create_address.py
GRS-Community/pycoin
4a9b9722c91e2831519ddf9675fe8c70246432b7
[ "MIT" ]
6
2018-08-24T18:49:47.000Z
2021-01-19T10:04:08.000Z
#!/usr/bin/env python # This script shows you how to create a "2-of-3" multisig address. # It requires BIP32 private key file. import os import sys from pycoin.key.BIP32Node import BIP32Node from pycoin.serialize import b2h from pycoin.ui import address_for_pay_to_script from pycoin.tx.pay_to.ScriptMultisig import S...
31.636364
82
0.683908
01ac40107585cdef221ae7135388afa87cf265f6
8,714
py
Python
cogs/commands/misc/giveaway.py
Ultra03/BottyMcBotface
40226c1bdf2d05ff7835101f7a8a389828ec70b0
[ "MIT" ]
null
null
null
cogs/commands/misc/giveaway.py
Ultra03/BottyMcBotface
40226c1bdf2d05ff7835101f7a8a389828ec70b0
[ "MIT" ]
null
null
null
cogs/commands/misc/giveaway.py
Ultra03/BottyMcBotface
40226c1bdf2d05ff7835101f7a8a389828ec70b0
[ "MIT" ]
null
null
null
import discord import asyncio import datetime import pytimeparse import random import traceback from cogs.utils.tasks import end_giveaway from data.giveaway import Giveaway as GiveawayDB from discord.ext import commands class Giveaway(commands.Cog): def __init__(self, bot): self.bot = bot async def p...
37.239316
150
0.59261