hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
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
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
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.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
79635612f84f0b9c82badb4a47779fddb09b071f
183
py
Python
exercise/newfile16.1.py
LeeBeral/python
9f0d360d69ee5245e3ef13a9dc9fc666374587a4
[ "MIT" ]
null
null
null
exercise/newfile16.1.py
LeeBeral/python
9f0d360d69ee5245e3ef13a9dc9fc666374587a4
[ "MIT" ]
null
null
null
exercise/newfile16.1.py
LeeBeral/python
9f0d360d69ee5245e3ef13a9dc9fc666374587a4
[ "MIT" ]
null
null
null
import re str = '<div class="name">中之家国</div>' res = re.search(r'<.*?>(.*?)<.*?>',str) print(res.group(1)) res2 = re.search(r'[\u4e00-\u9fa5]{2,4}',str) print(res2.group())
20.333333
46
0.551913
7963568ab1671dbb0bc4bd7e5fbdb498be243fb5
2,942
py
Python
codes/linear_svc.py
catherinelandry/clandry_project
3aec2e26740de868512d89a99f983ffe7cc5ac87
[ "CC0-1.0" ]
null
null
null
codes/linear_svc.py
catherinelandry/clandry_project
3aec2e26740de868512d89a99f983ffe7cc5ac87
[ "CC0-1.0" ]
1
2021-07-30T13:24:25.000Z
2021-07-30T13:24:25.000Z
codes/linear_svc.py
catherinelandry/clandry_project
3aec2e26740de868512d89a99f983ffe7cc5ac87
[ "CC0-1.0" ]
1
2022-01-13T03:25:39.000Z
2022-01-13T03:25:39.000Z
#!/usr/bin/env python # coding: utf-8 from sklearn.model_selection import train_test_split from sklearn.model_selection import ShuffleSplit from sklearn.preprocessing import StandardScaler from sklearn.metrics import confusion_matrix from sklearn.pipeline import Pipeline from sklearn.decomposition import PCA from skl...
34.209302
103
0.685588
796356dc9ea18a8ad5090b20eb78497c32ef2216
1,885
py
Python
third_party/mosquitto/test/broker/07-will-delay.py
HowJMay/simple-tangle-accelerator
d79bfda23a0fcf67d5a7f9e66f02efa3e73ba381
[ "MIT" ]
null
null
null
third_party/mosquitto/test/broker/07-will-delay.py
HowJMay/simple-tangle-accelerator
d79bfda23a0fcf67d5a7f9e66f02efa3e73ba381
[ "MIT" ]
null
null
null
third_party/mosquitto/test/broker/07-will-delay.py
HowJMay/simple-tangle-accelerator
d79bfda23a0fcf67d5a7f9e66f02efa3e73ba381
[ "MIT" ]
1
2021-05-04T16:09:27.000Z
2021-05-04T16:09:27.000Z
#!/usr/bin/env python3 # Test whether a client will is transmitted with a delay correctly. # MQTT 5 from mosq_test_helper import * def do_test(clean_session): rc = 1 keepalive = 60 mid = 1 connect1_packet = mosq_test.gen_connect("will-qos0-test", keepalive=keepalive, proto_ver=5) connack1_packet...
36.25
208
0.695491
7963576c2d5149dc22ea3ef8a8270ec885bb2ccc
2,539
py
Python
scripts/flow_idm.py
chappers/d4rl
b838da60b51c98c1d673a81657f58a44ccf5d3fe
[ "Apache-2.0" ]
552
2020-04-20T01:07:02.000Z
2022-03-31T16:47:39.000Z
scripts/flow_idm.py
chappers/d4rl
b838da60b51c98c1d673a81657f58a44ccf5d3fe
[ "Apache-2.0" ]
103
2020-04-20T14:18:32.000Z
2022-03-30T14:33:45.000Z
scripts/flow_idm.py
chappers/d4rl
b838da60b51c98c1d673a81657f58a44ccf5d3fe
[ "Apache-2.0" ]
135
2020-04-21T16:57:52.000Z
2022-03-30T14:29:55.000Z
import numpy as np import argparse import gym import d4rl.flow from d4rl.utils import dataset_utils from flow.controllers import car_following_models def main(): parser = argparse.ArgumentParser() #parser.add_argument('--render', action='store_true', help='Render trajectories') #parser.add_argument('--ty...
36.271429
129
0.635683
7963590c6db80f909178bfc07750f06a233edd88
7,631
py
Python
example/gluon/super_resolution.py
qingyuanxingsi/incubator-mxnet
bbffdaf29459e15a703055e449a477a9862de8c6
[ "Apache-2.0" ]
399
2017-05-30T05:12:48.000Z
2022-01-29T05:53:08.000Z
example/gluon/super_resolution.py
greenpea0104/incubator-mxnet
fc9e70bf2d349ad4c6cb65ff3f0958e23a7410bf
[ "Apache-2.0" ]
58
2017-05-30T23:25:32.000Z
2019-11-18T09:30:54.000Z
example/gluon/super_resolution.py
greenpea0104/incubator-mxnet
fc9e70bf2d349ad4c6cb65ff3f0958e23a7410bf
[ "Apache-2.0" ]
107
2017-05-30T05:53:22.000Z
2021-06-24T02:43:31.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
39.133333
121
0.653125
7963595bd088930dde33600be81ffd04023fbb85
21
py
Python
packages/Mock/TileMapEditor/__init__.py
tommo/gii
03624a57cf74a07e38bfdc7f53c50bd926b7b5a7
[ "MIT" ]
7
2016-02-13T18:47:23.000Z
2020-07-03T13:47:49.000Z
packages/Mock/TileMapEditor/__init__.py
tommo/gii
03624a57cf74a07e38bfdc7f53c50bd926b7b5a7
[ "MIT" ]
1
2018-06-13T04:55:27.000Z
2021-11-05T05:52:51.000Z
packages/Mock/TileMapEditor/__init__.py
tommo/gii
03624a57cf74a07e38bfdc7f53c50bd926b7b5a7
[ "MIT" ]
4
2016-02-15T13:32:46.000Z
2019-12-12T17:22:31.000Z
import TileMapEditor
10.5
20
0.904762
796359e7e4c331e89be249bbc29413f7271b9fe9
8,957
py
Python
02-flask_project/info/modules/news/views.py
Wingxy/Python_Study
ab02b51f24214a4f797994b7c358f5aa51451dd9
[ "MIT" ]
null
null
null
02-flask_project/info/modules/news/views.py
Wingxy/Python_Study
ab02b51f24214a4f797994b7c358f5aa51451dd9
[ "MIT" ]
5
2021-03-18T20:31:06.000Z
2022-03-11T23:20:26.000Z
02-flask_project/info/modules/news/views.py
Wingxy/Python_Study
ab02b51f24214a4f797994b7c358f5aa51451dd9
[ "MIT" ]
null
null
null
import flask from info import db from info.models import User, News, Comment, CommentLike from info.utils import constants from info.utils.common import user_login_data from info.utils.response_code import RET from . import news_blu @news_blu.route('/<int:news_id>') @user_login_data def news_detail(news_id): use...
32.452899
101
0.64765
79635bea50adb057a59d61bc690f9675b8fe7bf3
10,031
py
Python
contrib/spendfrom/spendfrom.py
klauson/Corvus
69f8371131dd1b2f77a3f5f6f7022a7ed6b26674
[ "MIT" ]
null
null
null
contrib/spendfrom/spendfrom.py
klauson/Corvus
69f8371131dd1b2f77a3f5f6f7022a7ed6b26674
[ "MIT" ]
null
null
null
contrib/spendfrom/spendfrom.py
klauson/Corvus
69f8371131dd1b2f77a3f5f6f7022a7ed6b26674
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # Use the raw transactions API to spend corvuss received on particular addresses, # and send any change back to that same address. # # Example usage: # spendfrom.py # Lists available funds # spendfrom.py --from=ADDRESS --to=ADDRESS --amount=11.00 # # Assumes it will talk to a corvusd or Corvu...
37.429104
111
0.63224
79635c60fa1473e216f4f806d55f993bcf042ca6
3,252
py
Python
src/BiblesGetter.py
MeterianHQ/meterian-bibles-tool
2781bab7989bdba0be7fec399519600173f30710
[ "MIT" ]
1
2021-11-29T11:06:53.000Z
2021-11-29T11:06:53.000Z
src/BiblesGetter.py
MeterianHQ/meterian-bibles-tool
2781bab7989bdba0be7fec399519600173f30710
[ "MIT" ]
null
null
null
src/BiblesGetter.py
MeterianHQ/meterian-bibles-tool
2781bab7989bdba0be7fec399519600173f30710
[ "MIT" ]
1
2021-12-03T12:21:18.000Z
2021-12-03T12:21:18.000Z
import requests from datetime import datetime import time import logging import traceback import json log = logging.getLogger("BiblesGetter") class BiblesGetter: def __init__(self, project_getter, meterian_token, env="www"): self.meterian_token=meterian_token self.env=env self.project_ge...
37.813953
158
0.542128
79635cc7e928b435c0b7a3cec6dc46c0dc21acf9
17,602
py
Python
api/features/models.py
btasker/flagsmith
f8fab5a6e8f8b649e56e16443267d8cdb645a49b
[ "BSD-3-Clause" ]
null
null
null
api/features/models.py
btasker/flagsmith
f8fab5a6e8f8b649e56e16443267d8cdb645a49b
[ "BSD-3-Clause" ]
null
null
null
api/features/models.py
btasker/flagsmith
f8fab5a6e8f8b649e56e16443267d8cdb645a49b
[ "BSD-3-Clause" ]
null
null
null
from __future__ import unicode_literals import logging import typing from copy import deepcopy from django.core.exceptions import ( NON_FIELD_ERRORS, ObjectDoesNotExist, ValidationError, ) from django.db import models from django.db.models import Q, UniqueConstraint from django.utils.encoding import pytho...
36.824268
117
0.654926
79635db127c8ed6164d6c727a589c3efbab2a7ac
3,173
py
Python
tests/test_frameshift_identification.py
mldmort/adVNTR
412398924bc7f2ed1fa38c0c5456998d9cdd5b5a
[ "BSD-3-Clause" ]
34
2017-11-19T18:54:18.000Z
2022-03-04T15:06:55.000Z
tests/test_frameshift_identification.py
mldmort/adVNTR
412398924bc7f2ed1fa38c0c5456998d9cdd5b5a
[ "BSD-3-Clause" ]
42
2018-02-16T02:01:57.000Z
2021-09-13T16:33:15.000Z
tests/test_frameshift_identification.py
mldmort/adVNTR
412398924bc7f2ed1fa38c0c5456998d9cdd5b5a
[ "BSD-3-Clause" ]
12
2018-02-26T15:18:55.000Z
2021-01-27T13:02:39.000Z
import unittest from advntr.reference_vntr import ReferenceVNTR from advntr.vntr_finder import VNTRFinder class TestFrameshiftIdentification(unittest.TestCase): def get_reference_vntr(self, ru_count=10): pattern = 'ACGTACGT' ref_vntr = ReferenceVNTR(1, pattern, 1000, 'chr1', None, None) ...
39.17284
114
0.737788
79635e1128c3c2f1ee206bafb8360da98c3b4e99
335
py
Python
setup.py
PaulDodd/signac-flow-project-helpers
208c7c8da52c4b0108c3989c77423cc5ff86ba59
[ "MIT" ]
1
2017-05-30T14:22:59.000Z
2017-05-30T14:22:59.000Z
setup.py
PaulDodd/signac-flow-project-helpers
208c7c8da52c4b0108c3989c77423cc5ff86ba59
[ "MIT" ]
null
null
null
setup.py
PaulDodd/signac-flow-project-helpers
208c7c8da52c4b0108c3989c77423cc5ff86ba59
[ "MIT" ]
null
null
null
import sys from setuptools import setup, find_packages setup( name='fluid', version='0.0.0', packages=find_packages(), zip_safe=True, author='Paul Dodd', author_email='pdodd@umich.edu', description="Project to prototype different signac-flow workflows", install_requires=['signac', 'si...
20.9375
71
0.692537
79635e4d8af9d3dd71722c4ad4a809154dfd2b5f
3,771
py
Python
doc/preprocess_test.py
jbussemaker/smt
a1d8bc0ebea936148a2534f4e20a1134e6760dca
[ "BSD-3-Clause" ]
354
2017-08-15T22:12:58.000Z
2022-03-31T08:34:19.000Z
doc/preprocess_test.py
enjoyneer87/smt
4a4df255b9259965439120091007f9852f41523e
[ "BSD-3-Clause" ]
258
2017-08-11T15:08:40.000Z
2022-03-30T09:54:26.000Z
doc/preprocess_test.py
enjoyneer87/smt
4a4df255b9259965439120091007f9852f41523e
[ "BSD-3-Clause" ]
184
2017-08-11T14:55:17.000Z
2022-03-17T11:22:50.000Z
""" Author: Dr. John T. Hwang <hwangjt@umich.edu> This package is distributed under New BSD license. """ import os, sys import inspect import importlib import contextlib try: from StringIO import StringIO except: from io import StringIO import matplotlib matplotlib.use("Agg") import matplotlib.pypl...
28.78626
81
0.610713
79635f8f62d9108bde1655991a9d8c5633b39d1c
3,333
py
Python
vendor/scintilla/scripts/HeaderCheck.py
pattisahusiwa/xsintilla
3e3ecc85a00c6581c4a282a767d55002bbb09631
[ "Apache-2.0" ]
2
2020-10-05T13:55:05.000Z
2021-09-01T00:50:49.000Z
vendor/scintilla/scripts/HeaderCheck.py
pattisahusiwa/xsintilla
3e3ecc85a00c6581c4a282a767d55002bbb09631
[ "Apache-2.0" ]
null
null
null
vendor/scintilla/scripts/HeaderCheck.py
pattisahusiwa/xsintilla
3e3ecc85a00c6581c4a282a767d55002bbb09631
[ "Apache-2.0" ]
null
null
null
# Script to check that headers are in a consistent order # Requires Python 2.6 or later from __future__ import print_function import codecs, glob, os, platform, sys, unicodedata def ciCompare(a,b): return cmp(a.lower(), b.lower()) def ciKey(a): return a.lower() def SortListInsensitive(l): t...
35.457447
91
0.518752
7963601b8d751f267a3b9efdd03c4002a2224a52
16,275
py
Python
Tools/LyTestTools/ly_test_tools/environment/file_system.py
BreakerOfThings/o3de
f4c59f868c726470ec910623facd836047d059c3
[ "Apache-2.0", "MIT" ]
1
2022-03-28T08:06:58.000Z
2022-03-28T08:06:58.000Z
Tools/LyTestTools/ly_test_tools/environment/file_system.py
BreakerOfThings/o3de
f4c59f868c726470ec910623facd836047d059c3
[ "Apache-2.0", "MIT" ]
null
null
null
Tools/LyTestTools/ly_test_tools/environment/file_system.py
BreakerOfThings/o3de
f4c59f868c726470ec910623facd836047d059c3
[ "Apache-2.0", "MIT" ]
null
null
null
""" Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution. SPDX-License-Identifier: Apache-2.0 OR MIT File system related functions. """ import errno import glob import logging import os import psutil import shutil im...
34.924893
153
0.659539
7963604995f8448fcbfb85ca0fc6cf00a7bd1d94
218
py
Python
grayscale.py
crossml/opencv-basics
059b25a433df2e13fa52a842bd922d7f7954d7c4
[ "MIT" ]
null
null
null
grayscale.py
crossml/opencv-basics
059b25a433df2e13fa52a842bd922d7f7954d7c4
[ "MIT" ]
null
null
null
grayscale.py
crossml/opencv-basics
059b25a433df2e13fa52a842bd922d7f7954d7c4
[ "MIT" ]
null
null
null
import cv2 import numpy as np # import image img = cv2.imread('/home/nalin/Pictures/neww.png') # grayscale gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) cv2.imshow('image',gray) cv2.waitKey(0) cv2.destroyAllWindows()
18.166667
49
0.752294
796360ea12559ccf063072cc53b4a07c203249ef
1,722
py
Python
salt/runners/network.py
jeblair/salt
24bdca62c1d43df198e07e54cbdd0e6397243f37
[ "Apache-2.0" ]
1
2020-09-06T16:03:14.000Z
2020-09-06T16:03:14.000Z
salt/runners/network.py
jeblair/salt
24bdca62c1d43df198e07e54cbdd0e6397243f37
[ "Apache-2.0" ]
null
null
null
salt/runners/network.py
jeblair/salt
24bdca62c1d43df198e07e54cbdd0e6397243f37
[ "Apache-2.0" ]
null
null
null
''' Network tools to run from the Master ''' import socket def wollist(maclist, bcast='255.255.255.255', destport=9): ''' Send a "Magic Packet" to wake up a list of Minions. This list must contain one MAC hardware address per line CLI Example:: salt-run '/path/to/maclist' salt-run '/...
32.490566
64
0.569686
796361016d6f8e6b17afda960af49fc3fae55c09
3,127
py
Python
benchmark/startCirq3167.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startCirq3167.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startCirq3167.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 5/15/20 4:49 PM # @File : grover.py # qubit number=4 # total number=39 import cirq import cirq.google as cg from typing import Optional import sys from math import log2 import numpy as np #thatsNoCode from cirq.contrib.svg import SVGCircuit # Symbols for...
36.360465
77
0.680844
796362084cc8f97c5566a34bee213385d56897ed
2,109
py
Python
lifmodel/lifneuron.py
SmokinCaterpillar/NIGroupTalkDemo
78f0ba639e3e90f9a49e8ebd0e456e253422a913
[ "BSD-3-Clause" ]
null
null
null
lifmodel/lifneuron.py
SmokinCaterpillar/NIGroupTalkDemo
78f0ba639e3e90f9a49e8ebd0e456e253422a913
[ "BSD-3-Clause" ]
null
null
null
lifmodel/lifneuron.py
SmokinCaterpillar/NIGroupTalkDemo
78f0ba639e3e90f9a49e8ebd0e456e253422a913
[ "BSD-3-Clause" ]
null
null
null
__author__ = 'Robert Meyer' import numpy as np import matplotlib.pyplot as plt def euler_neuron(V_init, I, tau_V, tau_ref, dt, duration): """ Simulation of a leaky integrate and fire neuron. Simulates the equation dV/dT = -1/tau_V * V + I with a simple Euler scheme. This is a unitless syst...
27.38961
86
0.619725
796362260a7968c8d6f358c965c1bc5e85d61d0e
37,888
py
Python
sphinx/writers/text.py
pdecat/sphinx
adb81c510a4b56815cf6291f4ad0f670b54efd2d
[ "BSD-2-Clause" ]
1
2020-07-23T13:22:03.000Z
2020-07-23T13:22:03.000Z
sphinx/writers/text.py
pdecat/sphinx
adb81c510a4b56815cf6291f4ad0f670b54efd2d
[ "BSD-2-Clause" ]
2
2022-02-14T04:37:40.000Z
2022-03-02T10:55:40.000Z
sphinx/writers/text.py
pdecat/sphinx
adb81c510a4b56815cf6291f4ad0f670b54efd2d
[ "BSD-2-Clause" ]
1
2021-06-01T04:03:35.000Z
2021-06-01T04:03:35.000Z
""" sphinx.writers.text ~~~~~~~~~~~~~~~~~~~ Custom docutils writer for plain text. :copyright: Copyright 2007-2020 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. """ import math import os import re import textwrap from itertools import groupby, chain from typing import An...
32.190314
93
0.580078
796362add7fb8cf20cec48be61aee796ec1aa60d
1,883
py
Python
cwaliexpress/cwaliexpress/spiders/aliexpress_browser_debug_spider.py
trujunzhang/djzhang-targets
c2e327acde9d51f0455e7243f17d93d74b579501
[ "MIT" ]
2
2018-12-03T16:30:55.000Z
2019-04-03T13:29:20.000Z
cwaliexpress/cwaliexpress/spiders/aliexpress_browser_debug_spider.py
trujunzhang/djzhang-targets
c2e327acde9d51f0455e7243f17d93d74b579501
[ "MIT" ]
null
null
null
cwaliexpress/cwaliexpress/spiders/aliexpress_browser_debug_spider.py
trujunzhang/djzhang-targets
c2e327acde9d51f0455e7243f17d93d74b579501
[ "MIT" ]
1
2019-04-03T13:29:25.000Z
2019-04-03T13:29:25.000Z
# -*- coding: utf-8 -*- from random import Random import scrapy from scrapy.selector import Selector, HtmlXPathSelector from selenium import webdriver import time from cwaliexpress.items import AliExpress import urlparse class AliExpresssBrowserDebugSpider(scrapy.Spider): name = "aliexpress_browser_debug" ...
30.868852
118
0.62666
796362bdb4d45d2015e92c8dc58633a288ada1fd
4,257
py
Python
samples/context_management.py
dxiao2003/dialogflow-python-client-v2
05a1d3f0682de2c7d8c0c4db3fa5fea8934dfe72
[ "Apache-2.0" ]
1
2019-03-31T23:25:46.000Z
2019-03-31T23:25:46.000Z
samples/context_management.py
dxiao2003/dialogflow-python-client-v2
05a1d3f0682de2c7d8c0c4db3fa5fea8934dfe72
[ "Apache-2.0" ]
15
2020-01-28T23:14:29.000Z
2022-02-10T00:40:40.000Z
samples/context_management.py
dxiao2003/dialogflow-python-client-v2
05a1d3f0682de2c7d8c0c4db3fa5fea8934dfe72
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2017 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
32.007519
74
0.706131
796362e2dad41edfd7be93653bd650473709f0d1
5,448
py
Python
hivtrace/hivtraceviz.py
spond/hivtrace
6f06f7812c84f3e8f7a58b24782f01fee6997ef8
[ "MIT" ]
18
2016-03-16T21:55:01.000Z
2021-11-25T17:43:55.000Z
hivtrace/hivtraceviz.py
spond/hivtrace
6f06f7812c84f3e8f7a58b24782f01fee6997ef8
[ "MIT" ]
65
2015-08-12T23:49:22.000Z
2022-02-08T15:12:53.000Z
hivtrace/hivtraceviz.py
spond/hivtrace
6f06f7812c84f3e8f7a58b24782f01fee6997ef8
[ "MIT" ]
12
2015-07-10T23:07:04.000Z
2021-02-18T03:33:21.000Z
""" This module contains the command line interface for hivtrace. """ from __future__ import print_function import optparse import os import random import socket import sys import threading import webbrowser import tornado.ioloop import tornado.web import json try: from urllib.parse import quote_plus except Impor...
32.236686
141
0.618759
796366401b1da475ae5e63bba0f1905fcea14099
5,073
py
Python
onmt/utils/parse.py
brainsharks-fyp17/ZEST
036d5b92ebde6053ad789b95a257bda9db296926
[ "MIT" ]
7
2020-11-17T13:35:01.000Z
2021-10-21T08:45:51.000Z
onmt/utils/parse.py
brainsharks-fyp17/ZEST
036d5b92ebde6053ad789b95a257bda9db296926
[ "MIT" ]
4
2021-06-16T05:21:04.000Z
2021-09-01T12:45:47.000Z
onmt/utils/parse.py
brainsharks-fyp17/ZEST
036d5b92ebde6053ad789b95a257bda9db296926
[ "MIT" ]
1
2021-04-28T11:24:59.000Z
2021-04-28T11:24:59.000Z
"""Copyright 2021 Google LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at     https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dis...
38.431818
77
0.654051
7963694b7e6b5412af45ead7fd2ba22d12261eb2
4,905
py
Python
cassiopeia/core/patch.py
bangingheads/cassiopeia-1
becf9b0e4703b40d0cf1e279eeb7777c421b7f48
[ "MIT" ]
null
null
null
cassiopeia/core/patch.py
bangingheads/cassiopeia-1
becf9b0e4703b40d0cf1e279eeb7777c421b7f48
[ "MIT" ]
null
null
null
cassiopeia/core/patch.py
bangingheads/cassiopeia-1
becf9b0e4703b40d0cf1e279eeb7777c421b7f48
[ "MIT" ]
null
null
null
from typing import Union, Optional from functools import total_ordering from collections import defaultdict import arrow from itertools import tee from .. import configuration from ..dto.patch import PatchListDto try: import ujson as json except ImportError: import json from ..data import Region, Season de...
32.058824
154
0.597146
7963695727879129f2aa991c6859d0f4f78d0e6a
2,523
py
Python
rlcard/rllib_utils/examples/train_all.py
NiccoloSacchi/rlcard
046129e8616b12e25652957869a94ab5fd838ae1
[ "MIT" ]
null
null
null
rlcard/rllib_utils/examples/train_all.py
NiccoloSacchi/rlcard
046129e8616b12e25652957869a94ab5fd838ae1
[ "MIT" ]
null
null
null
rlcard/rllib_utils/examples/train_all.py
NiccoloSacchi/rlcard
046129e8616b12e25652957869a94ab5fd838ae1
[ "MIT" ]
1
2020-11-20T16:38:37.000Z
2020-11-20T16:38:37.000Z
from ray.rllib.agents.a3c.a3c_tf_policy import A3CTFPolicy from ray.rllib.agents.ppo.ppo_tf_policy import PPOTFPolicy from ray.rllib.agents.dqn.dqn_tf_policy import DQNTFPolicy from rlcard.rllib_utils.random_policy import RandomPolicy from rlcard.rllib_utils.trainer import RLTrainer # rlcard_env_id = 'blackjack' # rlc...
33.197368
124
0.573127
79636a2cd1bbe1558ec785598a80f6153f513eea
1,379
py
Python
tatk/dst/rule/camrest/state_tracker.py
yqzhangthu/tatk
4d27e89604a33f19f1c7b8fe5dc92d4ba6c6f10a
[ "Apache-2.0" ]
2
2020-09-05T13:12:44.000Z
2020-10-12T16:51:16.000Z
tatk/dst/rule/camrest/state_tracker.py
yqzhangthu/tatk
4d27e89604a33f19f1c7b8fe5dc92d4ba6c6f10a
[ "Apache-2.0" ]
null
null
null
tatk/dst/rule/camrest/state_tracker.py
yqzhangthu/tatk
4d27e89604a33f19f1c7b8fe5dc92d4ba6c6f10a
[ "Apache-2.0" ]
1
2019-11-25T15:34:33.000Z
2019-11-25T15:34:33.000Z
from tatk.dst.state_tracker import Tracker from tatk.util.camrest.state import default_state import copy class RuleDST(Tracker): """Rule based DST which trivially updates new values from NLU result to states. Attributes: state(dict): Dialog state. Function ``tatk.util.camrest.state.defaul...
37.27027
118
0.591008
79636a723248d788449f4005f5eb9de8c22e9e07
11,610
py
Python
ninja/router.py
eadwinCode/django-ninja
4033b70399f3f58db747fa1a41075488306accb7
[ "MIT" ]
2,809
2020-06-21T08:48:40.000Z
2022-03-30T16:42:11.000Z
ninja/router.py
eadwinCode/django-ninja
4033b70399f3f58db747fa1a41075488306accb7
[ "MIT" ]
311
2020-06-22T07:59:27.000Z
2022-03-31T18:01:23.000Z
ninja/router.py
eadwinCode/django-ninja
4033b70399f3f58db747fa1a41075488306accb7
[ "MIT" ]
178
2020-07-08T00:40:43.000Z
2022-03-29T02:05:20.000Z
from typing import ( TYPE_CHECKING, Any, Callable, Dict, Iterator, List, Optional, Tuple, cast, ) from django.urls import URLPattern, path as django_path from ninja.constants import NOT_SET from ninja.errors import ConfigError from ninja.operation import PathView from ninja.types i...
31.808219
110
0.556761
79636b9112be2056e5ee02a74e6f7e0a18f36883
5,869
py
Python
data/db/db.py
verejnedigital/verejne.digital
848e64c2baf7d741decba8ef8b8f6df0a531ec8a
[ "Apache-2.0" ]
27
2016-11-30T08:24:55.000Z
2020-02-13T14:38:37.000Z
data/db/db.py
verejnedigital/verejne.digital
848e64c2baf7d741decba8ef8b8f6df0a531ec8a
[ "Apache-2.0" ]
141
2016-12-28T16:50:43.000Z
2022-02-04T09:17:57.000Z
data/db/db.py
verejnedigital/verejne.digital
848e64c2baf7d741decba8ef8b8f6df0a531ec8a
[ "Apache-2.0" ]
7
2016-11-17T19:29:01.000Z
2020-05-04T21:59:52.000Z
import psycopg2 import psycopg2.extras from psycopg2.extensions import AsIs import utils psycopg2.extensions.register_type(psycopg2.extensions.UNICODE) psycopg2.extensions.register_type(psycopg2.extensions.UNICODEARRAY) # Register a customised adapter that returns Postgres decimal values # as Python floats rather th...
38.611842
89
0.596865
79636c0ab79549be17c002662f02019d83553ab9
1,056
py
Python
tools/perf/core/undocumented_benchmarks.py
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
14,668
2015-01-01T01:57:10.000Z
2022-03-31T23:33:32.000Z
tools/perf/core/undocumented_benchmarks.py
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
86
2015-10-21T13:02:42.000Z
2022-03-14T07:50:50.000Z
tools/perf/core/undocumented_benchmarks.py
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
5,941
2015-01-02T11:32:21.000Z
2022-03-31T16:35:46.000Z
# Copyright 2018 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. # This file contains the list of undocumented benchmarks. For new benchmarks, # please make sure that they are well-documented. The list of undocumented # be...
30.171429
77
0.719697
79636cb611d0bd0a36b8203d89b9d4d6fde812c7
37
py
Python
tests/__init__.py
allegheny-computer-science-203-s2021/PytestPlugin-Team7
6ea2ec6a5368313061f4553501dfc7f7ad207981
[ "MIT" ]
null
null
null
tests/__init__.py
allegheny-computer-science-203-s2021/PytestPlugin-Team7
6ea2ec6a5368313061f4553501dfc7f7ad207981
[ "MIT" ]
null
null
null
tests/__init__.py
allegheny-computer-science-203-s2021/PytestPlugin-Team7
6ea2ec6a5368313061f4553501dfc7f7ad207981
[ "MIT" ]
1
2021-05-21T01:37:44.000Z
2021-05-21T01:37:44.000Z
"""Empty file required by pylint."""
18.5
36
0.675676
79636cea9f3918671a8bae880989cc68fb735cbb
8,452
py
Python
homeassistant/components/homekit_controller/__init__.py
rbflurry/home-assistant
1f2bab8e67a5462c42369e8814f0218203f9b806
[ "Apache-2.0" ]
1
2021-05-31T18:39:08.000Z
2021-05-31T18:39:08.000Z
homeassistant/components/homekit_controller/__init__.py
rbflurry/home-assistant
1f2bab8e67a5462c42369e8814f0218203f9b806
[ "Apache-2.0" ]
null
null
null
homeassistant/components/homekit_controller/__init__.py
rbflurry/home-assistant
1f2bab8e67a5462c42369e8814f0218203f9b806
[ "Apache-2.0" ]
2
2019-01-21T05:49:23.000Z
2019-02-19T16:30:48.000Z
"""Support for Homekit device discovery.""" import logging from homeassistant.core import callback from homeassistant.helpers.entity import Entity from homeassistant.exceptions import ConfigEntryNotReady from homeassistant.helpers import device_registry as dr # We need an import from .config_flow, without it .config_...
35.070539
85
0.645173
79636d57278546328fe5f5a81596a2c3123e943c
4,996
py
Python
src/python/WMCore/DataStructs/Job.py
tslazarova/WMCore
a09e2aefe700fb9b0d12b9f7089b21bde5a5bd62
[ "Apache-2.0" ]
1
2015-02-05T13:43:46.000Z
2015-02-05T13:43:46.000Z
src/python/WMCore/DataStructs/Job.py
tslazarova/WMCore
a09e2aefe700fb9b0d12b9f7089b21bde5a5bd62
[ "Apache-2.0" ]
1
2016-10-13T14:57:35.000Z
2016-10-13T14:57:35.000Z
src/python/WMCore/DataStructs/Job.py
juztas/WMCore
f7e830a573d50fb1d7240797f18d809f994b934d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ _Job_ Data object that describes a job """ __all__ = [] from WMCore.DataStructs.Mask import Mask from WMCore.DataStructs.WMObject import WMObject from WMCore.Configuration import ConfigSection import time class Job(WMObject, dict): def __init__(self, name = None, files = None): ...
27.60221
79
0.558647
79636dae59776f83336b089f65c52f83e1ee9951
4,388
py
Python
sympy/physics/quantum/anticommutator.py
tesseralis/sympy
0c2f7e06b1a43d25ba93bac65e93f8d5f323be7a
[ "BSD-3-Clause" ]
1
2020-11-17T07:35:20.000Z
2020-11-17T07:35:20.000Z
sympy/physics/quantum/anticommutator.py
tesseralis/sympy
0c2f7e06b1a43d25ba93bac65e93f8d5f323be7a
[ "BSD-3-Clause" ]
null
null
null
sympy/physics/quantum/anticommutator.py
tesseralis/sympy
0c2f7e06b1a43d25ba93bac65e93f8d5f323be7a
[ "BSD-3-Clause" ]
null
null
null
"""The anti-commutator: ``{A,B} = A*B + B*A``.""" from sympy import S, Expr, Mul, Integer from sympy.printing.pretty.stringpict import prettyForm from sympy.physics.quantum.operator import Operator from sympy.physics.quantum.dagger import Dagger __all__ = [ 'AntiCommutator' ] #----------------------------------...
30.262069
95
0.557429
79636e5f60f0a1bc42efa51011d5f7a7d6a5f2d9
1,026
py
Python
src/hepqpr/qallse/seeding/config.py
masamuch/hepqpr-qallse
0b39f8531c6f3c758b94c31f4633f75dcfeb67ad
[ "Apache-2.0" ]
17
2019-01-29T00:38:39.000Z
2022-03-07T08:38:06.000Z
src/hepqpr/qallse/seeding/config.py
masamuch/hepqpr-qallse
0b39f8531c6f3c758b94c31f4633f75dcfeb67ad
[ "Apache-2.0" ]
1
2020-05-13T21:40:32.000Z
2020-05-13T21:40:32.000Z
src/hepqpr/qallse/seeding/config.py
psreid/hepqpr-qallse
46f5b36240689720d704850fbe594eb22b281ab4
[ "Apache-2.0" ]
15
2019-01-28T18:18:44.000Z
2021-12-20T05:40:56.000Z
import numpy as np class SeedingConfig: def __init__(self, nLayers=10): self.nLayers = nLayers self.nPhiSlices = 53 self.zTolerance = 3.0 self.maxEta = 2.7 self.maxDoubletLength = 300.0 # 200.0 # LL: longer, since we added a volume ! self.minDoubletLength = 10.0 ...
33.096774
90
0.638402
79636e813722d62fd2ff89f8d70475fed93d2f5b
290
py
Python
leetcode/easy/reverse-integer.py
nandi323/learning_python_interview
007fb66567129ab5635b11a0358a2ae31f1eefc0
[ "MIT" ]
null
null
null
leetcode/easy/reverse-integer.py
nandi323/learning_python_interview
007fb66567129ab5635b11a0358a2ae31f1eefc0
[ "MIT" ]
null
null
null
leetcode/easy/reverse-integer.py
nandi323/learning_python_interview
007fb66567129ab5635b11a0358a2ae31f1eefc0
[ "MIT" ]
null
null
null
# https://leetcode.com/problems/reverse-integer/ class Solution: def reverse(self, x: int) -> int: if int(str(abs(x))[::-1]) > 2 ** 31 - 1: return 0 if x > 0: return int(str(x)[::-1]) else: return -1 * int(str(abs(x))[::-1])
26.363636
48
0.468966
79636f2f9f95fc0410c1901459aa31d4627e2a4b
1,601
py
Python
arithmetic_analysis/bisection.py
guerlielton-campos/Python
9b0842c3ca6ce31be8219154984390d78a43ce41
[ "MIT" ]
null
null
null
arithmetic_analysis/bisection.py
guerlielton-campos/Python
9b0842c3ca6ce31be8219154984390d78a43ce41
[ "MIT" ]
null
null
null
arithmetic_analysis/bisection.py
guerlielton-campos/Python
9b0842c3ca6ce31be8219154984390d78a43ce41
[ "MIT" ]
null
null
null
from typing import Callable def bisection(function: Callable[[float], float], a: float, b: float) -> float: """ finds where function becomes 0 in [a,b] using bolzano >>> bisection(lambda x: x ** 3 - 1, -5, 5) 1.0000000149011612 >>> bisection(lambda x: x ** 3 - 1, 2, 1000) Traceback (most recen...
29.648148
79
0.545909
79636f57cca60070247c80bfac39260fb44fc4ad
782
py
Python
backend/models.py
sdairs/vue3-fastapi-oath2-jwt-demo
e5a54541757975f7c11e7fe4d620bdd51c7f7af9
[ "Apache-2.0" ]
4
2021-08-14T15:05:37.000Z
2021-12-02T01:24:05.000Z
backend/models.py
sdairs/vue3-fastapi-oath2-jwt-demo
e5a54541757975f7c11e7fe4d620bdd51c7f7af9
[ "Apache-2.0" ]
1
2021-08-15T14:09:26.000Z
2021-08-15T14:09:26.000Z
backend/models.py
sdairs/vue3-fastapi-oath2-jwt-demo
e5a54541757975f7c11e7fe4d620bdd51c7f7af9
[ "Apache-2.0" ]
null
null
null
from typing import Optional from pydantic import BaseModel from sqlalchemy import (Column, PrimaryKeyConstraint, String) from sqlalchemy.ext.declarative import declarative_base Base = declarative_base() # User Accounts class UserModel(BaseModel): username: str class Config: orm_mode = True class Us...
21.722222
95
0.725064
79636fab2195a59c622a3a2b1de0932f63ef3b09
284
py
Python
setup.py
JoshuaPostel/deco
ba5059d14cd9c6f63b1fb0b0ae588b428ab11a28
[ "MIT" ]
null
null
null
setup.py
JoshuaPostel/deco
ba5059d14cd9c6f63b1fb0b0ae588b428ab11a28
[ "MIT" ]
null
null
null
setup.py
JoshuaPostel/deco
ba5059d14cd9c6f63b1fb0b0ae588b428ab11a28
[ "MIT" ]
null
null
null
#!/usr/bin/env python from distutils.core import setup setup( name = "deco", version = "0.5.2", description = "A decorator for concurrency", packages = ["deco"], author='Alex Sherman', author_email='asherman1024@gmail.com', url='https://github.com/alex-sherman/deco')
21.846154
46
0.683099
7963714c09c622b08b8bcdf65cf66f6dd3dd89e0
4,802
py
Python
Configuration/DataProcessing/python/Utils.py
NTrevisani/cmssw
a212a27526f34eb9507cf8b875c93896e6544781
[ "Apache-2.0" ]
3
2018-08-24T19:10:26.000Z
2019-02-19T11:45:32.000Z
Configuration/DataProcessing/python/Utils.py
NTrevisani/cmssw
a212a27526f34eb9507cf8b875c93896e6544781
[ "Apache-2.0" ]
8
2020-03-20T23:18:36.000Z
2020-05-27T11:00:06.000Z
Configuration/DataProcessing/python/Utils.py
NTrevisani/cmssw
a212a27526f34eb9507cf8b875c93896e6544781
[ "Apache-2.0" ]
5
2018-08-21T16:37:52.000Z
2020-01-09T13:33:17.000Z
#!/usr/bin/env python """ _Utils_ Module containing some utility tools """ def stepALCAPRODUCER(skims): """ _stepALCAPRODUCER_ Creates and returns the configuration string for the ALCAPRODUCER step starting from the list of AlcaReco path to be run. """ step = '' if len(skims) >0: ...
33.816901
115
0.619534
796371a659b9d5970c4c6977c08d8247ef55589d
12,345
py
Python
warehouse/sessions.py
bhrutledge/warehouse
93deda17e67bf10a31223779d8f79d66393da99b
[ "Apache-2.0" ]
1
2020-08-04T15:30:17.000Z
2020-08-04T15:30:17.000Z
warehouse/sessions.py
baby636/warehouse
8daea6268a4b2226708b089085736ad97857206d
[ "Apache-2.0" ]
2
2021-03-31T20:06:37.000Z
2021-12-13T20:51:44.000Z
warehouse/sessions.py
KOSASIH/warehouse
44df5fd5097db5462b78c8232e4564cf3e6f99fa
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the Li...
34.008264
87
0.653463
79637218f2a7003e88f0d21534029e175f1e7e95
2,747
py
Python
l2tdevtools/download_helpers/interface.py
log2timeline/l2tdevtools
6f328a0fe72f243ff6e454397ea405c65bae9424
[ "Apache-2.0" ]
6
2015-08-07T12:53:10.000Z
2022-02-18T02:59:51.000Z
l2tdevtools/download_helpers/interface.py
log2timeline/l2tdevtools
6f328a0fe72f243ff6e454397ea405c65bae9424
[ "Apache-2.0" ]
700
2015-02-23T06:55:06.000Z
2022-03-12T16:43:50.000Z
l2tdevtools/download_helpers/interface.py
log2timeline/l2tdevtools
6f328a0fe72f243ff6e454397ea405c65bae9424
[ "Apache-2.0" ]
21
2015-03-28T10:29:23.000Z
2021-08-12T04:56:18.000Z
# -*- coding: utf-8 -*- """Download helper object implementations.""" import logging import os import urllib.error as urllib_error import urllib.request as urllib_request class DownloadHelper(object): """Helps in downloading files and web content.""" def __init__(self, download_url): """Initializes a downl...
28.614583
75
0.657444
7963733ba02fb5395378bdb025e8ec9f903ccd58
10,034
py
Python
LassyExtraction/mill/nets.py
prednaz/lassy-tlg-extraction
1fa0e7cc76b4f1c21662c4b0a6b799bfd9df0bf7
[ "MIT" ]
null
null
null
LassyExtraction/mill/nets.py
prednaz/lassy-tlg-extraction
1fa0e7cc76b4f1c21662c4b0a6b799bfd9df0bf7
[ "MIT" ]
null
null
null
LassyExtraction/mill/nets.py
prednaz/lassy-tlg-extraction
1fa0e7cc76b4f1c21662c4b0a6b799bfd9df0bf7
[ "MIT" ]
null
null
null
import pdb from .types import Type, Atom, Functor, Box, Diamond, Proof, T from typing import NamedTuple class Leaf(NamedTuple): atom: Atom polarity: bool index: int def __repr__(self) -> str: return f'{self.atom}({"+" if self.polarity else "-"},{self.index})' class Unary(NamedTuple): p...
48.240385
120
0.633446
79637401ae7570b799f7dd7be8252a6cae92cd25
348
py
Python
Validation/Configuration/python/globalValidationCosmics_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
Validation/Configuration/python/globalValidationCosmics_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
Validation/Configuration/python/globalValidationCosmics_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms from SimGeneral.TrackingAnalysis.simHitTPAssociation_cfi import * from Validation.RecoMuon.muonValidation_cff import * # filter/producer "pre-" sequence for globalValidation globalPrevalidationCosmics = cms.Sequence(simHitTPAssocProducer) globalValidationCosmics = cms.Sequenc...
34.8
65
0.862069
796375d6eb619357b98867d8918ffff3924b6a34
437
py
Python
Exams/15.11.2020/Solutions/Mueem/Exam1/Task3.py
Virtual-Uni/Discover-Python
a5180ac71a2c9cf191126428cf4cfeb1239131fb
[ "Apache-2.0" ]
3
2020-10-25T20:59:03.000Z
2020-10-30T13:28:10.000Z
Exams/15.11.2020/Solutions/Mueem/Exam1/Task3.py
Virtual-Uni/Discover-Python
a5180ac71a2c9cf191126428cf4cfeb1239131fb
[ "Apache-2.0" ]
null
null
null
Exams/15.11.2020/Solutions/Mueem/Exam1/Task3.py
Virtual-Uni/Discover-Python
a5180ac71a2c9cf191126428cf4cfeb1239131fb
[ "Apache-2.0" ]
6
2020-10-25T18:29:03.000Z
2020-10-30T13:33:23.000Z
""" 3. Task: Given a number, n, write a program that for all non-negative integers i < n, print * in separate line. """ input_value = int(input('Enter a positive number = ')) if 1<=input_value<=50: if input_value == 0: print('please enter a positive number, not 0 ') for i in range(0, input_value): ...
21.85
96
0.583524
796375d7ecf1185078fc5c0b75c98a7c0eff9a83
301
py
Python
tests/in_memory/test_store.py
estudio89/maestro-python
331079cb3f0c10de2e19210cbade793544510f33
[ "BSD-3-Clause" ]
null
null
null
tests/in_memory/test_store.py
estudio89/maestro-python
331079cb3f0c10de2e19210cbade793544510f33
[ "BSD-3-Clause" ]
null
null
null
tests/in_memory/test_store.py
estudio89/maestro-python
331079cb3f0c10de2e19210cbade793544510f33
[ "BSD-3-Clause" ]
null
null
null
import tests.base_store import tests.in_memory.base class InMemoryStoreTest( tests.in_memory.base.InMemoryBackendTestMixin, tests.base_store.BaseStoreTest ): pass class InMemoryQueriesTest( tests.in_memory.base.InMemoryBackendTestMixin, tests.base_store.BaseQueriesTest, ): pass
21.5
81
0.800664
7963766854057116c8945fe558c509b57b914846
70
py
Python
anonymizer/cropping/__init__.py
ArihantChawla/indian-alpr
531dd815f0a5c819b411fd156aabca960d72b7b6
[ "Apache-2.0" ]
null
null
null
anonymizer/cropping/__init__.py
ArihantChawla/indian-alpr
531dd815f0a5c819b411fd156aabca960d72b7b6
[ "Apache-2.0" ]
null
null
null
anonymizer/cropping/__init__.py
ArihantChawla/indian-alpr
531dd815f0a5c819b411fd156aabca960d72b7b6
[ "Apache-2.0" ]
null
null
null
from anonymizer.cropping.cropper import Cropper __all__ = ['Cropper']
23.333333
47
0.8
796376a8c985919c8729a2e025160cc2a2c52e6e
16,203
py
Python
sdks/python/apache_beam/typehints/trivial_inference.py
a-satyateja/beam
30a04b912979adf5f316cc8ace334d921ca71838
[ "Apache-2.0" ]
null
null
null
sdks/python/apache_beam/typehints/trivial_inference.py
a-satyateja/beam
30a04b912979adf5f316cc8ace334d921ca71838
[ "Apache-2.0" ]
null
null
null
sdks/python/apache_beam/typehints/trivial_inference.py
a-satyateja/beam
30a04b912979adf5f316cc8ace334d921ca71838
[ "Apache-2.0" ]
1
2019-10-26T12:26:16.000Z
2019-10-26T12:26:16.000Z
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
30.342697
80
0.630254
796376f041870290af73c0e8bd77e98f5b42d973
4,033
py
Python
PS03/validator.py
lawlietge/newanly502
9cb8a90c3ed697502ad87be891e59a97bc66bbcf
[ "CC0-1.0" ]
2
2019-12-18T17:05:12.000Z
2019-12-18T17:05:21.000Z
PS03/validator.py
jbrambleDC/PS04
f8f8923c1879bb6cba5caf5845ae6c8b239b84e8
[ "CC0-1.0" ]
null
null
null
PS03/validator.py
jbrambleDC/PS04
f8f8923c1879bb6cba5caf5845ae6c8b239b84e8
[ "CC0-1.0" ]
2
2019-09-23T05:32:32.000Z
2021-04-30T15:28:58.000Z
#!/usr/bin/env python # # validate and build a student submission # Must run in Python 2.6 because of Cloudera Quickstart VM import sys,zipfile,os,os.path PS="PS03" required_files = "answers.txt wordcount_top10.py wordcount_top10.txt guanly502_gutenberg_ls.txt guanly502_gutenberg_top10.txt join1.py join1.txt join2.p...
30.097015
345
0.614183
796378f4cf5bb4b44f05276a09332775702c0494
6,651
py
Python
google/cloud/securitycenter/settings/v1beta1/securitycenter-settings-v1beta1-py/scripts/fixup_settings_v1beta1_keywords.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
7
2021-02-21T10:39:41.000Z
2021-12-07T07:31:28.000Z
google/cloud/securitycenter/settings/v1beta1/securitycenter-settings-v1beta1-py/scripts/fixup_settings_v1beta1_keywords.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
6
2021-02-02T23:46:11.000Z
2021-11-15T01:46:02.000Z
google/cloud/securitycenter/settings/v1beta1/securitycenter-settings-v1beta1-py/scripts/fixup_settings_v1beta1_keywords.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
4
2021-01-28T23:25:45.000Z
2021-08-30T01:55:16.000Z
#! /usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
35.190476
88
0.626973
796379261e5d80688abb2b5f90a57488b8de0332
2,987
py
Python
backend/telegram/models/analyzers/admin_log_analyzer.py
appheap/social-media-analyzer
0f9da098bfb0b4f9eb38e0244aa3a168cf97d51c
[ "Apache-2.0" ]
5
2021-09-11T22:01:15.000Z
2022-03-16T21:33:42.000Z
backend/telegram/models/analyzers/admin_log_analyzer.py
iamatlasss/social-media-analyzer
429d1d2bbd8bfce80c50c5f8edda58f87ace668d
[ "Apache-2.0" ]
null
null
null
backend/telegram/models/analyzers/admin_log_analyzer.py
iamatlasss/social-media-analyzer
429d1d2bbd8bfce80c50c5f8edda58f87ace668d
[ "Apache-2.0" ]
3
2022-01-18T11:06:22.000Z
2022-02-26T13:39:28.000Z
from typing import Optional from django.db import models, DatabaseError from ..base import BaseModel from core.globals import logger from telegram import models as tg_models class AdminLogAnalyzerMetaDataQuerySet(models.QuerySet): def update_or_create_analyzer(self, *, defaults: dict, **kwargs) -> Optional['Adm...
30.479592
109
0.619351
79637961e9e27f6105d35474f1aa4772ba223017
1,556
py
Python
world.py
Kunalmighty/BlueJaysGame
76936cea8a57542bf7ea3d546f851f9f9771931f
[ "MIT" ]
null
null
null
world.py
Kunalmighty/BlueJaysGame
76936cea8a57542bf7ea3d546f851f9f9771931f
[ "MIT" ]
null
null
null
world.py
Kunalmighty/BlueJaysGame
76936cea8a57542bf7ea3d546f851f9f9771931f
[ "MIT" ]
null
null
null
"""World module""" import globes import pygame class World(object): """World class - background tiles""" def __init__(self, filename): self.map = [] # array that stores tile layout from_file = open(filename) # file with tile layout for line in from_file: self.map.append...
38.9
77
0.587404
796379856b50848ac87e1e6a58a7f0fcd74031a4
4,360
py
Python
HiC_count_bin_linkages_v2.4.py
elifesciences-publications/Stadlerlab-hi-c
95e304bf8cb2cd606f52f94bb6369fef4f16f73a
[ "MIT" ]
null
null
null
HiC_count_bin_linkages_v2.4.py
elifesciences-publications/Stadlerlab-hi-c
95e304bf8cb2cd606f52f94bb6369fef4f16f73a
[ "MIT" ]
null
null
null
HiC_count_bin_linkages_v2.4.py
elifesciences-publications/Stadlerlab-hi-c
95e304bf8cb2cd606f52f94bb6369fef4f16f73a
[ "MIT" ]
null
null
null
""" This script takes a paired alignment file and, assigns each end to a bin (some chunk of a chromosome defined by supplied bin size), and then prints out a matrix of bins vs. bins for all chromosomes. Some programming notes to check for: handling double counting of diagonal. v2: does bin counting for each ...
30.068966
106
0.663761
796379a6a0c94aaf416827170754ff952aa53ffe
443
py
Python
network-5-1Test-echoers.py
schlesg/RedisBenchmark
e21b84967548f85785dc693c55ce1652de25eb70
[ "MIT" ]
null
null
null
network-5-1Test-echoers.py
schlesg/RedisBenchmark
e21b84967548f85785dc693c55ce1652de25eb70
[ "MIT" ]
null
null
null
network-5-1Test-echoers.py
schlesg/RedisBenchmark
e21b84967548f85785dc693c55ce1652de25eb70
[ "MIT" ]
null
null
null
import subprocess import os # print(os.getcwd()) # os.chdir("build/") commandList = [] commandList.append("./Echoer --redisIP 192.168.1.102") # commandList.append("./initiator --SubTopic C5 --PubTopic MS1 --msgLength 5000 --roundtripCount 1000") #C5 for command in commandList: subprocess.Popen(command.split(), ...
23.315789
107
0.711061
79637acd9c7f65e5ddb19ca6d4927c21b9ba0a4a
2,875
py
Python
log2txt.py
scubastation/log2txt
aedce47bc84bd2883abcb220550cfc47a062180f
[ "MIT" ]
1
2022-02-19T15:54:48.000Z
2022-02-19T15:54:48.000Z
log2txt.py
scubastation/log2txt
aedce47bc84bd2883abcb220550cfc47a062180f
[ "MIT" ]
2
2022-02-19T16:08:05.000Z
2022-02-19T16:08:43.000Z
log2txt.py
scubastation/log2txt
aedce47bc84bd2883abcb220550cfc47a062180f
[ "MIT" ]
null
null
null
import xml.etree.cElementTree as ET #Modul für den XML-Parser count = 0 #Zähler für den Statistikblock 0 = Schreiben, 1 = Lesen def write_mit_umbruch(text, umbruch = 84): ''' Funktion bricht den 'text' nach 'umbruch' Zeichen um ''' anzahl_zeilen = int(len(text) / umbruch)+1 #prüft auf wi...
45.634921
141
0.594783
79637bb7675991c8b811207c3354cff5d580d974
9,837
py
Python
mne/gui/tests/test_gui_api.py
dtxe/mne-python
419b9e2d0825d4660b39200391ed1ad9b8e1b892
[ "BSD-3-Clause" ]
null
null
null
mne/gui/tests/test_gui_api.py
dtxe/mne-python
419b9e2d0825d4660b39200391ed1ad9b8e1b892
[ "BSD-3-Clause" ]
null
null
null
mne/gui/tests/test_gui_api.py
dtxe/mne-python
419b9e2d0825d4660b39200391ed1ad9b8e1b892
[ "BSD-3-Clause" ]
null
null
null
# Authors: Guillaume Favelier <guillaume.favelier@gmail.com> # # License: Simplified BSD import sys import pytest from mne.utils import _check_qt_version # This will skip all tests in this scope pytestmark = pytest.mark.skipif( sys.platform.startswith('win'), reason='nbexec does not work on Windows') def test_...
26.586486
77
0.590526
79637c837cd6747cfad2c4ead7053d3999536268
13,791
py
Python
recipes/recipe_modules/tryserver/api.py
augushong/depot_tools
a39e2d318b04122c783a6b6e30ae90e9a04e7929
[ "BSD-3-Clause" ]
4
2022-03-21T15:21:13.000Z
2022-03-23T16:31:20.000Z
recipes/recipe_modules/tryserver/api.py
augushong/depot_tools
a39e2d318b04122c783a6b6e30ae90e9a04e7929
[ "BSD-3-Clause" ]
null
null
null
recipes/recipe_modules/tryserver/api.py
augushong/depot_tools
a39e2d318b04122c783a6b6e30ae90e9a04e7929
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2014 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. import contextlib import hashlib from recipe_engine import recipe_api class Constants: def __init__(self): self.NONTRIVIAL_ROLL_FOOTER = 'Recipe-Non...
34.56391
87
0.695454
79637da42e274c59150885be9911217236a1eca2
745
py
Python
test/experiment_db_init_test.py
goncaloperes/bayesmark
8c420e935718f0d6867153b781e58943ecaf2338
[ "Apache-2.0" ]
102
2019-09-27T02:38:52.000Z
2022-03-12T13:31:11.000Z
test/experiment_db_init_test.py
goncaloperes/bayesmark
8c420e935718f0d6867153b781e58943ecaf2338
[ "Apache-2.0" ]
17
2019-10-07T18:20:21.000Z
2022-01-03T08:19:16.000Z
test/experiment_db_init_test.py
goncaloperes/bayesmark
8c420e935718f0d6867153b781e58943ecaf2338
[ "Apache-2.0" ]
34
2019-09-27T02:38:31.000Z
2022-02-09T21:32:25.000Z
# Copyright (c) 2019 Uber Technologies, 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...
37.25
74
0.758389
79637efc99d8fa065165fc51ab31cb748231c9a9
2,275
py
Python
src/auth_server/server.py
wait-how/bluefoot
c801d016f987680f9cdced6e2ec6833d4c4342b5
[ "MIT" ]
1
2022-02-15T17:53:22.000Z
2022-02-15T17:53:22.000Z
src/auth_server/server.py
wait-how/bluefoot
c801d016f987680f9cdced6e2ec6833d4c4342b5
[ "MIT" ]
3
2022-02-15T00:16:58.000Z
2022-02-28T17:38:50.000Z
src/auth_server/server.py
wait-how/bluefoot
c801d016f987680f9cdced6e2ec6833d4c4342b5
[ "MIT" ]
5
2022-02-03T18:36:49.000Z
2022-02-22T18:01:21.000Z
#!/usr/bin/env python3 # Echo server program import socket def get_ip_address(): """ Returns the local IP address of the machine. Works on Linux (unlike some stackoverflow answers...) """ s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) s.connect(("8.8.8.8", 80)) # ping google return s.ge...
30.743243
126
0.590769
79637f014b1c7b8240d4d7df7f60389731fda1a3
4,052
py
Python
scripts/api/example_watch_folder.py
lawrence14701/galaxy
7eb2fcb708e7b63e17800c87613ddfa5497c0654
[ "CC-BY-3.0" ]
4
2018-10-29T18:34:38.000Z
2021-09-29T23:30:42.000Z
scripts/api/example_watch_folder.py
lawrence14701/galaxy
7eb2fcb708e7b63e17800c87613ddfa5497c0654
[ "CC-BY-3.0" ]
30
2016-10-20T15:35:12.000Z
2018-10-02T15:59:54.000Z
scripts/api/example_watch_folder.py
lawrence14701/galaxy
7eb2fcb708e7b63e17800c87613ddfa5497c0654
[ "CC-BY-3.0" ]
7
2016-11-03T19:11:01.000Z
2020-05-11T14:23:52.000Z
#!/usr/bin/env python """ Simple example script that watches a folder for new files, imports that data to a data library, and then execute a workflow on it, creating a new history for each workflow invocation. This assumes a workflow with only one input, though it could be adapted to many. Sample call: python example...
44.043478
118
0.599457
7963804ce30ed6dfdd046a4c0a760e301ab2f4b9
18,412
py
Python
aioregistry/client.py
msg555/aioregistry
6227b2b31e5272bfce1f2873b97770abc6001c9b
[ "BSD-3-Clause" ]
null
null
null
aioregistry/client.py
msg555/aioregistry
6227b2b31e5272bfce1f2873b97770abc6001c9b
[ "BSD-3-Clause" ]
null
null
null
aioregistry/client.py
msg555/aioregistry
6227b2b31e5272bfce1f2873b97770abc6001c9b
[ "BSD-3-Clause" ]
null
null
null
""" Module implementing a client for the v2 docker registry API. See https://docs.docker.com/registry/spec/api/ """ import asyncio import hashlib import json import logging import ssl import urllib.parse from typing import AsyncIterable, Dict, List, Optional, Tuple, Union import aiohttp from .auth import CredentialS...
37.57551
99
0.547143
796380677d93f03b5fcb7dbc4242d86ae788d613
588
py
Python
pinakes/main/migrations/0051_progressmessage_message_params.py
Alex-Izquierdo/pinakes
dfeb855662b47d29a6e976e87fd7c090a262cf3f
[ "Apache-2.0" ]
2
2022-03-17T18:53:58.000Z
2022-03-17T22:04:22.000Z
pinakes/main/migrations/0051_progressmessage_message_params.py
Alex-Izquierdo/pinakes
dfeb855662b47d29a6e976e87fd7c090a262cf3f
[ "Apache-2.0" ]
9
2022-03-18T08:22:57.000Z
2022-03-30T17:14:49.000Z
pinakes/main/migrations/0051_progressmessage_message_params.py
Alex-Izquierdo/pinakes
dfeb855662b47d29a6e976e87fd7c090a262cf3f
[ "Apache-2.0" ]
7
2022-03-17T22:03:08.000Z
2022-03-28T21:28:34.000Z
# Generated by Django 3.2.5 on 2022-05-26 20:37 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ( "main", "0050_remove_notificationtype_main_notificationtype_n_type_\ unique_and_more", ), ] operations = [ m...
22.615385
75
0.576531
7963809367b4ad3783e97513ba04b73f02837df2
8,058
py
Python
nirvana/tests/test_manga.py
kbwestfall/BarFit
e0f91d1813655c0aa9af77ccca32a85c5a9cfdc1
[ "BSD-3-Clause" ]
null
null
null
nirvana/tests/test_manga.py
kbwestfall/BarFit
e0f91d1813655c0aa9af77ccca32a85c5a9cfdc1
[ "BSD-3-Clause" ]
null
null
null
nirvana/tests/test_manga.py
kbwestfall/BarFit
e0f91d1813655c0aa9af77ccca32a85c5a9cfdc1
[ "BSD-3-Clause" ]
null
null
null
from IPython import embed import numpy from astropy.io import fits from scipy import signal from astropy import convolution from nirvana.data import manga from nirvana.data import util from nirvana.tests.util import remote_data_file, requires_remote from nirvana.tests.util import drp_test_version, dap_test_daptype...
37.830986
94
0.697071
796380dcacd5481067962af72e090f055591d1f5
2,168
py
Python
contrib/gnu/gdb/dist/gdb/testsuite/gdb.perf/gmonster-print-cerr.py
TheSledgeHammer/2.11BSD
fe61f0b9aaa273783cd027c7b5ec77e95ead2153
[ "BSD-3-Clause" ]
3
2021-05-04T17:09:06.000Z
2021-10-04T07:19:26.000Z
contrib/gnu/gdb/dist/gdb/testsuite/gdb.perf/gmonster-print-cerr.py
TheSledgeHammer/2.11BSD
fe61f0b9aaa273783cd027c7b5ec77e95ead2153
[ "BSD-3-Clause" ]
null
null
null
contrib/gnu/gdb/dist/gdb/testsuite/gdb.perf/gmonster-print-cerr.py
TheSledgeHammer/2.11BSD
fe61f0b9aaa273783cd027c7b5ec77e95ead2153
[ "BSD-3-Clause" ]
null
null
null
# Copyright (C) 2015-2020 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # This progr...
40.90566
76
0.694188
7963826c9bb6da92ec36cacb1310c45278220202
16,376
py
Python
plaso/parsers/manager.py
ir4n6/plaso
010f9cbdfc82e21ed6658657fd09a7b44115c464
[ "Apache-2.0" ]
null
null
null
plaso/parsers/manager.py
ir4n6/plaso
010f9cbdfc82e21ed6658657fd09a7b44115c464
[ "Apache-2.0" ]
null
null
null
plaso/parsers/manager.py
ir4n6/plaso
010f9cbdfc82e21ed6658657fd09a7b44115c464
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """The parsers and plugins manager.""" from __future__ import unicode_literals import logging import pysigscan from plaso.lib import definitions from plaso.lib import specification from plaso.parsers import presets class ParsersManager(object): """Class that implements the parsers and pl...
33.764948
80
0.705484
796383641758a853b07a95eb2599453064559168
8,988
py
Python
src/network.py
areeh/dual-path-rnn
3aaff44255744b8930bbc5f3eca3e7a49d0e711e
[ "MIT" ]
null
null
null
src/network.py
areeh/dual-path-rnn
3aaff44255744b8930bbc5f3eca3e7a49d0e711e
[ "MIT" ]
null
null
null
src/network.py
areeh/dual-path-rnn
3aaff44255744b8930bbc5f3eca3e7a49d0e711e
[ "MIT" ]
null
null
null
from __future__ import annotations import attr import tensorflow as tf from tensorflow import keras # This file hold implementation of the overall network structure as a keras model # including the DPRNN blocks as part of this structure. @attr.s(auto_attribs=True) class DprnnBlock(keras.layers.Layer): num_outpu...
35.385827
100
0.618046
796383957c6a7cfdb05ee4fa8d2d69466b6253d3
3,796
py
Python
catalyst/utils/simfactory.py
guilhermeprokisch/catalyst
21e096b261912d9e905584178d6ee626072c23cb
[ "Apache-2.0" ]
null
null
null
catalyst/utils/simfactory.py
guilhermeprokisch/catalyst
21e096b261912d9e905584178d6ee626072c23cb
[ "Apache-2.0" ]
null
null
null
catalyst/utils/simfactory.py
guilhermeprokisch/catalyst
21e096b261912d9e905584178d6ee626072c23cb
[ "Apache-2.0" ]
null
null
null
import catalyst.utils.factory as factory from catalyst.testing.core import create_data_portal_from_trade_history from catalyst.test_algorithms import TestAlgorithm from catalyst.utils.calendars import get_calendar def create_test_catalyst(**config): """ :param config: A configuration object that ...
36.152381
79
0.575606
7963851a2a210820fc01ff1cbc74b39be5d992e7
1,769
py
Python
model/SSIM_loss.py
zaky-fetoh/MNIST-BayesianConvAutoEncoder
3c483122f93165d664415f156bac5211adb40e22
[ "MIT" ]
null
null
null
model/SSIM_loss.py
zaky-fetoh/MNIST-BayesianConvAutoEncoder
3c483122f93165d664415f156bac5211adb40e22
[ "MIT" ]
null
null
null
model/SSIM_loss.py
zaky-fetoh/MNIST-BayesianConvAutoEncoder
3c483122f93165d664415f156bac5211adb40e22
[ "MIT" ]
null
null
null
import torch import torch.nn.functional as F from torch.autograd import Variable import numpy as np from math import exp def gaussian(window_size, sigma): gauss = torch.Tensor([exp(-(x - window_size // 2) ** 2 / float(2 * sigma ** 2)) for x in range(window_size)]) return gauss / gauss.sum() def create_windo...
34.686275
114
0.672131
796387c133683e955fa703635df901f7d3cd034e
17,648
py
Python
asnets/asnets/state_reprs.py
xf1590281/ASNets
5f4b29fb62a5e72004b813228442d06246c9ec33
[ "MIT" ]
21
2017-12-05T13:27:36.000Z
2021-11-16T20:32:33.000Z
asnets/asnets/state_reprs.py
xf1590281/ASNets
5f4b29fb62a5e72004b813228442d06246c9ec33
[ "MIT" ]
2
2018-07-16T12:15:46.000Z
2020-10-31T00:02:49.000Z
asnets/asnets/state_reprs.py
xf1590281/ASNets
5f4b29fb62a5e72004b813228442d06246c9ec33
[ "MIT" ]
7
2018-03-19T13:45:13.000Z
2022-03-24T07:52:20.000Z
"""Interface code for rllab. Mainly handles interaction with mdpsim & hard things like action masking.""" from warnings import warn import numpy as np from asnets.prob_dom_meta import BoundProp, BoundAction from asnets.py_utils import strip_parens class CanonicalState(object): """The ASNet code uses a lot of s...
42.834951
79
0.582276
796388711bffe62a0d9640be6842149e068a3e60
227
py
Python
Xianyang_vmd/projects/plot_pacf.py
zjy8006/MonthlyRunoffForecastByAutoReg
661fcb5dcdfbbb2ec6861e1668a035b50e69f7c2
[ "MIT" ]
2
2020-05-18T06:45:04.000Z
2021-05-18T06:38:23.000Z
Xianyang_vmd/projects/plot_pacf.py
zjy8006/MonthlyRunoffForecastByAutoReg
661fcb5dcdfbbb2ec6861e1668a035b50e69f7c2
[ "MIT" ]
null
null
null
Xianyang_vmd/projects/plot_pacf.py
zjy8006/MonthlyRunoffForecastByAutoReg
661fcb5dcdfbbb2ec6861e1668a035b50e69f7c2
[ "MIT" ]
1
2020-01-17T02:56:18.000Z
2020-01-17T02:56:18.000Z
import os root_path = os.path.dirname(os.path.abspath('__file__')) import sys sys.path.append(root_path) from tools.plot_utils import plot_pacf plot_pacf( station='Xianyang', decomposer='VMD', wavelet_level=None, )
20.636364
56
0.748899
79638886364a11e0e60683a4030cc53b0f53bd9e
13,044
py
Python
OracleWebLogic/samples/12212-domain-online-config/container-scripts/jms-config.py
simon-meng-cn/docker-images
316d5e26b3e10217e43128895dd248894c66dcb2
[ "UPL-1.0" ]
5,519
2015-01-23T15:07:05.000Z
2022-03-31T12:12:19.000Z
OracleWebLogic/samples/12212-domain-online-config/container-scripts/jms-config.py
simon-meng-cn/docker-images
316d5e26b3e10217e43128895dd248894c66dcb2
[ "UPL-1.0" ]
1,492
2015-01-26T05:31:35.000Z
2022-03-31T21:16:34.000Z
OracleWebLogic/samples/12212-domain-online-config/container-scripts/jms-config.py
simon-meng-cn/docker-images
316d5e26b3e10217e43128895dd248894c66dcb2
[ "UPL-1.0" ]
5,850
2015-01-22T01:40:51.000Z
2022-03-31T12:12:19.000Z
from java.io import FileInputStream import java.lang import os import string propInputStream = FileInputStream("/u01/oracle/jms-config.properties") configProps = Properties() configProps.load(propInputStream) #Read Properties ############################## # 1 - Connecting details - read from system arguments ######...
32.287129
167
0.723091
79638898d8b5ca9fa22b24383af82984ad50df16
5,421
py
Python
rnn_model.py
michiru123/lane-change-prediction-lstm
f6f067e07a0f211d48ec980074c452aec0d2b18d
[ "Apache-2.0" ]
null
null
null
rnn_model.py
michiru123/lane-change-prediction-lstm
f6f067e07a0f211d48ec980074c452aec0d2b18d
[ "Apache-2.0" ]
null
null
null
rnn_model.py
michiru123/lane-change-prediction-lstm
f6f067e07a0f211d48ec980074c452aec0d2b18d
[ "Apache-2.0" ]
null
null
null
import numpy import pickle import random import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim import time torch.manual_seed(1) # load data into pytorch tensor input_data = [] for i in range(1, 61): idx_str = '{0:02}'.format(i) pickle_in = open("output/result"+idx_str...
33.88125
83
0.63955
796388ba182a304077b1dfa9b98bea84a6b66730
15,829
py
Python
Objectives/utilities.py
vageeshSaxena/TX-Ray
80f96012bd7ab4c789b037bbfa996fa26c160701
[ "MIT" ]
1
2020-05-24T18:28:41.000Z
2020-05-24T18:28:41.000Z
Objectives/utilities.py
vageeshSaxena/TX-Ray
80f96012bd7ab4c789b037bbfa996fa26c160701
[ "MIT" ]
5
2020-09-26T00:44:54.000Z
2022-02-10T00:39:05.000Z
Objectives/utilities.py
vageeshSaxena/TX-Ray
80f96012bd7ab4c789b037bbfa996fa26c160701
[ "MIT" ]
null
null
null
######################################################################################################################## """ Description : Contains the utility functions for the module. Python version : 3.7.3 """ ##########################################################################################################...
47.250746
224
0.647988
7963890cae91da169f86465078ea92c5d702363b
5,715
py
Python
oletools/olebrowse.py
maniVix/oletools
63c4d5261521664f4df7c8f055227118d4fc9349
[ "BSD-2-Clause" ]
null
null
null
oletools/olebrowse.py
maniVix/oletools
63c4d5261521664f4df7c8f055227118d4fc9349
[ "BSD-2-Clause" ]
null
null
null
oletools/olebrowse.py
maniVix/oletools
63c4d5261521664f4df7c8f055227118d4fc9349
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 """ olebrowse.py A simple GUI to browse OLE files (e.g. MS Word, Excel, Powerpoint documents), to view and extract individual data streams. Usage: olebrowse.py [file] olebrowse project website: http://www.decalage.info/python/olebrowse olebrowse is part of the python-oletools package: http://...
35.71875
88
0.632021
79638926e7316a01a43b0dca6a8f4dc1e78d4745
627
py
Python
Alexandra_Timageni/conditionals.py
ArinaaNovikovaa/Programming_with_python_2021
890ae012d5ff8092ca1606d80d36d9e69f4e4162
[ "Apache-2.0" ]
7
2020-09-15T15:52:53.000Z
2021-05-19T17:51:56.000Z
Alexandra_Timageni/conditionals.py
ArinaaNovikovaa/Programming_with_python_2021
890ae012d5ff8092ca1606d80d36d9e69f4e4162
[ "Apache-2.0" ]
null
null
null
Alexandra_Timageni/conditionals.py
ArinaaNovikovaa/Programming_with_python_2021
890ae012d5ff8092ca1606d80d36d9e69f4e4162
[ "Apache-2.0" ]
49
2020-09-12T12:56:32.000Z
2021-12-30T13:27:38.000Z
my_city_name = 'Athens' my_city_population = 2000000 new_city_name= 'Barcelona' new_city_population = 5500000 if my_city_population > 10000000: print('My city is a Megacity.\n') elif my_city_population > 1500000: print('My city is a Metropolitan area.\n') elif my_city_population < 1500000: if my_city_p...
26.125
51
0.717703
7963898657cd4296621b1066f9bd94e6c2c98d68
7,793
py
Python
sakt/iter_env_sakt_new.py
scaomath/kaggle-riiid-test
6c99deccc33def7e5d0c982b0a9a19612138e893
[ "MIT" ]
null
null
null
sakt/iter_env_sakt_new.py
scaomath/kaggle-riiid-test
6c99deccc33def7e5d0c982b0a9a19612138e893
[ "MIT" ]
null
null
null
sakt/iter_env_sakt_new.py
scaomath/kaggle-riiid-test
6c99deccc33def7e5d0c982b0a9a19612138e893
[ "MIT" ]
null
null
null
#%% import os os.environ["CUDA_LAUNCH_BLOCKING"] = "1" import sys import psutil import pandas as pd import numpy as np from tqdm import tqdm import time from sklearn.metrics import roc_auc_score import torch HOME = "/home/scao/Documents/kaggle-riiid-test/" DATA_DIR = '/home/scao/Documents/kaggle-riiid-test/data/' MOD...
41.232804
128
0.626716
79638a5bd857ba2295413b4e943c1b2dbc071077
4,141
py
Python
sdk/yapily/models/country.py
DarrahK/yapily-sdk-python
2dcf9a403feafab7dcaf140dabe61794bd4debd3
[ "MIT" ]
null
null
null
sdk/yapily/models/country.py
DarrahK/yapily-sdk-python
2dcf9a403feafab7dcaf140dabe61794bd4debd3
[ "MIT" ]
null
null
null
sdk/yapily/models/country.py
DarrahK/yapily-sdk-python
2dcf9a403feafab7dcaf140dabe61794bd4debd3
[ "MIT" ]
null
null
null
# coding: utf-8 """ Yapily API To access endpoints that require authentication, use your application key and secret created in the Dashboard (https://dashboard.yapily.com) # noqa: E501 The version of the OpenAPI document: 1.157.0 Generated by: https://openapi-generator.tech """ import pprint impor...
28.170068
158
0.589713
79638aec2b65e127c054327420600d0479bfef1c
11,855
py
Python
src/sagemaker/xgboost/estimator.py
AmirS2/sagemaker-python-sdk
bb17c3b3de6a9af718279670c8177b5f3a19659c
[ "Apache-2.0" ]
null
null
null
src/sagemaker/xgboost/estimator.py
AmirS2/sagemaker-python-sdk
bb17c3b3de6a9af718279670c8177b5f3a19659c
[ "Apache-2.0" ]
null
null
null
src/sagemaker/xgboost/estimator.py
AmirS2/sagemaker-python-sdk
bb17c3b3de6a9af718279670c8177b5f3a19659c
[ "Apache-2.0" ]
null
null
null
# Copyright 2018-2019 Amazon.com, Inc. or its affiliates. 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. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" fil...
45.772201
100
0.673893
79638b749b135ae34d9e2e2355a9893aa5538a12
1,089
py
Python
ufdl-core-app/src/ufdl/core_app/models/nodes/_Framework.py
waikato-ufdl/ufdl-backend
776fc906c61eba6c2f2e6324758e7b8a323e30d7
[ "Apache-2.0" ]
null
null
null
ufdl-core-app/src/ufdl/core_app/models/nodes/_Framework.py
waikato-ufdl/ufdl-backend
776fc906c61eba6c2f2e6324758e7b8a323e30d7
[ "Apache-2.0" ]
85
2020-07-24T00:04:28.000Z
2022-02-10T10:35:15.000Z
ufdl-core-app/src/ufdl/core_app/models/nodes/_Framework.py
waikato-ufdl/ufdl-backend
776fc906c61eba6c2f2e6324758e7b8a323e30d7
[ "Apache-2.0" ]
null
null
null
from django.db import models from ..mixins import DeleteOnNoRemainingReferencesOnlyModel, DeleteOnNoRemainingReferencesOnlyQuerySet class FrameworkQuerySet(DeleteOnNoRemainingReferencesOnlyQuerySet): """ A query-set of deep-learning frameworks. """ pass class Framework(DeleteOnNoRemainingReferences...
25.928571
102
0.649219
79638b8da1316de51728c61f2c69fc0a8b126601
757
py
Python
server/server/__init__.py
brodigan-e/capstone-POV
8ba8bf49e168a1c27a9a252d0f7af375a4e0bb5b
[ "MIT" ]
2
2020-10-02T20:49:48.000Z
2020-10-06T01:19:13.000Z
server/server/__init__.py
brodigan-e/capstone-POV
8ba8bf49e168a1c27a9a252d0f7af375a4e0bb5b
[ "MIT" ]
15
2020-10-01T05:42:06.000Z
2020-12-07T22:48:22.000Z
server/server/__init__.py
brodigan-e/capstone-POV
8ba8bf49e168a1c27a9a252d0f7af375a4e0bb5b
[ "MIT" ]
1
2020-11-12T20:47:57.000Z
2020-11-12T20:47:57.000Z
import os from flask import Flask from flask_cors import CORS from flask_migrate import Migrate from flask_sqlalchemy import SQLAlchemy app = Flask(__name__) app.config["SQLALCHEMY_DATABASE_URI"] = "sqlite:///db.db" app.config["SQLALCHEMY_TRACK_MODIFICATIONS"] = True app.config["IMAGE_UPLOAD_FOLDER"] = "image-uploads...
29.115385
103
0.762219
79638c4490738b55486ea15a7533c7d16680374f
891
py
Python
server/helios/management/commands/verify_cast_votes.py
W11-Secure-Voting-Solutions/backend
c530c295b23de6a06590b84b3105be26e6adbd2f
[ "Apache-2.0" ]
null
null
null
server/helios/management/commands/verify_cast_votes.py
W11-Secure-Voting-Solutions/backend
c530c295b23de6a06590b84b3105be26e6adbd2f
[ "Apache-2.0" ]
11
2020-01-20T20:33:55.000Z
2020-04-28T17:29:35.000Z
server/helios/management/commands/verify_cast_votes.py
W11-Secure-Voting-Solutions/backend
c530c295b23de6a06590b84b3105be26e6adbd2f
[ "Apache-2.0" ]
null
null
null
""" verify cast votes that have not yet been verified Ben Adida ben@adida.net 2010-05-22 """ from django.core.management.base import BaseCommand from helios.models import CastVote def get_cast_vote_to_verify(): # fixme: add "select for update" functionality here votes = CastVote.objects.filter(verified_at=...
22.846154
84
0.650954
79638cb79112438d62d701c42fadbf0e18ff3340
1,723
py
Python
Seminar1/pwned_v2.py
OblackatO/PV204-Security-Technologies
1b91b8de760dc2e2c0265d04069e26893f524f49
[ "MIT" ]
null
null
null
Seminar1/pwned_v2.py
OblackatO/PV204-Security-Technologies
1b91b8de760dc2e2c0265d04069e26893f524f49
[ "MIT" ]
null
null
null
Seminar1/pwned_v2.py
OblackatO/PV204-Security-Technologies
1b91b8de760dc2e2c0265d04069e26893f524f49
[ "MIT" ]
null
null
null
# https://haveibeenpwned.com/API/v2 import pwnedpasswords import requests import hashlib import matplotlib.pyplot as plt def load_passwords(file_name: str) -> dict: """ Function that loads most common passwords to memory. """ with open(file_name, 'r') as f: passwords = f.read().s...
31.327273
97
0.628555
79638d0b08cb9664b2bc1abf63d9491c42ac5dd8
370
py
Python
tulius/gameforum/threads/__init__.py
kozzztik/tulius
81b8f6484eefdc453047f62173a08f5e6f640cd6
[ "MIT" ]
1
2020-04-21T15:09:18.000Z
2020-04-21T15:09:18.000Z
tulius/gameforum/threads/__init__.py
kozzztik/tulius
81b8f6484eefdc453047f62173a08f5e6f640cd6
[ "MIT" ]
70
2019-04-10T22:32:32.000Z
2022-03-11T23:12:54.000Z
tulius/gameforum/threads/__init__.py
kozzztik/tulius
81b8f6484eefdc453047f62173a08f5e6f640cd6
[ "MIT" ]
1
2019-04-12T14:55:39.000Z
2019-04-12T14:55:39.000Z
from django.apps import AppConfig class GameForumThreadsConfig(AppConfig): name = 'tulius.gameforum.threads' label = 'game_forum_threads' verbose_name = 'Game forum threads' def ready(self): # rights receivers may not be connected in tests # pylint: disable=C0415 from tulius.g...
26.428571
56
0.691892
79638d4b5f73659c555dfbad1eca8a9f99a2e121
4,683
py
Python
yyapi/urls.py
liqi629/yyapi
36873d87cb433d6077bafd31fca89ea15aaaed66
[ "MIT" ]
1
2021-08-06T09:17:37.000Z
2021-08-06T09:17:37.000Z
yyapi/urls.py
liqi629/yyapi
36873d87cb433d6077bafd31fca89ea15aaaed66
[ "MIT" ]
null
null
null
yyapi/urls.py
liqi629/yyapi
36873d87cb433d6077bafd31fca89ea15aaaed66
[ "MIT" ]
null
null
null
"""yyapi 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 v...
40.721739
77
0.662396
79638e3b5aa899ed5571f8c762b2d694d664e5cf
10,104
py
Python
lale/lib/aif360/__init__.py
chiragsahni/lale
a04adcdc14f2e05b846ebd5767186b66fe20463f
[ "Apache-2.0" ]
null
null
null
lale/lib/aif360/__init__.py
chiragsahni/lale
a04adcdc14f2e05b846ebd5767186b66fe20463f
[ "Apache-2.0" ]
null
null
null
lale/lib/aif360/__init__.py
chiragsahni/lale
a04adcdc14f2e05b846ebd5767186b66fe20463f
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 IBM Corporation # # 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, ...
45.309417
247
0.785728
79638ecb51ec45b5306c53fd24b09bc70891ea0d
5,231
py
Python
covid_api/views/municipio.py
jmbarrios/covid-mexico-19
6872d55830e2a6cd6987a4ee517cd016dd853edf
[ "MIT" ]
null
null
null
covid_api/views/municipio.py
jmbarrios/covid-mexico-19
6872d55830e2a6cd6987a4ee517cd016dd853edf
[ "MIT" ]
null
null
null
covid_api/views/municipio.py
jmbarrios/covid-mexico-19
6872d55830e2a6cd6987a4ee517cd016dd853edf
[ "MIT" ]
2
2020-05-11T15:32:31.000Z
2020-05-13T19:12:20.000Z
from django.utils.decorators import method_decorator from django.views.decorators.cache import cache_page from rest_framework.decorators import action from rest_framework.response import Response from covid_data import models from covid_api import filters from covid_api.views.base import ListRetrieveViewSet from covid...
34.873333
98
0.659912
79638f2c64d43ac77a3f9f3facdfe3b82a1a2141
8,336
py
Python
python/pyarrow/tests/test_hdfs.py
mnc/arrow
5cda6934999f9f79368f3fc3f68895fc0f4e0b24
[ "Apache-2.0", "CC0-1.0" ]
null
null
null
python/pyarrow/tests/test_hdfs.py
mnc/arrow
5cda6934999f9f79368f3fc3f68895fc0f4e0b24
[ "Apache-2.0", "CC0-1.0" ]
null
null
null
python/pyarrow/tests/test_hdfs.py
mnc/arrow
5cda6934999f9f79368f3fc3f68895fc0f4e0b24
[ "Apache-2.0", "CC0-1.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
28.450512
79
0.602807
7963900e41179de9926eb08ed271616ea5d39e7a
7,888
py
Python
mopidy/__main__.py
ZenithDK/mopidy
aa3293673ae185c1a6de1d7f26561f09bc8ceb19
[ "Apache-2.0" ]
1
2017-10-15T03:49:14.000Z
2017-10-15T03:49:14.000Z
mopidy/__main__.py
Ma5onic/mopidy
33856830c946182a623079853a8590575c5d23d2
[ "Apache-2.0" ]
null
null
null
mopidy/__main__.py
Ma5onic/mopidy
33856830c946182a623079853a8590575c5d23d2
[ "Apache-2.0" ]
1
2020-03-10T05:11:49.000Z
2020-03-10T05:11:49.000Z
from __future__ import absolute_import, print_function, unicode_literals import logging import os import signal import sys from mopidy.internal.gi import Gst # noqa: F401 try: # Make GObject's mainloop the event loop for python-dbus import dbus.mainloop.glib dbus.mainloop.glib.threads_init() dbus.ma...
36.35023
79
0.636283
7963903cec29a0c53533b2615a3362ad5aabfdb3
2,637
py
Python
backend/home/api/v1/serializers.py
crowdbotics-apps/test-34309
2d0863f4902e6077e609232cab6040eafd2e4f1a
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/home/api/v1/serializers.py
crowdbotics-apps/test-34309
2d0863f4902e6077e609232cab6040eafd2e4f1a
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/home/api/v1/serializers.py
crowdbotics-apps/test-34309
2d0863f4902e6077e609232cab6040eafd2e4f1a
[ "FTL", "AML", "RSA-MD" ]
null
null
null
from django.contrib.auth import get_user_model from home.models import SubUser from django.http import HttpRequest from django.utils.translation import ugettext_lazy as _ from allauth.account import app_settings as allauth_settings from allauth.account.forms import ResetPasswordForm from allauth.utils import email_addr...
31.771084
82
0.648085
796390d68d400aad3c2d7775f37b14d24a06200b
1,319
py
Python
handsdown/ast_parser/node_records/text_record.py
vemel/handsdown
68bd0ca6b3ed738db888f18c7a0ccbc62c2d0e42
[ "MIT" ]
47
2019-10-18T13:59:20.000Z
2022-03-21T21:46:30.000Z
handsdown/ast_parser/node_records/text_record.py
vemel/handsdown
68bd0ca6b3ed738db888f18c7a0ccbc62c2d0e42
[ "MIT" ]
15
2019-10-24T13:42:02.000Z
2022-03-22T19:25:49.000Z
handsdown/ast_parser/node_records/text_record.py
vemel/handsdown
68bd0ca6b3ed738db888f18c7a0ccbc62c2d0e42
[ "MIT" ]
7
2019-11-22T12:24:57.000Z
2022-01-29T13:18:51.000Z
""" Wrapper for a text-only `ast.expr` node. """ import re from typing import TYPE_CHECKING, List, Set from handsdown.ast_parser.node_records.expression_record import ExpressionRecord if TYPE_CHECKING: # pragma: no cover import handsdown.ast_parser.smart_ast as ast from handsdown.ast_parser.type_defs import ...
24.425926
80
0.61486
796391414d00b18932f55278c61979a96aae8a1a
2,246
py
Python
eel/browsers.py
MichaelCurrin/Eel
414b2c3858ff95e3811089d4bd797910b6934f1a
[ "MIT" ]
4,073
2018-01-06T19:07:12.000Z
2022-03-29T04:04:29.000Z
activate/Lib/site-packages/eel/browsers.py
Tanushree28/Cyberbullying-Detection
3a69ade5cf068b640a0d6d1f176ff0d0e2040501
[ "MIT" ]
315
2018-01-06T22:55:21.000Z
2022-03-28T20:12:15.000Z
activate/Lib/site-packages/eel/browsers.py
Tanushree28/Cyberbullying-Detection
3a69ade5cf068b640a0d6d1f176ff0d0e2040501
[ "MIT" ]
415
2018-01-06T19:28:40.000Z
2022-03-31T10:28:57.000Z
import subprocess as sps import webbrowser as wbr import eel.chrome as chm import eel.electron as ele import eel.edge as edge #import eel.firefox as ffx TODO #import eel.safari as saf TODO _browser_paths = {} _browser_modules = {'chrome': chm, 'electron': ele, 'edg...
28.43038
86
0.629118
796391acdb713b363bde35846ca4aa968312b1e6
1,201
py
Python
azure/mgmt/network/v2017_03_01/models/express_route_circuits_routes_table_summary_list_result.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
1
2022-01-25T22:52:58.000Z
2022-01-25T22:52:58.000Z
azure/mgmt/network/v2017_03_01/models/express_route_circuits_routes_table_summary_list_result.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
azure/mgmt/network/v2017_03_01/models/express_route_circuits_routes_table_summary_list_result.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
35.323529
87
0.621149
796391d54182c86d70b42a8c6838e9224c824162
118
py
Python
neuralNetworks/classifiers/__init__.py
kidconan/demo
5589d2aa3c6caee4e077c8f1ea73c4085ebc625d
[ "MIT" ]
200
2016-03-02T01:18:12.000Z
2021-08-20T06:12:40.000Z
neuralNetworks/classifiers/__init__.py
kidconan/demo
5589d2aa3c6caee4e077c8f1ea73c4085ebc625d
[ "MIT" ]
10
2016-03-08T12:28:41.000Z
2019-01-17T10:42:12.000Z
neuralNetworks/classifiers/__init__.py
kidconan/demo
5589d2aa3c6caee4e077c8f1ea73c4085ebc625d
[ "MIT" ]
92
2016-03-07T10:52:28.000Z
2022-03-22T10:37:03.000Z
'''@package classifiers Contains the neural net classifiers (e.g. dnn) and their components (e.g. layers) '''
23.6
71
0.677966
796392bd031e40db4737d52945644371f75c432c
1,259
py
Python
tests/test_blagues_api.py
CodeElevator/blagues-api-py
8c4a1a1b03a949df2a91c64f493be0dd0386e9a1
[ "MIT" ]
null
null
null
tests/test_blagues_api.py
CodeElevator/blagues-api-py
8c4a1a1b03a949df2a91c64f493be0dd0386e9a1
[ "MIT" ]
null
null
null
tests/test_blagues_api.py
CodeElevator/blagues-api-py
8c4a1a1b03a949df2a91c64f493be0dd0386e9a1
[ "MIT" ]
null
null
null
import pytest from dotenv import dotenv_values import os, platform import asyncio try: from blagues_api import BlaguesAPI, Blague, BlagueType except ImportError: try: if platform.system().lower().startswith('win'): os.system("pip install blagues-api") else: os.system("pi...
23.754717
63
0.708499
796392ddf9a8a339da5d9e912850088a9208ac9a
2,287
py
Python
vulnerabilities/forms.py
keshav-space/vulnerablecode
8ccb2026c084c42d075c629fe182feaa22c07830
[ "Apache-2.0" ]
null
null
null
vulnerabilities/forms.py
keshav-space/vulnerablecode
8ccb2026c084c42d075c629fe182feaa22c07830
[ "Apache-2.0" ]
null
null
null
vulnerabilities/forms.py
keshav-space/vulnerablecode
8ccb2026c084c42d075c629fe182feaa22c07830
[ "Apache-2.0" ]
null
null
null
# Copyright (c) nexB Inc. and others. All rights reserved. # http://nexb.com and https://github.com/nexB/vulnerablecode/ # The VulnerableCode software is licensed under the Apache License version 2.0. # Data generated with VulnerableCode require an acknowledgment. # # You may not use this software except in compliance ...
40.122807
96
0.759948
796393dd52d341dad0d34a8a5fe2ba118a4e5183
1,983
py
Python
app/utils/response.py
Rgcsh/distributed_redis_server
4e305397491cd117caf9fb83a782801766445df4
[ "MIT" ]
1
2020-08-12T00:00:23.000Z
2020-08-12T00:00:23.000Z
app/utils/response.py
Rgcsh/distributed_redis_server
4e305397491cd117caf9fb83a782801766445df4
[ "MIT" ]
null
null
null
app/utils/response.py
Rgcsh/distributed_redis_server
4e305397491cd117caf9fb83a782801766445df4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ All rights reserved create time '2020/7/6 09:09' Usage: """ import json # 3p from flask import make_response from .encoder import JsonEncoder from .messages import error_message, CodeDict # project from .timer import current_timestamp def json_response(code=200, body=None, message="",...
23.05814
86
0.632879
796397adeefe2a95d7eec9206cde2dcd0cf69b8c
9,634
py
Python
superset/views/database/views.py
bootslee/incubator-superset
76c5daf8a7a7305df95299bca83a27a9e8326c6d
[ "Apache-2.0" ]
null
null
null
superset/views/database/views.py
bootslee/incubator-superset
76c5daf8a7a7305df95299bca83a27a9e8326c6d
[ "Apache-2.0" ]
null
null
null
superset/views/database/views.py
bootslee/incubator-superset
76c5daf8a7a7305df95299bca83a27a9e8326c6d
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
38.230159
88
0.630164
79639b67b21ee9bb9405ccbba713f7818700307e
4,328
py
Python
contrib/seeds/generate-seeds.py
salo50/galilel
0760eac8ef14a09c5b929205c36911a6c4dfb583
[ "MIT" ]
26
2018-10-05T08:09:10.000Z
2021-08-02T18:52:48.000Z
contrib/seeds/generate-seeds.py
salo50/galilel
0760eac8ef14a09c5b929205c36911a6c4dfb583
[ "MIT" ]
30
2018-10-16T17:51:13.000Z
2022-01-25T08:11:58.000Z
contrib/seeds/generate-seeds.py
salo50/galilel
0760eac8ef14a09c5b929205c36911a6c4dfb583
[ "MIT" ]
19
2018-09-16T07:02:58.000Z
2021-02-25T09:11:13.000Z
#!/usr/bin/env python3 # Copyright (c) 2014-2017 Wladimir J. van der Laan # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. ''' Script to generate list of seed nodes for chainparams.cpp. This script expects two text files in the dir...
31.362319
98
0.581562
79639c2407d202540053a36cb6b82c8df1b8f00d
2,346
py
Python
selfdrive/car/toyota/toyotacan.py
kansakitw/dragonpilotamd
83295e6746e685b22e218bd0bd943df674e42a81
[ "MIT" ]
null
null
null
selfdrive/car/toyota/toyotacan.py
kansakitw/dragonpilotamd
83295e6746e685b22e218bd0bd943df674e42a81
[ "MIT" ]
1
2021-12-05T12:09:05.000Z
2021-12-05T12:15:55.000Z
selfdrive/car/toyota/toyotacan.py
kansakitw/dragonpilotamd
83295e6746e685b22e218bd0bd943df674e42a81
[ "MIT" ]
null
null
null
def create_steer_command(packer, steer, steer_req, raw_cnt): """Creates a CAN message for the Toyota Steer Command.""" values = { "STEER_REQUEST": steer_req, "STEER_TORQUE_CMD": steer, "COUNTER": raw_cnt, "SET_ME_1": 1, } return packer.make_can_msg("STEERING_LKA", 0, values) def create_lta_st...
27.6
104
0.66965
79639c4edafcf0b8a869401842069e4656560dd7
1,040
py
Python
setup.py
SUNET/pysmscom
890cdf3a420e11517e909351d3b2e20c7b045379
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
setup.py
SUNET/pysmscom
890cdf3a420e11517e909351d3b2e20c7b045379
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
setup.py
SUNET/pysmscom
890cdf3a420e11517e909351d3b2e20c7b045379
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
import os from setuptools import setup, find_packages __author__ = 'leifj' here = os.path.abspath(os.path.dirname(__file__)) README_fn = os.path.join(here, 'README.rst') README = 'smscom.se client' if os.path.exists(README_fn): README = open(README_fn).read() version = '0.9' install_requires = [ 'six>=1.11...
21.22449
81
0.654808