hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
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
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
6b67add37fad732a53c2071ec5f57ca219c84ea1
455
py
Python
learn-python-hardway/Ex3.py
thahsinb/learn-python
72a9cf4c89efa8a9a3d87f581f5de13353152014
[ "MIT" ]
null
null
null
learn-python-hardway/Ex3.py
thahsinb/learn-python
72a9cf4c89efa8a9a3d87f581f5de13353152014
[ "MIT" ]
null
null
null
learn-python-hardway/Ex3.py
thahsinb/learn-python
72a9cf4c89efa8a9a3d87f581f5de13353152014
[ "MIT" ]
null
null
null
print("I will now count my chickens:") print("Hens", 25+30/6) print("Roosters", 100-25*3%4) print("Now I will count the eggs:") print (3 + 2 + 1 - 5 + 4 % 2 - 1 / 4 + 6) print("Is it true that 3+2<5-7?") print (3+2<5-7) print("What is 3+2?", 3+2) print("What is 5-7?", 5-7) print("Oh, that's why it's false.") pr...
19.782609
41
0.593407
0c6d369124801721955379f68984d82b90a0aca6
927
py
Python
demo/appdb.py
hyteer/flaskdemo
604447396d36ced5ed2ed791c498833f94d0aaba
[ "Apache-2.0" ]
null
null
null
demo/appdb.py
hyteer/flaskdemo
604447396d36ced5ed2ed791c498833f94d0aaba
[ "Apache-2.0" ]
null
null
null
demo/appdb.py
hyteer/flaskdemo
604447396d36ced5ed2ed791c498833f94d0aaba
[ "Apache-2.0" ]
null
null
null
from flask import Flask, redirect, abort app = Flask(__name__) from DemoLib import Users from DemoLib.users import load_user #### Def methods def do_the_login(): print "You've posted a login request." return "Hi,you've posted a login request." def show_the_login_form(): print 'Hello, please logi...
18.918367
50
0.636462
94d3cabd39085974ff7338b679fb4c52fc1662b0
10,313
py
Python
Emotion_Recognition_Audio.py
GauravHub11/Audio_Emotion_recognition
135c91a363101cd91fefdb992205543689071d23
[ "MIT" ]
null
null
null
Emotion_Recognition_Audio.py
GauravHub11/Audio_Emotion_recognition
135c91a363101cd91fefdb992205543689071d23
[ "MIT" ]
null
null
null
Emotion_Recognition_Audio.py
GauravHub11/Audio_Emotion_recognition
135c91a363101cd91fefdb992205543689071d23
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[1]: import numpy as np import pandas as pd import matplotlib.pyplot as plt import librosa #for Audio Analysis import librosa.display #need to import from librosa #import audio playback widget import IPython.display as ipd from IPython.display import Image import ...
20.421782
164
0.714535
7a3b70931ad94b3c1af05baeab62cce36f08b3ad
17,220
py
Python
tests/core/test_action.py
Riminder/hrflow-connectors
6be229520657031a9dda5e6fc9680dc527d730ad
[ "Apache-2.0" ]
32
2021-02-15T15:17:28.000Z
2022-01-25T10:13:48.000Z
tests/core/test_action.py
Riminder/hrflow-connectors
6be229520657031a9dda5e6fc9680dc527d730ad
[ "Apache-2.0" ]
3
2021-12-29T19:26:58.000Z
2022-01-28T09:07:40.000Z
tests/core/test_action.py
Riminder/hrflow-connectors
6be229520657031a9dda5e6fc9680dc527d730ad
[ "Apache-2.0" ]
3
2021-12-17T08:49:58.000Z
2022-03-15T07:15:40.000Z
from hrflow_connectors.core.action import Action, BoardAction import pytest import requests import responses from hrflow import Hrflow @pytest.fixture def generated_data_list(): list_to_filter = [] list_to_filter.append(dict(element1="value1", element2="value2")) list_to_filter.append(dict(element1="value...
31.888889
118
0.69065
94547c0e0236dd088ff81a39644099c1548510a1
29,370
py
Python
oscar/lib/python2.7/site-packages/IPython/core/magics/osm.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/IPython/core/magics/osm.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/IPython/core/magics/osm.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
"""Implementation of magic functions for interaction with the OS. Note: this module is named 'osm' instead of 'os' to avoid a collision with the builtin. """ from __future__ import print_function #----------------------------------------------------------------------------- # Copyright (c) 2012 The IPython Dev...
37.130215
86
0.528703
215eb14a90a6785c66acff2dfcdf6165817ddcc6
7,064
py
Python
dlms_cosem/hdlc/connection.py
Layty/dlms-cosem
95b67054a1dfb928e960547b0246b7b6794f0594
[ "MIT" ]
1
2021-08-20T09:19:07.000Z
2021-08-20T09:19:07.000Z
dlms_cosem/hdlc/connection.py
Layty/dlms-cosem
95b67054a1dfb928e960547b0246b7b6794f0594
[ "MIT" ]
null
null
null
dlms_cosem/hdlc/connection.py
Layty/dlms-cosem
95b67054a1dfb928e960547b0246b7b6794f0594
[ "MIT" ]
null
null
null
import logging import attr from dlms_cosem.hdlc import address, exceptions, frames from dlms_cosem.hdlc.exceptions import LocalProtocolError from dlms_cosem.hdlc.state import ( AWAITING_CONNECTION, AWAITING_DISCONNECT, AWAITING_RESPONSE, NEED_DATA, HdlcConnectionState, ) LOG = logging.getLogger(_...
35.144279
89
0.626557
8b4344b31bd4d45133b9bfb2f5e6babff66e4bcc
519
py
Python
python3/count_numbers_between_given_numbers.py
joshiaj7/CodingChallenges
f95dd79132f07c296e074d675819031912f6a943
[ "MIT" ]
1
2020-10-08T09:17:40.000Z
2020-10-08T09:17:40.000Z
python3/count_numbers_between_given_numbers.py
joshiaj7/CodingChallenges
f95dd79132f07c296e074d675819031912f6a943
[ "MIT" ]
null
null
null
python3/count_numbers_between_given_numbers.py
joshiaj7/CodingChallenges
f95dd79132f07c296e074d675819031912f6a943
[ "MIT" ]
null
null
null
""" hr Space : O(n) Time : O(n**2) """ def countBetween(arr, low, high): n = len(low) ans = [] d = {} for x in arr: if x not in d: d[x] = 1 else: d[x] += 1 for i in range(n): count = 0 for key in d.keys(): if low[i] <= key ...
16.741935
55
0.412331
4ace6c25c677c9c9a5fca019f7d33795bb53ff47
18,122
py
Python
detectron2/modeling/roi_heads/fast_rcnn.py
blankxyz/detectron2
eef51a656d02d6957c50332f557a4dfbc8a12af2
[ "Apache-2.0" ]
1
2020-04-04T14:18:06.000Z
2020-04-04T14:18:06.000Z
detectron2/modeling/roi_heads/fast_rcnn.py
blankxyz/detectron2
eef51a656d02d6957c50332f557a4dfbc8a12af2
[ "Apache-2.0" ]
null
null
null
detectron2/modeling/roi_heads/fast_rcnn.py
blankxyz/detectron2
eef51a656d02d6957c50332f557a4dfbc8a12af2
[ "Apache-2.0" ]
1
2020-04-04T14:20:16.000Z
2020-04-04T14:20:16.000Z
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import logging import numpy as np import torch from fvcore.nn import smooth_l1_loss from torch import nn from torch.nn import functional as F from detectron2.layers import Linear, batched_nms, cat from detectron2.structures import Boxes, Instances ...
44.416667
100
0.650149
bf5c8178bf2b9847ccd9a9181893d1c44e73935d
3,312
py
Python
lazaro/agents/double_dqn.py
GabrielMusat/lazaro
9879e938eb1e6da1b6974edf8ab41ece7f33063c
[ "Apache-2.0" ]
4
2021-05-03T15:48:44.000Z
2021-05-23T16:05:42.000Z
lazaro/agents/double_dqn.py
GabrielMusat/lazaro
9879e938eb1e6da1b6974edf8ab41ece7f33063c
[ "Apache-2.0" ]
null
null
null
lazaro/agents/double_dqn.py
GabrielMusat/lazaro
9879e938eb1e6da1b6974edf8ab41ece7f33063c
[ "Apache-2.0" ]
null
null
null
import typing as T from abc import ABC import numpy as np import torch from ..environments import Environment from .base.models import DoubleDqnHyperParams, TrainingProgress, LearningStep, TrainingStep, TrainingParams, ReplayBufferEntry from .dqn import DqnAgent class DoubleDqnAgent(DqnAgent, ABC): def __init__...
38.964706
126
0.62349
9ba63fab820b0e546ecefb07312ba1704c17d79e
10,670
py
Python
pyke/qa_helpers.py
mvaled/pyke
cfe95d8aaa06de123264f9b7f5bea20eb5924ecd
[ "MIT" ]
76
2015-04-20T12:10:25.000Z
2021-11-27T20:26:27.000Z
pyke/qa_helpers.py
w-simon/pyke
cfe95d8aaa06de123264f9b7f5bea20eb5924ecd
[ "MIT" ]
2
2016-03-09T14:33:27.000Z
2018-10-22T11:25:49.000Z
pyke/qa_helpers.py
w-simon/pyke
cfe95d8aaa06de123264f9b7f5bea20eb5924ecd
[ "MIT" ]
42
2015-03-16T13:11:30.000Z
2022-02-12T14:45:48.000Z
# $Id$ # coding=utf-8 # # Copyright © 2008 Bruce Frederiksen # # 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, m...
32.23565
79
0.517338
002914f4bb74d721eefb3e545db687af6538c1e6
23,283
py
Python
dash/app.py
nyoewono/GetaJob
4c18a2d14a1607b0077c0e4bbe6203cd3f07bbfc
[ "MIT" ]
null
null
null
dash/app.py
nyoewono/GetaJob
4c18a2d14a1607b0077c0e4bbe6203cd3f07bbfc
[ "MIT" ]
null
null
null
dash/app.py
nyoewono/GetaJob
4c18a2d14a1607b0077c0e4bbe6203cd3f07bbfc
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sun Jan 31 18:53:20 2021 @author: nathanaelyoewono """ # import dash components import dash import dash_core_components as dcc import dash_html_components as html from dash.dependencies import Input, Output, State import dash_table import dash_bootstrap_co...
33.452586
117
0.474681
de2ea5ecbc60419660b0afa25ff89e89d71d4018
13,642
py
Python
weblogo/data.py
tomaszwozniakihg/weblogo
3aa3eb03a1050ff1a44a4458229b4d4b188fbdf0
[ "MIT" ]
null
null
null
weblogo/data.py
tomaszwozniakihg/weblogo
3aa3eb03a1050ff1a44a4458229b4d4b188fbdf0
[ "MIT" ]
null
null
null
weblogo/data.py
tomaszwozniakihg/weblogo
3aa3eb03a1050ff1a44a4458229b4d4b188fbdf0
[ "MIT" ]
null
null
null
# Copyright (c) 2006, The Regents of the University of California, through # Lawrence Berkeley National Laboratory (subject to receipt of any required # approvals from the U.S. Dept. of Energy). All rights reserved. # This software is distributed under the new BSD Open Source License. # <http://www.opensource.or...
29.211991
99
0.553878
b37345a9493379fa57f345b93cb0dcc08cba3517
7,825
py
Python
configs/dcn/cascade_rcnn_dconv_c3-c5_r50_fpn_1x.py
Lechatelia/own_mmdet
eac5db1d1bee8eafe0ed46fa4bb61ca8605b502f
[ "Apache-2.0" ]
24
2021-10-14T03:28:28.000Z
2022-03-29T09:30:04.000Z
configs/dcn/cascade_rcnn_dconv_c3-c5_r50_fpn_1x.py
Lechatelia/own_mmdet
eac5db1d1bee8eafe0ed46fa4bb61ca8605b502f
[ "Apache-2.0" ]
4
2021-12-14T15:04:49.000Z
2022-02-19T09:54:42.000Z
configs/dcn/cascade_rcnn_dconv_c3-c5_r50_fpn_1x.py
Lechatelia/own_mmdet
eac5db1d1bee8eafe0ed46fa4bb61ca8605b502f
[ "Apache-2.0" ]
4
2021-10-31T11:23:06.000Z
2021-12-17T06:38:50.000Z
# model settings model = dict( type='CascadeRCNN', num_stages=3, pretrained='torchvision://resnet50', backbone=dict( type='ResNet', depth=50, num_stages=4, out_indices=(0, 1, 2, 3), frozen_stages=1, norm_cfg=dict(type='BN', requires_grad=True), ...
32.878151
79
0.534824
842ef1cd33cc390dcabbaa02e2be4a3a28f3f721
10,856
py
Python
pybind/slxos/v16r_1_00b/system_monitor_mail/fru/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
null
null
null
pybind/slxos/v16r_1_00b/system_monitor_mail/fru/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
null
null
null
pybind/slxos/v16r_1_00b/system_monitor_mail/fru/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
1
2021-11-05T22:15:42.000Z
2021-11-05T22:15:42.000Z
from operator import attrgetter import pyangbind.lib.xpathhelper as xpathhelper from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType from pyangbind.lib.base import PybindBase from d...
68.27673
1,011
0.724668
6ccfb8f8cf992e57b81ae7d52821c0349cb941be
4,246
py
Python
venv/Lib/site-packages/pyrogram/methods/users/get_profile_photos.py
iamgeorgiy/heroku-userbot
5a92417d16f8ead949d88cb38da213fc2da5d3a4
[ "Apache-2.0" ]
null
null
null
venv/Lib/site-packages/pyrogram/methods/users/get_profile_photos.py
iamgeorgiy/heroku-userbot
5a92417d16f8ead949d88cb38da213fc2da5d3a4
[ "Apache-2.0" ]
null
null
null
venv/Lib/site-packages/pyrogram/methods/users/get_profile_photos.py
iamgeorgiy/heroku-userbot
5a92417d16f8ead949d88cb38da213fc2da5d3a4
[ "Apache-2.0" ]
null
null
null
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2020 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free...
35.383333
107
0.540744
dd761288c382ba5c3597d9d9417ecdd7af669ea0
1,478
py
Python
rl_coach/filters/observation/observation_filter.py
jl45621/coach
9a895a1ac73aff44b2e6eb8e4d01e8ec35ceb084
[ "Apache-2.0" ]
1,960
2017-10-19T10:31:24.000Z
2020-11-07T18:19:23.000Z
rl_coach/filters/observation/observation_filter.py
gndctrl2mjrtm/coach-ray
ae6593bb33cf0ae3c5a4b3b351560dd6b47cd031
[ "Apache-2.0" ]
349
2017-10-21T17:17:18.000Z
2020-10-17T13:39:56.000Z
rl_coach/filters/observation/observation_filter.py
gndctrl2mjrtm/coach-ray
ae6593bb33cf0ae3c5a4b3b351560dd6b47cd031
[ "Apache-2.0" ]
428
2017-10-21T01:32:58.000Z
2020-11-07T13:49:49.000Z
# # Copyright (c) 2017 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
36.95
108
0.733424
bef6efefcc738126b3ebcef7ec38e563c0947ee3
22
py
Python
assignment1/astar.py
rutgerfarry/cs331
174b04cfa0e46c34a92625d190376faba807d5dd
[ "MIT" ]
1
2018-04-18T21:57:45.000Z
2018-04-18T21:57:45.000Z
assignment1/astar.py
rutgerfarry/cs331
174b04cfa0e46c34a92625d190376faba807d5dd
[ "MIT" ]
null
null
null
assignment1/astar.py
rutgerfarry/cs331
174b04cfa0e46c34a92625d190376faba807d5dd
[ "MIT" ]
null
null
null
""" A-star search """
11
21
0.5
b11c0297729a57d8fefd4743761778e380ae2da1
5,186
py
Python
urizen/generators/buildings/building_stables.py
vurmux/urizen
28b1e60cf8fa2f15622537f6df0290e2ac890d5f
[ "Apache-2.0" ]
107
2020-01-08T21:27:59.000Z
2022-03-19T07:59:23.000Z
urizen/generators/buildings/building_stables.py
hanok2/urizen
28b1e60cf8fa2f15622537f6df0290e2ac890d5f
[ "Apache-2.0" ]
1
2020-05-22T17:54:12.000Z
2021-06-27T01:02:39.000Z
urizen/generators/buildings/building_stables.py
hanok2/urizen
28b1e60cf8fa2f15622537f6df0290e2ac890d5f
[ "Apache-2.0" ]
7
2020-01-08T21:12:11.000Z
2022-03-19T07:59:27.000Z
#!/usr/bin/python3 import random from urizen.core.map import Map from urizen.core.entity_collection import C, T, A from urizen.generators.rooms.room_default import room_default def building_stables(w=16, h=16): """ Construct stables with storage and two rows of horse boxes. Constraints: - Map w...
31.240964
106
0.583301
35feab28b2c6fdfcc48c04694ff07e6cad9113b6
3,548
py
Python
fold_bdd/test_folds.py
mvcisback/bdd-dynamic-programming
b06acb2bd191d9b1cdfe774b7664fd1f6e5ecccf
[ "MIT" ]
null
null
null
fold_bdd/test_folds.py
mvcisback/bdd-dynamic-programming
b06acb2bd191d9b1cdfe774b7664fd1f6e5ecccf
[ "MIT" ]
null
null
null
fold_bdd/test_folds.py
mvcisback/bdd-dynamic-programming
b06acb2bd191d9b1cdfe774b7664fd1f6e5ecccf
[ "MIT" ]
null
null
null
import funcy as fn from itertools import combinations_with_replacement as combinations from itertools import product try: from dd.cudd import BDD except ImportError: from dd.autoref import BDD from fold_bdd import post_order, fold_path from fold_bdd.folds import path def create_manager(): manager = BDD(...
26.477612
67
0.604566
f9cd765dfffa563a28456884dbee10d4e8c2c314
1,245
py
Python
debug/monte_carlo_tests.py
saugatkandel/cvnn
f6d7b5c17fd064a7eaa60e7af922914a974eb69a
[ "MIT" ]
38
2020-09-16T14:47:36.000Z
2022-03-30T13:35:05.000Z
debug/monte_carlo_tests.py
saugatkandel/cvnn
f6d7b5c17fd064a7eaa60e7af922914a974eb69a
[ "MIT" ]
25
2020-10-03T19:30:16.000Z
2022-03-29T15:24:44.000Z
debug/monte_carlo_tests.py
saugatkandel/cvnn
f6d7b5c17fd064a7eaa60e7af922914a974eb69a
[ "MIT" ]
9
2021-01-18T10:48:57.000Z
2022-02-11T10:34:52.000Z
from cvnn.montecarlo import MonteCarlo import tensorflow as tf import layers.__init__ as layers import numpy as np fashion_mnist = tf.keras.datasets.fashion_mnist (train_images, train_labels), (test_images, test_labels) = fashion_mnist.load_data() own_model = tf.keras.Sequential([ layers.ComplexFlatten(input_sh...
35.571429
105
0.738153
a2eb0957bbe5b2cd58c9a9f1770e72cf9ca18378
790
py
Python
config.py
S0n98/myflasky
c0d2d0152ce83afbfb75f307d5078b5f051f2239
[ "MIT" ]
null
null
null
config.py
S0n98/myflasky
c0d2d0152ce83afbfb75f307d5078b5f051f2239
[ "MIT" ]
null
null
null
config.py
S0n98/myflasky
c0d2d0152ce83afbfb75f307d5078b5f051f2239
[ "MIT" ]
null
null
null
import os basedir = os.path.abspath(os.path.dirname(__file__)) class Config(object): LOG_TO_STDOUT = os.environ.get('LOG_TO_STDOUT') SECRET_KEY = os.environ.get('SECRET_KEY') or 'you-will-never-guess' SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL') or 'sqlite:///' + os.path.join(basedir, 'ap...
43.888889
111
0.687342
58847ada4a4d7a881f0cf21d92d5f378d836854b
9,280
py
Python
tests/test_manager.py
gab832/connect-extension-runner
cd9a328f3a154df881170c0b2dd9480a94f0c4c2
[ "Apache-2.0" ]
null
null
null
tests/test_manager.py
gab832/connect-extension-runner
cd9a328f3a154df881170c0b2dd9480a94f0c4c2
[ "Apache-2.0" ]
null
null
null
tests/test_manager.py
gab832/connect-extension-runner
cd9a328f3a154df881170c0b2dd9480a94f0c4c2
[ "Apache-2.0" ]
null
null
null
import asyncio import logging import pytest from connect.client import ClientError from connect.eaas.constants import ( BACKGROUND_TASK_TYPES, INTERACTIVE_TASK_TYPES, RESULT_SENDER_MAX_RETRIES, TASK_TYPE_EXT_METHOD_MAP, ) from connect.eaas.dataclasses import ( Message, MessageType, ResultT...
29.18239
95
0.703879
58b9d4185088baf7b4ebb9ca5f020f9ecc91bdc7
12,233
py
Python
mlresearch/active_learning/_al_refactor/base.py
joaopfonseca/ml-research
a2a063e341010397bd13df812109f31ce05ac9f7
[ "MIT" ]
1
2021-12-13T09:27:06.000Z
2021-12-13T09:27:06.000Z
mlresearch/active_learning/_al_refactor/base.py
joaopfonseca/ml-research
a2a063e341010397bd13df812109f31ce05ac9f7
[ "MIT" ]
20
2021-12-10T11:54:59.000Z
2022-03-18T17:55:33.000Z
mlresearch/active_learning/_al_refactor/base.py
joaopfonseca/ml-research
a2a063e341010397bd13df812109f31ce05ac9f7
[ "MIT" ]
null
null
null
""" Base class for Active Learning models """ # Author: Joao Fonseca <jpfonseca@novaims.unl.pt> # License: MIT from abc import abstractmethod import numpy as np from sklearn.base import ClassifierMixin, BaseEstimator, clone from sklearn.utils import check_X_y from sklearn.ensemble import RandomForestClassifier from...
37.069697
89
0.635739
3e48e787e03f9be48a0a439e41137b5df191cff7
5,136
py
Python
aiozk/test/test_barrier.py
decaz/aiozk
03ca053aa9e06bb528c6e92e4fc93baf78ed00ba
[ "MIT" ]
null
null
null
aiozk/test/test_barrier.py
decaz/aiozk
03ca053aa9e06bb528c6e92e4fc93baf78ed00ba
[ "MIT" ]
null
null
null
aiozk/test/test_barrier.py
decaz/aiozk
03ca053aa9e06bb528c6e92e4fc93baf78ed00ba
[ "MIT" ]
null
null
null
import asyncio import logging import pytest from aiozk import exc log = logging.getLogger(__name__) @pytest.mark.asyncio async def test_barrier(zk, path): is_lifted = False is_worker_started = zk.loop.create_future() async def start_worker(): barrier = zk.recipes.Barrier(path) is_worker...
25.425743
79
0.648364
3993e443c41aa9b60a2b0b4cc0d2f16a96292ca2
4,945
py
Python
homework2-backup/homework2_22.py
nongxi/MachineLearning.io
13e38d41cc9162208efbf48cbe976bc9ad8c4c5d
[ "Apache-2.0" ]
null
null
null
homework2-backup/homework2_22.py
nongxi/MachineLearning.io
13e38d41cc9162208efbf48cbe976bc9ad8c4c5d
[ "Apache-2.0" ]
null
null
null
homework2-backup/homework2_22.py
nongxi/MachineLearning.io
13e38d41cc9162208efbf48cbe976bc9ad8c4c5d
[ "Apache-2.0" ]
null
null
null
import xlrd import matplotlib.pyplot as plt import numpy as np def loadData(filename): workbook = xlrd.open_workbook(filename) boyinfo = workbook.sheet_by_index(0) col_num = boyinfo.ncols row_num = boyinfo.nrows col0 = boyinfo.col_values(0)[1:] data = np.array(col0) if col_num...
21.406926
99
0.528413
242a6de40041c8873023d90a9a60d556e44fc47a
6,918
py
Python
Han Tagger.glyphsPalette/Contents/Resources/plugin.py
3type/Han-Tagger
39eda8fa2ac026ea101e7fdfb437c3ff52528ef3
[ "Apache-2.0" ]
1
2020-12-05T15:25:33.000Z
2020-12-05T15:25:33.000Z
Han Tagger.glyphsPalette/Contents/Resources/plugin.py
3type/Han-Tagger
39eda8fa2ac026ea101e7fdfb437c3ff52528ef3
[ "Apache-2.0" ]
null
null
null
Han Tagger.glyphsPalette/Contents/Resources/plugin.py
3type/Han-Tagger
39eda8fa2ac026ea101e7fdfb437c3ff52528ef3
[ "Apache-2.0" ]
null
null
null
# encoding: utf-8 ########################################################################################################### # # # Palette Plugin # # Read the docs: # https://github.com/schriftgestalt/GlyphsSDK/tree/master/Python%20Templates/Palette # # ################################################################...
36.994652
171
0.689217
b89a9e613f0ea48f209e45d43c9a61f98dad7c9e
1,011
py
Python
odoo-13.0/addons/stock_sms/wizard/confirm_stock_sms.py
VaibhavBhujade/Blockchain-ERP-interoperability
b5190a037fb6615386f7cbad024d51b0abd4ba03
[ "MIT" ]
null
null
null
odoo-13.0/addons/stock_sms/wizard/confirm_stock_sms.py
VaibhavBhujade/Blockchain-ERP-interoperability
b5190a037fb6615386f7cbad024d51b0abd4ba03
[ "MIT" ]
null
null
null
odoo-13.0/addons/stock_sms/wizard/confirm_stock_sms.py
VaibhavBhujade/Blockchain-ERP-interoperability
b5190a037fb6615386f7cbad024d51b0abd4ba03
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import fields, models class ConfirmStockSms(models.TransientModel): _name = 'confirm.stock.sms' _description = 'Confirm Stock SMS' picking_id = fields.Many2one('stock.picking', required=True) ...
36.107143
113
0.683482
36615bbf1f4a85369509568103b1df7569e1bb69
10,071
py
Python
sympy/parsing/tests/test_fortran_parser.py
msgoff/sympy
1e7daef7514902f5e89718fa957b7b36c6669a10
[ "BSD-3-Clause" ]
null
null
null
sympy/parsing/tests/test_fortran_parser.py
msgoff/sympy
1e7daef7514902f5e89718fa957b7b36c6669a10
[ "BSD-3-Clause" ]
null
null
null
sympy/parsing/tests/test_fortran_parser.py
msgoff/sympy
1e7daef7514902f5e89718fa957b7b36c6669a10
[ "BSD-3-Clause" ]
null
null
null
from sympy.testing.pytest import raises from sympy.parsing.sym_expr import SymPyExpression from sympy.external import import_module lfortran = import_module("lfortran") if lfortran: from sympy.codegen.ast import ( Variable, IntBaseType, FloatBaseType, String, Return, ...
34.727586
88
0.468077
418aa3226293a6d722e7a36dc26dd11c15c0c2c7
21,395
py
Python
python/__init__.py
barbinbrad/panda
956c91a99617e7b5a9ca6bf20c2c70235cdd77cb
[ "MIT" ]
null
null
null
python/__init__.py
barbinbrad/panda
956c91a99617e7b5a9ca6bf20c2c70235cdd77cb
[ "MIT" ]
null
null
null
python/__init__.py
barbinbrad/panda
956c91a99617e7b5a9ca6bf20c2c70235cdd77cb
[ "MIT" ]
null
null
null
# python library to interface with panda import datetime import struct import hashlib import socket import usb1 import os import time import traceback import sys from .dfu import PandaDFU # pylint: disable=import-error from .flash_release import flash_release # noqa pylint: disable=import-error from .update import en...
31.556047
112
0.628184
b0f12e9efec0d7e6f2c24a5847eebc4de63597dc
1,789
py
Python
neutron/db/migration/alembic_migrations/versions/52c5e4a18807_lbaas_pool_scheduler.py
kevinbenton/neutron
f27fba3ad77d907713e3e1cbfa45d33e0135c08b
[ "Apache-2.0" ]
null
null
null
neutron/db/migration/alembic_migrations/versions/52c5e4a18807_lbaas_pool_scheduler.py
kevinbenton/neutron
f27fba3ad77d907713e3e1cbfa45d33e0135c08b
[ "Apache-2.0" ]
null
null
null
neutron/db/migration/alembic_migrations/versions/52c5e4a18807_lbaas_pool_scheduler.py
kevinbenton/neutron
f27fba3ad77d907713e3e1cbfa45d33e0135c08b
[ "Apache-2.0" ]
null
null
null
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # # Copyright 2013 OpenStack Foundation # # 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...
33.12963
78
0.680268
5b8919171f7d1022ee6d63e5caf7ea4e68fdea69
4,817
py
Python
Android/NDK/android-ndk-r20b-win/prebuilt/windows-x86_64/share/gdb/python/gdb/function/caller_is.py
X018/CCTOOL
989af4d7edab82bf540400eb72eca4e7447d722c
[ "MIT" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
Android/NDK/android-ndk-r20b-win/prebuilt/windows-x86_64/share/gdb/python/gdb/function/caller_is.py
X018/CCTOOL
989af4d7edab82bf540400eb72eca4e7447d722c
[ "MIT" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
Android/NDK/android-ndk-r20b-win/prebuilt/windows-x86_64/share/gdb/python/gdb/function/caller_is.py
X018/CCTOOL
989af4d7edab82bf540400eb72eca4e7447d722c
[ "MIT" ]
338
2020-04-18T08:03:10.000Z
2022-03-29T12:33:22.000Z
# Caller-is functions. # Copyright (C) 2008-2016 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later ...
29.919255
78
0.660577
cd741a75f5d066a0131ec46749312fd3ffc1b7b3
1,211
py
Python
daemon/examples/api/switch_inject.py
NvanAdrichem/core
09896b008eb416b1ef05e1175a89458c981879a0
[ "BSD-2-Clause" ]
1
2020-10-13T12:44:12.000Z
2020-10-13T12:44:12.000Z
daemon/examples/api/switch_inject.py
lmerat46/core
e11ec020ebbd8df0d1c78d4be249de3c87190587
[ "BSD-2-Clause" ]
null
null
null
daemon/examples/api/switch_inject.py
lmerat46/core
e11ec020ebbd8df0d1c78d4be249de3c87190587
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/python # # run iperf to measure the effective throughput between two nodes when # n nodes are connected to a virtual wlan; run test for testsec # and repeat for minnodes <= n <= maxnodes with a step size of # nodestep from builtins import range from core import load_logging_config from core.emulator.emudata...
28.833333
84
0.733278
e59ab2069f18d2712e64818e93b015e80fc99d13
864
py
Python
test/unit/rules/mappings/test_configuration.py
obobrova/cfn-python-lint
42c0cd89577a39e903e5ef8a337926cc7ff6822c
[ "MIT-0" ]
null
null
null
test/unit/rules/mappings/test_configuration.py
obobrova/cfn-python-lint
42c0cd89577a39e903e5ef8a337926cc7ff6822c
[ "MIT-0" ]
1
2020-04-15T16:36:10.000Z
2020-04-15T16:36:10.000Z
test/unit/rules/mappings/test_configuration.py
obobrova/cfn-python-lint
42c0cd89577a39e903e5ef8a337926cc7ff6822c
[ "MIT-0" ]
1
2020-01-05T01:05:55.000Z
2020-01-05T01:05:55.000Z
""" Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: MIT-0 """ from test.unit.rules import BaseRuleTestCase from cfnlint.rules.mappings.Configuration import Configuration # pylint: disable=E0401 class TestMappingConfiguration(BaseRuleTestCase): """Test template par...
32
95
0.702546
46fa0b885ae5ce16cdded637a6afcd8b0a018d99
2,993
py
Python
huaweicloud-sdk-cbr/huaweicloudsdkcbr/v1/model/show_vault_response.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
64
2020-06-12T07:05:07.000Z
2022-03-30T03:32:50.000Z
huaweicloud-sdk-cbr/huaweicloudsdkcbr/v1/model/show_vault_response.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
11
2020-07-06T07:56:54.000Z
2022-01-11T11:14:40.000Z
huaweicloud-sdk-cbr/huaweicloudsdkcbr/v1/model/show_vault_response.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
24
2020-06-08T11:42:13.000Z
2022-03-04T06:44:08.000Z
# coding: utf-8 import re import six from huaweicloudsdkcore.sdk_response import SdkResponse from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class ShowVaultResponse(SdkResponse): """ Attributes: openapi_types (dict): The key is attribute name a...
26.486726
79
0.547611
73803a3830ea5f7399a086d8da7807540e0c0363
112
py
Python
tests/test_pass.py
fossabot/volt-ci
2bc2fb7465f8442f93f8b17a9ad9233d882e84a5
[ "MIT" ]
null
null
null
tests/test_pass.py
fossabot/volt-ci
2bc2fb7465f8442f93f8b17a9ad9233d882e84a5
[ "MIT" ]
13
2020-06-02T13:07:17.000Z
2022-01-31T15:36:01.000Z
tests/test_pass.py
BrianLusina/shutterbug
5de2788d9be93377d5b7804cee71dddbe261d2f9
[ "MIT" ]
2
2020-06-02T07:51:13.000Z
2020-06-17T18:41:40.000Z
import unittest class TestFilePass(unittest.TestCase): def test_pass(self): self.assertTrue(True)
16
38
0.723214
c1e70cbdaa81a6f6d789674fee09f9a1bdc9ab3e
1,721
py
Python
GenderGuesser/GenderGuesser.py
ylieder/yelp_dataset_analysis
2404753afe6cbaaefa73df77084459c708adca5a
[ "MIT" ]
null
null
null
GenderGuesser/GenderGuesser.py
ylieder/yelp_dataset_analysis
2404753afe6cbaaefa73df77084459c708adca5a
[ "MIT" ]
null
null
null
GenderGuesser/GenderGuesser.py
ylieder/yelp_dataset_analysis
2404753afe6cbaaefa73df77084459c708adca5a
[ "MIT" ]
null
null
null
from pathlib import Path from typing import Optional, Set, Union from .Gender import Gender class GenderGuesser: """ Guess the gender of a given name by looking up in a name table. """ path: Optional[Union[str, Path]] = None female_names: Optional[Set[str]] = None male_names: Optional[Set[str...
33.745098
120
0.590354
6fd7273ad2f467712626d6cc56bfce5a0f41893c
11,808
py
Python
deployer/cluster.py
2i2c-org/infrastructure
8b0589bd008f8f165f5a3862497522363bf38baf
[ "BSD-3-Clause" ]
11
2021-11-12T11:06:41.000Z
2022-03-28T08:59:12.000Z
deployer/cluster.py
2i2c-org/infrastructure
8b0589bd008f8f165f5a3862497522363bf38baf
[ "BSD-3-Clause" ]
344
2021-10-18T20:11:13.000Z
2022-03-31T03:14:47.000Z
deployer/cluster.py
2i2c-org/infrastructure
8b0589bd008f8f165f5a3862497522363bf38baf
[ "BSD-3-Clause" ]
3
2022-02-19T07:02:54.000Z
2022-03-15T19:30:11.000Z
import json import os import subprocess import tempfile from contextlib import contextmanager from pathlib import Path from file_acquisition import get_decrypted_file, get_decrypted_files from hub import Hub from utils import print_colour class Cluster: """ A single k8s cluster we can deploy to """ ...
38.462541
108
0.533706
2c61bcde0ca252cdc74dceacd932dc4a5fa595da
9,160
py
Python
architectures/conll16st-v34-focused-rnns/conll16st_data/relations.py
jimmycallin/master-thesis
5d30df288478ca944338eba353cbc2b84f415ee0
[ "MIT" ]
2
2016-06-21T12:34:23.000Z
2017-05-23T18:34:53.000Z
architectures/conll16st-v34-focused-rnns/conll16st_data/relations.py
jimmycallin/master-thesis
5d30df288478ca944338eba353cbc2b84f415ee0
[ "MIT" ]
null
null
null
architectures/conll16st-v34-focused-rnns/conll16st_data/relations.py
jimmycallin/master-thesis
5d30df288478ca944338eba353cbc2b84f415ee0
[ "MIT" ]
1
2020-06-17T14:07:50.000Z
2020-06-17T14:07:50.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # pylint: disable=C0103 """ Process shallow discourse relations from CoNLL16st corpus (from `relations.json` or `relations-no-senses.json`). """ __author__ = "GW [http://gw.tnode.com/] <gw.2016@tnode.com>" __license__ = "GPLv3+" from files import load_parses, load_raws, lo...
33.430657
112
0.629039
5b40e701749c962477d32debd8988c12c280f220
983
py
Python
my_classes/ScopesClosuresAndDecorators/.history/Decoraators2_20210716221723.py
minefarmer/deep-Dive-1
b0675b853180c5b5781888266ea63a3793b8d855
[ "Unlicense" ]
null
null
null
my_classes/ScopesClosuresAndDecorators/.history/Decoraators2_20210716221723.py
minefarmer/deep-Dive-1
b0675b853180c5b5781888266ea63a3793b8d855
[ "Unlicense" ]
null
null
null
my_classes/ScopesClosuresAndDecorators/.history/Decoraators2_20210716221723.py
minefarmer/deep-Dive-1
b0675b853180c5b5781888266ea63a3793b8d855
[ "Unlicense" ]
null
null
null
""" Decorator Parametors In the previous ideos we saw some built-in decorators that can handle some arguments: @wraps(fn) @lru_cache(maxsize=256) <\ def inner(): def factorial(n): \ ... ... \>function call This should loo...
22.340909
86
0.548321
5f5f178d6022d6f52ed4bb755c1053f50a5cd4f6
1,033
py
Python
release/stubs.min/Autodesk/Revit/DB/Electrical_parts/CableTrayRun.py
htlcnn/ironpython-stubs
780d829e2104b2789d5f4d6f32b0ec9f2930ca03
[ "MIT" ]
182
2017-06-27T02:26:15.000Z
2022-03-30T18:53:43.000Z
release/stubs.min/Autodesk/Revit/DB/Electrical_parts/CableTrayRun.py
htlcnn/ironpython-stubs
780d829e2104b2789d5f4d6f32b0ec9f2930ca03
[ "MIT" ]
28
2017-06-27T13:38:23.000Z
2022-03-15T11:19:44.000Z
release/stubs.min/Autodesk/Revit/DB/Electrical_parts/CableTrayRun.py
htlcnn/ironpython-stubs
780d829e2104b2789d5f4d6f32b0ec9f2930ca03
[ "MIT" ]
67
2017-06-28T09:43:59.000Z
2022-03-20T21:17:10.000Z
class CableTrayRun(CableTrayConduitRunBase,IDisposable): """ This class represents a cable tray run in Autodesk Revit. """ def Dispose(self): """ Dispose(self: Element,A_0: bool) """ pass def getBoundingBox(self,*args): """ getBoundingBox(self: Element,view: View) -> BoundingBoxXYZ """ pass def Rele...
43.041667
215
0.707648
df2b35b735e84a2bf749942d464deb664714d2db
4,283
py
Python
server.py
elegantmoose/caldera
c995b4e3aa207264f9dad0881f4bddab97208e80
[ "Apache-2.0" ]
null
null
null
server.py
elegantmoose/caldera
c995b4e3aa207264f9dad0881f4bddab97208e80
[ "Apache-2.0" ]
null
null
null
server.py
elegantmoose/caldera
c995b4e3aa207264f9dad0881f4bddab97208e80
[ "Apache-2.0" ]
null
null
null
import argparse import asyncio import logging import os import pathlib import sys from importlib import import_module from subprocess import Popen, DEVNULL import aiohttp_jinja2 import jinja2 import yaml from aiohttp import web from app.service.agent_svc import AgentService from app.service.app_svc import AppService ...
38.585586
114
0.695307
758caa954d1eb4adb8ac9870a2648e451f5c53a4
373
py
Python
0167-two-sum-ii/main.py
NotGoodAtCoding/leetcode-samples
f248e8f6b03ac0aa8e32fdc87798a489ddd458ed
[ "BSD-2-Clause" ]
null
null
null
0167-two-sum-ii/main.py
NotGoodAtCoding/leetcode-samples
f248e8f6b03ac0aa8e32fdc87798a489ddd458ed
[ "BSD-2-Clause" ]
null
null
null
0167-two-sum-ii/main.py
NotGoodAtCoding/leetcode-samples
f248e8f6b03ac0aa8e32fdc87798a489ddd458ed
[ "BSD-2-Clause" ]
null
null
null
class Solution: def twoSum(self, numbers: List[int], target: int) -> List[int]: start, end = 0, len(numbers)-1 while start < end: if numbers[start] + numbers[end] == target: return [start+1, end+1] elif numbers[start] + numbers[end] < target: s...
33.909091
67
0.485255
39e727de831d4e02c19c1ecdb4352b5eb1e40e46
16,343
py
Python
discum/user/user.py
reapski/Discord-S.C.U.M
c8d587b7cbb59eccea00ddacd5f494b8597128f4
[ "MIT" ]
null
null
null
discum/user/user.py
reapski/Discord-S.C.U.M
c8d587b7cbb59eccea00ddacd5f494b8597128f4
[ "MIT" ]
1
2022-01-12T02:32:12.000Z
2022-01-12T02:32:12.000Z
discum/user/user.py
reapski/Discord-S.C.U.M
c8d587b7cbb59eccea00ddacd5f494b8597128f4
[ "MIT" ]
null
null
null
import base64 import datetime from ..RESTapiwrap import * from ..utils.contextproperties import ContextProperties class User(object): def __init__(self, discord, s, log): #s is the requests session object self.discord = discord self.s = s self.log = log def requestFriend(self, user): if "#" in user: url ...
39.191847
164
0.712782
7c5d46ba85e60328ea23134afdb9b6eb38edad5d
3,410
py
Python
research/nlp/lstm_crf/export.py
mindspore-ai/models
9127b128e2961fd698977e918861dadfad00a44c
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/nlp/lstm_crf/export.py
mindspore-ai/models
9127b128e2961fd698977e918861dadfad00a44c
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/nlp/lstm_crf/export.py
mindspore-ai/models
9127b128e2961fd698977e918861dadfad00a44c
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
42.098765
120
0.6739
053067061b59e2adf9dc6e9e065627b3f19d807d
1,973
py
Python
tests/common/test_op/resnet/fused_bn_follow_relu_avgpool.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
286
2020-06-23T06:40:44.000Z
2022-03-30T01:27:49.000Z
tests/common/test_op/resnet/fused_bn_follow_relu_avgpool.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
10
2020-07-31T03:26:59.000Z
2021-12-27T15:00:54.000Z
tests/common/test_op/resnet/fused_bn_follow_relu_avgpool.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
30
2020-07-17T01:04:14.000Z
2021-12-27T14:05:19.000Z
# Copyright 2020-2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
35.872727
130
0.700963
6aea39ede8e5f86dfe90ed8760ff1971b2071360
920
py
Python
mundo3/parte6/ex115/dados.py
fcdennis/CursoPython
485ef7e706af74eae9ee336714ddd8b493bd8e5d
[ "MIT" ]
null
null
null
mundo3/parte6/ex115/dados.py
fcdennis/CursoPython
485ef7e706af74eae9ee336714ddd8b493bd8e5d
[ "MIT" ]
null
null
null
mundo3/parte6/ex115/dados.py
fcdennis/CursoPython
485ef7e706af74eae9ee336714ddd8b493bd8e5d
[ "MIT" ]
null
null
null
import csv def leiaInt(msg): while True: try: numInt = int(input(msg)) except: print('ERRO! Digite um número inteiro válido!') else: break return numInt def addData(): with open('cadastro.csv', 'a', newline='') as csv_file: fieldnames = ...
27.058824
93
0.577174
06f4786187bef2c4a8e8149a2848c7847a2aadd8
2,165
py
Python
src/products/api/views.py
caesarorz/complete-ecommerce
35493812167c208c166df3048190a9988adf6bb0
[ "MIT" ]
null
null
null
src/products/api/views.py
caesarorz/complete-ecommerce
35493812167c208c166df3048190a9988adf6bb0
[ "MIT" ]
null
null
null
src/products/api/views.py
caesarorz/complete-ecommerce
35493812167c208c166df3048190a9988adf6bb0
[ "MIT" ]
null
null
null
from rest_framework import serializers from django.db.models import Q from rest_framework.mixins import DestroyModelMixin, UpdateModelMixin from rest_framework.filters import ( SearchFilter, OrderingFilter, ) from rest_framework.generics import ( RetrieveUpdateAPIView, ...
30.492958
85
0.672517
a4c22e78d01a25b38e5d76cc79ccfe658fed9112
276
py
Python
funcx_endpoint/funcx_endpoint/strategies/__init__.py
sirosen/funcX
e41a08ec8d125f0a7c86cf2b3ca1c7e87ed3a0fc
[ "Apache-1.1" ]
86
2019-05-16T21:48:37.000Z
2022-03-10T03:03:27.000Z
funcx_endpoint/funcx_endpoint/strategies/__init__.py
Loonride/funcX
95ae788eac14397a5ec042f0a2ad05c14030b807
[ "Apache-1.1" ]
520
2019-06-05T15:42:59.000Z
2022-03-31T21:33:32.000Z
funcx_endpoint/funcx_endpoint/strategies/__init__.py
Loonride/funcX
95ae788eac14397a5ec042f0a2ad05c14030b807
[ "Apache-1.1" ]
33
2019-07-21T20:26:14.000Z
2022-01-31T23:43:10.000Z
from funcx_endpoint.strategies.base import BaseStrategy from funcx_endpoint.strategies.simple import SimpleStrategy from funcx_endpoint.strategies.kube_simple import KubeSimpleStrategy __all__ = ['BaseStrategy', 'SimpleStrategy', 'KubeSimpleStrategy']
30.666667
68
0.789855
27ced12c8f5a3b838c906a737022d6b280c84ddf
4,136
py
Python
src/sentry/interfaces/sdk.py
SamHausmann/sentry
825d668cf8b487780dc3952662575d7fe20fbffb
[ "BSD-3-Clause" ]
2
2019-03-04T12:45:54.000Z
2019-03-04T12:45:55.000Z
src/sentry/interfaces/sdk.py
SamHausmann/sentry
825d668cf8b487780dc3952662575d7fe20fbffb
[ "BSD-3-Clause" ]
null
null
null
src/sentry/interfaces/sdk.py
SamHausmann/sentry
825d668cf8b487780dc3952662575d7fe20fbffb
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import import logging __all__ = ('Sdk', ) from distutils.version import LooseVersion from django.conf import settings from sentry.interfaces.base import Interface, prune_empty_keys from sentry.net.http import Session from sentry.cache import default_cache logger = logging.getLogger...
26.177215
90
0.560445
f46f09ae5817533d0cfe0b7009dcf7d9cdeec642
808
py
Python
PythonExercicios/ex106.py
marcoantonio97/Curso-de-Python
b99c6c75e2b845086203b84a71a4013c0658dc44
[ "MIT" ]
null
null
null
PythonExercicios/ex106.py
marcoantonio97/Curso-de-Python
b99c6c75e2b845086203b84a71a4013c0658dc44
[ "MIT" ]
null
null
null
PythonExercicios/ex106.py
marcoantonio97/Curso-de-Python
b99c6c75e2b845086203b84a71a4013c0658dc44
[ "MIT" ]
null
null
null
from time import sleep c = ( '\033[m', # 0 - sem cor '\033[0;30;41m', # 1 - vermelho '\033[0;30;42m', # 2 - verde '\033[0;30;43m', # 3 - amarelo '\033[0;30;44m', # 4 - azul '\033[0;30;45m', # 5 - roxo '\033[0;30;46m', # 6 - branco ) def ajuda(com): título(f'Acessando o comand...
21.837838
51
0.5
1e016aaeca2a29842b3bf90b7162c514ff7ff777
854
py
Python
chapter11-Gluon/11.1-GluonBasis/11.1.2-nn-API/nn_sequential.py
JeremXu/MXNet-Deep-Learning-in-Action
a069e8c75f0799e3be80cd27fdeb67531c7df3dd
[ "Apache-2.0" ]
110
2018-11-21T11:34:41.000Z
2022-03-06T06:18:28.000Z
chapter11-Gluon/11.1-GluonBasis/11.1.2-nn-API/nn_sequential.py
stefanjoe/MXNet-Deep-Learning-in-Action
a069e8c75f0799e3be80cd27fdeb67531c7df3dd
[ "Apache-2.0" ]
5
2019-03-06T07:37:25.000Z
2019-10-26T03:39:17.000Z
chapter11-Gluon/11.1-GluonBasis/11.1.2-nn-API/nn_sequential.py
stefanjoe/MXNet-Deep-Learning-in-Action
a069e8c75f0799e3be80cd27fdeb67531c7df3dd
[ "Apache-2.0" ]
52
2019-02-01T08:02:09.000Z
2021-12-19T12:25:36.000Z
import mxnet as mx from mxnet.gluon import nn fc = nn.Dense(2) fc.initialize() data = mx.nd.random.uniform(1,5,(4,3)) print("Input data:") print(data) output = fc(data) print("FC layer result:") print(output) print("FC layer weight:") print(fc.weight.data()) ############################# mxnet.gluon.nn.Sequential() #...
25.117647
83
0.624122
1e3af18f301526033dfaae9ffea1ce55e0370ba9
7,372
py
Python
imcsdk/mometa/power/PowerBudget.py
ragupta-git/ImcSdk
2e41f2ffe5282d38de85bc4739fa53dd2f0c9bb4
[ "Apache-2.0" ]
null
null
null
imcsdk/mometa/power/PowerBudget.py
ragupta-git/ImcSdk
2e41f2ffe5282d38de85bc4739fa53dd2f0c9bb4
[ "Apache-2.0" ]
null
null
null
imcsdk/mometa/power/PowerBudget.py
ragupta-git/ImcSdk
2e41f2ffe5282d38de85bc4739fa53dd2f0c9bb4
[ "Apache-2.0" ]
3
2018-11-14T13:02:40.000Z
2018-11-14T13:49:38.000Z
"""This module contains the general information for PowerBudget ManagedObject.""" from ...imcmo import ManagedObject from ...imccoremeta import MoPropertyMeta, MoMeta from ...imcmeta import VersionMeta class PowerBudgetConsts: ADMIN_ACTION_RESET_POWER_PROFILE_DEFAULT = "reset-power-profile-default" ADMIN_ACT...
64.104348
252
0.638497
df5a994ea37bf4d3e0135d57519940983ea6b5dc
5,959
py
Python
utils/detector_utils.py
acethespy/peasantsaber
bd9c74cad3254b02265a78cd9f11b71f9e4426ea
[ "Apache-2.0" ]
null
null
null
utils/detector_utils.py
acethespy/peasantsaber
bd9c74cad3254b02265a78cd9f11b71f9e4426ea
[ "Apache-2.0" ]
null
null
null
utils/detector_utils.py
acethespy/peasantsaber
bd9c74cad3254b02265a78cd9f11b71f9e4426ea
[ "Apache-2.0" ]
null
null
null
# Utilities for object detector. import sys import cv2 import os import numpy as np import tensorflow as tf from threading import Thread from datetime import datetime from utils import label_map_util from collections import defaultdict from utils import circlemanager detection_graph = tf.Graph() sys.path.append("..")...
37.955414
100
0.671589
94367740f87816ff12e2b9c926003f405cb247c5
15,631
py
Python
src/simulation.py
thenets/simulacovid
b2501b79647a3b7f6964cf74076e3300cbd85251
[ "MIT" ]
null
null
null
src/simulation.py
thenets/simulacovid
b2501b79647a3b7f6964cf74076e3300cbd85251
[ "MIT" ]
null
null
null
src/simulation.py
thenets/simulacovid
b2501b79647a3b7f6964cf74076e3300cbd85251
[ "MIT" ]
null
null
null
import os import sys sys.path.insert(0,'./model/') import streamlit as st from models import BackgroundColor, Document, Strategies, SimulatorOutput, KPI from typing import List import utils import plotly.express as px import yaml import loader from model import simulator def add_all(x, all_string='Todos'): ...
40.705729
186
0.61007
e36f0b83d0d5120c05cc7a902ba9e1372a222c1e
4,786
py
Python
lol/datatypes/string.py
pranavbaburaj/poop.py
bde8b9fb5712f39d435fe70dd8aa57669c7c0ed0
[ "MIT" ]
12
2021-02-16T06:14:34.000Z
2021-12-13T16:46:35.000Z
lol/datatypes/string.py
pranavbaburaj/poop.py
bde8b9fb5712f39d435fe70dd8aa57669c7c0ed0
[ "MIT" ]
1
2021-07-15T11:02:05.000Z
2021-07-15T11:02:05.000Z
lol/datatypes/string.py
pranavbaburaj/poop.py
bde8b9fb5712f39d435fe70dd8aa57669c7c0ed0
[ "MIT" ]
5
2021-02-10T08:46:19.000Z
2021-02-11T06:39:33.000Z
import string # string data types # strings are groups # of characters class String(): def __init__(self, string_object): # the main string self.__string = str(string_object) # get the length of the # string def length(self): return len(self.__string) # ...
29.361963
97
0.541371
3e8c1ad954d0b8a61fd923fb1f82c8775d3c7a80
1,475
py
Python
profiles_api/serializers.py
JuanLivinalli/profiles-rest-api
7ce7bba3bb1aeb716686920a6d2256d116eddf1f
[ "MIT" ]
null
null
null
profiles_api/serializers.py
JuanLivinalli/profiles-rest-api
7ce7bba3bb1aeb716686920a6d2256d116eddf1f
[ "MIT" ]
null
null
null
profiles_api/serializers.py
JuanLivinalli/profiles-rest-api
7ce7bba3bb1aeb716686920a6d2256d116eddf1f
[ "MIT" ]
null
null
null
from rest_framework import serializers from profiles_api import models class HelloSerializer(serializers.Serializer): """Serializes a name field for testing our APIView""" name = serializers.CharField(max_length=10) class UserProfileSerializer(serializers.ModelSerializer): """Serializes a user profile obj...
32.065217
68
0.629831
f505ec9566d1b9b4197cc3ce96bde2c6d153998b
188
py
Python
src/autoinfo/data/plain/engine.py
JeyKip/autoinfo-scrapper
ca0cb87b1d9486b71928fb08df734fc1413b7967
[ "MIT" ]
null
null
null
src/autoinfo/data/plain/engine.py
JeyKip/autoinfo-scrapper
ca0cb87b1d9486b71928fb08df734fc1413b7967
[ "MIT" ]
null
null
null
src/autoinfo/data/plain/engine.py
JeyKip/autoinfo-scrapper
ca0cb87b1d9486b71928fb08df734fc1413b7967
[ "MIT" ]
null
null
null
from .entity import Entity class Engine(Entity): def __init__(self, _id=None, code=None, name=None): self.code = code self.name = name super().__init__(_id)
18.8
55
0.62234
181f647b41a87c4afca8c2ba00526261d52367c9
1,784
py
Python
src/constants.py
taylor-madeak/py-bubbles
b76af492c8a104dda81da2dda8bc24829ea3eb18
[ "MIT" ]
null
null
null
src/constants.py
taylor-madeak/py-bubbles
b76af492c8a104dda81da2dda8bc24829ea3eb18
[ "MIT" ]
null
null
null
src/constants.py
taylor-madeak/py-bubbles
b76af492c8a104dda81da2dda8bc24829ea3eb18
[ "MIT" ]
1
2018-06-28T20:01:06.000Z
2018-06-28T20:01:06.000Z
import os from src.settings import Settings __all__ = [ "DISP_SIZE", "PFLD_SIZE", "CELL_SIZE", "DISP_FSCR", "BGM_PATH", "SFX_PATH", "BGI_PATH", "SPR_PATH", "BGM_ENABLED", "SFX_ENABLED", "SFX_VOLUME", "BGM_VOLUME", "INPUT_DEV", "MV_UP", "MV_LEFT", "MV_DOWN", "MV_RIGHT", "ACCEPT", "CANCEL", "config", "...
40.545455
107
0.659193
fb5f84f2a5e3772d5e838d63c8ae359a0a967e2c
54,271
py
Python
GAnfoMoviesImporter.bundle/Contents/Code/__init__.py
codeanator/PGMA-Modernized
2ca775e26e5f632a0c8f4b50bbaebc1765125fdf
[ "MIT" ]
null
null
null
GAnfoMoviesImporter.bundle/Contents/Code/__init__.py
codeanator/PGMA-Modernized
2ca775e26e5f632a0c8f4b50bbaebc1765125fdf
[ "MIT" ]
1
2022-02-22T08:44:32.000Z
2022-03-17T17:19:06.000Z
GAnfoMoviesImporter.bundle/Contents/Code/__init__.py
codeanator/PGMA-Modernized
2ca775e26e5f632a0c8f4b50bbaebc1765125fdf
[ "MIT" ]
null
null
null
# coding=utf-8 """ XBMCnfoMoviesImporter spec'd from: http://wiki.xbmc.org/index.php?title=Import_-_Export_Library#Video_nfo_Files CREDITS: Original code author: .......... Harley Hooligan Modified by: ................... Guillaume Boudreau Eden and Frodo compatibility: .. Jorge Amigo Cleanup and so...
43.591165
174
0.474508
e59b44f218c57112da372d984cdee89cce33f4e8
2,042
py
Python
dedoc/readers/docx_reader/data_structures/run.py
IlyaKozlov/dedoc
aa25a8868b5fd61314a32de2e22871a6d10fa3be
[ "Apache-2.0" ]
null
null
null
dedoc/readers/docx_reader/data_structures/run.py
IlyaKozlov/dedoc
aa25a8868b5fd61314a32de2e22871a6d10fa3be
[ "Apache-2.0" ]
null
null
null
dedoc/readers/docx_reader/data_structures/run.py
IlyaKozlov/dedoc
aa25a8868b5fd61314a32de2e22871a6d10fa3be
[ "Apache-2.0" ]
null
null
null
from typing import Optional from bs4 import BeautifulSoup from dedoc.readers.docx_reader.data_structures.base_props import BaseProperties from dedoc.readers.docx_reader.properties_extractor import change_caps class Run(BaseProperties): def __init__(self, properties: Optional[BaseProperties], ...
32.412698
79
0.532811
95628654b21823303f0261b3498b2f7633d8ac30
1,604
py
Python
benchmarking/definitions/definition_distilbert_on_imdb.py
hfurkanbozkurt/syne-tune
05ee2668f0155b40c3ee3b61e4b3d58f3f9f3c4f
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
benchmarking/definitions/definition_distilbert_on_imdb.py
hfurkanbozkurt/syne-tune
05ee2668f0155b40c3ee3b61e4b3d58f3f9f3c4f
[ "ECL-2.0", "Apache-2.0" ]
1
2022-02-25T15:56:36.000Z
2022-02-25T17:53:10.000Z
benchmarking/definitions/definition_distilbert_on_imdb.py
hfurkanbozkurt/syne-tune
05ee2668f0155b40c3ee3b61e4b3d58f3f9f3c4f
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright 2021 Amazon.com, Inc. or its affiliates. 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. # A copy of the License is located at # # http://www.apache.org/licenses/LICENSE-2.0 # # or in the "license...
34.12766
118
0.69389
8112c4b1e159a7004aaa3f71ac921856ae7ca95d
235
py
Python
output/models/nist_data/atomic/qname/schema_instance/nistschema_sv_iv_atomic_qname_length_3_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/nist_data/atomic/qname/schema_instance/nistschema_sv_iv_atomic_qname_length_3_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/nist_data/atomic/qname/schema_instance/nistschema_sv_iv_atomic_qname_length_3_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from output.models.nist_data.atomic.qname.schema_instance.nistschema_sv_iv_atomic_qname_length_3_xsd.nistschema_sv_iv_atomic_qname_length_3 import NistschemaSvIvAtomicQnameLength3 __all__ = [ "NistschemaSvIvAtomicQnameLength3", ]
39.166667
179
0.885106
e1420d10d136947822d6c647d3ebdbe9ef9ce32a
6,115
py
Python
CanvasSync/utilities/helpers.py
jnbli/CanvasSync
763eeb91d092aaaf225ea46abcfc5dd0a4a0f8c0
[ "MIT" ]
null
null
null
CanvasSync/utilities/helpers.py
jnbli/CanvasSync
763eeb91d092aaaf225ea46abcfc5dd0a4a0f8c0
[ "MIT" ]
null
null
null
CanvasSync/utilities/helpers.py
jnbli/CanvasSync
763eeb91d092aaaf225ea46abcfc5dd0a4a0f8c0
[ "MIT" ]
null
null
null
""" CanvasSync by Mathias Perslev February 2017 -------------------------------------------- static_function.py, module A collection of small static helper-functions used in various modules of CanvasSync. """ # TODO # - Improve domain validation check, it is quite limit at this moment # - (find better solution to ...
38.21875
121
0.65462
48a63cf90d1f160eda0112e0db779cbec63eb2e3
4,695
py
Python
test/test_pyembc.py
waszil/pyembc
52fd5c13317f822e8ef0a330c4bcbb7f2d7e0521
[ "MIT" ]
6
2020-09-03T22:13:40.000Z
2021-11-07T16:35:18.000Z
test/test_pyembc.py
waszil/pyembc
52fd5c13317f822e8ef0a330c4bcbb7f2d7e0521
[ "MIT" ]
null
null
null
test/test_pyembc.py
waszil/pyembc
52fd5c13317f822e8ef0a330c4bcbb7f2d7e0521
[ "MIT" ]
2
2021-11-02T17:19:59.000Z
2022-01-10T18:47:14.000Z
import time from ctypes import c_ubyte, c_uint16, c_uint8, c_uint32, c_float, c_int8 import construct import pytest from pyembc.pyembc import pyembc_struct, pyembc_union def test_compare_construct_benchmark(): NA = construct.Struct( "send_mode" / construct.Struct( "a" / construct.Int8ub, ...
19.726891
72
0.545048
fe8425d4c838c6c6fb7ad1599a8991cf11d6bf38
1,142
py
Python
app.py
hsbatta/apply.io
52ccc66cb4368e80af1e7c52f501d1ac9db27955
[ "Apache-2.0" ]
null
null
null
app.py
hsbatta/apply.io
52ccc66cb4368e80af1e7c52f501d1ac9db27955
[ "Apache-2.0" ]
null
null
null
app.py
hsbatta/apply.io
52ccc66cb4368e80af1e7c52f501d1ac9db27955
[ "Apache-2.0" ]
1
2021-03-29T08:06:24.000Z
2021-03-29T08:06:24.000Z
from flask import Flask, flash, redirect, render_template, request, session, abort from main import EasyApplyLinkedin import json import threading app = Flask(__name__, static_folder='templates/') @app.route('/') def index(): return render_template('info.html') #'<h1>Hello World, {}.</h1>'.format(name) @app.route...
30.864865
90
0.710158
0a060f716f3561b84cc6e9c551812f91511f049c
1,068
py
Python
easyai/config/utility/image_task_config.py
lpj0822/image_point_cloud_det
7b20e2f42f3f2ff4881485da58ad188a1f0d0e0f
[ "MIT" ]
1
2020-09-05T09:18:56.000Z
2020-09-05T09:18:56.000Z
easyai/config/utility/image_task_config.py
lpj0822/image_point_cloud_det
7b20e2f42f3f2ff4881485da58ad188a1f0d0e0f
[ "MIT" ]
8
2020-04-20T02:18:55.000Z
2022-03-12T00:24:50.000Z
easyai/config/utility/image_task_config.py
lpj0822/image_point_cloud_det
7b20e2f42f3f2ff4881485da58ad188a1f0d0e0f
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- # Author: import os from easyai.config.utility.base_config import BaseConfig class ImageTaskConfig(BaseConfig): def __init__(self): super().__init__() # data self.image_size = None # W * H # test self.test_batch_size = 1 ...
27.384615
85
0.645131
7e209fab3e22d19fdd1eefaec1aa6fcfb4696890
10,170
py
Python
aws_lambda_powertools/utilities/data_classes/dynamo_db_stream_event.py
eldritchideen/aws-lambda-powertools-python
d2d6e34cf9fce2e6d9725271d63f87902c80e586
[ "MIT-0" ]
160
2019-11-18T19:35:17.000Z
2020-05-17T01:43:05.000Z
aws_lambda_powertools/utilities/data_classes/dynamo_db_stream_event.py
eldritchideen/aws-lambda-powertools-python
d2d6e34cf9fce2e6d9725271d63f87902c80e586
[ "MIT-0" ]
119
2021-11-01T17:18:59.000Z
2022-03-31T17:19:57.000Z
aws_lambda_powertools/utilities/data_classes/dynamo_db_stream_event.py
eldritchideen/aws-lambda-powertools-python
d2d6e34cf9fce2e6d9725271d63f87902c80e586
[ "MIT-0" ]
24
2019-12-04T22:30:54.000Z
2020-05-11T05:37:02.000Z
from enum import Enum from typing import Any, Dict, Iterator, List, Optional, Union from aws_lambda_powertools.utilities.data_classes.common import DictWrapper class AttributeValueType(Enum): Binary = "B" BinarySet = "BS" Boolean = "BOOL" List = "L" Map = "M" Number = "N" NumberSet = "NS"...
33.344262
114
0.62527
d3365433c01f629627bfd42e50e315d954857dcc
339
py
Python
examples/README_client_library_in_destination.py
resync/resync
3577a202b5bf44b9e2305cfd20c24387b51bce1f
[ "Apache-2.0" ]
23
2015-06-30T11:37:28.000Z
2021-11-08T10:27:56.000Z
examples/README_client_library_in_destination.py
resync/resync
3577a202b5bf44b9e2305cfd20c24387b51bce1f
[ "Apache-2.0" ]
37
2015-03-24T14:03:04.000Z
2021-03-23T14:56:11.000Z
examples/README_client_library_in_destination.py
resync/resync
3577a202b5bf44b9e2305cfd20c24387b51bce1f
[ "Apache-2.0" ]
8
2015-08-13T11:48:25.000Z
2020-12-10T16:53:25.000Z
#!/usr/bin/env python from resync import CapabilityList # Read Capability List and show supported capabilities cl = CapabilityList() cl.read("https://raw.github.com/resync/resync/0.6/resync/test/testdata/examples_from_spec/resourcesync_ex_2_6.xml") for resource in cl: print "supports %s (at %s)" % (resource.capabi...
37.666667
115
0.775811
649f729dd5def3ad07a6cd44df2b709a6d0f973d
109
py
Python
python3/koans/joes.py
polarization/python_koans
bd0f78a66d7fa60272d21bb24202ebff87e73e41
[ "MIT" ]
null
null
null
python3/koans/joes.py
polarization/python_koans
bd0f78a66d7fa60272d21bb24202ebff87e73e41
[ "MIT" ]
null
null
null
python3/koans/joes.py
polarization/python_koans
bd0f78a66d7fa60272d21bb24202ebff87e73e41
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- class Dog: def identify(self): return "joes dog"
13.625
25
0.559633
54ea2ca8137ae359fefac4590fec527d36a31e3b
2,062
py
Python
cohesity_management_sdk/models/sample.py
sachinthakare-cohesity/management-sdk-python
c95f67b7d387d5bab8392be43190e598280ae7b5
[ "MIT" ]
null
null
null
cohesity_management_sdk/models/sample.py
sachinthakare-cohesity/management-sdk-python
c95f67b7d387d5bab8392be43190e598280ae7b5
[ "MIT" ]
null
null
null
cohesity_management_sdk/models/sample.py
sachinthakare-cohesity/management-sdk-python
c95f67b7d387d5bab8392be43190e598280ae7b5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2019 Cohesity Inc. class Sample(object): """Implementation of the 'Sample.' model. Specifies a sample of data collected at a timestamp. Attributes: float_value (float): Specifies the value of the data sample if the type is float64. This field is n...
29.457143
81
0.602328
ef4e2c7067afc2eae9bc59d406e14835812f1003
1,671
py
Python
python_code/vnev/Lib/site-packages/jdcloud_sdk/services/clouddnsservice/apis/GetViewTreeRequest.py
Ureimu/weather-robot
7634195af388538a566ccea9f8a8534c5fb0f4b6
[ "MIT" ]
14
2018-04-19T09:53:56.000Z
2022-01-27T06:05:48.000Z
python_code/vnev/Lib/site-packages/jdcloud_sdk/services/clouddnsservice/apis/GetViewTreeRequest.py
Ureimu/weather-robot
7634195af388538a566ccea9f8a8534c5fb0f4b6
[ "MIT" ]
15
2018-09-11T05:39:54.000Z
2021-07-02T12:38:02.000Z
python_code/vnev/Lib/site-packages/jdcloud_sdk/services/clouddnsservice/apis/GetViewTreeRequest.py
Ureimu/weather-robot
7634195af388538a566ccea9f8a8534c5fb0f4b6
[ "MIT" ]
33
2018-04-20T05:29:16.000Z
2022-02-17T09:10:05.000Z
# coding=utf8 # Copyright 2018 JDCLOUD.COM # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
29.315789
85
0.682825
bcbb157801b4533e36384b543dfa1d2bf8190dbe
6,190
py
Python
demo/digits/best_classifier/SVHN2MNIST/analysis_IW.py
sangdon/calibration-under-covariateshift
b1ed33d253a0c2539f8dd910b9ffa63150a14383
[ "Apache-2.0" ]
2
2021-05-18T05:43:19.000Z
2021-08-23T02:23:13.000Z
demo/digits/best_classifier/SVHN2MNIST/analysis_IW.py
sangdon/calibration-under-covariateshift
b1ed33d253a0c2539f8dd910b9ffa63150a14383
[ "Apache-2.0" ]
null
null
null
demo/digits/best_classifier/SVHN2MNIST/analysis_IW.py
sangdon/calibration-under-covariateshift
b1ed33d253a0c2539f8dd910b9ffa63150a14383
[ "Apache-2.0" ]
null
null
null
import os, sys import torch as tc import torch.tensor as T import pickle import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt from matplotlib.backends.backend_pdf import PdfPages ##-------------------------------------------------- from exp_SVHN2MNIST import exp sys.path.append("../../") sys.path....
35.371429
124
0.596931
7e51acafc24bba5d802e00feb46b41ad6092e47c
613
py
Python
octicons16px/device_desktop.py
andrewp-as-is/octicons16px.py
1272dc9f290619d83bd881e87dbd723b0c48844c
[ "Unlicense" ]
1
2021-01-28T06:47:39.000Z
2021-01-28T06:47:39.000Z
octicons16px/device_desktop.py
andrewp-as-is/octicons16px.py
1272dc9f290619d83bd881e87dbd723b0c48844c
[ "Unlicense" ]
null
null
null
octicons16px/device_desktop.py
andrewp-as-is/octicons16px.py
1272dc9f290619d83bd881e87dbd723b0c48844c
[ "Unlicense" ]
null
null
null
OCTICON_DEVICE_DESKTOP = """ <svg class="octicon octicon-device-desktop" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M1.75 2.5h12.5a.25.25 0 01.25.25v7.5a.25.25 0 01-.25.25H1.75a.25.25 0 01-.25-.25v-7.5a.25.25 0 01.25-.25zM14.25 1H1.75A1.75 1.75 0 000 2.75...
122.6
578
0.67863
cf69a6a01fed9c2abbbba9b7d31f1f90d6d72011
84,860
py
Python
src/models/OneClass_SVDD.py
chihyunsong/oc-nn
f57130545f221fee67e9780d2a93ca48b9d10ba5
[ "MIT" ]
203
2018-02-26T09:52:15.000Z
2022-03-09T12:51:38.000Z
src/models/OneClass_SVDD.py
dherath/oc-nn
f57130545f221fee67e9780d2a93ca48b9d10ba5
[ "MIT" ]
22
2018-05-07T19:36:49.000Z
2022-03-30T04:00:25.000Z
src/models/OneClass_SVDD.py
dherath/oc-nn
f57130545f221fee67e9780d2a93ca48b9d10ba5
[ "MIT" ]
81
2018-02-22T21:17:49.000Z
2022-03-24T04:53:46.000Z
# import the necessary packages import numpy as np from src.data.preprocessing import learn_dictionary, global_contrast_normalization from sklearn.metrics import average_precision_score, mean_squared_error from sklearn.metrics import roc_auc_score from sklearn.metrics import precision_score from sklearn.feature_extra...
40.256167
161
0.579602
9bf8263aaed37a6a9c4a2cd0030ac80099a6dfdd
601
py
Python
losses/l1_norm_loss.py
MohammadrezaBanaei/orientation_based_embedding_compression
779ca202a06ff1a447478c0fdd4fe6b5328484ab
[ "MIT" ]
9
2021-06-17T04:11:43.000Z
2022-01-06T09:26:43.000Z
losses/l1_norm_loss.py
MohammadrezaBanaei/orientation_based_embedding_compression
779ca202a06ff1a447478c0fdd4fe6b5328484ab
[ "MIT" ]
null
null
null
losses/l1_norm_loss.py
MohammadrezaBanaei/orientation_based_embedding_compression
779ca202a06ff1a447478c0fdd4fe6b5328484ab
[ "MIT" ]
2
2021-08-03T12:30:35.000Z
2021-12-12T22:12:16.000Z
from typing import Dict import torch from torch import nn def l1_norm_loss(output: torch.tensor, target: torch.tensor, epoch: int, config: Dict, changing_epochs_num: int, epsilon: float = 1e-10): start_alpha = config['start_alpha'] end_alpha = config['end_alpha'] if epoch >= changing_epochs_num: ...
33.388889
137
0.715474
ea15e83108705c8b517438b11bccd7c35b74e8da
7,774
py
Python
docs/conf.py
goteamup/python-kit
af37fe25697b700414f3db62e3e8e43687b3f501
[ "Apache-2.0" ]
11
2015-02-27T23:57:25.000Z
2020-06-28T15:15:20.000Z
docs/conf.py
goteamup/python-kit
af37fe25697b700414f3db62e3e8e43687b3f501
[ "Apache-2.0" ]
29
2015-03-02T10:01:37.000Z
2021-04-28T13:21:49.000Z
docs/conf.py
goteamup/python-kit
af37fe25697b700414f3db62e3e8e43687b3f501
[ "Apache-2.0" ]
22
2015-02-18T13:59:04.000Z
2020-12-31T22:24:34.000Z
# -*- coding: utf-8 -*- # # Prismic documentation build configuration file, created by # sphinx-quickstart on Tue Oct 1 11:23:24 2013. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All...
31.99177
80
0.714047
5be11cdb76d88bcbe7bc821859e51bc0c855d268
61,667
py
Python
chainconsumer/plotter.py
Jiaming1999/ChainConsumer
5606696525d91f11d8093085934fa352b98ce97c
[ "MIT" ]
55
2016-08-31T01:02:41.000Z
2022-03-15T15:23:29.000Z
chainconsumer/plotter.py
Jiaming1999/ChainConsumer
5606696525d91f11d8093085934fa352b98ce97c
[ "MIT" ]
86
2016-10-09T23:20:00.000Z
2022-03-23T09:55:57.000Z
chainconsumer/plotter.py
Jiaming1999/ChainConsumer
5606696525d91f11d8093085934fa352b98ce97c
[ "MIT" ]
17
2016-08-31T08:35:37.000Z
2021-07-24T16:39:26.000Z
# -*- coding: utf-8 -*- import logging import numpy as np import matplotlib.pyplot as plt import matplotlib from matplotlib.font_manager import FontProperties from matplotlib.ticker import MaxNLocator, ScalarFormatter, LogLocator from matplotlib.textpath import TextPath from numpy import meshgrid from scipy.interpolate...
44.816134
153
0.555175
e02daaaf2468811565e17245281133ed39d703c8
2,475
py
Python
gmr/utils.py
mralbu/gmr
d6657593dcbfeae078163875e2737a2b280f5d1c
[ "BSD-3-Clause" ]
null
null
null
gmr/utils.py
mralbu/gmr
d6657593dcbfeae078163875e2737a2b280f5d1c
[ "BSD-3-Clause" ]
null
null
null
gmr/utils.py
mralbu/gmr
d6657593dcbfeae078163875e2737a2b280f5d1c
[ "BSD-3-Clause" ]
null
null
null
import numpy as np from scipy import linalg import numbers # Taken from scikit learn to get rid of the dependency def check_random_state(seed): """Turn seed into a np.random.RandomState instance If seed is None, return the RandomState singleton used by np.random. If seed is an int, return a new RandomSt...
29.819277
78
0.631919
ecc7f96ecad2be7034da77ad0902331c301950d4
3,715
py
Python
setup.py
mvdbeek/sequence_utils
fa12390dab3780392729870f1d20508462d37671
[ "CC-BY-3.0" ]
null
null
null
setup.py
mvdbeek/sequence_utils
fa12390dab3780392729870f1d20508462d37671
[ "CC-BY-3.0" ]
null
null
null
setup.py
mvdbeek/sequence_utils
fa12390dab3780392729870f1d20508462d37671
[ "CC-BY-3.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import ast import os import re try: from setuptools import setup except ImportError: from distutils.core import setup SOURCE_DIR = "galaxy_utils" with open('%s/__init__.py' % SOURCE_DIR, 'rb') as f: init_contents = f.read().decode('utf-8') def get_var(va...
35.721154
105
0.701211
e6a7c1731472bd8239e55fbcd6baddb63501cd8a
553
py
Python
tests/unitaires/favorites/test_favourite_models.py
plegulluche/OPC-P11
9705d56bb77bb548495954c80af02d421dcbf3a2
[ "Unlicense" ]
null
null
null
tests/unitaires/favorites/test_favourite_models.py
plegulluche/OPC-P11
9705d56bb77bb548495954c80af02d421dcbf3a2
[ "Unlicense" ]
null
null
null
tests/unitaires/favorites/test_favourite_models.py
plegulluche/OPC-P11
9705d56bb77bb548495954c80af02d421dcbf3a2
[ "Unlicense" ]
null
null
null
import pytest from favorites.models import FavouriteProduct from account.models import Account from products.models import Product @pytest.mark.django_db def test_favorites_model(): user = Account.objects.create( username="blob", email="blob@blobmail.com", password="SuperPass1234" ) product = Pro...
30.722222
76
0.757685
a631ee802c15ba4dc74015764ea60062440977ed
25,525
py
Python
src/olympus/emulators/emulator.py
aspuru-guzik-group/olympus
bbeb991c4c1929474a0b1a4435a5eed566d30542
[ "MIT" ]
36
2020-10-10T14:05:40.000Z
2022-02-12T07:21:47.000Z
src/olympus/emulators/emulator.py
kiminh/olympus
054f7b4012faf6e516b5e4c895093c9fea0c793f
[ "MIT" ]
12
2020-10-14T09:04:06.000Z
2021-10-01T19:25:34.000Z
src/olympus/emulators/emulator.py
kiminh/olympus
054f7b4012faf6e516b5e4c895093c9fea0c793f
[ "MIT" ]
8
2020-10-24T12:43:45.000Z
2022-02-12T07:21:50.000Z
#!/usr/bin/env python import os import numpy as np import pickle import shutil from glob import glob from copy import deepcopy from tempfile import TemporaryDirectory from sklearn.metrics import r2_score from olympus import __emulator_path__, __scratch__, __version__, Logger from olympus.datasets.dataset import Datas...
42.330017
127
0.6
e3d3b70764580d922b452fa3f7c97c444a75bd8e
120,340
py
Python
electrumx/lib/coins.py
Deadpool205/electrumx
f377b15820c993bab4906072553c849b46e8c7e3
[ "MIT" ]
null
null
null
electrumx/lib/coins.py
Deadpool205/electrumx
f377b15820c993bab4906072553c849b46e8c7e3
[ "MIT" ]
null
null
null
electrumx/lib/coins.py
Deadpool205/electrumx
f377b15820c993bab4906072553c849b46e8c7e3
[ "MIT" ]
null
null
null
# Copyright (c) 2016-2017, Neil Booth # Copyright (c) 2017, the ElectrumX authors # # All rights reserved. # # The MIT License (MIT) # # 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 ...
30.659873
98
0.649476
f90b746e508dd007f4a3afe3d36dd267b80e5111
324,147
py
Python
modules/s3db/event.py
ramdesh/eden
501eab1782ba97417afb8d236b211dbdd6750dfb
[ "MIT" ]
null
null
null
modules/s3db/event.py
ramdesh/eden
501eab1782ba97417afb8d236b211dbdd6750dfb
[ "MIT" ]
null
null
null
modules/s3db/event.py
ramdesh/eden
501eab1782ba97417afb8d236b211dbdd6750dfb
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Sahana Eden Event Model @copyright: 2009-2021 (c) Sahana Software Foundation @license: MIT 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...
44.077645
269
0.387408
50bcb1972b4f354170cb3125c1e661e110d4b814
3,755
py
Python
TestVideo.py
aoxiangzhang/tuxiangshijue
4b9541f64bf6e4c8e1b6b1ce8be141aaf8c67dae
[ "BSD-2-Clause" ]
null
null
null
TestVideo.py
aoxiangzhang/tuxiangshijue
4b9541f64bf6e4c8e1b6b1ce8be141aaf8c67dae
[ "BSD-2-Clause" ]
null
null
null
TestVideo.py
aoxiangzhang/tuxiangshijue
4b9541f64bf6e4c8e1b6b1ce8be141aaf8c67dae
[ "BSD-2-Clause" ]
null
null
null
import os import torch import argparse from PIL import Image from libs.Loader import Dataset from libs.Matrix import MulLayer import torch.backends.cudnn as cudnn from libs.models import encoder3,encoder4 from libs.models import decoder3,decoder4 import torchvision.transforms as transforms from libs.utils import makeVi...
34.449541
79
0.61518
f5f7aef81a252a90b2140b4393d5232aa12f064b
712
py
Python
receval/apps/aspect_knn/apps.py
ag-gipp/docker-receval
1d491d57ba61897f172adbb31e566f171fb6f3ec
[ "MIT" ]
1
2020-04-14T08:29:37.000Z
2020-04-14T08:29:37.000Z
receval/apps/aspect_knn/apps.py
ag-gipp/docker-receval
1d491d57ba61897f172adbb31e566f171fb6f3ec
[ "MIT" ]
7
2020-04-07T07:54:56.000Z
2020-04-14T07:01:01.000Z
receval/apps/aspect_knn/apps.py
ag-gipp/docker-receval
1d491d57ba61897f172adbb31e566f171fb6f3ec
[ "MIT" ]
null
null
null
from django.apps import AppConfig class AspectKNNConfig(AppConfig): name = 'receval.apps.aspect_knn' def ready(self): from receval.apps.explorer.templatetags import string_filters if string_filters: pass # def global_context_processor(request): # # print(request.user.is_aut...
26.37037
76
0.574438
c8a4f183aa3b43d993333cf4bbf60b45c248f54e
8,996
py
Python
plugins/keepkey/clientbase.py
yura-pakhuchiy/electrum
2e58b946c6a9e8091ca4a66b9da7ed0a407cdf4c
[ "MIT" ]
null
null
null
plugins/keepkey/clientbase.py
yura-pakhuchiy/electrum
2e58b946c6a9e8091ca4a66b9da7ed0a407cdf4c
[ "MIT" ]
null
null
null
plugins/keepkey/clientbase.py
yura-pakhuchiy/electrum
2e58b946c6a9e8091ca4a66b9da7ed0a407cdf4c
[ "MIT" ]
null
null
null
import time from struct import pack from electrum_xzc.i18n import _ from electrum_xzc.util import PrintError, UserCancelled from electrum_xzc.keystore import bip39_normalize_passphrase from electrum_xzc.bitcoin import serialize_xpub class GuiMixin(object): # Requires: self.proto, self.device messages = { ...
38.280851
136
0.616163
4f033b4da813fc7f5c81c74739c20779c83dbb00
129
py
Python
pylib/config/reddit.py
timlardner/SteamieBot3.0
d18e701cc454c5087dac537b43f0c3b803a1b494
[ "MIT" ]
2
2021-07-06T19:42:10.000Z
2021-07-07T16:20:01.000Z
pylib/config/reddit.py
timlardner/SteamieBot3.0
d18e701cc454c5087dac537b43f0c3b803a1b494
[ "MIT" ]
1
2021-07-06T21:13:38.000Z
2021-07-06T21:13:38.000Z
pylib/config/reddit.py
timlardner/SteamieBot3.0
d18e701cc454c5087dac537b43f0c3b803a1b494
[ "MIT" ]
null
null
null
TEST_SUBREDDIT = "steamiebottest" # Post config MAKE_POST = True SET_STICKY = True FLAIR_ID = None SUBREDDIT = "steamiebottest"
16.125
33
0.775194
3bd61fc667d9902fab925c8708e6878e813bac3d
5,881
py
Python
backtracking/hamiltonian_cycle.py
JB1959/Python
b6ca263983933c3ecc06ed0083dd11b6faf870c8
[ "MIT" ]
6
2020-06-23T11:56:55.000Z
2021-10-03T17:21:34.000Z
backtracking/hamiltonian_cycle.py
JB1959/Python
b6ca263983933c3ecc06ed0083dd11b6faf870c8
[ "MIT" ]
3
2020-06-08T07:03:15.000Z
2020-06-08T08:41:22.000Z
backtracking/hamiltonian_cycle.py
JB1959/Python
b6ca263983933c3ecc06ed0083dd11b6faf870c8
[ "MIT" ]
2
2021-03-22T17:01:30.000Z
2021-08-12T17:06:12.000Z
""" A Hamiltonian cycle (Hamiltonian circuit) is a graph cycle through a graph that visits each node exactly once. Determining whether such paths and cycles exist in graphs is the 'Hamiltonian path problem', which is NP-complete. Wikipedia: https://en.wikipedia.org/wiki/Hamiltonian_path """ from ty...
33.039326
88
0.527461
cd6329962ee746becd3c0aa920290a70a0a29c99
5,154
py
Python
util/image_processing.py
hrc2da/sknightmare-agent
9a3cc0483507d34e70e16fb54b77224bca4e69ec
[ "MIT" ]
null
null
null
util/image_processing.py
hrc2da/sknightmare-agent
9a3cc0483507d34e70e16fb54b77224bca4e69ec
[ "MIT" ]
null
null
null
util/image_processing.py
hrc2da/sknightmare-agent
9a3cc0483507d34e70e16fb54b77224bca4e69ec
[ "MIT" ]
null
null
null
import svgwrite import json from cairosvg import svg2png from scipy import misc import cv2 as cv import numpy as np import matplotlib as mpl mpl.use('TkAgg') from matplotlib import pyplot as plt import time import os from PIL import Image from io import BytesIO import numpy as np from skimage.draw import circle class ...
41.232
221
0.595266
6903b2041391f283a87c431f2b9e4cfd987c5314
5,362
py
Python
apps/ticket/models.py
youjiajia/loonflow
0542e543ffea49b2eda864397b9875b6bf107dd5
[ "MIT" ]
null
null
null
apps/ticket/models.py
youjiajia/loonflow
0542e543ffea49b2eda864397b9875b6bf107dd5
[ "MIT" ]
null
null
null
apps/ticket/models.py
youjiajia/loonflow
0542e543ffea49b2eda864397b9875b6bf107dd5
[ "MIT" ]
null
null
null
import datetime import time from django.db import models from apps.loon_base_model import BaseModel class TicketRecord(BaseModel): """ 工单记录 """ title = models.CharField(u'标题', max_length=500, blank=True, default='', help_text="工单的标题") workflow_id = models.IntegerField(...
45.82906
119
0.653488
e039df89081b0af470843a623cdad49678f51a03
5,749
py
Python
scapy/arch/bpf/core.py
kosciolek/J-Tracert
89ed802f700e02600138ad7132e6a856463620dd
[ "MIT" ]
3
2019-04-09T22:59:33.000Z
2019-06-14T09:23:24.000Z
scapy/arch/bpf/core.py
kosciolek/J-Tracert
89ed802f700e02600138ad7132e6a856463620dd
[ "MIT" ]
null
null
null
scapy/arch/bpf/core.py
kosciolek/J-Tracert
89ed802f700e02600138ad7132e6a856463620dd
[ "MIT" ]
1
2018-11-15T12:37:04.000Z
2018-11-15T12:37:04.000Z
# Guillaume Valadon <guillaume@valadon.net> """ Scapy *BSD native support - core """ from __future__ import absolute_import from scapy.config import conf from scapy.error import Scapy_Exception, warning from scapy.data import ARPHDR_LOOPBACK, ARPHDR_ETHER from scapy.arch.common import get_if, get_bpf_pointer from sca...
29.035354
90
0.6255
339021736dcc99f9f031224e88142c2a764f2e9b
2,451
py
Python
source/message_button.py
MChenLiang/pipelineLauncher
998ec4c20726b967f8fe6523c94df9d2c3f83237
[ "MIT" ]
3
2022-03-26T23:40:11.000Z
2022-03-27T01:06:52.000Z
source/message_button.py
MChenLiang/pipelineLauncher
998ec4c20726b967f8fe6523c94df9d2c3f83237
[ "MIT" ]
null
null
null
source/message_button.py
MChenLiang/pipelineLauncher
998ec4c20726b967f8fe6523c94df9d2c3f83237
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding:UTF-8 -*- # @email : spirit_az@foxmail.com __author__ = 'ChenLiang.Miao' # +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ # from .gui_import import * # +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+...
30.259259
119
0.567523
e756b7ebc6e5ad6e2fb7a3f58862433657a349f3
18,476
py
Python
emails/generators.py
Ben-Peters/lnldb
4264ce52e85c20fe1e964f9e36aa4289b0e7e3c7
[ "MIT" ]
null
null
null
emails/generators.py
Ben-Peters/lnldb
4264ce52e85c20fe1e964f9e36aa4289b0e7e3c7
[ "MIT" ]
null
null
null
emails/generators.py
Ben-Peters/lnldb
4264ce52e85c20fe1e964f9e36aa4289b0e7e3c7
[ "MIT" ]
null
null
null
import datetime import pytz from six import string_types from django.conf import settings from django.core.mail import EmailMultiAlternatives from django.template.loader import render_to_string from django.urls.base import reverse from django.utils import timezone from events.models import Event, Category, Service, S...
35.945525
120
0.621888
ff53900e6e17cde48e2fe8fdfcb9669b7816e8ad
389
py
Python
src/corona/wsgi.py
Amirk96/coronavirus_cases_by_country
5fa5f1c53563d225e50a4024bd1b248c54d943f2
[ "MIT" ]
null
null
null
src/corona/wsgi.py
Amirk96/coronavirus_cases_by_country
5fa5f1c53563d225e50a4024bd1b248c54d943f2
[ "MIT" ]
null
null
null
src/corona/wsgi.py
Amirk96/coronavirus_cases_by_country
5fa5f1c53563d225e50a4024bd1b248c54d943f2
[ "MIT" ]
null
null
null
""" WSGI config for corona project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETTIN...
22.882353
78
0.784062
e13f11616ac061a7e73c3f780c09b295442cec6e
6,498
py
Python
mpos/web/views/rate_setup.py
cackharot/ngen-milk-pos
4814bdbc6bddf02530ff10e1ec842fb316b0fa91
[ "Apache-2.0" ]
null
null
null
mpos/web/views/rate_setup.py
cackharot/ngen-milk-pos
4814bdbc6bddf02530ff10e1ec842fb316b0fa91
[ "Apache-2.0" ]
null
null
null
mpos/web/views/rate_setup.py
cackharot/ngen-milk-pos
4814bdbc6bddf02530ff10e1ec842fb316b0fa91
[ "Apache-2.0" ]
1
2019-04-24T06:11:47.000Z
2019-04-24T06:11:47.000Z
from flask import render_template, request, redirect, g, flash, url_for from flask_login import login_required from flask_babel import lazy_gettext, gettext try: from collections import OrderedDict except ImportError: # python 2.6 or earlier, use backport from ordereddict import OrderedDict from random imp...
35.315217
154
0.699908
0fe1f3a30647b3b67984f674cf680b60e8c0e2fe
843
py
Python
sdk/logic/azure-mgmt-logic/azure/mgmt/logic/models/callback_url.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
8
2021-01-13T23:44:08.000Z
2021-03-17T10:13:36.000Z
sdk/logic/azure-mgmt-logic/azure/mgmt/logic/models/callback_url.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
226
2019-07-24T07:57:21.000Z
2019-10-15T01:07:24.000Z
sdk/logic/azure-mgmt-logic/azure/mgmt/logic/models/callback_url.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
2
2020-05-21T22:51:22.000Z
2020-05-26T20:53:01.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
29.068966
76
0.550415
f326d3e0db7be7c8cac57b092866b2744fb49895
19,765
py
Python
benchml/models/mod_logd.py
rudolfspetrovs/benchml
896673f387a6bb9b185664ddd54f569a1ba54e51
[ "Apache-2.0" ]
3
2021-08-12T13:25:31.000Z
2022-03-21T21:30:22.000Z
benchml/models/mod_logd.py
rudolfspetrovs/benchml
896673f387a6bb9b185664ddd54f569a1ba54e51
[ "Apache-2.0" ]
5
2020-12-08T08:59:41.000Z
2022-01-22T06:46:09.000Z
benchml/models/mod_logd.py
rudolfspetrovs/benchml
896673f387a6bb9b185664ddd54f569a1ba54e51
[ "Apache-2.0" ]
1
2021-06-25T11:07:32.000Z
2021-06-25T11:07:32.000Z
import numpy as np import benchml.transforms as btf from benchml.hyper import GridHyper, Hyper from benchml.models.common import get_logd_hybrid_topo_gp_kwargs def compile_logd_extensive(**kwargs): return [ btf.Module( tag="logd_gylm_minimal_rr", transforms=[ btf.E...
40.585216
99
0.38214
e6e442f43ae7b59b979b7b81f6d834097c3be4d6
43
py
Python
__init__.py
rafayullah/Wikipedia-CategoryResolver
2a2b0649006036b8bc8bc773c5df980eb6e32b01
[ "MIT" ]
1
2021-08-06T08:27:04.000Z
2021-08-06T08:27:04.000Z
__init__.py
rafayullah/Wikipedia-CategoryResolver
2a2b0649006036b8bc8bc773c5df980eb6e32b01
[ "MIT" ]
null
null
null
__init__.py
rafayullah/Wikipedia-CategoryResolver
2a2b0649006036b8bc8bc773c5df980eb6e32b01
[ "MIT" ]
null
null
null
from .WikipediaCategoryResolver import Wiki
43
43
0.906977
d7c057f7bcfb38b8c584758b4a5bfa068e6033cf
408
py
Python
setup.py
tww-software/py_gps_nmea
8295d146014d4e8636e7ca05f7e843f023c67e45
[ "MIT" ]
null
null
null
setup.py
tww-software/py_gps_nmea
8295d146014d4e8636e7ca05f7e843f023c67e45
[ "MIT" ]
null
null
null
setup.py
tww-software/py_gps_nmea
8295d146014d4e8636e7ca05f7e843f023c67e45
[ "MIT" ]
null
null
null
from setuptools import setup setup(name='pygpsnmea', version='2021.2', description='a Python 3 GPS NMEA 0183 decoder', author='Thomas W Whittam', url='https://github.com/tww-software/py_gps_nmea', license='MIT', packages=['pygpsnmea', 'pygpsnmea.sentences', 'pygpsnmea.gui'], ...
25.5
69
0.659314
1a287de0b3fb18c982972d8714fd6a6c7194d5a1
900
py
Python
webapp/urls.py
arponpes/Ticross
feedc961287c9cc7a4b98e4fe995efa08a20cbc8
[ "Apache-2.0" ]
1
2018-05-07T00:07:41.000Z
2018-05-07T00:07:41.000Z
webapp/urls.py
arponpes/Ticross
feedc961287c9cc7a4b98e4fe995efa08a20cbc8
[ "Apache-2.0" ]
17
2018-04-30T15:52:14.000Z
2018-05-18T10:08:15.000Z
webapp/urls.py
arponpes/Ticross
feedc961287c9cc7a4b98e4fe995efa08a20cbc8
[ "Apache-2.0" ]
2
2018-05-02T06:57:52.000Z
2018-05-02T07:40:11.000Z
from django.contrib.auth.decorators import login_required from django.urls import path, include, re_path from django.views.generic import RedirectView from . import views urlpatterns = [ path('', login_required(views.ProjectListView.as_view()), name='projects_list'), re_path(r'^project/(?P<pk>\d+)/detail/', l...
50
116
0.721111