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
db6290b8e8faaa6a4872ab53de8a80eed6f7d72f
6,057
py
Python
nettests/launch_nodes.py
harrywong/evt
95985384619e0f5ff4021e8838d421ac4b4b946d
[ "BSD-3-Clause" ]
1
2019-04-30T13:28:42.000Z
2019-04-30T13:28:42.000Z
nettests/launch_nodes.py
harrywong/evt
95985384619e0f5ff4021e8838d421ac4b4b946d
[ "BSD-3-Clause" ]
null
null
null
nettests/launch_nodes.py
harrywong/evt
95985384619e0f5ff4021e8838d421ac4b4b946d
[ "BSD-3-Clause" ]
null
null
null
import json import os import sys import time import click import docker class command(): """docstring for command.""" def __init__(self, cmd): self.content = cmd def add_option(self, option): self.content += ' ' self.content += option def get_arguments(self): return...
36.487952
118
0.490507
d2e082acab7754c5d1f35daccedb3f8c04f6a7b3
5,693
py
Python
scripts/main.py
harrivle/Mirai
ea2d4839f1f8b9f881798b819b2192ce2795bd5d
[ "MIT" ]
37
2021-01-28T06:00:34.000Z
2022-03-29T21:14:12.000Z
scripts/main.py
NkwamPhilip/Mirai
70413de690da36c5878e2e6006711476e166bb1d
[ "MIT" ]
null
null
null
scripts/main.py
NkwamPhilip/Mirai
70413de690da36c5878e2e6006711476e166bb1d
[ "MIT" ]
14
2021-02-02T09:42:18.000Z
2022-03-23T00:36:41.000Z
import pickle from os.path import dirname, realpath import sys import git sys.path.append(dirname(dirname(realpath(__file__)))) import torch import onconet.datasets.factory as dataset_factory import onconet.models.factory as model_factory from onconet.learn import train import onconet.transformers.factory as transforme...
39.262069
139
0.64711
5fd697d0a8702558d62ea13300b2ef20b5173732
1,126
py
Python
app/admin/forms.py
chenke91/ihaveablog
64000723589d3f5a074bd09f045cb5d6c3daf6dd
[ "MIT" ]
null
null
null
app/admin/forms.py
chenke91/ihaveablog
64000723589d3f5a074bd09f045cb5d6c3daf6dd
[ "MIT" ]
null
null
null
app/admin/forms.py
chenke91/ihaveablog
64000723589d3f5a074bd09f045cb5d6c3daf6dd
[ "MIT" ]
null
null
null
from flask.ext.wtf import Form from wtforms import StringField, SubmitField, TextAreaField, SelectField, FileField, SubmitField from wtforms.validators import Required, Length, Email from app import db from app.models import Category def get_category(): categories = db.session.query(Category.id, Category.name).all...
40.214286
96
0.71048
310beb7556e620e2e20fa143acb610fb6b182456
3,316
py
Python
app/app/settings.py
Moudreaux/recipe-app-api
e70489b9afa0129b8d2560961ca4aea4f14bc11f
[ "MIT" ]
null
null
null
app/app/settings.py
Moudreaux/recipe-app-api
e70489b9afa0129b8d2560961ca4aea4f14bc11f
[ "MIT" ]
null
null
null
app/app/settings.py
Moudreaux/recipe-app-api
e70489b9afa0129b8d2560961ca4aea4f14bc11f
[ "MIT" ]
null
null
null
""" Django settings for app project. Generated by 'django-admin startproject' using Django 2.1.11. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/settings/ """ import os # Bu...
25.121212
91
0.686671
917729824d43f7037894f31d16d4b0fbcbb01d54
1,505
py
Python
cumulusci/tasks/github/tag.py
jdominiczak/CumulusCI
f706c1906f9eb6d604c571a9dd16f5d0ed38599f
[ "BSD-3-Clause" ]
1
2020-12-04T10:29:31.000Z
2020-12-04T10:29:31.000Z
cumulusci/tasks/github/tag.py
jdominiczak/CumulusCI
f706c1906f9eb6d604c571a9dd16f5d0ed38599f
[ "BSD-3-Clause" ]
157
2021-07-07T19:06:58.000Z
2022-03-30T19:08:27.000Z
cumulusci/tasks/github/tag.py
jdominiczak/CumulusCI
f706c1906f9eb6d604c571a9dd16f5d0ed38599f
[ "BSD-3-Clause" ]
null
null
null
from datetime import datetime import github3.exceptions from cumulusci.core.exceptions import GithubException from cumulusci.tasks.github.base import BaseGithubTask class CloneTag(BaseGithubTask): task_options = { "src_tag": { "description": "The source tag to clone. Ex: beta/1.0-Beta_2", ...
30.1
92
0.546844
8a90634e34c67ada1ddddb90b45b4a77e096b0f2
1,971
py
Python
bin/install.py
JulienPalard/cloudmesh
1759b88daef3a13917492d028fdabe08f03ca996
[ "Apache-2.0" ]
null
null
null
bin/install.py
JulienPalard/cloudmesh
1759b88daef3a13917492d028fdabe08f03ca996
[ "Apache-2.0" ]
4
2021-06-08T20:20:08.000Z
2022-03-11T23:30:22.000Z
bin/install.py
JulienPalard/cloudmesh
1759b88daef3a13917492d028fdabe08f03ca996
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python """ Usage: cm-install -h | --help cm-install --version cm-install create OS cm-install list cm-install veewee Arguments: OS The operating system. [default: ubuntu] Options: Description: start the install shell with cm-install cm-install> vagrant create ...
20.319588
85
0.616438
0a524cb2046fc91eddfbf76c9538b210b0c97002
242
py
Python
manage.py
Gomax-07/news07
063124b818543d26cb6e1e7fddf7bf81d9c59057
[ "MIT" ]
null
null
null
manage.py
Gomax-07/news07
063124b818543d26cb6e1e7fddf7bf81d9c59057
[ "MIT" ]
null
null
null
manage.py
Gomax-07/news07
063124b818543d26cb6e1e7fddf7bf81d9c59057
[ "MIT" ]
null
null
null
from app import create_app from flask_script import Manager,Server #creating app instance app = create_app('development') manager = Manager(app) manager.add_command('server', Server) if __name__ == '__main__': manager.run()
17.285714
39
0.727273
fc3a7b45bd26c74e52e47af4a918eaca1f512c2d
1,268
py
Python
populationsim/tests/test_tracing.py
psrc/populationsim
91615025726175a99c94963188ac38c045570d26
[ "BSD-3-Clause" ]
1
2019-06-12T21:35:39.000Z
2019-06-12T21:35:39.000Z
populationsim/tests/test_tracing.py
BayAreaMetro/populationsim
8307c5a53a4d84994a224058a201b8c4f42543b8
[ "BSD-3-Clause" ]
4
2018-11-06T20:54:46.000Z
2018-11-06T21:01:52.000Z
populationsim/tests/test_tracing.py
BayAreaMetro/populationsim
8307c5a53a4d84994a224058a201b8c4f42543b8
[ "BSD-3-Clause" ]
null
null
null
# ActivitySim # See full license in LICENSE.txt. import os.path import logging import pytest import orca import pandas as pd import activitysim.core.tracing as tracing def add_canonical_dirs(): configs_dir = os.path.join(os.path.dirname(__file__), 'configs') orca.add_injectable("configs_dir", configs_dir...
22.642857
82
0.712145
40e8c588c248af2891aca527b6ac7af2360a9834
4,174
py
Python
Apache-Beam-Dataflow-Streaming-Pipeline/Dataflow-Streaming-Pubsub-to-BQTable.py
vibwipro/GCP-Python
f97741efe0b0a96d2c69279d3cf6c404f4f0ca20
[ "MIT" ]
null
null
null
Apache-Beam-Dataflow-Streaming-Pipeline/Dataflow-Streaming-Pubsub-to-BQTable.py
vibwipro/GCP-Python
f97741efe0b0a96d2c69279d3cf6c404f4f0ca20
[ "MIT" ]
null
null
null
Apache-Beam-Dataflow-Streaming-Pipeline/Dataflow-Streaming-Pubsub-to-BQTable.py
vibwipro/GCP-Python
f97741efe0b0a96d2c69279d3cf6c404f4f0ca20
[ "MIT" ]
null
null
null
#------------Import Lib-----------------------# import apache_beam as beam from apache_beam import window from apache_beam.options.pipeline_options import PipelineOptions, StandardOptions import os, sys, time import argparse import logging from apache_beam.options.pipeline_options import SetupOptions from dat...
45.369565
500
0.602779
bc56d7e072ed6fb255c5d1193466c747235867fc
3,093
py
Python
isaactest/tests/numeric_q_incorrect_value.py
jsharkey13/isaac-selenium-testing
fc57ec57179cf7d9f0bb5ef46d759792b2af3bc8
[ "MIT" ]
null
null
null
isaactest/tests/numeric_q_incorrect_value.py
jsharkey13/isaac-selenium-testing
fc57ec57179cf7d9f0bb5ef46d759792b2af3bc8
[ "MIT" ]
1
2016-01-15T11:28:06.000Z
2016-01-25T17:09:18.000Z
isaactest/tests/numeric_q_incorrect_value.py
jsharkey13/isaac-selenium-testing
fc57ec57179cf7d9f0bb5ef46d759792b2af3bc8
[ "MIT" ]
1
2019-05-14T16:53:49.000Z
2019-05-14T16:53:49.000Z
import time from ..utils.log import log, INFO, ERROR, PASS from ..utils.isaac import answer_numeric_q, open_accordion_section from ..utils.i_selenium import assert_tab, image_div from ..utils.i_selenium import wait_for_xpath_element from ..tests import TestWithDependency from selenium.common.exceptions import TimeoutEx...
51.55
143
0.705787
42d86b89d7b46dbaaeeaa6ec08dbcfca55d674cf
755
py
Python
np/reference/ch2code/record.py
focusunsink/study_python
322326642db54df8725793d70a95d21ac40b6507
[ "MIT" ]
null
null
null
np/reference/ch2code/record.py
focusunsink/study_python
322326642db54df8725793d70a95d21ac40b6507
[ "MIT" ]
null
null
null
np/reference/ch2code/record.py
focusunsink/study_python
322326642db54df8725793d70a95d21ac40b6507
[ "MIT" ]
null
null
null
import numpy as np # Chapter 2 Beginning with NumPy fundamentals # # Demonstrates the NumPy record data type. # # Run from the commandline with # # python record.py print "In: t = dtype([('name', numpy.str_, 40), ('numitems', numpy.int32), ('price', numpy.float32)])" t = np.dtype([('name', np.str_, 40), ('numitems',...
26.964286
102
0.617219
7844dc96f8ba2da02aa3c07830801e0725f49dea
599
py
Python
leonardo_module_gdpr/__init__.py
dresl/leonardo-module-gdpr
8b5c74d5709dd96d7b45e2f91f90166237cc503b
[ "BSD-3-Clause" ]
1
2019-01-27T23:42:06.000Z
2019-01-27T23:42:06.000Z
leonardo_module_gdpr/__init__.py
dresl/leonardo-module-gdpr
8b5c74d5709dd96d7b45e2f91f90166237cc503b
[ "BSD-3-Clause" ]
null
null
null
leonardo_module_gdpr/__init__.py
dresl/leonardo-module-gdpr
8b5c74d5709dd96d7b45e2f91f90166237cc503b
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from django.apps import AppConfig from django.utils.translation import ugettext_lazy as _ default_app_config = 'leonardo_module_gdpr.Config' class Default(object): optgroup = 'GDPR' apps = [ 'leonardo_module_gdpr' ] widgets = [ 'leonardo_module_gdpr.widget.g...
17.617647
60
0.657763
b2b5e41fe792700a9109d11518495711c718ee88
5,131
py
Python
src/infi/storagemodel/vendor/infinidat/predicates/__init__.py
Infinidat/infi.storagemodel
81740970b5b1c0a691472f2e360d3a6e5c4d0875
[ "Python-2.0", "BSD-3-Clause" ]
6
2015-07-29T11:22:36.000Z
2019-01-22T19:07:42.000Z
src/infi/storagemodel/vendor/infinidat/predicates/__init__.py
Infinidat/infi.storagemodel
81740970b5b1c0a691472f2e360d3a6e5c4d0875
[ "Python-2.0", "BSD-3-Clause" ]
null
null
null
src/infi/storagemodel/vendor/infinidat/predicates/__init__.py
Infinidat/infi.storagemodel
81740970b5b1c0a691472f2e360d3a6e5c4d0875
[ "Python-2.0", "BSD-3-Clause" ]
3
2015-01-05T13:55:38.000Z
2018-07-07T05:05:36.000Z
from infi.storagemodel.predicates import FiberChannelMappingExists, FiberChannelMappingNotExists from logging import getLogger log = getLogger(__name__) def compare_device_system_and_id(device, system_serial, volume_id): ''' checks if given device is from a specific volume from a specific system ''' from inf...
50.303922
147
0.714286
677b7b89f53764838bbfe32f803526c0d0b7009f
2,225
py
Python
test/visuals/runner.py
ruohoruotsi/coldtype
13993e5a4fa3f99c6800fed2496bd5a374e4f53f
[ "Apache-2.0" ]
null
null
null
test/visuals/runner.py
ruohoruotsi/coldtype
13993e5a4fa3f99c6800fed2496bd5a374e4f53f
[ "Apache-2.0" ]
null
null
null
test/visuals/runner.py
ruohoruotsi/coldtype
13993e5a4fa3f99c6800fed2496bd5a374e4f53f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import os from coldtype import * from coldtype.renderer import Renderer import glfw all_tests = [] sources = list(Path("test/visuals").glob("test_*.py")) sources.extend(list(Path("test/visuals").glob("test_*.md"))) for p in sources: if not p.name.startswith("_"): all_tests.append(p...
29.276316
88
0.576629
bc0fc170ae765be681aadab73297915b8fbe2bc4
3,799
py
Python
cloudvolume/provenance.py
SridharJagannathan/cloud-volume
ae4e5d8f245aacf451404e91f75e6da5182ac090
[ "BSD-3-Clause" ]
94
2017-09-03T16:18:34.000Z
2022-03-31T14:49:14.000Z
cloudvolume/provenance.py
SridharJagannathan/cloud-volume
ae4e5d8f245aacf451404e91f75e6da5182ac090
[ "BSD-3-Clause" ]
378
2017-08-30T17:46:45.000Z
2022-03-31T00:15:04.000Z
cloudvolume/provenance.py
SridharJagannathan/cloud-volume
ae4e5d8f245aacf451404e91f75e6da5182ac090
[ "BSD-3-Clause" ]
40
2018-03-01T09:12:02.000Z
2022-02-08T17:57:37.000Z
import python_jsonschema_objects as pjs import json import json5 __all__ = [ 'DatasetProvenance', 'DataLayerProvenance' ] dataset_provenance_schema = { "$schema": "http://json-schema.org/draft-04/schema#", "title": "Dataset Provenance", "description": "Represents a dataset and its derived data layers.", "requ...
24.044304
125
0.59621
f14ab93ef7821278c1d5db3574d58d8956117da7
1,015
py
Python
usuarios/migrations/0016_auto_20180201_2122.py
WFPColombia/nutrifami-users
9441aada0f185442f9b14311f78111eb8d377463
[ "MIT" ]
null
null
null
usuarios/migrations/0016_auto_20180201_2122.py
WFPColombia/nutrifami-users
9441aada0f185442f9b14311f78111eb8d377463
[ "MIT" ]
null
null
null
usuarios/migrations/0016_auto_20180201_2122.py
WFPColombia/nutrifami-users
9441aada0f185442f9b14311f78111eb8d377463
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.8 on 2018-02-01 21:22 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('usuarios', '0015_auto_20180123_2350'), ] operations = [ migrations.AlterMod...
27.432432
65
0.576355
38501c0d0171c698b38f44caf2693de7e572b121
25,820
py
Python
.venv/lib/python3.8/site-packages/yapf/yapflib/unwrapped_line.py
eo1989/VectorBTanalysis
bea3deaf2ee3fc114b308146f2af3e4f35f70197
[ "MIT" ]
5
2018-07-02T19:10:39.000Z
2021-09-27T04:05:10.000Z
.venv/lib/python3.8/site-packages/yapf/yapflib/unwrapped_line.py
eo1989/VectorBTanalysis
bea3deaf2ee3fc114b308146f2af3e4f35f70197
[ "MIT" ]
3
2018-06-10T06:28:06.000Z
2021-09-24T13:54:19.000Z
.venv/lib/python3.8/site-packages/yapf/yapflib/unwrapped_line.py
eo1989/VectorBTanalysis
bea3deaf2ee3fc114b308146f2af3e4f35f70197
[ "MIT" ]
1
2021-12-25T16:03:43.000Z
2021-12-25T16:03:43.000Z
# Copyright 2015 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
38.308605
80
0.686406
002fefcc9bfa81253af761d811a8f270e64827ca
449
py
Python
setup.py
Chive/divio-django-jet
61526a4146f2535a7c71dd848be398d4755c08f2
[ "BSD-2-Clause" ]
null
null
null
setup.py
Chive/divio-django-jet
61526a4146f2535a7c71dd848be398d4755c08f2
[ "BSD-2-Clause" ]
null
null
null
setup.py
Chive/divio-django-jet
61526a4146f2535a7c71dd848be398d4755c08f2
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from setuptools import setup, find_packages from divio_django_jet import __version__ setup( name='divio-django-jet', version=__version__, description=open('README.rst').read(), author='Divio AG', author_email='info@divio.com', packages=find_packages(), platforms=['O...
22.45
43
0.665924
c0b33e9a04a493e27f702d90145a7ac134b36c85
5,755
py
Python
autogoal/contrib/__init__.py
gmijenes/autogoal
916b0eb4d1aa1a222d0ff1b0f6f202bf56458ef5
[ "MIT" ]
null
null
null
autogoal/contrib/__init__.py
gmijenes/autogoal
916b0eb4d1aa1a222d0ff1b0f6f202bf56458ef5
[ "MIT" ]
null
null
null
autogoal/contrib/__init__.py
gmijenes/autogoal
916b0eb4d1aa1a222d0ff1b0f6f202bf56458ef5
[ "MIT" ]
null
null
null
def find_classes(include=None, exclude=None, modules=None, input=None, output=None): import inspect import re result = [] if include: include = f".*({include}).*" else: include = r".*" if exclude: exclude = f".*({exclude}).*" if input: input...
23.205645
87
0.56907
fbe047c31eac8f1fff8528a952f537cc6a2c89b6
3,473
py
Python
letterparser/zip_lib.py
elifesciences/decision-letter-parser
afe2b72a7d8697e5e8cfec96c531d7bef843908d
[ "MIT" ]
null
null
null
letterparser/zip_lib.py
elifesciences/decision-letter-parser
afe2b72a7d8697e5e8cfec96c531d7bef843908d
[ "MIT" ]
52
2018-11-29T01:45:48.000Z
2022-02-22T18:05:22.000Z
letterparser/zip_lib.py
elifesciences/decision-letter-parser
afe2b72a7d8697e5e8cfec96c531d7bef843908d
[ "MIT" ]
null
null
null
# coding=utf-8 import zipfile import os import shutil from letterparser import utils def profile_zip(file_name): """open the zip and get zip file info based on the filename""" zip_docx_info = None zip_asset_infos = [] with zipfile.ZipFile(file_name, "r") as open_zipfile: for zipfile_info in o...
40.383721
84
0.691621
82909e1be62adc8dea3ac17adaabdfeba5896eca
592
py
Python
LAB1/roof14.py
Anastasia-Paliy/VisualGeometry
3c7c08f126e7f64793402f0e3e8f07f9bb653505
[ "MIT" ]
null
null
null
LAB1/roof14.py
Anastasia-Paliy/VisualGeometry
3c7c08f126e7f64793402f0e3e8f07f9bb653505
[ "MIT" ]
null
null
null
LAB1/roof14.py
Anastasia-Paliy/VisualGeometry
3c7c08f126e7f64793402f0e3e8f07f9bb653505
[ "MIT" ]
null
null
null
import random from PIL import Image, ImageDraw image = Image.open("roof.jpg") draw = ImageDraw.Draw(image) width = image.size[0] height = image.size[1] pix = image.load() for x in range(0, width, 100): for y in range(height // 4, 3 * height // 4): for i in range(50): d...
25.73913
61
0.481419
51f90c8a57c06911ec23a565c4a9752a1182a7e1
7,378
py
Python
src/database.py
rwarnking/image-sorter
821ec2b89126ea95d6d801a995d05dfa2205918d
[ "MIT" ]
null
null
null
src/database.py
rwarnking/image-sorter
821ec2b89126ea95d6d801a995d05dfa2205918d
[ "MIT" ]
21
2021-03-22T15:14:17.000Z
2021-03-31T15:32:34.000Z
src/database.py
rwarnking/image-sorter
821ec2b89126ea95d6d801a995d05dfa2205918d
[ "MIT" ]
null
null
null
import json import sqlite3 class Database: def __init__(self, path="database.db"): self.conn = sqlite3.connect(path) self.conn.execute( "CREATE TABLE IF NOT EXISTS events (title STRING, s_year INT, s_month INT, \ s_day INT, e_year INT, e_month INT, e_day INTT)" ) ...
32.646018
99
0.495798
4dad85d74272c16d4adbb3ebd62f0de6bf94a5bd
3,222
py
Python
models/modules/sparse_ops.py
yanivbl6/convNet.pytorch
a75807611991d867e752bf25eaf8c311a416d8b5
[ "MIT" ]
null
null
null
models/modules/sparse_ops.py
yanivbl6/convNet.pytorch
a75807611991d867e752bf25eaf8c311a416d8b5
[ "MIT" ]
null
null
null
models/modules/sparse_ops.py
yanivbl6/convNet.pytorch
a75807611991d867e752bf25eaf8c311a416d8b5
[ "MIT" ]
null
null
null
import torch from torch import autograd, nn import torch.nn.functional as F from itertools import repeat from torch._six import container_abcs class Sparse(autograd.Function): """" Prune the unimprotant weight for the forwards phase but pass the gradient to dense weight using SR-STE in the backwards phase""" ...
30.11215
159
0.639665
8c502a99fad3b1cfd8a5f6a18484b8dff0f03826
1,559
py
Python
src/features/build_features.py
jindongyang94/sample_luigipipeline
397afd6debc546ea4c9760b475aca4806927e091
[ "FTL" ]
null
null
null
src/features/build_features.py
jindongyang94/sample_luigipipeline
397afd6debc546ea4c9760b475aca4806927e091
[ "FTL" ]
null
null
null
src/features/build_features.py
jindongyang94/sample_luigipipeline
397afd6debc546ea4c9760b475aca4806927e091
[ "FTL" ]
null
null
null
""" author: atreya desc: """ import datetime import pandas class FeatureBuilder(): def __init__(self, dataframe,training=True): self.dataframe = dataframe self.continuous_features = ["CompetitionDistance","Date"] self.categorical_features = ["StoreType"] self.target = ["Sales"] ...
33.170213
107
0.662604
5abaf9161f0664aff104b33c3aed04faf4806040
1,280
py
Python
jrnl/plugins/json_exporter.py
jprof/jrnl
04811405dc0007dcf1184b885b89bc5c965ddaac
[ "MIT" ]
2
2017-12-08T19:06:55.000Z
2017-12-09T00:45:20.000Z
jrnl/plugins/json_exporter.py
jprof/jrnl
04811405dc0007dcf1184b885b89bc5c965ddaac
[ "MIT" ]
2
2017-12-24T01:37:08.000Z
2021-05-08T02:23:30.000Z
jrnl/plugins/json_exporter.py
jprof/jrnl
04811405dc0007dcf1184b885b89bc5c965ddaac
[ "MIT" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 from __future__ import absolute_import, unicode_literals from .text_exporter import TextExporter import json from .util import get_tags_count class JSONExporter(TextExporter): """This Exporter can convert entries and journals into json.""" names = ["json"] extensio...
30.47619
70
0.610156
27ccf399a1acb58595da8c9680252ffaedd18a8b
14,332
py
Python
test/functional/mempool_accept.py
TheBurningSavage/TheBurningSavage
dfc00e6c5acc192b4d8a6e8a8ded2efb1252c861
[ "MIT" ]
1
2021-04-23T20:46:00.000Z
2021-04-23T20:46:00.000Z
test/functional/mempool_accept.py
TheBurningSavage/TheBurningSavage
dfc00e6c5acc192b4d8a6e8a8ded2efb1252c861
[ "MIT" ]
null
null
null
test/functional/mempool_accept.py
TheBurningSavage/TheBurningSavage
dfc00e6c5acc192b4d8a6e8a8ded2efb1252c861
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2017 The TheBurningSavage Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test mempool acceptance of raw transactions.""" from io import BytesIO from test_framework.test_fr...
48.914676
154
0.644781
9a267e59d815cf9e30da2c1132ff8f1188d066ab
6,601
py
Python
tests/unittest/benchmark_runner/common/template_operations/golden_files.py
bbenshab/benchmark-runner
6f541c03c9dca5ee775de93ce62cbeffbc3b10fc
[ "Apache-2.0" ]
null
null
null
tests/unittest/benchmark_runner/common/template_operations/golden_files.py
bbenshab/benchmark-runner
6f541c03c9dca5ee775de93ce62cbeffbc3b10fc
[ "Apache-2.0" ]
null
null
null
tests/unittest/benchmark_runner/common/template_operations/golden_files.py
bbenshab/benchmark-runner
6f541c03c9dca5ee775de93ce62cbeffbc3b10fc
[ "Apache-2.0" ]
null
null
null
import difflib import filecmp import os import shutil import tempfile from benchmark_runner.main.environment_variables import environment_variables from benchmark_runner.common.template_operations.template_operations import TemplateOperations from tests.unittest.benchmark_runner.common.template_operations.golden_files...
51.170543
143
0.675049
1303ffdd964d03df83f636553af54b264ca69e0d
987
py
Python
public_tool/solve_on_outlier.py
mapicccy/Stock-Market-Trend-Analysis-Using-HMM-LSTM
5be0f294208d727d5a3e28b0e99496d056102b4c
[ "MIT" ]
147
2018-08-27T09:05:07.000Z
2022-03-27T13:06:16.000Z
public_tool/solve_on_outlier.py
mapicccy/Stock-Market-Trend-Analysis-Using-HMM-LSTM
5be0f294208d727d5a3e28b0e99496d056102b4c
[ "MIT" ]
null
null
null
public_tool/solve_on_outlier.py
mapicccy/Stock-Market-Trend-Analysis-Using-HMM-LSTM
5be0f294208d727d5a3e28b0e99496d056102b4c
[ "MIT" ]
70
2018-09-10T03:12:54.000Z
2022-03-26T06:46:48.000Z
from public_tool.form_index import form_index import numpy as np from dataset_code.process_on_raw_data import fill_na def solve_on_outlier(dataset, lengths): """ find the outlier data, and replace then by fill_na function input: dataset, array lengths, list, record the length of ...
31.83871
88
0.590679
f3989a04d403db4c62c0a70222e2fcd630d86e31
4,498
py
Python
DRS-Calculate/component/analyse_weigh_ratio.py
monettoCoffee/DormRecommendSys
d5cf10827729f75056da20de0100bcf5c1414d41
[ "Apache-2.0" ]
1
2020-01-16T05:11:02.000Z
2020-01-16T05:11:02.000Z
DRS-Calculate/component/analyse_weigh_ratio.py
Happy-hacker0/DormRecommendSys
a3d9c356afd70f1a49aa7eb632d0d8970f7da135
[ "Apache-2.0" ]
null
null
null
DRS-Calculate/component/analyse_weigh_ratio.py
Happy-hacker0/DormRecommendSys
a3d9c356afd70f1a49aa7eb632d0d8970f7da135
[ "Apache-2.0" ]
2
2020-01-11T03:04:00.000Z
2020-01-16T05:16:22.000Z
# coding=utf-8 from weigh.cosine_similarity import CosineSimilarity import component.section_calculator as section_calculator # 分析向量平均相似度 def direct_analyse(all_cluster_vector, question_info): weight_ratio = {} analyse_one_chosen_weight_ratio(all_cluster_vector, question_info, weight_ratio) analyse_mult...
51.701149
115
0.747666
583bb6aed3f54c1165960fdc3233b6ff61225a98
357
py
Python
projects/Digital-Clock-GUI/code.py
Kranthi-Guribilli/Python-Projects
73059ba06079c14b022b0c80fbc6d031cddfbecb
[ "MIT" ]
54
2021-11-03T08:54:50.000Z
2022-01-09T19:16:52.000Z
projects/Digital-Clock-GUI/code.py
LeoLivs/Python-Projects
b681deba7220278ea8e37ec2865f8e1fb8ad4755
[ "MIT" ]
13
2021-10-31T05:01:01.000Z
2022-01-08T13:48:07.000Z
projects/Digital-Clock-GUI/code.py
LeoLivs/Python-Projects
b681deba7220278ea8e37ec2865f8e1fb8ad4755
[ "MIT" ]
14
2021-10-30T20:17:50.000Z
2022-01-09T14:15:13.000Z
from tkinter import * from tkinter.ttk import * from time import strftime root = Tk() root.title("Clock") def time(): string = strftime("%H:%M:%S %p") label.config(text=string) label.after(100, time) label = tk.Label(root, font=("JetBrains Mono", 80), background="white", foreground="black") label.pack...
17
91
0.672269
cf3c4a11c49b31036af305c8fced93f927003dd4
3,124
py
Python
tools/debugging/matrix/load_with_generate_messages.py
luehrsFred/raiden
a1b118ebe14badb1acd0744b2d7f2b39f8ba5313
[ "MIT" ]
null
null
null
tools/debugging/matrix/load_with_generate_messages.py
luehrsFred/raiden
a1b118ebe14badb1acd0744b2d7f2b39f8ba5313
[ "MIT" ]
69
2020-07-21T05:49:21.000Z
2022-03-08T18:09:44.000Z
tools/debugging/matrix/load_with_generate_messages.py
luehrsFred/raiden
a1b118ebe14badb1acd0744b2d7f2b39f8ba5313
[ "MIT" ]
null
null
null
#!/usr/bin/env python from gevent import monkey # isort:skip monkey.patch_all() # isort:skip import argparse import os import time from dataclasses import dataclass from typing import Iterator, List from raiden.utils.nursery import Janitor, Nursery CWD = os.path.dirname(os.path.abspath(__file__)) GENERATE_MESSAGE...
30.330097
90
0.700384
319e456d46ea84cb7d42c5f77b036366de327390
152
py
Python
yc199/730.py
c-yan/yukicoder
cdbbd65402177225dd989df7fe01f67908484a69
[ "MIT" ]
null
null
null
yc199/730.py
c-yan/yukicoder
cdbbd65402177225dd989df7fe01f67908484a69
[ "MIT" ]
null
null
null
yc199/730.py
c-yan/yukicoder
cdbbd65402177225dd989df7fe01f67908484a69
[ "MIT" ]
null
null
null
S = input() d = {} for c in S: d.setdefault(c, 0) d[c] += 1 if all(map(lambda x: x == 1, d.values())): print('YES') else: print('NO')
12.666667
42
0.480263
663bfb7d16ff6a6250ffa8ec27bcb7d5e409cee7
249
py
Python
flapp/ext/cli/__init__.py
ernane/flapp
b31eff9accce5d150a3b852dfb8c5394ed9f589a
[ "MIT" ]
null
null
null
flapp/ext/cli/__init__.py
ernane/flapp
b31eff9accce5d150a3b852dfb8c5394ed9f589a
[ "MIT" ]
1
2020-08-30T20:48:05.000Z
2020-08-30T20:48:57.000Z
flapp/ext/cli/__init__.py
ernane/flapp
b31eff9accce5d150a3b852dfb8c5394ed9f589a
[ "MIT" ]
null
null
null
from flapp.ext.db.commands import create_db, drop_db, populate_db def init_app(app): app.cli.add_command(app.cli.command()(create_db)) app.cli.add_command(app.cli.command()(drop_db)) app.cli.add_command(app.cli.command()(populate_db))
31.125
65
0.746988
b3b68a51645515acb249a0f8e9db72155f96984a
8,185
py
Python
lib/python3.8/site-packages/ansible_collections/community/general/plugins/connection/lxc.py
cjsteel/python3-venv-ansible-2.10.5
c95395c4cae844dc66fddde9b4343966f4b2ecd5
[ "Apache-1.1" ]
5
2020-12-16T21:42:09.000Z
2022-03-28T16:04:32.000Z
.ansible/collections/ansible_collections/community/general/plugins/connection/lxc.py
chronicc/proving-ground
3e392122a05fb8383a3700954baebb0df330e9e3
[ "MIT" ]
null
null
null
.ansible/collections/ansible_collections/community/general/plugins/connection/lxc.py
chronicc/proving-ground
3e392122a05fb8383a3700954baebb0df330e9e3
[ "MIT" ]
null
null
null
# (c) 2015, Joerg Thalheim <joerg@higgsboson.tk> # Copyright (c) 2017 Ansible Project # 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: Joerg Thalheim (!UN...
35.742358
95
0.575809
4a10291c430e69e2696c7a5be61e579fe8f8b483
4,176
py
Python
glomeruli_segmentation/api_interface.py
theodore-evans/hubmap-kidney-segmentation
7842655d49080be28682a9cf0394bcbe53172ddc
[ "MIT" ]
null
null
null
glomeruli_segmentation/api_interface.py
theodore-evans/hubmap-kidney-segmentation
7842655d49080be28682a9cf0394bcbe53172ddc
[ "MIT" ]
null
null
null
glomeruli_segmentation/api_interface.py
theodore-evans/hubmap-kidney-segmentation
7842655d49080be28682a9cf0394bcbe53172ddc
[ "MIT" ]
null
null
null
from io import BytesIO from logging import Logger from typing import Tuple, Type, Union import desert from aiohttp import ClientSession, TCPConnector from marshmallow import EXCLUDE from PIL import Image from glomeruli_segmentation.aiohttp_hooks import get_logging_hooks from glomeruli_segmentation.data_classes import...
34.8
143
0.633142
76c317dbbe83727d9f87ff338b8c386e0e7f70c9
3,154
py
Python
tests/test_read_edges.py
genimind/graphene
51d571fbbca19b3675b5f870c00c059912cd4f38
[ "Apache-2.0" ]
null
null
null
tests/test_read_edges.py
genimind/graphene
51d571fbbca19b3675b5f870c00c059912cd4f38
[ "Apache-2.0" ]
null
null
null
tests/test_read_edges.py
genimind/graphene
51d571fbbca19b3675b5f870c00c059912cd4f38
[ "Apache-2.0" ]
null
null
null
import os import unittest import json import networkx as nx from graphene import graphgen node_mapper_filename = './node_mapper.json' edge_mapper_filename = './edge_mapper.json' data_filename = './test_data.txt' class TestReadEdges(unittest.TestCase): def setUp(self): self.node_mapper = None...
36.252874
71
0.588776
76cbef243ec37973752412aaebf5b21a477af1b0
4,018
py
Python
sector/protocols/pool_protocol.py
bithadder/sector-blockchain
ce63d162cd8c0c7c85ae64d6d6e8bede0a8675e6
[ "Apache-2.0" ]
13
2021-07-06T12:45:25.000Z
2021-09-10T22:24:52.000Z
sector/protocols/pool_protocol.py
bithadder/sector-blockchain
ce63d162cd8c0c7c85ae64d6d6e8bede0a8675e6
[ "Apache-2.0" ]
null
null
null
sector/protocols/pool_protocol.py
bithadder/sector-blockchain
ce63d162cd8c0c7c85ae64d6d6e8bede0a8675e6
[ "Apache-2.0" ]
6
2021-07-06T01:14:53.000Z
2021-07-18T05:33:02.000Z
from dataclasses import dataclass from enum import Enum import time from typing import Optional from blspy import G1Element, G2Element from sector.types.blockchain_format.proof_of_space import ProofOfSpace from sector.types.blockchain_format.sized_bytes import bytes32 from sector.util.ints import uint8, uint16, uint3...
22.96
91
0.777501
5306769155050ba032364650daeecaa1581e609b
4,209
py
Python
build/android/pylib/base_test_sharder.py
junmin-zhu/chromium-rivertrail
eb1a57aca71fe68d96e48af8998dcfbe45171ee1
[ "BSD-3-Clause" ]
5
2018-03-10T13:08:42.000Z
2021-07-26T15:02:11.000Z
build/android/pylib/base_test_sharder.py
sanyaade-mobiledev/chromium.src
d496dfeebb0f282468827654c2b3769b3378c087
[ "BSD-3-Clause" ]
1
2015-07-21T08:02:01.000Z
2015-07-21T08:02:01.000Z
build/android/pylib/base_test_sharder.py
jianglong0156/chromium.src
d496dfeebb0f282468827654c2b3769b3378c087
[ "BSD-3-Clause" ]
6
2016-11-14T10:13:35.000Z
2021-01-23T15:29:53.000Z
# Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import android_commands import logging import multiprocessing from test_result import TestResults def _ShardedTestRunnable(test): """Standalone fun...
33.943548
79
0.680209
6b4657d6104da5a8c7933b5450c48d240c01eec3
718
py
Python
incubation-python/screenmanager/screen_manager.py
yk0242/incubation
f714ed8172aa290d3f13ff8b7f09f888a5b33640
[ "MIT" ]
1
2018-01-15T09:21:29.000Z
2018-01-15T09:21:29.000Z
incubation-python/screenmanager/screen_manager.py
FredCoder/incubation
93e2aba555e3d3a9c71739201f2ea0eb475c31dd
[ "MIT" ]
19
2015-04-14T15:41:58.000Z
2017-09-23T08:08:31.000Z
incubation-python/screenmanager/screen_manager.py
FredCoder/incubation
93e2aba555e3d3a9c71739201f2ea0eb475c31dd
[ "MIT" ]
2
2016-01-05T09:21:28.000Z
2019-03-20T11:41:45.000Z
# -*- coding: utf-8 -*- # test using kivy to transition between different screens # cf https://kivy.org/docs/api-kivy.uix.screenmanager.html from kivy.app import App from kivy.uix.screenmanager import ScreenManager, NoTransition # --- import screens for tops of subsystems to be used here --- import b_system_screen i...
25.642857
66
0.735376
e77d2d15b328cdfd106ff6ac61f7933b60f2e580
12,506
py
Python
object_detection_metrics/category.py
tetutaro/object_detection_metrics
b0b003ff3752bfd98b24614bb485cee652a1e863
[ "MIT" ]
2
2021-03-21T10:57:36.000Z
2021-06-09T11:34:59.000Z
object_detection_metrics/category.py
tetutaro/object_detection_metrics
b0b003ff3752bfd98b24614bb485cee652a1e863
[ "MIT" ]
null
null
null
object_detection_metrics/category.py
tetutaro/object_detection_metrics
b0b003ff3752bfd98b24614bb485cee652a1e863
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- from __future__ import annotations from collections import defaultdict import numpy as np class Category(object): '''the basis of evaluation per category id Attributes: category_id (int): category id of detected object n_true (int): the number of g...
38.361963
76
0.551655
c5be495fc1db83f6003233042814e93e6d6f115f
2,609
py
Python
ppfa/selenium_tests/management/commands/runtests.py
Goldcap/django-selenium-testing
ad6fc09eb4fd8a54d0532c4478add0753ead1d96
[ "MIT" ]
null
null
null
ppfa/selenium_tests/management/commands/runtests.py
Goldcap/django-selenium-testing
ad6fc09eb4fd8a54d0532c4478add0753ead1d96
[ "MIT" ]
null
null
null
ppfa/selenium_tests/management/commands/runtests.py
Goldcap/django-selenium-testing
ad6fc09eb4fd8a54d0532c4478add0753ead1d96
[ "MIT" ]
null
null
null
import sys import os.path import importlib from inspect import getmembers, isclass from collections import defaultdict from optparse import make_option from django.utils import timezone from django.core.management.base import BaseCommand, CommandError from django.contrib.contenttypes.models im...
35.739726
113
0.576466
ceea16883e15eaaf54c1f69452cbe348041c8964
13,113
py
Python
dataloader/pc_dataset.py
msc9533/Cylinder3D
4441da83df3e897dd78a89383684c87f9644ed8d
[ "Apache-2.0" ]
2
2021-02-15T12:25:33.000Z
2021-04-13T13:11:38.000Z
dataloader/pc_dataset.py
msc9533/Cylinder3D
4441da83df3e897dd78a89383684c87f9644ed8d
[ "Apache-2.0" ]
1
2022-03-11T10:27:20.000Z
2022-03-11T11:52:29.000Z
dataloader/pc_dataset.py
msc9533/Cylinder3D
4441da83df3e897dd78a89383684c87f9644ed8d
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- # author: Xinge # @file: pc_dataset.py import os import numpy as np from torch.utils import data import yaml import pickle REGISTERED_PC_DATASET_CLASSES = {} def register_dataset(cls, name=None): global REGISTERED_PC_DATASET_CLASSES if name is None: name = cls.__name__ as...
35.633152
116
0.603371
e4609305a33f4cbe54e4d101234c42087475214b
1,091
py
Python
setup.py
eyeseast/wumb-to-sqlite
c8ea909b4bf90cadc6ef60b3cd548246a97933c7
[ "Apache-2.0" ]
2
2020-10-15T20:58:00.000Z
2020-10-16T13:35:13.000Z
setup.py
eyeseast/wumb-to-sqlite
c8ea909b4bf90cadc6ef60b3cd548246a97933c7
[ "Apache-2.0" ]
4
2020-10-12T15:45:28.000Z
2020-10-16T14:00:37.000Z
setup.py
eyeseast/wumb-to-sqlite
c8ea909b4bf90cadc6ef60b3cd548246a97933c7
[ "Apache-2.0" ]
null
null
null
from setuptools import setup import os VERSION = "0.1" def get_long_description(): with open( os.path.join(os.path.dirname(os.path.abspath(__file__)), "README.md"), ) as fp: return fp.read() setup( name="wumb-to-sqlite", description="Scrape WUMB playlists to SQLite", long_descri...
29.486486
82
0.654445
0f88066befb88ec5f7060c44b0d2dfbf2b36b17c
188
py
Python
Examples/FactorialExample.py
SymmetricChaos/FiniteFields
65258e06b7f04ce15223c1bc0c2384ef5e9cec1a
[ "MIT" ]
1
2021-08-22T15:03:59.000Z
2021-08-22T15:03:59.000Z
Examples/FactorialExample.py
SymmetricChaos/NumberTheory
65258e06b7f04ce15223c1bc0c2384ef5e9cec1a
[ "MIT" ]
null
null
null
Examples/FactorialExample.py
SymmetricChaos/NumberTheory
65258e06b7f04ce15223c1bc0c2384ef5e9cec1a
[ "MIT" ]
null
null
null
from Combinatorics import falling_factorial, rising_factorial x = 5 n = 5 print(f"falling_fac({x},{n}) = {falling_factorial(x,n)}") print(f"rising_fac({x},{n}) = {rising_factorial(x,n)}")
31.333333
61
0.712766
1d656fad86ca3d019c99b4bea726e6df3734ec85
8,527
py
Python
src/confluent/azext_confluent/vendored_sdks/confluent/aio/operations/_marketplace_agreement_operations.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
2
2021-06-05T17:51:26.000Z
2021-11-17T11:17:56.000Z
src/confluent/azext_confluent/vendored_sdks/confluent/aio/operations/_marketplace_agreement_operations.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
3
2020-05-27T20:16:26.000Z
2020-07-23T19:46:49.000Z
src/confluent/azext_confluent/vendored_sdks/confluent/aio/operations/_marketplace_agreement_operations.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
5
2020-09-08T22:46:48.000Z
2020-11-08T14:54:35.000Z
# 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 may ...
47.904494
133
0.677495
383197e41e6220f2efe2beb00311ff0dae2083a5
5,059
bzl
Python
tools/ts-api-guardian/index.bzl
ddeka2910/angular
39573769c698409b6a4279acec1a86e0686740a4
[ "MIT" ]
2
2018-02-26T04:06:30.000Z
2020-02-12T21:59:09.000Z
tools/ts-api-guardian/index.bzl
ddeka2910/angular
39573769c698409b6a4279acec1a86e0686740a4
[ "MIT" ]
369
2021-01-20T05:54:20.000Z
2022-03-25T21:49:16.000Z
tools/ts-api-guardian/index.bzl
ddeka2910/angular
39573769c698409b6a4279acec1a86e0686740a4
[ "MIT" ]
1
2017-02-21T00:57:05.000Z
2017-02-21T00:57:05.000Z
# Copyright 2017 The Bazel Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable la...
34.650685
132
0.616723
12a65c3450b774bf2f2dd40aa1ef080a980e4d82
6,822
py
Python
py/test/selenium/webdriver/common/w3c_interaction_tests.py
stevepiercy/selenium
4464ac4f8230150824f6bf2e4075cd1f53a648c7
[ "Apache-2.0" ]
4
2021-07-04T00:18:58.000Z
2021-11-17T11:10:02.000Z
py/test/selenium/webdriver/common/w3c_interaction_tests.py
stevepiercy/selenium
4464ac4f8230150824f6bf2e4075cd1f53a648c7
[ "Apache-2.0" ]
5
2021-08-21T19:28:26.000Z
2022-02-27T16:03:09.000Z
py/test/selenium/webdriver/common/w3c_interaction_tests.py
stevepiercy/selenium
4464ac4f8230150824f6bf2e4075cd1f53a648c7
[ "Apache-2.0" ]
3
2017-10-19T04:57:07.000Z
2020-12-08T19:57:45.000Z
# Licensed to the Software Freedom Conservancy (SFC) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The SFC licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
32.028169
82
0.737614
122036a741ff1da37293d7a35167c0a2862422de
3,638
py
Python
Python/matplotlib/plots.py
lcbendall/numerical_computing
565cde92525ea44c55abe933c6419c1543f9800b
[ "CC-BY-3.0" ]
null
null
null
Python/matplotlib/plots.py
lcbendall/numerical_computing
565cde92525ea44c55abe933c6419c1543f9800b
[ "CC-BY-3.0" ]
null
null
null
Python/matplotlib/plots.py
lcbendall/numerical_computing
565cde92525ea44c55abe933c6419c1543f9800b
[ "CC-BY-3.0" ]
1
2020-12-08T01:19:23.000Z
2020-12-08T01:19:23.000Z
import matplotlib matplotlib.rcParams = matplotlib.rc_params_from_file('../../matplotlibrc') import matplotlib.pyplot as plt import matplotlib.widgets as wg from mpl_toolkits.mplot3d import Axes3D import numpy as np from mayavi import mlab import solutions png_size = (1024, 768) def exp_plot(): x = np.linspace(-...
23.320513
85
0.575591
26f0914af0d99d6abe19ffa0702c74d57292d5e9
15,804
py
Python
urwid/treetools.py
DarkPurpleShadow/ConnectFour
af766cb0f6324c735c8c7f5f9161574859edbcdb
[ "BSD-3-Clause" ]
39
2015-04-09T12:55:25.000Z
2022-01-09T17:56:39.000Z
urwid/treetools.py
DarkPurpleShadow/ConnectFour
af766cb0f6324c735c8c7f5f9161574859edbcdb
[ "BSD-3-Clause" ]
null
null
null
urwid/treetools.py
DarkPurpleShadow/ConnectFour
af766cb0f6324c735c8c7f5f9161574859edbcdb
[ "BSD-3-Clause" ]
13
2015-12-17T21:56:26.000Z
2019-06-01T18:22:02.000Z
#!/usr/bin/python # # Generic TreeWidget/TreeWalker class # Copyright (c) 2010 Rob Lanphier # Copyright (C) 2004-2010 Ian Ward # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foun...
32.451745
79
0.596495
64f76a02eaf50bf1783dac86a25d6f8ec431e9eb
2,316
py
Python
setup.py
atlascope/atlascope-api
8738d20836d3a4f449896215b5fee7c3cf2c7356
[ "Apache-2.0" ]
1
2022-01-11T22:47:36.000Z
2022-01-11T22:47:36.000Z
setup.py
atlascope/atlascope
8738d20836d3a4f449896215b5fee7c3cf2c7356
[ "Apache-2.0" ]
80
2021-12-08T22:18:44.000Z
2022-03-31T22:56:48.000Z
setup.py
atlascope/atlascope-api
8738d20836d3a4f449896215b5fee7c3cf2c7356
[ "Apache-2.0" ]
1
2021-12-13T19:30:57.000Z
2021-12-13T19:30:57.000Z
from pathlib import Path from setuptools import find_packages, setup readme_file = Path(__file__).parent / 'README.md' if readme_file.exists(): with readme_file.open() as f: long_description = f.read() else: # When this is first installed in development Docker, README.md is not available long_desc...
29.316456
84
0.576425
ad34a8993a59e9bc5fe3f8eaab295ceeee4fe906
4,505
py
Python
util/git-pre-commit.py
Jihaoyun/gem5
c52195e8304b5571008eab050fc9cc38ba91107c
[ "BSD-3-Clause" ]
3
2017-04-09T07:35:57.000Z
2018-12-12T07:30:13.000Z
util/git-pre-commit.py
Jihaoyun/gem5
c52195e8304b5571008eab050fc9cc38ba91107c
[ "BSD-3-Clause" ]
null
null
null
util/git-pre-commit.py
Jihaoyun/gem5
c52195e8304b5571008eab050fc9cc38ba91107c
[ "BSD-3-Clause" ]
3
2018-03-04T18:01:33.000Z
2019-08-23T22:30:37.000Z
#!/usr/bin/env python # # Copyright (c) 2016 ARM Limited # All rights reserved # # The license below extends only to copyright in the software and shall # not be construed as granting a license to any other intellectual # property including but not limited to intellectual property relating # to a hardware implementatio...
38.504274
79
0.71343
0ae7d6f69f737627718c8adefd7864a1311752cb
359
py
Python
mlbase/utils/images.py
n-kats/mlbase
7d69f259dcaf9608a921523083458fa6d0d6914b
[ "MIT" ]
null
null
null
mlbase/utils/images.py
n-kats/mlbase
7d69f259dcaf9608a921523083458fa6d0d6914b
[ "MIT" ]
2
2018-09-23T18:39:01.000Z
2018-09-24T18:02:21.000Z
mlbase/utils/images.py
n-kats/mlbase
7d69f259dcaf9608a921523083458fa6d0d6914b
[ "MIT" ]
null
null
null
from mlbase.lazy import numpy as np def tiled_image(images: "np.ndarray"): n, h, w, ch = images.shape sq = int(np.ceil(np.sqrt(n))) output = np.zeros([sq * h, sq * w, ch], dtype=np.uint8) for i, image in enumerate(images): x = i % sq y = i // sq output[h * y:h * (y + 1), w * x:...
27.615385
60
0.534819
7024cf9d9bbe851dfd74e9528b9e4a9d7391870e
3,337
py
Python
xskillscore/tests/test_skipna_functionality.py
blackary/xskillscore
2754d60a87dd0d5d3b2e1c727873520754391389
[ "Apache-2.0" ]
null
null
null
xskillscore/tests/test_skipna_functionality.py
blackary/xskillscore
2754d60a87dd0d5d3b2e1c727873520754391389
[ "Apache-2.0" ]
null
null
null
xskillscore/tests/test_skipna_functionality.py
blackary/xskillscore
2754d60a87dd0d5d3b2e1c727873520754391389
[ "Apache-2.0" ]
null
null
null
import dask import numpy as np import pytest from xarray.tests import CountingScheduler, assert_allclose, raise_if_dask_computes from xskillscore.core.deterministic import ( linslope, mae, mape, me, median_absolute_error, mse, pearson_r, pearson_r_p_value, r2, rmse, smape, ...
30.336364
87
0.709919
485a00eabbbc1256405a8684f6b790ba53930abc
3,265
py
Python
dcodex_bible/plot.py
rbturnbull/dcodex_bible
7745726867bdc556b3de5505601bbb881d420477
[ "Apache-2.0" ]
null
null
null
dcodex_bible/plot.py
rbturnbull/dcodex_bible
7745726867bdc556b3de5505601bbb881d420477
[ "Apache-2.0" ]
9
2021-04-08T20:32:39.000Z
2022-03-12T01:06:09.000Z
dcodex_bible/plot.py
rbturnbull/dcodex_bible
7745726867bdc556b3de5505601bbb881d420477
[ "Apache-2.0" ]
null
null
null
from dcodex.models import * from .models import * def plot_affiliation_matrix( family, manuscripts, verses, force_compute=False, matrix_filename=None, figsize=(12, 7), major_chapter_markers=10, minor_chapter_markers=1, ...
41.329114
179
0.672588
28b1475ab82af1e110f0939c358c91678fd6ddce
915
py
Python
relay-demo.py
jkaplon/rpi-utils
ad8ef8a4803c4086560345d23a07c70ee40cc7fe
[ "MIT" ]
null
null
null
relay-demo.py
jkaplon/rpi-utils
ad8ef8a4803c4086560345d23a07c70ee40cc7fe
[ "MIT" ]
null
null
null
relay-demo.py
jkaplon/rpi-utils
ad8ef8a4803c4086560345d23a07c70ee40cc7fe
[ "MIT" ]
null
null
null
import RPi.GPIO as GPIO import time in1 = 16 in2 = 18 GPIO.setmode(GPIO.BOARD) GPIO.setup(in1, GPIO.OUT) GPIO.setup(in2, GPIO.OUT) GPIO.output(in1, False) GPIO.output(in2, False) try: while True: for x in range(5): GPIO.output(in1, True) time.sleep(0.1) GPIO.output(in...
20.795455
35
0.538798
1674aaa376a14ec89ada3760babc194611763702
174
py
Python
test_files/encoding_test.py
haiyanghe/rednose
8a280ce9e7d02a563e252098661f79cfb3011971
[ "MIT" ]
30
2016-04-15T21:19:30.000Z
2021-03-25T11:30:36.000Z
test_files/encoding_test.py
haiyanghe/rednose
8a280ce9e7d02a563e252098661f79cfb3011971
[ "MIT" ]
20
2016-04-18T14:56:02.000Z
2021-09-21T14:58:04.000Z
test_files/encoding_test.py
haiyanghe/rednose
8a280ce9e7d02a563e252098661f79cfb3011971
[ "MIT" ]
11
2016-07-22T08:58:20.000Z
2020-06-01T14:47:44.000Z
# vim: fileencoding=utf-8: # NOTE: this file does *not* import unicode_literals, # so the assertion message is actually just utf-8 bytes def test(): assert False, "ä"
19.333333
55
0.706897
b3516f2ea9950aed50cce2ba19891a0f46cf3a68
71
py
Python
manage/const.py
augustand/kervice
ccbda8196805a542a9324b404e02d83cc130926e
[ "MIT" ]
1
2017-12-24T07:59:25.000Z
2017-12-24T07:59:25.000Z
manage/const.py
augustand/kervice
ccbda8196805a542a9324b404e02d83cc130926e
[ "MIT" ]
null
null
null
manage/const.py
augustand/kervice
ccbda8196805a542a9324b404e02d83cc130926e
[ "MIT" ]
null
null
null
class ENV(object): dev = "dev" stage = "stage" pro = "pro"
14.2
19
0.507042
e56efa20703c30dfadc089701d275413297aa25b
2,718
py
Python
tests/instrumentation/django_tests/template_tests.py
ellisvalentiner/apm-agent-python
89e2579a7b05433733909632127fd34770bc93ef
[ "BSD-3-Clause" ]
null
null
null
tests/instrumentation/django_tests/template_tests.py
ellisvalentiner/apm-agent-python
89e2579a7b05433733909632127fd34770bc93ef
[ "BSD-3-Clause" ]
null
null
null
tests/instrumentation/django_tests/template_tests.py
ellisvalentiner/apm-agent-python
89e2579a7b05433733909632127fd34770bc93ef
[ "BSD-3-Clause" ]
null
null
null
import pytest # isort:skip pytest.importorskip("django") # isort:skip from os.path import join import django from django.test.utils import override_settings import mock import pytest from conftest import BASE_TEMPLATE_DIR from elasticapm.conf.constants import TRANSACTION from tests.utils.compat import middleware...
34.405063
104
0.708241
ae04f17c8315e6f05c54082c47b22ad1d78c7732
252
py
Python
0349_IntersectionOfTwoArrays.py
taro-masuda/leetcode
39739e9fec7c66513b114c740ef982ccc09dc39f
[ "MIT" ]
null
null
null
0349_IntersectionOfTwoArrays.py
taro-masuda/leetcode
39739e9fec7c66513b114c740ef982ccc09dc39f
[ "MIT" ]
null
null
null
0349_IntersectionOfTwoArrays.py
taro-masuda/leetcode
39739e9fec7c66513b114c740ef982ccc09dc39f
[ "MIT" ]
1
2020-03-18T05:23:40.000Z
2020-03-18T05:23:40.000Z
class Solution: def intersection(self, nums1: List[int], nums2: List[int]) -> List[int]: n1 = set(nums1) n2 = set(nums2) out = [] for n in n1: if n in n2: out.append(n) return out
25.2
76
0.47619
b2ff4b1ef09cbffbdaa86db828a6cd4a33a7a70a
819
py
Python
utils/img_tools.py
snu-mllab/Deep-Hash-Table-CVPR19
62c811c37001302e6759a18d6143b8ad657e4910
[ "MIT" ]
12
2019-05-20T10:26:01.000Z
2020-05-07T02:19:05.000Z
utils/img_tools.py
maestrojeong/Deep-Hash-Table-CVPR19
62c811c37001302e6759a18d6143b8ad657e4910
[ "MIT" ]
1
2019-06-21T11:50:15.000Z
2019-06-24T05:38:27.000Z
utils/img_tools.py
snu-mllab/Deep-Hash-Table-CVPR19
62c811c37001302e6759a18d6143b8ad657e4910
[ "MIT" ]
2
2019-03-21T01:54:11.000Z
2019-05-08T10:38:46.000Z
import numpy as np import os def jpg2png(str_): ''' Args: str_ - .jpg ''' return os.path.splitext(str_)[0]+'.png' def rgb2gray(rgb_img): ''' Args: rgb_img - Numpy 3D array [nrow, ncol ,3] Return: gray_img - Numpy 3D array [nrow, ncol ...
21.552632
69
0.518926
04c9afb6fd96ce6354af8cf372d0372ecf7b46f5
67
py
Python
tests/__init__.py
sturmianseq/yamicache
be6400a5742f3f01c5ada01b3ca74c72ce0108e2
[ "MIT" ]
null
null
null
tests/__init__.py
sturmianseq/yamicache
be6400a5742f3f01c5ada01b3ca74c72ce0108e2
[ "MIT" ]
10
2017-09-01T17:12:20.000Z
2021-08-28T17:34:46.000Z
tests/__init__.py
sturmianseq/yamicache
be6400a5742f3f01c5ada01b3ca74c72ce0108e2
[ "MIT" ]
3
2018-08-08T15:49:35.000Z
2021-11-04T17:21:10.000Z
# -*- coding: utf-8 -*- """Unit test package for yamicache."""
16.75
39
0.552239
e0b51dfaae70adf829ce3b45c27f52f7fdc9822d
1,313
py
Python
entities/client.py
wolfryan97/Project_0
27c1608833b04f067b5bceaeed99e7ed2b164a58
[ "MIT" ]
null
null
null
entities/client.py
wolfryan97/Project_0
27c1608833b04f067b5bceaeed99e7ed2b164a58
[ "MIT" ]
null
null
null
entities/client.py
wolfryan97/Project_0
27c1608833b04f067b5bceaeed99e7ed2b164a58
[ "MIT" ]
null
null
null
class Client: def __init__(self, client_id: int, client_firstname: str, client_lastname: str, address: str, city: str, state: str, zip_code: int): self.client_id = client_id self.client_firstname = client_firstname self.client_lastname = client_lastname ...
34.552632
99
0.566641
cc0cab8a718af7a8b0437ff869c4ab6adc7f1fb8
170
py
Python
tulius/forum/threads/__init__.py
kozzztik/tulius
81b8f6484eefdc453047f62173a08f5e6f640cd6
[ "MIT" ]
1
2020-04-21T15:09:18.000Z
2020-04-21T15:09:18.000Z
tulius/forum/threads/__init__.py
kozzztik/tulius
81b8f6484eefdc453047f62173a08f5e6f640cd6
[ "MIT" ]
70
2019-04-10T22:32:32.000Z
2022-03-11T23:12:54.000Z
tulius/forum/threads/__init__.py
kozzztik/tulius
81b8f6484eefdc453047f62173a08f5e6f640cd6
[ "MIT" ]
1
2019-04-12T14:55:39.000Z
2019-04-12T14:55:39.000Z
from django.apps import AppConfig class ForumThreadsConfig(AppConfig): name = 'tulius.forum.threads' label = 'forum_threads' verbose_name = 'Forum threads'
21.25
36
0.735294
cd1fa0a5072c0bf3b1247a4eabd1258fc86aa576
3,279
py
Python
tests/test_i2c.py
jakiee3y/luma.core
713de8e4e397493dd196e8e7653268877135ffe9
[ "MIT" ]
null
null
null
tests/test_i2c.py
jakiee3y/luma.core
713de8e4e397493dd196e8e7653268877135ffe9
[ "MIT" ]
null
null
null
tests/test_i2c.py
jakiee3y/luma.core
713de8e4e397493dd196e8e7653268877135ffe9
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c) 2017-18 Richard Hull and contributors # See LICENSE.rst for details. """ Tests for the :py:class:`luma.core.interface.serial.i2c` class. """ import errno import pytest import smbus2 from unittest.mock import Mock, patch, call from luma.core.interface.seria...
27.325
88
0.668801
3ff105eebd7b312c178dda11b75eab545ce3aae8
3,002
py
Python
official/mnist/mnist_eager_test.py
vincentcheny/models
afb1a59fc1bc792ac72d1a3e22e2469020529788
[ "Apache-2.0" ]
1
2019-09-11T09:41:11.000Z
2019-09-11T09:41:11.000Z
official/mnist/mnist_eager_test.py
vincentcheny/models
afb1a59fc1bc792ac72d1a3e22e2469020529788
[ "Apache-2.0" ]
null
null
null
official/mnist/mnist_eager_test.py
vincentcheny/models
afb1a59fc1bc792ac72d1a3e22e2469020529788
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by...
31.270833
81
0.691872
e86925d31e9ecdfbab2851c4e21d398b9d74e0e0
1,199
py
Python
src/app/halftone.py
telegnom/labello
bb9349909758bebfd03fd96f7a911d61ce29478a
[ "MIT" ]
2
2019-04-07T04:17:28.000Z
2021-02-25T01:11:33.000Z
src/app/halftone.py
telegnom/labello
bb9349909758bebfd03fd96f7a911d61ce29478a
[ "MIT" ]
10
2019-01-10T06:32:37.000Z
2020-06-18T00:06:28.000Z
src/app/halftone.py
telegnom/labello
bb9349909758bebfd03fd96f7a911d61ce29478a
[ "MIT" ]
4
2018-04-13T17:15:43.000Z
2019-10-31T20:09:13.000Z
from PIL import Image, ImageDraw, ImageStat def halftone(img, sample, scale, angle=45): img_grey = img.convert('L') channel = img_grey.split()[0] channel = channel.rotate(angle, expand=1) size = channel.size[0]*scale, channel.size[1]*scale new_img = Image.new('1', size) draw = ImageDraw.Draw(...
39.966667
72
0.581318
a35db153cca5c2b10bfdaf05a26756c0125d93da
2,324
py
Python
python3/koans/about_comprehension.py
polarization/python_koans
bd0f78a66d7fa60272d21bb24202ebff87e73e41
[ "MIT" ]
null
null
null
python3/koans/about_comprehension.py
polarization/python_koans
bd0f78a66d7fa60272d21bb24202ebff87e73e41
[ "MIT" ]
null
null
null
python3/koans/about_comprehension.py
polarization/python_koans
bd0f78a66d7fa60272d21bb24202ebff87e73e41
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from runner.koan import * class AboutComprehension(Koan): def test_creating_lists_with_list_comprehensions(self): feast = ['lambs', 'sloths', 'orangutans', 'breakfast cereals', 'fruit bats'] comprehension = [delicacy.capitalize() fo...
34.176471
77
0.63167
81c6f04fabba0621d129cf3f1ba15a9725317db7
916
py
Python
connect/serializer.py
lizKimita/Mshauri-Connect
24f6f67017eebf5ee1d2e08c9bf249108dee28a2
[ "MIT" ]
1
2019-06-20T08:23:22.000Z
2019-06-20T08:23:22.000Z
connect/serializer.py
lizKimita/Mshauri-Connect
24f6f67017eebf5ee1d2e08c9bf249108dee28a2
[ "MIT" ]
16
2019-06-11T14:55:14.000Z
2021-09-08T01:02:58.000Z
connect/serializer.py
lizKimita/Mshauri-Connect
24f6f67017eebf5ee1d2e08c9bf249108dee28a2
[ "MIT" ]
null
null
null
from rest_framework import serializers from .models import Foundation, Awareness, Forums, Profile, Comment class FoundationSerializer(serializers.ModelSerializer): class Meta: model=Foundation fields=('image','name','location', 'contact', 'website_link', 'description') class AwarenessSerializer(s...
29.548387
84
0.713974
18ffcb40a0b1bd2a9b11e0f8365d81e2864d0fbb
934
py
Python
venv/lib/python3.8/site-packages/matplotlib/tests/test_backend_tk.py
willBear/willBear-Fundamental_Analysis
bc67eb1e69dcf6765c0b77314d37f7f165a7318f
[ "MIT" ]
15
2020-06-29T08:33:39.000Z
2022-02-12T00:28:51.000Z
venv/lib/python3.8/site-packages/matplotlib/tests/test_backend_tk.py
willBear/willBear-Fundamental_Analysis
bc67eb1e69dcf6765c0b77314d37f7f165a7318f
[ "MIT" ]
30
2020-04-15T19:37:40.000Z
2020-04-22T21:19:35.000Z
venv/lib/python3.8/site-packages/matplotlib/tests/test_backend_tk.py
willBear/willBear-Fundamental_Analysis
bc67eb1e69dcf6765c0b77314d37f7f165a7318f
[ "MIT" ]
11
2020-06-29T08:40:24.000Z
2022-02-24T17:39:16.000Z
import pytest import numpy as np from matplotlib import pyplot as plt @pytest.mark.backend('TkAgg', skip_on_importerror=True) def test_blit(): from matplotlib.backends import _tkagg def evil_blit(photoimage, aggimage, offsets, bboxptr): data = np.asarray(aggimage) height, width = data.shape[:2...
32.206897
74
0.493576
137ca232e9ce8d6913600a4978a0a45707c4320a
2,909
py
Python
src/olympia/reviews/templatetags/jinja_helpers.py
Osmose/olympia
774c3b927ec05ef971e4206e2669b4291b8b4f17
[ "BSD-3-Clause" ]
null
null
null
src/olympia/reviews/templatetags/jinja_helpers.py
Osmose/olympia
774c3b927ec05ef971e4206e2669b4291b8b4f17
[ "BSD-3-Clause" ]
null
null
null
src/olympia/reviews/templatetags/jinja_helpers.py
Osmose/olympia
774c3b927ec05ef971e4206e2669b4291b8b4f17
[ "BSD-3-Clause" ]
null
null
null
import jinja2 from django_jinja import library from django.template.loader import get_template from django.utils.translation import ugettext from olympia import amo from olympia.access import acl from olympia.reviews.models import ReviewFlag from .. import forms @library.filter def stars(num, large=False): # c...
33.436782
77
0.696116
ab3e250f158b4ed0173fe7715ee2559fe186d522
1,879
py
Python
qurator/sbb_ned/embeddings/bert.py
qurator-spk/sbb_ned
d4cfe249f72e48913f254a58fbe0dbe6e47bd168
[ "Apache-2.0" ]
6
2020-09-05T16:08:59.000Z
2022-03-05T00:54:47.000Z
qurator/sbb_ned/embeddings/bert.py
qurator-spk/sbb_ned
d4cfe249f72e48913f254a58fbe0dbe6e47bd168
[ "Apache-2.0" ]
6
2020-09-23T17:58:37.000Z
2022-03-10T14:02:09.000Z
qurator/sbb_ned/embeddings/bert.py
qurator-spk/sbb_ned
d4cfe249f72e48913f254a58fbe0dbe6e47bd168
[ "Apache-2.0" ]
2
2021-03-22T00:12:51.000Z
2022-01-31T10:04:08.000Z
from ..embeddings.base import Embeddings from flair.data import Sentence class BertEmbeddings(Embeddings): def __init__(self, model_path, layers="-1, -2, -3, -4", pooling_operation='first', use_scalar_mix=True, no_cuda=False, *args, **kwargs): super(BertEmbeddings, self).__init__(*args...
29.359375
122
0.585418
ebb8400c4a5e99a1aed5f9a3da92162ef02f6bef
59,835
py
Python
sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_06_01/operations/_blob_containers_operations.py
hurtn/azure-sdk-for-python
64cc053e589691da22fed7a47611199818c99b2b
[ "MIT" ]
1
2020-12-10T03:17:51.000Z
2020-12-10T03:17:51.000Z
sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_06_01/operations/_blob_containers_operations.py
hurtn/azure-sdk-for-python
64cc053e589691da22fed7a47611199818c99b2b
[ "MIT" ]
15
2019-07-12T18:18:04.000Z
2019-07-25T20:55:51.000Z
sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_06_01/operations/_blob_containers_operations.py
hurtn/azure-sdk-for-python
64cc053e589691da22fed7a47611199818c99b2b
[ "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 may ...
55.30037
297
0.68134
4efa8710121979d46fd0cdfe7a7d5cd6ec54bb3a
2,016
py
Python
venv/lib/python3.8/site-packages/vsts/build/v4_0/models/build_definition_revision.py
amcclead7336/Enterprise_Data_Science_Final
ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28
[ "Unlicense", "MIT" ]
null
null
null
venv/lib/python3.8/site-packages/vsts/build/v4_0/models/build_definition_revision.py
amcclead7336/Enterprise_Data_Science_Final
ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28
[ "Unlicense", "MIT" ]
null
null
null
venv/lib/python3.8/site-packages/vsts/build/v4_0/models/build_definition_revision.py
amcclead7336/Enterprise_Data_Science_Final
ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28
[ "Unlicense", "MIT" ]
2
2021-05-23T16:46:31.000Z
2021-05-26T23:51:09.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -----------------------------------------------------------------...
40.32
139
0.546131
3c41903c33289a8376f7df339b1faec5eddc1b2b
2,587
py
Python
projects/models.py
rkprajapat/construction-crm
ae70238862f3048e4b1b849f9c16bf1bdf867a28
[ "MIT" ]
null
null
null
projects/models.py
rkprajapat/construction-crm
ae70238862f3048e4b1b849f9c16bf1bdf867a28
[ "MIT" ]
11
2020-02-12T00:51:32.000Z
2022-03-11T23:57:22.000Z
projects/models.py
rkprajapat/construction-crm
ae70238862f3048e4b1b849f9c16bf1bdf867a28
[ "MIT" ]
null
null
null
from django.db import models from django.urls import reverse from django_countries.fields import CountryField from django.utils.text import slugify from mdm.models import ProjectStatus, UnitStatus from users.models import CustomUser class Project(models.Model): name = models.CharField(max_length=100, blank=False)...
35.438356
122
0.696946
15828be88e0e2efba05f5228f676397dc953ef50
5,291
py
Python
ITHACA_SEM_code/Nektar_data.py
Mopolino8/ITHACA-SEM
5ffdc13c9ecf14a51a6d044d567d3ec5f220efa0
[ "MIT" ]
null
null
null
ITHACA_SEM_code/Nektar_data.py
Mopolino8/ITHACA-SEM
5ffdc13c9ecf14a51a6d044d567d3ec5f220efa0
[ "MIT" ]
null
null
null
ITHACA_SEM_code/Nektar_data.py
Mopolino8/ITHACA-SEM
5ffdc13c9ecf14a51a6d044d567d3ec5f220efa0
[ "MIT" ]
1
2019-11-24T17:24:26.000Z
2019-11-24T17:24:26.000Z
import numpy as np """ runs using 1) python/3.3.2 2) numpy/1.11.1/python/3.3 3) scipy/0.17.1/python/3.3 module load python3/3.3.2 /scratch/mhess/py3p3/3.3 """ def convert(): print("Generating Parameter-independent terms.") f_IP = open('Nektar_data/IP.txt', 'r') f_IPp = open('Nektar_data...
36.239726
95
0.749008
1afba788cf6dd5a30ffab348eeb5a47653d384f9
274
py
Python
tests/artificial/transf_Integration/trend_MovingAverage/cycle_5/ar_12/test_artificial_32_Integration_MovingAverage_5_12_0.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
null
null
null
tests/artificial/transf_Integration/trend_MovingAverage/cycle_5/ar_12/test_artificial_32_Integration_MovingAverage_5_12_0.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
1
2019-11-30T23:39:38.000Z
2019-12-01T04:34:35.000Z
tests/artificial/transf_Integration/trend_MovingAverage/cycle_5/ar_12/test_artificial_32_Integration_MovingAverage_5_12_0.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
null
null
null
import pyaf.Bench.TS_datasets as tsds import pyaf.tests.artificial.process_artificial_dataset as art art.process_dataset(N = 32 , FREQ = 'D', seed = 0, trendtype = "MovingAverage", cycle_length = 5, transform = "Integration", sigma = 0.0, exog_count = 0, ar_order = 12);
39.142857
169
0.737226
72a12b17c30ad937907bbfe48a27937878657ea1
705
py
Python
operators/sampling/random_sampling.py
f4nku4n/MOENAS-TF-PSI
5e25df9143a09ffdcfbb4d03851b919aed60003a
[ "MIT" ]
null
null
null
operators/sampling/random_sampling.py
f4nku4n/MOENAS-TF-PSI
5e25df9143a09ffdcfbb4d03851b919aed60003a
[ "MIT" ]
null
null
null
operators/sampling/random_sampling.py
f4nku4n/MOENAS-TF-PSI
5e25df9143a09ffdcfbb4d03851b919aed60003a
[ "MIT" ]
null
null
null
from model.population import Population from utils import get_hashKey class RandomSampling: def __init__(self, nSamples=0): self.nSamples = nSamples def do(self, problem, **kwargs): problem_name = problem.name P = Population(self.nSamples) n = 0 P_hash_key = [] ...
27.115385
55
0.550355
580b8e37127e85e0caffc1105fc0229b3044289f
4,415
py
Python
moderngl_window/meta/program.py
DavideRuzza/moderngl-window
e9debc6ed4a1899aa83c0da2320e03b0c2922b80
[ "MIT" ]
142
2019-11-11T23:14:28.000Z
2022-03-29T08:37:03.000Z
moderngl_window/meta/program.py
DavideRuzza/moderngl-window
e9debc6ed4a1899aa83c0da2320e03b0c2922b80
[ "MIT" ]
107
2019-10-31T20:31:45.000Z
2022-03-23T15:01:41.000Z
moderngl_window/meta/program.py
DavideRuzza/moderngl-window
e9debc6ed4a1899aa83c0da2320e03b0c2922b80
[ "MIT" ]
36
2019-12-12T16:14:10.000Z
2022-01-18T22:58:21.000Z
from typing import List from moderngl_window.meta.base import ResourceDescription class ProgramDescription(ResourceDescription): """Describes a program to load By default a program can be loaded in the following ways: - By supplying a `path` to s single glsl file containing all shaders - B...
35.039683
83
0.598641
6b6275971c2c2c93ef056ea14daf1275cb7b38e2
11,053
py
Python
zoo/analytics/tasks/utils.py
aexvir/the-zoo
7816afb9a0a26c6058b030b4a987c73e952d92bd
[ "MIT" ]
90
2018-11-20T10:58:24.000Z
2022-02-19T16:12:46.000Z
zoo/analytics/tasks/utils.py
kiwicom/the-zoo
fee0108ea7b65112e5b572a146cff4b1c54033fd
[ "MIT" ]
348
2018-11-21T09:22:31.000Z
2021-11-03T13:45:08.000Z
zoo/analytics/tasks/utils.py
aexvir/the-zoo
7816afb9a0a26c6058b030b4a987c73e952d92bd
[ "MIT" ]
11
2018-12-08T18:42:07.000Z
2021-02-21T06:27:58.000Z
import re from typing import Optional import structlog log = structlog.get_logger() def parse_version(raw_version: str) -> str: """Resolve semantic versioning used in javascript packages.""" try: validate_version(raw_version) except ValueError: log.exception("analytics.utils.parse_versio...
35.088889
108
0.570252
fe9d3e970caa858bc4e75aa0dab31c4140a120ca
3,626
py
Python
tests/unit/test_sink/test_rdf_sink.py
kevinschaper/kgx
4c129428131047af4506a93fe8dc54fb92a7c702
[ "BSD-3-Clause" ]
null
null
null
tests/unit/test_sink/test_rdf_sink.py
kevinschaper/kgx
4c129428131047af4506a93fe8dc54fb92a7c702
[ "BSD-3-Clause" ]
null
null
null
tests/unit/test_sink/test_rdf_sink.py
kevinschaper/kgx
4c129428131047af4506a93fe8dc54fb92a7c702
[ "BSD-3-Clause" ]
null
null
null
import os import pytest import rdflib from kgx.sink import RdfSink from tests import TARGET_DIR from tests.unit.test_sink import get_graph def test_write_rdf1(): """ Write a graph as RDF N-Triples using RdfSink. """ graph = get_graph() filename = os.path.join(TARGET_DIR, 'test_graph1.nt') s...
27.263158
89
0.608384
200f5625d034013153bc777bbedae61457a783c6
4,626
py
Python
render_swap_matrix.py
EdwardJTL/Edit3D
bbb6364aeb5ea17c12c0c23578268641c066ebca
[ "MIT" ]
null
null
null
render_swap_matrix.py
EdwardJTL/Edit3D
bbb6364aeb5ea17c12c0c23578268641c066ebca
[ "MIT" ]
null
null
null
render_swap_matrix.py
EdwardJTL/Edit3D
bbb6364aeb5ea17c12c0c23578268641c066ebca
[ "MIT" ]
null
null
null
import math import numpy as np import os import torch from torch_ema import ExponentialMovingAverage from torchvision.utils import save_image from PIL import Image, ImageDraw, ImageFont import curriculums import network_config device = torch.device("cuda" if torch.cuda.is_available() else "cpu") def generate_imag...
30.235294
123
0.591224
54b12a6122c9dff8d73d6a2e803697e4ecfab3d5
19,926
py
Python
panel/interact.py
ahuang11/panel
a0e38316701cac5293da6de3441010c0ff5719da
[ "BSD-3-Clause" ]
null
null
null
panel/interact.py
ahuang11/panel
a0e38316701cac5293da6de3441010c0ff5719da
[ "BSD-3-Clause" ]
null
null
null
panel/interact.py
ahuang11/panel
a0e38316701cac5293da6de3441010c0ff5719da
[ "BSD-3-Clause" ]
null
null
null
""" Interact with functions using widgets. The interact Pane implemented in this module mirrors ipywidgets.interact in its API and implementation. Large parts of the code were copied directly from ipywidgets: Copyright (c) Jupyter Development Team and PyViz Development Team. Distributed under the terms of the Modifie...
37.954286
118
0.576383
700b6392a8bc4a75f74dacf5b43148ec6f4de8b3
521
py
Python
DDQN/FRED/a5.py
liu1355/dl_fin
9a4be858127be0daa96cc8bb5cfed9d14f7912b8
[ "MIT" ]
null
null
null
DDQN/FRED/a5.py
liu1355/dl_fin
9a4be858127be0daa96cc8bb5cfed9d14f7912b8
[ "MIT" ]
null
null
null
DDQN/FRED/a5.py
liu1355/dl_fin
9a4be858127be0daa96cc8bb5cfed9d14f7912b8
[ "MIT" ]
1
2018-04-11T06:15:00.000Z
2018-04-11T06:15:00.000Z
import csv import requests import pandas as pd FRED_CPILFESL = 'https://www.quandl.com/api/v3/datasets/FRED/CPILFESL/data.csv?api_key=6CbgFEPrywyyFy1yNywC' with requests.Session() as s: download = s.get(FRED_CPILFESL) decoded_content = download.content.decode('utf-8') cr = csv.reader(decoded_content.spl...
28.944444
108
0.731286
98761324df43b471ebdc74daef2d700e940612e6
9,689
py
Python
homeassistant/components/deconz/light.py
mtarjoianu/core
44e9146463ac505eb3d1c0651ad126cb25c28a54
[ "Apache-2.0" ]
1
2022-02-21T05:50:41.000Z
2022-02-21T05:50:41.000Z
homeassistant/components/deconz/light.py
mtarjoianu/core
44e9146463ac505eb3d1c0651ad126cb25c28a54
[ "Apache-2.0" ]
12
2021-12-16T06:18:49.000Z
2022-03-31T06:25:54.000Z
homeassistant/components/deconz/light.py
mtarjoianu/core
44e9146463ac505eb3d1c0651ad126cb25c28a54
[ "Apache-2.0" ]
1
2022-02-24T16:07:32.000Z
2022-02-24T16:07:32.000Z
"""Support for deCONZ lights.""" from __future__ import annotations from typing import Any from pydeconz.group import Group from pydeconz.light import ( ALERT_LONG, ALERT_SHORT, EFFECT_COLOR_LOOP, EFFECT_NONE, Light, ) from homeassistant.components.light import ( ATTR_BRIGHTNESS, ATTR_COL...
32.082781
86
0.642068
e3822edef58c9c1b83da3c56eeef242e031e0b17
1,917
py
Python
results/lmg_different_spinnumbers_20190228/script_lmg_doublebang_powell_150spins.py
lucainnocenti/ultrafast-critical-ground-state-preparation-2007.07381
29f80dcf914096555cee9bc2e18249a2c95d6a50
[ "MIT" ]
1
2020-07-21T02:31:41.000Z
2020-07-21T02:31:41.000Z
results/lmg_different_spinnumbers_20190228/script_lmg_doublebang_powell_150spins.py
lucainnocenti/ultrafast-critical-ground-state-preparation-2007.07381
29f80dcf914096555cee9bc2e18249a2c95d6a50
[ "MIT" ]
null
null
null
results/lmg_different_spinnumbers_20190228/script_lmg_doublebang_powell_150spins.py
lucainnocenti/ultrafast-critical-ground-state-preparation-2007.07381
29f80dcf914096555cee9bc2e18249a2c95d6a50
[ "MIT" ]
null
null
null
import os import sys import numpy as np import pandas as pd import logging if '../../' not in sys.path: sys.path.append('../../') import src.optimization as optimization model = 'lmg' model_parameters = dict(num_spins=150) protocol = 'doublebang' optimization_method = 'Powell' # ------ build and check name for...
29.045455
70
0.708399
a19ecaa9abeb8d066fa8d0ddcc3af644e28e747b
13,958
py
Python
PyCommon/modules/Motion/ysBipedAnalysis.py
snumrl/DataDrivenBipedController
68ecaa17790ebf3039ae8c0b91d21fab4829bb8c
[ "Apache-2.0", "MIT" ]
7
2018-08-17T10:25:56.000Z
2021-09-01T11:28:56.000Z
PyCommon/modules/Motion/ysBipedAnalysis.py
snumrl/DataDrivenBipedController
68ecaa17790ebf3039ae8c0b91d21fab4829bb8c
[ "Apache-2.0", "MIT" ]
null
null
null
PyCommon/modules/Motion/ysBipedAnalysis.py
snumrl/DataDrivenBipedController
68ecaa17790ebf3039ae8c0b91d21fab4829bb8c
[ "Apache-2.0", "MIT" ]
5
2017-01-05T09:22:58.000Z
2021-07-26T15:13:19.000Z
# +------------------------------------------------------------------------- # | ysBipedAnalysis.py # | # | Author: Yoonsang Lee # +------------------------------------------------------------------------- # | COPYRIGHT: # | Copyright Yoonsang Lee 2013 # | See the included COPYRIGHT.txt file for further de...
42.042169
136
0.616707
1c22fb8e6b7882a97f0d08c0dc1552022758f3a3
3,644
py
Python
vsgia_model/models/gazenet.py
nkuhzx/VSG-IA
075b58c2bf89562cc197e721f050396589861c6a
[ "Apache-2.0" ]
null
null
null
vsgia_model/models/gazenet.py
nkuhzx/VSG-IA
075b58c2bf89562cc197e721f050396589861c6a
[ "Apache-2.0" ]
null
null
null
vsgia_model/models/gazenet.py
nkuhzx/VSG-IA
075b58c2bf89562cc197e721f050396589861c6a
[ "Apache-2.0" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F import numpy as np from vsgia_model.models.scenepathway import SceneNet from vsgia_model.models.headpathway import HeadNet from vsgia_model.models.vsgat import GraphDealModule from vsgia_model.models.decoder import HeatmapDecoder,InoutDecoder from vs...
33.127273
128
0.692371
e406cab11849df8fe2ebeee1593d7edcf9771c35
10,127
py
Python
teafacto/scripts/atis/atisseqtrans.py
lukovnikov/teafacto
5e863df8d061106ad705c0837f2d2ca4e08db0e4
[ "MIT" ]
2
2016-06-28T23:41:42.000Z
2017-01-14T12:41:36.000Z
teafacto/scripts/atis/atisseqtrans.py
lukovnikov/teafacto
5e863df8d061106ad705c0837f2d2ca4e08db0e4
[ "MIT" ]
1
2016-04-20T20:09:20.000Z
2016-08-17T19:02:47.000Z
teafacto/scripts/atis/atisseqtrans.py
lukovnikov/teafacto
5e863df8d061106ad705c0837f2d2ca4e08db0e4
[ "MIT" ]
5
2016-07-18T17:05:18.000Z
2018-10-13T05:40:05.000Z
import pickle import numpy as np import os import theano from theano import tensor as TT from teafacto.blocks.seq.trans import SimpleSeqTrans #from teafacto.blocks.seq.oldseqproc import SimpleSeqTransducer as SimpleSeqTrans from teafacto.blocks.seq.rnu import GRU from teafacto.blocks.basic import Softmax from teafact...
35.533333
179
0.59761
f9c40a9173e451d4d42765eb25e7ade7ff3c26fc
294
py
Python
output/models/nist_data/atomic/unsigned_int/schema_instance/nistschema_sv_iv_atomic_unsigned_int_max_inclusive_5_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/nist_data/atomic/unsigned_int/schema_instance/nistschema_sv_iv_atomic_unsigned_int_max_inclusive_5_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/nist_data/atomic/unsigned_int/schema_instance/nistschema_sv_iv_atomic_unsigned_int_max_inclusive_5_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from output.models.nist_data.atomic.unsigned_int.schema_instance.nistschema_sv_iv_atomic_unsigned_int_max_inclusive_5_xsd.nistschema_sv_iv_atomic_unsigned_int_max_inclusive_5 import NistschemaSvIvAtomicUnsignedIntMaxInclusive5 __all__ = [ "NistschemaSvIvAtomicUnsignedIntMaxInclusive5", ]
49
226
0.908163
112bfdbc296142da194e58ddc0600b4aeb452536
25,093
py
Python
selfdrive/car/honda/interface.py
TMORI135/openpilot
bc986477eb34f554933caafeac71538c57fb6838
[ "MIT" ]
65
2019-07-27T11:27:02.000Z
2022-02-03T09:10:38.000Z
selfdrive/car/honda/interface.py
TMORI135/openpilot
bc986477eb34f554933caafeac71538c57fb6838
[ "MIT" ]
41
2018-08-01T17:36:08.000Z
2020-12-16T02:42:57.000Z
selfdrive/car/honda/interface.py
TMORI135/openpilot
bc986477eb34f554933caafeac71538c57fb6838
[ "MIT" ]
229
2019-07-27T20:31:02.000Z
2021-09-21T11:02:49.000Z
#!/usr/bin/env python3 import numpy as np from cereal import car from common.numpy_fast import clip, interp from common.realtime import DT_CTRL from selfdrive.swaglog import cloudlog from selfdrive.config import Conversions as CV from selfdrive.controls.lib.events import ET from selfdrive.car.honda.values import Cruise...
43.868881
144
0.654724
f4eb7eab9ac7d24a5769c0e2c707eee23cf45891
16,588
py
Python
access_course/views.py
monishnarwani/access_course
0f262f381768fbe8f1a77ca861d1c2efd57c76f7
[ "CNRI-Python", "RSA-MD", "OML" ]
null
null
null
access_course/views.py
monishnarwani/access_course
0f262f381768fbe8f1a77ca861d1c2efd57c76f7
[ "CNRI-Python", "RSA-MD", "OML" ]
null
null
null
access_course/views.py
monishnarwani/access_course
0f262f381768fbe8f1a77ca861d1c2efd57c76f7
[ "CNRI-Python", "RSA-MD", "OML" ]
null
null
null
import json import logging from django.conf import settings from django.http import HttpResponse from django.contrib.auth.models import User from django.contrib.auth import login as django_login, backends from django.shortcuts import redirect from django.views import View from .validations import get_course_key...
39.779376
155
0.619122
6a0802ab38d61c8e4b6bd25e75e43996ffd2df58
809
py
Python
suorganizer/manage.py
jmcevoy1984/Django-Unleashed
8c9014ee3bf271dcd86727c131184f7348af75d8
[ "MIT" ]
null
null
null
suorganizer/manage.py
jmcevoy1984/Django-Unleashed
8c9014ee3bf271dcd86727c131184f7348af75d8
[ "MIT" ]
null
null
null
suorganizer/manage.py
jmcevoy1984/Django-Unleashed
8c9014ee3bf271dcd86727c131184f7348af75d8
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "suorganizer.settings") try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for some other reason. Ensure that ...
35.173913
77
0.644005
82615d7b86bdb7e4883c5908d1a5476f75819c2c
79,331
py
Python
Lab6_python/ssd.py
kmodrick/pynq_v0
f4a1a71f76f5d3b1fe0aefca0ed3a9e37c21879d
[ "BSD-3-Clause" ]
null
null
null
Lab6_python/ssd.py
kmodrick/pynq_v0
f4a1a71f76f5d3b1fe0aefca0ed3a9e37c21879d
[ "BSD-3-Clause" ]
null
null
null
Lab6_python/ssd.py
kmodrick/pynq_v0
f4a1a71f76f5d3b1fe0aefca0ed3a9e37c21879d
[ "BSD-3-Clause" ]
null
null
null
""" The code module ssd.py was developed to accompany the book Signals and Systems for Dummies published by Wiley Publishing. Copyright 2012, 2013 Mark Wickert, mwickert@uccs.edu v 1.0 Notes ----- The primary purpose of this function library is to support the book Signals and Systems for Dummies. Beyond that it shou...
30.796196
362
0.578803
b45ab968fcd225e68781d4a3bdce360cca46e12b
1,471
py
Python
tests/python/test_stop_grad.py
rezahojabr/taichi
122c0352ec480b740a4118819458cbf08d2e5ddb
[ "MIT" ]
3
2020-01-08T02:58:51.000Z
2020-10-28T07:01:58.000Z
tests/python/test_stop_grad.py
rezahojabr/taichi
122c0352ec480b740a4118819458cbf08d2e5ddb
[ "MIT" ]
null
null
null
tests/python/test_stop_grad.py
rezahojabr/taichi
122c0352ec480b740a4118819458cbf08d2e5ddb
[ "MIT" ]
1
2020-03-25T16:37:00.000Z
2020-03-25T16:37:00.000Z
import taichi as ti @ti.all_archs def test_normal_grad(): x = ti.var(ti.f32) loss = ti.var(ti.f32) n = 128 @ti.layout def place(): ti.root.dense(ti.i, n).place(x) ti.root.place(loss) ti.root.lazy_grad() @ti.kernel def func(): for i in range(n): ti.atomic_add(loss, x[i]**2) fo...
15.98913
46
0.563562
c8daf392a90a1460c4e64893c8e214df4c2a85d9
417
py
Python
medical_prescription/user/admin.py
thiagonf/Sprint-3-GPP
89f1dcf4e649f1bbbb8e21ea6b6f8a4565c996e2
[ "MIT" ]
null
null
null
medical_prescription/user/admin.py
thiagonf/Sprint-3-GPP
89f1dcf4e649f1bbbb8e21ea6b6f8a4565c996e2
[ "MIT" ]
2
2020-06-05T18:41:29.000Z
2021-06-10T20:35:12.000Z
medical_prescription/user/admin.py
thiagonf/Sprint-3-GPP
89f1dcf4e649f1bbbb8e21ea6b6f8a4565c996e2
[ "MIT" ]
null
null
null
# Django from django.contrib import admin from .models import ( User, HealthProfessional, Patient, UserActivateProfile, ResetPasswordProfile ) class UserAdmin(admin.ModelAdmin): list_display = ['email', 'is_active'] admin.site.register(User, UserAdmin) admin.site.register(HealthProfessional) admin.site.regi...
24.529412
80
0.803357
120868393ba9ea0dd010929d4aa3549887ad341d
2,359
py
Python
blog/models.py
tarek1500/Python-Blog
d9e8e90c20ad5906139b1468e4d195038dfbfc11
[ "MIT" ]
null
null
null
blog/models.py
tarek1500/Python-Blog
d9e8e90c20ad5906139b1468e4d195038dfbfc11
[ "MIT" ]
5
2020-02-27T18:12:25.000Z
2020-02-27T22:43:52.000Z
blog/models.py
tarek1500/Python-Blog
d9e8e90c20ad5906139b1468e4d195038dfbfc11
[ "MIT" ]
1
2020-05-16T00:34:02.000Z
2020-05-16T00:34:02.000Z
from django.db import models from django.contrib.auth.models import User import re # Create your models here. def stringify(self): return self.first_name + ' ' + self.last_name User.add_to_class('__str__', stringify) class Category(models.Model): name = models.CharField(max_length = 100) subscribe = models.ManyT...
31.453333
104
0.751166
f2573ca35fc374ec3cff6eca72a4f0b6f5f93549
712
py
Python
coding-exercises-avairds/week4-edge-pyramids- contours/part1-edge-pyramids/sobel-operator.py
KyawThuHtun/OpenCV-with-Python
2c471060d4f2aa4ec45cda5f544a61923e4ea2ed
[ "MIT" ]
2
2021-06-30T04:56:51.000Z
2021-06-30T04:57:11.000Z
coding-exercises-avairds/week4-edge-pyramids- contours/part1-edge-pyramids/sobel-operator.py
KyawThuHtun/OpenCV-with-Python
2c471060d4f2aa4ec45cda5f544a61923e4ea2ed
[ "MIT" ]
null
null
null
coding-exercises-avairds/week4-edge-pyramids- contours/part1-edge-pyramids/sobel-operator.py
KyawThuHtun/OpenCV-with-Python
2c471060d4f2aa4ec45cda5f544a61923e4ea2ed
[ "MIT" ]
6
2020-08-03T02:29:48.000Z
2020-08-09T13:21:23.000Z
import cv2 as cv import numpy as np from matplotlib import pyplot as plt img = cv.imread("sudoku1.jpg", cv.IMREAD_GRAYSCALE) # read image as grayscale sobelX = cv.Sobel(img, cv.CV_64F, 1, 0) # derivative with intensities along x direction sobelY = cv.Sobel(img, cv.CV_64F, 0, 1) # derivative with intensities along ...
30.956522
88
0.703652
ba6b16a5bc12e5d07e067ae56db8bc395143af3d
1,008
py
Python
details_generator.py
Emotional-Support/discordaltgen
7be376dc372258d824fdabb3edac07ebeba6e8d9
[ "Apache-2.0" ]
null
null
null
details_generator.py
Emotional-Support/discordaltgen
7be376dc372258d824fdabb3edac07ebeba6e8d9
[ "Apache-2.0" ]
null
null
null
details_generator.py
Emotional-Support/discordaltgen
7be376dc372258d824fdabb3edac07ebeba6e8d9
[ "Apache-2.0" ]
null
null
null
import random def rand_gen_email(): email = "".join(random.choice("abcdefghijklmnopqrstuvwxyz1234567890") for _ in range(10)) return email def rand_gen_user(): username = "".join(random.choice("abcdefghijklmnopqrstuvwxyz1234567890") for _ in range(10)) return username def rand_gen_pass(): pass...
22.909091
96
0.679563
32c77b7664d10c25be334946ad452799fc0f6fce
85,570
py
Python
python3-virtualenv/lib/python3.8/site-packages/sqlalchemy/dialects/oracle/base.py
bbalkaransingh23888/OrientationHack
7eae6cce1226112c000ea8a175f6dc5a82ee0ac2
[ "MIT" ]
null
null
null
python3-virtualenv/lib/python3.8/site-packages/sqlalchemy/dialects/oracle/base.py
bbalkaransingh23888/OrientationHack
7eae6cce1226112c000ea8a175f6dc5a82ee0ac2
[ "MIT" ]
null
null
null
python3-virtualenv/lib/python3.8/site-packages/sqlalchemy/dialects/oracle/base.py
bbalkaransingh23888/OrientationHack
7eae6cce1226112c000ea8a175f6dc5a82ee0ac2
[ "MIT" ]
null
null
null
# oracle/base.py # Copyright (C) 2005-2021 the SQLAlchemy authors and contributors # <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php r""" .. dialect:: oracle :name: Oracle :full_support: 11.2, 18c :normal_s...
34.983647
88
0.606685
00ca64f892f149d7e713a3d92d09bc63e2ff734d
1,108
py
Python
utils/bitsmaker.py
tmichalak/prjuray
53f3c94b58ffc6d405ac20a3b340ae726717ed47
[ "0BSD" ]
39
2020-07-17T19:43:40.000Z
2022-01-07T02:05:48.000Z
utils/bitsmaker.py
tmichalak/prjuray
53f3c94b58ffc6d405ac20a3b340ae726717ed47
[ "0BSD" ]
24
2020-07-17T20:15:54.000Z
2022-01-21T08:29:51.000Z
utils/bitsmaker.py
tmichalak/prjuray
53f3c94b58ffc6d405ac20a3b340ae726717ed47
[ "0BSD" ]
11
2020-07-17T19:43:45.000Z
2022-02-09T08:43:23.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Copyright (C) 2020 The Project U-Ray Authors. # # Use of this source code is governed by a ISC-style # license that can be found in the LICENSE file or at # https://opensource.org/licenses/ISC # # SPDX-License-Identifier: ISC from utils import bitstream def write(b...
25.181818
66
0.597473