hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
e62035eb55279994b4c05dd9b254069dd128fe17
2,583
py
Python
rolling/hash.py
ajcr/rolling
7bbac93809a0ad1cd6e128cfd64b70a99d26ea8c
[ "MIT" ]
189
2018-03-12T00:31:19.000Z
2022-03-26T00:17:38.000Z
rolling/hash.py
ajcr/rolling
7bbac93809a0ad1cd6e128cfd64b70a99d26ea8c
[ "MIT" ]
23
2017-12-31T17:50:48.000Z
2021-11-27T15:31:54.000Z
rolling/hash.py
ajcr/rolling
7bbac93809a0ad1cd6e128cfd64b70a99d26ea8c
[ "MIT" ]
7
2019-01-28T02:53:49.000Z
2021-11-11T18:34:45.000Z
from collections import Counter, deque from itertools import islice from .base import RollingObject DEF_BASE = 719 DEF_MOD = 2 ** 61 - 1 def polynomial_hash_sequence(seq, base=DEF_BASE, mod=DEF_MOD): """ Compute the polynomial hash of a sequence. """ return sum(hash(c) * pow(base, k, mod) for k, c...
24.6
86
0.603175
8f69c335bd08d12466ea7908b7bcec825f79053c
4,012
py
Python
mydataset.py
dreamakeo/catsvsdogs
4113e60f348ca882aebd63315526116df2e550c4
[ "MIT" ]
null
null
null
mydataset.py
dreamakeo/catsvsdogs
4113e60f348ca882aebd63315526116df2e550c4
[ "MIT" ]
null
null
null
mydataset.py
dreamakeo/catsvsdogs
4113e60f348ca882aebd63315526116df2e550c4
[ "MIT" ]
null
null
null
#对原始数据进行划分,得到标记文件 import os import shutil import collections import math import csv import random root_dir = '/home/ding/DATA/dataset/' valid_ratio = 0.1 batch_size = 4 data_train_dir = os.path.join(root_dir,'train') #随机字典 def random_dic(dicts): dict_key_ls = list(dicts.keys()) random.shuffle(dict_key_ls) ...
33.714286
102
0.629611
88d7e0baffc611d60cbeb788fae0f16b5ee4937f
6,960
py
Python
tests/django_init.py
tbaschak/peeringdb
20d89d53d8e1d807383fa84d74601e37ba4dc9d4
[ "BSD-2-Clause" ]
null
null
null
tests/django_init.py
tbaschak/peeringdb
20d89d53d8e1d807383fa84d74601e37ba4dc9d4
[ "BSD-2-Clause" ]
null
null
null
tests/django_init.py
tbaschak/peeringdb
20d89d53d8e1d807383fa84d74601e37ba4dc9d4
[ "BSD-2-Clause" ]
null
null
null
import os from django.conf import settings # lazy init for translations _ = lambda s: s # from django.utils.translation import ugettext_lazy as _ settings.configure( PACKAGE_VERSION="dev", RELEASE_ENV="dev", MIGRATION_MODULES={"django_peeringdb": None}, INSTALLED_APPS=[ "django.contrib.auth",...
35.151515
98
0.624569
6b3d480afd6a58ab60f5551cbcee669d966fc73b
1,807
py
Python
OpdrachtC2.py
kalkoen/informatica-olympiade-2019
0b6e810d906b105ad7a1a1a6800e5710517c3527
[ "MIT" ]
null
null
null
OpdrachtC2.py
kalkoen/informatica-olympiade-2019
0b6e810d906b105ad7a1a1a6800e5710517c3527
[ "MIT" ]
null
null
null
OpdrachtC2.py
kalkoen/informatica-olympiade-2019
0b6e810d906b105ad7a1a1a6800e5710517c3527
[ "MIT" ]
null
null
null
grid_size = 8 start = "@" jewel = "+" wall = "#" bomb = "*" stop = "O" free = "-" directions = [(0, 1), (1, 1), (1, 0), (1, -1), (0, -1), (-1, -1), (-1, 0), (-1, 1)] class Tile: def __init__(self, x, y, value): self.value = value self.x = x self.y = y self.paths = [] class Path: ...
19.021053
83
0.53016
136886429ff0d9fe219b886015a04ca006a5a494
39,295
py
Python
frappe/__init__.py
olderp/frappe
92700852a8d182e3ec6c987123428c323eaa8844
[ "MIT" ]
null
null
null
frappe/__init__.py
olderp/frappe
92700852a8d182e3ec6c987123428c323eaa8844
[ "MIT" ]
null
null
null
frappe/__init__.py
olderp/frappe
92700852a8d182e3ec6c987123428c323eaa8844
[ "MIT" ]
5
2016-06-20T08:48:11.000Z
2018-12-12T09:42:31.000Z
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # MIT License. See license.txt """ globals attached to frappe module + some utility functions that should probably be moved """ from __future__ import unicode_literals from werkzeug.local import Local, release_local import os, sys, importlib, inspect...
31.410871
180
0.728897
00fef0f8f05c031dacdaf59d4ececb299cc35aa7
4,890
py
Python
src/v5.3/resources/swagger_client/models/ed_fi_survey_response_survey_level.py
xmarcosx/edfi-notebook
0564ebdf1d0f45a9d25056e7e61369f0a837534d
[ "Apache-2.0" ]
2
2021-04-27T17:18:17.000Z
2021-04-27T19:14:39.000Z
src/v5.1/resources/swagger_client/models/ed_fi_survey_response_survey_level.py
xmarcosx/edfi-notebook
0564ebdf1d0f45a9d25056e7e61369f0a837534d
[ "Apache-2.0" ]
null
null
null
src/v5.1/resources/swagger_client/models/ed_fi_survey_response_survey_level.py
xmarcosx/edfi-notebook
0564ebdf1d0f45a9d25056e7e61369f0a837534d
[ "Apache-2.0" ]
1
2022-01-06T09:43:11.000Z
2022-01-06T09:43:11.000Z
# coding: utf-8 """ Ed-Fi Operational Data Store API The Ed-Fi ODS / API enables applications to read and write education data stored in an Ed-Fi ODS through a secure REST interface. *** > *Note: Consumers of ODS / API information should sanitize all data for display and storage. The ODS / API provides reas...
37.615385
482
0.646012
8bad285ffd8c126e1ff2dea69bb3c438f06b28f0
6,454
py
Python
airflow/contrib/operators/ecs_operator.py
dossett/incubator-airflow
60583a3c6d1c4b5bbecaad6cd195301107530de9
[ "Apache-2.0" ]
1
2019-06-04T06:09:55.000Z
2019-06-04T06:09:55.000Z
airflow/contrib/operators/ecs_operator.py
berniechiu/incubator-airflow
b85210d8596c1e05fbf3da2941aaca8170ae871e
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
4
2018-01-31T19:28:31.000Z
2019-03-07T15:56:45.000Z
airflow/contrib/operators/ecs_operator.py
berniechiu/incubator-airflow
b85210d8596c1e05fbf3da2941aaca8170ae871e
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
2
2021-05-14T09:19:52.000Z
2022-01-12T19:08:31.000Z
# -*- coding: utf-8 -*- # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the #...
38.879518
94
0.650449
f3eb3e6ca23b840bd6bf1b2944473cf9520b9b96
2,691
py
Python
binarySearch/binarySearchSimulation.py
trthanhquang/wayback-data-collector
304172bd16135321d997dc13970feb7c8047c3be
[ "Apache-2.0" ]
1
2015-11-20T17:22:57.000Z
2015-11-20T17:22:57.000Z
binarySearch/binarySearchSimulation.py
trthanhquang/wayback-data-collector
304172bd16135321d997dc13970feb7c8047c3be
[ "Apache-2.0" ]
null
null
null
binarySearch/binarySearchSimulation.py
trthanhquang/wayback-data-collector
304172bd16135321d997dc13970feb7c8047c3be
[ "Apache-2.0" ]
null
null
null
from bisect import bisect_left from Queue import * import random randomSeed = 123456789 # randomSeed = random.random()*123456789 noVersion = 10 listSize = 200 itemList = None #url list crawledlist = None #downloaded page downloadCount = None def init(): global itemList,crawledlist, downloadCount newList = [] cra...
20.860465
120
0.687477
99340da8591505b6addfc4e3e26d99de41be9b27
786
py
Python
renku/service/views/v1_0/__init__.py
lokijuhy/renku-python
0bfceafa4e6b4750439ab0ed20c61b0a6ba03a1f
[ "Apache-2.0" ]
null
null
null
renku/service/views/v1_0/__init__.py
lokijuhy/renku-python
0bfceafa4e6b4750439ab0ed20c61b0a6ba03a1f
[ "Apache-2.0" ]
null
null
null
renku/service/views/v1_0/__init__.py
lokijuhy/renku-python
0bfceafa4e6b4750439ab0ed20c61b0a6ba03a1f
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2020 - Swiss Data Science Center (SDSC) # A partnership between École Polytechnique Fédérale de Lausanne (EPFL) and # Eidgenössische Technische Hochschule Zürich (ETHZ). # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compli...
41.368421
75
0.751908
bd81db15d34fbfd3ba18a575531c439585e5236b
1,251
py
Python
app/models/place.py
hashtrip/api
1a968f47dbd5c9d24fb45f3a6360505009f6c4d8
[ "MIT" ]
1
2021-01-30T08:38:15.000Z
2021-01-30T08:38:15.000Z
app/models/place.py
hashtrip/backend
1a968f47dbd5c9d24fb45f3a6360505009f6c4d8
[ "MIT" ]
null
null
null
app/models/place.py
hashtrip/backend
1a968f47dbd5c9d24fb45f3a6360505009f6c4d8
[ "MIT" ]
null
null
null
from typing import List, Optional from pydantic import Field from .dbmodel import DateTimeModelMixin, DBModelMixin from .util import GeoJson, Time from .profile import Profile from .rwmodel import RWModel class PlaceFilterParams(RWModel): tag: str = "" author: str = "" favorited: str = "" limit: int...
21.20339
63
0.688249
c8e0607aaf509219bea9178014e95b68c1fe7da3
298
py
Python
generate/common.py
xx-li/CustomTemplates
aa0a1ebc6788fe58babd0324190bae7ca00d2351
[ "MIT" ]
1
2021-07-15T01:08:28.000Z
2021-07-15T01:08:28.000Z
generate/common.py
xx-li/CustomTemplates
aa0a1ebc6788fe58babd0324190bae7ca00d2351
[ "MIT" ]
null
null
null
generate/common.py
xx-li/CustomTemplates
aa0a1ebc6788fe58babd0324190bae7ca00d2351
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from enum import Enum class TemplateType(Enum): Blank = "BlankCode" BlankXib = "BlankXib" List = "ListCode" ListXib = "ListXib" ListEdit = "ListEditCode" ListEditXib = "ListEditXib" MultiPage= "MultiPageCode" MultiPageXib= "MultiPageXib"
18.625
32
0.647651
32e31857ffdcd390a4920b6946df4f889464e411
12,367
py
Python
pytorch_tutorials/cifar10_tutorial.py
adam-dziedzic/time-series-ml
81aaa27f1dd9ea3d7d62b661dac40cac6c1ef77a
[ "Apache-2.0" ]
1
2018-03-25T13:19:46.000Z
2018-03-25T13:19:46.000Z
pytorch_tutorials/cifar10_tutorial.py
adam-dziedzic/time-series-ml
81aaa27f1dd9ea3d7d62b661dac40cac6c1ef77a
[ "Apache-2.0" ]
null
null
null
pytorch_tutorials/cifar10_tutorial.py
adam-dziedzic/time-series-ml
81aaa27f1dd9ea3d7d62b661dac40cac6c1ef77a
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Training a classifier ===================== This is it. You have seen how to define neural networks, compute loss and make updates to the weights of the network. Now you might be thinking, What about data? ---------------- Generally, when you have to deal with image, text, audio or video...
33.334232
138
0.61656
b917540d8e25a1a24b074791de2b51eff10e98c9
8,726
py
Python
tests/test_domain_py.py
balabit-deps/balabit-os-7-sphinx
4e18ca37f4ddddf346c0b30835a544db20887259
[ "BSD-2-Clause" ]
null
null
null
tests/test_domain_py.py
balabit-deps/balabit-os-7-sphinx
4e18ca37f4ddddf346c0b30835a544db20887259
[ "BSD-2-Clause" ]
null
null
null
tests/test_domain_py.py
balabit-deps/balabit-os-7-sphinx
4e18ca37f4ddddf346c0b30835a544db20887259
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ test_domain_py ~~~~~~~~~~~~~~ Tests the Python Domain :copyright: Copyright 2007-2018 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. """ import pytest from mock import Mock from six import text_type from docutils import nodes from sphinx impo...
41.35545
88
0.649897
ffdb43a1df2671f5ace274edff96d15196e2dfaf
1,071
py
Python
msmart/const.py
rokam/midea-msmart
41f957e330b9d679cbdedb4972efa88184e8c63f
[ "MIT" ]
1
2021-11-26T09:19:05.000Z
2021-11-26T09:19:05.000Z
msmart/const.py
rokam/midea-msmart
41f957e330b9d679cbdedb4972efa88184e8c63f
[ "MIT" ]
null
null
null
msmart/const.py
rokam/midea-msmart
41f957e330b9d679cbdedb4972efa88184e8c63f
[ "MIT" ]
null
null
null
VERSION = '0.1.33' BROADCAST_MSG = bytearray([ 0x5a, 0x5a, 0x01, 0x11, 0x48, 0x00, 0x92, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7f, 0x...
36.931034
51
0.658263
1e9581e034bf7359333bd0ed25edff6997802ad5
2,182
py
Python
challange_accepted.py
tborisova/hackfmi4
5e9fd056c09d4e36e24a04a3eb70d480aa6a664d
[ "MIT" ]
1
2017-01-29T21:39:50.000Z
2017-01-29T21:39:50.000Z
challange_accepted.py
tborisova/hackfmi4
5e9fd056c09d4e36e24a04a3eb70d480aa6a664d
[ "MIT" ]
null
null
null
challange_accepted.py
tborisova/hackfmi4
5e9fd056c09d4e36e24a04a3eb70d480aa6a664d
[ "MIT" ]
null
null
null
import socket import sys import pygame pygame.init() from hardcoded import Layout import images from client import * from parent_server import GameServer FPS = 60 SCREEN_WIDTH = 800 SCREEN_HEIGHT = 600 def check_for_internet_conection(): s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) try: s.con...
28.337662
74
0.682401
92adb85a4eb3efaf7dd6076d356a071ec17c7036
26,816
py
Python
deepmars/models/train_model_sys.py
utplanets/deepmars
ba306aa9b25b654636b61cf952af2791b7ed0e56
[ "MIT" ]
2
2021-08-08T03:06:58.000Z
2021-11-25T04:06:00.000Z
deepmars/models/train_model_sys.py
utplanets/deepmars
ba306aa9b25b654636b61cf952af2791b7ed0e56
[ "MIT" ]
null
null
null
deepmars/models/train_model_sys.py
utplanets/deepmars
ba306aa9b25b654636b61cf952af2791b7ed0e56
[ "MIT" ]
2
2020-11-23T09:38:26.000Z
2021-02-26T01:14:28.000Z
#!/usr/bin/env python """Convolutional Neural Network Training Functions Functions for building and training a (UNET) Convolutional Neural Network on images of the Mars and binary ring targets. """ from __future__ import absolute_import, division, print_function import numpy as np import pandas as pd import h5py fro...
36.237838
79
0.545085
43a210fbe85ce85f3fa711f9696ca943b58d01dd
3,667
py
Python
dendropy/test/support/dendropytest.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
dendropy/test/support/dendropytest.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
dendropy/test/support/dendropytest.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
#! /usr/bin/env python ############################################################################## ## DendroPy Phylogenetic Computing Library. ## ## Copyright 2010-2015 Jeet Sukumaran and Mark T. Holder. ## All rights reserved. ## ## See "LICENSE.rst" for terms and conditions of usage. ## ## If you use this wo...
37.040404
88
0.669757
9c2d102be62aa973cdae90e3136547104dd7fd91
2,427
py
Python
setup.py
virtuald/header2whatever
a838cbf3e232b41ea387274730251778a84d831f
[ "Apache-2.0" ]
3
2018-07-04T12:36:56.000Z
2021-04-14T17:42:43.000Z
setup.py
virtuald/header2whatever
a838cbf3e232b41ea387274730251778a84d831f
[ "Apache-2.0" ]
null
null
null
setup.py
virtuald/header2whatever
a838cbf3e232b41ea387274730251778a84d831f
[ "Apache-2.0" ]
1
2021-12-31T07:23:18.000Z
2021-12-31T07:23:18.000Z
from __future__ import print_function from os.path import dirname, exists, join import sys, subprocess from setuptools import setup setup_dir = dirname(__file__) git_dir = join(setup_dir, '.git') base_package = 'header2whatever' version_file = join(setup_dir, base_package, 'version.py') # Automatically generate a v...
32.797297
92
0.634116
cf6a4a88ff55f9e5dbd64e7ad1a40288f4ec8eb7
1,672
py
Python
config/wsgi.py
devnelmar/cornershop
f3af70577f28577fbd91e762df7388ff9aba54ee
[ "MIT" ]
null
null
null
config/wsgi.py
devnelmar/cornershop
f3af70577f28577fbd91e762df7388ff9aba54ee
[ "MIT" ]
null
null
null
config/wsgi.py
devnelmar/cornershop
f3af70577f28577fbd91e762df7388ff9aba54ee
[ "MIT" ]
null
null
null
""" WSGI config for cornershoop project. This module contains the WSGI application used by Django's development server and any production WSGI deployments. It should expose a module-level variable named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover this application via the ``WSGI_APPLICATIO...
42.871795
79
0.803828
35d67388ca65cdac5160d1f38b1d5565881975b1
2,774
py
Python
python_tutorial/settings.py
sunayaakula/outlookapp
84ad1c4293cae1d557ed79b105399221ab7a372c
[ "MIT" ]
null
null
null
python_tutorial/settings.py
sunayaakula/outlookapp
84ad1c4293cae1d557ed79b105399221ab7a372c
[ "MIT" ]
4
2020-06-06T01:27:26.000Z
2021-06-10T22:38:58.000Z
python_tutorial/settings.py
sunayaakula/outlookapp
84ad1c4293cae1d557ed79b105399221ab7a372c
[ "MIT" ]
null
null
null
""" Django settings for python_tutorial project. Generated by 'django-admin startproject' using Django 1.10. For more information on this file, see https://docs.djangoproject.com/en/1.10/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.10/ref/settings/ """ impo...
25.218182
72
0.702596
de192dd4b0ba4fcd927703f57e392efa24796a81
572
py
Python
tests/rpc/python/exn_test.py
omnisci3nce/ocaml-rpc
982f950ee7b6d792bd4ae097393d9bed545bef90
[ "ISC" ]
76
2015-01-22T09:40:14.000Z
2022-03-30T19:44:53.000Z
tests/rpc/python/exn_test.py
omnisci3nce/ocaml-rpc
982f950ee7b6d792bd4ae097393d9bed545bef90
[ "ISC" ]
106
2015-05-15T14:20:17.000Z
2022-03-09T11:36:53.000Z
tests/rpc/python/exn_test.py
omnisci3nce/ocaml-rpc
982f950ee7b6d792bd4ae097393d9bed545bef90
[ "ISC" ]
26
2015-06-09T15:55:29.000Z
2022-02-04T12:29:32.000Z
""" Tests that the exceptions are correctly generated. """ import bindings if __name__ == "__main__": try: raise bindings.Error1("test") except bindings.Error1 as exn: pass try: raise bindings.Error2((4, True)) except bindings.Error2 as exn: pass try: raise ...
22
55
0.606643
b18680e12c75c6e6712b2b03cc985614e8283b20
10,814
py
Python
python/ray/tune/suggest/suggestion.py
noahshpak/ray
edd783bc327760a4892ab89222ee551e42df15b9
[ "Apache-2.0" ]
1
2019-06-21T10:06:41.000Z
2019-06-21T10:06:41.000Z
python/ray/tune/suggest/suggestion.py
noahshpak/ray
edd783bc327760a4892ab89222ee551e42df15b9
[ "Apache-2.0" ]
null
null
null
python/ray/tune/suggest/suggestion.py
noahshpak/ray
edd783bc327760a4892ab89222ee551e42df15b9
[ "Apache-2.0" ]
null
null
null
import copy import glob import logging import os from ray.util.debug import log_once logger = logging.getLogger(__name__) class Searcher: """Abstract class for wrapping suggesting algorithms. Custom algorithms can extend this class easily by overriding the `suggest` method provide generated parameters ...
35.224756
79
0.610875
b143b5a013fb3c60db822057b92655667079a542
1,591
py
Python
mopidy/http/__init__.py
stekern/mopidy
94509cf70f2bd35ebb13e746dde135bfbe35ce0e
[ "Apache-2.0" ]
2
2019-02-13T15:16:55.000Z
2019-02-18T08:47:29.000Z
mopidy/http/__init__.py
stekern/mopidy
94509cf70f2bd35ebb13e746dde135bfbe35ce0e
[ "Apache-2.0" ]
40
2019-02-13T09:33:00.000Z
2019-02-19T13:21:12.000Z
mopidy/http/__init__.py
stekern/mopidy
94509cf70f2bd35ebb13e746dde135bfbe35ce0e
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import, unicode_literals import logging import os import mopidy from mopidy import config as config_lib, exceptions, ext logger = logging.getLogger(__name__) class Extension(ext.Extension): dist_name = 'Mopidy-HTTP' ext_name = 'http' version = mopidy.__version__ de...
31.196078
75
0.660591
68ee01bc4c247867a691d991d3173ff429fac1d0
583
py
Python
lightly/data/__init__.py
umami-ware/lightly
5d70b34df7f784af249f9e9a6bfd6256756a877f
[ "MIT" ]
1,515
2020-10-05T13:04:17.000Z
2022-03-31T16:14:55.000Z
lightly/data/__init__.py
umami-ware/lightly
5d70b34df7f784af249f9e9a6bfd6256756a877f
[ "MIT" ]
628
2020-10-14T11:38:51.000Z
2022-03-31T14:40:54.000Z
lightly/data/__init__.py
umami-ware/lightly
5d70b34df7f784af249f9e9a6bfd6256756a877f
[ "MIT" ]
108
2020-10-17T08:31:06.000Z
2022-03-20T16:44:22.000Z
"""The lightly.data module provides a dataset wrapper and collate functions. """ # Copyright (c) 2020. Lightly AG and its affiliates. # All Rights Reserved from lightly.data.dataset import LightlyDataset from lightly.data.collate import BaseCollateFunction from lightly.data.collate import ImageCollateFunction from li...
44.846154
80
0.850772
6ba65583c641ff148200ec76f98807a15f261116
7,140
py
Python
cryptoapis/model/add_tokens_to_existing_from_address_response_item_token_data_ethereum_erc20_token.py
xan187/Crypto_APIs_2.0_SDK_Python
a56c75df54ef037b39be1315ed6e54de35bed55b
[ "MIT" ]
null
null
null
cryptoapis/model/add_tokens_to_existing_from_address_response_item_token_data_ethereum_erc20_token.py
xan187/Crypto_APIs_2.0_SDK_Python
a56c75df54ef037b39be1315ed6e54de35bed55b
[ "MIT" ]
null
null
null
cryptoapis/model/add_tokens_to_existing_from_address_response_item_token_data_ethereum_erc20_token.py
xan187/Crypto_APIs_2.0_SDK_Python
a56c75df54ef037b39be1315ed6e54de35bed55b
[ "MIT" ]
1
2021-07-21T03:35:18.000Z
2021-07-21T03:35:18.000Z
""" CryptoAPIs Crypto APIs 2.0 is a complex and innovative infrastructure layer that radically simplifies the development of any Blockchain and Crypto related applications. Organized around REST, Crypto APIs 2.0 can assist both novice Bitcoin/Ethereum enthusiasts and crypto experts with the development of thei...
41.754386
484
0.608543
1ecd80d34344c3419b94e557c344f05202b12dc0
586
py
Python
agent/src/agent/pipeline/config/stages/jdbc_offset.py
eacherkan-aternity/daria
7c77a2f52c09c852017b16949a848fa51f0fb579
[ "Apache-2.0" ]
null
null
null
agent/src/agent/pipeline/config/stages/jdbc_offset.py
eacherkan-aternity/daria
7c77a2f52c09c852017b16949a848fa51f0fb579
[ "Apache-2.0" ]
null
null
null
agent/src/agent/pipeline/config/stages/jdbc_offset.py
eacherkan-aternity/daria
7c77a2f52c09c852017b16949a848fa51f0fb579
[ "Apache-2.0" ]
null
null
null
from .base import Stage class JDBCScript(Stage): JYTHON_SCRIPT = 'jdbc.py' def _get_config(self) -> dict: with open(self.get_jython_file_path()) as f: return { 'scriptConf.params': [ {'key': 'INITIAL_OFFSET', 'value': self.get_initial_timestamp().strfti...
34.470588
112
0.515358
11c44c7c4b71277486e40cd1790d44b511563ff3
4,403
py
Python
pkg/Python27/Lib/ctypes/test/test_arrays.py
jkolokotronis/ds_mod_tools
d9fd4def34f6adfd0e2b176d0a9bf2a3dfd43f93
[ "MIT" ]
1
2021-05-19T16:14:23.000Z
2021-05-19T16:14:23.000Z
pkg/Python27/Lib/ctypes/test/test_arrays.py
jkolokotronis/ds_mod_tools
d9fd4def34f6adfd0e2b176d0a9bf2a3dfd43f93
[ "MIT" ]
null
null
null
pkg/Python27/Lib/ctypes/test/test_arrays.py
jkolokotronis/ds_mod_tools
d9fd4def34f6adfd0e2b176d0a9bf2a3dfd43f93
[ "MIT" ]
2
2020-04-30T17:34:06.000Z
2020-09-03T23:54:39.000Z
import unittest from ctypes import * formats = "bBhHiIlLqQfd" formats = c_byte, c_ubyte, c_short, c_ushort, c_int, c_uint, \ c_long, c_ulonglong, c_float, c_double, c_longdouble class ArrayTestCase(unittest.TestCase): def test_simple(self): # create classes holding simple numeric type...
32.614815
75
0.545083
9358c4fd07111f7adfbf60241727215f978b2a36
10,428
py
Python
vendor/github.com/tensorflow/tensorflow/tensorflow/python/eager/function_argument_naming_test.py
owennewo/kfserving
89f73c87525b8e06ea799f69f2979c4ad272fcb3
[ "Apache-2.0" ]
5
2019-01-13T16:15:25.000Z
2019-07-07T16:17:32.000Z
vendor/github.com/tensorflow/tensorflow/tensorflow/python/eager/function_argument_naming_test.py
owennewo/kfserving
89f73c87525b8e06ea799f69f2979c4ad272fcb3
[ "Apache-2.0" ]
13
2020-11-13T18:53:29.000Z
2022-03-12T00:33:00.000Z
vendor/github.com/tensorflow/tensorflow/tensorflow/python/eager/function_argument_naming_test.py
owennewo/kfserving
89f73c87525b8e06ea799f69f2979c4ad272fcb3
[ "Apache-2.0" ]
2
2019-12-17T09:27:07.000Z
2020-05-24T13:09:49.000Z
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
40.262548
80
0.654776
e7c08a5b8148b4852ce28accb4d7f6cea0b47e2d
1,212
py
Python
sample/1.number.py
Hyper-Devil/learn-python3
c097158c48b9f6804c8c46aebf00025249089bf6
[ "MIT" ]
null
null
null
sample/1.number.py
Hyper-Devil/learn-python3
c097158c48b9f6804c8c46aebf00025249089bf6
[ "MIT" ]
null
null
null
sample/1.number.py
Hyper-Devil/learn-python3
c097158c48b9f6804c8c46aebf00025249089bf6
[ "MIT" ]
null
null
null
a = 1 b = 1.0 c = 10000 # python3中长整数不用再加L print('你好世界') # pyhon3 print函数格式:print() print('hello world!') print(a) print(b) print(c) str = 'hello world' # 字符串 print('字符串') print(str) print(str[0]) # 切片 数字从0开始 print(str[2:5]) # 左闭右开 print(str[2:6]) # 此时末尾输出了一个空格 print(str[2:]) # 输出从第3个字符开始的字符串 print(str * 2) # 输出字符串两...
16.16
50
0.660891
1b6abae3e9d18ab3b79a4d7e0f830ee28e21e24f
67,227
py
Python
src/hapPyTango/CosNotifyChannelAdmin_skel/__init__.py
mguijarr/hapPyTango
2506c8e83d93fbd2c0a0115983489d59c74caa2f
[ "MIT" ]
1
2020-10-28T16:57:36.000Z
2020-10-28T16:57:36.000Z
src/hapPyTango/CosNotifyChannelAdmin_skel/__init__.py
mguijarr/hapPyTango
2506c8e83d93fbd2c0a0115983489d59c74caa2f
[ "MIT" ]
null
null
null
src/hapPyTango/CosNotifyChannelAdmin_skel/__init__.py
mguijarr/hapPyTango
2506c8e83d93fbd2c0a0115983489d59c74caa2f
[ "MIT" ]
null
null
null
""" Module: IDL:omg.org/CosNotifyChannelAdmin:1.0 Automagically generated by:- The ORB called Fnorb v1.1.Return.of.Fnorb """ _FNORB_ID = "IDL:omg.org/CosNotifyChannelAdmin:1.0" # Fnorb modules. import Fnorb.orb.CORBA import Fnorb.orb.TypeManager import Fnorb.orb.Util # Import base interface packages. import CosNo...
34.868776
216
0.681839
2ff55050e42ae030c060c932064218690c231573
931
py
Python
database/invitrodb/tox21_antag_summary.py
mshobair/invitro_cheminformatics
17201496c73453accd440646a1ee81726119a59c
[ "MIT" ]
null
null
null
database/invitrodb/tox21_antag_summary.py
mshobair/invitro_cheminformatics
17201496c73453accd440646a1ee81726119a59c
[ "MIT" ]
null
null
null
database/invitrodb/tox21_antag_summary.py
mshobair/invitro_cheminformatics
17201496c73453accd440646a1ee81726119a59c
[ "MIT" ]
null
null
null
import datetime from database.database_schemas import Schemas from sqlalchemy import Column, ForeignKey, Integer, String, DateTime from sqlalchemy.dialects.mysql import BIGINT, SMALLINT, DOUBLE, TIMESTAMP, TINYINT from database.base import Base class Tox21AntagSummary(Base): """Maps to tox21_antag_summary tabl...
30.032258
82
0.769066
f4005934a82afad03466fcf5b747c48c61e5f8a2
22,702
py
Python
test/test_cmake_parser.py
eurogroep/catkin_lint
987d8e1378b4963e4d36032b9410e13c7bbab8f3
[ "BSD-3-Clause" ]
null
null
null
test/test_cmake_parser.py
eurogroep/catkin_lint
987d8e1378b4963e4d36032b9410e13c7bbab8f3
[ "BSD-3-Clause" ]
null
null
null
test/test_cmake_parser.py
eurogroep/catkin_lint
987d8e1378b4963e4d36032b9410e13c7bbab8f3
[ "BSD-3-Clause" ]
null
null
null
# coding=utf-8 # # catkin_lint # Copyright (c) 2013-2020 Fraunhofer FKIE # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistributions of source code must retain the above copyright # notice, this list of ...
39.07401
148
0.481632
362991897db1fd56e898613756c2f16c0f64c89d
9,134
py
Python
scripts/igvSnapshots.py
skchronicles/ChIPSeqPeakCalling
24a8ad6736c7c9e3a29b20da1a092693f9c1c926
[ "MIT" ]
3
2019-05-24T05:58:19.000Z
2021-12-20T11:52:29.000Z
scripts/igvSnapshots.py
skchronicles/PeakCalling
24a8ad6736c7c9e3a29b20da1a092693f9c1c926
[ "MIT" ]
null
null
null
scripts/igvSnapshots.py
skchronicles/PeakCalling
24a8ad6736c7c9e3a29b20da1a092693f9c1c926
[ "MIT" ]
4
2021-07-14T15:13:29.000Z
2021-12-20T11:52:33.000Z
########################################################################################################## # ChIP-Seq Pipeline: PeakCaller -> IGV # Author: Skyler Kuhn (NIH/NCI) [C] # CCR Collaborative Bioinformatics Resource # Version 1.0.3 # See readme.txt for more information # USAGE: # python igvSnapshots.py # ...
39.541126
187
0.614408
0bbf603a743155dd872aaec0166eee3b125a5c33
2,443
py
Python
test/net/integration/tcp/test.py
anna328p/IncludeOS
b9858b8e6842d6c0cc227a34a015e7e8de9438ab
[ "Apache-2.0" ]
null
null
null
test/net/integration/tcp/test.py
anna328p/IncludeOS
b9858b8e6842d6c0cc227a34a015e7e8de9438ab
[ "Apache-2.0" ]
null
null
null
test/net/integration/tcp/test.py
anna328p/IncludeOS
b9858b8e6842d6c0cc227a34a015e7e8de9438ab
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import socket import sys import os includeos_src = os.environ.get('INCLUDEOS_SRC', os.path.realpath(os.path.join(os.getcwd(), os.path.dirname(__file__))).split('/test')[0]) sys.path.insert(0,includeos_src + "/test") import vmrunner # Usage: python test.py $GUEST_IP $...
30.160494
120
0.546459
2924f8c5c2bfffa9cf86f04239c65439bb167693
1,080
py
Python
vapour/links/connections/affine_transform.py
speedcell4/vapour
c00b9b8fffddf0b134bec3ebb26d961e0468194a
[ "MIT" ]
null
null
null
vapour/links/connections/affine_transform.py
speedcell4/vapour
c00b9b8fffddf0b134bec3ebb26d961e0468194a
[ "MIT" ]
null
null
null
vapour/links/connections/affine_transform.py
speedcell4/vapour
c00b9b8fffddf0b134bec3ebb26d961e0468194a
[ "MIT" ]
null
null
null
import chainer.functions as F import chainer.links as L from chainer import Variable, Chain import numpy as np __all__ = [ 'AffineTransform', ] class AffineTransform(Chain): def __init__(self, *in_sizes: int, out_size: int, nonlinear=F.tanh, nobias: bool = False, initialW=None, initial_bias=...
30
99
0.652778
3e349b44a16def7bcb16178ba5ee1e96ba60152b
920
py
Python
pid_contoller/pid_controller/main.py
matthaeusheer/playground
407086c8070cf71280b426db61fbe03034283760
[ "MIT" ]
null
null
null
pid_contoller/pid_controller/main.py
matthaeusheer/playground
407086c8070cf71280b426db61fbe03034283760
[ "MIT" ]
1
2020-11-14T09:42:28.000Z
2020-11-14T09:42:28.000Z
pid_contoller/pid_controller/main.py
matthaeusheer/playground
407086c8070cf71280b426db61fbe03034283760
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt from pid_controller.controller import Sensor, MassSystem, PidController, Gain from pid_controller.loop import closed_loop from pid_controller.visualization import plot_control_loop_output def run_pid_control(init_state, init_velocity, desired_position, system_noise_std, sensor_noise_s...
41.818182
112
0.740217
c26fef29ffec3f3054e3da8b6ac97df82591154b
7,359
py
Python
scripts/automation/trex_control_plane/client_utils/trex_yaml_gen.py
timgates42/trex-core
efe94752fcb2d0734c83d4877afe92a3dbf8eccd
[ "Apache-2.0" ]
956
2015-06-24T15:04:55.000Z
2022-03-30T06:25:04.000Z
scripts/automation/trex_control_plane/client_utils/trex_yaml_gen.py
angelyouyou/trex-core
fddf78584cae285d9298ef23f9f5c8725e16911e
[ "Apache-2.0" ]
782
2015-09-20T15:19:00.000Z
2022-03-31T23:52:05.000Z
scripts/automation/trex_control_plane/client_utils/trex_yaml_gen.py
angelyouyou/trex-core
fddf78584cae285d9298ef23f9f5c8725e16911e
[ "Apache-2.0" ]
429
2015-06-27T19:34:21.000Z
2022-03-23T11:02:51.000Z
#!/router/bin/python import pprint import yaml import os # import bisect class CTRexYaml(object): """ This class functions as a YAML generator according to TRex YAML format. CTRexYaml is compatible with both Python 2 and Python 3. """ YAML_TEMPLATE = [{'cap_info': [], ...
34.549296
149
0.511754
9e81f01caca9aa03d47bf9ebc5ae8a483191a874
11,951
py
Python
ansible/venv/lib/python2.7/site-packages/ansible/modules/network/fortios/fortios_system_vxlan.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/network/fortios/fortios_system_vxlan.py
gvashchenkolineate/gvashchenkolineate_infra_trytravis
0fb18850afe0d8609693ba4b23f29c7cda17d97f
[ "MIT" ]
32
2018-10-09T04:13:42.000Z
2020-05-11T07:20:28.000Z
ansible/venv/lib/python2.7/site-packages/ansible/modules/network/fortios/fortios_system_vxlan.py
gvashchenkolineate/gvashchenkolineate_infra_trytravis
0fb18850afe0d8609693ba4b23f29c7cda17d97f
[ "MIT" ]
11
2018-10-09T00:14:53.000Z
2021-11-03T10:54:09.000Z
#!/usr/bin/python from __future__ import (absolute_import, division, print_function) # Copyright 2019 Fortinet, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the Lic...
31.203655
139
0.566396
8f0c87ee7393b990da82c9073fa68798eec89d3e
1,042
py
Python
test/integration/test_customers.py
wolever/netsuite-sdk-py
1b1c21e2a8a532fdbf54915e7e9d30b8b5fc2d08
[ "MIT" ]
47
2019-08-15T21:36:36.000Z
2022-03-18T23:44:59.000Z
test/integration/test_customers.py
wolever/netsuite-sdk-py
1b1c21e2a8a532fdbf54915e7e9d30b8b5fc2d08
[ "MIT" ]
52
2019-06-17T09:43:04.000Z
2022-03-22T05:00:53.000Z
test/integration/test_customers.py
wolever/netsuite-sdk-py
1b1c21e2a8a532fdbf54915e7e9d30b8b5fc2d08
[ "MIT" ]
55
2019-06-02T22:18:01.000Z
2022-03-29T07:20:31.000Z
import logging import json logger = logging.getLogger(__name__) def test_get(nc): data = nc.customers.get_all() logger.debug('data = %s', data) assert data, 'get all didnt work' internal_id = data[0]['internalId'] data = nc.customers.get(internalId=internal_id) logger.debug('data = %s', data)...
34.733333
85
0.661228
350321ddde694f65058007c51cbc866eb1154634
2,051
py
Python
get_meaning.py
NamitS27/WordsAPI
e075882202a8b865ed30c47d5524ec785f7aebf0
[ "MIT" ]
null
null
null
get_meaning.py
NamitS27/WordsAPI
e075882202a8b865ed30c47d5524ec785f7aebf0
[ "MIT" ]
null
null
null
get_meaning.py
NamitS27/WordsAPI
e075882202a8b865ed30c47d5524ec785f7aebf0
[ "MIT" ]
null
null
null
from selenium import webdriver import time import json def get_meaning(searchterm): """ Fetches the meaning of the word specified :param searchterm: the word for which you want to fetch the meaning :return: json object of the meaning """ # finds the input field by id in the webpage ...
35.362069
135
0.703072
a9fb7a75f3873918d6bc58d6f2bd98e24555c079
3,836
py
Python
USB/python/test-usb-dio96H.py
org-arl/MCC_Linux_Drivers
337ec41121bbff836eb32741dadd90e044edcfc7
[ "JasPer-2.0" ]
null
null
null
USB/python/test-usb-dio96H.py
org-arl/MCC_Linux_Drivers
337ec41121bbff836eb32741dadd90e044edcfc7
[ "JasPer-2.0" ]
null
null
null
USB/python/test-usb-dio96H.py
org-arl/MCC_Linux_Drivers
337ec41121bbff836eb32741dadd90e044edcfc7
[ "JasPer-2.0" ]
null
null
null
#! /usr/bin/python3 # # Copyright (c) 2018 Warren J. Jasper <wjasper@ncsu.edu> # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) a...
34.872727
78
0.606361
7e8fcf5f3d1a2302a3b9bb9cfeaab77f22e8480e
19,921
py
Python
scipy/sparse/linalg/eigen/arpack/tests/test_arpack.py
opoplawski/scipy
582d59caabb4a2a6fcdd06b512dcd14daf7ca6b2
[ "BSD-3-Clause" ]
null
null
null
scipy/sparse/linalg/eigen/arpack/tests/test_arpack.py
opoplawski/scipy
582d59caabb4a2a6fcdd06b512dcd14daf7ca6b2
[ "BSD-3-Clause" ]
null
null
null
scipy/sparse/linalg/eigen/arpack/tests/test_arpack.py
opoplawski/scipy
582d59caabb4a2a6fcdd06b512dcd14daf7ca6b2
[ "BSD-3-Clause" ]
null
null
null
from __future__ import division, print_function, absolute_import __usage__ = """ To run tests locally: python tests/test_arpack.py [-l<int>] [-v<int>] """ import warnings import numpy as np from numpy.testing import assert_allclose, \ assert_array_almost_equal_nulp, TestCase, run_module_suite, dec, \ ...
31.670906
78
0.538778
a930f5b0e874f959fb9ddcd784a17f560fcb192c
1,140
py
Python
aliyun-python-sdk-afs/aliyunsdkafs/request/v20180112/DescribeConfigNameRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
1,001
2015-07-24T01:32:41.000Z
2022-03-25T01:28:18.000Z
aliyun-python-sdk-afs/aliyunsdkafs/request/v20180112/DescribeConfigNameRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
363
2015-10-20T03:15:00.000Z
2022-03-08T12:26:19.000Z
aliyun-python-sdk-afs/aliyunsdkafs/request/v20180112/DescribeConfigNameRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
682
2015-09-22T07:19:02.000Z
2022-03-22T09:51:46.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
38
77
0.766667
313fdc83513b30f45dc5efdeae2e9d25d8fc40d3
30,822
py
Python
tests/regressiontests/backends/tests.py
kezabelle/django
138de533ff677b470a1e7b4b6ff084a5b7a7444b
[ "BSD-3-Clause" ]
null
null
null
tests/regressiontests/backends/tests.py
kezabelle/django
138de533ff677b470a1e7b4b6ff084a5b7a7444b
[ "BSD-3-Clause" ]
null
null
null
tests/regressiontests/backends/tests.py
kezabelle/django
138de533ff677b470a1e7b4b6ff084a5b7a7444b
[ "BSD-3-Clause" ]
1
2021-09-14T06:09:11.000Z
2021-09-14T06:09:11.000Z
# -*- coding: utf-8 -*- # Unit and doctests for specific database backends. from __future__ import absolute_import, unicode_literals import datetime import threading from django.conf import settings from django.core.management.color import no_style from django.core.exceptions import ImproperlyConfigured from django.d...
42.049113
161
0.636364
30a591f29ebc30dfb2ed05f9bb735a7332d4c6fd
8,617
py
Python
ocrd_wrap/skimage_denoise.py
kba/ocrd_wrap
6d92c02e968a8622b1918fc71e4469c6413a8f9b
[ "MIT" ]
null
null
null
ocrd_wrap/skimage_denoise.py
kba/ocrd_wrap
6d92c02e968a8622b1918fc71e4469c6413a8f9b
[ "MIT" ]
null
null
null
ocrd_wrap/skimage_denoise.py
kba/ocrd_wrap
6d92c02e968a8622b1918fc71e4469c6413a8f9b
[ "MIT" ]
null
null
null
from __future__ import absolute_import import os.path from PIL import Image import numpy as np from skimage.morphology import ( remove_small_objects, remove_small_holes ) from ocrd import Processor from ocrd_utils import ( getLogger, make_file_id, assert_file_grp_cardinality, MIMETYPE_PAGE ) f...
49.24
102
0.525357
e58385fb835ed9c0152c4ca0775a294f61634b58
4,706
py
Python
util/data_processing.py
tonyqtian/tagpredictor
595734bfa80ac213268d36be84f082034ff4f014
[ "MIT" ]
1
2017-11-17T00:18:14.000Z
2017-11-17T00:18:14.000Z
util/data_processing.py
tonyqtian/tagpredictor
595734bfa80ac213268d36be84f082034ff4f014
[ "MIT" ]
null
null
null
util/data_processing.py
tonyqtian/tagpredictor
595734bfa80ac213268d36be84f082034ff4f014
[ "MIT" ]
null
null
null
''' Created on Mar 17, 2017 @author: tonyq ''' import pandas as pd import numpy as np import re, sys from bs4 import BeautifulSoup import logging from keras.preprocessing.sequence import pad_sequences from tqdm._tqdm import tqdm from nltk.tokenize import word_tokenize from numpy import array, zeros imp...
28.179641
195
0.645771
8e48b92f7a0805a175511fefe3b07c3e9e6087a2
4,776
py
Python
release/src-rt-6.x.4708/router/samba3/source4/torture/drs/python/drs_base.py
zaion520/ATtomato
4d48bb79f8d147f89a568cf18da9e0edc41f93fb
[ "FSFAP" ]
2
2019-01-13T09:16:31.000Z
2019-02-15T03:30:28.000Z
release/src-rt-6.x.4708/router/samba3/source4/torture/drs/python/drs_base.py
zaion520/ATtomato
4d48bb79f8d147f89a568cf18da9e0edc41f93fb
[ "FSFAP" ]
null
null
null
release/src-rt-6.x.4708/router/samba3/source4/torture/drs/python/drs_base.py
zaion520/ATtomato
4d48bb79f8d147f89a568cf18da9e0edc41f93fb
[ "FSFAP" ]
2
2020-03-08T01:58:25.000Z
2020-12-20T10:34:54.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Unix SMB/CIFS implementation. # Copyright (C) Kamen Mazdrashki <kamenim@samba.org> 2011 # # 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...
38.829268
88
0.647613
c0c7ee9a0323b6ec3f4252fdfe897de4d50ecc85
1,726
py
Python
examples/figures.py
pbmanis/cnmodel
eee593c673752c19137658d5b9a381ea9ad4580f
[ "BSD-3-Clause" ]
5
2017-07-26T21:46:14.000Z
2020-11-27T07:53:14.000Z
examples/figures.py
pbmanis/cnmodel
eee593c673752c19137658d5b9a381ea9ad4580f
[ "BSD-3-Clause" ]
12
2017-07-26T07:16:16.000Z
2021-07-14T13:41:37.000Z
examples/figures.py
pbmanis/cnmodel
eee593c673752c19137658d5b9a381ea9ad4580f
[ "BSD-3-Clause" ]
10
2017-07-26T07:03:29.000Z
2021-06-23T15:52:37.000Z
from __future__ import print_function """ """ import sys import subprocess if len(sys.argv) < 2: # if no argument, print helpful message print("Plot selected figures from paper, Manis and Campagnola, Hearing Research. 2018") print("Usage: figures.py [2a | 2b | 2c | 3 | 4 | 5 | 6a | 6d | 7]") exit(1) ...
27.83871
91
0.505214
4ebb9c9334d36b725e072f9ec0586c516d0c5abc
68
py
Python
pyxb/bundles/reqif/driver.py
eLBati/pyxb
14737c23a125fd12c954823ad64fc4497816fae3
[ "Apache-2.0" ]
123
2015-01-12T06:43:22.000Z
2022-03-20T18:06:46.000Z
pyxb/bundles/reqif/driver.py
eLBati/pyxb
14737c23a125fd12c954823ad64fc4497816fae3
[ "Apache-2.0" ]
103
2015-01-08T18:35:57.000Z
2022-01-18T01:44:14.000Z
pyxb/bundles/reqif/driver.py
eLBati/pyxb
14737c23a125fd12c954823ad64fc4497816fae3
[ "Apache-2.0" ]
54
2015-02-15T17:12:00.000Z
2022-03-07T23:02:32.000Z
# -*- coding: utf-8 -*- from pyxb.bundles.reqif.raw.driver import *
22.666667
43
0.661765
a8476f13aa7ec8aead3ddfc3532185a0782ed373
1,254
py
Python
updater/reports/ReportOrgsAbandoned.py
rashamalek/hubble
508cc0ce4ef60fb968df5e7252ee878bf83c929f
[ "MIT" ]
null
null
null
updater/reports/ReportOrgsAbandoned.py
rashamalek/hubble
508cc0ce4ef60fb968df5e7252ee878bf83c929f
[ "MIT" ]
1
2022-03-02T10:13:49.000Z
2022-03-02T10:13:49.000Z
updater/reports/ReportOrgsAbandoned.py
rashamalek/hubble
508cc0ce4ef60fb968df5e7252ee878bf83c929f
[ "MIT" ]
null
null
null
from .ReportDaily import * # Find the organizations that have not received a push for the longest time. # Only look at organizations that have not received a push for at least one # year. Only look at repositories that are still maintained (not archived!). class ReportOrgsAbandoned(ReportDaily): def name(self): ret...
32.153846
90
0.707337
c6a2852d37e984a32f50323523da5363f7038d6d
225,669
py
Python
spyder/plugins/editor/widgets/codeeditor.py
skjerns/spyder
c130a2e2f8782d8a27886da100e70e1e47d903f5
[ "MIT" ]
null
null
null
spyder/plugins/editor/widgets/codeeditor.py
skjerns/spyder
c130a2e2f8782d8a27886da100e70e1e47d903f5
[ "MIT" ]
null
null
null
spyder/plugins/editor/widgets/codeeditor.py
skjerns/spyder
c130a2e2f8782d8a27886da100e70e1e47d903f5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright © Spyder Project Contributors # Licensed under the terms of the MIT License # (see spyder/__init__.py for details) """ Editor widget based on QtGui.QPlainTextEdit """ # TODO: Try to separate this module from spyder to create a self # consistent editor module (Qt ...
41.233145
91
0.580793
17bcbf8ffe4bb48c0b31afd03cda79acf0cde04e
1,223
py
Python
petstagram/accounts/managers.py
ivanoff-ivan/petstagram
6ad2fa038843c6e2011fd9242e3edec857f48707
[ "MIT" ]
null
null
null
petstagram/accounts/managers.py
ivanoff-ivan/petstagram
6ad2fa038843c6e2011fd9242e3edec857f48707
[ "MIT" ]
null
null
null
petstagram/accounts/managers.py
ivanoff-ivan/petstagram
6ad2fa038843c6e2011fd9242e3edec857f48707
[ "MIT" ]
null
null
null
from django.contrib.auth import base_user as auth_base from django.contrib.auth.hashers import make_password class PetstagramUserManager(auth_base.BaseUserManager): def _create_user(self, username, password, **extra_fields): if not username: raise ValueError('The given username must be set') ...
42.172414
72
0.705642
3ae3bdc6fdc89bc015a61bcf9d7874c9b7628332
33,498
py
Python
viper/modules/misp.py
Mario-Kart-Felix/mal-scrap
bc396a15ea5b144eb1c0f05759d1f9419d6671df
[ "BSD-3-Clause" ]
2
2015-12-17T20:25:09.000Z
2017-10-08T19:14:57.000Z
viper/modules/misp.py
Mario-Kart-Felix/mal-scrap
bc396a15ea5b144eb1c0f05759d1f9419d6671df
[ "BSD-3-Clause" ]
1
2015-01-05T18:07:13.000Z
2015-01-07T21:43:57.000Z
viper/modules/misp.py
Mario-Kart-Felix/mal-scrap
bc396a15ea5b144eb1c0f05759d1f9419d6671df
[ "BSD-3-Clause" ]
3
2017-10-18T00:56:53.000Z
2020-05-24T09:38:54.000Z
# -*- coding: utf-8 -*- # This file is part of Viper - https://github.com/viper-framework/viper # See the file 'LICENSE' for copying permission. import argparse import textwrap import os import json import logging try: from pymisp import PyMISP, PyMISPError, MISPEvent try: from pymisp import MISPEncod...
51.064024
211
0.570989
1051ff4c639fa7e4cf7b18f3439326df08db862c
31,350
py
Python
d3rlpy/base.py
Mohan-Zhang-u/d3rlpy
3ab3c0bbd6f86e73c171a6084f3130d60be85b5f
[ "MIT" ]
565
2020-08-01T02:44:28.000Z
2022-03-30T15:00:54.000Z
d3rlpy/base.py
Mohan-Zhang-u/d3rlpy
3ab3c0bbd6f86e73c171a6084f3130d60be85b5f
[ "MIT" ]
144
2020-08-01T03:45:10.000Z
2022-03-30T14:51:16.000Z
d3rlpy/base.py
Mohan-Zhang-u/d3rlpy
3ab3c0bbd6f86e73c171a6084f3130d60be85b5f
[ "MIT" ]
103
2020-08-26T13:27:34.000Z
2022-03-31T12:24:27.000Z
import copy import json from abc import ABCMeta, abstractmethod from collections import defaultdict from typing import ( Any, Callable, DefaultDict, Dict, Generator, List, Optional, Sequence, Tuple, Union, ) import gym import numpy as np from tqdm.auto import tqdm from .argumen...
30.675147
80
0.576651
a68807a204cd4378180400afc4a8d7373c7a168f
139
py
Python
src/main/python/601/design_lab_2.1.py
Fiegellan/Data-Engineer-Preperation
9178ea2381a1225d65c0b1761f9c38d2d8272f8a
[ "MIT" ]
null
null
null
src/main/python/601/design_lab_2.1.py
Fiegellan/Data-Engineer-Preperation
9178ea2381a1225d65c0b1761f9c38d2d8272f8a
[ "MIT" ]
null
null
null
src/main/python/601/design_lab_2.1.py
Fiegellan/Data-Engineer-Preperation
9178ea2381a1225d65c0b1761f9c38d2d8272f8a
[ "MIT" ]
1
2019-03-17T02:02:24.000Z
2019-03-17T02:02:24.000Z
def fib(x): if x == 0: return 0 elif x == 1: return 1 else: return fib(x-1) + fib(x-2) print fib(10)
12.636364
34
0.438849
38eac4d497cbf5b539d211a1231955f44b02ee97
2,596
py
Python
osf/migrations/0126_update_social_data_format.py
birdbrained/osf.io
ca70cf9fdacc2f3771038c8e5bc1c19e7126fd50
[ "Apache-2.0" ]
1
2019-12-23T04:30:20.000Z
2019-12-23T04:30:20.000Z
osf/migrations/0126_update_social_data_format.py
birdbrained/osf.io
ca70cf9fdacc2f3771038c8e5bc1c19e7126fd50
[ "Apache-2.0" ]
16
2020-03-24T16:30:32.000Z
2022-03-03T22:39:45.000Z
osf/migrations/0126_update_social_data_format.py
birdbrained/osf.io
ca70cf9fdacc2f3771038c8e5bc1c19e7126fd50
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.13 on 2018-07-25 20:39 from __future__ import unicode_literals import logging import progressbar from django.db import migrations, connection logger = logging.getLogger(__name__) FIELDS_TO_MIGRATE = [ 'github', 'linkedIn', 'twitter' ] class Migratio...
35.561644
126
0.557396
0d79f9915228fde49bce9066b70dc46b1b3ffad3
17,499
py
Python
scripts/dual_IDG.py
ssykira/optic-nerve
0457df5c3cd58416361b107be3282745b6d4acbd
[ "MIT" ]
2
2019-07-29T09:36:10.000Z
2019-08-26T08:30:37.000Z
scripts/dual_IDG.py
ssykira/optic-nerve
0457df5c3cd58416361b107be3282745b6d4acbd
[ "MIT" ]
null
null
null
scripts/dual_IDG.py
ssykira/optic-nerve
0457df5c3cd58416361b107be3282745b6d4acbd
[ "MIT" ]
1
2019-12-18T17:30:14.000Z
2019-12-18T17:30:14.000Z
"""Fairly basic set of tools for real-time data augmentation on image data. Can easily be extended to include new transformations, new preprocessing methods, etc... Based on Keras code Modified by He Xie 08/2016, Artem Sevastopolsky 10/2016 For image segmentation problem data augmentation. Transform train img data and...
40.885514
113
0.573233
f58e4c879a6a95a925d5063390cfe2ee4bf5423e
780
py
Python
12.0-flask/src/simple_dev_sample.py
zehemz/clases-python-101
633cb5f0cbc85e64e242514f0394754a5bed0513
[ "Apache-2.0" ]
null
null
null
12.0-flask/src/simple_dev_sample.py
zehemz/clases-python-101
633cb5f0cbc85e64e242514f0394754a5bed0513
[ "Apache-2.0" ]
null
null
null
12.0-flask/src/simple_dev_sample.py
zehemz/clases-python-101
633cb5f0cbc85e64e242514f0394754a5bed0513
[ "Apache-2.0" ]
null
null
null
''' This module represents the (otherwise anonymous) scope in which the interpreter’s main program executes — commands read either from standard input, from a script file, or from an interactive prompt. It is this environment in which the idiomatic “conditional script” stanza causes a script to run: Instalación de fla...
26
296
0.739744
e9ab4cd22c3d93750a4dcea194de1d9bd906138d
7,299
py
Python
src/converter.py
xryuseix/proofreader
b4c523d05324cf771acee688d51cfea8d6d6d114
[ "MIT" ]
null
null
null
src/converter.py
xryuseix/proofreader
b4c523d05324cf771acee688d51cfea8d6d6d114
[ "MIT" ]
5
2020-04-28T18:13:26.000Z
2020-05-17T19:09:42.000Z
src/converter.py
xryuseix/Proofreader
b4c523d05324cf771acee688d51cfea8d6d6d114
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os, sys, re import read_file as File # .,を、。に変換 def dot_to_comma(text): replaced_text = re.sub(",", r"、", text) return re.sub(".", r"。", replaced_text) # word_listを参照して警告 def word_to_word(text, file, search, root): if not os.path.isfile("%sword_list.csv" % (root)): ...
32.730942
86
0.511029
c09fe77938eb67c406590e65bee0751046c56ae5
17,762
py
Python
elementpath/xpath2/xpath2_constructors.py
felixonmars/elementpath
62584c7335a8188ebc7eecdcbf0cee52daebe301
[ "MIT" ]
null
null
null
elementpath/xpath2/xpath2_constructors.py
felixonmars/elementpath
62584c7335a8188ebc7eecdcbf0cee52daebe301
[ "MIT" ]
null
null
null
elementpath/xpath2/xpath2_constructors.py
felixonmars/elementpath
62584c7335a8188ebc7eecdcbf0cee52daebe301
[ "MIT" ]
null
null
null
# # Copyright (c), 2018-2021, SISSA (International School for Advanced Studies). # All rights reserved. # This file is distributed under the terms of the MIT License. # See the file 'LICENSE' in the root directory of the present # distribution, or http://opensource.org/licenses/MIT. # # @author Davide Brunato <brunato@...
30.5189
98
0.656627
1a4b1fa2a88c6d3f4f11f66beb64bdb562d95994
18,819
py
Python
c2rust-refactor/doc/literate/diff.py
marcograss/c2rust
b432c3836d8cf3cb5866c0d98d93c06c900abafb
[ "BSD-3-Clause" ]
2,337
2018-04-20T00:34:36.000Z
2022-03-30T21:08:36.000Z
c2rust-refactor/doc/literate/diff.py
marcograss/c2rust
b432c3836d8cf3cb5866c0d98d93c06c900abafb
[ "BSD-3-Clause" ]
324
2018-06-20T04:14:12.000Z
2022-03-31T16:45:17.000Z
c2rust-refactor/doc/literate/diff.py
marcograss/c2rust
b432c3836d8cf3cb5866c0d98d93c06c900abafb
[ "BSD-3-Clause" ]
146
2018-06-22T20:16:11.000Z
2022-03-16T18:04:30.000Z
from collections import namedtuple, deque import difflib import pygments.formatters import pygments.lexers import pygments.token import re from typing import List, Tuple, Optional, Iterator, Iterable from literate.annot import Span, Annot, SpanMerger, \ cut_annot, merge_annot, sub_annot, fill_annot from litera...
37.638
89
0.580955
2e81de17de3944a25d618607675c46a2ec850257
971
py
Python
sunless_web/migrations/0022_auto_20180526_1619.py
bluedisk/SunlessSeaKo
1e6d498ff7e735b8d272dd0bca6c17741a2faedb
[ "MIT" ]
2
2019-02-19T11:53:29.000Z
2021-02-18T23:57:20.000Z
sunless_web/migrations/0022_auto_20180526_1619.py
bluedisk/SunlessSeaKo
1e6d498ff7e735b8d272dd0bca6c17741a2faedb
[ "MIT" ]
4
2018-05-26T13:18:27.000Z
2018-05-26T13:19:50.000Z
sunless_web/migrations/0022_auto_20180526_1619.py
bluedisk/SunlessSeaKo
1e6d498ff7e735b8d272dd0bca6c17741a2faedb
[ "MIT" ]
null
null
null
# Generated by Django 2.0.5 on 2018-05-26 07:19 import django.db.models.deletion from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('sunless_web', '0021_auto_20180526_1607'), ] operations = [ migrations.RenameModel( old_name='Ent...
28.558824
112
0.566426
010a03d5dde055ea5698c4114064a6fa6aa0f3a0
24,708
py
Python
openbb_terminal/cryptocurrency/crypto_controller.py
tehcoderer/GamestonkTerminal
54a1b6f545a0016c576e9e00eef5c003d229dacf
[ "MIT" ]
null
null
null
openbb_terminal/cryptocurrency/crypto_controller.py
tehcoderer/GamestonkTerminal
54a1b6f545a0016c576e9e00eef5c003d229dacf
[ "MIT" ]
null
null
null
openbb_terminal/cryptocurrency/crypto_controller.py
tehcoderer/GamestonkTerminal
54a1b6f545a0016c576e9e00eef5c003d229dacf
[ "MIT" ]
null
null
null
"""Cryptocurrency Context Controller""" __docformat__ = "numpy" # pylint: disable=R0904, C0302, R1710, W0622, C0201, C0301 import argparse import logging import os from typing import List from binance.client import Client from prompt_toolkit.completion import NestedCompleter import openbb_terminal.config_terminal as...
35.449067
118
0.496236
732afe7bb5014bc6299202562ff7bd0adc01d8c7
2,414
py
Python
test/azure/version-tolerant/Expected/AcceptanceTests/CustomUrlPagingVersionTolerant/custombaseurlpagingversiontolerant/_configuration.py
changlong-liu/autorest.python
1f03e4c6a11934d385fab050dc44041f1e91e9ff
[ "MIT" ]
null
null
null
test/azure/version-tolerant/Expected/AcceptanceTests/CustomUrlPagingVersionTolerant/custombaseurlpagingversiontolerant/_configuration.py
changlong-liu/autorest.python
1f03e4c6a11934d385fab050dc44041f1e91e9ff
[ "MIT" ]
null
null
null
test/azure/version-tolerant/Expected/AcceptanceTests/CustomUrlPagingVersionTolerant/custombaseurlpagingversiontolerant/_configuration.py
changlong-liu/autorest.python
1f03e4c6a11934d385fab050dc44041f1e91e9ff
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
47.333333
108
0.686827
cc7b1f0eac367bcd0aba12f3acc8c89875634cf6
10,655
py
Python
madrona/kmlapp/views.py
movermeyer/madrona
fcdced0a03408754b88a3d88f416e04d500c32d4
[ "BSD-3-Clause" ]
9
2015-03-09T11:04:21.000Z
2022-01-16T09:45:36.000Z
madrona/kmlapp/views.py
movermeyer/madrona
fcdced0a03408754b88a3d88f416e04d500c32d4
[ "BSD-3-Clause" ]
1
2020-04-24T14:38:43.000Z
2020-04-24T14:38:43.000Z
madrona/kmlapp/views.py
movermeyer/madrona
fcdced0a03408754b88a3d88f416e04d500c32d4
[ "BSD-3-Clause" ]
2
2016-12-06T15:31:35.000Z
2018-03-04T20:04:44.000Z
from django.shortcuts import render_to_response from django.contrib.auth.models import * from django.template.loader import get_template from django.template import Context from django.http import HttpResponse, Http404 from madrona.common import default_mimetypes as mimetypes from madrona.common import utils from djan...
37.125436
139
0.694322
c3da59bec46bde629a6b2bc0722b66276cc27a3f
22,405
py
Python
UMLRT2Kiltera_MM/transformation_reduced/Himesis/HState2HProcDef.py
levilucio/SyVOLT
7526ec794d21565e3efcc925a7b08ae8db27d46a
[ "MIT" ]
3
2017-06-02T19:26:27.000Z
2021-06-14T04:25:45.000Z
UMLRT2Kiltera_MM/transformation_reduced/Himesis/HState2HProcDef.py
levilucio/SyVOLT
7526ec794d21565e3efcc925a7b08ae8db27d46a
[ "MIT" ]
8
2016-08-24T07:04:07.000Z
2017-05-26T16:22:47.000Z
UMLRT2Kiltera_MM/transformation_reduced/Himesis/HState2HProcDef.py
levilucio/SyVOLT
7526ec794d21565e3efcc925a7b08ae8db27d46a
[ "MIT" ]
1
2019-10-31T06:00:23.000Z
2019-10-31T06:00:23.000Z
from core.himesis import Himesis import cPickle as pickle from uuid import UUID class HState2HProcDef(Himesis): def __init__(self): """ Creates the himesis graph representing the AToM3 model HState2HProcDef. """ # Flag this instance as compiled now self.is_compiled = True ...
57.744845
1,359
0.537826
93238639fd2963f368d9ec70b1b0dcaf69edac4a
1,736
py
Python
const.py
youssefhoummad/tetris
beda6947bbf734672da453c2404e6946f44759b9
[ "MIT" ]
null
null
null
const.py
youssefhoummad/tetris
beda6947bbf734672da453c2404e6946f44759b9
[ "MIT" ]
null
null
null
const.py
youssefhoummad/tetris
beda6947bbf734672da453c2404e6946f44759b9
[ "MIT" ]
null
null
null
B = BLOCK_SIZE = 30 SURFACE_WIDTH = 300 SURFACE_HEIGHT = 600 S = [['.....', '.....', '..00.', '.00..', '.....'], ['.....', '..0..', '..00.', '...0.', '.....' ]] Z = [['.....', '.....', '.00..', '..00.', '.....'], ['.....', ...
16.533333
80
0.12212
41aa3c7403731d9854e1166bf116715b2fe4c459
10,268
py
Python
generate.py
gaoxiao/handwriting-generation
5e684c1adee7fb83be309f9d9c001b559b567666
[ "MIT" ]
null
null
null
generate.py
gaoxiao/handwriting-generation
5e684c1adee7fb83be309f9d9c001b559b567666
[ "MIT" ]
null
null
null
generate.py
gaoxiao/handwriting-generation
5e684c1adee7fb83be309f9d9c001b559b567666
[ "MIT" ]
null
null
null
import os import pickle import argparse import numpy as np import tensorflow as tf import matplotlib.pyplot as plt import matplotlib.cm as cm import matplotlib.mlab as mlab from matplotlib import animation import seaborn from collections import namedtuple parser = argparse.ArgumentParser() parser.add_argument('--model...
41.57085
118
0.523763
426bfe69a3bf724a1170331e637f3380fcaf80e5
35
py
Python
stam_pytorch/__init__.py
lab176344/STAM-pytorch
1ea4fd218d1567e94d27581e48e3b8ce50f985ed
[ "MIT" ]
100
2021-03-28T21:50:30.000Z
2022-03-21T06:34:59.000Z
stam_pytorch/__init__.py
lab176344/STAM-pytorch
1ea4fd218d1567e94d27581e48e3b8ce50f985ed
[ "MIT" ]
5
2021-03-29T13:24:04.000Z
2022-02-01T20:03:00.000Z
stam_pytorch/__init__.py
lab176344/STAM-pytorch
1ea4fd218d1567e94d27581e48e3b8ce50f985ed
[ "MIT" ]
13
2021-03-29T01:36:14.000Z
2022-03-30T05:59:24.000Z
from stam_pytorch.stam import STAM
17.5
34
0.857143
efe83e4fba52286da6a14089f9972879eb399e62
3,786
py
Python
tests/garage/torch/algos/test_ddpg.py
igor-krawczuk/garage
aa86ce710c6d01380477d6feddc0e38427b1e3b4
[ "MIT" ]
null
null
null
tests/garage/torch/algos/test_ddpg.py
igor-krawczuk/garage
aa86ce710c6d01380477d6feddc0e38427b1e3b4
[ "MIT" ]
null
null
null
tests/garage/torch/algos/test_ddpg.py
igor-krawczuk/garage
aa86ce710c6d01380477d6feddc0e38427b1e3b4
[ "MIT" ]
null
null
null
"""This script creates a test that fails when DDPG performance is too low.""" import gym import pytest import torch from torch.nn import functional as F # NOQA from garage.envs import normalize from garage.envs.base import GarageEnv from garage.experiment import deterministic, LocalRunner from garage.np.exploration_s...
37.485149
77
0.559694
60b19e6bcf5095763b0c383ac66e3fc7f68041dc
23,584
py
Python
training.py
davidwfong/ViolinMelodyCNNs
79fbfc4f03f081ef4b3145e341d1aec49e934a9e
[ "Apache-2.0" ]
6
2018-06-20T10:29:22.000Z
2018-06-29T22:56:00.000Z
training.py
davidwfong/ViolinMelodyCNNs
79fbfc4f03f081ef4b3145e341d1aec49e934a9e
[ "Apache-2.0" ]
1
2018-09-09T22:08:45.000Z
2019-04-17T11:12:16.000Z
training.py
davidwfong/ViolinMelodyCNNs
79fbfc4f03f081ef4b3145e341d1aec49e934a9e
[ "Apache-2.0" ]
null
null
null
#IMPORT RELEVANT MODULES import numpy as np import matplotlib.pyplot as plt from sklearn.metrics import confusion_matrix import itertools import preprocessing from sklearn import model_selection from keras.models import Model from keras.utils import np_utils, plot_model from keras.layers import Flatten, Dropout, Activ...
37.55414
142
0.620378
74c187eaaf50834930934613ffd8f6fd08df9468
2,768
py
Python
python3/koans/about_string_manipulation.py
mahletbogale/python_koans
61380577467de08c744c47af0efccb9459497f98
[ "MIT" ]
null
null
null
python3/koans/about_string_manipulation.py
mahletbogale/python_koans
61380577467de08c744c47af0efccb9459497f98
[ "MIT" ]
null
null
null
python3/koans/about_string_manipulation.py
mahletbogale/python_koans
61380577467de08c744c47af0efccb9459497f98
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from runner.koan import * class AboutStringManipulation(Koan): def test_use_format_to_interpolate_variables(self): value1 = 'one' value2 = 2 string = "The values are {0} and {1}".format(value1, value2) self.assertEqual('The values are ...
36.906667
81
0.649566
92ff7140afb365b2d6bb9a1214ce332a6b8a6e32
387
py
Python
blender/arm/logicnode/variable/LN_color.py
onelsonic/armory
55cfead0844923d419d75bf4bd677ebed714b4b5
[ "Zlib" ]
2,583
2016-07-27T08:25:47.000Z
2022-03-31T10:42:17.000Z
blender/arm/logicnode/variable/LN_color.py
N8n5h/armory
5b4d24f067a2354bafd3ab417bb8e30ee0c5aff8
[ "Zlib" ]
2,122
2016-07-31T14:20:04.000Z
2022-03-31T20:44:14.000Z
blender/arm/logicnode/variable/LN_color.py
N8n5h/armory
5b4d24f067a2354bafd3ab417bb8e30ee0c5aff8
[ "Zlib" ]
451
2016-08-12T05:52:58.000Z
2022-03-31T01:33:07.000Z
from arm.logicnode.arm_nodes import * class ColorNode(ArmLogicTreeNode): """Stores the given color as a variable.""" bl_idname = 'LNColorNode' bl_label = 'Color' arm_version = 1 def arm_init(self, context): self.add_input('ArmColorSocket', 'Color In', default_value=[1.0, 1.0, 1.0, 1.0]) ...
29.769231
88
0.669251
ced541c354c6043ad0d0cecb11d6ce920e80a9ea
242,200
py
Python
tensorflow/python/framework/ops.py
mckib2/tensorflow-icg
fede3707c8700a198c8a972978749e4a69bf9a81
[ "Apache-2.0" ]
1
2020-07-29T14:42:30.000Z
2020-07-29T14:42:30.000Z
tensorflow/python/framework/ops.py
mckib2/tensorflow-icg
fede3707c8700a198c8a972978749e4a69bf9a81
[ "Apache-2.0" ]
null
null
null
tensorflow/python/framework/ops.py
mckib2/tensorflow-icg
fede3707c8700a198c8a972978749e4a69bf9a81
[ "Apache-2.0" ]
1
2020-11-10T15:45:53.000Z
2020-11-10T15:45:53.000Z
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
36.475904
115
0.69192
7a96b61c583030bfa7d6ec7318df4537be72b4d1
1,549
py
Python
tests/records/dumpers/test_pids_dumper.py
inveniosoftware/invenio-datacite
d25e3670b74f132390fc42e5647765ae5c605ef3
[ "MIT" ]
10
2020-01-17T10:13:09.000Z
2022-03-17T10:14:41.000Z
tests/records/dumpers/test_pids_dumper.py
inveniosoftware/invenio-datacite
d25e3670b74f132390fc42e5647765ae5c605ef3
[ "MIT" ]
570
2019-08-15T16:35:25.000Z
2022-03-31T13:46:17.000Z
tests/records/dumpers/test_pids_dumper.py
inveniosoftware/invenio-datacite
d25e3670b74f132390fc42e5647765ae5c605ef3
[ "MIT" ]
57
2019-09-04T09:25:29.000Z
2022-03-30T19:32:55.000Z
# -*- coding: utf-8 -*- # # Copyright (C) 2021 CERN. # # Invenio-RDM-Records is free software; you can redistribute it and/or modify # it under the terms of the MIT License; see LICENSE file for more details. """Module tests.""" from invenio_records.dumpers import ElasticsearchDumper from invenio_rdm_records.records...
28.685185
77
0.652679
413b5d7172b204633ad4a243279055d7e40d1bc1
292
py
Python
docs/report/cloudmesh-openapi/tests/add-json/add.py
rickotten/cybertraining-dsc.github.io
c8ea59be4f09fd543040ba0908af118df5820a70
[ "Apache-2.0" ]
7
2020-02-29T14:53:19.000Z
2021-01-17T17:08:44.000Z
docs/report/cloudmesh-openapi/tests/add-json/add.py
rickotten/cybertraining-dsc.github.io
c8ea59be4f09fd543040ba0908af118df5820a70
[ "Apache-2.0" ]
27
2020-02-29T13:38:11.000Z
2020-09-02T20:24:59.000Z
docs/report/cloudmesh-openapi/tests/add-json/add.py
rickotten/cybertraining-dsc.github.io
c8ea59be4f09fd543040ba0908af118df5820a70
[ "Apache-2.0" ]
6
2020-03-02T17:09:14.000Z
2020-10-30T22:48:01.000Z
from flask import jsonify def add(x: float, y: float) -> str: """ adding float and float. :param x: x value :type x: float :param y: y value :type y: float :return: result :return type: float """ result = {"result": x + y} return jsonify(result)
18.25
35
0.568493
cfb9c9893f84ab9eeab000956d10b0d8efbfbb9d
8,298
py
Python
tefla/da/iterator.py
SiddhantKapil/tefla
cff18fbaf5cde4ef55643978593cbcfcb35b3b37
[ "MIT" ]
3
2017-02-26T14:35:03.000Z
2020-04-26T23:06:36.000Z
tefla/da/iterator.py
SiddhantKapil/tefla
cff18fbaf5cde4ef55643978593cbcfcb35b3b37
[ "MIT" ]
null
null
null
tefla/da/iterator.py
SiddhantKapil/tefla
cff18fbaf5cde4ef55643978593cbcfcb35b3b37
[ "MIT" ]
1
2020-05-19T19:18:08.000Z
2020-05-19T19:18:08.000Z
from __future__ import division, print_function, absolute_import import Queue import SharedArray import multiprocessing import os import threading from uuid import uuid4 import numpy as np from tefla.da import data class BatchIterator(object): def __init__(self, batch_size, shuffle): self.batch_size = ...
37.210762
120
0.627501
61f55a73a88c5360e22740ba24577788bcd668b8
2,238
py
Python
labml_nn/resnet/experiment.py
Aarsh2001/annotated_deep_learning_paper_implementations
ff0d5c065da1a46769f5f66fddc252c178f8fa37
[ "MIT" ]
1
2022-03-12T11:04:19.000Z
2022-03-12T11:04:19.000Z
robust StyleGAN 2/labml_nn/resnet/experiment.py
sbnietert/robust-OT
d1fc1bc0e09975687419149dbe25cce786f81fcc
[ "MIT" ]
null
null
null
robust StyleGAN 2/labml_nn/resnet/experiment.py
sbnietert/robust-OT
d1fc1bc0e09975687419149dbe25cce786f81fcc
[ "MIT" ]
1
2022-02-09T04:11:36.000Z
2022-02-09T04:11:36.000Z
""" --- title: Train a ResNet on CIFAR 10 summary: > Train a ResNet on CIFAR 10 --- # Train a [ResNet](index.html) on CIFAR 10 [![View Run](https://img.shields.io/badge/labml-experiment-brightgreen)](https://app.labml.ai/run/fc5ad600e4af11ebbafd23b8665193c1) """ from typing import List, Optional from torch import ...
26.329412
131
0.674263
c196a11a122f0464f8219ae11d9726069b0a3976
9,789
py
Python
sanic/errorpages.py
AggressivelyMeows/sanic
04427bb96f2ca756d5620c58cac7e240e313b7af
[ "MIT" ]
null
null
null
sanic/errorpages.py
AggressivelyMeows/sanic
04427bb96f2ca756d5620c58cac7e240e313b7af
[ "MIT" ]
null
null
null
sanic/errorpages.py
AggressivelyMeows/sanic
04427bb96f2ca756d5620c58cac7e240e313b7af
[ "MIT" ]
null
null
null
import sys import typing as t from functools import partial from traceback import extract_tb from sanic.exceptions import InvalidUsage, SanicException from sanic.helpers import STATUS_CODES from sanic.request import Request from sanic.response import HTTPResponse, html, json, text try: from ujson import dumps ...
29.663636
79
0.548473
b7415d786ff106ac51975dddea19b249d86e65ad
763
py
Python
tests/test_alpha_helix.py
xingjiepan/alpha_helix_generator
2b35691b790e6363d5c4897a72c3efa8556d0143
[ "BSD-3-Clause" ]
null
null
null
tests/test_alpha_helix.py
xingjiepan/alpha_helix_generator
2b35691b790e6363d5c4897a72c3efa8556d0143
[ "BSD-3-Clause" ]
null
null
null
tests/test_alpha_helix.py
xingjiepan/alpha_helix_generator
2b35691b790e6363d5c4897a72c3efa8556d0143
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 import pytest import numpy as np np.seterr(all='raise') import ss_generator as ssg def test_build_beta_sheet(): print("test build beta sheet.") res_list = ssg.alpha_helix.build_ideal_straight_alpha_helix(20) ssg.IO.save_residue_list(res_list, "ideal_straight_helix.pdb") ...
28.259259
82
0.685452
9f00735e14b595c0579f296dd5d2151c6d0235a8
100
py
Python
Python/DivisibilityProblem.py
Zardosh/code-forces-solutions
ea1446b8e4f391f3e9ef63094816c7bdaded1557
[ "MIT" ]
null
null
null
Python/DivisibilityProblem.py
Zardosh/code-forces-solutions
ea1446b8e4f391f3e9ef63094816c7bdaded1557
[ "MIT" ]
null
null
null
Python/DivisibilityProblem.py
Zardosh/code-forces-solutions
ea1446b8e4f391f3e9ef63094816c7bdaded1557
[ "MIT" ]
null
null
null
t = int(input()) for _ in range(t): a, b = map(int, input().split()) print((b - a % b) % b)
20
36
0.48
6695e94528d8f1a836ec7968f8855909c72a0fed
7,565
py
Python
src/oci/identity_data_plane/models/bad_user_state_authenticate_user_result.py
xjuarez/oci-python-sdk
3c1604e4e212008fb6718e2f68cdb5ef71fd5793
[ "Apache-2.0", "BSD-3-Clause" ]
3
2020-09-10T22:09:45.000Z
2021-12-24T17:00:07.000Z
src/oci/identity_data_plane/models/bad_user_state_authenticate_user_result.py
xjuarez/oci-python-sdk
3c1604e4e212008fb6718e2f68cdb5ef71fd5793
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/identity_data_plane/models/bad_user_state_authenticate_user_result.py
xjuarez/oci-python-sdk
3c1604e4e212008fb6718e2f68cdb5ef71fd5793
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# coding: utf-8 # Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
34.386364
245
0.678519
989b6c18ecf49debb2a55a4e8ef501e76e102db2
1,260
py
Python
bot.py
wazaan159/Auto-Filter-Bot-V2
e5cfd5c1d91fd049b040ff07388c0e5de7c82b1f
[ "MIT" ]
null
null
null
bot.py
wazaan159/Auto-Filter-Bot-V2
e5cfd5c1d91fd049b040ff07388c0e5de7c82b1f
[ "MIT" ]
null
null
null
bot.py
wazaan159/Auto-Filter-Bot-V2
e5cfd5c1d91fd049b040ff07388c0e5de7c82b1f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # @Cinema_FestivalTG from pyrogram import ( Client, __version__ ) from config import ( API_HASH, APP_ID, LOGGER, AUTH_USERS, TG_BOT_SESSION, TG_BOT_TOKEN, TG_BOT_WORKERS ) from user import User class Bot(Cl...
22.5
97
0.545238
a45a879067e597dccbbd02df6d2f9020e5cee639
1,826
py
Python
gadget/route/api/project/model.py
wvankuipers/gadget-backend
ac23c9b991c44ed343784a197ed0805b23b88f02
[ "MIT" ]
null
null
null
gadget/route/api/project/model.py
wvankuipers/gadget-backend
ac23c9b991c44ed343784a197ed0805b23b88f02
[ "MIT" ]
9
2020-09-26T11:25:11.000Z
2020-09-30T18:18:26.000Z
gadget/route/api/project/model.py
wvankuipers/gadget-backend
ac23c9b991c44ed343784a197ed0805b23b88f02
[ "MIT" ]
null
null
null
from datetime import datetime from flask import current_app from slugify import slugify from sqlalchemy.ext.hybrid import hybrid_property from gadget import db from gadget import utils class Project(db.Model): id = db.Column(db.Integer, primary_key=True) name = db.Column(db.String(250), nullable=False) _...
28.984127
86
0.625958
d461f2651a0bba4cc4cdea00bb54b62335f87bde
2,974
py
Python
extra_apps/xadmin/plugins/details.py
ansonsry/Education
3c96cc3e951dfdb5ab6b44997a72f61501fbe0f7
[ "MIT" ]
null
null
null
extra_apps/xadmin/plugins/details.py
ansonsry/Education
3c96cc3e951dfdb5ab6b44997a72f61501fbe0f7
[ "MIT" ]
1
2021-02-08T20:31:28.000Z
2021-02-08T20:31:28.000Z
extra_apps/xadmin/plugins/details.py
ansonsry/Freshshop
79ab8beb1aa993f6365182c8d3bb478ee4e028f8
[ "MIT" ]
null
null
null
from django.utils.translation import ugettext as _ # from django.core.urlresolvers import reverse, NoReverseMatch from django.urls import NoReverseMatch, reverse from django.db import models from xadmin.sites import site from xadmin.views import BaseAdminPlugin, ListAdminView class DetailsPlugin(BaseAdminPlugin):...
45.060606
169
0.569267
557100b8218a3096e706d4775effa9bcb4cc1993
299
py
Python
source/vectorpaths/__init__.py
chrisarridge/fitCurves
44e30f480dcacfb8b05494549e6a902aaa384a79
[ "MIT" ]
2
2021-09-10T18:54:19.000Z
2021-11-26T06:17:19.000Z
source/vectorpaths/__init__.py
chrisarridge/fitCurves
44e30f480dcacfb8b05494549e6a902aaa384a79
[ "MIT" ]
null
null
null
source/vectorpaths/__init__.py
chrisarridge/fitCurves
44e30f480dcacfb8b05494549e6a902aaa384a79
[ "MIT" ]
1
2021-09-10T18:54:54.000Z
2021-09-10T18:54:54.000Z
"""Path package; mainly for fitting cubic beziers to points. """ import numpy as np import matplotlib.pyplot as plt import logging __author__ = 'Chris Arridge' __version__ = '0.2' _path_logger = logging.getLogger(__name__) from .bezier import CubicBezier from .fitcurves import fit_cubic_bezier
19.933333
60
0.785953
5a0a0499ddba5b6288e040a308b7f90def81dff1
1,132
py
Python
mysite/ct/tests/test_models.py
raccoongang/socraticqs2
06201005136ee139846f857dbb2f518736e441de
[ "Apache-2.0" ]
3
2015-11-20T07:33:28.000Z
2017-01-15T23:33:50.000Z
mysite/ct/tests/test_models.py
raccoongang/socraticqs2
06201005136ee139846f857dbb2f518736e441de
[ "Apache-2.0" ]
28
2015-07-14T11:33:24.000Z
2017-11-17T15:21:22.000Z
mysite/ct/tests/test_models.py
raccoongang/socraticqs2
06201005136ee139846f857dbb2f518736e441de
[ "Apache-2.0" ]
4
2015-04-29T09:04:59.000Z
2017-07-19T14:11:16.000Z
import pytest from .models import Lesson from core.common.utils import get_onboarding_status_with_settings from core.common.onboarding import CREATE_THREAD from mysite.helpers import base64_to_file @pytest.mark.django_db def test_get_canvas_html(lesson_question_canvas, base64_gif_image): assert lesson_question_...
35.375
110
0.793286
f82ea255c74a5a9205624c13f9094974ccdffdf3
1,073
py
Python
roles/finalise/files/finish.py
cbutakoff/slurm-ansible-playbook
c957a8b96dae3a9859ab7c3095dc4d3c1619d1c0
[ "MIT" ]
null
null
null
roles/finalise/files/finish.py
cbutakoff/slurm-ansible-playbook
c957a8b96dae3a9859ab7c3095dc4d3c1619d1c0
[ "MIT" ]
null
null
null
roles/finalise/files/finish.py
cbutakoff/slurm-ansible-playbook
c957a8b96dae3a9859ab7c3095dc4d3c1619d1c0
[ "MIT" ]
null
null
null
#! /usr/bin/env python2 from __future__ import (absolute_import, division, print_function) import glob import os import subprocess finished_nodes = set(os.path.basename(file) for file in glob.glob('/mnt/shared/finalised/*')) all_nodes = {'mgmt'} unfinished_nodes = all_nodes - finished_nodes if unfinished_nodes: ...
35.766667
124
0.72973
ff3175b68f512ce5315b2cbf21f687c63d18b7d3
11,242
py
Python
flow_collector/netflow_v5.py
xyTel/flowanalyzer-kubernetes
4a26e973a297cf08976934d5c1aac365014ac59b
[ "MIT" ]
1
2020-09-27T17:52:08.000Z
2020-09-27T17:52:08.000Z
flow_collector/netflow_v5.py
xyTel/flowanalyzer-kubernetes
4a26e973a297cf08976934d5c1aac365014ac59b
[ "MIT" ]
null
null
null
flow_collector/netflow_v5.py
xyTel/flowanalyzer-kubernetes
4a26e973a297cf08976934d5c1aac365014ac59b
[ "MIT" ]
null
null
null
# Copyright (c) 2017, Manito Networks, LLC # All rights reserved. # Import what we need import time, datetime, socket, struct, sys, json, socket, logging, logging.handlers, getopt, parser_modules from struct import * from socket import inet_ntoa from elasticsearch import Elasticsearch, helpers from IPy import IP # Pr...
41.179487
158
0.58913
f7913cf4d4e61ab4cb4674ea62165f9d2320b83f
4,193
py
Python
underground_box/tests.py
fga-eps-mds/2017.2-SiGI-Op_API
4532019c15414fd17e06bb3aa78501886e00da1d
[ "BSD-3-Clause" ]
6
2017-08-24T13:18:21.000Z
2017-10-03T18:06:13.000Z
underground_box/tests.py
fga-gpp-mds/2017.2-Grupo9
4532019c15414fd17e06bb3aa78501886e00da1d
[ "BSD-3-Clause" ]
173
2017-08-31T15:29:01.000Z
2017-12-14T13:40:13.000Z
underground_box/tests.py
fga-gpp-mds/2017.2-SiGI-Op_API
4532019c15414fd17e06bb3aa78501886e00da1d
[ "BSD-3-Clause" ]
2
2018-11-19T10:33:00.000Z
2019-06-19T22:35:43.000Z
from django.test import TestCase from rest_framework.test import APIRequestFactory from emendation_box.models import EmendationBox from emendation_box.models import EmendationBoxType from emendation_box.models import EmendationBoxStructure from technical_reserve.models import TechnicalReserve from .models import Underg...
42.353535
99
0.679227
cd3bd96d6a315026d80b4e09d946ba0179403fe0
4,096
py
Python
app/camera.py
1297rohit/PigCount
449a75e24b2f34c856e713cea5e804e858383d71
[ "MIT" ]
null
null
null
app/camera.py
1297rohit/PigCount
449a75e24b2f34c856e713cea5e804e858383d71
[ "MIT" ]
null
null
null
app/camera.py
1297rohit/PigCount
449a75e24b2f34c856e713cea5e804e858383d71
[ "MIT" ]
null
null
null
from picamera.array import PiRGBArray # Generates a 3D RGB array from picamera import PiCamera # Provides a Python interface for the RPi Camera Module import time # Provides time-related functions import cv2 import tensorflow as tf import numpy as np from azure.iot.device import IoTHubDeviceClient, Message #azure conn...
40.554455
140
0.598877
0e8817582daacc30a7e5c3b1c68b11a27b807188
11,890
py
Python
rasa_core/training/dsl.py
ymihay/dialogue_flow
ccb7ba89d1832c23c2bd1c8b7ff2e30f5019c874
[ "Apache-2.0" ]
null
null
null
rasa_core/training/dsl.py
ymihay/dialogue_flow
ccb7ba89d1832c23c2bd1c8b7ff2e30f5019c874
[ "Apache-2.0" ]
null
null
null
rasa_core/training/dsl.py
ymihay/dialogue_flow
ccb7ba89d1832c23c2bd1c8b7ff2e30f5019c874
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import io import json import logging import os import re import warnings from typing import Optional, List, Text, Any, Dict from rasa_core impor...
40.719178
80
0.566442
140a876ca65171f20b607169e07f0f7d440e20e8
135
py
Python
harnessed_jobs/ptc_BOT/v0/validator_ptc_BOT.py
duncanwood/EO-analysis-jobs
26d22e49c0d2e32fbf2759f504048754f66ecc45
[ "BSD-3-Clause-LBNL" ]
2
2018-07-26T09:32:46.000Z
2019-05-28T20:57:43.000Z
harnessed_jobs/ptc_BOT/v0/validator_ptc_BOT.py
duncanwood/EO-analysis-jobs
26d22e49c0d2e32fbf2759f504048754f66ecc45
[ "BSD-3-Clause-LBNL" ]
3
2018-03-18T21:55:07.000Z
2019-04-18T18:26:06.000Z
harnessed_jobs/ptc_BOT/v0/validator_ptc_BOT.py
duncanwood/EO-analysis-jobs
26d22e49c0d2e32fbf2759f504048754f66ecc45
[ "BSD-3-Clause-LBNL" ]
2
2020-11-12T19:47:42.000Z
2022-02-25T21:43:03.000Z
#!/usr/bin/env ipython """ Validator script for BOT PTC analysis. """ from bot_eo_validators import run_validator run_validator('ptc')
19.285714
43
0.77037
133e9743309f25a4795ef62e9e686c3567ebd693
111
py
Python
timSoft/imanager/processing.py
apetcho/timSoft
90f0084969bb9d4e2d8691583d2fdab4cfd1bb2c
[ "BSD-3-Clause" ]
null
null
null
timSoft/imanager/processing.py
apetcho/timSoft
90f0084969bb9d4e2d8691583d2fdab4cfd1bb2c
[ "BSD-3-Clause" ]
null
null
null
timSoft/imanager/processing.py
apetcho/timSoft
90f0084969bb9d4e2d8691583d2fdab4cfd1bb2c
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Created on Sun Feb 16, 2020 12:00:23 PM @author: eapetcho """
18.5
39
0.612613
36736c564815bea8bff4b54b43aa9b5b3c45403b
6,681
py
Python
reachy_sdk/arm.py
Pandinosaurus/reachy-sdk
c155bc8f56488de305e6fe5bacdb77aad0383295
[ "Apache-2.0" ]
21
2021-04-20T15:37:32.000Z
2022-01-06T15:23:11.000Z
reachy_sdk/arm.py
Pandinosaurus/reachy-sdk
c155bc8f56488de305e6fe5bacdb77aad0383295
[ "Apache-2.0" ]
13
2021-03-24T13:29:08.000Z
2022-02-04T11:54:40.000Z
reachy_sdk/arm.py
Pandinosaurus/reachy-sdk
c155bc8f56488de305e6fe5bacdb77aad0383295
[ "Apache-2.0" ]
4
2021-06-23T07:44:55.000Z
2021-12-07T16:15:05.000Z
"""Reachy Arm module. Handles all specific method to an Arm (left and/or right) especially: - the forward kinematics - the inverse kinematics """ from abc import ABC from typing import List, Optional, Set import numpy as np from reachy_sdk_api.arm_kinematics_pb2_grpc import ArmKinematicsStub from reachy_sdk_api.arm...
35.163158
115
0.659332
7e325eeb655e505534f1c68a10cfae153b37b697
2,968
py
Python
MyappV2/credential.py
Khairiazim/Raspinstabot
4973f9dbea68a669b6c3a86271bd9f017dd9b6e7
[ "Apache-2.0" ]
null
null
null
MyappV2/credential.py
Khairiazim/Raspinstabot
4973f9dbea68a669b6c3a86271bd9f017dd9b6e7
[ "Apache-2.0" ]
null
null
null
MyappV2/credential.py
Khairiazim/Raspinstabot
4973f9dbea68a669b6c3a86271bd9f017dd9b6e7
[ "Apache-2.0" ]
null
null
null
# user enter credential # check credential # if true open mainwindow and store pc id # close license import sys import webbrowser from PyQt5.QtCore import QSharedMemory from PyQt5 import QtCore, QtGui, QtWidgets, uic # UI.py 1) import ui # from ui import # UI FORMAT class License_class(QtWidgets.QWidget): d...
32.26087
109
0.574124
41441423b1340898c062e3dd2e63ea64a5b76a5a
7,837
py
Python
examples/imdb_dropout.py
albietz/stochs
3c3c4860c91ab59b2d8d5762583c722f73ab8608
[ "MIT" ]
27
2017-03-22T15:21:59.000Z
2020-10-26T22:11:00.000Z
examples/imdb_dropout.py
albietz/stochs
3c3c4860c91ab59b2d8d5762583c722f73ab8608
[ "MIT" ]
null
null
null
examples/imdb_dropout.py
albietz/stochs
3c3c4860c91ab59b2d8d5762583c722f73ab8608
[ "MIT" ]
6
2017-03-26T23:56:19.000Z
2018-09-04T03:12:49.000Z
import argparse import logging import os import sys import time import numpy as np import scipy.sparse as sp import stochs from concurrent.futures import ThreadPoolExecutor logging.basicConfig(level=logging.INFO) params = { 'lmbda': [1e-2], 'delta': [0, 0.01, 0.3], 'algos': [ {'name': 'miso_nonu...
36.451163
122
0.590277
74095c2ae0f63ee6887469e4af190482f7e204a7
4,586
py
Python
sqlpython/metadata.py
fortime/sqlpython
40e6b7d0b24ffeafabac0e3719049c081e26e8b2
[ "MIT" ]
null
null
null
sqlpython/metadata.py
fortime/sqlpython
40e6b7d0b24ffeafabac0e3719049c081e26e8b2
[ "MIT" ]
null
null
null
sqlpython/metadata.py
fortime/sqlpython
40e6b7d0b24ffeafabac0e3719049c081e26e8b2
[ "MIT" ]
null
null
null
from defaultdict import defaultdict metaqueries = defaultdict(defaultdict) metaqueries['desc']['oracle'] = defaultdict(defaultdict) metaqueries['desc']['oracle']['TABLE']['long'] = ( """SELECT atc.column_id "#", atc.column_name, CASE atc.nullable WHEN 'Y' THEN 'NULL' ELSE 'NOT NULL' END "Null?", atc.data_type || CASE...
27.297619
126
0.694287
dcedf9711a3e04223dfa7aa542c6feea98598e33
1,775
py
Python
src/encoded/tests/test_upgrade_analysis_step.py
Parul-Kudtarkar/t2dream-portal
ad0514e71da95cd911e874cb04112037e10c5823
[ "MIT" ]
null
null
null
src/encoded/tests/test_upgrade_analysis_step.py
Parul-Kudtarkar/t2dream-portal
ad0514e71da95cd911e874cb04112037e10c5823
[ "MIT" ]
null
null
null
src/encoded/tests/test_upgrade_analysis_step.py
Parul-Kudtarkar/t2dream-portal
ad0514e71da95cd911e874cb04112037e10c5823
[ "MIT" ]
null
null
null
import pytest @pytest.fixture def base_analysis_step(testapp, software_version): item = { 'name': 'base_analysis_step_v_1', 'title': 'base_analysis_step_v_1 title', 'analysis_step_types': ['alignments'], 'input_file_types': ['reads'], 'software_versions': [ soft...
34.134615
122
0.689577
05f1f8b61e4058236338b3f9954a40173b8f9fff
3,734
py
Python
Lib/site-packages/validictory/tests/test_disallow_unknown_properties.py
Kronos3/pyexec
c9e76a0302dee047ed137bc38aa669cec04c24cd
[ "bzip2-1.0.6" ]
73
2015-07-05T12:52:55.000Z
2019-12-09T16:34:09.000Z
Lib/site-packages/validictory/tests/test_disallow_unknown_properties.py
Kronos3/pyexec
c9e76a0302dee047ed137bc38aa669cec04c24cd
[ "bzip2-1.0.6" ]
30
2015-10-13T21:47:46.000Z
2017-10-26T17:00:47.000Z
Lib/site-packages/validictory/tests/test_disallow_unknown_properties.py
Kronos3/pyexec
c9e76a0302dee047ed137bc38aa669cec04c24cd
[ "bzip2-1.0.6" ]
23
2015-07-11T05:11:36.000Z
2022-02-14T05:27:22.000Z
from unittest import TestCase import validictory class TestDisallowUnknownProperties(TestCase): def setUp(self): self.data_simple = {"name": "john doe", "age": 42} self.schema_simple = { "type": "object", "properties": { "name": {"type": "string"}, ...
34.574074
74
0.363417