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
c7696d0db1433c0a0db1777743290bc228d1566a
20,228
py
Python
examples/bs2019/analysis.py
TaoYang-CFEI/mshoot
26680422a7101b386c703eee8e1979fc87de7da7
[ "BSD-3-Clause" ]
14
2019-01-15T14:30:43.000Z
2022-02-06T08:36:36.000Z
examples/bs2019/analysis.py
TaoYang-CFEI/mshoot
26680422a7101b386c703eee8e1979fc87de7da7
[ "BSD-3-Clause" ]
4
2019-02-01T10:32:48.000Z
2021-02-21T08:53:53.000Z
examples/bs2019/analysis.py
TaoYang-CFEI/mshoot
26680422a7101b386c703eee8e1979fc87de7da7
[ "BSD-3-Clause" ]
5
2019-02-08T09:20:52.000Z
2021-04-25T02:17:54.000Z
#%% import os import pandas as pd import numpy as np import matplotlib.pyplot as plt #%% Measurementes ms_path = 'examples/bs2019/measurements.csv' ms = pd.read_csv(ms_path, index_col=0) ms.index = pd.to_datetime(ms.index) t0 = pd.to_datetime('2018-04-05 00:00:00') t1 = pd.to_datetime('2018-04-08 00:00:00') ms = ms....
25.221945
86
0.595165
fd0a3f006005472ea7e2dbb973173685da622ddf
462
py
Python
mspray/apps/main/migrations/0040_auto_20171209_0252.py
onaio/mspray
b3e0f4b5855abbf0298de6b66f2e9f472f2bf838
[ "Apache-2.0" ]
null
null
null
mspray/apps/main/migrations/0040_auto_20171209_0252.py
onaio/mspray
b3e0f4b5855abbf0298de6b66f2e9f472f2bf838
[ "Apache-2.0" ]
76
2018-03-15T09:37:56.000Z
2019-05-15T12:45:51.000Z
mspray/apps/main/migrations/0040_auto_20171209_0252.py
onaio/mspray
b3e0f4b5855abbf0298de6b66f2e9f472f2bf838
[ "Apache-2.0" ]
1
2020-10-31T07:15:22.000Z
2020-10-31T07:15:22.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.5 on 2017-12-09 02:52 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('main', '0039_weeklyreport_structures'), ] operations = [ migrations.AlterFi...
22
49
0.625541
ce0282942a7dfc5bf78c8acbfd8f22d00e6ab702
79
py
Python
Python/main/test.py
suninsky/ReceiptOCR
1be8f4e91a2188b57484e2a2b52f08e3cf9e5483
[ "MIT" ]
1
2018-10-11T04:17:27.000Z
2018-10-11T04:17:27.000Z
Python/main/test.py
suninsky/ReceiptOCR
1be8f4e91a2188b57484e2a2b52f08e3cf9e5483
[ "MIT" ]
null
null
null
Python/main/test.py
suninsky/ReceiptOCR
1be8f4e91a2188b57484e2a2b52f08e3cf9e5483
[ "MIT" ]
null
null
null
f=open('result','r') result=f.read() print ','.join(result.split('\n')[0:3])[0]
26.333333
42
0.594937
221865a2ee336166409384ddb8df87ef61ddef91
83,175
py
Python
salt/netapi/rest_cherrypy/app.py
cbosdo/salt-1
9084d662781f9c0944804ba087e652c2ddb730bf
[ "Apache-2.0" ]
null
null
null
salt/netapi/rest_cherrypy/app.py
cbosdo/salt-1
9084d662781f9c0944804ba087e652c2ddb730bf
[ "Apache-2.0" ]
null
null
null
salt/netapi/rest_cherrypy/app.py
cbosdo/salt-1
9084d662781f9c0944804ba087e652c2ddb730bf
[ "Apache-2.0" ]
null
null
null
# encoding: utf-8 ''' A REST API for Salt =================== .. versionadded:: 2014.7.0 .. py:currentmodule:: salt.netapi.rest_cherrypy.app :depends: - CherryPy Python module. Version 3.2.3 is currently recommended when SSL is enabled, since this version worked the best with SSL in internal testing....
31.978085
250
0.575269
7adffba1ca679eea400ec7eeac7d960a50759561
1,019
py
Python
exercises/Desafio042.py
zThiago15/Curso-em-Video
ef25e0497edb79bdfbe71fde485f4dafc0d2a0e6
[ "MIT" ]
null
null
null
exercises/Desafio042.py
zThiago15/Curso-em-Video
ef25e0497edb79bdfbe71fde485f4dafc0d2a0e6
[ "MIT" ]
null
null
null
exercises/Desafio042.py
zThiago15/Curso-em-Video
ef25e0497edb79bdfbe71fde485f4dafc0d2a0e6
[ "MIT" ]
1
2021-07-24T21:39:26.000Z
2021-07-24T21:39:26.000Z
cores = {'limpar':'\033[m', 'vermelho':'\033[1;31m','ciano':'\033[1;36m','azul':'\033[1;34m','amarelo':'\033[1;33m','verde':'\033[1;32m'} print('===== Tipo de Triângulo -> Aprimoramento do Desafio 35 =====') print() s1 = float(input('Primeiro segmento: ')) s2 = float(input('Segundo segmento: ')) s3 = float(input('Terc...
48.52381
137
0.618253
7e6eb379909bc39935c35becf370cab55cd6693f
2,743
py
Python
web_app/routes.py
pcsubirachs/pybit_wallet
0fb6c12841c66546d0466602cbd46d28376eb16f
[ "MIT" ]
null
null
null
web_app/routes.py
pcsubirachs/pybit_wallet
0fb6c12841c66546d0466602cbd46d28376eb16f
[ "MIT" ]
null
null
null
web_app/routes.py
pcsubirachs/pybit_wallet
0fb6c12841c66546d0466602cbd46d28376eb16f
[ "MIT" ]
null
null
null
# current app ppints to config in app.py from flask import Blueprint, jsonify, request, render_template, current_app from bitcoin import * from web_app.make_address import make_address from web_app.make_address import bp from web_app.create_btc_wallet import create_wallet import requests from bs4 import BeautifulSoup ...
31.528736
136
0.696682
d28cd8c982dd0dd1aeffb307b4fe44ff810054c6
14,698
py
Python
lib/datasets/pascal_voc.py
yihui-he/py-faster-rcnn
48b9977eed0e6ab34f327bf548cbd5985bab6e81
[ "BSD-2-Clause" ]
15
2016-08-22T06:08:45.000Z
2020-01-08T19:31:34.000Z
lib/datasets/pascal_voc.py
liyongsheng-tech/py-faster-rcnn
fe6ae69bdc0a41a4bcafbf277103d5642ed8a9dc
[ "BSD-2-Clause" ]
1
2018-01-18T09:52:31.000Z
2018-01-18T12:13:13.000Z
lib/datasets/pascal_voc.py
liyongsheng-tech/py-faster-rcnn
fe6ae69bdc0a41a4bcafbf277103d5642ed8a9dc
[ "BSD-2-Clause" ]
9
2017-12-11T02:54:25.000Z
2020-01-16T15:16:18.000Z
# -------------------------------------------------------- # Fast R-CNN # Copyright (c) 2015 Microsoft # Licensed under The MIT License [see LICENSE for details] # Written by Ross Girshick # -------------------------------------------------------- import os from datasets.imdb import imdb import datasets.ds_utils as ds...
41.637394
81
0.539189
b8a8d8eb79bbf37aa565d3344479ec9a21044296
1,252
py
Python
tests/server/performance_test.py
sethvargo/vaex
c610324316b2c0a14b8ceac2a30e202adc9da28b
[ "MIT" ]
337
2016-02-11T07:36:35.000Z
2018-12-10T07:17:35.000Z
tests/server/performance_test.py
sethvargo/vaex
c610324316b2c0a14b8ceac2a30e202adc9da28b
[ "MIT" ]
127
2016-07-06T15:43:14.000Z
2018-12-11T18:46:27.000Z
tests/server/performance_test.py
sethvargo/vaex
c610324316b2c0a14b8ceac2a30e202adc9da28b
[ "MIT" ]
29
2016-10-05T14:15:28.000Z
2018-11-29T10:17:00.000Z
import pytest import contextlib @contextlib.contextmanager def small_buffer(ds, size=3): if ds.is_local(): previous = ds.executor.chunk_size ds.executor.chunk_size = size ds._invalidate_selection_cache() try: yield finally: ds.executor.chunk_size = p...
30.536585
75
0.683706
843926d164dc7ae4adafa4af53dfc0c9dd8f404c
1,473
py
Python
src/advanced python/ad_vector.py
sudeep0901/python
7a50af12e72d21ca4cad7f2afa4c6f929552043f
[ "MIT" ]
null
null
null
src/advanced python/ad_vector.py
sudeep0901/python
7a50af12e72d21ca4cad7f2afa4c6f929552043f
[ "MIT" ]
3
2019-12-26T05:13:55.000Z
2020-03-07T06:59:56.000Z
src/advanced python/ad_vector.py
sudeep0901/python
7a50af12e72d21ca4cad7f2afa4c6f929552043f
[ "MIT" ]
null
null
null
class Vector: # def __init__(self, x, y): # print("Object init method called") # self.x = x # self.y = y # def __init__(self, **coords): # print("Object init method called") # self.__dict__.update(coords) # when prefix with underscode, object attributes are private ...
32.733333
85
0.570944
5cde76fdb49b09332d922fd35c0b917b20741a49
1,881
py
Python
qiskit/extensions/standard/x.py
luigizuccarelli/qiskit-sdk-py
c8f04404cacc1096264b9f6fa119e82d72030a59
[ "Apache-2.0" ]
1
2019-03-08T16:25:23.000Z
2019-03-08T16:25:23.000Z
qiskit/extensions/standard/x.py
luigizuccarelli/qiskit-sdk-py
c8f04404cacc1096264b9f6fa119e82d72030a59
[ "Apache-2.0" ]
null
null
null
qiskit/extensions/standard/x.py
luigizuccarelli/qiskit-sdk-py
c8f04404cacc1096264b9f6fa119e82d72030a59
[ "Apache-2.0" ]
1
2018-03-05T12:31:04.000Z
2018-03-05T12:31:04.000Z
# -*- coding: utf-8 -*- # pylint: disable=invalid-name # Copyright 2017 IBM RESEARCH. 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/licen...
28.938462
79
0.636895
52586cf70f55c53802a3b6c2cc9d0affac5e7f2e
762
py
Python
exercises/ex5-ec.py
Zorlin/lp3thw
225c8deea84df017ac1649265730d2363880906e
[ "Apache-1.1" ]
null
null
null
exercises/ex5-ec.py
Zorlin/lp3thw
225c8deea84df017ac1649265730d2363880906e
[ "Apache-1.1" ]
null
null
null
exercises/ex5-ec.py
Zorlin/lp3thw
225c8deea84df017ac1649265730d2363880906e
[ "Apache-1.1" ]
null
null
null
name = 'Zed A. Shaw' age = 35 # not a lie height = 74 # inches weight = 180 # lbs eyes = 'Blue' teeth = 'White' hair = 'Brown' print(f"Let's talk about {name}.") print(f"He's {height} inches tall.") print(f"He's {weight} pounds heavy.") print("Actually that's not too heavy.") print(f"He's got {eyes} eyes and {hair} ha...
28.222222
65
0.694226
1a489b9563122ec876320dfb0b2b8670498ba004
1,712
py
Python
pysrc/utils.py
learnforpractice/pyeosk
5fd0f0d32e0f24b78f7522b47f596e70a1b5f0e0
[ "MIT" ]
15
2018-10-08T08:58:36.000Z
2022-02-25T05:35:09.000Z
pysrc/utils.py
learnforpractice/pyeosk
5fd0f0d32e0f24b78f7522b47f596e70a1b5f0e0
[ "MIT" ]
7
2018-11-12T09:15:46.000Z
2022-03-25T14:52:26.000Z
pysrc/utils.py
learnforpractice/pyeosk
5fd0f0d32e0f24b78f7522b47f596e70a1b5f0e0
[ "MIT" ]
8
2018-11-13T08:52:23.000Z
2021-04-24T18:22:17.000Z
import json from . import eosapi from . import config def create_account_on_chain(from_account, new_account, balance, public_key): assert len(new_account) == 12 assert balance <= 1.0 assert len(public_key) == 53 and public_key[:3] == 'EOS' memo = '%s-%s'%(new_account, public_key) return eosapi.tran...
42.8
121
0.656542
0cddca92f84ac46000fb32a485d832c5bc672908
1,406
py
Python
service/service/urls.py
NewsNerdsAtCoJMC/ProjectTicoTeam6
0cc88de0e69b07b736b5b6984e6f24008a2d7bff
[ "MIT" ]
null
null
null
service/service/urls.py
NewsNerdsAtCoJMC/ProjectTicoTeam6
0cc88de0e69b07b736b5b6984e6f24008a2d7bff
[ "MIT" ]
null
null
null
service/service/urls.py
NewsNerdsAtCoJMC/ProjectTicoTeam6
0cc88de0e69b07b736b5b6984e6f24008a2d7bff
[ "MIT" ]
null
null
null
"""service URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.10/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-ba...
41.352941
79
0.723329
6c8ebbe22ce848a8fef373b377d92bc08163a99c
1,394
py
Python
src/markdown_kernel/kernel.py
vatlab/markdown-kernel
7b255e99555219165093fa5a5d2e5d4b6f9ef17e
[ "BSD-3-Clause" ]
21
2018-03-29T09:49:48.000Z
2020-05-31T22:34:58.000Z
src/markdown_kernel/kernel.py
vatlab/markdown-kernel
7b255e99555219165093fa5a5d2e5d4b6f9ef17e
[ "BSD-3-Clause" ]
5
2018-05-09T08:27:28.000Z
2020-04-25T18:01:48.000Z
src/markdown_kernel/kernel.py
vatlab/markdown-kernel
7b255e99555219165093fa5a5d2e5d4b6f9ef17e
[ "BSD-3-Clause" ]
5
2018-05-24T02:47:23.000Z
2022-02-15T12:26:52.000Z
#!/usr/bin/env python3 # # Copyright (c) Bo Peng and the University of Texas MD Anderson Cancer Center # Distributed under the terms of the 3-clause BSD License. from ipykernel.kernelbase import Kernel from ._version import __version__ class markdown_kernel(Kernel): implementation = 'markdown' implementation...
29.041667
77
0.573171
6c5be9986622a51a3012adf7a61a487928bf07cc
10,775
py
Python
bamsurgeon/replacereads.py
cdarby/bamsurgeon
b72562b6c92488cfb2d2e5ef1ccb76d7c181eb60
[ "MIT" ]
1
2019-12-23T01:38:45.000Z
2019-12-23T01:38:45.000Z
bamsurgeon/replacereads.py
cdarby/bamsurgeon
b72562b6c92488cfb2d2e5ef1ccb76d7c181eb60
[ "MIT" ]
null
null
null
bamsurgeon/replacereads.py
cdarby/bamsurgeon
b72562b6c92488cfb2d2e5ef1ccb76d7c181eb60
[ "MIT" ]
1
2019-12-23T01:38:51.000Z
2019-12-23T01:38:51.000Z
#!/usr/bin/env python import sys import pysam import argparse import random from collections import defaultdict from string import maketrans def rc(dna): ''' reverse complement ''' complements = maketrans('acgtrymkbdhvACGTRYMKBDHV', 'tgcayrkmvhdbTGCAYRKMVHDB') return dna.translate(complements)[::-1] def ...
43.800813
192
0.598515
231f01577e4857beaeceadc7bab8cde98268a671
95
py
Python
users/urls.py
qquokka/reboot-django
2015091edf705ab70b82efb607c480bff6fba051
[ "CNRI-Python" ]
null
null
null
users/urls.py
qquokka/reboot-django
2015091edf705ab70b82efb607c480bff6fba051
[ "CNRI-Python" ]
9
2021-03-19T01:21:44.000Z
2022-03-12T00:00:12.000Z
users/urls.py
qquokka/reboot-django
2015091edf705ab70b82efb607c480bff6fba051
[ "CNRI-Python" ]
null
null
null
from django.urls import path from . import views urlpatterns = [ # path('', views.index) ]
15.833333
28
0.673684
d683dd759f4d25b50621a081268258fb51e06d4d
371
py
Python
medcat/__init__.py
louni-g/MedCAT
5ffa96b9cef2520ab3a4b406aa2ab880b38f1e13
[ "MIT" ]
null
null
null
medcat/__init__.py
louni-g/MedCAT
5ffa96b9cef2520ab3a4b406aa2ab880b38f1e13
[ "MIT" ]
2
2021-04-28T11:40:59.000Z
2021-04-28T11:42:14.000Z
medcat/__init__.py
louni-g/MedCAT
5ffa96b9cef2520ab3a4b406aa2ab880b38f1e13
[ "MIT" ]
null
null
null
name = 'medcat' # Hacky patch to the built-in copy module coz otherwise, thinc.config.Config.copy will fail on Python <= 3.6. # (fixed in python 3.7 https://docs.python.org/3/whatsnew/3.7.html#re) import sys if sys.version_info.major == 3 and sys.version_info.minor <= 6: import copy import re copy._deepco...
33.727273
109
0.703504
6c47ff27a86d37a356c39ed0dff3f597ffea2111
17
py
Python
test.py
icrow78/KBpython_class_plus
af0409e33241444399068135d47cd12dcd849073
[ "Apache-2.0" ]
null
null
null
test.py
icrow78/KBpython_class_plus
af0409e33241444399068135d47cd12dcd849073
[ "Apache-2.0" ]
null
null
null
test.py
icrow78/KBpython_class_plus
af0409e33241444399068135d47cd12dcd849073
[ "Apache-2.0" ]
null
null
null
print("Carlos")
5.666667
15
0.647059
b9e99c9f243755fc8527433c451ebbde9fc6e2fc
1,815
py
Python
Advanced-Course/04-Email-Confirmation-Advanced/resources/item.py
suzynakayama/python-flask-udemy
95d2c5fa328e2f50d0893d73fd386fb713d1f12b
[ "MIT" ]
1
2021-11-30T14:13:10.000Z
2021-11-30T14:13:10.000Z
Advanced-Course/04-Email-Confirmation-Advanced/resources/item.py
suzynakayama/python-flask-udemy
95d2c5fa328e2f50d0893d73fd386fb713d1f12b
[ "MIT" ]
null
null
null
Advanced-Course/04-Email-Confirmation-Advanced/resources/item.py
suzynakayama/python-flask-udemy
95d2c5fa328e2f50d0893d73fd386fb713d1f12b
[ "MIT" ]
null
null
null
from flask_restful import Resource from flask import request from flask_jwt_extended import jwt_required, fresh_jwt_required from models.item import ItemModel from schemas.item import ItemSchema from libs.strings.strings import gettext item_schema = ItemSchema() item_list_schema = ItemSchema(many=True) class Item(Re...
26.304348
85
0.637466
1913b583aa61ab656094c79bea7b502dcb24aca7
1,270
py
Python
create_gpu_metrics.py
realnaveen/gcp-gpu-utilization-metrics
6e62ea324bf097817474b51119786e8222dd9fdf
[ "MIT" ]
13
2018-10-19T20:04:45.000Z
2021-07-23T01:34:38.000Z
create_gpu_metrics.py
realnaveen/gcp-gpu-utilization-metrics
6e62ea324bf097817474b51119786e8222dd9fdf
[ "MIT" ]
3
2019-01-22T03:42:49.000Z
2019-06-10T07:49:57.000Z
create_gpu_metrics.py
realnaveen/gcp-gpu-utilization-metrics
6e62ea324bf097817474b51119786e8222dd9fdf
[ "MIT" ]
3
2019-02-16T01:59:42.000Z
2019-06-04T07:47:02.000Z
import os from google.cloud import monitoring_v3 project_id = (os.environ['GOOGLE_CLOUD_PROJECT'] or os.environ['GCLOUD_PROJECT']) class MissingProjectIdError(Exception): pass if not project_id: raise MissingProjectIdError( 'Set the environment variable ' + 'GCLOUD_PROJEC...
30.97561
75
0.746457
47125592ea6ad498f7b7a17b936356bce7238586
3,200
py
Python
image_processing/tracker.py
wiktorowski211/Fruit-Viking
d45c35a56425c4d42a2ee59586bd559037cf07db
[ "MIT" ]
null
null
null
image_processing/tracker.py
wiktorowski211/Fruit-Viking
d45c35a56425c4d42a2ee59586bd559037cf07db
[ "MIT" ]
2
2019-05-22T09:06:16.000Z
2019-05-28T21:38:04.000Z
image_processing/tracker.py
wiktorowski211/Fruit-Viking
d45c35a56425c4d42a2ee59586bd559037cf07db
[ "MIT" ]
1
2019-03-21T13:02:29.000Z
2019-03-21T13:02:29.000Z
import cv2 import numpy as np import time from threading import Thread from image_processing.camera import Camera from image_processing.prediction import Prediction class Tracker: def __init__(self, camera, prediction): self.prediction = prediction self.camera = camera self.previous_posit...
26.229508
98
0.598438
e3bc5780854aa218bf65738b8c586d8def7a7194
83
py
Python
misc/deployment/uwsgi-flask-fork/load_model.py
ebiggerr/malaya
be757c793895522f80b929fe82353d90762f7fff
[ "MIT" ]
88
2021-01-06T10:01:31.000Z
2022-03-30T17:34:09.000Z
misc/deployment/uwsgi-flask-fork/load_model.py
zulkiflizaki/malaya
2358081bfa43aad57d9415a99f64c68f615d0cc4
[ "MIT" ]
43
2021-01-14T02:44:41.000Z
2022-03-31T19:47:42.000Z
misc/deployment/uwsgi-flask-fork/load_model.py
zulkiflizaki/malaya
2358081bfa43aad57d9415a99f64c68f615d0cc4
[ "MIT" ]
38
2021-01-06T07:15:03.000Z
2022-03-19T05:07:50.000Z
import malaya model = malaya.sentiment.transformer(model='albert', validate=True)
20.75
67
0.795181
63a99f608f691d04b3275be16c5b2c9d0717bf3b
1,385
py
Python
tests/__init__.py
ibrechin/django-zendesk-tickets
f4651836d6a0aaad46fcd90229e482bf4673e9ac
[ "MIT" ]
4
2017-04-12T08:11:07.000Z
2022-01-26T16:30:52.000Z
tests/__init__.py
ibrechin/django-zendesk-tickets
f4651836d6a0aaad46fcd90229e482bf4673e9ac
[ "MIT" ]
6
2015-12-07T12:13:49.000Z
2022-03-21T12:19:10.000Z
tests/__init__.py
ibrechin/django-zendesk-tickets
f4651836d6a0aaad46fcd90229e482bf4673e9ac
[ "MIT" ]
2
2021-04-11T06:31:40.000Z
2021-07-26T06:20:33.000Z
import os import sys import django from django.conf import settings from django.test.runner import DiscoverRunner test_settings = dict( DEBUG=True, SECRET_KEY='a' * 50, ROOT_URLCONF='tests.urls', INSTALLED_APPS=( 'django.contrib.auth', 'django.contrib.contenttypes', 'django.con...
26.634615
98
0.662094
2d5beca38a32fc4b20c9b4697c97dd5e274f043f
172
py
Python
src/model/snrna.py
AstrorEnales/GenCoNet
c596d31a889f14499883fcdf74fdc67f927a806e
[ "MIT" ]
2
2019-12-05T11:46:48.000Z
2022-03-09T00:11:06.000Z
src/model/snrna.py
AstrorEnales/GenCoNet
c596d31a889f14499883fcdf74fdc67f927a806e
[ "MIT" ]
null
null
null
src/model/snrna.py
AstrorEnales/GenCoNet
c596d31a889f14499883fcdf74fdc67f927a806e
[ "MIT" ]
null
null
null
from model.rna import RNA class SnRNA(RNA): def __init__(self, ids: [str], names: [str]): super().__init__(ids, names) self.primary_id_prefix = 'HGNC'
24.571429
49
0.633721
51ee23d61adc99b969cc67b542221ea0043e30df
2,857
py
Python
unet3d/utils/utils.py
rickymwalsh/ot_da_v0
81263e3b4794ef1e51253af67d5e8849044c4f8e
[ "MIT" ]
2
2021-11-03T17:29:51.000Z
2022-03-30T18:58:30.000Z
unet3d/utils/utils.py
rickymwalsh/ot_da_v0
81263e3b4794ef1e51253af67d5e8849044c4f8e
[ "MIT" ]
null
null
null
unet3d/utils/utils.py
rickymwalsh/ot_da_v0
81263e3b4794ef1e51253af67d5e8849044c4f8e
[ "MIT" ]
2
2021-11-08T09:12:40.000Z
2022-01-26T09:37:33.000Z
import pickle import os import collections import nibabel as nib import numpy as np from nilearn.image import reorder_img, new_img_like from .nilearn_custom_utils.nilearn_utils import crop_img_to from .sitk_utils import resample_to_spacing, calculate_origin_offset def pickle_dump(item, out_file): with open(out_...
34.841463
118
0.707735
43e9f3f6dcb57615750bdee9f4e8f2b71f188d3b
49,316
py
Python
tests/test_modeling_bart.py
Santosh-Gupta/transformers
8db01bdab4813105fba6e8de369b69b6fc37c9a7
[ "Apache-2.0" ]
1
2021-04-20T17:01:32.000Z
2021-04-20T17:01:32.000Z
tests/test_modeling_bart.py
Tarpelite/title_generation
8b9a9878e42ef1217b346daf492450c3d004dd21
[ "MIT" ]
null
null
null
tests/test_modeling_bart.py
Tarpelite/title_generation
8b9a9878e42ef1217b346daf492450c3d004dd21
[ "MIT" ]
1
2020-09-10T21:01:41.000Z
2020-09-10T21:01:41.000Z
# coding=utf-8 # Copyright 2020 Huggingface # # 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 ...
68.973427
7,208
0.716745
67744973014925ac78de5620bf55f51876ca6c95
3,062
py
Python
setup.py
teemtee/tmt
1dfc764c7aed0837a0db59af362946b26ba0485b
[ "MIT" ]
2
2022-03-04T05:57:48.000Z
2022-03-09T18:49:02.000Z
setup.py
teemtee/tmt
1dfc764c7aed0837a0db59af362946b26ba0485b
[ "MIT" ]
91
2022-02-15T14:09:03.000Z
2022-03-31T16:05:28.000Z
setup.py
teemtee/tmt
1dfc764c7aed0837a0db59af362946b26ba0485b
[ "MIT" ]
5
2022-02-21T08:02:23.000Z
2022-03-26T16:43:46.000Z
#!/usr/bin/env python # coding: utf-8 import re import sys from io import open from setuptools import setup # Parse version from the spec file with open('tmt.spec', encoding='utf-8') as specfile: lines = "\n".join(line.rstrip() for line in specfile) version = re.search('Version: (.+)', lines).group(1).rstrip...
25.305785
72
0.638472
f4c9927b909dfb773cd0b0bd92024436cca40bcc
324
py
Python
web/templatetags/tags.py
codeschule/koodikoulu-site
dde9932564f36dce6f4dbfd31e7923f1bae83293
[ "MIT" ]
5
2015-09-16T10:50:53.000Z
2016-01-16T09:10:37.000Z
web/templatetags/tags.py
codeschule/koodikoulu-site
dde9932564f36dce6f4dbfd31e7923f1bae83293
[ "MIT" ]
10
2015-09-07T05:58:03.000Z
2019-02-15T10:36:48.000Z
web/templatetags/tags.py
codeschule/koodikoulu-site
dde9932564f36dce6f4dbfd31e7923f1bae83293
[ "MIT" ]
6
2015-09-06T19:42:46.000Z
2019-12-29T21:31:07.000Z
from django import template register = template.Library() @register.inclusion_tag('templatetags/form_field.html') def show_form_field(field, icon=False): return {'field': field, 'icon': icon} @register.inclusion_tag('templatetags/learning_resource.html') def show_resource(resource): return {'resource': resou...
29.454545
62
0.771605
1fec91296fed9265870912942c74cd456940777c
599
py
Python
intro_django/intro_django/encuestas/admin.py
txtbits/daw-python
5dde1207e2791e90aa5e9ce2b6afc4116129efab
[ "MIT" ]
null
null
null
intro_django/intro_django/encuestas/admin.py
txtbits/daw-python
5dde1207e2791e90aa5e9ce2b6afc4116129efab
[ "MIT" ]
null
null
null
intro_django/intro_django/encuestas/admin.py
txtbits/daw-python
5dde1207e2791e90aa5e9ce2b6afc4116129efab
[ "MIT" ]
null
null
null
# -*-coding: cp1252 -*- from models import Encuesta, Opcion from django.contrib import admin class OpcionesEnLinea(admin.TabularInline): model = Opcion extra = 1 class EncuestaAdmin(admin.ModelAdmin): list_display = ['pregunta', 'fecha_pub', 'es_reciente'] fieldsets = [ (None, {'fields': ['p...
26.043478
59
0.651085
b195342b8f13e6c7a25dfd4916e91a0bc56fb21a
762
py
Python
extra/scripts/segment_extract.py
heinsm/qira
3726403c4bf4a4f3cf74e1514001333b3fa0e6b4
[ "MIT" ]
2,056
2018-03-17T01:46:40.000Z
2022-03-31T20:06:48.000Z
extra/scripts/segment_extract.py
heinsm/qira
3726403c4bf4a4f3cf74e1514001333b3fa0e6b4
[ "MIT" ]
45
2018-05-15T08:50:51.000Z
2022-01-01T10:51:40.000Z
extra/scripts/segment_extract.py
heinsm/qira
3726403c4bf4a4f3cf74e1514001333b3fa0e6b4
[ "MIT" ]
365
2018-04-09T05:46:11.000Z
2022-03-20T22:57:18.000Z
from qira_log import * from pymongo import MongoClient db = MongoClient('localhost', 3001).meteor mem_addrs = set() ins_addrs = set() # page level granularity dat = read_log("/tmp/qira_log") for (address, data, clnum, flags) in dat: if flags & IS_MEM: mem_addrs.add(address & 0xFFFFF000) if flags & IS_START: ...
20.594595
53
0.706037
a5ca47854d4928f143e9a2e43fba71eb69f19569
2,480
py
Python
python/matmul1.py
odu-rcs/ODU-HPC-samples
1812bfe3b5fddd7de4ee5a733b9fad3c13a5dc72
[ "Apache-2.0" ]
null
null
null
python/matmul1.py
odu-rcs/ODU-HPC-samples
1812bfe3b5fddd7de4ee5a733b9fad3c13a5dc72
[ "Apache-2.0" ]
null
null
null
python/matmul1.py
odu-rcs/ODU-HPC-samples
1812bfe3b5fddd7de4ee5a733b9fad3c13a5dc72
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Created: 20170227 # Note: In a python program or function, if the first statement # encountered is a string literal like this, it will be taken as the # documentation (__doc__) of the program/function. """ matmul1.py Demo program to read two matrices, performs multiplication, and prints the...
25.306122
70
0.632661
b55ca415b7f5c8d9785400aec4d8b65c7b08158c
335
py
Python
apps/local_apps/profiles/urls.py
google-code-export/django-hotclub
d783a5bbcc06816289565f3eae6d99461188ca4a
[ "MIT" ]
4
2016-05-08T06:07:50.000Z
2021-11-21T19:41:40.000Z
apps/local_apps/profiles/urls.py
pombreda/django-hotclub
d783a5bbcc06816289565f3eae6d99461188ca4a
[ "MIT" ]
null
null
null
apps/local_apps/profiles/urls.py
pombreda/django-hotclub
d783a5bbcc06816289565f3eae6d99461188ca4a
[ "MIT" ]
3
2017-07-09T02:14:54.000Z
2021-07-13T19:16:59.000Z
from django.conf.urls.defaults import * urlpatterns = patterns('', url(r'^$', 'profiles.views.profiles', name='profile_list'), url(r'^(?P<username>[\w]+)/$', 'profiles.views.profile', name='profile_detail'), url(r'^username_autocomplete/$', 'profiles.views.username_autocomplete', name='profile_username_aut...
41.875
115
0.704478
438ac75e7a209d57339a2e9ce1efd380383b79a9
9,777
py
Python
portfolio/admin.py
open-risk/equinox
0503e716b566ff7c776f04a611879f88d86e1cc6
[ "Apache-2.0" ]
10
2021-03-21T22:05:33.000Z
2022-03-15T18:26:58.000Z
portfolio/admin.py
open-risk/equinox
0503e716b566ff7c776f04a611879f88d86e1cc6
[ "Apache-2.0" ]
2
2021-10-30T15:15:41.000Z
2021-11-11T12:35:02.000Z
portfolio/admin.py
open-risk/equinox
0503e716b566ff7c776f04a611879f88d86e1cc6
[ "Apache-2.0" ]
1
2022-03-16T18:59:36.000Z
2022-03-16T18:59:36.000Z
# Copyright (c) 2021 Open Risk (https://www.openriskmanagement.com) # # 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, co...
32.161184
121
0.719137
9e528087cd7c536a10c1c3dd856d02f525b57726
1,004
py
Python
tools/testing/kunit/qemu_configs/riscv.py
jainsakshi2395/linux
7ccb860232bb83fb60cd6bcf5aaf0c008d903acb
[ "Linux-OpenIB" ]
44
2022-03-16T08:32:31.000Z
2022-03-31T16:02:35.000Z
tools/testing/kunit/qemu_configs/riscv.py
jainsakshi2395/linux
7ccb860232bb83fb60cd6bcf5aaf0c008d903acb
[ "Linux-OpenIB" ]
1
2021-01-27T01:29:47.000Z
2021-01-27T01:29:47.000Z
tools/testing/kunit/qemu_configs/riscv.py
jainsakshi2395/linux
7ccb860232bb83fb60cd6bcf5aaf0c008d903acb
[ "Linux-OpenIB" ]
18
2022-03-19T04:41:04.000Z
2022-03-31T03:32:12.000Z
from ..qemu_config import QemuArchParams import os import os.path import sys GITHUB_OPENSBI_URL = 'https://github.com/qemu/qemu/raw/master/pc-bios/opensbi-riscv64-generic-fw_dynamic.bin' OPENSBI_FILE = os.path.basename(GITHUB_OPENSBI_URL) if not os.path.isfile(OPENSBI_FILE): print('\n\nOpenSBI file is not in the cur...
31.375
109
0.723108
27265738ad2558e1e22252e919f77d41da121054
1,260
py
Python
google/ads/googleads/v4/services/types/ad_group_simulation_service.py
batardo/google-ads-python
a39748521847e85138fca593f3be2681352ad024
[ "Apache-2.0" ]
null
null
null
google/ads/googleads/v4/services/types/ad_group_simulation_service.py
batardo/google-ads-python
a39748521847e85138fca593f3be2681352ad024
[ "Apache-2.0" ]
null
null
null
google/ads/googleads/v4/services/types/ad_group_simulation_service.py
batardo/google-ads-python
a39748521847e85138fca593f3be2681352ad024
[ "Apache-2.0" ]
null
null
null
# -*- 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 o...
30
132
0.733333
e7ebb63d54c8fa3b879abef8dd6c0f642dd4c018
92,453
py
Python
mindspore/numpy/array_creations.py
Vincent34/mindspore
a39a60878a46e7e9cb02db788c0bca478f2fa6e5
[ "Apache-2.0" ]
null
null
null
mindspore/numpy/array_creations.py
Vincent34/mindspore
a39a60878a46e7e9cb02db788c0bca478f2fa6e5
[ "Apache-2.0" ]
null
null
null
mindspore/numpy/array_creations.py
Vincent34/mindspore
a39a60878a46e7e9cb02db788c0bca478f2fa6e5
[ "Apache-2.0" ]
null
null
null
# Copyright 2020-2021 Huawei Technologies Co., Ltd # # 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 agre...
37.040465
119
0.603377
1680f79c5d9a0daf027550f99e72307d39492c2b
1,460
py
Python
data.py
nitishmishra617/Python-Face_Recognition_Attendance_System
596e68a2100d212961096a17c2c3c17fc229647d
[ "MIT" ]
null
null
null
data.py
nitishmishra617/Python-Face_Recognition_Attendance_System
596e68a2100d212961096a17c2c3c17fc229647d
[ "MIT" ]
null
null
null
data.py
nitishmishra617/Python-Face_Recognition_Attendance_System
596e68a2100d212961096a17c2c3c17fc229647d
[ "MIT" ]
null
null
null
import cv2 import os def main(id): cam = cv2.VideoCapture(0) cam.set(3, 640) # set video width cam.set(4, 480) # set video height face_detector = cv2.CascadeClassifier( 'haarcascade_frontalface_default.xml') # For each person, enter one numeric face id #face_id = input...
31.73913
79
0.55411
39b579074587f2c4d07dc5d76d0a08c3c8e937a1
2,560
py
Python
test/record/parser/test_response_whois_nic_cx_status_registered.py
huyphan/pyyawhois
77fb2f73a9c67989f1d41d98f37037406a69d136
[ "MIT" ]
null
null
null
test/record/parser/test_response_whois_nic_cx_status_registered.py
huyphan/pyyawhois
77fb2f73a9c67989f1d41d98f37037406a69d136
[ "MIT" ]
null
null
null
test/record/parser/test_response_whois_nic_cx_status_registered.py
huyphan/pyyawhois
77fb2f73a9c67989f1d41d98f37037406a69d136
[ "MIT" ]
null
null
null
# This file is autogenerated. Do not edit it manually. # If you want change the content of this file, edit # # spec/fixtures/responses/whois.nic.cx/status_registered # # and regenerate the tests with the following script # # $ scripts/generate_tests.py # from nose.tools import * from dateutil.parser import parse ...
37.101449
83
0.684766
ac2b15bc287c6cfd46dd4899658b784943068720
6,534
py
Python
theano/gof/lazylinker_c.py
brandonwillard/Theano
f375a0e999b950a81824a003f685b0bfd1c4e405
[ "BSD-3-Clause" ]
null
null
null
theano/gof/lazylinker_c.py
brandonwillard/Theano
f375a0e999b950a81824a003f685b0bfd1c4e405
[ "BSD-3-Clause" ]
null
null
null
theano/gof/lazylinker_c.py
brandonwillard/Theano
f375a0e999b950a81824a003f685b0bfd1c4e405
[ "BSD-3-Clause" ]
1
2020-08-15T17:09:10.000Z
2020-08-15T17:09:10.000Z
import errno import logging import os import sys import warnings from six.moves import reload_module as reload import theano from theano import config from theano.gof import cmodule from theano.gof.compilelock import get_lock, release_lock _logger = logging.getLogger("theano.gof.lazylinker_c") force_compile = Fals...
39.841463
87
0.59045
cd29a071cd4a9fa6f2124dd2c9eb0a5a6d0a3410
5,355
py
Python
mysite/myapp/views.py
CSUChico-CINS465/CINS465-F19-Examples
10a177cb942ace351445ae37ba2c30ee0fc93230
[ "MIT" ]
null
null
null
mysite/myapp/views.py
CSUChico-CINS465/CINS465-F19-Examples
10a177cb942ace351445ae37ba2c30ee0fc93230
[ "MIT" ]
11
2020-06-05T22:49:57.000Z
2022-03-12T00:01:45.000Z
mysite/myapp/views.py
CSUChico-CINS465/CINS465-F19-Examples
10a177cb942ace351445ae37ba2c30ee0fc93230
[ "MIT" ]
null
null
null
from django.shortcuts import render, redirect from django.http import HttpResponse, JsonResponse from django.views.decorators.csrf import csrf_exempt from django.contrib.auth.decorators import login_required from django.contrib.auth import logout # from django.contrib.auth.models import User from . import models from ...
35
97
0.593838
86c7b89f0068dbfe2f1db2af080044a6842d0b26
2,273
py
Python
src/clilib/__init__.py
markediez/clilib
46753645b96b6482e38c14fc707a300e10faf330
[ "MIT" ]
null
null
null
src/clilib/__init__.py
markediez/clilib
46753645b96b6482e38c14fc707a300e10faf330
[ "MIT" ]
5
2020-08-27T17:40:29.000Z
2020-09-20T19:09:20.000Z
src/clilib/__init__.py
markediez/clilib
46753645b96b6482e38c14fc707a300e10faf330
[ "MIT" ]
null
null
null
import clilib.util import clilib.decorator as decorator import argparse import logging _root_parser = argparse.ArgumentParser() _subparsers = _root_parser.add_subparsers(dest='_cmd') _subparsers.required = True _args = None logger = clilib.util.get_logger(f"[{__name__}]") def build_parser(parser): return parse...
31.136986
97
0.682798
d42fbec41b644a0680cc8bbb79c1ced00e52ef6b
2,705
py
Python
Sketches/AM/KPIPackage/Kamaelia/Community/AM/Kamaelia/KPIFramework/Examples/KPITextClient.py
sparkslabs/kamaelia_orig
24b5f855a63421a1f7c6c7a35a7f4629ed955316
[ "Apache-2.0" ]
12
2015-10-20T10:22:01.000Z
2021-07-19T10:09:44.000Z
Sketches/AM/KPIPackage/Kamaelia/Community/AM/Kamaelia/KPIFramework/Examples/KPITextClient.py
sparkslabs/kamaelia_orig
24b5f855a63421a1f7c6c7a35a7f4629ed955316
[ "Apache-2.0" ]
2
2015-10-20T10:22:55.000Z
2017-02-13T11:05:25.000Z
Sketches/AM/KPIPackage/Kamaelia/Community/AM/Kamaelia/KPIFramework/Examples/KPITextClient.py
sparkslabs/kamaelia_orig
24b5f855a63421a1f7c6c7a35a7f4629ed955316
[ "Apache-2.0" ]
6
2015-03-09T12:51:59.000Z
2020-03-01T13:06:21.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2010 British Broadcasting Corporation and Kamaelia Contributors(1) # # (1) Kamaelia Contributors are listed in the AUTHORS file and at # http://www.kamaelia.org/AUTHORS - please extend this file, # not this notice. # # Licensed under the Apach...
34.240506
88
0.626987
2fd51f3302037d3acade6261953998850516870b
1,621
py
Python
autodc/components/feature_engineering/transformations/generator/kitchen_sinks.py
dingdian110/AutoDC
f5ccca6bea993bcff3e804fb859e8b25ae020b5c
[ "MIT" ]
null
null
null
autodc/components/feature_engineering/transformations/generator/kitchen_sinks.py
dingdian110/AutoDC
f5ccca6bea993bcff3e804fb859e8b25ae020b5c
[ "MIT" ]
null
null
null
autodc/components/feature_engineering/transformations/generator/kitchen_sinks.py
dingdian110/AutoDC
f5ccca6bea993bcff3e804fb859e8b25ae020b5c
[ "MIT" ]
null
null
null
import numpy as np from ConfigSpace.configuration_space import ConfigurationSpace from ConfigSpace.hyperparameters import UniformFloatHyperparameter, \ UniformIntegerHyperparameter from autodc.components.feature_engineering.transformations.base_transformer import * class KitchenSinks(Transformer): def __init_...
37.697674
97
0.702036
e3cb10433a516d1c6d2a2ca8431f8d396cd46567
249,143
py
Python
xlsxwriter/worksheet.py
adgear/XlsxWriter
79bcaad28d57ac29038b1c74bccc6d611b7a385e
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
xlsxwriter/worksheet.py
adgear/XlsxWriter
79bcaad28d57ac29038b1c74bccc6d611b7a385e
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
xlsxwriter/worksheet.py
adgear/XlsxWriter
79bcaad28d57ac29038b1c74bccc6d611b7a385e
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
############################################################################### # # Worksheet - A class for writing the Excel XLSX Worksheet file. # # Copyright 2013-2019, John McNamara, jmcnamara@cpan.org # # Standard packages. import codecs import datetime import os import re import sys import tempfile from collect...
34.185373
79
0.544113
e8eeaaa7bf4fd3a74f4b1c592887712cabfc158a
3,231
py
Python
Codes/Python32/Lib/test/test_fcntl.py
eyantra/FireBird_Swiss_Knife
cac322cf28e2d690b86ba28a75e87551e5e47988
[ "MIT" ]
2
2019-03-03T00:04:36.000Z
2020-10-06T16:22:38.000Z
Codes/Python32/Lib/test/test_fcntl.py
eyantra/FireBird_Swiss_Knife
cac322cf28e2d690b86ba28a75e87551e5e47988
[ "MIT" ]
null
null
null
Codes/Python32/Lib/test/test_fcntl.py
eyantra/FireBird_Swiss_Knife
cac322cf28e2d690b86ba28a75e87551e5e47988
[ "MIT" ]
1
2019-04-11T11:27:01.000Z
2019-04-11T11:27:01.000Z
"""Test program for the fcntl C module. OS/2+EMX doesn't support the file locking operations. """ import os import struct import sys import unittest from test.support import verbose, TESTFN, unlink, run_unittest, import_module # Skip test if no fnctl module. fcntl = import_module('fcntl') # TODO - Write tests for ...
31.067308
81
0.56546
85aa7236446f5af041a804ae250926e5b36e68ae
26,189
py
Python
SmartFoxServer_PRO_1.6.6/Server/lib/Lib/random.py
ChisdealHD/DetlasWorldLinux
336465a4df1a48c9a273329fc7a09d8099c4e4d5
[ "MIT" ]
8
2016-11-24T09:38:31.000Z
2021-04-23T13:04:48.000Z
SmartFoxServer_PRO_1.6.6/Server/lib/Lib/random.py
ChisdealHD/DetlasWorldLinux
336465a4df1a48c9a273329fc7a09d8099c4e4d5
[ "MIT" ]
4
2018-02-22T07:42:13.000Z
2021-12-13T10:53:09.000Z
SmartFoxServer_PRO_1.6.6/Server/lib/Lib/random.py
ChisdealHD/DetlasWorldLinux
336465a4df1a48c9a273329fc7a09d8099c4e4d5
[ "MIT" ]
4
2018-12-04T12:21:05.000Z
2021-02-05T08:00:14.000Z
"""Random variable generators. integers -------- uniform within range sequences --------- pick random element generate random permutation distributions on the real line: ------------------------------ uniform normal (Gaussian) ...
33.575641
77
0.564741
5bf9a122aebe319b3d78e31855d1c3fc0adda79a
2,965
py
Python
tests/test_task.py
igorcoding/asynctnt_queue
75719b2dd27e8314ae924aea6a7a85be8f48ecc5
[ "Apache-2.0" ]
null
null
null
tests/test_task.py
igorcoding/asynctnt_queue
75719b2dd27e8314ae924aea6a7a85be8f48ecc5
[ "Apache-2.0" ]
null
null
null
tests/test_task.py
igorcoding/asynctnt_queue
75719b2dd27e8314ae924aea6a7a85be8f48ecc5
[ "Apache-2.0" ]
null
null
null
from asynctnt_queue import Queue, Tube, Task from asynctnt_queue.task import Status from tests import BaseTarantoolTestCase class TaskTestCase(BaseTarantoolTestCase): def create_tube(self): q = Queue(self.conn) return q.tube("test_tube") def _data_obj(self): return { 'key'...
33.314607
68
0.619562
86997d5eda19f50affe745405ee36c4ab51a686c
975
py
Python
examples/hci/10-spin.py
robert-anderson/pyscf
cdc56e168cb15f47e8cdc791a92d689fa9b655af
[ "Apache-2.0" ]
2
2021-11-17T05:52:32.000Z
2022-02-07T02:44:53.000Z
examples/hci/10-spin.py
robert-anderson/pyscf
cdc56e168cb15f47e8cdc791a92d689fa9b655af
[ "Apache-2.0" ]
36
2018-08-22T19:44:03.000Z
2020-05-09T10:02:36.000Z
examples/hci/10-spin.py
robert-anderson/pyscf
cdc56e168cb15f47e8cdc791a92d689fa9b655af
[ "Apache-2.0" ]
4
2018-02-14T16:28:28.000Z
2019-08-12T16:40:30.000Z
#!/usr/bin/env python # # Author: Qiming Sun <osirpt.sun@gmail.com> # ''' Assign spin state for HCI wavefunction. If spin-contamination is observed for HCI wavefunction, :func:`hci.fix_spin` function can be used to level shift the states of wrong spin. This is often helpful to reduce the spin-contamination. ''' fro...
29.545455
76
0.681026
da49e1ed49e1344cba429343efcbb4d8ae857a34
643
py
Python
plotly/validators/scatterternary/textfont/_family.py
gnestor/plotly.py
a8ae062795ddbf9867b8578fe6d9e244948c15ff
[ "MIT" ]
12
2020-04-18T18:10:22.000Z
2021-12-06T10:11:15.000Z
plotly/validators/scatterternary/textfont/_family.py
gnestor/plotly.py
a8ae062795ddbf9867b8578fe6d9e244948c15ff
[ "MIT" ]
27
2020-04-28T21:23:12.000Z
2021-06-25T15:36:38.000Z
plotly/validators/scatterternary/textfont/_family.py
gnestor/plotly.py
a8ae062795ddbf9867b8578fe6d9e244948c15ff
[ "MIT" ]
6
2020-04-18T23:07:08.000Z
2021-11-18T07:53:06.000Z
import _plotly_utils.basevalidators class FamilyValidator(_plotly_utils.basevalidators.StringValidator): def __init__( self, plotly_name='family', parent_name='scatterternary.textfont', **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_n...
29.227273
68
0.597201
e6a52c1679dc30b610058a0307aa705cc848abaa
9,646
py
Python
alf/environments/suite_unittest.py
jesbu1/alf
def59fe39bdbca70a6c80e9b8f2c7c785cb59ea7
[ "Apache-2.0" ]
null
null
null
alf/environments/suite_unittest.py
jesbu1/alf
def59fe39bdbca70a6c80e9b8f2c7c785cb59ea7
[ "Apache-2.0" ]
null
null
null
alf/environments/suite_unittest.py
jesbu1/alf
def59fe39bdbca70a6c80e9b8f2c7c785cb59ea7
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2019 Horizon Robotics. 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 applicab...
32.809524
87
0.576094
7b86e3b290a68336b14777ffb570df1e576a3140
19,413
py
Python
robot_sim/robots/fr5/fr5.py
wangyan-hlab/wrs
8f81cdd33a419d5b4ffe18d13cd4cbf9f258bc7c
[ "MIT" ]
null
null
null
robot_sim/robots/fr5/fr5.py
wangyan-hlab/wrs
8f81cdd33a419d5b4ffe18d13cd4cbf9f258bc7c
[ "MIT" ]
null
null
null
robot_sim/robots/fr5/fr5.py
wangyan-hlab/wrs
8f81cdd33a419d5b4ffe18d13cd4cbf9f258bc7c
[ "MIT" ]
null
null
null
import os import math import numpy as np import basis.robot_math as rm import modeling.model_collection as mc import modeling.collision_model as cm import robot_sim._kinematics.jlchain as jl import robot_sim.manipulators.fr5.fr5 as fr import robot_sim.end_effectors.gripper.robotiq85.robotiq85 as rtq from panda3d.core i...
47.004843
119
0.548138
017da3bde710a4c88cc2e18c98a9cd3f099997c2
3,704
py
Python
kuha/importer/__init__.py
aryla/kuha
4fc418d546c6cc5876deda61258dcb61c52c549c
[ "BSD-3-Clause" ]
4
2016-11-30T08:29:00.000Z
2021-04-16T15:21:22.000Z
kuha/importer/__init__.py
aryla/kuha
4fc418d546c6cc5876deda61258dcb61c52c549c
[ "BSD-3-Clause" ]
null
null
null
kuha/importer/__init__.py
aryla/kuha
4fc418d546c6cc5876deda61258dcb61c52c549c
[ "BSD-3-Clause" ]
3
2020-11-22T15:21:02.000Z
2021-05-16T11:09:48.000Z
import errno import importlib import logging import os import sys from pyramid.paster import get_appsettings, setup_logging from pyramid.scripts.common import parse_vars from ..exception import HarvestError from ..config import clean_importer_settings from ..models import create_engine, ensure_oai_dc_exist...
27.849624
68
0.606911
557a1df2e7be1f9812b297facc266ac4f5bce272
19,028
py
Python
api/api/problem.py
alphagov/xgovctf
52f491ba6c72aed7fee13b9b05291160415340ed
[ "MIT" ]
6
2017-02-03T17:33:56.000Z
2019-07-17T19:15:50.000Z
api/api/problem.py
alphagov/xgovctf
52f491ba6c72aed7fee13b9b05291160415340ed
[ "MIT" ]
null
null
null
api/api/problem.py
alphagov/xgovctf
52f491ba6c72aed7fee13b9b05291160415340ed
[ "MIT" ]
2
2019-08-29T11:51:23.000Z
2021-04-10T19:59:08.000Z
""" Module for interacting with the problems """ import imp import pymongo import api from datetime import datetime from api.common import validate, check, safe_fail, InternalException, SevereInternalException, WebException from voluptuous import Schema, Length, Required, Range from bson import json_util from os.pat...
29.006098
116
0.637849
9b0dfe34d1469353836905b77e42abeba1337484
1,023
py
Python
Chapter07/logistic_function.py
PacktPublishing/Python-Machine-Learning-By-Example-Second-Edition
830ad0124dc72c3a24929ff1b67081a66894f1f9
[ "MIT" ]
31
2019-05-25T11:28:23.000Z
2022-02-09T15:19:20.000Z
Chapter07/logistic_function.py
PacktPublishing/Python-Machine-Learning-By-Example-Second-Edition
830ad0124dc72c3a24929ff1b67081a66894f1f9
[ "MIT" ]
null
null
null
Chapter07/logistic_function.py
PacktPublishing/Python-Machine-Learning-By-Example-Second-Edition
830ad0124dc72c3a24929ff1b67081a66894f1f9
[ "MIT" ]
22
2019-02-27T20:11:39.000Z
2022-03-07T21:46:38.000Z
''' Source codes for Python Machine Learning By Example 2nd Edition (Packt Publishing) Chapter 7: Predicting Online Ads Click-through with Logistic Regression Author: Yuxi (Hayden) Liu ''' import numpy as np def sigmoid(input): return 1.0 / (1 + np.exp(-input)) import matplotlib.pyplot as plt z = np.linspace(-...
21.765957
82
0.671554
d08eb0be2bbc455513fc52827210e703aade4a4f
7,786
py
Python
tests/utils_tests/test_html.py
chadgh/django
0f90f741de913a4502adc51063df77278d01a5ca
[ "BSD-3-Clause" ]
1
2019-01-31T17:16:56.000Z
2019-01-31T17:16:56.000Z
tests/utils_tests/test_html.py
rmutter/django
5d044339037be879a11b03fe8bd8c3ef1d520b1a
[ "BSD-3-Clause" ]
null
null
null
tests/utils_tests/test_html.py
rmutter/django
5d044339037be879a11b03fe8bd8c3ef1d520b1a
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from datetime import datetime import os from unittest import TestCase import warnings from django.utils import html, safestring from django.utils._os import upath from django.utils.encoding import force_text class TestUtilsHtml(TestCase): def chec...
42.546448
125
0.524146
eb056ca3c0a6814d79a8308c78f244a66674d2b2
2,283
py
Python
kymatio/scattering2d/tests/test_numpy_scattering2d.py
edouardoyallon/kymatio
eeed6ac9e59bc6645b90fc4e7ff8ce4f693887bc
[ "BSD-3-Clause" ]
2
2019-04-08T14:58:48.000Z
2020-02-28T01:11:17.000Z
kymatio/scattering2d/tests/test_numpy_scattering2d.py
edouardoyallon/kymatio
eeed6ac9e59bc6645b90fc4e7ff8ce4f693887bc
[ "BSD-3-Clause" ]
7
2018-12-14T01:42:21.000Z
2019-10-05T21:40:42.000Z
kymatio/scattering2d/tests/test_numpy_scattering2d.py
edouardoyallon/kymatio
eeed6ac9e59bc6645b90fc4e7ff8ce4f693887bc
[ "BSD-3-Clause" ]
1
2018-12-13T20:52:53.000Z
2018-12-13T20:52:53.000Z
import os import io import numpy as np from kymatio.scattering2d import Scattering2D import torch from kymatio.backend.fake_backend import backend as fake_backend import pytest class TestScattering2DNumpy: def reorder_coefficients_from_interleaved(self, J, L): # helper function to obtain positions of order...
33.086957
96
0.569864
5d4181014bba4902ad899b77ac99b897e925cb5d
22
py
Python
src/rtf2txt/__init__.py
joncutrer/rtf2txt
a9cfa6d80d6f38b805f7b041b5370e47a2f38049
[ "MIT" ]
1
2021-08-28T16:34:34.000Z
2021-08-28T16:34:34.000Z
src/rtf2txt/__init__.py
joncutrer/rtf2txt
a9cfa6d80d6f38b805f7b041b5370e47a2f38049
[ "MIT" ]
null
null
null
src/rtf2txt/__init__.py
joncutrer/rtf2txt
a9cfa6d80d6f38b805f7b041b5370e47a2f38049
[ "MIT" ]
null
null
null
__version__ = "0.2.4"
11
21
0.636364
6acfb62bca45973d1a7b3fc34bdbb0e7a26ccb35
4,127
py
Python
padinfo/view/otherinfo.py
bitwalk/pad-cogs
40e4911841d165caf615c7459eb7b0a20aa4cbe1
[ "MIT" ]
null
null
null
padinfo/view/otherinfo.py
bitwalk/pad-cogs
40e4911841d165caf615c7459eb7b0a20aa4cbe1
[ "MIT" ]
null
null
null
padinfo/view/otherinfo.py
bitwalk/pad-cogs
40e4911841d165caf615c7459eb7b0a20aa4cbe1
[ "MIT" ]
null
null
null
from typing import TYPE_CHECKING import prettytable from discordmenu.embed.base import Box from discordmenu.embed.components import EmbedMain, EmbedField from discordmenu.embed.text import LabeledText, Text from discordmenu.embed.view import EmbedView from redbot.core.utils.chat_formatting import box from tsutils impo...
43.442105
120
0.53259
86d48173a0d3b38e74166330375d04b4f73cce5c
811
py
Python
setup.py
kevinwylder/podman-py
fefc036d109b51e5cdf8754b8c0740188e74e938
[ "Apache-2.0" ]
106
2020-02-01T18:19:04.000Z
2022-03-25T04:34:30.000Z
setup.py
kevinwylder/podman-py
fefc036d109b51e5cdf8754b8c0740188e74e938
[ "Apache-2.0" ]
152
2020-02-04T01:52:34.000Z
2022-03-29T14:57:05.000Z
setup.py
kevinwylder/podman-py
fefc036d109b51e5cdf8754b8c0740188e74e938
[ "Apache-2.0" ]
61
2020-02-01T16:19:58.000Z
2022-03-25T17:58:34.000Z
import setuptools import fnmatch from setuptools import find_packages from setuptools.command.build_py import build_py as build_py_orig excluded = [ "podman/api_connection.py", "podman/containers/*", "podman/images/*", "podman/manifests/*", "podman/networks/*", "podman/pods/*", "podman/sys...
23.852941
86
0.654747
8c2160c1f4c2d1a5db269c2e6def957af0d658b9
3,489
py
Python
que_me_pongo/settings.py
hernancabral/que_me_pongo
7cffc6bdf9cf8b9e9b0c6395aa0076eddb88dbeb
[ "MIT" ]
1
2021-06-16T21:27:09.000Z
2021-06-16T21:27:09.000Z
que_me_pongo/settings.py
hernancabral/que_me_pongo
7cffc6bdf9cf8b9e9b0c6395aa0076eddb88dbeb
[ "MIT" ]
null
null
null
que_me_pongo/settings.py
hernancabral/que_me_pongo
7cffc6bdf9cf8b9e9b0c6395aa0076eddb88dbeb
[ "MIT" ]
null
null
null
""" Django settings for que_me_pongo project. Generated by 'django-admin startproject' using Django 3.2.4. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settings/ """ from pa...
27.257813
91
0.70192
403addafd592d57864ef1d38646f747265e3013d
14,782
py
Python
plugins/modules/oci_file_storage_file_system_facts.py
sagar2938/oci-ansible-collection
5b8ce583a0d5d0aabf14494d61aea4649e18d1e6
[ "Apache-2.0" ]
null
null
null
plugins/modules/oci_file_storage_file_system_facts.py
sagar2938/oci-ansible-collection
5b8ce583a0d5d0aabf14494d61aea4649e18d1e6
[ "Apache-2.0" ]
null
null
null
plugins/modules/oci_file_storage_file_system_facts.py
sagar2938/oci-ansible-collection
5b8ce583a0d5d0aabf14494d61aea4649e18d1e6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # Copyright (c) 2020, 2021 Oracle and/or its affiliates. # This software is made available to you under the terms of the GPL 3.0 license or the Apache 2.0 license. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # Apache License v2.0 # See LICENSE.TXT for d...
39.31383
160
0.615884
ca14cd7ff7f12c5d094af77f0fe3546d7922122e
1,332
py
Python
libevent/fields.py
adamvinueza/eventlogger
23053cbb78fb40a654af1e6a441d5dcc256b6594
[ "Apache-2.0" ]
null
null
null
libevent/fields.py
adamvinueza/eventlogger
23053cbb78fb40a654af1e6a441d5dcc256b6594
[ "Apache-2.0" ]
1
2020-10-26T15:05:24.000Z
2020-12-12T16:17:47.000Z
libevent/fields.py
adamvinueza/libevent
23053cbb78fb40a654af1e6a441d5dcc256b6594
[ "MIT" ]
null
null
null
from __future__ import annotations import json from typing import Any, Dict import libevent.json_serializer as json_serializer """ ADAPTED FROM FieldsHolder CLASS AT https://github.com/honeycombio/libhoney-py/ """ ERROR = "error" LOG_LEVEL = "logLevel" class Fields: """A field that can be logged.""" def __in...
25.615385
78
0.622372
76bb2709f8431dbee347fdef91920885309c2d16
1,516
py
Python
otodom/notifier.py
grodowski/spider
863465097fe813833be7aa651d05af83e70c3fdc
[ "MIT" ]
1
2021-11-19T14:57:32.000Z
2021-11-19T14:57:32.000Z
otodom/notifier.py
grodowski/spider
863465097fe813833be7aa651d05af83e70c3fdc
[ "MIT" ]
null
null
null
otodom/notifier.py
grodowski/spider
863465097fe813833be7aa651d05af83e70c3fdc
[ "MIT" ]
null
null
null
# coding: utf8 import os import smtplib from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText from server.renderer import Renderer smtp_login = os.getenv('SMTP_LOGIN') smtp_pwd = os.getenv('SMTP_PWD') recipients = os.getenv('EMAIL_TO') def deliver_now(items): Notifier(items).delive...
28.074074
85
0.594327
afd3d7e94494d24d32abdfb7b161dd10fcf93918
3,887
py
Python
nvtabular/ops/hash_bucket.py
deepyaman/NVTabular
b814b5ed9866be29d3c13fd00154965a3fec7fc0
[ "Apache-2.0" ]
null
null
null
nvtabular/ops/hash_bucket.py
deepyaman/NVTabular
b814b5ed9866be29d3c13fd00154965a3fec7fc0
[ "Apache-2.0" ]
null
null
null
nvtabular/ops/hash_bucket.py
deepyaman/NVTabular
b814b5ed9866be29d3c13fd00154965a3fec7fc0
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2020, NVIDIA CORPORATION. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
37.375
100
0.663236
4f3ef9ecc50d351aa63cea5b71eccf91c795d633
96
py
Python
python/PracticeA.py
teinen/atcoder-beginners-selection-answers
446a7a6de0f8d9ce6e2fd798ef467e55d7dc0119
[ "MIT" ]
null
null
null
python/PracticeA.py
teinen/atcoder-beginners-selection-answers
446a7a6de0f8d9ce6e2fd798ef467e55d7dc0119
[ "MIT" ]
null
null
null
python/PracticeA.py
teinen/atcoder-beginners-selection-answers
446a7a6de0f8d9ce6e2fd798ef467e55d7dc0119
[ "MIT" ]
null
null
null
a = int(input()) b,c = map(int, input().split()) s = input() print("{} {}".format(a + b + c, s))
24
35
0.5
1ed23f35ca26a24f7c638638524338262c7c309f
753
py
Python
common/views.py
themarshallproject/hall-of-justice
8c2ce47f792e0182c84d13dca808564a6ac376b4
[ "BSD-3-Clause" ]
7
2017-04-28T20:18:29.000Z
2020-11-23T16:35:05.000Z
common/views.py
themarshallproject/hall-of-justice
8c2ce47f792e0182c84d13dca808564a6ac376b4
[ "BSD-3-Clause" ]
44
2015-03-20T17:16:58.000Z
2016-04-27T20:17:29.000Z
common/views.py
sunlightlabs/hall-of-justice
8c2ce47f792e0182c84d13dca808564a6ac376b4
[ "BSD-3-Clause" ]
5
2015-06-22T13:49:08.000Z
2016-01-30T23:19:16.000Z
from django.views.generic.list import MultipleObjectMixin from django.http import StreamingHttpResponse from common.utils import generate_csv class CSVExportMixin(MultipleObjectMixin): """Mixin for exporting data as CSV using GET requests""" def get(self, request, *args, **kwargs): concrete_model = se...
41.833333
114
0.7251
ef14902f6337804a41110a8995c392053059a3a5
1,822
py
Python
WEEKS/CD_Sata-Structures/_MISC/misc-examples/python3-book-examples/asyncio/asyncio_echo_client_ssl.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
null
null
null
WEEKS/CD_Sata-Structures/_MISC/misc-examples/python3-book-examples/asyncio/asyncio_echo_client_ssl.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
null
null
null
WEEKS/CD_Sata-Structures/_MISC/misc-examples/python3-book-examples/asyncio/asyncio_echo_client_ssl.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
null
null
null
# Copyright (c) 2014 Doug Hellmann. All rights reserved. """Echo client using coroutines with SSL enabled """ # end_pymotw_header import asyncio import logging import ssl import sys MESSAGES = [b"This is the message. ", b"It will be sent ", b"in parts."] SERVER_ADDRESS = ("localhost", 10000) async def echo_client(...
28.920635
84
0.686059
b58d0d9d611aa10b5a1ba8db5f2c54424a05e0c1
31,374
py
Python
sysinv/sysinv/sysinv/sysinv/tests/api/test_controller_fs.py
albailey/config
40ebe63d7dfc6a0a03216ebe55ed3ec9cf5410b9
[ "Apache-2.0" ]
10
2020-02-07T18:57:44.000Z
2021-09-11T10:29:34.000Z
sysinv/sysinv/sysinv/sysinv/tests/api/test_controller_fs.py
albailey/config
40ebe63d7dfc6a0a03216ebe55ed3ec9cf5410b9
[ "Apache-2.0" ]
1
2021-01-14T12:01:55.000Z
2021-01-14T12:01:55.000Z
sysinv/sysinv/sysinv/sysinv/tests/api/test_controller_fs.py
albailey/config
40ebe63d7dfc6a0a03216ebe55ed3ec9cf5410b9
[ "Apache-2.0" ]
10
2020-10-13T08:37:46.000Z
2022-02-09T00:21:25.000Z
# # Copyright (c) 2020 Wind River Systems, Inc. # # SPDX-License-Identifier: Apache-2.0 # """ Tests for the API / controller-fs / methods. """ import mock from six.moves import http_client from sysinv.tests.api import base from sysinv.tests.db import base as dbbase from sysinv.tests.db import utils as dbutils class...
48.045942
97
0.494295
9f6e9dea24ab05d642090ae8b271beb082315aeb
1,180
py
Python
project/db/admin.py
samsonosiomwan/Devs-Prime-Api
7b43078bb1f848f17f85e8bb94292d1b776eee92
[ "MIT" ]
null
null
null
project/db/admin.py
samsonosiomwan/Devs-Prime-Api
7b43078bb1f848f17f85e8bb94292d1b776eee92
[ "MIT" ]
1
2021-10-21T22:13:56.000Z
2021-10-21T22:13:57.000Z
project/db/admin.py
Favourkass/Devsprime-api
2414a2541efeb76b6a7ebb26c2d05a3bfead153c
[ "MIT" ]
null
null
null
from django.contrib import admin from db.models import (user, learner, instructors, course, course_type, course_category, learner_course, blogs, comment, contact, reply, course_payment, order_status, orders, ...
35.757576
98
0.730508
2f84dd0b4b31fb42a3ad5089cf2a8399f16b34b9
5,859
py
Python
lib/twitter/utils.py
goztrk/django-htk
c56bf112e5d627780d2f4288460eae5cce80fa9e
[ "MIT" ]
206
2015-10-15T07:05:08.000Z
2021-02-19T11:48:36.000Z
lib/twitter/utils.py
goztrk/django-htk
c56bf112e5d627780d2f4288460eae5cce80fa9e
[ "MIT" ]
8
2017-10-16T10:18:31.000Z
2022-03-09T14:24:27.000Z
lib/twitter/utils.py
goztrk/django-htk
c56bf112e5d627780d2f4288460eae5cce80fa9e
[ "MIT" ]
61
2015-10-15T08:12:44.000Z
2022-03-10T12:25:06.000Z
# Python Standard Library Imports import time # Third Party (PyPI) Imports import rollbar import tweepy # HTK Imports from htk.utils import chunks def _get_auth_keys(): from django.conf import settings consumer_key=settings.SOCIAL_AUTH_TWITTER_KEY consumer_secret=settings.SOCIAL_AUTH_TWITTER_SECRET ...
30.675393
136
0.684246
32e9b88d53b19efa8b4443f5ae59a0167a05df30
1,098
py
Python
cgtop/layout_creator.py
goyalankit/cgtop
7ff137243cf32ff91a8da3823bd46396c38173ea
[ "MIT" ]
null
null
null
cgtop/layout_creator.py
goyalankit/cgtop
7ff137243cf32ff91a8da3823bd46396c38173ea
[ "MIT" ]
null
null
null
cgtop/layout_creator.py
goyalankit/cgtop
7ff137243cf32ff91a8da3823bd46396c38173ea
[ "MIT" ]
null
null
null
from constants import layout_grid from models import Layout from helpers import get_current_cgroups class LayoutCreator: """Creates the blueprint for containers on screen.""" def __init__(self, max_width, max_height): self.max_width = max_width self.max_height = max_height self.cgroup...
28.153846
64
0.570128
5296639de59d8d92c9e20b96eb8a7bbe01c1d828
490
py
Python
tests/test_text_spotting.py
omri374/openvino-textspotting-docker
1f63e3fbe8a40acd0c4fb12c184646b4f1aa985f
[ "Unlicense" ]
null
null
null
tests/test_text_spotting.py
omri374/openvino-textspotting-docker
1f63e3fbe8a40acd0c4fb12c184646b4f1aa985f
[ "Unlicense" ]
null
null
null
tests/test_text_spotting.py
omri374/openvino-textspotting-docker
1f63e3fbe8a40acd0c4fb12c184646b4f1aa985f
[ "Unlicense" ]
null
null
null
import base64 import os from pathlib import Path import imageio import numpy as np from text_spotting.text_spotting_model import TextSpottingModel def test_model_correct_text_results(): src_image = open(Path(os.path.dirname(__file__), "../data/out1.png").resolve(), "rb").read() model = TextSpottingModel() ...
20.416667
96
0.720408
5af78cbcd0bf72c70692586a8d8e4cfc48185eb7
3,764
py
Python
sqlitemodel/SQL.py
gravmatt/sqlitemodel
c4fcd5628520948054dad5b745071134f10889c2
[ "MIT", "Unlicense" ]
15
2016-03-26T20:35:45.000Z
2021-02-15T09:56:20.000Z
sqlitemodel/SQL.py
gravmatt/sqlitemodel
c4fcd5628520948054dad5b745071134f10889c2
[ "MIT", "Unlicense" ]
null
null
null
sqlitemodel/SQL.py
gravmatt/sqlitemodel
c4fcd5628520948054dad5b745071134f10889c2
[ "MIT", "Unlicense" ]
3
2016-03-27T01:22:11.000Z
2019-11-08T01:55:12.000Z
class SQL(object): '''SQL builder to generate SQL statements''' def __init__(self): self.__command = None self.__select = '' self.__update = '' self.__delete = '' self.__insert = '' self.__create = '' self.__columns = [] self.__values = [] ...
27.676471
141
0.513018
cbe144d9be17661cd58b8d2ec67a93223107250b
14,663
py
Python
local/dnsproxy.py
lbp0200/BeltRoad
5f60fa497a0e1e1c13c2d71db56b35b382296c1b
[ "MIT" ]
2
2019-07-15T01:08:12.000Z
2020-02-19T04:09:25.000Z
local/dnsproxy.py
lbp0200/BeltRoad
5f60fa497a0e1e1c13c2d71db56b35b382296c1b
[ "MIT" ]
null
null
null
local/dnsproxy.py
lbp0200/BeltRoad
5f60fa497a0e1e1c13c2d71db56b35b382296c1b
[ "MIT" ]
1
2019-07-14T05:39:25.000Z
2019-07-14T05:39:25.000Z
#!/usr/bin/env python # coding:utf-8 __version__ = '1.0' import sys import os import sysconfig sys.path += [os.path.abspath(os.path.join(__file__, '../packages.egg/%s' % x)) for x in ('noarch', sysconfig.get_platform().split('-')[0])] import gevent import gevent.server import gevent.timeout import gevent.monkey gev...
45.537267
753
0.598922
b35bfc105f51975efd30fea0b31ce06d50632e88
1,024
py
Python
eve_cli/exceptions.py
SakiiR/eve-cli
dafce2572cb6995f21cd938142a2e6132e62a6b7
[ "MIT" ]
null
null
null
eve_cli/exceptions.py
SakiiR/eve-cli
dafce2572cb6995f21cd938142a2e6132e62a6b7
[ "MIT" ]
null
null
null
eve_cli/exceptions.py
SakiiR/eve-cli
dafce2572cb6995f21cd938142a2e6132e62a6b7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- class EveException(Exception): """ Exception thrown when eve return an error """ def __init__(self, message, errors=[]): super(Exception, self).__init__(message) self.errors = errors class NotfoundException(EveException): pass class UnauthorizedException(EveE...
20.897959
86
0.673828
ed2006efcaa8e3c33537d14ba7e6a8015dd2772b
164
py
Python
python/12372.py
ThePeeps191/online-judge-solutions
1cc7d26233c7bd2da23b82ac0fd1d4132cf8d0ad
[ "MIT" ]
1
2022-03-14T22:53:44.000Z
2022-03-14T22:53:44.000Z
python/12372.py
ThePeeps191/online-judge-solutions
1cc7d26233c7bd2da23b82ac0fd1d4132cf8d0ad
[ "MIT" ]
null
null
null
python/12372.py
ThePeeps191/online-judge-solutions
1cc7d26233c7bd2da23b82ac0fd1d4132cf8d0ad
[ "MIT" ]
null
null
null
t = 1 for _ in range(int(input())): L, W, H = [int(a) for a in input().split()] print(f"Case {t}: {'good' if L <= 20 and W <= 20 and H <= 20 else 'bad'}") t += 1
32.8
75
0.518293
c68e8b1385712dd70037ac43b5d42d1fbc92f9aa
363
py
Python
docs_src/response_model/tutorial002.py
mbhavya/fastapi
1876ebc77949a9a254909ec61ea0c09365169ec2
[ "MIT" ]
1
2022-01-08T16:39:28.000Z
2022-01-08T16:39:28.000Z
docs_src/response_model/tutorial002.py
mbhavya/fastapi
1876ebc77949a9a254909ec61ea0c09365169ec2
[ "MIT" ]
1
2022-01-07T21:04:04.000Z
2022-01-07T21:04:04.000Z
docs_src/response_model/tutorial002.py
mbhavya/fastapi
1876ebc77949a9a254909ec61ea0c09365169ec2
[ "MIT" ]
null
null
null
from typing import Union from fastapi import FastAPI from pydantic import BaseModel, EmailStr app = FastAPI() class UserIn(BaseModel): username: str password: str email: EmailStr full_name: Union[str, None] = None # Don't do this in production! @app.post("/user/", response_model=UserIn) async def ...
18.15
42
0.721763
ae28528a8cb7076ca28fcc2578998dabcc984209
3,457
py
Python
bnpy/birthmove/zzzdeprecated/BProposals.py
jun2tong/bnp-anomaly
c7fa106b5bb29ed6688a3d91e3f302a0a130b896
[ "BSD-3-Clause" ]
184
2016-12-13T21:05:48.000Z
2022-02-28T11:47:23.000Z
bnpy/birthmove/zzzdeprecated/BProposals.py
jun2tong/bnp-anomaly
c7fa106b5bb29ed6688a3d91e3f302a0a130b896
[ "BSD-3-Clause" ]
37
2016-12-18T14:07:53.000Z
2022-03-13T10:58:14.000Z
bnpy/birthmove/zzzdeprecated/BProposals.py
jun2tong/bnp-anomaly
c7fa106b5bb29ed6688a3d91e3f302a0a130b896
[ "BSD-3-Clause" ]
50
2017-01-25T19:44:34.000Z
2022-03-15T10:22:01.000Z
import numpy as np def expandLP_truelabels( Data_t, curLP_t, tmpModel, curSS_nott, **Plan): ''' Create single new state for all target data. Returns ------- propLP_t : dict of local params, with K + 1 states xcurSS_nott : SuffStatBag first K states are equal to curSS_nott ...
31.715596
74
0.654903
9accae2d5df1a692a857842e5e5720b703adef9e
10,476
py
Python
data/realsr_preprocess/utils.py
pcwuyu/PaddleGAN
b4ff90f0c92c4d8dcaa8e25267151b82fc7aa268
[ "Apache-2.0" ]
6,852
2020-06-18T10:56:27.000Z
2022-03-31T10:17:47.000Z
data/realsr_preprocess/utils.py
pcwuyu/PaddleGAN
b4ff90f0c92c4d8dcaa8e25267151b82fc7aa268
[ "Apache-2.0" ]
283
2020-07-09T13:29:58.000Z
2022-03-23T02:50:25.000Z
data/realsr_preprocess/utils.py
pcwuyu/PaddleGAN
b4ff90f0c92c4d8dcaa8e25267151b82fc7aa268
[ "Apache-2.0" ]
973
2020-06-18T11:15:35.000Z
2022-03-30T10:50:16.000Z
import math import numpy as np from PIL import Image import paddle # set random seed for reproducibility np.random.seed(0) def is_image_file(filename): return any( filename.endswith(extension) for extension in ['.png', '.jpg', '.jpeg', '.PNG', '.JPG', '.JPEG']) def calculate_valid_crop_size(cr...
37.819495
100
0.598797
93b6d767bc7b21ababcc0c428e2cbe3bf26e10bb
1,216
py
Python
functions/create_channel/lambda_function.py
prayaganeethu/socless-slack
482b663f3c3cd1dc3e606dfa43123f720a668f86
[ "Apache-2.0" ]
null
null
null
functions/create_channel/lambda_function.py
prayaganeethu/socless-slack
482b663f3c3cd1dc3e606dfa43123f720a668f86
[ "Apache-2.0" ]
null
null
null
functions/create_channel/lambda_function.py
prayaganeethu/socless-slack
482b663f3c3cd1dc3e606dfa43123f720a668f86
[ "Apache-2.0" ]
1
2021-07-27T23:10:58.000Z
2021-07-27T23:10:58.000Z
from socless import * import os import slack def handle_state(channel_name, is_private): """ Create slack channel Args: channel_name (str): The name of channel to be created. is_private (boolean): if the channel private Token_Type: xoxp Note: ...
28.27907
124
0.592105
847abddd21e78e96b679d6da2c1f5f725fddf9c9
2,152
py
Python
setup.py
antoinelb/aequitas
5a912a3c1751b04c8688ad9e0c09ed87a6c48870
[ "MIT" ]
469
2018-04-24T23:11:45.000Z
2022-03-29T07:54:07.000Z
setup.py
antoinelb/aequitas
5a912a3c1751b04c8688ad9e0c09ed87a6c48870
[ "MIT" ]
62
2018-04-16T00:14:56.000Z
2021-11-12T10:35:01.000Z
setup.py
antoinelb/aequitas
5a912a3c1751b04c8688ad9e0c09ed87a6c48870
[ "MIT" ]
94
2018-05-21T16:13:57.000Z
2022-03-25T20:07:25.000Z
import re from pathlib import Path from setuptools import find_packages, setup ROOT_PATH = Path(__file__).parent LICENSE_PATH = ROOT_PATH / 'LICENSE' README_PATH = ROOT_PATH / 'README.md' REQUIREMENTS_PATH = ROOT_PATH / 'requirement' / 'main.txt' #with open(README_PATH, encoding='utf-8') as f: # long_descripti...
32.606061
273
0.691914
db235d42910d9de1386bfc75bb5653a24c575f22
283
py
Python
gcj/y2019/qual/A.py
mikhail-dvorkin/competitions
b414b33b75807bf75697cf372510626b551f2973
[ "Unlicense" ]
7
2017-06-05T22:15:53.000Z
2021-06-24T10:52:44.000Z
gcj/y2019/qual/A.py
mikhail-dvorkin/competitions
b414b33b75807bf75697cf372510626b551f2973
[ "Unlicense" ]
null
null
null
gcj/y2019/qual/A.py
mikhail-dvorkin/competitions
b414b33b75807bf75697cf372510626b551f2973
[ "Unlicense" ]
null
null
null
#!/usr/bin/python3 def solve(forbidden=4): n = int(input()) a = n - 1 b = 1 t = 1 while t <= a: if a // t % 10 == forbidden: a -= t b += t t *= 10 return '{} {}'.format(a, b) tests = int(input()) for t in range(tests): print('Case #{}: {}'.format(t + 1, solve()))
15.722222
45
0.498233
cfab4cbd443bfb7dbe626124cc2b07cdfb9fb249
2,410
py
Python
tests/common/test_run/ascend/triplet_loss_run.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
286
2020-06-23T06:40:44.000Z
2022-03-30T01:27:49.000Z
tests/common/test_run/ascend/triplet_loss_run.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
10
2020-07-31T03:26:59.000Z
2021-12-27T15:00:54.000Z
tests/common/test_run/ascend/triplet_loss_run.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
30
2020-07-17T01:04:14.000Z
2021-12-27T14:05:19.000Z
# Copyright 2019-2021 Huawei Technologies Co., Ltd # # 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 agre...
43.818182
112
0.670124
c1221db918506e586e8e75eff2a2daa9a8d4d5ad
40,279
py
Python
discogstagger/taggerutils.py
shunte88/discogs-tagger
dc592692b37ea42b7a7b8343afa7e937d718e5c9
[ "MIT" ]
null
null
null
discogstagger/taggerutils.py
shunte88/discogs-tagger
dc592692b37ea42b7a7b8343afa7e937d718e5c9
[ "MIT" ]
null
null
null
discogstagger/taggerutils.py
shunte88/discogs-tagger
dc592692b37ea42b7a7b8343afa7e937d718e5c9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from ext.mediafile import MediaFile from discogstagger.stringformatting import StringFormatting from discogstagger.album import Album, Disc, Track from discogstagger.discogsalbum import DiscogsAlbum from mako.lookup import TemplateLookup from mako.template import Template from unicodedata impor...
38.65547
102
0.562526
257bd525fd49ad4dc0e02ad1d0543a6d8badb505
7,700
py
Python
download_split_videos.py
bryant1410/vlog_action_reason
ac4e1ba437b9d544218bab48b1d788f54a62e794
[ "MIT" ]
null
null
null
download_split_videos.py
bryant1410/vlog_action_reason
ac4e1ba437b9d544218bab48b1d788f54a62e794
[ "MIT" ]
null
null
null
download_split_videos.py
bryant1410/vlog_action_reason
ac4e1ba437b9d544218bab48b1d788f54a62e794
[ "MIT" ]
null
null
null
import glob import json import os import subprocess from subprocess import PIPE import datetime import time import cv2 import shutil import numpy as np import pandas as pd import tqdm def split_video_by_time(video_id, time_start, time_end, verb, github_path): duration = time_end - time_start print(time_start)...
45.02924
138
0.617403
f6c9c99851d7dc4dd1ad13a02d56fe174ca831e9
16,426
py
Python
bin/attic/seqcap_align.py
milag6/phyluce
ff0d351eab2e38916f028fafdef5ea4fddcd2657
[ "BSD-3-Clause" ]
null
null
null
bin/attic/seqcap_align.py
milag6/phyluce
ff0d351eab2e38916f028fafdef5ea4fddcd2657
[ "BSD-3-Clause" ]
null
null
null
bin/attic/seqcap_align.py
milag6/phyluce
ff0d351eab2e38916f028fafdef5ea4fddcd2657
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 """ seqcap_align.py Created by Nicholas Crawford and Brant C. Faircloth Copyright (c) 2010 Nicholas Crawford and Brant C. Faircloth. All rights reserved. This script aligns fasta sequence groups on a per locus basis (where the locus name is in fasta header). It takes a fasta f...
39.772397
113
0.636856
5c60957fda1127526c8940116ecf5807188cda2e
62,414
py
Python
Packs/SplunkPy/Integrations/SplunkPy/SplunkPy_test.py
cyberluminar/content
45ef86b7fd2cc0382844086c4c323e2151d598f3
[ "MIT" ]
1
2022-03-15T13:16:24.000Z
2022-03-15T13:16:24.000Z
Packs/SplunkPy/Integrations/SplunkPy/SplunkPy_test.py
cyberluminar/content
45ef86b7fd2cc0382844086c4c323e2151d598f3
[ "MIT" ]
53
2022-03-08T14:50:03.000Z
2022-03-31T17:36:57.000Z
Packs/SplunkPy/Integrations/SplunkPy/SplunkPy_test.py
haldunerbay/content
7cdabbf87138eb9efb6b27c6a8e81ecc15d81379
[ "MIT" ]
null
null
null
from copy import deepcopy import pytest from splunklib.binding import AuthenticationError import SplunkPy as splunk import splunklib.client as client import demistomock as demisto from CommonServerPython import * from datetime import timedelta, datetime from collections import namedtuple RETURN_ERROR_TARGET = 'Splunk...
44.517832
128
0.630083
e33d270ed45489733873eeb659d8bf5c570d9960
8,281
py
Python
pkg/workloads/cortex/lib/type/predictor.py
zouyee/cortex
dce5ca19ac3f177ef90afe8095f6f6c4d9664e2f
[ "Apache-2.0" ]
1
2020-05-06T17:47:31.000Z
2020-05-06T17:47:31.000Z
pkg/workloads/cortex/lib/type/predictor.py
zouyee/cortex
dce5ca19ac3f177ef90afe8095f6f6c4d9664e2f
[ "Apache-2.0" ]
null
null
null
pkg/workloads/cortex/lib/type/predictor.py
zouyee/cortex
dce5ca19ac3f177ef90afe8095f6f6c4d9664e2f
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Cortex Labs, 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 wri...
36.480176
187
0.627943
c18efc3e76bd2161452048bc131866ffd840d037
5,893
py
Python
blender/arm/assets.py
MarketGarden/armory
75c6121deb21f0bddc60eeef52e21206db9f825f
[ "Zlib" ]
1
2021-03-17T05:51:45.000Z
2021-03-17T05:51:45.000Z
blender/arm/assets.py
MarketGarden/armory
75c6121deb21f0bddc60eeef52e21206db9f825f
[ "Zlib" ]
1
2019-12-13T08:16:20.000Z
2019-12-13T08:16:20.000Z
blender/arm/assets.py
MarketGarden/armory
75c6121deb21f0bddc60eeef52e21206db9f825f
[ "Zlib" ]
null
null
null
import shutil import os import stat import bpy import arm.utils assets = [] reserved_names = ['return.'] khafile_params = [] khafile_defs = [] khafile_defs_last = [] embedded_data = [] shaders = [] shaders_last = [] shaders_external = [] shader_datas = [] shader_passes = [] shader_passes_assets = {} shader_cons = {} ...
30.533679
115
0.682335
7ada9f4fd40db752ef8b64726efd503d363f6fb6
703
py
Python
app/core/models.py
johangenis/api_example
fe2c048411c93f162619aa8aed4ea26e11345692
[ "MIT" ]
null
null
null
app/core/models.py
johangenis/api_example
fe2c048411c93f162619aa8aed4ea26e11345692
[ "MIT" ]
null
null
null
app/core/models.py
johangenis/api_example
fe2c048411c93f162619aa8aed4ea26e11345692
[ "MIT" ]
null
null
null
from django.db import models class Beer(models.Model): """Beers rated in the app.""" name = models.CharField(max_length=255, blank=False, unique=True) ibu = models.IntegerField(default=55) calories = models.FloatField(max_length=5, default=0) abv = models.FloatField(max_length=3, default=0) s...
37
78
0.715505
4f3c3cabceab4a00f14096e45b5ec178ffc8f9b1
7,245
py
Python
src/dreader.py
huazhengwang/AdaMRC
267b45ebfd1f1802987b38e99bdb1d1938f469c4
[ "BSD-3-Clause" ]
7
2020-02-19T21:26:45.000Z
2021-07-14T09:44:50.000Z
src/dreader.py
huazhengwang/AdaMRC
267b45ebfd1f1802987b38e99bdb1d1938f469c4
[ "BSD-3-Clause" ]
3
2021-01-09T16:13:32.000Z
2021-05-26T08:31:17.000Z
src/dreader.py
huazhengwang/AdaMRC
267b45ebfd1f1802987b38e99bdb1d1938f469c4
[ "BSD-3-Clause" ]
2
2020-03-09T08:24:29.000Z
2020-05-21T03:10:54.000Z
''' SAN model Created October, 2017 Author: xiaodl@microsoft.com ''' import torch import math import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable from .recurrent import OneLayerBRNN, ContextualEmbed from .dropout_wrapper import DropoutWrapper from .encoder import LexiconEncoder fr...
51.75
174
0.712077
efba6eac9a1aea95bf2bef2b71640012c461b76d
11,664
py
Python
test/onnx-model-zoo/CheckONNXModelZoo.py
mmoldawsky/onnx-mlir
cb0a12147c38800b04e1036fe835f1b5376e1a12
[ "Apache-2.0" ]
null
null
null
test/onnx-model-zoo/CheckONNXModelZoo.py
mmoldawsky/onnx-mlir
cb0a12147c38800b04e1036fe835f1b5376e1a12
[ "Apache-2.0" ]
1
2020-05-19T18:21:52.000Z
2020-05-19T18:21:52.000Z
test/onnx-model-zoo/CheckONNXModelZoo.py
mmoldawsky/onnx-mlir
cb0a12147c38800b04e1036fe835f1b5376e1a12
[ "Apache-2.0" ]
null
null
null
# SPDX-License-Identifier: Apache-2.0 ##################### CheckONNXModelZoo.py ##################################### # # Copyright 2022 The IBM Research Authors. # ################################################################################ # # This script is used to check models in https://github.com/onnx/model...
36.111455
138
0.587363
7a33485b261cc2d48328e27016e59409ede49d22
9,312
py
Python
scripts/hatebase_api/hatebase.py
ysenarath/hate-detection-icsc-2020
9bd802209c7df982d63179e53628a89b14915446
[ "MIT" ]
2
2020-06-25T05:13:22.000Z
2020-06-25T05:54:10.000Z
scripts/hatebase_api/hatebase.py
ysenarath/hate-detection-icsc-2020
9bd802209c7df982d63179e53628a89b14915446
[ "MIT" ]
null
null
null
scripts/hatebase_api/hatebase.py
ysenarath/hate-detection-icsc-2020
9bd802209c7df982d63179e53628a89b14915446
[ "MIT" ]
null
null
null
import json import os from os.path import join from typing import Text, Iterable import numpy as np import pandas as pd from hatebase import HatebaseAPI from sklearn.base import TransformerMixin, BaseEstimator from sklearn.feature_extraction.text import CountVectorizer from sklearn.preprocessing import LabelBinarizer ...
35.406844
115
0.626396
32265e65ed52d8955a0683b908abe9faddd6ca41
3,589
py
Python
lang/py/test/test_tether_task.py
gth828r/avro-python3
c8379728b4a762d99262e526fb53f631076fb143
[ "Apache-2.0" ]
5,079
2015-01-01T03:39:46.000Z
2022-03-31T07:38:22.000Z
lang/py/test/test_tether_task.py
gth828r/avro-python3
c8379728b4a762d99262e526fb53f631076fb143
[ "Apache-2.0" ]
1,623
2015-01-01T08:06:24.000Z
2022-03-30T19:48:52.000Z
lang/py/test/test_tether_task.py
gth828r/avro-python3
c8379728b4a762d99262e526fb53f631076fb143
[ "Apache-2.0" ]
2,033
2015-01-04T07:18:02.000Z
2022-03-28T19:55:47.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
30.939655
111
0.687378
dc6411e96a37c17c30490fb93b9466d5bc0d7489
434
py
Python
scorecard/migrations/0004_auto_20201216_1653.py
Code4SA/municipal-data-api
8b213b702245bc2ff1bab4bd160c4cd3b604d54f
[ "MIT" ]
19
2018-01-09T10:54:15.000Z
2022-01-25T13:10:55.000Z
scorecard/migrations/0004_auto_20201216_1653.py
Code4SA/municipal-data-api
8b213b702245bc2ff1bab4bd160c4cd3b604d54f
[ "MIT" ]
29
2018-01-12T12:12:38.000Z
2022-01-31T15:30:36.000Z
scorecard/migrations/0004_auto_20201216_1653.py
Code4SA/municipal-data-api
8b213b702245bc2ff1bab4bd160c4cd3b604d54f
[ "MIT" ]
13
2018-02-11T02:12:57.000Z
2021-11-22T11:03:22.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.29 on 2020-12-16 14:53 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('scorecard', '0003_geography_population'), ] operations = [ migrations.AlterModelOp...
21.7
59
0.635945
ee37e43e86a0a076ea8131c929c1f8d37c0b1dbc
12,085
py
Python
Fisher_Iris_Script.py
eimearbutler7/Sem-1-Python-Project
42306ac2bef920050b6a089e7c69c652c780b6dd
[ "Apache-2.0" ]
null
null
null
Fisher_Iris_Script.py
eimearbutler7/Sem-1-Python-Project
42306ac2bef920050b6a089e7c69c652c780b6dd
[ "Apache-2.0" ]
null
null
null
Fisher_Iris_Script.py
eimearbutler7/Sem-1-Python-Project
42306ac2bef920050b6a089e7c69c652c780b6dd
[ "Apache-2.0" ]
null
null
null
import statistics #ensures Python has all the capabilities from the Python Standard Library to identify and execute statistic functions e.g. statistics.mean() import csv #ensures python has all the capabiliites from the Python Standard Library to open and work with csv files import matplotlib.pyplot as plt #ensu...
41.816609
247
0.681092
becc19a9977e2a4d05ed227f5daa776840eb9ecf
1,542
py
Python
libs/configs/kl_cfgs.py
Artcs1/PROBIOU
86ba88b470452a66734257a0abb5e51ec7680df8
[ "Apache-2.0" ]
1
2021-11-19T14:41:35.000Z
2021-11-19T14:41:35.000Z
libs/configs/kl_cfgs.py
Artcs1/PROBIOU
86ba88b470452a66734257a0abb5e51ec7680df8
[ "Apache-2.0" ]
null
null
null
libs/configs/kl_cfgs.py
Artcs1/PROBIOU
86ba88b470452a66734257a0abb5e51ec7680df8
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import division, print_function, absolute_import import numpy as np from libs.configs._base_.models.retinanet_r50_fpn import * from libs.configs._base_.datasets.dota_detection import * from libs.configs._base_.schedules.schedule_1x import * from dataloader.pretrained_weights.pr...
25.7
96
0.763294
6bc1edf75173fd1fbdf8babec43626a9aa7958f8
1,221
py
Python
blogs/migrations/0001_initial.py
indoriyasboyz/Multipurpose_website
ffabe2316b070c4848b6b1d69aba2358abfca460
[ "MIT" ]
null
null
null
blogs/migrations/0001_initial.py
indoriyasboyz/Multipurpose_website
ffabe2316b070c4848b6b1d69aba2358abfca460
[ "MIT" ]
null
null
null
blogs/migrations/0001_initial.py
indoriyasboyz/Multipurpose_website
ffabe2316b070c4848b6b1d69aba2358abfca460
[ "MIT" ]
null
null
null
# Generated by Django 3.0.4 on 2020-03-24 10:03 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Blogtags', fields=[ ...
33.916667
121
0.566749
ecd1a39d0441aacca5c37b41c5545b2fa192c04a
509
py
Python
core/group.py
yeti-threatintel/yeti
9e8b76cd393f149c4990ead003902eac50c1766d
[ "Apache-2.0" ]
1,250
2017-03-12T16:20:47.000Z
2022-03-29T02:12:11.000Z
core/group.py
yeti-threatintel/yeti
9e8b76cd393f149c4990ead003902eac50c1766d
[ "Apache-2.0" ]
540
2017-03-20T16:45:35.000Z
2022-03-22T16:55:02.000Z
core/group.py
yeti-threatintel/yeti
9e8b76cd393f149c4990ead003902eac50c1766d
[ "Apache-2.0" ]
293
2017-03-20T13:59:07.000Z
2022-03-28T16:00:10.000Z
from __future__ import unicode_literals from mongoengine import BooleanField, StringField, ListField, ReferenceField, CASCADE from core.database import YetiDocument from core.user import User class Group(YetiDocument): enabled = BooleanField(required=True, default=True) groupname = StringField(required=True...
31.8125
85
0.795678
5abe10fab17596c1721c43eb964c3daea2242dea
2,099
py
Python
clioude-server/orm.py
ccw630/CliOuDE
743540c7c14d7f95455219efe8be01817e96f96b
[ "MIT" ]
3
2020-07-22T02:17:23.000Z
2021-03-10T12:48:46.000Z
orm.py
ccw630/CLIOUDE-Server
4dc129e5bc57caead2df0107f02671d74c7808f1
[ "MIT" ]
5
2020-07-24T07:39:43.000Z
2022-02-27T08:32:49.000Z
orm.py
ccw630/CLIOUDE-Server
4dc129e5bc57caead2df0107f02671d74c7808f1
[ "MIT" ]
null
null
null
from sqlalchemy import create_engine, Column, Text, Integer, Float, DateTime, func from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionmaker from datetime import datetime, timedelta import os engine = create_engine(os.getenv('DB_URL')) Base = declarative_base() session = session...
33.854839
130
0.655074