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
213ded7d5d1d4daae54f8750ea95bfdda0b6f457
110
py
Python
src/utils/m_brain.py
Ragnamus/falco-newtoni
ba2eb39dd927ebbd7d054749824561a4cdbbfd2b
[ "MIT" ]
null
null
null
src/utils/m_brain.py
Ragnamus/falco-newtoni
ba2eb39dd927ebbd7d054749824561a4cdbbfd2b
[ "MIT" ]
null
null
null
src/utils/m_brain.py
Ragnamus/falco-newtoni
ba2eb39dd927ebbd7d054749824561a4cdbbfd2b
[ "MIT" ]
null
null
null
class brain: def __init__(self, name): self.name = name def get_mood(self): return 1
15.714286
29
0.572727
308751fbc97f91a7070cdc4d029f7e3408e5be5a
28,532
py
Python
venv/Lib/site-packages/tensorflow/core/protobuf/struct_pb2.py
rexliu3/StockTradingBotCloud
46b732b9c05f73bc0e856a3c4a16854b6d12e18e
[ "MIT" ]
null
null
null
venv/Lib/site-packages/tensorflow/core/protobuf/struct_pb2.py
rexliu3/StockTradingBotCloud
46b732b9c05f73bc0e856a3c4a16854b6d12e18e
[ "MIT" ]
null
null
null
venv/Lib/site-packages/tensorflow/core/protobuf/struct_pb2.py
rexliu3/StockTradingBotCloud
46b732b9c05f73bc0e856a3c4a16854b6d12e18e
[ "MIT" ]
1
2020-06-28T11:47:47.000Z
2020-06-28T11:47:47.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: tensorflow/core/protobuf/struct.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message ...
42.585075
2,719
0.766473
172fb74f4b36cffc74a61d487ea21fe00d9d0bf1
6,067
py
Python
spark_rdkit_run.py
mariolov-ric/pyspark_rdkit
3c4b6ffd4e1d2aa5fb6b2b9b6d5c9379f4baa252
[ "MIT" ]
2
2020-02-19T18:45:08.000Z
2020-04-23T12:45:00.000Z
spark_rdkit_run.py
mariolov-ric/pyspark_rdkit
3c4b6ffd4e1d2aa5fb6b2b9b6d5c9379f4baa252
[ "MIT" ]
null
null
null
spark_rdkit_run.py
mariolov-ric/pyspark_rdkit
3c4b6ffd4e1d2aa5fb6b2b9b6d5c9379f4baa252
[ "MIT" ]
2
2019-08-08T08:50:04.000Z
2020-09-23T14:31:57.000Z
''' Author: Mario Lovric, Know-Center, Graz, Austria MIT License Copyright (c) 2018 Mario Lovric 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 ...
39.653595
103
0.657491
8482f0344f02bdd242abc4c78eb4e8258a06751f
1,592
py
Python
380-Insert-Delete-GetRandom-O(1)/solution.py
Tanych/CodeTracking
86f1cb98de801f58c39d9a48ce9de12df7303d20
[ "MIT" ]
null
null
null
380-Insert-Delete-GetRandom-O(1)/solution.py
Tanych/CodeTracking
86f1cb98de801f58c39d9a48ce9de12df7303d20
[ "MIT" ]
null
null
null
380-Insert-Delete-GetRandom-O(1)/solution.py
Tanych/CodeTracking
86f1cb98de801f58c39d9a48ce9de12df7303d20
[ "MIT" ]
null
null
null
class RandomizedSet(object): def __init__(self): """ Initialize your data structure here. """ self.valset=[] # record the index to remove self.dictional={} self.index=0 def insert(self, val): """ Inserts a value to the set. Returns true i...
26.983051
106
0.544598
8798eb08627fe333e699ff097afaaeb937b455a8
623
py
Python
pypolodb/test_db.py
josephhuxley/PoloDB
218e9e50daee5849ff8839487e5e1c23132569e8
[ "MIT" ]
null
null
null
pypolodb/test_db.py
josephhuxley/PoloDB
218e9e50daee5849ff8839487e5e1c23132569e8
[ "MIT" ]
null
null
null
pypolodb/test_db.py
josephhuxley/PoloDB
218e9e50daee5849ff8839487e5e1c23132569e8
[ "MIT" ]
null
null
null
import polodb import os.path DB_PATH = '/tmp/test-py.db' def test_open(): if os.path.exists(DB_PATH): print('database exist, remove') os.remove(DB_PATH) db = polodb.Database(DB_PATH) db.close() def test_create_collection(): db = polodb.Database(DB_PATH) try: collection = db.createCollection('te...
20.766667
46
0.608347
5f25037491e8ea16577ec886d8c1f715b8c90bb3
1,144
py
Python
docs/examples/savorizing.py
sdruskat/yatiml
4f55c058b72388350f0af3076ac3ea9bc1c142b0
[ "Apache-2.0" ]
null
null
null
docs/examples/savorizing.py
sdruskat/yatiml
4f55c058b72388350f0af3076ac3ea9bc1c142b0
[ "Apache-2.0" ]
null
null
null
docs/examples/savorizing.py
sdruskat/yatiml
4f55c058b72388350f0af3076ac3ea9bc1c142b0
[ "Apache-2.0" ]
null
null
null
from ruamel import yaml from typing import Optional, Union import yatiml # Create document class class Submission: def __init__( self, name: str, age: Union[int, str], tool: Optional[str]=None ) -> None: self.name = name self.age = age ...
23.833333
65
0.572552
05e54d423c003a8b7d84c2227f4a284de1682a96
1,401
py
Python
ui/query.py
minminfly68/Song-recommendation-Project-CAPP-30122-
9f97d6accdfd33c5bac267980b6c10d6d5b93bc7
[ "MIT" ]
null
null
null
ui/query.py
minminfly68/Song-recommendation-Project-CAPP-30122-
9f97d6accdfd33c5bac267980b6c10d6d5b93bc7
[ "MIT" ]
6
2021-03-19T03:18:44.000Z
2021-09-22T19:00:52.000Z
ui/query.py
minminfly68/Song-recommendation-Project-CAPP-30122-
9f97d6accdfd33c5bac267980b6c10d6d5b93bc7
[ "MIT" ]
null
null
null
''' Query Result Chun Hu, Yimin Li, Tianyue Niu ''' import pandas as pd import random import os cwd = os.path.dirname(__file__) top_song_path = os.path.join(cwd, 'top_songs.csv') def execute(dict_command): ''' Input: dict_command(dict), a dictionary of user's input e.g. dict_command might look so...
30.456522
80
0.584582
f561709252df4be7fa6821fb99905d5c916bacf0
14,904
py
Python
mergify_engine/tests/functional/actions/test_merge.py
oharboe/mergify-engine
70785b1b1d9b2360f7a41c6d7f560e39d9ec4905
[ "Apache-2.0" ]
null
null
null
mergify_engine/tests/functional/actions/test_merge.py
oharboe/mergify-engine
70785b1b1d9b2360f7a41c6d7f560e39d9ec4905
[ "Apache-2.0" ]
null
null
null
mergify_engine/tests/functional/actions/test_merge.py
oharboe/mergify-engine
70785b1b1d9b2360f7a41c6d7f560e39d9ec4905
[ "Apache-2.0" ]
null
null
null
# -*- encoding: utf-8 -*- # # Copyright © 2018 Mehdi Abaakouk <sileht@sileht.net> # # 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 # # Unles...
39.221053
168
0.560454
949144fac1674c027ace77216a512217cca4301b
326
py
Python
exercises/ja/test_01_02_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/ja/test_01_02_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/ja/test_01_02_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
def test(): import spacy.tokens import spacy.lang.de assert isinstance(nlp, spacy.lang.de.German), "nlpオブジェクトはGermanクラスのインスタンスでなければなりません" assert isinstance(doc, spacy.tokens.Doc), "テキストをnlpオブジェクトで処理してdocを作成しましたか?" assert "print(doc.text)" in __solution__, "doc.textをプリントしましたか?" __msg__.good("正解...
32.6
88
0.736196
34606e8e6168651108e5967eb7987555ed2b2910
634
py
Python
manage.py
lancea-development/product-showcase
32bdafaa5aa474f08db1a41e4d54b215d43ca6e6
[ "MIT" ]
1
2021-08-02T12:50:04.000Z
2021-08-02T12:50:04.000Z
manage.py
wlansu/product-showcase
a0589f7e79eacfc70b3b66ced08a0890c4cc39c5
[ "MIT" ]
11
2019-06-09T12:01:02.000Z
2022-01-13T01:22:52.000Z
manage.py
wlansu/product-showcase
a0589f7e79eacfc70b3b66ced08a0890c4cc39c5
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault("DJANGO_SETTINGS_MODULE", "klanad_website.settings") try: from django.core.management import execute_from_command_line except ImportError as exc: raise...
28.818182
78
0.68612
ef9c01b9a0d5b789421a2e08fe09ed4c3af2bc0a
7,944
py
Python
olivia/immunization.py
dsr0018/olivia
8b7de3a512848c5d313bbc848ac9c7b667c2f6ce
[ "MIT" ]
null
null
null
olivia/immunization.py
dsr0018/olivia
8b7de3a512848c5d313bbc848ac9c7b667c2f6ce
[ "MIT" ]
18
2020-07-09T11:56:35.000Z
2021-01-15T12:02:06.000Z
olivia/immunization.py
dsr0018/repo-net
8b7de3a512848c5d313bbc848ac9c7b667c2f6ce
[ "MIT" ]
1
2021-01-20T10:23:49.000Z
2021-01-20T10:23:49.000Z
""" Olivia immunization functions. Immunization analyzes in which packages it is better to invest to protect the network as a whole. """ import random import networkx as nx from itertools import product from olivia.lib.graphs import removed, strong_articulation_points from olivia.model import OliviaNetwork from ol...
32.826446
117
0.691088
8d7be49f3795ab46f2fc0c42edbf5728487d9d6f
1,339
py
Python
extra/bsmalea-notes-1a/polynomial_regression.py
cookieblues/cookieblues.github.io
9b570d83887eb2d6f92cfaa927a1adf136124a90
[ "MIT" ]
null
null
null
extra/bsmalea-notes-1a/polynomial_regression.py
cookieblues/cookieblues.github.io
9b570d83887eb2d6f92cfaa927a1adf136124a90
[ "MIT" ]
2
2020-03-30T14:58:30.000Z
2020-12-10T15:15:06.000Z
extra/bsmalea-notes-1a/polynomial_regression.py
cookieblues/cookieblues.github.io
9b570d83887eb2d6f92cfaa927a1adf136124a90
[ "MIT" ]
null
null
null
import numpy as np import matplotlib as mpl import matplotlib.pyplot as plt from scipy.constants import golden mpl.rc("text", usetex=True) mpl.rc("font", family="serif") x = np.array([-1, -0.8, -0.6, -0.4, -0.2, 0, 0.2, 0.4, 0.6, 0.8, 1]) t = np.array([-4.9, -3.5, -2.8, 0.8, 0.3, -1.6, -1.3, 0.5, 2.1, 2.9, 5.6]) def...
21.253968
124
0.538462
44fd6cd3c295a847c26dddde0d65fee85799df07
17,555
py
Python
one_fm/hooks.py
ONE-F-M/One-FM
36fac99f6ab3f0d5a8c0b9a29b6d36b266255189
[ "MIT" ]
16
2021-06-14T23:56:47.000Z
2022-03-22T12:05:06.000Z
one_fm/hooks.py
ONE-F-M/One-FM
36fac99f6ab3f0d5a8c0b9a29b6d36b266255189
[ "MIT" ]
119
2020-08-17T16:27:45.000Z
2022-03-28T12:42:56.000Z
one_fm/hooks.py
ONE-F-M/One-FM
36fac99f6ab3f0d5a8c0b9a29b6d36b266255189
[ "MIT" ]
12
2021-05-16T13:35:40.000Z
2022-02-21T12:41:04.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from . import __version__ as app_version import frappe as _frappe from frappe import _ from erpnext.hr.doctype.shift_type.shift_type import ShiftType from one_fm.api.doc_methods.shift_type import process_auto_attendance app_name = "one_fm" app_title = "O...
34.625247
199
0.735802
78abafdd647de2748e8f27c9e6f1f979f0d1325f
3,052
py
Python
application.py
lalebdi/FlaskDataProcess
d305526bbcf44b301f9789af9de2f8b71e7c19c3
[ "Unlicense" ]
null
null
null
application.py
lalebdi/FlaskDataProcess
d305526bbcf44b301f9789af9de2f8b71e7c19c3
[ "Unlicense" ]
null
null
null
application.py
lalebdi/FlaskDataProcess
d305526bbcf44b301f9789af9de2f8b71e7c19c3
[ "Unlicense" ]
null
null
null
from flask import Flask from flask_restful import Api, Resource, reqparse from nameparser import HumanName application = Flask(__name__) app = application api = Api(app) post_args = reqparse.RequestParser() post_args.add_argument("value", type=str, help="Value is required to proceed", required=True) post_args.add_arg...
34.681818
140
0.650721
56b36372abf828a8175c739e9e0f487791ba09a2
11,844
py
Python
reid/exclusive_loss.py
khko1022/bottom_up_reid
e60e86f5504f72b3ff8258702cd30c08f5a745f7
[ "MIT" ]
null
null
null
reid/exclusive_loss.py
khko1022/bottom_up_reid
e60e86f5504f72b3ff8258702cd30c08f5a745f7
[ "MIT" ]
null
null
null
reid/exclusive_loss.py
khko1022/bottom_up_reid
e60e86f5504f72b3ff8258702cd30c08f5a745f7
[ "MIT" ]
null
null
null
from __future__ import absolute_import import torch import torch.nn.functional as F import numpy as np from torch import nn, autograd class Real_negative_exclusive(autograd.Function): def __init__(self, V, label_to_pairs, all_label_to_clusterid): super(Real_negative_exclusive, self).__init__() se...
41.704225
149
0.595745
d182b153ab7aa62535e157f8ccdfe0ea7ca54922
6,527
py
Python
tests/test_price_handler.py
sohailalam2/qstrader
e6d86a3ac3dc507b26e27b1f20c2949a69438ef7
[ "MIT" ]
113
2019-01-11T05:55:41.000Z
2022-03-27T23:49:47.000Z
tests/test_price_handler.py
sohailalam2/qstrader
e6d86a3ac3dc507b26e27b1f20c2949a69438ef7
[ "MIT" ]
7
2019-04-09T05:30:24.000Z
2020-09-09T04:52:49.000Z
tests/test_price_handler.py
sohailalam2/qstrader
e6d86a3ac3dc507b26e27b1f20c2949a69438ef7
[ "MIT" ]
54
2019-01-10T17:22:14.000Z
2022-03-15T23:47:43.000Z
import unittest from qstrader.price_parser import PriceParser from qstrader.price_handler.historic_csv_tick import HistoricCSVTickPriceHandler from qstrader.compat import queue from qstrader import settings class TestPriceHandlerSimpleCase(unittest.TestCase): """ Test the initialisation of a PriceHandler obj...
34.172775
80
0.576835
fcd02c17a25ebac1ca85a4e924258629118c47e7
339
py
Python
Exercises/2.square_elements_and_filter.py
GiorgosXonikis/Python-Sample-Code
8d31444171138995f740128716e45b29f5e1f7a1
[ "MIT" ]
null
null
null
Exercises/2.square_elements_and_filter.py
GiorgosXonikis/Python-Sample-Code
8d31444171138995f740128716e45b29f5e1f7a1
[ "MIT" ]
null
null
null
Exercises/2.square_elements_and_filter.py
GiorgosXonikis/Python-Sample-Code
8d31444171138995f740128716e45b29f5e1f7a1
[ "MIT" ]
null
null
null
# 2.Square Elements #Write a program that accepts a list and returns the square of each element. # The list is: [1,2,3,4,5,6,7,8,9,10]. numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] square_numbers = [num ** 2 for num in numbers] square_numbers_map = list(map(lambda num: num ** 2, numbers)) print(square_numbers) print(s...
26.076923
76
0.690265
ccfc5f135eef7b34124ddce20fde1e08fd006f7a
10,878
py
Python
person_follower/scripts/PersonFollower.py
FablabHome/The_Essense_of_the_Grey_Region
6385ada0879bdc6c00cb707192841fdab9ab7bf1
[ "MIT" ]
1
2021-09-23T09:42:32.000Z
2021-09-23T09:42:32.000Z
person_follower/scripts/PersonFollower.py
FablabHome/The_Essense_of_the_Grey_Region
6385ada0879bdc6c00cb707192841fdab9ab7bf1
[ "MIT" ]
null
null
null
person_follower/scripts/PersonFollower.py
FablabHome/The_Essense_of_the_Grey_Region
6385ada0879bdc6c00cb707192841fdab9ab7bf1
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ MIT License Copyright (c) 2020 rootadminWalker 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...
39.413043
116
0.66207
9ffdaba7a07098cd2552528499bdb0792a8de2e8
2,369
py
Python
ansible/venv/lib/python2.7/site-packages/ansible/plugins/httpapi/qradar.py
gvashchenkolineate/gvashchenkolineate_infra_trytravis
0fb18850afe0d8609693ba4b23f29c7cda17d97f
[ "MIT" ]
17
2017-06-07T23:15:01.000Z
2021-08-30T14:32:36.000Z
ansible/ansible/plugins/httpapi/qradar.py
SergeyCherepanov/ansible
875711cd2fd6b783c812241c2ed7a954bf6f670f
[ "MIT" ]
9
2017-06-25T03:31:52.000Z
2021-05-17T23:43:12.000Z
ansible/ansible/plugins/httpapi/qradar.py
SergeyCherepanov/ansible
875711cd2fd6b783c812241c2ed7a954bf6f670f
[ "MIT" ]
3
2018-05-26T21:31:22.000Z
2019-09-28T17:00:45.000Z
# (c) 2019 Red Hat Inc. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import (absolute_import, division, print_function) __metaclass__ = type DOCUMENTATION = """ --- author: Ansible Security Automation Team httpapi : qradar short_description: HttpApi Plu...
34.838235
141
0.700718
7c311456528d0318925da286c293fd57c7d0d0dc
3,980
py
Python
sense_energy_prometheus_exporter/sense_energy_prometheus_exporter/collectors/VoltageCollector.py
davidwilemski/sense_energy_prometheus_exporter
6966ee0fc48d56e262285677fc7b81500aea7dee
[ "MIT" ]
8
2021-07-29T22:11:31.000Z
2022-03-04T17:34:20.000Z
sense_energy_prometheus_exporter/sense_energy_prometheus_exporter/collectors/VoltageCollector.py
davidwilemski/sense_energy_prometheus_exporter
6966ee0fc48d56e262285677fc7b81500aea7dee
[ "MIT" ]
5
2021-07-16T15:08:15.000Z
2022-01-07T05:05:44.000Z
sense_energy_prometheus_exporter/sense_energy_prometheus_exporter/collectors/VoltageCollector.py
davidwilemski/sense_energy_prometheus_exporter
6966ee0fc48d56e262285677fc7b81500aea7dee
[ "MIT" ]
1
2021-08-03T05:22:51.000Z
2021-08-03T05:22:51.000Z
import time import logging from .CustomCollector import CustomCollector from ..client.sense import SenseClient, SenseVoltage from prometheus_client.core import GaugeMetricFamily, Counter, Gauge class VoltageCollector(CustomCollector): voltageMetric: GaugeMetricFamily scrapesTotalMetric: Counter scrapeErro...
45.747126
130
0.610302
c3898d5a0252320bd6c864dc169fa4937aa82a52
368
py
Python
lesson2/web/src/routes0/app.py
lucasca95/harvard_flask_python_course
76ac51ae6f6b5f5e7460c9c9c40d0c1be52779e1
[ "Apache-2.0" ]
null
null
null
lesson2/web/src/routes0/app.py
lucasca95/harvard_flask_python_course
76ac51ae6f6b5f5e7460c9c9c40d0c1be52779e1
[ "Apache-2.0" ]
null
null
null
lesson2/web/src/routes0/app.py
lucasca95/harvard_flask_python_course
76ac51ae6f6b5f5e7460c9c9c40d0c1be52779e1
[ "Apache-2.0" ]
null
null
null
from flask import Flask # Indicamos a Flask por medio de "__name__" que este archivo "application.py" # sera una aplicacion web. app = Flask(__name__) # el decorador permite indicar que hacer cuando se quiere acceder a la ruta indicada # en este caso, "/" @app.route("/") def index(): return "Hello!" @app.route("...
24.533333
84
0.703804
87a72b4385e4f7b1a0bd266db2f0aa061a3fe143
8,684
py
Python
tests/sandbox/.venv_ccf_sandbox/lib/python3.8/site-packages/mypyc/irbuild/env_class.py
iLuSIAnn/test
10d0a20dc1a646b5c1f6c7bff2960e3f5df0510e
[ "Apache-2.0" ]
35
2016-03-30T09:25:14.000Z
2022-03-12T10:53:11.000Z
tests/sandbox/.venv_ccf_sandbox/lib/python3.8/site-packages/mypyc/irbuild/env_class.py
iLuSIAnn/test
10d0a20dc1a646b5c1f6c7bff2960e3f5df0510e
[ "Apache-2.0" ]
36
2020-07-27T23:26:53.000Z
2021-08-02T23:22:37.000Z
tests/sandbox/.venv_ccf_sandbox/lib/python3.8/site-packages/mypyc/irbuild/env_class.py
iLuSIAnn/test
10d0a20dc1a646b5c1f6c7bff2960e3f5df0510e
[ "Apache-2.0" ]
6
2016-01-29T04:33:27.000Z
2019-11-03T19:19:43.000Z
"""Generate classes representing function environments (+ related operations). If we have a nested function that has non-local (free) variables, access to the non-locals is via an instance of an environment class. Example: def f() -> int: x = 0 # Make 'x' an attribute of an environment class instance ...
42.360976
98
0.711654
da69dcb59ac45ea31062c0cfa22d8cb4ea3611eb
4,128
py
Python
pyzoo/test/zoo/chronos/data/utils/test_public_dataset.py
yangw1234/analytics-zoo
a8032b8485d7515b3502977507234e8cd07b3cd8
[ "Apache-2.0" ]
1
2021-07-08T01:11:04.000Z
2021-07-08T01:11:04.000Z
pyzoo/test/zoo/chronos/data/utils/test_public_dataset.py
zzti-bsj/analytics-zoo
a1ffeeed17ff06235a918d45b8bef6ee0f89ff01
[ "Apache-2.0" ]
null
null
null
pyzoo/test/zoo/chronos/data/utils/test_public_dataset.py
zzti-bsj/analytics-zoo
a1ffeeed17ff06235a918d45b8bef6ee0f89ff01
[ "Apache-2.0" ]
null
null
null
# # Copyright 2018 Analytics Zoo Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
44.387097
97
0.617975
746d1ef28f9e87de44a654f3c81de5e85eeddefb
31,965
py
Python
sdk/kusto/azure-mgmt-kusto/azure/mgmt/kusto/operations/_data_connections_operations.py
kushan2018/azure-sdk-for-python
08a9296207281f4e90e23cf7a30173863accc867
[ "MIT" ]
null
null
null
sdk/kusto/azure-mgmt-kusto/azure/mgmt/kusto/operations/_data_connections_operations.py
kushan2018/azure-sdk-for-python
08a9296207281f4e90e23cf7a30173863accc867
[ "MIT" ]
1
2020-03-06T05:57:16.000Z
2020-03-06T05:57:16.000Z
sdk/kusto/azure-mgmt-kusto/azure/mgmt/kusto/operations/_data_connections_operations.py
kushan2018/azure-sdk-for-python
08a9296207281f4e90e23cf7a30173863accc867
[ "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 ...
49.252696
225
0.681214
11b019ad64ef2a97d16c65417f235c291f1b7e9c
2,634
py
Python
gestionairweb/api/serializers.py
HEG-Arc/paleo-2015-gestionair-web
8ca446581778bd875f47066175045f054b76d525
[ "BSD-3-Clause" ]
null
null
null
gestionairweb/api/serializers.py
HEG-Arc/paleo-2015-gestionair-web
8ca446581778bd875f47066175045f054b76d525
[ "BSD-3-Clause" ]
1
2015-07-18T17:29:34.000Z
2016-08-15T07:33:00.000Z
gestionairweb/api/serializers.py
HEG-Arc/paleo-2015-gestionair-web
8ca446581778bd875f47066175045f054b76d525
[ "BSD-3-Clause" ]
null
null
null
from rest_framework import serializers from gestionairweb.callcenter.models import Language, Game, Player, Answer, Question, Translation, Department from gestionairweb import settings from .models import Score, Event, Statistic class LanguageSerializer(serializers.ModelSerializer): class Meta: model = Lan...
29.595506
109
0.709567
7f3603874005cfa3bd3859b912eb4c9d9a32454a
43,970
py
Python
Project 4 Reinforcement/reinforcementTestClasses.py
TonyStarkLi/AI-PACMAN
7f33990c63f32b0ea3746e3ba4dce3860406b82c
[ "MIT" ]
1
2015-12-29T08:03:14.000Z
2015-12-29T08:03:14.000Z
reinforcement-learning/reinforcementTestClasses.py
dragoon/edX-AI-course
db0969117654e0e1dd86d5b5867bbb8b608ddc59
[ "MIT" ]
null
null
null
reinforcement-learning/reinforcementTestClasses.py
dragoon/edX-AI-course
db0969117654e0e1dd86d5b5867bbb8b608ddc59
[ "MIT" ]
2
2018-09-30T06:58:34.000Z
2021-02-03T08:59:32.000Z
# reinforcementTestClasses.py # --------------------------- # Licensing Information: You are free to use or extend these projects for # educational purposes provided that (1) you do not distribute or publish # solutions, (2) you retain this notice, and (3) you provide clear # attribution to UC Berkeley, including a...
47.483801
168
0.606664
1515c809d42641470e8ca1c3f94d59a5fa9d3b7a
591
py
Python
uliweb/mail/backends/gmail.py
limodou/uliweb3
560fe818047c8ee8b4b775e714d9c637f0d23651
[ "BSD-2-Clause" ]
16
2018-09-12T02:50:28.000Z
2021-08-20T08:38:31.000Z
uliweb/mail/backends/gmail.py
TommyLemon/uliweb3
3c92763d3172b9f1041ea93816daf4224c8512c0
[ "BSD-2-Clause" ]
21
2018-11-29T06:41:08.000Z
2022-01-18T13:27:38.000Z
uliweb/mail/backends/gmail.py
TommyLemon/uliweb3
3c92763d3172b9f1041ea93816daf4224c8512c0
[ "BSD-2-Clause" ]
1
2018-11-30T03:08:28.000Z
2018-11-30T03:08:28.000Z
import smtplib from .smtp import MailConnection as SmtpMailConnection class MailConnection(SmtpMailConnection): def login(self): if self.mail_obj.user: self.server.ehlo() self.server.starttls() self.server.ehlo() self.server.login(self.mail_obj.user,...
32.833333
99
0.617597
0156119d567737cdf438ef14e8a4bf7e7f9c0788
1,463
py
Python
SignIn.py
Oumourin/Im-Fine-Thank-You
66fa6f2d099191267a06b26dd9a3493ad6f29b4d
[ "MIT" ]
null
null
null
SignIn.py
Oumourin/Im-Fine-Thank-You
66fa6f2d099191267a06b26dd9a3493ad6f29b4d
[ "MIT" ]
null
null
null
SignIn.py
Oumourin/Im-Fine-Thank-You
66fa6f2d099191267a06b26dd9a3493ad6f29b4d
[ "MIT" ]
null
null
null
import requests import random from bs4 import BeautifulSoup import PushMessage import LoadConfig # 登录页面URL get_url = "http://39.98.190.134:81/Report/Reported" # 登录请求URL sign_up_url = "http://39.98.190.134:81/Account/Login" # 申请短信验证码URL mobile_phone_code_url = "http://39.98.190.134:81/Account/GetLoginMobileCode" # ...
27.092593
135
0.760766
c08b9fb718a02b6951c05960ef10832b38de0bee
17,241
py
Python
python/sn_toolbars.py
JasonReek/SmartNotes
4be5fdf98d4c5bc4b768da3c8872ce19340de4bf
[ "MIT" ]
1
2020-09-29T00:57:39.000Z
2020-09-29T00:57:39.000Z
python/sn_toolbars.py
JasonReek/SmartNotes
4be5fdf98d4c5bc4b768da3c8872ce19340de4bf
[ "MIT" ]
null
null
null
python/sn_toolbars.py
JasonReek/SmartNotes
4be5fdf98d4c5bc4b768da3c8872ce19340de4bf
[ "MIT" ]
null
null
null
from PySide2.QtWidgets import (QApplication, QMainWindow, QLineEdit, QDialog, QAction, QFormLayout, QMessageBox, QTextEdit, QDockWidget, QMenu, QComboBox, QFrame, QListWidget, QTabWidget, QAbstractItemView, QActionGroup, QColorDialog, QToolBar, QFontComboBox, QVBoxLayout, QGridLayout, Q...
46.346774
180
0.627922
52ad34564d3f555cdac77e1afe950f8504b4b7be
15,505
py
Python
bureau/stats/views.py
clairempr/bureau
c9fd114e637829b4e9ff643459d15602cc2efc2f
[ "Apache-2.0" ]
1
2019-02-15T09:05:35.000Z
2019-02-15T09:05:35.000Z
bureau/stats/views.py
clairempr/bureau
c9fd114e637829b4e9ff643459d15602cc2efc2f
[ "Apache-2.0" ]
null
null
null
bureau/stats/views.py
clairempr/bureau
c9fd114e637829b4e9ff643459d15602cc2efc2f
[ "Apache-2.0" ]
null
null
null
from django.db.models import Case, CharField, Count, F, FloatField, Q, Value, When from django.db.models.functions import Cast from django.views.generic.base import TemplateView from medical.models import Ailment, AilmentType from personnel.models import Employee from places.models import Place, Region from places.set...
53.099315
123
0.652628
b4bf6409c234a4911f375f4a8ee10171e14a38b0
5,150
py
Python
azure-iot-device/azure/iot/device/common/pipeline/pipeline_stages_http.py
YoDaMa/azure-iot-sdk-python
8eb008aba95a0e611aaa034647226a2af65605d2
[ "MIT" ]
null
null
null
azure-iot-device/azure/iot/device/common/pipeline/pipeline_stages_http.py
YoDaMa/azure-iot-sdk-python
8eb008aba95a0e611aaa034647226a2af65605d2
[ "MIT" ]
null
null
null
azure-iot-device/azure/iot/device/common/pipeline/pipeline_stages_http.py
YoDaMa/azure-iot-sdk-python
8eb008aba95a0e611aaa034647226a2af65605d2
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # ------------------------------------------------------------------...
42.916667
229
0.587767
616c749813108b637322b327604415a80ad25f4d
7,928
py
Python
tools/preprocess_data.py
ningchaoar/Megatron-LM
39196e776a2e9d1bfb11622b988ad7dc9c0f471e
[ "MIT" ]
null
null
null
tools/preprocess_data.py
ningchaoar/Megatron-LM
39196e776a2e9d1bfb11622b988ad7dc9c0f471e
[ "MIT" ]
null
null
null
tools/preprocess_data.py
ningchaoar/Megatron-LM
39196e776a2e9d1bfb11622b988ad7dc9c0f471e
[ "MIT" ]
null
null
null
# coding=utf-8 # Copyright (c) 2020, NVIDIA CORPORATION. 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 re...
38.485437
94
0.605701
83fe6968dde7cbf2fd964be61e071b0ca8f50315
7,759
py
Python
tensorflow_data_validation/utils/test_util_test.py
devidipak/data-validation
85b7e3f71bd70e4986a55120aa6e24ecbc7b88ce
[ "Apache-2.0" ]
1
2019-12-18T18:27:56.000Z
2019-12-18T18:27:56.000Z
tensorflow_data_validation/utils/test_util_test.py
devidipak/data-validation
85b7e3f71bd70e4986a55120aa6e24ecbc7b88ce
[ "Apache-2.0" ]
null
null
null
tensorflow_data_validation/utils/test_util_test.py
devidipak/data-validation
85b7e3f71bd70e4986a55120aa6e24ecbc7b88ce
[ "Apache-2.0" ]
null
null
null
"""Tests for test_util.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function from absl.testing import absltest from tensorflow_data_validation.utils import test_util from google.protobuf import text_format from tensorflow_metadata.proto.v0 import statistics_...
27.910072
80
0.603686
5cd016398eaab82446f91c8ae92e6bc36aef2f9a
5,545
py
Python
python/DeepSeaSceneLighting/SpotLight.py
akb825/DeepSea
fff790d0a472cf2f9f89de653e0b4470ce605d24
[ "Apache-2.0" ]
5
2018-11-17T23:13:22.000Z
2021-09-30T13:37:04.000Z
python/DeepSeaSceneLighting/SpotLight.py
akb825/DeepSea
fff790d0a472cf2f9f89de653e0b4470ce605d24
[ "Apache-2.0" ]
null
null
null
python/DeepSeaSceneLighting/SpotLight.py
akb825/DeepSea
fff790d0a472cf2f9f89de653e0b4470ce605d24
[ "Apache-2.0" ]
2
2019-09-23T12:23:35.000Z
2020-04-07T05:31:06.000Z
# automatically generated by the FlatBuffers compiler, do not modify # namespace: DeepSeaSceneLighting import flatbuffers from flatbuffers.compat import import_numpy np = import_numpy() class SpotLight(object): __slots__ = ['_tab'] @classmethod def GetRootAs(cls, buf, offset=0): n = flatbuffers....
41.380597
128
0.699188
01b31e905f9b507d191afb83b919048d29f95444
274
py
Python
DjangoSite/apps/notes/serializers.py
abec/getabe.com
adf4a447b1b063010d76ac0c76586c0d4d0ff5c3
[ "MIT" ]
null
null
null
DjangoSite/apps/notes/serializers.py
abec/getabe.com
adf4a447b1b063010d76ac0c76586c0d4d0ff5c3
[ "MIT" ]
null
null
null
DjangoSite/apps/notes/serializers.py
abec/getabe.com
adf4a447b1b063010d76ac0c76586c0d4d0ff5c3
[ "MIT" ]
null
null
null
from rest_framework import serializers from .models import ChineseMetadata __all__ = ['ChineseWordsSerializer'] class ChineseWordsSerializer(serializers.ModelSerializer): class Meta: model = ChineseMetadata depth = 2 fields = ('native', 'gender', 'words')
21.076923
58
0.751825
f8847755bfcc79b0c0b90cc46de8a588b79611a2
467
py
Python
algorithms/virtual-object-detector/capturers/videoCapturer.py
AlgoveraAI/creations
6aa1cfffb4a59b7ff9fd9573ed743195be5bcfdc
[ "MIT" ]
null
null
null
algorithms/virtual-object-detector/capturers/videoCapturer.py
AlgoveraAI/creations
6aa1cfffb4a59b7ff9fd9573ed743195be5bcfdc
[ "MIT" ]
null
null
null
algorithms/virtual-object-detector/capturers/videoCapturer.py
AlgoveraAI/creations
6aa1cfffb4a59b7ff9fd9573ed743195be5bcfdc
[ "MIT" ]
null
null
null
import cv2 import os from os.path import exists def detect_from_video(videoPath, callback): if exists(videoPath) == False: return cap = cv2.VideoCapture(videoPath) i = 0 while(cap.isOpened()): ret, frame = cap.read() if (ret == False): break if ...
22.238095
59
0.567452
46816fcbfdfbc701c4a967504e9726fdecd51b53
14,816
py
Python
cherrypy/test/test_objectmapping.py
seshness/bearlol
ff89bc1e66a96b6e55538a5cee38370e08e5b682
[ "BSD-3-Clause" ]
2
2020-12-28T22:37:45.000Z
2021-01-23T18:04:46.000Z
cherrypy/test/test_objectmapping.py
seshness/bearlol
ff89bc1e66a96b6e55538a5cee38370e08e5b682
[ "BSD-3-Clause" ]
null
null
null
cherrypy/test/test_objectmapping.py
seshness/bearlol
ff89bc1e66a96b6e55538a5cee38370e08e5b682
[ "BSD-3-Clause" ]
null
null
null
import cherrypy from cherrypy._cptree import Application from cherrypy.test import helper script_names = ["", "/foo", "/users/fred/blog", "/corp/blog"] class ObjectMappingTest(helper.CPWebCase): def setup_server(): class Root: def index(self, name="world"): return name ...
36.673267
93
0.527875
51cadfd298fa0ce5c47fcd24d421a9eda80c6cc0
1,325
py
Python
python_src/graphene-3.0/graphene/test/__init__.py
MilesLitteral/graphene-haskell
bd157a2678525ef61e7ba239e6c3a338c41228d8
[ "MIT" ]
null
null
null
python_src/graphene-3.0/graphene/test/__init__.py
MilesLitteral/graphene-haskell
bd157a2678525ef61e7ba239e6c3a338c41228d8
[ "MIT" ]
null
null
null
python_src/graphene-3.0/graphene/test/__init__.py
MilesLitteral/graphene-haskell
bd157a2678525ef61e7ba239e6c3a338c41228d8
[ "MIT" ]
null
null
null
from numpy import integer from promise import Promise, is_thenable from graphql.error import format_error as format_graphql_error from graphql.error import GraphQLError from graphene.types.schema import Schema def default_format_error(error): if isinstance(error, GraphQLError): return format_graphql_erro...
33.125
85
0.72
29f2ae64383ed1fbd86fd689e6391b7ba80a7628
393
py
Python
api/curve/v1/test/band_test.py
QiliangFan/Baidu-Curve
b3573b9f0e44557f0bf2455ec7d5a85bc0cffdef
[ "Apache-2.0" ]
478
2017-10-26T11:55:28.000Z
2022-03-28T06:50:58.000Z
api/curve/v1/test/band_test.py
QiliangFan/Baidu-Curve
b3573b9f0e44557f0bf2455ec7d5a85bc0cffdef
[ "Apache-2.0" ]
60
2017-10-28T07:45:45.000Z
2020-12-04T14:12:55.000Z
api/curve/v1/test/band_test.py
QiliangFan/Baidu-Curve
b3573b9f0e44557f0bf2455ec7d5a85bc0cffdef
[ "Apache-2.0" ]
132
2017-10-24T06:09:05.000Z
2021-09-21T16:03:10.000Z
# -*- coding: utf-8 -*- """ Testing ~~~~ band test :copyright: (c) 2017-2018 by Baidu, Inc. :license: Apache, see LICENSE for more details. """ from .base import IcurveTestCase class BandTestCase(IcurveTestCase): """ band test """ def test_get_band(self): pass # not impl...
17.086957
51
0.600509
c189cddbd25b1519372c9725856a4ed15913adcf
1,189
py
Python
ampel/abstract/AbsBufferComplement.py
AmpelProject/Ampel-core
dcbfbe38ba400b7f8e44e641b90217ca1bed4f8f
[ "BSD-3-Clause" ]
5
2021-04-15T07:43:26.000Z
2022-03-04T09:25:09.000Z
ampel/abstract/AbsBufferComplement.py
AmpelProject/Ampel-core
dcbfbe38ba400b7f8e44e641b90217ca1bed4f8f
[ "BSD-3-Clause" ]
67
2021-02-23T21:43:20.000Z
2021-12-15T23:28:32.000Z
ampel/abstract/AbsBufferComplement.py
AmpelProject/Ampel-core
dcbfbe38ba400b7f8e44e641b90217ca1bed4f8f
[ "BSD-3-Clause" ]
1
2021-04-26T07:52:19.000Z
2021-04-26T07:52:19.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # File : Ampel-core/ampel/abstract/AbsBufferComplement.py # License : BSD-3-Clause # Author : vb <vbrinnel@physik.hu-berlin.de> # Date : 16.01.2020 # Last Modified Date: 15.04.2021 # Last Modified By : vb <vbrinnel@physik.hu-b...
36.030303
77
0.742641
a5c9c96441c3ecc0e0e69d0c2aebbafd1192ee8b
2,965
py
Python
ScreenServer/rgbScreenServer.py
acrandal/MazeRGB-LED
1d23b988fa969b1db273bb179a4caecca416d5cc
[ "MIT" ]
null
null
null
ScreenServer/rgbScreenServer.py
acrandal/MazeRGB-LED
1d23b988fa969b1db273bb179a4caecca416d5cc
[ "MIT" ]
null
null
null
ScreenServer/rgbScreenServer.py
acrandal/MazeRGB-LED
1d23b988fa969b1db273bb179a4caecca416d5cc
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from samplebase import SampleBase from random import randint, uniform from time import sleep import pika, os, sys import json from pprint import pprint class Coordinate: def __init__(self, x, y): self.x = x self.y = y class Color: def __init__(self, r, g, b): ...
27.453704
113
0.568634
c20b32c154962ad604a2caea73a1c5ebf68bfcfc
1,161
py
Python
bigquery_storage/docs/quickstart_test.py
nielm/google-cloud-python
fd126fdea34206109eb00d675374ff7dc4dcc5ef
[ "Apache-2.0" ]
1
2019-06-14T10:11:59.000Z
2019-06-14T10:11:59.000Z
bigquery_storage/docs/quickstart_test.py
nielm/google-cloud-python
fd126fdea34206109eb00d675374ff7dc4dcc5ef
[ "Apache-2.0" ]
1
2018-04-06T19:51:23.000Z
2018-04-06T19:51:23.000Z
bigquery_storage/docs/quickstart_test.py
nielm/google-cloud-python
fd126fdea34206109eb00d675374ff7dc4dcc5ef
[ "Apache-2.0" ]
1
2020-04-14T10:47:41.000Z
2020-04-14T10:47:41.000Z
# Copyright 2019 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, ...
25.8
84
0.727821
6050614077dea3c8e79bc406be8692febfd1ff44
80,927
py
Python
benchmarks/ltl_maxplus/f3/maxplus_28_8.py
EnricoMagnago/F3
c863215c318d7d5f258eb9be38c6962cf6863b52
[ "MIT" ]
3
2021-04-23T23:29:26.000Z
2022-03-23T10:00:30.000Z
benchmarks/ltl_maxplus/f3/maxplus_28_8.py
EnricoMagnago/F3
c863215c318d7d5f258eb9be38c6962cf6863b52
[ "MIT" ]
null
null
null
benchmarks/ltl_maxplus/f3/maxplus_28_8.py
EnricoMagnago/F3
c863215c318d7d5f258eb9be38c6962cf6863b52
[ "MIT" ]
1
2021-11-17T22:02:56.000Z
2021-11-17T22:02:56.000Z
from collections import Iterable from mathsat import msat_term, msat_env from mathsat import msat_make_true, msat_make_false from mathsat import msat_make_constant, msat_declare_function from mathsat import msat_get_rational_type from mathsat import msat_make_and as _msat_make_and from mathsat import msat_make_or as _...
56.63191
226
0.500686
b1318bcc5cc03ca9867089c64656df0df65920bd
811
py
Python
tests/compose/tea-tasks/prep_infuser.py
Dynatrace/alyeska
a1e08e105e9c7ae7f10852363f2e5dca5db9be0c
[ "ECL-2.0", "Apache-2.0" ]
2
2019-09-11T11:24:19.000Z
2019-10-01T15:25:04.000Z
tests/compose/tea-tasks/prep_infuser.py
Dynatrace/alyeska
a1e08e105e9c7ae7f10852363f2e5dca5db9be0c
[ "ECL-2.0", "Apache-2.0" ]
25
2019-09-11T12:12:12.000Z
2019-10-10T10:38:22.000Z
tests/compose/tea-tasks/prep_infuser.py
Dynatrace/alyeska
a1e08e105e9c7ae7f10852363f2e5dca5db9be0c
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ## --------------------------------------------------------------------------- ## Copyright 2019 Dynatrace 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 ## #...
45.055556
78
0.589396
ab5de2090ac18e2ac606508e253904634aa85f8e
911
py
Python
utils.py
Atharva-Phatak/TESLEA
0bf3e8980d3c328e25849ba5f7029ec698b31c70
[ "Apache-2.0" ]
1
2022-03-10T00:22:26.000Z
2022-03-10T00:22:26.000Z
utils.py
Atharva-Phatak/TESLEA
0bf3e8980d3c328e25849ba5f7029ec698b31c70
[ "Apache-2.0" ]
null
null
null
utils.py
Atharva-Phatak/TESLEA
0bf3e8980d3c328e25849ba5f7029ec698b31c70
[ "Apache-2.0" ]
null
null
null
import json import torch from nltk import word_tokenize from string import punctuation def save_json(data, fname): with open(fname, "w") as f: json.dump(data, f, indent=4) def compute_mean(l, k): return sum([o[k] for o in l]) / len(l) def create_weight_vector(fname, exclude_tokens, ...
25.305556
65
0.598244
14c60dbcbcca49a3c6e5b47f19fb7dc46597b034
676
py
Python
things/urls.py
franciscobarrerarodriguez/redzza
69dfc983a6e34a2882cc58df5ea4dd7f4bbc2578
[ "Apache-2.0" ]
null
null
null
things/urls.py
franciscobarrerarodriguez/redzza
69dfc983a6e34a2882cc58df5ea4dd7f4bbc2578
[ "Apache-2.0" ]
null
null
null
things/urls.py
franciscobarrerarodriguez/redzza
69dfc983a6e34a2882cc58df5ea4dd7f4bbc2578
[ "Apache-2.0" ]
1
2020-02-21T13:04:44.000Z
2020-02-21T13:04:44.000Z
from rest_framework import routers from .views import NoticeViewSet, CityNoticeViewSet, ProductViewSet, ColorViewSet, ServiceViewSet, ImageViewSet, VideoViewSet, CommentaryViewSet, ApiServicesViewSet router = routers.DefaultRouter() router.register(r'notices', NoticeViewSet) # router.register(r'citiesNotice', CityNot...
45.066667
164
0.823964
456aeae60f457b689aaa33fd04a60308c85100b8
2,716
py
Python
migrations/versions/58951df819e3_new_database.py
petermirithu/Pitch_web_App
21cd116dccfefd5bfca40ca2cf3df0b326d19adb
[ "MIT" ]
null
null
null
migrations/versions/58951df819e3_new_database.py
petermirithu/Pitch_web_App
21cd116dccfefd5bfca40ca2cf3df0b326d19adb
[ "MIT" ]
null
null
null
migrations/versions/58951df819e3_new_database.py
petermirithu/Pitch_web_App
21cd116dccfefd5bfca40ca2cf3df0b326d19adb
[ "MIT" ]
1
2020-01-13T22:04:56.000Z
2020-01-13T22:04:56.000Z
"""new database Revision ID: 58951df819e3 Revises: Create Date: 2019-11-23 22:43:23.952067 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '58951df819e3' down_revision = None branch_labels = None depends_on = None def upgrade(): # ### commands auto gener...
37.722222
91
0.674521
5562bf5c624b6c39ea37e0172b5faa3dce95f90e
2,255
py
Python
network_controllers/dnac/device_list.py
usmcfiredog/netprog_basics
ac4e110390ca1f011880b161401da7bc755bc2b7
[ "MIT" ]
null
null
null
network_controllers/dnac/device_list.py
usmcfiredog/netprog_basics
ac4e110390ca1f011880b161401da7bc755bc2b7
[ "MIT" ]
null
null
null
network_controllers/dnac/device_list.py
usmcfiredog/netprog_basics
ac4e110390ca1f011880b161401da7bc755bc2b7
[ "MIT" ]
null
null
null
#! /usr/bin/env python """ Learning Series: Network Programmability Basics Module: Network Controllers Lesson: Program your own DNA with DNA Center APIs Author: Hank Preston <hapresto@cisco.com> example1.py Illustrate the following concepts: - Building DNA Center API Code - Start from Postman Auto-generated code - Mul...
30.066667
77
0.678936
08076fd193259202e73a635adcca46ab8c01c898
313
py
Python
topCoder/srms/300s/srm305/div2/multi_read.py
gauravsingh58/algo
397859a53429e7a585e5f6964ad24146c6261326
[ "WTFPL" ]
1
2020-09-30T19:53:08.000Z
2020-09-30T19:53:08.000Z
topCoder/srms/300s/srm305/div2/multi_read.py
gauravsingh58/algo
397859a53429e7a585e5f6964ad24146c6261326
[ "WTFPL" ]
null
null
null
topCoder/srms/300s/srm305/div2/multi_read.py
gauravsingh58/algo
397859a53429e7a585e5f6964ad24146c6261326
[ "WTFPL" ]
1
2020-10-15T09:10:57.000Z
2020-10-15T09:10:57.000Z
from itertools import groupby from math import ceil class MultiRead: def minCycles(self, trace, procs): c = 0 for k, g in groupby(trace): if k == 'R': c += int(ceil(float(len(list(g))) / procs)) else: c += len(list(g)) return c
24.076923
59
0.495208
55ca5c20b94de030678bff340ffa049c574332d7
3,810
py
Python
userbot/plugins/getmusic.py
Munnipopz/CatUserbot
b0e54241aad6b4778b99807c4f78c922ef7befa0
[ "MIT" ]
1
2020-07-18T07:42:58.000Z
2020-07-18T07:42:58.000Z
userbot/plugins/getmusic.py
praveen368/CatUserbot
4b0cd970551ffaf86b9fdd5da584c1b3882821ff
[ "MIT" ]
null
null
null
userbot/plugins/getmusic.py
praveen368/CatUserbot
4b0cd970551ffaf86b9fdd5da584c1b3882821ff
[ "MIT" ]
null
null
null
import requests from bs4 import BeautifulSoup from telethon import events import subprocess from telethon.errors import MessageEmptyError, MessageTooLongError, MessageNotModifiedError import io import asyncio from userbot.utils import admin_cmd import glob import os from userbot import CMD_HELP, ALIVE_NAME, catdef fr...
34.636364
91
0.590026
68a129ccf788249e2e6d80ad2be9666f6030bf16
38
py
Python
amlpp/architect/__init__.py
Asirg/papds
57ce01898ed670b67537218fb4652809de71fa75
[ "MIT" ]
1
2021-12-06T13:28:27.000Z
2021-12-06T13:28:27.000Z
amlpp/architect/__init__.py
Asirg/papds
57ce01898ed670b67537218fb4652809de71fa75
[ "MIT" ]
null
null
null
amlpp/architect/__init__.py
Asirg/papds
57ce01898ed670b67537218fb4652809de71fa75
[ "MIT" ]
1
2022-02-09T11:43:04.000Z
2022-02-09T11:43:04.000Z
from .experimenter import Experimenter
38
38
0.894737
7120c04f47b9fc147824a48f1a8bdfe7f9f54a53
1,659
py
Python
sdk/keyvault/azure-keyvault-secrets/tests/secrets_test_case.py
GabrielHobold/azure-sdk-for-python
7248645bcb0d590eafdae6ffc9d25ec688a0ff68
[ "MIT" ]
null
null
null
sdk/keyvault/azure-keyvault-secrets/tests/secrets_test_case.py
GabrielHobold/azure-sdk-for-python
7248645bcb0d590eafdae6ffc9d25ec688a0ff68
[ "MIT" ]
null
null
null
sdk/keyvault/azure-keyvault-secrets/tests/secrets_test_case.py
GabrielHobold/azure-sdk-for-python
7248645bcb0d590eafdae6ffc9d25ec688a0ff68
[ "MIT" ]
null
null
null
# ------------------------------------ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ import time import os from devtools_testutils import AzureMgmtTestCase class KeyVaultTestCase(AzureMgmtTestCase): def setUp(self): self.list_test_size = 7...
34.5625
116
0.588306
73ebc6fab682a3fb8dcb5ac1570e903c7b493a54
3,609
py
Python
source/deepsecurity/models/heap_rights.py
felipecosta09/cloudone-workload-controltower-lifecycle
7927c84d164058b034fc872701b5ee117641f4d1
[ "Apache-2.0" ]
1
2021-10-30T16:40:09.000Z
2021-10-30T16:40:09.000Z
source/deepsecurity/models/heap_rights.py
felipecosta09/cloudone-workload-controltower-lifecycle
7927c84d164058b034fc872701b5ee117641f4d1
[ "Apache-2.0" ]
1
2021-07-28T20:19:03.000Z
2021-07-28T20:19:03.000Z
source/deepsecurity/models/heap_rights.py
felipecosta09/cloudone-workload-controltower-lifecycle
7927c84d164058b034fc872701b5ee117641f4d1
[ "Apache-2.0" ]
1
2021-10-30T16:40:02.000Z
2021-10-30T16:40:02.000Z
# coding: utf-8 """ Trend Micro Deep Security API Copyright 2018 - 2020 Trend Micro Incorporated.<br/>Get protected, stay secured, and keep informed with Trend Micro Deep Security's new RESTful API. Access system data and manage security configurations to automate your security workflows and integrate De...
30.327731
311
0.564699
cb516dfd010de68200ea6e84de518d4f69c3b658
4,035
py
Python
nemo_tools/text_denormalization/taggers/time.py
vadam5/NeMo
3c5db09539293c3c19a6bb7437011f91261119af
[ "Apache-2.0" ]
null
null
null
nemo_tools/text_denormalization/taggers/time.py
vadam5/NeMo
3c5db09539293c3c19a6bb7437011f91261119af
[ "Apache-2.0" ]
null
null
null
nemo_tools/text_denormalization/taggers/time.py
vadam5/NeMo
3c5db09539293c3c19a6bb7437011f91261119af
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021, NVIDIA CORPORATION. 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 appli...
40.35
107
0.64461
93a74fd307d04ab0be4467bd3441e31c3f642a57
267
py
Python
yolodex/templatetags/yolodex.py
correctiv/django-yolodex
e30dff95153c312119acad3c35ef7fcca0fab076
[ "MIT" ]
5
2015-06-22T20:15:49.000Z
2016-08-17T13:19:41.000Z
yolodex/templatetags/yolodex.py
correctiv/django-yolodex
e30dff95153c312119acad3c35ef7fcca0fab076
[ "MIT" ]
null
null
null
yolodex/templatetags/yolodex.py
correctiv/django-yolodex
e30dff95153c312119acad3c35ef7fcca0fab076
[ "MIT" ]
null
null
null
from django import template register = template.Library() @register.simple_tag def verbify(edge, subject): return edge.render_with_subject(subject, link_object=True) @register.assignment_tag def dictKeyLookup(the_dict, key): return the_dict.get(key, '')
19.071429
62
0.771536
44e1b0760b12cd3de45ac0aa93aee0a3fd3c6036
12,685
py
Python
pylib/gyp/win_tool.py
omegaphora/external_chromium_org_tools_gyp
d59685f6e5928ab145487c3c25b011e686fb7b10
[ "BSD-3-Clause" ]
33
2015-01-21T09:50:21.000Z
2022-02-12T15:18:25.000Z
deps/gyp/pylib/gyp/win_tool.py
free1978/mapbox-gl-native
2a50fccd24e762d0de5a53bac358e5ddfea8d213
[ "BSD-2-Clause" ]
5
2016-09-28T11:37:41.000Z
2022-02-05T11:08:44.000Z
deps/gyp/pylib/gyp/win_tool.py
free1978/mapbox-gl-native
2a50fccd24e762d0de5a53bac358e5ddfea8d213
[ "BSD-2-Clause" ]
8
2015-06-08T15:57:25.000Z
2019-05-15T08:52:58.000Z
#!/usr/bin/env python # Copyright (c) 2012 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Utility functions for Windows builds. These functions are executed via gyp-win-tool when using the ninja generator. """ import os impor...
40.142405
80
0.645802
8f4d1b87d5d14eb8ce299312a0ac968ff8402060
2,242
py
Python
detection/pixel_link/util/str_.py
HLIG/HUAWEI_OCR2019
1070d6291072e0223c2624f686766d0f3065e9c6
[ "MIT" ]
54
2019-04-17T07:55:44.000Z
2021-06-02T06:00:04.000Z
detection/pixel_link/util/str_.py
HLIG/HUAWEI_OCR2019
1070d6291072e0223c2624f686766d0f3065e9c6
[ "MIT" ]
5
2019-04-24T03:22:50.000Z
2021-08-18T13:12:38.000Z
detection/pixel_link/util/str_.py
HLIG/HUAWEI_OCR2019
1070d6291072e0223c2624f686766d0f3065e9c6
[ "MIT" ]
28
2019-04-17T11:30:58.000Z
2021-12-09T13:37:02.000Z
# encoding = utf-8 def int_array_to_str(arr): """turn an int array to a str""" return "".join(map(chr, arr)) def join(arr, splitter=','): temp = [] for e in arr: temp.append(e) temp.append(splitter) temp.pop() return "".join(temp) def is_str(s): return type(s) == str def t...
22.646465
48
0.574487
00e3adb215284d36b2efa692cfcb9130d3d34ae2
997
py
Python
mouth_open_algorithm_test.py
baranee-18/Mouth_Open_or_Close_Detection
d5c49cf6c707d46a36904d951b5b1cd2a15f8ac2
[ "MIT" ]
null
null
null
mouth_open_algorithm_test.py
baranee-18/Mouth_Open_or_Close_Detection
d5c49cf6c707d46a36904d951b5b1cd2a15f8ac2
[ "MIT" ]
null
null
null
mouth_open_algorithm_test.py
baranee-18/Mouth_Open_or_Close_Detection
d5c49cf6c707d46a36904d951b5b1cd2a15f8ac2
[ "MIT" ]
null
null
null
from mouth_open_algorithm import get_lip_height, get_mouth_height, check_mouth_open # obama open mouth top_lip = [(181, 359), (192, 339), (211, 332), (225, 336), (243, 333), (271, 342), (291, 364), (282, 363), (242, 346), (225, 347), (211, 345), (188, 358)] bottom_lip = [(291, 364), (270, 389), (243, 401), (223, 403),...
71.214286
159
0.611836
11cd8f35dc56c98b64a415cc1b5b3412bbe11274
2,392
py
Python
leaf/core/wrapper.py
guiqiqi/leaf
79e34f4b8fba8c6fd208b5a3049103dca2064ab5
[ "Apache-2.0" ]
119
2020-01-30T04:25:03.000Z
2022-03-27T07:15:45.000Z
leaf/core/wrapper.py
guiqiqi/leaf
79e34f4b8fba8c6fd208b5a3049103dca2064ab5
[ "Apache-2.0" ]
8
2020-02-02T05:49:47.000Z
2021-01-25T03:31:09.000Z
leaf/core/wrapper.py
guiqiqi/leaf
79e34f4b8fba8c6fd208b5a3049103dca2064ab5
[ "Apache-2.0" ]
11
2020-01-31T15:07:11.000Z
2021-03-24T03:47:48.000Z
"""Leaf 装饰器函数库""" import time import queue import threading from typing import Callable, NoReturn def thread(function: Callable) -> object: """制造一个新线程执行指定任务""" def params(*args, **kwargs): """接受任务函数的参数""" # 通过线程执行函数 def process(*args, **kwargs): """过程函数包装""" ...
23.45098
62
0.512124
374ffe0da032e1e1df0eb46a4505a552eb7a7761
16,953
py
Python
crslab/system/tgredial.py
Zilize/CRSLab
fb357d0dfb7d2cf7b67b892d98e52032a31ca564
[ "MIT" ]
null
null
null
crslab/system/tgredial.py
Zilize/CRSLab
fb357d0dfb7d2cf7b67b892d98e52032a31ca564
[ "MIT" ]
null
null
null
crslab/system/tgredial.py
Zilize/CRSLab
fb357d0dfb7d2cf7b67b892d98e52032a31ca564
[ "MIT" ]
null
null
null
# @Time : 2020/12/9 # @Author : Yuanhang Zhou # @Email : sdzyh002@gmail.com # UPDATE: # @Time : 2021/1/3 # @Author : Xiaolei Wang # @Email : wxl1999@foxmail.com import os import torch from loguru import logger from math import floor from crslab.dataset import dataset_language_map from crslab.evaluator.metrics...
45.450402
126
0.578246
fe5692224d8b9f8511c98a72df0ec05949186726
39,316
py
Python
venv/Lib/site-packages/pandas/tests/indexes/datetimes/test_constructors.py
itsAbdulKhadar/Machine-Learning-with-Streamlit
c8a0c7ca5a1bcf2730ae9587bcddfebe323965a3
[ "MIT" ]
9
2019-05-29T23:50:28.000Z
2021-01-29T20:51:05.000Z
venv/Lib/site-packages/pandas/tests/indexes/datetimes/test_constructors.py
itsAbdulKhadar/Machine-Learning-with-Streamlit
c8a0c7ca5a1bcf2730ae9587bcddfebe323965a3
[ "MIT" ]
37
2020-10-20T08:30:53.000Z
2020-12-22T13:15:45.000Z
venv/Lib/site-packages/pandas/tests/indexes/datetimes/test_constructors.py
itsAbdulKhadar/Machine-Learning-with-Streamlit
c8a0c7ca5a1bcf2730ae9587bcddfebe323965a3
[ "MIT" ]
5
2021-01-19T14:06:34.000Z
2022-02-25T15:57:16.000Z
from datetime import datetime, timedelta, timezone from functools import partial from operator import attrgetter import dateutil import numpy as np import pytest import pytz from pandas._libs.tslibs import OutOfBoundsDatetime, conversion import pandas as pd from pandas import DatetimeIndex, Index, Timestamp, date_ra...
36.235945
88
0.572362
d5119b1cad74d8e7de7e482296a961169ad1a750
4,923
py
Python
setup.py
parrotpock/graphite-web
e33a2735fc174c00c5a413922aa41f7432d5b6f4
[ "Apache-2.0" ]
4,281
2015-01-01T12:35:03.000Z
2022-03-31T20:06:59.000Z
setup.py
parrotpock/graphite-web
e33a2735fc174c00c5a413922aa41f7432d5b6f4
[ "Apache-2.0" ]
1,809
2015-01-01T21:16:36.000Z
2022-03-31T21:25:13.000Z
setup.py
parrotpock/graphite-web
e33a2735fc174c00c5a413922aa41f7432d5b6f4
[ "Apache-2.0" ]
970
2015-01-02T19:49:21.000Z
2022-03-27T09:48:44.000Z
#!/usr/bin/env python from __future__ import with_statement import os try: from ConfigParser import ConfigParser, DuplicateSectionError # Python 2 except ImportError: from configparser import ConfigParser, DuplicateSectionError # Python 3 from glob import glob from collections import defaultdict # io.Stri...
34.1875
113
0.640057
a81a5639bb7e2ba562ae04badad3743f39023905
3,030
py
Python
fscognitive/core/cognitive/person_group_cognitive.py
anhhoangiot/people_recognition_pi
92ceaebdef775a42023760360689d473662cb361
[ "MIT" ]
null
null
null
fscognitive/core/cognitive/person_group_cognitive.py
anhhoangiot/people_recognition_pi
92ceaebdef775a42023760360689d473662cb361
[ "MIT" ]
null
null
null
fscognitive/core/cognitive/person_group_cognitive.py
anhhoangiot/people_recognition_pi
92ceaebdef775a42023760360689d473662cb361
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Date : 2016-10-08 # @Author : Anh Hoang (anhhoang.work.mail@gmail.com) # @Project : FSCognitive # @Version : 1.0 from cognitive import Cognitive from commons import EventLogger logger = EventLogger.logger() class PersonGroupCognitive(Cognitive): """Intermidia...
32.234043
83
0.584158
df90adeb328d5a73a4eb8347bff5c91c1dc9d039
1,482
py
Python
core/migrations/0001_initial.py
Kigamekun/ChatDjango
fd9af822cb523362378b175ded33e8dc07b22711
[ "MIT" ]
null
null
null
core/migrations/0001_initial.py
Kigamekun/ChatDjango
fd9af822cb523362378b175ded33e8dc07b22711
[ "MIT" ]
null
null
null
core/migrations/0001_initial.py
Kigamekun/ChatDjango
fd9af822cb523362378b175ded33e8dc07b22711
[ "MIT" ]
null
null
null
# Generated by Django 3.1.7 on 2021-04-11 10:55 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
38
147
0.615385
b34fae31d3de932429e762bdb38d9b0b50def337
112
py
Python
Laelia/settings/staging.py
arantesdv/LaeliaAppProject
93fca5393cb8406694903d9adde02067480c792e
[ "MIT" ]
null
null
null
Laelia/settings/staging.py
arantesdv/LaeliaAppProject
93fca5393cb8406694903d9adde02067480c792e
[ "MIT" ]
null
null
null
Laelia/settings/staging.py
arantesdv/LaeliaAppProject
93fca5393cb8406694903d9adde02067480c792e
[ "MIT" ]
null
null
null
from ._base import * DEBUG=False # Database # https://docs.djangoproject.com/en/3.1/ref/settings/#databases
12.444444
63
0.732143
9597a02c03ba7f4d7b994ed7f668a22c96b48abf
284
py
Python
Curso_Python_3_UDEMY/funcao/gerador_html_v1.py
DanilooSilva/Cursos_de_Python
8f167a4c6e16f01601e23b6f107578aa1454472d
[ "MIT" ]
null
null
null
Curso_Python_3_UDEMY/funcao/gerador_html_v1.py
DanilooSilva/Cursos_de_Python
8f167a4c6e16f01601e23b6f107578aa1454472d
[ "MIT" ]
null
null
null
Curso_Python_3_UDEMY/funcao/gerador_html_v1.py
DanilooSilva/Cursos_de_Python
8f167a4c6e16f01601e23b6f107578aa1454472d
[ "MIT" ]
null
null
null
def tag_bloco(texto, clase='success'): return f'<div class="{clase}">{texto}</div>' if __name__ == '__main__': # Testes (assertions) assert tag_bloco('Incluído com sucesso!') == \ '<div class="success">Incluído com sucesso!</div>' print(tag_bloco('bloco'))
25.818182
58
0.630282
af9857dd344873df059d7923b373f797b7b951d8
9,816
py
Python
backend/kale/tests/assets/kfp_dsl/pipeline_parameters.py
brness/kale
d90310dbebc765c68915df0cf832a7a5d1ec1551
[ "Apache-2.0" ]
502
2019-07-18T16:19:16.000Z
2022-03-30T19:45:31.000Z
backend/kale/tests/assets/kfp_dsl/pipeline_parameters.py
brness/kale
d90310dbebc765c68915df0cf832a7a5d1ec1551
[ "Apache-2.0" ]
189
2019-09-22T10:54:02.000Z
2022-03-28T13:46:31.000Z
backend/kale/tests/assets/kfp_dsl/pipeline_parameters.py
brness/kale
d90310dbebc765c68915df0cf832a7a5d1ec1551
[ "Apache-2.0" ]
111
2019-09-25T20:28:47.000Z
2022-03-24T01:31:46.000Z
import json import kfp.dsl as _kfp_dsl import kfp.components as _kfp_components from collections import OrderedDict from kubernetes import client as k8s_client def step1(): from kale.common import mlmdutils as _kale_mlmdutils _kale_mlmdutils.init_metadata() from kale.common import rokutils as _kale_rok...
34.083333
88
0.724837
fa3f65d68e80492c7cbf1e39a9f05ec53222d8e2
9,240
py
Python
spyder/plugins/history/widgets.py
ok97465/spyder
e92e0fc963d597ec0e7ad447eca865ed8090d576
[ "MIT" ]
null
null
null
spyder/plugins/history/widgets.py
ok97465/spyder
e92e0fc963d597ec0e7ad447eca865ed8090d576
[ "MIT" ]
1
2020-11-02T21:11:19.000Z
2020-11-02T21:11:19.000Z
spyder/plugins/history/widgets.py
steff456/spyder
e92e0fc963d597ec0e7ad447eca865ed8090d576
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright © Spyder Project Contributors # Licensed under the terms of the MIT License # (see spyder/__init__.py for details) """History Widget.""" # Standard library imports import os.path as osp import re import sys # Third party imports from qtpy.QtCore import Signal, Slot from qtpy.QtW...
28.343558
79
0.591883
d0ec1a39118326cad6dc809b9b325f96d6a52275
4,644
py
Python
proto1/card_format.py
Ravenshard/AI_Dominion
8def66aa8575ebc7c46d02f4797a50f603f64630
[ "Apache-2.0" ]
1
2019-11-18T03:34:55.000Z
2019-11-18T03:34:55.000Z
proto1/card_format.py
Ravenshard/AI_Dominion
8def66aa8575ebc7c46d02f4797a50f603f64630
[ "Apache-2.0" ]
null
null
null
proto1/card_format.py
Ravenshard/AI_Dominion
8def66aa8575ebc7c46d02f4797a50f603f64630
[ "Apache-2.0" ]
null
null
null
class card(): """docstring for .""" def __init__(self, name, type, cost, coins=0, vp=0): ''' Parameters: name: string type: LIST OF STRINGS cost: int coins: int vp: int Returns: None ''' ...
33.410072
80
0.579242
1cc6cc696f2928a38a858bac02b06eea43847d3c
1,114
py
Python
pinakes/main/migrations/0050_remove_notificationtype_main_notificationtype_n_type_unique_and_more.py
Alex-Izquierdo/pinakes
dfeb855662b47d29a6e976e87fd7c090a262cf3f
[ "Apache-2.0" ]
2
2022-03-17T18:53:58.000Z
2022-03-17T22:04:22.000Z
pinakes/main/migrations/0050_remove_notificationtype_main_notificationtype_n_type_unique_and_more.py
Alex-Izquierdo/pinakes
dfeb855662b47d29a6e976e87fd7c090a262cf3f
[ "Apache-2.0" ]
9
2022-03-18T08:22:57.000Z
2022-03-30T17:14:49.000Z
pinakes/main/migrations/0050_remove_notificationtype_main_notificationtype_n_type_unique_and_more.py
Alex-Izquierdo/pinakes
dfeb855662b47d29a6e976e87fd7c090a262cf3f
[ "Apache-2.0" ]
7
2022-03-17T22:03:08.000Z
2022-03-28T21:28:34.000Z
# Generated by Django 4.0.2 on 2022-05-12 20:35 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("main", "0049_notificationsetting_encryption"), ] operations = [ migrations.RemoveConstraint( model_name="notificationtype", ...
27.85
79
0.550269
5e47b5c3e6a9d4239ba74be2f46b8a089744f198
13,907
py
Python
lasagne/tests/layers/test_normalization.py
huangshunliang/Lasagne_h
359ea1b9f12678c3523c0cb100f646528d49df9e
[ "MIT" ]
2
2021-09-22T18:39:08.000Z
2021-11-17T10:39:57.000Z
lasagne/tests/layers/test_normalization.py
huangshunliang/Lasagne_h
359ea1b9f12678c3523c0cb100f646528d49df9e
[ "MIT" ]
1
2021-03-20T04:42:05.000Z
2021-03-20T04:42:05.000Z
lasagne/tests/layers/test_normalization.py
huangshunliang/Lasagne_h
359ea1b9f12678c3523c0cb100f646528d49df9e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ The :func:`ground_truth_normalizer()`, :func:`ground_truth_normalize_row` and :class:`TestLocalResponseNormalization2DLayer` implementations contain code from `pylearn2 <http://github.com/lisa-lab/pylearn2>`_, which is covered by the following license: Copyright (c) 2011--2014, Universit...
39.848138
79
0.640541
22a2c34ed37e4b975aa8af80ea2ac1cc52e96d46
988
py
Python
ajax_table.py
mdmrts/flask_tables
95921f3af9ab32547b822a5d5c4fd37c33bfb753
[ "MIT" ]
null
null
null
ajax_table.py
mdmrts/flask_tables
95921f3af9ab32547b822a5d5c4fd37c33bfb753
[ "MIT" ]
null
null
null
ajax_table.py
mdmrts/flask_tables
95921f3af9ab32547b822a5d5c4fd37c33bfb753
[ "MIT" ]
null
null
null
from flask import Flask, render_template from flask_sqlalchemy import SQLAlchemy app = Flask(__name__) app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///db.sqlite' app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False db = SQLAlchemy(app) class User(db.Model): id = db.Column(db.Integer, primary_key=True) nam...
24.097561
65
0.632591
0c50e631fefceb97f2c97c8747698f8418c3d2ab
472,007
py
Python
modules/s3db/hrm.py
himansu1997/eden
1e2cf2b00f55da46b1ce3e6b7ad44b5345d7a1dc
[ "MIT" ]
null
null
null
modules/s3db/hrm.py
himansu1997/eden
1e2cf2b00f55da46b1ce3e6b7ad44b5345d7a1dc
[ "MIT" ]
null
null
null
modules/s3db/hrm.py
himansu1997/eden
1e2cf2b00f55da46b1ce3e6b7ad44b5345d7a1dc
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Sahana Eden Human Resources Management @copyright: 2011-2021 (c) Sahana Software Foundation @license: MIT 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 S...
43.058475
233
0.417007
320e343943564411244c0befec2665ee0d6d3ac6
1,239
py
Python
test/neo4j_node_remove_labels_test.py
fabsx00/py2neo
80f6605499ee4cec4b338f15453e8f509a09468a
[ "Apache-2.0" ]
null
null
null
test/neo4j_node_remove_labels_test.py
fabsx00/py2neo
80f6605499ee4cec4b338f15453e8f509a09468a
[ "Apache-2.0" ]
null
null
null
test/neo4j_node_remove_labels_test.py
fabsx00/py2neo
80f6605499ee4cec4b338f15453e8f509a09468a
[ "Apache-2.0" ]
1
2021-10-08T03:41:54.000Z
2021-10-08T03:41:54.000Z
#/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2011-2014, Nigel Small # # 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 ...
32.605263
74
0.703793
1ddd2660c784e9a515eb52da215b8cf0144d4723
137
py
Python
sentry-handle-exceptions-django-projects/step1/djsentry/errors/views.py
fullstackpython/blog-code-examples
a6afcb874e88086686071aa1b2a47548aed5a2b0
[ "MIT" ]
65
2017-06-13T01:02:17.000Z
2022-01-10T09:58:29.000Z
sentry-handle-exceptions-django-projects/step1/djsentry/errors/views.py
fullstackpython/blog-code-examples
a6afcb874e88086686071aa1b2a47548aed5a2b0
[ "MIT" ]
1
2020-06-05T18:07:42.000Z
2020-06-05T18:07:42.000Z
sentry-handle-exceptions-django-projects/step1/djsentry/errors/views.py
fullstackpython/blog-code-examples
a6afcb874e88086686071aa1b2a47548aed5a2b0
[ "MIT" ]
50
2017-07-01T02:10:19.000Z
2022-03-24T17:23:58.000Z
# djsentry/errors/views.py from django.shortcuts import render def errors_index(request): return render(request, 'index.html', {})
19.571429
44
0.744526
5bfeb52d5c0d94cc90ee110535b77809fdbdd34d
12,263
py
Python
torchreid/models/osnet.py
rick-hao/deep-person-reid
87fd094a2c679518433e7e92aae1d7a0f954d6cb
[ "MIT" ]
null
null
null
torchreid/models/osnet.py
rick-hao/deep-person-reid
87fd094a2c679518433e7e92aae1d7a0f954d6cb
[ "MIT" ]
null
null
null
torchreid/models/osnet.py
rick-hao/deep-person-reid
87fd094a2c679518433e7e92aae1d7a0f954d6cb
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division __all__ = ['osnet_x1_0', 'osnet_x0_75', 'osnet_x0_5', 'osnet_x0_25', 'osnet_ibn_x1_0'] import torch from torch import nn from torch.nn import functional as F import torchvision ########## # Basic layers ########## class ConvLayer(nn.Module): ...
35.544928
118
0.593737
fbd7074717242643579d75256625a09a06e786d7
10,587
py
Python
colorker/service/bigquery.py
jkachika/columbus-worker
16222ab876ffbf44e4b556ef5b6ec71ac2097892
[ "MIT" ]
null
null
null
colorker/service/bigquery.py
jkachika/columbus-worker
16222ab876ffbf44e4b556ef5b6ec71ac2097892
[ "MIT" ]
null
null
null
colorker/service/bigquery.py
jkachika/columbus-worker
16222ab876ffbf44e4b556ef5b6ec71ac2097892
[ "MIT" ]
null
null
null
#!/usr/bin/python # # Author: Johnson Kachikaran (johnsoncharles26@gmail.com) # Date: 19th May 2016 # BigQuery Service Python API: # https://developers.google.com/resources/api-libraries/documentation/bigquery/v2/python/latest/index.html """ Includes functions to integrate with Google Bigquery. The results and impleme...
45.051064
117
0.652309
21b6f158c7f38371e55cbc75849371c9f6745c80
85
py
Python
runtime/python/Lib/xml/etree/cElementTree.py
hwaipy/InteractionFreeNode
88642b68430f57b028fd0f276a5709f89279e30d
[ "MIT" ]
207
2018-10-01T08:53:01.000Z
2022-03-14T12:15:54.000Z
lib/assets/Lib/xml/etree/cElementTree.py
it56660024/cafe-grader-web
e9a1305fd62e79e54f6961f97ddc5cd57bafd73c
[ "MIT" ]
30
2019-01-04T10:14:56.000Z
2020-10-12T14:00:31.000Z
lib/assets/Lib/xml/etree/cElementTree.py
it56660024/cafe-grader-web
e9a1305fd62e79e54f6961f97ddc5cd57bafd73c
[ "MIT" ]
76
2020-03-16T01:47:46.000Z
2022-03-21T16:37:07.000Z
# Deprecated alias for xml.etree.ElementTree from xml.etree.ElementTree import *
21.25
45
0.776471
4e62484d3dfa7d21d23d57d1dbc9df7d35d7a66e
12,053
py
Python
avalanche/evaluation/metric_utils.py
lipovsek/avalanche
1f06502b12140b39f48adf5a5f3b5de8ec2a930b
[ "MIT" ]
null
null
null
avalanche/evaluation/metric_utils.py
lipovsek/avalanche
1f06502b12140b39f48adf5a5f3b5de8ec2a930b
[ "MIT" ]
null
null
null
avalanche/evaluation/metric_utils.py
lipovsek/avalanche
1f06502b12140b39f48adf5a5f3b5de8ec2a930b
[ "MIT" ]
null
null
null
################################################################################ # Copyright (c) 2021 ContinualAI. # # Copyrights licensed under the MIT License. # # See the accompanying LICENSE file for terms. ...
34.83526
121
0.63171
b86fea309653e99df1c4e8e5b24546f9bbd1258c
451
py
Python
secret.py
wyang2/404lab3
4637dfed66c33681f7ebb86a21c75c5cda0efa26
[ "Apache-2.0" ]
null
null
null
secret.py
wyang2/404lab3
4637dfed66c33681f7ebb86a21c75c5cda0efa26
[ "Apache-2.0" ]
null
null
null
secret.py
wyang2/404lab3
4637dfed66c33681f7ebb86a21c75c5cda0efa26
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: UTF-8 -*- import cgi import cgitb cgitb.enable() class FollowingTheTAsInstructionsError(Exception): def __init__(self): Exception.__init__(self, ( "You must edit secret.py to change the username, password, " "and to delete this error!" ))...
22.55
72
0.674058
0656ff5581be5d7cc15d153adce231da8d48e625
22,910
py
Python
Lib/test/test_stable_abi_ctypes.py
adnull/cpython
f2b4e458b3327130e46edb4efe8e1847de09efc5
[ "0BSD" ]
null
null
null
Lib/test/test_stable_abi_ctypes.py
adnull/cpython
f2b4e458b3327130e46edb4efe8e1847de09efc5
[ "0BSD" ]
4
2021-12-01T11:57:28.000Z
2022-03-01T20:05:21.000Z
Lib/test/test_stable_abi_ctypes.py
adnull/cpython
f2b4e458b3327130e46edb4efe8e1847de09efc5
[ "0BSD" ]
null
null
null
# Generated by Tools/scripts/stable_abi.py """Test that all symbols of the Stable ABI are accessible using ctypes """ import unittest from test.support.import_helper import import_module ctypes_test = import_module('ctypes') class TestStableABIAvailability(unittest.TestCase): def test_available_symbols(self): ...
26.701632
70
0.702357
b32067ffea9dda5975dc7108255d676c89f97223
8,306
py
Python
SqueezePredictors.py
kirill-pinigin/DeepFaceRecognitron
7f109328360d42c8955bc787d13f2b97964d3751
[ "Apache-2.0" ]
null
null
null
SqueezePredictors.py
kirill-pinigin/DeepFaceRecognitron
7f109328360d42c8955bc787d13f2b97964d3751
[ "Apache-2.0" ]
null
null
null
SqueezePredictors.py
kirill-pinigin/DeepFaceRecognitron
7f109328360d42c8955bc787d13f2b97964d3751
[ "Apache-2.0" ]
null
null
null
import torch import torch.nn as nn from torchvision import models import torch.nn.init as init from NeuralModels import SILU, Perceptron from DeepFaceRecognitron import IMAGE_SIZE, DIMENSION, CHANNELS LATENT_DIM = int(512) LATENT_DIM_2 = int(LATENT_DIM // 2) if LATENT_DIM > 2 else 1 class FireConvNorm(nn.Module): ...
37.414414
118
0.599205
af5d70cc6540350b770e8c55d6ae0d130c566b40
2,521
py
Python
tests/test_get_environment_variables.py
odant/conan-get_vcvars
b8ec3c712d18499477c5c44c71b177d1c873e508
[ "MIT" ]
null
null
null
tests/test_get_environment_variables.py
odant/conan-get_vcvars
b8ec3c712d18499477c5c44c71b177d1c873e508
[ "MIT" ]
null
null
null
tests/test_get_environment_variables.py
odant/conan-get_vcvars
b8ec3c712d18499477c5c44c71b177d1c873e508
[ "MIT" ]
null
null
null
import unittest from unittest.mock import patch import get_vcvars import subprocess from conans.errors import ConanException set_output = r''' ********************************************************************** ** Visual Studio 2017 Developer Command Prompt v15.5.5 ** Copyright (c) 2017 Microsoft Cor...
47.566038
204
0.638239
50cedaf8bfddb6f72ac6d90ef2cb2bde92bf99af
12,984
py
Python
src/lib/access.py
cognibit/Text-Normalization-Demo
36355f4a2c5187948fe786b7318259151f9a9db6
[ "Apache-2.0" ]
66
2018-06-04T05:19:49.000Z
2022-01-08T23:15:13.000Z
source/dnc/access.py
Octavian-ai/genetic-curriculum
c409681be92880793c021586f35f0ac2af5e5003
[ "Apache-2.0" ]
1
2019-07-02T14:44:44.000Z
2019-07-03T14:54:24.000Z
src/lib/access.py
cognibit/Text-Normalization-Demo
36355f4a2c5187948fe786b7318259151f9a9db6
[ "Apache-2.0" ]
7
2018-06-12T14:22:00.000Z
2022-02-22T01:18:12.000Z
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
40.702194
80
0.692699
300e82f9e89a256d8e5297702d02d2fcc387ff80
7,040
py
Python
HW3/deployment/dash_example_web.py
qswang1988/data_mining_homework
0ebd10f278170af3509ff3ccca60311c5082ffe2
[ "MIT" ]
null
null
null
HW3/deployment/dash_example_web.py
qswang1988/data_mining_homework
0ebd10f278170af3509ff3ccca60311c5082ffe2
[ "MIT" ]
null
null
null
HW3/deployment/dash_example_web.py
qswang1988/data_mining_homework
0ebd10f278170af3509ff3ccca60311c5082ffe2
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # ============================================================================= # Created By : luis-eduardo@dsv.su.se # Created Date: 2020/06/30 # ============================================================================= """ Course: Data Mining for Computer and System...
36.102564
131
0.655114
f41fff7cc8d5983f8a3e22fce084ac77a6202b06
2,905
py
Python
tests/functional/regressions/test_issue228.py
remorses/tartiflette-whl
92bed13de130a7a88278d7019314135e01281259
[ "MIT" ]
530
2019-06-04T11:45:36.000Z
2022-03-31T09:29:56.000Z
tests/functional/regressions/test_issue228.py
remorses/tartiflette-whl
92bed13de130a7a88278d7019314135e01281259
[ "MIT" ]
242
2019-06-04T11:53:08.000Z
2022-03-28T07:06:27.000Z
tests/functional/regressions/test_issue228.py
remorses/tartiflette-whl
92bed13de130a7a88278d7019314135e01281259
[ "MIT" ]
36
2019-06-21T06:40:27.000Z
2021-11-04T13:11:16.000Z
import pytest from tartiflette import Directive, Resolver, create_engine @pytest.mark.asyncio async def test_issue228_1(): @Resolver("Query.a", schema_name="issue228_1") async def lol(*_args, **_kwargs): return {"ninja": "Ohio"} _engine = await create_engine( sdl=""" type Qu...
26.651376
83
0.59346
766bff75b4bb104f738f25a4dbe937d9509923d6
7,213
py
Python
docs/conf.py
TomomasaTakatori/metadata
e3cb35fe220e54db7a3c5804e0545bf94a01077a
[ "Apache-2.0" ]
147
2019-03-27T01:40:34.000Z
2022-03-07T08:51:20.000Z
docs/conf.py
TomomasaTakatori/metadata
e3cb35fe220e54db7a3c5804e0545bf94a01077a
[ "Apache-2.0" ]
265
2019-03-28T16:54:43.000Z
2021-11-19T21:57:33.000Z
docs/conf.py
TomomasaTakatori/metadata
e3cb35fe220e54db7a3c5804e0545bf94a01077a
[ "Apache-2.0" ]
81
2019-03-28T16:49:25.000Z
2021-11-25T07:43:49.000Z
# -*- coding: utf-8 -*- # Copyright 2019 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...
33.087156
166
0.68224
1530752ce21081661790fa77c3461c9a8f60745a
2,123
py
Python
pipelines/climate/jobs/impactlab_website/job_bcsd_orig_ir_dummy.py
ClimateImpactLab/pipelines
aa17823486f92b542e42ed19dec094a80f61fb34
[ "MIT" ]
null
null
null
pipelines/climate/jobs/impactlab_website/job_bcsd_orig_ir_dummy.py
ClimateImpactLab/pipelines
aa17823486f92b542e42ed19dec094a80f61fb34
[ "MIT" ]
14
2017-05-30T02:59:03.000Z
2017-09-28T00:49:50.000Z
pipelines/climate/jobs/impactlab_website/job_bcsd_orig_ir_dummy.py
ClimateImpactLab/pipelines
aa17823486f92b542e42ed19dec094a80f61fb34
[ "MIT" ]
null
null
null
''' Dummy data for use in web development This data is meant to be used for example purposes only. While the intention is that this data be representative of the variables presented, it is not final and should not be used in production. ''' from __future__ import absolute_import import os import pipelines import pip...
29.082192
79
0.723976
6a6a7ac62f09998bdcda2e0a44f9a36e15c8cade
2,286
py
Python
examples/stateful_lstm.py
StefOe/keras
a8eb2e97d0c16685dcd4ddf44a63cc2c4e9aa91f
[ "MIT" ]
null
null
null
examples/stateful_lstm.py
StefOe/keras
a8eb2e97d0c16685dcd4ddf44a63cc2c4e9aa91f
[ "MIT" ]
null
null
null
examples/stateful_lstm.py
StefOe/keras
a8eb2e97d0c16685dcd4ddf44a63cc2c4e9aa91f
[ "MIT" ]
null
null
null
'''Example script showing how to use stateful RNNs to model long sequences efficiently. ''' from __future__ import print_function import numpy as np import matplotlib.pyplot as plt from keras.models import Sequential from keras.layers import Dense, LSTM # since we are using stateful rnn tsteps can be set to 1 tsteps ...
27.214286
75
0.643482
8e3150844476fc4b4a5bffa799fa155ed98a9ec2
2,380
py
Python
python/software_engineering/user.py
scottwedge/payscale-course-materials
14865f9fb9da434a40103004d504136e7d4d5a68
[ "Apache-2.0" ]
null
null
null
python/software_engineering/user.py
scottwedge/payscale-course-materials
14865f9fb9da434a40103004d504136e7d4d5a68
[ "Apache-2.0" ]
1
2020-02-15T18:26:40.000Z
2020-02-15T20:18:52.000Z
python/software_engineering/user.py
scottwedge/payscale-course-materials
14865f9fb9da434a40103004d504136e7d4d5a68
[ "Apache-2.0" ]
1
2020-02-15T18:19:20.000Z
2020-02-15T18:19:20.000Z
# from lib import Stack # uncomment when you have a class Stack # from lib import Queue # uncomment when you have a class Queue # Stack code # uncomment when you've implemented "__init__" # s = Stack() # print(s._data, "should be []") # note, you don't normally using the _underscore_data # uncomment when you've i...
23.564356
87
0.653782
c67580a935f9b29368bcbe1e59c6c03707728d35
6,489
py
Python
exps/ppyoloe/ppyoloe_crn_s_voc2012.py
jie311/miemiedetection
b0e7a45717fe6c9cf9bf3c0f47d47a2e6c68b1b6
[ "Apache-2.0" ]
65
2021-12-30T03:30:52.000Z
2022-03-25T01:44:32.000Z
exps/ppyoloe/ppyoloe_crn_s_voc2012.py
jie311/miemiedetection
b0e7a45717fe6c9cf9bf3c0f47d47a2e6c68b1b6
[ "Apache-2.0" ]
1
2021-12-31T01:51:35.000Z
2022-01-01T14:42:37.000Z
exps/ppyoloe/ppyoloe_crn_s_voc2012.py
jie311/miemiedetection
b0e7a45717fe6c9cf9bf3c0f47d47a2e6c68b1b6
[ "Apache-2.0" ]
7
2021-12-31T09:25:06.000Z
2022-03-10T01:25:09.000Z
#!/usr/bin/env python3 # -*- coding:utf-8 -*- # @miemie2013 import os import sys from mmdet.exp import PPYOLOE_Method_Exp class Exp(PPYOLOE_Method_Exp): def __init__(self): super(Exp, self).__init__() # custom dataset self.num_classes = 20 self.data_dir = '../VOCdevkit/VOC2012' ...
33.448454
110
0.542456
1895bc561d67290cbaeaa852a2fa74aeccca70b2
1,031
py
Python
modeling/backbone/__init__.py
kyotovision-public/multimodal-material-segmentation
2f057e9efca0780a887c97fbca9fcfb49fb4d03a
[ "MIT" ]
null
null
null
modeling/backbone/__init__.py
kyotovision-public/multimodal-material-segmentation
2f057e9efca0780a887c97fbca9fcfb49fb4d03a
[ "MIT" ]
null
null
null
modeling/backbone/__init__.py
kyotovision-public/multimodal-material-segmentation
2f057e9efca0780a887c97fbca9fcfb49fb4d03a
[ "MIT" ]
null
null
null
from modeling.backbone import resnet, xception, drn, mobilenet, resnet_adv, xception_adv def build_backbone(backbone, output_stride, BatchNorm, input_dim=3, pretrained=False): if backbone == 'resnet': return resnet.ResNet101(output_stride, BatchNorm, pretrained=False) elif backbone == 'resnet_adv': ...
54.263158
113
0.746848
10cb433019b80a025f341ed3c2a9672a17777f99
5,648
py
Python
tests/test_provider_conf.py
brean/goblin
c61177de7f0e59661fbe74531ea4cb58558a1f31
[ "Apache-2.0" ]
82
2016-11-17T10:07:55.000Z
2021-09-04T12:53:16.000Z
tests/test_provider_conf.py
brean/goblin
c61177de7f0e59661fbe74531ea4cb58558a1f31
[ "Apache-2.0" ]
76
2016-07-06T15:01:51.000Z
2020-08-26T18:04:27.000Z
tests/test_provider_conf.py
brean/goblin
c61177de7f0e59661fbe74531ea4cb58558a1f31
[ "Apache-2.0" ]
24
2017-02-19T05:23:42.000Z
2020-06-18T22:51:10.000Z
# import asyncio # import uuid # from unittest import mock # # import json # import pytest # # import aiohttp # from aiohttp import client_ws # # from aiogremlin.gremlin_python.driver import request # # import goblin # from goblin import driver # from goblin import provider # # request_id = uuid.UUID(int=21544933152166...
32.274286
76
0.643591
b895de8f8423a73454f377ca36c04bdd4afc57cc
1,126
py
Python
kubernetes/test/test_v1_cinder_volume_source.py
amanagarwal33/python
e31693557f75950805fb4dc5af4cb7434a470e26
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_v1_cinder_volume_source.py
amanagarwal33/python
e31693557f75950805fb4dc5af4cb7434a470e26
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_v1_cinder_volume_source.py
amanagarwal33/python
e31693557f75950805fb4dc5af4cb7434a470e26
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 <<<<<<< HEAD OpenAPI spec version: v1.15.6 Generated by: https://openapi-generator.tech ======= OpenAPI spec version: v1.5.3 Generated b...
24.478261
124
0.71048
e59506ec652075f397ffe0eb1fd56a4177978828
417
py
Python
environment/Scripts/pip3.7-script.py
pumbas600/CriticalPath
31889c875dedf733aeb9a4ebeba8bf8930e86176
[ "MIT" ]
null
null
null
environment/Scripts/pip3.7-script.py
pumbas600/CriticalPath
31889c875dedf733aeb9a4ebeba8bf8930e86176
[ "MIT" ]
null
null
null
environment/Scripts/pip3.7-script.py
pumbas600/CriticalPath
31889c875dedf733aeb9a4ebeba8bf8930e86176
[ "MIT" ]
null
null
null
#!D:\Python\Saves\CriticalPath3.7\environment\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.7' __requires__ = 'pip==19.0.3' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.arg...
32.076923
70
0.669065
c348992067873a5750d8744e5e3f2f62f7719032
2,687
py
Python
rlo/paper/scripts/plot_cost_sequence.py
tomjaguarpaw/knossos-ksc
8fa75e67c0db8f632b135379740051cd10ff31f2
[ "MIT" ]
31
2021-09-09T16:09:55.000Z
2022-02-20T02:15:19.000Z
rlo/paper/scripts/plot_cost_sequence.py
tomjaguarpaw/knossos-ksc
8fa75e67c0db8f632b135379740051cd10ff31f2
[ "MIT" ]
40
2021-08-06T14:30:08.000Z
2022-01-19T08:49:52.000Z
rlo/paper/scripts/plot_cost_sequence.py
tomjaguarpaw/knossos-ksc
8fa75e67c0db8f632b135379740051cd10ff31f2
[ "MIT" ]
5
2021-08-06T11:20:31.000Z
2022-01-07T19:39:40.000Z
# fmt: off import matplotlib matplotlib.use("Agg") import matplotlib.pyplot as plt import numpy as np def blas(): from blas_result import cost_sequence, annotations matplotlib.rcParams.update({'font.size': 15}) fig = plt.figure(figsize=(5, 11)) ax = fig.add_axes([0.2, 0.92, 0.75, 0.025]) ts = np.ar...
33.5875
67
0.570897
5e7864d1a0e7550ea3255f7b3c128478a6e10acc
98
py
Python
opentotp.py
prevenitylabs/opentotp
c2a7016097fd4176bad5835ef1e58050ea8c98ce
[ "MIT" ]
1
2021-11-15T09:17:47.000Z
2021-11-15T09:17:47.000Z
opentotp.py
prevenitylabs/opentotp
c2a7016097fd4176bad5835ef1e58050ea8c98ce
[ "MIT" ]
null
null
null
opentotp.py
prevenitylabs/opentotp
c2a7016097fd4176bad5835ef1e58050ea8c98ce
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from opentotp.__main__ import main if __name__ == '__main__': main()
14
34
0.693878
97c4f90675eda5c2ee821b0dee889e68948b913b
243
py
Python
trakt/__init__.py
reiniervdwindt/pytrakt
c06203ea5e0477a784e66e1bb66d66bf9b4184ea
[ "Apache-2.0" ]
null
null
null
trakt/__init__.py
reiniervdwindt/pytrakt
c06203ea5e0477a784e66e1bb66d66bf9b4184ea
[ "Apache-2.0" ]
null
null
null
trakt/__init__.py
reiniervdwindt/pytrakt
c06203ea5e0477a784e66e1bb66d66bf9b4184ea
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """A wrapper for the Trakt.tv REST API""" try: from trakt.core import * # NOQA except ImportError: pass version_info = (2, 4, 5) __author__ = 'Jon Nappi' __version__ = '.'.join([str(i) for i in version_info])
22.090909
54
0.63786
d4e93585dab4a07e5227471b56a642d54332a485
6,207
py
Python
fec/version/v7_0/F1.py
h4ck3rm1k3/FEC-Field-Documentation
c2f1f36e14c67ac3656c09f801b9f595d3e9f92e
[ "Unlicense" ]
1
2016-06-13T23:54:31.000Z
2016-06-13T23:54:31.000Z
fec/version/v8_0/F1.py
h4ck3rm1k3/FEC-Field-Documentation
c2f1f36e14c67ac3656c09f801b9f595d3e9f92e
[ "Unlicense" ]
null
null
null
fec/version/v8_0/F1.py
h4ck3rm1k3/FEC-Field-Documentation
c2f1f36e14c67ac3656c09f801b9f595d3e9f92e
[ "Unlicense" ]
1
2019-07-03T10:35:19.000Z
2019-07-03T10:35:19.000Z
import fechbase class Records(fechbase.RecordsBase): def __init__(self): fechbase.RecordsBase.__init__(self) self.fields = [ {'name': 'FORM TYPE', 'number': '1'}, {'name': 'FILER COMMITTEE ID NUMBER', 'number': '2'}, {'name': 'CHANGE OF COMMITTEE NAME', 'number': ...
58.009346
72
0.456259
51b97d2d13ea2161647cbb5fda104c20c118dc08
15,482
py
Python
certbot/certbot/interfaces.py
sbraz/certbot
3058b6e748d085f53dd5c550be2806b26e7195eb
[ "Apache-2.0" ]
null
null
null
certbot/certbot/interfaces.py
sbraz/certbot
3058b6e748d085f53dd5c550be2806b26e7195eb
[ "Apache-2.0" ]
null
null
null
certbot/certbot/interfaces.py
sbraz/certbot
3058b6e748d085f53dd5c550be2806b26e7195eb
[ "Apache-2.0" ]
null
null
null
"""Certbot client interfaces.""" from abc import ABCMeta from abc import abstractmethod from argparse import ArgumentParser from typing import Iterable from typing import List from typing import Optional import zope.interface from acme.challenges import Challenge from acme.challenges import ChallengeResponse from cer...
32.05383
98
0.673233