hexsha stringlengths 40 40 | size int64 5 2.06M | ext stringclasses 11
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 3 251 | max_stars_repo_name stringlengths 4 130 | max_stars_repo_head_hexsha stringlengths 40 78 | max_stars_repo_licenses listlengths 1 10 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 3 251 | max_issues_repo_name stringlengths 4 130 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 116k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 3 251 | max_forks_repo_name stringlengths 4 130 | max_forks_repo_head_hexsha stringlengths 40 78 | max_forks_repo_licenses listlengths 1 10 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 1 1.05M | avg_line_length float64 1 1.02M | max_line_length int64 3 1.04M | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
48bc4c72c304a6d7aeeb0dab781f82a2616fe4d3 | 4,766 | py | Python | test/test_memory_leaks.py | elventear/psutil | c159f3352dc5f699143960840e4f6535174690ed | [
"BSD-3-Clause"
] | 4 | 2015-01-06T01:39:12.000Z | 2019-12-09T10:27:44.000Z | test/test_memory_leaks.py | elventear/psutil | c159f3352dc5f699143960840e4f6535174690ed | [
"BSD-3-Clause"
] | null | null | null | test/test_memory_leaks.py | elventear/psutil | c159f3352dc5f699143960840e4f6535174690ed | [
"BSD-3-Clause"
] | 2 | 2016-10-21T03:15:34.000Z | 2018-12-10T03:40:50.000Z | #!/usr/bin/env python
#
# $Id$
#
"""
Note: this is targeted for python 2.x.
To run it under python 3.x you need to use 2to3 tool first:
$ 2to3 -w test/test_memory_leaks.py
"""
import os
import gc
import sys
import unittest
import psutil
from test_psutil import reap_children, skipUnless, skipIf, \
... | 24.822917 | 82 | 0.599245 |
48bc6e9f0498c16dbcd64706a2f744500361365e | 8,516 | py | Python | ga4gh/search/compliance/util/local_server.py | ga4gh-discovery/ga4gh-search-compliance | 58c693ca2f96d145f4ccba08aec23e4ebe1f7599 | [
"Apache-2.0"
] | null | null | null | ga4gh/search/compliance/util/local_server.py | ga4gh-discovery/ga4gh-search-compliance | 58c693ca2f96d145f4ccba08aec23e4ebe1f7599 | [
"Apache-2.0"
] | null | null | null | ga4gh/search/compliance/util/local_server.py | ga4gh-discovery/ga4gh-search-compliance | 58c693ca2f96d145f4ccba08aec23e4ebe1f7599 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""Module compliance_suite.report_server.py
This module contains class definition of small web server utility. Serves final
report results as HTML.
"""
import datetime
import time
import http.server
import socketserver
import os
import logging
import inspect
import socket
import webbrowser
imp... | 33.136187 | 83 | 0.516557 |
48bc7c9db7dabf6628ee230ef0c1f45b6794af0d | 2,146 | py | Python | api/routefinder.py | shingkid/DrWatson-ToTheRescue_SCDFXIBM | 009d2b4599b276ea760dbd888718a25332893075 | [
"MIT"
] | 1 | 2020-06-12T10:24:31.000Z | 2020-06-12T10:24:31.000Z | api/routefinder.py | yankai364/Dr-Watson | 22bd885d028e118fa5abf5a9d0ea373b7020ca1d | [
"MIT"
] | 3 | 2020-09-24T15:36:33.000Z | 2022-02-10T02:32:42.000Z | api/routefinder.py | shingkid/DrWatson-ToTheRescue_SCDFXIBM | 009d2b4599b276ea760dbd888718a25332893075 | [
"MIT"
] | 1 | 2020-06-14T10:09:58.000Z | 2020-06-14T10:09:58.000Z | import csv
import pandas as pd
import numpy as np
import networkx as nx
| 24.11236 | 83 | 0.547996 |
48bd4369d1643a3a728218455de1ea42bfd683e8 | 8,084 | py | Python | lectures/extensions/hyperbolic_discounting/replication_code/.mywaflib/waflib/extras/rst.py | loikein/ekw-lectures | a2f5436f10515ab26eab323fca8c37c91bdc5dcd | [
"MIT"
] | 4 | 2019-11-15T15:21:27.000Z | 2020-07-08T15:04:30.000Z | lectures/extensions/hyperbolic_discounting/replication_code/.mywaflib/waflib/extras/rst.py | loikein/ekw-lectures | a2f5436f10515ab26eab323fca8c37c91bdc5dcd | [
"MIT"
] | 9 | 2019-11-18T15:54:36.000Z | 2020-07-14T13:56:53.000Z | lectures/extensions/hyperbolic_discounting/replication_code/.mywaflib/waflib/extras/rst.py | loikein/ekw-lectures | a2f5436f10515ab26eab323fca8c37c91bdc5dcd | [
"MIT"
] | 3 | 2021-01-25T15:41:30.000Z | 2021-09-21T08:51:36.000Z | #!/usr/bin/env python
# Jrme Carretero, 2013 (zougloub)
"""
reStructuredText support (experimental)
Example::
def configure(conf):
conf.load('rst')
if not conf.env.RST2HTML:
conf.fatal('The program rst2html is required')
def build(bld):
bld(
features = 'rst',
type = 'rst2html', # rst2html, rst2p... | 29.289855 | 114 | 0.593147 |
48bf7ed2085cdea54fbe4837b4e8e76a67b7373c | 1,339 | py | Python | mofa/analytics/tests/test_participationAnalytics/test_quizParticipation.py | BoxInABoxICT/BoxPlugin | ad351978faa37ab867a86d2f4023a2b3e5a2ce19 | [
"Apache-2.0"
] | null | null | null | mofa/analytics/tests/test_participationAnalytics/test_quizParticipation.py | BoxInABoxICT/BoxPlugin | ad351978faa37ab867a86d2f4023a2b3e5a2ce19 | [
"Apache-2.0"
] | null | null | null | mofa/analytics/tests/test_participationAnalytics/test_quizParticipation.py | BoxInABoxICT/BoxPlugin | ad351978faa37ab867a86d2f4023a2b3e5a2ce19 | [
"Apache-2.0"
] | null | null | null | import unittest
import json
import os
from unittest.mock import MagicMock, patch
from analytics.src.participationAnalytics import quizParticipation
| 32.658537 | 77 | 0.657207 |
48bf9da5843cf6858ec4f1074f331bc92553a1cd | 1,171 | py | Python | visualize_cam.py | mhamdan91/Gradcam_eager | ee732ff65256ef1692caf94c8c0b4bdbe22d2d1d | [
"MIT"
] | 2 | 2019-09-19T18:08:26.000Z | 2019-10-11T12:42:22.000Z | visualize_cam.py | mhamdan91/Gradcam_eager | ee732ff65256ef1692caf94c8c0b4bdbe22d2d1d | [
"MIT"
] | null | null | null | visualize_cam.py | mhamdan91/Gradcam_eager | ee732ff65256ef1692caf94c8c0b4bdbe22d2d1d | [
"MIT"
] | null | null | null | # from utils import Sample_main
import gradcam_main
import numpy as np
import tensorflow as tf
import argparse
import os
tf.logging.set_verbosity(tf.logging.ERROR) # disable to see tensorflow warnings
# In case referenced by other modules
if __name__ == '__main__':
main()
| 34.441176 | 150 | 0.64304 |
48bfa6a9870aa2f95044df7a3145739de4a0dc15 | 1,681 | py | Python | tests/molecular/molecules/building_block/test_with_functional_groups.py | andrewtarzia/stk | 1ac2ecbb5c9940fe49ce04cbf5603fd7538c475a | [
"MIT"
] | 21 | 2018-04-12T16:25:24.000Z | 2022-02-14T23:05:43.000Z | tests/molecular/molecules/building_block/test_with_functional_groups.py | JelfsMaterialsGroup/stk | 0d3e1b0207aa6fa4d4d5ee8dfe3a29561abb08a2 | [
"MIT"
] | 8 | 2019-03-19T12:36:36.000Z | 2020-11-11T12:46:00.000Z | tests/molecular/molecules/building_block/test_with_functional_groups.py | supramolecular-toolkit/stk | 0d3e1b0207aa6fa4d4d5ee8dfe3a29561abb08a2 | [
"MIT"
] | 5 | 2018-08-07T13:00:16.000Z | 2021-11-01T00:55:10.000Z | from ..utilities import (
has_same_structure,
is_equivalent_molecule,
is_equivalent_building_block,
are_equivalent_functional_groups,
)
def test_with_functional_groups(building_block, get_functional_groups):
"""
Test :meth:`.BuildingBlock.with_functional_groups`.
Parameters
----------... | 26.68254 | 71 | 0.702558 |
48bfa7e063bfbe3193516ebfca7f4a3ae8dc8a0a | 9,512 | py | Python | tests/master/test_master.py | bk-mtg/piwheels | 67152dd1cfd5bd03ea90a8f0255103a9ee9c71d6 | [
"BSD-3-Clause"
] | null | null | null | tests/master/test_master.py | bk-mtg/piwheels | 67152dd1cfd5bd03ea90a8f0255103a9ee9c71d6 | [
"BSD-3-Clause"
] | null | null | null | tests/master/test_master.py | bk-mtg/piwheels | 67152dd1cfd5bd03ea90a8f0255103a9ee9c71d6 | [
"BSD-3-Clause"
] | null | null | null | # The piwheels project
# Copyright (c) 2017 Ben Nuttall <https://github.com/bennuttall>
# Copyright (c) 2017 Dave Jones <dave@waveform.org.uk>
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistribution... | 38.983607 | 107 | 0.678616 |
48c0042b454fab2f52a5d4277d95dcb8ccdc7da6 | 1,254 | py | Python | dibase/rpi/gpio/test/pinid-platformtests.py | ralph-mcardell/dibase-rpi-python | 724c18d1f3c6745b3dddf582ea2272ed4e2df8ac | [
"BSD-3-Clause"
] | null | null | null | dibase/rpi/gpio/test/pinid-platformtests.py | ralph-mcardell/dibase-rpi-python | 724c18d1f3c6745b3dddf582ea2272ed4e2df8ac | [
"BSD-3-Clause"
] | null | null | null | dibase/rpi/gpio/test/pinid-platformtests.py | ralph-mcardell/dibase-rpi-python | 724c18d1f3c6745b3dddf582ea2272ed4e2df8ac | [
"BSD-3-Clause"
] | null | null | null | '''
Part of the dibase.rpi.gpio.test package.
GPIO pin id support classes' platform tests.
Underlying GPIO pin ids are those used by the Linux gpiolib and used
to identify a device's GPIO pins in the Linux sys filesystem GPIO
sub-tree.
Developed by R.E. McArdell / Dibase Limited.
... | 33.891892 | 83 | 0.719298 |
48c34cc81742111643982bd0d218ec0140e5a1a0 | 7,503 | py | Python | analysis.py | tj294/2.5D-RB | f72f79d349ff27a058f503ccca58d63babb298e2 | [
"MIT"
] | null | null | null | analysis.py | tj294/2.5D-RB | f72f79d349ff27a058f503ccca58d63babb298e2 | [
"MIT"
] | null | null | null | analysis.py | tj294/2.5D-RB | f72f79d349ff27a058f503ccca58d63babb298e2 | [
"MIT"
] | null | null | null | """
Analysis code for plotting vertical flux transport and/or a gif of temperature,
velocity and KE from the merged output of a Dedalus Rayleigh-Brnard code.
Author: Tom Joshi-Cale
"""
# ====================
# IMPORTS
# ====================
import numpy as np
import h5py
import argparse
import matplotlib.pyplot as plt
... | 31.52521 | 88 | 0.53432 |
48c388d2a91f2301d0f59df1f50eb64349cced6a | 2,104 | py | Python | direct_gd_predict/hash-profile.py | wac/meshop | ea5703147006e5e85617af897e1d1488e6f29f32 | [
"0BSD"
] | 1 | 2016-05-08T14:54:31.000Z | 2016-05-08T14:54:31.000Z | direct_gd_predict/hash-profile.py | wac/meshop | ea5703147006e5e85617af897e1d1488e6f29f32 | [
"0BSD"
] | null | null | null | direct_gd_predict/hash-profile.py | wac/meshop | ea5703147006e5e85617af897e1d1488e6f29f32 | [
"0BSD"
] | null | null | null | import sys
import heapq
import optparse
from bitcount2 import bitcount
hasher={}
profile={}
key_list=[]
key_col=0
sep='|'
key_col=0
#feature_col=1
#score_col=6
in_feature_col=0
in_score_col=1
process_feature_col=1
process_score_col=6
parser = optparse.OptionParser()
#parser.add_option("-n", dest="heapsize",
# ... | 23.120879 | 85 | 0.65827 |
48c5df022af8f3cc4834d472772e95a600e0b3cc | 3,804 | py | Python | sdk/eventgrid/azure-eventgrid/azure/eventgrid/aio/_publisher_client_async.py | conniey/azure-sdk-for-python | f779de8e53dbec033f98f976284e6d9491fd60b3 | [
"MIT"
] | 2 | 2019-05-17T21:24:53.000Z | 2020-02-12T11:13:42.000Z | sdk/eventgrid/azure-eventgrid/azure/eventgrid/aio/_publisher_client_async.py | conniey/azure-sdk-for-python | f779de8e53dbec033f98f976284e6d9491fd60b3 | [
"MIT"
] | null | null | null | sdk/eventgrid/azure-eventgrid/azure/eventgrid/aio/_publisher_client_async.py | conniey/azure-sdk-for-python | f779de8e53dbec033f98f976284e6d9491fd60b3 | [
"MIT"
] | 2 | 2020-05-21T22:51:22.000Z | 2020-05-26T20:53:01.000Z | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | 49.402597 | 137 | 0.701367 |
48c82cf824c0f047f355b4e4cd11359596e54a76 | 5,037 | py | Python | multi_tool.py | zbigos/multi_project_tools | cb9996d0fea0c2c763054ad5f78e904a68b9c80e | [
"Apache-2.0"
] | null | null | null | multi_tool.py | zbigos/multi_project_tools | cb9996d0fea0c2c763054ad5f78e904a68b9c80e | [
"Apache-2.0"
] | null | null | null | multi_tool.py | zbigos/multi_project_tools | cb9996d0fea0c2c763054ad5f78e904a68b9c80e | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
import logging, sys, argparse
from collect import Collection
if __name__ == '__main__':
parser = argparse.ArgumentParser(description="test a project repo")
parser.add_argument('--force-delete', help='instead of aborting on existing files, delete them', action='store_const', const=True)
... | 59.258824 | 157 | 0.728608 |
48c98054b3a6ea0035473ed0534ee80b41dcebb8 | 4,327 | py | Python | benchbuild/projects/benchbuild/bots.py | ognarb/benchbuild | ad93ae0666e3100fd36c697793c0db1ba52938d0 | [
"MIT"
] | null | null | null | benchbuild/projects/benchbuild/bots.py | ognarb/benchbuild | ad93ae0666e3100fd36c697793c0db1ba52938d0 | [
"MIT"
] | null | null | null | benchbuild/projects/benchbuild/bots.py | ognarb/benchbuild | ad93ae0666e3100fd36c697793c0db1ba52938d0 | [
"MIT"
] | null | null | null | from plumbum import local
from benchbuild import project
from benchbuild.utils import compiler, download, run, wrapping
from benchbuild.utils.cmd import make, mkdir
| 28.655629 | 79 | 0.580079 |
48c9b882f54e25efdd1d54210cde93be6398663c | 668 | py | Python | clients/python/setup.py | timtadh/queued | 9c46a49a73103de9a929718c223326149cb9accd | [
"BSD-3-Clause"
] | 4 | 2015-12-29T05:07:50.000Z | 2022-02-10T20:27:40.000Z | clients/python/setup.py | timtadh/queued | 9c46a49a73103de9a929718c223326149cb9accd | [
"BSD-3-Clause"
] | 1 | 2015-04-16T15:56:26.000Z | 2015-04-16T15:56:26.000Z | clients/python/setup.py | timtadh/queued | 9c46a49a73103de9a929718c223326149cb9accd | [
"BSD-3-Clause"
] | 8 | 2015-02-24T12:05:16.000Z | 2022-02-10T20:27:41.000Z | try:
from setuptools import setup
setup # quiet "redefinition of unused ..." warning from pyflakes
# arguments that distutils doesn't understand
setuptools_kwargs = {
'install_requires': [
],
'provides': ['queued'],
'zip_safe': False
}
except ImportError:
fro... | 23.034483 | 69 | 0.586826 |
48ca7f075d0516343cadcc4c408fff80c48e1083 | 11,129 | py | Python | sym_executor.py | zhangzhenghsy/fiber | af1a8c8b01d4935849df73b01ccfeccbba742205 | [
"BSD-2-Clause"
] | null | null | null | sym_executor.py | zhangzhenghsy/fiber | af1a8c8b01d4935849df73b01ccfeccbba742205 | [
"BSD-2-Clause"
] | null | null | null | sym_executor.py | zhangzhenghsy/fiber | af1a8c8b01d4935849df73b01ccfeccbba742205 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/python
import angr,simuvex
import sys,os
import time
from utils_sig import *
from sym_tracer import Sym_Tracer
from sig_recorder import Sig_Recorder
#This class is responsible for performing symbolic execution.
| 54.287805 | 243 | 0.673556 |
48ca956ecd40df08896e125936a630042abd2d96 | 2,228 | py | Python | apim-migration-testing-tool/Python/venv/lib/python3.6/site-packages/pymysql/constants/CR.py | tharindu1st/apim-migration-resources | dd68aa8c53cf310392bb72e699dd24c57b109cfb | [
"Apache-2.0"
] | 1,573 | 2015-01-01T07:19:06.000Z | 2022-03-30T09:06:06.000Z | apim-migration-testing-tool/Python/venv/lib/python3.6/site-packages/pymysql/constants/CR.py | tharindu1st/apim-migration-resources | dd68aa8c53cf310392bb72e699dd24c57b109cfb | [
"Apache-2.0"
] | 1,691 | 2015-01-03T11:03:23.000Z | 2022-03-30T07:27:28.000Z | apim-migration-testing-tool/Python/venv/lib/python3.6/site-packages/pymysql/constants/CR.py | tharindu1st/apim-migration-resources | dd68aa8c53cf310392bb72e699dd24c57b109cfb | [
"Apache-2.0"
] | 895 | 2015-01-03T19:56:15.000Z | 2022-03-18T18:30:57.000Z | # flake8: noqa
# errmsg.h
CR_ERROR_FIRST = 2000
CR_UNKNOWN_ERROR = 2000
CR_SOCKET_CREATE_ERROR = 2001
CR_CONNECTION_ERROR = 2002
CR_CONN_HOST_ERROR = 2003
CR_IPSOCK_ERROR = 2004
CR_UNKNOWN_HOST = 2005
CR_SERVER_GONE_ERROR = 2006
CR_VERSION_ERROR = 2007
CR_OUT_OF_MEMORY = 2008
CR_WRONG_HOST_INFO = 2009
CR_LOCALHOST_... | 32.289855 | 47 | 0.745063 |
48cccf1158ee9bcd15cefd678338ca10d4234710 | 992 | py | Python | check-challenge.py | gjaiswal108/Check-if-Challenge-problem-added-in-codechef | 74b29725ad38bdf0dc210dbdb67fccf056ec6d8c | [
"Apache-2.0"
] | null | null | null | check-challenge.py | gjaiswal108/Check-if-Challenge-problem-added-in-codechef | 74b29725ad38bdf0dc210dbdb67fccf056ec6d8c | [
"Apache-2.0"
] | null | null | null | check-challenge.py | gjaiswal108/Check-if-Challenge-problem-added-in-codechef | 74b29725ad38bdf0dc210dbdb67fccf056ec6d8c | [
"Apache-2.0"
] | null | null | null | import requests,smtplib,time
from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart
r =requests.get('https://www.codechef.com/JUNE19B/')
while(1):
if('(Challenge)' in r.text):
s = smtplib.SMTP('smtp.gmail.com', 587)
s.starttls()
s.login("sender_gmail_id", "passwo... | 41.333333 | 164 | 0.647177 |
48cd5f2495ad481cbf1d4200796edf478513850e | 2,840 | py | Python | applications/tensorflow/click_through_rate/din/test/test_attention_fcn.py | kew96/GraphcoreExamples | 22dc0d7e3755b0a7f16cdf694c6d10c0f91ee8eb | [
"MIT"
] | null | null | null | applications/tensorflow/click_through_rate/din/test/test_attention_fcn.py | kew96/GraphcoreExamples | 22dc0d7e3755b0a7f16cdf694c6d10c0f91ee8eb | [
"MIT"
] | null | null | null | applications/tensorflow/click_through_rate/din/test/test_attention_fcn.py | kew96/GraphcoreExamples | 22dc0d7e3755b0a7f16cdf694c6d10c0f91ee8eb | [
"MIT"
] | null | null | null | # Copyright (c) 2020 Graphcore Ltd. 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 la... | 34.216867 | 116 | 0.669366 |
48cd84239fff9070a94f62f2913b39c9eded80ea | 204 | py | Python | shiva/constants.py | tooxie/shiva-server | 4d169aae8d4cb01133f62701b14610695e48c297 | [
"MIT"
] | 70 | 2015-01-09T15:15:15.000Z | 2022-01-14T09:51:55.000Z | shiva/constants.py | tooxie/shiva-server | 4d169aae8d4cb01133f62701b14610695e48c297 | [
"MIT"
] | 14 | 2015-01-04T10:08:26.000Z | 2021-12-13T19:35:07.000Z | shiva/constants.py | tooxie/shiva-server | 4d169aae8d4cb01133f62701b14610695e48c297 | [
"MIT"
] | 19 | 2015-01-02T22:42:01.000Z | 2022-01-14T09:51:59.000Z | # -*- coding: utf-8 -*-
| 17 | 32 | 0.632353 |
48cf0852e6ab6d1a0771fbc1bfea6839386062de | 1,287 | py | Python | tests/test_cmdline.py | lin-zone/scrapyu | abcb8eed2ea02121b74017e007c57c0d3762342d | [
"MIT"
] | 1 | 2021-01-05T09:11:42.000Z | 2021-01-05T09:11:42.000Z | tests/test_cmdline.py | lin-zone/scrapyu | abcb8eed2ea02121b74017e007c57c0d3762342d | [
"MIT"
] | null | null | null | tests/test_cmdline.py | lin-zone/scrapyu | abcb8eed2ea02121b74017e007c57c0d3762342d | [
"MIT"
] | null | null | null | import sys
import subprocess
from tempfile import mkdtemp, TemporaryFile
from path import Path
from tests import TEST_DIR
args = (sys.executable, '-m', 'scrapyu.cmdline')
| 33.868421 | 97 | 0.688423 |
48cf85efc52b96d39ed18f6149964691786778a9 | 3,257 | py | Python | src/olympia/amo/cron.py | dante381/addons-server | 9702860a19ecca1cb4e4998f37bc43c1b2dd3aa7 | [
"BSD-3-Clause"
] | null | null | null | src/olympia/amo/cron.py | dante381/addons-server | 9702860a19ecca1cb4e4998f37bc43c1b2dd3aa7 | [
"BSD-3-Clause"
] | null | null | null | src/olympia/amo/cron.py | dante381/addons-server | 9702860a19ecca1cb4e4998f37bc43c1b2dd3aa7 | [
"BSD-3-Clause"
] | null | null | null | from datetime import datetime, timedelta
from django.core.files.storage import default_storage as storage
import olympia.core.logger
from olympia import amo
from olympia.activity.models import ActivityLog
from olympia.addons.models import Addon
from olympia.addons.tasks import delete_addons
from olympia.amo.utils imp... | 34.648936 | 88 | 0.684986 |
48d0551fc7668ef91b0cbb625288bc4330046f92 | 642 | py | Python | day8/test_day8.py | bwbeach/advent-of-code-2020 | 572810c3adae5815543efde17a4bca9596d05a5b | [
"CC0-1.0"
] | null | null | null | day8/test_day8.py | bwbeach/advent-of-code-2020 | 572810c3adae5815543efde17a4bca9596d05a5b | [
"CC0-1.0"
] | null | null | null | day8/test_day8.py | bwbeach/advent-of-code-2020 | 572810c3adae5815543efde17a4bca9596d05a5b | [
"CC0-1.0"
] | null | null | null | from day8.day8 import fix_code, parse_code, run
SAMPLE_CODE_LOOP = """nop +0
acc +1
jmp +4
acc +3
jmp -3
acc -99
acc +1
jmp -4
acc +6
"""
SAMPLE_CODE_HALT = """nop +0
acc +1
jmp +4
acc +3
jmp -3
acc -99
acc +1
nop -4
acc +6
"""
| 15.285714 | 88 | 0.638629 |
48d23528c08e020ee5f13c45ec80e61813e3bd41 | 6,128 | py | Python | biosys/apps/main/tests/api/test_misc.py | florianm/biosys | 934d06ed805b0734f3cb9a00feec6cd81a94e512 | [
"Apache-2.0"
] | 2 | 2018-04-09T04:02:30.000Z | 2019-08-20T03:12:55.000Z | biosys/apps/main/tests/api/test_misc.py | florianm/biosys | 934d06ed805b0734f3cb9a00feec6cd81a94e512 | [
"Apache-2.0"
] | 29 | 2016-01-20T08:14:15.000Z | 2017-07-13T07:17:32.000Z | biosys/apps/main/tests/api/test_misc.py | florianm/biosys | 934d06ed805b0734f3cb9a00feec6cd81a94e512 | [
"Apache-2.0"
] | 5 | 2016-01-14T23:02:36.000Z | 2016-09-21T05:35:03.000Z | from django.shortcuts import reverse
from django.test import TestCase
from rest_framework import status
from rest_framework.test import APIClient
from main.models import Project
from main.tests import factories
from main.tests.api import helpers
| 31.587629 | 101 | 0.590078 |
48d29ebbfa1dba9c5ef7d472e7d45e6999e1c63b | 531 | py | Python | src/netwrok/analytics.py | simonwittber/netwrok-server | d4767faa766e7ecb0de0c912f0c0a26b45b84189 | [
"MIT"
] | 16 | 2015-12-01T14:42:30.000Z | 2021-04-26T21:16:45.000Z | src/netwrok/analytics.py | DifferentMethods/netwrok-server | d4767faa766e7ecb0de0c912f0c0a26b45b84189 | [
"MIT"
] | null | null | null | src/netwrok/analytics.py | DifferentMethods/netwrok-server | d4767faa766e7ecb0de0c912f0c0a26b45b84189 | [
"MIT"
] | 4 | 2015-03-02T07:19:15.000Z | 2015-10-14T07:38:02.000Z | import asyncio
import aiopg
from . import nwdb
from . import core
| 27.947368 | 76 | 0.653484 |
48d3bd9308acb8eb9e29472526d5d05261bbdb90 | 635 | py | Python | monte_carlo/helpers/muaanalytical.py | nathhje/bachelorproject | 4bca826d1e065f647e2088b1fd028b1bdf863124 | [
"MIT"
] | null | null | null | monte_carlo/helpers/muaanalytical.py | nathhje/bachelorproject | 4bca826d1e065f647e2088b1fd028b1bdf863124 | [
"MIT"
] | null | null | null | monte_carlo/helpers/muaanalytical.py | nathhje/bachelorproject | 4bca826d1e065f647e2088b1fd028b1bdf863124 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Deterimines the reflectance based on r and mua.
"""
import math
import helpers.analyticalvalues as av
def reflectance(mua, r):
"""
mua: the absorption coefficient used.
r: the radial distance used.
"""
values = av.analyticalValues(r, mua)
# the value of th... | 30.238095 | 99 | 0.60315 |
48d3e34f960926be47270d979dba99f1e974b2b3 | 476 | py | Python | main/test_data.py | anna01111/demo_web_ui_test_suite | 69bedc25126b874774e2f51a83356dc9ee1b7e74 | [
"CC0-1.0"
] | null | null | null | main/test_data.py | anna01111/demo_web_ui_test_suite | 69bedc25126b874774e2f51a83356dc9ee1b7e74 | [
"CC0-1.0"
] | null | null | null | main/test_data.py | anna01111/demo_web_ui_test_suite | 69bedc25126b874774e2f51a83356dc9ee1b7e74 | [
"CC0-1.0"
] | null | null | null | from faker import Faker
"""
More info: https://microservices-demo.github.io/docs/user-accounts.html
"""
# The demo app is shipped with the following account:
username = 'user'
password = 'password'
# Fake data that is used for new registrations:
faker = Faker()
autogenerated_username = faker.user_name()
autogenerate... | 26.444444 | 71 | 0.779412 |
48d3f8d217b00f2ba74165ed887ea259202fee75 | 1,115 | py | Python | pfr/run.py | AnnaMag/pdf-flask-react | de89eb13b2e2e0d4418c28041fe294205f528b96 | [
"BSD-2-Clause"
] | 2 | 2019-01-04T16:55:05.000Z | 2019-08-28T20:16:47.000Z | pfr/run.py | AnnaMag/pdf-flask-react | de89eb13b2e2e0d4418c28041fe294205f528b96 | [
"BSD-2-Clause"
] | 2 | 2021-06-01T21:52:21.000Z | 2021-12-13T19:43:43.000Z | pfr/run.py | AnnaMag/pdf-flask-react | de89eb13b2e2e0d4418c28041fe294205f528b96 | [
"BSD-2-Clause"
] | null | null | null | from io import StringIO
from io import BytesIO
import urllib
from urllib import request
import utils
from pdf_processing import scrape_gazette_names, get_info_outline
from data_parsing import save_to_dict
if __name__ == '__main__':
# not saving anything locally, just the names listed on the webpage to access th... | 33.787879 | 97 | 0.699552 |
48d4f15c7fa28d9ec9d8b63f2ea935ca7b5152ba | 1,246 | py | Python | day9/day9.py | jaredledvina/adventofcode2020 | 2a31fd88c0b6bddd2c06327d04e6630b8fb29909 | [
"MIT"
] | 1 | 2020-12-09T14:50:49.000Z | 2020-12-09T14:50:49.000Z | day9/day9.py | jaredledvina/adventofcode2020 | 2a31fd88c0b6bddd2c06327d04e6630b8fb29909 | [
"MIT"
] | null | null | null | day9/day9.py | jaredledvina/adventofcode2020 | 2a31fd88c0b6bddd2c06327d04e6630b8fb29909 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import itertools
if __name__ == '__main__':
main() | 29.666667 | 140 | 0.629213 |
48d562ad3234975315fbded1821628c64f55b9d7 | 4,461 | py | Python | streamlitfront/tests/common.py | i2mint/streamlitfront | 6fbc03a42cdb7436dcda3da00fb9b42965bbb582 | [
"Apache-2.0"
] | null | null | null | streamlitfront/tests/common.py | i2mint/streamlitfront | 6fbc03a42cdb7436dcda3da00fb9b42965bbb582 | [
"Apache-2.0"
] | 1 | 2022-02-03T15:21:57.000Z | 2022-02-05T00:51:33.000Z | streamlitfront/tests/common.py | i2mint/streamlitfront | 6fbc03a42cdb7436dcda3da00fb9b42965bbb582 | [
"Apache-2.0"
] | null | null | null | from contextlib import contextmanager
from functools import partial
from inspect import Parameter
from random import choice, randint, uniform
import string
from typing import Any
from i2 import Sig
from numbers import Number
from sys import platform
from selenium.common.exceptions import NoSuchElementException
from sel... | 33.795455 | 87 | 0.68998 |
48d584fffe50d5a164a634c7bdeab43a85e1c776 | 16,094 | py | Python | Python_files/analyse.py | Deniz-shelby/goodreads_webscrap | 80be6eb85f8a128eeeef2f845726557852991463 | [
"Apache-2.0"
] | null | null | null | Python_files/analyse.py | Deniz-shelby/goodreads_webscrap | 80be6eb85f8a128eeeef2f845726557852991463 | [
"Apache-2.0"
] | 1 | 2021-04-14T07:41:49.000Z | 2021-04-14T10:02:45.000Z | Python_files/analyse.py | Deniz-shelby/goodreads_webscrap | 80be6eb85f8a128eeeef2f845726557852991463 | [
"Apache-2.0"
] | 2 | 2021-04-14T05:31:24.000Z | 2021-04-19T08:00:40.000Z |
import numpy as np
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
from matplotlib import rcParams
from sklearn.preprocessing import MinMaxScaler
import warnings
import scipy.stats as st
import statsmodels as sm
| 36.494331 | 122 | 0.626942 |
48d7564242b45a65bf822b185e1203ecbd2093a0 | 773 | py | Python | 3 assignment/number_of_digits_unitest.py | nastae/programavimas_python | 7e65ad834c5f52e146fb5fcd0408b344545dc30e | [
"Apache-2.0"
] | null | null | null | 3 assignment/number_of_digits_unitest.py | nastae/programavimas_python | 7e65ad834c5f52e146fb5fcd0408b344545dc30e | [
"Apache-2.0"
] | null | null | null | 3 assignment/number_of_digits_unitest.py | nastae/programavimas_python | 7e65ad834c5f52e146fb5fcd0408b344545dc30e | [
"Apache-2.0"
] | null | null | null | import unittest
# Paraykite funkcijai X unittest'us
if __name__ == '__main__':
unittest.main()
| 24.935484 | 48 | 0.65718 |
48d79b6a3679e4354a437a7315a9dd9bd23f2c50 | 3,971 | py | Python | scraper/edx.py | thanasis457/Mooc-platform | 5ff3b7b43fadc86ec5d4d54db6963449a6610bb5 | [
"MIT"
] | 4 | 2020-08-30T12:18:27.000Z | 2021-05-19T06:42:13.000Z | scraper/edx.py | thanasis457/Mooc-platform | 5ff3b7b43fadc86ec5d4d54db6963449a6610bb5 | [
"MIT"
] | 1 | 2021-01-28T20:21:48.000Z | 2021-01-28T20:21:48.000Z | scraper/edx.py | thanasis457/Mooc-platform | 5ff3b7b43fadc86ec5d4d54db6963449a6610bb5 | [
"MIT"
] | 1 | 2020-09-14T13:20:05.000Z | 2020-09-14T13:20:05.000Z | import requests, json, bs4, urllib.parse, math
from . import Course, Platform
subject_uuids = {'d8244ef2-45fb-4be3-a9d7-a6749cee3b19': 'Architecture',
'2cc66121-0c07-407b-96c4-99305359a36f': 'Art & Culture',
'9d5b5edb-254a-4d54-b430-776f1f00eaf0': 'Biology & Life Sciences',
... | 44.617978 | 88 | 0.576681 |
48d950cb515fdc01c87e2cf97d07a2e9d9b96b55 | 8,409 | py | Python | main.py | LaudateCorpus1/TotalConnect2.0_API-Arm-Disarm | 96885410defa036b37b5f6ae86b322de89c850ae | [
"MIT"
] | 1 | 2017-03-06T03:44:40.000Z | 2017-03-06T03:44:40.000Z | main.py | LaudateCorpus1/TotalConnect2.0_API-Arm-Disarm | 96885410defa036b37b5f6ae86b322de89c850ae | [
"MIT"
] | null | null | null | main.py | LaudateCorpus1/TotalConnect2.0_API-Arm-Disarm | 96885410defa036b37b5f6ae86b322de89c850ae | [
"MIT"
] | 2 | 2020-01-20T12:57:55.000Z | 2022-02-08T07:03:58.000Z | #!/usr/local/bin/python2.7
#FREEBSD 2 Minutes ARP Expires - /bin/echo "net.link.ether.inet.max_age 300" >> /etc/sysctl.conf
#Crontab -e "* * * * * /usr/local/bin/python2.7 /root/Security.py"
import subprocess
import ConfigParser
import string, os, sys, httplib
import xml.etree.ElementTree as ET
from datetime import da... | 39.665094 | 275 | 0.646093 |
48d989d7c7b86f58f750e3be1818f6a34de5e9dd | 1,538 | py | Python | prm/relations/migrations/0002_activity.py | justaname94/innovathon2019 | d1a4e9b1b877ba12ab23384b9ee098fcdbf363af | [
"MIT"
] | null | null | null | prm/relations/migrations/0002_activity.py | justaname94/innovathon2019 | d1a4e9b1b877ba12ab23384b9ee098fcdbf363af | [
"MIT"
] | 4 | 2021-06-08T20:20:05.000Z | 2022-03-11T23:58:37.000Z | prm/relations/migrations/0002_activity.py | justaname94/personal_crm | d1a4e9b1b877ba12ab23384b9ee098fcdbf363af | [
"MIT"
] | null | null | null | # Generated by Django 2.2.5 on 2019-09-09 21:21
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
| 43.942857 | 156 | 0.617035 |
48da319d7adab06ea080a4bfe703b82db0fccf2a | 1,106 | py | Python | elliptic_moab/Mesh/MeshQL.py | padmec-reservoir/elliptic_moab | a3b15f29a621c35a8279fd163326a0895aa67f30 | [
"MIT"
] | null | null | null | elliptic_moab/Mesh/MeshQL.py | padmec-reservoir/elliptic_moab | a3b15f29a621c35a8279fd163326a0895aa67f30 | [
"MIT"
] | null | null | null | elliptic_moab/Mesh/MeshQL.py | padmec-reservoir/elliptic_moab | a3b15f29a621c35a8279fd163326a0895aa67f30 | [
"MIT"
] | null | null | null | from typing import Type
from elliptic.Kernel.Context import ContextDelegate
from .Selector import SelectorImplementation
from .Manager import ManagerImplementation
from .Computer import ComputerImplementation
| 34.5625 | 98 | 0.654611 |
48da48030860d7cf05ae6d06f45e092b1b0c01b7 | 1,229 | py | Python | tests/test_quil.py | stjordanis/quantumflow | bf965f0ca70cd69b387f9ca8407ab38da955e925 | [
"Apache-2.0"
] | 99 | 2018-12-03T20:41:39.000Z | 2022-02-21T13:56:08.000Z | tests/test_quil.py | stjordanis/quantumflow | bf965f0ca70cd69b387f9ca8407ab38da955e925 | [
"Apache-2.0"
] | 1 | 2021-06-25T15:18:31.000Z | 2021-06-25T15:18:31.000Z | tests/test_quil.py | stjordanis/quantumflow | bf965f0ca70cd69b387f9ca8407ab38da955e925 | [
"Apache-2.0"
] | 24 | 2018-12-03T20:41:41.000Z | 2022-01-03T01:11:45.000Z |
# Copyright 2016-2018, Rigetti Computing
#
# This source code is licensed under the Apache License, Version 2.0 found in
# the LICENSE.txt file in the root directory of this source tree.
import pytest
import quantumflow as qf
QUIL_FILES = [
'hello_world.quil',
'empty.quil',
'classical_logic.quil',
... | 23.188679 | 77 | 0.613507 |
48daec9dcfb1b92e90a94069bc6dece79afb65a2 | 1,254 | py | Python | gitool/util.py | eikendev/gitool | 9bfa248093d4ee3caf25fde1a59f4f0fc66994af | [
"MIT"
] | 1 | 2022-03-17T06:26:20.000Z | 2022-03-17T06:26:20.000Z | gitool/util.py | eikendev/gitool | 9bfa248093d4ee3caf25fde1a59f4f0fc66994af | [
"MIT"
] | null | null | null | gitool/util.py | eikendev/gitool | 9bfa248093d4ee3caf25fde1a59f4f0fc66994af | [
"MIT"
] | null | null | null | import itertools
import logging
from git import Repo, InvalidGitRepositoryError
from .repository import Repository
logger = logging.getLogger("gitool")
| 24.115385 | 68 | 0.633174 |
48dbc22d623e96499bba5ef1f32d58521697a022 | 3,571 | py | Python | taiga/projects/epics/serializers.py | threefoldtech/Threefold-Circles | cbc433796b25cf7af9a295af65d665a4a279e2d6 | [
"Apache-2.0"
] | null | null | null | taiga/projects/epics/serializers.py | threefoldtech/Threefold-Circles | cbc433796b25cf7af9a295af65d665a4a279e2d6 | [
"Apache-2.0"
] | 12 | 2019-11-25T14:08:32.000Z | 2021-06-24T10:35:51.000Z | taiga/projects/epics/serializers.py | threefoldtech/Threefold-Circles | cbc433796b25cf7af9a295af65d665a4a279e2d6 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright (C) 2014-2017 Andrey Antukh <niwi@niwi.nz>
# Copyright (C) 2014-2017 Jess Espino <jespinog@gmail.com>
# Copyright (C) 2014-2017 David Barragn <bameda@dbarragan.com>
# Copyright (C) 2014-2017 Alejandro Alonso <alejandro.alonso@kaleidos.net>
# This program is free software: you can red... | 40.123596 | 104 | 0.758051 |
48dbc9d4daecd2cf1d72d63509bbaa3a2bffe8c4 | 2,178 | py | Python | src/TMDbApi/TMTranslationUnit.py | shasha79/nectm | 600044a6fe2c3a73e0d9327bc85883831a26dcae | [
"Apache-2.0"
] | 3 | 2020-02-28T21:42:44.000Z | 2021-03-12T13:56:16.000Z | src/TMDbApi/TMTranslationUnit.py | Pangeamt/nectm | 6b84f048698f2530b9fdbb30695f2e2217c3fbfe | [
"Apache-2.0"
] | 2 | 2020-11-06T14:40:10.000Z | 2020-12-29T19:03:11.000Z | src/TMDbApi/TMTranslationUnit.py | Pangeamt/nectm | 6b84f048698f2530b9fdbb30695f2e2217c3fbfe | [
"Apache-2.0"
] | 2 | 2020-03-26T16:05:11.000Z | 2020-08-06T16:35:39.000Z | #
# Copyright (c) 2020 Pangeanic SL.
#
# This file is part of NEC TM
# (see https://github.com/shasha79/nectm).
#
# 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 owne... | 36.915254 | 138 | 0.674472 |
48dcecd475c9d9c66ff47a1b76abf99c791428f8 | 805 | py | Python | tests/test_268.py | sungho-joo/leetcode2github | ce7730ef40f6051df23681dd3c0e1e657abba620 | [
"MIT"
] | null | null | null | tests/test_268.py | sungho-joo/leetcode2github | ce7730ef40f6051df23681dd3c0e1e657abba620 | [
"MIT"
] | null | null | null | tests/test_268.py | sungho-joo/leetcode2github | ce7730ef40f6051df23681dd3c0e1e657abba620 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import pytest
"""
Test 268. Missing Number
"""
| 23.676471 | 83 | 0.696894 |
48de82f88d77ad42fe5f179efaac8655f74f00d7 | 5,682 | py | Python | tests/db/test_connector.py | DaWeSearch/backend | 809e575ed730fce55d0e89a2fbc2031ba116f5e0 | [
"MIT"
] | 1 | 2021-02-15T01:05:22.000Z | 2021-02-15T01:05:22.000Z | tests/db/test_connector.py | DaWeSearch/backend | 809e575ed730fce55d0e89a2fbc2031ba116f5e0 | [
"MIT"
] | null | null | null | tests/db/test_connector.py | DaWeSearch/backend | 809e575ed730fce55d0e89a2fbc2031ba116f5e0 | [
"MIT"
] | null | null | null | import unittest
import os
import json
from functions.db.connector import *
from functions.db.models import *
from functions.authentication import *
sample_search = {
"search_groups": [
{
"search_terms": ["blockchain", "distributed ledger"],
"match": "OR"
},
{
... | 29.28866 | 80 | 0.62566 |
48deb6f756807dc27d051aa0715208fc6f52b020 | 1,513 | py | Python | tests/test_capstone.py | GrammaTech/gtirb-capstone | f46d90e9cd733c632620e5d8c921a4b9f011020a | [
"MIT"
] | 6 | 2020-04-10T15:19:30.000Z | 2021-04-13T22:54:17.000Z | tests/test_capstone.py | GrammaTech/gtirb-capstone | f46d90e9cd733c632620e5d8c921a4b9f011020a | [
"MIT"
] | null | null | null | tests/test_capstone.py | GrammaTech/gtirb-capstone | f46d90e9cd733c632620e5d8c921a4b9f011020a | [
"MIT"
] | 3 | 2020-07-10T22:52:32.000Z | 2021-02-13T19:52:22.000Z | # Copyright (C) 2020 GrammaTech, Inc.
#
# This code is licensed under the MIT license. See the LICENSE file in
# the project root for license terms.
#
# This project is sponsored by the Office of Naval Research, One Liberty
# Center, 875 N. Randolph Street, Arlington, VA 22203 under contract #
# N68335-17-C-0700. The ... | 30.877551 | 72 | 0.68341 |
48df4ad454aad4847f1d7ce4f347d3747f7148ed | 2,552 | py | Python | python/paddle/fluid/tests/unittests/npu/test_update_loss_scaling_min_op_npu.py | L-Net-1992/Paddle | 4d0ca02ba56760b456f3d4b42a538555b9b6c307 | [
"Apache-2.0"
] | null | null | null | python/paddle/fluid/tests/unittests/npu/test_update_loss_scaling_min_op_npu.py | L-Net-1992/Paddle | 4d0ca02ba56760b456f3d4b42a538555b9b6c307 | [
"Apache-2.0"
] | null | null | null | python/paddle/fluid/tests/unittests/npu/test_update_loss_scaling_min_op_npu.py | L-Net-1992/Paddle | 4d0ca02ba56760b456f3d4b42a538555b9b6c307 | [
"Apache-2.0"
] | 1 | 2021-12-09T08:59:17.000Z | 2021-12-09T08:59:17.000Z | # Copyright (c) 2021 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 app... | 32.303797 | 75 | 0.647727 |
48df99695d0c2e85858fd3010b30aa03fd644e15 | 1,031 | py | Python | Examples/WorkingWithMimeMessages/SetEmailHeaders.py | Muzammil-khan/Aspose.Email-Python-Dotnet | 04ca3a6f440339f3ddf316218f92d15d66f24e7e | [
"MIT"
] | 5 | 2019-01-28T05:17:12.000Z | 2020-04-14T14:31:34.000Z | Examples/WorkingWithMimeMessages/SetEmailHeaders.py | Muzammil-khan/Aspose.Email-Python-Dotnet | 04ca3a6f440339f3ddf316218f92d15d66f24e7e | [
"MIT"
] | 1 | 2019-01-28T16:07:26.000Z | 2021-11-25T10:59:52.000Z | Examples/WorkingWithMimeMessages/SetEmailHeaders.py | Muzammil-khan/Aspose.Email-Python-Dotnet | 04ca3a6f440339f3ddf316218f92d15d66f24e7e | [
"MIT"
] | 6 | 2018-07-16T14:57:34.000Z | 2020-08-30T05:59:52.000Z | import aspose.email as ae
import datetime
if __name__ == '__main__':
run()
| 33.258065 | 81 | 0.681862 |
48e060479c6f9450fb40ff919e56deed4c5f57d9 | 7,527 | py | Python | intrinsic/classify.py | seenu-andi-rajendran/plagcomps | 98e82cfb871f73bbd8f4ab1452c2b27a95beee83 | [
"MIT"
] | 2 | 2015-01-18T06:20:27.000Z | 2021-03-19T21:19:16.000Z | intrinsic/classify.py | NoahCarnahan/plagcomps | 98e82cfb871f73bbd8f4ab1452c2b27a95beee83 | [
"MIT"
] | null | null | null | intrinsic/classify.py | NoahCarnahan/plagcomps | 98e82cfb871f73bbd8f4ab1452c2b27a95beee83 | [
"MIT"
] | 2 | 2015-11-19T12:52:14.000Z | 2016-11-11T17:00:50.000Z | # classify.py
# Alternative methods to clustering
import sys, os
from random import shuffle
import cPickle
from collections import Counter
sys.path.append('../pybrain/') # add the pybrain module to the path... TODO: actually install it.
from plagcomps.shared.util import IntrinsicUtility
from ..dbconstants import user... | 37.635 | 119 | 0.659891 |
48e0a28c89b1ce15b99aa2daf6b83acba8204f1b | 4,316 | py | Python | matplotlib-3.4.3/matplotlib-3.4.3/examples/images_contours_and_fields/image_transparency_blend.py | JohnLauFoo/clc_packages_Yu | 259f01d9b5c02154ce258734d519ae8995cd0991 | [
"MIT"
] | 1 | 2021-11-13T17:21:44.000Z | 2021-11-13T17:21:44.000Z | matplotlib-3.4.3/matplotlib-3.4.3/examples/images_contours_and_fields/image_transparency_blend.py | JohnLauFoo/clc_packages_Yu | 259f01d9b5c02154ce258734d519ae8995cd0991 | [
"MIT"
] | null | null | null | matplotlib-3.4.3/matplotlib-3.4.3/examples/images_contours_and_fields/image_transparency_blend.py | JohnLauFoo/clc_packages_Yu | 259f01d9b5c02154ce258734d519ae8995cd0991 | [
"MIT"
] | null | null | null | """
==========================================
Blend transparency with color in 2D images
==========================================
Blend transparency with color to highlight parts of data with imshow.
A common use for `matplotlib.pyplot.imshow` is to plot a 2D statistical
map. The function makes it easy to visualiz... | 34.528 | 79 | 0.657322 |
48e3db6b6aba7110ea8f3e0d1c747e61649abf82 | 634 | py | Python | tests/test_admin.py | FernandoCelmer/django-global-permissions | 1ece2b18476a514dec7b1e13a51191943acb460b | [
"MIT"
] | 30 | 2015-02-04T12:26:35.000Z | 2022-03-23T21:19:10.000Z | tests/test_admin.py | FernandoCelmer/django-global-permissions | 1ece2b18476a514dec7b1e13a51191943acb460b | [
"MIT"
] | 15 | 2015-11-27T17:42:02.000Z | 2022-03-23T00:34:10.000Z | tests/test_admin.py | FernandoCelmer/django-global-permissions | 1ece2b18476a514dec7b1e13a51191943acb460b | [
"MIT"
] | 15 | 2015-04-14T18:09:26.000Z | 2022-03-22T11:42:04.000Z | from django.test import TestCase
from django.core.urlresolvers import reverse
try:
from django.contrib.auth import get_user_model
User = get_user_model()
except ImportError:
from django.contrib.auth.models import User
| 33.368421 | 95 | 0.749211 |
48e429fb8eb61c10b1ad429f9b2db275e7f48ee3 | 2,307 | py | Python | Models/utils.py | weslai/ecg_classification | 61cb45849485129cf04ee97f458fdf731353fd4b | [
"MIT"
] | 1 | 2020-12-03T13:34:04.000Z | 2020-12-03T13:34:04.000Z | Models/utils.py | weslai/ecg_classification | 61cb45849485129cf04ee97f458fdf731353fd4b | [
"MIT"
] | null | null | null | Models/utils.py | weslai/ecg_classification | 61cb45849485129cf04ee97f458fdf731353fd4b | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
import itertools
import numpy as np
from sklearn.metrics import confusion_matrix
## be used to evaluate the model
## put the return to the plot_confusion_matrix
## confusion matrix
def plot_confusion_matrix(cm, classes,
normalize=False,
... | 32.041667 | 91 | 0.640225 |
48e43797c38281b4f9c9d4f57ea6a962850d4cc0 | 44,206 | py | Python | evapotranspiration/penman_monteith_daily.py | JRoehrig/evapotranspiration | aeec040273e15f93bb25ff850b33a90a41c65291 | [
"MIT"
] | 2 | 2021-08-07T10:38:41.000Z | 2022-03-02T07:34:11.000Z | evapotranspiration/penman_monteith_daily.py | JRoehrig/evapotranspiration | aeec040273e15f93bb25ff850b33a90a41c65291 | [
"MIT"
] | null | null | null | evapotranspiration/penman_monteith_daily.py | JRoehrig/evapotranspiration | aeec040273e15f93bb25ff850b33a90a41c65291 | [
"MIT"
] | null | null | null | import math
import numpy as np
import pandas as pd
def bulk_surface_resistance(self):
r"""Return (bulk) surface resistance (:math:`r_s`) *[s/m]* as defined in
`FAO 56 <http://www.fao.org/tempref/SD/Reserved/Agromet/PET/FAO_Irrigation_Drainage_Paper_56.pdf>`_
(eq. 5, p. 21):
.. mat... | 46.14405 | 120 | 0.58474 |
48e612645ef11a151beea876541ffc2a70be93e5 | 5,123 | py | Python | src/cnc-app-name/views.py | scotchoaf/cnc-skeleton | 2116bf3d61fc1ed834daeaa146f5730713300010 | [
"MIT"
] | null | null | null | src/cnc-app-name/views.py | scotchoaf/cnc-skeleton | 2116bf3d61fc1ed834daeaa146f5730713300010 | [
"MIT"
] | null | null | null | src/cnc-app-name/views.py | scotchoaf/cnc-skeleton | 2116bf3d61fc1ed834daeaa146f5730713300010 | [
"MIT"
] | 1 | 2019-04-08T14:54:12.000Z | 2019-04-08T14:54:12.000Z | # Copyright (c) 2018, Palo Alto Networks
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS... | 44.163793 | 111 | 0.728479 |
48e75715f9ebbd7bc9cad087839a0b649f005b70 | 1,312 | py | Python | tcc_server/emulatorRPi.py | MegaNo0body/tcc | 469824a8afc1cf846793212d42f6c8c43ee4b0bf | [
"MIT"
] | 1 | 2016-09-29T22:39:31.000Z | 2016-09-29T22:39:31.000Z | tcc_server/emulatorRPi.py | MegaNo0body/tcc | 469824a8afc1cf846793212d42f6c8c43ee4b0bf | [
"MIT"
] | null | null | null | tcc_server/emulatorRPi.py | MegaNo0body/tcc | 469824a8afc1cf846793212d42f6c8c43ee4b0bf | [
"MIT"
] | null | null | null | import sys
from time import sleep
from random import randint
from urllib.request import urlopen
from urllib.parse import urlencode
if len(sys.argv) != 2:
print('Por favor, usar: ' + sys.argv[0] + ' {idSensor}')
print('Exemplo: ' + sys.argv[0] + ' 8')
else:
sensorId = sys.argv[1]
URL_SERVICO = 'http://1... | 31.238095 | 77 | 0.51753 |
48e7717d4dc4d7ba6b003ee81bea9813e26ea8e2 | 1,487 | py | Python | sayn/logging/file_logger.py | robin-173/sayn | d1cf36b92fad6a1798b57ad80abb22e8386e0e86 | [
"Apache-2.0"
] | 105 | 2020-04-23T17:04:34.000Z | 2022-03-18T15:47:52.000Z | sayn/logging/file_logger.py | robin-173/sayn | d1cf36b92fad6a1798b57ad80abb22e8386e0e86 | [
"Apache-2.0"
] | 53 | 2020-06-12T14:41:12.000Z | 2022-01-24T13:04:58.000Z | sayn/logging/file_logger.py | robin-173/sayn | d1cf36b92fad6a1798b57ad80abb22e8386e0e86 | [
"Apache-2.0"
] | 9 | 2020-04-23T16:56:23.000Z | 2021-08-16T10:54:48.000Z | from pathlib import Path
import logging
from .logger import Logger
from .log_formatter import LogFormatter
| 28.056604 | 63 | 0.543376 |
48e84fceaf520fea1c5ef759977376465d7f8dcf | 1,514 | py | Python | tests/test_docs.py | gitter-badger/pygsuite | 536766c36f653edbc7585141f1c3327f508e19da | [
"MIT"
] | null | null | null | tests/test_docs.py | gitter-badger/pygsuite | 536766c36f653edbc7585141f1c3327f508e19da | [
"MIT"
] | null | null | null | tests/test_docs.py | gitter-badger/pygsuite | 536766c36f653edbc7585141f1c3327f508e19da | [
"MIT"
] | null | null | null | from pygsuite import DefaultFonts, TextStyle, Color
from pygsuite.docs.doc_elements.paragraph import Paragraph
BRIGHT_GREEN_HEX = "#72FF33"
| 33.644444 | 90 | 0.707398 |
48e92b16767155e8dc5662502fba6db4a07dc542 | 71,657 | py | Python | neutra/vae.py | dieterichlawson/google-research | 7ca9a612aa4239533c6ed8ef98543f9780d19f2b | [
"Apache-2.0"
] | 4 | 2020-02-04T16:23:45.000Z | 2021-08-30T11:56:01.000Z | neutra/vae.py | lceustc/google-research | bf793f31022db2636f42e132198ffe8bd9631b58 | [
"Apache-2.0"
] | 10 | 2020-09-26T00:19:12.000Z | 2022-03-12T00:04:29.000Z | neutra/vae.py | lceustc/google-research | bf793f31022db2636f42e132198ffe8bd9631b58 | [
"Apache-2.0"
] | 1 | 2020-02-29T05:06:38.000Z | 2020-02-29T05:06:38.000Z | # coding=utf-8
# Copyright 2019 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | 35.057241 | 124 | 0.651744 |
48e948236c66512a216844a7ad0e87904606f55a | 2,034 | py | Python | flask_oauth2_login/base.py | BasicBeluga/flask-oauth2-login | 5a12ec70bcea72b2de079c072213be54f29b70b7 | [
"MIT"
] | 42 | 2015-01-13T08:51:04.000Z | 2022-01-14T04:15:31.000Z | flask_oauth2_login/base.py | BasicBeluga/flask-oauth2-login | 5a12ec70bcea72b2de079c072213be54f29b70b7 | [
"MIT"
] | 5 | 2015-04-29T19:31:11.000Z | 2020-03-28T19:37:43.000Z | flask_oauth2_login/base.py | BasicBeluga/flask-oauth2-login | 5a12ec70bcea72b2de079c072213be54f29b70b7 | [
"MIT"
] | 28 | 2015-06-16T20:30:40.000Z | 2021-04-08T15:33:10.000Z | from flask import request, session, url_for
from requests_oauthlib import OAuth2Session
| 24.214286 | 77 | 0.675025 |
48ea7b107947ea8206fa8a2bda41ca826b065a52 | 7,530 | py | Python | segmentation/utils/transforms.py | voldemortX/DST-CBC | e392313c129f6814c1a1c0f20c0abbd5505c3d7d | [
"BSD-3-Clause"
] | 103 | 2020-04-21T01:25:16.000Z | 2022-03-24T07:45:45.000Z | segmentation/utils/transforms.py | voldemortX/DST-CBC | e392313c129f6814c1a1c0f20c0abbd5505c3d7d | [
"BSD-3-Clause"
] | 13 | 2021-03-24T06:52:21.000Z | 2022-01-18T08:17:50.000Z | segmentation/utils/transforms.py | voldemortX/DST-CBC | e392313c129f6814c1a1c0f20c0abbd5505c3d7d | [
"BSD-3-Clause"
] | 12 | 2020-04-29T02:33:11.000Z | 2021-12-28T07:59:20.000Z | # Mostly copied and modified from torch/vision/references/segmentation to support unlabeled data
# Copied functions from fmassa/vision-1 to support multi-dimensional masks loaded from numpy ndarray
import numpy as np
from PIL import Image
import random
import torch
import utils.functional as F
# For 2/3 dimensional t... | 34.541284 | 114 | 0.6 |
48ea83dadb4e88f0d593497119582f4e6d402985 | 9,036 | py | Python | server.py | drunkHatch/CMPUT404-assignment-webserver | 37336241ae790509804569834e2063893d37db44 | [
"Apache-2.0"
] | null | null | null | server.py | drunkHatch/CMPUT404-assignment-webserver | 37336241ae790509804569834e2063893d37db44 | [
"Apache-2.0"
] | null | null | null | server.py | drunkHatch/CMPUT404-assignment-webserver | 37336241ae790509804569834e2063893d37db44 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
import socketserver
import re
import socket
import datetime
import os
import mimetypes as MT
import sys
# Copyright 2013 Abram Hindle, Eddie Antonio Santos
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may o... | 34.888031 | 129 | 0.623174 |
48ebc333c8d0ba26cd1d7f0f9c59510601ab4ec4 | 1,788 | py | Python | cloudkitty/rating/hash/controllers/root.py | wanghuiict/cloudkitty | 11ff713042eb0354f497f7051130630c46860735 | [
"Apache-2.0"
] | 97 | 2015-10-18T02:53:17.000Z | 2022-03-07T05:15:39.000Z | cloudkitty/rating/hash/controllers/root.py | shanafang9/cloudkitty | 911c90569ccb09ecf0d7aa11a5a707c8ebda09cf | [
"Apache-2.0"
] | 1 | 2017-11-29T15:39:27.000Z | 2017-11-29T15:39:27.000Z | cloudkitty/rating/hash/controllers/root.py | shanafang9/cloudkitty | 911c90569ccb09ecf0d7aa11a5a707c8ebda09cf | [
"Apache-2.0"
] | 54 | 2015-10-27T10:55:02.000Z | 2022-02-18T08:23:19.000Z | # -*- coding: utf-8 -*-
# Copyright 2015 Objectif Libre
#
# 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 ... | 38.042553 | 78 | 0.758949 |
48ec30ea94720d1931e1f3786be697d0ca01359f | 8,431 | py | Python | .test/test/task2/Aufgabe1/python-lib/cuddlefish/docs/webdocs.py | sowinski/testsubtree | d09b72e6b366e8e29e038445a1fa6987b2456625 | [
"MIT"
] | null | null | null | .test/test/task2/Aufgabe1/python-lib/cuddlefish/docs/webdocs.py | sowinski/testsubtree | d09b72e6b366e8e29e038445a1fa6987b2456625 | [
"MIT"
] | null | null | null | .test/test/task2/Aufgabe1/python-lib/cuddlefish/docs/webdocs.py | sowinski/testsubtree | d09b72e6b366e8e29e038445a1fa6987b2456625 | [
"MIT"
] | null | null | null | import os, re, errno
import markdown
import cgi
from cuddlefish import packaging
from cuddlefish.docs import apirenderer
from cuddlefish._version import get_versions
INDEX_PAGE = '/doc/static-files/base.html'
BASE_URL_INSERTION_POINT = '<base '
VERSION_INSERTION_POINT = '<div id="version">'
THIRD_PARTY_PACKAGE_SUMMAR... | 44.373684 | 94 | 0.632428 |
48eca2b30f95acacb8513624eb0235e73603734b | 183 | py | Python | src/c3nav/site/templatetags/route_render.py | johnjohndoe/c3nav | a17f863a3512e305595c16b0300796b6bae81241 | [
"Apache-2.0"
] | 132 | 2016-11-12T01:45:23.000Z | 2022-03-08T15:17:10.000Z | src/c3nav/site/templatetags/route_render.py | johnjohndoe/c3nav | a17f863a3512e305595c16b0300796b6bae81241 | [
"Apache-2.0"
] | 66 | 2016-09-29T09:46:19.000Z | 2022-03-11T23:26:18.000Z | src/c3nav/site/templatetags/route_render.py | johnjohndoe/c3nav | a17f863a3512e305595c16b0300796b6bae81241 | [
"Apache-2.0"
] | 42 | 2016-09-29T08:34:57.000Z | 2022-03-08T15:17:15.000Z | from django import template
register = template.Library()
| 13.071429 | 29 | 0.726776 |
48edc6b7f87e0875d85de78f96a9bd1a71a88a84 | 9,827 | py | Python | coax/experience_replay/_prioritized.py | sleepy-owl/coax | 37c3e667b81537768beb25bb59d0f05124624128 | [
"MIT"
] | null | null | null | coax/experience_replay/_prioritized.py | sleepy-owl/coax | 37c3e667b81537768beb25bb59d0f05124624128 | [
"MIT"
] | null | null | null | coax/experience_replay/_prioritized.py | sleepy-owl/coax | 37c3e667b81537768beb25bb59d0f05124624128 | [
"MIT"
] | null | null | null | # ------------------------------------------------------------------------------------------------ #
# MIT License #
# #
# Copyright (c) 2... | 38.996032 | 100 | 0.596418 |
48edd7f48e568a644eaeb1b10b708e137aa7c9cf | 433 | py | Python | src/OTLMOW/OEFModel/Classes/Wilddet.py | davidvlaminck/OTLClassPython | 71330afeb37c3ea6d9981f521ff8f4a3f8b946fc | [
"MIT"
] | 2 | 2022-02-01T08:58:11.000Z | 2022-02-08T13:35:17.000Z | src/OTLMOW/OEFModel/Classes/Wilddet.py | davidvlaminck/OTLMOW | 71330afeb37c3ea6d9981f521ff8f4a3f8b946fc | [
"MIT"
] | null | null | null | src/OTLMOW/OEFModel/Classes/Wilddet.py | davidvlaminck/OTLMOW | 71330afeb37c3ea6d9981f521ff8f4a3f8b946fc | [
"MIT"
] | null | null | null | # coding=utf-8
from OTLMOW.OEFModel.EMObject import EMObject
# Generated with OEFClassCreator. To modify: extend, do not edit
| 28.866667 | 117 | 0.745958 |
48eeffaa35d544f23807d7f9663c5e18d1819a1f | 16,332 | py | Python | test/python/testworkflow.py | kokizzu/txtai | 1a3848bac006e9963ad2eef466405f8da644fecb | [
"Apache-2.0"
] | null | null | null | test/python/testworkflow.py | kokizzu/txtai | 1a3848bac006e9963ad2eef466405f8da644fecb | [
"Apache-2.0"
] | 47 | 2021-10-02T22:48:03.000Z | 2021-12-29T02:36:20.000Z | test/python/testworkflow.py | kokizzu/txtai | 1a3848bac006e9963ad2eef466405f8da644fecb | [
"Apache-2.0"
] | null | null | null | """
Workflow module tests
"""
import contextlib
import glob
import io
import os
import tempfile
import sys
import unittest
import numpy as np
import torch
from txtai.api import API
from txtai.embeddings import Documents, Embeddings
from txtai.pipeline import Nop, Segmentation, Summary, Translation, Textractor
from t... | 30.873346 | 146 | 0.558903 |
48f141e3c4e406a1ed8e50060eb75658e2cb4aab | 202 | py | Python | apps/summary/urls.py | sotkonstantinidis/testcircle | 448aa2148fbc2c969e60f0b33ce112d4740a8861 | [
"Apache-2.0"
] | 3 | 2019-02-24T14:24:43.000Z | 2019-10-24T18:51:32.000Z | apps/summary/urls.py | sotkonstantinidis/testcircle | 448aa2148fbc2c969e60f0b33ce112d4740a8861 | [
"Apache-2.0"
] | 17 | 2017-03-14T10:55:56.000Z | 2022-03-11T23:20:19.000Z | apps/summary/urls.py | sotkonstantinidis/testcircle | 448aa2148fbc2c969e60f0b33ce112d4740a8861 | [
"Apache-2.0"
] | 2 | 2016-02-01T06:32:40.000Z | 2019-09-06T04:33:50.000Z | from django.conf.urls import url
from .views import SummaryPDFCreateView
urlpatterns = [
url(r'^(?P<id>[\d]+)/$',
SummaryPDFCreateView.as_view(),
name='questionnaire_summary'),
]
| 18.363636 | 39 | 0.658416 |
48f3e0cd5e4cb55eec34f20d3487909f95548f7a | 1,418 | py | Python | utipy/array/blend.py | LudvigOlsen/utipy | c287f7eed15b3591118bba49ecdfc2b2605f59a0 | [
"MIT"
] | null | null | null | utipy/array/blend.py | LudvigOlsen/utipy | c287f7eed15b3591118bba49ecdfc2b2605f59a0 | [
"MIT"
] | 1 | 2022-02-16T15:24:33.000Z | 2022-02-16T15:24:33.000Z | utipy/array/blend.py | LudvigOlsen/utipy | c287f7eed15b3591118bba49ecdfc2b2605f59a0 | [
"MIT"
] | null | null | null | """
@author: ludvigolsen
"""
from typing import Union
import numpy as np
import pandas as pd
from utipy.utils.check_instance import check_instance
from utipy.utils.convert_to_type import convert_to_type
def blend(x1: Union[list, np.ndarray, pd.Series], x2: Union[list, np.ndarray, pd.Series], amount: float = 0.5) -> ... | 24.448276 | 149 | 0.608604 |
48f4b8e6c0c1a95b21e6fbc67429a32685a3063d | 126 | py | Python | output/models/ms_data/regex/hangul_compatibility_jamo_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 1 | 2021-08-14T17:59:21.000Z | 2021-08-14T17:59:21.000Z | output/models/ms_data/regex/hangul_compatibility_jamo_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 4 | 2020-02-12T21:30:44.000Z | 2020-04-15T20:06:46.000Z | output/models/ms_data/regex/hangul_compatibility_jamo_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | null | null | null | from output.models.ms_data.regex.hangul_compatibility_jamo_xsd.hangul_compatibility_jamo import Doc
__all__ = [
"Doc",
]
| 21 | 99 | 0.801587 |
48f68e5109bfeba6516e554517563cbef752a170 | 519 | py | Python | ex082.py | favitoria/python123 | 99074c309b700f48ddc6aa0811a1891145281af7 | [
"MIT"
] | null | null | null | ex082.py | favitoria/python123 | 99074c309b700f48ddc6aa0811a1891145281af7 | [
"MIT"
] | null | null | null | ex082.py | favitoria/python123 | 99074c309b700f48ddc6aa0811a1891145281af7 | [
"MIT"
] | null | null | null | resposta = 'Ss'
numeros = 0
listaTODOS = []
listaPAR = []
listaIMPAR = []
while resposta != 'N':
numeros = int(input('Digite um nmero: '))
resposta = str(input('Deseja continuar [S/N]? '))
if numeros % 2 == 0:
listaPAR.append(numeros)
elif numeros % 2 == 1:
listaIMPAR.append(numeros)
... | 30.529412 | 58 | 0.660886 |
48f6af2a7976b7669c6376018cbf7149ae87451d | 2,218 | py | Python | CodingInterview2/29_PrintMatrix/print_matrix.py | hscspring/TheAlgorithms-Python | 5c2faea1d2d25a9a81a4786e053b0cc58ab46c6f | [
"MIT"
] | 10 | 2020-07-06T11:00:58.000Z | 2022-01-29T09:25:24.000Z | CodingInterview2/29_PrintMatrix/print_matrix.py | hscspring/TheAlgorithms-Python | 5c2faea1d2d25a9a81a4786e053b0cc58ab46c6f | [
"MIT"
] | null | null | null | CodingInterview2/29_PrintMatrix/print_matrix.py | hscspring/TheAlgorithms-Python | 5c2faea1d2d25a9a81a4786e053b0cc58ab46c6f | [
"MIT"
] | 3 | 2020-07-13T06:39:23.000Z | 2020-08-15T16:29:48.000Z | """
29
"""
def print_matrix_clockwisely(matrix: list) -> list:
"""
Print the given matrix clockwesely.
Parameters
-----------
matrix: list[list]
the given matrix.
Returns
---------
out: list
the clockwise order of the matrix.
Notes
------
"""
if ... | 21.533981 | 77 | 0.540126 |
48f6c64933693697a368fb1d2ae925d6fe4cb255 | 1,170 | py | Python | migrations/versions/ee5315dcf3e1_.py | wildintellect/tasking-manager | 373fb231404628e6ae9a1838539b9c3cb23ad73c | [
"BSD-2-Clause"
] | 3 | 2018-04-24T08:12:31.000Z | 2020-09-02T18:11:21.000Z | migrations/versions/ee5315dcf3e1_.py | wildintellect/tasking-manager | 373fb231404628e6ae9a1838539b9c3cb23ad73c | [
"BSD-2-Clause"
] | 28 | 2019-01-04T17:39:00.000Z | 2021-05-06T23:06:24.000Z | migrations/versions/ee5315dcf3e1_.py | wildintellect/tasking-manager | 373fb231404628e6ae9a1838539b9c3cb23ad73c | [
"BSD-2-Clause"
] | 3 | 2020-02-29T20:46:09.000Z | 2020-11-20T19:44:04.000Z | """empty message
Revision ID: ee5315dcf3e1
Revises: 9f5b73af01db
Create Date: 2017-05-24 10:39:46.586986
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'ee5315dcf3e1'
down_revision = '9f5b73af01db'
branch_labels = None
depends_on = None
| 31.621622 | 87 | 0.694017 |
48f9216cd7b0c9c64c3f0cc8145822d20126a1a1 | 572 | py | Python | python/random-videogame-generator.py | iamashiq/Hacktoberfest2021-2 | 9823996e9e97a25fcf70abc6fd6c55e4b60da568 | [
"MIT"
] | 6 | 2021-10-04T07:57:24.000Z | 2021-11-15T13:35:21.000Z | python/random-videogame-generator.py | iamashiq/Hacktoberfest2021-2 | 9823996e9e97a25fcf70abc6fd6c55e4b60da568 | [
"MIT"
] | 2 | 2021-10-14T16:55:50.000Z | 2021-10-31T12:17:20.000Z | python/random-videogame-generator.py | iamashiq/Hacktoberfest2021-2 | 9823996e9e97a25fcf70abc6fd6c55e4b60da568 | [
"MIT"
] | 33 | 2021-10-03T05:00:58.000Z | 2021-11-05T19:49:19.000Z | print("Are you trying to find new videogames to play?")
print("let me help you!")
print("do you like shooting games, yes or no")
shooting=input()
if shooting = "yes"
print("do you like battle royale games?")
br=input()
if br="yes"
print("you should try out call of duty!")
else if br="no"
print("... | 30.105263 | 55 | 0.636364 |
48f9edbd6a5a7ba5a520ddc41c7a0b91f9666bf5 | 1,382 | py | Python | cosmic_ray/operators/unary_operator_replacement.py | rob-smallshire/cosmic-ray | 4fd751b38eee30568f8366e09452d7aa60be4e26 | [
"MIT"
] | null | null | null | cosmic_ray/operators/unary_operator_replacement.py | rob-smallshire/cosmic-ray | 4fd751b38eee30568f8366e09452d7aa60be4e26 | [
"MIT"
] | null | null | null | cosmic_ray/operators/unary_operator_replacement.py | rob-smallshire/cosmic-ray | 4fd751b38eee30568f8366e09452d7aa60be4e26 | [
"MIT"
] | null | null | null | """Implementation of the unary-operator-replacement operator.
"""
import ast
from .operator import Operator
from ..util import build_mutations
# None indicates we want to delete the operator
OPERATORS = (ast.UAdd, ast.USub, ast.Invert, ast.Not, None)
| 28.791667 | 78 | 0.607815 |
48fa5657a82772ca80f844d0c1f8bca709ceaf35 | 2,069 | py | Python | src/icolos/core/workflow_steps/calculation/rmsd.py | jharrymoore/Icolos | c60cc00c34208ab7011d41d52a74651763673e7a | [
"Apache-2.0"
] | 11 | 2022-01-30T14:36:13.000Z | 2022-03-22T09:40:57.000Z | src/icolos/core/workflow_steps/calculation/rmsd.py | jharrymoore/Icolos | c60cc00c34208ab7011d41d52a74651763673e7a | [
"Apache-2.0"
] | 2 | 2022-03-23T07:56:49.000Z | 2022-03-24T12:01:42.000Z | src/icolos/core/workflow_steps/calculation/rmsd.py | jharrymoore/Icolos | c60cc00c34208ab7011d41d52a74651763673e7a | [
"Apache-2.0"
] | 8 | 2022-01-28T10:32:31.000Z | 2022-03-22T09:40:59.000Z | from typing import List
from pydantic import BaseModel
from icolos.core.containers.compound import Conformer, unroll_conformers
from icolos.utils.enums.step_enums import StepRMSDEnum, StepDataManipulationEnum
from icolos.core.workflow_steps.step import _LE
from icolos.core.workflow_steps.calculation.base import StepCa... | 43.104167 | 118 | 0.669889 |
48fb1aa9e5e10603d8a878537cb85772b452f285 | 468 | py | Python | iot/iot_portal/doctype/iot_homepage/iot_homepage.py | srdgame/symlink_iot | 6ec524498cccaf2f49f7264a3b284a8956bd430c | [
"MIT"
] | 4 | 2017-09-26T09:21:19.000Z | 2021-12-22T10:26:36.000Z | iot/iot_portal/doctype/iot_homepage/iot_homepage.py | srdgame/symlink_iot | 6ec524498cccaf2f49f7264a3b284a8956bd430c | [
"MIT"
] | 1 | 2017-11-21T20:53:10.000Z | 2017-12-11T02:17:06.000Z | iot/iot_portal/doctype/iot_homepage/iot_homepage.py | srdgame/symlink_iot | 6ec524498cccaf2f49f7264a3b284a8956bd430c | [
"MIT"
] | 9 | 2017-03-17T04:12:22.000Z | 2022-03-21T09:33:11.000Z | # -*- coding: utf-8 -*-
# Copyright (c) 2017, Dirk Chang and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe.model.document import Document
from frappe.website.utils import delete_page_cache
| 31.2 | 84 | 0.782051 |
48fb52f8c130468ec6ba0fdb93a761de09a44b65 | 368 | py | Python | src/garage/envs/env_spec.py | Maltimore/garage | a3f44b37eeddca37d157766a9a72e8772f104bcd | [
"MIT"
] | 2 | 2020-03-15T14:35:15.000Z | 2021-02-15T16:38:00.000Z | src/garage/envs/env_spec.py | Maltimore/garage | a3f44b37eeddca37d157766a9a72e8772f104bcd | [
"MIT"
] | null | null | null | src/garage/envs/env_spec.py | Maltimore/garage | a3f44b37eeddca37d157766a9a72e8772f104bcd | [
"MIT"
] | 1 | 2020-02-24T03:04:23.000Z | 2020-02-24T03:04:23.000Z | """EnvSpec class."""
| 23 | 73 | 0.668478 |
48fc04ddecaf2a0349002da2c688a1f9e69caacb | 105 | py | Python | exercises/exe41 - 50/exe047.py | thomas-rohde/Classes-Python | f862995510b7aabf68bc14aecf815f597034d8a1 | [
"MIT"
] | null | null | null | exercises/exe41 - 50/exe047.py | thomas-rohde/Classes-Python | f862995510b7aabf68bc14aecf815f597034d8a1 | [
"MIT"
] | null | null | null | exercises/exe41 - 50/exe047.py | thomas-rohde/Classes-Python | f862995510b7aabf68bc14aecf815f597034d8a1 | [
"MIT"
] | null | null | null | t = int(input('Digite um n: '))
for t0 in range(1, 11):
print('{} X {} = {}'.format(t, t0, t * t0))
| 26.25 | 47 | 0.495238 |
48fe1f175aa02923066c86fda95e2c0081a49955 | 98,484 | py | Python | pysnmp-with-texts/CISCO-DIAMETER-BASE-PROTOCOL-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/CISCO-DIAMETER-BASE-PROTOCOL-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/CISCO-DIAMETER-BASE-PROTOCOL-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module CISCO-DIAMETER-BASE-PROTOCOL-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-DIAMETER-BASE-PROTOCOL-MIB
# Produced by pysmi-0.3.4 at Wed May 1 11:54:20 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Pyt... | 174.617021 | 9,504 | 0.799176 |
48ff11c606361c503d4ae242b33d2e5d2c9cf908 | 1,337 | py | Python | py_build/funcs.py | Aesonus/py-build | 790a750492b0f6ecd52f6f564d3aa4522e255406 | [
"MIT"
] | null | null | null | py_build/funcs.py | Aesonus/py-build | 790a750492b0f6ecd52f6f564d3aa4522e255406 | [
"MIT"
] | null | null | null | py_build/funcs.py | Aesonus/py-build | 790a750492b0f6ecd52f6f564d3aa4522e255406 | [
"MIT"
] | null | null | null | from __future__ import annotations
from typing import Callable, Sequence, TYPE_CHECKING
import functools
if TYPE_CHECKING:
from .build import BuildStepCallable
def print_step_name(formatter=split_step_name, args: Sequence=()):
"""Gets a decorator that formats the name of the build step and prints it"""
fmt... | 33.425 | 80 | 0.682872 |
48ff6f626f5b448c258b452afb93725c786ec289 | 3,713 | py | Python | src/jellyroll/managers.py | jacobian-archive/jellyroll | 02751b3108b6f6ae732a801d42ca3c85cc759978 | [
"BSD-3-Clause"
] | 3 | 2015-03-02T06:34:45.000Z | 2016-11-24T18:53:59.000Z | src/jellyroll/managers.py | jacobian/jellyroll | 02751b3108b6f6ae732a801d42ca3c85cc759978 | [
"BSD-3-Clause"
] | null | null | null | src/jellyroll/managers.py | jacobian/jellyroll | 02751b3108b6f6ae732a801d42ca3c85cc759978 | [
"BSD-3-Clause"
] | null | null | null | import datetime
from django.db import models
from django.db.models import signals
from django.contrib.contenttypes.models import ContentType
from django.utils.encoding import force_unicode
from tagging.fields import TagField
| 35.361905 | 122 | 0.578777 |
5b011773dfebfb2a161d58f218cd80c611a2ea9c | 578 | py | Python | app_metrics.py | GSH-LAN/byceps | ab8918634e90aaa8574bd1bb85627759cef122fe | [
"BSD-3-Clause"
] | 33 | 2018-01-16T02:04:51.000Z | 2022-03-22T22:57:29.000Z | app_metrics.py | GSH-LAN/byceps | ab8918634e90aaa8574bd1bb85627759cef122fe | [
"BSD-3-Clause"
] | 7 | 2019-06-16T22:02:03.000Z | 2021-10-02T13:45:31.000Z | app_metrics.py | GSH-LAN/byceps | ab8918634e90aaa8574bd1bb85627759cef122fe | [
"BSD-3-Clause"
] | 14 | 2019-06-01T21:39:24.000Z | 2022-03-14T17:56:43.000Z | """
metrics application instance
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:Copyright: 2006-2021 Jochen Kupperschmidt
:License: Revised BSD (see `LICENSE` file for details)
"""
import os
from byceps.config import ConfigurationError
from byceps.metrics.application import create_app
ENV_VAR_NAME_DATABASE_URI = 'DATABASE_URI'
d... | 22.230769 | 79 | 0.730104 |
5b0196e4037e9465e0b4a7171647fde301968ecb | 1,927 | py | Python | mysql_tests/test_schema.py | maestro-1/gino | 3f06b4a9948a7657044686ae738ef3509b4729e1 | [
"BSD-3-Clause"
] | 1,376 | 2019-12-26T23:41:36.000Z | 2022-03-31T11:08:04.000Z | mysql_tests/test_schema.py | maestro-1/gino | 3f06b4a9948a7657044686ae738ef3509b4729e1 | [
"BSD-3-Clause"
] | 522 | 2017-07-22T00:49:06.000Z | 2019-12-25T17:02:22.000Z | mysql_tests/test_schema.py | maestro-1/gino | 3f06b4a9948a7657044686ae738ef3509b4729e1 | [
"BSD-3-Clause"
] | 89 | 2020-01-02T02:12:37.000Z | 2022-03-21T14:14:51.000Z | from enum import Enum
import pytest
import gino
from gino.dialects.aiomysql import AsyncEnum
pytestmark = pytest.mark.asyncio
db = gino.Gino()
blog_seq = db.Sequence("blog_seq", metadata=db, schema="schema_test")
| 30.109375 | 78 | 0.701609 |
5b0240511c5c9c995140e0add95f3c10735d13f4 | 903 | py | Python | solutions/29-distinct-powers.py | whitegreyblack/euler | bd8e7ca444eeb51b3c923f1235906054c507ecc8 | [
"MIT"
] | null | null | null | solutions/29-distinct-powers.py | whitegreyblack/euler | bd8e7ca444eeb51b3c923f1235906054c507ecc8 | [
"MIT"
] | null | null | null | solutions/29-distinct-powers.py | whitegreyblack/euler | bd8e7ca444eeb51b3c923f1235906054c507ecc8 | [
"MIT"
] | null | null | null | # problem 29
# Distinct powers
"""
Consider all integer combinations of ab for 2 a 5 and 2 b 5:
2**2=4, 2**3=8, 2**4=16, 2**5=32
3**2=9, 3**3=27, 3**4=81, 3**5=243
4**2=16, 4**3=64, 4**4=256, 4**5=1024
5**2=25, 5**3=125, 5**4=625, 5**5=3125
If they are then placed in numerical order, with any repeats removed,
we... | 25.083333 | 70 | 0.499446 |
5b0340e8c87e83abc062cbdb7773314cbba482e5 | 2,633 | py | Python | flexget/plugins/input/input_csv.py | metaMMA/Flexget | a38986422461d7935ead1e2b4ed4c88bcd0a90f5 | [
"MIT"
] | null | null | null | flexget/plugins/input/input_csv.py | metaMMA/Flexget | a38986422461d7935ead1e2b4ed4c88bcd0a90f5 | [
"MIT"
] | 1 | 2017-10-09T23:06:44.000Z | 2017-10-09T23:06:44.000Z | flexget/plugins/input/input_csv.py | metaMMA/Flexget | a38986422461d7935ead1e2b4ed4c88bcd0a90f5 | [
"MIT"
] | null | null | null | from __future__ import unicode_literals, division, absolute_import
from builtins import * # noqa pylint: disable=unused-import, redefined-builtin
from future.utils import PY3
import logging
import csv
from requests import RequestException
from flexget import plugin
from flexget.entry import Entry
from flexget.event... | 29.255556 | 87 | 0.565515 |
5b03dd11f975d3847001932de43a5378848ce948 | 2,043 | py | Python | gdget.py | tienfuc/gdcmdtools | 357ada27cdb6ef0cc155b8fb52b6f6368cd1f277 | [
"BSD-2-Clause"
] | 29 | 2015-09-10T08:00:30.000Z | 2021-12-24T01:15:53.000Z | gdget.py | tienfuc/gdcmdtools | 357ada27cdb6ef0cc155b8fb52b6f6368cd1f277 | [
"BSD-2-Clause"
] | 56 | 2015-09-10T02:56:16.000Z | 2020-10-06T13:17:21.000Z | gdget.py | tienfuc/gdcmdtools | 357ada27cdb6ef0cc155b8fb52b6f6368cd1f277 | [
"BSD-2-Clause"
] | 4 | 2015-09-30T03:35:33.000Z | 2019-07-07T14:19:26.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import re
from gdcmdtools.base import BASE_INFO
from gdcmdtools.base import DEBUG_LEVEL
from gdcmdtools.get import GDGet
from gdcmdtools.get import export_format
import argparse
from argparse import RawTextHelpFormatter
from pprint import pprint
import logg... | 24.614458 | 93 | 0.603035 |
5b042f6383e41d397423d2d9b9c278a9f5788a29 | 325 | py | Python | Lotus/controller/common.py | Jayin/Lotus | 6a4791d81b29158a1a83aa6a5d607ab5d677dba4 | [
"Apache-2.0"
] | null | null | null | Lotus/controller/common.py | Jayin/Lotus | 6a4791d81b29158a1a83aa6a5d607ab5d677dba4 | [
"Apache-2.0"
] | null | null | null | Lotus/controller/common.py | Jayin/Lotus | 6a4791d81b29158a1a83aa6a5d607ab5d677dba4 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from Lotus.app import app
from flask import render_template
| 16.25 | 38 | 0.713846 |
5b062f73819a8130b2460252ff5ee938a80ac7e2 | 8,261 | py | Python | src/retrocookie/git.py | cjolowicz/retrocookie | bc15dd46070ce50df21eeb016a385529d601f2b0 | [
"MIT"
] | 15 | 2020-06-21T14:35:42.000Z | 2022-03-30T15:48:55.000Z | src/retrocookie/git.py | cjolowicz/retrocookie | bc15dd46070ce50df21eeb016a385529d601f2b0 | [
"MIT"
] | 223 | 2020-05-22T14:35:05.000Z | 2022-03-28T00:19:23.000Z | src/retrocookie/git.py | cjolowicz/retrocookie | bc15dd46070ce50df21eeb016a385529d601f2b0 | [
"MIT"
] | 4 | 2020-11-19T12:55:01.000Z | 2022-03-15T14:24:25.000Z | """Git interface."""
from __future__ import annotations
import contextlib
import functools
import operator
import re
import subprocess # noqa: S404
from dataclasses import dataclass
from dataclasses import field
from pathlib import Path
from typing import Any
from typing import cast
from typing import Iterator
from t... | 30.824627 | 86 | 0.587459 |
5b084682efe35e9ca46aead0d385f2c28ccda23b | 5,630 | py | Python | apps/user/views.py | awsbreathpanda/dailyfresh | c218cdc3ea261b695ff00b6781ba3040f5d06eff | [
"MIT"
] | null | null | null | apps/user/views.py | awsbreathpanda/dailyfresh | c218cdc3ea261b695ff00b6781ba3040f5d06eff | [
"MIT"
] | 7 | 2021-03-30T14:18:30.000Z | 2022-01-13T03:13:37.000Z | apps/user/views.py | awsbreathpanda/dailyfresh | c218cdc3ea261b695ff00b6781ba3040f5d06eff | [
"MIT"
] | null | null | null | from django.shortcuts import redirect
from django.contrib.auth import authenticate, login, logout
from celery_tasks.tasks import celery_send_mail
from apps.user.models import User
import re
from django.shortcuts import render
from django.views import View
from utils.security import get_user_token, get_activation_link, ... | 31.80791 | 83 | 0.59325 |
5b08fda32750d87556f3ccf00e2fba375865e05c | 2,666 | py | Python | heatzy/pilote_v1.py | Devotics/heatzy-home-hassistant | 34ef71604d10b1d45be4cfb17d811bdd33042ce7 | [
"MIT"
] | 22 | 2019-03-07T22:51:12.000Z | 2021-03-06T12:14:50.000Z | heatzy/pilote_v1.py | Devotics/heatzy-home-hassistant | 34ef71604d10b1d45be4cfb17d811bdd33042ce7 | [
"MIT"
] | 15 | 2019-03-07T13:04:11.000Z | 2021-03-11T21:34:34.000Z | heatzy/pilote_v1.py | Devotics/heatzy-home-hassistant | 34ef71604d10b1d45be4cfb17d811bdd33042ce7 | [
"MIT"
] | 7 | 2019-11-17T11:01:50.000Z | 2021-02-24T18:13:28.000Z | from homeassistant.components.climate import ClimateEntity
from homeassistant.components.climate.const import (HVAC_MODE_AUTO,
PRESET_AWAY,
PRESET_COMFORT, PRESET_ECO,
... | 27.484536 | 79 | 0.577269 |
5b0af9dfbe74e34130cf9a393f33916249893c28 | 8,315 | py | Python | kubernetes-the-hard-way/system/collections/ansible_collections/community/general/plugins/modules/cloud/misc/proxmox_template.py | jkroepke/homelab | ffdd849e39b52972870f5552e734fd74cb1254a1 | [
"Apache-2.0"
] | 5 | 2020-12-16T21:42:09.000Z | 2022-03-28T16:04:32.000Z | kubernetes-the-hard-way/system/collections/ansible_collections/community/general/plugins/modules/cloud/misc/proxmox_template.py | jkroepke/kubernetes-the-hard-way | 70fd096a04addec0777744c9731a4e3fbdc40c8f | [
"Apache-2.0"
] | null | null | null | kubernetes-the-hard-way/system/collections/ansible_collections/community/general/plugins/modules/cloud/misc/proxmox_template.py | jkroepke/kubernetes-the-hard-way | 70fd096a04addec0777744c9731a4e3fbdc40c8f | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
#
# Copyright: Ansible Project
#
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
DOCUMENTATION = '''
---
module: proxmox_template
short_description: management of OS te... | 33.26 | 138 | 0.657486 |
5b0b336675387a3e79e4c5c116c3b8865c4ef0c0 | 9,024 | py | Python | polling_stations/apps/councils/management/commands/import_councils.py | DemocracyClub/UK-Polling-Stations | d5c428fc7fbccf0c13a84fa0045dfd332b2879e7 | [
"BSD-3-Clause"
] | 29 | 2015-03-10T08:41:34.000Z | 2022-01-12T08:51:38.000Z | polling_stations/apps/councils/management/commands/import_councils.py | DemocracyClub/UK-Polling-Stations | d5c428fc7fbccf0c13a84fa0045dfd332b2879e7 | [
"BSD-3-Clause"
] | 4,112 | 2015-04-01T21:27:38.000Z | 2022-03-31T19:22:11.000Z | polling_stations/apps/councils/management/commands/import_councils.py | DemocracyClub/UK-Polling-Stations | d5c428fc7fbccf0c13a84fa0045dfd332b2879e7 | [
"BSD-3-Clause"
] | 31 | 2015-03-18T14:52:50.000Z | 2022-02-24T10:31:07.000Z | import json
from html import unescape
import requests
from django.apps import apps
from django.contrib.gis.geos import GEOSGeometry, MultiPolygon, Polygon
from django.conf import settings
from django.core.management.base import BaseCommand
from requests.exceptions import HTTPError
from retry import retry
from councils... | 37.6 | 275 | 0.614251 |
5b0b4a59e216a0cba015910bd19bb58090619801 | 3,693 | py | Python | saleor/webhook/observability/payload_schema.py | DevPoke/saleor | ced3a2249a18031f9f593e71d1d18aa787ec1060 | [
"CC-BY-4.0"
] | null | null | null | saleor/webhook/observability/payload_schema.py | DevPoke/saleor | ced3a2249a18031f9f593e71d1d18aa787ec1060 | [
"CC-BY-4.0"
] | null | null | null | saleor/webhook/observability/payload_schema.py | DevPoke/saleor | ced3a2249a18031f9f593e71d1d18aa787ec1060 | [
"CC-BY-4.0"
] | null | null | null | from datetime import datetime
from enum import Enum
from json.encoder import ESCAPE_ASCII, ESCAPE_DCT # type: ignore
from typing import List, Optional, Tuple, TypedDict
HttpHeaders = List[Tuple[str, str]]
| 24.296053 | 79 | 0.642296 |
5b0e8250fd1078639a824b073c3ab62b92fe28cf | 4,537 | py | Python | NMTK_apps/NMTK_server/wms/djpaste.py | bhargavasana/nmtk | 9bebfcc4b43c28a1f2b2574060ea3195fca2c7dd | [
"Unlicense"
] | null | null | null | NMTK_apps/NMTK_server/wms/djpaste.py | bhargavasana/nmtk | 9bebfcc4b43c28a1f2b2574060ea3195fca2c7dd | [
"Unlicense"
] | null | null | null | NMTK_apps/NMTK_server/wms/djpaste.py | bhargavasana/nmtk | 9bebfcc4b43c28a1f2b2574060ea3195fca2c7dd | [
"Unlicense"
] | null | null | null | # (c) 2013 Chander Ganesan and contributors; written to work with Django and Paste (http://pythonpaste.org)
# Paste CGI "middleware" for Django by Chander Ganesan <chander@otg-nc.com>
# Open Technology Group, Inc <http://www.otg-nc.com>
# Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.ph... | 36.007937 | 107 | 0.561384 |
5b0f67ce020d1273d176ad58ddcab8801ec9c7f2 | 181 | py | Python | Ago-Dic-2019/JOSE ONOFRE/PRACTICAS/Practica1/RestaurantSeat.py | Arbupa/DAS_Sistemas | 52263ab91436b2e5a24ce6f8493aaa2e2fe92fb1 | [
"MIT"
] | 41 | 2017-09-26T09:36:32.000Z | 2022-03-19T18:05:25.000Z | Ago-Dic-2019/JOSE ONOFRE/PRACTICAS/Practica1/RestaurantSeat.py | Arbupa/DAS_Sistemas | 52263ab91436b2e5a24ce6f8493aaa2e2fe92fb1 | [
"MIT"
] | 67 | 2017-09-11T05:06:12.000Z | 2022-02-14T04:44:04.000Z | Ago-Dic-2019/JOSE ONOFRE/PRACTICAS/Practica1/RestaurantSeat.py | Arbupa/DAS_Sistemas | 52263ab91436b2e5a24ce6f8493aaa2e2fe92fb1 | [
"MIT"
] | 210 | 2017-09-01T00:10:08.000Z | 2022-03-19T18:05:12.000Z | cantidad= input("Cuantas personas van a cenar?")
cant = int(cantidad)
print(cant)
if cant > 8:
print("Lo siento, tendran que esperar")
else:
print("La mesa esta lista")
| 15.083333 | 48 | 0.674033 |
5b0faab2d16278cb33dcd52c6711c4e057f78b52 | 7,424 | py | Python | build/piman.app/pysnmp/carrier/asyncore/dgram/base.py | jackgisel/team-athens | 91e2aa810c0064f8b6b39ee53c3b05f037e0aeb0 | [
"Apache-2.0"
] | null | null | null | build/piman.app/pysnmp/carrier/asyncore/dgram/base.py | jackgisel/team-athens | 91e2aa810c0064f8b6b39ee53c3b05f037e0aeb0 | [
"Apache-2.0"
] | null | null | null | build/piman.app/pysnmp/carrier/asyncore/dgram/base.py | jackgisel/team-athens | 91e2aa810c0064f8b6b39ee53c3b05f037e0aeb0 | [
"Apache-2.0"
] | null | null | null | #
# This file is part of pysnmp software.
#
# Copyright (c) 2005-2019, Ilya Etingof <etingof@gmail.com>
# License: http://snmplabs.com/pysnmp/license.html
#
import socket
import errno
import sys
from pysnmp.carrier.asyncore.base import AbstractSocketTransport
from pysnmp.carrier import sockfix, sockmsg, error
from pysn... | 40.791209 | 237 | 0.630119 |
5b10e569de8510acb457502268786c36584d12b7 | 5,539 | py | Python | src/coreclr/scripts/superpmi-replay.py | JimmyCushnie/runtime | b7eb82871f1d742efb444873e11dd6241cea73d2 | [
"MIT"
] | 2 | 2021-05-04T11:27:27.000Z | 2021-06-18T14:04:08.000Z | src/coreclr/scripts/superpmi-replay.py | JimmyCushnie/runtime | b7eb82871f1d742efb444873e11dd6241cea73d2 | [
"MIT"
] | 18 | 2019-12-03T00:21:59.000Z | 2022-01-30T04:45:58.000Z | src/coreclr/scripts/superpmi-replay.py | JimmyCushnie/runtime | b7eb82871f1d742efb444873e11dd6241cea73d2 | [
"MIT"
] | 2 | 2022-01-23T12:24:04.000Z | 2022-02-07T15:44:03.000Z | #!/usr/bin/env python3
#
# Licensed to the .NET Foundation under one or more agreements.
# The .NET Foundation licenses this file to you under the MIT license.
#
##
# Title : superpmi_setup.py
#
# Notes:
#
# Script to run "superpmi replay" for various collections under various COMPlus_JitStressRegs value.... | 37.938356 | 118 | 0.609677 |
5b10fde1a0b02a1e7f85ed42e2bfe8b97109fa80 | 514 | py | Python | parse_cookie.py | olnikiforov/hillel | 911bb94169aa277932e346e564e5efd69073d634 | [
"MIT"
] | null | null | null | parse_cookie.py | olnikiforov/hillel | 911bb94169aa277932e346e564e5efd69073d634 | [
"MIT"
] | 1 | 2021-04-01T18:56:38.000Z | 2021-04-01T18:56:38.000Z | parse_cookie.py | olnikiforov/hillel | 911bb94169aa277932e346e564e5efd69073d634 | [
"MIT"
] | null | null | null |
if __name__ == '__main__':
assert parse_cookie('name=Dima;') == {'name': 'Dima'}
assert parse_cookie('') == {}
assert parse_cookie('name=Dima;age=28;') == {'name': 'Dima', 'age': '28'}
assert parse_cookie('name=Dima=User;age=28;') == {'name': 'Dima=User', 'age': '28'}
| 30.235294 | 87 | 0.509728 |
5b110f22e3b74f1f108abb0d9e76465e1a151a75 | 2,234 | py | Python | neuralgym/callbacks/model_saver.py | pancookie/SNPGAN_TECcompletion | 2245179db9d9c64da20a6dd7098795a1cf724ad3 | [
"MIT"
] | 1 | 2022-02-06T07:38:43.000Z | 2022-02-06T07:38:43.000Z | neuralgym/callbacks/model_saver.py | pancookie/SNPGAN_TECcompletion | 2245179db9d9c64da20a6dd7098795a1cf724ad3 | [
"MIT"
] | null | null | null | neuralgym/callbacks/model_saver.py | pancookie/SNPGAN_TECcompletion | 2245179db9d9c64da20a6dd7098795a1cf724ad3 | [
"MIT"
] | null | null | null | """model_saver"""
import os
from . import PeriodicCallback, CallbackLoc
from ..utils.logger import callback_log
| 37.864407 | 115 | 0.606088 |
5b1186da0e35b3ea68ef672cbd4ad76ad6086353 | 1,352 | py | Python | rower_monitor/boat_metrics.py | sergiomo/diy-rower-monitor | 32730025874f32015b8a582175db36cdd351ce1e | [
"Unlicense"
] | null | null | null | rower_monitor/boat_metrics.py | sergiomo/diy-rower-monitor | 32730025874f32015b8a582175db36cdd351ce1e | [
"Unlicense"
] | null | null | null | rower_monitor/boat_metrics.py | sergiomo/diy-rower-monitor | 32730025874f32015b8a582175db36cdd351ce1e | [
"Unlicense"
] | null | null | null | from .time_series import TimeSeries
| 35.578947 | 118 | 0.647929 |
5b11b42643e2e5c40307befa37ef00c0f90f66bd | 121 | py | Python | trackMe-backend/src/config.py | matth3wliuu/trackMe | 0fb22bb8adf147fb4d4ed09c5c7253d0e54bf992 | [
"MIT"
] | 1 | 2022-01-28T06:20:03.000Z | 2022-01-28T06:20:03.000Z | trackMe-backend/src/config.py | matth3wliuu/trackMe | 0fb22bb8adf147fb4d4ed09c5c7253d0e54bf992 | [
"MIT"
] | null | null | null | trackMe-backend/src/config.py | matth3wliuu/trackMe | 0fb22bb8adf147fb4d4ed09c5c7253d0e54bf992 | [
"MIT"
] | null | null | null | dbConfig = {
"user": "root",
"password": "123567l098",
"host": "localhost",
"database": "trackMe_dev"
} | 20.166667 | 29 | 0.545455 |
5b1363485151128caf183c9f6b705444acca65c5 | 136 | py | Python | src/localsrv/urls.py | vladiibine/localsrv | 7bb8fd2e08f43a1b5adef9ad17ab534a317e0a57 | [
"MIT"
] | null | null | null | src/localsrv/urls.py | vladiibine/localsrv | 7bb8fd2e08f43a1b5adef9ad17ab534a317e0a57 | [
"MIT"
] | 4 | 2015-04-28T08:20:26.000Z | 2015-06-13T06:32:31.000Z | src/localsrv/urls.py | vladiibine/localsrv | 7bb8fd2e08f43a1b5adef9ad17ab534a317e0a57 | [
"MIT"
] | 1 | 2018-03-04T20:29:27.000Z | 2018-03-04T20:29:27.000Z | from django.conf.urls import url
from .views import serve_all
urlpatterns = (
url(r'^.*$', serve_all, name="localsrv:serve_all"),
) | 22.666667 | 55 | 0.705882 |