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
6c39ac12c0c8d7dc26c4d273cceb4739cb11c3b0
3,754
py
Python
Highway_RL_agents/mountainCar_reference.py
kk2491/highway-env
7b0db91fdaf841824a4292bf9fc054c96da46510
[ "MIT" ]
1
2020-01-10T10:53:31.000Z
2020-01-10T10:53:31.000Z
Highway_RL_agents/mountainCar_reference.py
kk2491/highway-env
7b0db91fdaf841824a4292bf9fc054c96da46510
[ "MIT" ]
null
null
null
Highway_RL_agents/mountainCar_reference.py
kk2491/highway-env
7b0db91fdaf841824a4292bf9fc054c96da46510
[ "MIT" ]
null
null
null
# Part 3 - Update to QLearning_sentex_1.py import gym import numpy as np env = gym.make("MountainCar-v0") env.reset() LEARNING_RATE = 0.1 DISCOUNT = 0.95 EPISODES = 10000 SHOW_EVERY = 500 EPSILON = 0.5 START_EPSILON_DECAYING = 1 END_EPSILON_DECAYING = EPISODES // 2 EPSILON_DECAY_VALUE = EPSILON / (END_EPSILON_DECAYI...
31.813559
149
0.632658
84a6aaaafa70c608741594bd85dda4e5ec780be0
1,391
py
Python
examples/1D_sizing/size_compressor.py
EnergyModels/estorage
0f84c87632dba1ff0564ffb68f59ece314f67022
[ "MIT" ]
null
null
null
examples/1D_sizing/size_compressor.py
EnergyModels/estorage
0f84c87632dba1ff0564ffb68f59ece314f67022
[ "MIT" ]
null
null
null
examples/1D_sizing/size_compressor.py
EnergyModels/estorage
0f84c87632dba1ff0564ffb68f59ece314f67022
[ "MIT" ]
null
null
null
from estorage import SIZE_AIR_CMP import seaborn as sns import matplotlib.pyplot as plt # Test designs = SIZE_AIR_CMP(p_in=1.01325, t_in=20.0, p_out=2.2, m_dot=2.2, RPM_low=22000, RPM_high=22000, RPM_cases = 1, debug=True) # Run Sweep designs = SIZE_AIR_CMP(p_in=1.01325, t_in=20.0, p_out=31.1, m_dot=13.82, RPM_low=1...
40.911765
131
0.63839
06e4864894d153b2dd680a949ed3501b7e5c3171
34,638
py
Python
wsgi.py
zsolt-beringer/osm-gimmisn
b0cbf2e88c1846ef49e33fd32aeb6b4ecabea4c0
[ "MIT" ]
null
null
null
wsgi.py
zsolt-beringer/osm-gimmisn
b0cbf2e88c1846ef49e33fd32aeb6b4ecabea4c0
[ "MIT" ]
null
null
null
wsgi.py
zsolt-beringer/osm-gimmisn
b0cbf2e88c1846ef49e33fd32aeb6b4ecabea4c0
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # Copyright 2019 Miklos Vajna. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # """The wsgi module contains functionality specific to the web interface.""" import json import locale import os import subprocess import ...
40.464953
117
0.657428
25eea4c798cb59739dc582da5555636f8c05bb4c
1,014
py
Python
main.py
petabyt/fujiptp
e7de43dbb65462391a2c9f64ca72cd3825b3d3e4
[ "BSD-3-Clause" ]
null
null
null
main.py
petabyt/fujiptp
e7de43dbb65462391a2c9f64ca72cd3825b3d3e4
[ "BSD-3-Clause" ]
null
null
null
main.py
petabyt/fujiptp
e7de43dbb65462391a2c9f64ca72cd3825b3d3e4
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import ptpy from random import randrange FUJI_CREATE_FILE = 0x900c FUJI_UNKNOWN1 = 0x900d FUJI_WRITE_FILE = 0x901d FUJI_FPUPDATE = 0xb802 FUJI_AUTO_ACT = 0x3002 # SendObjectInfo # 36876 / 0x900c / Create file # 36877 / 0x900d / ??? # 36893 / 0x901d / Write to file camera = ptpy.PTPy() with c...
23.045455
81
0.619329
a17dbbc746d24341b86e366c1f8d4ed738c54589
1,556
py
Python
main.py
eshirima/Diamond-Kinects
597bbf9c523d1dd0faa0c88ddeb0766ffc14ce4b
[ "MIT" ]
null
null
null
main.py
eshirima/Diamond-Kinects
597bbf9c523d1dd0faa0c88ddeb0766ffc14ce4b
[ "MIT" ]
null
null
null
main.py
eshirima/Diamond-Kinects
597bbf9c523d1dd0faa0c88ddeb0766ffc14ce4b
[ "MIT" ]
null
null
null
# main.py # Emil Shirima # 20-September-2019 8:46 PM # # Purpose: Graph Swing data import csv import matplotlib.pyplot as plt time_stamps, acclX, acclY, acclZ = [], [], [], [] # extracts data from file and saves it on the containers def populate_data(file_name='latestSwing.csv'): with open(file_name) as csv_fil...
23.938462
64
0.638817
77a0819d0407736fed54ddacec7c24a7b937e300
4,184
py
Python
stockBOT/Discord/intent/Loki_Safety.py
Chenct-jonathan/LokiHub
7193589151e88f4e66aee6457926e565d0023fa1
[ "MIT" ]
17
2020-11-25T07:40:18.000Z
2022-03-07T03:29:18.000Z
stockBOT/Discord/intent/Loki_Safety.py
Chenct-jonathan/LokiHub
7193589151e88f4e66aee6457926e565d0023fa1
[ "MIT" ]
8
2020-12-18T13:23:59.000Z
2021-10-03T21:41:50.000Z
stockBOT/Discord/intent/Loki_Safety.py
Chenct-jonathan/LokiHub
7193589151e88f4e66aee6457926e565d0023fa1
[ "MIT" ]
43
2020-12-02T09:03:57.000Z
2021-12-23T03:30:25.000Z
#!/usr/bin/env python3 # -*- coding:utf-8 -*- """ Loki module for Safety Input: inputSTR str, utterance str, args str[], resultDICT dict Output: resultDICT dict """ DEBUG_Safety = True userDefinedDICT = {"2302": ["2302", "麗正"], "2303": ["23...
52.3
2,662
0.47347
8deaed9ff62aaa7ea6a951f3d5f95c2c6e59d8bf
3,181
py
Python
api/urls_v1.py
healthdesk-hackathon/backend
93c43ff1aeff493a6b4d0034807f0434507ab05d
[ "MIT" ]
null
null
null
api/urls_v1.py
healthdesk-hackathon/backend
93c43ff1aeff493a6b4d0034807f0434507ab05d
[ "MIT" ]
32
2020-03-27T23:50:02.000Z
2021-09-08T01:54:55.000Z
api/urls_v1.py
healthdesk-hackathon/backend
93c43ff1aeff493a6b4d0034807f0434507ab05d
[ "MIT" ]
null
null
null
from django.urls import re_path from drf_yasg import openapi from drf_yasg.views import get_schema_view from rest_framework import permissions from rest_framework.routers import DefaultRouter from rest_framework_simplejwt.views import TokenObtainPairView, TokenRefreshView from dashboard.views import DashboardView from...
43.575342
111
0.769884
e1822f708d2d3059b430a300b7775103077560b6
2,696
py
Python
examples/python/compression/client.py
warlock135/grpc
81e13e4fa9c0cdf7dc131ce548e1604c895b738c
[ "Apache-2.0" ]
36,552
2015-02-26T17:30:13.000Z
2022-03-31T22:41:33.000Z
examples/python/compression/client.py
SanjanaSingh897/grpc
2d858866eb95ce5de8ccc8c35189a12733d8ca79
[ "Apache-2.0" ]
23,536
2015-02-26T17:50:56.000Z
2022-03-31T23:39:42.000Z
examples/python/compression/client.py
SanjanaSingh897/grpc
2d858866eb95ce5de8ccc8c35189a12733d8ca79
[ "Apache-2.0" ]
11,050
2015-02-26T17:22:10.000Z
2022-03-31T10:12:35.000Z
# Copyright 2019 the gRPC authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
35.946667
80
0.671736
9c28125fd9a1c9e1d0f95cb2c6232c8bc15b7c22
8,497
py
Python
report.py
shadow1ng/Vxscan
52d979130f6e139abe3937d1bdd22420afcc0ae8
[ "Apache-2.0" ]
2
2021-04-07T16:13:38.000Z
2021-06-16T02:03:01.000Z
report.py
shadow1ng/Vxscan
52d979130f6e139abe3937d1bdd22420afcc0ae8
[ "Apache-2.0" ]
null
null
null
report.py
shadow1ng/Vxscan
52d979130f6e139abe3937d1bdd22420afcc0ae8
[ "Apache-2.0" ]
null
null
null
# coding = utf-8 import json import re import time import sys import logging from lib.sqldb import Sqldb dbname = 'result' def get_port(ipaddr): try: sql = "select port from ports where ipaddr='{}'".format(ipaddr) getport = Sqldb(dbname).query(sql) if getport: result = [] ...
41.857143
120
0.503354
5673c6adb148079d2ea45e97005271018b368218
7,872
py
Python
safelifeEnv/lib/python3.6/site-packages/pyglet/image/codecs/dds.py
JohnBurden/safelife
338c9c42aa94fed49f6d80151c37dd28ba6f7978
[ "Apache-2.0" ]
2
2019-07-17T13:00:32.000Z
2019-07-17T13:09:30.000Z
safelifeEnv/lib/python3.6/site-packages/pyglet/image/codecs/dds.py
JohnBurden/safelife
338c9c42aa94fed49f6d80151c37dd28ba6f7978
[ "Apache-2.0" ]
null
null
null
safelifeEnv/lib/python3.6/site-packages/pyglet/image/codecs/dds.py
JohnBurden/safelife
338c9c42aa94fed49f6d80151c37dd28ba6f7978
[ "Apache-2.0" ]
null
null
null
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # Copyright (c) 2008-2019 pyglet contributors # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the follo...
33.355932
80
0.629573
eb7d486b7a6d244fcb96af11a4877bffc6d630f8
19,178
py
Python
packages/gtmcore/gtmcore/environment/componentmanager.py
jjwatts/gigantum-client
88ce0475fb6880322bdd06d987c494e29064f278
[ "MIT" ]
null
null
null
packages/gtmcore/gtmcore/environment/componentmanager.py
jjwatts/gigantum-client
88ce0475fb6880322bdd06d987c494e29064f278
[ "MIT" ]
null
null
null
packages/gtmcore/gtmcore/environment/componentmanager.py
jjwatts/gigantum-client
88ce0475fb6880322bdd06d987c494e29064f278
[ "MIT" ]
null
null
null
# Copyright (c) 2017 FlashX, LLC # # 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, modify, merge, publish, distrib...
41.691304
120
0.619616
0f37b3cda1a4afd9101000d6ecdabbf846c8e761
6,079
py
Python
viberio/handlers/users/my_parcels_out.py
bostud/Viber_bot
076113433837aab942f86a0f73275c50037ed8f9
[ "MIT" ]
null
null
null
viberio/handlers/users/my_parcels_out.py
bostud/Viber_bot
076113433837aab942f86a0f73275c50037ed8f9
[ "MIT" ]
null
null
null
viberio/handlers/users/my_parcels_out.py
bostud/Viber_bot
076113433837aab942f86a0f73275c50037ed8f9
[ "MIT" ]
null
null
null
from aiogram import types from aiogram.dispatcher import FSMContext from aiogram.types import CallbackQuery, ParseMode import re from aiogram.utils.markdown import hbold from meest_api.get_payment_data import get_payment_data from meest_api.location import search_my_parcels from meest_api.pay import pay_by_portmone_m...
51.516949
119
0.699128
1e42cfc844707e26129462d7dff1d25b2a28b4bd
629
py
Python
idiomatic_python/02.working_with_data/property_to_future_proof_class_implementation.py
tonper19/PythonDemos
633a40e282049e511fd965c0afe104e775a2f526
[ "MIT" ]
null
null
null
idiomatic_python/02.working_with_data/property_to_future_proof_class_implementation.py
tonper19/PythonDemos
633a40e282049e511fd965c0afe104e775a2f526
[ "MIT" ]
null
null
null
idiomatic_python/02.working_with_data/property_to_future_proof_class_implementation.py
tonper19/PythonDemos
633a40e282049e511fd965c0afe104e775a2f526
[ "MIT" ]
null
null
null
class Product(): TAX_RATE = 0.21 def __init__(self, name, price): self.name = name self._price = price @property def price(self): # now if we need to change how price is calculated, we can do it # here (or in the "setter" and __init__) return self._price + sel...
25.16
73
0.604134
2be61eebd464f96a6a07ef1d4a799c46fc806433
965
py
Python
awardapp/urls.py
savannah8/awards
484d2c225eaf2ee76213e64a565af89fc5c7f08c
[ "Unlicense" ]
null
null
null
awardapp/urls.py
savannah8/awards
484d2c225eaf2ee76213e64a565af89fc5c7f08c
[ "Unlicense" ]
5
2020-06-05T21:36:48.000Z
2021-09-08T01:05:56.000Z
awardapp/urls.py
savannah8/awards
484d2c225eaf2ee76213e64a565af89fc5c7f08c
[ "Unlicense" ]
null
null
null
from django.conf.urls import url from django.conf import settings from django.conf.urls.static import static from . import views urlpatterns=[ url(r'^$',views.home,name='homePage'), url(r'^upload$',views.upload,name='upload'), url(r'^ratecontent/(\d+)',views.add_content, name='ratecontent'), url(r'^rat...
45.952381
87
0.693264
3cc8e16bc833526b92d34248a4919f1696546e48
1,097
py
Python
demos/RocketDemo.py
Venator43/Tamagoci
1a5aefa7a05ac36dee5c30878c12e5cc36473ec6
[ "MIT" ]
null
null
null
demos/RocketDemo.py
Venator43/Tamagoci
1a5aefa7a05ac36dee5c30878c12e5cc36473ec6
[ "MIT" ]
null
null
null
demos/RocketDemo.py
Venator43/Tamagoci
1a5aefa7a05ac36dee5c30878c12e5cc36473ec6
[ "MIT" ]
null
null
null
from pygame_functions import * screenSize(1000, 750) setBackgroundImage("images/stars.png") rocket = makeSprite("images/rocket1.png") addSpriteImage(rocket,"images/rocket2a.png") xPos = 500 yPos = 320 xSpeed = 0 ySpeed = 0 moveSprite(rocket, xPos, yPos) showSprite(rocket) while True: if keyPressed("up"): ...
18.913793
44
0.604376
7a1c6e88f75ecf302c14b6cfed08effa7d7dee92
2,690
py
Python
main.py
AkagiYui/AzurLaneTool
f00fa6e5c6371db72ee399d7bd178a81f39afd8b
[ "Apache-2.0" ]
null
null
null
main.py
AkagiYui/AzurLaneTool
f00fa6e5c6371db72ee399d7bd178a81f39afd8b
[ "Apache-2.0" ]
null
null
null
main.py
AkagiYui/AzurLaneTool
f00fa6e5c6371db72ee399d7bd178a81f39afd8b
[ "Apache-2.0" ]
null
null
null
import getopt import logging import os import signal import sys from time import sleep from threading import Thread import colorlog as colorlog import main_tool from AyAdb import AyAdb from table_constant import * from config import config import global_info def signal_handler(sign, _): if sign == signal.SIGINT o...
25.619048
84
0.660223
85f133ad2370b698d411586524a9cb8d3444cde6
594
py
Python
Oauth/app/__init__.py
837477/Oauth
8d01a84d71563d9d510950cdb77ae67de0da2a40
[ "MIT" ]
2
2022-01-09T09:26:50.000Z
2022-01-16T15:56:10.000Z
Oauth/app/__init__.py
837477/Oauth
8d01a84d71563d9d510950cdb77ae67de0da2a40
[ "MIT" ]
null
null
null
Oauth/app/__init__.py
837477/Oauth
8d01a84d71563d9d510950cdb77ae67de0da2a40
[ "MIT" ]
1
2022-03-02T05:30:13.000Z
2022-03-02T05:30:13.000Z
from fastapi import FastAPI from app import routers from app.routers import (templates, google, kakao, naver, facebook) def create_app(): """ Application Creating """ app = FastAPI( docs_url="/r...
21.214286
40
0.579125
cd5cf4ae930efc82ee0e4ce8313ad8a44936696a
196
py
Python
Configuration/StandardSequences/python/AlCaRecoStreamsMC_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
Configuration/StandardSequences/python/AlCaRecoStreamsMC_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
Configuration/StandardSequences/python/AlCaRecoStreamsMC_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
# specialize the AlCa sequences for MC import FWCore.ParameterSet.Config as cms from Configuration.StandardSequences.AlCaRecoStreams_cff import * hcalDigiAlCaMB.InputLabel = 'rawDataCollector'
24.5
65
0.841837
dfc10ed4a2ab9a56161cfd41b92bf2487a38139d
6,791
py
Python
resources/lib/services/msl/msl_request_builder.py
Doctor-Eggs/plugin.video.netflix
1372fd29c63ae4b933dcf7b2643c4483b4bda70b
[ "MIT" ]
1
2020-10-21T21:30:11.000Z
2020-10-21T21:30:11.000Z
resources/lib/services/msl/msl_request_builder.py
jurialmunkey/plugin.video.netflix
0e599eb3465e67eb082d8b4048527ae32bfb0608
[ "MIT" ]
null
null
null
resources/lib/services/msl/msl_request_builder.py
jurialmunkey/plugin.video.netflix
0e599eb3465e67eb082d8b4048527ae32bfb0608
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Copyright (C) 2017 Sebastian Golasch (plugin.video.netflix) Copyright (C) 2018 Caphm (original implementation module) MSL request building SPDX-License-Identifier: MIT See LICENSES/MIT.md for more information. """ from __future__ import absolute_import, division, unicode...
40.664671
103
0.598145
584fa12df5ae765b943f12dd54559cf0df420533
1,392
py
Python
src/users/models/microsoftgraphplanner_plan_details.py
peombwa/Sample-Graph-Python-Client
3396f531fbe6bb40a740767c4e31aee95a3b932e
[ "MIT" ]
null
null
null
src/users/models/microsoftgraphplanner_plan_details.py
peombwa/Sample-Graph-Python-Client
3396f531fbe6bb40a740767c4e31aee95a3b932e
[ "MIT" ]
null
null
null
src/users/models/microsoftgraphplanner_plan_details.py
peombwa/Sample-Graph-Python-Client
3396f531fbe6bb40a740767c4e31aee95a3b932e
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. # -------------------------------------------------------------------------- from ...
36.631579
118
0.623563
e0f46fa1aeda47ff9daf4b9306ecd620e18b7c88
2,591
py
Python
misc/config_tools/board_inspector/pcieparser/extcaps.py
donsheng/acrn-hypervisor
79edf8ba08f3f6d11d1ccf464b208c80b5b0fd24
[ "BSD-3-Clause" ]
848
2018-03-06T01:20:35.000Z
2022-03-31T05:47:50.000Z
misc/config_tools/board_inspector/pcieparser/extcaps.py
donsheng/acrn-hypervisor
79edf8ba08f3f6d11d1ccf464b208c80b5b0fd24
[ "BSD-3-Clause" ]
6,483
2018-03-09T05:29:36.000Z
2022-03-31T20:39:35.000Z
misc/config_tools/board_inspector/pcieparser/extcaps.py
donsheng/acrn-hypervisor
79edf8ba08f3f6d11d1ccf464b208c80b5b0fd24
[ "BSD-3-Clause" ]
593
2018-03-06T07:04:42.000Z
2022-03-29T15:39:27.000Z
# Copyright (C) 2021 Intel Corporation. All rights reserved. # # SPDX-License-Identifier: BSD-3-Clause # import ctypes import copy import inspectorlib.cdata as cdata class ExtendedCapability: # Capability names from PCI Express Base Specification, mostly Table 9-23 _cap_names_ = { 0x01: "Advanced Erro...
28.472527
79
0.587804
71b34b02e7aeb94f742c6423d184320aaadc0c8c
821
py
Python
bin/emoji_translate.py
wks-sumo-logic/emoji-tools
36a23f9a15eda83411ed754482dcde3db994dfb2
[ "MIT" ]
null
null
null
bin/emoji_translate.py
wks-sumo-logic/emoji-tools
36a23f9a15eda83411ed754482dcde3db994dfb2
[ "MIT" ]
null
null
null
bin/emoji_translate.py
wks-sumo-logic/emoji-tools
36a23f9a15eda83411ed754482dcde3db994dfb2
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Converts an emoji into unicode string for display """ import sys ename=sys.argv[1] ecodelist=sys.argv[2:] convertlist = list() for ecode in ecodelist: ecode = ecode.replace('U+','') if len(ecode) != 4: offset = (len(bin(int(ecode,16))) - 10 ) LEAD = str(hex(int(st...
24.878788
75
0.588307
f0a8d84fe06e8dd4742e0c62f144ce96f5a109f8
10,640
py
Python
test/unit/visualizations/plugins/test_VisualizationsRegistry.py
rikeshi/galaxy
c536a877e4a9b3d12aa0d00fd4d5e705109a0d0a
[ "CC-BY-3.0" ]
47
2015-10-21T23:30:30.000Z
2022-03-09T06:51:32.000Z
test/unit/visualizations/plugins/test_VisualizationsRegistry.py
rikeshi/galaxy
c536a877e4a9b3d12aa0d00fd4d5e705109a0d0a
[ "CC-BY-3.0" ]
78
2019-01-18T08:12:49.000Z
2022-03-13T08:56:41.000Z
test/unit/visualizations/plugins/test_VisualizationsRegistry.py
rikeshi/galaxy
c536a877e4a9b3d12aa0d00fd4d5e705109a0d0a
[ "CC-BY-3.0" ]
35
2015-10-30T13:09:40.000Z
2021-05-03T23:17:46.000Z
""" Test lib/galaxy/visualization/plugins/registry. """ import os import re import unittest from galaxy import model from galaxy.util import clean_multiline_string from galaxy.visualization.plugins import plugin from galaxy.visualization.plugins.registry import VisualizationsRegistry from . import VisualizationsBase_T...
40.766284
110
0.608459
1855d6ed2c229d55d7d790f594d9f65e1298f95d
18,611
py
Python
wo/cli/plugins/site_backup.py
dacsec-org/WordOps
30adb81a812ebba2107097b24ad356016d9d6af9
[ "MIT" ]
1
2022-01-15T14:51:38.000Z
2022-01-15T14:51:38.000Z
wo/cli/plugins/site_backup.py
dacsec-org/WordOps
30adb81a812ebba2107097b24ad356016d9d6af9
[ "MIT" ]
null
null
null
wo/cli/plugins/site_backup.py
dacsec-org/WordOps
30adb81a812ebba2107097b24ad356016d9d6af9
[ "MIT" ]
null
null
null
import os from cement.core.controller import CementBaseController, expose from wo.cli.plugins.site_functions import ( detSitePar, check_domain_exists, site_package_check, pre_run_checks, setupdomain, SiteError, doCleanupAction, setupdatabase, setupwordpress, setwebrootpermissions, display_cache_setting...
48.847769
79
0.471119
e8cfc1518f0199ccc66e6ddb1e576cc6ff46cc3b
8,034
py
Python
train/pretrain.py
Gohary-98/TMNet
4bc99b6f100a7327d8d356cec70b67c95bb6515d
[ "MIT" ]
null
null
null
train/pretrain.py
Gohary-98/TMNet
4bc99b6f100a7327d8d356cec70b67c95bb6515d
[ "MIT" ]
null
null
null
train/pretrain.py
Gohary-98/TMNet
4bc99b6f100a7327d8d356cec70b67c95bb6515d
[ "MIT" ]
null
null
null
from __future__ import print_function import argparse import random import numpy as np import torch import torch.optim as optim import sys print(sys.path) sys.path.append('./auxiliary/') print(sys.path) from dataset import * from model import * from utils import * from ply import * import os import json import datetime...
40.17
110
0.60107
36b436f08aff36ce5a36b9c43b5e3a52d2087204
13,891
py
Python
fractional/DeepONet_float32_batch.py
shushu-qin/deeponet
5bbe066279bba055ad80e04c364140363c87634a
[ "Apache-2.0" ]
140
2020-12-14T00:45:25.000Z
2022-03-29T15:28:53.000Z
fractional/DeepONet_float32_batch.py
shushu-qin/deeponet
5bbe066279bba055ad80e04c364140363c87634a
[ "Apache-2.0" ]
16
2021-05-01T04:00:39.000Z
2022-03-25T22:01:53.000Z
fractional/DeepONet_float32_batch.py
shushu-qin/deeponet
5bbe066279bba055ad80e04c364140363c87634a
[ "Apache-2.0" ]
63
2020-12-13T15:27:12.000Z
2022-03-26T14:09:17.000Z
import tensorflow as tf import matplotlib.pyplot as plt import scipy.special as scisp import numpy as np from SALib.sample import sobol_sequence import time import sys # import datasets as ds random_seed = 12345 def xavier_init(size): in_dim = size[0] out_dim = size[1] xavier_stddev = np...
35.256345
132
0.490102
db46c33347f268579a274df93c9ff30896a99924
2,903
py
Python
girder/exceptions.py
HailLab/girder
974d869e6f53ec87a5e64730fee27eb6314fc006
[ "Apache-2.0" ]
null
null
null
girder/exceptions.py
HailLab/girder
974d869e6f53ec87a5e64730fee27eb6314fc006
[ "Apache-2.0" ]
null
null
null
girder/exceptions.py
HailLab/girder
974d869e6f53ec87a5e64730fee27eb6314fc006
[ "Apache-2.0" ]
1
2017-02-27T16:11:54.000Z
2017-02-27T16:11:54.000Z
class GirderBaseException(Exception): """ A class from which all Girder exceptions are based. """ pass class AccessException(GirderBaseException): """ Represents denial of access to a resource. """ def __init__(self, message, extra=None): self.message = message self.e...
29.622449
87
0.704099
1591ffffcab144e30ebe55d255f766cb67ff1500
12,735
py
Python
2_training/Custom_Model/tensorflow/keras_script_mode_pipe_mode_horovod/source_dir/cifar10_keras_main.py
RyutaroHashimoto/aws_sagemaker
fabe4727498c1f2807cda29df8d35c71cc1b27bd
[ "MIT" ]
null
null
null
2_training/Custom_Model/tensorflow/keras_script_mode_pipe_mode_horovod/source_dir/cifar10_keras_main.py
RyutaroHashimoto/aws_sagemaker
fabe4727498c1f2807cda29df8d35c71cc1b27bd
[ "MIT" ]
null
null
null
2_training/Custom_Model/tensorflow/keras_script_mode_pipe_mode_horovod/source_dir/cifar10_keras_main.py
RyutaroHashimoto/aws_sagemaker
fabe4727498c1f2807cda29df8d35c71cc1b27bd
[ "MIT" ]
null
null
null
# Copyright 2018-2020 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 # # https://aws.amazon.com/apache-2-0/ # # or in the "license" f...
33.869681
106
0.659757
fec1b9ecf44766481f7c2e285818d04b2bde7344
397
py
Python
login_rest/login_rest/wsgi.py
noctilukkas/api-login-token-drf
6f15571da8ecaf4588674b1e59dbe25c7520cc28
[ "MIT" ]
null
null
null
login_rest/login_rest/wsgi.py
noctilukkas/api-login-token-drf
6f15571da8ecaf4588674b1e59dbe25c7520cc28
[ "MIT" ]
null
null
null
login_rest/login_rest/wsgi.py
noctilukkas/api-login-token-drf
6f15571da8ecaf4588674b1e59dbe25c7520cc28
[ "MIT" ]
null
null
null
""" WSGI config for login_rest 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/3.1/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SE...
23.352941
78
0.788413
3b05010094dd5c66306316b6610b2cbb504cfb76
7,605
py
Python
tungsten_tempest_plugin/hacking/checks.py
Goutham-Pratapa/tungsten-tempest
966a2f2795435314c91e0d236040412d95fa2e96
[ "Apache-2.0" ]
1
2019-04-29T09:00:16.000Z
2019-04-29T09:00:16.000Z
tungsten_tempest_plugin/hacking/checks.py
Goutham-Pratapa/tungsten-tempest
966a2f2795435314c91e0d236040412d95fa2e96
[ "Apache-2.0" ]
11
2018-12-04T14:20:27.000Z
2019-05-30T14:37:13.000Z
tungsten_tempest_plugin/hacking/checks.py
Goutham-Pratapa/tungsten-tempest
966a2f2795435314c91e0d236040412d95fa2e96
[ "Apache-2.0" ]
9
2018-07-26T18:20:45.000Z
2020-03-27T17:40:56.000Z
# Copyright 2013 IBM Corp. # Copyright 2017 AT&T Corporation. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 #...
33.8
78
0.692702
c4cb9e23568cab5a5dc66bcbea1eec5bbf5be261
645
py
Python
pyOCD/utility/__init__.py
orenc17/pyOCD
b5c9bc62b68323129aa258e128a8fc68aaa2527f
[ "Apache-2.0" ]
null
null
null
pyOCD/utility/__init__.py
orenc17/pyOCD
b5c9bc62b68323129aa258e128a8fc68aaa2527f
[ "Apache-2.0" ]
null
null
null
pyOCD/utility/__init__.py
orenc17/pyOCD
b5c9bc62b68323129aa258e128a8fc68aaa2527f
[ "Apache-2.0" ]
null
null
null
""" mbed CMSIS-DAP debugger Copyright (c) 2015 ARM Limited 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...
30.714286
73
0.773643
1e8d81bb5df569736d7eeb015c6b05215b96d8fc
432
py
Python
utils/utils.py
w7cep/Froakie
60f116b85e96d211f3055c8da005d94a048a0df1
[ "MIT" ]
1
2021-11-09T07:33:12.000Z
2021-11-09T07:33:12.000Z
utils/utils.py
w7cep/Froakie
60f116b85e96d211f3055c8da005d94a048a0df1
[ "MIT" ]
null
null
null
utils/utils.py
w7cep/Froakie
60f116b85e96d211f3055c8da005d94a048a0df1
[ "MIT" ]
null
null
null
import re import config def blockquote(string: str) -> str: """Add blockquotes to a string""" # inserts > at the start of string and after new lines # as long as it is not at the end of the string return re.sub(r"(^|\n)(?!$)", r"\1> ", string.strip()) def custom_id(view: str, id: int) -> str: ""...
30.857143
74
0.62963
333f9703bd309f93aa352bc1fade1322fd919752
6,538
py
Python
venv/lib/python2.7/site-packages/ansible/modules/windows/win_regedit.py
haind27/test01
7f86c0a33eb0874a6c3f5ff9a923fd0cfc8ef852
[ "MIT" ]
37
2017-08-15T15:02:43.000Z
2021-07-23T03:44:31.000Z
venv/lib/python2.7/site-packages/ansible/modules/windows/win_regedit.py
haind27/test01
7f86c0a33eb0874a6c3f5ff9a923fd0cfc8ef852
[ "MIT" ]
12
2018-01-10T05:25:25.000Z
2021-11-28T06:55:48.000Z
venv/lib/python2.7/site-packages/ansible/modules/windows/win_regedit.py
haind27/test01
7f86c0a33eb0874a6c3f5ff9a923fd0cfc8ef852
[ "MIT" ]
49
2017-08-15T09:52:13.000Z
2022-03-21T17:11:54.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2015, Adam Keech <akeech@chathamfinancial.com>, Josh Ludwig <jludwig@chathamfinancial.com> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # this is a windows documentation stub. actual code lives in the .ps1 # fi...
32.527363
147
0.699296
417aa41eb1061903e05c07057f0a30fca64c4037
28,918
py
Python
bin/doc-gen.py
splunkins/security-content
3904c837fa9003a6e1b65a6fb164231b0132f648
[ "Apache-2.0" ]
null
null
null
bin/doc-gen.py
splunkins/security-content
3904c837fa9003a6e1b65a6fb164231b0132f648
[ "Apache-2.0" ]
null
null
null
bin/doc-gen.py
splunkins/security-content
3904c837fa9003a6e1b65a6fb164231b0132f648
[ "Apache-2.0" ]
null
null
null
import glob import yaml import argparse from os import path import sys import re from jinja2 import Environment, FileSystemLoader def load_objects(file_path): files = [] manifest_files = path.join(path.expanduser(REPO_PATH), file_path) for file in sorted(glob.glob(manifest_files)): files.append(l...
41.252496
131
0.585691
c38fbf8b4876dcb336cdf78e73cf232325c5c0a8
2,651
py
Python
src/galaxy_crawler/filters/v1.py
pddg/galaxy_crawler
cc0634dfca7d81ee49e5370ff0bf83cca92ec4ac
[ "Apache-2.0" ]
2
2019-12-24T10:45:37.000Z
2022-03-04T00:47:14.000Z
src/galaxy_crawler/filters/v1.py
pddg/galaxy_crawler
cc0634dfca7d81ee49e5370ff0bf83cca92ec4ac
[ "Apache-2.0" ]
2
2019-10-31T17:42:36.000Z
2020-03-24T18:20:41.000Z
src/galaxy_crawler/filters/v1.py
pddg/galaxy_crawler
cc0634dfca7d81ee49e5370ff0bf83cca92ec4ac
[ "Apache-2.0" ]
null
null
null
from .base import Filter from typing import TYPE_CHECKING from logging import getLogger from .base import FilterEnum from galaxy_crawler.errors import NotSupportedFilterError from galaxy_crawler.constants import Target if TYPE_CHECKING: from typing import Union logger = getLogger(__name__) class V1FilterEnum(...
33.1375
103
0.646548
2ca1bc0b8a566be98bf1f330e5b12ab31054de52
2,110
py
Python
buildall.py
elementechemlyn/CareConnectBuilder
c004fa94c1af64d636ee25de8f13e34fe723b5f3
[ "MIT" ]
null
null
null
buildall.py
elementechemlyn/CareConnectBuilder
c004fa94c1af64d636ee25de8f13e34fe723b5f3
[ "MIT" ]
null
null
null
buildall.py
elementechemlyn/CareConnectBuilder
c004fa94c1af64d636ee25de8f13e34fe723b5f3
[ "MIT" ]
null
null
null
import configparser import os.path import os import shutil import buildcodesystem import buildvalueset import buildextensions import buildprofiles config = configparser.ConfigParser() config.read('config.ini') output_dir = config["dir"]["output_dir"] template_dir = config["dir"]["template_dir"] #CodeS...
39.074074
84
0.796682
8270b4d17b4379af22d9039c2a84344a752b2fd7
330
py
Python
database/queries/update_queries.py
BrickText/JHROM
d99b907e0837d8dcc57ab474e9435891736f0dda
[ "MIT" ]
null
null
null
database/queries/update_queries.py
BrickText/JHROM
d99b907e0837d8dcc57ab474e9435891736f0dda
[ "MIT" ]
null
null
null
database/queries/update_queries.py
BrickText/JHROM
d99b907e0837d8dcc57ab474e9435891736f0dda
[ "MIT" ]
null
null
null
UPDATE_MOVIE = ''' UPDATE MOVIE SET NAME=?, RATING=? WHERE MOVIE.ID=?; ''' UPDATE_PROJECTION = ''' UPDATE PROJECTION SET MOVIE_ID=?, TYPE=?, DATE=? WHERE PROJECTION.ID=?; ''' DELETE_RESERVATION = ''' UPDATE RESERVATION SET USER_ID=?, PROJECTION_ID=?, ROW=?, COL=? WHERE RESERVATION....
18.333333
48
0.60303
1318608492f8d7e85a3867daf4a89209587ccae1
2,075
py
Python
ansible/roles/lib_openshift_3.2/build/src/oc_scale.py
fahlmant/openshift-tools
dbb4f16ccde3404c36c23108c45ca7b67138ee12
[ "Apache-2.0" ]
164
2015-07-29T17:35:04.000Z
2021-12-16T16:38:04.000Z
ansible/roles/lib_openshift_3.2/build/src/oc_scale.py
fahlmant/openshift-tools
dbb4f16ccde3404c36c23108c45ca7b67138ee12
[ "Apache-2.0" ]
3,634
2015-06-09T13:49:15.000Z
2022-03-23T20:55:44.000Z
ansible/roles/lib_openshift_3.2/build/src/oc_scale.py
fahlmant/openshift-tools
dbb4f16ccde3404c36c23108c45ca7b67138ee12
[ "Apache-2.0" ]
250
2015-06-08T19:53:11.000Z
2022-03-01T04:51:23.000Z
# vim: expandtab:tabstop=4:shiftwidth=4 # pylint: skip-file # pylint: disable=too-many-instance-attributes class OCScale(OpenShiftCLI): ''' Class to wrap the oc command line tools ''' # pylint allows 5 # pylint: disable=too-many-arguments def __init__(self, resource_name, ...
33.467742
83
0.593735
305c4c84b5c4e7ee4b74855775a601c853edef69
3,152
py
Python
stacks_queues/queue_from_stacks/queue_from_stacks_challenge.py
stephank007/python_challenges
dfd8d18c03a06735f6e4e02b0660007fe2d02f07
[ "Apache-2.0" ]
null
null
null
stacks_queues/queue_from_stacks/queue_from_stacks_challenge.py
stephank007/python_challenges
dfd8d18c03a06735f6e4e02b0660007fe2d02f07
[ "Apache-2.0" ]
null
null
null
stacks_queues/queue_from_stacks/queue_from_stacks_challenge.py
stephank007/python_challenges
dfd8d18c03a06735f6e4e02b0660007fe2d02f07
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # This notebook was prepared by [Donne Martin](http://donnemartin.com). Source and license info is on [GitHub](https://github.com/donnemartin/interactive-coding-challenges). # # Challenge Notebook # ## Problem: Implement a queue using two stacks. # # * [Constraints](#Constraint...
25.419355
302
0.667513
eba7eddcd9390d0be15c8b590f1073a984062086
4,638
py
Python
imcsdk/mometa/lsboot/LsbootNVMe.py
ragupta-git/ImcSdk
2e41f2ffe5282d38de85bc4739fa53dd2f0c9bb4
[ "Apache-2.0" ]
null
null
null
imcsdk/mometa/lsboot/LsbootNVMe.py
ragupta-git/ImcSdk
2e41f2ffe5282d38de85bc4739fa53dd2f0c9bb4
[ "Apache-2.0" ]
null
null
null
imcsdk/mometa/lsboot/LsbootNVMe.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 LsbootNVMe ManagedObject.""" from ...imcmo import ManagedObject from ...imccoremeta import MoPropertyMeta, MoMeta from ...imcmeta import VersionMeta class LsbootNVMeConsts: STATE_DISABLED = "Disabled" STATE_ENABLED = "Enabled" TYPE_NVME = "NVME" class...
52.11236
231
0.584088
999eb8173fd0afd7432b677cb4be0b19ab7581d8
2,065
py
Python
utils/spider/sitemapper.py
codebrk/sqweeks
19d5cabe924aee578c5de314f5524bb323112517
[ "MIT" ]
null
null
null
utils/spider/sitemapper.py
codebrk/sqweeks
19d5cabe924aee578c5de314f5524bb323112517
[ "MIT" ]
null
null
null
utils/spider/sitemapper.py
codebrk/sqweeks
19d5cabe924aee578c5de314f5524bb323112517
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Copyright (c) 2018 hackbox.io developers (http://hackbox.io) See the file 'LICENSE' for copying permission """ from bs4 import BeautifulSoup import requests import re from urlparse import urljoin stack = [] domain = None count = 0 def run(target, **kwargs): ""...
21.28866
84
0.533656
918119d6b69f6b59474224f6fa1aa463e1f7720e
7,907
py
Python
cairotft/tft.py
hadess/cairotft
1951fbf949c815eb32594dd4336720b67a3e8811
[ "BSD-3-Clause" ]
4
2016-08-05T13:28:59.000Z
2022-01-08T15:02:17.000Z
cairotft/tft.py
hadess/cairotft
1951fbf949c815eb32594dd4336720b67a3e8811
[ "BSD-3-Clause" ]
2
2016-05-01T16:52:24.000Z
2018-11-25T16:17:34.000Z
cairotft/tft.py
hadess/cairotft
1951fbf949c815eb32594dd4336720b67a3e8811
[ "BSD-3-Clause" ]
3
2016-12-17T11:08:09.000Z
2019-08-29T19:36:56.000Z
# Copyright (c) 2015, Thomas Chiroux - Link Care Services # 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 o...
41.615789
79
0.649172
d782d3b1d84c1ea490e2a948457f3fb8b99d01a1
1,400
py
Python
test/functional/feature_shutdown.py
TopoX84/newlux
555b9f7f9e4be4ef879f20083d8cf80ed8f7777e
[ "MIT" ]
1,389
2017-06-28T02:35:01.000Z
2022-03-25T20:09:01.000Z
test/functional/feature_shutdown.py
TopoX84/newlux
555b9f7f9e4be4ef879f20083d8cf80ed8f7777e
[ "MIT" ]
1,039
2015-03-25T23:58:32.000Z
2022-03-30T00:41:16.000Z
test/functional/feature_shutdown.py
TopoX84/newlux
555b9f7f9e4be4ef879f20083d8cf80ed8f7777e
[ "MIT" ]
564
2017-06-28T03:55:03.000Z
2022-03-30T14:57:40.000Z
#!/usr/bin/env python3 # Copyright (c) 2018-2019 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test bitcoind shutdown.""" from test_framework.test_framework import BitcoinTestFramework from test_fr...
38.888889
103
0.715714
32869d51f0d41c777c01001300fe8412d5bd7ad0
2,846
py
Python
carbon/engine.py
laplab/carbon-engine
574a2d8560b12256933d9e8892acf213c56b5373
[ "MIT" ]
1
2021-01-02T16:22:22.000Z
2021-01-02T16:22:22.000Z
carbon/engine.py
laplab/carbon-engine
574a2d8560b12256933d9e8892acf213c56b5373
[ "MIT" ]
null
null
null
carbon/engine.py
laplab/carbon-engine
574a2d8560b12256933d9e8892acf213c56b5373
[ "MIT" ]
1
2016-05-20T05:25:30.000Z
2016-05-20T05:25:30.000Z
import os.path import logging from colorlog import ColoredFormatter from errors import * from utils import Map from program import Program class Engine: """Base class of Carbon Engine, highest level of abstraction in module. In this class all components are together. Program will be compiled, executed and ch...
32.712644
101
0.56149
af9e23efec172d2bb92fe8d67947b65a1e70e153
756
py
Python
MaidUtils/skills/agenda.py
PolarFill/maid
59868d80a87fae0c4ea624ade37caa1775390b4c
[ "MIT" ]
null
null
null
MaidUtils/skills/agenda.py
PolarFill/maid
59868d80a87fae0c4ea624ade37caa1775390b4c
[ "MIT" ]
null
null
null
MaidUtils/skills/agenda.py
PolarFill/maid
59868d80a87fae0c4ea624ade37caa1775390b4c
[ "MIT" ]
null
null
null
def TempNote(note): #Cria nota temporaria import configparser from config import path config = configparser.ConfigParser() config.read(f'{path}/Configurações/session.info') config.set('Session', 'tempnote', note) #Escreve nota temporaria with open(f'{path}/Configurações/session...
32.869565
101
0.652116
88288feab4b7b2505f22f7e3e290c23217de048f
5,248
py
Python
electrumx/server/controller.py
erik-svensson/electrumx-royale
7ba069dd9f7e8662ea50db4371a260b879a3e106
[ "MIT" ]
1
2020-12-03T12:29:31.000Z
2020-12-03T12:29:31.000Z
electrumx/server/controller.py
erik-svensson/electrumx-royale
7ba069dd9f7e8662ea50db4371a260b879a3e106
[ "MIT" ]
null
null
null
electrumx/server/controller.py
erik-svensson/electrumx-royale
7ba069dd9f7e8662ea50db4371a260b879a3e106
[ "MIT" ]
1
2020-05-10T11:04:07.000Z
2020-05-10T11:04:07.000Z
# Copyright (c) 2016-2018, Neil Booth # # All rights reserved. # # See the file "LICENCE" for information about the copyright # and warranty status of this software. from asyncio import Event from aiorpcx import _version as aiorpcx_version, TaskGroup import electrumx from electrumx.lib.server_base import ServerBase ...
38.588235
82
0.651867
ea5007814d6482e443d1250effc52b2b0610a324
7,360
py
Python
scripts/evaluate_dark_frame.py
exowanderer/BadPixelDetector
1dd30eaec6f2a1c6edd40322cde395ac2cd06626
[ "BSD-3-Clause" ]
null
null
null
scripts/evaluate_dark_frame.py
exowanderer/BadPixelDetector
1dd30eaec6f2a1c6edd40322cde395ac2cd06626
[ "BSD-3-Clause" ]
1
2020-06-25T10:46:56.000Z
2020-06-25T10:46:56.000Z
scripts/evaluate_dark_frame.py
exowanderer/HxRGBadPixelDetector
1dd30eaec6f2a1c6edd40322cde395ac2cd06626
[ "BSD-3-Clause" ]
null
null
null
import tensorflow as tf gpus = tf.config.experimental.list_physical_devices('GPU') if gpus: try: for gpu in gpus: tf.config.experimental.set_memory_growth(gpu, True) logical_gpus = tf.config.experimental.list_logical_devices('GPU') print(len(gpus), "Physical GPUs,", len( ...
34.232558
79
0.662228
3087b0a3c9d7dd6119bd858ce8232b8ecb8fa624
1,334
py
Python
ginga/toolkit.py
godber/ginga
acb32ed422aa604681c63c5a9494ffb0ad96cf2e
[ "BSD-3-Clause" ]
null
null
null
ginga/toolkit.py
godber/ginga
acb32ed422aa604681c63c5a9494ffb0ad96cf2e
[ "BSD-3-Clause" ]
null
null
null
ginga/toolkit.py
godber/ginga
acb32ed422aa604681c63c5a9494ffb0ad96cf2e
[ "BSD-3-Clause" ]
null
null
null
# # toolkit.py -- module for customizing Ginga GUI toolkit version # # Eric Jeschke (eric@naoj.org) # # Copyright (c) Eric R. Jeschke. All rights reserved. # This is open-source software licensed under a BSD license. # Please see the file LICENSE.txt for details. # toolkit = 'choose' family = None class ToolKitErro...
22.233333
67
0.570465
fd902d00fb7b4a2c1a93efc57a0bc6bcb587051a
1,004
py
Python
jupyterlab_kernel_usage/__init__.py
Quansight/jupyterlab-kernel-usage
b22e7f8b35f1adf7a14f0ff2d9e637c37751efa2
[ "BSD-3-Clause" ]
null
null
null
jupyterlab_kernel_usage/__init__.py
Quansight/jupyterlab-kernel-usage
b22e7f8b35f1adf7a14f0ff2d9e637c37751efa2
[ "BSD-3-Clause" ]
11
2022-01-07T10:12:16.000Z
2022-03-15T20:41:52.000Z
jupyterlab_kernel_usage/__init__.py
Quansight/jupyterlab-kernel-usage
b22e7f8b35f1adf7a14f0ff2d9e637c37751efa2
[ "BSD-3-Clause" ]
null
null
null
import json from pathlib import Path from ._version import __version__ HERE = Path(__file__).parent.resolve() with (HERE / "labextension" / "package.json").open() as fid: data = json.load(fid) def _jupyter_labextension_paths(): return [{ "src": "labextension", "dest": data["name"] }] ...
22.818182
95
0.722112
dc35f6fbcf7d677d2b4270a0afe730d50debc4f3
203
py
Python
Replace_bits,py.py
Chaytali/Python
a5dbb537078747283850e69637d2994b267f0a3c
[ "bzip2-1.0.6" ]
null
null
null
Replace_bits,py.py
Chaytali/Python
a5dbb537078747283850e69637d2994b267f0a3c
[ "bzip2-1.0.6" ]
null
null
null
Replace_bits,py.py
Chaytali/Python
a5dbb537078747283850e69637d2994b267f0a3c
[ "bzip2-1.0.6" ]
null
null
null
def ReplaceBits(x, y, pos, n): temp = 2**n-1 temp = temp<<(pos - n) y = y&temp x = x&~temp return x|y if(__name__=="__main__"): replace=ReplaceBits(12,7,3,3) print(replace)
16.916667
33
0.551724
766a4a3bede300a6411362790cacf616bc801d3c
2,970
py
Python
humanfriendly/compat.py
gauravjuvekar/debian-python-humanfriendly
2642f5c24aca91792737ad3ff19a20420eac5553
[ "MIT" ]
null
null
null
humanfriendly/compat.py
gauravjuvekar/debian-python-humanfriendly
2642f5c24aca91792737ad3ff19a20420eac5553
[ "MIT" ]
null
null
null
humanfriendly/compat.py
gauravjuvekar/debian-python-humanfriendly
2642f5c24aca91792737ad3ff19a20420eac5553
[ "MIT" ]
null
null
null
# Human friendly input/output in Python. # # Author: Peter Odding <peter@peterodding.com> # Last Change: January 16, 2017 # URL: https://humanfriendly.readthedocs.io """ Compatibility with Python 2 and 3. This module exposes aliases and functions that make it easier to write Python code that is compatible with Python...
28.018868
116
0.675421
b08ff1436110d059bcc607293e4d292cbe2052bd
2,756
py
Python
pybot/endpoints/slack/messages.py
vyaspranjal33/operationcode-pybot
a68adaee74b00f4f97a568db11fa4d295c74381a
[ "MIT" ]
null
null
null
pybot/endpoints/slack/messages.py
vyaspranjal33/operationcode-pybot
a68adaee74b00f4f97a568db11fa4d295c74381a
[ "MIT" ]
null
null
null
pybot/endpoints/slack/messages.py
vyaspranjal33/operationcode-pybot
a68adaee74b00f4f97a568db11fa4d295c74381a
[ "MIT" ]
null
null
null
import logging from sirbot import SirBot from slack.events import Message from slack import methods from pybot.endpoints.slack.event_messages.tech import TechTerms logger = logging.getLogger(__name__) def create_endpoints(plugin): plugin.on_message(".*", message_changed, subtype="message_changed") plugin.o...
34.45
118
0.642235
9ba0975e27c3811b43e4a160e357d4a8cf65f6b7
2,783
py
Python
lib/geovista/filters.py
trexfeathers/geovista
f11a7a54ef11d8542be632c29f9fe6653572879e
[ "BSD-3-Clause" ]
null
null
null
lib/geovista/filters.py
trexfeathers/geovista
f11a7a54ef11d8542be632c29f9fe6653572879e
[ "BSD-3-Clause" ]
null
null
null
lib/geovista/filters.py
trexfeathers/geovista
f11a7a54ef11d8542be632c29f9fe6653572879e
[ "BSD-3-Clause" ]
null
null
null
from datetime import datetime from typing import Optional, Tuple import numpy as np import pyvista as pv from pyvista import _vtk from pyvista.core.filters import _get_output from vtk import vtkObject from .common import triangulated from .log import get_logger __all__ = [ "GV_REMESH_IDS", "cast_Unstructured...
24.628319
81
0.676608
ea267f9f197b4407a36c7bf7458e0f912362396e
479
py
Python
Prefabs/Area.py
niklas2902/py4godot---Open-Project
0983ea2b4f8dd1d0e239dcffb556c678147a1e79
[ "Apache-2.0" ]
null
null
null
Prefabs/Area.py
niklas2902/py4godot---Open-Project
0983ea2b4f8dd1d0e239dcffb556c678147a1e79
[ "Apache-2.0" ]
null
null
null
Prefabs/Area.py
niklas2902/py4godot---Open-Project
0983ea2b4f8dd1d0e239dcffb556c678147a1e79
[ "Apache-2.0" ]
null
null
null
from py4godot.enums.enums import * from py4godot.core import * from py4godot.classes.generated import * from py4godot.pluginscript_api.utils.annotations import * from py4godot.pluginscript_api.hints import * @gdclass class AreaTrigger(Area): def __init__(self): #Don't call any godot-methods here super().__init_...
25.210526
57
0.772443
818e1dbf68bb366e3c6e04352d321626721a630e
1,052
py
Python
kubernetes/test/test_v1_replication_controller_spec.py
Scalr/kubernetes-client-python
07442bdb76f0876ec96c0b0da6f9c4b06d7e5e38
[ "Apache-2.0" ]
3
2019-05-19T05:05:37.000Z
2020-03-20T04:56:20.000Z
kubernetes/test/test_v1_replication_controller_spec.py
Scalr/kubernetes-client-python
07442bdb76f0876ec96c0b0da6f9c4b06d7e5e38
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_v1_replication_controller_spec.py
Scalr/kubernetes-client-python
07442bdb76f0876ec96c0b0da6f9c4b06d7e5e38
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.13.5 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import os import sys i...
23.377778
105
0.73384
b570ba616602fc0f0164dab8e124a0ea6de6226d
1,992
py
Python
demos/usage-animated-bfs.py
bookofheavymetal/dash-cytoscape
72dcf940d4d3652b8cc8adf9176e9bd9ef42faf8
[ "MIT" ]
null
null
null
demos/usage-animated-bfs.py
bookofheavymetal/dash-cytoscape
72dcf940d4d3652b8cc8adf9176e9bd9ef42faf8
[ "MIT" ]
null
null
null
demos/usage-animated-bfs.py
bookofheavymetal/dash-cytoscape
72dcf940d4d3652b8cc8adf9176e9bd9ef42faf8
[ "MIT" ]
null
null
null
""" Original Demo: http://js.cytoscape.org/demos/animated-bfs/ Code: https://github.com/cytoscape/cytoscape.js/tree/master/documentation/demos/animated-bfs Note: Animation Not Implemented yet, please refer to code. """ import dash from dash import html import dash_cytoscape as cyto app = dash.Dash(__name__) server =...
27.666667
92
0.453815
0fdb86a08d7f082001c0ed2b60ba35de791b1957
1,539
py
Python
google/cloud/assuredworkloads_v1/__init__.py
renovate-bot/python-assured-workloads
eaa6b338b10f4fcd42535232208af6e725d58a3f
[ "Apache-2.0" ]
null
null
null
google/cloud/assuredworkloads_v1/__init__.py
renovate-bot/python-assured-workloads
eaa6b338b10f4fcd42535232208af6e725d58a3f
[ "Apache-2.0" ]
44
2020-10-02T16:34:05.000Z
2022-03-07T16:39:33.000Z
google/cloud/assuredworkloads_v1/__init__.py
renovate-bot/python-assured-workloads
eaa6b338b10f4fcd42535232208af6e725d58a3f
[ "Apache-2.0" ]
5
2020-10-02T16:26:13.000Z
2022-01-29T08:07:33.000Z
# -*- coding: utf-8 -*- # Copyright 2020 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...
37.536585
82
0.803769
11372e29cb1772b8f390049a6a3edf25a1684f69
3,671
py
Python
floodsystem/datafetcher.py
LuisBustillo/Part1A-flood-warning-system
48244abf446b3d328747ae2a07232cec9da7e8ee
[ "MIT" ]
null
null
null
floodsystem/datafetcher.py
LuisBustillo/Part1A-flood-warning-system
48244abf446b3d328747ae2a07232cec9da7e8ee
[ "MIT" ]
null
null
null
floodsystem/datafetcher.py
LuisBustillo/Part1A-flood-warning-system
48244abf446b3d328747ae2a07232cec9da7e8ee
[ "MIT" ]
null
null
null
# Copyright (C) 2018 Garth N. Wells # # SPDX-License-Identifier: MIT """This module provides functionality for retrieving real-time and latest time history level data """ import datetime import json import os import dateutil.parser import requests def fetch(url): """Fetch data from url and return fetched JSON ...
26.035461
136
0.649687
5f93e295a4d11315fe95cda9dd62a35181908e5e
34,616
py
Python
tests/test_query.py
psantori/contacthub-sdk-python
03b6dba72ac0a5c34775b409f28b501894cae080
[ "Apache-2.0" ]
null
null
null
tests/test_query.py
psantori/contacthub-sdk-python
03b6dba72ac0a5c34775b409f28b501894cae080
[ "Apache-2.0" ]
null
null
null
tests/test_query.py
psantori/contacthub-sdk-python
03b6dba72ac0a5c34775b409f28b501894cae080
[ "Apache-2.0" ]
null
null
null
import json import unittest import mock from datetime import datetime from contacthub.errors.operation_not_permitted import OperationNotPermitted from contacthub.models.customer import Customer from contacthub.models.query import between_, in_, not_in_ from contacthub.models.query.criterion import Criterion from cont...
49.031161
134
0.5156
9cf602098c70597cfc910a3a1de68c194b6d1cf3
245
py
Python
frappe/core/doctype/broucher_details/broucher_details.py
erpletzerp/letzerpcore
add4eb411c6b1669d0951b7ce7930c0d85e95c4b
[ "MIT" ]
null
null
null
frappe/core/doctype/broucher_details/broucher_details.py
erpletzerp/letzerpcore
add4eb411c6b1669d0951b7ce7930c0d85e95c4b
[ "MIT" ]
null
null
null
frappe/core/doctype/broucher_details/broucher_details.py
erpletzerp/letzerpcore
add4eb411c6b1669d0951b7ce7930c0d85e95c4b
[ "MIT" ]
null
null
null
# Copyright (c) 2013, letzERP Pvt. Ltd. and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document class BroucherDetails(Document): pass
24.5
56
0.812245
0f067c8cd68db592ff6bfe31c8deeb3a78b5d052
40,417
py
Python
rest_framework_swagger/introspectors.py
CantemoInternal/django-rest-swagger
9410c868c631f45a01ce0cb13359080779671fb5
[ "BSD-2-Clause" ]
null
null
null
rest_framework_swagger/introspectors.py
CantemoInternal/django-rest-swagger
9410c868c631f45a01ce0cb13359080779671fb5
[ "BSD-2-Clause" ]
null
null
null
rest_framework_swagger/introspectors.py
CantemoInternal/django-rest-swagger
9410c868c631f45a01ce0cb13359080779671fb5
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """Handles the instrospection of REST Framework Views and ViewSets.""" import inspect import itertools import re import yaml import importlib from .compat import OrderedDict, strip_tags, get_pagination_attribures from abc import ABCMeta, abstractmethod from django.http import HttpRequest fro...
33.265021
92
0.592671
77ca40c65f52070da652fc7983fb6b09210b2434
2,018
py
Python
sagas/ofbiz/finder.py
samlet/stack
47db17fd4fdab264032f224dca31a4bb1d19b754
[ "Apache-2.0" ]
3
2020-01-11T13:55:38.000Z
2020-08-25T22:34:15.000Z
sagas/ofbiz/finder.py
samlet/stack
47db17fd4fdab264032f224dca31a4bb1d19b754
[ "Apache-2.0" ]
null
null
null
sagas/ofbiz/finder.py
samlet/stack
47db17fd4fdab264032f224dca31a4bb1d19b754
[ "Apache-2.0" ]
1
2021-01-01T05:21:44.000Z
2021-01-01T05:21:44.000Z
import sagas.ofbiz.connector from py4j.java_gateway import java_import class Finder(object): def __init__(self, oc): self.oc=oc java_import(oc.j, 'org.apache.ofbiz.service.ServiceUtil') java_import(oc.j, 'org.apache.ofbiz.base.util.UtilDateTime') java_import(oc.j, 'org.apache.ofbiz...
33.081967
115
0.625372
64276950f35f93db95b5eb3b153a40b10473ddc3
570
py
Python
minigest/magazzino/admin/servizio.py
ctrlmaniac/minigest
2bfceb57e41c872e4112e24d0e6991164846888b
[ "MIT" ]
null
null
null
minigest/magazzino/admin/servizio.py
ctrlmaniac/minigest
2bfceb57e41c872e4112e24d0e6991164846888b
[ "MIT" ]
1
2021-09-22T19:10:20.000Z
2021-09-22T19:10:20.000Z
minigest/magazzino/admin/servizio.py
ctrlmaniac/minigest
2bfceb57e41c872e4112e24d0e6991164846888b
[ "MIT" ]
null
null
null
from django.contrib import admin from ..models.servizio import Servizio from .barcode import BarcodeInline from .costo import CostoInline from .prezzo import PrezzoInline from .prodotto_immagine import ProdottoImmagineInline @admin.register(Servizio) class ServizioAdmin(admin.ModelAdmin): exclude = ("fornitori",...
24.782609
53
0.705263
fa96981cb0d99ae73f96d1a46aaa7226f42de560
4,680
py
Python
scripts/hdx_register/delete.py
OCHA-DAP/hdx-scraper-unosat-flood-portal
80b0bcd404993e4bd1dae442f794c9f86b6d5328
[ "MIT" ]
1
2016-07-22T13:32:54.000Z
2016-07-22T13:32:54.000Z
scripts/hdx_register/delete.py
OCHA-DAP/hdx-scraper-unosat-flood-portal
80b0bcd404993e4bd1dae442f794c9f86b6d5328
[ "MIT" ]
21
2015-07-08T21:30:32.000Z
2015-08-27T17:52:24.000Z
scripts/hdx_register/delete.py
OCHA-DAP/hdxscraper-unosat-flood-portal
80b0bcd404993e4bd1dae442f794c9f86b6d5328
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- import os import sys import requests import yajl as json import progressbar as pb dir = os.path.split(os.path.split(os.path.realpath(__file__))[0])[0] sys.path.append(dir) from termcolor import colored as color from utilities.prompt_format import item as I def DeleteAllDat...
30.193548
124
0.51688
59eadd20836a74c69295fef95d1d229f3b314e7c
785
py
Python
backend/myeats/myeats_scheduler/serializers.py
Zeppelin17/MyEatsScheduler
7ed54c71b980072c42ce8eaacf48e013872120ab
[ "MIT" ]
null
null
null
backend/myeats/myeats_scheduler/serializers.py
Zeppelin17/MyEatsScheduler
7ed54c71b980072c42ce8eaacf48e013872120ab
[ "MIT" ]
6
2021-03-30T14:17:18.000Z
2022-02-27T10:32:32.000Z
backend/myeats/myeats_scheduler/serializers.py
Zeppelin17/MyEatsScheduler
7ed54c71b980072c42ce8eaacf48e013872120ab
[ "MIT" ]
null
null
null
""" /** * Serializer for myeats_scheduler models * * @summary short description for the file * @author Zeppelin17 <elzeppelin17@gmail.com> * * Created at : 2020-04-18 11:44:05 * Last modified : 2020-04-22 06:20:14 */ """ from rest_framework import serializers from myeats_scheduler.models import Week, Day...
23.787879
83
0.652229
f9504d4054ff5b2e140d812d4f6cfa33b8d6ff8e
2,081
py
Python
proxy_extension.py
nicobts/InstaPnb
b854baabd7fec024307a07bbb4fb9a6db2f3abfd
[ "MIT" ]
null
null
null
proxy_extension.py
nicobts/InstaPnb
b854baabd7fec024307a07bbb4fb9a6db2f3abfd
[ "MIT" ]
null
null
null
proxy_extension.py
nicobts/InstaPnb
b854baabd7fec024307a07bbb4fb9a6db2f3abfd
[ "MIT" ]
null
null
null
import zipfile import os def create_proxy_extension(proxy): """ takes proxy looks like login:password@ip:port """ ip = proxy.split('@')[1].split(':')[0] port = int(proxy.split(':')[-1]) login = proxy.split(':')[0] password = proxy.split('@')[0].split(':')[1] manifest_json = ""...
29.728571
85
0.425757
b99fd34a9c3d8450b1991d766bb38b082feef38e
138
py
Python
events/apps.py
0xelectron/mhtportal-web
bd05069d6245e86d4ae887cacf33b04ef9476816
[ "MIT" ]
null
null
null
events/apps.py
0xelectron/mhtportal-web
bd05069d6245e86d4ae887cacf33b04ef9476816
[ "MIT" ]
5
2019-10-20T06:17:36.000Z
2021-06-10T18:13:29.000Z
events/apps.py
0xelectron/mhtportal-web
bd05069d6245e86d4ae887cacf33b04ef9476816
[ "MIT" ]
2
2019-05-11T17:25:25.000Z
2019-10-12T17:59:47.000Z
from django.apps import AppConfig class EventsConfig(AppConfig): name = 'events' def ready(self): import events.signals
17.25
33
0.695652
77da7090bc79c9940f633ca9772c292960d81bc6
400
py
Python
python_program/number2text.py
LiuKaiqiang94/PyStudyExample
b30212718b218c71e06b68677f55c33e3a1dbf46
[ "MIT" ]
5
2018-09-10T02:52:35.000Z
2018-09-20T07:50:42.000Z
python_program/number2text.py
LiuKaiqiang94/PyStudyExample
b30212718b218c71e06b68677f55c33e3a1dbf46
[ "MIT" ]
null
null
null
python_program/number2text.py
LiuKaiqiang94/PyStudyExample
b30212718b218c71e06b68677f55c33e3a1dbf46
[ "MIT" ]
null
null
null
def main(): print("This program coverts a sequence of Unicode numbers into") print("the string of text that it reptrsents.\n") inString = input("Please enter the Unicode-encoded message:") chars = [] for numStr in inString.split(): codeNum=int(numStr) chars.append(chr(codeNum)) ...
25
68
0.655
9b77f28d9b735c0c55b7513b2bb7ded05210c6df
463
py
Python
DataStructure_implementation/Queue/Palindrome.py
Jason0LiYaoCN/University-Assignments
20c5072b2041c3442d88878364eb0c253e030f3e
[ "MIT" ]
1
2018-06-22T08:18:40.000Z
2018-06-22T08:18:40.000Z
DataStructure_implementation/Queue/Palindrome.py
Jason0LiYaoCN/University-Assignments
20c5072b2041c3442d88878364eb0c253e030f3e
[ "MIT" ]
null
null
null
DataStructure_implementation/Queue/Palindrome.py
Jason0LiYaoCN/University-Assignments
20c5072b2041c3442d88878364eb0c253e030f3e
[ "MIT" ]
null
null
null
from Queue import Deque def pal_checker(input_string): char_deque = Deque() for ch in input_string: char_deque.add_rear(ch) still_equal = True while char_deque.size() > 1 and still_equal: first = char_deque.remove_front() last = char_deque.remove_rear() if ...
23.15
49
0.62851
7e9d5c238b0843cdbb77cbf1462c768e7b52a8bc
9,182
py
Python
st2common/tests/unit/test_rbac_loader.py
totalkyos/stack-storm
b89bc648d53dae03c7484d22abd771edfe45bbb8
[ "Apache-2.0" ]
1
2021-04-08T03:21:49.000Z
2021-04-08T03:21:49.000Z
st2common/tests/unit/test_rbac_loader.py
totalkyos/stack-storm
b89bc648d53dae03c7484d22abd771edfe45bbb8
[ "Apache-2.0" ]
null
null
null
st2common/tests/unit/test_rbac_loader.py
totalkyos/stack-storm
b89bc648d53dae03c7484d22abd771edfe45bbb8
[ "Apache-2.0" ]
null
null
null
# Licensed to the StackStorm, Inc ('StackStorm') under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use th...
47.57513
100
0.722174
ff801b665871d7ff4575e7cf3284d9806256941a
100,421
py
Python
tensorflow/tools/compatibility/tf_upgrade_v2.py
PhotoLabDevelopment/tensorflow
735642ee1cd8d7f21ddd94f851ee753c17c23019
[ "Apache-2.0" ]
2
2019-08-04T20:28:14.000Z
2019-10-27T23:26:42.000Z
tensorflow/tools/compatibility/tf_upgrade_v2.py
PhotoLabDevelopment/tensorflow
735642ee1cd8d7f21ddd94f851ee753c17c23019
[ "Apache-2.0" ]
1
2019-08-19T08:03:52.000Z
2019-08-19T08:03:52.000Z
tensorflow/tools/compatibility/tf_upgrade_v2.py
PhotoLabDevelopment/tensorflow
735642ee1cd8d7f21ddd94f851ee753c17c23019
[ "Apache-2.0" ]
1
2021-05-05T05:17:34.000Z
2021-05-05T05:17:34.000Z
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
39.303718
80
0.623415
4552553f592cf4efb0106ee5bb573b60f10db348
10,986
py
Python
deploy/deploy.py
dsarlis/Cloud-Burst
2329fcb9874e818732cc0f38bc857add262ea107
[ "Apache-2.0" ]
1
2015-12-24T17:40:53.000Z
2015-12-24T17:40:53.000Z
deploy/deploy.py
dsarlis/Cloud-Burst
2329fcb9874e818732cc0f38bc857add262ea107
[ "Apache-2.0" ]
null
null
null
deploy/deploy.py
dsarlis/Cloud-Burst
2329fcb9874e818732cc0f38bc857add262ea107
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import threading from boto.ec2.autoscale import AutoScaleConnection, Tag from boto.exception import EC2ResponseError, BotoServerError import time import os from boto.ec2.connection import EC2Connection from boto.ec2.elb import HealthCheck, ELBConnection from boto.ec2.autoscale import LaunchConfigurat...
46.159664
238
0.677499
1f5333b3f901fd0c7c65c27528cc876d420a058d
641
py
Python
bootstrapvz/common/tasks/folder.py
zeridon/bootstrap-vz
fcdc6993f59e521567fb101302b02312e741b88c
[ "Apache-2.0" ]
207
2015-01-26T19:00:24.000Z
2021-12-16T10:05:58.000Z
bootstrapvz/common/tasks/folder.py
zeridon/bootstrap-vz
fcdc6993f59e521567fb101302b02312e741b88c
[ "Apache-2.0" ]
346
2015-01-01T08:56:09.000Z
2019-06-10T08:03:05.000Z
bootstrapvz/common/tasks/folder.py
zeridon/bootstrap-vz
fcdc6993f59e521567fb101302b02312e741b88c
[ "Apache-2.0" ]
124
2015-01-16T21:22:29.000Z
2022-02-25T17:36:10.000Z
from bootstrapvz.base import Task from bootstrapvz.common import phases from . import volume from . import workspace class Create(Task): description = 'Creating volume folder' phase = phases.volume_creation successors = [volume.Attach] @classmethod def run(cls, info): import os.path ...
22.892857
56
0.680187
05b26d88b7d38f7f56898b1cc5ae3efdba14ce2e
29,247
py
Python
tensorflow/tools/compatibility/ast_edits.py
PaulWang1905/tensorflow
ebf12d22b4801fb8dab5034cc94562bf7cc33fa0
[ "Apache-2.0" ]
9
2019-12-29T01:47:37.000Z
2021-12-21T13:47:41.000Z
tensorflow/tools/compatibility/ast_edits.py
PaulWang1905/tensorflow
ebf12d22b4801fb8dab5034cc94562bf7cc33fa0
[ "Apache-2.0" ]
1
2019-06-18T07:56:15.000Z
2019-06-18T07:56:15.000Z
tensorflow/tools/compatibility/ast_edits.py
PaulWang1905/tensorflow
ebf12d22b4801fb8dab5034cc94562bf7cc33fa0
[ "Apache-2.0" ]
2
2021-01-26T08:23:41.000Z
2021-07-13T16:23:18.000Z
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
36.241636
80
0.662017
5f53e9fb15c1f9c37e2810299a8253e4ade9b0f2
9,246
py
Python
dr1dl-pyspark.py
quinngroup/r1dl-benchmarks
a29def2b78f9e90cbf8e5e93f7b407731be295ad
[ "MIT" ]
null
null
null
dr1dl-pyspark.py
quinngroup/r1dl-benchmarks
a29def2b78f9e90cbf8e5e93f7b407731be295ad
[ "MIT" ]
null
null
null
dr1dl-pyspark.py
quinngroup/r1dl-benchmarks
a29def2b78f9e90cbf8e5e93f7b407731be295ad
[ "MIT" ]
null
null
null
import argparse import functools import numpy as np import os.path import scipy.linalg as sla import sys import datetime import os import psutil from pyspark import SparkContext, SparkConf from pyspark.mllib.linalg import SparseVector ################################### # Utility functions ###########################...
36.690476
102
0.598096
a367aae21de189049aad11781cf7e33fd726759a
16,952
py
Python
pika/src/asyncio_consumer_example.py
abdullatifmouhamadi/rabbitmq-common
cc8209275f67a5e28ca5afd9ac424bcd053c8574
[ "MIT" ]
1
2020-08-07T19:42:32.000Z
2020-08-07T19:42:32.000Z
pika/src/asyncio_consumer_example.py
abdullatifmouhamadi/rabbitmq-common
cc8209275f67a5e28ca5afd9ac424bcd053c8574
[ "MIT" ]
1
2020-01-08T22:45:50.000Z
2020-01-08T22:45:50.000Z
pika/src/asyncio_consumer_example.py
abdullatifmouhamadi/rabbitmq-common
cc8209275f67a5e28ca5afd9ac424bcd053c8574
[ "MIT" ]
1
2020-07-07T03:07:53.000Z
2020-07-07T03:07:53.000Z
# -*- coding: utf-8 -*- # pylint: disable=C0111,C0103,R0205 import functools import logging import time import pika from pika.adapters.asyncio_connection import AsyncioConnection LOG_FORMAT = ('%(levelname) -10s %(asctime)s %(name) -30s %(funcName) ' '-35s %(lineno) -5d: %(message)s') LOGGER = logging....
38.18018
85
0.66765
6cc37527d05087171a7c621d2c93d96e260a7c66
1,567
py
Python
data_structure/pilha_expressao.py
uadson/data-structure
e7c62ff732b9b89e57b9b08dfc6f777e57a52397
[ "MIT" ]
null
null
null
data_structure/pilha_expressao.py
uadson/data-structure
e7c62ff732b9b89e57b9b08dfc6f777e57a52397
[ "MIT" ]
null
null
null
data_structure/pilha_expressao.py
uadson/data-structure
e7c62ff732b9b89e57b9b08dfc6f777e57a52397
[ "MIT" ]
null
null
null
import numpy as np class Pilha: def __init__(self, capacidade): self.capacidade = capacidade self.topo = -1 # Array de chars (b'(') self.valores = np.chararray(self.capacidade, unicode=True) def __pilha_cheia(self): if self.topo == self.capacidade - 1: return True else: return ...
23.044118
96
0.563497
b26e233352a780bc13652bc516959c54b4ceb2fd
3,604
py
Python
samples/basic/basic.py
martinsam/pycloudinary
11de51083dbce69009fd0dcc8984550b4c3e1f3c
[ "MIT" ]
null
null
null
samples/basic/basic.py
martinsam/pycloudinary
11de51083dbce69009fd0dcc8984550b4c3e1f3c
[ "MIT" ]
null
null
null
samples/basic/basic.py
martinsam/pycloudinary
11de51083dbce69009fd0dcc8984550b4c3e1f3c
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys from cloudinary.api import delete_resources_by_tag, resources_by_tag from cloudinary.uploader import upload from cloudinary.utils import cloudinary_url # config os.chdir(os.path.join(os.path.dirname(sys.argv[0]), '.')) if os.path.exists('settings.py'): exec(open('setting...
26.115942
96
0.596837
726de4263bb167690bc9ef1a51cca63b3774de7b
546
py
Python
API/consumption/urls.py
crowdhackathon-smartcity/CITIZEN17
daeca11650f1198206a44a6fcd1aa229fb59b8cd
[ "MIT" ]
5
2017-05-13T17:05:41.000Z
2017-05-18T11:41:01.000Z
API/consumption/urls.py
crowdhackathon-smartcity/CITIZEN17
daeca11650f1198206a44a6fcd1aa229fb59b8cd
[ "MIT" ]
null
null
null
API/consumption/urls.py
crowdhackathon-smartcity/CITIZEN17
daeca11650f1198206a44a6fcd1aa229fb59b8cd
[ "MIT" ]
null
null
null
from django.conf.urls import url from django.views.decorators.csrf import csrf_exempt from . import views urlpatterns = [ url( r'^municipality/', views.MunicipalityView.as_view(), name='municipality' ), url( r'^user/', views.UserView.as_view(), name='user' ...
19.5
52
0.554945
154e26ca840db1d0e684fd291b138d0a82f2c545
649
py
Python
cymysql/tests/test_example.py
caty/manyuser
438f1df02fc9a0faba97559ee1138061d4e28574
[ "Apache-2.0" ]
11
2018-05-22T03:02:15.000Z
2021-02-17T06:43:10.000Z
cymysql/tests/test_example.py
caty/manyuser
438f1df02fc9a0faba97559ee1138061d4e28574
[ "Apache-2.0" ]
null
null
null
cymysql/tests/test_example.py
caty/manyuser
438f1df02fc9a0faba97559ee1138061d4e28574
[ "Apache-2.0" ]
3
2020-11-04T08:37:23.000Z
2022-03-28T15:49:40.000Z
import cymysql from cymysql.tests import base class TestExample(base.PyMySQLTestCase): def test_example(self): conn = cymysql.connect(host='127.0.0.1', port=3306, user='root', passwd='', db='mysql') cur = conn.cursor() cur.execute("SELECT Host,User FROM user") # print cur.des...
19.666667
95
0.563945
af3d15fe1a84598f77357efa22ec814f0f979b5e
3,493
py
Python
rule_extraction.py
hayesall/bn-rule-extraction
fc9e55744d96afd18870a9660ae6d3e16c86c4da
[ "MIT" ]
4
2021-08-17T18:58:27.000Z
2021-12-11T18:20:22.000Z
rule_extraction.py
hayesall/bn-rule-extraction
fc9e55744d96afd18870a9660ae6d3e16c86c4da
[ "MIT" ]
null
null
null
rule_extraction.py
hayesall/bn-rule-extraction
fc9e55744d96afd18870a9660ae6d3e16c86c4da
[ "MIT" ]
2
2021-08-17T18:59:48.000Z
2021-12-11T18:20:25.000Z
# Copyright © 2020 Alexander L. Hayes """ Extracting decision rules from Bayesian Networks """ from pomegranate import BayesianNetwork from pomegranate import DiscreteDistribution from pomegranate import ConditionalProbabilityTable from sklearn.preprocessing import OrdinalEncoder from sklearn.model_selection import c...
28.398374
80
0.610077
aa1132c21fbfb2f18a5d62fd4970c8118643acb4
536
py
Python
backend/home/migrations/0001_load_initial_data.py
crowdbotics-apps/aged-surf-29096
6e15acc1c420f1fc9439b3e87a78ebf74253271e
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/home/migrations/0001_load_initial_data.py
crowdbotics-apps/aged-surf-29096
6e15acc1c420f1fc9439b3e87a78ebf74253271e
[ "FTL", "AML", "RSA-MD" ]
40
2021-07-23T23:14:22.000Z
2021-07-23T23:15:12.000Z
backend/home/migrations/0001_load_initial_data.py
crowdbotics-apps/aged-surf-29096
6e15acc1c420f1fc9439b3e87a78ebf74253271e
[ "FTL", "AML", "RSA-MD" ]
null
null
null
from django.db import migrations def create_site(apps, schema_editor): Site = apps.get_model("sites", "Site") custom_domain = "aged-surf-29096.botics.co" site_params = { "name": "Aged Surf", } if custom_domain: site_params["domain"] = custom_domain Site.objects.update_or_crea...
20.615385
61
0.652985
10093a248164812afafeb3694bf26446195b1216
1,709
py
Python
fixture/james.py
piersto/python_training_mantis
627547e33a876a975ef54e640965866e5b096c19
[ "Apache-2.0" ]
null
null
null
fixture/james.py
piersto/python_training_mantis
627547e33a876a975ef54e640965866e5b096c19
[ "Apache-2.0" ]
null
null
null
fixture/james.py
piersto/python_training_mantis
627547e33a876a975ef54e640965866e5b096c19
[ "Apache-2.0" ]
null
null
null
from telnetlib import Telnet class JamesHelper: def __init__(self, app): self.app = app def ensure_user_exists(self, username, password): james_config = self.app.config['james'] session = JamesHelper.Session( james_config['host'], james_config['port'], james_config['usern...
33.509804
107
0.592159
ae45d57034fa780b97a028cb1c830b76ed5ee366
7,077
py
Python
laika/helpers.py
mfkiwl/laika-gnss
dc38f251dbc7ebb535a3c220de8424634d297248
[ "MIT" ]
365
2018-12-17T07:43:34.000Z
2022-03-29T22:23:39.000Z
laika/helpers.py
mfkiwl/laika-gnss
dc38f251dbc7ebb535a3c220de8424634d297248
[ "MIT" ]
36
2019-07-24T10:20:45.000Z
2022-02-14T22:11:24.000Z
laika/helpers.py
mfkiwl/laika-gnss
dc38f251dbc7ebb535a3c220de8424634d297248
[ "MIT" ]
156
2018-12-17T05:06:23.000Z
2022-03-31T12:06:07.000Z
import warnings import numpy as np from .lib.coordinates import LocalCoord # From https://gpsd.gitlab.io/gpsd/NMEA.html - Satellite IDs section NMEA_ID_RANGES = ( { 'range': (1, 32), 'constellation': 'GPS' }, { 'range': (33, 54), 'constellation': 'SBAS' }, { 'range': (55, 64), 'const...
26.605263
91
0.660167
85116ef020f70b14463bf3350ef42e1d68acf28d
262
py
Python
Django For APIs 3.0/library/api/views.py
ibnshayed/Python-Programming
a5c50b7ced5131b25260f4c3401f98d016ea8355
[ "MIT" ]
null
null
null
Django For APIs 3.0/library/api/views.py
ibnshayed/Python-Programming
a5c50b7ced5131b25260f4c3401f98d016ea8355
[ "MIT" ]
null
null
null
Django For APIs 3.0/library/api/views.py
ibnshayed/Python-Programming
a5c50b7ced5131b25260f4c3401f98d016ea8355
[ "MIT" ]
null
null
null
from rest_framework import generics from books.models import Book from .serializers import BookSerializer # Create your views here. class BookAPIView(generics.ListAPIView): queryset = Book.objects.all() serializer_class = BookSerializer
23.818182
44
0.755725
e159068c2e0e14962fdb1843e5e3e2136dfbacb1
1,702
py
Python
elaboorate/elaboo_methods/split.py
oterobravo/elaboo
b248269954ae4de07fcb714da265bf1aaa8ad3db
[ "MIT" ]
null
null
null
elaboorate/elaboo_methods/split.py
oterobravo/elaboo
b248269954ae4de07fcb714da265bf1aaa8ad3db
[ "MIT" ]
null
null
null
elaboorate/elaboo_methods/split.py
oterobravo/elaboo
b248269954ae4de07fcb714da265bf1aaa8ad3db
[ "MIT" ]
null
null
null
import logging def draw_histogram(values, hist_file, threshold, breaks): try: logging.getLogger('matplotlib').setLevel(logging.ERROR) #Disable matplotlib logging import matplotlib.pyplot as hs except ImportError: logging.info("Error importing pyplot. Cannot draw histogram.") return logging.info("Saving his...
46
134
0.743243
25a9668f83d6a95cc36c884c949ff9b17b6a3ce9
20,960
py
Python
src/diamond/collector.py
devanshukoyalkar-rubrik/Diamond
c4c3f2e4723c2e4381b7bf5348cc3a25f321315d
[ "MIT" ]
null
null
null
src/diamond/collector.py
devanshukoyalkar-rubrik/Diamond
c4c3f2e4723c2e4381b7bf5348cc3a25f321315d
[ "MIT" ]
null
null
null
src/diamond/collector.py
devanshukoyalkar-rubrik/Diamond
c4c3f2e4723c2e4381b7bf5348cc3a25f321315d
[ "MIT" ]
null
null
null
# coding=utf-8 # Ignore lint errors as code is from github.com/python-diamond/Diamond """ The Collector class is a base class for all metric collectors. """ import logging import os import platform import re import socket import subprocess import time import traceback import configobj from diamond.metric import Metr...
33.269841
79
0.5677
3fb4cfcfec408da103431c1e2aa752e17f615b56
4,613
py
Python
hip/utils.py
kasrsf/hip-tensorflow
24d2a350f7ef8d4baf7fcc4bed4c5256a8fe039e
[ "MIT" ]
2
2020-10-28T00:07:19.000Z
2021-02-25T09:16:16.000Z
hip/utils.py
kasrsf/hip-tensorflow
24d2a350f7ef8d4baf7fcc4bed4c5256a8fe039e
[ "MIT" ]
7
2019-01-09T14:42:51.000Z
2022-02-09T23:54:39.000Z
hip/utils.py
kasrsf/hip-tensorflow
24d2a350f7ef8d4baf7fcc4bed4c5256a8fe039e
[ "MIT" ]
3
2019-01-03T07:20:54.000Z
2019-05-28T05:07:18.000Z
import csv import matplotlib.pyplot as plt import numpy as np import pandas as pd def load_data_from_csv(filename): raw_data_df = pd.read_csv(filename) # always assume that the last column in the CSV file is the target series # and the rest are time-series data for the features features, target = np....
30.959732
110
0.535227
01236c452b8030b07466d4c3ea48eee0466be1da
962
py
Python
website/visualizeData.py
BornToDebug/homeStruction
354e03c05cb363d8397d0e2d7afeb78a029266f9
[ "Apache-2.0" ]
6
2016-08-31T16:46:54.000Z
2017-09-15T19:34:30.000Z
website/visualizeData.py
BornToDebug/homeStruction
354e03c05cb363d8397d0e2d7afeb78a029266f9
[ "Apache-2.0" ]
4
2016-09-02T09:18:41.000Z
2016-09-02T09:24:08.000Z
website/visualizeData.py
BornToDebug/homeStruction
354e03c05cb363d8397d0e2d7afeb78a029266f9
[ "Apache-2.0" ]
null
null
null
import numpy as np from matplotlib import pyplot as plt from matplotlib import dates import django import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "homeStruction.settings") django.setup() from project.models import Temperature from django.utils import timezone # Get temperature data from the last 24 hours te...
26
74
0.769231
51f073b60f5683c647da0bc2b1b6e5742b307cdf
895
py
Python
env/bin/rst2xetex.py
marcotroisi/zip3
43c3b0d4baf729405f2c5fdd580ab8ae7038fb6e
[ "MIT" ]
3
2020-08-04T20:29:41.000Z
2020-11-09T09:28:19.000Z
env/bin/rst2xetex.py
marcotroisi/zip3
43c3b0d4baf729405f2c5fdd580ab8ae7038fb6e
[ "MIT" ]
null
null
null
env/bin/rst2xetex.py
marcotroisi/zip3
43c3b0d4baf729405f2c5fdd580ab8ae7038fb6e
[ "MIT" ]
null
null
null
#!/Users/marco/Projects/zip/env/bin/python # $Id: rst2xetex.py 7847 2015-03-17 17:30:47Z milde $ # Author: Guenter Milde # Copyright: This module has been placed in the public domain. """ A minimal front end to the Docutils Publisher, producing Lua/XeLaTeX code. """ try: import locale locale.setlocale(locale...
31.964286
77
0.673743
3be66f3b32dbeb404bc656a987f0c5ba7e046bac
3,045
py
Python
neo/Core/TX/PublishTransaction.py
volekerb/neo-python
5bdded2c339219355cf1d31ae58653b0f94c6e51
[ "MIT" ]
387
2017-07-17T18:25:54.000Z
2021-11-18T06:19:47.000Z
neo/Core/TX/PublishTransaction.py
volekerb/neo-python
5bdded2c339219355cf1d31ae58653b0f94c6e51
[ "MIT" ]
967
2017-08-19T15:48:03.000Z
2021-06-01T21:42:39.000Z
neo/Core/TX/PublishTransaction.py
volekerb/neo-python
5bdded2c339219355cf1d31ae58653b0f94c6e51
[ "MIT" ]
286
2017-07-17T03:44:36.000Z
2021-11-18T06:19:32.000Z
from neo.Core.TX.Transaction import Transaction, TransactionType from neo.Core.FunctionCode import FunctionCode from neo.Core.Size import GetVarSize from neo.Core.Size import Size as s from neo.logging import log_manager logger = log_manager.getLogger() class PublishTransaction(Transaction): def __init__(self, *...
31.071429
146
0.598686
3d26f4131b994b4522424383cd74bbd13e97c07d
5,394
py
Python
api/app.py
korenlev/calipso-cvim
39278a5cf09c40b26a8a143ccc0c8d437961abc2
[ "Apache-2.0" ]
null
null
null
api/app.py
korenlev/calipso-cvim
39278a5cf09c40b26a8a143ccc0c8d437961abc2
[ "Apache-2.0" ]
null
null
null
api/app.py
korenlev/calipso-cvim
39278a5cf09c40b26a8a143ccc0c8d437961abc2
[ "Apache-2.0" ]
null
null
null
############################################################################### # Copyright (c) 2017-2020 Koren Lev (Cisco Systems), # # Yaron Yogev (Cisco Systems), Ilia Abashin (Cisco Systems) and others # # # ...
46.5
120
0.620319
3011012c4861c5b6f58750a353b56dc0add4a2d9
14,885
py
Python
Pyrado/pyrado/environments/mujoco/base.py
theogruner/SimuRLacra
4893514ccdeb10a736c55de9aa7753fd51c5afec
[ "DOC", "Zlib", "BSD-3-Clause" ]
null
null
null
Pyrado/pyrado/environments/mujoco/base.py
theogruner/SimuRLacra
4893514ccdeb10a736c55de9aa7753fd51c5afec
[ "DOC", "Zlib", "BSD-3-Clause" ]
null
null
null
Pyrado/pyrado/environments/mujoco/base.py
theogruner/SimuRLacra
4893514ccdeb10a736c55de9aa7753fd51c5afec
[ "DOC", "Zlib", "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2020, Fabio Muratore, Honda Research Institute Europe GmbH, and # Technical University of Darmstadt. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # 1. Redistributions of source ...
41.929577
131
0.656701
df063b4c5a9ce72a9057eaf28b19ff0527a426ca
29,140
py
Python
alert_bot.py
becca-mayers/alert-bot
c4abdc39038fdda97a08c650a64d231282ba0cce
[ "MIT" ]
null
null
null
alert_bot.py
becca-mayers/alert-bot
c4abdc39038fdda97a08c650a64d231282ba0cce
[ "MIT" ]
null
null
null
alert_bot.py
becca-mayers/alert-bot
c4abdc39038fdda97a08c650a64d231282ba0cce
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Aug 2 15:23:03 2021 @author: beccamayers """ from jinja2 import Environment as JinjaEnvironment from jinja2 import FileSystemLoader from alert_variables import alert_variables import plotly.express as px from colour import Color import pandas as pd import n...
52.410072
189
0.583699
ed423b0f27127ec4302f9936ead295c10ab3b90d
226
py
Python
frappe/core/doctype/navbar_settings/test_navbar_settings.py
chentaoz/frappe
ee3c4943bf6177ad3b410cdb0d802af486751a65
[ "MIT" ]
3
2017-12-09T22:05:11.000Z
2019-10-22T12:03:43.000Z
frappe/core/doctype/navbar_settings/test_navbar_settings.py
chentaoz/frappe
ee3c4943bf6177ad3b410cdb0d802af486751a65
[ "MIT" ]
17
2021-03-22T18:47:14.000Z
2022-03-15T12:21:00.000Z
frappe/core/doctype/navbar_settings/test_navbar_settings.py
chentaoz/frappe
ee3c4943bf6177ad3b410cdb0d802af486751a65
[ "MIT" ]
2
2021-05-06T06:14:40.000Z
2021-05-06T10:05:29.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2020, Frappe Technologies and Contributors # See license.txt from __future__ import unicode_literals # import frappe import unittest class TestNavbarSettings(unittest.TestCase): pass
20.545455
58
0.774336
d748c1574c0056ce281916dd5498ea5eeb811c35
469
py
Python
packages/python/plotly/plotly/validators/densitymapbox/colorbar/_ticklen.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/validators/densitymapbox/colorbar/_ticklen.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/validators/densitymapbox/colorbar/_ticklen.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
import _plotly_utils.basevalidators class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): def __init__( self, plotly_name="ticklen", parent_name="densitymapbox.colorbar", **kwargs ): super(TicklenValidator, self).__init__( plotly_name=plotly_name, parent...
31.266667
83
0.643923
876c16835fff29e93529890245154dc7d5c1f166
3,862
py
Python
pos-tagging/torch_lstm.py
naetherm/NLP
c715e424e37f1a3a1bde28df430a2d2b30ef205a
[ "MIT" ]
3
2020-08-11T12:33:48.000Z
2020-12-29T11:37:38.000Z
pos-tagging/torch_lstm.py
naetherm/NLP
c715e424e37f1a3a1bde28df430a2d2b30ef205a
[ "MIT" ]
null
null
null
pos-tagging/torch_lstm.py
naetherm/NLP
c715e424e37f1a3a1bde28df430a2d2b30ef205a
[ "MIT" ]
null
null
null
import re import numpy as np import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from tqdm import tqdm EPOCHS=20 def parse(file): with open(file) as fopen: texts = fopen.read().split('\n') left, right = [], [] for text in texts: if '-DOCSTART-' ...
29.257576
75
0.642672
7d20f7f2b7301640d0df448a3b8c1f18092dd902
7,575
py
Python
qa/rpc-tests/txn_clone.py
knight2008/axe
007bf4ff9605b4552810bcc4df73f4eb4fb011fa
[ "MIT" ]
1
2019-05-16T09:00:00.000Z
2019-05-16T09:00:00.000Z
qa/rpc-tests/txn_clone.py
knight2008/axe
007bf4ff9605b4552810bcc4df73f4eb4fb011fa
[ "MIT" ]
null
null
null
qa/rpc-tests/txn_clone.py
knight2008/axe
007bf4ff9605b4552810bcc4df73f4eb4fb011fa
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # # Test proper accounting with an equivalent malleability clone # from test_framework.test_framework im...
47.34375
111
0.611221
ae7d532db354594e5670bc2ab5437189366a167e
3,007
py
Python
deploy-to-azure/azext_deploy_to_azure/dev/common/utils.py
dksimpson/deploy-to-azure-cli-extension
250a5bae1088f8ea695bd13db2b48c889f93be62
[ "MIT" ]
1
2020-06-01T14:08:37.000Z
2020-06-01T14:08:37.000Z
deploy-to-azure/azext_deploy_to_azure/dev/common/utils.py
dksimpson/deploy-to-azure-cli-extension
250a5bae1088f8ea695bd13db2b48c889f93be62
[ "MIT" ]
12
2020-03-05T08:47:02.000Z
2021-08-09T20:19:47.000Z
deploy-to-azure/azext_deploy_to_azure/dev/common/utils.py
dksimpson/deploy-to-azure-cli-extension
250a5bae1088f8ea695bd13db2b48c889f93be62
[ "MIT" ]
10
2020-03-05T08:35:53.000Z
2021-08-28T15:54:48.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
29.194175
98
0.614566
aebede3db84bf6b44c81441e011d439cde497276
1,254
py
Python
product/migrations/0016_auto_20170131_0045.py
skylifewww/pangolin-fog
b1fa4b51b5c6eb40ff5cfcdbb71a3f932235da94
[ "MIT" ]
null
null
null
product/migrations/0016_auto_20170131_0045.py
skylifewww/pangolin-fog
b1fa4b51b5c6eb40ff5cfcdbb71a3f932235da94
[ "MIT" ]
null
null
null
product/migrations/0016_auto_20170131_0045.py
skylifewww/pangolin-fog
b1fa4b51b5c6eb40ff5cfcdbb71a3f932235da94
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.5 on 2017-01-31 00:45 from __future__ import unicode_literals from django.db import migrations, models import easy_thumbnails.fields import product.models class Migration(migrations.Migration): dependencies = [ ('product', '0015_auto_20170126_0132'), ...
33.891892
140
0.648325