hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
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
251
max_issues_repo_name
stringlengths
4
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
251
max_forks_repo_name
stringlengths
4
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
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
f3363cb0d95d7a8d90092c67699c8bf108010794
1,905
py
Python
api/routes.py
elainevoice/backend
9b5fef59001fd6c2040affc80cd5cb9690c73795
[ "Apache-2.0" ]
3
2020-12-28T16:45:56.000Z
2021-12-18T08:38:29.000Z
api/routes.py
elainevoice/backend
9b5fef59001fd6c2040affc80cd5cb9690c73795
[ "Apache-2.0" ]
1
2020-12-14T13:09:42.000Z
2020-12-14T13:09:42.000Z
api/routes.py
elainevoice/backend
9b5fef59001fd6c2040affc80cd5cb9690c73795
[ "Apache-2.0" ]
null
null
null
from fastapi import APIRouter, File, Header, HTTPException, UploadFile from fastapi.responses import FileResponse, HTMLResponse from pydantic.main import List from api import controller from api.config import application_name from api.models.TTS_model import TTSModel router = APIRouter() MAX_CHARACTERS = 550
28.863636
86
0.669816
f33897f01f860ace5277d9d6efa8513dc51da187
3,357
py
Python
server.py
zhangtuxin/CMPUT404-WEB-SERVER
afd409d503c1b32e3fa142b2cb6e924f5b0018ef
[ "Apache-2.0" ]
null
null
null
server.py
zhangtuxin/CMPUT404-WEB-SERVER
afd409d503c1b32e3fa142b2cb6e924f5b0018ef
[ "Apache-2.0" ]
null
null
null
server.py
zhangtuxin/CMPUT404-WEB-SERVER
afd409d503c1b32e3fa142b2cb6e924f5b0018ef
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 import SocketServer,os # Copyright 2013 Abram Hindle, Eddie Antonio Santos # # 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.494118
148
0.618111
f3390fdf7f2b57c683fe56929f4a5884eaf1e0f7
22,125
py
Python
off_django/models.py
klorophyl/openfoodfacts-django
696e701355af9911e726c5579eacca8989f4c629
[ "Apache-2.0" ]
1
2022-02-02T19:54:34.000Z
2022-02-02T19:54:34.000Z
off_django/models.py
klorophyl/openfoodfacts-django
696e701355af9911e726c5579eacca8989f4c629
[ "Apache-2.0" ]
null
null
null
off_django/models.py
klorophyl/openfoodfacts-django
696e701355af9911e726c5579eacca8989f4c629
[ "Apache-2.0" ]
1
2021-12-27T20:40:18.000Z
2021-12-27T20:40:18.000Z
#!/usr/bin/python # _*_ coding: utf_8 _*_ import datetime import logging import openfoodfacts from tqdm import tqdm from django.core.exceptions import FieldDoesNotExist from django.db import models, transaction from .models_extensions import ListField from .settings import DATETIME_FORMAT from .codes_to_country imp...
41.432584
107
0.700475
f339a807e3723d74dbde7cf96ca0b74587cac911
285
py
Python
day01/ex04/test.py
d-r-e/Machine-Learning-Bootcamp
618cad97c04d15fec6e8a371c526ad8e08cae35a
[ "MIT" ]
null
null
null
day01/ex04/test.py
d-r-e/Machine-Learning-Bootcamp
618cad97c04d15fec6e8a371c526ad8e08cae35a
[ "MIT" ]
6
2021-05-25T08:51:39.000Z
2021-05-25T08:51:40.000Z
day01/ex04/test.py
d-r-e/Python-Bootcamp-42AI
618cad97c04d15fec6e8a371c526ad8e08cae35a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from eval import Evaluator if __name__ == '__main__': main()
23.75
51
0.642105
f33b3b4d842cf4b0a3b2d2d3201e9d9742676ddb
2,853
py
Python
tools/deploy/term_backend/nrf.py
giovannistanco/iot-trust-task-alloc
47e0c8186db32ecd563241d05ebdaaf23713a83f
[ "MIT" ]
null
null
null
tools/deploy/term_backend/nrf.py
giovannistanco/iot-trust-task-alloc
47e0c8186db32ecd563241d05ebdaaf23713a83f
[ "MIT" ]
null
null
null
tools/deploy/term_backend/nrf.py
giovannistanco/iot-trust-task-alloc
47e0c8186db32ecd563241d05ebdaaf23713a83f
[ "MIT" ]
null
null
null
import time import threading import sys import pynrfjprog.HighLevel import pynrfjprog.APIError DEFAULT_BLOCK_SIZE = 1024 SECONDS_PER_READ = 0.010 SECONDS_PER_WRITE = 0.010
32.05618
88
0.552401
f33b5064310e224ae603a224f1c08afbe8fe1fd6
3,068
py
Python
tests/test_elements.py
janosh/ml-matrics
93c3eeb74ad316e07628e3b2a462f693498e6a33
[ "MIT" ]
11
2021-07-12T02:12:02.000Z
2022-02-14T19:06:22.000Z
tests/test_elements.py
janosh/ml-matrics
93c3eeb74ad316e07628e3b2a462f693498e6a33
[ "MIT" ]
7
2021-10-14T10:00:01.000Z
2022-03-01T21:09:30.000Z
tests/test_elements.py
janosh/mlmatrics
93c3eeb74ad316e07628e3b2a462f693498e6a33
[ "MIT" ]
2
2021-10-01T10:00:50.000Z
2022-02-12T08:50:22.000Z
import pandas as pd import pytest from matplotlib.axes import Axes from plotly.graph_objects import Figure from ml_matrics import ( count_elements, hist_elemental_prevalence, ptable_heatmap, ptable_heatmap_plotly, ptable_heatmap_ratio, ) compositions_1 = pd.read_csv("data/mp-n_elements<2.csv").fo...
30.989899
87
0.754889
f33bb25fe61367d04cbf0cfd08ba517964a6833f
239
py
Python
app/wrapper/utils.py
Sirius-social/TMTM
5b4d426e358fc9fd6cff7ec84861c0388d3785ce
[ "Apache-2.0" ]
null
null
null
app/wrapper/utils.py
Sirius-social/TMTM
5b4d426e358fc9fd6cff7ec84861c0388d3785ce
[ "Apache-2.0" ]
null
null
null
app/wrapper/utils.py
Sirius-social/TMTM
5b4d426e358fc9fd6cff7ec84861c0388d3785ce
[ "Apache-2.0" ]
null
null
null
import hashlib from django.conf import settings
23.9
62
0.732218
f33c3ab0adbea1c960c88092e131df7a1b774872
7,103
py
Python
MUSim_make_figures.py
ericcfields/MUSim
3c7dcf71964fda67544800ed5f57e570fca2655d
[ "BSD-3-Clause" ]
null
null
null
MUSim_make_figures.py
ericcfields/MUSim
3c7dcf71964fda67544800ed5f57e570fca2655d
[ "BSD-3-Clause" ]
1
2019-08-31T21:47:26.000Z
2019-08-31T21:47:26.000Z
MUSim_make_figures.py
ericcfields/MUSim
3c7dcf71964fda67544800ed5f57e570fca2655d
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Make figures for MUSim paper AUTHOR: Eric Fields VERSION DATE: 26 June 2019 """ import os from os.path import join import numpy as np import pandas as pd from statsmodels.stats.proportion import proportion_confint import matplotlib.pyplot as plt def binom_ci_precision(pro...
38.188172
113
0.560749
f33cc042888520918896e0430cf4cdd6032e3352
3,364
py
Python
train.py
zeochoy/RNASeq_CollaborativeFilter
72066b29eaa4e5480d796ad57c249fd0058cc696
[ "MIT" ]
16
2019-04-04T22:31:12.000Z
2022-03-27T14:37:33.000Z
train.py
zeochoy/RNASeq_CollaborativeFilter
72066b29eaa4e5480d796ad57c249fd0058cc696
[ "MIT" ]
null
null
null
train.py
zeochoy/RNASeq_CollaborativeFilter
72066b29eaa4e5480d796ad57c249fd0058cc696
[ "MIT" ]
5
2018-11-06T09:11:13.000Z
2021-02-10T13:50:00.000Z
from __future__ import print_function from argparse import ArgumentParser from fastai.learner import * from fastai.column_data import * import numpy as np import pandas as pd if __name__ == '__main__': main()
35.041667
153
0.681332
f33d3bd029f3e85a817ccb3908d36449089ade03
691
py
Python
pyning/tail_recursion/fibonacci_test.py
rkoyanagui/pyning
3e8905e240d2554f217f168c48c9edeba8658dec
[ "Apache-2.0" ]
null
null
null
pyning/tail_recursion/fibonacci_test.py
rkoyanagui/pyning
3e8905e240d2554f217f168c48c9edeba8658dec
[ "Apache-2.0" ]
null
null
null
pyning/tail_recursion/fibonacci_test.py
rkoyanagui/pyning
3e8905e240d2554f217f168c48c9edeba8658dec
[ "Apache-2.0" ]
null
null
null
import unittest from pyning.tail_recursion.fibonacci import naive_fib from pyning.utils.testutils import BaseTest if __name__ == '__main__': unittest.main()
20.939394
53
0.646889
f33f047bd701a9285f93e58c03fcab26e4518b30
25
py
Python
test/json/des/__init__.py
vincent-musedev/libacvp
b11247d9d0b2fbd88954358272a43d35c059be7b
[ "BSD-2-Clause", "Apache-2.0" ]
45
2016-08-01T11:47:34.000Z
2022-02-22T21:27:27.000Z
test/json/des/__init__.py
vincent-musedev/libacvp
b11247d9d0b2fbd88954358272a43d35c059be7b
[ "BSD-2-Clause", "Apache-2.0" ]
221
2016-08-04T17:10:36.000Z
2022-01-21T19:53:36.000Z
test/json/des/__init__.py
vincent-musedev/libacvp
b11247d9d0b2fbd88954358272a43d35c059be7b
[ "BSD-2-Clause", "Apache-2.0" ]
94
2016-10-23T11:08:19.000Z
2022-01-21T11:50:16.000Z
from .des import main_des
25
25
0.84
f340cb596921e5050e8fd921f0453c58f3a6bf7a
607
py
Python
config/config_example1_singleton.py
orest-d/design-patterns-finance
5878912dfa5b34925b00c38da978e7b9e4735a14
[ "CC0-1.0" ]
null
null
null
config/config_example1_singleton.py
orest-d/design-patterns-finance
5878912dfa5b34925b00c38da978e7b9e4735a14
[ "CC0-1.0" ]
null
null
null
config/config_example1_singleton.py
orest-d/design-patterns-finance
5878912dfa5b34925b00c38da978e7b9e4735a14
[ "CC0-1.0" ]
null
null
null
s = Config() print (s) s = Config.get_instance() print (s, id(s)) s = Config.get_instance() print (s, id(s))
22.481481
92
0.594728
f3436f7a9fc684a11402ed73af31d4c502f05580
9,023
py
Python
pyworkforce/shifts/tests/test_shifts.py
rodrigo-arenas/pyworkforce
f3986ebbc3c48a8ae08dc04dfb939ac6a9516233
[ "MIT" ]
10
2021-03-20T02:58:52.000Z
2022-03-28T05:58:56.000Z
pyworkforce/shifts/tests/test_shifts.py
rodrigo-arenas/pyworkforce
f3986ebbc3c48a8ae08dc04dfb939ac6a9516233
[ "MIT" ]
3
2021-03-13T02:11:39.000Z
2021-04-08T01:27:36.000Z
pyworkforce/shifts/tests/test_shifts.py
rodrigo-arenas/pyworkforce
f3986ebbc3c48a8ae08dc04dfb939ac6a9516233
[ "MIT" ]
1
2022-01-04T11:06:47.000Z
2022-01-04T11:06:47.000Z
from pyworkforce.shifts import MinAbsDifference, MinRequiredResources import pytest
49.850829
109
0.477557
f34387e7183d544cbaf6418b121b6f24e3768081
2,925
py
Python
api.py
mr-mixas/Nested-Diff-RESTful
4407b0beaa7484d84323db659278a54d96efb696
[ "Apache-2.0" ]
null
null
null
api.py
mr-mixas/Nested-Diff-RESTful
4407b0beaa7484d84323db659278a54d96efb696
[ "Apache-2.0" ]
null
null
null
api.py
mr-mixas/Nested-Diff-RESTful
4407b0beaa7484d84323db659278a54d96efb696
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2021 Michael Samoglyadov # # 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 applic...
27.336449
78
0.649231
f34466e2623ecc3731ee9a82d535b049123cd382
4,253
py
Python
accelbyte_py_sdk/api/eventlog/__init__.py
AccelByte/accelbyte-python-sdk
dcd311fad111c59da828278975340fb92e0f26f7
[ "MIT" ]
null
null
null
accelbyte_py_sdk/api/eventlog/__init__.py
AccelByte/accelbyte-python-sdk
dcd311fad111c59da828278975340fb92e0f26f7
[ "MIT" ]
1
2021-10-13T03:46:58.000Z
2021-10-13T03:46:58.000Z
accelbyte_py_sdk/api/eventlog/__init__.py
AccelByte/accelbyte-python-sdk
dcd311fad111c59da828278975340fb92e0f26f7
[ "MIT" ]
null
null
null
# Copyright (c) 2021 AccelByte Inc. All Rights Reserved. # This is licensed software from AccelByte Inc, for limitations # and restrictions contact your company contract manager. # # Code generated. DO NOT EDIT! # template file: justice_py_sdk_codegen/__main__.py """Auto-generated package that contains models used b...
47.255556
88
0.894663
f344faaed6efdb55380a728e18b9884b9e5e2388
639
py
Python
cisco_umbrella_enforcement/setup.py
xhennessy-r7/insightconnect-plugins
59268051313d67735b5dd3a30222eccb92aca8e9
[ "MIT" ]
null
null
null
cisco_umbrella_enforcement/setup.py
xhennessy-r7/insightconnect-plugins
59268051313d67735b5dd3a30222eccb92aca8e9
[ "MIT" ]
null
null
null
cisco_umbrella_enforcement/setup.py
xhennessy-r7/insightconnect-plugins
59268051313d67735b5dd3a30222eccb92aca8e9
[ "MIT" ]
null
null
null
# GENERATED BY KOMAND SDK - DO NOT EDIT from setuptools import setup, find_packages setup(name='cisco_umbrella_enforcement-rapid7-plugin', version='1.0.0', description='Cisco Umbrella Enforcement give technology partners the ability to send security events from their platform/service/appliance within a cu...
42.6
220
0.733959
f34959f0169dcb486cb4bef10086593c4a815fed
628
py
Python
auth0login/migrations/0001_initial.py
nkawa/vimeo-coursetool
729215fe23b1bf05918a38d21e585a7b8862e75a
[ "Apache-2.0" ]
null
null
null
auth0login/migrations/0001_initial.py
nkawa/vimeo-coursetool
729215fe23b1bf05918a38d21e585a7b8862e75a
[ "Apache-2.0" ]
null
null
null
auth0login/migrations/0001_initial.py
nkawa/vimeo-coursetool
729215fe23b1bf05918a38d21e585a7b8862e75a
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.2.8 on 2021-10-10 14:32 from django.db import migrations, models
26.166667
117
0.58121
f34c2978a8d9484314e28561848de83a6cbbfe3f
7,241
py
Python
s3_test_model.py
BillChan226/In-Field-Crop-Disease-Regnition-via-Domain-Adaptation
4500e7149a51eab66778471750b84b09d415e578
[ "MIT" ]
1
2021-12-23T17:56:22.000Z
2021-12-23T17:56:22.000Z
s3_test_model.py
BillChan226/In-Field-Crop-Disease-Regnition-via-Domain-Adaptation
4500e7149a51eab66778471750b84b09d415e578
[ "MIT" ]
null
null
null
s3_test_model.py
BillChan226/In-Field-Crop-Disease-Regnition-via-Domain-Adaptation
4500e7149a51eab66778471750b84b09d415e578
[ "MIT" ]
null
null
null
# %% import matplotlib.pyplot as plt import numpy as np import sklearn import torch import torch.nn as nn import torch.optim as optim from torch.utils.data import DataLoader from model.inceptionv4 import inceptionv4 from model.mobilenetv2 import mobilenetv2 from model.resnet import resnet18 from model.shufflenetv2 imp...
31.898678
74
0.628228
f3509ac1a46b83c1515e0c359aea025cc6d03375
3,996
py
Python
menu.py
bkaganozkan/Difference
725a3e74dd620c2f646825aa60ac715833ec6857
[ "MIT" ]
null
null
null
menu.py
bkaganozkan/Difference
725a3e74dd620c2f646825aa60ac715833ec6857
[ "MIT" ]
null
null
null
menu.py
bkaganozkan/Difference
725a3e74dd620c2f646825aa60ac715833ec6857
[ "MIT" ]
null
null
null
import sys from PyQt5.QtGui import QPainter, QColor, QSyntaxHighlighter, QTextCharFormat from PyQt5.QtWidgets import QMainWindow, QApplication, QPushButton, QToolTip, QWidget, QLabel from PyQt5.QtWidgets import QFileDialog, QTextEdit from highlighter import Highlighter # SubWindow Class ...
26.463576
94
0.593093
f350b79d3a3986015ca3232bfcbeaee0d5fcd69f
6,501
py
Python
syft_proto/execution/v1/protocol_pb2.py
karlhigley/syft-proto
f7c926ce26f7551b7ab430fcab9c204819845396
[ "Apache-2.0" ]
null
null
null
syft_proto/execution/v1/protocol_pb2.py
karlhigley/syft-proto
f7c926ce26f7551b7ab430fcab9c204819845396
[ "Apache-2.0" ]
null
null
null
syft_proto/execution/v1/protocol_pb2.py
karlhigley/syft-proto
f7c926ce26f7551b7ab430fcab9c204819845396
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: syft_proto/execution/v1/protocol.proto from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import sym...
43.05298
727
0.76219
f351beee33294314503ee751e48a72f851b330e8
3,747
py
Python
ndn_python_repo/clients/delete.py
daniel-achee/ndn-python-repo-replication
87b5aadd79d7b06e8d87df08baf0affe0369e008
[ "Apache-2.0" ]
null
null
null
ndn_python_repo/clients/delete.py
daniel-achee/ndn-python-repo-replication
87b5aadd79d7b06e8d87df08baf0affe0369e008
[ "Apache-2.0" ]
null
null
null
ndn_python_repo/clients/delete.py
daniel-achee/ndn-python-repo-replication
87b5aadd79d7b06e8d87df08baf0affe0369e008
[ "Apache-2.0" ]
null
null
null
# ----------------------------------------------------------------------------- # NDN Repo delete client. # # @Author jonnykong@cs.ucla.edu # @Date 2019-09-26 # ----------------------------------------------------------------------------- import os import sys sys.path.insert(1, os.path.join(sys.path[0], '..')) impo...
39.861702
97
0.613558
f351c677fbd55b35040364f1c638b44dd7ef0b32
1,291
py
Python
watchmate_v2.0.1/app/models.py
rroy11705/Rest_API_With_Django
6a75db2e2c3913ec9afc1cbfef67a5c9fd655e60
[ "CNRI-Python" ]
null
null
null
watchmate_v2.0.1/app/models.py
rroy11705/Rest_API_With_Django
6a75db2e2c3913ec9afc1cbfef67a5c9fd655e60
[ "CNRI-Python" ]
null
null
null
watchmate_v2.0.1/app/models.py
rroy11705/Rest_API_With_Django
6a75db2e2c3913ec9afc1cbfef67a5c9fd655e60
[ "CNRI-Python" ]
null
null
null
from django.db import models from django.core.validators import MinValueValidator, MaxValueValidator from django.contrib.auth.models import User
33.973684
94
0.749032
f351d6d450e1d175828af0a3c364b01689cdf89d
1,998
py
Python
junk-test/junk-cable.py
SanjibSarkarU/EDRC
c2408fad8b007b4709ee91caf173f98612afadb1
[ "Apache-2.0" ]
null
null
null
junk-test/junk-cable.py
SanjibSarkarU/EDRC
c2408fad8b007b4709ee91caf173f98612afadb1
[ "Apache-2.0" ]
null
null
null
junk-test/junk-cable.py
SanjibSarkarU/EDRC
c2408fad8b007b4709ee91caf173f98612afadb1
[ "Apache-2.0" ]
null
null
null
import threading import datetime import serial import functions from queue import Queue rf_port = 'COM4' ser_rf = serial.Serial(rf_port, baudrate=9600, bytesize=8, parity='N', stopbits=1, timeout=1, xonxoff=0) iver = '3089' send_through_rf_every = 2 def read_rf(): """Read RF port""" ser_rf.reset_input_bu...
37
107
0.560561
f3524d7786f294f680962dddd5beb46c86fd8c5e
15,143
py
Python
experiments.py
joshsanz/learned_uncertainty
2103126105dbe44cfe75fc22291ba669c1a162f3
[ "MIT" ]
null
null
null
experiments.py
joshsanz/learned_uncertainty
2103126105dbe44cfe75fc22291ba669c1a162f3
[ "MIT" ]
null
null
null
experiments.py
joshsanz/learned_uncertainty
2103126105dbe44cfe75fc22291ba669c1a162f3
[ "MIT" ]
null
null
null
import matplotlib matplotlib.use('tkagg') from matplotlib import pyplot as plt plt.rc('figure', figsize=[10, 6]) import time from data_models import * from prediction_models import * from control_models import * if __name__ == "__main__": run_simple_gaussian_experiments(params={'gamma': 1, ...
44.801775
111
0.606947
f3539262cba46ff60c76205e56634f13ca25de23
190
py
Python
Python 201/enumeration.py
PacktPublishing/The-Complete-Python-Course-including-Django-Web-Framework
402b35d4739ed91e50d6c3380cab6f085a46c52b
[ "MIT" ]
3
2021-07-09T01:24:20.000Z
2022-03-24T06:30:19.000Z
Python 201/enumeration.py
PacktPublishing/The-Complete-Python-Course-including-Django-Web-Framework
402b35d4739ed91e50d6c3380cab6f085a46c52b
[ "MIT" ]
null
null
null
Python 201/enumeration.py
PacktPublishing/The-Complete-Python-Course-including-Django-Web-Framework
402b35d4739ed91e50d6c3380cab6f085a46c52b
[ "MIT" ]
3
2021-07-01T21:52:53.000Z
2021-09-02T08:54:23.000Z
animals = ["Gully", "Rhubarb", "Zephyr", "Henry"] for index, animal in enumerate(animals): # if index % 2 == 0: # continue # print(animal) print(f"{index+1}.\t{animal}")
27.142857
49
0.573684
f3581d9401d2f5345ec7ef679035930fcff3d232
2,548
py
Python
openpeerpower/components/rituals_perfume_genie/__init__.py
pcaston/core
e74d946cef7a9d4e232ae9e0ba150d18018cfe33
[ "Apache-2.0" ]
1
2021-07-08T20:09:55.000Z
2021-07-08T20:09:55.000Z
openpeerpower/components/rituals_perfume_genie/__init__.py
pcaston/core
e74d946cef7a9d4e232ae9e0ba150d18018cfe33
[ "Apache-2.0" ]
47
2021-02-21T23:43:07.000Z
2022-03-31T06:07:10.000Z
openpeerpower/components/rituals_perfume_genie/__init__.py
OpenPeerPower/core
f673dfac9f2d0c48fa30af37b0a99df9dd6640ee
[ "Apache-2.0" ]
null
null
null
"""The Rituals Perfume Genie integration.""" from datetime import timedelta import logging import aiohttp from pyrituals import Account, Diffuser from openpeerpower.config_entries import ConfigEntry from openpeerpower.core import OpenPeerPower from openpeerpower.exceptions import ConfigEntryNotReady from openpeerpowe...
31.85
90
0.724097
f3588062eb6aef89f6985ff4837093034c99ff99
156
py
Python
GwasJP/utils/__init__.py
2waybene/GwasJP
ddd54b276655baa79556b5f10d7959099a2e3a0b
[ "BSD-3-Clause" ]
null
null
null
GwasJP/utils/__init__.py
2waybene/GwasJP
ddd54b276655baa79556b5f10d7959099a2e3a0b
[ "BSD-3-Clause" ]
null
null
null
GwasJP/utils/__init__.py
2waybene/GwasJP
ddd54b276655baa79556b5f10d7959099a2e3a0b
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """This is utility folder that contains useful functions""" from . import statFittings # from .model_eval_cv_genotyped import *
17.333333
59
0.711538
f35a2617d8ce671493d1be29ba2708befda35ba4
4,578
py
Python
python/dnstest/netns.py
InfrastructureServices/dnssec-trigger-testing
76cd50736f324ecbd60d775e7054b1ca50e90dbd
[ "MIT" ]
1
2017-06-01T13:46:52.000Z
2017-06-01T13:46:52.000Z
python/dnstest/netns.py
InfrastructureServices/dnssec-trigger-testing
76cd50736f324ecbd60d775e7054b1ca50e90dbd
[ "MIT" ]
null
null
null
python/dnstest/netns.py
InfrastructureServices/dnssec-trigger-testing
76cd50736f324ecbd60d775e7054b1ca50e90dbd
[ "MIT" ]
null
null
null
# Network namespaces # # Currently best-effort functions meaning no clean up after error. import subprocess import re from dnstest.error import ConfigError def _run_ip_command(arguments): """ :param arguments: List of strings :return: """ ret = subprocess.run(["ip"] + arguments, stdout=subproce...
27.25
111
0.619921
f35a6ac3a0786559c425ea2a19ddcd546dac4596
14,868
py
Python
scripts/matrixlengthandisoformanalysis/raw_matrixlengthandisoformanalysis.py
serenolopezdarwin/apanalysis
1cb6569ed1643569e558db0a7dfe70b018c6242f
[ "MIT" ]
4
2021-07-21T01:07:06.000Z
2022-03-11T00:58:06.000Z
scripts/matrixlengthandisoformanalysis/raw_matrixlengthandisoformanalysis.py
serenolopezdarwin/apanalysis
1cb6569ed1643569e558db0a7dfe70b018c6242f
[ "MIT" ]
1
2021-09-09T09:19:01.000Z
2021-09-11T08:55:55.000Z
scripts/matrixlengthandisoformanalysis/raw_matrixlengthandisoformanalysis.py
serenolopezdarwin/apanalysis
1cb6569ed1643569e558db0a7dfe70b018c6242f
[ "MIT" ]
null
null
null
import csv import gzip import numpy as np import pickle as pkl import sys INPUT_FILE_PATH = "" OVERLAP_PATH = "/net/shendure/vol1/home/sereno/projects/cell_clustering/nobackup/newannotations/data/overlapfiles/" PAS_DATASET = "" CELL_DATA_DICT = {} GENE_DATA_DICT = {} REFERENCE_PATH = "" ''' This script is a subscri...
44.38209
120
0.62046
f35ab5301440aa325869937b34d4d4a986a14ae0
1,367
py
Python
016 3Sum Closest.py
ChiFire/legend_LeetCode
93fe97fef7e929fdbdc25fbb53955d44e14ecff8
[ "MIT" ]
872
2015-06-15T12:02:41.000Z
2022-03-30T08:44:35.000Z
016 3Sum Closest.py
ChiFire/legend_LeetCode
93fe97fef7e929fdbdc25fbb53955d44e14ecff8
[ "MIT" ]
8
2015-06-21T15:11:59.000Z
2022-02-01T11:22:34.000Z
016 3Sum Closest.py
ChiFire/legend_LeetCode
93fe97fef7e929fdbdc25fbb53955d44e14ecff8
[ "MIT" ]
328
2015-06-28T03:10:35.000Z
2022-03-29T11:05:28.000Z
""" Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the three integers. You may assume that each input would have exactly one solution. For example, given array S = {-1 2 1 -4}, and target = 1. The sum that is closest to ...
31.790698
120
0.512802
f35b1b6906f039410938832141f022b5a187af5f
4,253
py
Python
SENN/models.py
EdwardGuen/SENN-revisited
41145a89214c6d978eb7c83e74c0f43007e0be4d
[ "MIT" ]
null
null
null
SENN/models.py
EdwardGuen/SENN-revisited
41145a89214c6d978eb7c83e74c0f43007e0be4d
[ "MIT" ]
null
null
null
SENN/models.py
EdwardGuen/SENN-revisited
41145a89214c6d978eb7c83e74c0f43007e0be4d
[ "MIT" ]
null
null
null
# torch import torch.nn as nn
33.753968
96
0.648013
f35b95ac2f68a6d14b293d5a638873dedb57f7b1
1,827
py
Python
src/pets/crud.py
nadundesilva/sample-open-telemetry
6ca0d6e16ed3968935ab6994cc9f74abf8886140
[ "Apache-2.0" ]
2
2022-02-01T01:09:27.000Z
2022-03-07T17:54:17.000Z
src/pets/crud.py
nadundesilva/samples-pet-store
6ca0d6e16ed3968935ab6994cc9f74abf8886140
[ "Apache-2.0" ]
null
null
null
src/pets/crud.py
nadundesilva/samples-pet-store
6ca0d6e16ed3968935ab6994cc9f74abf8886140
[ "Apache-2.0" ]
null
null
null
"""Copyright (c) 2021, Nadun De Silva. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed...
31.5
82
0.70936
f35be7ca6e9a9da74f2d705603c106d9b9879d68
1,740
py
Python
problems/1232.py
mengshun/Leetcode
8bb676f2fff093e1417a4bed13d9ad708149be78
[ "MIT" ]
null
null
null
problems/1232.py
mengshun/Leetcode
8bb676f2fff093e1417a4bed13d9ad708149be78
[ "MIT" ]
null
null
null
problems/1232.py
mengshun/Leetcode
8bb676f2fff093e1417a4bed13d9ad708149be78
[ "MIT" ]
null
null
null
""" 1232. XY coordinates coordinates[i] = [x, y] x y true false """ print(checkStraightLine([[1,2],[2,3],[3,4],[4,5],[5,6],[6,7]])) #true print(checkStraightLine2([[1,2],[2,3],[3,4],[4,5],[5,6],[6,7]])) #true print(checkStraightLine([[1,1],[2,2],[3,4],[4,5],[5,6],[7,7]])) #false print(checkStraightLine2([[1,...
28.52459
98
0.562069
f35c705d9c5e14b5fe17b4f0cd432b05290071c9
6,651
py
Python
test/test_utils.py
scanon/execution_engine2
ce98b69f44fbd5353cf92cdc413080c8262a188e
[ "MIT" ]
null
null
null
test/test_utils.py
scanon/execution_engine2
ce98b69f44fbd5353cf92cdc413080c8262a188e
[ "MIT" ]
null
null
null
test/test_utils.py
scanon/execution_engine2
ce98b69f44fbd5353cf92cdc413080c8262a188e
[ "MIT" ]
null
null
null
from configparser import ConfigParser import os from dotenv import load_dotenv import pathlib from shutil import copyfile from execution_engine2.db.models.models import Job, JobInput, Meta from dateutil import parser as dateparser import requests import json from datetime import datetime from execution_engine2.exceptio...
30.791667
141
0.62562
f35d58fa5075838415c7a9cbb571b937830b43fb
999
py
Python
tests/servers/test_tcp.py
luciferliu/xTools
324ef1388be13ece0d952e3929eb685212d573f1
[ "Apache-2.0" ]
2
2020-09-02T13:46:06.000Z
2020-10-11T16:11:02.000Z
tests/servers/test_tcp.py
luciferliu/xTools
324ef1388be13ece0d952e3929eb685212d573f1
[ "Apache-2.0" ]
null
null
null
tests/servers/test_tcp.py
luciferliu/xTools
324ef1388be13ece0d952e3929eb685212d573f1
[ "Apache-2.0" ]
4
2018-10-15T07:08:34.000Z
2019-11-26T01:52:47.000Z
# -*- coding: utf-8 -*- import asyncio import socket from xTool.servers.tcp import TCPServer
27.75
67
0.611612
f35da1b1d84b79f3638ec8c0791f85ce28bc153d
7,514
py
Python
backend/benefit/applications/tests/factories.py
City-of-Helsinki/kesaseteli
964f801c2dba72c4105b6e436b12b821b199d6d2
[ "MIT" ]
2
2021-05-10T09:28:35.000Z
2021-05-17T12:15:34.000Z
backend/benefit/applications/tests/factories.py
City-of-Helsinki/yjdh
1c07576b456d2be9c3171363450ed46de2c1bbcb
[ "MIT" ]
931
2021-05-21T15:24:35.000Z
2022-03-31T20:07:40.000Z
backend/benefit/applications/tests/factories.py
City-of-Helsinki/yjdh
1c07576b456d2be9c3171363450ed46de2c1bbcb
[ "MIT" ]
6
2021-07-06T11:07:02.000Z
2022-02-07T12:42:21.000Z
import decimal import itertools import random from datetime import date, timedelta import factory from applications.enums import ApplicationStatus, ApplicationStep, BenefitType from applications.models import ( AhjoDecision, Application, APPLICATION_LANGUAGE_CHOICES, ApplicationBasis, ApplicationBa...
36.833333
86
0.729838
f35db14649e34fcd913939f8f437aec72367b212
344
py
Python
Python/kata/bankocr.py
caichinger/BankOCR-Outside-in-Kata
0296cc64d2559464300d2eb996bae41a5e13e26b
[ "BSD-3-Clause" ]
2
2021-04-26T19:21:48.000Z
2021-06-05T15:48:08.000Z
Python/kata/bankocr.py
caichinger/BankOCR-Outside-in-Kata
0296cc64d2559464300d2eb996bae41a5e13e26b
[ "BSD-3-Clause" ]
1
2021-01-21T19:50:21.000Z
2021-01-21T21:01:07.000Z
Python/kata/bankocr.py
caichinger/BankOCR-Outside-in-Kata
0296cc64d2559464300d2eb996bae41a5e13e26b
[ "BSD-3-Clause" ]
3
2020-09-19T07:42:26.000Z
2021-01-20T18:08:28.000Z
# coding=utf-8 from kata.accountnumber import AccountNumber
24.571429
74
0.665698
f35e7aeafd5d8413da522d85881d20ec08c21815
3,419
py
Python
createData.py
msiampou/distributed-fault-tolerant-kv-store
26dd701ef133c8f463b364e085773b551dfb98ce
[ "MIT" ]
7
2021-04-17T18:47:36.000Z
2022-03-24T13:09:21.000Z
createData.py
msiampou/efficient-kv-store
26dd701ef133c8f463b364e085773b551dfb98ce
[ "MIT" ]
null
null
null
createData.py
msiampou/efficient-kv-store
26dd701ef133c8f463b364e085773b551dfb98ce
[ "MIT" ]
null
null
null
#!/usr/bin/python import sys, getopt import random import string import sys import math if __name__ == "__main__": keyfile, numlines, maxlevel, maxlength, maxkeys = parse_args(sys.argv[1:]) fields = parse_file(keyfile) create_outfile(fields, numlines, maxlevel, maxlength, maxkeys)
31.366972
114
0.595788
f35f43c00e526592a35ccf5d1df69d3b25cc9782
492
py
Python
homework(december)/decemberAssigment1/random1.py
tkanicka/python_learning
67fc0e8ca6333571f8b0d30f835b759d670a8643
[ "Unlicense" ]
null
null
null
homework(december)/decemberAssigment1/random1.py
tkanicka/python_learning
67fc0e8ca6333571f8b0d30f835b759d670a8643
[ "Unlicense" ]
null
null
null
homework(december)/decemberAssigment1/random1.py
tkanicka/python_learning
67fc0e8ca6333571f8b0d30f835b759d670a8643
[ "Unlicense" ]
null
null
null
import random player1 = Play("Andula") player1.print_name() player1.RPC(3) player1.TossDie(2)
15.375
51
0.565041
f3622570165ab8b3547a7e98a1dead76e8814089
1,855
py
Python
armory/baseline_models/pytorch/resnet50.py
paperwhite/armory
3868cf5dd86578b58105f5901139a2f0b939ab15
[ "MIT" ]
null
null
null
armory/baseline_models/pytorch/resnet50.py
paperwhite/armory
3868cf5dd86578b58105f5901139a2f0b939ab15
[ "MIT" ]
null
null
null
armory/baseline_models/pytorch/resnet50.py
paperwhite/armory
3868cf5dd86578b58105f5901139a2f0b939ab15
[ "MIT" ]
null
null
null
""" ResNet50 CNN model for 244x244x3 image classification """ import logging from art.classifiers import PyTorchClassifier import numpy as np import torch from torchvision import models logger = logging.getLogger(__name__) DEVICE = torch.device("cuda" if torch.cuda.is_available() else "cpu") IMAGENET_MEANS = [0.48...
27.279412
73
0.596226
f363d12a0b564c0f2c4645099bd660201af5ca16
4,428
py
Python
clac_line_index.py
shichenhui/Data-mining-techniques-on-astronomical-spectra-data.-I-Clustering-analysis
fd6a7c27cfe2110ee1a2ffc31ddca26340d2cabc
[ "Apache-2.0" ]
null
null
null
clac_line_index.py
shichenhui/Data-mining-techniques-on-astronomical-spectra-data.-I-Clustering-analysis
fd6a7c27cfe2110ee1a2ffc31ddca26340d2cabc
[ "Apache-2.0" ]
null
null
null
clac_line_index.py
shichenhui/Data-mining-techniques-on-astronomical-spectra-data.-I-Clustering-analysis
fd6a7c27cfe2110ee1a2ffc31ddca26340d2cabc
[ "Apache-2.0" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt if __name__ == '__main__': from astropy.io import fits data = fits.open(r'C:\Users\panda\Desktop\spec-56591-EG012606S021203F01_sp08-138.fits') a = data[0] wave = a.data[2] # 3 flux = a.data[0] # 1 model = LineIndex() line_...
45.649485
116
0.497967
f3649feeb844c0af49496f4dfa7da1a11ffe1955
2,961
py
Python
spire/github/upgrades/broodauth.py
bugout-dev/spire
def55cb64fbd306ddde47067d8573cf4b234115c
[ "Apache-2.0" ]
1
2021-12-01T14:18:12.000Z
2021-12-01T14:18:12.000Z
spire/github/upgrades/broodauth.py
bugout-dev/spire
def55cb64fbd306ddde47067d8573cf4b234115c
[ "Apache-2.0" ]
13
2021-07-13T19:19:22.000Z
2022-01-14T16:33:42.000Z
spire/github/upgrades/broodauth.py
bugout-dev/spire
def55cb64fbd306ddde47067d8573cf4b234115c
[ "Apache-2.0" ]
null
null
null
""" According with BUG-132 was added table GitHubBugoutUser. It requires additional script to generate BugoutUser for existing installations after database migration. """ import argparse import uuid from ..models import GitHubOAuthEvent, GitHubBugoutUser from ...broodusers import bugout_api from ...db import yield_con...
36.109756
87
0.604863
f364a3b71f51ba8bce139138673bbb2d0659faf9
9,500
py
Python
preprocess_list_tokenized.py
c-col/Transformer
c7b6ae2aed877ba32dc44544429051181fc4da71
[ "Apache-2.0" ]
null
null
null
preprocess_list_tokenized.py
c-col/Transformer
c7b6ae2aed877ba32dc44544429051181fc4da71
[ "Apache-2.0" ]
null
null
null
preprocess_list_tokenized.py
c-col/Transformer
c7b6ae2aed877ba32dc44544429051181fc4da71
[ "Apache-2.0" ]
null
null
null
import numpy as np import json import re from Utils import * np.random.seed(4) with open('list_task_v2.json', 'r', encoding="utf-8") as input_file: data = json.loads(input_file.read()) data = remove_duplicates(data) n = len(data) np.random.shuffle(data) vocab = [] for e in data: ...
34.926471
117
0.533895
f364c17a276ab73e615a247493444fe756fae197
2,650
py
Python
galaxy-shooter/src/enemy.py
akshayreddy/games
c7256f9e7da71eee96236ccef1ff72248adff8c0
[ "MIT" ]
null
null
null
galaxy-shooter/src/enemy.py
akshayreddy/games
c7256f9e7da71eee96236ccef1ff72248adff8c0
[ "MIT" ]
null
null
null
galaxy-shooter/src/enemy.py
akshayreddy/games
c7256f9e7da71eee96236ccef1ff72248adff8c0
[ "MIT" ]
null
null
null
import pygame, random from datetime import datetime from bullet import EnemyBullet, ChasingBullet
36.30137
93
0.622642
f364c54a60ecdfe331ea87a6ae8d2da27d7ac741
1,397
py
Python
python/ign_topic_info.py
srmainwaring/python-ignition
720f2e6d8e675ed7e10488caf11ef7e93e519d58
[ "Apache-2.0" ]
3
2022-01-05T19:25:42.000Z
2022-02-28T02:51:28.000Z
python/ign_topic_info.py
srmainwaring/python-ignition
720f2e6d8e675ed7e10488caf11ef7e93e519d58
[ "Apache-2.0" ]
4
2022-01-10T16:54:30.000Z
2022-01-11T15:38:41.000Z
python/ign_topic_info.py
srmainwaring/python-ignition
720f2e6d8e675ed7e10488caf11ef7e93e519d58
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright (C) 2022 Rhys Mainwaring # # 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 applicabl...
26.865385
75
0.703651
f3653c62ef4fa176cfb63a279e20fab0dda730c3
188
py
Python
tests/spec/cms/blogs/test_blogs.py
fakepop/hubspot-api-python
f04103a09f93f5c26c99991b25fa76801074f3d3
[ "Apache-2.0" ]
117
2020-04-06T08:22:53.000Z
2022-03-18T03:41:29.000Z
tests/spec/cms/blogs/test_blogs.py
fakepop/hubspot-api-python
f04103a09f93f5c26c99991b25fa76801074f3d3
[ "Apache-2.0" ]
62
2020-04-06T16:21:06.000Z
2022-03-17T16:50:44.000Z
tests/spec/cms/blogs/test_blogs.py
fakepop/hubspot-api-python
f04103a09f93f5c26c99991b25fa76801074f3d3
[ "Apache-2.0" ]
45
2020-04-06T16:13:52.000Z
2022-03-30T21:33:17.000Z
from hubspot import HubSpot from hubspot.discovery.cms.blogs.discovery import Discovery
23.5
59
0.781915
f366bab7949be48bac13c8ce7427325ee3cbe177
896
py
Python
tests/clvm/benchmark_costs.py
Flax-Network/flax-light-wallet
1745850a28a47bbbc4b5f3d460f35b34b4ed4f25
[ "Apache-2.0" ]
1
2021-12-02T14:38:11.000Z
2021-12-02T14:38:11.000Z
tests/clvm/benchmark_costs.py
Flax-Network/flax-light-wallet
1745850a28a47bbbc4b5f3d460f35b34b4ed4f25
[ "Apache-2.0" ]
null
null
null
tests/clvm/benchmark_costs.py
Flax-Network/flax-light-wallet
1745850a28a47bbbc4b5f3d460f35b34b4ed4f25
[ "Apache-2.0" ]
6
2021-11-21T00:38:27.000Z
2021-12-03T01:25:19.000Z
from flaxlight.types.blockchain_format.program import INFINITE_COST from flaxlight.types.spend_bundle import SpendBundle from flaxlight.types.generator_types import BlockGenerator from flaxlight.consensus.cost_calculator import calculate_cost_of_program, NPCResult from flaxlight.consensus.default_constants import DEFAU...
52.705882
103
0.856027
f36a93259aea79b2a63bd7b922441b69612ed4f5
1,634
py
Python
Validation/Performance/python/SaveRandomSeedsDigi.py
NTrevisani/cmssw
a212a27526f34eb9507cf8b875c93896e6544781
[ "Apache-2.0" ]
3
2018-08-24T19:10:26.000Z
2019-02-19T11:45:32.000Z
Validation/Performance/python/SaveRandomSeedsDigi.py
NTrevisani/cmssw
a212a27526f34eb9507cf8b875c93896e6544781
[ "Apache-2.0" ]
7
2016-07-17T02:34:54.000Z
2019-08-13T07:58:37.000Z
Validation/Performance/python/SaveRandomSeedsDigi.py
NTrevisani/cmssw
a212a27526f34eb9507cf8b875c93896e6544781
[ "Apache-2.0" ]
5
2018-08-21T16:37:52.000Z
2020-01-09T13:33:17.000Z
#G.Benelli Feb 7 2008 #This fragment is used to have the random generator seeds saved to test #simulation reproducibility. Anothe fragment then allows to run on the #root output of cmsDriver.py to test reproducibility. import FWCore.ParameterSet.Config as cms
41.897436
95
0.707466
f36cc628b45610f2a9c084e711e9332703ff2399
1,219
py
Python
chapter_6/ex_6-4.py
akshaymoharir/PythonCrashCourse
742b9841cff61d36567e8706efc69c5f5d5435ff
[ "MIT" ]
null
null
null
chapter_6/ex_6-4.py
akshaymoharir/PythonCrashCourse
742b9841cff61d36567e8706efc69c5f5d5435ff
[ "MIT" ]
null
null
null
chapter_6/ex_6-4.py
akshaymoharir/PythonCrashCourse
742b9841cff61d36567e8706efc69c5f5d5435ff
[ "MIT" ]
null
null
null
## Python Crash Course # Exercise 6.4: Glossary#2: # Now that you know how to loop through a dictionary, clean up the code from Exercise 6-3 (page 102) # by replacing your series of print statements with a loop that runs through the dictionarys keys and values. # When...
34.828571
129
0.624282
f36e7b68c4de6666f2c352b4c512f437cc2a7906
3,592
py
Python
test/ai/test_basic_ai.py
PMatthaei/multiagent-particle-envs
1169b1f88fbcd0c5b43f1be9c63e0cb8916feb6d
[ "MIT" ]
null
null
null
test/ai/test_basic_ai.py
PMatthaei/multiagent-particle-envs
1169b1f88fbcd0c5b43f1be9c63e0cb8916feb6d
[ "MIT" ]
2
2021-08-29T19:04:50.000Z
2021-08-29T19:21:32.000Z
test/ai/test_basic_ai.py
PMatthaei/ma-env
1169b1f88fbcd0c5b43f1be9c63e0cb8916feb6d
[ "MIT" ]
null
null
null
import unittest import numpy as np from maenv.ai.basic_ai import BasicScriptedAI from test.mock import mock_agent, mock_team, mock_world AGENTS_N = 4
49.888889
122
0.581292
f36fbaa6774f5a01f0c03dbada430c9534cde159
914
py
Python
src/m3_extra.py
wangj19/99-CapstoneProject-201920
30198ec8b8748abbcdc507d85ad38a34fd61de01
[ "MIT" ]
null
null
null
src/m3_extra.py
wangj19/99-CapstoneProject-201920
30198ec8b8748abbcdc507d85ad38a34fd61de01
[ "MIT" ]
null
null
null
src/m3_extra.py
wangj19/99-CapstoneProject-201920
30198ec8b8748abbcdc507d85ad38a34fd61de01
[ "MIT" ]
null
null
null
import rosebot import time
26.114286
83
0.677243
f370a807612b9899c6544506def0d96f26936479
358
py
Python
app/requests.py
Mash14/personal-blog
4117097b98ffab7a0dfc43261162da88cde863c2
[ "MIT" ]
null
null
null
app/requests.py
Mash14/personal-blog
4117097b98ffab7a0dfc43261162da88cde863c2
[ "MIT" ]
null
null
null
app/requests.py
Mash14/personal-blog
4117097b98ffab7a0dfc43261162da88cde863c2
[ "MIT" ]
null
null
null
import urllib.request,json from .models import Quote
29.833333
71
0.73743
f373d9e39b7c68b7583c76a11336122d800a3114
2,142
py
Python
misc/phyler_classify.py
hurwitzlab/LSA-pipeline
0515fe325ccf49c7914ea8aa1404cdee6dfe2648
[ "MIT" ]
39
2015-09-20T06:33:54.000Z
2021-12-21T06:59:53.000Z
misc/phyler_classify.py
hurwitzlab/LSA-pipeline
0515fe325ccf49c7914ea8aa1404cdee6dfe2648
[ "MIT" ]
23
2015-09-23T12:00:43.000Z
2020-05-27T15:42:11.000Z
misc/phyler_classify.py
hurwitzlab/LSA-pipeline
0515fe325ccf49c7914ea8aa1404cdee6dfe2648
[ "MIT" ]
19
2015-10-16T21:40:12.000Z
2020-11-10T07:58:00.000Z
#!/usr/bin/env python import sys, getopt import glob,os # sample the first 10**7 reads help_message = 'usage example: python read_phyler.py -r 1 -i /project/home/original_reads/ -o /project/home/phyler/' if __name__ == "__main__": try: opts, args = getopt.getopt(sys.argv[1:],'hr:i:o:',["inputdir="]) except: pr...
34
304
0.653595
f373f170f7b6ef88a0c7f2d402d77c96448b85ae
2,733
py
Python
Labs/PolicyFunctionIteration/policy_solutions.py
jessicaleete/numerical_computing
cc71f51f35ca74d00e617af3d1a0223e19fb9a68
[ "CC-BY-3.0" ]
10
2016-10-18T19:54:25.000Z
2021-10-09T20:12:38.000Z
Labs/PolicyFunctionIteration/policy_solutions.py
jessicaleete/numerical_computing
cc71f51f35ca74d00e617af3d1a0223e19fb9a68
[ "CC-BY-3.0" ]
null
null
null
Labs/PolicyFunctionIteration/policy_solutions.py
jessicaleete/numerical_computing
cc71f51f35ca74d00e617af3d1a0223e19fb9a68
[ "CC-BY-3.0" ]
2
2017-05-14T16:07:59.000Z
2020-06-20T09:05:06.000Z
#Solutions to Policy Function Iteration Lab import numpy as np import scipy as sp from scipy import sparse from scipy.sparse import linalg import math from matplotlib import pyplot as plt from scipy import linalg as la def policyIter(beta, N, Wmax=1.): """ Solve the infinite horizon cake eating problem u...
33.740741
92
0.628979
f3747ad21d103d033483025376c35ddb48b4a17b
8,228
py
Python
official/nlp/gpt/src/gpt.py
mindspore-ai/models
9127b128e2961fd698977e918861dadfad00a44c
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/nlp/gpt/src/gpt.py
mindspore-ai/models
9127b128e2961fd698977e918861dadfad00a44c
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/nlp/gpt/src/gpt.py
mindspore-ai/models
9127b128e2961fd698977e918861dadfad00a44c
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2020 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
36.087719
116
0.658605
f374cca632fe9ea398a4cffa7dc83253ebb4f185
9,481
py
Python
aws/sagemaker/kmeans/daal_kmeans_docker/container/kmeans/Kmeans.py
ravi9/csp
42cc55bf36841514341fc45f17363f287bc70114
[ "MIT" ]
null
null
null
aws/sagemaker/kmeans/daal_kmeans_docker/container/kmeans/Kmeans.py
ravi9/csp
42cc55bf36841514341fc45f17363f287bc70114
[ "MIT" ]
null
null
null
aws/sagemaker/kmeans/daal_kmeans_docker/container/kmeans/Kmeans.py
ravi9/csp
42cc55bf36841514341fc45f17363f287bc70114
[ "MIT" ]
1
2018-11-06T06:16:35.000Z
2018-11-06T06:16:35.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- import daal.algorithms.kmeans.init from daal.algorithms import kmeans from daal.data_management import InputDataArchive, OutputDataArchive from daal.data_management import Compressor_Zlib, Decompressor_Zlib, \ level9, DecompressionStream, CompressionStream, HomogenNumericT...
43.490826
1,404
0.629259
f37556e45733e4284a2c266789d0279aa779aaab
1,037
py
Python
packages/syft/src/syft/proto/lib/python/bytes_pb2.py
jackbandy/PySyft
0e20e90abab6a7a7ca672d6eedfa1e7f83c4981b
[ "Apache-2.0" ]
null
null
null
packages/syft/src/syft/proto/lib/python/bytes_pb2.py
jackbandy/PySyft
0e20e90abab6a7a7ca672d6eedfa1e7f83c4981b
[ "Apache-2.0" ]
null
null
null
packages/syft/src/syft/proto/lib/python/bytes_pb2.py
jackbandy/PySyft
0e20e90abab6a7a7ca672d6eedfa1e7f83c4981b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: proto/lib/python/bytes.proto """Generated protocol buffer code.""" # third party from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import ...
34.566667
139
0.788814
f3759665189eabf01b8c5c36782598bf681a6b5f
6,092
py
Python
pyscripts/excel2md.py
heyrict/custom_modules
37860a3f703b6cc731b719a5c9a1bee51184e12e
[ "Apache-2.0" ]
null
null
null
pyscripts/excel2md.py
heyrict/custom_modules
37860a3f703b6cc731b719a5c9a1bee51184e12e
[ "Apache-2.0" ]
null
null
null
pyscripts/excel2md.py
heyrict/custom_modules
37860a3f703b6cc731b719a5c9a1bee51184e12e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import optparse,sys,os from txtform import df_format_print, df_format_read import pandas as pd, numpy as np import pyperclip if __name__=='__main__': main()
40.885906
179
0.603414
f377429eaab6daa3a95ec3785362c510027b3b86
12,482
py
Python
spexxy/weight/fromgridnearest.py
thusser/spexxy
14a8d121076b9e043bdf2e27222a65088f771ff9
[ "MIT" ]
4
2019-05-13T21:36:31.000Z
2021-09-06T01:56:36.000Z
spexxy/weight/fromgridnearest.py
thusser/spexxy
14a8d121076b9e043bdf2e27222a65088f771ff9
[ "MIT" ]
2
2020-02-12T14:36:39.000Z
2020-07-14T11:43:10.000Z
spexxy/weight/fromgridnearest.py
thusser/spexxy
14a8d121076b9e043bdf2e27222a65088f771ff9
[ "MIT" ]
1
2019-11-08T09:26:23.000Z
2019-11-08T09:26:23.000Z
import os import numpy as np import pandas as pd from typing import List, Union from .weight import Weight from ..data import Spectrum __all__ = ['WeightFromGridNearest']
38.884735
125
0.557763
f377fe060e7eef928a73ab32445d3e0a5afd5056
4,096
py
Python
testproject/testapp/tests/test_password_reset.py
d1opensource/djoser
ebdd2f25f84df22891372afb53cc6b956917d1ba
[ "MIT" ]
null
null
null
testproject/testapp/tests/test_password_reset.py
d1opensource/djoser
ebdd2f25f84df22891372afb53cc6b956917d1ba
[ "MIT" ]
null
null
null
testproject/testapp/tests/test_password_reset.py
d1opensource/djoser
ebdd2f25f84df22891372afb53cc6b956917d1ba
[ "MIT" ]
null
null
null
from django.conf import settings from django.contrib.sites.shortcuts import get_current_site from django.core import mail from django.test.utils import override_settings from djet import assertions, restframework from rest_framework import status import djoser.views from djoser.compat import get_user_email from djoser...
36.247788
91
0.7146
f3792dc86555ef5c680134d2150cbf714d907165
27,319
py
Python
sequenceur.py
lperezfr/turbot-toulouse-robot-race
52043120db44cf3c901429d1990c4c96c9c2b5f6
[ "Apache-2.0" ]
1
2017-10-06T22:13:27.000Z
2017-10-06T22:13:27.000Z
sequenceur.py
lperezfr/turbot-toulouse-robot-race
52043120db44cf3c901429d1990c4c96c9c2b5f6
[ "Apache-2.0" ]
null
null
null
sequenceur.py
lperezfr/turbot-toulouse-robot-race
52043120db44cf3c901429d1990c4c96c9c2b5f6
[ "Apache-2.0" ]
null
null
null
# encoding:utf-8 # Librairies tierces import time import os # Mes classes from voiture import Voiture from asservissement import Asservissement from arduino import Arduino
39.535456
169
0.538856
f37a1381f4d4b5acbdd70be0b55f313823fcb65a
15,325
py
Python
ddtrace/internal/wrapping.py
ysk24ok/dd-trace-py
9d76e3b27c0e90a45721988f2008362683da8bb0
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
ddtrace/internal/wrapping.py
ysk24ok/dd-trace-py
9d76e3b27c0e90a45721988f2008362683da8bb0
[ "Apache-2.0", "BSD-3-Clause" ]
3
2022-02-16T09:35:37.000Z
2022-03-04T16:48:45.000Z
ddtrace/internal/wrapping.py
goodspark/dd-trace-py
e2089c7b348e9d1a70e01f96927d85a643d6ae56
[ "Apache-2.0", "BSD-3-Clause" ]
1
2022-02-11T16:34:22.000Z
2022-02-11T16:34:22.000Z
import sys from types import FunctionType from typing import Any from typing import Callable from typing import Dict from typing import Optional from typing import Tuple from typing import cast from six import PY3 try: from typing import Protocol except ImportError: from typing_extensions import Protocol # ...
38.797468
111
0.578336
f37b98a0e9ce5d992118a7edfb6f656544e568ae
1,354
py
Python
setup.py
davidfraser/WSGIUtils
5520779cae5a1032b24214c871860ca8cb4a30ed
[ "BSD-3-Clause" ]
null
null
null
setup.py
davidfraser/WSGIUtils
5520779cae5a1032b24214c871860ca8cb4a30ed
[ "BSD-3-Clause" ]
1
2018-08-14T08:48:03.000Z
2018-08-14T08:48:03.000Z
setup.py
davidfraser/WSGIUtils
5520779cae5a1032b24214c871860ca8cb4a30ed
[ "BSD-3-Clause" ]
2
2019-02-15T19:34:03.000Z
2019-06-29T18:24:13.000Z
#!/usr/bin/env python import sys, os sys.path.insert(0, os.path.join(os.getcwd(),'lib')) try: from setuptools import setup except ImportError: from distutils.core import setup import wsgiutils try: os.remove ('MANIFEST') except: pass with open(os.path.join(os.getcwd(), 'README.txt'), 'r') as _readme: long_des...
27.08
95
0.702363
f37bd3c163dbc0eb3b950a6eec2cd48b6d1e5e78
410
py
Python
doc/doc_updates.py
briandorsey/partisci
cb3c838e95edaf55a182c78007d993e3a995f599
[ "BSD-2-Clause" ]
5
2015-01-13T21:01:13.000Z
2022-02-11T17:26:24.000Z
doc/doc_updates.py
briandorsey/partisci
cb3c838e95edaf55a182c78007d993e3a995f599
[ "BSD-2-Clause" ]
null
null
null
doc/doc_updates.py
briandorsey/partisci
cb3c838e95edaf55a182c78007d993e3a995f599
[ "BSD-2-Clause" ]
null
null
null
import os import sys sys.path.insert(0, os.path.join(os.path.dirname(__file__), "../clients/python")) import pypartisci server, port = "localhost", 7777 apps = ["Demo App A", "Demo App B"] hosts = ["host1.example.com", "host2.example.com"] versions = ["1.0", "2.0"] for app in apps: for i, hos...
20.5
80
0.639024
f37e6ce0df9b7a208b203c4bc70c01ede05e68fc
21,140
py
Python
axisutilities/axisremapper.py
coderepocenter/AxisUtilities
7cf93a88ba4bb073466c2a54a97beccd9e78d2c3
[ "Apache-2.0" ]
null
null
null
axisutilities/axisremapper.py
coderepocenter/AxisUtilities
7cf93a88ba4bb073466c2a54a97beccd9e78d2c3
[ "Apache-2.0" ]
11
2019-11-15T19:18:48.000Z
2019-12-17T18:56:24.000Z
axisutilities/axisremapper.py
coderepocenter/AxisUtilities
7cf93a88ba4bb073466c2a54a97beccd9e78d2c3
[ "Apache-2.0" ]
1
2019-11-15T19:14:40.000Z
2019-11-15T19:14:40.000Z
from __future__ import annotations from typing import Iterable, Callable import numpy as np import dask.array as da from numba import prange from scipy.sparse import csr_matrix from axisutilities import Axis def apply_function(self, from_data: Iterable, func2apply: Callable, dimension=0): if isinstan...
39.514019
181
0.607332
f37eb0ba03d92d73ef194fc0d664d1c011be9344
4,498
py
Python
examples/__old/freeform_vault_tutorial.py
selinabitting/compas-RV2
0884cc00d09c8f4a75eb2b97614105e4c8bfd818
[ "MIT" ]
34
2020-04-27T13:54:38.000Z
2022-01-17T19:16:27.000Z
examples/__old/freeform_vault_tutorial.py
selinabitting/compas-RV2
0884cc00d09c8f4a75eb2b97614105e4c8bfd818
[ "MIT" ]
306
2020-04-27T12:00:54.000Z
2022-03-23T22:28:54.000Z
examples/__old/freeform_vault_tutorial.py
selinabitting/compas-RV2
0884cc00d09c8f4a75eb2b97614105e4c8bfd818
[ "MIT" ]
11
2020-06-30T08:23:40.000Z
2022-02-01T20:47:39.000Z
from compas_rv2.skeleton import Skeleton from compas_rv2.diagrams import FormDiagram # noqa F401 from compas_rv2.diagrams import ForceDiagram from compas_rv2.diagrams import ThrustDiagram # noqa F401 from compas_rv2.rhino import RhinoSkeleton from compas_rv2.rhino import RhinoFormDiagram from compas_rv2.rhino import ...
31.676056
81
0.5747
f37eef2860b7b43e3ce0d56aad7e0ba20434a32f
5,923
py
Python
tasks/time-series/time-series-forecasting/a65761f6-78d4-4fa7-988c-4ac6e7c07421/src/runner.py
sujithvemi/ai-platform
2c11fecb644be95fe9b0da450da05be8cfd00fa1
[ "MIT" ]
1
2020-08-29T18:49:53.000Z
2020-08-29T18:49:53.000Z
tasks/time-series/time-series-forecasting/a65761f6-78d4-4fa7-988c-4ac6e7c07421/src/runner.py
sujithvemi/ai-platform
2c11fecb644be95fe9b0da450da05be8cfd00fa1
[ "MIT" ]
10
2020-12-26T09:34:17.000Z
2022-03-21T22:30:38.000Z
tasks/time-series/time-series-forecasting/a65761f6-78d4-4fa7-988c-4ac6e7c07421/src/runner.py
sujithvemi/ai-platform
2c11fecb644be95fe9b0da450da05be8cfd00fa1
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import io import requests from datetime import timedelta import xgboost as xgb from sklearn.model_selection import GridSearchCV from sklearn.metrics import * import matplotlib.pyplot as plt import mlflow import mlflow.sklearn def fit(self): """ Gets data and ...
39.486667
118
0.618268
f38046d7ad6e7e47819ddb5a3878c1a7e985261b
24
py
Python
configs.py
GavinLiu-AI/warden-bots
749d2c16a724d5590b6616ae711c96c9c4b5a9cf
[ "MIT" ]
null
null
null
configs.py
GavinLiu-AI/warden-bots
749d2c16a724d5590b6616ae711c96c9c4b5a9cf
[ "MIT" ]
null
null
null
configs.py
GavinLiu-AI/warden-bots
749d2c16a724d5590b6616ae711c96c9c4b5a9cf
[ "MIT" ]
null
null
null
WAR_BOT_TOKEN = 'token'
12
23
0.75
f3806a187a1195eae97ef27e1fd3f40966d4162c
2,992
py
Python
eigenface.py
lion-tohiro/MyEigenface
cc14e598dd83d0831c65c0521633f446ca4314a7
[ "MIT" ]
null
null
null
eigenface.py
lion-tohiro/MyEigenface
cc14e598dd83d0831c65c0521633f446ca4314a7
[ "MIT" ]
null
null
null
eigenface.py
lion-tohiro/MyEigenface
cc14e598dd83d0831c65c0521633f446ca4314a7
[ "MIT" ]
null
null
null
from cv2 import cv2 import numpy as np import sys import os from base import normalize # some parameters of training and testing data train_sub_count = 40 train_img_count = 5 total_face = 200 row = 70 col = 70
42.140845
134
0.65742
f38371cb347fe1cc59a05a3c04244fc73c03cc52
820
py
Python
app/request/migrations/0003_auto_20190924_2107.py
contestcrew/2019SeoulContest-Backend
2e99cc6ec6a712911da3b79412ae84a9d35453e1
[ "MIT" ]
null
null
null
app/request/migrations/0003_auto_20190924_2107.py
contestcrew/2019SeoulContest-Backend
2e99cc6ec6a712911da3b79412ae84a9d35453e1
[ "MIT" ]
32
2019-08-30T13:09:28.000Z
2021-06-10T19:07:56.000Z
app/request/migrations/0003_auto_20190924_2107.py
contestcrew/2019SeoulContest-Backend
2e99cc6ec6a712911da3b79412ae84a9d35453e1
[ "MIT" ]
3
2019-09-19T10:12:50.000Z
2019-09-30T15:59:13.000Z
# Generated by Django 2.2.5 on 2019-09-24 12:07 from django.db import migrations, models import django.db.models.deletion
30.37037
140
0.610976
f386e72db7f6ccd97e6e983df013a5674e86d24e
10,472
py
Python
mrmap/service/helper/ogc/layer.py
SvenTUM/mrmap
307e120d0d846645b56fb8f4a7a979857c860c15
[ "MIT" ]
null
null
null
mrmap/service/helper/ogc/layer.py
SvenTUM/mrmap
307e120d0d846645b56fb8f4a7a979857c860c15
[ "MIT" ]
null
null
null
mrmap/service/helper/ogc/layer.py
SvenTUM/mrmap
307e120d0d846645b56fb8f4a7a979857c860c15
[ "MIT" ]
null
null
null
from django.contrib.gis.geos import Polygon from django.db import IntegrityError from service.helper.enums import MetadataEnum, OGCOperationEnum, MetadataRelationEnum from service.helper.epsg_api import EpsgApi from service.models import Service, Metadata, Layer, Keyword, ReferenceSystem, Dimension, ServiceUrl from se...
40.276923
134
0.618506
f3878c596d313ee24b2d62403844d0ab0524f2b3
906
py
Python
Sample/PyWebApi.IIS/json_fmtr.py
DataBooster/PyWebApi
d4afed2d6b05215302bfb316a61b36cf13fb74aa
[ "MIT" ]
6
2020-04-10T22:39:38.000Z
2022-01-21T18:07:08.000Z
Sample/PyWebApi.IIS/json_fmtr.py
DataBooster/PyWebApi
d4afed2d6b05215302bfb316a61b36cf13fb74aa
[ "MIT" ]
null
null
null
Sample/PyWebApi.IIS/json_fmtr.py
DataBooster/PyWebApi
d4afed2d6b05215302bfb316a61b36cf13fb74aa
[ "MIT" ]
1
2021-01-26T23:08:42.000Z
2021-01-26T23:08:42.000Z
# -*- coding: utf-8 -*- """json_fmtr.py This module implements a MediaTypeFormatter with JSON response. This module was originally shipped as an example code from https://github.com/DataBooster/PyWebApi, licensed under the MIT license. Anyone who obtains a copy of this code is welcome to modify it for any...
34.846154
135
0.730684
f388170b0b0845168e9528e0556eaa6b27d8bd42
6,952
py
Python
vad.py
zhuligs/Pallas
c8d77d0963c080fa7331560f1659001488b0328f
[ "MIT" ]
null
null
null
vad.py
zhuligs/Pallas
c8d77d0963c080fa7331560f1659001488b0328f
[ "MIT" ]
null
null
null
vad.py
zhuligs/Pallas
c8d77d0963c080fa7331560f1659001488b0328f
[ "MIT" ]
null
null
null
#!/usr/bin/env python # import numpy as np import itin import sdata import fppy from copy import deepcopy as cp from wrapdimer import get_rmode, get_0mode, get_mode from zfunc import set_cell_from_vasp, write_cell_to_vasp from vfunc import runvdim, goptv # def con(reac, prod): # mode = get_mode(reac, prod) # sdd = ...
28.260163
76
0.534091
f3884809bd62f0f776b8c21dd23802afacf22c1c
349
py
Python
EASTAR/main/templatetags/extra.py
DightMerc/EASTAR
04a3578932f8b4b842e0898513ef279c2f750f48
[ "Apache-2.0" ]
1
2020-09-21T16:46:19.000Z
2020-09-21T16:46:19.000Z
EASTAR/main/templatetags/extra.py
DightMerc/EASTAR
04a3578932f8b4b842e0898513ef279c2f750f48
[ "Apache-2.0" ]
null
null
null
EASTAR/main/templatetags/extra.py
DightMerc/EASTAR
04a3578932f8b4b842e0898513ef279c2f750f48
[ "Apache-2.0" ]
null
null
null
from django import template from django.template.defaultfilters import stringfilter register = template.Library()
18.368421
55
0.719198
f3896211c27faf122c9bf819667c176a83dab4ba
1,058
py
Python
influxable/db/function/transformations.py
AndyBryson/influxable
8a2f798cc5ae12b04f803afc84d7e064a3afd250
[ "MIT" ]
30
2019-07-28T12:57:21.000Z
2022-03-30T05:02:57.000Z
influxable/db/function/transformations.py
AndyBryson/influxable
8a2f798cc5ae12b04f803afc84d7e064a3afd250
[ "MIT" ]
9
2020-04-23T11:29:29.000Z
2022-02-04T09:15:16.000Z
influxable/db/function/transformations.py
AndyBryson/influxable
8a2f798cc5ae12b04f803afc84d7e064a3afd250
[ "MIT" ]
5
2021-03-23T04:05:42.000Z
2022-01-28T12:04:37.000Z
from . import _generate_function Abs = _generate_function('ABS') ACos = _generate_function('ACOS') ASin = _generate_function('ASIN') ATan = _generate_function('ATAN') ATan2 = _generate_function('ATAN2') Ceil = _generate_function('CEIL') Cos = _generate_function('COS') CumulativeSum = _generate_function('CUMULATIVE_SUM...
36.482759
69
0.797732
f38a2a1b6ca2d859f8e7abbf785a6ba3a4abb56a
10,176
py
Python
notebooks/pixel_cnn/pixelcnn_helpers.py
bjlkeng/sandbox
ba1fea113065256d4981a71f7b4bece7299effd1
[ "MIT" ]
158
2017-11-09T14:56:31.000Z
2022-03-26T17:26:20.000Z
notebooks/pixel_cnn/pixelcnn_helpers.py
iivek/sandbox
c95653618b7be5022b0a8e217a4e5667badb2449
[ "MIT" ]
8
2017-11-28T11:14:46.000Z
2021-05-03T00:23:57.000Z
notebooks/pixel_cnn/pixelcnn_helpers.py
iivek/sandbox
c95653618b7be5022b0a8e217a4e5667badb2449
[ "MIT" ]
77
2017-11-21T15:27:52.000Z
2022-02-17T16:37:34.000Z
import math import numpy as np from keras import backend as K from keras.layers import Conv2D, Concatenate, Activation, Add from keras.engine import InputSpec def logsoftmax(x): ''' Numerically stable log(softmax(x)) ''' m = K.max(x, axis=-1, keepdims=True) return x - m - K.log(K.sum(K.exp(x - m), axis=...
37.549815
100
0.554442
f38a6c2e71521c84f4388fefbf9286e8d814c7cf
5,667
py
Python
so_ana_util/common_types.py
HBernigau/StackOverflowAnalysis
42dae7c0c23fcdeca23f8c770ad17b2eb341d091
[ "MIT" ]
null
null
null
so_ana_util/common_types.py
HBernigau/StackOverflowAnalysis
42dae7c0c23fcdeca23f8c770ad17b2eb341d091
[ "MIT" ]
null
null
null
so_ana_util/common_types.py
HBernigau/StackOverflowAnalysis
42dae7c0c23fcdeca23f8c770ad17b2eb341d091
[ "MIT" ]
null
null
null
""" contains several global data classes (for log entries for example) Author: `HBernigau <https://github.com/HBernigau>`_ Date: 01.2022 """ import marshmallow_dataclass as mmdc import marshmallow from logging import StreamHandler from typing import Any from dataclasses import is_dataclass, dataclass, field from date...
31.137363
129
0.620787
f38cd9bf72cf20ce46ec9a0d171610abb4fc724e
544
py
Python
main.py
traduttore/traduttore-model
c7c2f3eba11226a32bad547c4f89186afab676da
[ "MIT" ]
null
null
null
main.py
traduttore/traduttore-model
c7c2f3eba11226a32bad547c4f89186afab676da
[ "MIT" ]
null
null
null
main.py
traduttore/traduttore-model
c7c2f3eba11226a32bad547c4f89186afab676da
[ "MIT" ]
null
null
null
from run_translation.TestModelComputer import asl_translation from run_translation.TextToSpeech import tts from run_translation.RunPiModelStream import rasp_translation # from run_translation.RunPiModelTesting import rasp_translation from run_translation.TestModelComputerLetters import asl_translation_letters # from ru...
41.846154
76
0.816176
f38d5179a40a5708688c37698f18af00b47801df
855
py
Python
counting_elements.py
vyshuks/Leetcode-30-day-challenge
aee6050c14670468426b437353f1df99c408a5a9
[ "MIT" ]
null
null
null
counting_elements.py
vyshuks/Leetcode-30-day-challenge
aee6050c14670468426b437353f1df99c408a5a9
[ "MIT" ]
null
null
null
counting_elements.py
vyshuks/Leetcode-30-day-challenge
aee6050c14670468426b437353f1df99c408a5a9
[ "MIT" ]
null
null
null
# Given an integer array arr, count element x such that x + 1 is also in arr. # If there're duplicates in arr, count them seperately. # Example 1: # Input: arr = [1,2,3] # Output: 2 # Explanation: 1 and 2 are counted cause 2 and 3 are in arr. # Example 2: # Input: arr = [1,1,3,3,5,5,7,7] # Output: 0 # Explanatio...
20.357143
77
0.596491
f38fbb026f37e5802966766250eb1e180269abf5
446
py
Python
terrascript/data/logicmonitor.py
hugovk/python-terrascript
08fe185904a70246822f5cfbdc9e64e9769ec494
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
terrascript/data/logicmonitor.py
hugovk/python-terrascript
08fe185904a70246822f5cfbdc9e64e9769ec494
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
terrascript/data/logicmonitor.py
hugovk/python-terrascript
08fe185904a70246822f5cfbdc9e64e9769ec494
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# terrascript/data/logicmonitor.py import terrascript __all__ = [ "logicmonitor_collectors", "logicmonitor_dashboard", "logicmonitor_dashboard_group", "logicmonitor_device_group", ]
16.518519
53
0.773543
f390563b3cfae7b34b4fd4558f37190e60715548
32,834
py
Python
src/plotting_modules.py
kjdavidson/NoisePy
a7445dd2f68f64cb562d6a87096e5f12a2c3b612
[ "MIT" ]
74
2019-11-08T18:32:36.000Z
2022-03-27T11:26:53.000Z
src/plotting_modules.py
kjdavidson/NoisePy
a7445dd2f68f64cb562d6a87096e5f12a2c3b612
[ "MIT" ]
23
2019-11-10T01:30:04.000Z
2022-03-24T10:23:19.000Z
src/plotting_modules.py
kjdavidson/NoisePy
a7445dd2f68f64cb562d6a87096e5f12a2c3b612
[ "MIT" ]
36
2019-11-08T19:36:28.000Z
2022-02-17T06:31:42.000Z
import os import sys import glob import obspy import scipy import pyasdf import numpy as np import matplotlib import matplotlib.pyplot as plt from scipy.fftpack import next_fast_len from obspy.signal.filter import bandpass ''' Ensembles of plotting functions to display intermediate/final waveforms from the NoisePy pac...
39.895504
141
0.589663
f39066e523946592eb25eb6c65542beaf6ed93ea
195
py
Python
version_2.0/cli.py
Isak-Landin/AlienWorldsBot
c8750229de4a7d4efe2950b7b89b7c457b956b5b
[ "MIT" ]
null
null
null
version_2.0/cli.py
Isak-Landin/AlienWorldsBot
c8750229de4a7d4efe2950b7b89b7c457b956b5b
[ "MIT" ]
null
null
null
version_2.0/cli.py
Isak-Landin/AlienWorldsBot
c8750229de4a7d4efe2950b7b89b7c457b956b5b
[ "MIT" ]
null
null
null
try: import time import traceback from program_files.__main__ import main if __name__ == '__main__': main() except: print(traceback.print_exc()) time.sleep(10000)
19.5
43
0.65641
f393ca21257641b3a4a749444737ab5f7f35e5a8
13,255
py
Python
zeugs/wz_table/spreadsheet_make.py
gradgrind/Zeugs
56361a63f245ac15a8cd21c7316879dc944609db
[ "Apache-2.0" ]
null
null
null
zeugs/wz_table/spreadsheet_make.py
gradgrind/Zeugs
56361a63f245ac15a8cd21c7316879dc944609db
[ "Apache-2.0" ]
null
null
null
zeugs/wz_table/spreadsheet_make.py
gradgrind/Zeugs
56361a63f245ac15a8cd21c7316879dc944609db
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ wz_table/spreadsheet_make.py Last updated: 2019-10-14 Create a new spreadsheet (.xlsx). =+LICENCE============================= Copyright 2017-2019 Michael Towers Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except...
33.220551
82
0.530517
f3940f471c47cc139263585f43ad154e0740108a
8,509
py
Python
pygpsnmea/kml.py
tww-software/py_gps_nmea
8295d146014d4e8636e7ca05f7e843f023c67e45
[ "MIT" ]
null
null
null
pygpsnmea/kml.py
tww-software/py_gps_nmea
8295d146014d4e8636e7ca05f7e843f023c67e45
[ "MIT" ]
null
null
null
pygpsnmea/kml.py
tww-software/py_gps_nmea
8295d146014d4e8636e7ca05f7e843f023c67e45
[ "MIT" ]
null
null
null
""" a parser to generate Keyhole Markup Language (KML) for Google Earth """ import datetime import os import re DATETIMEREGEX = re.compile( r'\d{4}/(0[1-9]|1[0-2])/(0[1-9]|1[0-9]|2[0-9]|3[01]) ' r'(0[0-9]|1[0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])') def remove_invalid_chars(xmlstring): """ remove ...
31.868914
78
0.595135
f396ce948df906683a7c38c39ca570318694f325
120
py
Python
config_web/uberon.py
NikkiBytes/pending.api
3c83bb8e413c3032a3a4539d19a779b5f0b67650
[ "Apache-2.0" ]
3
2019-02-17T23:36:35.000Z
2022-03-01T16:43:06.000Z
config_web/uberon.py
NikkiBytes/pending.api
3c83bb8e413c3032a3a4539d19a779b5f0b67650
[ "Apache-2.0" ]
56
2019-01-26T16:34:12.000Z
2022-03-23T06:57:03.000Z
config_web/uberon.py
NikkiBytes/pending.api
3c83bb8e413c3032a3a4539d19a779b5f0b67650
[ "Apache-2.0" ]
6
2020-10-22T17:37:54.000Z
2022-03-01T16:56:55.000Z
ES_HOST = 'localhost:9200' ES_INDEX = 'pending-uberon' ES_DOC_TYPE = 'anatomy' API_PREFIX = 'uberon' API_VERSION = ''
15
27
0.716667
f397defd4691690e72cce36ba5215724539cf0f1
4,596
py
Python
tests/unittests/models/movinet/test_movinet.py
jaelgu/towhee
34c79cf50831dc271ae0ab02f319f9e355c2d0bf
[ "Apache-2.0" ]
null
null
null
tests/unittests/models/movinet/test_movinet.py
jaelgu/towhee
34c79cf50831dc271ae0ab02f319f9e355c2d0bf
[ "Apache-2.0" ]
null
null
null
tests/unittests/models/movinet/test_movinet.py
jaelgu/towhee
34c79cf50831dc271ae0ab02f319f9e355c2d0bf
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 Zilliz. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the 'License'); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
31.054054
75
0.595735
f39a1fae3017b69be241d72f355eabb23b20cb7e
766
py
Python
setup.py
btpka3/certbot-auto-dns-challenge
6f0eee2c4a65380aaf51e439714b0c88820cd392
[ "Apache-2.0" ]
null
null
null
setup.py
btpka3/certbot-auto-dns-challenge
6f0eee2c4a65380aaf51e439714b0c88820cd392
[ "Apache-2.0" ]
null
null
null
setup.py
btpka3/certbot-auto-dns-challenge
6f0eee2c4a65380aaf51e439714b0c88820cd392
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf8 -*- from setuptools import setup setup( name='certbot_adc', version='0.1', description="perform certbot auto dns challenge with DNS provider's API", url='http://github.com/btpka3/certbot-auto-dns-challenge', author='btpka3', author_email='btpka3@163.com...
26.413793
77
0.612272
f39ab617903bf5c066a5df4506e51a1d5032af8b
3,402
py
Python
meta_learn/hyperparameter/hyperactive_wrapper.py
SimonBlanke/Meta-Learn
099c12dd78c67216949f0773b5e642de0199d130
[ "MIT" ]
2
2018-04-11T08:44:52.000Z
2018-04-11T19:40:49.000Z
meta_learn/hyperparameter/hyperactive_wrapper.py
SimonBlanke/meta-learn
099c12dd78c67216949f0773b5e642de0199d130
[ "MIT" ]
null
null
null
meta_learn/hyperparameter/hyperactive_wrapper.py
SimonBlanke/meta-learn
099c12dd78c67216949f0773b5e642de0199d130
[ "MIT" ]
null
null
null
import os import glob import hashlib import inspect from .collector import Collector from ._meta_regressor import MetaRegressor from ._recognizer import Recognizer from ._predictor import Predictor
30.927273
71
0.643739
f39ac023b77aabbaf4afaccbd9f78e8fb65f2bd7
4,130
py
Python
SIR_Model_Spread_of_Disease/SIR.py
Ukasz09/Machine-learning
fad267247a98099dd0647840fb2cbeb91ba63ef6
[ "MIT" ]
1
2020-04-18T11:30:26.000Z
2020-04-18T11:30:26.000Z
SIR_Model_Spread_of_Disease/SIR.py
Ukasz09/Machine-learning
fad267247a98099dd0647840fb2cbeb91ba63ef6
[ "MIT" ]
null
null
null
SIR_Model_Spread_of_Disease/SIR.py
Ukasz09/Machine-learning
fad267247a98099dd0647840fb2cbeb91ba63ef6
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt from scipy.integrate import odeint T = 200 h = 1e-2 t = np.arange(start=0, stop=T + h, step=h) bet, gam = 0.15, 1 / 50 # todo: zmienic poziej na randoma # S_pocz = np.random.uniform(0.7, 1) S_start = 0.8 I_start = 1 - S_start R_start = 0 N = S_start + I_start + R_sta...
28.482759
120
0.542373
f39c2a97e0f79f5846c7d80b8e4cc63e36f79092
2,309
py
Python
Source/fcm_estimator.py
SamanKhamesian/Imputation-of-Missing-Values
01bcce1033e311133529ac7519bf1eccb3adac67
[ "Apache-2.0" ]
4
2019-07-17T18:36:42.000Z
2021-06-04T16:04:55.000Z
Source/fcm_estimator.py
SamanKhamesian/Imputation-of-Missing-Values
01bcce1033e311133529ac7519bf1eccb3adac67
[ "Apache-2.0" ]
1
2019-10-01T05:04:24.000Z
2019-10-11T12:38:26.000Z
Source/fcm_estimator.py
SamanKhamesian/Imputation-of-Missing-Values
01bcce1033e311133529ac7519bf1eccb3adac67
[ "Apache-2.0" ]
2
2019-11-01T04:09:49.000Z
2021-02-27T23:44:23.000Z
import numpy as np from skfuzzy import cmeans from config import NAN, FCMParam
37.241935
116
0.585535
f39d173c9fbc317050ff95708eda00f0d96dd9ff
3,444
py
Python
assignments/06_common/common_expanded.py
xanoob/be434-fall-2021
d06c2f105a03a48e4a2c4024151f24eb8dbab30e
[ "MIT" ]
null
null
null
assignments/06_common/common_expanded.py
xanoob/be434-fall-2021
d06c2f105a03a48e4a2c4024151f24eb8dbab30e
[ "MIT" ]
null
null
null
assignments/06_common/common_expanded.py
xanoob/be434-fall-2021
d06c2f105a03a48e4a2c4024151f24eb8dbab30e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Author : RoxanneB <RoxanneB@localhost> Date : 2021-10-07 Purpose: Rock the Casbah """ import argparse import sys import string from collections import defaultdict # -------------------------------------------------- def get_args(): """Get command-line arguments""" parser = argpar...
28.941176
93
0.539199
f3a12a458087d0fac906201bd400b84157ccb937
3,421
py
Python
protocols/acars618.py
wagoodman/protocol-tools
7daa021265beca9755fe0a96203801e2270f4a8b
[ "MIT" ]
1
2022-01-29T00:28:50.000Z
2022-01-29T00:28:50.000Z
protocols/acars618.py
wagoodman/protocol-tools
7daa021265beca9755fe0a96203801e2270f4a8b
[ "MIT" ]
null
null
null
protocols/acars618.py
wagoodman/protocol-tools
7daa021265beca9755fe0a96203801e2270f4a8b
[ "MIT" ]
null
null
null
from byteProtocol import * import re import time
36.010526
115
0.524408
f3a248c8b3cb8bcd7112da99c041f910e5474413
7,018
py
Python
db_env/tpch/tpch_stream/RefreshPair.py
Chotom/rl-db-indexing
16eaf0a3e3aef83b3fd077111e922dea6dd6a1f3
[ "MIT" ]
null
null
null
db_env/tpch/tpch_stream/RefreshPair.py
Chotom/rl-db-indexing
16eaf0a3e3aef83b3fd077111e922dea6dd6a1f3
[ "MIT" ]
null
null
null
db_env/tpch/tpch_stream/RefreshPair.py
Chotom/rl-db-indexing
16eaf0a3e3aef83b3fd077111e922dea6dd6a1f3
[ "MIT" ]
null
null
null
import datetime from typing import Iterator, Tuple, List import numpy as np import pandas as pd from mysql.connector import MySQLConnection from mysql.connector.cursor import MySQLCursorBuffered from db_env.tpch.config import DB_REFRESH_DIR from db_env.tpch.tpch_stream.consts import LINEITEM_QUOTE_INDEX_LIST, ORDERS_...
44.138365
130
0.635081
f3a26881a4ca1cefb8ab84deb4c848ac0e3245ce
285
py
Python
zip_submission.py
RapidsAtHKUST/TriangleCounting
b63541f8f9f32d3cb2f52b9b8f07e5974238b6e1
[ "MIT" ]
null
null
null
zip_submission.py
RapidsAtHKUST/TriangleCounting
b63541f8f9f32d3cb2f52b9b8f07e5974238b6e1
[ "MIT" ]
null
null
null
zip_submission.py
RapidsAtHKUST/TriangleCounting
b63541f8f9f32d3cb2f52b9b8f07e5974238b6e1
[ "MIT" ]
null
null
null
import datetime import os if __name__ == '__main__': date_str = datetime.datetime.now().strftime("%Y-%m-%d-%H-%M") print(date_str) os.system('zip -r tc-rapids-{}.zip triangle-counting technical_report.pdf -x *cmake-build-debug/* -x */CMake* -x *.idea/*'.format(date_str))
35.625
144
0.673684
f3a50a6379175fbc9b08a548137328cb017058f2
8,493
py
Python
data/multimodal_miss_dataset.py
Norwa9/missing_modalities
53cdcc1749eb5f0b74cc57b05ab3768b9c514385
[ "MIT" ]
null
null
null
data/multimodal_miss_dataset.py
Norwa9/missing_modalities
53cdcc1749eb5f0b74cc57b05ab3768b9c514385
[ "MIT" ]
null
null
null
data/multimodal_miss_dataset.py
Norwa9/missing_modalities
53cdcc1749eb5f0b74cc57b05ab3768b9c514385
[ "MIT" ]
null
null
null
import os import sys sys.path.append("/data/luowei/MMIN") import json import random import torch import numpy as np import h5py from torch.nn.utils.rnn import pad_sequence from torch.nn.utils.rnn import pack_padded_sequence from data.base_dataset import BaseDataset # run # /data/luowei/anaconda3/envs/wav2clip_env...
39.686916
140
0.558695
f3a82067b35984c55df054378d7da2b20c33f677
524
py
Python
projects/admin.py
BridgesLab/Lab-Website
d6f6c9c068bbf668c253e5943d9514947023e66d
[ "CC0-1.0", "MIT" ]
6
2015-08-31T16:55:16.000Z
2022-02-10T08:23:07.000Z
projects/admin.py
BridgesLab/Lab-Website
d6f6c9c068bbf668c253e5943d9514947023e66d
[ "CC0-1.0", "MIT" ]
30
2015-03-22T15:49:31.000Z
2020-05-25T23:59:37.000Z
projects/admin.py
BridgesLab/Lab-Website
d6f6c9c068bbf668c253e5943d9514947023e66d
[ "CC0-1.0", "MIT" ]
6
2016-09-07T08:25:21.000Z
2020-03-27T10:24:57.000Z
'''This package sets up the admin interface for the :mod:`papers` app.''' from django.contrib import admin from projects.models import Funding, FundingAgency admin.site.register(Funding, FundingAdmin) admin.site.register(FundingAgency, FundingAgencyAdmin)
37.428571
81
0.751908
f3a93a6c183cf430e924e42fd67f039a0f3d50e9
859
py
Python
evap/evaluation/migrations/0032_populate_rating_answer_counters.py
JenniferStamm/EvaP
1d71e4efcd34d01f28e30c6026c8dcc708921193
[ "MIT" ]
null
null
null
evap/evaluation/migrations/0032_populate_rating_answer_counters.py
JenniferStamm/EvaP
1d71e4efcd34d01f28e30c6026c8dcc708921193
[ "MIT" ]
null
null
null
evap/evaluation/migrations/0032_populate_rating_answer_counters.py
JenniferStamm/EvaP
1d71e4efcd34d01f28e30c6026c8dcc708921193
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations
34.36
148
0.756694
f3aa23f0ec5b96698289637ee3c9f3e193d97695
1,054
py
Python
src/main.py
NonAbelianCapu/Traffic_Sim
bdbb4a7f058d8622ed6e6d7128db681cdae39b1b
[ "MIT" ]
null
null
null
src/main.py
NonAbelianCapu/Traffic_Sim
bdbb4a7f058d8622ed6e6d7128db681cdae39b1b
[ "MIT" ]
null
null
null
src/main.py
NonAbelianCapu/Traffic_Sim
bdbb4a7f058d8622ed6e6d7128db681cdae39b1b
[ "MIT" ]
null
null
null
import sim import utils import numpy as np import matplotlib.pyplot as plt import argparse if __name__ == '__main__': main()
29.277778
120
0.681214
f3aa39200a91e8ee89c1f49153a1bf66342a6c27
1,666
py
Python
tests/functional/parser/schemas.py
n2N8Z/aws-lambda-powertools-python
0cb5d506f534ac76b42f2d5959d93c7b2bb4d8e9
[ "MIT-0" ]
null
null
null
tests/functional/parser/schemas.py
n2N8Z/aws-lambda-powertools-python
0cb5d506f534ac76b42f2d5959d93c7b2bb4d8e9
[ "MIT-0" ]
null
null
null
tests/functional/parser/schemas.py
n2N8Z/aws-lambda-powertools-python
0cb5d506f534ac76b42f2d5959d93c7b2bb4d8e9
[ "MIT-0" ]
null
null
null
from typing import Dict, List, Optional from pydantic import BaseModel from typing_extensions import Literal from aws_lambda_powertools.utilities.parser.models import ( DynamoDBStreamChangedRecordModel, DynamoDBStreamModel, DynamoDBStreamRecordModel, EventBridgeModel, SnsModel, SnsNotification...
19.833333
61
0.779712
f3aaaccfebbaff94bdcc88b4d60c133a5920a086
387
py
Python
src/350.py
hippieZhou/The-Way-Of-LeetCode
c63d777e01413726b6214c616c20c61f8e5b330b
[ "MIT" ]
null
null
null
src/350.py
hippieZhou/The-Way-Of-LeetCode
c63d777e01413726b6214c616c20c61f8e5b330b
[ "MIT" ]
null
null
null
src/350.py
hippieZhou/The-Way-Of-LeetCode
c63d777e01413726b6214c616c20c61f8e5b330b
[ "MIT" ]
null
null
null
# nums1 = [1, 2, 2, 1] nums2 = [2, 2] li = Solution().intersect(nums1, nums2) print(li)
20.368421
58
0.5323