hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
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
251
max_issues_repo_name
stringlengths
4
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
251
max_forks_repo_name
stringlengths
4
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
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
d4c5d7225aa1d551d6744fefbde6bc3d8b9f8cc2
3,220
py
Python
computation/Tests/Jetson/TF_model.py
y-x-c/Heliot
b98646966fd1d437e308abeed59668df640932de
[ "BSD-3-Clause" ]
4
2019-09-19T15:36:22.000Z
2020-02-18T09:28:54.000Z
computation/Tests/Jetson/TF_model.py
y-x-c/Heliot
b98646966fd1d437e308abeed59668df640932de
[ "BSD-3-Clause" ]
null
null
null
computation/Tests/Jetson/TF_model.py
y-x-c/Heliot
b98646966fd1d437e308abeed59668df640932de
[ "BSD-3-Clause" ]
2
2020-04-14T19:11:32.000Z
2022-01-08T18:59:02.000Z
import numpy as np import os import six.moves.urllib as urllib import sys import tarfile import tensorflow as tf import zipfile from distutils.version import StrictVersion from collections import defaultdict from io import StringIO from matplotlib import pyplot as plt from PIL import Image import json import time im...
26.178862
100
0.700621
d4c6aa1d03e45cbedd11a4f0d5c301600877fac8
1,326
py
Python
frappe/patches/v13_0/update_date_filters_in_user_settings.py
chentaoz/frappe
ee3c4943bf6177ad3b410cdb0d802af486751a65
[ "MIT" ]
3
2017-12-09T22:05:11.000Z
2019-10-22T12:03:43.000Z
frappe/patches/v13_0/update_date_filters_in_user_settings.py
chentaoz/frappe
ee3c4943bf6177ad3b410cdb0d802af486751a65
[ "MIT" ]
17
2021-03-22T18:47:14.000Z
2022-03-15T12:21:00.000Z
frappe/patches/v13_0/update_date_filters_in_user_settings.py
chentaoz/frappe
ee3c4943bf6177ad3b410cdb0d802af486751a65
[ "MIT" ]
2
2021-05-06T06:14:40.000Z
2021-05-06T10:05:29.000Z
from __future__ import unicode_literals import frappe, json from frappe.model.utils.user_settings import update_user_settings, sync_user_settings
24.109091
85
0.659879
d4c78d441d23d25b49b17e8da38c99500cd4ebd4
3,993
py
Python
miniproject/train.py
peguerosdc/ml4phy-quantum-oscillators
5ce2cc8ea9ad00e23dab45d898e51f484fca5934
[ "MIT" ]
null
null
null
miniproject/train.py
peguerosdc/ml4phy-quantum-oscillators
5ce2cc8ea9ad00e23dab45d898e51f484fca5934
[ "MIT" ]
null
null
null
miniproject/train.py
peguerosdc/ml4phy-quantum-oscillators
5ce2cc8ea9ad00e23dab45d898e51f484fca5934
[ "MIT" ]
1
2021-07-18T11:11:46.000Z
2021-07-18T11:11:46.000Z
import BoltzmannMachine as bm import QHO as qho import numpy as np import datetime # Visualization imports from IPython.display import clear_output from PIL import Image import matplotlib.pyplot as plt import matplotlib matplotlib.rcParams['figure.dpi']=300 # Set the quantum gas with N particles, a limit of 10 for the...
40.333333
104
0.69146
d4c7b73306f8c0594f64a791f8292624d0ac8d82
11,237
py
Python
Tests/Marketplace/prepare_public_index_for_private_testing.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Tests/Marketplace/prepare_public_index_for_private_testing.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Tests/Marketplace/prepare_public_index_for_private_testing.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import time import os import sys import shutil import json import argparse from zipfile import ZipFile from contextlib import contextmanager from datetime import datetime from Tests.private_build.upload_packs_private import download_and_extract_index, update_index_with_priced_packs, \ extract_packs_artifacts from T...
48.021368
129
0.707128
d4c9b736f8e2520a3fae30db6df87b55b43b886b
106
py
Python
ARMODServers/Apps/ARExperiences/apps.py
Phantomxm2021/ARMOD-Dashboard
383cf0a5e72dc5a2651f43e693f06773d5b88bbd
[ "Apache-2.0" ]
1
2021-11-04T09:03:27.000Z
2021-11-04T09:03:27.000Z
ARMODServers/Apps/ARExperiences/apps.py
Phantomxm2021/ARMOD-Dashboard
383cf0a5e72dc5a2651f43e693f06773d5b88bbd
[ "Apache-2.0" ]
null
null
null
ARMODServers/Apps/ARExperiences/apps.py
Phantomxm2021/ARMOD-Dashboard
383cf0a5e72dc5a2651f43e693f06773d5b88bbd
[ "Apache-2.0" ]
null
null
null
from django.apps import AppConfig
17.666667
37
0.783019
d4c9cb6d342d54eea3d53d2a8f44856dc1296577
2,843
py
Python
configs/_base_/datasets/flyingchairs_320x448.py
zhouzaida/mmflow
b34f0801061469f04a83133d7f5652dead1f93ce
[ "Apache-2.0" ]
1
2021-11-16T12:32:54.000Z
2021-11-16T12:32:54.000Z
configs/_base_/datasets/flyingchairs_320x448.py
xiaokekeke/mmflow
c9ab798cec832d3472cbb06f04b2d64299802168
[ "Apache-2.0" ]
null
null
null
configs/_base_/datasets/flyingchairs_320x448.py
xiaokekeke/mmflow
c9ab798cec832d3472cbb06f04b2d64299802168
[ "Apache-2.0" ]
1
2022-03-24T06:46:05.000Z
2022-03-24T06:46:05.000Z
dataset_type = 'FlyingChairs' data_root = 'data/FlyingChairs_release' img_norm_cfg = dict(mean=[0., 0., 0.], std=[255., 255., 255.], to_rgb=False) global_transform = dict( translates=(0.05, 0.05), zoom=(1.0, 1.5), shear=(0.86, 1.16), rotate=(-10., 10.)) relative_transform = dict( translates=(0.00...
31.241758
78
0.631375
d4ca74c07139ca34712a0c4f0276402a1f20a541
23,370
py
Python
plaidml2/edsl/__init__.py
ZhouXiaolin/plaidml
dac460b6ae19a62299d15eeb17b402d8c26d0c2b
[ "Apache-2.0" ]
4,535
2017-10-20T05:03:57.000Z
2022-03-30T15:42:33.000Z
plaidml2/edsl/__init__.py
ZhouXiaolin/plaidml
dac460b6ae19a62299d15eeb17b402d8c26d0c2b
[ "Apache-2.0" ]
984
2017-10-20T17:16:09.000Z
2022-03-30T05:43:18.000Z
plaidml2/edsl/__init__.py
ZhouXiaolin/plaidml
dac460b6ae19a62299d15eeb17b402d8c26d0c2b
[ "Apache-2.0" ]
492
2017-10-20T18:22:32.000Z
2022-03-30T09:00:05.000Z
# Copyright 2019 Intel Corporation. import logging from collections import namedtuple import numpy as np import six from plaidml2 import DType from plaidml2.core import TensorShape, Buffer from plaidml2.ffi import ForeignObject, ffi, ffi_call, lib logger = logging.getLogger(__name__) def __init(): """Docstrin...
29.2125
98
0.631365
d4cc2ada6fd8bd17a6303118a58e9c1a8c44ff7a
2,265
py
Python
pytorch_toolkit/face_recognition/model/common.py
AnastasiaaSenina/openvino_training_extensions
267425d64372dff5b9083dc0ca6abfc305a71449
[ "Apache-2.0" ]
1
2020-02-09T15:50:49.000Z
2020-02-09T15:50:49.000Z
pytorch_toolkit/face_recognition/model/common.py
akshayjaryal603/openvino_training_extensions
7d606a22143db0af97087709d63a2ec2aa02036c
[ "Apache-2.0" ]
28
2020-09-25T22:40:36.000Z
2022-03-12T00:37:36.000Z
pytorch_toolkit/face_recognition/model/common.py
akshayjaryal603/openvino_training_extensions
7d606a22143db0af97087709d63a2ec2aa02036c
[ "Apache-2.0" ]
1
2021-04-02T07:51:01.000Z
2021-04-02T07:51:01.000Z
""" Copyright (c) 2018 Intel Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writin...
41.944444
85
0.714349
d4cd43090d9af44b579f4587a49e6d83acfe093a
807
py
Python
src/dataclay/util/logs.py
kpavel/pyclay
275bc8af5c57301231a20cca1cc88556a9c84c79
[ "BSD-3-Clause" ]
1
2020-04-16T17:09:15.000Z
2020-04-16T17:09:15.000Z
src/dataclay/util/logs.py
kpavel/pyclay
275bc8af5c57301231a20cca1cc88556a9c84c79
[ "BSD-3-Clause" ]
35
2019-11-06T17:06:16.000Z
2021-04-12T16:27:20.000Z
src/dataclay/util/logs.py
kpavel/pyclay
275bc8af5c57301231a20cca1cc88556a9c84c79
[ "BSD-3-Clause" ]
1
2020-05-06T11:28:16.000Z
2020-05-06T11:28:16.000Z
""" Class description goes here. """ import json import logging
26.032258
70
0.581165
d4cd4596ad7f6e0187f91e645753c131d68a9a4a
845
py
Python
python/orthogonal_test.py
davxy/numeric
1e8b44a72e1d570433a5ba81ae0795a750ce5921
[ "Unlicense" ]
2
2020-05-03T17:02:44.000Z
2022-02-21T04:09:34.000Z
python/orthogonal_test.py
davxy/numeric
1e8b44a72e1d570433a5ba81ae0795a750ce5921
[ "Unlicense" ]
null
null
null
python/orthogonal_test.py
davxy/numeric
1e8b44a72e1d570433a5ba81ae0795a750ce5921
[ "Unlicense" ]
null
null
null
# Orthogonal linear system solver tests from math import sqrt import numpy as np from orthogonal import orthogonal ################################################################################ # 2x2 orthogonal matrix A = np.matrix('1 1;' '1 -1', float) A = A*1.0/sqrt(2.0) # Known terms vector b = ...
24.142857
80
0.498225
d4cecc18d5f88370e565ff6b3803a9cfe92f4765
11,056
py
Python
src/autonlp/project.py
adbmd/autonlp
8f7b5559d88775850b6818a09f178dc3407b2ab8
[ "Apache-2.0" ]
1
2021-03-08T17:47:18.000Z
2021-03-08T17:47:18.000Z
src/autonlp/project.py
adbmd/autonlp
8f7b5559d88775850b6818a09f178dc3407b2ab8
[ "Apache-2.0" ]
null
null
null
src/autonlp/project.py
adbmd/autonlp
8f7b5559d88775850b6818a09f178dc3407b2ab8
[ "Apache-2.0" ]
null
null
null
import os import shutil from dataclasses import dataclass from datetime import datetime from typing import Dict, List, Optional from huggingface_hub import Repository from loguru import logger from prettytable import PrettyTable from .splits import TEST_SPLIT, TRAIN_SPLIT, VALID_SPLIT from .tasks import TASKS from .u...
38.256055
117
0.565213
d4cf41c3907f30d0f8d4b3c715caa3ef127581dc
5,353
py
Python
backend/services/apns_util.py
xuantan/viewfinder
992209086d01be0ef6506f325cf89b84d374f969
[ "Apache-2.0" ]
645
2015-01-03T02:03:59.000Z
2021-12-03T08:43:16.000Z
backend/services/apns_util.py
hoowang/viewfinder
9caf4e75faa8070d85f605c91d4cfb52c4674588
[ "Apache-2.0" ]
null
null
null
backend/services/apns_util.py
hoowang/viewfinder
9caf4e75faa8070d85f605c91d4cfb52c4674588
[ "Apache-2.0" ]
222
2015-01-07T05:00:52.000Z
2021-12-06T09:54:26.000Z
# -*- coding: utf-8 -*- # Copyright 2012 Viewfinder Inc. All Rights Reserved. """Apple Push Notification service utilities. Original copyright for this code: https://github.com/jayridge/apnstornado TokenToBinary(): converts a hex-encoded token into a binary value CreateMessage(): formats a binary APNs message fr...
34.75974
110
0.713992
d4d089a89ed2ccdb81f62b6a9415dbcedcf723fa
25,485
py
Python
demonstrations/tutorial_kernels_module.py
jamesellis1999/qml
33c9d66712b36861dc098f9c789ba2c3ab897fdb
[ "Apache-2.0" ]
216
2020-08-01T03:18:37.000Z
2022-03-25T06:17:52.000Z
demonstrations/tutorial_kernels_module.py
jamesellis1999/qml
33c9d66712b36861dc098f9c789ba2c3ab897fdb
[ "Apache-2.0" ]
173
2020-08-05T09:24:15.000Z
2022-03-30T13:37:05.000Z
demonstrations/tutorial_kernels_module.py
jamesellis1999/qml
33c9d66712b36861dc098f9c789ba2c3ab897fdb
[ "Apache-2.0" ]
66
2020-08-01T05:02:45.000Z
2022-03-02T19:34:54.000Z
r"""Training and evaluating quantum kernels =========================================== .. meta:: :property="og:description": Kernels and alignment training with Pennylane. :property="og:image": https://pennylane.ai/qml/_images/QEK_thumbnail.png .. related:: tutorial_kernel_based_training Kernel-based tr...
40.645933
157
0.655994
d4d1efc02f1792aaf622052d335ddc24c16d8ad6
5,465
py
Python
main.py
scottkaz/PyLoopover
8f11f559c09747400fe6bb520ab521dbafa90e97
[ "MIT" ]
null
null
null
main.py
scottkaz/PyLoopover
8f11f559c09747400fe6bb520ab521dbafa90e97
[ "MIT" ]
null
null
null
main.py
scottkaz/PyLoopover
8f11f559c09747400fe6bb520ab521dbafa90e97
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import pygame import random import time ##VARIABLES TO CHANGE width = 500 height = 500 stats_height = 150 board_size = 5 window_name = "PyLoopover "+str(board_size)+"x"+str(board_size) scramble_turns = 50 t_round = 3 FPS = 30 ##DONT CHANGE THESE BOIS WHITE = (255,255,255) BLACK = (0,0,0) GREEN = (3...
27.882653
85
0.665691
d4d2b1d5851dc6a58371dc3c355389cf9d7d425c
179
py
Python
test3_05.py
yoojunwoong/python_review01
9bb34f4ef75f951cd090fa623728c9542e7c7c27
[ "Apache-2.0" ]
null
null
null
test3_05.py
yoojunwoong/python_review01
9bb34f4ef75f951cd090fa623728c9542e7c7c27
[ "Apache-2.0" ]
null
null
null
test3_05.py
yoojunwoong/python_review01
9bb34f4ef75f951cd090fa623728c9542e7c7c27
[ "Apache-2.0" ]
null
null
null
# for continue , continue = skip!!! for i in range(1,11): if i == 6: continue; print(i); print(i); print(i); print(i); print(i);
17.9
45
0.49162
d4d42429c658c9fa5c1d797f95b772cf6d3bbc13
12,044
py
Python
csmpe/core_plugins/csm_install_operations/exr/package_lib.py
anushreejangid/csmpe-main
c62ecb3ce4e44b188ed480d06a6d9d21967c6a2a
[ "BSD-2-Clause" ]
null
null
null
csmpe/core_plugins/csm_install_operations/exr/package_lib.py
anushreejangid/csmpe-main
c62ecb3ce4e44b188ed480d06a6d9d21967c6a2a
[ "BSD-2-Clause" ]
8
2017-04-21T05:36:37.000Z
2017-04-27T15:55:33.000Z
csmpe/core_plugins/csm_install_operations/exr/package_lib.py
anushreejangid/csmpe-main
c62ecb3ce4e44b188ed480d06a6d9d21967c6a2a
[ "BSD-2-Clause" ]
null
null
null
# ============================================================================= # # Copyright (c) 2016, Cisco Systems # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # Redistributions of source ...
42.86121
117
0.574643
d4d48c8aa150de0f108ac0a0655e92b6976fd528
41,579
py
Python
megaboat.py
xros/megaboat
e55e7959c39677ad2a0cdbb00ac88814b838d3e3
[ "MIT" ]
4
2015-06-07T18:44:02.000Z
2021-04-03T02:53:01.000Z
megaboat.py
xros/megaboat
e55e7959c39677ad2a0cdbb00ac88814b838d3e3
[ "MIT" ]
null
null
null
megaboat.py
xros/megaboat
e55e7959c39677ad2a0cdbb00ac88814b838d3e3
[ "MIT" ]
2
2015-03-27T04:24:55.000Z
2016-06-26T11:02:47.000Z
# -*- coding: utf-8 -*- # Copyright to Alexander Liu. # Any distrubites of this copy should inform its author. If for commercial, please inform the author for authentication. Apr 2014 import sys reload(sys) sys.setdefaultencoding('utf-8') from lxml import etree import time import json import urllib import urllib2 # Fo...
37.391187
577
0.527237
d4d56609e653c9ccb3c77b86d7440eff8168b7af
89
py
Python
root/converter/__init__.py
thasmarinho/root-image-editor
0c3e955a1f81be02fef9a488b2b45a44cf16930a
[ "MIT" ]
2
2020-08-01T02:51:48.000Z
2021-11-22T11:58:40.000Z
root/converter/__init__.py
thasmarinho/root-image-editor
0c3e955a1f81be02fef9a488b2b45a44cf16930a
[ "MIT" ]
4
2019-10-30T14:14:46.000Z
2022-03-11T23:57:52.000Z
root/converter/__init__.py
thasmarinho/root-image-editor
0c3e955a1f81be02fef9a488b2b45a44cf16930a
[ "MIT" ]
1
2021-02-21T12:18:05.000Z
2021-02-21T12:18:05.000Z
from .color_converter import ColorConverter from .scale_converter import ScaleConverter
22.25
43
0.876404
d4d7101b172b777d4c47f40c60724b8fe87dbf67
4,374
py
Python
chirun/plastex/color/__init__.py
sthagen/chirun-ncl-chirun
45897319d5203b9867b5d6e00b2db1aa90a6580c
[ "Apache-2.0" ]
5
2021-12-06T15:57:24.000Z
2022-01-24T20:34:00.000Z
chirun/plastex/color/__init__.py
sthagen/chirun-ncl-chirun
45897319d5203b9867b5d6e00b2db1aa90a6580c
[ "Apache-2.0" ]
38
2021-12-09T13:16:46.000Z
2022-03-30T11:42:13.000Z
chirun/plastex/color/__init__.py
sthagen/chirun-ncl-chirun
45897319d5203b9867b5d6e00b2db1aa90a6580c
[ "Apache-2.0" ]
1
2022-01-17T17:41:35.000Z
2022-01-17T17:41:35.000Z
from plasTeX import Command, Environment
36.45
118
0.560814
d4d711198a223af0615e717b95a37866d231b085
1,242
py
Python
ex035A11.py
gabrieleliasdev/python-cev
45390963b5112a982e673f6a6866da422bf9ae6d
[ "MIT" ]
null
null
null
ex035A11.py
gabrieleliasdev/python-cev
45390963b5112a982e673f6a6866da422bf9ae6d
[ "MIT" ]
null
null
null
ex035A11.py
gabrieleliasdev/python-cev
45390963b5112a982e673f6a6866da422bf9ae6d
[ "MIT" ]
null
null
null
print('\033[0;33;44mTeste\033[m') print('\033[4;33;44mTeste\033[m') print('\033[1;35;43mTeste\033[m') print('\033[7;32;40mTeste\033[m') print('\033[7;30mTeste\033[m') print(" - - - Testando os 40 - - -") print("\033[0;37;40mPreto\033[m") print("\033[0;30;41mVermelho\033[m") print("\033[0;30;42mVerde\033[m") print("\03...
33.567568
46
0.665056
d4d8056be31284c17cf40684370c5ac0209b3ede
1,296
py
Python
tg/release.py
TurboGears/tg2
f40a82d016d70ce560002593b4bb8f83b57f87b3
[ "MIT" ]
812
2015-01-16T22:57:52.000Z
2022-03-27T04:49:40.000Z
tg/release.py
KonstantinKlepikov/tg2
b230e98bf6f64b3620dcb4214fa45dafddb0d60f
[ "MIT" ]
74
2015-02-18T17:55:31.000Z
2021-12-13T10:41:08.000Z
tg/release.py
KonstantinKlepikov/tg2
b230e98bf6f64b3620dcb4214fa45dafddb0d60f
[ "MIT" ]
72
2015-06-10T06:02:45.000Z
2022-03-27T08:37:24.000Z
"""TurboGears project related information""" version = "2.4.3" description = "Next generation TurboGears" long_description=""" TurboGears brings together a best of breed python tools to create a flexible, full featured, and easy to use web framework. TurboGears 2 provides an integrated and well tested set of tools for...
41.806452
155
0.794753
d4d8cf9487b5b92aa26fd31970eb23caa185f9d2
816
py
Python
swm-master/swm-master/calc/mean_e_calc.py
m2lines/subgrid
3de5d14c5525a62529d43cbafccda716c74e32df
[ "MIT" ]
1
2021-11-03T01:27:16.000Z
2021-11-03T01:27:16.000Z
swm-master/swm-master/calc/mean_e_calc.py
m2lines/subgrid
3de5d14c5525a62529d43cbafccda716c74e32df
[ "MIT" ]
null
null
null
swm-master/swm-master/calc/mean_e_calc.py
m2lines/subgrid
3de5d14c5525a62529d43cbafccda716c74e32df
[ "MIT" ]
1
2021-06-24T15:58:32.000Z
2021-06-24T15:58:32.000Z
## PRODUCE MEAN CALCULATIONS AND EXPORT AS .NPY from __future__ import print_function path = '/home/mkloewer/python/swm/' import os; os.chdir(path) # change working directory import numpy as np from scipy import sparse import time as tictoc from netCDF4 import Dataset # OPTIONS runfolder = 15 print('Calculating subgri...
20.4
65
0.704657
d4d8f82be29e6cb13695308004bac74a741d2095
8,111
py
Python
bogglesolver.py
gammazero/pybogglesolver
71d2c6d6ae8c9b5f580f6b27479aea3450a2895a
[ "MIT" ]
null
null
null
bogglesolver.py
gammazero/pybogglesolver
71d2c6d6ae8c9b5f580f6b27479aea3450a2895a
[ "MIT" ]
null
null
null
bogglesolver.py
gammazero/pybogglesolver
71d2c6d6ae8c9b5f580f6b27479aea3450a2895a
[ "MIT" ]
null
null
null
""" Module to generate solutions for Boggle grids. Andrew Gillis 22 Dec. 2009 """ from __future__ import print_function import os import sys import collections import trie if sys.version < '3': range = xrange
31.076628
79
0.501911
d4db73effedd714b6a4d9b15c4a8d627cf47c849
1,151
py
Python
tests/manage/monitoring/pagerduty/test_ceph.py
MeridianExplorer/ocs-ci
a33d5116128b88f176f5eff68a3ef805125cdba1
[ "MIT" ]
null
null
null
tests/manage/monitoring/pagerduty/test_ceph.py
MeridianExplorer/ocs-ci
a33d5116128b88f176f5eff68a3ef805125cdba1
[ "MIT" ]
null
null
null
tests/manage/monitoring/pagerduty/test_ceph.py
MeridianExplorer/ocs-ci
a33d5116128b88f176f5eff68a3ef805125cdba1
[ "MIT" ]
null
null
null
import logging import pytest from ocs_ci.framework.testlib import ( managed_service_required, skipif_ms_consumer, tier4, tier4a, ) from ocs_ci.ocs import constants from ocs_ci.utility import pagerduty log = logging.getLogger(__name__)
26.159091
80
0.741095
d4db81ffa51e39a4b08cb2f618fbc4f85e8db0b8
3,442
py
Python
STANchap7.py
phineas-pta/Bayesian-Methods-for-Hackers-using-PyStan
d708faab0fdd43800e8726e2c6dd99452c8dcedb
[ "Unlicense" ]
1
2021-03-18T08:01:32.000Z
2021-03-18T08:01:32.000Z
STANchap7.py
phineas-pta/Bayesian-Methods-for-Hackers-using-PyStan
d708faab0fdd43800e8726e2c6dd99452c8dcedb
[ "Unlicense" ]
null
null
null
STANchap7.py
phineas-pta/Bayesian-Methods-for-Hackers-using-PyStan
d708faab0fdd43800e8726e2c6dd99452c8dcedb
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- import numpy as np, pandas as pd, arviz as az, prince, matplotlib.pyplot as plt, seaborn as sns from cmdstanpy import CmdStanModel #%% load data data = pd.read_csv("data/overfitting.csv", index_col = 'case_id') data.columns data.info() feature_names = data.columns.str.startswith("...
31.577982
109
0.70889
d4dcaac9477532add98d53c114feaaa486ee4a47
4,206
py
Python
watcher.py
factabulous/matgrindr
6f5d6d20e34f9b13950d654cf70afdb2e46f5d1e
[ "Apache-2.0" ]
1
2018-03-31T12:15:07.000Z
2018-03-31T12:15:07.000Z
watcher.py
factabulous/matgrindr
6f5d6d20e34f9b13950d654cf70afdb2e46f5d1e
[ "Apache-2.0" ]
null
null
null
watcher.py
factabulous/matgrindr
6f5d6d20e34f9b13950d654cf70afdb2e46f5d1e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import json import threading import os import time import mats import sys import requests import traceback import re from util import debug, error
33.11811
195
0.551831
d4dccf62068146e1f5c5000f7700eb596a2140ec
1,706
py
Python
luoxia/pipelines.py
pighui/luoxia
24daa0f1595fd2b18a4b251acf77321ef98eb534
[ "MIT" ]
2
2019-11-07T09:27:59.000Z
2019-11-16T11:36:12.000Z
luoxia/pipelines.py
pighui/luoxia
24daa0f1595fd2b18a4b251acf77321ef98eb534
[ "MIT" ]
5
2021-03-31T19:15:38.000Z
2022-03-02T14:57:57.000Z
luoxia/pipelines.py
pighui/luoxia
24daa0f1595fd2b18a4b251acf77321ef98eb534
[ "MIT" ]
1
2019-11-12T12:59:22.000Z
2019-11-12T12:59:22.000Z
# -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html import os from scrapy import Request from scrapy.pipelines.images import ImagesPipeline from luoxia import settings
32.807692
76
0.601407
d4df00044c8b020894b3ff8a98bbdaaae75f9a17
6,949
py
Python
aws_sagemaker_studio/frameworks/tensorflow_mnist/mnist.py
jpmarques19/tensorflwo-test
0ff8b06e0415075c7269820d080284a42595bb2e
[ "Apache-2.0" ]
5
2019-01-19T23:53:35.000Z
2022-01-29T14:04:31.000Z
aws_sagemaker_studio/frameworks/tensorflow_mnist/mnist.py
jpmarques19/tensorflwo-test
0ff8b06e0415075c7269820d080284a42595bb2e
[ "Apache-2.0" ]
4
2020-09-26T01:25:36.000Z
2021-08-25T16:10:50.000Z
aws_sagemaker_studio/frameworks/tensorflow_mnist/mnist.py
jpmarques19/tensorflwo-test
0ff8b06e0415075c7269820d080284a42595bb2e
[ "Apache-2.0" ]
7
2020-03-04T22:23:51.000Z
2021-07-13T14:05:46.000Z
# Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You # may not use this file except in compliance with the License. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file acc...
37.160428
94
0.689164
d4e1891a34dd9a85739bf4476b3f8a83de7af2b1
6,002
py
Python
common/util/autoware_debug_tools/scripts/stop_reason2pose.py
loop-perception/AutowareArchitectureProposal.iv
5d8dff0db51634f0c42d2a3e87ca423fbee84348
[ "Apache-2.0" ]
12
2020-09-25T08:52:59.000Z
2020-10-05T02:39:31.000Z
common/util/autoware_debug_tools/scripts/stop_reason2pose.py
loop-perception/AutowareArchitectureProposal.iv
5d8dff0db51634f0c42d2a3e87ca423fbee84348
[ "Apache-2.0" ]
7
2021-12-13T04:28:48.000Z
2022-03-14T13:53:15.000Z
common/util/autoware_debug_tools/scripts/stop_reason2pose.py
taikitanaka3/AutowareArchitectureProposal.iv
0d47ea532118c98458516a8c83fbdab3d27c6231
[ "Apache-2.0" ]
9
2020-09-27T05:27:09.000Z
2020-10-08T03:14:25.000Z
#! /usr/bin/env python3 # Copyright 2020 Tier IV, 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 la...
35.72619
94
0.653615
d4e302bb88e4c014fa9f911add690a08d53c06f0
2,578
py
Python
aiounittest/case.py
tmaila/aiounittest
c43d3b619fd6a8fd071758996a5f42310b0293dc
[ "MIT" ]
55
2017-08-18T10:24:05.000Z
2022-03-21T08:29:19.000Z
aiounittest/case.py
tmaila/aiounittest
c43d3b619fd6a8fd071758996a5f42310b0293dc
[ "MIT" ]
15
2017-09-22T13:14:43.000Z
2022-01-23T16:29:22.000Z
aiounittest/case.py
tmaila/aiounittest
c43d3b619fd6a8fd071758996a5f42310b0293dc
[ "MIT" ]
4
2019-11-26T18:08:43.000Z
2021-06-01T22:12:00.000Z
import asyncio import unittest from .helpers import async_test
29.976744
152
0.600465
d4e335bc88c686cd971644ea0114064bbbe14924
1,551
py
Python
US Flag.py
Code-Master1234/Turtle_Flags_File_Hub
d99f8bc05c4f2280f8c91cdda14005ef9c5d6236
[ "MIT" ]
null
null
null
US Flag.py
Code-Master1234/Turtle_Flags_File_Hub
d99f8bc05c4f2280f8c91cdda14005ef9c5d6236
[ "MIT" ]
null
null
null
US Flag.py
Code-Master1234/Turtle_Flags_File_Hub
d99f8bc05c4f2280f8c91cdda14005ef9c5d6236
[ "MIT" ]
null
null
null
import turtle as t t.penup() gotoy = 222 t.speed(0) t.setup(988,520) t.goto(494,260) t.pendown() for counter in range(7): t.setheading(-90) rectangle(40,988,'#B22234') t.setheading(-90) t.forward(80) t.penup() t.setheading(0) t.goto(-494,260) t.pendown() rectangle(494,280,'...
19.884615
44
0.550613
d4e4309129dbca39258000122d1486ad109432d7
1,107
py
Python
linked-list/delete_zero_sum_nodes.py
bryanlimy/technical-interview
f888a4fb2bc4d34dda6cd74b6e4215f46d5ce6d6
[ "MIT" ]
3
2020-01-20T05:12:52.000Z
2022-02-09T15:21:42.000Z
linked-list/delete_zero_sum_nodes.py
bryanlimy/technical-interview
f888a4fb2bc4d34dda6cd74b6e4215f46d5ce6d6
[ "MIT" ]
null
null
null
linked-list/delete_zero_sum_nodes.py
bryanlimy/technical-interview
f888a4fb2bc4d34dda6cd74b6e4215f46d5ce6d6
[ "MIT" ]
null
null
null
# Given a linked list, remove consecutive nodes that sums up to zero # https://www.careercup.com/question?id=5717797377146880 from util import * if __name__ == "__main__": s1 = [6, -6, 8, 4, -12, 9, 8, -8] s2 = [4, 6 - 10, 8, 9, 10, -19, 10, -18, 20, 25] s3 = [2, 3, -5, 10, 10, -5, -5, 20, 5, -5] sam...
26.357143
68
0.525745
d4e708b09e82bdf3236441c1829a0dda6f660d73
2,383
py
Python
src/azure-cli/azure/cli/command_modules/maps/custom.py
psignoret/azure-cli
1a4a043750315f9a7f2894b4287126089978b615
[ "MIT" ]
1
2019-11-15T17:28:05.000Z
2019-11-15T17:28:05.000Z
src/azure-cli/azure/cli/command_modules/maps/custom.py
psignoret/azure-cli
1a4a043750315f9a7f2894b4287126089978b615
[ "MIT" ]
2
2021-01-15T09:24:07.000Z
2021-01-15T09:30:10.000Z
src/azure-cli/azure/cli/command_modules/maps/custom.py
psignoret/azure-cli
1a4a043750315f9a7f2894b4287126089978b615
[ "MIT" ]
1
2019-11-25T19:33:05.000Z
2019-11-25T19:33:05.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
40.389831
107
0.669744
d4e813b035bc0fbeece6fd5910d8e62ac5025f2b
5,558
py
Python
examples/wsdm2022/run_seqreco_B.py
Leavingseason/wsdm2022-seqrecsys
4659edb93a96300d7a52bb0e1b9c912e3fae2a76
[ "MIT" ]
null
null
null
examples/wsdm2022/run_seqreco_B.py
Leavingseason/wsdm2022-seqrecsys
4659edb93a96300d7a52bb0e1b9c912e3fae2a76
[ "MIT" ]
null
null
null
examples/wsdm2022/run_seqreco_B.py
Leavingseason/wsdm2022-seqrecsys
4659edb93a96300d7a52bb0e1b9c912e3fae2a76
[ "MIT" ]
null
null
null
import sys import os from tempfile import TemporaryDirectory import numpy as np import tensorflow.compat.v1 as tf tf.get_logger().setLevel('ERROR') # only show error messages from recommenders.utils.timer import Timer from recommenders.utils.constants import SEED from recommenders.models.deeprec.deeprec_utils import ...
37.302013
221
0.690896
d4e8209a5a512c6f4d48304a062ee3d210b0266c
11,222
py
Python
ctypesgen/ctypedescs.py
fgrie/ctypesgen
bc1627648a1479cefd1a2c3c261dd0471358cfff
[ "BSD-2-Clause" ]
null
null
null
ctypesgen/ctypedescs.py
fgrie/ctypesgen
bc1627648a1479cefd1a2c3c261dd0471358cfff
[ "BSD-2-Clause" ]
null
null
null
ctypesgen/ctypedescs.py
fgrie/ctypesgen
bc1627648a1479cefd1a2c3c261dd0471358cfff
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python """ ctypesgen.ctypedescs contains classes to represent a C type. All of them classes are subclasses of CtypesType. Unlike in previous versions of ctypesgen, CtypesType and its subclasses are completely independent of the parser module. The most important method of CtypesType and its subclasses ...
28.848329
90
0.621012
d4e990995bc970a5eeb5c450531463a5dff36df5
2,026
py
Python
pytouch/elements.py
Krai53n/pytouch
8a1c69c4ba5981f3cb0bf00db3bcef5dd15e8375
[ "MIT" ]
null
null
null
pytouch/elements.py
Krai53n/pytouch
8a1c69c4ba5981f3cb0bf00db3bcef5dd15e8375
[ "MIT" ]
null
null
null
pytouch/elements.py
Krai53n/pytouch
8a1c69c4ba5981f3cb0bf00db3bcef5dd15e8375
[ "MIT" ]
null
null
null
from random import randint import pyxel from constants import Screen import cursors class ReachCircle(Circle): def respawn(self): self._x = randint(self._r, Screen.width - self._r) self._y = randint(self._r, Screen.height - self._r) self._r = randint(self.min_r, min(Screen.width, Scre...
21.104167
80
0.579961
d4e9e1912fd06e0dea7f2e62b354d4050bf65bf1
1,769
py
Python
app/volume/admin_process.py
cleve/varidb
fc1b10aa4d708cee1c83909f10773948cee0c539
[ "Apache-2.0" ]
null
null
null
app/volume/admin_process.py
cleve/varidb
fc1b10aa4d708cee1c83909f10773948cee0c539
[ "Apache-2.0" ]
6
2020-11-05T02:18:15.000Z
2022-03-12T00:50:09.000Z
app/volume/admin_process.py
cleve/pulzar
fc1b10aa4d708cee1c83909f10773948cee0c539
[ "Apache-2.0" ]
null
null
null
from pulzarutils.utils import Utils from pulzarutils.utils import Constants from pulzarutils.messenger import Messenger from pulzarcore.core_db import DB
38.456522
84
0.611645
d4ea75a1746392a1bad32c927e9dd06c16722c29
2,767
py
Python
tests/ssg_test_suite/profile.py
fduthilleul/scap-security-guide
f9b67869600f6c20dcb0ba83801578cec1a51bba
[ "BSD-3-Clause" ]
null
null
null
tests/ssg_test_suite/profile.py
fduthilleul/scap-security-guide
f9b67869600f6c20dcb0ba83801578cec1a51bba
[ "BSD-3-Clause" ]
null
null
null
tests/ssg_test_suite/profile.py
fduthilleul/scap-security-guide
f9b67869600f6c20dcb0ba83801578cec1a51bba
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python2 from __future__ import print_function import atexit import logging import sys import ssg_test_suite.oscap import ssg_test_suite.virt from ssg_test_suite.rule import get_viable_profiles from ssg_test_suite.virt import SnapshotStack logging.getLogger(__name__).addHandler(logging.NullHandler()) ...
38.971831
76
0.553668
d4eb283ef9b63b6cf71ae47aefac07d2d47fad48
4,218
py
Python
lib/wtforms/ext/appengine/fields.py
solidaritreebiz/Solidaritree
15cc2e10e4cec56eb4fe218166d4157fcce9bf8d
[ "MIT" ]
43
2015-01-02T11:59:27.000Z
2021-06-03T18:47:09.000Z
wtforms/ext/appengine/fields.py
skorokithakis/landing-page
d800decb3a36519e2dd86826f660f5fa4f62cf5c
[ "MIT" ]
1
2018-07-17T11:46:14.000Z
2018-07-17T11:46:14.000Z
wtforms/ext/appengine/fields.py
skorokithakis/landing-page
d800decb3a36519e2dd86826f660f5fa4f62cf5c
[ "MIT" ]
6
2018-07-14T04:58:02.000Z
2018-08-06T18:02:27.000Z
import decimal import operator import warnings from wtforms import fields, widgets
35.745763
116
0.598151
d4eb7fe555f324704c58058f0e711c3b4fd6b7fe
3,947
py
Python
mtrainsimulator.py
trevor-wieland/MTrainAI
47bab3bf3af9e5426a822a7d14586f1798674cd7
[ "MIT" ]
null
null
null
mtrainsimulator.py
trevor-wieland/MTrainAI
47bab3bf3af9e5426a822a7d14586f1798674cd7
[ "MIT" ]
null
null
null
mtrainsimulator.py
trevor-wieland/MTrainAI
47bab3bf3af9e5426a822a7d14586f1798674cd7
[ "MIT" ]
null
null
null
import mtrain import numpy as np import pandas as pd import random def simulate_games(num_players=4, domino_size=12, num_games=250, collect_data=True, debug=False, players=["Random", "Greedy", "Probability", "Neural"], file_name="PlayData/data4_12_250"): """ Runs the m...
42.902174
111
0.64682
d4ec0fc927b4e34cca6fab5d967b009070fe2201
294
py
Python
dml/errors.py
RGBCube/dml
f551821545a062e15aea1f2c2444e6016748ea34
[ "MIT" ]
2
2022-03-19T19:15:28.000Z
2022-03-19T19:15:32.000Z
dml/errors.py
RGBCube/dml
f551821545a062e15aea1f2c2444e6016748ea34
[ "MIT" ]
null
null
null
dml/errors.py
RGBCube/dml
f551821545a062e15aea1f2c2444e6016748ea34
[ "MIT" ]
null
null
null
__all__ = ("DottedMarkupLanguageException", "DecodeError")
24.5
58
0.744898
d4ec2af4e9b7cc307999482d71c793953e387022
3,336
py
Python
licenseplates/dataset.py
VaranRohila/apn
dbb5b814233accbbb49b9bfe12b7162402e3b267
[ "MIT" ]
null
null
null
licenseplates/dataset.py
VaranRohila/apn
dbb5b814233accbbb49b9bfe12b7162402e3b267
[ "MIT" ]
null
null
null
licenseplates/dataset.py
VaranRohila/apn
dbb5b814233accbbb49b9bfe12b7162402e3b267
[ "MIT" ]
null
null
null
############################################################################## # # Below code is inspired on # https://github.com/facebookresearch/detectron2/blob/master/detectron2/data/datasets/pascal_voc.py # -------------------------------------------------------- # Detectron2 # Licensed under the Apache 2.0 license...
32.705882
100
0.579436
d4ece3f334aeba88cd76ec065663f9e04ac41d64
354
py
Python
docs/examples/pytorch/resnet50/scripts/test_read_speed.py
RogerChern/DALI
be143c3bb35458549e273608f1683a99ae41968e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
docs/examples/pytorch/resnet50/scripts/test_read_speed.py
RogerChern/DALI
be143c3bb35458549e273608f1683a99ae41968e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
docs/examples/pytorch/resnet50/scripts/test_read_speed.py
RogerChern/DALI
be143c3bb35458549e273608f1683a99ae41968e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import glob import time import random filelist = glob.glob('/mnt/lustre/chenyuntao1/datasets/imagenet/train/*/*') random.shuffle(filelist) begin = time.time() for i, f in enumerate(filelist): if i == 10000: break with open(f, "rb") as fin: result = fin.read() end = time.time() print("%.1f im...
20.823529
75
0.641243
d4eced841f40608be5ce0f25f32b14e3f8c5be34
12,864
py
Python
ocellaris/solver_parts/boundary_conditions/dirichlet.py
TormodLandet/Ocellaris
6b4b2515fb881b1ed8d8fd8d8c23a8e1990ada58
[ "Apache-2.0" ]
1
2017-11-07T12:19:44.000Z
2017-11-07T12:19:44.000Z
ocellaris/solver_parts/boundary_conditions/dirichlet.py
TormodLandet/Ocellaris
6b4b2515fb881b1ed8d8fd8d8c23a8e1990ada58
[ "Apache-2.0" ]
null
null
null
ocellaris/solver_parts/boundary_conditions/dirichlet.py
TormodLandet/Ocellaris
6b4b2515fb881b1ed8d8fd8d8c23a8e1990ada58
[ "Apache-2.0" ]
2
2018-05-02T17:17:01.000Z
2019-03-11T13:09:40.000Z
# Copyright (C) 2015-2019 Tormod Landet # SPDX-License-Identifier: Apache-2.0 import dolfin from . import register_boundary_condition, BoundaryConditionCreator from ocellaris.utils import ( CodedExpression, OcellarisCppExpression, OcellarisError, verify_field_variable_definition, )
38.981818
108
0.615127
d4ed66dc63c65bd461e9e3340f0322d30f2b6c89
319
py
Python
count_split_inversions/test_count_split_inversions.py
abaldwin/algorithms
8c8722394c9115c572dadcd8ab601885512fd494
[ "Apache-2.0" ]
null
null
null
count_split_inversions/test_count_split_inversions.py
abaldwin/algorithms
8c8722394c9115c572dadcd8ab601885512fd494
[ "Apache-2.0" ]
null
null
null
count_split_inversions/test_count_split_inversions.py
abaldwin/algorithms
8c8722394c9115c572dadcd8ab601885512fd494
[ "Apache-2.0" ]
null
null
null
import unittest from count_split_inversions import count_inversions if __name__ == '__main__': unittest.main()
22.785714
51
0.705329
d4ee6e97a2bc58c8bc3ccf8cb1ebf6364e70cd9d
3,906
py
Python
python/chronos/test/bigdl/chronos/forecaster/tf/test_seq2seq_keras_forecaster.py
Forest216/BigDL
840da9a2eaf395978dd83730b02aa5e5dfbd7989
[ "Apache-2.0" ]
null
null
null
python/chronos/test/bigdl/chronos/forecaster/tf/test_seq2seq_keras_forecaster.py
Forest216/BigDL
840da9a2eaf395978dd83730b02aa5e5dfbd7989
[ "Apache-2.0" ]
null
null
null
python/chronos/test/bigdl/chronos/forecaster/tf/test_seq2seq_keras_forecaster.py
Forest216/BigDL
840da9a2eaf395978dd83730b02aa5e5dfbd7989
[ "Apache-2.0" ]
null
null
null
# # Copyright 2016 The BigDL Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
38.294118
84
0.615463
d4eeb6ee82889a7b906d047189dd7b8bb9659a33
1,922
py
Python
examples/SubOrbitalFlight.py
nicolaikd/sl-ksp
cc1e239570e10428d11a41a26b33947b54f7f0ec
[ "MIT" ]
7
2021-01-11T15:39:56.000Z
2021-08-21T18:44:04.000Z
examples/SubOrbitalFlight.py
nicolaikd/sl-ksp
cc1e239570e10428d11a41a26b33947b54f7f0ec
[ "MIT" ]
1
2021-04-17T13:07:41.000Z
2021-04-21T16:21:35.000Z
examples/SubOrbitalFlight.py
nicolaikd/sl-ksp
cc1e239570e10428d11a41a26b33947b54f7f0ec
[ "MIT" ]
2
2021-03-17T16:36:23.000Z
2021-05-05T14:40:59.000Z
import time import krpc conn = krpc.connect(name='Sub-orbital flight') vessel = conn.space_center.active_vessel vessel.auto_pilot.target_pitch_and_heading(90, 90) vessel.auto_pilot.engage() vessel.control.throttle = 1 time.sleep(1) print('Launch!') vessel.control.activate_next_stage() fuel_amount = conn.get_call(ve...
30.03125
77
0.774714
d4ef39805175a5dc26b4a7a21bf430a89fe73653
321
py
Python
part02/part02-e11_rows_and_columns/src/rows_and_columns.py
davide-butera/data-analysis-with-python
78ba3d3d060ddb305bfd84b9a122409c15c47006
[ "MIT" ]
null
null
null
part02/part02-e11_rows_and_columns/src/rows_and_columns.py
davide-butera/data-analysis-with-python
78ba3d3d060ddb305bfd84b9a122409c15c47006
[ "MIT" ]
null
null
null
part02/part02-e11_rows_and_columns/src/rows_and_columns.py
davide-butera/data-analysis-with-python
78ba3d3d060ddb305bfd84b9a122409c15c47006
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import numpy as np if __name__ == "__main__": main()
16.894737
37
0.601246
d4efd4c2ab810bf4c725de159e2f410b24aea731
18,031
py
Python
ramp-database/ramp_database/tools/leaderboard.py
kegl/ramp-board
6373bf02efc096e02b26320e4f11edd00f9e5752
[ "BSD-3-Clause" ]
null
null
null
ramp-database/ramp_database/tools/leaderboard.py
kegl/ramp-board
6373bf02efc096e02b26320e4f11edd00f9e5752
[ "BSD-3-Clause" ]
null
null
null
ramp-database/ramp_database/tools/leaderboard.py
kegl/ramp-board
6373bf02efc096e02b26320e4f11edd00f9e5752
[ "BSD-3-Clause" ]
null
null
null
from distutils.version import LooseVersion from itertools import product import numpy as np import pandas as pd from ..model.event import Event from ..model.event import EventTeam from ..model.submission import Submission from ..model.team import Team from .team import get_event_team_by_name from .submission import...
39.455142
79
0.619378
d4f07209eebdfab152cf385342225e58c7210495
623
py
Python
projects/boring_stuff/03_functions/ZigZag.py
SavantLogics/Visual_Studio_Python_Scripts-master
9e3c5f8a8f685f9ae51045af9260ccc28f89d72f
[ "MIT" ]
null
null
null
projects/boring_stuff/03_functions/ZigZag.py
SavantLogics/Visual_Studio_Python_Scripts-master
9e3c5f8a8f685f9ae51045af9260ccc28f89d72f
[ "MIT" ]
null
null
null
projects/boring_stuff/03_functions/ZigZag.py
SavantLogics/Visual_Studio_Python_Scripts-master
9e3c5f8a8f685f9ae51045af9260ccc28f89d72f
[ "MIT" ]
null
null
null
#Automate the Boring Stuff with Python import time, sys indent = 0 # How many spaces to indent indent_Increasing = True # Whether the indentation is increasing or not try: while True: # The main program loop print(' ' * indent, end='') print('********') time.sleep(0.1) # Pause for 1/10th o...
27.086957
71
0.569823
d4f0759288304875f2de20fc2b91d86d509cb718
3,820
py
Python
examples/add_compensation_to_sample.py
whitews/ReFlowRESTClient
69369bbea501382291b71facea7a511ab8f7848b
[ "BSD-3-Clause" ]
null
null
null
examples/add_compensation_to_sample.py
whitews/ReFlowRESTClient
69369bbea501382291b71facea7a511ab8f7848b
[ "BSD-3-Clause" ]
null
null
null
examples/add_compensation_to_sample.py
whitews/ReFlowRESTClient
69369bbea501382291b71facea7a511ab8f7848b
[ "BSD-3-Clause" ]
null
null
null
import getpass import sys import json from reflowrestclient.utils import * host = raw_input('Host: ') username = raw_input('Username: ') password = getpass.getpass('Password: ') token = get_token(host, username, password) if token: print "Authentication successful" print '=' * 40 else: print "No token fo...
28.939394
100
0.625654
d4f12c3a663d3edb5021b78314c1afd940fc7b1a
412
py
Python
accountifie/toolkit/urls.py
imcallister/accountifie
094834c9d632e0353e3baf8d924eeb10cba0add4
[ "MIT", "Unlicense" ]
4
2017-06-02T08:48:48.000Z
2021-11-21T23:57:15.000Z
accountifie/toolkit/urls.py
imcallister/accountifie
094834c9d632e0353e3baf8d924eeb10cba0add4
[ "MIT", "Unlicense" ]
3
2020-06-05T16:55:42.000Z
2021-06-10T17:43:12.000Z
accountifie/toolkit/urls.py
imcallister/accountifie
094834c9d632e0353e3baf8d924eeb10cba0add4
[ "MIT", "Unlicense" ]
4
2015-12-15T14:27:51.000Z
2017-04-21T21:42:27.000Z
from django.conf import settings from django.conf.urls import url, static from . import views from . import jobs urlpatterns = [ url(r'^choose_company/(?P<company_id>.*)/$', views.choose_company, name='choose_company'), url(r'^cleanlogs/$', jobs.cleanlogs, name='cleanlogs'), url(r'^primecache/$', job...
27.466667
98
0.686893
d4f145e4f5e9df82c3ed3f3cc3dee6abaad4fc6c
838
py
Python
setup.py
sequentialchaos/i3-workspace-swap
86646066b9f971c1ff130a642a914ab2db8f9ae6
[ "MIT" ]
null
null
null
setup.py
sequentialchaos/i3-workspace-swap
86646066b9f971c1ff130a642a914ab2db8f9ae6
[ "MIT" ]
null
null
null
setup.py
sequentialchaos/i3-workspace-swap
86646066b9f971c1ff130a642a914ab2db8f9ae6
[ "MIT" ]
null
null
null
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="i3-workspace-swap", description='A python utility swap the content of two workplaces in i3wm', long_description=long_description, long_description_content_type="text/markdown", version="1...
27.032258
78
0.658711
d4f1aa99ca10cb206e4f7702a9c7de6f3d6dfd4e
5,975
py
Python
intersight/models/niaapi_version_regex_all_of.py
sdnit-se/intersight-python
551f7685c0f76bb8af60ec83ffb6f9672d49a4ae
[ "Apache-2.0" ]
21
2018-03-29T14:20:35.000Z
2021-10-13T05:11:41.000Z
intersight/models/niaapi_version_regex_all_of.py
sdnit-se/intersight-python
551f7685c0f76bb8af60ec83ffb6f9672d49a4ae
[ "Apache-2.0" ]
14
2018-01-30T15:45:46.000Z
2022-02-23T14:23:21.000Z
intersight/models/niaapi_version_regex_all_of.py
sdnit-se/intersight-python
551f7685c0f76bb8af60ec83ffb6f9672d49a4ae
[ "Apache-2.0" ]
18
2018-01-03T15:09:56.000Z
2021-07-16T02:21:54.000Z
# coding: utf-8 """ Cisco Intersight Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environmen...
34.738372
1,052
0.627113
d4f20508bec1fb3b3210c9cb30a6481120876c56
2,158
py
Python
ROS/fprime_ws/src/genfprime/src/genfprime/generate_modmk.py
genemerewether/fprime
fcdd071b5ddffe54ade098ca5d451903daba9eed
[ "Apache-2.0" ]
5
2019-10-22T03:41:02.000Z
2022-01-16T12:48:31.000Z
ROS/fprime_ws/src/genfprime/src/genfprime/generate_modmk.py
genemerewether/fprime
fcdd071b5ddffe54ade098ca5d451903daba9eed
[ "Apache-2.0" ]
27
2019-02-07T17:58:58.000Z
2019-08-13T00:46:24.000Z
ROS/fprime_ws/src/genfprime/src/genfprime/generate_modmk.py
genemerewether/fprime
fcdd071b5ddffe54ade098ca5d451903daba9eed
[ "Apache-2.0" ]
3
2019-01-01T18:44:37.000Z
2019-08-01T01:19:39.000Z
# # Copyright 2004-2016, by the California Institute of Technology. # ALL RIGHTS RESERVED. United States Government Sponsorship # acknowledged. Any commercial use must be negotiated with the Office # of Technology Transfer at the California Institute of Technology. # # This software may be subject to U.S. exp...
37.206897
96
0.698332
d4f37664ce2a24dbc73824c236ef48b007de021a
6,681
py
Python
tests/test_compare.py
fool65c/jupytext
4b55d2e6ccc995c04679de0863234c60c3741a69
[ "MIT" ]
1
2019-05-06T07:39:15.000Z
2019-05-06T07:39:15.000Z
tests/test_compare.py
royalosyin/jupytext
72aa6c4968da714323fbd7a7c548ee4b1274c946
[ "MIT" ]
null
null
null
tests/test_compare.py
royalosyin/jupytext
72aa6c4968da714323fbd7a7c548ee4b1274c946
[ "MIT" ]
null
null
null
import pytest from nbformat.v4.nbbase import new_notebook, new_markdown_cell, new_code_cell, new_raw_cell from jupytext.compare import compare_notebooks, NotebookDifference, test_round_trip_conversion as round_trip_conversion def test_raise_on_incomplete_markdown_cell(): ref = new_notebook(cells=[new_markdown_...
41.75625
119
0.658135
d4f450e40179e22e5b7878cbc391794da9f23b06
14,026
py
Python
Cogs/Actions.py
MrAngelDo6pa/MedBotS
89e19d831507e20d0898114502967b2ad8ecf957
[ "MIT" ]
2
2021-09-28T10:40:10.000Z
2021-11-07T14:49:07.000Z
Cogs/Actions.py
ddoskid/lol12
35c097bbebeca3043a939b902b07474473344a3c
[ "MIT" ]
null
null
null
Cogs/Actions.py
ddoskid/lol12
35c097bbebeca3043a939b902b07474473344a3c
[ "MIT" ]
null
null
null
import asyncio import discord import random import datetime from discord.ext import commands from Cogs import DisplayName from Cogs import Nullify
51.566176
138
0.654855
d4f46e1bb0a2bc679bb20e6fc52d23194cb01643
7,830
py
Python
marltoolbox/examples/tune_function_api/lola_pg_official.py
tobiasbaumann1/amd
cb6190be92dea54db04ef9202d381b96f6f6218b
[ "MIT" ]
null
null
null
marltoolbox/examples/tune_function_api/lola_pg_official.py
tobiasbaumann1/amd
cb6190be92dea54db04ef9202d381b96f6f6218b
[ "MIT" ]
null
null
null
marltoolbox/examples/tune_function_api/lola_pg_official.py
tobiasbaumann1/amd
cb6190be92dea54db04ef9202d381b96f6f6218b
[ "MIT" ]
null
null
null
########## # Additional dependencies are needed: # Follow the LOLA installation described in the tune_class_api/lola_pg_official.py file ########## import os import ray from ray import tune import marltoolbox.algos.lola.envs as lola_envs import marltoolbox.algos.lola_dice.envs as lola_dice_envs from marltoolbox.algos...
37.826087
116
0.577395
d4f523ec6d8e4a47a69a4a400a7f08b9647af175
1,154
py
Python
src/cut_link/utils.py
true7/srt
d5accd411e73ade4ed40a41759e95cb20fbda98d
[ "MIT" ]
null
null
null
src/cut_link/utils.py
true7/srt
d5accd411e73ade4ed40a41759e95cb20fbda98d
[ "MIT" ]
null
null
null
src/cut_link/utils.py
true7/srt
d5accd411e73ade4ed40a41759e95cb20fbda98d
[ "MIT" ]
null
null
null
import string import random import json from calendar import month_name from django.conf import settings SHORTLINK_MIN = getattr(settings, "SHORTLINK_MIN", 6) def json_data_func(instance): ''' Return json format data, ready for passing into AmCharts. Contains 2 items - name of the month and count of di...
27.47619
72
0.710572
d4f583072901ee0ab94c10d93e238c7f33bf30a3
4,745
py
Python
lib/tool_shed/scripts/bootstrap_tool_shed/bootstrap_util.py
blankenberg/galaxy-data-resource
ca32a1aafd64948f489a4e5cf88096f32391b1d9
[ "CC-BY-3.0" ]
null
null
null
lib/tool_shed/scripts/bootstrap_tool_shed/bootstrap_util.py
blankenberg/galaxy-data-resource
ca32a1aafd64948f489a4e5cf88096f32391b1d9
[ "CC-BY-3.0" ]
1
2015-02-21T18:48:19.000Z
2015-02-27T15:50:32.000Z
lib/tool_shed/scripts/bootstrap_tool_shed/bootstrap_util.py
blankenberg/galaxy-data-resource
ca32a1aafd64948f489a4e5cf88096f32391b1d9
[ "CC-BY-3.0" ]
3
2015-02-22T13:34:16.000Z
2020-10-01T01:28:04.000Z
#!/usr/bin/python import argparse import ConfigParser import os import sys new_path = [ os.path.join( os.getcwd(), "lib" ) ] new_path.extend( sys.path[1:] ) sys.path = new_path from galaxy import eggs eggs.require( "SQLAlchemy >= 0.4" ) import galaxy.webapps.tool_shed.model.mapping as tool_shed_model from sqlalchemy....
36.221374
140
0.641307
d4f5c78a68ce3ab44360536293de688747eefa47
1,327
py
Python
moto/dynamodbstreams/responses.py
jonnangle/moto-1
40b4e299abb732aad7f56cc0f680c0a272a46594
[ "Apache-2.0" ]
3
2020-08-04T20:29:41.000Z
2020-11-09T09:28:19.000Z
moto/dynamodbstreams/responses.py
jonnangle/moto-1
40b4e299abb732aad7f56cc0f680c0a272a46594
[ "Apache-2.0" ]
17
2020-08-28T12:53:56.000Z
2020-11-10T01:04:46.000Z
moto/dynamodbstreams/responses.py
jonnangle/moto-1
40b4e299abb732aad7f56cc0f680c0a272a46594
[ "Apache-2.0" ]
2
2017-03-02T05:59:52.000Z
2020-09-03T13:25:44.000Z
from __future__ import unicode_literals from moto.core.responses import BaseResponse from .models import dynamodbstreams_backends from six import string_types
32.365854
75
0.699322
d4f6462a075ffe065a5c5d813a1e145ed305cf7d
962
py
Python
tools/mo/openvino/tools/mo/front/mxnet/zeros_ext.py
ytorzuk-altran/openvino
68d460a3bb578a738ba0e4d0e1f2e321afa73ab0
[ "Apache-2.0" ]
1
2021-04-20T08:14:51.000Z
2021-04-20T08:14:51.000Z
tools/mo/openvino/tools/mo/front/mxnet/zeros_ext.py
ytorzuk-altran/openvino
68d460a3bb578a738ba0e4d0e1f2e321afa73ab0
[ "Apache-2.0" ]
55
2020-11-16T09:55:29.000Z
2022-03-28T13:18:15.000Z
tools/mo/openvino/tools/mo/front/mxnet/zeros_ext.py
ytorzuk-altran/openvino
68d460a3bb578a738ba0e4d0e1f2e321afa73ab0
[ "Apache-2.0" ]
1
2021-02-15T01:13:57.000Z
2021-02-15T01:13:57.000Z
# Copyright (C) 2018-2021 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np from openvino.tools.mo.front.extractor import FrontExtractorOp from openvino.tools.mo.front.mxnet.extractors.utils import get_mxnet_layer_attrs from openvino.tools.mo.ops.const import Const
28.294118
80
0.637214
d4f6be38b9352af5e1c2c173a5437dc5e5702e4d
4,359
py
Python
tools/jslib_builder.py
Jumpscale/jumpscale_portal8
3a4d56a1ba985b68fe9b525aed2486a54808332f
[ "Apache-2.0" ]
null
null
null
tools/jslib_builder.py
Jumpscale/jumpscale_portal8
3a4d56a1ba985b68fe9b525aed2486a54808332f
[ "Apache-2.0" ]
74
2015-12-28T16:17:20.000Z
2021-09-08T12:28:59.000Z
tools/jslib_builder.py
Jumpscale/jumpscale_portal8
3a4d56a1ba985b68fe9b525aed2486a54808332f
[ "Apache-2.0" ]
null
null
null
from JumpScale import j b = builder() b.do()
36.630252
175
0.566873
d4f6ca3a52378c092fed2c8021d1ffb5c3d7441c
882
py
Python
SimpleSimulator/samuelator.py
Anindya-Prithvi/CO_M21_Assignment
524bd2b866dd58a6358354cda65e2136ecd46e50
[ "Apache-2.0" ]
3
2021-09-11T05:58:46.000Z
2021-12-21T14:03:20.000Z
SimpleSimulator/samuelator.py
sc0rp10n-py/CO_M21_Assignment
524bd2b866dd58a6358354cda65e2136ecd46e50
[ "Apache-2.0" ]
null
null
null
SimpleSimulator/samuelator.py
sc0rp10n-py/CO_M21_Assignment
524bd2b866dd58a6358354cda65e2136ecd46e50
[ "Apache-2.0" ]
3
2021-09-05T12:55:38.000Z
2022-03-18T02:51:29.000Z
import sys import warnings import matplotlib.pyplot as plt from parsets import IMACC, IMG, PROGC, REGFLPC, ExecE, plot warnings.filterwarnings("ignore") MEM = IMACC(sys.stdin.read()) # Load memory from stdin PC = PROGC(0) # Start from the first instruction RF = REGFLPC() # initialize register and flags EE = ExecE...
22.615385
77
0.672336
d4f722d8fa5429ebec246908bcfdfc1e45bff80b
5,884
py
Python
utils/converters.py
LiReNa00/JDBot
c85b31e272d5394ba5debc26b8b5357fb9d3d844
[ "MIT" ]
null
null
null
utils/converters.py
LiReNa00/JDBot
c85b31e272d5394ba5debc26b8b5357fb9d3d844
[ "MIT" ]
null
null
null
utils/converters.py
LiReNa00/JDBot
c85b31e272d5394ba5debc26b8b5357fb9d3d844
[ "MIT" ]
null
null
null
import discord import re import emoji import contextlib import typing import datetime from discord.ext import commands from discord.http import Route def generate_snowflake(dt: typing.Optional[datetime.datetime] = None) -> int: """Returns a numeric snowflake pretending to be created at the given date but mor...
31.132275
127
0.593644
d4f79ba15482dc239d99373d27359b1da32e98ba
1,172
py
Python
kissim/cli/encode.py
AJK-dev/kissim
15375000d47b5d5485322fc725809f853a3659de
[ "MIT" ]
15
2020-06-23T14:46:07.000Z
2022-02-03T04:23:56.000Z
kissim/cli/encode.py
volkamerlab/kissim
35198a5efd4b651dd3952bf26ac5098fd1c4dfaa
[ "MIT" ]
66
2020-11-05T11:45:21.000Z
2021-12-15T12:11:20.000Z
kissim/cli/encode.py
AJK-dev/kissim
15375000d47b5d5485322fc725809f853a3659de
[ "MIT" ]
3
2021-02-27T12:56:27.000Z
2022-02-03T04:23:57.000Z
""" kissim.cli.encode Encode structures (generate fingerprints) from CLI arguments. """ import numpy as np from kissim.api import encode from kissim.cli.utils import configure_logger def encode_from_cli(args): """ Encode structures. Parameters ---------- args : argsparse.Namespace CLI ...
22.113208
97
0.654437
d4f91839d0ba937bffd97ff3a607f1dad1fc55ad
1,690
py
Python
distanceProfile.py
ZiyaoWei/pyMatrixProfile
1c88e1558e2bc5210d328d253572f5ff7fab1a5e
[ "MIT" ]
29
2017-08-13T04:24:16.000Z
2021-12-24T07:51:08.000Z
Matrix Profile/Implementation/pyMatrixProfile-master/distanceProfile.py
rakesh-lagare/Thesis_Work
733285eae31a3fd8b613ec30d9e2ab9befd57614
[ "Apache-2.0" ]
2
2018-02-12T11:58:53.000Z
2018-08-20T19:51:47.000Z
Matrix Profile/Implementation/pyMatrixProfile-master/distanceProfile.py
rakesh-lagare/Thesis_Work
733285eae31a3fd8b613ec30d9e2ab9befd57614
[ "Apache-2.0" ]
15
2017-08-19T23:16:45.000Z
2019-09-21T04:53:43.000Z
import numpy as np from util import * def naiveDistanceProfile(tsA, idx, m, tsB = None): """Return the distance profile of query against ts. Use the naive all pairs comparison algorithm. >>> np.round(naiveDistanceProfile(np.array([0.0, 1.0, -1.0, 0.0]), 0, 4, np.array([-1, 1, 0, 0, -1, 1])), 3) array([[ 2...
34.489796
112
0.56213
d4f945809a73eb22e79d64ed4418fcf53a6bccb9
73
py
Python
test_0000.py
theo-dim/cash-gels-thesis
de8c1b20f766aa1c58d8f692373c76683d165a66
[ "MIT" ]
null
null
null
test_0000.py
theo-dim/cash-gels-thesis
de8c1b20f766aa1c58d8f692373c76683d165a66
[ "MIT" ]
null
null
null
test_0000.py
theo-dim/cash-gels-thesis
de8c1b20f766aa1c58d8f692373c76683d165a66
[ "MIT" ]
null
null
null
import pyplot as plt import numpy as np from sklearn import linear_model
18.25
32
0.835616
d4fae683109b51c37a205d6ed228be7bbb86f029
7,868
py
Python
vnTrader/uiMainWindow.py
bttt123/TradeSim
2374b0925d34d8fb299095250c5c8834192848ce
[ "Apache-2.0" ]
null
null
null
vnTrader/uiMainWindow.py
bttt123/TradeSim
2374b0925d34d8fb299095250c5c8834192848ce
[ "Apache-2.0" ]
null
null
null
vnTrader/uiMainWindow.py
bttt123/TradeSim
2374b0925d34d8fb299095250c5c8834192848ce
[ "Apache-2.0" ]
1
2022-03-29T21:57:31.000Z
2022-03-29T21:57:31.000Z
# encoding: UTF-8 from builtins import str import psutil # import sys # PyQt 4/5 compatibility try: from PyQt4.QtGui import QMainWindow, QDialog, QDockWidget, QAction, QHeaderView, QMessageBox, QLabel, QVBoxLayout from PyQt4 import QtCore except ImportError: from PyQt5.QtWidgets import QMainWindow, QDial...
35.441441
121
0.521734
d4fb4e3677b230700c8377c0c0d538eea2ac4e41
9,431
py
Python
line_notify_core.py
ficgra/PChome-alertor
5f4e798e3130c170eb75e03215128590ed02dcf9
[ "Apache-2.0" ]
1
2021-06-16T00:36:22.000Z
2021-06-16T00:36:22.000Z
line_notify_core.py
ficgra/PChome-alertor
5f4e798e3130c170eb75e03215128590ed02dcf9
[ "Apache-2.0" ]
null
null
null
line_notify_core.py
ficgra/PChome-alertor
5f4e798e3130c170eb75e03215128590ed02dcf9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[ ]: import requests import json import re from flask import Flask, request, abort import mysql.connector as mariadb from mysql.connector import Error from linebot import ( LineBotApi, WebhookHandler ) from linebot.exceptions import ( InvalidSignatureError ) from l...
35.190299
214
0.626021
d4fd04698f7477aacd1d458ba68e94970c4579ef
1,143
py
Python
sfc_models/examples/scripts/intro_X_XX_sim_multiplier.py
MachineLP/SFC_models
d438a4e3e88534a206c761cda7a3f6a58ac3a0ac
[ "Apache-2.0" ]
21
2016-11-03T12:30:50.000Z
2022-03-24T06:54:14.000Z
sfc_models/examples/scripts/intro_X_XX_sim_multiplier.py
MachineLP/SFC_models
d438a4e3e88534a206c761cda7a3f6a58ac3a0ac
[ "Apache-2.0" ]
1
2019-04-02T02:01:27.000Z
2019-04-07T21:07:10.000Z
sfc_models/examples/scripts/intro_X_XX_sim_multiplier.py
MachineLP/SFC_models
d438a4e3e88534a206c761cda7a3f6a58ac3a0ac
[ "Apache-2.0" ]
12
2016-11-03T12:30:57.000Z
2021-09-14T23:08:23.000Z
# coding=utf-8 from sfc_models.objects import * from sfc_models.examples.Quick2DPlot import Quick2DPlot register_standard_logs('output', __file__) mod = Model() country = Country(mod, 'CO') Household(country, 'HH') ConsolidatedGovernment(country, 'GOV') FixedMarginBusiness(country, 'BUS', profit_margin=.025) Market(c...
34.636364
113
0.727909
d4fe0f781e9f3139abc2757c5c86104cc2181049
4,135
py
Python
auth_framework/settings.py
DrChai/django-auth-framework
4f9a108de66fe102ff28518b6597ad26b5855518
[ "BSD-2-Clause" ]
null
null
null
auth_framework/settings.py
DrChai/django-auth-framework
4f9a108de66fe102ff28518b6597ad26b5855518
[ "BSD-2-Clause" ]
null
null
null
auth_framework/settings.py
DrChai/django-auth-framework
4f9a108de66fe102ff28518b6597ad26b5855518
[ "BSD-2-Clause" ]
null
null
null
from importlib import import_module from django.conf import settings from django.core.signals import setting_changed SOCIALACCOUNT_MODEL = getattr(settings, "REST_AUTH_SOCIALACCOUNT_MODEL", "auth_framework.SocialAccount") DEFAULTS = { 'UNIQUE_EMAIL': True, 'RESET_PASSWORD_BY': 'pin', # 'url'| 'pin' 'SER...
33.08
117
0.641112
d4ff76335b31237c5497fc74cfffe7b1e1ab18a8
317
py
Python
shorty/models.py
gkiserpong/shorty
5795e26f3221d581223e37353bee360454532211
[ "MIT" ]
null
null
null
shorty/models.py
gkiserpong/shorty
5795e26f3221d581223e37353bee360454532211
[ "MIT" ]
null
null
null
shorty/models.py
gkiserpong/shorty
5795e26f3221d581223e37353bee360454532211
[ "MIT" ]
null
null
null
from django.db import models from shorty.manager import UrlManager
22.642857
58
0.684543
be0006e92a529db72d1a914a113e9040dbe56c1e
48,343
py
Python
test/sec_full.py
time-track-tool/time-track-tool
a1c280f32a7766e460c862633b748fa206256f24
[ "MIT" ]
null
null
null
test/sec_full.py
time-track-tool/time-track-tool
a1c280f32a7766e460c862633b748fa206256f24
[ "MIT" ]
1
2019-07-03T13:32:38.000Z
2019-07-03T13:32:38.000Z
test/sec_full.py
time-track-tool/time-track-tool
a1c280f32a7766e460c862633b748fa206256f24
[ "MIT" ]
1
2019-05-15T16:01:31.000Z
2019-05-15T16:01:31.000Z
security = """ New Web users get the Roles "User,Nosy" New Email users get the Role "User" Role "admin": User may access the rest interface (Rest Access) User may access the web interface (Web Access) User may access the xmlrpc interface (Xmlrpc Access) User may create everything (Create) User may edit everything ...
83.063574
690
0.762034
be004417db97934b47985fcf6b9c727896247c48
220
py
Python
CodeChef/problems/IMDB/main.py
object-oriented-human/competitive
9e761020e887d8980a39a64eeaeaa39af0ecd777
[ "MIT" ]
1
2022-02-21T15:43:01.000Z
2022-02-21T15:43:01.000Z
CodeChef/problems/IMDB/main.py
foooop/competitive
9e761020e887d8980a39a64eeaeaa39af0ecd777
[ "MIT" ]
null
null
null
CodeChef/problems/IMDB/main.py
foooop/competitive
9e761020e887d8980a39a64eeaeaa39af0ecd777
[ "MIT" ]
null
null
null
tc = int(input()) while tc: tc -= 1 best = 0 n, x = map(int, input().split()) for i in range(n): s, r = map(int, input().split()) if x >= s: best = max(best, r) print(best)
22
40
0.445455
be0099fd02ee40c6a15038fa8158d18b025dd23d
3,218
py
Python
tests/test_sqlite_wrapper.py
Privex/python-db
3b46b34b4310973e2e2a30a66adaa853fd10340d
[ "X11" ]
1
2019-12-19T13:12:53.000Z
2019-12-19T13:12:53.000Z
tests/test_sqlite_wrapper.py
Privex/python-db
3b46b34b4310973e2e2a30a66adaa853fd10340d
[ "X11" ]
9
2020-02-24T20:14:53.000Z
2021-04-30T21:51:04.000Z
tests/test_sqlite_wrapper.py
Privex/python-db
3b46b34b4310973e2e2a30a66adaa853fd10340d
[ "X11" ]
null
null
null
""" Tests related to :class:`.SqliteWrapper` / :class:`.ExampleWrapper` """ # from unittest import TestCase from tests.base import *
31.242718
97
0.579863
be00d24937df6595d3c59f1ae767515161b8f7ef
5,320
py
Python
var/spack/repos/builtin/packages/strumpack/package.py
robertodr/spack
9b809e01b47d48f01b3d257912fe1b752943cd3d
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
9
2018-04-18T07:51:40.000Z
2021-09-10T03:56:57.000Z
var/spack/repos/builtin/packages/strumpack/package.py
robertodr/spack
9b809e01b47d48f01b3d257912fe1b752943cd3d
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
907
2018-04-18T11:17:57.000Z
2022-03-31T13:20:25.000Z
var/spack/repos/builtin/packages/strumpack/package.py
robertodr/spack
9b809e01b47d48f01b3d257912fe1b752943cd3d
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
29
2018-11-05T16:14:23.000Z
2022-02-03T16:07:09.000Z
# Copyright 2013-2020 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 import *
42.56
95
0.638346
be011eb0f4bc43a928140f63592325792f0414b5
6,318
py
Python
actionserver/actions/action_feedbackform.py
Ajju2211/frendy-bot
b86a7a3cb3fb54b300ad9b870defb947f22dc146
[ "Apache-2.0" ]
null
null
null
actionserver/actions/action_feedbackform.py
Ajju2211/frendy-bot
b86a7a3cb3fb54b300ad9b870defb947f22dc146
[ "Apache-2.0" ]
null
null
null
actionserver/actions/action_feedbackform.py
Ajju2211/frendy-bot
b86a7a3cb3fb54b300ad9b870defb947f22dc146
[ "Apache-2.0" ]
null
null
null
from typing import Any, Text, Dict, List, Union from rasa_sdk import Action, Tracker from rasa_sdk.executor import CollectingDispatcher from rasa_sdk.forms import FormAction from rasa_sdk.events import UserUtteranceReverted, UserUttered, FollowupAction # from rasa_core.events import (UserUtteranceReverted, UserUttered...
37.832335
181
0.597341
be01c82117aa2911b241e39136b462d24502c315
793
py
Python
dash/graphs.py
fuzzylabs/wearable-my-foot
5e7d818fc51a3d3babbe1c0ec49450b1a1f030c6
[ "Apache-2.0" ]
5
2020-09-04T13:49:41.000Z
2021-07-30T02:33:49.000Z
dash/graphs.py
archena/wearable-my-foot
5e7d818fc51a3d3babbe1c0ec49450b1a1f030c6
[ "Apache-2.0" ]
2
2020-09-24T07:55:43.000Z
2020-09-24T09:30:19.000Z
dash/graphs.py
archena/wearable-my-foot
5e7d818fc51a3d3babbe1c0ec49450b1a1f030c6
[ "Apache-2.0" ]
1
2021-03-04T03:18:37.000Z
2021-03-04T03:18:37.000Z
import plotly.graph_objs as go
29.37037
59
0.493064
be01e27689f95fbc7033b6a5da2ab015674dada0
2,909
py
Python
azure-mgmt-web/azure/mgmt/web/models/app_service_certificate_resource.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
azure-mgmt-web/azure/mgmt/web/models/app_service_certificate_resource.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-mgmt-web/azure/mgmt/web/models/app_service_certificate_resource.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 ...
38.786667
102
0.625645
be0243ad78899348119ce102fbea0418e12871e2
5,379
py
Python
telethon/tl/functions/stickers.py
polisitni1/DogeClickBot
ac57eaeefca2c6ab9e48458f9f928a6a421a162e
[ "MIT" ]
null
null
null
telethon/tl/functions/stickers.py
polisitni1/DogeClickBot
ac57eaeefca2c6ab9e48458f9f928a6a421a162e
[ "MIT" ]
null
null
null
telethon/tl/functions/stickers.py
polisitni1/DogeClickBot
ac57eaeefca2c6ab9e48458f9f928a6a421a162e
[ "MIT" ]
null
null
null
"""File generated by TLObjects' generator. All changes will be ERASED""" from ...tl.tlobject import TLRequest from typing import Optional, List, Union, TYPE_CHECKING import os import struct if TYPE_CHECKING: from ...tl.types import TypeInputStickerSet, TypeInputUser, TypeInputStickerSetItem, TypeInputDocument ...
31.641176
117
0.622421
be035d1ced1e70706ec7a59e81ecf6539a9f044b
3,960
py
Python
applications/ChimeraApplication/tests/chimera_analysis_base_test.py
lkusch/Kratos
e8072d8e24ab6f312765185b19d439f01ab7b27b
[ "BSD-4-Clause" ]
778
2017-01-27T16:29:17.000Z
2022-03-30T03:01:51.000Z
applications/ChimeraApplication/tests/chimera_analysis_base_test.py
lkusch/Kratos
e8072d8e24ab6f312765185b19d439f01ab7b27b
[ "BSD-4-Clause" ]
6,634
2017-01-15T22:56:13.000Z
2022-03-31T15:03:36.000Z
applications/ChimeraApplication/tests/chimera_analysis_base_test.py
lkusch/Kratos
e8072d8e24ab6f312765185b19d439f01ab7b27b
[ "BSD-4-Clause" ]
224
2017-02-07T14:12:49.000Z
2022-03-06T23:09:34.000Z
import KratosMultiphysics import KratosMultiphysics.KratosUnittest as UnitTest import KratosMultiphysics.ChimeraApplication from KratosMultiphysics.ChimeraApplication.fluid_chimera_analysis import FluidChimeraAnalysis
58.235294
114
0.474495
be045e37a15278ad4b76fd0b0f607b024e9f6bee
925
py
Python
parsers/rss10.py
side-beach-city/SBCLinkCopyTool
12ec16eefddac215e6a2be92464fde75677c8548
[ "Apache-2.0" ]
null
null
null
parsers/rss10.py
side-beach-city/SBCLinkCopyTool
12ec16eefddac215e6a2be92464fde75677c8548
[ "Apache-2.0" ]
2
2021-06-28T01:52:31.000Z
2021-06-28T02:21:18.000Z
parsers/rss10.py
side-beach-city/SBCLinkCopyTool
12ec16eefddac215e6a2be92464fde75677c8548
[ "Apache-2.0" ]
null
null
null
import urllib.request import xml.etree.ElementTree if __name__ == "__main__": import pprint pprint.pprint(RSS10Parser("https://www.youtube.com/feeds/videos.xml?playlist_id=PLrPVslFukDQo7l5RCqAZtKDl6tUyMAFWH").getlist())
37
129
0.655135
be04a0613039c84ca76bcc0ca57e9da1601cdaf5
403
py
Python
examples/laser.py
MPI-IS/reactive_pepper
079f9b0627bfd6c9e3f2a4466c95ad662002a600
[ "BSD-3-Clause" ]
null
null
null
examples/laser.py
MPI-IS/reactive_pepper
079f9b0627bfd6c9e3f2a4466c95ad662002a600
[ "BSD-3-Clause" ]
null
null
null
examples/laser.py
MPI-IS/reactive_pepper
079f9b0627bfd6c9e3f2a4466c95ad662002a600
[ "BSD-3-Clause" ]
null
null
null
import math,time,random import pepper_interface IP = "192.168.0.147" PORT = 9559 simulation = False with pepper_interface.get(IP,PORT,simulation) as pepper: time.sleep(1.0) values,time_stamp = pepper.laser.get() print print "Front" print values["Front"] print print "Left" print va...
14.392857
56
0.647643
be04c82cd5f62929d01752841a8ec17a1254d468
291
py
Python
exercises/pt/exc_01_03_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/pt/exc_01_03_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/pt/exc_01_03_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
# Importar a classe da lngua inglesa (English) e criar um objeto nlp from ____ import ____ nlp = ____ # Processar o texto doc = ____("I like tree kangaroos and narwhals.") # Selecionar o primeiro token first_token = doc[____] # Imprimir o texto do primeito token print(first_token.____)
22.384615
69
0.75945
be04f5e587c1b673bb12feefbad95d55e8558e6e
3,946
py
Python
tests/integration/mci/test_happy_path.py
qateam123/eq
704757952323647d659c49a71975c56406ff4047
[ "MIT" ]
null
null
null
tests/integration/mci/test_happy_path.py
qateam123/eq
704757952323647d659c49a71975c56406ff4047
[ "MIT" ]
8
2020-03-24T15:24:18.000Z
2022-03-02T04:32:56.000Z
tests/integration/mci/test_happy_path.py
qateam123/eq
704757952323647d659c49a71975c56406ff4047
[ "MIT" ]
null
null
null
from tests.integration.create_token import create_token from tests.integration.integration_test_case import IntegrationTestCase
40.265306
141
0.639635
be0508937eb9d9d5130de65137f4cd2a7335c162
70,784
py
Python
src/transformers/models/hubert/modeling_tf_hubert.py
OllieBroadhurst/transformers
12428f0ef15bb3631e7a5f04672ddb05f363de97
[ "Apache-2.0" ]
1
2022-03-25T01:33:40.000Z
2022-03-25T01:33:40.000Z
src/transformers/models/hubert/modeling_tf_hubert.py
OllieBroadhurst/transformers
12428f0ef15bb3631e7a5f04672ddb05f363de97
[ "Apache-2.0" ]
1
2022-03-23T19:49:13.000Z
2022-03-23T19:49:13.000Z
src/transformers/models/hubert/modeling_tf_hubert.py
erichan1/transformers
12428f0ef15bb3631e7a5f04672ddb05f363de97
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2021 The Fairseq Authors and the HuggingFace Inc. team. 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/...
42.461908
164
0.656575
be05301485051b024d0504eecb5189daad437a58
3,242
py
Python
600/unit-1/recursion/problem-set/mit-solutions/ps2_hangman_sol1.py
marioluan/mit-opencourseware-cs
5de013f8e321fed2ff3b7a13e8929a44805db78b
[ "MIT" ]
null
null
null
600/unit-1/recursion/problem-set/mit-solutions/ps2_hangman_sol1.py
marioluan/mit-opencourseware-cs
5de013f8e321fed2ff3b7a13e8929a44805db78b
[ "MIT" ]
null
null
null
600/unit-1/recursion/problem-set/mit-solutions/ps2_hangman_sol1.py
marioluan/mit-opencourseware-cs
5de013f8e321fed2ff3b7a13e8929a44805db78b
[ "MIT" ]
1
2020-05-19T13:29:18.000Z
2020-05-19T13:29:18.000Z
# 6.00 Problem Set 2 # # Hangman # Name : Solutions # Collaborators : <your collaborators> # Time spent : <total time> # ----------------------------------- # Helper code # You don't need to understand this helper code, # but you will have to know how to use the functions import random import string WO...
32.42
108
0.604874
be05ff012f40e6f5a4b594110683f58699e3309e
412
py
Python
top/api/rest/FenxiaoRefundMessageAddRequest.py
forestsheep/middleman
34d54f9ffd9d7bcd775a8dcce4f00dd6c5bb1acd
[ "MIT" ]
null
null
null
top/api/rest/FenxiaoRefundMessageAddRequest.py
forestsheep/middleman
34d54f9ffd9d7bcd775a8dcce4f00dd6c5bb1acd
[ "MIT" ]
null
null
null
top/api/rest/FenxiaoRefundMessageAddRequest.py
forestsheep/middleman
34d54f9ffd9d7bcd775a8dcce4f00dd6c5bb1acd
[ "MIT" ]
null
null
null
''' Created by auto_sdk on 2016.04.13 ''' from top.api.base import RestApi
24.235294
55
0.75
be071e34802c8618edb66a1241ddd2e7d443b843
3,316
py
Python
image-generation/slegan/args.py
AaratiAkkapeddi/nnabla-examples
db9e5ad850303c158773aeb275e5c3821b4a3935
[ "Apache-2.0" ]
228
2017-11-20T06:05:56.000Z
2022-03-23T12:40:05.000Z
image-generation/slegan/args.py
AaratiAkkapeddi/nnabla-examples
db9e5ad850303c158773aeb275e5c3821b4a3935
[ "Apache-2.0" ]
36
2018-01-11T23:26:20.000Z
2022-03-12T00:53:38.000Z
image-generation/slegan/args.py
AaratiAkkapeddi/nnabla-examples
db9e5ad850303c158773aeb275e5c3821b4a3935
[ "Apache-2.0" ]
76
2017-11-22T22:00:00.000Z
2022-03-28T05:58:57.000Z
# Copyright 2021 Sony Corporation. # Copyright 2021 Sony Group Corporation. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
42.512821
91
0.606454
be077745c0ef294c19a02fb08ff66ab17f79fb99
898
py
Python
day1/files_ex1.py
grenn72/pynet-ons-feb19
5aff7dfa6a697214dc24818819a60b46a261d0d3
[ "Apache-2.0" ]
null
null
null
day1/files_ex1.py
grenn72/pynet-ons-feb19
5aff7dfa6a697214dc24818819a60b46a261d0d3
[ "Apache-2.0" ]
null
null
null
day1/files_ex1.py
grenn72/pynet-ons-feb19
5aff7dfa6a697214dc24818819a60b46a261d0d3
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from __future__ import print_function # READ #### f = open("my_file.txt") print("\nLoop directly over file") print("-" * 60) for line in f: print(line.strip()) print("-" * 60) f.seek(0) my_content = f.readlines() print("\nUse readlines method") print("-" * 60) for line in my_content: pri...
18.708333
42
0.614699
be09ed482ae6fd03e6f106d0795f2a118eb2425c
2,332
py
Python
test/integration_tests/test_integration_datasets_client.py
self-host/selfhost-python-client
95797ef819099174d916b10e82878c370b1cd972
[ "MIT" ]
null
null
null
test/integration_tests/test_integration_datasets_client.py
self-host/selfhost-python-client
95797ef819099174d916b10e82878c370b1cd972
[ "MIT" ]
null
null
null
test/integration_tests/test_integration_datasets_client.py
self-host/selfhost-python-client
95797ef819099174d916b10e82878c370b1cd972
[ "MIT" ]
null
null
null
import uuid from typing import List, Dict, Any import unittest from selfhost_client import SelfHostClient, DatasetType
36.4375
100
0.653945
be09ff199c76d0416c7ca2377918a44850900a71
909
py
Python
setup.py
pnxenopoulos/soccer-data-gen
bdc31be973eb12cdd9f58b04ab61ea9d5d1aa7a5
[ "MIT" ]
null
null
null
setup.py
pnxenopoulos/soccer-data-gen
bdc31be973eb12cdd9f58b04ab61ea9d5d1aa7a5
[ "MIT" ]
null
null
null
setup.py
pnxenopoulos/soccer-data-gen
bdc31be973eb12cdd9f58b04ab61ea9d5d1aa7a5
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup( name="soccergen", version="0.1", packages=find_packages(), # Project uses reStructuredText, so ensure that the docutils get # installed or upgraded on the target machine install_requires=["gfootball>=2.8",], # metadata to display on PyPI ...
39.521739
87
0.693069
be0a74b4d28b5ee5afbbd8993134c1568bbdff10
6,516
py
Python
metaspace/engine/sm/engine/tests/test_fdr.py
METASPACE2020/METASPACE
e1acd9a409f84a78eed7ca9713258c09b0e137ca
[ "Apache-2.0" ]
null
null
null
metaspace/engine/sm/engine/tests/test_fdr.py
METASPACE2020/METASPACE
e1acd9a409f84a78eed7ca9713258c09b0e137ca
[ "Apache-2.0" ]
null
null
null
metaspace/engine/sm/engine/tests/test_fdr.py
METASPACE2020/METASPACE
e1acd9a409f84a78eed7ca9713258c09b0e137ca
[ "Apache-2.0" ]
null
null
null
from itertools import product from unittest.mock import patch import pytest import numpy as np import pandas as pd from pandas.util.testing import assert_frame_equal from sm.engine.annotation.fdr import FDR, run_fdr_ranking from sm.engine.formula_parser import format_modifiers FDR_CONFIG = {'decoy_sample_size': 2} ...
32.58
121
0.558778
be0b585df12c7b4d77e31edbf4786b2ef1e4a31b
69
py
Python
tests/__init__.py
acarl005/plotille
44089a88f20b71b3314416947ae724bebbdc7739
[ "MIT" ]
2
2020-04-08T15:31:12.000Z
2020-07-01T11:04:47.000Z
tests/__init__.py
acarl005/plotille
44089a88f20b71b3314416947ae724bebbdc7739
[ "MIT" ]
9
2018-09-12T09:29:43.000Z
2020-03-15T09:11:25.000Z
tests/__init__.py
acarl005/plotille
44089a88f20b71b3314416947ae724bebbdc7739
[ "MIT" ]
1
2019-03-29T10:59:13.000Z
2019-03-29T10:59:13.000Z
from logging import getLogger getLogger('flake8').propagate = False
17.25
37
0.797101
be0c9d39fc49b73642a31f8fb89de4fff31f8d63
4,576
py
Python
umigame/nlp/labelling.py
penguinwang96825/Umigame
98d647ab6f40df08fe31d6b3bc444afe229a914e
[ "Apache-2.0" ]
null
null
null
umigame/nlp/labelling.py
penguinwang96825/Umigame
98d647ab6f40df08fe31d6b3bc444afe229a914e
[ "Apache-2.0" ]
null
null
null
umigame/nlp/labelling.py
penguinwang96825/Umigame
98d647ab6f40df08fe31d6b3bc444afe229a914e
[ "Apache-2.0" ]
1
2021-11-01T14:35:32.000Z
2021-11-01T14:35:32.000Z
import math import numpy as np import pandas as pd def fixed_time_horizon(df, column='close', lookback=20): """ Fixed-time Horizon As it relates to finance, virtually all ML papers label observations using the fixed-time horizon method. Fixed-time horizon is presented as one of the main procedures to ...
37.508197
124
0.647072
be0d1242d33adfcfc290ba70e3637aa993c895e3
4,164
py
Python
mayan/apps/converter/api.py
Dave360-crypto/mayan-edms
9cd37537461347f79ff0429e4b8b16fd2446798d
[ "Apache-2.0" ]
3
2020-02-03T11:58:51.000Z
2020-10-20T03:52:21.000Z
mayan/apps/converter/api.py
Dave360-crypto/mayan-edms
9cd37537461347f79ff0429e4b8b16fd2446798d
[ "Apache-2.0" ]
null
null
null
mayan/apps/converter/api.py
Dave360-crypto/mayan-edms
9cd37537461347f79ff0429e4b8b16fd2446798d
[ "Apache-2.0" ]
2
2020-10-24T11:10:06.000Z
2021-03-03T20:05:38.000Z
from __future__ import absolute_import import hashlib import logging import os from django.utils.encoding import smart_str from common.conf.settings import TEMPORARY_DIRECTORY from common.utils import fs_cleanup from .exceptions import OfficeConversionError, UnknownFileFormat from .literals import (DEFAULT_PAGE_NUM...
32.53125
180
0.68828
be0d8286d98d561dd73b8ad4757e80b16c93f068
2,798
py
Python
LogisticRegression/learn.py
ValYouW/DeepLearningCourse
d7d9edc60075f9078ec3f41074c958eaa7854964
[ "MIT" ]
null
null
null
LogisticRegression/learn.py
ValYouW/DeepLearningCourse
d7d9edc60075f9078ec3f41074c958eaa7854964
[ "MIT" ]
null
null
null
LogisticRegression/learn.py
ValYouW/DeepLearningCourse
d7d9edc60075f9078ec3f41074c958eaa7854964
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import matplotlib.pyplot as plt import utils if __name__ == '__main__': main()
32.534884
105
0.605075
be0d8c6e88406117103733f22d2fc8dd5f14eae8
30,231
py
Python
ignite/handlers/time_profilers.py
iamhardikat11/ignite
0666b407f7cdba81842014c6026e33b66113bb94
[ "BSD-3-Clause" ]
4,119
2017-11-23T18:10:37.000Z
2022-03-31T05:31:27.000Z
ignite/handlers/time_profilers.py
iamhardikat11/ignite
0666b407f7cdba81842014c6026e33b66113bb94
[ "BSD-3-Clause" ]
1,838
2017-11-24T11:19:25.000Z
2022-03-31T09:08:18.000Z
ignite/handlers/time_profilers.py
iamhardikat11/ignite
0666b407f7cdba81842014c6026e33b66113bb94
[ "BSD-3-Clause" ]
691
2017-11-24T10:57:33.000Z
2022-03-29T02:19:44.000Z
import functools from collections import OrderedDict from typing import Any, Callable, Dict, List, Mapping, Sequence, Tuple, Union, cast import torch from ignite.engine import Engine, EventEnum, Events from ignite.handlers.timing import Timer
38.412961
119
0.582978
be0e7ba87c886d267ec11352e01c184c5af3e8dc
9,671
py
Python
bellmanford.py
asmodehn/aiokraken
b260bd41d5aa091e6a4f1818328426fbe6f625c0
[ "MIT" ]
null
null
null
bellmanford.py
asmodehn/aiokraken
b260bd41d5aa091e6a4f1818328426fbe6f625c0
[ "MIT" ]
82
2019-08-30T09:37:49.000Z
2022-03-29T14:53:22.000Z
bellmanford.py
asmodehn/aiokraken
b260bd41d5aa091e6a4f1818328426fbe6f625c0
[ "MIT" ]
null
null
null
""" Bellman Ford Arbitrage implementation over websocket API. """ from __future__ import annotations from collections import namedtuple from datetime import datetime from decimal import Decimal from math import log import pandas as pd import numpy as np import asyncio import typing from aiokraken.model.assetpair imp...
39.798354
156
0.58722