blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
76368efaedccd95a1deec68041b92826b988d67b | 5205aaa9e0b54fc285c73f47ca266676c800a86d | /amr2seq/data_prep/filter_stop_words.py | 3fd88b49c49871ebf9702d7f97d68d403d92cacf | [] | no_license | GonewithGt/GAMRParsing | 4d83275651d6c23f6796dcdf32d33d99d057cf49 | 8b81789d23e64feada409f439235d615d4e048bf | refs/heads/master | 2020-03-14T21:10:58.401701 | 2018-05-07T16:02:42 | 2018-05-07T16:02:42 | 131,790,981 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,559 | py | #!/usr/bin/python
import sys
def filter_vars(line):
fields = line.split('|||')
parts = fields[2].split('/')
for i in range(len(parts)):
try:
while parts[i][-1] in '0123456789':
parts[i] = parts[i][:-1]
except:
print (line)
print (parts)
... | [
"1724532024@qq.com"
] | 1724532024@qq.com |
43059fbcd356ec0f13831956367ede3368efeeff | 3eba176a5f88124e290d357ac94a9a86f90e3c0e | /euler/37/37.py | 2111226d01654623c81bfa0c92c515ad2d340189 | [] | no_license | marcus255/coding | 32cc028ed89fbdf3368eed3afca81536ec5b4d1f | 109aec1e77891cec94d8635e3399440ab4b74339 | refs/heads/master | 2021-04-26T23:24:31.414731 | 2018-03-05T23:28:51 | 2018-03-05T23:28:51 | 123,988,297 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 740 | py | def isPrime2(Number):
return 2 in [Number,2**Number%Number]
def isPrime(n):
for i in range(2,int(n**0.5)+1):
if n%i==0:
return False
return True
num = 11
primes_sum = 0
primes_count = 0;
while(primes_count < 11):
if isPrime(num):
temp_num = num
temp_num_2 = num
while temp_num > ... | [
"marek255trojan@gmail.com"
] | marek255trojan@gmail.com |
fa378984371587ff99f14a0eaca8909a68fd96c1 | 1809e9722b460e265f2fe8b510b7bfe3fa1571f7 | /webradio/base.py | 220240fca3c215b0824f195e80a0320e1d82059e | [] | no_license | 3ngthrust/webradio | ae4c891a875d599c80db4cb1a07710e4545432db | 14c80207d616137574000688f0618ac6c1b717ba | refs/heads/master | 2021-06-14T15:18:18.709890 | 2017-01-15T18:45:59 | 2017-01-15T18:45:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,136 | py | import abc
from contextlib import contextmanager
@contextmanager
def ignore(exception):
try:
yield
except exception:
pass
class base_client(metaclass=abc.ABCMeta):
@abc.abstractmethod
def __init__(self, server, *, muted=False):
""" constructor of the music client
Par... | [
"keewis@posteo.de"
] | keewis@posteo.de |
132b517b5d247685cafd0157d9a809df8e9c0920 | 352239db2379353be34c1b5f1a6eda504393ea16 | /app/api/v1/__init__.py | 9760c8304b4415627d91a1997b08890a1536864d | [] | no_license | ns3098/FastAPI_Template | 346f5aea367bb8909b146ec7f467b8d99dcf889b | ff245126af65b68e4ec6050864a9d3ae95a2601a | refs/heads/master | 2023-05-13T07:56:26.907460 | 2021-06-01T14:27:55 | 2021-06-01T14:27:55 | 372,858,503 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 150 | py | from fastapi import APIRouter
from app.api.v1.home import router as home_router
router = APIRouter(prefix="/v1")
router.include_router(home_router)
| [
"nitin.singh@stylumia.com"
] | nitin.singh@stylumia.com |
bb45d7d331ef9e8791fc9163cb3489a86d1e83da | e970a7a17850473a3edaa9c4fbc208c1cef95462 | /Assignment2/Code/task23_full_architecture_pretraining.py | 60769b7f52320c230197efd5df3ccb018a662d7f | [] | no_license | reetamdutta1/CS7015-Deep-Learning-Assignments | 4d39289ad647e96ff96429049442d58f349e21a2 | 7a720ec0dd871691e0360ab27229f11ee4b791cf | refs/heads/master | 2022-04-10T14:13:49.404734 | 2020-02-22T16:15:47 | 2020-02-22T16:15:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,258 | py | import os
import torch.utils.data as data_utils
import torch
from torch import nn
from torch.autograd import Variable
from torch.utils.data import DataLoader
from torchvision import transforms
from torchvision.datasets import MNIST
from torchvision.utils import save_image
import pandas as pd
import numpy as np
from skl... | [
"noreply@github.com"
] | noreply@github.com |
8dd9f514f148cbbca22dfa823d1e213be9fb79c5 | 9d85bf08c43d627ab542786a5044c9995b5da83a | /rango/forms.py | 5b2397a9d77c75a6a939a4ba39c6b742a247bcef | [] | no_license | AmjadGlasgow/Movie | 9f35cf1532dccadee5b278ce2a468b8812268bb4 | cae2aa44ee9d3f3de0ba50462dda41caa1c5891d | refs/heads/master | 2023-06-29T14:55:08.868553 | 2021-08-03T23:52:38 | 2021-08-03T23:52:38 | 392,487,170 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,317 | py | from django import forms
from rango.models import Page, Category
from django.contrib.auth.models import User
from rango.models import UserProfile
class CategoryForm(forms.ModelForm):
name = forms.CharField(max_length=Category.NAME_MAX_LENGTH,
help_text="Please enter the category name.")
views = forms.I... | [
"2603127s@student.gla.ac.uk"
] | 2603127s@student.gla.ac.uk |
a867d8474cf647f0d513ef130e9b8eed8e0b9c3a | d566cea0b4357a33735d7ba4cdaed8204c6aef91 | /encryption/crypt.py | da3e4fbd32024a2262f1db1029661697c4fccfca | [] | no_license | GentelmanBastard/PythonCourse | c0fc4fe8cf491b4344e811113762f933df8e7eb7 | 4e5e7d999b5b0fe91784e8b93e8dd1bfc00b8386 | refs/heads/master | 2021-01-25T09:53:01.113469 | 2020-02-11T15:09:05 | 2020-02-11T15:09:05 | 123,327,526 | 0 | 1 | null | 2018-08-08T09:04:28 | 2018-02-28T18:49:17 | Python | UTF-8 | Python | false | false | 32 | py | from Crypto.Cipher import DES3
| [
"mkucman@hotmail.com"
] | mkucman@hotmail.com |
6ef2add7e26831c01edce50c144d966d2a50a68f | e386c3b58815fc01d2ec3ba938e6fe6250638f53 | /ch05/modulo.py | de6fed5804f3920da5af8ac7337d34da2446f78a | [
"MIT"
] | permissive | ricscar2570/fondamentibook | 824014abd97d75e9cc2a38ff00e9299557f3da3f | 14317326f193d422d0fe3bb4a240177eb9fde0d7 | refs/heads/master | 2021-05-04T06:00:48.020313 | 2016-09-14T07:41:05 | 2016-09-14T07:41:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,498 | py | #! /usr/bin/env python3 -B
#
# Codice eseguibile per i capitoli del libro
# "Fondamenti di Programmazione in Python" di
# Fabio Pellacini
#
#
# Released under the MIT license
#
# Copyright (c) 2016 Fabio Pellacini
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software an... | [
"fabio.pellacini@gmail.com"
] | fabio.pellacini@gmail.com |
ac126a334e5c16ab0f0e7c96bd9e37e9401d058a | d0081f81996635e913b1f267a4586eb0bfd3dcd5 | /dataactcore/migrations/versions/001758a1ab82_remove_legal_entity_address_line3_from_.py | a17f33249deb510d2d5a9c4c694595932bedba00 | [
"CC0-1.0"
] | permissive | fedspendingtransparency/data-act-broker-backend | 71c10a6c7c284c8fa6556ccc0efce798870b059b | b12c73976fd7eb5728eda90e56e053759c733c35 | refs/heads/master | 2023-09-01T07:41:35.449877 | 2023-08-29T20:14:45 | 2023-08-29T20:14:45 | 57,313,310 | 55 | 36 | CC0-1.0 | 2023-09-13T16:40:58 | 2016-04-28T15:39:36 | Python | UTF-8 | Python | false | false | 994 | py | """Remove legal_entity_address_line3 from DetachedAwardFinancialAssistance
Revision ID: 001758a1ab82
Revises: 60830f0881a5
Create Date: 2018-03-09 10:50:38.640532
"""
# revision identifiers, used by Alembic.
revision = '001758a1ab82'
down_revision = '60830f0881a5'
branch_labels = None
depends_on = None
from alembic... | [
"Burdeyny_Alisa@bah.com"
] | Burdeyny_Alisa@bah.com |
0a948167ad5e63969b44e9ec0fcfe9edeee40ffd | 94488d4f1fbb05b33217cebbd2a6bdaf986d39a6 | /core_backend/views.py | 42574c671887f58fb4f4aa5bc5e7decd9c362ca5 | [
"MIT"
] | permissive | PoieoDev/User-Accounts-Template | fc3be67d35f8969ebf6a04916f5948f76c8a2e38 | 1e6586d9a79d3df61d6ae7589415f23e8aeeea07 | refs/heads/master | 2023-08-17T05:31:34.003340 | 2021-09-20T21:43:22 | 2021-09-20T21:43:22 | 298,093,361 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,545 | py | from rest_framework_jwt.settings import api_settings
from rest_framework.response import Response
from rest_framework.views import APIView
from django.contrib.auth import authenticate
from django.contrib.auth.models import User
from .serializers import UserSerializer
class UserAccountView(APIView):
# Registration... | [
"timvolner@gmail.com"
] | timvolner@gmail.com |
5d6ded4faf7566b8fb858f56738f9b733236abda | a3776dfa7a4bfd76ff7cb63ddb3f6d70483b89d2 | /python/Sort/BubbleSort.py | fe4c0e4f183df93e94e89a9a26fea609cdd7d9a2 | [] | no_license | x-jeff/Algorithm_Code | 9e3038d9504391e2bd52ddde1230f69953339ab8 | b0411bcc7a7ab674ceca73aeb1348d3241370817 | refs/heads/master | 2023-07-11T19:55:52.401814 | 2021-08-14T03:46:12 | 2021-08-14T03:46:12 | 293,771,649 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 321 | py | def bubbleSort(arr):
for i in range(1, len(arr)):
for j in range(0, len(arr)-i):
if arr[j] > arr[j+1]:
arr[j], arr[j + 1] = arr[j + 1], arr[j]
return arr
if __name__ == '__main__':
testlist = [17, 23, 20, 14, 12, 25, 1, 20, 81, 14, 11, 12]
print(bubbleSort(testlist)... | [
"jeff.xinsc@gmail.com"
] | jeff.xinsc@gmail.com |
99a2301cf9bd95c46e5d74f8ae21f723422bbdf3 | bfc88535fa1495c64672f048a5559e8bb6de1ae1 | /TOKI/Dasar/05/f.py | b303902ab8a8f25f189362c66329d929ab17aafb | [] | no_license | famus2310/CP | 59839ffe23cf74019e2f655f49af224390846776 | d8a77572830fb3927de92f1e913ee729d04865e1 | refs/heads/master | 2021-07-05T00:23:31.113026 | 2020-08-07T22:28:24 | 2020-08-07T22:28:24 | 144,426,214 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 77 | py | import math
N = float(input())
print("%d %d" % (math.floor(N), math.ceil(N))) | [
"fadhilmusaad@gmail.com"
] | fadhilmusaad@gmail.com |
9ff96c8e78bb0eba5f838cde0c006bda3e6972e3 | 0580db19e1dae670160791091da72316911a0cba | /DhavalTest/PatientRecord.py | 29138be2e169b5c24c48f80b86d57d397dfc91b4 | [] | no_license | swapnil0/Python | 06968fef1e1c7ead9074be4f20ff67d4bc17d7d3 | 3938c8dcd21f0ed9c280ac17dcf680049cc520b6 | refs/heads/master | 2022-11-15T14:41:58.538411 | 2020-07-11T06:14:54 | 2020-07-11T06:14:54 | 278,431,848 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 275 | py | class PatientRecord:
def __init__(self, age, name, pid):
self.name=name
self.age=age
self.pid=str(pid)+str(age)
def __str__():
return self.name+","+self.age+","+self.pid
def __gt__(self,obj):
return self.age > obj.age
| [
"swapnil.ingale05@gmail.com"
] | swapnil.ingale05@gmail.com |
aa1565f1cb49c38aa7e508edbd54b899398a57ae | 87e0aee0b7561e3585f2bf7170c7fef51c886087 | /modules/money.py | 85adcaccc8cadc895930d0e4d2ead865843a1cee | [] | no_license | rob-kistner/udemy-python-masterclass | 8757e6a58b24768f098951679ad927d86a0dcf27 | 1555f393f6b972976e7f6619f3397aca32a0ffff | refs/heads/master | 2021-05-09T04:20:28.412594 | 2020-04-25T22:21:57 | 2020-04-25T22:21:57 | 119,271,203 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 103 | py | def money(amt, spaced=False):
bucks = '$ ' if spaced else '$'
return '{}{:,.2f}'.format(bucks, amt)
| [
"robkistner@mac.com"
] | robkistner@mac.com |
627d416b543f78c9d91e73aec88ac490ac95735c | ec182e7bbf726555032e924491fd4b324b3e2485 | /notification/migrations/0001_initial.py | 223239d2db3ed57a6104763b6061b8e4895b5e93 | [] | no_license | Arsenho/erecrutment | 8e5687a5867186ca995bc338279c33713c336c6e | 6d7d2eccc70f751a64931b1931e72a8df95832a7 | refs/heads/develop | 2023-08-10T21:14:07.560164 | 2020-08-09T18:38:13 | 2020-08-09T18:38:13 | 268,737,681 | 1 | 0 | null | 2021-09-22T19:08:26 | 2020-06-02T07:58:19 | Python | UTF-8 | Python | false | false | 636 | py | # Generated by Django 2.2.6 on 2020-08-09 18:34
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Notification',
fields=[
('id', models.AutoF... | [
"anvadele@yahoo.com"
] | anvadele@yahoo.com |
d1de71b1bcb7c3ab33eda16acd10e72b3bda4c31 | daca5cf1750496799a07f436644efac8bf1c68cc | /src/UserApp/routing.py | 5b7f932de3733892e7a7769590ee077b73994b91 | [] | no_license | TasifTarikul/Fiducia | 88ed3c00e734156fb715a68ed0b22e88f3687338 | eca356ba247f94dc02e6a6b0d5527cc8e74dd774 | refs/heads/master | 2022-05-19T22:39:02.088312 | 2020-12-11T12:31:23 | 2020-12-11T12:31:23 | 241,008,454 | 0 | 0 | null | 2022-04-22T23:06:49 | 2020-02-17T03:05:36 | JavaScript | UTF-8 | Python | false | false | 184 | py | from .consumers import NotificationConsumer
from django.urls import re_path
websocket_urlpatterns = [
re_path(r'ws/user_app/notify/(?P<userid>[0-9]+)/$', NotificationConsumer)
]
| [
"tasiftarikul@gmail.com"
] | tasiftarikul@gmail.com |
99a6a8e91b7a79fa5c52649c4f7b783205df4956 | a6b4e4556036514a8ed07847a4db1d1d857d0594 | /tree_construct_string_from_binary_tree.py | 56d91af7c8c4fbfac6a4532e889f05bd2bd38916 | [] | no_license | arpitpattewar/leetcode_puzzles | a4871633000812bf7991b8eb6fc586aa37f11ace | ddefceb7f1e3d09e811044aba5d6be1545ae6894 | refs/heads/master | 2023-02-14T01:03:22.331461 | 2023-02-06T02:24:17 | 2023-02-06T02:24:17 | 154,002,680 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,412 | py | '''
Created on Nov 1, 2018
@author: aavinash
link: https://leetcode.com/problems/construct-string-from-binary-tree/
'''
from LeetCodeTree import TreeNode
class Solution(object):
def tree2str_1(self, root):
"""
:type t: TreeNode
:rtype: str
"""
if not root : return ""
... | [
"aavinash@akamai.com"
] | aavinash@akamai.com |
2ad5195cb2531f382db1acaca896c6c212992811 | e63c1e59b2d1bfb5c03d7bf9178cf3b8302ce551 | /uri/uri_python/ad_hoc/p1089.py | 5016209f1dd88333f5f3c73bdab477d7dc2336d9 | [] | no_license | GabrielEstevam/icpc_contest_training | b8d97184ace8a0e13e1c0bf442baa36c853a6837 | 012796c2ceb901cf7aa25d44a93614696a7d9c58 | refs/heads/master | 2020-04-24T06:15:16.826669 | 2019-10-08T23:13:15 | 2019-10-08T23:13:15 | 171,758,893 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 366 | py | N = int(input())
while N != 0:
entry = input().split(" ")
picos = 0
aux_a = int(entry[N-2])
aux_b = int(entry[N-1])
for i in range(N):
if (aux_b < aux_a and aux_b < int(entry[i])) or (aux_b > aux_a and aux_b > int(entry[i])):
picos += 1
aux_a = aux_b
aux_b = int(e... | [
"gabrielestevam@hotmail.com"
] | gabrielestevam@hotmail.com |
1df8e317fea69f008dc5d5e32315bd51aa0fb43c | 5896da906bdcb1315881712a0baa52a706bbeb06 | /cursoemvideo/Atividades/exercicios/ex106.py | 3ebfa0d823d84edaa4ae159d58714aa44738c3d8 | [] | no_license | frederico-prog/python | 313b4c11347fb33f67d73dee89f3106f483a2333 | 6c3d3757944fcbf569e1114838f236a9329358bd | refs/heads/master | 2022-12-13T23:26:55.112797 | 2020-08-21T22:03:26 | 2020-08-21T22:03:26 | 272,381,728 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,125 | py | '''
FAÇA UM MINI-SISTEMA QUE UTILIZE O INTERECTIVE HELP DO PYTHON. O USUÁRIO VAI DIGITAR O COMANDO E O MANUAL VAI APARECER.
QUANDO O USUÁRIO DIGITAR A PALAVRA 'FIM', O PROGRAMA SE ENCERRARÁ.
OBS.: USE CORES.
'''
from time import sleep
c = (
'\033[m', # 0- sem cor
'\033[0;30;41m', # 1- cor ... | [
"fredlgprime@gmail.com"
] | fredlgprime@gmail.com |
b32e0d64918cffb217578b9ab4616ae7c3e8ea4e | 707b22b554664ea09532cefdeea3d5f9d8b0b586 | /bin/raksha-api | f005e1088b536dc7f3df73b1eb96190085195e85 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | DPaaS-Raksha/python-rakshaclient | 62ee0f48e7c6aea3069744670ea6d4cd0a43e2ec | 85bfefd935553357ad14b8273035270d0e6946b8 | refs/heads/master | 2020-05-18T19:47:59.710923 | 2013-09-17T02:25:29 | 2013-09-17T02:25:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,710 | #!/usr/bin/env python
# vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this... | [
"giri.basava@gmail.com"
] | giri.basava@gmail.com | |
58f59fdce17bede4e24e11eb61d5c95b415ec5ef | 85cd24dcc089aa05c55a2148b66994a65b619dc8 | /garage/exceptions.py | ac4951013ee7026200cacd67eabbe63692501eda | [
"BSD-3-Clause"
] | permissive | shuiziliu/django-garage | 6058bd1a8eb54896e6fbbcf65dda3cc847124164 | e46593bfd6f772216b85f3022d122a8b7064a9b4 | refs/heads/master | 2020-12-24T15:14:44.258944 | 2015-03-02T17:03:50 | 2015-03-02T17:03:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 194 | py | # -*- coding: utf-8 -*-
"""
garage.exceptions
* created: 2014-08-23 Kevin Chan <kefin@makedostudio.com>
* updated: 2014-11-21 kchan
"""
from django.core.exceptions import ImproperlyConfigured
| [
"kefin@makedostudio.com"
] | kefin@makedostudio.com |
2fd4937da743fc000cbedc14f31385020e365cac | c264153f9188d3af187905d846fa20296a0af85d | /Python/Python3网络爬虫开发实战/《Python3网络爬虫开发实战》随书源代码/proxy/selenium_chrome_auth.py | f9b9e55510c5325125459414bee6a67c7eb3fbed | [] | no_license | IS-OSCAR-YU/ebooks | 5cd3c1089a221759793524df647e231a582b19ba | b125204c4fe69b9ca9ff774c7bc166d3cb2a875b | refs/heads/master | 2023-05-23T02:46:58.718636 | 2021-06-16T12:15:13 | 2021-06-16T12:15:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,653 | py | from selenium import webdriver
from selenium.webdriver.chrome.options import Options
import zipfile
ip = '127.0.0.1'
port = 9743
username = 'foo'
password = 'bar'
manifest_json = """
{
"version": "1.0.0",
"manifest_version": 2,
"name": "Chrome Proxy",
"permissions": [
"proxy",
... | [
"jiangzhangha@163.com"
] | jiangzhangha@163.com |
367694bf22eedbb89985c70d2368890832e317f2 | 23d5370d1b4d889aba0c2bfccfe3fcc8bced7bf4 | /examples/RLC_example/test/RLC_IO_I_eval_sim.py | 7106cd0859cc1a4f13867be28def0f2e4708d138 | [
"MIT"
] | permissive | marcosfelt/sysid-neural-structures-fitting | 0cd21b4197b52ffe5ef78ac4045a431e202fdb05 | 80eda427251e8cce1d2a565b5cbca533252315e4 | refs/heads/master | 2022-12-06T18:45:21.365282 | 2020-09-03T18:32:16 | 2020-09-03T18:32:16 | 292,630,318 | 0 | 0 | MIT | 2020-09-03T17:01:34 | 2020-09-03T17:01:33 | null | UTF-8 | Python | false | false | 4,273 | py | import pandas as pd
import numpy as np
import torch
import matplotlib.pyplot as plt
import os
import sys
sys.path.append(os.path.join("..", ".."))
from torchid.iofitter import NeuralIOSimulator
from torchid.iomodels import NeuralIOModel
from common import metrics
if __name__ == '__main__':
dataset_type = 'id'
... | [
"marco.forgione1986@gmail.com"
] | marco.forgione1986@gmail.com |
ecf74664f5363c52e4790b600cfe87442802733c | 76efd7bde15c764d81b847c2f1d27776e90ec2ed | /imgauth/urls.py | 9e3bcaf4c6a05bdd033ed6d3d6fdce1b5c3a4914 | [] | no_license | ccsreenidhin/Image-Metadata-Analysis-ELA | e7e961f5d5724397081c9437c78e727577f449fe | 4bb24c3047dc59a81867c7c9cdb58bc0fc222358 | refs/heads/master | 2022-11-07T21:18:51.340625 | 2018-03-23T17:16:27 | 2020-06-13T08:02:49 | 271,966,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,033 | py | """imgauth URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-ba... | [
"ccsreenidhin@gmail.com"
] | ccsreenidhin@gmail.com |
884dfc01602e5dbcf3bf40b472a5598f3cb7038f | 71de8d79f91f9ce64bd4df43d9b23afce8cab507 | /shopnani/urls.py | 8f8e65ca13ecd20a4f4c0844145b13a385b3f476 | [] | no_license | ritika-0111/shopna | d7484c4fbd92b45c161932e5cbd338ab0e884392 | 411a3282ad01f65180b5f7c29366c75dafb78bde | refs/heads/master | 2020-11-30T20:28:47.168180 | 2019-12-27T16:50:06 | 2019-12-27T16:50:06 | 230,461,162 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,091 | py | """shopnani URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Cl... | [
"noreply@github.com"
] | noreply@github.com |
7a18d7edc350a9159863008804955748ffbeec6f | e262e64415335060868e9f7f73ab8701e3be2f7b | /.history/Test002/数据类型_20201205162718.py | 6bec763ca9a2bf6df3696d9f6db0124f17054d85 | [] | no_license | Allison001/developer_test | 6e211f1e2bd4287ee26fd2b33baf1c6a8d80fc63 | b8e04b4b248b0c10a35e93128a5323165990052c | refs/heads/master | 2023-06-18T08:46:40.202383 | 2021-07-23T03:31:54 | 2021-07-23T03:31:54 | 322,807,303 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 208 | py | fruits = ['orange', 'apple', 'pear', 'banana', 'kiwi', 'apple', 'banana']
# print(fruits.count("apple"))
# a = fruits.index("banana",4)
# print(a)
# fruits.reverse()
# print(fruits)
fruits.append("daka")
| [
"zhangyingxbba@gmail.com"
] | zhangyingxbba@gmail.com |
a6059eb70b584c3b6cf710feda6849035e3de5a6 | caa6ac5a8e16a51e8e375f15550ae14950673ce0 | /py05.py | e2d45abe35999bfc9b8ce15f3fae3a0579f9278d | [] | no_license | kennysongkui/python01 | 76361f8172488d1994634a76b379ce72ad04005b | aa9234dab017a4a077dabdcb507d7d39bf3e23b3 | refs/heads/master | 2020-05-23T23:42:40.827868 | 2017-03-14T09:38:30 | 2017-03-14T09:38:30 | 84,802,175 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,973 | py | #!/usr/bin/env python
#coding=utf-8
import urllib
import urllib2
import re
import tool
import os
class Spider:
def __init__(self):
self.siteURL = 'https://mm.taobao.com/json/request_to_list.htm'
self.tool = tool.Tool()
def getPage(self,pageIndex):
url = self.siteURL + "?page=" + str(... | [
"songkui@chetong.net"
] | songkui@chetong.net |
02ac599efffb60c456691b509ea0cf29184a095d | dd5f20d092493ec8b2ce8ea12ea66ddc52dcdaf6 | /poreseq/Util.py | 33bd8c0b74976c1390b9622081521a527865c3cc | [] | no_license | 0820LL/poreseq | 1421978b07250f43b2d4c967d02e3495534caf6c | c14d77369a431ee2c1f8abb7bbbd28ad3e58d6ff | refs/heads/master | 2020-12-02T19:20:29.021286 | 2016-04-23T20:39:08 | 2016-04-23T20:39:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,258 | py |
class RegionInfo:
'''Helper class for region data.'''
def __init__(self, region=None):
'''Parses a region string.
Accepts four formats:
None
sequence_name
10000:20000
sequence_name:10000:20000
and it is up to later processi... | [
"tamas@seas.harvard.edu"
] | tamas@seas.harvard.edu |
101ccd2aec21b66c706af7a581d6bb1035636092 | abb614790bdf41c7db9d09dfdea4385f78c2be52 | /rtk-RQA/rtk/hardware/__gui/gtk/Capacitor.py | 936eb677804a46719f2a7e3d331f370599b11797 | [
"BSD-3-Clause"
] | permissive | codacy-badger/rtk | f981bb75aadef6aaeb5a6fa427d0a3a158626a2a | bdb9392164b0b32b0da53f8632cbe6e3be808b12 | refs/heads/master | 2020-03-19T02:46:10.320241 | 2017-10-26T20:08:12 | 2017-10-26T20:08:12 | 135,659,105 | 0 | 0 | null | 2018-06-01T02:43:23 | 2018-06-01T02:43:23 | null | UTF-8 | Python | false | false | 39,030 | py | #!/usr/bin/env python
"""
###################################################
Capacitor Package Component Specific Work Book View
###################################################
"""
# -*- coding: utf-8 -*-
#
# rtk.hardware.__gui.gtk.Capacitor.py is part of The RTK Project
#
# All rights reserved.
... | [
"arowland@localhost.localdomain"
] | arowland@localhost.localdomain |
221f6766e94a926edbc76bf1e3da59c333ccd8f6 | 42631b33be63821744ec85caf6ef49a6b1d189b0 | /VSRTorch/Models/video/__init__.py | f1c5cfea0869dbccaa6f876c2c5d088f6f37712f | [
"MIT"
] | permissive | AliceMegatron/VideoSuperResolution | c70e822764b29a01f3a7c035cfc10e3b31b9f6f4 | bfcf237ee7e412b688c7f5e094585bbaecffc1d0 | refs/heads/master | 2020-05-29T15:25:13.840222 | 2019-05-16T13:00:43 | 2019-05-16T13:00:43 | 189,219,950 | 1 | 0 | MIT | 2019-05-29T12:21:53 | 2019-05-29T12:21:52 | null | UTF-8 | Python | false | false | 240 | py | # Copyright (c): Wenyi Tang 2017-2019.
# Author: Wenyi Tang
# Email: wenyi.tang@intel.com
# Update Date: 2019/4/3 下午5:10
import logging
_logger = logging.getLogger("VSR.VIDEO")
_logger.info("@LoSealL. Video related ops, nets...")
| [
"twytwy12345@live.com"
] | twytwy12345@live.com |
399748c8245334ba0393c96da43d21a13b68ad95 | 5d4267bf377bea5beb50ee70e7a853b1d5be88d0 | /Project Euler/34.py | 4085ba2c972d435b453fc62ce40d31adfbafd462 | [] | no_license | Penguin-71630/Python-3 | 043b4d7b7525478f87c2404ff0d585d030d50d11 | fc3acf1a2b7a204282503d581cc61275b39911a4 | refs/heads/master | 2022-01-20T04:14:51.005757 | 2019-08-11T08:08:58 | 2019-08-11T08:08:58 | 198,004,811 | 0 | 0 | null | 2019-07-21T04:27:52 | 2019-07-21T02:52:04 | Python | UTF-8 | Python | false | false | 470 | py | # Q34-Digit factorials
# unsolved
def factorial(a):
fac = 1
for i in range(a, 0, -1):
fac *= i
return fac
def take_number_apart(a):
fac_sum = 0
for j in str(a):
fac_sum += factorial(int(j))
return fac_sum
# find the limit
k = 9
summation = 0
while k < t... | [
"noreply@github.com"
] | noreply@github.com |
ebe1b3152447a485f5e92575742111b181eaa38a | a8487d84ead85c451a13144ffe0ed1b3bc1ce83f | /VPES_Auto/C23.py | 7ad71f3b15ccdd100ca6a9aed23b35a83d904f16 | [] | no_license | jinokhong/VPES_Auto | a4ba97b58a3caf4a599ff7fda64168a3233cca46 | dc0df673415d90cb9d225ef83353aae0d8188f8a | refs/heads/master | 2020-06-27T01:28:36.828916 | 2020-01-02T03:11:10 | 2020-01-02T03:11:10 | 199,366,351 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,540 | py | import Default_Setting
from selenium.webdriver.support.ui import Select
from selenium.common.exceptions import NoSuchElementException
import unittest, time
# TestRail module.run_id, Testcase_id, Message 정보
case_id = 23
class C23(unittest.TestCase):
def test_C23(self):
try:
module = Default_S... | [
"johong@suresofttech.com"
] | johong@suresofttech.com |
20c27998a016f048864a6587a7e0f5563eb3eb70 | 4ba6e58255643acf5c4bd3a7b1bf2765705f84b2 | /OldProjects/saferidelogger/mapper.py | 0d63121720de4daf064ae5b590c92740771c35b2 | [] | no_license | CliffordC/OldPythonProjects | db4358a4cc53d98248052f1aed821ca9a28c0e62 | 502ffc0998040e6d9060169906c03fa73f62b070 | refs/heads/master | 2022-07-24T00:30:07.351813 | 2020-05-18T05:01:57 | 2020-05-18T05:01:57 | 264,800,636 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30 | py | import gmaps
gmaps.configure() | [
"siestaftw10@gmail.com"
] | siestaftw10@gmail.com |
bf25cf83e5bb846200fe4a50cc9eb2aebef369e0 | f1620520e7f5a553f2a25d5e1cc5d3451fa612dc | /hw3.py | 46c5b5bf86b4b25c0ece14ad784dcfd95f0e6d08 | [] | no_license | milesfertel/NandSquare256 | c750a11a2945c4d860216282a1543deb46a37528 | 4acd8861153e7fa7e2483efb821c431cf989b47b | refs/heads/master | 2020-03-29T18:03:02.579707 | 2018-10-02T18:05:19 | 2018-10-02T18:05:19 | 150,192,200 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,238 | py | """ Basic template file that you should fill in for Problem Set 3. Some util
functions are provided from the NAND notebooks online that implement some
of the NAND essentials. """
from util import EVAL
from util import TRUTH
from util import NANDProgram
from math import floor
# TODO: Implement this function and... | [
"milesfertel@college.harvard.edu"
] | milesfertel@college.harvard.edu |
50a415cc4f827edf71be0d052f41c61bd0eb5c69 | c01ffbf9e223bec136b1f527ffe378a70183eb6c | /DownloadFiles.py | aef7229f90f99201397a432ddeb2f18e03f6c320 | [] | no_license | frakopy/Download-files-using-Selenium | d1e4b3974efddd4fb41877b5c9a3703156971568 | 8c6faf372c2a5bcfc0702f29427682f7a94fb500 | refs/heads/main | 2023-05-06T17:48:31.978808 | 2021-05-27T19:55:44 | 2021-05-27T19:55:44 | 371,488,692 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,458 | py | from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as exc_condts
from selenium.webdriver.common.by import By
#from webdriver_manager.chrome import ChromeDriverManager
import time, os, csv, math
from zipfile import ZipFile as... | [
"noreply@github.com"
] | noreply@github.com |
e1b8b16676ad28146055b62b838fbfe5aad1dead | 739a84f15a1242ec715c79f4f1fd7657c607f2e6 | /804-unique-morse-code-words/804-unique-morse-code-words.py | c867b4c5cf6c30dbd95251439810089c2a8b060b | [] | no_license | ElshadaiK/Competitive-Programming | 365683a7af61f881ee9cd56d2124f09cfb88e789 | 9757395120757a81fb5df0bd4719771e60410b47 | refs/heads/master | 2023-03-09T04:58:33.262626 | 2023-02-04T12:24:39 | 2023-02-04T12:24:39 | 225,391,846 | 10 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,037 | py | class Solution:
def uniqueMorseRepresentations(self, words: List[str]) -> int:
# create a dictionary for morse code (You can just copy & paste it! ^.^)
ENG_to_MORSE = {
'a':".-", 'b':"-...", 'c':"-.-.", 'd':"-..", 'e':".",
'f':"..-.", 'g':"--.", 'h':"....", 'i':"..... | [
"54620095+ElshadaiK@users.noreply.github.com"
] | 54620095+ElshadaiK@users.noreply.github.com |
98abb2095d0747b698415bc438c553124bfed6c4 | 5faade7c8d091edb5e96d721ec33a9b240ee6e55 | /mmdetection/mmdet/.mim/tools/train.py | 27d56b1cb2b54cdb7e29127aec267fae482cf038 | [
"Apache-2.0",
"CC-BY-2.0"
] | permissive | seogi98/object-detection-level2-cv-18 | 34bba5c6a9d49d506277d2ba10d01f3b59af3117 | e87c741c4918314e28c461b937c7094d264fce56 | refs/heads/main | 2023-08-21T03:13:14.702929 | 2021-10-16T10:13:20 | 2021-10-16T10:13:20 | 425,447,040 | 3 | 0 | null | 2021-11-07T08:09:36 | 2021-11-07T09:09:36 | null | UTF-8 | Python | false | false | 6,914 | py | import argparse
import copy
import os
import os.path as osp
import time
import warnings
import mmcv
import torch
from mmcv import Config, DictAction
from mmcv.runner import get_dist_info, init_dist
from mmcv.utils import get_git_hash
from mmdet import __version__
from mmdet.apis import set_random_seed, train_detector... | [
"tmdgns1139@naver.com"
] | tmdgns1139@naver.com |
9d48aa9c700b4a07e4a8f8bcbda6c8fb2120b598 | bad08ce4b707f8d479a6f9d6562f90d397042df7 | /Python/python-socket-网络协议.py | eb95bcb6957946195c1044ca5c82f8d396114488 | [] | no_license | lengyue1024/notes | 93bf4ec614cbde69341bc7e4decad169a608ff39 | 549358063da05057654811a352ae408e48498f25 | refs/heads/master | 2020-04-29T07:14:45.482919 | 2019-03-16T07:51:26 | 2019-03-16T07:51:26 | 175,945,339 | 2 | 0 | null | 2019-03-16T08:19:53 | 2019-03-16T08:19:52 | null | GB18030 | Python | false | false | 2,273 | py | ----------------------------
网络协议入门 |
----------------------------
----------------------------
网络-物理层和链路层 |
----------------------------
* 以太网协议(ethernet)
* 一组电信号组成一个数据包,叫做 - 帧
* 每一帧分为:报头(head)和数据(data)两部分
———————————————————————————————
|head| data |
———————————————————————————————
* he... | [
"747692844@qq.com"
] | 747692844@qq.com |
41e5276cf18e8b181b6e5ce7318913cf6fd6d093 | 1a0d6aec200ea266e2726dd50dde40595662191d | /server/app.py | e491a5c2d86e7a04d1ac93495a93c9c88ef66985 | [] | no_license | sanggusti/fastapi-news-app | 77a8608377b4884ba85560eef66b04c9fe05578f | 13aa1e854347beb93ffa4decec71c828bd66c753 | refs/heads/master | 2023-07-12T01:52:55.723089 | 2021-08-14T05:51:55 | 2021-08-14T05:51:55 | 395,857,085 | 0 | 0 | null | 2021-08-14T03:08:20 | 2021-08-14T01:58:32 | Python | UTF-8 | Python | false | false | 801 | py | import os
from fastapi import FastAPI
from fastapi.staticfiles import StaticFiles
from fastapi.responses import FileResponse
from pydantic import BaseModel
from .api.news_api import get_news_articles
DIR = os.path.dirname(__file__)
class SearchRequest(BaseModel):
q: str
from_date: str
app = FastAPI()
app... | [
"gustiowinata0@gmail.com"
] | gustiowinata0@gmail.com |
9f810de0b2d578ee42ac0ac94c65f3b5a53b2789 | 72bf2b70af6648664de97f9573b5df10c707936a | /rgstrn/registration/reg/urls.py | 9ecdee8838232f35e1454fee1442b38e737166be | [] | no_license | sarathrajkottamthodiyil/django-projects | 44f77d65e6f247c89cd5e0f63c81bf6dbe9ab671 | bf14e7e4db2f0d2290b5efeef4dda82d0d026382 | refs/heads/master | 2020-09-06T12:47:17.486425 | 2019-11-08T09:08:41 | 2019-11-08T09:08:41 | 220,428,167 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 182 | py | from django.contrib import admin
from django.urls import path
from.import views
from django.conf.urls import url
urlpatterns = [
url('/', views.register, name='register')
] | [
"noreply@github.com"
] | noreply@github.com |
c3016ff7a972f62e2906adc7b0164ee77a5a2a1c | ebfac951b49ba380d4b88e0c6308aea326597381 | /chatrender/views/chat_types.py | 7b37509617634b9ce6f0f47cc6e770b11a026be2 | [
"MIT"
] | permissive | The-Politico/django-politico-slackchat-renderer | 2e4175359a4df004526722a190040cef767837fd | adb3ed2ba5039a97ee7b021d39aa40cab11e5661 | refs/heads/master | 2022-12-10T10:57:51.796473 | 2018-05-22T15:37:57 | 2018-05-22T15:37:57 | 120,328,521 | 2 | 0 | MIT | 2022-12-08T02:09:33 | 2018-02-05T16:10:25 | JavaScript | UTF-8 | Python | false | false | 431 | py | import requests
from chatrender.conf import settings
from django.contrib.admin.views.decorators import staff_member_required
from django.shortcuts import render
@staff_member_required
def chat_types(request):
response = requests.get(settings.SLACKCHAT_CHATTYPE_ENDPOINT)
context = response.json()
return r... | [
"jmcclure@politico.com"
] | jmcclure@politico.com |
791f64fe3027c9ce492c7203ae8e8ce5cb945748 | ebf12b3f8ab1017ef8f04f6fe89425febe5fae3a | /Desafios Modulo IV/Desafio - Ventas/agrupados.py | 5ed26293e449617cefdaa24dce065271db9e1932 | [] | no_license | MaxiVargas78/DesafioLatamPython | a77afe64c3718a57da8ffd4cec10654377fc67f9 | 50dadabb5ea4a56a455edcc8a250e43705424205 | refs/heads/main | 2023-07-09T18:50:04.336128 | 2021-08-17T03:55:58 | 2021-08-17T03:55:58 | 387,273,898 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | ventas = {
"Enero": 15000,
"Febrero": 22000,
"Marzo": 12000,
"Abril": 17000,
"Mayo": 81000,
"Junio": 13000,
"Julio": 21000,
"Agosto": 41200,
"Septiembre": 25000,
"Octubre": 21500,
"Noviembre": 91000,
"Diciembre": 21000,
}
dicci = []
dicci1 = {}
for i in ventas:
dicci.append(ventas[i])
for j in dicci:
if j in ... | [
"maxx7689@gmail.com"
] | maxx7689@gmail.com |
91003a13c3cf7e9bec691541eb1dfdeb36497c67 | 6921e4e6955f5d35f9413f007e7be0d050550040 | /db/dbUtil.py | 9a62812340c4414bc94e1269cedd618e0dfd4283 | [] | no_license | yiyisf/get_link_python | 84f9fe94a3f21513e8c0b66c3a8705377ffafd51 | a7cc45846e91c9f26c8b91e9cc44f2910a02d04a | refs/heads/master | 2020-04-06T03:52:31.913232 | 2016-07-16T12:06:04 | 2016-07-16T12:06:04 | 59,097,795 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 160 | py | # -*- coding: utf-8 -*-
"""
数据库定义及操作
"""
def connectDb():
def createDB():
def insert():
def update():
def query():
def delete():
| [
"yiyi119120@gmail.com"
] | yiyi119120@gmail.com |
0450e9cf73bed75b7feb3469e06a9af363893758 | 45b4fb25f4cd0e74715a2a811354ff9c45888e73 | /Old_Py_Files/http_request_response_parser_tun.py | ad32a6b32adc227c374f3782c442d988bd2d22c4 | [] | no_license | Excloudx6/Measuring_Mobile_Advertisement | 062577dd97f88b5e51b266289e613312d9c78b18 | 5790eaa04ee12a0cdc7b7752bbf29bd0c03efea6 | refs/heads/master | 2023-03-18T15:43:35.364235 | 2015-04-22T04:22:11 | 2015-04-22T04:22:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,537 | py | #!/usr/bin/env python
import dpkt
import zlib
f = open('test.pcap','r')
pcap = dpkt.pcap.Reader(f)
Response=0
# load HTTP pcap file n' link to dpkt attributes
frame_counter = 0
for ts,buf in pcap:
#print "Loop Request"
frame_counter+=1
ip = dpkt.ip.IP(buf)
tcp = ip.data
try:
if tcp.... | [
"hchawla@localhost.localdomain"
] | hchawla@localhost.localdomain |
c045592da596b19d55f84306bd5d9a70eeebe23d | 66e029a85dcce281fcba00b73c12ced74296cab9 | /build_corpus.py | 2960adfd761113d79a479146e789af3aee1e2d29 | [] | no_license | maiyaporn/user-profiling | 1bd08f56b48ac75443078ab8d09342e79c7a57b8 | 731421fc16f67988d32daa42cea59b931a37edc8 | refs/heads/master | 2021-01-13T01:46:16.233090 | 2014-12-17T05:54:23 | 2014-12-17T05:54:23 | 26,605,491 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,273 | py | from nltk.corpus import stopwords
from nltk import word_tokenize
from nltk.stem.wordnet import WordNetLemmatizer
from gensim import corpora, models, similarities
import numpy as np
import glob
import os
import codecs
import string
import pickle
class BuildCorpus(object):
"""docstring for BuildCorpus"""
def __init__(... | [
"p.maiyaporn@gmail.com"
] | p.maiyaporn@gmail.com |
f902010d4f96a60c2cb82fe060c4864c2f26e9d2 | 4b79bce1718767aedafe9a585e9fd126820ccd67 | /venv/Scripts/pip-script.py | e07292d8d29c675fe8f8aa41e3ae07edb5239a67 | [] | no_license | ajay15malusare/PYTHON | fc1208c7c3f1e89fdbf2d49c0976104d82e53bde | 59e7ad4ef8f86566fbee26ae67d7aeec3093ffcd | refs/heads/master | 2020-05-05T14:00:40.036947 | 2019-04-08T08:30:58 | 2019-04-08T08:30:58 | 180,103,615 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | #!D:\Desktop\PYTHON\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(
... | [
"ajay15malusare@gmail.com"
] | ajay15malusare@gmail.com |
1f459741a34f6b06e0c9856c6a59f86fee6acd63 | a3cdfaf2d4d72f4d1c8bd2a9d3e8ce1f6d0316ca | /Research Files/10x10x10_moving/10x10x10movinglammpsscriptgenerator.py | e24983c5d7ba1cc8fa3588b9ef5309dd69d9177a | [] | no_license | webclinic017/Personal-Projects | d61e3f5ad1e1c12c611ae088fa64050dc2f4693b | 4e730e350e5698bb40bbdb1526596c6a8a3c5596 | refs/heads/master | 2023-06-10T23:00:50.948934 | 2021-07-03T00:46:19 | 2021-07-03T00:46:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,014 | py | #!/usr/bin/env python
if __name__ == '__main__':
temperature = 50
for i in range(1,21):
temp = int(temperature) * i
if temp == 1000:
temp_string = "99_1000"
else:
temp_string = str(temp)
f = open("10x10x10_{}k_moving_py.lmp".format(temp_string), "w+")
... | [
"noreply@github.com"
] | noreply@github.com |
6f97e11be404d475c96c2f5c4625ac4c0a5f12cb | bfe6c95fa8a2aae3c3998bd59555583fed72900a | /lengthOfLIS.py | 0416711c4a259c5b75a686e99c23b0c224139c4f | [] | no_license | zzz136454872/leetcode | f9534016388a1ba010599f4771c08a55748694b2 | b5ea6c21bff317884bdb3d7e873aa159b8c30215 | refs/heads/master | 2023-09-01T17:26:57.624117 | 2023-08-29T03:18:56 | 2023-08-29T03:18:56 | 240,464,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 991 | py | # one solution
# class Solution:
# def lengthOfLIS(self, nums):
# log=[0 for i in range(len(nums))]
# for i in range(len(nums)):
# m=0
# for j in range(i):
# if nums[j]<nums[i]:
# m=max(m,log[j])
# log[i]=m+1
# retur... | [
"zzz136454872@163.com"
] | zzz136454872@163.com |
c3b32a9a5281c3c2b56d9125376718f943199953 | 0749bf5bd0d07cabe0acac93635f1e4e3c97dda6 | /Quick_Basic/20.functions.py | dd757d30a3c297d3cb9e6c7df47513afc6c2ca13 | [
"MIT"
] | permissive | ananddasani/Python_Practice_Course | b47565aedbc4cc166d54c6dee7c4587edabc2e82 | 5bc0993ccff7df2631a6f1177bf898626c095d8b | refs/heads/main | 2023-06-14T19:05:18.003900 | 2021-07-06T06:03:13 | 2021-07-06T06:03:13 | 377,720,391 | 3 | 2 | MIT | 2021-06-17T08:21:59 | 2021-06-17T05:54:28 | null | UTF-8 | Python | false | false | 698 | py | # program to demonstrate the functions in python
# function without args
def say_hello():
print("Hello python :)")
say_hello()
# function with args
def say_hello_args(arg1, arg2):
print("Hello " + arg1 + " how are you doing ? " +
arg2 + " is waiting for you :)")
say_hello_args("anand", "om")
... | [
"ananddasani74@gmail.com"
] | ananddasani74@gmail.com |
faa80815a53cfae073f37f568ed4e971ea29506f | 8c1551f974e4c2d89bc9f22905734e4421761189 | /model_backupJan12.py | 393715fa2bd41f31f501120dc337fd92c12c0b0f | [] | no_license | ofraam/GTT_MCTS | c7f8210d60398640fd4035b8d93fed99929bbe43 | 44647bf54a6e4622df21824c413e92ee33fbe719 | refs/heads/master | 2020-03-29T11:43:57.347444 | 2018-09-24T14:58:35 | 2018-09-24T14:58:35 | 149,867,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 53,356 | py | import copy
import numpy as np
import matplotlib.pyplot as plt
import math
import replay as rp
from emd import emd
# from pyemd import emd
from scipy import stats
# from cv2 import *
LOGFILE = ['logs/6_hard_full_dec19.csv','logs/6_hard_pruned_dec19.csv','logs/10_hard_full_dec19.csv','logs/10_hard_pruned_dec19.csv', '... | [
"oamir@seas.harvard.edu"
] | oamir@seas.harvard.edu |
7de38a9ebf121bd2358964fca2221e14ee60c24a | b93446177b6ac10bd27582b1e9647f0adab7d3d4 | /pyVoodoo/ir.py | af3c8d637b9a9ac7f6a12bde7d1fe86473914bc8 | [
"BSD-3-Clause"
] | permissive | bossiernesto/pyVoodoo | 727f2666a656e8af7ed3d2c8ee4a2ea51f7b95f0 | 7be339ce05c909d0c3c2893ab1eaa2d18f335235 | refs/heads/master | 2021-04-09T17:16:46.984893 | 2017-01-31T22:11:29 | 2017-01-31T22:11:29 | 34,115,994 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 67 | py | class Node(tuple):
"""Base class for AST"""
__slots__ = []
| [
"bossi.ernestog@gmail.com"
] | bossi.ernestog@gmail.com |
82d5072c95d430143fba75124b748cf8add70456 | d342898f0a632b28d5c6f594208300c546cb51e3 | /Helper.py | ee73a7910b6b3f420a71ca6c2bdb1f2d9ec9298c | [] | no_license | DragonKiller952/ST-Groep-8 | 91ce869b1905504e65d84acf104fc68156d0ef91 | 00c19288b2fb5a6110fba6a2eea7b03650d0e534 | refs/heads/main | 2023-01-31T22:08:12.134684 | 2020-12-17T09:05:02 | 2020-12-17T09:05:02 | 318,191,516 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 612 | py | # Chosing blue
def standard_color(*args):
return 'blue'
# Chosing random without duplicates
def unique_random(self, choices, used):
choice = self.random.choice(choices)
while choice in used:
choice = self.random.choice(choices)
used.append(choice)
return choice
# Chosing color based on age... | [
"abou.w@hotmail.com"
] | abou.w@hotmail.com |
09fb11f511d0b05365e34eecb467462c7c0d96a0 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/97/usersdata/228/56191/submittedfiles/lecker.py | 8478e84811202758aba6f53520c3def648a83ece | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 838 | py | # -*- coding: utf-8 -*-
from __future__ import division
n=int(input('digite o número de elementos:'))
lista1=[]
lista2=[]
for i in range (0,n,1):
termo1=int(input('digite o termo:'))
lista1.append(termo1)
for i in range (0,n,1):
termo2=int(input('digite o termo:'))
lista2.append(termo2)
def le... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
8168fad0cd7f389b78bbc3f5a443a0caf364b763 | c39ad4916eb59f7824f2577eaff109fa3a820d91 | /app/controllers/BaseController.py | e965e579538ddc60729b2605f1f13ade78ec151a | [] | no_license | JhonathaNunes/della-sollution-back | e794b23f81136c729a35324ae35ce370411b23ef | f1001954ff349d99eb272a18b917cac7e0182123 | refs/heads/main | 2023-05-29T08:01:01.914292 | 2021-06-08T21:42:40 | 2021-06-08T21:42:40 | 341,367,385 | 0 | 0 | null | 2021-06-08T21:42:41 | 2021-02-22T23:29:41 | Python | UTF-8 | Python | false | false | 2,775 | py | import database
from flask import request, jsonify
from sqlalchemy import exc
from cerberus import Validator
from authenticator import auth
import exceptions
class BaseController(object):
def __init__(self, model, post_schema = {}, put_schema = {}):
self.model = model
self.post_schema = post_schem... | [
"lucas.pacheco@aluno.faculdadeimpacta.com.br"
] | lucas.pacheco@aluno.faculdadeimpacta.com.br |
fee5ef2e8800801f15cd35535d529dcf5561d05a | 9afcf8bd88a7c36331905f77c31f3b264a6e14e7 | /test_53_1.py | 46c72baa677ef6d7604e4aa0fc2c185978ca8a99 | [] | no_license | wasabbi/testcase | 72800c5f5a23c369c93f385c07040f0186912d9c | 774465d4ab2c88d184efddfae54fc2cfb760bb36 | refs/heads/master | 2021-01-08T23:37:11.717291 | 2020-02-29T17:25:58 | 2020-02-29T17:25:58 | 233,437,018 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,212 | py | import os
target = "./CVE-2017-11176"
thread1 = 0x4008d1
thread2 = 0x40087d
thread3 = 0x0 #CPU_index is 2
# hw_bp_addr sched __start_routine
hw_bp1 = [0xffffffff810f7f2e, 1, 0x4008d1]
hw_bp2 = [0xffffffff810f8471, 2, 0x40087d]
hw_bp3 = [0x0, 0, 0x0]
#========The following need not be modified====... | [
"lee.yeb33@gmail.com"
] | lee.yeb33@gmail.com |
c2861967833cf5b0d8dd7b6e9e33c7aa2c74df1f | 2839ece36a5186ae0e7f90af1efa0913f701f066 | /backend/rocket/ids.py | adbfbb1daa6148e4f5d330d9eae0ae4d59b2b8b7 | [
"Apache-2.0"
] | permissive | Longi94/rl-loadout | 5d32badffb72d1e16561d31422e470d6e51f735e | 07a248e16c8e5fb615ec4f8018631f3c622ac2a4 | refs/heads/master | 2023-01-08T07:40:42.445982 | 2020-03-14T00:00:37 | 2020-03-14T00:00:37 | 197,087,185 | 18 | 2 | Apache-2.0 | 2023-01-07T08:47:39 | 2019-07-15T23:49:19 | TypeScript | UTF-8 | Python | false | false | 1,573 | py | BODY_GREY_CAR_ID = 597 # DeLorean Time Machine
BODY_DARK_CAR_ID = 803 # '16 Batmobile
BODY_BERRY_ID = 2665 # The Dark Knight Rises Tumbler
BODY_EGGPLANT_ID = 2666 # '89 Batmobile
BODY_MAPLE_ID = 2919 # Jurassic Jeep® Wrangler
BODY_RYE_TIER1_ID = 3155 # Maverick
BODY_RYE_TIER2_ID = 3156 # Maverick G1
BODY_RYE_TIE... | [
"lngtrn94@gmail.com"
] | lngtrn94@gmail.com |
605f934856fa73abaca59a8d4b985a30749fa454 | f47ac8d59fe1c0f807d699fe5b5991ed3662bfdb | /binary24.py | 9cad221c86da71526bc3fda5faefd88b49ae47c7 | [] | no_license | YanglanWang/jianzhi_offer | 5561d8a29881d8504b23446353e9f969c01ed0c5 | 1c568f399ed6ac1017671c40c765e609c1b6d178 | refs/heads/master | 2020-06-16T10:41:44.979558 | 2019-08-03T09:07:37 | 2019-08-03T09:07:37 | 195,543,754 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,224 | py | import create_tree
class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution:
# def FindPath(self, root, expectNumber):
# # write code here
# start=root
# if start==None:
# return []
# if start.left==... | [
"yanglan-17@mails.tsinghua.edu.cn"
] | yanglan-17@mails.tsinghua.edu.cn |
a755ce708909d92c7070ea2cbb38df5e1e9621a9 | c1e2dfac83ca2fab928127e7ab3b898623f943ab | /tests/test_repr_role.py | b0904d569f5c21e294aed1da039383fd148880a5 | [
"BSD-3-Clause"
] | permissive | sixty-north/added-value | 1cd7845ff63a97f6282f4ed8ebc0e6b9158be779 | debd9e8dcf1475ecc7d2836a6fecdfd95a2de8ec | refs/heads/master | 2023-04-28T11:16:59.244319 | 2023-04-14T19:37:35 | 2023-04-14T19:37:35 | 132,577,509 | 0 | 1 | BSD-3-Clause | 2023-04-14T19:37:36 | 2018-05-08T08:21:33 | Python | UTF-8 | Python | false | false | 464 | py | from pathlib import Path
basename = "test_repr_role"
html_filename = basename + ".html"
def test_base_name_in_html(app, status, warning):
app.build()
html = Path(app.outdir / html_filename).read_text()
assert basename in html
def test_repr_literal_integer_html_contains_value(app, status, warning):
... | [
"rob@sixty-north.com"
] | rob@sixty-north.com |
5c116971384f95f12ce90c1b8582949a23afaf51 | 378e3768a5afec1fe4892121a95d64e7a09c8a6d | /file/urls.py | f16eb900c8acc36255f5b094018e3dfcfd709aa5 | [] | no_license | mattwilliamson/dawstore | f7c5f8593cf64885cc80dad2c04abbe1c747c095 | d17871c732be88383f92acccaeca2d33df22e6b5 | refs/heads/master | 2020-05-18T15:49:46.815129 | 2010-03-24T03:32:25 | 2010-03-24T03:32:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 273 | py | # -*- coding: utf-8 -*-
from django.conf.urls.defaults import *
urlpatterns = patterns('file.views',
(r'^get/(?P<key>.+)/$', 'get'),
(r'^put/(?P<public_key>.+)/(?P<secret_key>.+)/$', 'put'),
(r'^delete/(?P<public_key>.+)/(?P<secret_key>.+)/(?P<key>.+)/$', 'delete'),
)
| [
"dawsdesign@gmail.com"
] | dawsdesign@gmail.com |
4ad984ec5a966cb62eaeb618dfbc4aafb9fcd4f7 | 7100c3c8012dcf2bc6427bf33c55662bc61924f2 | /api/v1/views/cities.py | ecabd72acf87d8cdd29c4b5dfb6bb78c183ae1ca | [
"LicenseRef-scancode-public-domain"
] | permissive | OscarDRT/AirBnB_clone_v3 | c3ffa7b7ffb5182143b0f37c8ef7d1342cdffa0a | 9f015b7f1aa1b9c7f7f0d85fd7f5dc97a6679e9c | refs/heads/master | 2022-05-27T07:35:53.627606 | 2020-04-29T21:55:33 | 2020-04-29T21:55:33 | 259,408,927 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,956 | py | #!/usr/bin/python3
"""Documentation"""
from flask import Flask, jsonify, abort, make_response, request
from api.v1.views import app_views
from models.state import *
from models.city import *
from models import storage
@app_views.route('/states/<state_id>/cities', methods=['GET', 'POST'],
strict_slash... | [
"oscarnetworkingpro@gmail.com"
] | oscarnetworkingpro@gmail.com |
440db3f7231af9543565979f36d3760abc278062 | 5f1afd8240ce286b0a78f61b7faa3a53e4d170e1 | /examples/contrib/mnist/mnist_with_neptune_logger.py | 2f7c7d2bc0784994e1fff9e02cd16acff0e25d91 | [
"BSD-3-Clause"
] | permissive | dnola/ignite | b71e5fe7c57fe157c09044d534321b070ec4c844 | da86f6d83268cba0275a18be506a69f142157e97 | refs/heads/master | 2020-12-29T08:47:24.519519 | 2020-02-07T14:30:29 | 2020-02-07T14:30:29 | 238,542,050 | 0 | 0 | BSD-3-Clause | 2020-02-05T20:29:07 | 2020-02-05T20:29:06 | null | UTF-8 | Python | false | false | 6,778 | py | """
MNIST example with training and validation monitoring using Neptune.
Requirements:
Neptune: `pip install neptune-client`
Usage:
Run the example:
```bash
python mnist_with_neptune_logger.py
```
Go to https://neptune.ai and explore your experiment.
Note:
You can see an example expe... | [
"vfdev.5@gmail.com"
] | vfdev.5@gmail.com |
b300563d66440de35f991e60c8ede1545e98a66c | 26550c1ce549a5de9bfefc87b8f8e625aa9d466d | /topics-info/asst-3/Tutorial/Ex5.py | ec61e1a47df7a34086bb5566f6cb4b39e7792864 | [] | no_license | havish99/Coding-theory-in-Distributed-systems | 9823e126a43d709b18d7b566034b05b8ebd73f7f | 0bc1094ee60d85706934cb5f2092a6c34848e780 | refs/heads/master | 2020-09-12T18:45:00.421631 | 2019-11-18T18:22:36 | 2019-11-18T18:22:36 | 222,514,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 322 | py | from mpi4py import MPI
import numpy as np
comm = MPI.COMM_WORLD
rank = comm.Get_rank()
N = 10000
if rank==0:
x = np.random.rand(N)
comm.Send(x,dest=1)
y = np.empty(N)
comm.Recv(y,source=1)
if rank==1:
x = np.empty(N)
comm.Recv(x,source=0)
y = np.random.rand(N)
comm.Send(y,dest=0... | [
"noreply@github.com"
] | noreply@github.com |
4f901326d3793958d466861ca03a3659358b08ac | 4d39e90081a0e0f23143d0ce50228b98f6e13d2c | /venv/Scripts/rst2xetex.py | 7568ea13c7366ccf250eb5aabdcdad661afae3b8 | [] | no_license | tmtrinesh/robotselenium | ca6175ce0de97c184a16a80d96c1948efe32b66f | b621c1425615c01c4b927ceb129dca0403c8f0a6 | refs/heads/master | 2023-04-14T07:37:23.728935 | 2021-04-29T07:33:54 | 2021-04-29T07:33:54 | 362,730,456 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 924 | py | #!C:\Users\THILAK\PycharmProjects\robotselenium\venv\Scripts\python.exe
# $Id: rst2xetex.py 7847 2015-03-17 17:30:47Z milde $
# Author: Guenter Milde
# Copyright: This module has been placed in the public domain.
"""
A minimal front end to the Docutils Publisher, producing Lua/XeLaTeX code.
"""
try:
import local... | [
"tmtrinesh@gmail.com"
] | tmtrinesh@gmail.com |
eefd9846908ec762b94bb28fc18af2a9af308b31 | 0cbf107de8b6ae51308765d321d8c134ea8108f1 | /LastDigit.py | e56b6a6035b0212dcd02522dd03543e1d96a0a33 | [] | no_license | dcormar/pyScripts | eee3555ddad83de0a66d4122f3e3809589166a84 | b75fb32f0469b35a5e88ed8ba006854909ec1eec | refs/heads/master | 2020-04-08T19:18:09.082347 | 2019-05-05T18:10:32 | 2019-05-05T18:10:32 | 159,649,273 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,538 | py | '''def last_digit(n1, n2):
if n2 == 0:
return 1
cycle = [n1 % 10]
while True:
nxt = (cycle[-1] * n1) % 10
if nxt == cycle[0]:
break
cycle.append(nxt)
return cycle[(n2 - 1) % len(cycle)]
'''
def last_digit_matrix(matrix):
matrix.reverse()
print (matrix)... | [
"dcormar@gmail.com"
] | dcormar@gmail.com |
00c71e7081835fffe792e1d7b3793be9edcc3ed9 | 6f1d9d756d38ca0c69ae1a0ff6db2c15d97e370f | /Practice2.py | b0b4c36114c89452fb5967a93d9332ad1f51f18e | [] | no_license | MrOlafo/Python_class_code | 7edb96dac3e4ad44ce49610d759fe916ec0cac57 | 9b2d4e63d308e58aac04653e589bf4ee328e8012 | refs/heads/master | 2020-04-14T18:25:38.338366 | 2019-01-03T20:28:15 | 2019-01-03T20:28:15 | 164,018,484 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,393 | py | try:
start=input('Welcome to the Studen Grade System. Press 1 to continue or 0 to leave: ')
start=(int(start))
while start!=1 and start!=0:
start=input('Please press 1 to continue or 0 to leave: ')
start=(int(start))
if start==1:
while start==1:
grade=input('Type the grade of the student in a range of 1 t... | [
"U91593@ust-global.com"
] | U91593@ust-global.com |
15632584457de864ad6c921b7228c6996d3390a5 | ebdeaa70f6e30abab03a1589bcdd56d1339151ef | /day18Python多线程/day18-多线程/code1/耗时操作.py | 4fe94df37f17e3955e313560c7b922708e178a96 | [] | no_license | gilgameshzzz/learn | 490d8eb408d064473fdbfa3f1f854c2f163a7ef6 | d476af77a6163ef4f273087582cbecd7f2ec15e6 | refs/heads/master | 2020-03-31T11:32:42.909453 | 2018-11-22T03:34:45 | 2018-11-22T03:34:45 | 152,181,143 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 795 | py | """__author__ = 余婷"""
import pygame
from random import randint
import time
"""
1.耗时操作放到主线程中的问题:
耗时操作放到主线程中,会阻塞线程
多个耗时操作都放到一个线程中执行,最终执行的时间是两个耗时操作的时间和
2.怎么解决问题?
使用多线程(创建多个线程)
"""
def rand_color():
return randint(0, 255),randint(0, 255),randint(0, 255)
def long_time():
print('耗时操作开始')
time.sleep(10)
p... | [
"619959856@qq.com"
] | 619959856@qq.com |
707533be29f322011c761603977cdb06d18f4ac2 | 972aca82afd04ec6cbb4bf7225e3dcd56fe6f3f0 | /face_recog/recognition/views.py | 044b04aa9c2b8708a1c1e95018615f2a28c6cf5a | [] | no_license | sbhusal123/On-web-face-recognition | a41b05e53e691648f5c0296f6ad919e353e07221 | 5ff56aacce759656af407ac2cba03f72b2ce3de4 | refs/heads/master | 2022-02-25T16:12:58.746395 | 2019-09-07T06:06:37 | 2019-09-07T06:06:37 | 166,095,690 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,841 | py | from django.shortcuts import render,HttpResponse
from django.core.files.storage import FileSystemStorage
import os
import shutil
from django.conf import settings
from .models import User
# Create your views here.
def index(request):
if request.method == 'POST' and request.FILES['myfile']:
try:
... | [
"="
] | = |
a30e53410b1a70c2fc70a0b13427cb7c59495f57 | aa8fd4f9f75234a6f7afe68b372e115106ab7404 | /models.py | d3e8e161f3ab5cd95bbb98c6eabe09867da5792f | [] | no_license | philipbrowne/Flask-Feedback | de30a4d1f46b87d5ad52cb471c604576f07e5525 | a3252f0c874ba65f26aa290bb64b1820e44bf52d | refs/heads/main | 2023-07-09T16:55:50.205098 | 2021-08-22T13:22:54 | 2021-08-22T13:22:54 | 398,805,631 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,171 | py | from flask_sqlalchemy import SQLAlchemy
from flask_bcrypt import Bcrypt
db = SQLAlchemy()
bcrypt = Bcrypt()
def connect_db(app):
"""Connect to database"""
db.app = app
db.init_app(app)
class User(db.Model):
"""User Model"""
__tablename__ = 'users'
username = db.Column(db.String(20), prim... | [
"pbrowne@gmail.com"
] | pbrowne@gmail.com |
4ea17ff0ed36837eba853d24ac27432296dd4858 | 424fce3e0927fcb1715655d722d0ee087f3d249e | /src/machine_learning/simple_collaborative_filtering.py | 2b66c9a717fa12a7cf7b7ae067701d67681d9dee | [] | no_license | qazwsxedc121/myCodingPractise | a6c1e641f5f41bdc4746491ae1c3ab5504fbce50 | 0c3ea6c17ff9c59e8bf7e783e653095637d1bdde | refs/heads/master | 2020-05-20T13:21:53.446049 | 2015-12-24T09:39:23 | 2015-12-24T09:39:23 | 5,888,663 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,782 | py | '''
Created on 2012-5-24
@author: guoxc
'''
import cPickle
import math
DATA_FILE = open("../../data/recommendation.dat","r")
CRITICS = cPickle.load(DATA_FILE)
print CRITICS
def sim_distance(prefs, person1, person2):
""" distance """
si_list = [item for item in prefs[person1] if item in prefs[person2]]
if l... | [
"qazwsxedc121@gmail.com"
] | qazwsxedc121@gmail.com |
baa00b77f98b43f0e30cfeaaba2b2e7bb4543308 | 21429a1f4df1540845003f078e518ac04f198872 | /05/test2.py | 2fde9988eba334193f3144d30ccbbcf1e8e4d7f8 | [] | no_license | MonikaMudr/pyladies | c905bad6295e5b8c690547bb7f31c145f850b03f | c49c43bb622d83d61db80087d5d41b92f4906da5 | refs/heads/master | 2020-05-04T12:42:17.724104 | 2019-08-21T21:24:08 | 2019-08-21T21:24:08 | 179,130,869 | 0 | 0 | null | 2019-06-13T19:32:06 | 2019-04-02T17:55:43 | Python | UTF-8 | Python | false | false | 576 | py | from turtle import forward, right, left, exitonclick
from math import sqrt
def domecek(delka_strany):
"vykresli domecek dane velikosti"
delka_sikme_strany = sqrt(2)*delka_strany
delka_strecha = delka_sikme_strany/2
left(90)
forward(delka_strany)
right(90)
forward(delka_strany)
right(135)
forward(d... | [
"monika.mudrochova@gmail.com"
] | monika.mudrochova@gmail.com |
7df9a005cbca7cca42428102b7a21ed5d229a0fa | 0966ff71ff056f5bb026bd30bc6e647d87816e01 | /TEST/python_basic/shake_number.py | ca9d2d4dde9e47ecd8b6312ee509b886fce9b89a | [] | no_license | LynTara/PYTHON | 9b7dfa1fc58964d92b33bba204b600a938f5df72 | 3036f5c57fcfefd9528ee24e998dd3f303b25861 | refs/heads/master | 2023-02-20T03:20:19.801779 | 2021-01-26T08:45:21 | 2021-01-26T08:45:21 | 285,955,622 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 766 | py | #允许用户选3次
#每次放出20个车牌供用户选择
#京【A-Z】-【xxxxx】,数字和字母组合
# random.choice()
# random.sample()
# random.randint()
#随机数 random() string() join()
import random
import string
count = 0
while count < 3:
car_num = []
for i in range(20):
n1 = random.choice(string.ascii_uppercase)
n2 = "".join(random.sample(... | [
"Lyn_123456"
] | Lyn_123456 |
0e8291c913d42d6d47aa129d4403133d044afa4f | ac216a2cc36f91625e440247986ead2cd8cce350 | /go/src/infra/tools/vpython/testdata/test_requests_get.py | f36999bde734744de8ae72fa434816c8ed2cfa45 | [
"BSD-3-Clause"
] | permissive | xinghun61/infra | b77cdc566d9a63c5d97f9e30e8d589982b1678ab | b5d4783f99461438ca9e6a477535617fadab6ba3 | refs/heads/master | 2023-01-12T21:36:49.360274 | 2019-10-01T18:09:22 | 2019-10-01T18:09:22 | 212,168,656 | 2 | 1 | BSD-3-Clause | 2023-01-07T10:18:03 | 2019-10-01T18:22:44 | Python | UTF-8 | Python | false | false | 544 | py | # Copyright 2017 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import cryptography
import requests
SITE = 'https://www.google.com'
print 'Using requests version:', requests.__version__
print 'Using cryptography version... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
002d9a0920e58597151b16f08009518dd6aedb01 | c37609e30866ab7c1bfc0fb7f4ca865df3c26cc9 | /Anderson_Darlington_Test.py | 128ecb0484e8369fab730eccf49f73c002e68fa8 | [] | no_license | theanandankit/Cooperative-Spectrum-Sensing | 8ab8d74c50be2639d163f4510c7d056207007253 | 31968ecffbfd8648cd14fc4dd2bc7b96b82dbbdf | refs/heads/master | 2023-08-19T17:10:05.714499 | 2021-10-23T19:16:41 | 2021-10-23T19:16:41 | 414,876,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,702 | py | import math
from math import exp , sqrt , log
from sys import exit , stderr
import numpy as np
import scipy as sp
import matplotlib.pyplot as plt
from scipy.stats import norm
M = 10000
m_array=[7,11,14]
N=list(range(3))
for i in range(3):
N[i]=2*m_array[i]
n=N[i]
Pf_ad = [0.001,0.0029,0.005,0.0062,0.... | [
"ankitanand2909@gmail.com"
] | ankitanand2909@gmail.com |
80c9278d853e0dae42d1405cbe2fdc3c938b0df3 | 1c6283303ceb883add8de4ee07c5ffcfc2e93fab | /Jinja2/lib/python3.7/site-packages/ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/dcemulticastmacrange_cc6bbd6d9c9c0e88f6e630afd3a84823.py | 09fd8e288e4cbb7a1e6c8a322287c74d41fefd37 | [] | no_license | pdobrinskiy/devcore | 0f5b3dfc2f3bf1e44abd716f008a01c443e14f18 | 580c7df6f5db8c118990cf01bc2b986285b9718b | refs/heads/main | 2023-07-29T20:28:49.035475 | 2021-09-14T10:02:16 | 2021-09-14T10:02:16 | 405,919,390 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,198 | py | # MIT LICENSE
#
# Copyright 1997 - 2020 by IXIA Keysight
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, ... | [
"pdobrinskiy@yahoo.com"
] | pdobrinskiy@yahoo.com |
5638da78645f931f0008807512fd5ddc9b58d72f | 4a67830dd5bf60007a86ad659e766632d0c6563e | /src/day6/day6.py | 89aaf988ecadf59540dc9fcfbd9db7521ecb1a82 | [] | no_license | oliphantee/adventOfCode2020 | 3a76e3d920dfcfe9b09c9fd5890dcf313293f426 | 4590caa7e94d265a23851a1a1bb6431392c8c952 | refs/heads/master | 2023-02-19T05:13:14.803037 | 2021-01-14T17:32:36 | 2021-01-14T17:32:36 | 323,707,581 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,148 | py | import copy as cp
inputFile=open("input.txt")
allGroups=[]
oneGroup=set()
for line in inputFile:
if line=="\n":
allGroups+=[oneGroup]
oneGroup=set()
else:
for letter in line.strip("\n"):
oneGroup.add(letter)
allGroups+=[oneGroup]
totCount=0
for group in allGroups:
totC... | [
"eeo003@bucknell.edu"
] | eeo003@bucknell.edu |
38c8a5339b916969a3a3037a5f2472ad4598d5cc | 93c9f4da0e821bf7607a4c20c12100296849cad2 | /Q86_partition.py | 149344cf8fc14f107751ff202f7a5e0cafd5ca24 | [] | no_license | iamtonyxu/91alg_2_iamtony | fc5604c5d2142c981934c3889388b99a1fb21a2a | 41fa4d6a868d4f95f169eebf96d34f9cc5f0b744 | refs/heads/main | 2023-06-19T11:31:29.688505 | 2021-07-16T08:25:41 | 2021-07-16T08:25:41 | 308,189,238 | 0 | 0 | null | 2021-07-16T08:25:42 | 2020-10-29T01:53:04 | Python | UTF-8 | Python | false | false | 1,429 | py | '''
给你一个链表的头节点 head 和一个特定值 x ,请你对链表进行分隔,使得所有 小于 x 的节点都出现在 大于或等于 x 的节点之前。
你应当 保留 两个分区中每个节点的初始相对位置。
Example-1.
输入:head = [1,4,3,2,5,2], x = 3
输出:[1,2,2,4,3,5]
Example-2.
输入:head = [2,1], x = 2
输出:[1,2]
'''
from ListNodePkg import ListNode, genListNode
class Solution:
def partition(self, head: ListNode, x: int) -... | [
"tony.xu@analog.com"
] | tony.xu@analog.com |
64d3ee1b2b63bf47956a16eb239dd218474a9fad | 1a55572a16c3e34c72630043af7ab3d05bafae8c | /Celery/celery_with_django/mysite/core/tasks.py | 877830411a479b583d31addcbbe10ff041244a19 | [] | no_license | Wald-K/Technologies | 1e2720a05083ba24da3d1761088d0cab4a6e9658 | 8cc2b27fbe5e6c860342fd46b251680899d111bb | refs/heads/master | 2023-01-12T14:11:29.204133 | 2021-01-25T21:54:45 | 2021-01-25T21:54:45 | 196,719,173 | 0 | 0 | null | 2023-01-07T20:03:47 | 2019-07-13T12:28:18 | Python | UTF-8 | Python | false | false | 581 | py | import string
import time
from django.contrib.auth.models import User
from django.utils.crypto import get_random_string
from celery import shared_task
@shared_task
def create_random_user_accounts(total):
for i in range(total):
username = 'user_{}'.format(get_random_string(10, string.ascii_letters))
... | [
"1000druid@gmail.com"
] | 1000druid@gmail.com |
c3dc17eebb3ba445f2e63f01b977d93a793a462c | b2649b1b0c632201cfa8131a25762faf0b1e653d | /excelplay_dalalbull/excelplay_dalalbull/__init__.py | 8d49d3636be3e61ff0e404c1fa5da5896df08f4a | [] | no_license | Excel-MEC/excelplay-dalalbull | c75a54e380bdb22946e0cde3fea3ca43c9a7fdfa | 5e76858f831bb8d9f408c6f6e940bbd164ece47b | refs/heads/master | 2022-05-13T00:36:07.239378 | 2021-01-12T13:29:00 | 2021-01-12T13:29:00 | 127,179,351 | 4 | 6 | null | 2022-04-22T21:03:28 | 2018-03-28T18:06:20 | Python | UTF-8 | Python | false | false | 263 | py | from __future__ import absolute_import, unicode_literals
# This will make sure the app is always imported when
# Django starts so that shared_task will use this app.
from .celery import app as celery_app
print("Initializing celery_app")
__all__ = ['celery_app'] | [
"augustinetharakan12@gmail.com"
] | augustinetharakan12@gmail.com |
22681a74a3ab2ea419097925d4179db9200336c0 | f064eb964e2cf77bcaf60aee411ed1a32e2aa0dd | /list_stack.py | 1b6739fd9a777e6bb52a06e930195e55ba3c3887 | [] | no_license | ZxwZero/list_stack | 8efa9857fcc39c7aa847d5ef8e0345355f64d883 | 9eafd25bdf6eec5e0fd3f3ff8b0c242adf256004 | refs/heads/master | 2020-06-13T12:17:16.480322 | 2019-07-01T10:44:14 | 2019-07-01T10:44:14 | 194,651,031 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,117 | py | # coding=utf-8
# class ListStack:
# def __init__(self):
# self._data = [1,2]
# def __len__(self):
# return len(self._data)
# def is_empty(self):
# return len(self._data) == 0
# def l_pop(self): # 从栈顶取数据
# if self.is_empty():
# return None
# re... | [
"zxwzero@foxmail.com"
] | zxwzero@foxmail.com |
7e8b76a8c25b3c730f1070160fc8743f76f2462e | 1eb0fcebe9fe5446256966ab79e3e56bda08edb1 | /imgfind/utils/color.py | 02fb80ae112c90c9ec486d0f33525cc426254457 | [
"WTFPL"
] | permissive | h5vx/imgfind | 14c1c14abf73280f34b9465863f2868bcb534bcb | 66a033a411424c62c08767dfce156b7a71d14e17 | refs/heads/master | 2022-12-26T18:12:08.721139 | 2020-10-02T21:48:04 | 2020-10-02T21:48:04 | 299,069,288 | 1 | 1 | WTFPL | 2020-10-02T21:48:05 | 2020-09-27T16:11:33 | Python | UTF-8 | Python | false | false | 626 | py | # coding=utf-8
from typing import Tuple, Union
import numpy as np
from skimage.color import rgb_colors
# TODO: documentation
def color_from_str(color_str: str) -> Tuple[Union[int, float]]:
result = rgb_colors.__dict__.get(color_str)
if result:
return result
if len(color_str) == 3:
color... | [
"h5v@protonmail.com"
] | h5v@protonmail.com |
ed141fb02a1f77848fde5e95b506ff74000abcfa | b1e50e5898ca61af7d9f2032298cf4323717d120 | /models.py | 2bafec24e473d798352d7efe4a4b6224472b4a37 | [] | no_license | CassandraGoose/crudpython | 87f2c6daab29b3387a135c3ebee62a113bf07492 | d74f11d0faf8379187da1c952cfb26d7d4f60f95 | refs/heads/master | 2020-12-31T05:41:06.392139 | 2017-02-01T22:47:19 | 2017-02-01T22:47:19 | 80,652,416 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 420 | py | from app import db
from sqlalchemy.dialects.postgresql import JSON
class Movies(db.Model):
__tablename__ = 'movies'
id = db.Column(db.Integer, primary_key=True)
title = db.Column('title', db.String())
genre = db.Column('genre', db.String())
def __init__(self, title, genre):
self.title = ... | [
"cassandra.torske@gmail.com"
] | cassandra.torske@gmail.com |
7281dcc2e0fc2e7ec804619aff65c7fa8014fb67 | e12ba2481e3cc003e132b6fb78687af618233680 | /src/netview/wsgi.py | 50af558d7f908e7b33377b57bb73fbe94f386c35 | [] | no_license | danielgiampaolo/CIS4930_Python | f23edee76aed6a0e08de365e935a69cd40d0c313 | 036b3ad831ddcd3171fc2fe59f169c30564a1b0f | refs/heads/master | 2022-11-23T05:27:23.419842 | 2020-08-02T02:44:12 | 2020-08-02T02:44:12 | 272,823,751 | 0 | 0 | null | 2020-08-01T19:10:56 | 2020-06-16T22:21:42 | Python | UTF-8 | Python | false | false | 391 | py | """
WSGI config for netview project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTI... | [
"enzoegues@yahoo.com"
] | enzoegues@yahoo.com |
64f4bcee8ef7c6bbb13c5da72126ef1407138a4c | 495f252e6e1c7fcc7e24b28693df403e0116de92 | /tx.py | 26a405dbfad7d3817c4526c48c2e1ad684f48145 | [] | no_license | twshelton/did-hackathon-2018 | c7bff5bb8c8014e30bef6a566d1962cf8adadf8f | f0e550c2e0a2736d785096ed297ddcecc29d445d | refs/heads/master | 2020-03-23T11:32:58.392311 | 2018-07-19T01:42:12 | 2018-07-19T01:42:12 | 141,459,685 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,210 | py | from io import BytesIO
from unittest import TestCase
import random
import requests
from ecc import PrivateKey, S256Point, Signature
from helper import (
decode_base58,
double_sha256,
encode_varint,
int_to_little_endian,
little_endian_to_int,
p2pkh_script,
read_varint,
SIGHASH_ALL,
)
fr... | [
"twshelton@hrtoolbox.com"
] | twshelton@hrtoolbox.com |
23c681e160a0cbf136433a9f28f3f3e0d81d19e7 | 73e6c7d678312cbd6544d49324167cba25bf0fd3 | /utiles/eval_utils.py | d03c767a980a2877f5dac6f19a9b82891af0f87a | [
"MIT",
"WTFPL"
] | permissive | qiuweibin2005/yolov3_fire_detection | d3be84d6da5d1ea26abb2d921590b36b92abac2b | abbe22a3dce87adf96d7cd195c5c25b97db9b4c1 | refs/heads/master | 2022-01-22T06:44:24.006340 | 2019-08-21T07:39:55 | 2019-08-21T07:39:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,402 | py | # coding: utf-8
from __future__ import division, print_function
import numpy as np
import cv2
from collections import Counter
from utiles.nms_utils import cpu_nms, gpu_nms
# from utiles.data_utils import parse_line
def parse_line(line):
'''
Given a line from the training/test txt file, return parsed info.
... | [
"935535775@qq.com"
] | 935535775@qq.com |
9265005a0452ad623d02fb337d2ac88baa665b6e | 99d82523bfcda19bcb6a3b436d5107f9b05ff5b5 | /UI-Script/led_on.py | 8bf27e6fbd526f80113f5b38af32838eff1160ed | [] | no_license | svineyar/RCTSpring2017 | 3d2fd45438d1dd589d6fec799763ed43f36ebbf5 | d07b0d947ea248a6e8ba60e85f407f8a561e101d | refs/heads/master | 2021-01-20T04:08:02.653114 | 2017-06-21T04:51:39 | 2017-06-21T04:51:39 | 89,638,451 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | py | import mraa
import time
import sys
def main():
led_num = sys.argv[1]
# Use LEDs GPIO 12, 14, 16, 18, 20
led = mraa.Gpio(led_num)
# Set LED to be output
led.dir(mraa.DIR_OUT)
# Write 1 to the LED
led.write(1)
if __name__=="__main__":
main()
| [
"thomasan1995@gmail.com"
] | thomasan1995@gmail.com |
cc74c4b48d01311de9524512faa2e7208b92e29d | 0d697ce08c9ffc91940e7556e1788b10e069d0b1 | /cli/cli.py | 3f278854fc0dfe4d987ed44d30a39c7a06212bc4 | [] | no_license | AlexandreProenca/load-testing | 9a96b3ad1b111d654893c4f29f0f5ae5668e1ea3 | 0fe5e3d7af5613c14ced5d0e2409f816190d1b5e | refs/heads/master | 2021-01-13T00:49:27.643694 | 2016-02-02T00:45:08 | 2016-02-02T00:45:08 | 50,864,777 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 479 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from ws import PyWebSocket
import os
class MyApp():
ws = []
def __init__(self):
MyApp.ws.append(PyWebSocket(self.callback))
def callback(self, info):
print 'info:', info
if __name__ == '__main__':
for i in range(200):
a... | [
"alexandre.proenca@socialbase.com.br"
] | alexandre.proenca@socialbase.com.br |
e618d228ef200153331639dc5141bf389bbdb341 | ea04e29123cdbe5f49be236ee1df8397da25b330 | /students/migrations/0019_student.py | fee26a235fed55750b1bf338835c5ab5f8bebced | [
"MIT"
] | permissive | Davy-71993/MySchool | bf187673e4796010dd8fd4bcbf27b0b87199794d | fa02c8ec19d71873fc0d714cf652d8ad05f2f0e7 | refs/heads/master | 2022-05-28T23:24:06.865580 | 2020-05-04T19:03:04 | 2020-05-04T19:03:04 | 261,251,617 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,470 | py | # Generated by Django 2.2.6 on 2020-04-06 20:08
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('students', '0018_paper'),
]
operations = [
migrations.CreateModel(
name='Student',
fields=[
('id', m... | [
"59330475+Davy-71993@users.noreply.github.com"
] | 59330475+Davy-71993@users.noreply.github.com |
56972268082116f26894acdd2d6158648fb6456c | b6c08c60c6e1c79ef14387e94dc0413159177c05 | /grp_expense/report/report_carta_aceptacion.py | 07c9a020fff6ce1c83d830a02ac740a5c6f2202d | [] | no_license | juradojose/capacitcion | 8c4484aaf538d3e5ff45f0c2ca8e6d2a97baa4ac | 04f1f085ed0e753bb6d2c589ce490f9dbcab0446 | refs/heads/master | 2022-12-25T09:01:16.116701 | 2020-10-09T15:46:36 | 2020-10-09T15:46:36 | 296,679,168 | 0 | 0 | null | 2020-09-21T23:10:37 | 2020-09-18T16:50:06 | Python | UTF-8 | Python | false | false | 1,809 | py | import time
import locale
from datetime import datetime, timedelta
from odoo import fields, api, models
from dateutil.parser import parse
from odoo.exceptions import UserError
import logging
_logger = logging.getLogger(__name__)
class cls_report_carta_aceptacion(models.AbstractModel):
_name = 'report.grp_expense.r... | [
"noreply@github.com"
] | noreply@github.com |
8563b4bb9db8df61494d434689fd85b797cdb33a | 7020af20eed65ec6619ca91967a7ed4299304357 | /neuro-fuzzy-master/PS_1/problem7.py | 3635a82a287a775956de2321ccc00de160fa013b | [] | no_license | kostastsiv/neuro-fuzzy | ae27193477da3670017e0c5c4d8648e5fcde4d64 | ad482d3e2185533201f31cb5515953292f2515cd | refs/heads/main | 2023-03-07T04:34:59.926535 | 2021-02-19T15:27:13 | 2021-02-19T15:27:13 | 340,409,019 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,442 | py | import matplotlib.pyplot as plt
import numpy as np
import scipy.special as sp
#pylint: disable=no-member
def main():
input_vector_p = np.arange(-3, 3, 0.2)
weight_vector_sigmoid_layer = (-0.27, -0.41)
weight_vector_lin_layer = (0.09, -0.17)
bias_sigmoid_layer = (-0.48, -0.13)
bias_lin_layer = 0.48
... | [
"noreply@github.com"
] | noreply@github.com |
b18d215da6eb6379225c33e52983791c0f1ab897 | a3d0af5a106504622904a0db3bb51ea59fea0034 | /main.py | 70cd89d91d88bca0902ae5a81d3c2517b1addaf6 | [] | no_license | rayyanshaik2022/Car-Racing-NN | 3e4bdd4d738749f946b6964d040fcc6e23be6908 | f699cda324c4d38dd83a41ac68f3747ba205c28f | refs/heads/main | 2023-01-01T06:17:45.215481 | 2020-10-24T20:46:19 | 2020-10-24T20:46:19 | 306,015,836 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 525 | py | import math
import pickle
import random
from gui import Gui
from network import *
from settings import *
if not LOAD_DATA:
pop = Population(POP_SIZE, GENERATIONS, LIFESPAN, MUTATION_CHANCE, MUTATION_RATE, network_type=Genetic)
else:
with open("Networks/"+LOAD_FILE, 'rb') as f:
nets = pickle.load(f)
... | [
"56854894+rayyanshaik2022@users.noreply.github.com"
] | 56854894+rayyanshaik2022@users.noreply.github.com |
e0190ff61f2aabbb5624403696f355f6c20c9987 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_unifies.py | 6a571fbebcd0b1f1afa793ee61d08959b4764e46 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 233 | py |
from xai.brain.wordbase.verbs._unify import _UNIFY
#calss header
class _UNIFIES(_UNIFY, ):
def __init__(self,):
_UNIFY.__init__(self)
self.name = "UNIFIES"
self.specie = 'verbs'
self.basic = "unify"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
4249804af9bf5efd18650847da5379335d1544ac | 211ce0bb59a2a9d10ff0854f4ad66674acb9da2a | /core/apps/articul/migrations/0003_auto_20210309_1242.py | 4747b437fbb41c625b38ab42974500fd89f85d29 | [] | no_license | azhalkov/selo3 | 5498491a20ae564ddb35486a39238fc510e3ad12 | b8509dd561f2eaa5ff22ed8fe32a8c20553e98c2 | refs/heads/main | 2023-03-15T14:12:30.075119 | 2021-03-19T08:42:40 | 2021-03-19T08:42:40 | 342,849,566 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 830 | py | # Generated by Django 3.1 on 2021-03-09 12:42
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('articul', '0002_auto_20210308_0804'),
]
operations = [
migrations.AlterModelOptions(
name='articul',
options={'orderin... | [
"azhalkov@yandex.ru"
] | azhalkov@yandex.ru |
296672059945b97bbd869f0d3b96a94d7cf409de | c5d00c27e86e7a9b35bcc94a0dd3e222c20e8017 | /fishy/libs/__init__.py | d4a018d2705e3ee47e24753a8dc05a09ae134e85 | [
"MIT"
] | permissive | realPrimoh/fishyboteso | 2a4abbd2a93ef6110ee87688695a8ee4b38f16aa | f2b2873b207cf8daaef30dfd39d21599719abb9f | refs/heads/master | 2022-11-11T08:41:56.987394 | 2020-06-23T03:06:29 | 2020-06-23T03:06:29 | 274,293,446 | 0 | 0 | MIT | 2020-06-23T02:51:30 | 2020-06-23T02:51:29 | null | UTF-8 | Python | false | false | 25 | py | from . import tkhtmlview
| [
"adsau59@gmail.com"
] | adsau59@gmail.com |
35ba72ae9ef6093c9a88df2e881fb109352be381 | 30455451f8f4dbdaf653e7150201e89ed6c6e609 | /pushgateway/gateway.py | 55ccaaccea79bd2edb099ed772312bf9a9e15e7d | [
"Apache-2.0"
] | permissive | grro/OpenhabWebThingPushGateway | d5a1dbceeae8cc50a752ed81a78d3ea600fd7a6e | e96abd556d96c3d5e2752843b301d930c5aabc7b | refs/heads/master | 2023-01-02T07:00:29.262853 | 2020-10-21T18:58:14 | 2020-10-21T18:58:14 | 300,156,558 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,627 | py | from pushgateway.config import load_config
from pushgateway.webthing import WebthingProperty
from pushgateway.openhab import OpenhabItem
import time
import threading
import logging
class WebThingPropertyToOpenhabItemLink:
def __init__(self, webthing_property: WebthingProperty, openhab_item: OpenhabItem):
... | [
"gregor.roth@1und1.de"
] | gregor.roth@1und1.de |
07e0c92817221caedd1c94d8b47f082328fdf89a | d0dc4116f93913522a862b51c2427c4ab6209389 | /python/class_student.py | 88b2e4ce0cf8a6d64e6a665641d05da0dfa1d530 | [] | no_license | HeZhang01/Room | e1f8ee4b6b130aac34120c29a5345f9483b4f75c | 0638453cbfe63e2559a8f2285d58eb3852de4a83 | refs/heads/master | 2022-01-12T20:14:12.178307 | 2019-05-07T13:27:34 | 2019-05-07T13:27:34 | 66,245,713 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 860 | py | import types
"""
一个student类
"""
class Student(object):
def __init__(self, name, score):
self.name = name
self.score = score
def print_score(self):
print('%s: %s' % (self.name, self.score))
# bart = Student('Bart Simpson', 59)
# lisa = Student('Lisa Simpson', 87)
# bart.print_score(... | [
"hezhang1001@foxmail.com"
] | hezhang1001@foxmail.com |
04c0313f3d285053ebea5dbc384c5c1413960fe8 | dfdc5ac9b49e9fdf1732ccf9e7072b817ddfa3c1 | /Ej1b_copia.py | e3c27549b2f50f00fda71bb658d5c8781daec681 | [] | no_license | ccerrudo/HO-python | 58933a35352e06cbccd9ea4c8affcb434c197576 | 085b40a90cae515735da206dff67f00b3ab025a1 | refs/heads/master | 2021-05-07T05:31:04.121542 | 2017-11-21T20:20:56 | 2017-11-21T20:20:56 | 111,551,611 | 0 | 0 | null | 2017-11-21T13:20:26 | 2017-11-21T13:20:26 | null | UTF-8 | Python | false | false | 387 | py | def fib(n):
if n <= 2:
return n
else:
return (fib(n - 2) + fib(n - 1))
print ([fib(i) for i in range(100)])
#a= [fib(i) for i in range(100)]
#print ("imprimo a: ",a)
'''
def imp(n):
if n / 3 == 0:
return n
else:
return 0
print ([imp(i) for i in a])
b= [imp(... | [
"noreply@github.com"
] | noreply@github.com |
c01984844afa50913893ef063078a3dea5271a17 | 72ab43b29e9fbc453dc07503d98beca5c213ef38 | /mp/task.py | 1bfe275c7d18ada1ccc87217afdcb620aa06565f | [] | no_license | spinaBelaya/python-labs_ITMO | 3cef6def2ceff1e10b4b204af55ac66957bf1c08 | 69577c0bade134208149c3f3f1f3234dc25234f0 | refs/heads/master | 2022-12-20T01:07:43.437362 | 2019-06-01T20:55:07 | 2019-06-01T20:55:07 | 153,694,668 | 0 | 1 | null | 2022-08-23T17:28:44 | 2018-10-18T22:23:02 | Python | UTF-8 | Python | false | false | 377 | py | import random
from queue import Queue
def sorter(*args, **kwargs):
array = [random.randint(0, 100) for _ in range(1000000)]
array.sort()
def generate_data(len_q = 300, len_list = 700):
q = Queue()
for _ in range(len_q):
array = [random.randint(0, 1) for _ in range(l... | [
"noreply@github.com"
] | noreply@github.com |
ce83711024455db4eb8de12534096bbaf80499c2 | c54ca055363bd7fd097e0b28a76fd16f487fa8b2 | /diyblog/clock.py | 99dae68be5f15d962afeda5d8e3869339679b04c | [
"MIT"
] | permissive | lair60/diyblog | af1025dd3af4789e6c3211cd5267087bdd1712dc | 18a35a120a3546fba12b42c61b25f6f545d9d191 | refs/heads/main | 2023-05-25T17:45:45.435036 | 2023-05-18T10:32:07 | 2023-05-18T10:32:07 | 335,326,615 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,364 | py | import os
import django
from rq import Queue
import redis
initialized = False
"""
@sched.scheduled_job('cron', day_of_week='mon-fri', hour=17)
def scheduled_job():
print('This job is run every weekday at 5pm.')
"""
if __name__ == '__main__':
from utils import removeLinks
from apscheduler.schedulers.bl... | [
"lair60@yahoo.es"
] | lair60@yahoo.es |
6a75e330e912ea0b671c833906e68358aec70daf | 1cc54e191b9d6e4ea2a469b92da0f3ac8ccd84b0 | /tasks/post_session_check_sync_pulses.py | 435b760d75571b766963aac6ffca53126fef9006 | [
"MIT"
] | permissive | alejandropan/iblrig | 027c090dbe54b6ef2cbbf22c16ad60eb040ee949 | d8e746ccc52c2ad325404077ad2403e165e94d0c | refs/heads/master | 2020-04-28T11:45:36.182150 | 2019-06-12T01:38:06 | 2019-06-12T01:38:06 | 175,253,494 | 0 | 0 | MIT | 2019-05-28T01:34:28 | 2019-03-12T16:25:04 | Python | UTF-8 | Python | false | false | 2,085 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# @Author: Niccolò Bonacchi
# @Date: Thursday, February 21st 2019, 7:13:37 pm
from pathlib import Path
import ibllib.io.raw_data_loaders as raw
import matplotlib.pyplot as plt
import numpy as np
import sys
def get_port_events(events: dict, name: str = '') -> list:
out:... | [
"nbonacchi@gmail.com"
] | nbonacchi@gmail.com |
379a52ae1a2e6f3eee47c55a2628a991c82ac961 | b318f75d8b3c5a569728152f7fb4aa9d9ea74008 | /ass12.py | eb10344a2ef6e90739acd45a4886e03265f829ce | [] | no_license | anishshetty17/pthon- | eca59570bac551307975e3508d40997ed99abb0d | ec1358dc9560d4ea6f00796d267789b1d521c052 | refs/heads/master | 2020-12-31T07:41:26.078672 | 2017-03-29T04:37:47 | 2017-03-29T04:37:47 | 86,538,692 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 547 | py | #CENTROID OF A TRIANGLE
print('Assume the three sides(coordinates) of a triangle to be A(p,q), B(r,s) & C(t,u)')
p = int(input('p : '))
q = int(input('q : '))
print('The coordinates of side A is ' , (p,q))
r = int(input('r : '))
s = int(input('s : '))
print('The coordinates of side B is ' , (r,s))
t = int(input('t : ')... | [
"noreply@github.com"
] | noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.