repo_name stringlengths 7 111 | __id__ int64 16.6k 19,705B | blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 5 151 | content_id stringlengths 40 40 | detected_licenses list | license_type stringclasses 2
values | repo_url stringlengths 26 130 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 42 | visit_date timestamp[ns] | revision_date timestamp[ns] | committer_date timestamp[ns] | github_id int64 14.6k 687M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 12
values | gha_fork bool 2
classes | gha_event_created_at timestamp[ns] | gha_created_at timestamp[ns] | gha_updated_at timestamp[ns] | gha_pushed_at timestamp[ns] | gha_size int64 0 10.2M ⌀ | gha_stargazers_count int32 0 178k ⌀ | gha_forks_count int32 0 88.9k ⌀ | gha_open_issues_count int32 0 2.72k ⌀ | gha_language stringlengths 1 16 ⌀ | gha_archived bool 1
class | gha_disabled bool 1
class | content stringlengths 10 2.95M | src_encoding stringclasses 5
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 10 2.95M | extension stringclasses 19
values | num_repo_files int64 1 202k | filename stringlengths 4 112 | num_lang_files int64 1 202k | alphanum_fraction float64 0.26 0.89 | alpha_fraction float64 0.2 0.89 | hex_fraction float64 0 0.09 | num_lines int32 1 93.6k | avg_line_length float64 4.57 103 | max_line_length int64 7 931 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
agodoriru/black_hat_python_code | 14,946,486,235,381 | 38fca40a3c245c5ef44e11625615db5a71af6905 | 1516cb356262b0b0ae364a7ea8e16c406bd37f64 | /CP5/REQUEST.py | 9a4d6bd82461f8a531324e1e61042ee1bf05d7b9 | [] | no_license | https://github.com/agodoriru/black_hat_python_code | d47b0729e8dc26d56a803994d4ab1670f0f1d559 | ebddc5a05567a2c25925b6f83fba3da33f5dc1dd | refs/heads/master | 2021-08-22T22:59:36.963045 | 2017-12-01T15:01:24 | 2017-12-01T15:01:24 | 109,213,254 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding:utf-8 -*-
import urllib2
url=""
headers={}
headers['User-agent']="Googlebot"
request=urllib2.Request(url,headers=headers)
response=urllib2.urlopen(request)
print response.read()
response.close() | UTF-8 | Python | false | false | 212 | py | 15 | REQUEST.py | 11 | 0.731132 | 0.712264 | 0 | 14 | 14.214286 | 44 |
kotbegemot/text-analyst | 9,534,827,425,275 | 9fb092a3cd64bb044032c05d68d2d4c0f9524bc4 | f5211410938b863b4b3d37e158eac74a3d676220 | /tests/test_fraud_detect.py | 80c0b5ddf3d891b15a76074e5cc1a3fc9037442d | [
"MIT"
] | permissive | https://github.com/kotbegemot/text-analyst | 643bbb92e2581cac4bf43efe4a3f2ff7f3cf7964 | e91e6a80f4bd672f7119f38dfd67a940de312332 | refs/heads/master | 2018-02-06T17:28:38.086163 | 2016-09-20T09:45:45 | 2016-09-20T09:45:45 | 68,591,710 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from unittest import TestCase
from text_processing.word import detect_fraud
class FraudTestCase(TestCase):
def test_fraud_in_start_one_symbol(self):
is_fraud, word = detect_fraud('aвокадо')
self.assertTrue(is_fraud)
self.assertEqual('авокадо', word)
def test_fraud_in_start_few_symbol... | UTF-8 | Python | false | false | 3,202 | py | 11 | test_fraud_detect.py | 9 | 0.647079 | 0.636272 | 0 | 85 | 33.835294 | 85 |
DimaSapsay/py_dates | 11,510,512,383,633 | 48279b0325a03241b3e0f0cc84fec7325ebf69e0 | 12652411eef24a5f0631ea3082717bf4f1080a23 | /dates.py | b089886419faede687b9addfd5e666adaddf4dbf | [] | no_license | https://github.com/DimaSapsay/py_dates | 7d99d33c30285b981b3de69b844161015534b07e | 76ffef86c5ede047d5b2e23093e3df17d0a53e0a | refs/heads/master | 2020-09-21T13:39:34.557301 | 2019-11-29T08:41:22 | 2019-11-29T08:41:22 | 224,804,930 | 0 | 0 | null | true | 2019-11-29T07:57:29 | 2019-11-29T07:57:28 | 2019-11-29T04:32:32 | 2019-11-29T04:32:29 | 1 | 0 | 0 | 0 | null | false | false | """
You have two dates in the format DD.MM.YYYY.
Calculate the difference between these dates in days.
"""
import datetime
def dates_between(date1, date2) -> int:
"""Calculate the difference"""
date1 = datetime.datetime.strptime(str(date1), '%d.%m.%Y')
date2 = datetime.datetime.strptime(date2, '%d.%m.%Y'... | UTF-8 | Python | false | false | 354 | py | 1 | dates.py | 1 | 0.677966 | 0.655367 | 0 | 13 | 26.230769 | 62 |
Nicholas-t/Cryptio_btc_block_bg_checker | 824,633,752,145 | 7be6e0618b3c8d203f793af3028aa3d11786e48e | 9262ac708b94d7546bca3c36da9735f70f0293e9 | /bitcoin_block_bg_checker/main.py | f2f9e42e1aefc27a07f68f1710fbf1a8e936eeea | [] | no_license | https://github.com/Nicholas-t/Cryptio_btc_block_bg_checker | c6cd546d2999c7cc64c66b5e44f510757fda5590 | 6e7a1ec62100559a4490d6aa5034d77f6a36c141 | refs/heads/master | 2022-02-09T03:41:58.130967 | 2019-07-30T09:11:27 | 2019-07-30T09:11:27 | 197,717,062 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Tue Jul 9 10:57:21 2019
@author: Admin
"""
from bitcoin_block_bg_checker.complete import *
from bitcoin_block_bg_checker.handshake import handshake
from bitcoin_block_bg_checker.blockchain import blockexplorer as blk
import binascii
import codecs
VERSION = 70015
limit = 3
i =... | UTF-8 | Python | false | false | 14,030 | py | 8 | main.py | 7 | 0.573628 | 0.564006 | 0 | 462 | 29.367965 | 102 |
Ro9ueAdmin/django-orchestra | 16,226,386,481,136 | c438baa8e2ed4a595949145a6dbc91f44913964b | be4b394066275072f995a6fa90fd0e9adb68371d | /orchestra/contrib/saas/services/owncloud.py | 2f850f071c38837b55f1215f61f4ff7ea583ae1e | [
"BSD-3-Clause"
] | permissive | https://github.com/Ro9ueAdmin/django-orchestra | dc35345c2fb01a3520784d1dddb33f42da8e0918 | 49c84f13a8f92427b01231615136549fb5be3a78 | refs/heads/master | 2021-06-19T16:15:35.235999 | 2017-06-16T13:33:41 | 2017-06-16T13:33:41 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django import forms
from django.utils.translation import ugettext_lazy as _
from rest_framework import serializers
from .. import settings
from .options import SoftwareService
class OwnCloudService(SoftwareService):
name = 'owncloud'
verbose_name = "ownCloud"
icon = 'orchestra/icons/apps/ownCloud.pn... | UTF-8 | Python | false | false | 371 | py | 529 | owncloud.py | 443 | 0.770889 | 0.770889 | 0 | 13 | 27.538462 | 55 |
jqnv/python_challenges_Bertelsmann_Technology_Scholarship | 7,679,401,530,855 | 4fa0ec247c116334cb8f5b87e04e904cb728bc3e | 6e4ad02763e234f2d1982de64163f4054e30912d | /passwd_to_csv.py | 5f27f204c8cb3f4706db5ea1e04fdbd9ebe24c02 | [] | no_license | https://github.com/jqnv/python_challenges_Bertelsmann_Technology_Scholarship | d8852bc58490621acf7cb84557b1ce80c0f73e8e | cf8505dd5e31e57142bb24bdb982b501cef74af1 | refs/heads/master | 2023-03-15T08:41:07.685075 | 2021-03-12T04:38:12 | 2021-03-12T04:38:12 | 323,754,667 | 2 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | # For this exercise, create a function, passwd_to_csv, that takes two filenames as arguments: the first is a
# passwd-style file to read from, and the second is the name of a file in which to write the output.The new file’s
# contents are the username (index 0) and the user ID (index 2).Note that a record may contain a... | UTF-8 | Python | false | false | 1,491 | py | 65 | passwd_to_csv.py | 56 | 0.657488 | 0.651444 | 0 | 36 | 40.361111 | 114 |
julianMendozaGg/ProyectoFinal | 14,705,968,044,811 | 5e60b853b36f9bd224ea8ed1151f1b526e6d22c1 | d28972e2560a322ce97059d02f40d52f17d2fe34 | /PintarNiveles/Abstraction.py | a1a2087c9404d90cb0310ce910de43a800cf0e63 | [] | no_license | https://github.com/julianMendozaGg/ProyectoFinal | e9ced3e7bb691594e757a4c6ee0340f8ed5fbb7a | ed34480f8bbe2b807062ab398d25dd3ee99a4fb7 | refs/heads/master | 2022-12-02T06:48:18.016735 | 2020-08-17T03:16:42 | 2020-08-17T03:16:42 | 284,527,547 | 0 | 1 | null | false | 2020-08-17T03:16:43 | 2020-08-02T19:29:04 | 2020-08-13T20:59:46 | 2020-08-17T03:16:42 | 1,869 | 0 | 1 | 0 | Python | false | false | from CreadorDeNiveles.Creador import *
import pygame as p
class Abstraction():
def __init__(self, ventana):
self.ventana = ventana
def entregarlvl1(self):
lvl1 = ConcreteImplementation1(self.ventana)
return lvl1.pintarNivel()
def entregarlvl2(self): pass
def entr... | UTF-8 | Python | false | false | 1,503 | py | 13 | Abstraction.py | 13 | 0.500666 | 0.472703 | 0 | 52 | 26.884615 | 71 |
janusnic/django-cropduster | 14,998,025,806,681 | 286c3fffe8d0e7d9ffcd0bf8c601783a222f3f17 | 43a417e36ed6bacd0f59a1e0fa3492afdd5ae032 | /cropduster3/models.py | c0f0632c1351beba6bdb3b1619ef6033262d3509 | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | permissive | https://github.com/janusnic/django-cropduster | 19e8dfdec3b8fcb6b43a991d1c0ace7ea21872ad | cc3eba654c35b7b278facf81085eb11b54e615aa | refs/heads/master | 2021-01-09T07:03:38.596733 | 2015-05-05T13:45:28 | 2015-05-05T13:45:28 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import re
import shutil
import time
import uuid
import os
import datetime
import hashlib
import itertools
import urllib
from PIL import Image as pil
from django.core.exceptions import ValidationError
from django.db import models
from django.db.models.fields.related import ReverseSingleRelatedObjectDescriptor
from dja... | UTF-8 | Python | false | false | 26,928 | py | 33 | models.py | 24 | 0.591689 | 0.589164 | 0 | 809 | 32.285538 | 89 |
jnxyp/PyPractice | 11,493,332,484,595 | 498c206d57f5d85a1ee041ed7dbf4772eb37173d | 5114fd1f7c3be8ea0c0b92ff8addb16cc1287b8c | /src/recycle_bin/PolynomialTransformation.py | be57b7b0123336be6161fd7dd0f954818370beb3 | [] | no_license | https://github.com/jnxyp/PyPractice | 8690d261a8eaed2f7e19bef4a7fc3c4092765569 | 38afc7fe2523b13db0aa8f6e19d47a7c4451e63d | refs/heads/master | 2021-08-28T16:18:35.184871 | 2017-12-12T18:09:11 | 2017-12-12T18:09:11 | 114,022,941 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding: utf-8 -*-
'''
Created on 2017-9-19
@author: jn_xyp
'''
from sympy import *
exp_str = input('Expression:')
x,y = symbols('x y')
exp = expand(exp_str.replace('y=','').replace('^', '**'))
deg = str(exp)
deg = deg.split('+')[0].split('-')
deg = deg[0].split('**')[-1]
print('Parent Function:y=x^' + deg) | UTF-8 | Python | false | false | 319 | py | 82 | PolynomialTransformation.py | 28 | 0.554859 | 0.520376 | 0 | 19 | 15.842105 | 57 |
Ragz875/PythonLearning | 3,805,341,053,980 | 89b4ab1679baa2c5049f624e776f922aeaec317e | 9307b1c233cd5f4838fdb67f4d9ad848a01ce4f9 | /Strings/WordSearch.py | 190063dbc471784b4cc7f977d15e14cfb1a0eb5d | [] | no_license | https://github.com/Ragz875/PythonLearning | 5443f9fe57cb268d97f03d019a5942de5afe9b0c | 3a142c279f999e55b7ba7c13549444eefb70de44 | refs/heads/master | 2023-06-09T03:59:49.810708 | 2021-06-21T17:38:52 | 2021-06-21T17:38:52 | 379,012,027 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | def dirsearch(grid,row,col,word,dir):
if word[0] != grid[row][col]:
return False
# loop trough all directions
for x,y in dir:
#print(f' Direction search {x},{y}')
flag=True
rowd= row + x
cold= col + y
# print(f' Direction search {rowd},{cold}')
# loop thr... | UTF-8 | Python | false | false | 1,497 | py | 108 | WordSearch.py | 106 | 0.516366 | 0.500334 | 0 | 42 | 34.47619 | 130 |
jailukanna/DeepLearning-Module-3 | 4,930,622,466,718 | c5bc309da4b95d73f09b8fbe9d44dea9a6e0b6b9 | 7e34fd5e1802a1bf3674fb3710b416968c51df94 | /Computer Vision/INTRODUCTION/IMPLEMENTATION AND RESULTS OF RCNN/keras_rcnn/layers/object_detection/__init__.py | 8df714534def3224c0a5e874f24b8cb1f437ed7e | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | https://github.com/jailukanna/DeepLearning-Module-3 | 6c5de53d2550398e8e1f1525601c7be57078a276 | 868f51dfa130b405d5426e170ec4bd45bcb62f87 | refs/heads/main | 2023-03-23T14:18:28.388159 | 2021-03-18T13:41:42 | 2021-03-18T13:41:42 | 347,349,705 | 0 | 0 | null | true | 2021-03-13T11:18:18 | 2021-03-13T11:18:18 | 2021-03-13T09:59:23 | 2021-03-13T10:54:35 | 0 | 0 | 0 | 0 | null | false | false | # -*- coding: utf-8 -*-
from ._anchor import Anchor
from ._object_proposal import ObjectProposal
from ._proposal_target import ProposalTarget
| UTF-8 | Python | false | false | 152 | py | 22 | __init__.py | 8 | 0.710526 | 0.703947 | 0 | 7 | 19.714286 | 44 |
joaopmt/competitive-programming | 17,291,538,338,436 | d2e14e3ca9b28793aa8afaa6b03030c73fadee5a | b682c1191c6e7833d3884a8f474279f8a013889e | /programming-challenges/mc821/11-01/stones.py | e327abb0f360ae47533cb1b617a3e1cc6b782ef5 | [] | no_license | https://github.com/joaopmt/competitive-programming | 5969c9428918ba67768648211e5c5f8c6fce9c82 | 0bf8c9a9a852d674b368cf08833903f04b0ed2a8 | refs/heads/master | 2020-04-21T15:47:32.236011 | 2020-04-05T00:52:37 | 2020-04-05T00:52:37 | 169,679,947 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | t = int(input())
for t_ in range(t):
a, b, c = [int(x) for x in input().split()]
count = 0
while b >= 1 and c >= 2:
b -= 1
c -= 2
count += 3
while a >= 1 and b >= 2:
a -= 1
b -= 2
count += 3
print(count)
| UTF-8 | Python | false | false | 273 | py | 161 | stones.py | 119 | 0.380952 | 0.340659 | 0 | 14 | 18.5 | 47 |
gdugas/gtrac | 618,475,335,636 | d49696b6e763c7529cb731e714d45868dd5adb28 | f3cb31ac51d3cb2111edc6cc81cdf8e210e9c137 | /gtrac/ganglia/models.py | 9eeccd13cb2855f29a6f545e9261c86c320609ae | [] | no_license | https://github.com/gdugas/gtrac | e588c3badb5058ea94f4f62b2a1afeec4c70b6a8 | 19527c5d04f1585c0d11dad024fe7db9945cf55b | refs/heads/master | 2020-05-17T10:55:48.086441 | 2014-02-10T16:20:33 | 2014-02-10T16:20:33 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null |
class Metric(object):
TYPES = {
'string': str,
'int8' : int,
'int16' : int,
'int32' : int,
'uint8' : int,
'uint16' : int,
'uint32' : int,
'float' : float,
'double' : float
}
class TypeException(Exception):
pass
de... | UTF-8 | Python | false | false | 3,755 | py | 9 | models.py | 9 | 0.503862 | 0.500133 | 0 | 155 | 23.206452 | 82 |
Poogles/vulcanpy | 15,384,572,888,792 | c9762712ca50bbc21b0394c5855453a0399500fd | 4e028bde5f983ef32d9b06b9d315468d5de686f6 | /vulcan.py | 11c100aa51b3c100667875e3699c25bc3b0a16dd | [
"MIT"
] | permissive | https://github.com/Poogles/vulcanpy | f8712e176a90f8f0417a0cf60df56d1395ca2bd1 | 555cabe2fedfa4841baa59701b1ee8da0f373534 | refs/heads/master | 2020-05-18T11:42:18.485564 | 2015-06-25T13:54:50 | 2015-06-25T13:54:50 | 38,051,887 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import requests
import json
class Vulcan:
def __init__(self, endpoint):
self.endpoint = endpoint
def get_hosts(self):
"""
GET /v2/hosts
"""
resp = requests.get(self.endpoint +
"/v2/hosts")
return resp.json()
def upsert_host(se... | UTF-8 | Python | false | false | 4,656 | py | 1 | vulcan.py | 1 | 0.434278 | 0.426546 | 0 | 155 | 29.03871 | 94 |
uveio/pystats | 16,303,695,869,953 | cc0ea32dc6e9bee04e165f74ef5f168d4e71551d | 2085069caa9f5e893213f3b6a364a2761be81bfb | /forkcore.py | 0b43218896f491ad5a6c29b853ed1079f8d27f85 | [] | no_license | https://github.com/uveio/pystats | 4668593963cd2ed8bc7940eb687028dfe9b80a80 | c6a47507103ed294c3f060fc131d0763ddcc0b9d | refs/heads/master | 2017-12-05T02:26:04.716436 | 2016-03-23T07:47:26 | 2016-03-23T07:47:26 | 83,382,344 | 0 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python
import os
import threading
import select
import socket
class Forkcore(object):
def __init__(self, time_worker, qps_worker, port=3333):
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
s.bind(("", port))
... | UTF-8 | Python | false | false | 3,019 | py | 7 | forkcore.py | 6 | 0.473998 | 0.465717 | 0 | 88 | 33.306818 | 103 |
Clombardi91/GardenSocial | 11,098,195,537,622 | 2af30800fec4a346cf66bf0ec5a52a7efbc4c4f4 | 8098b2a5368b5561b89cd9e261b86582b28d16fb | /garden/forms.py | c144bb580f64ccebf3928ebf9332e2a0666c9bf8 | [] | no_license | https://github.com/Clombardi91/GardenSocial | adf40177cad65b0af1eb06f490602105e0212709 | fe00b6462cab94d3d06703e63b09ccfd8b77b87c | refs/heads/master | 2023-06-24T18:35:51.302103 | 2021-07-12T15:50:39 | 2021-07-12T15:50:39 | 372,952,867 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django import forms
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.models import User
class SignUpForm(UserCreationForm):
first_name = forms.CharField(max_length=30, required=False, help_text='Optional.')
last_name = forms.CharField(max_length=30, required=False, help_te... | UTF-8 | Python | false | false | 788 | py | 12 | forms.py | 7 | 0.717005 | 0.700508 | 0 | 16 | 48.3125 | 117 |
nixawk/hello-python3 | 2,190,433,369,402 | abeff738aa6b844076a92bab8a504a3eb14d1214 | e415e4cdab3d1cd04a4aa587f7ddc59e71977972 | /builtin/algorithm/recursion-Binary Search.py | 67ee3ac4d22cb9943465c78fcdc2a05ece65f80b | [] | no_license | https://github.com/nixawk/hello-python3 | 8c3ebba577b39f545d4a67f3da9b8bb6122d12ea | e0680eb49d260c5e3f06f9690c558f95a851f87c | refs/heads/master | 2022-03-31T23:02:30.225702 | 2019-12-02T10:15:55 | 2019-12-02T10:15:55 | 84,066,942 | 5 | 7 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
# In this section, we describe a classic recursive algorithm, binary search,
# that is used to efficiently locate a target value within a sorted sequence
# of n elements. This is among the most important of computer algorithms,
# and it is the reason that we so often store dat... | UTF-8 | Python | false | false | 1,871 | py | 360 | recursion-Binary Search.py | 355 | 0.67023 | 0.665954 | 0 | 51 | 35.686275 | 78 |
arnav13081994/python-deepdive | 2,018,634,667,111 | de42833d5e68b21cfc8338a5bb6df662a5416bfe | 81dc2411ea6e9b59e80aad01a30e11ab8d581fff | /python-problems/parse_ranges.py | e8341383fab68cff9e09caf0dcce28c8244f4a25 | [] | no_license | https://github.com/arnav13081994/python-deepdive | fb9445e3b5536af34093e993772fa0569df520a1 | 7b906291d044f4ca7387de6e1833a61c9583c966 | refs/heads/master | 2023-07-07T14:05:08.688553 | 2021-08-16T02:45:33 | 2021-08-16T02:45:33 | 254,629,266 | 1 | 0 | null | true | 2020-04-10T12:29:16 | 2020-04-10T12:29:15 | 2020-04-09T20:05:41 | 2020-04-08T04:46:07 | 2,397 | 0 | 0 | 0 | null | false | false | """
Edit the parse_ranges function so that it accepts a string containing ranges of numbers and returns a generator of
the actual numbers contained in the ranges. The range numbers are inclusive.
>>> parse_ranges('0-0,4-8,20-21,43-45')
[0, 4, 5, 6, 7, 8, 20, 21, 43, 44, 45]
"""
# TODO Try to use th ecsv module instea... | UTF-8 | Python | false | false | 1,765 | py | 49 | parse_ranges.py | 47 | 0.556941 | 0.524079 | 0 | 64 | 26.484375 | 114 |
infinit/elle | 1,743,756,773,094 | 097483a42400d9cf48c7a1543a18e939a0051952 | f53891174b71e3b52497b3ab56b30ca7056ef1b7 | /drake/src/drake/deprecation.py | 90ea8d2bb7b9317c457a18a8e7df12cbd3461890 | [
"Apache-2.0",
"AGPL-3.0-only"
] | permissive | https://github.com/infinit/elle | 050e0a3825a585add8899cf8dd8e25b0531c67ce | 1a8f3df18500a9854a514cbaf9824784293ca17a | refs/heads/master | 2023-09-04T01:15:06.820585 | 2022-09-17T08:43:45 | 2022-09-17T08:43:45 | 51,672,792 | 533 | 51 | Apache-2.0 | false | 2023-05-22T21:35:50 | 2016-02-14T00:38:23 | 2023-02-13T18:20:59 | 2023-05-22T21:35:49 | 346,505 | 467 | 43 | 2 | C++ | false | false | # Copyright (C) 2009-2019, Quentin "mefyl" Hocquet
#
# This software is provided "as is" without warranty of any kind,
# either expressed or implied, including but not limited to the
# implied warranties of fitness for a particular purpose.
#
# See the LICENSE file for more information.
import warnings
import functool... | UTF-8 | Python | false | false | 734 | py | 1,521 | deprecation.py | 1,274 | 0.715259 | 0.702997 | 0 | 23 | 30.913043 | 65 |
AbhijithNK94/Python-Basics | 11,716,670,793,570 | 07443346e776f1ffcc67108cc7bad208c6f626a0 | 9b2973f6a69c9234a27d016a2f33e40f28c6e867 | /Collections/Strings.py | 8686aae7c70655f9fa165ead5769d8c9a8db04c3 | [] | no_license | https://github.com/AbhijithNK94/Python-Basics | 8274c4f81a617316ed66bd1efac5644523e690e6 | 09f4a066d4dc31c54ae5186f32fd4ed0cea84908 | refs/heads/main | 2023-06-05T19:15:04.170480 | 2021-06-17T14:20:44 | 2021-06-17T14:20:44 | 360,181,557 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # ####String slicing using character position
# a="hello world"
# print(a[4])
# print(a[1:4])
# print(a[1:8:2]) ##[starting pos : Ending pos : Step size]
# print(a[::2])
# print(a[0:6:1])
# print(a[0:len(a):2])
# print(a[-1])
# print(a[-3:-1])
# print(a[::-1]) ## Character reversing
# ##Deleting the string
... | UTF-8 | Python | false | false | 2,773 | py | 27 | Strings.py | 24 | 0.606563 | 0.596827 | 0 | 103 | 24.941748 | 94 |
sgherro/AWM-Project-Gestione-Acetaia | 8,005,819,089,715 | a0ffc06e79b402eb508340fdd0011ec18dc20ca8 | 3423dd8c22365ae0c2f3bee158ddd76fc859c393 | /honningbrew/operations/serializers.py | a1dfa348f3ccdf757f6ab411f60ec8e1e0cde343 | [] | no_license | https://github.com/sgherro/AWM-Project-Gestione-Acetaia | b00ad530e9117d12009d11ba19a9102ed1bf5126 | d6f9ec6d9d3300945c0b202cb5ecd018fc2eaf06 | refs/heads/main | 2023-03-06T03:03:00.653342 | 2021-02-20T10:12:07 | 2021-02-20T10:12:07 | 311,261,107 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from rest_framework import serializers
from . import models
class SetSerializer(serializers.ModelSerializer):
class Meta:
model = models.Set
fields = '__all__'
class BarrelSerializer(serializers.ModelSerializer):
class Meta:
model = models.Barrel
fields = '__all__'
class Rabbo... | UTF-8 | Python | false | false | 974 | py | 29 | serializers.py | 23 | 0.655031 | 0.655031 | 0 | 37 | 25.027027 | 56 |
tinylcy/LeetCode | 12,704,513,264,216 | 4d7ed144fecb835ff447149de3f93554e81e0f1d | 883da09a86aedc629a57cf4131ff84993340f9e1 | /Distributed System/braft/experiment/ex4.py | 7ec9b019a89d3afb7ed7d8a68b52761e3e8321e7 | [] | no_license | https://github.com/tinylcy/LeetCode | ed21b7231bd0ac81536494025a9f0a1cfe1110db | a78c88a0dbeb1067cdf848deb27840f6ea47dc22 | refs/heads/master | 2020-04-12T08:07:54.255282 | 2018-06-09T11:45:24 | 2018-06-09T11:45:24 | 38,624,416 | 4 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import matplotlib
import matplotlib.pyplot as plt
import numpy as np
x1 = np.linspace(6, 30, 25)
x2 = np.linspace(4, 30, 27)
y1 = [157, 158, 159, 158, 159, 160, 163, 160, 155, 150, 149, 144, 139, 127, 126, 111, 113, 92, 82, 78, 75, 73, 73, 72,
69]
y2 = [118, 106, 78, 72, 62, 55, 47, 43, 39, 37, 35, 30, 27, 26, 21,... | UTF-8 | Python | false | false | 822 | py | 301 | ex4.py | 250 | 0.620438 | 0.441606 | 0 | 32 | 24.6875 | 118 |
kuromatia/AnaClaraBot | 16,071,767,641,014 | 188d2df0d098a70590465bb199dea9c905910998 | d49f7d3823c3ae926338e0112058d9a536da2595 | /patch/current_time/get_datetime.py | 9d4e2a2f825eb859f96cb5d494e4894f884a94b1 | [] | no_license | https://github.com/kuromatia/AnaClaraBot | 96ab8d143378ec70b1b58bcbaf96399ef57e3712 | 352c64be208f35d95fb6873fe021df3edbf8159f | refs/heads/master | 2020-07-06T22:18:44.530976 | 2019-08-31T14:03:28 | 2019-08-31T14:03:28 | 203,155,802 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #! /usr/bin/env python
# coding: utf-8
import re
import datetime
import os
def main():
today = datetime.datetime.today().strftime("%m月%d日%H時%M分")
if re.search("^0", today):
today = today[1:]
with open(os.path.join(os.path.dirname(os.path.abspath(__file__)), "current_time.txt"), "w") as f:
... | UTF-8 | Python | false | false | 405 | py | 12 | get_datetime.py | 8 | 0.583979 | 0.576227 | 0 | 18 | 20.5 | 102 |
joshkel/sentry-on-heroku | 12,154,757,460,914 | 891fe76071fd344c150abc56a6285cb133983dfe | 2b1574719aab94e69e08afd012f2b8ec6e821b09 | /sentry.conf.py | 748859cc3964359759406a1fb3233d3d2e2aa857 | [] | no_license | https://github.com/joshkel/sentry-on-heroku | cff37b750ea59557846e07109de25f8b4fb21f04 | 0d3b056db75283cd84223e55c92fa4df26c03d60 | refs/heads/master | 2021-01-18T03:17:02.358234 | 2015-09-12T19:49:46 | 2015-09-12T19:49:46 | 39,282,671 | 0 | 2 | null | true | 2015-07-18T01:41:40 | 2015-07-18T01:41:40 | 2015-07-18T01:41:40 | 2015-06-28T12:57:37 | 323 | 0 | 0 | 0 | Python | null | null | import logging
import os
import sys
import urlparse
from sentry.conf.server import *
ROOT = os.path.dirname(__file__)
sys.path.append(ROOT)
import dj_database_url
DATABASES = {'default': dj_database_url.config()}
from gevent import monkey
monkey.patch_all()
# Sentry configuration
# --------------------
SENTRY_K... | UTF-8 | Python | false | false | 5,086 | py | 2 | sentry.conf.py | 1 | 0.700551 | 0.695438 | 0 | 197 | 24.817259 | 79 |
catboost/catboost | 13,005,161,007,401 | 67ce62e8d3adedee75cd89cad05ec08a85fc5dd9 | 010279e2ba272d09e9d2c4e903722e5faba2cf7a | /contrib/python/scipy/py3/scipy/linalg/decomp_schur.py | edb70fc14ac657e1891d0f000219737fbddcd547 | [
"Python-2.0",
"LicenseRef-scancode-unknown-license-reference",
"MIT",
"Qhull",
"BSD-3-Clause",
"BSL-1.0",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | https://github.com/catboost/catboost | 854c1a1f439a96f1ae6b48e16644be20aa04dba2 | f5042e35b945aded77b23470ead62d7eacefde92 | refs/heads/master | 2023-09-01T12:14:14.174108 | 2023-09-01T10:01:01 | 2023-09-01T10:22:12 | 97,556,265 | 8,012 | 1,425 | Apache-2.0 | false | 2023-09-11T03:32:32 | 2017-07-18T05:29:04 | 2023-09-10T21:09:54 | 2023-09-11T03:32:31 | 1,618,563 | 7,340 | 1,141 | 516 | Python | false | false | """Schur decomposition functions."""
import numpy
from numpy import asarray_chkfinite, single, asarray, array
from numpy.linalg import norm
# Local imports.
from .misc import LinAlgError, _datacopied
from .lapack import get_lapack_funcs
from .decomp import eigvals
__all__ = ['schur', 'rsf2csf']
_double_precision = ... | UTF-8 | Python | false | false | 10,216 | py | 16,030 | decomp_schur.py | 8,629 | 0.563136 | 0.480521 | 0 | 292 | 33.986301 | 79 |
qmnguyenw/python_py4e | 18,322,330,498,094 | 2a796ab13e24d6323dfcc526f5f6b7452717b1f6 | 8e24e8bba2dd476f9fe612226d24891ef81429b7 | /geeksforgeeks/python/python_all/4_11.py | c6084c6b110fbc4462255ce5eb2367f75d58f75e | [] | no_license | https://github.com/qmnguyenw/python_py4e | fb56c6dc91c49149031a11ca52c9037dc80d5dcf | 84f37412bd43a3b357a17df9ff8811eba16bba6e | refs/heads/master | 2023-06-01T07:58:13.996965 | 2021-06-15T08:39:26 | 2021-06-15T08:39:26 | 349,059,725 | 1 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | Python – Test if any set element exists in List
Given a set and list, the task is to write a python program to check if any
set element exists in the list.
**Examples:**
> **Input :** test_dict1 = test_set = {6, 4, 2, 7, 9, 1}, test_list = [6, 8,
> 10]
>
> **Output :** True
>
> **Explanation :** ... | UTF-8 | Python | false | false | 2,580 | py | 5,210 | 4_11.py | 5,192 | 0.565555 | 0.541505 | 0 | 174 | 12.816092 | 78 |
Jeevankv/LearnPython | 13,967,233,648,463 | 15b5df3f5cb67403b3f05e9c519e556d47e4ed17 | 9ce6a0eaba9f82d536ca4348a1594f90f5d67638 | /zSpeak.py | 6be31acb80e7b8d4db921a9eca046aa001bac486 | [] | no_license | https://github.com/Jeevankv/LearnPython | 028d57ac7b6b68d129e9769541ae509df8ef204d | 504b96795b6ccd107f0b176adc142246f9a26094 | refs/heads/master | 2022-12-21T15:53:27.669206 | 2020-09-01T10:36:38 | 2020-09-01T10:36:38 | 279,399,567 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null |
def speak(str):
from win32com.client import Dispatch
speak = Dispatch('SAPI.spVoice')
speak.Speak(str)
speak("hello world")
import pyttsx3
engine = pyttsx3.init('sapi5')
voices = engine.getProperty('voices')
engine.setProperty('voices',voices[0].id)
def speak2(str):
engine.say(... | UTF-8 | Python | false | false | 426 | py | 73 | zSpeak.py | 63 | 0.678404 | 0.659624 | 0 | 20 | 19.2 | 73 |
stojan211287/ThirdOrderCorrelations | 10,050,223,494,035 | b38293eb30257a1b6877e2af6eb7c443d419eeed | 59152347b5c4fab8ff05f94a6643c0eea4b4b56a | /estimate_third_cumulant.py | 627eed2aa407b36b861888398e2738255cdc16e0 | [] | no_license | https://github.com/stojan211287/ThirdOrderCorrelations | 787e856121df5466b0eb941dc8236582fe0c3864 | 75410055979aa0bd5fe617ceca1e8fde340274d7 | refs/heads/master | 2018-01-11T05:34:54.017759 | 2016-02-26T13:43:11 | 2016-02-26T13:43:11 | 51,293,594 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import numpy as np
import time
import random
#estimate cumulant k^{r,s,t} at indices i, j, k
def estimate(data1, data2, data3):
n = len(data1)
estimate = 0.
no_dist = 0
no_all_eq = 0
no_two_eq = 0
diagonala = 0.
suma = 0.
for i in range(n):
for j in range(n):
for k in range(n):
if i == j == k... | UTF-8 | Python | false | false | 2,737 | py | 9 | estimate_third_cumulant.py | 9 | 0.553891 | 0.522835 | 0 | 114 | 22.991228 | 173 |
jz2327/sample_mapreduce_AWS | 19,215,683,682,829 | 7243ff6a232869f02d0cf226f816f4133fa6e5d1 | 5b968bd30bde7eafd90810757e46df7f22df6063 | /task2-e/reduce.py | ce76b6aa3521b7de190d641b5315e276db3dfc95 | [] | no_license | https://github.com/jz2327/sample_mapreduce_AWS | d8ba3703c6a5febb94d513c2123002856a47b3ac | dd0bcfc9e18b6f3a5128ecbf1609bfe582c18020 | refs/heads/master | 2021-01-01T03:50:39.842511 | 2016-04-29T04:37:40 | 2016-04-29T04:37:40 | 57,354,556 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/python
from operator import itemgetter
import sys
current_key = None
count_sum = 0
datetime_list = []
count_date = 0
# input comes from STDIN (stream data that goes to the program)
for line in sys.stdin:
key, values = line.strip().split('\t')
datetime = values.strip().split(',')[0]
count ... | UTF-8 | Python | false | false | 985 | py | 15 | reduce.py | 15 | 0.590863 | 0.582741 | 0 | 37 | 25.621622 | 86 |
jabrouwer82/DataVizYelp | 16,080,357,588,396 | b963a98d89edbe2a9fed1ae5606a6e951909e48a | 9668f5bba20f46d55fef640286030e06ff032540 | /python/word_counts.py | c644867b115aea4f35f185bc7d8e22060c4deba3 | [] | no_license | https://github.com/jabrouwer82/DataVizYelp | 3f29654ff8cc8334a1a63e1d162e80d76374f176 | 407cc3bf33cfcc6c74e3089322ed6ec3bf11594d | refs/heads/master | 2020-04-01T09:47:33.913886 | 2014-12-16T03:12:25 | 2014-12-16T03:12:25 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #! /bin/python3
import getopt
import json
import nltk
import operator
import os
import random
import sys
from datetime import datetime
from nltk.corpus import stopwords
num_training = 0
opts = getopt.getopt(sys.argv[1:], 'i:d:n:s:', ['input_dir=', 'dev='])
input_dir = './'
for opt, arg in opts[0]:
if opt in ('-i', ... | UTF-8 | Python | false | false | 1,794 | py | 109 | word_counts.py | 14 | 0.665552 | 0.648272 | 0 | 61 | 28.393443 | 88 |
pengwang01/yumanxiang | 18,872,086,324,265 | 3deb6122a20e4afd1422f5eff11d8f324c3eb27b | 51a7fe1406e773eb42c7b873f169e31684b141a4 | /ymx/apps.py | d9e5b939dabd02da9e93c039ffb89dad41e95952 | [] | no_license | https://github.com/pengwang01/yumanxiang | b33a327b825cfdbe4161cee870ac740373ac1d4b | 9a853129a0ccde0506ddbab5406d18d113218a40 | refs/heads/master | 2021-01-02T23:52:08.257850 | 2017-08-11T13:58:43 | 2017-08-11T13:58:43 | 99,512,806 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.apps import AppConfig
class YmxConfig(AppConfig):
name = 'ymx'
| UTF-8 | Python | false | false | 81 | py | 5 | apps.py | 4 | 0.728395 | 0.728395 | 0 | 5 | 15.2 | 33 |
fatihzkaratana/intranet | 2,224,793,068,788 | 9cd4e2faee28a31065e4f810583dd861520d3aff | 3d6b991ae1de688ebac24f80260d8caf5a429402 | /backend/intranet/middleware.py | 8b0e8a7c10df5996200c1043b55a38e1cfa80bd4 | [
"Apache-2.0"
] | permissive | https://github.com/fatihzkaratana/intranet | 192dc7141a44ac45495846abf15a1ae0141dc803 | 161d8b6df0157c3d32472458642bf1f6c5723061 | refs/heads/master | 2020-07-10T14:37:54.178281 | 2014-12-29T10:39:46 | 2014-12-29T10:39:46 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding: utf-8 -*-
from django.conf import settings
from django.http import HttpResponse
from django.utils.importlib import import_module
from django.contrib.sessions.middleware import SessionMiddleware
class TokenSessionMiddleware(SessionMiddleware):
def process_request(self, request):
engine = imp... | UTF-8 | Python | false | false | 1,893 | py | 137 | middleware.py | 65 | 0.666138 | 0.66561 | 0 | 45 | 41.066667 | 85 |
CodingDojoInc/online-python-aug-2016 | 6,571,299,991,587 | ee33b14ae0ca4762637a867665aab9083acda98a | baed12b233efec74d6a39ec238b210948e58b68c | /KevinBrooks/Assignments/Week1/crawler.py | 03c60924e0947f1439a4ce8b0ae4ae111820c7b9 | [] | no_license | https://github.com/CodingDojoInc/online-python-aug-2016 | 53ed2e373b09981d6778eb49972004d8cfdf8df2 | 8745e0ca311b7beefa3903e6431679a90354a884 | refs/heads/master | 2016-09-13T11:17:37.054217 | 2016-09-08T20:41:29 | 2016-09-08T20:41:29 | 64,510,699 | 5 | 22 | null | false | 2016-09-27T23:29:57 | 2016-07-29T21:10:56 | 2016-09-06T16:54:48 | 2016-09-27T22:15:52 | 49,223 | 3 | 15 | 4 | Python | null | null | # import the urlopen function from the urllib2 module
from urllib2 import urlopen
# import the BeautifulSoup function from the bs4 module
from bs4 import BeautifulSoup
# import pprint to print things out in a pretty way
import pprint
# choose the url to crawl
url = 'http://www.codingdojo.com'
# get the result b... | UTF-8 | Python | false | false | 886 | py | 636 | crawler.py | 348 | 0.718962 | 0.71219 | 0 | 28 | 29.642857 | 58 |
UTSDataArena/examples | 19,404,662,272,556 | cabc05e7543513a94598a16bc5ed27a452a50d42 | 4ca82dad17a4ba59264a97b3e73726be9b501ec0 | /Tutorials/exportTut/loadGeom.py | bc2aee15dbdd97eb547fb318c59177ea2110491d | [
"BSD-2-Clause"
] | permissive | https://github.com/UTSDataArena/examples | 48ba5ea044b5e57e0ce8f8ff4a2799ee5d61cbf6 | 0e326207a7ba6d9d86b1327d3d90c811ab6bdf9a | refs/heads/master | 2020-05-21T19:59:32.798995 | 2017-09-14T00:14:09 | 2017-09-14T00:14:09 | 61,348,259 | 2 | 3 | null | null | null | null | null | null | null | null | null | null | null | null | null | from cyclops import *
from omega import *
from daHEngine import LoaderTools
LoaderTools.registerDAPlyLoader()
scene = getSceneManager()
scene.setBackgroundColor(Color(0.1,0.1,0.1,1))
fileToLoad = "mtcars.ply"
def addModel(fileToLoad, faceScreen=False):
# Load a static model
mdlModel = ModelInfo()
mdlModel.name... | UTF-8 | Python | false | false | 1,227 | py | 111 | loadGeom.py | 43 | 0.788101 | 0.782396 | 0 | 48 | 24.5625 | 57 |
fullgore/aclook | 1,700,807,089,810 | 07fcb9daf31c971f90e226d3aef44dea8aca9783 | 5aa4b37ccde948ecbbd5a54f31d19e0139ae2aee | /app/application.py | 153c8919414ef95d96dd560f15585b06f8b6034c | [
"MIT"
] | permissive | https://github.com/fullgore/aclook | 2cdc41f2228d0b31512316d145809b81e380c958 | af27e5aff45719420cc4120b98ba3566b8668349 | refs/heads/master | 2022-04-24T05:27:12.958420 | 2020-04-14T09:48:45 | 2020-04-14T09:48:45 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import os
import logging
from flask import Flask
from flask.logging import default_handler
from aclook import appSC
CONFIG_MAPPER = {
'development': 'config.DevelopmentConfig',
'testing': 'config.TestingConfig',
'production': 'config.ProductionConfig',
}
def configure_loggers(app):
loggers = app.co... | UTF-8 | Python | false | false | 1,027 | py | 22 | application.py | 18 | 0.697176 | 0.697176 | 0 | 45 | 21.822222 | 71 |
Thawster/AllTheWorldsAStage | 1,717,986,949,829 | 7f6e4f0b2b165b31cf1358adfee110458620fa0a | 5397221dc8d872722fa2697e149efa18430cbcc9 | /workforce/admin.py | f1f6ec0163d898d7ec8f4ebc86e1c138f205410d | [] | no_license | https://github.com/Thawster/AllTheWorldsAStage | f0c0c603366a4282311ea3b7bc4fc5fe9c3b2b06 | 2136ed26c2012c67ca33c7de2b0edfe4c4b8c3a2 | refs/heads/master | 2021-02-27T00:42:08.054226 | 2020-03-07T07:18:15 | 2020-03-07T07:18:15 | 245,564,374 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.contrib import admin
from workforce.models import Clown
class ClownAdmin(admin.ModelAdmin):
list_display = ('name', 'age', 'description', 'slug', )
admin.site.register(Clown, ClownAdmin)
| UTF-8 | Python | false | false | 207 | py | 13 | admin.py | 7 | 0.73913 | 0.73913 | 0 | 9 | 22 | 59 |
itrevex/adds | 7,327,214,230,917 | 0e3b1e0c8eda201c817787d9a0679fa26d83dd18 | a8099487b8a94950f5be025c353efe9357ece4bf | /src/dxf/dxf.py | 5298e544957c47bdf51622ba2b602f3b536e0fe7 | [] | no_license | https://github.com/itrevex/adds | 3cc5094ee557f83f9934961c49bbaaba8e97db64 | 0568385a8553bad85cf95c0d8655e01305c2b302 | refs/heads/master | 2022-01-20T13:44:27.790242 | 2019-06-03T05:10:38 | 2019-06-03T05:10:38 | 189,927,168 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import ezdxf
from ezdxf.addons import dimstyles, LinearDimension
from common.constants import Constants
from common.utils import Utils
from common.messages import Messages
from common.message_codes import MessageCodes
from .vport import VPort
SHOW_DIMENSIONS = False
class DxfDraw:
def __init__(self, app_data):
... | UTF-8 | Python | false | false | 5,790 | py | 62 | dxf.py | 43 | 0.597064 | 0.593782 | 0 | 168 | 33.470238 | 108 |
martini0117/SeparabilityMembranes | 764,504,226,018 | 1552e6e4ac288ca575367ce040b6787bd6832469 | 1c54040e0180ad99de167c9dda891b70d927d0c2 | /kidney/ShowBoundingBox.py | 1b5dd5ea395881744aa55ef9436ea06336434a8c | [] | no_license | https://github.com/martini0117/SeparabilityMembranes | c7d16d22626905dec698017cb59197cf4b63f80c | f867b50a818d75686b1bffc8260c67d23a745ad2 | refs/heads/main | 2023-03-20T21:04:37.799392 | 2021-03-09T07:57:53 | 2021-03-09T07:57:53 | 338,274,085 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import sys; sys.path.append('/Users/shomakitamiya/Documents/python/snake3D/src/Toolbox')
import sys; sys.path.append('/Users/shomakitamiya/Documents/python/snake3D/src/ellipsoid_fit')
import math
import matplotlib
import geomdl.visualization.VisMPL as VisMPL
import matplotlib.pyplot as plt
import numpy as np
from geo... | UTF-8 | Python | false | false | 4,724 | py | 99 | ShowBoundingBox.py | 93 | 0.588273 | 0.562024 | 0 | 127 | 36.204724 | 143 |
Fenykepy/phiroom | 9,448,928,082,529 | 7613715732446e2a8e7404c82214f5b591fafdc9 | 7b08198d079b17317211249764b0b0a063b0ecf8 | /src/api/phiroom/serializers.py | de11c99b56990cb7d9de7d3bb9527039e302abda | [] | no_license | https://github.com/Fenykepy/phiroom | 5bc04c6a503f86e2fd12ccafa7370922871e9f6c | ed2e458dfb6247d7fe487f4795a855a5275cfe5f | refs/heads/master | 2020-04-12T08:13:15.614372 | 2017-03-06T12:08:20 | 2017-03-06T12:08:20 | 19,888,777 | 1 | 0 | null | false | 2014-08-19T07:04:15 | 2014-05-17T14:43:18 | 2014-08-18T17:05:18 | 2014-08-18T21:39:36 | 129,795 | 1 | 1 | 1 | Python | null | null | from rest_framework import serializers
class CSRFTokenSerializer(serializers.Serializer):
token = serializers.CharField()
| UTF-8 | Python | false | false | 128 | py | 291 | serializers.py | 237 | 0.8125 | 0.8125 | 0 | 4 | 30.75 | 50 |
Maxim-ua/shop | 3,839,700,774,721 | 1c656ee0826226d4c0c8e1447f7ce118e062fd2e | 1dd51ba5d7515ab3e5c16c507f57f98f0e30b2c5 | /catalog/migrations/0004_auto_20160119_1544.py | c8cd4eb0ca842f7d548576f49f46927a98ca98e0 | [] | no_license | https://github.com/Maxim-ua/shop | 5e54df9f60a160315c268e481fefbc71c30e7372 | 419c2970d50b5388510b2305c3ad0d5b674c6232 | refs/heads/master | 2019-07-17T22:37:01.352120 | 2017-04-23T17:33:55 | 2017-04-23T17:33:55 | 72,571,369 | 0 | 0 | null | false | 2016-12-03T16:11:53 | 2016-11-01T19:55:58 | 2016-11-01T20:09:59 | 2016-12-03T16:11:53 | 656 | 0 | 0 | 0 | CSS | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('catalog', '0003_auto_20160112_1648'),
]
operations = [
migrations.AddField(
model_name='product',
na... | UTF-8 | Python | false | false | 1,122 | py | 46 | 0004_auto_20160119_1544.py | 29 | 0.623886 | 0.522282 | 0.090909 | 25 | 43.92 | 478 |
Mrsbutton13/rage-quit | 9,259,949,490,615 | 433621214721f780b4c35f7b554f4c2e48c8fff7 | 3aea98766d1f1d493088f0ccae480e57c2d6a284 | /app/models/gameComment.py | b394e478ef912c278d60c44501f918afe361e9b2 | [] | no_license | https://github.com/Mrsbutton13/rage-quit | 079b07fda573913a8ccab37247b41258a4880009 | aaced86bfa3448eee9a6268dc0d3c157da9d1e33 | refs/heads/main | 2023-05-10T13:41:53.727635 | 2021-06-19T01:05:16 | 2021-06-19T01:05:16 | 352,738,288 | 1 | 0 | null | false | 2021-04-23T01:57:30 | 2021-03-29T18:03:37 | 2021-04-22T03:46:15 | 2021-04-23T01:57:30 | 3,803 | 1 | 0 | 0 | Python | false | false | from .db import db
class GameComment(db.Model):
__tablename__ = 'gameComments'
id = db.Column(db.Integer, primary_key=True)
body = db.Column(db.Text)
user_id = db.Column(db.Integer, db.ForeignKey('users.id'), nullable=False)
game_id = db.Column(db.Integer, db.ForeignKey('games.id'), nullable=False)
d... | UTF-8 | Python | false | false | 463 | py | 90 | gameComment.py | 68 | 0.62635 | 0.62635 | 0 | 20 | 22.2 | 76 |
nonepkg/nonebot-plugin-todo | 6,313,601,972,775 | 85bf0918c2f9338dfe2ea3ed23d45f7bf92bbfc2 | 95c1206c157d94bc2ad56f1ffc4a9e43124174c4 | /nonebot_plugin_todo/__init__.py | ff92d36c6d422c6bde2ffb2e06a55f962851594c | [
"MIT",
"Python-2.0"
] | permissive | https://github.com/nonepkg/nonebot-plugin-todo | 3a67ce4deaf0d1c9f7ee34a55b2a9e8ad2ae7450 | a5a7424ee36590dfb67ecb8169bab0129d3ac2b0 | refs/heads/master | 2023-04-04T03:14:56.736347 | 2021-04-17T14:49:03 | 2021-04-17T14:49:03 | 357,260,968 | 3 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | from nonebot.plugin import on_shell_command, require
from nonebot.typing import T_State
from nonebot.adapters.cqhttp import (
unescape,
Bot,
Event,
Message,
PrivateMessageEvent,
GroupMessageEvent,
)
from nonebot import get_bots
from .parser import todo_parser, handle_scheduler
scheduler = requ... | UTF-8 | Python | false | false | 1,608 | py | 7 | __init__.py | 4 | 0.616751 | 0.616117 | 0 | 57 | 26.649123 | 84 |
bpn21/django-backend--crud-and-auth | 412,316,898,949 | d5c82f89bf7e242d6b075137c2fbeeebeef12b8e | 75dab02a690413bb05f1130229bccb2a78a70b7d | /my_project/book/views.py | 7e06d66c23c5065bcc4265dd34e9bda1b3852dde | [] | no_license | https://github.com/bpn21/django-backend--crud-and-auth | 04801a7eca3a4b3b28d479134175205d05961eaa | 023050a945f8bc9d9b0a356d0ba61a9a04e7b6c3 | refs/heads/master | 2023-01-13T05:19:08.958938 | 2020-11-10T16:40:09 | 2020-11-10T16:40:09 | 307,263,626 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null |
from rest_framework import viewsets
from . import models
from . import serializers
from .serializers import ProductSerializer,CategorySerializer
from rest_framework.authentication import SessionAuthentication, BasicAuthentication
from rest_framework.permissions import IsAuthenticated
from rest_framework.response impor... | UTF-8 | Python | false | false | 2,423 | py | 15 | views.py | 11 | 0.688816 | 0.688816 | 0 | 88 | 26.5 | 84 |
linhvo/umbelapi | 5,523,327,944,301 | fc8b2d748ee0af02ec3866e092cc197e42a044d5 | aeb991b6e714046ae1827b350256c30b38690786 | /core/api/profile.py | 27cef7e1b186119b1739a738498d608d00c9df14 | [] | no_license | https://github.com/linhvo/umbelapi | c47d9166ac18c0f5ff160cefbf671a16a4908655 | 50bfde474696ef598b97c1024ee9130620d9356f | refs/heads/master | 2021-01-22T04:40:31.886554 | 2015-04-20T02:33:32 | 2015-04-20T02:33:32 | 33,888,163 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from rest_framework import viewsets, serializers, mixins
from core.models import Profile
class UserProfileSerializer(serializers.ModelSerializer):
class Meta:
model = Profile
fields = ('id', 'created', 'last_mod')
class UserProfileViewSet(mixins.RetrieveModelMixin,
mixins... | UTF-8 | Python | false | false | 489 | py | 15 | profile.py | 11 | 0.683027 | 0.683027 | 0 | 15 | 31.666667 | 57 |
MarvinTeichmann/TorchLab | 14,001,593,395,178 | 0eae20738eb68e861c9924e822f1880fe094a5c2 | 8b941c71ad2919e223b716fbafaca382695ae3dd | /torchlab/loss/__init__.py | 8dec2bbf3a0d3a10bb2d22da69fa5f0fbc11ee03 | [
"MIT"
] | permissive | https://github.com/MarvinTeichmann/TorchLab | 1f79b4f6afc36e202d9a12328962fdad18312855 | b02cbbb0f8ad2115df86a1c09120ec8131b91be1 | refs/heads/master | 2023-08-10T21:25:11.442958 | 2023-08-02T03:24:43 | 2023-08-02T03:24:43 | 205,008,475 | 3 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from . import loss
from .loss import *
| UTF-8 | Python | false | false | 39 | py | 76 | __init__.py | 68 | 0.717949 | 0.717949 | 0 | 2 | 18.5 | 19 |
sh-ebrahimi/Edge_Cache_Sim | 13,700,945,720,270 | 5a355f20fcb20ccd05a30dc46d18ced9e65c7eed | 6f65c2819a507e86d0ebc0490393ff5d3861391e | /codes/node.py | 4fdcf55f28adb7d8a6d259055692b95890cc3ea9 | [] | no_license | https://github.com/sh-ebrahimi/Edge_Cache_Sim | 04a0425ef54abdbb03636cb39cf6c0857e824bf0 | 36223b856a47afb43ed7705537142e87ad10dd38 | refs/heads/master | 2022-05-29T16:13:56.084383 | 2022-05-14T05:40:40 | 2022-05-14T05:40:40 | 156,227,040 | 18 | 7 | null | false | 2018-11-21T06:36:03 | 2018-11-05T14:02:30 | 2018-11-10T15:14:49 | 2018-11-21T06:36:02 | 1,641 | 0 | 1 | 0 | Python | false | null | import random
from packet import DataPacket , InterestPacket
from globals import time , timeComparator, getTime , addTime , logging
from decorators import debug
class Node:
name = ""
memorySize = None
totalPower = None
residualPower = None
processingPowerUnit = None
transmissionPowerUnit = No... | UTF-8 | Python | false | false | 20,059 | py | 20 | node.py | 9 | 0.575652 | 0.570118 | 0 | 446 | 43.977578 | 219 |
maiahillel/ColorConverter | 7,000,796,736,761 | 2413708be343b70137711e3e41310aef93402331 | 4e9c279b2f5bf360b9676809f2c10b6fc993d9bf | /VideoWidget.py | 5e12c8aaed5f2c6c701bf7ba53eb8a6ab84ec0d6 | [] | no_license | https://github.com/maiahillel/ColorConverter | f3546423d499c49716806637fa611fe17014c9ad | ad347827b97eb94f03b63a9bbf445ad0ec5accdf | refs/heads/master | 2021-01-21T13:43:48.439843 | 2016-05-21T08:48:12 | 2016-05-21T08:48:12 | 49,712,341 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # coding=utf8
# Copyright (C) 2011 Saúl Ibarra Corretgé <saghul@gmail.com>
#
# Some inspiration taken from: http://www.morethantechnical.com/2009/03/05/qt-opencv-combined-for-face-detecting-qwidgets/
import ColorConverter
import sys
sys.path.append('/usr/lib/pymodules/python2.7/')
sys.path.append('/usr/lib/python2.... | UTF-8 | Python | false | false | 2,162 | py | 12 | VideoWidget.py | 11 | 0.64537 | 0.627778 | 0 | 72 | 29 | 122 |
Kirill888/odc-tools | 7,980,049,264,485 | ccd9fb63d8dffe57625c2c996e82908747cef1fb | 27a87acc82d6ab6ba84e90a76c510d3c1cb5c0ca | /apps/dc_tools/tests/test_azure_to_dc.py | 6573127688429ab43563f704f5ab40d110eadf7b | [
"Apache-2.0"
] | permissive | https://github.com/Kirill888/odc-tools | 8540315794d0f4836d12d12d24fb83746ca0b9dc | 2477849cc92bf32c087805beb8043e6524515da7 | refs/heads/develop | 2023-07-19T06:46:31.907368 | 2021-09-15T03:23:41 | 2021-09-15T03:34:11 | 385,593,169 | 0 | 0 | Apache-2.0 | true | 2021-08-20T08:31:26 | 2021-07-13T12:17:41 | 2021-08-19T02:14:23 | 2021-08-20T08:24:49 | 3,528 | 0 | 0 | 1 | Python | false | false | # Tests using the Click framework the azure-to-dc CLI tool | UTF-8 | Python | false | false | 58 | py | 129 | test_azure_to_dc.py | 90 | 0.793103 | 0.793103 | 0 | 1 | 58 | 58 |
WarmongeringBeaver/hera_sim | 16,801,912,084,174 | 4c203ce81ed1fb14984d60f5165553e03c97f1bd | 5f93984387d7326695d4df88321b29cc477059ba | /hera_sim/components.py | cdb1bdee164842a445ca09af7543589046949cb4 | [
"MIT"
] | permissive | https://github.com/WarmongeringBeaver/hera_sim | 640434d4e3482f53c2bdd19b54b7369502da44d6 | 7e8b317a4fed5c75c273405a1d123a84073793b4 | refs/heads/main | 2023-07-15T19:30:40.898909 | 2021-08-23T14:19:08 | 2021-08-23T14:19:08 | 375,382,892 | 0 | 0 | NOASSERTION | true | 2021-07-27T20:01:20 | 2021-06-09T14:24:27 | 2021-07-26T07:28:40 | 2021-07-27T20:01:18 | 57,929 | 0 | 0 | 0 | Python | false | false | """A module providing discoverability features for hera_sim."""
from __future__ import annotations
import re
from abc import abstractmethod, ABCMeta
from copy import deepcopy
from .defaults import defaults
from typing import Dict, Optional, Tuple, Type
from types import new_class
from collections import defaultdict
_... | UTF-8 | Python | false | false | 11,289 | py | 72 | components.py | 45 | 0.64399 | 0.643458 | 0 | 297 | 37.010101 | 88 |
QColeman97/BrahmsRestoreML | 5,823,975,692,164 | 6883f7c180a36ee96de54902055790303d050167 | 9a0048ab1342a0a013202551ce93ec6d9cf69b37 | /spgm_demo.py | eb86c42f155dddd2c4308d1581870c83411e593a | [] | no_license | https://github.com/QColeman97/BrahmsRestoreML | 3280c0c54af1a36fa2b0a938d563401303cb0349 | 1504835dd981481a8f9a1c1f24ae4293e0ba225b | refs/heads/master | 2023-07-04T14:35:59.705274 | 2021-08-12T01:17:11 | 2021-08-12T01:17:11 | 302,243,939 | 3 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from audio_data_processing import EPSILON, PIANO_WDW_SIZE, make_spectrogram
from matplotlib.ticker import FuncFormatter
import matplotlib.pyplot as plt
import matplotlib.cm as cm
import numpy as np
from librosa.display import specshow
import librosa
from scipy.io import wavfile
# # Fixing random state for reproducibil... | UTF-8 | Python | false | false | 3,278 | py | 1,923 | spgm_demo.py | 48 | 0.651007 | 0.616229 | 0 | 103 | 30.834951 | 79 |
akashverma13/speedPI | 5,806,795,808,337 | 4ec89e78a76950667d2e4fa54b1e318aff90027b | d8a5c690d873a785bd8eb77007d5a1373179ad4e | /code/speedtest.py | d87471b44a0a0538bb8a49b001b74713bce81a47 | [] | no_license | https://github.com/akashverma13/speedPI | 4b072d691a85f072a9425ab636ee366e0fc28aaa | 156cf3cc70e339da34f6a5a04166739a1862ca52 | refs/heads/master | 2022-03-30T14:07:22.665556 | 2020-01-31T15:56:17 | 2020-01-31T15:56:17 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #pip install speedtest-cli
import speedtest
#Codice necessario per il display LCD
import time
from RPLCD import CharLCD
import socket
import fcntl
import struct
#Funzione che mi ritorna l'indirizzo Ip
def ipAddress(ifname):
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
return socket.inet_ntoa(fcntl.ioct... | UTF-8 | Python | false | false | 2,657 | py | 5 | speedtest.py | 2 | 0.568362 | 0.53258 | 0 | 84 | 30.607143 | 83 |
aatelitsina/Data_mining_course | 7,730,941,175,768 | bc77126ac9ed620c621a1364d3b014dc299b7e7f | 0c9a73060c5798d8339abb5f8cdd106f8d92e7cb | /homework_2.py | addc7d6a1cfee926ac6564f40cc32ccf06823211 | [] | no_license | https://github.com/aatelitsina/Data_mining_course | fd158585ef05ef41130235a2672a0ef699a8d75e | a202499136ceb57fe392a8bc691185c395610e6f | refs/heads/master | 2020-03-29T20:41:13.891286 | 2018-10-08T21:06:50 | 2018-10-08T21:06:50 | 150,325,070 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # 1. (3 балла)
# Напишите программу, в которой пользователь вводит числа по одному, пока не введет слово "done". Для полученного списка
# чисел найдите среднее арифметическое. Для ввода используйте встроенную функцию input().
# numbers = []
# user_str = ''
# avg_arch = 0
# min_val = None
# max_val = None
# while user_s... | UTF-8 | Python | false | false | 3,833 | py | 3 | homework_2.py | 2 | 0.659415 | 0.636947 | 0 | 68 | 40.220588 | 141 |
Hank-learner/load_balancer_server | 9,457,517,998,686 | 903f8d0a7ce29960ae82bd4be2df76f14f4d75d4 | 4f56329552ea9a3d908007a7e192b99ac605fe5b | /autoreq.py | 85e285fda4580683f788ff838ce37a7dab4b1bd4 | [] | no_license | https://github.com/Hank-learner/load_balancer_server | 1dc63477d401b9e3e6c561f1dd19594f01f0c11b | a5a5159588b97c06bef392b892b53ce157c9a14c | refs/heads/master | 2020-08-14T05:42:52.950847 | 2019-10-14T17:48:15 | 2019-10-14T17:48:15 | 215,108,221 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import requests
import random
idval = random.randint(1,1000)
cpu = random.randint(1,30)
memory = random.randint(1,220)
reqtime = random.randint(0,1000)
tabledetails = {'ID':idval,'CPU_required':cpu,'Memory_required':memory ,'time_required_for_completion':reqtime}
request = requests.post("http://localhost:81/loadba... | UTF-8 | Python | false | false | 345 | py | 6 | autoreq.py | 4 | 0.75942 | 0.704348 | 0 | 12 | 27.833333 | 111 |
FlorianPommerening/msc-python-implementation | 1,829,656,078,807 | 6a06635c47ea6b17d38ca0489af58c7e23b0b42f | 3bb61d4b9d2cadc5d67cc8125bf9861ad9ee411b | /implementation/src/search/lmcut.py | e0d73ade8195668d1a56ac98c95cfea463253a60 | [] | no_license | https://github.com/FlorianPommerening/msc-python-implementation | 5df2a4f390ba83db9bf1273147f936140462479c | 58d3fdfca44568443e561855a251f6229127605f | refs/heads/master | 2022-11-05T18:41:18.051051 | 2012-06-22T12:41:29 | 2012-06-22T12:41:29 | 274,693,234 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from collections import defaultdict
from .hmax import hmax
from .Debug import debug_message
def calculate_lmcut(task, debug_value_list=None):
'''
Convenience method to calculate heuristic value of initial state
'''
return LMcut().initial_state(task, debug_value_list).heuristic_value
class LM... | UTF-8 | Python | false | false | 8,673 | py | 53 | lmcut.py | 41 | 0.568661 | 0.566355 | 0 | 197 | 41.984772 | 125 |
miamor/pwcrack_web | 17,557,826,325,437 | 384324599f2b0619922ed9554aaf38605346b7e9 | d757f2ef493f0b33a6a4567da51c9220d30c5ee9 | /app/lib/api/definitions/node.py | eb8979e5333fb271a852d649d6ce78394b29ed54 | [] | no_license | https://github.com/miamor/pwcrack_web | 1c72bba9a93faa1e75e36a61f0da71b081d8d84f | a270bf23643945408f91476682c383d6df9801d8 | refs/heads/master | 2023-04-23T06:59:10.316997 | 2021-05-10T06:34:56 | 2021-05-10T06:34:56 | 333,353,095 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | class Node:
def __init__(self):
self.id = 0
self.name = ''
self.hostname = ''
self.port = 0
self.username = ''
self.password = ''
self.active = True
| UTF-8 | Python | false | false | 209 | py | 54 | node.py | 26 | 0.449761 | 0.440191 | 0 | 9 | 22.222222 | 26 |
BinaryScary/WPA-Looter | 14,851,996,944,946 | e3fb0e961d33b22f4f2e93c79faa6b0bfc31f716 | 8f2c2317858a8b93049809092a916cbf6efa5535 | /wpa-looter.py | e769163ce559a700d57b28e7aaf0ffde02ab7357 | [] | no_license | https://github.com/BinaryScary/WPA-Looter | bee5ca64134496204766223ebf559d66c37a6217 | 34a04feca7ec36c9eda740d244db5d424fcc8da1 | refs/heads/master | 2023-06-01T08:11:27.930197 | 2021-06-19T20:25:57 | 2021-06-19T20:25:57 | 377,934,537 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python3
import pyshark
import sys
from tqdm import tqdm
if __name__ == "__main__":
if len(sys.argv) <= 1:
print("Provide packet capture file")
quit()
# parse EAPOL handshakes
eapol = pyshark.FileCapture(sys.argv[1],display_filter="eapol")
messages = {2:set(),3:set(),4:se... | UTF-8 | Python | false | false | 2,777 | py | 2 | wpa-looter.py | 1 | 0.549874 | 0.538711 | 0 | 88 | 30.545455 | 104 |
santhosh-kumar/AlgorithmsAndDataStructures | 4,647,154,640,853 | 2566cdaf1070076a2d62a1588c613735a29d1c7d | d77e61d5a9eb08736d5c3621896a66ab970ccea6 | /python/problems/binary_tree/convert_sorted_array_to_bst.py | ae6535053dd7d6ea56df1b8efcf93f8d5331e5cb | [] | no_license | https://github.com/santhosh-kumar/AlgorithmsAndDataStructures | edc1a296746e2d2b0e1d4c748d050fe12af7b65f | 11f4d25cb211740514c119a60962d075a0817abd | refs/heads/master | 2022-11-15T00:22:53.930170 | 2020-07-10T03:31:30 | 2020-07-10T03:31:30 | 269,263,401 | 2 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | """
Convert Sorted Array to a Balanced Binary Search Tree
Given an array where elements are sorted in ascending order, convert it to a height
balanced BST.
"""
from common.binary_tree import BinaryTreeNode
from common.problem import Problem
class ConvertSortedArrayToBST(Problem):
"""
Convert Sorted Array to ... | UTF-8 | Python | false | false | 1,804 | py | 252 | convert_sorted_array_to_bst.py | 250 | 0.583703 | 0.580377 | 0 | 73 | 23.712329 | 94 |
L30M4GN4/OOP | 4,466,766,021,391 | ea8ad693091997b231a99caf031ef0843f799bec | 7aac602cb4f6f8dbd83805fae084ab4699f43829 | /classes/statistic.py | b11a203095ef64bae61a1112eb87e51359cde8ab | [] | no_license | https://github.com/L30M4GN4/OOP | fcce1dd29f2146ba029fb71505db4ce8933449ce | b6c51cc23ff027b3502187227f20f3f43f6fd765 | refs/heads/master | 2020-06-01T05:33:22.225495 | 2019-06-06T22:29:53 | 2019-06-06T22:29:53 | 190,657,127 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import numpy as np
from math import sqrt
class statistic():
stat_obj = 0
def __init__(self, obj):
self.stat_obj = obj
def expected_value(self, diapason):
self.tmp = self.stat_obj.exp_calculating(diapason)
return sum(self.tmp)/len(self.tmp)
def dispersion(self, diapason):
self.tmp = self.stat_obj.exp_ca... | UTF-8 | Python | false | false | 514 | py | 9 | statistic.py | 8 | 0.717899 | 0.714008 | 0 | 18 | 27.555556 | 62 |
wilyostrich/abitur_psuti | 1,778,116,478,340 | 9fe11baa5fa974cb064420577592f272577ae0f0 | 0e09441ff0440c498d00d66689d094173ca0cd75 | /views/course.py | e173f5ecf4d4182214a013cbeff5019daead0693 | [] | no_license | https://github.com/wilyostrich/abitur_psuti | 6e1ad75200541268028dacfd94b667a6f6df40ca | ac85f2b979d70d3e6f50bd45f02697abc115bbfb | refs/heads/master | 2020-05-26T12:52:11.218689 | 2017-06-12T19:32:20 | 2017-06-12T19:32:20 | 82,478,026 | 3 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | from telebot import types
from views import general
from di_configuration import DIConfige, DIBot
def course(message):
bot = DIBot.di_bot()
keyboard = types.ReplyKeyboardMarkup(resize_keyboard=True, one_time_keyboard=True)
keyboard.row('Инженерный лицей', 'Школа программистов')
keyboard.row('Подготовка... | UTF-8 | Python | false | false | 4,222 | py | 19 | course.py | 17 | 0.541537 | 0.532747 | 0 | 57 | 60.894737 | 120 |
bossjones/openheating | 17,051,020,175,887 | 60fa6147a01f3760aeffc9f75ee8ffc05e785a82 | ed3f903a7bd944d38bb0110f266b2b89e1ff1fdc | /openheating/dbus/tests/easy_suite.py | 31441d46c6deae3ed67dc7872d3937ea4aa7e9fc | [] | no_license | https://github.com/bossjones/openheating | 68e9c38f29c8b0762f5e14afd20798638dd9a9c8 | 99d3705b949a7fd2cb3908014be94a73e8eca7aa | refs/heads/master | 2020-12-01T01:14:54.120483 | 2015-01-26T19:35:04 | 2015-01-26T19:35:04 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from openheating.dbus.tests.basic_tests import suite as basic_suite
from openheating.dbus.tests.client_tests import suite as client_suite
from openheating.dbus.tests.object_tests import suite as object_suite
from openheating.dbus.tests.service_tests import suite as service_suite
import unittest
suite = unittest.TestS... | UTF-8 | Python | false | false | 439 | py | 63 | easy_suite.py | 62 | 0.829157 | 0.829157 | 0 | 12 | 35.583333 | 71 |
wangdi2014/tb-amr-benchmarking | 1,245,540,544,123 | c7d6d00e25ace2e11f71af5d58d8aaa2f9a34743 | c5a004f26bf249f888be3849114dd35dbd24cb24 | /python/evalrescallers/ten_k_reads_download.py | 46818b149d4435dbc1cac01543f5c94aeda976dc | [
"MIT"
] | permissive | https://github.com/wangdi2014/tb-amr-benchmarking | f7cf331608cfe7b9cc8995906d991573323dc87a | 276f4f7f30639dacc62b3e8e395b2d2ce8675089 | refs/heads/master | 2022-03-10T00:41:07.364006 | 2019-11-08T09:37:23 | 2019-11-08T09:37:23 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import csv
import multiprocessing
import os
import subprocess
import evalrescallers
def make_dir(d):
if not os.path.exists(d):
os.mkdir(d)
def download_one_run(run_id, outdir):
success_file = f'{outdir}.success'
fail_file = f'{outdir}.fail'
if os.path.exists(success_file):
return Tr... | UTF-8 | Python | false | false | 4,244 | py | 70 | ten_k_reads_download.py | 27 | 0.585533 | 0.582469 | 0 | 137 | 29.963504 | 99 |
huafengw/facenet | 15,324,443,329,061 | b61046b99d10a12b90498205cd08150b5225741f | f29832f7373a38bfcb41b81f961253343b90d497 | /src/vip_train_tripletloss_spark.py | 69632d36bd295aedb1f9712d9b687370483e92b1 | [
"MIT"
] | permissive | https://github.com/huafengw/facenet | e01e0e43e32af5ed8c7a13fb82527f0ee169b831 | fee32eb9c15918dc0ffcbdf7205b501ba94479e6 | refs/heads/master | 2021-05-08T21:08:28.367600 | 2018-03-19T05:30:25 | 2018-03-19T05:30:25 | 119,630,087 | 0 | 0 | null | true | 2018-01-31T03:33:55 | 2018-01-31T03:33:55 | 2018-01-31T02:12:33 | 2017-12-28T22:26:34 | 2,931 | 0 | 0 | 0 | null | false | null | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from pyspark.context import SparkContext
from pyspark.conf import SparkConf
from tensorflowonspark import TFCluster, TFNode
from datetime import datetime
import os
def main_fun(argv, ctx):
from src import f... | UTF-8 | Python | false | false | 5,836 | py | 6 | vip_train_tripletloss_spark.py | 6 | 0.696196 | 0.684887 | 0 | 117 | 48.871795 | 172 |
aithlab/ppo | 4,844,723,155,327 | dacc2991b464566db1e74ca1bd99b111f31f13ce | f35c7fda0bac151889ff8f412f2932e5ceb33eef | /buffer.py | d4a539b0152b9ddb11105cd85d6cc82c51bb755d | [] | no_license | https://github.com/aithlab/ppo | 0ef1931c535afa7e0d95d5a68c1b1b0fc32b9d79 | 434ec88b37c85c0e9a1ac6170e02d3eded87bc34 | refs/heads/master | 2020-07-23T14:26:26.616219 | 2019-09-15T16:52:47 | 2019-09-15T16:52:47 | 207,591,562 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sat Sep 14 18:25:52 2019
@author: taehwan
"""
import torch
class Buffer():
def __init__(self, K):
self.K = K
self.reset()
def update(self, s, a, next_s, r, log_prob, entropy):
for key, value in zip(self.data.keys(), (s,a,next_s,r,l... | UTF-8 | Python | false | false | 1,599 | py | 6 | buffer.py | 5 | 0.596623 | 0.58349 | 0 | 48 | 32.229167 | 77 |
alexandraback/datacollection | 19,284,403,195,823 | 59622f3abb50419a6c38c11cf7451ea83c11522c | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5639104758808576_0/Python/chengineer/A.py | 7484d4bfeeb753f61b0a3cf9d89e76c9086f56e0 | [] | no_license | https://github.com/alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | null | null | null | null | null | null | null | null | null | import sys
input = str(sys.argv[1]).strip()
output = open(sys.argv[2], 'w')
def calc(S_max, audience):
friends = 0
clapping = 0
for i in range(S_max + 1):
S_i = int(audience[i])
if clapping >= i:
clapping += S_i
else:
add = i - clapping
friends += add
clapping += add + S_i
return friends
with o... | UTF-8 | Python | false | false | 595 | py | 122,470 | A.py | 117,790 | 0.603361 | 0.586555 | 0 | 29 | 19.517241 | 63 |
HailMyHeart/httpProxy | 13,718,125,570,556 | bd67f708dc40d5a238f3188629e5359b8868061a | 695c43f02dfaf36050dc1ae87dc234da296be74d | /HTTP_Proxy/src/main/__init__.py | 91c5aed93cabd6cbc87e85aba0e3b40bcc7ddc87 | [] | no_license | https://github.com/HailMyHeart/httpProxy | 1b4797c9117f58d78a8455c4eee2531a152e833f | 57e1c4211302ef44a82726ffb7d4f28aa0d5715c | refs/heads/master | 2021-01-09T20:01:14.575523 | 2016-06-08T11:36:22 | 2016-06-08T11:36:22 | 60,693,135 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import os,sys,thread,socket
import url
import pickle
import hashlib
CLIENT_NUM = 50 #max client can be connected
MAX_DATA_RECV = 4096 #message max size
redirectFile = open('redirectFile.pkl', 'rb') #phishing words mapping file
forbiddenFile = open('forbiddenFile.pkl', 'rb') ... | UTF-8 | Python | false | false | 5,780 | py | 3 | __init__.py | 3 | 0.503979 | 0.492042 | 0 | 152 | 37.019737 | 302 |
Huib0513/AoC2018 | 8,976,481,675,140 | e28e2c8dfeef34d874f634b1de64c5d5006bde6e | f3be7da4d0f520e60e173c26d0d2069d997e2f85 | /dag8a.py | 8b1dff0de4e9a0cfe58b24a088c91dd7b95a917b | [] | no_license | https://github.com/Huib0513/AoC2018 | 0c29d0a883fe3ae7e83e36bc4a32cd53c5a42f1f | 679dfd69a3458243d09e981e27fbb1e6739ac46d | refs/heads/master | 2020-04-30T08:03:34.241939 | 2019-03-20T09:58:27 | 2019-03-20T09:58:27 | 176,703,992 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!python3
#tree = open('testinput.dag8').read().split(' ')
tree = open('input.dag8').read().split(' ')
print(tree, len(tree))
# Yuck, globale variabele...
index = 0
def verwerkNode():
global index
resultaat = 0
# Lees header
aantalkids = int(tree[index])
aantalmetas = int(tree[index + 1])
in... | UTF-8 | Python | false | false | 1,151 | py | 23 | dag8a.py | 23 | 0.582971 | 0.571677 | 0 | 44 | 25.159091 | 106 |
chivay/contests | 16,003,048,157,117 | 0e730af8de5a882b42943f75b145d0865cd60205 | 65722d9858f1f20a1b3e9c9a9f8f8ace428811ce | /Project Euler/problem12.py | 6668afaca5321c0346c2f821d5d9991e3e242f0f | [] | no_license | https://github.com/chivay/contests | 91699f4e827e4b3a5aa8838de893ae4c16c1069d | 9171ccc2dae6c0a2666ed8b35ba92111f65f116d | refs/heads/master | 2016-09-22T21:38:31.455816 | 2014-04-22T11:54:57 | 2014-04-22T11:54:57 | 60,353,674 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | def CountDivisors(n):
counter = 2
i = 2
while (i**2 <= n):
if (n%i == 0):
counter +=2
i +=1
return counter
add = 0
num = 0
add += 1
num += add
while CountDivisors(num) <= 500:
add += 1
num += add
print num | UTF-8 | Python | false | false | 222 | py | 55 | problem12.py | 55 | 0.554054 | 0.495495 | 0 | 20 | 10.15 | 32 |
nadhirhasan/nfl_impact_detection | 8,057,358,654,810 | 9667ec164c539b54aa40a56efaf74881a5e0ad8d | 86b2d54cc7ac9428166e15a1473539e12ce87e6c | /src/inference/classifier_aux.py | dea64a4859f4612e3e6f6a46e04d07145d8ca97f | [] | no_license | https://github.com/nadhirhasan/nfl_impact_detection | da655231887023ea334595c1380dec6a8b30f3b2 | db375c28138d3db5306d5cbc7e50d9e24d51b102 | refs/heads/main | 2023-03-22T10:39:29.556737 | 2021-01-06T19:33:56 | 2021-01-06T19:33:56 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import torch
import torchvision
import numpy as np
import torch.nn as nn
import resnest.torch as resnest_torch
from params import NUM_WORKERS
from model_zoo.models_cls import RESNETS, forward_with_aux_efficientnet, forward_with_aux_resnet
from utils.torch import load_model_weights
from data.transforms import get_trans... | UTF-8 | Python | false | false | 3,359 | py | 142 | classifier_aux.py | 17 | 0.626675 | 0.622209 | 0 | 122 | 26.532787 | 96 |
MatteoAllemandi/School | 8,108,898,255,107 | 6bb7fb94fa4d4fbd6a9beb3c55e79f285578624f | 8a127272527a19515e0587eefbcc77157061627c | /Sistemi/Crittografia/RSA.py | b68e84d2b940cbdc2c4389f79031382da8ddb340 | [] | no_license | https://github.com/MatteoAllemandi/School | 7191b5934e2423ce0e8d27e8b409c83d3734ad7d | 66005767bd381d55aea1292bfb72d61e5845871c | refs/heads/master | 2021-08-04T18:25:30.373733 | 2020-05-16T20:26:29 | 2020-05-16T20:26:29 | 173,294,869 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | '''Matteo Allemandi RSA in python'''
import math
import random
import numpy as np
def isPrime(n): #controlla se il numero è primo
for p in range(2, int(np.sqrt(n)) + 1):
if (n % p == 0):
return False
return True
def mcm(n1,n2): #tro... | UTF-8 | Python | false | false | 1,868 | py | 30 | RSA.py | 27 | 0.540439 | 0.527584 | 0 | 65 | 27.723077 | 145 |
walinchus/Chapter_27 | 11,381,663,363,724 | d8ea26a6731b0a0ebcbf6d4436a9d83553a90502 | 9ced5dc83bd7e9364ee1bc5ec691584dc637f61c | /scraper.py | fb0bbb452bf497d143710684db11e81135a21a44 | [] | no_license | https://github.com/walinchus/Chapter_27 | 369e6c1125e8c08956d55cdf7d5a55587f2d484d | 3b472dffacd738102b005181769f64de31d27054 | refs/heads/master | 2021-01-25T04:15:45.580630 | 2017-06-05T15:56:18 | 2017-06-05T15:56:18 | 93,418,630 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import scraperwiki
import csv
#guidance on csv library at https://scraperwiki.com/docs/python/python_csv_guide/
#scrape the csv file into new variable 'data'
data = scraperwiki.scrape('https://data.birmingham.gov.uk/dataset/e9c314fc-fb6d-4189-a19c-7eec962733a8/resource/6b00d8f0-3855-4be0-ae2b-6775df64010a/download/tra... | UTF-8 | Python | false | false | 2,343 | py | 1 | scraper.py | 1 | 0.715322 | 0.688434 | 0 | 68 | 33.455882 | 187 |
CheHaoKang/Docker-Flask-MongoDB | 8,065,948,617,287 | e8b983d3093202b9a3b65871d1bbe4e3a17e1fa5 | b71461226b2ebbc46f8effabf6397822b48dd07c | /test_class.py | b39375bab89803ef6f7a28e7ad1f629cdfbaa473 | [] | no_license | https://github.com/CheHaoKang/Docker-Flask-MongoDB | 1735f09b1c60ee43d05010cde0944ec6dd14d75c | 8af46e27825d315551af785c0a02f9c7453df7ac | refs/heads/master | 2020-03-23T09:03:41.852503 | 2018-07-18T01:35:41 | 2018-07-18T01:35:41 | 141,364,679 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from pymongo import MongoClient
import pandas as pd
import numpy as np
class TestClass:
def is_int_float(self, input):
'''Check the numeric type of the input.
If the input is an integer, return 'int'.
If the input is a float, return 'float'.
Neither case, return 'none' '''
... | UTF-8 | Python | false | false | 2,741 | py | 7 | test_class.py | 3 | 0.485224 | 0.467713 | 0 | 89 | 29.797753 | 65 |
CrisRonda/Pandas | 5,050,881,555,273 | ecd05a7abaee79d735574bfcab7fc049cb2bd080 | 73c77e13cff9ec66a8e83481efef5dc4b8ac099a | /playground.py | 2bf5aa57e3285ec706c0fa88b3995315a6f900d2 | [] | no_license | https://github.com/CrisRonda/Pandas | b8ea60f087d84d5c732437cb8a6290c1c6c53581 | 2f0934593880a6678150c983de9f685e53e62858 | refs/heads/master | 2021-03-06T11:33:17.109627 | 2020-03-19T21:44:56 | 2020-03-19T21:44:56 | 246,197,859 | 0 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | import pandas as pd
import numpy as np
df_data = pd.read_csv('Data.csv', encoding="ISO-8859-1")
# Columna para seleccion
df_data.set_index("Date", inplace=True)
df_data = df_data.replace(np.nan, 0)
df_data = df_data.replace("N/A", "0")
df_data = df_data.replace("NR", "0")
df_data['WRank'] = df_data.WRank.astype(int)
d... | UTF-8 | Python | false | false | 839 | py | 19 | playground.py | 6 | 0.674613 | 0.656734 | 0 | 21 | 38.952381 | 77 |
pandichef/django-materialize | 6,657,199,315,177 | cf978cc16c2373c660fbc581c6f61d3c89460564 | b29977caf98ba7b2064b85e1c4c7da9a5f520371 | /django_materialize/admin/apps.py | 46a5318ea313cde8970c98c3216ea643b6286f80 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | https://github.com/pandichef/django-materialize | b12d5cc668f8904d9dd19c720eafe39a5afada59 | 4017f258c91193a1919819133f3ce10aa0cba394 | refs/heads/master | 2021-04-07T08:35:28.559194 | 2018-02-13T22:40:06 | 2018-02-13T22:40:06 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import warnings
from importlib import import_module
from django.apps import AppConfig
from django.contrib import admin
from django.core.urlresolvers import reverse
from django.utils.translation import ugettext_lazy as _
from django.core.urlresolvers import RegexURLResolver, Resolver404
from django.template import Templ... | UTF-8 | Python | false | false | 4,196 | py | 12 | apps.py | 3 | 0.651573 | 0.648475 | 0 | 120 | 33.966667 | 115 |
kryvokhyzha/examples-and-courses | 13,477,607,395,752 | 74af51d7d32776245a32674141a763089481f11f | 24443f1c2bcea7595bf1ba807bdf0b07fbca4b39 | /aischool-mlprod/other/torch_jit.py | c8a59bb5463384c00d4a7a911a769dc069ff449f | [
"MIT"
] | permissive | https://github.com/kryvokhyzha/examples-and-courses | 488e8ba2d12728897822283d0d1bb6e7a7c0a7f4 | f6e42dfdf69e63c02331ee0f8d6f0d302506189e | refs/heads/master | 2023-05-23T08:16:46.698814 | 2023-02-25T20:51:06 | 2023-02-25T20:51:06 | 226,865,952 | 7 | 6 | MIT | false | 2023-02-23T16:04:52 | 2019-12-09T12:27:59 | 2023-02-10T18:01:25 | 2023-02-23T16:04:50 | 1,222,922 | 6 | 7 | 26 | Jupyter Notebook | false | false | import time
import numpy as np
import torch
from torchvision import models
from utils.apex_utils import get_dataloaders
device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
dataloaders, dataset_sizes, class_names = get_dataloaders(data_dir='hymenoptera_data')
dataloader = dataloaders['train']
bat... | UTF-8 | Python | false | false | 1,503 | py | 1,594 | torch_jit.py | 270 | 0.71324 | 0.680639 | 0 | 47 | 30.978723 | 138 |
franksalas/CS3420-Class-Project | 9,139,690,423,138 | 33b99fe9a0ecfd3710a708f322305dd4595a7f4c | eb230532d3cbcd5be25a1b9189a8d86d47df84d4 | /draf_1/npyscreenTest.py | 303bfb12836bf2cdfc279f54816200840c1b9e3e | [] | no_license | https://github.com/franksalas/CS3420-Class-Project | cf3df3c68de179f43c8538990c7ccd64e8b60b82 | ca6f5ab1ce162624bfcb17b82421f418117650c8 | refs/heads/master | 2016-05-06T17:25:24.352047 | 2016-03-31T20:13:46 | 2016-03-31T20:13:46 | 51,043,577 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import npyscreen
def simple_function(*arguments):
pass
if (__name__ == "__main__"):
npyscreen.wrapper_basic(simple_function)
| UTF-8 | Python | false | false | 137 | py | 11 | npyscreenTest.py | 10 | 0.656934 | 0.656934 | 0 | 9 | 14.222222 | 44 |
Paulius-Maruska/python-isign | 9,698,036,197,068 | 02dc3ecd7e78447fb445a5ae02b186a6efc8c577 | 5de368aebb55fbf46f3a2b5e963133685c50e897 | /src/isign/model/mobile_login_response.py | e48aa1cc88b432353a644e90b70849d6534a40f2 | [
"MIT"
] | permissive | https://github.com/Paulius-Maruska/python-isign | a5a088c707f124a868a475c3efcb1e243bfeb9b6 | 0474b90654c36125f58f0cdb3c7803b1678d3f18 | refs/heads/master | 2020-01-19T21:38:03.742753 | 2017-07-25T08:48:00 | 2017-07-25T08:48:00 | 94,220,780 | 2 | 0 | null | false | 2017-07-25T08:48:01 | 2017-06-13T14:17:02 | 2017-06-14T11:49:02 | 2017-07-25T08:48:01 | 37 | 2 | 0 | 0 | Python | null | null | from .certificate import Certificate
from .response import Response
class MobileLoginResponse(Response):
@property
def certificate(self) -> Certificate:
return Certificate(self.raw["certificate"])
@property
def country(self) -> str:
return str(self.raw["country"])
@property
d... | UTF-8 | Python | false | false | 773 | py | 42 | mobile_login_response.py | 38 | 0.626132 | 0.626132 | 0 | 36 | 20.472222 | 51 |
perrozzi/cmg-cmssw | 13,683,765,846,834 | 606c79d780a7da9693f478fbae1cfa3ee09d8588 | 5330918e825f8d373d3907962ba28215182389c3 | /CMGTools/WMass/python/analyzers/ZTreeProducer.py | 15d60cd114800035db117cfa6320f425b2217737 | [] | no_license | https://github.com/perrozzi/cmg-cmssw | 31103a7179222c7aa94f65e83d090a5cf2748e27 | 1f4cfd936da3a6ca78f25959a41620925c4907ca | refs/heads/CMG_PAT_V5_18_from-CMSSW_5_3_22 | 2021-01-16T23:15:58.556441 | 2017-05-11T22:43:15 | 2017-05-11T22:43:15 | 13,272,641 | 1 | 0 | null | true | 2017-05-11T22:43:16 | 2013-10-02T14:05:21 | 2016-11-03T08:01:49 | 2017-05-11T22:43:16 | 959,175 | 0 | 0 | 1 | C++ | null | null |
from CMGTools.WMass.analyzers.CoreTreeProducer import *
#from ZAnalyzer import testLegID
# def bookJetCollections( tree, pName ):
# var(tree, '{pName}_number'.format(pName=pName),int)
# tree.vars['{pName}_pt'.format(pName=pName)]= my_n.zeros(10, dtype=float)
# tree.tree.Branch('{pName}_pt'.format(pName=pN... | UTF-8 | Python | false | false | 29,711 | py | 2,731 | ZTreeProducer.py | 2,216 | 0.615159 | 0.596547 | 0 | 459 | 63.71024 | 239 |
GeorgeProjects/MC3-Multispectral | 10,634,339,067,991 | 2aa1a6ad283bfc93445107d954d63f64bea8ca00 | 28db530e6529d776f516db6cf0fa9a47c6e463c5 | /server/app4.py | 71a84fe78c04e8250d07ea10fc5dbb58b2639455 | [] | no_license | https://github.com/GeorgeProjects/MC3-Multispectral | 48831304b86ae132c89e63cd492e46bdf19a37f6 | 84a04d0a5a48f4550529e05f1a2c68832a687c3e | refs/heads/master | 2021-06-21T05:05:21.839234 | 2017-07-30T10:21:47 | 2017-07-30T10:21:47 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # from flask import Flask, render_template
# app = Flask(__name__)
# @app.route('/')
# def page():
# return render_template('dist/index.html')
# if __name__ == '__main__':
# app.run()
import tornado.ioloop
import tornado.web
import tornado.httpserver
import tornado.options
import os
import sys
import json, as... | UTF-8 | Python | false | false | 5,052 | py | 66 | app4.py | 51 | 0.68943 | 0.678543 | 0 | 145 | 33.841379 | 138 |
royess/intro-computation-materials | 292,057,780,835 | d29162d90303a2043321a31f02cf0d817ace534f | 79b4573ba5b420c961aec157953ce3ca87251042 | /11-19/meili.py | dbddf9a7ddec86750258f999ac151cef511737f8 | [] | no_license | https://github.com/royess/intro-computation-materials | 09e27bab1fc0dec2dc5afb4c8e50147871731bc6 | a3938053d8f61b646cbc29a0de7ef7111575c2e2 | refs/heads/master | 2023-02-04T01:14:03.816562 | 2020-12-17T07:00:10 | 2020-12-17T07:00:10 | 304,322,009 | 3 | 1 | null | false | 2020-11-03T11:05:38 | 2020-10-15T12:39:50 | 2020-10-22T07:59:55 | 2020-11-03T11:05:37 | 170 | 1 | 1 | 0 | Python | false | false | def digits_sum(n):
s = 0
while n!=0:
s += n%10
n //= 10
return s
def k_min_beau(k):
i = 1
n = 1
while i<=k:
if digits_sum(n)==10:
i += 1
n += 9
n -= 9
return n
k = int(input())
print(k_min_beau(k)) | UTF-8 | Python | false | false | 218 | py | 29 | meili.py | 16 | 0.5 | 0.440367 | 0 | 19 | 10.526316 | 23 |
sdpython/_automation | 15,891,379,022,009 | 6f3f1719d8e222962afbd32ae51272eca65da852 | 70293055602fe40451176d8c7f2a06af73fa88ee | /jenkins/start_pypi.py | 1bfa118b8271b9f44c848988af5cf086bad80c01 | [] | no_license | https://github.com/sdpython/_automation | 7cdb99bad563e485ad699e80ceec9bb26d7eb8aa | 7d0fc27b1f584dd324332089deea603d8164f927 | refs/heads/master | 2023-08-25T02:54:43.834619 | 2023-08-22T08:59:05 | 2023-08-22T08:59:05 | 97,163,054 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding: utf-8 -*-
"""
Start a local pypi server
=========================
This Script launches a :epkg:`pipy` server and leaves
without waiting for the end. It runs the scripts:
::
pypi-server --port=8067 --root=/var/lib/jenkins/workspace/local_pypi/local_pypi_server/
nohup pypi-server --port=8067 --ro... | UTF-8 | Python | false | false | 1,990 | py | 24 | start_pypi.py | 18 | 0.561307 | 0.549246 | 0 | 60 | 32.166667 | 148 |
loveinlastnight/micolog | 10,548,439,695,659 | fe0135bd4a7986ff6cf8e6aa4ad6002d3f875362 | 7dac228a13beba14447e4beaeeea75c9ce617645 | /plugins/xheditor/xheditor.py | 2412f7423c2e1ee6c92ac49a08fe49196c704950 | [
"MIT"
] | permissive | https://github.com/loveinlastnight/micolog | e4db0a0b88f33dd6d712a0a17fb7cebe52fec5dc | b49bf39bc8870797a49b4dcd3a0a5231cfe984ea | refs/heads/master | 2020-08-06T05:34:15.343160 | 2019-10-05T14:47:46 | 2019-10-05T14:47:46 | 212,854,929 | 0 | 0 | MIT | true | 2019-10-04T16:10:03 | 2019-10-04T16:10:02 | 2019-09-05T03:06:13 | 2012-06-07T15:43:13 | 5,940 | 0 | 0 | 0 | null | false | false | from micolog_plugin import *
import logging,os
from model import *
from google.appengine.api import users
class xheditor(Plugin):
def __init__(self):
Plugin.__init__(self,__file__)
self.author="xuming"
self.authoruri="http://xuming.net"
self.uri="http://xuming.net"
self.description="xheditor."
s... | UTF-8 | Python | false | false | 1,196 | py | 32 | xheditor.py | 14 | 0.627926 | 0.620401 | 0 | 44 | 25.181818 | 69 |
wrlssqi/pymap3d | 19,619,410,638,429 | 47d629f45c02d3c3cae04dcfc7e64e4975a80067 | dff3da60503e46e1d4e1c8a1b690ac984f2eec59 | /src/pymap3d/__init__.py | a0bacc74696e55efba1453bed1d94d3dba715e78 | [
"BSD-2-Clause"
] | permissive | https://github.com/wrlssqi/pymap3d | ad6e1fed83cdbe5ff65f050ac68f2d89bc43d316 | bd91a5ff4e9066eb33fead3006ba9de191e2c5e5 | refs/heads/master | 2023-08-03T17:37:26.148060 | 2021-06-09T19:39:08 | 2021-06-09T19:39:08 | 287,708,941 | 0 | 0 | BSD-2-Clause | true | 2020-08-15T08:35:13 | 2020-08-15T08:35:12 | 2020-08-15T08:33:54 | 2020-07-23T19:35:32 | 1,373 | 0 | 0 | 0 | null | false | false | """
PyMap3D provides coordinate transforms and geodesy functions with a similar API
to the Matlab Mapping Toolbox, but was of course independently derived.
For all functions, the default units are:
distance : float
METERS
angles : float
DEGREES
time : datetime.datetime
UTC time of observation
These funct... | UTF-8 | Python | false | false | 1,661 | py | 3 | __init__.py | 3 | 0.762191 | 0.737508 | 0 | 56 | 28.660714 | 92 |
FXTD-ODYSSEY/vscode-mayapy | 2,473,901,183,307 | 54a43329e94a11b2d456141624df72111aad58da | 395e64776ee7c435e9c8ccea6c2bf0d987770153 | /mayaSDK/pymel/core/general.py | 6e09d114d5c183e7a7d744d23e5acf4c939a97b7 | [
"MIT"
] | permissive | https://github.com/FXTD-ODYSSEY/vscode-mayapy | e1ba63021a2559287073ca2ddf90b634f95ba7cb | 5766a0bf0a007ca61b8249f7dfb329f1dfcdbfbb | refs/heads/master | 2023-03-07T08:01:27.965144 | 2022-04-02T02:46:31 | 2022-04-02T02:46:31 | 208,568,717 | 29 | 11 | MIT | false | 2023-03-03T06:45:31 | 2019-09-15T09:10:58 | 2023-02-09T07:21:00 | 2023-03-03T06:45:30 | 21,750 | 29 | 6 | 4 | Python | false | false | import exceptions
"""
For the rest of the class hierarchy, including `DependNode <pymel.core.nodetypes.DependNode>`, `Transform <pymel.core.nodetypes.Transform>`,
and `Attribute <pymel.core.nodetypes.Attribute>`, see :mod:`pymel.core.nodetypes`.
"""
from pymel.internal.plogging import getLogger as _getLogger
class C... | UTF-8 | Python | false | false | 640,863 | py | 400 | general.py | 391 | 0.603691 | 0.599613 | 0 | 14,197 | 44.140311 | 590 |
martinosspa/warframe-market | 10,995,116,288,519 | 42dad4dd48e4780549bea8662ac59fe423d3071e | 4bd73761f36a9e21b74bafd328a0707d9892cdd5 | /wilib2/wilib2.py | 3eeb94f8fd25807c9c4e9376c114e6d39dd6879a | [] | no_license | https://github.com/martinosspa/warframe-market | 45e8792d0c9524a2e77505605d32a68630fcc74e | 14652758f97c2cd7dcde5eafa6b2dc370aa9084e | refs/heads/master | 2020-03-20T21:26:34.586920 | 2019-11-08T13:57:33 | 2019-11-08T13:57:33 | 137,738,978 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from urllib.request import urlopen, Request
from pprint import pprint
import json
import time
import numpy as np
import aiohttp
import asyncio
import threading
_api_base_url = 'https://api.warframe.market/v1/items'
_drop_url = 'http://drops.warframestat.us'
global _relic_tier0
_relic_tier0 = 'Intact'
_relic_tier1 = '... | UTF-8 | Python | false | false | 5,647 | py | 14 | wilib2.py | 13 | 0.683903 | 0.681247 | 0 | 183 | 29.863388 | 97 |
puxin0526/Study_project | 5,987,184,445,352 | 8b54409c6adbd182daa9892c7bfe9cc6ae4ac0f5 | 67713e37863c06741e5aec5c7b074520b55f98c4 | /homework_appium/page/base_page.py | 871b53c82904c57d1daaf98752c441ab9f884cfb | [] | no_license | https://github.com/puxin0526/Study_project | 843d9644e935a6959388d1ce88db54d3591506b3 | 56123f32bb764bb4015980cb588d9f4fe772b561 | refs/heads/main | 2023-06-09T17:05:40.909018 | 2021-07-05T15:21:04 | 2021-07-05T15:21:04 | 356,801,790 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # 基类,完成底层封装,比如常用的一些方法,初始化,driver,find
from appium.webdriver.common.mobileby import MobileBy
from appium.webdriver.webdriver import WebDriver
from selenium.common.exceptions import NoSuchElementException
class BasePage:
def __init__(self, driver: WebDriver = None):
self.driver = driver
def find(self,... | UTF-8 | Python | false | false | 1,143 | py | 11 | base_page.py | 9 | 0.547507 | 0.535278 | 0 | 33 | 31.212121 | 72 |
yildirimege/FileTransferSystem | 60,129,590,924 | 049d0874ccb393d3bc9ebc14a6f48604a5819785 | 7efb72d82d6eeee9e86d09dc2d66083648c3595e | /Service_Listener.py | 10cad4236239b2ad89046b97d5058b8672396682 | [] | no_license | https://github.com/yildirimege/FileTransferSystem | 34a359a17ebf8183a7aec5233c38fe68abe26546 | 9b10ed1861366c30d18a0bdf7f016f89b65e29f6 | refs/heads/master | 2022-09-07T06:27:38.284138 | 2020-05-29T21:19:33 | 2020-05-29T21:19:33 | 267,957,119 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import socket
import json
print("Listening for files...")
port = 6000
listenerSocket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) #UDP Socket for listener.
listenerSocket.bind(('', port))
while True:
rec = listenerSocket.recvfrom(1024)
data = json.loads(rec[0].decode('utf-8'))
print... | UTF-8 | Python | false | false | 439 | py | 2 | Service_Listener.py | 2 | 0.656036 | 0.633257 | 0 | 15 | 26.466667 | 114 |
Wy2160640/sanger-sequencing | 1,949,915,196,844 | 4385753852be4770f0e695d433c6ad3d8a8ec859 | 21b95e6c28acc4428cdefb991e0bb97e7fcdad31 | /src/sanger_sequencing/model/plasmid_report.py | 26de5bca1eb5dfc51976f090d91414d30a52826e | [
"Apache-2.0"
] | permissive | https://github.com/Wy2160640/sanger-sequencing | 98fb25b80ab58952874171d61fd272a8ac73002e | eefedd79b625062f919910e4b3df8a4c428662c7 | refs/heads/master | 2022-04-01T21:28:09.910278 | 2020-02-11T00:21:39 | 2020-02-11T00:21:39 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # Copyright (c) 2019-2020 Novo Nordisk Foundation Center for Biosustainability,
# Technical University of Denmark.
#
# 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
#
# https://www.apache.o... | UTF-8 | Python | false | false | 2,132 | py | 33 | plasmid_report.py | 18 | 0.718574 | 0.712946 | 0 | 67 | 30.820896 | 84 |
MagpieRook/Kvasaheim-Django | 10,625,749,136,542 | 46edb0d8ac180a909bcd0997dc470b07adfa5e5c | 6994b8da8ee0c3e6efbf7d01d5ac916cfa314565 | /kvasaheim/migrations/0012_auto_20180720_1819.py | e2c5a6ff20b33934bc99ea0a737954d83b215800 | [] | no_license | https://github.com/MagpieRook/Kvasaheim-Django | ad05f1eb2006c0392b4f0971e223c5c09426abdb | 50a042c7fa3e8d3ff1f867a7126c02d2bd8db0c9 | refs/heads/master | 2022-12-22T01:04:31.371675 | 2022-08-02T19:06:59 | 2022-08-02T19:06:59 | 138,333,573 | 0 | 2 | null | false | 2022-12-09T07:20:14 | 2018-06-22T18:06:16 | 2022-01-07T20:30:30 | 2022-12-09T07:20:12 | 503 | 0 | 2 | 2 | Python | false | false | # Generated by Django 2.0.7 on 2018-07-20 22:19
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('kvasaheim', '0011_remove_problem_spread'),
]
operations = [
migrations.RemoveField(
model_name='twolistproblem',
nam... | UTF-8 | Python | false | false | 778 | py | 35 | 0012_auto_20180720_1819.py | 25 | 0.577121 | 0.548843 | 0 | 29 | 25.827586 | 52 |
arjunmitra/RecipeBlog | 1,494,648,619,605 | 08c450e626b2fc6a574f07a6a8dcda209bb50340 | 8bc16d327a5bc2aad0497fa17c58036041fa42e1 | /Blog/post/views.py | b5493382d6b635981a1058be6bf0af5b096a3449 | [] | no_license | https://github.com/arjunmitra/RecipeBlog | 0a5b5a072f0c0653ca237cfa1ba02c91abcccb9c | 8986a7ba857f9253632772624ec67943a8a3b31d | refs/heads/main | 2023-07-07T08:27:30.315935 | 2021-08-06T13:01:23 | 2021-08-06T13:01:23 | 385,526,579 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.contrib.auth.decorators import login_required
from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger
from django.shortcuts import render, get_object_or_404,redirect,reverse
from django.db.models import Count, Q
from django.conf import settings
from .models import Post, Category, Author, P... | UTF-8 | Python | false | false | 8,581 | py | 4 | views.py | 3 | 0.645612 | 0.641417 | 0 | 245 | 34.020408 | 148 |
rgsngdha/PaddlePaddle-OCR | 13,640,816,152,347 | 148b9f89d290311837e78cf50e7e8189dc934ccc | 4c70124c9b2c73f776c4e21ec9ef6e28c03c4b8d | /train.py | cbe20a8e62e3bf8955dca3ee9879013a070dad40 | [
"Apache-2.0"
] | permissive | https://github.com/rgsngdha/PaddlePaddle-OCR | ef0e13fa8fba8f8e31a1644cdd2f0def9be3ede3 | 469319996541f59b3f9cddb4082e8c57e6c0f501 | refs/heads/master | 2023-04-01T09:52:32.794710 | 2021-04-02T15:55:00 | 2021-04-02T15:55:00 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import os
import time
import numpy as np
import paddle.fluid as fluid
import config as cfg
from nets.attention_model import attention_train_net
from nets.crnn_ctc_model import ctc_train_net
from utils import data_reader
from utils.utility import get_ctc_feeder_data, get_attention_feeder_data
def main():
"""OCR tr... | UTF-8 | Python | false | false | 4,443 | py | 12 | train.py | 10 | 0.537593 | 0.532626 | 0 | 122 | 35.303279 | 113 |
zyong/GameServer | 10,780,367,935,136 | 5e559a5ded0c5bbc3beb0d88813d39fe2b8fc7b2 | 1c2711d8cfaf5da9340ce53bb0dd8348cf60f1a8 | /logic/mesh/__init__.py | 0c469f02a583fc247a29db282e6ffc604f954e3f | [] | no_license | https://github.com/zyong/GameServer | 2bf362162f1988dcc95f52539f90a3a77dea1e41 | 9f47473b4467db37d970fdff40b4a860ccf57887 | refs/heads/master | 2017-12-22T01:02:19.852477 | 2016-11-26T04:07:43 | 2016-11-26T04:07:43 | 76,151,313 | 1 | 0 | null | true | 2016-12-11T03:13:19 | 2016-12-11T03:13:19 | 2016-11-26T03:31:02 | 2016-11-26T04:08:46 | 5,958 | 0 | 0 | 0 | null | null | null | #-*-coding:utf-8-*-
#作者:马昭@曹县闫店楼镇
#这个文件是空的,但是也必须保留. | UTF-8 | Python | false | false | 101 | py | 1,580 | __init__.py | 1,295 | 0.641509 | 0.622642 | 0 | 3 | 16.333333 | 19 |
maguileracanon/SummerOfCode | 4,707,284,160,696 | eb108a0d86986270e24bf2a3d71db7a193c747ba | 09c269f9bf46007bf03914ab8f741a1746686e52 | /Week1/HackatonD1.py | 6de021652707aeb8031223eebc4311c6ed1bc614 | [
"MIT"
] | permissive | https://github.com/maguileracanon/SummerOfCode | d2836beb61daf2190436185fb3a8d6b4839cb566 | 8a8e1b9d5ceb5a37d4c68dd50a8744bde706537c | refs/heads/master | 2020-03-23T07:28:51.921695 | 2018-08-27T21:18:54 | 2018-08-27T21:18:54 | 141,274,111 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #Week1 Hackaton
from random import choice
# O for sea and x for land
choices = ['o','X']
num_of_continents = int(0)
size_continents = []
continen_counter=1
worldSize = input("How big do you want your world to be?")
worldSize = int(worldSize)
world = []
neighboorFound = True
for i in range (0,worldSize):
world.append... | UTF-8 | Python | false | false | 5,006 | py | 41 | HackatonD1.py | 21 | 0.608513 | 0.589728 | 0 | 141 | 34.361702 | 87 |
notelba/midi-remote-scripts | 4,990,752,006,286 | 0605c3695411a3932e76383643f6fc35da8e8dc8 | ddd35c693194aefb9c009fe6b88c52de7fa7c444 | /Live 10.1.18/APC20/BackgroundComponent.py | cd4f3871dafc31b655919161016b668d483551c2 | [] | no_license | https://github.com/notelba/midi-remote-scripts | 819372d9c22573877c7912091bd8359fdd42585d | e3ec6846470eed7da8a4d4f78562ed49dc00727b | refs/heads/main | 2022-07-30T00:18:33.296376 | 2020-10-04T00:00:12 | 2020-10-04T00:00:12 | 301,003,961 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # uncompyle6 version 3.7.4
# Python bytecode 2.7 (62211)
# Decompiled from: Python 3.8.5 (default, Aug 12 2020, 00:00:00)
# [GCC 10.2.1 20200723 (Red Hat 10.2.1-1)]
# Embedded file name: c:\Jenkins\live\output\Live\win_64_static\Release\python-bundle\MIDI Remote Scripts\APC20\BackgroundComponent.py
# Compiled at: 2020... | UTF-8 | Python | false | false | 967 | py | 409 | BackgroundComponent.py | 408 | 0.746639 | 0.676319 | 0 | 19 | 49.894737 | 134 |
MayankKharbanda/MSc | 5,772,436,066,483 | 4fce6b0aeacefe0c429bfa83055e9356173e0d40 | 65c221829e60a858106dd469436b883b0a8edf1c | /Artificial Intelligence/time table/chromosome.py | 1318675df9081e0ef3d257914df81503493c71ae | [] | no_license | https://github.com/MayankKharbanda/MSc | c54642a1566aa0f6909edc8d2f1bf903a0336996 | 3b0c0bee767511eedf237439689cf0dc87b64397 | refs/heads/master | 2020-04-03T01:24:37.277938 | 2019-04-02T06:43:39 | 2019-04-02T06:43:39 | 154,929,708 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from gene import Gene
import copy
import csv
import os
class Chromosome:
'''
It has an object containing all the time tables of the courses
'''
def __init__(self, timetables):
self.fitness = 1
self.genes = []
for timetable in timetables:
ge... | UTF-8 | Python | false | false | 4,807 | py | 30 | chromosome.py | 18 | 0.522363 | 0.518411 | 0 | 145 | 32.144828 | 156 |
ApacheIsDead/vulnbytemenu | 10,075,993,278,139 | 18fe1e0aead9a6ece3a254565df9210463ad952d | 9414e0da533a694a64aecaaa458c7aa1da9e705a | /hub-progress.py | 05186a736794d0d2f63342b41180538feddd3ea2 | [] | no_license | https://github.com/ApacheIsDead/vulnbytemenu | 25180f6b0e3236645085491a5e50e8e654f7e4e1 | c0de5de73e44a5ff99d62e5fada76157df0685b3 | refs/heads/master | 2020-03-18T17:36:55.232053 | 2019-04-02T03:21:23 | 2019-04-02T03:21:23 | 135,039,340 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # aplesmash module hub
import sys
import subprocess
import socket
import time
import os
import sys
sys.setrecursionlimit(10000)
# mainCall - calls everything and does important shit
def mainCall():
userChoice()
# gets users choice
def userChoice():
hName = socket.gethostname()
menuItem = ("Ap1... | UTF-8 | Python | false | false | 3,904 | py | 9 | hub-progress.py | 8 | 0.48207 | 0.469775 | 0 | 106 | 35.830189 | 170 |
vdenPython/python_training | 5,729,486,378,619 | 6cecdff0163382d1a26d4164867d7b58f3ec3fe7 | af1ec7d879344277e395b9ad8696e9c7429c1872 | /test/test_modify_group.py | ff8715f750ac63a9588ca03c37d250baa8dd2dfe | [
"Apache-2.0"
] | permissive | https://github.com/vdenPython/python_training | fd9c837ef5b9cbceeb0efe0b1d4b31970ecf0238 | 56f11d18ea9099064153c6ea19e672a23ba0bc15 | refs/heads/master | 2020-05-28T01:44:24.453071 | 2015-10-03T11:44:50 | 2015-10-03T11:44:50 | 39,999,167 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | __author__ = 'vden'
from model.group import Group
import random
def test_modify_group_name(app, db, check_ui):
if app.group.count() == 0:
app.group.create(Group(name="test"))
old_groups = db.get_group_list()
group = random.choice(old_groups)
group_id = group.id
group = Group(name="New grou... | UTF-8 | Python | false | false | 741 | py | 7 | test_modify_group.py | 7 | 0.620783 | 0.616734 | 0 | 23 | 31.086957 | 126 |
mare5x/Backuper | 4,458,176,057,283 | 62fc67756ea530e1f08992d121e461536bf0b0a7 | 1c25073e00324311a578a7395f448736ff9b4f81 | /backuper.py | c3234f7b08489d627e86766ab3d088ca37db10b3 | [] | no_license | https://github.com/mare5x/Backuper | f11368929f7aae71818b240bab80a1d124fe17ad | b4cc3340088b8e7c6b40379a9d58bf9cbf6fca51 | refs/heads/master | 2020-07-01T19:17:58.675034 | 2019-08-14T14:09:35 | 2019-08-14T14:09:35 | 201,270,436 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import argparse
import logging
from pytools import filetools as ft
from backuper import backuper
def main(log=True):
if log:
# One log file for each day. Running the program multiple times
# a day will append to the same file.
name = "Backuper_{}.log".format(ft.get_current_date_strin... | UTF-8 | Python | false | false | 4,740 | py | 19 | backuper.py | 17 | 0.55654 | 0.550633 | 0 | 113 | 40.946903 | 160 |
kenchose/Python | 18,219,251,299,556 | c5a6c141da87e32847c49bfe90a614d918b57102 | 7e7a5892d5ac5b084e26bb534ef550f33854c7ce | /Django/Django Info/Django App/apps/blog_app/views.py | 5bcfb4f6d445872ee8659918e2392dfd13ad3a59 | [] | no_license | https://github.com/kenchose/Python | 8f8a2d528d9c31a7e47177764a67976a5f2d9e98 | b147b81c2a61021dd7d7d12e1621ff3e8426e0a7 | refs/heads/master | 2020-04-10T22:00:16.866195 | 2019-01-05T04:01:57 | 2019-01-05T04:01:57 | 161,312,528 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.shortcuts import render, HttpResponse, redirect
# Create your views here.
def index(request):
return HttpResponse('Placeholder to later display all the list of blogs')
def new(request):
return HttpResponse('Placeholder to display a ... | UTF-8 | Python | false | false | 640 | py | 84 | views.py | 40 | 0.723438 | 0.721875 | 0 | 24 | 25.708333 | 81 |
avilevis/manage_interviews | 10,909,216,942,486 | ee06d2e775c90096aaced5f0e3c49f1a630381cd | 41d94f87c0b399fa5e263c9f744459a5167e0af4 | /agents_app/apps.py | b2204a6a4a88facf0b2fab68aaacc5cd9d086898 | [] | no_license | https://github.com/avilevis/manage_interviews | 96df64c665766d420d31c64b605098ac9bd7ed8c | 1bc629caa7357528889e1c26a75aeae88ab2754b | refs/heads/main | 2023-02-06T06:44:46.910346 | 2020-12-31T11:44:16 | 2020-12-31T11:44:16 | 325,786,703 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.apps import AppConfig
class AguntsConfig(AppConfig):
name = 'agents_app'
| UTF-8 | Python | false | false | 91 | py | 29 | apps.py | 21 | 0.747253 | 0.747253 | 0 | 5 | 17.2 | 33 |
TomaskoKnaze/IOT_Facefilms | 6,167,573,065,281 | c8239428471aeae009c42a48254fa5860fd335a1 | 720a98f01e7dd467cac05cb0e18fb8fc2ef7caf7 | /client/functions.py | c6023bfa41070892c73374b9b5a236cb601ea055 | [] | no_license | https://github.com/TomaskoKnaze/IOT_Facefilms | 5603a9e93503001acf0e0474c34d224de96688c5 | 6a720c89998722d2186b1eb2c60a81080505fecb | refs/heads/main | 2023-02-16T15:18:13.912471 | 2021-01-14T15:59:19 | 2021-01-14T15:59:19 | 329,577,069 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import pymongo
import numpy as np
from pymongo import MongoClient
import pandas as pd
import imdb
emotion_labels = ["Angry", "Happy", "Neutral", "Sad", "Surprised", "None"]
def get_dataframe(collection_list,db):
film_names = []
df = pd.DataFrame()
for collection in collection_list:
col = db[colle... | UTF-8 | Python | false | false | 13,068 | py | 7 | functions.py | 4 | 0.533364 | 0.510866 | 0 | 389 | 32.596401 | 127 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.