hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
1e78da78033f40939d782dc23f33bc2aefd09a24
18,311
py
Python
main.py
cole-heider/OscarsAdventure
aae9dc45046f6d0cc9e0ca4348e6a72ba796394e
[ "MIT" ]
null
null
null
main.py
cole-heider/OscarsAdventure
aae9dc45046f6d0cc9e0ca4348e6a72ba796394e
[ "MIT" ]
null
null
null
main.py
cole-heider/OscarsAdventure
aae9dc45046f6d0cc9e0ca4348e6a72ba796394e
[ "MIT" ]
null
null
null
import pygame import time from pygame import mixer from levels import Level from button import Button from TileTypes import Enemy, Spike, Door, MovingPlatform # initializing things mixer.init() pygame.init() clock = pygame.time.Clock() # establishing variables tile_size = 25 player_size = 40 main_menu = True screen_w...
33.909259
156
0.548304
46025221e9dd15f8b22d055dc27a1f0ee006e87e
430
py
Python
moto/core/urls.py
harveywi/moto
3a5d857a60c3a2d140ed2c8adfe8dcaf71a4cac8
[ "Apache-2.0" ]
2
2018-01-29T14:50:38.000Z
2018-05-12T10:45:31.000Z
moto/core/urls.py
harveywi/moto
3a5d857a60c3a2d140ed2c8adfe8dcaf71a4cac8
[ "Apache-2.0" ]
2
2021-03-31T20:15:51.000Z
2021-12-13T20:50:52.000Z
moto/core/urls.py
harveywi/moto
3a5d857a60c3a2d140ed2c8adfe8dcaf71a4cac8
[ "Apache-2.0" ]
12
2017-09-06T22:11:15.000Z
2021-05-28T17:22:31.000Z
from __future__ import unicode_literals from .responses import MotoAPIResponse url_bases = [ "https?://motoapi.amazonaws.com" ] response_instance = MotoAPIResponse() url_paths = { '{0}/moto-api/$': response_instance.dashboard, '{0}/moto-api/data.json': response_instance.model_data, '{0}/moto-api/rese...
26.875
69
0.739535
0d5ef18b0efd6f0ad3f16df7f39d0eef101882a4
398
py
Python
src/the_tale/the_tale/portal/jinjaglobals.py
al-arz/the-tale
542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5
[ "BSD-3-Clause" ]
85
2017-11-21T12:22:02.000Z
2022-03-27T23:07:17.000Z
src/the_tale/the_tale/portal/jinjaglobals.py
al-arz/the-tale
542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5
[ "BSD-3-Clause" ]
545
2017-11-04T14:15:04.000Z
2022-03-27T14:19:27.000Z
src/the_tale/the_tale/portal/jinjaglobals.py
al-arz/the-tale
542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5
[ "BSD-3-Clause" ]
45
2017-11-11T12:36:30.000Z
2022-02-25T06:10:44.000Z
import smart_imports smart_imports.all() @utils_jinja2.jinjaglobal def faq_url(): return utils_jinja2.Markup(conf.settings.FAQ_URL) @utils_jinja2.jinjaglobal def players_projects_url(): return utils_jinja2.Markup(conf.settings.PLAYERS_PROJECTS_URL) @utils_jinja2.jinjaglobal def get_edition_number(): ...
19.9
80
0.796482
57e398ddfed7feacc574dc1b843dd12f5291db9f
2,252
py
Python
tools/check_annotations.py
denglixi/faster-rcnn.pytorch
12158fa2ec998ba3733a4696b7a4e08a35c157e3
[ "MIT" ]
null
null
null
tools/check_annotations.py
denglixi/faster-rcnn.pytorch
12158fa2ec998ba3733a4696b7a4e08a35c157e3
[ "MIT" ]
null
null
null
tools/check_annotations.py
denglixi/faster-rcnn.pytorch
12158fa2ec998ba3733a4696b7a4e08a35c157e3
[ "MIT" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- # vim:fenc=utf-8 # # Copyright © 2018 lixi <lixi@LMS-SGPU> # # Distributed under terms of the MIT license. """ """ import os from xml_process import parse_rec, read_xml from PIL import Image def travel_xml_in_path(callback_func): """ travel callback_func :...
33.117647
87
0.496004
23334cc08211965b7e82544378a3574d4b8595ca
144
py
Python
application/test_queries.py
pachecobruno/python-ddd
81812848a567d4605df346ef3630718d320706cc
[ "MIT" ]
null
null
null
application/test_queries.py
pachecobruno/python-ddd
81812848a567d4605df346ef3630718d320706cc
[ "MIT" ]
null
null
null
application/test_queries.py
pachecobruno/python-ddd
81812848a567d4605df346ef3630718d320706cc
[ "MIT" ]
null
null
null
from application.queries import GetItemsQuery def test_valid_get_items_query(): query = GetItemsQuery() assert query.is_valid() == True
28.8
45
0.770833
54144e7d07c005f4e4c47e90bd4fb8e5abe3ecf9
725
py
Python
reducer.py
kerry-t-johnson/simple_Hadoop_MapReduce_example
ef14659c2803b3bf3c89dffd90cdc62d19e27cdc
[ "MIT" ]
null
null
null
reducer.py
kerry-t-johnson/simple_Hadoop_MapReduce_example
ef14659c2803b3bf3c89dffd90cdc62d19e27cdc
[ "MIT" ]
null
null
null
reducer.py
kerry-t-johnson/simple_Hadoop_MapReduce_example
ef14659c2803b3bf3c89dffd90cdc62d19e27cdc
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys # maps words to their counts word2count = {} # input comes from STDIN for line in sys.stdin: # remove leading and trailing whitespace line = line.strip() # parse the input we got from mapper.py -- split on tabs word, count = line.split('\t', 1) # convert count (c...
24.166667
61
0.616552
8af6a6ad5ed07d236239017550994c3cf0201186
3,132
py
Python
src/util/data_structure.py
so-link/networkembedding.torch
05cdcbab685047bb8c327d455d7d2aabf16637ac
[ "MIT" ]
4
2019-09-04T02:50:04.000Z
2019-10-11T07:41:03.000Z
src/util/data_structure.py
so-link/NetworkEmbedding_Torch
05cdcbab685047bb8c327d455d7d2aabf16637ac
[ "MIT" ]
2
2019-06-25T08:43:15.000Z
2019-11-02T12:55:08.000Z
src/util/data_structure.py
so-link/networkembedding.torch
05cdcbab685047bb8c327d455d7d2aabf16637ac
[ "MIT" ]
1
2019-10-11T07:41:06.000Z
2019-10-11T07:41:06.000Z
#coding:utf-8 from collections import defaultdict import heapq from pprint import pprint class DisjoinSet(object): def __init__(self, size): self.size = size self.num_components = size self.arr = list(range(size)) def union(self, u, v): u_root = self.find(u) v_root...
31.32
110
0.590996
651596a5796ad0e5fb480c5781cf5a29bd0233fe
2,043
py
Python
src/facepunch.py
cocorocho/RustTwitchDrops
79dab661af0a137fc305e84b7db3823d07d1f30e
[ "MIT" ]
null
null
null
src/facepunch.py
cocorocho/RustTwitchDrops
79dab661af0a137fc305e84b7db3823d07d1f30e
[ "MIT" ]
null
null
null
src/facepunch.py
cocorocho/RustTwitchDrops
79dab661af0a137fc305e84b7db3823d07d1f30e
[ "MIT" ]
null
null
null
from bs4 import BeautifulSoup from requests import Session class Streamer(Session): def __init__(self, stream_url: str, streamer_name: str, drop_name: str): super().__init__() self.name = streamer_name.strip() self.drop_name = drop_name.strip() self.stream_url = stream_url.strip() ...
34.627119
172
0.57954
ae0ebde3699d340f5569cee2774892eabd0f1b36
1,978
py
Python
tests/test_dijkstra.py
bpesquet/pyai
09f6e9989c9c3d3619b45a0aab2bd363141dfe58
[ "MIT" ]
null
null
null
tests/test_dijkstra.py
bpesquet/pyai
09f6e9989c9c3d3619b45a0aab2bd363141dfe58
[ "MIT" ]
null
null
null
tests/test_dijkstra.py
bpesquet/pyai
09f6e9989c9c3d3619b45a0aab2bd363141dfe58
[ "MIT" ]
null
null
null
""" Tests for Dijkstra's algorithm """ from pyai.search.dijkstra import find_shortest_path def test_dijkstra(): """Test Dijkstra's algorithm""" graph_1 = { "A": {("B", 3), ("C", 6), ("D", 5)}, "B": {("A", 3)}, "C": {("A", 6), ("E", 9)}, "D": {("A", 5), ("F", 5)}, "E":...
28.666667
61
0.33367
17e0e19648e46e3e239517794919b85c708195b2
3,813
py
Python
python/cell_cycle_gating/accum.py
datarail/DrugResponse
5d1cbfd04dd0d03327478461267e65b6ba95a499
[ "MIT" ]
1
2019-09-30T04:19:10.000Z
2019-09-30T04:19:10.000Z
python/cell_cycle_gating/accum.py
datarail/DrugResponse
5d1cbfd04dd0d03327478461267e65b6ba95a499
[ "MIT" ]
3
2018-04-17T19:31:48.000Z
2018-04-30T22:58:16.000Z
python/cell_cycle_gating/accum.py
datarail/DrugResponse
5d1cbfd04dd0d03327478461267e65b6ba95a499
[ "MIT" ]
4
2017-11-02T14:28:31.000Z
2019-09-30T04:19:04.000Z
from itertools import product import numpy as np def accum(accmap, a, func=None, size=None, fill_value=0, dtype=None): """ An accumulation function similar to Matlab's `accumarray` function. Parameters ---------- accmap : ndarray This is the "accumulation map". It maps input (i.e. indice...
34.981651
88
0.558091
27cc199b50dfddc514432f375e11773db6deb17c
2,924
py
Python
tests/unit/test_transformations.py
Numerics88/n88tools
e982d3190897197db9612c65fcca57f9b52a576f
[ "MIT" ]
1
2018-01-29T03:27:52.000Z
2018-01-29T03:27:52.000Z
tests/unit/test_transformations.py
Numerics88/n88tools
e982d3190897197db9612c65fcca57f9b52a576f
[ "MIT" ]
6
2019-12-17T00:09:03.000Z
2021-01-18T19:14:49.000Z
tests/unit/test_transformations.py
Numerics88/n88tools
e982d3190897197db9612c65fcca57f9b52a576f
[ "MIT" ]
null
null
null
from __future__ import division import unittest from n88tools import transformations import numpy as np import math class TestTransformations(unittest.TestCase): def test_rotationZ_phi_zero(self): '''Zero phi returns identity for rotationZ''' M = transformations.rotationZ(0.0) self.assertT...
29.836735
61
0.578317
657fe2f7d07c6e5cc865198b36dcb1e125d1b5f3
41,231
py
Python
MR_facenet.py
mhs-rajaei/facenet_custom_dataset_eval
9e91c7cdc507bc42d203229718e7b2db814e3b22
[ "MIT" ]
4
2019-04-01T03:52:23.000Z
2021-07-09T11:39:28.000Z
facenet.py
mhs-rajaei/facenet
b53d9f7fbdc046f7456eb5f6ae9b51cf9d565aed
[ "MIT" ]
null
null
null
facenet.py
mhs-rajaei/facenet
b53d9f7fbdc046f7456eb5f6ae9b51cf9d565aed
[ "MIT" ]
null
null
null
"""Functions for building the face recognition network. """ # MIT License # # Copyright (c) 2016 David Sandberg # # 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, includ...
39.081517
150
0.636487
ec51b24abb4599caa1e4ec85532ba269af3d566b
15,776
py
Python
jedi/inference/value/klass.py
yuan-xy/jedi
2d672d2f28673553b34be6a1b7adf0e6a2953414
[ "MIT" ]
null
null
null
jedi/inference/value/klass.py
yuan-xy/jedi
2d672d2f28673553b34be6a1b7adf0e6a2953414
[ "MIT" ]
null
null
null
jedi/inference/value/klass.py
yuan-xy/jedi
2d672d2f28673553b34be6a1b7adf0e6a2953414
[ "MIT" ]
null
null
null
""" Like described in the :mod:`parso.python.tree` module, there's a need for an ast like module to represent the states of parsed modules. But now there are also structures in Python that need a little bit more than that. An ``Instance`` for example is only a ``Class`` before it is instantiated. This class represents...
41.406824
99
0.594828
9d2e24c84d630bff09bdd3ff58f974a3c913e957
1,976
py
Python
release/scripts/addons/io_export_dxf/__init__.py
noorbeast/BlenderSource
65ebecc5108388965678b04b43463b85f6c69c1d
[ "Naumen", "Condor-1.1", "MS-PL" ]
3
2019-09-16T10:29:19.000Z
2022-02-11T14:43:18.000Z
engine/2.80/scripts/addons/io_export_dxf/__init__.py
byteinc/Phasor
f7d23a489c2b4bcc3c1961ac955926484ff8b8d9
[ "Unlicense" ]
null
null
null
engine/2.80/scripts/addons/io_export_dxf/__init__.py
byteinc/Phasor
f7d23a489c2b4bcc3c1961ac955926484ff8b8d9
[ "Unlicense" ]
null
null
null
# ##### BEGIN GPL LICENSE BLOCK ##### # # 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 License, or (at your option) any later version. # # This program is distrib...
32.393443
105
0.703947
5b10548df84e6e871f6a335c97241122c9365b70
6,875
py
Python
detectron2/config/config.py
WK-Heisenberg/detectron2
927b3be8b5898e2008a28b6c2adade76eeb8aa93
[ "Apache-2.0" ]
3
2019-12-18T09:04:21.000Z
2020-04-21T08:31:26.000Z
detectron2/config/config.py
xudi1997/detectron2
02478d2e332d4ff501be136794b2919029ebb6be
[ "Apache-2.0" ]
4
2021-06-08T20:51:59.000Z
2022-03-12T00:12:46.000Z
detectron2/config/config.py
xudi1997/detectron2
02478d2e332d4ff501be136794b2919029ebb6be
[ "Apache-2.0" ]
1
2020-03-14T05:39:43.000Z
2020-03-14T05:39:43.000Z
# -*- coding: utf-8 -*- # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import functools import inspect import logging from fvcore.common.config import CfgNode as _CfgNode from fvcore.common.file_io import PathManager class CfgNode(_CfgNode): """ The same as `fvcore.common.config.CfgNo...
33.866995
99
0.639855
71d592dbdfb2d21c37bd037d8e977650b2231f91
23,474
py
Python
jdiscopy/drawing.py
chapmanbe/Quantum-Models-for-Word-Sense-Disambiguation
999c56e8cfe1caba352057f5581b8ed2238d4848
[ "MIT" ]
null
null
null
jdiscopy/drawing.py
chapmanbe/Quantum-Models-for-Word-Sense-Disambiguation
999c56e8cfe1caba352057f5581b8ed2238d4848
[ "MIT" ]
null
null
null
jdiscopy/drawing.py
chapmanbe/Quantum-Models-for-Word-Sense-Disambiguation
999c56e8cfe1caba352057f5581b8ed2238d4848
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Drawing module. """ import os from dataclasses import dataclass from abc import ABC, abstractmethod from tempfile import NamedTemporaryFile, TemporaryDirectory import networkx as nx from PIL import Image import matplotlib.pyplot as plt from matplotlib.path import Path from matplotlib.patch...
39.85399
79
0.556275
0e0a432e0d69a0d2bc0a307df481c910398b4249
156
py
Python
exercicio6.py
shyga362/projetoPython
1efad8c234b3e728cb23cb02fc11c8e1b7887a25
[ "MIT" ]
2
2022-01-06T23:31:00.000Z
2022-01-06T23:35:49.000Z
exercicio6.py
shyga362/projetoPython
1efad8c234b3e728cb23cb02fc11c8e1b7887a25
[ "MIT" ]
null
null
null
exercicio6.py
shyga362/projetoPython
1efad8c234b3e728cb23cb02fc11c8e1b7887a25
[ "MIT" ]
null
null
null
n1 = int(input('digite um numero')) d = n1**2 t = n1**3 rq = n1**(1/2) print('o dobro é: {} \n o triplo é: {} \n a raiz quadrada é: {}'.format(d, t, rq))
19.5
82
0.538462
86ce7de93507a03bd58655041b774ab764397028
5,027
py
Python
TOOLS/add163md.py
starsliao/starsl.cn
4cd0e411acc7127ac4eb76921ce6e7a84502f977
[ "WTFPL" ]
5
2019-07-02T07:35:23.000Z
2021-12-05T19:01:36.000Z
TOOLS/add163md.py
starsliao/starsl.cn
4cd0e411acc7127ac4eb76921ce6e7a84502f977
[ "WTFPL" ]
3
2019-12-30T15:40:29.000Z
2020-06-05T21:10:13.000Z
TOOLS/add163md.py
starsliao/starsl.cn
4cd0e411acc7127ac4eb76921ce6e7a84502f977
[ "WTFPL" ]
2
2020-09-10T02:28:25.000Z
2020-09-22T02:22:45.000Z
#!/usr/bin/env python3 # -*- coding: UTF-8 -*- ''' mod 2018-9-17(for Python3) StarsL.cn ''' ''' Authorized by vlon Jang Created on Apr 10, 2016 Email:zhangzhiwei@ict.ac.cn From Institute of Computing Technology All Rights Reserved. ''' import markdown2 import MySQLdb import datetime, time import os, sys import random...
40.216
139
0.56296
6ccb628b767d04967c3060582c528c7ab2885d44
9,730
py
Python
tests/test_bladder.py
keeran97/scaffoldmaker
7b4a1c0c1fae7dac5a73811c416d22450de898ee
[ "Apache-2.0" ]
1
2020-09-21T03:44:25.000Z
2020-09-21T03:44:25.000Z
tests/test_bladder.py
keeran97/scaffoldmaker
7b4a1c0c1fae7dac5a73811c416d22450de898ee
[ "Apache-2.0" ]
null
null
null
tests/test_bladder.py
keeran97/scaffoldmaker
7b4a1c0c1fae7dac5a73811c416d22450de898ee
[ "Apache-2.0" ]
null
null
null
import copy import unittest from opencmiss.utils.zinc.finiteelement import evaluateFieldNodesetRange, findNodeWithName from opencmiss.utils.zinc.general import ChangeManager from opencmiss.zinc.context import Context from opencmiss.zinc.element import Element from opencmiss.zinc.field import Field from opencmiss.zinc.r...
53.169399
141
0.716547
6cfd6cb75c2fb447952825e95bb229e175a8847b
620
py
Python
CODES/webserver.py
PacktPublishing/Raspberry-Pi-Essentials-Learn-More-in-Less-Time
d9c2d8e2fad0160fec6e48077ba1118385796715
[ "MIT" ]
3
2020-07-29T04:10:38.000Z
2021-03-21T04:49:42.000Z
CODES/webserver.py
PacktPublishing/Raspberry-Pi-Essentials-Learn-More-in-Less-Time
d9c2d8e2fad0160fec6e48077ba1118385796715
[ "MIT" ]
null
null
null
CODES/webserver.py
PacktPublishing/Raspberry-Pi-Essentials-Learn-More-in-Less-Time
d9c2d8e2fad0160fec6e48077ba1118385796715
[ "MIT" ]
2
2020-09-20T23:27:11.000Z
2021-04-22T17:30:28.000Z
from flask import Flask #import json import RPi.GPIO as GPIO GPIO.setwarnings(False) # Ignore warning for now GPIO.setmode(GPIO.BCM) # Use physical pin numbering GPIO.setup(21, GPIO.OUT, initial=GPIO.LOW) app = Flask(__name__) @app.route("/") def hello(): return "Lets Have a Party" @app.route("/<key>") def...
22.142857
53
0.622581
bf1992d7168fab068fe500e780935d094eefc309
9,516
py
Python
src/cryptoadvance/specter/server.py
thesimplekid/specter-desktop
a26abe507766d39c48a9f1ede341f07ae76fea03
[ "MIT" ]
null
null
null
src/cryptoadvance/specter/server.py
thesimplekid/specter-desktop
a26abe507766d39c48a9f1ede341f07ae76fea03
[ "MIT" ]
null
null
null
src/cryptoadvance/specter/server.py
thesimplekid/specter-desktop
a26abe507766d39c48a9f1ede341f07ae76fea03
[ "MIT" ]
null
null
null
import logging import os import sys from pathlib import Path from cryptoadvance.specter.liquid.rpc import LiquidRPC from cryptoadvance.specter.managers.service_manager import ServiceManager from cryptoadvance.specter.rpc import BitcoinRPC from cryptoadvance.specter.services import callbacks from cryptoadvance.specter....
35.640449
88
0.673497
e9b9a52935f74aed18e3edaf82ba1206f8e20bf7
4,312
py
Python
plugins/modules/netbox_aggregate.py
loganbest/ansible_modules
09d218c5db931ce5ef344556bcc839b44120a879
[ "MIT" ]
1
2020-01-18T00:14:59.000Z
2020-01-18T00:14:59.000Z
plugins/modules/netbox_aggregate.py
FurryJulie/ansible_modules
82b6473d5e95935f134e653486d68cc6f849a479
[ "MIT" ]
null
null
null
plugins/modules/netbox_aggregate.py
FurryJulie/ansible_modules
82b6473d5e95935f134e653486d68cc6f849a479
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2019, Mikhail Yohman (@FragmentedPacket) <mikhail.yohman@gmail.com> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_MET...
27.291139
145
0.667208
9a34dbd77cfdb9a2538b8749f4f71b9e4a9f45e4
778
py
Python
python/dep.py
Sheldongg/Led3D-master
991953643486004c0c2d4590ecf488cc27db8c15
[ "MIT" ]
null
null
null
python/dep.py
Sheldongg/Led3D-master
991953643486004c0c2d4590ecf488cc27db8c15
[ "MIT" ]
null
null
null
python/dep.py
Sheldongg/Led3D-master
991953643486004c0c2d4590ecf488cc27db8c15
[ "MIT" ]
null
null
null
import math import numpy as np def rret(data,size_x,size_y): x = data[:, 0] y = data[:, 1] z = data[:, 2] x= np.array(x) max_x = max(x) min_x = min(x) max_y = max(y) min_y = min(y) min_z = min(z) max_z = max(z) range_x = max_x - min_x range_y = max_y - min_y ret = n...
24.3125
63
0.511568
78fa2a868f0ae5e32b120e8a9b95e69bcb9a0081
1,018
py
Python
pythontutor-ru/10_sets/04_occurs_before..py
ornichola/learning-new
e567218d8887805e38b1361715d5e3bd51a6bcaf
[ "Unlicense" ]
2
2019-05-24T20:10:16.000Z
2020-07-11T06:06:43.000Z
pythontutor-ru/10_sets/04_occurs_before..py
ornichola/learning-new
e567218d8887805e38b1361715d5e3bd51a6bcaf
[ "Unlicense" ]
null
null
null
pythontutor-ru/10_sets/04_occurs_before..py
ornichola/learning-new
e567218d8887805e38b1361715d5e3bd51a6bcaf
[ "Unlicense" ]
21
2019-03-11T20:25:05.000Z
2022-02-28T13:53:10.000Z
""" http://pythontutor.ru/lessons/sets/problems/occurs_before/ Во входной строке записана последовательность чисел через пробел. Для каждого числа выведите слово YES (в отдельной строке), если это число ранее встречалось в последовательности или NO, если не встречалось. """ lst = [int(i) for i in input().split()] st =...
24.829268
82
0.59332
ae0944f82e601672282937630728f3be202e5267
5,321
py
Python
gfpgan/utils.py
Tiamat-Tech/GFPGAN
0ff1cf72152b9ecb92d1cecb9d0c7ab98d25d4f3
[ "BSD-3-Clause" ]
1
2021-11-25T22:43:28.000Z
2021-11-25T22:43:28.000Z
gfpgan/utils.py
Tiamat-Tech/GFPGAN
0ff1cf72152b9ecb92d1cecb9d0c7ab98d25d4f3
[ "BSD-3-Clause" ]
null
null
null
gfpgan/utils.py
Tiamat-Tech/GFPGAN
0ff1cf72152b9ecb92d1cecb9d0c7ab98d25d4f3
[ "BSD-3-Clause" ]
null
null
null
import cv2 import os import torch from basicsr.utils import img2tensor, tensor2img from facexlib.utils.face_restoration_helper import FaceRestoreHelper from torch.hub import download_url_to_file, get_dir from torchvision.transforms.functional import normalize from urllib.parse import urlparse from gfpgan.archs.gfpganv...
39.125
118
0.630521
cd1326fd12517b2759655f22093c4baccfc26c9e
1,354
py
Python
api/researches/urls.py
VoprosiKira/l2
49f3624b4b2d25329a8e3aa166b03735cf759c37
[ "MIT" ]
10
2018-03-14T06:17:06.000Z
2022-03-10T05:33:34.000Z
api/researches/urls.py
VoprosiKira/l2
49f3624b4b2d25329a8e3aa166b03735cf759c37
[ "MIT" ]
512
2018-09-10T07:37:34.000Z
2022-03-30T02:23:43.000Z
api/researches/urls.py
D00dleman/l2
0870144537ee340cd8db053a608d731e186f02fb
[ "MIT" ]
24
2018-07-31T05:52:12.000Z
2022-02-08T00:39:41.000Z
from django.urls import path from . import views urlpatterns = [ path('templates', views.get_researches_templates), path('all', views.get_researches), path('by-department', views.researches_by_department), path('params', views.researches_params), path('update', views.researches_update), path('d...
46.689655
69
0.746677
86c7e11dbd18627d069262582919013a14005a46
8,603
py
Python
terminusdb_client/woqldataframe/woqlDataframe.py
KarenImmanuel/terminusdb-client-python
b96212dbe5c72a0d6ffefdcc6994b2078c05b31d
[ "Apache-2.0" ]
1
2020-10-05T15:41:22.000Z
2020-10-05T15:41:22.000Z
terminusdb_client/woqldataframe/woqlDataframe.py
KarenImmanuel/terminusdb-client-python
b96212dbe5c72a0d6ffefdcc6994b2078c05b31d
[ "Apache-2.0" ]
null
null
null
terminusdb_client/woqldataframe/woqlDataframe.py
KarenImmanuel/terminusdb-client-python
b96212dbe5c72a0d6ffefdcc6994b2078c05b31d
[ "Apache-2.0" ]
null
null
null
# woqlDataframe.py import warnings try: import numpy as np import pandas as pd except ImportError: msg = ( "woqlDataframe requirements are not installed.\n\n" "If you want to use woqlDataframe, please pip install as follows:\n\n" " python -m pip install -U terminus-client-python[d...
28.581395
156
0.600488
d61e9f06b62449ffd1f2bd07c31a2df3b11e3984
5,176
py
Python
rap/__init__.py
lemon24/rap
3d495f41d0d0e05a562d4dc614a97d9369dcfef2
[ "BSD-3-Clause" ]
1
2016-10-07T22:59:18.000Z
2016-10-07T22:59:18.000Z
rap/__init__.py
lemon24/rap
3d495f41d0d0e05a562d4dc614a97d9369dcfef2
[ "BSD-3-Clause" ]
null
null
null
rap/__init__.py
lemon24/rap
3d495f41d0d0e05a562d4dc614a97d9369dcfef2
[ "BSD-3-Clause" ]
null
null
null
__version__ = '0.1dev' import argparse import string import re from rap.processing_unit import ProcessingUnit from rap.program import Program, ProgramError input_pair_regex = re.compile("^\s*([a-zA-Z0-9]+)\s*:\s*([0-9]+)\s*$") def parse_input(string, sep=',', pair_regex=input_pair_regex): registers = {} f...
30.269006
82
0.596986
d1eec2b158337d793e100ebeb28881b913003982
809
py
Python
venv/Scripts/rst2odt.py
Kiiwi/Syssel
83705e3fd0edf40f09df950d5ce91c95586573f5
[ "BSD-3-Clause" ]
null
null
null
venv/Scripts/rst2odt.py
Kiiwi/Syssel
83705e3fd0edf40f09df950d5ce91c95586573f5
[ "BSD-3-Clause" ]
null
null
null
venv/Scripts/rst2odt.py
Kiiwi/Syssel
83705e3fd0edf40f09df950d5ce91c95586573f5
[ "BSD-3-Clause" ]
null
null
null
#!c:\Users\Tommy\PycharmProjects\syssel\venv\Scripts\python.exe # $Id: rst2odt.py 5839 2009-01-07 19:09:28Z dkuhlman $ # Author: Dave Kuhlman <dkuhlman@rexx.com> # Copyright: This module has been placed in the public domain. """ A front end to the Docutils Publisher, producing OpenOffice documents. """ import sys tr...
26.096774
78
0.756489
a86433f22d1353f12743fd1fe98ef4f22932c6bc
13,963
py
Python
unit_tests/view_modify_land_charge/test_modify_land_charge.py
LandRegistry/maintain-frontend
d92446a9972ebbcd9a43a7a7444a528aa2f30bf7
[ "MIT" ]
1
2019-10-03T13:58:29.000Z
2019-10-03T13:58:29.000Z
unit_tests/view_modify_land_charge/test_modify_land_charge.py
LandRegistry/maintain-frontend
d92446a9972ebbcd9a43a7a7444a528aa2f30bf7
[ "MIT" ]
null
null
null
unit_tests/view_modify_land_charge/test_modify_land_charge.py
LandRegistry/maintain-frontend
d92446a9972ebbcd9a43a7a7444a528aa2f30bf7
[ "MIT" ]
1
2021-04-11T05:24:57.000Z
2021-04-11T05:24:57.000Z
from maintain_frontend import main from flask_testing import TestCase from unit_tests.utilities import Utilities from unittest.mock import patch, MagicMock, call from flask import url_for from maintain_frontend.dependencies.session_api.session import Session from maintain_frontend.models import LocalLandChargeItem from...
52.492481
118
0.734083
1b069a8b92701cc32a2d949982ef27eaeb8ba919
1,187
py
Python
tests/test_110_stores_reference.py
SD2E/python-datacatalog
51ab366639505fb6e8a14cd6b446de37080cd20d
[ "CNRI-Python" ]
null
null
null
tests/test_110_stores_reference.py
SD2E/python-datacatalog
51ab366639505fb6e8a14cd6b446de37080cd20d
[ "CNRI-Python" ]
2
2019-07-25T15:39:04.000Z
2019-10-21T15:31:46.000Z
tests/test_110_stores_reference.py
SD2E/python-datacatalog
51ab366639505fb6e8a14cd6b446de37080cd20d
[ "CNRI-Python" ]
1
2019-10-15T14:33:44.000Z
2019-10-15T14:33:44.000Z
import os import pytest import json HERE = os.path.dirname(os.path.abspath(__file__)) PARENT = os.path.dirname(HERE) from datacatalog.linkedstores.reference import ReferenceStore from .data import reference def test_refs_db_init(mongodb_settings): base = ReferenceStore(mongodb_settings) assert base is not No...
32.081081
75
0.753159
188ffe121592358ad35b547b658b29c382242c08
3,804
py
Python
tools/compress_net.py
CEREMA/fast-rcnn
b612190f279da3c11dd8b1396dd5e72779f8e463
[ "MIT" ]
3,600
2015-05-01T00:59:34.000Z
2022-03-30T01:35:31.000Z
tools/compress_net.py
CEREMA/fast-rcnn
b612190f279da3c11dd8b1396dd5e72779f8e463
[ "MIT" ]
180
2015-05-01T11:17:25.000Z
2021-07-02T08:12:05.000Z
tools/compress_net.py
CEREMA/fast-rcnn
b612190f279da3c11dd8b1396dd5e72779f8e463
[ "MIT" ]
1,803
2015-05-01T02:19:07.000Z
2022-03-23T06:35:00.000Z
#!/usr/bin/env python # -------------------------------------------------------- # Fast R-CNN # Copyright (c) 2015 Microsoft # Licensed under The MIT License [see LICENSE for details] # Written by Ross Girshick # -------------------------------------------------------- """Compress a Fast R-CNN network using truncated...
30.677419
81
0.583333
05f4e4488cef7bd98fa09c302d8a2efb9740ba55
19,815
py
Python
core/controllers/contributor_dashboard.py
siddharthmehta02/oppia
973f777a6c5a8c3442846bda839e63856dfddf72
[ "Apache-2.0" ]
4
2021-09-16T16:46:53.000Z
2022-02-06T13:00:14.000Z
core/controllers/contributor_dashboard.py
siddharthmehta02/oppia
973f777a6c5a8c3442846bda839e63856dfddf72
[ "Apache-2.0" ]
80
2020-10-31T09:14:46.000Z
2021-01-12T23:38:15.000Z
core/controllers/contributor_dashboard.py
siddharthmehta02/oppia
973f777a6c5a8c3442846bda839e63856dfddf72
[ "Apache-2.0" ]
1
2020-10-02T13:28:26.000Z
2020-10-02T13:28:26.000Z
# Copyright 2019 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 required by applicable ...
39.869215
80
0.621802
251e852b73cbaa87fd38a225b1513a4d878f27f3
9,721
py
Python
tests_classla/test_slovenian_pipeline.py
lkrsnik/classla-stanfordnlp
1ab8771aadfbc648cec51b4c6716797f698e67ff
[ "Apache-2.0" ]
1
2020-07-04T21:06:20.000Z
2020-07-04T21:06:20.000Z
tests_classla/test_slovenian_pipeline.py
lkrsnik/classla-stanfordnlp
1ab8771aadfbc648cec51b4c6716797f698e67ff
[ "Apache-2.0" ]
null
null
null
tests_classla/test_slovenian_pipeline.py
lkrsnik/classla-stanfordnlp
1ab8771aadfbc648cec51b4c6716797f698e67ff
[ "Apache-2.0" ]
null
null
null
""" Basic testing of the English pipeline """ import pytest import classla from tests import * # data for testing SL_DOC = "France Prešeren je bil rojen v Vrbi. Danes je poznan kot največji slovenski pesnik. Študiral je na Dunaju." SL_DOC_TOKENS_GOLD = """ <Token index=1;words=[<Word index=1;text=France;lemma=Fran...
63.535948
198
0.766485
bfe351fda92f9ab5dd8b2c37c45e8276a3754aee
16,451
py
Python
src/guidelines/ten_percent_rule.py
noemiefedon/BELLA
ca86e5cd6f593478235c64aa4d0409b0e78dbcbb
[ "MIT" ]
null
null
null
src/guidelines/ten_percent_rule.py
noemiefedon/BELLA
ca86e5cd6f593478235c64aa4d0409b0e78dbcbb
[ "MIT" ]
null
null
null
src/guidelines/ten_percent_rule.py
noemiefedon/BELLA
ca86e5cd6f593478235c64aa4d0409b0e78dbcbb
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Application of the 10% rule for the design of a laminate - display_ply_counts displays the ply counts in each fibre direction for a laminate lay-up - is_ten_percent_rule returns True for a panel stacking sequence satisfying the 10% rule, False otherwise - calc_penal...
41.860051
637
0.586104
5c605c32966e5ca4ee8eaea0193e3c3004674196
1,014
py
Python
data/create_h5.py
li-js/pytorch-deeplab-resnet
a7f67442c923c3412d210041009a0d6298368aec
[ "MIT" ]
663
2017-04-25T04:59:10.000Z
2022-03-18T08:17:05.000Z
data/create_h5.py
li-js/pytorch-deeplab-resnet
a7f67442c923c3412d210041009a0d6298368aec
[ "MIT" ]
47
2017-05-14T08:50:53.000Z
2021-11-25T17:24:42.000Z
data/create_h5.py
li-js/pytorch-deeplab-resnet
a7f67442c923c3412d210041009a0d6298368aec
[ "MIT" ]
162
2017-04-29T16:42:20.000Z
2022-03-18T08:17:04.000Z
""" This file is used to create the hdf5 file (cat.h5) which is used by convert_deeplab_resnet.py and init_net_surgery.py """ import cv2 import h5py, os import numpy as np def preprocess(out): #"""Changes RGB [0,1] valued image to BGR [0,255] with mean subtracted.""" #out = np.copy(img) * 255.0 out = out[:,...
29.823529
117
0.66568
8ad814581fbb5d8dab7cff8c8fea230eb4c077dc
10,549
py
Python
sdk/python/pulumi_azure/devtest/schedule.py
davidobrien1985/pulumi-azure
811beeea473bd798d77354521266a87a2fac5888
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure/devtest/schedule.py
davidobrien1985/pulumi-azure
811beeea473bd798d77354521266a87a2fac5888
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure/devtest/schedule.py
davidobrien1985/pulumi-azure
811beeea473bd798d77354521266a87a2fac5888
[ "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 json import warnings import pulumi import pulumi.runtime from typing import Union from .. import utilities, tables class Schedu...
55.230366
324
0.685657
e7460c0aed40278ecc869ba16eefd2cda2893dba
11,450
py
Python
tests/functional/dashboard/test_catalogue.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
tests/functional/dashboard/test_catalogue.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
tests/functional/dashboard/test_catalogue.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
from django.core.urlresolvers import reverse from django.utils.six.moves import http_client from oscar.core.loading import get_model from oscar.test.testcases import WebTestCase, add_permissions from oscar.test.factories import create_product from oscar.test.factories import ( CategoryFactory, PartnerFactor...
40.892857
80
0.631878
515dc4b620d52d7d26a7c6fe0c2c182c75de1890
7,235
py
Python
Code/src/utils/utils.py
antoine-spahr/Contrastive-Deep-Semi-Supervised-Anomaly-Detection
e84c28ce4dd28671d39752a7d21c674e05fcb495
[ "MIT" ]
8
2021-02-19T17:30:00.000Z
2022-02-21T05:55:06.000Z
Code/src/utils/utils.py
antoine-spahr/Contrastive-Deep-Semi-Supervised-Anomaly-Detection
e84c28ce4dd28671d39752a7d21c674e05fcb495
[ "MIT" ]
1
2021-05-03T14:04:53.000Z
2021-05-03T14:48:01.000Z
Code/src/utils/utils.py
antoine-spahr/Contrastive-Deep-Semi-Supervised-Anomaly-Detection
e84c28ce4dd28671d39752a7d21c674e05fcb495
[ "MIT" ]
5
2021-02-18T22:43:40.000Z
2021-05-03T14:01:49.000Z
from prettytable import PrettyTable import torch import torch.nn as nn from torch.autograd import Variable from collections import OrderedDict import numpy as np import warnings import os def print_progessbar(N, Max, Name='', Size=10, end_char='', erase=False): """ Print a progress bar. To be used in a for-l...
39.320652
109
0.545266
1a8b7be91712ded6664625f5cf2959b4a39790a7
44,240
py
Python
ambari-server/src/test/python/stacks/2.6/ZEPPELIN/interpreter_json_generated.py
likenamehaojie/Apache-Ambari-ZH
5973025bd694cdbb4b49fb4c4e0d774782811ff6
[ "Apache-2.0" ]
25
2019-12-04T03:09:55.000Z
2022-03-08T10:52:06.000Z
ambari-server/src/test/python/stacks/2.6/ZEPPELIN/interpreter_json_generated.py
likenamehaojie/Apache-Ambari-ZH
5973025bd694cdbb4b49fb4c4e0d774782811ff6
[ "Apache-2.0" ]
29
2019-12-04T03:00:39.000Z
2022-03-02T06:25:44.000Z
ambari-server/src/test/python/stacks/2.6/ZEPPELIN/interpreter_json_generated.py
likenamehaojie/Apache-Ambari-ZH
5973025bd694cdbb4b49fb4c4e0d774782811ff6
[ "Apache-2.0" ]
33
2019-12-04T02:51:30.000Z
2022-03-24T02:47:38.000Z
#!/usr/bin/env python """ 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");...
1,638.518519
15,625
0.503097
56b289e39420b6b8271d68ac25a159079b1d4f6b
4,368
py
Python
monai/networks/blocks/warp.py
RobinCamarasa/MONAI
8207e1e2a3555ddc3fe938e058552651900dc951
[ "Apache-2.0" ]
null
null
null
monai/networks/blocks/warp.py
RobinCamarasa/MONAI
8207e1e2a3555ddc3fe938e058552651900dc951
[ "Apache-2.0" ]
null
null
null
monai/networks/blocks/warp.py
RobinCamarasa/MONAI
8207e1e2a3555ddc3fe938e058552651900dc951
[ "Apache-2.0" ]
null
null
null
from typing import List, Optional, Union import torch from torch import nn from torch.nn import functional as F from monai.config import USE_COMPILED from monai.networks.layers import grid_pull from monai.utils import GridSampleMode, GridSamplePadMode class Warp(nn.Module): """ Warp an image with given DDF....
42
113
0.581044
96d3bf05a0fef659fb188d23d4f8b47c7643794f
1,498
py
Python
projects/flow.sklearn.init-ParameterGrid/project.py
CryoZEUS/signac-examples
1aaa9f71a969209f1661793a4fe19f0566e320b7
[ "BSD-3-Clause" ]
null
null
null
projects/flow.sklearn.init-ParameterGrid/project.py
CryoZEUS/signac-examples
1aaa9f71a969209f1661793a4fe19f0566e320b7
[ "BSD-3-Clause" ]
null
null
null
projects/flow.sklearn.init-ParameterGrid/project.py
CryoZEUS/signac-examples
1aaa9f71a969209f1661793a4fe19f0566e320b7
[ "BSD-3-Clause" ]
null
null
null
from flow import FlowProject import joblib import signac project = signac.get_project() class Project(FlowProject): pass @Project.operation @Project.pre.isfile("estimator.joblib") @Project.post.isfile("estimator_fit.joblib") def fit_estimator(job): estimator = joblib.load(job.fn("estimator.joblib")) ...
26.280702
94
0.700267
3b78ae0057b2a91659cb329f82f48b5269692a1e
2,745
py
Python
EMBRACE/EMBRACE_Synop_LatLon_Mean_MSLP_DateTime_Range.py
peterwilletts24/Python-Scripts
975d6b2e2923cbde40d2760eb9574acee2e10388
[ "MIT" ]
4
2017-05-24T09:14:14.000Z
2019-01-02T19:20:38.000Z
EMBRACE/EMBRACE_Synop_LatLon_Mean_MSLP_DateTime_Range.py
peterwilletts24/Python-Scripts
975d6b2e2923cbde40d2760eb9574acee2e10388
[ "MIT" ]
null
null
null
EMBRACE/EMBRACE_Synop_LatLon_Mean_MSLP_DateTime_Range.py
peterwilletts24/Python-Scripts
975d6b2e2923cbde40d2760eb9574acee2e10388
[ "MIT" ]
3
2017-05-24T09:14:15.000Z
2020-09-28T08:32:02.000Z
experiment_ids = ['dklyu'] experiment_ids = ['dklyu', 'dkmbq', 'djzny', 'djznq', 'djzns', 'dkjxq', 'dklwu', 'dklzq', 'dkbhu' ] # All 12 #station_list=['Calcutta / Dum Dum', 'Port Blair', 'Nagpur Sonegaon'] #station_list=['Port Blair', 'Nagpur Sonegaon'] #station_list=['Calcutta / Dum Dum', 'Gorakhpur'] station_list=[...
38.125
119
0.654645
b4fd0a62cfcead892220260fec36da626fb9cfd8
7,211
py
Python
image_embedding2.py
RuiLiFeng/noise
545c049fbafa8b4edad09286cf631b4c8fb6a251
[ "BSD-Source-Code" ]
null
null
null
image_embedding2.py
RuiLiFeng/noise
545c049fbafa8b4edad09286cf631b4c8fb6a251
[ "BSD-Source-Code" ]
null
null
null
image_embedding2.py
RuiLiFeng/noise
545c049fbafa8b4edad09286cf631b4c8fb6a251
[ "BSD-Source-Code" ]
null
null
null
import tensorflow as tf import argparse import numpy as np import PIL.Image import dnnlib import dnnlib.tflib as tflib from training import misc import os import re import sys import pretrained_networks def read_image(img): I = PIL.Image.open(img) I = I.convert('RGB') I = (np.array(I, np.float32) / 255....
42.668639
120
0.599917
3823ef3dd1eb78508c83992bd6fb222c7149ef86
6,688
py
Python
irv.py
parrottq/instant-runoff-voting
7a7272c6bc1436475c60ee8d76d99efc5c473a5e
[ "MIT" ]
null
null
null
irv.py
parrottq/instant-runoff-voting
7a7272c6bc1436475c60ee8d76d99efc5c473a5e
[ "MIT" ]
null
null
null
irv.py
parrottq/instant-runoff-voting
7a7272c6bc1436475c60ee8d76d99efc5c473a5e
[ "MIT" ]
1
2019-02-06T19:00:53.000Z
2019-02-06T19:00:53.000Z
from csv import reader as csvreader def colume_seperator(colume_select, colume_names, contents): for content in contents: data = {} for name, value in zip(colume_names, content): if name in colume_select: data[name] = value yield data def format_ballot(ballot)...
30.678899
122
0.585526
c5cdb5ab55a0017b948a763ead00089556ca83e1
713
py
Python
pygeos/enum.py
caibengbu/pygeos
9666fcf6a26cab34bca17d9515b717af8535169e
[ "BSD-3-Clause" ]
292
2019-10-13T21:36:43.000Z
2022-03-17T21:15:41.000Z
pygeos/enum.py
caibengbu/pygeos
9666fcf6a26cab34bca17d9515b717af8535169e
[ "BSD-3-Clause" ]
350
2019-10-13T12:04:13.000Z
2022-03-28T15:37:03.000Z
pygeos/enum.py
caibengbu/pygeos
9666fcf6a26cab34bca17d9515b717af8535169e
[ "BSD-3-Clause" ]
35
2019-10-12T13:34:49.000Z
2022-02-22T19:22:21.000Z
from enum import IntEnum class ParamEnum(IntEnum): """Wraps IntEnum to provide validation of a requested item. Intended for enums used for function parameters. Use enum.get_value(item) for this behavior instead of builtin enum[item]. """ @classmethod def get_value(cls, item): """Val...
29.708333
94
0.586255
d790f893613317112b6e0ba74ae28f9ccfb26696
16,827
py
Python
server/bin/dbadmin.py
frdfsnlght/Barbot
7701bbf77711f230a87f1d57371025a45511fa59
[ "MIT" ]
null
null
null
server/bin/dbadmin.py
frdfsnlght/Barbot
7701bbf77711f230a87f1d57371025a45511fa59
[ "MIT" ]
null
null
null
server/bin/dbadmin.py
frdfsnlght/Barbot
7701bbf77711f230a87f1d57371025a45511fa59
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import sys, os, argparse, yaml, re sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) import barbot.config config = barbot.config.load() import barbot.units barbot.units.load() import barbot.settings barbot.settings.load() from barbot.db import db, initializeDB, Model...
39.686321
153
0.546859
a3f7c82e45c76dfc20bd5e2a98ed0a5a29947de5
10,342
py
Python
electrumx/lib/util.py
c4pt000/electrumx
918efa0ced96e0d64dad91a2c9abe1457a6facdf
[ "MIT" ]
754
2016-10-15T05:25:26.000Z
2022-03-27T15:27:35.000Z
electrumx/lib/util.py
c4pt000/electrumx
918efa0ced96e0d64dad91a2c9abe1457a6facdf
[ "MIT" ]
982
2016-10-30T22:46:35.000Z
2022-03-05T18:34:04.000Z
electrumx/lib/util.py
c4pt000/electrumx
918efa0ced96e0d64dad91a2c9abe1457a6facdf
[ "MIT" ]
958
2016-10-15T05:25:47.000Z
2022-03-27T21:30:11.000Z
# Copyright (c) 2016-2017, Neil Booth # # All rights reserved. # # The MIT License (MIT) # # 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 ...
29.718391
77
0.650745
fb4350a19d83d5612b6d5c6b64e5f971632f2aac
23,025
py
Python
ndcube/extra_coords/table_coord.py
hayesla/ndcube
fb810fe9ad62e69125f78e153711c0a07d7bd9b8
[ "BSD-2-Clause", "BSD-3-Clause" ]
31
2017-09-23T06:08:39.000Z
2021-12-09T18:53:37.000Z
ndcube/extra_coords/table_coord.py
hayesla/ndcube
fb810fe9ad62e69125f78e153711c0a07d7bd9b8
[ "BSD-2-Clause", "BSD-3-Clause" ]
420
2017-08-15T17:58:33.000Z
2022-03-29T16:01:59.000Z
ndcube/extra_coords/table_coord.py
hayesla/ndcube
fb810fe9ad62e69125f78e153711c0a07d7bd9b8
[ "BSD-2-Clause", "BSD-3-Clause" ]
42
2017-08-15T17:37:42.000Z
2021-12-09T18:31:30.000Z
import abc import copy from numbers import Integral from collections import defaultdict import astropy.units as u import gwcs import gwcs.coordinate_frames as cf import numpy as np from astropy.coordinates import SkyCoord from astropy.modeling import models from astropy.modeling.models import tabular_model from astrop...
37.561175
126
0.633876
3dce2740e26865b978dd1dcb286318acac0816dc
975
py
Python
forum/forms/topic.py
michaelyou/One-piece-forum
3adc6aa9c195a653dce8bc2142cb3d017d85451a
[ "MIT" ]
1
2017-09-07T07:20:51.000Z
2017-09-07T07:20:51.000Z
forum/forms/topic.py
michaelyou/One-piece-forum
3adc6aa9c195a653dce8bc2142cb3d017d85451a
[ "MIT" ]
null
null
null
forum/forms/topic.py
michaelyou/One-piece-forum
3adc6aa9c195a653dce8bc2142cb3d017d85451a
[ "MIT" ]
null
null
null
# coding: utf-8 from django import forms ''' The error_messages argument lets you override the default messages that the field will raise. Pass in a dictionary with keys matching the error messages you want to override. ''' ''' By default, each Field class assumes the value is required, so if you pass an empty value ...
30.46875
93
0.66359
e41e42c93fa0625ad0f90ba3cec1abe70b762aa7
22,011
py
Python
sherlock.py
knijam/sherlock
011df7af55b2d65bdaff15cf9f7562893c089ebd
[ "MIT" ]
null
null
null
sherlock.py
knijam/sherlock
011df7af55b2d65bdaff15cf9f7562893c089ebd
[ "MIT" ]
null
null
null
sherlock.py
knijam/sherlock
011df7af55b2d65bdaff15cf9f7562893c089ebd
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 """ Sherlock: Find Usernames Across Social Networks Module This module contains the main logic to search for usernames at social networks. """ import csv import json import os import platform import re import sys from argparse import ArgumentParser, RawDescriptionHelpFormatter from concurrent...
41.451977
163
0.561083
f86a7b9a7b2702d59fe335f9c22a0b1db8bcad5e
4,497
py
Python
swingers/admin/admin.py
jawaidm/pbs
87f5c535c976d6a5eccbfbbf2073589b6e366d04
[ "Apache-2.0" ]
null
null
null
swingers/admin/admin.py
jawaidm/pbs
87f5c535c976d6a5eccbfbbf2073589b6e366d04
[ "Apache-2.0" ]
12
2019-10-22T23:16:38.000Z
2022-03-11T23:17:45.000Z
swingers/admin/admin.py
jawaidm/pbs
87f5c535c976d6a5eccbfbbf2073589b6e366d04
[ "Apache-2.0" ]
5
2019-12-19T06:18:42.000Z
2022-01-07T01:16:18.000Z
from __future__ import absolute_import, unicode_literals from functools import update_wrapper from django.contrib.admin import ModelAdmin from django.contrib.admin.util import unquote from django.core.exceptions import PermissionDenied from django.http import Http404 from django.template.response import TemplateRespo...
35.132813
78
0.577941
5da828355dd92057675ca76474ee47fec6341c49
14,063
py
Python
onmt/translate/translator_ms.py
biomed-AI/PROTAC-RL
d682c0d517a2ff8362e5a4a67bb297773daaf5bf
[ "MIT" ]
1
2022-02-15T00:54:34.000Z
2022-02-15T00:54:34.000Z
onmt/translate/translator_ms.py
TanYoh/PROTAC-RL
a8074af6afa478404a3a04da878eb0704e3ec984
[ "MIT" ]
null
null
null
onmt/translate/translator_ms.py
TanYoh/PROTAC-RL
a8074af6afa478404a3a04da878eb0704e3ec984
[ "MIT" ]
null
null
null
""" This is the loadable seq2seq trainer library that is in charge of training details, loss compute, and statistics. See train.py for a use case of this library. Note: To make this a general library, we implement *only* mechanism things here(i.e. what to do), and leave the strategy ...
38.318801
91
0.546967
e07ed33ef1dfe1d621a2e99899f4b9aed258c383
7,165
py
Python
spirit/comment/history/tests.py
timonweb-forks/Spirit
5d5548582d6835d9c060f6759421111efa440e10
[ "MIT" ]
1
2020-12-08T01:09:30.000Z
2020-12-08T01:09:30.000Z
spirit/comment/history/tests.py
timonweb-forks/Spirit
5d5548582d6835d9c060f6759421111efa440e10
[ "MIT" ]
1
2018-03-26T07:11:52.000Z
2018-03-26T07:11:52.000Z
spirit/comment/history/tests.py
timonweb-forks/Spirit
5d5548582d6835d9c060f6759421111efa440e10
[ "MIT" ]
6
2018-06-25T02:17:53.000Z
2020-12-08T01:09:32.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from datetime import timedelta from django.test import TestCase from django.core.urlresolvers import reverse from djconfig.utils import override_djconfig from ...core.tests import utils from .models import CommentHistory from . import models class Co...
42.904192
113
0.697976
7ebe5e86a41dac0729dcdb84dbb9b4dd046b9291
4,654
py
Python
tests/regressiontests/delete_regress/tests.py
t11e/django
447f5375d378dba3bac1ded0306fa0d1b8ab55a4
[ "BSD-3-Clause" ]
1
2016-05-08T13:32:33.000Z
2016-05-08T13:32:33.000Z
tests/regressiontests/delete_regress/tests.py
t11e/django
447f5375d378dba3bac1ded0306fa0d1b8ab55a4
[ "BSD-3-Clause" ]
null
null
null
tests/regressiontests/delete_regress/tests.py
t11e/django
447f5375d378dba3bac1ded0306fa0d1b8ab55a4
[ "BSD-3-Clause" ]
null
null
null
import datetime from django.conf import settings from django.db import backend, connection, transaction, DEFAULT_DB_ALIAS from django.test import TestCase, TransactionTestCase from models import Book, Award, AwardNote, Person, Child, Toy, PlayedWith, PlayedWithNote # Can't run this test under SQLite, because you can...
42.697248
106
0.6315
5d07bd3fbce5f28367bf6931581c5aa4a102e987
12,369
py
Python
Fujitsu/benchmarks/resnet/implementations/implementation_open/mxnet/3rdparty/tvm/python/tvm/autotvm/graph_tuner/utils/traverse_graph.py
goswamig/training_results_v0.7
4278ce8a0f3d4db6b5e6054277724ca36278d7a3
[ "Apache-2.0" ]
48
2020-07-29T18:09:23.000Z
2021-10-09T01:53:33.000Z
Fujitsu/benchmarks/resnet/implementations/implementation_open/mxnet/3rdparty/tvm/python/tvm/autotvm/graph_tuner/utils/traverse_graph.py
goswamig/training_results_v0.7
4278ce8a0f3d4db6b5e6054277724ca36278d7a3
[ "Apache-2.0" ]
9
2021-04-02T02:28:07.000Z
2022-03-26T18:23:59.000Z
Fujitsu/benchmarks/resnet/implementations/implementation_open/mxnet/3rdparty/tvm/python/tvm/autotvm/graph_tuner/utils/traverse_graph.py
lablup/training_results_v0.7
f5bb59aa0f8b18b602763abe47d1d24d0d54b197
[ "Apache-2.0" ]
42
2020-08-01T06:41:24.000Z
2022-01-20T10:33:08.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...
38.294118
92
0.598917
f7dca91f3644457a15a7f0fe76d651e2c2201eea
1,768
py
Python
jacket/api/compute/openstack/compute/schemas/attach_interfaces.py
bopopescu/jacket
d7ad3147fcb43131098c2a5210847634ff5fb325
[ "Apache-2.0" ]
null
null
null
jacket/api/compute/openstack/compute/schemas/attach_interfaces.py
bopopescu/jacket
d7ad3147fcb43131098c2a5210847634ff5fb325
[ "Apache-2.0" ]
null
null
null
jacket/api/compute/openstack/compute/schemas/attach_interfaces.py
bopopescu/jacket
d7ad3147fcb43131098c2a5210847634ff5fb325
[ "Apache-2.0" ]
2
2016-08-10T02:21:49.000Z
2020-07-24T01:57:21.000Z
# Copyright 2014 NEC Corporation. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required ...
37.617021
78
0.549774
3e35559bb629ca9bdcce990177007c3d0874b103
14,284
py
Python
homeassistant/components/plant/__init__.py
olbjan/home-assistant-1
1adb45f74e96fc5eff137a3727647a7e428e123c
[ "Apache-2.0" ]
7
2019-02-07T14:14:12.000Z
2019-07-28T06:56:10.000Z
homeassistant/components/plant/__init__.py
olbjan/home-assistant-1
1adb45f74e96fc5eff137a3727647a7e428e123c
[ "Apache-2.0" ]
6
2021-02-08T20:54:31.000Z
2022-03-12T00:50:43.000Z
homeassistant/components/plant/__init__.py
olbjan/home-assistant-1
1adb45f74e96fc5eff137a3727647a7e428e123c
[ "Apache-2.0" ]
1
2020-09-23T16:41:16.000Z
2020-09-23T16:41:16.000Z
"""Support for monitoring plants.""" from collections import deque from datetime import datetime, timedelta import logging import voluptuous as vol from homeassistant.components.recorder.models import States from homeassistant.components.recorder.util import execute, session_scope from homeassistant.const import ( ...
35.009804
87
0.634346
41afedb1b2baafa07bfb26237c8ee2ebdf16a4f2
13,252
py
Python
examples/key_value.py
cocagne/zpax
df51a8318a1135c180047543e4a448d608c507a3
[ "MIT" ]
26
2015-03-19T21:36:13.000Z
2021-09-02T13:19:18.000Z
examples/key_value.py
cocagne/zpax
df51a8318a1135c180047543e4a448d608c507a3
[ "MIT" ]
null
null
null
examples/key_value.py
cocagne/zpax
df51a8318a1135c180047543e4a448d608c507a3
[ "MIT" ]
4
2015-09-06T15:08:07.000Z
2018-03-19T03:45:35.000Z
''' This module implements a simple, distributed Key-Value database that uses Paxos for ensuring consistency between nodes. The goal of this module is to provide a simple and correct implementation that is useful both as an example for using zpax for distributed consensus as well as an actual, embedded database for rea...
33.634518
106
0.629339
082f37c846cc4e86b39d3fdc2649dd9533a1537f
4,507
py
Python
seventweets/app.py
sbg/seventweets
a2733ff175e8be6e34f346a9a14f7f30ab24ea74
[ "Apache-2.0" ]
2
2017-06-12T11:00:38.000Z
2018-06-21T07:54:38.000Z
seventweets/app.py
sbg/seventweets
a2733ff175e8be6e34f346a9a14f7f30ab24ea74
[ "Apache-2.0" ]
null
null
null
seventweets/app.py
sbg/seventweets
a2733ff175e8be6e34f346a9a14f7f30ab24ea74
[ "Apache-2.0" ]
null
null
null
import sys import time import click import signal import logging import datetime import traceback from flask import Flask, g, current_app from seventweets import config as configuration from seventweets.registry import unregister_all from seventweets.handlers.base import base from seventweets.handlers.tweets import twe...
28.345912
78
0.604615
fb0ca2171160cdb2c66b11fcc7918a4feadcebcf
10,033
py
Python
tests/unit/test_host_connection_pool.py
richardARPANET/python-driver
19d64f50d708bbdc8dc723befb73f3c17bf7ef53
[ "Apache-2.0" ]
null
null
null
tests/unit/test_host_connection_pool.py
richardARPANET/python-driver
19d64f50d708bbdc8dc723befb73f3c17bf7ef53
[ "Apache-2.0" ]
null
null
null
tests/unit/test_host_connection_pool.py
richardARPANET/python-driver
19d64f50d708bbdc8dc723befb73f3c17bf7ef53
[ "Apache-2.0" ]
null
null
null
# Copyright 2013-2016 DataStax, 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 or agreed to in writi...
41.288066
142
0.711253
75ed5d0c2525c65c5aca8745fe181a3dd7175a2f
2,534
py
Python
demos/demo_odometry.py
paaraujo/pykitti
41fbcdee9a8b8233ce5bee314f9087b43ed548f3
[ "MIT" ]
881
2016-04-29T04:36:33.000Z
2022-03-30T05:59:14.000Z
demos/demo_odometry.py
paaraujo/pykitti
41fbcdee9a8b8233ce5bee314f9087b43ed548f3
[ "MIT" ]
61
2016-09-13T19:08:40.000Z
2022-03-20T06:33:05.000Z
demos/demo_odometry.py
paaraujo/pykitti
41fbcdee9a8b8233ce5bee314f9087b43ed548f3
[ "MIT" ]
236
2016-09-22T02:41:59.000Z
2022-03-07T03:21:08.000Z
"""Example of pykitti.odometry usage.""" import itertools import matplotlib.pyplot as plt import numpy as np from mpl_toolkits.mplot3d import Axes3D import pykitti __author__ = "Lee Clement" __email__ = "lee.clement@robotics.utias.utoronto.ca" # Change this to the directory where you store KITTI data basedir = '/Use...
34.243243
77
0.717837
7e2887ffad558c98fb636a2c8e3abfd917bcd711
800
py
Python
tests/framework/StochasticPolyTest/polynomial.py
rinelson456/raven
1114246136a2f72969e75b5e99a11b35500d4eef
[ "Apache-2.0" ]
159
2017-03-24T21:07:06.000Z
2022-03-20T13:44:40.000Z
tests/framework/StochasticPolyTest/polynomial.py
rinelson456/raven
1114246136a2f72969e75b5e99a11b35500d4eef
[ "Apache-2.0" ]
1,667
2017-03-27T14:41:22.000Z
2022-03-31T19:50:06.000Z
tests/framework/StochasticPolyTest/polynomial.py
rinelson456/raven
1114246136a2f72969e75b5e99a11b35500d4eef
[ "Apache-2.0" ]
95
2017-03-24T21:05:03.000Z
2022-03-08T17:30:22.000Z
# Copyright 2017 Battelle Energy Alliance, LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
34.782609
74
0.73875
6c5fbca819114dc0256e39e636fceba601df0834
2,460
py
Python
opencv/sources/modules/calib3d/misc/python/test/test_solvepnp.py
vrushank-agrawal/opencv-x64-cmake
3f9486510d706c8ac579ac82f5d58f667f948124
[ "Apache-2.0" ]
null
null
null
opencv/sources/modules/calib3d/misc/python/test/test_solvepnp.py
vrushank-agrawal/opencv-x64-cmake
3f9486510d706c8ac579ac82f5d58f667f948124
[ "Apache-2.0" ]
null
null
null
opencv/sources/modules/calib3d/misc/python/test/test_solvepnp.py
vrushank-agrawal/opencv-x64-cmake
3f9486510d706c8ac579ac82f5d58f667f948124
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Python 2/3 compatibility from __future__ import print_function import numpy as np import cv2 as cv from tests_common import NewOpenCVTests class solvepnp_test(NewOpenCVTests): def test_regression_16040(self): obj_points = np.array([[0, 0, 0], [0, 1, 0], [1, 1, 0], [1,...
37.846154
152
0.543496
cdcb689eb7a69681d9a7992e97eafff51de5e274
4,442
py
Python
tests/unit/modules/test_inspect_collector.py
jubrad/salt
7960334fb726cfde45e6409da79a65535c626685
[ "Apache-2.0" ]
1
2020-01-02T09:03:21.000Z
2020-01-02T09:03:21.000Z
tests/unit/modules/test_inspect_collector.py
jubrad/salt
7960334fb726cfde45e6409da79a65535c626685
[ "Apache-2.0" ]
null
null
null
tests/unit/modules/test_inspect_collector.py
jubrad/salt
7960334fb726cfde45e6409da79a65535c626685
[ "Apache-2.0" ]
1
2020-01-02T09:03:24.000Z
2020-01-02T09:03:24.000Z
# -*- coding: utf-8 -*- # # Copyright 2016 SUSE LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
33.398496
104
0.597253
3a86a6a78fbe698840e131282bd57cb48e869a28
24,755
py
Python
main.py
kishan1823/3D-Hand-Recreation-with-Gesture-Recognition
3bc9544b4a74c0dbb738c8adeea17038f66c7817
[ "Apache-2.0" ]
null
null
null
main.py
kishan1823/3D-Hand-Recreation-with-Gesture-Recognition
3bc9544b4a74c0dbb738c8adeea17038f66c7817
[ "Apache-2.0" ]
null
null
null
main.py
kishan1823/3D-Hand-Recreation-with-Gesture-Recognition
3bc9544b4a74c0dbb738c8adeea17038f66c7817
[ "Apache-2.0" ]
2
2021-08-16T08:51:58.000Z
2021-08-19T17:34:48.000Z
import cv2 import torch from manopth import manolayer from model.detnet import detnet from model import KeyPointClassifier from utils import func, bone, AIK, smoother ,CvFpsCalc import numpy as np import matplotlib.pyplot as plt from utils import vis from op_pso import PSO import open3d import mediapipe as m...
42.607573
110
0.52959
990c68f378a70c8632ab2539ecf1a595d5d20b85
1,008
py
Python
setup.py
FNNDSC/pl-simplefsapp_moc
76dd8bb3b3c9a62e5a49e32bd9e38b2b22278fd1
[ "MIT" ]
null
null
null
setup.py
FNNDSC/pl-simplefsapp_moc
76dd8bb3b3c9a62e5a49e32bd9e38b2b22278fd1
[ "MIT" ]
null
null
null
setup.py
FNNDSC/pl-simplefsapp_moc
76dd8bb3b3c9a62e5a49e32bd9e38b2b22278fd1
[ "MIT" ]
null
null
null
import sys import os # Make sure we are running python3.5+ if 10 * sys.version_info[0] + sys.version_info[1] < 35: sys.exit("Sorry, only Python 3.5+ is supported.") from setuptools import setup def readme(): print("Current dir = %s" % os.getcwd()) print(os.listdir()) with open('README.rst') as f:...
28.8
90
0.534722
9f74cda6acc29362c7460ac793d99869c8164cff
9,586
py
Python
src/python/pants/subsystem/subsystem.py
tpasternak/pants
edf5716283d449852309fff1a10dd351dfbf3493
[ "Apache-2.0" ]
1
2021-05-05T18:58:28.000Z
2021-05-05T18:58:28.000Z
src/python/pants/subsystem/subsystem.py
tpasternak/pants
edf5716283d449852309fff1a10dd351dfbf3493
[ "Apache-2.0" ]
null
null
null
src/python/pants/subsystem/subsystem.py
tpasternak/pants
edf5716283d449852309fff1a10dd351dfbf3493
[ "Apache-2.0" ]
3
2020-06-30T08:28:13.000Z
2021-07-28T09:35:57.000Z
# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). import importlib import inspect import logging from typing import Callable, Dict, Iterable, List, Optional, Tuple, Type, TypeVar, Union, cast from pants.option.option_value_container impo...
41.141631
154
0.681723
0c2831db6e0a8d084561a491be399dcc255aeb07
552
py
Python
Codewars/8kyu/8kyu-interpreters-hq9-plus/Python/solution2.py
RevansChen/online-judge
ad1b07fee7bd3c49418becccda904e17505f3018
[ "MIT" ]
7
2017-09-20T16:40:39.000Z
2021-08-31T18:15:08.000Z
Codewars/8kyu/8kyu-interpreters-hq9-plus/Python/solution2.py
RevansChen/online-judge
ad1b07fee7bd3c49418becccda904e17505f3018
[ "MIT" ]
null
null
null
Codewars/8kyu/8kyu-interpreters-hq9-plus/Python/solution2.py
RevansChen/online-judge
ad1b07fee7bd3c49418becccda904e17505f3018
[ "MIT" ]
null
null
null
# Python - 3.6.0 gets = lambda i: 's' if i != 1 else '' getn = lambda i: f'{i if i > 0 else "no more" if i == 0 else 99} bottle{gets(i)}' getm = lambda i: 'Go to the store and buy some more' if i <= 0 else 'Take one down and pass it around' getl1 = lambda i: f'{getn(i)} of beer on the wall, {getn(i)} of beer.'.capital...
36.8
102
0.557971
cd488069edbfae7ee3d7ff8ddcf3f1c31d3762f9
2,266
py
Python
awsPy/aws_authorization/aws_connector.py
thomaspernet/aws-python
40281e5c0a84f6b439a1fa21dcfda5039e3e1788
[ "MIT" ]
null
null
null
awsPy/aws_authorization/aws_connector.py
thomaspernet/aws-python
40281e5c0a84f6b439a1fa21dcfda5039e3e1788
[ "MIT" ]
null
null
null
awsPy/aws_authorization/aws_connector.py
thomaspernet/aws-python
40281e5c0a84f6b439a1fa21dcfda5039e3e1788
[ "MIT" ]
1
2020-04-08T12:15:05.000Z
2020-04-08T12:15:05.000Z
import pandas as pd import os, boto3, json class aws_instantiate(): def __init__(self, credential, region): self.credential = credential self.region= region #### LOAD CREDENTIAL def load_credential(self): """ """ if type(self.credential) is not list: filenam...
29.051282
95
0.466461
076791ef0cf16002c25c24fa6ea9b9be9b9fb12a
1,251
py
Python
FADML/model.py
Akashcba/VSCode
5eb4b737e6e775e7415c8baa4ff2d7e94fa8dceb
[ "MIT" ]
null
null
null
FADML/model.py
Akashcba/VSCode
5eb4b737e6e775e7415c8baa4ff2d7e94fa8dceb
[ "MIT" ]
null
null
null
FADML/model.py
Akashcba/VSCode
5eb4b737e6e775e7415c8baa4ff2d7e94fa8dceb
[ "MIT" ]
null
null
null
from __future__ import print_function import argparse import torch import torch.nn as nn from torch.nn import Linear, ReLU, Sequential, Conv2d, MaxPool2d import torch.nn.functional as F import torch.optim as optim import matplotlib.pyplot as plt from torchvision import datasets, transforms from torch.optim.lr_scheduler...
26.617021
64
0.604317
6cd76f9ca3c014d5ab7d25c8abd9950e6b11a470
9,585
py
Python
localstack/services/install.py
varju/localstack
6a2a26fbc5043f30e76b92456643339f6abf034d
[ "Apache-2.0" ]
4
2019-01-12T22:48:24.000Z
2019-12-10T06:56:17.000Z
localstack/services/install.py
varju/localstack
6a2a26fbc5043f30e76b92456643339f6abf034d
[ "Apache-2.0" ]
null
null
null
localstack/services/install.py
varju/localstack
6a2a26fbc5043f30e76b92456643339f6abf034d
[ "Apache-2.0" ]
6
2019-07-10T10:27:54.000Z
2021-04-08T09:59:54.000Z
#!/usr/bin/env python import re import os import sys import glob import shutil import logging import tempfile from localstack.utils import bootstrap from localstack.constants import (DEFAULT_SERVICE_PORTS, ELASTICMQ_JAR_URL, STS_JAR_URL, ELASTICSEARCH_JAR_URL, ELASTICSEARCH_PLUGIN_LIST, ELASTICSEARCH_DELETE_MODULE...
39.282787
109
0.692227
24aee057c007b098b72dadbf2783d6e787476a3c
6,664
py
Python
model/res2next.py
Ta1ly/XunFei_Detector
7824ac324d68040d24c0b3c2ae6bd4b75f6f2c95
[ "MIT" ]
1
2021-12-28T12:56:42.000Z
2021-12-28T12:56:42.000Z
model/res2next.py
Ta1ly/XunFei_Detector
7824ac324d68040d24c0b3c2ae6bd4b75f6f2c95
[ "MIT" ]
null
null
null
model/res2next.py
Ta1ly/XunFei_Detector
7824ac324d68040d24c0b3c2ae6bd4b75f6f2c95
[ "MIT" ]
null
null
null
from __future__ import division import math import torch.nn as nn import torch.nn.functional as F from torch.nn import init import torch import torch.utils.model_zoo as model_zoo __all__ = ['res2next50'] model_urls = { 'res2next50': 'https://shanghuagao.oss-cn-beijing.aliyuncs.com/res2net/res2next50_4s-6ef7e7bf.pt...
35.073684
138
0.585984
0598b831011358926deef05086418094683455dc
884
py
Python
linux/stata-exec.py
arlionn/stata-exec
997a36cccb0afeb35ebd52da8c467b91cc1af5f9
[ "MIT" ]
null
null
null
linux/stata-exec.py
arlionn/stata-exec
997a36cccb0afeb35ebd52da8c467b91cc1af5f9
[ "MIT" ]
null
null
null
linux/stata-exec.py
arlionn/stata-exec
997a36cccb0afeb35ebd52da8c467b91cc1af5f9
[ "MIT" ]
1
2021-01-10T22:38:21.000Z
2021-01-10T22:38:21.000Z
# Enter script code import time from os.path import expanduser, join shortdelay = 0.2 current = window.get_active_title() with open(join(expanduser('~'), '.stata-exec_code'), 'r') as f: cmd = f.read() block_size = 100 cmd_blocks = [cmd[i:i + block_size] for i in range(0, len(cmd), block_size)] window.activate("S...
23.263158
76
0.652715
b3539059cb4706ea0e6e496be0eacd4c51a7bc03
1,074
py
Python
resolwe/flow/models/migrations.py
gregorjerse/resolwe
3f9e4c56e5302266576d3e0574ba7f028c79bca6
[ "Apache-2.0" ]
null
null
null
resolwe/flow/models/migrations.py
gregorjerse/resolwe
3f9e4c56e5302266576d3e0574ba7f028c79bca6
[ "Apache-2.0" ]
null
null
null
resolwe/flow/models/migrations.py
gregorjerse/resolwe
3f9e4c56e5302266576d3e0574ba7f028c79bca6
[ "Apache-2.0" ]
null
null
null
"""Resolwe migration history models.""" from django.contrib.postgres.fields import JSONField from django.db import models class MigrationHistoryBase(models.Model): """Abstract model for storing migration history.""" class Meta: """Model meta.""" abstract = True #: migration identifier ...
25.571429
77
0.703911
1311e1d1c049b684b3a0dafb1a59079907dac633
26,315
py
Python
main_pba_UK_Farm.py
zenmood/IndoorFarmWiz
0f5075007cbd1d15c83ed3aef820ec3d72048a90
[ "MIT" ]
null
null
null
main_pba_UK_Farm.py
zenmood/IndoorFarmWiz
0f5075007cbd1d15c83ed3aef820ec3d72048a90
[ "MIT" ]
null
null
null
main_pba_UK_Farm.py
zenmood/IndoorFarmWiz
0f5075007cbd1d15c83ed3aef820ec3d72048a90
[ "MIT" ]
null
null
null
import pba from datetime import datetime from dateutil.relativedelta import relativedelta import os import matplotlib.pyplot as plt import math import pba import numpy as np #from pbox import pnt #from pbox import rng from math import pi from vf_overview import truncate from vf_overview import build_dataframe from v...
49.744802
340
0.804826
22cc2ec9a432f4dae0111de98c7a749ee629a182
1,612
py
Python
setup.py
microsoft/archai
900f95020f8f1dc37783eb0126bb8a34fc05bf4f
[ "MIT" ]
344
2020-06-12T22:12:56.000Z
2022-03-29T06:48:20.000Z
setup.py
nducanh255/archai
900f95020f8f1dc37783eb0126bb8a34fc05bf4f
[ "MIT" ]
29
2020-06-13T19:56:49.000Z
2022-03-30T20:26:48.000Z
setup.py
nducanh255/archai
900f95020f8f1dc37783eb0126bb8a34fc05bf4f
[ "MIT" ]
68
2020-06-12T19:32:43.000Z
2022-03-05T06:58:40.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import setuptools, platform with open("README.md", "r", encoding='utf_8') as fh: long_description = fh.read() install_requires=[ 'pystopwatch2 @ git+https://github.com/ildoonet/pystopwatch2.git', 'hyperopt', # @ git+https://github....
36.636364
77
0.677419
5d98ba7f56d4c37c89180dfa1eaa1425df23b9a7
379
py
Python
scripts/figures/figure5/mps_bert_base/host_run_data.py
netx-repo/PipeSwitch
f321d399e501b79ad51da13074e2aecda36cb06a
[ "Apache-2.0" ]
81
2020-11-05T16:15:58.000Z
2022-03-09T07:38:51.000Z
scripts/figures/figure5/mps_bert_base/host_run_data.py
baizh1994/PipeSwitch
cb7b03f0777cc59038a449e55ce1492f7ec973c6
[ "Apache-2.0" ]
3
2020-12-21T13:00:09.000Z
2021-06-13T15:08:46.000Z
scripts/figures/figure5/mps_bert_base/host_run_data.py
baizh1994/PipeSwitch
cb7b03f0777cc59038a449e55ce1492f7ec973c6
[ "Apache-2.0" ]
22
2020-11-06T07:51:35.000Z
2022-03-09T07:38:53.000Z
import os import sys from scripts.common.util import RunRemoteRepo, import_server_list def main(): server_list_path = sys.argv[1] server_list = import_server_list(server_list_path) with RunRemoteRepo(server_list[0], 'dev') as rrr: rrr.run("bash ~/PipeSwitch/scripts/figures/figure5/mps_bert_base/...
25.266667
93
0.741425
6baa0c9fa70557281a1aa236ff91e29553420107
62,835
py
Python
trac/wiki/formatter.py
jun66j5/trac-ja
2a44f2da3beecec08c89c6e57f283e4e3e7ae68a
[ "BSD-3-Clause" ]
1
2017-08-03T07:04:28.000Z
2017-08-03T07:04:28.000Z
trac/wiki/formatter.py
jun66j5/trac-ja
2a44f2da3beecec08c89c6e57f283e4e3e7ae68a
[ "BSD-3-Clause" ]
null
null
null
trac/wiki/formatter.py
jun66j5/trac-ja
2a44f2da3beecec08c89c6e57f283e4e3e7ae68a
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2003-2009 Edgewall Software # Copyright (C) 2003-2005 Jonas Borgström <jonas@edgewall.com> # Copyright (C) 2004-2005 Christopher Lenz <cmlenz@gmx.de> # Copyright (C) 2005-2007 Christian Boos <cboos@edgewall.org> # All rights reserved. # # This software is licensed as described ...
38.525445
80
0.558988
ec4ead96a8e185fbc296ce3afe4b4bfb33e7d673
242
py
Python
districts/models.py
Aniketh896/CovidSurveillance
54b358a3fc31f0dc64032cba0150253e11fdbbd9
[ "MIT" ]
5
2020-05-06T08:10:43.000Z
2021-05-26T18:55:57.000Z
districts/models.py
Aniketh896/CovidSurveillance
54b358a3fc31f0dc64032cba0150253e11fdbbd9
[ "MIT" ]
9
2020-05-18T14:01:50.000Z
2022-03-12T00:30:23.000Z
districts/models.py
Aniketh896/CovidSurveillance
54b358a3fc31f0dc64032cba0150253e11fdbbd9
[ "MIT" ]
6
2020-05-06T09:01:29.000Z
2021-05-20T15:25:30.000Z
from django.db import models # Create your models here. class DistrictsModel(models.Model): state = models.TextField() district = models.TextField() zone = models.TextField() lastupdated = models.DateTimeField(auto_now=True)
26.888889
53
0.735537
798682441a35bafa52ad911ce513f15eb2bf02a7
6,598
py
Python
test/util/bitcoin-util-test.py
msalazarm/chunguscoin
61183c4f38b5c9b1130fbb6c1031505bad81eae2
[ "MIT" ]
null
null
null
test/util/bitcoin-util-test.py
msalazarm/chunguscoin
61183c4f38b5c9b1130fbb6c1031505bad81eae2
[ "MIT" ]
null
null
null
test/util/bitcoin-util-test.py
msalazarm/chunguscoin
61183c4f38b5c9b1130fbb6c1031505bad81eae2
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright 2014 BitPay Inc. # Copyright 2016-2017 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test framework for chunguscoin utils. Runs automatically during `make check`....
37.488636
125
0.633677
2e9b9b6312bac4241c1320a8286e65c5235315b8
4,459
py
Python
mipengine/node/monetdb_interface/monet_db_connection.py
madgik/MIP-Engine
d707a4189457cecd977ddac8c213f308c8282b37
[ "MIT" ]
4
2021-01-19T18:45:38.000Z
2022-01-31T13:25:45.000Z
mipengine/node/monetdb_interface/monet_db_connection.py
madgik/MIP-Engine
d707a4189457cecd977ddac8c213f308c8282b37
[ "MIT" ]
136
2020-12-31T11:10:00.000Z
2022-03-31T22:21:55.000Z
mipengine/node/monetdb_interface/monet_db_connection.py
madgik/MIP-Engine
d707a4189457cecd977ddac8c213f308c8282b37
[ "MIT" ]
9
2021-05-21T06:05:14.000Z
2021-12-02T09:09:01.000Z
from contextlib import contextmanager from typing import List import pymonetdb from celery.utils.log import get_task_logger logging = get_task_logger(__name__) from mipengine.node import config as node_config BROKEN_PIPE_MAX_ATTEMPTS = 50 OCC_MAX_ATTEMPTS = 50 class Singleton(type): """ Copied from htt...
34.3
123
0.610227
ed476271e4c1983ad229a168f970525e1fa8136d
2,719
py
Python
local_server.py
osauldmy/BI-VWM
9131c7ab6cdf6c49ce267955cc35f946b887c742
[ "MIT" ]
null
null
null
local_server.py
osauldmy/BI-VWM
9131c7ab6cdf6c49ce267955cc35f946b887c742
[ "MIT" ]
1
2020-07-15T18:47:44.000Z
2020-07-15T18:47:44.000Z
local_server.py
osauldmy/BI-VWM
9131c7ab6cdf6c49ce267955cc35f946b887c742
[ "MIT" ]
null
null
null
""" Aux module for local usage/debug/development, frontend sends requests here. logic module uses data prepared and uploaded to AWS S3 and AWS DynamoDB """ import logging import aiohttp.web import aiohttp_cors import logic async def get_dataset_names(_: aiohttp.web.Request) -> aiohttp.web.Response: """ A v...
26.144231
78
0.631114
da5df7ceddc046eebab9a69638ec5bb5aa1b3104
457
py
Python
chat/consumers.py
Vlek/KingsOfTokyo
8f9937fd4c400e99401f3156f86c90aac4a3b223
[ "MIT" ]
1
2019-11-05T03:46:55.000Z
2019-11-05T03:46:55.000Z
chat/consumers.py
Vlek/KingOfTokyo
8f9937fd4c400e99401f3156f86c90aac4a3b223
[ "MIT" ]
null
null
null
chat/consumers.py
Vlek/KingOfTokyo
8f9937fd4c400e99401f3156f86c90aac4a3b223
[ "MIT" ]
null
null
null
# chat/consumers.py from channels.generic.websocket import WebsocketConsumer import json class ChatConsumer(WebsocketConsumer): def connect(self): self.accept() def disconnect(self, close_code): pass def receive(self, text_data): text_data_json = json.loads(text_data) mes...
22.85
56
0.654267
5c6302563446b0ea4a1da19bf7dcd6d1852a0c9c
6,070
py
Python
lib/python2.7/site-packages/networkx/algorithms/bipartite/basic.py
nishaero/wifi-userseg-ryu
1132f2c813b79eff755bdd1a9e73e7ad3980af7c
[ "Apache-2.0" ]
15
2018-04-26T08:17:18.000Z
2021-03-05T08:44:13.000Z
lib/python2.7/site-packages/networkx/algorithms/bipartite/basic.py
nishaero/wifi-userseg-ryu
1132f2c813b79eff755bdd1a9e73e7ad3980af7c
[ "Apache-2.0" ]
null
null
null
lib/python2.7/site-packages/networkx/algorithms/bipartite/basic.py
nishaero/wifi-userseg-ryu
1132f2c813b79eff755bdd1a9e73e7ad3980af7c
[ "Apache-2.0" ]
6
2018-04-12T15:49:27.000Z
2022-01-27T12:34:50.000Z
# -*- coding: utf-8 -*- """ ========================== Bipartite Graph Algorithms ========================== """ # Copyright (C) 2013-2015 by # Aric Hagberg <hagberg@lanl.gov> # Dan Schult <dschult@colgate.edu> # Pieter Swart <swart@lanl.gov> # All rights reserved. # BSD license. import networkx as nx...
23.803922
78
0.543657
fe5e3c99584e2c0809797f1561766596464991bd
219
py
Python
app/modules/home/routes.py
cupskeee/App-MFE
4f546a9e6a475f3937f1a77406e612e3354af2b7
[ "Apache-2.0" ]
null
null
null
app/modules/home/routes.py
cupskeee/App-MFE
4f546a9e6a475f3937f1a77406e612e3354af2b7
[ "Apache-2.0" ]
null
null
null
app/modules/home/routes.py
cupskeee/App-MFE
4f546a9e6a475f3937f1a77406e612e3354af2b7
[ "Apache-2.0" ]
null
null
null
from flask import Blueprint, jsonify, request, url_for, render_template, redirect, flash from app.extensions import db home = Blueprint('home', __name__) @home.route('/') def route_default(): return "Hello World"
24.333333
88
0.748858
c3eef23a223cbae61fba17ef2f565c67d5c30204
11,359
py
Python
splib/ncmod.py
CloudResolvingClimateModeling/sp-coupler
20c3b88207f2357227d1c6fdaa9736d5b3e66fbd
[ "Apache-2.0" ]
null
null
null
splib/ncmod.py
CloudResolvingClimateModeling/sp-coupler
20c3b88207f2357227d1c6fdaa9736d5b3e66fbd
[ "Apache-2.0" ]
6
2018-07-05T08:10:35.000Z
2019-08-23T08:38:02.000Z
splib/ncmod.py
CloudResolvingClimateModeling/sp-coupler
20c3b88207f2357227d1c6fdaa9736d5b3e66fbd
[ "Apache-2.0" ]
2
2018-07-11T12:48:49.000Z
2021-01-12T20:02:35.000Z
from __future__ import division import logging import netCDF4 import numpy import parser from amuse.community import units from amuse.community.interface.common import CommonCode # Logger log = logging.getLogger(__name__) # Base class for netcdf-based models # noinspection PyMethodMayBeStatic class netcdf_model_ba...
34.843558
121
0.635971
305aa47d0149e9f091892ff6fcdbafbbac28bdb8
2,149
py
Python
nldrp/dnn/logger/inspection.py
etzinis/nldrp
3b6e24aa86a6d43bfd6f753b346739c00c282de3
[ "MIT" ]
6
2018-10-27T13:16:36.000Z
2020-09-07T17:34:11.000Z
nldrp/dnn/logger/inspection.py
etzinis/nldrp
3b6e24aa86a6d43bfd6f753b346739c00c282de3
[ "MIT" ]
null
null
null
nldrp/dnn/logger/inspection.py
etzinis/nldrp
3b6e24aa86a6d43bfd6f753b346739c00c282de3
[ "MIT" ]
2
2018-10-29T16:20:09.000Z
2020-02-12T16:06:52.000Z
import numpy from visdom import Visdom from nldrp.dnn.logger.plotting import plot_line class Inspector(object): """ Class for inspecting the internals of neural networks """ def __init__(self, model, stats): """ Args: model (torch.nn.Module): the PyTorch model ...
34.66129
80
0.575151
ceb0042540d70ec85a26ae465f55f77a06c9a234
689
py
Python
setup.py
paulzuradzki/provider-price-retrieval
dfe5503eae3c4d0c8a026ad296a9ffaa9873bd7c
[ "MIT" ]
null
null
null
setup.py
paulzuradzki/provider-price-retrieval
dfe5503eae3c4d0c8a026ad296a9ffaa9873bd7c
[ "MIT" ]
null
null
null
setup.py
paulzuradzki/provider-price-retrieval
dfe5503eae3c4d0c8a026ad296a9ffaa9873bd7c
[ "MIT" ]
null
null
null
# setup.py import pathlib import setuptools HERE = pathlib.Path(__file__).parent README = (HERE / "README.md").read_text() setuptools.setup( name="mrf_parser", version="0.0.1", author="Paul Zuradzki", author_email="paulzuradzki@gmail.com", license="MIT", description="This is a pac...
36.263158
148
0.702467
0a3826427082fe7d7598758b7be0970a1bf10e01
9,243
py
Python
xarray/util/generate_ops.py
max-imlian/xarray
e4f5b733761bbe9df0748afe15a22a13f4ad908f
[ "CC-BY-4.0", "PSF-2.0", "BSD-2-Clause", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
xarray/util/generate_ops.py
max-imlian/xarray
e4f5b733761bbe9df0748afe15a22a13f4ad908f
[ "CC-BY-4.0", "PSF-2.0", "BSD-2-Clause", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
xarray/util/generate_ops.py
max-imlian/xarray
e4f5b733761bbe9df0748afe15a22a13f4ad908f
[ "CC-BY-4.0", "PSF-2.0", "BSD-2-Clause", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
"""Generate module and stub file for arithmetic operators of various xarray classes. For internal xarray development use only. Usage: python xarray/util/generate_ops.py --module > xarray/core/_typed_ops.py python xarray/util/generate_ops.py --stubs > xarray/core/_typed_ops.pyi """ # Note: the comments in htt...
34.879245
87
0.665909
924b57fbe91fb9e5403fbd809650e7d0c6627a8f
1,579
py
Python
nectar_osc/freshdesk.py
NeCTAR-RC/nectar-osc
8447e4f2143234cf01b187d7e55167dc0b9dfd02
[ "Apache-2.0" ]
null
null
null
nectar_osc/freshdesk.py
NeCTAR-RC/nectar-osc
8447e4f2143234cf01b187d7e55167dc0b9dfd02
[ "Apache-2.0" ]
null
null
null
nectar_osc/freshdesk.py
NeCTAR-RC/nectar-osc
8447e4f2143234cf01b187d7e55167dc0b9dfd02
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distrib...
28.196429
77
0.642812
e92d18de598ed401c104524d268f4d2413b3398a
4,656
py
Python
Code/analysis/summarytable/add.py
kuz/Kaggle-Diabetic-Retinopathy-Detection
785248fdc104d2ffd2c1c53c5b98fc81380eb9cc
[ "MIT" ]
1
2016-03-25T07:56:36.000Z
2016-03-25T07:56:36.000Z
Code/analysis/summarytable/add.py
kuz/Kaggle-Diabetic-Retinopathy-Detection
785248fdc104d2ffd2c1c53c5b98fc81380eb9cc
[ "MIT" ]
null
null
null
Code/analysis/summarytable/add.py
kuz/Kaggle-Diabetic-Retinopathy-Detection
785248fdc104d2ffd2c1c53c5b98fc81380eb9cc
[ "MIT" ]
1
2016-04-14T14:21:24.000Z
2016-04-14T14:21:24.000Z
import os import sys import sqlite3 import string import json # read cmd arguments if len(sys.argv) != 6: print 'Usage:', sys.argv[0], '<prefix> <preprocessing_type> <model_name> <iteration> <imgfolder>' print 'Usage example: python add.py EMPTY size256 firstborn 50000 2015-06-10-01-35' sys.exit(2) # read...
33.985401
119
0.587629
1b21950de1ff2fc78e0b70ccb6f400b920bb40cd
6,681
py
Python
music21/test/testSerialization.py
cuthbertLab/music21
1be16c255460107c10d7b4bc8eb77f0d115b5eac
[ "MIT" ]
1,449
2015-01-09T15:53:56.000Z
2022-03-31T18:24:46.000Z
music21/test/testSerialization.py
cuthbertLab/music21
1be16c255460107c10d7b4bc8eb77f0d115b5eac
[ "MIT" ]
1,179
2015-01-07T17:07:54.000Z
2022-03-31T16:46:02.000Z
music21/test/testSerialization.py
cuthbertLab/music21
1be16c255460107c10d7b4bc8eb77f0d115b5eac
[ "MIT" ]
393
2015-01-03T20:38:16.000Z
2022-03-25T16:51:22.000Z
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # Name: testSerialization.py # Purpose: tests for serializing music21 objects # # Authors: Michael Scott Cuthbert # Christopher Ariza # # Copyright: Copyright © 2012-13 Michael Sco...
32.590244
95
0.566532
a159077f3ca75508dd657648feffc4c345ad79bc
4,014
py
Python
src/spaceone/inventory/connector/aws_sqs_connector/schema/service_type.py
spaceone-dev/plugin-aws-cloud-services
fdc22b91461c553d98c2cc0a869dd33619d2465d
[ "Apache-2.0" ]
2
2020-06-22T09:49:22.000Z
2021-01-03T22:21:27.000Z
src/spaceone/inventory/connector/aws_sqs_connector/schema/service_type.py
spaceone-dev/plugin-aws-cloud-services
fdc22b91461c553d98c2cc0a869dd33619d2465d
[ "Apache-2.0" ]
2
2020-07-20T01:58:32.000Z
2020-08-04T07:41:37.000Z
src/spaceone/inventory/connector/aws_sqs_connector/schema/service_type.py
spaceone-dev/plugin-aws-cloud-services
fdc22b91461c553d98c2cc0a869dd33619d2465d
[ "Apache-2.0" ]
5
2020-10-13T15:05:12.000Z
2021-04-19T10:25:24.000Z
from spaceone.inventory.libs.schema.dynamic_field import TextDyField, SearchField from spaceone.inventory.libs.schema.resource import CloudServiceTypeResource, CloudServiceTypeResponse, CloudServiceTypeMeta cst_que = CloudServiceTypeResource() cst_que.name = 'Queue' cst_que.provider = 'aws' cst_que.group = 'SQS' cst_q...
46.674419
141
0.651719
840b10eb1d5c62bf9e3ec838bb002a79e2052166
6,343
py
Python
python_modules/dagster/dagster/core/snap/execution_plan_snapshot.py
uranusbeam/bit-dagster
d26ff47f4ba8441128c6ce47b9c328f6496a91d9
[ "Apache-2.0" ]
3
2020-09-09T04:10:23.000Z
2021-11-08T02:10:42.000Z
python_modules/dagster/dagster/core/snap/execution_plan_snapshot.py
uranusbeam/bit-dagster
d26ff47f4ba8441128c6ce47b9c328f6496a91d9
[ "Apache-2.0" ]
2
2021-05-11T13:36:27.000Z
2021-09-03T01:53:11.000Z
python_modules/dagster/dagster/core/snap/execution_plan_snapshot.py
uranusbeam/bit-dagster
d26ff47f4ba8441128c6ce47b9c328f6496a91d9
[ "Apache-2.0" ]
null
null
null
from collections import namedtuple from dagster import check from dagster.core.execution.plan.objects import StepInput, StepKind, StepOutput, StepOutputHandle from dagster.core.execution.plan.plan import ExecutionPlan, ExecutionStep from dagster.serdes import whitelist_for_serdes from .pipeline_snapshot import Pipeli...
37.982036
100
0.714015
4a7ea70594a273d4290121dc1cc6123252480bb8
48
py
Python
scripts/config.py
joanamdsantos/IEO-Dashboard
02c9d1d9a37ff97fb470fa4b315ebd0a5321c275
[ "MIT" ]
null
null
null
scripts/config.py
joanamdsantos/IEO-Dashboard
02c9d1d9a37ff97fb470fa4b315ebd0a5321c275
[ "MIT" ]
null
null
null
scripts/config.py
joanamdsantos/IEO-Dashboard
02c9d1d9a37ff97fb470fa4b315ebd0a5321c275
[ "MIT" ]
null
null
null
EIA_API_KEY = 'b334fd3a21ce9898c1c6047ffb052e45'
48
48
0.895833
99c1cfc4288445e009d0d6f00033b2d0aaccfba1
316
py
Python
dataweb/__init__.py
azogue/dataweb
085035855df7cef0fe7725bbe9a706832344d946
[ "MIT" ]
null
null
null
dataweb/__init__.py
azogue/dataweb
085035855df7cef0fe7725bbe9a706832344d946
[ "MIT" ]
null
null
null
dataweb/__init__.py
azogue/dataweb
085035855df7cef0fe7725bbe9a706832344d946
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ DATAWEB: Gestión de datos recogidos en web de forma periódica. """ # noinspection PyUnresolvedReferences from dataweb.classdataweb import DataWeb # noinspection PyUnresolvedReferences from dataweb.requestweb.__init__ import get_data_en_intervalo, request_data_url __version__ = '0.5.4'
26.333333
79
0.794304
e5782ca98d1df04728a41f4bb63937d52a9569c0
896
py
Python
commerce/auctions/forms.py
nathanforester/django_repo
f75aefbe01134a0fcfb515d113b69a52d1cb50ef
[ "MIT" ]
null
null
null
commerce/auctions/forms.py
nathanforester/django_repo
f75aefbe01134a0fcfb515d113b69a52d1cb50ef
[ "MIT" ]
null
null
null
commerce/auctions/forms.py
nathanforester/django_repo
f75aefbe01134a0fcfb515d113b69a52d1cb50ef
[ "MIT" ]
1
2020-11-23T10:46:48.000Z
2020-11-23T10:46:48.000Z
from django import forms CATEGORY_CHOICES = ( ('music','Music'), ('fashion', 'Fashion'), ('sporting_goods','Sporting Goods'), ('electronics','Electronics'), ('jewellery_and_watches','Jewellery & Watches'), ('motors','Motors'), ('toys_and_games','Toys & Games'), ('collectables_and_antiqu...
29.866667
65
0.683036
c1a65af313dae23150a0c979f252c39d98693364
162
py
Python
lambda.py
afonsoaugusto/localstack-hello-world
c7d1721a0b0893e1cbc3e41d8e7413d58af5dbb4
[ "MIT" ]
null
null
null
lambda.py
afonsoaugusto/localstack-hello-world
c7d1721a0b0893e1cbc3e41d8e7413d58af5dbb4
[ "MIT" ]
null
null
null
lambda.py
afonsoaugusto/localstack-hello-world
c7d1721a0b0893e1cbc3e41d8e7413d58af5dbb4
[ "MIT" ]
null
null
null
def lambda_handler(event, context): message = 'Hello {} {}!'.format(event['first_name'], event['last_name']) return { 'message' : message }
32.4
78
0.592593
deeaabed2a2be26bb79d7bb7dffdacd561972c15
29,350
py
Python
src/data_utils.py
Omkar-Ranadive/Earthquake-Detective
aeedb2998886d7fb92ee29338c7089adafc03f27
[ "Apache-2.0" ]
1
2021-05-21T19:09:21.000Z
2021-05-21T19:09:21.000Z
src/data_utils.py
Omkar-Ranadive/Earthquake-Detective
aeedb2998886d7fb92ee29338c7089adafc03f27
[ "Apache-2.0" ]
null
null
null
src/data_utils.py
Omkar-Ranadive/Earthquake-Detective
aeedb2998886d7fb92ee29338c7089adafc03f27
[ "Apache-2.0" ]
null
null
null
from obspy.clients.fdsn import Client, RoutingClient from obspy import UTCDateTime, Inventory, Stream from obspy.clients.fdsn.header import FDSNException from obspy.geodetics.base import gps2dist_azimuth from obspy import read_inventory import matplotlib.pyplot as plt import matplotlib.dates as mdates import matplotlib...
46.293375
104
0.627734