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
009f6b1a613b48fef08feed7dcce611242ef68e4
498
py
Python
source/codegen/metadata/nixnetsocket/__init__.py
reckenro/grpc-device
c05a4a061e6578a22ca1494438f24c437e34edd7
[ "MIT" ]
null
null
null
source/codegen/metadata/nixnetsocket/__init__.py
reckenro/grpc-device
c05a4a061e6578a22ca1494438f24c437e34edd7
[ "MIT" ]
null
null
null
source/codegen/metadata/nixnetsocket/__init__.py
reckenro/grpc-device
c05a4a061e6578a22ca1494438f24c437e34edd7
[ "MIT" ]
null
null
null
from .functions import functions from .functions_addon import functions_validation_suppressions from .attributes import attributes from .enums_addon import enums_validation_suppressions from .enums import enums from .config import config metadata = { "functions": functions, "functions_validation_suppressions":...
31.125
75
0.803213
53524ef74bdc2ec2fc6cd8b68f01866d95a85889
6,358
py
Python
task.py
ishashukla183/to-do-cli-app
9964c4e1af2370b55aa7b545f858275c25b7835e
[ "MIT" ]
null
null
null
task.py
ishashukla183/to-do-cli-app
9964c4e1af2370b55aa7b545f858275c25b7835e
[ "MIT" ]
null
null
null
task.py
ishashukla183/to-do-cli-app
9964c4e1af2370b55aa7b545f858275c25b7835e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import sys import os.path dict = {} def readtasks(): global dict if os.path.isfile('task.txt'): with open("task.txt", 'r') as task_f : lines = task_f.readlines() for line in lines: line.strip() ...
31.166667
113
0.536804
f3f8c89f0fa5c119efb8c917dd03f0260878366e
2,487
py
Python
models/fedsp/har/HAR.py
tdye24/LightningFL
48bb4a452082411e051cdb3a2e98ede6bbc91bbf
[ "Apache-2.0" ]
null
null
null
models/fedsp/har/HAR.py
tdye24/LightningFL
48bb4a452082411e051cdb3a2e98ede6bbc91bbf
[ "Apache-2.0" ]
null
null
null
models/fedsp/har/HAR.py
tdye24/LightningFL
48bb4a452082411e051cdb3a2e98ede6bbc91bbf
[ "Apache-2.0" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F class HAR(nn.Module): def __init__(self): super(HAR, self).__init__() self.shared_encoder = nn.Sequential( nn.Conv1d(in_channels=1, out_channels=16, kernel_size=2, stride=1, padding=2), nn.ReLU(inp...
36.043478
92
0.55971
72087aa438fca690fcc16a9051804e88130de008
782,761
py
Python
cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_skp_qos_oper.py
tkamata-test/ydk-py
b637e7853a8edbbd31fbc05afa3aa4110b31c5f9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_skp_qos_oper.py
tkamata-test/ydk-py
b637e7853a8edbbd31fbc05afa3aa4110b31c5f9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_skp_qos_oper.py
tkamata-test/ydk-py
b637e7853a8edbbd31fbc05afa3aa4110b31c5f9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
""" Cisco_IOS_XR_skp_qos_oper This module contains a collection of YANG definitions for Cisco IOS\-XR skp\-qos package operational data. This module contains definitions for the following management objects\: platform\-qos\: QoS Skywarp platform operational data platform\-qos\-ea\: platform qos ea Copyright (c...
56.253036
322
0.332851
9278a422e77329b82c3e44ab8cd7787c41ce569b
2,795
py
Python
visualization.py
wconnell/siamese-triplet
54296bac5bdd861dc4f43c37a5024de8d285afaa
[ "BSD-3-Clause" ]
null
null
null
visualization.py
wconnell/siamese-triplet
54296bac5bdd861dc4f43c37a5024de8d285afaa
[ "BSD-3-Clause" ]
null
null
null
visualization.py
wconnell/siamese-triplet
54296bac5bdd861dc4f43c37a5024de8d285afaa
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import pandas as pd import torch import seaborn as sns import matplotlib.pyplot as plt def plot_embeddings(embeddings, targets, classes, xlim=None, ylim=None): cuda = torch.cuda.is_available() np.random.seed(7) colors = sns.color_palette("Paired") col_order = [ 5, 1, 7, 9, 2, 10,...
37.77027
101
0.61288
b070569fef8fa10a4c657d5d7f960c55537ee893
1,955
py
Python
config.py
MarwanHalabi/telegram-bot-hackathon-live-score
c5ea399db9fa498030bcd59b55c2ff6c1c597fdf
[ "MIT" ]
1
2020-03-18T11:10:07.000Z
2020-03-18T11:10:07.000Z
config.py
MarwanHalabi/telegram-bot-hackathon-live-score
c5ea399db9fa498030bcd59b55c2ff6c1c597fdf
[ "MIT" ]
null
null
null
config.py
MarwanHalabi/telegram-bot-hackathon-live-score
c5ea399db9fa498030bcd59b55c2ff6c1c597fdf
[ "MIT" ]
null
null
null
import pymysql import datetime connection = pymysql.connect( host="localhost", user="root", password="Mh081263", db="league", charset="utf8", cursorclass=pymysql.cursors.DictCursor ) keyboard = [ ["List today matches"], ["Subscribe for match"],["Subscribe future matches"], ["Unsubscribe"] ...
42.5
111
0.653708
d8c159b9ca154ffa7585f6e25b0800d2992e6539
8,318
py
Python
all_rt/webcam_ort_trt/codes/onnx_trt_webcam.py
briliantnugraha/briliantnugraha.github.io
369cce82b176e79876e6dbdeb5d698252123921b
[ "Apache-2.0" ]
1
2022-01-16T09:33:19.000Z
2022-01-16T09:33:19.000Z
all_rt/webcam_ort_trt/codes/onnx_trt_webcam.py
briliantnugraha/briliantnugraha.github.io
369cce82b176e79876e6dbdeb5d698252123921b
[ "Apache-2.0" ]
null
null
null
all_rt/webcam_ort_trt/codes/onnx_trt_webcam.py
briliantnugraha/briliantnugraha.github.io
369cce82b176e79876e6dbdeb5d698252123921b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Jan 28 20:32:25 2022 @author: brili """ import cv2 from time import time import numpy as np import sys import os curr_dir = os.path.dirname(os.path.abspath(__file__)) trt_main_complete_path = os.path.join(curr_dir, '..', '..', 'understand_trt_complete', 'tensorrt_expl_compl...
43.098446
154
0.560832
6495f8402466d6765d31265f4c23fbf675490aab
1,560
py
Python
python/looker_sdk/rtl/constants.py
waltaro/sdk-codegen
d5f36c9a11b51a755a2ed4b8f0eb69f77cb05b62
[ "MIT" ]
null
null
null
python/looker_sdk/rtl/constants.py
waltaro/sdk-codegen
d5f36c9a11b51a755a2ed4b8f0eb69f77cb05b62
[ "MIT" ]
null
null
null
python/looker_sdk/rtl/constants.py
waltaro/sdk-codegen
d5f36c9a11b51a755a2ed4b8f0eb69f77cb05b62
[ "MIT" ]
null
null
null
# The MIT License (MIT) # # Copyright (c) 2019 Looker Data Sciences, Inc. # # 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 u...
43.333333
86
0.749359
bb661b04aaa3c219e44442a99cd520db54a81eef
1,934
py
Python
src/luna1/col4/handle_anchor_earn.py
hodgerpodger/staketaxcsv
d341fc8e54225aafd5401e89daaf9b71cdb1e1a4
[ "MIT" ]
140
2021-12-11T23:37:46.000Z
2022-03-29T23:04:36.000Z
src/luna1/col4/handle_anchor_earn.py
hodgerpodger/staketaxcsv
d341fc8e54225aafd5401e89daaf9b71cdb1e1a4
[ "MIT" ]
80
2021-12-17T15:13:47.000Z
2022-03-31T13:33:53.000Z
src/luna1/col4/handle_anchor_earn.py
hodgerpodger/staketaxcsv
d341fc8e54225aafd5401e89daaf9b71cdb1e1a4
[ "MIT" ]
52
2021-12-12T00:37:17.000Z
2022-03-29T23:25:09.000Z
from luna1 import util_terra from luna1.constants import CUR_AUST, CUR_UST from luna1.col4.handle_simple import handle_unknown from luna1.make_tx import make_swap_tx_terra def _exchange_rate(ust, aust): return ust / aust def handle_anchor_earn_deposit(exporter, elem, txinfo): from_contract = util_terra._eve...
37.192308
102
0.738366
1f0d11764a1160d935a2fbafa5cfd872c96d686b
1,502
py
Python
CanvasData/Old/CanvasData_DownloadFiles.py
nickyrucker1979/Canvas-Data
15e8d52664025b6ba4b34aa4551d8beefc9190d8
[ "MIT" ]
null
null
null
CanvasData/Old/CanvasData_DownloadFiles.py
nickyrucker1979/Canvas-Data
15e8d52664025b6ba4b34aa4551d8beefc9190d8
[ "MIT" ]
null
null
null
CanvasData/Old/CanvasData_DownloadFiles.py
nickyrucker1979/Canvas-Data
15e8d52664025b6ba4b34aa4551d8beefc9190d8
[ "MIT" ]
null
null
null
# This script downloads the files from the Canvas Data portal # python scripts errors out reading some of the larger files import os from canvas_data.api import CanvasDataAPI import config_CanvasData as CanvasDataConfig import pandas as pd API_KEY = CanvasDataConfig.api_key API_SECRET = CanvasDataConfig.api_secret c...
39.526316
124
0.756325
e2164444c324f12763597ec2fd76b2b02457d7cd
16,685
py
Python
flash/core/integrations/labelstudio/input.py
Actis92/lightning-flash
49972268cfc0f95f1bd2b8fbf25036970cc44b59
[ "Apache-2.0" ]
1,457
2021-01-28T20:40:16.000Z
2022-03-31T06:22:05.000Z
flash/core/integrations/labelstudio/input.py
Actis92/lightning-flash
49972268cfc0f95f1bd2b8fbf25036970cc44b59
[ "Apache-2.0" ]
1,123
2021-01-28T20:37:56.000Z
2022-03-31T19:34:44.000Z
flash/core/integrations/labelstudio/input.py
Actis92/lightning-flash
49972268cfc0f95f1bd2b8fbf25036970cc44b59
[ "Apache-2.0" ]
170
2021-01-29T00:41:39.000Z
2022-03-29T16:09:52.000Z
import json import os from copy import deepcopy from dataclasses import dataclass from pathlib import Path from typing import Any, Dict, List, Mapping, Optional, Sequence, Set, Type import numpy as np import torch from pytorch_lightning.utilities.cloud_io import get_filesystem from pytorch_lightning.utilities.exceptio...
39.258824
119
0.599281
0c102f0b9385e0574c1590d762a3d9c6b9583ef7
817
py
Python
wagtailsharing/migrations/0002_shareableroutablepage.py
spapas/wagtail-sharing
2576dd7303328cf004d609b3b774dee43a864ead
[ "CC0-1.0" ]
43
2017-01-10T17:26:02.000Z
2022-03-23T08:09:50.000Z
wagtailsharing/migrations/0002_shareableroutablepage.py
spapas/wagtail-sharing
2576dd7303328cf004d609b3b774dee43a864ead
[ "CC0-1.0" ]
25
2017-01-13T20:27:56.000Z
2022-03-10T15:55:51.000Z
wagtailsharing/migrations/0002_shareableroutablepage.py
spapas/wagtail-sharing
2576dd7303328cf004d609b3b774dee43a864ead
[ "CC0-1.0" ]
12
2017-01-31T20:47:50.000Z
2021-11-03T09:38:06.000Z
# Generated by Django 2.2.16 on 2021-01-06 15:40 from django.db import migrations, models import django.db.models.deletion import wagtailsharing.models class Migration(migrations.Migration): dependencies = [ ('wagtailcore', '0040_page_draft_title'), ('wagtailsharing', '0001_initial'), ] ...
30.259259
191
0.631579
e99023e899b8a365bad40e4f3da7f91157c13c2b
8,279
py
Python
source/playbooks/CIS/lambda/cis29.py
chandinipenmetsa/aws-security-hub-automated-response-and-remediation
6a3bd420c8caf71b54f8a7bcc592151939838bcc
[ "Apache-2.0" ]
null
null
null
source/playbooks/CIS/lambda/cis29.py
chandinipenmetsa/aws-security-hub-automated-response-and-remediation
6a3bd420c8caf71b54f8a7bcc592151939838bcc
[ "Apache-2.0" ]
null
null
null
source/playbooks/CIS/lambda/cis29.py
chandinipenmetsa/aws-security-hub-automated-response-and-remediation
6a3bd420c8caf71b54f8a7bcc592151939838bcc
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python ############################################################################### # Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # # # Licensed under the Apache License Version 2.0 (the "License...
38.868545
172
0.57048
01185d8afd98fdce145ca1fb9609775ef6fc8db6
232
py
Python
Django/ffs/choices.py
vedantpuri/cs326-teamH
49eb51cebe603d410706f20d70be8373fbb63088
[ "MIT" ]
4
2018-07-23T17:32:50.000Z
2018-08-03T12:04:31.000Z
Django/ffs/choices.py
vedantpuri/cs326-teamH
49eb51cebe603d410706f20d70be8373fbb63088
[ "MIT" ]
34
2018-02-07T19:30:00.000Z
2018-04-20T01:12:40.000Z
Django/ffs/choices.py
vedantpuri/ffs-web
49eb51cebe603d410706f20d70be8373fbb63088
[ "MIT" ]
5
2018-07-24T19:32:03.000Z
2020-06-21T12:23:59.000Z
Colleges = ( ('u', 'Umass Amherst'), ('a', 'Amherst College'), ('s', 'Smith College'), ('m', 'Mount Holyoke College'), ('h', 'Hampshire College'), ) Availability = ( ('a', 'Available'), ('s', 'Sold'), )
17.846154
35
0.487069
43b4e1375ab9118bf9358183a7e23f372290b438
22,866
py
Python
pybaqus/model.py
caiuamelo/pybaqus
d5ebac65a195ced48ab279831fe1ee53412a651f
[ "MIT" ]
null
null
null
pybaqus/model.py
caiuamelo/pybaqus
d5ebac65a195ced48ab279831fe1ee53412a651f
[ "MIT" ]
null
null
null
pybaqus/model.py
caiuamelo/pybaqus
d5ebac65a195ced48ab279831fe1ee53412a651f
[ "MIT" ]
null
null
null
""" Definitions of classes that define the imported model """ import numpy as np from pyvista import UnstructuredGrid from .step import Step from .faces import RigidSurface, DeformableSurface, Face from .elements import N_INT_PNTS class Model: """Class for the model. This contains all the information of the ...
28.056442
103
0.54229
68cdeac011093f827c207fb349c7fb5b07aeb336
451
py
Python
movingpandas/time_range_utils.py
stevemarin/movingpandas
0e35e4087b8ca79ab3193130321b324cc6446184
[ "BSD-3-Clause" ]
null
null
null
movingpandas/time_range_utils.py
stevemarin/movingpandas
0e35e4087b8ca79ab3193130321b324cc6446184
[ "BSD-3-Clause" ]
null
null
null
movingpandas/time_range_utils.py
stevemarin/movingpandas
0e35e4087b8ca79ab3193130321b324cc6446184
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- class TemporalRange: def __init__(self, t_0, t_n): self.t_0 = t_0 self.t_n = t_n class SpatioTemporalRange: def __init__(self, pt_0, pt_n, t_0, t_n): self.pt_0 = pt_0 self.pt_n = pt_n self.t_0 = t_0 self.t_n = t_n class TemporalRangeW...
19.608696
45
0.576497
84a600300fc3a5581bb86b4bd58f17661bbcf660
1,341
py
Python
code/MUSES_decompress_from_file_v2.py
NASA-TROPESS/tropess_compression
76b3762bf88d514c55540d2458929065616fb176
[ "Apache-2.0" ]
null
null
null
code/MUSES_decompress_from_file_v2.py
NASA-TROPESS/tropess_compression
76b3762bf88d514c55540d2458929065616fb176
[ "Apache-2.0" ]
null
null
null
code/MUSES_decompress_from_file_v2.py
NASA-TROPESS/tropess_compression
76b3762bf88d514c55540d2458929065616fb176
[ "Apache-2.0" ]
null
null
null
import h5py import numpy as np import argparse import sys from MUSES_compression_v2 import Multiple_Sounding_Decompression def main(args): filename = args.filename data_file_orig = h5py.File(filename, 'r') data_file_new = h5py.File(filename[:-18] + '_decompressed_v2.hdf', 'w') def replica...
30.477273
92
0.653244
b5b75d387753a9e3e2c8ff6c691d836c26807259
5,154
py
Python
beginner_source/blitz/tensor_tutorial.py
yuhonghong66/tutorials-1
59185f9290a76317f112b634bd0a45a0561024f2
[ "BSD-3-Clause" ]
10
2021-08-31T07:41:08.000Z
2022-03-24T07:17:13.000Z
beginner_source/blitz/tensor_tutorial.py
yuhonghong66/tutorials-1
59185f9290a76317f112b634bd0a45a0561024f2
[ "BSD-3-Clause" ]
null
null
null
beginner_source/blitz/tensor_tutorial.py
yuhonghong66/tutorials-1
59185f9290a76317f112b634bd0a45a0561024f2
[ "BSD-3-Clause" ]
8
2021-01-27T17:12:12.000Z
2022-02-13T23:42:46.000Z
# -*- coding: utf-8 -*- """ What is PyTorch? ================ It’s a Python-based scientific computing package targeted at two sets of audiences: - A replacement for NumPy to use the power of GPUs - a deep learning research platform that provides maximum flexibility and speed Getting Started --------------- Te...
27.709677
84
0.507761
7b153f69de46c3f00464caa4122654bb3c517f31
107,032
py
Python
modules/s3db/dc.py
himansu1997/eden
1e2cf2b00f55da46b1ce3e6b7ad44b5345d7a1dc
[ "MIT" ]
null
null
null
modules/s3db/dc.py
himansu1997/eden
1e2cf2b00f55da46b1ce3e6b7ad44b5345d7a1dc
[ "MIT" ]
null
null
null
modules/s3db/dc.py
himansu1997/eden
1e2cf2b00f55da46b1ce3e6b7ad44b5345d7a1dc
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Sahana Eden Data Collection Models - a front-end UI to manage Assessments which uses the Dynamic Tables back-end @copyright: 2014-2021 (c) Sahana Software Foundation @license: MIT Permission is hereby granted, free of charge, to any person obtaining a copy of thi...
42.155179
177
0.432151
ca4488403058b454c0cc623dbc197d960ca04a34
399
py
Python
awardsarena/asgi.py
sheillanjoroge/AwardsArena
2f3c214b03e92371ff851adaf7eb6a1ba1019437
[ "MIT" ]
null
null
null
awardsarena/asgi.py
sheillanjoroge/AwardsArena
2f3c214b03e92371ff851adaf7eb6a1ba1019437
[ "MIT" ]
null
null
null
awardsarena/asgi.py
sheillanjoroge/AwardsArena
2f3c214b03e92371ff851adaf7eb6a1ba1019437
[ "MIT" ]
null
null
null
""" ASGI config for awardsarena project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_S...
23.470588
78
0.789474
df1eb8fd9f11eaeae726d69daa6a92461cd6269b
2,562
py
Python
pygame/game.py
colonelpopcorn/sandbox
79f711c65acc80d62f887d51ae38589bdf2c351b
[ "Unlicense" ]
1
2019-08-21T18:51:32.000Z
2019-08-21T18:51:32.000Z
pygame/game.py
colonelpopcorn/derping
79f711c65acc80d62f887d51ae38589bdf2c351b
[ "Unlicense" ]
3
2020-03-10T06:31:48.000Z
2022-03-02T12:29:34.000Z
pygame/game.py
colonelpopcorn/derping
79f711c65acc80d62f887d51ae38589bdf2c351b
[ "Unlicense" ]
null
null
null
#!/usr/bin/env/python3 import os import pygame as pg main_dir = os.path.split(os.path.abspath(__file__))[0] asset_dir = os.path.join(main_dir, "assets") print(asset_dir) def load_image(name, colorkey=None): fullname = os.path.join(asset_dir, name) try: image = pg.image.load(fullname) except pg.er...
29.790698
75
0.582748
71c04487f9483c4d8a179b93c3c85b632c56bd54
2,572
py
Python
mmdet/datasets/building.py
abcxs/polyrnn
92eee689fe62585529deb1c44fbf1c889f414fa2
[ "Apache-2.0" ]
4
2021-06-01T08:33:56.000Z
2022-02-12T14:54:09.000Z
mmdet/datasets/building.py
abcxs/polyrnn
92eee689fe62585529deb1c44fbf1c889f414fa2
[ "Apache-2.0" ]
null
null
null
mmdet/datasets/building.py
abcxs/polyrnn
92eee689fe62585529deb1c44fbf1c889f414fa2
[ "Apache-2.0" ]
1
2021-06-01T08:34:00.000Z
2021-06-01T08:34:00.000Z
from .builder import DATASETS from .coco import CocoDataset import numpy as np @DATASETS.register_module() class BuildingDataset(CocoDataset): CLASSES = ('building',) def pre_pipeline(self, results): super(BuildingDataset, self).pre_pipeline(results) results['polygon_fields'] = [] def _p...
34.756757
79
0.551711
da0c47e208077bc2f190c34e6d5af94dd8dd402f
8,846
py
Python
CapsE_SEARCH17.py
Beaterli/CapsE
14305f3505ba483bb6b83fa9030d71362d865b88
[ "Apache-2.0" ]
null
null
null
CapsE_SEARCH17.py
Beaterli/CapsE
14305f3505ba483bb6b83fa9030d71362d865b88
[ "Apache-2.0" ]
null
null
null
CapsE_SEARCH17.py
Beaterli/CapsE
14305f3505ba483bb6b83fa9030d71362d865b88
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python import tensorflow.compat.v1 as tf import numpy as np import os import time import datetime from argparse import ArgumentParser, ArgumentDefaultsHelpFormatter from builddata_ecir import * from capsuleNet_SEARCH17 import CapsE np.random.seed(1234) tf.set_random_seed(1234) # Parameters # ========...
47.816216
134
0.655437
97ff2189bfafa68a92985ad85282ff8bb2df6dc4
734
py
Python
magenta/models/onsets_frames_transcription/__init__.py
fanzhiyan/magenta
622c47c19bb84c6f57b286ed03b738516b2f27d6
[ "Apache-2.0" ]
16
2016-09-02T04:59:30.000Z
2022-01-11T10:38:29.000Z
magenta/models/onsets_frames_transcription/__init__.py
fanzhiyan/magenta
622c47c19bb84c6f57b286ed03b738516b2f27d6
[ "Apache-2.0" ]
2
2016-09-25T16:39:59.000Z
2016-11-18T17:43:41.000Z
magenta/models/onsets_frames_transcription/__init__.py
fanzhiyan/magenta
622c47c19bb84c6f57b286ed03b738516b2f27d6
[ "Apache-2.0" ]
10
2016-09-02T04:59:32.000Z
2021-09-29T06:57:24.000Z
# Copyright 2019 The Magenta Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
36.7
74
0.776567
f410f2ebb5063e6cb6b2ef1c37bd56e952dcea70
995
py
Python
setup.py
carbonplan/python-project-template
bea7bc31a5effe63eaa177607acd03b2f3603b5f
[ "MIT" ]
1
2022-01-31T20:06:21.000Z
2022-01-31T20:06:21.000Z
setup.py
carbonplan/python-project-template
bea7bc31a5effe63eaa177607acd03b2f3603b5f
[ "MIT" ]
7
2021-11-03T07:15:42.000Z
2022-03-31T07:21:05.000Z
setup.py
carbonplan/python-project-template
bea7bc31a5effe63eaa177607acd03b2f3603b5f
[ "MIT" ]
null
null
null
#!/usr/bin/env python """The setup script""" from setuptools import find_packages, setup with open("requirements.txt") as f: INSTALL_REQUIRES = f.read().strip().split("\n") with open("README.md") as f: LONG_DESCRIPTION = f.read() PYTHON_REQUIRES = ">=3.7" description = "carbonplan python project template"...
28.428571
84
0.717588
141eeb75ad2534988441d8cf43852d1d560c5ecd
1,194
py
Python
nvil/test_sbn.py
nel215/chainer-nvil
e927d0a9939ce06e25694d141a6a00df3f85672b
[ "Apache-2.0" ]
null
null
null
nvil/test_sbn.py
nel215/chainer-nvil
e927d0a9939ce06e25694d141a6a00df3f85672b
[ "Apache-2.0" ]
null
null
null
nvil/test_sbn.py
nel215/chainer-nvil
e927d0a9939ce06e25694d141a6a00df3f85672b
[ "Apache-2.0" ]
null
null
null
from nvil.sbn import SBNInferenceModel, SBNGenerativeModel import cupy as cp def _sample(shape): return (cp.random.randn(*shape) > cp.random.random(shape)).astype('f') def test_inference_model(): cp.random.seed(215) dims = [200, 100] batchsize = 10 inf_model = SBNInferenceModel(dims) inf_mod...
26.533333
74
0.632328
9e27696c616f646f10f385f1c9a86e5ff5a4cb9d
1,644
py
Python
tests/validation_input_tests/test_validate_input.py
alexeyhorkin/arithmetic-expressions
55338524203e825d3602bd3a0fd280751313e30a
[ "MIT" ]
null
null
null
tests/validation_input_tests/test_validate_input.py
alexeyhorkin/arithmetic-expressions
55338524203e825d3602bd3a0fd280751313e30a
[ "MIT" ]
1
2021-07-21T13:29:56.000Z
2021-07-21T13:29:56.000Z
tests/validation_input_tests/test_validate_input.py
alexeyhorkin/arithmetic-expressions
55338524203e825d3602bd3a0fd280751313e30a
[ "MIT" ]
null
null
null
import pytest from calculator.parser import parse_operation from calculator.tokenizer import Tokenizer from ..tests_utities import ( CaseInputValidation, # ERR_NO_OPEN_BRACKET, ERR_NO_CLOSE_BRACKET, ERR_NO_MULTIPLIER, # ERR_INVALID_CHARACTER, ERR_NO_DIVIDER, ERR_NO_SUMMAND_PLUS, ERR_NO_S...
36.533333
72
0.664234
06b82102d47fbe0ed1dd8d5b30a0e603798108c9
3,021
py
Python
tests/test_create_anonymous_nested_classes_with_lists.py
christianhelle/autofaker
d5395e8d22c5a1fc11ce7b3a22a5c46b52a2a188
[ "MIT" ]
null
null
null
tests/test_create_anonymous_nested_classes_with_lists.py
christianhelle/autofaker
d5395e8d22c5a1fc11ce7b3a22a5c46b52a2a188
[ "MIT" ]
1
2022-02-06T21:18:34.000Z
2022-02-06T21:18:34.000Z
tests/test_create_anonymous_nested_classes_with_lists.py
christianhelle/autofaker
d5395e8d22c5a1fc11ce7b3a22a5c46b52a2a188
[ "MIT" ]
null
null
null
import unittest from autofaker import Autodata class SimpleClass: id = -1 text = 'test' class NestedWithCollectionClass: id = -1 text = 'test' inner = [SimpleClass(), SimpleClass()] class NestedWithNestedCollectionClass: id = -1 text = 'test' inner = [NestedWithCollectionClass(), ...
40.824324
100
0.768951
ade358ade3ea9f2c52bf56f6a6f4b1c5fec44693
952
py
Python
cba/tests/run.py
meshy/django-cba
ce871792c30b0c1b59d8f7f3d1b876565e11c155
[ "BSD-2-Clause" ]
null
null
null
cba/tests/run.py
meshy/django-cba
ce871792c30b0c1b59d8f7f3d1b876565e11c155
[ "BSD-2-Clause" ]
null
null
null
cba/tests/run.py
meshy/django-cba
ce871792c30b0c1b59d8f7f3d1b876565e11c155
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python import sys import dj_database_url import django from colour_runner.django_runner import ColourRunnerMixin from django.conf import settings from django.test.runner import DiscoverRunner settings.configure( DATABASES={'default': dj_database_url.config( default='postgres://localhost/cb...
22.666667
72
0.713235
086be2aefffa99b7abe12bdd5ee5a7fa41af4519
708
py
Python
tools/gcp/github_stats_tracking/appengine_config.py
mpminardi/grpc
ce9e6eeded3b9d4d7f17a5432bc79008929cb8b7
[ "Apache-2.0" ]
36,552
2015-02-26T17:30:13.000Z
2022-03-31T22:41:33.000Z
tools/gcp/github_stats_tracking/appengine_config.py
SanjanaSingh897/grpc
2d858866eb95ce5de8ccc8c35189a12733d8ca79
[ "Apache-2.0" ]
23,536
2015-02-26T17:50:56.000Z
2022-03-31T23:39:42.000Z
tools/gcp/github_stats_tracking/appengine_config.py
SanjanaSingh897/grpc
2d858866eb95ce5de8ccc8c35189a12733d8ca79
[ "Apache-2.0" ]
11,050
2015-02-26T17:22:10.000Z
2022-03-31T10:12:35.000Z
# Copyright 2019 gRPC authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
35.4
74
0.762712
290c12d05c71da006cddc820670a215c8c608db4
6,925
py
Python
crfnet/model/layers/_misc.py
daanh99/CameraRadarFusionNet-Reproduction
cbcd72dd4085f506699a626e9a1091cdae817836
[ "Apache-2.0" ]
2
2021-11-19T07:39:51.000Z
2021-11-19T07:40:35.000Z
crfnet/model/layers/_misc.py
daanh99/CameraRadarFusionNet-Reproduction
cbcd72dd4085f506699a626e9a1091cdae817836
[ "Apache-2.0" ]
null
null
null
crfnet/model/layers/_misc.py
daanh99/CameraRadarFusionNet-Reproduction
cbcd72dd4085f506699a626e9a1091cdae817836
[ "Apache-2.0" ]
1
2021-04-20T15:55:20.000Z
2021-04-20T15:55:20.000Z
""" Copyright 2017-2018 Fizyr (https://fizyr.com) 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 w...
35.695876
112
0.623394
0a19cb98dd437236927fe1a514b9e0296132dec1
8,944
py
Python
src/dbac_lib/dbac_primitives.py
rfsantacruz/neural-algebra-classifiers
cbe5625b43390f9032d6ee10f43af7a38dd9f647
[ "MIT" ]
3
2018-02-05T17:57:54.000Z
2020-08-12T02:03:16.000Z
src/dbac_lib/dbac_primitives.py
rfsantacruz/neural-algebra-classifiers
cbe5625b43390f9032d6ee10f43af7a38dd9f647
[ "MIT" ]
1
2018-11-14T11:47:55.000Z
2018-11-14T11:47:55.000Z
src/dbac_lib/dbac_primitives.py
rfsantacruz/neural-algebra-classifiers
cbe5625b43390f9032d6ee10f43af7a38dd9f647
[ "MIT" ]
null
null
null
import abc import logging import numpy as np from sklearn import svm as sklearn_svm from sklearn import calibration as sklearn_clb import pickle from joblib import Parallel, delayed logger = logging.getLogger(__name__) PRIMITIVE_TYPES = ['exsvms'] class IPrimitiveCollection(metaclass=abc.ABCMeta): def __init__(...
45.401015
149
0.622205
1663ff256328539e4f8c3eef2af1d921850f66c8
5,238
py
Python
examples/stable_baselines/figure_eight.py
weizi-li/flow
958b64ece8af6db715e6fb3b6042035b05b93bc2
[ "MIT" ]
1
2020-02-21T03:35:37.000Z
2020-02-21T03:35:37.000Z
examples/stable_baselines/figure_eight.py
weizi-li/flow
958b64ece8af6db715e6fb3b6042035b05b93bc2
[ "MIT" ]
null
null
null
examples/stable_baselines/figure_eight.py
weizi-li/flow
958b64ece8af6db715e6fb3b6042035b05b93bc2
[ "MIT" ]
1
2019-10-10T21:16:25.000Z
2019-10-10T21:16:25.000Z
"""Ring road example. Trains a single autonomous vehicle to stabilize the flow of 21 human-driven vehicles in a variable length ring road. """ import argparse import json import os from stable_baselines.common.vec_env import DummyVecEnv, SubprocVecEnv from stable_baselines import PPO2 from flow.core.params import S...
36.124138
116
0.710004
a4d45d1ce4dcfd49ddd71512bffe9991e822fe00
1,440
py
Python
external-deps/python-lsp-server/pylsp/plugins/hover.py
Earthman100/spyder
949ce0f9100a69504c70a5678e8589a05aee7d38
[ "MIT" ]
7,956
2015-02-17T01:19:09.000Z
2022-03-31T21:52:15.000Z
external-deps/python-lsp-server/pylsp/plugins/hover.py
Earthman100/spyder
949ce0f9100a69504c70a5678e8589a05aee7d38
[ "MIT" ]
16,326
2015-02-16T23:15:21.000Z
2022-03-31T23:34:34.000Z
external-deps/python-lsp-server/pylsp/plugins/hover.py
Earthman100/spyder
949ce0f9100a69504c70a5678e8589a05aee7d38
[ "MIT" ]
1,918
2015-02-20T19:26:26.000Z
2022-03-31T19:03:25.000Z
# Copyright 2017-2020 Palantir Technologies, Inc. # Copyright 2021- Python Language Server Contributors. import logging from pylsp import hookimpl, _utils log = logging.getLogger(__name__) @hookimpl def pylsp_hover(document, position): code_position = _utils.position_to_jedi_linecolumn(document, position) ...
28.8
85
0.667361
30fc166d35714c8da93b4f161d922b61715b72df
16
py
Python
mul/__init__.py
majorx234/python-mul
3cd61c8f7e871ca7c8f030aa21c231231ae0a894
[ "MIT" ]
null
null
null
mul/__init__.py
majorx234/python-mul
3cd61c8f7e871ca7c8f030aa21c231231ae0a894
[ "MIT" ]
null
null
null
mul/__init__.py
majorx234/python-mul
3cd61c8f7e871ca7c8f030aa21c231231ae0a894
[ "MIT" ]
null
null
null
"The mul module"
16
16
0.75
502372071268aa67bfaa7573028c354a5ac99f50
9,975
py
Python
os_xenapi/dom0/etc/xapi.d/plugins/agent.py
jonarrien/openstack-xenapi
8961dcbdecfbe7c3e3b5d05e71011c3a70d273a6
[ "Apache-2.0" ]
null
null
null
os_xenapi/dom0/etc/xapi.d/plugins/agent.py
jonarrien/openstack-xenapi
8961dcbdecfbe7c3e3b5d05e71011c3a70d273a6
[ "Apache-2.0" ]
null
null
null
os_xenapi/dom0/etc/xapi.d/plugins/agent.py
jonarrien/openstack-xenapi
8961dcbdecfbe7c3e3b5d05e71011c3a70d273a6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2011 Citrix Systems, Inc. # Copyright 2011 OpenStack Foundation # Copyright 2011 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "...
36.01083
78
0.658446
589957ea58339e9bbdbb73a002560d36bfb6b69d
25,060
py
Python
python/emboss_matcher.py
ebi-wp/webservice-clients
2c4433b33cf8155c259bda39f683b71bd380a30b
[ "Apache-2.0" ]
36
2017-09-22T11:28:52.000Z
2022-03-17T18:00:45.000Z
python/emboss_matcher.py
ebi-wp/webservice-clients
2c4433b33cf8155c259bda39f683b71bd380a30b
[ "Apache-2.0" ]
5
2018-07-27T14:54:12.000Z
2021-07-13T10:03:40.000Z
python/emboss_matcher.py
ebi-wp/webservice-clients
2c4433b33cf8155c259bda39f683b71bd380a30b
[ "Apache-2.0" ]
21
2017-12-22T11:43:16.000Z
2022-03-09T08:26:21.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- ############################################################################### # # Copyright 2012-2021 EMBL - European Bioinformatics Institute # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the Li...
39.904459
131
0.644054
6fe6cd6a3bdbef3b82f2a86074a297ec6fe8fb2d
7,331
py
Python
iTunes_Backup_Reader.py
stark4n6/iTunes_Backup_Reader
cd0ce8dabc9ed39ccba7f29629ecaa6db14c23f3
[ "MIT" ]
87
2019-08-01T13:45:51.000Z
2022-03-14T23:18:40.000Z
iTunes_Backup_Reader.py
stark4n6/iTunes_Backup_Reader
cd0ce8dabc9ed39ccba7f29629ecaa6db14c23f3
[ "MIT" ]
15
2019-08-12T20:00:44.000Z
2022-01-03T20:21:12.000Z
iTunes_Backup_Reader.py
stark4n6/iTunes_Backup_Reader
cd0ce8dabc9ed39ccba7f29629ecaa6db14c23f3
[ "MIT" ]
27
2019-08-12T20:40:21.000Z
2022-03-27T21:34:24.000Z
''' Copyright (c) 2019 Jack Farley This file is part of iTunes_Backup_Reader Usage or distribution of this software/code is subject to the terms of the GNU GENERAL PUBLIC LICENSE. iTunes_Backup_Reader.py ------------ ''' from __future__ import unicode_literals from __future__ import print_function imp...
34.580189
122
0.602237
ba3b3a4de03afc4b81d724b5ac2dd51e7dc1015c
772
py
Python
matrizes/questao_4b.py
burgues0/Trabalhos_Python
996e3862c521f63b51a8479d200efa7db0a42c48
[ "MIT" ]
null
null
null
matrizes/questao_4b.py
burgues0/Trabalhos_Python
996e3862c521f63b51a8479d200efa7db0a42c48
[ "MIT" ]
null
null
null
matrizes/questao_4b.py
burgues0/Trabalhos_Python
996e3862c521f63b51a8479d200efa7db0a42c48
[ "MIT" ]
null
null
null
#Algoritmos Computacionais e Estruturas de Dados #5a Lista de Exercícios #Prof.: Laercio Brito #Dia: 28/10/2021 #Turma 2BINFO #Alunos: #Dora Tezulino Santos #Guilherme de Almeida Torrão #Mauro Campos Pahoor #Victor Kauã Martins Nunes #Victor Pinheiro Palmeira #Questão 4 #com a função sum size=3 table=[] for i in range...
21.444444
65
0.670984
5c38d5b80dcf6dcc55882be88a121e86db0f1481
15,764
py
Python
templates/graphs.py
tiendat101001/PythonProgrammingPuzzles
e4a6504bf783ad1ab93686cedd5d1818af92a5e4
[ "MIT" ]
null
null
null
templates/graphs.py
tiendat101001/PythonProgrammingPuzzles
e4a6504bf783ad1ab93686cedd5d1818af92a5e4
[ "MIT" ]
null
null
null
templates/graphs.py
tiendat101001/PythonProgrammingPuzzles
e4a6504bf783ad1ab93686cedd5d1818af92a5e4
[ "MIT" ]
null
null
null
"""Problems related to graphs such as Conway's 99 problem, finding [cliques](https://en.wikipedia.org/wiki/Clique_(graph_theory)) of various sizes, shortest path (Dijkstra) """ from problems import Problem from typing import List # Hint: subclass Problem.Debug for quick testing. Run make_dataset.py to make the datas...
37.179245
120
0.550875
62275031c20bdae243110f844ec99646c74bcfa4
45,546
py
Python
tests/attr_groups1_sup.py
expobrain/generateDS
47f93fe7de85ef0c7ed6caf60466bdc377085bf0
[ "MIT" ]
null
null
null
tests/attr_groups1_sup.py
expobrain/generateDS
47f93fe7de85ef0c7ed6caf60466bdc377085bf0
[ "MIT" ]
null
null
null
tests/attr_groups1_sup.py
expobrain/generateDS
47f93fe7de85ef0c7ed6caf60466bdc377085bf0
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Generated by generateDS.py. # Python 3.6.8 |Anaconda custom (64-bit)| (default, Dec 30 2018, 01:22:34) [GCC 7.3.0] # # Command line options: # ('--no-dates', '') # ('--no-versions', '') # ('--silence', '') # ('--member-specs', 'list') # ('-f', '') # ('-o'...
39.365601
211
0.572564
8469fc19196585cb89946f9dfa2f3bf8dd48ca83
19,562
py
Python
chia/cmds/wallet_funcs.py
tgarm/chia-blockchain
c7a285c9928a375fb4f8e581c62cb2a4ac9c76f6
[ "Apache-2.0" ]
null
null
null
chia/cmds/wallet_funcs.py
tgarm/chia-blockchain
c7a285c9928a375fb4f8e581c62cb2a4ac9c76f6
[ "Apache-2.0" ]
null
null
null
chia/cmds/wallet_funcs.py
tgarm/chia-blockchain
c7a285c9928a375fb4f8e581c62cb2a4ac9c76f6
[ "Apache-2.0" ]
null
null
null
import asyncio import pathlib import sys import time from datetime import datetime from decimal import Decimal from typing import Callable, List, Optional, Tuple, Dict import aiohttp from chia.cmds.units import units from chia.rpc.wallet_rpc_client import WalletRpcClient from chia.server.start_wallet import SERVICE_N...
43.762864
120
0.633626
27aedb875e59273b099588312c314684c423a67f
15,355
py
Python
notebooks/138.1-BDP-plot-bars.py
zeou1/maggot_models
4e1b518c2981ab1ca9607099c3813e8429d94ca4
[ "BSD-3-Clause" ]
null
null
null
notebooks/138.1-BDP-plot-bars.py
zeou1/maggot_models
4e1b518c2981ab1ca9607099c3813e8429d94ca4
[ "BSD-3-Clause" ]
null
null
null
notebooks/138.1-BDP-plot-bars.py
zeou1/maggot_models
4e1b518c2981ab1ca9607099c3813e8429d94ca4
[ "BSD-3-Clause" ]
null
null
null
# %% [markdown] # ## import os import warnings import matplotlib as mpl import matplotlib.pyplot as plt import matplotlib.transforms as transforms import numpy as np import pandas as pd import seaborn as sns from joblib import Parallel, delayed from scipy.stats import poisson from sklearn.exceptions import Convergence...
29.359465
86
0.641355
931800ff15c6e157ecf190f7b1022b525bbfff5f
2,894
py
Python
setup.py
Djailla/pyrsistent
c8e61fe8c223695fe4428e92a8286673bd84a56e
[ "MIT" ]
1
2021-04-20T13:39:49.000Z
2021-04-20T13:39:49.000Z
setup.py
Djailla/pyrsistent
c8e61fe8c223695fe4428e92a8286673bd84a56e
[ "MIT" ]
null
null
null
setup.py
Djailla/pyrsistent
c8e61fe8c223695fe4428e92a8286673bd84a56e
[ "MIT" ]
1
2021-04-08T16:12:18.000Z
2021-04-08T16:12:18.000Z
import os from setuptools import setup, Extension import sys import platform import warnings import codecs from distutils.command.build_ext import build_ext from distutils.errors import CCompilerError from distutils.errors import DistutilsPlatformError, DistutilsExecError from _pyrsistent_version import __version__ re...
35.292683
150
0.628196
c45268df7f8216847389251c8c256481f7ebc9c7
1,672
py
Python
sdk/python/pulumi_azure/analysisservices/outputs.py
suresh198526/pulumi-azure
bf27206a38d7a5c58b3c2c57ec8769fe3d0fc5d7
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure/analysisservices/outputs.py
suresh198526/pulumi-azure
bf27206a38d7a5c58b3c2c57ec8769fe3d0fc5d7
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure/analysisservices/outputs.py
suresh198526/pulumi-azure
bf27206a38d7a5c58b3c2c57ec8769fe3d0fc5d7
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from .. import _utilitie...
28.827586
87
0.625598
5c79d31340b0a041454dfbd2ce4f4c870f5a14f0
2,745
py
Python
cupy/linalg/util.py
dloney/cupy
0eb497a4eef4243121d3a5d7cce59197d45f2f5f
[ "MIT" ]
2
2020-02-28T09:27:58.000Z
2020-10-12T07:10:24.000Z
cupy/linalg/util.py
dloney/cupy
0eb497a4eef4243121d3a5d7cce59197d45f2f5f
[ "MIT" ]
null
null
null
cupy/linalg/util.py
dloney/cupy
0eb497a4eef4243121d3a5d7cce59197d45f2f5f
[ "MIT" ]
null
null
null
from numpy import linalg import cupy from cupy import core import cupyx def _assert_cupy_array(*arrays): for a in arrays: if not isinstance(a, cupy.core.ndarray): raise linalg.LinAlgError( 'cupy.linalg only supports cupy.core.ndarray') def _assert_rank2(*arrays): for a i...
28.894737
77
0.640073
3b2534c0418b9126bf14031fac35d279d4d24036
2,220
py
Python
experiment1_meantime.py
mcsosa121/KSRFILS
75995933771d8338de33cc9bbb5e9416e4242c6b
[ "MIT" ]
null
null
null
experiment1_meantime.py
mcsosa121/KSRFILS
75995933771d8338de33cc9bbb5e9416e4242c6b
[ "MIT" ]
null
null
null
experiment1_meantime.py
mcsosa121/KSRFILS
75995933771d8338de33cc9bbb5e9416e4242c6b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import time import numpy from krypy.linsys import LinearSystem, Cg from krypy.deflation import DeflatedCg, DeflatedGmres, Ritz from krypy.utils import Arnoldi, ritz, BoundCG from krypy.recycling import RecyclingCg from krypy.recycling.factories import RitzFactory,RitzFactorySimple from k...
32.647059
93
0.644144
51c5e83c74250a3241e3523e7370d4ff0fffe8f6
2,125
py
Python
AniBot.py
Bobbinson/AniBot
1422ce7124113844b32a90b39c0fc66267ca94b9
[ "MIT" ]
null
null
null
AniBot.py
Bobbinson/AniBot
1422ce7124113844b32a90b39c0fc66267ca94b9
[ "MIT" ]
null
null
null
AniBot.py
Bobbinson/AniBot
1422ce7124113844b32a90b39c0fc66267ca94b9
[ "MIT" ]
null
null
null
""""""""""" @Author = Bobbinson Fetches photos from multiple subreddits and posts to a twitter account in real-time. """"""""""" import praw import tweepy import time import os import sys import random import json import requests import urllib.request from urllib.parse import urlparse from os.path import splitext ...
24.425287
102
0.659294
a94e6bd02e4539c74063ad9ca7a20223e40262bb
16,399
py
Python
chainer/functions/loss/ctc.py
yuhonghong66/chainer
15d475f54fc39587abd7264808c5e4b33782df9e
[ "MIT" ]
null
null
null
chainer/functions/loss/ctc.py
yuhonghong66/chainer
15d475f54fc39587abd7264808c5e4b33782df9e
[ "MIT" ]
null
null
null
chainer/functions/loss/ctc.py
yuhonghong66/chainer
15d475f54fc39587abd7264808c5e4b33782df9e
[ "MIT" ]
null
null
null
import numpy import six import chainer from chainer import backend from chainer.backends import cuda from chainer import function from chainer import utils from chainer.utils import collections_abc from chainer.utils import type_check def _logsumexp(a, xp, axis=None): vmax = xp.amax(a, axis=axis, keepdims=True) ...
39.232057
81
0.572779
c0c7d6bbd65d108a34bb3cf5b46975ba509ee22b
5,768
py
Python
scripts/zrch.py
WladimirSidorenko/SentimentLexicon
0d7203b7b7e3ca5d11759fdad656f775fa5d6e95
[ "MIT" ]
13
2016-08-03T18:46:02.000Z
2022-02-22T22:30:19.000Z
scripts/zrch.py
WladimirSidorenko/SentimentLexicon
0d7203b7b7e3ca5d11759fdad656f775fa5d6e95
[ "MIT" ]
2
2019-10-22T13:03:48.000Z
2019-12-05T21:41:36.000Z
scripts/zrch.py
WladimirSidorenko/SentimentLexicon
0d7203b7b7e3ca5d11759fdad656f775fa5d6e95
[ "MIT" ]
5
2019-12-25T13:53:18.000Z
2020-06-05T20:47:31.000Z
#!/usr/bin/env python2.7 # -*- mode: python; coding: utf-8; -*- """ Module for processing Zurich Polarity lexicon Constants: LEXICON - default file name of the polarity lexicon TAB_RE - regexp matching tab separators POSITIVE - symbolic representation of the positive class NEGATIVE - symbolic representation of the ne...
33.149425
102
0.586685
d97d793f7717c0cc65c00e8e10e88d008b072e96
6,967
py
Python
hoverset/util/execution.py
tjmoran/Formation
ff1e0a307fffaa65251736a48fefb23fe9ee75dd
[ "MIT" ]
71
2020-06-19T11:17:35.000Z
2022-03-24T02:51:54.000Z
hoverset/util/execution.py
tjmoran/Formation
ff1e0a307fffaa65251736a48fefb23fe9ee75dd
[ "MIT" ]
11
2020-06-20T19:04:02.000Z
2022-03-01T04:42:36.000Z
hoverset/util/execution.py
tjmoran/Formation
ff1e0a307fffaa65251736a48fefb23fe9ee75dd
[ "MIT" ]
6
2020-11-15T01:38:53.000Z
2021-12-25T07:14:23.000Z
""" Contains functions and decorators for execution performance checkers and special execution function wrappers """ # ======================================================================= # # Copyright (C) 2020 Hoverset Group. # # ================================================...
28.321138
90
0.582747
46fa21458332e89e59445610d63e92875c174c2f
10,862
py
Python
viromatch/lib/pipeline/host.py
twylie/viromatch
44edca07c44308b17b9f19174c08175736fff53f
[ "MIT" ]
5
2021-02-13T09:02:21.000Z
2021-10-06T19:20:41.000Z
viromatch/lib/pipeline/host.py
twylie/viromatch
44edca07c44308b17b9f19174c08175736fff53f
[ "MIT" ]
4
2021-05-14T09:02:32.000Z
2022-03-25T05:06:40.000Z
viromatch/lib/pipeline/host.py
twylie/viromatch
44edca07c44308b17b9f19174c08175736fff53f
[ "MIT" ]
1
2021-04-05T22:30:44.000Z
2021-04-05T22:30:44.000Z
import argparse import os import subprocess import sys from .. import version as ver from .. washu import ParallelProcessing class Host(): """ Provides a framework for creating the ViroMatch virome analysis pipeline. Pre-processing and host screening only. Args: None Attributes: ...
31.123209
114
0.495397
673d70578f04d7aaff3a9bb4995425adff55537a
2,602
py
Python
experiments/testC_Zambezi-Barotse/zambezi_4km/setup/setup_logging.py
DirkEilander/glofrim_v2.0-experiments
303d77533d772f75f3df5ee403e5d2020581037a
[ "MIT" ]
null
null
null
experiments/testC_Zambezi-Barotse/zambezi_4km/setup/setup_logging.py
DirkEilander/glofrim_v2.0-experiments
303d77533d772f75f3df5ee403e5d2020581037a
[ "MIT" ]
1
2019-06-17T07:53:03.000Z
2019-06-17T08:46:22.000Z
experiments/testC_Zambezi-Barotse/zambezi_4km/setup/setup_logging.py
DirkEilander/glofrim_v2.0-experiments
303d77533d772f75f3df5ee403e5d2020581037a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Aug 21 09:38:02 2019 @author: Arjen Haag (haag) """ import sys import logging # main logging setup def setupLogging(logPath, name='default'): """ Setup/config of logging procedures. Parameters: logPath : [string] path specifying where to store logg...
29.568182
142
0.639124
d35a9e6bcf405ba8a1d6a9410cddae0ae6a5d220
3,330
py
Python
users-groups/delete_users.py
paulogpafilho/wlst-misc-scripts
6ee6cefe3e9f32ea36df6d8c933adf058432759e
[ "MIT" ]
null
null
null
users-groups/delete_users.py
paulogpafilho/wlst-misc-scripts
6ee6cefe3e9f32ea36df6d8c933adf058432759e
[ "MIT" ]
null
null
null
users-groups/delete_users.py
paulogpafilho/wlst-misc-scripts
6ee6cefe3e9f32ea36df6d8c933adf058432759e
[ "MIT" ]
null
null
null
""" This is a python script to delete users in a Weblogic Domain that uses the embedded LDAP. The script needs to connect to a running Weblogic Admin Server. This script requires a comma-separated-values (csv) file containing the users you wish to delete, in the following format: username Username is required. ...
39.642857
108
0.735736
feac6b58847e584a5f53f6382838bb3917337545
560
py
Python
tests/query_test/test_union.py
Altiscale/Impala
1a57d938ff616669a3111256c548807b10e0bff6
[ "Apache-2.0" ]
2
2015-11-17T16:58:47.000Z
2017-01-10T04:15:05.000Z
tests/query_test/test_union.py
Altiscale/Impala
1a57d938ff616669a3111256c548807b10e0bff6
[ "Apache-2.0" ]
1
2016-03-10T16:34:10.000Z
2016-03-10T16:34:10.000Z
tests/query_test/test_union.py
Altiscale/Impala
1a57d938ff616669a3111256c548807b10e0bff6
[ "Apache-2.0" ]
6
2015-12-22T14:52:38.000Z
2019-07-06T08:34:23.000Z
#!/usr/bin/env python # Copyright (c) 2012 Cloudera, Inc. All rights reserved. # Tests for Union # import logging import pytest from tests.common.test_dimensions import create_exec_option_dimension from tests.common.impala_test_suite import ImpalaTestSuite, SINGLE_NODE_ONLY class TestUnion(ImpalaTestSuite): @classme...
26.666667
76
0.785714
724121ab142bece0577309d3fe7faf57bd49175f
9,648
py
Python
apps/findings/views.py
vulnman/vulnman
d48ee022bc0e4368060a990a527b1c7a5e437504
[ "MIT" ]
3
2021-12-22T07:02:24.000Z
2022-01-27T20:19:11.000Z
apps/findings/views.py
vulnman/vulnman
d48ee022bc0e4368060a990a527b1c7a5e437504
[ "MIT" ]
44
2021-12-14T07:24:29.000Z
2022-03-23T07:01:16.000Z
apps/findings/views.py
vulnman/vulnman
d48ee022bc0e4368060a990a527b1c7a5e437504
[ "MIT" ]
1
2022-01-21T16:29:56.000Z
2022-01-21T16:29:56.000Z
from django.db.models import Q from django.urls import reverse_lazy from django.contrib.auth.mixins import LoginRequiredMixin from vulnman.views import generic from apps.findings import models from apps.findings import forms from apps.findings.utils import cvss from apps.assets.models import WebApplication, WebRequest,...
40.368201
128
0.703462
ed0f4c3c20c8bfcb7abc1636768fa97dabee17e0
81,948
py
Python
luna.py
gitter-badger/LUNA-2
d66ab4770ea880ac5aa46165807b2f7aae2c0017
[ "BSD-3-Clause" ]
null
null
null
luna.py
gitter-badger/LUNA-2
d66ab4770ea880ac5aa46165807b2f7aae2c0017
[ "BSD-3-Clause" ]
null
null
null
luna.py
gitter-badger/LUNA-2
d66ab4770ea880ac5aa46165807b2f7aae2c0017
[ "BSD-3-Clause" ]
null
null
null
################################################################################################## ########### ########### ########### ########### ########### ########### ######## ########################## ###### ########### ######## ...
33.848823
144
0.514778
e063df297f42f40519aa1249e5c5e6751add1e77
2,698
py
Python
2019/11/solve.py
AlbertVeli/AdventOfCode
3d3473695318a0686fac720a1a21dd3629f09e33
[ "Unlicense" ]
null
null
null
2019/11/solve.py
AlbertVeli/AdventOfCode
3d3473695318a0686fac720a1a21dd3629f09e33
[ "Unlicense" ]
null
null
null
2019/11/solve.py
AlbertVeli/AdventOfCode
3d3473695318a0686fac720a1a21dd3629f09e33
[ "Unlicense" ]
1
2021-12-04T10:37:09.000Z
2021-12-04T10:37:09.000Z
#!/usr/bin/env python3 from PIL import Image from collections import deque # Use intmachine from ../common import sys sys.path.insert(0,'../common') from intmachine import Intmachine # up, right, down, left dirs = ((0, -1), (1, 0), (0, 1), (-1, 0)) dirchange = (-1, 1) curdir = 0 rx = 0 ry = 0 # (x, y) paintcoords = [...
20.439394
68
0.546331
c7c3aea4e94fddaf6f21e60286aada2968816df4
6,907
py
Python
security_monkey/decorators.py
pinox1/security_monkey
83e50d28d3ca52d21039b221bd10cb509b36e807
[ "Apache-2.0" ]
null
null
null
security_monkey/decorators.py
pinox1/security_monkey
83e50d28d3ca52d21039b221bd10cb509b36e807
[ "Apache-2.0" ]
null
null
null
security_monkey/decorators.py
pinox1/security_monkey
83e50d28d3ca52d21039b221bd10cb509b36e807
[ "Apache-2.0" ]
null
null
null
""" .. module: security_monkey.decorators :synopsis: Defines decorators allowing for credentialed CORS access. .. version:: $$VERSION$$ .. moduleauthor:: Armin Ronacher (http://flask.pocoo.org/snippets/56/) """ from datetime import timedelta from flask import make_response, request, current_app from functools i...
39.244318
124
0.601564
b9df1284bd74e51d0853994c0be9495cfda38ca7
2,397
py
Python
model/scratch/tests/test_slr.py
SGeetansh/dffml
04647bdcadef2f7e7b59cdd8ac1e89f17ef1095b
[ "MIT" ]
2
2020-02-21T00:03:54.000Z
2020-04-08T17:38:47.000Z
model/scratch/tests/test_slr.py
yashlamba/dffml
d309db8503ab3c29fcd99b96479c24b2fdd4d200
[ "MIT" ]
24
2020-05-20T23:29:57.000Z
2021-04-14T04:18:21.000Z
model/scratch/tests/test_slr.py
yashlamba/dffml
d309db8503ab3c29fcd99b96479c24b2fdd4d200
[ "MIT" ]
1
2020-05-06T19:07:02.000Z
2020-05-06T19:07:02.000Z
import tempfile import unittest from dffml import train, accuracy, predict, Feature, Features, AsyncTestCase from dffml.model.slr import SLRModel, SLRModelConfig TRAIN_DATA = [ [12.4, 11.2], [14.3, 12.5], [14.5, 12.7], [14.9, 13.1], [16.1, 14.1], [16.9, 14.8], [16.5, 14.4], [15.4, 13....
28.2
76
0.564038
dcd7e61ea87fc457f99ed8921de4820d7ecb871c
628
py
Python
learning/proc_com.py
wenhuabin/python3
55b3e3697121fffde115eaf160ce7264469a7750
[ "MIT" ]
null
null
null
learning/proc_com.py
wenhuabin/python3
55b3e3697121fffde115eaf160ce7264469a7750
[ "MIT" ]
null
null
null
learning/proc_com.py
wenhuabin/python3
55b3e3697121fffde115eaf160ce7264469a7750
[ "MIT" ]
null
null
null
from multiprocessing import Process, Queue import os, time, random def write(q): print('Proc to write: %s' % os.getpid()) for value in ['A', 'B', 'C']: print('Put %s to queue...' % value) q.put(value) time.sleep(random.random()) def read(q): print('Proc to write: %s' % os.getpid()...
23.259259
69
0.557325
223ad4c44c6c6347e09886fde8fd7d2d85055825
17,948
py
Python
petrarch2/test_bigdata_parallel.py
Sayeedsalam/political-actor-recommender
20dbc37ac419e4ecd5436d4e5b9685846639b2bc
[ "MIT" ]
1
2018-03-15T09:48:28.000Z
2018-03-15T09:48:28.000Z
petrarch2/test_bigdata_parallel.py
Sayeedsalam/political-actor-recommender
20dbc37ac419e4ecd5436d4e5b9685846639b2bc
[ "MIT" ]
null
null
null
petrarch2/test_bigdata_parallel.py
Sayeedsalam/political-actor-recommender
20dbc37ac419e4ecd5436d4e5b9685846639b2bc
[ "MIT" ]
null
null
null
from __future__ import unicode_literals import json import pprint import re import sys import os import time import operator from multiprocessing import Pool from ClusterManager import ActorResolver from ClusterSImilarity import FuzzyClusterSimilarity from RoleDictionary import RoleDictionary from UnionFind impor...
32.455696
273
0.560787
08cedd8d12bb73088abc4044a85fa473f2a573c7
28,763
py
Python
accounts/models.py
mattparkerls/podd-api
454f8dacff8c50b5dfa40b245c1981497ad2aaa7
[ "MIT" ]
null
null
null
accounts/models.py
mattparkerls/podd-api
454f8dacff8c50b5dfa40b245c1981497ad2aaa7
[ "MIT" ]
null
null
null
accounts/models.py
mattparkerls/podd-api
454f8dacff8c50b5dfa40b245c1981497ad2aaa7
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- import copy import datetime from random import randint from django.core.exceptions import ValidationError import uuid import json from cacheops import invalidate_all from celery.contrib.methods import task_method from django.conf import settings from django.contrib.auth.models import Abstr...
36.04386
168
0.667281
7f3e5e2ef0a12fed5f38fe9d59629395c1ac9b23
1,476
py
Python
plenum/test/view_change/slow_nodes/test_view_change_2_of_4_nodes_with_old_primary.py
steptan/indy-plenum
488bf63c82753a74a92ac6952da784825ffd4a3d
[ "Apache-2.0" ]
null
null
null
plenum/test/view_change/slow_nodes/test_view_change_2_of_4_nodes_with_old_primary.py
steptan/indy-plenum
488bf63c82753a74a92ac6952da784825ffd4a3d
[ "Apache-2.0" ]
null
null
null
plenum/test/view_change/slow_nodes/test_view_change_2_of_4_nodes_with_old_primary.py
steptan/indy-plenum
488bf63c82753a74a92ac6952da784825ffd4a3d
[ "Apache-2.0" ]
null
null
null
from plenum.test.test_node import get_master_primary_node, get_last_master_non_primary_node from plenum.test.view_change.helper import view_change_in_between_3pc from plenum.test.pool_transactions.conftest import clientAndWallet1, \ client1, wallet1, client1Connected, looper def slow_nodes(node_set): return [...
39.891892
91
0.684959
30deb50ebddd04b3a3fb9f5f801a954f164980c9
438
py
Python
lobotomy/tests/_support.py
rocketboosters/lobotomy
209817120d3a1fd11c218d2f243acbbdd17d8b0f
[ "MIT" ]
null
null
null
lobotomy/tests/_support.py
rocketboosters/lobotomy
209817120d3a1fd11c218d2f243acbbdd17d8b0f
[ "MIT" ]
null
null
null
lobotomy/tests/_support.py
rocketboosters/lobotomy
209817120d3a1fd11c218d2f243acbbdd17d8b0f
[ "MIT" ]
null
null
null
from unittest.mock import MagicMock def make_path( data: str, file_format: str = "json", exists: bool = True, ): """Create a mocked pathlib.Path object to return and use during testing.""" path = MagicMock() path.name = f"foo.{file_format}" path.exists.return_value = exists path.read_t...
25.764706
79
0.684932
6f8c48b32872cbfac7cbb56ae58696affc4d1927
7,393
py
Python
tensorflow_addons/utils/test_utils.py
dkamotsky/addons
56ff850785c6caa8c18c2859e32a32c8902defea
[ "Apache-2.0" ]
null
null
null
tensorflow_addons/utils/test_utils.py
dkamotsky/addons
56ff850785c6caa8c18c2859e32a32c8902defea
[ "Apache-2.0" ]
null
null
null
tensorflow_addons/utils/test_utils.py
dkamotsky/addons
56ff850785c6caa8c18c2859e32a32c8902defea
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
28.992157
86
0.64507
df54829d9ec9ec96da71da124ebc4dffe0684ac2
232
py
Python
four.py
thinkphp/recursion
b33df15332d3c49ac4bd82de40727d454cc5bb63
[ "MIT" ]
null
null
null
four.py
thinkphp/recursion
b33df15332d3c49ac4bd82de40727d454cc5bb63
[ "MIT" ]
null
null
null
four.py
thinkphp/recursion
b33df15332d3c49ac4bd82de40727d454cc5bb63
[ "MIT" ]
null
null
null
def four(n): if n - 4 != 0: if n % 10 == 0: four(n//10) elif n % 10 == 4: four(n//10) else: four(n * 2) print(f" --> { n }", end = "") def main(): print("4 ", end="") four(123) main()
15.466667
34
0.37931
b2a7bea22ea8ca69b3805a1b99b6aaa904066151
1,520
py
Python
wexplorer/settings.py
codeforamerica/wexplorer
c2f433cf5ce2944a25a8f7c137875c99684f9775
[ "BSD-3-Clause" ]
1
2015-02-26T23:39:50.000Z
2015-02-26T23:39:50.000Z
wexplorer/settings.py
codeforamerica/wexplorer
c2f433cf5ce2944a25a8f7c137875c99684f9775
[ "BSD-3-Clause" ]
24
2015-01-15T07:47:52.000Z
2015-10-27T16:44:33.000Z
wexplorer/settings.py
codeforamerica/wexplorer
c2f433cf5ce2944a25a8f7c137875c99684f9775
[ "BSD-3-Clause" ]
4
2015-01-16T19:16:50.000Z
2021-04-16T10:15:07.000Z
# -*- coding: utf-8 -*- import os HERE = os.path.abspath(os.path.dirname(__file__)) os_env = os.environ class Config(object): SECRET_KEY = os_env.get('WEXPLORER_SECRET', 'secret-key') # TODO: Change me APP_DIR = os.path.abspath(os.path.dirname(__file__)) # This directory PROJECT_ROOT = os.path.abspath(o...
37.073171
122
0.696053
c6a590a551cb3f91680143564ed041f2fac698ed
1,716
py
Python
src/tidyhome/__init__.py
summitllc/tidyhome-py
b8f0c6e0dab2f736c43fbe44c338b21979e2f144
[ "MIT" ]
null
null
null
src/tidyhome/__init__.py
summitllc/tidyhome-py
b8f0c6e0dab2f736c43fbe44c338b21979e2f144
[ "MIT" ]
null
null
null
src/tidyhome/__init__.py
summitllc/tidyhome-py
b8f0c6e0dab2f736c43fbe44c338b21979e2f144
[ "MIT" ]
null
null
null
"""A package that simplifies the process of retrieving HMDA data from the HMDA Platform API Tidyhome provides access to data on US home mortgages from CFPB's Home Mortgage Disclosure Act (HMDA) Platform API via several functions. These functions make the proper API request (given your desired parameters) and store the...
42.9
141
0.731352
27220db215260d93e7284d108d167bbbc43f28e6
423
py
Python
metrics.py
felialois/iml_nearest_neighbor
ab0bcd56a9c40dde0d533efaa9cfa798d1036810
[ "MIT" ]
null
null
null
metrics.py
felialois/iml_nearest_neighbor
ab0bcd56a9c40dde0d533efaa9cfa798d1036810
[ "MIT" ]
null
null
null
metrics.py
felialois/iml_nearest_neighbor
ab0bcd56a9c40dde0d533efaa9cfa798d1036810
[ "MIT" ]
null
null
null
from sklearn.metrics import precision_score, recall_score def accuracy(x_true, x_predicted): """ :param x_true: :param x_predicted: :param average: :return: """ return precision_score(x_true, x_predicted, average='micro') def recall(x_true, x_predicted): """ :param x_true: ...
18.391304
64
0.661939
0bc8c8d123f2ae0ac316c4f97b40c691317c0783
1,979
py
Python
im2col.py
matt76k/flquire
01844fe3c6da1e4551656415d43a242a289f220d
[ "MIT" ]
null
null
null
im2col.py
matt76k/flquire
01844fe3c6da1e4551656415d43a242a289f220d
[ "MIT" ]
null
null
null
im2col.py
matt76k/flquire
01844fe3c6da1e4551656415d43a242a289f220d
[ "MIT" ]
null
null
null
# https://qiita.com/kuroitu/items/35d7b5a4bde470f69570 import numpy as np def im2col(images, filters, stride=1, pad=0): if images.ndim == 2: images = images.reshape(1, 1, *images.shape) elif images.ndim == 3: B, I_h, I_w = images.shape images = images.reshape(B, 1, I_h, I_w) B, C,...
32.983333
87
0.54472
dadac16aafd40556efcfeb833f36237c6a7a3cf2
1,290
py
Python
server/edp/server/models/cycle.py
OpenChemistry/experimentaldataplatform
f45a7ee4f9087a3e8fa61374ade4bd7b04584f61
[ "BSD-3-Clause" ]
2
2018-10-10T20:38:14.000Z
2020-07-01T13:14:59.000Z
server/edp/server/models/cycle.py
OpenChemistry/experimentaldataplatform
f45a7ee4f9087a3e8fa61374ade4bd7b04584f61
[ "BSD-3-Clause" ]
23
2018-09-06T22:31:53.000Z
2021-05-24T13:22:04.000Z
server/edp/server/models/cycle.py
OpenChemistry/edp
f45a7ee4f9087a3e8fa61374ade4bd7b04584f61
[ "BSD-3-Clause" ]
null
null
null
from .base import Base class Cycle(Base): def __init__(self): from girder.plugins.edp.models.project import Project from girder.plugins.edp.models.batch import Batch super(Cycle, self).__init__( name='edp.cycles', props=( { 'name...
27.446809
61
0.336434
0d22847db169a213820407a27c7776ff778f71e2
15,987
py
Python
alien4cloud-cloudify3-provider/src/test/resources/outputs/blueprints/openstack/storage/wrapper/LinuxFileSystem_4_CBS4/linuxPartitionCBS4/tosca.interfaces.relationship.Configure/pre_configure_source/_a4c_pre_configure_source.py
alien4cloud/alien4cloud-cloudify4-provider
97faee855255eb0c3ce25bb3075c29acd11a63c5
[ "Apache-2.0" ]
null
null
null
alien4cloud-cloudify3-provider/src/test/resources/outputs/blueprints/openstack/storage/wrapper/LinuxFileSystem_4_CBS4/linuxPartitionCBS4/tosca.interfaces.relationship.Configure/pre_configure_source/_a4c_pre_configure_source.py
alien4cloud/alien4cloud-cloudify4-provider
97faee855255eb0c3ce25bb3075c29acd11a63c5
[ "Apache-2.0" ]
3
2015-12-04T15:27:22.000Z
2016-04-08T11:32:43.000Z
alien4cloud-cloudify3-provider/src/test/resources/outputs/blueprints/openstack/storage/wrapper/LinuxFileSystem_4_CBS4/linuxPartitionCBS4/tosca.interfaces.relationship.Configure/pre_configure_source/_a4c_pre_configure_source.py
alien4cloud/alien4cloud-cloudify4-provider
97faee855255eb0c3ce25bb3075c29acd11a63c5
[ "Apache-2.0" ]
16
2015-01-29T10:05:09.000Z
2019-06-24T19:23:54.000Z
from cloudify import ctx from cloudify.exceptions import NonRecoverableError from cloudify.state import ctx_parameters as inputs import subprocess import os import re import sys import time import threading import platform from StringIO import StringIO from cloudify_rest_client import CloudifyClient from cloudify im...
45.033803
222
0.692938
ce63539b373ae23eb0a3a0a27e45a9c6ecde2a12
62
py
Python
function/run.py
rapodaca/cpython_test
3d0df026ffc0aa71cdc358d4a2ce9c10f594188e
[ "MIT-0", "MIT" ]
null
null
null
function/run.py
rapodaca/cpython_test
3d0df026ffc0aa71cdc358d4a2ce9c10f594188e
[ "MIT-0", "MIT" ]
null
null
null
function/run.py
rapodaca/cpython_test
3d0df026ffc0aa71cdc358d4a2ce9c10f594188e
[ "MIT-0", "MIT" ]
null
null
null
from target.debug.function import greet print(greet("Smith"))
20.666667
39
0.790323
f5b115c82f18790920cae85d5d6fa84a0c465eb3
236
py
Python
qatrack/units/admin.py
mmmetwaly/qatrackplus
193bc22c0014891f5d97be32ccc73a08c7f7f81b
[ "MIT" ]
5
2016-08-22T04:58:58.000Z
2021-03-27T07:34:06.000Z
qatrack/units/admin.py
mmmetwaly/qatrackplus
193bc22c0014891f5d97be32ccc73a08c7f7f81b
[ "MIT" ]
null
null
null
qatrack/units/admin.py
mmmetwaly/qatrackplus
193bc22c0014891f5d97be32ccc73a08c7f7f81b
[ "MIT" ]
3
2017-04-27T13:21:26.000Z
2018-04-16T03:45:10.000Z
from django.contrib import admin from models import Unit, Modality, UnitType class UnitAdmin(admin.ModelAdmin): filter_horizontal = ("modalities",) admin.site.register([Unit], UnitAdmin) admin.site.register([Modality, UnitType])
23.6
43
0.775424
3b5c2d051b721f6db0806dd46e0cb71b07068da4
882
py
Python
echallan/home/migrations/0001_initial.py
sumanbudhathoki9808/E-Challan
5ce22f8d68bee1dbabc8d3081238fd56c1a325a6
[ "MIT" ]
null
null
null
echallan/home/migrations/0001_initial.py
sumanbudhathoki9808/E-Challan
5ce22f8d68bee1dbabc8d3081238fd56c1a325a6
[ "MIT" ]
18
2021-04-08T08:56:58.000Z
2021-05-19T15:50:30.000Z
echallan/home/migrations/0001_initial.py
sumanbudhathoki9808/E-Challan
5ce22f8d68bee1dbabc8d3081238fd56c1a325a6
[ "MIT" ]
null
null
null
# Generated by Django 3.1.7 on 2021-05-09 15:10 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Challan', fields=[ ('id', models.AutoField(...
31.5
114
0.57483
b7b60df148eb75b3dd0921fa580b44b31b036005
63,810
py
Python
sdk/python/pulumi_azure/iot/outputs.py
ScriptBox99/pulumi-azure
1b8c6d5479ccabc39094741eac25a8ca44c8833a
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure/iot/outputs.py
ScriptBox99/pulumi-azure
1b8c6d5479ccabc39094741eac25a8ca44c8833a
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure/iot/outputs.py
ScriptBox99/pulumi-azure
1b8c6d5479ccabc39094741eac25a8ca44c8833a
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
42.969697
683
0.655681
55fa8c90a3c1ce70716b3844eeb8b1c74c27385a
22,622
py
Python
dmmfods/agents/FasterRCNNAgent.py
pmcgrath249/DeepCV_Lab
60d4c3ff94741b864f2b381ca1c977d9cb60c463
[ "MIT" ]
4
2020-05-08T01:42:16.000Z
2020-10-19T07:24:53.000Z
dmmfods/agents/FasterRCNNAgent.py
pmcgrath249/DeepCV_Lab
60d4c3ff94741b864f2b381ca1c977d9cb60c463
[ "MIT" ]
1
2020-08-06T00:54:15.000Z
2020-10-06T08:56:24.000Z
dmmfods/agents/FasterRCNNAgent.py
pmcgrath249/DeepCV_Lab
60d4c3ff94741b864f2b381ca1c977d9cb60c463
[ "MIT" ]
4
2020-07-25T01:24:08.000Z
2020-09-30T01:47:56.000Z
import os import logging import torch import torch.nn as nn from torchvision.models.detection import maskrcnn_resnet50_fpn from torchvision.models.detection.faster_rcnn import FastRCNNPredictor from torchvision.models.detection.mask_rcnn import MaskRCNNPredictor import warnings import numpy as np from torch.ba...
46.07332
125
0.59199
79a008b7cd3cac1027c1a7f3e08e238d2d127894
2,148
py
Python
dephell/package_manager.py
awesome-archive/dephell
935e36dabdd68fcbfab5aa55d0ac0a76d5ee32ba
[ "MIT" ]
null
null
null
dephell/package_manager.py
awesome-archive/dephell
935e36dabdd68fcbfab5aa55d0ac0a76d5ee32ba
[ "MIT" ]
null
null
null
dephell/package_manager.py
awesome-archive/dephell
935e36dabdd68fcbfab5aa55d0ac0a76d5ee32ba
[ "MIT" ]
null
null
null
# built-in import subprocess import sys from logging import getLogger from pathlib import Path from tempfile import TemporaryDirectory from typing import Iterable, Set # external import attr # app from .converters import PIPConverter from .models import Requirement from .utils import cached_property logger = getLog...
31.130435
99
0.629423
cbba19cb3aef0a09ca66018f22f400d4fe6d1a0d
2,404
py
Python
pyfacebook/models/event.py
sns-sdks/python-facebook
9536d30393dee8b2a887b81f103d76262a677eee
[ "Apache-2.0" ]
181
2019-08-28T10:03:49.000Z
2022-03-26T19:36:05.000Z
pyfacebook/models/event.py
sns-sdks/python-facebook
9536d30393dee8b2a887b81f103d76262a677eee
[ "Apache-2.0" ]
159
2019-08-28T10:07:43.000Z
2022-03-30T16:42:23.000Z
pyfacebook/models/event.py
sns-sdks/python-facebook
9536d30393dee8b2a887b81f103d76262a677eee
[ "Apache-2.0" ]
40
2019-09-10T20:12:47.000Z
2022-03-12T16:16:46.000Z
""" Models for event. Refer: https://developers.facebook.com/docs/graph-api/reference/event """ from dataclasses import dataclass from typing import List, Optional from pyfacebook.models.base import BaseModel, field from pyfacebook.models.image import CoverPhoto @dataclass class EventTime(BaseModel): "...
32.486486
84
0.676373
4bd76b4f1243cab78710e547a0a3f835bad4394f
2,744
py
Python
examples/OpenCV/eye_process/eye_process.py
victorgirleanu/FaceAnalyzer
afb0e326e79819a1fbafe1c71a5e080e8a2eb30e
[ "MIT" ]
1
2021-12-13T14:05:55.000Z
2021-12-13T14:05:55.000Z
examples/OpenCV/eye_process/eye_process.py
victorgirleanu/FaceAnalyzer
afb0e326e79819a1fbafe1c71a5e080e8a2eb30e
[ "MIT" ]
null
null
null
examples/OpenCV/eye_process/eye_process.py
victorgirleanu/FaceAnalyzer
afb0e326e79819a1fbafe1c71a5e080e8a2eb30e
[ "MIT" ]
null
null
null
"""============= Example : face_off.py Author : Saifeddine ALOUI Description : An example to show how to get the eyes opening as well as the blinking information <================""" import numpy as np from pathlib import Path import cv2 import time from FaceAnalyzer import FaceAnalyzer cap = cv2...
37.589041
195
0.640671
c67e5bd6b42a8e7e2aa5b5b1cb07cb11f128148e
5,668
py
Python
codes/projects/poisson_3d/drivers_vae/scheduler_multinode_multiprocess_training_vae.py
hwangoh/uq-vae
382548e6f6dd7f9d72feff0e0752beec871db348
[ "MIT" ]
2
2021-07-28T16:47:18.000Z
2021-08-03T00:53:58.000Z
codes/projects/poisson_3d/drivers_vae/scheduler_multinode_multiprocess_training_vae.py
HwanGoh/uq-vae
24a3d26987e2ec807d57601b14c68b22f3652a18
[ "MIT" ]
null
null
null
codes/projects/poisson_3d/drivers_vae/scheduler_multinode_multiprocess_training_vae.py
HwanGoh/uq-vae
24a3d26987e2ec807d57601b14c68b22f3652a18
[ "MIT" ]
2
2021-09-29T08:31:46.000Z
2021-11-07T10:26:45.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- '''Schedules hyperparameter scenarios and drives training You will need to specify: - In generate_scenarios_list() the set of hyperparameter scenarios you wish to use - In subprocess.Popen() whether the parameter-to-observable map is modelled or learne...
38.821918
104
0.571807
7c2026fb43777c57b0b6885138d040b31f381a8a
154
py
Python
tests/model_control/detailed/transf_Anscombe/model_control_one_enabled_Anscombe_ConstantTrend_BestCycle_AR.py
shaido987/pyaf
b9afd089557bed6b90b246d3712c481ae26a1957
[ "BSD-3-Clause" ]
377
2016-10-13T20:52:44.000Z
2022-03-29T18:04:14.000Z
tests/model_control/detailed/transf_Anscombe/model_control_one_enabled_Anscombe_ConstantTrend_BestCycle_AR.py
ysdede/pyaf
b5541b8249d5a1cfdc01f27fdfd99b6580ed680b
[ "BSD-3-Clause" ]
160
2016-10-13T16:11:53.000Z
2022-03-28T04:21:34.000Z
tests/model_control/detailed/transf_Anscombe/model_control_one_enabled_Anscombe_ConstantTrend_BestCycle_AR.py
ysdede/pyaf
b5541b8249d5a1cfdc01f27fdfd99b6580ed680b
[ "BSD-3-Clause" ]
63
2017-03-09T14:51:18.000Z
2022-03-27T20:52:57.000Z
import tests.model_control.test_ozone_custom_models_enabled as testmod testmod.build_model( ['Anscombe'] , ['ConstantTrend'] , ['BestCycle'] , ['AR'] );
38.5
81
0.746753
079660b7537213e8eb0c54b1e33e001f2274a65b
1,178
py
Python
lib/setup_custom.py
curtjen/clither
b62bb663aa75edc189455c5bd857437623fbf691
[ "MIT" ]
null
null
null
lib/setup_custom.py
curtjen/clither
b62bb663aa75edc189455c5bd857437623fbf691
[ "MIT" ]
null
null
null
lib/setup_custom.py
curtjen/clither
b62bb663aa75edc189455c5bd857437623fbf691
[ "MIT" ]
null
null
null
#!/bin/env python """Backup current RC files in the HOME directory.""" import os from helpers import create_directory, copy_file, paths, mk_clither_custom_dirs, clean_dir def main(): print('-' * 40) print('Start mk_custom...') create_directory(paths.custom_path) copy_file(paths.clither_tmp_config, paths.cust...
36.8125
100
0.808998
e7c3a3e520798c8a865c51fefd5362864954231a
41,763
py
Python
sushy_tools/emulator/resources/systems/libvirtdriver.py
alexpilotti/sushy-tools
262ba32a4e583a31385378f5dbce943b70e638d5
[ "Apache-2.0" ]
null
null
null
sushy_tools/emulator/resources/systems/libvirtdriver.py
alexpilotti/sushy-tools
262ba32a4e583a31385378f5dbce943b70e638d5
[ "Apache-2.0" ]
null
null
null
sushy_tools/emulator/resources/systems/libvirtdriver.py
alexpilotti/sushy-tools
262ba32a4e583a31385378f5dbce943b70e638d5
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Red Hat, 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...
35.971576
84
0.571199
d7b50546832793c6e208a340695cc60677f3319f
12,678
py
Python
homeassistant/components/apple_tv/__init__.py
zechfox/core
a90d3a051fc402957c24ec782fca1d2f6d9cf8dc
[ "Apache-2.0" ]
1
2021-07-31T15:19:30.000Z
2021-07-31T15:19:30.000Z
homeassistant/components/apple_tv/__init__.py
zechfox/core
a90d3a051fc402957c24ec782fca1d2f6d9cf8dc
[ "Apache-2.0" ]
25
2021-05-04T08:33:38.000Z
2022-03-31T06:10:33.000Z
homeassistant/components/apple_tv/__init__.py
zechfox/core
a90d3a051fc402957c24ec782fca1d2f6d9cf8dc
[ "Apache-2.0" ]
null
null
null
"""The Apple TV integration.""" import asyncio import logging from random import randrange from pyatv import connect, exceptions, scan from pyatv.const import Protocol from homeassistant.components.media_player import DOMAIN as MP_DOMAIN from homeassistant.components.remote import DOMAIN as REMOTE_DOMAIN from homeass...
32.341837
88
0.622653
f6ed5ffb89ca12e42edae04889588f0578ff7055
1,659
py
Python
naivenmt/layers/attentions_test.py
naivenmt/naivenmt-tf
dc267d980eebf79887d89ac42eff8804ad96bac8
[ "Apache-2.0" ]
null
null
null
naivenmt/layers/attentions_test.py
naivenmt/naivenmt-tf
dc267d980eebf79887d89ac42eff8804ad96bac8
[ "Apache-2.0" ]
4
2020-11-13T18:35:42.000Z
2022-02-10T00:38:08.000Z
naivenmt/layers/attentions_test.py
naivenmt/naivenmt-tf
dc267d980eebf79887d89ac42eff8804ad96bac8
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The naivenmt authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
33.857143
74
0.732369
d6f05b89c6c45c1165407a229294594569e40626
5,780
py
Python
mrexpt2html.py
Ujwal-NK/moonreader2html
6fedf568fdee35b79f9304abb11237df73c351dd
[ "MIT" ]
null
null
null
mrexpt2html.py
Ujwal-NK/moonreader2html
6fedf568fdee35b79f9304abb11237df73c351dd
[ "MIT" ]
null
null
null
mrexpt2html.py
Ujwal-NK/moonreader2html
6fedf568fdee35b79f9304abb11237df73c351dd
[ "MIT" ]
null
null
null
# Required to parse arguments import argparse from datetime import datetime from operator import itemgetter # Required to create and mainpulate HTML file import jinja2 from titlecase import titlecase # Required to encode image into HTML file import base64 # Function to encode cover.png image into HTML base64 form...
37.290323
329
0.630969
d3515c1ccb56ed8ebecb94084f1b4be0c6283324
10,395
py
Python
examples/tables.py
totdiao/XlsxWriter
3d65858d8933bddb8262d500bcc2005f28fde645
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
examples/tables.py
totdiao/XlsxWriter
3d65858d8933bddb8262d500bcc2005f28fde645
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
examples/tables.py
totdiao/XlsxWriter
3d65858d8933bddb8262d500bcc2005f28fde645
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
############################################################################### # # Example of how to add tables to an XlsxWriter worksheet. # # Tables in Excel are used to group rows and columns of data into a single # structure that can be referenced in a formula or formatted collectively. # # Copyright 2013-2016, Jo...
30.483871
79
0.485714
dded0612c607f396d9dcee1ec7de412d5822bc7a
4,606
py
Python
tokenizer.py
Joe0400Student/fquery
9bf9f8947f012ecc0b6edafb366ce16e8881238c
[ "MIT" ]
1
2021-11-30T18:42:55.000Z
2021-11-30T18:42:55.000Z
tokenizer.py
Joe0400Student/fquery
9bf9f8947f012ecc0b6edafb366ce16e8881238c
[ "MIT" ]
null
null
null
tokenizer.py
Joe0400Student/fquery
9bf9f8947f012ecc0b6edafb366ce16e8881238c
[ "MIT" ]
null
null
null
def tokenizer(s: str) -> list: def name(s: str, previous: str) -> tuple: print("calling name") print(s) input() if(len(s) == 0): print("exiting name") return ("name",previous,s) elif(s[0] in " \n\t:=?<>|^*+-!()[]{}\/.,;'\"~`@"): pr...
30.912752
88
0.393183
a912e125af0cb8a492b63e98eba40ea00972e08d
799
py
Python
tests/functional/dashboard/test_promotion.py
guidoaaroni/arandu
e1553b21516f38fd2fb10cf65204541efd3c8b54
[ "BSD-3-Clause" ]
1
2018-06-27T14:20:39.000Z
2018-06-27T14:20:39.000Z
tests/functional/dashboard/test_promotion.py
guidoaaroni/arandu
e1553b21516f38fd2fb10cf65204541efd3c8b54
[ "BSD-3-Clause" ]
7
2019-12-26T16:44:12.000Z
2021-09-07T23:56:04.000Z
tests/functional/dashboard/test_promotion.py
guidoaaroni/arandu
e1553b21516f38fd2fb10cf65204541efd3c8b54
[ "BSD-3-Clause" ]
1
2019-04-29T17:40:15.000Z
2019-04-29T17:40:15.000Z
from django.core.urlresolvers import reverse from oscar.test.testcases import WebTestCase class ViewTests(WebTestCase): is_staff = True def test_pages_exist(self): urls = [ reverse('dashboard:promotion-list'), reverse('dashboard:promotion-create-rawhtml'), reverse...
31.96
65
0.637046
2ae685cec369f25f576cc6598260a0b210af4838
22,437
py
Python
nova/api/ec2/__init__.py
bopopescu/nova-33
6d3cf9010a45edb16f28b2582eafe35666381d1f
[ "Apache-2.0" ]
1
2019-11-06T12:21:59.000Z
2019-11-06T12:21:59.000Z
nova/api/ec2/__init__.py
bopopescu/nova-33
6d3cf9010a45edb16f28b2582eafe35666381d1f
[ "Apache-2.0" ]
null
null
null
nova/api/ec2/__init__.py
bopopescu/nova-33
6d3cf9010a45edb16f28b2582eafe35666381d1f
[ "Apache-2.0" ]
2
2019-12-23T18:06:28.000Z
2020-07-24T08:44:28.000Z
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compli...
40.794545
79
0.589562
a386e198c34b10f37cadd99ed67112d58de3184c
33,240
py
Python
NNFramework_PyTorch/sa_data_providers/multiplex_seg_data_provider_from_npy_dots.py
ShahiraAbousamra/mihc_analysis_dp_paper
cea39fb57485861688cb827acd91627a5548f4c4
[ "BSD-3-Clause" ]
null
null
null
NNFramework_PyTorch/sa_data_providers/multiplex_seg_data_provider_from_npy_dots.py
ShahiraAbousamra/mihc_analysis_dp_paper
cea39fb57485861688cb827acd91627a5548f4c4
[ "BSD-3-Clause" ]
null
null
null
NNFramework_PyTorch/sa_data_providers/multiplex_seg_data_provider_from_npy_dots.py
ShahiraAbousamra/mihc_analysis_dp_paper
cea39fb57485861688cb827acd91627a5548f4c4
[ "BSD-3-Clause" ]
null
null
null
from __future__ import print_function from ..sa_net_data_provider import AbstractDataProvider; from numpy import random; from distutils.util import strtobool; import scipy.io as spio; import numpy as np; import glob; import os; from skimage import io; from skimage import transform as sktransform; import t...
47.082153
194
0.5784
c9ea9b6daecd1fdea0c0b4b757a4775130cf97be
13,280
py
Python
sdk/python/pulumi_azure_native/network/v20180601/express_route_circuit_authorization.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/network/v20180601/express_route_circuit_authorization.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/network/v20180601/express_route_circuit_authorization.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
87.94702
6,429
0.757078
d5a58d957994688e80f17f7537ce281cc7c77a26
491
py
Python
other/dingding/dingtalk/api/rest/OapiEduCourseUpdateRequest.py
hth945/pytest
83e2aada82a2c6a0fdd1721320e5bf8b8fd59abc
[ "Apache-2.0" ]
null
null
null
other/dingding/dingtalk/api/rest/OapiEduCourseUpdateRequest.py
hth945/pytest
83e2aada82a2c6a0fdd1721320e5bf8b8fd59abc
[ "Apache-2.0" ]
null
null
null
other/dingding/dingtalk/api/rest/OapiEduCourseUpdateRequest.py
hth945/pytest
83e2aada82a2c6a0fdd1721320e5bf8b8fd59abc
[ "Apache-2.0" ]
null
null
null
''' Created by auto_sdk on 2020.08.10 ''' from dingtalk.api.base import RestApi class OapiEduCourseUpdateRequest(RestApi): def __init__(self,url=None): RestApi.__init__(self,url) self.course_code = None self.end_time = None self.introduce = None self.name = None self.op_userid = None self.start_time = No...
22.318182
42
0.741344
04431ef5f27cfa1941e89c0b1031aada112d2154
1,687
py
Python
homeassistant/config/custom_components/hacs/enums.py
yuvalabou/homeassistant
e25885db33d2144455928d07d7e9b044278ba291
[ "Unlicense" ]
456
2019-03-02T22:46:27.000Z
2019-10-23T18:34:23.000Z
homeassistant/config/custom_components/hacs/enums.py
yuvalabou/homeassistant
e25885db33d2144455928d07d7e9b044278ba291
[ "Unlicense" ]
573
2019-03-02T18:42:28.000Z
2019-10-24T07:52:38.000Z
homeassistant/config/custom_components/hacs/enums.py
yuvalabou/homeassistant
e25885db33d2144455928d07d7e9b044278ba291
[ "Unlicense" ]
275
2019-05-22T06:27:25.000Z
2019-10-23T11:42:51.000Z
"""Helper constants.""" # pylint: disable=missing-class-docstring from enum import Enum class HacsGitHubRepo(str, Enum): """HacsGitHubRepo.""" DEFAULT = "hacs/default" INTEGRATION = "hacs/integration" class HacsCategory(str, Enum): APPDAEMON = "appdaemon" INTEGRATION = "integration" LOVELAC...
22.197368
79
0.672199
e1962676b43f79e94107983936aaf72883d8130e
101
py
Python
wsgi.py
bertrand-caron/cv_blog_flask
ce779db31805f0b1a7bbc9a6f09a7d3fe1af74b2
[ "MIT" ]
null
null
null
wsgi.py
bertrand-caron/cv_blog_flask
ce779db31805f0b1a7bbc9a6f09a7d3fe1af74b2
[ "MIT" ]
null
null
null
wsgi.py
bertrand-caron/cv_blog_flask
ce779db31805f0b1a7bbc9a6f09a7d3fe1af74b2
[ "MIT" ]
null
null
null
from application import APPLICATION as application if __name__ == '__main__': application.run()
20.2
50
0.762376
1b9cd3195872e5cdc6c940c2f19253e143a66378
9,687
py
Python
models/official/detection/executor/tpu_executor.py
dang-qi/tpu
7b446fd545f4babc73f074d16cf189dde444013c
[ "Apache-2.0" ]
null
null
null
models/official/detection/executor/tpu_executor.py
dang-qi/tpu
7b446fd545f4babc73f074d16cf189dde444013c
[ "Apache-2.0" ]
null
null
null
models/official/detection/executor/tpu_executor.py
dang-qi/tpu
7b446fd545f4babc73f074d16cf189dde444013c
[ "Apache-2.0" ]
null
null
null
# Lint as: python2, python3 # Copyright 2019 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 # ...
39.218623
95
0.679571
0ae37ffc7a4677772e3d0fecb859ba24a292039e
924
py
Python
usd_noodle/utils.py
chris-gardner/usd-noodle
96c53e5dc4071d66d4f1bae1e9fa78393ce0190c
[ "MIT" ]
86
2020-08-07T03:03:29.000Z
2022-03-24T21:24:05.000Z
usd_noodle/utils.py
SunriseProductions/usd-noodle
887cd5ed2ed52f4d562b8d7393c4692c4221d1e7
[ "MIT" ]
15
2020-07-14T12:17:31.000Z
2020-08-13T23:34:59.000Z
usd_noodle/utils.py
chris-gardner/usd-noodle
96c53e5dc4071d66d4f1bae1e9fa78393ce0190c
[ "MIT" ]
14
2020-08-07T10:53:57.000Z
2021-08-09T04:55:50.000Z
import os.path escape_dict = { '\7': r'\a', '\a': r'\a', '\b': r'\b', '\c': r'\c', '\f': r'\f', '\n': r'\n', '\r': r'\r', '\t': r'\t', '\v': r'\v', '\'': r'\'', '\"': r'\"', '\0': r'\0', '\1': r'\1', '\2': r'\2', '\3': r'\3', '\4': r'\4', '\5': r'\5'...
18.117647
53
0.42316
8455c576c39aef0dfe8701616d067629389984c8
1,961
py
Python
OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/raw/GLES2/NV/framebuffer_mixed_samples.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/raw/GLES2/NV/framebuffer_mixed_samples.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/raw/GLES2/NV/framebuffer_mixed_samples.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
'''Autogenerated by xml_generate script, do not edit!''' from OpenGL import platform as _p, arrays # Code generation uses this from OpenGL.raw.GLES2 import _types as _cs # End users want this... from OpenGL.raw.GLES2._types import * from OpenGL.raw.GLES2 import _errors from OpenGL.constant import Constant as _C ...
49.025
132
0.844977