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
699c7ad27f9a2d02c5f2ca1aa46ce59e8b20005c
2,326
py
Python
run/quickstart.py
ashleyshu/sway
3c89ed47773267914ba9840bc4c85714403ca137
[ "MIT" ]
null
null
null
run/quickstart.py
ashleyshu/sway
3c89ed47773267914ba9840bc4c85714403ca137
[ "MIT" ]
null
null
null
run/quickstart.py
ashleyshu/sway
3c89ed47773267914ba9840bc4c85714403ca137
[ "MIT" ]
null
null
null
#!/Library/Frameworks/Python.framework/Versions/3.9/bin/python3 from __future__ import print_function import sys import datetime import pickle import os.path import csv import encodings from googleapiclient.discovery import build from google_auth_oauthlib.flow import InstalledAppFlow from google.auth.transport.request...
34.205882
107
0.596733
1deec6ae5dce012d14c4e9ed45f53515b88ecefc
4,734
py
Python
src/week4/partitioned_stream_producer.py
shamilbi/ru202
ffeb78616bcffe3c887ffbcd3d875358f9a11cf6
[ "MIT" ]
null
null
null
src/week4/partitioned_stream_producer.py
shamilbi/ru202
ffeb78616bcffe3c887ffbcd3d875358f9a11cf6
[ "MIT" ]
null
null
null
src/week4/partitioned_stream_producer.py
shamilbi/ru202
ffeb78616bcffe3c887ffbcd3d875358f9a11cf6
[ "MIT" ]
null
null
null
# Use Case: Partitioned Stream Example with Python # Usage: Part of Redis University RU202 courseware # # Simulates a temperature logging device that # continuously outputs new temperature readings, and # pushes them into a date-partitioned set of streams # in Redis. A new stream is created for each new # day, and set...
34.808824
84
0.716308
58c3a0d9b33f8b27819749e8d9ebef4f6b38e012
4,295
py
Python
plugins/PluginDownloader/test.py
totte/aide
f32f36fea40f4a97f0b6b363901ab50449b07af2
[ "BSD-3-Clause" ]
1
2015-02-17T08:56:13.000Z
2015-02-17T08:56:13.000Z
plugins/PluginDownloader/test.py
totte/aide
f32f36fea40f4a97f0b6b363901ab50449b07af2
[ "BSD-3-Clause" ]
null
null
null
plugins/PluginDownloader/test.py
totte/aide
f32f36fea40f4a97f0b6b363901ab50449b07af2
[ "BSD-3-Clause" ]
null
null
null
### # Copyright (c) 2011, Valentin Lorentz # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, # this list of conditi...
40.904762
81
0.71362
fd5d35d294168f6fdab7e887d61d2114f2ab13a5
175
py
Python
pymcuprog/version.py
qbolsee/pymcuprog
4da526fa208126f6c206dbf773c5b8ef5b40c412
[ "MIT" ]
null
null
null
pymcuprog/version.py
qbolsee/pymcuprog
4da526fa208126f6c206dbf773c5b8ef5b40c412
[ "MIT" ]
1
2021-06-26T06:43:19.000Z
2021-06-27T22:18:04.000Z
pymcuprog/version.py
qbolsee/serialupdi
4da526fa208126f6c206dbf773c5b8ef5b40c412
[ "MIT" ]
null
null
null
""" This file was generated when pymcuprog was built """ VERSION = '3.9.1.120' COMMIT_ID = '9ef03c2c1682dc14d378fd36e1b35e8bfd9decf9' BUILD_DATE = '2021-04-23 05:26:20 +0000'
35
56
0.748571
d634b36e24a9b9241282c6a61be07d75bb10e3c3
2,097
py
Python
objects.py
cravxx/coinz.py
41215e126dbc0bd2b31002b645f3a45e4db9ab65
[ "MIT" ]
null
null
null
objects.py
cravxx/coinz.py
41215e126dbc0bd2b31002b645f3a45e4db9ab65
[ "MIT" ]
null
null
null
objects.py
cravxx/coinz.py
41215e126dbc0bd2b31002b645f3a45e4db9ab65
[ "MIT" ]
null
null
null
from enum import Enum from calls import get_last_price # the alert class, holds the price and whether to check for it being below or above class Alert(object): def __init__(self, market, value, g_l): self.market = market self.value = value self.g_l = g_l # the alert event class, this is ...
30.838235
118
0.577015
c3c93f6705a7124765d7a52359825d979d675cf2
335
py
Python
PP4E/Examples/PP4E/Internet/Sockets/pipe-unbuff-reader.py
BeacherHou/Python-_Markdown-
015d79a02d32f49395b80ca10919b3a09b72c4df
[ "MIT" ]
null
null
null
PP4E/Examples/PP4E/Internet/Sockets/pipe-unbuff-reader.py
BeacherHou/Python-_Markdown-
015d79a02d32f49395b80ca10919b3a09b72c4df
[ "MIT" ]
null
null
null
PP4E/Examples/PP4E/Internet/Sockets/pipe-unbuff-reader.py
BeacherHou/Python-_Markdown-
015d79a02d32f49395b80ca10919b3a09b72c4df
[ "MIT" ]
null
null
null
# no output for 10 seconds unless Python -u flag used or sys.stdout.flush() # but writer's output appears here every 2 seconds when either option is used import os for line in os.popen('python -u pipe-unbuff-writer.py'): # iterator reads lines print(line, end='') # block...
47.857143
83
0.632836
e26d9af2cf77a5586a1d7524382b5129245d3930
46,276
py
Python
coref_model_sentence_span.py
mujizi/e2e_coref
8f27b76067c01093f62f9de4c9acb5577ebd0ed1
[ "Apache-2.0" ]
null
null
null
coref_model_sentence_span.py
mujizi/e2e_coref
8f27b76067c01093f62f9de4c9acb5577ebd0ed1
[ "Apache-2.0" ]
null
null
null
coref_model_sentence_span.py
mujizi/e2e_coref
8f27b76067c01093f62f9de4c9acb5577ebd0ed1
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function #-*-encoding:utf-8-*- import os import operator import random import math import json import threading import numpy as np import tensorflow as tf import tensorflow_hub as hub import h5py import util import cor...
52.171364
220
0.709093
1ebf0ee28c7867d6098044485f1d56ecabf37d36
7,070
py
Python
library/python/testing/import_test/import_test.py
HeyLey/catboost
f472aed90604ebe727537d9d4a37147985e10ec2
[ "Apache-2.0" ]
1
2019-01-26T02:58:50.000Z
2019-01-26T02:58:50.000Z
library/python/testing/import_test/import_test.py
HeyLey/catboost
f472aed90604ebe727537d9d4a37147985e10ec2
[ "Apache-2.0" ]
null
null
null
library/python/testing/import_test/import_test.py
HeyLey/catboost
f472aed90604ebe727537d9d4a37147985e10ec2
[ "Apache-2.0" ]
1
2019-02-13T10:37:01.000Z
2019-02-13T10:37:01.000Z
from __future__ import print_function import re import sys import traceback from __res import importer def check_imports(no_check=None, extra=[], skip_func=None): """ tests all bundled modules are importable just add "PEERDIR(library/python/import_test)" to your CMakeLists.txt and "from import_t...
27.088123
88
0.557001
56a6f0c952ae26afa4d915a80e88dadd0e55b0a5
2,241
py
Python
backend/morning_salad_30289/urls.py
crowdbotics-apps/morning-salad-30289
ce7b7af3206b00aedbed0395a5db7fcd99df6329
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/morning_salad_30289/urls.py
crowdbotics-apps/morning-salad-30289
ce7b7af3206b00aedbed0395a5db7fcd99df6329
[ "FTL", "AML", "RSA-MD" ]
30
2021-09-03T00:57:45.000Z
2021-12-05T17:42:38.000Z
backend/morning_salad_30289/urls.py
crowdbotics-apps/morning-salad-30289
ce7b7af3206b00aedbed0395a5db7fcd99df6329
[ "FTL", "AML", "RSA-MD" ]
null
null
null
"""morning_salad_30289 URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home')...
35.571429
87
0.713967
15a59374f6f593137318a87965a471ccb504c3ab
2,643
py
Python
tests/objects/test_ability.py
a6n1/caldera
a9a37ca1b54c1a4e0ecbd5144a2745fce3bdc36b
[ "Apache-2.0" ]
1
2020-07-31T05:52:31.000Z
2020-07-31T05:52:31.000Z
tests/objects/test_ability.py
TylerJThomas/caldera
93b2d1b761d1e0eea87e6667206088610b7c1822
[ "Apache-2.0" ]
1
2021-04-16T00:03:00.000Z
2021-04-16T00:03:00.000Z
tests/objects/test_ability.py
TylerJThomas/caldera
93b2d1b761d1e0eea87e6667206088610b7c1822
[ "Apache-2.0" ]
1
2020-04-19T21:00:07.000Z
2020-04-19T21:00:07.000Z
from app.objects.c_ability import Ability from app.objects.c_agent import Agent class TestAbility: def test_privileged_to_run__1(self, loop, data_svc): """ Test ability.privilege == None """ agent = loop.run_until_complete(data_svc.store(Agent(sleep_min=1, sleep_max=2, watchdog=0))) abili...
48.944444
122
0.676504
d82fe6e01be9ecd8716170896307161fa8fe8336
7,798
py
Python
taotao-cloud-python/taotao-cloud-oldboy/day72-EdumureBlog-menu/day71/rbac/views.py
shuigedeng/taotao-cloud-paren
3d281b919490f7cbee4520211e2eee5da7387564
[ "Apache-2.0" ]
47
2021-04-13T10:32:13.000Z
2022-03-31T10:30:30.000Z
taotao-cloud-python/taotao-cloud-oldboy/day72-EdumureBlog-menu/day71/rbac/views.py
shuigedeng/taotao-cloud-paren
3d281b919490f7cbee4520211e2eee5da7387564
[ "Apache-2.0" ]
1
2021-11-01T07:41:04.000Z
2021-11-01T07:41:10.000Z
taotao-cloud-python/taotao-cloud-oldboy/day72-EdumureBlog-menu/day71/rbac/views.py
shuigedeng/taotao-cloud-paren
3d281b919490f7cbee4520211e2eee5da7387564
[ "Apache-2.0" ]
21
2021-04-13T10:32:17.000Z
2022-03-26T07:43:22.000Z
from django.shortcuts import render,HttpResponse,redirect from . import models import re class MenuHelper(object): def __init__(self,request,username): # 当前请求的request对象 self.request = request # 当前用户名 self.username = username # 获取当前URL self.current_url = request.path...
32.764706
99
0.527828
625b4981ec156db20696cbce97589a2054150c75
3,389
py
Python
Scripts/model_training.py
kieranricardo/pymyoEMG
0ed88643be90c809edbf0d51736f980d1f003a01
[ "MIT" ]
3
2018-03-14T19:13:29.000Z
2021-08-16T08:18:42.000Z
Scripts/model_training.py
kieranricardo/pymyoEMG
0ed88643be90c809edbf0d51736f980d1f003a01
[ "MIT" ]
null
null
null
Scripts/model_training.py
kieranricardo/pymyoEMG
0ed88643be90c809edbf0d51736f980d1f003a01
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Mar 2 13:32:44 2018 @author: Kieran Ricardo """ import pandas as pd import numpy as np from sklearn.neural_network import MLPClassifier from sklearn.metrics import accuracy_score from sklearn.externals import joblib from scipy.signal import butter, f...
35.673684
94
0.644438
d45ec36f1c50861d2e7a0f327e2a05c4e9e83116
12,572
py
Python
auto/www/api/project.py
yaopf2014/AutoLink
48f203bdf08887af91042be52eb6e0c3503a24e8
[ "ECL-2.0", "Apache-2.0", "MIT" ]
173
2018-08-13T03:15:30.000Z
2021-08-16T08:55:28.000Z
auto/www/api/project.py
yaopf2014/AutoLink
48f203bdf08887af91042be52eb6e0c3503a24e8
[ "ECL-2.0", "Apache-2.0", "MIT" ]
18
2018-08-27T07:47:46.000Z
2020-08-13T01:25:02.000Z
auto/www/api/project.py
yaopf2014/AutoLink
48f203bdf08887af91042be52eb6e0c3503a24e8
[ "ECL-2.0", "Apache-2.0", "MIT" ]
117
2018-08-15T06:04:37.000Z
2022-01-10T10:01:12.000Z
# -*- coding: utf-8 -*- __author__ = "苦叶子" """ 公众号: 开源优测 Email: lymking@foxmail.com """ from flask import current_app, session from flask_restful import Resource, reqparse import json import os import codecs from robot.api import TestSuiteBuilder from robot.api import TestData, ResourceFile, TestCaseFile from u...
31.667506
144
0.502864
e12abac9bb91c5a1378ebf8959fd5bd341afa1f8
4,943
py
Python
pybatfish/datamodel/route.py
adrianliaw/pybatfish
f9587a8598e8359949b982c30917a1e4c2bb3cc1
[ "Apache-2.0" ]
null
null
null
pybatfish/datamodel/route.py
adrianliaw/pybatfish
f9587a8598e8359949b982c30917a1e4c2bb3cc1
[ "Apache-2.0" ]
null
null
null
pybatfish/datamodel/route.py
adrianliaw/pybatfish
f9587a8598e8359949b982c30917a1e4c2bb3cc1
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2018 The Batfish Open Source Project # # 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 requi...
33.62585
84
0.627959
8b6403dfe41e6f02c44ec3dfbeb075683f120221
413
py
Python
top/api/rest/WdtLogisticsSyncQueryRequest.py
SAMZONG/taobao-sdk-python3
202a9df2085229838541713bd24433a90d07c7fc
[ "MIT" ]
null
null
null
top/api/rest/WdtLogisticsSyncQueryRequest.py
SAMZONG/taobao-sdk-python3
202a9df2085229838541713bd24433a90d07c7fc
[ "MIT" ]
null
null
null
top/api/rest/WdtLogisticsSyncQueryRequest.py
SAMZONG/taobao-sdk-python3
202a9df2085229838541713bd24433a90d07c7fc
[ "MIT" ]
null
null
null
''' Created by auto_sdk on 2020.05.28 ''' from top.api.base import RestApi class WdtLogisticsSyncQueryRequest(RestApi): def __init__(self,domain='gw.api.taobao.com',port=80): RestApi.__init__(self,domain, port) self.appkey = None self.is_part_sync_able = None self.limit = None self.shop_no = None ...
25.8125
56
0.716707
565e291d8b9d72bddc0937b22b34cb277f11c06d
24,471
py
Python
_Planning/codeanalysis.py
desfred/staircase
bf627e2911a3483dbecf90e8858b3104de62d16c
[ "MIT" ]
1
2019-03-03T11:50:17.000Z
2019-03-03T11:50:17.000Z
_Planning/codeanalysis.py
desfred/staircase
bf627e2911a3483dbecf90e8858b3104de62d16c
[ "MIT" ]
null
null
null
_Planning/codeanalysis.py
desfred/staircase
bf627e2911a3483dbecf90e8858b3104de62d16c
[ "MIT" ]
1
2019-03-14T13:53:44.000Z
2019-03-14T13:53:44.000Z
#!/usr/bin/env python """ Name: codeanalysis.py Last edited by/on: FAM 030319 1800 Description: analysing functions necessary for construction of staircase with map understanding pick and place situation """ import rospy import math import numpy as np from math import cos, sin, atan2, pi from std_msgs.msg import Float6...
35.260807
164
0.606882
698f3990b0ba077b1ec1a11dd1e6548126082baa
2,742
py
Python
stock_indicators/indicators/chaikin_oscillator.py
LeeDongGeon1996/Stock.Indicators.Python
b706d00279a8ab5f2794417ddef1bf45e1c48587
[ "Apache-2.0" ]
13
2021-11-09T13:16:31.000Z
2022-03-28T00:30:30.000Z
stock_indicators/indicators/chaikin_oscillator.py
LeeDongGeon1996/Stock.Indicators.Python
b706d00279a8ab5f2794417ddef1bf45e1c48587
[ "Apache-2.0" ]
162
2021-11-03T15:57:17.000Z
2022-03-30T15:32:20.000Z
stock_indicators/indicators/chaikin_oscillator.py
LeeDongGeon1996/Stock.Indicators.Python
b706d00279a8ab5f2794417ddef1bf45e1c48587
[ "Apache-2.0" ]
5
2021-11-04T13:35:05.000Z
2022-01-06T10:27:38.000Z
from typing import Iterable, Optional, TypeVar from stock_indicators._cslib import CsIndicator from stock_indicators._cstypes import List as CsList from stock_indicators.indicators.common.helpers import RemoveWarmupMixin from stock_indicators.indicators.common.results import IndicatorResults, ResultBase from stock_ind...
33.036145
127
0.721007
27e1b2c8ef92c05c3de1bbeaaa45269c1d386f0a
465
py
Python
Classwork/flask_form/argparser_exercise.py
Sukhrobjon/DS-2.3-DS-in-production
662ebe7b60d0c6461fe245f3ff6e38616824ae17
[ "MIT" ]
null
null
null
Classwork/flask_form/argparser_exercise.py
Sukhrobjon/DS-2.3-DS-in-production
662ebe7b60d0c6461fe245f3ff6e38616824ae17
[ "MIT" ]
null
null
null
Classwork/flask_form/argparser_exercise.py
Sukhrobjon/DS-2.3-DS-in-production
662ebe7b60d0c6461fe245f3ff6e38616824ae17
[ "MIT" ]
null
null
null
import argparse parser = argparse.ArgumentParser(description='Process some integers.') parser.add_argument('integers', metavar='N', type=int, nargs='+', help='an integer for the accumulator') parser.add_argument('--sum', dest='accumulate', action='store_const', const=max, def...
31
70
0.653763
4bcb535a68f2ddd28f55ead0d1c97f234d609c9a
47,300
py
Python
google/cloud/aiplatform_v1/services/featurestore_service/transports/grpc_asyncio.py
sararob/python-aiplatform
e64cd5588848a4dcd9117ff905e9569576541b69
[ "Apache-2.0" ]
null
null
null
google/cloud/aiplatform_v1/services/featurestore_service/transports/grpc_asyncio.py
sararob/python-aiplatform
e64cd5588848a4dcd9117ff905e9569576541b69
[ "Apache-2.0" ]
null
null
null
google/cloud/aiplatform_v1/services/featurestore_service/transports/grpc_asyncio.py
sararob/python-aiplatform
e64cd5588848a4dcd9117ff905e9569576541b69
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2022 Google LLC # # 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...
44
97
0.647252
7c87c98287d974e175853385ca8ea9bcdbf49155
1,390
py
Python
ois_api_client/v2_0/deserialization/deserialize_query_invoice_digest_request.py
peterkulik/ois_api_client
51dabcc9f920f89982c4419bb058f5a88193cee0
[ "MIT" ]
7
2020-10-22T08:15:29.000Z
2022-01-27T07:59:39.000Z
ois_api_client/v2_0/deserialization/deserialize_query_invoice_digest_request.py
peterkulik/ois_api_client
51dabcc9f920f89982c4419bb058f5a88193cee0
[ "MIT" ]
null
null
null
ois_api_client/v2_0/deserialization/deserialize_query_invoice_digest_request.py
peterkulik/ois_api_client
51dabcc9f920f89982c4419bb058f5a88193cee0
[ "MIT" ]
null
null
null
from typing import Optional import xml.etree.ElementTree as ET from ...xml.XmlReader import XmlReader as XR from ..namespaces import API from ...deserialization.create_enum import create_enum from ..dto.QueryInvoiceDigestRequest import QueryInvoiceDigestRequest from ..dto.InvoiceDirection import InvoiceDirection from ....
38.611111
109
0.751079
4c07b2041723f339be25e4f762f04412b2b3c03f
3,979
py
Python
main.py
epicalydev/Raider-bot
5352996d023e0778d36de61790efafb69833b771
[ "MIT" ]
null
null
null
main.py
epicalydev/Raider-bot
5352996d023e0778d36de61790efafb69833b771
[ "MIT" ]
null
null
null
main.py
epicalydev/Raider-bot
5352996d023e0778d36de61790efafb69833b771
[ "MIT" ]
null
null
null
import sys from colorama import Fore , Style print(Fore.GREEN + "\nDisclaimer:\n") print(Fore.YELLOW + "This is for educational purposes only.") print(Fore.YELLOW + "Use this only if you have the consent of the server owner.") print(Fore.YELLOW + "I am not responsible for any damage done by this bot.\n") r = input(For...
31.579365
90
0.572254
d60fe99720ce9ba0442ab41b35bca3b2ba858ce7
24,645
py
Python
pymc/backends/arviz.py
StardustQVQ/pymc
dfac4f16b4a3c295e7bd3dde28fc1a9a4f4e63bf
[ "Apache-2.0" ]
2
2022-02-12T06:28:10.000Z
2022-03-12T20:05:10.000Z
pymc/backends/arviz.py
StardustQVQ/pymc
dfac4f16b4a3c295e7bd3dde28fc1a9a4f4e63bf
[ "Apache-2.0" ]
null
null
null
pymc/backends/arviz.py
StardustQVQ/pymc
dfac4f16b4a3c295e7bd3dde28fc1a9a4f4e63bf
[ "Apache-2.0" ]
null
null
null
"""PyMC-ArviZ conversion code.""" import logging import warnings from typing import ( # pylint: disable=unused-import TYPE_CHECKING, Any, Dict, Iterable, Optional, Tuple, Union, ) import numpy as np import xarray as xr from aesara.graph.basic import Constant from aesara.tensor.sharedvar ...
36.949025
105
0.595496
a92f4f3f14f3e94b0b0f215a5ad015d44719c717
11,087
py
Python
homeassistant/components/point/__init__.py
tbarbette/core
8e58c3aa7bc8d2c2b09b6bd329daa1c092d52d3c
[ "Apache-2.0" ]
1
2017-05-30T22:21:05.000Z
2017-05-30T22:21:05.000Z
homeassistant/components/point/__init__.py
tbarbette/core
8e58c3aa7bc8d2c2b09b6bd329daa1c092d52d3c
[ "Apache-2.0" ]
51
2020-10-14T01:19:07.000Z
2022-03-31T06:02:48.000Z
homeassistant/components/point/__init__.py
tbarbette/core
8e58c3aa7bc8d2c2b09b6bd329daa1c092d52d3c
[ "Apache-2.0" ]
1
2021-08-16T02:53:15.000Z
2021-08-16T02:53:15.000Z
"""Support for Minut Point.""" import asyncio import logging from pypoint import PointSession import voluptuous as vol from homeassistant import config_entries from homeassistant.config_entries import ConfigEntry from homeassistant.const import ( CONF_CLIENT_ID, CONF_CLIENT_SECRET, CONF_TOKEN, CONF_WE...
31.586895
84
0.652837
85153dafc82960500bf5b91bdd201938ee63d422
18,911
py
Python
src/transformers/keras_callbacks.py
PolarisRisingWar/transformers
c36b856580ec43bbdf09f679fb0eed9872ecb1b0
[ "Apache-2.0" ]
1
2022-03-16T13:02:15.000Z
2022-03-16T13:02:15.000Z
src/transformers/keras_callbacks.py
PolarisRisingWar/transformers
c36b856580ec43bbdf09f679fb0eed9872ecb1b0
[ "Apache-2.0" ]
null
null
null
src/transformers/keras_callbacks.py
PolarisRisingWar/transformers
c36b856580ec43bbdf09f679fb0eed9872ecb1b0
[ "Apache-2.0" ]
null
null
null
import logging import os from pathlib import Path from time import sleep from typing import Callable, List, Optional, Union import numpy as np import tensorflow as tf from packaging.version import parse from tensorflow.keras.callbacks import Callback from huggingface_hub import Repository from . import IntervalStrat...
48.992228
119
0.642906
fc586d348f3a01c5a1af0fe0f1e74c2e64c81bcb
3,915
py
Python
tools/disk_sensor/check_disk_results.py
patriotemeritus/LO-PHI
8f92c4efb94061cb08b7e9b0ff96346565c12653
[ "BSD-3-Clause" ]
28
2016-02-26T00:54:16.000Z
2022-02-24T12:21:15.000Z
tools/disk_sensor/check_disk_results.py
patriotemeritus/LO-PHI
8f92c4efb94061cb08b7e9b0ff96346565c12653
[ "BSD-3-Clause" ]
2
2016-03-15T21:49:09.000Z
2016-07-12T22:11:39.000Z
tools/disk_sensor/check_disk_results.py
patriotemeritus/LO-PHI
8f92c4efb94061cb08b7e9b0ff96346565c12653
[ "BSD-3-Clause" ]
9
2016-06-08T14:42:28.000Z
2021-11-11T03:51:34.000Z
import os # dd if=/dev/urandom of=/dev/sdb seek=<sector_number> count=1 bs=512 base_disk = open('/tmp/small.img', 'rb') managed_disk = open('/tmp/small-tmp.img', 'rb') orig_disk = open('/tmp/small-base.img', 'rb') #base_disk = open('/var/lib/libvirt/images/ubuntu-1.img', 'rb') #managed_disk = open('/tmp/ubuntu-1.img...
29.659091
110
0.65696
a135ba374ee9aad4f38361108eb70d2830dfe5e5
588
py
Python
users/forms.py
felipecerinzasick/ventures-master
bf81a6fe4b8fbae67925d188547f64296526e5e8
[ "MIT" ]
24
2020-08-25T12:55:33.000Z
2022-03-10T20:03:45.000Z
users/forms.py
felipecerinzasick/ventures-master
bf81a6fe4b8fbae67925d188547f64296526e5e8
[ "MIT" ]
null
null
null
users/forms.py
felipecerinzasick/ventures-master
bf81a6fe4b8fbae67925d188547f64296526e5e8
[ "MIT" ]
35
2020-08-31T20:38:57.000Z
2022-02-24T08:17:46.000Z
from django import forms from django.contrib.auth.models import User from django.contrib.auth.forms import UserCreationForm from .models import Profile class UserRegisterForm(UserCreationForm): email = forms.EmailField() class Meta: model = User fields = ['username', 'email', 'password1', 'pa...
23.52
64
0.678571
79aa1dbd4535e0a7f3e0e26a931e4fb620727e7c
26,725
py
Python
webStorm-APICloud/python_tools/Lib/imputil.py
zzr925028429/androidyianyan
8967fdba92473e8e65ee222515dfc54cdae5bb0b
[ "MIT" ]
2
2019-05-26T15:11:18.000Z
2021-12-27T21:05:32.000Z
Macros/Python/imputil.py
rec/DMXIS
540baa59df6f4ae39990e5888f90b95caa362279
[ "Artistic-2.0" ]
null
null
null
Macros/Python/imputil.py
rec/DMXIS
540baa59df6f4ae39990e5888f90b95caa362279
[ "Artistic-2.0" ]
null
null
null
""" Import utilities Exported classes: ImportManager Manage the import process Importer Base class for replacing standard import functions BuiltinImporter Emulate the import mechanism for builtin and frozen modules DynLoadSuffixImporter """ from warnings import warnpy3k warnpy3k(...
36.360544
89
0.588999
99db104a545008d62ed8505b2a66b7022df4609b
3,445
py
Python
ftlib/finetune/lwf.py
ashok-arjun/Transfer-Learning-Library
e13bb3e37bc7ca74a382cfdc85a640deaf0333b3
[ "MIT" ]
1
2022-03-29T10:45:01.000Z
2022-03-29T10:45:01.000Z
ftlib/finetune/lwf.py
ashok-arjun/Transfer-Learning-Library
e13bb3e37bc7ca74a382cfdc85a640deaf0333b3
[ "MIT" ]
null
null
null
ftlib/finetune/lwf.py
ashok-arjun/Transfer-Learning-Library
e13bb3e37bc7ca74a382cfdc85a640deaf0333b3
[ "MIT" ]
null
null
null
from typing import Optional, List, Dict import torch import torch.nn as nn import tqdm def collect_pretrain_labels(data_loader, classifier, device): source_predictions = [] classifier.eval() with torch.no_grad(): for i, (x, label) in enumerate(tqdm.tqdm(data_loader)): x = x.to(device...
37.043011
113
0.617707
50e28090d975500d3c630e50013193c6ce33c948
673
py
Python
jeopardy/utils.py
mgerst/pyquiz
c6c78640b2c4a878a5e322f48cfa0eacbe813660
[ "MIT" ]
2
2019-01-12T10:14:06.000Z
2019-04-22T17:53:01.000Z
jeopardy/utils.py
mgerst/pyquiz
c6c78640b2c4a878a5e322f48cfa0eacbe813660
[ "MIT" ]
14
2017-05-12T03:06:17.000Z
2020-09-26T05:26:19.000Z
jeopardy/utils.py
mgerst/pyquiz
c6c78640b2c4a878a5e322f48cfa0eacbe813660
[ "MIT" ]
1
2020-04-14T01:41:02.000Z
2020-04-14T01:41:02.000Z
from functools import wraps from flask import session, redirect def team_required(f): @wraps(f) def inner(*args, **kwargs): if 'team' in session: return f(*args, **kwargs) return redirect('/') return inner def admin_required(f): @wraps(f) def inner(*args, **kwargs): ...
20.393939
59
0.579495
78ffe2861d3324150494b39fc48196cf6afc6e41
1,182
py
Python
docs/conf.py
eigensteve/pysindy
0456bed59d63f5d6b3d5937cedd341d7f7644357
[ "MIT" ]
7
2020-04-02T00:19:29.000Z
2021-11-02T07:22:28.000Z
docs/conf.py
eigensteve/pysindy
0456bed59d63f5d6b3d5937cedd341d7f7644357
[ "MIT" ]
null
null
null
docs/conf.py
eigensteve/pysindy
0456bed59d63f5d6b3d5937cedd341d7f7644357
[ "MIT" ]
null
null
null
import datetime import importlib import pathlib author = "dynamicslab" project = "pysindy" # package name # no need to edit below this line copyright = f"{datetime.datetime.now().year}, {author}" module = importlib.import_module(project) version = release = getattr(module, "__version__") master_doc = "index" e...
19.377049
55
0.725042
fe43da22640007daa68ff9176dd27a2e722bb109
40,881
py
Python
gamestonk_terminal/cryptocurrency/discovery/discovery_controller.py
Aerex/GamestonkTerminal
680e0cd278f0d8e45031cdc9d51f247e9aa90ce1
[ "MIT" ]
3
2021-02-28T09:54:47.000Z
2021-03-11T17:42:35.000Z
gamestonk_terminal/cryptocurrency/discovery/discovery_controller.py
Aerex/GamestonkTerminal
680e0cd278f0d8e45031cdc9d51f247e9aa90ce1
[ "MIT" ]
3
2022-02-28T03:37:52.000Z
2022-02-28T03:37:53.000Z
gamestonk_terminal/cryptocurrency/discovery/discovery_controller.py
Aerex/GamestonkTerminal
680e0cd278f0d8e45031cdc9d51f247e9aa90ce1
[ "MIT" ]
1
2021-11-20T16:09:48.000Z
2021-11-20T16:09:48.000Z
"""Cryptocurrency Discovery Controller""" __docformat__ = "numpy" # pylint: disable=R0904, C0302, W0622 import argparse from prompt_toolkit.completion import NestedCompleter from gamestonk_terminal import feature_flags as gtff from gamestonk_terminal.helper_funcs import ( get_flair, parse_known_args_and_warn, ...
30.645427
122
0.510726
960a010417d04b38eabae43fdb439623a33ee9a6
1,906
py
Python
coco/code-postprocessing/setup.py
KornelZ/LocalOptimizationEA
ce47d483e9ac8a05a069a876b86bc3589e644186
[ "BSD-3-Clause" ]
null
null
null
coco/code-postprocessing/setup.py
KornelZ/LocalOptimizationEA
ce47d483e9ac8a05a069a876b86bc3589e644186
[ "BSD-3-Clause" ]
null
null
null
coco/code-postprocessing/setup.py
KornelZ/LocalOptimizationEA
ce47d483e9ac8a05a069a876b86bc3589e644186
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import sys import setuptools from distutils.core import setup _name = 'cocopp' setup( name = _name, version = "2.2.1.10", packages = [_name, _name + '.comp2', _name ...
37.372549
112
0.53148
8f25d47cb10ce713fe3ab9860aca3ac7f3990abf
4,083
py
Python
tests/basics/Inspection.py
Mortal/Nuitka
5150eeff7ff845ed4993c773449cd81b7f127c6b
[ "Apache-2.0" ]
null
null
null
tests/basics/Inspection.py
Mortal/Nuitka
5150eeff7ff845ed4993c773449cd81b7f127c6b
[ "Apache-2.0" ]
null
null
null
tests/basics/Inspection.py
Mortal/Nuitka
5150eeff7ff845ed4993c773449cd81b7f127c6b
[ "Apache-2.0" ]
1
2018-12-16T23:51:18.000Z
2018-12-16T23:51:18.000Z
# Copyright 2018, Kay Hayen, mailto:kay.hayen@gmail.com # # Python tests originally created or extracted from other peoples work. The # parts were too small to be protected. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the ...
32.404762
109
0.738428
b14d1bf82bbbbd11147deeb42bff6b3aebaf0eb6
2,764
py
Python
tests/features_visualizations/test_transformations.py
DavidPetiteau/xplique
34ed027e1f47fdc88a87f6bb783b253327e77f54
[ "MIT" ]
72
2021-09-27T10:09:40.000Z
2022-03-24T06:33:41.000Z
tests/features_visualizations/test_transformations.py
DavidPetiteau/xplique
34ed027e1f47fdc88a87f6bb783b253327e77f54
[ "MIT" ]
32
2021-09-30T09:37:16.000Z
2022-03-17T11:00:16.000Z
tests/features_visualizations/test_transformations.py
DavidPetiteau/xplique
34ed027e1f47fdc88a87f6bb783b253327e77f54
[ "MIT" ]
4
2021-10-02T16:50:45.000Z
2022-01-11T08:26:55.000Z
import numpy as np import tensorflow as tf from ..utils import almost_equal from xplique.features_visualizations.transformations import random_blur, pad def test_blur(): """Test basic behaviour of the blur transformations""" imgs = np.zeros((3, 3, 3, 3), np.float32) # green dot imgs[:, 1, 1, 1] = 1.0...
43.873016
80
0.494573
2a661522ad1f9957d5966a064dea3d7dc7847909
2,619
py
Python
tests/sentry/api/endpoints/test_auth_config.py
pierredup/sentry
0145e4b3bc0e775bf3482fe65f5e1a689d0dbb80
[ "BSD-3-Clause" ]
1
2019-10-17T17:46:16.000Z
2019-10-17T17:46:16.000Z
tests/sentry/api/endpoints/test_auth_config.py
pierredup/sentry
0145e4b3bc0e775bf3482fe65f5e1a689d0dbb80
[ "BSD-3-Clause" ]
null
null
null
tests/sentry/api/endpoints/test_auth_config.py
pierredup/sentry
0145e4b3bc0e775bf3482fe65f5e1a689d0dbb80
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import import pytest from django.conf import settings from django.test.utils import override_settings from sentry import newsletter from sentry.testutils import APITestCase class AuthConfigEndpointTest(APITestCase): path = "/api/0/auth/config/" def test_logged_in(self): ...
33.151899
89
0.675067
dcf0ddebca606dfe9bbac8790d5130a333f3b091
1,034
py
Python
scrapers/scraper_resolver.py
ivelinahristova/webanalysis
ff73b65799dc1465b9138a8742ea74b9da171c8d
[ "MIT" ]
null
null
null
scrapers/scraper_resolver.py
ivelinahristova/webanalysis
ff73b65799dc1465b9138a8742ea74b9da171c8d
[ "MIT" ]
8
2021-04-10T17:55:31.000Z
2021-04-19T14:45:14.000Z
scrapers/scraper_resolver.py
ivelinahristova/webanalysis
ff73b65799dc1465b9138a8742ea74b9da171c8d
[ "MIT" ]
null
null
null
from typing import Text from scrapers.scraper_strategies.bivol_strategy import BivolStrategy from scrapers.scraper_strategies.dariknews_strategy import DariknewsStrategy from scrapers.scraper_strategies.dnevnik_strategy import DnevnikStrategy from scrapers.scraper_strategies.vesti_strategy import VestiStrategy from sc...
35.655172
77
0.758221
e92d0b7def82c2fc57caf2d2630e01226a45771f
3,002
py
Python
bento/commands/dependency.py
cournape/Bento
37de23d784407a7c98a4a15770ffc570d5f32d70
[ "BSD-3-Clause" ]
55
2015-01-20T21:12:52.000Z
2021-11-23T12:29:32.000Z
bento/commands/dependency.py
esc/Bento
5e13318c0a74e956f9e80fa7617fb31ffc356088
[ "BSD-3-Clause" ]
6
2015-01-16T07:01:29.000Z
2021-08-19T20:00:17.000Z
bento/commands/dependency.py
esc/Bento
5e13318c0a74e956f9e80fa7617fb31ffc356088
[ "BSD-3-Clause" ]
6
2015-08-12T18:11:47.000Z
2019-01-05T08:36:05.000Z
import os import sys from six.moves import cPickle from bento.compat.api \ import \ defaultdict import bento.utils.io2 def _invert_dependencies(deps): """Given a dictionary of edge -> dependencies representing a DAG, "invert" all the dependencies.""" ideps = {} for k, v in deps.items(): ...
30.323232
87
0.590939
965a0c68374d5d73bb234be59cdd4ad21468fa36
983
py
Python
data/activitynet_feature_cuhk/ldb_process.py
cxqj/44-BMN
507c6df651c987e721246ebd1366ce103c840a4d
[ "MIT" ]
242
2019-08-09T09:41:25.000Z
2022-03-31T08:21:08.000Z
data/activitynet_feature_cuhk/ldb_process.py
cxqj/44-BMN
507c6df651c987e721246ebd1366ce103c840a4d
[ "MIT" ]
47
2019-08-19T14:16:43.000Z
2022-03-18T08:57:43.000Z
data/activitynet_feature_cuhk/ldb_process.py
cxqj/44-BMN
507c6df651c987e721246ebd1366ce103c840a4d
[ "MIT" ]
65
2019-08-09T09:41:26.000Z
2022-03-15T10:46:09.000Z
# -*- coding: utf-8 -*- """ Created on Mon May 15 22:31:31 2017 @author: wzmsltw """ import caffe import leveldb import numpy as np from caffe.proto import caffe_pb2 import pandas as pd col_names=[] for i in range(200): col_names.append("f"+str(i)) df=pd.read_table("./input_spatial_list.txt",names=['image','fram...
22.860465
84
0.667345
71054da885da85ab52b81f92099564ac16529227
5,086
py
Python
main_coco_duc.py
Parking7907/skeleton
cb9e2f4b3e0aa4480b098bcceabd566eb29df60b
[ "Apache-2.0" ]
null
null
null
main_coco_duc.py
Parking7907/skeleton
cb9e2f4b3e0aa4480b098bcceabd566eb29df60b
[ "Apache-2.0" ]
null
null
null
main_coco_duc.py
Parking7907/skeleton
cb9e2f4b3e0aa4480b098bcceabd566eb29df60b
[ "Apache-2.0" ]
null
null
null
from matplotlib import pyplot as plt import pandas as pd import json import sys, time, os, pdb, argparse, pickle, subprocess from glob import glob import numpy as np from shutil import rmtree #pdb.set_trace() #################################################################################################...
38.824427
207
0.475226
0601161ef68eabbefcd9765620b6bec3283d056a
27,442
py
Python
gMLPhase/tester.py
lovelytt0/gMLP_phase
39d39f092a79ee05eef3fe9268335840e2a56c71
[ "MIT" ]
null
null
null
gMLPhase/tester.py
lovelytt0/gMLP_phase
39d39f092a79ee05eef3fe9268335840e2a56c71
[ "MIT" ]
null
null
null
gMLPhase/tester.py
lovelytt0/gMLP_phase
39d39f092a79ee05eef3fe9268335840e2a56c71
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Apr 25 17:44:14 2018 @author: mostafamousavi last update: 05/27/2021 """ from __future__ import print_function import os # os.environ['KERAS_BACKEND']='tensorflow' # from tensorflow.keras import backend as K # from tensorflow.keras.model...
37.234735
182
0.5129
f3acabd8976a9e84ac7edf06f83fbca18e226424
838
py
Python
apps/users/migrations/0002_auto_20190502_1233.py
TransparentHealth/smh-organization
ca32d1cbb7600e8b22e43e06edab83c323a2404d
[ "Apache-2.0" ]
3
2019-03-03T22:41:00.000Z
2020-04-16T04:07:07.000Z
apps/users/migrations/0002_auto_20190502_1233.py
TransparentHealth/smh_app
ca32d1cbb7600e8b22e43e06edab83c323a2404d
[ "Apache-2.0" ]
112
2019-03-04T14:20:50.000Z
2020-04-29T21:32:07.000Z
apps/users/migrations/0002_auto_20190502_1233.py
TransparentHealth/smh-organization
ca32d1cbb7600e8b22e43e06edab83c323a2404d
[ "Apache-2.0" ]
2
2019-08-01T13:08:28.000Z
2019-12-06T15:53:25.000Z
# Generated by Django 2.1.7 on 2019-05-02 12:33 import os from django.db import migrations class Migration(migrations.Migration): def create_root_user(apps, schema_editor): try: if not os.getenv("ROOT_USER", False) or not os.getenv( "ROOT_PASSWORD", False ): ...
27.933333
93
0.568019
8d270333cafaf2af6b1acc75f18cea36a4c46f5e
1,047
py
Python
src/nti/site/zcml.py
NextThought/nti.site
e7bfa2a1c5a60631abf25eceeac95112f2ebf408
[ "Apache-2.0" ]
1
2021-07-29T00:16:46.000Z
2021-07-29T00:16:46.000Z
src/nti/site/zcml.py
NextThought/nti.site
e7bfa2a1c5a60631abf25eceeac95112f2ebf408
[ "Apache-2.0" ]
36
2016-07-29T20:06:23.000Z
2021-03-23T16:13:37.000Z
src/nti/site/zcml.py
NextThought/nti.site
e7bfa2a1c5a60631abf25eceeac95112f2ebf408
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ .. $Id$ """ from __future__ import print_function, absolute_import, division __docformat__ = "restructuredtext en" logger = __import__('logging').getLogger(__name__) from zope import interface from zope.component.zcml import utility from zope.schema import TextLine...
26.175
82
0.729704
7f6be318df88888c36ff905cf8a47bcedcfa1377
2,478
py
Python
hntm/utils.py
kerbrek/hntm
865c59d9286dffe84cc2840c5450265199f72ee5
[ "MIT" ]
null
null
null
hntm/utils.py
kerbrek/hntm
865c59d9286dffe84cc2840c5450265199f72ee5
[ "MIT" ]
null
null
null
hntm/utils.py
kerbrek/hntm
865c59d9286dffe84cc2840c5450265199f72ee5
[ "MIT" ]
null
null
null
import os import re from bs4 import BeautifulSoup HN_HTTP = "http://news.ycombinator.com" HN_HTTPS = "https://news.ycombinator.com" HOST = os.environ.get('HOST', "127.0.0.1") PORT = int(os.environ.get('PORT', 8000)) TM = "™" def add_trademark_to_word(matchobj): word = matchobj.group(0) return f"{word}{TM}" ...
25.546392
72
0.671913
8d8efb56c9e20e3da8a6ba47b99beb1cadf6b833
4,736
py
Python
board/safe_path_generator.py
rschmid4/NineMensMorrisBoard
6edc72b00c77ddcf98e20896fa018e3b16b7c925
[ "MIT" ]
4
2017-10-10T20:03:16.000Z
2021-11-09T07:49:37.000Z
board/safe_path_generator.py
rschmid4/NineMensMorrisBoard
6edc72b00c77ddcf98e20896fa018e3b16b7c925
[ "MIT" ]
null
null
null
board/safe_path_generator.py
rschmid4/NineMensMorrisBoard
6edc72b00c77ddcf98e20896fa018e3b16b7c925
[ "MIT" ]
1
2022-01-19T02:01:14.000Z
2022-01-19T02:01:14.000Z
import math from heapq import * # this class holds the secondary graph for finding safe paths that avoid all stones on the board # it is also responsible for generating those paths using A* NODES = [(0.5, 0.5), (2, 0.5), (3, 0.5), (4, 0.5), (5.5, 0.5), # nodes 0-4 (1.5, 1.5), (2, 1.5), (3, 1.5), (4, 1.5), (...
50.382979
130
0.493032
4ad4c890eeffb6ade4729e1f0adfd09b82f5932b
2,160
py
Python
sphinx/conf.py
igboyes/virtool-workflow
1ef9a4b0bada1963ff9be0470dfe74b32c9e7ccf
[ "MIT" ]
null
null
null
sphinx/conf.py
igboyes/virtool-workflow
1ef9a4b0bada1963ff9be0470dfe74b32c9e7ccf
[ "MIT" ]
null
null
null
sphinx/conf.py
igboyes/virtool-workflow
1ef9a4b0bada1963ff9be0470dfe74b32c9e7ccf
[ "MIT" ]
null
null
null
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
35.409836
92
0.675926
605d8a7bc905983961053acff19041779d5df1b2
2,862
py
Python
azure-mgmt-notificationhubs/setup.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
null
null
null
azure-mgmt-notificationhubs/setup.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2018-11-29T14:46:42.000Z
2018-11-29T14:46:42.000Z
azure-mgmt-notificationhubs/setup.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
null
null
null
#!/usr/bin/env python #------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. #----------------------------------------------------------------...
32.522727
91
0.602376
bf892d09ef13e8a582bee33e7a899883d6384dfd
2,119
py
Python
template_creator/util/constants.py
VanOvermeire/sam-template-creator
0b39440c9051ccd30fc80bfa2e4d7da40c7e50b7
[ "MIT" ]
3
2019-06-10T19:46:23.000Z
2021-05-06T12:15:45.000Z
template_creator/util/constants.py
VanOvermeire/sam-template-creator
0b39440c9051ccd30fc80bfa2e4d7da40c7e50b7
[ "MIT" ]
2
2019-10-20T14:57:50.000Z
2020-01-01T00:52:32.000Z
template_creator/util/constants.py
VanOvermeire/sam-template-creator
0b39440c9051ccd30fc80bfa2e4d7da40c7e50b7
[ "MIT" ]
2
2019-10-19T07:40:53.000Z
2019-10-19T08:29:40.000Z
DEFAULT_TEMPLATE_NAME = 'template.yaml' LANGUAGES_WITH_SUFFIXES = { 'python3.7': '.py', 'python3.6': '.py', 'python2.7': '.py', 'nodejs8.10': '.js', 'nodejs6.10': '.js', 'nodejs4.3': '.js', 'java8': '.java', 'go1.x': '.go' } HTTP_METHODS = ['get', 'head', 'options', 'post', 'put', 'del...
23.544444
82
0.423785
2096d80ce5b70167f3f7fcf584d0bf04c4a0f39e
12,805
py
Python
src/collectors/httpd/test/testhttpd.py
wareczek/diamond-next
5822ee527f81291f88e6fda10c4d7e9a4c99debe
[ "MIT" ]
6
2019-02-20T06:34:31.000Z
2020-05-06T16:08:02.000Z
src/collectors/httpd/test/testhttpd.py
wareczek/diamond-next
5822ee527f81291f88e6fda10c4d7e9a4c99debe
[ "MIT" ]
7
2019-02-19T23:13:52.000Z
2019-02-23T08:45:31.000Z
src/collectors/httpd/test/testhttpd.py
wareczek/diamond-next
5822ee527f81291f88e6fda10c4d7e9a4c99debe
[ "MIT" ]
2
2020-07-29T07:49:27.000Z
2021-02-22T23:33:46.000Z
#!/usr/bin/python # coding=utf-8 ########################################################################## from test import CollectorTestCase from test import get_collector_config from test import unittest from mock import Mock from mock import patch from diamond.collector import Collector from httpd import HttpdCol...
31.080097
80
0.55205
0dd22dcbf6975022f3c3ae3456044cc1d88de24c
40,923
py
Python
WebApp.py
BIONF/AspecT
9ede773aaf72487d843fd3f1ffed27abd069c656
[ "MIT" ]
null
null
null
WebApp.py
BIONF/AspecT
9ede773aaf72487d843fd3f1ffed27abd069c656
[ "MIT" ]
null
null
null
WebApp.py
BIONF/AspecT
9ede773aaf72487d843fd3f1ffed27abd069c656
[ "MIT" ]
null
null
null
from flask import Flask, render_template, session, request, redirect, url_for, abort from Option_field_WebApp import Login import os import csv import json from search_filter import single_oxa, get_added_genomes, oxa_and_IC_multiprocessing, read_search, read_search_spec, pre_processing from flask_bcrypt import Bcrypt f...
36.538393
136
0.57811
a89ad41bb28ba57cc517fa59a2569ed9552c1361
1,066
py
Python
moviepy/video/io/downloader.py
asears/moviepy
6ab3efba36cf7fc5d3245f0ee0dc9244cb141c9e
[ "MIT" ]
2
2021-03-07T08:30:56.000Z
2021-12-28T03:30:40.000Z
moviepy/video/io/downloader.py
rishabhvarshney14/moviepy
873530e506c61136006e04b6a7f268fc24737925
[ "MIT" ]
1
2022-03-12T01:04:31.000Z
2022-03-12T01:04:31.000Z
moviepy/video/io/downloader.py
rishabhvarshney14/moviepy
873530e506c61136006e04b6a7f268fc24737925
[ "MIT" ]
null
null
null
""" Utilities to get a file from the internet """ import os import requests from moviepy.tools import subprocess_call def download_webfile(url, filename, overwrite=False): """Small utility to download the file at 'url' under name 'filename'. If url is a youtube video ID like z410eauCnH it will download the...
29.611111
76
0.616323
aad33e58330efa3595a0a7052debb15be11478a4
883
py
Python
tests/__init__.py
noviluni/number-parser
5e10b96bb93b8e217861aed3d3726ad2d1a56f4b
[ "BSD-3-Clause" ]
null
null
null
tests/__init__.py
noviluni/number-parser
5e10b96bb93b8e217861aed3d3726ad2d1a56f4b
[ "BSD-3-Clause" ]
null
null
null
tests/__init__.py
noviluni/number-parser
5e10b96bb93b8e217861aed3d3726ad2d1a56f4b
[ "BSD-3-Clause" ]
null
null
null
import os import csv from number_parser import parse_number TEST_ROOT = os.path.dirname(os.path.abspath(__file__)) HUNDREDS_DIRECTORY = os.path.join(TEST_ROOT, "./data/hundreds") PERMUTATION_DIRECTORY = os.path.join(TEST_ROOT, "./data/permutations") def get_test_files(path, prefix): return [ os.path.join...
32.703704
85
0.645527
0626920e56f49628d64d94642e738eab95756b7f
615
py
Python
ex054.py
heltonsdl/python-3---curso-em-video
2bb0408ec041628323443cf902fca593f7575941
[ "MIT" ]
null
null
null
ex054.py
heltonsdl/python-3---curso-em-video
2bb0408ec041628323443cf902fca593f7575941
[ "MIT" ]
null
null
null
ex054.py
heltonsdl/python-3---curso-em-video
2bb0408ec041628323443cf902fca593f7575941
[ "MIT" ]
null
null
null
from datetime import date '''Crie um programa que leia o ano de nascimento de sete pessoas. No final, mostre quantas pessoas ainda não atingiram a maioridade e quantas já são maiores. Aula Anterior Voltar para Módulo Próximo''' atual = date.today().year totmaior = 0 totmenor = 0 for c in range (1, 8): ano = in...
26.73913
157
0.671545
833093630fdf1d2eb30f39945b4dcebe63010be0
149
py
Python
codewars/8kyu/dinamuh/FindTheSmallestIntegerInTheArray/main.py
dinamuh/Training_one
d18e8fb12608ce1753162c20252ca928c4df97ab
[ "MIT" ]
null
null
null
codewars/8kyu/dinamuh/FindTheSmallestIntegerInTheArray/main.py
dinamuh/Training_one
d18e8fb12608ce1753162c20252ca928c4df97ab
[ "MIT" ]
2
2019-01-22T10:53:42.000Z
2019-01-31T08:02:48.000Z
codewars/8kyu/dinamuh/FindTheSmallestIntegerInTheArray/main.py
dinamuh/Training_one
d18e8fb12608ce1753162c20252ca928c4df97ab
[ "MIT" ]
13
2019-01-22T10:37:42.000Z
2019-01-25T13:30:43.000Z
def find_smallest_int(arr): x = arr[0] for i in arr: if i < x: x = i return x def findSmallestInt(arr): return min(arr)
14.9
27
0.557047
080b7429de87af04bd166afac6d1ed296121614c
3,485
py
Python
attune/_tune.py
wright-group/WrightTune
e9a4937b6fda24dfd10baf2fc674c15542861aba
[ "MIT" ]
2
2020-08-20T14:26:19.000Z
2021-07-19T22:51:19.000Z
attune/_tune.py
wright-group/attune
67b7e5590a11e9b09056e7d334fd7d7286a24c5f
[ "MIT" ]
96
2017-10-12T01:16:01.000Z
2022-02-23T19:43:57.000Z
attune/_tune.py
wright-group/WrightTune
e9a4937b6fda24dfd10baf2fc674c15542861aba
[ "MIT" ]
2
2021-08-17T22:22:06.000Z
2021-09-01T02:30:06.000Z
__all__ = ["Tune"] import WrightTools as wt import numpy as np import scipy.interpolate class Tune: def __init__(self, independent, dependent, *, dep_units=None, **kwargs): """A Tune which maps one set of inputs to associated output points. Currently all tunes are assumed to have "nm" as their ...
35.20202
106
0.639885
3a0e06ed16e8b3cdc5ebd9ed03241121f3b70413
2,194
py
Python
modules/SEIR_Model.py
bgossage/biomath
ad4724763d14bf2ad7ef193b6faf6a83dc0392ae
[ "MIT" ]
null
null
null
modules/SEIR_Model.py
bgossage/biomath
ad4724763d14bf2ad7ef193b6faf6a83dc0392ae
[ "MIT" ]
null
null
null
modules/SEIR_Model.py
bgossage/biomath
ad4724763d14bf2ad7ef193b6faf6a83dc0392ae
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on 8/6/2020 @author: bgossage """ """ A simple epidemic model Mathematical Biology, J.D. Murray Chapter 19.1 Given a disease in which recovery confers immunity: S(t) .=. Susceptibles E(t) .=. Exposed I(t) .=. Infectives R(t) .=. Removed (immune, or isolated) D(t) .=. Deaths ...
22.387755
88
0.577028
9cc8267e66d31cae2b1ab8f8d49704bd8b701609
2,325
py
Python
plugins/whoismind.py
vlajbert/skiptrace3
f0330bb43ef3295bf5706f2e7b07eeb384caba43
[ "Apache-2.0" ]
9
2020-08-29T12:04:04.000Z
2022-03-31T11:27:52.000Z
plugins/whoismind.py
vlajbert/skiptrace3
f0330bb43ef3295bf5706f2e7b07eeb384caba43
[ "Apache-2.0" ]
null
null
null
plugins/whoismind.py
vlajbert/skiptrace3
f0330bb43ef3295bf5706f2e7b07eeb384caba43
[ "Apache-2.0" ]
6
2020-11-30T16:09:13.000Z
2021-09-21T16:40:11.000Z
####################################################################### # whoismind scraper - returns domains associated with email # ####################################################################### import re import logging import numpy as np from plugins.base import PageGrabber from plugins.colors imp...
42.272727
104
0.531613
d9473cc7e45e74470685a3326d582c00347179fb
928
py
Python
Paths/Align to Metrics/Bump right.py
sergio391/Mekkablue-Glyphs-Scripts
aab8a00522dd90442d89b10fa1f560b215ce9c99
[ "Apache-2.0" ]
1
2021-09-04T18:41:30.000Z
2021-09-04T18:41:30.000Z
Paths/Align to Metrics/Bump right.py
davidtahim/Glyphs-Scripts
5ed28805b5fe03c63d904ad2f79117844c22aa44
[ "Apache-2.0" ]
null
null
null
Paths/Align to Metrics/Bump right.py
davidtahim/Glyphs-Scripts
5ed28805b5fe03c63d904ad2f79117844c22aa44
[ "Apache-2.0" ]
1
2021-06-09T19:16:47.000Z
2021-06-09T19:16:47.000Z
#MenuTitle: Bump right # -*- coding: utf-8 -*- __doc__=""" Align selected paths (and parts of paths) to the next sidebearing or glyph center to the right. """ import GlyphsApp Font = Glyphs.font Doc = Glyphs.currentDocument Master = Font.selectedFontMaster selectedLayer = Font.selectedLayers[0] allMetrics = [ 0.0, s...
25.081081
95
0.734914
45a0bd50bba62a2dfa70f534daee0d19c654c686
3,197
py
Python
src/data/prune_taxon.py
emcuttsy/algal-polysaccharides
de340c8521bca7c74d741ae0b356b1816af0768d
[ "MIT" ]
null
null
null
src/data/prune_taxon.py
emcuttsy/algal-polysaccharides
de340c8521bca7c74d741ae0b356b1816af0768d
[ "MIT" ]
null
null
null
src/data/prune_taxon.py
emcuttsy/algal-polysaccharides
de340c8521bca7c74d741ae0b356b1816af0768d
[ "MIT" ]
null
null
null
# prune_taxon # Removes all sequences from a certain taxon that are not present in an input list # i.e. remove all Pseudomonas sequences that aren't in subsample_pseudomonas.txt import argparse import pandas as pd from src import config from Bio import SeqIO def clean_id(record): # gets the clean id string #...
34.376344
141
0.643416
79b72b055f365a653800862b72bb78533a992264
7,893
py
Python
zuul.d/octavia/tests/unit/certificates/generator/test_local.py
yi-cloud/octavia
b7f5cfa4c3c454925a90c24984049539228806d7
[ "Apache-2.0" ]
null
null
null
zuul.d/octavia/tests/unit/certificates/generator/test_local.py
yi-cloud/octavia
b7f5cfa4c3c454925a90c24984049539228806d7
[ "Apache-2.0" ]
null
null
null
zuul.d/octavia/tests/unit/certificates/generator/test_local.py
yi-cloud/octavia
b7f5cfa4c3c454925a90c24984049539228806d7
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Rackspace US, Inc # # 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...
42.896739
80
0.631699
7bfbe95fbe1f351a3613a7dafec534df5aee8576
20,313
py
Python
venv/lib/python3.6/site-packages/ansible_collections/community/crypto/plugins/modules/ecs_domain.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
1
2020-01-22T13:11:23.000Z
2020-01-22T13:11:23.000Z
venv/lib/python3.6/site-packages/ansible_collections/community/crypto/plugins/modules/ecs_domain.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
12
2020-02-21T07:24:52.000Z
2020-04-14T09:54:32.000Z
venv/lib/python3.6/site-packages/ansible_collections/community/crypto/plugins/modules/ecs_domain.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright 2019 Entrust Datacard Corporation. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type DOCUMENTATION = ''' --- module: ecs_domain autho...
49.909091
160
0.692414
7476f8461ef3c912242de9b60b3c20e4f166bc90
976
py
Python
bindings/python/tests/includes.py
mewbak/dragonffi
2a205dbe4dd980d5dd53026c871514795573a7fb
[ "Apache-2.0" ]
null
null
null
bindings/python/tests/includes.py
mewbak/dragonffi
2a205dbe4dd980d5dd53026c871514795573a7fb
[ "Apache-2.0" ]
null
null
null
bindings/python/tests/includes.py
mewbak/dragonffi
2a205dbe4dd980d5dd53026c871514795573a7fb
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Adrien Guinet <adrien@guinet.me> # # 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 o...
26.378378
74
0.694672
76e17cc28891e7629bbff498274f1defb41e0110
35,472
py
Python
manim/mobject/geometry/line.py
Pow3r5/manim
2972a64342aa5ae72977b444f653b05250ab1f8f
[ "MIT" ]
2
2022-03-31T08:31:00.000Z
2022-03-31T08:31:43.000Z
manim/mobject/geometry/line.py
Pow3r5/manim
2972a64342aa5ae72977b444f653b05250ab1f8f
[ "MIT" ]
21
2022-03-02T15:25:49.000Z
2022-03-07T11:15:45.000Z
manim/mobject/geometry/line.py
DD2480-Group-10/manim
e147a9fc6c117332221e42437481f3efba76499a
[ "MIT" ]
null
null
null
r"""Mobjects that are lines or variations of them.""" from __future__ import annotations __all__ = [ "Line", "DashedLine", "TangentLine", "Elbow", "Arrow", "Vector", "DoubleArrow", "Angle", "RightAngle", ] from typing import Sequence import numpy as np from colour import Color f...
33.52741
148
0.556467
0e831c582d0d2660365d542dae7e3c9b0cbae19b
3,348
py
Python
fastreid/modeling/backbones/mixstyle.py
wlgcqh/fast-reid
484b0749cc4470c9b4ae9eb75f8c98ad5d5e3630
[ "Apache-2.0" ]
null
null
null
fastreid/modeling/backbones/mixstyle.py
wlgcqh/fast-reid
484b0749cc4470c9b4ae9eb75f8c98ad5d5e3630
[ "Apache-2.0" ]
null
null
null
fastreid/modeling/backbones/mixstyle.py
wlgcqh/fast-reid
484b0749cc4470c9b4ae9eb75f8c98ad5d5e3630
[ "Apache-2.0" ]
null
null
null
import random import torch import torch.nn as nn class MixStyle(nn.Module): """MixStyle. Reference: Zhou et al. Domain Generalization with MixStyle. ICLR 2021. """ def __init__(self, p=0.5, alpha=0.3, eps=1e-6): """ Args: p (float): probability of using MixStyle. ...
28.615385
84
0.53853
7e9ceb0be5dc01e501413055c306e88014fb3bb0
98,554
py
Python
numpy/lib/tests/test_io.py
xcz011/numpy
bc3c7176987a5017126abbc861458fe53cd099fc
[ "BSD-3-Clause" ]
1
2021-03-07T16:07:59.000Z
2021-03-07T16:07:59.000Z
numpy/lib/tests/test_io.py
xcz011/numpy
bc3c7176987a5017126abbc861458fe53cd099fc
[ "BSD-3-Clause" ]
2
2019-06-27T22:38:29.000Z
2019-06-28T22:21:14.000Z
numpy/lib/tests/test_io.py
xcz011/numpy
bc3c7176987a5017126abbc861458fe53cd099fc
[ "BSD-3-Clause" ]
null
null
null
from __future__ import division, absolute_import, print_function import sys import gzip import os import threading import time import warnings import io import re import pytest from tempfile import NamedTemporaryFile from io import BytesIO, StringIO from datetime import datetime import locale import numpy as np impor...
38.816069
97
0.519969
c3639eefc92105b35b630ef7da80c89aac563927
2,920
py
Python
Project1-MazeSolver/main.py
EricCharnesky/CIS2001-Winter2022
9c74433ade96e4c7bf9029543285f1ded1fe91e5
[ "MIT" ]
3
2022-01-20T21:55:17.000Z
2022-02-02T23:10:45.000Z
Project1-MazeSolver/main.py
EricCharnesky/CIS2001-Winter2022
9c74433ade96e4c7bf9029543285f1ded1fe91e5
[ "MIT" ]
null
null
null
Project1-MazeSolver/main.py
EricCharnesky/CIS2001-Winter2022
9c74433ade96e4c7bf9029543285f1ded1fe91e5
[ "MIT" ]
2
2022-02-06T02:59:32.000Z
2022-02-23T02:34:13.000Z
class MazeSolver: def __init__(self, maze): self._maze = maze self._current_steps = 0 self._steps_per_solution = {} for row_index in range(len(maze)): for column_index in range(len(self._maze[row_index])): if self._maze[row_index][column_index] == 'S': ...
34.761905
104
0.506507
505ac7fa9f6aec1026f8993b76d1728d58291565
1,893
py
Python
exabel_data_sdk/client/exabel_client.py
oyvindwe/python-sdk
f96c3da57bd4fd0fbf308c139ab2be4c62138301
[ "MIT" ]
null
null
null
exabel_data_sdk/client/exabel_client.py
oyvindwe/python-sdk
f96c3da57bd4fd0fbf308c139ab2be4c62138301
[ "MIT" ]
null
null
null
exabel_data_sdk/client/exabel_client.py
oyvindwe/python-sdk
f96c3da57bd4fd0fbf308c139ab2be4c62138301
[ "MIT" ]
null
null
null
from exabel_data_sdk.client.api.entity_api import EntityApi from exabel_data_sdk.client.api.relationship_api import RelationshipApi from exabel_data_sdk.client.api.signal_api import SignalApi from exabel_data_sdk.client.api.time_series_api import TimeSeriesApi from exabel_data_sdk.client.client_config import ClientConf...
43.022727
99
0.630217
d7641fad1e7b6795bc4481490b788a310a548d72
702
py
Python
stubs/loboris-esp32_lobo-3_2_9/collections.py
RonaldHiemstra/micropython-stubs
d97f879b01f6687baaebef1c7e26a80909c3cff3
[ "MIT" ]
38
2020-10-18T21:59:44.000Z
2022-03-17T03:03:28.000Z
stubs/loboris-esp32_lobo-3_2_9/collections.py
RonaldHiemstra/micropython-stubs
d97f879b01f6687baaebef1c7e26a80909c3cff3
[ "MIT" ]
176
2020-10-18T14:31:03.000Z
2022-03-30T23:22:39.000Z
stubs/loboris-esp32_lobo-3_2_9/collections.py
RonaldHiemstra/micropython-stubs
d97f879b01f6687baaebef1c7e26a80909c3cff3
[ "MIT" ]
6
2020-12-28T21:11:12.000Z
2022-02-06T04:07:50.000Z
""" Module: 'collections' on esp32_LoBo 3.2.9 """ # MCU: (sysname='esp32_LoBo', nodename='esp32_LoBo', release='3.2.9', version='ESP32_LoBo_v3.2.9 on 2018-04-12', machine='ESP32 board with ESP32') # Stubber: 1.1.2 class OrderedDict: '' def clear(): pass def copy(): pass def fromkeys()...
13
146
0.507123
9b32bb775454a1cf00626109134dae94d4073278
4,639
py
Python
Accounts/views.py
jay1999ke/QPA_Pure
c5ba6d7998d5fb1544b81bc076dbd19c3017fa9e
[ "MIT" ]
1
2020-09-18T14:27:09.000Z
2020-09-18T14:27:09.000Z
Accounts/views.py
jay1999ke/QPA_Pure
c5ba6d7998d5fb1544b81bc076dbd19c3017fa9e
[ "MIT" ]
1
2019-12-20T04:30:46.000Z
2019-12-20T04:30:46.000Z
Accounts/views.py
jay1999ke/PureQPA
c5ba6d7998d5fb1544b81bc076dbd19c3017fa9e
[ "MIT" ]
null
null
null
from django.shortcuts import render,redirect from django.http import HttpResponse,HttpResponseRedirect from django.views import View,generic from django.contrib.auth.models import User from django.contrib.auth import authenticate, login, logout from django.contrib.auth.decorators import login_required from django.contr...
41.792793
123
0.646476
faecb9597eca904e091713b5e1851301d9fab18c
13,934
py
Python
metaworld/envs/mujoco/sawyer_xyz/sawyer_shelf_remove.py
CAVED123/METAWORLD
9f613fe967349c00c6367af53ece499964253793
[ "MIT" ]
46
2020-12-05T21:40:47.000Z
2022-03-26T04:15:03.000Z
metaworld/envs/mujoco/sawyer_xyz/sawyer_shelf_remove.py
CAVED123/METAWORLD
9f613fe967349c00c6367af53ece499964253793
[ "MIT" ]
8
2021-01-25T05:00:35.000Z
2021-08-05T13:46:54.000Z
metaworld/envs/mujoco/sawyer_xyz/sawyer_shelf_remove.py
CAVED123/METAWORLD
9f613fe967349c00c6367af53ece499964253793
[ "MIT" ]
10
2021-01-24T14:24:20.000Z
2022-03-23T17:58:52.000Z
from collections import OrderedDict import numpy as np from gym.spaces import Dict , Box from metaworld.envs.env_util import get_stat_in_paths, \ create_stats_ordered_dict, get_asset_full_path from metaworld.core.multitask_env import MultitaskEnv from metaworld.envs.mujoco.sawyer_xyz.base import SawyerXYZEnv f...
38.598338
170
0.574063
b7ec2e51dab3506ef623fe2d4bbfbeeeb67ba9e2
95
py
Python
asyncTasks/apps.py
codeboytj/mysite
97f8a3604405aca222fb36d59d6c5c1aae6bb4d2
[ "Apache-2.0" ]
null
null
null
asyncTasks/apps.py
codeboytj/mysite
97f8a3604405aca222fb36d59d6c5c1aae6bb4d2
[ "Apache-2.0" ]
null
null
null
asyncTasks/apps.py
codeboytj/mysite
97f8a3604405aca222fb36d59d6c5c1aae6bb4d2
[ "Apache-2.0" ]
null
null
null
from django.apps import AppConfig class AsynctasksConfig(AppConfig): name = 'asyncTasks'
15.833333
34
0.768421
096bd284d512b1ae784d775b3c83df983e7ff273
4,434
py
Python
tuf/mirrors.py
Ajedi32/tuf
5733e6138a9fdb3e822ad90e920abd5520115a68
[ "Apache-2.0", "MIT" ]
1
2017-10-31T21:57:58.000Z
2017-10-31T21:57:58.000Z
tuf/mirrors.py
Acidburn0zzz/tuf
844348e4901684d3af437030b132b2cd96178426
[ "Apache-2.0", "MIT" ]
null
null
null
tuf/mirrors.py
Acidburn0zzz/tuf
844348e4901684d3af437030b132b2cd96178426
[ "Apache-2.0", "MIT" ]
null
null
null
""" <Program Name> mirrors.py <Author> Konstantin Andrianov. Derived from original mirrors.py written by Geremy Condra. <Started> March 12, 2012. <Copyright> See LICENSE for licensing information. <Purpose> Extract a list of mirror urls corresponding to the file type and the location of the file with ...
35.758065
80
0.726432
598ce6f4be491e74b2904010d4e188824551a4d9
6,661
py
Python
model_building_tools/gen_classes/genClasses.py
jdailey/EnergyPATHWAYS
0fb0ead475b6395f6b07fc43fe6c85826ee47d0f
[ "MIT" ]
26
2017-02-06T22:57:29.000Z
2022-03-25T20:02:32.000Z
model_building_tools/gen_classes/genClasses.py
jdailey/EnergyPATHWAYS
0fb0ead475b6395f6b07fc43fe6c85826ee47d0f
[ "MIT" ]
65
2016-01-22T01:33:05.000Z
2016-09-03T14:46:08.000Z
model_building_tools/gen_classes/genClasses.py
jdailey/EnergyPATHWAYS
0fb0ead475b6395f6b07fc43fe6c85826ee47d0f
[ "MIT" ]
11
2017-02-24T23:27:36.000Z
2021-10-18T17:33:37.000Z
#!/usr/bin/env python from __future__ import print_function import click import sys from csvdb.database import CsvDatabase from energyPATHWAYS.data_object import DataObject from postgres import PostgresDatabase, find_key_col # # This dict provides extra args to include in init method of the classes that are # the key...
33.984694
119
0.62348
e07f59459f8a8f9e9b12246f6599158a5d12ee9d
4,519
py
Python
torch_complex/squeezenet1D.py
veya2ztn/mltool
4ed151152845ebe3de128e1f53c478581c1492e4
[ "IJG" ]
null
null
null
torch_complex/squeezenet1D.py
veya2ztn/mltool
4ed151152845ebe3de128e1f53c478581c1492e4
[ "IJG" ]
null
null
null
torch_complex/squeezenet1D.py
veya2ztn/mltool
4ed151152845ebe3de128e1f53c478581c1492e4
[ "IJG" ]
null
null
null
import math import torch import torch.nn as nn import torch.nn.init as init from . import complex_layer as nc __all__ = ['SqueezeNet', 'squeezenet1_0', 'squeezenet1_1'] class Fire(nn.Module): def __init__(self, inplanes, squeeze_planes, expand1x1_planes, expand3x3_planes): super(Fire, s...
38.623932
76
0.583536
8c2e0e6b4e4af778872514400384116a69cab224
6,089
py
Python
HSpicePy/hspicpy.py
ubeydtalha/bitirme-projesi
71601eb04a5e8a0aa93357ddf8b978d68eae6cdc
[ "MIT" ]
null
null
null
HSpicePy/hspicpy.py
ubeydtalha/bitirme-projesi
71601eb04a5e8a0aa93357ddf8b978d68eae6cdc
[ "MIT" ]
null
null
null
HSpicePy/hspicpy.py
ubeydtalha/bitirme-projesi
71601eb04a5e8a0aa93357ddf8b978d68eae6cdc
[ "MIT" ]
null
null
null
""" TR: Kütüphaneyi kullanmadan önce hspice programının path edildiğinden emin olunuz. """ import os , time import re import subprocess import itertools class Result(object): def __init__(self, *args, **kwargs): self.__dict__.update(kwargs) def timeit(method): def timed(*args, **kw): ts ...
28.059908
109
0.510593
2999f4634087ad722dba6eaada8b34d1cc39f504
1,128
py
Python
create_index.py
ZileZ/IR_search
1c47d6142163f5623fc95823f3ed945465d71b82
[ "MIT" ]
1
2021-06-05T17:21:13.000Z
2021-06-05T17:21:13.000Z
create_index.py
ZileZ/IR_search
1c47d6142163f5623fc95823f3ed945465d71b82
[ "MIT" ]
null
null
null
create_index.py
ZileZ/IR_search
1c47d6142163f5623fc95823f3ed945465d71b82
[ "MIT" ]
null
null
null
import os import numpy as np from preprocess import seg_sentence filepath = 'output' indexpath = 'index' news_list = {} file_list = {} #写索引 def write_index(fpath, context): a = np.array(context) np.save(os.path.join(fpath),a) #建立文档索引 def construct_lists(filepath): files = os.listdir(filep...
28.2
72
0.586879
9701ba01c47fa46612e6ef9b5438c7ddaf0aa332
2,605
py
Python
organizesampledir.py
henriksson-lab/screpo
afb0b61085681b7d33a4ff90b2f28949a7c53035
[ "BSD-2-Clause" ]
null
null
null
organizesampledir.py
henriksson-lab/screpo
afb0b61085681b7d33a4ff90b2f28949a7c53035
[ "BSD-2-Clause" ]
null
null
null
organizesampledir.py
henriksson-lab/screpo
afb0b61085681b7d33a4ff90b2f28949a7c53035
[ "BSD-2-Clause" ]
null
null
null
import os, sys, re, shutil import pandas as pd import util from fastqfileinfo import fastqinfo def organizesampledir(): tempdir = "/corgi/debojyoti/temp" files = [f for f in os.listdir(tempdir) if re.search('fastq.gz', f) or re.search('fq.gz',f) or re.search('fastq', f) or re.search('fq', f)] samples ...
29.942529
147
0.522457
2e7cc682ea3ea8d03bbd87be370f7cdd606dd91b
4,936
py
Python
Development Resources/Miscellaneous Content/level1.py
Tornado9797/pyramid-treasure-hunt
b4f16c6ca8452b32b97054a2d470fb8b9b6f1268
[ "MIT" ]
null
null
null
Development Resources/Miscellaneous Content/level1.py
Tornado9797/pyramid-treasure-hunt
b4f16c6ca8452b32b97054a2d470fb8b9b6f1268
[ "MIT" ]
1
2017-01-25T19:47:07.000Z
2017-01-25T19:47:07.000Z
Development Resources/Miscellaneous Content/level1.py
Tornado9797/pyramid-treasure-hunt
b4f16c6ca8452b32b97054a2d470fb8b9b6f1268
[ "MIT" ]
null
null
null
health = 100 inventory = [] def level_1(health, inventory): print("You step into a huge room. The door swings shut behind you.") exit_room = False door = 'locked' sarcophagus = ['medalion', 'key', 'closed'] while not exit_room: action = input("\n> ") action = action.lower(...
48.392157
90
0.523096
48c1739357224ef47b818d651bc9a462a809a575
26,066
py
Python
tests/compile/test_debugmode.py
ionuttamas/Theano-PyMC
b666bdbb35aec21ac83936bfc91c573ef5ccf741
[ "BSD-3-Clause" ]
null
null
null
tests/compile/test_debugmode.py
ionuttamas/Theano-PyMC
b666bdbb35aec21ac83936bfc91c573ef5ccf741
[ "BSD-3-Clause" ]
null
null
null
tests/compile/test_debugmode.py
ionuttamas/Theano-PyMC
b666bdbb35aec21ac83936bfc91c573ef5ccf741
[ "BSD-3-Clause" ]
null
null
null
import sys import numpy as np import pytest import theano import theano.tensor from tests import unittest_tools as utt from theano import config, gof from theano.compile import debugmode def test_debugmode_basic(): x = theano.tensor.dvector() f = theano.function([x], ((2.0 * x) + 7) / 2.0, mode=debugmode.De...
32.746231
111
0.548838
589cc6b37310b41c02e648586a02d6fde9059b4d
1,033
py
Python
ccapi/requests/exports/viewfile.py
stcstores/ccapi
cc137efa7344b8552e122d30899616bfdbd6af0b
[ "MIT" ]
1
2018-09-11T11:53:22.000Z
2018-09-11T11:53:22.000Z
ccapi/requests/exports/viewfile.py
stcstores/ccapi
cc137efa7344b8552e122d30899616bfdbd6af0b
[ "MIT" ]
24
2018-09-11T13:57:53.000Z
2022-03-18T10:18:36.000Z
ccapi/requests/exports/viewfile.py
stcstores/ccapi
cc137efa7344b8552e122d30899616bfdbd6af0b
[ "MIT" ]
1
2018-09-12T12:04:58.000Z
2018-09-12T12:04:58.000Z
""" ViewFile request. Download a product export. """ from ..apirequest import APIRequest class ViewFile(APIRequest): """ ViewFile request. Download a product export. """ uri = "Handlers/Export/ViewFile.ashx" NAME = "name" DISP = "disp" BRAND_ID = "brandID" DISP_VALUE = "attac...
19.865385
84
0.579864
4ce32d3ecae72c54629b8bae8075330c010aaec6
2,875
py
Python
qs_backend/qs_backend/decorators/stock_publish_payload_to_dict.py
Praneesh/quickstocks
2ad4f985b7cc11721209cc81c36937e9cf25fb60
[ "MIT" ]
2
2016-12-28T18:08:23.000Z
2017-04-01T18:09:55.000Z
qs_backend/qs_backend/decorators/stock_publish_payload_to_dict.py
Praneesh/quickstocks
2ad4f985b7cc11721209cc81c36937e9cf25fb60
[ "MIT" ]
null
null
null
qs_backend/qs_backend/decorators/stock_publish_payload_to_dict.py
Praneesh/quickstocks
2ad4f985b7cc11721209cc81c36937e9cf25fb60
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 # __author__ = "Praneesh Kataru" # __credits__ = [] # __version__ = "0.1.1" # __maintainer__ = "Praneesh Kataru" # __email__ = "pranuvitmsse05@gmail.com" # __status__ = "Prototype" from qs_backend.models.stock_model import StockModel from qs_backend.dal.user_stock_pref_dal i...
49.568966
120
0.703304
391146074ebdeb801d01ea6154cbfa2eead42cc8
24,463
py
Python
google/appengine/tools/dev_appserver_main.py
luduvigo/app-blog-code
2de41573955f8dfb5f6d964d3cae2bbee6db2f9a
[ "Apache-2.0" ]
null
null
null
google/appengine/tools/dev_appserver_main.py
luduvigo/app-blog-code
2de41573955f8dfb5f6d964d3cae2bbee6db2f9a
[ "Apache-2.0" ]
null
null
null
google/appengine/tools/dev_appserver_main.py
luduvigo/app-blog-code
2de41573955f8dfb5f6d964d3cae2bbee6db2f9a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright 2007 Google Inc. # # 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 o...
33.373806
88
0.666599
d8dc5ec016a01f063fd2e0a02634ecb6a09400d6
264
py
Python
tests/artificial/transf_Anscombe/trend_Lag1Trend/cycle_5/ar_12/test_artificial_1024_Anscombe_Lag1Trend_5_12_0.py
shaido987/pyaf
b9afd089557bed6b90b246d3712c481ae26a1957
[ "BSD-3-Clause" ]
377
2016-10-13T20:52:44.000Z
2022-03-29T18:04:14.000Z
tests/artificial/transf_Anscombe/trend_Lag1Trend/cycle_5/ar_12/test_artificial_1024_Anscombe_Lag1Trend_5_12_0.py
ysdede/pyaf
b5541b8249d5a1cfdc01f27fdfd99b6580ed680b
[ "BSD-3-Clause" ]
160
2016-10-13T16:11:53.000Z
2022-03-28T04:21:34.000Z
tests/artificial/transf_Anscombe/trend_Lag1Trend/cycle_5/ar_12/test_artificial_1024_Anscombe_Lag1Trend_5_12_0.py
ysdede/pyaf
b5541b8249d5a1cfdc01f27fdfd99b6580ed680b
[ "BSD-3-Clause" ]
63
2017-03-09T14:51:18.000Z
2022-03-27T20:52:57.000Z
import pyaf.Bench.TS_datasets as tsds import tests.artificial.process_artificial_dataset as art art.process_dataset(N = 1024 , FREQ = 'D', seed = 0, trendtype = "Lag1Trend", cycle_length = 5, transform = "Anscombe", sigma = 0.0, exog_count = 0, ar_order = 12);
37.714286
164
0.731061
6e6b6730c0e18964f0cf68a4181b97c649548b4e
123,485
py
Python
numpy/core/fromnumeric.py
nishthac888/numpy
71e7620711d6ff8cb838bdffb5e91cdd25497dba
[ "BSD-3-Clause" ]
null
null
null
numpy/core/fromnumeric.py
nishthac888/numpy
71e7620711d6ff8cb838bdffb5e91cdd25497dba
[ "BSD-3-Clause" ]
null
null
null
numpy/core/fromnumeric.py
nishthac888/numpy
71e7620711d6ff8cb838bdffb5e91cdd25497dba
[ "BSD-3-Clause" ]
null
null
null
"""Module containing non-deprecated functions borrowed from Numeric. """ import functools import types import warnings import numpy as np from . import multiarray as mu from . import overrides from . import umath as um from . import numerictypes as nt from .multiarray import asarray, array, asanyarray, concatenate fr...
32.650714
103
0.607879
adf3d9f683867c918fb264f1f20bd87d2fbd805c
1,040
py
Python
setup.py
rhardouin/wild-sphinx-theme
db84b2b26cdfca67c07d16e81e0e5052e92c84e4
[ "BSD-2-Clause" ]
1
2016-06-28T09:00:26.000Z
2016-06-28T09:00:26.000Z
setup.py
rhardouin/wild-sphinx-theme
db84b2b26cdfca67c07d16e81e0e5052e92c84e4
[ "BSD-2-Clause" ]
null
null
null
setup.py
rhardouin/wild-sphinx-theme
db84b2b26cdfca67c07d16e81e0e5052e92c84e4
[ "BSD-2-Clause" ]
null
null
null
#!/bin/python33 from distutils.core import setup with open('README.rst', 'r') as f: desc = f.read() setup(name='wild_sphinx_theme', version=__import__('wild_sphinx_theme').__version__, description='Like Nature sphinx theme but allows pygments style to be dark', long_description=desc, packages=['w...
35.862069
80
0.651923
c21901200fa304dea4cafc6e7ad1e8643a196777
1,486
py
Python
tests/host/test_chain.py
KOHbDS/tinychain-1
1bdee5c76286bad9ab41ca01ec40bda72bd15ed6
[ "Apache-2.0" ]
null
null
null
tests/host/test_chain.py
KOHbDS/tinychain-1
1bdee5c76286bad9ab41ca01ec40bda72bd15ed6
[ "Apache-2.0" ]
null
null
null
tests/host/test_chain.py
KOHbDS/tinychain-1
1bdee5c76286bad9ab41ca01ec40bda72bd15ed6
[ "Apache-2.0" ]
null
null
null
import unittest import tinychain as tc from testutils import DEFAULT_PORT, PersistenceTest class ChainTests(PersistenceTest, unittest.TestCase): NAME = "chain" def cluster(self, chain_type): class Persistent(tc.Cluster, metaclass=tc.Meta): __uri__ = tc.URI(f"http://127.0.0.1:{DEFAULT_POR...
29.72
99
0.567968
6cab1a3c53149e52fe3ef542198c49428626f8d6
14,235
py
Python
lib/python/prosci/loops/esst.py
Aunity/FREADpy3
f41c7ef94075a4cfcd3ebe3ecfac0ae96b5aceb4
[ "BSD-3-Clause" ]
1
2021-08-07T03:29:20.000Z
2021-08-07T03:29:20.000Z
lib/python/prosci/loops/esst.py
Aunity/FREADpy3
f41c7ef94075a4cfcd3ebe3ecfac0ae96b5aceb4
[ "BSD-3-Clause" ]
null
null
null
lib/python/prosci/loops/esst.py
Aunity/FREADpy3
f41c7ef94075a4cfcd3ebe3ecfac0ae96b5aceb4
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # from io import StringIO esst_text = """ >0 0 LOG_ODDS # G A V L M I F Y W S T C P N Q K R H D E G 5 -2 -6 -7 -5 -7 -8 -7 -8 -2 -4 -7 -4 -2 -4 -4 -4 -4 -3 -4 A 1 6 1 -1 -1 0 -3 -2 -3 1 0 -1 0 -1 0 0 -1 -1 -2 -1 V -4 0 7 2 ...
51.205036
185
0.370355
e8d3b6d20a5451745765574ab4003a6d37501400
1,707
py
Python
mark_best_epoch.py
ConstantineLignos/NCRFpp-insights-emnlp-2020
ebbfb767e1002c9429e487a1bbc1a2f48cdd02ae
[ "Apache-2.0" ]
null
null
null
mark_best_epoch.py
ConstantineLignos/NCRFpp-insights-emnlp-2020
ebbfb767e1002c9429e487a1bbc1a2f48cdd02ae
[ "Apache-2.0" ]
null
null
null
mark_best_epoch.py
ConstantineLignos/NCRFpp-insights-emnlp-2020
ebbfb767e1002c9429e487a1bbc1a2f48cdd02ae
[ "Apache-2.0" ]
null
null
null
from io import StringIO import os import sys import pandas as pd CHAR_MODELS = { "nochar": "None", "charlstm": "LSTM", "charcnn": "CNN", } OUTPUT_NAMES = { "softmax": "Softmax", "crf": "CRF", } def main() -> None: path = sys.argv[1] data = pd.read_csv(path, sep="\t") ncrfpp_best = 0...
25.477612
74
0.613357
40416d42959ae6d01b4e4aff5841b27b0f53ae83
998
py
Python
tests/test_yerkes.py
Zsailer/yerkes
0434e3b2ee124736e6ece63077430eac8eb6ac09
[ "MIT" ]
4
2018-07-20T06:03:48.000Z
2018-07-22T22:12:00.000Z
tests/test_yerkes.py
Zsailer/yerkes
0434e3b2ee124736e6ece63077430eac8eb6ac09
[ "MIT" ]
null
null
null
tests/test_yerkes.py
Zsailer/yerkes
0434e3b2ee124736e6ece63077430eac8eb6ac09
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """Tests for `yerkes` package.""" import pytest from click.testing import CliRunner from yerkes import yerkes from yerkes import cli @pytest.fixture def response(): """Sample pytest fixture. See more at: http://doc.pytest.org/en/latest/fixture.html """ ...
25.589744
78
0.696393
7dc871e6918702832b155d084a9ffe36b12734f2
550
py
Python
tests/column_test.py
bertrandchenal/tanker
b955311dc8f05f8bb3c0b391e169974e5c6a11b2
[ "0BSD" ]
1
2019-11-12T08:35:10.000Z
2019-11-12T08:35:10.000Z
tests/column_test.py
bertrandchenal/tanker
b955311dc8f05f8bb3c0b391e169974e5c6a11b2
[ "0BSD" ]
1
2019-11-20T09:00:33.000Z
2019-11-20T09:00:33.000Z
tests/column_test.py
bertrandchenal/tanker
b955311dc8f05f8bb3c0b391e169974e5c6a11b2
[ "0BSD" ]
1
2019-11-19T21:53:16.000Z
2019-11-19T21:53:16.000Z
from itertools import product import pytest from .base_test import DB_PARAMS db_uris = [p['uri'] for p in DB_PARAMS] COL_TYPES = ['integer', 'timestamp'] PARAMS = product(COL_TYPES, db_uris) @pytest.yield_fixture(scope='function', params=PARAMS) def session(request): col_type, db_uri = request.params ...
21.153846
55
0.569091
1aaecfed25828ad7ab1db46ff19d17b97455460c
1,051
py
Python
plugins/html/icon_html/actions/pdf/schema.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
46
2019-06-05T20:47:58.000Z
2022-03-29T10:18:01.000Z
plugins/html/icon_html/actions/pdf/schema.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
386
2019-06-07T20:20:39.000Z
2022-03-30T17:35:01.000Z
plugins/html/icon_html/actions/pdf/schema.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
43
2019-07-09T14:13:58.000Z
2022-03-28T12:04:46.000Z
# GENERATED BY KOMAND SDK - DO NOT EDIT import insightconnect_plugin_runtime import json class Component: DESCRIPTION = "Convert HTML to PDF" class Input: DOC = "doc" class Output: PDF = "pdf" class PdfInput(insightconnect_plugin_runtime.Input): schema = json.loads(""" { "type": "ob...
17.229508
57
0.56803
41b893054fd7ae8ac2c644d9c20d76a028411583
1,213
py
Python
construct_editor/gallery/test_switch.py
jpsnyder/construct-editor
9ad73aa89430a35f3b5bc71f965feb2e9cbb0568
[ "MIT" ]
null
null
null
construct_editor/gallery/test_switch.py
jpsnyder/construct-editor
9ad73aa89430a35f3b5bc71f965feb2e9cbb0568
[ "MIT" ]
null
null
null
construct_editor/gallery/test_switch.py
jpsnyder/construct-editor
9ad73aa89430a35f3b5bc71f965feb2e9cbb0568
[ "MIT" ]
null
null
null
import construct as cs import construct_typed as cst import dataclasses import typing as t from . import GalleryItem @dataclasses.dataclass class SwitchTest(cst.TContainerMixin): @dataclasses.dataclass class Case1(cst.TContainerMixin): case1_1: int = cst.sfield(cs.Int16sb) case1_2: int = cst.s...
25.808511
60
0.615004
df811c47e64a4cf3e7d79aa296ff90208b92231b
964
py
Python
kubernetes/test/test_v1_limit_range_spec.py
Prahladk09/python-1
2dfb3035535e4be52ba549f1ff47acbe573b73f6
[ "Apache-2.0" ]
1
2020-04-13T09:54:21.000Z
2020-04-13T09:54:21.000Z
kubernetes/test/test_v1_limit_range_spec.py
Prahladk09/python-1
2dfb3035535e4be52ba549f1ff47acbe573b73f6
[ "Apache-2.0" ]
1
2019-08-15T14:27:17.000Z
2019-08-15T14:28:07.000Z
kubernetes/test/test_v1_limit_range_spec.py
Prahladk09/python-1
2dfb3035535e4be52ba549f1ff47acbe573b73f6
[ "Apache-2.0" ]
2
2020-08-05T03:06:48.000Z
2020-08-05T16:08:21.000Z
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.14.4 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import os import sys i...
21.422222
105
0.709544
65041b708662f9bdea414ae75405917899c0a819
4,099
py
Python
game.py
ganyc717/Gobang
cfb5e231ba431e9c5514f304b9c8a878e940c40e
[ "MIT" ]
null
null
null
game.py
ganyc717/Gobang
cfb5e231ba431e9c5514f304b9c8a878e940c40e
[ "MIT" ]
null
null
null
game.py
ganyc717/Gobang
cfb5e231ba431e9c5514f304b9c8a878e940c40e
[ "MIT" ]
null
null
null
import numpy as np import config as cfg class Board: def __init__(self,board_size = cfg.board_size, win_row_size = cfg.win_row_size): self.board_size = board_size self.win_row_size = win_row_size self.state = np.zeros([self.board_size,self.board_size,2]) self.available_move_location...
40.99
114
0.582093
2db98e0727d2c1fc0a607308538a57e633c10291
555
py
Python
Unsupervised Learning/Chapter 2/tSNE_Map.py
Lingesh2311/Datacamp-Courses
86876975df36f2e00fe162e4f52cd095c43d5295
[ "Apache-2.0" ]
null
null
null
Unsupervised Learning/Chapter 2/tSNE_Map.py
Lingesh2311/Datacamp-Courses
86876975df36f2e00fe162e4f52cd095c43d5295
[ "Apache-2.0" ]
null
null
null
Unsupervised Learning/Chapter 2/tSNE_Map.py
Lingesh2311/Datacamp-Courses
86876975df36f2e00fe162e4f52cd095c43d5295
[ "Apache-2.0" ]
null
null
null
# Import TSNE from sklearn.manifold import TSNE import matplotlib.pyplot as plt # Create a TSNE instance: model model = TSNE(learning_rate=50) # Apply fit_transform to normalized_movements: tsne_features tsne_features = model.fit_transform(normalized_movements) # Select the 0th feature: xs xs = tsne_features[:,0] #...
24.130435
60
0.747748
bea191f1df58a654f3f32b118b6d4103c96c31a9
266
py
Python
python/de-identifier/research_pacs/de_identifier/__main__.py
aws-samples/research-pacs-on-aws
1b867bfd59adf47ed8c4faf69139d2d73c93ab03
[ "MIT-0" ]
13
2021-11-02T21:48:52.000Z
2022-03-14T20:34:01.000Z
python/de-identifier/research_pacs/de_identifier/__main__.py
aws-samples/research-pacs-on-aws
1b867bfd59adf47ed8c4faf69139d2d73c93ab03
[ "MIT-0" ]
null
null
null
python/de-identifier/research_pacs/de_identifier/__main__.py
aws-samples/research-pacs-on-aws
1b867bfd59adf47ed8c4faf69139d2d73c93ab03
[ "MIT-0" ]
3
2021-11-02T21:48:43.000Z
2022-02-02T21:35:41.000Z
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: MIT-0 from research_pacs.shared.log import get_logger import research_pacs.de_identifier.main as main if __name__ == '__main__': logger = get_logger() main.main()
24.181818
68
0.766917
a89cbae8c88dcacbe5a16dd30169d4ee3ee7aabb
6,386
py
Python
3.7.0/lldb-3.7.0.src/utils/test/ras.py
androm3da/clang_sles
2ba6d0711546ad681883c42dfb8661b842806695
[ "MIT" ]
3
2016-02-10T14:18:40.000Z
2018-02-05T03:15:56.000Z
3.7.0/lldb-3.7.0.src/utils/test/ras.py
androm3da/clang_sles
2ba6d0711546ad681883c42dfb8661b842806695
[ "MIT" ]
1
2016-02-10T15:40:03.000Z
2016-02-10T15:40:03.000Z
3.7.0/lldb-3.7.0.src/utils/test/ras.py
androm3da/clang_sles
2ba6d0711546ad681883c42dfb8661b842806695
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Run the test suite and send the result as an email message. The code for sending of the directory is copied from http://docs.python.org/library/email-examples.html. """ import os import sys import shutil import smtplib # For guessing MIME type based on file name extension import mimetypes ...
36.079096
87
0.592703
2108bf71274b0aa37be926a7699e0b754d2aad50
557
py
Python
2020/day-01/part12.py
amochtar/adventofcode
292e7f00a1e19d2149d00246b0a77fedfcd3bd08
[ "MIT" ]
1
2019-12-27T22:36:30.000Z
2019-12-27T22:36:30.000Z
2020/day-01/part12.py
amochtar/adventofcode
292e7f00a1e19d2149d00246b0a77fedfcd3bd08
[ "MIT" ]
null
null
null
2020/day-01/part12.py
amochtar/adventofcode
292e7f00a1e19d2149d00246b0a77fedfcd3bd08
[ "MIT" ]
null
null
null
#!/usr/bin/env python from aoc import * def solve(inp): inp = list(map(int, inp.splitlines())) n = len(inp) for x in range(n): for y in range(x+1, n): if inp[x] + inp[y] == 2020: print("Part 1:", inp[x]*inp[y]) for z in range(y+1, n): if i...
19.892857
58
0.45781
5c36bba5ee623ccef5ce0f7754be1ed9ba40e25b
5,170
py
Python
huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/list_customerself_resource_record_details_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-bss/huaweicloudsdkbss/v2/model/list_customerself_resource_record_details_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-bss/huaweicloudsdkbss/v2/model/list_customerself_resource_record_details_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 ListCustomerselfResourceRecordDetailsResponse(SdkResponse): """ Attributes: openapi_types (dict): The key is attribute name ...
30.591716
106
0.622437
700f618c93c6042191c8d7c720bdd4b779134d71
4,179
py
Python
tests/conftest.py
Hassanchenganasseri/yara-language-server
9ba4d820f1cabb738921e17d4489706966cb290b
[ "Apache-2.0" ]
1
2021-11-13T02:04:55.000Z
2021-11-13T02:04:55.000Z
tests/conftest.py
Hassanchenganasseri/yara-language-server
9ba4d820f1cabb738921e17d4489706966cb290b
[ "Apache-2.0" ]
4
2020-12-12T23:41:40.000Z
2021-01-18T17:00:53.000Z
tests/conftest.py
Hassanchenganasseri/yara-language-server
9ba4d820f1cabb738921e17d4489706966cb290b
[ "Apache-2.0" ]
1
2022-02-21T15:36:21.000Z
2022-02-21T15:36:21.000Z
''' Reusable test fixtures ''' import asyncio import json from pathlib import Path from sys import executable as python_path import pytest from yarals import yarals # pylint: disable=W0621 def pytest_configure(config): ''' Registering custom markers ''' config.addinivalue_line("markers", "integration: Run i...
36.657895
128
0.704714
5febc1b89c7d97fa928694c7bde3965e897e2ba9
2,578
py
Python
meshpy/function.py
imcs-compsim/meshpy
b4d8de089567a6ad3be20d54687cc9f141e13847
[ "MIT" ]
3
2021-09-29T08:26:08.000Z
2022-02-16T07:44:10.000Z
meshpy/function.py
Manfred-Hyt/meshpy
9381d91b259dff9fb2404cffe23f27f88ec0ccb4
[ "MIT" ]
null
null
null
meshpy/function.py
Manfred-Hyt/meshpy
9381d91b259dff9fb2404cffe23f27f88ec0ccb4
[ "MIT" ]
1
2021-09-29T08:26:07.000Z
2021-09-29T08:26:07.000Z
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # MeshPy: A beam finite element input generator # # MIT License # # Copyright (c) 2021 Ivo Steinbrecher # Institute for Mathematics and Computer-Based Simulation # Universitaet d...
38.477612
79
0.650504