hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
a2f62dfb448387dd95e74c860291fd442ab3a194
43
py
Python
iterasi/for.py
CodeinnAja/Learn-Python-Fundamental
12847cf998d69f2a02efe2e238b9e4693af86d37
[ "MIT" ]
2
2022-03-07T14:49:10.000Z
2022-03-07T14:52:28.000Z
iterasi/for.py
CodeinnAja/Learn-Python-Fundamental
12847cf998d69f2a02efe2e238b9e4693af86d37
[ "MIT" ]
null
null
null
iterasi/for.py
CodeinnAja/Learn-Python-Fundamental
12847cf998d69f2a02efe2e238b9e4693af86d37
[ "MIT" ]
null
null
null
#part 1 for isi in range(5): print(isi)
14.333333
20
0.627907
5f1df573429c34010d5ff1a9dd9063aba255450e
399
py
Python
exercices/questao16.py
LBarros77/Python
283b383d9d14c8d7b907b80f03f7cdc5dbd1e8af
[ "MIT" ]
null
null
null
exercices/questao16.py
LBarros77/Python
283b383d9d14c8d7b907b80f03f7cdc5dbd1e8af
[ "MIT" ]
null
null
null
exercices/questao16.py
LBarros77/Python
283b383d9d14c8d7b907b80f03f7cdc5dbd1e8af
[ "MIT" ]
null
null
null
def inverterOrdem(phrasex): word_lst = [] string = "" phrasex += " " for letter in phrasex: if letter == " ": word_lst.insert(0, string) string = "" else: string += letter new_phrase = "" for word in word_lst: new_phrase += word +...
19.95
39
0.506266
02a8288d311501c3c9f56ef702c1d187cc82cca9
4,100
py
Python
tests/extension/fsm_/as_module_delayed/test_fsm_as_module_delayed.py
jesseclin/veriloggen
a645f2c53f04e5b88213eef17779d212192ea2b5
[ "Apache-2.0" ]
232
2015-09-01T16:07:48.000Z
2022-03-28T14:53:28.000Z
tests/extension/fsm_/as_module_delayed/test_fsm_as_module_delayed.py
jesseclin/veriloggen
a645f2c53f04e5b88213eef17779d212192ea2b5
[ "Apache-2.0" ]
34
2015-08-21T09:13:03.000Z
2022-03-21T23:52:44.000Z
tests/extension/fsm_/as_module_delayed/test_fsm_as_module_delayed.py
jesseclin/veriloggen
a645f2c53f04e5b88213eef17779d212192ea2b5
[ "Apache-2.0" ]
46
2015-09-24T14:39:57.000Z
2022-02-23T21:59:56.000Z
from __future__ import absolute_import from __future__ import print_function import veriloggen import fsm_as_module_delayed expected_verilog = """ module test; reg CLK; reg RST; wire valid; blinkled uut ( .CLK(CLK), .RST(RST), .valid(valid) ); initial begin CLK = 0; forever begi...
17.748918
69
0.56122
b2097b16770dff69757b0bd6d3b8e0aec04daa70
10,461
py
Python
bank2ynab/b2y_utilities.py
mkjeldsen/bank2ynab
449b664ee51597a5c57c4e5427144dab1d295761
[ "MIT" ]
1
2021-04-14T13:20:57.000Z
2021-04-14T13:20:57.000Z
bank2ynab/b2y_utilities.py
jtpedersen/bank2ynab
407b10acab6bf181d0da245aa179e2d2a812e67d
[ "MIT" ]
null
null
null
bank2ynab/b2y_utilities.py
jtpedersen/bank2ynab
407b10acab6bf181d0da245aa179e2d2a812e67d
[ "MIT" ]
null
null
null
import os import configparser import chardet import logging import codecs import csv # Generic utilities def get_configs(): """ Retrieve all configuration parameters.""" # TODO - fix path for these path = os.path.realpath(__file__) parent_dir = os.path.dirname(path) project_dir = os.path.dirname(p...
29.22067
79
0.570118
f0c26255459d57e348a3a962afcfa98534f42cdc
5,719
py
Python
wgdi/dotplot.py
xuzhougeng/wgdi
c1dcea0ed48860b4011dea274908a48277a26318
[ "BSD-2-Clause" ]
null
null
null
wgdi/dotplot.py
xuzhougeng/wgdi
c1dcea0ed48860b4011dea274908a48277a26318
[ "BSD-2-Clause" ]
null
null
null
wgdi/dotplot.py
xuzhougeng/wgdi
c1dcea0ed48860b4011dea274908a48277a26318
[ "BSD-2-Clause" ]
null
null
null
import re import sys import matplotlib.patches as mpatches import matplotlib.pyplot as plt import numpy as np import pandas as pd import wgdi.base as base class dotplot(): def __init__(self, options): self.multiple = 1 self.score = 100 self.evalue = 1e-5 self.repeat_number = 20 ...
41.744526
93
0.553768
9cb965ed410135a4a71957c22b53158b5d29d1dd
1,217
py
Python
PolicyGradient/DDPG/pendulum/tensorflow/main_tf.py
SuperSaiyan-God/Reinforcement-Learning
b43a2997e28ec3bf437c37d060637f6deecf89c6
[ "MIT" ]
null
null
null
PolicyGradient/DDPG/pendulum/tensorflow/main_tf.py
SuperSaiyan-God/Reinforcement-Learning
b43a2997e28ec3bf437c37d060637f6deecf89c6
[ "MIT" ]
null
null
null
PolicyGradient/DDPG/pendulum/tensorflow/main_tf.py
SuperSaiyan-God/Reinforcement-Learning
b43a2997e28ec3bf437c37d060637f6deecf89c6
[ "MIT" ]
null
null
null
import os import gym import numpy as np from ddpg_orig_tf import Agent from utils import plotLearning # Uncomment the lines below to specify which gpu to run on #os.environ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID" #os.environ["CUDA_VISIBLE_DEVICES"] = "0" if __name__ == '__main__': env = gym.make('Pendulum-v0') ag...
33.805556
76
0.612161
8b52c06f50ce0d4dd7979c26ea50fe435a9b1e43
2,448
py
Python
benchmarks/benchmarks/go_benchmark_functions/go_funcs_Y.py
pkienzle/scipy
424bfb976ada4164a007a0b62bc62ae67629c606
[ "BSD-3-Clause" ]
1
2022-03-16T21:20:15.000Z
2022-03-16T21:20:15.000Z
benchmarks/benchmarks/go_benchmark_functions/go_funcs_Y.py
pkienzle/scipy
424bfb976ada4164a007a0b62bc62ae67629c606
[ "BSD-3-Clause" ]
null
null
null
benchmarks/benchmarks/go_benchmark_functions/go_funcs_Y.py
pkienzle/scipy
424bfb976ada4164a007a0b62bc62ae67629c606
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from numpy import abs, sum, cos, pi from .go_benchmark import Benchmark class YaoLiu04(Benchmark): r""" Yao-Liu 4 objective function. This class defines the Yao-Liu function 4 [1]_ global optimization problem. This is a multimodal minimization problem defined as follows: ...
28.8
84
0.58701
cd70cd58cc872c05aefc953a26bd48588a4f5871
178,050
py
Python
src/transformers/__init__.py
manuelciosici/transformers
c33f6046c3dab8f41bedf893404e6469dea3bce8
[ "Apache-2.0" ]
null
null
null
src/transformers/__init__.py
manuelciosici/transformers
c33f6046c3dab8f41bedf893404e6469dea3bce8
[ "Apache-2.0" ]
null
null
null
src/transformers/__init__.py
manuelciosici/transformers
c33f6046c3dab8f41bedf893404e6469dea3bce8
[ "Apache-2.0" ]
null
null
null
# flake8: noqa # There's no way to ignore "F401 '...' imported but unused" warnings in this # module, but to preserve other warnings. So, don't check this module at all. # Copyright 2020 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use thi...
38.773955
119
0.659787
120358f90748f7e1278719ae6b249462e66990ff
156
py
Python
config.py
infrub/Tensordot
f72ed978ba30e231dd393e043f65c2e1664ca4a5
[ "MIT" ]
7
2016-08-18T20:59:47.000Z
2020-05-02T09:25:16.000Z
config.py
infrub/Tensordot
f72ed978ba30e231dd393e043f65c2e1664ca4a5
[ "MIT" ]
8
2016-02-08T07:21:05.000Z
2019-06-29T07:11:38.000Z
config.py
infrub/Tensordot
f72ed978ba30e231dd393e043f65c2e1664ca4a5
[ "MIT" ]
7
2016-06-07T10:20:20.000Z
2022-02-23T07:10:13.000Z
import logging # Default parameters STYLE = "numpy" COMMENT_PREFIX = "#" NUMPY = "np" INDENT = " " LOGGING_LEVEL = logging.INFO DEFAULT_BOND_DIM = 10
13
28
0.698718
ff73f005721feb9dd86785bb7153b95760528b2e
3,167
py
Python
limix/scripts/iset_analyze.py
fpcasale/limix
a6bc2850f243fe779991bb53a24ddbebe0ab74d2
[ "Apache-2.0" ]
null
null
null
limix/scripts/iset_analyze.py
fpcasale/limix
a6bc2850f243fe779991bb53a24ddbebe0ab74d2
[ "Apache-2.0" ]
null
null
null
limix/scripts/iset_analyze.py
fpcasale/limix
a6bc2850f243fe779991bb53a24ddbebe0ab74d2
[ "Apache-2.0" ]
null
null
null
def entry_point(): import os import time from optparse import OptionParser import numpy as np import pandas as pd import scipy as sp from ..data import BedReader from ..iSet.iset import fit_iSet from ..util import unique_variants as f_uni_variants parser = OptionParser() p...
29.877358
72
0.587307
26300fbd3cfa17832d744010a5327d419aa62be4
582
py
Python
UPD/app.py
RIDCorix/UPD
8694d119181a4afffafbfbab510f697399c1ea13
[ "MIT" ]
null
null
null
UPD/app.py
RIDCorix/UPD
8694d119181a4afffafbfbab510f697399c1ea13
[ "MIT" ]
null
null
null
UPD/app.py
RIDCorix/UPD
8694d119181a4afffafbfbab510f697399c1ea13
[ "MIT" ]
null
null
null
from PySide6.QtCore import QFile, QTextStream from PySide6.QtWidgets import QApplication, QWidget import sys import threading from extension.utils import get_tools from peewee import * get_tools() from file_cabinet.models import Drawer app = QApplication(sys.argv) from main.ui import MainWindow from main.settings ...
21.555556
81
0.786942
5633c380a7dc2a7ca5b35c3366ecc17a080bb1f9
3,120
py
Python
lecture5/lecture5/lecture5/settings.py
CSUChico-CINS465/CSCI465-Fall2016-Lecture-Examples
332df2821aef74c6522c53278e28ceb27cbe2fe6
[ "MIT" ]
null
null
null
lecture5/lecture5/lecture5/settings.py
CSUChico-CINS465/CSCI465-Fall2016-Lecture-Examples
332df2821aef74c6522c53278e28ceb27cbe2fe6
[ "MIT" ]
null
null
null
lecture5/lecture5/lecture5/settings.py
CSUChico-CINS465/CSCI465-Fall2016-Lecture-Examples
332df2821aef74c6522c53278e28ceb27cbe2fe6
[ "MIT" ]
null
null
null
""" Django settings for lecture5 project. Generated by 'django-admin startproject' using Django 1.10.1. For more information on this file, see https://docs.djangoproject.com/en/1.10/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.10/ref/settings/ """ import o...
25.57377
91
0.696474
58fabe882b4723cd93f0ad8d315ef29264126180
1,596
py
Python
meeting/api.py
Siddhant6078/meeting
6f602f3c5fa68b4aaed863f321639e356238b10e
[ "MIT" ]
null
null
null
meeting/api.py
Siddhant6078/meeting
6f602f3c5fa68b4aaed863f321639e356238b10e
[ "MIT" ]
null
null
null
meeting/api.py
Siddhant6078/meeting
6f602f3c5fa68b4aaed863f321639e356238b10e
[ "MIT" ]
null
null
null
import frappe from frappe import _ from frappe.utils import nowdate, add_days @frappe.whitelist() def send_invitation_emails(meeting): meeting = frappe.get_doc("Meeting",meeting) meeting.check_permission('email') if meeting.status == 'Planned': frappe.sendmail( recipients = [d.attendee for d in meeting.attend...
26.6
63
0.708647
a6a06f44c7356b831c43a7d61b3e45d00997ff10
4,049
py
Python
pictures/settings.py
Tururocks101/Gallery
90826d38505b31a89e7fad65ac7fb9fd70c9798f
[ "MIT" ]
1
2020-12-10T20:40:36.000Z
2020-12-10T20:40:36.000Z
pictures/settings.py
Tururocks101/Gallery
90826d38505b31a89e7fad65ac7fb9fd70c9798f
[ "MIT" ]
7
2021-03-30T14:09:09.000Z
2021-09-22T19:32:47.000Z
pictures/settings.py
Tururocks101/Gallery
90826d38505b31a89e7fad65ac7fb9fd70c9798f
[ "MIT" ]
2
2020-10-01T15:21:24.000Z
2022-03-27T12:38:48.000Z
""" Django settings for gallery project. Generated by 'django-admin startproject' using Django 3.0.8. For more information on this file, see https://docs.djangoproject.com/en/3.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.0/ref/settings/ """ import os im...
27.174497
91
0.6898
7b888c78e9013d97c634028ab81ce2517a032cf9
9,581
py
Python
build/lib/cryspy_editor/widgets/interactive_graph_mod_mono.py
ikibalin/cryspy_editor
dbc84518c8e0de61185f9c66586ccc07af16350c
[ "MIT" ]
null
null
null
build/lib/cryspy_editor/widgets/interactive_graph_mod_mono.py
ikibalin/cryspy_editor
dbc84518c8e0de61185f9c66586ccc07af16350c
[ "MIT" ]
null
null
null
build/lib/cryspy_editor/widgets/interactive_graph_mod_mono.py
ikibalin/cryspy_editor
dbc84518c8e0de61185f9c66586ccc07af16350c
[ "MIT" ]
null
null
null
__author__ = 'ikibalin' __version__ = "2019_09_10" import os import sys import numpy from PyQt5 import QtWidgets from PyQt5 import QtGui from PyQt5 import QtCore import matplotlib import matplotlib.backends.backend_qt5agg import matplotlib.figure import matplotlib.pyplot class cwind_central(QtWidgets.QMainWind...
36.568702
235
0.530007
e88136b2f099d19ba422b16ae59f18bde23665b8
4,177
py
Python
histomicstk/features/compute_gradient_features.py
Leengit/HistomicsTK
7105b8341647a465f5fa12c3bd4bf181cb0beed7
[ "Apache-2.0" ]
null
null
null
histomicstk/features/compute_gradient_features.py
Leengit/HistomicsTK
7105b8341647a465f5fa12c3bd4bf181cb0beed7
[ "Apache-2.0" ]
null
null
null
histomicstk/features/compute_gradient_features.py
Leengit/HistomicsTK
7105b8341647a465f5fa12c3bd4bf181cb0beed7
[ "Apache-2.0" ]
null
null
null
import numpy as np def compute_gradient_features(im_label, im_intensity, num_hist_bins=10, rprops=None): """Calculates gradient features from an intensity image. Parameters ---------- im_label : array_like A labeled mask image wherein intensity of a pixel is the ...
31.406015
79
0.644721
baa2716054483b4fd526567d27e2bc671a4bd40b
777
py
Python
forum/urls.py
darkun7/Anonim-Forum
515d73535c7156e87adee08b39534b6d36f8162e
[ "MIT" ]
null
null
null
forum/urls.py
darkun7/Anonim-Forum
515d73535c7156e87adee08b39534b6d36f8162e
[ "MIT" ]
null
null
null
forum/urls.py
darkun7/Anonim-Forum
515d73535c7156e87adee08b39534b6d36f8162e
[ "MIT" ]
null
null
null
from django.urls import path from . import views urlpatterns=[ path('', views.home, name="home"), path('thread/', views.post, name="post"), path('thread/create/', views.createPost, name="createpost"), path('thread/show/<str:id>', views.showPost, name="showpost"), path('thread/edit/<str:id>', views....
43.166667
98
0.687259
0625e50f9a518489a144bb85e6ef1dd7a10e9bf5
282
py
Python
HACKEREARTH/Data Structures/Arrays/1-D/chargedUpArray.py
belikesayantan/daily-problem-solving
f6960edeb151838f00c9444d8232b99b48769784
[ "MIT" ]
null
null
null
HACKEREARTH/Data Structures/Arrays/1-D/chargedUpArray.py
belikesayantan/daily-problem-solving
f6960edeb151838f00c9444d8232b99b48769784
[ "MIT" ]
2
2021-08-24T08:45:10.000Z
2021-11-11T06:53:12.000Z
HACKEREARTH/Data Structures/Arrays/1-D/chargedUpArray.py
belikesayantan/daily-problem-solving
f6960edeb151838f00c9444d8232b99b48769784
[ "MIT" ]
null
null
null
def solve (A,N): sum = 0 for i in range(N): if A[i] >= pow(2, N) / 2: sum += A[i] return int(sum % 1000000007) T = int(input()) for _ in range(T): N = int(input()) A = [int(x) for x in input().split()] out_ = solve(A,N) print (out_)
20.142857
41
0.475177
50b28c95c0a694178abdcec113d25cddf565d45c
1,475
py
Python
test/test_base.py
yangxuan0261/pyecharts
31cbd4dcd8c77988d1678a05b7f3bd0d845160bd
[ "MIT" ]
null
null
null
test/test_base.py
yangxuan0261/pyecharts
31cbd4dcd8c77988d1678a05b7f3bd0d845160bd
[ "MIT" ]
null
null
null
test/test_base.py
yangxuan0261/pyecharts
31cbd4dcd8c77988d1678a05b7f3bd0d845160bd
[ "MIT" ]
null
null
null
#!/usr/bin/env python #coding=utf-8 from __future__ import unicode_literals import json from pyecharts import Bar def test_embed_option(): # bar_0 title = "柱状图数据堆叠示例" attr = ["衬衫", "羊毛衫", "雪纺衫", "裤子", "高跟鞋", "袜子"] v1 = [5, 20, 36, 10, 75, 90] v2 = [10, 25, 8, 60, 20, 80] bar = Bar(title) ...
25.877193
58
0.623729
b6c2f30fcf9226c3e38a620a54ca3f340d89c63c
2,849
py
Python
examples/scroll-text-in-my-font.py
teknolog2000/scroll-phat
c5eaf447944deb9b1548e4839751afbe0e009245
[ "MIT" ]
115
2015-12-04T13:29:34.000Z
2021-11-11T14:17:07.000Z
examples/scroll-text-in-my-font.py
PDServices/scroll-phat
9236c7c6359ed0b23721a8229bdf0211a49e540e
[ "MIT" ]
63
2015-11-28T22:30:20.000Z
2022-02-09T13:10:59.000Z
examples/scroll-text-in-my-font.py
PDServices/scroll-phat
9236c7c6359ed0b23721a8229bdf0211a49e540e
[ "MIT" ]
76
2015-11-26T22:29:05.000Z
2022-01-26T18:19:55.000Z
#!/usr/bin/env python import os import sys import time import scrollphat # ----------------------------------------------------------------------------- # This example uses a custome font set, read from # the image file my-font, which has the lower-case # letters replaced with symbols. # For example: # a - tick # ...
30.308511
103
0.525799
aa6eb3bef0eeef2d2f04e3870b9588b839b6ae02
14,525
py
Python
azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/network_management_client_enums.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/network_management_client_enums.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/network_management_client_enums.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2019-06-17T22:18:23.000Z
2019-06-17T22:18:23.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 ...
20.602837
87
0.69136
b0380758cdb9a9f5ee5ec949a0cf3b752b91fef1
538
py
Python
rbacProject/apps/adm/urls_asset.py
xeroCBW/testmodel
6000d79f91d11bcf6ba76befb3a94a007231ecdc
[ "MIT" ]
null
null
null
rbacProject/apps/adm/urls_asset.py
xeroCBW/testmodel
6000d79f91d11bcf6ba76befb3a94a007231ecdc
[ "MIT" ]
54
2020-06-24T07:12:19.000Z
2022-03-12T00:43:57.000Z
rbacProject/apps/adm/urls_asset.py
xeroCBW/testmodel
6000d79f91d11bcf6ba76befb3a94a007231ecdc
[ "MIT" ]
null
null
null
from django.urls import path from adm import views_asset app_name='[adm]' urlpatterns = [ path('', views_asset.AssetView, name='asset'), path('list/', views_asset.AssetListView, name="list"), path('create/', views_asset.AssetCreateView, name="create"), path('update/', views_asset.AssetUpdateView, n...
29.888889
70
0.702602
aa75b850dea5a387c2849822b8fce802ac7acf64
152
py
Python
table/coffee/apps.py
deltaGPhys/CNCCoffeeTable
412b1d788a86f78ba3ad57885143f8121508c1fb
[ "MIT" ]
null
null
null
table/coffee/apps.py
deltaGPhys/CNCCoffeeTable
412b1d788a86f78ba3ad57885143f8121508c1fb
[ "MIT" ]
null
null
null
table/coffee/apps.py
deltaGPhys/CNCCoffeeTable
412b1d788a86f78ba3ad57885143f8121508c1fb
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.apps import AppConfig class CoffeeConfig(AppConfig): name = 'coffee'
16.888889
39
0.730263
b9353348d7bf6e1b928900095f3f2ca497a64599
10,933
py
Python
maintenancemanagement/views/views_equipmentType.py
Open-CMMS/openCMMS_backend
56511ebac83a5dc1fb8768a98bc675e88530a447
[ "BSD-3-Clause" ]
3
2021-03-08T19:14:38.000Z
2022-02-01T17:57:31.000Z
maintenancemanagement/views/views_equipmentType.py
Open-CMMS/openCMMS_backend
56511ebac83a5dc1fb8768a98bc675e88530a447
[ "BSD-3-Clause" ]
null
null
null
maintenancemanagement/views/views_equipmentType.py
Open-CMMS/openCMMS_backend
56511ebac83a5dc1fb8768a98bc675e88530a447
[ "BSD-3-Clause" ]
null
null
null
"""This module defines the views corresponding to the equipment types.""" import logging from drf_yasg.utils import swagger_auto_schema from django.conf import settings from django.core.exceptions import ObjectDoesNotExist from maintenancemanagement.models import EquipmentType, FieldGroup, Field, FieldValue from mai...
43.732
117
0.647947
4c31813dee0de5ea8cc2098e6387d8e8fa21419f
2,885
py
Python
lib/concurrence/_unittest.py
toymachine/concurrence
02f14e90e5f591970f87828c4a6e8f985d67834f
[ "BSD-2-Clause", "BSD-3-Clause" ]
1
2015-11-05T06:06:33.000Z
2015-11-05T06:06:33.000Z
lib/concurrence/_unittest.py
toymachine/concurrence
02f14e90e5f591970f87828c4a6e8f985d67834f
[ "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
lib/concurrence/_unittest.py
toymachine/concurrence
02f14e90e5f591970f87828c4a6e8f985d67834f
[ "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
# Copyright (C) 2009, Hyves (Startphone Ltd.) # # This module is part of the Concurrence Framework and is released under # the New BSD License: http://www.opensource.org/licenses/bsd-license.php import unittest import logging import time from concurrence import dispatch, Tasklet, Channel, quit, get_version_info from ...
28.284314
114
0.629116
5d6bf1a8c2abdc166dcc91bc68e88bdb8e55099c
988
py
Python
admin/migrations/0037_auto_20190202_0956.py
rodlukas/UP-admin
08f36de0773f39c6222da82016bf1384af2cce18
[ "MIT" ]
4
2019-07-19T17:39:04.000Z
2022-03-22T21:02:15.000Z
admin/migrations/0037_auto_20190202_0956.py
rodlukas/UP-admin
08f36de0773f39c6222da82016bf1384af2cce18
[ "MIT" ]
53
2019-08-04T14:25:40.000Z
2022-03-26T20:30:55.000Z
admin/migrations/0037_auto_20190202_0956.py
rodlukas/UP-admin
08f36de0773f39c6222da82016bf1384af2cce18
[ "MIT" ]
3
2020-03-09T07:11:03.000Z
2020-09-11T01:22:50.000Z
# Generated by Django 2.1.5 on 2019-02-02 08:56 import platform from django.db import migrations class Migration(migrations.Migration): dependencies = [("admin", "0036_auto_20190128_1144")] if platform.system() == "Windows": collation = migrations.RunSQL('CREATE COLLATION cz (locale = "cs-CZ-x-icu...
36.592593
100
0.692308
59163e671c4dcc82a60f43b1e00b7c802568b805
13,525
py
Python
rabbitmq.py
summa-platform/summa-deeptagger
9effc39541395999c5b3f5df2f5d9ba1401b820f
[ "MIT" ]
null
null
null
rabbitmq.py
summa-platform/summa-deeptagger
9effc39541395999c5b3f5df2f5d9ba1401b820f
[ "MIT" ]
null
null
null
rabbitmq.py
summa-platform/summa-deeptagger
9effc39541395999c5b3f5df2f5d9ba1401b820f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # Author: Didzis Gosko <didzis.gosko@leta.lv> # import sys, asyncio, json, traceback, inspect from concurrent.futures import CancelledError from aio_pika import connect, Message, ExchangeType import pika.exceptions try: from task import NoFinalResult except ImportError: class NoFinal...
36.653117
150
0.60976
708df51432ec170514aabeae3446f15fd6ab671c
5,764
py
Python
pulsar/apps/test/plugins/bench.py
goodboy/pulsar
e4b42d94b7e262a165782747d65f8b39fb8d3ba9
[ "BSD-3-Clause" ]
1
2020-11-30T07:36:57.000Z
2020-11-30T07:36:57.000Z
pulsar/apps/test/plugins/bench.py
goodboy/pulsar
e4b42d94b7e262a165782747d65f8b39fb8d3ba9
[ "BSD-3-Clause" ]
null
null
null
pulsar/apps/test/plugins/bench.py
goodboy/pulsar
e4b42d94b7e262a165782747d65f8b39fb8d3ba9
[ "BSD-3-Clause" ]
null
null
null
''' :class:`.BenchMark` is a :class:`.TestPlugin` for benchmarking test functions. To use the plugin follow these three steps: * Flag a ``unittest.TestCase`` class with the ``__benchmark__ = True`` class attribute:: class MyBenchmark(unittest.TestCase): __benchmark__ = True def test_mybe...
33.317919
78
0.573387
0d598da391f120ef0af2e36496897550617cde53
7,441
py
Python
storages/views.py
Kuebler-IT/WebVirtNG
2412c5ca2bbd06d64db48e0508a4c3f26248f80b
[ "Apache-2.0" ]
null
null
null
storages/views.py
Kuebler-IT/WebVirtNG
2412c5ca2bbd06d64db48e0508a4c3f26248f80b
[ "Apache-2.0" ]
null
null
null
storages/views.py
Kuebler-IT/WebVirtNG
2412c5ca2bbd06d64db48e0508a4c3f26248f80b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.shortcuts import render, redirect from django.utils.translation import ugettext_lazy as _ from servers.models import Compute from storages.forms import AddStgPool, AddImage, CloneImage from vrtManager.storage import wvmStorage, wvmStorages fr...
38.755208
111
0.502352
39c9c685e26fcfc07eb9c45fbe9035548ed53a1c
864
py
Python
Source-codes/VanillaSVDRepresentation.py
ad93/FaiRIR
c1ad74470a2efe3abef6dc09d6faae583670b6a8
[ "MIT" ]
null
null
null
Source-codes/VanillaSVDRepresentation.py
ad93/FaiRIR
c1ad74470a2efe3abef6dc09d6faae583670b6a8
[ "MIT" ]
null
null
null
Source-codes/VanillaSVDRepresentation.py
ad93/FaiRIR
c1ad74470a2efe3abef6dc09d6faae583670b6a8
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np from scipy.sparse.linalg import svds import json ratings_list = [i.strip().split("::") for i in open('ratings.dat', 'r').readlines()] ratings_df = pd.DataFrame(ratings_list, columns = ['UserID', 'MovieID', 'Rating', 'Timestamp'], dtype = float) #print(ratings_df) R_df = ratings_...
27.870968
110
0.690972
74219837d1e00c956401808df387bf58cb9361a9
2,331
py
Python
bw2calc/utils.py
brightway-lca/brightway2-calc-copy
770cb83954499199888bb7422442cbdc7ef553b3
[ "BSD-3-Clause" ]
4
2021-09-21T14:22:49.000Z
2022-02-23T12:45:01.000Z
bw2calc/utils.py
brightway-lca/brightway2-calc
796bfe4cd839f1c8014797f1945f305d57f19c19
[ "BSD-3-Clause" ]
30
2020-03-03T09:12:48.000Z
2022-03-29T15:24:04.000Z
bw2calc/utils.py
brightway-lca/brightway2-calc-copy
770cb83954499199888bb7422442cbdc7ef553b3
[ "BSD-3-Clause" ]
5
2020-06-26T19:01:53.000Z
2022-02-21T15:40:17.000Z
from pathlib import Path import bw_processing as bwp import numpy as np from fs.base import FS from fs.osfs import OSFS from fs.zipfs import ZipFS from .errors import InconsistentGlobalIndex def get_seed(seed=None): """Get valid Numpy random seed value""" # https://groups.google.com/forum/#!topic/briansuppo...
35.861538
235
0.66538
866c3815e4d32d0178bc39510ed2913a9b3718a8
9,881
py
Python
build/archive.py
dzeromsk/goma
350f67319eb985013515b533f03f2f95570c37d3
[ "BSD-3-Clause" ]
4
2018-12-26T10:54:24.000Z
2022-03-31T21:19:47.000Z
build/archive.py
dzeromsk/goma
350f67319eb985013515b533f03f2f95570c37d3
[ "BSD-3-Clause" ]
null
null
null
build/archive.py
dzeromsk/goma
350f67319eb985013515b533f03f2f95570c37d3
[ "BSD-3-Clause" ]
1
2021-05-31T13:27:25.000Z
2021-05-31T13:27:25.000Z
#!/usr/bin/env python # Copyright 2012 The Goma Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Creates goma client release archives.""" from __future__ import print_function import hashlib import optparse import os import re im...
33.494915
77
0.637992
11a9f9eea0788e34286d6b68f55629bb4808a2a0
10,190
py
Python
pretrain/model.py
yuningkang/APIRecX
aaef5f3f0b669d7a907ddb3273e6658c9267c68a
[ "MIT" ]
49
2020-03-17T08:15:49.000Z
2022-03-23T08:42:16.000Z
pretrain/model.py
yuningkang/APIRecX
aaef5f3f0b669d7a907ddb3273e6658c9267c68a
[ "MIT" ]
2
2020-07-01T08:29:59.000Z
2020-08-17T18:53:48.000Z
pretrain/model.py
yuningkang/APIRecX
aaef5f3f0b669d7a907ddb3273e6658c9267c68a
[ "MIT" ]
4
2021-01-14T14:13:48.000Z
2021-07-06T12:55:53.000Z
import torch import torch.nn as nn class ScaledDotProductAttention(nn.Module): def __init__(self, d_k, attn_pdrop): super(ScaledDotProductAttention, self).__init__() self.d_k = d_k self.dropout = nn.Dropout(attn_pdrop) def forward(self, q, k, v, attn_mask): # |q| : (batch_...
41.08871
149
0.624338
4ffa974e1429618cdcee7cca8c4ffc7b04ab1861
2,756
py
Python
setup.py
just-work/celery-amqp-events
a6a2236ceb9ba982bfd733aa0a858da8443a69e9
[ "MIT" ]
1
2021-03-05T20:14:49.000Z
2021-03-05T20:14:49.000Z
setup.py
just-work/celery-amqp-events
a6a2236ceb9ba982bfd733aa0a858da8443a69e9
[ "MIT" ]
21
2020-09-18T07:52:03.000Z
2022-03-06T07:29:21.000Z
setup.py
just-work/celery-amqp-events
a6a2236ceb9ba982bfd733aa0a858da8443a69e9
[ "MIT" ]
2
2020-10-01T12:29:37.000Z
2020-10-31T17:37:07.000Z
import os import re import subprocess from setuptools import setup # type: ignore from pathlib import Path with open('README.md') as f: long_description = f.read() version_re = re.compile('^Version: (.+)$', re.M) package_name = 'celery-amqp-events' def get_version(): """ Reads version from git status o...
31.318182
73
0.600508
750d303f385ca519738672d4216bde25702591fc
8,816
py
Python
models/frustum_pointnets_v1.py
voidrank/Geo-CNN
4e8a7d5cc0d14ffa2a1b8bef854f294ae4e25f8b
[ "Apache-2.0" ]
37
2019-04-02T08:25:39.000Z
2022-01-16T22:26:17.000Z
models/frustum_pointnets_v1.py
voidrank/Geo-CNN
4e8a7d5cc0d14ffa2a1b8bef854f294ae4e25f8b
[ "Apache-2.0" ]
6
2019-05-10T02:26:14.000Z
2020-05-06T01:30:11.000Z
models/frustum_pointnets_v1.py
voidrank/Geo-CNN
4e8a7d5cc0d14ffa2a1b8bef854f294ae4e25f8b
[ "Apache-2.0" ]
7
2019-06-24T17:29:17.000Z
2020-04-30T06:28:24.000Z
''' Frsutum PointNets v1 Model. ''' from __future__ import print_function import sys import os import tensorflow as tf import numpy as np BASE_DIR = os.path.dirname(os.path.abspath(__file__)) ROOT_DIR = os.path.dirname(BASE_DIR) sys.path.append(BASE_DIR) sys.path.append(os.path.join(ROOT_DIR, 'utils')) import tf_util ...
43.860697
101
0.607645
fc6de5031f3077d3a446554baf4681b394ffaf20
3,401
py
Python
ome_data/original_files.py
fireofearth/ome_seadragon
35cab3a18c4ee559390f63c42199e93940ab2079
[ "MIT" ]
1
2019-11-14T14:15:19.000Z
2019-11-14T14:15:19.000Z
ome_data/original_files.py
fireofearth/ome_seadragon
35cab3a18c4ee559390f63c42199e93940ab2079
[ "MIT" ]
null
null
null
ome_data/original_files.py
fireofearth/ome_seadragon
35cab3a18c4ee559390f63c42199e93940ab2079
[ "MIT" ]
null
null
null
# Copyright (c) 2019, CRS4 # # 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, distribu...
35.8
89
0.690679
03dd3cfe55a5e5124494d5bc293a7fe6def2da4b
14,637
py
Python
tests/helpers/test_config_validation.py
boojew/home-assistant
697c331903f8a440a4ce324a4fb0788351dc86c3
[ "Apache-2.0" ]
1
2019-05-19T08:05:02.000Z
2019-05-19T08:05:02.000Z
tests/helpers/test_config_validation.py
boojew/home-assistant
697c331903f8a440a4ce324a4fb0788351dc86c3
[ "Apache-2.0" ]
6
2021-02-08T21:02:40.000Z
2022-03-12T00:52:16.000Z
tests/helpers/test_config_validation.py
boojew/home-assistant
697c331903f8a440a4ce324a4fb0788351dc86c3
[ "Apache-2.0" ]
1
2019-08-13T11:54:30.000Z
2019-08-13T11:54:30.000Z
"""Test config validators.""" from datetime import timedelta, datetime, date import enum import os from socket import _GLOBAL_DEFAULT_TIMEOUT from unittest.mock import Mock, patch import pytest import voluptuous as vol import homeassistant.helpers.config_validation as cv def test_boolean(): """Test boolean vali...
24.193388
79
0.568081
b4384fc006c1f86bddf400b66621de5289a72069
4,827
py
Python
cv2/document_scanner.py
NNDEV1/CV2Stuff
fc31a51cdd816e313351f0d83ffb0c7339e73ef3
[ "MIT" ]
3
2021-01-09T23:55:34.000Z
2021-08-15T22:04:34.000Z
cv2/document_scanner.py
NNDEV1/CV2Stuff
fc31a51cdd816e313351f0d83ffb0c7339e73ef3
[ "MIT" ]
null
null
null
cv2/document_scanner.py
NNDEV1/CV2Stuff
fc31a51cdd816e313351f0d83ffb0c7339e73ef3
[ "MIT" ]
null
null
null
import cv2 import numpy as np ########################################## widthImg = 480 heightImg = 640 ########################################## frameWidth = 480 frameHeight = 360 cap = cv2.VideoCapture(0) cap.set(3, widthImg) cap.set(4, heightImg) def stackImages(scale,imgArray): rows = len(imgArray) col...
34.726619
135
0.591879
493b74fcf53409e0e3da9a1043573b947dfbfb48
138
py
Python
junkfile/gui/windows/arrange_window/arrange_model.py
IvanFrezzaJr/junkfile2
13894955fba1f200bdb6dc8f4175d5320927c55e
[ "MIT" ]
null
null
null
junkfile/gui/windows/arrange_window/arrange_model.py
IvanFrezzaJr/junkfile2
13894955fba1f200bdb6dc8f4175d5320927c55e
[ "MIT" ]
null
null
null
junkfile/gui/windows/arrange_window/arrange_model.py
IvanFrezzaJr/junkfile2
13894955fba1f200bdb6dc8f4175d5320927c55e
[ "MIT" ]
null
null
null
from dataclasses import dataclass @dataclass class Model: directory_in: str = "" directory_out: str = "" copy: bool = False
15.333333
33
0.673913
561c13eee14d30a42651e4d73bcd63ddcdf5a6b9
39,745
py
Python
ofa/imagenet_codebase/data_providers/roi.py
ronjian/once-for-all
6d0a76be5007fda31c8b366a51f23b626bb8f24c
[ "Apache-2.0" ]
null
null
null
ofa/imagenet_codebase/data_providers/roi.py
ronjian/once-for-all
6d0a76be5007fda31c8b366a51f23b626bb8f24c
[ "Apache-2.0" ]
null
null
null
ofa/imagenet_codebase/data_providers/roi.py
ronjian/once-for-all
6d0a76be5007fda31c8b366a51f23b626bb8f24c
[ "Apache-2.0" ]
null
null
null
# import glob # import math # import os # import random # import shutil # import time # from pathlib import Path # from threading import Thread # import cv2 # import numpy as np # import torch # from PIL import Image, ExifTags # from torch.utils.data import Dataset # from tqdm import tqdm # # from utils.utils import ...
43.342421
240
0.509221
38ec7f10464cf22f6d6318e9e4de8f6a3f24a3c9
20,160
py
Python
lightlab/equipment/abstract_drivers/configurable.py
ZhimuG/lightlab-ZG
cceb417be153c31d62b6e07b347ef093b9462b84
[ "MIT" ]
null
null
null
lightlab/equipment/abstract_drivers/configurable.py
ZhimuG/lightlab-ZG
cceb417be153c31d62b6e07b347ef093b9462b84
[ "MIT" ]
null
null
null
lightlab/equipment/abstract_drivers/configurable.py
ZhimuG/lightlab-ZG
cceb417be153c31d62b6e07b347ef093b9462b84
[ "MIT" ]
null
null
null
from lightlab import visalogger as logger from pyvisa import VisaIOError from contextlib import contextmanager import dpath.util import json from numpy import floor from pathlib import Path from lightlab.util.io import lightlabDevelopmentDir defaultFileDir = lightlabDevelopmentDir / 'savedConfigDefaults/' from . impo...
38.326996
172
0.567659
389410478e6f499ac51d7e391fbacc1c42e73e89
27,305
py
Python
msoffcrypto/format/ppt97.py
lunarobliq/msoffcrypto-tool
36d1d0e5abaa57624271ba6344cad3478b25021d
[ "MIT" ]
1
2019-12-20T06:17:24.000Z
2019-12-20T06:17:24.000Z
msoffcrypto/format/ppt97.py
lunarobliq/msoffcrypto-tool
36d1d0e5abaa57624271ba6344cad3478b25021d
[ "MIT" ]
null
null
null
msoffcrypto/format/ppt97.py
lunarobliq/msoffcrypto-tool
36d1d0e5abaa57624271ba6344cad3478b25021d
[ "MIT" ]
null
null
null
import logging, io, shutil, tempfile from struct import pack, unpack from collections import namedtuple import olefile from . import base from .common import _parse_encryptionheader, _parse_encryptionverifier from ..method.rc4_cryptoapi import DocumentRC4CryptoAPI logger = logging.getLogger(__name__) logger.addHandl...
35.78637
141
0.670756
e457308233e565cd2db07e56db970fca3960dce8
929
py
Python
catalog/dto/inventory.py
Guya-LTD/catalog
632b3c3766e2600275c0a18db6378b2d38e3c463
[ "RSA-MD" ]
null
null
null
catalog/dto/inventory.py
Guya-LTD/catalog
632b3c3766e2600275c0a18db6378b2d38e3c463
[ "RSA-MD" ]
null
null
null
catalog/dto/inventory.py
Guya-LTD/catalog
632b3c3766e2600275c0a18db6378b2d38e3c463
[ "RSA-MD" ]
null
null
null
# -*- coding: utf-8 -*- """Copyright Header Details Copyright --------- Copyright (C) Guya , PLC - All Rights Reserved (As Of Pending...) Unauthorized copying of this file, via any medium is strictly prohibited Proprietary and confidential LICENSE ------- This file is subject to the terms and conditi...
22.658537
76
0.668461
8d665c30acd00ae75ea57ccebf4c7e48c21d2949
1,851
py
Python
PhysicsTools/HeppyCore/python/framework/config_test.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
PhysicsTools/HeppyCore/python/framework/config_test.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
PhysicsTools/HeppyCore/python/framework/config_test.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
from __future__ import absolute_import import unittest import os import shutil import copy from .config import * class ConfigTestCase(unittest.TestCase): def test_analyzer(self): class Ana1(object): pass ana1 = Analyzer( Ana1, toto = '1', tata = 'a'...
26.826087
80
0.504592
9b61ef01252892818c9b97a43515f3b770dca33b
5,931
py
Python
poblacionInicial2Preprocessing.py
learsi1911/GAMA_pygmo_SHA
8da8c7930f0768492065633c433ce7c811c73e98
[ "Apache-2.0" ]
null
null
null
poblacionInicial2Preprocessing.py
learsi1911/GAMA_pygmo_SHA
8da8c7930f0768492065633c433ce7c811c73e98
[ "Apache-2.0" ]
null
null
null
poblacionInicial2Preprocessing.py
learsi1911/GAMA_pygmo_SHA
8da8c7930f0768492065633c433ce7c811c73e98
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sun Aug 15 18:14:22 2021 @author: 20210595 """ # -*- coding: utf-8 -*- """ Created on Sat Aug 14 21:24:18 2021 @author: 20210595 """ from gama.genetic_programming.components.individual import Individual from gama.genetic_programming.compilers.scikitlearn import compile_individ...
43.291971
154
0.711179
ba28867b51bc9c57df9025487bd12b909edc9d63
2,391
py
Python
parsedatetime/pdt_locales/it_IT.py
MadChadJack/parsedatetime
113886ab2460f4d2f350214b1afa7ad83baae0b2
[ "Apache-2.0" ]
null
null
null
parsedatetime/pdt_locales/it_IT.py
MadChadJack/parsedatetime
113886ab2460f4d2f350214b1afa7ad83baae0b2
[ "Apache-2.0" ]
null
null
null
parsedatetime/pdt_locales/it_IT.py
MadChadJack/parsedatetime
113886ab2460f4d2f350214b1afa7ad83baae0b2
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from .base import * # don't use an unicode string localeID = 'it_IT' dateSep = ['/'] timeSep = [':', '.'] meridian= ['del mattino', 'di pomeriggio'] usesMeridian = True uses24 = True Weekdays = [ 'lunedì', 'martedì', 'mercoledì', 'giovedì', 'vene...
20.262712
69
0.513174
f75158b499dfb05fef535b2348c00c185ed59ba4
405
py
Python
sales/migrations/0008_auto_20200912_0910.py
zhou-en/turf_portal
2424ac15248c9f1c0fa4f65ca18fe0ea71d7ff4e
[ "MIT" ]
null
null
null
sales/migrations/0008_auto_20200912_0910.py
zhou-en/turf_portal
2424ac15248c9f1c0fa4f65ca18fe0ea71d7ff4e
[ "MIT" ]
47
2020-10-14T21:54:35.000Z
2022-02-25T05:21:39.000Z
sales/migrations/0008_auto_20200912_0910.py
zhou-en/turf_portal
2424ac15248c9f1c0fa4f65ca18fe0ea71d7ff4e
[ "MIT" ]
null
null
null
# Generated by Django 3.1.1 on 2020-09-12 09:10 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('sales', '0007_order_orderline'), ] operations = [ migrations.AlterField( model_name='orderline', name='price', ...
21.315789
72
0.6
1ecb21181485e8f306420834a220b195e5562c27
294
py
Python
xu/compa/Parapluie/__init__.py
sonnts996/XuCompa-Request
f343e7bfd1b4263eb76438c96d347c549cc75ce3
[ "Apache-2.0" ]
null
null
null
xu/compa/Parapluie/__init__.py
sonnts996/XuCompa-Request
f343e7bfd1b4263eb76438c96d347c549cc75ce3
[ "Apache-2.0" ]
null
null
null
xu/compa/Parapluie/__init__.py
sonnts996/XuCompa-Request
f343e7bfd1b4263eb76438c96d347c549cc75ce3
[ "Apache-2.0" ]
null
null
null
import xu.compa.Parapluie.res as PResource import xu.compa.Parapluie.src.PFunction as PFunction import xu.compa.Parapluie.src.Parapluie as Parapluie from xu.compa.Parapluie.src.ActionWidget import * from xu.compa.Parapluie.src.Adapter import * from xu.compa.Parapluie.src.StickyWindow import *
42
52
0.829932
56f6cd18a5841aa57d02f1be9ed59c235956a456
2,292
py
Python
demo/drawmaps.py
zx64/omgifol
622737dea233dc653463bd6e9a8544c7aff899f2
[ "MIT" ]
51
2015-03-02T14:26:46.000Z
2021-11-01T13:52:28.000Z
demo/drawmaps.py
zx64/omgifol
622737dea233dc653463bd6e9a8544c7aff899f2
[ "MIT" ]
31
2015-03-18T00:35:23.000Z
2022-03-13T07:30:05.000Z
demo/drawmaps.py
zx64/omgifol
622737dea233dc653463bd6e9a8544c7aff899f2
[ "MIT" ]
22
2015-02-13T17:08:17.000Z
2022-03-31T18:54:33.000Z
from __future__ import print_function from omg import * import sys from PIL import Image, ImageDraw def drawmap(wad, name, filename, width, format): xsize = width - 8 edit = MapEditor(wad.maps[name]) xmin = ymin = 32767 xmax = ymax = -32768 for v in edit.vertexes: xmin = min(xmin, v.x) ...
30.157895
86
0.569808
e8e07d74f19a693d87df99b4ce22393547d47aa5
437
py
Python
infomemes/plots/styles.py
luiztauffer/infomemes
7a54546aa688b703e6e020e53eeabae9dc922619
[ "MIT" ]
6
2019-09-05T17:14:20.000Z
2021-09-24T10:19:30.000Z
infomemes/plots/styles.py
luiztauffer/infomemes
7a54546aa688b703e6e020e53eeabae9dc922619
[ "MIT" ]
2
2019-09-08T16:59:04.000Z
2020-02-15T11:51:24.000Z
infomemes/plots/styles.py
luiztauffer/infomemes
7a54546aa688b703e6e020e53eeabae9dc922619
[ "MIT" ]
null
null
null
# Color palettes palettes = {} palettes['palette_0'] = ["rgba(134, 149, 184, 0.5)", "rgba(184, 179, 134, 0.5)", "rgba(184, 134, 134, 0.5)", "rgba(134, 184, 132, 0.5)", "rgba(140, 134, 184, 0.5)", "rgba(184, 134, 176, 0.5)"] palettes['Tableau10'] = ["#4e79a7", "#f28e2...
39.727273
80
0.469108
9c0bc90bb82cfe8889c2ca1acd6d174054ed2f20
3,612
py
Python
distributors/urlobject/netloc.py
fish2000/django-signalqueue
2d98b8e6b7bf2bd131c4d7c18d54d7fb008ed989
[ "BSD-3-Clause" ]
12
2015-02-27T19:26:13.000Z
2019-04-21T12:16:01.000Z
distributors/urlobject/netloc.py
Steckelfisch/django-signalqueue
851bf3641bd940a49b7a2da74c9809bdfcac8fd3
[ "BSD-3-Clause" ]
1
2017-08-25T10:11:47.000Z
2017-08-25T10:11:47.000Z
distributors/urlobject/netloc.py
Steckelfisch/django-signalqueue
851bf3641bd940a49b7a2da74c9809bdfcac8fd3
[ "BSD-3-Clause" ]
null
null
null
import urlparse class Netloc(unicode): """ A netloc string (``username:password@hostname:port``). Contains methods for accessing and (non-destructively) modifying those four components of the netloc. All methods return new instances. """ def __repr__(self): return 'Netloc(%r)' % (un...
31.684211
81
0.611019
0f5e127b221ad48b4fa1f05caba7446fc471c4c0
1,969
py
Python
adv/natalie.py
smashwidget/dl-1
352a65b9e40a623d7a9e5a693fa2b412f27d8cff
[ "Apache-2.0" ]
null
null
null
adv/natalie.py
smashwidget/dl-1
352a65b9e40a623d7a9e5a693fa2b412f27d8cff
[ "Apache-2.0" ]
null
null
null
adv/natalie.py
smashwidget/dl-1
352a65b9e40a623d7a9e5a693fa2b412f27d8cff
[ "Apache-2.0" ]
null
null
null
import adv.adv_test import adv.adv_test import adv from adv import * from module import energy from slot.d import * from slot.a import * import slot import random def module(): return Natalie class Natalie(adv.Adv): comment = 's2 without str buff' conf = {} conf['slot.a'] = slot.a.HoH() + slot.a.One_w...
25.907895
71
0.527171
cf0821b35fe876e29a5dc28707fe0804b678aa3b
821
py
Python
pythogic/pl/semantics/PLInterpretation.py
MarcoFavorito/pythogic
aaa74fec41fbf08d96371f62218c462e9a2b69e0
[ "MIT" ]
4
2018-02-21T10:43:55.000Z
2018-04-13T07:55:04.000Z
pythogic/pl/semantics/PLInterpretation.py
marcofavorito/pythogic
aaa74fec41fbf08d96371f62218c462e9a2b69e0
[ "MIT" ]
34
2018-03-04T18:30:12.000Z
2018-08-14T21:36:29.000Z
pythogic/pl/semantics/PLInterpretation.py
marcofavorito/pythogic
aaa74fec41fbf08d96371f62218c462e9a2b69e0
[ "MIT" ]
1
2018-03-04T18:27:57.000Z
2018-03-04T18:27:57.000Z
from typing import Dict from pythogic.base.Alphabet import Alphabet from pythogic.base.Symbol import Symbol from pythogic.base.Formula import AtomicFormula, Formula class PLInterpretation(object): def __init__(self, alphabet: Alphabet, symbol2truth:Dict[Symbol, bool]): assert alphabet.symbols == symbol2t...
31.576923
108
0.694275
487b84644c8a287a21128e46fed522cef0f18567
1,933
py
Python
examples/ad_manager/v202202/line_item_service/get_line_items_that_need_creatives.py
MarkusBordihn/googleads-python-lib
09bbcb01f9443f1d140efd8f2d27ef0e4aa74d20
[ "Apache-2.0" ]
null
null
null
examples/ad_manager/v202202/line_item_service/get_line_items_that_need_creatives.py
MarkusBordihn/googleads-python-lib
09bbcb01f9443f1d140efd8f2d27ef0e4aa74d20
[ "Apache-2.0" ]
null
null
null
examples/ad_manager/v202202/line_item_service/get_line_items_that_need_creatives.py
MarkusBordihn/googleads-python-lib
09bbcb01f9443f1d140efd8f2d27ef0e4aa74d20
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright 2016 Google 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/licenses/LICENSE-2.0 # # Unless requir...
37.173077
79
0.722193
dcaad8742da99cd8f9af8820faf026c4df69231c
900
py
Python
python/Data Structures/Linked Lists/removeNthNode.py
sinderpl/CodingExamples
9bc59a0345589bf51fc74fe9ad527e9498b9b5c9
[ "MIT" ]
null
null
null
python/Data Structures/Linked Lists/removeNthNode.py
sinderpl/CodingExamples
9bc59a0345589bf51fc74fe9ad527e9498b9b5c9
[ "MIT" ]
null
null
null
python/Data Structures/Linked Lists/removeNthNode.py
sinderpl/CodingExamples
9bc59a0345589bf51fc74fe9ad527e9498b9b5c9
[ "MIT" ]
null
null
null
# Definition for singly-linked list. # class ListNode: # def __init__(self, val=0, next=None): # self.val = val # self.next = next class Solution: def removeNthFromEnd(self, head: Optional[ListNode], n: int) -> Optional[ListNode]: if not head or not head.next: return None ...
32.142857
87
0.546667
32f2333474e380b71ac2b141778e8ec5c128cdac
6,683
py
Python
test_LPRNet.py
barrypitman/LPRNet_Pytorch
f165e1cd4bc0e116e2c30f1443b48aa0f6f559f5
[ "Apache-2.0" ]
null
null
null
test_LPRNet.py
barrypitman/LPRNet_Pytorch
f165e1cd4bc0e116e2c30f1443b48aa0f6f559f5
[ "Apache-2.0" ]
null
null
null
test_LPRNet.py
barrypitman/LPRNet_Pytorch
f165e1cd4bc0e116e2c30f1443b48aa0f6f559f5
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # /usr/bin/env/python3 ''' test pretrained model. Author: aiboy.wei@outlook.com . ''' from data.load_data import CHARS, CHARS_DICT, LPRDataLoader from PIL import Image, ImageDraw, ImageFont from model.LPRNet import build_lprnet # import torch.backends.cudnn as cudnn from torch.autograd import ...
35.359788
136
0.602574
8c39ba45f5d218c4da274872a7140ef2f904521c
1,854
py
Python
gitlabform/gitlabform/processors/project/members_processor.py
llamasoft/gitlabform
bcf4db607209b00845da39d22b668ec5c77f18f2
[ "MIT" ]
null
null
null
gitlabform/gitlabform/processors/project/members_processor.py
llamasoft/gitlabform
bcf4db607209b00845da39d22b668ec5c77f18f2
[ "MIT" ]
15
2020-03-04T19:39:16.000Z
2022-03-21T23:01:19.000Z
gitlabform/gitlabform/processors/project/members_processor.py
grzesuav/gitlabform
c62bc4b3459194e28ed78aef807d5737e88d24e7
[ "MIT" ]
null
null
null
import logging from gitlabform.gitlab import GitLab from gitlabform.gitlabform.processors.abstract_processor import AbstractProcessor class MembersProcessor(AbstractProcessor): def __init__(self, gitlab: GitLab): super().__init__("members") self.gitlab = gitlab def _process_configuration(sel...
39.446809
88
0.555556
abb1ea68260f821a7e273fede6d8d0adef7f027f
3,084
py
Python
scripts/psk-frontend.py
cclauss/tuya-convert
2cf2fa59ca04838da89b0c9ac273c1c4227676d3
[ "MIT" ]
null
null
null
scripts/psk-frontend.py
cclauss/tuya-convert
2cf2fa59ca04838da89b0c9ac273c1c4227676d3
[ "MIT" ]
null
null
null
scripts/psk-frontend.py
cclauss/tuya-convert
2cf2fa59ca04838da89b0c9ac273c1c4227676d3
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 import socket import select import ssl import sslpsk from Crypto.Cipher import AES from hashlib import md5 from binascii import hexlify, unhexlify def listener(host, port): sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR,...
29.09434
97
0.56096
ef4bd5b4abec7115157b7e530f849eb55b05eb91
746
py
Python
preconvert/output/bson.py
timothycrosley/preconvert
828a35998908162695543ae7781b0527485cda77
[ "MIT" ]
12
2019-08-20T16:01:49.000Z
2022-02-09T16:08:36.000Z
preconvert/output/bson.py
timothycrosley/preconvert
828a35998908162695543ae7781b0527485cda77
[ "MIT" ]
4
2019-08-21T09:18:09.000Z
2021-06-02T00:02:18.000Z
preconvert/output/bson.py
timothycrosley/preconvert
828a35998908162695543ae7781b0527485cda77
[ "MIT" ]
3
2019-08-18T11:07:07.000Z
2021-02-27T21:34:42.000Z
import bson from bson import * from preconvert.converters import convert_namedtuple from preconvert.output import convert def dumps(content, *args, on_unknown=convert.bson, **kwargs): # type: ignore """BSON dumps with preconversion for common unserializable types in place""" if isinstance(content, tuple): ...
37.3
80
0.739946
f11e5b6bc023e353c735ed691854ebebc4aedd1f
1,728
py
Python
util.py
thomasmorgan/LilyLib
5b45876d4902379fdfe3295a89b23d01c828b0d5
[ "MIT" ]
null
null
null
util.py
thomasmorgan/LilyLib
5b45876d4902379fdfe3295a89b23d01c828b0d5
[ "MIT" ]
null
null
null
util.py
thomasmorgan/LilyLib
5b45876d4902379fdfe3295a89b23d01c828b0d5
[ "MIT" ]
null
null
null
from copy import deepcopy def flatten(List): while any([isinstance(i, list) or isinstance(i, tuple) for i in List]): new_list = [] for i in List: if isinstance(i, list) or isinstance(i, tuple): new_list += i else: new_list += [i] List...
25.411765
104
0.592593
f3935a7fd1208bbf1627594d0e62ed61cbacff1b
2,916
py
Python
config/base_settings.py
hemor/tursh
81be09eb6d74f3234de0341b9fe442ea4cc1001d
[ "MIT" ]
null
null
null
config/base_settings.py
hemor/tursh
81be09eb6d74f3234de0341b9fe442ea4cc1001d
[ "MIT" ]
null
null
null
config/base_settings.py
hemor/tursh
81be09eb6d74f3234de0341b9fe442ea4cc1001d
[ "MIT" ]
null
null
null
""" Django settings for TURSH project. Generated by 'django-admin startproject' using Django 1.10.2. For more information on this file, see https://docs.djangoproject.com/en/1.10/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.10/ref/settings/ """ import os ...
26.509091
91
0.706104
0779d14ab004983a352e4b21b9b5f2824bab56a7
836
py
Python
src/hbcomp/profile/views.py
zgoda/hbcomp
0b787a05f2cd512c44363daaa560ec74cc9d6261
[ "MIT" ]
null
null
null
src/hbcomp/profile/views.py
zgoda/hbcomp
0b787a05f2cd512c44363daaa560ec74cc9d6261
[ "MIT" ]
null
null
null
src/hbcomp/profile/views.py
zgoda/hbcomp
0b787a05f2cd512c44363daaa560ec74cc9d6261
[ "MIT" ]
null
null
null
from flask import render_template, redirect, url_for, flash from flask_login import login_required from flask_babel import _ from ..ext import db from ..profile import profile_bp from ..profile.forms import ProfileForm from ..models import User @profile_bp.route('/<int:user_id>', methods=['POST', 'GET']) @login_requ...
29.857143
72
0.687799
f6f69db33d11d1b598c6556c9421194e50dc6d4c
217
py
Python
WebMirror/management/rss_parser_funcs/feed_parse_extractKeyoTranslations.py
fake-name/ReadableWebProxy
ed5c7abe38706acc2684a1e6cd80242a03c5f010
[ "BSD-3-Clause" ]
193
2016-08-02T22:04:35.000Z
2022-03-09T20:45:41.000Z
WebMirror/management/rss_parser_funcs/feed_parse_extractKeyoTranslations.py
fake-name/ReadableWebProxy
ed5c7abe38706acc2684a1e6cd80242a03c5f010
[ "BSD-3-Clause" ]
533
2016-08-23T20:48:23.000Z
2022-03-28T15:55:13.000Z
WebMirror/management/rss_parser_funcs/feed_parse_extractKeyoTranslations.py
rrosajp/ReadableWebProxy
ed5c7abe38706acc2684a1e6cd80242a03c5f010
[ "BSD-3-Clause" ]
19
2015-08-13T18:01:08.000Z
2021-07-12T17:13:09.000Z
def extractKeyoTranslations(item): """ """ vol, chp, frag, postfix = extractVolChapterFragmentPostfix(item['title']) if not (chp or vol or frag) or 'preview' in item['title'].lower(): return None return False
24.111111
74
0.705069
789e5cf434cdbaa040d0738182f6301cbc1ee3f8
513
py
Python
python/find_no_list_divisible_by_two_nos.py
codevscolor/codevscolor
35ef9042bdc86f45ef87795c35963b75fb64d5d7
[ "Apache-2.0" ]
6
2019-04-26T03:11:54.000Z
2021-05-07T21:48:29.000Z
python/find_no_list_divisible_by_two_nos.py
akojif/codevscolor
56db3dffeac8f8d76ff8fcf5656770f33765941f
[ "Apache-2.0" ]
null
null
null
python/find_no_list_divisible_by_two_nos.py
akojif/codevscolor
56db3dffeac8f8d76ff8fcf5656770f33765941f
[ "Apache-2.0" ]
26
2019-02-23T14:50:46.000Z
2022-02-04T23:44:24.000Z
#1 list_size = int(input("How many numbers are in the list : ")) #2 number_list = [] final_list = [] #3 for i in range(0,list_size): number_list.append(int(input("Enter list item {} : ".format(i)))) #4 m = int(input("Enter the first divider : ")) n = int(input("Enter the second divider : ")) #5 for i in range(0,lis...
28.5
77
0.643275
3df327b63a2f5076a1412d69760118ccb1503a3e
320
py
Python
No_0171_Excel Sheet Column Number/No_171_Excel Sheet Column Number_description.py
coderMaruf/leetcode-1
20ffe26e43999e44c8acf9800acb371a49bb5853
[ "MIT" ]
32
2020-01-05T13:37:16.000Z
2022-03-26T07:27:09.000Z
No_0171_Excel Sheet Column Number/No_171_Excel Sheet Column Number_description.py
coderMaruf/leetcode-1
20ffe26e43999e44c8acf9800acb371a49bb5853
[ "MIT" ]
null
null
null
No_0171_Excel Sheet Column Number/No_171_Excel Sheet Column Number_description.py
coderMaruf/leetcode-1
20ffe26e43999e44c8acf9800acb371a49bb5853
[ "MIT" ]
8
2020-06-18T16:17:27.000Z
2022-03-15T23:58:18.000Z
''' Description: Given a column title as appear in an Excel sheet, return its corresponding column number. For example: A -> 1 B -> 2 C -> 3 ... Z -> 26 AA -> 27 AB -> 28 ... Example 1: Input: "A" Output: 1 Example 2: Input: "AB" Output: 28 Example 3: Input: "ZY" Output: 701 '''
10.666667
89
0.559375
9eefae3a8be4fce8211ee5a4de2dd154ef913a88
18,789
py
Python
icevision/models/mmseg/models/deeplabv3/backbones/resnet.py
lgvaz/mantisshrimp2
743cb7df0dae7eb1331fc2bb66fc9ca09db496cd
[ "Apache-2.0" ]
17
2020-07-31T22:09:07.000Z
2020-08-30T11:18:36.000Z
icevision/models/mmseg/models/deeplabv3/backbones/resnet.py
Borda/icevision
743cb7df0dae7eb1331fc2bb66fc9ca09db496cd
[ "Apache-2.0" ]
115
2020-08-01T09:19:54.000Z
2020-09-04T18:51:28.000Z
icevision/models/mmseg/models/deeplabv3/backbones/resnet.py
lgvaz/mantisshrimp2
743cb7df0dae7eb1331fc2bb66fc9ca09db496cd
[ "Apache-2.0" ]
1
2020-08-25T06:04:34.000Z
2020-08-25T06:04:34.000Z
__all__ = [ "resnet101_d8", "resnet101_d16_mg124", "resnet101b_d8", "resnet18_d8", "resnet18b_d8", "resnet50_d8", "resnet50b_d8", ] from icevision.imports import * from icevision.models.mmseg.utils import * class MMSegDeeplabBackboneConfig(MMSegBackboneConfig): def __init__(self, **kw...
53.529915
219
0.670658
267037a78db14ab8eb08e4d1608dc32e3024218a
4,530
py
Python
modules/gapi/misc/python/test/test_gapi_core.py
lefatoum2/opencv
f7cab121fe2954c67b343b3b7805e1c092812093
[ "Apache-2.0" ]
2,406
2020-04-22T15:47:54.000Z
2022-03-31T10:27:37.000Z
thirdparty/fluid/modules/gapi/misc/python/test/test_gapi_core.py
thomas-yanxin/openvino
031e998a15ec738c64cc2379d7f30fb73087c272
[ "Apache-2.0" ]
4,948
2020-04-22T15:12:39.000Z
2022-03-31T18:45:42.000Z
inference-engine/thirdparty/fluid/modules/gapi/misc/python/test/test_gapi_core.py
mmakridi/openvino
769bb7709597c14debdaa356dd60c5a78bdfa97e
[ "Apache-2.0" ]
991
2020-04-23T18:21:09.000Z
2022-03-31T18:40:57.000Z
#!/usr/bin/env python import numpy as np import cv2 as cv import os from tests_common import NewOpenCVTests # Plaidml is an optional backend pkgs = [ ('ocl' , cv.gapi.core.ocl.kernels()), ('cpu' , cv.gapi.core.cpu.kernels()), ('fluid' , cv.gapi.core.fluid.kernels()) # ...
34.06015
99
0.559382
2b111004892c19302bfb166baf93f4c9eaa6b3a0
721
py
Python
tests/frequency.py
cmu-sei/usersim
0a90e1c2f32ce27bbb564c7196050c50409989dd
[ "BSL-1.0" ]
10
2018-05-07T07:52:51.000Z
2021-09-04T05:34:46.000Z
tests/frequency.py
cmu-sei/usersim
0a90e1c2f32ce27bbb564c7196050c50409989dd
[ "BSL-1.0" ]
null
null
null
tests/frequency.py
cmu-sei/usersim
0a90e1c2f32ce27bbb564c7196050c50409989dd
[ "BSL-1.0" ]
4
2018-04-09T17:59:13.000Z
2019-11-17T01:33:35.000Z
# Copyright 2017 Carnegie Mellon University. See LICENSE.md file for terms. import api import usersim def run_test(): reps = 10 config = {'type': 'frequency', 'config': {'frequency': 2000, 'repetitions': reps, 'task': {'type': 'test', ...
23.258065
75
0.521498
1f3d9ea0f1fcf24d0e18c32ebdc87cd562dbc0f1
688
py
Python
LC_problems/954.py
Howardhuang98/Blog
cf58638d6d0bbf55b95fe08e43798e7dd14219ac
[ "MIT" ]
null
null
null
LC_problems/954.py
Howardhuang98/Blog
cf58638d6d0bbf55b95fe08e43798e7dd14219ac
[ "MIT" ]
null
null
null
LC_problems/954.py
Howardhuang98/Blog
cf58638d6d0bbf55b95fe08e43798e7dd14219ac
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- encoding: utf-8 -*- """ @File : 954.py @Contact : huanghoward@foxmail.com @Modify Time : 2022/4/1 11:41 ------------ """ import collections from typing import List class Solution: def canReorderDoubled(self, arr: List[int]) -> bool: c = collections.Counter...
22.933333
56
0.482558
d184d3c62162a6d403c105290f2ca67fafc309aa
2,655
py
Python
webapp/python_utils/blob_upload.py
alan-turing-institute/DetectorCheckerWebApp
68b802907d6b07ae5154c0979c8adfce65b56348
[ "MIT" ]
2
2020-02-11T10:50:05.000Z
2020-07-14T16:55:15.000Z
webapp/python_utils/blob_upload.py
alan-turing-institute/DetectorCheckerWebApp
68b802907d6b07ae5154c0979c8adfce65b56348
[ "MIT" ]
10
2019-03-29T14:46:12.000Z
2020-06-12T16:09:55.000Z
webapp/python_utils/blob_upload.py
alan-turing-institute/DetectorCheckerWebApp
68b802907d6b07ae5154c0979c8adfce65b56348
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ A simple script to upload data to azure as a blob. """ import os import argparse import smtplib from azure.storage.blob import BlockBlobService CONTAINER_NAME = os.environ["AZURE_CONTAINER"] BLOCK_BLOB_SERVICE = BlockBlobService( account_name=os.environ["AZURE_STORAGE_ACCOUNT"], c...
21.942149
80
0.656874
df9c0b2064a18c7b2377e6b38a3f4264b204c9b9
979
py
Python
api/tests/opentrons/commands/test_commands.py
faliester/opentrons
e945d0f72fed39b0f68c0b30b7afd1981644184f
[ "Apache-2.0" ]
null
null
null
api/tests/opentrons/commands/test_commands.py
faliester/opentrons
e945d0f72fed39b0f68c0b30b7afd1981644184f
[ "Apache-2.0" ]
null
null
null
api/tests/opentrons/commands/test_commands.py
faliester/opentrons
e945d0f72fed39b0f68c0b30b7afd1981644184f
[ "Apache-2.0" ]
null
null
null
import pytest from opentrons.commands import protocol_commands @pytest.mark.parametrize( argnames="seconds," "minutes," "expected_seconds," "expected_minutes," "expected_text", argvalues=[ [10, 0, 10, 0, "Delaying for 0 minutes and 10 seconds"], ...
30.59375
66
0.590398
e598f975dec6f9ad78ecd34befd188e3ab80d4ff
13,053
py
Python
tests/generator/test_compression.py
DevMau5x/goldcoin-blockchain-2
ed223dd16fa290ea710db7202d6c52a056242cfa
[ "Apache-2.0" ]
17
2021-09-08T17:07:54.000Z
2022-03-30T04:11:58.000Z
tests/generator/test_compression.py
DevMau5x/goldcoin-blockchain-2
ed223dd16fa290ea710db7202d6c52a056242cfa
[ "Apache-2.0" ]
15
2021-09-28T21:09:49.000Z
2022-03-22T21:13:23.000Z
tests/generator/test_compression.py
Pierre21dd/gold2
4a35f207ed4c8a7745bfbc73fd3c190bd8b60a3f
[ "Apache-2.0" ]
9
2021-09-12T10:03:23.000Z
2022-03-15T08:35:11.000Z
# flake8: noqa: F501 from dataclasses import dataclass from typing import List, Any from unittest import TestCase from goldcoin.full_node.bundle_tools import ( bundle_suitable_for_compression, compressed_coin_spend_entry_list, compressed_spend_bundle_solution, match_standard_transaction_at_any_index, ...
44.247458
792
0.73914
5ce2152bee561b8e9bcca8688e657b30883286e4
3,667
py
Python
ooobuild/lo/frame/control_event.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/frame/control_event.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/frame/control_event.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2022 :Barry-Thomas-Paul: Moss # # 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 applicab...
31.076271
195
0.638942
16f1754e579b0d12de894b3d0751c0eabfdf8e6f
9,280
py
Python
Ryven/packages/auto_generated/ctypes.test.test_repr/nodes.py
tfroehlich82/Ryven
cb57c91d13949712844a4410a9302c4a90d28dcd
[ "MIT" ]
2,872
2020-07-01T09:06:34.000Z
2022-03-31T05:52:32.000Z
Ryven/packages/auto_generated/ctypes.test.test_repr/nodes.py
dhf327/Ryven
a11e361528d982a9dd3c489dd536f8b05ffd56e1
[ "MIT" ]
59
2020-06-28T12:50:50.000Z
2022-03-27T19:07:54.000Z
Ryven/packages/auto_generated/ctypes.test.test_repr/nodes.py
dhf327/Ryven
a11e361528d982a9dd3c489dd536f8b05ffd56e1
[ "MIT" ]
339
2020-07-05T04:36:20.000Z
2022-03-24T07:25:18.000Z
from NENV import * import ctypes.test.test_repr class NodeBase(Node): pass class Array_Node(NodeBase): """ """ title = 'ARRAY' type_ = 'ctypes.test.test_repr' init_inputs = [ NodeInputBP(label='typ'), NodeInputBP(label='len'), ] init_outputs = [ NodeOut...
24.879357
116
0.613901
15e8e7c26c629cbd9f1425f27c9b00a8ea3be94e
13,203
py
Python
scripts/community.py
communcom/commun.contracts
98aaa55d33b91af130013c82780253f39eae47e7
[ "MIT" ]
null
null
null
scripts/community.py
communcom/commun.contracts
98aaa55d33b91af130013c82780253f39eae47e7
[ "MIT" ]
null
null
null
scripts/community.py
communcom/commun.contracts
98aaa55d33b91af130013c82780253f39eae47e7
[ "MIT" ]
1
2020-10-25T13:58:12.000Z
2020-10-25T13:58:12.000Z
from deployutils.testnet import * from deployutils import log_action from copy import deepcopy def issueCommunToken(owner, quantity, clientKey, **kwargs): pushAction('cyber.token', 'issue', 'c.issuer@issue', { 'to':'c.issuer', 'quantity':quantity, 'memo':'issue for '+owner ...
42.182109
150
0.613876
e92a12277358ecba1fa43e833301dc9a1efc44c2
7,574
py
Python
mogp_emulator/benchmarks/benchmark_pivot.py
EXAUQ/mogp-emulator
9d5772135498bdf5b95b44b4afb065c2c266f899
[ "MIT" ]
21
2021-01-20T07:02:12.000Z
2022-03-30T21:09:04.000Z
mogp_emulator/benchmarks/benchmark_pivot.py
EXAUQ/mogp-emulator
9d5772135498bdf5b95b44b4afb065c2c266f899
[ "MIT" ]
114
2019-04-25T14:53:11.000Z
2021-01-06T17:07:41.000Z
mogp_emulator/benchmarks/benchmark_pivot.py
EXAUQ/mogp-emulator
9d5772135498bdf5b95b44b4afb065c2c266f899
[ "MIT" ]
8
2021-02-02T08:56:12.000Z
2022-02-15T10:03:15.000Z
'''This benchmark performs convergence tests using the pivoted Cholesky routines applied to the 2D Branin function. Details of the 2D Branin function can be found at https://www.sfu.ca/~ssurjano/branin.html. The code samples the Branin function using an increasing number of points, with a duplicate point added to make ...
38.841026
100
0.687748
72bd2d3324384e9e36ab67f1c6e2f46a69b72575
3,663
py
Python
photo_rename/copy_metadata.py
eigenholser/jpeg_rename
bd498fcff87fa94fc29ce85bc9f6d8063bc12095
[ "MIT" ]
null
null
null
photo_rename/copy_metadata.py
eigenholser/jpeg_rename
bd498fcff87fa94fc29ce85bc9f6d8063bc12095
[ "MIT" ]
null
null
null
photo_rename/copy_metadata.py
eigenholser/jpeg_rename
bd498fcff87fa94fc29ce85bc9f6d8063bc12095
[ "MIT" ]
1
2018-06-24T14:53:28.000Z
2018-06-24T14:53:28.000Z
import logging import os import re import stat import sys import pyexiv2 import photo_rename from photo_rename import FileMetadata, Harvester from photo_rename.utils import CustomArgumentParser logger = logging.getLogger(__name__) def process_all_files(src_directory, dst_directory, simon_sez=None): """ Mana...
31.307692
81
0.603877
f319bae6accce0c48a7049259aa2cd23c7657bb2
1,517
py
Python
truestory/datautil.py
savvybit/TrueStory
4b329ee82b07bdcb79947dded7e6d3ede02bf9e6
[ "MIT" ]
2
2021-06-08T20:05:31.000Z
2021-12-16T10:41:32.000Z
truestory/datautil.py
savvybit/TrueStory
4b329ee82b07bdcb79947dded7e6d3ede02bf9e6
[ "MIT" ]
null
null
null
truestory/datautil.py
savvybit/TrueStory
4b329ee82b07bdcb79947dded7e6d3ede02bf9e6
[ "MIT" ]
null
null
null
"""Utilities playing with data files.""" import csv import functools import io import json import addict import toml import pkg_resources from truestory import settings LOADERS = { "json": json.load, "toml": toml.load, "csv": csv.DictReader, } def get_string(path): """Returns string content from...
26.155172
72
0.709295
578ed2e1d6a1bee6874e670bf4e05d56d15c22ce
931
py
Python
env/lib/python3.6/site-packages/altair/vegalite/v1/data.py
anthowen/duplify
846d01c1b21230937fdf0281b0cf8c0b08a8c24e
[ "MIT" ]
1,134
2015-09-19T05:38:36.000Z
2021-09-21T15:15:11.000Z
env/lib/python3.6/site-packages/altair/vegalite/v1/data.py
anthowen/duplify
846d01c1b21230937fdf0281b0cf8c0b08a8c24e
[ "MIT" ]
165
2015-09-19T05:09:33.000Z
2018-10-08T19:42:28.000Z
env/lib/python3.6/site-packages/altair/vegalite/v1/data.py
anthowen/duplify
846d01c1b21230937fdf0281b0cf8c0b08a8c24e
[ "MIT" ]
75
2015-09-19T03:30:25.000Z
2018-11-19T05:37:38.000Z
from ..data import (MaxRowsError, curry, default_data_transformer, limit_rows, pipe, sample, to_csv, to_json, to_values, DataTransformerRegistry) # ============================================================================== # VegaLite 1 data transformers # ======================================...
29.09375
113
0.606874
fa388732e0a7a30d27ee5e4ef1e0737117d28bcf
5,725
py
Python
telethon/client/dialogs.py
justinjohnymathew/Telethon
fb40e7b50837d67fe5e8df27995a2c80bdc26296
[ "MIT" ]
null
null
null
telethon/client/dialogs.py
justinjohnymathew/Telethon
fb40e7b50837d67fe5e8df27995a2c80bdc26296
[ "MIT" ]
null
null
null
telethon/client/dialogs.py
justinjohnymathew/Telethon
fb40e7b50837d67fe5e8df27995a2c80bdc26296
[ "MIT" ]
1
2018-09-05T14:59:27.000Z
2018-09-05T14:59:27.000Z
import itertools from collections import UserList from async_generator import async_generator, yield_ from .users import UserMethods from .. import utils from ..tl import types, functions, custom class DialogMethods(UserMethods): # region Public methods @async_generator async def iter_dialogs( ...
36.698718
78
0.559301
225b90bdaab50a8bb49152deb0d9af8f7e77e741
3,771
py
Python
setup.py
tonysimpson/Ni
e1fd80852538d7d4b918aa929e48eba8bf503b5b
[ "MIT" ]
1
2020-04-21T21:40:41.000Z
2020-04-21T21:40:41.000Z
setup.py
tonysimpson/Ni
e1fd80852538d7d4b918aa929e48eba8bf503b5b
[ "MIT" ]
null
null
null
setup.py
tonysimpson/Ni
e1fd80852538d7d4b918aa929e48eba8bf503b5b
[ "MIT" ]
null
null
null
#! /usr/bin/env python """ Ni aims to provide a module that just makes Python faster. Ni is based on a fork of Armin Rigo's Psyco, Armin and the other Psyco developers moved onto PyPy so go check that out if you want a high performance implementation of Python (http://pypy.org). """ from __future__ import print_funct...
32.508621
78
0.596924
d4f47e8a37f113531f6f718b2275ccf9d42a5e2b
534
py
Python
push_me_out/apps/notifier/serializers.py
dev-prakhar/push-me-out-server
bd5fe94e1f08663fb4059ec2b5d6b4dea5ea2c58
[ "MIT" ]
null
null
null
push_me_out/apps/notifier/serializers.py
dev-prakhar/push-me-out-server
bd5fe94e1f08663fb4059ec2b5d6b4dea5ea2c58
[ "MIT" ]
null
null
null
push_me_out/apps/notifier/serializers.py
dev-prakhar/push-me-out-server
bd5fe94e1f08663fb4059ec2b5d6b4dea5ea2c58
[ "MIT" ]
1
2020-12-17T10:16:08.000Z
2020-12-17T10:16:08.000Z
from rest_framework import serializers from apps.notifier.models import Subscriber, NotificationType class SubscriberSerializer(serializers.ModelSerializer): class Meta: model = Subscriber fields = ('id', 'service_endpoint', 'p256dh', 'auth') extra_kwargs = { 'p256dh': {'write...
28.105263
62
0.649813
0a717f699f2aaa6d5e9dfec9c25be7096f65d9fd
1,020
py
Python
tests/test_utils.py
confuzeus/time-attack
d76e4eeb0d7561302d789b701665477f01ca4a68
[ "MIT" ]
null
null
null
tests/test_utils.py
confuzeus/time-attack
d76e4eeb0d7561302d789b701665477f01ca4a68
[ "MIT" ]
null
null
null
tests/test_utils.py
confuzeus/time-attack
d76e4eeb0d7561302d789b701665477f01ca4a68
[ "MIT" ]
null
null
null
from unittest import TestCase from unittest.mock import patch from time_attack.utils import yes_or_no class TestUtils(TestCase): def test_yes_or_no(self): msg = "abcd" expected_msg = "abcd (y/n) " with patch("builtins.input") as mock_input: mock_input.return_value = "y" ...
20.4
55
0.584314
605140f91cc829cba9587d6368c9662f2be82375
3,777
py
Python
acl18/io.py
tzshi/mh4-parser-acl18
20234703d6a2824fb6f76d45499db0a6ec6e27fb
[ "MIT" ]
4
2018-08-22T13:54:38.000Z
2021-05-16T16:22:36.000Z
acl18/io.py
tzshi/mh4-parser-acl18
20234703d6a2824fb6f76d45499db0a6ec6e27fb
[ "MIT" ]
null
null
null
acl18/io.py
tzshi/mh4-parser-acl18
20234703d6a2824fb6f76d45499db0a6ec6e27fb
[ "MIT" ]
1
2019-05-19T16:59:20.000Z
2019-05-19T16:59:20.000Z
#!/usr/bin/env python # encoding: utf-8 from .const import ID, FORM, LEMMA, UPOS, XPOS, FEATS, HEAD, DEPREL, DEPS, MISC from .graph import DependencyGraph, Word def read_conll(filename): def get_word(columns): return Word(columns[FORM], columns[UPOS], lemma=columns[LEMMA], xpos=columns[XPOS], feats=colum...
31.739496
157
0.530845
845d086e0175ac3e128640fe5dd42e06f5959913
2,059
py
Python
examples/gmm/sine/vi_gmm.py
pnickl/mimo
81c4bbd2594e2136445009eae752ab8a1602a1cf
[ "MIT" ]
3
2020-05-19T12:01:48.000Z
2020-10-15T11:51:37.000Z
examples/gmm/sine/vi_gmm.py
pnickl/mimo
81c4bbd2594e2136445009eae752ab8a1602a1cf
[ "MIT" ]
null
null
null
examples/gmm/sine/vi_gmm.py
pnickl/mimo
81c4bbd2594e2136445009eae752ab8a1602a1cf
[ "MIT" ]
null
null
null
import copy import operator import numpy as np import numpy.random as npr from matplotlib import pyplot as plt from mimo.distributions import Dirichlet from mimo.distributions import CategoricalWithDirichlet from mimo.distributions import NormalWishart from mimo.distributions import GaussianWithNormalWishart from mi...
26.74026
88
0.682856
ac16bf3fe447908a896b7bf2e8611e1f09de6309
12,475
py
Python
notification_integration/utilities/service_handler_test.py
GoogleCloudPlatform/cloud-alerting-notification-forwarding
1bd47043de723c92dee3f49ddf4bbe226ba5d106
[ "Apache-2.0" ]
3
2021-12-08T02:59:28.000Z
2022-02-04T01:14:54.000Z
notification_integration/utilities/service_handler_test.py
GoogleCloudPlatform/cloud-alerting-notification-forwarding
1bd47043de723c92dee3f49ddf4bbe226ba5d106
[ "Apache-2.0" ]
null
null
null
notification_integration/utilities/service_handler_test.py
GoogleCloudPlatform/cloud-alerting-notification-forwarding
1bd47043de723c92dee3f49ddf4bbe226ba5d106
[ "Apache-2.0" ]
1
2021-12-25T17:32:04.000Z
2021-12-25T17:32:04.000Z
# Copyright 2021 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 agreed to in writing, ...
48.352713
128
0.611703
0a44efe7625cf61a5fd91e20812d25065e30dc7d
498
py
Python
mainapp/migrations/0055_rescuecamp_facilities_available.py
reyasmohammed/rescuekerala
68ee6cd4ea7b94e04fd32c4d488bcd7a8f2d371c
[ "MIT" ]
1
2018-09-22T21:08:38.000Z
2018-09-22T21:08:38.000Z
mainapp/migrations/0055_rescuecamp_facilities_available.py
reyasmohammed/rescuekerala
68ee6cd4ea7b94e04fd32c4d488bcd7a8f2d371c
[ "MIT" ]
1
2018-08-23T11:38:02.000Z
2018-08-23T11:38:02.000Z
mainapp/migrations/0055_rescuecamp_facilities_available.py
reyasmohammed/rescuekerala
68ee6cd4ea7b94e04fd32c4d488bcd7a8f2d371c
[ "MIT" ]
5
2019-11-07T11:34:56.000Z
2019-11-07T11:36:00.000Z
# Generated by Django 2.1 on 2018-08-19 08:07 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('mainapp', '0054_auto_20180819_1211'), ] operations = [ migrations.AddField( model_name='rescuecamp', name='facilities_...
26.210526
148
0.63253
9f85188b3513563a7444f7a0e908f11af985498b
18,179
py
Python
tensorflow/python/ops/math_ops_test.py
zhangyujing/tensorflow
c7a04561fb8972fb64907acc5f10f3c6d4cef9f2
[ "Apache-2.0" ]
13
2018-07-23T18:53:35.000Z
2021-11-18T19:56:45.000Z
tensorflow/python/ops/math_ops_test.py
Iorizy2/tensorflow
10878ede0688fbf6d720bef1d132a1537f9ea72c
[ "Apache-2.0" ]
1
2018-03-28T23:47:43.000Z
2018-03-28T23:47:43.000Z
tensorflow/python/ops/math_ops_test.py
Iorizy2/tensorflow
10878ede0688fbf6d720bef1d132a1537f9ea72c
[ "Apache-2.0" ]
13
2018-09-07T13:28:38.000Z
2020-07-17T15:06:24.000Z
# Copyright 2015 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...
37.794179
80
0.651521
20c3784d719d8f9a2dc4cbafe409e44f634ba40d
10,380
py
Python
sdk/tables/azure-data-tables/tests/test_table_service_properties_async.py
aiven/azure-sdk-for-python
8764dc07423beca46ed0b51212d81289d9e52c60
[ "MIT" ]
1
2020-03-05T18:10:35.000Z
2020-03-05T18:10:35.000Z
sdk/tables/azure-data-tables/tests/test_table_service_properties_async.py
aiven/azure-sdk-for-python
8764dc07423beca46ed0b51212d81289d9e52c60
[ "MIT" ]
2
2020-03-03T23:11:13.000Z
2020-03-30T18:50:55.000Z
sdk/tables/azure-data-tables/tests/test_table_service_properties_async.py
aiven/azure-sdk-for-python
8764dc07423beca46ed0b51212d81289d9e52c60
[ "MIT" ]
null
null
null
# 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. # --------------------------------------------------------------------...
42.892562
131
0.657129
7748fe6fda00b90f45509eabcb11c72721f25b7e
1,473
py
Python
docs/samples/pipelines/sample-tf-pipeline.py
titoeb/kfserving
b072a76842b57e904dbdf46a136474a22051500d
[ "Apache-2.0" ]
6
2022-02-15T21:54:19.000Z
2022-02-16T21:18:54.000Z
docs/samples/pipelines/sample-tf-pipeline.py
titoeb/kfserving
b072a76842b57e904dbdf46a136474a22051500d
[ "Apache-2.0" ]
7
2021-08-31T23:55:06.000Z
2022-03-02T11:34:58.000Z
docs/samples/pipelines/sample-tf-pipeline.py
titoeb/kfserving
b072a76842b57e904dbdf46a136474a22051500d
[ "Apache-2.0" ]
2
2021-12-16T10:32:07.000Z
2022-02-28T17:08:52.000Z
# Copyright 2019 kubeflow.org. # # 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,...
35.071429
105
0.692464
858f17363a1dccfde714bf60b9abbaab3e1ddc50
9,679
py
Python
lib/python2.7/site-packages/networkx/tests/test_convert.py
nishaero/wifi-userseg-ryu
1132f2c813b79eff755bdd1a9e73e7ad3980af7c
[ "Apache-2.0" ]
15
2018-04-26T08:17:18.000Z
2021-03-05T08:44:13.000Z
lib/python2.7/site-packages/networkx/tests/test_convert.py
nishaero/wifi-userseg-ryu
1132f2c813b79eff755bdd1a9e73e7ad3980af7c
[ "Apache-2.0" ]
null
null
null
lib/python2.7/site-packages/networkx/tests/test_convert.py
nishaero/wifi-userseg-ryu
1132f2c813b79eff755bdd1a9e73e7ad3980af7c
[ "Apache-2.0" ]
6
2018-04-12T15:49:27.000Z
2022-01-27T12:34:50.000Z
#!/usr/bin/env python from nose.tools import * from networkx import * from networkx.convert import * from networkx.algorithms.operators import * from networkx.generators.classic import barbell_graph,cycle_graph class TestConvert(): def edgelists_equal(self,e1,e2): return sorted(sorted(e) for e in e1)==sort...
44.399083
91
0.605434
a8c75bdcad7859c2cd45cd6a901f3bd8d7805d26
290
py
Python
genshin_wishes/standard_wishes.py
EYH0602/Genshin_Impact_Wishes_Analyzer
ee178cd7fde995a5ca1b979f97a6b77af912a86a
[ "MIT" ]
null
null
null
genshin_wishes/standard_wishes.py
EYH0602/Genshin_Impact_Wishes_Analyzer
ee178cd7fde995a5ca1b979f97a6b77af912a86a
[ "MIT" ]
4
2021-09-08T05:38:09.000Z
2021-09-19T16:32:50.000Z
genshin_wishes/standard_wishes.py
EYH0602/Genshin_Impact_Wishes_Analyzer
ee178cd7fde995a5ca1b979f97a6b77af912a86a
[ "MIT" ]
null
null
null
from .wishes_base import WishesBase class StandardWishes(WishesBase): def init_params(self): self.params['gacha_type'] = '200' self.file_name = 'genshine_standard_wishes.csv' self.rst_file_name = 'standard_analysis.txt' self.table = 'standard_wishes'
26.363636
55
0.696552
4c76a20add8d869f56e604bc510ab00a49eeaa7b
697
py
Python
djstripe/context_managers.py
hoopit/dj-stripe
726853081cd95be86777492c23fb61de5d35a72a
[ "MIT" ]
2
2020-09-01T20:05:28.000Z
2021-07-22T08:20:42.000Z
djstripe/context_managers.py
hoopit/dj-stripe
726853081cd95be86777492c23fb61de5d35a72a
[ "MIT" ]
null
null
null
djstripe/context_managers.py
hoopit/dj-stripe
726853081cd95be86777492c23fb61de5d35a72a
[ "MIT" ]
2
2020-01-31T14:26:09.000Z
2020-07-14T04:24:15.000Z
""" dj-stripe Context Managers """ from contextlib import contextmanager from . import settings as djstripe_settings @contextmanager def stripe_temporary_api_version(version, validate=True): """ Temporarily replace the global api_version used in stripe API calls with the given value. The original v...
27.88
77
0.747489
bc9cf1f00b95f02e09bb27f69cd3c05c28c637b5
11,954
py
Python
stackalytics/dashboard/helpers.py
Mirantis/stackalytics
96ec7c6c630a9f2532b808069e045d434bbac200
[ "Apache-2.0" ]
3
2015-06-18T14:16:59.000Z
2021-02-10T03:41:31.000Z
stackalytics/dashboard/helpers.py
Mirantis/stackalytics
96ec7c6c630a9f2532b808069e045d434bbac200
[ "Apache-2.0" ]
2
2015-07-01T08:10:59.000Z
2017-05-22T02:19:44.000Z
stackalytics/dashboard/helpers.py
Mirantis/stackalytics
96ec7c6c630a9f2532b808069e045d434bbac200
[ "Apache-2.0" ]
4
2015-11-08T12:12:19.000Z
2019-06-17T09:44:47.000Z
# Copyright (c) 2013 Mirantis Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
33.578652
78
0.59821
1ca6e49965d2e6e498f370ee92dec0ef087bfde1
3,000
py
Python
book_figures/chapter7/fig_PCA_rotation.py
aragilar/astroML
d3f6279eb632957662338761cb559a1dcd541fb0
[ "BSD-2-Clause" ]
3
2017-02-23T07:59:15.000Z
2021-01-16T18:49:32.000Z
book_figures/chapter7/fig_PCA_rotation.py
aragilar/astroML
d3f6279eb632957662338761cb559a1dcd541fb0
[ "BSD-2-Clause" ]
null
null
null
book_figures/chapter7/fig_PCA_rotation.py
aragilar/astroML
d3f6279eb632957662338761cb559a1dcd541fb0
[ "BSD-2-Clause" ]
1
2021-01-16T18:49:36.000Z
2021-01-16T18:49:36.000Z
""" Scematic Diagram of PCA ----------------------- Figure 7.2 A distribution of points drawn from a bivariate Gaussian and centered on the origin of x and y. PCA defines a rotation such that the new axes (x' and y') are aligned along the directions of maximal variance (the principal components) with zero covariance. ...
34.090909
79
0.583
b4fd89bd03784082575be592f19792ca18d0b899
6,598
py
Python
tensorflow/python/kernel_tests/qr_op_test.py
tycho/tensorflow
27767d8e9c1325979cf32ff5b81c10df9006fd57
[ "Apache-2.0" ]
2
2020-02-18T04:08:18.000Z
2020-05-20T07:14:44.000Z
tensorflow/python/kernel_tests/qr_op_test.py
tycho/tensorflow
27767d8e9c1325979cf32ff5b81c10df9006fd57
[ "Apache-2.0" ]
1
2021-05-26T02:25:04.000Z
2021-05-26T02:25:31.000Z
tensorflow/python/kernel_tests/qr_op_test.py
tycho/tensorflow
27767d8e9c1325979cf32ff5b81c10df9006fd57
[ "Apache-2.0" ]
3
2018-10-26T19:30:26.000Z
2021-03-19T19:30:40.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...
38.360465
80
0.625947
3743cfdf1eb458fba7e04801a6e1be033e923638
4,034
py
Python
broadcast_message_producer.py
alifzl/YomKippur
2bec1384b7ba20c818678474f5089d6203bdc491
[ "MIT" ]
1
2021-11-16T09:41:02.000Z
2021-11-16T09:41:02.000Z
broadcast_message_producer.py
atknin/YomKippur
2bec1384b7ba20c818678474f5089d6203bdc491
[ "MIT" ]
null
null
null
broadcast_message_producer.py
atknin/YomKippur
2bec1384b7ba20c818678474f5089d6203bdc491
[ "MIT" ]
1
2020-05-25T09:51:47.000Z
2020-05-25T09:51:47.000Z
import requests import json from configs.readconfig import configp import logging import pika import uuid import unittest from appium import webdriver from time import sleep from selenium.common.exceptions import NoSuchElementException import sys, logging, json, re, os from workers.whatsapp_broadcast_message_worker imp...
36.342342
191
0.630392
f7ff04a0d14c05d62eebf33a07be72d3158395ce
2,012
py
Python
tests/testKuhn.py
1696012928/RoomAI
37be09590489ab5f7c85083173e83ea31c40b76c
[ "MIT" ]
1
2018-03-02T00:49:31.000Z
2018-03-02T00:49:31.000Z
tests/testKuhn.py
1696012928/RoomAI
37be09590489ab5f7c85083173e83ea31c40b76c
[ "MIT" ]
null
null
null
tests/testKuhn.py
1696012928/RoomAI
37be09590489ab5f7c85083173e83ea31c40b76c
[ "MIT" ]
null
null
null
import unittest import roomai.kuhn import roomai.common class KuhnTester(unittest.TestCase): """ """ def testKuhn(self): """ """ for i in range(1000): players = [roomai.kuhn.Example_KuhnPokerAlwaysBetPlayer() for i in range(2)] + [roomai.kuhn.KuhnPokerChancePlayer()] ...
36.581818
128
0.644135
7e8f9a9a0306c6f4cda3607aa0d6c0e0e9199755
2,856
py
Python
packages/lektor_python_colombia_plugin/lektor_python_colombia_plugin.py
sorelyss/sitio-web
5c279f7daa3e1270285b7ae947ad4b6a962de014
[ "MIT" ]
9
2018-08-09T17:55:18.000Z
2021-12-26T20:06:03.000Z
packages/lektor_python_colombia_plugin/lektor_python_colombia_plugin.py
sorelyss/sitio-web
5c279f7daa3e1270285b7ae947ad4b6a962de014
[ "MIT" ]
110
2018-02-23T01:18:33.000Z
2021-04-02T15:50:12.000Z
packages/lektor_python_colombia_plugin/lektor_python_colombia_plugin.py
sorelyss/sitio-web
5c279f7daa3e1270285b7ae947ad4b6a962de014
[ "MIT" ]
34
2017-10-30T17:27:46.000Z
2021-10-12T23:49:23.000Z
# -*- coding: utf-8 -*- """Custom plugin to add extra functionality to the Python Colombia site.""" # Standard library imports from collections import OrderedDict import os import sys # Third party imports from PIL import Image as ImagePIL from jinja2 import Undefined # Local imports from lektor.db import Image from...
39.123288
105
0.647409
5b2b796ab665612c7e31992ad809e61f9fcc99c8
697
py
Python
opensanctions/helpers/__init__.py
quantumchips/opensanctions
56f19dcfea704480e56a311d2a807c8446237457
[ "MIT" ]
null
null
null
opensanctions/helpers/__init__.py
quantumchips/opensanctions
56f19dcfea704480e56a311d2a807c8446237457
[ "MIT" ]
19
2021-12-01T12:04:03.000Z
2022-03-01T12:03:40.000Z
opensanctions/helpers/__init__.py
quantumchips/opensanctions
56f19dcfea704480e56a311d2a807c8446237457
[ "MIT" ]
null
null
null
from opensanctions.helpers.gender import clean_gender from opensanctions.helpers.emails import clean_emails from opensanctions.helpers.phones import clean_phones from opensanctions.helpers.addresses import make_address, apply_address from opensanctions.helpers.sanctions import make_sanction from opensanctions.helpers.f...
31.681818
71
0.799139