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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9cd259722e42f71cb19331be9d7293420eff0873 | 2,187 | py | Python | rental/pagination.py | sunscrapers/restonomicon.pl | 56a167cd4a07520a66377e7d899d8f1759f00e3d | [
"MIT"
] | null | null | null | rental/pagination.py | sunscrapers/restonomicon.pl | 56a167cd4a07520a66377e7d899d8f1759f00e3d | [
"MIT"
] | null | null | null | rental/pagination.py | sunscrapers/restonomicon.pl | 56a167cd4a07520a66377e7d899d8f1759f00e3d | [
"MIT"
] | null | null | null | from collections import OrderedDict
from rest_framework.pagination import LimitOffsetPagination
from rest_framework.response import Response
from rest_framework.utils.urls import remove_query_param, replace_query_param
| 35.274194 | 77 | 0.566529 |
9cd61c204b329ca886ff80f063d2527cb83d49ab | 462 | py | Python | sanskrit_parser/generator/test/test_ajanta_stri.py | avinashvarna/sanskrit_parser | 79338213128b29927fe2f06031379bb1e3864a83 | [
"MIT"
] | 54 | 2017-06-30T09:11:53.000Z | 2022-03-22T15:35:41.000Z | sanskrit_parser/generator/test/test_ajanta_stri.py | avinashvarna/sanskrit_parser | 79338213128b29927fe2f06031379bb1e3864a83 | [
"MIT"
] | 159 | 2017-06-30T07:04:36.000Z | 2021-06-17T17:03:43.000Z | sanskrit_parser/generator/test/test_ajanta_stri.py | avinashvarna/sanskrit_parser | 79338213128b29927fe2f06031379bb1e3864a83 | [
"MIT"
] | 18 | 2017-08-17T13:22:00.000Z | 2022-01-20T01:08:58.000Z | from sanskrit_parser.generator.pratyaya import * # noqa: F403, F401
from sanskrit_parser.generator.dhatu import * # noqa: F403, F401
from sanskrit_parser.generator.pratipadika import * # noqa: F403, F401
from sanskrit_parser.base.sanskrit_base import DEVANAGARI
from sanskrit_parser.generator.sutras_yaml import sutra... | 38.5 | 71 | 0.824675 |
9cd6a9907dbb3c98dd8a89732b5e0a3f3014b425 | 444 | py | Python | setup.py | CD3/txt2svg | d53110b320f8442f57a694ae24b557f1d410e0ba | [
"MIT"
] | null | null | null | setup.py | CD3/txt2svg | d53110b320f8442f57a694ae24b557f1d410e0ba | [
"MIT"
] | null | null | null | setup.py | CD3/txt2svg | d53110b320f8442f57a694ae24b557f1d410e0ba | [
"MIT"
] | null | null | null | #! /usr/bin/env python
from setuptools import setup, find_packages
setup(
name='txt2svg',
license="MIT",
version="0.1",
description='A tool for generating svg images from plain text files.',
url='https://github.com/CD3/txt2svg',
author='C.D. Clark III',
packages=find_packages(),
instal... | 23.368421 | 74 | 0.657658 |
9cd70cc3359c08bf7a6d62844d5b552cec8efabc | 157 | py | Python | blog/admin.py | Debanjan2001/MyBlog-WebApp | 6a98ea512431490d0fcb9f10de0def9933e49c25 | [
"MIT"
] | 1 | 2021-04-21T17:58:10.000Z | 2021-04-21T17:58:10.000Z | blog/admin.py | Debanjan2001/MyBlog-WebApp | 6a98ea512431490d0fcb9f10de0def9933e49c25 | [
"MIT"
] | null | null | null | blog/admin.py | Debanjan2001/MyBlog-WebApp | 6a98ea512431490d0fcb9f10de0def9933e49c25 | [
"MIT"
] | null | null | null | from blog.models import Comment, Post
from django.contrib import admin
# Register your models here.
admin.site.register(Post)
admin.site.register(Comment)
| 19.625 | 37 | 0.802548 |
9cd790991b2e8bb7fe6665f9e39b218f772a44ee | 12,076 | py | Python | elbow/models/time_series.py | davmre/elbow | 5ca2733068dc367404ad48d4e2c7f61f9901216a | [
"BSD-3-Clause"
] | 93 | 2016-10-04T23:15:54.000Z | 2021-01-10T20:31:36.000Z | elbow/models/time_series.py | davmre/bayesflow | 5ca2733068dc367404ad48d4e2c7f61f9901216a | [
"BSD-3-Clause"
] | 1 | 2017-02-22T11:29:15.000Z | 2017-02-22T21:13:36.000Z | elbow/models/time_series.py | davmre/elbow | 5ca2733068dc367404ad48d4e2c7f61f9901216a | [
"BSD-3-Clause"
] | 19 | 2016-10-26T08:19:39.000Z | 2019-12-19T02:26:43.000Z | import numpy as np
import tensorflow as tf
import elbow.util as util
from elbow import ConditionalDistribution
import scipy.stats
from elbow.gaussian_messages import MVGaussianMeanCov, reverse_message, forward_message
from elbow.parameterization import unconstrained, psd_matrix, psd_diagonal
| 42.223776 | 242 | 0.602103 |
9cd7f195a00e7374763e0bd2f25ffaede27cf631 | 300 | py | Python | src/docs/net/ip/tcp_server.py | fujiawei-dev/protocols-notes | 4f5b2dd6f7b5a7f2d1260312972898be0f123ff5 | [
"MIT"
] | null | null | null | src/docs/net/ip/tcp_server.py | fujiawei-dev/protocols-notes | 4f5b2dd6f7b5a7f2d1260312972898be0f123ff5 | [
"MIT"
] | null | null | null | src/docs/net/ip/tcp_server.py | fujiawei-dev/protocols-notes | 4f5b2dd6f7b5a7f2d1260312972898be0f123ff5 | [
"MIT"
] | null | null | null | """
Date: 2022.04.03 16:48:45
LastEditors: Rustle Karl
LastEditTime: 2022.04.03 20:21:38
"""
import socket
server = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
server.bind(("0.0.0.0", 9090))
server.listen(50000)
while True:
client, client_address = server.accept()
client.send("OK")
| 18.75 | 58 | 0.71 |
9cd90bd91ff172e86f44aefdf72ca6e011490a20 | 458 | py | Python | scrapy/python3/mysite/nutrition/urls.py | litteletips/crawling_scraping-scrapy_tool | 6d70b4d2a91f2d2bebcc5266ed43ad9be4723bc0 | [
"MIT"
] | null | null | null | scrapy/python3/mysite/nutrition/urls.py | litteletips/crawling_scraping-scrapy_tool | 6d70b4d2a91f2d2bebcc5266ed43ad9be4723bc0 | [
"MIT"
] | 16 | 2021-03-19T09:44:52.000Z | 2022-03-12T00:22:14.000Z | scrapy/python3/mysite/nutrition/urls.py | litteletips/crawling_scraping | 6d70b4d2a91f2d2bebcc5266ed43ad9be4723bc0 | [
"MIT"
] | null | null | null | from django.conf.urls import patterns, url
from nutrition import views
from django.views.generic import ListView
urlpatterns = [
url(r'^nutrition/ITEM/$', views.AddCommentList.as_view()),
url(r'^nutrition/ITEM/(?P<pk>[0-9]+)/$', views.AddCommentDetail.as_view()),
url(r'^nutrition/item/$', views.ItemList.as_... | 35.230769 | 79 | 0.707424 |
9cd986f63f2998e03a6a691279dbbb3f5191e30f | 413 | py | Python | Mundo2/des55.1.py | julimoraislima/Python-CursoEmVideo | d21b0485d2f5767039d819cf743255dfd0f27b18 | [
"MIT"
] | 2 | 2021-01-05T12:31:00.000Z | 2021-03-20T00:31:18.000Z | Mundo2/des55.1.py | julimoraislima/Python-CursoEmVideo | d21b0485d2f5767039d819cf743255dfd0f27b18 | [
"MIT"
] | null | null | null | Mundo2/des55.1.py | julimoraislima/Python-CursoEmVideo | d21b0485d2f5767039d819cf743255dfd0f27b18 | [
"MIT"
] | 1 | 2020-12-28T22:56:10.000Z | 2020-12-28T22:56:10.000Z | #desafio 55: maior e menor da sequncia usando lista []
pessoas = [] #lista vazia
for c in range(1, 6):
peso = float(input(f'Peso da {c} pessoa: '))
pessoas = pessoas + [peso] #lista += [peso] #add os valores de peso na lista
print('><'*15)
print(f'\33[33m O Maior peso lido foi: {max(pessoas)}') #mximo valor... | 41.3 | 82 | 0.658596 |
9cdbe360a8f667d204259709a219c4ef5ae20b25 | 627 | py | Python | Basics_with_Pytorch/Exam/exam2.py | SoyOscarRH/LearningNeuralNetworks | dd5be94b38b3a0efb3428f76d3416227a92c8265 | [
"MIT"
] | 3 | 2020-01-20T19:56:35.000Z | 2021-09-24T14:47:33.000Z | Basics_with_Pytorch/Exam/exam2.py | SoyOscarRH/LearningNeuralNetworks | dd5be94b38b3a0efb3428f76d3416227a92c8265 | [
"MIT"
] | null | null | null | Basics_with_Pytorch/Exam/exam2.py | SoyOscarRH/LearningNeuralNetworks | dd5be94b38b3a0efb3428f76d3416227a92c8265 | [
"MIT"
] | null | null | null | import numpy as np
x1 = 1
x2 = 1
# input
a0 = 1
a1 = x1
a2 = x2
# w input - layer 1
w01 = 1
w02 = 0.5
w11 = 1
w12 = 0
w21 = -1
w22 = 0.5
# layer 1
zh1 = (w01 * a0) + (w11 * a1) + (w21 * a2)
zh2 = (w02 * a0) + (w12 * a1) + (w22 * a2)
print(f"zh1 = {round(zh1, 2)}")
print(f"zh2 = {round(zh2, 2)}")
h0 = 1
h1 = si... | 13.0625 | 42 | 0.511962 |
9cdcd417120489c50be7c4fe5fc7166efe788f6e | 1,659 | py | Python | temp.py | zimmed/project200 | 07ed6952bcec890c4cbc3b00d09ca3be6c1cfbf8 | [
"MIT"
] | null | null | null | temp.py | zimmed/project200 | 07ed6952bcec890c4cbc3b00d09ca3be6c1cfbf8 | [
"MIT"
] | null | null | null | temp.py | zimmed/project200 | 07ed6952bcec890c4cbc3b00d09ca3be6c1cfbf8 | [
"MIT"
] | 1 | 2021-06-01T10:44:21.000Z | 2021-06-01T10:44:21.000Z | from store.user import User
from store import ModelStore as DataStore
from game import Game
from core.dotdict import DotDict
from server import EventServer
import sys
if __name__ == '__main__':
main()
| 29.105263 | 83 | 0.579867 |
9cdd480827a1fd289872f3766e3983a441501350 | 5,164 | py | Python | tools/polyfilt.py | ernestyalumni/18-327-wavelets-filter-banks | eeb3fd65b42808cf907aa716110417515dbbfd82 | [
"MIT"
] | 13 | 2015-07-18T16:13:19.000Z | 2021-11-09T12:04:01.000Z | tools/polyfilt.py | ernestyalumni/18-327-wavelets-filter-banks | eeb3fd65b42808cf907aa716110417515dbbfd82 | [
"MIT"
] | null | null | null | tools/polyfilt.py | ernestyalumni/18-327-wavelets-filter-banks | eeb3fd65b42808cf907aa716110417515dbbfd82 | [
"MIT"
] | 7 | 2015-07-30T20:05:22.000Z | 2021-06-29T01:11:08.000Z | ## polyfilt.py
## This is my implementation of polyfilt.m
## Polyphase implementation of a filter
## using Python libraries numpy, scipy
##
## The main reference that I'll use is
## Gilbert Strang, and Kevin Amaratunga. 18.327 Wavelets, Filter Banks and Applications, Spring 2003. (Massachusetts Institute of Technology... | 46.107143 | 241 | 0.445972 |
9cdf1578fa4f2e1b103a8b115bdfeb2d7e8e8584 | 2,716 | py | Python | main/config/config.py | m-adamski/python-send-db-result | 797aa2faec33e21c15c8fb703a6790815b070b28 | [
"MIT"
] | 1 | 2020-10-02T21:32:37.000Z | 2020-10-02T21:32:37.000Z | main/config/config.py | m-adamski/python-send-db-result | 797aa2faec33e21c15c8fb703a6790815b070b28 | [
"MIT"
] | null | null | null | main/config/config.py | m-adamski/python-send-db-result | 797aa2faec33e21c15c8fb703a6790815b070b28 | [
"MIT"
] | null | null | null | import os
import json
| 31.218391 | 104 | 0.576215 |
9cdfdb149027f845e15333f523f0c024a1f4b256 | 6,913 | py | Python | lib_client/src/d1_client/d1client.py | DataONEorg/d1_python | dfab267c3adea913ab0e0073ed9dc1ee50b5b8eb | [
"Apache-2.0"
] | 15 | 2016-10-28T13:56:52.000Z | 2022-01-31T19:07:49.000Z | lib_client/src/d1_client/d1client.py | DataONEorg/d1_python | dfab267c3adea913ab0e0073ed9dc1ee50b5b8eb | [
"Apache-2.0"
] | 56 | 2017-03-16T03:52:32.000Z | 2022-03-12T01:05:28.000Z | lib_client/src/d1_client/d1client.py | DataONEorg/d1_python | dfab267c3adea913ab0e0073ed9dc1ee50b5b8eb | [
"Apache-2.0"
] | 11 | 2016-05-31T16:22:02.000Z | 2020-10-05T14:37:10.000Z | #!/usr/bin/env python
# This work was created by participants in the DataONE project, and is
# jointly copyrighted by participating institutions in DataONE. For
# more information on DataONE, see our web site at http://dataone.org.
#
# Copyright 2009-2019 DataONE
#
# Licensed under the Apache License, Version 2.0 (t... | 33.076555 | 88 | 0.672356 |
9ce28045195119b03b6a70cb5dc288a624a6fad1 | 2,139 | py | Python | tests/unit/model/test_catalogo.py | douglasdcm/easy_db | 25a3b2fa51dda484cde7a6aa27f26e8ad6d0c827 | [
"MIT"
] | null | null | null | tests/unit/model/test_catalogo.py | douglasdcm/easy_db | 25a3b2fa51dda484cde7a6aa27f26e8ad6d0c827 | [
"MIT"
] | null | null | null | tests/unit/model/test_catalogo.py | douglasdcm/easy_db | 25a3b2fa51dda484cde7a6aa27f26e8ad6d0c827 | [
"MIT"
] | null | null | null | from src.model.catalogo_curso import CatalogoCurso
from src.model.curso import Curso
from src.model.materia import Materia
| 31.925373 | 54 | 0.649836 |
9ce3032a51e788ff5c21581798ceabf05763db56 | 1,664 | py | Python | tinymongo/errors.py | sumants-dev/tinymongo | e904f274524fa3f86c5aeb04a7e8199414567de7 | [
"MIT"
] | 177 | 2016-04-04T14:23:35.000Z | 2022-02-21T15:40:17.000Z | tinymongo/errors.py | sumants-dev/tinymongo | e904f274524fa3f86c5aeb04a7e8199414567de7 | [
"MIT"
] | 35 | 2016-07-14T10:15:11.000Z | 2022-02-13T15:19:27.000Z | tinymongo/errors.py | sumants-dev/tinymongo | e904f274524fa3f86c5aeb04a7e8199414567de7 | [
"MIT"
] | 33 | 2016-07-17T14:15:02.000Z | 2022-02-21T16:28:55.000Z | """Exceptions raised by TinyMongo."""
| 26.83871 | 79 | 0.689904 |
9ce35431b33811cb36dbd79aae7d5f814ea244b0 | 2,149 | py | Python | compare_Tensorflow_Sckit_Learn/benchmark_classification.py | sinkingtitanic/mljar-examples | 1ea4e99f4751f20b90e22cb75e6a7424005722e5 | [
"Apache-2.0"
] | 43 | 2017-02-01T21:44:39.000Z | 2022-03-29T13:59:48.000Z | compare_Tensorflow_Sckit_Learn/benchmark_classification.py | sinkingtitanic/mljar-examples | 1ea4e99f4751f20b90e22cb75e6a7424005722e5 | [
"Apache-2.0"
] | 7 | 2017-02-22T09:11:05.000Z | 2021-09-02T09:10:48.000Z | compare_Tensorflow_Sckit_Learn/benchmark_classification.py | sinkingtitanic/mljar-examples | 1ea4e99f4751f20b90e22cb75e6a7424005722e5 | [
"Apache-2.0"
] | 23 | 2017-02-22T09:08:45.000Z | 2022-02-11T01:01:38.000Z | import os
import time
import json
import numpy as np
import pandas as pd
from supervised.automl import AutoML
from sklearn.model_selection import train_test_split
from sklearn.metrics import log_loss
from sklearn.model_selection import train_test_split
from pmlb import fetch_data, classification_dataset_names
results... | 28.653333 | 71 | 0.64309 |
9ce720919b9f904e57fa538a3db7657a3599f63d | 136 | py | Python | pokemongo_bot/cell_workers/migrations/shadowban_log.py | timgates42/PokemonGo-Bot | 5e80f20760f32478a84a8f0ced7ca24cdf41fe03 | [
"MIT"
] | 5,362 | 2016-07-21T02:38:46.000Z | 2022-03-23T13:34:51.000Z | pokemongo_bot/cell_workers/migrations/shadowban_log.py | timgates42/PokemonGo-Bot | 5e80f20760f32478a84a8f0ced7ca24cdf41fe03 | [
"MIT"
] | 5,897 | 2016-07-21T05:05:49.000Z | 2022-03-17T09:21:35.000Z | pokemongo_bot/cell_workers/migrations/shadowban_log.py | timgates42/PokemonGo-Bot | 5e80f20760f32478a84a8f0ced7ca24cdf41fe03 | [
"MIT"
] | 3,379 | 2016-07-21T02:38:48.000Z | 2022-03-30T02:46:57.000Z | from yoyo import step
step(
"CREATE TABLE IF NOT EXISTS shadowban_log (username text, dated datetime DEFAULT CURRENT_TIMESTAMP)"
)
| 22.666667 | 104 | 0.779412 |
9ce9127e33056554245ec6ea9cf2a6b7954bef54 | 8,576 | py | Python | test/unit/test_disco_elb.py | Angakkuq/asiaq-aws | f7ddec9fc60aef685f372cbaefee2b08ae18b6a0 | [
"BSD-2-Clause"
] | null | null | null | test/unit/test_disco_elb.py | Angakkuq/asiaq-aws | f7ddec9fc60aef685f372cbaefee2b08ae18b6a0 | [
"BSD-2-Clause"
] | 4 | 2016-03-22T17:04:04.000Z | 2016-03-23T18:03:45.000Z | test/unit/test_disco_elb.py | Angakkuit/asiaq-aws | f7ddec9fc60aef685f372cbaefee2b08ae18b6a0 | [
"BSD-2-Clause"
] | null | null | null | """Tests of disco_elb"""
from unittest import TestCase
from mock import MagicMock
from moto import mock_elb
from disco_aws_automation import DiscoELB
TEST_ENV_NAME = 'unittestenv'
TEST_HOSTCLASS = 'mhcunit'
TEST_VPC_ID = 'vpc-56e10e3d' # the hard coded VPC Id that moto will always return
TEST_DOMAIN_NAME = 'test.exam... | 39.33945 | 105 | 0.645872 |
9ce978cb516c10830f3bfe23b46648f71d09abc3 | 517 | py | Python | Flask/6. Profile Pages/config.py | AndresAlb/Tutorials | d23800806f7286c405c45745f5e5a0bb7d8c954e | [
"MIT"
] | null | null | null | Flask/6. Profile Pages/config.py | AndresAlb/Tutorials | d23800806f7286c405c45745f5e5a0bb7d8c954e | [
"MIT"
] | null | null | null | Flask/6. Profile Pages/config.py | AndresAlb/Tutorials | d23800806f7286c405c45745f5e5a0bb7d8c954e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Wed Jul 15 23:54:49 2020
@author: Andres Angeles Albores
"""
import os
basedir = os.path.abspath(os.path.dirname(__file__)) | 25.85 | 71 | 0.682785 |
9ce9bb2a8ae8eb5792bff17cb6dc037088a6cdd3 | 2,765 | py | Python | colorselect.py | aimuch/CarND-Advanced-Lane-Lines | d955d31e4f8d72b2651dd9ce1e58d5be64e9004f | [
"MIT"
] | 1 | 2020-12-17T11:09:19.000Z | 2020-12-17T11:09:19.000Z | colorselect.py | aimuch/CarND-Advanced-Lane-Lines | d955d31e4f8d72b2651dd9ce1e58d5be64e9004f | [
"MIT"
] | null | null | null | colorselect.py | aimuch/CarND-Advanced-Lane-Lines | d955d31e4f8d72b2651dd9ce1e58d5be64e9004f | [
"MIT"
] | 1 | 2020-12-17T11:09:20.000Z | 2020-12-17T11:09:20.000Z |
# coding: utf-8
# In[2]:
import cv2
import numpy as np
import sys
# callback function
# import image
inputImageName = 'test_images/test1.jpg'
try:
img = cv2.imread(inputImageName) # BRG
WindowName = 'Color Select V1.0'
cv2.namedWindow(WindowName)
cv2.imshow(WindowName,img)
except Exception as e... | 30.054348 | 82 | 0.713562 |
9ceab29943b8310e28f9a2de61cf44e20bdc7625 | 1,918 | py | Python | src/deploy/tasks.py | bluesnailstw/flamingos | e13bf4ac4caa5fa50e45d7285877c64218c49723 | [
"Apache-2.0"
] | null | null | null | src/deploy/tasks.py | bluesnailstw/flamingos | e13bf4ac4caa5fa50e45d7285877c64218c49723 | [
"Apache-2.0"
] | null | null | null | src/deploy/tasks.py | bluesnailstw/flamingos | e13bf4ac4caa5fa50e45d7285877c64218c49723 | [
"Apache-2.0"
] | null | null | null | from salt.salt_api import Pepper
from asset.models import Host, HostGroup
from deploy.models import Task, TASK_STATUS, History
from django.conf import settings
from users.models import User
from pillars.models import Vars, Configuration
from redis import StrictRedis
| 36.188679 | 95 | 0.642857 |
9cec9b5ef5691da4f654da65ea5fb44ee14018a8 | 63 | py | Python | certifi/__init__.py | andrew-aladev/certifi-shim | efbda777bfbdcf0676a789b15010b43a54e4da1a | [
"CC0-1.0"
] | null | null | null | certifi/__init__.py | andrew-aladev/certifi-shim | efbda777bfbdcf0676a789b15010b43a54e4da1a | [
"CC0-1.0"
] | null | null | null | certifi/__init__.py | andrew-aladev/certifi-shim | efbda777bfbdcf0676a789b15010b43a54e4da1a | [
"CC0-1.0"
] | null | null | null | from certifi.core import contents, where
__version__ = "9999"
| 15.75 | 40 | 0.777778 |
9cecd887cd2d7bcda8c9d8ae4eceae2fd8fa82da | 547 | py | Python | PythonDAdata/3358OS_07_Code/code7/spectrum.py | shijiale0609/Python_Data_Analysis | c18b5ed006c171bbb6fcb6be5f51b2686edc8f7e | [
"MIT"
] | 1 | 2020-02-22T18:55:54.000Z | 2020-02-22T18:55:54.000Z | PythonDAdata/3358OS_07_Code/code7/spectrum.py | shijiale0609/Python_Data_Analysis | c18b5ed006c171bbb6fcb6be5f51b2686edc8f7e | [
"MIT"
] | null | null | null | PythonDAdata/3358OS_07_Code/code7/spectrum.py | shijiale0609/Python_Data_Analysis | c18b5ed006c171bbb6fcb6be5f51b2686edc8f7e | [
"MIT"
] | 1 | 2020-02-22T18:55:57.000Z | 2020-02-22T18:55:57.000Z | import numpy as np
import statsmodels.api as sm
import matplotlib.pyplot as plt
from scipy.fftpack import rfft
from scipy.fftpack import fftshift
data_loader = sm.datasets.sunspots.load_pandas()
sunspots = data_loader.data["SUNACTIVITY"].values
transformed = fftshift(rfft(sunspots))
plt.subplot(311)
plt.plot(sunspot... | 23.782609 | 55 | 0.776965 |
9ceebb2258c9e0ad6b3d981ef9099fdb41bb09c6 | 4,170 | py | Python | task02/laughter_classification/sspnet_data_sampler.py | rebryk/SPbAU-Speech-Recognition | 8b1993d17d223f507f4e80154823a075e713ee52 | [
"MIT"
] | 1 | 2019-04-22T14:10:46.000Z | 2019-04-22T14:10:46.000Z | task02/laughter_classification/sspnet_data_sampler.py | rebryk/SPbAU-Speech-Recognition | 8b1993d17d223f507f4e80154823a075e713ee52 | [
"MIT"
] | 15 | 2020-01-28T22:25:14.000Z | 2022-03-11T23:24:04.000Z | task02/laughter_classification/sspnet_data_sampler.py | rebryk/SPbAU-Speech-Recognition | 8b1993d17d223f507f4e80154823a075e713ee52 | [
"MIT"
] | 1 | 2019-04-22T14:01:21.000Z | 2019-04-22T14:01:21.000Z | import os
from os.path import join
import numpy as np
import pandas as pd
import scipy.io.wavfile as wav
from laughter_classification.utils import chunks, in_any, interv_to_range, get_sname
from laughter_prediction.sample_audio import sample_wav_by_time, sample_by_frames
def df_from_file(self, wav_path, frame_s... | 37.567568 | 117 | 0.652518 |
9cf06799512c6201d366260a7eba4f0f1f5ed5fa | 3,292 | py | Python | cvpods/checkpoint/utils.py | tonysy/cvpods | e322d7842ca0e34b1ef6237ea6d350633efc793a | [
"Apache-2.0"
] | 758 | 2021-03-11T08:14:26.000Z | 2022-03-31T07:24:13.000Z | cvpods/checkpoint/utils.py | tonysy/cvpods | e322d7842ca0e34b1ef6237ea6d350633efc793a | [
"Apache-2.0"
] | 58 | 2020-12-04T19:47:10.000Z | 2022-03-30T06:52:13.000Z | cvpods/checkpoint/utils.py | tonysy/cvpods | e322d7842ca0e34b1ef6237ea6d350633efc793a | [
"Apache-2.0"
] | 110 | 2021-03-18T01:59:31.000Z | 2022-03-18T21:26:56.000Z | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
import collections
from collections import defaultdict
from termcolor import colored
def get_missing_parameters_message(keys: list):
"""
Get a logging-friendly message to report parameter names (keys) that are in
... | 29.132743 | 79 | 0.600547 |
9cf240d5a20da7ecb3612e9bcfa120ca7475b3f0 | 1,653 | py | Python | tests/demtools/scripts/test_input_path.py | uw-cryo/dem-tools | c99a74b3361bca7d1733e9699c3cedd25a5b5948 | [
"MIT"
] | null | null | null | tests/demtools/scripts/test_input_path.py | uw-cryo/dem-tools | c99a74b3361bca7d1733e9699c3cedd25a5b5948 | [
"MIT"
] | 3 | 2019-09-30T19:40:42.000Z | 2019-10-27T02:23:58.000Z | tests/demtools/scripts/test_input_path.py | jomey/dem-tools | c99a74b3361bca7d1733e9699c3cedd25a5b5948 | [
"MIT"
] | 1 | 2020-02-07T07:15:13.000Z | 2020-02-07T07:15:13.000Z | import argparse
from pathlib import Path
import pytest
from demtools.scripts import InputPath
class TestInputPaths(object):
| 28.016949 | 80 | 0.687235 |
9cf34c2b4493cdfb7aff2d968769acb0ab4ee469 | 578 | py | Python | song_generator/tests.py | gorbulus/song_generator | ba527e7a0151177f794995d0d79fdeffff45b7fb | [
"MIT"
] | null | null | null | song_generator/tests.py | gorbulus/song_generator | ba527e7a0151177f794995d0d79fdeffff45b7fb | [
"MIT"
] | null | null | null | song_generator/tests.py | gorbulus/song_generator | ba527e7a0151177f794995d0d79fdeffff45b7fb | [
"MIT"
] | null | null | null | '''
# tests.py
# William Ponton
# 5.9.21
# Tests for the song_generator project
'''
# import pacagkes
import song_generator.generator as gen
import song_generator.song_data as s_data
import song_generator.string_literals as s_lit
from song_generator.SongClass import Song # Song class
# test output from each import fil... | 26.272727 | 54 | 0.743945 |
9cf36044a78da6b44f50ef7880b953422fdb98f0 | 360 | py | Python | src/python/WMCore/WMBS/Oracle/Jobs/LoadFromIDWithWorkflow.py | khurtado/WMCore | f74e252412e49189a92962945a94f93bec81cd1e | [
"Apache-2.0"
] | 21 | 2015-11-19T16:18:45.000Z | 2021-12-02T18:20:39.000Z | src/python/WMCore/WMBS/Oracle/Jobs/LoadFromIDWithWorkflow.py | khurtado/WMCore | f74e252412e49189a92962945a94f93bec81cd1e | [
"Apache-2.0"
] | 5,671 | 2015-01-06T14:38:52.000Z | 2022-03-31T22:11:14.000Z | src/python/WMCore/WMBS/Oracle/Jobs/LoadFromIDWithWorkflow.py | khurtado/WMCore | f74e252412e49189a92962945a94f93bec81cd1e | [
"Apache-2.0"
] | 67 | 2015-01-21T15:55:38.000Z | 2022-02-03T19:53:13.000Z | #!/usr/bin/env python
"""
_LoadFromIDWithWorkflow_
Oracle implementation of Jobs.LoadFromIDWithWorkflow.
"""
from WMCore.WMBS.MySQL.Jobs.LoadFromIDWithWorkflow import LoadFromIDWithWorkflow as MySQLLoadFromIDWithWorkflow
| 21.176471 | 111 | 0.788889 |
9cf4544311c2e0722d765a266da005b76bf3bdb4 | 11,367 | py | Python | Assignment/Pytorch_improvements/ex2_pytorch_grid_search.py | EgonFerri/Ex2_NN_backpropr | 3b9426bcda279188cf55908090da51845c9c2ca6 | [
"MIT"
] | null | null | null | Assignment/Pytorch_improvements/ex2_pytorch_grid_search.py | EgonFerri/Ex2_NN_backpropr | 3b9426bcda279188cf55908090da51845c9c2ca6 | [
"MIT"
] | null | null | null | Assignment/Pytorch_improvements/ex2_pytorch_grid_search.py | EgonFerri/Ex2_NN_backpropr | 3b9426bcda279188cf55908090da51845c9c2ca6 | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
import torch.nn.functional as F
import torchvision
import torchvision.transforms as transforms
import numpy as np
import pandas as pd
from sklearn.model_selection import ParameterGrid
from tqdm import tqdm_notebook as tqdm
def kaiming_init(m):
'''Initilize weights (with kaiming ini... | 38.402027 | 127 | 0.590833 |
9cf472f4ca4830340edb61545a9592eaf91f9937 | 506 | py | Python | quanttrade/test/SmaTest.py | dingmingliu/quanttrade | 2d9eaf9f2339a51458ef1e130c60b0132d9e57bb | [
"Apache-2.0"
] | null | null | null | quanttrade/test/SmaTest.py | dingmingliu/quanttrade | 2d9eaf9f2339a51458ef1e130c60b0132d9e57bb | [
"Apache-2.0"
] | null | null | null | quanttrade/test/SmaTest.py | dingmingliu/quanttrade | 2d9eaf9f2339a51458ef1e130c60b0132d9e57bb | [
"Apache-2.0"
] | 1 | 2021-10-02T12:22:30.000Z | 2021-10-02T12:22:30.000Z | __author__ = 'tyler'
import bt
#%pylab inline
# download data
data = bt.get('aapl,msft', start='2013-01-01')
data.head()
import pandas as pd
# a rolling mean is a moving average, right?
sma = pd.rolling_mean(data, 50)
s = bt.Strategy('above50sma', [ bt.algos.SelectWhere(data > sma),
... | 25.3 | 66 | 0.58498 |
9cf5db2bf88364cfebbc87d0de7355ee48538556 | 778 | py | Python | mainsite/views.py | Anthlay/mblog | 2f19f7eba6c1b77f829c88373f9ecf94de57024a | [
"Apache-2.0"
] | null | null | null | mainsite/views.py | Anthlay/mblog | 2f19f7eba6c1b77f829c88373f9ecf94de57024a | [
"Apache-2.0"
] | 4 | 2020-02-12T01:14:04.000Z | 2021-06-10T21:48:09.000Z | mainsite/views.py | Anthlay/mblog | 2f19f7eba6c1b77f829c88373f9ecf94de57024a | [
"Apache-2.0"
] | null | null | null | from datetime import datetime
from django.shortcuts import render, redirect
from django.http import HttpResponse
from .models import Post
# Create your views here | 33.826087 | 72 | 0.650386 |
9cf63d6fac7165c02677980da20f53fa501da497 | 12,911 | py | Python | shellshock_scanner.py | CapTheFlag/shellshock-scanner | cb309ae4e4323613e05458ab3c3a7f9483c86a81 | [
"MIT"
] | 25 | 2015-01-05T11:59:25.000Z | 2022-01-27T13:27:15.000Z | shellshock_scanner.py | surajsinghbisht054/shellshock-scanner | cb309ae4e4323613e05458ab3c3a7f9483c86a81 | [
"MIT"
] | null | null | null | shellshock_scanner.py | surajsinghbisht054/shellshock-scanner | cb309ae4e4323613e05458ab3c3a7f9483c86a81 | [
"MIT"
] | 15 | 2015-01-06T07:35:53.000Z | 2021-01-29T22:42:28.000Z | #!/usr/bin/env python
# Author: Mario Rivas Vivar
# https://twitter.com/Grifo
"""
Scan a list of hosts with a list of CGIs trying to exploit
the ShellShock vulnerability with different methods and payloads (CVE-2014-6271, CVE-2014-6278)
"""
import httplib,sys,time
import pprint
import csv
import argparse
from threa... | 38.311573 | 233 | 0.597552 |
9cfc8c3c743996c080aad3979946e5244ed37a91 | 2,079 | py | Python | jaraco/financial/records.py | jaraco/jaraco.financial | cb6700f6194c5bf144c0c6cf150487d89d8336c5 | [
"MIT"
] | null | null | null | jaraco/financial/records.py | jaraco/jaraco.financial | cb6700f6194c5bf144c0c6cf150487d89d8336c5 | [
"MIT"
] | 1 | 2016-08-06T17:39:03.000Z | 2016-08-06T17:39:03.000Z | jaraco/financial/records.py | jaraco/jaraco.financial | cb6700f6194c5bf144c0c6cf150487d89d8336c5 | [
"MIT"
] | null | null | null | from __future__ import print_function
import smtplib
import email.mime.multipart
import email.mime.text
import getpass
import io
import codecs
from path import Path
from jaraco.ui import progress
def _as_hex(bytes):
"""
Replacement for ``bytes.encode('hex')`` but on Python 3
"""
return codecs.encod... | 26.653846 | 72 | 0.68254 |
9cfcd2e79df18ef7cc3ee64b85571df574a041c2 | 96 | py | Python | python/testData/regexp/notEmptyGroup.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/regexp/notEmptyGroup.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/regexp/notEmptyGroup.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | import re
some_re = re.compile(r"""
(?P<abc>abc)
(?P<name>
(?(abc)yes|noo)
)
""", re.VERBOSE) | 12 | 25 | 0.572917 |
9cfd44b4f9b3f25b6ece98512e0b6a0746c58433 | 2,680 | py | Python | src/python/pants/backend/codegen/thrift/apache/java/rules.py | wimax-grapl/pants | 0aabd417a772ea4e39999c4415c67db40de679a4 | [
"Apache-2.0"
] | null | null | null | src/python/pants/backend/codegen/thrift/apache/java/rules.py | wimax-grapl/pants | 0aabd417a772ea4e39999c4415c67db40de679a4 | [
"Apache-2.0"
] | 28 | 2021-12-27T15:53:46.000Z | 2022-03-23T11:01:42.000Z | src/python/pants/backend/codegen/thrift/apache/java/rules.py | wimax-grapl/pants | 0aabd417a772ea4e39999c4415c67db40de679a4 | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from pants.backend.codegen.thrift.apache.java import subsystem
from pants.backend.codegen.thrift.apache.java.subsystem import ApacheThriftJavaSubsystem
from pants.backend.codegen.thrift.ap... | 34.805195 | 96 | 0.776493 |
9cfead09c9dd64dc64989c8b12c4c6d06757ef47 | 10,427 | py | Python | bughunter/action/ifels.py | ChrisTimperley/BugHunter | 090201f491c50fff5a36507ea6861142570d18b9 | [
"MIT"
] | 4 | 2017-03-01T05:10:01.000Z | 2021-12-14T15:18:01.000Z | bughunter/action/ifels.py | ChrisTimperley/BugCollector | 090201f491c50fff5a36507ea6861142570d18b9 | [
"MIT"
] | 4 | 2016-10-16T22:57:17.000Z | 2017-01-12T21:39:45.000Z | bughunter/action/ifels.py | ChrisTimperley/BugCollector | 090201f491c50fff5a36507ea6861142570d18b9 | [
"MIT"
] | null | null | null | from bughunter.action.core import *
from bughunter.action.basic import ModifyStatement, InsertStatement, DeleteStatement
import cgum.statement
#####
# GROUP: If-Statement-Related
#####
class UnwrapStatement(ReplaceRepairAction):
def parts(self):
return []
# Action: Replace If Condition
class ReplaceThe... | 37.239286 | 92 | 0.609667 |
9cfeca7d709f2e090e6854d324dfeda0011d1640 | 11,124 | py | Python | hana_automl/preprocess/preprocessor.py | dan0nchik/SAP-HANA-AutoML | 68cde80bd7fbfc751fb56062af30aec9238f9fb3 | [
"MIT"
] | 59 | 2021-01-10T18:35:38.000Z | 2022-02-28T16:49:06.000Z | hana_automl/preprocess/preprocessor.py | u1810291/SAP-HANA-AutoML | 06200bd1f813916fc81eb1ccb0ed0b1275e22945 | [
"MIT"
] | 3 | 2021-02-01T19:33:39.000Z | 2021-06-29T08:32:33.000Z | hana_automl/preprocess/preprocessor.py | u1810291/SAP-HANA-AutoML | 06200bd1f813916fc81eb1ccb0ed0b1275e22945 | [
"MIT"
] | 10 | 2021-06-18T12:35:34.000Z | 2021-12-28T18:48:36.000Z | import copy
import math
from hana_ml import DataFrame
from hana_ml.algorithms.pal.neighbors import KNNRegressor
from hana_ml.algorithms.pal.preprocessing import (
Imputer,
FeatureNormalizer,
variance_test,
)
from hana_automl.algorithms.classification.decisiontreecls import DecisionTreeCls
from hana_automl.... | 36.834437 | 87 | 0.548993 |
9cff114514a4e53b9d73b004333fbe341dfc861e | 10,438 | py | Python | tests/bugs/core_2251_test.py | reevespaul/firebird-qa | 98f16f425aa9ab8ee63b86172f959d63a2d76f21 | [
"MIT"
] | null | null | null | tests/bugs/core_2251_test.py | reevespaul/firebird-qa | 98f16f425aa9ab8ee63b86172f959d63a2d76f21 | [
"MIT"
] | null | null | null | tests/bugs/core_2251_test.py | reevespaul/firebird-qa | 98f16f425aa9ab8ee63b86172f959d63a2d76f21 | [
"MIT"
] | null | null | null | #coding:utf-8
#
# id: bugs.core_2251
# title: gbak doesn't return error code
# decription:
# Inaccessible folder is defined here as $tmp + GUID (i.e. it 100% not yet exists).
# We have to check allof kind for inaccessible file:
# * .fbk when ... | 58.312849 | 189 | 0.617934 |
9cffe20ef35dd83ae3e95a578a5a23bf44a0fc19 | 2,534 | py | Python | cwinsdk/um/wingdi.py | Vlastbia/ctypes-windows-sdk | ccb2c7e83086840a620358507cac5c3fccc7e8af | [
"ISC"
] | null | null | null | cwinsdk/um/wingdi.py | Vlastbia/ctypes-windows-sdk | ccb2c7e83086840a620358507cac5c3fccc7e8af | [
"ISC"
] | null | null | null | cwinsdk/um/wingdi.py | Vlastbia/ctypes-windows-sdk | ccb2c7e83086840a620358507cac5c3fccc7e8af | [
"ISC"
] | null | null | null | from __future__ import absolute_import, division, print_function, unicode_literals
from ctypes import POINTER, c_int, Structure
from ctypes.wintypes import LPCSTR, HANDLE, LPCWSTR, DWORD, BOOL, UINT, LPVOID, WORD, LONG, BYTE
from .. import windll
HDC = HANDLE
HGDIOBJ = HANDLE
HBITMAP = HANDLE
DIB_RGB_COLORS = 0
HOR... | 24.843137 | 119 | 0.741121 |
1400297ab0c1bbad58a3bb093a0ed2a676260382 | 358 | py | Python | pjbank/__init__.py | pjbank/pjbank-python-sdk | ddfaab13da8a56d67b233ad1628ac9d8223b6eab | [
"MIT"
] | 15 | 2017-08-15T17:39:56.000Z | 2019-12-30T18:06:15.000Z | pjbank/__init__.py | pjbank/pjbank-python-sdk | ddfaab13da8a56d67b233ad1628ac9d8223b6eab | [
"MIT"
] | 13 | 2017-08-29T11:03:20.000Z | 2019-07-04T19:51:16.000Z | pjbank/__init__.py | pjbank/pjbank-python-sdk | ddfaab13da8a56d67b233ad1628ac9d8223b6eab | [
"MIT"
] | 7 | 2017-08-29T05:10:43.000Z | 2019-07-23T17:59:09.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
pjbank
"""
from pjbank.api import PJBankAPI
from pjbank.contadigital import ContaDigital
from pjbank.recebimentos.boleto import Boleto
from pjbank.recebimentos.cartaocredito import CartaoCredito
from pjbank.config import __version__
conta_digital = ContaDigital()
bole... | 23.866667 | 59 | 0.787709 |
1400e05a81e61584f76a1b7de9750c733259c909 | 1,081 | py | Python | S1/TP7/ex5.py | HerbeMalveillante/ecole | bebbc73cd678c58c9cd40389ea1cf229a0200308 | [
"MIT"
] | null | null | null | S1/TP7/ex5.py | HerbeMalveillante/ecole | bebbc73cd678c58c9cd40389ea1cf229a0200308 | [
"MIT"
] | null | null | null | S1/TP7/ex5.py | HerbeMalveillante/ecole | bebbc73cd678c58c9cd40389ea1cf229a0200308 | [
"MIT"
] | null | null | null | dico = {25: 4, 8: 1, 12: 2, 3: 5}
print(dico)
print("5 dans dico ?", 5 in dico)
print("25 dans dico ?", 25 in dico)
dico[9] = 1
dico[8] = 2
print(dico)
del dico[25]
print(dico)
print("-" * 10)
inventaire = {"orange": 378, "pomme": 545, "banane": 422, "poire": 269}
checkStock()
ajouteStock()
supprimerStock()
| 21.196078 | 90 | 0.603145 |
14026ffd736cbe43208ce8862e478324d4c76ffc | 2,176 | py | Python | rampwf/hyperopt/cli/hyperopt.py | albertcthomas/ramp-workflow | aee62742314f95ebcb3f226e535ff4ad64e88024 | [
"BSD-3-Clause"
] | 1 | 2020-12-03T12:22:22.000Z | 2020-12-03T12:22:22.000Z | rampwf/hyperopt/cli/hyperopt.py | martin1tab/ramp-workflow | aee62742314f95ebcb3f226e535ff4ad64e88024 | [
"BSD-3-Clause"
] | null | null | null | rampwf/hyperopt/cli/hyperopt.py | martin1tab/ramp-workflow | aee62742314f95ebcb3f226e535ff4ad64e88024 | [
"BSD-3-Clause"
] | null | null | null | import click
from ..hyperopt import run_hyperopt
CONTEXT_SETTINGS = dict(help_option_names=['-h', '--help'])
if __name__ == '__main__':
start()
| 44.408163 | 78 | 0.654871 |
14027a2ddc57fcac5fad84f5b3665608869fa996 | 3,675 | py | Python | deployments/views.py | makaimc/pfisdi | 45e897b374d50e2f5385f15cbf318da0e17900f7 | [
"MIT"
] | 2 | 2015-01-05T21:09:24.000Z | 2015-07-31T16:52:38.000Z | deployments/views.py | makaimc/pfisdi | 45e897b374d50e2f5385f15cbf318da0e17900f7 | [
"MIT"
] | null | null | null | deployments/views.py | makaimc/pfisdi | 45e897b374d50e2f5385f15cbf318da0e17900f7 | [
"MIT"
] | null | null | null | from django.http import HttpResponseRedirect
from django.template import RequestContext
from django.shortcuts import render_to_response, get_object_or_404
from django.core.context_processors import csrf
from django.core.urlresolvers import reverse
from django.views.decorators.csrf import csrf_protect
from django.contri... | 37.5 | 78 | 0.668027 |
1403046e6da2ce010da71e8998d42356dcbbc94e | 780 | py | Python | day1/if_else_statements.py | anishLearnsToCode/python-workshop-4 | d34c312d17c0d4194b2a1d269b8c0e2a56a04699 | [
"MIT"
] | 4 | 2020-07-15T13:47:10.000Z | 2021-09-15T20:28:50.000Z | day1/if_else_statements.py | anishLearnsToCode/python-workshop-4 | d34c312d17c0d4194b2a1d269b8c0e2a56a04699 | [
"MIT"
] | null | null | null | day1/if_else_statements.py | anishLearnsToCode/python-workshop-4 | d34c312d17c0d4194b2a1d269b8c0e2a56a04699 | [
"MIT"
] | 2 | 2020-07-18T03:28:03.000Z | 2020-11-01T00:56:02.000Z | """
If else
predicate = is any logical expression
if predicate:
code
elif predicate2: (not compulsory)
code2
elif predicate3:
code3
..
..
..
..
else: (not compulsory)
code
"""
# switch statements not supported by python
number = int(input())
if number > 10:
print('i am in if block')
print('s... | 16.25 | 48 | 0.617949 |
140436103b07b8beaed84d7d034c0ac05623632e | 35 | py | Python | similarweb_scraper/__init__.py | kilobyte2007/similarweb_scraper | 049f8983845b7bd7504f5841bc712e970c39be66 | [
"MIT"
] | 18 | 2019-10-19T08:07:16.000Z | 2021-12-17T06:11:59.000Z | similarweb_scraper/__init__.py | kilobyte2007/similarweb_scraper | 049f8983845b7bd7504f5841bc712e970c39be66 | [
"MIT"
] | 1 | 2020-02-18T19:07:38.000Z | 2020-04-26T12:05:15.000Z | similarweb_scraper/__init__.py | kilobyte2007/similarweb_scraper | 049f8983845b7bd7504f5841bc712e970c39be66 | [
"MIT"
] | 2 | 2020-02-18T18:44:34.000Z | 2021-12-17T06:01:03.000Z | from .similarweb_scraper import *
| 17.5 | 34 | 0.8 |
1404d7c78ab63ab6c44fb7aef71aaac733eb3dc8 | 578 | py | Python | install_imports.py | surajssd/kube-hunter | 0157ac83ce6a735d4a431e9e3a6d4ec847aa6fc1 | [
"Apache-2.0"
] | 1 | 2019-09-25T12:31:33.000Z | 2019-09-25T12:31:33.000Z | install_imports.py | surajssd/kube-hunter | 0157ac83ce6a735d4a431e9e3a6d4ec847aa6fc1 | [
"Apache-2.0"
] | null | null | null | install_imports.py | surajssd/kube-hunter | 0157ac83ce6a735d4a431e9e3a6d4ec847aa6fc1 | [
"Apache-2.0"
] | 1 | 2020-08-17T16:05:45.000Z | 2020-08-17T16:05:45.000Z | from os.path import basename
import glob
install_static_imports("src/modules/discovery/")
install_static_imports("src/modules/hunting/")
install_static_imports("src/modules/report/")
install_static_imports("plugins/")
| 32.111111 | 59 | 0.695502 |
1405502804e6766f590b833e1213c48823a5938b | 989 | py | Python | muchscript/__init__.py | SblipDev/MuchScript | dc12196fc3bafb1e7520f1390222c585e056d9d9 | [
"MIT"
] | 7 | 2021-12-16T05:00:12.000Z | 2021-12-19T17:10:44.000Z | muchscript/__init__.py | shaurya-blip/MuchScript | ce30b8c3f5a80ea73588f76ef4e4cef3c014bf63 | [
"MIT"
] | null | null | null | muchscript/__init__.py | shaurya-blip/MuchScript | ce30b8c3f5a80ea73588f76ef4e4cef3c014bf63 | [
"MIT"
] | null | null | null |
'''
MUCHSCRIPT MADE FOR DOGE
INSPIRED BY DOGE AND ELON MUSK
MADE WITH LOVE AND STRESS by sBlip
@ MUCHSCRIPT 0.1.3 BETA 2021
MUCH WOW. MUCH COOL. MUCH CRYPTO.
'''
__version__ = '0.1.3'
__author__ = 'shaurya-blip'
__github__ = 'https://github.com/shaurya-blip/muchscript/'
ANSWER_OF_THE_QUESTION... | 24.121951 | 58 | 0.325581 |
1406030bc96045cc5ac86ac183e1b7807a173011 | 1,802 | py | Python | blend2bam/blender_script_common.py | Clockwork-Muse/blend2bam | 6680bc815b2c6dd1359949b7bcbe52a55de7301b | [
"MIT"
] | 41 | 2019-11-14T07:42:37.000Z | 2022-02-21T13:22:02.000Z | blend2bam/blender_script_common.py | Clockwork-Muse/blend2bam | 6680bc815b2c6dd1359949b7bcbe52a55de7301b | [
"MIT"
] | 58 | 2019-04-22T14:53:04.000Z | 2022-03-15T10:04:36.000Z | blend2bam/blender_script_common.py | Clockwork-Muse/blend2bam | 6680bc815b2c6dd1359949b7bcbe52a55de7301b | [
"MIT"
] | 17 | 2019-08-24T13:59:01.000Z | 2022-02-16T15:47:18.000Z | import json
import os
import sys
import bpy #pylint: disable=import-error
| 29.064516 | 105 | 0.602109 |
1406cc74764fb413f8c4e2e6fa7df223ab8a97a3 | 4,191 | py | Python | traffic_control/tests/test_owner_api.py | City-of-Helsinki/city-infrastructure-platform | c14513a9e54405412085f1047f91ec58b263eac0 | [
"CC0-1.0"
] | 2 | 2020-11-23T22:08:58.000Z | 2022-03-02T13:13:20.000Z | traffic_control/tests/test_owner_api.py | City-of-Helsinki/city-infrastructure-platform | c14513a9e54405412085f1047f91ec58b263eac0 | [
"CC0-1.0"
] | 170 | 2019-12-31T13:37:04.000Z | 2022-03-12T14:03:35.000Z | traffic_control/tests/test_owner_api.py | City-of-Helsinki/city-infrastructure-platform | c14513a9e54405412085f1047f91ec58b263eac0 | [
"CC0-1.0"
] | 3 | 2020-05-08T05:58:02.000Z | 2022-03-15T16:07:25.000Z | import pytest
from django.urls import reverse
from rest_framework import status
from traffic_control.models import Owner
from traffic_control.tests.factories import get_api_client, get_owner, get_user
| 31.044444 | 81 | 0.675018 |
1407baf11e4f8bf8634e13cfdd86fac65a4deec4 | 989 | py | Python | test/test_unit/test_ga4gh/test_refget/test_routes/test_sequence/test_get_service_info.py | ga4gh/refget-cloud | c39a65acba9818414789f004cced487562012bf0 | [
"Apache-2.0"
] | null | null | null | test/test_unit/test_ga4gh/test_refget/test_routes/test_sequence/test_get_service_info.py | ga4gh/refget-cloud | c39a65acba9818414789f004cced487562012bf0 | [
"Apache-2.0"
] | 3 | 2021-04-30T21:12:42.000Z | 2021-06-02T02:11:45.000Z | test/test_unit/test_ga4gh/test_refget/test_routes/test_sequence/test_get_service_info.py | ga4gh/refget-cloud | c39a65acba9818414789f004cced487562012bf0 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""Unit tests for get_service_info method"""
import json
import pytest
from ga4gh.refget.config.service_info import SERVICE_INFO
from ga4gh.refget.http.status_codes import StatusCodes as SC
from ga4gh.refget.routes.sequence.get_service_info import get_service_info
from test.common.methods impor... | 34.103448 | 74 | 0.73913 |
140a20b90e9925d43057fe27d47d950c88b00b9a | 214 | py | Python | cainiao/__init__.py | shengurun/cainiao | 4cdd07716f47e99851dd6571e53b745401de5e85 | [
"MIT"
] | 1 | 2020-02-09T09:35:05.000Z | 2020-02-09T09:35:05.000Z | cainiao/__init__.py | shengurun/cainiao | 4cdd07716f47e99851dd6571e53b745401de5e85 | [
"MIT"
] | null | null | null | cainiao/__init__.py | shengurun/cainiao | 4cdd07716f47e99851dd6571e53b745401de5e85 | [
"MIT"
] | 1 | 2021-10-15T08:08:32.000Z | 2021-10-15T08:08:32.000Z | from .clients import WayBillClient, CloudPrintClient
from .waybill import WayBill
from .cloudprint import CloudPrint
__all__ = ("WayBillClient", "WayBill", "CloudPrint", "CloudPrintClient")
__version__ = "0.2.0"
| 26.75 | 72 | 0.780374 |
140a827ee20450927c1a2ee95317625a892e4780 | 4,215 | py | Python | evewspace/Map/tasks.py | darkorb/eve-wspace | 687f3aeb6cd0a446a74108b2a5c03cb21c464497 | [
"Apache-2.0"
] | null | null | null | evewspace/Map/tasks.py | darkorb/eve-wspace | 687f3aeb6cd0a446a74108b2a5c03cb21c464497 | [
"Apache-2.0"
] | null | null | null | evewspace/Map/tasks.py | darkorb/eve-wspace | 687f3aeb6cd0a446a74108b2a5c03cb21c464497 | [
"Apache-2.0"
] | null | null | null | # Eve W-Space
# Copyright 2014 Andrew Austin and contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... | 33.188976 | 80 | 0.655753 |
140ab4bb1cd8dff6632e6d8cab39ecd830c56b75 | 887 | py | Python | steam_acolyte/theme.py | Zaragata/steam-acolyte | 9ddef5bd91ac5161281a90595301db0da1fafe0d | [
"Unlicense"
] | 16 | 2020-04-18T16:07:39.000Z | 2022-02-09T20:38:02.000Z | steam_acolyte/theme.py | Zaragata/steam-acolyte | 9ddef5bd91ac5161281a90595301db0da1fafe0d | [
"Unlicense"
] | 5 | 2020-09-14T09:42:54.000Z | 2021-04-27T09:56:51.000Z | steam_acolyte/theme.py | Zaragata/steam-acolyte | 9ddef5bd91ac5161281a90595301db0da1fafe0d | [
"Unlicense"
] | 1 | 2022-02-09T21:41:49.000Z | 2022-02-09T21:41:49.000Z | from PyQt5.QtGui import QIcon
try:
from importlib.resources import read_text, path
except ImportError:
from importlib_resources import read_text, path
import os
from types import SimpleNamespace
| 27.71875 | 60 | 0.695603 |
140b00a4e0df52e767311698ec7c06d3fcf99b25 | 23,000 | py | Python | bridges/data_src_dependent/data_source.py | acbart/bridges-python | 5a18d2eb68df7cdff996120c0461b238ca599481 | [
"MIT"
] | null | null | null | bridges/data_src_dependent/data_source.py | acbart/bridges-python | 5a18d2eb68df7cdff996120c0461b238ca599481 | [
"MIT"
] | null | null | null | bridges/data_src_dependent/data_source.py | acbart/bridges-python | 5a18d2eb68df7cdff996120c0461b238ca599481 | [
"MIT"
] | null | null | null | import json
import requests
import pickle
from bridges.data_src_dependent import earthquake_usgs
from bridges.data_src_dependent import actor_movie_imdb
from bridges.data_src_dependent import game
from bridges.data_src_dependent import shakespeare
from bridges.data_src_dependent import gutenberg_book
from bridges.data_... | 30.183727 | 160 | 0.608739 |
140b9b0b97e871cc880c6a62e7358c9920469b5f | 494 | py | Python | plotly/validators/choropleth/_locationmode.py | faezs/plotly.py | 6009b5b9c746e5d2a2849ad255a4eb234b551ed7 | [
"MIT"
] | 2 | 2020-03-24T11:41:14.000Z | 2021-01-14T07:59:43.000Z | plotly/validators/choropleth/_locationmode.py | faezs/plotly.py | 6009b5b9c746e5d2a2849ad255a4eb234b551ed7 | [
"MIT"
] | null | null | null | plotly/validators/choropleth/_locationmode.py | faezs/plotly.py | 6009b5b9c746e5d2a2849ad255a4eb234b551ed7 | [
"MIT"
] | 4 | 2019-06-03T14:49:12.000Z | 2022-01-06T01:05:12.000Z | import _plotly_utils.basevalidators
| 29.058824 | 78 | 0.62753 |
140c17ba4afc65f018668bbee8b508f1d484249a | 924 | py | Python | month04/Django/django6/mysite6/mysite6/views.py | chaofan-zheng/python_learning_code | 5d05848911d55aa49eaee4afd7ffd80536fad7aa | [
"Apache-2.0"
] | 4 | 2021-01-07T14:25:10.000Z | 2021-02-01T10:36:01.000Z | month04/Django/django6/mysite6/mysite6/views.py | chaofan-zheng/python_learning_code | 5d05848911d55aa49eaee4afd7ffd80536fad7aa | [
"Apache-2.0"
] | null | null | null | month04/Django/django6/mysite6/mysite6/views.py | chaofan-zheng/python_learning_code | 5d05848911d55aa49eaee4afd7ffd80536fad7aa | [
"Apache-2.0"
] | null | null | null | from django.http import HttpResponse
| 24.315789 | 74 | 0.691558 |
140d58b062f440d69f4d9438bb9af96e8e79b82f | 5,453 | py | Python | server.py | rosinality/arxiv-sanity | 8905f2ed8dcd873b216624705f26cdd4693bf499 | [
"MIT"
] | 3 | 2019-11-14T12:43:58.000Z | 2021-01-10T15:29:21.000Z | server.py | rosinality/arxiv-sanity | 8905f2ed8dcd873b216624705f26cdd4693bf499 | [
"MIT"
] | null | null | null | server.py | rosinality/arxiv-sanity | 8905f2ed8dcd873b216624705f26cdd4693bf499 | [
"MIT"
] | 1 | 2020-06-16T16:58:52.000Z | 2020-06-16T16:58:52.000Z | import re
import logging
from math import ceil
from datetime import datetime
from starlette.applications import Starlette
from starlette.responses import PlainTextResponse
from starlette.templating import Jinja2Templates
from starlette.staticfiles import StaticFiles
import uvicorn
from gensim.summarization.summarizer ... | 26.342995 | 84 | 0.575096 |
140d9fc18715129ce4df3ee2291a9af73b8ddedf | 22 | py | Python | src/dpsrvf/__init__.py | drewrl3v/dpsrvf | b78a83417bb59e5df7ebd831db6511116d16b638 | [
"BSD-3-Clause"
] | null | null | null | src/dpsrvf/__init__.py | drewrl3v/dpsrvf | b78a83417bb59e5df7ebd831db6511116d16b638 | [
"BSD-3-Clause"
] | 1 | 2021-12-02T00:04:29.000Z | 2021-12-02T00:04:29.000Z | src/dpsrvf/__init__.py | drewrl3v/dpsrvf | b78a83417bb59e5df7ebd831db6511116d16b638 | [
"BSD-3-Clause"
] | null | null | null | from .dpsrvf import *
| 11 | 21 | 0.727273 |
140dcd138e5e9fd07dd672e8a40ec75a11c99019 | 2,786 | py | Python | tests/tests.py | Kellel/reports | 975e99396301e87176a38dd440a273c9319b3e22 | [
"BSD-3-Clause"
] | null | null | null | tests/tests.py | Kellel/reports | 975e99396301e87176a38dd440a273c9319b3e22 | [
"BSD-3-Clause"
] | null | null | null | tests/tests.py | Kellel/reports | 975e99396301e87176a38dd440a273c9319b3e22 | [
"BSD-3-Clause"
] | null | null | null | import unittest
import re
import os
from report.parser import REGEX, parser, ParseError
from report.app import Application
#class SampleFileTests(unittest.TestCase):
#
# def setUp(self):
# from report import create_db
#
# @staticmethod
# def filename(fn):
# return os.path.abspath(fn)
#
# def... | 32.022989 | 124 | 0.663317 |
140f20997a32115cc05697358fa597c854b552ef | 1,061 | py | Python | syncAlleMitarbeiter.py | wulmer/churchtools-automation | 8fa7e3d96c42a6a03ffc37a269ba3b95a856d83e | [
"MIT"
] | null | null | null | syncAlleMitarbeiter.py | wulmer/churchtools-automation | 8fa7e3d96c42a6a03ffc37a269ba3b95a856d83e | [
"MIT"
] | null | null | null | syncAlleMitarbeiter.py | wulmer/churchtools-automation | 8fa7e3d96c42a6a03ffc37a269ba3b95a856d83e | [
"MIT"
] | null | null | null | import os
from churchtools import ChurchToolsApi
if __name__ == "__main__":
ct = ChurchToolsApi(os.environ["API_BASE_URL"], os.environ["ADMIN_TOKEN"])
all_members_group_id = list(ct.get_groups(query="Auto-Gruppe: Alle Mitarbeiter"))[
0
]["id"]
member_status_ids = [s["id"] for s in ct.get_sta... | 34.225806 | 86 | 0.708765 |
140f21754d995319df2daa1f16114bc1ac2e49b1 | 1,276 | py | Python | exercises/concept/restaurant-rozalynn/none.py | ryanplusplus/python | 6afbd74d3bce8f5f4b77f9bba166f1bed1e74968 | [
"MIT"
] | 1 | 2021-09-04T18:42:47.000Z | 2021-09-04T18:42:47.000Z | exercises/concept/restaurant-rozalynn/none.py | daliboy/python | ff53de40180d871bb101fe8b084211cef7b10453 | [
"MIT"
] | 5 | 2021-11-03T10:20:40.000Z | 2022-03-02T10:21:11.000Z | exercises/concept/restaurant-rozalynn/none.py | daliboy/python | ff53de40180d871bb101fe8b084211cef7b10453 | [
"MIT"
] | 1 | 2021-09-05T15:33:52.000Z | 2021-09-05T15:33:52.000Z | def new_seating_chart(size=22):
'''
:param size: int - number if seats in the seating chart. Default is 22.
:return: dict - with number of seats specified, and placeholder values.
'''
pass
def arrange_reservations(guest_list):
'''
:param guest_list: list - list of guest names for reserva... | 22.385965 | 75 | 0.659091 |
140fe5f12606142c8580449bd83609ef34673f2a | 3,308 | py | Python | ironicclient/tests/functional/osc/v1/test_baremetal_chassis_basic.py | sapcc/python-ironicclient | 8dcbf5b6d0bc2c2dc3881dbc557e2e403e2fe2b4 | [
"Apache-2.0"
] | 41 | 2015-01-29T20:10:48.000Z | 2022-01-26T10:04:28.000Z | ironicclient/tests/functional/osc/v1/test_baremetal_chassis_basic.py | sapcc/python-ironicclient | 8dcbf5b6d0bc2c2dc3881dbc557e2e403e2fe2b4 | [
"Apache-2.0"
] | null | null | null | ironicclient/tests/functional/osc/v1/test_baremetal_chassis_basic.py | sapcc/python-ironicclient | 8dcbf5b6d0bc2c2dc3881dbc557e2e403e2fe2b4 | [
"Apache-2.0"
] | 46 | 2015-01-19T17:46:52.000Z | 2021-12-19T01:22:47.000Z | # Copyright (c) 2016 Mirantis, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | 38.022989 | 78 | 0.635429 |
14104a886f5961b0db75535cef7241d695e8b7c3 | 1,082 | py | Python | ramses/scaffolds/__init__.py | timgates42/ramses | ea2e1e896325b7256cdf5902309e05fd98e0c14c | [
"Apache-2.0"
] | 178 | 2016-01-29T10:59:56.000Z | 2021-09-17T18:28:24.000Z | ramses/scaffolds/__init__.py | timgates42/ramses | ea2e1e896325b7256cdf5902309e05fd98e0c14c | [
"Apache-2.0"
] | 35 | 2015-03-31T19:52:23.000Z | 2016-01-11T22:44:30.000Z | ramses/scaffolds/__init__.py | timgates42/ramses | ea2e1e896325b7256cdf5902309e05fd98e0c14c | [
"Apache-2.0"
] | 24 | 2016-02-12T02:38:28.000Z | 2020-06-20T23:35:38.000Z | import os
import subprocess
from six import moves
from pyramid.scaffolds import PyramidTemplate
| 31.823529 | 74 | 0.61183 |
1410a969a161ae8785f9907319a20cbaab2faf50 | 1,916 | py | Python | data/transcoder_evaluation_gfg/python/MINIMUM_TIME_TO_FINISH_TASKS_WITHOUT_SKIPPING_TWO_CONSECUTIVE.py | mxl1n/CodeGen | e5101dd5c5e9c3720c70c80f78b18f13e118335a | [
"MIT"
] | 241 | 2021-07-20T08:35:20.000Z | 2022-03-31T02:39:08.000Z | data/transcoder_evaluation_gfg/python/MINIMUM_TIME_TO_FINISH_TASKS_WITHOUT_SKIPPING_TWO_CONSECUTIVE.py | mxl1n/CodeGen | e5101dd5c5e9c3720c70c80f78b18f13e118335a | [
"MIT"
] | 49 | 2021-07-22T23:18:42.000Z | 2022-03-24T09:15:26.000Z | data/transcoder_evaluation_gfg/python/MINIMUM_TIME_TO_FINISH_TASKS_WITHOUT_SKIPPING_TWO_CONSECUTIVE.py | mxl1n/CodeGen | e5101dd5c5e9c3720c70c80f78b18f13e118335a | [
"MIT"
] | 71 | 2021-07-21T05:17:52.000Z | 2022-03-29T23:49:28.000Z | # Copyright (c) 2019-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
#
#TOFILL
if __name__ == '__main__':
param = [
([5, 17, 25, 27, 29, 30, 34, 49, 72, 75, 90, 93, 93, 94], 8,),
... | 42.577778 | 118 | 0.454071 |
1413cca6261680634828c3e223b5596d39503334 | 2,220 | py | Python | Translations/parse.py | Bluefissure/RainbowMage.ActLocalizer | a63cca327eb4433382039fe338037062af962903 | [
"MIT"
] | 19 | 2019-06-18T16:05:27.000Z | 2021-12-09T08:48:18.000Z | Translations/parse.py | Bluefissure/RainbowMage.ActLocalizer | a63cca327eb4433382039fe338037062af962903 | [
"MIT"
] | null | null | null | Translations/parse.py | Bluefissure/RainbowMage.ActLocalizer | a63cca327eb4433382039fe338037062af962903 | [
"MIT"
] | 1 | 2020-08-24T15:35:56.000Z | 2020-08-24T15:35:56.000Z | from xml.dom.minidom import parse
import json, re
import xml.dom.minidom
import codecs
from collections import defaultdict
if __name__=="__main__":
for file in ["FormActMain.xml", "ConfigTreeView.xml"]:
parse_file(file)
print("Parsed {}".format(file)) | 46.25 | 113 | 0.609009 |
1414d6a7f39b6d6d2fa543619d6402804985df1f | 3,359 | py | Python | sme_financing/main/service/fund_disbursement_service.py | BuildForSDG/team-214-backend | f1aff9c27d7b7588b4bbb2bc68956b35051d4506 | [
"MIT"
] | 1 | 2020-05-20T16:32:33.000Z | 2020-05-20T16:32:33.000Z | sme_financing/main/service/fund_disbursement_service.py | BuildForSDG/team-214-backend | f1aff9c27d7b7588b4bbb2bc68956b35051d4506 | [
"MIT"
] | 23 | 2020-05-19T07:12:53.000Z | 2020-06-21T03:57:54.000Z | sme_financing/main/service/fund_disbursement_service.py | BuildForSDG/team-214-backend | f1aff9c27d7b7588b4bbb2bc68956b35051d4506 | [
"MIT"
] | 1 | 2020-05-18T14:18:12.000Z | 2020-05-18T14:18:12.000Z | from datetime import datetime
from sqlalchemy.exc import SQLAlchemyError
from sme_financing.main import db
from ..models.fund_disbursement import FundDisbursement
from ..service.funding_project_service import get_funding_project_by_id
| 31.101852 | 88 | 0.646621 |
141608780ace7d6b13085fdb6ef40b7ba4d59c94 | 65,519 | py | Python | billforward/apis/amendments_api.py | billforward/bf-python | d2b812329ca3ed1fd94364d7f46f69ad74665596 | [
"Apache-2.0"
] | 2 | 2016-11-23T17:32:37.000Z | 2022-02-24T05:13:20.000Z | billforward/apis/amendments_api.py | billforward/bf-python | d2b812329ca3ed1fd94364d7f46f69ad74665596 | [
"Apache-2.0"
] | null | null | null | billforward/apis/amendments_api.py | billforward/bf-python | d2b812329ca3ed1fd94364d7f46f69ad74665596 | [
"Apache-2.0"
] | 1 | 2016-12-30T20:02:48.000Z | 2016-12-30T20:02:48.000Z | # coding: utf-8
"""
BillForward REST API
OpenAPI spec version: 1.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
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... | 47.719592 | 229 | 0.606358 |
1416902eab8e3f204c69d39e133b4de7dfd1e516 | 1,189 | py | Python | src/python/grpcio_tests/tests/unit/beta/_connectivity_channel_test.py | samotarnik/grpc | 3278bdceda8030d5aa130f12765e5f07263c860d | [
"Apache-2.0"
] | 36,552 | 2015-02-26T17:30:13.000Z | 2022-03-31T22:41:33.000Z | src/python/grpcio_tests/tests/unit/beta/_connectivity_channel_test.py | SanjanaSingh897/grpc | 2d858866eb95ce5de8ccc8c35189a12733d8ca79 | [
"Apache-2.0"
] | 23,536 | 2015-02-26T17:50:56.000Z | 2022-03-31T23:39:42.000Z | src/python/grpcio_tests/tests/unit/beta/_connectivity_channel_test.py | SanjanaSingh897/grpc | 2d858866eb95ce5de8ccc8c35189a12733d8ca79 | [
"Apache-2.0"
] | 11,050 | 2015-02-26T17:22:10.000Z | 2022-03-31T10:12:35.000Z | # Copyright 2015 gRPC authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing... | 36.030303 | 78 | 0.776283 |
1419fea8415d6994c86ab88a7b541b03c4b88d54 | 3,323 | py | Python | lwb_heartbeat/staff/migrations/0001_initial.py | jayadams011/lwb_heartbeat | 6d9b594f317107cd26932485dd8d063e226970fa | [
"MIT"
] | 1 | 2021-03-18T20:55:04.000Z | 2021-03-18T20:55:04.000Z | lwb_heartbeat/staff/migrations/0001_initial.py | jayadams011/lwb_heartbeat | 6d9b594f317107cd26932485dd8d063e226970fa | [
"MIT"
] | 17 | 2018-05-23T15:14:17.000Z | 2018-05-25T23:39:38.000Z | lwb_heartbeat/staff/migrations/0001_initial.py | jayadams011/lwb_heartbeat | 6d9b594f317107cd26932485dd8d063e226970fa | [
"MIT"
] | 2 | 2018-06-12T20:50:38.000Z | 2021-03-18T20:55:21.000Z | # Generated by Django 2.0.5 on 2018-05-23 23:46
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import multiselectfield.db.fields
| 75.522727 | 1,140 | 0.690641 |
141e2840866cc4a5199ed1f46de24c5823d73ae2 | 940 | py | Python | sendmail/helpers.py | hmif-itb/hmif-send-mail | 628e283d7de06b132fe72af97b76104ea5ff8c88 | [
"MIT"
] | null | null | null | sendmail/helpers.py | hmif-itb/hmif-send-mail | 628e283d7de06b132fe72af97b76104ea5ff8c88 | [
"MIT"
] | null | null | null | sendmail/helpers.py | hmif-itb/hmif-send-mail | 628e283d7de06b132fe72af97b76104ea5ff8c88 | [
"MIT"
] | null | null | null | import json
import yaml
import csv
| 23.5 | 71 | 0.611702 |
141e6c1e91f0326ea6e6f4822ced15004bab074a | 2,828 | py | Python | access-analyzer/enablement/create-account-analyzer-stack-set.py | lulukelu/aws-iam-permissions-guardrails | cae485e3d8589c85f55c50c442ce47916345e00d | [
"Apache-2.0"
] | 88 | 2020-04-02T02:56:27.000Z | 2022-03-18T13:22:02.000Z | access-analyzer/enablement/create-account-analyzer-stack-set.py | lulukelu/aws-iam-permissions-guardrails | cae485e3d8589c85f55c50c442ce47916345e00d | [
"Apache-2.0"
] | 45 | 2020-06-26T11:11:28.000Z | 2021-08-17T15:31:47.000Z | access-analyzer/enablement/create-account-analyzer-stack-set.py | lulukelu/aws-iam-permissions-guardrails | cae485e3d8589c85f55c50c442ce47916345e00d | [
"Apache-2.0"
] | 32 | 2020-04-02T02:56:28.000Z | 2021-12-20T18:53:04.000Z | import logging
logger = logging.getLogger()
logger.setLevel(logging.INFO)
import argparse
import boto3
from botocore.waiter import SingleWaiterConfig, Waiter
excluded_regions=[]
parser = argparse.ArgumentParser()
parser.add_argument("--excluded_regions","-excluded_regions",help="Regions to exclude as comma separated... | 26.933333 | 196 | 0.726308 |
1420b5636f3d9df34dca6ec55321637de72a8c50 | 1,950 | py | Python | packages/modification_rules.py | VoigtLab/ripp-design | 5a83cc0e38b879d548ba836af5a9dadbe83aeadd | [
"MIT"
] | null | null | null | packages/modification_rules.py | VoigtLab/ripp-design | 5a83cc0e38b879d548ba836af5a9dadbe83aeadd | [
"MIT"
] | null | null | null | packages/modification_rules.py | VoigtLab/ripp-design | 5a83cc0e38b879d548ba836af5a9dadbe83aeadd | [
"MIT"
] | null | null | null |
aas = 'FILWVMYCPAGTSQNEDHKR'
core_rules_r = dict([
['tgnb' , r"[GFL][PHL][DS][TSVH][T][IMEH][VSR][T][EKRSAVLG][T][ITS][E][NSQM][AVRFW][D][PI][DS][EAMW][YLST][FYEP][LAFQG]"],
['plpxy', r"[AT][VTCQSNKRP][AS][A][MLN][Y][G][VATS][V][FITEKP][P]"],
['paap' , r"[E][E][NSTDKRYV][AMTGP][MVSTNHD][YF][TSAVLWYG][KRSA... | 40.625 | 126 | 0.551795 |
142153febfd732a27d28ccaae5410a49667aa838 | 629 | py | Python | mysort/quick_sort_2.py | UMP-45/Python_Study | 75126a432230b226f27f2a7434d848bd0ce5696e | [
"Unlicense"
] | 1 | 2022-03-29T09:20:19.000Z | 2022-03-29T09:20:19.000Z | mysort/quick_sort_2.py | UMP-45/Python_Study | 75126a432230b226f27f2a7434d848bd0ce5696e | [
"Unlicense"
] | null | null | null | mysort/quick_sort_2.py | UMP-45/Python_Study | 75126a432230b226f27f2a7434d848bd0ce5696e | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python3
# -*- coding:utf-8 -*-
if __name__=='__main__':
testlist=[1,4,6,0,3,5,7,9,2,8]
n=len(testlist)
quick_sort(testlist,0,n-1)
print(testlist) | 17.472222 | 39 | 0.647059 |
14219aade86da139c62f8446f9211557fa044d42 | 63 | py | Python | tests/__init__.py | griff-rees/uk-boards | bf5726c9716caa5ab1e3a7134e6bc6ee6f4fe5db | [
"MIT"
] | 4 | 2021-05-06T13:14:17.000Z | 2022-01-17T17:25:11.000Z | tests/__init__.py | griff-rees/ukboards | 338075813e7ac47a2f1c4f1dc8a16f92ea0fac68 | [
"MIT"
] | 139 | 2020-12-20T18:49:02.000Z | 2022-03-31T18:25:08.000Z | tests/__init__.py | spool/uk_boards | bf5726c9716caa5ab1e3a7134e6bc6ee6f4fe5db | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Unit test package for ukboards."""
| 15.75 | 37 | 0.571429 |
142238b3e9c405d99ac6dba9ee0ddd6daa8d498b | 761 | py | Python | Enroll.py | olawale0254/Student-enrolment-Predictions- | 039b3a46cf8a99543cb705eaaca9b8d9d44d1da6 | [
"MIT"
] | null | null | null | Enroll.py | olawale0254/Student-enrolment-Predictions- | 039b3a46cf8a99543cb705eaaca9b8d9d44d1da6 | [
"MIT"
] | null | null | null | Enroll.py | olawale0254/Student-enrolment-Predictions- | 039b3a46cf8a99543cb705eaaca9b8d9d44d1da6 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
# In[2]:
import pandas as pd
import numpy as np
# In[3]:
# reading data
data = pd.read_csv('dattaa.csv')
# In[4]:
X = data.drop('verdit', axis=1).values
y = data.verdit.values
# In[5]:
# splitting data as X_train and X_test
from sklearn.model_selection import train_t... | 14.634615 | 91 | 0.729304 |
1422e6d346738741bc192a1637741c5504620cc0 | 172 | py | Python | Out-20-2021/ex008.py | gianbianchi/Uniso | 3abd036bde0b9d9e02ae4f95bae10af4f0a0bae7 | [
"MIT"
] | null | null | null | Out-20-2021/ex008.py | gianbianchi/Uniso | 3abd036bde0b9d9e02ae4f95bae10af4f0a0bae7 | [
"MIT"
] | null | null | null | Out-20-2021/ex008.py | gianbianchi/Uniso | 3abd036bde0b9d9e02ae4f95bae10af4f0a0bae7 | [
"MIT"
] | null | null | null | #Desenvolva um gerador de tabuada
n = int(input("Tabuada de que nmero? "))
i = 0
while i < 10:
print("{} X {} = {}".format(n, i + 1, (n*(i + 1))))
i = i + 1
| 19.111111 | 55 | 0.5 |
1422fadb9413758027aa22e397b5b6a3c5603dfb | 1,430 | py | Python | doto/__init__.py | raphaelahrens/doto | e1a8db42a29a9844322ecc58576a18d4782bfa1d | [
"BSD-2-Clause"
] | 1 | 2016-05-03T12:38:30.000Z | 2016-05-03T12:38:30.000Z | doto/__init__.py | raphaelahrens/doto | e1a8db42a29a9844322ecc58576a18d4782bfa1d | [
"BSD-2-Clause"
] | null | null | null | doto/__init__.py | raphaelahrens/doto | e1a8db42a29a9844322ecc58576a18d4782bfa1d | [
"BSD-2-Clause"
] | null | null | null | """ Doto main module """
import argparse
import shutil
import doto.cli
import doto.cli.cmd
import doto.cli.sub_cmds
import doto.defaultconfig
import doto.model
def init_env(commands):
"""
Initialize the enviroment.
This includes
- the parser and subpurser,
- and the enviroment variables... | 26.481481 | 132 | 0.684615 |
142316f2e2f7f3766a103d7cbfe23336f033018a | 534 | py | Python | requests/ungzip-data/example-2.py | whitmans-max/python-examples | 881a8f23f0eebc76816a0078e19951893f0daaaa | [
"MIT"
] | 140 | 2017-02-21T22:49:04.000Z | 2022-03-22T17:51:58.000Z | requests/ungzip-data/example-2.py | whitmans-max/python-examples | 881a8f23f0eebc76816a0078e19951893f0daaaa | [
"MIT"
] | 5 | 2017-12-02T19:55:00.000Z | 2021-09-22T23:18:39.000Z | requests/ungzip-data/example-2.py | whitmans-max/python-examples | 881a8f23f0eebc76816a0078e19951893f0daaaa | [
"MIT"
] | 79 | 2017-01-25T10:53:33.000Z | 2022-03-11T16:13:57.000Z | #!/usr/bin/env python3
'''Display data send as gzip'''
import urllib
import gzip
import io
url = 'http://www.stream-urls.de/webradio'
r = urllib.urlopen(url)
# create file-like object in memory
buf = io.StringIO(r.read())
# create gzip object using file-like object instead of real file on disk
f = gzip.GzipFile... | 17.225806 | 72 | 0.67603 |
1425874ed3b65aa3172f2c1bffc189ea1d8e25c8 | 1,660 | py | Python | sdks/python/apache_beam/utils/plugin.py | charithe/beam | f085cb500730cf0c67c467ac55f92b3c59f52b39 | [
"Apache-2.0"
] | 4 | 2018-09-25T16:10:54.000Z | 2020-07-13T23:52:12.000Z | sdks/python/apache_beam/utils/plugin.py | charithe/beam | f085cb500730cf0c67c467ac55f92b3c59f52b39 | [
"Apache-2.0"
] | 41 | 2018-08-16T23:54:04.000Z | 2022-01-24T20:27:19.000Z | sdks/python/apache_beam/utils/plugin.py | charithe/beam | f085cb500730cf0c67c467ac55f92b3c59f52b39 | [
"Apache-2.0"
] | 6 | 2019-06-02T16:18:52.000Z | 2020-11-04T04:17:08.000Z | #
# 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 us... | 35.319149 | 76 | 0.753012 |
1426c615ae8ca36340d1ad10524328d32710a591 | 2,922 | py | Python | Supertrend Indicator/zrd_login.py | Alfin72/share-trade-indicator | 163710bbbc493987176b00a1b3425a84c10daf0e | [
"Apache-2.0"
] | null | null | null | Supertrend Indicator/zrd_login.py | Alfin72/share-trade-indicator | 163710bbbc493987176b00a1b3425a84c10daf0e | [
"Apache-2.0"
] | null | null | null | Supertrend Indicator/zrd_login.py | Alfin72/share-trade-indicator | 163710bbbc493987176b00a1b3425a84c10daf0e | [
"Apache-2.0"
] | null | null | null | from kiteconnect import KiteConnect
from kiteconnect import KiteTicker
import pdb
import pandas as pd
import datetime
import os
api_k = "put_your_api_key_here" # api_key
api_s = "put_your_api_secret_here" # api_secret
filename = str(datetime.datetime.now().date()) + ' token' + '.txt'
kite = g... | 50.37931 | 1,538 | 0.675565 |
14276c092a95424f58621576868430ea2d310bcd | 517 | py | Python | artemis/fileman/temporary_filename.py | peteroconnor-bc/artemis | ad2871fae7d986bf10580eec27aee5b7315adad5 | [
"BSD-2-Clause-FreeBSD"
] | 235 | 2016-08-26T14:18:51.000Z | 2022-03-13T10:54:39.000Z | artemis/fileman/temporary_filename.py | peteroconnor-bc/artemis | ad2871fae7d986bf10580eec27aee5b7315adad5 | [
"BSD-2-Clause-FreeBSD"
] | 112 | 2016-04-30T11:48:38.000Z | 2021-01-12T20:17:32.000Z | artemis/fileman/temporary_filename.py | peteroconnor-bc/artemis | ad2871fae7d986bf10580eec27aee5b7315adad5 | [
"BSD-2-Clause-FreeBSD"
] | 31 | 2016-11-05T19:09:19.000Z | 2021-09-13T07:35:40.000Z | import os
from contextlib import contextmanager
| 20.68 | 92 | 0.678917 |
1428015a750bd87472b35db0b734cb0d701b1223 | 91 | py | Python | LUCE-API/luce_vm/luce_django/luce/API/models.py | maastrichtlawtech/webmon-extension | 74b0f449eac4417495e69bb3f6f711bdbebfb2fd | [
"MIT"
] | null | null | null | LUCE-API/luce_vm/luce_django/luce/API/models.py | maastrichtlawtech/webmon-extension | 74b0f449eac4417495e69bb3f6f711bdbebfb2fd | [
"MIT"
] | null | null | null | LUCE-API/luce_vm/luce_django/luce/API/models.py | maastrichtlawtech/webmon-extension | 74b0f449eac4417495e69bb3f6f711bdbebfb2fd | [
"MIT"
] | 1 | 2022-03-31T09:22:49.000Z | 2022-03-31T09:22:49.000Z | from django.db import models
| 18.2 | 33 | 0.747253 |
14291050527211ae9a73fbc73d445b07160f6925 | 46 | py | Python | project/wsgi.py | Hazhzeng/functions-wsgi-demo | 2b876fe04374c85a3f890dd32b928313bec40bdd | [
"MIT"
] | 5 | 2020-02-14T02:38:02.000Z | 2021-11-05T14:11:28.000Z | project/wsgi.py | Hazhzeng/functions-wsgi-demo | 2b876fe04374c85a3f890dd32b928313bec40bdd | [
"MIT"
] | 6 | 2019-11-24T02:42:03.000Z | 2022-03-15T19:57:09.000Z | project/wsgi.py | Hazhzeng/functions-wsgi-demo | 2b876fe04374c85a3f890dd32b928313bec40bdd | [
"MIT"
] | 5 | 2021-02-21T18:24:19.000Z | 2021-11-08T10:59:44.000Z | from . import app
application = app.wsgi_app
| 11.5 | 26 | 0.76087 |
142ba29f3fd4ae894f72c4241be757baca5dc19a | 19,375 | py | Python | emilia/modules/antiflood.py | masterisira/ELIZA_OF-master | 02a7dbf48e4a3d4ee0981e6a074529ab1497aafe | [
"Unlicense"
] | null | null | null | emilia/modules/antiflood.py | masterisira/ELIZA_OF-master | 02a7dbf48e4a3d4ee0981e6a074529ab1497aafe | [
"Unlicense"
] | null | null | null | emilia/modules/antiflood.py | masterisira/ELIZA_OF-master | 02a7dbf48e4a3d4ee0981e6a074529ab1497aafe | [
"Unlicense"
] | null | null | null | import html
from typing import Optional, List
from telegram import Message, Chat, Update, Bot, User, InlineKeyboardButton, InlineKeyboardMarkup, ParseMode, ChatPermissions
from telegram.error import BadRequest
from telegram.ext import Filters, MessageHandler, CommandHandler, run_async, CallbackQueryHandler
from telegr... | 49.935567 | 235 | 0.638813 |
142c155c6fbb50f6d6e41b47affd8bd4a1cac56d | 2,792 | py | Python | type_analysis.py | XYPB/SpecVQGAN | ed3c0f86c41bc408824979305d9c4f6df0877973 | [
"MIT"
] | null | null | null | type_analysis.py | XYPB/SpecVQGAN | ed3c0f86c41bc408824979305d9c4f6df0877973 | [
"MIT"
] | null | null | null | type_analysis.py | XYPB/SpecVQGAN | ed3c0f86c41bc408824979305d9c4f6df0877973 | [
"MIT"
] | null | null | null | import json
import os
AMT_testset = json.load(open('data/AMT_test_set.json', 'r'))
AMT_trainset = json.load(open('data/greatesthit_train_2.00.json', 'r'))
AMT_validset = json.load(open('data/greatesthit_valid_2.00.json', 'r'))
greatest_testset = json.load(open('data/greatesthit_test_2.00.json', 'r'))
record_dir = 'dat... | 32.465116 | 93 | 0.621777 |
142c7611071a9367cf6a272e8d29329b7ce52109 | 193 | py | Python | api/serializers/server.py | lndba/apasa_backend | e0bb96e22a22f6e2a5a2826f225388113473e7e2 | [
"Apache-2.0"
] | 1 | 2019-08-06T07:31:40.000Z | 2019-08-06T07:31:40.000Z | api/serializers/server.py | lndba/apasa_backend | e0bb96e22a22f6e2a5a2826f225388113473e7e2 | [
"Apache-2.0"
] | null | null | null | api/serializers/server.py | lndba/apasa_backend | e0bb96e22a22f6e2a5a2826f225388113473e7e2 | [
"Apache-2.0"
] | null | null | null | from rest_framework import serializers
from api.models import *
| 16.083333 | 57 | 0.720207 |
142db2ec3da35e8ab5c751428643dacab3da2279 | 1,232 | py | Python | tools/data_migration/data_migration/context.py | yantarou/midonet | 11fea2549416588a9170f6ce872790ad907d2a4b | [
"Apache-2.0"
] | 221 | 2015-01-04T17:49:57.000Z | 2021-12-23T16:15:35.000Z | tools/data_migration/data_migration/context.py | yantarou/midonet | 11fea2549416588a9170f6ce872790ad907d2a4b | [
"Apache-2.0"
] | 8 | 2018-05-24T13:36:03.000Z | 2021-02-19T16:01:43.000Z | tools/data_migration/data_migration/context.py | yantarou/midonet | 11fea2549416588a9170f6ce872790ad907d2a4b | [
"Apache-2.0"
] | 95 | 2015-01-07T02:06:23.000Z | 2022-02-23T22:23:55.000Z | # Copyright (C) 2016 Midokura SARL
# 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 require... | 33.297297 | 78 | 0.742695 |
142e0ef36f1e50a80f773ead8542d87b2003badb | 3,905 | py | Python | srs/Tournament.py | jokvedaras/game-framework | 9ff60e15d1beff54f94e280501929664ce59afe7 | [
"Apache-2.0"
] | null | null | null | srs/Tournament.py | jokvedaras/game-framework | 9ff60e15d1beff54f94e280501929664ce59afe7 | [
"Apache-2.0"
] | null | null | null | srs/Tournament.py | jokvedaras/game-framework | 9ff60e15d1beff54f94e280501929664ce59afe7 | [
"Apache-2.0"
] | null | null | null | # Alex Ciaramella and Greg Suner
# Abstract Tournament Class
# Tournament is observable while players are observers
import Message
import Observable
import ScoreKeeper
| 33.663793 | 100 | 0.660691 |
142f394af6643e95062c23f47632b2841495c600 | 2,512 | py | Python | graphics/pellet_swrl_barchart.py | edlectrico/dissertation | eec342383ef4f15968e6417020681a3eb095bf08 | [
"Apache-2.0"
] | null | null | null | graphics/pellet_swrl_barchart.py | edlectrico/dissertation | eec342383ef4f15968e6417020681a3eb095bf08 | [
"Apache-2.0"
] | null | null | null | graphics/pellet_swrl_barchart.py | edlectrico/dissertation | eec342383ef4f15968e6417020681a3eb095bf08 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import matplotlib
matplotlib.rcParams['legend.fancybox'] = True
import matplotlib.pyplot as plt
import numpy as np
#data
x = [1, 2, 3, 4]
#define some data
x = [5000, 10000, 15000, 20000]
pc_mean = [4.770, 6.327, 7.427, 8.147]
s3mini_mean = [96.878, 101.656, 243.981, 331.433]
s3_mean = [84.121,... | 30.26506 | 128 | 0.632166 |
14304bb0fc36ef4f288e68a1bc0d0727900e0859 | 6,039 | py | Python | transfer_learning.py | benedictquartey/Chiromancer | 9dcf2ffaf059680a8fa8c71a37c9156927ccc7ec | [
"MIT"
] | 4 | 2019-07-18T22:50:47.000Z | 2021-01-20T22:02:15.000Z | transfer_learning.py | benedictquartey/Chiromancer | 9dcf2ffaf059680a8fa8c71a37c9156927ccc7ec | [
"MIT"
] | null | null | null | transfer_learning.py | benedictquartey/Chiromancer | 9dcf2ffaf059680a8fa8c71a37c9156927ccc7ec | [
"MIT"
] | 1 | 2019-11-22T13:47:17.000Z | 2019-11-22T13:47:17.000Z | #adapted from PyimageSearch for testing accuracy between my standard NN_model architecture and a popular model
# set the matplotlib backend so figures can be saved in the background
import matplotlib
matplotlib.use("Agg")
import data_processing
from keras.preprocessing.image import ImageDataGenerator
from keras.app... | 28.757143 | 110 | 0.741679 |
143077d32ff1589b7aba438263ce1a1ace1fb22c | 4,174 | py | Python | app/voxity/__init__.py | voxity/vox-ui-api | 9da442a2ae8e5fec92485cf7dc4adf1a560aa8f5 | [
"MIT"
] | null | null | null | app/voxity/__init__.py | voxity/vox-ui-api | 9da442a2ae8e5fec92485cf7dc4adf1a560aa8f5 | [
"MIT"
] | null | null | null | app/voxity/__init__.py | voxity/vox-ui-api | 9da442a2ae8e5fec92485cf7dc4adf1a560aa8f5 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Voxity api module."""
from __future__ import absolute_import, division, unicode_literals
from requests_oauthlib import OAuth2Session
from flask import current_app, session, abort
from datetime import datetime, timedelta
from app.utils import datetime_to_timestamp
from requests.models import R... | 26.585987 | 77 | 0.614279 |
1431ad35fd48b141248d3253a46746d7e3f5e28a | 551 | py | Python | commands/cmdLook.py | fhaynes/slithermud | f14da3d65cdc5187678e8e7cc05e56643a663c56 | [
"Artistic-1.0"
] | null | null | null | commands/cmdLook.py | fhaynes/slithermud | f14da3d65cdc5187678e8e7cc05e56643a663c56 | [
"Artistic-1.0"
] | null | null | null | commands/cmdLook.py | fhaynes/slithermud | f14da3d65cdc5187678e8e7cc05e56643a663c56 | [
"Artistic-1.0"
] | null | null | null | import MudCommand
import MudAction
import MudActionHandler
import MudDatabase
import MudWorld | 34.4375 | 89 | 0.655172 |
14328f5773d881a1cba21ca73ad3e092c25a5373 | 916 | py | Python | servidor.py | robsonsilv4/socket-calculadora | a452163a5d02e2c9dbc0ecce57827010a4feb48d | [
"MIT"
] | null | null | null | servidor.py | robsonsilv4/socket-calculadora | a452163a5d02e2c9dbc0ecce57827010a4feb48d | [
"MIT"
] | null | null | null | servidor.py | robsonsilv4/socket-calculadora | a452163a5d02e2c9dbc0ecce57827010a4feb48d | [
"MIT"
] | null | null | null | import socket
host = ''
porta = 12003
servidor = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
servidor.bind((host, porta))
servidor.listen(1)
print('O servidor est esperando uma operao e dois nmeros...')
while True:
conn, addr = servidor.accept()
msg = conn.recv(1024).decode()
op, a, b = msg.split()
a = i... | 17.283019 | 65 | 0.606987 |
1433e7c6bf5034dbcfa59dccb53b2a3d0e6d70f2 | 277 | py | Python | samples-python1/500-forrange.py | LunaticNeko/chandrakasem-lectures | 5c50bf16e606f54cb341369c812e23a50f1eee94 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | samples-python1/500-forrange.py | LunaticNeko/chandrakasem-lectures | 5c50bf16e606f54cb341369c812e23a50f1eee94 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | samples-python1/500-forrange.py | LunaticNeko/chandrakasem-lectures | 5c50bf16e606f54cb341369c812e23a50f1eee94 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | # for in range
# Print numbers 20XX where XX is 1..20
for i in range(1, 21):
print("20", f"{i:02d}", sep="")
# ^ formatting
# ^ variable/value to format
# ^^ 2 digits, with leading zero
# ^ integer
| 21.307692 | 51 | 0.458484 |
1434ce0589c0a8b52de0980ed3988de52ad85862 | 351 | py | Python | space_mission_design/parturbations/drag.py | astronautix/space_mission_design | d40c327a3d16199607dabe0e40c3ff8003d7f85f | [
"MIT"
] | 3 | 2020-05-26T06:32:47.000Z | 2020-10-04T03:44:12.000Z | space_mission_design/parturbations/drag.py | astronautix/space_mission_design | d40c327a3d16199607dabe0e40c3ff8003d7f85f | [
"MIT"
] | 1 | 2020-05-25T13:11:00.000Z | 2020-05-25T13:11:00.000Z | space_mission_design/parturbations/drag.py | astronautix/space_mission_design | d40c327a3d16199607dabe0e40c3ff8003d7f85f | [
"MIT"
] | 2 | 2020-05-26T06:33:09.000Z | 2021-11-03T15:44:00.000Z | """Dealing with the atmospheric drag
need to be included :
- [ ] Accomodation Coefficient (Cook and other)
- [ ] Diffusive coefficient
- [ ] Abserbtion (?? cf Clestlab)
- [ ] Drag coefficient from a sphere
- [ ] Drag and lift coefficient from a plane (fonction of the angle)
- [ ] Drag force for a sphere
- [ ] Drag an... | 25.071429 | 68 | 0.68661 |
143684501c853bd1f0eecaff8605ff54a74eb3e2 | 1,429 | py | Python | threatstack/icon_threatstack/connection/connection.py | killstrelok/insightconnect-plugins | 911358925f4233ab273dbd8172e8b7b9188ebc01 | [
"MIT"
] | null | null | null | threatstack/icon_threatstack/connection/connection.py | killstrelok/insightconnect-plugins | 911358925f4233ab273dbd8172e8b7b9188ebc01 | [
"MIT"
] | 1 | 2021-02-23T23:57:37.000Z | 2021-02-23T23:57:37.000Z | threatstack/icon_threatstack/connection/connection.py | killstrelok/insightconnect-plugins | 911358925f4233ab273dbd8172e8b7b9188ebc01 | [
"MIT"
] | null | null | null | import insightconnect_plugin_runtime
from .schema import ConnectionSchema, Input
# Custom imports below
from threatstack import ThreatStack
from threatstack.errors import ThreatStackAPIError, ThreatStackClientError, APIRateLimitError
from insightconnect_plugin_runtime.exceptions import ConnectionTestException
import da... | 38.621622 | 101 | 0.635409 |
1437eacaa0c14b24a0c529618cf50cc8b86516e3 | 101 | py | Python | 1-Iniciante-Beginner/1007 - Diferenca - Difference.py | Limarceu/Uri_Online_Judge | 3328dacd5419b5a6bce4cb7dfc38e355e9fdab1f | [
"MIT"
] | null | null | null | 1-Iniciante-Beginner/1007 - Diferenca - Difference.py | Limarceu/Uri_Online_Judge | 3328dacd5419b5a6bce4cb7dfc38e355e9fdab1f | [
"MIT"
] | null | null | null | 1-Iniciante-Beginner/1007 - Diferenca - Difference.py | Limarceu/Uri_Online_Judge | 3328dacd5419b5a6bce4cb7dfc38e355e9fdab1f | [
"MIT"
] | null | null | null | a,b,c,d = int(input()),int(input()),int(input()),int(input())
print('DIFERENCA = {}'.format(a*b-c*d)) | 50.5 | 61 | 0.594059 |
143819e8e38cf9f6b9a218a1dac3ea36b6289b08 | 3,719 | py | Python | src/kgmk/ds/gen/models/tf/base.py | kagemeka/python | 486ce39d97360b61029527bacf00a87fdbcf552c | [
"MIT"
] | null | null | null | src/kgmk/ds/gen/models/tf/base.py | kagemeka/python | 486ce39d97360b61029527bacf00a87fdbcf552c | [
"MIT"
] | null | null | null | src/kgmk/ds/gen/models/tf/base.py | kagemeka/python | 486ce39d97360b61029527bacf00a87fdbcf552c | [
"MIT"
] | null | null | null | import tensorflow as tf
from tensorflow.keras.models \
import (
Model,
)
tf.random.set_seed(0)
from tensorflow.keras import (
layers,
activations,
regularizers,
initializers,
losses,
optimizers,
metrics,
callbacks,
)
from typing import (
Tuple,
List,
)
layers.LSTM
lay... | 17.460094 | 35 | 0.653401 |
143a56af23b19f8f358aefd76e50c5a0b55a7cd6 | 578 | py | Python | Project_Alibaba_workload/Alibaba_cluster_predict_Total/data_preprocess.py | sssssch/jupyter-examples | cf9e26e22dcfa263bcd26323527911cdbcc2cd61 | [
"MIT"
] | 2 | 2020-07-29T13:07:52.000Z | 2021-01-15T09:22:07.000Z | Project_Alibaba_workload/Alibaba_cluster_predict_Total/data_preprocess.py | sssssch/jupyter-examples | cf9e26e22dcfa263bcd26323527911cdbcc2cd61 | [
"MIT"
] | null | null | null | Project_Alibaba_workload/Alibaba_cluster_predict_Total/data_preprocess.py | sssssch/jupyter-examples | cf9e26e22dcfa263bcd26323527911cdbcc2cd61 | [
"MIT"
] | null | null | null | #-*-coding:utf-8-*-
import pandas as pd
dataset = pd.read_csv(
'machine_usage_headed.csv',
index_col=1)
print(dataset.head())
dataset.drop('m_number', axis=1, inplace=True)
dataset.drop('mem_gps', axis=1, inplace=True)
dataset.drop('mpki', axis=1, inplace=True)
print(dataset.head())
dataset.columns = [
'... | 19.931034 | 46 | 0.688581 |
143a71f0538e957183a42d1dc096bccb0dd0d05c | 345 | py | Python | Problems/Two Pointers/easy/MergeStringAlternately/test_merge_string_alternately.py | dolong2110/Algorithm-By-Problems-Python | 31ecc7367aaabdd2b0ac0af7f63ca5796d70c730 | [
"MIT"
] | 1 | 2021-08-16T14:52:05.000Z | 2021-08-16T14:52:05.000Z | Problems/Two Pointers/easy/MergeStringAlternately/test_merge_string_alternately.py | dolong2110/Algorithm-By-Problems-Python | 31ecc7367aaabdd2b0ac0af7f63ca5796d70c730 | [
"MIT"
] | null | null | null | Problems/Two Pointers/easy/MergeStringAlternately/test_merge_string_alternately.py | dolong2110/Algorithm-By-Problems-Python | 31ecc7367aaabdd2b0ac0af7f63ca5796d70c730 | [
"MIT"
] | null | null | null | from unittest import TestCase
from merge_string_alternately import mergeAlternately | 43.125 | 66 | 0.727536 |