hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
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
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
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
248
max_forks_repo_name
stringlengths
5
125
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
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
b1a88bc7e1241c7e280f5c4ac943fa677100e8e2
7,651
py
Python
utilities/tag-bumper.py
stackrox/collector
4c3913176eb62636e32a8a56f889e611c638de73
[ "Apache-2.0" ]
1
2022-03-31T15:25:16.000Z
2022-03-31T15:25:16.000Z
utilities/tag-bumper.py
stackrox/collector
4c3913176eb62636e32a8a56f889e611c638de73
[ "Apache-2.0" ]
4
2022-03-31T16:16:00.000Z
2022-03-31T23:24:33.000Z
utilities/tag-bumper.py
stackrox/collector
4c3913176eb62636e32a8a56f889e611c638de73
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python3 from sh import git, ErrorReturnCode import argparse import sys import os import atexit import re def exit_handler(repo): """ Rollback the repo to the branch passed as an argument. Parameters: repo: An sh.Command baked for git on the working repository. """ print('...
29.091255
119
0.640439
0
0
0
0
0
0
0
0
4,247
0.555091
b1a911035784142a39959873000505c8b7d79b40
2,455
py
Python
openshift/helper/openshift.py
flaper87/openshift-restclient-python
13d5d86ca89035b9f596032e7a34f3cc33bf8f18
[ "Apache-2.0" ]
null
null
null
openshift/helper/openshift.py
flaper87/openshift-restclient-python
13d5d86ca89035b9f596032e7a34f3cc33bf8f18
[ "Apache-2.0" ]
null
null
null
openshift/helper/openshift.py
flaper87/openshift-restclient-python
13d5d86ca89035b9f596032e7a34f3cc33bf8f18
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import import json from kubernetes.client import models as k8s_models from kubernetes.client import apis as k8s_apis from kubernetes.client.rest import ApiException from urllib3.exceptions import MaxRetryError from . import VERSION_RX from .. import config from...
35.071429
127
0.712424
1,914
0.779633
0
0
937
0.38167
0
0
166
0.067617
b1a93d370fc62aa987aa9250ab1bac4da3444f9c
35
py
Python
tests/__init__.py
jsta/nhdpy
38f52a68907e4d838715c77b18e61450eb775c72
[ "MIT" ]
null
null
null
tests/__init__.py
jsta/nhdpy
38f52a68907e4d838715c77b18e61450eb775c72
[ "MIT" ]
8
2020-11-12T16:42:23.000Z
2021-03-04T19:00:09.000Z
tests/__init__.py
jsta/nhdpy
38f52a68907e4d838715c77b18e61450eb775c72
[ "MIT" ]
null
null
null
"""Unit test package for nhdpy."""
17.5
34
0.657143
0
0
0
0
0
0
0
0
34
0.971429
b1a94a4b34655e087c8464bf5e2ca43f8d328eaa
10,423
py
Python
ltcl/modules/lvae_nonlinear.py
anonymous-authors-iclr2022-481/ltcl
0d8902228fa6c37f875bb60c4d16988462a9655a
[ "MIT" ]
8
2021-10-16T08:35:37.000Z
2022-02-10T09:25:50.000Z
leap/modules/lvae_nonlinear.py
weirayao/leap
8d10b8413d02d3be49d5c02a13a0aa60a741d8da
[ "MIT" ]
null
null
null
leap/modules/lvae_nonlinear.py
weirayao/leap
8d10b8413d02d3be49d5c02a13a0aa60a741d8da
[ "MIT" ]
1
2021-11-30T04:06:43.000Z
2021-11-30T04:06:43.000Z
"""Temporal VAE with gaussian margial and laplacian transition prior""" import torch import numpy as np import ipdb as pdb import torch.nn as nn import pytorch_lightning as pl import torch.distributions as D from torch.nn import functional as F from .components.beta import BetaVAE_MLP from .metrics.correla...
40.399225
111
0.570469
8,849
0.848988
0
0
113
0.010841
0
0
1,549
0.148614
b1a94cda8b0a8f59129a19a7e19f329084618c94
7,196
py
Python
cargame/camera.py
jocelynthiojaya/Self-Learning-Cars
5dbd47f4f34155cf50cd6c6a6daef70449f96398
[ "Apache-2.0" ]
null
null
null
cargame/camera.py
jocelynthiojaya/Self-Learning-Cars
5dbd47f4f34155cf50cd6c6a6daef70449f96398
[ "Apache-2.0" ]
null
null
null
cargame/camera.py
jocelynthiojaya/Self-Learning-Cars
5dbd47f4f34155cf50cd6c6a6daef70449f96398
[ "Apache-2.0" ]
null
null
null
import arcade from cargame.globals import conf from cargame import util # This math is for getting the ratio from zoom. I honestly # don't know what it is called, i just constructed it by hand # Long form is 1 - (x - 1) / 2 zoom_multiplexer = lambda x : (3 - x)/2 # TODO: Implement anchor class Camera: def __init...
34.932039
153
0.591857
6,903
0.959283
0
0
0
0
0
0
2,540
0.352974
b1ac9e7af9abde201568a2b9eff7f851241bb02a
168
py
Python
configs/tsmnet/tsmnet_r50-d1_769x769_40k_cityscapes_video.py
labdeeman7/TRDP_temporal_stability_semantic_segmentation
efe0f13c2ed4e203d1caa41810e39e09152b508e
[ "Apache-2.0" ]
null
null
null
configs/tsmnet/tsmnet_r50-d1_769x769_40k_cityscapes_video.py
labdeeman7/TRDP_temporal_stability_semantic_segmentation
efe0f13c2ed4e203d1caa41810e39e09152b508e
[ "Apache-2.0" ]
null
null
null
configs/tsmnet/tsmnet_r50-d1_769x769_40k_cityscapes_video.py
labdeeman7/TRDP_temporal_stability_semantic_segmentation
efe0f13c2ed4e203d1caa41810e39e09152b508e
[ "Apache-2.0" ]
null
null
null
_base_ = [ '../_base_/models/tsm_r50-d8.py', '../_base_/datasets/cityscapes_769x769.py', '../_base_/default_runtime.py', '../_base_/schedules/schedule_40k.py' ]
42
81
0.684524
0
0
0
0
0
0
0
0
141
0.839286
b1aca6b126eaf2078a24e5384b735f4060abd7a2
1,883
py
Python
abc/104/c_retry2.py
515hikaru/solutions
9fb3e4600f9a97b78211a5736c98354d4cbebc38
[ "MIT" ]
null
null
null
abc/104/c_retry2.py
515hikaru/solutions
9fb3e4600f9a97b78211a5736c98354d4cbebc38
[ "MIT" ]
9
2019-12-29T17:57:39.000Z
2020-02-16T16:36:04.000Z
abc104/c_retry2.py
515hikaru/abc-sandbox
6445dd9d6583bd48a285d6e5693173529933da51
[ "MIT" ]
null
null
null
from itertools import combinations def exclude_combi_idx(combis, scores): a = [score[1] for score in combis] v = [] for score in scores: if score[1] in a: continue v.append(score) return v def set_all_solve(combi): current = 0 num = 0 for item in combi: ...
29.888889
86
0.495486
0
0
0
0
0
0
0
0
257
0.134908
b1acfa5bf6bd71ea82cf922fd4900527c2980874
4,418
py
Python
merlin/celery.py
robinson96/merlin
962b97ac037465f0fe285ceee6b77e554d8a29fe
[ "MIT" ]
null
null
null
merlin/celery.py
robinson96/merlin
962b97ac037465f0fe285ceee6b77e554d8a29fe
[ "MIT" ]
null
null
null
merlin/celery.py
robinson96/merlin
962b97ac037465f0fe285ceee6b77e554d8a29fe
[ "MIT" ]
null
null
null
############################################################################### # Copyright (c) 2019, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory # Written by the Merlin dev team, listed in the CONTRIBUTORS file. # <[email protected]> # # LLNL-CODE-797170 # All righ...
33.218045
88
0.715708
0
0
0
0
645
0.145994
0
0
2,369
0.536215
b1ad3f5981efc006ce7e36a91015794cd61586bc
648
py
Python
webapi/apps/web/management/mockup.py
NovaSBE-DSKC/retention-evaluation
5b68b9282f0b5479a9dc5238faef68067c76b861
[ "MIT" ]
null
null
null
webapi/apps/web/management/mockup.py
NovaSBE-DSKC/retention-evaluation
5b68b9282f0b5479a9dc5238faef68067c76b861
[ "MIT" ]
null
null
null
webapi/apps/web/management/mockup.py
NovaSBE-DSKC/retention-evaluation
5b68b9282f0b5479a9dc5238faef68067c76b861
[ "MIT" ]
null
null
null
import random import pandas as pd import json def get_random_name(): names = ["Miguel", "Susana", " Pedro", "Mateus", "Ângelo", "Beatriz", "Ana", " Maria", "Carlos", "José"] return names[random.randint(0, len(names) - 1)] def add_random_names(data): for x in data: x["name"] = get_random_name() ...
20.903226
108
0.634259
0
0
0
0
0
0
0
0
169
0.26
b1ad704b385cea93f718a905833492ee873ae1bf
1,332
py
Python
migrations/versions/e91e2508f055_.py
ifat-mohit/flask-microblog
f4f5f0df600779caecbe442d30a7ecc517ad515f
[ "MIT" ]
1
2021-02-13T23:47:46.000Z
2021-02-13T23:47:46.000Z
migrations/versions/e91e2508f055_.py
ifat-mohit/flask-microblog
f4f5f0df600779caecbe442d30a7ecc517ad515f
[ "MIT" ]
2
2021-02-14T17:04:53.000Z
2021-06-02T00:35:49.000Z
migrations/versions/e91e2508f055_.py
mohidex/flask-microblog
f4f5f0df600779caecbe442d30a7ecc517ad515f
[ "MIT" ]
1
2020-04-07T11:56:22.000Z
2020-04-07T11:56:22.000Z
"""empty message Revision ID: e91e2508f055 Revises: a064e677a1f1 Create Date: 2019-11-04 22:59:00.701304 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'e91e2508f055' down_revision = 'a064e677a1f1' branch_labels = None depends_on = None def upgrade(): # ...
31.714286
89
0.682432
0
0
0
0
0
0
0
0
579
0.434685
490a5d4dee030077442db885609423fe0007703e
758
py
Python
cli/cli_cloudformation.py
reneses/cloud-cli
1f765cfb67cb9ffde1633fffe0da11893fb1503f
[ "MIT" ]
null
null
null
cli/cli_cloudformation.py
reneses/cloud-cli
1f765cfb67cb9ffde1633fffe0da11893fb1503f
[ "MIT" ]
null
null
null
cli/cli_cloudformation.py
reneses/cloud-cli
1f765cfb67cb9ffde1633fffe0da11893fb1503f
[ "MIT" ]
null
null
null
from menu import Menu, MenuEntry from logic.cloudformation import CloudFormation class CloudFormationCli: """ Menu for the AWS CloudFormation operations """ def __init__(self): """ Run the menu """ # Init the logic handler self.cloudformation = CloudFormation()...
25.266667
71
0.604222
675
0.890501
0
0
0
0
0
0
304
0.401055
490a7e4e927bf1f9002b7ce41d2b092342ed19da
3,107
py
Python
bot/models/__init__.py
masterbpro/radio-archive
c612cd845d969a6577a3facbdd8183048f8db2de
[ "MIT" ]
null
null
null
bot/models/__init__.py
masterbpro/radio-archive
c612cd845d969a6577a3facbdd8183048f8db2de
[ "MIT" ]
null
null
null
bot/models/__init__.py
masterbpro/radio-archive
c612cd845d969a6577a3facbdd8183048f8db2de
[ "MIT" ]
null
null
null
from datetime import datetime, timedelta from peewee import SqliteDatabase, Model, PrimaryKeyField, IntegerField, CharField, BooleanField, DateTimeField from bot.data.config import STATIC_DIR from bot.utils.logging import logger db = SqliteDatabase(f"{STATIC_DIR}/db.sqlite3") class User(Model): """ Клас оп...
30.762376
111
0.620856
3,054
0.888566
0
0
0
0
0
0
1,303
0.37911
490c3a09e90ac7741bc5df730d26dac2764368fc
40,373
py
Python
TrainingExtensions/tensorflow/src/python/aimet_tensorflow/utils/op/fusedbatchnorm.py
quic-ykota/aimet
c897bd4c360e3a0fb7a329c6bb98b569f66bace1
[ "BSD-3-Clause" ]
945
2020-04-30T02:23:55.000Z
2022-03-31T08:44:32.000Z
TrainingExtensions/tensorflow/src/python/aimet_tensorflow/utils/op/fusedbatchnorm.py
seaun163/aimet
de94e5522e0c9250fb422d064b77ef9ecc70f239
[ "BSD-3-Clause" ]
563
2020-05-01T03:07:22.000Z
2022-03-30T05:35:58.000Z
TrainingExtensions/tensorflow/src/python/aimet_tensorflow/utils/op/fusedbatchnorm.py
seaun163/aimet
de94e5522e0c9250fb422d064b77ef9ecc70f239
[ "BSD-3-Clause" ]
186
2020-04-30T00:55:26.000Z
2022-03-30T09:54:51.000Z
# /usr/bin/env python3.5 # -*- mode: python -*- # ============================================================================= # @@-COPYRIGHT-START-@@ # # Copyright (c) 2019-2020, Qualcomm Innovation Center, Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modifica...
43.552319
118
0.626112
38,088
0.943403
0
0
37,807
0.936443
0
0
15,564
0.385505
490d54319f77117f33898d0f301f950c860478c3
4,878
py
Python
flaskex.py
DesuDeluxe/simple_rest_api
c9bed666269882adae97db974c29f9f8e406ce80
[ "MIT" ]
null
null
null
flaskex.py
DesuDeluxe/simple_rest_api
c9bed666269882adae97db974c29f9f8e406ce80
[ "MIT" ]
null
null
null
flaskex.py
DesuDeluxe/simple_rest_api
c9bed666269882adae97db974c29f9f8e406ce80
[ "MIT" ]
null
null
null
import os from flask import Flask, Response, render_template, redirect from flask_restful import reqparse,request, abort, Api, Resource, fields, marshal_with from flask_sqlalchemy import SQLAlchemy import sqlite3 app = Flask(__name__) p_dir = os.path.dirname(os.path.abspath(__file__)) db_file = "sqlite:///{}".forma...
32.304636
193
0.693727
2,790
0.571956
0
0
848
0.173842
0
0
797
0.163387
491193c73d24c3c74876c7aa66287f19f2f09a60
6,203
py
Python
backend/server/device_legacy/routes.py
kristof-g/TempHum-Supervisor-Sys
aa7343c5dab5941b905333fd0172b688f8b4896f
[ "MIT" ]
null
null
null
backend/server/device_legacy/routes.py
kristof-g/TempHum-Supervisor-Sys
aa7343c5dab5941b905333fd0172b688f8b4896f
[ "MIT" ]
null
null
null
backend/server/device_legacy/routes.py
kristof-g/TempHum-Supervisor-Sys
aa7343c5dab5941b905333fd0172b688f8b4896f
[ "MIT" ]
null
null
null
import sys import os import json import csv from time import strftime from datetime import timedelta, date, datetime from flask import Blueprint, render_template, redirect, request, url_for, flash import server.configuration as cfg from server.postalservice import checkTemp from server.helpers import LoginRequired, p...
44.307143
120
0.59036
0
0
0
0
5,727
0.919557
0
0
1,217
0.195408
4912467ee29fbe811c78fea1ef046cb9707fcd7e
2,507
py
Python
gdsfactory/components/resistance_sheet.py
simbilod/gdsfactory
4d76db32674c3edb4d16260e3177ee29ef9ce11d
[ "MIT" ]
null
null
null
gdsfactory/components/resistance_sheet.py
simbilod/gdsfactory
4d76db32674c3edb4d16260e3177ee29ef9ce11d
[ "MIT" ]
null
null
null
gdsfactory/components/resistance_sheet.py
simbilod/gdsfactory
4d76db32674c3edb4d16260e3177ee29ef9ce11d
[ "MIT" ]
null
null
null
from functools import partial from gdsfactory.cell import cell from gdsfactory.component import Component from gdsfactory.components.compass import compass from gdsfactory.components.via_stack import via_stack_slab_npp_m3 from gdsfactory.types import ComponentSpec, Floats, LayerSpecs, Optional pad_via_stack_slab_npp ...
28.816092
94
0.643797
0
0
0
0
1,757
0.700838
0
0
818
0.326286
4912d26a22acac060d471e8872438c7e944e8077
17,008
py
Python
cogdl/trainers/sampled_trainer.py
zhangdan0602/cogdl
35a338f29066e4b1a5d7f46217f09ebceaf13106
[ "MIT" ]
null
null
null
cogdl/trainers/sampled_trainer.py
zhangdan0602/cogdl
35a338f29066e4b1a5d7f46217f09ebceaf13106
[ "MIT" ]
null
null
null
cogdl/trainers/sampled_trainer.py
zhangdan0602/cogdl
35a338f29066e4b1a5d7f46217f09ebceaf13106
[ "MIT" ]
null
null
null
from abc import abstractmethod import argparse import copy import numpy as np import torch from tqdm import tqdm from cogdl.data import Dataset from cogdl.data.sampler import ( SAINTSampler, NeighborSampler, ClusteredLoader, ) from cogdl.models.supervised_model import SupervisedModel from cogdl.trainers.b...
36.893709
127
0.602305
16,474
0.968603
0
0
14,592
0.857949
0
0
1,618
0.095132
491377c3b97184cf6e4325a1301a6746ac433ea2
7,448
py
Python
sample-input/sph-factors/pin-cell/sph-factors.py
AI-Pranto/OpenMOC
7f6ce4797aec20ddd916981a56a4ba54ffda9a06
[ "MIT" ]
97
2015-01-02T02:13:45.000Z
2022-03-09T14:12:45.000Z
sample-input/sph-factors/pin-cell/sph-factors.py
AI-Pranto/OpenMOC
7f6ce4797aec20ddd916981a56a4ba54ffda9a06
[ "MIT" ]
325
2015-01-07T17:43:14.000Z
2022-02-21T17:22:00.000Z
sample-input/sph-factors/pin-cell/sph-factors.py
AI-Pranto/OpenMOC
7f6ce4797aec20ddd916981a56a4ba54ffda9a06
[ "MIT" ]
73
2015-01-17T19:11:58.000Z
2022-03-24T16:31:37.000Z
import openmoc import openmc.openmoc_compatible import openmc.mgxs import numpy as np import matplotlib # Enable Matplotib to work for headless nodes matplotlib.use('Agg') import matplotlib.pyplot as plt plt.ioff() opts = openmoc.options.Options() openmoc.log.set_log_level('NORMAL') ##############################...
36.509804
79
0.649436
0
0
0
0
0
0
0
0
2,893
0.388426
4913c3ea285b469820f3898e3feff4274634fe9e
494
py
Python
VerifyServer.py
ACueva/Avi-Playground
cb1768999630ed884cff5d40c0faa86d24802754
[ "Apache-2.0" ]
null
null
null
VerifyServer.py
ACueva/Avi-Playground
cb1768999630ed884cff5d40c0faa86d24802754
[ "Apache-2.0" ]
null
null
null
VerifyServer.py
ACueva/Avi-Playground
cb1768999630ed884cff5d40c0faa86d24802754
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import os import urllib2, json from urlparse import urlparse def ParseURL(agsURL): ags = [] print agsURL ags = urlparse(agsURL) return ags def GetFolders(agsURL): f = urllib2.urlopen(agsURL) j = json.loads(f.read()) for item in j["folders"]: print item ...
21.478261
31
0.61336
0
0
0
0
0
0
0
0
59
0.119433
4915e964647e8f80103fac2c1f5e742bca3ba265
809
py
Python
data_io/export_camera_poses.py
tumcms/aerial2pdsm
1dc4f9c49d3f682dac4a665d081d547baaa0c877
[ "BSD-3-Clause" ]
null
null
null
data_io/export_camera_poses.py
tumcms/aerial2pdsm
1dc4f9c49d3f682dac4a665d081d547baaa0c877
[ "BSD-3-Clause" ]
null
null
null
data_io/export_camera_poses.py
tumcms/aerial2pdsm
1dc4f9c49d3f682dac4a665d081d547baaa0c877
[ "BSD-3-Clause" ]
1
2021-11-30T13:02:26.000Z
2021-11-30T13:02:26.000Z
import plyfile from config import SparseModel, project_path from colmap_scripts.read_model import Image import numpy as np project = SparseModel("/home/felix/pointclouds/_working/2019_11_07_Muenchen_26_10_2018", model_path="/home/felix/pointclouds/_working/2019_11_07_Muenchen_26_10_2018/sparse/1...
32.36
108
0.697157
0
0
0
0
0
0
0
0
186
0.229913
491612be631c7616e895777f18a1f1f4ec09ba72
15,815
py
Python
src/goesrecv/support/generate_interpolator_taps.py
codient/goestools
862600960681a1a1f3942f18f40b1f17dcdffc40
[ "BSD-2-Clause" ]
244
2017-11-07T12:12:23.000Z
2022-03-24T07:24:53.000Z
src/goesrecv/support/generate_interpolator_taps.py
codient/goestools
862600960681a1a1f3942f18f40b1f17dcdffc40
[ "BSD-2-Clause" ]
116
2018-03-07T04:02:26.000Z
2022-03-27T12:08:01.000Z
src/goesrecv/support/generate_interpolator_taps.py
codient/goestools
862600960681a1a1f3942f18f40b1f17dcdffc40
[ "BSD-2-Clause" ]
65
2018-05-28T02:44:21.000Z
2022-03-18T12:27:58.000Z
#!/usr/bin/env python # # Create filter taps to use for interpolation filter in # clock recovery algorithm. These taps are copied from # GNU Radio at gnuradio/filter/interpolator_taps.h. # # This file includes them in natural order and I want # them stored in reversed order such that they can be # used directly. # fil...
104.735099
117
0.613152
0
0
0
0
0
0
0
0
446
0.028201
49172233318b11d598754579aedad36e5f01b8f1
1,688
py
Python
openpype/hosts/blender/plugins/publish/extract_blend_animation.py
jonclothcat/OpenPype
d1208cbebc0a7f378de0062ccd653295c6399195
[ "MIT" ]
1
2022-02-08T15:40:41.000Z
2022-02-08T15:40:41.000Z
openpype/hosts/blender/plugins/publish/extract_blend_animation.py
zafrs/OpenPype
4b8e7e1ed002fc55b31307efdea70b0feaed474f
[ "MIT" ]
2
2022-03-18T01:46:03.000Z
2022-03-18T01:46:16.000Z
openpype/hosts/blender/plugins/publish/extract_blend_animation.py
zafrs/OpenPype
4b8e7e1ed002fc55b31307efdea70b0feaed474f
[ "MIT" ]
null
null
null
import os import bpy import openpype.api class ExtractBlendAnimation(openpype.api.Extractor): """Extract a blend file.""" label = "Extract Blend" hosts = ["blender"] families = ["animation"] optional = True def process(self, instance): # Define extract output file path sta...
30.690909
79
0.566943
1,642
0.972749
0
0
0
0
0
0
308
0.182464
4917259ce7d453d0c463913b457ccefb5c69c0f6
2,772
py
Python
src/TamaTou.py
hirmiura/starsector-mod-Font_Replacement_for_Orbitron
ad7b5e3f4d8afd1a2aa97a420a2ec9a3aaf9b3d7
[ "MIT" ]
1
2022-01-17T02:58:46.000Z
2022-01-17T02:58:46.000Z
src/TamaTou.py
hirmiura/starsector-mod-Font_Replacement_for_Orbitron
ad7b5e3f4d8afd1a2aa97a420a2ec9a3aaf9b3d7
[ "MIT" ]
null
null
null
src/TamaTou.py
hirmiura/starsector-mod-Font_Replacement_for_Orbitron
ad7b5e3f4d8afd1a2aa97a420a2ec9a3aaf9b3d7
[ "MIT" ]
null
null
null
# SPDX-License-Identifier: MIT # Copyright 2022 hirmiura (https://github.com/hirmiura) # # TamaTouを生成するスクリプト # # 使い方 # 1. fontforgeでコンソールを出す(fontforge-console.bat) # 2. ディレクトリ移動 # 3. ffpython TamaTou.py # 4. 待つ # # Orbitron → オービトロン → オーブ → 玉 → Tamaやな! # Noto → No Toufu → 豆腐だらけだし → Touやな! # →→ TamaTou # import font...
30.461538
114
0.636724
0
0
0
0
0
0
0
0
964
0.330363
4918381c344c6f579cf53ea1bf560dc12227d2bf
2,623
py
Python
bambu/bambu.py
westurner/pandasrdf
c194b1eb9928488bc19b82d3cab409158cd413a3
[ "BSD-3-Clause" ]
2
2016-07-01T10:48:04.000Z
2017-01-24T16:53:44.000Z
bambu/bambu.py
westurner/pandasrdf
c194b1eb9928488bc19b82d3cab409158cd413a3
[ "BSD-3-Clause" ]
1
2016-06-20T10:54:53.000Z
2017-02-07T05:47:38.000Z
bambu/bambu.py
westurner/pandasrdf
c194b1eb9928488bc19b82d3cab409158cd413a3
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function """ bambu ------ pandas RDF functionality Installation -------------- :: # pip install pandas pip install rdflib """ import sys import pandas as pd import rdflib def bambu(): """ mainfunc """ pass def to...
18.602837
63
0.552421
253
0.096454
0
0
0
0
0
0
1,277
0.486847
491871e30f2b60781d5b69aef6ac73571b60d676
19,637
py
Python
homework1/problem3/local/mort_icu.py
criticaldata/hst953-2021
b18c8235a6c878a4a7d3d330a9b69421f0217273
[ "MIT" ]
1
2022-03-15T15:52:45.000Z
2022-03-15T15:52:45.000Z
homework1/problem3/local/mort_icu.py
MDenu/HST-homework
fff0f277ee18735acbe84dfe8c428e92991b28fa
[ "MIT" ]
null
null
null
homework1/problem3/local/mort_icu.py
MDenu/HST-homework
fff0f277ee18735acbe84dfe8c428e92991b28fa
[ "MIT" ]
3
2021-09-10T19:14:54.000Z
2021-09-26T22:23:05.000Z
# Generates the following data files from MIMIC: # adult_icu.gz: data from adult ICUs # n_icu.gz: data from neonatal ICUs # adult_notes.gz: clinical notes from adult ICUs # Import libraries import numpy as np import pandas as pd import psycopg2 from scipy.stats import ks_2samp import os import random # Ouput direct...
41.254202
202
0.685135
0
0
0
0
0
0
0
0
17,507
0.891531
4918d6d679945db227bfcba68023e986105933df
14,098
py
Python
release/alert.py
77loopin/ray
9322f6aab53f4ca5baf5a3573e1ffde12feae519
[ "Apache-2.0" ]
21,382
2016-09-26T23:12:52.000Z
2022-03-31T21:47:45.000Z
release/alert.py
77loopin/ray
9322f6aab53f4ca5baf5a3573e1ffde12feae519
[ "Apache-2.0" ]
19,689
2016-09-17T08:21:25.000Z
2022-03-31T23:59:30.000Z
release/alert.py
gramhagen/ray
c18caa4db36d466718bdbcb2229aa0b2dc03da1f
[ "Apache-2.0" ]
4,114
2016-09-23T18:54:01.000Z
2022-03-31T15:07:32.000Z
import argparse from collections import defaultdict, Counter from typing import Any, List, Tuple, Mapping, Optional import datetime import hashlib import json import logging import os import requests import sys import boto3 from e2e import GLOBAL_CONFIG from alerts.default import handle_result as default_handle_resu...
34.724138
79
0.589658
0
0
3,227
0.228898
0
0
0
0
3,798
0.2694
4918f13347223ad7457de28e1dde690394ca0299
2,176
py
Python
bios-token.py
emahear/openusm
96bb62b91f4b5520e14d86ae86e1b320404134e6
[ "MIT" ]
4
2019-08-04T05:50:46.000Z
2020-04-16T19:24:11.000Z
bios-token.py
emahear/openusm
96bb62b91f4b5520e14d86ae86e1b320404134e6
[ "MIT" ]
null
null
null
bios-token.py
emahear/openusm
96bb62b91f4b5520e14d86ae86e1b320404134e6
[ "MIT" ]
6
2019-08-03T12:57:47.000Z
2020-06-08T01:50:43.000Z
import os import argparse def _create_parser(): parser = argparse.ArgumentParser(description='Welcome to Universal Systems Manager' 'Bios Token Change') parser.add_argument('--verbose', help='Turn on verbose logging', ...
32.477612
306
0.552849
0
0
0
0
0
0
0
0
857
0.393842
491929694fdf621f13fc8f553f27ac207d5a59c5
333
py
Python
Examples/user_data/sharptrack.py
FedeClaudi/brainrender
b1d8adcef52615fcd86a083be4dc48c68a8b0bb9
[ "MIT" ]
null
null
null
Examples/user_data/sharptrack.py
FedeClaudi/brainrender
b1d8adcef52615fcd86a083be4dc48c68a8b0bb9
[ "MIT" ]
null
null
null
Examples/user_data/sharptrack.py
FedeClaudi/brainrender
b1d8adcef52615fcd86a083be4dc48c68a8b0bb9
[ "MIT" ]
null
null
null
import brainrender brainrender.SHADER_STYLE = 'cartoon' from brainrender.scene import Scene sharptrack_file = 'Examples/example_files/sharptrack_probe_points.mat' scene = Scene(use_default_key_bindings=True) scene.add_brain_regions('TH', alpha=.2, wireframe=True) scene.add_probe_from_sharptrack(sharptrack_file) s...
23.785714
70
0.831832
0
0
0
0
0
0
0
0
65
0.195195
4919e36bd5888cd73891195c85651a0ab2da447b
7,910
py
Python
homeassistant/components/metoffice/sensor.py
basicpail/core
5cc54618c5af3f75c08314bf2375cc7ac40d2b7e
[ "Apache-2.0" ]
7
2019-08-15T13:36:58.000Z
2020-03-18T10:46:29.000Z
homeassistant/components/metoffice/sensor.py
basicpail/core
5cc54618c5af3f75c08314bf2375cc7ac40d2b7e
[ "Apache-2.0" ]
87
2020-07-06T22:22:54.000Z
2022-03-31T06:01:46.000Z
homeassistant/components/metoffice/sensor.py
winning1120xx/home-assistant
53d4c0ce2d374b5e97bbdc37742656c27adf8eea
[ "Apache-2.0" ]
11
2020-12-16T13:48:14.000Z
2022-02-01T00:28:05.000Z
"""Support for UK Met Office weather service.""" from __future__ import annotations from homeassistant.components.sensor import SensorEntity, SensorEntityDescription from homeassistant.const import ( ATTR_ATTRIBUTION, DEVICE_CLASS_HUMIDITY, DEVICE_CLASS_TEMPERATURE, LENGTH_KILOMETERS, PERCENTAGE, ...
30.898438
93
0.643236
3,102
0.392162
0
0
2,276
0.287737
756
0.095575
1,282
0.162073
491bbb7a18db6baa7c684edc4d966b84daa2ba53
3,513
py
Python
examples/advanced.py
ajrichardson/formlayout
4b267ad29cbbdab9baf1bef3fcc48f23c699eebc
[ "MIT" ]
null
null
null
examples/advanced.py
ajrichardson/formlayout
4b267ad29cbbdab9baf1bef3fcc48f23c699eebc
[ "MIT" ]
null
null
null
examples/advanced.py
ajrichardson/formlayout
4b267ad29cbbdab9baf1bef3fcc48f23c699eebc
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright © 2009 Pierre Raybaut # Licensed under the terms of the MIT License # (see formlayout.py for details) """ Simple formlayout example Please take a look at formlayout.py for more examples (at the end of the script, after the 'if __name__ == "__main__":' line) """ import datetime #...
36.216495
79
0.542841
0
0
0
0
0
0
0
0
1,315
0.374217
491c2d65ca77e28affc08be455a8dcb0f85ffc8e
1,527
py
Python
PyBank/main.py
jackaloppy/python-challenge
71690ca4059fee9c31334347275866431f5d9155
[ "RSA-MD" ]
null
null
null
PyBank/main.py
jackaloppy/python-challenge
71690ca4059fee9c31334347275866431f5d9155
[ "RSA-MD" ]
null
null
null
PyBank/main.py
jackaloppy/python-challenge
71690ca4059fee9c31334347275866431f5d9155
[ "RSA-MD" ]
null
null
null
# Import Modules import os import csv # Set the path filepath = os.path.join("Resources","budget_data.csv") # Open the CSV file with open(filepath) as csvfile: csvreader = csv.reader(csvfile, delimiter=",") # Skip the header row next(csvreader) # Set up some numbers month = 0 total = 0 max...
33.933333
92
0.579568
0
0
0
0
0
0
0
0
633
0.414538
491cf38094ed0cb56e1412d6daa74c8867a4538f
4,103
py
Python
odoo-13.0/addons/web/models/ir_http.py
VaibhavBhujade/Blockchain-ERP-interoperability
b5190a037fb6615386f7cbad024d51b0abd4ba03
[ "MIT" ]
12
2021-03-26T08:39:40.000Z
2022-03-16T02:20:10.000Z
odoo-13.0/addons/web/models/ir_http.py
VaibhavBhujade/Blockchain-ERP-interoperability
b5190a037fb6615386f7cbad024d51b0abd4ba03
[ "MIT" ]
13
2020-12-20T16:00:21.000Z
2022-03-14T14:55:30.000Z
odoo-13.0/addons/web/models/ir_http.py
VaibhavBhujade/Blockchain-ERP-interoperability
b5190a037fb6615386f7cbad024d51b0abd4ba03
[ "MIT" ]
17
2020-08-31T11:18:49.000Z
2022-02-09T05:57:31.000Z
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import hashlib import json from odoo import api, models from odoo.http import request from odoo.tools import ustr from odoo.addons.web.controllers.main import module_boot, HomeStaticTemplateHelpers import odoo class ...
48.845238
172
0.6427
3,788
0.923227
0
0
447
0.108945
0
0
1,150
0.280283
491db1b8d8dc21a65a486fcf67ecab8e646adeff
1,500
py
Python
anonymize-attributes.py
thormeier-fhnw-repos/sna-holaspirit-to-gephi
e83d44e887608d4d584ded825be9cd950d87e590
[ "MIT" ]
2
2018-11-12T22:10:54.000Z
2021-08-30T10:13:53.000Z
anonymize-attributes.py
thormeier-fhnw-repos/sna-holaspirit-to-gephi
e83d44e887608d4d584ded825be9cd950d87e590
[ "MIT" ]
null
null
null
anonymize-attributes.py
thormeier-fhnw-repos/sna-holaspirit-to-gephi
e83d44e887608d4d584ded825be9cd950d87e590
[ "MIT" ]
null
null
null
#!/usr/bin/python import sys import argparse sys.path.append('./') from src.utils.list_to_dict import list_to_dict from src.utils.read_csv import read_csv from src.utils.map_to_list_csv import map_to_list_csv from src.gephi.write_csv import write_csv print("") print("-----------------------------") print("Anonymiz...
28.846154
140
0.744
0
0
0
0
0
0
0
0
463
0.308667
491f6d6d11d857e14ccaa0306230176130993c29
5,487
py
Python
custom_laboratory/custom_laboratory/doctype/vaccination/vaccination.py
panhavad/custom_laboratory
a86d24bd955dc078ded044e714955cdf0c257176
[ "MIT" ]
null
null
null
custom_laboratory/custom_laboratory/doctype/vaccination/vaccination.py
panhavad/custom_laboratory
a86d24bd955dc078ded044e714955cdf0c257176
[ "MIT" ]
1
2021-01-12T08:27:54.000Z
2021-01-12T08:27:54.000Z
custom_laboratory/custom_laboratory/doctype/vaccination/vaccination.py
panhavad/custom_laboratory
a86d24bd955dc078ded044e714955cdf0c257176
[ "MIT" ]
1
2021-01-12T08:34:12.000Z
2021-01-12T08:34:12.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2020, Duk Panhavad and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe import _ from frappe.model.document import Document from frappe.utils import getdate, cstr from datetime import timedelta cla...
38.104167
121
0.755786
398
0.072535
0
0
344
0.062694
0
0
868
0.158192
491fd8107e4c9d56c5674e827165e680a0067c06
4,445
py
Python
FinalRound_ImprovedAccuracy_Functionality/training/utils/detectingCARColor.py
tejasmagia/DetectCarParkingSlot_Contest
e9e38f12347aa3cc40234efb000959df20d28f21
[ "MIT" ]
9
2019-10-20T15:15:06.000Z
2020-09-07T09:44:37.000Z
FinalRound_ImprovedAccuracy_Functionality/training/utils/detectingCARColor.py
tejasmagia/DetectCarParkingSlot_Contest
e9e38f12347aa3cc40234efb000959df20d28f21
[ "MIT" ]
null
null
null
FinalRound_ImprovedAccuracy_Functionality/training/utils/detectingCARColor.py
tejasmagia/DetectCarParkingSlot_Contest
e9e38f12347aa3cc40234efb000959df20d28f21
[ "MIT" ]
null
null
null
from sklearn.cluster import KMeans import cv2 import PIL import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D import numpy as np from matplotlib import image as img1 import pandas as pd from scipy.cluster.vq import whiten import os class DominantColors: CLUSTERS = None IMAGEPATH = None I...
28.49359
99
0.566479
3,889
0.874916
0
0
0
0
0
0
781
0.175703
49206ede4930182521d4ce9c6b49dda8aef894c6
97
py
Python
cash/settings/product.py
anshengme/cash
7b24338ea2f3f92fe82f668335bb2eb6e6479f9e
[ "MIT" ]
18
2019-01-04T01:58:03.000Z
2021-06-25T09:03:58.000Z
cash/settings/product.py
anshengme/cash
7b24338ea2f3f92fe82f668335bb2eb6e6479f9e
[ "MIT" ]
3
2019-02-26T16:24:40.000Z
2020-04-04T10:41:38.000Z
cash/settings/product.py
anshengme/cash
7b24338ea2f3f92fe82f668335bb2eb6e6479f9e
[ "MIT" ]
5
2019-02-26T15:32:52.000Z
2019-04-22T09:35:27.000Z
from .base import * DEBUG = False SECRET_KEY = os.environ.get('DJANGO_SECRET_KEY', SECRET_KEY)
16.166667
60
0.752577
0
0
0
0
0
0
0
0
19
0.195876
492186225f16d44bf92c164978829eca7c8d9540
2,807
py
Python
seqpos/lib/python2.7/site-packages/mercurial/lsprofcalltree.py
guanjue/seqpos
ab9308ad128547ca968a1d944490710e583703bc
[ "MIT" ]
null
null
null
seqpos/lib/python2.7/site-packages/mercurial/lsprofcalltree.py
guanjue/seqpos
ab9308ad128547ca968a1d944490710e583703bc
[ "MIT" ]
null
null
null
seqpos/lib/python2.7/site-packages/mercurial/lsprofcalltree.py
guanjue/seqpos
ab9308ad128547ca968a1d944490710e583703bc
[ "MIT" ]
null
null
null
""" lsprofcalltree.py - lsprof output which is readable by kcachegrind Authors: * David Allouche <david <at> allouche.net> * Jp Calderone & Itamar Shtull-Trauring * Johan Dahlin This software may be used and distributed according to the terms of the GNU General Public License, incorporated herein by refer...
29.861702
77
0.586035
2,069
0.737086
0
0
0
0
0
0
589
0.209833
4921f463d2a5ff012c886046b237e9741fc7a1a8
2,328
py
Python
nats/aio/errors.py
sr34/asyncio-nats
347a8e4b3eab275085858a6c8016feb3457905a3
[ "Apache-2.0" ]
null
null
null
nats/aio/errors.py
sr34/asyncio-nats
347a8e4b3eab275085858a6c8016feb3457905a3
[ "Apache-2.0" ]
null
null
null
nats/aio/errors.py
sr34/asyncio-nats
347a8e4b3eab275085858a6c8016feb3457905a3
[ "Apache-2.0" ]
null
null
null
# Copyright 2016-2018 The NATS 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 writi...
24.25
74
0.717354
1,590
0.68299
0
0
0
0
0
0
1,041
0.447165
492207457366b7b786ff7beb4e298c9226ecc040
1,912
py
Python
sqlite/app/elephant_queries.py
CurdtMillion/DS-Unit-3-Sprint-2-SQL-and-Databases
ba300b2da1e5fff153d8db76fdf1f67e82cefb9b
[ "MIT" ]
null
null
null
sqlite/app/elephant_queries.py
CurdtMillion/DS-Unit-3-Sprint-2-SQL-and-Databases
ba300b2da1e5fff153d8db76fdf1f67e82cefb9b
[ "MIT" ]
null
null
null
sqlite/app/elephant_queries.py
CurdtMillion/DS-Unit-3-Sprint-2-SQL-and-Databases
ba300b2da1e5fff153d8db76fdf1f67e82cefb9b
[ "MIT" ]
null
null
null
import os import psycopg2 import sqlite3 from psycopg2.extras import DictCursor from dotenv import load_dotenv DB_FILEPATH = os.path.join(os.path.dirname(__file__), "..", "data", "rpg.db") connection = sqlite3.connect(DB_FILEPATH) load_dotenv() DB_NAME = os.getenv("DB_NAME", default="OOPS") DB_USER = os.getenv("DB_U...
25.157895
99
0.710251
0
0
0
0
0
0
0
0
911
0.476464
49227b0882dd3d460d38e78e915ad62615d5837a
12,852
py
Python
models/EmbracementLayer.py
gcunhase/EmbraceBERT
01f04f8e2362c5425359c5758f22794937708095
[ "MIT" ]
7
2020-10-30T06:36:23.000Z
2022-01-07T11:08:49.000Z
models/EmbracementLayer.py
gcunhase/EmbraceBERT
01f04f8e2362c5425359c5758f22794937708095
[ "MIT" ]
null
null
null
models/EmbracementLayer.py
gcunhase/EmbraceBERT
01f04f8e2362c5425359c5758f22794937708095
[ "MIT" ]
null
null
null
import torch from torch import nn import numpy as np from models.AttentionLayer import AttentionLayer from models.SelfAttentionLayer import SelfAttention, SelfAttentionPytorch,\ BertSelfAttentionScores, BertSelfAttentionScoresP, BertMultiSelfAttentionScoresP,\ BertMultiAttentionScoresP, BertAttentionClsQuery fr...
69.847826
151
0.662621
12,384
0.963585
0
0
0
0
0
0
2,851
0.221833
4922ee0740ccdfdc837d0e1e02e2f0bf4fe6c81f
8,227
py
Python
tests/test_csv2bufr.py
tomkralidis/CSV2BUFR
ba7ce4ed2bb41e42fcb9d03f10049ffc6a2073f8
[ "Apache-2.0" ]
null
null
null
tests/test_csv2bufr.py
tomkralidis/CSV2BUFR
ba7ce4ed2bb41e42fcb9d03f10049ffc6a2073f8
[ "Apache-2.0" ]
8
2021-11-04T12:44:46.000Z
2021-11-23T02:23:05.000Z
tests/test_csv2bufr.py
tomkralidis/CSV2BUFR
ba7ce4ed2bb41e42fcb9d03f10049ffc6a2073f8
[ "Apache-2.0" ]
2
2021-11-10T14:43:08.000Z
2021-11-23T01:54:46.000Z
############################################################################### # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this fi...
34.422594
138
0.579312
0
0
0
0
3,847
0.467607
0
0
4,021
0.488757
49233a1586edace305f6bd1e93ae01acb6ace60f
4,381
py
Python
map_methods_to_mach_ports/parseXcodeLogs.py
malus-security/kobold
2ae23b75ec503ef3702ad297ddbb7824ac4da53c
[ "BSD-3-Clause" ]
3
2020-06-26T19:44:46.000Z
2021-03-25T07:00:04.000Z
map_methods_to_mach_ports/parseXcodeLogs.py
malus-security/kobold
2ae23b75ec503ef3702ad297ddbb7824ac4da53c
[ "BSD-3-Clause" ]
null
null
null
map_methods_to_mach_ports/parseXcodeLogs.py
malus-security/kobold
2ae23b75ec503ef3702ad297ddbb7824ac4da53c
[ "BSD-3-Clause" ]
1
2020-09-14T23:46:31.000Z
2020-09-14T23:46:31.000Z
#Input #Xcode logs output by autogenerated method invocations #Requirements #Infer which invocation numbers failed/succeeded #Infer apparent entitlement requirements based on error message from completion handlers #Detect which invocation numbers should have had completion handlers #Map new information to mach-port a...
40.564815
132
0.716047
0
0
0
0
0
0
0
0
2,547
0.581374
49245578c9299525db939b3fe79e00703d3dcb25
10,298
py
Python
inferelator_ng/tests/test_design_response.py
asistradition/inferelator_ng
56ef2ce3b1ace35b9b2b2821a0e78746563c309a
[ "BSD-2-Clause" ]
1
2019-01-10T17:04:43.000Z
2019-01-10T17:04:43.000Z
inferelator_ng/tests/test_design_response.py
asistradition/inferelator_ng
56ef2ce3b1ace35b9b2b2821a0e78746563c309a
[ "BSD-2-Clause" ]
1
2019-01-21T21:05:19.000Z
2019-01-21T21:05:19.000Z
inferelator_ng/tests/test_design_response.py
asistradition/inferelator_ng
56ef2ce3b1ace35b9b2b2821a0e78746563c309a
[ "BSD-2-Clause" ]
null
null
null
import unittest, os import pandas as pd import numpy as np import pdb from .. import design_response_translation from .. import utils my_dir = os.path.dirname(__file__) class TestDR(unittest.TestCase): """ Superclass for common methods """ def calculate_design_and_response(self): #drd = design...
46.809091
150
0.604098
9,950
0.966207
0
0
3,628
0.352301
0
0
1,917
0.186153
4924946192a3e01f6cc5df5f86d6a37b39e0f8e7
94
py
Python
flights/urls.py
olubiyiontheweb/travelworld
ca9d2206108bd59fd222e384bcaab7efd6832e24
[ "MIT" ]
null
null
null
flights/urls.py
olubiyiontheweb/travelworld
ca9d2206108bd59fd222e384bcaab7efd6832e24
[ "MIT" ]
null
null
null
flights/urls.py
olubiyiontheweb/travelworld
ca9d2206108bd59fd222e384bcaab7efd6832e24
[ "MIT" ]
null
null
null
from django.urls import path from flights import views urlpatterns = [path("", views.index)]
18.8
37
0.755319
0
0
0
0
0
0
0
0
2
0.021277
4924d0f3858273f23eb72e262ac3af691158f5e6
835
py
Python
invenio_app_ils/ill/loaders/jsonschemas/borrowing_request.py
equadon/invenio-app-ils
42ba282968d0aa28fb1bfc71d0709685165aaec4
[ "MIT" ]
null
null
null
invenio_app_ils/ill/loaders/jsonschemas/borrowing_request.py
equadon/invenio-app-ils
42ba282968d0aa28fb1bfc71d0709685165aaec4
[ "MIT" ]
null
null
null
invenio_app_ils/ill/loaders/jsonschemas/borrowing_request.py
equadon/invenio-app-ils
42ba282968d0aa28fb1bfc71d0709685165aaec4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2019-2020 CERN. # # invenio-app-ils is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """BorrowingRequest schema for marshmallow loader.""" from invenio_records_rest.schemas import RecordMetadat...
29.821429
76
0.718563
458
0.548503
0
0
0
0
0
0
370
0.443114
4925282781ec37ab8cc1089001ebc7822dc2c473
366
py
Python
systemtest/users/apps.py
IBM-Power-SystemTest/systemtest
a29e6d54500ca13f554073cc66a4a2d403ea5b14
[ "BSD-3-Clause" ]
1
2022-03-09T18:07:11.000Z
2022-03-09T18:07:11.000Z
systemtest/users/apps.py
IBM-Power-SystemTest/systemtest
a29e6d54500ca13f554073cc66a4a2d403ea5b14
[ "BSD-3-Clause" ]
null
null
null
systemtest/users/apps.py
IBM-Power-SystemTest/systemtest
a29e6d54500ca13f554073cc66a4a2d403ea5b14
[ "BSD-3-Clause" ]
null
null
null
""" Users app config References: https://docs.djangoproject.com/en/3.1/ref/applications/ """ from django.apps import AppConfig class UsersConfig(AppConfig): name = "systemtest.users" verbose_name = "Users" def ready(self): try: import systemtest.users.signals # noqa F401...
19.263158
63
0.628415
223
0.60929
0
0
0
0
0
0
140
0.382514
49252e8b63616c3d05ff08bd21ef0e85c4a7e7b9
1,675
py
Python
setup.py
grigi/configy
86f6bdd3164f39e83e82e3527f5863032c0ed1e7
[ "MIT" ]
3
2015-09-18T13:06:04.000Z
2021-08-10T16:37:21.000Z
setup.py
grigi/configy
86f6bdd3164f39e83e82e3527f5863032c0ed1e7
[ "MIT" ]
null
null
null
setup.py
grigi/configy
86f6bdd3164f39e83e82e3527f5863032c0ed1e7
[ "MIT" ]
null
null
null
import sys from setuptools import setup, find_packages def get_version(fname): import re verstrline = open(fname, "rt").read() mo = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", verstrline, re.M) if mo: return mo.group(1) else: raise RuntimeError("Unable to find version string in...
28.389831
77
0.62209
0
0
0
0
0
0
0
0
770
0.459701
4925bdb182506624c0e0646cabaacc310b61faa3
2,755
py
Python
opentelemetry-sdk/tests/trace/export/test_in_memory_span_exporter.py
vmihailenco/opentelemetry-python
0a9eba3bb62f4ddf686b55b68286979a5ec84de5
[ "Apache-2.0" ]
2
2020-08-13T21:10:48.000Z
2020-09-30T00:55:05.000Z
opentelemetry-sdk/tests/trace/export/test_in_memory_span_exporter.py
vmihailenco/opentelemetry-python
0a9eba3bb62f4ddf686b55b68286979a5ec84de5
[ "Apache-2.0" ]
1
2021-02-24T01:32:32.000Z
2021-02-24T01:32:32.000Z
opentelemetry-sdk/tests/trace/export/test_in_memory_span_exporter.py
vmihailenco/opentelemetry-python
0a9eba3bb62f4ddf686b55b68286979a5ec84de5
[ "Apache-2.0" ]
2
2020-06-01T12:38:23.000Z
2021-01-07T10:55:47.000Z
# Copyright The OpenTelemetry 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.25
79
0.717604
1,903
0.690744
0
0
0
0
0
0
684
0.248276
49289bb9e651ac9eb5d083a6d7aaea07feb28a79
2,417
py
Python
lib/acli/commands/ec2.py
jonhadfield/acli
d14abf3ad67bb8cb5ecac93c380544a16eddc7fb
[ "MIT" ]
9
2015-10-06T01:33:39.000Z
2017-08-23T22:32:50.000Z
lib/acli/commands/ec2.py
jonhadfield/acli
d14abf3ad67bb8cb5ecac93c380544a16eddc7fb
[ "MIT" ]
6
2016-05-06T07:30:01.000Z
2020-06-22T08:11:40.000Z
lib/acli/commands/ec2.py
jonhadfield/acli
d14abf3ad67bb8cb5ecac93c380544a16eddc7fb
[ "MIT" ]
1
2020-06-01T10:44:23.000Z
2020-06-01T10:44:23.000Z
# -*- coding: utf-8 -*- """Usage: acli ec2 (ls | list | summary) [options] [--region=<region>] acli ec2 (start | stop | reboot | terminate | info | cpu | vols | net) <instance_id> [options] -f, --filter=<term> filter results by term -s, --start=<start_date> metrics start-date -e,...
45.603774
98
0.595366
0
0
0
0
0
0
0
0
787
0.32561
4929eddd19df20bbf2ed2c78fc54f5d2edf96f51
7,630
py
Python
pharedox/gui/gui.py
omarvaneer/pharynx_redox
ffcd5733fd0823244f50590951e9af0bc9ae2518
[ "MIT" ]
2
2018-06-08T12:45:03.000Z
2018-07-13T04:17:01.000Z
pharedox/gui/gui.py
omarvaneer/pharynx_redox
ffcd5733fd0823244f50590951e9af0bc9ae2518
[ "MIT" ]
17
2020-03-18T11:43:39.000Z
2020-07-21T18:04:25.000Z
pharedox/gui/gui.py
half-adder/pharynx_redox
a5b99f6afb4a36a021d0439bb15d2c826de605b1
[ "MIT" ]
3
2021-07-21T16:14:28.000Z
2021-07-27T15:38:39.000Z
""" A Basic GUI based on napari """ import logging import multiprocessing as mp import sys from multiprocessing import Process from pathlib import Path from typing import Optional import matplotlib import napari import numpy as np import xarray as xr from napari.qt.threading import thread_worker from PyQt5.QtCore impo...
31.399177
96
0.636697
6,217
0.81481
0
0
839
0.109961
0
0
740
0.096986
4929f7cf615e61de5c4f61ef44c5340e9ac4492a
3,290
py
Python
python/paddle/v2/fluid/tests/book/test_understand_sentiment_conv.py
QingshuChen/Paddle
25a92be3e123ed21fd98c7be6bd7e3a6320756a3
[ "Apache-2.0" ]
null
null
null
python/paddle/v2/fluid/tests/book/test_understand_sentiment_conv.py
QingshuChen/Paddle
25a92be3e123ed21fd98c7be6bd7e3a6320756a3
[ "Apache-2.0" ]
9
2017-09-13T07:39:31.000Z
2017-10-18T05:58:23.000Z
python/paddle/v2/fluid/tests/book/test_understand_sentiment_conv.py
QingshuChen/Paddle
25a92be3e123ed21fd98c7be6bd7e3a6320756a3
[ "Apache-2.0" ]
null
null
null
import numpy as np import paddle.v2 as paddle import paddle.v2.fluid.core as core import paddle.v2.fluid.evaluator as evaluator import paddle.v2.fluid.framework as framework import paddle.v2.fluid.layers as layers import paddle.v2.fluid.nets as nets from paddle.v2.fluid.executor import Executor from paddle.v2.fluid.opt...
32.254902
73
0.620669
0
0
0
0
0
0
0
0
125
0.037994
492b44bce7d8334fd49f7ee0f9eda198e717c6cb
6,847
py
Python
sem.py
sree314/simple-abstract-interpreter
6445db9ea2c8418ece4ec1436e552fb427d7ae2f
[ "CC0-1.0" ]
3
2020-05-04T20:09:30.000Z
2022-01-29T20:34:03.000Z
sem.py
sree314/simple-abstract-interpreter
6445db9ea2c8418ece4ec1436e552fb427d7ae2f
[ "CC0-1.0" ]
null
null
null
sem.py
sree314/simple-abstract-interpreter
6445db9ea2c8418ece4ec1436e552fb427d7ae2f
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python3 # # sem.py # # An implementation of the concrete semantics, including an # interpreter # # Author: Sreepathi Pai # # Written for CSC2/455 Spring 2020 # # To the extent possible under law, Sreepathi Pai has waived all # copyright and related or neighboring rights to sem.py. This work # is publishe...
30.162996
97
0.590916
0
0
0
0
0
0
0
0
1,665
0.243172
492e98f0563190adbf1aba90431f35623fa73162
4,925
py
Python
python_script/neutron.py
namptit307/openstack_upgrade_test
a6a4ce57a931ce6959f85b7bafa95e10a0d0ed52
[ "MIT" ]
1
2018-06-26T03:37:17.000Z
2018-06-26T03:37:17.000Z
python_script/neutron.py
namptit307/openstack_upgrade_test
a6a4ce57a931ce6959f85b7bafa95e10a0d0ed52
[ "MIT" ]
null
null
null
python_script/neutron.py
namptit307/openstack_upgrade_test
a6a4ce57a931ce6959f85b7bafa95e10a0d0ed52
[ "MIT" ]
null
null
null
import json from requests import ConnectionError from config import * from utils import * from get_auth import TOKEN # Create network create_network_url = "http://{}:9696/v2.0/networks".format(IP) token_headers = { 'X-Auth-Token': TOKEN, 'Content-Type': 'application/json' } # Create router create_router_url ...
39.087302
97
0.552081
0
0
0
0
0
0
0
0
1,074
0.218071
492f40da8141b4f392fd82f2242b755c0bb7c8b7
1,406
py
Python
app/view/forms.py
weizy1981/WatsonRobot
bb718a589a8f2d394fbc86582bff29c1015e79fc
[ "Apache-2.0" ]
null
null
null
app/view/forms.py
weizy1981/WatsonRobot
bb718a589a8f2d394fbc86582bff29c1015e79fc
[ "Apache-2.0" ]
null
null
null
app/view/forms.py
weizy1981/WatsonRobot
bb718a589a8f2d394fbc86582bff29c1015e79fc
[ "Apache-2.0" ]
null
null
null
from flask_wtf import FlaskForm from wtforms import StringField, PasswordField, SubmitField, FileField from wtforms.validators import DataRequired from app.view import errormessage class LoginForm(FlaskForm): username = StringField(label='username', validators=[DataRequired(errormessage.LOGIN002)]) password = ...
43.9375
109
0.753201
1,215
0.864154
0
0
0
0
0
0
102
0.072546
492f4214ee6f18acfc6f5dd9c2a40c4761fa8d61
2,519
py
Python
setup.py
alexweav/nisystemlink-clients-python
f19a30907a7fef536043ecbddc5a755e5fedf846
[ "MIT" ]
null
null
null
setup.py
alexweav/nisystemlink-clients-python
f19a30907a7fef536043ecbddc5a755e5fedf846
[ "MIT" ]
null
null
null
setup.py
alexweav/nisystemlink-clients-python
f19a30907a7fef536043ecbddc5a755e5fedf846
[ "MIT" ]
null
null
null
from setuptools import find_namespace_packages, find_packages, setup # type: ignore from setuptools.command.test import test as TestCommand # type: ignore class PyTest(TestCommand): def finalize_options(self): TestCommand.finalize_options(self) self.test_args = [] self.test_suite = True ...
31.4875
84
0.639143
261
0.103613
0
0
0
0
0
0
1,006
0.399365
492f9041b41552075a47cd3267bbbce97f7550d5
13,534
py
Python
shell_ui/__init__.py
conducto/conducto
b480780905f5a25e8c803b60ca7cdf6976ce5ef6
[ "Apache-2.0" ]
25
2020-05-07T22:51:11.000Z
2021-11-17T16:14:42.000Z
shell_ui/__init__.py
conducto/conducto
b480780905f5a25e8c803b60ca7cdf6976ce5ef6
[ "Apache-2.0" ]
3
2020-04-21T06:38:02.000Z
2020-05-31T01:57:19.000Z
shell_ui/__init__.py
conducto/conducto
b480780905f5a25e8c803b60ca7cdf6976ce5ef6
[ "Apache-2.0" ]
2
2020-05-14T01:47:32.000Z
2020-06-03T21:58:12.000Z
import os import sys import signal import asyncio import json import time import traceback import typing import socket import re import select import websockets if sys.platform != "win32": import termios import tty else: import msvcrt import win32api from .. import api from ..shared import constants, ...
33.417284
88
0.547362
11,737
0.867223
432
0.03192
275
0.020319
10,537
0.778558
2,472
0.182651
492f97e1b2f70e9fa3789d450a9a566094a9d2fe
8,772
py
Python
processing_components/simulation/ionospheric_screen.py
cnwangfeng/algorithm-reference-library
9605eb01652fbfcb9ff003cc12b44c84093b7fb1
[ "Apache-2.0" ]
null
null
null
processing_components/simulation/ionospheric_screen.py
cnwangfeng/algorithm-reference-library
9605eb01652fbfcb9ff003cc12b44c84093b7fb1
[ "Apache-2.0" ]
null
null
null
processing_components/simulation/ionospheric_screen.py
cnwangfeng/algorithm-reference-library
9605eb01652fbfcb9ff003cc12b44c84093b7fb1
[ "Apache-2.0" ]
null
null
null
""" Functions for ionospheric modelling: see SDP memo 97 """ import astropy.units as u import numpy from astropy.coordinates import SkyCoord from data_models.memory_data_models import BlockVisibility from processing_components.calibration.operations import create_gaintable_from_blockvisibility, \ create_gaintabl...
40.611111
118
0.621181
0
0
0
0
0
0
0
0
1,991
0.226972
4930f596737a00ba148f8145ee070ebfb4b9133d
7,311
py
Python
build.py
Slaals/narval
3b811fb3854760a34a3875b35bd6088d4299ce8f
[ "CNRI-Python" ]
null
null
null
build.py
Slaals/narval
3b811fb3854760a34a3875b35bd6088d4299ce8f
[ "CNRI-Python" ]
null
null
null
build.py
Slaals/narval
3b811fb3854760a34a3875b35bd6088d4299ce8f
[ "CNRI-Python" ]
null
null
null
''' This file is part of Narval : an opensource and free rights static blog generator. ''' #!/usr/bin/python3 #-*- coding: utf-8 -*- import os, filecmp, random, webbrowser from shutil import copyfile params = __import__('config') helpers = __import__('helpers') tmps = __import__('template') def build(params, help...
39.518919
148
0.646286
0
0
0
0
0
0
0
0
2,052
0.279984
493212d8687f50b52ca98a00b02e9f83e3d17403
247
py
Python
examples/simple/regression/sample_skipped.py
jonwesneski/end2
708c7b96c1086959565e2889a0818451e6e2c931
[ "MIT" ]
null
null
null
examples/simple/regression/sample_skipped.py
jonwesneski/end2
708c7b96c1086959565e2889a0818451e6e2c931
[ "MIT" ]
1
2022-03-12T19:43:00.000Z
2022-03-12T19:43:00.000Z
examples/simple/regression/sample_skipped.py
jonwesneski/end2
708c7b96c1086959565e2889a0818451e6e2c931
[ "MIT" ]
null
null
null
from src import ( RunMode, setup ) __run_mode__ = RunMode.PARALLEL @setup def my_setup(logger): assert False, "FAILING SETUP ON PURPOSE" def test_skipped(logger): assert False, "THIS TEST SHOULD NOT RUN BECAUSE SETUP FAILED"
14.529412
65
0.712551
0
0
0
0
73
0.295547
0
0
73
0.295547
493289a9cede0d970c6e0473eaec236052421c6b
1,276
py
Python
structure/DoublyLinkedList.py
Jaidev810/Data-Structures-package
f651615275817f182662892b2b57b200310d3dba
[ "MIT" ]
2
2021-02-27T06:13:11.000Z
2021-02-27T06:15:03.000Z
structure/DoublyLinkedList.py
Jaidev810/Data-Structures-package
f651615275817f182662892b2b57b200310d3dba
[ "MIT" ]
null
null
null
structure/DoublyLinkedList.py
Jaidev810/Data-Structures-package
f651615275817f182662892b2b57b200310d3dba
[ "MIT" ]
null
null
null
class Node: def __init__(self, val: int): self.val = val self.prev = None self.next = None class DoublyLinkedList: def takeinput(self) -> Node: inputlist = [int(x) for x in input().split()] head = None temp = None for curr in inputlist: if c...
23.62963
53
0.471787
1,273
0.997649
0
0
0
0
0
0
10
0.007837
49328cd4da5fd3b0c69d9699b45e853d2628cbd7
9,297
py
Python
reference_parsing/scripts/reference_script.py
ScholarIndex/LinkedBooks
0cae008427ed1eb34a882e9d85f24b42b3ee3a28
[ "MIT" ]
null
null
null
reference_parsing/scripts/reference_script.py
ScholarIndex/LinkedBooks
0cae008427ed1eb34a882e9d85f24b42b3ee3a28
[ "MIT" ]
6
2020-03-20T18:10:01.000Z
2021-09-29T17:31:17.000Z
reference_parsing/scripts/reference_script.py
ScholarIndex/LinkedBooks
0cae008427ed1eb34a882e9d85f24b42b3ee3a28
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ USED una tantum to refactor the journal_references collection. Note that the old collection references (monograph reference lists) is discarded: monographs are going to ba parsed again. this script: 1- copies the journal_references collection to another collection: sand, test and production...
43.443925
179
0.64182
0
0
0
0
0
0
0
0
3,281
0.35291
493417e0fff28d76a0a6a6c06dec19aa851fdaf9
20,534
py
Python
simpysql/Eloquent/SqlServerBuilder.py
wjtxlliubin/simpysql
c135ce42d0bda8b11632f4003bb60995d24a7392
[ "MIT" ]
29
2019-05-22T08:08:34.000Z
2021-11-16T08:15:10.000Z
simpysql/Eloquent/SqlServerBuilder.py
wjtxlliubin/simpysql
c135ce42d0bda8b11632f4003bb60995d24a7392
[ "MIT" ]
4
2019-05-20T08:34:07.000Z
2019-09-11T11:26:57.000Z
simpysql/Eloquent/SqlServerBuilder.py
wjtxlliubin/simpysql
c135ce42d0bda8b11632f4003bb60995d24a7392
[ "MIT" ]
5
2019-05-20T09:15:49.000Z
2021-09-04T19:08:59.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import collections from simpysql.Util.Expression import expression as expr, Expression from simpysql.Util.Response import Response from .BaseBuilder import BaseBuilder from simpysql.Util.Dynamic import Dynamic class SqlServerBuilder(BaseBuilder): operators = [ ...
39.564547
150
0.564868
20,329
0.987324
0
0
0
0
0
0
2,116
0.102768
49352eca9c4b127887b5b697dac9363a8f43de19
18,955
py
Python
openBMC/terminal_cmd.py
kevinkellyspacey/openBMC-rpi
468f3ec39a29e7d89e0601ba6d51279cd4617b93
[ "MIT" ]
null
null
null
openBMC/terminal_cmd.py
kevinkellyspacey/openBMC-rpi
468f3ec39a29e7d89e0601ba6d51279cd4617b93
[ "MIT" ]
null
null
null
openBMC/terminal_cmd.py
kevinkellyspacey/openBMC-rpi
468f3ec39a29e7d89e0601ba6d51279cd4617b93
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import logging from openBMC.smbpbi import smbpbi_read import smbus from openBMC.fan_control import set_dbus_data,get_dbus_data,pwm_reqest_set,TMP451_7bit_ADDR,GPU0_7bit_ADDR,GPU1_7bit_ADDR import dbus import argparse import socket import sys import os def show(string,seria...
39.737945
171
0.482564
18,207
0.960538
0
0
0
0
0
0
5,321
0.280717
4935f536cd95ba674ac2e9ef0ae15b9cb27cb00e
5,436
py
Python
other/wget_files.py
arlewis/galaxy_cutouts
02c7eac9a6251a36290e7c620ff6a76c012fd53b
[ "MIT" ]
null
null
null
other/wget_files.py
arlewis/galaxy_cutouts
02c7eac9a6251a36290e7c620ff6a76c012fd53b
[ "MIT" ]
null
null
null
other/wget_files.py
arlewis/galaxy_cutouts
02c7eac9a6251a36290e7c620ff6a76c012fd53b
[ "MIT" ]
null
null
null
from __future__ import print_function import numpy as np import astropy.io.fits import gal_data import config import argparse import os import sys from collections import defaultdict from pdb import set_trace _WORK_DIR = '/Users/lewis.1590/research/galbase' _GALDATA_DIR = '/Users/lewis.1590/python/galbase/gal_data' _...
36.979592
116
0.625276
0
0
0
0
0
0
0
0
2,260
0.415747
49373d99cd60462ee40755d32e9fd17e9129e6bd
478
py
Python
jessie_bot/help/help.py
KNNCreative/jessie-bot
de6994b6a58b742f1e943cdfbd84af6c0c183851
[ "MIT" ]
1
2017-08-06T06:08:29.000Z
2017-08-06T06:08:29.000Z
jessie_bot/help/help.py
KNNCreative/jessie-bot
de6994b6a58b742f1e943cdfbd84af6c0c183851
[ "MIT" ]
null
null
null
jessie_bot/help/help.py
KNNCreative/jessie-bot
de6994b6a58b742f1e943cdfbd84af6c0c183851
[ "MIT" ]
null
null
null
import json import logging from pathlib import Path from hermes.common.lex_utils import success, error logger = logging.getLogger(__name__) script_path = Path.cwd().joinpath('hermes/help/script.json') with script_path.open() as f: script = json.load(f) def handler(event, context): help_text = '\n'.join(script['...
22.761905
60
0.719665
0
0
0
0
0
0
0
0
50
0.104603
493744bd4e38a4f634bfc5490a7a5a2f5c5b9cc9
4,733
py
Python
MyStudy/app/Stateful_Firewall.py
OucMan/ryu
6ca460ec16f967945643fc7b3846898c571ad6cf
[ "Apache-2.0" ]
null
null
null
MyStudy/app/Stateful_Firewall.py
OucMan/ryu
6ca460ec16f967945643fc7b3846898c571ad6cf
[ "Apache-2.0" ]
null
null
null
MyStudy/app/Stateful_Firewall.py
OucMan/ryu
6ca460ec16f967945643fc7b3846898c571ad6cf
[ "Apache-2.0" ]
null
null
null
from ryu.base import app_manager from ryu.ofproto import ofproto_v1_3 from ryu.controller import ofp_event from ryu.controller.handler import set_ev_cls, MAIN_DISPATCHER, CONFIG_DISPATCHER from ryu.lib.packet.packet import packet, ether_types from ryu.lib.packet.ethernet import ethernet from ryu.lib.packet.ethernet imp...
45.509615
110
0.592225
4,246
0.891455
0
0
3,395
0.712786
0
0
99
0.020785
493827951fe9c01069f538a18ee56a8c22b8b962
1,355
py
Python
screenpy/questions/body_of_the_last_response.py
perrygoy/screenpy
862c0d7e5ff9f1265e520ab383c04ddbd4d060eb
[ "MIT" ]
39
2019-03-22T15:18:23.000Z
2022-02-23T17:32:03.000Z
screenpy/questions/body_of_the_last_response.py
perrygoy/screenpy
862c0d7e5ff9f1265e520ab383c04ddbd4d060eb
[ "MIT" ]
63
2019-07-17T06:25:19.000Z
2022-01-13T07:03:53.000Z
screenpy/questions/body_of_the_last_response.py
bandophahita/screenpy
db0f3ef91a891b9d095016d83fa4b589620808ce
[ "MIT" ]
15
2019-07-09T11:02:56.000Z
2021-12-24T07:43:56.000Z
""" Investigate the body of the last API response received by the Actor. """ from json.decoder import JSONDecodeError from typing import Union from screenpy import Actor from screenpy.abilities import MakeAPIRequests from screenpy.exceptions import UnableToAnswer from screenpy.pacing import beat class BodyOfTheLast...
30.111111
88
0.667159
1,053
0.777122
0
0
518
0.382288
0
0
695
0.512915
493855de80e96da6e183d61540552721c4471e12
2,973
py
Python
d3rlpy/algos/torch/td3_impl.py
ningyixue/AIPI530_Final_Project
b95353ffd003692a37a59042dfcd744a18b7e802
[ "MIT" ]
565
2020-08-01T02:44:28.000Z
2022-03-30T15:00:54.000Z
d3rlpy/algos/torch/td3_impl.py
ningyixue/AIPI530_Final_Project
b95353ffd003692a37a59042dfcd744a18b7e802
[ "MIT" ]
144
2020-08-01T03:45:10.000Z
2022-03-30T14:51:16.000Z
d3rlpy/algos/torch/td3_impl.py
ningyixue/AIPI530_Final_Project
b95353ffd003692a37a59042dfcd744a18b7e802
[ "MIT" ]
103
2020-08-26T13:27:34.000Z
2022-03-31T12:24:27.000Z
from typing import Optional, Sequence import torch from ...gpu import Device from ...models.encoders import EncoderFactory from ...models.optimizers import OptimizerFactory from ...models.q_functions import QFunctionFactory from ...preprocessing import ActionScaler, RewardScaler, Scaler from ...torch_utility import T...
36.703704
73
0.670703
2,604
0.875883
0
0
0
0
0
0
18
0.006054
49389ecac90c405c9c35bd0a48479aa66ba8e1c6
9,086
py
Python
mod_modPackInformer/source/mod_modPackInformer.py
stealthz67/spoter-mods-1
4ebd859fbb705b085ae5c4cb621edfbab476e378
[ "WTFPL" ]
null
null
null
mod_modPackInformer/source/mod_modPackInformer.py
stealthz67/spoter-mods-1
4ebd859fbb705b085ae5c4cb621edfbab476e378
[ "WTFPL" ]
null
null
null
mod_modPackInformer/source/mod_modPackInformer.py
stealthz67/spoter-mods-1
4ebd859fbb705b085ae5c4cb621edfbab476e378
[ "WTFPL" ]
1
2019-12-10T19:11:55.000Z
2019-12-10T19:11:55.000Z
# -*- coding: utf-8 -*- import json import os import threading import urllib import urllib2 import BigWorld import ResMgr from gui.Scaleform.daapi.view.dialogs import DIALOG_BUTTON_ID, ConfirmDialogButtons, SimpleDialogMeta from gui.Scaleform.daapi.view.lobby.LobbyView import LobbyView from gui import DialogsInterface...
38.5
195
0.575171
7,395
0.81371
135
0.014855
148
0.016285
0
0
1,680
0.184859
49397d33975fc946c23e0dd90e4f51ce16027f86
1,978
py
Python
tests/dummypredictor/predictors.py
kiconiaworks/igata
1d8a4b82a65eb936d5d8f8ff70747ba82ddef31a
[ "BSD-2-Clause" ]
1
2021-12-31T14:29:44.000Z
2021-12-31T14:29:44.000Z
tests/dummypredictor/predictors.py
kiconiaworks/igata
1d8a4b82a65eb936d5d8f8ff70747ba82ddef31a
[ "BSD-2-Clause" ]
6
2019-11-25T04:20:26.000Z
2021-12-13T05:23:16.000Z
tests/dummypredictor/predictors.py
kiconiaworks/igata
1d8a4b82a65eb936d5d8f8ff70747ba82ddef31a
[ "BSD-2-Clause" ]
null
null
null
from time import sleep from igata.predictors import PredictorBase class DummyPredictorNoInputNoOutput(PredictorBase): def predict(self, inputs, meta): result = {"result": 0.222, "class": "car", "is_valid": True} return result class DummyPredictorNoInputNoOutputVariableOutput(PredictorBase): ...
27.859155
76
0.68453
1,890
0.955511
0
0
261
0.131951
0
0
176
0.088979
493a4dbeaaa60cda9d709c7b5d41a2f09db7205c
2,134
py
Python
ML/wrapper.py
NVombat/ReadAssist
11e107a7387f97024fa9e16d58a5b25e8291d343
[ "MIT" ]
5
2021-04-27T09:18:42.000Z
2022-03-22T17:24:33.000Z
ML/wrapper.py
SanahSidhu/ReadAssist
abbe910d0583bc504c3f2b318ccf263bb7170900
[ "MIT" ]
null
null
null
ML/wrapper.py
SanahSidhu/ReadAssist
abbe910d0583bc504c3f2b318ccf263bb7170900
[ "MIT" ]
4
2021-03-30T06:18:09.000Z
2021-04-05T08:05:16.000Z
#Encapsulates all models #Caches the models and uses the preexisting model instead of reloading it from .OCR import get_text from .ptt import get_pdf import pytesseract from .question import secondary_pipeline from transformers import pipeline class customwrapper(): def __init__(self): self.questionmodel ...
54.717949
894
0.735708
825
0.386598
0
0
0
0
0
0
1,119
0.524367
493bd803d4c7823847afa2537f0ada612dffc26a
154
py
Python
unicode_urls/cms/__init__.py
Alexx-G/django-unicode-urls
fd4f89181c7172412ddf499efd050119c16c7d43
[ "MIT" ]
null
null
null
unicode_urls/cms/__init__.py
Alexx-G/django-unicode-urls
fd4f89181c7172412ddf499efd050119c16c7d43
[ "MIT" ]
null
null
null
unicode_urls/cms/__init__.py
Alexx-G/django-unicode-urls
fd4f89181c7172412ddf499efd050119c16c7d43
[ "MIT" ]
null
null
null
from .urlutils import any_path_re def patch_djangocms_urls(): import cms.utils.urlutils as cms_urlutils cms_urlutils.any_path_re = any_path_re
19.25
45
0.792208
0
0
0
0
0
0
0
0
0
0
493bdcbcdb59f9dfe146c2a5250f13347ddc9c85
4,242
py
Python
mailpile/plugins/demos.py
pyarnold/Mailpile
a7c0a0c6257da167207200f3b214b0e66bb93a10
[ "Apache-2.0" ]
2
2017-02-03T07:00:57.000Z
2020-12-18T01:07:34.000Z
mailpile/plugins/demos.py
cz8s/Mailpile
a7c0a0c6257da167207200f3b214b0e66bb93a10
[ "Apache-2.0" ]
null
null
null
mailpile/plugins/demos.py
cz8s/Mailpile
a7c0a0c6257da167207200f3b214b0e66bb93a10
[ "Apache-2.0" ]
null
null
null
# This is a collection of very short demo-plugins to illustrate how # to create and register hooks into the various parts of Mailpile # # To start creating a new plugin, it may make sense to copy this file, # globally search/replace the word "Demo" with your preferred plugin # name and then go delete sections you aren'...
32.883721
78
0.599481
1,989
0.468883
0
0
0
0
0
0
2,631
0.620226
493d7925c52f4ec18bce691a24e25dd57a737ace
2,523
py
Python
cqi_cpp/src/wrapper/cqi_test.py
AMR-/Conservative-Q-Improvement
f9d47b33fe757475d3216d3c406d147206738c90
[ "MIT" ]
null
null
null
cqi_cpp/src/wrapper/cqi_test.py
AMR-/Conservative-Q-Improvement
f9d47b33fe757475d3216d3c406d147206738c90
[ "MIT" ]
null
null
null
cqi_cpp/src/wrapper/cqi_test.py
AMR-/Conservative-Q-Improvement
f9d47b33fe757475d3216d3c406d147206738c90
[ "MIT" ]
null
null
null
import argparse import gym import math from qtree_wrapper import PyBox as Box from qtree_wrapper import PyDiscrete as Discrete from qtree_wrapper import PyQTree as QTree from qtree_wrapper import PyVector as Vector from train import Train from utils import convert_to_pybox env = gym.make('CartPole-v0') def truncat...
31.148148
88
0.752675
0
0
0
0
0
0
0
0
528
0.209275
493e1e1955403325340bec49f18afa1cd0849a0e
621
py
Python
mcu-controller/main.py
KongoPL/lego-rc-car
6e731cd8a6787d69a83d5a92a290bbea074ef588
[ "BSD-3-Clause" ]
null
null
null
mcu-controller/main.py
KongoPL/lego-rc-car
6e731cd8a6787d69a83d5a92a290bbea074ef588
[ "BSD-3-Clause" ]
null
null
null
mcu-controller/main.py
KongoPL/lego-rc-car
6e731cd8a6787d69a83d5a92a290bbea074ef588
[ "BSD-3-Clause" ]
null
null
null
# Yea, there is probably some good framework waiting for me, # but I just want to have fun. Sometimes reinventing the wheel will serve you. # But...don't do that in professional work :) import config import time from Controller import Controller print("Hello!") root = Controller() # try: if True: lastLoopExecution...
20.7
78
0.742351
0
0
0
0
0
0
0
0
234
0.376812
493f41de8fbe0f2e07f4b04ada75db7783d58023
803
py
Python
thread_test.py
mrabedini/playground_threading
664bcae4a9328779170551d7d0e271707635e85d
[ "MIT" ]
null
null
null
thread_test.py
mrabedini/playground_threading
664bcae4a9328779170551d7d0e271707635e85d
[ "MIT" ]
null
null
null
thread_test.py
mrabedini/playground_threading
664bcae4a9328779170551d7d0e271707635e85d
[ "MIT" ]
null
null
null
import concurrent.futures import logging from logging import StreamHandler import time import timeit logging.basicConfig( level=logging.INFO, format="%(asctime)s - %(name)s - %(levelname)s - %(message)s", ) logger = logging.getLogger(__name__) def do_something(wait_time): logger.info("Waiting for %d sec...
25.09375
71
0.716065
0
0
0
0
0
0
0
0
158
0.196762
4940523067b88b49cb6f2210898a5f21bd9601ae
1,249
py
Python
iv/Backtracking/combinations.py
iamsuman/iv
bf68d3fd45455b6041e74b09272f69503bf7a8ac
[ "MIT" ]
2
2020-09-19T22:28:15.000Z
2020-10-03T01:44:53.000Z
iv/Backtracking/combinations.py
iamsuman/iv
bf68d3fd45455b6041e74b09272f69503bf7a8ac
[ "MIT" ]
null
null
null
iv/Backtracking/combinations.py
iamsuman/iv
bf68d3fd45455b6041e74b09272f69503bf7a8ac
[ "MIT" ]
1
2020-10-03T01:43:30.000Z
2020-10-03T01:43:30.000Z
class Combo(): def combine(self,n, k): A = list(range(1,n + 1)) res = self.comb(A, k) return res def comb(self, A, n): if n == 0: return [[]] l = [] for i in range(0, len(A)): m = A[i] remLst = A[i + 1:] for p in se...
22.709091
58
0.506005
394
0.315452
0
0
0
0
0
0
305
0.244195
4941a07b8598fcd71acf4d8decca54a679038504
1,257
py
Python
urlbrevity/test_urlconf.py
kezabelle/django-urlbrevity
a8b779587986c60c4e0597aead908d954480f0f9
[ "BSD-2-Clause-FreeBSD" ]
4
2015-02-13T16:20:41.000Z
2020-07-02T18:45:50.000Z
urlbrevity/test_urlconf.py
kezabelle/django-urlbrevity
a8b779587986c60c4e0597aead908d954480f0f9
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
urlbrevity/test_urlconf.py
kezabelle/django-urlbrevity
a8b779587986c60c4e0597aead908d954480f0f9
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
# -*- coding: utf-8 -*- from pytest import raises from django.contrib import admin from django.core.urlresolvers import reverse from django.core.urlresolvers import resolve from django.core.urlresolvers import NoReverseMatch from django.core.urlresolvers import Resolver404 from django.http import HttpResponse import ur...
28.568182
73
0.703262
0
0
0
0
0
0
0
0
218
0.173429
4945214eb5cf61ec5b89774833abf449ace18614
7,845
py
Python
test/unittest/datafinder_test/persistence/metadata/value_mapping/custom_format_test.py
schlauch/DataFinder
958fda4f3064f9f6b2034da396a20ac9d9abd52f
[ "BSD-3-Clause" ]
9
2016-05-25T06:12:52.000Z
2021-04-30T07:22:48.000Z
test/unittest/datafinder_test/persistence/metadata/value_mapping/custom_format_test.py
schlauch/DataFinder
958fda4f3064f9f6b2034da396a20ac9d9abd52f
[ "BSD-3-Clause" ]
6
2016-03-29T13:38:18.000Z
2017-01-18T15:57:42.000Z
test/unittest/datafinder_test/persistence/metadata/value_mapping/custom_format_test.py
schlauch/DataFinder
958fda4f3064f9f6b2034da396a20ac9d9abd52f
[ "BSD-3-Clause" ]
7
2016-06-15T12:01:22.000Z
2022-03-05T08:50:25.000Z
# $Filename$ # $Authors$ # Last Changed: $Date$ $Committer$ $Revision-Id$ # # Copyright (c) 2003-2011, German Aerospace Center (DLR) # # All rights reserved. #Redistribution and use in source and binary forms, with or without #modification, are permitted provided that the following conditions are # #met: # ...
42.405405
88
0.653792
5,675
0.723391
0
0
0
0
0
0
2,511
0.320076
49477b4b9fb8484c659b6dfe9a98235bbdb4b218
3,629
py
Python
programmers/kakao2022/kakao2022/grader.py
jiyolla/StudyForCodingTestWithDongbinNa
c070829dd9c7b02b139e56511832c4a3b9f5982f
[ "MIT" ]
null
null
null
programmers/kakao2022/kakao2022/grader.py
jiyolla/StudyForCodingTestWithDongbinNa
c070829dd9c7b02b139e56511832c4a3b9f5982f
[ "MIT" ]
null
null
null
programmers/kakao2022/kakao2022/grader.py
jiyolla/StudyForCodingTestWithDongbinNa
c070829dd9c7b02b139e56511832c4a3b9f5982f
[ "MIT" ]
null
null
null
import random from .api import put_change_grade # grades[id] = grade for user #{id}. # grades[0] is not used. Since user id starts from 1. def change_grade_randomshuffle(grades): changed_users_id = set(range(len(grades))) changed_users_id.remove(0) grades = list(range(len(grades))) random.shuffle(g...
36.656566
120
0.673188
0
0
0
0
0
0
0
0
305
0.084045
4947e1cc23f3c7930219fe180c751c514d914052
2,188
py
Python
resources/benchmark.py
HPI-SWA-Lab/TargetSpecific-ICOOOLPS
2936fe010103cfbe4b0131313abcee3a59bb8fbc
[ "MIT" ]
1
2015-04-10T17:25:56.000Z
2015-04-10T17:25:56.000Z
resources/benchmark.py
HPI-SWA-Lab/TargetSpecific-ICOOOLPS
2936fe010103cfbe4b0131313abcee3a59bb8fbc
[ "MIT" ]
null
null
null
resources/benchmark.py
HPI-SWA-Lab/TargetSpecific-ICOOOLPS
2936fe010103cfbe4b0131313abcee3a59bb8fbc
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt N = 4 ind = np.arange(N) # the x locations for the groups width = 0.4 # the width of the bars fig, ax = plt.subplots() ax.set_ylim(0,11) # outliers only #ax2.set_ylim(0,35) # most of the data #ax.spines['bottom'].set_visible(False) #ax2.spines['top'].set_vi...
32.656716
202
0.66042
0
0
0
0
0
0
0
0
1,142
0.521938
4948d466851a602b9bcffdd7a6596bee89b1c959
3,829
py
Python
talktracker/analysis.py
alTeska/talktracker
7d2c507bda78a6faf92568291190ea9300e878dc
[ "MIT" ]
1
2018-08-22T09:07:04.000Z
2018-08-22T09:07:04.000Z
talktracker/analysis.py
alTeska/talktracker
7d2c507bda78a6faf92568291190ea9300e878dc
[ "MIT" ]
1
2018-10-14T20:06:51.000Z
2018-10-14T20:06:51.000Z
talktracker/analysis.py
alTeska/talktracker
7d2c507bda78a6faf92568291190ea9300e878dc
[ "MIT" ]
3
2018-09-21T15:09:26.000Z
2018-10-13T13:58:06.000Z
from datetime import timedelta from random import sample, randint import talktracker as tt def time_diff(time1, time2): """calculate the time different""" time1_info = timedelta(hours=time1[0], minutes=time1[1], seconds=time1[2]) time2_info = timedelta(hours=time2[0], minutes=time2[1], seconds=time2[2]) ...
36.122642
154
0.629146
0
0
0
0
0
0
0
0
1,639
0.428049
494aa2d4e0d2a060a9ff51a1b37123a087e51342
2,692
py
Python
app/internal/module/video_del/queue.py
penM000/eALPluS-video-api
4ec8f850bd98450b76279f5e30da854dbfaed776
[ "MIT" ]
null
null
null
app/internal/module/video_del/queue.py
penM000/eALPluS-video-api
4ec8f850bd98450b76279f5e30da854dbfaed776
[ "MIT" ]
null
null
null
app/internal/module/video_del/queue.py
penM000/eALPluS-video-api
4ec8f850bd98450b76279f5e30da854dbfaed776
[ "MIT" ]
null
null
null
import asyncio from dataclasses import dataclass, field from typing import Any from .encode import encoder from .database import database from ..logger import logger @dataclass(order=True) class QueueItem: """ キューアイテム """ priority: int item: Any = field(compare=False) queue = None encode_tasks...
29.26087
75
0.609955
113
0.039566
0
0
136
0.047619
2,510
0.878852
542
0.189776
494b2faa96115baf8681d111a98a087de5ebcb59
476
py
Python
lib/dyson/utils/module.py
luna-test/luna
6d94439f2747daf96e295837684bdc6607f507dc
[ "Apache-2.0" ]
3
2018-05-21T14:35:11.000Z
2021-03-25T12:32:25.000Z
lib/dyson/utils/module.py
dyson-framework/dyson
e5a2e12c7bb0ba21ff274feff34c184576d08ff5
[ "Apache-2.0" ]
13
2018-05-22T01:01:08.000Z
2018-09-16T22:12:10.000Z
lib/dyson/utils/module.py
luna-test/luna
6d94439f2747daf96e295837684bdc6607f507dc
[ "Apache-2.0" ]
1
2018-05-21T14:35:17.000Z
2018-05-21T14:35:17.000Z
import os from dyson import constants from abc import abstractmethod import sys from dyson.constants import to_boolean class DysonModule: def __init__(self): pass @abstractmethod def run(self, webdriver, params): pass def fail(self, msg): print(msg, file=sys.stderr) ...
18.307692
62
0.686975
272
0.571429
0
0
66
0.138655
0
0
0
0
494cefc1f9462c0538e6c405bcec6cc75cbab494
1,136
py
Python
misc/texteditor.py
disc0nnctd/myPythonCodesDC
378b0cf749124ef8b7f8d70f6f298faa6c9f73de
[ "MIT" ]
1
2017-04-30T18:20:32.000Z
2017-04-30T18:20:32.000Z
misc/texteditor.py
disc0nnctd/myPythonCodesDC
378b0cf749124ef8b7f8d70f6f298faa6c9f73de
[ "MIT" ]
1
2017-04-30T10:09:45.000Z
2017-04-30T12:39:19.000Z
misc/texteditor.py
disc0nnctd/myPythonCodesDC
378b0cf749124ef8b7f8d70f6f298faa6c9f73de
[ "MIT" ]
1
2017-04-30T09:54:08.000Z
2017-04-30T09:54:08.000Z
"""A simple text editor made in Python 2.7.""" from os import path, chdir workingdir = path.join(path.dirname(__file__), 'texts') chdir(workingdir) from Tkinter import Tk, Text, Button import tkFileDialog root = Tk("Text Editor") text = Text(root) text.grid() def saveas(): """Save file.""" tr...
25.244444
73
0.611796
0
0
0
0
0
0
0
0
210
0.184859
494e2056309882919070e0989e358cb4f828bbd0
397
py
Python
21_DivdeConquer/Step05/gamjapark.py
StudyForCoding/BEAKJOON
84e1c5e463255e919ccf6b6a782978c205420dbf
[ "MIT" ]
null
null
null
21_DivdeConquer/Step05/gamjapark.py
StudyForCoding/BEAKJOON
84e1c5e463255e919ccf6b6a782978c205420dbf
[ "MIT" ]
3
2020-11-04T05:38:53.000Z
2021-03-02T02:15:19.000Z
21_DivdeConquer/Step05/gamjapark.py
StudyForCoding/BEAKJOON
84e1c5e463255e919ccf6b6a782978c205420dbf
[ "MIT" ]
null
null
null
import sys n, k= map(int, sys.stdin.readline().split()) def power(a, b): if b == 0: return 1 if b % 2: return (power(a, b//2) ** 2 * a) % P else: return (power(a, b//2) ** 2) % P P = 1000000007 f = [1 for _ in range(n + 1)] for i in range(2, n + 1): f[i] = (f[i - 1] * i) % P A = f[n] B = (f[n-k]*f[k])%P p...
18.045455
76
0.476071
0
0
0
0
0
0
0
0
50
0.121655
494e7be275c169f4f4b49f4a379016a1594a2a8b
135
py
Python
quicksilver.py
binaryflesh/quicksilver
0d65259f305beb05efe00f096e48c41b62bfdf57
[ "MIT" ]
1
2018-12-01T07:52:13.000Z
2018-12-01T07:52:13.000Z
quicksilver.py
binaryflesh/quicksilver
0d65259f305beb05efe00f096e48c41b62bfdf57
[ "MIT" ]
7
2018-12-02T23:31:38.000Z
2018-12-03T07:44:41.000Z
quicksilver.py
binaryflesh/quicksilver
0d65259f305beb05efe00f096e48c41b62bfdf57
[ "MIT" ]
null
null
null
# Quicksilver.py - Agnostic project analyzer that generates resourceful diagrams. WIP # Copyright (C) 2018 Logan Campos - @binaryflesh
45
85
0.792593
0
0
0
0
0
0
0
0
133
0.985185
494e987723a6b2a0236a0a1b1f66efc147868431
4,830
py
Python
action_controller/scripts/ActionControllerNode.py
FablabHome/The_Essense_of_the_Grey_Region
6385ada0879bdc6c00cb707192841fdab9ab7bf1
[ "MIT" ]
1
2021-09-23T09:42:32.000Z
2021-09-23T09:42:32.000Z
action_controller/scripts/ActionControllerNode.py
FablabHome/The_Essense_of_the_Grey_Region
6385ada0879bdc6c00cb707192841fdab9ab7bf1
[ "MIT" ]
null
null
null
action_controller/scripts/ActionControllerNode.py
FablabHome/The_Essense_of_the_Grey_Region
6385ada0879bdc6c00cb707192841fdab9ab7bf1
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ MIT License Copyright (c) 2020 rootadminWalker Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy...
37.44186
105
0.561698
3,594
0.744099
0
0
822
0.170186
0
0
2,568
0.531677
494ed3dffeb5ac99649e1cc394c891c7296dc5fc
5,174
py
Python
model.py
Wentao-Shi/Molecule-RNN
e00d89c7a6c0c341fb790da800087b9e34be5ab8
[ "MIT" ]
3
2021-08-22T21:26:38.000Z
2022-01-09T11:16:40.000Z
model.py
shiwentao00/Molecule-RNN
e00d89c7a6c0c341fb790da800087b9e34be5ab8
[ "MIT" ]
null
null
null
model.py
shiwentao00/Molecule-RNN
e00d89c7a6c0c341fb790da800087b9e34be5ab8
[ "MIT" ]
null
null
null
# Copyright: Wentao Shi, 2021 import torch import torch.nn as nn from torch.nn.utils.rnn import pack_padded_sequence from torch.nn.functional import softmax class RNN(torch.nn.Module): def __init__(self, rnn_config): super(RNN, self).__init__() self.embedding_layer = nn.Embedding( num...
32.3375
71
0.55547
5,014
0.969076
0
0
0
0
0
0
1,426
0.275609
49503dbeb658d944f139ed75ff92cfc671b7acd3
86
py
Python
day5.py
GuiltyD/Python_code
db03c491824b66d842a7b4ff8aa45644233526a6
[ "MIT" ]
null
null
null
day5.py
GuiltyD/Python_code
db03c491824b66d842a7b4ff8aa45644233526a6
[ "MIT" ]
null
null
null
day5.py
GuiltyD/Python_code
db03c491824b66d842a7b4ff8aa45644233526a6
[ "MIT" ]
null
null
null
f = open('./day4.py') for chunk in iter(lambda :f.read(10),''): print(chunk)
17.2
41
0.55814
0
0
0
0
0
0
0
0
13
0.151163
4950672898e66d691bf307ac9e23c9fb67819cb1
701
py
Python
Latest/venv/Lib/site-packages/apptools/io/h5/utils.py
adamcvj/SatelliteTracker
49a8f26804422fdad6f330a5548e9f283d84a55d
[ "Apache-2.0" ]
1
2022-01-09T20:04:31.000Z
2022-01-09T20:04:31.000Z
Latest/venv/Lib/site-packages/apptools/io/h5/utils.py
adamcvj/SatelliteTracker
49a8f26804422fdad6f330a5548e9f283d84a55d
[ "Apache-2.0" ]
1
2022-02-15T12:01:57.000Z
2022-03-24T19:48:47.000Z
Latest/venv/Lib/site-packages/apptools/io/h5/utils.py
adamcvj/SatelliteTracker
49a8f26804422fdad6f330a5548e9f283d84a55d
[ "Apache-2.0" ]
null
null
null
from contextlib import contextmanager from .file import H5File @contextmanager def open_h5file(filename, mode='r+', **kwargs): """Context manager for reading an HDF5 file as an H5File object. Parameters ---------- filename : str HDF5 file name. mode : str Mode to open the file: ...
24.172414
73
0.611983
0
0
618
0.881598
634
0.904422
0
0
465
0.663338
4950f58ba8e9dd8055eb104d658977925fab01b1
202
py
Python
src/success_backup_check/tests/test_success_backup_check.py
linuxluigi/success-backup-check
aa3be2dbd8b0106b931bf226614e05af68034077
[ "MIT" ]
null
null
null
src/success_backup_check/tests/test_success_backup_check.py
linuxluigi/success-backup-check
aa3be2dbd8b0106b931bf226614e05af68034077
[ "MIT" ]
7
2017-10-20T08:14:08.000Z
2017-10-31T10:04:19.000Z
src/success_backup_check/tests/test_success_backup_check.py
linuxluigi/success-backup-check
aa3be2dbd8b0106b931bf226614e05af68034077
[ "MIT" ]
null
null
null
import pytest import success_backup_check def test_project_defines_author_and_version(): assert hasattr(success_backup_check, '__author__') assert hasattr(success_backup_check, '__version__')
25.25
55
0.826733
0
0
0
0
0
0
0
0
25
0.123762
4953b0d0a882cec4862d24ffe94ed3594bc14dec
1,816
py
Python
insighioNode/lib/networking/modem/modem_sequans.py
insighio/insighioNode
396b0858ffb265ac66075e8b9d90713ffae7ffb8
[ "MIT" ]
5
2021-06-11T09:03:12.000Z
2021-12-22T09:04:57.000Z
insighioNode/lib/networking/modem/modem_sequans.py
insighio/insighioNode
396b0858ffb265ac66075e8b9d90713ffae7ffb8
[ "MIT" ]
1
2021-06-11T14:15:05.000Z
2021-06-11T14:15:33.000Z
insighioNode/lib/networking/modem/modem_sequans.py
insighio/insighioNode
396b0858ffb265ac66075e8b9d90713ffae7ffb8
[ "MIT" ]
null
null
null
from modem_base import Modem from network import LTE import logging class ModemSequans(Modem): def __init__(self): self.lte = LTE() def power_on(self): self.lte.init() def power_off(self): self.lte.deinit(dettach=True, reset=True) def init(self): return True def...
24.540541
81
0.601872
1,745
0.960903
0
0
0
0
0
0
110
0.060573
4953cc8e9258070e70193f6a8e92ffeda65bac35
1,824
py
Python
ravendb/tests/jvm_migrated_tests/crud_tests/test_track_entity.py
ravendb/RavenDB-Python-Client
6286b459b501e755fe8e8591a48acf8616605ccd
[ "MIT" ]
8
2016-10-08T17:45:44.000Z
2018-05-29T12:16:43.000Z
ravendb/tests/jvm_migrated_tests/crud_tests/test_track_entity.py
ravendb/RavenDB-Python-Client
6286b459b501e755fe8e8591a48acf8616605ccd
[ "MIT" ]
5
2017-02-12T15:50:53.000Z
2017-09-18T12:25:01.000Z
ravendb/tests/jvm_migrated_tests/crud_tests/test_track_entity.py
ravendb/RavenDB-Python-Client
6286b459b501e755fe8e8591a48acf8616605ccd
[ "MIT" ]
8
2016-07-03T07:59:12.000Z
2017-09-18T11:22:23.000Z
from ravendb.exceptions.exceptions import NonUniqueObjectException, InvalidOperationException from ravendb.tests.test_base import UserWithId, TestBase class TestTrackEntity(TestBase): def setUp(self): super(TestTrackEntity, self).setUp() def test_storing_document_with_the_same_id_in_the_same_session_...
44.487805
109
0.679276
1,670
0.91557
0
0
0
0
0
0
248
0.135965
4953e3a0846206727edbbb495ede380b618ab266
1,781
py
Python
PluginSDK/PythonRecon/Python/excel_helper.py
PengJinFa/YAPNew
fafee8031669b24d0cc74876a477c97d0d7ebadc
[ "MIT" ]
20
2016-07-05T05:23:04.000Z
2021-11-07T14:25:59.000Z
PluginSDK/PythonRecon/Python/excel_helper.py
PengJinFa/YAPNew
fafee8031669b24d0cc74876a477c97d0d7ebadc
[ "MIT" ]
20
2016-06-08T06:36:55.000Z
2018-04-25T09:52:18.000Z
PluginSDK/PythonRecon/Python/excel_helper.py
PengJinFa/YAPNew
fafee8031669b24d0cc74876a477c97d0d7ebadc
[ "MIT" ]
21
2016-05-31T15:34:09.000Z
2021-11-07T14:26:03.000Z
from openpyxl import Workbook from openpyxl.utils import get_column_letter import numbers wb = Workbook() def XL_Location(row, column): return get_column_letter(column) + str(row) def Save_Column_Title(file_dir, features, row_index, column_start): ws = wb.active keys = [x[0] for x in features.items()] ...
30.706897
83
0.60977
0
0
0
0
0
0
0
0
20
0.01123
4955e96c4c0b436986516c1c0b6010caa5dbeec8
1,971
py
Python
src/semantic_segmentation/utils/image.py
alteia-ai/ICSS
088ddb7a8b92c71cc0b95e55d186069b8af50b0a
[ "MIT" ]
7
2022-01-10T19:04:34.000Z
2022-03-16T03:19:48.000Z
src/semantic_segmentation/utils/image.py
alteia-ai/ICSS
088ddb7a8b92c71cc0b95e55d186069b8af50b0a
[ "MIT" ]
null
null
null
src/semantic_segmentation/utils/image.py
alteia-ai/ICSS
088ddb7a8b92c71cc0b95e55d186069b8af50b0a
[ "MIT" ]
null
null
null
import colorsys import itertools import numpy as np import torch def sliding_window(top, step=10, window_size=(20, 20)): """ Slide a window_shape window across the image with a stride of step """ for x in range(0, top.shape[1], step): if x + window_size[0] > top.shape[1]: x = top.shape[1]...
31.790323
99
0.609335
0
0
698
0.354135
0
0
0
0
525
0.266362
495701e22432966b0a7ba235c137600209fc7f19
578
py
Python
website/error.py
TWoolhouse/Libraries
26079ed387cb800cb97f20980720ae094008c7bf
[ "MIT" ]
1
2020-10-11T15:34:56.000Z
2020-10-11T15:34:56.000Z
website/error.py
TWoolhouse/Libraries
26079ed387cb800cb97f20980720ae094008c7bf
[ "MIT" ]
null
null
null
website/error.py
TWoolhouse/Libraries
26079ed387cb800cb97f20980720ae094008c7bf
[ "MIT" ]
null
null
null
class WebsiteBaseError(Exception): pass class TreeTraversal(WebsiteBaseError): def __init__(self, tree, request, segment, req=None): super().__init__() self.tree, self.request, self.segment, self.req = tree, request, segment, req def __str__(self) -> str: return f"{self.tree} > {s...
27.52381
101
0.647059
573
0.991349
0
0
0
0
0
0
102
0.176471
4958f00172a7990bcba76c17970e13446ea6dcfc
8,498
py
Python
backend/src/contaxy/operations/deployment.py
ml-tooling/contaxy
3317a866c2ef641667a2d318885c8b0f5096b56a
[ "MIT" ]
3
2021-10-17T23:25:05.000Z
2022-02-03T21:40:59.000Z
backend/src/contaxy/operations/deployment.py
ml-tooling/contaxy
3317a866c2ef641667a2d318885c8b0f5096b56a
[ "MIT" ]
14
2021-11-09T15:24:29.000Z
2022-03-11T13:26:04.000Z
backend/src/contaxy/operations/deployment.py
ml-tooling/contaxy
3317a866c2ef641667a2d318885c8b0f5096b56a
[ "MIT" ]
3
2022-01-27T08:31:57.000Z
2022-02-11T13:38:00.000Z
from abc import ABC, abstractmethod from datetime import datetime from typing import Any, List, Literal, Optional from contaxy.schema import Job, JobInput, ResourceAction, Service, ServiceInput from contaxy.schema.deployment import DeploymentType # TODO: update_service functionality class ServiceOperations(ABC): ...
29.922535
166
0.619087
8,203
0.965286
0
0
7,956
0.93622
0
0
4,820
0.567192
4959390b2ca88e67ed8b8674132fbee54a9cccd4
15,604
py
Python
perfkitbenchmarker/providers/openstack/os_virtual_machine.py
Nowasky/PerfKitBenchmarker
cfa88e269eb373780910896ed4bdc8db09469753
[ "Apache-2.0" ]
3
2018-04-28T13:06:14.000Z
2020-06-09T02:39:44.000Z
perfkitbenchmarker/providers/openstack/os_virtual_machine.py
Nowasky/PerfKitBenchmarker
cfa88e269eb373780910896ed4bdc8db09469753
[ "Apache-2.0" ]
1
2018-03-15T21:01:27.000Z
2018-03-15T21:01:27.000Z
perfkitbenchmarker/providers/openstack/os_virtual_machine.py
Nowasky/PerfKitBenchmarker
cfa88e269eb373780910896ed4bdc8db09469753
[ "Apache-2.0" ]
6
2019-06-11T18:59:57.000Z
2021-03-02T19:14:42.000Z
# Copyright 2015 PerfKitBenchmarker 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 appli...
36.543326
80
0.692771
14,237
0.912394
0
0
211
0.013522
0
0
3,713
0.237952
49594197e0bf3a8d4220d5dcfdcb6644bf95fa9a
5,933
py
Python
model.py
kevincho840430/CarND-Behavioral-Cloning-P3-master-1
042707a17c6dffb19717737b3f78169428bf31f6
[ "MIT" ]
null
null
null
model.py
kevincho840430/CarND-Behavioral-Cloning-P3-master-1
042707a17c6dffb19717737b3f78169428bf31f6
[ "MIT" ]
null
null
null
model.py
kevincho840430/CarND-Behavioral-Cloning-P3-master-1
042707a17c6dffb19717737b3f78169428bf31f6
[ "MIT" ]
null
null
null
## Self-driven car project based on nvidia's CNN model ## Package #torch = 0.4.1.post2 #torchvision = 0.2.1 #numpy = 1.15.2 #opencv-python =3.4.3 # -*- coding: utf-8 -*- # Import the Stuff import torch import torch.nn as nn import torch.optim as optim from torch.utils import data from torch.utils.data import DataLoa...
31.062827
118
0.632901
1,712
0.288556
0
0
0
0
0
0
1,054
0.17765