hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
14b9d7374f23dff2da4b9757a62f000bb10946e0
13,158
py
Python
get_deferred_results.py
Elizabeth-Warren/warren_organizing_email
662e5ae4844bffe64fec4c6635ee87dabd0c3e06
[ "MIT" ]
29
2020-03-27T14:48:36.000Z
2021-07-11T01:46:14.000Z
get_deferred_results.py
Elizabeth-Warren/warren_organizing_email
662e5ae4844bffe64fec4c6635ee87dabd0c3e06
[ "MIT" ]
1
2020-05-07T19:57:07.000Z
2020-05-09T22:36:04.000Z
get_deferred_results.py
Elizabeth-Warren/warren_organizing_email
662e5ae4844bffe64fec4c6635ee87dabd0c3e06
[ "MIT" ]
9
2020-03-27T17:36:42.000Z
2020-05-03T22:19:12.000Z
# Gets deferred results of triggered email sends for a given mailing for a # given day. For use in tandem with send_triggered.py. import asyncio import json import random import time import aiohttp import pandas as pd from .utils import sql_quote from .api import BsdApi from .send_batch import CONNECTION_CONCURRENCY...
36.857143
182
0.642803
d2798c27ad29346b597401e21439a1dd119df00a
3,467
py
Python
MaximumSumSubMatrix.py
NickMonks/AlgorithmsAndDataStructure
ec1e7164b511cb755e6ae45c172df82cd0114b57
[ "MIT" ]
null
null
null
MaximumSumSubMatrix.py
NickMonks/AlgorithmsAndDataStructure
ec1e7164b511cb755e6ae45c172df82cd0114b57
[ "MIT" ]
null
null
null
MaximumSumSubMatrix.py
NickMonks/AlgorithmsAndDataStructure
ec1e7164b511cb755e6ae45c172df82cd0114b57
[ "MIT" ]
null
null
null
import unittest # O(h*w) Time and Size def maximumSumSubmatrix(matrix, size): # This problem can be solved in two ways: brute force approach, which is basically sum all the elements of a matriz (size,size), for each (i,j) # position; however, this takes O(h*w*size^2) time, since we need to check every element and...
43.3375
163
0.693972
e0b9e3f5f04b14492bb92bfe3f39ff387fb5f4a5
5,864
py
Python
SyntaxFold.py
SiMylo/sublimetext-syntaxfold
d05e5453075f69a8e182e1ed1f9624c13fb03862
[ "MIT" ]
null
null
null
SyntaxFold.py
SiMylo/sublimetext-syntaxfold
d05e5453075f69a8e182e1ed1f9624c13fb03862
[ "MIT" ]
null
null
null
SyntaxFold.py
SiMylo/sublimetext-syntaxfold
d05e5453075f69a8e182e1ed1f9624c13fb03862
[ "MIT" ]
null
null
null
import os import shutil import sublime import sublime_plugin def plugin_loaded(): user_settings_path = os.path.join( sublime.packages_path(), "User", "syntax_fold.sublime-settings") if not os.path.exists(user_settings_path): default_settings_path = os.path.join( sub...
29.616162
82
0.638302
03589ba9832e630a0d0bdc4a397403dfa7636a9d
1,114
py
Python
pyvisdk/do/virtual_ethernet_card_dv_port_backing_option.py
Infinidat/pyvisdk
f2f4e5f50da16f659ccc1d84b6a00f397fa997f8
[ "MIT" ]
null
null
null
pyvisdk/do/virtual_ethernet_card_dv_port_backing_option.py
Infinidat/pyvisdk
f2f4e5f50da16f659ccc1d84b6a00f397fa997f8
[ "MIT" ]
null
null
null
pyvisdk/do/virtual_ethernet_card_dv_port_backing_option.py
Infinidat/pyvisdk
f2f4e5f50da16f659ccc1d84b6a00f397fa997f8
[ "MIT" ]
null
null
null
import logging from pyvisdk.exceptions import InvalidArgumentError ######################################## # Automatically generated, do not edit. ######################################## log = logging.getLogger(__name__) def VirtualEthernetCardDVPortBackingOption(vim, *args, **kwargs): '''This data object typ...
32.764706
124
0.629264
e02c9b616ff8ebd9077d70dbf0036d75c77fa336
1,484
py
Python
tartiflette/language/validators/query/fragment_name_uniqueness.py
remorses/tartiflette-whl
92bed13de130a7a88278d7019314135e01281259
[ "MIT" ]
530
2019-06-04T11:45:36.000Z
2022-03-31T09:29:56.000Z
tartiflette/language/validators/query/fragment_name_uniqueness.py
remorses/tartiflette-whl
92bed13de130a7a88278d7019314135e01281259
[ "MIT" ]
242
2019-06-04T11:53:08.000Z
2022-03-28T07:06:27.000Z
tartiflette/language/validators/query/fragment_name_uniqueness.py
remorses/tartiflette-whl
92bed13de130a7a88278d7019314135e01281259
[ "MIT" ]
36
2019-06-21T06:40:27.000Z
2021-11-04T13:11:16.000Z
from tartiflette.language.validators.query.rule import ( June2018ReleaseValidationRule, ) from tartiflette.language.validators.query.utils import find_nodes_by_name from tartiflette.utils.errors import graphql_error_from_nodes class FragmentNameUniqueness(June2018ReleaseValidationRule): """ This validator...
36.195122
98
0.636792
68068bed6c8a9dc39df64a76a295acd69411dc43
3,840
py
Python
algorithms/base.py
Lolik-Bolik/Hashing_Algorithms
d3ba488cf575fc685d5ea603b1915de4d5fed713
[ "MIT" ]
2
2020-12-15T20:26:29.000Z
2020-12-15T20:27:26.000Z
algorithms/base.py
Lolik-Bolik/Hashing_Algorithms
d3ba488cf575fc685d5ea603b1915de4d5fed713
[ "MIT" ]
null
null
null
algorithms/base.py
Lolik-Bolik/Hashing_Algorithms
d3ba488cf575fc685d5ea603b1915de4d5fed713
[ "MIT" ]
null
null
null
from collections import Hashable from typing import Any, Union from .universal_hash_function import ( UniversalHashFunction, FastUniversalHashFunction, KIndependentUniversalHashFunction, ) from Crypto.Util import number from copy import deepcopy class Item: def __init__(self, key: Hashable, value: Any...
28.444444
85
0.590625
6f15d47bfcb434b65246a34c069df029fd076b52
1,353
py
Python
venv/Lib/site-packages/nipype/interfaces/fsl/tests/test_auto_CopyGeom.py
richung99/digitizePlots
6b408c820660a415a289726e3223e8f558d3e18b
[ "MIT" ]
585
2015-01-12T16:06:47.000Z
2022-03-26T14:51:08.000Z
nipype/interfaces/fsl/tests/test_auto_CopyGeom.py
tamires-consulting/nipype
b7879d75a63b6500b2e7d2c3eba5aa7670339274
[ "Apache-2.0" ]
2,329
2015-01-01T09:56:41.000Z
2022-03-30T14:24:49.000Z
nipype/interfaces/fsl/tests/test_auto_CopyGeom.py
tamires-consulting/nipype
b7879d75a63b6500b2e7d2c3eba5aa7670339274
[ "Apache-2.0" ]
487
2015-01-20T01:04:52.000Z
2022-03-21T21:22:47.000Z
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT from ..utils import CopyGeom def test_CopyGeom_inputs(): input_map = dict( args=dict( argstr="%s", ), dest_file=dict( argstr="%s", copyfile=True, extensions=None, mandatory=Tru...
25.055556
67
0.519586
f638808c83def845d56d754fe618a2d4054763a7
468
py
Python
sdk/python/pulumi_azure/netapp/__init__.py
suresh198526/pulumi-azure
bf27206a38d7a5c58b3c2c57ec8769fe3d0fc5d7
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure/netapp/__init__.py
suresh198526/pulumi-azure
bf27206a38d7a5c58b3c2c57ec8769fe3d0fc5d7
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure/netapp/__init__.py
suresh198526/pulumi-azure
bf27206a38d7a5c58b3c2c57ec8769fe3d0fc5d7
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: from .account import * from .get_account import * from .get_pool import * from .get_snapsho...
29.25
87
0.728632
42ce80276f485b102268257179c2ed375e59d985
3,994
py
Python
asposepdfcloud/models/annotation_type.py
kaferi/aspose-pdf-cloud-python
48f70742fec1e41644ec0b658db3f174ba845304
[ "MIT" ]
7
2018-06-11T17:44:44.000Z
2022-02-08T05:52:48.000Z
asposepdfcloud/models/annotation_type.py
kaferi/aspose-pdf-cloud-python
48f70742fec1e41644ec0b658db3f174ba845304
[ "MIT" ]
1
2021-03-20T22:16:15.000Z
2021-06-27T15:11:52.000Z
asposepdfcloud/models/annotation_type.py
kaferi/aspose-pdf-cloud-python
48f70742fec1e41644ec0b658db3f174ba845304
[ "MIT" ]
4
2018-04-18T19:41:12.000Z
2021-06-21T13:12:24.000Z
# coding: utf-8 """ Aspose.PDF Cloud API Reference Copyright (c) 2021 Aspose.PDF Cloud Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the r...
26.986486
78
0.598147
01ab5ca53824b4b6632de1644a4e7fe0d4614200
6,829
py
Python
libcloud/compute/drivers/elastichosts.py
Jc2k/libcloud
508dfb4791e5f3f49214567725d56b367075effc
[ "Apache-2.0" ]
1
2015-11-05T15:37:04.000Z
2015-11-05T15:37:04.000Z
libcloud/compute/drivers/elastichosts.py
Jc2k/libcloud
508dfb4791e5f3f49214567725d56b367075effc
[ "Apache-2.0" ]
null
null
null
libcloud/compute/drivers/elastichosts.py
Jc2k/libcloud
508dfb4791e5f3f49214567725d56b367075effc
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use ...
31.182648
76
0.663787
a18a0ee0c1ce7e33f0f4c2e963ca051451745735
11,316
py
Python
reference_file_testing_tool/reftest.py
pllim/reference-file-testing-tool
f6ee7b6d306904c29b6321c738d8ac76c0a75157
[ "BSD-3-Clause" ]
null
null
null
reference_file_testing_tool/reftest.py
pllim/reference-file-testing-tool
f6ee7b6d306904c29b6321c738d8ac76c0a75157
[ "BSD-3-Clause" ]
7
2018-06-20T20:39:02.000Z
2021-04-09T23:44:38.000Z
reference_file_testing_tool/reftest.py
pllim/reference-file-testing-tool
f6ee7b6d306904c29b6321c738d8ac76c0a75157
[ "BSD-3-Clause" ]
2
2020-02-21T14:12:18.000Z
2021-04-09T22:40:04.000Z
"""Script for testing reference files Usage: test_ref_file <ref_file> <db_path> [--data=<fname>] [--max_matches=<match>] [--num_cpu=<n>] [--email=<addr>] Arguments: <db_path> Absolute path to database. <file_path> Absolute path to fits file to add. Options: -h --help Show this scre...
32.424069
112
0.625574
1d5cac5d4783cdfd5fbf54c092cbac91dd82e976
2,565
py
Python
task_mail.py
Noel-git/OSS_final
1199c5c7ce054da01c9dfb33c2035540a7693550
[ "BSD-3-Clause" ]
null
null
null
task_mail.py
Noel-git/OSS_final
1199c5c7ce054da01c9dfb33c2035540a7693550
[ "BSD-3-Clause" ]
null
null
null
task_mail.py
Noel-git/OSS_final
1199c5c7ce054da01c9dfb33c2035540a7693550
[ "BSD-3-Clause" ]
1
2022-02-13T00:46:27.000Z
2022-02-13T00:46:27.000Z
import urllib.request import re import numpy as np import os, sys, time import datetime from bs4 import BeautifulSoup import smtplib from email.mime.text import MIMEText from time import sleep import random from urllib.request import HTTPError from urllib.request import URLError def mailfunc(year,semester...
27.580645
242
0.557115
efb344f8473fc886e491e99e656ff5bdf2285557
84
py
Python
Implementation/9316_Hello Judge/9316_Hello Judge.py
7dudtj/BOJ_myCode
37d105590a7963e2232102b3098fea3c3504b96f
[ "MIT" ]
1
2022-03-30T15:50:47.000Z
2022-03-30T15:50:47.000Z
Implementation/9316_Hello Judge/9316_Hello Judge.py
7dudtj/BOJ_myCode
37d105590a7963e2232102b3098fea3c3504b96f
[ "MIT" ]
null
null
null
Implementation/9316_Hello Judge/9316_Hello Judge.py
7dudtj/BOJ_myCode
37d105590a7963e2232102b3098fea3c3504b96f
[ "MIT" ]
1
2021-07-20T07:11:06.000Z
2021-07-20T07:11:06.000Z
N = int(input()) for i in range(1,N+1): print('Hello World, Judge '+str(i)+'!')
21
43
0.559524
e89c6116cc5a3a8308cc70f8f4ca2cc436377652
9,015
py
Python
scripts/plot.py
bioimage-analysis/segmentation_eva
95b1e928efa055d10400392921515a66b6fa2007
[ "MIT" ]
1
2019-06-28T04:31:03.000Z
2019-06-28T04:31:03.000Z
scripts/plot.py
bioimage-analysis/segmentation_eva
95b1e928efa055d10400392921515a66b6fa2007
[ "MIT" ]
null
null
null
scripts/plot.py
bioimage-analysis/segmentation_eva
95b1e928efa055d10400392921515a66b6fa2007
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt from skimage.io import imread import numpy as np from skimage import segmentation from skimage import measure from skimage import filters from sklearn.cluster import KMeans from skimage.color import label2rgb import holoviews as hv import holoviews.util def display_im(img): z ,_ ,_ ...
30.05
115
0.591459
2a67cec3ec3f9d6b13f24ec35a4d8ca69882112b
1,065
py
Python
lang-python/sandbox/build.py
xd23fe39/technical-notes
bb6348705a95db24d07b1081b1aa0265dda131ce
[ "MIT" ]
null
null
null
lang-python/sandbox/build.py
xd23fe39/technical-notes
bb6348705a95db24d07b1081b1aa0265dda131ce
[ "MIT" ]
null
null
null
lang-python/sandbox/build.py
xd23fe39/technical-notes
bb6348705a95db24d07b1081b1aa0265dda131ce
[ "MIT" ]
null
null
null
#!/usr/bin/python ## -*- coding: utf-8 -*- # Import basic modules import os import sys # Initialization I_WORKING_DIR = os.getcwd() I_GETENV_USER = os.getenv("USER") I_SYS_SCRIPTNAME = sys.argv[0] G_APPLICATION_NAME = "Generic" G_APPLICATION_VERSION = "1.0.1" G_APPLICATION_RELEASE = "19.12.130" ####################...
20.882353
105
0.578404
c14bc36e78f00dc386fe25c55075bbf0f8ace534
3,854
py
Python
osscla/webhook_worker.py
lyft/osscla
8e9695324f300d543af906c599401743c4d32289
[ "Apache-2.0" ]
6
2017-12-07T06:43:52.000Z
2021-09-03T19:15:29.000Z
osscla/webhook_worker.py
lyft/osscla
8e9695324f300d543af906c599401743c4d32289
[ "Apache-2.0" ]
21
2017-08-07T20:03:40.000Z
2022-01-09T01:39:47.000Z
osscla/webhook_worker.py
lyft/osscla
8e9695324f300d543af906c599401743c4d32289
[ "Apache-2.0" ]
5
2017-08-05T05:14:08.000Z
2020-11-27T10:44:52.000Z
from __future__ import absolute_import import gevent.monkey gevent.monkey.patch_all(thread=False) import gevent.pool # noqa: E402 import json # noqa: E402 import signal # noqa: E402 from osscla import logger # noqa: E402 from osscla.app import app # noqa: E402 from osscla.services import stats # noqa: E402 from ...
29.875969
111
0.593669
ff2d88f7942178bc4456a3c2b2e9f5aa40d710a7
241
py
Python
online_store/apps/orders/forms.py
oocemb/Online_store
d01ca5c8956b552eda9bd242544a34fad9d3038f
[ "Apache-2.0" ]
null
null
null
online_store/apps/orders/forms.py
oocemb/Online_store
d01ca5c8956b552eda9bd242544a34fad9d3038f
[ "Apache-2.0" ]
null
null
null
online_store/apps/orders/forms.py
oocemb/Online_store
d01ca5c8956b552eda9bd242544a34fad9d3038f
[ "Apache-2.0" ]
null
null
null
from django import forms from .models import * # class SubscriberForm(forms.ModelForm): # class Meta: # model = Subscriber # exclude = [""] # не писать fields = [... все поля] а перечислить что ничего не нужно исключать
30.125
104
0.659751
268cb408bfc39004c76d0f5666509d106f65aa4b
2,773
py
Python
mothpi/utils.py
lumaku/mothpi
7eb34272ad334ecc629e2e6aed8fe39a341037ab
[ "Apache-2.0" ]
null
null
null
mothpi/utils.py
lumaku/mothpi
7eb34272ad334ecc629e2e6aed8fe39a341037ab
[ "Apache-2.0" ]
null
null
null
mothpi/utils.py
lumaku/mothpi
7eb34272ad334ecc629e2e6aed8fe39a341037ab
[ "Apache-2.0" ]
null
null
null
# !/usr/bin/python3 # -*- coding:utf-8 -*- """ Useful stuff. 2021, Technische Universität München, Ludwig Kürzinger """ import logging from threading import Timer, Lock import os import time import shutil from netifaces import interfaces, ifaddresses, AF_INET # mothpi-specific from mothpi.display import Epaper, pai...
26.92233
86
0.618464
35ecca011a8d33db391729e4c168c1a4117ac1b9
5,042
py
Python
ccc/contest.py
blu3r4y/ccc-linz-nov2021
239bc1395a72fb56efe29a57882b1325c129b85e
[ "MIT" ]
1
2021-11-07T16:33:41.000Z
2021-11-07T16:33:41.000Z
ccc/contest.py
blu3r4y/ccc-linz-nov2021
239bc1395a72fb56efe29a57882b1325c129b85e
[ "MIT" ]
null
null
null
ccc/contest.py
blu3r4y/ccc-linz-nov2021
239bc1395a72fb56efe29a57882b1325c129b85e
[ "MIT" ]
null
null
null
from lark import Lark, Transformer from loguru import logger as log from .runner import run from textwrap import indent # one python indentation PREFIX = " " GRAMMAR = r""" start: function+ function: "start" block "end" statement: print_ | return_ | ifelse_ | var_ | set_ | postpone_ block: state...
24.240385
97
0.618009
3fe8b0ae1bcfca61d83dc1362405e965df09109d
1,637
py
Python
ivi/lecroy/lecroyWR104XIA.py
elopezga/ErrorRate
4f2be815f1e88ea832c8e7f0ddd6f922a0b9cdc1
[ "MIT" ]
3
2016-04-28T10:08:12.000Z
2021-07-28T22:45:23.000Z
ivi/lecroy/lecroyWR104XIA.py
elopezga/ErrorRate
4f2be815f1e88ea832c8e7f0ddd6f922a0b9cdc1
[ "MIT" ]
null
null
null
ivi/lecroy/lecroyWR104XIA.py
elopezga/ErrorRate
4f2be815f1e88ea832c8e7f0ddd6f922a0b9cdc1
[ "MIT" ]
2
2017-07-22T09:13:41.000Z
2020-02-06T18:46:36.000Z
""" Python Interchangeable Virtual Instrument Library Copyright (c) 2012 Alex Forencich Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the righ...
36.377778
86
0.76909
2787611ac2b4280c04b6e039285b7a86fa66b411
41,207
py
Python
main.py
NiclasEriksen/importANT
9cfe0122d3a7bbcfd2b39fe2c3d2ee203377e192
[ "MIT" ]
null
null
null
main.py
NiclasEriksen/importANT
9cfe0122d3a7bbcfd2b39fe2c3d2ee203377e192
[ "MIT" ]
null
null
null
main.py
NiclasEriksen/importANT
9cfe0122d3a7bbcfd2b39fe2c3d2ee203377e192
[ "MIT" ]
null
null
null
# import sys # sys.path.insert(0, '/opt/pypy3/site-packages') import random import tdl from noise import snoise2, pnoise3 from functions import ( shade_color, tint_color, filled_circle, alpha_blend_color, turn, tiles_in_front, check_range, create_rect, check_point_rectangle, weighted_choice ) from river imp...
33.44724
103
0.463999
69ea64ac7ee42835aef7cfbb243b0bf9ab9ea4a2
53,068
py
Python
mm_power_sdk_python/models/clinical_trial.py
MolecularMatch/mm-power-sdk-python
1fcbcc25c47d7b435e03929cb185eb7f10fb415d
[ "Apache-2.0" ]
null
null
null
mm_power_sdk_python/models/clinical_trial.py
MolecularMatch/mm-power-sdk-python
1fcbcc25c47d7b435e03929cb185eb7f10fb415d
[ "Apache-2.0" ]
null
null
null
mm_power_sdk_python/models/clinical_trial.py
MolecularMatch/mm-power-sdk-python
1fcbcc25c47d7b435e03929cb185eb7f10fb415d
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ MolecularMatch MMPower MMPower API # noqa: E501 OpenAPI spec version: 1.0.0 Contact: support@molecularmatch.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class ClinicalTrial(object): """NOTE: ...
34.775885
1,022
0.649318
a3a25cf739056f555bb7ef2a437f8ea56a4080ff
2,169
py
Python
model.py
SidGoyal2014/Real-Estate-Price-Estimator
f97356c7a911853cc9c40640298f6a5ae0f04cb8
[ "Apache-2.0" ]
null
null
null
model.py
SidGoyal2014/Real-Estate-Price-Estimator
f97356c7a911853cc9c40640298f6a5ae0f04cb8
[ "Apache-2.0" ]
null
null
null
model.py
SidGoyal2014/Real-Estate-Price-Estimator
f97356c7a911853cc9c40640298f6a5ae0f04cb8
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sat Oct 31 00:25:54 2020 @author: DELL """ # import numpy as np import pandas as pd # import matplotlib.pyplot as plt import os # from sklearn.preprocessing import train_test_split from sklearn.linear_model import LinearRegression from sklearn.preprocessing import P...
21.264706
53
0.688797
f25697c154ee9a7dd1190e49649ff0539e81c4ca
11,172
py
Python
tools/dcl/train.py
intflow/RotationDetection
c5e8239141b37d2b5798e64aa8fbe142ca6da230
[ "Apache-2.0" ]
null
null
null
tools/dcl/train.py
intflow/RotationDetection
c5e8239141b37d2b5798e64aa8fbe142ca6da230
[ "Apache-2.0" ]
null
null
null
tools/dcl/train.py
intflow/RotationDetection
c5e8239141b37d2b5798e64aa8fbe142ca6da230
[ "Apache-2.0" ]
1
2021-12-04T13:20:56.000Z
2021-12-04T13:20:56.000Z
# -*- coding:utf-8 -*- from __future__ import absolute_import from __future__ import print_function from __future__ import division import os import sys import tensorflow as tf import tensorflow.contrib.slim as slim import numpy as np sys.path.append("../../") from tools.train_base import Train from libs.configs imp...
62.413408
121
0.419531
49fcddfc450365fa81f11644742f27a5a94a5e83
7,794
py
Python
src/princeton_scraper_seas_faculty/seas_faculty_directory.py
jlumbroso/princeton-scraper-seas-faculty
d6c0dcaec050d8fb22f8a6a911db287640563c12
[ "Unlicense" ]
10
2020-08-11T18:44:18.000Z
2021-06-16T19:58:38.000Z
src/princeton_scraper_seas_faculty/seas_faculty_directory.py
jlumbroso/princeton-scraper-seas-faculty
d6c0dcaec050d8fb22f8a6a911db287640563c12
[ "Unlicense" ]
null
null
null
src/princeton_scraper_seas_faculty/seas_faculty_directory.py
jlumbroso/princeton-scraper-seas-faculty
d6c0dcaec050d8fb22f8a6a911db287640563c12
[ "Unlicense" ]
null
null
null
import typing import urllib.parse import requests import bs4 import princeton_scraper_seas_faculty.campus_directory import princeton_scraper_seas_faculty.constants import princeton_scraper_seas_faculty.helpers __author__ = "Jérémie Lumbroso <lumbroso@cs.princeton.edu>" __all__ = [ "SeasFacultyInformation", ...
30.209302
109
0.671286
3a65e79dcb920981bd37981f87f99df9e8c28bd5
471
py
Python
joystick_mapping.py
georgerapeanu/Remote-Gamepad
fcdbcabf0423ff88f4697e03e5772ebac3359d1b
[ "FSFAP" ]
null
null
null
joystick_mapping.py
georgerapeanu/Remote-Gamepad
fcdbcabf0423ff88f4697e03e5772ebac3359d1b
[ "FSFAP" ]
null
null
null
joystick_mapping.py
georgerapeanu/Remote-Gamepad
fcdbcabf0423ff88f4697e03e5772ebac3359d1b
[ "FSFAP" ]
null
null
null
A_BUTTON = 0 B_BUTTON = 1 X_BUTTON = 2 Y_BUTTON = 3 LEFT_BUMPER_BUTTON = 4 RIGHT_BUMPER_BUTTON = 5 LEFT_STICK_BUTTON = 9 RIGHT_STICK_BUTTON = 10 START_BUTTON = 7 BACK_BUTTON = 6 GUIDE_BUTTON = 8 INVERT_X_AXIS = False LEFT_STICK_X_AXIS = 0 LEFT_STICK_Y_AXIS = 1 INVERT_Y_AXIS = False RIGHT_STICK_X_AXIS = 3 RIGHT_STICK...
17.444444
24
0.789809
f77c333291a912342330e2e5fe6acd26bbdbab94
2,458
py
Python
messenger/client/preferences_ui.py
marik348/python-messenger
6c1916b0df439cd997cb6e9376221fe587c3f1c1
[ "MIT" ]
2
2021-05-24T08:44:51.000Z
2022-03-17T10:41:48.000Z
messenger/client/preferences_ui.py
marik348/python-messenger
6c1916b0df439cd997cb6e9376221fe587c3f1c1
[ "MIT" ]
1
2020-11-28T12:08:25.000Z
2020-11-28T12:08:25.000Z
messenger/client/preferences_ui.py
marik348/python-messegner
6c1916b0df439cd997cb6e9376221fe587c3f1c1
[ "MIT" ]
1
2021-05-24T08:50:42.000Z
2021-05-24T08:50:42.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'preferences_ui.ui' # # Created by: PyQt5 UI code generator 5.14.2 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_Preferences(object): def setupUi(self, Preferences): ...
43.122807
278
0.702604
daa99006924c774d82d53f31766f3f4d2cb54cbb
16,350
py
Python
pygmt/helpers/decorators.py
shahid-0/pygmt
fc8a30a99b81c4aa092e38669e5e4a39411ca78d
[ "BSD-3-Clause" ]
null
null
null
pygmt/helpers/decorators.py
shahid-0/pygmt
fc8a30a99b81c4aa092e38669e5e4a39411ca78d
[ "BSD-3-Clause" ]
14
2021-03-25T08:27:38.000Z
2021-09-14T19:05:12.000Z
pygmt/helpers/decorators.py
shahid-0/pygmt
fc8a30a99b81c4aa092e38669e5e4a39411ca78d
[ "BSD-3-Clause" ]
null
null
null
""" Decorators to help wrap the GMT modules. Apply them to functions wrapping GMT modules to automate: alias generation for arguments, insert common text into docstrings, transform arguments to strings, etc. """ import functools import textwrap import numpy as np from pygmt.exceptions import GMTInvalidInput from pygm...
34.713376
98
0.540489
d842ac06e49589e4fc388fbf4412676e327a4a9f
3,318
py
Python
src/rest_api_server/tutorial/settings.py
zhxu73/HackArizona2020
9895d14c0c60d80baf50905e6accc9eb6688b300
[ "MIT" ]
null
null
null
src/rest_api_server/tutorial/settings.py
zhxu73/HackArizona2020
9895d14c0c60d80baf50905e6accc9eb6688b300
[ "MIT" ]
null
null
null
src/rest_api_server/tutorial/settings.py
zhxu73/HackArizona2020
9895d14c0c60d80baf50905e6accc9eb6688b300
[ "MIT" ]
null
null
null
""" Django settings for tutorial project. Generated by 'django-admin startproject' using Django 3.0.2. For more information on this file, see https://docs.djangoproject.com/en/3.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.0/ref/settings/ """ import os ...
25.328244
91
0.696504
2937a5a091713e81f42f2bfe6e14826a96c7a377
1,577
py
Python
examples/paper/sun_compare.py
AWehrhahn/SME
542e880ed779381f7cbbaaacb59475fa6a6d3537
[ "BSD-3-Clause" ]
14
2019-06-26T18:43:09.000Z
2022-03-12T00:53:42.000Z
examples/paper/sun_compare.py
AWehrhahn/SME
542e880ed779381f7cbbaaacb59475fa6a6d3537
[ "BSD-3-Clause" ]
10
2020-03-01T15:21:23.000Z
2021-09-01T15:28:37.000Z
examples/paper/sun_compare.py
AWehrhahn/SME
542e880ed779381f7cbbaaacb59475fa6a6d3537
[ "BSD-3-Clause" ]
6
2019-03-01T15:25:24.000Z
2022-03-30T10:26:33.000Z
""" Minimum working example of an SME script """ import os.path import matplotlib.pyplot as plt import numpy as np from scipy.io import readsav from pysme import sme as SME from pysme import util from pysme.abund import Abund from pysme.gui import plot_plotly from pysme.linelist.vald import ValdFile from pysme.persis...
29.203704
73
0.712112
4eab773a7698851b64817d780ada2cc8bdfde556
886
py
Python
convmixer.py
KelvinYang0320/convmixer
7f4b2340969003ac1edea113c004ba38f61a71a1
[ "MIT" ]
325
2021-10-07T01:26:31.000Z
2022-01-24T08:47:55.000Z
convmixer.py
KelvinYang0320/convmixer
7f4b2340969003ac1edea113c004ba38f61a71a1
[ "MIT" ]
11
2021-10-08T05:52:50.000Z
2021-11-20T05:45:14.000Z
convmixer.py
KelvinYang0320/convmixer
7f4b2340969003ac1edea113c004ba38f61a71a1
[ "MIT" ]
36
2021-10-08T05:57:22.000Z
2022-01-11T08:47:20.000Z
import torch.nn as nn class Residual(nn.Module): def __init__(self, fn): super().__init__() self.fn = fn def forward(self, x): return self.fn(x) + x def ConvMixer(dim, depth, kernel_size=9, patch_size=7, n_classes=1000): return nn.Sequential( nn.Conv2d(3, dim, kernel_size=...
29.533333
81
0.522573
9c789dfd918678bf16ed3b5de7324f0da54b7a53
4,156
py
Python
Sobol_SA_horizont/bulk_density/sobol_monica.py
mishagrol/SA_agro_model
4e2caa5e80da092228a8bbf21c66b532b42ad5cb
[ "Apache-2.0" ]
2
2020-10-02T14:09:26.000Z
2022-02-17T12:20:11.000Z
Sobol_SA_horizont/bulk_density/sobol_monica.py
mishagrol/SA_agro_model
4e2caa5e80da092228a8bbf21c66b532b42ad5cb
[ "Apache-2.0" ]
null
null
null
Sobol_SA_horizont/bulk_density/sobol_monica.py
mishagrol/SA_agro_model
4e2caa5e80da092228a8bbf21c66b532b42ad5cb
[ "Apache-2.0" ]
1
2022-02-19T13:36:29.000Z
2022-02-19T13:36:29.000Z
#!/usr/bin/env python #!/trinity/shared/opt/python-3.7.1/bin/python3.7 # coding: utf-8 import numpy as np import pandas as pd import json import pickle import csv from pandas.io.json import json_normalize import scipy import SALib from SALib.sample import saltelli import os import subprocess def writting_files(str_val...
42.408163
108
0.69153
95d004920380bd7d3eaac8cd7e9d39ccea285989
1,951
py
Python
mindspore/profiler/common/validator/validate_path.py
i4oolish/mindspore
dac3be31d0f2c0a3516200f47af30980e566601b
[ "Apache-2.0" ]
2
2020-08-12T16:14:40.000Z
2020-12-04T03:05:57.000Z
mindspore/profiler/common/validator/validate_path.py
dilingsong/mindspore
4276050f2494cfbf8682560a1647576f859991e8
[ "Apache-2.0" ]
null
null
null
mindspore/profiler/common/validator/validate_path.py
dilingsong/mindspore
4276050f2494cfbf8682560a1647576f859991e8
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 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...
31.983607
78
0.655049
42dc554c287eaf51dbbe177077c5070664080854
23,488
py
Python
AppServer/google/appengine/api/files/file_service_stub.py
echoi-appscale/appscale
bff3d6a9d42b0c2dd58796c4fc6aa1ddd2c00bcc
[ "Apache-2.0" ]
16
2020-02-22T03:37:10.000Z
2022-03-18T08:07:10.000Z
AppServer/google/appengine/api/files/file_service_stub.py
nlake44/appscale
6944af660ca4cb772c9b6c2332ab28e5ef4d849f
[ "Apache-2.0" ]
2
2020-08-16T08:00:09.000Z
2021-04-26T20:15:17.000Z
AppServer/google/appengine/api/files/file_service_stub.py
nlake44/appscale
6944af660ca4cb772c9b6c2332ab28e5ef4d849f
[ "Apache-2.0" ]
2
2021-05-01T10:01:06.000Z
2021-10-30T16:27:41.000Z
#!/usr/bin/env python # # Copyright 2007 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
33.316312
80
0.714322
e3882b88673928c62741d79851d97224e4b699ea
8,366
py
Python
shreddit/shredder.py
techwoes/Shreddit
159b702b625676a62d600f4601242689aae63b9e
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
shreddit/shredder.py
techwoes/Shreddit
159b702b625676a62d600f4601242689aae63b9e
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
shreddit/shredder.py
techwoes/Shreddit
159b702b625676a62d600f4601242689aae63b9e
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
import arrow import argparse import json import logging import os import praw import sys import time import yaml from datetime import datetime, timedelta from praw.models import Comment, Submission from prawcore.exceptions import ResponseException, OAuthException, BadRequest from re import sub from shreddit.util import...
42.902564
115
0.622161
ccc89ad085d80bd30abfa851cd02324d67d8f52b
23,398
py
Python
pepys_admin/maintenance/tasks_gui.py
debrief/pepys-import
12d29c0e0f69e1119400334983947893e7679b6b
[ "Apache-2.0" ]
4
2021-05-14T08:22:47.000Z
2022-02-04T19:48:25.000Z
pepys_admin/maintenance/tasks_gui.py
debrief/pepys-import
12d29c0e0f69e1119400334983947893e7679b6b
[ "Apache-2.0" ]
1,083
2019-11-06T17:01:07.000Z
2022-03-25T10:26:51.000Z
pepys_admin/maintenance/tasks_gui.py
debrief/pepys-import
12d29c0e0f69e1119400334983947893e7679b6b
[ "Apache-2.0" ]
4
2019-11-06T12:00:45.000Z
2021-06-09T04:18:28.000Z
import textwrap import traceback from asyncio import ensure_future from datetime import datetime from loguru import logger from prompt_toolkit.application.application import Application from prompt_toolkit.application.current import get_app from prompt_toolkit.key_binding.bindings.focus import focus_next, focus_previo...
40.341379
122
0.617489
d5cf929e21decddadac3c661c9be79940ffed04f
1,274
py
Python
src/main.py
hazyuun/Chess-FEN
b6564181b98c7286b51616af643b7d3ab646d9a0
[ "MIT" ]
1
2021-04-01T00:15:58.000Z
2021-04-01T00:15:58.000Z
src/main.py
hazyuun/Chess-FEN
b6564181b98c7286b51616af643b7d3ab646d9a0
[ "MIT" ]
null
null
null
src/main.py
hazyuun/Chess-FEN
b6564181b98c7286b51616af643b7d3ab646d9a0
[ "MIT" ]
null
null
null
import argparse from utils.data import * from utils.load import * from utils.fen import * from utils.img import * from model import * MODEL_FILE = "CHESS_FEN.model" def handle_args(): parser = argparse.ArgumentParser( description='Predicts FEN given a chess board image') group = parser.add_mutually...
26.541667
77
0.692308
f9982fe69886fdd523fcd07d6cce87b2eccc3252
13,635
py
Python
magic-wand/accelerometers/mpu6050/examples/MPU6050_DMP6/MPU6050_DMP6.py
uraich/EdgeComputing
2819fa4e37cd2d81e806813aa0f713eaa846baec
[ "MIT" ]
null
null
null
magic-wand/accelerometers/mpu6050/examples/MPU6050_DMP6/MPU6050_DMP6.py
uraich/EdgeComputing
2819fa4e37cd2d81e806813aa0f713eaa846baec
[ "MIT" ]
null
null
null
magic-wand/accelerometers/mpu6050/examples/MPU6050_DMP6/MPU6050_DMP6.py
uraich/EdgeComputing
2819fa4e37cd2d81e806813aa0f713eaa846baec
[ "MIT" ]
null
null
null
# # I2C device class (I2Cdev) demonstration Arduino sketch for MPU6050 class using DMP (MotionApps v2.0) # 6/21/2012 by Jeff Rowberg <jeff@rowberg.net> # Updates should (hopefully) always be available at https:#github.com/jrowberg/i2cdevlib # # Changelog: # 2019-07-08 - Added Auto Calibration and offset generator...
41.697248
102
0.624862
fc6472fad0f2d583b6900dddec262c5df8d298cb
1,297
py
Python
src/test/search.py
Keno/rr
27e58459534f84ee7c1feda2156c91608afa4fb8
[ "BSD-1-Clause" ]
2
2020-10-29T02:10:54.000Z
2021-06-20T00:00:26.000Z
src/test/search.py
Keno/rr
27e58459534f84ee7c1feda2156c91608afa4fb8
[ "BSD-1-Clause" ]
null
null
null
src/test/search.py
Keno/rr
27e58459534f84ee7c1feda2156c91608afa4fb8
[ "BSD-1-Clause" ]
1
2021-06-20T00:00:39.000Z
2021-06-20T00:00:39.000Z
from rrutil import * send_gdb('break breakpoint') expect_gdb('Breakpoint 1') send_gdb('c') expect_gdb('Breakpoint 1') send_gdb('find buf,+1,(char)0') expect_gdb('<buf>') expect_gdb('1 pattern found') send_gdb('find buf,+1000,(char)99') expect_gdb('Pattern not found') send_gdb('find buf,+1000,(char)2') expect_gdb('<...
22.754386
71
0.696993
c6b224bbc51dca98d0620752a901216d17b502e9
3,045
py
Python
.template_simulation/loop_cost_functions.py
lukaselflein/sarah_folderstructure
a725271db3d8b5b28b24918b3daf0942fa04dcd8
[ "MIT" ]
null
null
null
.template_simulation/loop_cost_functions.py
lukaselflein/sarah_folderstructure
a725271db3d8b5b28b24918b3daf0942fa04dcd8
[ "MIT" ]
28
2019-03-29T13:34:57.000Z
2019-07-04T09:27:07.000Z
.template_simulation/loop_cost_functions.py
lukaselflein/sarah_folderstructure
a725271db3d8b5b28b24918b3daf0942fa04dcd8
[ "MIT" ]
null
null
null
""" Find files and calculate cost functions. Copyright 2019 Simulation Lab University of Freiburg Author: Lukas Elflein <elfleinl@cs.uni-freiburg.de> """ import os import subprocess import argparse from smamp.tools import cd from smamp.tools import check_existence def calc_cost_function(path, lnrho=-5, sigma=0.8, out...
33.097826
93
0.650246
b415f47bdc8eb5a3053616a2f4c87d99cbe93437
45,993
py
Python
pyblp/markets/market.py
rebekahanne/pyblp
fe41991c5ec457bb5cfc1bf4d5788d18660a3de2
[ "MIT" ]
1
2021-01-25T01:25:45.000Z
2021-01-25T01:25:45.000Z
pyblp/markets/market.py
rebekahanne/pyblp
fe41991c5ec457bb5cfc1bf4d5788d18660a3de2
[ "MIT" ]
null
null
null
pyblp/markets/market.py
rebekahanne/pyblp
fe41991c5ec457bb5cfc1bf4d5788d18660a3de2
[ "MIT" ]
null
null
null
"""Market underlying the BLP model.""" import functools from typing import Any, Dict, List, Optional, Tuple import numpy as np from .. import exceptions, options from ..configurations.iteration import ContractionResults, Iteration from ..economies.economy import Economy from ..moments import EconomyMoments, MarketMo...
53.232639
120
0.655926
80339356461917c8a940b3ca30348a3a94e1e0f6
36,314
py
Python
contentcuration/contentcuration/serializers.py
benjaoming/content-curation
e1cf371c1a0df2fad20e6d5ffd3eafc016b6f642
[ "MIT" ]
null
null
null
contentcuration/contentcuration/serializers.py
benjaoming/content-curation
e1cf371c1a0df2fad20e6d5ffd3eafc016b6f642
[ "MIT" ]
null
null
null
contentcuration/contentcuration/serializers.py
benjaoming/content-curation
e1cf371c1a0df2fad20e6d5ffd3eafc016b6f642
[ "MIT" ]
null
null
null
import zlib import math from collections import OrderedDict from django.conf import settings from django.core.cache import cache from django.core.exceptions import ValidationError as DjangoValidationError, PermissionDenied from django.core.files import File as DjFile from django.db import transaction from django.db.mod...
45.506266
192
0.645784
9c04c67dab625f47cb8538d1b657378f935f3434
1,898
py
Python
src/conversion/convert2trt.py
MickaelCormier/IW276WS20-P6
ca0a567d6822cb631a5b31820904e2c167090e64
[ "MIT" ]
1
2020-10-07T18:24:56.000Z
2020-10-07T18:24:56.000Z
src/conversion/convert2trt.py
MickaelCormier/IW276WS20-P6
ca0a567d6822cb631a5b31820904e2c167090e64
[ "MIT" ]
1
2020-10-01T18:49:07.000Z
2020-10-01T18:49:07.000Z
src/conversion/convert2trt.py
MickaelCormier/IW276WS20-P6
ca0a567d6822cb631a5b31820904e2c167090e64
[ "MIT" ]
null
null
null
import torch import torchvision from torch2trt import torch2trt from torchvision.models.alexnet import alexnet import torch.nn as nn import torchvision.models as models import torchvision.transforms as transforms from torchvision import datasets, models, transforms import cv2 import numpy as np import sys # converts r...
29.2
85
0.683878
84626b579a058d40ead084ea83cec0d6847ec6fe
7,540
py
Python
tests/unit/test_api.py
j2sol/github3.py
1edaca378a11b5e03c9b472676912c4cacc3693a
[ "BSD-3-Clause" ]
null
null
null
tests/unit/test_api.py
j2sol/github3.py
1edaca378a11b5e03c9b472676912c4cacc3693a
[ "BSD-3-Clause" ]
null
null
null
tests/unit/test_api.py
j2sol/github3.py
1edaca378a11b5e03c9b472676912c4cacc3693a
[ "BSD-3-Clause" ]
1
2019-01-02T09:58:57.000Z
2019-01-02T09:58:57.000Z
"""Unit tests for github3.api.""" import github3 import unittest from .helper import mock class TestAPI(unittest.TestCase): """All tests for the github3.api module.""" def setUp(self): self.mocked_github = mock.patch('github3.api.gh', autospec=github3.GitHub)...
39.89418
76
0.637798
a5a431d438058ddd79b0baf0d893bd961d14a4fd
2,147
py
Python
tftk/activation.py
kitfactory/tftk
5cae0a96b99eecb6f64922068c162f973eebba71
[ "MIT" ]
6
2020-03-09T00:18:08.000Z
2021-11-08T09:27:19.000Z
tftk/activation.py
kitfactory/tftk
5cae0a96b99eecb6f64922068c162f973eebba71
[ "MIT" ]
2
2022-02-10T07:34:22.000Z
2022-03-12T01:10:05.000Z
tftk/activation.py
kitfactory/tftk
5cae0a96b99eecb6f64922068c162f973eebba71
[ "MIT" ]
null
null
null
"""学習時のActivationを提供する Mishは以下を参照に作成されています。 https://github.com/digantamisra98/Mish MIT License Copyright (c) 2019 Diganta Misra 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 restricti...
34.629032
78
0.727993
76420dd682b2acc52240997097915456cde7f97a
548
py
Python
backend/home/migrations/0001_load_initial_data.py
crowdbotics-apps/kikiz-cosmeticz-33336
337a543c621f4bbc2972009033a35d0a8eb3b5c1
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/home/migrations/0001_load_initial_data.py
crowdbotics-apps/kikiz-cosmeticz-33336
337a543c621f4bbc2972009033a35d0a8eb3b5c1
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/home/migrations/0001_load_initial_data.py
crowdbotics-apps/kikiz-cosmeticz-33336
337a543c621f4bbc2972009033a35d0a8eb3b5c1
[ "FTL", "AML", "RSA-MD" ]
null
null
null
from django.db import migrations def create_site(apps, schema_editor): Site = apps.get_model("sites", "Site") custom_domain = "kikiz-cosmeticz-33336.botics.co" site_params = { "name": "Kikiz Cosmeticz", } if custom_domain: site_params["domain"] = custom_domain Site.objects.up...
21.076923
61
0.660584
16a1feeaee01e9582c870b77151f94e7a1be2d32
902
py
Python
handlers/skip.py
rshero/VoiceChatPyroBot
1c970d72fc94550800b94b8ddae2c73ec123f41a
[ "MIT" ]
null
null
null
handlers/skip.py
rshero/VoiceChatPyroBot
1c970d72fc94550800b94b8ddae2c73ec123f41a
[ "MIT" ]
null
null
null
handlers/skip.py
rshero/VoiceChatPyroBot
1c970d72fc94550800b94b8ddae2c73ec123f41a
[ "MIT" ]
null
null
null
from asyncio import sleep from pyrogram import filters from pyrogram.handlers import MessageHandler import player from helpers import State from config import SUDO_FILTER from strings import get_string as _ async def skip(client, message): if player.STATE in (State.Playing or State.Streaming or State.Pa...
23.128205
75
0.580931
7fae22f20877c4b838e60a03583d9bf1ada1a923
29,599
py
Python
keybmaster.py
GowdaAmit/KeyboardMaster
236b275d80e957b55fed1595a4c40bac3e25d6d5
[ "MIT" ]
null
null
null
keybmaster.py
GowdaAmit/KeyboardMaster
236b275d80e957b55fed1595a4c40bac3e25d6d5
[ "MIT" ]
null
null
null
keybmaster.py
GowdaAmit/KeyboardMaster
236b275d80e957b55fed1595a4c40bac3e25d6d5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Aug 26 12:33:30 2020 @author: Amit G """ import pygame import pygame.locals from sys import exit import string from spellchecker import SpellChecker from threading import Thread from time import sleep, time from random import randint, seed from collections imp...
36.496917
80
0.508125
0a43d5b12d3a3466933deccee8dc270775374820
5,349
py
Python
sdk/python/pulumi_azure_nextgen/insights/v20191017preview/get_private_endpoint_connection.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
31
2020-09-21T09:41:01.000Z
2021-02-26T13:21:59.000Z
sdk/python/pulumi_azure_nextgen/insights/v20191017preview/get_private_endpoint_connection.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
231
2020-09-21T09:38:45.000Z
2021-03-01T11:16:03.000Z
sdk/python/pulumi_azure_nextgen/insights/v20191017preview/get_private_endpoint_connection.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
4
2020-09-29T14:14:59.000Z
2021-02-10T20:38:16.000Z
# 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...
39.622222
174
0.690409
43abbfa83d8d3d9d6e40086f14a01401d7180509
2,661
py
Python
Python_3/Curvature/ex_curvature_from_dip.py
waynegm/OpendTect-External-Attributes
7caaf69ee71cc3375fcd9e4d656c669ca01dc469
[ "MIT" ]
22
2015-09-24T10:41:05.000Z
2022-01-02T21:43:48.000Z
Python_3/Curvature/ex_curvature_from_dip.py
waynegm/OpendTect-External-Attributes
7caaf69ee71cc3375fcd9e4d656c669ca01dc469
[ "MIT" ]
5
2016-11-02T10:30:56.000Z
2018-07-02T12:54:28.000Z
Python_3/Curvature/ex_curvature_from_dip.py
waynegm/OpendTect-External-Attributes
7caaf69ee71cc3375fcd9e4d656c669ca01dc469
[ "MIT" ]
8
2017-03-18T17:17:44.000Z
2021-04-02T09:43:35.000Z
# Volumetric curvature from Inline and Crossline dip # as per Weinkauf and Theisel(2003) "Curvature measures of 3D vector fields and their applications" # import sys,os import numpy as np from numba import autojit # # Import the module with the I/O scaffolding of the External Attribute # sys.path.insert(0, os.path.joi...
29.898876
138
0.629087
22d94467e28447fd023e9390b2d49097cdd3c205
22
py
Python
QuickPython/HelloWorld.py
eminkartci/PythonCourse
89d698199e1b9061b42552bc42ab7fd423ae00e0
[ "Apache-2.0" ]
null
null
null
QuickPython/HelloWorld.py
eminkartci/PythonCourse
89d698199e1b9061b42552bc42ab7fd423ae00e0
[ "Apache-2.0" ]
null
null
null
QuickPython/HelloWorld.py
eminkartci/PythonCourse
89d698199e1b9061b42552bc42ab7fd423ae00e0
[ "Apache-2.0" ]
1
2021-07-03T17:21:44.000Z
2021-07-03T17:21:44.000Z
print("Hello Wold!")
7.333333
20
0.636364
45d040cd9e789dc4f6436c0661183726145d459a
1,538
py
Python
pcg_gazebo/random.py
TForce1/pcg_gazebo
9ff88016b7b6903236484958ca7c6ed9f8ffb346
[ "ECL-2.0", "Apache-2.0" ]
40
2020-02-04T18:16:49.000Z
2022-02-22T11:36:34.000Z
pcg_gazebo/random.py
awesomebytes/pcg_gazebo
4f335dd460ef7c771f1df78b46a92fad4a62cedc
[ "ECL-2.0", "Apache-2.0" ]
75
2020-01-23T13:40:50.000Z
2022-02-09T07:26:01.000Z
pcg_gazebo/random.py
GimpelZhang/gazebo_world_generator
eb7215499d0ddc972d804c988fadab1969579b1b
[ "ECL-2.0", "Apache-2.0" ]
18
2020-09-10T06:35:41.000Z
2022-02-20T19:08:17.000Z
# Copyright (c) 2020 - The Procedural Generation for Gazebo authors # For information on the respective copyright owner see the NOTICE file # # 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 # #...
27.963636
74
0.737971
a210e83d3f8323f60a7426ec5fbcbab7c9bd89c8
14,046
py
Python
src/ska_tango_examples/tabata/Tabata.py
ska-telescope/tango-example
62705a22d1560cf23ebc976a7611e25acc17da44
[ "Apache-2.0", "BSD-3-Clause" ]
2
2018-12-06T21:11:28.000Z
2019-10-05T17:45:25.000Z
src/ska_tango_examples/tabata/Tabata.py
ska-telescope/tango-example
62705a22d1560cf23ebc976a7611e25acc17da44
[ "Apache-2.0", "BSD-3-Clause" ]
7
2019-05-15T23:56:52.000Z
2021-05-19T14:18:53.000Z
src/ska_tango_examples/tabata/Tabata.py
ska-telescope/tango-example
62705a22d1560cf23ebc976a7611e25acc17da44
[ "Apache-2.0", "BSD-3-Clause" ]
1
2019-07-09T04:41:42.000Z
2019-07-09T04:41:42.000Z
# -*- coding: utf-8 -*- # # This file is part of the Tabata project # # SKA # INAF # # Distributed under the terms of the GPL license. # See LICENSE.txt for more info. """ ska-tango-examples Tabata training """ import logging import threading import time import debugpy # PyTango imports import tango from tango imp...
31.493274
79
0.59056
50adb325557384a0860ee6d0b6a80e88db3af270
605
py
Python
webminer/use_cases/request_objects.py
azeemansar/web-miner
985f5080567abe0a512e79c8edb62dcf837ff5f8
[ "MIT" ]
null
null
null
webminer/use_cases/request_objects.py
azeemansar/web-miner
985f5080567abe0a512e79c8edb62dcf837ff5f8
[ "MIT" ]
null
null
null
webminer/use_cases/request_objects.py
azeemansar/web-miner
985f5080567abe0a512e79c8edb62dcf837ff5f8
[ "MIT" ]
null
null
null
import collections from webminer.shared import request_object as req class ArxivDocumentListRequestObject(req.ValidRequestObject): def __init__(self, filters=None): self.filters = filters @classmethod def from_dict(cls, adict): invalid_req = req.InvalidRequestObject() if "filters"...
31.842105
88
0.709091
b1a223116aa121d79dbad6e0c8f56522445ea164
17,105
py
Python
src/model/resource/evcs/evcs.py
LCA2-EPFL/T-RECS
27971c2d371463453a058fd7865dfadbba99a79a
[ "MIT" ]
2
2019-02-27T02:50:40.000Z
2020-04-09T15:38:00.000Z
src/model/resource/evcs/evcs.py
LCA2-EPFL/T-RECS
27971c2d371463453a058fd7865dfadbba99a79a
[ "MIT" ]
2
2018-06-29T12:49:10.000Z
2020-05-29T09:59:26.000Z
src/model/resource/evcs/evcs.py
LCA2-EPFL/T-RECS
27971c2d371463453a058fd7865dfadbba99a79a
[ "MIT" ]
3
2018-06-26T15:59:39.000Z
2019-03-05T18:54:02.000Z
#!/usr/bin/env python3 # The MIT License (MIT) # # Copyright (c) 2018 École Polytechnique Fédérale de Lausanne (EPFL) # Author: Jagdish P. Achara # # 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 Sof...
40.152582
186
0.644198
abe53e35bf4ed25371ce5b0da520d3d28668da88
1,380
py
Python
HW5.py
GumennaiaIana/AdvancedPython2021
39fd03cbc344267864fbb8ef61489a2e90a00a49
[ "MIT" ]
null
null
null
HW5.py
GumennaiaIana/AdvancedPython2021
39fd03cbc344267864fbb8ef61489a2e90a00a49
[ "MIT" ]
1
2021-09-17T14:32:23.000Z
2021-09-17T14:32:23.000Z
HW5.py
GumennaiaIana/AdvancedPython2021
39fd03cbc344267864fbb8ef61489a2e90a00a49
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Oct 8 15:35:43 2021 @author: gunen """ class Movie: def __init__(self, name, director, year, country, duration, age_rating): self.name = name self.director = director self.year = year self.country = country self.duration = duratio...
35.384615
157
0.647101
5d6c5791f25f9484de8f919b325ec5054f2fad5f
118
py
Python
pyretrosheet/__init__.py
smkell/pyretrosheet
c6986f7a55ada960175dc30d874bda24add883d0
[ "MIT" ]
null
null
null
pyretrosheet/__init__.py
smkell/pyretrosheet
c6986f7a55ada960175dc30d874bda24add883d0
[ "MIT" ]
null
null
null
pyretrosheet/__init__.py
smkell/pyretrosheet
c6986f7a55ada960175dc30d874bda24add883d0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- __author__ = """Sean Kell""" __email__ = 'sean.michael.kell@gmail.com' __version__ = '0.1.0'
19.666667
41
0.627119
96c63c3eed7c4f474668bdf31ba100070c325b4f
1,614
py
Python
tests/core/test_merkle_set.py
grayfallstown/kale-blockchain
1c426a15967813ece30f77b9b7584f2dc5ed554a
[ "Apache-2.0" ]
23
2021-07-05T00:55:47.000Z
2022-02-09T04:30:08.000Z
tests/core/test_merkle_set.py
grayfallstown/kale-blockchain
1c426a15967813ece30f77b9b7584f2dc5ed554a
[ "Apache-2.0" ]
14
2021-07-05T13:08:25.000Z
2021-08-23T18:57:02.000Z
tests/core/test_merkle_set.py
grayfallstown/kale-blockchain
1c426a15967813ece30f77b9b7584f2dc5ed554a
[ "Apache-2.0" ]
5
2021-07-06T23:24:39.000Z
2022-03-15T08:43:03.000Z
import asyncio import itertools import pytest from kale.util.merkle_set import MerkleSet, confirm_included_already_hashed from tests.setup_nodes import bt @pytest.fixture(scope="module") def event_loop(): loop = asyncio.get_event_loop() yield loop class TestMerkleSet: @pytest.mark.asyncio async de...
34.340426
118
0.696406
423b1e754db9606a5cf49f964dfe8f4e66bd82dd
2,961
py
Python
tests/unittests/utils/test_json.py
buddwm/hubble
b384ee48556ca144ae6f09dd0b45db29288e5293
[ "Apache-2.0" ]
363
2017-01-10T22:02:47.000Z
2022-03-21T10:44:40.000Z
tests/unittests/utils/test_json.py
buddwm/hubble
b384ee48556ca144ae6f09dd0b45db29288e5293
[ "Apache-2.0" ]
439
2017-01-12T22:39:42.000Z
2021-10-11T18:43:28.000Z
tests/unittests/utils/test_json.py
buddwm/hubble
b384ee48556ca144ae6f09dd0b45db29288e5293
[ "Apache-2.0" ]
138
2017-01-05T22:10:59.000Z
2021-09-01T14:35:00.000Z
# -*- coding: utf-8 -*- """ Tests for hubblestack.utils.json """ # Import Python libs import textwrap import hubblestack.utils.files import hubblestack.utils.json import hubblestack.utils.stringutils # Import Salt Testing libs from tests.support.helpers import with_tempfile from tests.support.unit import TestCase c...
33.269663
102
0.578183
9f6ec3fe28599a2124e472f2db28e9986bd7d8a2
2,030
py
Python
tests/meta/test_online_under_over_bagging.py
trajkova-elena/scikit-multiflow
dd372c677a97346a9c60cd25b45b350e0fd83d3c
[ "BSD-3-Clause" ]
1
2020-09-16T12:03:29.000Z
2020-09-16T12:03:29.000Z
tests/meta/test_online_under_over_bagging.py
trajkova-elena/scikit-multiflow
dd372c677a97346a9c60cd25b45b350e0fd83d3c
[ "BSD-3-Clause" ]
null
null
null
tests/meta/test_online_under_over_bagging.py
trajkova-elena/scikit-multiflow
dd372c677a97346a9c60cd25b45b350e0fd83d3c
[ "BSD-3-Clause" ]
3
2020-10-02T08:36:52.000Z
2020-10-21T10:50:20.000Z
from skmultiflow.data.generator.sea_generator import SEAGenerator from skmultiflow.meta import OnlineUnderOverBaggingClassifier from skmultiflow.bayes import NaiveBayes import numpy as np def test_online_uob(): stream = SEAGenerator(1, noise_percentage=0.067, random_state=112) nb = NaiveBayes() learner = ...
38.301887
116
0.623153
3c52bfaa9c194e16fe4762bd74fe20d587bd2e20
2,178
py
Python
kyu_6/a_rule_of_divisibility_by_13/test_thirt.py
pedrocodacyorg2/codewars
ba3ea81125b6082d867f0ae34c6c9be15e153966
[ "Unlicense" ]
1
2022-02-12T05:56:04.000Z
2022-02-12T05:56:04.000Z
kyu_6/a_rule_of_divisibility_by_13/test_thirt.py
pedrocodacyorg2/codewars
ba3ea81125b6082d867f0ae34c6c9be15e153966
[ "Unlicense" ]
182
2020-04-30T00:51:36.000Z
2021-09-07T04:15:05.000Z
kyu_6/a_rule_of_divisibility_by_13/test_thirt.py
pedrocodacyorg2/codewars
ba3ea81125b6082d867f0ae34c6c9be15e153966
[ "Unlicense" ]
4
2020-04-29T22:04:20.000Z
2021-07-13T20:04:14.000Z
# Created by Egor Kostan. # GitHub: https://github.com/ikostan # LinkedIn: https://www.linkedin.com/in/egor-kostan/ # FUNDAMENTALS import unittest import allure from kyu_6.a_rule_of_divisibility_by_13.thirt import thirt from utils.log_func import print_log @allure.epic('6 kyu') @allure.parent_suite('Novice') @al...
36.915254
114
0.50551
6329bb75072e93c651014327545bd16c2b08985e
215
py
Python
src/tensorflow-examples/setup.py
wilsonify/tensorflow-examples
2271c666b33c7a74047c7196783ab04e9aee8362
[ "MIT" ]
2
2019-11-21T02:43:24.000Z
2020-08-12T04:48:39.000Z
src/tensorflow-examples/setup.py
wilsonify/tensorflow-examples
2271c666b33c7a74047c7196783ab04e9aee8362
[ "MIT" ]
null
null
null
src/tensorflow-examples/setup.py
wilsonify/tensorflow-examples
2271c666b33c7a74047c7196783ab04e9aee8362
[ "MIT" ]
1
2021-02-06T12:36:58.000Z
2021-02-06T12:36:58.000Z
from setuptools import setup, find_packages setup( name='tensorflow_examples', version='', packages=find_packages(), url='', license='', author='', author_email='', description='' )
16.538462
43
0.618605
9e174a02b6eb09ee3d6079d31abeadc517dcf36d
4,212
py
Python
selfdrive/car/gm/carcontroller.py
darknight111/openpilot3
a0c755fbe1889f26404a8225816f57e89fde7bc2
[ "MIT" ]
4
2020-08-15T11:27:55.000Z
2020-08-16T06:31:46.000Z
selfdrive/car/gm/carcontroller.py
darknight111/openpilot3
a0c755fbe1889f26404a8225816f57e89fde7bc2
[ "MIT" ]
1
2020-11-25T03:07:22.000Z
2020-11-25T03:07:22.000Z
selfdrive/car/gm/carcontroller.py
darknight111/openpilot3
a0c755fbe1889f26404a8225816f57e89fde7bc2
[ "MIT" ]
null
null
null
from cereal import car from common.realtime import DT_CTRL from common.numpy_fast import interp, clip from selfdrive.config import Conversions as CV from selfdrive.car import apply_std_steer_torque_limits, create_gas_command from selfdrive.car.gm import gmcan from selfdrive.car.gm.values import DBC, CanBus, CarControll...
39.364486
156
0.714387
0cb4df4817f7149d82175dd4e475476ef39d2ed7
24,202
py
Python
child/vpcAlertClass.py
rohankumardubey/DIAL
daa3db129f96870aa3634c910b07856f561686ef
[ "Apache-2.0" ]
60
2022-01-18T11:57:06.000Z
2022-03-28T19:05:44.000Z
child/vpcAlertClass.py
rohankumardubey/DIAL
daa3db129f96870aa3634c910b07856f561686ef
[ "Apache-2.0" ]
null
null
null
child/vpcAlertClass.py
rohankumardubey/DIAL
daa3db129f96870aa3634c910b07856f561686ef
[ "Apache-2.0" ]
10
2022-01-18T13:46:40.000Z
2022-02-04T05:25:34.000Z
#! /usr/bin/python3 from utils import EventHandler, EventResponse class vpcEventHandler(EventHandler): def __init__(self, appConfig): name = "VPC" super().__init__(name, appConfig) self.severity_map = appConfig['Severity']['VPC'] self.accountID = list(appConfig['Static']['Account-I...
80.405316
319
0.635526
bbf86b8e4363db8d9742a6b1007cdafe0d79b852
2,782
py
Python
qcodes/tests/dataset/test_guids.py
maxgoetsch/Qcodes
c3fdff4c4adbc3b03b564349ca7206e90dd2a0a1
[ "MIT" ]
2
2019-04-09T09:39:22.000Z
2019-10-24T19:07:19.000Z
qcodes/tests/dataset/test_guids.py
maxgoetsch/Qcodes
c3fdff4c4adbc3b03b564349ca7206e90dd2a0a1
[ "MIT" ]
null
null
null
qcodes/tests/dataset/test_guids.py
maxgoetsch/Qcodes
c3fdff4c4adbc3b03b564349ca7206e90dd2a0a1
[ "MIT" ]
1
2019-11-19T12:32:29.000Z
2019-11-19T12:32:29.000Z
import time from copy import deepcopy from contextlib import contextmanager from hypothesis import given, settings import hypothesis.strategies as hst import numpy as np from qcodes.dataset.guids import (generate_guid, parse_guid, set_guid_location_code, ...
28.979167
76
0.650971
1877c6d0a8290e810b415ab64867997c2e236b90
1,264
py
Python
optflow/util/util.py
maxzuo/optflow
b8af7b1738aa28c1eb1b727d36a56a1ac7639eaa
[ "MIT" ]
null
null
null
optflow/util/util.py
maxzuo/optflow
b8af7b1738aa28c1eb1b727d36a56a1ac7639eaa
[ "MIT" ]
1
2021-01-12T01:26:21.000Z
2021-01-12T01:26:21.000Z
optflow/util/util.py
maxzuo/optflow
b8af7b1738aa28c1eb1b727d36a56a1ac7639eaa
[ "MIT" ]
1
2021-01-12T00:35:04.000Z
2021-01-12T00:35:04.000Z
import numpy as np try: from tqdm import tqdm except: from sys import stderr from os import environ # dummy tqdm object tqdm = lambda a, **k: a tqdm.update = lambda a: None if not environ.get('optflow_warning', None) == 'SUPPRESS': print("Note: tqdm not installed. Install tqdm modul...
30.829268
101
0.606804
e0e6a683ede7b54c6e3845f37c1d01956d8df53d
2,599
py
Python
allenact_plugins/gym_plugin/gym_models.py
NoodlesAwaken/robothor-docker
a0dba6258f6b50ae47c212a3ab39e56d52e583b6
[ "MIT" ]
18
2021-06-09T04:50:47.000Z
2022-02-04T22:56:56.000Z
allenact_plugins/gym_plugin/gym_models.py
NoodlesAwaken/robothor-docker
a0dba6258f6b50ae47c212a3ab39e56d52e583b6
[ "MIT" ]
null
null
null
allenact_plugins/gym_plugin/gym_models.py
NoodlesAwaken/robothor-docker
a0dba6258f6b50ae47c212a3ab39e56d52e583b6
[ "MIT" ]
4
2021-06-09T06:20:25.000Z
2022-03-13T03:11:17.000Z
from typing import Dict, Union, Optional, Tuple, Any, Sequence, cast import gym import torch from torch import nn from allenact.algorithms.onpolicy_sync.policy import ( ActorCriticModel, DistributionType, ) from allenact.base_abstractions.misc import ActorCriticOutput, Memory from allenact_plugins.gym_plugin....
30.22093
88
0.61716
f8317a20f9e2372244a5e378e350c0244a943601
1,069
py
Python
effects/udp.py
IluminationGroup/hyperion
083c6e95432d6bd776eba3e70b23a7d1fd5d9d84
[ "MIT" ]
null
null
null
effects/udp.py
IluminationGroup/hyperion
083c6e95432d6bd776eba3e70b23a7d1fd5d9d84
[ "MIT" ]
null
null
null
effects/udp.py
IluminationGroup/hyperion
083c6e95432d6bd776eba3e70b23a7d1fd5d9d84
[ "MIT" ]
null
null
null
import hyperion import time import colorsys import socket import errno # Get the parameters udpPort = int(hyperion.args.get('udpPort', 2812)) UDPSock = socket.socket(socket.AF_INET,socket.SOCK_DGRAM) UDPSock.setblocking(False) listen_addr = ("",udpPort) print "udp.py: bind socket port:",udpPort UDPSock.bind(listen_a...
22.270833
76
0.656688
c0f1aa8d4372367b31c08a816ecb4636f42bf95b
413
py
Python
django landing page/landingPageProject/landingPageProject/asgi.py
Jayson7/mumswhocode-cohort2-python-files
1d84e121a63bd0072acabd14859c849a02919ab6
[ "MIT" ]
null
null
null
django landing page/landingPageProject/landingPageProject/asgi.py
Jayson7/mumswhocode-cohort2-python-files
1d84e121a63bd0072acabd14859c849a02919ab6
[ "MIT" ]
null
null
null
django landing page/landingPageProject/landingPageProject/asgi.py
Jayson7/mumswhocode-cohort2-python-files
1d84e121a63bd0072acabd14859c849a02919ab6
[ "MIT" ]
1
2022-01-27T11:35:46.000Z
2022-01-27T11:35:46.000Z
""" ASGI config for landingPageProject project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/4.0/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('D...
24.294118
78
0.79661
e83a074ad6c87d6e7c16a009d86e66852d389feb
12,649
py
Python
code/python/QuotesAPIforDigitalPortals/v3/fds/sdk/QuotesAPIforDigitalPortals/model/inline_response20060_legal_entities_background_texts_type.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
6
2022-02-07T16:34:18.000Z
2022-03-30T08:04:57.000Z
code/python/QuotesAPIforDigitalPortals/v3/fds/sdk/QuotesAPIforDigitalPortals/model/inline_response20060_legal_entities_background_texts_type.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
2
2022-02-07T05:25:57.000Z
2022-03-07T14:18:04.000Z
code/python/QuotesAPIforDigitalPortals/v3/fds/sdk/QuotesAPIforDigitalPortals/model/inline_response20060_legal_entities_background_texts_type.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
null
null
null
""" Quotes API For Digital Portals The quotes API combines endpoints for retrieving security end-of-day, delayed, and realtime prices with performance key figures and basic reference data on the security and market level. The API supports over 20 different price types for each quote and comes with basic searc...
48.65
1,302
0.596569
813b4498ced7aee39da01537f5d0eead55c2c31b
12,203
py
Python
pointnet_plusplus/utils/pointnet_util.py
larc/SPFN
1c8cc1eb6de38adce0251bfbddfa09a77a8cc159
[ "MIT" ]
null
null
null
pointnet_plusplus/utils/pointnet_util.py
larc/SPFN
1c8cc1eb6de38adce0251bfbddfa09a77a8cc159
[ "MIT" ]
null
null
null
pointnet_plusplus/utils/pointnet_util.py
larc/SPFN
1c8cc1eb6de38adce0251bfbddfa09a77a8cc159
[ "MIT" ]
null
null
null
""" PointNet++ Layers Author: Charles R. Qi Date: November 2017 """ import os import sys BASE_DIR = os.path.dirname(os.path.abspath(__file__)) #ROOT_DIR = os.path.dirname(BASE_DIR) ROOT_DIR = BASE_DIR sys.path.append(os.path.join(ROOT_DIR)) sys.path.append(os.path.join(ROOT_DIR, 'tf_ops/sampling')) sys.path.append(os...
53.056522
178
0.605671
b7a46323fe37dcbdde2fae68ab1f903906d13b30
1,655
py
Python
test/vuln_checks/test_sqli.py
acaceres2176/massweb
153d1e00ee293f467e88e7f5ce98617a5c13cfb7
[ "Apache-2.0" ]
null
null
null
test/vuln_checks/test_sqli.py
acaceres2176/massweb
153d1e00ee293f467e88e7f5ce98617a5c13cfb7
[ "Apache-2.0" ]
null
null
null
test/vuln_checks/test_sqli.py
acaceres2176/massweb
153d1e00ee293f467e88e7f5ce98617a5c13cfb7
[ "Apache-2.0" ]
null
null
null
import unittest from util import expand_cases from massweb.vuln_checks import sqli class TestSQLICheck(unittest.TestCase): def setUp(self): true = ["you have an error in your sql syntax", "supplied argument is not a valid mysql", "[microsoft][odbc microsoft acess driver]"...
37.613636
92
0.571601
90d6192f43bb1bb202888b5f88e6f37cebed860d
884
py
Python
examples/sklearn/mpg-estimator/trainer.py
HowJMay/cortex
c0a89a2224f98884cba2af53e8a108b7c32bf842
[ "Apache-2.0" ]
1
2020-01-10T06:07:50.000Z
2020-01-10T06:07:50.000Z
examples/sklearn/mpg-estimator/trainer.py
HowJMay/cortex
c0a89a2224f98884cba2af53e8a108b7c32bf842
[ "Apache-2.0" ]
10
2020-02-03T21:38:08.000Z
2020-02-14T18:44:13.000Z
examples/sklearn/mpg-estimator/trainer.py
HowJMay/cortex
c0a89a2224f98884cba2af53e8a108b7c32bf842
[ "Apache-2.0" ]
1
2022-03-04T14:23:42.000Z
2022-03-04T14:23:42.000Z
# WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version` import mlflow.sklearn import pandas as pd import numpy as np from sklearn.linear_model import LinearRegression from sklearn.model_selection import train_test_split df = pd.read_csv( "https://www...
34
118
0.760181
587109f625d2b74e64dfdeb70151c9a98f92d805
5,316
py
Python
tensorboard/uploader/auth_test.py
catherinaxu/tensorboard
b2527c579f6f42865c5dcc5c2bc438977bb05616
[ "Apache-2.0" ]
2
2019-11-23T18:36:20.000Z
2019-12-07T20:58:02.000Z
tensorboard/uploader/auth_test.py
catherinaxu/tensorboard
b2527c579f6f42865c5dcc5c2bc438977bb05616
[ "Apache-2.0" ]
null
null
null
tensorboard/uploader/auth_test.py
catherinaxu/tensorboard
b2527c579f6f42865c5dcc5c2bc438977bb05616
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
37.702128
80
0.716516
60c52e55fa31de062944449f068fa7f3c4746908
68
py
Python
depiction/interpreters/alibi/contrastive/__init__.py
IBM/dl-interpretability-compbio
3b13394f2dd9614736b4183b407a938a2c5924ac
[ "Apache-2.0" ]
23
2019-07-10T08:35:11.000Z
2019-11-20T13:53:01.000Z
depiction/interpreters/alibi/contrastive/__init__.py
IBM/dl-interpretability-compbio
3b13394f2dd9614736b4183b407a938a2c5924ac
[ "Apache-2.0" ]
31
2019-07-03T17:08:31.000Z
2019-11-21T12:45:56.000Z
depiction/interpreters/alibi/contrastive/__init__.py
IBM/dl-interpretability-compbio
3b13394f2dd9614736b4183b407a938a2c5924ac
[ "Apache-2.0" ]
13
2019-07-12T18:45:19.000Z
2019-11-20T16:25:20.000Z
"""Initialize contrastive explainer.""" from .cem import CEM # noqa
34
39
0.735294
eec86374e2727a35e39ef8e4ef2e964d456dd5db
16,949
py
Python
t_speech_assisstant/venv/lib/python3.7/site-packages/CoreBluetooth/_metadata.py
TEgo17/SpeechAssistant
0e16dd4757f1b05f08ecbb4f4956b2ccd1a63c10
[ "MIT" ]
1
2020-09-01T16:24:50.000Z
2020-09-01T16:24:50.000Z
t_speech_assisstant/venv/lib/python3.7/site-packages/CoreBluetooth/_metadata.py
TEgo17/SpeechAssistant
0e16dd4757f1b05f08ecbb4f4956b2ccd1a63c10
[ "MIT" ]
1
2021-01-28T20:40:19.000Z
2021-01-28T20:40:19.000Z
t_speech_assisstant/venv/lib/python3.7/site-packages/CoreBluetooth/_metadata.py
TEgo17/SpeechAssistant
0e16dd4757f1b05f08ecbb4f4956b2ccd1a63c10
[ "MIT" ]
null
null
null
# This file is generated by objective.metadata # # Last update: Sat Jul 20 22:00:54 2019 import objc, sys if sys.maxsize > 2 ** 32: def sel32or64(a, b): return b else: def sel32or64(a, b): return a if sys.byteorder == "little": def littleOrBig(a, b): return a else: de...
41.643735
3,105
0.60269
6d2f6fcd33d2c08248d7d205f5a418a862f43608
2,234
py
Python
migrations/versions/insetestdata_.py
vasyanch/stepik_flask-tutors
1c0551f239164f509c5d3068007aa1fa9f61d1f6
[ "MIT" ]
null
null
null
migrations/versions/insetestdata_.py
vasyanch/stepik_flask-tutors
1c0551f239164f509c5d3068007aa1fa9f61d1f6
[ "MIT" ]
null
null
null
migrations/versions/insetestdata_.py
vasyanch/stepik_flask-tutors
1c0551f239164f509c5d3068007aa1fa9f61d1f6
[ "MIT" ]
null
null
null
import json from datetime import time as tim from app import db from models import Teacher, Goal, Lesson, Time, WeekDay def insert_test_data(): with open('test_data.json', 'r', encoding='utf8') as _file: data = json.load(_file) all_objects = [] week_days = [ WeekDay(id=_id, day_name=day_...
31.027778
119
0.573411
cb866d283d2118d90894b30f7cc7526f00c218ac
85
py
Python
iliad/integrators/states/lobatto_state.py
JamesBrofos/Iliad
2220e1e519f479e402072f80f4bc67e419842c4e
[ "MIT" ]
1
2022-03-24T20:32:54.000Z
2022-03-24T20:32:54.000Z
iliad/integrators/states/lobatto_state.py
JamesBrofos/Iliad
2220e1e519f479e402072f80f4bc67e419842c4e
[ "MIT" ]
null
null
null
iliad/integrators/states/lobatto_state.py
JamesBrofos/Iliad
2220e1e519f479e402072f80f4bc67e419842c4e
[ "MIT" ]
null
null
null
from .coupled_state import CoupledState class LobattoState(CoupledState): pass
14.166667
39
0.8
526482edc2b9fa70898f93cb79c210b01dd0be06
5,819
py
Python
buildpack/mxbuild.py
huibin-coder/cf-mendix-buildpack
8c376e9852d107ba3773ae88c9cdaee4dd0c2e2f
[ "Apache-2.0" ]
36
2015-01-22T16:28:55.000Z
2021-12-28T10:26:10.000Z
buildpack/mxbuild.py
huibin-coder/cf-mendix-buildpack
8c376e9852d107ba3773ae88c9cdaee4dd0c2e2f
[ "Apache-2.0" ]
208
2015-06-01T13:39:17.000Z
2022-03-24T14:16:09.000Z
buildpack/mxbuild.py
huibin-coder/cf-mendix-buildpack
8c376e9852d107ba3773ae88c9cdaee4dd0c2e2f
[ "Apache-2.0" ]
135
2015-01-17T14:47:22.000Z
2022-03-07T08:20:18.000Z
import codecs import json import logging import os import shutil import subprocess import zipfile from buildpack import java, mono, util from buildpack.util import NotFoundException BUILD_ERRORS_JSON = "/tmp/builderrors.json" def build_from_source( build_path, cache_path, local_path, runtime_version, java_vers...
31.625
79
0.604228
6424b51cb212f1139d52645e4fea6f38cd245aa0
885
py
Python
apiconfig.py
yangyzp/shadowsocksdd
2ecc23db49b28a51e07758b4968d8bcd54ad18d3
[ "Apache-2.0" ]
2
2018-09-14T15:01:28.000Z
2021-05-10T13:38:09.000Z
apiconfig.py
yangyzp/shadowsocksdd
2ecc23db49b28a51e07758b4968d8bcd54ad18d3
[ "Apache-2.0" ]
1
2021-06-01T22:22:07.000Z
2021-06-01T22:22:07.000Z
apiconfig.py
yangyzp/shadowsocksdd
2ecc23db49b28a51e07758b4968d8bcd54ad18d3
[ "Apache-2.0" ]
1
2018-10-07T12:15:24.000Z
2018-10-07T12:15:24.000Z
# Config NODE_ID = 1 # hour,set 0 to disable SPEEDTEST = 0 CLOUDSAFE = 1 ANTISSATTACK = 0 AUTOEXEC = 0 MU_SUFFIX = 'v1m3cc2x' MU_REGEX = '%5m' SERVER_PUB_ADDR = '127.0.0.1' # mujson_mgr need this to generate ssr link API_INTERFACE = 'glzjinmod' # glzjinmod, modwebapi WEBAPI_URL = 'https://zhaoj.in' WEBAPI_TOKEN...
18.4375
75
0.714124
caaa2440b8b03e7ae90d2bcf80c4732a21b34ed4
1,151
py
Python
vendor/munin/mongodb.py
starsep/NewsBlur
6c59416ca82377ca1bbc7d044890bdead3eba904
[ "MIT" ]
1
2019-07-15T09:12:35.000Z
2019-07-15T09:12:35.000Z
vendor/munin/mongodb.py
starsep/NewsBlur
6c59416ca82377ca1bbc7d044890bdead3eba904
[ "MIT" ]
7
2021-02-08T20:32:31.000Z
2022-03-11T23:50:47.000Z
vendor/munin/mongodb.py
starsep/NewsBlur
6c59416ca82377ca1bbc7d044890bdead3eba904
[ "MIT" ]
1
2020-11-21T08:43:15.000Z
2020-11-21T08:43:15.000Z
#!/srv/newsblur/venv/newsblur/bin/python import os import sys from vendor.munin import MuninPlugin class MuninMongoDBPlugin(MuninPlugin): dbname_in_args = False category = "MongoDB" def __init__(self): super(MuninMongoDBPlugin, self).__init__() self.dbname = None if self.dbname_i...
26.767442
82
0.597741
43cd99a052967faa59464eb800cdee0a32c4808f
1,285
py
Python
francisco-topo/run.py
Cyphysecurity/ICS-SDN-1
c04d9e7bb7ad945166e969e071a2f82fb5bd18bf
[ "MIT" ]
4
2019-12-17T08:59:57.000Z
2022-01-09T19:52:27.000Z
francisco-topo/run.py
Cyphysecurity/ICS-SDN-1
c04d9e7bb7ad945166e969e071a2f82fb5bd18bf
[ "MIT" ]
3
2020-08-13T16:05:46.000Z
2021-10-17T07:49:33.000Z
francisco-topo/run.py
Cyphysecurity/ICS-SDN-1
c04d9e7bb7ad945166e969e071a2f82fb5bd18bf
[ "MIT" ]
4
2017-06-14T23:41:50.000Z
2021-03-01T18:54:03.000Z
""" simple-cps run.py """ from mininet.net import Mininet from mininet.cli import CLI from mininet.node import Controller, RemoteController from minicps.mcps import MiniCPS from topo import SimpleTopo import sys import time import subprocess import logging from utils import IP from mininet.link import Intf cl...
19.769231
73
0.633463
e6017d502a0aad3ab118ab70f09efec9cafe6a40
11,364
py
Python
bin/fine_tune_bart.py
allenai/zest
8a9658a0e9c8180a5465f161e4ed7b64b4b077c9
[ "Apache-2.0" ]
13
2020-11-17T03:04:29.000Z
2021-11-08T08:47:40.000Z
bin/fine_tune_bart.py
allenai/zest
8a9658a0e9c8180a5465f161e4ed7b64b4b077c9
[ "Apache-2.0" ]
2
2021-03-03T10:38:07.000Z
2021-03-15T19:11:51.000Z
bin/fine_tune_bart.py
allenai/zest
8a9658a0e9c8180a5465f161e4ed7b64b4b077c9
[ "Apache-2.0" ]
2
2021-02-13T22:48:03.000Z
2021-10-18T19:52:44.000Z
""" Reproduce the BART baseline for ZEST, from "Learning from task descriptions", Weller et al, EMNLP 2020. """ import logging import argparse import os import glob import json import time from pathlib import Path import numpy as np import pytorch_lightning as pl import torch from torch.utils.data import DataLoader ...
33.522124
115
0.584037
392da785ba80f86b908750f7a01ae3458cd303fa
5,678
py
Python
src/gpt2_training/train_utils.py
behavioral-data/PARTNER
11e7bdf87684ad802ac8034fb033db997a518306
[ "BSD-3-Clause" ]
43
2021-01-19T16:00:41.000Z
2022-03-30T19:17:27.000Z
src/gpt2_training/train_utils.py
behavioral-data/PARTNER
11e7bdf87684ad802ac8034fb033db997a518306
[ "BSD-3-Clause" ]
6
2021-03-29T12:04:41.000Z
2022-03-15T18:52:52.000Z
src/gpt2_training/train_utils.py
behavioral-data/PARTNER
11e7bdf87684ad802ac8034fb033db997a518306
[ "BSD-3-Clause" ]
7
2021-05-25T11:40:51.000Z
2022-03-30T09:28:38.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import os import logging import torch from collections import defaultdict from env import END_OF_TEXT_TOKEN from lsp_model_rl.optim import warmup_linear, noam_decay, noamwd_decay logger = logging.getLogger(__name__) SEQ_LENGTH_SHRINK_PROP...
28.676768
72
0.718035
3168784a9923ee222c4fe74b0c4fd79c66479015
784
py
Python
102/uva102.py
marceloaamancio/acm_uva
06c5fc6e19320a7311e3ea794e8285b05b939eba
[ "MIT" ]
2
2020-06-07T09:39:15.000Z
2021-09-27T08:52:26.000Z
102/uva102.py
marceloaamancio/acm_uva
06c5fc6e19320a7311e3ea794e8285b05b939eba
[ "MIT" ]
null
null
null
102/uva102.py
marceloaamancio/acm_uva
06c5fc6e19320a7311e3ea794e8285b05b939eba
[ "MIT" ]
null
null
null
# UVA102 - Ecological Bin Packing - Accepted # goo.gl/kcLes0 # @author: Marcelo Adriano Amancio # 'Discipline is the bridge between goals and accomplishment.' -- Jim Rohn from sys import stdin if __name__ == '__main__': line = stdin.readline() while line: b1,g1,c1, b2,g2,c2, b3,g3,c3 = map(int, line.split()) ...
21.777778
75
0.570153
ae190ff0326b5e5f4b5142f35e7b55ebb9cb9de2
3,288
py
Python
api/modules/github/views.py
nikochiko/server
299953687be7adbd35df608b288546c8df90371c
[ "MIT" ]
null
null
null
api/modules/github/views.py
nikochiko/server
299953687be7adbd35df608b288546c8df90371c
[ "MIT" ]
null
null
null
api/modules/github/views.py
nikochiko/server
299953687be7adbd35df608b288546c8df90371c
[ "MIT" ]
1
2020-05-06T15:50:53.000Z
2020-05-06T15:50:53.000Z
from datetime import timedelta import requests import requests_cache from rest_framework import status from rest_framework.decorators import api_view from rest_framework.response import Response from api.commonresponses import DOWNSTREAM_ERROR_RESPONSE from api.modules.github.constants import GITHUB_API_GET_CONTRIBUT...
34.610526
99
0.636861
f3336283b52dc43a9d760ee8a9784d7d284c3997
171
py
Python
pinax/projects/temp_group_project/apps/topics/templatetags/topics_tags.py
SMiGL/pinax
d08b2655fe661566bd13c5c170b1a4cad9e67a1d
[ "MIT" ]
1
2016-05-09T09:46:15.000Z
2016-05-09T09:46:15.000Z
pinax/projects/temp_group_project/apps/topics/templatetags/topics_tags.py
SMiGL/pinax
d08b2655fe661566bd13c5c170b1a4cad9e67a1d
[ "MIT" ]
null
null
null
pinax/projects/temp_group_project/apps/topics/templatetags/topics_tags.py
SMiGL/pinax
d08b2655fe661566bd13c5c170b1a4cad9e67a1d
[ "MIT" ]
null
null
null
from django import template register = template.Library() def show_topic(topic): return {"topic": topic} register.inclusion_tag("topics/topic_item.html")(show_topic)
24.428571
60
0.77193
0231d2b2ab007111eec722fdf4fa8b601dec28cd
9,504
py
Python
tests/zipfile/test_unzip.py
Tonow/cookiecutter
d6037b7dee5756e35a6ecd5b522899a9061c2c79
[ "BSD-3-Clause" ]
7,210
2019-07-01T20:05:00.000Z
2022-03-31T16:42:54.000Z
tests/zipfile/test_unzip.py
Tonow/cookiecutter
d6037b7dee5756e35a6ecd5b522899a9061c2c79
[ "BSD-3-Clause" ]
538
2019-07-01T20:09:30.000Z
2022-03-30T12:30:47.000Z
tests/zipfile/test_unzip.py
Tonow/cookiecutter
d6037b7dee5756e35a6ecd5b522899a9061c2c79
[ "BSD-3-Clause" ]
793
2019-07-01T23:18:34.000Z
2022-03-31T21:55:32.000Z
"""Tests for function unzip() from zipfile module.""" import tempfile import pytest import shutil from cookiecutter import zipfile from cookiecutter.exceptions import InvalidZipRepository def mock_download(): """Fake download function.""" with open('tests/files/fake-repo-tmpl.zip', 'rb') as zf: chun...
31.785953
88
0.694865
3f0acb808de1598e5e8bdb567570bf45af2ff1bb
4,942
py
Python
ansible/library/kolla_toolbox.py
aliate/kolla-ansible
c93ec09dc7d31ecec74eedac493592a22ee395d2
[ "Apache-2.0" ]
2
2020-12-20T01:17:48.000Z
2021-01-02T15:06:19.000Z
ansible/library/kolla_toolbox.py
aliate/kolla-ansible
c93ec09dc7d31ecec74eedac493592a22ee395d2
[ "Apache-2.0" ]
null
null
null
ansible/library/kolla_toolbox.py
aliate/kolla-ansible
c93ec09dc7d31ecec74eedac493592a22ee395d2
[ "Apache-2.0" ]
2
2020-08-28T19:08:16.000Z
2021-01-02T15:06:21.000Z
#!/usr/bin/env python # Copyright 2016 99cloud Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
30.134146
78
0.6293
94d0e9869abad97751077104503b228729155a7f
23,424
bzl
Python
tools/deps.bzl
addstone/gerrit
90d53d124426fb117f474f9a9f678b90877ed795
[ "Apache-2.0" ]
null
null
null
tools/deps.bzl
addstone/gerrit
90d53d124426fb117f474f9a9f678b90877ed795
[ "Apache-2.0" ]
null
null
null
tools/deps.bzl
addstone/gerrit
90d53d124426fb117f474f9a9f678b90877ed795
[ "Apache-2.0" ]
null
null
null
load("//tools/bzl:maven_jar.bzl", "GERRIT", "maven_jar") load("//tools:nongoogle.bzl", "TESTCONTAINERS_VERSION") CAFFEINE_VERS = "2.8.5" ANTLR_VERS = "3.5.2" SLF4J_VERS = "1.7.26" COMMONMARK_VERS = "0.10.0" FLEXMARK_VERS = "0.50.42" GREENMAIL_VERS = "1.5.5" MAIL_VERS = "1.6.0" MIME4J_VERS = "0.8.1" OW2_VERS = "9.0" AU...
30.740157
100
0.640412
c0a0af7a5b8118ea0dcd1f496e6b8abc456c00a6
2,159
py
Python
data/image_folder.py
Cai631/MBMFN
9a48744d7de87a6a7ec08ad87b2d0bd727e1d23c
[ "Apache-2.0" ]
6
2022-03-07T02:41:39.000Z
2022-03-16T11:46:05.000Z
data/image_folder.py
Cai631/MBMFN
9a48744d7de87a6a7ec08ad87b2d0bd727e1d23c
[ "Apache-2.0" ]
1
2022-03-28T01:39:35.000Z
2022-03-28T01:39:35.000Z
data/image_folder.py
Cai631/MBMFN
9a48744d7de87a6a7ec08ad87b2d0bd727e1d23c
[ "Apache-2.0" ]
null
null
null
############################################################################### # Code from # https://github.com/pytorch/vision/blob/master/torchvision/datasets/folder.py # Modified the original code so that it also loads images from the current # directory as well as the subdirectories ################################...
27.679487
79
0.551181
e64af8e899d8ccbf22cd317848e191049c9d027c
45,503
py
Python
tests/test_emr/test_emr_boto3.py
gtourkas/moto
307104417b579d23d02f670ff55217a2d4a16bee
[ "Apache-2.0" ]
5,460
2015-01-01T01:11:17.000Z
2022-03-31T23:45:38.000Z
tests/test_emr/test_emr_boto3.py
gtourkas/moto
307104417b579d23d02f670ff55217a2d4a16bee
[ "Apache-2.0" ]
4,475
2015-01-05T19:37:30.000Z
2022-03-31T13:55:12.000Z
tests/test_emr/test_emr_boto3.py
gtourkas/moto
307104417b579d23d02f670ff55217a2d4a16bee
[ "Apache-2.0" ]
1,831
2015-01-14T00:00:44.000Z
2022-03-31T20:30:04.000Z
# -*- coding: utf-8 -*- import time from copy import deepcopy from datetime import datetime import boto3 import json import pytz import sure # noqa # pylint: disable=unused-import from botocore.exceptions import ClientError import pytest from moto import mock_emr from moto.core import ACCOUNT_ID run_job_flow_args ...
38.496616
128
0.634859
55c6f6d17167f1a36fb921e7a540075e6a311175
2,695
py
Python
demo/toga_demo/app.py
luizoti/toga
3c49e685f325f1aba2ce048b253402d7e4519f97
[ "BSD-3-Clause" ]
1,261
2019-03-31T16:28:47.000Z
2022-03-31T09:01:23.000Z
demo/toga_demo/app.py
luizoti/toga
3c49e685f325f1aba2ce048b253402d7e4519f97
[ "BSD-3-Clause" ]
597
2019-04-02T20:02:42.000Z
2022-03-30T10:28:47.000Z
demo/toga_demo/app.py
luizoti/toga
3c49e685f325f1aba2ce048b253402d7e4519f97
[ "BSD-3-Clause" ]
318
2019-03-31T18:32:00.000Z
2022-03-30T18:07:13.000Z
import toga from toga.constants import COLUMN from toga.style import Pack class TogaDemo(toga.App): def startup(self): # Create the main window self.main_window = toga.MainWindow(self.name) left_container = toga.OptionContainer() left_table = toga.Table( headings=['H...
27.222222
92
0.484972
21a8a090405be6aef737968c4c11dec480428f21
5,485
py
Python
algorithms/distribution_based/quantile_histogram.py
Soton-Song/valentine
9a47859f912540cdbe961ed3585201d3accd07be
[ "Apache-2.0" ]
3
2021-08-28T16:06:50.000Z
2022-03-25T22:33:34.000Z
algorithms/distribution_based/quantile_histogram.py
Soton-Song/valentine
9a47859f912540cdbe961ed3585201d3accd07be
[ "Apache-2.0" ]
6
2021-06-08T09:49:48.000Z
2021-08-10T17:06:57.000Z
engine/algorithms/distribution_based/quantile_histogram.py
kPsarakis/schema-matching-system
ecce8944dbcf93f4477f4f4e7c1ae5f5a7177f56
[ "Apache-2.0" ]
null
null
null
from numpy import ndarray import numpy as np import scipy.stats as ss import math class QuantileHistogram: """ A class used to represent an equi-depth quantile histogram Attributes ---------- name : str The column name ranks : ndarray The column's ranked data normalization...
29.331551
110
0.566819
1b578d7258fd5d08d6845076a41d046fa3447d32
4,052
py
Python
configs/_base_/det_pipelines/hybridnet_pipeline_tb5.py
zzx0226/mmocr
50354895244339a392b4f1af5a35963883923cca
[ "Apache-2.0" ]
null
null
null
configs/_base_/det_pipelines/hybridnet_pipeline_tb5.py
zzx0226/mmocr
50354895244339a392b4f1af5a35963883923cca
[ "Apache-2.0" ]
null
null
null
configs/_base_/det_pipelines/hybridnet_pipeline_tb5.py
zzx0226/mmocr
50354895244339a392b4f1af5a35963883923cca
[ "Apache-2.0" ]
null
null
null
''' Description: Version: 1.0 Autor: Zhangzixu Date: 2022-01-03 13:36:02 LastEditors: Zhangzixu LastEditTime: 2022-01-08 09:44:23 ''' img_norm_cfg = dict(mean=[123.675, 116.28, 103.53], std=[ 58.395, 57.12, 57.375], to_rgb=True) # for icdar2015 leval_prop_range_icdar2015 = ((0, 0.4), (0.3, 0.7), (...
42.652632
90
0.658193
00638446fb41c435de6b621d0ea882043f02a5f4
4,665
py
Python
examples/doq_server.py
LautaroJayat/aioquic
b1ecd8a1dd9089fa536b7d62ab06d7127d768e8d
[ "BSD-3-Clause" ]
null
null
null
examples/doq_server.py
LautaroJayat/aioquic
b1ecd8a1dd9089fa536b7d62ab06d7127d768e8d
[ "BSD-3-Clause" ]
2
2020-05-01T19:39:55.000Z
2020-05-01T20:45:40.000Z
examples/doq_server.py
LautaroJayat/aioquic
b1ecd8a1dd9089fa536b7d62ab06d7127d768e8d
[ "BSD-3-Clause" ]
null
null
null
import argparse import asyncio import logging from typing import Dict, Optional from dnslib.dns import DNSRecord from quic_logger import QuicDirectoryLogger from aioquic.asyncio import QuicConnectionProtocol, serve from aioquic.quic.configuration import QuicConfiguration from aioquic.quic.connection import QuicConnec...
28.10241
81
0.63687
addb1efd02c93b73b6f30ff1b1ebf01fabf93195
2,153
py
Python
test/test_contact_info.py
Gornghost/python_courses
729b54af3a120305a812e7db558f74c81c419a83
[ "Apache-2.0" ]
null
null
null
test/test_contact_info.py
Gornghost/python_courses
729b54af3a120305a812e7db558f74c81c419a83
[ "Apache-2.0" ]
null
null
null
test/test_contact_info.py
Gornghost/python_courses
729b54af3a120305a812e7db558f74c81c419a83
[ "Apache-2.0" ]
null
null
null
import re def test_contact_info_on_homepage(app): contact_list = app.contact.get_contact_list() index = app.random_element_of_list(contact_list) contact_from_homepage = contact_list[index] contact_from_edit_page = app.contact.get_contact_info_from_edit_page(index) assert contact_from_homepage.firs...
51.261905
130
0.728286
22508a70160f3f1d70aca6c88260d4612b9c7515
3,818
py
Python
localflavor/si/forms.py
Malomalsky/django-localflavor
663f9aa360d8ebe347f08a2d4bc1838a731c18fe
[ "BSD-3-Clause" ]
null
null
null
localflavor/si/forms.py
Malomalsky/django-localflavor
663f9aa360d8ebe347f08a2d4bc1838a731c18fe
[ "BSD-3-Clause" ]
null
null
null
localflavor/si/forms.py
Malomalsky/django-localflavor
663f9aa360d8ebe347f08a2d4bc1838a731c18fe
[ "BSD-3-Clause" ]
null
null
null
"""Slovenian specific form helpers.""" import datetime import re from django.forms import ValidationError from django.forms.fields import CharField, ChoiceField, Select from django.utils.translation import gettext_lazy as _ from .si_postalcodes import SI_POSTALCODES_CHOICES class SIEMSOField(CharField): """ ...
29.369231
86
0.598219
5f97c0d4bf0094aae14ec1996b0dd22b56df0ce9
3,583
py
Python
14.py
elp2/advent_of_code_2017
2721e8789b671fc1430e5c87f74b28f200a93c8d
[ "Apache-2.0" ]
1
2021-12-02T15:19:36.000Z
2021-12-02T15:19:36.000Z
14.py
elp2/advent_of_code_2017
2721e8789b671fc1430e5c87f74b28f200a93c8d
[ "Apache-2.0" ]
null
null
null
14.py
elp2/advent_of_code_2017
2721e8789b671fc1430e5c87f74b28f200a93c8d
[ "Apache-2.0" ]
null
null
null
REAL="225,171,131,2,35,5,0,13,1,246,54,97,255,98,254,110" SAMPLE="3,4,1,5" EXTRA_LENGTHS=[17, 31, 73, 47, 23] def apply_hash(lengths, elements, pos=0, skip=0): for length in lengths: for i in range(int(length / 2)): a = (pos + i) % len(elements) b = (pos + length - i - 1) % len(ele...
30.364407
194
0.535585
d0c01d329b8d1b86f8f43b3dd570d243e34cbcd0
9,034
py
Python
openstack_dashboard/dashboards/admin/overview/tests.py
aristanetworks/horizon
6b4ba5194d46360bf1a436b6f9531facfbf5084a
[ "Apache-2.0" ]
null
null
null
openstack_dashboard/dashboards/admin/overview/tests.py
aristanetworks/horizon
6b4ba5194d46360bf1a436b6f9531facfbf5084a
[ "Apache-2.0" ]
null
null
null
openstack_dashboard/dashboards/admin/overview/tests.py
aristanetworks/horizon
6b4ba5194d46360bf1a436b6f9531facfbf5084a
[ "Apache-2.0" ]
null
null
null
# Copyright 2012 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # Copyright 2012 Nebula, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the...
45.857868
78
0.58634