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
17f768248d44ecf63c14499639b0be8e9b44ed00
17,118
py
Python
colour/contrast/barten1999.py
OmarWagih1/colour
bdc880a2783ff523dafb19f1233212dd03a639bd
[ "BSD-3-Clause" ]
2
2020-06-20T03:44:41.000Z
2020-06-20T14:08:41.000Z
colour/contrast/barten1999.py
OmarWagih1/colour
bdc880a2783ff523dafb19f1233212dd03a639bd
[ "BSD-3-Clause" ]
null
null
null
colour/contrast/barten1999.py
OmarWagih1/colour
bdc880a2783ff523dafb19f1233212dd03a639bd
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Barten (1999) Contrast Sensitivity Function =========================================== Defines *Barten (1999)* contrast sensitivity function: - :func:`colour.contrast.contrast_sensitivity_function_Barten1999` References ---------- - :cite:`Barten1999` : Barten, P. G. (1999). Contrast...
37.539474
79
0.60895
7ccb74d8b503f2d6817e9675ca9d94abddebed0a
2,245
py
Python
social/models.py
7workday/TT
8887a85652c387a50a65e2598abdc833400e56f3
[ "Apache-2.0" ]
null
null
null
social/models.py
7workday/TT
8887a85652c387a50a65e2598abdc833400e56f3
[ "Apache-2.0" ]
null
null
null
social/models.py
7workday/TT
8887a85652c387a50a65e2598abdc833400e56f3
[ "Apache-2.0" ]
null
null
null
from django.db import models from django.db.models import Q from sqlite3 import IntegrityError from common import stat class Swiped(models.Model): '''滑动记录''' STYPES = ( ('like', '右滑'), ('superlike', '上滑'), ('dislike', '左滑'), ) uid = models.IntegerField(verbose_name='用户 ID') ...
29.933333
93
0.604454
90179942b479c02a62c0f83dc133fc47dd16d363
906
py
Python
typed_python/compiler/tests/subclass_of_test.py
APrioriInvestments/nativepython
94e6b09d788e49cbe34b9b0d3c948218d7a8dcc5
[ "Apache-2.0" ]
52
2019-04-12T18:07:56.000Z
2019-10-07T10:26:19.000Z
typed_python/compiler/tests/subclass_of_test.py
APrioriInvestments/nativepython
94e6b09d788e49cbe34b9b0d3c948218d7a8dcc5
[ "Apache-2.0" ]
135
2019-04-15T12:52:56.000Z
2019-10-08T18:39:58.000Z
typed_python/compiler/tests/subclass_of_test.py
APrioriInvestments/nativepython
94e6b09d788e49cbe34b9b0d3c948218d7a8dcc5
[ "Apache-2.0" ]
1
2019-04-12T13:03:38.000Z
2019-04-12T13:03:38.000Z
from typed_python import Entrypoint, SubclassOf, Class, Final, Function, ListOf class A(Class): pass class B(A): pass class C(B, Final): pass def test_can_cast_subclass_of_correctly(): @Function def f(c: SubclassOf(C)): return "C" @f.overload def f(c: SubclassOf(B)): ...
18.12
79
0.540839
34e0ba9664536d5200cea4a58b149563fc8fc3da
7,347
py
Python
pywick/models/segmentation/refinenet/refinenet.py
achaiah/pywick
9d663faf0c1660a9b8359a6472c164f658dfc8cb
[ "MIT" ]
408
2019-05-16T16:12:41.000Z
2022-03-26T17:27:12.000Z
pywick/models/segmentation/refinenet/refinenet.py
ashishpatel26/pywick
1afffd1c21c2b188836d3599e802146182757bb5
[ "MIT" ]
13
2019-05-17T05:47:06.000Z
2021-06-21T19:02:30.000Z
pywick/models/segmentation/refinenet/refinenet.py
ashishpatel26/pywick
1afffd1c21c2b188836d3599e802146182757bb5
[ "MIT" ]
42
2019-05-16T19:57:12.000Z
2022-03-06T15:23:18.000Z
# Source: https://github.com/thomasjpfan/pytorch_refinenet (License: MIT) """ Implementation of `RefineNet: Multi-Path Refinement Networks for High-Resolution Semantic Segmentation <https://arxiv.org/abs/1611.06612>`_. """ import torch.nn as nn import torchvision.models as models import torch.nn.functional as F from...
38.465969
140
0.573567
c1619f8d2d0f89b12e96435210c9cf9a161f8b3e
1,692
py
Python
launch/sample_laserscan_to_pointcloud_launch.py
charlielito/pointcloud_to_laserscan
6bc835a4b718e08a45a832d4af44040c2e13e418
[ "BSD-3-Clause" ]
213
2016-01-21T03:55:52.000Z
2022-03-31T13:23:55.000Z
launch/sample_laserscan_to_pointcloud_launch.py
charlielito/pointcloud_to_laserscan
6bc835a4b718e08a45a832d4af44040c2e13e418
[ "BSD-3-Clause" ]
57
2015-06-08T17:13:19.000Z
2022-03-16T07:49:24.000Z
launch/sample_laserscan_to_pointcloud_launch.py
charlielito/pointcloud_to_laserscan
6bc835a4b718e08a45a832d4af44040c2e13e418
[ "BSD-3-Clause" ]
165
2015-08-20T22:05:38.000Z
2022-03-29T08:53:53.000Z
from launch import LaunchDescription from launch.actions import DeclareLaunchArgument from launch.actions import ExecuteProcess from launch.substitutions import LaunchConfiguration from launch_ros.actions import Node import yaml def generate_launch_description(): return LaunchDescription([ DeclareLaunchA...
38.454545
93
0.559693
492694a8f4162cf9a89910ff56fad00b7647a2ab
9,323
py
Python
docs/conf.py
seven-qi/ThreadedMessenger
66afb7dc5ed9f96a89b4969648bd0ae510859ed3
[ "MIT" ]
null
null
null
docs/conf.py
seven-qi/ThreadedMessenger
66afb7dc5ed9f96a89b4969648bd0ae510859ed3
[ "MIT" ]
null
null
null
docs/conf.py
seven-qi/ThreadedMessenger
66afb7dc5ed9f96a89b4969648bd0ae510859ed3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Threaded Messenger documentation build configuration file, created by # sphinx-quickstart on Fri Jan 22 23:36:13 2016. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated ...
32.484321
79
0.718975
095d0f6bda48ee03264a1260174947c0e4481a49
1,649
py
Python
src/torchcontentarea/contentareainference.py
charliebudd/torch-content-area
b1ebc53c65eca5a18858ed922d4e20890743d485
[ "MIT" ]
null
null
null
src/torchcontentarea/contentareainference.py
charliebudd/torch-content-area
b1ebc53c65eca5a18858ed922d4e20890743d485
[ "MIT" ]
null
null
null
src/torchcontentarea/contentareainference.py
charliebudd/torch-content-area
b1ebc53c65eca5a18858ed922d4e20890743d485
[ "MIT" ]
null
null
null
import torch from enum import IntEnum from typing import Sequence, Optional import __torchcontentareaext as __ext from __torchcontentareaext import get_times class InterpolationMode(IntEnum): """A tag to specify the type of interpolation when cropping""" NEAREST = 0 BILINEAR = 1 class ContentAreaInferen...
40.219512
169
0.713159
febe04954752dc42caeeafaf157da48f5ccf0dad
933
py
Python
modules/jb_bootcamp/jb_bootcamp/bioinfo_dicts.py
bjamh/bootcamp
783b2d21484911bf82730c0750f81eb31817b05b
[ "CC-BY-4.0", "MIT" ]
43
2016-09-11T05:58:23.000Z
2022-03-05T16:42:21.000Z
modules/jb_bootcamp/jb_bootcamp/bioinfo_dicts.py
bjamh/bootcamp
783b2d21484911bf82730c0750f81eb31817b05b
[ "CC-BY-4.0", "MIT" ]
1
2015-09-19T16:44:45.000Z
2015-09-19T16:45:22.000Z
modules/jb_bootcamp/jb_bootcamp/bioinfo_dicts.py
bjamh/bootcamp
783b2d21484911bf82730c0750f81eb31817b05b
[ "CC-BY-4.0", "MIT" ]
806
2015-09-19T21:31:59.000Z
2022-03-30T12:25:48.000Z
"""Useful dictionaries to have around for bioinformatics.""" aa = {'A': 'Ala', 'R': 'Arg', 'N': 'Asn', 'D': 'Asp', 'C': 'Cys', 'Q': 'Gln', 'E': 'Glu', 'G': 'Gly', 'H': 'His', 'I': 'Ile', 'L': 'Leu', 'K': 'Lys', 'M': 'Met', 'F': 'Phe', ...
23.325
81
0.525188
63cc3f38831847ea874920f02f6637396f2d2d54
15,387
py
Python
selfdrive/car/tesla/ACC_module.py
Michaelc0/openpilot
b210ad3b10c6b2f5c3a373aa63b01a126a12b808
[ "MIT" ]
null
null
null
selfdrive/car/tesla/ACC_module.py
Michaelc0/openpilot
b210ad3b10c6b2f5c3a373aa63b01a126a12b808
[ "MIT" ]
null
null
null
selfdrive/car/tesla/ACC_module.py
Michaelc0/openpilot
b210ad3b10c6b2f5c3a373aa63b01a126a12b808
[ "MIT" ]
null
null
null
from selfdrive.services import service_list from selfdrive.car.tesla.values import AH, CruiseButtons, CruiseState, CAR from selfdrive.config import Conversions as CV import selfdrive.messaging as messaging import os import subprocess import time import zmq class ACCState(object): # Possible state of the AC...
48.539432
232
0.661792
bfa06aa55b1954eac6c4c6590877c795ba582ec3
2,537
py
Python
Information search/IS - 1. Features (Sekitei)/extract_features.py
Shemplo/Study-courses
d719cfbddf9358b0f3505e747586d0cc575dd832
[ "Apache-2.0" ]
1
2019-03-27T18:42:12.000Z
2019-03-27T18:42:12.000Z
Information search/IS - 1. Features (Sekitei)/extract_features.py
Shemplo/Study-courses
d719cfbddf9358b0f3505e747586d0cc575dd832
[ "Apache-2.0" ]
3
2018-10-19T07:04:03.000Z
2021-12-14T21:15:10.000Z
Information search/IS - 1. Features (Sekitei)/extract_features.py
Shemplo/Study-courses
d719cfbddf9358b0f3505e747586d0cc575dd832
[ "Apache-2.0" ]
3
2019-03-21T05:16:21.000Z
2021-12-21T11:54:30.000Z
# coding: utf-8 import random import sys import re import urlparse import urllib samples_size = 1000 treshold = 0.1 def read_file_and_get_subset (file, limit): lines = [] desc = open (file, "r") for line in desc: lines.append (line [:-1]) desc.close () sample = range (len (lines)) r...
28.829545
98
0.524241
4e6352205eb646c18f4f2d2410f14da8b49f5a23
22,245
py
Python
test/functional/test_framework/util.py
minblock/Scoutcoin
532aebe3597dbffe4ea7cc3e70d6cbde542614d3
[ "MIT" ]
null
null
null
test/functional/test_framework/util.py
minblock/Scoutcoin
532aebe3597dbffe4ea7cc3e70d6cbde542614d3
[ "MIT" ]
null
null
null
test/functional/test_framework/util.py
minblock/Scoutcoin
532aebe3597dbffe4ea7cc3e70d6cbde542614d3
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Helpful routines for regression testing.""" from base64 import b64encode from binascii import hexlify,...
38.88986
140
0.652371
9a2e17155df14ae1c617cab7d9bfcd1821b766a5
3,128
py
Python
elasticsearch/_async/client/dangling_indices.py
michaelbalber/elasticsearch-py
598a76702509f7d2aac8ffbf64cfad9829ba6fe9
[ "Apache-2.0" ]
1
2021-09-02T14:50:53.000Z
2021-09-02T14:50:53.000Z
elasticsearch/_async/client/dangling_indices.py
michaelbalber/elasticsearch-py
598a76702509f7d2aac8ffbf64cfad9829ba6fe9
[ "Apache-2.0" ]
null
null
null
elasticsearch/_async/client/dangling_indices.py
michaelbalber/elasticsearch-py
598a76702509f7d2aac8ffbf64cfad9829ba6fe9
[ "Apache-2.0" ]
null
null
null
# Licensed to Elasticsearch B.V. under one or more contributor # license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright # ownership. Elasticsearch B.V. licenses this file to you under # the Apache License, Version 2.0 (the "License"); you may # not use ...
41.706667
113
0.695013
7dc9300db81bff6372c6bea9c06ef17fb2994310
143
py
Python
learning_users/basic_app/admin.py
BAXTOR95/django_deployment
f9a33d15fb90b7cedc020a96574ae240d88e1bad
[ "MIT" ]
null
null
null
learning_users/basic_app/admin.py
BAXTOR95/django_deployment
f9a33d15fb90b7cedc020a96574ae240d88e1bad
[ "MIT" ]
null
null
null
learning_users/basic_app/admin.py
BAXTOR95/django_deployment
f9a33d15fb90b7cedc020a96574ae240d88e1bad
[ "MIT" ]
null
null
null
from django.contrib import admin from basic_app.models import UserProfileInfo # Register your models here. admin.site.register(UserProfileInfo)
35.75
44
0.853147
bc57f1a014282a63343ad3858c8b8682b83b2fa5
1,278
py
Python
pyinstaller-1.5.1/hooks/shared_PIL_SpiderImagePlugin.py
rafidhoda/differentiator_utility
b30ef54abef5bde46fb2d3eac8cb43218a7a4c17
[ "Xnet", "X11" ]
null
null
null
pyinstaller-1.5.1/hooks/shared_PIL_SpiderImagePlugin.py
rafidhoda/differentiator_utility
b30ef54abef5bde46fb2d3eac8cb43218a7a4c17
[ "Xnet", "X11" ]
null
null
null
pyinstaller-1.5.1/hooks/shared_PIL_SpiderImagePlugin.py
rafidhoda/differentiator_utility
b30ef54abef5bde46fb2d3eac8cb43218a7a4c17
[ "Xnet", "X11" ]
null
null
null
# Copyright (C) 2006, Giovanni Bajo # Based on previous work under copyright (c) 2001, 2002 McMillan Enterprises, Inc. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the...
44.068966
82
0.737872
65a0d827bb535bcde55488e5740bfc15ebaf3ee6
10,109
py
Python
weibo/weibo.py
ComputerNetworksExp2016/weibo-exp
883150bf226b607fd3f8e2f73e6d06a0e35ea214
[ "MIT" ]
null
null
null
weibo/weibo.py
ComputerNetworksExp2016/weibo-exp
883150bf226b607fd3f8e2f73e6d06a0e35ea214
[ "MIT" ]
null
null
null
weibo/weibo.py
ComputerNetworksExp2016/weibo-exp
883150bf226b607fd3f8e2f73e6d06a0e35ea214
[ "MIT" ]
null
null
null
from base64 import b64encode from datetime import datetime, timedelta from time import sleep from getpass import getpass import json import logging from pathlib import Path import pickle import sys from bs4 import BeautifulSoup from requests import Session logging.basicConfig(level=logging.DEBUG) def parse_num(s): ...
36.103571
153
0.513008
646f3671b147f42620a5646a87d96e14802224fd
601
py
Python
examples/bulk_export.py
madhulika-accolite/fusionexport-python-client
70e9566288f615a4a38f1676e99ede1900da9163
[ "MIT" ]
1
2018-05-24T09:06:23.000Z
2018-05-24T09:06:23.000Z
examples/bulk_export.py
madhulika-accolite/fusionexport-python-client
70e9566288f615a4a38f1676e99ede1900da9163
[ "MIT" ]
null
null
null
examples/bulk_export.py
madhulika-accolite/fusionexport-python-client
70e9566288f615a4a38f1676e99ede1900da9163
[ "MIT" ]
null
null
null
#!/usr/bin/env python from fusionexport import ExportManager, ExportConfig # Import sdk # Instantiate the ExportConfig class and add the required configurations export_config = ExportConfig() export_config["chartConfig"] = "bulk.json" # Provide port and host of FusionExport Service export_server_host = "127.0.0.1" ...
33.388889
73
0.800333
5238c67e93dfd672d3f56eb645a8ee52c2275949
16,937
py
Python
chatbot_env/Lib/site-packages/sklearn/manifold/_mds.py
rakmakan/Chatbot
d04bc1526b56961a16c25148d9ef18c4f157e9c4
[ "MIT" ]
6,989
2017-07-18T06:23:18.000Z
2022-03-31T15:58:36.000Z
chatbot_env/Lib/site-packages/sklearn/manifold/_mds.py
rakmakan/Chatbot
d04bc1526b56961a16c25148d9ef18c4f157e9c4
[ "MIT" ]
1,978
2017-07-18T09:17:58.000Z
2022-03-31T14:28:43.000Z
site-packages/sklearn/manifold/_mds.py
Wristlebane/Pyto
901ac307b68486d8289105c159ca702318bea5b0
[ "MIT" ]
1,228
2017-07-18T09:03:13.000Z
2022-03-29T05:57:40.000Z
""" Multi-dimensional Scaling (MDS) """ # author: Nelle Varoquaux <nelle.varoquaux@gmail.com> # License: BSD import numpy as np from joblib import Parallel, delayed, effective_n_jobs import warnings from ..base import BaseEstimator from ..metrics import euclidean_distances from ..utils import check_random_state, ch...
38.493182
79
0.64551
682ab7733c77a2839acbde7f6ef6e1d2769ddaf3
13,923
py
Python
lib/python2.7/site-packages/sklearn/utils/fixes.py
wfehrnstrom/harmonize
e5661d24b2021739e8ac4bf1d3a530eda4e155b3
[ "MIT" ]
6,989
2017-07-18T06:23:18.000Z
2022-03-31T15:58:36.000Z
lib/python2.7/site-packages/sklearn/utils/fixes.py
wfehrnstrom/harmonize
e5661d24b2021739e8ac4bf1d3a530eda4e155b3
[ "MIT" ]
1,978
2017-07-18T09:17:58.000Z
2022-03-31T14:28:43.000Z
lib/python2.7/site-packages/sklearn/utils/fixes.py
wfehrnstrom/harmonize
e5661d24b2021739e8ac4bf1d3a530eda4e155b3
[ "MIT" ]
1,228
2017-07-18T09:03:13.000Z
2022-03-29T05:57:40.000Z
"""Compatibility fixes for older version of python, numpy and scipy If you add content to this file, please give the version of the package at which the fixe is no longer needed. """ # Authors: Emmanuelle Gouillart <emmanuelle.gouillart@normalesup.org> # Gael Varoquaux <gael.varoquaux@normalesup.org> # ...
32.992891
84
0.588451
1f67400ddc98ef547f2b6778412d449f8a851395
32,304
py
Python
test/test_clients.py
gsy0911/azfs
200c2dd4a6004cdf24162fd98ca9bb86e205d15a
[ "MIT" ]
null
null
null
test/test_clients.py
gsy0911/azfs
200c2dd4a6004cdf24162fd98ca9bb86e205d15a
[ "MIT" ]
128
2020-05-07T12:14:03.000Z
2021-07-17T04:33:17.000Z
test/test_clients.py
gsy0911/azfs
200c2dd4a6004cdf24162fd98ca9bb86e205d15a
[ "MIT" ]
1
2020-05-06T14:29:45.000Z
2020-05-06T14:29:45.000Z
import pytest # in order to avoid warning .coverage # see https://pytest-cov.readthedocs.io/en/latest/subprocess-support.html#if-you-use-multiprocessing-process try: from pytest_cov.embed import cleanup_on_sigterm except ImportError: pass else: cleanup_on_sigterm() import azfs from azure.core.exceptions i...
37.003436
111
0.647257
669d654ac2b0993095ba2a68175c410143be9802
230,498
py
Python
tmqa3.py
RomainClaret/mse.thesis.code
11837100c438d376a90392018ed69fff067c8ddf
[ "MIT" ]
2
2020-12-07T23:35:49.000Z
2021-05-02T14:57:50.000Z
tmqa3.py
RomainClaret/mse.thesis.code
11837100c438d376a90392018ed69fff067c8ddf
[ "MIT" ]
null
null
null
tmqa3.py
RomainClaret/mse.thesis.code
11837100c438d376a90392018ed69fff067c8ddf
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[1]: get_ipython().run_line_magic('autosave', '180') get_ipython().run_line_magic('matplotlib', 'inline') # In[2]: import requests import time import itertools as it import re #import numpy from copy import copy import matplotlib.pyplot as plt import warnings warnings.fi...
45.160266
411
0.615901
02320c7b3dcf898760df6a324b7e8bb01f925a15
137
py
Python
tool/pycorrector_demo.py
KEVINYZY/python-tutorial
ae43536908eb8af56c34865f52a6e8644edc4fa3
[ "Apache-2.0" ]
null
null
null
tool/pycorrector_demo.py
KEVINYZY/python-tutorial
ae43536908eb8af56c34865f52a6e8644edc4fa3
[ "Apache-2.0" ]
null
null
null
tool/pycorrector_demo.py
KEVINYZY/python-tutorial
ae43536908eb8af56c34865f52a6e8644edc4fa3
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ @author:XuMing(xuming624@qq.com) @description: """ import pycorrector print(pycorrector.correct('给老人让坐'))
13.7
35
0.671533
0f3b1315566bec9d7840f75bd1179e4498d80169
10,158
py
Python
superpoint/evaluations/descriptor_evaluation.py
sMamooler/SuperPoint
b66bb2c986ddbd7935858af948bc3508e32a5acc
[ "MIT" ]
null
null
null
superpoint/evaluations/descriptor_evaluation.py
sMamooler/SuperPoint
b66bb2c986ddbd7935858af948bc3508e32a5acc
[ "MIT" ]
null
null
null
superpoint/evaluations/descriptor_evaluation.py
sMamooler/SuperPoint
b66bb2c986ddbd7935858af948bc3508e32a5acc
[ "MIT" ]
null
null
null
import numpy as np import cv2 from os import path as osp from glob import glob from superpoint.settings import EXPER_PATH from superpoint.evaluations.evaluation_tool import warp_keypoints, keep_true_keypoints, select_k_best, filter_keypoints def get_paths(exper_name): """ Return a list of paths to the outp...
34.787671
119
0.656921
856bd5e6096658ee85bd155087df3c9bb55b4975
8,845
py
Python
Plugins/CharakterAssistent/WizardWrapper.py
dbuse/Sephrasto
a72a0e961b38f4ea60dedb2b896c681c0226595b
[ "MIT" ]
null
null
null
Plugins/CharakterAssistent/WizardWrapper.py
dbuse/Sephrasto
a72a0e961b38f4ea60dedb2b896c681c0226595b
[ "MIT" ]
null
null
null
Plugins/CharakterAssistent/WizardWrapper.py
dbuse/Sephrasto
a72a0e961b38f4ea60dedb2b896c681c0226595b
[ "MIT" ]
null
null
null
from PyQt5 import QtWidgets, QtCore import os.path import logging from Wolke import Wolke import lxml.etree as etree from EinstellungenWrapper import EinstellungenWrapper from EventBus import EventBus from CharakterAssistent.CharakterMerger import CharakterMerger from Hilfsmethoden import Hilfsmethoden class Regeln(ob...
45.592784
183
0.629621
a3c6560f300d1147b68881c35e190d8a204f5e32
339
py
Python
cfd/__init__.py
ko-matsu/cfd-python
3f1be7b31ba68aeb565debc3c6b6d3555ef807ef
[ "MIT" ]
null
null
null
cfd/__init__.py
ko-matsu/cfd-python
3f1be7b31ba68aeb565debc3c6b6d3555ef807ef
[ "MIT" ]
null
null
null
cfd/__init__.py
ko-matsu/cfd-python
3f1be7b31ba68aeb565debc3c6b6d3555ef807ef
[ "MIT" ]
null
null
null
import os import glob __version__ = '0.1.0' __all__ = [ os.path.split(os.path.splitext(file)[0])[1] for file in glob.glob(os.path.join( os.path.dirname(__file__), '[a-zA-Z0-9]*.py')) ] """ 'address', 'confidential_address', 'confidential_transaction', 'descriptor', 'hdwallet', 'key', 'script', 'transa...
15.409091
54
0.646018
3df131dbadb3338fed7d4932ab31de9f905c4a63
184
py
Python
docs/examples/record_sequence.py
TRex22/picamerax
2e7b05c92331b315533835596862a643ba55b021
[ "BSD-3-Clause" ]
17
2021-03-23T09:23:13.000Z
2022-01-27T16:23:48.000Z
docs/examples/record_sequence.py
TRex22/picamerax
2e7b05c92331b315533835596862a643ba55b021
[ "BSD-3-Clause" ]
7
2021-05-26T13:40:46.000Z
2022-03-12T00:47:49.000Z
docs/examples/record_sequence.py
TRex22/picamerax
2e7b05c92331b315533835596862a643ba55b021
[ "BSD-3-Clause" ]
6
2021-04-04T15:43:02.000Z
2021-05-18T10:34:00.000Z
import picamerax camera = picamerax.PiCamera(resolution=(640, 480)) for filename in camera.record_sequence( '%d.h264' % i for i in range(1, 11)): camera.wait_recording(5)
26.285714
50
0.701087
6b6cde24b6b46266726294c6d3c83ae6123f1ed5
9,849
py
Python
ClientGenerator/src/googleapis/codegen/java_generator_test.py
Ramkarthik/google-api-dotnet-client
d752f96e8a6de53922c22eedc73ea7077628b106
[ "Apache-2.0" ]
3
2017-06-11T10:55:49.000Z
2022-01-07T18:49:47.000Z
ClientGenerator/src/googleapis/codegen/java_generator_test.py
Ramkarthik/google-api-dotnet-client
d752f96e8a6de53922c22eedc73ea7077628b106
[ "Apache-2.0" ]
null
null
null
ClientGenerator/src/googleapis/codegen/java_generator_test.py
Ramkarthik/google-api-dotnet-client
d752f96e8a6de53922c22eedc73ea7077628b106
[ "Apache-2.0" ]
1
2018-11-23T21:47:57.000Z
2018-11-23T21:47:57.000Z
#!/usr/bin/python2.7 # Copyright 2011 Google Inc. 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 requi...
34.925532
79
0.602396
009762491b36f0fb420f60630b52ab5f118d5a5e
18,203
py
Python
calico/felix/test/test_ipsets.py
robbrockbank/felix
3429099d677bec0caa3dd9b8d69d1553304741ca
[ "Apache-2.0" ]
null
null
null
calico/felix/test/test_ipsets.py
robbrockbank/felix
3429099d677bec0caa3dd9b8d69d1553304741ca
[ "Apache-2.0" ]
null
null
null
calico/felix/test/test_ipsets.py
robbrockbank/felix
3429099d677bec0caa3dd9b8d69d1553304741ca
[ "Apache-2.0" ]
1
2016-12-02T12:08:32.000Z
2016-12-02T12:08:32.000Z
# -*- coding: utf-8 -*- # Copyright 2015 Metaswitch Networks # # 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 applicab...
34.606464
79
0.521288
5814d1fe99fc291e9677f7f94bc37346c9900d80
5,055
py
Python
yatube/yatube/settings.py
admin-nsk/yatube
767434f0c3281034aa323b997d2ebdbe19b82d1c
[ "MIT" ]
null
null
null
yatube/yatube/settings.py
admin-nsk/yatube
767434f0c3281034aa323b997d2ebdbe19b82d1c
[ "MIT" ]
null
null
null
yatube/yatube/settings.py
admin-nsk/yatube
767434f0c3281034aa323b997d2ebdbe19b82d1c
[ "MIT" ]
null
null
null
""" Django settings for yatube project. Generated by 'django-admin startproject' using Django 2.2. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ import os # Bu...
25.659898
91
0.685658
736596463c90dbdac648c72a1f5fcbf1ff6eae7b
15,962
py
Python
uw_spotseeker/__init__.py
devights/uw-restclients-spotseeker
d692773b4b3b6057c94748f35ba7d602cd53d016
[ "Apache-2.0" ]
1
2018-05-03T00:45:07.000Z
2018-05-03T00:45:07.000Z
uw_spotseeker/__init__.py
devights/uw-restclients-spotseeker
d692773b4b3b6057c94748f35ba7d602cd53d016
[ "Apache-2.0" ]
4
2019-12-16T19:49:21.000Z
2022-01-19T01:59:44.000Z
uw_spotseeker/__init__.py
uw-it-aca/uw-restclients-spotseeker
42b5dae637bcde875b27b32a37fe4dd9f867c537
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 """ This is the interface for interacting with the Spotseeker Server REST API """ from restclients_core.exceptions import DataFailureException from uw_spotseeker.dao import Spotseeker_DAO from uw_spotseeker.models import (Spot, ...
38.931707
78
0.570981
6d947618af25f611e59b1767a45cd472f2cd9513
18,316
py
Python
impacket/smbconnection.py
rackerlabs/impacket
327acaeab5289da6e99cd82fe0b88db329566e66
[ "Apache-1.1" ]
null
null
null
impacket/smbconnection.py
rackerlabs/impacket
327acaeab5289da6e99cd82fe0b88db329566e66
[ "Apache-1.1" ]
null
null
null
impacket/smbconnection.py
rackerlabs/impacket
327acaeab5289da6e99cd82fe0b88db329566e66
[ "Apache-1.1" ]
1
2021-07-25T23:46:43.000Z
2021-07-25T23:46:43.000Z
# Copyright (c) 2003-2012 CORE Security Technologies) # # This software is provided under under a slightly modified version # of the Apache Software License. See the accompanying LICENSE file # for more information. # # $Id: smbconnection.py 738 2013-04-09 18:40:15Z bethus@gmail.com $ # # Author: Alberto Solino (beto@c...
43.402844
388
0.666685
8433ec758728d76bc8a5cdb0e68ed2bd2e9d91e2
9,580
py
Python
tests/resources/test_file_link.py
lbianchini84/citrine-python
0a99fcd3cfd0a464f5612fceed1dc6d1066a4680
[ "Apache-2.0" ]
null
null
null
tests/resources/test_file_link.py
lbianchini84/citrine-python
0a99fcd3cfd0a464f5612fceed1dc6d1066a4680
[ "Apache-2.0" ]
null
null
null
tests/resources/test_file_link.py
lbianchini84/citrine-python
0a99fcd3cfd0a464f5612fceed1dc6d1066a4680
[ "Apache-2.0" ]
null
null
null
from collections import namedtuple import pytest from uuid import uuid4 import requests_mock from mock import patch, Mock, call from botocore.exceptions import ClientError from citrine.resources.file_link import FileCollection, FileLink, _Uploader from tests.utils.session import FakeSession, FakeS3Client, FakeCall, ...
35.88015
96
0.687578
1f7fac9f7cb195509d02d1287fc9c0e17b5d1b56
507
py
Python
tests/test_pay_foreign.py
Rainist/iamport-rest-client-python
d671cc39e258ce2826b4ba06b2a25b24a80d612e
[ "MIT" ]
1
2020-05-18T15:18:23.000Z
2020-05-18T15:18:23.000Z
tests/test_pay_foreign.py
Rainist/iamport-rest-client-python
d671cc39e258ce2826b4ba06b2a25b24a80d612e
[ "MIT" ]
2
2019-05-21T02:06:42.000Z
2019-05-21T02:52:25.000Z
tests/test_pay_foreign.py
Rainist/iamport-rest-client-python
d671cc39e258ce2826b4ba06b2a25b24a80d612e
[ "MIT" ]
1
2020-05-18T15:18:31.000Z
2020-05-18T15:18:31.000Z
# -*- coding: utf-8 -*- def test_pay_foreign(iamport, merchant_uid): payload = { 'merchant_uid': merchant_uid, 'amount': 100, 'card_number': 'card-number', } try: iamport.pay_foreign(**payload) except KeyError as e: assert "Essential parameter is missing!: expir...
22.043478
66
0.577909
216a3dd97f8581005104cf38b6e696659ddfc5a3
1,258
py
Python
tests/sentry/api/endpoints/test_user_social_identity_details.py
AlexWayfer/sentry
ef935cda2b2e960bd602fda590540882d1b0712d
[ "BSD-3-Clause" ]
4
2019-05-27T13:55:07.000Z
2021-03-30T07:05:09.000Z
tests/sentry/api/endpoints/test_user_social_identity_details.py
AlexWayfer/sentry
ef935cda2b2e960bd602fda590540882d1b0712d
[ "BSD-3-Clause" ]
196
2019-06-10T08:34:10.000Z
2022-02-22T01:26:13.000Z
tests/sentry/api/endpoints/test_user_social_identity_details.py
AlexWayfer/sentry
ef935cda2b2e960bd602fda590540882d1b0712d
[ "BSD-3-Clause" ]
1
2018-07-02T09:46:44.000Z
2018-07-02T09:46:44.000Z
from __future__ import absolute_import from django.core.urlresolvers import reverse from social_auth.models import UserSocialAuth from sentry.testutils import APITestCase class UserSocialIdentityDetailsEndpointTest(APITestCase): def setUp(self): self.login_as(self.user) def test_can_disconnect(self...
38.121212
79
0.670906
99f88b6b8c989eddc5ce41915425affc074ea0a3
368
py
Python
djangular/tests/__init__.py
mohamedmehdigara/djangular
4fc13bbe9c94799734cd08f31ac9ed46c0a2a3b7
[ "Apache-2.0" ]
145
2015-01-01T12:09:30.000Z
2022-01-28T13:59:50.000Z
djangular/tests/__init__.py
mohamedmehdigara/djangular
4fc13bbe9c94799734cd08f31ac9ed46c0a2a3b7
[ "Apache-2.0" ]
25
2015-01-07T11:42:21.000Z
2016-12-14T19:23:45.000Z
djangular/tests/__init__.py
mohamedmehdigara/djangular
4fc13bbe9c94799734cd08f31ac9ed46c0a2a3b7
[ "Apache-2.0" ]
40
2015-02-07T13:23:09.000Z
2022-01-28T13:59:53.000Z
import django if django.VERSION < (1, 6): from djangular.tests.test_base import * from djangular.tests.test_finders import * from djangular.tests.test_middleware import * from djangular.tests.test_storage import * from djangular.tests.test_utils import * from djangular.tests.test_commands impor...
33.454545
49
0.752717
601a8ff437727bad5226ce3e7f059a1ec2913127
3,921
py
Python
trio/_highlevel_generic.py
zackw/trio
837a56ec6972a4f3d872ddf04be8e9f0f1d22cd3
[ "Apache-2.0", "MIT" ]
null
null
null
trio/_highlevel_generic.py
zackw/trio
837a56ec6972a4f3d872ddf04be8e9f0f1d22cd3
[ "Apache-2.0", "MIT" ]
null
null
null
trio/_highlevel_generic.py
zackw/trio
837a56ec6972a4f3d872ddf04be8e9f0f1d22cd3
[ "Apache-2.0", "MIT" ]
null
null
null
import attr import trio from .abc import HalfCloseableStream async def aclose_forcefully(resource): """Close an async resource or async generator immediately, without blocking to do any graceful cleanup. :class:`~trio.abc.AsyncResource` objects guarantee that if their :meth:`~trio.abc.AsyncResource....
34.699115
79
0.68707
455cf47247985429033288a0bcf4278e68683b19
1,071
py
Python
website/addons/forward/routes.py
lbanner/osf.io
1898ef0ff8bd91713e94c60e7463b5f81ac62caa
[ "Apache-2.0" ]
null
null
null
website/addons/forward/routes.py
lbanner/osf.io
1898ef0ff8bd91713e94c60e7463b5f81ac62caa
[ "Apache-2.0" ]
13
2020-03-24T15:29:41.000Z
2022-03-11T23:15:28.000Z
website/addons/forward/routes.py
lbanner/osf.io
1898ef0ff8bd91713e94c60e7463b5f81ac62caa
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """Forward addon routes.""" from framework.routing import Rule, json_renderer from website.routes import OsfWebRenderer from website.addons.forward import views api_routes = { 'rules': [ Rule( [ '/project/<pid>/forward/config/', '/proje...
22.787234
78
0.478058
22bdc7078a4f48c8e0aadb95d6e64c3e5cf7b652
19,590
py
Python
keystone/common/sql/migrate_repo/versions/016_normalize_domain_ids.py
sanket4373/keystone
7cf7e7497729803f0470167315af9349b88fe0ec
[ "Apache-2.0" ]
null
null
null
keystone/common/sql/migrate_repo/versions/016_normalize_domain_ids.py
sanket4373/keystone
7cf7e7497729803f0470167315af9349b88fe0ec
[ "Apache-2.0" ]
null
null
null
keystone/common/sql/migrate_repo/versions/016_normalize_domain_ids.py
sanket4373/keystone
7cf7e7497729803f0470167315af9349b88fe0ec
[ "Apache-2.0" ]
null
null
null
# Copyright 2012 OpenStack Foundation # Copyright 2013 IBM Corp. # # 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 app...
44.931193
78
0.63757
a800d8448c38c938d97821b352f3b8406e8791b9
864
py
Python
setup.py
matsurih/pyjstage
8bfd41361b40aa49575d49a1bfc83951ce0c5028
[ "MIT" ]
null
null
null
setup.py
matsurih/pyjstage
8bfd41361b40aa49575d49a1bfc83951ce0c5028
[ "MIT" ]
2
2021-03-31T19:30:30.000Z
2021-12-13T20:31:00.000Z
setup.py
matsurih/pyjstage
8bfd41361b40aa49575d49a1bfc83951ce0c5028
[ "MIT" ]
null
null
null
import os from setuptools import setup, find_packages def read_requirements(): reqs_path = os.path.join('.', 'requirements.txt') with open(reqs_path, 'r') as f: requirements = [line.rstrip() for line in f] return requirements def read_description(): desc_path = os.path.join('.', ...
27
55
0.65162
372ff36decd8800f6a1abfaabb725e092a7a3c49
4,882
py
Python
mix_real_MIT_data.py
geigerf/utils
f599e06a8a5db7a7913fae8be5ff0ffae768f36f
[ "Apache-2.0" ]
null
null
null
mix_real_MIT_data.py
geigerf/utils
f599e06a8a5db7a7913fae8be5ff0ffae768f36f
[ "Apache-2.0" ]
null
null
null
mix_real_MIT_data.py
geigerf/utils
f599e06a8a5db7a7913fae8be5ff0ffae768f36f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Jul 30 14:13:12 2020 @author: fabian geiger """ import numpy as np import scipy.io as sio from sklearn.model_selection import StratifiedKFold from sklearn.model_selection import train_test_split from imblearn import under_sampling from pathlib import ...
43.20354
121
0.634166
6c400d6b7749b472e690fb2668cc608c161ddd20
1,265
py
Python
app/__init__.py
marvinkome/flask-tutorial
e4c3c962936422faff04f6afb32f8368ded9c204
[ "MIT" ]
null
null
null
app/__init__.py
marvinkome/flask-tutorial
e4c3c962936422faff04f6afb32f8368ded9c204
[ "MIT" ]
6
2020-02-24T17:51:27.000Z
2021-12-13T19:41:54.000Z
app/__init__.py
marvinkome/flask-tutorial
e4c3c962936422faff04f6afb32f8368ded9c204
[ "MIT" ]
null
null
null
from flask import Flask from flask_bootstrap import Bootstrap from flask_moment import Moment from flask_sqlalchemy import SQLAlchemy from flask_mail import Mail, Message from flask_login import LoginManager from flask_assets import Environment from flask_pagedown import PageDown from config import config from .assets ...
27.5
69
0.772332
ac898efa19c47692bd950d777ee5a76c195889b1
105
py
Python
src/scraper_app/admin.py
banyh/news_scraper
56173fc0fcf3f2b367552f97e5514ff62612956e
[ "MIT" ]
1
2016-12-30T15:14:36.000Z
2016-12-30T15:14:36.000Z
src/scraper_app/admin.py
livingbio/news_scraper
56173fc0fcf3f2b367552f97e5514ff62612956e
[ "MIT" ]
null
null
null
src/scraper_app/admin.py
livingbio/news_scraper
56173fc0fcf3f2b367552f97e5514ff62612956e
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Article, ArticleItem admin.site.register(Article)
17.5
40
0.819048
178a452ec63343925ab8acf7c57d22f39893faa2
3,270
py
Python
selfdrive/car/honda/hondacan.py
joshuafuller/openpilot
9d9480832e8ecec0f52743eefb1a9c8981a21998
[ "MIT" ]
3
2020-10-04T03:55:59.000Z
2021-05-13T06:34:02.000Z
selfdrive/car/honda/hondacan.py
joshuafuller/openpilot
9d9480832e8ecec0f52743eefb1a9c8981a21998
[ "MIT" ]
1
2021-09-29T22:44:24.000Z
2021-09-29T22:44:24.000Z
selfdrive/car/honda/hondacan.py
joshuafuller/openpilot
9d9480832e8ecec0f52743eefb1a9c8981a21998
[ "MIT" ]
31
2020-08-30T17:07:40.000Z
2021-01-31T05:32:10.000Z
from selfdrive.config import Conversions as CV from selfdrive.car.honda.values import HONDA_BOSCH def get_pt_bus(car_fingerprint, has_relay): return 1 if car_fingerprint in HONDA_BOSCH and has_relay else 0 def get_lkas_cmd_bus(car_fingerprint, has_relay): return 2 if car_fingerprint in HONDA_BOSCH and not has_r...
32.7
136
0.715902
462187cfd6bf551075115caba1c7a0d660b6de02
5,255
py
Python
clumioapi/controllers/vmware_vcenter_categories_v1.py
clumio-code/clumio-python-sdk
63bfaf3afed5c0ab4bae3dd1be52271249d07c51
[ "Apache-2.0" ]
null
null
null
clumioapi/controllers/vmware_vcenter_categories_v1.py
clumio-code/clumio-python-sdk
63bfaf3afed5c0ab4bae3dd1be52271249d07c51
[ "Apache-2.0" ]
1
2021-09-16T05:56:05.000Z
2021-09-16T05:56:05.000Z
clumioapi/controllers/vmware_vcenter_categories_v1.py
clumio-code/clumio-python-sdk
63bfaf3afed5c0ab4bae3dd1be52271249d07c51
[ "Apache-2.0" ]
null
null
null
# # Copyright 2021. Clumio, Inc. # from clumioapi import api_helper from clumioapi import configuration from clumioapi.controllers import base_controller from clumioapi.exceptions import clumio_exception from clumioapi.models import list_tag_categories2_response from clumioapi.models import read_tag_category2_response...
45.695652
112
0.612559
37b709c78606b87994ea0b45900bb777c4cba916
4,821
py
Python
python/datasetLoader.py
sylwow/Engineering-Thesis
2d5ca1b30603d9ad1da57d4fd473d49756f59296
[ "MIT" ]
2
2020-04-05T06:14:36.000Z
2020-10-04T11:26:45.000Z
python/datasetLoader.py
sylwow/Engineering-Thesis
2d5ca1b30603d9ad1da57d4fd473d49756f59296
[ "MIT" ]
null
null
null
python/datasetLoader.py
sylwow/Engineering-Thesis
2d5ca1b30603d9ad1da57d4fd473d49756f59296
[ "MIT" ]
null
null
null
import torch from torch.utils.data import Dataset, DataLoader import torchvision.transforms as transforms import glob import re import cv2 import numpy as np import os import random class myDataset(Dataset): """hand symbols dataset.""" def __init__(self, dir, split, test=False, train=False, validation=False,...
29.759259
94
0.546982
278fd5deccd4a0c65d8e61c5ba29810071893cb7
1,339
py
Python
Scripts/Example_Run.py
CBIIT/NCI-DOE-Collab-Pilot1-Enhanced_COXEN
89fa9870c75861f3588f54e1b91f271a70e4a5ab
[ "MIT" ]
null
null
null
Scripts/Example_Run.py
CBIIT/NCI-DOE-Collab-Pilot1-Enhanced_COXEN
89fa9870c75861f3588f54e1b91f271a70e4a5ab
[ "MIT" ]
null
null
null
Scripts/Example_Run.py
CBIIT/NCI-DOE-Collab-Pilot1-Enhanced_COXEN
89fa9870c75861f3588f54e1b91f271a70e4a5ab
[ "MIT" ]
1
2021-06-17T21:38:34.000Z
2021-06-17T21:38:34.000Z
import numpy as np import pandas as pd from EnhancedCOXEN_Functions import coxen_multi_drug_gene_selection res = pd.read_csv('../Data/Drug_Response_Data_Of_Set_1.txt', sep='\t', engine='c', na_values=['na', '-', ''], header=0, index_col=None) data1 = pd.read_csv('../Data/Gene_Expression_Data_Of_Se...
47.821429
116
0.661688
48465d81122ec0fdf7e623ad4db1bcfed0abc7ae
75,565
py
Python
scipy/spatial/transform/rotation.py
avivajpeyi/scipy
dbfe06e6618232b26c241cbe8861e2ea1489b535
[ "BSD-3-Clause" ]
1
2021-03-15T03:59:34.000Z
2021-03-15T03:59:34.000Z
scipy/spatial/transform/rotation.py
avivajpeyi/scipy
dbfe06e6618232b26c241cbe8861e2ea1489b535
[ "BSD-3-Clause" ]
7
2020-12-04T04:10:42.000Z
2021-03-16T00:53:09.000Z
scipy/spatial/transform/rotation.py
avivajpeyi/scipy
dbfe06e6618232b26c241cbe8861e2ea1489b535
[ "BSD-3-Clause" ]
1
2021-01-20T01:58:53.000Z
2021-01-20T01:58:53.000Z
import re import warnings import numpy as np import scipy.linalg from scipy._lib._util import check_random_state from ._rotation_groups import create_group _AXIS_TO_IND = {'x': 0, 'y': 1, 'z': 2} def _elementary_basis_vector(axis): b = np.zeros(3) b[_AXIS_TO_IND[axis]] = 1 return b def _compute_euler_...
35.56
94
0.524806
3048f5c04f154673688a298d5f86060c9f1cd295
4,202
py
Python
official/transformer/v2/transformer_main_test.py
anestisdotpy/models
3ae3deafb662ba5100f1fde15f8eaab8556f4bf8
[ "Apache-2.0" ]
null
null
null
official/transformer/v2/transformer_main_test.py
anestisdotpy/models
3ae3deafb662ba5100f1fde15f8eaab8556f4bf8
[ "Apache-2.0" ]
null
null
null
official/transformer/v2/transformer_main_test.py
anestisdotpy/models
3ae3deafb662ba5100f1fde15f8eaab8556f4bf8
[ "Apache-2.0" ]
1
2019-07-23T01:29:11.000Z
2019-07-23T01:29:11.000Z
# Copyright 2018 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...
33.086614
80
0.687768
65f5dd7be3ba78fb9fe629c9cfdd43a0d847c4fd
2,555
py
Python
tests/extension/stream_/add/stream_add.py
akmaru/veriloggen
74f998139e8cf613f7703fa4cffd571bbf069bbc
[ "Apache-2.0" ]
null
null
null
tests/extension/stream_/add/stream_add.py
akmaru/veriloggen
74f998139e8cf613f7703fa4cffd571bbf069bbc
[ "Apache-2.0" ]
null
null
null
tests/extension/stream_/add/stream_add.py
akmaru/veriloggen
74f998139e8cf613f7703fa4cffd571bbf069bbc
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import from __future__ import print_function import sys import os # the next line can be removed after installation sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname( os.path.dirname(os.path.dirname(os.path.abspath(__file__))))))) from veriloggen import * import ve...
23.440367
67
0.620352
99e0e042233b0ef9e716adad6fef05cdca480d1d
7,151
py
Python
neutron/agent/linux/utils.py
gampel/neutron
51a6260266dc59c066072ca890ad9c40b1aad6cf
[ "Apache-2.0" ]
null
null
null
neutron/agent/linux/utils.py
gampel/neutron
51a6260266dc59c066072ca890ad9c40b1aad6cf
[ "Apache-2.0" ]
null
null
null
neutron/agent/linux/utils.py
gampel/neutron
51a6260266dc59c066072ca890ad9c40b1aad6cf
[ "Apache-2.0" ]
null
null
null
# Copyright 2012 Locaweb. # 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 appl...
33.731132
79
0.64047
f21eac68a378be811b8064e89bf32c96ba021397
2,025
py
Python
src/day07_mb.py
dev-mbusch/adventofcode2020
c888799ecdbc0c8d15921b3e54eb04440a289ab5
[ "MIT" ]
null
null
null
src/day07_mb.py
dev-mbusch/adventofcode2020
c888799ecdbc0c8d15921b3e54eb04440a289ab5
[ "MIT" ]
null
null
null
src/day07_mb.py
dev-mbusch/adventofcode2020
c888799ecdbc0c8d15921b3e54eb04440a289ab5
[ "MIT" ]
null
null
null
""" https://adventofcode.com/2020/day/7 """ from collections import namedtuple from pprint import pprint as pp with open(r'./input_files/day07_input_mb.txt', 'r') as fh: raw_input = fh.read() # Step 1 seperate lines to get the rules raw_rules = raw_input.splitlines() # Step 2 seperate outer layer from inner la...
32.66129
101
0.599506
c285a60cf4231cb4c44d983798c1e33cad4cb316
351
py
Python
python/testData/inspections/PyArgumentListInspection/kwargsMapToNothing.py
Sajadrahimi/intellij-community
ab9ff612dde3ee94ecae33cbc0ea639fa51550d4
[ "Apache-2.0" ]
null
null
null
python/testData/inspections/PyArgumentListInspection/kwargsMapToNothing.py
Sajadrahimi/intellij-community
ab9ff612dde3ee94ecae33cbc0ea639fa51550d4
[ "Apache-2.0" ]
null
null
null
python/testData/inspections/PyArgumentListInspection/kwargsMapToNothing.py
Sajadrahimi/intellij-community
ab9ff612dde3ee94ecae33cbc0ea639fa51550d4
[ "Apache-2.0" ]
1
2022-01-02T19:58:08.000Z
2022-01-02T19:58:08.000Z
def f5(a, b, c): pass arg = [1, 2, 3] kwarg = {'c':3} f5(*arg, **kwarg) # ok f5(1,2, **kwarg) # ok f5<warning descr="Unexpected argument(s)">(1, 2, 3, <warning descr="Unexpected argument">**kwarg</warning>)</warning> # fail f5<warning descr="Unexpected argument(s)">(1, 2, 3, <warning descr="Unexpected argument">*a...
35.1
124
0.638177
8f14a70a529473a5471aa98434378b595e6623b1
1,605
py
Python
config.py
Wilidon/mpetsbot
14f3d7b81f0439fd3585a466fe68d327bdbfcd56
[ "MIT" ]
null
null
null
config.py
Wilidon/mpetsbot
14f3d7b81f0439fd3585a466fe68d327bdbfcd56
[ "MIT" ]
null
null
null
config.py
Wilidon/mpetsbot
14f3d7b81f0439fd3585a466fe68d327bdbfcd56
[ "MIT" ]
null
null
null
import sys from functools import lru_cache import pickledb from pydantic import BaseSettings class Settings(BaseSettings): token: str group_id: int tg_token: str db_host: str db_username: str db_password: str db_name: str chat_id: str pickle: str bot1: str bot2: str ...
18.662791
70
0.535826
0c9cdfca5cad22f695b760168dc9ecac89f742b2
1,039
py
Python
crypto_backend/test_load.py
IlinValery/hppl_final_project
06ac468387c27deaedafb38eea54a0bf6bd82360
[ "MIT" ]
null
null
null
crypto_backend/test_load.py
IlinValery/hppl_final_project
06ac468387c27deaedafb38eea54a0bf6bd82360
[ "MIT" ]
20
2020-12-05T19:33:11.000Z
2020-12-10T06:53:30.000Z
crypto_backend/test_load.py
IlinValery/hppl_final_project
06ac468387c27deaedafb38eea54a0bf6bd82360
[ "MIT" ]
1
2020-12-10T07:57:11.000Z
2020-12-10T07:57:11.000Z
import time import asyncio import aiohttp from tqdm import tqdm import argparse from tests import requests as r async def main(handler, iters, method='test'): t0 = time.time() tasks = [] async with aiohttp.ClientSession() as session: for i in tqdm(range(iters)): task = asyncio.create_...
25.975
83
0.620789
6c641238c98de435a4dccbd84354b5a857bd1409
475
py
Python
aws_lambda_powertools/tracing/extensions.py
nayaverdier/aws-lambda-powertools-python
cd15ee97746356a84c6f196dbd2d26a34ea50411
[ "Apache-2.0", "MIT-0" ]
1,208
2020-05-20T19:06:29.000Z
2022-03-30T14:17:47.000Z
aws_lambda_powertools/tracing/extensions.py
nayaverdier/aws-lambda-powertools-python
cd15ee97746356a84c6f196dbd2d26a34ea50411
[ "Apache-2.0", "MIT-0" ]
859
2020-05-22T09:59:54.000Z
2022-03-31T08:31:30.000Z
aws_lambda_powertools/tracing/extensions.py
nayaverdier/aws-lambda-powertools-python
cd15ee97746356a84c6f196dbd2d26a34ea50411
[ "Apache-2.0", "MIT-0" ]
163
2020-05-18T21:08:25.000Z
2022-03-28T12:03:37.000Z
def aiohttp_trace_config(): """aiohttp extension for X-Ray (aws_xray_trace_config) It expects you to have aiohttp as a dependency. Returns ------- TraceConfig aiohttp trace config """ from aws_xray_sdk.ext.aiohttp.client import aws_xray_trace_config # pragma: no cover aws_xra...
29.6875
109
0.711579
093fdf0d02763f4dcfb292c1b20ddf99e3825a1e
2,591
py
Python
tests/test_filters.py
portfoliome/foil
b66d8cf4ab048a387d8c7a033b47e922ed6917d6
[ "MIT" ]
30
2016-10-03T04:04:26.000Z
2021-03-16T17:40:11.000Z
tests/test_filters.py
portfoliome/foil
b66d8cf4ab048a387d8c7a033b47e922ed6917d6
[ "MIT" ]
11
2017-01-01T17:49:51.000Z
2017-12-14T18:13:20.000Z
tests/test_filters.py
portfoliome/foil
b66d8cf4ab048a387d8c7a033b47e922ed6917d6
[ "MIT" ]
null
null
null
import unittest from collections import namedtuple from foil.filters import AttributeFilter, create_key_filter, create_indexer TeamRank = namedtuple('TeamRank', ['sport', 'team', 'rank']) class TestAttributeFilter(unittest.TestCase): def setUp(self): self.teams = [TeamRank('baseball', 'cubs', 2), ...
32.3875
86
0.545349
8eb0dfd4fa1db5228d073d6358f4593215aef5a6
2,658
py
Python
airflow/api/common/experimental/delete_dag.py
CSharpCross/xflow
e9d8f9c25405ee05be0ae109a410ac99c27be031
[ "Apache-2.0" ]
2
2021-01-27T09:27:21.000Z
2021-05-14T05:49:23.000Z
airflow/api/common/experimental/delete_dag.py
CSharpCross/xflow
e9d8f9c25405ee05be0ae109a410ac99c27be031
[ "Apache-2.0" ]
1
2019-02-28T06:23:06.000Z
2019-02-28T06:23:06.000Z
airflow/api/common/experimental/delete_dag.py
CSharpCross/xflow
e9d8f9c25405ee05be0ae109a410ac99c27be031
[ "Apache-2.0" ]
3
2018-05-23T23:41:38.000Z
2019-08-07T06:12:17.000Z
# -*- coding: utf-8 -*- # # 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 #...
40.892308
100
0.704289
c1ef94bb97526ddfbc255494709fa0071047f6a3
140
py
Python
run.py
florije1988/generateFile
fd7e21785b28897207866fb55e613f37398dfbc3
[ "MIT" ]
null
null
null
run.py
florije1988/generateFile
fd7e21785b28897207866fb55e613f37398dfbc3
[ "MIT" ]
null
null
null
run.py
florije1988/generateFile
fd7e21785b28897207866fb55e613f37398dfbc3
[ "MIT" ]
null
null
null
#!flask/bin/python # -*- coding: utf-8 -*- from app import app, cfg app.secret_key = cfg['FLASK_SECRET_KEY'] app.run(port=6621, debug=True)
23.333333
40
0.7
c5074cc1be6fc0ad1eefee4f4dc58fdfa70323d2
8,543
py
Python
layint_scan_api/models/clair_vulnerability.py
LayeredInsight/layint_scan_api_python
bc258b2af5d2211b986e32fedea95fcfc7de80ff
[ "Apache-2.0" ]
1
2018-03-26T23:55:00.000Z
2018-03-26T23:55:00.000Z
layint_scan_api/models/clair_vulnerability.py
LayeredInsight/layint_scan_api_python
bc258b2af5d2211b986e32fedea95fcfc7de80ff
[ "Apache-2.0" ]
null
null
null
layint_scan_api/models/clair_vulnerability.py
LayeredInsight/layint_scan_api_python
bc258b2af5d2211b986e32fedea95fcfc7de80ff
[ "Apache-2.0" ]
2
2020-11-04T02:56:33.000Z
2020-11-05T08:12:01.000Z
# coding: utf-8 """ Layered Insight Scan Layered Insight Scan performs static vulnerability analysis, license and package compliance. You can find out more about Scan at http://layeredinsight.com. OpenAPI spec version: 0.9.4 Contact: help@layeredinsight.com Generated by: https://github.com/swagg...
26.531056
160
0.581646
5fec663b3420db3ebb7f6fc380e01407eeaac135
498
py
Python
user/forms.py
romsha28/hospital_python
1bb86266223df5084321917169156aaec1c5e318
[ "Apache-2.0" ]
null
null
null
user/forms.py
romsha28/hospital_python
1bb86266223df5084321917169156aaec1c5e318
[ "Apache-2.0" ]
1
2021-10-18T08:56:11.000Z
2021-10-18T08:56:11.000Z
user/forms.py
romsha28/hospital_python
1bb86266223df5084321917169156aaec1c5e318
[ "Apache-2.0" ]
null
null
null
from django import forms from django.contrib.auth.models import User from django.contrib.auth.forms import UserCreationForm class UserRegisterForm(UserCreationForm): email = forms.EmailField() phone_no = forms.CharField(max_length = 20) first_name = forms.CharField(max_length = 20) last_name = forms.CharField(ma...
31.125
70
0.763052
654c294801ddf9228dcfa75a4aca9adf71f4a75e
387
py
Python
accelerator/tests/test_refund_code_redemption.py
masschallenge/django-accelerator
8af898b574be3b8335edc8961924d1c6fa8b5fd5
[ "MIT" ]
6
2017-06-14T19:34:01.000Z
2020-03-08T07:16:59.000Z
accelerator/tests/test_refund_code_redemption.py
masschallenge/django-accelerator
8af898b574be3b8335edc8961924d1c6fa8b5fd5
[ "MIT" ]
160
2017-06-20T17:12:13.000Z
2022-03-30T13:53:12.000Z
accelerator/tests/test_refund_code_redemption.py
masschallenge/django-accelerator
8af898b574be3b8335edc8961924d1c6fa8b5fd5
[ "MIT" ]
null
null
null
# MIT License # Copyright (c) 2017 MassChallenge, Inc. from __future__ import unicode_literals from django.test import TestCase from accelerator.tests.factories import RefundCodeRedemptionFactory class TestRefundCodeRedemption(TestCase): def test_str(self): redemption = RefundCodeRedemptionFactory() ...
25.8
68
0.795866
7a633bc18bf4eefc5881e884b12fab6be741a65a
25,434
py
Python
capsul/pipeline/xml.py
servoz/capsul
2d72228c096f1c43ecfca7f3651b353dc35e209e
[ "CECILL-B" ]
5
2018-10-31T10:16:53.000Z
2022-03-11T08:11:32.000Z
capsul/pipeline/xml.py
servoz/capsul
2d72228c096f1c43ecfca7f3651b353dc35e209e
[ "CECILL-B" ]
78
2018-10-30T17:04:38.000Z
2022-03-17T17:39:41.000Z
capsul/pipeline/xml.py
servoz/capsul
2d72228c096f1c43ecfca7f3651b353dc35e209e
[ "CECILL-B" ]
11
2019-01-21T10:05:08.000Z
2022-02-22T17:02:22.000Z
# -*- coding: utf-8 -*- ''' XML IO for pipelines Functions ========= :func:`create_xml_pipeline` --------------------------- :func:`save_xml_pipeline` ------------------------- ''' from __future__ import absolute_import from __future__ import print_function import os import six import sys import xml.etree.cElementTr...
43.55137
86
0.515727
61e47a96ca4ff66ccb91cd9adc0cf50bac0d3116
206
py
Python
14-desafio.py
SweydAbdul/EstudosPythonCeV
5eb61d4e1d47b99d57de776c835aa9f3c2bcee3b
[ "MIT" ]
null
null
null
14-desafio.py
SweydAbdul/EstudosPythonCeV
5eb61d4e1d47b99d57de776c835aa9f3c2bcee3b
[ "MIT" ]
null
null
null
14-desafio.py
SweydAbdul/EstudosPythonCeV
5eb61d4e1d47b99d57de776c835aa9f3c2bcee3b
[ "MIT" ]
null
null
null
print('===== DESAFIO 14 =====') celcius = float(input('Informe a temperatura em celcius: ')) fara = 9*celcius /5+32 print('A temperatura de {} celcius corresponde a {:.1f} faranheit.'.format(celcius, fara))
51.5
90
0.679612
cbee4f3e46c2028113ae98709d5411467d224df3
1,296
py
Python
tests/test_uff.py
davidbradway/uff.py
118001211018a4fc95d1dd7304ae6335bdf805f9
[ "MIT" ]
null
null
null
tests/test_uff.py
davidbradway/uff.py
118001211018a4fc95d1dd7304ae6335bdf805f9
[ "MIT" ]
null
null
null
tests/test_uff.py
davidbradway/uff.py
118001211018a4fc95d1dd7304ae6335bdf805f9
[ "MIT" ]
null
null
null
import os from pathlib import Path from uff.uff import UFF from uff.utils import verify_correctness, is_version_compatible, load_uff_dict, download_test_data def test_uff_save_load(): ref_dir = './data' ref_files = [ 'fieldII_converging_wave_mlt_sector.uff', 'fieldII_converging_wave_grid.uff'...
32.4
98
0.684414
8bcbe395fc79200721c3d6f54d897b41cb8f7bed
3,379
py
Python
aliyun-python-sdk-cbn/aliyunsdkcbn/request/v20170912/DescribeCenBandwidthPackagesRequest.py
leafcoder/aliyun-openapi-python-sdk
26b441ab37a5cda804de475fd5284bab699443f1
[ "Apache-2.0" ]
1,001
2015-07-24T01:32:41.000Z
2022-03-25T01:28:18.000Z
aliyun-python-sdk-cbn/aliyunsdkcbn/request/v20170912/DescribeCenBandwidthPackagesRequest.py
leafcoder/aliyun-openapi-python-sdk
26b441ab37a5cda804de475fd5284bab699443f1
[ "Apache-2.0" ]
363
2015-10-20T03:15:00.000Z
2022-03-08T12:26:19.000Z
aliyun-python-sdk-cbn/aliyunsdkcbn/request/v20170912/DescribeCenBandwidthPackagesRequest.py
leafcoder/aliyun-openapi-python-sdk
26b441ab37a5cda804de475fd5284bab699443f1
[ "Apache-2.0" ]
682
2015-09-22T07:19:02.000Z
2022-03-22T09:51:46.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 u...
36.728261
125
0.753477
0a63e2be6dc46a0f175d21d925be96c887a21c6c
3,390
py
Python
enron.py
jmategk0/enron_email_parser
2ae567f515bd8528e48356e4b06205111ee82136
[ "MIT" ]
null
null
null
enron.py
jmategk0/enron_email_parser
2ae567f515bd8528e48356e4b06205111ee82136
[ "MIT" ]
null
null
null
enron.py
jmategk0/enron_email_parser
2ae567f515bd8528e48356e4b06205111ee82136
[ "MIT" ]
null
null
null
import datetime import csv import json import os from pprint import pprint sample_data_path = "maildir_sample" full_data_path = "/home/james/Downloads/maildir_full" # https://stackoverflow.com/questions/3207219/how-do-i-list-all-files-of-a-directory # https://stackoverflow.com/questions/19699367/unicodedecodeerror-u...
34.242424
94
0.661947
697885bb45e02eb021e410d4da89efa66ce181bb
269
py
Python
create-swatches.py
jtrim-ons/colour-swatch-generator
a2fc6bb98236c576659c45ed2d469487cc8df237
[ "MIT" ]
null
null
null
create-swatches.py
jtrim-ons/colour-swatch-generator
a2fc6bb98236c576659c45ed2d469487cc8df237
[ "MIT" ]
null
null
null
create-swatches.py
jtrim-ons/colour-swatch-generator
a2fc6bb98236c576659c45ed2d469487cc8df237
[ "MIT" ]
null
null
null
import sys from PIL import Image, ImageDraw out_dir = sys.argv[2] for line in sys.stdin.readlines(): colour = line.strip().replace('#', '') size = int(sys.argv[1]) img = Image.new('RGB', (size, size), color='#'+colour) img.save(out_dir + '/' + colour + '.png')
20.692308
55
0.63197
ec847c0578c28827982da3a8c7f48a1b101015ed
3,290
py
Python
year_analysis.py
joee9/spotifystats
c6af564fee60d5f3c37c866f2cfb1a39ee88c2b5
[ "MIT" ]
1
2022-01-27T17:07:26.000Z
2022-01-27T17:07:26.000Z
year_analysis.py
joee9/spotifystats
c6af564fee60d5f3c37c866f2cfb1a39ee88c2b5
[ "MIT" ]
2
2022-03-08T03:38:16.000Z
2022-03-25T15:57:11.000Z
year_analysis.py
joee9/spotifystats
c6af564fee60d5f3c37c866f2cfb1a39ee88c2b5
[ "MIT" ]
null
null
null
# Joe Nyhan, 31 December 2021; updated 7 January 2021 # Creates a LaTeX generated yearly summary; see yearly_sum_example.pdf # TODO: update to write monthly databases #%% # spotify libraries import spotipy.util as util import spotipy # time related from datetime import datetime, timedelta import pytz; est = pytz.ti...
28.859649
147
0.668085
c747f38b47777c79ef3142085d795351c13eae6c
8,111
py
Python
Scripts/UVLF_IllustrisTNG/UVLF_IllustrisTNG.py
LBJ-Wade/GALLUMI_public
dbef3ff1ae6934c9551a44cbbe0270e2f17f5527
[ "MIT" ]
1
2021-12-15T00:17:15.000Z
2021-12-15T00:17:15.000Z
Scripts/UVLF_IllustrisTNG/UVLF_IllustrisTNG.py
NNSSA/GALLUMI_public
4529ab32ccfc281e5976f482fe556b672b8f464f
[ "MIT" ]
null
null
null
Scripts/UVLF_IllustrisTNG/UVLF_IllustrisTNG.py
NNSSA/GALLUMI_public
4529ab32ccfc281e5976f482fe556b672b8f464f
[ "MIT" ]
null
null
null
import numpy as np import h5py import galcv data = {} models = ["A", "B", "C"] simulations = ["TNG100-1", "TNG300-1", "TNG50-1", "combined"] redshifts = {33:2, 25:3, 21:4, 17:5, 13:6, 11:7, 8:8, 6:9, 4:10} quantities = ["bincenters", "luminosity_function", "number_count", "lf_combined"] ## Extract data and store in d...
43.143617
191
0.664776
43995dc9556392a005cca7f10bd2c2e364c2b9d1
7,905
py
Python
main.py
jacky181818/AuxiliaryQuestion
334c8f9bfdaa707f0c0e7d16d5d48798622cc0df
[ "MIT" ]
null
null
null
main.py
jacky181818/AuxiliaryQuestion
334c8f9bfdaa707f0c0e7d16d5d48798622cc0df
[ "MIT" ]
6
2021-03-18T20:22:35.000Z
2022-03-11T23:16:17.000Z
main.py
jacky181818/AuxiliaryQuestion
334c8f9bfdaa707f0c0e7d16d5d48798622cc0df
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- """ Xi Gua video Million Heroes """ import logging.handlers import multiprocessing import operator import os import threading import time from argparse import ArgumentParser from datetime import datetime from functools import partial from multiprocessing import Event, Pipe from textwrap i...
29.0625
104
0.598482
5dd4b5bb740045646621349ae2b5d440c34c6f6f
8,903
py
Python
scripts/linters/html_linter_test.py
kaylahardie/oppia
e93ed02dfc7f654ef4fb62268c1a9b9d9ded30ec
[ "Apache-2.0" ]
1
2021-06-26T00:31:08.000Z
2021-06-26T00:31:08.000Z
scripts/linters/html_linter_test.py
kaylahardie/oppia
e93ed02dfc7f654ef4fb62268c1a9b9d9ded30ec
[ "Apache-2.0" ]
null
null
null
scripts/linters/html_linter_test.py
kaylahardie/oppia
e93ed02dfc7f654ef4fb62268c1a9b9d9ded30ec
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2020 The Oppia 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 requi...
44.964646
80
0.703021
8c7c1ad73bdcfc7b6f47a71fde6ebed4ff54b44c
1,853
py
Python
omdbie/_types.py
DefaltSimon/OMDbie
9a9e1a31a17eb39a87146476bd3669232ba7d3e2
[ "MIT" ]
null
null
null
omdbie/_types.py
DefaltSimon/OMDbie
9a9e1a31a17eb39a87146476bd3669232ba7d3e2
[ "MIT" ]
null
null
null
omdbie/_types.py
DefaltSimon/OMDbie
9a9e1a31a17eb39a87146476bd3669232ba7d3e2
[ "MIT" ]
null
null
null
""" Types for OMDbie """ class VideoType: movie = "movie" series = "series" episode = "episode" class PlotLength: short = "short" full = "full" class Connectors: requests = "requests" aiohttp = "aiohttp" urllib = "urllib" class Endpoints: base = "http://www.omdbapi.com/?" m...
23.455696
90
0.570426
4681da7fb5392c3d12e5f5c2311ccde368e2d557
1,096
py
Python
indico/modules/events/abstracts/models/fields.py
aiforrural/Digital-Events-Example
628aaa8727b259b9367ac0ae1c5ba8e9e95eca82
[ "MIT" ]
1
2021-02-08T09:34:27.000Z
2021-02-08T09:34:27.000Z
indico/modules/events/abstracts/models/fields.py
pamirk/indico
c3b4e06b11cc21ad497f74d0b2ca901bc1b2a768
[ "MIT" ]
null
null
null
indico/modules/events/abstracts/models/fields.py
pamirk/indico
c3b4e06b11cc21ad497f74d0b2ca901bc1b2a768
[ "MIT" ]
null
null
null
# This file is part of Indico. # Copyright (C) 2002 - 2020 CERN # # Indico is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see the # LICENSE file for more details. from indico.core.db import db from indico.modules.events.contributions.models.fields import ContributionFi...
32.235294
88
0.725365
b292677a357da1ceb38bd8153927242407fa7e18
5,751
py
Python
networks/dqn_net.py
nsortur/equi_rl
83bd2ee9dfaab715e51b71ffff90ab990aaed5f8
[ "MIT" ]
9
2022-02-20T18:18:51.000Z
2022-03-24T03:04:44.000Z
networks/dqn_net.py
nsortur/equi_rl
83bd2ee9dfaab715e51b71ffff90ab990aaed5f8
[ "MIT" ]
null
null
null
networks/dqn_net.py
nsortur/equi_rl
83bd2ee9dfaab715e51b71ffff90ab990aaed5f8
[ "MIT" ]
2
2022-02-19T05:17:06.000Z
2022-02-21T20:53:26.000Z
import torch import torch.nn as nn import torch.nn.functional as F # similar amount of parameters class CNNCom(nn.Module): def __init__(self, input_shape=(2, 128, 128), n_p=2, n_theta=1): super().__init__() self.n_inv = 3 * n_theta * n_p self.conv = torch.nn.Sequential( # 128x12...
34.854545
80
0.53069
09b9a72866a067280729714b6e742ce85f064b2d
7,744
py
Python
test/functional/p2p_invalid_tx.py
MrCryptoBeast/WWW
857e860df0aa1bc7fde2ee6f5918ff32933beeb3
[ "MIT" ]
null
null
null
test/functional/p2p_invalid_tx.py
MrCryptoBeast/WWW
857e860df0aa1bc7fde2ee6f5918ff32933beeb3
[ "MIT" ]
null
null
null
test/functional/p2p_invalid_tx.py
MrCryptoBeast/WWW
857e860df0aa1bc7fde2ee6f5918ff32933beeb3
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2015-2020 The worldwideweb Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test node responses to invalid transactions. In this test we connect to one node over p2p, and te...
45.552941
113
0.680914
8c5f58e8991097f68639bc20e36572fe77437e37
6,783
py
Python
bindings/python/ensmallen_graph/datasets/string/nocardiasp348mftsu51.py
caufieldjh/ensmallen_graph
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
[ "MIT" ]
null
null
null
bindings/python/ensmallen_graph/datasets/string/nocardiasp348mftsu51.py
caufieldjh/ensmallen_graph
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
[ "MIT" ]
null
null
null
bindings/python/ensmallen_graph/datasets/string/nocardiasp348mftsu51.py
caufieldjh/ensmallen_graph
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
[ "MIT" ]
null
null
null
""" This file offers the methods to automatically retrieve the graph Nocardia sp. 348MFTsu51. The graph is automatically retrieved from the STRING repository. Report --------------------- At the time of rendering these methods (please see datetime below), the graph had the following characteristics: Datetime: 202...
35.513089
223
0.706325
eab7f1ac2d5036916eec06eaaa60a177b6f442d3
755
py
Python
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/examples/slideshow_simpletest.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
47
2021-02-15T23:02:36.000Z
2022-03-04T21:30:03.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/examples/slideshow_simpletest.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
23
2018-10-08T16:28:37.000Z
2022-03-21T17:32:02.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/examples/slideshow_simpletest.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
14
2021-02-20T17:40:56.000Z
2022-01-01T19:53:38.000Z
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries # SPDX-License-Identifier: MIT """Basic demonstration script will create a slideshow object that plays through once alphabetically.""" import board from adafruit_slideshow import PlayBackOrder, SlideShow # use built in display (PyPortal, PyGamer, PyBadge,...
27.962963
98
0.757616
2bd1fc6e915ea58d7ce1c0a3494696abe5476a30
12,548
py
Python
src/reporting.py
ivallesp/ynab-reporter
c5d34d75999ce9558a04e0bf89e09085c70c1415
[ "MIT" ]
24
2020-06-20T21:29:52.000Z
2022-01-20T08:42:27.000Z
src/reporting.py
ivallesp/ynab-reporter
c5d34d75999ce9558a04e0bf89e09085c70c1415
[ "MIT" ]
1
2021-06-28T10:35:43.000Z
2021-07-04T12:18:39.000Z
src/reporting.py
ivallesp/ynab-reporter
c5d34d75999ce9558a04e0bf89e09085c70c1415
[ "MIT" ]
1
2020-09-21T17:19:41.000Z
2020-09-21T17:19:41.000Z
import calendar import codecs import math import os import sys from datetime import datetime import matplotlib.pyplot as plt import matplotlib.dates as mdates import pandas as pd import numpy as np from src.wrangling import calculate_daily_balances, get_ynab_dataset import matplotlib as mpl COLORS = [ "da4450",...
35.546742
88
0.652455
e3e6a6e62af7cc07c77111db20802682ce2db2c8
381
py
Python
utils/load_npy.py
marcpasfatou/ROLO
32137cbe749320c9b2aff6c8cc4d954b013f779c
[ "Apache-2.0" ]
3
2017-12-01T22:20:41.000Z
2019-04-23T13:56:06.000Z
utils/load_npy.py
marcpasfatou/ROLO
32137cbe749320c9b2aff6c8cc4d954b013f779c
[ "Apache-2.0" ]
null
null
null
utils/load_npy.py
marcpasfatou/ROLO
32137cbe749320c9b2aff6c8cc4d954b013f779c
[ "Apache-2.0" ]
null
null
null
import numpy as np import pandas as pd import os flag = bool(True) for filename in os.listdir(os.getcwd()): #print(filename) data = np.load(filename) if flag == True: matrix = data flag = False continue matrix = np.append(matrix, data, axis=0) #print(data) np.savetxt("yolo...
22.411765
77
0.622047
95fb9e2c305a866f4e90f70a3abd3196e7fea60e
345
py
Python
books/HandsOnMachineLearning/EndToEnd/split_train_test.py
shibasis0801/MachineLearningPractice
68de20a4cb77a98ccb772f93b8648362c32ca33d
[ "MIT" ]
null
null
null
books/HandsOnMachineLearning/EndToEnd/split_train_test.py
shibasis0801/MachineLearningPractice
68de20a4cb77a98ccb772f93b8648362c32ca33d
[ "MIT" ]
1
2020-04-26T16:17:07.000Z
2020-04-26T16:17:07.000Z
books/HandsOnMachineLearning/EndToEnd/split_train_test.py
shibasis0801/MachineLearningPractice
68de20a4cb77a98ccb772f93b8648362c32ca33d
[ "MIT" ]
null
null
null
import numpy as np def split_train_test(data, test_ratio): count = len(data) shuffled_indices = np.random.permutation(count) test_set_size = int(test_ratio * count) test_indices = shuffled_indices[:test_set_size] train_indices = shuffled_indices[test_set_size:] return data.iloc[train_indices]...
34.5
60
0.756522
27715578ceb4b1d51a0d6ff1a4037caf9185e4a2
417
py
Python
challenges/binary-search/test_binary_search.py
seattlechem/data-structures-and-algorithms
376e465c0a5529ea7c5c4e972a9852b6340251ff
[ "MIT" ]
null
null
null
challenges/binary-search/test_binary_search.py
seattlechem/data-structures-and-algorithms
376e465c0a5529ea7c5c4e972a9852b6340251ff
[ "MIT" ]
null
null
null
challenges/binary-search/test_binary_search.py
seattlechem/data-structures-and-algorithms
376e465c0a5529ea7c5c4e972a9852b6340251ff
[ "MIT" ]
null
null
null
from binary_search import binary_search def test_binary_search_true(): assert binary_search([4, 8, 15, 16, 23, 42], 15) == 2 def test_binary_search_false(): assert binary_search([11, 22, 33, 44, 55, 66, 77], 90) == -1 def test_binary_search_empty_list(): assert binary_search([], 90) == -1 def test_b...
23.166667
73
0.681055
355a5b191a4f7ea7092afb2a8138da0db565dfec
4,154
py
Python
youtuatools/extractor/cwtv.py
Pagasis/YouTua
edb44b2065a7224f8b26aaf76166bf7287901567
[ "MIT" ]
47
2021-01-02T07:44:50.000Z
2022-02-28T22:02:13.000Z
youtuatools/extractor/cwtv.py
Pagasis/YouTua
edb44b2065a7224f8b26aaf76166bf7287901567
[ "MIT" ]
4
2021-02-07T03:35:13.000Z
2021-10-31T19:23:53.000Z
youtuatools/extractor/cwtv.py
Pagasis/YouTua
edb44b2065a7224f8b26aaf76166bf7287901567
[ "MIT" ]
8
2021-01-03T05:44:39.000Z
2021-11-01T05:46:32.000Z
# coding: utf-8 from __future__ import unicode_literals from .common import InfoExtractor from ..utils import ( ExtractorError, int_or_none, parse_age_limit, parse_iso8601, smuggle_url, str_or_none, ) class CWTVIE(InfoExtractor): _VALID_URL = r"https?://(?:www\.)?cw(?:tv(?:pr)?|seed)\.com...
37.763636
194
0.520703
c747a2368163a9b6e2b8ea41b04b394f5eaa1b78
13,191
py
Python
PVD/PVD.py
ajiang-xyz/testing
22e93102ce3d28b4ef1756860162d1b0472abd90
[ "MIT" ]
1
2021-05-05T23:43:30.000Z
2021-05-05T23:43:30.000Z
PVD/PVD.py
ajiang-xyz/testing
22e93102ce3d28b4ef1756860162d1b0472abd90
[ "MIT" ]
null
null
null
PVD/PVD.py
ajiang-xyz/testing
22e93102ce3d28b4ef1756860162d1b0472abd90
[ "MIT" ]
null
null
null
from prompt_toolkit import prompt from rgbChannels import * from typing import * import argparse import datetime import imghdr import signal import ast def getHelp(specificOption=None): """ Basic help information """ helpDictionary = { "default":"""This program uses a custom PVD steganogra...
37.262712
176
0.600258
510507efb6d7073980034407df972199208d1e52
2,125
py
Python
grpc/product/ProductInfo_pb2.py
lolyu/aoi
a26e5eb205aafadc7301b2e4acc67915d3bcc935
[ "MIT" ]
null
null
null
grpc/product/ProductInfo_pb2.py
lolyu/aoi
a26e5eb205aafadc7301b2e4acc67915d3bcc935
[ "MIT" ]
null
null
null
grpc/product/ProductInfo_pb2.py
lolyu/aoi
a26e5eb205aafadc7301b2e4acc67915d3bcc935
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: ProductInfo.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _message from ...
43.367347
540
0.804235
513b7781461e774c4edea5cc00a442a4bd33ae7d
51
py
Python
gym-voilier-v2-discrete/gym_voilier/envs/__init__.py
pfontana96/smart-sailboat
25b2a524b2601b3f8e72092d7a34beb849b617db
[ "MIT" ]
null
null
null
gym-voilier-v2-discrete/gym_voilier/envs/__init__.py
pfontana96/smart-sailboat
25b2a524b2601b3f8e72092d7a34beb849b617db
[ "MIT" ]
null
null
null
gym-voilier-v2-discrete/gym_voilier/envs/__init__.py
pfontana96/smart-sailboat
25b2a524b2601b3f8e72092d7a34beb849b617db
[ "MIT" ]
null
null
null
from gym_voilier.envs.voilier_env import VoilierEnv
51
51
0.901961
2f9a724ba55ba933e60a315f3a4be78ee814da05
2,115
py
Python
ds.py
sudipta1411/Voronoi
1638755546da3edc164b92f264996560a4b7ebf8
[ "MIT" ]
null
null
null
ds.py
sudipta1411/Voronoi
1638755546da3edc164b92f264996560a4b7ebf8
[ "MIT" ]
null
null
null
ds.py
sudipta1411/Voronoi
1638755546da3edc164b92f264996560a4b7ebf8
[ "MIT" ]
null
null
null
#!/usr/bin/pythnon class Point(object) : def __init__(self, px=0.0, py=0.0) : self.px = px self.py = py def get_point(self) : return self.px, self.py def __str__(self) : return '({0},{1})'.format(self.px, self.py) class Site(Point) : def __init__(self, px=0.0, py=0.0)...
28.2
77
0.511111
53fb6c0fc031d42533891bb09952a5a5430ba0a9
8,346
py
Python
tests/unit_tests/data_steward/cdr_cleaner/cleaning_rules/populate_route_ids_test.py
lrwb-aou/curation
e80447e56d269dc2c9c8bc79e78218d4b0dc504c
[ "MIT" ]
16
2017-06-30T20:05:05.000Z
2022-03-08T21:03:19.000Z
tests/unit_tests/data_steward/cdr_cleaner/cleaning_rules/populate_route_ids_test.py
lrwb-aou/curation
e80447e56d269dc2c9c8bc79e78218d4b0dc504c
[ "MIT" ]
342
2017-06-23T21:37:40.000Z
2022-03-30T16:44:16.000Z
tests/unit_tests/data_steward/cdr_cleaner/cleaning_rules/populate_route_ids_test.py
lrwb-aou/curation
e80447e56d269dc2c9c8bc79e78218d4b0dc504c
[ "MIT" ]
33
2017-07-01T00:12:20.000Z
2022-01-26T18:06:53.000Z
import os import time import unittest import mock import bq_utils import common import resources from cdr_cleaner.cleaning_rules import populate_route_ids from constants.cdr_cleaner import clean_cdr as cdr_consts class PopulateRouteIdsTest(unittest.TestCase): @classmethod def setUpClass(cls): print...
43.020619
93
0.662353
ac5615fd32c9edd8a5e644f01856b58f2d7b4362
2,311
py
Python
Python/FlaskMySQL/friends/server.py
JosephAMumford/CodingDojo
505be74d18d7a8f41c4b3576ca050b97f840f0a3
[ "MIT" ]
2
2018-08-18T15:14:45.000Z
2019-10-16T16:14:13.000Z
Python/FlaskMySQL/friends/server.py
JosephAMumford/CodingDojo
505be74d18d7a8f41c4b3576ca050b97f840f0a3
[ "MIT" ]
null
null
null
Python/FlaskMySQL/friends/server.py
JosephAMumford/CodingDojo
505be74d18d7a8f41c4b3576ca050b97f840f0a3
[ "MIT" ]
6
2018-05-05T18:13:05.000Z
2021-05-20T11:32:48.000Z
from flask import Flask, request, redirect, render_template, session, flash from mysqlconnection import MySQLConnector app = Flask(__name__) mysql = MySQLConnector(app,'friendsdb') @app.route('/') def index(): query = "SELECT * FROM friends" # define your query friends = mysql.query_d...
43.603774
153
0.656426
ad2fd618db08a5bff5953956f8072d6e3074f0c2
21,431
py
Python
fileshack/views.py
airtonix/fileshackproject
caf9863c75b45b5155fcb1f3d1ad6490056c0d5f
[ "MIT" ]
1
2019-06-27T13:47:31.000Z
2019-06-27T13:47:31.000Z
fileshack/views.py
airtonix/fileshackproject
caf9863c75b45b5155fcb1f3d1ad6490056c0d5f
[ "MIT" ]
null
null
null
fileshack/views.py
airtonix/fileshackproject
caf9863c75b45b5155fcb1f3d1ad6490056c0d5f
[ "MIT" ]
null
null
null
# Copyright (c) 2012 Peter Kuma # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribu...
35.075286
110
0.614157
e27d858b47dbe5090effe71ae4b148cb2e7bb954
775
py
Python
yamale/readers/yaml_reader.py
basnijholt/Yamale
8d8e4b809c9e313795ac5c3721697ac853bfada5
[ "MIT" ]
1
2021-01-21T10:18:38.000Z
2021-01-21T10:18:38.000Z
yamale/readers/yaml_reader.py
basnijholt/Yamale
8d8e4b809c9e313795ac5c3721697ac853bfada5
[ "MIT" ]
null
null
null
yamale/readers/yaml_reader.py
basnijholt/Yamale
8d8e4b809c9e313795ac5c3721697ac853bfada5
[ "MIT" ]
1
2020-12-04T21:48:58.000Z
2020-12-04T21:48:58.000Z
from __future__ import absolute_import def _pyyaml(file_name): import yaml try: Loader = yaml.CSafeLoader except AttributeError: # System does not have libyaml Loader = yaml.SafeLoader with open(file_name) as f: return list(yaml.load_all(f, Loader=Loader)) def _ruamel(file_n...
23.484848
120
0.665806
01a7612d924634c2eb762ec2d69946111e364553
6,302
py
Python
userbot/modules/chat.py
bakulcilok/ProjectBish-1
f2d84d6dc4bb4c0078ce6a85df1194833580ae55
[ "Naumen", "Condor-1.1", "MS-PL" ]
1
2020-06-30T09:06:27.000Z
2020-06-30T09:06:27.000Z
userbot/modules/chat.py
tegarseptian033/ProjectBish-1
9ee5fe1c549e70e910ce65660498159e8e5fb197
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/modules/chat.py
tegarseptian033/ProjectBish-1
9ee5fe1c549e70e910ce65660498159e8e5fb197
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
# Copyright (C) 2019 The Raphielscape Company LLC. # # Licensed under the Raphielscape Public License, Version 1.c (the "License"); # you may not use this file except in compliance with the License. """ Userbot module containing userid, chatid and log commands""" from asyncio import sleep from userbot import CMD_HELP,...
36.011429
108
0.638686
4fcdc350bc90acd87e65988a6d992e996027d584
126,742
py
Python
pandas/tests/plotting/test_frame.py
mlline00/pandas
fd7db9819b8c7dba86b2887bee33f670b2715afc
[ "BSD-3-Clause" ]
1
2019-12-28T12:27:14.000Z
2019-12-28T12:27:14.000Z
pandas/tests/plotting/test_frame.py
salama4/pandas
1d36851ffdc8391b8b60a7628ce5a536180ef13b
[ "BSD-3-Clause" ]
null
null
null
pandas/tests/plotting/test_frame.py
salama4/pandas
1d36851ffdc8391b8b60a7628ce5a536180ef13b
[ "BSD-3-Clause" ]
null
null
null
# coding: utf-8 """ Test cases for DataFrame.plot """ from datetime import date, datetime import itertools import string import warnings import numpy as np from numpy.random import rand, randn import pytest import pandas.util._test_decorators as td from pandas.core.dtypes.api import is_list_like import pandas as ...
38.806491
88
0.567562
443a79e5305eff60f5ea0fa9dbe0120700e0537c
1,942
py
Python
var/spack/repos/builtin/packages/libpmemobj-cpp/package.py
LiamBindle/spack
e90d5ad6cfff2ba3de7b537d6511adccd9d5fcf1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2,360
2017-11-06T08:47:01.000Z
2022-03-31T14:45:33.000Z
var/spack/repos/builtin/packages/libpmemobj-cpp/package.py
LiamBindle/spack
e90d5ad6cfff2ba3de7b537d6511adccd9d5fcf1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
13,838
2017-11-04T07:49:45.000Z
2022-03-31T23:38:39.000Z
var/spack/repos/builtin/packages/libpmemobj-cpp/package.py
LiamBindle/spack
e90d5ad6cfff2ba3de7b537d6511adccd9d5fcf1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
1,793
2017-11-04T07:45:50.000Z
2022-03-30T14:31:53.000Z
# Copyright 2013-2021 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 import * class LibpmemobjCpp(CMakePackage): """C++ bindings for libpmemobj (https://github.com/pmem/pmdk)...
47.365854
98
0.717302
cc6c132495891def4d47a594b8329ed811777856
1,801
py
Python
setup.py
TheAngryGoldfish/entity-embed
9493a9d194208a19aed5a40a3140245dbeea6b44
[ "MIT" ]
89
2021-04-06T23:07:06.000Z
2022-03-27T18:27:13.000Z
setup.py
TheAngryGoldfish/entity-embed
9493a9d194208a19aed5a40a3140245dbeea6b44
[ "MIT" ]
7
2021-04-13T18:51:43.000Z
2022-01-25T12:39:22.000Z
setup.py
TheAngryGoldfish/entity-embed
9493a9d194208a19aed5a40a3140245dbeea6b44
[ "MIT" ]
7
2021-04-21T15:08:23.000Z
2021-12-11T22:41:17.000Z
#!/usr/bin/env python """The setup script.""" from pkg_resources import parse_requirements from setuptools import find_packages, setup with open("README.md", "r", encoding="utf-8") as readme_file: readme = readme_file.read() with open("requirements.txt") as requirements_file: requirements = [str(req) for re...
33.981132
90
0.67518
347904b26dd7ad832fec531afacdaa5c6f3560bf
5,353
py
Python
ReminderModule.py
Tequila24/SubBot
66bc1505a3d0ae2e17632a0f422c8e6d7dc1bcdc
[ "Unlicense" ]
null
null
null
ReminderModule.py
Tequila24/SubBot
66bc1505a3d0ae2e17632a0f422c8e6d7dc1bcdc
[ "Unlicense" ]
null
null
null
ReminderModule.py
Tequila24/SubBot
66bc1505a3d0ae2e17632a0f422c8e6d7dc1bcdc
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- """ @author: Fuego """ from VkLib import VkLib from SubDB import SubDB import re from datetime import datetime, timedelta from pprint import pprint import traceback import typing class ReminderModule: def __init__(self, new_vk_handle: VkLib): self.dbase = SubDB("sub24_reminders") self.v...
35.450331
147
0.624883
32c2e960a2b4a3d32d99191e33df82440f884adf
345
py
Python
marketTimer.py
santarini/python
8f1d576d59b7c9ca23c3d80058fa2d14833c54ae
[ "MIT" ]
3
2017-12-22T09:33:18.000Z
2020-07-06T04:53:00.000Z
marketTimer.py
santarini/python
8f1d576d59b7c9ca23c3d80058fa2d14833c54ae
[ "MIT" ]
null
null
null
marketTimer.py
santarini/python
8f1d576d59b7c9ca23c3d80058fa2d14833c54ae
[ "MIT" ]
null
null
null
import schedule import datetime #NYSE,NASDAQ,AMEX (Hours 9:30am-4:00pm) weekdays = ['monday','tuesday','wednesday','thursday','friday'] ##print("17:00") def job(): n = datetime.datetime.now() print("Test " + str(n)) for k in range(0,5): dayHolder = weekdays[k] print(dayHolder) schedule.dayHolde...
19.166667
63
0.66087
50d26b537be193fb656581338d40150f229139bf
2,524
py
Python
scrapyd/tests/test_environ.py
gtlambert/scrapyd
1395e32dd88557d6c50c4920cb6b1dea1fbcfbb7
[ "BSD-3-Clause" ]
null
null
null
scrapyd/tests/test_environ.py
gtlambert/scrapyd
1395e32dd88557d6c50c4920cb6b1dea1fbcfbb7
[ "BSD-3-Clause" ]
1
2019-02-07T21:35:25.000Z
2019-02-07T21:35:25.000Z
scrapyd/tests/test_environ.py
gtlambert/scrapyd
1395e32dd88557d6c50c4920cb6b1dea1fbcfbb7
[ "BSD-3-Clause" ]
2
2016-05-17T17:26:23.000Z
2016-05-24T17:10:17.000Z
import datetime import os from twisted.trial import unittest from zope.interface.verify import verifyObject from scrapyd.interfaces import IEnvironment from scrapyd.config import Config from scrapyd.environ import Environment class EnvironmentTest(unittest.TestCase): def setUp(self): d = self.mktemp() ...
42.779661
125
0.644612
add84c0c8316c87b0788d73365960c28e22f95c0
14,847
py
Python
virt/ansible-latest/lib/python2.7/site-packages/ansible/modules/network/eos/eos_eapi.py
lakhlaifi/RedHat-Ansible
27c5077cced9d416081fcd5d69ea44bca0317fa4
[ "Apache-2.0" ]
1
2020-03-22T01:04:39.000Z
2020-03-22T01:04:39.000Z
.v/lib/python3.6/site-packages/ansible/modules/network/eos/eos_eapi.py
binRick/ansible-callback-concise
fd7b05596b30872af3f79a32f223a0458bffbedd
[ "MIT" ]
null
null
null
.v/lib/python3.6/site-packages/ansible/modules/network/eos/eos_eapi.py
binRick/ansible-callback-concise
fd7b05596b30872af3f79a32f223a0458bffbedd
[ "MIT" ]
1
2020-03-22T01:04:48.000Z
2020-03-22T01:04:48.000Z
#!/usr/bin/python # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Ansible is distribut...
34.447796
108
0.642689
c544667bfca50bac87d22b49ebe3fb2030b432d4
2,768
py
Python
python_modules/libraries/dagster-aws/dagster_aws_tests/s3_tests/test_file_handle_to_s3.py
atsuhiro/dagster
24116a003a12c5a582afba3d4db74b3fa8c8159c
[ "Apache-2.0" ]
null
null
null
python_modules/libraries/dagster-aws/dagster_aws_tests/s3_tests/test_file_handle_to_s3.py
atsuhiro/dagster
24116a003a12c5a582afba3d4db74b3fa8c8159c
[ "Apache-2.0" ]
null
null
null
python_modules/libraries/dagster-aws/dagster_aws_tests/s3_tests/test_file_handle_to_s3.py
atsuhiro/dagster
24116a003a12c5a582afba3d4db74b3fa8c8159c
[ "Apache-2.0" ]
null
null
null
from dagster import pipeline, solid, ModeDefinition, execute_pipeline, ResourceDefinition from dagster.utils.test import get_temp_file_handle_with_data from dagster_aws.s3.solids import file_handle_to_s3 from dagster_aws.s3.s3_fake_resource import create_s3_fake_resource def create_file_handle_pipeline(temp_file_hand...
33.349398
98
0.619942
9fa3b1e36e159ebd81ae35824f48c08c7029ddc7
41
py
Python
mltk/marl/envs/__init__.py
lqf96/mltk
7187be5d616781695ee68674cd335fbb5a237ccc
[ "MIT" ]
null
null
null
mltk/marl/envs/__init__.py
lqf96/mltk
7187be5d616781695ee68674cd335fbb5a237ccc
[ "MIT" ]
2
2019-12-24T01:54:21.000Z
2019-12-24T02:23:54.000Z
mltk/marl/envs/__init__.py
lqf96/mltk
7187be5d616781695ee68674cd335fbb5a237ccc
[ "MIT" ]
null
null
null
from .matrix import * from .mdp import *
13.666667
21
0.707317
f5396eb12cc8263fba01216afab391c845bed755
1,606
py
Python
utils/extractor.py
roywilds/gpt-2-simple
b536b0e53dce130549f88669e7b4864fe4c5abb1
[ "MIT" ]
null
null
null
utils/extractor.py
roywilds/gpt-2-simple
b536b0e53dce130549f88669e7b4864fe4c5abb1
[ "MIT" ]
null
null
null
utils/extractor.py
roywilds/gpt-2-simple
b536b0e53dce130549f88669e7b4864fe4c5abb1
[ "MIT" ]
null
null
null
""" Roy Wilds 2020-09-07 Simple utility to extract payload from downloaded resources. See NLP-3 ticket for info about resources. File can be downloaded from https://www.kaggle.com/hsankesara/medium-articles Example usage: python extractor.py --input-file /data/NLP/articles.csv Known Limitations: - Very limited e...
32.12
112
0.694271