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
192361412f235a3d8487d7536364f4c7d4aadafd
6,695
py
Python
qa/rpc-tests/txn_doublespend.py
SBDomains/PRONTO-TEST
a79536afa9c68ded0de164a1b6972b76fe907fb3
[ "MIT" ]
2
2019-12-15T20:46:31.000Z
2020-02-13T15:31:38.000Z
qa/rpc-tests/txn_doublespend.py
SBDomains/PRONTO-TEST
a79536afa9c68ded0de164a1b6972b76fe907fb3
[ "MIT" ]
null
null
null
qa/rpc-tests/txn_doublespend.py
SBDomains/PRONTO-TEST
a79536afa9c68ded0de164a1b6972b76fe907fb3
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2016 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 proper accounting with a double-spend conflict # from test_framework.test_framework import Bitc...
45.236486
111
0.608514
ed767bef4971097d2aad4fa02ca55eaf2ea528b2
8,616
py
Python
src/app.py
GraemeF/docker-android
9adec7fcfd1c14172c59277baf671ca167b8dd76
[ "Apache-2.0" ]
1
2019-10-25T10:51:08.000Z
2019-10-25T10:51:08.000Z
src/app.py
GraemeF/docker-android
9adec7fcfd1c14172c59277baf671ca167b8dd76
[ "Apache-2.0" ]
null
null
null
src/app.py
GraemeF/docker-android
9adec7fcfd1c14172c59277baf671ca167b8dd76
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import json import logging import os import subprocess import uuid from src import CHROME_DRIVER, CONFIG_FILE, ROOT from src import log log.init() logger = logging.getLogger('app') def symlink_force(target, link_name): try: os.symlink(target, link_name) except OSError as e: ...
38.986425
175
0.627321
ce6ca0adf1af7fa8532c35d9014075bf4f3768a5
1,519
py
Python
setup.py
JustinTArthur/serverwamp
5faee4022dbd80345089ded4c6a86e3aac22ed5a
[ "MIT" ]
14
2019-08-08T20:01:54.000Z
2022-01-11T03:38:35.000Z
setup.py
JustinTArthur/serverwamp
5faee4022dbd80345089ded4c6a86e3aac22ed5a
[ "MIT" ]
3
2020-06-22T04:48:06.000Z
2021-11-19T02:32:31.000Z
setup.py
JustinTArthur/serverwamp
5faee4022dbd80345089ded4c6a86e3aac22ed5a
[ "MIT" ]
2
2020-06-22T05:34:39.000Z
2021-11-11T04:04:45.000Z
from setuptools import find_packages, setup setup( name='serverwamp', version='1.1.1', description=('Components that add Web Application Messaging Protocol ' 'features to WebSocket servers.'), long_description=open('README.md').read(), long_description_content_type='text/markdown',...
31
77
0.579329
a0c99c95fc7d33bbbc965323e9d5a961b7199e1e
209
py
Python
django/db/models/constants.py
jpmallarino/django
659d2421c7adbbcd205604002d521d82d6b0b465
[ "BSD-3-Clause", "0BSD" ]
16
2019-08-10T12:24:06.000Z
2020-05-21T09:11:14.000Z
django/db/models/constants.py
jpmallarino/django
659d2421c7adbbcd205604002d521d82d6b0b465
[ "BSD-3-Clause", "0BSD" ]
12
2019-08-10T11:55:29.000Z
2020-05-21T04:46:30.000Z
django/db/models/constants.py
jpmallarino/django
659d2421c7adbbcd205604002d521d82d6b0b465
[ "BSD-3-Clause", "0BSD" ]
3
2019-08-20T13:29:34.000Z
2020-01-30T22:05:10.000Z
""" Constants used across the ORM in general. """ from enum import Enum # Separator used to split filter strings apart. LOOKUP_SEP = "__" class OnConflict(Enum): IGNORE = "ignore" UPDATE = "update"
16.076923
47
0.69378
0754c3adfc3cec4840e749c3b56608a142268ff3
3,673
py
Python
Chapter 9/fft.py
tanS30/Building-Machine-Learning-Systems-With-Python-Second-Edition
d7a25b4a0186958745579a1d58f654e0577e50fc
[ "MIT" ]
1,490
2015-01-03T12:21:33.000Z
2022-03-30T15:45:34.000Z
Chapter 9/fft.py
tanS30/Building-Machine-Learning-Systems-With-Python-Second-Edition
d7a25b4a0186958745579a1d58f654e0577e50fc
[ "MIT" ]
17
2015-01-27T21:08:00.000Z
2020-09-30T19:44:24.000Z
Chapter 9/fft.py
tanS30/Building-Machine-Learning-Systems-With-Python-Second-Edition
d7a25b4a0186958745579a1d58f654e0577e50fc
[ "MIT" ]
1,462
2015-01-01T08:17:00.000Z
2022-02-27T03:50:06.000Z
# This code is supporting material for the book # Building Machine Learning Systems with Python # by Willi Richert and Luis Pedro Coelho # published by PACKT Publishing # # It is made available under the MIT License import sys import os import glob import numpy as np import scipy import scipy.io.wavfile from utils i...
26.235714
85
0.64171
750a0d4936600a0184f07344c61017292a3bb44e
1,013
py
Python
firebot/modules/sql_helper/gban_sql.py
vikas04599/Fire-X
527d57c29785f36e1b07aa739f3ac7c969cc916c
[ "MIT" ]
20
2021-08-16T18:49:49.000Z
2022-02-23T08:35:57.000Z
firebot/modules/sql_helper/gban_sql.py
elizamusic/Fire-X
1ec6ba73b3033ad03e7859fcf6917fc6aff89efc
[ "MIT" ]
null
null
null
firebot/modules/sql_helper/gban_sql.py
elizamusic/Fire-X
1ec6ba73b3033ad03e7859fcf6917fc6aff89efc
[ "MIT" ]
93
2021-08-16T19:16:20.000Z
2022-03-31T02:02:06.000Z
from sqlalchemy import Column, String, UnicodeText from firebot.modules.sql_helper import BASE, SESSION class Gban(BASE): __tablename__ = "gban" user_id = Column(String(14), primary_key=True) reason = Column(UnicodeText) def __init__(self, user_id, reason): self.user_id = user_id sel...
21.553191
53
0.654492
2e3ba10aa666c876515b2e666f1b2177349b205c
73,269
py
Python
pysnmp/SCA-IPX-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/SCA-IPX-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/SCA-IPX-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module SCA-IPX-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/SCA-IPX-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 20:52:56 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 0...
281.803846
45,348
0.745308
1207177e70b391d107d6b6f459e8001c990ef5b7
113
py
Python
solutions/python3/771.py
sm2774us/amazon_interview_prep_2021
f580080e4a6b712b0b295bb429bf676eb15668de
[ "MIT" ]
42
2020-08-02T07:03:49.000Z
2022-03-26T07:50:15.000Z
solutions/python3/771.py
ajayv13/leetcode
de02576a9503be6054816b7444ccadcc0c31c59d
[ "MIT" ]
null
null
null
solutions/python3/771.py
ajayv13/leetcode
de02576a9503be6054816b7444ccadcc0c31c59d
[ "MIT" ]
40
2020-02-08T02:50:24.000Z
2022-03-26T15:38:10.000Z
class Solution: def numJewelsInStones(self, J, S): sj = set(J) return sum(s in sj for s in S)
28.25
38
0.584071
e89f9a15424bf08d1ddf0f215e8601811d89cfcd
4,678
py
Python
litex_things/deps/litedram/litedram/frontend/dma.py
bjonnh/fomu-playground
9f95ed7b28d15ce219d09c16c2c8d6b5594adceb
[ "0BSD" ]
null
null
null
litex_things/deps/litedram/litedram/frontend/dma.py
bjonnh/fomu-playground
9f95ed7b28d15ce219d09c16c2c8d6b5594adceb
[ "0BSD" ]
1
2019-01-21T14:59:14.000Z
2019-01-21T14:59:14.000Z
litex_things/deps/litedram/litedram/frontend/dma.py
bjonnh/fomu-playground
9f95ed7b28d15ce219d09c16c2c8d6b5594adceb
[ "0BSD" ]
null
null
null
"""Direct Memory Access (DMA) reader and writer modules.""" from migen import * from litex.soc.interconnect import stream from litedram.common import LiteDRAMNativePort from litedram.frontend.axi import LiteDRAMAXIPort class LiteDRAMDMAReader(Module): """Read data from DRAM memory. For every address writt...
30.980132
86
0.584865
7ce6f7191687227a2ae2255dee5fe6313cf66c9c
165
py
Python
main.py
jlebensold/flrl-ddpg
d91e9f4aedf48d0614e33bd22c7f684ecda089b1
[ "MIT" ]
1
2021-05-11T06:28:01.000Z
2021-05-11T06:28:01.000Z
main.py
jlebensold/flrl-ddpg
d91e9f4aedf48d0614e33bd22c7f684ecda089b1
[ "MIT" ]
null
null
null
main.py
jlebensold/flrl-ddpg
d91e9f4aedf48d0614e33bd22c7f684ecda089b1
[ "MIT" ]
1
2021-03-07T06:33:17.000Z
2021-03-07T06:33:17.000Z
import fire import comet_ml from ddpg import run as ddpg from dqn import run as dqn from transfer import run as transfer if __name__ == '__main__': fire.Fire()
18.333333
36
0.757576
ec6d63853383c8922eb7cfbf510a9d657b9b86af
1,676
py
Python
backend/mock_blue_alliance/__init__.py
mabaums/frc-scout
4279c05f35065731e840d7826f5339d7ead43e56
[ "Apache-2.0" ]
null
null
null
backend/mock_blue_alliance/__init__.py
mabaums/frc-scout
4279c05f35065731e840d7826f5339d7ead43e56
[ "Apache-2.0" ]
null
null
null
backend/mock_blue_alliance/__init__.py
mabaums/frc-scout
4279c05f35065731e840d7826f5339d7ead43e56
[ "Apache-2.0" ]
null
null
null
import json import os class MockBlueAlliance: def __init__(self, root=None): if root is None: self.__root__ = __path__[0] else: self.__root__ = root def __load__(self, file_name): file_path = os.path.join(self.__root__, file_name) with open(file_path, "...
30.472727
74
0.606802
b7b4513aa03a724d6b87d3f0c43e42e25bba26e6
6,191
py
Python
test/testutil.py
Wayde2014/kafka-python
d12bf9f478ebce1004aa5da9a3548e2322879f33
[ "Apache-2.0" ]
1
2020-07-02T10:38:19.000Z
2020-07-02T10:38:19.000Z
test/testutil.py
Wayde2014/kafka-python
d12bf9f478ebce1004aa5da9a3548e2322879f33
[ "Apache-2.0" ]
1
2019-06-26T16:47:40.000Z
2019-06-26T17:14:55.000Z
test/testutil.py
Wayde2014/kafka-python
d12bf9f478ebce1004aa5da9a3548e2322879f33
[ "Apache-2.0" ]
1
2020-03-03T11:53:15.000Z
2020-03-03T11:53:15.000Z
from __future__ import absolute_import import functools import operator import os import time import uuid import pytest from . import unittest from kafka import SimpleClient from kafka.errors import ( LeaderNotAvailableError, KafkaTimeoutError, InvalidTopicError, NotLeaderForPartitionError, UnknownTopicOrPar...
32.930851
123
0.59538
33c0dae164886d87684cde9267c0b2a1c5140ffa
249
py
Python
15_packaging/03_custom_setup_commands.py
varshashivhare/Mastering-Python
6101fa7855e57d0bbd194e936084bd64d9d38d76
[ "MIT" ]
30
2016-10-28T18:14:15.000Z
2021-08-29T15:20:56.000Z
15_packaging/03_custom_setup_commands.py
varshashivhare/Mastering-Python
6101fa7855e57d0bbd194e936084bd64d9d38d76
[ "MIT" ]
null
null
null
15_packaging/03_custom_setup_commands.py
varshashivhare/Mastering-Python
6101fa7855e57d0bbd194e936084bd64d9d38d76
[ "MIT" ]
31
2016-09-10T22:47:12.000Z
2022-03-13T04:50:35.000Z
import setuptools if __name__ == '__main__': setuptools.setup( name='Our little project', entry_points={ 'distutils.commands': [ 'spam = 03_spam_command:SpamCommand', ], }, )
19.153846
53
0.514056
50dbce00deae4c711c56e001223181c8b43f8be0
1,482
py
Python
ext_logging/handlers.py
abstractR/ext_logging
b8b6078261644ec46449de70450fd440e3083ffb
[ "Apache-2.0" ]
null
null
null
ext_logging/handlers.py
abstractR/ext_logging
b8b6078261644ec46449de70450fd440e3083ffb
[ "Apache-2.0" ]
null
null
null
ext_logging/handlers.py
abstractR/ext_logging
b8b6078261644ec46449de70450fd440e3083ffb
[ "Apache-2.0" ]
null
null
null
import atexit import time import logging import socket import threading import os import pwd import sys from json import dumps from logging import Handler from logging.handlers import HTTPHandler, WatchedFileHandler from multiprocessing import Queue from .formatters import ELKJsonFormatter from .formatters import Ex...
31.531915
107
0.761134
e88aa3817dbf31538970b38611788525920eb7fc
1,139
py
Python
CodeCrewSiteApp/views.py
cs-fullstack-2019-spring/django-inheritance-cw-tdude0175
76e688a6e93be58039a945ec25db7ddb03eda5f4
[ "Apache-2.0" ]
null
null
null
CodeCrewSiteApp/views.py
cs-fullstack-2019-spring/django-inheritance-cw-tdude0175
76e688a6e93be58039a945ec25db7ddb03eda5f4
[ "Apache-2.0" ]
null
null
null
CodeCrewSiteApp/views.py
cs-fullstack-2019-spring/django-inheritance-cw-tdude0175
76e688a6e93be58039a945ec25db7ddb03eda5f4
[ "Apache-2.0" ]
null
null
null
from django.shortcuts import render from .forms import ContactForm, ContactingForm # Create your views here. # all pages render their respective page def index(request): return render(request, 'CodeCrewSiteApp/index.html') def AboutUs(request): return render(request, 'CodeCrewSiteApp/AboutUs.html', ) def...
16.271429
92
0.716418
90da0a1fa7792e5a6d489426b779f0f9e6f6e6f0
7,165
py
Python
scripts/ssanova/eb-extract-frames.py
jenniferxkuo/ultramisc
65bff53c97715eb9a24acc62b77460f22e0dabc6
[ "MIT" ]
null
null
null
scripts/ssanova/eb-extract-frames.py
jenniferxkuo/ultramisc
65bff53c97715eb9a24acc62b77460f22e0dabc6
[ "MIT" ]
null
null
null
scripts/ssanova/eb-extract-frames.py
jenniferxkuo/ultramisc
65bff53c97715eb9a24acc62b77460f22e0dabc6
[ "MIT" ]
null
null
null
#!/usr/bin/env python # eb-extract-frames.py: extract frame BMPs for contour extraction # usage: python eb-extract-frames.py expdir (-f / --flop) import os, re, glob, shutil from PIL import Image import numpy as np import argparse import audiolabel from operator import itemgetter from ultratils.rawreader import RawR...
30.232068
88
0.675506
0d2628aa4f52432433f964e78e1ad1dfcf89fc8f
8,278
py
Python
applications/StatisticsApplication/tests/test_temporal_mean_method.py
lkusch/Kratos
e8072d8e24ab6f312765185b19d439f01ab7b27b
[ "BSD-4-Clause" ]
778
2017-01-27T16:29:17.000Z
2022-03-30T03:01:51.000Z
applications/StatisticsApplication/tests/test_temporal_mean_method.py
lkusch/Kratos
e8072d8e24ab6f312765185b19d439f01ab7b27b
[ "BSD-4-Clause" ]
6,634
2017-01-15T22:56:13.000Z
2022-03-31T15:03:36.000Z
applications/StatisticsApplication/tests/test_temporal_mean_method.py
lkusch/Kratos
e8072d8e24ab6f312765185b19d439f01ab7b27b
[ "BSD-4-Clause" ]
224
2017-02-07T14:12:49.000Z
2022-03-06T23:09:34.000Z
import KratosMultiphysics as Kratos from KratosMultiphysics.process_factory import KratosProcessFactory import KratosMultiphysics.StatisticsApplication as KratosStats from KratosMultiphysics.StatisticsApplication.test_utilities import InitializeContainerArrays from KratosMultiphysics.StatisticsApplication.test_utiliti...
48.127907
126
0.630708
e5398945a12de17d541ba72f2533e192f88f2b6a
1,542
py
Python
gmshparser/nodes_parser.py
ahojukka5/gmshparser
add27f8ddc97fb14614432e02bc626ec61030b6d
[ "MIT" ]
10
2020-04-17T21:02:07.000Z
2021-12-21T23:11:34.000Z
gmshparser/nodes_parser.py
ahojukka5/gmshparser
add27f8ddc97fb14614432e02bc626ec61030b6d
[ "MIT" ]
null
null
null
gmshparser/nodes_parser.py
ahojukka5/gmshparser
add27f8ddc97fb14614432e02bc626ec61030b6d
[ "MIT" ]
1
2020-11-18T18:04:48.000Z
2020-11-18T18:04:48.000Z
from typing import TextIO from .node_entity import NodeEntity from .node import Node from .abstract_parser import AbstractParser from .mesh import Mesh from .helpers import parse_ints, parse_floats class NodesParser(AbstractParser): """Parse Nodes section.""" @staticmethod def get_section_name(): ...
33.521739
65
0.601167
8e80965211b90bff7d77cad35e4999c7e5650c47
7,569
py
Python
src/robots/tests.py
sergioisidoro/django-robots
70da7606974b915d57e038f8bdf31c0b21be7e45
[ "BSD-3-Clause" ]
252
2015-12-17T09:58:14.000Z
2022-03-31T15:54:33.000Z
src/robots/tests.py
sergioisidoro/django-robots
70da7606974b915d57e038f8bdf31c0b21be7e45
[ "BSD-3-Clause" ]
86
2015-12-20T22:58:37.000Z
2022-03-28T09:54:28.000Z
src/robots/tests.py
sergioisidoro/django-robots
70da7606974b915d57e038f8bdf31c0b21be7e45
[ "BSD-3-Clause" ]
64
2015-12-24T14:24:42.000Z
2022-03-24T18:22:39.000Z
from io import StringIO from django.contrib.auth import SESSION_KEY from django.contrib.auth.models import AnonymousUser from django.contrib.sites.models import Site from django.http import SimpleCookie from django.test import RequestFactory, TestCase from django.utils.encoding import force_str from robots.models imp...
43.005682
87
0.647377
1886a66e3abf8f0198652762b3c06b67f8c9d129
992
py
Python
checkov/kubernetes/checks/resource/k8s/ApiServerAnonymousAuth.py
vangundy-jason-pfg/checkov
2fb50908f62390c98dda665f1fa94fe24806b654
[ "Apache-2.0" ]
null
null
null
checkov/kubernetes/checks/resource/k8s/ApiServerAnonymousAuth.py
vangundy-jason-pfg/checkov
2fb50908f62390c98dda665f1fa94fe24806b654
[ "Apache-2.0" ]
null
null
null
checkov/kubernetes/checks/resource/k8s/ApiServerAnonymousAuth.py
vangundy-jason-pfg/checkov
2fb50908f62390c98dda665f1fa94fe24806b654
[ "Apache-2.0" ]
null
null
null
from checkov.common.models.enums import CheckCategories, CheckResult from checkov.kubernetes.checks.resource.base_spec_check import BaseK8Check class ApiServerAnonymousAuth(BaseK8Check): def __init__(self): id = "CKV_K8S_68" name = "Ensure that the --anonymous-auth argument is set to false" ...
38.153846
113
0.678427
e53935bde8fb4d81e94da1c931ec952bd8f8f504
4,275
py
Python
examples/OpenCV/face_recognize_facenet/face_record.py
ParisNeo/FaceAnalyzer
85e967a1dfff09a8c76d5a14801760140d198292
[ "MIT" ]
4
2021-11-22T03:34:42.000Z
2022-01-12T12:29:01.000Z
examples/OpenCV/face_recognize_facenet/face_record.py
victorgirleanu/FaceAnalyzer
afb0e326e79819a1fbafe1c71a5e080e8a2eb30e
[ "MIT" ]
4
2021-12-08T03:47:49.000Z
2022-02-22T19:56:53.000Z
examples/OpenCV/face_recognize_facenet/face_record.py
victorgirleanu/FaceAnalyzer
afb0e326e79819a1fbafe1c71a5e080e8a2eb30e
[ "MIT" ]
3
2021-12-08T03:36:35.000Z
2022-01-28T23:23:24.000Z
"""============= Example : extract_record.py Author : Saifeddine ALOUI (ParisNeo) Description : Records a person's face in order to recognize it later. Download the facenet model from here : https://drive.google.com/file/d/1PZ_6Zsy1Vb0s0JmjEmVd8FS99zoMCiN1/view?usp=sharing Press s t...
33.398438
144
0.649825
3c2c3707e16a34f47b63a0a8070559c60f0a523b
698
py
Python
sensordisplayProject/manage.py
ylf2002/sensor_display
660751e461b1afbf0cd6fd97baa3f8bc05698848
[ "MIT" ]
null
null
null
sensordisplayProject/manage.py
ylf2002/sensor_display
660751e461b1afbf0cd6fd97baa3f8bc05698848
[ "MIT" ]
null
null
null
sensordisplayProject/manage.py
ylf2002/sensor_display
660751e461b1afbf0cd6fd97baa3f8bc05698848
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): """Run administrative tasks.""" os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'sensordisplayProject.settings') try: from django.core.management import execute_from_comma...
30.347826
85
0.663324
97646306bc56e24fe7a3c6e34c73afb8808456ec
691
py
Python
3490/answer.py
thvinmei/codeiq
e41987505d7af70e925ece39aaa74257ea9b6ff0
[ "MIT" ]
null
null
null
3490/answer.py
thvinmei/codeiq
e41987505d7af70e925ece39aaa74257ea9b6ff0
[ "MIT" ]
null
null
null
3490/answer.py
thvinmei/codeiq
e41987505d7af70e925ece39aaa74257ea9b6ff0
[ "MIT" ]
null
null
null
if __name__ == '__main__': N= int(input()) if N == 1: print('m') elif (N%2)==0: print('invalid') else: for i in range(N): #両端の処理 line='' horizone=['.'] * (N) for j in range(N): if j==0 or j==(N-1): ...
25.592593
42
0.314038
d75260228dc259b55e130130ad0f05aab0dc1e03
665
py
Python
liquid_node/process.py
thifranc/node
ffdd75056ca9d9a6e9b6f3fb4a0b2bda6af11d14
[ "MIT" ]
4
2020-03-18T06:51:52.000Z
2021-08-09T20:17:57.000Z
liquid_node/process.py
thifranc/node
ffdd75056ca9d9a6e9b6f3fb4a0b2bda6af11d14
[ "MIT" ]
120
2019-02-08T05:55:44.000Z
2021-11-24T09:34:14.000Z
liquid_node/process.py
admariner/node
611795e17aa52c50795cb81c1ffebd641dcab51b
[ "MIT" ]
9
2019-01-25T12:35:28.000Z
2022-01-11T15:40:05.000Z
import logging import subprocess log = logging.getLogger(__name__) def run(cmd, echo=True, **kwargs): """Run the given command in a subprocess and return the captured output.""" if echo: log.debug("+ %s", cmd) kwargs.setdefault('shell', False) return subprocess.check_output(cmd, **kwargs).d...
23.75
80
0.658647
f9bc5cf3f05b5d917e3771959b3c4e52aebb60ac
2,855
py
Python
tests/test_visitors/test_ast/test_complexity/test_function/test_local_variables.py
JazabC/wemake-python-styleguide
0aacfc37810f402815512072b92190cc6af47dda
[ "MIT" ]
1
2020-05-21T17:58:52.000Z
2020-05-21T17:58:52.000Z
tests/test_visitors/test_ast/test_complexity/test_function/test_local_variables.py
JazabC/wemake-python-styleguide
0aacfc37810f402815512072b92190cc6af47dda
[ "MIT" ]
null
null
null
tests/test_visitors/test_ast/test_complexity/test_function/test_local_variables.py
JazabC/wemake-python-styleguide
0aacfc37810f402815512072b92190cc6af47dda
[ "MIT" ]
1
2021-02-14T06:00:44.000Z
2021-02-14T06:00:44.000Z
import pytest from wemake_python_styleguide.visitors.ast.complexity.function import ( FunctionComplexityVisitor, TooManyLocalsViolation, ) function_with_locals = """ def function(): local_variable1 = 1 local_variable2 = 2 _ = None # `_` is not counted """ function_with_locals_redefinition = """ ...
23.791667
79
0.709982
d97d1b88ade01b67c5f80bbed772ef696d9c99ba
154
py
Python
pythecamp/__init__.py
peoplefund-tech/pythecamp
1dbb65c2bc8e726efffd767fccbba9ff0332ba55
[ "MIT" ]
7
2019-09-07T15:15:37.000Z
2019-11-10T14:20:20.000Z
pythecamp/__init__.py
peoplefund-tech/pythecamp
1dbb65c2bc8e726efffd767fccbba9ff0332ba55
[ "MIT" ]
null
null
null
pythecamp/__init__.py
peoplefund-tech/pythecamp
1dbb65c2bc8e726efffd767fccbba9ff0332ba55
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from .pythecamp import TheCampClient __author__ = """Youngmin Koo""" __email__ = 'youngminz.kr@gmail.com' __version__ = '0.1.0'
19.25
36
0.681818
040bef0e4f937249d0843e2aa1d092f43e1802ea
2,731
py
Python
ariadne/contrib/stringmatcher.py
mobashgr/inception-external-recommender
3cbcd69a0cc252f4c128c6353df9536eb5eb8bac
[ "Apache-2.0" ]
30
2019-12-03T21:41:44.000Z
2022-02-23T16:11:24.000Z
ariadne/contrib/stringmatcher.py
mobashgr/inception-external-recommender
3cbcd69a0cc252f4c128c6353df9536eb5eb8bac
[ "Apache-2.0" ]
31
2019-10-22T19:59:09.000Z
2022-02-07T19:41:42.000Z
ariadne/contrib/stringmatcher.py
mobashgr/inception-external-recommender
3cbcd69a0cc252f4c128c6353df9536eb5eb8bac
[ "Apache-2.0" ]
11
2019-11-01T06:30:40.000Z
2022-03-21T16:01:07.000Z
import logging from collections import defaultdict from itertools import chain from typing import List from cassis import Cas from sklearn.preprocessing import LabelEncoder from rust_fst import Map import more_itertools as mit from ariadne.classifier import Classifier from ariadne.contrib.inception_util import cr...
31.390805
115
0.626144
2db97790f445b445f7a0fdba944e18e6bc9e2602
5,294
py
Python
kge/model/conve.py
cthoyt/kge
0fb1955054ac9df1f312e2179ab8819bd4a2260d
[ "MIT" ]
null
null
null
kge/model/conve.py
cthoyt/kge
0fb1955054ac9df1f312e2179ab8819bd4a2260d
[ "MIT" ]
null
null
null
kge/model/conve.py
cthoyt/kge
0fb1955054ac9df1f312e2179ab8819bd4a2260d
[ "MIT" ]
null
null
null
import torch import math from kge import Config, Dataset from kge.model.kge_model import RelationalScorer, KgeModel class ConvEScorer(RelationalScorer): r"""Implementation of the ConvE KGE scorer. Must be used with ReciprocalRelationsModel.""" def __init__(self, config: Config, dataset: Dataset, config...
39.214815
91
0.602191
3e531de42be351910d4d72ca9fbba1f254c590de
3,516
py
Python
debug_logger.py
realtwister/LearnedEvolution
2ec49b50a49acae9693cfb05ac114dfbcc4aa337
[ "MIT" ]
null
null
null
debug_logger.py
realtwister/LearnedEvolution
2ec49b50a49acae9693cfb05ac114dfbcc4aa337
[ "MIT" ]
null
null
null
debug_logger.py
realtwister/LearnedEvolution
2ec49b50a49acae9693cfb05ac114dfbcc4aa337
[ "MIT" ]
null
null
null
import tensorflow as tf; import logging; import os; from learnedevolution.tensorboard.algorithm_logger import AlgorithmLogger; from learnedevolution.tensorboard.generator_logger import GeneratorLogger; import learnedevolution as lev; from learnedevolution.rewards.differential_reward import DifferentialReward; from le...
31.392857
151
0.767918
35f5cc3059c181eaaa4d71fabbcc003cf521325a
878
py
Python
NVIDIA/benchmarks/maskrcnn/implementations/pytorch/maskrcnn_benchmark/data/transforms/build.py
goswamig/training_results_v0.7
4278ce8a0f3d4db6b5e6054277724ca36278d7a3
[ "Apache-2.0" ]
48
2020-07-29T18:09:23.000Z
2021-10-09T01:53:33.000Z
NVIDIA/benchmarks/maskrcnn/implementations/pytorch/maskrcnn_benchmark/data/transforms/build.py
goswamig/training_results_v0.7
4278ce8a0f3d4db6b5e6054277724ca36278d7a3
[ "Apache-2.0" ]
9
2021-04-02T02:28:07.000Z
2022-03-26T18:23:59.000Z
NVIDIA/benchmarks/maskrcnn/implementations/pytorch/maskrcnn_benchmark/data/transforms/build.py
lablup/training_results_v0.7
f5bb59aa0f8b18b602763abe47d1d24d0d54b197
[ "Apache-2.0" ]
42
2020-08-01T06:41:24.000Z
2022-01-20T10:33:08.000Z
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. from . import transforms as T def build_transforms(cfg, is_train=True, is_fp16=True): if is_train: min_size = cfg.INPUT.MIN_SIZE_TRAIN max_size = cfg.INPUT.MAX_SIZE_TRAIN flip_prob = 0.5 # cfg.INPUT.FLIP_PROB_TRAIN ...
28.322581
79
0.634396
a458e979f6ee02012627b09583750a82e8ddc492
2,313
py
Python
docs/conf.py
kvnkho/triad
371a5e84945b2203f1108598b8e67136414589a3
[ "Apache-2.0" ]
6
2020-10-04T23:01:33.000Z
2021-11-08T11:46:39.000Z
docs/conf.py
kvnkho/triad
371a5e84945b2203f1108598b8e67136414589a3
[ "Apache-2.0" ]
16
2020-09-28T21:58:08.000Z
2021-12-29T07:09:03.000Z
docs/conf.py
kvnkho/triad
371a5e84945b2203f1108598b8e67136414589a3
[ "Apache-2.0" ]
1
2020-10-10T20:36:43.000Z
2020-10-10T20:36:43.000Z
# flake8: noqa # Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup --------------------------------------------------------...
35.045455
79
0.681366
1c1dadee8e898ad0fd12d64c6af40b2ee1c8a07b
13,772
py
Python
Project/app.py
eyupbarlas/Momma-s-Kitchen-Web-App
8acd23b3efce39de9e6e886c61537a92c8909e98
[ "MIT" ]
1
2020-12-01T18:53:11.000Z
2020-12-01T18:53:11.000Z
Project/app.py
eyupbarlas/Momma-s-Kitchen-Web-App
8acd23b3efce39de9e6e886c61537a92c8909e98
[ "MIT" ]
null
null
null
Project/app.py
eyupbarlas/Momma-s-Kitchen-Web-App
8acd23b3efce39de9e6e886c61537a92c8909e98
[ "MIT" ]
null
null
null
from enum import unique import flask from flask_sqlalchemy import SQLAlchemy from flask import Flask, app, render_template, flash, redirect, url_for, session, request from functools import wraps from datetime import datetime, timedelta from sqlalchemy.orm import query #* login control def login_required(f): @wrap...
35.494845
171
0.659164
643aa50653a06c5ec50e10c369ac2e05c04353ec
804
py
Python
vocapp/manage.py
zhengjiejiang/vocapp-front
f9625880ac3f5577a385d7f882b995b4ca55ed97
[ "BSD-3-Clause" ]
null
null
null
vocapp/manage.py
zhengjiejiang/vocapp-front
f9625880ac3f5577a385d7f882b995b4ca55ed97
[ "BSD-3-Clause" ]
null
null
null
vocapp/manage.py
zhengjiejiang/vocapp-front
f9625880ac3f5577a385d7f882b995b4ca55ed97
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "vocapp.settings") try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for some other reason. Ensure that the ...
34.956522
77
0.641791
57b4ccdd6ff87659118474adc1ddadb21b66079d
280
py
Python
python _codes/index.py
thakur8630/Coding_codes
8475a27bf328823c1387d0481ee3102d3694cc6f
[ "MIT" ]
null
null
null
python _codes/index.py
thakur8630/Coding_codes
8475a27bf328823c1387d0481ee3102d3694cc6f
[ "MIT" ]
null
null
null
python _codes/index.py
thakur8630/Coding_codes
8475a27bf328823c1387d0481ee3102d3694cc6f
[ "MIT" ]
null
null
null
n=int(input("enter the number..") n=N; rev=0; while(n>0): R=n/10; rev=rev*10+R; n=n//10; if(N==rev): print("this is a palindrome number....") else: print("this is not palindrome number....")
23.333333
53
0.432143
81ea736468b7d213023c65bceb26e2a511a3433a
2,966
py
Python
test/test_version_converter_integration.py
essink/python-odml
7591c077d5e1baf9b36973ed550b877996dfa44f
[ "BSD-4-Clause" ]
23
2017-01-30T07:13:40.000Z
2021-02-16T08:10:09.000Z
test/test_version_converter_integration.py
essink/python-odml
7591c077d5e1baf9b36973ed550b877996dfa44f
[ "BSD-4-Clause" ]
373
2015-02-13T19:15:30.000Z
2021-12-06T11:25:21.000Z
test/test_version_converter_integration.py
essink/python-odml
7591c077d5e1baf9b36973ed550b877996dfa44f
[ "BSD-4-Clause" ]
26
2015-06-02T13:27:24.000Z
2022-03-20T19:13:11.000Z
""" This file tests proper conversion of complex v1.0 odML files to v1.1 with all supported file formats. """ import os import shutil import unittest from odml import load from odml.tools.converters import VersionConverter as VC from .util import create_test_dir, TEST_RESOURCES_DIR as RES_DIR class TestVersionConve...
34.488372
76
0.67296
193fc4cda65da867863d6058cbed4b9915269331
5,084
py
Python
rcnn/modeling/rpn/rpn.py
yf19970118/OPLD-Pytorch
4939bf62587da4533276fda20db36bb019575511
[ "MIT" ]
25
2020-08-28T07:28:16.000Z
2022-03-06T06:18:56.000Z
rcnn/modeling/rpn/rpn.py
yf19970118/OPLD-Pytorch
4939bf62587da4533276fda20db36bb019575511
[ "MIT" ]
5
2020-12-22T07:42:50.000Z
2021-07-12T01:49:57.000Z
rcnn/modeling/rpn/rpn.py
yf19970118/OPLD-Pytorch
4939bf62587da4533276fda20db36bb019575511
[ "MIT" ]
4
2020-12-19T03:14:26.000Z
2021-12-17T12:38:37.000Z
import torch import torch.nn.functional as F from torch import nn from rcnn.utils.box_coder import BoxCoder from rcnn.modeling.rpn.loss import make_rpn_loss_evaluator from rcnn.modeling.rpn.anchor_generator import make_anchor_generator from rcnn.modeling.rpn.inference import make_rpn_postprocessor from rcnn.core.confi...
42.016529
97
0.665028
9fa29a2492315f79726f986cd6b1198e7326cd83
11,070
py
Python
plugin.video.catchuptvandmore/resources/lib/channels/fr/mytf1.py
akuala/REPO.KUALA
ea9a157025530d2ce8fa0d88431c46c5352e89d4
[ "Apache-2.0" ]
2
2018-11-02T19:55:30.000Z
2020-08-14T02:22:20.000Z
plugin.video.catchuptvandmore/resources/lib/channels/fr/mytf1.py
akuala/REPO.KUALA
ea9a157025530d2ce8fa0d88431c46c5352e89d4
[ "Apache-2.0" ]
null
null
null
plugin.video.catchuptvandmore/resources/lib/channels/fr/mytf1.py
akuala/REPO.KUALA
ea9a157025530d2ce8fa0d88431c46c5352e89d4
[ "Apache-2.0" ]
3
2019-12-17T20:47:00.000Z
2021-02-11T19:03:59.000Z
# -*- coding: utf-8 -*- """ Catch-up TV & More Original work (C) JUL1EN094, SPM, SylvainCecchetto Copyright (C) 2016 SylvainCecchetto This file is part of Catch-up TV & More. Catch-up TV & More is free software; you can redistribute it and/or modify it under the terms of the GNU General Publi...
35.031646
218
0.626378
f84db39ffe577793167b6ecb01ab84cae546de73
2,220
py
Python
task6_eval.py
xzwj/NLPCC2018ShardTask6
fd6a323333cad6945abe8c7855494987377bfc73
[ "Apache-2.0" ]
1
2020-03-12T14:31:57.000Z
2020-03-12T14:31:57.000Z
task6_eval.py
xzwj/NLPCC2018ShardTask6
fd6a323333cad6945abe8c7855494987377bfc73
[ "Apache-2.0" ]
null
null
null
task6_eval.py
xzwj/NLPCC2018ShardTask6
fd6a323333cad6945abe8c7855494987377bfc73
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python #coding=utf8 import csv import math import sys def compute_position_weighted_precision(correct_num, predict_num): assert(len(correct_num) == len(predict_num)) weighted_correct = 0.0 weighted_predict = 0.0 for i in xrange(len(correct_num)): weighted_correct += correct_nu...
31.714286
77
0.596396
34fe14aed3590e216ee9d10a1282e5b5851695d6
3,741
py
Python
final/st-screener.py
jgardezi/BATrader
6f032305db4e699b7fcf2d5300102381ad2bde8b
[ "Apache-2.0" ]
1
2021-03-24T03:37:22.000Z
2021-03-24T03:37:22.000Z
final/st-screener.py
jgardezi/BATrader
6f032305db4e699b7fcf2d5300102381ad2bde8b
[ "Apache-2.0" ]
null
null
null
final/st-screener.py
jgardezi/BATrader
6f032305db4e699b7fcf2d5300102381ad2bde8b
[ "Apache-2.0" ]
1
2022-02-18T21:38:56.000Z
2022-02-18T21:38:56.000Z
############################################################################### # # Copyright (C) 2015, 2016 Daniel Rodriguez # # 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 3 o...
34.638889
79
0.609997
8619c3691b5df62659f00b331a4fbb50733f1c51
307
py
Python
albow/vectors.py
hasii2011/albow-python-3
04b9d42705b370b62f0e49d10274eebf3ac54bc1
[ "MIT" ]
6
2019-04-30T23:50:39.000Z
2019-11-04T06:15:02.000Z
albow/vectors.py
hasii2011/albow-python-3
04b9d42705b370b62f0e49d10274eebf3ac54bc1
[ "MIT" ]
73
2019-05-12T18:43:14.000Z
2021-04-13T19:19:03.000Z
albow/vectors.py
hasii2011/albow-python-3
04b9d42705b370b62f0e49d10274eebf3ac54bc1
[ "MIT" ]
null
null
null
try: from Numeric import add, subtract, maximum except ImportError: import operator def add(x, y): return map(operator.add, x, y) def subtract(x, y): return map(operator.sub, x, y) def maximum(*args): result = args[0] for x in args[1:]: result = map(max, result, x) return result
15.35
43
0.654723
265f6785c8be50c44f5916fa524b952c1737fccd
698
py
Python
exercicios069.py
Capcode98/exercicios-PYTHON3-MUNDO2
a50cc4d7bca28d2f5762559ac34343deb237fe78
[ "MIT" ]
null
null
null
exercicios069.py
Capcode98/exercicios-PYTHON3-MUNDO2
a50cc4d7bca28d2f5762559ac34343deb237fe78
[ "MIT" ]
null
null
null
exercicios069.py
Capcode98/exercicios-PYTHON3-MUNDO2
a50cc4d7bca28d2f5762559ac34343deb237fe78
[ "MIT" ]
null
null
null
ch = 0 mm20 = 0 pm18 = 0 while True: nome = str(input('Qual seu nome? ')).strip().lower().capitalize() idade = int(input('Qual sua idade? ')) sexo = '' while sexo != 'M' and sexo != 'F': sexo = str(input('Qual seu sexo?[M/F] ')).strip().upper() if idade < 20 and sexo == 'F': mm20 += ...
30.347826
97
0.511461
6733ceb5afc98b20913577384ba84b081ca4a921
4,314
py
Python
tencentcloud/tat/v20201028/errorcodes.py
PlasticMem/tencentcloud-sdk-python
666db85623d51d640a165907a19aef5fba53b38d
[ "Apache-2.0" ]
null
null
null
tencentcloud/tat/v20201028/errorcodes.py
PlasticMem/tencentcloud-sdk-python
666db85623d51d640a165907a19aef5fba53b38d
[ "Apache-2.0" ]
null
null
null
tencentcloud/tat/v20201028/errorcodes.py
PlasticMem/tencentcloud-sdk-python
666db85623d51d640a165907a19aef5fba53b38d
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf8 -*- # Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. 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...
33.184615
125
0.84956
56b2bf29fa91bdc25bc5bb23600061bbaa9dde2a
870
py
Python
isi_sdk_8_0_1/test/test_worm_domains.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
24
2018-06-22T14:13:23.000Z
2022-03-23T01:21:26.000Z
isi_sdk_8_0_1/test/test_worm_domains.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
46
2018-04-30T13:28:22.000Z
2022-03-21T21:11:07.000Z
isi_sdk_8_0_1/test/test_worm_domains.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
29
2018-06-19T00:14:04.000Z
2022-02-08T17:51:19.000Z
# coding: utf-8 """ Isilon SDK Isilon SDK - Language bindings for the OneFS API # noqa: E501 OpenAPI spec version: 4 Contact: sdk@isilon.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import isi_sdk_8_0_1 from i...
21.219512
79
0.694253
edf7808b3d428262cf52828fd2f088f7544f6af7
47
py
Python
vimbaPy/__init__.py
zibbini/vimbaPy
2a197314a00d4be21498a7ab02092658429721e8
[ "MIT" ]
null
null
null
vimbaPy/__init__.py
zibbini/vimbaPy
2a197314a00d4be21498a7ab02092658429721e8
[ "MIT" ]
null
null
null
vimbaPy/__init__.py
zibbini/vimbaPy
2a197314a00d4be21498a7ab02092658429721e8
[ "MIT" ]
null
null
null
from ._pymba import * # __version__ = '0.2.1'
11.75
23
0.638298
3ec78ce52c6e5764de2908b96e8b07fc2abb83bd
60,971
py
Python
pandas/core/reshape/merge.py
xhochy/pandas
3f3b4e0bc15107153167ec605b45676113ffb9c1
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
pandas/core/reshape/merge.py
xhochy/pandas
3f3b4e0bc15107153167ec605b45676113ffb9c1
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
pandas/core/reshape/merge.py
xhochy/pandas
3f3b4e0bc15107153167ec605b45676113ffb9c1
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
2
2019-03-08T19:59:05.000Z
2020-09-27T03:18:37.000Z
""" SQL-style merge routines """ import copy import warnings import string import numpy as np from pandas.compat import range, lzip, zip, map, filter import pandas.compat as compat from pandas import (Categorical, DataFrame, Index, MultiIndex, Timedelta) from pandas.core.frame import _merge_doc f...
37.405521
79
0.555428
b5b018fde808a8f845021671d96fd7a980f03034
2,673
py
Python
week_1/2_docker_sql/nice_pipeline.py
mbaeum/data_engineer_zoomcamp
20a4447dc523b17b7953be78db6cb5b5ff3966ca
[ "MIT" ]
null
null
null
week_1/2_docker_sql/nice_pipeline.py
mbaeum/data_engineer_zoomcamp
20a4447dc523b17b7953be78db6cb5b5ff3966ca
[ "MIT" ]
null
null
null
week_1/2_docker_sql/nice_pipeline.py
mbaeum/data_engineer_zoomcamp
20a4447dc523b17b7953be78db6cb5b5ff3966ca
[ "MIT" ]
null
null
null
from pathlib import Path import click from typing import Iterator import pandas as pd from sqlalchemy import create_engine from sqlalchemy.engine import Engine from dataclasses import dataclass @dataclass class S3Fetcher: path: str bucket: str = "nyc-tlc" base: str = "https://s3.amazonaws.com" iterato...
27.556701
86
0.627759
2e0d0b714fd0f130976f95ae6da7fb8b763ff993
169
py
Python
x_rebirth_station_calculator/station_data/wares/quantum_tubes.py
Phipsz/XRebirthStationCalculator
ac31c2f5816be34a7df2d7c4eb4bd5e01f7ff835
[ "MIT" ]
1
2016-04-17T11:00:22.000Z
2016-04-17T11:00:22.000Z
x_rebirth_station_calculator/station_data/wares/quantum_tubes.py
Phipsz/XRebirthStationCalculator
ac31c2f5816be34a7df2d7c4eb4bd5e01f7ff835
[ "MIT" ]
null
null
null
x_rebirth_station_calculator/station_data/wares/quantum_tubes.py
Phipsz/XRebirthStationCalculator
ac31c2f5816be34a7df2d7c4eb4bd5e01f7ff835
[ "MIT" ]
null
null
null
from x_rebirth_station_calculator.station_data.station_base import Ware names = {'L044': 'Quantum Tubes', 'L049': 'Quantumröhren'} QuantumTubes = Ware(names)
24.142857
71
0.739645
f0d3ab39c7eb81bae95623c7de853f7416b00b7f
10,144
py
Python
setup.py
devos50/coincurve
ee1d527dc2a2368383f38f8e6d17cb05d2e9842f
[ "Apache-2.0", "MIT" ]
113
2017-03-28T18:49:24.000Z
2022-03-06T18:01:12.000Z
setup.py
devos50/coincurve
ee1d527dc2a2368383f38f8e6d17cb05d2e9842f
[ "Apache-2.0", "MIT" ]
92
2017-04-16T09:04:23.000Z
2022-03-31T08:11:41.000Z
setup.py
devos50/coincurve
ee1d527dc2a2368383f38f8e6d17cb05d2e9842f
[ "Apache-2.0", "MIT" ]
52
2017-04-11T10:31:55.000Z
2022-03-30T12:58:27.000Z
import errno import os import os.path import platform import shutil import subprocess import tarfile from distutils import log from distutils.command.build_clib import build_clib as _build_clib from distutils.command.build_ext import build_ext as _build_ext from distutils.errors import DistutilsError from io import Byt...
32.617363
109
0.626577
f52c006082ae8b3b472a02bfcdda67db1194d307
1,899
py
Python
tests/test_events.py
jzalger/ids-tools
fde1edd984841d4f99d7094741a3ce9fa1699c21
[ "MIT" ]
null
null
null
tests/test_events.py
jzalger/ids-tools
fde1edd984841d4f99d7094741a3ce9fa1699c21
[ "MIT" ]
1
2020-07-03T03:15:49.000Z
2020-07-03T03:15:49.000Z
tests/test_events.py
jzalger/ids-tools
fde1edd984841d4f99d7094741a3ce9fa1699c21
[ "MIT" ]
null
null
null
""" Contains sample Eve JSON events for unit testing. """ import json basic_alert_json = """{ "timestamp": "2009-11-24T21:27:09.534255", "event_type": "alert", "src_ip": "192.168.2.7", "src_port": 1041, "dest_ip": "x.x.250.50", "dest_port": 80, "proto": "TCP", "alert": { "action": "allowed", "g...
20.868132
67
0.542391
bbc63633c51668a25d45786f8304b87ed1ad1fca
3,759
py
Python
homeassistant/components/sensor/currencylayer.py
Tony763/home-assistant
fa1df2e015d76abfc6cfd7d795eb439130f5d0ea
[ "Apache-2.0" ]
1
2019-02-18T03:16:32.000Z
2019-02-18T03:16:32.000Z
homeassistant/components/sensor/currencylayer.py
Tony763/home-assistant
fa1df2e015d76abfc6cfd7d795eb439130f5d0ea
[ "Apache-2.0" ]
3
2021-09-08T03:29:36.000Z
2022-03-12T00:59:48.000Z
homeassistant/components/sensor/currencylayer.py
akhan69/home-assistant
fb460a325e25fdea9043136bccaf546ec1c04eab
[ "Apache-2.0" ]
1
2019-09-28T07:06:08.000Z
2019-09-28T07:06:08.000Z
""" Support for currencylayer.com exchange rates service. For more details about this platform, please refer to the documentation at https://home-assistant.io/components/sensor.currencylayer/ """ from datetime import timedelta import logging import requests import voluptuous as vol import homeassistant.helpers.confi...
29.139535
74
0.643522
3bb7c56ebfb2d49fd0000d75e584e458d31152ce
2,885
py
Python
flake8_level12/mock_autospec.py
level12/flake8-level12
a4c4e68aed93a217fb6c700b26593bd4c13bc969
[ "BSD-3-Clause" ]
1
2022-02-20T12:32:16.000Z
2022-02-20T12:32:16.000Z
flake8_level12/mock_autospec.py
level12/flake8-level12
a4c4e68aed93a217fb6c700b26593bd4c13bc969
[ "BSD-3-Clause" ]
6
2018-04-12T20:06:23.000Z
2021-11-15T19:29:26.000Z
flake8_level12/mock_autospec.py
level12/flake8-level12
a4c4e68aed93a217fb6c700b26593bd4c13bc969
[ "BSD-3-Clause" ]
null
null
null
import ast from .version import version ERROR_MESSAGES = { 'autospec_missing': 'M100 autospec keyword arg missing', 'autospec_wrong': 'M101 autospec keyword should be True', 'spec_set_missing': 'M102 spec_set keyword arg missing', 'spec_set_wrong': 'M103 spec_set keyword should be True', } ...
35.617284
93
0.570884
82e71f94d51c382d9184e9a85b1d3c8e2ea025dc
1,368
py
Python
apis/api_main.py
chiro2001/do-cli
02e700efa02a624c7deb6e39c8fdc48fd59d10d7
[ "MIT" ]
null
null
null
apis/api_main.py
chiro2001/do-cli
02e700efa02a624c7deb6e39c8fdc48fd59d10d7
[ "MIT" ]
null
null
null
apis/api_main.py
chiro2001/do-cli
02e700efa02a624c7deb6e39c8fdc48fd59d10d7
[ "MIT" ]
null
null
null
import json from flask import Flask, Response from flask_cors import CORS from flask_restful import Resource, Api from utils.logger import logger from utils.make_result import make_result from utils.docs import get_class_docs from do_api import DoCliAPI class MainAPI(Resource): """ Document test """ ...
21.714286
120
0.642544
1a2701dd304a94060db1e8319f08cf57ad4109a7
9,319
py
Python
lib/googlecloudsdk/command_lib/logs/stream.py
bshaffer/google-cloud-sdk
f587382fd112f238c0d6d5ca3dab8f52d2b5c5f9
[ "Apache-2.0" ]
null
null
null
lib/googlecloudsdk/command_lib/logs/stream.py
bshaffer/google-cloud-sdk
f587382fd112f238c0d6d5ca3dab8f52d2b5c5f9
[ "Apache-2.0" ]
null
null
null
lib/googlecloudsdk/command_lib/logs/stream.py
bshaffer/google-cloud-sdk
f587382fd112f238c0d6d5ca3dab8f52d2b5c5f9
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2016 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
33.521583
80
0.681726
3191d9db15210e628c7e7a52381ec7bb75f5e131
4,486
py
Python
tensorlayer/layers/merge.py
Howdy-Personally/tensorlayer-master
bb92e4e187419d5e7ded8331d5c7cbf5615ee744
[ "Apache-2.0" ]
4,484
2017-12-27T03:28:35.000Z
2021-12-02T14:42:58.000Z
tensorlayer/layers/merge.py
Howdy-Personally/tensorlayer-master
bb92e4e187419d5e7ded8331d5c7cbf5615ee744
[ "Apache-2.0" ]
549
2017-12-28T07:19:52.000Z
2021-11-05T02:34:20.000Z
tensorlayer/layers/merge.py
Howdy-Personally/tensorlayer-master
bb92e4e187419d5e7ded8331d5c7cbf5615ee744
[ "Apache-2.0" ]
1,076
2017-12-27T12:25:46.000Z
2021-11-24T09:12:36.000Z
#! /usr/bin/python # -*- coding: utf-8 -*- import tensorflow as tf from tensorlayer import logging from tensorlayer.layers.core import Layer __all__ = [ 'Concat', 'Elementwise', ] class Concat(Layer): """A layer that concats multiple tensors according to given axis. Parameters ---------- c...
31.152778
117
0.58872
2daa4c95926931b89da9348780696f1ee1815703
221
py
Python
trello2kanboard/__init__.py
wiltonsr/trello2kanboard
b714aa6f9a81c32a966418d99421b4a05ccd1531
[ "MIT" ]
9
2019-04-03T23:58:14.000Z
2021-06-22T12:34:52.000Z
trello2kanboard/__init__.py
wiltonsr/trello2kanboard
b714aa6f9a81c32a966418d99421b4a05ccd1531
[ "MIT" ]
3
2020-01-14T18:23:13.000Z
2021-11-11T18:59:30.000Z
trello2kanboard/__init__.py
wiltonsr/trello2kanboard
b714aa6f9a81c32a966418d99421b4a05ccd1531
[ "MIT" ]
1
2020-01-12T15:20:18.000Z
2020-01-12T15:20:18.000Z
# -*- coding: utf-8 -*- """ trello2kanboard ~~~~~ Click is a simple Python module for importing Trello projects from JSON files using the Kanboard API. :license: MIT, see LICENSE for more details. """ __version__ = '1.3'
22.1
77
0.705882
62b686fff0f61a13c48220565553d7e63067739a
4,023
py
Python
utils/shortest_distance_walker.py
ghimiremukesh/Flatland_2020_Competition
0006c04004f07938fdc1c83fdb02c9975e15d6a3
[ "MIT" ]
1
2022-01-17T07:21:33.000Z
2022-01-17T07:21:33.000Z
utils/shortest_distance_walker.py
ghimiremukesh/Flatland_2020_Competition
0006c04004f07938fdc1c83fdb02c9975e15d6a3
[ "MIT" ]
null
null
null
utils/shortest_distance_walker.py
ghimiremukesh/Flatland_2020_Competition
0006c04004f07938fdc1c83fdb02c9975e15d6a3
[ "MIT" ]
null
null
null
import numpy as np from flatland.core.grid.grid4_utils import get_new_position from flatland.envs.rail_env import RailEnv, RailEnvActions from flatland.envs.rail_env import fast_count_nonzero, fast_argmax class ShortestDistanceWalker: def __init__(self, env: RailEnv): self.env = env def wal...
45.715909
117
0.640318
de8d84e323ec4ddd214957912560f0e642d0436a
1,004
py
Python
sandbox/src1/TCSE3-3rd-examples/src/py/intro/datatrans3b.py
sniemi/SamPy
e048756feca67197cf5f995afd7d75d8286e017b
[ "BSD-2-Clause" ]
5
2016-05-28T14:12:28.000Z
2021-04-22T10:23:12.000Z
sandbox/src1/TCSE3-3rd-examples/src/py/intro/datatrans3b.py
sniemi/SamPy
e048756feca67197cf5f995afd7d75d8286e017b
[ "BSD-2-Clause" ]
null
null
null
sandbox/src1/TCSE3-3rd-examples/src/py/intro/datatrans3b.py
sniemi/SamPy
e048756feca67197cf5f995afd7d75d8286e017b
[ "BSD-2-Clause" ]
2
2015-07-13T10:04:10.000Z
2021-04-22T10:23:23.000Z
#!/usr/bin/env python import sys, math from numpy import * """ As datatrans2.py, but using NumPy arrays and the special TableIO module to increase the computational and I/O efficiency. """ try: import TableIO.TableIO as TableIO except: print """ The TableIO Python module was not found. Make sure it is accessib...
25.1
71
0.689243
d1069eb088f4a9cbce4a25d46a97c50bf21067dc
44,727
py
Python
tests/test_octodns_provider_cloudflare.py
soft-hue/dobra
2c8fe957fbb738ff0868751fbb5b7766438a676f
[ "MIT" ]
null
null
null
tests/test_octodns_provider_cloudflare.py
soft-hue/dobra
2c8fe957fbb738ff0868751fbb5b7766438a676f
[ "MIT" ]
null
null
null
tests/test_octodns_provider_cloudflare.py
soft-hue/dobra
2c8fe957fbb738ff0868751fbb5b7766438a676f
[ "MIT" ]
1
2020-05-28T17:09:24.000Z
2020-05-28T17:09:24.000Z
# # # from __future__ import absolute_import, division, print_function, \ unicode_literals from mock import Mock, call from os.path import dirname, join from requests import HTTPError from requests_mock import ANY, mock as requests_mock from six import text_type from unittest import TestCase from octodns.record ...
35.925301
79
0.478861
50bf49dd0a6e665436f6bad04f3baf6e35f318a9
3,972
py
Python
main.py
angelnm/nmt-keras-click
0deb0a4f23be3d77fa914372123627f504edd2b0
[ "MIT" ]
null
null
null
main.py
angelnm/nmt-keras-click
0deb0a4f23be3d77fa914372123627f504edd2b0
[ "MIT" ]
null
null
null
main.py
angelnm/nmt-keras-click
0deb0a4f23be3d77fa914372123627f504edd2b0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import print_function import argparse import ast import logging from config import load_parameters from config_online import load_parameters as load_parameters_online from data_engine.prepare_data import update_dataset_from_file from keras_wrapper.dataset import loadDataset from...
48.439024
120
0.626888
1de7cda9d1ad686cfdbc42122482cc4adf76beb9
32,779
py
Python
lib/hmmlearn/base.py
anntzer/hmmlearn
63292e098cc41b958fdd9cdd91bc36166bdb394c
[ "BSD-3-Clause" ]
null
null
null
lib/hmmlearn/base.py
anntzer/hmmlearn
63292e098cc41b958fdd9cdd91bc36166bdb394c
[ "BSD-3-Clause" ]
null
null
null
lib/hmmlearn/base.py
anntzer/hmmlearn
63292e098cc41b958fdd9cdd91bc36166bdb394c
[ "BSD-3-Clause" ]
null
null
null
import logging import string import sys from collections import deque import numpy as np from scipy import linalg, special from sklearn.base import BaseEstimator from sklearn.utils import check_array, check_random_state from . import _hmmc, _utils from .utils import normalize, log_normalize, log_mask_zero _log = lo...
38.070848
79
0.605723
144673b17c47d60d3b7558e2980204ac7abfe178
6,835
py
Python
wallee/api/label_description_service_api.py
bluedynamics/wallee-python-sdk
7f20df96d2c3dba3b1ca5236e8deca578819eea2
[ "Apache-2.0" ]
2
2020-01-16T13:24:06.000Z
2020-11-21T17:40:17.000Z
wallee/api/label_description_service_api.py
bluedynamics/wallee-python-sdk
7f20df96d2c3dba3b1ca5236e8deca578819eea2
[ "Apache-2.0" ]
4
2019-10-14T17:33:23.000Z
2021-10-01T14:49:11.000Z
wallee/api/label_description_service_api.py
bluedynamics/wallee-python-sdk
7f20df96d2c3dba3b1ca5236e8deca578819eea2
[ "Apache-2.0" ]
2
2019-10-15T14:17:10.000Z
2021-09-17T13:07:09.000Z
# coding: utf-8 from __future__ import absolute_import import six from wallee.api_client import ApiClient class LabelDescriptionServiceApi: def __init__(self, configuration): self.api_client = ApiClient(configuration=configuration) def all(self, **kwargs): """All This operation re...
33.019324
90
0.593124
f186772f2ace0faf252d99467ea53e6bf5f8190b
17,116
py
Python
signify/authenticode/signed_pe.py
gilbertbw/signify
b3e6951604c3bf516e74dbc3cc32e57f7b1c342f
[ "Apache-2.0" ]
26
2018-06-21T19:03:03.000Z
2022-03-30T14:55:02.000Z
signify/authenticode/signed_pe.py
gilbertbw/signify
b3e6951604c3bf516e74dbc3cc32e57f7b1c342f
[ "Apache-2.0" ]
28
2018-12-10T16:51:24.000Z
2022-03-09T22:17:12.000Z
signify/authenticode/signed_pe.py
gilbertbw/signify
b3e6951604c3bf516e74dbc3cc32e57f7b1c342f
[ "Apache-2.0" ]
10
2018-05-21T07:29:29.000Z
2021-08-31T13:46:36.000Z
#!/usr/bin/env python # This is a derivative, modified, work from the verify-sigs project. # Please refer to the LICENSE file in the distribution for more # information. Original filename: fingerprinter.py # # Parts of this file are licensed as follows: # # Copyright 2010 Google Inc. All Rights Reserved. # # Licensed ...
46.51087
131
0.618194
672b3010701e8233da42f7d54e91379c824217a1
1,256
py
Python
setup.py
padfoot999/flare-floss
625bfbec5e33e64b818c5c0d3f81c2c811281124
[ "Apache-2.0" ]
null
null
null
setup.py
padfoot999/flare-floss
625bfbec5e33e64b818c5c0d3f81c2c811281124
[ "Apache-2.0" ]
null
null
null
setup.py
padfoot999/flare-floss
625bfbec5e33e64b818c5c0d3f81c2c811281124
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import os try: from setuptools import setup except ImportError: from distutils.core import setup requirements = [ "q", "pyyaml", "tabulate", "vivisect", "plugnplay", "viv-utils", "enum34" ] # this sets __version__ # via: http://stacko...
22.428571
78
0.610669
dd40535f21365839696a711ceeb68ddd5d638252
2,860
py
Python
test/test_suite.py
jeffalbion/sqlalchemy-sqlany
f7b6622d8909ee67d41fc5c4c780f262c2b2f58a
[ "Apache-2.0" ]
8
2016-11-25T01:21:56.000Z
2022-03-08T06:06:55.000Z
test/test_suite.py
jeffalbion/sqlalchemy-sqlany
f7b6622d8909ee67d41fc5c4c780f262c2b2f58a
[ "Apache-2.0" ]
10
2015-09-09T18:54:40.000Z
2021-12-02T06:49:40.000Z
test/test_suite.py
jeffalbion/sqlalchemy-sqlany
f7b6622d8909ee67d41fc5c4c780f262c2b2f58a
[ "Apache-2.0" ]
11
2015-04-02T14:26:40.000Z
2022-01-13T13:10:27.000Z
from sqlalchemy.testing.suite import * from sqlalchemy.testing.suite import ComponentReflectionTest as _ComponentReflectionTest from sqlalchemy.testing.suite import InsertBehaviorTest as _InsertBehaviorTest from sqlalchemy.testing.suite import LimitOffsetTest as _LimitOffsetTest from sqlalchemy.testing.suite import Ro...
31.086957
88
0.67028
000793dd4fabd35612b15b1198f1de23e4629b34
3,467
py
Python
backend/tests/helpers.py
fief-dev/fief
cbfeec11da7a03aa345cb7ceb088b5d8ec9d6ab1
[ "MIT" ]
1
2022-02-13T17:39:42.000Z
2022-02-13T17:39:42.000Z
backend/tests/helpers.py
fief-dev/fief
cbfeec11da7a03aa345cb7ceb088b5d8ec9d6ab1
[ "MIT" ]
1
2022-02-13T14:46:24.000Z
2022-02-13T14:46:24.000Z
backend/tests/helpers.py
fief-dev/fief
cbfeec11da7a03aa345cb7ceb088b5d8ec9d6ab1
[ "MIT" ]
null
null
null
import json from datetime import datetime from typing import Dict, Optional, Tuple from furl import furl from jwcrypto import jwk, jwt from fief.crypto.id_token import get_validation_hash from fief.crypto.token import get_token_hash from fief.db import AsyncSession from fief.managers import AuthorizationCodeManager f...
34.67
87
0.727718
c0adf32b36a120c12578d86c98af66e31d3e0118
1,545
py
Python
fs/wrapfs/hidefs.py
jwilk-forks/pyfilesystem
44573f70e72b2cf378ee20d1c8bc2084ba975e16
[ "BSD-3-Clause" ]
314
2015-04-11T10:52:26.000Z
2022-01-26T07:00:30.000Z
fs/wrapfs/hidefs.py
jwilk-forks/pyfilesystem
44573f70e72b2cf378ee20d1c8bc2084ba975e16
[ "BSD-3-Clause" ]
94
2015-04-11T10:43:16.000Z
2021-10-06T11:21:26.000Z
fs/wrapfs/hidefs.py
jwilk-forks/pyfilesystem
44573f70e72b2cf378ee20d1c8bc2084ba975e16
[ "BSD-3-Clause" ]
95
2015-04-21T02:13:20.000Z
2021-11-26T05:07:59.000Z
""" fs.wrapfs.hidefs ================ Removes resources from a directory listing if they match a given set of wildcards """ from fs.wrapfs import WrapFS from fs.path import iteratepath from fs.errors import ResourceNotFoundError import re import fnmatch class HideFS(WrapFS): """FS wrapper that hides resources ...
28.090909
103
0.6589
bc2db664251592667b28112dfac37c07132acda0
352
py
Python
ibm_mq/datadog_checks/ibm_mq/utils.py
vbarbaresi/integrations-core
ab26ab1cd6c28a97c1ad1177093a93659658c7aa
[ "BSD-3-Clause" ]
1
2021-06-06T23:49:17.000Z
2021-06-06T23:49:17.000Z
ibm_mq/datadog_checks/ibm_mq/utils.py
vbarbaresi/integrations-core
ab26ab1cd6c28a97c1ad1177093a93659658c7aa
[ "BSD-3-Clause" ]
3
2021-01-27T04:56:40.000Z
2021-02-26T06:29:22.000Z
ibm_mq/datadog_checks/ibm_mq/utils.py
vbarbaresi/integrations-core
ab26ab1cd6c28a97c1ad1177093a93659658c7aa
[ "BSD-3-Clause" ]
1
2021-04-07T16:58:27.000Z
2021-04-07T16:58:27.000Z
# (C) Datadog, Inc. 2018-present # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) from datadog_checks.base import to_string def sanitize_strings(s): """ Sanitize strings from pymqi responses """ s = to_string(s) found = s.find('\x00') if found >= 0: s =...
22
59
0.642045
13f19b6c2d3b93438b3692feefa5602694eb8ce1
16,797
py
Python
test/thrift/handler_test.py
TheFoxAtWork/bartender
3049b2ecf919dc763681636119e333754b151d98
[ "MIT" ]
null
null
null
test/thrift/handler_test.py
TheFoxAtWork/bartender
3049b2ecf919dc763681636119e333754b151d98
[ "MIT" ]
1
2020-08-19T16:30:28.000Z
2020-08-19T16:30:28.000Z
test/thrift/handler_test.py
TheFoxAtWork/bartender
3049b2ecf919dc763681636119e333754b151d98
[ "MIT" ]
null
null
null
import unittest import mongoengine import pika.spec from mock import MagicMock, Mock, PropertyMock, patch, call from pika.exceptions import UnroutableError from pyrabbit2.http import HTTPError import bg_utils from bartender.thrift.handler import BartenderHandler from brewtils.errors import ModelValidationError clas...
42.740458
88
0.691195
2c2d485a12b86d11f7592bd084a9ccbacab8a4ad
611
py
Python
passwd.py
danya02/link-shortener
01958dcbbf90e9b71afe97ef68a35042e86032d8
[ "MIT" ]
null
null
null
passwd.py
danya02/link-shortener
01958dcbbf90e9b71afe97ef68a35042e86032d8
[ "MIT" ]
null
null
null
passwd.py
danya02/link-shortener
01958dcbbf90e9b71afe97ef68a35042e86032d8
[ "MIT" ]
null
null
null
import hashlib import getpass import secrets import hmac def hash_password(pw, salt): password = pw.encode() key = hashlib.scrypt(password, salt=salt, n=8192, p=1, r=8, dklen=32) return key def gen_stored(pw): salt = secrets.token_bytes(16) hash = hash_password(pw, salt) return hash.hex() + '|...
25.458333
73
0.685761
c042897ce4063c4e73de59387d421606ec9b0c60
2,684
py
Python
griffin_powermate/griffin_powermate.py
alexisfcote/griffin-powermate
e9ec09a5c2962a541f4e1ddf2ef61c2f4c18f6c1
[ "MIT" ]
null
null
null
griffin_powermate/griffin_powermate.py
alexisfcote/griffin-powermate
e9ec09a5c2962a541f4e1ddf2ef61c2f4c18f6c1
[ "MIT" ]
null
null
null
griffin_powermate/griffin_powermate.py
alexisfcote/griffin-powermate
e9ec09a5c2962a541f4e1ddf2ef61c2f4c18f6c1
[ "MIT" ]
null
null
null
from pywinusb.hid import HidDevice, HidDeviceFilter def find_griffin_powermate(): return GriffinPowermate.find_all() class GriffinPowermate(): VENDOR = 0x077d PRODUCT = 0x0410 MOVE_LEFT = -1 MOVE_RIGHT = 1 def __init__(self, raw_device): self.__device = raw_device self.__device.set_raw_data_handl...
29.173913
114
0.688525
7ddeeacd3f071034944a7eb17018ec4c2c5c13d6
53,367
py
Python
gpMgmt/bin/gppylib/operations/restore.py
shahin/gpdb
3909ad6b2d9bc06ed4659d2c9223fc12b9409a33
[ "PostgreSQL", "Apache-2.0" ]
null
null
null
gpMgmt/bin/gppylib/operations/restore.py
shahin/gpdb
3909ad6b2d9bc06ed4659d2c9223fc12b9409a33
[ "PostgreSQL", "Apache-2.0" ]
null
null
null
gpMgmt/bin/gppylib/operations/restore.py
shahin/gpdb
3909ad6b2d9bc06ed4659d2c9223fc12b9409a33
[ "PostgreSQL", "Apache-2.0" ]
1
2018-12-04T09:13:57.000Z
2018-12-04T09:13:57.000Z
import getpass import gzip import os import shutil import socket import time from pygresql import pg from gppylib import gplog from gppylib.commands.base import WorkerPool, Command, ExecutionError from gppylib.commands.gp import Psql from gppylib.commands.unix import Scp from gppylib.utils import shellEscape from gppy...
46.325521
175
0.640358
d6b466d6391071130357e9c56f84266a0fb529a7
5,485
py
Python
o_dot.py
Black-Blade/smartfon_no_ads
21bd0fe253214cd958d3a4cf799c6cff17fc715e
[ "MIT" ]
null
null
null
o_dot.py
Black-Blade/smartfon_no_ads
21bd0fe253214cd958d3a4cf799c6cff17fc715e
[ "MIT" ]
null
null
null
o_dot.py
Black-Blade/smartfon_no_ads
21bd0fe253214cd958d3a4cf799c6cff17fc715e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 #/***************************************************************************//** # @file o_dot.py # # @author Black-Blade # @brief o_dot.py # @date 15.01.2021 # @version 0.0.1 Doxygen style eingebaut und erstellen dieser File # @see https://github.com/melvilgit/DNS-O...
33.650307
86
0.492069
52d04a3f6dceba10a00db25c724e619d6fd10098
35,591
py
Python
c_ext/ast_transformer.py
KivApple/c_ext
3e8bffc078115a1a871d10ad116a49c8fd81e66e
[ "MIT" ]
1
2016-12-13T08:39:04.000Z
2016-12-13T08:39:04.000Z
c_ext/ast_transformer.py
KivApple/c_ext
3e8bffc078115a1a871d10ad116a49c8fd81e66e
[ "MIT" ]
null
null
null
c_ext/ast_transformer.py
KivApple/c_ext
3e8bffc078115a1a871d10ad116a49c8fd81e66e
[ "MIT" ]
null
null
null
import copy from collections import OrderedDict from six import iteritems import pycparser.c_ast as c_ast from pycparserext.ext_c_parser import TypeDeclExt, ArrayDeclExt, FuncDeclExt, AttributeSpecifier from .error import CodeSyntaxError from .parser import StructImproved, LambdaFunc, YieldNode from .scope import Sco...
42.726291
111
0.533393
5c813bddee0749f5a2ad13a17231f25b8cbe7baf
3,780
py
Python
diy_gym/addons/controllers/joint_controller.py
wassname/diy-gym
83232ae6971341a86683d316feecf4d34d3caf47
[ "MIT" ]
null
null
null
diy_gym/addons/controllers/joint_controller.py
wassname/diy-gym
83232ae6971341a86683d316feecf4d34d3caf47
[ "MIT" ]
null
null
null
diy_gym/addons/controllers/joint_controller.py
wassname/diy-gym
83232ae6971341a86683d316feecf4d34d3caf47
[ "MIT" ]
null
null
null
import pybullet as p from gym import spaces import pybullet_planning as pbp import numpy as np from diy_gym.addons.addon import Addon class JointController(Addon): """ JointController Desired position or velocity or torque """ def __init__(self, parent, config): super(JointController, se...
42
124
0.608201
5779113f26db10272a7cafd566f7f804d5337606
9,094
py
Python
airflow_client/test/test_task_instance_collection_all_of.py
sptsakcg/airflow-client-python
38a14e8641988f8cc88a5b27632ef4198bdb2843
[ "Apache-2.0" ]
null
null
null
airflow_client/test/test_task_instance_collection_all_of.py
sptsakcg/airflow-client-python
38a14e8641988f8cc88a5b27632ef4198bdb2843
[ "Apache-2.0" ]
null
null
null
airflow_client/test/test_task_instance_collection_all_of.py
sptsakcg/airflow-client-python
38a14e8641988f8cc88a5b27632ef4198bdb2843
[ "Apache-2.0" ]
null
null
null
""" Airflow API (Stable) # Overview To facilitate management, Apache Airflow supports a range of REST API endpoints across its objects. This section provides an overview of the API design, methods, and supported use cases. Most of the endpoints accept `JSON` as input and return `JSON` responses. This means t...
233.179487
8,173
0.762481
34f1c4f14a34523f9b69b81abfff22a3ddd42382
12,627
py
Python
baselines/trpo_mpi/trpo_mpi.py
MrRubyRed/baselines
4784e8764efc36eead512fa1b739fc72f2ba1ce6
[ "MIT" ]
null
null
null
baselines/trpo_mpi/trpo_mpi.py
MrRubyRed/baselines
4784e8764efc36eead512fa1b739fc72f2ba1ce6
[ "MIT" ]
null
null
null
baselines/trpo_mpi/trpo_mpi.py
MrRubyRed/baselines
4784e8764efc36eead512fa1b739fc72f2ba1ce6
[ "MIT" ]
null
null
null
from baselines.common import explained_variance, zipsame, dataset from baselines import logger import baselines.common.tf_util as U import tensorflow as tf, numpy as np import time from baselines.common import colorize from mpi4py import MPI from collections import deque from baselines.common.mpi_adam import MpiAdam fr...
39.832808
173
0.600855
c076b55694b59d16789fbb3fb47e12739429b871
1,191
py
Python
tests/util/generator_tools_testing.py
greenberrycoin/gbch-blockchain
d99843d720c6e7bd7baaf8bb4639a46dbb56caed
[ "Apache-2.0" ]
null
null
null
tests/util/generator_tools_testing.py
greenberrycoin/gbch-blockchain
d99843d720c6e7bd7baaf8bb4639a46dbb56caed
[ "Apache-2.0" ]
null
null
null
tests/util/generator_tools_testing.py
greenberrycoin/gbch-blockchain
d99843d720c6e7bd7baaf8bb4639a46dbb56caed
[ "Apache-2.0" ]
null
null
null
from typing import List, Tuple from greenberry.full_node.mempool_check_conditions import get_name_puzzle_conditions from greenberry.types.blockchain_format.coin import Coin from greenberry.types.blockchain_format.sized_bytes import bytes32 from greenberry.types.full_block import FullBlock from greenberry.types.generat...
38.419355
118
0.77162
5b559c863107fc83644043b18db1c37004124c55
4,253
py
Python
devito/passes/clusters/cse.py
kristiantorres/devito
9357d69448698fd2b7a57be6fbb400058716b532
[ "MIT" ]
1
2021-03-25T21:23:03.000Z
2021-03-25T21:23:03.000Z
devito/passes/clusters/cse.py
kristiantorres/devito
9357d69448698fd2b7a57be6fbb400058716b532
[ "MIT" ]
53
2020-11-30T07:50:14.000Z
2022-03-10T17:06:03.000Z
devito/passes/clusters/cse.py
kristiantorres/devito
9357d69448698fd2b7a57be6fbb400058716b532
[ "MIT" ]
1
2020-06-02T03:31:11.000Z
2020-06-02T03:31:11.000Z
from collections import OrderedDict from devito.ir import DummyEq, Cluster, Scope from devito.passes.clusters.utils import cluster_pass, makeit_ssa from devito.symbolics import count, estimate_cost, q_xop, q_leaf, uxreplace from devito.types import Scalar __all__ = ['cse'] @cluster_pass def cse(cluster, sregistry, ...
32.968992
89
0.622384
f9715954c7870db4f63e9a6bc03dc0d5e7370733
203
py
Python
libs/images.py
chenchiyuan/gym
a466111ee69f20ac001678c84868c0bf61b468fe
[ "BSD-3-Clause" ]
null
null
null
libs/images.py
chenchiyuan/gym
a466111ee69f20ac001678c84868c0bf61b468fe
[ "BSD-3-Clause" ]
null
null
null
libs/images.py
chenchiyuan/gym
a466111ee69f20ac001678c84868c0bf61b468fe
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # __author__ = chenchiyuan from __future__ import division, unicode_literals, print_function import imghdr def detect_image_type(content): return imghdr.what("", h=content)
22.555556
65
0.748768
a1f435bebe8c72767ec91f2b7410ef7556a25499
33,244
py
Python
src/pyfocs/check.py
klapo/btmm_process
46a245bf5bbb8c4cbbcc48ab1e05e2a742286c89
[ "MIT" ]
3
2019-02-11T21:47:59.000Z
2019-08-22T11:41:26.000Z
src/pyfocs/check.py
klapo/btmm_process
46a245bf5bbb8c4cbbcc48ab1e05e2a742286c89
[ "MIT" ]
4
2018-09-20T09:12:36.000Z
2019-09-24T13:00:24.000Z
src/pyfocs/check.py
klapo/btmm_process
46a245bf5bbb8c4cbbcc48ab1e05e2a742286c89
[ "MIT" ]
null
null
null
import os import yaml from pyfocs import yamlDict import copy import numpy as np import xarray as xr def config(fn_cfg, ignore_flags=False): ''' Function checks the basic integrity of a configuration file and returns the config dictionary, location library, and physical locations dictionary expected b...
46.108183
127
0.565395
afb3347b52671556d67a13d1d2a37f0b5cfb089d
1,979
py
Python
pyramid_scaffold/tests/test_unit_views.py
austincmatteson/pyramid-stocks
662a90588db12cf30d59f43278a716fee63d5f74
[ "MIT" ]
null
null
null
pyramid_scaffold/tests/test_unit_views.py
austincmatteson/pyramid-stocks
662a90588db12cf30d59f43278a716fee63d5f74
[ "MIT" ]
3
2019-12-26T16:42:54.000Z
2021-06-01T22:23:24.000Z
pyramid_scaffold/tests/test_unit_views.py
austincmatteson/pyramid-stocks
662a90588db12cf30d59f43278a716fee63d5f74
[ "MIT" ]
null
null
null
# Default view properties def test_default_response_home_view(dummy_request): from ..views.default import my_home_view response = my_home_view(dummy_request) assert len(response) == 0 assert type(response) == dict # Auth View Functionality def test_default_response_auth_view(dummy_request): fro...
31.919355
71
0.740778
dee19b06be8db2f93d10a6167305e7453b0feb59
1,031
py
Python
rplugin/python3/deoplete-import-js/__init__.py
billyvg/deoplete-import-js
11da1e13edc831d97bcf9a658a3397100cf4ed4e
[ "MIT" ]
8
2017-06-07T21:01:13.000Z
2019-03-01T11:20:30.000Z
rplugin/python3/deoplete-import-js/__init__.py
billyvg/deoplete-import-js
11da1e13edc831d97bcf9a658a3397100cf4ed4e
[ "MIT" ]
2
2017-06-05T22:20:58.000Z
2017-06-05T22:24:46.000Z
rplugin/python3/deoplete-import-js/__init__.py
billyvg/deoplete-import-js
11da1e13edc831d97bcf9a658a3397100cf4ed4e
[ "MIT" ]
null
null
null
import sys import os import neovim sys.path.insert(1, os.path.dirname(__file__)) @neovim.plugin class ImportJsHost(object): def __init__(self, vim): self.vim = vim def relative_file(self): """ Return the current file """ return self.vim.current.buffer.name @ne...
28.638889
96
0.593598
61a5941200d6540642d97fd7bb035bec4dd718a1
4,991
py
Python
P2_CC.py
mati3/CC-Servicios-y-Aplicaciones
2b6fc3850c287ce233ca276781dd2260da559c80
[ "MIT" ]
null
null
null
P2_CC.py
mati3/CC-Servicios-y-Aplicaciones
2b6fc3850c287ce233ca276781dd2260da559c80
[ "MIT" ]
null
null
null
P2_CC.py
mati3/CC-Servicios-y-Aplicaciones
2b6fc3850c287ce233ca276781dd2260da559c80
[ "MIT" ]
null
null
null
from datetime import timedelta from airflow import DAG from airflow.operators.bash_operator import BashOperator from airflow.operators.python_operator import PythonOperator from airflow.utils.dates import days_ago import pandas from pandas import DataFrame import csv default_args = { 'owner': 'Matilde Cabrera Gonz...
31.588608
229
0.723703
a3e6adcd012bc6e1c9e562681efe9e48d439fc18
2,392
py
Python
simianpy/plotting/regression.py
jselvan/simianpy
5b2b162789e11bc89ca2179358ab682269e7df15
[ "MIT" ]
null
null
null
simianpy/plotting/regression.py
jselvan/simianpy
5b2b162789e11bc89ca2179358ab682269e7df15
[ "MIT" ]
null
null
null
simianpy/plotting/regression.py
jselvan/simianpy
5b2b162789e11bc89ca2179358ab682269e7df15
[ "MIT" ]
null
null
null
from simianpy.analysis import LinearRegression from simianpy.plotting.util import get_ax import numpy as np import matplotlib.pyplot as plt try: import holoviews as hv except ImportError: hv = None else: from holoviews import opts, dim default_params = { 'matplotlib': {}, 'holoviews': {} } def...
31.064935
155
0.654264
8ed00e70cb7c6d6b748f868f11f6d028efc7571e
372
py
Python
linear_regression/data_generator.py
pedro823/machine-learning
5988a45e730c9244a543c884268ac8f96252100b
[ "Apache-2.0" ]
null
null
null
linear_regression/data_generator.py
pedro823/machine-learning
5988a45e730c9244a543c884268ac8f96252100b
[ "Apache-2.0" ]
null
null
null
linear_regression/data_generator.py
pedro823/machine-learning
5988a45e730c9244a543c884268ac8f96252100b
[ "Apache-2.0" ]
null
null
null
import random as r random = r.SystemRandom() samples = [] results = [] function = lambda x: x**2 + 10 * x + 10 for i in range(10000): x = random.random() * 100 samples.append([x]) results.append(function(x)) with open('examples/data_2d_quadratic.py', 'w') as f: f.write('INPUT = ' + str(samples) + '\...
21.882353
53
0.599462
4e8dcbd3b09e9719cc140a1bca5ecec8254ebdf6
1,510
py
Python
website/migrations/0001_initial.py
Lewes/ecssweb
62c332757c24d7edac52a04121d8b77eced783a1
[ "MIT" ]
4
2021-03-17T21:09:18.000Z
2022-03-03T17:10:51.000Z
website/migrations/0001_initial.py
Lewes/ecssweb
62c332757c24d7edac52a04121d8b77eced783a1
[ "MIT" ]
15
2018-08-21T19:01:06.000Z
2022-03-11T23:29:26.000Z
website/migrations/0001_initial.py
Lewes/ecssweb
62c332757c24d7edac52a04121d8b77eced783a1
[ "MIT" ]
2
2018-08-21T18:46:36.000Z
2021-11-13T16:23:53.000Z
# Generated by Django 2.0.5 on 2018-08-25 23:15 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Society', fields=[ ...
35.952381
114
0.547682
015ac68cd450d10f1c37b705db9c30facd3a56cc
1,605
py
Python
all_functions/form_python_simple.py
Heroku-elasa/-heroku-buildpack-python-ieee-new
06ec2fda04d9e478ed2506400e460489b0ca91ab
[ "MIT" ]
null
null
null
all_functions/form_python_simple.py
Heroku-elasa/-heroku-buildpack-python-ieee-new
06ec2fda04d9e478ed2506400e460489b0ca91ab
[ "MIT" ]
15
2021-03-18T20:25:13.000Z
2022-03-02T14:54:33.000Z
all_functions/form_python_simple.py
Heroku-elasa/heroku-buildpack-python-ieee-new
06ec2fda04d9e478ed2506400e460489b0ca91ab
[ "MIT" ]
1
2017-03-04T16:48:55.000Z
2017-03-04T16:48:55.000Z
__author__ = 'http://www.cs.virginia.edu/~lab2q/lesson_7/' # Import the cgi, os, and Cookie modules. import cgi, os, Cookie # Define function to set a cookie. def set_client_Cookie(): # Create a Cookie object. a_cookie = Cookie.SmartCookie() # Assign the cookie a value. a_cookie["user"] = "Python" ...
28.660714
74
0.620561
9eb2321202161072b99f54c9728473b1a73bfce7
3,465
py
Python
examples/tf/debugging/simple_spread/feedforward/decentralised/run_maddpg_custom_logging.py
1998x-stack/Mava
2c8f7f59f235340886e92045b6730cf5a542a496
[ "Apache-2.0" ]
1
2022-03-19T12:51:16.000Z
2022-03-19T12:51:16.000Z
examples/tf/debugging/simple_spread/feedforward/decentralised/run_maddpg_custom_logging.py
1998x-stack/Mava
2c8f7f59f235340886e92045b6730cf5a542a496
[ "Apache-2.0" ]
null
null
null
examples/tf/debugging/simple_spread/feedforward/decentralised/run_maddpg_custom_logging.py
1998x-stack/Mava
2c8f7f59f235340886e92045b6730cf5a542a496
[ "Apache-2.0" ]
null
null
null
# python3 # Copyright 2021 InstaDeep Ltd. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
28.401639
76
0.662049
66733f27bf608a0bb845a419318e87eaeb3e7e9d
7,020
py
Python
atomic/pec.py
TBody/atomic1D
fcab88f3b303468f23ac75b847c76244593f4b7f
[ "MIT" ]
1
2019-05-18T22:32:21.000Z
2019-05-18T22:32:21.000Z
atomic/pec.py
TBody/atomic1D
fcab88f3b303468f23ac75b847c76244593f4b7f
[ "MIT" ]
null
null
null
atomic/pec.py
TBody/atomic1D
fcab88f3b303468f23ac75b847c76244593f4b7f
[ "MIT" ]
null
null
null
from __future__ import absolute_import import glob import numpy as np from scipy.interpolate import RectBivariateSpline import scipy.constants as constants from .adf15 import Adf15 from .atomic_data import RateCoefficient class Transition(object): def __init__(self, type_, element, nuclear_charge, charge, wavel...
30.655022
78
0.623219
be0e47cd9af97cb91c172274f01cd982c7bf2606
1,058
py
Python
test/pyaz/lab/vnet/__init__.py
bigdatamoore/py-az-cli
54383a4ee7cc77556f6183e74e992eec95b28e01
[ "MIT" ]
null
null
null
test/pyaz/lab/vnet/__init__.py
bigdatamoore/py-az-cli
54383a4ee7cc77556f6183e74e992eec95b28e01
[ "MIT" ]
9
2021-09-24T16:37:24.000Z
2021-12-24T00:39:19.000Z
test/pyaz/lab/vnet/__init__.py
bigdatamoore/py-az-cli
54383a4ee7cc77556f6183e74e992eec95b28e01
[ "MIT" ]
null
null
null
import json, subprocess from ... pyaz_utils import get_cli_name, get_params def list(resource_group, lab_name, expand=None, filter=None, top=None, orderby=None): params = get_params(locals()) command = "az lab vnet list " + params print(command) output = subprocess.run(command, shell=True, stdout=s...
33.0625
96
0.663516
f4be025dd2535331cc3dcf0b0a28dcfae2a4033e
3,359
py
Python
unrestricted-advex/unrestricted_advex/tests/test_undefended_resnet.py
qwang70/unrestricted-adversarial-examples
d4608bf0ff7b34ac66d0a4d1631da9092e9f61b1
[ "Apache-2.0" ]
35
2020-10-16T01:16:34.000Z
2022-03-21T02:15:53.000Z
unrestricted-advex/unrestricted_advex/tests/test_undefended_resnet.py
qwang70/unrestricted-adversarial-examples
d4608bf0ff7b34ac66d0a4d1631da9092e9f61b1
[ "Apache-2.0" ]
8
2020-12-18T08:35:36.000Z
2021-10-21T01:59:04.000Z
unrestricted-advex/unrestricted_advex/tests/test_undefended_resnet.py
qwang70/unrestricted-adversarial-examples
d4608bf0ff7b34ac66d0a4d1631da9092e9f61b1
[ "Apache-2.0" ]
4
2020-12-05T13:44:07.000Z
2022-03-03T21:49:37.000Z
"""Test examples/undefended_pytorch. We only run the script for training / evaluation for one tiny batch to verify that the program can successfully run without issue. The correctness of the results are not checked in this auto-test. """ from __future__ import absolute_import from __future__ import division from __futu...
30.816514
86
0.77404
ff1fdf4c603a65101e9db8bef4cb3a81cab16a6b
1,153
py
Python
src/curt/curt/modules/vision/vision_processor_service.py
sanyaade-teachings/cep
59e22b148c3a95eff521ce75cf4eacbcfb074115
[ "MIT" ]
108
2021-08-09T17:10:39.000Z
2022-03-21T21:59:03.000Z
src/curt/curt/modules/vision/vision_processor_service.py
sanyaade-teachings/cep
59e22b148c3a95eff521ce75cf4eacbcfb074115
[ "MIT" ]
15
2021-09-19T01:25:25.000Z
2022-03-28T18:47:49.000Z
src/curt/curt/modules/vision/vision_processor_service.py
sanyaade-teachings/cep
59e22b148c3a95eff521ce75cf4eacbcfb074115
[ "MIT" ]
14
2021-08-10T04:42:17.000Z
2022-03-28T16:30:34.000Z
""" Copyright (C) Cortic Technology Corp. - All Rights Reserved Written by Michael Ng <michaelng@cortic.ca>, 2021 """ # need to advertise different processor type, eg CPU, GPU, TPU import traceback import logging from curt.base_service import BaseService class VisionProcessorService(BaseService): def __init__...
32.027778
62
0.565481
1d95fc0359f87ec8abd9a711ef097b64daf2addd
348
py
Python
restaurant/blog/migrations/0005_auto_20210214_1124.py
alex-dsouza777/Seasonal-Tastes-Restaurants
22d39ba6d1d353f66811641214fd386103270304
[ "MIT" ]
null
null
null
restaurant/blog/migrations/0005_auto_20210214_1124.py
alex-dsouza777/Seasonal-Tastes-Restaurants
22d39ba6d1d353f66811641214fd386103270304
[ "MIT" ]
null
null
null
restaurant/blog/migrations/0005_auto_20210214_1124.py
alex-dsouza777/Seasonal-Tastes-Restaurants
22d39ba6d1d353f66811641214fd386103270304
[ "MIT" ]
null
null
null
# Generated by Django 3.1.5 on 2021-02-14 05:54 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('blog', '0004_comment'), ] operations = [ migrations.RenameField( model_name='comment', old_name='author', new_na...
18.315789
47
0.566092
6c512a3512664dd333b1a376374b595b98e079de
7,373
py
Python
ansible/venv/lib/python2.7/site-packages/ansible/modules/remote_management/redfish/idrac_redfish_config.py
gvashchenkolineate/gvashchenkolineate_infra_trytravis
0fb18850afe0d8609693ba4b23f29c7cda17d97f
[ "MIT" ]
17
2017-06-07T23:15:01.000Z
2021-08-30T14:32:36.000Z
ansible/venv/lib/python2.7/site-packages/ansible/modules/remote_management/redfish/idrac_redfish_config.py
gvashchenkolineate/gvashchenkolineate_infra_trytravis
0fb18850afe0d8609693ba4b23f29c7cda17d97f
[ "MIT" ]
9
2017-06-25T03:31:52.000Z
2021-05-17T23:43:12.000Z
ansible/venv/lib/python2.7/site-packages/ansible/modules/remote_management/redfish/idrac_redfish_config.py
gvashchenkolineate/gvashchenkolineate_infra_trytravis
0fb18850afe0d8609693ba4b23f29c7cda17d97f
[ "MIT" ]
3
2018-05-26T21:31:22.000Z
2019-09-28T17:00:45.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright (c) 2019 Dell EMC Inc. # GNU General Public License v3.0+ (see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'status': ['preview'], ...
32.768889
130
0.645599
05ff877686cd651b70f7345b598f91a8d3effe45
3,339
py
Python
PaddleAudio/test/unit_test/test_backend.py
kgresearch/models
09565ab4e12e6e015c8d2c901d455176099773ed
[ "Apache-2.0" ]
1
2021-08-20T03:17:47.000Z
2021-08-20T03:17:47.000Z
PaddleAudio/test/unit_test/test_backend.py
kgresearch/models
09565ab4e12e6e015c8d2c901d455176099773ed
[ "Apache-2.0" ]
null
null
null
PaddleAudio/test/unit_test/test_backend.py
kgresearch/models
09565ab4e12e6e015c8d2c901d455176099773ed
[ "Apache-2.0" ]
4
2021-08-11T08:25:10.000Z
2021-10-16T07:41:59.000Z
# Copyright (c) 2021 PaddlePaddle 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 applic...
27.595041
74
0.624738
c71d54630d73a52a5be3dde498eb34abe1855563
223
py
Python
CodeUP/Python basic 100/6095.py
cmsong111/NJ_code
2df6176d179e168a2789a825ddeb977a82eb8d97
[ "MIT" ]
null
null
null
CodeUP/Python basic 100/6095.py
cmsong111/NJ_code
2df6176d179e168a2789a825ddeb977a82eb8d97
[ "MIT" ]
null
null
null
CodeUP/Python basic 100/6095.py
cmsong111/NJ_code
2df6176d179e168a2789a825ddeb977a82eb8d97
[ "MIT" ]
null
null
null
import numpy as np a=np.zeros((19,19)) n= int(input()) for i in range(n): x,y= map(int, input().split()) a[x-1][y-1]=1 for i in range(19): for j in range(19): print(int(a[i][j]),end=" ") print()
14.866667
35
0.524664
2187b7f2d719504decebc2e1a634ba1def0e7d68
8,142
py
Python
uuv_simulator/uuv_tutorials/uuv_tutorial_dp_controller/scripts/tutorial_dp_controller.py
laughlinbarker/underice_ekf
d74a83b2d02cef986fc904cf588a408382d728a6
[ "BSD-2-Clause" ]
1
2021-11-10T08:59:19.000Z
2021-11-10T08:59:19.000Z
uuv_simulator/uuv_tutorials/uuv_tutorial_dp_controller/scripts/tutorial_dp_controller.py
laughlinbarker/underice_ekf
d74a83b2d02cef986fc904cf588a408382d728a6
[ "BSD-2-Clause" ]
2
2019-06-13T10:58:38.000Z
2019-09-24T14:09:05.000Z
uuv_simulator/uuv_tutorials/uuv_tutorial_dp_controller/scripts/tutorial_dp_controller.py
laughlinbarker/underice_ekf
d74a83b2d02cef986fc904cf588a408382d728a6
[ "BSD-2-Clause" ]
2
2017-10-24T15:02:53.000Z
2019-04-02T15:14:58.000Z
#!/usr/bin/env python # Copyright (c) 2016 The UUV Simulator 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...
48.464286
118
0.684353
a38bbf60cd7c5b3f1c007f7e9f42e400284c5a9b
7,672
py
Python
venv/lib/python3.8/site-packages/azure/cosmos/routing/collection_routing_map.py
amcclead7336/Enterprise_Data_Science_Final
ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28
[ "Unlicense", "MIT" ]
null
null
null
venv/lib/python3.8/site-packages/azure/cosmos/routing/collection_routing_map.py
amcclead7336/Enterprise_Data_Science_Final
ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28
[ "Unlicense", "MIT" ]
null
null
null
venv/lib/python3.8/site-packages/azure/cosmos/routing/collection_routing_map.py
amcclead7336/Enterprise_Data_Science_Final
ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28
[ "Unlicense", "MIT" ]
2
2021-05-23T16:46:31.000Z
2021-05-26T23:51:09.000Z
#The MIT License (MIT) #Copyright (c) 2014 Microsoft Corporation #Permission is hereby granted, free of charge, to any person obtaining a copy #of this software and associated documentation files (the "Software"), to deal #in the Software without restriction, including without limitation the rights #to use, copy...
45.129412
182
0.692909
4602bf5c9e6751111922257bc0dfab2406696257
3,263
py
Python
app/store/migrations/0001_initial.py
igndukwe/ecomm-app-api
c6e175c7b6036cc72b02c5e6fcba67eb3f0566c0
[ "MIT" ]
null
null
null
app/store/migrations/0001_initial.py
igndukwe/ecomm-app-api
c6e175c7b6036cc72b02c5e6fcba67eb3f0566c0
[ "MIT" ]
null
null
null
app/store/migrations/0001_initial.py
igndukwe/ecomm-app-api
c6e175c7b6036cc72b02c5e6fcba67eb3f0566c0
[ "MIT" ]
null
null
null
# Generated by Django 3.0.8 on 2020-08-26 19:04 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
47.289855
144
0.594851
002cf3c69640324d6a4ea767c322d6f2f46426a0
2,684
py
Python
tests/python/unittest/test_target_codegen_metal.py
XiaoSong9905/tvm
48940f697e15d5b50fa1f032003e6c700ae1e423
[ "Apache-2.0" ]
4,640
2017-08-17T19:22:15.000Z
2019-11-04T15:29:46.000Z
tests/python/unittest/test_target_codegen_metal.py
XiaoSong9905/tvm
48940f697e15d5b50fa1f032003e6c700ae1e423
[ "Apache-2.0" ]
3,022
2020-11-24T14:02:31.000Z
2022-03-31T23:55:31.000Z
tests/python/unittest/test_target_codegen_metal.py
XiaoSong9905/tvm
48940f697e15d5b50fa1f032003e6c700ae1e423
[ "Apache-2.0" ]
1,352
2017-08-17T19:30:38.000Z
2019-11-04T16:09:29.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...
32.731707
67
0.657973