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
403d818070a9ce379bc3a6e009949b6c852cb064
5,572
py
Python
server.py
JoshuaBillson/CMPUT404-assignment-webserver
db7110d11f19c9360af2e47ee7978b6fc47c8e0a
[ "Apache-2.0" ]
null
null
null
server.py
JoshuaBillson/CMPUT404-assignment-webserver
db7110d11f19c9360af2e47ee7978b6fc47c8e0a
[ "Apache-2.0" ]
null
null
null
server.py
JoshuaBillson/CMPUT404-assignment-webserver
db7110d11f19c9360af2e47ee7978b6fc47c8e0a
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 import os.path import socketserver import re # Copyright 2013 Abram Hindle, Eddie Antonio Santos # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache....
38.164384
148
0.629935
eb3ff166d5970eca0946e59360caaeceb33ba452
706
pyw
Python
ch05_GUI/animalTix.pyw
Nickhool/core-python
324d6aabff5ccadb490d228c6437a203612d93e2
[ "MIT" ]
1
2019-07-25T02:36:11.000Z
2019-07-25T02:36:11.000Z
ch05_GUI/animalTix.pyw
Nickhool/core-python
324d6aabff5ccadb490d228c6437a203612d93e2
[ "MIT" ]
null
null
null
ch05_GUI/animalTix.pyw
Nickhool/core-python
324d6aabff5ccadb490d228c6437a203612d93e2
[ "MIT" ]
null
null
null
__Author__ = "noduez" # _tkinter.TclError: can't find package Tix # Tix 已经被移除remove 改用 Ttk from tkinter import Label, Button, END from tkinter.tix import Tk, Control, ComboBox top = Tk() top.tk.eval('package require Tix') lb = Label(top, text='Animals (in pairs; min: pair, max: dozen)') lb.pack() ct = Co...
24.344828
60
0.648725
1b08ab53d5ac8a9c24737ad2aad09d01c91d1efe
1,722
py
Python
Wrapping/Generators/Python/itkTypes.py
eile/ITK
2f09e6e2f9e0a4a7269ac83c597f97b04f915dc1
[ "Apache-2.0" ]
1
2019-04-22T09:09:17.000Z
2019-04-22T09:09:17.000Z
Wrapping/Generators/Python/itkTypes.py
eile/ITK
2f09e6e2f9e0a4a7269ac83c597f97b04f915dc1
[ "Apache-2.0" ]
null
null
null
Wrapping/Generators/Python/itkTypes.py
eile/ITK
2f09e6e2f9e0a4a7269ac83c597f97b04f915dc1
[ "Apache-2.0" ]
null
null
null
#========================================================================== # # Copyright Insight Software Consortium # # 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...
29.689655
77
0.587689
7567b732492dd5b135e882c6e631f2975ce4e68e
6,962
py
Python
packages/python/plotly/plotly/graph_objs/scattergeo/_line.py
labaran1/plotly.py
7ec751e8fed4a570c11ea4bea2231806389d62eb
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/graph_objs/scattergeo/_line.py
labaran1/plotly.py
7ec751e8fed4a570c11ea4bea2231806389d62eb
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/graph_objs/scattergeo/_line.py
labaran1/plotly.py
7ec751e8fed4a570c11ea4bea2231806389d62eb
[ "MIT" ]
null
null
null
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Line(_BaseTraceHierarchyType): # class properties # -------------------- _parent_path_str = "scattergeo" _path_str = "scattergeo.line" _valid_props = {"color", "dash", "width"} # col...
33.63285
82
0.534616
8b56b77118c1879efc0c8f768aaaff32268793c1
7,853
py
Python
Packs/ApiModules/Scripts/NGINXApiModule/NGINXApiModule_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1
2022-03-15T13:16:24.000Z
2022-03-15T13:16:24.000Z
Packs/ApiModules/Scripts/NGINXApiModule/NGINXApiModule_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
60
2022-02-24T14:54:47.000Z
2022-03-31T10:38:41.000Z
Packs/ApiModules/Scripts/NGINXApiModule/NGINXApiModule_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
null
null
null
import pytest import requests import demistomock as demisto from pathlib import Path import os from pytest_mock import MockerFixture from time import sleep import subprocess from typing import Optional SSL_TEST_KEY = '''-----BEGIN PRIVATE KEY----- MIIEvwIBADANBgkqhkiG9w0BAQEFAASCBKkwggSlAgEAAoIBAQDd5FcvCKgtXjkY aiDdq...
43.148352
129
0.802241
dcf605d0865f8b869520c3bc5b999d5c974b64e2
324
py
Python
smqtk_descriptors/__init__.py
Purg/SMQTK-Descriptors
2ad4b32d77658f1ba98e69538aa5d6c74af9cf44
[ "BSD-3-Clause" ]
null
null
null
smqtk_descriptors/__init__.py
Purg/SMQTK-Descriptors
2ad4b32d77658f1ba98e69538aa5d6c74af9cf44
[ "BSD-3-Clause" ]
null
null
null
smqtk_descriptors/__init__.py
Purg/SMQTK-Descriptors
2ad4b32d77658f1ba98e69538aa5d6c74af9cf44
[ "BSD-3-Clause" ]
null
null
null
__version__ = "0.15.0" from .descriptor_element_factory import DescriptorElementFactory # noqa: F401 from .interfaces.descriptor_element import DescriptorElement # noqa: F401 from .interfaces.descriptor_set import DescriptorSet # noqa: F401 from .interfaces.descriptor_generator import DescriptorGenerator # noqa: F...
46.285714
78
0.82716
9e579dc0e2535767e8e6d7b8ef83e41df099d334
1,521
py
Python
jank/test01.py
K4zuki/EtherCAT_Master
b5e2dd2f87ee9a0c520201eb13f6516ae9adf787
[ "MIT" ]
null
null
null
jank/test01.py
K4zuki/EtherCAT_Master
b5e2dd2f87ee9a0c520201eb13f6516ae9adf787
[ "MIT" ]
null
null
null
jank/test01.py
K4zuki/EtherCAT_Master
b5e2dd2f87ee9a0c520201eb13f6516ae9adf787
[ "MIT" ]
null
null
null
send_mac=[0]*6 send_mac[0:6] = 0xff,0xff,0xff,0xff,0xff,0xff receive_mac=[0]*6 receive_mac[0:6] = 0x01,0x01,0x01,0x01,0x01,0x01 cat_head =[0]*2 cat_head[0] = 0x88 cat_head[1] = 0xA4 cat_PDUfream = [0]*13 cat_PDUfream[0] = 0x08 # CMD (1 byte) cat_PDUfream[1] = 0x01 # IDX (1 byte) cat_PDUfream[2:4...
28.698113
60
0.706772
aac5df4528f320f9f27926b45789d56f4c5e95bc
799
py
Python
cursos/forms.py
Etxea/gestion_eide_web
8a59be1ddb59a4713cb3346534fd01f643d8f924
[ "MIT" ]
null
null
null
cursos/forms.py
Etxea/gestion_eide_web
8a59be1ddb59a4713cb3346534fd01f643d8f924
[ "MIT" ]
null
null
null
cursos/forms.py
Etxea/gestion_eide_web
8a59be1ddb59a4713cb3346534fd01f643d8f924
[ "MIT" ]
null
null
null
from bootstrap3_datetime.widgets import DateTimePicker from django import forms from django.forms import ModelForm from models import * class CursoForm(ModelForm): class Meta: model = Curso widgets = { 'inicio' : DateTimePicker(options={"format": "YYYY-MM-DD", "pickTime": False}), ...
36.318182
143
0.623279
c98ec2c604140d5a3bdad16ec4dadd63a6a48e52
3,265
py
Python
extensions/labgraph_viz/labgraph_viz/plots/spatial_plot.py
Yunusbcr/labgraph
a00ae7098b7b0e0eda8ce2e7e62dae86854616fb
[ "MIT" ]
124
2021-07-14T21:25:59.000Z
2022-03-08T20:40:16.000Z
extensions/labgraph_viz/labgraph_viz/plots/spatial_plot.py
Yunusbcr/labgraph
a00ae7098b7b0e0eda8ce2e7e62dae86854616fb
[ "MIT" ]
46
2021-07-16T18:41:11.000Z
2022-03-31T20:53:00.000Z
extensions/labgraph_viz/labgraph_viz/plots/spatial_plot.py
Yunusbcr/labgraph
a00ae7098b7b0e0eda8ce2e7e62dae86854616fb
[ "MIT" ]
22
2021-07-16T18:34:56.000Z
2022-03-31T15:12:06.000Z
#!/usr/bin/env python3 # Copyright 2004-present Facebook. All Rights Reserved. # For usage see examples/spatial_plot_example.py import labgraph as lg import numpy as np import PyQt5.sip as sip import pyqtgraph as pg from dataclasses import asdict, dataclass from matplotlib import cm from pyqtgraph.Qt import QtCore fr...
30.801887
85
0.638897
b7b1731f28d189006cd37638935c3e3bf68ef3d0
6,897
py
Python
einsum2/einsum2.py
e2grnd/einsum2
d36efa494187d014a509a6763d69803882a6fe03
[ "MIT" ]
null
null
null
einsum2/einsum2.py
e2grnd/einsum2
d36efa494187d014a509a6763d69803882a6fe03
[ "MIT" ]
null
null
null
einsum2/einsum2.py
e2grnd/einsum2
d36efa494187d014a509a6763d69803882a6fe03
[ "MIT" ]
null
null
null
import sys import autograd.numpy as np from autograd.extend import primitive, defvjp from .parallel_matmul import _par_matmul @primitive def batched_dot(a, b): if len(a.shape) != 3 or len(b.shape) != 3 or a.shape[0] != b.shape[0]: raise ValueError("a,b must be 3-dimensional arrays, with a.shape[0]==b.shape...
37.483696
116
0.636074
80769691b5a50cdd76c2e720eec29a81f74dae4d
1,187
py
Python
aliyun-python-sdk-edas/aliyunsdkedas/request/v20170801/DeleteUserDefineRegionRequest.py
liusc27/aliyun-openapi-python-sdk
5e3db3535dd21de987dc5981e71151327d5a884f
[ "Apache-2.0" ]
1
2019-12-23T12:36:43.000Z
2019-12-23T12:36:43.000Z
aliyun-python-sdk-edas/aliyunsdkedas/request/v20170801/DeleteUserDefineRegionRequest.py
liusc27/aliyun-openapi-python-sdk
5e3db3535dd21de987dc5981e71151327d5a884f
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-edas/aliyunsdkedas/request/v20170801/DeleteUserDefineRegionRequest.py
liusc27/aliyun-openapi-python-sdk
5e3db3535dd21de987dc5981e71151327d5a884f
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
37.09375
76
0.760741
29a00c09c966b47e455543bed2f65a3d68b983b0
922
py
Python
registration/image_overlay.py
roguen/jive-derby
bc9e0f63e4298c3f1869288345d79e320fd20b65
[ "Apache-2.0" ]
null
null
null
registration/image_overlay.py
roguen/jive-derby
bc9e0f63e4298c3f1869288345d79e320fd20b65
[ "Apache-2.0" ]
null
null
null
registration/image_overlay.py
roguen/jive-derby
bc9e0f63e4298c3f1869288345d79e320fd20b65
[ "Apache-2.0" ]
null
null
null
import picamera from PIL import Image from time import sleep with picamera.PiCamera() as camera: camera.start_preview() # Load the arbitrarily sized image img = Image.open('static/images/helmet_overlay.png') # Create an image padded to the required size with # mode 'RGB' pad = Image.new('RGB', ( ((i...
26.342857
58
0.678959
8b0c0abcf2d6f4ecbc8ea4863bb141e001347e2b
301
py
Python
ex097.py
rafaelclemes81/Python
0e685b4e528a29bb23ecf11c9ccdbae8730b3ac3
[ "MIT" ]
null
null
null
ex097.py
rafaelclemes81/Python
0e685b4e528a29bb23ecf11c9ccdbae8730b3ac3
[ "MIT" ]
null
null
null
ex097.py
rafaelclemes81/Python
0e685b4e528a29bb23ecf11c9ccdbae8730b3ac3
[ "MIT" ]
null
null
null
''' FAÇA UM PROGRAMA QUE TENHA UMA FUNÇÃO CHAMADA 'ESCREVA()', QUE RECEBE UM TEXTO QUALQUER COMO PARÂMETRO E MOSTRE UMA MENSAGEM COM TAMANHO ADAPTÁVEL''' def escreva(txt): print('~' * (len(txt)+2)) print(f' {txt} ') print('~' * (len(txt)+2)) #Programa Principal escreva('Programa Teste')
30.1
82
0.671096
328bfcf9cf475cbccb29bf81e67de6eb3906b852
10,327
py
Python
droidlet/interpreter/interpreter.py
CowherdChris/droidlet
8d965c1ebc38eceb6f8083c52b1146c1bc17d5e1
[ "MIT" ]
null
null
null
droidlet/interpreter/interpreter.py
CowherdChris/droidlet
8d965c1ebc38eceb6f8083c52b1146c1bc17d5e1
[ "MIT" ]
null
null
null
droidlet/interpreter/interpreter.py
CowherdChris/droidlet
8d965c1ebc38eceb6f8083c52b1146c1bc17d5e1
[ "MIT" ]
null
null
null
""" Copyright (c) Facebook, Inc. and its affiliates. """ import logging import datetime from typing import Tuple, Dict, Any, Optional from droidlet.event import dispatch from .interpreter_utils import SPEAKERLOOK # point target should be subinterpret, dance should be in agents subclassed interpreters from .reference_...
44.321888
102
0.61315
3e752aba7497e842fc8160d4377aa52ca8d72889
6,442
py
Python
mirage/libs/fw_utils/parseTable.py
FlorentGaltier/mirage
e25c0d1042fa02b1dff4058b240567f45fd64b4b
[ "MIT" ]
1
2021-07-04T13:01:19.000Z
2021-07-04T13:01:19.000Z
mirage/libs/fw_utils/parseTable.py
FlorentGaltier/mirage
e25c0d1042fa02b1dff4058b240567f45fd64b4b
[ "MIT" ]
null
null
null
mirage/libs/fw_utils/parseTable.py
FlorentGaltier/mirage
e25c0d1042fa02b1dff4058b240567f45fd64b4b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from mirage.libs import io from mirage.libs.ble_utils import packets import tempfile import os class IncorrectBLETableError(RuntimeError): pass def tokenize_line(line): while " " in line: line=line.replace(" "," ") return line.split(" ") def parse_ble_tables(lines): ...
35.395604
149
0.606954
3c15d05e5b2e794fe2f378c31727bbd8b14d290c
190
py
Python
sharpy/managers/grids/zone_area.py
raspersc2/sharpy-sc2
ec8f5870eab233b1d09a54a09bd8b76ea2585735
[ "MIT" ]
2
2020-08-13T01:25:20.000Z
2020-11-22T19:00:06.000Z
sharpy/managers/grids/zone_area.py
raspersc2/sharpy-sc2
ec8f5870eab233b1d09a54a09bd8b76ea2585735
[ "MIT" ]
null
null
null
sharpy/managers/grids/zone_area.py
raspersc2/sharpy-sc2
ec8f5870eab233b1d09a54a09bd8b76ea2585735
[ "MIT" ]
null
null
null
import enum class ZoneArea(enum.Enum): NoZone = 0 OwnMainZone = 1 OwnNaturalZone = 2 OwnThirdZone = 3 EnemyMainZone = 4 EnemyNaturalZone = 5 EnemyThirdZone = 6
15.833333
26
0.652632
a156115e525b74c81076ebdde4b47337093af4aa
6,210
py
Python
source/vsm/vsm/api/v1/vsm_settings.py
ramkrsna/virtual-storage-manager
78125bfb4dd4d78ff96bc3274c8919003769c545
[ "Apache-2.0" ]
172
2015-01-07T08:40:17.000Z
2019-02-18T07:01:11.000Z
source/vsm/vsm/api/v1/vsm_settings.py
ramkrsna/virtual-storage-manager
78125bfb4dd4d78ff96bc3274c8919003769c545
[ "Apache-2.0" ]
83
2015-03-06T07:47:03.000Z
2018-07-05T15:10:19.000Z
source/vsm/vsm/api/v1/vsm_settings.py
ramkrsna/virtual-storage-manager
78125bfb4dd4d78ff96bc3274c8919003769c545
[ "Apache-2.0" ]
125
2015-01-05T12:22:15.000Z
2019-02-18T07:01:39.000Z
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2014 Intel Inc. # 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/lice...
35.689655
108
0.66248
42eb5c81c396849c928dc6f2613cc47db2a93794
6,231
py
Python
seldom/testdata/parameterization.py
defnngj/pyse
6dbf080f74440cc10a7d44e87bee0e8cbb4362e2
[ "Apache-2.0" ]
250
2015-09-10T09:25:02.000Z
2019-11-16T12:03:44.000Z
seldom/testdata/parameterization.py
ooceann/seldom
2e2b8855c305e8b8aa16c852517385814e253720
[ "Apache-2.0" ]
13
2016-04-22T08:03:04.000Z
2019-06-03T03:44:54.000Z
seldom/testdata/parameterization.py
ooceann/seldom
2e2b8855c305e8b8aa16c852517385814e253720
[ "Apache-2.0" ]
166
2015-07-16T02:51:58.000Z
2019-11-15T05:12:30.000Z
import os import inspect as sys_inspect import warnings from functools import wraps from parameterized.parameterized import inspect from parameterized.parameterized import parameterized from parameterized.parameterized import default_doc_func from parameterized.parameterized import default_name_func from parameterized....
37.089286
129
0.64131
a64cfaf28fe2ae943ff0a092123280228cc90d06
8,065
py
Python
JobScript/wind_to_db/stress_testing/copula_fof.py
zuoziji/transaction
7a59817a699d9df32e13d43edda630520af7860d
[ "Apache-2.0" ]
null
null
null
JobScript/wind_to_db/stress_testing/copula_fof.py
zuoziji/transaction
7a59817a699d9df32e13d43edda630520af7860d
[ "Apache-2.0" ]
9
2021-02-08T20:19:53.000Z
2022-03-11T23:16:46.000Z
JobScript/wind_to_db/stress_testing/copula_fof.py
zuoziji/transaction
7a59817a699d9df32e13d43edda630520af7860d
[ "Apache-2.0" ]
2
2019-03-03T14:27:54.000Z
2019-07-22T09:00:35.000Z
import pandas as pd # from WindPy import * import sympy as smp import scipy as scp import scipy.stats as sss import scipy.optimize as sop import numpy as np import pandas as pd from datetime import datetime, date, timedelta import matplotlib as mpl import matplotlib.pyplot as plt from fh_tools.fh_utils impor...
40.527638
132
0.642777
72217448daa0bcf13bb1e25e421b461071be4546
2,584
py
Python
custom_components/teletask/switch.py
Tiemooowh/homeassistant-teletask
58bdabf72c7dc6a023253cd396665c99cf03413c
[ "OML" ]
2
2022-01-19T08:12:59.000Z
2022-02-25T08:40:47.000Z
custom_components/teletask/switch.py
Tiemooowh/homeassistant-teletask
58bdabf72c7dc6a023253cd396665c99cf03413c
[ "OML" ]
4
2021-09-17T17:17:18.000Z
2022-03-06T18:39:39.000Z
custom_components/teletask/switch.py
Tiemooowh/homeassistant-teletask
58bdabf72c7dc6a023253cd396665c99cf03413c
[ "OML" ]
null
null
null
"""Support for Teletask/IP switchs.""" import voluptuous as vol from .const import ( DOMAIN ) from homeassistant.components.switch import ( SwitchEntity ) #from homeassistant.components.teletask import DATA_TELETASK from homeassistant.const import CONF_NAME from homeassistant.core import callback import math ...
29.701149
99
0.669892
fe690d485e121297df08705175d8a9ad7ec6e670
844
py
Python
special_sets/cyclic.py
sr-murthy/imath-utils
41870e4b7352c221ec096073d41813358c4c7dab
[ "MIT" ]
1
2019-04-08T05:15:28.000Z
2019-04-08T05:15:28.000Z
special_sets/cyclic.py
sr-murthy/imath-utils
41870e4b7352c221ec096073d41813358c4c7dab
[ "MIT" ]
null
null
null
special_sets/cyclic.py
sr-murthy/imath-utils
41870e4b7352c221ec096073d41813358c4c7dab
[ "MIT" ]
null
null
null
from itertools import permutations def is_d_cyclic_set(int_set, d): """ Checks whether a given set (or sequence) of positive integers has the d-cyclic property, namely that there exists an (ordered) sequence of all the integers from this set such that for any two consecutive intege...
36.695652
77
0.64455
c3f1118d4d3b1b1b234ccd0f41ca14e47e9be5e9
3,865
py
Python
test/test_grado_de_ocupacin_por_apartamentos_controller.py
SergioCMDev/Busines-Inteligence-applied-to-tourism
61834a46fce22453e94b7bbdf8d4ecdcf128285a
[ "Apache-2.0" ]
null
null
null
test/test_grado_de_ocupacin_por_apartamentos_controller.py
SergioCMDev/Busines-Inteligence-applied-to-tourism
61834a46fce22453e94b7bbdf8d4ecdcf128285a
[ "Apache-2.0" ]
null
null
null
test/test_grado_de_ocupacin_por_apartamentos_controller.py
SergioCMDev/Busines-Inteligence-applied-to-tourism
61834a46fce22453e94b7bbdf8d4ecdcf128285a
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 from __future__ import absolute_import from . import BaseTestCase from six import BytesIO from flask import json class TestGradoDeOcupacinPorApartamentosController(BaseTestCase): """ GradoDeOcupacinPorApartamentosController integration test stubs """ def test_obtener_porcentaje_del_grado_de...
56.838235
225
0.704269
8bc7cd470cefc67b6571d45747013b3dc0248903
55,510
py
Python
src/dashd_intf.py
SplawikDash/dash-masternode-tool
259c6e3e5266f2f3a0045a4bb4c247b4a54cfefe
[ "MIT" ]
null
null
null
src/dashd_intf.py
SplawikDash/dash-masternode-tool
259c6e3e5266f2f3a0045a4bb4c247b4a54cfefe
[ "MIT" ]
null
null
null
src/dashd_intf.py
SplawikDash/dash-masternode-tool
259c6e3e5266f2f3a0045a4bb4c247b4a54cfefe
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Author: Bertrand256 # Created on: 2017-03 import decimal import json import bitcoin import os import re import socket import sqlite3 import ssl import threading import time import datetime import logging from PyQt5.QtCore import QThread from bitcoinrpc.authproxy import ...
41.057692
131
0.547577
f512bfd3481e712862886841185ef528dbf2d6ae
500
py
Python
egs/cslt_cases/olr19/local/prepare_for_eer.py
tzyll/kaldi
5a3d43250c23cbf54e810b9d9a9db2bb9c8648fc
[ "Apache-2.0" ]
116
2016-10-25T06:04:49.000Z
2022-03-13T02:30:52.000Z
egs/cslt_cases/olr19/local/prepare_for_eer.py
iezhanqingran/kaldi
98c1a8750011755924d23bf6deee9ac205a80581
[ "Apache-2.0" ]
null
null
null
egs/cslt_cases/olr19/local/prepare_for_eer.py
iezhanqingran/kaldi
98c1a8750011755924d23bf6deee9ac205a80581
[ "Apache-2.0" ]
52
2016-04-21T13:38:21.000Z
2022-02-16T08:33:13.000Z
# Copyright 2015 David Snyder # Apache 2.0. # # Given a trials and scores file, this script # prepares input for the binary compute-eer. import sys trials = open(sys.argv[1], 'r').readlines() scores = open(sys.argv[2], 'r').readlines() spkrutt2target = {} for line in trials: spkr, utt, target = line.strip().split...
29.411765
46
0.704
75492019d9339192f36d762b6b976df812545e3d
49,224
py
Python
avalon/tools/sceneinventory/app.py
Yowza-Animation/avalon-core
0a423bfb6c92e8c06dcf5cc61ba04494fb0bac85
[ "MIT" ]
null
null
null
avalon/tools/sceneinventory/app.py
Yowza-Animation/avalon-core
0a423bfb6c92e8c06dcf5cc61ba04494fb0bac85
[ "MIT" ]
null
null
null
avalon/tools/sceneinventory/app.py
Yowza-Animation/avalon-core
0a423bfb6c92e8c06dcf5cc61ba04494fb0bac85
[ "MIT" ]
null
null
null
import os import sys import logging import collections from functools import partial from ...vendor.Qt import QtWidgets, QtCore from ...vendor import qtawesome from ... import io, api, style from ...lib import MasterVersionType from .. import lib as tools_lib from ..delegates import VersionDelegate from .proxy impor...
33.372203
79
0.587518
f48e09ced74f2cc946611be949203f9017b09328
5,119
py
Python
resources/lib/utils/esn.py
Doctor-Eggs/plugin.video.netflix
1372fd29c63ae4b933dcf7b2643c4483b4bda70b
[ "MIT" ]
null
null
null
resources/lib/utils/esn.py
Doctor-Eggs/plugin.video.netflix
1372fd29c63ae4b933dcf7b2643c4483b4bda70b
[ "MIT" ]
null
null
null
resources/lib/utils/esn.py
Doctor-Eggs/plugin.video.netflix
1372fd29c63ae4b933dcf7b2643c4483b4bda70b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Copyright (C) 2017 Sebastian Golasch (plugin.video.netflix) Copyright (C) 2020 Stefano Gottardo - @CastagnaIT (original implementation module) ESN Generator SPDX-License-Identifier: MIT See LICENSES/MIT.md for more information. """ from __future__ import absolute_import,...
44.513043
111
0.605587
41e135b1a605b14d94fdba3a7fb3b57ec557166f
658
py
Python
parser/team08/Tytus_SQLPARSER_G8/Instrucciones/DateTimeTypes/CurrentTime.py
18SebastianVC/tytus
2b22f4339356b6cf46e3235a5219f68e5ba5573b
[ "MIT" ]
1
2021-01-09T05:32:35.000Z
2021-01-09T05:32:35.000Z
parser/team08/Tytus_SQLPARSER_G8/Instrucciones/DateTimeTypes/CurrentTime.py
XiomRB/tytus
0873e4bdce5c110bee6ef2aa98240be6a93ae024
[ "MIT" ]
null
null
null
parser/team08/Tytus_SQLPARSER_G8/Instrucciones/DateTimeTypes/CurrentTime.py
XiomRB/tytus
0873e4bdce5c110bee6ef2aa98240be6a93ae024
[ "MIT" ]
null
null
null
from Instrucciones.TablaSimbolos.Instruccion import Instruccion from Instrucciones.TablaSimbolos.Simbolo import Simbolo from datetime import datetime class CurrentTime(Instruccion): def __init__(self, id, operacion, id2, linea, columna): Instruccion.__init__(self,None,linea,columna) def eje...
29.909091
84
0.68997
f3f6297c26c2c44a0fbb7b76fe5f327ee5729b95
20,327
py
Python
UI_SampleGeneration.py
yanzhaochang/ELSO
0674cd62e2e87a1ea31da8cab9d0613bae273887
[ "MIT" ]
null
null
null
UI_SampleGeneration.py
yanzhaochang/ELSO
0674cd62e2e87a1ea31da8cab9d0613bae273887
[ "MIT" ]
null
null
null
UI_SampleGeneration.py
yanzhaochang/ELSO
0674cd62e2e87a1ea31da8cab9d0613bae273887
[ "MIT" ]
null
null
null
from PyQt5 import QtCore, QtGui, QtWidgets from PyQt5.QtWidgets import * from PyQt5.QtCore import * from PyQt5.QtGui import * import matplotlib.pyplot as plt plt.rcParams['font.sans-serif'] = ['SimHei'] plt.rcParams['axes.unicode_minus'] = False import csv import numpy as np import pandas as pd from s...
43.902808
143
0.645004
cd5907d633d60256191181232582a1e33099ae3e
1,144
py
Python
djaloha/views.py
ljean/djaloha
479230d837264e03d34b537ec938d606a43ba8b1
[ "BSD-3-Clause" ]
null
null
null
djaloha/views.py
ljean/djaloha
479230d837264e03d34b537ec938d606a43ba8b1
[ "BSD-3-Clause" ]
null
null
null
djaloha/views.py
ljean/djaloha
479230d837264e03d34b537ec938d606a43ba8b1
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """view for aloha editor""" from django.shortcuts import render_to_response from django.template import RequestContext from djaloha import settings from djaloha.utils import get_model def aloha_init(request): """ Build the javascript file which is initializing the aloha-editor Ru...
30.105263
87
0.631993
bca617a30067dd0072076e17f24c16fb01409b6b
3,141
py
Python
app/auth/routes.py
aliayar/160chars
e39b9f2af677547b6cdba4ca30c9e86c03fcd4e3
[ "MIT" ]
1
2021-01-15T16:17:57.000Z
2021-01-15T16:17:57.000Z
app/auth/routes.py
aliayar/160chars
e39b9f2af677547b6cdba4ca30c9e86c03fcd4e3
[ "MIT" ]
null
null
null
app/auth/routes.py
aliayar/160chars
e39b9f2af677547b6cdba4ca30c9e86c03fcd4e3
[ "MIT" ]
null
null
null
from flask import render_template, redirect, url_for, flash, request from werkzeug.urls import url_parse from flask_login import login_user, logout_user, current_user from app import db from app.auth import bp from app.auth.forms import LoginForm, RegistrationForm, \ ResetPasswordRequestForm, ResetPasswordForm from...
39.759494
81
0.685132
597c8f7cc13ba608da35dabf314ab4ed51d98902
2,061
py
Python
Sketches/MPS/OpenGLPygame.py
sparkslabs/kamaelia_orig
24b5f855a63421a1f7c6c7a35a7f4629ed955316
[ "Apache-2.0" ]
12
2015-10-20T10:22:01.000Z
2021-07-19T10:09:44.000Z
Sketches/MPS/OpenGLPygame.py
sparkslabs/kamaelia_orig
24b5f855a63421a1f7c6c7a35a7f4629ed955316
[ "Apache-2.0" ]
2
2015-10-20T10:22:55.000Z
2017-02-13T11:05:25.000Z
Sketches/MPS/OpenGLPygame.py
sparkslabs/kamaelia_orig
24b5f855a63421a1f7c6c7a35a7f4629ed955316
[ "Apache-2.0" ]
6
2015-03-09T12:51:59.000Z
2020-03-01T13:06:21.000Z
#!/usr/bin/python import Axon from Kamaelia.Chassis.Pipeline import Pipeline from Kamaelia.UI.OpenGL.OpenGLDisplay import OpenGLDisplay from Kamaelia.UI.OpenGL.PygameWrapper import PygameWrapper from Kamaelia.UI.OpenGL.MatchedTranslationInteractor import MatchedTranslationInteractor from Kamaelia.UI.PygameDisplay impo...
28.625
88
0.745754
9aabd867edfeb4ca7edc6f32b7e1d8dba212eb02
103
py
Python
APIstuff/config.py
teomotun/Restaurant-Plug
1ecaab7bb60706ec0eca96c2f3efb31276c536e7
[ "Apache-2.0" ]
null
null
null
APIstuff/config.py
teomotun/Restaurant-Plug
1ecaab7bb60706ec0eca96c2f3efb31276c536e7
[ "Apache-2.0" ]
null
null
null
APIstuff/config.py
teomotun/Restaurant-Plug
1ecaab7bb60706ec0eca96c2f3efb31276c536e7
[ "Apache-2.0" ]
null
null
null
google_key = "AIzaSyDeJW7z55_Mj8dcPpo8rIPFiNX7SqOWLS0" weather_key = "bf0eb865eaf1ab307e6b534d32a3da6f"
51.5
54
0.893204
8391c34775b720608f3b92bdff5beb2233dc5888
3,326
py
Python
script.py
mahirhiro/facebook-messenger-script
195aeeba4c7fc3cbfe39f66bfc67a814426d36a4
[ "MIT" ]
null
null
null
script.py
mahirhiro/facebook-messenger-script
195aeeba4c7fc3cbfe39f66bfc67a814426d36a4
[ "MIT" ]
null
null
null
script.py
mahirhiro/facebook-messenger-script
195aeeba4c7fc3cbfe39f66bfc67a814426d36a4
[ "MIT" ]
null
null
null
from selenium import webdriver from selenium.common import exceptions from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC USERNAME = 'Enter your FB username here' PASSWORD = 'Enter your FB password here' PA...
31.377358
110
0.680698
3a46c2078b0b03f6487a3f3921943f046f0bc93b
761
py
Python
workspace/od_pipeline.py
cbekar/ML_HW1
18844bbab20572b5cd14de142a60a65a508ce180
[ "MIT" ]
null
null
null
workspace/od_pipeline.py
cbekar/ML_HW1
18844bbab20572b5cd14de142a60a65a508ce180
[ "MIT" ]
null
null
null
workspace/od_pipeline.py
cbekar/ML_HW1
18844bbab20572b5cd14de142a60a65a508ce180
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd from sklearn.linear_model import LogisticRegression from sklearn.model_selection import train_test_split # NOTE: Make sure that the class is labeled 'target' in the data file tpot_data = pd.read_csv('PATH/TO/DATA/FILE', sep='COLUMN_SEPARATOR', dtype=np.float64) features = tpot_da...
44.764706
86
0.802891
7384528cb6ae2b8dfe13f847ff4f285a57a4ee91
466
py
Python
chapter_02/01_personal_Information.py
SergeHall/Tony-Gaddis-Python-4th
24e7c70fbd196ff531a5e4e7f6f5021c4b4177ba
[ "MIT" ]
2
2021-04-07T03:26:37.000Z
2021-07-26T07:38:49.000Z
chapter_02/01_personal_Information.py
SergeHall/Tony-Gaddis-Python-4th
24e7c70fbd196ff531a5e4e7f6f5021c4b4177ba
[ "MIT" ]
null
null
null
chapter_02/01_personal_Information.py
SergeHall/Tony-Gaddis-Python-4th
24e7c70fbd196ff531a5e4e7f6f5021c4b4177ba
[ "MIT" ]
null
null
null
# Personal Information name=input("Please enter your name: ") address=input("Please enter your address with city, state and ZIP code: ") tel=input("Please enter your phone number: ") col_major=input("Please enter your college major: ") print() # Show the information that is provided by user. print("Your information ...
27.411765
74
0.73176
3dd644fe16353619eaaf5111061dcbbbf8c48513
71
py
Python
settings/project/test.py
hoatle/django-boilerplate
12a4ac7d663196a8a860f51ca34039bc5c00bad6
[ "BSD-3-Clause" ]
null
null
null
settings/project/test.py
hoatle/django-boilerplate
12a4ac7d663196a8a860f51ca34039bc5c00bad6
[ "BSD-3-Clause" ]
null
null
null
settings/project/test.py
hoatle/django-boilerplate
12a4ac7d663196a8a860f51ca34039bc5c00bad6
[ "BSD-3-Clause" ]
null
null
null
""" test mode specific project settings """ from settings.test import *
17.75
35
0.746479
4b559265f3547c8e91e91a4bf050e0fd88c31cc5
3,322
py
Python
award/views.py
Eric-Gona/Awards
8fb97c3ab87f1abdb6e96c7ef787ef7308faa79a
[ "MIT" ]
null
null
null
award/views.py
Eric-Gona/Awards
8fb97c3ab87f1abdb6e96c7ef787ef7308faa79a
[ "MIT" ]
null
null
null
award/views.py
Eric-Gona/Awards
8fb97c3ab87f1abdb6e96c7ef787ef7308faa79a
[ "MIT" ]
null
null
null
from django.shortcuts import render, redirect, get_object_or_404 from django.contrib.auth.decorators import login_required from .models import Post, Rating from .forms import ProfileForm, NewPostForm, ProjectRatingForm from django.contrib.auth.models import User from django.db.models import Avg from django.contrib.auth...
33.897959
107
0.670981
c3034c2743b1b333ed5755cc36bb7c4cb6283208
10,061
py
Python
src/python/tensorflow_cloud/tuner/cloud_fit_remote.py
haifeng-jin/cloud
78f4ebe1273dbd71bba8794b553caffee0a73f47
[ "Apache-2.0" ]
null
null
null
src/python/tensorflow_cloud/tuner/cloud_fit_remote.py
haifeng-jin/cloud
78f4ebe1273dbd71bba8794b553caffee0a73f47
[ "Apache-2.0" ]
null
null
null
src/python/tensorflow_cloud/tuner/cloud_fit_remote.py
haifeng-jin/cloud
78f4ebe1273dbd71bba8794b553caffee0a73f47
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
40.568548
115
0.662857
acbaa4b162aecbb38ba3904e4e989ad28ff87404
425
py
Python
accounts/forms.py
julesc00/crm
ee2264ec2065fed67119eda4a08ab5b985912fcf
[ "MIT" ]
null
null
null
accounts/forms.py
julesc00/crm
ee2264ec2065fed67119eda4a08ab5b985912fcf
[ "MIT" ]
null
null
null
accounts/forms.py
julesc00/crm
ee2264ec2065fed67119eda4a08ab5b985912fcf
[ "MIT" ]
null
null
null
from django.forms import ModelForm from django.contrib.auth.forms import UserCreationForm from django.contrib.auth.models import User from django import forms from .models import Order class OrderForm(ModelForm): class Meta: model = Order fields = "__all__" class CreateUserForm(UserCreationForm...
22.368421
64
0.710588
bde23a8739b869acb0d819d10c6b46f72452ae01
17,280
py
Python
old/01 extract.py
300000kms/mapModern
006d6f81e75fac41a67c0b07c6fd76ea50902b98
[ "Apache-2.0" ]
null
null
null
old/01 extract.py
300000kms/mapModern
006d6f81e75fac41a67c0b07c6fd76ea50902b98
[ "Apache-2.0" ]
null
null
null
old/01 extract.py
300000kms/mapModern
006d6f81e75fac41a67c0b07c6fd76ea50902b98
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' lee la db -read the db bib_all : listado biblios donde está la obra bib_ed : listado biblios donde esta la edicion bib_all_ne : numero de ediciones bib_all_nb : numero de bibliotecas donde esta bib_ed_nb : numero de biblios de esta edicion bib_ed_bib : listado de biblios de esta edicion ...
65.454545
10,879
0.726968
553e24aa76bcf557aa9cf391a51c60a6584958de
2,804
py
Python
cno/copy_out_by_voice.py
CherokeeLanguage/cherokee-audio-data
a10b7b38c0c1b56338561c917cef18a078ca573c
[ "CC0-1.0", "MIT" ]
2
2021-09-15T19:41:01.000Z
2022-01-12T17:57:08.000Z
cno/copy_out_by_voice.py
CherokeeLanguage/cherokee-audio-data
a10b7b38c0c1b56338561c917cef18a078ca573c
[ "CC0-1.0", "MIT" ]
1
2021-10-08T18:06:29.000Z
2021-10-08T18:48:44.000Z
cno/copy_out_by_voice.py
CherokeeLanguage/cherokee-audio-data
a10b7b38c0c1b56338561c917cef18a078ca573c
[ "CC0-1.0", "MIT" ]
null
null
null
#!/usr/bin/env python3 import os import pathlib import re import sys import unicodedata as ud from builtins import list from shutil import copy2 from shutil import rmtree include_o_form: bool = False if __name__ == "__main__": skip_syllabary: bool = False only_syllabary: bool = True if skip_syllabary an...
31.155556
96
0.544223
2bc5e4715668dbd81dc2dbe3b9c79324b54c3e88
1,468
py
Python
api_tests/logs/views/test_log_contributors.py
sf2ne/Playground
95b2d222d7ac43baca0249acbfc34e043d6a95b3
[ "Apache-2.0" ]
null
null
null
api_tests/logs/views/test_log_contributors.py
sf2ne/Playground
95b2d222d7ac43baca0249acbfc34e043d6a95b3
[ "Apache-2.0" ]
13
2020-03-24T15:29:41.000Z
2022-03-11T23:15:28.000Z
api_tests/logs/views/test_log_contributors.py
sf2ne/Playground
95b2d222d7ac43baca0249acbfc34e043d6a95b3
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import httplib as http from nose.tools import * # noqa from test_log_nodes_list import LogsTestCase class TestLogContributors(LogsTestCase): def test_log_detail_private_logged_in_contributor_can_access_logs(self): res = self.app.get(self.private_log_contribs_url, auth=self.user....
41.942857
102
0.737057
769c8b417c93e89a83267082b77e16f7b634ec97
1,512
py
Python
mc2/wsgi.py
praekeltfoundation/mc2
5367a8aed309fade0f17bc72efa099b0afc76aa7
[ "BSD-2-Clause" ]
4
2016-03-09T00:51:17.000Z
2017-10-05T23:54:00.000Z
mc2/wsgi.py
praekeltfoundation/mc2
5367a8aed309fade0f17bc72efa099b0afc76aa7
[ "BSD-2-Clause" ]
131
2015-11-19T16:45:23.000Z
2018-07-24T09:36:08.000Z
mc2/wsgi.py
praekeltfoundation/mc2
5367a8aed309fade0f17bc72efa099b0afc76aa7
[ "BSD-2-Clause" ]
2
2016-07-30T15:36:23.000Z
2017-09-18T12:40:11.000Z
""" WSGI config for skeleton project. This module contains the WSGI application used by Django's development server and any production WSGI deployments. It should expose a module-level variable named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover this application via the ``WSGI_APPLICATION``...
42
79
0.806878
3a555a3a1a9a30690f5ce8aae1071880cc5c4139
2,005
py
Python
test/Java/JAVACFLAGS.py
ShatQQ/scons
f122b1ab777ad171cb670f462c71dd72ef40bb96
[ "MIT" ]
null
null
null
test/Java/JAVACFLAGS.py
ShatQQ/scons
f122b1ab777ad171cb670f462c71dd72ef40bb96
[ "MIT" ]
null
null
null
test/Java/JAVACFLAGS.py
ShatQQ/scons
f122b1ab777ad171cb670f462c71dd72ef40bb96
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # MIT License # # Copyright The SCons Foundation # # 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 us...
28.642857
80
0.737656
002f571a5172ac85970e7028dffc3b9040dffae8
3,746
py
Python
src/ndn/security/tpm/tpm_file.py
Kjwon15/python-ndn
4d1c827958bce1caeacc16f72a47ee8c90db1d6e
[ "Apache-2.0" ]
null
null
null
src/ndn/security/tpm/tpm_file.py
Kjwon15/python-ndn
4d1c827958bce1caeacc16f72a47ee8c90db1d6e
[ "Apache-2.0" ]
null
null
null
src/ndn/security/tpm/tpm_file.py
Kjwon15/python-ndn
4d1c827958bce1caeacc16f72a47ee8c90db1d6e
[ "Apache-2.0" ]
null
null
null
# ----------------------------------------------------------------------------- # Copyright (C) 2019-2020 Xinyu Ma # # This file is part of python-ndn. # # 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 Li...
39.851064
113
0.635077
920499d91b213c4a612623f8dcb248a5efe49dfa
518
py
Python
HPC/job_arrays/generate_datasets.py
CogComNeuroSci/parallel_computing
cd995f783169f4df4753cb35bac49bb805903d83
[ "CC0-1.0" ]
null
null
null
HPC/job_arrays/generate_datasets.py
CogComNeuroSci/parallel_computing
cd995f783169f4df4753cb35bac49bb805903d83
[ "CC0-1.0" ]
null
null
null
HPC/job_arrays/generate_datasets.py
CogComNeuroSci/parallel_computing
cd995f783169f4df4753cb35bac49bb805903d83
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ @author: Pieter Huycke email: pieter.huycke@ugent.be GitHub: phuycke """ #%% import numpy as np import os #%% # make the required folders W_DIR = r"/data/gent/435/vsc43506/job_arrays" [os.makedirs(os.path.join(W_DIR, f)) for f in ["input", "output"] if not os.p...
22.521739
116
0.671815
7727342447537ee5cc16bae72c12b32f1db5dc54
2,064
py
Python
pyaz/backup/vault/__init__.py
py-az-cli/py-az-cli
9a7dc44e360c096a5a2f15595353e9dad88a9792
[ "MIT" ]
null
null
null
pyaz/backup/vault/__init__.py
py-az-cli/py-az-cli
9a7dc44e360c096a5a2f15595353e9dad88a9792
[ "MIT" ]
null
null
null
pyaz/backup/vault/__init__.py
py-az-cli/py-az-cli
9a7dc44e360c096a5a2f15595353e9dad88a9792
[ "MIT" ]
1
2022-02-03T09:12:01.000Z
2022-02-03T09:12:01.000Z
''' Online storage entity in Azure used to hold data such as backup copies, recovery points and backup policies. ''' from ... pyaz_utils import _call_az from . import backup_properties, encryption, identity def create(location, name, resource_group, tags=None): ''' Create a new Recovery Services vault. R...
35.586207
161
0.702519
5b753b3955f7da59479b464e5e464a8a033a827e
1,466
py
Python
setup.py
pokey/blind_files
43ceb542848bf32945a7fbe55460b8a3308ef690
[ "MIT" ]
null
null
null
setup.py
pokey/blind_files
43ceb542848bf32945a7fbe55460b8a3308ef690
[ "MIT" ]
null
null
null
setup.py
pokey/blind_files
43ceb542848bf32945a7fbe55460b8a3308ef690
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """The setup script.""" from os import path from setuptools import find_packages, setup requirements = [ 'Click>=6.0', "pyahocorasick>=1.1.8", ] setup_requirements = [ ] test_requirements = [ 'pyhamcrest>=1.9.0', ] # read the contents of your README fil...
24.433333
73
0.658254
3247d210cf98eefd28e4a83e65508a3546822063
15,880
py
Python
pyrex/internal_functions.py
abigailbishop/pyrex
10ba2e9f4c8820f4fcf5f00bd866927dacb0b2b5
[ "MIT" ]
6
2018-06-19T16:01:35.000Z
2020-05-21T20:02:53.000Z
pyrex/internal_functions.py
abigailbishop/pyrex
10ba2e9f4c8820f4fcf5f00bd866927dacb0b2b5
[ "MIT" ]
4
2021-09-02T17:19:25.000Z
2022-03-08T17:28:03.000Z
pyrex/internal_functions.py
abigailbishop/pyrex
10ba2e9f4c8820f4fcf5f00bd866927dacb0b2b5
[ "MIT" ]
5
2018-01-19T14:49:16.000Z
2021-01-21T12:34:59.000Z
""" Helper functions and classes for use in PyREx modules. This module is intended as a container for functions, typically used in more than one PyREx module, which are not physics-motivated and are instead used mainly to clean up code. Functions and classes in this module may also be computer-science-motivated struct...
32.080808
84
0.610642
e0eb87dcea1ebade87b66598af869e0751e8dc13
31,191
py
Python
amr2seq/data_prep/rebuild_conceptid.py
masterkeywikz/seq2graph
745cb09f10c67a77c0ef517f5d58ac45f2ade09d
[ "MIT" ]
10
2017-02-25T17:26:15.000Z
2022-02-23T06:36:54.000Z
amr2seq/data_prep/rebuild_conceptid.py
masterkeywikz/seq2graph
745cb09f10c67a77c0ef517f5d58ac45f2ade09d
[ "MIT" ]
null
null
null
amr2seq/data_prep/rebuild_conceptid.py
masterkeywikz/seq2graph
745cb09f10c67a77c0ef517f5d58ac45f2ade09d
[ "MIT" ]
8
2016-12-22T00:36:33.000Z
2021-05-19T17:55:59.000Z
#!/usr/bin/python import sys import time import pickle import os import cPickle import alignment import hypergraph from fragment_hypergraph import FragmentHGNode, FragmentHGEdge from amr_graph import * from amr_utils import * import logger import gflags from HRGSample import * from rule import Rule, retrieve_edges impo...
37.761501
156
0.552499
443821799d30a1f0f0b0335bd733d6acd8b3b465
76
py
Python
cement/cli/templates/generate/project/{{ label }}/core/exc.py
tomekr/cement
fece8629c48bcd598fd61d8aa7457a5df4c4f831
[ "BSD-3-Clause" ]
826
2015-01-09T13:23:35.000Z
2022-03-18T01:19:40.000Z
cement/cli/templates/generate/project/{{ label }}/core/exc.py
tomekr/cement
fece8629c48bcd598fd61d8aa7457a5df4c4f831
[ "BSD-3-Clause" ]
316
2015-01-14T10:35:22.000Z
2022-03-08T17:18:10.000Z
cement/cli/templates/generate/project/{{ label }}/core/exc.py
tomekr/cement
fece8629c48bcd598fd61d8aa7457a5df4c4f831
[ "BSD-3-Clause" ]
112
2015-01-10T15:04:26.000Z
2022-03-16T08:11:58.000Z
class {{ class_name }}Error(Exception): """Generic errors.""" pass
15.2
39
0.605263
ead9e83d3da562487ccfefb070fc87440184935e
122,582
py
Python
ambari-server/src/main/resources/stacks/BigInsights/4.0/stack-advisor/stack_advisor_25.py
Syndra/Ambari-source
717526b2bf3636622212b14de0d3d298a20c7370
[ "Apache-2.0" ]
5
2017-07-20T11:15:10.000Z
2020-04-16T15:42:55.000Z
ambari-server/src/main/resources/stacks/BigInsights/4.0/stack-advisor/stack_advisor_25.py
Syndra/Ambari-source
717526b2bf3636622212b14de0d3d298a20c7370
[ "Apache-2.0" ]
8
2020-06-18T17:31:19.000Z
2022-03-02T08:32:03.000Z
ambari-server/src/main/resources/stacks/BigInsights/4.0/stack-advisor/stack_advisor_25.py
Syndra/Ambari-source
717526b2bf3636622212b14de0d3d298a20c7370
[ "Apache-2.0" ]
12
2017-05-17T09:48:01.000Z
2021-08-05T19:01:25.000Z
#!/usr/bin/env ambari-python-wrap """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the...
63.186598
248
0.712625
ce6c6187e82755e6fd7dfd47a5655ff4f0f5da37
1,127
py
Python
examples/Python3/demo3.py
dm8tbr/snowboy
10954fee1a75497d30b2bc6b0e68f162a26a7693
[ "Apache-2.0" ]
null
null
null
examples/Python3/demo3.py
dm8tbr/snowboy
10954fee1a75497d30b2bc6b0e68f162a26a7693
[ "Apache-2.0" ]
null
null
null
examples/Python3/demo3.py
dm8tbr/snowboy
10954fee1a75497d30b2bc6b0e68f162a26a7693
[ "Apache-2.0" ]
null
null
null
import sys import wave from snowboy import snowboydecoder # Demo code for detecting hotword in a .wav file # Example Usage: # $ python demo3.py resources/snowboy.wav resources/models/snowboy.umdl # Should print: # Hotword Detected! # # $ python demo3.py resources/ding.wav resources/models/snowboy.umdl # Should pri...
26.833333
98
0.733807
db8b722acee13bd701c7591cb28db2deaca19d16
9,064
py
Python
beyond/orbits/man.py
greck2908/beyond
334a37202a7138050e46d97f719f81a4350987b5
[ "MIT" ]
4
2016-05-24T21:33:19.000Z
2016-10-14T22:33:55.000Z
beyond/orbits/man.py
greck2908/beyond
334a37202a7138050e46d97f719f81a4350987b5
[ "MIT" ]
19
2016-05-23T09:34:41.000Z
2017-03-08T21:21:31.000Z
beyond/orbits/man.py
galactics/space-api
334a37202a7138050e46d97f719f81a4350987b5
[ "MIT" ]
null
null
null
import logging import numpy as np from abc import ABCMeta, abstractmethod from ..frames.local import to_local, to_tnw log = logging.getLogger(__name__) class Man(metaclass=ABCMeta): """Abstract Maneuver class""" @abstractmethod def check(self): pass class ImpulsiveMan(Man): """Impulsive m...
30.518519
121
0.555163
fc5f474d05ff88e0b52cd323366aee23552b00a3
197
py
Python
manabi/apps/subscriptions/tests.py
aehlke/manabi
1dfdd4ecb9c1214b6a70268be0dcfeda9da8754b
[ "MIT" ]
14
2015-10-03T07:34:28.000Z
2021-09-20T07:10:29.000Z
manabi/apps/subscriptions/tests.py
aehlke/manabi
1dfdd4ecb9c1214b6a70268be0dcfeda9da8754b
[ "MIT" ]
23
2019-10-25T08:47:23.000Z
2022-01-30T02:00:45.000Z
manabi/apps/subscriptions/tests.py
aehlke/manabi
1dfdd4ecb9c1214b6a70268be0dcfeda9da8754b
[ "MIT" ]
7
2016-10-04T08:10:36.000Z
2021-09-20T07:10:33.000Z
from manabi.test_helpers import ManabiTestCase class SubscriptionStatusTest(ManabiTestCase): def test_anonymous_user(self): self.assertFalse(self.api.subscription_status()['active'])
28.142857
66
0.791878
9e94b36c97a7d24464decd3775af4a3b89664de1
18,432
py
Python
controller/api/views.py
jannispl/deis
f1758c2be8f5bc8a4335f3168c5df9cacbd958d3
[ "Apache-2.0" ]
null
null
null
controller/api/views.py
jannispl/deis
f1758c2be8f5bc8a4335f3168c5df9cacbd958d3
[ "Apache-2.0" ]
null
null
null
controller/api/views.py
jannispl/deis
f1758c2be8f5bc8a4335f3168c5df9cacbd958d3
[ "Apache-2.0" ]
null
null
null
""" RESTful view classes for presenting Deis API objects. """ from __future__ import absolute_import from __future__ import unicode_literals from django.conf import settings from django.contrib.auth.models import AnonymousUser, User from django.core.exceptions import ValidationError from django.http import Http404 fr...
37.848049
93
0.64681
5f81d2ca67ae3a4638618d20ebae9b0693e8d4be
1,825
py
Python
src/main.py
RLogik/phpytex
4e422a07ec23b4ade5263db499318b3e2c75f1f9
[ "MIT" ]
null
null
null
src/main.py
RLogik/phpytex
4e422a07ec23b4ade5263db499318b3e2c75f1f9
[ "MIT" ]
8
2021-08-24T12:27:02.000Z
2021-10-14T07:50:12.000Z
src/main.py
RLogik/phpytex
4e422a07ec23b4ade5263db499318b3e2c75f1f9
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # IMPORTS # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ import os; import sys; sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))); from src.core.log imp...
32.017544
80
0.458082
4e1b7217499d0e3408d8e07b9b343fccbf9c31d4
3,051
py
Python
test/vanilla/version-tolerant/Expected/AcceptanceTests/IncorrectErrorResponseVersionTolerant/incorrecterrorresponseversiontolerant/_incorrect_returned_error_model.py
msyyc/autorest.python
91aa86f51d5c43c10ead5d51ac102618d23e3a21
[ "MIT" ]
null
null
null
test/vanilla/version-tolerant/Expected/AcceptanceTests/IncorrectErrorResponseVersionTolerant/incorrecterrorresponseversiontolerant/_incorrect_returned_error_model.py
msyyc/autorest.python
91aa86f51d5c43c10ead5d51ac102618d23e3a21
[ "MIT" ]
null
null
null
test/vanilla/version-tolerant/Expected/AcceptanceTests/IncorrectErrorResponseVersionTolerant/incorrecterrorresponseversiontolerant/_incorrect_returned_error_model.py
msyyc/autorest.python
91aa86f51d5c43c10ead5d51ac102618d23e3a21
[ "MIT" ]
1
2022-03-28T08:58:03.000Z
2022-03-28T08:58:03.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
39.115385
108
0.669617
7cbcbfb4736ad20eaca2eaa4ec8d047716636682
11,204
py
Python
_package/xms/grid/geometry/geometry.py
kwryankrattiger/xmsgrid
a7b0058b7ae783db37638f83433cf7127efbcea4
[ "BSD-2-Clause" ]
1
2018-07-19T14:53:52.000Z
2018-07-19T14:53:52.000Z
_package/xms/grid/geometry/geometry.py
kwryankrattiger/xmsgrid
a7b0058b7ae783db37638f83433cf7127efbcea4
[ "BSD-2-Clause" ]
11
2018-10-09T12:39:24.000Z
2022-03-16T18:16:27.000Z
_package/xms/grid/geometry/geometry.py
kwryankrattiger/xmsgrid
a7b0058b7ae783db37638f83433cf7127efbcea4
[ "BSD-2-Clause" ]
2
2020-09-24T22:38:54.000Z
2021-04-14T21:05:34.000Z
from .. import _xmsgrid geometry = _xmsgrid.geometry def point_in_polygon_2d(polygon, point): """Check whether a point is inside, outside, or on a polygon. *DON'T* repeat the first point at the end of the polygon list. Points are represented as (x, y, z) triples. Args: polygon: ...
32.288184
115
0.64834
9733b91deca66eb0837a5957ebc4929689ce88f2
532
py
Python
setup.py
rs2/pyviz
5f1b09f66eb96f8eb4c7b40623b4159155075ea9
[ "BSD-3-Clause" ]
1
2020-12-19T20:05:10.000Z
2020-12-19T20:05:10.000Z
setup.py
rs2/pyviz
5f1b09f66eb96f8eb4c7b40623b4159155075ea9
[ "BSD-3-Clause" ]
null
null
null
setup.py
rs2/pyviz
5f1b09f66eb96f8eb4c7b40623b4159155075ea9
[ "BSD-3-Clause" ]
null
null
null
from setuptools import setup import os, sys, shutil import pyct.build if __name__=="__main__": # TODO: hope to eliminate the examples handling from here # (i.e. all lines except setup()), moving it to pyct example_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), ...
29.555556
75
0.650376
6a5b21bfa93c263f3efcd6d0c6ac92f74c77db96
1,077
py
Python
users/migrations/0011_auto_20210114_2000.py
Yuri-Lima/BLOG.Treta.News
1fbc4eb305b0e5b0008dd638a5ca14a3928de731
[ "MIT" ]
1
2021-02-13T00:04:40.000Z
2021-02-13T00:04:40.000Z
users/migrations/0011_auto_20210114_2000.py
Yuri-Lima/BLOG.Treta.News
1fbc4eb305b0e5b0008dd638a5ca14a3928de731
[ "MIT" ]
32
2021-01-29T20:42:31.000Z
2021-04-05T18:25:51.000Z
users/migrations/0011_auto_20210114_2000.py
Yuri-Lima/Yuri-Lima
1fbc4eb305b0e5b0008dd638a5ca14a3928de731
[ "MIT" ]
null
null
null
# Generated by Django 3.1.5 on 2021-01-14 20:00 import django.contrib.auth.validators from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0010_auto_20210114_1953'), ] operations = [ migrations.AlterField( model_name='us...
35.9
317
0.636955
c1409307de40b2652cbfcf54268da336e8f9fdd9
3,422
py
Python
container_service_extension/client/system_commands.py
biyiklioglu/container-service-extension
7974a485b7242432d2f4485dbb78c340e5929c5e
[ "Apache-2.0" ]
null
null
null
container_service_extension/client/system_commands.py
biyiklioglu/container-service-extension
7974a485b7242432d2f4485dbb78c340e5929c5e
[ "Apache-2.0" ]
null
null
null
container_service_extension/client/system_commands.py
biyiklioglu/container-service-extension
7974a485b7242432d2f4485dbb78c340e5929c5e
[ "Apache-2.0" ]
null
null
null
# container-service-extension # Copyright (c) 2020 VMware, Inc. All Rights Reserved. # SPDX-License-Identifier: BSD-2-Clause\ import click from vcd_cli.utils import stderr from vcd_cli.utils import stdout from container_service_extension.client.system import System import container_service_extension.client.utils as cl...
33.223301
104
0.704851
7249e6911ca735e49fd22d14aca0ee9dd9cd61d3
36,934
py
Python
octavia/common/config.py
sapcc/octavia
1714d612f3416b96a195f941e526b0146daebce4
[ "Apache-2.0" ]
null
null
null
octavia/common/config.py
sapcc/octavia
1714d612f3416b96a195f941e526b0146daebce4
[ "Apache-2.0" ]
10
2020-09-18T12:17:59.000Z
2022-03-14T15:45:38.000Z
octavia/common/config.py
sapcc/octavia
1714d612f3416b96a195f941e526b0146daebce4
[ "Apache-2.0" ]
null
null
null
# Copyright 2011 VMware, Inc., 2014 A10 Networks # 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 # # ...
46.575032
109
0.59609
a24bfb0deaa140655938040e9b35779c2f457544
5,023
py
Python
neuroanalysis/reader/edfdata.py
ZaneMuir/NeuroAnalysis
7376b9f5aeed2ba283fc09b4239dfeca71660508
[ "MIT" ]
null
null
null
neuroanalysis/reader/edfdata.py
ZaneMuir/NeuroAnalysis
7376b9f5aeed2ba283fc09b4239dfeca71660508
[ "MIT" ]
1
2018-05-01T10:57:50.000Z
2018-05-01T10:57:50.000Z
neuroanalysis/reader/edfdata.py
ZaneMuir/NeuroAnalysis
7376b9f5aeed2ba283fc09b4239dfeca71660508
[ "MIT" ]
null
null
null
""" EDF/EDF+ file manipulation author: Yizhan Miao email: yzmiao@protonmail.com last update: Apr 22 2019 """ import numpy as np from .rawdata import AbstractChannel, RawData class EDFChannel(AbstractChannel): def __init__(self, name, index, notes, frequency, physical_unit, physical_dimensi...
42.567797
130
0.559626
e76f2c499cf7b49a2c30222b634ed614af1d97eb
32
py
Python
helloworld.py
sleepymichael/myfirstgitrepo
49204396afc7c22c0103f823574aa96712a4f45c
[ "MIT" ]
null
null
null
helloworld.py
sleepymichael/myfirstgitrepo
49204396afc7c22c0103f823574aa96712a4f45c
[ "MIT" ]
null
null
null
helloworld.py
sleepymichael/myfirstgitrepo
49204396afc7c22c0103f823574aa96712a4f45c
[ "MIT" ]
null
null
null
print("Hello, Big Blue World!")
16
31
0.6875
4c7b88d03bb96b572af9f365f5dc9fafd67fed20
4,971
py
Python
lesson02/zhanghao/usermanager.py
herrywen-nanj/51reboot
1130c79a360e1b548a6eaad176eb60f8bed22f40
[ "Apache-2.0" ]
null
null
null
lesson02/zhanghao/usermanager.py
herrywen-nanj/51reboot
1130c79a360e1b548a6eaad176eb60f8bed22f40
[ "Apache-2.0" ]
null
null
null
lesson02/zhanghao/usermanager.py
herrywen-nanj/51reboot
1130c79a360e1b548a6eaad176eb60f8bed22f40
[ "Apache-2.0" ]
null
null
null
''' 1. 登录认证; 2. 增删改查和搜索 3.1 增 add 3.2 删 delete 3.3 改 update 3.4 查 list 3.5 搜 find 3. 格式化输出 ''' # 标准模块 import sys # 定义变量 RESULT = [] INIT_FAIL_CNT = 0 MAX_FAIL_CNT = 6 USERINFO = ("51reboot","123456") FIELDS = ['username','age','tel','email'] RESULT.append(FIELDS) user_cnt = [] while INIT_FAIL_CN...
40.414634
166
0.417622
4aa4ef439d47cdca17c55eac39691188f03542fb
5,075
py
Python
video_tools/create_db.py
happyharrycn/vatic_fpv
c2f2cd5f877ceb5b0ca74599d111235b0ca271ef
[ "MIT" ]
6
2017-12-09T03:10:55.000Z
2019-09-15T02:14:26.000Z
video_tools/create_db.py
happyharrycn/vatic_fpv
c2f2cd5f877ceb5b0ca74599d111235b0ca271ef
[ "MIT" ]
2
2017-05-26T21:51:37.000Z
2017-09-06T20:36:46.000Z
video_tools/create_db.py
happyharrycn/vatic_fpv
c2f2cd5f877ceb5b0ca74599d111235b0ca271ef
[ "MIT" ]
null
null
null
"""Scripts for generating a db from trimmed video files""" import argparse import os import glob import numpy as np import math # database (tinydb -> sqlite) import sqlite3 def main(video_dir, output_db, url_prefix, extension='.mp4', pad=0.25): """ The main function for creating a mini database of videos ...
38.740458
84
0.566108
6b3560a718f23d78af5a30e9864a0037292af837
1,894
py
Python
gsoc_application_projects/2020/influenza/model/src/clean.py
Hephaestus12/applications
a7c875ef92324bee32a715ae364a49b1695d8f66
[ "BSD-3-Clause" ]
3
2020-05-14T17:41:25.000Z
2021-01-02T10:47:50.000Z
gsoc_application_projects/2020/influenza/model/src/clean.py
Hephaestus12/applications
a7c875ef92324bee32a715ae364a49b1695d8f66
[ "BSD-3-Clause" ]
4
2020-05-16T02:08:16.000Z
2020-08-31T03:07:37.000Z
gsoc_application_projects/2020/influenza/model/src/clean.py
Hephaestus12/applications
a7c875ef92324bee32a715ae364a49b1695d8f66
[ "BSD-3-Clause" ]
2
2020-05-14T15:26:41.000Z
2020-06-15T16:43:16.000Z
""" @file clean.py @author Tej Sukhatme Data Cleaning. """ from src import config import numpy as np import pandas as pd class Cleaner: def __init__(self): self.df = {} def clean_vector(self, pageviews): for article in pageviews: if pageviews[article] < 0 or np.isnan(page...
36.423077
87
0.526399
7310824d2930db55c0fbd090397dc5135a6b2c9c
2,264
py
Python
tests/sklearn/test_fairadapt.py
IBM/AIF-360
9eae52000c92bbc9279f8ee4bdb7a7c5ac585359
[ "Apache-2.0" ]
982
2018-09-12T17:19:11.000Z
2020-07-13T21:26:24.000Z
tests/sklearn/test_fairadapt.py
IBM/AIF-360
9eae52000c92bbc9279f8ee4bdb7a7c5ac585359
[ "Apache-2.0" ]
109
2018-09-12T20:39:43.000Z
2020-07-09T20:12:00.000Z
tests/sklearn/test_fairadapt.py
IBM/AIF-360
9eae52000c92bbc9279f8ee4bdb7a7c5ac585359
[ "Apache-2.0" ]
335
2018-09-13T15:35:09.000Z
2020-07-06T10:56:12.000Z
import numpy as np import pandas as pd from sklearn.model_selection import train_test_split from aif360.sklearn.datasets import fetch_adult from aif360.sklearn.metrics import statistical_parity_difference from aif360.sklearn.preprocessing import fairadapt X, y, sample_weight = fetch_adult(dropcols=['education', 'cap...
36.516129
81
0.644435
816d1739536111bf08275dfcee2809289893d8a8
2,471
py
Python
openGaussBase/testcase/TOOLS/SERVER_TOOLS/gs_check/Opengauss_Function_Tools_gs_check_Case0026.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
openGaussBase/testcase/TOOLS/SERVER_TOOLS/gs_check/Opengauss_Function_Tools_gs_check_Case0026.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
openGaussBase/testcase/TOOLS/SERVER_TOOLS/gs_check/Opengauss_Function_Tools_gs_check_Case0026.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
""" Copyright (c) 2022 Huawei Technologies Co.,Ltd. openGauss is licensed under Mulan PSL v2. You can use this software according to the terms and conditions of the Mulan PSL v2. You may obtain a copy of Mulan PSL v2 at: http://license.coscl.org.cn/MulanPSL2 THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, W...
33.391892
84
0.654391
5dbc07b8c4c350a0b70cb1b72facdc383f22f77e
2,803
py
Python
convert.py
sandeepjana/yolov3-tf2
c35d51294ebfb6a1a25af6463c888da7afc2d4b8
[ "MIT" ]
null
null
null
convert.py
sandeepjana/yolov3-tf2
c35d51294ebfb6a1a25af6463c888da7afc2d4b8
[ "MIT" ]
null
null
null
convert.py
sandeepjana/yolov3-tf2
c35d51294ebfb6a1a25af6463c888da7afc2d4b8
[ "MIT" ]
null
null
null
from absl import app, flags, logging from absl.flags import FLAGS import numpy as np from yolov3_tf2.models import YoloV3, YoloV3Tiny, YoloV2Lite from yolov3_tf2.utils import load_darknet_weights import tensorflow as tf import cv2 import os from convert_to_pb import convert_to_pb tf_version = tf.__version__.split('.'...
30.802198
88
0.672137
b1af84ef09af3e249781a99c8076e682c5d3fad6
4,522
py
Python
api_project/products/views.py
joshuaochia/Django-API-eComemrce
1243986ceed7545e75e5894f4f518822077fd1a1
[ "MIT" ]
null
null
null
api_project/products/views.py
joshuaochia/Django-API-eComemrce
1243986ceed7545e75e5894f4f518822077fd1a1
[ "MIT" ]
null
null
null
api_project/products/views.py
joshuaochia/Django-API-eComemrce
1243986ceed7545e75e5894f4f518822077fd1a1
[ "MIT" ]
null
null
null
from rest_framework import viewsets, permissions, authentication from . import models, serializers from rest_framework.response import Response from rest_framework.decorators import action from rest_framework.filters import SearchFilter class BaseAttrViewSet(viewsets.ModelViewSet): authentication_classes = (auth...
31.402778
77
0.641088
52ad64d0ddf73722ca67e5bd8c3fd6ca4d15c2b8
52,181
py
Python
tests/test_policy.py
al3pht/cloud-custodian
ce6613d1b716f336384c5e308eee300389e6bf50
[ "Apache-2.0" ]
1
2021-04-27T10:27:35.000Z
2021-04-27T10:27:35.000Z
tests/test_policy.py
al3pht/cloud-custodian
ce6613d1b716f336384c5e308eee300389e6bf50
[ "Apache-2.0" ]
28
2020-09-23T03:56:48.000Z
2021-04-21T19:08:55.000Z
tests/test_policy.py
al3pht/cloud-custodian
ce6613d1b716f336384c5e308eee300389e6bf50
[ "Apache-2.0" ]
1
2022-02-11T07:30:09.000Z
2022-02-11T07:30:09.000Z
# Copyright The Cloud Custodian Authors. # SPDX-License-Identifier: Apache-2.0 from copy import deepcopy from datetime import datetime, timedelta import json import logging import mock import os import shutil import tempfile from c7n import policy, manager from c7n.config import Config from c7n.provider import clouds ...
34.833778
98
0.513252
b6c358bc63e0f098c5a243587d4594e612c48f98
399
py
Python
EXERCICIOS/ex017 - Catetos e hipotenusa.py
Thiagocaldeiraa/PYTHON---estudos
1c35e93b442554b6dd7df164468287ae02b7da02
[ "MIT" ]
null
null
null
EXERCICIOS/ex017 - Catetos e hipotenusa.py
Thiagocaldeiraa/PYTHON---estudos
1c35e93b442554b6dd7df164468287ae02b7da02
[ "MIT" ]
null
null
null
EXERCICIOS/ex017 - Catetos e hipotenusa.py
Thiagocaldeiraa/PYTHON---estudos
1c35e93b442554b6dd7df164468287ae02b7da02
[ "MIT" ]
null
null
null
co = float(input(" Qual o valor do cateto oposto? ")) ca = float(input('Qual o valor do cateto adjacente? ')) hi = (co ** 2 + ca ** 2) ** (1/2) print('a hipotenusa vai medir {:.2f}.'.format(hi)) import math co = float(input('Digite o valor do cateto oposto: ')) ca = float(input('Digite o valor do cateto adjacente: '))...
30.692308
57
0.64411
1632c557484e5743d989bd93255e75843ff25009
1,862
py
Python
ethtx/providers/node/pool.py
damiandennis/ethtx
0597d4a7ee2c85f3f1cc10f28c05e235e8949968
[ "Apache-2.0" ]
null
null
null
ethtx/providers/node/pool.py
damiandennis/ethtx
0597d4a7ee2c85f3f1cc10f28c05e235e8949968
[ "Apache-2.0" ]
null
null
null
ethtx/providers/node/pool.py
damiandennis/ethtx
0597d4a7ee2c85f3f1cc10f28c05e235e8949968
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 DAI Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
37.24
90
0.673469
34469e7256810957bc058bc526e56a5ddd0117a0
410
py
Python
Session2_2019/reverseInteger.py
vedantc6/LCode
43aec4da9cc22ef43e877a16dbee380b98d9089f
[ "MIT" ]
1
2018-09-21T10:51:15.000Z
2018-09-21T10:51:15.000Z
Session2_2019/reverseInteger.py
vedantc6/LCode
43aec4da9cc22ef43e877a16dbee380b98d9089f
[ "MIT" ]
null
null
null
Session2_2019/reverseInteger.py
vedantc6/LCode
43aec4da9cc22ef43e877a16dbee380b98d9089f
[ "MIT" ]
null
null
null
class Solution: def reverse(self, x: int) -> int: sign = 1 minInt = pow(-2, 31) maxInt = pow(2, 31) - 1 if x < 0: sign = -1 x = abs(x) reverse = 0 while x > 0: reverse = reverse*10 + x % 10 x = x // 10 if reverse < ...
22.777778
48
0.414634
86b0e780288b00c2ef74286c762034034b84a62d
7,178
py
Python
examples/integrations/airflow/operators/expectation_operator.py
avanderm/great_expectations
e4619a890700a492441a7ed3cbb9e5abb0953268
[ "Apache-2.0" ]
1
2021-01-10T18:00:06.000Z
2021-01-10T18:00:06.000Z
examples/integrations/airflow/operators/expectation_operator.py
avanderm/great_expectations
e4619a890700a492441a7ed3cbb9e5abb0953268
[ "Apache-2.0" ]
null
null
null
examples/integrations/airflow/operators/expectation_operator.py
avanderm/great_expectations
e4619a890700a492441a7ed3cbb9e5abb0953268
[ "Apache-2.0" ]
null
null
null
import json from pprint import pformat import os from airflow import AirflowException from airflow.hooks.S3_hook import S3Hook from airflow.hooks.base_hook import BaseHook from airflow.hooks.dbapi_hook import DbApiHook from airflow.models import BaseOperator import great_expectations as ge from examples.integrations.a...
41.732558
118
0.676233
d3cb12f0c861982332fcd58e8ad51128ad885f89
886
py
Python
blog/urls.py
FarmCodeGary/InspirationForge
2b78e9c388608ac19ed0ecb114ce5e0cc1f33213
[ "MIT" ]
1
2015-09-16T17:14:36.000Z
2015-09-16T17:14:36.000Z
blog/urls.py
FarmCodeGary/InspirationForge
2b78e9c388608ac19ed0ecb114ce5e0cc1f33213
[ "MIT" ]
null
null
null
blog/urls.py
FarmCodeGary/InspirationForge
2b78e9c388608ac19ed0ecb114ce5e0cc1f33213
[ "MIT" ]
null
null
null
from django.conf.urls import url from . import views, feeds urlpatterns = [ url(r'^(?:page/(?P<page>[0-9]+)/)?$', views.IndexView.as_view(), name='index'), url(r'^(?P<year>[0-9]{4})/(?P<month>[0-9]{1,2})/(?P<slug>[a-z0-9_-]+)/$', views.ArticleView.as_view(), name='article'), url(r'^tag/(?P...
42.190476
77
0.548533
67074fd3244c8c53aabd8d941fd30ac1a7369fc0
855
py
Python
glosowania/migrations/0008_auto_20210227_1500.py
soma115/wikikracja
7715ca1daa4ca09888e1c7389ed5f8a2df29898b
[ "MIT" ]
7
2016-02-21T17:25:54.000Z
2021-10-09T19:36:10.000Z
glosowania/migrations/0008_auto_20210227_1500.py
soma115/wikikracja
7715ca1daa4ca09888e1c7389ed5f8a2df29898b
[ "MIT" ]
19
2020-02-11T23:55:01.000Z
2022-03-31T18:11:56.000Z
glosowania/migrations/0008_auto_20210227_1500.py
soma115/wikikracja
7715ca1daa4ca09888e1c7389ed5f8a2df29898b
[ "MIT" ]
3
2016-01-20T22:34:58.000Z
2020-09-16T07:45:42.000Z
# Generated by Django 3.1 on 2021-02-27 14:00 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('glosowania', '0007_auto_20210207_1214'), ] operations = [ migrations.AlterField( model_name='decyzja', name='args_agai...
35.625
227
0.659649
3ea9045463caeda512f0103fb7956dae768ae8d4
241
py
Python
src/jazzy/utils.py
AstraZeneca/jazzy
d06a5848165d2a256b52b75c3365715da0d36c4d
[ "Apache-2.0" ]
null
null
null
src/jazzy/utils.py
AstraZeneca/jazzy
d06a5848165d2a256b52b75c3365715da0d36c4d
[ "Apache-2.0" ]
null
null
null
src/jazzy/utils.py
AstraZeneca/jazzy
d06a5848165d2a256b52b75c3365715da0d36c4d
[ "Apache-2.0" ]
null
null
null
"""Anything else.""" # src/jazzy/utils.py class JazzyError(Exception): """Raised when Jazzy cannot calculate results.""" pass class KallistoError(Exception): """Raised when something goes wrong inside kallisto.""" pass
16.066667
59
0.684647
5caeebc83b0614b05cddb8b150c02de465ccc3d0
1,582
py
Python
command/test_command.py
eddieir/design_patterns
db2e00761fa218f1144edc4ffe3e5f7a7c28eef9
[ "MIT" ]
null
null
null
command/test_command.py
eddieir/design_patterns
db2e00761fa218f1144edc4ffe3e5f7a7c28eef9
[ "MIT" ]
null
null
null
command/test_command.py
eddieir/design_patterns
db2e00761fa218f1144edc4ffe3e5f7a7c28eef9
[ "MIT" ]
null
null
null
""" The Command Pattern encapsulates a request as an object, thereby letting you parameterized other objects with different requests, queue or log requests, and support undoable operations. """ from command import RemoteController, Light, LightOnCommand, LightOffCommand from command2 import Wizard, Goblin, ShrinkSpell...
25.934426
76
0.728192
00404a16033518e7a733678a40730c36296dae04
8,269
py
Python
src/extra/mlpfordataset.py
Nidhi-kumari/tipr-second-assignment
139197f19c81c731549422b1e5a13c3efd663206
[ "MIT" ]
null
null
null
src/extra/mlpfordataset.py
Nidhi-kumari/tipr-second-assignment
139197f19c81c731549422b1e5a13c3efd663206
[ "MIT" ]
null
null
null
src/extra/mlpfordataset.py
Nidhi-kumari/tipr-second-assignment
139197f19c81c731549422b1e5a13c3efd663206
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as mpl import math import random from sklearn.metrics import accuracy_score from sklearn.metrics import classification_report def mlpmain(numlayer, numneuron, layeractivfunc, X2, y11, X2test, y11test): class layer(): def __init__(self, numneuron, lay...
48.928994
178
0.542266
97a6f098183aa539ce87dbda59c04f617004d9c1
148
py
Python
app/djangoadmin/invoice1/apps.py
duboisR/django-admin
389644d206ea76369ae7222cc6d2f3290c1a46b0
[ "MIT" ]
null
null
null
app/djangoadmin/invoice1/apps.py
duboisR/django-admin
389644d206ea76369ae7222cc6d2f3290c1a46b0
[ "MIT" ]
null
null
null
app/djangoadmin/invoice1/apps.py
duboisR/django-admin
389644d206ea76369ae7222cc6d2f3290c1a46b0
[ "MIT" ]
null
null
null
from django.apps import AppConfig class Invoice1Config(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'invoice1'
21.142857
56
0.763514
eeb19d6bd0b89ab5f2cf1e807341e628cd2e1709
1,113
py
Python
my-shop/myshop/urls.py
tomaszd/django-shop
6db26e8cb8cdd86281c6b15ac25223d324b9e3c1
[ "BSD-3-Clause" ]
null
null
null
my-shop/myshop/urls.py
tomaszd/django-shop
6db26e8cb8cdd86281c6b15ac25223d324b9e3c1
[ "BSD-3-Clause" ]
null
null
null
my-shop/myshop/urls.py
tomaszd/django-shop
6db26e8cb8cdd86281c6b15ac25223d324b9e3c1
[ "BSD-3-Clause" ]
null
null
null
from django.conf import settings from django.conf.urls.static import static from django.conf.urls import url, include from django.conf.urls.i18n import i18n_patterns from django.contrib import admin from django.contrib.sitemaps.views import sitemap from django.http import HttpResponse from cms.sitemaps import CMSSitema...
31.8
89
0.734951
22fb73adc32a452bc5220e176528c34b6413363e
9,508
py
Python
traktexport/dal.py
seanbreckenridge/traktexport
76c6b4fab96062d666a27ea7148d0974005501c2
[ "MIT" ]
5
2021-03-27T09:53:54.000Z
2022-01-10T12:57:32.000Z
traktexport/dal.py
seanbreckenridge/traktexport
76c6b4fab96062d666a27ea7148d0974005501c2
[ "MIT" ]
3
2021-03-28T13:17:59.000Z
2022-02-13T08:43:31.000Z
traktexport/dal.py
seanbreckenridge/traktexport
76c6b4fab96062d666a27ea7148d0974005501c2
[ "MIT" ]
null
null
null
# some DAL https://beepb00p.xyz/exports.html#dal # code to parse the export into an ADT-like format # # this uses dataclasses sometimes so that I can possibly # fix datetimes for items which I watched # a *long* time ago, i.e. movies I watched # as a kid but added when I created my account import sys import json from ...
24.955381
109
0.625684
85beb6e0b7b36c2b0aada4b431fb6cfa9a5658bf
1,868
py
Python
openverse_api/catalog/api/models/mixins.py
Guiqft/openverse-api
34a089ed9b688624ff7855e0c63039913b274012
[ "MIT" ]
null
null
null
openverse_api/catalog/api/models/mixins.py
Guiqft/openverse-api
34a089ed9b688624ff7855e0c63039913b274012
[ "MIT" ]
null
null
null
openverse_api/catalog/api/models/mixins.py
Guiqft/openverse-api
34a089ed9b688624ff7855e0c63039913b274012
[ "MIT" ]
null
null
null
from django.db import models class IdentifierMixin(models.Model): """ This mixin adds fields related to unique ID, both internal and external, to any model. Do not use this as the sole base class. The mixins adds - identifier: UUIDField - foreign_identifier: CharField """ identifier ...
26.309859
83
0.657388
7496871ebd688f0fbe180feeac3a3f40bfa84d8a
567
py
Python
logger.py
betamaoIS/Eduxxxx_downloader
57ab10088c07dc3be8a1ecca0af725bc07696a98
[ "MIT" ]
3
2019-11-08T06:53:58.000Z
2021-08-19T10:00:57.000Z
logger.py
betamaoIS/Eduxxxx_downloader
57ab10088c07dc3be8a1ecca0af725bc07696a98
[ "MIT" ]
1
2021-01-12T06:32:40.000Z
2021-01-12T06:32:40.000Z
logger.py
betamaoIS/Eduxxxx_downloader
57ab10088c07dc3be8a1ecca0af725bc07696a98
[ "MIT" ]
2
2020-03-07T06:38:17.000Z
2020-09-22T02:38:41.000Z
import logging import os from settings import LOG_DIR logger = logging.getLogger('edusoho') logger.setLevel(logging.DEBUG) # 创建一个handler,用于写入日志文件 log_path = os.path.join(LOG_DIR, 'test.log') fh = logging.FileHandler(log_path, 'a') fh.setLevel(logging.DEBUG) # 再创建一个handler,用于输出到控制台 ch = logging.StreamHandler() ch.setL...
24.652174
60
0.77425
c4f5b69ca1bb116ec66485afc5aa9de0b8c55ffd
6,065
py
Python
python/analysis/habernal_comparison/vocabulary_embeddings_extractor.py
UKPLab/tacl2018-preference-convincing
65eb1cd3bf76f8068889880e0f80178e790350ce
[ "Apache-2.0" ]
13
2019-03-01T19:40:23.000Z
2022-01-10T05:53:47.000Z
python/analysis/habernal_comparison/vocabulary_embeddings_extractor.py
UKPLab/tacl2018-preference-convincing
65eb1cd3bf76f8068889880e0f80178e790350ce
[ "Apache-2.0" ]
12
2020-11-13T17:54:01.000Z
2022-02-09T23:39:11.000Z
python/analysis/habernal_comparison/vocabulary_embeddings_extractor.py
UKPLab/tacl2018-preference-convincing
65eb1cd3bf76f8068889880e0f80178e790350ce
[ "Apache-2.0" ]
5
2019-02-06T12:08:20.000Z
2022-01-10T20:40:22.000Z
import bz2 import unicodedata import pickle from xml.etree import ElementTree import numpy as np import os from nltk.tokenize.casual import TweetTokenizer def tokenize(s): sentence_splitter = TweetTokenizer() tokens = sentence_splitter.tokenize(s) result = [] for word in tokens: result.append...
32.433155
133
0.690849
965c16a0f241043fae07a747c4f654822dee74aa
797
py
Python
services/core-api/app/api/mines/reports/models/mine_report_document_xref.py
parc-jason/mds
8f181a429442208a061ed72065b71e6c2bd0f76f
[ "Apache-2.0" ]
25
2018-07-09T19:04:37.000Z
2022-03-15T17:27:10.000Z
services/core-api/app/api/mines/reports/models/mine_report_document_xref.py
parc-jason/mds
8f181a429442208a061ed72065b71e6c2bd0f76f
[ "Apache-2.0" ]
983
2018-04-25T20:08:07.000Z
2022-03-31T21:45:20.000Z
services/core-api/app/api/mines/reports/models/mine_report_document_xref.py
parc-jason/mds
8f181a429442208a061ed72065b71e6c2bd0f76f
[ "Apache-2.0" ]
58
2018-05-15T22:35:50.000Z
2021-11-29T19:40:52.000Z
from sqlalchemy.dialects.postgresql import UUID from sqlalchemy.schema import FetchedValue from sqlalchemy.ext.associationproxy import association_proxy from app.api.utils.models_mixins import Base from app.extensions import db class MineReportDocumentXref(Base): __tablename__ = "mine_report_document_xref" m...
39.85
86
0.78921
6c2e0a68932b877f3b2ccf5f31d8229ad2d8bdb8
16,909
py
Python
caproto/tests/test_examples.py
ke-zhang-rd/caproto
0f96128eb764054070b31e4a8c0e9b0e54407873
[ "BSD-3-Clause" ]
null
null
null
caproto/tests/test_examples.py
ke-zhang-rd/caproto
0f96128eb764054070b31e4a8c0e9b0e54407873
[ "BSD-3-Clause" ]
null
null
null
caproto/tests/test_examples.py
ke-zhang-rd/caproto
0f96128eb764054070b31e4a8c0e9b0e54407873
[ "BSD-3-Clause" ]
null
null
null
import curio import functools import os import pytest import trio import time import sys import caproto as ca from . import conftest from .conftest import default_setup_module as setup_module # noqa from .conftest import default_teardown_module as teardown_module # noqa @pytest.mark.skipif(os.environ.get("CAPROTO...
33.953815
83
0.645869
6499c57f190a39de977fe818d802dbf7a29b7c20
1,694
py
Python
ldaptor/protocols/ldap/autofill/sambaAccount.py
arossert/ldaptor
6ed55a380f05dd47aa0d03ead0ff214e26399df0
[ "MIT" ]
1
2018-04-13T18:12:10.000Z
2018-04-13T18:12:10.000Z
ldaptor/protocols/ldap/autofill/sambaAccount.py
arossert/ldaptor
6ed55a380f05dd47aa0d03ead0ff214e26399df0
[ "MIT" ]
null
null
null
ldaptor/protocols/ldap/autofill/sambaAccount.py
arossert/ldaptor
6ed55a380f05dd47aa0d03ead0ff214e26399df0
[ "MIT" ]
1
2018-10-17T18:43:59.000Z
2018-10-17T18:43:59.000Z
from ldaptor.protocols.ldap.autofill import ObjectMissingObjectClassException class Autofill_samba: #TODO baseclass def start(self, ldapObject): assert 'objectClass' in ldapObject if 'sambaAccount' not in ldapObject['objectClass']: raise ObjectMissingObjectClassException(ldapObject) ...
39.395349
77
0.599174
301bd039cf59205d22cc1632937fb7012233a582
687
py
Python
backend/kale/processors/__init__.py
brness/kale
d90310dbebc765c68915df0cf832a7a5d1ec1551
[ "Apache-2.0" ]
502
2019-07-18T16:19:16.000Z
2022-03-30T19:45:31.000Z
backend/kale/processors/__init__.py
brness/kale
d90310dbebc765c68915df0cf832a7a5d1ec1551
[ "Apache-2.0" ]
189
2019-09-22T10:54:02.000Z
2022-03-28T13:46:31.000Z
backend/kale/processors/__init__.py
brness/kale
d90310dbebc765c68915df0cf832a7a5d1ec1551
[ "Apache-2.0" ]
111
2019-09-25T20:28:47.000Z
2022-03-24T01:31:46.000Z
# Copyright 2019-2020 The Kale 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 i...
40.411765
74
0.778748
a3045a7b77217f1bbb408e60f5fbd12f9b030b32
1,252
py
Python
mercado/urls.py
Cauan2305/APIs-Mercado-Django
39b32e5872841e0e6717411d46eb228d9a31494d
[ "MIT" ]
null
null
null
mercado/urls.py
Cauan2305/APIs-Mercado-Django
39b32e5872841e0e6717411d46eb228d9a31494d
[ "MIT" ]
null
null
null
mercado/urls.py
Cauan2305/APIs-Mercado-Django
39b32e5872841e0e6717411d46eb228d9a31494d
[ "MIT" ]
null
null
null
"""mercado URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.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') Class-based...
32.947368
77
0.729233
5fc7922118c45d86926ff6ab04efcbf2ce4ed02c
7,724
py
Python
Sidekick_4.5/BatchFileTools.py
hallba/Sidekick
2208ee913e6e2c181d0c27bec85495d3595d980c
[ "Apache-2.0" ]
null
null
null
Sidekick_4.5/BatchFileTools.py
hallba/Sidekick
2208ee913e6e2c181d0c27bec85495d3595d980c
[ "Apache-2.0" ]
3
2015-02-24T23:04:51.000Z
2015-02-24T23:07:15.000Z
Sidekick_4.5/BatchFileTools.py
hallba/Sidekick
2208ee913e6e2c181d0c27bec85495d3595d980c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import HAConf ''' import platform #Leopard has a different format for batch files if platform.release().split(".")[0] == "11": def open_batch_file(batch_file,jobname): print >> batch_file, """<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "ht...
48.578616
224
0.539876
5800b50866ed17b97a036f1c552191156600de12
11,176
py
Python
kivymd/uix/label.py
sonam-gr8/KivyMD
0fabd128b39cbb247f5a89293a7bf36759893b9b
[ "MIT" ]
1
2021-09-05T08:51:39.000Z
2021-09-05T08:51:39.000Z
kivymd/uix/label.py
AllSafeCybercurity/kivyMD
85c51f3e7a26ca170d639e73899df5d465ee8941
[ "MIT" ]
null
null
null
kivymd/uix/label.py
AllSafeCybercurity/kivyMD
85c51f3e7a26ca170d639e73899df5d465ee8941
[ "MIT" ]
null
null
null
""" Components/Label ================ .. rubric:: The :class:`MDLabel` widget is for rendering text. .. image:: https://github.com/HeaTTheatR/KivyMD-data/raw/master/gallery/kivymddoc/label.png :align: center - MDLabel_ - MDIcon_ .. MDLabel: MDLabel ------- Class :class:`MDLabel` inherited from the :class:`~kiv...
27.060533
111
0.603525
125576a7f70eed4eed7f3f0733c2ce57b6744323
1,193
py
Python
spark_utils/_version.py
SneaksAndData/spark-utils
17b06e3a78c59e0f656d42c372bebae9558eead0
[ "MIT" ]
1
2022-01-26T10:20:41.000Z
2022-01-26T10:20:41.000Z
spark_utils/_version.py
SneaksAndData/spark-utils
17b06e3a78c59e0f656d42c372bebae9558eead0
[ "MIT" ]
14
2022-01-24T14:13:17.000Z
2022-03-31T11:46:16.000Z
spark_utils/_version.py
SneaksAndData/spark-utils
17b06e3a78c59e0f656d42c372bebae9558eead0
[ "MIT" ]
null
null
null
# MIT License # # Copyright (c) 2022 Ecco Sneaks & Data # # 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, ...
42.607143
80
0.765298
823dbc7f143e45ae43e5ea323af6449c8a2996bc
1,780
py
Python
piccolo/query/methods/create.py
aminalaee/piccolo
af8d2d45294dcd84f4f9b6028752aa45b699ec15
[ "MIT" ]
null
null
null
piccolo/query/methods/create.py
aminalaee/piccolo
af8d2d45294dcd84f4f9b6028752aa45b699ec15
[ "MIT" ]
null
null
null
piccolo/query/methods/create.py
aminalaee/piccolo
af8d2d45294dcd84f4f9b6028752aa45b699ec15
[ "MIT" ]
null
null
null
from __future__ import annotations import typing as t from piccolo.query.base import Query from piccolo.querystring import QueryString from piccolo.query.methods.create_index import CreateIndex if t.TYPE_CHECKING: # pragma: no cover from piccolo.table import Table class Create(Query): """ Creates a dat...
30.169492
76
0.597191
c80b86fa5dc9f866b4fca77857bf4a9bc15dd5f1
19,170
py
Python
fastestimator/pipeline.py
Phillistan16/fastestimator
54c9254098aee89520814ed54b6e6016b821424f
[ "Apache-2.0" ]
null
null
null
fastestimator/pipeline.py
Phillistan16/fastestimator
54c9254098aee89520814ed54b6e6016b821424f
[ "Apache-2.0" ]
null
null
null
fastestimator/pipeline.py
Phillistan16/fastestimator
54c9254098aee89520814ed54b6e6016b821424f
[ "Apache-2.0" ]
1
2020-04-28T12:16:10.000Z
2020-04-28T12:16:10.000Z
# Copyright 2019 The FastEstimator 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 appl...
49.407216
120
0.587898
6d125d022a66855a73a96683b132f92a7fa34014
998
py
Python
var/spack/repos/builtin/packages/r-subplex/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/r-subplex/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
8
2021-11-09T20:28:40.000Z
2022-03-15T03:26:33.000Z
var/spack/repos/builtin/packages/r-subplex/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack.package import * class RSubplex(RPackage): """Unconstrained Optimization using the Subplex Algorithm. ...
41.583333
95
0.778557
9b13f98e18cf295ea8f4b6c09bbe9cf361bf44d3
997
py
Python
friqml/solutions/phase_estimation.py
znajob/fri_qml
85b448f3907bcc2e7bf5d1cb79c5a562ed2c60ca
[ "MIT" ]
null
null
null
friqml/solutions/phase_estimation.py
znajob/fri_qml
85b448f3907bcc2e7bf5d1cb79c5a562ed2c60ca
[ "MIT" ]
null
null
null
friqml/solutions/phase_estimation.py
znajob/fri_qml
85b448f3907bcc2e7bf5d1cb79c5a562ed2c60ca
[ "MIT" ]
null
null
null
import pennylane as qml from pennylane import numpy as np from friqml.solutions.quantum_fourier_transform import iqft, qft # EXERCISE 1 def powers_of_unitary(U, wires=[0, 1, 2]): w0, w1, w2 = wires qml.Hadamard(wires=w0) qml.Hadamard(wires=w1) U0 = U qml.ControlledQubitUnitary(U0, control_wires=w1...
24.925
64
0.683049