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
5b71ed0aaff5ab10db4de0c0fde4542c9441e89f
582
py
Python
kozmic/repos/__init__.py
artofhuman/kozmic-ci
930c06e0ad6d5a1fe16b81c036a1d676004eeb37
[ "BSD-3-Clause" ]
1
2021-06-05T18:36:13.000Z
2021-06-05T18:36:13.000Z
kozmic/repos/__init__.py
artofhuman/kozmic-ci
930c06e0ad6d5a1fe16b81c036a1d676004eeb37
[ "BSD-3-Clause" ]
null
null
null
kozmic/repos/__init__.py
artofhuman/kozmic-ci
930c06e0ad6d5a1fe16b81c036a1d676004eeb37
[ "BSD-3-Clause" ]
null
null
null
# coding: utf-8 """ kozmic.repos ~~~~~~~~~~~~ .. attribute:: bp :class:`flask.Blueprint` that gives users the abilities to: 1. View list of GitHub repositories they have admin access to 2. Create :class:`kozmic.models.Project` for any of them """ from flask import Blueprint from flask.ext.login impor...
17.117647
65
0.694158
45179ac291177b44bc3c245bb69b4e246b6b1a19
2,812
py
Python
Simple Recurrent Cell/simpleRNN_io.py
GoktugGuvercin/Recurrent-Neural-Networks
5086d9d66f4980020620476d543176e825f44ffa
[ "MIT" ]
1
2021-04-23T14:45:23.000Z
2021-04-23T14:45:23.000Z
Simple Recurrent Cell/simpleRNN_io.py
GoktugGuvercin/Recurrent-Neural-Networks
5086d9d66f4980020620476d543176e825f44ffa
[ "MIT" ]
null
null
null
Simple Recurrent Cell/simpleRNN_io.py
GoktugGuvercin/Recurrent-Neural-Networks
5086d9d66f4980020620476d543176e825f44ffa
[ "MIT" ]
null
null
null
""" >> In this code, it is assumed that we have sentiment-text classification problem, and depending on it, RNN layer is configured to process the sentences. >> This simple code aims to describe how parameters in simple RNN layer are used so that given input sequences can be processed by its simple cells. >> I...
37.493333
119
0.721906
8619cb1978ea53f236034101ddd80a45b6156650
2,205
py
Python
src/sentry/models/rule.py
lauryndbrown/sentry
c5304e303966566386f5e61df1b72624a30803b4
[ "BSD-3-Clause" ]
1
2020-02-27T02:46:25.000Z
2020-02-27T02:46:25.000Z
src/sentry/models/rule.py
lauryndbrown/sentry
c5304e303966566386f5e61df1b72624a30803b4
[ "BSD-3-Clause" ]
1
2020-11-05T14:54:44.000Z
2020-11-19T21:54:19.000Z
src/sentry/models/rule.py
lauryndbrown/sentry
c5304e303966566386f5e61df1b72624a30803b4
[ "BSD-3-Clause" ]
1
2017-02-09T06:36:57.000Z
2017-02-09T06:36:57.000Z
from __future__ import absolute_import, print_function from django.db import models from django.utils import timezone from sentry.db.models import ( BoundedPositiveIntegerField, Model, FlexibleForeignKey, GzippedDictField, sane_repr ) from sentry.db.models.manager import BaseManager from sentry.utils.cache import...
28.636364
87
0.648526
7d7eb3db4195b4d59aeaa228d023190c628df6f7
1,525
py
Python
Libary Management System/menu.py
gvevance/DSA-Projects
cc92bd3535b4b370048a77a1361a544fad6a7ff6
[ "MIT" ]
null
null
null
Libary Management System/menu.py
gvevance/DSA-Projects
cc92bd3535b4b370048a77a1361a544fad6a7ff6
[ "MIT" ]
null
null
null
Libary Management System/menu.py
gvevance/DSA-Projects
cc92bd3535b4b370048a77a1361a544fad6a7ff6
[ "MIT" ]
null
null
null
# menus at each screen from login import admin_login from login import user_login import os def admin_console_menu(): os.system('clear') print("Entered Admin Console Menu") input() def user_console_menu(): os.system('clear') print("Entered User Console Menu") input() def new_user_sign...
22.426471
89
0.485246
a11ffcf41420779bb1eb8c6d420c451e35a4771e
8,831
py
Python
IBA/utils.py
karl-schulz/IBA
607dfb108e04d354dec10e5eb23b84a35ea6b283
[ "MIT" ]
57
2020-03-09T20:39:04.000Z
2022-03-28T12:54:20.000Z
IBA/utils.py
karl-schulz/IBA
607dfb108e04d354dec10e5eb23b84a35ea6b283
[ "MIT" ]
25
2020-03-09T23:20:47.000Z
2022-03-12T00:17:53.000Z
IBA/utils.py
karl-schulz/IBA
607dfb108e04d354dec10e5eb23b84a35ea6b283
[ "MIT" ]
7
2020-03-10T13:13:51.000Z
2022-01-04T09:31:30.000Z
# Copyright (c) Karl Schulz, Leon Sixt # # All rights reserved. # # This code is licensed under the MIT License. # # 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, includin...
33.450758
95
0.628921
b4e9fe45685a0eb893a25d4c87107000a4c359cf
3,225
py
Python
tools/prepare_python_system_tests.py
pmitra30/nimi-python
9c0bae1ee728e92df3e9c5b2050581707890a838
[ "MIT" ]
null
null
null
tools/prepare_python_system_tests.py
pmitra30/nimi-python
9c0bae1ee728e92df3e9c5b2050581707890a838
[ "MIT" ]
null
null
null
tools/prepare_python_system_tests.py
pmitra30/nimi-python
9c0bae1ee728e92df3e9c5b2050581707890a838
[ "MIT" ]
null
null
null
import argparse import json import os import subprocess import tempfile import time import urllib.request import zipfile print('****Installing tox to Python.****') results = subprocess.run(["python", '-m', 'pip', 'install', '--disable-pip-version-check', '--upgrade', 'pip', 'tox'], check=True) print('****Creating te...
39.814815
220
0.703876
0ba1338f12228042ef2b73de0984a83244575649
18,339
py
Python
catkin_tools/verbs/catkin_build/cli.py
6RiverSystems/catkin_tools
2c3494ed7fb56f19be2b12889b8963c08608b503
[ "Apache-2.0" ]
151
2015-01-12T19:50:23.000Z
2022-03-23T05:08:09.000Z
catkin_tools/verbs/catkin_build/cli.py
6RiverSystems/catkin_tools
2c3494ed7fb56f19be2b12889b8963c08608b503
[ "Apache-2.0" ]
562
2015-01-12T01:31:37.000Z
2022-03-29T10:27:05.000Z
catkin_tools/verbs/catkin_build/cli.py
6RiverSystems/catkin_tools
2c3494ed7fb56f19be2b12889b8963c08608b503
[ "Apache-2.0" ]
163
2015-01-15T03:46:59.000Z
2022-03-15T20:20:13.000Z
# Copyright 2014 Open Source Robotics Foundation, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
45.281481
118
0.685206
2593a24c245e53eaa8b8e461efdca838c9dddaa5
37
py
Python
angryfiles/__init__.py
jakeogh/angryfiles
8ba88a63add53da3dfad18e3e26adaa7144ae888
[ "MIT" ]
44
2017-01-15T22:18:57.000Z
2021-09-22T19:25:24.000Z
angryfiles/__init__.py
jakeogh/angryfiles
8ba88a63add53da3dfad18e3e26adaa7144ae888
[ "MIT" ]
1
2018-05-04T21:08:14.000Z
2018-05-04T21:08:14.000Z
angryfiles/__init__.py
jakeogh/angryfiles
8ba88a63add53da3dfad18e3e26adaa7144ae888
[ "MIT" ]
2
2017-01-16T07:08:55.000Z
2018-05-04T10:55:36.000Z
from .angryfiles import random_bytes
18.5
36
0.864865
763628bd913c8bb4b2188574a08fef59259722a4
2,328
py
Python
st2common/bin/migrations/v1.5/st2-migrate-datastore-to-include-scope-secret.py
magiceses/st2
a048ba92a8a1a5d272f277bf8fab0951df903306
[ "Apache-2.0" ]
null
null
null
st2common/bin/migrations/v1.5/st2-migrate-datastore-to-include-scope-secret.py
magiceses/st2
a048ba92a8a1a5d272f277bf8fab0951df903306
[ "Apache-2.0" ]
2
2020-03-04T08:33:36.000Z
2020-03-04T08:34:14.000Z
st2common/bin/migrations/v1.5/st2-migrate-datastore-to-include-scope-secret.py
magiceses/st2
a048ba92a8a1a5d272f277bf8fab0951df903306
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Licensed to the StackStorm, Inc ('StackStorm') 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...
31.890411
80
0.679124
cb874ef68cb237697a0e37c6db2894545d9bb62f
116
py
Python
Python/Collection/ReverseList2.py
piovezan/SOpt
a5ec90796b7bdf98f0675457fc4bb99c8695bc40
[ "MIT" ]
148
2017-08-03T01:49:27.000Z
2022-03-26T10:39:30.000Z
Python/Collection/ReverseList2.py
piovezan/SOpt
a5ec90796b7bdf98f0675457fc4bb99c8695bc40
[ "MIT" ]
3
2017-11-23T19:52:05.000Z
2020-04-01T00:44:40.000Z
Python/Collection/ReverseList2.py
piovezan/SOpt
a5ec90796b7bdf98f0675457fc4bb99c8695bc40
[ "MIT" ]
59
2017-08-03T01:49:19.000Z
2022-03-31T23:24:38.000Z
teste = ['audi', 'subaru', 'fiat', 'ford'] teste.reverse() print(teste) #https://pt.stackoverflow.com/q/328919/101
19.333333
42
0.672414
eb51c4be434aed50e86376c65357599b9fd92a33
262
py
Python
infra/twitter.py
DolkMd/anytter
33ee397a6920414763c665f90a148fb824ebafea
[ "MIT" ]
null
null
null
infra/twitter.py
DolkMd/anytter
33ee397a6920414763c665f90a148fb824ebafea
[ "MIT" ]
null
null
null
infra/twitter.py
DolkMd/anytter
33ee397a6920414763c665f90a148fb824ebafea
[ "MIT" ]
null
null
null
import tweepy def get_client(api_key: str, api_secret: str, access_token: str, access_token_secret: str) -> tweepy.API: auth = tweepy.OAuthHandler(api_key, api_secret) auth.set_access_token(access_token, access_token_secret) return tweepy.API(auth)
37.428571
105
0.774809
8427248f15f0c7594f0fcbc164743eb62f93b528
74
py
Python
pydis/pydis.py
guchengxi1994/dev-tool-for-python
dba0bd0daae535ef155c1419d19177d29303b507
[ "MIT" ]
null
null
null
pydis/pydis.py
guchengxi1994/dev-tool-for-python
dba0bd0daae535ef155c1419d19177d29303b507
[ "MIT" ]
null
null
null
pydis/pydis.py
guchengxi1994/dev-tool-for-python
dba0bd0daae535ef155c1419d19177d29303b507
[ "MIT" ]
null
null
null
from utils.server import initial if __name__ == "__main__": initial()
18.5
32
0.716216
13b2c9a1fdced48ae0134293b79ec6caa867826f
216,572
py
Python
skrf/network.py
keikawa/scikit-rf
eb2ed757a496cfc447919ed83777e573d10ae41b
[ "BSD-3-Clause" ]
null
null
null
skrf/network.py
keikawa/scikit-rf
eb2ed757a496cfc447919ed83777e573d10ae41b
[ "BSD-3-Clause" ]
null
null
null
skrf/network.py
keikawa/scikit-rf
eb2ed757a496cfc447919ed83777e573d10ae41b
[ "BSD-3-Clause" ]
1
2020-12-02T19:26:27.000Z
2020-12-02T19:26:27.000Z
# -*- coding: utf-8 -*- """ .. module:: skrf.network ======================================== network (:mod:`skrf.network`) ======================================== Provides a n-port network class and associated functions. Much of the functionality in this module is provided as methods and properties of the :class:`...
31.630203
291
0.557902
f87f62b74c20c441fbafd41db075a9ea3ee752d9
648
py
Python
dynamic-randomwalk-standalone.py
RachidStat/PyCX
a1a597e61d03b25cf138dd11ab136db8202e1243
[ "BSD-2-Clause-FreeBSD" ]
176
2019-12-18T11:44:28.000Z
2022-03-27T09:09:33.000Z
dynamic-randomwalk-standalone.py
RachidStat/PyCX
a1a597e61d03b25cf138dd11ab136db8202e1243
[ "BSD-2-Clause-FreeBSD" ]
2
2020-03-29T00:51:25.000Z
2020-07-19T11:08:32.000Z
dynamic-randomwalk-standalone.py
RachidStat/PyCX
a1a597e61d03b25cf138dd11ab136db8202e1243
[ "BSD-2-Clause-FreeBSD" ]
56
2019-12-18T19:04:12.000Z
2022-03-22T09:35:33.000Z
from pylab import * n = 1000 # number of particles sd = 0.1 # standard deviation of Gaussian noise def initialize(): global xlist, ylist xlist = [] ylist = [] for i in range(n): xlist.append(normal(0, 1)) ylist.append(normal(0, 1)) def observe(): global xlist, ylist cla() ...
19.058824
47
0.557099
a2f907ebf4185d0df1190a04f99e38bfbd8b27be
3,485
py
Python
contrib/zmq/zmq_sub.py
hiphopcoin24/hiphopcoin24
09b780546ba9e28b452a8641863aafa90def40d1
[ "MIT" ]
null
null
null
contrib/zmq/zmq_sub.py
hiphopcoin24/hiphopcoin24
09b780546ba9e28b452a8641863aafa90def40d1
[ "MIT" ]
null
null
null
contrib/zmq/zmq_sub.py
hiphopcoin24/hiphopcoin24
09b780546ba9e28b452a8641863aafa90def40d1
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2018 The Hiphopcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """ ZMQ example using python3's asyncio Hiphopcoin should be started with the command line ar...
38.296703
113
0.639598
f545de39f5523e367c4955921dd11faa5b7c686e
1,740
py
Python
tests/CrawlerRunner/ip_address.py
FingerCrunch/scrapy
3225de725720bba246ba8c9845fe4b84bc0c82e7
[ "BSD-3-Clause" ]
41,267
2015-01-01T07:39:25.000Z
2022-03-31T20:09:40.000Z
tests/CrawlerRunner/ip_address.py
FingerCrunch/scrapy
3225de725720bba246ba8c9845fe4b84bc0c82e7
[ "BSD-3-Clause" ]
4,420
2015-01-02T09:35:38.000Z
2022-03-31T22:53:32.000Z
tests/CrawlerRunner/ip_address.py
FingerCrunch/scrapy
3225de725720bba246ba8c9845fe4b84bc0c82e7
[ "BSD-3-Clause" ]
11,080
2015-01-01T18:11:30.000Z
2022-03-31T15:33:19.000Z
from urllib.parse import urlparse from twisted.internet import reactor from twisted.names import cache, hosts as hostsModule, resolve from twisted.names.client import Resolver from twisted.python.runtime import platform from scrapy import Spider, Request from scrapy.crawler import CrawlerRunner from scrapy.utils.log ...
34.117647
87
0.714368
6f8b376a32d66908d9658f6c958a4a3ed6131952
20,059
py
Python
fhir/resources/questionnaireresponse.py
ItayGoren/fhir.resources
3c45fddeb5a91ca0f02f9e28126b1f41a60360ba
[ "BSD-3-Clause" ]
1
2020-08-31T09:52:25.000Z
2020-08-31T09:52:25.000Z
fhir/resources/questionnaireresponse.py
arkhn/fhir.resources
122e89c8599c4034bb3075b31d1a1188e377db91
[ "BSD-3-Clause" ]
null
null
null
fhir/resources/questionnaireresponse.py
arkhn/fhir.resources
122e89c8599c4034bb3075b31d1a1188e377db91
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Profile: http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse Release: R4 Version: 4.0.1 Build ID: 9346c8cc45 Last updated: 2019-11-01T09:29:23.356+11:00 """ from typing import Any, Dict from typing import List as ListType from pydantic import Field, root_validator from . import b...
36.012567
90
0.615734
b5473d1637b7044ee70a7d00822f8db704a8a2d9
9,169
py
Python
src/recochef/models/thompson.py
sparsh-ai/recochef
c3ce5c2ec75d80a9ecc820413cf940b79fe43f65
[ "MIT" ]
null
null
null
src/recochef/models/thompson.py
sparsh-ai/recochef
c3ce5c2ec75d80a9ecc820413cf940b79fe43f65
[ "MIT" ]
null
null
null
src/recochef/models/thompson.py
sparsh-ai/recochef
c3ce5c2ec75d80a9ecc820413cf940b79fe43f65
[ "MIT" ]
null
null
null
from random import random from typing import List, Dict from collections import Counter import scipy import scipy.stats as stats import numpy as np import pandas as pd from recochef.models.bandits import BetaBandit class WeightedChoiceFailed(Exception): """ Custom exception class that is used to format excpe...
37.73251
197
0.644563
cbf1367c48b2ab34b9b2d6997effaae6ded547d5
4,008
py
Python
venv/lib/python3.8/site-packages/azure/mgmt/containerregistry/v2019_06_01_preview/models/_container_registry_management_client_enums.py
amcclead7336/Enterprise_Data_Science_Final
ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28
[ "Unlicense", "MIT" ]
null
null
null
venv/lib/python3.8/site-packages/azure/mgmt/containerregistry/v2019_06_01_preview/models/_container_registry_management_client_enums.py
amcclead7336/Enterprise_Data_Science_Final
ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28
[ "Unlicense", "MIT" ]
null
null
null
venv/lib/python3.8/site-packages/azure/mgmt/containerregistry/v2019_06_01_preview/models/_container_registry_management_client_enums.py
amcclead7336/Enterprise_Data_Science_Final
ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28
[ "Unlicense", "MIT" ]
2
2021-05-23T16:46:31.000Z
2021-05-26T23:51:09.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
16.840336
76
0.627246
6b0d7664f8f46698234d4c245d5273dd5821861e
4,598
py
Python
Wrapping/Python/paraview/smtesting.py
mathstuf/ParaView
e867e280545ada10c4ed137f6a966d9d2f3db4cb
[ "Apache-2.0" ]
1
2019-04-22T09:09:18.000Z
2019-04-22T09:09:18.000Z
Wrapping/Python/paraview/smtesting.py
mathstuf/ParaView
e867e280545ada10c4ed137f6a966d9d2f3db4cb
[ "Apache-2.0" ]
2
2015-06-19T07:24:42.000Z
2015-06-19T13:39:01.000Z
Wrapping/Python/paraview/smtesting.py
mathstuf/ParaView
e867e280545ada10c4ed137f6a966d9d2f3db4cb
[ "Apache-2.0" ]
5
2016-04-14T13:42:37.000Z
2021-05-22T04:59:42.000Z
# This is a module for Server Manager testing using Python. # This provides several utility functions useful for testing import os import re import sys import exceptions from vtkPVServerManagerDefaultPython import * # we get different behavior based on how we import servermanager # so we want to import servermanager t...
29.101266
92
0.720313
583af46b4644480d619945ec3fe7b14f95738e45
1,559
py
Python
examples/afm/afm.py
LukeSkywalker92/heuslertools
58108511eec4a027f7d42888e66b50b2dc8d7612
[ "MIT" ]
null
null
null
examples/afm/afm.py
LukeSkywalker92/heuslertools
58108511eec4a027f7d42888e66b50b2dc8d7612
[ "MIT" ]
null
null
null
examples/afm/afm.py
LukeSkywalker92/heuslertools
58108511eec4a027f7d42888e66b50b2dc8d7612
[ "MIT" ]
null
null
null
import os from matplotlib import ticker from heuslertools.afm import AFMMeasurement from heuslertools.plotting.mpl_helpers import set_size import matplotlib.pylab as plt fig = plt.figure(figsize=set_size(20, ratio=0.4, cm=True)) afm = AFMMeasurement('data/H1202_1x1um.txt', size=(1e-6, 1e-6)) x0, y0 = 286.284, 130.674 ...
31.18
102
0.676716
fb9d6d2c0d9c424b86b0c9de6ddca43148230129
3,926
py
Python
turtlebot3_gazebo/src/AStarSearch.py
noameshed/turtlebot3_simulations
541ee6eb3bfcb13116e56e78e0b0b38dd8e44640
[ "Apache-2.0" ]
null
null
null
turtlebot3_gazebo/src/AStarSearch.py
noameshed/turtlebot3_simulations
541ee6eb3bfcb13116e56e78e0b0b38dd8e44640
[ "Apache-2.0" ]
null
null
null
turtlebot3_gazebo/src/AStarSearch.py
noameshed/turtlebot3_simulations
541ee6eb3bfcb13116e56e78e0b0b38dd8e44640
[ "Apache-2.0" ]
null
null
null
# Got help from https://medium.com/@nicholas.w.swift/easy-a-star-pathfinding-7e6689c7f7b2 # https://towardsdatascience.com/a-star-a-search-algorithm-eb495fb156bb import numpy as np class Node(): # Node class for the A* Search def __init__(self, parent=None, pos=None, idx=None): self.parent = parent self.pos = ...
26.348993
89
0.669638
dc9da1100f01208a7e28fe9d664e3afd131c1d3f
4,328
py
Python
homeassistant/components/whois/sensor.py
itewk/home-assistant
769cf19052f8c9ef374d8ba8ae7705ccc7bf4cf4
[ "Apache-2.0" ]
23
2017-11-15T21:03:53.000Z
2021-03-29T21:33:48.000Z
homeassistant/components/whois/sensor.py
itewk/home-assistant
769cf19052f8c9ef374d8ba8ae7705ccc7bf4cf4
[ "Apache-2.0" ]
9
2022-01-27T06:32:10.000Z
2022-03-31T07:07:51.000Z
homeassistant/components/whois/sensor.py
itewk/home-assistant
769cf19052f8c9ef374d8ba8ae7705ccc7bf4cf4
[ "Apache-2.0" ]
10
2018-01-01T00:12:51.000Z
2021-12-21T23:08:05.000Z
"""Get WHOIS information for a given host.""" from datetime import timedelta import logging import voluptuous as vol import whois from homeassistant.components.sensor import PLATFORM_SCHEMA from homeassistant.const import CONF_NAME import homeassistant.helpers.config_validation as cv from homeassistant.helpers.entity...
30.055556
85
0.612292
35f77baf8e3aa2a487eeb65bcf2a2ea75ce5642f
16,829
py
Python
aries_cloudagent/messaging/models/base_record.py
itaru2622/aries-cloudagent-python
db6b7699e603ecb335165a79459fbab7b6587a70
[ "Apache-2.0" ]
4
2019-07-01T13:12:50.000Z
2019-07-02T20:01:37.000Z
aries_cloudagent/messaging/models/base_record.py
itaru2622/aries-cloudagent-python
db6b7699e603ecb335165a79459fbab7b6587a70
[ "Apache-2.0" ]
29
2019-06-24T22:48:04.000Z
2019-07-02T20:52:16.000Z
aries_cloudagent/messaging/models/base_record.py
amanji/aries-cloudagent-python
211af2b4e5b8131d64b1b3855ef8e352e831b71f
[ "Apache-2.0" ]
12
2019-06-24T22:17:44.000Z
2019-07-02T19:49:31.000Z
"""Classes for BaseStorage-based record management.""" import json import logging import sys import uuid from datetime import datetime from typing import Any, Mapping, Optional, Sequence, Type, TypeVar, Union from marshmallow import fields from ...cache.base import BaseCache from ...config.settings import BaseSetti...
29.94484
88
0.569315
d1a75d1c0bd1f71cf3b1c0e476b023d7b09de10f
948
py
Python
test/integration/012_deprecation_tests/test_deprecations.py
buremba/dbt
73607b85b7825b7fca01a340c52469317eaeae7a
[ "Apache-2.0" ]
null
null
null
test/integration/012_deprecation_tests/test_deprecations.py
buremba/dbt
73607b85b7825b7fca01a340c52469317eaeae7a
[ "Apache-2.0" ]
null
null
null
test/integration/012_deprecation_tests/test_deprecations.py
buremba/dbt
73607b85b7825b7fca01a340c52469317eaeae7a
[ "Apache-2.0" ]
1
2022-03-27T09:55:08.000Z
2022-03-27T09:55:08.000Z
from test.integration.base import DBTIntegrationTest, use_profile from dbt import deprecations import dbt.exceptions class TestDeprecations(DBTIntegrationTest): def setUp(self): super(TestDeprecations, self).setUp() deprecations.reset_deprecations() @property def schema(self): re...
27.882353
75
0.694093
1f89243277f11ee4c63d1ef55c1764128a7fa705
6,738
py
Python
bs13/PauliSim.py
jh-lor/QC
fc3ae5ad709b583e7d9f9b345ffb4be468efca8e
[ "Apache-2.0" ]
null
null
null
bs13/PauliSim.py
jh-lor/QC
fc3ae5ad709b583e7d9f9b345ffb4be468efca8e
[ "Apache-2.0" ]
null
null
null
bs13/PauliSim.py
jh-lor/QC
fc3ae5ad709b583e7d9f9b345ffb4be468efca8e
[ "Apache-2.0" ]
null
null
null
import numpy as np from Channels import * class PauliSim(): """PauliSim class is a PauliSimulator. The error on each qubit is maintained as a size-2 array for X and Z errors and a list of operations to apply on the qubits is maintained """ def __init__(self, size = None, initial_state = None): ...
30.908257
103
0.5794
e3a7adb7b66919c284c86eccbc4e60646837b357
5,924
py
Python
colour/models/rgb/transfer_functions/fujifilm_flog.py
tjdcs/colour
09413da71b5da57408eb812797c5db1300d4791a
[ "BSD-3-Clause" ]
null
null
null
colour/models/rgb/transfer_functions/fujifilm_flog.py
tjdcs/colour
09413da71b5da57408eb812797c5db1300d4791a
[ "BSD-3-Clause" ]
null
null
null
colour/models/rgb/transfer_functions/fujifilm_flog.py
tjdcs/colour
09413da71b5da57408eb812797c5db1300d4791a
[ "BSD-3-Clause" ]
null
null
null
""" Fujifilm F-Log Log Encoding =========================== Defines the *Fujifilm F-Log* log encoding: - :func:`colour.models.log_encoding_FLog` - :func:`colour.models.log_decoding_FLog` References ---------- - :cite:`Fujifilm2016` : Fujifilm. (2016). F-Log Data Sheet Ver.1.0 (pp. 1-4). https://www.fujifil...
26.565022
79
0.524308
24b6c62db22dea228a120091436e91c88cb1684b
4,196
py
Python
plasmapy/utils/decorators/helpers.py
seanjunheng2/PlasmaPy
7b4e4aaf8b03d88b654456bca881329ade09e377
[ "BSD-2-Clause", "MIT", "BSD-2-Clause-Patent", "BSD-1-Clause", "BSD-3-Clause" ]
429
2016-10-31T19:40:32.000Z
2022-03-25T12:27:11.000Z
plasmapy/utils/decorators/helpers.py
seanjunheng2/PlasmaPy
7b4e4aaf8b03d88b654456bca881329ade09e377
[ "BSD-2-Clause", "MIT", "BSD-2-Clause-Patent", "BSD-1-Clause", "BSD-3-Clause" ]
1,400
2015-11-24T23:00:44.000Z
2022-03-30T21:03:25.000Z
plasmapy/utils/decorators/helpers.py
seanjunheng2/PlasmaPy
7b4e4aaf8b03d88b654456bca881329ade09e377
[ "BSD-2-Clause", "MIT", "BSD-2-Clause-Patent", "BSD-1-Clause", "BSD-3-Clause" ]
289
2015-11-24T18:54:57.000Z
2022-03-18T17:26:59.000Z
""" Miscellaneous decorators for various package uses. """ __all__ = ["modify_docstring", "preserve_signature"] import functools import inspect def modify_docstring(func=None, prepend: str = None, append: str = None): """ A decorator which programmatically prepends and/or appends the docstring of the dec...
28.937931
82
0.599857
ccf3186d70315b72c91c488561726ff7ec1652b9
2,304
py
Python
getNewGrades.py
metakgp/blackjack
8ca25a8df6fb66b1cf6fae503ee45ac0b232615a
[ "MIT" ]
5
2017-01-11T16:08:29.000Z
2018-07-09T04:34:58.000Z
getNewGrades.py
metakgp/blackjack
8ca25a8df6fb66b1cf6fae503ee45ac0b232615a
[ "MIT" ]
10
2017-03-10T10:48:22.000Z
2018-10-20T09:14:07.000Z
getNewGrades.py
metakgp/blackjack
8ca25a8df6fb66b1cf6fae503ee45ac0b232615a
[ "MIT" ]
11
2016-06-10T17:30:10.000Z
2018-11-29T17:24:21.000Z
from subprocess import check_output import re import json from tqdm import tqdm import threading import urllib2 cookie = '1265E71286E3CB350AA1343E6D2D3D62.worker2' NUM_THREADS = 1 def load(file): def convert(input): if isinstance(input, dict): return {convert(key): convert(value) for key, valu...
29.922078
116
0.590278
0d451f62800e63abede99f96599f3535638b9e60
1,482
py
Python
tests/v1/test_synthetics_test_config.py
MichaelTROEHLER/datadog-api-client-python
12c46626622fb1277bb1e172753b342c671348bd
[ "Apache-2.0" ]
null
null
null
tests/v1/test_synthetics_test_config.py
MichaelTROEHLER/datadog-api-client-python
12c46626622fb1277bb1e172753b342c671348bd
[ "Apache-2.0" ]
null
null
null
tests/v1/test_synthetics_test_config.py
MichaelTROEHLER/datadog-api-client-python
12c46626622fb1277bb1e172753b342c671348bd
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. # This product includes software developed at Datadog (https://www.datadoghq.com/). # Copyright 2019-Present Datadog, Inc. from __future__ import absolute_import import sys import unittest im...
30.244898
108
0.762483
101439d85c9fae97b05b87e9a34b4d29c14f88f1
2,323
py
Python
tests/conftest.py
drewmee/py-roboat-enviro
2e836bc75aaddce042b5771f50f32148f3c4e10a
[ "MIT" ]
null
null
null
tests/conftest.py
drewmee/py-roboat-enviro
2e836bc75aaddce042b5771f50f32148f3c4e10a
[ "MIT" ]
null
null
null
tests/conftest.py
drewmee/py-roboat-enviro
2e836bc75aaddce042b5771f50f32148f3c4e10a
[ "MIT" ]
null
null
null
import os import pytest from dotenv import load_dotenv from py_roboat_enviro import RoboatEnviroData from uplink.auth import ApiTokenHeader from .utils import generate_random_name def cleanup(api_client): # Delete all sensors response = api_client.get_sensors() for sensor in response.json(): sn ...
27.011628
83
0.683168
0fbd6bf09f5ec1ee13a3b09f07015799a7c9b13c
29,569
py
Python
cvat/apps/dataset_manager/annotation.py
amotovx/cvat
f877f11fce4124f0c78cdd860b9ddbd73921311a
[ "Intel", "MIT" ]
2
2021-11-02T19:51:54.000Z
2021-11-12T22:18:11.000Z
cvat/apps/dataset_manager/annotation.py
amotovx/cvat
f877f11fce4124f0c78cdd860b9ddbd73921311a
[ "Intel", "MIT" ]
9
2021-07-15T13:42:33.000Z
2021-09-22T12:43:07.000Z
cvat/apps/dataset_manager/annotation.py
amotovx/cvat
f877f11fce4124f0c78cdd860b9ddbd73921311a
[ "Intel", "MIT" ]
1
2021-07-15T09:58:04.000Z
2021-07-15T09:58:04.000Z
# Copyright (C) 2019 Intel Corporation # # SPDX-License-Identifier: MIT from copy import copy, deepcopy import numpy as np from itertools import chain from scipy.optimize import linear_sum_assignment from shapely import geometry from cvat.apps.engine.models import ShapeType from cvat.apps.engine.serializers import L...
38.753604
113
0.55034
7e693cdf1742783fe01a4c90620cd4f74d917aa7
20,187
py
Python
sdk/network/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/_network_security_groups_operations.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
1
2021-06-02T08:01:35.000Z
2021-06-02T08:01:35.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/_network_security_groups_operations.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
226
2019-07-24T07:57:21.000Z
2019-10-15T01:07:24.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/_network_security_groups_operations.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
1
2019-06-17T22:18:23.000Z
2019-06-17T22:18:23.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
46.946512
186
0.672165
3dddd8c7cc3c2afd4edf622242cf14193c0fbe41
4,833
py
Python
ml-agents/mlagents/envs/communicator_objects/environment_parameters_proto_pb2.py
icaro56/ml-agents
654827301ef613c0876475d3b5dfe8ec54031468
[ "Apache-2.0" ]
134
2018-09-11T21:45:29.000Z
2022-03-02T06:02:52.000Z
ml-agents/mlagents/envs/communicator_objects/environment_parameters_proto_pb2.py
easypeet/Unity-Mlagents-BalancingRobot
09e35a60ba2983c1123f6bb24c837af3733bd618
[ "Apache-2.0" ]
20
2018-11-13T23:08:24.000Z
2022-02-09T23:56:37.000Z
ml-agents/mlagents/envs/communicator_objects/environment_parameters_proto_pb2.py
easypeet/Unity-Mlagents-BalancingRobot
09e35a60ba2983c1123f6bb24c837af3733bd618
[ "Apache-2.0" ]
17
2018-11-02T01:37:14.000Z
2021-12-03T23:16:54.000Z
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: mlagents/envs/communicator_objects/environment_parameters_proto.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _...
40.613445
472
0.802814
88de0288cbe5e9e6fb28c092ea2dfaccbc063b34
1,130
py
Python
python/Spider/SpiderHTMLParser.py
wjiec/packages
4ccaf8f717265a1f8a9af533f9a998b935efb32a
[ "MIT" ]
null
null
null
python/Spider/SpiderHTMLParser.py
wjiec/packages
4ccaf8f717265a1f8a9af533f9a998b935efb32a
[ "MIT" ]
1
2016-09-15T07:06:15.000Z
2016-09-15T07:06:15.000Z
python/Spider/SpiderHTMLParser.py
wjiec/packages
4ccaf8f717265a1f8a9af533f9a998b935efb32a
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- ''' Created on 2015年12月24日 @author: ShadowMan ''' from bs4 import BeautifulSoup import re import urlparse class Parser(object): def fetchHrefs(self, url, soup): links = set() hrefs = soup.find_all('a', href=re.compile(r'/view/\d+\.htm')) ...
27.560976
86
0.549558
cff4ae4a12dcd5bfdaa9b60bf0ac7acc2617f293
2,143
py
Python
tools/settings_template_readonly.py
raphlinus/emscripten
938eadf9c49af29b9c85fa24c9db6d6456217a06
[ "MIT" ]
null
null
null
tools/settings_template_readonly.py
raphlinus/emscripten
938eadf9c49af29b9c85fa24c9db6d6456217a06
[ "MIT" ]
null
null
null
tools/settings_template_readonly.py
raphlinus/emscripten
938eadf9c49af29b9c85fa24c9db6d6456217a06
[ "MIT" ]
null
null
null
# This file will be edited (the {{{ }}} things), and then ~/.emscripten created # with the result, if ~/.emscripten doesn't exist. # Note: If you put paths relative to the home directory, do not forget # os.path.expanduser # Note: On Windows, remember to escape backslashes! I.e. PYTHON='c:\Python27\' # is not valid, ...
38.267857
101
0.689221
0095cc5ea9bb1dcff02e31ba9cb4ba046de56484
167
py
Python
python1.py
dalvirakesh99/oooo
d3ac1f85e11011a7c6e825b9e3c2f1ce9b866894
[ "Unlicense" ]
null
null
null
python1.py
dalvirakesh99/oooo
d3ac1f85e11011a7c6e825b9e3c2f1ce9b866894
[ "Unlicense" ]
null
null
null
python1.py
dalvirakesh99/oooo
d3ac1f85e11011a7c6e825b9e3c2f1ce9b866894
[ "Unlicense" ]
null
null
null
a=int(input("enter a number:")) if(a%2==0): print("given number is even") elif(a==0): print("given number is not even") else: print("given number is not even")
20.875
36
0.646707
df3917fcfcfe95a64f7145468d747633b729bf25
2,084
py
Python
backend/coreapp/views/user.py
ChrisNonyminus/decomp.me
b51e8d586ba95bd20f6b2e5881ecc34459e761bc
[ "MIT" ]
47
2021-11-05T14:20:58.000Z
2022-03-19T18:56:46.000Z
backend/coreapp/views/user.py
ChrisNonyminus/decomp.me
b51e8d586ba95bd20f6b2e5881ecc34459e761bc
[ "MIT" ]
131
2021-10-20T09:17:16.000Z
2022-03-31T22:22:54.000Z
backend/coreapp/views/user.py
ChrisNonyminus/decomp.me
b51e8d586ba95bd20f6b2e5881ecc34459e761bc
[ "MIT" ]
20
2021-11-23T18:49:45.000Z
2022-03-29T06:25:10.000Z
from django.contrib.auth import logout from django.shortcuts import get_object_or_404 from rest_framework import generics from rest_framework.decorators import api_view from rest_framework.response import Response from rest_framework.views import APIView from ..middleware import Request from ..models.github import Git...
26.379747
87
0.694338
50a8d29bb08c28ae0503e4e1902fec7034c8dfa7
2,988
py
Python
soil/stats.py
vishalbelsare/soil
e860bdb922a22da2987fba07dffb81351c0272e5
[ "Apache-2.0" ]
null
null
null
soil/stats.py
vishalbelsare/soil
e860bdb922a22da2987fba07dffb81351c0272e5
[ "Apache-2.0" ]
null
null
null
soil/stats.py
vishalbelsare/soil
e860bdb922a22da2987fba07dffb81351c0272e5
[ "Apache-2.0" ]
null
null
null
import pandas as pd from collections import Counter class Stats: ''' Interface for all stats. It is not necessary, but it is useful if you don't plan to implement all the methods. ''' def __init__(self, simulation): self.simulation = simulation def start(self): '''Method to c...
27.925234
104
0.482262
010ed176054f672a2540331a87d58e17bf1e8e7f
9,135
py
Python
make/photon/prepare/models.py
mhh12121/harbor
ee214f0347e14ddec66d91a8b33e909ecf6b19c7
[ "Apache-2.0" ]
null
null
null
make/photon/prepare/models.py
mhh12121/harbor
ee214f0347e14ddec66d91a8b33e909ecf6b19c7
[ "Apache-2.0" ]
null
null
null
make/photon/prepare/models.py
mhh12121/harbor
ee214f0347e14ddec66d91a8b33e909ecf6b19c7
[ "Apache-2.0" ]
null
null
null
import os import logging from pathlib import Path from shutil import copytree, rmtree from g import internal_tls_dir, DEFAULT_GID, DEFAULT_UID, PG_GID, PG_UID from utils.misc import check_permission, owner_can_read, get_realpath, port_number_valid from utils.cert import san_existed class InternalTLS: harbor_cer...
35.406977
132
0.611604
afae2d7931999475b43b564402bf24da70f64b79
1,072
py
Python
predict.py
SumitM0432/XLM-RoBERTa-for-Textual-Entailment
e551343fc7b2712744ad6b5ca51abbf824ef417c
[ "MIT" ]
4
2020-09-15T11:58:24.000Z
2021-11-14T11:36:39.000Z
predict.py
SumitM0432/XLM-RoBERTa-for-Textual-Entailment
e551343fc7b2712744ad6b5ca51abbf824ef417c
[ "MIT" ]
null
null
null
predict.py
SumitM0432/XLM-RoBERTa-for-Textual-Entailment
e551343fc7b2712744ad6b5ca51abbf824ef417c
[ "MIT" ]
1
2021-08-28T05:55:39.000Z
2021-08-28T05:55:39.000Z
import torch def get_predictions(model, data_loader, device): model = model.eval() thesis = [] predictions = [] prediction_probs = [] real_values = [] with torch.no_grad(): for d in data_loader: texts = d['combined_thesis'] input_ids = d['input_i...
33.5
66
0.548507
ffaf3e855de4c475742b1fd2509d84538229aa04
62
py
Python
src/webapi/libs/__init__.py
VisionTale/StreamHelper
29a5e5d5c68401f2c1d1b9cf54a7c68fb41d623a
[ "MIT" ]
null
null
null
src/webapi/libs/__init__.py
VisionTale/StreamHelper
29a5e5d5c68401f2c1d1b9cf54a7c68fb41d623a
[ "MIT" ]
37
2020-12-16T06:30:22.000Z
2022-03-28T03:04:28.000Z
src/webapi/libs/__init__.py
VisionTale/StreamHelper
29a5e5d5c68401f2c1d1b9cf54a7c68fb41d623a
[ "MIT" ]
null
null
null
""" Modules for dependency installation. """ from . import *
10.333333
36
0.677419
09ea28a13555ad22c8fe9c4ff9a2684880cba786
902
py
Python
1601-1700/1685-The mazeIV/1685-The mazeIV.py
jiadaizhao/LintCode
a8aecc65c47a944e9debad1971a7bc6b8776e48b
[ "MIT" ]
77
2017-12-30T13:33:37.000Z
2022-01-16T23:47:08.000Z
1601-1700/1685-The mazeIV/1685-The mazeIV.py
jxhangithub/LintCode-1
a8aecc65c47a944e9debad1971a7bc6b8776e48b
[ "MIT" ]
1
2018-05-14T14:15:40.000Z
2018-05-14T14:15:40.000Z
1601-1700/1685-The mazeIV/1685-The mazeIV.py
jxhangithub/LintCode-1
a8aecc65c47a944e9debad1971a7bc6b8776e48b
[ "MIT" ]
39
2017-12-07T14:36:25.000Z
2022-03-10T23:05:37.000Z
import collections class Solution: """ @param maps: @return: nothing """ def theMazeIV(self, maps): time = 0 for i in range(len(maps)): for j in range(len(maps[i])): if maps[i][j] == 'S': start = (i, j) elif maps[i][j] ...
30.066667
94
0.338137
34469c77f5b61ba4c22f576231c42770bf36c1b1
7,860
py
Python
jupyter-support/bbplots/plots.py
leflambeur/blockbench
0732f3ec3bee1119622a6f111778da22e7141a5f
[ "MIT" ]
null
null
null
jupyter-support/bbplots/plots.py
leflambeur/blockbench
0732f3ec3bee1119622a6f111778da22e7141a5f
[ "MIT" ]
2
2021-11-07T13:38:13.000Z
2022-02-14T08:37:07.000Z
jupyter-support/bbplots/plots.py
robinbryce/benchblock
81ac37783a644c156534b2b091b57e098e642fb7
[ "MIT" ]
null
null
null
""" The plots in this file are (intentionaly) replicas of the standard 4x4 plot provided by the chain hammer project. They owe much to those efforts https://github.com/drandreaskrueger/chainhammer MIT License """ import matplotlib.pyplot from bbplots.blockframe import Frame class Combined: """Combines the main p...
36.055046
114
0.640585
a8d7e65fadb7519ea65d74a5a5ebd3c84ae16e2d
1,289
py
Python
app/services/fetch/health.py
tirinox/runebridgebotpy
77f60e2a039a9c2fe6044fcb3e46b7814a00f211
[ "MIT" ]
null
null
null
app/services/fetch/health.py
tirinox/runebridgebotpy
77f60e2a039a9c2fe6044fcb3e46b7814a00f211
[ "MIT" ]
null
null
null
app/services/fetch/health.py
tirinox/runebridgebotpy
77f60e2a039a9c2fe6044fcb3e46b7814a00f211
[ "MIT" ]
null
null
null
import asyncio from services.fetch.base import BaseFetcher from services.lib.depcont import DepContainer from services.models.health import BridgeHealth class HealthFetcher(BaseFetcher): def __init__(self, deps: DepContainer): sleep_period = deps.cfg.bridge.eth.health.period super().__init__(deps...
33.051282
95
0.656323
0ec539b0c2a9e12c277fd9eeab03610bc235d781
1,174
py
Python
src/prodstats/schemas/database_url.py
la-mar/prodstats
4ff5a6e0b0d6152af2d7e1f3844ede2d33ad4824
[ "MIT" ]
null
null
null
src/prodstats/schemas/database_url.py
la-mar/prodstats
4ff5a6e0b0d6152af2d7e1f3844ede2d33ad4824
[ "MIT" ]
null
null
null
src/prodstats/schemas/database_url.py
la-mar/prodstats
4ff5a6e0b0d6152af2d7e1f3844ede2d33ad4824
[ "MIT" ]
1
2021-01-05T18:58:08.000Z
2021-01-05T18:58:08.000Z
from typing import Any, Optional, Union from pydantic import BaseModel, Schema, validator from pydantic.fields import Field from sqlalchemy.engine.url import URL from starlette.datastructures import Secret __all__ = ["DatabaseURL"] class DatabaseURL(BaseModel): drivername: str = Schema(..., alias="driver", desc...
35.575758
85
0.684838
353aefb0e737664f0b02758c63a617efe1fb9635
54,771
py
Python
xarray/core/computation.py
jenssss/xarray
43a2a4bdf3a492d89aae9f2c5b0867932ff51cef
[ "Apache-2.0" ]
null
null
null
xarray/core/computation.py
jenssss/xarray
43a2a4bdf3a492d89aae9f2c5b0867932ff51cef
[ "Apache-2.0" ]
null
null
null
xarray/core/computation.py
jenssss/xarray
43a2a4bdf3a492d89aae9f2c5b0867932ff51cef
[ "Apache-2.0" ]
null
null
null
""" Functions for applying functions that act on arrays to xarray's labeled data. """ import functools import itertools import operator import warnings from collections import Counter from distutils.version import LooseVersion from typing import ( TYPE_CHECKING, AbstractSet, Any, Callable, Dict, ...
34.231875
116
0.606416
530037e79795ef74032f12183538061fc9428a26
6,824
py
Python
item/views.py
ngr/sm_00
d8480cbbe88efd9947e2cb6d5a205f824cc5450d
[ "MIT" ]
null
null
null
item/views.py
ngr/sm_00
d8480cbbe88efd9947e2cb6d5a205f824cc5450d
[ "MIT" ]
117
2015-01-01T06:20:05.000Z
2016-01-06T08:16:20.000Z
item/views.py
ngr/sm_00
d8480cbbe88efd9947e2cb6d5a205f824cc5450d
[ "MIT" ]
null
null
null
from django.db.models import Q from django.db.models import Sum from rest_framework.views import APIView from rest_framework.response import Response from rest_framework import status from rest_framework import generics from rest_framework import permissions from area.models import Location from item.models i...
40.141176
116
0.606829
8edda25fc7422eaf22fa61c1d9c648d3447a78ca
12,486
py
Python
fabric/utils.py
enthought/fabric-winrm-fork
e2fad3045e6b4d55cb9716695eb7457255365553
[ "BSD-2-Clause" ]
null
null
null
fabric/utils.py
enthought/fabric-winrm-fork
e2fad3045e6b4d55cb9716695eb7457255365553
[ "BSD-2-Clause" ]
null
null
null
fabric/utils.py
enthought/fabric-winrm-fork
e2fad3045e6b4d55cb9716695eb7457255365553
[ "BSD-2-Clause" ]
1
2017-10-07T11:23:22.000Z
2017-10-07T11:23:22.000Z
""" Internal subroutines for e.g. aborting execution with an error message, or performing indenting on multiline output. """ import sys import textwrap from traceback import format_exc def abort(msg): """ Abort execution, print ``msg`` to stderr and exit with error status (1.) This function currently mak...
35.371105
88
0.635352
a7ed5f7aa1a0ee7f2c31124ed9c1bd6c6966b8a8
3,141
py
Python
usaspending_api/disaster/tests/integration/test_object_class_spending_total.py
jbuendiallc/usaspending-api
f827870cbca4b6a6e16f1c5272bb2ff73a113d76
[ "CC0-1.0" ]
1
2020-08-14T04:14:32.000Z
2020-08-14T04:14:32.000Z
usaspending_api/disaster/tests/integration/test_object_class_spending_total.py
jbuendiallc/usaspending-api
f827870cbca4b6a6e16f1c5272bb2ff73a113d76
[ "CC0-1.0" ]
null
null
null
usaspending_api/disaster/tests/integration/test_object_class_spending_total.py
jbuendiallc/usaspending-api
f827870cbca4b6a6e16f1c5272bb2ff73a113d76
[ "CC0-1.0" ]
null
null
null
import pytest from rest_framework import status url = "/api/v2/disaster/object_class/spending/" @pytest.mark.django_db def test_basic_object_class_spending_total_success( client, basic_fa_by_object_class_with_object_class, monkeypatch, helpers ): helpers.patch_datetime_now(monkeypatch, 2022, 12, 31) hel...
34.9
98
0.66985
1773cb71c8e7a9d040d7d0f3f0b56ed12bc49fe6
2,022
py
Python
adbcalc.py
jsassenscheidt/adbcalc
790fed1ef33282ea2eaddffe1844fc9644f07794
[ "MIT" ]
null
null
null
adbcalc.py
jsassenscheidt/adbcalc
790fed1ef33282ea2eaddffe1844fc9644f07794
[ "MIT" ]
null
null
null
adbcalc.py
jsassenscheidt/adbcalc
790fed1ef33282ea2eaddffe1844fc9644f07794
[ "MIT" ]
null
null
null
def calculate_dose(start, stop, end_interval, dose, intake_type): ''' This function calculates the complete dose of a medication or fluid in the interval start - stop. If stop > end_interval, the dose of the interval start - end_interval ist calculated. Complete dose is given in ml for fluids and in...
31.59375
79
0.63996
b44dd4dba825148dce6efdfd3e7528d7eab770a4
1,321
py
Python
wiki/web/__init__.py
jzengerling/WikiWiki5
72f23187afe03dbb1fde3f2d98c083e7adc7bd06
[ "BSD-3-Clause" ]
null
null
null
wiki/web/__init__.py
jzengerling/WikiWiki5
72f23187afe03dbb1fde3f2d98c083e7adc7bd06
[ "BSD-3-Clause" ]
1
2018-04-17T22:54:33.000Z
2018-04-17T22:54:33.000Z
wiki/web/__init__.py
jzengerling/WikiWiki5
72f23187afe03dbb1fde3f2d98c083e7adc7bd06
[ "BSD-3-Clause" ]
1
2018-04-05T22:07:48.000Z
2018-04-05T22:07:48.000Z
import os from flask import current_app from flask import Flask from flask import g from flask_login import LoginManager from werkzeug.local import LocalProxy from wiki.core import Wiki from wiki.web.user import UserManager class WikiError(Exception): pass def get_wiki(): wiki = getattr(g, '_wiki', None) ...
20.640625
72
0.696442
b2b52d3b545fc52aa60bc981ab992519d7272e6b
334
py
Python
autokey/data/MacOS/zoom-reset.py
ankur-gupta/keyboard
5fb6d1e45a3c1956c18d4f2464eacb79397b8aab
[ "MIT" ]
1
2018-03-12T20:52:31.000Z
2018-03-12T20:52:31.000Z
autokey/data/MacOS/zoom-reset.py
ankur-gupta/keyboard
5fb6d1e45a3c1956c18d4f2464eacb79397b8aab
[ "MIT" ]
null
null
null
autokey/data/MacOS/zoom-reset.py
ankur-gupta/keyboard
5fb6d1e45a3c1956c18d4f2464eacb79397b8aab
[ "MIT" ]
null
null
null
# Enter script code import re winClass = window.get_active_class() isGoogleChrome1 = re.search("google-chrome\.[g|G]oogle-chrome", winClass) isGoogleChrome2 = re.search("Google-chrome-stable\.Google-chrome-stable", winClass) if isGoogleChrome1 or isGoogleChrome2: keyboard.send_keys("<ctrl>+0") else: keyboard.send_key...
37.111111
83
0.775449
f8d537d4530d9f1c76e6de59df7c8c2905272492
2,578
py
Python
backend/pyrogram/raw/types/secure_value_error_front_side.py
appheap/social-media-analyzer
0f9da098bfb0b4f9eb38e0244aa3a168cf97d51c
[ "Apache-2.0" ]
5
2021-09-11T22:01:15.000Z
2022-03-16T21:33:42.000Z
backend/pyrogram/raw/types/secure_value_error_front_side.py
iamatlasss/social-media-analyzer
429d1d2bbd8bfce80c50c5f8edda58f87ace668d
[ "Apache-2.0" ]
null
null
null
backend/pyrogram/raw/types/secure_value_error_front_side.py
iamatlasss/social-media-analyzer
429d1d2bbd8bfce80c50c5f8edda58f87ace668d
[ "Apache-2.0" ]
3
2022-01-18T11:06:22.000Z
2022-02-26T13:39:28.000Z
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free...
31.82716
103
0.637316
8bfda08c1a58e06c2a23bb41e2eaf6474b9c9745
2,472
py
Python
homeassistant/components/simplisafe/lock.py
mikan-megane/core
837220cce40890e296920d33a623adbc11bd15a6
[ "Apache-2.0" ]
5
2018-10-23T14:15:05.000Z
2021-11-26T06:38:44.000Z
homeassistant/components/simplisafe/lock.py
mikan-megane/core
837220cce40890e296920d33a623adbc11bd15a6
[ "Apache-2.0" ]
79
2020-07-23T07:13:37.000Z
2022-03-22T06:02:37.000Z
homeassistant/components/simplisafe/lock.py
mikan-megane/core
837220cce40890e296920d33a623adbc11bd15a6
[ "Apache-2.0" ]
3
2022-01-17T20:10:54.000Z
2022-01-17T20:17:22.000Z
"""Support for SimpliSafe locks.""" from simplipy.errors import SimplipyError from simplipy.lock import LockStates from homeassistant.components.lock import LockEntity from homeassistant.core import callback from . import SimpliSafeEntity from .const import DATA_CLIENT, DOMAIN, LOGGER ATTR_LOCK_LOW_BATTERY = "lock_l...
30.9
82
0.646845
dd1d75e4b91dcddc92e4fc3358d4eb71c8041362
4,833
py
Python
pong-ddqn-batch.py
s-gv/pong-keras
38a0f25ae0e628f357512d085dc957720d83ece2
[ "0BSD" ]
null
null
null
pong-ddqn-batch.py
s-gv/pong-keras
38a0f25ae0e628f357512d085dc957720d83ece2
[ "0BSD" ]
null
null
null
pong-ddqn-batch.py
s-gv/pong-keras
38a0f25ae0e628f357512d085dc957720d83ece2
[ "0BSD" ]
null
null
null
# Copyright (c) 2019 Sagar Gubbi. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import sys import numpy as np import gym from collections import deque import random import tensorflow as tf from tensorflow.keras.models import Sequential, Mode...
33.331034
122
0.540037
0dd6ed35f8fee85ff099eda8624d6fb5d67d0883
3,937
py
Python
configs/Cifar10_exp/EB4.py
Devwalkar/BOC-KD
a19bab41ec450a8d933371501ff1f1db934be5f3
[ "MIT" ]
2
2020-09-15T11:46:21.000Z
2020-09-25T13:35:22.000Z
configs/Cifar10_exp/EB4.py
Devwalkar/BOC-KD
a19bab41ec450a8d933371501ff1f1db934be5f3
[ "MIT" ]
null
null
null
configs/Cifar10_exp/EB4.py
Devwalkar/BOC-KD
a19bab41ec450a8d933371501ff1f1db934be5f3
[ "MIT" ]
2
2020-11-09T13:40:45.000Z
2020-11-27T02:17:27.000Z
""" Template Configuration file """ # DL model Architecture Settings ''' Choose DL model from "Resnet20", "Resnet34", "Resnet50", "Resnet101", "Resnet152", "ResNet20","ResNet32","ResNet44","ResNet56","ResNet110","ResNet1202", "Densenet_12_100", "Densenet_24_250", "Densene...
36.453704
116
0.582423
ad3e58d11fb49156b33ddbaad2328eac47c100ef
1,830
py
Python
adivinha.py
JoaoVictorCabraldeMelo/Terminal_Games
48223cc26968d60adfa5576d75f3721180a67787
[ "MIT" ]
null
null
null
adivinha.py
JoaoVictorCabraldeMelo/Terminal_Games
48223cc26968d60adfa5576d75f3721180a67787
[ "MIT" ]
null
null
null
adivinha.py
JoaoVictorCabraldeMelo/Terminal_Games
48223cc26968d60adfa5576d75f3721180a67787
[ "MIT" ]
null
null
null
import random import os def jogar(): os.system('cls') print("") print("/*--------------------------------------*/") print("Bem Vindo ao Jogo de Adivinhação!!") print("/*--------------------------------------*/") print("") print("Escolha a dificulda (1)-Facil (2)-Medio (3)-Difici...
26.521739
73
0.49071
892b8297e81a97a4272c33872fd44a45f0a51e62
6,870
py
Python
src/sima/wamit/wamittask.py
SINTEF/simapy
650b8c2f15503dad98e2bfc0d0788509593822c7
[ "MIT" ]
null
null
null
src/sima/wamit/wamittask.py
SINTEF/simapy
650b8c2f15503dad98e2bfc0d0788509593822c7
[ "MIT" ]
null
null
null
src/sima/wamit/wamittask.py
SINTEF/simapy
650b8c2f15503dad98e2bfc0d0788509593822c7
[ "MIT" ]
null
null
null
# This an autogenerated file # # Generated with WamitTask from typing import Dict,Sequence,List from dmt.entity import Entity from dmt.blueprint import Blueprint from .blueprints.wamittask import WamitTaskBlueprint from typing import Dict from sima.condition.conditiontask import ConditionTask from sima.condition.condi...
30.264317
80
0.644833
c01c3d96aec11376658bf8ec334c846bfcf0886d
130,990
py
Python
tensorflow/python/keras/engine/base_layer.py
Mycaster/tensorflow
0720cbfdd3b1147f6c88343ee04997fc3085c5dd
[ "Apache-2.0" ]
1
2020-10-21T08:14:38.000Z
2020-10-21T08:14:38.000Z
tensorflow/python/keras/engine/base_layer.py
biagiom/tensorflow
c60a66c4eec48011af907925409db466348b7da0
[ "Apache-2.0" ]
1
2022-02-10T02:08:24.000Z
2022-02-10T02:08:24.000Z
tensorflow/python/keras/engine/base_layer.py
biagiom/tensorflow
c60a66c4eec48011af907925409db466348b7da0
[ "Apache-2.0" ]
1
2021-11-07T12:48:44.000Z
2021-11-07T12:48:44.000Z
# Copyright 2015 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...
39.984737
113
0.681418
29a79b17600d0da521feb73c782873123b98769e
15,705
py
Python
sqa/weaksp/model/struct.py
WDZRMPCBIT/SCoRE
c426e58c253f5d97fc4ad0e0fea9606f70cff872
[ "MIT" ]
null
null
null
sqa/weaksp/model/struct.py
WDZRMPCBIT/SCoRE
c426e58c253f5d97fc4ad0e0fea9606f70cff872
[ "MIT" ]
null
null
null
sqa/weaksp/model/struct.py
WDZRMPCBIT/SCoRE
c426e58c253f5d97fc4ad0e0fea9606f70cff872
[ "MIT" ]
null
null
null
import torch import logging from torch import nn import random import heapq from operator import itemgetter import torch.nn.functional as F from typing import Union, List, Dict, Any, Set from collections import defaultdict from ..sempar.action_walker import ActionSpaceWalker from ..sempar.context.table_...
45
115
0.566699
fd9e31bf42a72550c29ff3cfdc230b63b16627a9
7,277
py
Python
tests/unit/test_auth.py
AlexMGitHub/TheWholeEnchilada
9b488777ab2e82d616b952457b45acf6b7eb7c69
[ "MIT" ]
1
2021-10-05T11:32:15.000Z
2021-10-05T11:32:15.000Z
tests/unit/test_auth.py
AlexMGitHub/TheWholeEnchilada
9b488777ab2e82d616b952457b45acf6b7eb7c69
[ "MIT" ]
null
null
null
tests/unit/test_auth.py
AlexMGitHub/TheWholeEnchilada
9b488777ab2e82d616b952457b45acf6b7eb7c69
[ "MIT" ]
null
null
null
"""Test authorization functionality of webapp. ############################################################################### # test_auth.py # # Revision: 1.00 # Date: 8/14/2021 # Author: Alex # # Purpose: Runs unit tests to validate webapp authorization functionality. # #######################...
42.805882
79
0.689982
9f76e3b21634cc1ef9acf3079f4f4f6c16dae844
6,689
py
Python
mayan/apps/documents/icons.py
wan1869/dushuhu
934dd178e67140cffc6b9203e793fdf8bbc73a54
[ "Apache-2.0" ]
1
2021-02-24T15:03:23.000Z
2021-02-24T15:03:23.000Z
mayan/apps/documents/icons.py
wan1869/dushuhu
934dd178e67140cffc6b9203e793fdf8bbc73a54
[ "Apache-2.0" ]
null
null
null
mayan/apps/documents/icons.py
wan1869/dushuhu
934dd178e67140cffc6b9203e793fdf8bbc73a54
[ "Apache-2.0" ]
1
2021-04-30T09:44:14.000Z
2021-04-30T09:44:14.000Z
from mayan.apps.appearance.classes import Icon from mayan.apps.converter.icons import icon_transformations icon_document_type = Icon( driver_name='fontawesome-layers', data=[ {'class': 'fas fa-circle', 'transform': 'shrink-12 up-2'}, {'class': 'fas fa-cog', 'transform': 'shrink-6 up-2', 'mask': 'fa...
30.404545
85
0.77007
bdad57133076f53b939080dba2bb26b35d7bd349
93
py
Python
book/testing/test.py
brennv/apb
3e4b35db0f5d833bfe5781107657336efc041dc2
[ "MIT" ]
1
2022-02-23T07:30:22.000Z
2022-02-23T07:30:22.000Z
book/testing/test.py
brennv/apb
3e4b35db0f5d833bfe5781107657336efc041dc2
[ "MIT" ]
1,245
2018-06-03T05:14:36.000Z
2022-03-31T12:33:07.000Z
book/testing/test.py
brennv/apb
3e4b35db0f5d833bfe5781107657336efc041dc2
[ "MIT" ]
2
2019-09-04T16:09:05.000Z
2019-09-17T06:44:08.000Z
def hello(): """ Smoke test. >>> hello() 'hello' """ return 'hello'
10.333333
18
0.408602
415d740d968b3ee673ed9c1e415fdfb669d3a7b9
2,061
py
Python
tests/file/test_yml.py
MonolithAILtd/monolith-filemanager
2369e244e4d8a48890f55d00419a83001a5c6c40
[ "Apache-2.0" ]
3
2021-06-02T09:45:00.000Z
2022-02-01T14:30:01.000Z
tests/file/test_yml.py
MonolithAILtd/monolith-filemanager
2369e244e4d8a48890f55d00419a83001a5c6c40
[ "Apache-2.0" ]
3
2021-05-26T11:46:28.000Z
2021-11-04T10:14:42.000Z
tests/file/test_yml.py
MonolithAILtd/monolith-filemanager
2369e244e4d8a48890f55d00419a83001a5c6c40
[ "Apache-2.0" ]
2
2021-06-04T15:02:14.000Z
2021-09-03T09:26:45.000Z
from unittest import TestCase, main from unittest.mock import patch from monolith_filemanager.file.yml_file import YmlFile, YamlFileError class TestYmlFile(TestCase): @patch("monolith_filemanager.file.yml_file.File.__init__") def test___init__(self, mock_file): YmlFile(path="test") mock_file...
38.886792
99
0.712276
27d3e0a4d6cb2f960e19c8ac07f468e8e9ce2513
289
py
Python
ia870/ianeg.py
rdenadai/ia870p3
c4823efc4b8e5f187a64f8a4e9962e328bf86967
[ "BSD-2-Clause" ]
5
2018-10-15T12:02:03.000Z
2022-02-11T12:47:12.000Z
ia870/ianeg.py
rdenadai/ia870p3
c4823efc4b8e5f187a64f8a4e9962e328bf86967
[ "BSD-2-Clause" ]
1
2018-10-15T12:04:36.000Z
2019-01-25T12:04:35.000Z
ia870/ianeg.py
rdenadai/ia870p3
c4823efc4b8e5f187a64f8a4e9962e328bf86967
[ "BSD-2-Clause" ]
4
2019-01-25T11:13:48.000Z
2020-12-20T01:42:33.000Z
# -*- encoding: utf-8 -*- # Module ianeg def ianeg(f): from ia870 import ialimits if f.dtype == bool: return ~ f elif ialimits(f)[0] == (- ialimits(f)[1]): y = -f else: y = ialimits(f)[0] + ialimits(f)[1] - f y = y.astype(f.dtype) return y
18.0625
46
0.508651
1668c891ef70649c73f2e6c912f726bb4ddadec4
1,013
py
Python
picturegram/contrib/sites/migrations/0003_set_site_domain_and_name.py
wagamamajuliet/picturegram
eefc6af10cfab9ad0219047b304b5f6d33a3b9e2
[ "MIT" ]
null
null
null
picturegram/contrib/sites/migrations/0003_set_site_domain_and_name.py
wagamamajuliet/picturegram
eefc6af10cfab9ad0219047b304b5f6d33a3b9e2
[ "MIT" ]
null
null
null
picturegram/contrib/sites/migrations/0003_set_site_domain_and_name.py
wagamamajuliet/picturegram
eefc6af10cfab9ad0219047b304b5f6d33a3b9e2
[ "MIT" ]
null
null
null
""" To understand why this file is here, please read: http://cookiecutter-django.readthedocs.io/en/latest/faq.html#why-is-there-a-django-contrib-sites-directory-in-cookiecutter-django """ from django.conf import settings from django.db import migrations def update_site_forward(apps, schema_editor): """Set site d...
28.942857
129
0.688055
20946713a33a2de85488d1cf2693871a8bee8479
20,423
py
Python
toolchain/riscv/MSYS/python/Lib/dis.py
zhiqiang-hu/bl_iot_sdk
154ee677a8cc6a73e6a42a5ff12a8edc71e6d15d
[ "Apache-2.0" ]
207
2018-10-01T08:53:01.000Z
2022-03-14T12:15:54.000Z
Thonny/Lib/dis.py
Pydiderot/pydiderotIDE
a42fcde3ea837ae40c957469f5d87427e8ce46d3
[ "MIT" ]
30
2019-01-04T10:14:56.000Z
2020-10-12T14:00:31.000Z
Thonny/Lib/dis.py
Pydiderot/pydiderotIDE
a42fcde3ea837ae40c957469f5d87427e8ce46d3
[ "MIT" ]
76
2020-03-16T01:47:46.000Z
2022-03-21T16:37:07.000Z
"""Disassembler of Python byte code into mnemonics.""" import sys import types import collections import io from opcode import * from opcode import __all__ as _opcodes_all __all__ = ["code_info", "dis", "disassemble", "distb", "disco", "findlinestarts", "findlabels", "show_code", "g...
38.102612
90
0.592273
580c37d663d8f66e7ffde0e54fe194e9408fb7be
5,797
py
Python
source/rcum/cluster_web_ui/api/v1/ldap/sudo.py
tammy-ruby-cherry/scale-out-computing-on-aws
f2b0a211844af0adde370817444bea779634c1f3
[ "Apache-2.0" ]
null
null
null
source/rcum/cluster_web_ui/api/v1/ldap/sudo.py
tammy-ruby-cherry/scale-out-computing-on-aws
f2b0a211844af0adde370817444bea779634c1f3
[ "Apache-2.0" ]
null
null
null
source/rcum/cluster_web_ui/api/v1/ldap/sudo.py
tammy-ruby-cherry/scale-out-computing-on-aws
f2b0a211844af0adde370817444bea779634c1f3
[ "Apache-2.0" ]
null
null
null
from flask_restful import Resource, reqparse import config import ldap from models import db,ApiKeys from decorators import restricted_api, admin_api import errors import logging logger = logging.getLogger("api") class Sudo(Resource): @admin_api def get(self): """ Check SUDO permissions for a us...
33.703488
102
0.526824
e2cac2b3ffdfc92300e8a133f2034971b9bb298e
3,016
py
Python
catalyst/contrib/nn/optimizers/lookahead.py
bbradt/catalyst
38a503c8af040906e377b7485d7fe15a7bc1de19
[ "Apache-2.0" ]
null
null
null
catalyst/contrib/nn/optimizers/lookahead.py
bbradt/catalyst
38a503c8af040906e377b7485d7fe15a7bc1de19
[ "Apache-2.0" ]
null
null
null
catalyst/contrib/nn/optimizers/lookahead.py
bbradt/catalyst
38a503c8af040906e377b7485d7fe15a7bc1de19
[ "Apache-2.0" ]
null
null
null
from typing import Dict # isort:skip from collections import defaultdict import torch from torch.optim import Optimizer class Lookahead(Optimizer): def __init__(self, optimizer: Optimizer, k: int = 5, alpha: float = 0.5): """ Taken from: https://github.com/alphadl/lookahead.pytorch """ ...
32.782609
77
0.595159
f7318f9b6f7017b7889c28a18c24f5841345d651
2,324
py
Python
project-chat/chatApp/migrations/0001_initial.py
Torkvamedo/smx
a5aef4f430f56ac67100c505902f55e18fba5978
[ "Unlicense" ]
null
null
null
project-chat/chatApp/migrations/0001_initial.py
Torkvamedo/smx
a5aef4f430f56ac67100c505902f55e18fba5978
[ "Unlicense" ]
null
null
null
project-chat/chatApp/migrations/0001_initial.py
Torkvamedo/smx
a5aef4f430f56ac67100c505902f55e18fba5978
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.2 on 2017-06-17 19:23 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.Crea...
38.098361
144
0.577883
c281017655d6cf4e8ea3ac01616e70b3601a182d
3,908
py
Python
a334248.py
mscroggs/acyclic-orientations
c902d9bb97af122a3c326f68695ef590d51da677
[ "MIT" ]
null
null
null
a334248.py
mscroggs/acyclic-orientations
c902d9bb97af122a3c326f68695ef590d51da677
[ "MIT" ]
null
null
null
a334248.py
mscroggs/acyclic-orientations
c902d9bb97af122a3c326f68695ef590d51da677
[ "MIT" ]
null
null
null
from itertools import product def has_cycles(edges, orient): vertices = 0 for o, e in zip(orient, edges): vertices = max(vertices, e[0]+1, e[1]+1) for i in range(vertices): after = [i] p = 0 while p != len(after): p = len(after) for o, e in zip(orien...
30.061538
79
0.520983
dc2c318b57f253f052a4effb9ba8db5d17766986
1,970
py
Python
tests/test_run.py
zaibacu/rita-dsl
aea496ac1bc870646d12086d220eb216960d78f6
[ "MIT" ]
66
2019-07-17T05:23:04.000Z
2022-03-15T12:06:06.000Z
tests/test_run.py
davgit/rita-dsl
6c9b599ccda87c3832b6db4909e3379dd302a7b7
[ "MIT" ]
90
2019-07-18T10:21:13.000Z
2021-11-09T19:54:57.000Z
tests/test_run.py
davgit/rita-dsl
6c9b599ccda87c3832b6db4909e3379dd302a7b7
[ "MIT" ]
3
2020-08-20T06:57:11.000Z
2022-03-03T16:11:45.000Z
import os import sys import json import tempfile import pytest import rita from rita.run import main from rita.shortcuts import setup_spacy def test_help(mocker): sys.argv = [ "rita-dsl" "--help" ] def test_debug(mocker): sys.argv = [ "rita-dsl" "--debug" ] def te...
21.413043
96
0.620305
b9607237f152a9934c42831b4ceccdc75d4954c1
2,625
py
Python
model-optimizer/extensions/ops/Reverse_test.py
calvinfeng/openvino
11f591c16852637506b1b40d083b450e56d0c8ac
[ "Apache-2.0" ]
null
null
null
model-optimizer/extensions/ops/Reverse_test.py
calvinfeng/openvino
11f591c16852637506b1b40d083b450e56d0c8ac
[ "Apache-2.0" ]
19
2021-03-26T08:11:00.000Z
2022-02-21T13:06:26.000Z
model-optimizer/extensions/ops/Reverse_test.py
calvinfeng/openvino
11f591c16852637506b1b40d083b450e56d0c8ac
[ "Apache-2.0" ]
1
2021-07-28T17:30:46.000Z
2021-07-28T17:30:46.000Z
""" Copyright (C) 2018-2021 Intel Corporation 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 i...
42.33871
111
0.528
d1836e4149c719067d1f0fa942f5296361e9b645
25,190
py
Python
src/capabilities/specs/interface.py
fravizel/capabilities
d170f764d6687c439807b4874261ff34eb8c9a50
[ "BSD-3-Clause" ]
null
null
null
src/capabilities/specs/interface.py
fravizel/capabilities
d170f764d6687c439807b4874261ff34eb8c9a50
[ "BSD-3-Clause" ]
null
null
null
src/capabilities/specs/interface.py
fravizel/capabilities
d170f764d6687c439807b4874261ff34eb8c9a50
[ "BSD-3-Clause" ]
null
null
null
# Software License Agreement (BSD License) # # Copyright (c) 2013, Open Source Robotics Foundation, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistributions of source code mus...
43.656846
116
0.653553
40b07fd25679278699f27d1ec1a779c724236d57
3,302
py
Python
sdk/python/pulumi_gcp/spanner/database.py
pulumi-bot/pulumi-gcp
43ff11bf1c99b4e9e493f61d9755e359b686ae67
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_gcp/spanner/database.py
pulumi-bot/pulumi-gcp
43ff11bf1c99b4e9e493f61d9755e359b686ae67
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_gcp/spanner/database.py
pulumi-bot/pulumi-gcp
43ff11bf1c99b4e9e493f61d9755e359b686ae67
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import pulumi import pulumi.runtime class Database(pulumi.CustomResource): """ Creates a Google Spanner Database within a Span...
39.783133
260
0.626893
585e5603c0f485087500c75addafabc0ca145f1e
1,612
py
Python
python_ketama/tests.py
timgates42/ketama
18cf9a7717dad0d8106a5205900a17617043fe2c
[ "BSD-2-Clause" ]
545
2015-01-11T02:10:33.000Z
2022-03-24T06:13:40.000Z
python_ketama/tests.py
WhatDream/ketama
18cf9a7717dad0d8106a5205900a17617043fe2c
[ "BSD-2-Clause" ]
3
2016-07-26T02:39:05.000Z
2020-01-31T15:38:45.000Z
python_ketama/tests.py
WhatDream/ketama
18cf9a7717dad0d8106a5205900a17617043fe2c
[ "BSD-2-Clause" ]
107
2015-01-12T06:57:54.000Z
2022-03-24T06:13:44.000Z
import ketama import unittest import os class KetamaTest(unittest.TestCase): def setUp(self): self.valid_list_file = os.tmpnam() self.valid_list = file(self.valid_list_file, "w") self.valid_list.write("127.0.0.1:11211\t600\n") self.valid_list.write("127.0.0.1:11212\t400\n") ...
32.24
76
0.659429
4cbad5a36e19724b05bbd4667301aecac6cc918c
462
py
Python
sql_internal_ds/write_parquet.py
vanducng/learning-spark
b7e93361b1ae37fbcd718c4d7034b8355b65fd94
[ "MIT" ]
null
null
null
sql_internal_ds/write_parquet.py
vanducng/learning-spark
b7e93361b1ae37fbcd718c4d7034b8355b65fd94
[ "MIT" ]
null
null
null
sql_internal_ds/write_parquet.py
vanducng/learning-spark
b7e93361b1ae37fbcd718c4d7034b8355b65fd94
[ "MIT" ]
null
null
null
from pyspark.sql import SparkSession from pyspark.sql.functions import col, desc spark = (SparkSession .builder .appName("SparkSQL") .enableHiveSupport() .getOrCreate()) # Create data frame df = spark.createDataFrame([("Brooke", 20), ("Denny", 31), ("Jules", 30), ("TD", 35), ("Brooke"...
22
119
0.636364
7b19bd534ca5db663f56b71bae2af31f87924a47
18,418
py
Python
tests/unit/api/metadata/test_v0.py
jornh/amundsenfrontendlibrary
2398d83cf407eda5d75c11f526df20bc6bc7114f
[ "Apache-2.0" ]
null
null
null
tests/unit/api/metadata/test_v0.py
jornh/amundsenfrontendlibrary
2398d83cf407eda5d75c11f526df20bc6bc7114f
[ "Apache-2.0" ]
null
null
null
tests/unit/api/metadata/test_v0.py
jornh/amundsenfrontendlibrary
2398d83cf407eda5d75c11f526df20bc6bc7114f
[ "Apache-2.0" ]
null
null
null
import json import responses import unittest from http import HTTPStatus from amundsen_application import create_app from amundsen_application.api.metadata.v0 import \ TABLE_ENDPOINT, LAST_INDEXED_ENDPOINT, POPULAR_TABLES_ENDPOINT, TAGS_ENDPOINT local_app = create_app('amundsen_application.config.LocalConfig') ...
38.531381
120
0.520795
fad1d9718afc966f995b3218845d1d042a5681da
463
py
Python
plugins/out_kafka/librdkafka-1.4.2/packaging/get_version.py
carrotop/fluent-bit
7083a0edf480f09424f25c8e634e4996bf1e101b
[ "Apache-2.0" ]
6,046
2015-01-03T15:07:32.000Z
2022-03-31T13:22:43.000Z
plugins/out_kafka/librdkafka-1.4.2/packaging/get_version.py
carrotop/fluent-bit
7083a0edf480f09424f25c8e634e4996bf1e101b
[ "Apache-2.0" ]
4,247
2015-05-20T15:59:38.000Z
2022-03-31T23:19:12.000Z
plugins/out_kafka/librdkafka-1.4.2/packaging/get_version.py
carrotop/fluent-bit
7083a0edf480f09424f25c8e634e4996bf1e101b
[ "Apache-2.0" ]
3,015
2015-01-12T13:52:46.000Z
2022-03-31T15:09:08.000Z
#!/usr/bin/env python3 import sys if len(sys.argv) != 2: raise Exception('Usage: %s path/to/rdkafka.h' % sys.argv[0]) kafka_h_file = sys.argv[1] f = open(kafka_h_file) for line in f: if '#define RD_KAFKA_VERSION' in line: version = line.split()[-1] break f.close() major = int(version[2:4], 1...
21.045455
64
0.639309
af39f367fa657581517ef24915e61319f91c8f7f
1,612
py
Python
src/train/trainer_builder.py
gmum/wica
8b87531ef89a7c0dadbdcb6cf413bdf7fbb7aa4e
[ "MIT" ]
7
2020-04-29T09:21:07.000Z
2021-09-02T15:17:36.000Z
src/train/trainer_builder.py
gmum/wica
8b87531ef89a7c0dadbdcb6cf413bdf7fbb7aa4e
[ "MIT" ]
1
2021-09-08T01:44:10.000Z
2021-09-08T01:44:10.000Z
src/train/trainer_builder.py
gmum/wica
8b87531ef89a7c0dadbdcb6cf413bdf7fbb7aa4e
[ "MIT" ]
4
2021-04-04T15:39:25.000Z
2022-01-06T12:07:06.000Z
from torch.utils.data import DataLoader from src.data_handling.datasets import FlattenedPicturesDataset from src.decoders.decoder_provider import DecoderProvider from src.encoders.encoder_provider import EncoderProvider from src.models.loss_functions import * from src.models.models import * from src.train.trainers imp...
39.317073
94
0.756203
dced62b05d063f2887eb427b0d66d0d290d13f31
736
py
Python
fjord/heartbeat/migrations/0011_auto_20151230_1128.py
bopopescu/fjord
0fcb81e6a5edaf42c00c64faf001fc43b24e11c0
[ "BSD-3-Clause" ]
16
2015-02-06T14:35:57.000Z
2021-07-10T11:14:00.000Z
fjord/heartbeat/migrations/0011_auto_20151230_1128.py
bopopescu/fjord
0fcb81e6a5edaf42c00c64faf001fc43b24e11c0
[ "BSD-3-Clause" ]
310
2015-01-07T14:39:35.000Z
2016-05-02T17:41:30.000Z
fjord/heartbeat/migrations/0011_auto_20151230_1128.py
bopopescu/fjord
0fcb81e6a5edaf42c00c64faf001fc43b24e11c0
[ "BSD-3-Clause" ]
22
2015-01-15T13:46:03.000Z
2020-07-24T10:08:51.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models def add_heartbeat_health(apps, schema_editor): MailingList = apps.get_model('mailinglist', 'MailingList') ml = MailingList.objects.create(name='heartbeat_health') ml.save() def remove_heartbeat_heal...
26.285714
76
0.71875
71a27f2dace5c34a222c0db77eeab8ad10b13c54
911
py
Python
PaaS/shared/mqtt_cons.py
sbhTWR/Pipeline-PaaS
eefce6f301c127a40a191b56a9b9b12e22114f06
[ "MIT" ]
1
2021-08-21T16:37:59.000Z
2021-08-21T16:37:59.000Z
PaaS/shared/mqtt_cons.py
sbhTWR/Pipeline-PaaS
eefce6f301c127a40a191b56a9b9b12e22114f06
[ "MIT" ]
null
null
null
PaaS/shared/mqtt_cons.py
sbhTWR/Pipeline-PaaS
eefce6f301c127a40a191b56a9b9b12e22114f06
[ "MIT" ]
1
2019-12-20T10:28:47.000Z
2019-12-20T10:28:47.000Z
#!/usr/bin/env python3 import paho.mqtt.client as mqtt import pika import sys import time arg_mqtt_host = sys.argv[1] arg_host = sys.argv[2] arg_exchange = sys.argv[3] print(arg_host + " " + arg_exchange) connection = pika.BlockingConnection( pika.ConnectionParameters(host=arg_host)) channel = connection.channel...
22.219512
89
0.736553
fc462ead874b7a665583f3570c2e48e5b57aea52
687
py
Python
ImageSegmentation/MakeMoreData/Flipimg.py
AryaKoureshi/Brain-tumor-detection
8ba289af17c627dade331a673a0fac11fdef0b9c
[ "MIT" ]
10
2021-12-23T11:55:48.000Z
2022-03-22T16:44:56.000Z
ImageSegmentation/MakeMoreData/Flipimg.py
AryaKoureshi/Brain-tumor-detection
8ba289af17c627dade331a673a0fac11fdef0b9c
[ "MIT" ]
null
null
null
ImageSegmentation/MakeMoreData/Flipimg.py
AryaKoureshi/Brain-tumor-detection
8ba289af17c627dade331a673a0fac11fdef0b9c
[ "MIT" ]
2
2021-12-23T15:44:37.000Z
2022-01-24T04:09:18.000Z
# -*- coding: utf-8 -*- """ Created on Wed Dec 22 00:37:44 2021 @author: Arya """ import cv2 import glob import os # loading images directory = r'\Dataset\Br35H-Mask-RCNN\Annotation_Train_New' images_path = "/Dataset/Brain_tumor/Br35H-Mask-RCNN/Annotation_Train_New/" train_images = glob.glob(images_pat...
26.423077
87
0.669578
44a3cb5151c2db0c4f4a92d9bf2ccfcd78be9694
17,457
py
Python
orakolo/HDEd25519.py
ShlikhutkaBohdan/Python-Cardano-Address-Derivation
3a5c8911218faf5756fdb79748c54a0e5b41ff43
[ "MIT" ]
1
2022-01-06T16:39:19.000Z
2022-01-06T16:39:19.000Z
orakolo/HDEd25519.py
ShlikhutkaBohdan/Python-Cardano-Address-Derivation
3a5c8911218faf5756fdb79748c54a0e5b41ff43
[ "MIT" ]
null
null
null
orakolo/HDEd25519.py
ShlikhutkaBohdan/Python-Cardano-Address-Derivation
3a5c8911218faf5756fdb79748c54a0e5b41ff43
[ "MIT" ]
1
2021-12-10T08:58:00.000Z
2021-12-10T08:58:00.000Z
from ecpy.curves import Curve,Point import hmac import hashlib import binascii import unicodedata """ OS CALL: void os_perso_derive_node_bip32_seed_key(unsigned int mode, cx_curve_t curve, co...
35.124748
148
0.531706
adff0537d5ebcd2087daaf66514bda682a7052ca
401
py
Python
Act1/cssenv/Scripts/csaplication/csaplication/wsgi.py
Talox1/Cliente-Servidor
fb243832684f818416c10fdcdaf397fccda09321
[ "MIT" ]
null
null
null
Act1/cssenv/Scripts/csaplication/csaplication/wsgi.py
Talox1/Cliente-Servidor
fb243832684f818416c10fdcdaf397fccda09321
[ "MIT" ]
11
2020-02-12T00:27:50.000Z
2022-02-10T09:43:00.000Z
Act1/cssenv/Scripts/csaplication/csaplication/wsgi.py
Talox1/Cliente-Servidor
fb243832684f818416c10fdcdaf397fccda09321
[ "MIT" ]
null
null
null
""" WSGI config for csaplication project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_...
23.588235
78
0.790524
868e1cb25b78ed7e27c90f5be3b6c4c43125778f
3,136
py
Python
kymatio/scattering3d/backend/torch_skcuda_backend.py
GReguig/kymatio
e0fc10057f5f8bb947068bc40afff8d3d3729052
[ "BSD-3-Clause" ]
516
2018-11-18T06:11:16.000Z
2022-03-21T22:35:06.000Z
kymatio/scattering3d/backend/torch_skcuda_backend.py
GReguig/kymatio
e0fc10057f5f8bb947068bc40afff8d3d3729052
[ "BSD-3-Clause" ]
558
2018-11-19T22:21:12.000Z
2022-03-28T14:59:15.000Z
kymatio/scattering3d/backend/torch_skcuda_backend.py
GReguig/kymatio
e0fc10057f5f8bb947068bc40afff8d3d3729052
[ "BSD-3-Clause" ]
119
2018-11-18T06:05:39.000Z
2022-03-26T06:59:37.000Z
import torch import warnings from skcuda import cublas BACKEND_NAME = 'torch_skcuda' from collections import namedtuple def _is_complex(input): return input.shape[-1] == 2 def cdgmm3d(A, B, inplace=False): """Complex pointwise multiplication. Complex pointwise multiplication between (batched) ten...
32.666667
99
0.655931
4005f10514197c442ce16937b5e89336c3d45e31
314
py
Python
voxblox_ros/setup.py
BenjaminMorrell/voxblox
9128b12def36b0a8fb2c36ec837a239d0d142812
[ "BSD-3-Clause" ]
1
2018-04-24T05:06:43.000Z
2018-04-24T05:06:43.000Z
voxblox_ros/setup.py
BenjaminMorrell/voxblox
9128b12def36b0a8fb2c36ec837a239d0d142812
[ "BSD-3-Clause" ]
null
null
null
voxblox_ros/setup.py
BenjaminMorrell/voxblox
9128b12def36b0a8fb2c36ec837a239d0d142812
[ "BSD-3-Clause" ]
1
2018-04-18T19:34:48.000Z
2018-04-18T19:34:48.000Z
## ! DO NOT MANUALLY INVOKE THIS setup.py, USE CATKIN INSTEAD from distutils.core import setup from catkin_pkg.python_setup import generate_distutils_setup # fetch values from package.xml setup_args = generate_distutils_setup( packages=['voxblox_ros'], package_dir={'': 'python'}, ) setup(**setup_args)
24.153846
61
0.764331
7b1bf30b90a8b3f43536a154f228a812da285746
6,391
py
Python
mkt/files/views.py
mstriemer/zamboni
32f95899492d51e78caaf9a08caa28fcfcb2c172
[ "BSD-3-Clause" ]
null
null
null
mkt/files/views.py
mstriemer/zamboni
32f95899492d51e78caaf9a08caa28fcfcb2c172
[ "BSD-3-Clause" ]
null
null
null
mkt/files/views.py
mstriemer/zamboni
32f95899492d51e78caaf9a08caa28fcfcb2c172
[ "BSD-3-Clause" ]
null
null
null
from urlparse import urljoin from django import http, shortcuts from django.conf import settings from django.core.urlresolvers import reverse from django.shortcuts import render from django.views.decorators.cache import never_cache from django.views.decorators.csrf import csrf_exempt from django.views.decorators.http ...
32.774359
78
0.60773
1535207034ff3ee4ba9ced15bc259503392c1ab9
5,658
py
Python
src/bot_training.py
haejung83/slack-training-monitor-bot
9259cfadb98e309f32756e459142fb07d8049ed3
[ "Apache-2.0" ]
null
null
null
src/bot_training.py
haejung83/slack-training-monitor-bot
9259cfadb98e309f32756e459142fb07d8049ed3
[ "Apache-2.0" ]
null
null
null
src/bot_training.py
haejung83/slack-training-monitor-bot
9259cfadb98e309f32756e459142fb07d8049ed3
[ "Apache-2.0" ]
null
null
null
import json import websockets import asyncio from slacker import Slacker from bot_execution_manager import BotExecutionManager _CONSTANT_USAGE_PREFIX = 'Commands :\n\tlist\n\tstatus\n\trun <commands>\n\tstop <command>' _CONSTANT_ENABLE_LOG = 'enable_log' class RequestCommand: def __init__(self, type, param): ...
31.259669
91
0.601273
0da86c67671db659bb35cbbcfd1ae8b5c0a374b8
6,679
py
Python
opsbro/systempacketmanager.py
naparuba/opsbro
98618a002cd47250d21e7b877a24448fc95fec80
[ "MIT" ]
32
2017-08-29T08:57:16.000Z
2021-04-21T08:53:04.000Z
opsbro/systempacketmanager.py
naparuba/opsbro
98618a002cd47250d21e7b877a24448fc95fec80
[ "MIT" ]
108
2017-09-04T19:59:28.000Z
2022-03-31T08:12:07.000Z
opsbro/systempacketmanager.py
naparuba/kunai
98618a002cd47250d21e7b877a24448fc95fec80
[ "MIT" ]
8
2015-02-03T12:30:53.000Z
2017-07-29T19:43:54.000Z
import os import platform from .log import LoggerFactory # Global logger for this part logger = LoggerFactory.create_logger('system-packages') # TODO: get a way to know if a service is enabled, or not # RUN level: [root@centos-7 ~]# systemctl get-default # multi-user.target ==> 3 # graphical.target ==> 5 # syst...
36.298913
129
0.59485
7ca020c71bed9ce9d290831038a202717e9776f2
1,461
py
Python
util/deal_xlsx.py
wq0909/widget
b253019486d9c26314b100bafff931e0369bc7ec
[ "MIT" ]
null
null
null
util/deal_xlsx.py
wq0909/widget
b253019486d9c26314b100bafff931e0369bc7ec
[ "MIT" ]
null
null
null
util/deal_xlsx.py
wq0909/widget
b253019486d9c26314b100bafff931e0369bc7ec
[ "MIT" ]
null
null
null
# !/usr/bin/env python # -*- coding=utf-8 -*- import openpyxl class DealXlsx(object): file_name = "" header = [] body = [] # object_yaml = None wb = None sh = None # def new_xlsx_file(self): # f = open(self.file_name, 'w', encoding='utf-8') # return f def new_work_...
23.95082
64
0.570842
b6976e0b9d901c365c2e67bd35483ff5769c04d6
11,233
py
Python
nutm/head.py
thaihungle/NSM
0ee3bdc22e0b53683ce21ef1c879b111efa4b22d
[ "MIT" ]
9
2020-01-17T12:57:58.000Z
2021-06-01T22:52:21.000Z
nutm/head.py
thaihungle/NSM
0ee3bdc22e0b53683ce21ef1c879b111efa4b22d
[ "MIT" ]
7
2021-08-25T15:07:05.000Z
2022-02-11T03:48:11.000Z
nutm/head.py
thaihungle/NSM
0ee3bdc22e0b53683ce21ef1c879b111efa4b22d
[ "MIT" ]
2
2020-01-21T06:44:35.000Z
2020-05-19T01:54:32.000Z
"""NTM Read and Write Heads.""" import torch from torch import nn import torch.nn.functional as F import numpy as np import math from nutm.util import * def sample_gumbel(shape, eps=1e-20): U = torch.rand(shape).cuda() return -Variable(torch.log(-torch.log(U + eps) + eps)) def gumbel_softmax_sample(logits, te...
40.117857
134
0.585685
d3b5886692163d201b2bacab3fbee3e4123e70b9
4,988
py
Python
pipenv/vendor/requests/__init__.py
offby1/pipenv
ce83c629385b4e7a791bd6857c2cf1e26ceb2351
[ "MIT" ]
23
2017-01-20T01:18:31.000Z
2017-01-20T17:25:11.000Z
pipenv/vendor/requests/__init__.py
offby1/pipenv
ce83c629385b4e7a791bd6857c2cf1e26ceb2351
[ "MIT" ]
1
2022-03-17T13:12:17.000Z
2022-03-17T13:12:17.000Z
pipenv/vendor/requests/__init__.py
offby1/pipenv
ce83c629385b4e7a791bd6857c2cf1e26ceb2351
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # __ # /__) _ _ _ _ _/ _ # / ( (- (/ (/ (- _) / _) # / """ Requests HTTP Library ~~~~~~~~~~~~~~~~~~~~~ Requests is an HTTP library, written in Python, for human beings. Basic GET usage: >>> import requests >>> r = requests.get('https://www.python.org') >>> ...
32.601307
102
0.694868
4b4d02f2e6354a5e4bc30c609ccaf81981154429
27,692
py
Python
cocotb_test/simulator.py
gretzteam/cocotb-test
df42c0d37b5e0eae1dacad609f3da009d11f1606
[ "BSD-2-Clause" ]
null
null
null
cocotb_test/simulator.py
gretzteam/cocotb-test
df42c0d37b5e0eae1dacad609f3da009d11f1606
[ "BSD-2-Clause" ]
null
null
null
cocotb_test/simulator.py
gretzteam/cocotb-test
df42c0d37b5e0eae1dacad609f3da009d11f1606
[ "BSD-2-Clause" ]
null
null
null
import subprocess import os import sys import tempfile import re import cocotb import logging, logging.config import shutil from xml.etree import cElementTree as ET import signal from distutils.spawn import find_executable from distutils.sysconfig import get_config_var _magic_re = re.compile(r"([\\{}])") _space_re = ...
32.237485
152
0.548462
3025f8e8e30d67affab00ab48b1690d04c611b18
1,562
py
Python
mako/ext/autohandler.py
grounzeroj/AsBuiltReport
8f5d7b12e605beccd8d5f3b8c13bb8a822341584
[ "MIT" ]
2
2015-05-30T20:28:13.000Z
2021-01-08T17:02:41.000Z
mako/ext/autohandler.py
grounzeroj/AsBuiltReport
8f5d7b12e605beccd8d5f3b8c13bb8a822341584
[ "MIT" ]
6
2015-04-27T22:12:58.000Z
2020-05-23T01:14:06.000Z
mako/ext/autohandler.py
grounzeroj/AsBuiltReport
8f5d7b12e605beccd8d5f3b8c13bb8a822341584
[ "MIT" ]
2
2021-09-06T18:44:45.000Z
2022-02-24T04:10:10.000Z
"""adds autohandler functionality to Mako templates. requires that the TemplateLookup class is used with templates. usage: <%! from mako.ext.autohandler import autohandler %> <%inherit file="${autohandler(template, context)}"/> or with custom autohandler filename: <%! from mako.ext.autohandler import autohandle...
26.931034
93
0.632522
8392bc212d09faf768dfaae1e61d712acf4ce7a3
28,413
py
Python
wagtail/contrib/forms/tests/test_models.py
brownaa/wagtail
c97bc56c6822eb1b6589d5c33e07f71acfc48845
[ "BSD-3-Clause" ]
8,851
2016-12-09T19:01:45.000Z
2022-03-31T04:45:06.000Z
wagtail/contrib/forms/tests/test_models.py
brownaa/wagtail
c97bc56c6822eb1b6589d5c33e07f71acfc48845
[ "BSD-3-Clause" ]
5,197
2016-12-09T19:24:37.000Z
2022-03-31T22:17:55.000Z
wagtail/contrib/forms/tests/test_models.py
brownaa/wagtail
c97bc56c6822eb1b6589d5c33e07f71acfc48845
[ "BSD-3-Clause" ]
2,548
2016-12-09T18:16:55.000Z
2022-03-31T21:34:38.000Z
# -*- coding: utf-8 -*- import json from django.core import mail from django.core.checks import Info from django.test import TestCase, override_settings from wagtail.contrib.forms.models import FormSubmission from wagtail.contrib.forms.tests.utils import ( make_form_page, make_form_page_with_custom_submission, ma...
42.093333
133
0.646676
0c81ec7a54eb85d4598784b2179a8ff2e8782880
16,167
py
Python
src/pds_doi_service/core/input/pds4_util.py
NASA-PDS/pds-doi-service
b994381a5757700229865e8fe905553559684e0d
[ "Apache-2.0" ]
2
2020-11-03T19:29:11.000Z
2021-09-26T01:42:41.000Z
src/pds_doi_service/core/input/pds4_util.py
NASA-PDS/pds-doi-service
b994381a5757700229865e8fe905553559684e0d
[ "Apache-2.0" ]
222
2020-05-07T21:05:23.000Z
2021-12-16T22:14:54.000Z
src/pds_doi_service/core/input/pds4_util.py
NASA-PDS/pds-doi-service
b994381a5757700229865e8fe905553559684e0d
[ "Apache-2.0" ]
null
null
null
# # Copyright 2020, by the California Institute of Technology. ALL RIGHTS # RESERVED. United States Government Sponsorship acknowledged. Any commercial # use must be negotiated with the Office of Technology Transfer at the # California Institute of Technology. # """ ========== pds4_util.py ========== Contains fun...
41.032995
137
0.620833
fac4f88a0e06d13b81992463b75d5423c729ac2c
3,254
py
Python
tasks/blocks_rew.py
alejandropan/iblrig
d8e746ccc52c2ad325404077ad2403e165e94d0c
[ "MIT" ]
null
null
null
tasks/blocks_rew.py
alejandropan/iblrig
d8e746ccc52c2ad325404077ad2403e165e94d0c
[ "MIT" ]
4
2019-04-03T06:11:48.000Z
2019-06-14T00:12:19.000Z
tasks/blocks_rew.py
alejandropan/iblrig
d8e746ccc52c2ad325404077ad2403e165e94d0c
[ "MIT" ]
null
null
null
"@alejandro April 2019 - Code for biased reward blocks. Block reward probabilities are hard coded here" ########################## REWARD BLOCKS ###################################### import misc import numpy as np def get_block_len(factor, min_, max_): return int(misc.texp(factor=factor, min_=min_, max...
41.717949
107
0.579287
8b9080c9f83a41a28727589623f02c9e54265662
2,394
py
Python
aleph/migrate/versions/0d710334ddd1_remove_entity_tables.py
gazeti/aleph
f6714c4be038471cfdc6408bfe88dc9e2ed28452
[ "MIT" ]
1
2017-07-28T12:54:09.000Z
2017-07-28T12:54:09.000Z
aleph/migrate/versions/0d710334ddd1_remove_entity_tables.py
gazeti/aleph
f6714c4be038471cfdc6408bfe88dc9e2ed28452
[ "MIT" ]
7
2017-08-16T12:49:23.000Z
2018-02-16T10:22:11.000Z
aleph/migrate/versions/0d710334ddd1_remove_entity_tables.py
gazeti/aleph
f6714c4be038471cfdc6408bfe88dc9e2ed28452
[ "MIT" ]
6
2017-07-26T12:29:53.000Z
2017-08-18T09:35:50.000Z
"""remove entity tables Revision ID: 0d710334ddd1 Revises: aca5ebda9763 Create Date: 2016-11-21 21:42:28.617891 """ from alembic import op # import sqlalchemy as sa # from sqlalchemy.dialects import postgresql # revision identifiers, used by Alembic. revision = '0d710334ddd1' down_revision = 'aca5ebda9763' def upg...
38.612903
92
0.725982