hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
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
251
max_issues_repo_name
stringlengths
4
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
251
max_forks_repo_name
stringlengths
4
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
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
9221f8b3cd619ef0a25608b276b0b53b07e7b0d4
83
py
Python
cfgr/__init__.py
markkorput/pycfgr
594fc8d1c36e59e4fcf3e1d0bb5a5db8edf426c5
[ "MIT" ]
1
2021-09-15T08:40:10.000Z
2021-09-15T08:40:10.000Z
cfgr/__init__.py
markkorput/pycfgr
594fc8d1c36e59e4fcf3e1d0bb5a5db8edf426c5
[ "MIT" ]
6
2019-09-25T08:09:00.000Z
2019-09-27T12:26:09.000Z
cfgr/__init__.py
markkorput/pycfgr
594fc8d1c36e59e4fcf3e1d0bb5a5db8edf426c5
[ "MIT" ]
1
2021-09-15T08:40:14.000Z
2021-09-15T08:40:14.000Z
from .Runtime import Runtime from .Type import Type from .Instance import Instance
20.75
30
0.819277
9222f71379c7695e4f0ab4cb4b35f058fef9c401
156
py
Python
apps/BlogContent/urls.py
Roberto09/MyBlog
24634ce60a3af45a5675668132dbfa725872b793
[ "MIT" ]
null
null
null
apps/BlogContent/urls.py
Roberto09/MyBlog
24634ce60a3af45a5675668132dbfa725872b793
[ "MIT" ]
null
null
null
apps/BlogContent/urls.py
Roberto09/MyBlog
24634ce60a3af45a5675668132dbfa725872b793
[ "MIT" ]
null
null
null
from django.conf.urls import url, include from apps.BlogContent.views import SeeBP urlpatterns = [ url(r'^MyBlogs', SeeBP.as_view() , name='see_BP'), ]
26
54
0.724359
92231061990614a2931123b7d435d718a7b2ef2d
62
py
Python
run.py
rblack42/flask-inventory
48c0cfaf1ab10d0891c5af9d2b609e2b9e44ed74
[ "BSD-3-Clause" ]
null
null
null
run.py
rblack42/flask-inventory
48c0cfaf1ab10d0891c5af9d2b609e2b9e44ed74
[ "BSD-3-Clause" ]
null
null
null
run.py
rblack42/flask-inventory
48c0cfaf1ab10d0891c5af9d2b609e2b9e44ed74
[ "BSD-3-Clause" ]
null
null
null
from app.core import create_app app = create_app('flask.cfg')
20.666667
31
0.774194
92232435b0e0b41e1bc75ad98de9764440370bab
13,549
py
Python
resultr_format/__init__.py
haykkh/resultr-format
8188a9b9a011899a58be54c8036edc9207e63948
[ "MIT" ]
null
null
null
resultr_format/__init__.py
haykkh/resultr-format
8188a9b9a011899a58be54c8036edc9207e63948
[ "MIT" ]
null
null
null
resultr_format/__init__.py
haykkh/resultr-format
8188a9b9a011899a58be54c8036edc9207e63948
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Makes UCL PHAS results better """ __author__ = "Hayk Khachatryan" __version__ = "0.1.4.4" __license__ = "MIT" import argparse import csv import sys import itertools import pathlib as pathlib import inquirer ######################### # # # # # ...
32.259524
114
0.518857
922341f36deca5a7a2891e78eb58b70f3fdc0eb8
1,981
py
Python
dmg/edits/pallete.py
Antolin1/DMG-Python
ba3942e13006e1a32f3fe9f1b29615311f667274
[ "MIT" ]
null
null
null
dmg/edits/pallete.py
Antolin1/DMG-Python
ba3942e13006e1a32f3fe9f1b29615311f667274
[ "MIT" ]
null
null
null
dmg/edits/pallete.py
Antolin1/DMG-Python
ba3942e13006e1a32f3fe9f1b29615311f667274
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Sep 6 11:36:49 2021 @author: Jose Antonio """ import random from networkx.algorithms.isomorphism import is_isomorphic from dmg.graphUtils import edge_match_type as edge_match from dmg.graphUtils import node_match_type as node_match import networkx as ...
30.953125
68
0.570419
922361dea1d8463d9ea2c90bf6568fee4603b6fb
14,689
py
Python
ml_boilerplate/preprocess/generic_pipeline.py
mcraig2/ml_boilerplate
5373f593b76fb115fb7a80dc9b87c633a3fcde48
[ "MIT" ]
null
null
null
ml_boilerplate/preprocess/generic_pipeline.py
mcraig2/ml_boilerplate
5373f593b76fb115fb7a80dc9b87c633a3fcde48
[ "MIT" ]
null
null
null
ml_boilerplate/preprocess/generic_pipeline.py
mcraig2/ml_boilerplate
5373f593b76fb115fb7a80dc9b87c633a3fcde48
[ "MIT" ]
null
null
null
""" The Pipeline object in sci-kit learn is very useful for constructing simple and complex modeling pipelines. However, out of the box it is cumbersome to build pipelines that involve heterogenous data. Most transformers assume that the entirety of the input datasets are of the same dtype. So, how do y...
38.054404
82
0.601675
92248f27e069d6c0f5243445c0b5840242d3af37
455
py
Python
provider/urls.py
Creationeers/Django_Barebone_Rest
f7e414575a5e6ff6324cef7e4ceccac0775eba78
[ "Apache-2.0" ]
null
null
null
provider/urls.py
Creationeers/Django_Barebone_Rest
f7e414575a5e6ff6324cef7e4ceccac0775eba78
[ "Apache-2.0" ]
7
2020-05-14T23:03:48.000Z
2022-02-10T08:49:02.000Z
provider/urls.py
Creationeers/Django_Barebone_Rest
f7e414575a5e6ff6324cef7e4ceccac0775eba78
[ "Apache-2.0" ]
null
null
null
from django.urls import path, include from rest_framework_simplejwt import views as jwt_views from .views import (RegisterUserView) AUTH_PATTERNS = [ path('token/', jwt_views.TokenObtainPairView.as_view(), name='token-obtain'), path('token/refresh/', jwt_views.TokenRefreshView.as_view(), name='token-refresh') ...
35
86
0.742857
92249c945ed95319b78da0f8f6f1d5710f928e02
4,598
py
Python
pipeline/config.py
felipemoran/tcc_sfm
b0b35e92c7c2f86d84120366147a8a650d0a4f7c
[ "MIT" ]
2
2020-10-27T21:45:01.000Z
2021-04-21T11:47:37.000Z
pipeline/config.py
felipemoran/tcc_sfm
b0b35e92c7c2f86d84120366147a8a650d0a4f7c
[ "MIT" ]
null
null
null
pipeline/config.py
felipemoran/tcc_sfm
b0b35e92c7c2f86d84120366147a8a650d0a4f7c
[ "MIT" ]
null
null
null
from dataclasses import dataclass from typing import Tuple, Any, List, Union import ruamel.yaml from ruamel.yaml.constructor import SafeConstructor import dacite import numpy as np def construct_tuple(self, node): """ Creates a tuple out of a sequence when parsing the YAML file """ seq =...
19
85
0.705524
922663d4e78a63fff7f9bf0e66748de595d3c9af
161
py
Python
pymath/map_squares/__init__.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
3
2017-05-02T10:28:13.000Z
2019-02-06T09:10:11.000Z
pymath/map_squares/__init__.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2017-06-21T20:39:14.000Z
2020-02-25T10:28:57.000Z
pymath/map_squares/__init__.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2016-07-29T04:35:22.000Z
2017-01-18T17:05:36.000Z
def map_squares(numbers): """ :param numbers: list of numbers :return: square of the numbers """ return list(map(lambda x: x ** 2, numbers))
23
47
0.614907
92278d4c99a794fc39f30624185168097ec4b202
1,400
py
Python
url_fetcher.py
netarachelhershko/crawler
22a5b41a768fae7415ad30cc6aec97063f2d07ce
[ "MIT" ]
null
null
null
url_fetcher.py
netarachelhershko/crawler
22a5b41a768fae7415ad30cc6aec97063f2d07ce
[ "MIT" ]
null
null
null
url_fetcher.py
netarachelhershko/crawler
22a5b41a768fae7415ad30cc6aec97063f2d07ce
[ "MIT" ]
null
null
null
from html_url_extractor import HtmlUrlExtractor from request_getter import RequestGetter from sitemap_fetcher import SitemapFetcher from urlparse import urljoin
40
98
0.712143
9227e595e3c40b1cac183a271ef1634007be821b
7,207
py
Python
lib/db.py
IoTtalk/os-IoTtalk
3c8609d10fcad040e3de727216507d0369be4cd0
[ "MIT" ]
2
2021-06-28T13:25:54.000Z
2021-07-27T08:43:38.000Z
lib/db.py
IoTtalk/IoTtalk
3c8609d10fcad040e3de727216507d0369be4cd0
[ "MIT" ]
1
2021-11-24T09:15:40.000Z
2021-11-24T13:51:23.000Z
lib/db.py
IoTtalk/IoTtalk
3c8609d10fcad040e3de727216507d0369be4cd0
[ "MIT" ]
null
null
null
from sqlalchemy import create_engine from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import Session from ec_config import SQLITE_PATH, MYSQL_HOST, MYSQL_USER, MYSQL_PASS Base = declarative_base() engine = None #######################################################################...
42.146199
122
0.686971
92295505eb2a2180c78b5213c3250cea2e678cad
2,995
py
Python
chaos_genius/controllers/alert_controller.py
rsohlot/chaos_genius
ee1f68bf44af36b50d0ccb8c0824bbbbb079b07d
[ "MIT" ]
320
2022-02-18T18:18:42.000Z
2022-03-31T16:42:38.000Z
chaos_genius/controllers/alert_controller.py
rsohlot/chaos_genius
ee1f68bf44af36b50d0ccb8c0824bbbbb079b07d
[ "MIT" ]
115
2022-02-18T16:39:01.000Z
2022-03-31T15:23:52.000Z
chaos_genius/controllers/alert_controller.py
rsohlot/chaos_genius
ee1f68bf44af36b50d0ccb8c0824bbbbb079b07d
[ "MIT" ]
18
2022-02-18T18:44:01.000Z
2022-03-10T08:33:34.000Z
# -*- coding: utf-8 -*- """alert controlller.""" from typing import Any, Dict, List, Literal, Optional, Sequence, Tuple, overload from flask_sqlalchemy import Pagination from chaos_genius.databases.models.alert_model import Alert ALERT_CHANNELS = { "email": "E-mail", "slack": "Slack", } """A mapping of chann...
30.876289
88
0.66611
922960e3fb0974ea30b7500861328def7470c6f3
783
py
Python
PraticandoKivy/aula1.py
AlexandrePeBrito/Python
79a09b1fb8e705dc7b6859d977c8916a2d0dd4d0
[ "MIT" ]
null
null
null
PraticandoKivy/aula1.py
AlexandrePeBrito/Python
79a09b1fb8e705dc7b6859d977c8916a2d0dd4d0
[ "MIT" ]
null
null
null
PraticandoKivy/aula1.py
AlexandrePeBrito/Python
79a09b1fb8e705dc7b6859d977c8916a2d0dd4d0
[ "MIT" ]
null
null
null
from kivy.app import App from kivy.uix.behaviors import button from kivy.uix.button import Button from kivy.uix.boxlayout import BoxLayout from kivy.uix.label import Label teste().run()
27.964286
86
0.630907
92299645cac68849bfd2688dce2525ba1cb2cd5d
1,160
py
Python
webapp/forms.py
rustprooflabs/osm2pgsql-tuner
1a70cf591ed364f5f0f4a71ef9c164388558da52
[ "MIT" ]
3
2021-05-08T16:44:19.000Z
2021-12-04T20:12:19.000Z
webapp/forms.py
rustprooflabs/osm2pgsql-tuner
1a70cf591ed364f5f0f4a71ef9c164388558da52
[ "MIT" ]
13
2021-05-08T16:47:02.000Z
2022-02-23T14:06:26.000Z
webapp/forms.py
rustprooflabs/osm2pgsql-tuner
1a70cf591ed364f5f0f4a71ef9c164388558da52
[ "MIT" ]
null
null
null
"""Provides Flask Forms related functionality.""" from wtforms import SelectField, BooleanField from flask_wtf import FlaskForm from webapp import config def _get_pbf_gb_choices(): """Prepares list of PBF size choices for drop-down menu. Returns ------------------------- pbf_gb_choices : list ...
32.222222
69
0.580172
922ad101e021f8b01709397177dc8e329b180e68
1,798
py
Python
karbor-1.3.0/karbor/tests/unit/fake_operation_log.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
1
2021-05-23T01:48:25.000Z
2021-05-23T01:48:25.000Z
karbor-1.3.0/karbor/tests/unit/fake_operation_log.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
5
2019-08-14T06:46:03.000Z
2021-12-13T20:01:25.000Z
karbor-1.3.0/karbor/tests/unit/fake_operation_log.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
2
2020-03-15T01:24:15.000Z
2020-07-22T20:34:26.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
39.086957
78
0.669077
922bba1b4a76b2a553064b7df320dfa6750e6b3c
2,776
py
Python
stage_check/stage_check/OutputRedundancyDatabaseConn.py
128technology/stage_check
2c9cdc491bafbcc6ed1a308093fe606dfd37da67
[ "MIT" ]
2
2020-05-26T15:13:47.000Z
2021-04-29T18:14:21.000Z
stage_check/stage_check/OutputRedundancyDatabaseConn.py
128technology/stage_check
2c9cdc491bafbcc6ed1a308093fe606dfd37da67
[ "MIT" ]
null
null
null
stage_check/stage_check/OutputRedundancyDatabaseConn.py
128technology/stage_check
2c9cdc491bafbcc6ed1a308093fe606dfd37da67
[ "MIT" ]
null
null
null
""" """ try: from stage_check import Output except ImportError: import Output
19.828571
60
0.482349
922e25c5c3aba311e0beb70dcaf014c52bc03e0f
221
py
Python
eyey/constants.py
dincamihai/eyey
146c75a1c8b4f3da6ced57b4fee43ba3315052e0
[ "Apache-2.0" ]
null
null
null
eyey/constants.py
dincamihai/eyey
146c75a1c8b4f3da6ced57b4fee43ba3315052e0
[ "Apache-2.0" ]
null
null
null
eyey/constants.py
dincamihai/eyey
146c75a1c8b4f3da6ced57b4fee43ba3315052e0
[ "Apache-2.0" ]
null
null
null
IMPORTANT = b'important' NOT_IMPORTANT = b'not-important' SHOULD_BE_IMPORTANT = b'should-be-important' SHOULD_BE_NOT_IMPORTANT = b'should-be-not-important' RETRAIN = b'retrain' RELABEL = b'relabel' DELETED = b'\\Deleted'
27.625
52
0.773756
922ebbdd04efb0dd43f3ace3b299d783e86149ce
27
py
Python
type_mappers/example.py
christabor/type_mappers
4c992b350dd579451f8956fb6ba8f70dd6e9a42f
[ "MIT" ]
2
2017-01-27T22:55:57.000Z
2017-01-29T01:56:52.000Z
type_mappers/example.py
christabor/type_mappers
4c992b350dd579451f8956fb6ba8f70dd6e9a42f
[ "MIT" ]
5
2017-01-28T07:36:31.000Z
2018-10-12T16:37:06.000Z
type_mappers/example.py
christabor/type_mappers
4c992b350dd579451f8956fb6ba8f70dd6e9a42f
[ "MIT" ]
null
null
null
from type_mappers import *
13.5
26
0.814815
922fe87b33a94fd0514ba31eace5ebb1c4d0f849
504
py
Python
APPS/PICK/models.py
RockhoRockho/Project_FG
362c75ebfdfcc8f1a8c88236279fefe24dfbd2c7
[ "MIT" ]
1
2022-03-25T12:45:24.000Z
2022-03-25T12:45:24.000Z
APPS/PICK/models.py
RockhoRockho/Project_FG
362c75ebfdfcc8f1a8c88236279fefe24dfbd2c7
[ "MIT" ]
null
null
null
APPS/PICK/models.py
RockhoRockho/Project_FG
362c75ebfdfcc8f1a8c88236279fefe24dfbd2c7
[ "MIT" ]
null
null
null
from django.db import models
29.647059
76
0.676587
9231baa109d9435fe051070cbdf5afd97866fc14
5,134
py
Python
graphlearn/python/nn/tf/app/link_predictor.py
gasdaf/graph-learn
4a77b39be37bb7507f0e9fb5d4ed40ca623b2ceb
[ "Apache-2.0" ]
1
2021-08-30T03:13:23.000Z
2021-08-30T03:13:23.000Z
graphlearn/python/nn/tf/app/link_predictor.py
gasdaf/graph-learn
4a77b39be37bb7507f0e9fb5d4ed40ca623b2ceb
[ "Apache-2.0" ]
null
null
null
graphlearn/python/nn/tf/app/link_predictor.py
gasdaf/graph-learn
4a77b39be37bb7507f0e9fb5d4ed40ca623b2ceb
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Alibaba Group Holding Limited. 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 ...
36.15493
80
0.653292
9231c9644edcc00c1f418f1e4bb4808e72a0d692
1,099
py
Python
torchtext/functional.py
parmeet/text
1fb2aedb48b5ecc5e81741e7c8504486b91655c6
[ "BSD-3-Clause" ]
null
null
null
torchtext/functional.py
parmeet/text
1fb2aedb48b5ecc5e81741e7c8504486b91655c6
[ "BSD-3-Clause" ]
null
null
null
torchtext/functional.py
parmeet/text
1fb2aedb48b5ecc5e81741e7c8504486b91655c6
[ "BSD-3-Clause" ]
null
null
null
import torch from torch import Tensor from torch.nn.utils.rnn import pad_sequence from typing import List, Optional __all__ = [ 'to_tensor', 'truncate', 'add_token', ]
23.891304
92
0.616015
92332ccdf59f7541211edc49c0cc5adb5fbfec98
913
py
Python
img_backend/add_device.py
FIGLAB/zensors
4c80de1970ccaf167f87c474aadd96bcbcf5b9a1
[ "MIT" ]
2
2019-07-17T15:43:02.000Z
2020-05-04T17:21:43.000Z
img_backend/add_device.py
FIGLAB/zensors
4c80de1970ccaf167f87c474aadd96bcbcf5b9a1
[ "MIT" ]
null
null
null
img_backend/add_device.py
FIGLAB/zensors
4c80de1970ccaf167f87c474aadd96bcbcf5b9a1
[ "MIT" ]
2
2018-10-31T16:39:52.000Z
2018-11-08T22:41:14.000Z
#!/usr/bin/env python ''' Simple script to add a device to the database. ''' from ZensorDevice import ZensorDevice from enumerations import * import sys import random if __name__ == '__main__': exit(main(sys.argv))
26.085714
60
0.63965
92334af517a1402e63b55a3fe85da09a5408dc14
6,901
py
Python
python/GafferScene/ScriptProcedural.py
PaulDoessel/gaffer-play
8b72dabb388e12424c230acfb0bd209049b01bd6
[ "BSD-3-Clause" ]
1
2016-07-31T09:55:09.000Z
2016-07-31T09:55:09.000Z
python/GafferScene/ScriptProcedural.py
Kthulhu/gaffer
8995d579d07231988abc92c3ac2788c15c8bc75c
[ "BSD-3-Clause" ]
null
null
null
python/GafferScene/ScriptProcedural.py
Kthulhu/gaffer
8995d579d07231988abc92c3ac2788c15c8bc75c
[ "BSD-3-Clause" ]
1
2020-02-15T16:15:54.000Z
2020-02-15T16:15:54.000Z
########################################################################## # # Copyright (c) 2012, John Haddon. All rights reserved. # Copyright (c) 2013, Image Engine Design Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that ...
30.946188
108
0.697
923501e60d59a0a4529bbd2a7bc6300d6760071d
5,881
py
Python
tests/testapps/tests/test_models.py
salexkidd/django-stackstore-model
fb0bb6431dd772a80b8c9d6d2b625eae69562fa9
[ "MIT" ]
5
2020-05-28T07:04:25.000Z
2020-09-26T05:29:46.000Z
tests/testapps/tests/test_models.py
salexkidd/django-stackstore-model
fb0bb6431dd772a80b8c9d6d2b625eae69562fa9
[ "MIT" ]
1
2020-09-26T05:34:19.000Z
2020-09-26T05:34:19.000Z
tests/testapps/tests/test_models.py
salexkidd/django-stackstore-model
fb0bb6431dd772a80b8c9d6d2b625eae69562fa9
[ "MIT" ]
null
null
null
from django.conf import settings from django.test import TestCase from django.test.utils import override_settings from copy import deepcopy from .. import models as testapps_models from .. import factories as testapps_factories
33.605714
125
0.689679
9235169950838a2e17fec391196466cf8a8f8312
6,915
py
Python
docs/_downloads/d6b1e39143e3255799ec607967cb9223/sample.py
harishbalakrishnan3/Visual-Categorization
28c5fc4695fca931bb2a49697cf1776dae1e8259
[ "MIT" ]
null
null
null
docs/_downloads/d6b1e39143e3255799ec607967cb9223/sample.py
harishbalakrishnan3/Visual-Categorization
28c5fc4695fca931bb2a49697cf1776dae1e8259
[ "MIT" ]
null
null
null
docs/_downloads/d6b1e39143e3255799ec607967cb9223/sample.py
harishbalakrishnan3/Visual-Categorization
28c5fc4695fca931bb2a49697cf1776dae1e8259
[ "MIT" ]
1
2021-03-15T14:00:27.000Z
2021-03-15T14:00:27.000Z
""" A sample python script that illustrates how to use the gcm module. As a first step, we need to find the model's parameters - c,w,b (we will assume r = 2). This is done using MLE. After we find the parameters, we use them to find the corresponding probabilities using the functions from the gcm module. The following ...
36.015625
119
0.580188
92372ee1b7c3e312c79430dd59dae4078f3316d3
948
py
Python
Python/Qiskit/Grower_search_algorithm.py
Pavel555-star/programs
d4cb812c0b9c5fff7b7c3cd20965bf820b1b95d8
[ "BSD-3-Clause" ]
1
2021-01-23T19:11:35.000Z
2021-01-23T19:11:35.000Z
Python/Qiskit/Grower_search_algorithm.py
Pavel555-star/programs
d4cb812c0b9c5fff7b7c3cd20965bf820b1b95d8
[ "BSD-3-Clause" ]
null
null
null
Python/Qiskit/Grower_search_algorithm.py
Pavel555-star/programs
d4cb812c0b9c5fff7b7c3cd20965bf820b1b95d8
[ "BSD-3-Clause" ]
null
null
null
from qiskit import * import matplotlib.pyplot as plt import numpy as np # define the oracle circuit oracle = QuantumCircuit(2, name='oracle') oracle.cz(0,1) -> cz-matrix ((1,0,0,0), (0,1,0,0), (0,0,1,0), (0,0,0,1)) oracle.to_gate() backend = Aer.get_backend('statevector_simulator') reflect = QuantumCircuit(2, name ...
28.727273
74
0.652954
92379068cb2a4bc0fdeb0bc56557ae60741cfaaa
687
py
Python
sympy/crypto/__init__.py
shipci/sympy
4b59927bed992b980c9b3faac01becb36feef26b
[ "BSD-3-Clause" ]
319
2016-09-22T15:54:48.000Z
2022-03-18T02:36:58.000Z
sympy/crypto/__init__.py
curzel-it/KiPyCalc
909c783d5e6967ea58ca93f875106d8a8e3ca5db
[ "MIT" ]
9
2016-11-03T21:56:41.000Z
2020-08-09T19:27:37.000Z
sympy/crypto/__init__.py
curzel-it/KiPyCalc
909c783d5e6967ea58ca93f875106d8a8e3ca5db
[ "MIT" ]
27
2016-10-06T16:05:32.000Z
2022-03-18T02:37:00.000Z
from sympy.crypto.crypto import (alphabet_of_cipher, cycle_list, encipher_shift, encipher_affine, encipher_substitution, encipher_vigenere, decipher_vigenere, bifid5_square, bifid6_square, bifid7_square, encipher_hill, decipher_hill, encipher_bifid5, encipher_bifid6, encipher_bifid7, decip...
57.25
74
0.804949
923986f9bd14fbab28d2e07beb811c4e8f7e82e8
2,656
py
Python
5-Detection/SSD/utils/config.py
MaybeS/mnist
d0aeafce97d7308dc84adbb6ad8e547776db0cd5
[ "MIT" ]
8
2020-07-17T00:30:20.000Z
2021-06-15T07:14:55.000Z
5-Detection/SSD/utils/config.py
MaybeS/mnist
d0aeafce97d7308dc84adbb6ad8e547776db0cd5
[ "MIT" ]
null
null
null
5-Detection/SSD/utils/config.py
MaybeS/mnist
d0aeafce97d7308dc84adbb6ad8e547776db0cd5
[ "MIT" ]
2
2019-07-02T04:20:21.000Z
2019-07-16T06:51:13.000Z
import json from typing import Tuple, List
27.381443
92
0.50753
923bc38bcf577c37aae6244f55a0e48675ccbfd5
5,200
py
Python
testing/testing_apiai_requests.py
Muflhi01/flow-dashboard
993320e2eb0f86d89b9904a3d5415c7479c5918e
[ "MIT" ]
1,623
2017-03-11T11:49:48.000Z
2022-03-30T06:44:11.000Z
testing/testing_apiai_requests.py
Muflhi01/flow-dashboard
993320e2eb0f86d89b9904a3d5415c7479c5918e
[ "MIT" ]
136
2017-03-11T17:08:57.000Z
2022-03-09T21:38:46.000Z
testing/testing_apiai_requests.py
Muflhi01/flow-dashboard
993320e2eb0f86d89b9904a3d5415c7479c5918e
[ "MIT" ]
217
2017-05-06T14:28:36.000Z
2022-03-29T16:56:01.000Z
#!/usr/bin/python # -*- coding: utf8 -*- from datetime import datetime from base_test_case import BaseTestCase from models import Goal from flow import app as tst_app from models import Habit, Task import json import imp try: imp.find_module('secrets', ['settings']) except ImportError: from settings import sec...
34.210526
133
0.363846
923d6daeee1f26ba47d523d2b91fd5411beae0a5
937
py
Python
cozyfuse/binary.py
poupotte/couchdb-fuse
1e81098f62c41d9566c01d2a2fadd0bdfe54402d
[ "BSD-3-Clause" ]
1
2016-03-28T22:56:04.000Z
2016-03-28T22:56:04.000Z
cozyfuse/binary.py
poupotte/couchdb-fuse
1e81098f62c41d9566c01d2a2fadd0bdfe54402d
[ "BSD-3-Clause" ]
null
null
null
cozyfuse/binary.py
poupotte/couchdb-fuse
1e81098f62c41d9566c01d2a2fadd0bdfe54402d
[ "BSD-3-Clause" ]
null
null
null
import sys from kivy.app import App from kivy.uix.anchorlayout import AnchorLayout from kivy.properties import * from replication import recover_progression_binary from kivy.clock import Clock if __name__ == '__main__': BinaryApp().run()
20.822222
56
0.608324
924075a62dfbc2884a5bde01f2ed7a11d0476d1c
3,019
py
Python
institutions/geo/models.py
sephcoster/mapusaurus
5515f0d89ff7b7cbc796af25b3d45950c8ed882f
[ "CC0-1.0" ]
null
null
null
institutions/geo/models.py
sephcoster/mapusaurus
5515f0d89ff7b7cbc796af25b3d45950c8ed882f
[ "CC0-1.0" ]
null
null
null
institutions/geo/models.py
sephcoster/mapusaurus
5515f0d89ff7b7cbc796af25b3d45950c8ed882f
[ "CC0-1.0" ]
null
null
null
import json from django.contrib.gis.db import models
39.207792
77
0.532958
924185f1b41185b073f99907c5347d88ec6b3ce8
2,798
py
Python
phone_dic_accent_archive.py
arcman7/cmu_sphinx
343ee1c08061d607cab6ba9ab738a1ac5a8b59d9
[ "MIT" ]
null
null
null
phone_dic_accent_archive.py
arcman7/cmu_sphinx
343ee1c08061d607cab6ba9ab738a1ac5a8b59d9
[ "MIT" ]
null
null
null
phone_dic_accent_archive.py
arcman7/cmu_sphinx
343ee1c08061d607cab6ba9ab738a1ac5a8b59d9
[ "MIT" ]
null
null
null
import collections import os counter = collections.Counter() dir_name = 'accent_archive' text_file_name = 'reading-passage.txt' print('creating dictionary from "{}"'.format(os.path.join(dir_name, 'AA_unpacked', text_file_name))) # The Accent Archive uses the same text transcript for every audio recording text ...
38.328767
149
0.602931
9242d22fb136a3ab5cbefda78054161564a70807
5,308
py
Python
necroassembler/utils.py
rdeioris/necroassembler
3dd60f0b71158b15dac061ddae0e2048e9c20d86
[ "MIT" ]
2
2019-10-09T21:12:15.000Z
2020-01-27T03:09:03.000Z
necroassembler/utils.py
rdeioris/necroassembler
3dd60f0b71158b15dac061ddae0e2048e9c20d86
[ "MIT" ]
null
null
null
necroassembler/utils.py
rdeioris/necroassembler
3dd60f0b71158b15dac061ddae0e2048e9c20d86
[ "MIT" ]
1
2019-10-16T20:51:29.000Z
2019-10-16T20:51:29.000Z
import string import struct from necroassembler.exceptions import NotInBitRange, InvalidBitRange
27.936842
102
0.568953
9242da30eb8cc1d9931d3a3bfc2731f59cc10a24
3,367
py
Python
Advanced Computer Vision & Deep Learning/Project-2_Image_Captioning/model.py
sudoberlin/Computer_Vision_ND
6211d0a610a26f6ed54116127588adb6ff4b7ba9
[ "Apache-2.0" ]
1
2020-08-09T19:49:38.000Z
2020-08-09T19:49:38.000Z
Advanced Computer Vision & Deep Learning/Project-2_Image_Captioning/model.py
sudoberlin/Computer_Vision_ND
6211d0a610a26f6ed54116127588adb6ff4b7ba9
[ "Apache-2.0" ]
null
null
null
Advanced Computer Vision & Deep Learning/Project-2_Image_Captioning/model.py
sudoberlin/Computer_Vision_ND
6211d0a610a26f6ed54116127588adb6ff4b7ba9
[ "Apache-2.0" ]
null
null
null
import torch import torch.nn as nn import torchvision.models as models import torch.nn.functional as F import math
38.701149
125
0.612712
924648ee2a9039a086b544cb62c526565fc25489
724
py
Python
amshared/stage/__init__.py
avidclam/amshared
fc605639409f3ea2b0efb2c0b45ad03969115bb6
[ "MIT" ]
null
null
null
amshared/stage/__init__.py
avidclam/amshared
fc605639409f3ea2b0efb2c0b45ad03969115bb6
[ "MIT" ]
null
null
null
amshared/stage/__init__.py
avidclam/amshared
fc605639409f3ea2b0efb2c0b45ad03969115bb6
[ "MIT" ]
null
null
null
""" Stage is a way to serialize data flows. Data Flow is a sequence (list, generator) of (metadata, content) tuples. Metadata is a key-value dictionary with several key names reserved: ``rubric``, ``name``, ``part``, `format``, and ``payload``. Content is useful application data (payload) or miscellaneous informatio...
32.909091
80
0.75
9246509ac7b49513170c02e13891de80c2511c3a
29
py
Python
api/dorest/dorest/__init__.py
ichise-laboratory/uwkgm
6505fa5d524336b30505804a3d241143cb1fa4bf
[ "BSD-3-Clause" ]
null
null
null
api/dorest/dorest/__init__.py
ichise-laboratory/uwkgm
6505fa5d524336b30505804a3d241143cb1fa4bf
[ "BSD-3-Clause" ]
6
2020-11-25T10:49:45.000Z
2021-09-22T18:50:03.000Z
api/dorest/dorest/__init__.py
ichise-laboratory/uwkgm
6505fa5d524336b30505804a3d241143cb1fa4bf
[ "BSD-3-Clause" ]
1
2020-12-24T02:15:42.000Z
2020-12-24T02:15:42.000Z
from .libs.sh import verbose
14.5
28
0.793103
92469e853a715e9955a582e9ea45ef2f7e9cfdce
3,585
py
Python
running_modes/scoring/logging/base_scoring_logger.py
lilleswing/Reinvent-1
ac4e3e6fa6379c6f4af883478dfd1b3407933ada
[ "Apache-2.0" ]
183
2020-04-04T02:01:15.000Z
2022-03-30T21:56:56.000Z
running_modes/scoring/logging/base_scoring_logger.py
lilleswing/Reinvent-1
ac4e3e6fa6379c6f4af883478dfd1b3407933ada
[ "Apache-2.0" ]
39
2020-04-05T15:19:56.000Z
2022-03-09T12:58:21.000Z
running_modes/scoring/logging/base_scoring_logger.py
lilleswing/Reinvent-1
ac4e3e6fa6379c6f4af883478dfd1b3407933ada
[ "Apache-2.0" ]
70
2020-04-05T19:25:43.000Z
2022-02-22T12:04:39.000Z
import json import logging import os from abc import ABC, abstractmethod import pandas as pd from typing import List from running_modes.configurations.general_configuration_envelope import GeneralConfigurationEnvelope from running_modes.configurations.logging.scoring_log_configuration import ScoringLoggerConfiguratio...
41.206897
114
0.698187
924a0eddccceff04dda1decc76232550991e0be7
2,697
py
Python
shopkit/contrib/payment/stripe_provider/__init__.py
sakkada/django-shopkit
35e6f8ac73bf6aa40887aa9b1b860d27db8b2975
[ "BSD-3-Clause" ]
null
null
null
shopkit/contrib/payment/stripe_provider/__init__.py
sakkada/django-shopkit
35e6f8ac73bf6aa40887aa9b1b860d27db8b2975
[ "BSD-3-Clause" ]
null
null
null
shopkit/contrib/payment/stripe_provider/__init__.py
sakkada/django-shopkit
35e6f8ac73bf6aa40887aa9b1b860d27db8b2975
[ "BSD-3-Clause" ]
null
null
null
from django.conf import settings from django.utils.translation import ugettext_lazy as _ from ....payment import PaymentProvider, PaymentFailure, PaymentType from . import forms from . import models import stripe import datetime
35.486842
84
0.595476
924a32e6e209fa2de53fe9b454a531ee0e4f03f5
2,424
py
Python
lambda/src/handlers/receive_email.py
sjmatta-forks/serverless-southwest-check-in
6b8cfbf1cb19c222f51a039db024217637db2ce4
[ "MIT" ]
49
2017-02-14T13:49:37.000Z
2022-03-24T13:57:05.000Z
lambda/src/handlers/receive_email.py
sjmatta-forks/serverless-southwest-check-in
6b8cfbf1cb19c222f51a039db024217637db2ce4
[ "MIT" ]
39
2017-02-08T14:21:17.000Z
2022-01-11T00:20:22.000Z
lambda/src/handlers/receive_email.py
sjmatta-forks/serverless-southwest-check-in
6b8cfbf1cb19c222f51a039db024217637db2ce4
[ "MIT" ]
13
2018-02-18T18:49:49.000Z
2022-02-16T15:05:35.000Z
import json import logging import os import time import boto3 import mail # Set up logging log = logging.getLogger(__name__) log.setLevel(logging.DEBUG) def _get_sfn_execution_name(reservation): """ Generate a human-readable execution named composed of the passenger's check in details followed by a tim...
32.32
79
0.691832
924b85ea9f7b1945f0fd22f097a20909bd163eef
723
py
Python
src/a9a/__init__.py
hvod2000/a9a
6b5cddbac885e2aff56e32936b966f4ce05afbba
[ "MIT" ]
null
null
null
src/a9a/__init__.py
hvod2000/a9a
6b5cddbac885e2aff56e32936b966f4ce05afbba
[ "MIT" ]
null
null
null
src/a9a/__init__.py
hvod2000/a9a
6b5cddbac885e2aff56e32936b966f4ce05afbba
[ "MIT" ]
null
null
null
import a9a.encoder import a9a.decoder import a9a.dir_reader import a9a.dir_writer
24.1
65
0.658368
924c4a9c561c7aed9575e75c33ca46d044434fc2
9,184
py
Python
dyc/methods/MethodBuilder.py
lukerm48/dyc
f7b0a1daf9cdcc4d19bc48cbc4e22c5d5a9b8426
[ "MIT" ]
null
null
null
dyc/methods/MethodBuilder.py
lukerm48/dyc
f7b0a1daf9cdcc4d19bc48cbc4e22c5d5a9b8426
[ "MIT" ]
null
null
null
dyc/methods/MethodBuilder.py
lukerm48/dyc
f7b0a1daf9cdcc4d19bc48cbc4e22c5d5a9b8426
[ "MIT" ]
null
null
null
""" File for classes that handles the actual business logic of the application. Here is the the place where the actual reading, parsing and validation of the files happens. """ import re import click from .MethodInterface import MethodInterface from ..utils import ( get_leading_whitespace, get_indent_forward, ...
39.416309
178
0.530488
924e8e77c2bc19143e903e4c018fdd8b4185b457
746
py
Python
jp.atcoder/agc015/agc015_b/8556570.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-09T03:06:25.000Z
2022-02-09T03:06:25.000Z
jp.atcoder/agc015/agc015_b/8556570.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-05T22:53:18.000Z
2022-02-09T01:29:30.000Z
jp.atcoder/agc015/agc015_b/8556570.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
null
null
null
# 2019-11-22 16:25:33(JST) import sys if __name__ == '__main__': main()
24.866667
62
0.386059
924fec3ac075b37f75ff462088795707dc130a3b
1,539
py
Python
recipes/kangaru/all/conanfile.py
jaspervandeven/conan-center-index
d3c8a2180c4b5e95f63c08c518e1b1a9a7017a23
[ "MIT" ]
null
null
null
recipes/kangaru/all/conanfile.py
jaspervandeven/conan-center-index
d3c8a2180c4b5e95f63c08c518e1b1a9a7017a23
[ "MIT" ]
null
null
null
recipes/kangaru/all/conanfile.py
jaspervandeven/conan-center-index
d3c8a2180c4b5e95f63c08c518e1b1a9a7017a23
[ "MIT" ]
1
2021-03-10T04:02:57.000Z
2021-03-10T04:02:57.000Z
from conans import ConanFile, tools, CMake import os
37.536585
92
0.638077
925073b67d11908413dc3c2418ab4f3c9e2f45f4
8,989
py
Python
ai.py
qwlea/chess
06213ebbcd379e1968ebcfed41d38b9a00f9f3c8
[ "Apache-2.0" ]
null
null
null
ai.py
qwlea/chess
06213ebbcd379e1968ebcfed41d38b9a00f9f3c8
[ "Apache-2.0" ]
null
null
null
ai.py
qwlea/chess
06213ebbcd379e1968ebcfed41d38b9a00f9f3c8
[ "Apache-2.0" ]
null
null
null
from player import Player import copy from random import randint # This AI class uses MiniMax Alpha-Beta Pruning in order to find the best possible move(s) each turn.
61.993103
124
0.679608
9250af11f4ee1e071c1b4ca4904fcbb36dc56250
2,971
py
Python
boxes/scrapers/tasks/scrap_news.py
konradarchicinski/pybox
37c2dae80e1629e3cf2d3e3e86afaaff06b4de17
[ "MIT" ]
1
2021-04-16T06:29:41.000Z
2021-04-16T06:29:41.000Z
boxes/scrapers/tasks/scrap_news.py
konradarchicinski/pybox
37c2dae80e1629e3cf2d3e3e86afaaff06b4de17
[ "MIT" ]
null
null
null
boxes/scrapers/tasks/scrap_news.py
konradarchicinski/pybox
37c2dae80e1629e3cf2d3e3e86afaaff06b4de17
[ "MIT" ]
null
null
null
#!/usr/bin/env python from boxes.scrapers import DATA_PATH from pybox.task import Task from pybox.scraper.news_reader import NewsReader from datetime import date, timedelta, datetime def update_reader_settings(iteration, reader_settings): """Auxiliar function, returns the settings passed to the reader with u...
30.947917
76
0.678559
9251d2e24adbc05adaa81a9a2ac85b187ddf6015
841
py
Python
bot/models.py
pyprism/Hiren-TwitBot
358184673c0d3fb8f5dc3420590239b3178f5a81
[ "MIT" ]
null
null
null
bot/models.py
pyprism/Hiren-TwitBot
358184673c0d3fb8f5dc3420590239b3178f5a81
[ "MIT" ]
null
null
null
bot/models.py
pyprism/Hiren-TwitBot
358184673c0d3fb8f5dc3420590239b3178f5a81
[ "MIT" ]
null
null
null
from django.db import models
33.64
59
0.752675
92533fd03fb0f3a8993a9f914c09ba1fc8a481b8
677
py
Python
tests/data23/recipe-577194.py
JohannesBuchner/pystrict3
f442a89ac6a23f4323daed8ef829d8e9e1197f90
[ "BSD-2-Clause" ]
1
2020-06-05T08:53:26.000Z
2020-06-05T08:53:26.000Z
tests/data23/recipe-577194.py
JohannesBuchner/pystrict3
f442a89ac6a23f4323daed8ef829d8e9e1197f90
[ "BSD-2-Clause" ]
1
2020-06-04T13:47:19.000Z
2020-06-04T13:47:57.000Z
tests/data23/recipe-577194.py
JohannesBuchner/pystrict3
f442a89ac6a23f4323daed8ef829d8e9e1197f90
[ "BSD-2-Clause" ]
1
2020-11-07T17:02:46.000Z
2020-11-07T17:02:46.000Z
if __name__ == "__main__": t = Thing() t.process() # Prints t's special value t.process("something") # Prints 'something' t.process(None) # Prints the False value warning
35.631579
81
0.611521
925401b8a6748c444b83c26016063c2cd09a8be6
1,233
py
Python
python/simulator.py
mhoffmann7/MIMO-MRT-Simulator
9bca63b416b137fa3ded4984c40e669b5bc421bd
[ "MIT" ]
null
null
null
python/simulator.py
mhoffmann7/MIMO-MRT-Simulator
9bca63b416b137fa3ded4984c40e669b5bc421bd
[ "MIT" ]
null
null
null
python/simulator.py
mhoffmann7/MIMO-MRT-Simulator
9bca63b416b137fa3ded4984c40e669b5bc421bd
[ "MIT" ]
null
null
null
from get_users_channels import getUsers from user_association import userAssociation from mmimo_mrt import computeBitrates from dpb import Dpb import numpy as np
34.25
137
0.763179
92547b1bbce31fcc16cedbc5f31e0b560a198f06
687
py
Python
docsensesearch-backend/utilscripts/test_sp.py
docsense/search
a71ad708784270019612b6e037ad3c3f95dfa448
[ "MIT" ]
null
null
null
docsensesearch-backend/utilscripts/test_sp.py
docsense/search
a71ad708784270019612b6e037ad3c3f95dfa448
[ "MIT" ]
null
null
null
docsensesearch-backend/utilscripts/test_sp.py
docsense/search
a71ad708784270019612b6e037ad3c3f95dfa448
[ "MIT" ]
null
null
null
#!/usr/bin/python import sys import requests reload(sys) sys.setdefaultencoding('utf-8') from bs4 import BeautifulSoup link = sys.argv[1] + "/_api/web/lists(guid'" + sys.argv[2] + "')/Items" ids = [] try: r = requests.get(link) bs = BeautifulSoup(r.text, features="xml") for i in bs.findAll('entry'): ...
25.444444
76
0.57933
925480aad2538abcd3adf524e7dc5e68a3d73cf6
5,362
py
Python
anchore_engine/services/policy_engine/api/models/gate_spec.py
dspalmer99/anchore-engine
8c61318be6fec5d767426fa4ccd98472cc85b5cd
[ "Apache-2.0" ]
1
2019-06-27T08:47:48.000Z
2019-06-27T08:47:48.000Z
anchore_engine/services/policy_engine/api/models/gate_spec.py
dspalmer99/anchore-engine
8c61318be6fec5d767426fa4ccd98472cc85b5cd
[ "Apache-2.0" ]
4
2020-11-07T00:16:02.000Z
2020-11-08T20:52:06.000Z
anchore_engine/services/policy_engine/api/models/gate_spec.py
dspalmer99/anchore-engine
8c61318be6fec5d767426fa4ccd98472cc85b5cd
[ "Apache-2.0" ]
1
2019-11-23T03:39:28.000Z
2019-11-23T03:39:28.000Z
# coding: utf-8 from datetime import date, datetime # noqa: F401 from typing import List, Dict # noqa: F401 from anchore_engine.services.policy_engine.api.models.base_model_ import Model from anchore_engine.services.policy_engine.api.models.trigger_spec import TriggerSpec # noqa: F401,E501 from anchore_engine.se...
28.827957
113
0.608355
925516901a3dfc5e7e1b727ddefa47860ebbf98a
395
py
Python
lists/v7/sum_numbers.py
py-bootcamp/learn-python-with-tdd
5d0c6fbbbea07204228323557a932bc4023fc8b5
[ "MIT" ]
5
2020-11-13T18:43:52.000Z
2022-03-23T01:07:11.000Z
lists/v7/sum_numbers.py
py-bootcamp/learn-python-with-tdd
5d0c6fbbbea07204228323557a932bc4023fc8b5
[ "MIT" ]
null
null
null
lists/v7/sum_numbers.py
py-bootcamp/learn-python-with-tdd
5d0c6fbbbea07204228323557a932bc4023fc8b5
[ "MIT" ]
null
null
null
from typing import List def sum_numbers(numbers: List[float]) -> float: "Calculate the total from a list of numbers." total = 0.0 for number in numbers: total += number return total def sum_all(*numbers_to_sum: List[float]) -> List[float]: "Calculate the respective sums of every list p...
23.235294
63
0.693671
92588762a2b3b34b9bfdc6caf756989bb0850c29
3,576
py
Python
redux/g7_sci_extract.py
joungh93/PyRAF_GMOS_IFU
1750caaf846c426cf1fc761ad539f740c8ae64d9
[ "MIT" ]
null
null
null
redux/g7_sci_extract.py
joungh93/PyRAF_GMOS_IFU
1750caaf846c426cf1fc761ad539f740c8ae64d9
[ "MIT" ]
null
null
null
redux/g7_sci_extract.py
joungh93/PyRAF_GMOS_IFU
1750caaf846c426cf1fc761ad539f740c8ae64d9
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Oct 31 16:29:33 2019 @author: jlee """ import time start_time = time.time() import numpy as np import glob, os import g0_init_cfg as ic from astropy.io import fits # ----- Importing IRAF from the root directory ----- # current_dir = os.getcwd() os....
30.827586
99
0.558445
92589690e29dd174295e61558264b2f4a3b4282f
244
py
Python
woodwork/tests/test_cli.py
not-so-rabh/woodwork
18e44c371e77ebc41baae57289bfc4fd1804b122
[ "BSD-3-Clause" ]
null
null
null
woodwork/tests/test_cli.py
not-so-rabh/woodwork
18e44c371e77ebc41baae57289bfc4fd1804b122
[ "BSD-3-Clause" ]
13
2021-03-04T19:26:15.000Z
2022-01-21T10:49:07.000Z
woodwork/tests/test_cli.py
RG4421/woodwork
739b4e7e4b7eccbd5772251d294523240f10664e
[ "BSD-3-Clause" ]
null
null
null
import subprocess
24.4
79
0.713115
925a12b56c9fb4a07f26e67c0db081323877aa7b
770
py
Python
buffer/in-vicinity-python/io_python/test_os_io.py
zaqwes8811/coordinator-tasks
7f63fdf613eff5d441a3c2c7b52d2a3d02d9736a
[ "MIT" ]
null
null
null
buffer/in-vicinity-python/io_python/test_os_io.py
zaqwes8811/coordinator-tasks
7f63fdf613eff5d441a3c2c7b52d2a3d02d9736a
[ "MIT" ]
15
2015-03-07T12:46:41.000Z
2015-04-11T09:08:36.000Z
matlab_ext/identification/dals/os_io/test_os_io.py
zaqwes8811/micro-apps
7f63fdf613eff5d441a3c2c7b52d2a3d02d9736a
[ "MIT" ]
null
null
null
#-*- coding: utf-8 -*- #!/usr/bin/env python ''' ''' from usaio import PCFileOperatons import unittest ''' Dropbox ''' ''' PC ''' ''' Run() ''' if __name__ == '__main__': # suite = unittest.TestLoader().loadTestsFromTestCase( TestPCFileOperatons ) unittest.TextTestRunner(verbosity=2).run(suite)
28.518519
75
0.701299
925ad854367cffcab0b72b26714e6ad39f176b24
19,279
py
Python
wrapless.py
mpi3d/goodix-fp-dump
039940845bd5eeb98cd92d72f267e3be77feb156
[ "MIT" ]
136
2021-05-05T14:16:17.000Z
2022-03-31T09:04:18.000Z
wrapless.py
tsunekotakimoto/goodix-fp-dump
b88ecbababd3766314521fe30ee943c4bd1810df
[ "MIT" ]
14
2021-08-20T09:49:39.000Z
2022-03-20T13:18:05.000Z
wrapless.py
tsunekotakimoto/goodix-fp-dump
b88ecbababd3766314521fe30ee943c4bd1810df
[ "MIT" ]
11
2021-08-02T15:49:11.000Z
2022-02-06T22:06:42.000Z
from protocol import Protocol from typing import Optional import logging import struct from dataclasses import dataclass from usb.core import USBTimeoutError from Crypto.Cipher import AES from Crypto.Hash import HMAC, SHA256 from Crypto.Random import get_random_bytes from crccheck.crc import Crc32Mpeg2 USB_CHUNK_SIZE...
34.989111
88
0.591317
925c6033603c561ea55693dac40cadc80e60ea16
10,293
py
Python
silverberg/client.py
TimothyZhang/silverberg
fb93ab68988c6ad6f7a4136d2c5b16b32966d0ca
[ "Apache-2.0" ]
1
2019-09-22T04:00:56.000Z
2019-09-22T04:00:56.000Z
silverberg/client.py
TimothyZhang/silverberg
fb93ab68988c6ad6f7a4136d2c5b16b32966d0ca
[ "Apache-2.0" ]
14
2015-01-22T01:00:50.000Z
2017-12-06T03:35:46.000Z
silverberg/client.py
TimothyZhang/silverberg
fb93ab68988c6ad6f7a4136d2c5b16b32966d0ca
[ "Apache-2.0" ]
4
2015-03-31T19:49:05.000Z
2020-03-03T20:44:32.000Z
# Copyright 2012 Rackspace Hosting, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to ...
35.739583
102
0.644224
925d8851eb0b2902f89aba2f36bb8f3af0d834ca
1,491
py
Python
accounts/models.py
bsugimoto/DymondTechnology
5b5740e0fabd546ad9770ac343235c2973d3a0c4
[ "MIT" ]
null
null
null
accounts/models.py
bsugimoto/DymondTechnology
5b5740e0fabd546ad9770ac343235c2973d3a0c4
[ "MIT" ]
null
null
null
accounts/models.py
bsugimoto/DymondTechnology
5b5740e0fabd546ad9770ac343235c2973d3a0c4
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import User from django.db.models.signals import post_save from multiselectfield import MultiSelectField from django.dispatch import receiver
45.181818
87
0.735748
925dd9afa8ee77d0df78cadfcabe6966241f2767
3,416
py
Python
hypercane/actions/identify.py
ato/hypercane
290ef402006ee8f8d98090e31da52819e26145a0
[ "MIT" ]
2
2020-06-11T18:42:02.000Z
2020-10-06T21:17:15.000Z
hypercane/actions/identify.py
ato/hypercane
290ef402006ee8f8d98090e31da52819e26145a0
[ "MIT" ]
55
2020-06-01T00:23:00.000Z
2022-02-21T20:52:29.000Z
hypercane/actions/identify.py
ato/hypercane
290ef402006ee8f8d98090e31da52819e26145a0
[ "MIT" ]
3
2021-02-07T05:36:24.000Z
2021-12-17T05:45:14.000Z
import logging module_logger = logging.getLogger("hypercane.actions.sample")
35.583333
113
0.74678
925e1e9d69320dc2a3507c471bdf305b87ca4a4f
1,459
py
Python
type_checker.py
perimosocordiae/onearg
1ed8027f864b31d77193f4cb511dd93b7c4166bb
[ "MIT" ]
null
null
null
type_checker.py
perimosocordiae/onearg
1ed8027f864b31d77193f4cb511dd93b7c4166bb
[ "MIT" ]
null
null
null
type_checker.py
perimosocordiae/onearg
1ed8027f864b31d77193f4cb511dd93b7c4166bb
[ "MIT" ]
null
null
null
from collections import defaultdict from parser import PARSER from syntax_tree import build_ast from type_objects import BuiltinType if __name__ == '__main__': import sys tree = build_ast(PARSER.parseFile(sys.argv[1], parseAll=True)) check_types(tree) print('Types check out!')
31.042553
77
0.702536
925f4af91f977c93af580c343c412cbe16f6b8e5
766
py
Python
flowvision/layers/attention/se.py
lixiang007666/vision
2eced8d6ed2dc42f6451f81f8883318fa0bd24d3
[ "BSD-3-Clause" ]
null
null
null
flowvision/layers/attention/se.py
lixiang007666/vision
2eced8d6ed2dc42f6451f81f8883318fa0bd24d3
[ "BSD-3-Clause" ]
null
null
null
flowvision/layers/attention/se.py
lixiang007666/vision
2eced8d6ed2dc42f6451f81f8883318fa0bd24d3
[ "BSD-3-Clause" ]
null
null
null
import oneflow as flow import oneflow.nn as nn
29.461538
83
0.616188
925f8106e1816c84af6c9460fc5d7a713fd377a8
5,253
py
Python
kerberos_client.py
EvilMcJerkface/ok
c16b329a9b6f87e1af4bded86a09364482b6029c
[ "MIT" ]
16
2015-01-26T11:13:19.000Z
2022-01-31T13:48:54.000Z
kerberos_client.py
EvilMcJerkface/ok
c16b329a9b6f87e1af4bded86a09364482b6029c
[ "MIT" ]
null
null
null
kerberos_client.py
EvilMcJerkface/ok
c16b329a9b6f87e1af4bded86a09364482b6029c
[ "MIT" ]
3
2016-03-03T18:46:39.000Z
2021-09-03T05:47:51.000Z
import sys import shutil import getpass import lib.krb5 as krb5 import lib.krb5_ctypes as krb5_ctypes import ctypes import binascii import ctypes import pdb import json import gc #import IPython from kerberos_serializer import * import os gc.disable() CC_PATH = '/tmp/krb5cc_1000' # Delete the default cache # Store ...
31.644578
85
0.673139
926004827692514a2e7e1fab88210f1b0ac22384
344
py
Python
setup.py
FreeDiscovery/FreeDiscovery-S3-connector
c10a6e1c26f95c199e94908f4e8534f735b94e37
[ "BSD-3-Clause" ]
null
null
null
setup.py
FreeDiscovery/FreeDiscovery-S3-connector
c10a6e1c26f95c199e94908f4e8534f735b94e37
[ "BSD-3-Clause" ]
null
null
null
setup.py
FreeDiscovery/FreeDiscovery-S3-connector
c10a6e1c26f95c199e94908f4e8534f735b94e37
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- from setuptools import setup, find_packages from freedscovery_s3_connector._version import __version__ setup(name='freedscovery_s3_connector', version=__version__, description='', author='FreeDiscovery Developpers', packages=find_packages(), inc...
24.571429
58
0.732558
926080df7fe450b583f1afff1fb17e6b9cc7b79a
2,669
py
Python
seqauto/management/commands/import_sequencing_info.py
SACGF/variantgrid
515195e2f03a0da3a3e5f2919d8e0431babfd9c9
[ "RSA-MD" ]
5
2021-01-14T03:34:42.000Z
2022-03-07T15:34:18.000Z
seqauto/management/commands/import_sequencing_info.py
SACGF/variantgrid
515195e2f03a0da3a3e5f2919d8e0431babfd9c9
[ "RSA-MD" ]
551
2020-10-19T00:02:38.000Z
2022-03-30T02:18:22.000Z
seqauto/management/commands/import_sequencing_info.py
SACGF/variantgrid
515195e2f03a0da3a3e5f2919d8e0431babfd9c9
[ "RSA-MD" ]
null
null
null
import pandas as pd from django.core.management.base import BaseCommand from library.log_utils import console_logger from seqauto.models import Sequencer, SequencingInfo, EnrichmentKit from snpdb.models import Lab, LabProject LAB_NAME = "lab name" INSTITUTION = "institution" DOI = "doi" PAPER_NAME = "paper name" YEAR...
39.25
133
0.557887
92632090c4e3d282320b824c62a3295534a71fb2
8,746
py
Python
tests/test_utils_conf.py
Cologler/anyioc-python
87aaf52208b8c510c9128f89359300a2158e3637
[ "MIT" ]
null
null
null
tests/test_utils_conf.py
Cologler/anyioc-python
87aaf52208b8c510c9128f89359300a2158e3637
[ "MIT" ]
null
null
null
tests/test_utils_conf.py
Cologler/anyioc-python
87aaf52208b8c510c9128f89359300a2158e3637
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (c) 2020~2999 - Cologler <skyoflw@gmail.com> # ---------- # # ---------- import pytest from pytest import raises from anyioc import ServiceProvider, LifeTime from anyioc.utils_conf import BadConfError, load_conf not_callable = object()
29.153333
149
0.53533
9263ae98e68deabf82d6263e3f38c433bcba634f
34,195
py
Python
src/eduid_userdb/tests/test_user.py
SUNET/eduid-userdb
5970880caf0b0e2bdee6c23869ef287acc87af2a
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
src/eduid_userdb/tests/test_user.py
SUNET/eduid-userdb
5970880caf0b0e2bdee6c23869ef287acc87af2a
[ "BSD-2-Clause-FreeBSD" ]
12
2015-08-28T12:05:32.000Z
2020-06-23T13:31:29.000Z
src/eduid_userdb/tests/test_user.py
SUNET/eduid-userdb
5970880caf0b0e2bdee6c23869ef287acc87af2a
[ "BSD-2-Clause-FreeBSD" ]
2
2016-10-24T06:37:33.000Z
2016-11-21T11:39:39.000Z
import unittest from datetime import datetime from hashlib import sha256 from bson import ObjectId from six import string_types from eduid_userdb import LockedIdentityNin, OidcAuthorization, OidcIdToken, Orcid from eduid_userdb.credentials import METHOD_SWAMID_AL2_MFA, U2F, CredentialList, Password from eduid_userdb....
38.682127
120
0.555578
926458d1d9c97fc6abf90370ad0d99e05fe59844
13,515
py
Python
ivy_vision/quantization.py
unifyai/vision
7a1d0115da1dcc640709a1bc92e7e31eb63ed566
[ "Apache-2.0" ]
11
2022-02-09T02:51:59.000Z
2022-03-31T09:35:24.000Z
ivy_vision/quantization.py
unifyai/vision
7a1d0115da1dcc640709a1bc92e7e31eb63ed566
[ "Apache-2.0" ]
5
2022-03-11T03:46:18.000Z
2022-03-31T06:07:31.000Z
ivy_vision/quantization.py
unifyai/vision
7a1d0115da1dcc640709a1bc92e7e31eb63ed566
[ "Apache-2.0" ]
1
2022-02-20T12:25:11.000Z
2022-02-20T12:25:11.000Z
"""Collection of Quantization Functions""" # global import ivy as _ivy # local from ivy_vision import single_view_geometry as _ivy_svg MIN_DENOMINATOR = 1e-12 MIN_DEPTH_DIFF = 1e-2 def quantize_to_image(pixel_coords, final_image_dims, feat=None, feat_prior=None, with_db=False, pixel_coords_va...
42.904762
119
0.645727
92649a378fb9f445f1cb4f5a9e530473e26b4104
260
py
Python
verify/admin.py
openstax/verification
ad6d7b7d66bcd222f7848c49c0bc1ac08c437a45
[ "MIT" ]
null
null
null
verify/admin.py
openstax/verification
ad6d7b7d66bcd222f7848c49c0bc1ac08c437a45
[ "MIT" ]
15
2019-06-17T15:49:41.000Z
2022-03-11T23:48:24.000Z
verify/admin.py
openstax/verification
ad6d7b7d66bcd222f7848c49c0bc1ac08c437a45
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Verification admin.site.register(Verification, VerificationAdmin)
28.888889
64
0.773077
9266bbe11d1b61ca34c8e1102cddeae6080d6514
260
py
Python
libs/__init__.py
s-kostyuk/ahaf_activation_1
1ec1515d8b0228c83f45b9b09a747f2f6dd3b767
[ "MIT" ]
null
null
null
libs/__init__.py
s-kostyuk/ahaf_activation_1
1ec1515d8b0228c83f45b9b09a747f2f6dd3b767
[ "MIT" ]
null
null
null
libs/__init__.py
s-kostyuk/ahaf_activation_1
1ec1515d8b0228c83f45b9b09a747f2f6dd3b767
[ "MIT" ]
null
null
null
from .act_name_to_f import activation_name_to_function from .multiopt_proxy import MultiOptProxy from .running_stat import RunningStat from .save_load_net import save_network, load_network, save_optimizer, load_optimizer from .create_net import create_network
43.333333
85
0.880769
9267d808febd8df821dcd1afc41b5923d6971fdd
12,396
py
Python
ansible/plugins/action/ms_include_jinja_vars.py
makinacorpus/makina-states
8ae1ccd1a0b614a7f308229c07e1493b06f5883a
[ "BSD-3-Clause" ]
18
2015-02-22T12:53:50.000Z
2019-03-15T16:45:10.000Z
ansible/plugins/action/ms_include_jinja_vars.py
makinacorpus/makina-states
8ae1ccd1a0b614a7f308229c07e1493b06f5883a
[ "BSD-3-Clause" ]
20
2015-01-20T22:35:02.000Z
2017-11-06T11:17:34.000Z
ansible/plugins/action/ms_include_jinja_vars.py
makinacorpus/makina-states
8ae1ccd1a0b614a7f308229c07e1493b06f5883a
[ "BSD-3-Clause" ]
5
2015-01-13T04:23:09.000Z
2019-01-03T17:00:31.000Z
from __future__ import (absolute_import, division, print_function) __metaclass__ = type import six from os import path, walk import traceback import re from ansible.errors import AnsibleError, AnsibleParserError from ansible.module_utils._text import to_native from ansible.plugins.action import ActionBase from mc_sta...
34.529248
93
0.543482
92682d145301e3cf26643177715c46fcd5839c3d
952
py
Python
tools/Vitis-AI-Library/graph_runner/test/format_json.py
hito0512/Vitis-AI
996459fb96cb077ed2f7e789d515893b1cccbc95
[ "Apache-2.0" ]
848
2019-12-03T00:16:17.000Z
2022-03-31T22:53:17.000Z
tools/Vitis-AI-Library/graph_runner/test/format_json.py
wangyifan778/Vitis-AI
f61061eef7550d98bf02a171604c9a9f283a7c47
[ "Apache-2.0" ]
656
2019-12-03T00:48:46.000Z
2022-03-31T18:41:54.000Z
tools/Vitis-AI-Library/graph_runner/test/format_json.py
wangyifan778/Vitis-AI
f61061eef7550d98bf02a171604c9a9f283a7c47
[ "Apache-2.0" ]
506
2019-12-03T00:46:26.000Z
2022-03-30T10:34:56.000Z
# # Copyright 2019 Xilinx Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
28.848485
74
0.705882
9269038550ac2eb627129808f919645ed6371394
111
py
Python
managers/exec_details_manager.py
renuchauhan625/RazorPyOfficial
e5e3c2cb638b0e402f665aa2e756debd7c456237
[ "Apache-2.0" ]
3
2021-07-11T03:52:50.000Z
2022-01-06T11:30:08.000Z
managers/exec_details_manager.py
renuchauhan625/RazorPyOfficial
e5e3c2cb638b0e402f665aa2e756debd7c456237
[ "Apache-2.0" ]
null
null
null
managers/exec_details_manager.py
renuchauhan625/RazorPyOfficial
e5e3c2cb638b0e402f665aa2e756debd7c456237
[ "Apache-2.0" ]
1
2021-07-18T05:42:40.000Z
2021-07-18T05:42:40.000Z
''' Created on 14-Jul-2021 @author: Abhishek Prajapati ''' execution_details = [] razor_status = "In Progress"
15.857143
28
0.720721
92692d7f00f3377986985af8973ac66784ff3072
6,760
py
Python
Project/scripts/path_planner.py
manasdesai/Path-Planning-and-Control-Theory-
6bc5a748b88b7226e069ff4837950fba793e28bb
[ "MIT" ]
6
2020-08-02T17:41:07.000Z
2022-03-01T18:06:06.000Z
Project/scripts/path_planner.py
manasdesai/Path-Planning-and-Control-Theory-
6bc5a748b88b7226e069ff4837950fba793e28bb
[ "MIT" ]
1
2020-07-30T07:14:25.000Z
2020-07-31T12:21:12.000Z
Project/scripts/path_planner.py
manasdesai/Path-Planning-and-Control-Theory-
6bc5a748b88b7226e069ff4837950fba793e28bb
[ "MIT" ]
3
2021-06-18T12:57:24.000Z
2022-02-28T04:02:50.000Z
#!/usr/bin/env python import rospy from geometry_msgs.msg import Twist, Point, PoseStamped from nav_msgs.msg import Path from std_msgs.msg import Float32MultiArray, Float64 from path_nav.msg import points, mylist import math import random global obs_in_path obs_in_path = [] global rate rospy.init_node('path_planner',...
32.037915
205
0.568639
926993a758d4bcc12fbe159bf42b98c618c9eb80
6,808
py
Python
uservoice/client.py
uservoice/uservoice-python
296af32d861562eeb11886d55f7e00dff30383e9
[ "MIT" ]
4
2015-01-29T18:05:32.000Z
2018-05-03T17:02:09.000Z
uservoice/client.py
uservoice/uservoice-python
296af32d861562eeb11886d55f7e00dff30383e9
[ "MIT" ]
13
2015-01-21T08:20:48.000Z
2018-08-20T20:41:01.000Z
uservoice/client.py
uservoice/uservoice-python
296af32d861562eeb11886d55f7e00dff30383e9
[ "MIT" ]
6
2015-07-12T21:15:12.000Z
2020-10-22T16:32:54.000Z
from future import standard_library standard_library.install_aliases() from builtins import object import operator import array import urllib.request, urllib.parse, urllib.error import urllib.request, urllib.error, urllib.parse import json import uservoice from requests_oauthlib import OAuth1 from urllib.parse import p...
43.641026
194
0.611633
926b0aae20c9db282c44cb01fb1eb01eb50d3739
4,754
py
Python
content/gui/gui_2.py
mm5110/PIC16A
e2dab91439c2627f6a47f4bf6d16de8ba5977fe8
[ "MIT" ]
10
2020-11-07T04:07:34.000Z
2021-12-31T10:19:12.000Z
content/gui/gui_2.py
mm5110/PIC16A
e2dab91439c2627f6a47f4bf6d16de8ba5977fe8
[ "MIT" ]
16
2021-02-03T22:35:01.000Z
2021-05-24T21:28:56.000Z
content/gui/gui_2.py
mm5110/PIC16A
e2dab91439c2627f6a47f4bf6d16de8ba5977fe8
[ "MIT" ]
19
2020-11-11T05:44:53.000Z
2022-02-01T14:10:15.000Z
# Our next aim is to build a simple app that will # accept user input and show useful output. # Our app will be a penguin classifier: input some # measurements of a penguin, and the classifier will # make an educated guess about the penguin's species. # This means that we'll need to find a way to bring in # our mac...
31.071895
72
0.597602
926f0826b49de22b8199e308698b8a8bb238dfee
13,417
py
Python
src/shortcircuit/model/crest/pycrest/eve.py
farshield/shortcircu
87d45ea85b78e3e7da72b7b44755dc429b4fdf5a
[ "MIT" ]
35
2016-06-22T20:07:31.000Z
2021-04-07T11:02:08.000Z
src/shortcircuit/model/crest/pycrest/eve.py
farshield/shortcircu
87d45ea85b78e3e7da72b7b44755dc429b4fdf5a
[ "MIT" ]
15
2016-06-17T09:36:02.000Z
2020-10-30T11:39:07.000Z
src/shortcircuit/model/crest/pycrest/eve.py
farshield/shortcircu
87d45ea85b78e3e7da72b7b44755dc429b4fdf5a
[ "MIT" ]
16
2016-10-02T16:09:18.000Z
2021-05-29T02:51:14.000Z
import os import base64 import requests import time import zlib from . import version from compat import bytes_, text_ from errors import APIException from weak_ciphers import WeakCiphersAdapter try: from urllib.parse import urlparse, urlunparse, parse_qsl except ImportError: # pragma: no cover from urlparse ...
33.128395
106
0.585675
9270ac95e899e83cadb5cec384f9e4de3f872548
4,160
py
Python
CAD_lib/geometry.py
JohnAD/CAD_lib
67985e09e146d71b4c2b6997e758f6514fc30f5e
[ "MIT" ]
null
null
null
CAD_lib/geometry.py
JohnAD/CAD_lib
67985e09e146d71b4c2b6997e758f6514fc30f5e
[ "MIT" ]
null
null
null
CAD_lib/geometry.py
JohnAD/CAD_lib
67985e09e146d71b4c2b6997e758f6514fc30f5e
[ "MIT" ]
null
null
null
################################### # # Point # ################################### ################################### # # Line # ################################### ################################### # # LineString # ###################################
23.771429
102
0.47476
927130d7806b470ffda0c0ca41177feb165a188a
1,658
py
Python
data_utils/rdp.py
muzik999/road_connectivity
8d9893752a633f9339e91b7b697f700ca669b729
[ "MIT" ]
96
2019-06-06T05:13:34.000Z
2022-03-23T12:01:07.000Z
data_utils/rdp.py
muzik999/road_connectivity
8d9893752a633f9339e91b7b697f700ca669b729
[ "MIT" ]
35
2019-07-05T06:03:22.000Z
2022-03-09T03:11:02.000Z
data_utils/rdp.py
muzik999/road_connectivity
8d9893752a633f9339e91b7b697f700ca669b729
[ "MIT" ]
30
2019-07-17T09:37:26.000Z
2022-02-28T19:09:22.000Z
#!/usr/bin/env python3 """ The Ramer-Douglas-Peucker algorithm roughly ported from the pseudo-code provided by http://en.wikipedia.org/wiki/Ramer-Douglas-Peucker_algorithm The code is taken from https://github.com/mitroadmaps/roadtracer/blob/master/lib/discoverlib/rdp.py """ from math import sqrt def point_line_...
28.586207
87
0.603136
92717020cb7b92c5eb59f2d9a730411c3f60cef4
101,305
py
Python
rtamt/parser/stl/StlParser.py
xiaoyaooo/rtamt
edb7bf664720c52e9d70920102c450b1f593af95
[ "BSD-3-Clause" ]
null
null
null
rtamt/parser/stl/StlParser.py
xiaoyaooo/rtamt
edb7bf664720c52e9d70920102c450b1f593af95
[ "BSD-3-Clause" ]
null
null
null
rtamt/parser/stl/StlParser.py
xiaoyaooo/rtamt
edb7bf664720c52e9d70920102c450b1f593af95
[ "BSD-3-Clause" ]
1
2021-05-18T12:57:46.000Z
2021-05-18T12:57:46.000Z
# Generated from StlParser.g4 by ANTLR 4.5.1 # encoding: utf-8 from __future__ import print_function from antlr4 import * from io import StringIO
37.040219
633
0.578965
92717f71e70e1d088e212b1ad5b9f5e93d1233a2
23
py
Python
app/__init__.py
dixonwhitmire/fastapi-template
eb67b80420c9fe6265190ca1003f18859709fe58
[ "Apache-2.0" ]
520
2015-03-17T23:04:53.000Z
2022-03-27T22:10:59.000Z
app/__init__.py
dixonwhitmire/fastapi-template
eb67b80420c9fe6265190ca1003f18859709fe58
[ "Apache-2.0" ]
544
2015-02-19T16:56:58.000Z
2022-03-28T18:23:38.000Z
app/__init__.py
dixonwhitmire/fastapi-template
eb67b80420c9fe6265190ca1003f18859709fe58
[ "Apache-2.0" ]
306
2015-03-23T19:42:15.000Z
2022-03-18T22:22:11.000Z
__version__ = "0.42.0"
11.5
22
0.652174
927303a84f42823f69e85cdc571a7f5088e0421b
8,337
py
Python
combiner/combiner/tf/models.py
gunpowder78/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
1
2022-03-19T04:26:12.000Z
2022-03-19T04:26:12.000Z
combiner/combiner/tf/models.py
gunpowder78/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
null
null
null
combiner/combiner/tf/models.py
gunpowder78/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
1
2022-03-30T07:20:29.000Z
2022-03-30T07:20:29.000Z
# coding=utf-8 # Copyright 2022 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
36.565789
80
0.644836
92745101ac9b7fb8a1d621ca0d57ec6d077050b3
832
py
Python
tflens/model/tfstate.py
neovasili/tflens
1aa46160c1ccf47f32de2fa44b4169ae6439483e
[ "MIT" ]
3
2020-10-15T14:46:20.000Z
2021-11-03T23:45:56.000Z
tflens/model/tfstate.py
neovasili/tflens
1aa46160c1ccf47f32de2fa44b4169ae6439483e
[ "MIT" ]
25
2020-10-14T08:09:05.000Z
2021-06-23T18:05:38.000Z
tflens/model/tfstate.py
neovasili/tflens
1aa46160c1ccf47f32de2fa44b4169ae6439483e
[ "MIT" ]
null
null
null
from tflens.model.tfstate_resource import TfStateResource
27.733333
59
0.727163
9274d416d7048e207bf11ee0a1a4caf193e5c80c
13,140
py
Python
ck_solution/module/mm-simulator/module.py
phesse001/Trust-Tools
baf7b70dbd5e9febca403d792df28a718ca90c93
[ "MIT" ]
null
null
null
ck_solution/module/mm-simulator/module.py
phesse001/Trust-Tools
baf7b70dbd5e9febca403d792df28a718ca90c93
[ "MIT" ]
null
null
null
ck_solution/module/mm-simulator/module.py
phesse001/Trust-Tools
baf7b70dbd5e9febca403d792df28a718ca90c93
[ "MIT" ]
null
null
null
import os # # Collective Knowledge () # # # # # Developer: # cfg={} # Will be updated by CK (meta description of this module) work={} # Will be updated by CK (temporal data) ck=None # Will be updated by CK (initialized CK kernel) # Local settings #################################################################...
31.662651
148
0.54277
9276b7e92fbafdac27d50333d01d384cadbdbcef
1,087
py
Python
deplugins/cfront_ssl.py
arndtroth/AWSomeOverview
e9010f4356215f5c00bb053a1bc6504c567ecf9d
[ "Apache-2.0" ]
1
2018-06-20T13:27:52.000Z
2018-06-20T13:27:52.000Z
deplugins/cfront_ssl.py
arndtroth/AWSomeOverview
e9010f4356215f5c00bb053a1bc6504c567ecf9d
[ "Apache-2.0" ]
1
2019-03-15T12:30:56.000Z
2019-03-15T12:30:56.000Z
deplugins/cfront_ssl.py
arndtroth/AWSomeOverview
e9010f4356215f5c00bb053a1bc6504c567ecf9d
[ "Apache-2.0" ]
null
null
null
""" Class for Data Extraction from CloudFront """ import boto3 from deplugins.base import AWSFact
31.057143
97
0.633855
92772f7652e5d7de73104cce45e1da31b37c887a
2,348
py
Python
733.flood-fill.py
Lonitch/hackerRank
84991b8340e725422bc47eec664532cc84a3447e
[ "MIT" ]
null
null
null
733.flood-fill.py
Lonitch/hackerRank
84991b8340e725422bc47eec664532cc84a3447e
[ "MIT" ]
null
null
null
733.flood-fill.py
Lonitch/hackerRank
84991b8340e725422bc47eec664532cc84a3447e
[ "MIT" ]
null
null
null
# # @lc app=leetcode id=733 lang=python3 # # [733] Flood Fill # # https://leetcode.com/problems/flood-fill/description/ # # algorithms # Easy (52.32%) # Likes: 745 # Dislikes: 146 # Total Accepted: 86.6K # Total Submissions: 163.5K # Testcase Example: '[[1,1,1],[1,1,0],[1,0,1]]\n1\n1\n2' # # # An image is repre...
30.493506
100
0.617121
9278b5055cf7701d71ff39aa690e2ba8bd96a0df
2,205
py
Python
src/graph_transpiler/webdnn/backend/webgpu/kernels/reshape.py
gunpowder78/webdnn
c659ea49007f91d178ce422a1eebe289516a71ee
[ "MIT" ]
1
2018-07-26T13:52:21.000Z
2018-07-26T13:52:21.000Z
src/graph_transpiler/webdnn/backend/webgpu/kernels/reshape.py
gunpowder78/webdnn
c659ea49007f91d178ce422a1eebe289516a71ee
[ "MIT" ]
null
null
null
src/graph_transpiler/webdnn/backend/webgpu/kernels/reshape.py
gunpowder78/webdnn
c659ea49007f91d178ce422a1eebe289516a71ee
[ "MIT" ]
null
null
null
from typing import List from webdnn.backend.code_generator.allocator import MemoryLayout from webdnn.backend.code_generator.injectors.buffer_injector import BufferInjector from webdnn.backend.code_generator.injectors.kernel_name_injector import KernelNameInjector from webdnn.backend.webgpu.generator import WebGPUDescr...
32.910448
91
0.673469
9278cc591836f5c26f4155dd214702456cfc9574
6,624
py
Python
Ping-pong.py
IlyA1536/Ping-Pong
662d0e5801fab4bae949afeae6e67d050c8b58f4
[ "CC0-1.0" ]
null
null
null
Ping-pong.py
IlyA1536/Ping-Pong
662d0e5801fab4bae949afeae6e67d050c8b58f4
[ "CC0-1.0" ]
null
null
null
Ping-pong.py
IlyA1536/Ping-Pong
662d0e5801fab4bae949afeae6e67d050c8b58f4
[ "CC0-1.0" ]
null
null
null
from pygame import * from random import randint # mixer.init() mixer.music.load('music.mp3') mixer.music.play() # GOAL_sound = mixer.Sound('GOAL.wav') hit_sound = mixer.Sound('HIT.wav') # font.init() font1 = font.SysFont("Arial", 73) win_left_text = font1.render(' !', True, (255, 0, 0)) win_le...
31.69378
97
0.575483
92794c155ed2c47d8f504e48e0719392aee204cd
1,277
py
Python
openwhisk/devices.py
jdsheehan/cristata
7115417c63f193b2eee85a6e0461106880e718aa
[ "Apache-2.0" ]
5
2018-07-30T18:50:55.000Z
2019-03-20T18:07:05.000Z
openwhisk/devices.py
jdsheehan/cristata
7115417c63f193b2eee85a6e0461106880e718aa
[ "Apache-2.0" ]
1
2018-06-25T21:08:35.000Z
2018-07-13T21:23:39.000Z
openwhisk/devices.py
jdsheehan/cristata
7115417c63f193b2eee85a6e0461106880e718aa
[ "Apache-2.0" ]
7
2018-06-25T21:09:29.000Z
2020-06-29T14:09:01.000Z
#!/usr/bin/env python #author mark_purcell@ie.ibm.com import json import os import requests import csv from db2 import DB2 SQL_TEMPLATE = '' SQL_TEMPLATE += 'CALL {database}(); '
22.017241
98
0.588097
927c35a89cf67b0b0ea4047744d2f4c1543ea266
554
py
Python
faq/urls/normal.py
coordt/django-faq
1aa924ee5806dd8611fcf4a83ec46182b191ab60
[ "BSD-3-Clause" ]
1
2019-06-14T15:29:49.000Z
2019-06-14T15:29:49.000Z
faq/urls/normal.py
natgeosociety/django-faq
1aa924ee5806dd8611fcf4a83ec46182b191ab60
[ "BSD-3-Clause" ]
null
null
null
faq/urls/normal.py
natgeosociety/django-faq
1aa924ee5806dd8611fcf4a83ec46182b191ab60
[ "BSD-3-Clause" ]
1
2016-05-05T21:56:37.000Z
2016-05-05T21:56:37.000Z
# -*- coding: utf-8 -*- from django.conf.urls import url from faq.views import TopicListView, TopicDetailView, question_detail # Include these patterns if you want URLs like: # # /faq/ # /faq/topic/ # /faq/topic/#question # urlpatterns = [ url(r'^$', TopicListView.as_view(), name='faq-topic-list'), u...
21.307692
69
0.579422
927cacc6f1985cec9c819c64c22a24d06d77cb91
22,599
py
Python
bitcoin/bitcoin.py
lucasmoten/pizero-minipitft
fcc4232348f0ebfbb6891fe52bf37036350a618a
[ "MIT" ]
1
2020-11-29T21:24:31.000Z
2020-11-29T21:24:31.000Z
bitcoin/bitcoin.py
lucasmoten/pizero-minipitft
fcc4232348f0ebfbb6891fe52bf37036350a618a
[ "MIT" ]
11
2020-12-03T16:40:51.000Z
2020-12-07T15:47:31.000Z
bitcoin/bitcoin.py
lucasmoten/pizero-minipitft
fcc4232348f0ebfbb6891fe52bf37036350a618a
[ "MIT" ]
1
2022-03-30T05:18:42.000Z
2022-03-30T05:18:42.000Z
# -*- coding: utf-8 -*- import time import subprocess import digitalio import board from PIL import Image, ImageDraw, ImageFont import adafruit_rgb_display.st7789 as st7789 import requests ##################################################################################################### # You can disable panels th...
38.499148
145
0.640427
927d630001b81a2b7cbcd0affc97c5a4e1a4fbf6
15,341
py
Python
scenarios/instance_provision_pressure.py
stdweird/cbtool
7ee1344c8bfa9d5cd6b4b6b620a35304509a1876
[ "Apache-2.0" ]
69
2015-01-29T14:19:57.000Z
2021-12-05T13:21:37.000Z
scenarios/instance_provision_pressure.py
stdweird/cbtool
7ee1344c8bfa9d5cd6b4b6b620a35304509a1876
[ "Apache-2.0" ]
132
2015-01-07T21:39:11.000Z
2022-01-28T19:12:18.000Z
scenarios/instance_provision_pressure.py
stdweird/cbtool
7ee1344c8bfa9d5cd6b4b6b620a35304509a1876
[ "Apache-2.0" ]
50
2015-02-10T15:53:22.000Z
2022-01-13T06:22:10.000Z
#!/usr/bin/python import itertools import fnmatch import json import os import pwd import redis import prettytable import datetime from sys import path, argv, stdout from time import sleep, time from optparse import OptionParser from common import * def cli_postional_argument_parser() : ''' TBD ''' ...
39.846753
154
0.472981
927feb504f8852916c65fed6b6c9f88a6f9cb945
24,612
py
Python
tacker/tests/unit/db/utils.py
h1r0mu/tacker
8c69dda51fcfe215c4878a86b82018d2b96e5561
[ "Apache-2.0" ]
116
2015-10-18T02:57:08.000Z
2022-03-15T04:09:18.000Z
tacker/tests/unit/db/utils.py
h1r0mu/tacker
8c69dda51fcfe215c4878a86b82018d2b96e5561
[ "Apache-2.0" ]
6
2016-11-07T22:15:54.000Z
2021-05-09T06:13:08.000Z
tacker/tests/unit/db/utils.py
h1r0mu/tacker
8c69dda51fcfe215c4878a86b82018d2b96e5561
[ "Apache-2.0" ]
166
2015-10-20T15:31:52.000Z
2021-11-12T08:39:49.000Z
# Copyright 2015 Brocade Communications System, 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 # #...
43.254833
79
0.596376
9282e076561a09b5b5e807ad3ccd8b3ba2cf7148
264
py
Python
leap_year_using_inbuilt_funciton.py
Ratheshprabakar/Python-Programs
fca9d4f0b5f5f5693b3d7e25c6d890f4973dc19e
[ "MIT" ]
2
2019-07-10T06:32:05.000Z
2019-11-13T07:52:53.000Z
leap_year_using_inbuilt_funciton.py
Ratheshprabakar/Python-Programs
fca9d4f0b5f5f5693b3d7e25c6d890f4973dc19e
[ "MIT" ]
null
null
null
leap_year_using_inbuilt_funciton.py
Ratheshprabakar/Python-Programs
fca9d4f0b5f5f5693b3d7e25c6d890f4973dc19e
[ "MIT" ]
1
2019-10-12T06:56:13.000Z
2019-10-12T06:56:13.000Z
#Python program to check whether the year is leap or not using inbuilt function import calendar if __name__=='__main__': main()
22
79
0.704545
9285021996e531713e496d0c51fcc3ab2e94ce3e
32
py
Python
build/lib/maguro/version.py
rmaniego/karton
68e66599159a2cca316965a6fa24c1bf4a65e53a
[ "MIT" ]
1
2021-06-28T21:31:43.000Z
2021-06-28T21:31:43.000Z
build/lib/maguro/version.py
rmaniego/maguro
68e66599159a2cca316965a6fa24c1bf4a65e53a
[ "MIT" ]
null
null
null
build/lib/maguro/version.py
rmaniego/maguro
68e66599159a2cca316965a6fa24c1bf4a65e53a
[ "MIT" ]
null
null
null
""" maguro """ version = "0.0.9"
16
17
0.5
9285a25b9d2fbbdda300d5bb1bf0da1d2258c4e4
208
py
Python
src/build-scripts/hydrafw-revision.py
0x8008135/hydrafw
c031ff86983a89f173c2ac0cceeaf8113704e10c
[ "Apache-2.0" ]
163
2016-12-28T04:57:23.000Z
2022-03-31T15:05:17.000Z
src/build-scripts/hydrafw-revision.py
0x8008135/hydrafw
c031ff86983a89f173c2ac0cceeaf8113704e10c
[ "Apache-2.0" ]
47
2016-12-27T23:21:46.000Z
2022-02-27T08:36:21.000Z
src/build-scripts/hydrafw-revision.py
0x8008135/hydrafw
c031ff86983a89f173c2ac0cceeaf8113704e10c
[ "Apache-2.0" ]
62
2016-12-27T06:28:32.000Z
2022-02-22T13:51:29.000Z
from git import * import re r = re.compile("v(\d+\.\d+).*") git=Repo(search_parent_directories=True).git version = git.describe(tags=True,always=True,dirty=True,long=True) print(r.search(version).group(1))
23.111111
66
0.725962
9286688c082091e5345a71747b2028f3e00ce126
7,022
py
Python
cisco_deviot/gateway.py
CiscoDevIoT/gateway-python-sdk
6bc087cde44337dc76ee974775d116e2a8091c75
[ "Apache-2.0" ]
1
2019-02-27T00:50:27.000Z
2019-02-27T00:50:27.000Z
cisco_deviot/gateway.py
CiscoDevIoT/gateway-python-sdk
6bc087cde44337dc76ee974775d116e2a8091c75
[ "Apache-2.0" ]
null
null
null
cisco_deviot/gateway.py
CiscoDevIoT/gateway-python-sdk
6bc087cde44337dc76ee974775d116e2a8091c75
[ "Apache-2.0" ]
1
2019-03-01T19:03:51.000Z
2019-03-01T19:03:51.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
41.064327
126
0.51239
928812ba9d8d40761eede59af222c55c1b93f423
2,658
py
Python
vault/models.py
szaydel/locksmith
39316e1b321d973576d0b3dcc840a1fde98ef0f1
[ "Apache-2.0" ]
64
2015-01-04T00:04:26.000Z
2021-10-09T04:44:57.000Z
vault/models.py
szaydel/locksmith
39316e1b321d973576d0b3dcc840a1fde98ef0f1
[ "Apache-2.0" ]
2
2015-04-11T17:37:06.000Z
2015-05-04T13:41:44.000Z
vault/models.py
szaydel/locksmith
39316e1b321d973576d0b3dcc840a1fde98ef0f1
[ "Apache-2.0" ]
19
2015-01-19T21:31:07.000Z
2020-02-15T08:53:38.000Z
# Copyright 2013 Evan Hazlett and contributors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed...
41.53125
79
0.715576
9288db8bce578378c4eef0b2f0dd1396e58bb840
4,482
py
Python
src/PCE_Codes/graphs.py
nasa/UQPCE
64f2143cddf83ca2e835442db2fc9ef33c6d26be
[ "NASA-1.3" ]
13
2020-11-07T22:03:35.000Z
2022-01-12T22:08:53.000Z
src/PCE_Codes/graphs.py
nasa/UQPCE
64f2143cddf83ca2e835442db2fc9ef33c6d26be
[ "NASA-1.3" ]
null
null
null
src/PCE_Codes/graphs.py
nasa/UQPCE
64f2143cddf83ca2e835442db2fc9ef33c6d26be
[ "NASA-1.3" ]
4
2020-11-23T16:24:03.000Z
2022-03-25T01:25:21.000Z
from builtins import getattr from warnings import warn try: from mpi4py.MPI import DOUBLE as MPI_DOUBLE, COMM_WORLD as MPI_COMM_WORLD import matplotlib.pyplot as plt import numpy as np except: warn('Ensure that all required packages are installed.') exit() from PCE_Codes._helpers import _warn from...
32.715328
83
0.585676
9288fc164e0faa00174f655789c095f5517d439e
21,121
py
Python
scripts/kidney.py
vickiwickinger/ThinkBayes2
2259f1e83dba9a959b2cc84c7b83318b53b3ee24
[ "MIT" ]
1,337
2015-01-06T06:23:55.000Z
2022-03-31T21:06:21.000Z
scripts/kidney.py
vickiwickinger/ThinkBayes2
2259f1e83dba9a959b2cc84c7b83318b53b3ee24
[ "MIT" ]
43
2015-04-23T13:14:15.000Z
2022-01-04T12:55:59.000Z
scripts/kidney.py
vickiwickinger/ThinkBayes2
2259f1e83dba9a959b2cc84c7b83318b53b3ee24
[ "MIT" ]
1,497
2015-01-13T22:05:32.000Z
2022-03-30T09:19:53.000Z
"""This file contains code for use with "Think Bayes", by Allen B. Downey, available from greenteapress.com Copyright 2012 Allen B. Downey License: GNU GPLv3 http://www.gnu.org/licenses/gpl.html """ from __future__ import print_function, division import math import numpy import random import sys import correlation ...
27.008951
80
0.573884
92893bf164929c8a7d2d8a430070228cde40df01
256
py
Python
django/chat/views.py
AngelOnFira/django-quasar-template
f1f33a05bd78285d1dddd7480f1279f769576700
[ "MIT" ]
null
null
null
django/chat/views.py
AngelOnFira/django-quasar-template
f1f33a05bd78285d1dddd7480f1279f769576700
[ "MIT" ]
1
2022-02-14T11:05:12.000Z
2022-02-14T11:05:12.000Z
django/chat/views.py
AngelOnFira/django-quasar-template
f1f33a05bd78285d1dddd7480f1279f769576700
[ "MIT" ]
null
null
null
from .models import Message from .serializers import MessageSerializer from rest_framework import viewsets
25.6
59
0.8125
928957e67f711c82d8b751175b522466746c5306
157
py
Python
src/data_loader/__init__.py
YCaptain/MapWorld-pred
12f35cd0744cabe1303321e0256b17967fe43da9
[ "MIT" ]
null
null
null
src/data_loader/__init__.py
YCaptain/MapWorld-pred
12f35cd0744cabe1303321e0256b17967fe43da9
[ "MIT" ]
null
null
null
src/data_loader/__init__.py
YCaptain/MapWorld-pred
12f35cd0744cabe1303321e0256b17967fe43da9
[ "MIT" ]
null
null
null
from .spacenet_loader import SpaceNetDataLoader from .spacenet_road_loader import SpaceNetRoadDataLoader from .cyclegan_data import CustomDatasetDataLoader
31.4
56
0.898089