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
796d27020726063af9b593b5e2d3f5a616b8237e
1,375
py
Python
contrib/tasks/wsss/viz/viz_seed.py
HAL-42/AlchemyCat
ca924755ff48e2ff74543bb0e446376eb2b1f150
[ "Apache-2.0" ]
8
2020-01-08T19:42:01.000Z
2021-12-28T08:30:56.000Z
contrib/tasks/wsss/viz/viz_seed.py
HAL-42/AlchemyCat
ca924755ff48e2ff74543bb0e446376eb2b1f150
[ "Apache-2.0" ]
2
2020-09-10T12:22:57.000Z
2022-02-17T05:21:22.000Z
contrib/tasks/wsss/viz/viz_seed.py
HAL-42/AlchemyCat
ca924755ff48e2ff74543bb0e446376eb2b1f150
[ "Apache-2.0" ]
1
2021-05-12T01:50:27.000Z
2021-05-12T01:50:27.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ @Author : Xiaobo Yang @Contact : hal_42@zju.edu.cn @Time : 2021/6/16 17:10 @File : viz_seed.py @Software: PyCharm @Desc : """ import matplotlib.pyplot as plt import numpy as np from alchemy_cat.contrib.voc import label_map2color_map __all__ = ['viz_seed'] ...
25
103
0.634909
796d29cc53accfdf8679046c726292a8572d2e33
10,250
py
Python
drive_9_acts.py
LiuVII/Self-driving-RC-car
2b156df7bd03385dfd893937bda858de9313c894
[ "MIT" ]
1
2018-12-03T22:08:32.000Z
2018-12-03T22:08:32.000Z
drive_9_acts.py
LiuVII/Self-driving-RC-car
2b156df7bd03385dfd893937bda858de9313c894
[ "MIT" ]
null
null
null
drive_9_acts.py
LiuVII/Self-driving-RC-car
2b156df7bd03385dfd893937bda858de9313c894
[ "MIT" ]
null
null
null
#!/bin/usr/env python3 import getch import os import sys import time import argparse import urllib2 import subprocess import cv2 import numpy as np import pandas as pd from math import pi import shutil from datetime import datetime import select import math from PIL import ImageOps from PIL import Image from train impo...
25.246305
100
0.630439
796d2a2c5cfabe827e57b82a7b0cff932d18a50f
1,507
py
Python
dji_asdk_to_python/gimbal/gimbal.py
msanchezc/dji-asdk-to-python
cf3e56691524624314a28f5ebc6f3f59cbd4d8cb
[ "BSD-3-Clause" ]
7
2020-11-02T16:31:28.000Z
2021-11-09T21:32:44.000Z
dji_asdk_to_python/gimbal/gimbal.py
msanchezc/dji-asdk-to-python
cf3e56691524624314a28f5ebc6f3f59cbd4d8cb
[ "BSD-3-Clause" ]
64
2020-09-03T04:32:39.000Z
2022-02-21T20:30:16.000Z
dji_asdk_to_python/gimbal/gimbal.py
PSBPOSAS/dji-asdk-to-python
39fd29e172249656ce9f6e7b6273eeff6790d8c1
[ "BSD-3-Clause" ]
4
2020-09-16T19:07:30.000Z
2022-02-21T04:48:10.000Z
from dji_asdk_to_python.utils.message_builder import MessageBuilder from dji_asdk_to_python.errors import DJIError from dji_asdk_to_python.utils.shared import checkParameters from dji_asdk_to_python.utils.socket_utils import SocketUtils class Gimbal: """ This class provides methods to control the gimbal. The...
31.395833
151
0.643663
796d2a51bbb759c6f3686da3b7d71ce1cb58c613
376
py
Python
etc/crawling_test/elasticsearch_test/woohee_test/elastic_print.py
alswhd20/elk
9487d66ba9f7e4bb2db9f0e7c17effd5daf74d5b
[ "MIT" ]
null
null
null
etc/crawling_test/elasticsearch_test/woohee_test/elastic_print.py
alswhd20/elk
9487d66ba9f7e4bb2db9f0e7c17effd5daf74d5b
[ "MIT" ]
null
null
null
etc/crawling_test/elasticsearch_test/woohee_test/elastic_print.py
alswhd20/elk
9487d66ba9f7e4bb2db9f0e7c17effd5daf74d5b
[ "MIT" ]
null
null
null
import json from elasticsearch import Elasticsearch, helpers from collections import OrderedDict from requests_html import HTMLSession import urllib.parse as url_parse index_name = "raw" doc_type = "twitter" es = Elasticsearch("http://127.0.0.1:9200/") #localhost = 127.0.0.1:9200 get_data = es.get(index = index_name...
31.333333
73
0.771277
796d2b2d04adf00ab905eb662a7b4ab1982bc51e
2,721
py
Python
lib/biokbase/ServiceUtils.py
eapearson/kbase-skd-module-job-browser-bff
426445f90569adac16632ef4921f174e51abd42f
[ "MIT" ]
null
null
null
lib/biokbase/ServiceUtils.py
eapearson/kbase-skd-module-job-browser-bff
426445f90569adac16632ef4921f174e51abd42f
[ "MIT" ]
6
2020-05-26T17:40:07.000Z
2022-03-11T16:33:11.000Z
lib/biokbase/ServiceUtils.py
eapearson/kbase-skd-module-job-browser-bff
426445f90569adac16632ef4921f174e51abd42f
[ "MIT" ]
1
2020-05-26T17:12:59.000Z
2020-05-26T17:12:59.000Z
import dateutil.parser import datetime import re class ServiceUtils: @staticmethod def ws_info_to_object(ws_info): is_narratorial = True if ws_info[8].get("narratorial") == "1" else False is_public = True if ws_info[6] == "r" else False mod_date_ms = ServiceUtils.iso8601ToMillisSinceEp...
33.592593
80
0.481073
796d2b3f26c0c71b47d8d7e3f03b71745851e0be
718
py
Python
route/recent_history_hidden.py
2DU/openNAMU-PYnamu
be8428ff29db3f580054e490024917f48fd638b5
[ "BSD-3-Clause" ]
3
2017-01-29T03:48:45.000Z
2017-02-08T19:12:29.000Z
route/recent_history_hidden.py
2DU/openNAMU-PYnamu
be8428ff29db3f580054e490024917f48fd638b5
[ "BSD-3-Clause" ]
1
2017-02-16T15:41:19.000Z
2017-02-16T16:11:04.000Z
route/recent_history_hidden.py
2DU/openNAMU-PYnamu
be8428ff29db3f580054e490024917f48fd638b5
[ "BSD-3-Clause" ]
null
null
null
from .tool.func import * def recent_history_hidden(name = 'Test', rev = 1): with get_db_connect() as conn: curs = conn.cursor() num = str(rev) if admin_check(6, 'history_hidden (' + name + '#' + num + ')') == 1: curs.execute(db_change("select title from history where title = ?...
39.888889
119
0.548747
796d2e2e633ea5b2bcc3bc644588ddd18f312216
346
py
Python
setup.py
haps-algorithms-club/mazes
d55bb7597532326bcd189e6204dd65a8ab77d57a
[ "MIT" ]
2
2020-01-30T06:18:53.000Z
2020-02-03T10:51:12.000Z
setup.py
haps-algorithms-club/mazes
d55bb7597532326bcd189e6204dd65a8ab77d57a
[ "MIT" ]
null
null
null
setup.py
haps-algorithms-club/mazes
d55bb7597532326bcd189e6204dd65a8ab77d57a
[ "MIT" ]
null
null
null
"""Setup script for hapsmazes.""" from setuptools import setup, find_packages setup( name="hapsmazes", author="Konrad Jałowiecki", author_email="dexter2206@gmail.com", entry_points={"console_scripts": ["generate-maze=hapsmazes.scripts.generate_maze:main"]}, requires=["numpy", "matplotlib"], pa...
26.615385
93
0.713873
796d2e8e321bdfc9e93ce24b2b6adb344d36305c
213
py
Python
api/allennlp_demo/bidaf/test_api.py
dragon18456/allennlp-demo
3070703c584ad9f8f0e6efb7dfae971769944bfd
[ "Apache-2.0" ]
190
2018-06-09T14:07:26.000Z
2022-03-29T09:09:49.000Z
api/allennlp_demo/bidaf/test_api.py
dragon18456/allennlp-demo
3070703c584ad9f8f0e6efb7dfae971769944bfd
[ "Apache-2.0" ]
784
2018-06-11T22:42:49.000Z
2022-03-28T17:06:12.000Z
api/allennlp_demo/bidaf/test_api.py
dragon18456/allennlp-demo
3070703c584ad9f8f0e6efb7dfae971769944bfd
[ "Apache-2.0" ]
92
2018-07-07T15:45:45.000Z
2022-03-15T00:13:02.000Z
from allennlp_demo.common.testing import RcModelEndpointTestCase from allennlp_demo.bidaf.api import BidafModelEndpoint class TestBidafModelEndpoint(RcModelEndpointTestCase): endpoint = BidafModelEndpoint()
30.428571
64
0.86385
796d2ec93255cd2f4d9787bec135ada11288c0d3
3,598
py
Python
djangoenv/lib/python3.8/site-packages/bootstrap_datepicker_plus/_compatibility.py
anmolharsh/Apartment-Management-DBMS_1
196fbe11ceb0fe146b41075b0350b518713cdb58
[ "MIT" ]
27
2019-11-18T05:06:01.000Z
2021-02-28T19:38:09.000Z
djangoenv/lib/python3.8/site-packages/bootstrap_datepicker_plus/_compatibility.py
anmolharsh/Apartment-Management-DBMS_1
196fbe11ceb0fe146b41075b0350b518713cdb58
[ "MIT" ]
21
2020-12-29T21:29:31.000Z
2022-03-12T00:53:57.000Z
venv/lib/python3.7/site-packages/bootstrap_datepicker_plus/_compatibility.py
cheikhmbackeseck37/insuris
3362ca445d489e23d57a76bbd6d263f3a5f0b519
[ "MIT" ]
11
2019-07-31T16:23:36.000Z
2022-01-29T08:30:07.000Z
# -*- coding: utf-8 -*- """Contains fallback/missing classes and methods for older django versions.""" from functools import lru_cache from pathlib import Path from django.forms.widgets import DateTimeBaseInput from django.template.backends.django import DjangoTemplates from django.utils import formats from ...
33.009174
79
0.642301
796d2f39cb5c5b281b1870c08947a119a598891f
790
py
Python
section5/video3/controller.py
PacktPublishing/Mastering-Python-3.x
526f2d02266fa6c0a5badf892f2db177b2f52f64
[ "MIT" ]
6
2019-10-22T00:02:03.000Z
2021-11-08T13:10:32.000Z
section5/video3/controller.py
PacktPublishing/Mastering-Python-3.x
526f2d02266fa6c0a5badf892f2db177b2f52f64
[ "MIT" ]
2
2021-06-01T23:45:41.000Z
2021-06-02T00:07:56.000Z
section5/video3/controller.py
PacktPublishing/Mastering-Python-3.x
526f2d02266fa6c0a5badf892f2db177b2f52f64
[ "MIT" ]
8
2019-05-02T20:56:37.000Z
2021-09-02T08:55:06.000Z
import subprocess NUM_WORKERS = 16 def main(): workers = [] for i in range(NUM_WORKERS): workers.append( subprocess.Popen( ["python", "worker.py"], stdin=subprocess.PIPE, stdout=subprocess.PIPE, text=True, ) ...
21.351351
72
0.524051
796d2f7204c6d916db2bbf2b456c0e3334107d18
24,492
py
Python
src/m4_more_iterating.py
strainlw/11-Sequences
18aa21c0c97585a3c7d299d9d5626edae650be5f
[ "MIT" ]
null
null
null
src/m4_more_iterating.py
strainlw/11-Sequences
18aa21c0c97585a3c7d299d9d5626edae650be5f
[ "MIT" ]
null
null
null
src/m4_more_iterating.py
strainlw/11-Sequences
18aa21c0c97585a3c7d299d9d5626edae650be5f
[ "MIT" ]
null
null
null
""" This module lets you practice two forms of the ACCUMULATOR pattern: -- SUMMING -- COUNTING where the accumulation is done via ITERATING (i.e., looping) through a SEQUENCE. It also demonstrates using an ORACLE and/or PROBABILITY THEORY in testing and BOUNDARY (EDGE) TESTING. Authors: David Mutchler, Vibha Alan...
34.740426
79
0.542626
796d302d101c7f89748161c2ab30616965a64c2d
884
py
Python
tools/gen-extractor-program.py
Lullebullelukas/metadl
d81636a82d0e2188c24e4935dce2d05d54c256a2
[ "BSD-2-Clause" ]
18
2019-09-18T22:27:14.000Z
2022-03-29T09:17:33.000Z
tools/gen-extractor-program.py
Lullebullelukas/metadl
d81636a82d0e2188c24e4935dce2d05d54c256a2
[ "BSD-2-Clause" ]
16
2019-08-09T14:24:06.000Z
2022-02-16T08:14:13.000Z
tools/gen-extractor-program.py
Lullebullelukas/metadl
d81636a82d0e2188c24e4935dce2d05d54c256a2
[ "BSD-2-Clause" ]
1
2022-02-04T12:40:26.000Z
2022-02-04T12:40:26.000Z
#!/usr/bin/python3 import sys def main() : if len(sys.argv) < 3: print("Usage: gen-extractor-py SRC_PATH_1:SRC_PATH_2:...:SRC_PATH_N OUTPUT_PRED [FILE]") exit(1) src_paths = sys.argv[1] output_pred = sys.argv[2] if len(sys.argv) >= 4: output_file = open(sys.argv[3], "w") e...
26
96
0.593891
796d3073abfd3d4acb5449e90506bf5a8e73f9e1
1,153
py
Python
lino_care/lib/care/models.py
khchine5/care
a9ec53709117c5dc0efac240d899a93750ecfd4e
[ "BSD-2-Clause" ]
null
null
null
lino_care/lib/care/models.py
khchine5/care
a9ec53709117c5dc0efac240d899a93750ecfd4e
[ "BSD-2-Clause" ]
null
null
null
lino_care/lib/care/models.py
khchine5/care
a9ec53709117c5dc0efac240d899a93750ecfd4e
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: UTF-8 -*- # Copyright 2014-2016 Luc Saffre # License: BSD (see file COPYING for details) """The :xfile:`models.py` module for :mod:`lino_care`. Defines a handler for :data:`lino.modlib.smtpd.signals.mail_received`. """ from email.parser import Parser from lino.api import dd # from lino.modlib.smtpd.si...
30.342105
70
0.66869
796d30eb3d15efae728fca28e3da51d3fc97f593
1,019
py
Python
var/spack/repos/builtin/packages/r-impute/package.py
renjithravindrankannath/spack
043b2cbb7c99d69a373f3ecbf35bc3b4638bcf85
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/r-impute/package.py
renjithravindrankannath/spack
043b2cbb7c99d69a373f3ecbf35bc3b4638bcf85
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/r-impute/package.py
renjithravindrankannath/spack
043b2cbb7c99d69a373f3ecbf35bc3b4638bcf85
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2019-02-08T20:37:20.000Z
2019-03-31T15:19:26.000Z
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack.package import * class RImpute(RPackage): """impute: Imputation for microarray data. Imputation f...
39.192308
73
0.749755
796d31af3567ec7fc9cb6d8ae40f9d75dd0055a6
1,409
py
Python
setup.py
thiagoalvesifce/MLIC
1a4ce0df300cc624eeac966b310714b8885a6e8e
[ "MIT" ]
null
null
null
setup.py
thiagoalvesifce/MLIC
1a4ce0df300cc624eeac966b310714b8885a6e8e
[ "MIT" ]
null
null
null
setup.py
thiagoalvesifce/MLIC
1a4ce0df300cc624eeac966b310714b8885a6e8e
[ "MIT" ]
null
null
null
from setuptools import setup # read the contents of your README file from os import path this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f: long_description = f.read() setup( name = 'rulelearning', packages = ['rulelearning'], ver...
37.078947
189
0.687012
796d31b7f0c958a27059804f4a6175697ad849d9
8,813
py
Python
build_tools/buildkite/scripts/common/buildkite_pipeline_manager.py
anthonycanino/iree
be167a62f8872597eac1b72e26b4c62e291bfd5c
[ "Apache-2.0" ]
null
null
null
build_tools/buildkite/scripts/common/buildkite_pipeline_manager.py
anthonycanino/iree
be167a62f8872597eac1b72e26b4c62e291bfd5c
[ "Apache-2.0" ]
null
null
null
build_tools/buildkite/scripts/common/buildkite_pipeline_manager.py
anthonycanino/iree
be167a62f8872597eac1b72e26b4c62e291bfd5c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Copyright 2022 The IREE Authors # # Licensed under the Apache License v2.0 with LLVM Exceptions. # See https://llvm.org/LICENSE.txt for license information. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception import os import time from typing import List, Optional from pybuildkite impor...
41.966667
95
0.7043
796d328ca3250f05166e96a412fdad4e5316a034
10,918
py
Python
original/Saver.py
monsterkodi/krkkl
4be84c8e075ba98c9db55945db4db7f4a3fe59be
[ "Apache-2.0" ]
6
2015-07-28T17:31:41.000Z
2020-02-23T06:55:30.000Z
original/Saver.py
monsterkodi/krkkl
4be84c8e075ba98c9db55945db4db7f4a3fe59be
[ "Apache-2.0" ]
null
null
null
original/Saver.py
monsterkodi/krkkl
4be84c8e075ba98c9db55945db4db7f4a3fe59be
[ "Apache-2.0" ]
null
null
null
import objc,json,types from AppKit import * from ScreenSaver import ScreenSaverView from random import randint, randrange, random, uniform, choice, seed from math import sin, pi, sqrt, pow from time import sleep configs = [{ "speed": "uniform(0.2, 1.0)", "numrows": "randint(20,300)", "keepdir": "[uni...
38.041812
150
0.499084
796d33d77bd2c97871a002f828974b0b41f49be5
123
py
Python
CNN/app/__init__.py
PravyAI/DeepLearning
2f6c32f526e649139b1762f3700db20c0d9bd83a
[ "Apache-2.0" ]
null
null
null
CNN/app/__init__.py
PravyAI/DeepLearning
2f6c32f526e649139b1762f3700db20c0d9bd83a
[ "Apache-2.0" ]
null
null
null
CNN/app/__init__.py
PravyAI/DeepLearning
2f6c32f526e649139b1762f3700db20c0d9bd83a
[ "Apache-2.0" ]
null
null
null
__all__ = ["model"] from flask import Flask app = Flask(__name__) app.config.from_object('config') from app import views
15.375
32
0.747967
796d346528bef7823e8047f688ea91d115eeb2a2
1,581
py
Python
octopy/object_wrapper.py
srcc-msu/octotron
853701da7cfaa9f627417dcf5e4a2c22bc4a7b0c
[ "MIT" ]
1
2016-03-16T08:15:55.000Z
2016-03-16T08:15:55.000Z
octopy/object_wrapper.py
srcc-msu/octotron
853701da7cfaa9f627417dcf5e4a2c22bc4a7b0c
[ "MIT" ]
null
null
null
octopy/object_wrapper.py
srcc-msu/octotron
853701da7cfaa9f627417dcf5e4a2c22bc4a7b0c
[ "MIT" ]
null
null
null
from octopy.utils import * from ru.parallel.octotron.generators import ObjectFactory from ru.parallel.octotron.core.collections import ModelObjectList as ModelObjectList from octopy.const_wrapper import * from octopy.sensor_wrapper import * from octopy.var_wrapper import * from octopy.react_wrapper import * from octo...
32.9375
84
0.782416
796d35154e0037e1c0684b35749a83cb6fd27338
5,339
py
Python
python/docs/source/conf.py
mirca/least-absolute-deviations
d6e8463e0bfd38000e4696c7048f5935df6b304e
[ "MIT" ]
4
2018-07-14T02:56:25.000Z
2019-10-12T10:12:30.000Z
python/docs/source/conf.py
mirca/least-absolute-deviations
d6e8463e0bfd38000e4696c7048f5935df6b304e
[ "MIT" ]
5
2018-06-10T13:11:39.000Z
2019-03-19T16:14:59.000Z
python/docs/source/conf.py
mirca/least-absolute-deviations
d6e8463e0bfd38000e4696c7048f5935df6b304e
[ "MIT" ]
2
2019-03-19T16:11:17.000Z
2019-07-01T08:46:53.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # lad documentation build configuration file, created by # sphinx-quickstart on Fri Nov 17 08:53:26 2017. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autoge...
29.994382
79
0.678966
796d36cdaad9ede2c4777540f4e049958aae2bb0
1,978
py
Python
src/clarityv2/work_entries/admin.py
Clarity-89/clarityv2
7c4af765c5473778fc0750d1505f8b5f1724e5c5
[ "MIT" ]
null
null
null
src/clarityv2/work_entries/admin.py
Clarity-89/clarityv2
7c4af765c5473778fc0750d1505f8b5f1724e5c5
[ "MIT" ]
1
2022-03-11T23:38:16.000Z
2022-03-11T23:38:16.000Z
src/clarityv2/work_entries/admin.py
Clarity-89/clarityv2
7c4af765c5473778fc0750d1505f8b5f1724e5c5
[ "MIT" ]
null
null
null
import datetime from datetime import timedelta from django.contrib import admin from django.contrib.admin.filters import DateFieldListFilter from django.db.models import Sum from django.utils import timezone from django.utils.translation import gettext_lazy as _ from import_export.admin import ImportExportActionModel...
37.320755
96
0.673407
796d36d8c3afbafe09773f1694bf118775a6753d
20
py
Python
urlmap/__init__.py
amyhoo/data_backend
300a83354ff0f850ce273dacac61379c35d3fab9
[ "BSD-3-Clause" ]
null
null
null
urlmap/__init__.py
amyhoo/data_backend
300a83354ff0f850ce273dacac61379c35d3fab9
[ "BSD-3-Clause" ]
null
null
null
urlmap/__init__.py
amyhoo/data_backend
300a83354ff0f850ce273dacac61379c35d3fab9
[ "BSD-3-Clause" ]
null
null
null
__author__ = 'min'
10
19
0.65
796d375efb7aa86992be3eec1e1d8e6b22a059be
2,085
py
Python
source-code/streamlit/map_maker/map_maker_app.py
gjbex/Python-for-data-science
6eeb7214b5f54e40d79323d328972a6bf72974cf
[ "CC-BY-4.0" ]
6
2020-12-15T09:02:07.000Z
2022-03-24T07:36:44.000Z
source-code/streamlit/map_maker/map_maker_app.py
gjbex/Python-for-data-science
6eeb7214b5f54e40d79323d328972a6bf72974cf
[ "CC-BY-4.0" ]
null
null
null
source-code/streamlit/map_maker/map_maker_app.py
gjbex/Python-for-data-science
6eeb7214b5f54e40d79323d328972a6bf72974cf
[ "CC-BY-4.0" ]
10
2019-12-02T08:11:28.000Z
2022-03-18T12:19:06.000Z
#!/usr/bin/env python import altair_saver from map_maker_lib import create_topo_data, read_file, validate_data, \ create_plot, DATA_TYPES, DELIMITERS, COLOR_SCHEMES import streamlit as st BE_GEO_URL = 'https://gist.githubusercontent.com/jandot/ba7eff2e15a38c6f809ba5e8bd8b6977/raw/eb49ce8dd2604e558e10e15d9a38...
42.55102
171
0.632134
796d391eece0bcd04fdcdd5f76b197eea5ced3f5
4,302
py
Python
examples/save_from_firefox.py
metoo10987/pywinauto
a8a02b36b9ffefa684bf6f9ebcf9c90196ae7b8f
[ "BSD-3-Clause" ]
1
2021-01-24T12:33:13.000Z
2021-01-24T12:33:13.000Z
examples/save_from_firefox.py
segalion/pywinauto
ed6c46b3d5c6b8625f15d7658e395a32e9c4553b
[ "BSD-3-Clause" ]
4
2021-06-08T23:56:09.000Z
2022-03-12T00:56:42.000Z
examples/save_from_firefox.py
segalion/pywinauto
ed6c46b3d5c6b8625f15d7658e395a32e9c4553b
[ "BSD-3-Clause" ]
1
2022-01-05T05:21:35.000Z
2022-01-05T05:21:35.000Z
# GUI Application automation and testing library # Copyright (C) 2006-2017 Mark Mc Mahon and Contributors # https://github.com/pywinauto/pywinauto/graphs/contributors # http://pywinauto.readthedocs.io/en/latest/credits.html # All rights reserved. # # Redistribution and use in source and binary forms, with or with...
36.769231
82
0.725941
796d39d6296497391ea8c8e1bc60b1e44f9c782a
4,468
py
Python
proto/marshal/collections/repeated.py
crwilcox/proto-plus-python
e137b15e37dff65a4860d35cd163aa0dafc27c9e
[ "Apache-2.0" ]
null
null
null
proto/marshal/collections/repeated.py
crwilcox/proto-plus-python
e137b15e37dff65a4860d35cd163aa0dafc27c9e
[ "Apache-2.0" ]
null
null
null
proto/marshal/collections/repeated.py
crwilcox/proto-plus-python
e137b15e37dff65a4860d35cd163aa0dafc27c9e
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 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, ...
33.343284
78
0.640555
796d3a1ef2e785f108624ee0a55f5376ec4c583f
14,944
py
Python
backend/pyWebscrap.py
birdie0111/Intershiplz
602005d1d249e51854e0b77067daf6a7f5aea205
[ "MIT" ]
null
null
null
backend/pyWebscrap.py
birdie0111/Intershiplz
602005d1d249e51854e0b77067daf6a7f5aea205
[ "MIT" ]
null
null
null
backend/pyWebscrap.py
birdie0111/Intershiplz
602005d1d249e51854e0b77067daf6a7f5aea205
[ "MIT" ]
null
null
null
from bs4 import BeautifulSoup # retourne un parse-tree # pour sélectionné par xpath from lxml import etree # retourne un parse-tree pour # sélectionné par xpath import requests # envoyer request HTTP import datetime ...
37.36
162
0.552262
796d3b38d0da30a70b995aad34153430c67a0d7e
2,092
py
Python
version.py
karunakarhv/zulip
d5a0c1ede57dc5afae499b2f078dc6efbe11bf11
[ "Apache-2.0" ]
null
null
null
version.py
karunakarhv/zulip
d5a0c1ede57dc5afae499b2f078dc6efbe11bf11
[ "Apache-2.0" ]
null
null
null
version.py
karunakarhv/zulip
d5a0c1ede57dc5afae499b2f078dc6efbe11bf11
[ "Apache-2.0" ]
null
null
null
import os ZULIP_VERSION = "5.0-dev+git" # Add information on number of commits and commit hash to version, if available zulip_git_version_file = os.path.join( os.path.dirname(os.path.abspath(__file__)), "zulip-git-version" ) lines = [ZULIP_VERSION, ""] if os.path.exists(zulip_git_version_file): with open(zuli...
40.230769
85
0.766252
796d3c8cd722ff8745128a56c596c0b564a86e4c
268
py
Python
value/deliverables/meetings/validators.py
M3SOulu/value
9e320fd97427f6cc448144f9f6f02e8476c253c2
[ "MIT" ]
2
2020-01-18T20:26:29.000Z
2020-01-23T00:40:57.000Z
value/deliverables/meetings/validators.py
M3SOulu/value
9e320fd97427f6cc448144f9f6f02e8476c253c2
[ "MIT" ]
5
2020-03-24T17:43:03.000Z
2021-06-10T22:09:55.000Z
value/deliverables/meetings/validators.py
vitorfs/value
f0aaa726608480893bed7b700e6e9f4537045fe9
[ "MIT" ]
null
null
null
# coding: utf-8 from django.core.exceptions import ValidationError from django.utils.translation import ugettext_lazy as _ def validate_scenarios_selection(value): if len(value) != 2: raise ValidationError(_('Select exactly two scenarios to compare.'))
26.8
76
0.764925
796d3d7d56ba186f780a2b2295d9d59d3b8ab2d3
143
py
Python
tests/integrations/django/myapp/routing.py
adamchainz/sentry-python
d8c161fb289b44b5cd4b83d0bb31112031925713
[ "BSD-2-Clause" ]
null
null
null
tests/integrations/django/myapp/routing.py
adamchainz/sentry-python
d8c161fb289b44b5cd4b83d0bb31112031925713
[ "BSD-2-Clause" ]
null
null
null
tests/integrations/django/myapp/routing.py
adamchainz/sentry-python
d8c161fb289b44b5cd4b83d0bb31112031925713
[ "BSD-2-Clause" ]
1
2020-05-18T19:15:15.000Z
2020-05-18T19:15:15.000Z
from channels.http import AsgiHandler from channels.routing import ProtocolTypeRouter application = ProtocolTypeRouter({"http": AsgiHandler})
28.6
55
0.839161
796d3f0b2416c68a421ecb6cb34ad90c448039bb
1,383
py
Python
db/AppPerm.py
markraemer/mH-PriSe
1555c4c7e6457c3bb5bce3b6dae9c514ed7fc3d3
[ "MIT" ]
1
2016-12-02T06:50:44.000Z
2016-12-02T06:50:44.000Z
db/AppPerm.py
markraemer/mH-PriSe
1555c4c7e6457c3bb5bce3b6dae9c514ed7fc3d3
[ "MIT" ]
null
null
null
db/AppPerm.py
markraemer/mH-PriSe
1555c4c7e6457c3bb5bce3b6dae9c514ed7fc3d3
[ "MIT" ]
null
null
null
import _mysql_exceptions from db.helper import * class AppPerm(): id_app = None id_perm = None def insert(self): sql = "select id from permissions where name=%s;" cur.execute(sql,[self.id_perm]) if cur.rowcount == 0: sql = "insert into permissions (name) values (%s);...
27.66
78
0.582791
796d40241fbf867452f66a2e5180ff1ce511a459
1,655
py
Python
tradingview_fxheatmap.py
project-k-0-1/project-k
fa5be043a3c82daee992d28db25519e2b1b53289
[ "MIT" ]
1
2018-11-30T17:09:11.000Z
2018-11-30T17:09:11.000Z
tradingview_fxheatmap.py
Kahroo/kahroo
fa5be043a3c82daee992d28db25519e2b1b53289
[ "MIT" ]
null
null
null
tradingview_fxheatmap.py
Kahroo/kahroo
fa5be043a3c82daee992d28db25519e2b1b53289
[ "MIT" ]
2
2020-12-03T04:30:45.000Z
2021-04-21T09:59:37.000Z
""" Tradingview FX heatmap """ from sa_func import get_broker_affiliate_link from app_cookie import get_sa_theme def get_tradingview_fxheatmap(width, height, show_copyright): """ Get Tradingview FX heatmap """ return_data = '' tradingview_copyright = '' url = get_broker_affiliate_link('Tradingview', 'b...
30.090909
116
0.526284
796d409e119122659a99e441343dec4a07f1ede0
1,324
py
Python
build/catkin_generated/generate_cached_setup.py
Sharma117555448/enpm808x_inspection_robot
d9374bcbb07724916d37ad7d42e4884572c03613
[ "MIT" ]
null
null
null
build/catkin_generated/generate_cached_setup.py
Sharma117555448/enpm808x_inspection_robot
d9374bcbb07724916d37ad7d42e4884572c03613
[ "MIT" ]
null
null
null
build/catkin_generated/generate_cached_setup.py
Sharma117555448/enpm808x_inspection_robot
d9374bcbb07724916d37ad7d42e4884572c03613
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import print_function import os import stat import sys # find the import for catkin's python package - either from source space or from an installed underlay if os.path.exists(os.path.join('/opt/ros/melodic/share/catkin/cmake', 'catkinConfig.cmake.in')): sys.path.insert(0, ...
42.709677
110
0.740181
796d416106a0931d4820fd68c4e430c00ef30e52
3,521
py
Python
utils/utils.py
AlexLaur/word_blitz_solver
b5f51817cff3388273341f5d611f1e5ec5ca48e7
[ "MIT" ]
null
null
null
utils/utils.py
AlexLaur/word_blitz_solver
b5f51817cff3388273341f5d611f1e5ec5ca48e7
[ "MIT" ]
null
null
null
utils/utils.py
AlexLaur/word_blitz_solver
b5f51817cff3388273341f5d611f1e5ec5ca48e7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # - utils - # # All utils functions to work arround tests on words. # # 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 limitati...
32.906542
81
0.70889
796d43e69912172db0ac24d868ad9d11a84eb1c3
10,487
py
Python
{{cookiecutter.repo_name}}/docs/sphinx/conf.py
havok2063/cookiecutter-marvin
3e64169b865012c5a6099e71a91789770222e5b5
[ "BSD-3-Clause" ]
null
null
null
{{cookiecutter.repo_name}}/docs/sphinx/conf.py
havok2063/cookiecutter-marvin
3e64169b865012c5a6099e71a91789770222e5b5
[ "BSD-3-Clause" ]
null
null
null
{{cookiecutter.repo_name}}/docs/sphinx/conf.py
havok2063/cookiecutter-marvin
3e64169b865012c5a6099e71a91789770222e5b5
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Marvin documentation build configuration file, created by # sphinx-quickstart on Sun Apr 10 08:50:42 2016. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # Al...
33.292063
87
0.719462
796d44d3e9335fce55a66bd2e1442e5fc732e350
899
py
Python
Imaginary/2021/crypto/Caesar_Tart/caesartart.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
Imaginary/2021/crypto/Caesar_Tart/caesartart.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
Imaginary/2021/crypto/Caesar_Tart/caesartart.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
from random import randint with open('message.txt', 'r') as file: msg = ''.join(filter(str.isalpha, file.read().strip().upper())) def caesar(a, key): return chr(((ord(a) - 0x41 + key) % 26) + 0x41) keys = [randint(0, 25) for _ in range(randint(5, 10))] enc = [] for i, c in enumerate(msg): enc...
59.933333
514
0.8198
796d44dc7877a278bff5751a23af6a593d7621b2
48,820
py
Python
pandas/io/parsers/readers.py
AnglinaBhambra/pandas
c03164e8daa812193baa99378fded16695f3ef51
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
1
2021-12-07T13:37:31.000Z
2021-12-07T13:37:31.000Z
pandas/io/parsers/readers.py
AnglinaBhambra/pandas
c03164e8daa812193baa99378fded16695f3ef51
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
1
2021-05-11T00:05:40.000Z
2021-05-11T00:05:40.000Z
pandas/io/parsers/readers.py
AnglinaBhambra/pandas
c03164e8daa812193baa99378fded16695f3ef51
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
1
2018-08-02T06:29:14.000Z
2018-08-02T06:29:14.000Z
""" Module contains tools for processing files into DataFrames or other objects """ from collections import abc import csv import sys from textwrap import fill from typing import ( Any, Dict, List, Optional, Set, Type, ) import warnings import numpy as np import pandas._libs.lib as lib from pa...
35.557174
87
0.642524
796d464964049d40020f36a681fbca37a2b41957
48,151
py
Python
tests/system_test.py
bhardesty/qpid-dispatch
ee82acda5656ca0b5bb6ef86b9869f9ecfac1559
[ "Apache-2.0" ]
null
null
null
tests/system_test.py
bhardesty/qpid-dispatch
ee82acda5656ca0b5bb6ef86b9869f9ecfac1559
[ "Apache-2.0" ]
null
null
null
tests/system_test.py
bhardesty/qpid-dispatch
ee82acda5656ca0b5bb6ef86b9869f9ecfac1559
[ "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...
36.869066
129
0.597433
796d4730d9b2a163bd222b7252baa4f468bc3a4f
14,512
py
Python
gammapy/irf/psf_3d.py
qpiel/gammapy
cfb976909e63f4d5d578e1495245c0baad69482b
[ "BSD-3-Clause" ]
null
null
null
gammapy/irf/psf_3d.py
qpiel/gammapy
cfb976909e63f4d5d578e1495245c0baad69482b
[ "BSD-3-Clause" ]
1
2020-10-29T19:55:46.000Z
2020-10-29T19:55:46.000Z
gammapy/irf/psf_3d.py
qpiel/gammapy
cfb976909e63f4d5d578e1495245c0baad69482b
[ "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst from __future__ import absolute_import, division, print_function, unicode_literals import numpy as np from scipy.interpolate import RegularGridInterpolator from astropy.table import Table from astropy.io import fits from astropy.units import Quantity from ...
32.538117
87
0.576213
796d479f4baabc33cd9cc8f511b3b33dc2804717
713
py
Python
tests/test_sort_with_precedence.py
riyasyash/CompetitiveProgramming
9cb5c71a2b4297fa8681f0e380ee7a7bb3ee5b5e
[ "Apache-2.0" ]
null
null
null
tests/test_sort_with_precedence.py
riyasyash/CompetitiveProgramming
9cb5c71a2b4297fa8681f0e380ee7a7bb3ee5b5e
[ "Apache-2.0" ]
79
2019-01-26T10:45:16.000Z
2022-02-21T22:16:24.000Z
tests/test_sort_with_precedence.py
riyasyash/CompetitiveProgramming
9cb5c71a2b4297fa8681f0e380ee7a7bb3ee5b5e
[ "Apache-2.0" ]
null
null
null
import unittest from Sorting.sort_with_presedence import SortWithPrecedence class TestSortWithPrecedence(unittest.TestCase): def setUp(self): self.listA_1 = [3, 4, 7, 8, 1, 3] self.listB_1 = [8, 3, 6, 10] self.listA_2 = [3, 4, 7, 8, 1, 3] self.listB_2 = [4, 3, 6, 1] self...
33.952381
99
0.607293
796d4984d23df68826a22ddc988e0d4f3e8a6f7a
1,427
py
Python
mmcap/models/builder.py
hnp0411/mmcaptioning
47bcdee3734cdaaa96a34e927cdec5cc43cab538
[ "Apache-2.0" ]
null
null
null
mmcap/models/builder.py
hnp0411/mmcaptioning
47bcdee3734cdaaa96a34e927cdec5cc43cab538
[ "Apache-2.0" ]
null
null
null
mmcap/models/builder.py
hnp0411/mmcaptioning
47bcdee3734cdaaa96a34e927cdec5cc43cab538
[ "Apache-2.0" ]
null
null
null
""" Luke """ from mmcv.utils import Registry, build_from_cfg from torch import nn ENCODERS = Registry('encoder') BACKBONES = Registry('backbone') NECKS = Registry('neck') DECODERS = Registry('decoder') LOSSES = Registry('loss') CAPTIONS = Registry('captions') def build(cfg, registry, default_args=None): """B...
20.681159
77
0.639103
796d49b0063477e93620d15e350b9a49e95351f3
29,242
py
Python
scripts/external_libs/scapy-2.4.3/scapy/volatile.py
EgorBlagov/trex-core
091b0cd622bd9f140f947f09934a8b54c697adb6
[ "Apache-2.0" ]
9
2021-10-01T22:02:58.000Z
2021-11-09T17:48:45.000Z
scripts/external_libs/scapy-2.4.3/scapy/volatile.py
sngx001/trex-core
28b3980858da88c3bc46dd86567c5cb292d018b1
[ "Apache-2.0" ]
null
null
null
scripts/external_libs/scapy-2.4.3/scapy/volatile.py
sngx001/trex-core
28b3980858da88c3bc46dd86567c5cb292d018b1
[ "Apache-2.0" ]
null
null
null
# This file is part of Scapy # See http://www.secdev.org/projects/scapy for more information # Copyright (C) Philippe Biondi <phil@secdev.org> # Copyright (C) Michael Farrell <micolous+git@gmail.com> # Copyright (C) Gauthier Sebaux # This program is published under a GPLv2 license """ Fields that hold random numbers. ...
29.096517
121
0.481397
796d49f3d5c9abb762a26263a4e564faf0e0c7bd
5,452
py
Python
auth/tests.py
ujlbu4/vas3k.club
1ec907cf7e5ae3a74059cde8729ca0b3e2d55a3e
[ "MIT" ]
496
2020-04-24T04:20:32.000Z
2022-03-31T21:55:57.000Z
auth/tests.py
ujlbu4/vas3k.club
1ec907cf7e5ae3a74059cde8729ca0b3e2d55a3e
[ "MIT" ]
642
2020-04-24T11:54:13.000Z
2022-03-26T15:41:06.000Z
auth/tests.py
ujlbu4/vas3k.club
1ec907cf7e5ae3a74059cde8729ca0b3e2d55a3e
[ "MIT" ]
243
2020-04-24T11:49:11.000Z
2022-03-24T18:38:48.000Z
from datetime import datetime, timedelta import django from django.conf import settings from django.test import TestCase django.setup() # todo: how to run tests from PyCharm without this workaround? from auth.models import Code from club.exceptions import RateLimitException, InvalidCode from users.models.user impor...
43.269841
117
0.703778
796d4a06a520cb15f496c79eba0df9514acbf23d
606
py
Python
operators/utils/msg2file/script_test.py
thhapke/dilocal
1d3c1b7b1a4513e9bff7efd77f680f66014ff499
[ "MIT" ]
null
null
null
operators/utils/msg2file/script_test.py
thhapke/dilocal
1d3c1b7b1a4513e9bff7efd77f680f66014ff499
[ "MIT" ]
null
null
null
operators/utils/msg2file/script_test.py
thhapke/dilocal
1d3c1b7b1a4513e9bff7efd77f680f66014ff499
[ "MIT" ]
null
null
null
import sys from os.path import dirname, join, abspath proj_dir = join(dirname(dirname(dirname(dirname(abspath(__file__)))))) sys.path.insert(0, proj_dir) import script from diadmin.dimockapi.mock_api import mock_api from diadmin.dimockapi.mock_inport import operator_test api = mock_api(__file__) # class instance ...
26.347826
74
0.782178
796d4a2af3eedda5e0bde9cd3c4d8b0539663400
345
py
Python
core/dcs/error.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
84
2017-10-22T11:01:39.000Z
2022-02-27T03:43:48.000Z
core/dcs/error.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
22
2017-12-11T07:21:56.000Z
2021-09-23T02:53:50.000Z
core/dcs/error.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
23
2017-12-06T06:59:52.000Z
2022-02-24T00:02:25.000Z
# ---------------------------------------------------------------------- # DCS errors # ---------------------------------------------------------------------- # Copyright (C) 2007-2017 The NOC Project # See LICENSE for details # ---------------------------------------------------------------------- class ResolutionEr...
31.363636
72
0.269565
796d4b0009e18635e8147af6814510aaa6e9de8a
15,876
py
Python
words2map.py
vishalbelsare/words2map
25705a7d655853ab254e4f4218186eb65b58d3f1
[ "MIT" ]
338
2016-07-05T23:18:51.000Z
2020-09-14T09:43:07.000Z
words2map.py
vishalbelsare/words2map
25705a7d655853ab254e4f4218186eb65b58d3f1
[ "MIT" ]
7
2016-07-26T20:03:37.000Z
2019-01-08T13:08:02.000Z
words2map.py
vishalbelsare/words2map
25705a7d655853ab254e4f4218186eb65b58d3f1
[ "MIT" ]
40
2016-07-26T17:50:16.000Z
2020-04-27T11:27:15.000Z
# -*- coding: utf-8 -*- from __future__ import division import numpy as np from gensim.models import Word2Vec from sklearn.manifold import TSNE from hdbscan import HDBSCAN from nltk import tokenize, bigrams, trigrams, everygrams, FreqDist, corpus from pattern.web import Google, SEARCH, download, plaintext, HTTPError, H...
51.882353
683
0.751764
796d4b52e6d0de2c0bb22aa54882a4891b5b7268
4,452
py
Python
leads/migrations/0001_initial.py
SamratDe/CRM
2ea1c378ecff021a0bddee6c74f97c411279327a
[ "Apache-2.0" ]
null
null
null
leads/migrations/0001_initial.py
SamratDe/CRM
2ea1c378ecff021a0bddee6c74f97c411279327a
[ "Apache-2.0" ]
null
null
null
leads/migrations/0001_initial.py
SamratDe/CRM
2ea1c378ecff021a0bddee6c74f97c411279327a
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.2.1 on 2021-06-15 09:59 from django.conf import settings import django.contrib.auth.models import django.contrib.auth.validators from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): initial = True ...
55.65
329
0.634771
796d4c9f25f871b763944a2030a234b784272e3c
143
py
Python
beacon_app.py
ContinuumBridge/simple_beacon_handler
345b091eabcfc4f8358cb110779d6d3d8f8b4aa4
[ "MIT" ]
null
null
null
beacon_app.py
ContinuumBridge/simple_beacon_handler
345b091eabcfc4f8358cb110779d6d3d8f8b4aa4
[ "MIT" ]
null
null
null
beacon_app.py
ContinuumBridge/simple_beacon_handler
345b091eabcfc4f8358cb110779d6d3d8f8b4aa4
[ "MIT" ]
null
null
null
#!/usr/bin/env python # beacon_app.py """ Copyright (c) 2015 ContinuumBridge Limited """ import sys from beacon_app_a import App App(sys.argv)
15.888889
42
0.748252
796d4cd8ad6e3c330fb28e7b02b9a88492e0f9bb
3,462
py
Python
ramjet/photometric_database/derived/tess_two_minute_cadence_transit_light_curve_collections.py
golmschenk/ramjet
77fb4481a15088923308fda09804d80455d1a9cf
[ "Apache-2.0" ]
3
2020-11-23T18:47:37.000Z
2021-08-05T17:45:51.000Z
ramjet/photometric_database/derived/tess_two_minute_cadence_transit_light_curve_collections.py
golmschenk/ramjet
77fb4481a15088923308fda09804d80455d1a9cf
[ "Apache-2.0" ]
5
2021-08-19T00:54:57.000Z
2022-02-10T00:15:40.000Z
ramjet/photometric_database/derived/tess_two_minute_cadence_transit_light_curve_collections.py
golmschenk/ramjet
77fb4481a15088923308fda09804d80455d1a9cf
[ "Apache-2.0" ]
3
2019-07-12T21:00:57.000Z
2020-06-03T22:18:13.000Z
""" Code representing the collection of TESS two minute cadence light curves containing transits. """ from typing import List, Union from peewee import Select from ramjet.data_interface.tess_transit_metadata_manager import TessTransitMetadata, Disposition from ramjet.data_interface.tess_two_minute_cadence_light_curve_...
43.822785
117
0.74379
796d4cfab6812e0c0e8928ecd15d16a9a3a9a0f6
220
py
Python
src/mist/api/rules/schedulers.py
vladimir-ilyashenko/mist.api
f77c451679732ac1cfdafa85ad023c7c170faec4
[ "Apache-2.0" ]
null
null
null
src/mist/api/rules/schedulers.py
vladimir-ilyashenko/mist.api
f77c451679732ac1cfdafa85ad023c7c170faec4
[ "Apache-2.0" ]
null
null
null
src/mist/api/rules/schedulers.py
vladimir-ilyashenko/mist.api
f77c451679732ac1cfdafa85ad023c7c170faec4
[ "Apache-2.0" ]
null
null
null
from celerybeatmongo.schedulers import MongoScheduler from mist.api.rules.models import Rule import datetime class RuleScheduler(MongoScheduler): Model = Rule UPDATE_INTERVAL = datetime.timedelta(seconds=20)
20
53
0.804545
796d4d6fde65fd042bea4d493fce170b5a18e2f9
2,901
py
Python
signal processing assignment 1.py
inamdarmusab/audio-filter
c30b3b9560c99b5466ce319b93ff26bf109c8dd1
[ "MIT" ]
null
null
null
signal processing assignment 1.py
inamdarmusab/audio-filter
c30b3b9560c99b5466ce319b93ff26bf109c8dd1
[ "MIT" ]
null
null
null
signal processing assignment 1.py
inamdarmusab/audio-filter
c30b3b9560c99b5466ce319b93ff26bf109c8dd1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sun May 30 09:37:04 2021 @author: Musab Inamdar """ # make a random image from matplotlib import pyplot as plt import numpy as np import scipy.signal as signal # 1)plot 3 sine wave # f1 = 2100 # f2 = 2400 # f3 = 2500 # 2) plot 3 cosine wave / #...
16.866279
140
0.572561
796d4e7f9fc3ac0a5f729e4d10a5cfb57f535771
1,078
py
Python
survol/sources_types/AC2/AC2_configurations_list.py
AugustinMascarelli/survol
7a822900e82d1e6f016dba014af5741558b78f15
[ "BSD-3-Clause" ]
null
null
null
survol/sources_types/AC2/AC2_configurations_list.py
AugustinMascarelli/survol
7a822900e82d1e6f016dba014af5741558b78f15
[ "BSD-3-Clause" ]
null
null
null
survol/sources_types/AC2/AC2_configurations_list.py
AugustinMascarelli/survol
7a822900e82d1e6f016dba014af5741558b78f15
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python """ Available AC2 configurations """ import os import sys import lib_util import lib_common def Main(): cgiEnv = lib_common.CgiEnv() grph = cgiEnv.GetGraph() # List xml config files in the directory given by the environment variable "XCOMP_AC2_BASE" which by default is "C:\AC2" envVarNam ...
25.069767
121
0.72449
796d4eaea4e9521359a9425d22b79303d7da33e7
394
py
Python
scripts/get_the_winner_address.py
jarekdrabek/simple-lottery
9da4366b5329e6fefab8883412104c37a656141a
[ "MIT" ]
null
null
null
scripts/get_the_winner_address.py
jarekdrabek/simple-lottery
9da4366b5329e6fefab8883412104c37a656141a
[ "MIT" ]
null
null
null
scripts/get_the_winner_address.py
jarekdrabek/simple-lottery
9da4366b5329e6fefab8883412104c37a656141a
[ "MIT" ]
null
null
null
from brownie import Contract, network, config, Lottery def get_the_winner_address(): contract_adress = config["contract"][network.show_active()]["address"] lottery_contract = Contract.from_abi('Lottery', contract_adress, Lottery.abi) winner_address = lottery_contract.winner() print( f"The win...
24.625
81
0.720812
796d4ee8a2ed3a6106dff67b3f80db4d2190f303
522
py
Python
Exercise 17./ex17.py
paaaron/-Learn-Python-3-the-Hard-Way
ce452cb0f3a7b43b71b53a388f5fd52aab61ad2f
[ "MIT" ]
null
null
null
Exercise 17./ex17.py
paaaron/-Learn-Python-3-the-Hard-Way
ce452cb0f3a7b43b71b53a388f5fd52aab61ad2f
[ "MIT" ]
null
null
null
Exercise 17./ex17.py
paaaron/-Learn-Python-3-the-Hard-Way
ce452cb0f3a7b43b71b53a388f5fd52aab61ad2f
[ "MIT" ]
null
null
null
from sys import argv from os.path import exists script, from_file, to_file = argv print(f"Copying from {from_file} to {to_file}") # we could to these two in one file, how? in_file = open(from_file) in_data = in_file.read() print(f"The input file is {len(in_data)} bytes long") print(f"Does the output file exist? {e...
21.75
56
0.722222
796d4f0ecf8ec0d1f6e49dd2a411ec80cd0b95e0
9,472
py
Python
tests/test_safebox_eth.py
Sagar133/alpha-homora-v2-public-contract
1e8bb6eda6da27b24a15b99eca049bb6f8406d08
[ "MIT" ]
58
2020-12-03T04:08:52.000Z
2021-07-16T18:56:48.000Z
tests/test_safebox_eth.py
Sagar133/alpha-homora-v2-public-contract
1e8bb6eda6da27b24a15b99eca049bb6f8406d08
[ "MIT" ]
7
2021-01-23T22:04:58.000Z
2021-02-25T08:41:41.000Z
tests/test_safebox_eth.py
Sagar133/alpha-homora-v2-public-contract
1e8bb6eda6da27b24a15b99eca049bb6f8406d08
[ "MIT" ]
28
2020-12-18T10:50:26.000Z
2021-07-02T18:11:15.000Z
import pytest import brownie from brownie import interface from utils import * def test_governor(admin, safebox_eth): assert safebox_eth.governor() == admin def test_pending_governor(safebox_eth): assert safebox_eth.pendingGovernor() == '0x0000000000000000000000000000000000000000' def test_set_governor(ad...
44.469484
144
0.731841
796d4f14a99a2b7a9db2cb5a5211003a953bdccf
2,165
py
Python
epytope/Data/pssms/tepitopepan/mat/DRB1_1209_9.py
christopher-mohr/epytope
8ac9fe52c0b263bdb03235a5a6dffcb72012a4fd
[ "BSD-3-Clause" ]
7
2021-02-01T18:11:28.000Z
2022-01-31T19:14:07.000Z
epytope/Data/pssms/tepitopepan/mat/DRB1_1209_9.py
christopher-mohr/epytope
8ac9fe52c0b263bdb03235a5a6dffcb72012a4fd
[ "BSD-3-Clause" ]
22
2021-01-02T15:25:23.000Z
2022-03-14T11:32:53.000Z
epytope/Data/pssms/tepitopepan/mat/DRB1_1209_9.py
christopher-mohr/epytope
8ac9fe52c0b263bdb03235a5a6dffcb72012a4fd
[ "BSD-3-Clause" ]
4
2021-05-28T08:50:38.000Z
2022-03-14T11:45:32.000Z
DRB1_1209_9 = {0: {'A': -999.0, 'E': -999.0, 'D': -999.0, 'G': -999.0, 'F': -0.99657, 'I': -0.003434, 'H': -999.0, 'K': -999.0, 'M': -0.003434, 'L': -0.003434, 'N': -999.0, 'Q': -999.0, 'P': -999.0, 'S': -999.0, 'R': -999.0, 'T': -999.0, 'W': -0.99657, 'V': -0.003434, 'Y': -0.99657}, 1: {'A': 0.0, 'E': 0.1, 'D': -1.3, ...
2,165
2,165
0.394457
796d4f7c0cf9ed9dd48813fe39d410dc3f82b309
1,467
py
Python
examples/plotting/server/stocks.py
rothnic/bokeh
8da5e16b260a75caa8e7ef4caf215bb93dd784db
[ "BSD-3-Clause" ]
1
2015-07-17T13:57:01.000Z
2015-07-17T13:57:01.000Z
examples/plotting/server/stocks.py
evidation-health/bokeh
2c580d93419033b962d36e3c46d7606cc2f24606
[ "BSD-3-Clause" ]
null
null
null
examples/plotting/server/stocks.py
evidation-health/bokeh
2c580d93419033b962d36e3c46d7606cc2f24606
[ "BSD-3-Clause" ]
1
2016-03-18T03:01:59.000Z
2016-03-18T03:01:59.000Z
# The plot server must be running # Go to http://localhost:5006/bokeh to view this plot import numpy as np from bokeh.sampledata.stocks import AAPL, FB, GOOG, IBM, MSFT from bokeh.plotting import figure, show, output_server, vplot output_server("stocks") p1 = figure(x_axis_type = "datetime") p1.line(np.array(AAPL[...
33.340909
89
0.710293
796d4fbf930968ba1319cadb95ef16bb31c382f9
4,394
py
Python
stlearn/plotting/cci_plot.py
BiomedicalMachineLearning/stLearn
3cf0bc6e76aef44a81f2163064791ba0150a7429
[ "BSD-3-Clause" ]
67
2020-06-01T05:19:23.000Z
2022-03-31T20:47:50.000Z
stlearn/plotting/cci_plot.py
BiomedicalMachineLearning/stLearn
3cf0bc6e76aef44a81f2163064791ba0150a7429
[ "BSD-3-Clause" ]
34
2020-11-02T18:01:43.000Z
2022-03-16T21:58:54.000Z
stlearn/plotting/cci_plot.py
BiomedicalMachineLearning/stLearn
3cf0bc6e76aef44a81f2163064791ba0150a7429
[ "BSD-3-Clause" ]
13
2020-05-14T05:10:22.000Z
2022-03-09T14:05:38.000Z
from matplotlib import pyplot as plt import matplotlib import pandas as pd import numpy as np import seaborn as sns import sys from anndata import AnnData from typing import Optional, Union from typing import Optional, Union, Mapping # Special from typing import Sequence, Iterable # ABCs from typing import Tuple # ...
26.957055
80
0.614247
796d4fcb9b382e6767f2140c16c150177500f015
2,521
py
Python
services/github.py
psobot/biographer
4968162a617edd766c01f7e49ff26e6b74abb085
[ "MIT-0" ]
1
2015-09-01T17:17:43.000Z
2015-09-01T17:17:43.000Z
services/github.py
psobot/biographer
4968162a617edd766c01f7e49ff26e6b74abb085
[ "MIT-0" ]
null
null
null
services/github.py
psobot/biographer
4968162a617edd766c01f7e49ff26e6b74abb085
[ "MIT-0" ]
null
null
null
import logging import requests import json from getpass import getpass from lib.service import Service, requires_authentication,\ invalidates_cache, cached_property log = logging.getLogger(__name__) # Fix annoying log output. logging.getLogger('requests').setLevel(logging.WARNING) class G...
31.5125
87
0.618009
796d52d482201dc03caa30f99f5ad1738d315e0e
2,939
py
Python
ios/dateparser/lib/python2.7/site-packages/umalqurra/hijri.py
mpercich/Calendarize
d658962d5d205f878afd9876cb64b5381964f112
[ "MIT" ]
null
null
null
ios/dateparser/lib/python2.7/site-packages/umalqurra/hijri.py
mpercich/Calendarize
d658962d5d205f878afd9876cb64b5381964f112
[ "MIT" ]
null
null
null
ios/dateparser/lib/python2.7/site-packages/umalqurra/hijri.py
mpercich/Calendarize
d658962d5d205f878afd9876cb64b5381964f112
[ "MIT" ]
null
null
null
import math from ummalqura_arrray import UmalqurraArray ''' This class is responsoble to convert from Hijri to Gregorian or from Gregorian to Hijri The algrothem was converted from java script to python by Khalid Al-hussayen in 1436-3-14 2015-1-5 The orjinal source developed by Suhail Alkowaileet the source url https:...
39.186667
143
0.572644
796d54a066a45fcbe295388eb7442d53bd0ae306
2,210
py
Python
chat/views.py
ianahart/devtrove
b743881a5a4b470ffb235bb2311b9a71952ad05b
[ "MIT" ]
null
null
null
chat/views.py
ianahart/devtrove
b743881a5a4b470ffb235bb2311b9a71952ad05b
[ "MIT" ]
null
null
null
chat/views.py
ianahart/devtrove
b743881a5a4b470ffb235bb2311b9a71952ad05b
[ "MIT" ]
null
null
null
from django.core.exceptions import BadRequest, ObjectDoesNotExist, PermissionDenied from typing import Optional from django.db.utils import OperationalError from django.shortcuts import render from rest_framework.views import APIView from rest_framework import status from rest_framework.response import Response from re...
38.77193
89
0.595928
796d54e355e5b92681354a53066e999b33246e90
2,738
py
Python
app/strategies/cdl_3bc_doji_timed_exit_strategy.py
namuan/crypto-rider
f5b47ada60a7cef07e66609e2e92993619c6bfbe
[ "MIT" ]
1
2022-01-18T19:06:20.000Z
2022-01-18T19:06:20.000Z
app/strategies/cdl_3bc_doji_timed_exit_strategy.py
namuan/crypto-rider
f5b47ada60a7cef07e66609e2e92993619c6bfbe
[ "MIT" ]
null
null
null
app/strategies/cdl_3bc_doji_timed_exit_strategy.py
namuan/crypto-rider
f5b47ada60a7cef07e66609e2e92993619c6bfbe
[ "MIT" ]
null
null
null
import talib as ta from app.strategies.base_strategy import BaseStrategy class CandleThreeBlackCrowsDojiTimedExitStrategy(BaseStrategy): def __init__(self, locator, params=dict()): BaseStrategy.__init__(self, locator) self.ll_candles = params.get("ll_candles") or 3 self.avg_vol_mulp = par...
35.102564
83
0.574872
796d54f5545f99e7868ceb8893ace1f03671e1e4
1,056
py
Python
Google/benchmarks/transformer/implementations/transformer-research-TF-tpu-v4-512/lingvo/core/test_helper.py
goswamig/training_results_v0.7
4278ce8a0f3d4db6b5e6054277724ca36278d7a3
[ "Apache-2.0" ]
48
2020-07-29T18:09:23.000Z
2021-10-09T01:53:33.000Z
Google/benchmarks/transformer/implementations/transformer-research-TF-tpu-v4-512/lingvo/core/test_helper.py
goswamig/training_results_v0.7
4278ce8a0f3d4db6b5e6054277724ca36278d7a3
[ "Apache-2.0" ]
9
2021-04-02T02:28:07.000Z
2022-03-26T18:23:59.000Z
Google/benchmarks/transformer/implementations/transformer-research-TF-tpu-v4-512/lingvo/core/test_helper.py
lablup/training_results_v0.7
f5bb59aa0f8b18b602763abe47d1d24d0d54b197
[ "Apache-2.0" ]
42
2020-08-01T06:41:24.000Z
2022-01-20T10:33:08.000Z
# Copyright 2018 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...
35.2
80
0.714962
796d552705061b37b2e256d5adff02596faaf28c
1,665
py
Python
aliyun-python-sdk-quotas/aliyunsdkquotas/request/v20200510/ListDependentQuotasRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
1,001
2015-07-24T01:32:41.000Z
2022-03-25T01:28:18.000Z
aliyun-python-sdk-quotas/aliyunsdkquotas/request/v20200510/ListDependentQuotasRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
363
2015-10-20T03:15:00.000Z
2022-03-08T12:26:19.000Z
aliyun-python-sdk-quotas/aliyunsdkquotas/request/v20200510/ListDependentQuotasRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
682
2015-09-22T07:19:02.000Z
2022-03-22T09:51:46.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
37.840909
84
0.772973
796d56d8502a76ed40f3db370fa78802223f5a8f
2,006
py
Python
simulations/print_all_log.py
SoftwareQuTech/QLinkLayerSimulations
552f4b59d4deb5e838b21d569b5c4fd835fa1494
[ "BSD-3-Clause" ]
8
2019-07-26T15:22:17.000Z
2021-11-17T11:20:44.000Z
simulations/print_all_log.py
SoftwareQuTech/QLinkLayerSimulations
552f4b59d4deb5e838b21d569b5c4fd835fa1494
[ "BSD-3-Clause" ]
null
null
null
simulations/print_all_log.py
SoftwareQuTech/QLinkLayerSimulations
552f4b59d4deb5e838b21d569b5c4fd835fa1494
[ "BSD-3-Clause" ]
1
2019-07-26T15:54:12.000Z
2019-07-26T15:54:12.000Z
import os from argparse import ArgumentParser def main(results_folder): """ This a very simple script to print warning and error messages from the log files of a simulation. Adjust the 'to_avoid' and 'to_include' variables to change which lines to include. :param results_folder: str The path t...
37.849057
105
0.468594
796d5709728488774e30661b96e4996461940918
744
py
Python
users/models.py
okboy32/beenquick-django
17b35bf07a995df0478f54068759cce7fe30fdb3
[ "MIT" ]
3
2018-08-03T08:11:58.000Z
2020-02-20T15:26:40.000Z
users/models.py
okboy32/beenquick-django
17b35bf07a995df0478f54068759cce7fe30fdb3
[ "MIT" ]
null
null
null
users/models.py
okboy32/beenquick-django
17b35bf07a995df0478f54068759cce7fe30fdb3
[ "MIT" ]
null
null
null
from datetime import datetime from django.contrib.auth.models import AbstractUser from django.db import models # Create your models here. class UserProfile(AbstractUser): mobile = models.CharField(max_length=11,verbose_name='手机号') level = models.IntegerField(default=0) point = models.IntegerField(defaul...
27.555556
78
0.731183
796d57b44b168d3033fe9333176f98769fd0f7ac
1,049
py
Python
domains/nav/problems/auto/problem4_SD.py
patras91/rae_release
0e5faffb7eb732fdb8e3bbf2c6d2f2cbd520aa30
[ "BSD-3-Clause" ]
1
2021-09-28T12:56:56.000Z
2021-09-28T12:56:56.000Z
domains/nav/problems/auto/problem4_SD.py
patras91/rae_release
0e5faffb7eb732fdb8e3bbf2c6d2f2cbd520aa30
[ "BSD-3-Clause" ]
null
null
null
domains/nav/problems/auto/problem4_SD.py
patras91/rae_release
0e5faffb7eb732fdb8e3bbf2c6d2f2cbd520aa30
[ "BSD-3-Clause" ]
1
2022-03-31T16:30:39.000Z
2022-03-31T16:30:39.000Z
__author__ = 'patras' from domain_springDoor import * from timer import DURATION from state import state DURATION.TIME = { 'unlatch1': 5, 'unlatch2': 5, 'holdDoor': 2, 'passDoor': 3, 'releaseDoor': 2, 'closeDoors': 3, 'move': 10, 'take': 2, 'put': 2, } DURATION.COUNTER = { 'un...
19.425926
50
0.500477
796d57e655f7a200540edb3484105ca373151bd8
14,001
py
Python
instagram_private_api/endpoints/friendships.py
brunohenriquy/instagram_private_api
79b98d5fc8dcba7b81cf3930817a2361c1242faa
[ "MIT" ]
null
null
null
instagram_private_api/endpoints/friendships.py
brunohenriquy/instagram_private_api
79b98d5fc8dcba7b81cf3930817a2361c1242faa
[ "MIT" ]
null
null
null
instagram_private_api/endpoints/friendships.py
brunohenriquy/instagram_private_api
79b98d5fc8dcba7b81cf3930817a2361c1242faa
[ "MIT" ]
null
null
null
import warnings from .common import ClientExperimentalWarning from ..compatpatch import ClientCompatPatch from ..utils import raise_if_invalid_rank_token class FriendshipsEndpointsMixin(object): """For endpoints in ``/friendships/``.""" def autocomplete_user_list(self): """User list for autocomplete...
34.316176
113
0.514249
796d5928508f50d04f8f6a03973f74a35a2f485a
2,323
py
Python
libs/utils.py
tvondra/pgxn-tester-client
523f33458c8ae58c2732659a378825127bc8f74a
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
libs/utils.py
tvondra/pgxn-tester-client
523f33458c8ae58c2732659a378825127bc8f74a
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
libs/utils.py
tvondra/pgxn-tester-client
523f33458c8ae58c2732659a378825127bc8f74a
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
import hashlib def sign_request(data, secret): 'simple JSON signing with a shared secret' keys = data.keys() digest = hashlib.sha256() digest.update(secret) keys = sorted(data.keys()) for k in keys: digest.update(k) digest.update(':') digest.update(str(data[k])) digest.update(';') data.update({'sign...
25.811111
112
0.671115
796d5a60e35aea2ed9fa1b54fef283535484e516
1,953
py
Python
yabgp/message/attribute/linkstate/link/peer_set_sid.py
mengjunyi/yabgp
45b050b401851b2ea94a6a70de124c02487ca677
[ "Apache-2.0" ]
203
2015-05-15T12:07:30.000Z
2022-03-13T16:36:03.000Z
yabgp/message/attribute/linkstate/link/peer_set_sid.py
mengjunyi/yabgp
45b050b401851b2ea94a6a70de124c02487ca677
[ "Apache-2.0" ]
109
2015-05-19T16:07:59.000Z
2022-03-09T08:18:23.000Z
yabgp/message/attribute/linkstate/link/peer_set_sid.py
mengjunyi/yabgp
45b050b401851b2ea94a6a70de124c02487ca677
[ "Apache-2.0" ]
74
2015-05-14T15:24:10.000Z
2022-03-09T06:21:51.000Z
# Copyright 2015-2018 Cisco Systems, 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 req...
34.875
105
0.462878
796d5aa9dfea9b44ac654ef22da8db769c4275d2
292
py
Python
19.py
christi-john/hackerrank-python
99cebb592632c0475dc585536fb26a40d464b02b
[ "MIT" ]
null
null
null
19.py
christi-john/hackerrank-python
99cebb592632c0475dc585536fb26a40d464b02b
[ "MIT" ]
null
null
null
19.py
christi-john/hackerrank-python
99cebb592632c0475dc585536fb26a40d464b02b
[ "MIT" ]
null
null
null
# https://www.hackerrank.com/challenges/text-wrap/problem import textwrap def wrap(st, w, s=""): while(len(st)>=w): s,st=s+st[:w]+"\n",st[w:] return s+st if __name__ == '__main__': string, max_width = input(), int(input()) result = wrap(string, max_width) print(result)
24.333333
57
0.630137
796d5cab71fa4176217ff4f372b76942f8d55e4f
2,546
py
Python
azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/data_lake_analytics_account_update_parameters.py
Berryliao84/Python-Azure
a96ed6e8bbf4290372980a2919b31110da90b164
[ "MIT" ]
1
2017-10-29T15:14:35.000Z
2017-10-29T15:14:35.000Z
azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/data_lake_analytics_account_update_parameters.py
Berryliao84/Python-Azure
a96ed6e8bbf4290372980a2919b31110da90b164
[ "MIT" ]
null
null
null
azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/data_lake_analytics_account_update_parameters.py
Berryliao84/Python-Azure
a96ed6e8bbf4290372980a2919b31110da90b164
[ "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 ...
43.152542
129
0.669285
796d5cd0fa58c713fecdc86d566fe83ac33f1d52
96
py
Python
runbooks/show_something.py
JuanLuisGozaloFdez/DevOpsLab4-Jupyter
96a98c60593125607dee68f876d03ecb4952f36b
[ "Apache-2.0" ]
3
2021-07-13T14:04:50.000Z
2022-03-17T18:35:27.000Z
runbooks/show_something.py
JuanLuisGozaloFdez/DevOpsLab4-Jupyter
96a98c60593125607dee68f876d03ecb4952f36b
[ "Apache-2.0" ]
null
null
null
runbooks/show_something.py
JuanLuisGozaloFdez/DevOpsLab4-Jupyter
96a98c60593125607dee68f876d03ecb4952f36b
[ "Apache-2.0" ]
2
2022-03-17T18:50:09.000Z
2022-03-17T21:46:32.000Z
import matplotlib.pyplot as plt x = range(1000) y = [i ** 2 for i in x] plt.plot(x,y) plt.show()
19.2
31
0.65625
796d5d286d8e0dbd52724444bc5c0f35b67751a2
1,392
py
Python
examples/models/file/basic_plot.py
teresafds/bokeh
95b2a74ff463cfabdf9e3390951fa380166e6691
[ "BSD-3-Clause" ]
null
null
null
examples/models/file/basic_plot.py
teresafds/bokeh
95b2a74ff463cfabdf9e3390951fa380166e6691
[ "BSD-3-Clause" ]
null
null
null
examples/models/file/basic_plot.py
teresafds/bokeh
95b2a74ff463cfabdf9e3390951fa380166e6691
[ "BSD-3-Clause" ]
null
null
null
''' A scatter plot of a smooth periodic oscillation. This example demonstrates red circle scatter markers with black outlines, using the low-level ``bokeh.models`` API. .. bokeh-example-metadata:: :apis: bokeh.models.Circle, bokeh.models.Plot, bokeh.models.ColumnDataSource, bokeh.models.LinearAxis, bokeh.models.Pa...
29.617021
155
0.714799
796d5dd9bda3349e5339ab6b23c30c166aed8641
1,908
py
Python
pydepend/metric/cyclomatic.py
herczy/pydepend
ee64ba30efc3e19d643da2ed22e078ef4a06795d
[ "BSD-3-Clause" ]
2
2019-04-21T06:10:09.000Z
2020-04-24T23:12:02.000Z
pydepend/metric/cyclomatic.py
herczy/pydepend
ee64ba30efc3e19d643da2ed22e078ef4a06795d
[ "BSD-3-Clause" ]
null
null
null
pydepend/metric/cyclomatic.py
herczy/pydepend
ee64ba30efc3e19d643da2ed22e078ef4a06795d
[ "BSD-3-Clause" ]
null
null
null
import ast import collections from ..visitor import ClassVisitor, handle from . import Metric class _TypeCountVisitor(ClassVisitor): @handle(ast.AST) def __visit_ast(self, node): return (node.__class__,) + tuple(cls for name in node._fields for cls in self.visit(getattr(node, name))) @handle(co...
23.268293
113
0.619497
796d5e6ffe2df377196bb651a8717463fe9bb304
724
py
Python
ckanext-hdx_theme/ckanext/hdx_theme/util/http_exception_helper.py
OCHA-DAP/hdx-ckan
202e0c44adc4ea8d0b90141e69365b65cce68672
[ "Apache-2.0" ]
58
2015-01-11T09:05:15.000Z
2022-03-17T23:44:07.000Z
ckanext-hdx_theme/ckanext/hdx_theme/util/http_exception_helper.py
OCHA-DAP/hdx-ckan
202e0c44adc4ea8d0b90141e69365b65cce68672
[ "Apache-2.0" ]
1,467
2015-01-01T16:47:44.000Z
2022-02-28T16:51:20.000Z
ckanext-hdx_theme/ckanext/hdx_theme/util/http_exception_helper.py
OCHA-DAP/hdx-ckan
202e0c44adc4ea8d0b90141e69365b65cce68672
[ "Apache-2.0" ]
17
2015-05-06T14:04:21.000Z
2021-11-11T19:58:16.000Z
import logging from decorator import decorator import ckan.plugins.toolkit as tk abort = tk.abort NotFound = tk.ObjectNotFound NotAuthorized = tk.NotAuthorized _ = tk._ log = logging.getLogger(__name__) @decorator def catch_http_exceptions(original_action, *args, **kw): try: return original_action(*ar...
22.625
73
0.660221
796d5f3b38d92fc3335dc3591bb42183f5ab1319
205
py
Python
5clickhouse-test/smalltest/test/testsqla.py
dikuznet/python-test-book
baf85ae62dbf09f83ea3dcf6f613410d28cbe6f8
[ "MIT" ]
null
null
null
5clickhouse-test/smalltest/test/testsqla.py
dikuznet/python-test-book
baf85ae62dbf09f83ea3dcf6f613410d28cbe6f8
[ "MIT" ]
null
null
null
5clickhouse-test/smalltest/test/testsqla.py
dikuznet/python-test-book
baf85ae62dbf09f83ea3dcf6f613410d28cbe6f8
[ "MIT" ]
null
null
null
from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker conn_str = 'clickhouse+native://default:@localhost/test' engine = create_engine(conn_str) session = sessionmaker(bind=engine)()
34.166667
56
0.819512
796d5fe90f9ce2cdbcd3b7b3553e393da92c0c3b
8,824
py
Python
main.py
18633277619/YIBAN01
4a901d10702e2502354c105cced163d8abd72e45
[ "MIT" ]
null
null
null
main.py
18633277619/YIBAN01
4a901d10702e2502354c105cced163d8abd72e45
[ "MIT" ]
null
null
null
main.py
18633277619/YIBAN01
4a901d10702e2502354c105cced163d8abd72e45
[ "MIT" ]
null
null
null
# !!!注意!!! # 本项目(yibanAutocheakin)涉及的任何代码,仅供学习测试研究,禁止用于商业用途 # !!!!!!!!!!!!!!!!!!!!特别注意!!!!!!!!!!!!!!!!!!!! # 如果出现发热、干咳、体寒、体不适、胸痛、鼻塞、流鼻涕、恶心、腹泻等症状。 # 请立即停止使用本项目(yibanAutocheakin),认真实履行社会义务,及时进行健康申报。 # !!!!!!!!!!!!!!!!!!!!特别注意!!!!!!!!!!!!!!!!!!!! # 如有侵权,请提供相关证明,所有权证明,本人收到后删除相关文件。 # 无论以任何...
35.724696
295
0.514846
796d60d2ccae96e9158e8672dd8c553327dae933
2,027
py
Python
model_training_and_evaluation/relabel_data.py
skdreier/NIreland_NLP
87eaa99b89c41cc926caa69e543b09774b191a1d
[ "MIT" ]
1
2020-05-20T16:42:53.000Z
2020-05-20T16:42:53.000Z
model_training_and_evaluation/relabel_data.py
skdreier/NIreland_NLP
87eaa99b89c41cc926caa69e543b09774b191a1d
[ "MIT" ]
10
2020-01-09T18:41:42.000Z
2020-07-10T18:27:05.000Z
model_training_and_evaluation/relabel_data.py
skdreier/NIreland_NLP
87eaa99b89c41cc926caa69e543b09774b191a1d
[ "MIT" ]
1
2020-01-07T19:58:32.000Z
2020-01-07T19:58:32.000Z
""" This script makes the assumption that from the stub you provide, the training file will be stub + 'train.csv', the dev file will be stub + 'dev.csv', the test file will be stub + 'test.csv', and the class key file will be stub + 'classes.txt' """ import sys from prep_data import read_in_presplit_data, save_splits_...
32.174603
119
0.719783
796d610b56af5c8661554da0ac779b2207f0b916
3,820
py
Python
gripper_module/gripper_wsg_50.py
columbia-ai-robotics/adagrasp
9b1bfbd0b639930949d44334bd2554c3c3f7f31f
[ "MIT" ]
19
2021-04-15T01:48:58.000Z
2022-02-11T10:25:37.000Z
gripper_module/gripper_wsg_50.py
columbia-robovision/adagrasp
9b1bfbd0b639930949d44334bd2554c3c3f7f31f
[ "MIT" ]
null
null
null
gripper_module/gripper_wsg_50.py
columbia-robovision/adagrasp
9b1bfbd0b639930949d44334bd2554c3c3f7f31f
[ "MIT" ]
5
2021-04-09T00:46:09.000Z
2021-11-16T11:32:24.000Z
import numpy as np from gripper_module.gripper_base import GripperBase import time class GripperWSG50(GripperBase): def __init__(self, bullet_client, gripper_size): r""" Initialization of WSG_50 specific args for WSG_50: - gripper_size: global scaling of the gripper when loading URDF ...
36.037736
150
0.659686
796d64c95e3aa345d38803501755c1d43b09edc0
1,287
py
Python
nilearn/plotting/tests/test_displays.py
agramfort/nilearn
f075440e6d97b5bf359bb25e9197dbcbbc26e5f2
[ "BSD-2-Clause" ]
null
null
null
nilearn/plotting/tests/test_displays.py
agramfort/nilearn
f075440e6d97b5bf359bb25e9197dbcbbc26e5f2
[ "BSD-2-Clause" ]
null
null
null
nilearn/plotting/tests/test_displays.py
agramfort/nilearn
f075440e6d97b5bf359bb25e9197dbcbbc26e5f2
[ "BSD-2-Clause" ]
null
null
null
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: import tempfile import matplotlib.pyplot as plt from nilearn.plotting.displays import OrthoSlicer, XSlicer, OrthoProjector from nilearn.datasets import load_mni152_template #############################...
31.390244
79
0.677545
796d654b180d4ddc3935462186b457c18538e745
1,685
py
Python
test_project/server/wemake_python_rest/api.py
wemake-services/wemake-django-rest
f1ab3b4b5bf3bf04866e7695667049fefe7b98f1
[ "MIT" ]
13
2018-10-06T13:04:54.000Z
2020-08-14T13:03:01.000Z
test_project/server/wemake_python_rest/api.py
wemake-services/wemake-django-rest
f1ab3b4b5bf3bf04866e7695667049fefe7b98f1
[ "MIT" ]
6
2018-10-09T15:45:43.000Z
2021-06-23T12:31:51.000Z
test_project/server/wemake_python_rest/api.py
wemake-services/wemake-django-rest
f1ab3b4b5bf3bf04866e7695667049fefe7b98f1
[ "MIT" ]
2
2018-11-16T02:58:41.000Z
2020-07-18T18:19:15.000Z
# -*- coding: utf-8 -*- from typing import ClassVar from django.conf import ImproperlyConfigured from django.urls import path from django.utils.decorators import classonlymethod from django.views import View from django.views.decorators.csrf import csrf_exempt from server.wemake_python_rest.method import Endpoint ...
29.051724
81
0.654006
796d656b95c30153747a9ba8e0b4fc9fd1feab04
2,120
py
Python
Programmazione_avanzata/EsamePA2012-07-23_es2/main.py
katema-official/Universita_magistrale_anno_1.1
ee63415b8a4e9b34f704f253a272d0f0a8c247a4
[ "MIT" ]
null
null
null
Programmazione_avanzata/EsamePA2012-07-23_es2/main.py
katema-official/Universita_magistrale_anno_1.1
ee63415b8a4e9b34f704f253a272d0f0a8c247a4
[ "MIT" ]
null
null
null
Programmazione_avanzata/EsamePA2012-07-23_es2/main.py
katema-official/Universita_magistrale_anno_1.1
ee63415b8a4e9b34f704f253a272d0f0a8c247a4
[ "MIT" ]
null
null
null
import unittest class TestClass: def __init__(self, x, y): self.x = x self.y = y self.z = 0 def getx(self): return self.x def getz(self): return self.z def setz(self, x): self.z = x class TestClass2(TestClass): def sety(self, z): self.y=z def gety(self): return self.y ...
30.724638
101
0.610849
796d659d11f147b6e437a22d7b2323015e8b910e
291
py
Python
soru6.py
mertcanaltin/python-final
25257ed78cb460ff943724638f71135bf3ca2db4
[ "MIT" ]
null
null
null
soru6.py
mertcanaltin/python-final
25257ed78cb460ff943724638f71135bf3ca2db4
[ "MIT" ]
null
null
null
soru6.py
mertcanaltin/python-final
25257ed78cb460ff943724638f71135bf3ca2db4
[ "MIT" ]
null
null
null
tek = [] cift = [] tumliste = [] while len(tumliste)<10: soru = input("Bir sayi gir ") if soru not in tumliste: tumliste.append(soru) if soru % 2 == 1: tek += soru, else: cift += soru, print "Tek sayilar",tek print "Cift sayilar",cift
20.785714
33
0.52921
796d660260a272e56b8595892d479680d04d7d6c
3,015
py
Python
Image/pansharpen.py
OIEIEIO/earthengine-py-notebooks
5d6c5cdec0c73bf02020ee17d42c9e30d633349f
[ "MIT" ]
1,008
2020-01-27T02:03:18.000Z
2022-03-24T10:42:14.000Z
Image/pansharpen.py
rafatieppo/earthengine-py-notebooks
99fbc4abd1fb6ba41e3d8a55f8911217353a3237
[ "MIT" ]
8
2020-02-01T20:18:18.000Z
2021-11-23T01:48:02.000Z
Image/pansharpen.py
rafatieppo/earthengine-py-notebooks
99fbc4abd1fb6ba41e3d8a55f8911217353a3237
[ "MIT" ]
325
2020-01-27T02:03:36.000Z
2022-03-25T20:33:33.000Z
# %% """ <table class="ee-notebook-buttons" align="left"> <td><a target="_blank" href="https://github.com/giswqs/earthengine-py-notebooks/tree/master/Image/pansharpen.ipynb"><img width=32px src="https://www.tensorflow.org/images/GitHub-Mark-32px.png" /> View source on GitHub</a></td> <td><a target="_blank" hr...
38.653846
457
0.702819
796d67affd79447cf9b6ccb1f92b1e0a00c0b06e
5,067
py
Python
demo.py
joeization/cv_finalproject
66c3917e8dce83eac0d46af086d8146d535bd8f7
[ "MIT" ]
null
null
null
demo.py
joeization/cv_finalproject
66c3917e8dce83eac0d46af086d8146d535bd8f7
[ "MIT" ]
null
null
null
demo.py
joeization/cv_finalproject
66c3917e8dce83eac0d46af086d8146d535bd8f7
[ "MIT" ]
null
null
null
# USAGE # python video_facial_landmarks.py --shape-predictor shape_predictor_68_face_landmarks.dat # python video_facial_landmarks.py --shape-predictor shape_predictor_68_face_landmarks.dat --picamera 1 # import the necessary packages from imutils.video import VideoStream from imutils import face_utils import datetime...
33.117647
123
0.628577
796d67b4b432cae50dae78b22cf1ae7b8cacdbe7
13,275
py
Python
cryptoapis/model/inline_response40089.py
Crypto-APIs/Crypto_APIs_2.0_SDK_Python
c59ebd914850622b2c6500c4c30af31fb9cecf0e
[ "MIT" ]
5
2021-05-17T04:45:03.000Z
2022-03-23T12:51:46.000Z
cryptoapis/model/inline_response40089.py
Crypto-APIs/Crypto_APIs_2.0_SDK_Python
c59ebd914850622b2c6500c4c30af31fb9cecf0e
[ "MIT" ]
null
null
null
cryptoapis/model/inline_response40089.py
Crypto-APIs/Crypto_APIs_2.0_SDK_Python
c59ebd914850622b2c6500c4c30af31fb9cecf0e
[ "MIT" ]
2
2021-06-02T07:32:26.000Z
2022-02-12T02:36:23.000Z
""" CryptoAPIs Crypto APIs 2.0 is a complex and innovative infrastructure layer that radically simplifies the development of any Blockchain and Crypto related applications. Organized around REST, Crypto APIs 2.0 can assist both novice Bitcoin/Ethereum enthusiasts and crypto experts with the development of thei...
46.578947
484
0.594049
796d67e4592a52ba493155750331896d5209feda
3,503
py
Python
examples/dagster_examples/__init__.py
vatervonacht/dagster
595d78c883ef20618052ac1575fe46cde51fd541
[ "Apache-2.0" ]
null
null
null
examples/dagster_examples/__init__.py
vatervonacht/dagster
595d78c883ef20618052ac1575fe46cde51fd541
[ "Apache-2.0" ]
null
null
null
examples/dagster_examples/__init__.py
vatervonacht/dagster
595d78c883ef20618052ac1575fe46cde51fd541
[ "Apache-2.0" ]
null
null
null
from dagster_cron import SystemCronScheduler from dagster import ScheduleDefinition, file_relative_path, schedules @schedules(scheduler=SystemCronScheduler) def define_scheduler(): return [ ScheduleDefinition( name="many_events_every_min", cron_schedule="* * * * *", pi...
36.873684
92
0.557808
796d696157c7c330bf5a33413b9dbc0bde68ac64
3,735
py
Python
lingvo/jax/layers/stochastics_test.py
ruomingp/lingvo
ba59e8c46471be77d5d3c48177f0f0dd8d5d44e9
[ "Apache-2.0" ]
null
null
null
lingvo/jax/layers/stochastics_test.py
ruomingp/lingvo
ba59e8c46471be77d5d3c48177f0f0dd8d5d44e9
[ "Apache-2.0" ]
null
null
null
lingvo/jax/layers/stochastics_test.py
ruomingp/lingvo
ba59e8c46471be77d5d3c48177f0f0dd8d5d44e9
[ "Apache-2.0" ]
null
null
null
# Lint as: python3 # Copyright 2021 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 ...
35.235849
80
0.701205
796d69a43724a474b19c84658ab0aa5b914eb0bb
2,739
py
Python
tests/management/commands/test_create_jobs.py
kaozdl/django-extensions
bbc3ae686d2cba9c0bb0a6b88f5e71ddf1a6af36
[ "MIT" ]
null
null
null
tests/management/commands/test_create_jobs.py
kaozdl/django-extensions
bbc3ae686d2cba9c0bb0a6b88f5e71ddf1a6af36
[ "MIT" ]
null
null
null
tests/management/commands/test_create_jobs.py
kaozdl/django-extensions
bbc3ae686d2cba9c0bb0a6b88f5e71ddf1a6af36
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os import shutil from django.core.management import call_command from django.test import TestCase from six import StringIO from tests import testapp_with_no_models_file try: from unittest.mock import patch except ImportError: from mock import patch JOBS_DIR = os.path.join(test...
36.039474
123
0.71559
796d6a17936e72988020c32a78f1216de9f4891d
2,505
py
Python
dask_adlfs/core.py
jacobtomlinson/dask-adlfs
82230c995fbf196cab869a8e9b5da042993cc47c
[ "BSD-3-Clause" ]
null
null
null
dask_adlfs/core.py
jacobtomlinson/dask-adlfs
82230c995fbf196cab869a8e9b5da042993cc47c
[ "BSD-3-Clause" ]
null
null
null
dask_adlfs/core.py
jacobtomlinson/dask-adlfs
82230c995fbf196cab869a8e9b5da042993cc47c
[ "BSD-3-Clause" ]
null
null
null
from __future__ import print_function, division, absolute_import import logging from azure.datalake.store import lib, AzureDLFileSystem from dask.bytes import core from dask.bytes.utils import infer_storage_options from dask.base import tokenize logger = logging.getLogger(__name__) class DaskAdlFileSystem(AzureDLF...
31.3125
75
0.643912
796d6add4397656b623acc948abd41f8d0ec7a6e
5,636
py
Python
smiles2actions/quantities/value_unit_entity.py
rxn4chemistry/smiles2actions
63cfe0a7547b97c72ccf700d1b7f53f30c217e70
[ "MIT" ]
8
2021-03-25T10:29:47.000Z
2022-02-23T22:58:20.000Z
smiles2actions/quantities/value_unit_entity.py
rxn4chemistry/smiles2actions
63cfe0a7547b97c72ccf700d1b7f53f30c217e70
[ "MIT" ]
1
2022-02-21T05:54:30.000Z
2022-02-22T12:47:36.000Z
smiles2actions/quantities/value_unit_entity.py
rxn4chemistry/smiles2actions
63cfe0a7547b97c72ccf700d1b7f53f30c217e70
[ "MIT" ]
4
2021-04-07T11:15:13.000Z
2021-11-26T02:38:31.000Z
from typing import List, Optional import attr import quantulum3.classifier import regex from quantulum3 import parser from quantulum3.classes import Quantity from .quantities_utils import remove_space_after_initial_dash from ..regex_utils import alternation, optional # Without this, quantulum3 has a different behavi...
28.902564
100
0.620653
796d6d87d765eea61696f82304a5445844b9b6fe
8,043
py
Python
build/PureCloudPlatformClientV2/models/campaign_interactions.py
cjohnson-ctl/platform-client-sdk-python
38ce53bb8012b66e8a43cc8bd6ff00cf6cc99100
[ "MIT" ]
10
2019-02-22T00:27:08.000Z
2021-09-12T23:23:44.000Z
libs/PureCloudPlatformClientV2/models/campaign_interactions.py
rocketbot-cl/genesysCloud
dd9d9b5ebb90a82bab98c0d88b9585c22c91f333
[ "MIT" ]
5
2018-06-07T08:32:00.000Z
2021-07-28T17:37:26.000Z
libs/PureCloudPlatformClientV2/models/campaign_interactions.py
rocketbot-cl/genesysCloud
dd9d9b5ebb90a82bab98c0d88b9585c22c91f333
[ "MIT" ]
6
2020-04-09T17:43:07.000Z
2022-02-17T08:48:05.000Z
# coding: utf-8 """ Copyright 2016 SmartBear Software 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...
30.816092
99
0.643292
796d6da889c24c3cda657357c50bb938382f1238
13,770
py
Python
xnas/spaces/OFA/ProxylessNet/ofa_cnn.py
zhengxiawu/XNAS
ea8f8ab31f67155482f5b9a9ad2a0b54c45f45d1
[ "MIT" ]
22
2020-07-01T02:12:01.000Z
2020-09-24T05:32:08.000Z
xnas/spaces/OFA/ProxylessNet/ofa_cnn.py
zhengxiawu/XNAS
ea8f8ab31f67155482f5b9a9ad2a0b54c45f45d1
[ "MIT" ]
null
null
null
xnas/spaces/OFA/ProxylessNet/ofa_cnn.py
zhengxiawu/XNAS
ea8f8ab31f67155482f5b9a9ad2a0b54c45f45d1
[ "MIT" ]
5
2020-07-09T06:53:18.000Z
2020-08-15T13:15:14.000Z
import random from copy import deepcopy from xnas.spaces.OFA.dynamic_ops import DynamicMBConvLayer from xnas.spaces.OFA.utils import val2list, make_divisible from xnas.spaces.OFA.ops import ( ConvLayer, IdentityLayer, LinearLayer, MBConvLayer, ResidualBlock, ) from xnas.spaces.OFA.ProxylessNet.cnn ...
35.217391
90
0.575454
796d6e646c0ed3bb33c0902ce5259e8eadfb21a6
32,007
py
Python
twisted/protocols/basic.py
hawkowl/twisted
c413aac3888dea2202c0dc26f978d7f88b4b837a
[ "Unlicense", "MIT" ]
22
2018-03-13T13:51:41.000Z
2022-02-19T07:27:48.000Z
twisted/protocols/basic.py
hawkowl/twisted
c413aac3888dea2202c0dc26f978d7f88b4b837a
[ "Unlicense", "MIT" ]
14
2015-04-25T17:54:13.000Z
2017-01-13T15:30:39.000Z
twisted/protocols/basic.py
hawkowl/twisted
c413aac3888dea2202c0dc26f978d7f88b4b837a
[ "Unlicense", "MIT" ]
5
2018-03-28T09:07:03.000Z
2020-02-23T12:49:52.000Z
# -*- test-case-name: twisted.protocols.test.test_basic -*- # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Basic protocols, such as line-oriented, netstring, and int prefixed strings. """ from __future__ import absolute_import, division # System imports import re from struct import pack...
33.585519
81
0.63458
796d6e9a1c69a364a7dd830700dac76c96d5d4a0
156
py
Python
2653.py
luizgallas/uri_iniciante
fd23f2fe1638b373b94b7b4ddb2d906cec8db87b
[ "Apache-2.0" ]
null
null
null
2653.py
luizgallas/uri_iniciante
fd23f2fe1638b373b94b7b4ddb2d906cec8db87b
[ "Apache-2.0" ]
null
null
null
2653.py
luizgallas/uri_iniciante
fd23f2fe1638b373b94b7b4ddb2d906cec8db87b
[ "Apache-2.0" ]
null
null
null
joias = [] while True: try: joia = input() joias.append(joia) except EOFError: break joias = set(joias) print(len(joias))
13
26
0.551282
796d6eb61ec86b94ca1a112c4d0359a477037127
3,242
py
Python
Gds/src/fprime_gds/common/history/ram.py
WaterBubbles/fprime
dfb1e72bfbe4f21c0014bf78d762fddb3b5c39a1
[ "Apache-2.0" ]
2
2021-02-19T16:51:46.000Z
2021-02-19T16:51:56.000Z
Gds/src/fprime_gds/common/history/ram.py
WaterBubbles/fprime
dfb1e72bfbe4f21c0014bf78d762fddb3b5c39a1
[ "Apache-2.0" ]
1
2020-12-03T14:14:51.000Z
2020-12-03T14:14:51.000Z
Gds/src/fprime_gds/common/history/ram.py
WaterBubbles/fprime
dfb1e72bfbe4f21c0014bf78d762fddb3b5c39a1
[ "Apache-2.0" ]
1
2021-02-23T17:10:44.000Z
2021-02-23T17:10:44.000Z
""" ram.py: A simple implementation of of a history that maintains items in RAM. This is used for simplicity, but isn't exactly robust nor persistent. Given that it is in thr RAM, it is driven from the the decoders object, which should run off the middle-ware layer. Note: this RAM history treats "start times" as sess...
32.42
120
0.611968
796d6ecdaa66575e3f7ce08ba606c146e26d59f9
14,345
py
Python
nemreader/nem_reader.py
Energy-Queensland/nem-reader
63f5207ab85ea585728cef4ffb2c20d40d791637
[ "MIT" ]
null
null
null
nemreader/nem_reader.py
Energy-Queensland/nem-reader
63f5207ab85ea585728cef4ffb2c20d40d791637
[ "MIT" ]
null
null
null
nemreader/nem_reader.py
Energy-Queensland/nem-reader
63f5207ab85ea585728cef4ffb2c20d40d791637
[ "MIT" ]
null
null
null
""" nemreader.nem_reader ~~~~~ Read MDFF format """ import os import csv import logging from datetime import datetime, timedelta import zipfile from itertools import chain, islice from typing import Iterable, Any from typing import Optional, List, Dict from .nem_objects import NEMFile, HeaderRecord, NmiDet...
32.235955
86
0.61687
796d6fcd05ae72a608524878be7c9bdb26dcba9a
2,249
py
Python
vega/networks/tensorflow/utils/anchor_utils/anchor_generator.py
zjzh/vega
aa6e7b8c69024262fc483ee06113b4d1bd5156d8
[ "Apache-2.0" ]
null
null
null
vega/networks/tensorflow/utils/anchor_utils/anchor_generator.py
zjzh/vega
aa6e7b8c69024262fc483ee06113b4d1bd5156d8
[ "Apache-2.0" ]
null
null
null
vega/networks/tensorflow/utils/anchor_utils/anchor_generator.py
zjzh/vega
aa6e7b8c69024262fc483ee06113b4d1bd5156d8
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENS...
36.868852
74
0.658515
796d709b430fa4e986ff034c8ac51309f010506d
6,430
py
Python
docs/source/conf.py
dizballanze/wsrpc-aiohttp
db75acfd331cceda420f4a6142399951eff13656
[ "MIT" ]
25
2017-09-25T19:45:24.000Z
2022-02-09T23:37:57.000Z
docs/source/conf.py
dizballanze/wsrpc-aiohttp
db75acfd331cceda420f4a6142399951eff13656
[ "MIT" ]
19
2017-08-08T08:55:40.000Z
2022-02-28T15:02:24.000Z
docs/source/conf.py
dizballanze/wsrpc-aiohttp
db75acfd331cceda420f4a6142399951eff13656
[ "MIT" ]
13
2017-09-13T11:01:41.000Z
2021-05-11T19:59:17.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # wsrpc-aiohttp documentation build configuration file, created by # sphinx-quickstart on Fri Mar 31 17:03:20 2017. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in thi...
29.227273
79
0.675894
796d7147161de807dff5f4a8787719fe9f989227
1,441
py
Python
models/lenet.py
lihr04/PCA-OGD
196d03701f22110479af9c1feb619fef6fe1562b
[ "MIT" ]
3
2021-02-18T23:09:45.000Z
2021-04-15T07:11:08.000Z
models/lenet.py
lihr04/PCA-OGD
196d03701f22110479af9c1feb619fef6fe1562b
[ "MIT" ]
null
null
null
models/lenet.py
lihr04/PCA-OGD
196d03701f22110479af9c1feb619fef6fe1562b
[ "MIT" ]
3
2021-03-15T21:56:18.000Z
2022-02-08T17:39:10.000Z
import torch.nn as nn class LeNet(nn.Module): def __init__(self, out_dim=10, in_channel=1, img_sz=32, hidden_dim=500): super(LeNet, self).__init__() feat_map_sz = img_sz//4 self.n_feat = 50 * feat_map_sz * feat_map_sz self.hidden_dim = hidden_dim self.conv = nn.Sequenti...
25.732143
94
0.541291