blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cae12c341248552d20b6b8dcb35c4720f5f00d98 | a13ef2b26adf4d13ecf7060c40c655f4c3c64d27 | /practice/os.py | 376163be962dc5dc7c90c2cdb24f2074b2c0a071 | [] | no_license | sunzhijie/learn-python | d0853759c0aebfa987f72e7931ff2ffbff86d6bc | b8a6d1216a5835129c906e4bceef9b6fe09f3eaf | refs/heads/master | 2016-09-07T18:44:40.037641 | 2015-04-17T08:03:33 | 2015-04-17T08:03:33 | 33,942,917 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | py | __author__ = 'sunzhijie'
import os
print os.getenv('PATH')
print os.path.abspath('.')
print os.path.join('/user/', 'dfdf')
# print os.mkdir('./name')
# print os.rmdir('./name')
print [x for x in os.listdir('.') if os.path.splitext(x)[1] == '.py']
| [
"646202721@qq.com"
] | 646202721@qq.com |
ef7c1442a1b18beb9d8abcb18e13e6af8ec14174 | cff120b6491ed50d63cbe91f4913667b0246d515 | /venv/Lib/site-packages/python_imagesearch/imagesearch.py | 6c63ae95491176014bff68965f2c5d2193b2db4e | [] | no_license | cmlya/Lumberjack-Bot | 0c541516dcfa49a604f9569d065f4ded83ce2c63 | e1abb4a3428bf6a15ebc5b2fc1ae990fb563b48f | refs/heads/master | 2023-07-07T17:49:38.545196 | 2021-08-25T14:37:52 | 2021-08-25T14:37:52 | 395,719,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,564 | py | import math
import cv2
import numpy as np
import pyautogui
import random
import time
import platform
import subprocess
import os
import mss
is_retina = False
if platform.system() == "Darwin":
is_retina = subprocess.call("system_profiler SPDisplaysDataType | grep 'retina'", shell=True) == 0
'''
grabs a region (t... | [
"83574726+cmlya@users.noreply.github.com"
] | 83574726+cmlya@users.noreply.github.com |
b67f2769bfefa0625cc6527943ef1b7faf9c0f9a | ff1fe0e31e863ab69e2434b574115fed782d76ad | /set.py | e37f9c7d1e8de9534208c0ced057cebe0e3f014c | [] | no_license | tasnuvaleeya/python_programming | cd7200e0dc0c4ec6bd23c4f9360fc251a7c4a516 | 45a577634e53a1c4cab927eb770cde01a00571ce | refs/heads/master | 2021-04-12T02:47:46.011445 | 2018-03-17T14:54:09 | 2018-03-17T14:54:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 152 | py | groceries = {'cereal', 'milk','rice', 'beer', 'beer'}
if 'milk' in groceries:
print('you already have milk')
else:
print('oh yes u need milk')
| [
"tasnuva2606@gmail.com"
] | tasnuva2606@gmail.com |
fa7609a84faa2ff896f2cebe0c1a001df50f2eaf | 2bae6ce8c194a12d19abc90681ba107a3213f6a9 | /DDPG/DDPG_Examples/DDPG_InvertedDoublePendulum/DDPG_Test_InvertedDoublePendulum.py | 5943f987036fa13ffe6d58727f52e1dcd7c5774a | [] | no_license | bingai/RL-Algorithms | d690dcea418d54c5a18db1a87b4abb5e79625c61 | 3b3227001bb02eec32b0ac171cdd6557245d31bc | refs/heads/master | 2020-04-09T17:09:57.752119 | 2019-01-01T04:25:32 | 2019-01-01T04:25:32 | 160,472,540 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,104 | py | import numpy as np
import tensorflow as tf
import tensorflow.contrib.slim as slim
import argparse
import pprint as pp
import gym
import utils
import os
import time
# ===========================
# Actor DDPG pi(s)
# ===========================
# """
# Input to the network is the state, output is the action
# ... | [
"bing.ai@utexas.edu"
] | bing.ai@utexas.edu |
3f78c365beacff55588a6afbfd7b66b354d5db58 | dd62541e9bfa0c5d503b22eace4496296140656c | /common_qr.py | 75e2f35e6fb2d18e61c070c81b239fb07405334c | [
"BSD-3-Clause"
] | permissive | sea51930/RaiWalletBot | 750f9a63bfd95222fe8e24292d13e47b2ab4389c | 4c558eaf1590092e3db1b7f8155d01fd2867b19d | refs/heads/master | 2020-12-02T22:19:32.342777 | 2017-07-03T14:50:10 | 2017-07-03T14:50:10 | 96,114,318 | 0 | 0 | null | 2017-07-03T13:33:54 | 2017-07-03T13:33:54 | null | UTF-8 | Python | false | false | 1,210 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# RaiBlocks Telegram bot
# @RaiWalletBot https://t.me/RaiWalletBot
#
# Source code:
# https://github.com/SergiySW/RaiWalletBot
#
# Released under the BSD 3-Clause License
#
# QR code handler
import ConfigParser
config = ConfigParser.ConfigParser()
config.read('bot.cf... | [
"sergiysw@gmail.com"
] | sergiysw@gmail.com |
c573f51fd02948990abcc72e8748c4352f643cde | c862ffe067a5c539ddacf70e3db7632d1758f70a | /songbook/settings.py | c9b46202ca35bd702ee4ddcad400c467fad5797c | [] | no_license | MartinCurran28/django_assignment | 288ed52bc9c10932c4a13cc78e2b4e0d44ab6c66 | 582f64549eea268aaee2523efe32c3d410b3578e | refs/heads/master | 2020-05-15T12:03:24.006883 | 2019-04-19T11:49:09 | 2019-04-19T11:49:09 | 182,252,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,611 | py | """
Django settings for songbook project.
Generated by 'django-admin startproject' using Django 1.11.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os
... | [
"martincurran28@hotmail.com"
] | martincurran28@hotmail.com |
0225bd6623519534724f02704f9d1bdca8fa82b6 | 210af68aec4713e8cbe8dc988d509090815e6ff4 | /0x04-python-more_data_structures/9-multiply_by_2.py | adcaf10fe0fc6a3ad8467a5cb752a4816fcc9910 | [] | no_license | mahdibz97/holbertonschool-higher_level_programming | 8e383d474438ba563311f829a763ce8733931c1a | 7184a1eadcaf76f33135c00effe4390b1c227cbd | refs/heads/master | 2022-12-19T12:29:44.678292 | 2020-09-25T07:56:44 | 2020-09-25T07:56:44 | 259,281,398 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 153 | py | #!/usr/bin/python3
def multiply_by_2(a_dictionary):
new = {}
for i in a_dictionary.keys():
new[i] = (a_dictionary[i] * 2)
return new
| [
"ben.zouitina.mahdi97@gmail.com"
] | ben.zouitina.mahdi97@gmail.com |
9f46f7e89e19b7e65cfb7e37c5e03e9be0b2d4fe | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/Projects/speech-text-file/gTTS/build/lib/gtts/tokenizer/symbols.py | 3d40893c51295eda1b689b6f438f7089a38dc848 | [
"LicenseRef-scancode-other-permissive"
] | permissive | NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | null | UTF-8 | Python | false | false | 128 | py | version https://git-lfs.github.com/spec/v1
oid sha256:a7c43c0c9dfa06ad8af4ec38d5a26b50deffacc6f2b881170eb8a37576f6d970
size 278
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
f03e7642f3f3d35c57c7e7083addaa4d03aea328 | d8d14fd9959498d5c31a0bfc4b45b0a7c5a34155 | /setup.py | 6624b28fcc76ace191d21cacf6c5f8d510d18bac | [] | no_license | bugman78/menuzilla | 3504fcdfdf61cbbc6ce154ccb779f648bb5add6a | 0315a93fe51dbd1c53526e5ab63d58f913f38716 | refs/heads/master | 2021-01-11T22:11:33.889579 | 2017-01-14T09:56:20 | 2017-01-14T09:56:20 | 78,932,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,305 | py | """A setuptools based setup module.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
# Always prefer setuptools over distutils
from setuptools import setup, find_packages
# To use a consistent encoding
from codecs import open
from os import path
here = path.abspa... | [
"stephane.bugat@free.fr"
] | stephane.bugat@free.fr |
73a3cec53ce6d0265522dccd62a747fdbcca6834 | f023692f73992354a0b7823d9c49ae730c95ab52 | /AtCoderBeginnerContest/1XX/157/D.py | b0ded2ec31985f6eebca56e6df87d7327321da26 | [] | no_license | corutopi/AtCorder_python | a959e733f9a3549fab7162023e414ac2c99c4abe | a2c78cc647076071549e354c398155a65d5e331a | refs/heads/master | 2023-08-31T09:40:35.929155 | 2023-08-20T06:19:35 | 2023-08-20T06:19:35 | 197,030,129 | 1 | 0 | null | 2022-06-22T04:06:28 | 2019-07-15T15:57:34 | Python | UTF-8 | Python | false | false | 2,140 | py | import sys
sys.setrecursionlimit(10 ** 6)
# from decorator import stop_watch
#
#
# @stop_watch
def solve(N, M, K, ABs, CDs):
friend_map = [[] for _ in range(N + 1)]
for a, b in ABs:
friend_map[a].append(b)
friend_map[b].append(a)
block_map = [[] for _ in range(N + 1)]
for c, d in CDs:
... | [
"39874652+corutopi@users.noreply.github.com"
] | 39874652+corutopi@users.noreply.github.com |
80688a39b7b2e07d9b19fae862b8b5521e57040b | 74623af256921be7fb2e69a8884d872f586f77f4 | /.venv/bin/epylint | 32b79850bcc2e375d12173dcd13d4cd40f6747a7 | [] | no_license | fatmahkabeer/StockPricePrediction | 6e58f1630ccfda0c8fb1bdcaf1dbbf80321ea58c | a4eaee593ae04b59026b8ab0d3aefc9554db18f7 | refs/heads/main | 2023-03-01T16:23:01.097974 | 2021-02-01T18:08:59 | 2021-02-01T18:08:59 | 318,237,814 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 278 | #!/Users/apple/Desktop/DataScience/StockPricePrediction/.venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pylint import run_epylint
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run_epylint())
| [
"apple@fatmahkabeers-MAcBook-Air.local"
] | apple@fatmahkabeers-MAcBook-Air.local | |
50a143d4fe47cc7b13e7ca802246ee09743ff7a8 | 2d82d4c6574bd6d32f2cf1c781615f7951f55f66 | /muntjac/event/dd/acceptcriteria/and_.py | 255229b61f9d197892bc0c331d353dba4488b0e7 | [
"Apache-2.0"
] | permissive | metaperl/muntjac | f83f745ee03942a61af92ee7fba7285aa9c46f3c | 8db97712edd81b4d25deaaa48587d2a08010f2c8 | refs/heads/master | 2021-01-15T22:04:25.057862 | 2012-11-09T03:52:59 | 2012-11-09T03:52:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 960 | py | # @MUNTJAC_COPYRIGHT@
# @MUNTJAC_LICENSE@
"""A compound criterion that accepts the drag if all of its criteria
accepts the drag."""
from muntjac.event.dd.acceptcriteria.client_side_criterion import \
ClientSideCriterion
class And(ClientSideCriterion):
"""A compound criterion that accepts the drag if all of ... | [
"r.w.lincoln@gmail.com"
] | r.w.lincoln@gmail.com |
099d9b77d6ee33d721c385a92a5292916202d2c0 | d77f22379d90393354178da397a5dbc3722fd8b4 | /op.py | c7559a3c24edf17cad098e4eeed10da9c3d58bae | [] | no_license | caizkun/autodiff | 3d33c577d459786f4a13cfcc7ddf478fceb231e7 | 379a6eba9b86476b1e012803400ef6dfb8398433 | refs/heads/main | 2023-09-02T21:02:55.684437 | 2021-11-15T08:43:32 | 2021-11-15T08:43:32 | 428,179,331 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,213 | py | import math
from ad import Node
class Op(object):
def __call__(self):
pass
def fn(self, input_vals):
raise NotImplementedError
def grad_fn(self, input_vals, output_grad):
raise NotImplementedError
class AddOp(Op):
def __call__(self, node_A, node_B):
new_node = Node(... | [
"caizkun@gmail.com"
] | caizkun@gmail.com |
7cc166e065fe935c41d23495250403d7dcdf2d32 | fbbe424559f64e9a94116a07eaaa555a01b0a7bb | /pytorch/source/caffe2/python/workspace_test.py | 93bcb115e685bccfd0f46ea8cc663fdb6cd3d849 | [
"MIT"
] | permissive | ryfeus/lambda-packs | 6544adb4dec19b8e71d75c24d8ed789b785b0369 | cabf6e4f1970dc14302f87414f170de19944bac2 | refs/heads/master | 2022-12-07T16:18:52.475504 | 2022-11-29T13:35:35 | 2022-11-29T13:35:35 | 71,386,735 | 1,283 | 263 | MIT | 2022-11-26T05:02:14 | 2016-10-19T18:22:39 | Python | UTF-8 | Python | false | false | 26,342 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import numpy as np
import os
import unittest
from caffe2.proto import caffe2_pb2
from caffe2.python import core, test_util, workspace, model_helper, brew
import caffe2.... | [
"ryfeus@gmail.com"
] | ryfeus@gmail.com |
4b063dac8fbb9c047f40f60e35b317e14d6ab716 | ba2f34ff8a7b2c36ae88a2f02ca495ad084bb6ab | /Cryptanalysis/break_autokey.py | aecc051205c004e9a18d31b229c6ec47d72a3899 | [
"MIT"
] | permissive | BlackLuny/cyberweapons | bc05e07cdc67f58c9cf68178762eb541c8c0cc55 | dfd4623f323ba702bae7c9f71132b4584636d2e5 | refs/heads/master | 2021-05-16T07:28:35.651835 | 2017-09-16T21:04:50 | 2017-09-16T21:04:50 | 103,801,285 | 1 | 0 | null | 2017-09-17T03:50:18 | 2017-09-17T03:50:18 | null | UTF-8 | Python | false | false | 2,037 | py | from ngram_score import ngram_score
from pycipher import Autokey
import re
from itertools import permutations
qgram = ngram_score('quadgrams.txt')
trigram = ngram_score('trigrams.txt')
ctext = 'isjiqymdebvuzrvwhmvysibugzhyinmiyeiklcvioimbninyksmmnjmgalvimlhspjxmgfiraqlhjcpvolqmnyynhpdetoxemgnoxl'
ctext = re.sub(r'[^A-... | [
"suhubdyd@iro.umontreal.ca"
] | suhubdyd@iro.umontreal.ca |
ed3c99f2709fd2753544bd1b93f0e87ed80b5d91 | d4a30e390ddada1da154a65319c52efd1711df93 | /net/dataset/UCSDPed2.py | b4c13c17125b88ca897e9dfcfd11c071d7fe5c7e | [] | no_license | sdjsngs/Re-implement-Memorizing-Normality-to-Detect-Anomaly | a1d1323d9473af2a12df94f0f2d4a1cc22bc0560 | 81b8b328a56d4db9be283348febbc7f2ce8edbb0 | refs/heads/master | 2022-12-03T13:10:53.963794 | 2020-08-18T12:18:15 | 2020-08-18T12:18:15 | 286,999,990 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,019 | py | import torch
import torch.nn as nn
from torch.utils.data import Dataset,DataLoader
import os
import glob
import cv2
import numpy as np
from net.dataset.build import DATASET_REGISTRY
from net.utils.parser import parse_args,load_config
@DATASET_REGISTRY.register()
class Ucsdped2(Dataset):
"""
Uscd... | [
"noreply@github.com"
] | sdjsngs.noreply@github.com |
3fc97e102abb0f9b9d730e7922bc86b82eb1eb4e | 2207f2caed5b22e24de2a9c5379f9a8d043d73dd | /modules/scn/rule.py | 81be3410451c7e2b1de97569943cd7949de845b0 | [] | no_license | 996refuse/tlf | 775ddd198eb99d794918b757a4c5e97da13e31b5 | f0ed39ecd96a7cfa6eb85e56fdcc200016888d88 | refs/heads/master | 2021-05-30T14:01:08.531186 | 2015-07-04T05:22:39 | 2015-07-04T05:22:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,063 | py | #-*-encoding=utf-8-*-
rule = (
{
"type": "fetch",
"name": "pager",
"type": "fetch",
"repeat": 20000,
"from": {
"http://www.s.cn/list": "//div[@class='clearfix']/table/tr/td[@class='pagernum']/a[last()]",
},
"dst"... | [
"lux.r.ck@gmail.com"
] | lux.r.ck@gmail.com |
41aff2c6737092010ed79ff48e2c3cf747e6eaac | 2f7bf9f8c382e433f02b75b568be0ca0e3e800a6 | /Assignment/Course 2 - Python Data Structures/Week 4 - Lists/8.5.py | 58d76b99d61ab9c2300311df21a501e8202521b2 | [] | no_license | KhangNLY/Py4E | ad9f2d84bb48ff425d2e349bc6e764d5a62b9558 | 2437fbb028531f329c5d637c280d031827ab85c0 | refs/heads/main | 2023-05-05T22:48:44.433965 | 2021-05-24T06:34:05 | 2021-05-24T06:34:05 | 362,573,133 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 362 | py | fname = input("Enter file name: ")
if len(fname) < 1: fname = "mbox-short.txt"
fh = open(fname)
count = 0
for line in fh:
line = line.rstrip()
wrd = line.split()
if len(wrd) < 3 or wrd[0] != 'From':
continue
print(wrd[1])
count = count + 1
print("There were", count, "lines i... | [
"noreply@github.com"
] | KhangNLY.noreply@github.com |
de85996500552c3c31ab52ff302a8b2b4c6a6c77 | a34cc0ac718b8e5f62b814599449fe387ee3f600 | /obj.py | f40d437feb5d393d09ab924debb3e91e457e3a4b | [] | no_license | luizphell/flappybird | a2a06ee21363d21044dd13f045c8a77c74c01ba1 | 96bd82b7186421b15ea633faedaec42c4add5a82 | refs/heads/main | 2023-07-11T14:35:53.858069 | 2021-07-29T20:05:57 | 2021-07-29T20:05:57 | 390,837,572 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,168 | py | import pygame
# Objeto criado para inserir os itens do cenário.
class Obj(pygame.sprite.Sprite):
def __init__(self, image, x, y, *groups):
super().__init__(*groups)
self.image = pygame.image.load(image)
self.rect = self.image.get_rect()
self.rect[0] = x
self.... | [
"noreply@github.com"
] | luizphell.noreply@github.com |
d0ef3875dacf26faa8a57ab61cd4c8a9652e60f1 | fc2bbd676723b2f02372d8d46f7af04b86a0239d | /data/users.py | 57e8b636b3ad5abf5f19fa7cbb27b9186a0e2528 | [] | no_license | Dashapep/eco_events | dede134b2719065bdf1f0c1b545bbbcc6f3e6464 | b2bc4657c63809e4d210b186e685fe18e4603a76 | refs/heads/master | 2023-04-24T04:53:52.995161 | 2021-04-25T20:18:06 | 2021-04-25T20:18:06 | 356,005,500 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,352 | py | import datetime
import sqlalchemy
from flask_login import UserMixin
from sqlalchemy import orm
from werkzeug.security import generate_password_hash, check_password_hash
from .db_session import SqlAlchemyBase
class User(SqlAlchemyBase, UserMixin):
__tablename__ = 'users'
id = sqlalchemy.Column(sqlalchemy.Int... | [
"pds032005@gmail.com"
] | pds032005@gmail.com |
24a1fa69059a7cec4d3e8887cf77bb3af70cf7a0 | 3321f0187988caee9598f8d9057d44100adbdeee | /catkin_ws/src/vision/flir_gige/math/conversion.py | 9705f898410fedace690c9e3ea50905e50d7e86c | [] | no_license | TRA-UNAM/FinderV3 | 8c00aa71485a978805da08a7d1c47d5b175971ee | 1d02366b60684ae1c2ceb129aacc982fe798b105 | refs/heads/master | 2022-09-30T02:55:44.931614 | 2022-09-23T01:20:09 | 2022-09-23T01:20:09 | 162,857,050 | 0 | 5 | null | 2020-06-04T00:49:57 | 2018-12-23T02:41:42 | C++ | UTF-8 | Python | false | false | 506 | py | from math import exp, log
def raw_to_celsius(S, B, F, O, R, T0):
return (B / log(R / (S - O) + F) - T0)
def celsius_to_raw(t, B, F, O, R, T0):
return ((R / exp(B / (t + T0)) - F) + O)
B = 1428.0
F = 1.0
O = 118.126
R = 377312.0
T0 = 273.15
celsius = [10, 20, 30, 40, 50]
raw = [];
celcius_converted = []
for... | [
"ehecatl.eli.ba@gmail.com"
] | ehecatl.eli.ba@gmail.com |
cfbfd2570f3a5206ef819cd60bf529623f457ea6 | 5cf44be60a9accc2aa8b0cea1c8790f023b10553 | /build/lib.linux-x86_64-2.7/npmc/read_lmp_rev6.py | 81b0019083c0c77e1812632221debd29092da719 | [] | no_license | smerz1989/np-mc | 7ecc36864a1975bde42d0ddf579e8a1bb9666de9 | 3d13104edf1b36f0817928f262a0b9ae40f6bfb1 | refs/heads/master | 2023-07-20T03:25:48.891576 | 2023-03-07T20:55:58 | 2023-03-07T20:55:58 | 37,389,780 | 0 | 2 | null | 2023-07-06T21:15:55 | 2015-06-13T22:14:58 | Python | UTF-8 | Python | false | false | 16,951 | py | #!/usr/bin/python
import sys
import numpy as np
import string
from math import *
import random as rnd
from subprocess import call
import itertools as itt
def readAtoms(filename):
input = open(filename,"r")
print "reading file " + filename
currentId=0
line = input.readline()
out = line.find("atoms")
while(out==-1... | [
"stevennmerz@gmail.com"
] | stevennmerz@gmail.com |
1c2277d882952a475cf6cd791ec09d6b0aa0cd4b | 69ea28c40bc1baee83acfb3e96ea6f41ee34363d | /play/Controller.py | 595722203bd5d952e5a03fd63e0ff70e73054985 | [] | no_license | drifftingcanoncuddle/hakaton2019 | 7098db2971325690679b623fbd6e4d84bbb0e838 | 58bf83d087f97ae5c30f95fa9f76a114c7732b36 | refs/heads/master | 2020-05-31T07:14:02.808333 | 2019-06-04T12:44:09 | 2019-06-04T12:44:09 | 190,160,910 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,680 | py | from typing import *
from play.Plane import Plane
from play.AIx import AIx
class Controler:
def __init__(self):
self.plane = Plane()
self.plane.create()
self.user_symbol = "O"
self.ai_symbol = "O"
self.ai = AIx()
def set_symbols(self, user_symbol: str, ai_symbol: str):
... | [
"ptl99t@gmail.com"
] | ptl99t@gmail.com |
2de97c75346aa4138afedc9c09cea58736c5cc02 | be15ba8adae9f92a1723f0570e6ea037f0dea49a | /flask/cnn.py | b45c28f5558fb9f4c4a2ffba3f6602f99d0a79d9 | [] | no_license | CarsonStevens/GeoGuessed | 05cd504273de9940f4b7bab30cb39fd22ee756d8 | 4b6f5bd33cbff47eaddb73ef11cd43dda66c696f | refs/heads/master | 2022-12-24T10:31:38.932913 | 2019-11-19T15:16:30 | 2019-11-19T15:16:30 | 211,579,542 | 3 | 0 | null | 2022-12-11T07:32:41 | 2019-09-29T00:47:05 | HTML | UTF-8 | Python | false | false | 1,827 | py | ## CNN.py
import numpy as np
import tensorflow as tf
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Dense, Dropout, Activation, Flatten, Conv2D, MaxPooling2D
from config import *
class CNN():
def __init__(self):
self.model = None
# def process_data():
# get data
# X = np.zero... | [
"danielpersonius@mymail.mines.edu"
] | danielpersonius@mymail.mines.edu |
10ea87ac6afba40de0a3d96e81db5dc69ef6df3d | 7c3ad63b17b868672ff14e798bb965109c10d403 | /src/kNN_single.py | 6b257b9b63560794a04b98462bedff7409e85679 | [] | no_license | ternaus/kaggle_liberty | 87cc6e5259e1ea4ce69726a83e4e642db85d8e22 | 5eb17b6bf1f6f6f6f4f6eab880592547ad41007d | refs/heads/master | 2016-09-11T02:13:22.121760 | 2015-08-26T22:23:47 | 2015-08-26T22:23:47 | 39,865,075 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,025 | py | from __future__ import division
__author__ = 'Vladimir Iglovikov'
from operator import itemgetter
from sklearn import metrics
from gini_normalized import normalized_gini
import numpy as np
import pandas as pd
from sklearn.grid_search import GridSearchCV
from sklearn.neighbors import KNeighborsRegressor
from sklearn.pr... | [
"iglovikov@gmail.com"
] | iglovikov@gmail.com |
5d36abd5b77f49fdf4b1d6f263b4097148c20a5a | fee6bb5e775c41d7c9e820a10ba785c526cb5fbf | /professor/dois_ensaios/library/books/views.py | 092c601ed878ff0a0ddb7a36e831a6d8453fafaa | [] | no_license | jaovw/pbl7 | c6d898d06086fc506f9cfa984a06e226a4ad4269 | 76b9541246de5f7c9e27cd8f0e1500d6d86f6d14 | refs/heads/main | 2023-08-30T00:32:05.254036 | 2021-11-02T22:27:54 | 2021-11-02T22:27:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,922 | py | from django.shortcuts import render
#para habilitar os outros dominios a usar os api methods
from django.views.decorators.csrf import csrf_exempt
#para fazer o parse em json
from rest_framework.parsers import JSONParser
from django.http.response import JsonResponse
#importar modulos criados
from books.models import... | [
"allan199215@gmail.com"
] | allan199215@gmail.com |
6d5b0e02c66699ecd71cea994df1e96d609de9a4 | 8134fe9b7d7920c004302e890370a1b6ca02e9e1 | /Android/urls.py | 2d6c8ee78a754eb688ebe8d400b0c1db48141cf8 | [] | no_license | txy-cs/App_Django | bf408431957337a90b92568f3128604079e471d0 | 5183e6a20d30c16340d1e1901974fee2e75a33c2 | refs/heads/master | 2021-01-13T09:57:43.264518 | 2016-10-28T08:28:52 | 2016-10-28T08:28:52 | 72,188,168 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 764 | py | """Android URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/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... | [
"txy408926918@outlook.com"
] | txy408926918@outlook.com |
dc880e94449fef14a74f7a3e1fc368756e3d8ad0 | 28cec7be02b1ceb2070d075ac4fa08448a1ceb43 | /abc.py | 1ee5730f32f9dc3b56bbb9ca180a7367630a9c80 | [] | no_license | lakshmi5036/Python-project | 561fffabcfc3ace95d8a755352dee42a5f450e33 | c4dba7543ccb9a36f60c6512181085e0b56165d3 | refs/heads/master | 2023-05-25T04:13:22.525976 | 2021-06-06T15:03:07 | 2021-06-06T15:03:07 | 374,178,422 | 0 | 0 | null | 2021-06-06T15:03:07 | 2021-06-05T17:48:40 | Python | UTF-8 | Python | false | false | 52 | py | # this is a test file
def func():
print('hey')
| [
"dheeraja.damerla8@gmail.com"
] | dheeraja.damerla8@gmail.com |
f57ea9b54d9603e6d35baeb0d00091ee088ae60b | 14344bae5521170d70ec2c22ce88d61a0e21ec93 | /Shannon_Brown/python_stack/myEnvironments/main/main/settings.py | a5b71cd5f36d1c6aeec62121a3f0b3dba9535214 | [] | no_license | ShannonMBrown/python_aug_2018 | 9cf07254f95f0167717faa45f767dec37da54a51 | ecd9b0d3d3a8628cfd7771ff00fe227fc52db5f7 | refs/heads/master | 2020-03-25T05:47:58.357223 | 2018-08-07T16:19:48 | 2018-08-07T16:19:48 | 143,466,451 | 0 | 0 | null | 2018-08-03T19:37:05 | 2018-08-03T19:37:05 | null | UTF-8 | Python | false | false | 3,110 | py | """
Django settings for main project.
Generated by 'django-admin startproject' using Django 1.10.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
import os
# B... | [
"shannonmbrown@Shannons-MacBook-Pro.local"
] | shannonmbrown@Shannons-MacBook-Pro.local |
387f6ae6d5a9c486e271e6200d1a36f32c5cd98f | 7f0e13ffefa1d9c48d1d239dd6f2845ebd691aca | /bin/tabserver | e5eb6f27b055c336ccebe2a2aaa8d0a16881f3ce | [] | no_license | mwhooker/clitabs | d8982478e68ce1dc2a3da2e6b2eabf93a7ae9454 | aaa3c1390143d53701438405bd55808d82ccaa20 | refs/heads/master | 2021-01-01T15:18:24.992130 | 2015-02-18T06:20:41 | 2015-02-18T06:20:41 | 30,792,435 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 151 | #!/usr/bin/env python
import sys
import tabcli.server
def main():
return tabcli.server.main()
if __name__ == '__main__':
sys.exit(main())
| [
"mwhooker@gmail.com"
] | mwhooker@gmail.com | |
2b798b78d19a0037026818c83cda481dbfc5abd9 | 31da7077e2d6d5f775ecf33c7bf43b7ab70dedf9 | /dashboard/layouts.py | 7c12198ea145f7f727dbe6d0ce4339714eb325ce | [] | no_license | Slavian2015/Quiz | 56e0631d5ebb7b2aae4be50a8195a374211081a7 | 5efd69410b57ac24e299a5f39bb3ecddc5d8616d | refs/heads/master | 2023-03-25T13:44:34.747228 | 2021-03-10T16:07:13 | 2021-03-10T16:07:13 | 345,926,187 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,127 | py | # -*- coding: utf-8 -*-
import dash_bootstrap_components as dbc
import dash_html_components as html
import sys, base64, os
import dbrools
sys.path.insert(0, r'/usr/local/WB')
main_path_data2 = os.path.expanduser('/usr/local/WB/data/')
main_path_data = os.path.expanduser('/usr/local/WB/dashboard/assets/')
def my_view... | [
"slavaku2014@gmail.com"
] | slavaku2014@gmail.com |
93a5073ac024902777ff56f7b77d2f8188dc0ad5 | 539cf5309347e46051b70b90f793feb281a0683a | /enemyData.py | 17acde84297099e2dfa9329b5f1e4bedc5e2ab17 | [] | no_license | bradellison/pokemon-simulator | 52c9c7f8d90bd0cddad4f4cc9ebcec7673de3f7d | f4b47f9c2e1ec990e1269288ab9e491c796fb838 | refs/heads/master | 2021-12-09T13:07:25.913990 | 2021-12-02T05:22:21 | 2021-12-02T05:22:21 | 156,161,477 | 1 | 1 | null | 2018-11-21T21:19:26 | 2018-11-05T04:38:31 | Python | UTF-8 | Python | false | false | 2,235 | py | #PokemonInfo = [["Pok1Name", Poke1Lvl, ["Poke1Mov1", "Poke1Mov2"]], "Pok2Name", Poke2Lvl, ["Poke2Mov1", "Poke2Mov2"]]]
#enemyInfo = ["Class", "Name", team, prizeMoney, "EndBattleText", "coordinates", viewDistance, "viewDirection"]
## PALLET TOWN ##
oakTeam = [['Pidgeot',61,['Wing Attack']],['Pidgeot',61,['Wing Attac... | [
"brad.ellison@celer-tech.com"
] | brad.ellison@celer-tech.com |
f5c5ed47d5675f11c96f665fda4db3d9b492c918 | b402040954f13bbb8df5e2cb2f5ebafb4ed75f7a | /main/migrations/0001_initial.py | 65c273c754fd63d23a09b3b13644af594f11545f | [] | no_license | HalimaShanta/Shopping-Website | 6c744a6f219fa5744ffd3823742c852636b960ed | 2007cea9755b8f32493849bedd6af6c7cc9e91fd | refs/heads/main | 2023-08-04T23:12:24.547411 | 2021-09-09T21:10:37 | 2021-09-09T21:10:37 | 404,867,566 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 633 | py | # Generated by Django 3.0.8 on 2021-08-09 17:06
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Home',
fields=[
('id', models.AutoField(aut... | [
"halimashanta@gmail.com"
] | halimashanta@gmail.com |
bff7768f9a5f3a84f3142fcac45842c549f8bd13 | d5b60325d88d59bb3c6cde58036514921abfd6e9 | /DjangoChat/DjangoChat/wsgi.py | c2d57315e9c4b78413c290b4da11fa09adacfd85 | [] | no_license | dagrishin/DjangoChat | 472044874bbd1a91efe5a7e6611af02aa485acd1 | d800fff81ac3632752e3486a90c062dde4b18780 | refs/heads/master | 2022-12-22T06:56:57.676392 | 2020-09-29T07:14:50 | 2020-09-29T07:14:50 | 299,532,590 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | """
WSGI config for DjangoChat 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/2.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SE... | [
"grishin-dim@yandex.ru"
] | grishin-dim@yandex.ru |
4b8180666321d4a533cb64126c95099cdae02b40 | 61aeb392245ed66d40de412c0f2ac1196f7172e2 | /Data Analytics/개인과제2/main.py | 150afcd59098566bac4420538c9c0221399b43bc | [
"MIT"
] | permissive | mini-song/Konkuk_Univ | a0c40771fa291162906bccd430742a9e64ac1e09 | 9cd4091f6c5ec109866c087d530970e77494192f | refs/heads/main | 2023-02-01T13:00:13.834923 | 2020-12-20T15:02:23 | 2020-12-20T15:02:23 | 322,308,412 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,106 | py | import numpy as np
import konlpy
import csv
from tqdm import tqdm
import pandas as pd
from sklearn.feature_extraction.text import TfidfVectorizer, CountVectorizer
from sklearn.linear_model import LogisticRegression
from sklearn.model_selection import train_test_split
from sklearn.metrics import accuracy_score
... | [
"noreply@github.com"
] | mini-song.noreply@github.com |
5a6960680cae86c401d945eb77b50e792096b7ac | 464850ba426263b17084fc71363ca14b8278b15e | /80.py | c539164e19aa8d461121a1829efe084c3408f060 | [] | no_license | eng-arvind/python | 8442c30ec10f979f913b354458b4f910539d8728 | 249f5f35f245a3f1742b10310de37ca6c6023af2 | refs/heads/master | 2020-12-23T06:40:16.911269 | 2020-02-02T18:42:01 | 2020-02-02T18:42:01 | 237,069,973 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 231 | py | n = 7
for i in range(n):
for j in range(n):
if i + j == n//2 or i - j == n//2 or i + j == (n//2)*3 or j - i == n//2:
print("*", end="")
else:
print(end=" ")
print()
| [
"noreply@github.com"
] | eng-arvind.noreply@github.com |
01a1ef6dc25aacb7b99e3bb2d2e912e04233c3cc | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_outgoes.py | 710d7af255478e9b9f5ce4bf9bc34b044eb81186 | [
"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 | 220 | py |
#calss header
class _OUTGOES():
def __init__(self,):
self.name = "OUTGOES"
self.definitions = outgo
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['outgo']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
ccef30a80becc469ed0e6f7cb4d3207345e33f76 | 8af419663c0ba2ecb1bf485a83327523f23df23a | /高级特性/generator.py | 503607e1a19d00f769950209bfdf710414689f81 | [] | no_license | Haiyao/python_practice | c2ed6b7a9190928b24038696c686f836a817ee57 | 7903190297c20fa3cf850cde9a6101b2f3a62762 | refs/heads/master | 2021-01-10T17:46:09.276846 | 2016-03-15T08:06:58 | 2016-03-15T08:06:58 | 53,932,155 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 249 | py | # -*- coding: utf-8 -*-
def fib(max):
n, a, b = 0, 0, 1
while n < max:
yield b
a, b = b, a + b
n = n + 1
return 'done'
x = input('enter you number')
x = int(x)
f = fib(x)
print(f)
for n in fib(x):
print(n) | [
"mma4017@icloud.com"
] | mma4017@icloud.com |
1fdc5488c7b997dc3eda43ec658d71f1f096e0c9 | 86eac99b383981897a608d57f48b23a8d44f35c0 | /src/Python.Client/src/test.py | d3f3acc5156518c78ee46a6a0fb8f1d0af2c6046 | [
"Apache-2.0"
] | permissive | AndMu/Wikiled.Sentiment.Service | eb3d91e64f37a8ea4db1e37d320c40b05dd83c89 | 8ce338183cb3730512c48935b7bf996e0a6ddb8c | refs/heads/master | 2022-12-11T05:59:05.787535 | 2020-07-16T10:59:53 | 2020-07-16T10:59:53 | 134,326,518 | 0 | 0 | Apache-2.0 | 2022-12-08T08:56:55 | 2018-05-21T21:20:13 | Jupyter Notebook | UTF-8 | Python | false | false | 3,667 | py | import os
import socket
import logging.config
from datetime import datetime
from os import path
import asyncio
from src.psenti.service.sentiment import SentimentAnalysis, SentimentConnection, Document
# create logger
logging.config.fileConfig('logging.conf', disable_existing_loggers=False)
logger = logging.getLogger... | [
"keistokas@gmail.com"
] | keistokas@gmail.com |
93fc01efba1e5e4f045b41d0b93da8097c64a8d9 | bff8151a211ea8434ac02dad917989a422b50d44 | /retrieval/cal_topk_acc.py | 63be3ba41870a85057681bdfd3f09c1da0970e1e | [] | no_license | lijiaman/Cross-domain-Retrieval | fa5b3fce6cd5bcd9fe6020424a8ede38ef11d06e | b1945b06c33a1f8efe11e4ee80c2c75205159c62 | refs/heads/master | 2020-06-28T06:05:50.798417 | 2016-12-22T12:40:42 | 2016-12-22T12:40:42 | 74,506,444 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,811 | py | import numpy as np
import json
import time
#street_file = '/ais/gobi4/fashion/retrieval/part_street_features.json'
#shop_file = '/ais/gobi4/fashion/retrieval/test_gallery.json'
#street_file = '/ais/gobi4/fashion/retrieval/toy4_darn_street_features.json'
#shop_file = '/ais/gobi4/fashion/retrieval/toy4_darn_test_gallery.... | [
"lijiaman@buaa.edu.cn"
] | lijiaman@buaa.edu.cn |
5c6e655ee9fd28e840bc078319dd48152f3a829f | 67d22c922419577be197edae8a5979317a336079 | /python/example/drawPolygons.py | c3a4056633256b377ac8b50dc52685f367142deb | [
"MIT"
] | permissive | PeterZs/TopoLite | 69bc3ea3e45e9d5e08d2432c63fc59078aa11b57 | d6eb9125518a88ea546917df5217978f34661b2c | refs/heads/master | 2023-03-19T09:24:06.659312 | 2020-06-29T15:34:21 | 2020-06-29T15:34:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 751 | py | import matplotlib.pyplot as plt
def plotpoly(coord):
coord.append(coord[0]) #repeat the first point to create a 'closed loop'
xs, ys = zip(*coord) #create lists of x and y values
plt.plot(xs,ys)
return [xs, ys]
plt.figure()
A = [[-0.25, -0.3], [0.15, -0.3], [0.15, -0.0999999], [-0.0499999, -0.0999999... | [
"qiqiustc@gmail.com"
] | qiqiustc@gmail.com |
57fb1c867bec4dd8dcaf8f44920298ef2a93a849 | 325236056593df914d836c0a5fed0e56c1060941 | /.history/part2/part2_20190913223319.py | 95a89803f197fb5625b3ba454265dd7b1b6be88d | [] | no_license | amersulieman/machine_learning_HW1 | 2691f3c81a7c6c718d46a33d93525e811414b6c7 | 0c3e59fece35cb8a803eda4ddae7d3a7980c6774 | refs/heads/master | 2022-02-17T06:31:35.834501 | 2019-09-16T15:58:51 | 2019-09-16T15:58:51 | 207,144,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,482 | py | import numpy as np
import random
import re as regex
import os
def generate_random_betas_vector(number_of_betas, bits_per_beta):
'''
Genrates 4 random beta values
'''
random_betas_vector = []
for beta in range(number_of_betas):
random_beta = random.randint(0, (2**bits_per_beta)-1)
... | [
"asulieman@hedrick-2.local"
] | asulieman@hedrick-2.local |
7226bb2dcef47693a30e496007e67ac5cab23a55 | da04957fe26dab8a70fec7b426425e9ba92bfe03 | /Chutando.numero.py | 5dbebd87e18c1e68f38ca5fdfc52150334983e93 | [] | no_license | RobsonGomes1/Chutando-o-n-mero | 3bb29798e599f0297251997613744d8a63814db1 | b1f90b7e41452f05cd5697629ac715a17349b616 | refs/heads/main | 2023-06-05T14:48:25.996307 | 2021-06-15T04:33:38 | 2021-06-15T04:33:38 | 377,035,207 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 948 | py | try:
from random import randint
nu = randint(1, 100)
except:
print('Desculpa, mas aconteceu um erro na solicitação')
else:
Aviso1 = print('Chute do 1 adiante ;)')
aviso = print('escreva "[Sair]" para finalizar')
ch = str
ch1 = 0
while ch != 'sair'.strip():
from time import s... | [
"robson_rabisco@hotmail.com"
] | robson_rabisco@hotmail.com |
202db6eca23a5f9a75e3b08d79d121e5f8bdf791 | 6b307db7e46ec26617bf7c5f5b35085f2d8bc184 | /Lista Fabio 01 - Pt 02/F1_Q13_idadeemdias.py | c2a0c139b727b5ad6eb670cb6a009ced2b8d5ab1 | [] | no_license | brenoeng/ifpi-ads-algoritmos2020 | 859b9ed9686e0ec8d5c5d3c37366c23351d2e1a5 | 0a71a1173104b47c78ff480248c9cba5894321ff | refs/heads/master | 2021-03-04T21:39:35.869542 | 2020-11-06T01:21:58 | 2020-11-06T01:21:58 | 246,066,916 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 339 | py | # Entrada
anos = int(input('Digite sua idade em anos: '))
meses = int(input('Digite há quantos meses você fez aniversário: '))
dias = int(input('Digite quantos dias passou da sua data de aniversário: '))
# Processamento
idade_em_dias = anos * 365 + meses * 30 + dias
# Saída
print('Você tem {} dias de idade'.format(id... | [
"breno.ar.andrade@gmail.com"
] | breno.ar.andrade@gmail.com |
e7c6dfbd9cf60774e0a17345e45f01b6446732c2 | 76b2bdc8d1f0541a270101215e80f8f0be98e40f | /mockmock/outer.py | b3d193d0228a1396d37fd6bf91a693cbd5759ac9 | [] | no_license | flaschbier/StillLearningPython | c87596655234120ad47abe1e42082308fa453e21 | 5a4c205c72e51d71190cd250e285e7f8bc3dd738 | refs/heads/master | 2021-01-10T11:29:54.591425 | 2016-03-28T18:31:49 | 2016-03-28T18:31:49 | 54,133,064 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 83 | py | import inner
def functio():
return inner.functio()
print "outer:", functio()
| [
"developer.flaschbier@gmail.com"
] | developer.flaschbier@gmail.com |
c226c2fd5ebf5e5869cb44cecb2f6811d62a4a0b | 3c4122a6be0a27571fad25d0acb60ad0e527d32a | /retinaface-keras/simple_test.py | 9597e610f1bf0b4432bff576039598ad3514d47d | [
"MIT"
] | permissive | LeeSiy/Insight-face-tf1.13.2 | 08e0f2ab14b461c8dd95dbda3ef15ef832a61575 | 9258041a1d732f543155718c37c654a13e120fdb | refs/heads/main | 2023-05-26T13:49:41.785038 | 2021-06-15T06:51:26 | 2021-06-15T06:51:26 | 377,032,542 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,789 | py | import tensorflow as tf
import cv2
import numpy as np
import os
from numpy.linalg import norm
import predict
export_path = 'path/to/insight/face/saved/pb'
people1_path = 'path/to/single/person/image/group/folder'
people1_list = os.listdir(people1_path)
people1_imgs = np.zeros((112,112,3))
for i, img in enumerate(pe... | [
"noreply@github.com"
] | LeeSiy.noreply@github.com |
676fcc1c07c9bc3d2fe08d81889d1dd54d4608fb | 266f9ec6f870162cf2313a8f9d49ab5f491bc5ba | /misc/example_op.py | bfc2f350677563b9917d1a5a85bbcd0b63250a4d | [] | no_license | hschoi1/TIL | 991a675fd5722c7420ada44e17e449da9e82dea7 | d9176811399049f488cbdd0110ea326a9748ada9 | refs/heads/master | 2021-02-08T04:34:31.112320 | 2020-06-09T16:53:02 | 2020-06-09T16:53:02 | 244,109,948 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 144 | py | #try examples from https://pytestguide.readthedocs.io/en/latest/pytestGuide/index.html#code-to-test
def stat2Num(x, y):
return(x+y, (x+y)/2) | [
"hunsun1005@gmail.com"
] | hunsun1005@gmail.com |
af6fea87d6f853544358243aa3fee3d9ee5469cb | c5d74b596458b79f42e3cc2eccbaa45544d75f19 | /Ctrip/__init__.py | 76fdd1594cf42df8de7008a6c9c0fdc9f6d66e34 | [] | no_license | XiaolinZHONG/PythonLearn | 7c16e870d69c33bc637583c2abd99558dfecc687 | 15d76375d662c45ce573ecf0fa8d3dce437c3166 | refs/heads/master | 2020-07-01T03:41:02.507872 | 2018-01-04T01:27:55 | 2018-01-04T01:27:55 | 74,100,074 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 94 | py | # -*- coding: utf-8 -*-
# @Time : 2017/1/16
# @Author : XL ZHONG
# @File : __init__.py.py
| [
"xlzhong123@163.com"
] | xlzhong123@163.com |
390c6ee16b84c3f9123895cf601f21ea1c074eb3 | 15fa1d48e22b3764d905fc0ca3110bd396f8355b | /_build/jupyter_execute/docs/eda/numeric_vars/K total (kg por ha).py | 9bc6c3eb610045ff47b567c10c34b648a7401d87 | [] | no_license | SarahNadaud/Test-jupyter-book | 1759870df357fed2e0b739c57c5a5435cc181331 | 27bf960abd8d798bf8d977b512cc52a962ca9dd8 | refs/heads/master | 2023-02-01T21:16:24.839199 | 2020-12-17T12:36:43 | 2020-12-17T12:36:43 | 322,289,355 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 87,659 | py | (K total (kg por ha))=
# K total (kg por ha)
Tipo da variável: numeric
## Relatório geral
<pre>
+--------------------------+----------+
| | Values |
+==========================+==========+
| Count | 2296 |
+--------------------------+----------+
| Mín ... | [
"sarah.nadaud@elogroup.com.br"
] | sarah.nadaud@elogroup.com.br |
a28b5e739458397f8701e37081c0593ed88063bc | 6376f8a4e4b7f433c6528670461336b975b638ff | /scripts/many_load.py | 2c892ac6cd09d68fba5752649e8d764aae1d9651 | [] | no_license | ameya-shahu/coursera-django | d04133d6eb975ea54f45a12a62d1495f2dcbd730 | 3272f513897ec5922e5bbe02d38c303960d09f11 | refs/heads/master | 2022-12-30T05:39:10.433639 | 2020-10-13T13:23:26 | 2020-10-13T13:23:26 | 288,106,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,395 | py | import csv # https://docs.python.org/3/library/csv.html
# https://django-extensions.readthedocs.io/en/latest/runscript.html
# python3 manage.py runscript many_load
from unesco.models import State, Site, Iso, Category, Region
def run():
fhand = open('unesco/whc-sites-2018-clean.csv')
reader = csv.reader(fh... | [
"ameyashahu@gmail.com"
] | ameyashahu@gmail.com |
2aa575aff205569c313222104ed7b2a61e06ad03 | 6f31a15cb73175084f2c4485d3dea0b8975b2ec9 | /src/pyIdlak/pylib/__init__.py | b5c44a3e37db4e976cb9add9ca83f0ba5f3dfb35 | [
"Apache-2.0",
"LicenseRef-scancode-public-domain"
] | permissive | Idlak/idlak | c7cd5e6c0b02918cda85dbb2fb5c7333a789c304 | 4be6f7d951ba0d707a84a2cf8cbfc36689b85a3c | refs/heads/master | 2021-11-23T13:28:43.709163 | 2021-11-01T15:51:46 | 2021-11-01T15:51:46 | 127,285,931 | 65 | 26 | NOASSERTION | 2021-11-01T15:51:47 | 2018-03-29T12:06:52 | Shell | UTF-8 | Python | false | false | 1,414 | py | # -*- coding: utf-8 -*-
# Copyright 2018 Cereproc Ltd. (author: Matthew Aylett
# David Braude)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http:/... | [
"dabraude@gmail.com"
] | dabraude@gmail.com |
8290e8f45c5e527b27289d1815a583a43214575d | 952c682ad7c93d6750de188b063adb56c0468523 | /raspi/socket-test.py | 67e3dc74f067e6dda1bb99871a4400e23dd18a96 | [] | no_license | Jugendhackt/toaster | ff76bb591a801a2f42496f037d0afcda8028088a | d9a0893971e2726a217ebb21d1cf312e5f3a4d04 | refs/heads/master | 2020-07-15T07:37:47.020187 | 2019-09-01T14:41:18 | 2019-09-01T14:41:18 | 205,513,614 | 0 | 0 | null | 2019-12-29T21:51:26 | 2019-08-31T07:47:44 | TypeScript | UTF-8 | Python | false | false | 460 | py | #!/usr/bin/env python3
import signal
signal.signal(signal.SIGINT, signal.SIG_DFL)
import asyncio
import websockets
async def hello(websocket, path):
name = await websocket.recv()
print(f"< {name}")
greeting = f"Hello {name}!"
await websocket.send(greeting)
print(f"> {greeting}")
start_server = ... | [
"moritz.ahrens2@gmail.com"
] | moritz.ahrens2@gmail.com |
63d46a52a9c3929779b4d498745424b1505a9754 | 17f29e8f3eab9deb724b10bc7e61c73f1fca21c6 | /backend/home/migrations/0004_auto_20200320_0813.py | 8596cdb6cafc9245c067cfa29396a8d0c4ff6f09 | [] | no_license | crowdbotics-apps/mobilemobapp-dev-2035 | 91df345e8f6e42760c4156a7dd73a6d8b17250e0 | 041b1c20c4a14b4595fbcca943cdf46dec445497 | refs/heads/master | 2022-04-12T06:06:17.910111 | 2020-03-20T08:13:11 | 2020-03-20T08:13:11 | 248,153,145 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,311 | py | # Generated by Django 2.2.11 on 2020-03-20 08:13
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('home', '0003_customtext_test'),
]
operations = [
migrations.CreateModel(
name='Test',
fields=[
('id... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
7da594417468f8fff6a257b39670bc08b390a407 | daef6ea328be205d289c087f689fa4fb23de935f | /sampling.py | 05880d0df0c733d70c8347d30de67bc04b504fe7 | [] | no_license | ManulGoyal/GCN_ML_Binary | 29e330362b81224941c47a48f1f0ddc94c65c78d | d6949224644852e7ef7d8ca17799cf73c9ed8427 | refs/heads/master | 2022-11-14T11:55:54.212106 | 2020-07-07T12:05:36 | 2020-07-07T12:05:36 | 277,661,196 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,420 | py | import numpy as np
import random
# utility function to find class with minimum examples
def min_examples_class(annot, dataset):
min_cnt = annot.shape[0]+1
min_lbls = []
label_ex_count = np.zeros(annot.shape[1])
for example in dataset:
for lbl, tag in enumerate(annot[example, :]):
i... | [
"goyal.10@iitj.ac.in"
] | goyal.10@iitj.ac.in |
fb3b2fd6f3497e8dd1ded9a6c54a330aac22db31 | 3fa1b23746232975b3b014db2f525007a3b49991 | /anna_code/demographics/rct_consented/subset_values_to_randomized_people.py | a4791706554ee798896de773f5da39c3e0e96e89 | [] | no_license | AshleyLab/myheartcounts | ba879e10abbde085b5c9550f0c13ab3f730d7d03 | 0f80492f7d3fc53d25bdb2c69f14961326450edf | refs/heads/master | 2021-06-17T05:41:58.405061 | 2021-02-28T05:33:08 | 2021-02-28T05:33:08 | 32,551,526 | 7 | 1 | null | 2020-08-17T22:37:43 | 2015-03-19T23:25:01 | OpenEdge ABL | UTF-8 | Python | false | false | 325 | py | import pandas as pd
import sys
import pdb
data=pd.read_csv(sys.argv[1],header=None,sep='\t')
subjects=pd.read_csv('subjects.txt',header=None)
subset=data[data[0].isin(subjects[0])]
#nums=pd.to_numeric(subset[1],errors='coerce')
#mean_val=nums.mean()
#print(mean_val)
#std_val=nums.std()
#print(std_val)
pdb.set_trac... | [
"annashcherbina@gmail.com"
] | annashcherbina@gmail.com |
79ac61a468fd1369f69a7ecf1add11e0fbb9ba5e | 8a6bac97182629f426e442308f6db53ee932e537 | /venv/Lib/site-packages/twisted/python/_inotify.py | d5203df3c388a80029a2286d2706155e395eeddf | [] | no_license | AmalioF96/DashBoard | 8b8af75e7db7ab095c0cd05acb8b2b2764ab5fd5 | 4500a84a934fd5c24199d1864f0667c0d90e6174 | refs/heads/master | 2023-01-08T02:03:05.168925 | 2020-11-07T12:19:53 | 2020-11-07T12:19:53 | 230,789,973 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,454 | py | # -*- test-case-name: twisted.internet.test.test_inotify -*-
# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
"""
Very low-level ctypes-based interface to Linux inotify(7).
ctypes and a version of libc which supports inotify system calls are
required.
"""
import ctypes
import ctypes.util
cla... | [
"amaliocabeza.16@gmail.com"
] | amaliocabeza.16@gmail.com |
a27dae32c239b9c924dc4fb6da5cfae518d6f2ab | 1d5c13c3f628de90674a3bf11a5ca6819813bd54 | /eletivaspro/authenticacao/views.py | 6aa8993427a435e4b8f0478eb28cfd40760c7db5 | [
"MIT"
] | permissive | flavioVitoriano/EletivasPro | 7e5870378598dcc6d7c7c7e844603caeb8862d1c | 34447081a1923286d78c56bd1f019214a8b25999 | refs/heads/master | 2022-12-07T11:37:32.340065 | 2020-09-04T02:04:42 | 2020-09-04T02:05:36 | 159,074,296 | 0 | 0 | MIT | 2022-11-22T04:23:11 | 2018-11-25T21:02:10 | JavaScript | UTF-8 | Python | false | false | 1,913 | py | from django.utils.http import is_safe_url
from django.contrib.auth.forms import AuthenticationForm
from django.contrib.auth import REDIRECT_FIELD_NAME, login as auth_login, logout as auth_logout
from django.utils.decorators import method_decorator
from django.contrib.auth.decorators import login_required
from django.vi... | [
"flavio.vitorianodev@gmail.com"
] | flavio.vitorianodev@gmail.com |
3363b24c53c076531c61d750405dddc40ee83282 | 2cb7968701bd1f9fb32b55a5efccddf7a9504c29 | /python/remove_elements.py | ca05c62278dc9c9cb6949c32e0fd930a7ddb11d8 | [] | no_license | sgn255/algorithms | 35153567e40ff2ca78110f19f21f9f87c49fe236 | d66c9fe68a12463a6d3a314df8d61f22bbaa79fd | refs/heads/master | 2020-06-30T01:02:52.108135 | 2019-08-10T14:04:45 | 2019-08-10T14:04:45 | 200,667,525 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 179 | py | # Given an array and a value:
# remove all instances of that value in-place
def remove_element(arr, val):
while val in arr :
del arr[arr.index(val)]
return arr
| [
"scott-green89@hotmail.com"
] | scott-green89@hotmail.com |
c48fcf7a93643c3bd44ec66eded5c44ff6bcc940 | f0b14db2538fb49b3cc70d7c01fdae35c148624b | /config.py | cd63a9e6ddcf330b17d71e2a52b167e1c21e1372 | [
"MIT"
] | permissive | ICRA-2021/PoseGrouping | 12a5725355f28e67ef0dce4673b09f5f8431d373 | 7e896aa00d947520f9240d6681536c5ef79e9b49 | refs/heads/main | 2023-05-23T16:20:26.926759 | 2021-06-17T05:43:39 | 2021-06-17T05:43:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,574 | py | import logging
class Config(object):
def __init__(self):
self.logger = logging.getLogger("Config")
self.params = set()
self.set("inference_split", "valid")
self.set("exp_root", "exps")
self.set("batch_size", 4)
self.set("num_workers", 0)
self.set("gpu",... | [
"jiahao@comp.nus.edu.sg"
] | jiahao@comp.nus.edu.sg |
54cc6c350996f8692a63f7d0531f0d5639f868c9 | 1a8cda5c58f524fd73cb7472681c0d85e07fe8bb | /utils/eval_tool.py | 39343c2a4e668f8df21b35181d4799f8b80e7ff6 | [] | no_license | shujunge/FasterRCNN_pytorch | 93feb144e987cafa9ee9e5c6302708e36c5837e6 | a37436e7f77e141fb7c673234c79e88538b99aad | refs/heads/master | 2020-05-03T08:43:27.072424 | 2019-03-31T04:14:53 | 2019-03-31T04:14:53 | 178,534,290 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,023 | py | from __future__ import division
from collections import defaultdict
import itertools
import numpy as np
import six
def bbox_iou(bbox_a, bbox_b):
"""Calculate the Intersection of Unions (IoUs) between bounding boxes.
IoU is calculated as a ratio of area of the intersection
and area of the union.
This functi... | [
"zfwang@stu.xidian.edu.cn"
] | zfwang@stu.xidian.edu.cn |
ecf4436b8a78f9d5ddaa025ab1322e91b1b42fd3 | 42f5eaf16bfd7076cb5a598cf2f239faa575f28b | /05-grpc-google-cloud-speech/python/google/watcher/v1/watch_pb2.py | 09760ad4eca095c7ba8e69b44ef548c3cbe4de21 | [] | no_license | jiriklepl/IMW-2019 | ab0e1c791a794ccf8a6a8d8d4e732c29acee134c | 921c85d3c8132114ad90db8deb52eb5ddc06c720 | refs/heads/master | 2020-08-28T13:29:15.087785 | 2019-12-15T17:12:24 | 2019-12-15T17:12:24 | 217,711,235 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | true | 9,093 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/watcher/v1/watch.proto
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_datab... | [
"jiriklepl@seznam.cz"
] | jiriklepl@seznam.cz |
751a0292d7f84b53fc00ed0ad383672d8562de3a | 2e83e004d8a69a773d1e305152edd16e4ea35ed8 | /students/eric_grandeo/lesson03/logic_1.py | 3be7081d76217fb959a59ab909527edf01a7b953 | [] | no_license | UWPCE-PythonCert-ClassRepos/SP_Online_PY210 | 9b170efbab5efedaba8cf541e8fc42c5c8c0934d | 76224d0fb871d0bf0b838f3fccf01022edd70f82 | refs/heads/master | 2021-06-16T20:14:29.754453 | 2021-02-25T23:03:19 | 2021-02-25T23:03:19 | 161,077,720 | 19 | 182 | null | 2021-02-25T23:03:19 | 2018-12-09T20:18:25 | Python | UTF-8 | Python | false | false | 631 | py | #cigar_party
def cigar_party(cigars, is_weekend):
if not is_weekend:
return 40 <= cigars <= 60
else:
return is_weekend and cigars > 40
assert cigar_party(30, False) == False
assert cigar_party(50, False) == True
assert cigar_party(70, True) == True
print("Cigar party tests passed")
#date_fa... | [
"10297305+Eric74nyc@users.noreply.github.com"
] | 10297305+Eric74nyc@users.noreply.github.com |
c69aecc288d88a2e3af39ea33a0433e6bfda7f6a | 86ba8693711e25f8cc5488ebb249bbed2f825383 | /assault/stats.py | abbc729e7eacbee08263f77a8e539b0cf6217ccb | [] | no_license | lcwalina/assault | 207f8b2f3e2530e38a6cb7414284262592d5d0d6 | 50b7c67a61256446ca4f6f060a8882cf13bf14be | refs/heads/main | 2023-08-10T19:07:33.808941 | 2021-10-06T13:42:46 | 2021-10-06T13:42:46 | 413,843,292 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,962 | py | from typing import List, Dict
from statistics import mean
class Results:
"""
Results handles calculating statistics based on a list of requests that were made
Here's an example of what the information will look like:
Successful requests 3000
Slowest 0.010s
Fastest 0.001s
Average 0.003s
... | [
"me@me.me"
] | me@me.me |
144d3955135b79d4c7c8c739e6e9fb378ce90c42 | 7adc922990876440a10de51c2f210cdbc12fc5a6 | /LogicaUna.py | 33fed1b62cbd3bc9feb68afb4cae4d37094ed15a | [] | no_license | Asigeo/termostatoasigeo6z | db064c60bb91690116ee4d59f70289e2b128730b | d18f1e9afaf4ae7b670590729b6e41efd7bacca2 | refs/heads/master | 2023-09-01T13:14:22.552509 | 2021-10-29T08:49:47 | 2021-10-29T08:49:47 | 381,743,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,388 | py | import json
from time import sleep
from Relay_Module import Relees
# funcionando = 0 parar
# funcionando = 1 abriendo largo
# funcionando = 2 abriendo corto
# funcionando = 3 cerrando largo
reles = Relees()
def curva(x, b, m):
y = b - m * x
return y
class LogicaZonaDirecta:
def __init__(self,rele):
... | [
"jgonzalez@inartecnologias.es"
] | jgonzalez@inartecnologias.es |
9a02a4515ac66a6af1c48bfd0115ffbef8f9ff1b | ada6419027215f0c73ff2916c16030bdb89cd213 | /05_CodingNature/treeAngel 003.py | 6201df5eab4c266bdb18dfdacc6e539bd098db25 | [] | no_license | Pythones/Ejercicios | 42eab02dbd3c425d13079fdc820ae13490c5d451 | f96812845afd202548f2f03abd3acf8ff5356268 | refs/heads/master | 2016-09-05T18:01:05.151802 | 2014-11-25T12:56:50 | 2014-11-25T12:56:50 | 7,753,567 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 815 | py | #Testing new algorithms based on screensaver logic.
import rhinoscriptsyntax as rs
import math as m
import random as r
i = 0
def main():
#asking for data.
dblLength = rs.GetReal("Initial growing length",1,0.01,10)
dblAngle = m.radians(rs.GetReal("Random angle limit",10,0,90))
strPt = rs.GetPoint("Grow... | [
"angellinaresgarcia@gmail.com"
] | angellinaresgarcia@gmail.com |
53ff44496cb0984d03f5da6f7271f4c8652cc91d | 14561adc9918f32b7f9334fa4dde08a3bfa17c26 | /pipeline/Bacteria_denovo/Bacteria_denovo.pipeline.py | d4951738835c6a9781c9201f9ea8cd6c6fcab482 | [] | no_license | ZhikunWu/awesome-metagenomic | b932169f505d39864a91067283ad7ce954280923 | 71183f262aa539a3983af4de47f7cc69be8cf7a6 | refs/heads/master | 2021-10-08T00:00:00.181593 | 2018-12-06T02:07:42 | 2018-12-06T02:07:42 | 111,966,593 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,029 | py | #!/usr/bin/env python
import yaml
import os
import sys
IN_PATH = config["IN_PATH"]
PIPE_DIR = config["PIPE_DIR"]
THREADS = config["THREADS"]
ThreadFold = config["ThreadFold"]
SAMPLES = config["SAMPLES"]
PROJECTS = config["PROJECTS"]
include: PIPE_DIR + "/Nano_QualityControl.rule.py"
include: PIPE_DIR... | [
"598466208@qq.com"
] | 598466208@qq.com |
38e53a8d35e8f0436f46b05a7eedf0fa39b63dea | 1f96ecaf42f3e502f603f6beb990f97d83feb5ca | /y_2015/d_6/run_2.py | 11a412b84359827a076b9fc6d60c7ed3bc49bcf1 | [] | no_license | moroznoeytpo/adventofcode | 5ddf62261c7c729aba2aa66f9c45884a3ab1ce0b | cd64655e8f90d44fe6684e622de1feec7d6af6aa | refs/heads/master | 2020-11-28T08:55:21.940771 | 2020-11-12T19:13:53 | 2020-11-12T19:13:53 | 229,762,949 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 554 | py | import re
with open('2015/6/input.txt', 'r') as input_file:
l = 1000
grid = [[0 for j in range(l)] for i in range(l)]
total = 0
for rule in input_file:
match = re.search(r"([\w\s]*) (\d*),(\d*) through (\d*),(\d*)", rule)
for i in range(int(match[2]), int(match[4]) + 1):
for j in range(int(match[3]), int(m... | [
"moroznoeytpo@gmail.com"
] | moroznoeytpo@gmail.com |
0291973159aef28b73a1a59386890d16e8dcba96 | afff833c39b47ce6c0fde5af4d831e068b49d0af | /CNN_lab_data.py | 51b1410ebcf75e70fed9e18d8d8f69c5c7e3a6ad | [] | no_license | xzang/Deep-learning-for-sonar-images | 21ed1c2f46f1edaadb9342976cb89c37432083b0 | 1a8d09f8ef68a7c683423f3d4f553da7076f50ce | refs/heads/master | 2020-10-01T05:43:10.133989 | 2020-07-13T03:13:43 | 2020-07-13T03:13:43 | 227,470,507 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,955 | py | # -*- coding: utf-8 -*-
"""
Written by Tim Yin and Xiaoqin Zang
Last editted by Xiaoqin Zang on Nov. 8, 2019
"""
from __future__ import print_function
import keras
from keras.models import Sequential
from keras.layers import Dense, Dropout, Flatten
from keras.layers import Conv2D, MaxPooling2D
from ke... | [
"noreply@github.com"
] | xzang.noreply@github.com |
7e5dbb102fab53228104ce9a43c6407ab1972c45 | 50989266203628be7649d152392f4a1789997b90 | /lisp.py | 9c96a7942a34631c24cce5c62058308aa3242b27 | [] | no_license | cheery/snakelisp | b2820819959be4ed0b62a60c511b15623ae5589e | c62c0401e7d8cbd63afb8a7242850f7740420614 | refs/heads/master | 2020-05-15T08:53:26.443191 | 2014-09-16T15:55:43 | 2014-09-16T15:55:43 | 23,539,541 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,257 | py | #!/usr/bin/env python
from pythonboot.blip import ListNode, TextNode, MarkNode, isList, isText, isMark, open_list
import json
import transpiler
from cps import Call, Lambda, Assign, Variable, Constant, Environ, null, true, false
import subprocess
import sys
import re
# call = Call([arguments]), call[i]
# lambda = Lamb... | [
"cheery@boxbase.org"
] | cheery@boxbase.org |
fd038588e1514db2ce8a3b98d9a04bf9c08b8692 | 9c3c83007c5bf0f36635b0045b2aad7f8a11ac11 | /novice/04-05/graphql/venv/lib/python3.6/site-packages/graphql/utils/value_from_ast.py | 7ad52bca43bf423c08c5f077dd51404ba8164137 | [
"MIT"
] | permissive | septiannurtrir/praxis-academy | bc58f9484db36b36c202bf90fdfd359482b72770 | 1ef7f959c372ae991d74ccd373123142c2fbc542 | refs/heads/master | 2021-06-21T17:04:58.379408 | 2019-09-13T16:46:08 | 2019-09-13T16:46:08 | 203,007,994 | 1 | 0 | MIT | 2021-03-20T01:43:24 | 2019-08-18T13:38:23 | Python | UTF-8 | Python | false | false | 2,920 | py | from ..language import ast
from ..type import (
GraphQLEnumType,
GraphQLInputObjectType,
GraphQLList,
GraphQLNonNull,
GraphQLScalarType,
)
# Necessary for static type checking
if False: # flake8: noqa
from ..language.ast import Node
from ..type.definition import GraphQLType
from typing... | [
"septiannurtrir@gmail.com"
] | septiannurtrir@gmail.com |
4a9d5d358f8e395181b4755283707fc8c2222b93 | e688f5939fb7ece6b5626f2e6aeeab34377841fe | /mysite/mysite/urls.py | 425723419fd208e764cb54798e298410dd86ef02 | [] | no_license | tarq138/my_project | 643c02fdfaa5d2445dbe87ef7679379d5289f503 | 37917b03426a7f846eac1c382a74b89c793439bf | refs/heads/master | 2022-12-11T20:43:52.719760 | 2018-06-09T21:57:10 | 2018-06-09T21:57:10 | 136,760,643 | 0 | 0 | null | 2022-11-22T02:19:24 | 2018-06-09T21:52:17 | Python | UTF-8 | Python | false | false | 618 | py | from django.contrib import admin
from django.conf.urls import url, include
from django.conf import settings
from django.conf.urls.static import static
admin.autodiscover()
urlpatterns = [
url(r'^admin/', admin.site.urls),
url(r'^accounts/', include('django.contrib.auth.urls')),
url(r'^sip/', include('sip.... | [
"tarq138@gmail.com"
] | tarq138@gmail.com |
d4c44550df6570a3c03d89d628513a25c2868572 | 0ae589f33fbf37a6af830dd7494cc576f267f202 | /scenario/settings.py | ea8db96a3b7c5d412a773b2d60a74cbfa2abfd55 | [] | no_license | vamsi9477/sosioHosting | 85be712762738604625a13569f85aa986c31d5b0 | 42dbe2171a32b4cf40d202f16d89c49db9b3c10e | refs/heads/master | 2020-04-05T01:09:02.486917 | 2018-11-06T18:03:07 | 2018-11-06T18:03:07 | 156,425,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,136 | py | """
Django settings for scenario project.
Generated by 'django-admin startproject' using Django 2.1.1.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
... | [
"vamsikrishna6668@gmail.com"
] | vamsikrishna6668@gmail.com |
b67811ab9cab13cf550d69e2c4dda72fc58a0535 | d4deb8d62d95876488e4f2d555d1edce11cd7b8c | /fixture/group.py | 0cdf31543c3ee7c58b8254f4e628bc0064a591a6 | [
"Apache-2.0"
] | permissive | alen4ik/python_training | ce54b19b255358c692c63c84a7e7fe7b7edbf000 | 37faa663089ff610a85fb92b89b7b953d4ddc9e7 | refs/heads/master | 2016-09-07T18:50:40.983369 | 2015-08-29T19:37:27 | 2015-08-29T19:37:27 | 40,011,105 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,048 | py | __author__ = 'ASUS'
class GroupHelper:
def __init__(self, app):
self.app = app
def open_groups_page(self):
wd = self.app.wd
wd.find_element_by_link_text("groups").click()
def create(self, group):
self.open_groups_page()
self.init_group_creation()
self.fil... | [
"alexa10@ya.ru"
] | alexa10@ya.ru |
29a6b6297c5a13c3841db250af023df7df17c8d3 | cad4fb2a3bcdcb42b0be85681f7455fa2b4e658d | /flow_transforms.py | de5a2570ea9c080e6d5f33c5c87faf52d2eb260d | [] | no_license | spillai/FlowNetPytorch | a994171217920293d0a9299dfb31fc5805c4f890 | 90a408e5df0fb2cb8d12adde8685964d94be93a9 | refs/heads/master | 2021-01-11T14:47:08.784506 | 2017-01-27T15:01:28 | 2017-01-27T15:01:28 | 80,218,622 | 1 | 0 | null | 2017-01-27T15:24:05 | 2017-01-27T15:24:05 | null | UTF-8 | Python | false | false | 9,766 | py | from __future__ import division
import torch
import math
import random
from PIL import Image, ImageOps
import numpy as np
import numbers
import types
import scipy.ndimage as ndimage
'''Set of tranform random routines that takes both input and target as arguments,
in order to have random but coherent transformations.
i... | [
"clement.pinard@parrot.com"
] | clement.pinard@parrot.com |
992f8823515ccee3a140f890755137552e8928d4 | 438ee853669a67cd46537f6d02cf356d05e03681 | /doctor_dashboard/urls.py | 47694bb78b753fc56cdb14fe68d5c7380a309fe8 | [] | no_license | tngeene/doc_appointment | a6648bed5c3d1d27e25131945910c5c425468fa1 | 6d1f320db03ad9fcc42b09e19a0d0a73e5af233a | refs/heads/master | 2023-02-22T05:37:36.510685 | 2021-01-19T11:46:01 | 2021-01-19T11:46:01 | 324,834,090 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 424 | py | from django.urls import path, include
app_name = "doctor_dashboard"
urlpatterns = [
path('', include('doctor_dashboard.routes.index')),
path('appointments/', include('doctor_dashboard.routes.appointments')),
# path('doctors/', include('doctor_dashboard.routes.doctors')),
# path('patients/', include('d... | [
"tngeene27@gmail.com"
] | tngeene27@gmail.com |
d29ecd2dab536aba7307bb95697055dbc30cf2aa | 711756b796d68035dc6a39060515200d1d37a274 | /output_cog_tags/initial_3377.py | 561d811f19c812512cfb3db4c9e030dcd1210575 | [] | no_license | batxes/exocyst_scripts | 8b109c279c93dd68c1d55ed64ad3cca93e3c95ca | a6c487d5053b9b67db22c59865e4ef2417e53030 | refs/heads/master | 2020-06-16T20:16:24.840725 | 2016-11-30T16:23:16 | 2016-11-30T16:23:16 | 75,075,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,331 | py | import _surface
import chimera
try:
import chimera.runCommand
except:
pass
from VolumePath import markerset as ms
try:
from VolumePath import Marker_Set, Link
new_marker_set=Marker_Set
except:
from VolumePath import volume_path_dialog
d= volume_path_dialog(True)
new_marker_set= d.new_marker_set
marker_set... | [
"batxes@gmail.com"
] | batxes@gmail.com |
fa959aa6f4a922c56b0970dcb74658e61c42d1f2 | 4ef98e50c40dc9f79ac9e422a208427f034f804d | /maps/models.py | 1e2a9a1d04f3ff48376a6325fbc92a1d1d52468a | [] | no_license | couleurmate/DeweyMaps | 5bd4eef11d429a7f252b8fb3141a7a47697154b4 | 063e9e7e412d57d2fdaf976728aaff66eb5fd38a | refs/heads/master | 2021-01-17T04:51:22.226762 | 2015-07-05T10:38:57 | 2015-07-05T10:38:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,404 | py | from django.contrib.gis.db import models
from closet.models import Subcategory
class Marker(models.Model):
name = models.CharField(blank=False, max_length=255)
position = models.PointField(geography=True, blank=False)
comment = models.TextField(blank=True, null=False, default="")
subcategories = mode... | [
"nikita.marchant@gmail.com"
] | nikita.marchant@gmail.com |
1093b9c3c57519cf4dc597bf6df497b6e31fe0fe | e15f86312db3109bbda053063557693518af4ead | /pcsk9/select_fam.py | 35318362eec5e7e8604254ceeeedd5879854dcdc | [] | no_license | heichiyidui/dev | 3aecf0f92e4af4184b4eae2b1935f281b7746c86 | 73c20c19928eb94d9aec10f0d307604b147b8088 | refs/heads/master | 2020-12-29T01:54:24.236229 | 2016-07-01T14:51:01 | 2016-07-01T14:51:01 | 35,271,765 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,000 | py | #!/usr/bin/env python3
# tail -n +2 plink.genome | awk '{print $2,$4}' > t.in
edges = []
ifile =open('t.in')
for line in ifile:
cols = line[:-1].split()
edges.append([cols[0],cols[1]])
ifile.close()
import collections
node_dgres = collections.Counter()
nodes_1 = [x[0] for x in edges]
nodes_2 = [x[1] for x in... | [
"kuanggong@gmail.com"
] | kuanggong@gmail.com |
c433f2523757ab9ccef83f3d10b3e3ecb22c1afd | e88a5dd494f82911c12601f7d474c5ac8c068bbc | /train-resnet.py | 39b61e1015f7ce84fadfb2b5f7064e3c8cc1df3a | [] | no_license | Nortrom1213/Chinese-Character-Recognition-Demo | aeecba14b4bf6a7dada3cab70490d75cdc7f2bf7 | eb80287027de597068cba306bec2f2a2b5683b90 | refs/heads/master | 2022-10-26T04:18:00.628845 | 2020-06-12T16:19:35 | 2020-06-12T16:19:35 | 271,825,358 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,275 | py | from tensorflow.python.keras import backend as K
from tensorflow.python.keras.models import Model
from tensorflow.python.keras.layers import Flatten, Dense, Dropout
from tensorflow.python.keras.applications.resnet50 import ResNet50
from tensorflow.python.keras.applications.vgg19 import VGG19
from tensorflow.python.kera... | [
"nortrom@berkeley.edu"
] | nortrom@berkeley.edu |
bd0868604e0235e290ac2c3da89d7d5fd1be98ee | 7b4b8a7fc438603425ba09a8988b27626951c4a3 | /scripts-general/bin/bg-cycle.py | dcba9d75a3dd8d29142a0e19016e2fc42ee48d91 | [
"MIT"
] | permissive | raehik/dotfiles | a728ea46f2219887595d9dec1a6445bcd7761fdd | 0e3b695038f4e1e41ad53a3f7e9bad746a340dce | refs/heads/master | 2023-04-29T15:55:24.942379 | 2023-04-20T16:58:47 | 2023-04-20T16:58:52 | 21,466,079 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,875 | py | #!/usr/bin/env python3
#
# Create backgrounds for applications.
#
import sys, os, argparse, logging, subprocess
from pathlib import Path
import random, glob
## Boilerplate utils class {{{
class BoilerplateClass:
def _deinit(self):
self.logger.debug("deinitialising...")
def _init_logging(self):
... | [
"thefirstmuffinman@gmail.com"
] | thefirstmuffinman@gmail.com |
937277b439813ae6dc3be0fe527ec358ddf48bc8 | ae366ff5e8f8d01b4c36c43baa9159d8aa71efee | /96.py | 6f4d7fe3c67e079353ea154fd4686282ab02871a | [] | no_license | lampard1010/python_foundation | 3b464f05ff9ebbbf86e140929ebf0c54aba1dfd4 | 6bc8773af9b10e64e35e2d5255835b18722fef50 | refs/heads/master | 2021-01-02T04:43:35.260597 | 2020-04-20T01:35:55 | 2020-04-20T01:35:55 | 239,493,804 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 82 | py | str = "lkdasjfepojckjdfnkfdjalkdjfeikjf.dfad.falsfl"
c = "l"
print(str.count(c)) | [
"261893396@qq.com"
] | 261893396@qq.com |
891003afd300b40669b199a1656cb107cd5cee6c | 94be38d1f532a2d79e8559780fed11f9d7f3c374 | /bin/wheel | 678f987df6f3a74016b24a0f050ec9638d865afd | [] | no_license | aibolTungatarov/Algorithms | f81b134e3a9cf17f17f3b173f4af92de9c26b725 | 411b5c33aace65aba586933e5fd1b91ea467a1f4 | refs/heads/master | 2020-04-01T13:45:35.762752 | 2018-10-18T07:44:54 | 2018-10-18T07:44:54 | 153,266,145 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 245 | #!/Users/macpro/Desktop/Alghoritms/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from wheel.tool import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"aibolseed@gmail.com"
] | aibolseed@gmail.com | |
0cbcbbcdedfab5d7e39c18b76eb226601632f8cb | 770710253983911ea0ed00cb3111f2d3fbadd200 | /Functions/TextTranslate.py | 33a9411488a23ffa5324c6d8cb0a2ea4ffb62b22 | [] | no_license | anshdholakia/Full-Voice-Assistant-Application | 4185ec88ed50f7477853bbf75905708dc3bb5c6d | c0b88aaece48c2aac4e159f5f7772e1df4c7dd1c | refs/heads/main | 2023-05-27T16:38:31.500721 | 2021-06-14T20:43:48 | 2021-06-14T20:43:48 | 376,944,730 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 345 | py | from translate import Translator
First_language = input("Enter the language :")
Second_language = input("which language do you want to translate in:")
trans = input("what do you want to translate:")
translator= Translator(from_lang = First_language, to_lang = Second_language )
translation = translator.translate(tr... | [
"anshhiro.dholakia@gmail.com"
] | anshhiro.dholakia@gmail.com |
a7996adaf8325122bea98102d171858b89532aa3 | 37781f86b30df6b31ee51ceeca01d391f9081b35 | /player.py | a94d32f4ea2ee36a10494e5f8529af80611561f7 | [] | no_license | Dek18/CM1101 | 2956d77631ba824f3d855da264a285e6fd2297c9 | b2ac69015214db279d5bb23906a9e7ad3f44d715 | refs/heads/master | 2020-04-01T17:50:32.308366 | 2018-10-19T12:07:50 | 2018-10-19T12:07:50 | 153,453,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 157 | py | from items import *
from map import rooms
inventory = [item_id, item_laptop, item_money]
# Start game at the reception
current_room = rooms["Reception"]
| [
"noreply@github.com"
] | Dek18.noreply@github.com |
bd048537d034b6848abcda59d8df2095488bf975 | db258fdb98d36eef012f527f05270cb1eab8b5bf | /ListeNomB.py | aa6bf01ed99a91cb379897800f5eefe06ae13c23 | [] | no_license | lisalam/Code_VRD | 31440e4b4897deb705c578c1c9557b9160ffea4c | bda284754b1095cea07bbe231f53448dcb67d2d7 | refs/heads/master | 2021-01-10T08:10:12.278550 | 2013-05-15T13:59:23 | 2013-05-15T13:59:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,497 | py | #!/usr/bin/python
# -*- coding: iso-8859-15 -*-
import os, sys
import javax.swing as swing
import java.awt as awt
from javax.swing import BorderFactory
from javax.swing.border import EtchedBorder, TitledBorder
from java.awt import Font
from java.awt import TextField, Panel, GridLayout, ComponentOrientation, Label, Che... | [
"lisalamasse@gmail.com"
] | lisalamasse@gmail.com |
334884019f2b56715e5a878c947780be070c15b6 | 5dad0bee1bceb2fcb29d5cd917891341e58901a6 | /project_model/project_model/ATA/migrations/0002_auto_20190722_1713.py | 5a44e306f936084aa5e200d6f016e49fa17108b1 | [] | no_license | fikriamri/DJANGO_MVC | 7b727c726e9b3a80fc9cae0c1c69b14d8b8ad531 | fbb1df52a68847595408973493edf89414db19d5 | refs/heads/master | 2022-02-22T06:23:35.877150 | 2019-07-24T03:39:23 | 2019-07-24T03:39:23 | 198,142,007 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 366 | py | # Generated by Django 2.2.3 on 2019-07-22 10:13
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('ATA', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='mentee',
name='nomor_absen',
... | [
"famri@alterra.id"
] | famri@alterra.id |
c331620af8d90516d5621093dfcd5f6600132054 | b8e70677484e357d941468b7b6335e2cdc32917b | /svenweb/lib.py | e4bbd2fae38f0094d11806fd7f937c79001735a2 | [] | no_license | socialplanning/svenweb | b8ee3b095ba7711692fbba2a09c04eab9a1022fa | eadef6372d03b9439e64d1e72636304c90cb85f9 | refs/heads/master | 2016-09-06T01:18:55.797089 | 2011-05-16T21:13:01 | 2011-05-16T21:13:01 | 1,653,573 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 158 | py | def location(request):
location = '/'.join((request.script_name.rstrip('/'),
request.path_info.lstrip('/')))
return location
| [
"ethan.jucovy+github@gmail.com"
] | ethan.jucovy+github@gmail.com |
82f573ab57442baca38130076f8b17ddd1163034 | a665f561b103a51404785f35d0026c60f0083cb4 | /0x05-python-exceptions/101-safe_function.py | 38683ee508361b035c621dad79ea63525fad197f | [] | no_license | Joshua-Enrico/holbertonschool-higher_level_programming | c5f3c9ab55167ea2e7ea3b31dd8edf2e22a18bde | 8c1559f9c772b60186e899e17c67d299f88de726 | refs/heads/main | 2023-07-31T17:45:16.723947 | 2021-09-23T00:29:25 | 2021-09-23T00:29:25 | 361,960,411 | 1 | 5 | null | null | null | null | UTF-8 | Python | false | false | 235 | py | #!/usr/bin/python3
def safe_function(fct, *args):
try:
div = fct(*args)
return div
except Exception as error:
import sys
print("Exception: {}".format(error), file=sys.stderr)
return None
| [
"tmrfack@gmail.com"
] | tmrfack@gmail.com |
fc0bbcd096df9fe751b943cfd1fd20e466ee4baf | f82757475ea13965581c2147ff57123b361c5d62 | /gi-stubs/repository/Poppler/PageLayout.py | 605c3665f4dee50e741e5800be5b7e77e834cdc8 | [] | no_license | ttys3/pygobject-stubs | 9b15d1b473db06f47e5ffba5ad0a31d6d1becb57 | d0e6e93399212aada4386d2ce80344eb9a31db48 | refs/heads/master | 2022-09-23T12:58:44.526554 | 2020-06-06T04:15:00 | 2020-06-06T04:15:00 | 269,693,287 | 8 | 2 | null | 2020-06-05T15:57:54 | 2020-06-05T15:57:54 | null | UTF-8 | Python | false | false | 13,686 | py | # encoding: utf-8
# module gi.repository.Poppler
# from /usr/lib64/girepository-1.0/Poppler-0.18.typelib
# by generator 1.147
"""
An object which wraps an introspection typelib.
This wrapping creates a python module like representation of the typelib
using gi repository as a foundation. Accessing attributes of... | [
"ttys3@outlook.com"
] | ttys3@outlook.com |
eeedc6e06be66be4ba83b0914b71cabc517a8dc2 | ad010f3ecdaa260b2d8732b8b784d58b3c812b9e | /spider_admin_pro/config/yaml_config.py | a43dc91138192f1c70a92ea9429b25cabd30f721 | [] | no_license | laashub-soa/spider-admin-pro | 52261816015afa672176423f38d0206f9bbafa15 | 5faefebd25ad6a163a6a7d18076dc10adba7d970 | refs/heads/master | 2023-08-14T01:24:15.659796 | 2021-09-27T04:15:52 | 2021-09-27T04:15:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,533 | py | # -*- coding: utf-8 -*-
#################################
# 读取用户自定义变量
#################################
import os
import yaml
from spider_admin_pro.config import env_config
from spider_admin_pro.logger import logger
config_file = os.path.join(os.getcwd(), 'config.yml')
logger.info('config_file: %s', config_file)
... | [
"1940607002@qq.com"
] | 1940607002@qq.com |
bdde9f777bdf20d7a7c2236af816571c9a9d3bd1 | 5eed367617654c0b1182ad9ddbb4c949e68cde75 | /main.py | a311a9aebdacd0c031e9658eb6f72a06225c100c | [] | no_license | nipunatheekshana/jarvis | c8d6eb50f34f988216b4f2bbe07a454715dbfda0 | 21f96254e0f346a7e42f60594660f423ad61725c | refs/heads/master | 2023-02-13T14:08:03.410846 | 2021-01-11T19:22:03 | 2021-01-11T19:22:03 | 328,769,009 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,361 | py | import speech_recognition as sr
import pyttsx3
import pywhatkit
import datetime
import wikipedia
import pyjokes
listner = sr.Recognizer()
engine = pyttsx3.init()
def talk(word):
engine.say(word)
engine.runAndWait()
def receive_command():
try:
with sr.Microphone() as source:
talk("ye... | [
"nipunatheekshana8@gmail.com"
] | nipunatheekshana8@gmail.com |
43b3dcc73cfdcbc4c2c4e592fd97bc7d88a60d21 | fde6081d838481a2451e435d7ce1e8efd41d8c2c | /Util.py | 4bdaced86fbd3fafe543135c25e5b4d54a20dc30 | [] | no_license | parthivpatel1106/SleepBot | b067bbf27275b4ab35136c912a167a411da57ad2 | 09979d273fa761da09201d5166bbbf3dc4819c01 | refs/heads/main | 2023-01-21T21:45:39.471169 | 2020-12-03T12:48:49 | 2020-12-03T12:48:49 | 318,178,217 | 0 | 0 | null | 2020-12-03T11:57:42 | 2020-12-03T11:57:42 | null | UTF-8 | Python | false | false | 2,592 | py | import discord
from discord.ext import commands
import asyncio
import os
import random
# For Database related stuff
import sqlite3
from dotenv import load_dotenv
from datetime import datetime
from datetime import date
POINT = {}
# Open and connect to Database File
conn = sqlite3.connect('Database.db')
c = conn.curso... | [
"62468954+ZeusAbhijeet@users.noreply.github.com"
] | 62468954+ZeusAbhijeet@users.noreply.github.com |
834db63d639b48b74456b466a1a37de5eec65799 | c5a013595c7f5000d817c37f94db174751fba865 | /asyncpy/asyncpy/__init__.py | fcbdb02e7bff8b3a5e36ea7fbc6107adceff159b | [
"MIT"
] | permissive | Fenfenrao/asyncpy | c3b8d7ee5399f11e49c711d917fd8f9fd2b370d5 | 9c0b4ebe2f30cd4381c8cc0407f7dc98b1fd72c3 | refs/heads/master | 2022-07-28T20:08:43.063804 | 2020-05-25T05:05:21 | 2020-05-25T05:05:21 | 266,761,650 | 1 | 0 | null | 2020-05-25T11:28:34 | 2020-05-25T11:28:34 | null | UTF-8 | Python | false | false | 1,620 | py | # -*- coding: utf-8 -*-
"""Asyncpy
Usage:
asyncpy genspider <name>
asyncpy (-h | --help | --version)
Options:
--version Show version.
"""
from asyncpy.middleware import Middleware
from asyncpy.request import Request
from asyncpy.response import Response
from asyncpy.spider import Spider
from asyncpy.exc... | [
"125066648@qq.com"
] | 125066648@qq.com |
41edfbdd80492e88bc1f100c372ba51fd0c98a92 | 71788a22dcaeb2fbde56b87fabf7ee21df3a770f | /students/matthew_denko/lesson05/mailroom_pt3.py | 4786a37f7981960ed69bbf09917b1619138c8d18 | [] | no_license | UWPCE-PythonCert-ClassRepos/Python210_Fall2019 | 5bdfc1c919666eccb42ee07a1d7e385b21f11652 | e45481671684a3cc8a469461a15cd9f660752ee0 | refs/heads/master | 2020-08-05T16:33:53.068983 | 2019-12-29T09:57:59 | 2019-12-29T09:57:59 | 212,615,940 | 4 | 34 | null | 2019-12-29T09:58:00 | 2019-10-03T15:38:40 | Python | UTF-8 | Python | false | false | 8,603 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Nov 12 06:34:53 2019
@author: matt.denko
"""
# pt 3 description ------------------------------------------------------------
"""Exceptions
Now that you’ve learned about exception handling, you can update your
code to handle errors better, such as whe... | [
"denkmatt@umich.edu"
] | denkmatt@umich.edu |
2bf35fe27a37fa9abcd436ee6d574981f541f759 | 26e3146ce5f3b27ae867aa7238f377b109e7a0e3 | /bot_4.py | a11e1ff499174f3c4c11f3d20bf6a15cf43fa020 | [] | no_license | Mattix-M/chatbot1 | 1fa64512facc406a68d6ee797dc7d8c3d174300a | 9eb9226fb8cde5186895c39d753fe16d56b32d13 | refs/heads/master | 2022-07-10T20:19:22.882513 | 2020-05-12T15:02:05 | 2020-05-12T15:02:05 | 263,369,140 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,393 | py | import datetime
import vk_api
from vk_api.bot_longpoll import VkBotLongPoll, VkBotEventType
import random
vk_session = vk_api.VkApi(
token=TOKEN)
longpoll = VkBotLongPoll(vk_session, GROUP_ID)
vk = vk_session.get_api()
day = {0: 'понедельник', 1: 'вторник', 2: 'среда', 3: 'четверг',
4: 'пятница', 5: 'суб... | [
"noreply@github.com"
] | Mattix-M.noreply@github.com |
013f62d1095057fe79083d89f83110ecb8c70f3f | dc99d95671170444cd7bf02e37da6ecda4a5f19e | /apps/courses/views.py | 744bef09fd1699bd93842b7c1d3d4a04ab7d3ca9 | [] | no_license | bbright3493/python_real_war | 734d49ed9f7e1800d24dc754424a07b69d7d8c1f | 6e43bb7d814920222f3310bd6fd9f04cb3d5bbf1 | refs/heads/master | 2020-03-30T06:08:40.249185 | 2018-10-22T07:33:41 | 2018-10-22T07:33:41 | 150,841,381 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,305 | py | # -*- coding: utf-8 -*-
import json
from django.shortcuts import render, HttpResponse
from django.views.generic.base import View
from pure_pagination import Paginator, EmptyPage, PageNotAnInteger
from utils.mixin_utils import LoginRequiredMixin
from .models import Course, Lesson, ChoiceQuestion, Video, ProgramQuesti... | [
"44704708@qq.com"
] | 44704708@qq.com |
51930079a3309f6d30abe786051977a566ea742b | c9af07e4b045b897734f29ff1f8a211aa40d0822 | /TextNook Assignment/reddit/blog/urls.py | 2675016b19ebf5206ecfe6d1bc71d078d28d8538 | [] | no_license | vinyasmusic/Projects | 20294e89c2905d5b5c54d21edb06f3076948051a | 2dd1c05267b86d069a1185cd843e8a4d2bdf6123 | refs/heads/master | 2020-04-06T04:04:53.532872 | 2017-01-14T05:06:59 | 2017-01-14T05:06:59 | 58,999,243 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 257 | py | from django.conf.urls import url
from . import views
from blog.views import PostListView
urlpatterns = [
#url(r'^$', views.post_list, name='post_list'),
url(r'^$',PostListView.as_view())
#url(r'^post/new/$', views.post_new, name='post_new'),
]
| [
"vinyasmusic@gmail.com"
] | vinyasmusic@gmail.com |
096bc1c7152955fc7efee92dc96b6923843848ec | ee41311a11a1c6baedafd9a914d5a1f8330fe8a9 | /SANEF_LIVE/venv/Lib/site-packages/anaconda_navigator/widgets/tabs/tests/test_environments_tab.py | 2e4d36bd2647c721b4161cbc2957d1664db066a3 | [] | no_license | sethnanati/CodeRepoPython | 2dffb7263620bd905bf694f348485d894a9513db | b55e66611d19b35e9926d1b1387320cf48e177c8 | refs/heads/master | 2023-07-07T11:16:12.958401 | 2021-02-13T10:09:48 | 2021-02-13T10:09:48 | 376,531,283 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,911 | py | # -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
# Copyright (c) 2016-2017 Anaconda, Inc.
#
# May be copied and distributed freely only as part of an Anaconda or
# Miniconda installation.
# ---------------------------------------------------------------------... | [
"adeyemiadenuga@gmail.com"
] | adeyemiadenuga@gmail.com |
5d0d6f69f6660e6ef026a817f19eea6376397f45 | e9f9c70bf80bf95db4d323cfc7a019c30c55e04c | /Sapient Challenge/SapientChallenge/EventGenerator.py | 040d0ed83078d0bb143b393b819c1df66128dcef | [] | no_license | sidtandon2014/AnalyticsVidhya | 1c19453e432147f0c75c636b995e0ce8e2d1c8d7 | 9e75578cb7edb0f552bd87da32021d17e9509a87 | refs/heads/master | 2021-06-24T03:52:28.880916 | 2020-12-16T14:55:36 | 2020-12-16T14:55:36 | 147,308,283 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,307 | py | from kafka import KafkaProducer, KafkaClient
import csv
import json
import numpy as np
import time
from datetime import date
import pdb
class EventGenerator:
def __init__(self,bootstrapServers,topicName):
self.bootstrapServers = bootstrapServers
self.topicName = topicName
def readFi... | [
"siddharth.tandon1@gmail.com"
] | siddharth.tandon1@gmail.com |
39d1f1d061ba1a605ac99d665358afaa10fee6bb | ef61ee0178686a1e371836188f97ad982e4123b8 | /local/data/data_prep_TOCFL.py | fe59ef09a6176dd50c8e124f41dc8429b5647335 | [] | no_license | xiaoyeye1117/Chinese-ASR | 17c138631da723a7163e00aca7ca2e34103f800f | be93ee6ab42f39e0f9c69b52b6acb4ec261ad4c9 | refs/heads/master | 2020-06-23T07:36:17.846508 | 2019-01-21T07:35:30 | 2019-01-21T07:35:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,015 | py | import os,sys
def main(tocfl_path,file_type):
wavdir_path = os.path.join(tocfl_path,'wav')
wavdir_path = os.path.abspath(wavdir_path)
txt_path = os.path.join(tocfl_path,'txt')
for filename in os.listdir(wavdir_path):
wav_label = filename.split('.')[0]
wav_path = os.path.join(wavdir_path... | [
"jacky84228@hotmail.com"
] | jacky84228@hotmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.