hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
052b56268ce97e8223cc55081317fc06ca8226d0
5,408
py
Python
Image_classifier/Training.py
Shourov1702040/Projects
394aa034bc10e1bf78fef596a7d8d15324e09919
[ "MIT" ]
4
2021-12-14T14:47:41.000Z
2022-03-11T06:58:09.000Z
Image_classifier/Training.py
Shourov1702040/Projects
394aa034bc10e1bf78fef596a7d8d15324e09919
[ "MIT" ]
null
null
null
Image_classifier/Training.py
Shourov1702040/Projects
394aa034bc10e1bf78fef596a7d8d15324e09919
[ "MIT" ]
2
2021-07-18T11:40:45.000Z
2022-03-11T06:57:58.000Z
import numpy as np import cv2 import os from sklearn.model_selection import train_test_split import matplotlib.pyplot as plt from keras.preprocessing.image import ImageDataGenerator from keras.utils.np_utils import to_categorical from keras.models import Sequential from keras.layers import Dense from keras.optimizers i...
33.590062
104
0.68787
bb705add25b08efe9268ce108f3f2733067c794a
2,665
py
Python
freecad/cadquery2workbench/init_gui.py
jpmlt/freecad-cadquery2-workbench
6c488df2b8bfb767c0a02bbf8e4de9d00fc114e8
[ "Apache-2.0" ]
14
2021-12-02T23:38:48.000Z
2022-03-24T13:23:33.000Z
freecad/cadquery2workbench/init_gui.py
jpmlt/freecad-cadquery2-workbench
6c488df2b8bfb767c0a02bbf8e4de9d00fc114e8
[ "Apache-2.0" ]
2
2022-01-19T03:40:35.000Z
2022-03-05T00:38:10.000Z
freecad/cadquery2workbench/init_gui.py
jpmlt/freecad-cadquery2-workbench
6c488df2b8bfb767c0a02bbf8e4de9d00fc114e8
[ "Apache-2.0" ]
null
null
null
"""init_gui.py is loaded each time the CadQuery workbench is activate in FreeCAD.""" # (c) 2021-2021 Jean-Paul (jpmlt) Apache 2.0 License # Fork of freecad-cadquery-module made for cadquery1.0 by # (c) 2014-2018 Jeremy Wright Apache 2.0 License import os import FreeCAD as App import FreeCADGui as Gui import cadquery as...
36.013514
90
0.627767
c53b82fab8ec41e10c6ce70c242c9e3efb35a162
11,101
py
Python
kospeech/data/data_loader.py
hasangchun/KoSpeech
effca485e09028ea1dd733acec721c4031292ec3
[ "Apache-2.0" ]
2
2021-01-18T06:22:48.000Z
2021-04-01T07:18:51.000Z
kospeech/data/data_loader.py
hasangchun/KoSpeech
effca485e09028ea1dd733acec721c4031292ec3
[ "Apache-2.0" ]
null
null
null
kospeech/data/data_loader.py
hasangchun/KoSpeech
effca485e09028ea1dd733acec721c4031292ec3
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Soohwan Kim, Seyoung Bae, Cheolhwang Won. # @ArXiv : KoSpeech: Open-Source Toolkit for End-to-End Korean Speech Recognition # This source code is licensed under the Apache 2.0 License license found in the # LICENSE file in the root directory of this source tree. import os import math import t...
35.466454
124
0.653455
9eeb6134a64f0a44b107b6a3f0b189c2b8e401e9
3,562
py
Python
monai/handlers/classification_saver.py
dzenanz/MONAI
524c99d90891c061768766b787fe11dc9551d401
[ "Apache-2.0" ]
1
2020-10-21T22:15:50.000Z
2020-10-21T22:15:50.000Z
monai/handlers/classification_saver.py
dzenanz/MONAI
524c99d90891c061768766b787fe11dc9551d401
[ "Apache-2.0" ]
null
null
null
monai/handlers/classification_saver.py
dzenanz/MONAI
524c99d90891c061768766b787fe11dc9551d401
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 MONAI Consortium # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, s...
42.915663
110
0.681078
7e06482ccb08503119e39600c03940d7775d0fec
1,438
py
Python
DailyProgrammer/DP20140407A.py
DayGitH/Python-Challenges
bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf
[ "MIT" ]
2
2020-12-23T18:59:22.000Z
2021-04-14T13:16:09.000Z
DailyProgrammer/DP20140407A.py
DayGitH/Python-Challenges
bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf
[ "MIT" ]
null
null
null
DailyProgrammer/DP20140407A.py
DayGitH/Python-Challenges
bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf
[ "MIT" ]
null
null
null
""" [4/7/2014] Challenge #157 [Easy] The Winning Move X-Games edition https://www.reddit.com/r/dailyprogrammer/comments/22fgs1/472014_challenge_157_easy_the_winning_move_xgames/ #Description: The world championship in Tic Tac Toe, The X-Games is underway. We have been asked to write a program to see if there is a win...
21.787879
119
0.691933
b2b79dbeb2e1a9bbaa3b09db9a9a89727b3db9cb
2,132
py
Python
src/bnManipulation.py
psuto/BayesNet4Nephrology
da606b1191b9445fc90308777daaed9a77a6cc99
[ "AFL-1.1" ]
1
2021-06-22T18:05:56.000Z
2021-06-22T18:05:56.000Z
src/bnManipulation.py
psuto/BayesNet4Nephrology
da606b1191b9445fc90308777daaed9a77a6cc99
[ "AFL-1.1" ]
null
null
null
src/bnManipulation.py
psuto/BayesNet4Nephrology
da606b1191b9445fc90308777daaed9a77a6cc99
[ "AFL-1.1" ]
null
null
null
import pysmile_license class BNManipulation(): def __init__(self): pass @staticmethod def print_cpt_matrix(self, net, node_handle): cpt = net.get_node_definition(node_handle) parents = net.get_parents(node_handle) dim_count = 1 + len(parents) dim_sizes = [0] * dim_...
35.533333
84
0.570826
3363aa51fd9aa84ca55a70aa8215b347aee9233d
962
py
Python
src/base/migrations/0003_auto_20190930_0005.py
AnclaTech/minify
f986353b04687c39b6b90b65bfec61edf838f7a4
[ "Apache-2.0" ]
1
2019-11-05T18:28:22.000Z
2019-11-05T18:28:22.000Z
src/base/migrations/0003_auto_20190930_0005.py
AnclaTech/minify
f986353b04687c39b6b90b65bfec61edf838f7a4
[ "Apache-2.0" ]
9
2019-12-05T01:04:48.000Z
2021-06-10T19:26:06.000Z
src/base/migrations/0003_auto_20190930_0005.py
AnclaTech/minify
f986353b04687c39b6b90b65bfec61edf838f7a4
[ "Apache-2.0" ]
1
2020-09-24T22:21:14.000Z
2020-09-24T22:21:14.000Z
# Generated by Django 2.2.5 on 2019-09-29 23:05 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('base', '0002_posts'), ] operations = [ migrations.AlterModelOptions( name='pnotes', options={'verbose_name': 'P-Note', 'verb...
28.294118
93
0.565489
eb8e0a3b808541860a7aa11670ab2abeddc0f315
1,181
py
Python
tests/nlu/bert/camrest/test_nlu_bert_camrest.py
haojiepan1/CrossWOZ
6d7b4c4cfb73a528b76074764687906abecc90b6
[ "Apache-2.0" ]
1
2020-03-09T02:09:10.000Z
2020-03-09T02:09:10.000Z
tests/nlu/bert/camrest/test_nlu_bert_camrest.py
haojiepan1/CrossWOZ
6d7b4c4cfb73a528b76074764687906abecc90b6
[ "Apache-2.0" ]
null
null
null
tests/nlu/bert/camrest/test_nlu_bert_camrest.py
haojiepan1/CrossWOZ
6d7b4c4cfb73a528b76074764687906abecc90b6
[ "Apache-2.0" ]
null
null
null
import subprocess from convlab2.nlu.bert.camrest.nlu import BERTNLU from tests.nlu.test_nlu import BaseTestNLUCamrest class TestBERTNLU(BaseTestNLUCamrest): def test_usr(self): assert 0 == subprocess.call('cd tatk/nlu/bert/camrest && python preprocess.py {mode}'.format(mode='usr'), ...
43.740741
113
0.630821
3e35b394a63b68ebec50546ee9eb207f8e2d0eb6
12,961
py
Python
bag/io/process.py
felixonmars/BAG_framework
993e7c82418443cf32e4b802d825671b78ec56fe
[ "BSD-3-Clause" ]
123
2017-09-13T08:47:12.000Z
2022-03-23T20:14:19.000Z
bag/io/process.py
felixonmars/BAG_framework
993e7c82418443cf32e4b802d825671b78ec56fe
[ "BSD-3-Clause" ]
40
2017-11-24T15:10:23.000Z
2021-07-28T05:37:30.000Z
bag/io/process.py
felixonmars/BAG_framework
993e7c82418443cf32e4b802d825671b78ec56fe
[ "BSD-3-Clause" ]
73
2017-10-09T22:05:32.000Z
2022-03-01T09:53:11.000Z
# -*- coding: utf-8 -*- """This module provides functions to help you run external processes. """ import os import sys from .common import bag_encoding, bag_codec_error from .file import write_file import multiprocessing # noinspection PyCompatibility import concurrent.futures if sys.version_info[0] < 3: # use...
36.203911
97
0.608209
8eda37912f0227ee638edb94ec63418b5f01b194
39
py
Python
ardy/core/cmd/__init__.py
avara1986/ardy
1942413f12e117b991278cada69f478474b9b94b
[ "Apache-2.0" ]
3
2017-07-07T06:39:36.000Z
2017-11-29T23:09:37.000Z
ardy/core/cmd/__init__.py
avara1986/ardy
1942413f12e117b991278cada69f478474b9b94b
[ "Apache-2.0" ]
3
2017-07-06T20:23:30.000Z
2018-11-05T21:15:48.000Z
ardy/core/cmd/__init__.py
avara1986/ardy
1942413f12e117b991278cada69f478474b9b94b
[ "Apache-2.0" ]
null
null
null
from ardy.core.cmd.main import Command
19.5
38
0.820513
dccd4454c570cfe567ae634b21084579f68d9844
53,463
py
Python
Lib/test/test_tempfile.py
FourFront-Senior-Design/pythonenv
980b4f5c2dc3958aaca00ec98a703e5b9fb5dbec
[ "bzip2-1.0.6", "MIT" ]
null
null
null
Lib/test/test_tempfile.py
FourFront-Senior-Design/pythonenv
980b4f5c2dc3958aaca00ec98a703e5b9fb5dbec
[ "bzip2-1.0.6", "MIT" ]
1
2020-04-23T02:34:53.000Z
2020-04-23T02:34:53.000Z
Lib/test/test_tempfile.py
FourFront-Senior-Design/pythonenv
980b4f5c2dc3958aaca00ec98a703e5b9fb5dbec
[ "bzip2-1.0.6", "MIT" ]
1
2020-04-27T15:07:54.000Z
2020-04-27T15:07:54.000Z
# tempfile.py unit tests. import tempfile import errno import io import os import pathlib import signal import sys import re import warnings import contextlib import weakref from unittest import mock import unittest from test import support from test.support import script_helper if hasattr(os, 'st...
36.344663
97
0.56338
fe241c3c9bd9176e82dc732628b75d5858f5bce6
591
py
Python
pyhttptest/cli.py
NickMitin/pyhttptest
5116caf3962dab63d62bffe94b0659f435b3e2d3
[ "BSD-3-Clause" ]
142
2019-10-22T11:19:44.000Z
2021-11-09T11:05:27.000Z
pyhttptest/cli.py
NickMitin/pyhttptest
5116caf3962dab63d62bffe94b0659f435b3e2d3
[ "BSD-3-Clause" ]
5
2019-10-22T14:43:39.000Z
2020-10-09T13:25:24.000Z
pyhttptest/cli.py
NickMitin/pyhttptest
5116caf3962dab63d62bffe94b0659f435b3e2d3
[ "BSD-3-Clause" ]
14
2019-10-23T18:27:58.000Z
2020-09-22T01:07:39.000Z
import click from pyhttptest.wrappers import execute_test_scenarios @click.group() def main(): pass @main.command(short_help='Executes a test scenario from a given .json file.') @click.argument('file') def execute(file): """Executes a test scenario from a given .json file format. The command executes ...
24.625
77
0.72758
dfa1662b9caf3445d6d350eca4cb83a22f280186
68,375
py
Python
pptx/chart/xmlwriter.py
omarafifii/python-pptx
7f71e9e05e35c6c974fa89a5ebd5d794a13efd7a
[ "MIT" ]
null
null
null
pptx/chart/xmlwriter.py
omarafifii/python-pptx
7f71e9e05e35c6c974fa89a5ebd5d794a13efd7a
[ "MIT" ]
null
null
null
pptx/chart/xmlwriter.py
omarafifii/python-pptx
7f71e9e05e35c6c974fa89a5ebd5d794a13efd7a
[ "MIT" ]
null
null
null
# encoding: utf-8 """ Composers for default chart XML for various chart types. """ from __future__ import absolute_import, print_function, unicode_literals from copy import deepcopy from xml.sax.saxutils import escape from ..compat import to_unicode from ..enum.chart import XL_CHART_TYPE from ..oxml import parse_xm...
36.389037
88
0.454888
178430572241987b79cb987cc81c075835f665f7
23,754
py
Python
youtube_dl_gui/downloadmanager.py
creepertron95/youtube-dl-gui
244506757d0c36f6c5d96f35d672485534fc80b8
[ "Unlicense" ]
4
2020-11-01T13:24:57.000Z
2020-11-13T19:32:54.000Z
youtube_dl_gui/downloadmanager.py
creepertron95/youtube-dl-gui
244506757d0c36f6c5d96f35d672485534fc80b8
[ "Unlicense" ]
1
2020-10-30T00:16:13.000Z
2021-09-05T06:54:27.000Z
youtube_dl_gui/downloadmanager.py
creepertron95/youtube-dl-gui
244506757d0c36f6c5d96f35d672485534fc80b8
[ "Unlicense" ]
null
null
null
"""Youtubedlg module for managing the download process. This module is responsible for managing the download process and update the GUI interface. Attributes: MANAGER_PUB_TOPIC (string): wxPublisher subscription topic of the DownloadManager thread. WORKER_PUB_TOPIC (string): wxPublisher subscription ...
31.462252
111
0.598678
98b451713f57b32022f31827366cbc5fd414a867
1,205
py
Python
Tools/material_ammo_update.py
UmbralReaper/Community-Mod-Compilation
8d765a2ba4893e236dba087f265e6dcf1ab35b88
[ "Apache-2.0" ]
42
2020-02-10T07:13:11.000Z
2020-12-23T06:59:00.000Z
Tools/material_ammo_update.py
UmbralReaper/Community-Mod-Compilation
8d765a2ba4893e236dba087f265e6dcf1ab35b88
[ "Apache-2.0" ]
138
2020-02-12T15:17:11.000Z
2021-01-15T08:27:17.000Z
Tools/material_ammo_update.py
UmbralReaper/Community-Mod-Compilation
8d765a2ba4893e236dba087f265e6dcf1ab35b88
[ "Apache-2.0" ]
42
2020-04-02T14:58:54.000Z
2021-01-14T06:28:50.000Z
#!/usr/bin/env python3 # Make sure you have python3 installed. # Ensure that the json_formatter is kept in Tools with this script. # They must be in the same folder! # For Windows: # Using command prompt type "python material_ammo_update.py" # For Max OS X or Linux: # Swap any "\\" with "/", then run the script as in ...
28.690476
77
0.636515
a1343bbca17c4b530cf8266ada115009ba185933
8,728
py
Python
mpf/tests/test_EventPlayer.py
cloudjor/mpf
1cf6bf18b0d81120383b0b128b0ebbfa1c62717c
[ "MIT" ]
null
null
null
mpf/tests/test_EventPlayer.py
cloudjor/mpf
1cf6bf18b0d81120383b0b128b0ebbfa1c62717c
[ "MIT" ]
null
null
null
mpf/tests/test_EventPlayer.py
cloudjor/mpf
1cf6bf18b0d81120383b0b128b0ebbfa1c62717c
[ "MIT" ]
null
null
null
"""Test event player.""" from collections import namedtuple from mpf.tests.MpfTestCase import MpfTestCase class TestEventPlayer(MpfTestCase): def getConfigFile(self): return 'test_event_player.yaml' def getMachinePath(self): return 'tests/machine_files/event_players/' def test_load_and...
39.853881
106
0.671173
b3db3c71662cce95d72c1db4ac8114c3e8499dd9
9,223
py
Python
pitchshift.py
knector01/pvc
54e42e5dc850792f97a4caab48e56345eb3864ce
[ "MIT" ]
null
null
null
pitchshift.py
knector01/pvc
54e42e5dc850792f97a4caab48e56345eb3864ce
[ "MIT" ]
3
2022-02-04T03:56:23.000Z
2022-02-05T04:22:25.000Z
pitchshift.py
knector01/pvc
54e42e5dc850792f97a4caab48e56345eb3864ce
[ "MIT" ]
null
null
null
import numpy as np import scipy.signal import scipy.ndimage import matplotlib.pyplot as plt import phasevocoder import formant class PitchShifter(phasevocoder.PhaseVocoder): """ Pitch-shifts the input signal by warping the frequency spectrum """ def __init__( self, samplerate, ...
34.935606
151
0.574
7400f21e91365efeaef6a03d008691bdc837131b
34,184
py
Python
python/paddle/profiler/profiler_statistic.py
tiancaishaonvjituizi/Paddle
76f8703445b269334035a891466a284148c26734
[ "Apache-2.0" ]
1
2022-03-14T23:22:21.000Z
2022-03-14T23:22:21.000Z
python/paddle/profiler/profiler_statistic.py
Abraham-Xu/Paddle
5d08a4471973e1c2b2a595781d0a0840875a0c77
[ "Apache-2.0" ]
null
null
null
python/paddle/profiler/profiler_statistic.py
Abraham-Xu/Paddle
5d08a4471973e1c2b2a595781d0a0840875a0c77
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2022 PaddlePaddle 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 ap...
41.435152
167
0.561462
c4d2cee26d18a6b93938a3688dab4fb4ccdefaeb
9,146
py
Python
api/tests/test_views.py
GARFIELD-CAT/avito-mi-trainee-task
cae788c5ea296f0312123b3a27bacba2344754a7
[ "MIT" ]
1
2021-09-05T20:38:42.000Z
2021-09-05T20:38:42.000Z
api/tests/test_views.py
GARFIELD-CAT/avito-mi-trainee-task
cae788c5ea296f0312123b3a27bacba2344754a7
[ "MIT" ]
null
null
null
api/tests/test_views.py
GARFIELD-CAT/avito-mi-trainee-task
cae788c5ea296f0312123b3a27bacba2344754a7
[ "MIT" ]
1
2021-07-06T08:01:15.000Z
2021-07-06T08:01:15.000Z
from django.contrib.auth import get_user_model from django.urls import reverse from rest_framework import status from rest_framework.authtoken.models import Token from rest_framework.response import Response from rest_framework.test import APIClient, APITestCase from api.models import Choice, Poll, Vote User = get_us...
38.108333
79
0.62213
26551e47efc7a77969db9569494ee5dfe075120e
2,025
py
Python
cnn-cifar10-tf2/cnn-cifar10-train-TFPROFILE.py
crlishka/dl-mini-workloads
7fd776b5069daaede961501f1e2dc56c38253a18
[ "Apache-2.0" ]
4
2021-02-16T15:52:09.000Z
2022-01-24T23:52:03.000Z
cnn-cifar10-tf2/cnn-cifar10-train-TFPROFILE.py
crlishka/dl-mini-workloads
7fd776b5069daaede961501f1e2dc56c38253a18
[ "Apache-2.0" ]
6
2020-12-09T01:02:59.000Z
2021-07-14T09:37:30.000Z
cnn-cifar10-tf2/cnn-cifar10-train-TFPROFILE.py
crlishka/dl-mini-workloads
7fd776b5069daaede961501f1e2dc56c38253a18
[ "Apache-2.0" ]
null
null
null
# Example adapted from: https://www.tensorflow.org/tutorials/images/cnn (as of November 19, 2020) # Original code from web page listed as under the Apache 2.0 License (https://www.apache.org/licenses/LICENSE-2.0) # # Any modifications to the original code are also under the Apache 2.0 License import tensorflow as tf ...
40.5
114
0.688395
54142d3a43d78a77404350709368a1d0e884ff34
7,659
py
Python
verifacation.py
ihaeyong/drama-graph
60c3c216cd74bb19efd6baf836f6c7c2b42b764f
[ "MIT" ]
3
2021-04-28T07:19:39.000Z
2022-03-07T09:34:19.000Z
verifacation.py
ihaeyong/drama-graph
60c3c216cd74bb19efd6baf836f6c7c2b42b764f
[ "MIT" ]
18
2020-08-24T12:40:38.000Z
2022-03-12T00:47:14.000Z
verifacation.py
ihaeyong/drama-graph
60c3c216cd74bb19efd6baf836f6c7c2b42b764f
[ "MIT" ]
1
2020-10-15T10:09:20.000Z
2020-10-15T10:09:20.000Z
"""Helper for evaluation on the Labeled Faces in the Wild dataset """ # MIT License # # Copyright (c) 2016 David Sandberg # # 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 restrictio...
44.789474
117
0.667058
f735b4d20caffd320fd7db03fafe6d0948d2456f
4,370
py
Python
conf.py
bcattoor/topohelper-docs
63af3b365e5e3b7eac59d4c9bc574283c1d2177f
[ "Unlicense" ]
null
null
null
conf.py
bcattoor/topohelper-docs
63af3b365e5e3b7eac59d4c9bc574283c1d2177f
[ "Unlicense" ]
null
null
null
conf.py
bcattoor/topohelper-docs
63af3b365e5e3b7eac59d4c9bc574283c1d2177f
[ "Unlicense" ]
1
2020-11-13T20:42:11.000Z
2020-11-13T20:42:11.000Z
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
29.931507
116
0.653089
f34ce352f100fb851812520f7235f07150c07090
9,049
py
Python
sdk/python/pulumi_azure_nextgen/consumption/v20180630/budget.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/consumption/v20180630/budget.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/consumption/v20180630/budget.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
46.405128
416
0.652337
ba68786d35adb3a5d8a6fce028bacf5e46f2ac29
39,694
py
Python
src/transformers/models/gpt_neo/modeling_gpt_neo.py
dctelus/transformers
6786cbc4b14ebff0ac59c768cadd109391db9a08
[ "Apache-2.0" ]
3
2022-01-15T08:06:07.000Z
2022-03-10T07:13:18.000Z
src/transformers/models/gpt_neo/modeling_gpt_neo.py
arron1227/transformers
b18dfd95e1f60ae65a959a7b255fc06522170d1b
[ "Apache-2.0" ]
null
null
null
src/transformers/models/gpt_neo/modeling_gpt_neo.py
arron1227/transformers
b18dfd95e1f60ae65a959a7b255fc06522170d1b
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2021 The Eleuther AI and 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/LICENSE-...
42.773707
130
0.646874
3d1a7485044c535d7605f95e50471983761e3a28
211
py
Python
bvs/background_verification/doctype/employment_check1/test_employment_check1.py
Prabasandev/Background-Verification
1c0909bf5aac1d0d240df64373bc1ddcb74f6bd7
[ "MIT" ]
1
2021-08-19T11:16:47.000Z
2021-08-19T11:16:47.000Z
bvs/background_verification/doctype/employment_check1/test_employment_check1.py
Prabasandev/Background-Verification
1c0909bf5aac1d0d240df64373bc1ddcb74f6bd7
[ "MIT" ]
null
null
null
bvs/background_verification/doctype/employment_check1/test_employment_check1.py
Prabasandev/Background-Verification
1c0909bf5aac1d0d240df64373bc1ddcb74f6bd7
[ "MIT" ]
4
2018-03-21T05:57:54.000Z
2020-11-26T00:37:29.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2018, VHRS and Contributors # See license.txt from __future__ import unicode_literals import frappe import unittest class TestEmploymentCheck1(unittest.TestCase): pass
19.181818
46
0.772512
11b126ee8b56656c57442463c4c98541169eef24
2,017
py
Python
src/pyscipopt/__init__.py
FelixdenBreejen/PySCIPOpt
a6dbfdfd565d29da705d147fddfc732c8bc5ca93
[ "MIT" ]
null
null
null
src/pyscipopt/__init__.py
FelixdenBreejen/PySCIPOpt
a6dbfdfd565d29da705d147fddfc732c8bc5ca93
[ "MIT" ]
null
null
null
src/pyscipopt/__init__.py
FelixdenBreejen/PySCIPOpt
a6dbfdfd565d29da705d147fddfc732c8bc5ca93
[ "MIT" ]
null
null
null
__version__ = '3.1.2' # required for Python 3.8 on Windows import os if hasattr(os, 'add_dll_directory'): if os.getenv('SCIPOPTDIR'): os.add_dll_directory(os.path.join(os.getenv('SCIPOPTDIR').strip('"'), 'bin')) # export user-relevant objects: from pyscipopt.Multidict import multidict from pyscipopt.scip ...
45.840909
85
0.765493
2e268582c80f46b2e20ba21c81c2bbf8a86c608d
2,452
py
Python
rodio/rodiothread.py
miraclx/rodio
5c8b5cf3b667c3e640cf0ff3d42053137e5399a6
[ "Apache-2.0" ]
2
2019-07-12T12:53:46.000Z
2021-02-07T20:54:55.000Z
rodio/rodiothread.py
miraclx/rodio
5c8b5cf3b667c3e640cf0ff3d42053137e5399a6
[ "Apache-2.0" ]
null
null
null
rodio/rodiothread.py
miraclx/rodio
5c8b5cf3b667c3e640cf0ff3d42053137e5399a6
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ rodio: Efficient non-blocking event loops for async concurrency and I/O Think of this as AsyncIO on steroids """ import threading from .internals.debug import LogDebugger from node_events import EventEmitter __all__ = ['RodioThread', 'get_r...
26.085106
97
0.606852
4664479050446e2f69ac720032c862e8581d6663
301
py
Python
abc/001/B.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
2
2022-01-22T07:56:58.000Z
2022-01-24T00:29:37.000Z
abc/001/B.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
abc/001/B.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
m = int(input()) if m < 100: print('00') elif 100 <= m <= 5000: if m < 1000: print(f'0{int(m / 100)}') else: print(int(m / 100)) elif 6000 <= m <= 30000: print(int(m / 1000 + 50)) elif 35000 <= m <= 70000: print(int((m / 1000 - 30) / 5 + 80)) else: print('89')
20.066667
40
0.478405
d8934ab7b952e3b900a40658a313519928da4e1e
157
py
Python
app/grandchallenge/core/exceptions.py
njmhendrix/grand-challenge.org
9bc36f5e26561a78bd405e8ea5e4c0f86c95f011
[ "Apache-2.0" ]
101
2018-04-11T14:48:04.000Z
2022-03-28T00:29:48.000Z
app/grandchallenge/core/exceptions.py
njmhendrix/grand-challenge.org
9bc36f5e26561a78bd405e8ea5e4c0f86c95f011
[ "Apache-2.0" ]
1,733
2018-03-21T11:56:16.000Z
2022-03-31T14:58:30.000Z
app/grandchallenge/core/exceptions.py
njmhendrix/grand-challenge.org
9bc36f5e26561a78bd405e8ea5e4c0f86c95f011
[ "Apache-2.0" ]
42
2018-06-08T05:49:07.000Z
2022-03-29T08:43:01.000Z
class PathResolutionException(Exception): """ Raised when a path given to a template tag contained variables that could not be resolved. """
26.166667
77
0.707006
c8ba331641ca1520eee9ad216a37cc4b7ef795bf
284
py
Python
unittest/unittest_equality.py
dineshkumar2509/learning-python
e8af11ff0b396da4c3f2cfe21d14131bae4b2adb
[ "MIT" ]
86
2015-06-13T16:53:55.000Z
2022-03-24T20:56:42.000Z
unittest/unittest_equality.py
pei-zheng-yi/learning-python
55e350dfe44cf04f7d4408e76e72d2f467bd42ce
[ "MIT" ]
9
2015-05-27T07:52:44.000Z
2022-03-29T21:52:40.000Z
unittest/unittest_equality.py
pei-zheng-yi/learning-python
55e350dfe44cf04f7d4408e76e72d2f467bd42ce
[ "MIT" ]
124
2015-12-10T01:17:18.000Z
2021-11-08T04:03:38.000Z
#!/usr/bin/env python """Test for equality """ import unittest class EqualityTest(unittest.TestCase): def testEqual(self): self.failUnlessEqual(1, 3 - 2) def testNotEqual(self): self.failIfEqual(2, 3 - 2) if __name__ == '__main__': unittest.main()
14.2
38
0.640845
92e6df931873965d1dd0c053df5134b0711fbe8a
667
py
Python
4 - manipulating dataframes with pandas/Case Study - Olympic Games/1 - Using .value_counts() for ranking.py
Baidaly/datacamp-samples
09b3e253ec2c503df936298fedc3902413c987b0
[ "MIT" ]
null
null
null
4 - manipulating dataframes with pandas/Case Study - Olympic Games/1 - Using .value_counts() for ranking.py
Baidaly/datacamp-samples
09b3e253ec2c503df936298fedc3902413c987b0
[ "MIT" ]
null
null
null
4 - manipulating dataframes with pandas/Case Study - Olympic Games/1 - Using .value_counts() for ranking.py
Baidaly/datacamp-samples
09b3e253ec2c503df936298fedc3902413c987b0
[ "MIT" ]
null
null
null
''' For this exercise, you will use the pandas Series method .value_counts() to determine the top 15 countries ranked by total number of medals. Notice that .value_counts() sorts by values by default. The result is returned as a Series of counts indexed by unique entries from the original Series with values (counts) r...
39.235294
200
0.781109
00a0b1324089af4bd85a6e98081c72e695a62e7a
8,300
py
Python
mealpy/problem.py
JokerHB/mealpy
4bd00f47ed575d01f246d5fd0ef306d7c1fa5a5f
[ "MIT" ]
null
null
null
mealpy/problem.py
JokerHB/mealpy
4bd00f47ed575d01f246d5fd0ef306d7c1fa5a5f
[ "MIT" ]
null
null
null
mealpy/problem.py
JokerHB/mealpy
4bd00f47ed575d01f246d5fd0ef306d7c1fa5a5f
[ "MIT" ]
null
null
null
#!/usr/bin/env python # ------------------------------------------------------------------------------------------------------% # Created by "Thieu" at 17:28, 13/10/2021 % # ...
45.856354
159
0.474337
058bee4ed4e9043ca18c7e66da5418310064d40e
183
py
Python
utils/helper.py
Ascerte/Aion-Classic-Network-Bot
5a4763f3d493467b3ee4cd898558ad40fe253e31
[ "MIT" ]
null
null
null
utils/helper.py
Ascerte/Aion-Classic-Network-Bot
5a4763f3d493467b3ee4cd898558ad40fe253e31
[ "MIT" ]
null
null
null
utils/helper.py
Ascerte/Aion-Classic-Network-Bot
5a4763f3d493467b3ee4cd898558ad40fe253e31
[ "MIT" ]
1
2022-03-27T02:00:30.000Z
2022-03-27T02:00:30.000Z
import discord def embed_message(string, author=""): return discord.Embed( description=string, colour=discord.Colour.from_rgb(145, 48, 191) ).set_author(name=author)
26.142857
72
0.715847
b529b82c2db5b0f11d3d123fae530d006dc7adda
5,032
py
Python
tests/chainer_tests/functions_tests/array_tests/test_split_axis.py
mingxiaoh/chainer-v3
815ff00f5eaf7944d6e8a75662ff64a2fe046a4d
[ "BSD-3-Clause" ]
7
2017-05-08T07:02:40.000Z
2018-12-02T18:35:39.000Z
tests/chainer_tests/functions_tests/array_tests/test_split_axis.py
mingxiaoh/chainer-v3
815ff00f5eaf7944d6e8a75662ff64a2fe046a4d
[ "BSD-3-Clause" ]
null
null
null
tests/chainer_tests/functions_tests/array_tests/test_split_axis.py
mingxiaoh/chainer-v3
815ff00f5eaf7944d6e8a75662ff64a2fe046a4d
[ "BSD-3-Clause" ]
null
null
null
import unittest import numpy import chainer from chainer import cuda from chainer import functions from chainer import testing from chainer.testing import attr @testing.parameterize(*testing.product_dict( [ {'shape': (2, 7, 3), 'axis': 1, 'ys_section': [2, 5], 'slices': [[slice(None), slice(Non...
34.465753
78
0.594992
0351893988299f15fd775e82b1439985ced76a5f
375
py
Python
manage.py
audiolion/django-shibauth-rit
b2db5bb998b6efe8ac09b892d30370630075c816
[ "MIT" ]
4
2017-02-17T02:11:50.000Z
2018-05-29T13:07:26.000Z
manage.py
audiolion/django-shibauth-rit
b2db5bb998b6efe8ac09b892d30370630075c816
[ "MIT" ]
null
null
null
manage.py
audiolion/django-shibauth-rit
b2db5bb998b6efe8ac09b892d30370630075c816
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Future Imports from __future__ import unicode_literals, absolute_import # Standard Library Imports import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "tests.settings") from django.core.management import execute_from...
22.058824
69
0.765333
77b2c1efaed621ed28808f33ba88a6b633f7e665
11,021
py
Python
analysis/MyFFfactorsmodel.py
KevynTang/vein-project
1a49515ac112493c1b6510d9a382c3b64629ba8e
[ "MIT" ]
4
2021-10-01T04:54:01.000Z
2021-11-10T05:27:01.000Z
analysis/MyFFfactorsmodel.py
KevynTang/vein-project
1a49515ac112493c1b6510d9a382c3b64629ba8e
[ "MIT" ]
null
null
null
analysis/MyFFfactorsmodel.py
KevynTang/vein-project
1a49515ac112493c1b6510d9a382c3b64629ba8e
[ "MIT" ]
2
2021-09-27T05:31:34.000Z
2022-01-29T00:43:27.000Z
# -*- coding: utf-8 -*- import pandas as pd import numpy as np from data_source import local_source from analysis import value_strategy_tests from tqdm import tqdm as pb def fill_financial_data_to_daily_single_stock(data_fs, date_list): #data的日期列名应为TRADE_DATE或ANN_DATE date_list.rename("TRADE_DATE",inplace=True)...
51.260465
204
0.737592
f0401df879fe6ac627810fc76637dea9904a0d8b
520
py
Python
alg/ibrc/adni/eval.py
DaraOrange/mlforhealthlabpub
9db861c850c94c6cf1f8bf75ed2ad8dcbd648aa3
[ "BSD-3-Clause" ]
171
2021-02-12T10:23:19.000Z
2022-03-29T01:58:52.000Z
alg/ibrc/adni/eval.py
DaraOrange/mlforhealthlabpub
9db861c850c94c6cf1f8bf75ed2ad8dcbd648aa3
[ "BSD-3-Clause" ]
4
2021-06-01T08:18:33.000Z
2022-02-20T13:37:30.000Z
alg/ibrc/adni/eval.py
DaraOrange/mlforhealthlabpub
9db861c850c94c6cf1f8bf75ed2ad8dcbd648aa3
[ "BSD-3-Clause" ]
93
2021-02-10T03:21:59.000Z
2022-03-30T19:10:37.000Z
import dill import numpy as np with open('adni/res/res.obj', 'rb') as f: hypers0 = dill.load(f) with open('adni/res/res-age.obj', 'rb') as f: hypers1 = dill.load(f) with open('adni/res/res-apoe.obj', 'rb') as f: hypers2 = dill.load(f) with open('adni/res/res-female.obj', 'rb') as f: hypers3 = dill.load...
30.588235
49
0.65
be521060fe8928d714f483ee2777fce56bd93db8
115
py
Python
packages/algo-py/solutions/__init__.py
protiumx/algo
0c4d8dc9ca8f8ec30793f73bef9718fee2300297
[ "MIT" ]
null
null
null
packages/algo-py/solutions/__init__.py
protiumx/algo
0c4d8dc9ca8f8ec30793f73bef9718fee2300297
[ "MIT" ]
null
null
null
packages/algo-py/solutions/__init__.py
protiumx/algo
0c4d8dc9ca8f8ec30793f73bef9718fee2300297
[ "MIT" ]
null
null
null
from .algo_00 import * from .algo_01 import * from .algo_02 import * from .algo_03 import * from .algo_04 import *
19.166667
22
0.73913
553f304d35e18cb4cc1f07673008ffdfa46645e4
646
py
Python
src/wechaty_plugin_contrib/finders/finder.py
lyleshaw/python-wechaty-plugin-contrib
7c2cad7f58b918288495fa5c892f29df47c3fa84
[ "Apache-2.0" ]
null
null
null
src/wechaty_plugin_contrib/finders/finder.py
lyleshaw/python-wechaty-plugin-contrib
7c2cad7f58b918288495fa5c892f29df47c3fa84
[ "Apache-2.0" ]
null
null
null
src/wechaty_plugin_contrib/finders/finder.py
lyleshaw/python-wechaty-plugin-contrib
7c2cad7f58b918288495fa5c892f29df47c3fa84
[ "Apache-2.0" ]
null
null
null
"""Base finder for finding Room/Message""" from re import Pattern from typing import ( Callable, Optional, Union, List, ) from wechaty_plugin_contrib.config import ( Room, Contact, Message ) FinderOption = Union[str, Pattern, bool, Callable[[Union[Contact, Room, Message]], List[Union[Room...
21.533333
111
0.659443
d61d43ff6b1dec3035f054ab6d6dd3ce0cb73777
1,621
py
Python
lib/tool_shed/webapp/controllers/hg.py
rikeshi/galaxy
c536a877e4a9b3d12aa0d00fd4d5e705109a0d0a
[ "CC-BY-3.0" ]
1,085
2015-02-18T16:14:38.000Z
2022-03-30T23:52:07.000Z
lib/tool_shed/webapp/controllers/hg.py
rikeshi/galaxy
c536a877e4a9b3d12aa0d00fd4d5e705109a0d0a
[ "CC-BY-3.0" ]
11,253
2015-02-18T17:47:32.000Z
2022-03-31T21:47:03.000Z
lib/tool_shed/webapp/controllers/hg.py
rikeshi/galaxy
c536a877e4a9b3d12aa0d00fd4d5e705109a0d0a
[ "CC-BY-3.0" ]
1,000
2015-02-18T16:18:10.000Z
2022-03-29T08:22:56.000Z
import logging from mercurial.hgweb.hgwebdir_mod import hgwebdir from mercurial.hgweb.request import wsgiapplication from galaxy import web from galaxy.exceptions import ObjectNotFound from galaxy.webapps.base.controller import BaseUIController from tool_shed.util.repository_util import get_repository_by_name_and_own...
38.595238
91
0.67736
91fbbea02a4ed1a431fc05f67fcf5e5be267179d
17,097
py
Python
pxr/usd/sdf/testenv/testSdfTypes.py
DougRogers-DigitalFish/USD
d8a405a1344480f859f025c4f97085143efacb53
[ "BSD-2-Clause" ]
3,680
2016-07-26T18:28:11.000Z
2022-03-31T09:55:05.000Z
pxr/usd/sdf/testenv/testSdfTypes.py
DougRogers-DigitalFish/USD
d8a405a1344480f859f025c4f97085143efacb53
[ "BSD-2-Clause" ]
1,759
2016-07-26T19:19:59.000Z
2022-03-31T21:24:00.000Z
pxr/usd/sdf/testenv/testSdfTypes.py
DougRogers-DigitalFish/USD
d8a405a1344480f859f025c4f97085143efacb53
[ "BSD-2-Clause" ]
904
2016-07-26T18:33:40.000Z
2022-03-31T09:55:16.000Z
#!/pxrpythonsubst # # Copyright 2017 Pixar # # Licensed under the Apache License, Version 2.0 (the "Apache License") # with the following modification; you may not use this file except in # compliance with the Apache License and the following modification to it: # Section 6. Trademarks. is deleted and replaced with: # ...
44.639687
84
0.568462
55894691fdb2298774d51b57cbf2c9b80ef2c589
716
py
Python
certbot_inwx_hook/main.py
Faerbit/certbot_inwx_hook
0ef9a5de1dcccfb37dc25169f4876477396ed915
[ "MIT" ]
3
2017-05-30T17:52:41.000Z
2018-05-30T15:08:18.000Z
certbot_inwx_hook/main.py
Faerbit/certbot_inwx_hook
0ef9a5de1dcccfb37dc25169f4876477396ed915
[ "MIT" ]
1
2018-07-11T08:45:00.000Z
2018-07-11T08:45:00.000Z
certbot_inwx_hook/main.py
Faerbit/certbot_inwx_hook
0ef9a5de1dcccfb37dc25169f4876477396ed915
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os import sys import logging logging.basicConfig(stream=sys.stdout, level=logging.INFO, style="{", format="certbot_inwx_hook:{levelname}: {message}") from .constants import CERTBOT_DOMAIN_ENV, CERTBOT_VALIDATION_ENV from .inwx_challenge import InwxChallenge def deploy(): ""...
29.833333
69
0.756983
0136690adfce2871c2f168a9cba335cdf3cdbd6c
3,631
py
Python
conversion_temp.py
sebakeaaen/autovc
aecc37901528f65209dafe30ac98094ccc6ea475
[ "MIT" ]
2
2022-02-24T22:27:10.000Z
2022-03-10T22:03:45.000Z
conversion_temp.py
sebakeaaen/autovc
aecc37901528f65209dafe30ac98094ccc6ea475
[ "MIT" ]
null
null
null
conversion_temp.py
sebakeaaen/autovc
aecc37901528f65209dafe30ac98094ccc6ea475
[ "MIT" ]
null
null
null
# %% import os import pickle from re import sub import torch import numpy as np from math import ceil from model_vc_mel import Generator as mel_Generator from model_vc_stft import GeneratorSTFT as stft_Generator from model_vc_wav import GeneratorWav as wav_Generator import pandas as pd ##choose type and modify id belo...
33.62037
133
0.633159
21f07b9f1cdf480700549c7425e213e4c15b4f23
1,018
py
Python
function/python/brightics/common/utils.py
sharon1321/studio
c5ce7f6db5503f5020b2aa0c6f2e6acfc61c90c5
[ "Apache-2.0" ]
202
2018-10-23T04:37:35.000Z
2022-01-27T05:51:10.000Z
function/python/brightics/common/utils.py
sharon1321/studio
c5ce7f6db5503f5020b2aa0c6f2e6acfc61c90c5
[ "Apache-2.0" ]
444
2018-11-07T08:41:14.000Z
2022-03-16T06:48:57.000Z
function/python/brightics/common/utils.py
sharon1321/studio
c5ce7f6db5503f5020b2aa0c6f2e6acfc61c90c5
[ "Apache-2.0" ]
99
2018-11-08T04:12:13.000Z
2022-03-30T05:36:27.000Z
from brightics.common.exception import BrighticsFunctionException def get_required_parameters(func): import inspect def _check_required(param): return param.default is inspect.Parameter.empty and (param.kind is not inspect.Parameter.VAR_POSITIONAL and param.kind is not inspect.Parameter.VAR_KEYWORD) ...
32.83871
164
0.743615
9a15ebee155a4083ec869b12a3b919b161c5674a
6,954
py
Python
nemesis/register/register_model.py
lucasmonterocordal/MLOpsPython
c29c461d8d59c961c6673920cea898d90c2ca3f8
[ "MIT" ]
null
null
null
nemesis/register/register_model.py
lucasmonterocordal/MLOpsPython
c29c461d8d59c961c6673920cea898d90c2ca3f8
[ "MIT" ]
null
null
null
nemesis/register/register_model.py
lucasmonterocordal/MLOpsPython
c29c461d8d59c961c6673920cea898d90c2ca3f8
[ "MIT" ]
null
null
null
""" Copyright (C) Microsoft Corporation. All rights reserved.​ ​ Microsoft Corporation (“Microsoft”) grants you a nonexclusive, perpetual, royalty-free right to use, copy, and modify the software code provided by us ("Software Code"). You may not sublicense the Software Code or any use of it (except to your affiliates...
32.344186
79
0.619931
ea045850aa282f0484dbf564e531bc1fb562b794
717
py
Python
awacs/resource_explorer.py
mtrspringer/awacs
a5d2fe37c2a468a977536c4d6e66dda7da69717f
[ "BSD-2-Clause" ]
null
null
null
awacs/resource_explorer.py
mtrspringer/awacs
a5d2fe37c2a468a977536c4d6e66dda7da69717f
[ "BSD-2-Clause" ]
19
2020-11-30T06:43:54.000Z
2022-02-21T09:02:54.000Z
awacs/resource_explorer.py
mtrspringer/awacs
a5d2fe37c2a468a977536c4d6e66dda7da69717f
[ "BSD-2-Clause" ]
null
null
null
# Copyright (c) 2012-2013, Mark Peek <mark@peek.org> # All rights reserved. # # See LICENSE file for full license. from aws import Action as BaseAction from aws import BaseARN service_name = 'AWS Tag Editor' prefix = 'resource-explorer' class Action(BaseAction): def __init__(self, action=None): sup = su...
24.724138
70
0.686192
97afcb82f78285967220d5c07e357ec7275755ed
939
py
Python
lists/urls.py
danrneal/superlists
d8e956720429915eaee732020a2c51b884a3d143
[ "MIT" ]
null
null
null
lists/urls.py
danrneal/superlists
d8e956720429915eaee732020a2c51b884a3d143
[ "MIT" ]
null
null
null
lists/urls.py
danrneal/superlists
d8e956720429915eaee732020a2c51b884a3d143
[ "MIT" ]
null
null
null
"""superlists URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class...
37.56
79
0.679446
972e0108aa1788a5320eb4c9580e40d4f50c8a6d
46
py
Python
src/languager/__init__.py
joniumGit/languager
5a1a02c3c6b7b9f9198fbba5dc7bf19c1a9fc283
[ "MIT" ]
null
null
null
src/languager/__init__.py
joniumGit/languager
5a1a02c3c6b7b9f9198fbba5dc7bf19c1a9fc283
[ "MIT" ]
null
null
null
src/languager/__init__.py
joniumGit/languager
5a1a02c3c6b7b9f9198fbba5dc7bf19c1a9fc283
[ "MIT" ]
null
null
null
from .languages import get_language, Language
23
45
0.847826
3c46ff4ca671ee10aeeac3c598b89a8d149bfc22
2,916
py
Python
salt/modules/win_license.py
Noah-Huppert/salt
998c382f5f2c3b4cbf7d96aa6913ada6993909b3
[ "Apache-2.0" ]
19
2016-01-29T14:37:52.000Z
2022-03-30T18:08:01.000Z
salt/modules/win_license.py
Noah-Huppert/salt
998c382f5f2c3b4cbf7d96aa6913ada6993909b3
[ "Apache-2.0" ]
223
2016-03-02T16:39:41.000Z
2022-03-03T12:26:35.000Z
salt/modules/win_license.py
Noah-Huppert/salt
998c382f5f2c3b4cbf7d96aa6913ada6993909b3
[ "Apache-2.0" ]
64
2016-02-04T19:45:26.000Z
2021-12-15T02:02:31.000Z
# -*- coding: utf-8 -*- """ This module allows you to manage windows licensing via slmgr.vbs .. code-block:: bash salt '*' license.install XXXXX-XXXXX-XXXXX-XXXXX-XXXXX """ # Import Python Libs from __future__ import absolute_import, print_function, unicode_literals import logging import re # Import Salt Libs ...
21.284672
96
0.620713
2f723ec6a6227a11e67a47d96191a9514daf7fbd
622
py
Python
syncopy/io/__init__.py
kajal5888/syncopy
f7d49808a09ff65eec64cda1cfb4c87a012e0c2b
[ "BSD-3-Clause" ]
null
null
null
syncopy/io/__init__.py
kajal5888/syncopy
f7d49808a09ff65eec64cda1cfb4c87a012e0c2b
[ "BSD-3-Clause" ]
null
null
null
syncopy/io/__init__.py
kajal5888/syncopy
f7d49808a09ff65eec64cda1cfb4c87a012e0c2b
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Populate namespace with io routines # # Import __all__ routines from local modules from . import ( utils, load_spy_container, save_spy_container, load_ft, load_tdt, _load_nwb ) from .utils import * from .load_spy_container import * from .save_spy_container import * f...
21.448276
44
0.757235
ef6e01c72f0d1a6cefb8da1a94258544ac1d1289
15,200
py
Python
scripts/tests/sanitycheck/test_testsuite_class.py
jakub-uC/zephyr
d66d748b710ef7520d25d01752ea8a8c89c9e788
[ "Apache-2.0" ]
1
2021-01-25T09:10:04.000Z
2021-01-25T09:10:04.000Z
scripts/tests/sanitycheck/test_testsuite_class.py
jakub-uC/zephyr
d66d748b710ef7520d25d01752ea8a8c89c9e788
[ "Apache-2.0" ]
3
2020-06-20T13:14:25.000Z
2020-12-08T01:54:20.000Z
scripts/tests/sanitycheck/test_testsuite_class.py
jakub-uC/zephyr
d66d748b710ef7520d25d01752ea8a8c89c9e788
[ "Apache-2.0" ]
1
2021-01-27T11:25:32.000Z
2021-01-27T11:25:32.000Z
#!/usr/bin/env python3 # Copyright (c) 2020 Intel Corporation # # SPDX-License-Identifier: Apache-2.0 ''' This test file contains testcases for Testsuite class of sanitycheck ''' import sys import os import csv import pytest from mock import call, patch, MagicMock ZEPHYR_BASE = os.getenv("ZEPHYR_BASE") sys.path.inser...
50.165017
373
0.682829
45da1f2e5e6126d842ba48fdff7c1def33569421
1,098
bzl
Python
tools/build_defs/shell_script_helper.bzl
matzipan/rules_foreign_cc
07e1645dcc6c013b954d26b826fcd41f85585e55
[ "Apache-2.0" ]
2
2021-03-18T04:14:56.000Z
2021-03-18T05:11:09.000Z
tools/build_defs/shell_script_helper.bzl
matzipan/rules_foreign_cc
07e1645dcc6c013b954d26b826fcd41f85585e55
[ "Apache-2.0" ]
null
null
null
tools/build_defs/shell_script_helper.bzl
matzipan/rules_foreign_cc
07e1645dcc6c013b954d26b826fcd41f85585e55
[ "Apache-2.0" ]
1
2021-03-01T17:51:22.000Z
2021-03-01T17:51:22.000Z
"""DEPRECATED: Please use the sources in `@rules_foreign_cc//foreign_cc/...`""" # buildifier: disable=bzl-visibility load( "//foreign_cc/private:shell_script_helper.bzl", _convert_shell_script = "convert_shell_script", _convert_shell_script_by_context = "convert_shell_script_by_context", _create_functi...
35.419355
79
0.802368
80bb080a20d1de48b88ac722f1553adde924f11d
1,913
py
Python
funcaoCusto.py
saviorabelo/problema-cubo-magico
a6b2e1942d9326855c2b42349dda373a87d7a53a
[ "MIT" ]
null
null
null
funcaoCusto.py
saviorabelo/problema-cubo-magico
a6b2e1942d9326855c2b42349dda373a87d7a53a
[ "MIT" ]
null
null
null
funcaoCusto.py
saviorabelo/problema-cubo-magico
a6b2e1942d9326855c2b42349dda373a87d7a53a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import numpy as np from funcaoSucessora import funcaoSucessora from estadosFinais import estadosFinais #A função de custo recebe uma matriz (estado atual do nó) def funcaoCusto(matriz): #Contagem para a cor 1 cor1 = [matriz[0,2][0],matriz[0,3][0],matriz[1,2][0],matriz[1,3][0]]...
32.982759
73
0.496079
d51f78219cd719a73a511ca2fd0e37949e3a3b3f
2,305
py
Python
python/oneflow/framework/docstr/topk.py
L-Net-1992/oneflow
4dc08d65caea36fdd137841ac95551218897e730
[ "Apache-2.0" ]
1
2022-03-14T11:17:56.000Z
2022-03-14T11:17:56.000Z
python/oneflow/framework/docstr/topk.py
L-Net-1992/oneflow
4dc08d65caea36fdd137841ac95551218897e730
[ "Apache-2.0" ]
null
null
null
python/oneflow/framework/docstr/topk.py
L-Net-1992/oneflow
4dc08d65caea36fdd137841ac95551218897e730
[ "Apache-2.0" ]
1
2021-12-15T02:14:49.000Z
2021-12-15T02:14:49.000Z
""" Copyright 2020 The OneFlow 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 applicable law or agr...
34.924242
113
0.612148
327d8b3274a216539b2eafd7dacbc5eef831d262
1,026
py
Python
button.py
jjeejj/alien_invasion
446bb46f67cefd02660a44bdeff6e78ee697e828
[ "MIT" ]
1
2019-06-23T13:42:06.000Z
2019-06-23T13:42:06.000Z
button.py
jjeejj/alien_invasion
446bb46f67cefd02660a44bdeff6e78ee697e828
[ "MIT" ]
null
null
null
button.py
jjeejj/alien_invasion
446bb46f67cefd02660a44bdeff6e78ee697e828
[ "MIT" ]
null
null
null
# 按钮类 import pygame.font class Button(): def __init__(self, ai_settings, screen, msg): self.screen = screen self.screen_rect = screen.get_rect() # 设置按钮的尺寸和其他属性 self.width , self.height = 200, 50 self.button_color = (0, 255, 0) self.text_color = (255, 255, 2...
33.096774
89
0.609162
8290735f10e1b61bc6357ffb433fc313174e879d
574
py
Python
libradash/config/libradash.py
Athenolabs/libraDash
a1caf7cffdf7b79278d0145fbc0bb9e2ffcf4a80
[ "MIT" ]
null
null
null
libradash/config/libradash.py
Athenolabs/libraDash
a1caf7cffdf7b79278d0145fbc0bb9e2ffcf4a80
[ "MIT" ]
null
null
null
libradash/config/libradash.py
Athenolabs/libraDash
a1caf7cffdf7b79278d0145fbc0bb9e2ffcf4a80
[ "MIT" ]
2
2018-12-05T18:59:52.000Z
2019-07-30T14:44:30.000Z
from __future__ import unicode_literals from frappe import _ def get_data(): return[ { "label": _("Dashboards"), "icon": "fa fa-tachometer", "items": [ { "type": "page", "name": "libradashboard", "label": _("libracore Dashboard"), "description": _("libracore Admin Dashboard...
19.133333
50
0.536585
2ac59a2ff221e892f9781f040a00711d05ca1bc0
4,531
py
Python
phi/viz/dash/webgl_util.py
VemburajYadav/PhiFlow
842c113d1850569b97e30ab0632866bb5bc4b300
[ "MIT" ]
null
null
null
phi/viz/dash/webgl_util.py
VemburajYadav/PhiFlow
842c113d1850569b97e30ab0632866bb5bc4b300
[ "MIT" ]
null
null
null
phi/viz/dash/webgl_util.py
VemburajYadav/PhiFlow
842c113d1850569b97e30ab0632866bb5bc4b300
[ "MIT" ]
1
2021-05-04T16:31:41.000Z
2021-05-04T16:31:41.000Z
import warnings import imageio import numpy as np import os import inspect import webglviewer from phi.geom import GLOBAL_AXIS_ORDER as physics_config from phi.physics.field import CenteredGrid, StaggeredGrid from phi.viz.dash.dash_plotting import reduce_component def load_sky(file, image_format=None, flatten=True,...
30.409396
121
0.582211
7e5704a0e993ad734bea1cc5ec4b987d1a994ea5
2,907
py
Python
back/settings.py
armel/RRFTracker
38562c15247bce063d4c88b5d9a760f172852ddd
[ "MIT" ]
4
2018-12-11T21:46:32.000Z
2021-05-01T22:36:32.000Z
back/settings.py
armel/RRFTracker
38562c15247bce063d4c88b5d9a760f172852ddd
[ "MIT" ]
null
null
null
back/settings.py
armel/RRFTracker
38562c15247bce063d4c88b5d9a760f172852ddd
[ "MIT" ]
3
2020-06-15T12:13:04.000Z
2021-03-17T11:09:53.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ''' RRFTracker version Web Learn more about RRF on https://f5nlg.wordpress.com Check video about RRFTracker on https://www.youtube.com/watch?v=rVW8xczVpEo 73 & 88 de F4HWN Armel ''' # Version version = '2.8.0' # Default room and path room = 'RRF' # Room...
25.5
75
0.533196
c029ac634e5de7cb76f4513f1386da3b002a28c2
2,233
py
Python
MLibrary/convert_issues.py
imis-lab/personnel-selection
f04d78c8211f21ab53db4ecdddfc9c78ffc26a36
[ "MIT" ]
2
2020-09-29T11:40:56.000Z
2020-09-29T11:41:04.000Z
MLibrary/convert_issues.py
imis-lab/personnel-selection
f04d78c8211f21ab53db4ecdddfc9c78ffc26a36
[ "MIT" ]
null
null
null
MLibrary/convert_issues.py
imis-lab/personnel-selection
f04d78c8211f21ab53db4ecdddfc9c78ffc26a36
[ "MIT" ]
null
null
null
import csv import pandas import json def convert_json_dataset_to_csv(input_filename: str, output_filename: str, unassigned_issues: bool = True): """"Convert a JSON file with Jira issues into a CSV file. :param input_filename: the path for the JSON input file :param output_filename: the path of the...
41.351852
108
0.611733
f7f5be8655097ceab1f46f42527ed396366cf2c0
1,674
py
Python
richtext_blog/admin.py
timmygee/django-richtext-blog
88bf111039f8ed65212d6bfd45d72a0948094b71
[ "BSD-3-Clause" ]
1
2021-04-07T13:29:26.000Z
2021-04-07T13:29:26.000Z
richtext_blog/admin.py
timmygee/django-richtext-blog
88bf111039f8ed65212d6bfd45d72a0948094b71
[ "BSD-3-Clause" ]
3
2020-02-11T21:06:37.000Z
2021-06-10T17:22:41.000Z
richtext_blog/admin.py
timmygee/django-richtext-blog
88bf111039f8ed65212d6bfd45d72a0948094b71
[ "BSD-3-Clause" ]
null
null
null
from django.contrib import admin from models import Post, Comment, Tag from forms import PostFormAdmin class CommentInline(admin.TabularInline): """ Inline definition for comments """ model = Comment extra = 0 class PostAdmin(admin.ModelAdmin): form = PostFormAdmin fields = ('title', 'slu...
32.192308
79
0.654719
276f31bb3a52cc1e270164566ad312a6fff184f1
1,559
py
Python
src/genie/libs/parser/iosxe/tests/ShowIpv6Neighbors/cli/equal/golden_output1_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
204
2018-06-27T00:55:27.000Z
2022-03-06T21:12:18.000Z
src/genie/libs/parser/iosxe/tests/ShowIpv6Neighbors/cli/equal/golden_output1_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
468
2018-06-19T00:33:18.000Z
2022-03-31T23:23:35.000Z
src/genie/libs/parser/iosxe/tests/ShowIpv6Neighbors/cli/equal/golden_output1_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
309
2019-01-16T20:21:07.000Z
2022-03-30T12:56:41.000Z
expected_output = { "interface": { "GigabitEthernet2": { "interface": "GigabitEthernet2", "neighbors": { "2001:db8:8548:1::2": { "age": "0", "ip": "2001:db8:8548:1::2", "link_layer_address": "fa16.3eff.09c8",...
34.644444
59
0.355356
43c5f0834a83531bfd434780b0f6710828ebad32
1,289
py
Python
tests/granular/test_sentences.py
dA505819/nlp_profiler
00a68e2f24a727f86f824b448ee2c011f03d2090
[ "Apache-2.0" ]
null
null
null
tests/granular/test_sentences.py
dA505819/nlp_profiler
00a68e2f24a727f86f824b448ee2c011f03d2090
[ "Apache-2.0" ]
null
null
null
tests/granular/test_sentences.py
dA505819/nlp_profiler
00a68e2f24a727f86f824b448ee2c011f03d2090
[ "Apache-2.0" ]
null
null
null
from nlp_profiler.core import gather_sentences, count_sentences # noqa text_with_emojis = "I love ⚽ very much 😁" text_with_a_number = '2833047 people live in this area' text_with_two_sentences = text_with_a_number + "." + text_with_emojis def test_given_a_text_with_sentences_when_parsed_then_return_the_sentences()...
29.295455
87
0.738557
4d483fa06a8b150965ac26703eaf88a208547ce4
1,188
py
Python
eFELunit/scores/score_RMS_ZScore.py
appukuttan-shailesh/eFELunit
055385254875249293da72c1daf2d489033cb9da
[ "BSD-3-Clause" ]
null
null
null
eFELunit/scores/score_RMS_ZScore.py
appukuttan-shailesh/eFELunit
055385254875249293da72c1daf2d489033cb9da
[ "BSD-3-Clause" ]
null
null
null
eFELunit/scores/score_RMS_ZScore.py
appukuttan-shailesh/eFELunit
055385254875249293da72c1daf2d489033cb9da
[ "BSD-3-Clause" ]
null
null
null
from sciunit.scores import ZScore import quantities import numpy as np #============================================================================== class RMS_ZScore(ZScore): """ Calculates the z-score for one or more variables and returns the root mean square """ _allowed_types = (float,) _descr...
34.941176
98
0.539562
380db2a798cf1fa43d2c77e3d70cb36f69b880c2
13,157
py
Python
airflow/kubernetes/pod_generator.py
codejunction/airflow
04614841c77154cae64df175252a3bcf64d4e6ea
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
airflow/kubernetes/pod_generator.py
codejunction/airflow
04614841c77154cae64df175252a3bcf64d4e6ea
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
2
2018-03-23T10:16:45.000Z
2018-09-09T11:47:07.000Z
airflow/kubernetes/pod_generator.py
codejunction/airflow
04614841c77154cae64df175252a3bcf64d4e6ea
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
37.377841
84
0.639888
10b38c2aa4135e7408c91eb20d21fd8a97ac9b8e
5,799
py
Python
utils.py
balamurali25/bird-bot
a50a24ceacf3698e48a0b05ffbbcb9c7071eed7a
[ "MIT" ]
null
null
null
utils.py
balamurali25/bird-bot
a50a24ceacf3698e48a0b05ffbbcb9c7071eed7a
[ "MIT" ]
null
null
null
utils.py
balamurali25/bird-bot
a50a24ceacf3698e48a0b05ffbbcb9c7071eed7a
[ "MIT" ]
null
null
null
try: from Crypto import Random from Crypto.Cipher import AES except: from Cryptodome import Random from Cryptodome.Cipher import AES from colorama import init, Fore, Back, Style from datetime import datetime from selenium import webdriver from webdriver_manager.chrome import ChromeDriverManager from sel...
39.182432
121
0.620624
ab47de926a8c05144dd51e44c6179be1ae74b4bc
3,006
py
Python
service/rule_item_mutex.py
LemonITCN/presolver
b6e7da0698f525206fb0b8906a6bb8a84c29d1de
[ "Apache-2.0" ]
1
2021-07-01T01:02:48.000Z
2021-07-01T01:02:48.000Z
service/rule_item_mutex.py
LemonITCN/presolver
b6e7da0698f525206fb0b8906a6bb8a84c29d1de
[ "Apache-2.0" ]
null
null
null
service/rule_item_mutex.py
LemonITCN/presolver
b6e7da0698f525206fb0b8906a6bb8a84c29d1de
[ "Apache-2.0" ]
null
null
null
from model.question_data import QuestionData from service.rule_base import RuleBase class RuleItemMutex(RuleBase): location_list = [] # params format: 互斥的单元格坐标列表,坐标之间用分号分隔,每个坐标的xy之间用英文半角逗号分隔 # 举例:0,0;0,1;0,2;0,3;0,4;0,5;0,6;0,7;0,8 def __init__(self, question_data: QuestionData, params: str) -> None...
42.942857
103
0.609115
8ee154c1f45d84ac185d22f3f1d4d597494dbd84
5,045
py
Python
src/python/pants/backend/python/tasks/python_execution_task_base.py
ghthor/pants
450de702414f87f563081ddefaefd8a554de07a3
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/python/tasks/python_execution_task_base.py
ghthor/pants
450de702414f87f563081ddefaefd8a554de07a3
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/python/tasks/python_execution_task_base.py
ghthor/pants
450de702414f87f563081ddefaefd8a554de07a3
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2017 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import absolute_import, division, print_function, unicode_literals import os from builtins import str from pex.interpreter import PythonInterpreter from pe...
41.01626
99
0.737166
1b1c6b386811d388e4634f69bdc1a6a271f38829
6,665
py
Python
checks.d/nginx.py
awasilyev/dd-agent
e8770f90995e4ee463738f489f5642a218bd8355
[ "BSD-3-Clause" ]
1
2019-06-17T18:50:54.000Z
2019-06-17T18:50:54.000Z
checks.d/nginx.py
awasilyev/dd-agent
e8770f90995e4ee463738f489f5642a218bd8355
[ "BSD-3-Clause" ]
1
2022-03-29T22:06:34.000Z
2022-03-29T22:06:34.000Z
checks.d/nginx.py
awasilyev/dd-agent
e8770f90995e4ee463738f489f5642a218bd8355
[ "BSD-3-Clause" ]
null
null
null
# (C) Datadog, Inc. 2010-2016 # All rights reserved # Licensed under Simplified BSD License (see LICENSE) # stdlib import re import urlparse # 3rd party import requests import simplejson as json # project from checks import AgentCheck from util import headers class Nginx(AgentCheck): """Tracks basic nginx metr...
36.420765
90
0.568942
a670571427a436bb3c5e3b7e803728eb53540138
2,213
py
Python
artificial/searches/tests/adversarial_test.py
lucasdavid/artificial
18199591f926dd369e9de0cd2285c395506f0a55
[ "MIT" ]
3
2016-03-20T02:51:01.000Z
2020-05-30T20:25:46.000Z
artificial/searches/tests/adversarial_test.py
lucasdavid/artificial
18199591f926dd369e9de0cd2285c395506f0a55
[ "MIT" ]
null
null
null
artificial/searches/tests/adversarial_test.py
lucasdavid/artificial
18199591f926dd369e9de0cd2285c395506f0a55
[ "MIT" ]
1
2019-10-21T05:43:46.000Z
2019-10-21T05:43:46.000Z
"""Artificial Adversarial Searches Test""" # Author: Lucas David -- <ld492@drexel.edu> # License: MIT (c) 2016 import random from unittest import TestCase from artificial import base, agents from artificial.searches.adversarial import Random, MinMax, AlphaBeta random_generator = random.Random(0) class _S(base.Sta...
24.865169
73
0.59286
cf44aebff87f0b167e75cf80625ac3db1b4af277
649
py
Python
project/services/migrations/0037_auto_20170618_0004.py
Aleksey-Hugo/Avtoservis-Ulyanovsk-one-
073cf02eda5efc7ed7598a39bcf62815f2bfeebb
[ "Apache-2.0" ]
1
2021-06-29T13:28:44.000Z
2021-06-29T13:28:44.000Z
project/services/migrations/0037_auto_20170618_0004.py
Aleksey-Hugo/Avtoservis-Ulyanovsk-one-
073cf02eda5efc7ed7598a39bcf62815f2bfeebb
[ "Apache-2.0" ]
null
null
null
project/services/migrations/0037_auto_20170618_0004.py
Aleksey-Hugo/Avtoservis-Ulyanovsk-one-
073cf02eda5efc7ed7598a39bcf62815f2bfeebb
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9 on 2017-06-18 00:04 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('services', '0036_auto_20170618_0004'), ] operations = [ migrations.RemoveField...
25.96
131
0.625578
967b2f6f7918c5331ab50146205181402eb24575
4,197
py
Python
python_modules/dagster/dagster/core/workspace/autodiscovery.py
mathijspieters/dagster
291fbf50ca0cc6aa84ed2c7063b4a058ddce9024
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster/core/workspace/autodiscovery.py
mathijspieters/dagster
291fbf50ca0cc6aa84ed2c7063b4a058ddce9024
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster/core/workspace/autodiscovery.py
mathijspieters/dagster
291fbf50ca0cc6aa84ed2c7063b4a058ddce9024
[ "Apache-2.0" ]
null
null
null
import inspect from typing import NamedTuple from dagster import ( DagsterInvariantViolationError, GraphDefinition, JobDefinition, PipelineDefinition, RepositoryDefinition, ) from dagster.core.asset_defs import AssetGroup from dagster.core.code_pointer import load_python_file, load_python_module L...
37.810811
102
0.689064
ee5f8bcd2e570f4286bf5971db309727c2afbff5
1,528
py
Python
tempo/db/migrate_repo/versions/001_add_tasks_table.py
rackerlabs/Tempo
60c2adaf5b592ae171987b999e0b9cc46b80c54e
[ "Apache-2.0" ]
4
2015-04-26T01:46:51.000Z
2020-11-10T13:07:59.000Z
tempo/db/migrate_repo/versions/001_add_tasks_table.py
rackerlabs/Tempo
60c2adaf5b592ae171987b999e0b9cc46b80c54e
[ "Apache-2.0" ]
null
null
null
tempo/db/migrate_repo/versions/001_add_tasks_table.py
rackerlabs/Tempo
60c2adaf5b592ae171987b999e0b9cc46b80c54e
[ "Apache-2.0" ]
null
null
null
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2011 Rackspace # 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/licen...
32.510638
78
0.706152
d7238763e6c86b49f8427e3d95203cd13b9e5637
3,348
py
Python
official/nlp/ernie/preprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/nlp/ernie/preprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/nlp/ernie/preprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # 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...
41.85
103
0.657109
9a5a2c908f1d0ee7991a71d77c1669898edc10f5
45
py
Python
smaxpy/__init__.py
ootiq/smax
88109d4f9dde436c9e8ab8c852904bce77dd1677
[ "Unlicense" ]
null
null
null
smaxpy/__init__.py
ootiq/smax
88109d4f9dde436c9e8ab8c852904bce77dd1677
[ "Unlicense" ]
null
null
null
smaxpy/__init__.py
ootiq/smax
88109d4f9dde436c9e8ab8c852904bce77dd1677
[ "Unlicense" ]
null
null
null
__version__ = "0.1.0" from .smax import Smax
15
22
0.711111
ebfe6f92ac9f718fcb61e9f75c2b0ba55d98d837
1,514
py
Python
Random API/api.py
joonsauce/HTN-2021
573722e3a9a74e928562c93a96649dc1e6e5843f
[ "MIT" ]
null
null
null
Random API/api.py
joonsauce/HTN-2021
573722e3a9a74e928562c93a96649dc1e6e5843f
[ "MIT" ]
null
null
null
Random API/api.py
joonsauce/HTN-2021
573722e3a9a74e928562c93a96649dc1e6e5843f
[ "MIT" ]
null
null
null
import ast import pandas as pd import random import requests from data import * from flask import Flask from flask_restful import Api, reqparse, Resource from random import randint app = Flask(__name__) api = Api(app) class nums(Resource): def get(self): data = randint(1, 10) return...
29.686275
106
0.603038
b4d956f280444a7083eb356c52fc5d28867e99dc
2,159
py
Python
src/validate.py
ITUnlp/dagw_validator
918573e2d716166b7a3f97649e15c62db7f6f035
[ "MIT" ]
2
2020-09-18T15:10:01.000Z
2020-09-21T06:22:05.000Z
src/validate.py
ITUnlp/dagw_validator
918573e2d716166b7a3f97649e15c62db7f6f035
[ "MIT" ]
3
2020-09-19T15:58:01.000Z
2020-10-01T08:48:27.000Z
src/validate.py
ITUnlp/dkgw_validator
918573e2d716166b7a3f97649e15c62db7f6f035
[ "MIT" ]
1
2020-09-18T12:50:21.000Z
2020-09-18T12:50:21.000Z
import argparse import logging import sys from pathlib import Path from typing import List from validators import tests, TestReport, check_utf8_encoding class ParserWithUsage(argparse.ArgumentParser): """ A custom parser that writes error messages followed by command line usage documentation.""" def error(s...
34.269841
99
0.598425
380fafcfb46c3103d897afa82cee0e7108adfcfe
932
py
Python
tests/graphql/__init__.py
uroybd/wagtail-graphql
e49d7d771838c73b1c459ba1d4d583548ad9b32d
[ "MIT" ]
43
2018-11-27T15:51:42.000Z
2022-03-23T08:10:02.000Z
tests/graphql/__init__.py
uroybd/wagtail-graphql
e49d7d771838c73b1c459ba1d4d583548ad9b32d
[ "MIT" ]
12
2018-11-26T05:55:16.000Z
2021-06-09T09:07:51.000Z
tests/graphql/__init__.py
uroybd/wagtail-graphql
e49d7d771838c73b1c459ba1d4d583548ad9b32d
[ "MIT" ]
22
2018-12-18T21:41:17.000Z
2021-06-22T08:56:35.000Z
import json import os.path def get_query(*name): name = '_'.join(name) folder = os.path.dirname(__file__) query = open(os.path.join(folder, name + '.graphql'), 'rt').read() result = json.load(open(os.path.join(folder, name + '.json'), 'rt')) return query, result def assert_query(client, *name): ...
28.242424
72
0.670601
2a621a184fa6b83d4c332124d8ac1253cf936e46
124
py
Python
ucanSystec/__init__.py
SMFSW/python-ucanSystec
f24c89c99e4fb17b2ad282df05158501b1020a8a
[ "MIT" ]
1
2017-11-16T08:39:14.000Z
2017-11-16T08:39:14.000Z
ucanSystec/__init__.py
SMFSW/python-ucanSystec
f24c89c99e4fb17b2ad282df05158501b1020a8a
[ "MIT" ]
null
null
null
ucanSystec/__init__.py
SMFSW/python-ucanSystec
f24c89c99e4fb17b2ad282df05158501b1020a8a
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- """ __init__.py (ucanSystec) Author: SMFSW SystecUSBCAN package init """ from .ucanSystec import *
12.4
25
0.677419
eac3b937ac557e049d8e79824b3b2f055ea56d38
9,313
py
Python
mailer/send_calendar.py
everyvoter/everyvoter
65d9b8bdf9b5c64057135c279f6e03b6c207e0fa
[ "MIT" ]
5
2019-07-01T17:50:44.000Z
2022-02-20T02:44:42.000Z
mailer/send_calendar.py
everyvoter/everyvoter
65d9b8bdf9b5c64057135c279f6e03b6c207e0fa
[ "MIT" ]
3
2020-06-05T21:44:33.000Z
2021-06-10T21:39:26.000Z
mailer/send_calendar.py
everyvoter/everyvoter
65d9b8bdf9b5c64057135c279f6e03b6c207e0fa
[ "MIT" ]
1
2021-12-09T06:32:40.000Z
2021-12-09T06:32:40.000Z
"""Utilities to get the sending calendar""" from django.utils.timezone import localtime import newrelic.agent from election.choices import STATES from mailer.models import MailingTemplate @newrelic.agent.function_trace() def mailing_calendar(organization=None, upcoming=False, date=None, email_ac...
42.331818
109
0.603565
9e1ab52899c11fde93c517a513d8b3edb662d3e8
478
py
Python
dev_tools/docker/clusters/apache_2.6.0/images/base/scripts/zk_wait.py
timgates42/pydoop
438c92ed34e2d4f12db7cc1ea3a7ed094206c3a5
[ "Apache-2.0" ]
203
2015-01-02T05:52:49.000Z
2022-03-25T00:05:50.000Z
dev_tools/docker/clusters/apache_2.6.0/images/base/scripts/zk_wait.py
timgates42/pydoop
438c92ed34e2d4f12db7cc1ea3a7ed094206c3a5
[ "Apache-2.0" ]
209
2015-01-16T14:14:20.000Z
2022-01-20T16:19:24.000Z
dev_tools/docker/clusters/apache_2.6.0/images/base/scripts/zk_wait.py
timgates42/pydoop
438c92ed34e2d4f12db7cc1ea3a7ed094206c3a5
[ "Apache-2.0" ]
63
2015-01-29T08:44:25.000Z
2021-12-24T03:25:15.000Z
import sys import os import time from kazoo.client import KazooClient import logging logging.basicConfig() logger = logging.getLogger() logger.setLevel(logging.INFO) host = 'zookeeper' port = int(os.environ['ZOO_CLIENT_PORT']) logger.info('Starting on %s:%d', host, port) kz = KazooClient(host, port) path = '/' + s...
17.703704
44
0.700837
7bcf9ca7feb5c981596bb77ce65431dfb4adebfa
2,346
py
Python
data/views.py
Stfuncode/food-beverage-investigator
0fea4943a5c2634068dc04118f83742327937c25
[ "MIT" ]
null
null
null
data/views.py
Stfuncode/food-beverage-investigator
0fea4943a5c2634068dc04118f83742327937c25
[ "MIT" ]
null
null
null
data/views.py
Stfuncode/food-beverage-investigator
0fea4943a5c2634068dc04118f83742327937c25
[ "MIT" ]
null
null
null
from django.shortcuts import redirect, render from django.contrib import messages import random from data.forms import addRestaurant, addReview from data.models import Restaurant, RestaurantReview from account.models import Account # Create your views here. def add_restaurant(request): if request.method == "POST":...
31.702703
80
0.634271
bcc9202098bfa579b56cdbd88dd8dc0c0346deb9
4,860
py
Python
src/pymc3_ext/distributions/transforms.py
rodluger/pymc3-ext
3026dbfa88a63f56136ecce7c18f3a157faf91d1
[ "MIT" ]
15
2020-10-21T21:14:42.000Z
2022-02-02T02:16:34.000Z
src/pymc3_ext/distributions/transforms.py
rodluger/pymc3-ext
3026dbfa88a63f56136ecce7c18f3a157faf91d1
[ "MIT" ]
22
2020-09-26T14:44:16.000Z
2022-02-16T12:14:45.000Z
src/pymc3_ext/distributions/transforms.py
rodluger/pymc3-ext
3026dbfa88a63f56136ecce7c18f3a157faf91d1
[ "MIT" ]
4
2021-01-25T20:44:07.000Z
2021-11-18T14:57:23.000Z
# -*- coding: utf-8 -*- __all__ = ["unit_vector", "unit_disk", "angle", "periodic"] import aesara_theano_fallback.tensor as tt import numpy as np import pymc3.distributions.transforms as tr class AbsoluteValueTransform(tr.Transform): """ """ name = "absolutevalue" def backward(self, y): u = 2 ...
27.613636
78
0.604733
b71428588fa237cf458b6eab448006d867437fab
4,543
py
Python
lib/setup.py
wyyy04/scene-graph-TF-release
2840fdcfbcc9622ecd5a0eb31d0db608a13f3b98
[ "MIT" ]
403
2017-04-06T05:18:28.000Z
2022-03-30T02:55:03.000Z
lib/setup.py
jgyy4775/scene-graph-TF-release
4c9e3c6a5cb0e6a241a92dc9b786f74e69ca35c4
[ "MIT" ]
49
2017-04-08T11:15:30.000Z
2022-02-25T09:03:05.000Z
lib/setup.py
jgyy4775/scene-graph-TF-release
4c9e3c6a5cb0e6a241a92dc9b786f74e69ca35c4
[ "MIT" ]
148
2017-04-06T07:03:53.000Z
2022-03-21T11:53:33.000Z
# -------------------------------------------------------- # Fast R-CNN # Copyright (c) 2015 Microsoft # Licensed under The MIT License [see LICENSE for details] # Written by Ross Girshick # -------------------------------------------------------- import os from os.path import join as pjoin import numpy as np from dis...
35.492188
91
0.64891
f37f0d994eae0f027792710ac78609e764ac11e6
8,392
py
Python
leaderboard/envs/sensor_interface.py
yixiao1/leaderboard
f731410c23efc6ef329a7810b44a71961cee3174
[ "MIT" ]
68
2020-03-25T10:04:21.000Z
2022-03-21T01:03:39.000Z
leaderboard/envs/sensor_interface.py
yixiao1/leaderboard
f731410c23efc6ef329a7810b44a71961cee3174
[ "MIT" ]
32
2020-06-16T22:11:05.000Z
2022-03-24T09:35:48.000Z
leaderboard/envs/sensor_interface.py
yixiao1/leaderboard
f731410c23efc6ef329a7810b44a71961cee3174
[ "MIT" ]
40
2020-03-21T23:43:39.000Z
2022-01-03T14:04:31.000Z
import copy import logging import numpy as np import os import time from threading import Thread from queue import Queue from queue import Empty import carla from srunner.scenariomanager.carla_data_provider import CarlaDataProvider from srunner.scenariomanager.timer import GameTime def threaded(fn): def wrapper...
34.821577
106
0.631435
91ee96799b1b59f314486ed041b358deff51b3dd
1,408
py
Python
Kivy/repositorios/cliente_repositorio.py
joao0710/primeiro-repo
4fe1240c417d42fb4ec17861003a13b0d0e9310d
[ "MIT" ]
null
null
null
Kivy/repositorios/cliente_repositorio.py
joao0710/primeiro-repo
4fe1240c417d42fb4ec17861003a13b0d0e9310d
[ "MIT" ]
null
null
null
Kivy/repositorios/cliente_repositorio.py
joao0710/primeiro-repo
4fe1240c417d42fb4ec17861003a13b0d0e9310d
[ "MIT" ]
null
null
null
from fabricas import fabrica_conexao class ClienteRepositorio(): @staticmethod def listar_cliente(): fabrica = fabrica_conexao.FabricaConexao.conectar() try: cursor = fabrica.cursor() cursor.execute("SELECT * FROM clientes") print(cursor.fetchall()) ...
33.52381
111
0.606534
ad77eae1dd3605c2586469d40aa625982fb7c3c9
3,953
py
Python
tests/template_tests/utils.py
ni-ning/django
2e7ba6057cfc82a15a22b6021cd60cf307152e2d
[ "CNRI-Python-GPL-Compatible", "BSD-3-Clause" ]
61,676
2015-01-01T00:05:13.000Z
2022-03-31T20:37:54.000Z
tests/template_tests/utils.py
ni-ning/django
2e7ba6057cfc82a15a22b6021cd60cf307152e2d
[ "CNRI-Python-GPL-Compatible", "BSD-3-Clause" ]
8,884
2015-01-01T00:12:05.000Z
2022-03-31T19:53:11.000Z
tests/template_tests/utils.py
mustafa0x/django
d7394cfa13a4d1a02356e3a83e10ec100fbb9948
[ "BSD-3-Clause", "0BSD" ]
33,143
2015-01-01T02:04:52.000Z
2022-03-31T19:42:46.000Z
import functools import os from django.template.engine import Engine from django.test.utils import override_settings from django.utils.safestring import mark_safe ROOT = os.path.dirname(os.path.abspath(__file__)) TEMPLATE_DIR = os.path.join(ROOT, 'templates') def setup(templates, *args, test_once=False): """ ...
21.839779
78
0.60081
1f888b6af134f40da4f4c783a93768366848c751
13,757
py
Python
vinum/api/table.py
dmitrykoval/vinum
c36b351220be27b3fb672b0a912b2defb00c3ea6
[ "BSD-3-Clause" ]
56
2020-11-30T03:15:51.000Z
2022-03-22T08:53:51.000Z
vinum/api/table.py
DanielLeith/vinum
b4510d94a14237639e9f3bd8c36cb3eb8a434036
[ "BSD-3-Clause" ]
6
2020-11-02T18:03:14.000Z
2021-09-23T11:11:21.000Z
vinum/api/table.py
DanielLeith/vinum
b4510d94a14237639e9f3bd8c36cb3eb8a434036
[ "BSD-3-Clause" ]
4
2021-03-25T15:20:44.000Z
2021-11-26T13:05:20.000Z
import pyarrow as pa from typing import Dict, TYPE_CHECKING from vinum.arrow.arrow_table import ArrowTable from vinum.executor.executor import RecursiveExecutor from vinum.parser.parser import parser_factory from vinum.parser.query import Query from vinum.planner.planner import QueryPlanner if TYPE_CHECKING: impo...
29.208068
81
0.53122
94f122a09a6b6b0b7874faee0cb006a6a4266b09
7,518
py
Python
docs/conf.py
astropy/healpix
360daad82f5a19a23672f293c06da9ce6fb3993e
[ "BSD-3-Clause" ]
null
null
null
docs/conf.py
astropy/healpix
360daad82f5a19a23672f293c06da9ce6fb3993e
[ "BSD-3-Clause" ]
null
null
null
docs/conf.py
astropy/healpix
360daad82f5a19a23672f293c06da9ce6fb3993e
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Licensed under a 3-clause BSD style license - see LICENSE.rst # # Astropy documentation build configuration file. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this file. # # All configurati...
36.318841
89
0.698989
690350c7f4de5077cc978978a9c22fa39244c19e
333
py
Python
users/migrations/0004_remove_customuser_has_pass.py
ccunhafinance/sistema
a8b252845e3fe5e75ea617386763e10f39531adf
[ "MIT" ]
null
null
null
users/migrations/0004_remove_customuser_has_pass.py
ccunhafinance/sistema
a8b252845e3fe5e75ea617386763e10f39531adf
[ "MIT" ]
null
null
null
users/migrations/0004_remove_customuser_has_pass.py
ccunhafinance/sistema
a8b252845e3fe5e75ea617386763e10f39531adf
[ "MIT" ]
null
null
null
# Generated by Django 3.2.5 on 2021-08-18 20:02 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('users', '0003_customuser_has_pass'), ] operations = [ migrations.RemoveField( model_name='customuser', name='has_pass', ...
18.5
47
0.597598
1241c698d69d83cf7b2b9cce809c5214d509496c
523
py
Python
mmic_md_gmx/models/output.py
RlyehAD/mmic_md_gmx
8227f5ff16e4c7b616ccf1cc8793bbdd06ab772f
[ "MIT" ]
null
null
null
mmic_md_gmx/models/output.py
RlyehAD/mmic_md_gmx
8227f5ff16e4c7b616ccf1cc8793bbdd06ab772f
[ "MIT" ]
null
null
null
mmic_md_gmx/models/output.py
RlyehAD/mmic_md_gmx
8227f5ff16e4c7b616ccf1cc8793bbdd06ab772f
[ "MIT" ]
1
2021-09-14T03:08:52.000Z
2021-09-14T03:08:52.000Z
from mmelemental.models.base import ProtoModel from mmic_md.models import InputMD from pydantic import Field __all__ = ["OutputComputeGmx"] class OutputComputeGmx(ProtoModel): proc_input: InputMD = Field(..., description="Procedure input schema.") molecule: str = Field(..., description="Molecule file string...
32.6875
78
0.722753
05de9307279708fa9b250f93c95764ae8ab7e87a
2,616
py
Python
a10_octavia/tests/unit/controller/worker/flows/test_a10_member_flows.py
agalawane/a10-octavia
cb60f6c1c56ea0aa95a5d4b26f0d8d81b328be90
[ "Apache-2.0" ]
1
2020-10-06T08:29:27.000Z
2020-10-06T08:29:27.000Z
a10_octavia/tests/unit/controller/worker/flows/test_a10_member_flows.py
agalawane/a10-octavia
cb60f6c1c56ea0aa95a5d4b26f0d8d81b328be90
[ "Apache-2.0" ]
null
null
null
a10_octavia/tests/unit/controller/worker/flows/test_a10_member_flows.py
agalawane/a10-octavia
cb60f6c1c56ea0aa95a5d4b26f0d8d81b328be90
[ "Apache-2.0" ]
null
null
null
# Copyright 2019, A10 Networks # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
41.52381
89
0.713303
02902e6e76fc49120d30d5a5849f22690984f627
8,148
py
Python
contrib/devtools/update-translations.py
Iconoclasta/DWE
167730512be3a43420e80fe63fcdca33e3478110
[ "MIT" ]
2
2019-03-05T13:21:21.000Z
2019-07-25T18:21:25.000Z
contrib/devtools/update-translations.py
Iconoclasta/DWE
167730512be3a43420e80fe63fcdca33e3478110
[ "MIT" ]
null
null
null
contrib/devtools/update-translations.py
Iconoclasta/DWE
167730512be3a43420e80fe63fcdca33e3478110
[ "MIT" ]
4
2018-11-07T16:41:42.000Z
2019-07-24T14:25:28.000Z
#!/usr/bin/env python # Copyright (c) 2014 Wladimir J. van der Laan # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. ''' Run this script from the root of the repository to update all translations from transifex. It will do the follo...
38.616114
124
0.633775
fdbe24de7219d219ddc92d520d61b092a8c69fc7
2,695
py
Python
tests/unit/chroma_api/test_client_management.py
beevans/integrated-manager-for-lustre
6b7e49b8a58058e6139ad815a4388f21a581dfa0
[ "MIT" ]
1
2021-02-08T16:59:14.000Z
2021-02-08T16:59:14.000Z
tests/unit/chroma_api/test_client_management.py
beevans/integrated-manager-for-lustre
6b7e49b8a58058e6139ad815a4388f21a581dfa0
[ "MIT" ]
null
null
null
tests/unit/chroma_api/test_client_management.py
beevans/integrated-manager-for-lustre
6b7e49b8a58058e6139ad815a4388f21a581dfa0
[ "MIT" ]
null
null
null
import mock from tests.unit.chroma_api.chroma_api_test_case import ChromaApiTestCase from tests.unit.chroma_api.test_misc import remove_host_resources_patch from tests.unit.chroma_core.helpers import synthetic_host from chroma_core.models.host import ForceRemoveHostJob, RemoveHostJob from chroma_core.models.client_mou...
47.280702
110
0.730241
0a4ec67127b16cae14e30da881941364f44b0410
1,002
py
Python
fun/meme.py
IWickGames/Doge-Py-
7d40f0d13f8aad8df623c10ab0793170e149861e
[ "MIT" ]
null
null
null
fun/meme.py
IWickGames/Doge-Py-
7d40f0d13f8aad8df623c10ab0793170e149861e
[ "MIT" ]
null
null
null
fun/meme.py
IWickGames/Doge-Py-
7d40f0d13f8aad8df623c10ab0793170e149861e
[ "MIT" ]
null
null
null
import groups import config import discord import aiohttp import log.logging from discord.ext import commands class Meme(commands.Cog): def __init__(self, bot): self.bot = bot @groups.fun.command() async def meme(ctx: commands.Context): """Get an extra dank meme from the interwebs""" ...
26.368421
78
0.60479
0c611fb47bc52da62a251e5b734d49b721738f61
24,981
py
Python
tests/test_app.py
therefromhere/webtest
4571536f2404d1fb107f546e14e4001f427ff3aa
[ "MIT" ]
null
null
null
tests/test_app.py
therefromhere/webtest
4571536f2404d1fb107f546e14e4001f427ff3aa
[ "MIT" ]
null
null
null
tests/test_app.py
therefromhere/webtest
4571536f2404d1fb107f546e14e4001f427ff3aa
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from six import binary_type from webob import Request from webob import Response from webtest.compat import to_bytes from webtest.compat import PY3 from collections import OrderedDict from webtest.debugapp import debug_app from webtest import http from tests.compat import unittest import os impo...
35.383853
75
0.570233
02f7afc6f531ab5826995058a788c4a1b5a6466e
17,456
py
Python
lhotse/dataset/sampling/dynamic_bucketing.py
pzelasko/lhotse
41984467d2ead1dc69f418638b969e46f63308c7
[ "Apache-2.0" ]
64
2020-04-27T14:55:15.000Z
2020-10-25T06:57:56.000Z
lhotse/dataset/sampling/dynamic_bucketing.py
pzelasko/lhotse
41984467d2ead1dc69f418638b969e46f63308c7
[ "Apache-2.0" ]
85
2020-04-26T06:29:47.000Z
2020-10-19T20:28:52.000Z
lhotse/dataset/sampling/dynamic_bucketing.py
pzelasko/lhotse
41984467d2ead1dc69f418638b969e46f63308c7
[ "Apache-2.0" ]
17
2020-06-19T06:26:33.000Z
2020-10-12T15:19:15.000Z
import random import warnings from bisect import bisect_right from collections import deque from itertools import islice from typing import Any, Deque, Dict, Generator, Iterable, List, Optional, Tuple, Union import numpy as np from lhotse import CutSet, Seconds from lhotse.cut import Cut from lhotse.dataset.sampling....
42.889435
115
0.616407
25669e9526e2764ca83f6556e1763b86886419b9
1,777
py
Python
userbot/plugins/exec.py
deadanonymous/thunderuserbotold
05322edd29b0368290763fdc37edfecf6e64c09a
[ "MIT" ]
1
2021-01-07T03:06:47.000Z
2021-01-07T03:06:47.000Z
userbot/plugins/exec.py
RDX-ANONYMOUS/MASTER-MIND-BOT
58d50145006e5cea2f15b674dfcd1aee325623f9
[ "MIT" ]
null
null
null
userbot/plugins/exec.py
RDX-ANONYMOUS/MASTER-MIND-BOT
58d50145006e5cea2f15b674dfcd1aee325623f9
[ "MIT" ]
2
2021-07-02T07:39:29.000Z
2021-12-31T15:34:12.000Z
import io import sys import traceback from userbot.utils import admin_cmd @borg.on(admin_cmd("exec")) async def _(event): if event.fwd_from: return await event.edit("Processing ...") cmd = event.text.split(" ", maxsplit=1)[1] reply_to_id = event.message.id if event.reply_to_msg_id: ...
29.131148
76
0.577378
d9af9455fb748920495b6c01024a31ad63e467ec
1,359
py
Python
pushbuttontest.py
fojie/Micropython-scheduler
417033f3c72671d2473a7d5aebdcb2c96fd552b2
[ "MIT" ]
2
2021-06-26T02:33:13.000Z
2021-12-22T08:31:26.000Z
pushbuttontest.py
fojie/Micropython-scheduler
417033f3c72671d2473a7d5aebdcb2c96fd552b2
[ "MIT" ]
null
null
null
pushbuttontest.py
fojie/Micropython-scheduler
417033f3c72671d2473a7d5aebdcb2c96fd552b2
[ "MIT" ]
null
null
null
# pushbuttontest.py Demonstrates the pushbutton library # Author: Peter Hinch # Copyright Peter Hinch 2016 Released under the MIT license from usched import Sched, wait from pushbutton import Pushbutton, descriptor def stop(fTim, objSch): # Stop the scheduler after fTim seconds ...
32.357143
99
0.628403
23cd26e4c4d8506aee189500793468d9beee9267
14,712
py
Python
src/sentry/web/frontend/projects.py
nuklea/sentry
9d5c0a9c1899a651dad830a9e881ea2a63577c7d
[ "BSD-3-Clause" ]
2
2015-10-14T12:45:32.000Z
2016-01-27T03:24:43.000Z
src/sentry/web/frontend/projects.py
SilentCircle/sentry
6eed5c399047bdfb61abac9942b1248032b3302c
[ "BSD-3-Clause" ]
null
null
null
src/sentry/web/frontend/projects.py
SilentCircle/sentry
6eed5c399047bdfb61abac9942b1248032b3302c
[ "BSD-3-Clause" ]
null
null
null
""" sentry.web.frontend.projects ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2012 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from django.contrib import messages from django.core.context_processors import csrf from django.core.urlresolvers import reverse from dja...
34.698113
125
0.685903
3d3e62e89de730c1e8d4c83b5c75170a3145179e
2,440
py
Python
lib/init.py
SalenCoin/Sentiel
77d30d7f9ae5a76217bcc95310b728963ae40fd4
[ "MIT" ]
null
null
null
lib/init.py
SalenCoin/Sentiel
77d30d7f9ae5a76217bcc95310b728963ae40fd4
[ "MIT" ]
null
null
null
lib/init.py
SalenCoin/Sentiel
77d30d7f9ae5a76217bcc95310b728963ae40fd4
[ "MIT" ]
null
null
null
import sys import os sys.path.append(os.path.join(os.path.dirname(__file__), '..')) sys.path.append(os.path.join(os.path.dirname(__file__), '..', 'lib')) def is_valid_python_version(): version_valid = False ver = sys.version_info if (2 == ver.major) and (7 <= ver.minor): version_valid = True ...
23.461538
159
0.657787