hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
ed7a1c0d7a4492dad9e31bba9aa2a19bf2c67236
2,241
py
Python
pandas_funcs/sort_by_multiple_indexes.py
SecTraversl/Toolbox_Python_3.8
0ad1d92d3a12225ea60e4eef3f263aecfffd1b65
[ "MIT" ]
null
null
null
pandas_funcs/sort_by_multiple_indexes.py
SecTraversl/Toolbox_Python_3.8
0ad1d92d3a12225ea60e4eef3f263aecfffd1b65
[ "MIT" ]
null
null
null
pandas_funcs/sort_by_multiple_indexes.py
SecTraversl/Toolbox_Python_3.8
0ad1d92d3a12225ea60e4eef3f263aecfffd1b65
[ "MIT" ]
null
null
null
# %% ####################################### def sort_by_multiple_indexes(lst: list, *index_nums: int, reverse=False): """With a two dimensional array, returns the rows sorted by one or more column index numbers. Example: >>> mylst = [] # create the table (name, age, job) >>> mylst....
47.680851
158
0.54797
8f366521d4ae8fcbcf3812f935d737eb027efe57
3,270
py
Python
django_apscheduler/migrations/0001_initial.py
calledbert/django-apscheduler
8947bb55976718b634e81ad54b64f53e300d12df
[ "MIT" ]
331
2016-07-12T07:03:08.000Z
2021-01-26T23:23:36.000Z
django_apscheduler/migrations/0001_initial.py
calledbert/django-apscheduler
8947bb55976718b634e81ad54b64f53e300d12df
[ "MIT" ]
115
2016-07-07T15:23:25.000Z
2021-01-21T17:16:10.000Z
django_apscheduler/migrations/0001_initial.py
calledbert/django-apscheduler
8947bb55976718b634e81ad54b64f53e300d12df
[ "MIT" ]
92
2016-11-01T16:10:06.000Z
2021-01-25T03:59:58.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.1 on 2017-11-05 16:07 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateMod...
33.367347
81
0.372783
0a5fb2b9a49b76d55d5032b0b48f957f3c861110
1,181
py
Python
ambari-server/src/test/resources/stacks/HDP/2.0.7/services/HIVE/package/scripts/hive_client.py
likenamehaojie/Apache-Ambari-ZH
5973025bd694cdbb4b49fb4c4e0d774782811ff6
[ "Apache-2.0" ]
1,664
2015-01-03T09:35:21.000Z
2022-03-31T04:55:24.000Z
ambari-server/src/test/resources/stacks/HDP/2.0.7/services/HIVE/package/scripts/hive_client.py
likenamehaojie/Apache-Ambari-ZH
5973025bd694cdbb4b49fb4c4e0d774782811ff6
[ "Apache-2.0" ]
3,018
2015-02-19T20:16:10.000Z
2021-11-13T20:47:48.000Z
ambari-server/src/test/resources/stacks/HDP/2.0.7/services/HIVE/package/scripts/hive_client.py
likenamehaojie/Apache-Ambari-ZH
5973025bd694cdbb4b49fb4c4e0d774782811ff6
[ "Apache-2.0" ]
1,673
2015-01-06T14:14:42.000Z
2022-03-31T07:22:30.000Z
#!/usr/bin/env python """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License");...
28.119048
72
0.762913
bfe40b55084c5530a868aa2e821bc70495757119
29,526
py
Python
src/t5s.py
adfre18/t5s
7b35b14e55b829f0a4c749e321d174e9aad4e780
[ "Apache-2.0" ]
5
2021-03-03T14:03:02.000Z
2021-11-08T07:12:19.000Z
src/t5s.py
adfre18/t5s
7b35b14e55b829f0a4c749e321d174e9aad4e780
[ "Apache-2.0" ]
null
null
null
src/t5s.py
adfre18/t5s
7b35b14e55b829f0a4c749e321d174e9aad4e780
[ "Apache-2.0" ]
1
2021-09-03T10:06:55.000Z
2021-09-03T10:06:55.000Z
from tensorflow_text.python.ops.sentencepiece_tokenizer import SentencepieceTokenizer as TFSentencepieceTokenizer import tensorflow as tf from transformers import (T5Tokenizer, TFT5ForConditionalGeneration, generation_tf_utils as _tfu) import transformers from tensorf...
35.445378
149
0.596017
af81e5ec04ef366dddd9deafcbb420ec67402c4c
4,665
py
Python
strategy/indicator/stochastic/stochastic.py
firebird631/siis
8d64e8fb67619aaa5c0a62fda9de51dedcd47796
[ "PostgreSQL" ]
null
null
null
strategy/indicator/stochastic/stochastic.py
firebird631/siis
8d64e8fb67619aaa5c0a62fda9de51dedcd47796
[ "PostgreSQL" ]
null
null
null
strategy/indicator/stochastic/stochastic.py
firebird631/siis
8d64e8fb67619aaa5c0a62fda9de51dedcd47796
[ "PostgreSQL" ]
null
null
null
# @date 2018-09-02 # @author Frederic Scherma, All rights reserved without prejudices. # @author Xavier BONNIN # @license Copyright (c) 2018 Dream Overflow # Stochastic indicator from strategy.indicator.indicator import Indicator from strategy.indicator.utils import down_sample, MM_n # , MMexp_n import numpy as np f...
28.445122
166
0.614577
991e3f5957105a7ad5fffdad8a8b7e5e3e9fd805
3,808
py
Python
serial_scripts/sriov/base.py
hkgopal/tf-test
dfb00ce26fb159ab5a91726f9647b68d905cfbad
[ "Apache-2.0" ]
5
2020-09-29T00:36:57.000Z
2022-02-16T06:51:32.000Z
serial_scripts/sriov/base.py
hkgopal/tf-test
dfb00ce26fb159ab5a91726f9647b68d905cfbad
[ "Apache-2.0" ]
27
2019-11-02T02:18:34.000Z
2022-02-24T18:49:08.000Z
serial_scripts/sriov/base.py
hkgopal/tf-test
dfb00ce26fb159ab5a91726f9647b68d905cfbad
[ "Apache-2.0" ]
20
2019-11-28T16:02:25.000Z
2022-01-06T05:56:58.000Z
from builtins import range import test_v1 import time import struct import socket import fixtures class BaseSriovTest(test_v1.BaseTestCase_v1): @classmethod def setUpClass(cls): super(BaseSriovTest, cls).setUpClass() cls.orch = cls.connections.orch cls.quantum_h= cls.connections.quant...
37.70297
134
0.664653
dc7fe316b9dbd9788a6a44099558bd643ac8d07d
1,777
py
Python
pytmt/get_spec.py
Molecular-Proteomics/TMT_quantifier
32eeaac10bbc423904cf268fdb83cd317aee5203
[ "MIT" ]
null
null
null
pytmt/get_spec.py
Molecular-Proteomics/TMT_quantifier
32eeaac10bbc423904cf268fdb83cd317aee5203
[ "MIT" ]
null
null
null
pytmt/get_spec.py
Molecular-Proteomics/TMT_quantifier
32eeaac10bbc423904cf268fdb83cd317aee5203
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Reads in mzml file using pymzml and get list of ms2 scans """ import logging import os import pymzml as mz class Mzml(object): def __init__( self, path, precision ): """ This class reads mzml files using pymzml :param...
25.028169
117
0.471581
6c6d3a2b7f1fee479c17145c51dc31dbeedb6d87
8,269
py
Python
leetcode_python/Dynamic_Programming/longest-common-subsequence.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
null
null
null
leetcode_python/Dynamic_Programming/longest-common-subsequence.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
null
null
null
leetcode_python/Dynamic_Programming/longest-common-subsequence.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
null
null
null
""" 1143. Longest Common Subsequence Medium Given two strings text1 and text2, return the length of their longest common subsequence. If there is no common subsequence, return 0. A subsequence of a string is a new string generated from the original string with some characters (can be none) deleted without changing t...
35.337607
184
0.548192
9d5133d5ed966f5b1f7041d445e563b07af0bd92
6,635
py
Python
examples/helpers/mail/mail_example.py
scomert/sendgrid-python
3e81ffc7a94007d894c1e2364e06d628c46dd117
[ "MIT" ]
null
null
null
examples/helpers/mail/mail_example.py
scomert/sendgrid-python
3e81ffc7a94007d894c1e2364e06d628c46dd117
[ "MIT" ]
null
null
null
examples/helpers/mail/mail_example.py
scomert/sendgrid-python
3e81ffc7a94007d894c1e2364e06d628c46dd117
[ "MIT" ]
null
null
null
import json import os import urllib2 from sendgrid.helpers.mail import * from sendgrid import * # NOTE: you will need move this file to the root directory of this project to execute properly. def build_hello_email(): """Minimum required to send an email""" from_email = Email("test@example.com") subject = ...
45.758621
293
0.740467
d506893d2011d021aef767e066b9d3a53cd97c54
1,252
py
Python
yolov5/utils/draw_name.py
Matrix-King-Studio/MaskDetection
5fed65833a8c08380299d606f66e14df814b022f
[ "MIT" ]
null
null
null
yolov5/utils/draw_name.py
Matrix-King-Studio/MaskDetection
5fed65833a8c08380299d606f66e14df814b022f
[ "MIT" ]
null
null
null
yolov5/utils/draw_name.py
Matrix-King-Studio/MaskDetection
5fed65833a8c08380299d606f66e14df814b022f
[ "MIT" ]
null
null
null
import base64 from aip import AipFace import cv2 APP_ID = '23167253' API_KEY = '38jgdZXVu0azpywqCw4Z7NAZ' SECRET_KEY = 'KrQZFsjoPNY44BD6qghUCDTuE9FyjV6n' client = AipFace(APP_ID, API_KEY, SECRET_KEY) options = {'max_face_num': '10'} def get_name(): with open('img.jpg', 'rb') as f: data =...
26.083333
99
0.558307
0ac820b3e5b1b903e6827e56bfb522e6ba2f3819
14,771
py
Python
test/dlc_tests/eks/pytorch/training/test_eks_pytorch_training.py
Yixiao99/deep-learning-containers
01f078adf5abfb92e802b326511981bdd4a8c85c
[ "Apache-2.0" ]
1
2021-10-22T04:36:45.000Z
2021-10-22T04:36:45.000Z
test/dlc_tests/eks/pytorch/training/test_eks_pytorch_training.py
Yixiao99/deep-learning-containers
01f078adf5abfb92e802b326511981bdd4a8c85c
[ "Apache-2.0" ]
32
2021-06-10T21:21:29.000Z
2021-08-06T22:37:37.000Z
test/dlc_tests/eks/pytorch/training/test_eks_pytorch_training.py
Yixiao99/deep-learning-containers
01f078adf5abfb92e802b326511981bdd4a8c85c
[ "Apache-2.0" ]
1
2021-04-20T05:05:11.000Z
2021-04-20T05:05:11.000Z
import json import os import random import datetime import pytest from invoke import run from invoke.context import Context from retrying import retry import test.test_utils.eks as eks_utils from test.test_utils import is_pr_context, SKIP_PR_REASON, is_below_framework_version from test.test_utils import get_framewor...
41.844193
177
0.657708
20b99314962ebeb3eed7f12930a2ea191607ff1c
500
py
Python
autodidaqt_receiver/__init__.py
chstan/autodidaqt-receiver
ff5ab88b8d759a4441dbe52619820fbce67fdc1b
[ "BSD-3-Clause-LBNL" ]
null
null
null
autodidaqt_receiver/__init__.py
chstan/autodidaqt-receiver
ff5ab88b8d759a4441dbe52619820fbce67fdc1b
[ "BSD-3-Clause-LBNL" ]
null
null
null
autodidaqt_receiver/__init__.py
chstan/autodidaqt-receiver
ff5ab88b8d759a4441dbe52619820fbce67fdc1b
[ "BSD-3-Clause-LBNL" ]
null
null
null
# type: ignore[attr-defined] """Analyis-side bridge for autodiDAQt.""" import sys from .receiver import * if sys.version_info >= (3, 8): from importlib import metadata as importlib_metadata else: import importlib_metadata def get_version() -> str: try: return importlib_metadata.version(__name__...
20.833333
71
0.72
68fb997d400a8754930e7ee9de11a07073dfe57a
12,440
py
Python
argopy/tests/test_index_fetchers.py
tylertucker202/argopy
c22f8c9803cfcf2ccfde3d93269f48a0e8e60832
[ "Apache-2.0" ]
null
null
null
argopy/tests/test_index_fetchers.py
tylertucker202/argopy
c22f8c9803cfcf2ccfde3d93269f48a0e8e60832
[ "Apache-2.0" ]
null
null
null
argopy/tests/test_index_fetchers.py
tylertucker202/argopy
c22f8c9803cfcf2ccfde3d93269f48a0e8e60832
[ "Apache-2.0" ]
2
2020-06-29T19:40:00.000Z
2021-08-01T10:35:09.000Z
#!/bin/env python # -*coding: UTF-8 -*- # # Test data fetchers # import os import xarray as xr import shutil import pytest import unittest from unittest import TestCase import argopy from argopy import IndexFetcher as ArgoIndexFetcher from argopy.errors import InvalidFetcherAccessPoint, InvalidFetcher, \ FileSys...
45.735294
127
0.630788
86c014b076bfaa1d7da143bdd7cb29c10438d2f3
8,184
py
Python
youtube_dl/extractor/ivi.py
MOODesign/Youtube-videos-Download
730c0d12a06f349907481570f1f2890251f7a181
[ "Unlicense" ]
16
2020-12-01T15:26:58.000Z
2022-02-24T23:12:14.000Z
youtube_dl/extractor/ivi.py
MOODesign/Youtube-videos-Download
730c0d12a06f349907481570f1f2890251f7a181
[ "Unlicense" ]
5
2021-02-20T10:30:00.000Z
2021-06-01T21:12:31.000Z
youtube_dl/extractor/ivi.py
MOODesign/Youtube-videos-Download
730c0d12a06f349907481570f1f2890251f7a181
[ "Unlicense" ]
7
2020-12-01T15:27:04.000Z
2022-01-09T23:21:53.000Z
# coding: utf-8 from __future__ import unicode_literals import re import json from .common import InfoExtractor from ..utils import ( ExtractorError, int_or_none, qualities, ) class IviIE(InfoExtractor): IE_DESC = 'ivi.ru' IE_NAME = 'ivi' _VALID_URL = r'https?://(?:www\.)?ivi\.(?:ru|tv)/(?:w...
37.031674
119
0.527981
2c5346e665cece1a46c4ff2b17f9543608c2517c
13,333
py
Python
scormxblock/scormxblock.py
eduNEXT/edx_xblock_scorm
d40309606eca36af72a59cc3c90abe1700076c5d
[ "Apache-2.0" ]
null
null
null
scormxblock/scormxblock.py
eduNEXT/edx_xblock_scorm
d40309606eca36af72a59cc3c90abe1700076c5d
[ "Apache-2.0" ]
2
2017-11-21T20:38:42.000Z
2021-03-11T03:35:20.000Z
scormxblock/scormxblock.py
eduNEXT/edx_xblock_scorm
d40309606eca36af72a59cc3c90abe1700076c5d
[ "Apache-2.0" ]
1
2021-06-07T09:03:19.000Z
2021-06-07T09:03:19.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import mimetypes import re import pkg_resources import zipfile import xml.etree.ElementTree as ET from urllib.parse import urljoin, urlparse, unquote import boto3 from os import path, walk from django.conf import settings from django.template import Context, Template fro...
35.460106
131
0.621091
c69baeb3bf94cf2cf4e276a525d4a23bae925b6e
734
py
Python
zengo/migrations/0005_ticket_priority.py
lukeburden/django-zengo
7235379f8d740bedd76412c8d6aaca076300fac9
[ "MIT" ]
10
2019-02-11T19:13:41.000Z
2021-12-10T21:23:51.000Z
zengo/migrations/0005_ticket_priority.py
lukeburden/django-zengo
7235379f8d740bedd76412c8d6aaca076300fac9
[ "MIT" ]
4
2019-01-03T00:02:31.000Z
2020-11-11T01:31:06.000Z
zengo/migrations/0005_ticket_priority.py
lukeburden/django-zengo
7235379f8d740bedd76412c8d6aaca076300fac9
[ "MIT" ]
3
2019-02-28T15:58:24.000Z
2020-06-09T02:45:42.000Z
# Generated by Django 2.2.10 on 2020-02-28 18:25 from django.db import migrations import konst.models.fields class Migration(migrations.Migration): dependencies = [ ("zengo", "0004_zendeskuser_alias"), ] operations = [ migrations.AddField( model_name="ticket", n...
23.677419
62
0.475477
5227ffe11653a0053cd8fb3716c3853421d9559f
5,127
py
Python
server/timing_engine.py
cmusatyalab/openscout
87bec509b8c1e343dbeb6f7f241b143b3686813b
[ "Apache-2.0" ]
5
2020-07-31T12:49:04.000Z
2021-09-26T23:09:20.000Z
server/timing_engine.py
cmusatyalab/openscout
87bec509b8c1e343dbeb6f7f241b143b3686813b
[ "Apache-2.0" ]
6
2020-08-20T16:44:55.000Z
2022-02-10T02:12:26.000Z
server/timing_engine.py
cmusatyalab/openscout
87bec509b8c1e343dbeb6f7f241b143b3686813b
[ "Apache-2.0" ]
2
2020-09-07T05:47:30.000Z
2021-10-01T14:28:53.000Z
# OpenScout # - Distributed Automated Situational Awareness # # Author: Thomas Eiszler <teiszler@andrew.cmu.edu> # # Copyright (C) 2020 Carnegie Mellon University # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may ob...
33.730263
92
0.560952
bad6745951332a46328227c7bb075b22ba409ff5
1,022
py
Python
src/sage/symbolic/all.py
UCD4IDS/sage
43474c96d533fd396fe29fe0782d44dc7f5164f7
[ "BSL-1.0" ]
1,742
2015-01-04T07:06:13.000Z
2022-03-30T11:32:52.000Z
src/sage/symbolic/all.py
UCD4IDS/sage
43474c96d533fd396fe29fe0782d44dc7f5164f7
[ "BSL-1.0" ]
66
2015-03-19T19:17:24.000Z
2022-03-16T11:59:30.000Z
src/sage/symbolic/all.py
UCD4IDS/sage
43474c96d533fd396fe29fe0782d44dc7f5164f7
[ "BSL-1.0" ]
495
2015-01-10T10:23:18.000Z
2022-03-24T22:06:11.000Z
from sage.misc.lazy_import import lazy_import lazy_import("sage.symbolic.expression", "I", deprecation=(18036, "import I from sage.symbolic.constants for the imaginary unit viewed as an element of SR, or from sage.rings.imaginary_unit for the element of ZZ[i]")) lazy_import("sage.symbolic.expression", "I", as_...
48.666667
159
0.765166
26ca150429aed911f693600271272acf178310dc
69
py
Python
user_modified/sample_testcases.py
stevennovaryo/tctune
56d64ea70c544927e6749d1b0b8a25ad51cf71f4
[ "MIT" ]
null
null
null
user_modified/sample_testcases.py
stevennovaryo/tctune
56d64ea70c544927e6749d1b0b8a25ad51cf71f4
[ "MIT" ]
null
null
null
user_modified/sample_testcases.py
stevennovaryo/tctune
56d64ea70c544927e6749d1b0b8a25ad51cf71f4
[ "MIT" ]
null
null
null
sample1 = [ '5 5', '1 2 3 4 5', ] sample2 = [ '1 1', '10', ]
7.666667
14
0.362319
aee50159ccadd369338014364bbd6ca4193fdaaf
429
py
Python
src/backend/socialapp/jinja2.py
shouyang/group-CMPUT404-project
a8d114b493ad2786c90e8b1f10c087fa4d5c81de
[ "MIT" ]
2
2019-02-04T17:55:48.000Z
2019-03-11T23:22:14.000Z
src/backend/socialapp/jinja2.py
shouyang/group-CMPUT404-project
a8d114b493ad2786c90e8b1f10c087fa4d5c81de
[ "MIT" ]
7
2019-02-27T17:16:19.000Z
2019-03-19T20:13:56.000Z
src/backend/socialapp/jinja2.py
shouyang/group-CMPUT404-project
a8d114b493ad2786c90e8b1f10c087fa4d5c81de
[ "MIT" ]
2
2019-04-10T17:01:07.000Z
2019-04-17T01:08:16.000Z
""" This file configures the environment settings for jinja2 templates. See the jinja 2 folder for actual templates. """ from django.contrib.staticfiles.storage import staticfiles_storage from django.urls import reverse from jinja2 import Environment def environment(**options): env = Environment(**options) ...
26.8125
116
0.729604
8cf20e68234b76dcdd56e15980d95a9221d9bb00
4,062
py
Python
python/bin/changename.py
beckerrh/simfemsrc
d857eb6f6f8627412d4f9d89a871834c756537db
[ "MIT" ]
null
null
null
python/bin/changename.py
beckerrh/simfemsrc
d857eb6f6f8627412d4f9d89a871834c756537db
[ "MIT" ]
1
2019-01-31T10:59:11.000Z
2019-01-31T10:59:11.000Z
python/bin/changename.py
beckerrh/simfemsrc
d857eb6f6f8627412d4f9d89a871834c756537db
[ "MIT" ]
null
null
null
import sys, os, subprocess, shutil import argparse # ------------------------------------- # def main(): parser = argparse.ArgumentParser(description='change name') # parser.add_argument('scriptandargs', help='script and args to launch', nargs='*') parser.add_argument('-old', type=str, help='old name', req...
37.266055
117
0.577794
fd311817651d876f88e4e6f8595578d66b52e55c
429
py
Python
2.py
juandarr/ProjectEuler
951705ac62f550d7fbecdc3f35ab8c38b53b9225
[ "MIT" ]
null
null
null
2.py
juandarr/ProjectEuler
951705ac62f550d7fbecdc3f35ab8c38b53b9225
[ "MIT" ]
null
null
null
2.py
juandarr/ProjectEuler
951705ac62f550d7fbecdc3f35ab8c38b53b9225
[ "MIT" ]
null
null
null
""" Adds the even valued numbers of the fibonacci series below limit Author: Juan Rios """ def fibonacci_sum(limit): a = 1 b = 2 sum = 0 while (b<limit): if (b%2==0): sum += b temp = b b += a a = temp return sum if __name__ == "__main__": limit = 400...
21.45
104
0.566434
78debf21f3888e71a11ea8c35ab035591d0b947a
2,870
py
Python
models/bigru_attn/model.py
mjc92/JavaScriptAutoComplete
6eed02a9f8ef084208bf45d8a81a52d86e247810
[ "CNRI-Python" ]
null
null
null
models/bigru_attn/model.py
mjc92/JavaScriptAutoComplete
6eed02a9f8ef084208bf45d8a81a52d86e247810
[ "CNRI-Python" ]
null
null
null
models/bigru_attn/model.py
mjc92/JavaScriptAutoComplete
6eed02a9f8ef084208bf45d8a81a52d86e247810
[ "CNRI-Python" ]
null
null
null
import torch import torch.nn as nn import numpy as np from torch.autograd import Variable import torch.nn.functional as F # RNN Based Language Model class biGRU_attn(nn.Module): def __init__(self, vocab_size, embed_size, hidden_size, num_layers, sos): super(biGRU_attn, self).__init__() self.embed =...
44.84375
95
0.583275
268182fbd42d98a50743f5e2c61ce34f101b0778
201
py
Python
frappe/core/doctype/data_export/data_export.py
oryxsolutions/frappe
d193ea22d17ca40d57432040a8afad72287d9e23
[ "MIT" ]
null
null
null
frappe/core/doctype/data_export/data_export.py
oryxsolutions/frappe
d193ea22d17ca40d57432040a8afad72287d9e23
[ "MIT" ]
null
null
null
frappe/core/doctype/data_export/data_export.py
oryxsolutions/frappe
d193ea22d17ca40d57432040a8afad72287d9e23
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and contributors # License: MIT. See LICENSE from frappe.model.document import Document class DataExport(Document): pass
20.1
68
0.731343
5408355367545c3ecfb6f1d71d3436f78737dd8e
1,212
py
Python
tools/split.py
thangnx183/kaggle-understanding-clouds
15ad2a9029958262437b899cb00525579da23911
[ "BSD-2-Clause" ]
207
2019-11-21T19:07:17.000Z
2022-03-28T10:53:57.000Z
tools/split.py
ChasingStar95/kaggle-understanding-clouds
898319b564deab02b4267cc658bbebdbb15c49de
[ "BSD-2-Clause" ]
12
2019-12-04T11:32:30.000Z
2022-03-12T00:06:11.000Z
tools/split.py
ChasingStar95/kaggle-understanding-clouds
898319b564deab02b4267cc658bbebdbb15c49de
[ "BSD-2-Clause" ]
60
2019-11-21T17:32:56.000Z
2022-03-28T10:53:58.000Z
import tqdm import numpy as np import pandas as pd from iterstrat.ml_stratifiers import MultilabelStratifiedKFold N_SPLITS = 11 TRAIN_CSV_PATH = 'data/train.csv' LABEL_MAP = { 'Fish': 0, 'Flower': 1, 'Gravel': 2, 'Sugar': 3 } df_train = pd.read_csv(TRAIN_CSV_PATH) df_train['I...
25.25
78
0.673267
a51470f31981901136165bf0a4b71aac1611ff29
6,024
py
Python
app/views.py
Evohmike/Awwards
a21c669ac4b76047bc4d6e960fd91258ea2c951d
[ "MIT" ]
null
null
null
app/views.py
Evohmike/Awwards
a21c669ac4b76047bc4d6e960fd91258ea2c951d
[ "MIT" ]
3
2021-03-18T21:16:10.000Z
2021-09-08T00:32:46.000Z
app/views.py
Evohmike/Awwards
a21c669ac4b76047bc4d6e960fd91258ea2c951d
[ "MIT" ]
null
null
null
from django.shortcuts import render, redirect , get_object_or_404 from django.http import HttpResponse from django.contrib.auth import login, authenticate from .forms import * from django.contrib.sites.shortcuts import get_current_site from django.utils.encoding import force_bytes, force_text from django.utils.http imp...
31.375
101
0.643924
c45f0f9f11abc783f8a5e23ca0d0cb0262379d39
4,511
py
Python
lib/calculate_prices.py
AlvBarros/evse_charging
74f26b03d6b86d54823878aa84b761728e3f6c7c
[ "MIT" ]
null
null
null
lib/calculate_prices.py
AlvBarros/evse_charging
74f26b03d6b86d54823878aa84b761728e3f6c7c
[ "MIT" ]
null
null
null
lib/calculate_prices.py
AlvBarros/evse_charging
74f26b03d6b86d54823878aa84b761728e3f6c7c
[ "MIT" ]
null
null
null
import math import json from lib.business.supplierPrice import SupplierPrice from lib.business.charge import Charge from lib.business.price import Price def calculatePricesFromCleanData(clean_data): # Initialize empty list result = [] # For every Charge inside clean result for charge in clean_data['t...
41.009091
102
0.627799
c05cbc062882a75f1bfb53d2bc8edaa27eb9059f
785
py
Python
games/pacman.py
aphawkins/microbit
8fa6a56504ef75082c3c4de7d962419eb8848b7a
[ "MIT" ]
null
null
null
games/pacman.py
aphawkins/microbit
8fa6a56504ef75082c3c4de7d962419eb8848b7a
[ "MIT" ]
null
null
null
games/pacman.py
aphawkins/microbit
8fa6a56504ef75082c3c4de7d962419eb8848b7a
[ "MIT" ]
null
null
null
from microbit import * import music pacman_1 = Image( "07970:" "79997:" "99999:" "79997:" "07970") pacman_2 = Image( "07970:" "79985:" "99972:" "79985:" "07970") pacman_3 = Image( "07970:" "79970:" "997...
18.690476
73
0.438217
e699a814dc952df24b8bc8d44d416f7c99a9c840
2,833
py
Python
google/cloud/gkehub/v1/gkehub-v1-py/google/cloud/gkehub_v1/__init__.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
7
2021-02-21T10:39:41.000Z
2021-12-07T07:31:28.000Z
google/cloud/gkehub/v1/gkehub-v1-py/google/cloud/gkehub_v1/__init__.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
6
2021-02-02T23:46:11.000Z
2021-11-15T01:46:02.000Z
google/cloud/gkehub/v1/gkehub-v1-py/google/cloud/gkehub_v1/__init__.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
4
2021-01-28T23:25:45.000Z
2021-08-30T01:55:16.000Z
# -*- 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 required by applicable law or...
33.329412
74
0.82845
3ebfd1b4388fe58d2ca60000b496495c3b9c0de3
785
py
Python
flyvec/utils.py
bhoov/flyvec
3d5c1ef265c7f988c5dc72a74055479ed067a7f6
[ "Apache-2.0" ]
31
2021-02-04T12:11:19.000Z
2022-01-11T16:02:33.000Z
flyvec/utils.py
bhoov/flyvec
3d5c1ef265c7f988c5dc72a74055479ed067a7f6
[ "Apache-2.0" ]
7
2021-01-16T18:30:52.000Z
2022-01-18T06:42:23.000Z
flyvec/utils.py
bhoov/flyvec
3d5c1ef265c7f988c5dc72a74055479ed067a7f6
[ "Apache-2.0" ]
6
2021-02-16T17:42:01.000Z
2022-02-23T07:06:54.000Z
# AUTOGENERATED! DO NOT EDIT! File to edit: nbs/04_utils.ipynb (unless otherwise specified). __all__ = ['delegates'] # Cell import inspect def delegates(to=None, keep=False): "Decorator: replace `**kwargs` in signature with params from `to`" def _f(f): if to is None: to_f,from_f = f.__base__.__init__...
35.681818
92
0.628025
e0620f38e789d83c4f634185eea670aabfc70e36
2,770
py
Python
saleor/site/models.py
glosoftgroup/ps254-backend
f9c9d798ae8eba29a3a502c6913c2238c4d3906c
[ "BSD-3-Clause" ]
null
null
null
saleor/site/models.py
glosoftgroup/ps254-backend
f9c9d798ae8eba29a3a502c6913c2238c4d3906c
[ "BSD-3-Clause" ]
6
2021-02-08T20:20:06.000Z
2022-03-11T23:18:59.000Z
saleor/site/models.py
glosoftgroup/ps254-backend
f9c9d798ae8eba29a3a502c6913c2238c4d3906c
[ "BSD-3-Clause" ]
null
null
null
from django.contrib.sites.models import _simple_domain_name_validator from django.db import models from django.utils.encoding import python_2_unicode_compatible from django.utils.translation import pgettext_lazy from . import AuthenticationBackends from decimal import Decimal from django.core.validators import MinValu...
35.512821
105
0.736462
8d8b4d3883f2314aff89a3b787fe6557d537baf7
8,157
py
Python
cloudtts/aws.py
setomits/cloudtts
701c9f95d9926a8925b6dd2f2526b0b28c9a0fd7
[ "MIT" ]
3
2018-08-29T23:27:14.000Z
2018-08-30T03:44:20.000Z
cloudtts/aws.py
setomits/cloudtts
701c9f95d9926a8925b6dd2f2526b0b28c9a0fd7
[ "MIT" ]
1
2018-09-18T08:51:08.000Z
2018-09-18T08:51:08.000Z
cloudtts/aws.py
setomits/cloudtts
701c9f95d9926a8925b6dd2f2526b0b28c9a0fd7
[ "MIT" ]
2
2018-10-19T07:48:56.000Z
2018-10-19T08:57:52.000Z
from contextlib import closing import re from boto3 import Session from .client import AudioFormat from .client import Client from .client import CloudTTSError from .client import Gender from .client import Language from .client import VoiceConfig class PollyCredential: def __init__(self, region_name, ...
37.077273
78
0.566262
cb52ecaa6f4143fbbb8dc4ab36a7df8afa751154
7,409
py
Python
bluesky_queueserver/manager/tests/test_manager_options.py
ksunden/bluesky-queueserver
49a4b22d942f5f0593dedb6afa57e0929b459df4
[ "BSD-3-Clause" ]
null
null
null
bluesky_queueserver/manager/tests/test_manager_options.py
ksunden/bluesky-queueserver
49a4b22d942f5f0593dedb6afa57e0929b459df4
[ "BSD-3-Clause" ]
null
null
null
bluesky_queueserver/manager/tests/test_manager_options.py
ksunden/bluesky-queueserver
49a4b22d942f5f0593dedb6afa57e0929b459df4
[ "BSD-3-Clause" ]
null
null
null
import pytest import shutil import os import glob import subprocess import time as ttime import multiprocessing from bluesky.callbacks.zmq import RemoteDispatcher from bluesky_queueserver.manager.profile_ops import gen_list_of_plans_and_devices from bluesky_queueserver.manager.comms import zmq_single_request from ._c...
37.609137
112
0.703199
9a10ae7139de177ee30f99e43a99ca4a7883431e
1,889
py
Python
configs/_base_/datasets/coco_detection.py
aanna0701/swin_object_SCL
b1a8aa53fff0d6657fe3038fb08da260e780d760
[ "Apache-2.0" ]
null
null
null
configs/_base_/datasets/coco_detection.py
aanna0701/swin_object_SCL
b1a8aa53fff0d6657fe3038fb08da260e780d760
[ "Apache-2.0" ]
null
null
null
configs/_base_/datasets/coco_detection.py
aanna0701/swin_object_SCL
b1a8aa53fff0d6657fe3038fb08da260e780d760
[ "Apache-2.0" ]
null
null
null
dataset_type = 'CocoDataset' data_root = 'data/coco/' img_norm_cfg = dict( mean=[123.675, 116.28, 103.53], std=[58.395, 57.12, 57.375], to_rgb=True) train_pipeline = [ dict(type='LoadImageFromFile'), dict(type='LoadAnnotations', with_bbox=True), dict(type='Resize', img_scale=(1333, 800), keep_ratio=True...
34.981481
77
0.627316
f619b57241a669375d5b41049544917cdce0384a
257
py
Python
sandbox/lib/pythonbin/libtmux/__about__.py
Jumpscale/sandbox_linux
2aacd36b467ef30ac83718abfa82c6883b67a02f
[ "Apache-2.0" ]
null
null
null
sandbox/lib/pythonbin/libtmux/__about__.py
Jumpscale/sandbox_linux
2aacd36b467ef30ac83718abfa82c6883b67a02f
[ "Apache-2.0" ]
1
2018-04-04T12:13:40.000Z
2018-05-03T07:57:52.000Z
sandbox/lib/pythonbin/libtmux/__about__.py
Jumpscale/sandbox_linux
2aacd36b467ef30ac83718abfa82c6883b67a02f
[ "Apache-2.0" ]
null
null
null
__title__ = 'libtmux' __package_name__ = 'libtmux' __version__ = '0.8.0' __description__ = 'scripting library / orm for tmux' __email__ = 'tony@git-pull.com' __author__ = 'Tony Narlock' __license__ = 'MIT' __copyright__ = 'Copyright 2016-2018 Tony Narlock'
28.555556
52
0.750973
225c330f8649643c1a9132171f6c38e0e6ac7b07
2,139
py
Python
indra/tests/test_acsn.py
samuelbunga/indra
54bfa0f01f0825118a7873ef72762ef66eb2062f
[ "BSD-2-Clause" ]
null
null
null
indra/tests/test_acsn.py
samuelbunga/indra
54bfa0f01f0825118a7873ef72762ef66eb2062f
[ "BSD-2-Clause" ]
null
null
null
indra/tests/test_acsn.py
samuelbunga/indra
54bfa0f01f0825118a7873ef72762ef66eb2062f
[ "BSD-2-Clause" ]
null
null
null
import pandas import requests from indra.sources.acsn import api from indra.ontology.standardize import get_standard_agent from indra.sources.acsn.processor import get_stmt_type, AcsnProcessor relations_df = pandas.read_csv(api.ACSN_RELATIONS_URL, sep='\t') gmt_file = requests.get(api.ACSN_CORRESPONDENCE_URL).text.sp...
36.87931
79
0.673212
cafea141416d6182f2e0a5ef0fb35960727f4a97
59,181
py
Python
src/kmol/vendor/dgllife/utils/featurizers.py
elix-tech/kmol
f7fb610d0cbe958891ed15032bb301fb664e4e25
[ "MIT" ]
27
2021-11-18T12:12:38.000Z
2022-03-15T06:34:55.000Z
src/kmol/vendor/dgllife/utils/featurizers.py
elix-tech/kmol
f7fb610d0cbe958891ed15032bb301fb664e4e25
[ "MIT" ]
3
2022-01-25T05:19:54.000Z
2022-02-03T01:30:29.000Z
src/kmol/vendor/dgllife/utils/featurizers.py
elix-tech/kmol
f7fb610d0cbe958891ed15032bb301fb664e4e25
[ "MIT" ]
3
2022-02-08T16:12:14.000Z
2022-03-31T05:47:57.000Z
import itertools import os.path as osp from collections import defaultdict from functools import partial import numpy as np import torch from rdkit import Chem, RDConfig from rdkit.Chem import AllChem, ChemicalFeatures __all__ = [ 'one_hot_encoding', 'atom_type_one_hot', 'atomic_number_one_hot', 'atom...
32.111232
100
0.620284
d2dcc5b325790b9efe72c206e0f5c5a1c7e02336
738
py
Python
packages/python/m/cli/commands/git/status.py
LaudateCorpus1/m
57e258ddb1347f8e29673410e12575d203bb19c8
[ "MIT" ]
null
null
null
packages/python/m/cli/commands/git/status.py
LaudateCorpus1/m
57e258ddb1347f8e29673410e12575d203bb19c8
[ "MIT" ]
null
null
null
packages/python/m/cli/commands/git/status.py
LaudateCorpus1/m
57e258ddb1347f8e29673410e12575d203bb19c8
[ "MIT" ]
1
2021-12-31T13:25:33.000Z
2021-12-31T13:25:33.000Z
import inspect from ...utils import call_main def add_parser(sub_parser, raw): desc = """ Display a single word representing the current git status. $ m git status clean Statuses: unknown untracked stash clean ...
19.421053
66
0.533875
e5fe29920c5676c9a908ee8c5754fa5bdfc2c9e2
91
py
Python
app/controllers/calls_log/__init__.py
voxity/vox-ui-api
9da442a2ae8e5fec92485cf7dc4adf1a560aa8f5
[ "MIT" ]
null
null
null
app/controllers/calls_log/__init__.py
voxity/vox-ui-api
9da442a2ae8e5fec92485cf7dc4adf1a560aa8f5
[ "MIT" ]
null
null
null
app/controllers/calls_log/__init__.py
voxity/vox-ui-api
9da442a2ae8e5fec92485cf7dc4adf1a560aa8f5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import from .views import CALLS_LOG
30.333333
38
0.758242
56edb70e56a9c0bba532c99251bb043cbc1714a3
1,971
py
Python
hetest/python/circuit_generation/ibm/ibm_gate_rotate.py
y4n9squared/HEtest
264459a8fa1480c7b65d946f88d94af1a038fbf1
[ "BSD-2-Clause" ]
6
2017-12-05T14:46:47.000Z
2021-08-09T07:23:44.000Z
hetest/python/circuit_generation/int_circuit/ibm_gate_rotate.py
CianLevy/Modified-HEtest
4f4422bba48f269e953ca0d3863f774f66ba2247
[ "BSD-2-Clause" ]
1
2018-02-22T14:55:07.000Z
2018-02-22T14:55:07.000Z
hetest/python/circuit_generation/int_circuit/ibm_gate_rotate.py
CianLevy/Modified-HEtest
4f4422bba48f269e953ca0d3863f774f66ba2247
[ "BSD-2-Clause" ]
2
2018-02-19T20:58:58.000Z
2021-06-23T05:38:53.000Z
# ***************************************************************** # Copyright (c) 2013 Massachusetts Institute of Technology # # Developed exclusively at US Government expense under US Air Force contract # FA8721-05-C-002. The rights of the United States Government to use, modify, # reproduce, release, perform, displ...
41.0625
77
0.599696
04e57d04f6aa8bd77488ab0df571d00e62c0107d
5,075
py
Python
aws_managers/feature_store/features_metadata.py
vahndi/aws-managers
bdbfb2b8a9258a53e3ea4dfbbfe5491a34113899
[ "MIT" ]
null
null
null
aws_managers/feature_store/features_metadata.py
vahndi/aws-managers
bdbfb2b8a9258a53e3ea4dfbbfe5491a34113899
[ "MIT" ]
null
null
null
aws_managers/feature_store/features_metadata.py
vahndi/aws-managers
bdbfb2b8a9258a53e3ea4dfbbfe5491a34113899
[ "MIT" ]
null
null
null
from pathlib import Path from typing import Optional, Dict, List from pandas import DataFrame, read_excel, Series, isnull from aws_managers.utils.dtype_mappings import FS_NAME_TO_ATHENA_NAME class FeaturesMetadata(object): def __init__(self, metadata_fn: Path, dataset_name: str): """ Class to r...
38.157895
80
0.565517
2311ce62f850ebd1847c70faf7c44e746ba724eb
1,007
py
Python
oidc_example/op2/venvOidc/Scripts/pasteurize-script.py
State-xyz/pyoidc
cfbe40e43b7acb0004900520d50ede60858208d4
[ "Apache-2.0" ]
null
null
null
oidc_example/op2/venvOidc/Scripts/pasteurize-script.py
State-xyz/pyoidc
cfbe40e43b7acb0004900520d50ede60858208d4
[ "Apache-2.0" ]
null
null
null
oidc_example/op2/venvOidc/Scripts/pasteurize-script.py
State-xyz/pyoidc
cfbe40e43b7acb0004900520d50ede60858208d4
[ "Apache-2.0" ]
null
null
null
#!e:\datn\pyoidc\oidc_example\op2\venvoidc\scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'future==0.17.1','console_scripts','pasteurize' import re import sys # for compatibility with easy_install; see #2198 __requires__ = 'future==0.17.1' try: from importlib.metadata import distribution except ImportError: ...
29.617647
83
0.706058
ffab59426370f187a27bf66453ae67b0141b5dca
508
py
Python
forums/models.py
akiyoss-git/MineLearningMirror
bf183738f6a95e6717f7b22081628279f9d6f20b
[ "MIT" ]
null
null
null
forums/models.py
akiyoss-git/MineLearningMirror
bf183738f6a95e6717f7b22081628279f9d6f20b
[ "MIT" ]
null
null
null
forums/models.py
akiyoss-git/MineLearningMirror
bf183738f6a95e6717f7b22081628279f9d6f20b
[ "MIT" ]
null
null
null
from django.db import models from django.template.defaultfilters import slugify class Forum(models.Model): name = models.CharField(max_length=30, unique=True) description = models.CharField(max_length=200) slug = models.SlugField(unique=True) def __str__(self): return self.slug def save(...
28.222222
55
0.663386
4d19c81bd51977d38eefd3dacc82b461c2de75ef
22,605
py
Python
selfdrive/car/volkswagen/values.py
SamuelSandoval/openpilot
a337097b5ee515560e9f1a804b997753767d3c9a
[ "MIT" ]
2
2021-06-09T13:13:39.000Z
2021-09-24T16:12:52.000Z
selfdrive/car/volkswagen/values.py
SamuelSandoval/openpilot
a337097b5ee515560e9f1a804b997753767d3c9a
[ "MIT" ]
null
null
null
selfdrive/car/volkswagen/values.py
SamuelSandoval/openpilot
a337097b5ee515560e9f1a804b997753767d3c9a
[ "MIT" ]
null
null
null
# flake8: noqa from selfdrive.car import dbc_dict from cereal import car Ecu = car.CarParams.Ecu class CarControllerParams: HCA_STEP = 2 # HCA_01 message frequency 50Hz LDW_STEP = 10 # LDW_02 message frequency 10Hz GRA_ACC_STEP = 3 # GRA_ACC_01 message frequency ...
58.562176
901
0.623446
2f7802a4a5bff0a74bd38886f3d9f38d640fe2eb
9,435
py
Python
hfc/protos/peer/resources_pb2.py
roviso/hyberledger-py
908dd597e0822f99cf618f235dd517824ba44bc4
[ "Apache-2.0" ]
389
2016-09-18T11:50:10.000Z
2022-03-29T21:45:40.000Z
hfc/protos/peer/resources_pb2.py
roviso/hyberledger-py
908dd597e0822f99cf618f235dd517824ba44bc4
[ "Apache-2.0" ]
112
2017-08-18T00:32:21.000Z
2022-02-25T18:55:57.000Z
hfc/protos/peer/resources_pb2.py
roviso/hyberledger-py
908dd597e0822f99cf618f235dd517824ba44bc4
[ "Apache-2.0" ]
268
2016-10-12T02:56:58.000Z
2022-03-30T09:50:54.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: hfc/protos/peer/resources.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection f...
36.712062
706
0.765872
eac623bb90e55bf60b5ee3411d60a6c67113b384
619
py
Python
tests/test_global_phot.py
temuller/cosmo_phot
011333f84486614cb9339d3874dc072c45ebed23
[ "MIT" ]
null
null
null
tests/test_global_phot.py
temuller/cosmo_phot
011333f84486614cb9339d3874dc072c45ebed23
[ "MIT" ]
null
null
null
tests/test_global_phot.py
temuller/cosmo_phot
011333f84486614cb9339d3874dc072c45ebed23
[ "MIT" ]
null
null
null
import unittest from hostphot.cutouts import download_images import hostphot.global_photometry as gp class TestHostPhot(unittest.TestCase): def test_global_phot(self): sn_name = 'SN2004eo' host_ra = 308.2092 host_dec = 9.92755 z = 0.0157 survey = 'PS1' download_ima...
29.47619
69
0.644588
2b1341c2a2ab4e7f443b959e8416a9ebda35a897
2,325
py
Python
line_search/goldstein.py
Hintonthu/opt_methods
e711ca708479c6fc99b7cad8fa2a078bd8d48cfd
[ "MIT" ]
1
2020-07-17T08:46:18.000Z
2020-07-17T08:46:18.000Z
line_search/goldstein.py
Hintonthu/opt_methods
e711ca708479c6fc99b7cad8fa2a078bd8d48cfd
[ "MIT" ]
null
null
null
line_search/goldstein.py
Hintonthu/opt_methods
e711ca708479c6fc99b7cad8fa2a078bd8d48cfd
[ "MIT" ]
null
null
null
import copy from .line_search import LineSearch class Armijo(LineSearch): """ Armijo line search with optional resetting of the initial stepsize of each iteration. If resetting is used, the previous value multiplied by 1/backtracking is used as the first stepsize to try at this iteration. Otherwi...
40.789474
103
0.64129
e80fa07154d2832ba36bdffbe25ef7e50a6a1c82
4,542
py
Python
src/etools_permissions/backends.py
unicef/etools-permissions
7a6da87c9829290af3cea458314e60dd6d1239fd
[ "Apache-2.0" ]
null
null
null
src/etools_permissions/backends.py
unicef/etools-permissions
7a6da87c9829290af3cea458314e60dd6d1239fd
[ "Apache-2.0" ]
null
null
null
src/etools_permissions/backends.py
unicef/etools-permissions
7a6da87c9829290af3cea458314e60dd6d1239fd
[ "Apache-2.0" ]
null
null
null
from django.contrib.auth.backends import ModelBackend from django.core.exceptions import PermissionDenied from etools_permissions.models import Permission, Realm class RealmBackend(ModelBackend): def _get_realm(self, user): try: return Realm.objects.get(user=user) except Realm.DoesNot...
35.484375
82
0.584544
eaed71fe04775f233a01f0f52d299da0143fad33
7,393
py
Python
tests/unit/test_views.py
hershman/server
5344ccc45249ef0771b9ca4d8d585312a6e04231
[ "Apache-2.0" ]
null
null
null
tests/unit/test_views.py
hershman/server
5344ccc45249ef0771b9ca4d8d585312a6e04231
[ "Apache-2.0" ]
null
null
null
tests/unit/test_views.py
hershman/server
5344ccc45249ef0771b9ca4d8d585312a6e04231
[ "Apache-2.0" ]
null
null
null
""" Unit tests for the frontend code. """ from __future__ import division from __future__ import print_function from __future__ import unicode_literals import unittest import ga4gh.frontend as frontend import ga4gh.protocol as protocol import tests.utils as utils _app = None def setUp(self): config = { ...
36.59901
77
0.661301
af9f26a74c40b99a0cddff26607a754e0a6dd05e
5,648
py
Python
examples/model_compress/pruning/v2/norm_pruning_torch.py
JiahangXu/nni
eb577361841ecd210aa2933d2f0500d981d02230
[ "MIT" ]
1
2022-01-27T01:42:41.000Z
2022-01-27T01:42:41.000Z
examples/model_compress/pruning/v2/norm_pruning_torch.py
JiahangXu/nni
eb577361841ecd210aa2933d2f0500d981d02230
[ "MIT" ]
null
null
null
examples/model_compress/pruning/v2/norm_pruning_torch.py
JiahangXu/nni
eb577361841ecd210aa2933d2f0500d981d02230
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. ''' NNI example for supported l1norm and l2norm pruning algorithms. In this example, we show the end-to-end pruning process: pre-training -> pruning -> fine-tuning. Note that pruners use masks to simulate the real pruning. In order to obtain a re...
41.226277
129
0.659525
cb72137d9bb93d9de3041e6104026def7c9bcb58
4,017
py
Python
tests/test_struct/test_transformations/test_transfer.py
cthoyt/pybel
ed66f013a77f9cbc513892b0dad1025b8f68bb46
[ "Apache-2.0" ]
null
null
null
tests/test_struct/test_transformations/test_transfer.py
cthoyt/pybel
ed66f013a77f9cbc513892b0dad1025b8f68bb46
[ "Apache-2.0" ]
11
2017-12-28T08:03:14.000Z
2019-01-15T02:13:58.000Z
tests/test_struct/test_transformations/test_transfer.py
cthoyt/pybel
ed66f013a77f9cbc513892b0dad1025b8f68bb46
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """Tests for transfer of knowledge and inference functions.""" import unittest from pybel.examples.statin_example import ( avorastatin, ec_11134, ec_11188, fluvastatin, hmgcr, hmgcr_inhibitor, mevinolinic_acid, statin, statin_graph, synthetic_statin, ) ...
36.518182
92
0.685337
961d7fe963e0de1296e9fb54c77b5e6d60125e06
988
py
Python
tests/test_urlparse4.py
mladenangel/pyurlparser
fda910309aa189d57473dbb12e2d2acde49c1736
[ "Apache-2.0" ]
45
2016-07-07T20:15:13.000Z
2021-03-28T22:59:13.000Z
tests/test_urlparse4.py
mladenangel/pyurlparser
fda910309aa189d57473dbb12e2d2acde49c1736
[ "Apache-2.0" ]
14
2016-07-09T18:32:13.000Z
2020-07-01T16:33:59.000Z
tests/test_urlparse4.py
mladenangel/pyurlparser
fda910309aa189d57473dbb12e2d2acde49c1736
[ "Apache-2.0" ]
8
2016-07-07T20:21:50.000Z
2019-12-10T22:16:30.000Z
# https://github.com/python/cpython/blob/40dac3272231773af0015fc35df5353783d77c4e/Lib/test/test_urlparse.py import sys import os sys.path.insert(-1, os.path.dirname(os.path.dirname(__file__))) from test import test_support import unittest import urlparse4 as urlparse urlsplit_testcases = [ ["mailto:webtechs@oltn...
30.875
116
0.671053
ab0032a2a324a944050d61ed00f47e160305c60e
2,302
py
Python
qal/dataset/tests/test_files.py
OptimalBPM/qal
4d7a31c0d68042b4110e1fa3e733711e0fdd473e
[ "Unlicense" ]
3
2016-05-02T14:35:55.000Z
2021-08-31T14:19:15.000Z
qal/dataset/tests/test_files.py
OptimalBPM/qal
4d7a31c0d68042b4110e1fa3e733711e0fdd473e
[ "Unlicense" ]
null
null
null
qal/dataset/tests/test_files.py
OptimalBPM/qal
4d7a31c0d68042b4110e1fa3e733711e0fdd473e
[ "Unlicense" ]
1
2018-03-18T13:19:52.000Z
2018-03-18T13:19:52.000Z
""" Created on Dec 17, 2013 @author: Nicklas Boerjesson """ import json import unittest from shutil import copyfile import os from qal.dataset.files import FilesDataset from qal.common.resources import Resources from qal.dataset.custom import DATASET_LOGLEVEL_DETAIL Test_Script_Dir = os.path.dirname(__file__) Test...
31.534247
107
0.662467
864eb8bef4bad09c1f6a91b10224fe72769b8c69
1,775
py
Python
main.py
Raisahab77/library_management_system
7b0f74029b1424d37b715e9a43eb78478c07a8e8
[ "MIT" ]
null
null
null
main.py
Raisahab77/library_management_system
7b0f74029b1424d37b715e9a43eb78478c07a8e8
[ "MIT" ]
null
null
null
main.py
Raisahab77/library_management_system
7b0f74029b1424d37b715e9a43eb78478c07a8e8
[ "MIT" ]
null
null
null
from tkinter import * from PIL import ImageTk,Image from tkinter import messagebox from AddBook import * from DeleteBook import * from ViewBooks import * from IssueBook import * from ReturnBook import * import sqlite3 con = sqlite3.connect(mydatabase) cur = con.cursor() cur.execute("""CREATE TABLE IF NOT E...
36.22449
154
0.725634
3c59f30c54696b2c74e67740c78e54f5026307f0
1,452
py
Python
Linear/ShearCenter/test.py
mkraska/CalculiX-Examples
5e28b3d06331f3a958b1758b31cb84b2e253553b
[ "MIT" ]
177
2016-01-03T14:33:44.000Z
2022-02-15T11:29:48.000Z
Linear/ShearCenter/test.py
xyg1996/CalculiX-Examples
5e28b3d06331f3a958b1758b31cb84b2e253553b
[ "MIT" ]
52
2016-01-05T20:37:04.000Z
2022-02-06T15:30:29.000Z
Linear/ShearCenter/test.py
xyg1996/CalculiX-Examples
5e28b3d06331f3a958b1758b31cb84b2e253553b
[ "MIT" ]
73
2016-02-09T12:17:06.000Z
2022-01-22T13:31:00.000Z
#!/usr/bin/python import os import multiprocessing import shutil # Provide access to the helper scripts def modify_path(): scripts_dir = os.path.dirname(__file__) while not 'Scripts' in os.listdir(scripts_dir): scripts_dir = os.path.abspath(os.path.join(scripts_dir, '..')) scripts_dir = os.path.jo...
29.04
70
0.630165
6b1a2e2efd8dd3d6bdd04a6f1f83ab9ad73f826e
865
py
Python
byceps/services/email/transfer/models.py
GyBraLAN/byceps
b53087849c10a531b66d08999116fa1bef312a7f
[ "BSD-3-Clause" ]
33
2018-01-16T02:04:51.000Z
2022-03-22T22:57:29.000Z
byceps/services/email/transfer/models.py
GyBraLAN/byceps
b53087849c10a531b66d08999116fa1bef312a7f
[ "BSD-3-Clause" ]
7
2019-06-16T22:02:03.000Z
2021-10-02T13:45:31.000Z
byceps/services/email/transfer/models.py
GyBraLAN/byceps
b53087849c10a531b66d08999116fa1bef312a7f
[ "BSD-3-Clause" ]
14
2019-06-01T21:39:24.000Z
2022-03-14T17:56:43.000Z
""" byceps.services.email.transfer.models ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :Copyright: 2006-2021 Jochen Kupperschmidt :License: Revised BSD (see `LICENSE` file for details) """ from __future__ import annotations from dataclasses import dataclass from email.utils import formataddr from typing import Optional fro...
20.595238
72
0.685549
624d58b1dd34ca5a94b424b02f1eb8db3ab2bb9c
1,598
py
Python
renzongxian/0022/0022.py
saurabh896/python-1
f8d3aedf4c0fe6e24dfa3269ea7e642c9f7dd9b7
[ "MIT" ]
3,976
2015-01-01T15:49:39.000Z
2022-03-31T03:47:56.000Z
renzongxian/0022/0022.py
dwh65416396/python
1a7e3edd1cd3422cc0eaa55471a0b42e004a9a1a
[ "MIT" ]
97
2015-01-11T02:59:46.000Z
2022-03-16T14:01:56.000Z
renzongxian/0022/0022.py
dwh65416396/python
1a7e3edd1cd3422cc0eaa55471a0b42e004a9a1a
[ "MIT" ]
3,533
2015-01-01T06:19:30.000Z
2022-03-28T13:14:54.000Z
# Source:https://github.com/Show-Me-the-Code/show-me-the-code # Author:renzongxian # Date:2014-12-24 # Python 3.4 """ 第 0022 题: iPhone 6、iPhone 6 Plus 早已上市开卖。请查看你写得 第 0005 题的代码是否可以复用。 """ from PIL import Image import os import sys def resize_image(image, t_weight, t_height): im = Image.open(image) weight,...
28.535714
92
0.56821
6a3f34e8a5aaae7b7164afc25f4bdb686e3a31a7
3,155
py
Python
koku/masu/prometheus_stats.py
Vasyka/koku
b5aa9ec41c3b0821e74afe9ff3a5ffaedb910614
[ "Apache-2.0" ]
2
2022-01-12T03:42:39.000Z
2022-01-12T03:42:40.000Z
koku/masu/prometheus_stats.py
Vasyka/koku
b5aa9ec41c3b0821e74afe9ff3a5ffaedb910614
[ "Apache-2.0" ]
null
null
null
koku/masu/prometheus_stats.py
Vasyka/koku
b5aa9ec41c3b0821e74afe9ff3a5ffaedb910614
[ "Apache-2.0" ]
1
2021-07-21T09:33:59.000Z
2021-07-21T09:33:59.000Z
# # Copyright 2021 Red Hat Inc. # SPDX-License-Identifier: Apache-2.0 # """Prometheus Stats.""" from prometheus_client import CollectorRegistry from prometheus_client import Counter from prometheus_client import Gauge from prometheus_client import multiprocess WORKER_REGISTRY = CollectorRegistry() multiprocess.MultiP...
38.950617
118
0.796513
b65d1ce0d1d63d72885fff0f14ddd2e2bfa6f2e8
1,140
py
Python
command_helper/utils/util.py
wasteland-rider/sublime-robot-framework-assistant
7d75b85c5364995f1012a55ac9f67600aa8ba5e3
[ "MIT" ]
null
null
null
command_helper/utils/util.py
wasteland-rider/sublime-robot-framework-assistant
7d75b85c5364995f1012a55ac9f67600aa8ba5e3
[ "MIT" ]
null
null
null
command_helper/utils/util.py
wasteland-rider/sublime-robot-framework-assistant
7d75b85c5364995f1012a55ac9f67600aa8ba5e3
[ "MIT" ]
null
null
null
import re from json import load as json_load def get_data_from_json(json_file): f = open(json_file) data = json_load(f) f.close() return data def _keyword_with_embedded_arg(kw, kw_candite): kw = kw.lower().replace(' ', '').replace('_', '') kw_candite = kw_candite.lower().replace...
30
70
0.604386
9e9ba0a0249d19c84179b6049ea72dc7b56979e6
494
py
Python
pset_classes/vehicles/p6.py
mottaquikarim/pydev-psets
9749e0d216ee0a5c586d0d3013ef481cc21dee27
[ "MIT" ]
5
2019-04-08T20:05:37.000Z
2019-12-04T20:48:45.000Z
pset_classes/vehicles/p6.py
mottaquikarim/pydev-psets
9749e0d216ee0a5c586d0d3013ef481cc21dee27
[ "MIT" ]
8
2019-04-15T15:16:05.000Z
2022-02-12T10:33:32.000Z
pset_classes/vehicles/p6.py
mottaquikarim/pydev-psets
9749e0d216ee0a5c586d0d3013ef481cc21dee27
[ "MIT" ]
2
2019-04-10T00:14:42.000Z
2020-02-26T20:35:21.000Z
""" Vehicles VI """ # Next, define new method called "check_fuel_level()" for your newly expanded Car class. If the fuel_level attribute is < 15, the method should reset fuel_level to 50 and print out how many units it refueled the car, e.g. 'Refueled 38 units.' Otherwise, it should simply print 'No need to refuel rig...
61.75
307
0.761134
50f10e5e96fe62ba91f541147c5d8e79baa41e06
4,815
py
Python
cipher.py
peterwilliams97/compression
dd40032a24cc111d4a881f4f8aa2389df519ddd0
[ "MIT" ]
null
null
null
cipher.py
peterwilliams97/compression
dd40032a24cc111d4a881f4f8aa2389df519ddd0
[ "MIT" ]
null
null
null
cipher.py
peterwilliams97/compression
dd40032a24cc111d4a881f4f8aa2389df519ddd0
[ "MIT" ]
null
null
null
from collections import defaultdict from letter_frequencies import letter_frequencies def xor(x, y): return [a ^ b for a, b in zip(x, y)] def from_h(s): """Returns list of bytes corresponding to hex string `s`""" assert len(s) % 2 == 0 return [int(s[2 * i: 2 * i + 2], 16) for i in range(len(s) // 2)...
49.639175
379
0.82243
4ca151ba9d7c5e807fc0a3dd9deb223c22ad77bf
58
py
Python
database.py
monologid/paperboy
dfb427af50c576057a350e4bab60ca5c56136932
[ "Apache-2.0" ]
null
null
null
database.py
monologid/paperboy
dfb427af50c576057a350e4bab60ca5c56136932
[ "Apache-2.0" ]
null
null
null
database.py
monologid/paperboy
dfb427af50c576057a350e4bab60ca5c56136932
[ "Apache-2.0" ]
null
null
null
from core.storage import Storage DB = Storage().connect()
19.333333
32
0.758621
3bc9e50ffe4dd0e4944421dbc0f306f1e8c8cc2d
22,915
py
Python
qctrlopencontrols/driven_controls/driven_control.py
kingjoseph223/python-open-controls
b21431c039aea2d466996f33baec01a833f55eaf
[ "Apache-2.0" ]
null
null
null
qctrlopencontrols/driven_controls/driven_control.py
kingjoseph223/python-open-controls
b21431c039aea2d466996f33baec01a833f55eaf
[ "Apache-2.0" ]
1
2020-07-22T00:57:48.000Z
2020-07-22T00:57:48.000Z
qctrlopencontrols/driven_controls/driven_control.py
kingjoseph223/python-open-controls
b21431c039aea2d466996f33baec01a833f55eaf
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Q-CTRL Pty Ltd & Q-CTRL 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...
34.099702
97
0.569932
ed4605f92a4dd6326e777e11fa1fdd88969c47ac
16,275
py
Python
gplpy/gggp/derivation.py
Brisingeros/GPLpy
f7202027cd86e867f250d2c63c39353df9da452a
[ "Apache-2.0" ]
2
2020-04-12T06:04:21.000Z
2021-12-19T00:45:25.000Z
gplpy/gggp/derivation.py
Brisingeros/GPLpy
f7202027cd86e867f250d2c63c39353df9da452a
[ "Apache-2.0" ]
null
null
null
gplpy/gggp/derivation.py
Brisingeros/GPLpy
f7202027cd86e867f250d2c63c39353df9da452a
[ "Apache-2.0" ]
3
2020-12-03T23:05:45.000Z
2021-11-07T15:35:58.000Z
""" This module include all logic for Grammar Guide Genetic Programming including Derivation Trees, Wihgham and Depth Control Crossovers and mutation """ from functools import reduce import numpy as np from gplpy.gggp.grammar import Terminal, Variable, NonTerminal, ProbabilisticModel class Derivation: """Deriva...
45.460894
184
0.567988
6dea2744430074b20f92b63b4f4aa2f639ed964f
17,092
py
Python
SLRParser.py
fenilgmehta/SLR-Parser
c4d873ba27e85592282427cde5714feb86db6385
[ "MIT" ]
null
null
null
SLRParser.py
fenilgmehta/SLR-Parser
c4d873ba27e85592282427cde5714feb86db6385
[ "MIT" ]
null
null
null
SLRParser.py
fenilgmehta/SLR-Parser
c4d873ba27e85592282427cde5714feb86db6385
[ "MIT" ]
null
null
null
#!/usr/bin/python3 from typing import Set, List, Union, Dict, Tuple from graphviz import Digraph # ----------------------------------------------------------------------------------------- def parse_grammar(file_name: str) -> Tuple[ Dict[str, List[List[str]]], List[List[Union[str, List[str]]]], str, ...
40.889952
145
0.512169
62aa31761ab0cce7ffb8543583be9778b70f0c42
3,231
py
Python
stdplugins/carbon1.py
ppppspsljdhdd/Pepe
1e57825ddb0ab3ba15a19cad0ecfbf2622f6b851
[ "Apache-2.0" ]
1
2020-11-06T14:14:24.000Z
2020-11-06T14:14:24.000Z
stdplugins/carbon1.py
ishaizz/PepeBot
7440cadc8228106d221fc8e436a0809a86be5159
[ "Apache-2.0" ]
null
null
null
stdplugins/carbon1.py
ishaizz/PepeBot
7440cadc8228106d221fc8e436a0809a86be5159
[ "Apache-2.0" ]
null
null
null
""" Carbon Scraper Plugin for Userbot. //text in creative way. usage: .carbon //as a reply to any text message Thanks to @NeoMatrix90 for vars Type : .kar00 """ import asyncio import os from urllib.parse import quote_plus from selenium import webdriver from selenium.webdriver.chrome.options import Options from uni...
33.309278
81
0.660477
e913f7e27994882a1491ce72556f1496610badea
726
py
Python
python_boilerplate/commandline.py
lincoln-harris/python_boilerplate
79cb48219f5a1ac822cd3c9ffa0c97b6342b1ac5
[ "MIT" ]
null
null
null
python_boilerplate/commandline.py
lincoln-harris/python_boilerplate
79cb48219f5a1ac822cd3c9ffa0c97b6342b1ac5
[ "MIT" ]
null
null
null
python_boilerplate/commandline.py
lincoln-harris/python_boilerplate
79cb48219f5a1ac822cd3c9ffa0c97b6342b1ac5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Import modified 'os' module with LC_LANG set so click doesn't complain from .os_utils import os # noqa: F401 # Python standard library imports from functools import partial # 3rd party libraries import click # Within-module imports from python_boilerplate.hello import hello click.option...
21.352941
88
0.712121
eb60539c0033e8ed98c7c0813aee37b50851b11f
19,919
py
Python
pytests/castest/opschangecas.py
sumedhpb/TAF
fc6f4cb8dc0b8234393f2e52a7b4a1aa723d9449
[ "Apache-2.0" ]
9
2019-02-19T05:55:00.000Z
2022-01-20T10:37:28.000Z
pytests/castest/opschangecas.py
sumedhpb/TAF
fc6f4cb8dc0b8234393f2e52a7b4a1aa723d9449
[ "Apache-2.0" ]
2
2019-02-19T07:28:54.000Z
2019-06-18T11:22:29.000Z
pytests/castest/opschangecas.py
sumedhpb/TAF
fc6f4cb8dc0b8234393f2e52a7b4a1aa723d9449
[ "Apache-2.0" ]
155
2018-11-13T14:57:07.000Z
2022-03-28T11:53:22.000Z
import json from cb_tools.cbstats import Cbstats from castest.cas_base import CasBaseTest from couchbase_helper.documentgenerator import doc_generator from remote.remote_util import RemoteMachineShellConnection from sdk_client3 import SDKClient from sdk_exceptions import SDKException class OpsChangeCasTests(CasBaseT...
47.089835
79
0.501682
dae1336182cf226734ea19029bb2bebccff7e0bb
723
py
Python
app/core/models.py
tsatsujnr139/icd-disease-classication-managment-api
40802f199f204195f47dfdaaf598794b8f79d6a5
[ "MIT" ]
null
null
null
app/core/models.py
tsatsujnr139/icd-disease-classication-managment-api
40802f199f204195f47dfdaaf598794b8f79d6a5
[ "MIT" ]
null
null
null
app/core/models.py
tsatsujnr139/icd-disease-classication-managment-api
40802f199f204195f47dfdaaf598794b8f79d6a5
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. class DiseaseClassification(models.Model): """Model definition for Disease Classification""" classification_standard = models.CharField( max_length=6, blank=False) category_code = models.CharField(max_length=4, blank=False) diagnosis_cod...
34.428571
68
0.73444
11926e2823fc04f9b454ede93931fcb5f4742c45
7,049
py
Python
uhd_restpy/testplatform/sessions/ixnetwork/topology/bgplscommunitieslist_fdb216f1d4195f82ad738e19cb2b5d32.py
Vibaswan/ixnetwork_restpy
239fedc7050890746cbabd71ea1e91c68d9e5cad
[ "MIT" ]
null
null
null
uhd_restpy/testplatform/sessions/ixnetwork/topology/bgplscommunitieslist_fdb216f1d4195f82ad738e19cb2b5d32.py
Vibaswan/ixnetwork_restpy
239fedc7050890746cbabd71ea1e91c68d9e5cad
[ "MIT" ]
null
null
null
uhd_restpy/testplatform/sessions/ixnetwork/topology/bgplscommunitieslist_fdb216f1d4195f82ad738e19cb2b5d32.py
Vibaswan/ixnetwork_restpy
239fedc7050890746cbabd71ea1e91c68d9e5cad
[ "MIT" ]
null
null
null
# MIT LICENSE # # Copyright 1997 - 2020 by IXIA Keysight # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights to use, copy, modify,...
38.309783
174
0.668038
c9bb08aee75a2e1390621636d15124e0ef19c2cb
889
py
Python
cfp/resolver_factories/parameter_store_resolver_factory.py
cariad/cfp
43336c45cf56abb7e037fa2f139ea86e679e77b0
[ "MIT" ]
null
null
null
cfp/resolver_factories/parameter_store_resolver_factory.py
cariad/cfp
43336c45cf56abb7e037fa2f139ea86e679e77b0
[ "MIT" ]
6
2021-11-08T08:42:10.000Z
2021-12-16T14:17:58.000Z
cfp/resolver_factories/parameter_store_resolver_factory.py
cariad/cfp
43336c45cf56abb7e037fa2f139ea86e679e77b0
[ "MIT" ]
null
null
null
from typing import Dict, Optional from cfp.resolver_factories.resolver_factory import ResolverFactory from cfp.resolvers import ParameterStoreResolver from cfp.sources import AnySource, FromParameterStore from cfp.types import RegionName class ParameterStoreResolverFactory( ResolverFactory[ FromParameter...
30.655172
80
0.733408
9612bf8fe5aca8cb8253335dd3e26324fc0d1d16
418
py
Python
utils/message.py
sotblad/Curium-Discord-Tips
4b1932a6c3471301e209158d976fdb8dd7ce98a7
[ "MIT" ]
null
null
null
utils/message.py
sotblad/Curium-Discord-Tips
4b1932a6c3471301e209158d976fdb8dd7ce98a7
[ "MIT" ]
null
null
null
utils/message.py
sotblad/Curium-Discord-Tips
4b1932a6c3471301e209158d976fdb8dd7ce98a7
[ "MIT" ]
1
2018-10-26T18:54:28.000Z
2018-10-26T18:54:28.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- depositMsg_J = (u"I've DMed the Curium address!") depositMsg_E = ("I PMed you your address! Make sure to double check that it is from me!") depositDM_J = (u"To check the balance, please use the balance command.") depositDM_E = ("Remember to use cru.balance to check your ba...
59.714286
157
0.73445
db2e454e5ea6b1b848c414fc19c0f6085674892f
1,646
py
Python
env/lib/python3.8/site-packages/numpy/distutils/__config__.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
1,738
2017-09-21T10:59:12.000Z
2022-03-31T21:05:46.000Z
env/lib/python3.8/site-packages/numpy/distutils/__config__.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
427
2017-09-29T22:54:36.000Z
2022-02-15T19:26:50.000Z
env/lib/python3.8/site-packages/numpy/distutils/__config__.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
671
2017-09-21T08:04:01.000Z
2022-03-29T14:30:07.000Z
# This file is generated by numpy's setup.py # It contains system_info results at the time of building this package. __all__ = ["get_info","show"] import os import sys extra_dll_dir = os.path.join(os.path.dirname(__file__), '.libs') if sys.platform == 'win32' and os.path.isdir(extra_dll_dir): if sys.version_inf...
40.146341
154
0.606318
039d7aca10b93406fd3c17df13db340b43d98bd5
116
py
Python
src/docs/ec2/gunicorn.conf.py
icebreakerone/open-energy-python-infrastructure
1aa1e09c75e66c78bf3cfc9e57114901a8ab9172
[ "MIT" ]
1
2021-07-07T18:13:00.000Z
2021-07-07T18:13:00.000Z
src/docs/ec2/gunicorn.conf.py
icebreakerone/open-energy-python-infrastructure
1aa1e09c75e66c78bf3cfc9e57114901a8ab9172
[ "MIT" ]
6
2021-07-26T10:53:44.000Z
2022-02-24T12:39:50.000Z
src/docs/ec2/gunicorn.conf.py
icebreakerone/open-energy-python-infrastructure
1aa1e09c75e66c78bf3cfc9e57114901a8ab9172
[ "MIT" ]
1
2021-06-22T19:22:45.000Z
2021-06-22T19:22:45.000Z
import multiprocessing bind = 'unix:/run/gunicorn.sock' workers = multiprocessing.cpu_count() * 2 + 1 timeout = 30
19.333333
45
0.741379
5e49b2a6b90f3c2c8c14b8894e33c37ed4bcdcc0
4,191
py
Python
indico/modules/events/editing/notifications.py
jgrigera/indico
b5538f2755bc38a02313d079bac831ee3dfb44ab
[ "MIT" ]
1
2018-11-12T21:29:26.000Z
2018-11-12T21:29:26.000Z
indico/modules/events/editing/notifications.py
jgrigera/indico
b5538f2755bc38a02313d079bac831ee3dfb44ab
[ "MIT" ]
9
2020-09-08T09:25:57.000Z
2022-01-13T02:59:05.000Z
indico/modules/events/editing/notifications.py
jgrigera/indico
b5538f2755bc38a02313d079bac831ee3dfb44ab
[ "MIT" ]
3
2020-07-20T09:09:44.000Z
2020-10-19T00:29:49.000Z
# This file is part of Indico. # Copyright (C) 2002 - 2020 CERN # # Indico is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see the # LICENSE file for more details. from indico.core.notifications import make_email, send_email from indico.modules.events.editing.schemas im...
47.089888
98
0.699356
6b4358228de46cd361adef1d2797aff012486563
4,202
py
Python
0425_Word_Squares.py
imguozr/LC-Solutions
5e5e7098d2310c972314c9c9895aafd048047fe6
[ "WTFPL" ]
null
null
null
0425_Word_Squares.py
imguozr/LC-Solutions
5e5e7098d2310c972314c9c9895aafd048047fe6
[ "WTFPL" ]
null
null
null
0425_Word_Squares.py
imguozr/LC-Solutions
5e5e7098d2310c972314c9c9895aafd048047fe6
[ "WTFPL" ]
null
null
null
from collections import defaultdict from typing import List class Solution1: """ Backtrack w/ dict """ def __init__(self): self.words = [] self.word_len = 0 self.prefix_dict = {} def wordSquares(self, words: List[str]) -> List[List[str]]: self.words = words ...
27.464052
87
0.508567
e9dff233b7b8d3d562a45c318e5c079744ef9da7
41,846
py
Python
modin/pandas/groupby.py
naren-ponder/modin
4ec7f6347903f9133c65ebc5b6e0e15553b98577
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
modin/pandas/groupby.py
naren-ponder/modin
4ec7f6347903f9133c65ebc5b6e0e15553b98577
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
modin/pandas/groupby.py
naren-ponder/modin
4ec7f6347903f9133c65ebc5b6e0e15553b98577
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Licensed to Modin Development Team under one or more contributor license agreements. # See the NOTICE file distributed with this work for additional information regarding # copyright ownership. The Modin Development Team licenses this file to you under the # Apache License, Version 2.0 (the "License"); you may not u...
33.692432
127
0.553004
7011a150df8cd002f9cbab11a523b6f243c86957
2,310
py
Python
example/views.py
Fulla/django-nestedgroupedlists
4709ecc94c9bc26724d9d3981f63aff6f5c8b66f
[ "MIT" ]
null
null
null
example/views.py
Fulla/django-nestedgroupedlists
4709ecc94c9bc26724d9d3981f63aff6f5c8b66f
[ "MIT" ]
null
null
null
example/views.py
Fulla/django-nestedgroupedlists
4709ecc94c9bc26724d9d3981f63aff6f5c8b66f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from django.shortcuts import render from nestgrouplists.views import * from example.serializers import CitizenSerializer, CitizenExtSerializer from example.models import Citizen, CitizenExt from rest_framework import generics from rest_framework.response import Response from rest_framework.deco...
39.152542
117
0.692641
4d7d9337e093f700fb56fc170cdf164175c6b185
18,186
py
Python
articles/BAS4-pws/custauth/custauth.py
FrancescoRizzi/AWSomesauce
33b80b45a8509fa8f7031ae6be928a9fdd8425fa
[ "MIT" ]
1
2019-04-09T20:50:21.000Z
2019-04-09T20:50:21.000Z
articles/BAS4-pws/custauth/custauth.py
FrancescoRizzi/AWSomesauce
33b80b45a8509fa8f7031ae6be928a9fdd8425fa
[ "MIT" ]
1
2021-05-19T09:09:04.000Z
2021-05-19T09:09:04.000Z
articles/BAS4-pws/custauth/custauth.py
FrancescoRizzi/AWSomesauce
33b80b45a8509fa8f7031ae6be928a9fdd8425fa
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import json import StringIO from contextlib import closing import re import time import pprint import boto3 from boto3.session import Session import botocore import jwt from cryptography.x509 import load_pem_x509_certificate from cryptography.hazmat.backends import default_backend #...
39.025751
158
0.609535
bad540b09cd49bea620c5aa225b29a4acec8aab5
2,212
py
Python
src/classes.py
Ciremun/nam-nyam-foods
63e190326287b01b0c99db23e2fbb2df52012497
[ "MIT" ]
null
null
null
src/classes.py
Ciremun/nam-nyam-foods
63e190326287b01b0c99db23e2fbb2df52012497
[ "MIT" ]
7
2021-02-06T19:44:43.000Z
2021-02-16T20:27:48.000Z
src/classes.py
Ciremun/nam-nyam-foods
63e190326287b01b0c99db23e2fbb2df52012497
[ "MIT" ]
null
null
null
from typing import NamedTuple, Optional from enum import Enum import datetime from flask import flash, redirect, make_response, abort, jsonify, request import src.config as cfg class FoodItem: def __init__(self, title, weight, calories, price, link, image_link, ID=None): self.title = title self...
25.425287
92
0.626582
b3ff2cad265ac0ae1ca8e8efd35c66444a0fbda0
121
py
Python
beranda/admin.py
almaaqila/tugas-tengah-semester-pbp
7b7bc72ea19cedd61c77c26ed503efd9eb42bc0b
[ "MIT" ]
null
null
null
beranda/admin.py
almaaqila/tugas-tengah-semester-pbp
7b7bc72ea19cedd61c77c26ed503efd9eb42bc0b
[ "MIT" ]
null
null
null
beranda/admin.py
almaaqila/tugas-tengah-semester-pbp
7b7bc72ea19cedd61c77c26ed503efd9eb42bc0b
[ "MIT" ]
5
2021-10-14T15:22:52.000Z
2021-12-29T12:22:43.000Z
from django.contrib import admin # Register your models here. from .models import Feedback admin.site.register(Feedback)
24.2
32
0.818182
18d2270442d3a64e8fa0085e7b3a4cf7a4778c8d
3,357
py
Python
catalog-be/src/main/resources/scripts/import/tosca/importOnapTypes.py
onapdemo/sdc
3f1fee2ca76332b48e6f36662b32f2b5096c25e7
[ "Apache-2.0" ]
null
null
null
catalog-be/src/main/resources/scripts/import/tosca/importOnapTypes.py
onapdemo/sdc
3f1fee2ca76332b48e6f36662b32f2b5096c25e7
[ "Apache-2.0" ]
null
null
null
catalog-be/src/main/resources/scripts/import/tosca/importOnapTypes.py
onapdemo/sdc
3f1fee2ca76332b48e6f36662b32f2b5096c25e7
[ "Apache-2.0" ]
null
null
null
import pycurl import sys, getopt from StringIO import StringIO import json import copy from importCommon import * from importNormativeTypes import * import importCommon ################################################################################################################################################ # ...
30.798165
144
0.481382
a12bd926bee26027be7012db39c8445907b41a86
1,340
py
Python
middlewares/current_user.py
DNL-inc/bit
b6f35e95b2b40a3eec308a2c7179a73eadad3556
[ "MIT" ]
1
2020-11-04T16:15:52.000Z
2020-11-04T16:15:52.000Z
middlewares/current_user.py
DNL-inc/bit
b6f35e95b2b40a3eec308a2c7179a73eadad3556
[ "MIT" ]
null
null
null
middlewares/current_user.py
DNL-inc/bit
b6f35e95b2b40a3eec308a2c7179a73eadad3556
[ "MIT" ]
null
null
null
from aiogram.dispatcher.middlewares import BaseMiddleware from aiogram.dispatcher.handler import CancelHandler, current_handler from aiogram import types from models import User class CurrentUserMiddleware(BaseMiddleware): async def on_process_message(self, msg: types.Message, data: dict): from middleware...
39.411765
89
0.625373
d22259d360fcf4f80d83fd851fabd036ea6063f1
27,523
py
Python
indra/assemblers/cx/assembler.py
djinnome/indra
382b7f236e0b1422c96a268ef873530b5e92d48f
[ "BSD-2-Clause" ]
null
null
null
indra/assemblers/cx/assembler.py
djinnome/indra
382b7f236e0b1422c96a268ef873530b5e92d48f
[ "BSD-2-Clause" ]
null
null
null
indra/assemblers/cx/assembler.py
djinnome/indra
382b7f236e0b1422c96a268ef873530b5e92d48f
[ "BSD-2-Clause" ]
null
null
null
import re import json import time import logging import itertools from ndex2.nice_cx_network import NiceCXNetwork from collections import OrderedDict from indra.statements import * from indra.databases import context_client, ndex_client, get_identifiers_url, \ url_prefixes logger = logging.getLogger(__name__) c...
37.910468
79
0.553537
a06559dd154f744aed276eb796a5ae105aebbf9f
4,227
py
Python
BEGAN/model.py
IvoryCandy/generative-adversarial-networks
4010a20b22ecb016da164b37d6f915788e8f09f5
[ "Apache-2.0" ]
1
2018-06-05T02:26:48.000Z
2018-06-05T02:26:48.000Z
BEGAN/model.py
IvoryCandy/generative-adversarial-networks
4010a20b22ecb016da164b37d6f915788e8f09f5
[ "Apache-2.0" ]
null
null
null
BEGAN/model.py
IvoryCandy/generative-adversarial-networks
4010a20b22ecb016da164b37d6f915788e8f09f5
[ "Apache-2.0" ]
null
null
null
import torch.nn as nn def conv_block(in_dim, out_dim): return nn.Sequential(nn.Conv2d(in_dim, in_dim, kernel_size=3, stride=1, padding=1), nn.ELU(True), nn.Conv2d(in_dim, in_dim, kernel_size=3, stride=1, padding=1), nn.ELU(True), ...
34.933884
133
0.567779
030176680e5c3b78fa600295354339686b921cae
4,139
py
Python
emailreports.py
RaviTejaKomma/Automate-Boring-Stuff-Python
e5d8df1b060f20e50691f824ecabc3a30dc845c7
[ "MIT" ]
null
null
null
emailreports.py
RaviTejaKomma/Automate-Boring-Stuff-Python
e5d8df1b060f20e50691f824ecabc3a30dc845c7
[ "MIT" ]
null
null
null
emailreports.py
RaviTejaKomma/Automate-Boring-Stuff-Python
e5d8df1b060f20e50691f824ecabc3a30dc845c7
[ "MIT" ]
null
null
null
""" Assignment6 """ ''' This exercise builds on assignment 5 and explores sending mail programatically using smtplib Assuming that you have imported the data into the database in previous assignment, write a click script (collegereport.py) which will take a college acronym (say gvp) and sends out a class report to a ...
37.972477
131
0.663928
2427cbe9eea4392090f4507d5172967fbba5342a
4,838
py
Python
lte/gateway/python/magma/mobilityd/uplink_gw.py
nitinneet/test23
c44df1a3290195cd3fc59d3483ef640ca8aaeb1e
[ "BSD-3-Clause" ]
1
2021-08-08T15:49:05.000Z
2021-08-08T15:49:05.000Z
lte/gateway/python/magma/mobilityd/uplink_gw.py
nitinneet/test23
c44df1a3290195cd3fc59d3483ef640ca8aaeb1e
[ "BSD-3-Clause" ]
151
2020-09-03T20:44:13.000Z
2022-03-31T20:28:52.000Z
lte/gateway/python/magma/mobilityd/uplink_gw.py
nitinneet/test23
c44df1a3290195cd3fc59d3483ef640ca8aaeb1e
[ "BSD-3-Clause" ]
2
2021-05-27T18:15:16.000Z
2021-05-27T18:41:39.000Z
""" Copyright 2020 The Magma Authors. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES O...
33.136986
79
0.603969
e67714cd02fe965621861960d6d34a83e5c6274f
2,004
py
Python
Python Programs/imdbscrapper.py
Chibi-Shem/Hacktoberfest2020-Expert
324843464aec039e130e85a16e74b76d310f1497
[ "MIT" ]
77
2020-10-01T10:06:59.000Z
2021-11-08T08:57:18.000Z
Python Programs/imdbscrapper.py
Chibi-Shem/Hacktoberfest2020-Expert
324843464aec039e130e85a16e74b76d310f1497
[ "MIT" ]
46
2020-09-27T04:55:36.000Z
2021-05-14T18:49:06.000Z
Python Programs/imdbscrapper.py
Chibi-Shem/Hacktoberfest2020-Expert
324843464aec039e130e85a16e74b76d310f1497
[ "MIT" ]
327
2020-09-26T17:06:03.000Z
2021-10-09T06:04:39.000Z
from bs4 import BeautifulSoup import urllib.request as req from tabulate import tabulate def getResponse(url): response = req.urlopen(url) data = response.read() soup = BeautifulSoup(data, "lxml") #print(soup.prettify("utf-8")) return soup def selectChoice(): '''options = { 1: ('top'), 2: ('moviemeter'), 3:...
21.782609
119
0.637226
8f3e1d9098981dfccab30ad1e64e79c3e8a8960f
2,307
py
Python
python/tests/ParserTest.py
MindongLab/libhokchew
7e5b2e11377ec57bf9a5bb8bb66be6d99237640c
[ "MIT" ]
1
2020-07-23T14:18:25.000Z
2020-07-23T14:18:25.000Z
python/tests/ParserTest.py
MindongLab/libhokchew
7e5b2e11377ec57bf9a5bb8bb66be6d99237640c
[ "MIT" ]
6
2020-04-25T05:20:04.000Z
2021-08-30T09:08:50.000Z
python/tests/ParserTest.py
MindongLab/libhokchew
7e5b2e11377ec57bf9a5bb8bb66be6d99237640c
[ "MIT" ]
null
null
null
import unittest from python.pyhokchew.models.FoochowRomanized import FoochowRomanizedSyllable from python.pyhokchew.parser import parse_ciklin from python.pyhokchew.utils import normalise, denormalise from python.pyhokchew.convert import foochow_romanized_to_ciklin, ciklin_to_foochow_romanized class ParserTestCase(uni...
39.775862
99
0.680971
c81d51632faa3b452462cc6cdeeaca9f81d484b7
1,461
py
Python
template/{{cookiecutter.directory_name}}/test_ai.py
dat-boris/playtest-deck-mechanics
6fbf7a068b2d8303f5ca0ed31862025fc9fa958e
[ "MIT" ]
1
2020-03-23T13:59:30.000Z
2020-03-23T13:59:30.000Z
template/{{cookiecutter.directory_name}}/test_ai.py
dat-boris/playtest-deck-mechanics
6fbf7a068b2d8303f5ca0ed31862025fc9fa958e
[ "MIT" ]
null
null
null
template/{{cookiecutter.directory_name}}/test_ai.py
dat-boris/playtest-deck-mechanics
6fbf7a068b2d8303f5ca0ed31862025fc9fa958e
[ "MIT" ]
null
null
null
"""A test file to validate that training with AI will work """ import os import pytest from playtest.agents import KerasDQNAgent, train_agents from playtest.env import GameWrapperEnvironment, EnvironmentInteration from .game import Game from .constants import Param AGENT_FILENAME = "example_agent_{{cookiecutter.di...
26.089286
87
0.718001
3f113d014312dfc64f30025d344911d01dcbbf04
758
py
Python
ccal/make_match_panel_annotations.py
alex-wenzel/ccal
74dfc604d93e6ce9e12f34a828b601618df51faa
[ "MIT" ]
null
null
null
ccal/make_match_panel_annotations.py
alex-wenzel/ccal
74dfc604d93e6ce9e12f34a828b601618df51faa
[ "MIT" ]
null
null
null
ccal/make_match_panel_annotations.py
alex-wenzel/ccal
74dfc604d93e6ce9e12f34a828b601618df51faa
[ "MIT" ]
null
null
null
from pandas import DataFrame def make_match_panel_annotations(score_moe_p_value_fdr): annotations = DataFrame(index=score_moe_p_value_fdr.index) if score_moe_p_value_fdr["0.95 MoE"].isna().all(): annotations["Score"] = score_moe_p_value_fdr["Score"].apply("{:.2f}".format) else: annota...
28.074074
84
0.659631
70631f3adf7f1d7f68b58d3ece8584a87dc9873f
891
py
Python
webdriver_wharf/cli.py
mshriver/webdriver-wharf
d02091805dea2830a0fcd1044ba51339cafa453a
[ "MIT" ]
4
2017-12-21T10:30:24.000Z
2021-11-27T13:58:55.000Z
webdriver_wharf/cli.py
mshriver/webdriver-wharf
d02091805dea2830a0fcd1044ba51339cafa453a
[ "MIT" ]
13
2017-05-18T14:58:45.000Z
2019-07-02T20:52:59.000Z
webdriver_wharf/cli.py
mshriver/webdriver-wharf
d02091805dea2830a0fcd1044ba51339cafa453a
[ "MIT" ]
4
2017-05-18T15:46:21.000Z
2020-03-17T14:21:56.000Z
import logging import os import signal import waitress from webdriver_wharf import app, logging_init logger = logging.getLogger(__name__) loglevel = getattr( logging, os.environ.get("WEBDRIVER_WHARF_LOG_LEVEL", "info").upper(), "INFO" ) listen_host = os.environ.get("WEBDRIVER_WHARF_LISTEN_HOST", "0.0.0.0") listen...
29.7
89
0.774411
56ba01ad344ad1dd746064583819e9142327b833
189
py
Python
bindings/python/inekf/__init__.py
mayataka/invariant-ekf
775d9ab5ac7599fe2fd983b8a907c241c7d3a8e0
[ "BSD-3-Clause" ]
1
2022-03-28T12:38:09.000Z
2022-03-28T12:38:09.000Z
bindings/python/inekf/__init__.py
mayataka/inekf
775d9ab5ac7599fe2fd983b8a907c241c7d3a8e0
[ "BSD-3-Clause" ]
null
null
null
bindings/python/inekf/__init__.py
mayataka/inekf
775d9ab5ac7599fe2fd983b8a907c241c7d3a8e0
[ "BSD-3-Clause" ]
null
null
null
from .robot_model import * from .schmitt_trigger import * from .contact_estimator import * from .state_estimator_settings import * from .state_estimator import * from .noise_params import *
31.5
39
0.814815
80472adb206809f41cf80d23b6c301aca041b7c4
6,345
py
Python
server/db/__init__.py
V2Associate/pilotassist
2a6ecef54a811d9a7a00b7808a76d53344a9ef65
[ "MIT" ]
null
null
null
server/db/__init__.py
V2Associate/pilotassist
2a6ecef54a811d9a7a00b7808a76d53344a9ef65
[ "MIT" ]
null
null
null
server/db/__init__.py
V2Associate/pilotassist
2a6ecef54a811d9a7a00b7808a76d53344a9ef65
[ "MIT" ]
null
null
null
from __future__ import absolute_import import pymysql import time from server.common import Roster, Trip from server.db.db_connection import DBConnection from server.common import get_date_as_timestamp HOSTNAME = "localhost" # TODO: Need to create a mysql user USERNAME = "root" PASSWORD = "" DB_NAME = "pilotassist" C...
54.230769
612
0.733018
a8420ad36c7180b3c496e1ccad3926ab53371d01
9,411
py
Python
tests/unit/common/services/identity/test_identity.py
jogeo/rally-openstack
83437e7c5925d5d647cd28f1821b6d51687b0123
[ "Apache-2.0" ]
null
null
null
tests/unit/common/services/identity/test_identity.py
jogeo/rally-openstack
83437e7c5925d5d647cd28f1821b6d51687b0123
[ "Apache-2.0" ]
null
null
null
tests/unit/common/services/identity/test_identity.py
jogeo/rally-openstack
83437e7c5925d5d647cd28f1821b6d51687b0123
[ "Apache-2.0" ]
1
2021-08-10T03:11:51.000Z
2021-08-10T03:11:51.000Z
# 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 applicable law or agreed to in...
36.335907
79
0.668686
d9361f79f3b1950d13b89c4cb116e9c2d6f73ebf
548
py
Python
matplotlib/piechart001.py
bismog/leetcode
13b8a77045f96e7c59ddfe287481f6aaa68e564d
[ "MIT" ]
null
null
null
matplotlib/piechart001.py
bismog/leetcode
13b8a77045f96e7c59ddfe287481f6aaa68e564d
[ "MIT" ]
null
null
null
matplotlib/piechart001.py
bismog/leetcode
13b8a77045f96e7c59ddfe287481f6aaa68e564d
[ "MIT" ]
1
2018-08-17T07:07:15.000Z
2018-08-17T07:07:15.000Z
#!/usr/bin/env python import matplotlib as mpl mpl.use('Agg') import matplotlib.pyplot as plt plt.style.use('classic') fig = plt.figure() days = [1,2,3,4,5] sleeping =[7,8,6,11,7] eating = [2,3,4,3,2] working =[7,8,7,2,2] playing = [8,5,7,8,13] slices = [7,2,2,13] activities = ['sleeping','eating','working','play...
17.125
54
0.631387
21c6111119a57a43d62f430f6f65b1c733f222e9
352
py
Python
netbox_bgp/migrations/0005_netbox_bgp.py
liquid-metal/netbox-bgp
cdca172527370bc05603962384618feebfd09b8e
[ "Apache-2.0" ]
79
2021-04-07T14:14:54.000Z
2022-03-22T10:42:15.000Z
netbox_bgp/migrations/0005_netbox_bgp.py
liquid-metal/netbox-bgp
cdca172527370bc05603962384618feebfd09b8e
[ "Apache-2.0" ]
65
2021-04-14T09:29:00.000Z
2022-03-05T23:18:58.000Z
netbox_bgp/migrations/0005_netbox_bgp.py
liquid-metal/netbox-bgp
cdca172527370bc05603962384618feebfd09b8e
[ "Apache-2.0" ]
17
2021-04-14T09:29:23.000Z
2022-03-16T18:58:28.000Z
# Generated by Django 3.1.3 on 2021-04-07 10:56 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('netbox_bgp', '0004_netbox_bgp'), ] operations = [ migrations.AlterModelOptions( name='asn', options={'verbose_name_plural': ...
19.555556
58
0.599432
ca0ba06bad8da81146129ee3cf81ee5ef4b07748
7,832
py
Python
contrib/bitrpc/bitrpc.py
x805/ONEA
e5579bb689dfd58e78fafccac4739254db56099d
[ "MIT" ]
null
null
null
contrib/bitrpc/bitrpc.py
x805/ONEA
e5579bb689dfd58e78fafccac4739254db56099d
[ "MIT" ]
null
null
null
contrib/bitrpc/bitrpc.py
x805/ONEA
e5579bb689dfd58e78fafccac4739254db56099d
[ "MIT" ]
null
null
null
from jsonrpc import ServiceProxy import sys import string # ===== BEGIN USER SETTINGS ===== # if you do not set these you will be prompted for a password for every command rpcuser = "" rpcpass = "" # ====== END USER SETTINGS ====== if rpcpass == "": access = ServiceProxy("http://127.0.0.1:21514") else: access = Se...
24.098462
79
0.668029
614b3ac2172b3e45aa8d235138439b43ab947064
9,437
py
Python
tests/interfaces_t/test_siteadapter.py
maxfischer2781/tardis
a83ba0a02d2f153a8ab95b84ec78bc6ababa57a5
[ "MIT" ]
11
2019-06-06T14:44:56.000Z
2021-12-17T19:46:18.000Z
tests/interfaces_t/test_siteadapter.py
stefan-k/tardis
d26af13b56ab55cdbddd27ec3332cc74093d487a
[ "MIT" ]
165
2019-04-26T09:31:19.000Z
2022-03-09T16:45:45.000Z
tests/interfaces_t/test_siteadapter.py
stefan-k/tardis
d26af13b56ab55cdbddd27ec3332cc74093d487a
[ "MIT" ]
12
2019-06-06T14:06:15.000Z
2021-12-21T12:31:03.000Z
from tardis.interfaces.siteadapter import SiteAdapter from tardis.utilities.attributedict import AttributeDict from ..utilities.utilities import run_async from cobald.utility.primitives import infinity as inf from unittest import TestCase from unittest.mock import patch from pydantic.error_wrappers import ValidationE...
34.192029
86
0.63855
79e7290a09e4e592fb6909da99035e6ce4fa1c84
62,441
py
Python
scripts/run_conga.py
jeremycfd/conga
204bfd14cab3c4c07fd9b95d072b1b7b79c3d239
[ "MIT" ]
null
null
null
scripts/run_conga.py
jeremycfd/conga
204bfd14cab3c4c07fd9b95d072b1b7b79c3d239
[ "MIT" ]
null
null
null
scripts/run_conga.py
jeremycfd/conga
204bfd14cab3c4c07fd9b95d072b1b7b79c3d239
[ "MIT" ]
null
null
null
######################## MAX LINE LENGTH OF ABOUT 120 ################################################################## import argparse parser = argparse.ArgumentParser(description="Run the CoNGA clonotype neighbor-graph analysis pipeline") #type is str by default parser.add_argument('--gex_data', help='Input file w...
49.166142
237
0.662433