hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
6af6e17fc84c377a145f80c469a0f66433e369c8
5,373
py
Python
app/suggest.py
arkarkark/snippy
66a3e5442085e27853ac7f6e3064c53fa364cc18
[ "MIT" ]
null
null
null
app/suggest.py
arkarkark/snippy
66a3e5442085e27853ac7f6e3064c53fa364cc18
[ "MIT" ]
23
2015-11-13T18:40:55.000Z
2022-02-10T18:15:56.000Z
app/suggest.py
arkarkark/snippy
66a3e5442085e27853ac7f6e3064c53fa364cc18
[ "MIT" ]
null
null
null
# Copyright 2010 Alex K (wtwf.com) All rights reserved. # useful? # http://www.opensearch.org/Specifications/OpenSearch/Extensions/Suggestions/1.0 # http://www.opensearch.org/Specifications/OpenSearch/Extensions/Suggestions/1.1 # https://developer.mozilla.org/en-US/docs/Supporting_search_suggestions_in_search_plugins ...
29.685083
106
0.65215
79fc1a0b5a71705840f21b6e25f6f11af4179e8e
9,898
py
Python
doc/jupyter_execute/examples/pachyderm-simple/index.py
edshee/seldon-core
78c10fbca16a5e2a0c25b9673aa3deb220070e26
[ "Apache-2.0" ]
null
null
null
doc/jupyter_execute/examples/pachyderm-simple/index.py
edshee/seldon-core
78c10fbca16a5e2a0c25b9673aa3deb220070e26
[ "Apache-2.0" ]
null
null
null
doc/jupyter_execute/examples/pachyderm-simple/index.py
edshee/seldon-core
78c10fbca16a5e2a0c25b9673aa3deb220070e26
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # # Pachyderm-Seldon Integration: Version Controlled Models # # [Pachyderm](https://pachyderm.io/) is a data science platform that combines Data Lineage with End-to-End Pipelines. [Seldon-Core](https://www.seldon.io/tech/products/core/) is an open-source platform for rapidly depl...
43.603524
679
0.733987
3987c80bfcf728f675ddc895aa3e7236f8b000d5
2,285
py
Python
benchmark/startPyquil1277.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startPyquil1277.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startPyquil1277.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=5 # total number=55 import pyquil from pyquil.api import local_forest_runtime, QVMConnection from pyquil import Program, get_qc from pyquil.gates import * import numpy as np conn = QVMConnection() def make_circuit()-> Program: prog = Program() # circuit begin prog += H(0) # number=3 pr...
25.10989
64
0.537856
351bfb808bc1f9f5ed006d2714501068eb6dc539
3,262
py
Python
grr/core/grr_response_core/lib/lexer_test.py
tsehori/grr
048506f22f74642bfe61749069a45ddf496fdab3
[ "Apache-2.0" ]
1
2020-06-25T14:25:51.000Z
2020-06-25T14:25:51.000Z
grr/core/grr_response_core/lib/lexer_test.py
tsehori/grr
048506f22f74642bfe61749069a45ddf496fdab3
[ "Apache-2.0" ]
44
2021-05-14T22:49:24.000Z
2022-03-13T21:54:02.000Z
grr/core/grr_response_core/lib/lexer_test.py
tsehori/grr
048506f22f74642bfe61749069a45ddf496fdab3
[ "Apache-2.0" ]
1
2020-06-25T14:25:54.000Z
2020-06-25T14:25:54.000Z
#!/usr/bin/env python # Lint as: python3 # Copyright 2011 Google Inc. All Rights Reserved. """Tests the query lexer.""" from __future__ import absolute_import from __future__ import division from __future__ import unicode_literals from absl import app from grr_response_core.lib import lexer from grr.test_lib import t...
38.833333
80
0.679951
a03bb9bc88dee377619485668873ad688d658478
3,312
py
Python
env/lib/python2.7/site-packages/future/builtins/backports/newsuper.py
talishte/ctigre
1da8e56e716d84cc3ad7773c52267d0d53bd0d04
[ "BSD-2-Clause" ]
1
2018-01-18T00:46:19.000Z
2018-01-18T00:46:19.000Z
future/builtins/backports/newsuper.py
kojoidrissa/python-future
16635ad986ab10a337267f637a8b040a70bc5258
[ "MIT" ]
null
null
null
future/builtins/backports/newsuper.py
kojoidrissa/python-future
16635ad986ab10a337267f637a8b040a70bc5258
[ "MIT" ]
null
null
null
''' This module provides a newsuper() function in Python 2 that mimics the behaviour of super() in Python 3. It is designed to be used as follows: from __future__ import division, absolute_import, print_function from future.builtins import super And then, for example: class VerboseList(list): def...
33.12
76
0.634058
2162f666af41494829578af78e73defd1e329549
4,473
py
Python
operators/scene_to_strip.py
samytichadou/Blender_Screenwriter
6dec43cdad76ea6c6a89e03d68e6d4c35cac9ceb
[ "MIT" ]
null
null
null
operators/scene_to_strip.py
samytichadou/Blender_Screenwriter
6dec43cdad76ea6c6a89e03d68e6d4c35cac9ceb
[ "MIT" ]
null
null
null
operators/scene_to_strip.py
samytichadou/Blender_Screenwriter
6dec43cdad76ea6c6a89e03d68e6d4c35cac9ceb
[ "MIT" ]
null
null
null
import bpy from .. import fountain from pathlib import Path class SCREENWRITER_OT_scenes_to_strips(bpy.types.Operator): """Convert screenplay data to scene and text strips""" bl_idname = "screenwriter.scenes_to_strips" bl_label = "Create Sequence" bl_options = {'REGISTER', 'UNDO'} @classmethod ...
42.198113
141
0.580818
0c6461480b433e36e8fdee0a28cc2456d38918de
15,490
py
Python
qmmm_neuralnets/layers/tf_bpnn.py
adamduster/qmmm_neuralnets
70f35ec0659e8a424cb66ad874d22232c22fcba5
[ "MIT" ]
null
null
null
qmmm_neuralnets/layers/tf_bpnn.py
adamduster/qmmm_neuralnets
70f35ec0659e8a424cb66ad874d22232c22fcba5
[ "MIT" ]
1
2021-09-17T18:19:48.000Z
2021-09-17T18:19:48.000Z
qmmm_neuralnets/layers/tf_bpnn.py
lin-compchem/qmmm_neuralnets
70f35ec0659e8a424cb66ad874d22232c22fcba5
[ "MIT" ]
null
null
null
""" This file contains the tensorflow implementation of the BPSF functions for a BPSF NN """ import tensorflow as tf import pickle from qmmm_neuralnets.layers.nn_functions import he_normal_dense_layer, nn_out_layer class AttrDict(dict): __getattr__ = dict.__getitem__ __setattr__ = dict.__setitem__ share_variab...
34.19426
86
0.635636
ee8993f3cdd573aa5f13feb87518ee309d7a3641
1,874
py
Python
get_snarl_depth.py
wwliao/pangenome-utils
49ef57895f898db707a5e20975e37fb7c04853a6
[ "MIT" ]
7
2021-07-15T10:03:42.000Z
2022-03-25T13:10:02.000Z
get_snarl_depth.py
wwliao/pangenome-utils
49ef57895f898db707a5e20975e37fb7c04853a6
[ "MIT" ]
null
null
null
get_snarl_depth.py
wwliao/pangenome-utils
49ef57895f898db707a5e20975e37fb7c04853a6
[ "MIT" ]
1
2021-07-07T08:52:53.000Z
2021-07-07T08:52:53.000Z
#!/usr/bin/env python3 import re import argparse from functools import partial from collections import Counter from multiprocessing import Pool def reverse_path(path): d = str.maketrans("><", "<>") rev_path = [] for node in re.findall("[><]\d+", path)[::-1]: rev_path.append(node.translate(d)) r...
32.877193
87
0.590715
a961c6d8edcf1f9c7190b5972c90c6f7d09ea40d
3,284
py
Python
src/python/pants/build_graph/remote_sources.py
anthonyjpratti/pants
d98e53af6ddd877861231bce8343f8204da0a9d1
[ "Apache-2.0" ]
1
2020-08-26T03:30:31.000Z
2020-08-26T03:30:31.000Z
src/python/pants/build_graph/remote_sources.py
anthonyjpratti/pants
d98e53af6ddd877861231bce8343f8204da0a9d1
[ "Apache-2.0" ]
1
2020-01-21T16:34:02.000Z
2020-01-21T16:34:02.000Z
src/python/pants/build_graph/remote_sources.py
anthonyjpratti/pants
d98e53af6ddd877861231bce8343f8204da0a9d1
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from pants.base.exceptions import TargetDefinitionException from pants.base.payload import Payload from pants.base.payload_field import PrimitiveField from pants.build_graph.address import...
40.04878
100
0.719854
3ba7b0e4decef0d7b526ba1bc3d5b879928eec29
6,224
py
Python
tests/plugins/test_squash.py
jcajka/atomic-reactor
b864a39ec91fe27c3724f09af0041ecc0980c77e
[ "BSD-3-Clause" ]
null
null
null
tests/plugins/test_squash.py
jcajka/atomic-reactor
b864a39ec91fe27c3724f09af0041ecc0980c77e
[ "BSD-3-Clause" ]
1
2018-04-25T12:42:14.000Z
2018-04-29T20:31:00.000Z
tests/plugins/test_squash.py
sosiouxme/atomic-reactor
91414bb8ffd988321cfa7120167636757e265a39
[ "BSD-3-Clause" ]
null
null
null
""" Copyright (c) 2017 Red Hat, Inc All rights reserved. This software may be modified and distributed under the terms of the BSD license. See the LICENSE file for details. """ from __future__ import unicode_literals import logging import os import pytest from flexmock import flexmock from atomic_reactor.constants...
34.966292
92
0.672076
0aac76bee63e14eec5349b8110c7f436a304bbf2
23,395
py
Python
tests/unit/build_tests/mapper_tests/test_build.py
hrnciar/hdmf
73d93364fa5b4d007a1cbf217b16c66a166bf39b
[ "BSD-3-Clause-LBNL" ]
25
2019-03-07T15:33:16.000Z
2022-02-16T20:03:57.000Z
tests/unit/build_tests/mapper_tests/test_build.py
hrnciar/hdmf
73d93364fa5b4d007a1cbf217b16c66a166bf39b
[ "BSD-3-Clause-LBNL" ]
641
2019-02-02T00:31:12.000Z
2022-03-31T18:16:54.000Z
tests/unit/build_tests/mapper_tests/test_build.py
hrnciar/hdmf
73d93364fa5b4d007a1cbf217b16c66a166bf39b
[ "BSD-3-Clause-LBNL" ]
16
2019-02-05T18:21:35.000Z
2022-02-14T23:37:21.000Z
from abc import ABCMeta, abstractmethod import numpy as np from hdmf import Container, Data from hdmf.build import ObjectMapper, BuildManager, TypeMap, GroupBuilder, DatasetBuilder from hdmf.build.warnings import DtypeConversionWarning from hdmf.spec import GroupSpec, AttributeSpec, DatasetSpec, SpecCatalog, SpecNames...
37.193959
119
0.593845
0b8c084c753040c0c80c87162b6243aff133b143
1,091
py
Python
tests/testapp/templatetags/test_nexus_helpers.py
YPlan/nexus
543aa06ad8b04108d8ccaa65106a0ef301f88561
[ "Apache-2.0" ]
55
2015-12-30T18:04:20.000Z
2018-06-29T09:49:40.000Z
tests/testapp/templatetags/test_nexus_helpers.py
YPlan/nexus
543aa06ad8b04108d8ccaa65106a0ef301f88561
[ "Apache-2.0" ]
30
2015-12-11T16:23:49.000Z
2017-07-15T22:01:41.000Z
tests/testapp/templatetags/test_nexus_helpers.py
YPlan/nexus
543aa06ad8b04108d8ccaa65106a0ef301f88561
[ "Apache-2.0" ]
9
2015-12-28T12:53:13.000Z
2018-04-09T21:06:21.000Z
from bs4 import BeautifulSoup from django.template import Context, RequestContext, Template from django.test import RequestFactory, SimpleTestCase import nexus from nexus.sites import site class NexusHelpersTests(SimpleTestCase): request_factory = RequestFactory() def test_nexus_media_prefix(self): ...
32.088235
74
0.638863
ffa189cb57b955bd72cac0f8830042851e9823c6
299
py
Python
src/poetry/layouts/__init__.py
sivanbecker/poetry
72497bcb66b5a1cc20e3aa95973c523a22b05bfa
[ "MIT" ]
1
2020-02-01T07:13:05.000Z
2020-02-01T07:13:05.000Z
src/poetry/layouts/__init__.py
sivanbecker/poetry
72497bcb66b5a1cc20e3aa95973c523a22b05bfa
[ "MIT" ]
1
2021-12-31T19:44:26.000Z
2022-03-08T20:52:13.000Z
src/poetry/layouts/__init__.py
sivanbecker/poetry
72497bcb66b5a1cc20e3aa95973c523a22b05bfa
[ "MIT" ]
2
2020-12-07T04:26:21.000Z
2021-09-25T21:46:36.000Z
from typing import Type from poetry.layouts.layout import Layout from poetry.layouts.src import SrcLayout _LAYOUTS = {"src": SrcLayout, "standard": Layout} def layout(name: str) -> Type[Layout]: if name not in _LAYOUTS: raise ValueError("Invalid layout") return _LAYOUTS[name]
19.933333
49
0.719064
1b3358720ac8955ea48776a1f187e2415f00b692
4,537
py
Python
ambari-common/src/main/python/resource_management/core/providers/mount.py
likenamehaojie/Apache-Ambari-ZH
5973025bd694cdbb4b49fb4c4e0d774782811ff6
[ "Apache-2.0" ]
1,664
2015-01-03T09:35:21.000Z
2022-03-31T04:55:24.000Z
ambari-common/src/main/python/resource_management/core/providers/mount.py
likenamehaojie/Apache-Ambari-ZH
5973025bd694cdbb4b49fb4c4e0d774782811ff6
[ "Apache-2.0" ]
3,018
2015-02-19T20:16:10.000Z
2021-11-13T20:47:48.000Z
ambari-common/src/main/python/resource_management/core/providers/mount.py
likenamehaojie/Apache-Ambari-ZH
5973025bd694cdbb4b49fb4c4e0d774782811ff6
[ "Apache-2.0" ]
1,673
2015-01-06T14:14:42.000Z
2022-03-31T07:22:30.000Z
#!/usr/bin/env python """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License");...
28.71519
116
0.642936
3397df24f9c37ba6aba1c8dfb9916bc24092d045
25,297
py
Python
keras/layers/preprocessing/text_vectorization.py
ashutosh1919/keras
0c9462af6d8c456579c09bd705fd60594ee33611
[ "Apache-2.0" ]
11
2015-11-27T18:33:56.000Z
2020-08-12T22:51:57.000Z
keras/layers/preprocessing/text_vectorization.py
ashutosh1919/keras
0c9462af6d8c456579c09bd705fd60594ee33611
[ "Apache-2.0" ]
3
2017-03-19T16:38:43.000Z
2017-07-06T09:35:30.000Z
keras/layers/preprocessing/text_vectorization.py
ashutosh1919/keras
0c9462af6d8c456579c09bd705fd60594ee33611
[ "Apache-2.0" ]
2
2015-12-08T06:15:54.000Z
2016-01-09T08:30:11.000Z
# Copyright 2019 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...
44.694346
80
0.689449
1d1ff10d9778eee04ad19ffec876e317731540c7
73,819
py
Python
contrib/cdat/graphics_method_controller.py
celiafish/VisTrails
d8cb575b8b121941de190fe608003ad1427ef9f6
[ "BSD-3-Clause" ]
83
2015-01-05T14:50:50.000Z
2021-09-17T19:45:26.000Z
contrib/cdat/graphics_method_controller.py
celiafish/VisTrails
d8cb575b8b121941de190fe608003ad1427ef9f6
[ "BSD-3-Clause" ]
254
2015-01-02T20:39:19.000Z
2018-11-28T17:16:44.000Z
contrib/cdat/graphics_method_controller.py
celiafish/VisTrails
d8cb575b8b121941de190fe608003ad1427ef9f6
[ "BSD-3-Clause" ]
40
2015-04-17T16:46:36.000Z
2021-09-28T22:43:24.000Z
import types from PyQt4 import QtCore, QtGui from gui_controller import gm_name indentSpacing = 10 class QGraphicsMethodAttributeWindow(QtGui.QMainWindow): def __init__(self, canvas=None, parent=None): QtGui.QMainWindow.__init__(self, parent) initialWidth = 480 initialHeight = 640 ...
45.427077
698
0.618039
e1f77d98ec3f0b654663fd54881f8a251971414a
421
py
Python
pipeline/get_exon_counts.py
corcra/feabhsa-here
c56079fd621f06a4c6c421ba0deb67baa26c4e0b
[ "MIT" ]
null
null
null
pipeline/get_exon_counts.py
corcra/feabhsa-here
c56079fd621f06a4c6c421ba0deb67baa26c4e0b
[ "MIT" ]
null
null
null
pipeline/get_exon_counts.py
corcra/feabhsa-here
c56079fd621f06a4c6c421ba0deb67baa26c4e0b
[ "MIT" ]
null
null
null
#!/bin/python import sys for line in sys.stdin: geneid = line.split()[3] exon_hits = line.strip().split(';')[1:] exon_count = 0 length = int(line.split()[2])-int(line.split()[1]) for hit in exon_hits: if hit == geneid: exon_count = exon_count + 1 exon_density = float(exon_c...
26.3125
64
0.615202
2998d16c92e6fb1b5a2fef4fbba78b19b8e0b51d
4,574
py
Python
pysubs2/time.py
r4fek/pysubs2
20281be6902e1a817f1b9537409cef732224684c
[ "MIT" ]
null
null
null
pysubs2/time.py
r4fek/pysubs2
20281be6902e1a817f1b9537409cef732224684c
[ "MIT" ]
null
null
null
pysubs2/time.py
r4fek/pysubs2
20281be6902e1a817f1b9537409cef732224684c
[ "MIT" ]
null
null
null
import re from collections import namedtuple #: Pattern that matches both SubStation and SubRip timestamps. from typing import List, Optional, Sequence, Tuple from pysubs2.common import IntOrFloat TIMESTAMP = re.compile(r"(\d{1,2}):(\d{2}):(\d{2})[.,](\d{2,3})") Times = namedtuple("Times", ["h", "m", "s", "ms"]) d...
26.593023
92
0.593135
b3f4957145146a3777d3855573f82fc73296ca90
510
py
Python
app/core/migrations/0004_nuwroversion.py
CukierPuder/nuwro-manager-api
3da7823a478d417e9e2d0f5db7979ea9a1ea287e
[ "MIT" ]
null
null
null
app/core/migrations/0004_nuwroversion.py
CukierPuder/nuwro-manager-api
3da7823a478d417e9e2d0f5db7979ea9a1ea287e
[ "MIT" ]
7
2020-02-12T01:04:08.000Z
2022-02-10T10:43:51.000Z
app/core/migrations/0004_nuwroversion.py
CukierPuder/nuwro-manager-api
3da7823a478d417e9e2d0f5db7979ea9a1ea287e
[ "MIT" ]
null
null
null
# Generated by Django 2.2.3 on 2019-07-23 14:44 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0003_measurement'), ] operations = [ migrations.CreateModel( name='Nuwroversion', fields=[ (...
24.285714
114
0.576471
35e70df2a1a1485ff05ca9e9d2825cbd41aca777
444
py
Python
backend/users/migrations/0004_auto_20191207_1811.py
madarconsulting/django-twitter-spark
aac2cbf1b697a3eec3e7a20f0dc0c30ebfeab6c8
[ "MIT" ]
8
2019-07-19T13:50:59.000Z
2021-09-01T03:39:23.000Z
backend/users/migrations/0004_auto_20191207_1811.py
madarconsulting/django-twitter-spark
aac2cbf1b697a3eec3e7a20f0dc0c30ebfeab6c8
[ "MIT" ]
22
2019-11-11T15:56:04.000Z
2022-03-24T03:29:57.000Z
backend/users/migrations/0004_auto_20191207_1811.py
madarconsulting/django-twitter-spark
aac2cbf1b697a3eec3e7a20f0dc0c30ebfeab6c8
[ "MIT" ]
3
2019-12-14T04:59:11.000Z
2021-09-01T03:39:28.000Z
# Generated by Django 2.2.4 on 2019-12-07 22:11 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0003_auto_20191207_1543'), ] operations = [ migrations.AlterField( model_name='customuser', name='email', ...
23.368421
107
0.623874
5a4afd844d36fdbdf2031c6be174cba97e3ebe4b
8,655
py
Python
csp/tests/test_utils.py
jaap3/django-csp
3659ddc7a3cfe465d87f691ee9eb08d1b2151b00
[ "BSD-3-Clause" ]
385
2015-01-22T21:33:12.000Z
2022-03-29T12:51:06.000Z
csp/tests/test_utils.py
jaap3/django-csp
3659ddc7a3cfe465d87f691ee9eb08d1b2151b00
[ "BSD-3-Clause" ]
115
2015-10-19T08:25:35.000Z
2021-12-16T10:45:58.000Z
csp/tests/test_utils.py
jaap3/django-csp
3659ddc7a3cfe465d87f691ee9eb08d1b2151b00
[ "BSD-3-Clause" ]
79
2015-03-31T11:43:17.000Z
2022-03-05T03:59:57.000Z
from __future__ import absolute_import import six from django.conf import settings from django.test.utils import override_settings from django.utils.functional import lazy from csp.utils import build_policy def policy_eq(a, b, msg='%r != %r'): parts_a = sorted(a.split('; ')) parts_b = sorted(b.split('; ')) ...
29.438776
79
0.71115
edaaab044a82bb42000eee15c5d9c91b5b5e61f0
4,211
bzl
Python
starlark/src/syntax/testcases/pkg_war.bzl
levels3d/starlark-rust
83afc4604f3e2ce510b20d9c22538a7ea079c4ab
[ "Apache-2.0" ]
null
null
null
starlark/src/syntax/testcases/pkg_war.bzl
levels3d/starlark-rust
83afc4604f3e2ce510b20d9c22538a7ea079c4ab
[ "Apache-2.0" ]
null
null
null
starlark/src/syntax/testcases/pkg_war.bzl
levels3d/starlark-rust
83afc4604f3e2ce510b20d9c22538a7ea079c4ab
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2016 The Android Open Source Project # # 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 ag...
27.167742
79
0.646165
95a0fb5517da054035161b4588c8d3a0bc924453
182
py
Python
pharmaca.py
alchemydc/c19vaxfinder
86dae2543109a7fd9fb4e210711ce1c1a4d805b2
[ "MIT" ]
null
null
null
pharmaca.py
alchemydc/c19vaxfinder
86dae2543109a7fd9fb4e210711ce1c1a4d805b2
[ "MIT" ]
null
null
null
pharmaca.py
alchemydc/c19vaxfinder
86dae2543109a7fd9fb4e210711ce1c1a4d805b2
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # libs from c19vaxfinder import * def main(): checkPharmaca(pharmacaLocations) if __name__ == "__main__": main()
12.133333
36
0.60989
b0b46606caae786ac3a0049a1d35d3e12504f396
23,824
py
Python
isort/api.py
2m/isort
db1de6b1f2769cb8f2854ff468c0a74bfe271b40
[ "MIT" ]
null
null
null
isort/api.py
2m/isort
db1de6b1f2769cb8f2854ff468c0a74bfe271b40
[ "MIT" ]
null
null
null
isort/api.py
2m/isort
db1de6b1f2769cb8f2854ff468c0a74bfe271b40
[ "MIT" ]
null
null
null
import shutil import sys import textwrap from io import StringIO from itertools import chain from pathlib import Path from typing import List, Optional, TextIO, Union from warnings import warn from . import io, output, parse from .exceptions import ( ExistingSyntaxErrors, FileSkipComment, FileSkipSetting, ...
40.794521
98
0.560443
1ff6d2404345a2288239f94030caa3a02b3aaae8
294
py
Python
django-server/api/encoder.py
RayDarar/back-end-mid
0190df5203b0ac39a3371df89e243b0450564813
[ "MIT" ]
null
null
null
django-server/api/encoder.py
RayDarar/back-end-mid
0190df5203b0ac39a3371df89e243b0450564813
[ "MIT" ]
null
null
null
django-server/api/encoder.py
RayDarar/back-end-mid
0190df5203b0ac39a3371df89e243b0450564813
[ "MIT" ]
null
null
null
from django.forms import model_to_dict from django.core.serializers.json import DjangoJSONEncoder from django.db.models import Model class ExtendedEncoder(DjangoJSONEncoder): def default(self, o): if isinstance(o, Model): return model_to_dict(o) return super().default(o)
26.727273
58
0.761905
7f028b3a3f3064272f8a96c4e012fe69c48e43a9
453
py
Python
ext_modules/_maix_display/example/test_maix_r329display.py
sipeed/python3-maix
9ced31b8f1c1e4ef93b6a57bbfced27ae9e3361e
[ "MIT" ]
93
2021-01-12T01:56:06.000Z
2022-03-30T12:52:01.000Z
ext_modules/_maix_display/example/test_maix_r329display.py
sipeed/python3-maix
9ced31b8f1c1e4ef93b6a57bbfced27ae9e3361e
[ "MIT" ]
29
2021-02-04T10:37:26.000Z
2022-03-20T15:10:55.000Z
ext_modules/_maix_display/example/test_maix_r329display.py
sipeed/python3-maix
9ced31b8f1c1e4ef93b6a57bbfced27ae9e3361e
[ "MIT" ]
25
2021-01-25T18:10:09.000Z
2022-03-31T13:55:36.000Z
import _maix_display from PIL import Image from _maix_display import Display canvas = Image.new("RGB", (240, 240), "#ff1b50") __fastview__ = Display(240, 240) mk = canvas.tobytes() __fastview__.draw(mk,240,240) ''' import _maix_camera from _maix_display import Display cam = _maix_camera.Camera(240,240,0) __fastview__ ...
22.65
48
0.728477
dd5909de6538a10de0de31fe8ef81688a5e54737
30,340
py
Python
sbpy/photometry/tests/test_core.py
dirac-institute/sbpy
9eb0523610f497ba2d068a071aae05ebfd67ed9d
[ "BSD-3-Clause" ]
47
2018-07-26T04:21:51.000Z
2022-03-07T16:23:02.000Z
sbpy/photometry/tests/test_core.py
dirac-institute/sbpy
9eb0523610f497ba2d068a071aae05ebfd67ed9d
[ "BSD-3-Clause" ]
253
2018-07-24T12:12:57.000Z
2022-03-13T21:59:52.000Z
sbpy/photometry/tests/test_core.py
dirac-institute/sbpy
9eb0523610f497ba2d068a071aae05ebfd67ed9d
[ "BSD-3-Clause" ]
27
2018-07-20T05:25:44.000Z
2022-03-01T03:29:30.000Z
# Licensed under a 3-clause BSD style license - see LICENSE.rst import numpy as np import pytest from distutils.version import LooseVersion import astropy from astropy import units as u from astropy.modeling import Parameter from ...calib import solar_fluxd from ..core import * from ...data import Ephem, Phys req_ver...
45.351271
79
0.590244
aa2aa505b22c916e632fd51753ca55da2a721e8c
9,690
py
Python
twilio/rest/chat/v1/service/user/user_channel.py
BrimmingDev/twilio-python
3226b5fed92b3c2ce64f03e6b19fc4792ef7647f
[ "MIT" ]
1,362
2015-01-04T10:25:18.000Z
2022-03-24T10:07:08.000Z
twilio/rest/chat/v1/service/user/user_channel.py
BrimmingDev/twilio-python
3226b5fed92b3c2ce64f03e6b19fc4792ef7647f
[ "MIT" ]
299
2015-01-30T09:52:39.000Z
2022-03-31T23:03:02.000Z
env/lib/python3.9/site-packages/twilio/rest/chat/v1/service/user/user_channel.py
giannicrivello/AudioShack_BE
b50ba91b6904ac069fc37c98a691729932297b6a
[ "MIT" ]
622
2015-01-03T04:43:09.000Z
2022-03-29T14:11:00.000Z
# coding=utf-8 r""" This code was generated by \ / _ _ _| _ _ | (_)\/(_)(_|\/| |(/_ v1.0.0 / / """ from twilio.base import deserialize from twilio.base import values from twilio.base.instance_resource import InstanceResource from twilio.base.list_resource import ListResource from twilio.base.page ...
35.756458
125
0.639628
8a41d56e13a4cd670fcb748a8cc3b23822741906
8,091
py
Python
VZcomp/representations.py
elrama-/VZcomp
c81007f84c5d2d830d8a3304008407c0f538295a
[ "MIT" ]
null
null
null
VZcomp/representations.py
elrama-/VZcomp
c81007f84c5d2d830d8a3304008407c0f538295a
[ "MIT" ]
null
null
null
VZcomp/representations.py
elrama-/VZcomp
c81007f84c5d2d830d8a3304008407c0f538295a
[ "MIT" ]
null
null
null
''' representations qumis/qasm input: script ordered list: arrays containing the 1Q and the 2Q steps rotation list: arrays, but instead of strings, su2 operations on the same mw step are packed into one euler list: arrays, but instead of su2 rotations, we already have their szxz representation compiled list: z gates ar...
41.280612
101
0.55469
0ac62604fd42a61a3433ac02bf267815b25ebd1f
9,353
py
Python
src/grokcore/component/meta.py
bielbienne/grokcore.component
575276af7ef7575698c497a21f4ae7732fdc61bd
[ "ZPL-2.1" ]
null
null
null
src/grokcore/component/meta.py
bielbienne/grokcore.component
575276af7ef7575698c497a21f4ae7732fdc61bd
[ "ZPL-2.1" ]
null
null
null
src/grokcore/component/meta.py
bielbienne/grokcore.component
575276af7ef7575698c497a21f4ae7732fdc61bd
[ "ZPL-2.1" ]
null
null
null
############################################################################# # # Copyright (c) 2006-2007 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS...
38.331967
86
0.618304
a008ee831b040a2ea3ad38a9a0468f3744a627a2
22,035
py
Python
isort/output.py
geo7/isort
146c3debeb9fa78eeba86efc4d9e143e41be6710
[ "MIT" ]
null
null
null
isort/output.py
geo7/isort
146c3debeb9fa78eeba86efc4d9e143e41be6710
[ "MIT" ]
null
null
null
isort/output.py
geo7/isort
146c3debeb9fa78eeba86efc4d9e143e41be6710
[ "MIT" ]
null
null
null
import copy import itertools from functools import partial from typing import Iterable, List, Tuple from isort.format import format_simplified from . import parse, sorting, wrap from .comments import add_to_line as with_comments from .settings import DEFAULT_CONFIG, Config STATEMENT_DECLERATIONS: Tuple[str, ...] = (...
40.58011
100
0.524983
7a082b62f6deb03d6715bab7757370479928a1b8
383
py
Python
python_modules/automation/automation/scaffold/utils.py
danieldiamond/dagster
d8de290f2ac6fa59d4e69a7e88d7703c31fcd3ea
[ "Apache-2.0" ]
1
2020-12-20T18:39:17.000Z
2020-12-20T18:39:17.000Z
python_modules/automation/automation/scaffold/utils.py
danieldiamond/dagster
d8de290f2ac6fa59d4e69a7e88d7703c31fcd3ea
[ "Apache-2.0" ]
null
null
null
python_modules/automation/automation/scaffold/utils.py
danieldiamond/dagster
d8de290f2ac6fa59d4e69a7e88d7703c31fcd3ea
[ "Apache-2.0" ]
null
null
null
import shutil def copy_directory(src, dest): try: shutil.copytree(src, dest, ignore=shutil.ignore_patterns('.DS_Store')) # Directories are the same except shutil.Error as e: print('Directory not copied. Error: %s' % e) # Any error saying that the directory doesn't exist except OSEr...
29.461538
78
0.660574
46e7ae2474e159b6bc66cf53edf93dfe35679502
5,446
py
Python
RLlib/SAC/replay_buffer.py
Cogito2012/DRIVE
dba7e72ae3d1a5c2841d39d8fc51af48dd161f9e
[ "MIT" ]
10
2021-11-15T07:35:45.000Z
2022-03-30T07:09:48.000Z
RLlib/SAC/replay_buffer.py
Cogito2012/DRIVE
dba7e72ae3d1a5c2841d39d8fc51af48dd161f9e
[ "MIT" ]
null
null
null
RLlib/SAC/replay_buffer.py
Cogito2012/DRIVE
dba7e72ae3d1a5c2841d39d8fc51af48dd161f9e
[ "MIT" ]
null
null
null
import numpy as np import random from pynvml import * import torch class ReplayMemory: def __init__(self, capacity): self.capacity = capacity self.buffer = [] self.position = 0 def push(self, state, action, reward, next_state, rnn_state, labels, done): state_cpu = state.cpu().n...
46.547009
145
0.624128
44732cdbac1304175eaabd8ead7d0f82e36bd20f
670
py
Python
wrappers/python/tests/anoncreds/test_prover_store_credential.py
absltkaos/indy-sdk
bc14c5b514dc1c76ce62dd7f6bf804120bf69f5e
[ "Apache-2.0" ]
null
null
null
wrappers/python/tests/anoncreds/test_prover_store_credential.py
absltkaos/indy-sdk
bc14c5b514dc1c76ce62dd7f6bf804120bf69f5e
[ "Apache-2.0" ]
null
null
null
wrappers/python/tests/anoncreds/test_prover_store_credential.py
absltkaos/indy-sdk
bc14c5b514dc1c76ce62dd7f6bf804120bf69f5e
[ "Apache-2.0" ]
null
null
null
import pytest from indy.anoncreds import prover_store_credential from indy import error @pytest.mark.asyncio async def test_prover_store_credential_works(wallet_handle, prepopulated_wallet): pass @pytest.mark.asyncio async def test_prover_store_credential_works_for_invalid_wallet_handle(wallet_handle, prepopul...
33.5
107
0.78209
1688470e6229cacb8ffa25d72a0a27a2f9b890d7
3,044
py
Python
processed_data/pre_process_sbir.py
fandulu/IHDA
a859729cbb639a3233f3c8c7fce894bac27b19ee
[ "MIT" ]
4
2020-07-11T09:21:43.000Z
2021-09-08T08:31:09.000Z
processed_data/pre_process_sbir.py
fandulu/IHDA
a859729cbb639a3233f3c8c7fce894bac27b19ee
[ "MIT" ]
1
2021-09-08T08:29:36.000Z
2021-09-08T08:29:36.000Z
processed_data/pre_process_sbir.py
fandulu/IHDA
a859729cbb639a3233f3c8c7fce894bac27b19ee
[ "MIT" ]
1
2021-09-08T08:31:09.000Z
2021-09-08T08:31:09.000Z
import sys sys.path.extend(['../']) from matplotlib import pyplot as plt import os import glob import numpy as np from PIL import Image, ImageFilter import PIL.ImageOps import pickle from config import Config_sbir def re_label(lables): pid2label = {pid:label for label, pid in enumerate(np.sort(np.unique(lables)))...
31.061224
83
0.638305
9732ea04f26362ae8025d6cb859112f7006b77cf
49,608
py
Python
tensorflow/python/training/optimizer.py
joshz123/tensorflow
7841ca029060ab78e221e757d4b1ee6e3e0ffaa4
[ "Apache-2.0" ]
3
2019-04-01T09:22:17.000Z
2020-01-20T16:33:22.000Z
tensorflow/python/training/optimizer.py
joshz123/tensorflow
7841ca029060ab78e221e757d4b1ee6e3e0ffaa4
[ "Apache-2.0" ]
5
2021-08-25T16:16:44.000Z
2022-02-10T02:04:51.000Z
tensorflow/python/training/optimizer.py
joshz123/tensorflow
7841ca029060ab78e221e757d4b1ee6e3e0ffaa4
[ "Apache-2.0" ]
3
2019-04-01T09:22:18.000Z
2019-06-21T06:47:12.000Z
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
39.813804
112
0.6964
a7d1643481637d1b83a3288fbf529c1cc6a0b57b
1,961
py
Python
sdk/python/pulumi_aws_native/ses/get_receipt_filter.py
pulumi/pulumi-aws-native
1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3
[ "Apache-2.0" ]
29
2021-09-30T19:32:07.000Z
2022-03-22T21:06:08.000Z
sdk/python/pulumi_aws_native/ses/get_receipt_filter.py
pulumi/pulumi-aws-native
1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3
[ "Apache-2.0" ]
232
2021-09-30T19:26:26.000Z
2022-03-31T23:22:06.000Z
sdk/python/pulumi_aws_native/ses/get_receipt_filter.py
pulumi/pulumi-aws-native
1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3
[ "Apache-2.0" ]
4
2021-11-10T19:42:01.000Z
2022-02-05T10:15:49.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities __a...
30.640625
125
0.677715
d80f426637a5e992110d962967c961fbc089674a
18
py
Python
python/testData/intentions/PyConvertCollectionLiteralIntentionTest/convertListToTuple.py
truthiswill/intellij-community
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/intentions/PyConvertCollectionLiteralIntentionTest/convertListToTuple.py
truthiswill/intellij-community
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
[ "Apache-2.0" ]
173
2018-07-05T13:59:39.000Z
2018-08-09T01:12:03.000Z
python/testData/intentions/PyConvertCollectionLiteralIntentionTest/convertListToTuple.py
truthiswill/intellij-community
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
xs = [<caret>1, 2]
18
18
0.5
d99cac26da76feaf35309bb753b0e31ab1db003b
11,478
py
Python
sympy/core/tests/test_expand.py
lemmalearning/sympy
62ad387ed3f7b243c889dd342296afc9a32ad1ea
[ "BSD-3-Clause" ]
1
2015-08-31T06:55:47.000Z
2015-08-31T06:55:47.000Z
sympy/core/tests/test_expand.py
lemmalearning/sympy
62ad387ed3f7b243c889dd342296afc9a32ad1ea
[ "BSD-3-Clause" ]
null
null
null
sympy/core/tests/test_expand.py
lemmalearning/sympy
62ad387ed3f7b243c889dd342296afc9a32ad1ea
[ "BSD-3-Clause" ]
3
2015-04-18T22:33:32.000Z
2015-09-23T06:45:07.000Z
from sympy import (log, sqrt, Rational as R, Symbol, I, exp, pi, S, cos, sin, Mul, Pow, cse, O) from sympy.simplify.simplify import expand_numer, expand from sympy.core.function import ( expand_power_base, expand_multinomial) from sympy.utilities.pytest import raises from sympy.core.function import expand_powe...
37.509804
86
0.474647
fbd915dba6835e5a10aa45a0e9f1bac234512767
1,544
py
Python
src/data/test_info.py
kashkarik22i/kaggle_transfer_learning_on_stack_exchange_tags
6de5975934e25776087a4e090d8ceeaad6d437c2
[ "FTL" ]
null
null
null
src/data/test_info.py
kashkarik22i/kaggle_transfer_learning_on_stack_exchange_tags
6de5975934e25776087a4e090d8ceeaad6d437c2
[ "FTL" ]
null
null
null
src/data/test_info.py
kashkarik22i/kaggle_transfer_learning_on_stack_exchange_tags
6de5975934e25776087a4e090d8ceeaad6d437c2
[ "FTL" ]
null
null
null
# -*- coding: utf-8 -*- import unittest import info class TestData(unittest.TestCase): pass class TestTrainingFiles(TestData): def setUp(self): self.data = info.Data() self.data.extension = '.ext' self.data.data_dir = '/none/' self.fun = self.data.training_files def test_n...
28.592593
58
0.557642
ee9e6a0ce95af74546a35a77d6ef97595da0b7d6
1,553
py
Python
aoc2021/day14.py
aod/advent-of-python
391f1f7317951c59900c9c7a79127a3c8b4a43cf
[ "MIT" ]
null
null
null
aoc2021/day14.py
aod/advent-of-python
391f1f7317951c59900c9c7a79127a3c8b4a43cf
[ "MIT" ]
null
null
null
aoc2021/day14.py
aod/advent-of-python
391f1f7317951c59900c9c7a79127a3c8b4a43cf
[ "MIT" ]
null
null
null
from typing import Dict, List, Tuple from collections import OrderedDict from aocd import lines def parse(input: List[str] = lines) -> Tuple[OrderedDict[str, int], Dict[str, str]]: polymer: Dict[str, int] = OrderedDict() for x in zip(input[0][0:], input[0][1:]): k = "".join(list(x)) if k in ...
25.883333
84
0.546684
a0ae217ac0b7587dcbc8382b041d95b7bb9cd861
2,749
py
Python
lea_code/scripts/pc_questions.py
jm4474/FOMCTextAnalysis
0a039d9b197f487d8ba8c5d230b587c48cf865f6
[ "MIT" ]
6
2020-07-03T23:39:50.000Z
2022-03-30T07:55:23.000Z
lea_code/scripts/pc_questions.py
jm4474/FOMCTextAnalysis
0a039d9b197f487d8ba8c5d230b587c48cf865f6
[ "MIT" ]
null
null
null
lea_code/scripts/pc_questions.py
jm4474/FOMCTextAnalysis
0a039d9b197f487d8ba8c5d230b587c48cf865f6
[ "MIT" ]
12
2019-12-10T13:34:21.000Z
2022-01-24T16:39:15.000Z
import os import numpy as np from sklearn.feature_extraction.text import CountVectorizer from sklearn.feature_extraction.text import TfidfVectorizer def qs_by_asker(ftype="press conference"): file_path = "../data/{}_raw_text/preprocessed/".format(ftype) for ff in sorted(os.listdir(file_path)): if ...
34.3625
135
0.618043
01ca8c8aac92e14a14f02670f4a61f67b12bd9a2
15,963
py
Python
projects/robustnav_baselines/experiments/robustnav_train/pointnav_robothor_vanilla_rgb_custom_ddppo.py
DexiongYung/robustnav_AE
f2b1b5bb8780e4e6ae5f81c127b7589cfc949801
[ "MIT" ]
null
null
null
projects/robustnav_baselines/experiments/robustnav_train/pointnav_robothor_vanilla_rgb_custom_ddppo.py
DexiongYung/robustnav_AE
f2b1b5bb8780e4e6ae5f81c127b7589cfc949801
[ "MIT" ]
null
null
null
projects/robustnav_baselines/experiments/robustnav_train/pointnav_robothor_vanilla_rgb_custom_ddppo.py
DexiongYung/robustnav_AE
f2b1b5bb8780e4e6ae5f81c127b7589cfc949801
[ "MIT" ]
null
null
null
""" Experiment config to train a PointNav RGB policy """ # Required imports import glob import os from abc import ABC from math import ceil from typing import Dict, Any, List, Optional, Sequence, Union import gym import numpy as np import torch import torch.nn as nn import torch.optim as optim from torch.optim.lr_sch...
36.115385
109
0.602894
5d1fb9089fc7d104e318063aefcfae0e974eb744
5,078
py
Python
examples/three_dimensional/ircad/multi_gpu/main.py
yngtodd/segment
fb6fa3d8845cdeef362589182e699c25fdc48bfa
[ "MIT" ]
4
2018-11-09T08:16:50.000Z
2021-04-16T09:50:07.000Z
examples/three_dimensional/ircad/multi_gpu/main.py
yngtodd/segment
fb6fa3d8845cdeef362589182e699c25fdc48bfa
[ "MIT" ]
2
2018-09-05T20:00:32.000Z
2018-09-10T01:03:47.000Z
examples/three_dimensional/ircad/multi_gpu/main.py
yngtodd/segment
fb6fa3d8845cdeef362589182e699c25fdc48bfa
[ "MIT" ]
1
2018-11-09T08:16:53.000Z
2018-11-09T08:16:53.000Z
import torch import torch.optim as optim import torch.nn as nn import torch.nn.functional as F from torch.utils.data import DataLoader from segment.data import IRCAD3D from segment.data.utils import train_valid_split from segment.ml.models.three_dimensional.dgxmp import ModelParallelUNet3D from segment.ml import Aver...
34.544218
102
0.633517
f559f7f6a7257eca7ad62209e0a059fbefd64d3f
1,642
py
Python
Lib/site-packages/PySide/examples/dialogs/trivialwizard.py
heylenz/python27
bee49fa9d65b8ab7d591146a5b6cd47aeb41d940
[ "bzip2-1.0.6", "MIT" ]
32
2015-11-06T02:59:41.000Z
2021-02-12T02:44:42.000Z
Lib/site-packages/PySide/examples/dialogs/trivialwizard.py
heylenz/python27
bee49fa9d65b8ab7d591146a5b6cd47aeb41d940
[ "bzip2-1.0.6", "MIT" ]
56
2020-01-15T15:44:40.000Z
2021-11-15T17:50:24.000Z
Lib/site-packages/PySide/examples/dialogs/trivialwizard.py
heylenz/python27
bee49fa9d65b8ab7d591146a5b6cd47aeb41d940
[ "bzip2-1.0.6", "MIT" ]
4
2016-02-01T09:15:05.000Z
2020-04-30T03:41:04.000Z
#!/usr/bin/env python """PyQt4 port of the dialogs/trivialwizard example from Qt v4.x""" from PySide import QtGui def createIntroPage(): page = QtGui.QWizardPage() page.setTitle("Introduction") label = QtGui.QLabel("This wizard will help you register your copy of " "Super Product Two.") ...
22.493151
81
0.688185
d4700bad36dee56c756ddd13444a5dd641050550
3,796
py
Python
lib/surface/sql/backups/delete.py
bshaffer/google-cloud-sdk
f587382fd112f238c0d6d5ca3dab8f52d2b5c5f9
[ "Apache-2.0" ]
null
null
null
lib/surface/sql/backups/delete.py
bshaffer/google-cloud-sdk
f587382fd112f238c0d6d5ca3dab8f52d2b5c5f9
[ "Apache-2.0" ]
null
null
null
lib/surface/sql/backups/delete.py
bshaffer/google-cloud-sdk
f587382fd112f238c0d6d5ca3dab8f52d2b5c5f9
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2017 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
35.148148
78
0.714963
f55d5fc27315a3d29ee28dc39363eba8a3c2b45e
22,541
py
Python
lte/gateway/python/magma/pipelined/qos/common.py
rogerpueyo/magma
fa28dd15ea714c8a9e31a739960eaa65b4522a43
[ "BSD-3-Clause" ]
null
null
null
lte/gateway/python/magma/pipelined/qos/common.py
rogerpueyo/magma
fa28dd15ea714c8a9e31a739960eaa65b4522a43
[ "BSD-3-Clause" ]
null
null
null
lte/gateway/python/magma/pipelined/qos/common.py
rogerpueyo/magma
fa28dd15ea714c8a9e31a739960eaa65b4522a43
[ "BSD-3-Clause" ]
null
null
null
""" Copyright 2020 The Magma Authors. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES O...
39.684859
110
0.546293
51ffbd86278836a92c713c81bc30a8a53928b306
2,114
py
Python
YNet_dev/resources/manual_classification.py
OBA9k/Test_dev
bfdd337fb56ca160e1d09b6c310d1e6037d55fcd
[ "Apache-2.0" ]
4
2018-06-26T20:11:07.000Z
2019-03-18T23:49:01.000Z
YNet_dev/resources/manual_classification.py
OBA9k/Test_dev
bfdd337fb56ca160e1d09b6c310d1e6037d55fcd
[ "Apache-2.0" ]
1
2018-11-03T18:01:37.000Z
2018-11-06T16:04:53.000Z
YNet_dev/resources/manual_classification.py
OBA9k/Test_dev
bfdd337fb56ca160e1d09b6c310d1e6037d55fcd
[ "Apache-2.0" ]
2
2018-10-01T03:39:30.000Z
2018-11-10T10:42:26.000Z
import pandas as pd import matplotlib.pyplot as plt from ipywidgets import * from IPython.display import display from IPython.html import widgets # plt.style.use('ggplot') def on_button_clicked(pred): # converting to str and parsing to get description of the button clicked. _, cls, _ = str(pred).split("'...
24.022727
104
0.583254
509a3ea61f22a275676536384df8dee61e8caa51
10,256
py
Python
panel/widgets/misc.py
apatlpo/panel
560545f5f8e62ce82b24e7aa39a8f09101c9a65f
[ "BSD-3-Clause" ]
2
2021-05-03T15:19:04.000Z
2021-05-13T16:02:25.000Z
panel/widgets/misc.py
apatlpo/panel
560545f5f8e62ce82b24e7aa39a8f09101c9a65f
[ "BSD-3-Clause" ]
null
null
null
panel/widgets/misc.py
apatlpo/panel
560545f5f8e62ce82b24e7aa39a8f09101c9a65f
[ "BSD-3-Clause" ]
1
2020-12-23T16:57:08.000Z
2020-12-23T16:57:08.000Z
""" Miscellaneous widgets which do not fit into the other main categories. """ from __future__ import absolute_import, division, unicode_literals import os from io import BytesIO from base64 import b64encode from six import string_types import param import numpy as np from ..depends import depends from ..io.noteboo...
32.977492
94
0.572153
b5f0da25fa7233c9ce775bacea6d34dfc5d3c500
4,107
py
Python
robotiq_3f_gripper_control/nodes/Robotiq3FGripperTcpNode.py
atyshka/robotiq
99bd09d1bccf3464b99c5f2470c691607adbb7b6
[ "BSD-2-Clause" ]
null
null
null
robotiq_3f_gripper_control/nodes/Robotiq3FGripperTcpNode.py
atyshka/robotiq
99bd09d1bccf3464b99c5f2470c691607adbb7b6
[ "BSD-2-Clause" ]
1
2021-09-01T23:52:16.000Z
2021-09-01T23:52:16.000Z
robotiq_3f_gripper_control/nodes/Robotiq3FGripperTcpNode.py
UTNuclearRobotics/robotiq
66213b3845e2b9e2ad9463157ee710698f479f72
[ "BSD-2-Clause" ]
1
2018-09-21T07:42:55.000Z
2018-09-21T07:42:55.000Z
#!/usr/bin/env python # Software License Agreement (BSD License) # # Copyright (c) 2012, Robotiq, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistributions of source code must...
44.641304
626
0.776966
32f5840edb231ba8b10257d7dc0624c0e4483306
5,825
py
Python
proc/post_process_abc.py
tappi287/usdzconvert_webui
a4791b0126ca92a2fe9bf6bbd23ec1f0a518645e
[ "MIT" ]
19
2020-04-07T08:18:39.000Z
2022-03-01T20:43:45.000Z
proc/post_process_abc.py
tappi287/usdzconvert_webui
a4791b0126ca92a2fe9bf6bbd23ec1f0a518645e
[ "MIT" ]
4
2020-06-08T12:13:42.000Z
2021-09-07T11:07:22.000Z
proc/post_process_abc.py
tappi287/usdzconvert_webui
a4791b0126ca92a2fe9bf6bbd23ec1f0a518645e
[ "MIT" ]
1
2021-09-06T11:15:45.000Z
2021-09-06T11:15:45.000Z
from __future__ import print_function import os import shutil import sys import re import logging import subprocess import argparse # Remove polluted OS Env when debugging or directly run without Popen env # -- # os.environ['PATH'] = '..\\converter\\USD\\lib;..\\converter\\USD\\bin;..\\converter\\USD\\plugin\\usd;' # ...
34.467456
118
0.647897
b24e572ca4217724b1329db872e3bebde483fc41
10,664
py
Python
sdk/python/pulumi_azure_native/network/user_rule.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/network/user_rule.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/network/user_rule.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from .. import _utilities, _tables from ...
43
248
0.645349
9b104aa9c5288370b3470216bcf0a6a6e903b103
14,576
py
Python
src/transformers/models/hubert/configuration_hubert.py
dctelus/transformers
6786cbc4b14ebff0ac59c768cadd109391db9a08
[ "Apache-2.0" ]
8,028
2018-11-05T15:19:44.000Z
2019-07-16T09:14:59.000Z
src/transformers/models/hubert/configuration_hubert.py
arron1227/transformers
b18dfd95e1f60ae65a959a7b255fc06522170d1b
[ "Apache-2.0" ]
731
2018-11-05T21:35:52.000Z
2019-07-16T09:51:26.000Z
src/transformers/models/hubert/configuration_hubert.py
arron1227/transformers
b18dfd95e1f60ae65a959a7b255fc06522170d1b
[ "Apache-2.0" ]
2,106
2018-11-05T15:29:15.000Z
2019-07-16T08:51:57.000Z
# coding=utf-8 # Copyright 2021 The Fairseq Authors and The HuggingFace Inc. team. 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/...
56.496124
120
0.689421
b3dcfb5acf90d67b43b34607abb0e06d229ebab4
921
py
Python
setup.py
vaibhavshiledar/deskew
31f50c21515b1ac3ad4b0ea0a2b41c1ad2618c79
[ "MIT" ]
null
null
null
setup.py
vaibhavshiledar/deskew
31f50c21515b1ac3ad4b0ea0a2b41c1ad2618c79
[ "MIT" ]
null
null
null
setup.py
vaibhavshiledar/deskew
31f50c21515b1ac3ad4b0ea0a2b41c1ad2618c79
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from setuptools import setup, find_packages setup( name='deskew', version='0.10.3', description='Skew detection and correction in images containing text', long_description="""Skew detection and correction in images containing text Homepage: https://githu...
29.709677
79
0.635179
67e3357027cee3b4ad1db34dabe714c1100d6afb
7,483
py
Python
skbio/io/format/_base.py
michaelsilverstein/scikit-bio
876efcf688a8f15e89bb70fa835a2f2a84b534c1
[ "BSD-3-Clause" ]
643
2015-01-05T16:37:05.000Z
2022-03-25T07:53:24.000Z
skbio/io/format/_base.py
michaelsilverstein/scikit-bio
876efcf688a8f15e89bb70fa835a2f2a84b534c1
[ "BSD-3-Clause" ]
938
2015-01-06T21:53:07.000Z
2022-03-31T23:35:05.000Z
skbio/io/format/_base.py
michaelsilverstein/scikit-bio
876efcf688a8f15e89bb70fa835a2f2a84b534c1
[ "BSD-3-Clause" ]
242
2015-01-07T20:42:47.000Z
2022-03-30T18:22:48.000Z
# ---------------------------------------------------------------------------- # Copyright (c) 2013--, scikit-bio development team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this software. # --------------------------------------------...
34.643519
79
0.573567
0937eb74825aecd24d2c1794af190efb09010666
726
py
Python
HackerRank/30 Days of Code/BST Level Order Traversal.py
will-data/Self-Study-WIL
69d627c65130fcfa23f27f97948a20107bb33394
[ "MIT" ]
1
2020-04-11T09:51:54.000Z
2020-04-11T09:51:54.000Z
HackerRank/30 Days of Code/BST Level Order Traversal.py
will-data/Self-Study-WIL
69d627c65130fcfa23f27f97948a20107bb33394
[ "MIT" ]
null
null
null
HackerRank/30 Days of Code/BST Level Order Traversal.py
will-data/Self-Study-WIL
69d627c65130fcfa23f27f97948a20107bb33394
[ "MIT" ]
null
null
null
import sys class Node: def __init__(self,data): self.right=self.left=None self.data = data class Solution: def insert(self,root,data): if root==None: return Node(data) else: if data<=root.data: cur=self.insert(root.left,data) ...
25.034483
48
0.493113
15e3a29879d0e4490062530c0b27d865366df870
16,129
py
Python
third_party/WebKit/Tools/Scripts/webkitpy/w3c/update_w3c_test_expectations.py
xzhan96/chromium.src
1bd0cf3997f947746c0fc5406a2466e7b5f6159e
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2021-01-07T18:51:03.000Z
2021-01-07T18:51:03.000Z
third_party/WebKit/Tools/Scripts/webkitpy/w3c/update_w3c_test_expectations.py
emilio/chromium.src
1bd0cf3997f947746c0fc5406a2466e7b5f6159e
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
third_party/WebKit/Tools/Scripts/webkitpy/w3c/update_w3c_test_expectations.py
emilio/chromium.src
1bd0cf3997f947746c0fc5406a2466e7b5f6159e
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
# Copyright 2016 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """A class for updating layout test expectations when updating w3c tests. Specifically, this class fetches results from try bots for the current CL, and: ...
42.782493
127
0.611817
2c417573d0a22d36f8573243de6c82bbe3de827c
2,775
py
Python
src/sqlfluff/core/dialects/__init__.py
fbb-oc/sqlfluff
f50e72b748dcf700483d0e937aa2abcfb0a56e9e
[ "MIT" ]
1
2022-03-03T02:29:11.000Z
2022-03-03T02:29:11.000Z
src/sqlfluff/core/dialects/__init__.py
clairetaylor352/sqlfluff
62900332228db323da323ce20df0c5e17ba9fcbf
[ "MIT" ]
1
2021-12-08T18:40:19.000Z
2021-12-08T18:40:19.000Z
src/sqlfluff/core/dialects/__init__.py
derickl/sqlfluff
ea2341ffa5325757acfa02cc9f7a07ac78b7a6c8
[ "MIT" ]
null
null
null
"""Contains SQL Dialects. Note that individual dialects are only imported as needed at runtime. This avoids circular references. To enable this, any modules outside of .dialects cannot import dialects directly. They should import `dialect_selector` and use that to fetch dialects. Within .dialects, each dialect is fr...
34.259259
80
0.702703
45f2d51c89ea965f4185d5da903ea8e51a4b766b
99
py
Python
src/MyPackage/MySubFolder/subfolder_functions.py
cmonney/python-for-finance
26ed1e6df3a28bbf9604bc7ea7651635f6f6e583
[ "CC0-1.0" ]
null
null
null
src/MyPackage/MySubFolder/subfolder_functions.py
cmonney/python-for-finance
26ed1e6df3a28bbf9604bc7ea7651635f6f6e583
[ "CC0-1.0" ]
null
null
null
src/MyPackage/MySubFolder/subfolder_functions.py
cmonney/python-for-finance
26ed1e6df3a28bbf9604bc7ea7651635f6f6e583
[ "CC0-1.0" ]
null
null
null
COURSE = "Python for Everybody" def which_course_is_this(): print("This course is ", COURSE)
16.5
36
0.707071
d4717c614a49bb920cddd54b848b32b6b6f0e548
227
py
Python
librosgraph/librosgraph/datasource/__init__.py
gbiggs/ros2graphtools
b7b853f738f781f5fbe09de4ee7f35f7d46fbfa2
[ "Apache-2.0" ]
1
2018-10-31T16:32:48.000Z
2018-10-31T16:32:48.000Z
librosgraph/librosgraph/datasource/__init__.py
gbiggs/ros2graphtools
b7b853f738f781f5fbe09de4ee7f35f7d46fbfa2
[ "Apache-2.0" ]
null
null
null
librosgraph/librosgraph/datasource/__init__.py
gbiggs/ros2graphtools
b7b853f738f781f5fbe09de4ee7f35f7d46fbfa2
[ "Apache-2.0" ]
null
null
null
"""Data sources for information about topics, services, etc.""" def DummyTopicSource(): """Lazy import for the DummyTopicSource class.""" from .dummy_topic_source import DummyTopicSource return DummyTopicSource()
28.375
63
0.744493
5f60b99df1991289b09b9cc82a9001734e823ee3
6,060
py
Python
vnpy/trader/app/ctaStrategy/strategy/strategyBollChannel.py
tanzedan/vnpy
16c616ece1597a5766bf2fb3529f5789958330b6
[ "MIT" ]
4
2018-04-05T15:35:02.000Z
2022-01-04T11:23:19.000Z
vnpy/trader/app/ctaStrategy/strategy/strategyBollChannel.py
motw2014/vnpy
16c616ece1597a5766bf2fb3529f5789958330b6
[ "MIT" ]
null
null
null
vnpy/trader/app/ctaStrategy/strategy/strategyBollChannel.py
motw2014/vnpy
16c616ece1597a5766bf2fb3529f5789958330b6
[ "MIT" ]
1
2019-03-17T14:36:08.000Z
2019-03-17T14:36:08.000Z
# encoding: UTF-8 """ 感谢Darwin Quant贡献的策略思路。 知乎专栏原文:https://zhuanlan.zhihu.com/p/24448511 策略逻辑: 1. 布林通道(信号) 2. CCI指标(过滤) 3. ATR指标(止损) 适合品种:螺纹钢 适合周期:15分钟 这里的策略是作者根据原文结合vn.py实现,对策略实现上做了一些修改,仅供参考。 """ from __future__ import division from vnpy.trader.vtObject import VtBarData from vnpy.trader.vtConstant import EMPTY...
30
83
0.411386
81c1988de44c7146e653ab69fef5f06544e1031f
272
py
Python
frappe/email/doctype/email_flag_queue/email_flag_queue.py
erpnext-tm/frappe
7b470f28e1cf00b0659c01e06a2d0a4693b28d98
[ "MIT" ]
null
null
null
frappe/email/doctype/email_flag_queue/email_flag_queue.py
erpnext-tm/frappe
7b470f28e1cf00b0659c01e06a2d0a4693b28d98
[ "MIT" ]
null
null
null
frappe/email/doctype/email_flag_queue/email_flag_queue.py
erpnext-tm/frappe
7b470f28e1cf00b0659c01e06a2d0a4693b28d98
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2015, Frappe Technologies and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document class EmailFlagQueue(Document): pass
20.923077
58
0.783088
7b408ec3df8bbb023dba0a5bdf946fa24c2de345
1,262
py
Python
cleverhans/future/jax/utils.py
iamgroot42/cleverhans
53da9cd6daf9d7457800831c3eaa75f729a39145
[ "MIT" ]
2
2021-06-02T03:08:14.000Z
2021-07-02T03:32:17.000Z
cleverhans/future/jax/utils.py
iamgroot42/cleverhans
53da9cd6daf9d7457800831c3eaa75f729a39145
[ "MIT" ]
1
2021-03-01T15:06:09.000Z
2021-03-01T15:06:09.000Z
cleverhans/future/jax/utils.py
iamgroot42/cleverhans
53da9cd6daf9d7457800831c3eaa75f729a39145
[ "MIT" ]
1
2020-10-29T14:13:21.000Z
2020-10-29T14:13:21.000Z
import jax.numpy as np def one_hot(x, k, dtype=np.float32): """Create a one-hot encoding of x of size k.""" return np.array(x[:, None] == np.arange(k), dtype) def partial_flatten(x): """Flatten all but the first dimension of an ndarray.""" return np.reshape(x, (x.shape[0], -1)) def clip_eta(eta, norm, eps...
33.210526
105
0.671949
0b35439a2eb41cd11be9a6729d5eae75d99a606e
4,335
py
Python
src/data/convert_nq_to_t5.py
piresramon/T5-for-NQ
e1dfee1934ce93c78d2b50f5293c9f655fa0868f
[ "MIT" ]
null
null
null
src/data/convert_nq_to_t5.py
piresramon/T5-for-NQ
e1dfee1934ce93c78d2b50f5293c9f655fa0868f
[ "MIT" ]
null
null
null
src/data/convert_nq_to_t5.py
piresramon/T5-for-NQ
e1dfee1934ce93c78d2b50f5293c9f655fa0868f
[ "MIT" ]
null
null
null
import numpy as np import torch from tqdm import tqdm from typing import List, Union from transformers import PreTrainedTokenizerBase from src.data.process_nq import process_example from src.features.context import get_context from src.features.preprocess import generate_t5_input_sentence, generate_t5_label_sentence ...
37.695652
131
0.662053
1bb59f6682bba3a36c5b69e03a132b55504cbf88
4,651
py
Python
airbyte-integrations/connectors/source-facebook-pages/source_facebook_pages/streams.py
darian-heede/airbyte
504580d833582f8800b334f24e57a414d94389bf
[ "MIT" ]
1
2021-12-31T13:35:39.000Z
2021-12-31T13:35:39.000Z
airbyte-integrations/connectors/source-facebook-pages/source_facebook_pages/streams.py
darian-heede/airbyte
504580d833582f8800b334f24e57a414d94389bf
[ "MIT" ]
4
2022-01-25T17:48:19.000Z
2022-03-17T13:06:32.000Z
airbyte-integrations/connectors/source-facebook-pages/source_facebook_pages/streams.py
darian-heede/airbyte
504580d833582f8800b334f24e57a414d94389bf
[ "MIT" ]
2
2021-06-09T15:25:25.000Z
2021-12-31T13:34:10.000Z
# # Copyright (c) 2021 Airbyte, Inc., all rights reserved. # from abc import ABC from typing import Any, Iterable, Mapping, MutableMapping, Optional import requests from airbyte_cdk.sources.streams.http import HttpStream from source_facebook_pages.metrics import PAGE_FIELDS, PAGE_METRICS, POST_FIELDS, POST_METRICS ...
30.006452
94
0.627607
cdea0ffce8188ac99bab38011f54b0afb3bc99f7
25
py
Python
codeninja/admin/__init__.py
Deathnerd/iamacodeninja
8e2ef93db7f144cc48676c1a5d1423d65490dbd3
[ "MIT" ]
null
null
null
codeninja/admin/__init__.py
Deathnerd/iamacodeninja
8e2ef93db7f144cc48676c1a5d1423d65490dbd3
[ "MIT" ]
null
null
null
codeninja/admin/__init__.py
Deathnerd/iamacodeninja
8e2ef93db7f144cc48676c1a5d1423d65490dbd3
[ "MIT" ]
null
null
null
__author__ = 'Deathnerd'
12.5
24
0.76
17ddc841455a5dca1b53b8bbb3bbe1581b46bcf4
5,349
py
Python
tests/conftest.py
opus49/py3odb
79a4abceacd124cd0c63441f65c40b41afb3216b
[ "MIT" ]
1
2019-12-12T04:42:06.000Z
2019-12-12T04:42:06.000Z
tests/conftest.py
opus49/py3odb
79a4abceacd124cd0c63441f65c40b41afb3216b
[ "MIT" ]
6
2019-09-26T20:48:10.000Z
2020-11-20T02:52:07.000Z
tests/conftest.py
opus49/py3odb
79a4abceacd124cd0c63441f65c40b41afb3216b
[ "MIT" ]
1
2019-10-09T20:19:13.000Z
2019-10-09T20:19:13.000Z
"""Used to share fixtures among tests.""" import pathlib import pytest from .context import py3odb from .context import main MOCK_CURSOR_DATA = { "SELECT * FROM <odb>": { "description": ( ('lat@hdr', 2, None, None, None, None, None), ('lon@hdr', 2, None, None, None, None, None), ...
31.464706
91
0.615442
5f9460c377893e16b702907d7d698675d13a208e
401
py
Python
1301-1400/1388-Card Flipping Game/1388-Card Flipping Game.py
jiadaizhao/LintCode
a8aecc65c47a944e9debad1971a7bc6b8776e48b
[ "MIT" ]
77
2017-12-30T13:33:37.000Z
2022-01-16T23:47:08.000Z
1301-1400/1388-Card Flipping Game/1388-Card Flipping Game.py
jxhangithub/LintCode-1
a8aecc65c47a944e9debad1971a7bc6b8776e48b
[ "MIT" ]
1
2018-05-14T14:15:40.000Z
2018-05-14T14:15:40.000Z
1301-1400/1388-Card Flipping Game/1388-Card Flipping Game.py
jxhangithub/LintCode-1
a8aecc65c47a944e9debad1971a7bc6b8776e48b
[ "MIT" ]
39
2017-12-07T14:36:25.000Z
2022-03-10T23:05:37.000Z
import itertools class Solution: """ @param fronts: @param backs: @return: nothing """ def flipgame(self, fronts, backs): same = {x for x, y in zip(fronts, backs) if x == y} MAGIC = 2001 output = MAGIC for x in itertools.chain(fronts, backs): if x no...
25.0625
59
0.533666
b859fcb06d0678a5d5835305684dc6e9dc4ce6c9
959
py
Python
setup.py
kaar/pyTibber
0573cbb0bd93cd5b8bf8ee09fabf95c226397134
[ "MIT" ]
null
null
null
setup.py
kaar/pyTibber
0573cbb0bd93cd5b8bf8ee09fabf95c226397134
[ "MIT" ]
null
null
null
setup.py
kaar/pyTibber
0573cbb0bd93cd5b8bf8ee09fabf95c226397134
[ "MIT" ]
null
null
null
import os from setuptools import setup consts = {} with open(os.path.join("tibber", "const.py"), "r") as fp: exec(fp.read(), consts) setup( name="pyTibber", packages=["tibber"], install_requires=[ "aiohttp>=3.0.6", "async_timeout>=1.4.0", "graphql-subscription-manager>=0.4.0",...
27.4
71
0.606882
8e7ae580f503e514ed6cd2dd903322c87e722019
4,486
py
Python
selfdrive/car/modules/GYRO_module.py
Klinenator/openpilot
c9b552c15aa5355ce9580107fb9ac382c4280314
[ "MIT" ]
null
null
null
selfdrive/car/modules/GYRO_module.py
Klinenator/openpilot
c9b552c15aa5355ce9580107fb9ac382c4280314
[ "MIT" ]
null
null
null
selfdrive/car/modules/GYRO_module.py
Klinenator/openpilot
c9b552c15aa5355ce9580107fb9ac382c4280314
[ "MIT" ]
null
null
null
from selfdrive.services import service_list from collections import deque import selfdrive.messaging as messaging import cereal import math from common.realtime import sec_since_boot cereal_SensorEventData_acceleration = 0 cereal_SensorEventData_magnetic = 1 cereal_SensorEventData_orientation = 2 cereal_Sens...
36.471545
176
0.618814
0d22d1c9fceb54479305f8e364b64a3b2413db32
17,576
py
Python
Legacy/Original 135Cipher/algorithm.py
Jamal135/135code
05ddeea76361a516d4523fde63da05c593153563
[ "MIT" ]
1
2021-05-06T19:59:31.000Z
2021-05-06T19:59:31.000Z
Legacy/Original 135Cipher/algorithm.py
lirannl/135code
05ddeea76361a516d4523fde63da05c593153563
[ "MIT" ]
null
null
null
Legacy/Original 135Cipher/algorithm.py
lirannl/135code
05ddeea76361a516d4523fde63da05c593153563
[ "MIT" ]
null
null
null
#################################################################################################### #135Code Encryption/Decryption Algorithm #################################################################################################### #Required for alphabetical sequence generator. import random #Required for b...
34.873016
138
0.608728
c5a27ba00cf3c6c7d15cecba5be9473e1d4d963d
3,472
py
Python
tests/task/vasp/VaspSimulation/test_VaspSimulation.py
eragasa/pypospack
21cdecaf3b05c87acc532d992be2c04d85bfbc22
[ "MIT" ]
4
2018-01-18T19:59:56.000Z
2020-08-25T11:56:52.000Z
tests/task/vasp/VaspSimulation/test_VaspSimulation.py
eragasa/pypospack
21cdecaf3b05c87acc532d992be2c04d85bfbc22
[ "MIT" ]
1
2018-04-22T23:02:13.000Z
2018-04-22T23:02:13.000Z
tests/task/vasp/VaspSimulation/test_VaspSimulation.py
eragasa/pypospack
21cdecaf3b05c87acc532d992be2c04d85bfbc22
[ "MIT" ]
1
2019-09-14T07:04:42.000Z
2019-09-14T07:04:42.000Z
import os, shutil, subprocess import ase.build import pypospack.io.vasp as vasp import pypospack.crystal as crystal import pypospack.io.slurm as slurm import pypospack.task.vasp as tsk_vasp class TestVaspSimulation(object): def init_wo_restart(self): print('starting vasp simulation without restart') ...
29.423729
88
0.622984
15308c8e30b0601b6604fa2efa1d4da1af0fd114
825
py
Python
mint/protocols/shared_protocol.py
sai-genesis/rc1-test
56e565952b283450c8589296f87c31b1c67b8502
[ "Apache-2.0" ]
null
null
null
mint/protocols/shared_protocol.py
sai-genesis/rc1-test
56e565952b283450c8589296f87c31b1c67b8502
[ "Apache-2.0" ]
null
null
null
mint/protocols/shared_protocol.py
sai-genesis/rc1-test
56e565952b283450c8589296f87c31b1c67b8502
[ "Apache-2.0" ]
null
null
null
from dataclasses import dataclass from enum import IntEnum from typing import List, Tuple from mint.util.ints import uint8, uint16 from mint.util.streamable import Streamable, streamable protocol_version = "0.0.32" """ Handshake when establishing a connection between two servers. Note: When changing this file, also ...
26.612903
83
0.774545
d180841f328d6329215f221fdb973003a0593f23
6,456
py
Python
runner_dnn.py
Tommy-Johannessen/MovementRecognition
be84d7d014a272987dd20d03194336a9244eb900
[ "MIT" ]
null
null
null
runner_dnn.py
Tommy-Johannessen/MovementRecognition
be84d7d014a272987dd20d03194336a9244eb900
[ "MIT" ]
null
null
null
runner_dnn.py
Tommy-Johannessen/MovementRecognition
be84d7d014a272987dd20d03194336a9244eb900
[ "MIT" ]
1
2019-02-13T12:42:39.000Z
2019-02-13T12:42:39.000Z
#from rnn import RNNClassifier import os import pickle from collections import defaultdict import numpy as np import tensorflow as tf import visualization from data_batcher import DataBatcher from models.dnn import DNNClassifier np.set_printoptions(threshold=np.nan) if __name__ == '__main__': data_types = ['ba...
43.328859
117
0.458178
019cec20f2660a9ec23b21916d306b900a7f78ce
728
py
Python
Python_KivyExamples_OnInterest/openpyxl_iteratethroughrows.py
CodexLink/InventoryEditor-Data_List_Simplier_AEMB
e14848a1ad9fc5111a17f6d1ae629866274b3b69
[ "Apache-2.0" ]
1
2021-04-02T23:27:59.000Z
2021-04-02T23:27:59.000Z
Python_KivyExamples_OnInterest/openpyxl_iteratethroughrows.py
CodexLink/InventoryEditor-Data_List_Simplier_AEMB
e14848a1ad9fc5111a17f6d1ae629866274b3b69
[ "Apache-2.0" ]
2
2019-11-14T02:28:38.000Z
2020-01-06T14:51:01.000Z
Python_KivyExamples_OnInterest/openpyxl_iteratethroughrows.py
CodexLink/InventoryEditor-Data_List_Simplier_AEMB
e14848a1ad9fc5111a17f6d1ae629866274b3b69
[ "Apache-2.0" ]
null
null
null
import openpyxl from openpyxl import load_workbook from openpyxl.utils import column_index_from_string ExcelFile = load_workbook('C:\\Users\\janja\\Desktop\\sam.xlsx', data_only = True) ExcelWorksheet = ExcelFile['Sheet1'] # #col_name = 'A' #start_row = 1 #end_row = 99 # #range_expr = "{col}{start_row}:{col}{end_row}"...
33.090909
143
0.736264
e6d30ba9a4cd4b8ab7b1a5befa42429dda10f0c7
11,222
py
Python
part2/python/navigation.py
LuisBustillo/IIB_Project
c928ed781c6613c6e7f3b80ab59dd00328dd14c5
[ "MIT" ]
null
null
null
part2/python/navigation.py
LuisBustillo/IIB_Project
c928ed781c6613c6e7f3b80ab59dd00328dd14c5
[ "MIT" ]
null
null
null
part2/python/navigation.py
LuisBustillo/IIB_Project
c928ed781c6613c6e7f3b80ab59dd00328dd14c5
[ "MIT" ]
null
null
null
#!/usr/bin/env python from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import sys import signal import rospy import yaml import tf from math import radians, copysign, sqrt, pow, pi, atan2 import numpy as np import scipy import time...
34.423313
129
0.579309
b0910458be051600ffde0c070d004b18038fee4c
1,080
py
Python
py/dkps/parsers/widevine_parser_unittest.py
arccode/factory
a1b0fccd68987d8cd9c89710adc3c04b868347ec
[ "BSD-3-Clause" ]
3
2022-01-06T16:52:52.000Z
2022-03-07T11:30:47.000Z
py/dkps/parsers/widevine_parser_unittest.py
arccode/factory
a1b0fccd68987d8cd9c89710adc3c04b868347ec
[ "BSD-3-Clause" ]
null
null
null
py/dkps/parsers/widevine_parser_unittest.py
arccode/factory
a1b0fccd68987d8cd9c89710adc3c04b868347ec
[ "BSD-3-Clause" ]
1
2021-10-24T01:47:22.000Z
2021-10-24T01:47:22.000Z
#!/usr/bin/env python3 # Copyright 2015 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Unit test for Widevine parser module.""" import os import unittest from cros.factory.dkps.parsers import widevine_parser SCR...
30
78
0.678704
caf8b2ef873fb08330074b2451622292abee5702
27,479
py
Python
paper/historycode/IMDbPY-5.1.1/imdb/parser/http/personParser.py
andurilhuang/Movie_Income_Prediction
5c705fe60295a175e9dc54191df422fc49ceccd6
[ "MIT" ]
1
2017-11-02T06:06:39.000Z
2017-11-02T06:06:39.000Z
paper/historycode/IMDbPY-5.1.1/imdb/parser/http/personParser.py
andurilhuang/Movie_Income_Prediction
5c705fe60295a175e9dc54191df422fc49ceccd6
[ "MIT" ]
null
null
null
paper/historycode/IMDbPY-5.1.1/imdb/parser/http/personParser.py
andurilhuang/Movie_Income_Prediction
5c705fe60295a175e9dc54191df422fc49ceccd6
[ "MIT" ]
4
2017-11-01T19:24:31.000Z
2018-09-13T00:05:41.000Z
""" parser.http.personParser module (imdb package). This module provides the classes (and the instances), used to parse the IMDb pages on the akas.imdb.com server about a person. E.g., for "Mel Gibson" the referred pages would be: categorized: http://akas.imdb.com/name/nm0000154/maindetails biography: ...
44.320968
137
0.447032
a46717a3b265179a28b0d67e2e8825947bad0557
2,164
py
Python
committee/migrations/0001_initial.py
imagreenplant/beacon-food-forest
664bb1acb3f6a876df64a940a9440bd9c0f8894f
[ "MIT" ]
1
2016-10-19T16:33:38.000Z
2016-10-19T16:33:38.000Z
committee/migrations/0001_initial.py
imagreenplant/beacon-food-forest
664bb1acb3f6a876df64a940a9440bd9c0f8894f
[ "MIT" ]
9
2018-06-04T19:05:18.000Z
2022-01-13T00:41:25.000Z
committee/migrations/0001_initial.py
imagreenplant/beacon-food-forest
664bb1acb3f6a876df64a940a9440bd9c0f8894f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models import django.utils.timezone import uuid import django_markdown.models class Migration(migrations.Migration): dependencies = [ ] operations = [ migrations.CreateModel( name='Comm...
48.088889
221
0.613678
7fa266ba93b86321533f2e9ed2c98ef04e40c673
766
py
Python
file-handling/file_handling.py
aditshinde/python-training
ccd41d3d4a0998a9bdcb0d71b5ba9341667d2cc8
[ "Apache-2.0" ]
null
null
null
file-handling/file_handling.py
aditshinde/python-training
ccd41d3d4a0998a9bdcb0d71b5ba9341667d2cc8
[ "Apache-2.0" ]
null
null
null
file-handling/file_handling.py
aditshinde/python-training
ccd41d3d4a0998a9bdcb0d71b5ba9341667d2cc8
[ "Apache-2.0" ]
null
null
null
#Creating new file outputFile = open(r'temp_file.txt','w') #write raw text outputFile.write('This line is from string') #write a list to file text = ['This','line','is','from','a','list'] outputFile.writelines(text) #write a list to file text = ('This','line','is','from','a','tuple') outputFile.writelines(text) #cl...
15.632653
46
0.689295
d59bdd5aae37d012806815836dff2f3c4e52cba5
718
py
Python
lista-2/07_latas.py
outrofelipe/Python-para-zumbis
3bf1361c41ec6a8fa2bdc1a745230e630b73edd8
[ "MIT" ]
3
2016-12-23T13:20:43.000Z
2018-04-24T23:10:59.000Z
lista-2/07_latas.py
outrofelipe/Python-para-zumbis
3bf1361c41ec6a8fa2bdc1a745230e630b73edd8
[ "MIT" ]
null
null
null
lista-2/07_latas.py
outrofelipe/Python-para-zumbis
3bf1361c41ec6a8fa2bdc1a745230e630b73edd8
[ "MIT" ]
1
2017-07-13T23:53:34.000Z
2017-07-13T23:53:34.000Z
''' Lista 2 - Exercicio 7. Faça um programa para uma loja de tintas. O programa deverá pedir o tamanho em metros quadrados da área a ser pintada. Considere que a cobertura da tinta é de 1 litro para cada 3 metros quadrados e que a tinta é vendida em latas de 18 litros, que custam R$ 80,00. Informe ao usuário a quantid...
35.9
113
0.692201
5997609b2b8bdc17aa3dace88bef85f0aeaa5bea
23,489
py
Python
lib/evn/path.py
tpn/enversion
6990541c3021a7f9d0c1cd64e1cb58bc9aac135e
[ "Apache-2.0" ]
2
2016-10-13T15:36:38.000Z
2019-04-13T22:54:32.000Z
lib/evn/path.py
tpn/enversion
6990541c3021a7f9d0c1cd64e1cb58bc9aac135e
[ "Apache-2.0" ]
null
null
null
lib/evn/path.py
tpn/enversion
6990541c3021a7f9d0c1cd64e1cb58bc9aac135e
[ "Apache-2.0" ]
2
2018-06-04T09:19:28.000Z
2021-11-01T14:54:35.000Z
#=============================================================================== # Imports #=============================================================================== import os import re from os.path import ( join, abspath, dirname, normpath, ) #===================================================...
31.276964
80
0.498105
eef4a31bb00588586441f607662fc1b81a820ae0
637
py
Python
GPL/traffic_scripts/lisp/__init__.py
nidhyanandhan/csit
2156583b4e66f2c3c35903c854b1823b76a4e9a6
[ "Apache-2.0" ]
null
null
null
GPL/traffic_scripts/lisp/__init__.py
nidhyanandhan/csit
2156583b4e66f2c3c35903c854b1823b76a4e9a6
[ "Apache-2.0" ]
null
null
null
GPL/traffic_scripts/lisp/__init__.py
nidhyanandhan/csit
2156583b4e66f2c3c35903c854b1823b76a4e9a6
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020 Cisco and/or its affiliates. # 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 ag...
37.470588
74
0.755102
ead78bc9a89d0159301f381f873ea22713ef65ed
10,125
py
Python
ide/MainWindow.py
YashWalke/PythonIDE
800f541650c31aedb18e14221912606df45a3ea8
[ "Apache-2.0" ]
null
null
null
ide/MainWindow.py
YashWalke/PythonIDE
800f541650c31aedb18e14221912606df45a3ea8
[ "Apache-2.0" ]
null
null
null
ide/MainWindow.py
YashWalke/PythonIDE
800f541650c31aedb18e14221912606df45a3ea8
[ "Apache-2.0" ]
null
null
null
from PyQt5.QtWidgets import QAction, QApplication, QFileSystemModel, QFontDialog, QHBoxLayout, QInputDialog, QLineEdit, QMainWindow, QMenu, QMenuBar, QMessageBox, QStyleFactory, QTreeView, QWidget from PyQt5.QtGui import QColor, QFont, QIcon from PyQt5.Qsci import QsciLexerPython, QsciScintilla from platform import sys...
36.160714
196
0.766222
06a1eeccbe36f6efc5bd0139bd0bdb9096320c73
1,213
py
Python
habitat_sim/utils/data/data_structures.py
vauduong/habitat-sim
08f5dcae8cb9e94e0985f8134affdb0e8ce1cc2c
[ "MIT" ]
1,457
2019-02-21T21:42:41.000Z
2022-03-29T13:34:28.000Z
habitat_sim/utils/data/data_structures.py
vauduong/habitat-sim
08f5dcae8cb9e94e0985f8134affdb0e8ce1cc2c
[ "MIT" ]
1,131
2019-02-27T16:14:06.000Z
2022-03-31T15:41:24.000Z
habitat_sim/utils/data/data_structures.py
vauduong/habitat-sim
08f5dcae8cb9e94e0985f8134affdb0e8ce1cc2c
[ "MIT" ]
316
2019-02-26T22:45:38.000Z
2022-03-26T04:55:32.000Z
import collections class ExtractorLRUCache: def __init__(self, capacity=1000): self._order = collections.OrderedDict() self.capacity = capacity self.size = 0 def __getitem__(self, key): if not self.__contains__(key): raise KeyError("Key {} not in extractor cache".f...
25.808511
71
0.566364
21cd7e571d3c5d7a1c0ebed202ee0607108b4abc
3,967
py
Python
plugins/inline.py
fakeenemy01/ProMusicBot
276d7a658a07bb13acd66090a2cd0fa93303c0b1
[ "MIT" ]
1
2021-08-18T05:37:42.000Z
2021-08-18T05:37:42.000Z
plugins/inline.py
fakeenemy01/ProMusicBot
276d7a658a07bb13acd66090a2cd0fa93303c0b1
[ "MIT" ]
null
null
null
plugins/inline.py
fakeenemy01/ProMusicBot
276d7a658a07bb13acd66090a2cd0fa93303c0b1
[ "MIT" ]
null
null
null
#MIT License #Copyright (c) 2021 @Professor_Botz #Permission is hereby granted, free of charge, to any person obtaining a copy #of this software and associated documentation files (the "Software"), to deal #in the Software without restriction, including without limitation the rights #to use, copy, modify, merge, publ...
39.67
274
0.62667
0997d218dde659a6e5345367b1d4e703ea44b671
9,480
py
Python
main.py
Leather128/Pygame-Pong
33f6d76049c24edb56532314e1b29f4536269733
[ "Apache-2.0" ]
null
null
null
main.py
Leather128/Pygame-Pong
33f6d76049c24edb56532314e1b29f4536269733
[ "Apache-2.0" ]
null
null
null
main.py
Leather128/Pygame-Pong
33f6d76049c24edb56532314e1b29f4536269733
[ "Apache-2.0" ]
null
null
null
import pygame, os, random # My modules # import colors, fonts, paths from ball import PongBall from paddle import Paddle from difinfo import DifficultyInfo as difficulties # The main function where everything runs # def main(): def resetArena(pointReset): ball.position.x = screen_Width / 2 - ball.size ...
37.322835
161
0.572363
71a2242b702914aaebe9749fae6f99c6455439b6
333
py
Python
epicteller/web/main.py
KawashiroNitori/epicteller
264b11e7e6eb58beb0f67ecbbb811d268a533f7a
[ "MIT" ]
null
null
null
epicteller/web/main.py
KawashiroNitori/epicteller
264b11e7e6eb58beb0f67ecbbb811d268a533f7a
[ "MIT" ]
null
null
null
epicteller/web/main.py
KawashiroNitori/epicteller
264b11e7e6eb58beb0f67ecbbb811d268a533f7a
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import sentry_sdk import uvicorn from sentry_sdk.integrations.asgi import SentryAsgiMiddleware from epicteller.web.app import app as asgi_app sentry_sdk.init() app = SentryAsgiMiddleware(asgi_app) if __name__ == '__main__': uvicorn.run('epicteller.web.main:app', hos...
22.2
61
0.750751
844aaf80da22d97e48f7912aa495acb51a267a0a
25,223
py
Python
rtm/grid.py
ibrewster/rtm
d07af334abd0c2a81bea4e952e232a9a47366730
[ "MIT" ]
null
null
null
rtm/grid.py
ibrewster/rtm
d07af334abd0c2a81bea4e952e232a9a47366730
[ "MIT" ]
null
null
null
rtm/grid.py
ibrewster/rtm
d07af334abd0c2a81bea4e952e232a9a47366730
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt from xarray import DataArray import cartopy.crs as ccrs from cartopy.io.srtm import add_shading from osgeo import gdal, osr from obspy.geodetics import gps2dist_azimuth import utm import time import shutil import os import subprocess import warnings from .travel_time i...
38.745008
82
0.589343
7303ea38b68bbc97adbf3717d6790f9285dd2434
225
py
Python
project/project3/tests/q3_3_1.py
ds-modules/Colab-demo
cccaff13633f8a5ec697cd4aeca9087f2feec2e4
[ "BSD-3-Clause" ]
null
null
null
project/project3/tests/q3_3_1.py
ds-modules/Colab-demo
cccaff13633f8a5ec697cd4aeca9087f2feec2e4
[ "BSD-3-Clause" ]
null
null
null
project/project3/tests/q3_3_1.py
ds-modules/Colab-demo
cccaff13633f8a5ec697cd4aeca9087f2feec2e4
[ "BSD-3-Clause" ]
null
null
null
test = { 'name': 'q3_3_1', 'points': 1, 'suites': [{'cases': [{'code': '>>> 0 <= proportion_correct <= 1\nTrue', 'hidden': False, 'locked': False}], 'scored': True, 'setup': '', 'teardown': '', 'type': 'doctest'}]}
56.25
178
0.52
7a106a979822835b587596912f18d54cdd473cc3
2,025
py
Python
python/leetcode_516_Longest_Palindromic_Subsequence.py
angelopassaro/Hacktoberfest-1
21f90f5d49efba9b1a27f4d9b923f5017ab43f0e
[ "Apache-2.0" ]
1
2020-10-06T01:20:07.000Z
2020-10-06T01:20:07.000Z
python/leetcode_516_Longest_Palindromic_Subsequence.py
angelopassaro/Hacktoberfest-1
21f90f5d49efba9b1a27f4d9b923f5017ab43f0e
[ "Apache-2.0" ]
null
null
null
python/leetcode_516_Longest_Palindromic_Subsequence.py
angelopassaro/Hacktoberfest-1
21f90f5d49efba9b1a27f4d9b923f5017ab43f0e
[ "Apache-2.0" ]
null
null
null
''' Given a string s, find the longest palindromic subsequence's length in s. You may assume that the maximum length of s is 1000. Example 1: Input: "bbbab" Output: 4 One possible longest palindromic subsequence is "bbbb". Example 2: Input: "cbbd" Output: 2 ''' ''' This is a standard problem of Dynamic Programm...
24.695122
189
0.532346
e2b03690f29d1a14cfa489aae686c5285a84711d
1,001
py
Python
bgx_ro/urls.py
bogdan-veliscu/url_shortener
6b2b84975a1fcac8d9bccba41bb4a5baa1830f67
[ "Apache-2.0" ]
null
null
null
bgx_ro/urls.py
bogdan-veliscu/url_shortener
6b2b84975a1fcac8d9bccba41bb4a5baa1830f67
[ "Apache-2.0" ]
null
null
null
bgx_ro/urls.py
bogdan-veliscu/url_shortener
6b2b84975a1fcac8d9bccba41bb4a5baa1830f67
[ "Apache-2.0" ]
null
null
null
"""backend URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based...
35.75
77
0.724276
75ce86922edea2c4c2cbb10e084ff99dab838da9
1,071
py
Python
baseStation/src/communication/service/message.py
olgam4/design3
6e05d123a24deae7dda646df535844a158ef5cc0
[ "WTFPL" ]
null
null
null
baseStation/src/communication/service/message.py
olgam4/design3
6e05d123a24deae7dda646df535844a158ef5cc0
[ "WTFPL" ]
null
null
null
baseStation/src/communication/service/message.py
olgam4/design3
6e05d123a24deae7dda646df535844a158ef5cc0
[ "WTFPL" ]
null
null
null
import json from typing import Any, Dict class Message: def __init__(self, title: str, **kwargs) -> None: self._title = title self._data = {} for key, value in kwargs.items(): self._data[key] = value @property def title(self) -> str: return self._title def...
26.121951
53
0.556489
e5dd2cdc7a57da9ff2098327200e887d34984c74
7,513
py
Python
scripts/magic_magnet_async.py
mzramna/MagicMagnet-Python
840edbb8af88d029c5a59024d0d35b2e2640aa96
[ "MIT" ]
4
2020-07-19T21:06:24.000Z
2020-10-17T15:10:10.000Z
scripts/magic_magnet_async.py
mzramna/MagicMagnet-Python
840edbb8af88d029c5a59024d0d35b2e2640aa96
[ "MIT" ]
1
2021-03-31T20:03:45.000Z
2021-03-31T20:03:45.000Z
scripts/magic_magnet_async.py
mzramna/MagicMagnet-Python
840edbb8af88d029c5a59024d0d35b2e2640aa96
[ "MIT" ]
null
null
null
import os import json import urllib.parse from pathlib import Path from bs4 import BeautifulSoup, SoupStrainer import asyncio import aiohttp class MagicMagnet(): def __init__(self): self.links = {'foundLinks': 0} async def search(self, searchContent, sites: [str], total_search_pages=5): searc...
53.283688
129
0.434048
9fad1362ce89cb043fa63c73db41ce2fc31fa6f2
7,587
py
Python
sqllog/sqllog.py
Goofables/Cogs
4119603114b8234621f4337952bf28f6c20047ad
[ "Apache-2.0" ]
null
null
null
sqllog/sqllog.py
Goofables/Cogs
4119603114b8234621f4337952bf28f6c20047ad
[ "Apache-2.0" ]
null
null
null
sqllog/sqllog.py
Goofables/Cogs
4119603114b8234621f4337952bf28f6c20047ad
[ "Apache-2.0" ]
null
null
null
# -*- encoding: utf-8 -*- import discord from discord.ext import commands from .utils.dataIO import dataIO from .utils import checks from typing import Union from datetime import datetime,timedelta import time import os import re try: import pymysql except: print ("Error! pymysql not installed") raise SystemExit re...
40.572193
251
0.63622
b3e2b2ba36c7fbf860772e44815b88540f317523
19,758
py
Python
sahara/plugins/spark/config_helper.py
ksshanam/sahara
0d259f7a71447cd0cefe4f11184cc2ee335f4e33
[ "Apache-2.0" ]
null
null
null
sahara/plugins/spark/config_helper.py
ksshanam/sahara
0d259f7a71447cd0cefe4f11184cc2ee335f4e33
[ "Apache-2.0" ]
null
null
null
sahara/plugins/spark/config_helper.py
ksshanam/sahara
0d259f7a71447cd0cefe4f11184cc2ee335f4e33
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2014 Hoang Do, Phuc Vo, P. Michiardi, D. Venzano # # 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 appli...
38.142857
78
0.579765
28c94da491e5f5c49ee1a7d88b6b5c82cf109380
18,930
py
Python
jesse/helpers.py
The-Makers-of-things/jesse
df061ea21011a3c28f3359f421ec5594216fb708
[ "MIT" ]
null
null
null
jesse/helpers.py
The-Makers-of-things/jesse
df061ea21011a3c28f3359f421ec5594216fb708
[ "MIT" ]
null
null
null
jesse/helpers.py
The-Makers-of-things/jesse
df061ea21011a3c28f3359f421ec5594216fb708
[ "MIT" ]
null
null
null
import hashlib import math import os import random import string import sys import uuid from typing import List, Tuple, Union, Any import arrow import click import numpy as np CACHED_CONFIG = dict() def app_currency() -> str: from jesse.routes import router return quote_asset(router.routes[0].symbol) def ...
26.889205
126
0.621976
910262a32b94f3c89e267d8c8e0a276e774c027f
2,729
py
Python
zerver/webhooks/dialogflow/tests.py
pranayshahxyz/zulip
3da483487af79fde9dce2d21124dfa39b94936a5
[ "Apache-2.0" ]
1
2020-03-19T00:52:48.000Z
2020-03-19T00:52:48.000Z
zerver/webhooks/dialogflow/tests.py
pranayshahxyz/zulip
3da483487af79fde9dce2d21124dfa39b94936a5
[ "Apache-2.0" ]
null
null
null
zerver/webhooks/dialogflow/tests.py
pranayshahxyz/zulip
3da483487af79fde9dce2d21124dfa39b94936a5
[ "Apache-2.0" ]
1
2020-04-21T01:26:54.000Z
2020-04-21T01:26:54.000Z
from zerver.lib.test_classes import WebhookTestCase class DialogflowHookTests(WebhookTestCase): URL_TEMPLATE = "/api/v1/external/dialogflow?api_key={api_key}&email=AARON@zulip.com" def test_dialogflow_default(self) -> None: self.url = self.build_webhook_url( email="AARON@zulip.com", ...
41.348485
89
0.534262
e1cf982db7dd8e223252a6d09807f0ea78e412a7
8,708
py
Python
streamlit/run_inference.py
Amruthadasvp/wsd-project-amru
465ca71da8046e35ca0fa8fe4439592cd4048391
[ "MIT" ]
null
null
null
streamlit/run_inference.py
Amruthadasvp/wsd-project-amru
465ca71da8046e35ca0fa8fe4439592cd4048391
[ "MIT" ]
2
2021-08-25T15:46:00.000Z
2022-02-10T01:35:44.000Z
streamlit/run_inference.py
Amruthadasvp/wsd-project-amru
465ca71da8046e35ca0fa8fe4439592cd4048391
[ "MIT" ]
null
null
null
#%% import streamlit as st # To make things easier later, we're also importing numpy and pandas for # working with sample data. import numpy as np import torch import pandas as pd from pytorch_transformers import BertTokenizer, BertModel from keras.preprocessing.sequence import pad_sequences import sys from nltk.corpu...
35.542857
149
0.692696
8e1a00cd6ffdd95982f2bf04fbb396f40fc89a49
1,967
py
Python
testbench/download_breakthrough_listen_data.py
MilesCranmer/bifrost
951dd4a449850d22cfd74f4db13ecf806fe5cc30
[ "BSD-3-Clause" ]
1
2017-06-27T10:12:44.000Z
2017-06-27T10:12:44.000Z
testbench/download_breakthrough_listen_data.py
MilesCranmer/bifrost
951dd4a449850d22cfd74f4db13ecf806fe5cc30
[ "BSD-3-Clause" ]
null
null
null
testbench/download_breakthrough_listen_data.py
MilesCranmer/bifrost
951dd4a449850d22cfd74f4db13ecf806fe5cc30
[ "BSD-3-Clause" ]
null
null
null
""" # generate_test_data.py Generate test data that can be used with a testbench """ import os import numpy as np raw_filelist = [ 'http://blpd0.ssl.berkeley.edu/blc2/dibas.20160304/AGBT16A_999_73/GUPPI/C/blc2_guppi_57451_62327_PSR_J0034-0721_0002.0013.raw', 'http://blpd0.ssl.berkeley.edu/blc3/dibas.20160304/...
35.125
131
0.699542