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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
822f6d6e6a401618aca6989d635ffdaf89174f02 | e78d9b6f550d1d76b7d8ee6282c228cc92cbd69d | /tutorial.py | 31076621ba29aa4b734ce8c4014397b66c87b0d9 | [] | no_license | long95288/PyTorchLearn | c013ed75e20f5358ef2cd1b35800a30019c9f21d | b6fa6c00dc836459b2924c603806c10ec7a951ac | refs/heads/master | 2020-06-04T08:25:57.302509 | 2019-06-15T14:24:04 | 2019-06-15T14:24:04 | 191,944,286 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,814 | py | """
View more, visit my tutorial page: https://morvanzhou.github.io/tutorials/
My Youtube Channel: https://www.youtube.com/user/MorvanZhou
Dependencies:
torch: 0.4
torchvision
matplotlib
"""
# library
# standard library
import os
# third-party library
import torch
import torch.nn as nn
import torch.ut... | [
"1186481819@qq.com"
] | 1186481819@qq.com |
4a95b21c810a8139cdf6848ac7d6fbe6c2f553ff | 4b3ae6048ced0d7f88a585af29fa3a7b15005749 | /Python/Python_Fundamentals/makingTuples.py | 826647c1102aa86bdc343efe54ec68cda094a6db | [] | no_license | ajag408/DojoAssignments | a6320856466ac21d38e8387bdcbbe2a02009e418 | 03baa0ff5261aee6ffedf724657b3a8c7cdffe47 | refs/heads/master | 2022-12-11T15:50:46.839881 | 2021-06-07T20:57:17 | 2021-06-07T20:57:17 | 79,872,914 | 0 | 0 | null | 2022-12-08T00:35:09 | 2017-01-24T02:58:15 | Python | UTF-8 | Python | false | false | 209 | py | def dictToTuple(dict):
return dict.items()
# my_dict = {
# "Speros": "(555) 555-5555",
# "Michael": "(999) 999-9999",
# "Jay": "(777) 777-7777"
# }
#
# answer = dictToTuple(my_dict)
# print answer
| [
"akashjagannathan408@gmail.com"
] | akashjagannathan408@gmail.com |
518f8410f8bc49ab48576f99926b7c130acc5de7 | 177338a720f904f63926da055364cc0e2c0a850c | /python_stu/s11_22_pager/app01/migrations/0001_initial.py | e1df1b6e1002b6b8fc5e9aec9c576e3d2b84b7e1 | [] | no_license | xuefenga616/mygit | 60ef7bf7201603e13d4621cf7a39dea8ec92e0b7 | be3b8003fcc900ce7ca6616a9ddebb0edcbc1407 | refs/heads/master | 2020-09-13T11:50:55.448041 | 2017-08-27T10:59:00 | 2017-08-27T10:59:00 | 67,042,409 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 535 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='UserList',
fields=[
('id', models.AutoField(ver... | [
"xuefeng_11@qq.com"
] | xuefeng_11@qq.com |
69d1e0eaafb48519d640699db6f0d42302cab973 | cf2d77b8b516e40b90cb55eabb89dc0382ba13c1 | /commence/commence/urls.py | ae270f7e5b52ac7e60335359d5672d91d863af2f | [] | no_license | ishanoon/django-Ecommence | 8be9e8e5b069d3a68dde08191722bd1bc1046fda | 9e19880105647b220853b11672945591dec55039 | refs/heads/master | 2022-11-16T23:24:21.459527 | 2020-07-12T06:02:04 | 2020-07-12T06:02:04 | 279,001,749 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 952 | py | """commence URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/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')
Class-base... | [
"shanoongaspi@gmail.com"
] | shanoongaspi@gmail.com |
282cecdd1352fd8996a3894bfa0d5ad1064134f7 | d7734c0f5868d829dcf6bff8ca064e0bab773e98 | /budget.py | 6b84893fef5a213ff97f049a0c9908ed0d746993 | [] | no_license | venkataramanal/jnnnnn.github.io | 29dac18a8e241e0b7ef408539402db97f4e7739a | 48352082d0e727912d83ffd5f87cc664197de2e2 | refs/heads/master | 2020-06-19T03:30:07.823099 | 2019-04-18T08:09:45 | 2019-04-18T08:09:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 342 | py | import csv, collections
categories = collections.defaultdict(list)
with open(r"d:/drop/jnnnnn.github.io/translog.txt") as f:
for row in csv.DictReader(f, delimiter="\t"):
categories[row["Category"]].append((float(row["Debit"]), row["Description"]))
for c in categories:
categories[c].sort()
import pprint
ppr... | [
"jnewnham@iress.com.au"
] | jnewnham@iress.com.au |
9c57e8b4305bea8f82b52a40fe221ed8b3772c27 | a3ecfd62ae255f026e44203eb8ee81af30864396 | /app.py | 642d110aaf1ef5fba63810914ce03efd24a1ffd7 | [
"MIT"
] | permissive | imutk/mini-remote-downloader | 09bea6db44b79f23d042b78976d50bdad7a207c4 | 0ee0843254a920aa2277c564c92245bb6414f247 | refs/heads/master | 2022-02-19T23:04:01.888234 | 2019-09-08T19:54:00 | 2019-09-28T08:11:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,587 | py | from __future__ import print_function
from __future__ import unicode_literals
import mimetypes
import os
import socket
import sys
import threading
import uuid
from functools import wraps
from os.path import splitext
import six
from six.moves.urllib.parse import urlparse
import requests
import yaml
from flask import ... | [
"theglow666@gmail.com"
] | theglow666@gmail.com |
2dfc3d26d7ff73b059ae0504d3f73792b3b0e6ee | e96be08b97bebde6e8a7706202726ed4119aaf48 | /transformers/src/transformers/data/datasets/language_modeling.py | 25c2eb65896437043eb86990693f2a59e060ced3 | [
"Apache-2.0"
] | permissive | chijames/BookQA | c0bb2eb8a7b5b29b6d7ee9174359a0693c3b9bb2 | 917cb2c146684b13dedfbc4b22522df83e7a8a4d | refs/heads/main | 2023-06-14T12:38:21.668604 | 2021-07-10T16:32:41 | 2021-07-10T16:32:41 | 382,691,725 | 0 | 0 | null | 2021-07-03T19:07:35 | 2021-07-03T19:07:34 | null | UTF-8 | Python | false | false | 16,163 | py | import os
import pickle
import random
import time
from typing import Dict, Optional
import torch
from torch.utils.data.dataset import Dataset
from filelock import FileLock
from ...tokenization_utils import PreTrainedTokenizer
from ...utils import logging
logger = logging.get_logger(__name__)
class TextDataset(Da... | [
"moutaigua8183@gmail.com"
] | moutaigua8183@gmail.com |
d39beed8ed4fa1fda3f9bf865fbf61f0de54e2d8 | aa187f73344a5cf62b4d7d71210ec1b2d5672fa1 | /train.py | ae6a873572466d147950236068b4169cf0342f6f | [] | no_license | qbx2/pixelcnn-pytorch | 9d255f736e6445072b6fddc81cd16c7e25dc179d | 17b86fd3189367ba9a56cd4fa2403f47c96df68e | refs/heads/master | 2020-11-27T00:55:14.215295 | 2020-01-11T16:50:30 | 2020-01-11T16:50:30 | 229,249,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,257 | py | import os
from collections import defaultdict
import numpy
import pscp
import torch
import torch.nn as nn
import torch.optim as optim
import torchvision
from torchvision.utils import save_image
from models import PixelCNN
def nat2bit(val):
return torch.log2(torch.exp(val))
def loop(ctx, phase):
device = c... | [
"sunyeop97@gmail.com"
] | sunyeop97@gmail.com |
084dcaf39078c8c181f9f17accf80dff01ec7bcd | 6af267f4abeec1ba95a5ebaf6afbc4377a1bd59f | /Term.py | 2925b4540ecc302d5b19723f3dae7e287587eda0 | [] | no_license | Sean-Powell/SMI-Thesis | f49bfe4af7b7af32aac853fcf5c7751d6ff8df60 | 9fde47f73b029cab3aaaeda6dbf89566bd05622e | refs/heads/main | 2023-07-24T08:00:16.339412 | 2021-09-06T08:55:35 | 2021-09-06T08:55:35 | 305,837,539 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,832 | py | class Term:
sign = ""
operation = ""
exponent = 1
coefficient = 1
def __init__(self, sign, operation, exponent, coefficient):
if sign == 1:
self.sign = "-"
else:
self.sign = "+"
self.operation = operation
self.exponent = exponent
self... | [
"seanpowell54@gmail.com"
] | seanpowell54@gmail.com |
440008a7a36ecaef1ea45f372d64494846621011 | 6669b132eb482f95c1f40d35ecae14a544fe9197 | /dp/no70.py | f978622a8425456080815f3c7ee609f8abec503a | [] | no_license | markdannel/leetcode | 94dade2e5a286d04075e70e48015459ea6ac383a | 6a2ac436599ecebc527efe0d6bfe0f6f825311fb | refs/heads/master | 2021-06-06T20:56:34.868122 | 2020-10-21T12:16:56 | 2020-10-21T12:16:56 | 140,668,176 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 934 | py | # 假设你正在爬楼梯。需要 n 阶你才能到达楼顶。
# 每次你可以爬 1 或 2 个台阶。你有多少种不同的方法可以爬到楼顶呢?
# 注意:给定 n 是一个正整数。
# 示例 1:
# 输入: 2
# 输出: 2
# 解释: 有两种方法可以爬到楼顶。
# 1. 1 阶 + 1 阶
# 2. 2 阶
# 示例 2:
# 输入: 3
# 输出: 3
# 解释: 有三种方法可以爬到楼顶。
# 1. 1 阶 + 1 阶 + 1 阶
# 2. 1 阶 + 2 阶
# 3. 2 阶 + 1 阶
# 明确「状态」 -> 定义 dp 数组/函数的含义 -> 明确「选择」-> 明确 base case
class Solution... | [
"wistion@foxmail.com"
] | wistion@foxmail.com |
a7aaea88c780b8bd4794ae81c8be3b058b2d5c5d | c4b8e1e09dedbccd37ca008ecaaca4438610bbaf | /z3/building_a_house.py | 9d5015a6cc2a0dd406b4c96667b91c8ae531df7d | [
"MIT"
] | permissive | hakank/hakank | 4806598b98cb36dd51b24b0ab688f52dadfe9626 | c337aaf8187f15dcdc4d5b09cd2ed0dbdb2e72c2 | refs/heads/master | 2023-08-15T00:21:52.750270 | 2023-07-27T16:21:40 | 2023-07-27T16:21:40 | 11,933,517 | 336 | 97 | MIT | 2023-07-27T11:19:42 | 2013-08-06T20:12:10 | JavaScript | UTF-8 | Python | false | false | 3,932 | py | #!/usr/bin/python -u
# -*- coding: latin-1 -*-
#
# Building a house, simple scheduling problem in Z3
#
# This model is adapted OPL model sched_intro.mod (examples).
# """
# This is a basic problem that involves building a house. The masonry,
# roofing, painting, etc. must be scheduled. Some tasks must
# necessarily t... | [
"hakank@gmail.com"
] | hakank@gmail.com |
3f25fb7ce6da69d951596e88ada26bf2a14bd5d8 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_285/ch5_2019_06_06_18_54_46_963120.py | 985b9e61a770d1502eea4003eb618e39ff03abfa | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | def eh_primo(n):
primo=True
if n<=1:
primo=False
for e in range(2,n):
if n%e==0 and e!=n:
primo=False
return primo
lista_primos=[]
def maior_primo_menor_que(n):
if n<0:
return -1
else:
for i in range(0,n+1):
if eh_primo(i):
lis... | [
"you@example.com"
] | you@example.com |
884170906fe4a747fdc70ac5eab6b1a064451370 | 92b2a8017c31e5b84d90aedf8384997b8d86fffa | /Loi_Mouvement.py | b18d77fea65a6cf09489af6246ca93d3fd1e8501 | [] | no_license | Maleex99/be | 465cf2a1678df3d3b056ca14110b238bf51e0a72 | d657b4355b21af479ed9d2337c8f7313820bcd7e | refs/heads/main | 2023-01-23T09:00:49.980464 | 2020-11-24T18:59:21 | 2020-11-24T18:59:21 | 302,615,440 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,560 | py | # -*- coding: utf-8 -*-
import sys
import numpy as np
import matplotlib.pyplot as plt
def getA(a0, a1, a2, posB,tf):
''' Fonction pour obtenir A'''
return (posB - a0 - a1*tf - a2 * tf**2)/ tf**3
def getB(a1, a2, vitB, tf):
''' Fonction pour obtenir B'''
return (vitB - a1 - 2*a2 * tf) / tf... | [
"noreply@github.com"
] | Maleex99.noreply@github.com |
6f0e96c1993a1b210e4d7c1365b69706190d11d7 | 60814a33c10069ac92f2621463bfa0acfed16f7e | /StarmerxSpider/pool.py | 017a3a649a0fdb4e6467d2b191a5ff4a54083268 | [] | no_license | ijt0walle/LiuFan_Spider | 967138c79bb4f6097fb8d898892a02c5fd6a454c | 25c07e7d594a835d123530bb49bce77a5bd7f662 | refs/heads/master | 2021-01-25T13:18:28.306502 | 2017-08-15T02:32:08 | 2017-08-15T02:32:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,839 | py | #!/usr/bin/python
# coding=utf8
from Queue import Queue
import threading
import contextlib
WorkerStop = object()
class ThreadPool:
workers = 0
thread_factory = threading.Thread
current_thread = staticmethod(threading.currentThread)
def __init__(self, max_threads=32, name=None):
self.queue = ... | [
"liufan.dery@gmail.com"
] | liufan.dery@gmail.com |
9621890be860dfc859eedb6f4bb376e9af71eee8 | 6f0eaf2a6a8a11b3f0acf61a4519be86fb20a42e | /Course 3 - Using Python to Access Web Data/Chapter 11/Lecture Material/ExtractingData.py | 52b2f72694f89f4ec874d21575f3a1be93202bc0 | [] | no_license | dotslash-web/PY4E | 57b2e58c37ca0bc0635c66851328494909aeee48 | f07aeb8b0467cc0965eb1c9436d6b0be7b765552 | refs/heads/master | 2022-12-25T11:00:31.892914 | 2020-10-01T05:56:14 | 2020-10-01T05:56:14 | 300,162,065 | 0 | 0 | null | 2020-10-01T05:52:14 | 2020-10-01T05:52:13 | null | UTF-8 | Python | false | false | 3,140 | py | 'Matching and Extracting Data'
#re.search() returns a T/F depending on whether the string matches the regular expression
#If we actually want the matching strings to be extracted, we use re.findall()
import re
x = 'My 2 favorite numbers are 19 and 42'
y = re.findall('[0-9]+', x) #one or more digits
print(y)
#>>['2', '... | [
"noreply@github.com"
] | dotslash-web.noreply@github.com |
99a09ad056ac8a477ee29efe616deac2fb4b6043 | ad46faf06cb33104bb9693bf042ad5aa09fe0e80 | /polls/admin.py | 21c929609b694954fa34c749ce63df31dfee2c14 | [
"MIT"
] | permissive | ShreyaPrabhu/mysite | b707d6858a1fb9740760b958b8687a6574b68234 | 2cf9ca2db1463b20fd4721a31ab3fdb1aee49170 | refs/heads/master | 2021-01-01T03:57:40.027741 | 2017-10-15T14:59:43 | 2017-10-15T14:59:43 | 59,410,930 | 1 | 3 | null | 2017-10-15T14:59:44 | 2016-05-22T12:23:48 | HTML | UTF-8 | Python | false | false | 148 | py | from django.contrib import admin
# Register your models here.
from .models import Tasks
#from .models import TaskDetails
admin.site.register(Tasks) | [
"shreyaprabhu96@gmail.com"
] | shreyaprabhu96@gmail.com |
66ae29ff4d9a1a98fa50ab7d16caf95cbf598371 | 52863bd82a2c1fc8e99be48c7c3268cdb05958e4 | /1020 Tree Traversals.py | 280ddbc079ba8877d8d4e26f50cdbf6211566f80 | [] | no_license | illuca/pat | cc8cfe4ca9a77f99fe8c4adfd236fc0011bb583a | f83b8a0ef84908c740442210d0b5eccc75c213c0 | refs/heads/master | 2020-09-30T21:18:17.305039 | 2019-12-11T14:20:16 | 2019-12-11T14:20:16 | 227,375,726 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 680 | py | # 已知中序和先序, 求层次
class Node:
def __init__(self, data=None, level=None):
self.level = level
self.data = data
def dfs(root, start, end, level):
global res
if start > end:
return
i = start
while i < end and inLst[i] != postLst[root]:
i += 1
res.append(Node(postLst[ro... | [
"noreply@github.com"
] | illuca.noreply@github.com |
0ee5ee2be1b0c5ec8989c967312e8f2524af62ac | 561378ab9a6eb737c21144f085878eb825f64729 | /greet_user.py | 9821006561a8e0466287f11b7e929c026bf4bdc7 | [] | no_license | NotAKernel/python-tutorials | 75a88554ffdddfff636582f9e66b734f33404601 | ccdb37af7680cb465d73c0468d8667406f1c9f14 | refs/heads/master | 2022-05-01T19:51:35.465524 | 2022-03-22T19:51:01 | 2022-03-22T19:51:01 | 217,547,958 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 134 | py | import json
filename = 'username.json'
with open(filename) as f:
username = json.load(f)
print(f"Welcome back, {username}!") | [
"daniely101202@gmail.com"
] | daniely101202@gmail.com |
15655497ac516db270ae89bb0d564139247137be | 13b3af37a0ccdebca96fd2c21155bafda2ce6628 | /day_08_数据结构和算法/17.二叉树.py | e5c2088e0d85109563fb2507e92c5664b698c388 | [] | no_license | Ziyear/python_learn | 9b53741ea0c9bcec7dad8b02b5b19e1d13e50167 | 7658036f18b1fcc843c5c22c8e1fecbf35da15b7 | refs/heads/master | 2023-02-25T14:17:32.258230 | 2020-10-27T13:12:41 | 2020-10-27T13:12:41 | 307,701,325 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,316 | py | class Node(object):
def __init__(self, item):
self.elem = item
self.l_child = None
self.r_child = None
class Tree(object):
def __init__(self):
self.root = None
def add(self, item):
node = Node(item)
if self.root is None:
self.root = node
... | [
"superziyear@163.com"
] | superziyear@163.com |
fc615ffb8ace03586a7834e46b69674dda8d8cf9 | 7cfe89a2f27d3b89b332da77db29e18c4e6871ff | /nodes/myonode/myonode.py | 75bb307eb55e08b5275632b2e1ad811e330cb316 | [
"MIT"
] | permissive | Lebogang29/midas-nodes | e79dc8e05744069dd9cbaec665422bc908ec8136 | 9856c31b8dcb70bc536ae4ff691b8e83c514a046 | refs/heads/master | 2020-04-30T19:18:21.241192 | 2018-04-11T15:01:17 | 2018-04-11T15:01:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 777 | py | #!/usr/bin/env python3
import sys
from midas.node import BaseNode
from midas import utilities as mu
import numpy as np
import scipy.signal
class MyoNode(BaseNode):
def __init__(self, *args):
""" Initialize example node. """
super().__init__(*args)
self.metric_functions.append(self.emg_po... | [
"jtorniainen@users.noreply.github.com"
] | jtorniainen@users.noreply.github.com |
866268df2d7924f71edde6c7fa631e085cf0bc26 | b69d9081ed7a9f49cbcad1b54ea08700640255ac | /vizseq/scorers/_cider/__init__.py | 8b446a93bd21a752118910be4a5ea0900aedfbe5 | [
"MIT",
"BSD-2-Clause-Views"
] | permissive | facebookresearch/vizseq | 71187699682e91ca2ff2a72bdc37646d4024a8ba | af76987c04e1d1cb6383e5a551a1b33bcad267aa | refs/heads/main | 2023-09-03T12:19:09.642170 | 2023-07-11T13:38:50 | 2023-07-11T13:38:50 | 204,480,061 | 461 | 69 | MIT | 2023-07-11T13:38:52 | 2019-08-26T13:19:38 | Python | UTF-8 | Python | false | false | 6,786 | py | # Copyright (c) Facebook, Inc. and its affiliates.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
#
# Adapted from
# https://github.com/tylin/coco-caption/blob/master/pycocoevalcap/cider/cider_scorer.py
# (authored by Tsu... | [
"changhan@fb.com"
] | changhan@fb.com |
fb774597c841eda658b5ba09d30a2409266cd23f | 466515904625dc5e8147e14d744099587086fabb | /sessions/chatgpt_simple_top_50/58.py | fb4ecd50875d9804ebaf2029ccfc8e40856f8813 | [] | no_license | eliteGoblin/sky_ladder | 87911ee5acdd2946f8e6e5f273920fd4f7a4bfb7 | 3525106810c818c773369d34a4174ef26607e1f6 | refs/heads/master | 2023-07-09T20:29:02.982536 | 2023-07-02T23:16:52 | 2023-07-02T23:16:52 | 195,136,683 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | class Solution:
def lengthOfLastWord(self, s: str) -> int:
reverse_start = len(s) - 1
while reverse_start >= 0 and s[reverse_start] == " ":
reverse_start -= 1
reverse_last = reverse_start - 1
while reverse_last >= 0 and s[reverse_last] != " ":
reverse... | [
"elitegoblinrb@gmail.com"
] | elitegoblinrb@gmail.com |
9427b364f26b25f071c659d8aade3b03ee9fa7a4 | 0522c8da9c80dd5172dff16eecfe8ef22c01adf2 | /examples/genmasknet/convert_2_dense_prototxt_format_script.py | da7284dab0bd170c65fcb6ae5a796508c29eeff7 | [
"BSD-2-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-public-domain"
] | permissive | bwang0/caffe | 2aa328483f790681a6906726f8578511e5432e81 | 477157fcef0932c60ec1fd1fcb7bba737d32922c | refs/heads/master | 2021-01-18T20:20:37.278731 | 2015-12-21T00:29:15 | 2015-12-21T00:29:15 | 18,385,936 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,009 | py | #!/usr/bin/env python
import os, sys
#class dense_proto:
def handle_line(line, dense_str):
if line.find('#') != -1 or len(line.strip())==0:
if dense_str[-1] == "\n":
return line
else:
return "\n"+line
if line.find(':') != -1:
return line.strip()+" "
if line.find('{') != -1:
return "... | [
"ubuntu@ip-172-31-25-209.us-west-2.compute.internal"
] | ubuntu@ip-172-31-25-209.us-west-2.compute.internal |
9e429355d69a741378d511edfe2dd2e7cfa0f5f7 | f669ff5e74fe3eea7f3c41fa21520ed77d0f02dc | /AirTecFugas/MainApp/urls.py | aab96074e6621b1e54fb4e625f59f89f476784c7 | [] | no_license | codingrebelsmx/airtec-fugas | e6fbfbb1784ef415b6be0e27ff3aa4cef69920ed | 4a466281a880bd8493f0ae22378dacd4bdd602e7 | refs/heads/master | 2023-01-03T23:00:33.634880 | 2019-08-29T02:31:47 | 2019-08-29T02:31:47 | 173,841,299 | 1 | 1 | null | 2022-12-27T15:34:00 | 2019-03-05T00:02:04 | HTML | UTF-8 | Python | false | false | 5,182 | py | """
Definition of urls for AirTecFugas.
"""
from datetime import datetime
from django.conf.urls import url
from django.conf.urls import re_path
import django.contrib.auth.views
from django.conf import settings
from django.conf.urls.static import static
from MainApp.forms import BootstrapAuthenticationForm
from MainAp... | [
"mmorales.dev@outlook.com"
] | mmorales.dev@outlook.com |
7f6b8803bc3308aae9ce490220e431fa57b7f3d5 | 4007ea25754f866c51d5ce6379b2a07483909d6c | /POS/models/user_management/user.py | 8a1ca4c447470af78e38676bee6370f01d65eba7 | [] | no_license | EddyMM/lipa-less | f8c80930a40e5e0a2f94ab899cb122e2229e23fe | 37ccb071791324e39eee015fffa5e5c5b6ea0a85 | refs/heads/develop | 2022-07-08T07:39:08.516330 | 2019-07-04T15:42:19 | 2019-07-04T15:42:19 | 195,266,407 | 0 | 1 | null | 2022-06-21T22:15:35 | 2019-07-04T15:34:42 | JavaScript | UTF-8 | Python | false | false | 1,486 | py | from werkzeug.security import generate_password_hash, check_password_hash
from sqlalchemy import Column, Integer, String
from sqlalchemy.orm import relationship
from flask_login import UserMixin
from POS.models.base_model import AppDB
class User(AppDB.BaseModel, UserMixin):
"""
Represents a Lipa Less Us... | [
"mwendaeddy@gmail.com"
] | mwendaeddy@gmail.com |
e73305264df6b1aea70f4552a91dc35e2b2d9d40 | 159d2b827db0ae748b739378cab43a24e1ebaa38 | /buildtools/scons-local-3.0.0/scons-local-3.0.0/SCons/Platform/sunos.py | 3279fb9c5b725417a732aa469ae0a7a65daf1880 | [
"MIT",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | mqnc/c-sick | 2ef474f5626fcf47b5ee0793220dd7693656b488 | 65b54b21d9492fae7c7cac299f56c8e6583ef555 | refs/heads/master | 2020-03-23T15:02:03.057094 | 2019-10-18T13:51:33 | 2019-10-18T13:51:33 | 141,716,128 | 1 | 1 | BSD-3-Clause | 2019-07-24T06:30:00 | 2018-07-20T13:34:48 | Python | UTF-8 | Python | false | false | 1,919 | py | """engine.SCons.Platform.sunos
Platform-specific initialization for Sun systems.
There normally shouldn't be any need to import this module directly. It
will usually be imported through the generic SCons.Platform.Platform()
selection method.
"""
#
# Copyright (c) 2001 - 2017 The SCons Foundation
#
# Permission is h... | [
"mirko.kunze@web.de"
] | mirko.kunze@web.de |
ec4d3d0bffdf627728a027067506989b704e1f98 | d7e49412a6b09e632540d3bdb2a9d634c29e59b7 | /Data acquisition/GPS and Roughness Automation/GPSextract.py | 3ff8d69d889a97fe12da160c141f526395d54d45 | [
"MIT"
] | permissive | 326th/Roughness-measurement-respository | 0d4aaaedf03341cdd2539ffe46919359079cf754 | 85cbf8a488853aa033ef09928e438d278f04c639 | refs/heads/master | 2023-02-04T14:06:19.528885 | 2020-12-19T10:41:52 | 2020-12-19T10:41:52 | 317,432,019 | 0 | 1 | MIT | 2020-12-14T03:42:24 | 2020-12-01T05:14:16 | Python | UTF-8 | Python | false | false | 1,205 | py | from decouple import config
import time
import paho.mqtt.client as mqtt
gps = [-1,-1]
acc = 0
Grouping = input('Enter your grouping : ')
def on_message(client, userdata, message):
global gps, acc
if (str(message.topic) == "ku/daq2020/cosmic/gps"):
gps = str(message.payload.decode("utf-8"))
... | [
"minecraftskinman@gmail.com"
] | minecraftskinman@gmail.com |
6c5778dd84dff5c4b272742472fa3a23275df183 | 0a26e8bc3be5961b4d554be57eac42b94d0b342b | /user/migrations/0003_auto_20210220_1542.py | 4b82e64cc0ada3b2dced2ed783aeb8409bac4e7e | [] | no_license | firaz-bug/murugan-bhavan | f9a7ffe6b5cd4e02b86d6b6f8790f0899d776e44 | 00c85175f1a6657457feda04661e9f92f499ee9b | refs/heads/master | 2023-03-11T12:13:31.092068 | 2021-02-21T08:05:12 | 2021-02-21T08:05:12 | 340,828,528 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 459 | py | # Generated by Django 3.1.6 on 2021-02-20 10:12
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('user', '0002_auto_20210220_1521'),
]
operations = [
migrations.AlterField(
model_name='product',
name='category',
... | [
"barathjr10@gmail.com"
] | barathjr10@gmail.com |
6fdbd5b5071b2d1bf7b6d51cb3afd1714a662463 | c0caed81b5b3e1498cbca4c1627513c456908e38 | /src/python/bindings/app/pyrosetta_toolkit/window_main/IO/GUIInput.py | 5a129fd75f03c94253db0a23872b7a99486f5d71 | [
"LicenseRef-scancode-other-permissive"
] | permissive | malaifa/source | 5b34ac0a4e7777265b291fc824da8837ecc3ee84 | fc0af245885de0fb82e0a1144422796a6674aeae | refs/heads/master | 2021-01-19T22:10:22.942155 | 2017-04-19T14:13:07 | 2017-04-19T14:13:07 | 88,761,668 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 11,930 | py |
#!/usr/bin/python
# (c) Copyright Rosetta Commons Member Institutions.
# (c) This file is part of the Rosetta software suite and is made available under license.
# (c) The Rosetta software is developed by the contributing members of the Rosetta Commons.
# (c) For more information, see http://www.rosettacommons.org. Q... | [
"malaifa@yahoo.com"
] | malaifa@yahoo.com |
24d00706810b45332650e6f2373530e74e5de2fa | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03624/s778098430.py | 55d87c556857c9b5ceb9dae5cfda1de24006c1e7 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | s = input()
ans = 'None'
for i in range(26):
c = chr(ord('a') + i)
if c not in s:
ans = c
break
print(ans)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
f689900c632c2b2bf2618423d8c278b40ba91c61 | 0d96fd7418a05357e1d0afed4b6f8cbaa3557eb8 | /led_controller.py | e0d55bd0ccdaed0004b7cbd5d8f62827a94fa8c9 | [] | no_license | seanjhulse/weather | f5a1b570c42a7c587df5b42038fdeb03100e83ca | 270a1465808174deef0ce9b4df1340ab5e16eafe | refs/heads/master | 2020-04-01T18:40:16.847197 | 2018-10-17T20:05:46 | 2018-10-17T20:05:46 | 153,507,301 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,068 | py | from datetime import datetime, time
from time import sleep
from led import Led
from weather import WeatherAPI
import pigpio
import atexit
PI = pigpio.pi()
# Example usage of the PI
# PI.set_PWM_dutycycle(PIN, BRIGHTNESS)
RED = Led(17)
GREEN = Led(22)
BLUE = Led(24)
WEATHER = WeatherAPI()
def day_time():
# gets... | [
"seanjhulse@gmail.com"
] | seanjhulse@gmail.com |
e4f5872b48506b237e6efb23741506c69533bf29 | 1280f9b33a76eb63cc070984f8e0ea5834ef022e | /bot/extensions/basic.py | b5203adab48ec1a3ae5d66e8645debff733c04a9 | [
"MIT"
] | permissive | Josh1560/Questionable | 4b225415e09a59d1fda814c68cf7ad30efef5e88 | 78dacfb99d8188bfc024b0b362b4d3b3262f5903 | refs/heads/master | 2020-04-08T08:59:01.619565 | 2018-11-26T18:16:16 | 2018-11-26T18:16:16 | 159,202,134 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,324 | py | #Import standard libraries
import discord
from discord.ext import commands
#Import required libraries
from json import load
from datetime import datetime
#Import custom libraries
#Define variables
botSettings = load(open("./bot/data/botSettings.json"))
#Define functions
async def reply(message, string):
await m... | [
"44727842+Josh1560@users.noreply.github.com"
] | 44727842+Josh1560@users.noreply.github.com |
f08fa45d2f7184da8a83e99c2fa82e9f5560718c | 7456c190ac67e9bf383c645839ac210f6f87f626 | /Scattering_Analysis.py | 17b0643b6d1db264200c9e075b5f6124f10e2277 | [] | no_license | joebatley/PythonCode | 6a8b9d775577b4ba5b48a43b839576b1a861464e | de2748fdd40a0c21f7292c7188b8873f95bc759a | refs/heads/master | 2021-01-11T11:03:42.894488 | 2014-09-29T13:35:02 | 2014-09-29T13:35:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,338 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Jun 6 10:44:51 2014
@author: Joe
"""
import numpy
import pylab as plt
from scipy import interpolate
from scipy.interpolate import splrep, splev
from scipy.integrate import quad
import Stoner
from Stoner.Folders import DataFolder
import Stoner.Analysis as Analysis
import s... | [
"py07jtb@leeds.ac.uk"
] | py07jtb@leeds.ac.uk |
ffa6e799c16736dfbe01d9d94a742c9ba59f546e | ff314bd42482e3463b01087d456c8e5146b54f0f | /product/urls.py | f4672ee963d7fca3cf23361fbd3b6254ef3aa3e9 | [] | no_license | Mahmoud-Raouf/Django-Api-Task | 088ed751529f58a6b23a5738174a593beb5444d7 | a14460362d78f6193c4385e100f5ca8bce2fc321 | refs/heads/master | 2022-04-26T21:54:06.736502 | 2020-04-16T11:55:45 | 2020-04-16T11:55:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 344 | py | from django.urls import path
from . import views
# router = routers.DefaultRouter()
# router.register('', views_api.ProductView)
app_name= 'c'
urlpatterns = [
# path('api/product/', include(router.urls)),
path('', views.product_list, name='product_list'),
path('<slug:slug>', views.product_details, name... | [
"ma7mod.raouf@gmail.com"
] | ma7mod.raouf@gmail.com |
b0ff3e96617ebb3e0a27995cead9cee67d069ad0 | 9028e8bbfd9b2014ed45ed107090c12b387ef163 | /mptest1.py | 64e15704e34a9069d734bb41e18426919faccb9f | [] | no_license | shr-uti29/Tourist-Behaviour-Analysis-Using-Instagram | 5bc19d1c5cd167fe4d9dace75d2a7b52ead1cfc2 | 461f4569c15e69ab508b110a69d27a28b86937e2 | refs/heads/master | 2023-06-03T19:09:29.673643 | 2021-06-22T14:50:52 | 2021-06-22T14:50:52 | 379,306,323 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 988 | py | import requests
from bs4 import BeautifulSoup
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import time
#url of the page we want to scrape
url = "https://www.instagram.com/p/Bvll6dggSIr/?__a=1"
# initiating the webdriver. Parameter includes the path of the webdriver.
dri... | [
"shrutisawant981@gmail.com"
] | shrutisawant981@gmail.com |
09f105d86148a31f1ef1bf8d2fbfa9c2adab7354 | a702055106de58e828d7b417165f32d041e1ace2 | /Python OOP/Inheritance/multiple inheritance/project/teacher.py | e91d084f9ed49e6aef76fa9fdf70bf4fd8b0f4da | [] | no_license | DimitarGospodinov/softuni-python | 1810935d856aef183bf8a1656ce3535990145db4 | c3d0426587cfd79c8b907da872d520e41fa036cd | refs/heads/main | 2023-06-19T02:11:48.211504 | 2021-07-16T13:53:37 | 2021-07-16T13:53:37 | 350,369,546 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 938 | py | from project.employee import Employee
from project.person import Person
class Teacher(Person, Employee):
Employee.get_fired()
Person.sleep()
def teach(self):
return "teaching..."
# test person
import unittest
from project.employee import Employee
from project.person import Person
# from projec... | [
"74270518+DimitarGospodinov@users.noreply.github.com"
] | 74270518+DimitarGospodinov@users.noreply.github.com |
8e400910d6f9fdf4300089bf4d4ff16332046c1d | e6216627a80dfc2016f916c8e4e88524fc230b95 | /app.py | 86f22d97269282de828870460775899c1bb7d593 | [] | no_license | nikhilrai1607/pond_crud | 2e741d27adfc28477c1abef0de91deff54c9ea23 | 427a2f1a8784b997bf05d2a3ad47851a2d751220 | refs/heads/master | 2023-04-04T01:30:27.068594 | 2021-04-18T19:49:55 | 2021-04-18T19:49:55 | 359,234,105 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,393 | py | import os
from flask import Flask, request, jsonify
import sqlite3
import dbsqlite
#DB functions used are in dbsqlite.py
#Database setup done!!
db = dbsqlite.db
app = Flask(__name__)
@app.route('/items/<id>',methods=['GET','PUT','DELETE'])
def item_func(id):
row = dbsqlite.get_row(id)
if row == None:
... | [
"“Nikhil.rai@fireeye.com”"
] | “Nikhil.rai@fireeye.com” |
cf8a07d53af33d06af5399179b10a8f8e3555698 | d7887335e379b55b20adc6496df6c5932b2257b4 | /server/core/views.py | 0672b42d5193bd36cbc5d81fac19b7e5d6b4d9d5 | [] | no_license | uclapi/room-buddy | d5291b2193c5ef84c6206c7da113f6f7ccd74dfc | 6df3afa688e0791511bc67ee73b5f2dcbcf87534 | refs/heads/master | 2022-12-12T16:01:43.168597 | 2019-04-04T17:12:47 | 2019-04-04T17:12:47 | 115,660,948 | 0 | 1 | null | 2022-12-08T01:11:58 | 2017-12-28T21:29:39 | JavaScript | UTF-8 | Python | false | false | 2,338 | py | from django.shortcuts import redirect
from django.http import HttpResponse
import random
import string
import os
import requests
from .models import User
def generate_random_state():
return ''.join(
random.choice(string.ascii_letters + string.digits) for _ in range(50)
)
def oauth_login(request):
... | [
"wil.klopp@gmail.com"
] | wil.klopp@gmail.com |
8842615aae98673b1a93c899aac73801a79f3b4c | 27f020d0cdda7c213abc9ad029388e59f47fc113 | /program/model-experiment/experiment/norm-3cnn-rnn/model-2-dot.py | ee8a9471f0806f0b7bc2d5fe1adf4934e3ff8971 | [] | no_license | boddmg/Graduation-Project | 092b110ca3b190ab2be476004191c9a162a252f0 | 472b1d6e94a211fda6568832f1360db34538904a | refs/heads/master | 2021-01-10T14:15:18.539386 | 2017-02-28T09:31:08 | 2017-02-28T09:31:08 | 32,345,124 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14 | py | import jinja2
| [
"boddmg@gmail.com"
] | boddmg@gmail.com |
4b1dde1e5bb05eb4b48cf14740b07bb41b0e31e9 | a740dd1c7305f166fdf583195432efb183ff5ae4 | /pathdefs/pathdefs/PATHDEFS.py | 6b694edb81f491d3b93013e3714e47423481f019 | [
"MIT"
] | permissive | phifisch/flyEscapeSaccades | 2ec44fa64d97ec29d6cea5c1a8f0e60ffa664feb | 54b24d90fd41babf94314b01e11068a223dcb434 | refs/heads/main | 2023-04-15T08:39:04.024885 | 2022-08-13T12:38:29 | 2022-08-13T12:38:29 | 480,480,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py | #DATAPATH = "F:\\Caesar\\RecorderData\\"
DATAPATH = "D:\\RecorderData\\"
#SOURCEPATH = "C:\\Users\\Phil\\documents\\notebooks\\"
SOURCEPATH = "C:\\Users\\fischer\\notebooks\\"
DATAEXCHANGEPATH = 'Y:\\Data\\DatenFürPhilippe\\' | [
"noreply@github.com"
] | phifisch.noreply@github.com |
9803533659323737846d4ea744ff2a7ff8d98bde | 02508aa773dcbd9939eb879952ee2cb3dd90bcad | /torch/distributed/nn/__init__.py | b3cedcc6011169161bed18af8797397420af528b | [
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0"
] | permissive | dhivyadharshin/pytorch | d8a3b7f3c03e21e776ea34788d13743467b738c8 | 6a170011876bb8bd1909e8f60fba1270ac7a5577 | refs/heads/master | 2023-07-18T07:31:52.918955 | 2021-08-17T18:12:01 | 2021-08-17T18:12:01 | 397,330,616 | 5 | 0 | NOASSERTION | 2021-08-17T18:12:02 | 2021-08-17T16:57:16 | null | UTF-8 | Python | false | false | 84 | py | from .api.remote_module import RemoteModule
from .functional import * # noqa: F403
| [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
c6ca40559acc6f7bd531021c3deff42f85ab65fc | 5135896a6ee9b797cbfa0565fa42111e1233255e | /myweb/logic.py | a0852559064bba72112361c85dd13e08310aa729 | [] | no_license | thejadeR/jade | 68963de97df7e96bf0ec8953ae95d572a9a893b0 | afc729b6bf2835894b02dd4dacc5153bd97cf20f | refs/heads/master | 2020-04-25T22:14:48.123469 | 2019-02-28T12:31:07 | 2019-02-28T12:31:07 | 173,105,045 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 342 | py | import os
from django.conf import settings
def up_local(user,img):
filename = f'touxiang-{user.id}.jpg'
filepath = settings.MEDIA_ROOT + filename
with open(filepath,'wb',encoding='utf-8') as f1:
for item in img.chunks():
f1.write(item)
f1.flush()
return f... | [
"1056497498@qq.com"
] | 1056497498@qq.com |
f114cc7a55d5cfd56927c7da8e0c7f5d3752c94f | d7016f69993570a1c55974582cda899ff70907ec | /sdk/eventhub/azure-mgmt-eventhub/azure/mgmt/eventhub/v2015_08_01/aio/_event_hub_management_client.py | b45cc43bc478f9a8629155aa12abd9c16f8499af | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | kurtzeborn/azure-sdk-for-python | 51ca636ad26ca51bc0c9e6865332781787e6f882 | b23e71b289c71f179b9cf9b8c75b1922833a542a | refs/heads/main | 2023-03-21T14:19:50.299852 | 2023-02-15T13:30:47 | 2023-02-15T13:30:47 | 157,927,277 | 0 | 0 | MIT | 2022-07-19T08:05:23 | 2018-11-16T22:15:30 | Python | UTF-8 | Python | false | false | 5,134 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | kurtzeborn.noreply@github.com |
05ef3ed3def4fa3a9dce401fbc1e16f639f43e18 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/123/usersdata/28/25531/submittedfiles/testes.py | 09cbf99930f122c284e846161c34c4f872f93fa3 | [] | 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 | 119 | py | b = -3
a = abs(b - 0)
print (a)
#def distancia(p0, p):
# d = 0
# for i in range(0, len(a), 1):
# d = abs( | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
6920f4db4b83e7321b690fc12c44b8a4bc6e771f | b486e73b91dcce43dfe604cc18c1a6dab1520bf3 | /app/main.py | 00855cab5ed9c38f7a488e6266dbd18d5fa93143 | [] | no_license | andreas-lloyd/scoring-probability | 6eac0002aad085fc613aff63dcc6c3e463344053 | 1687dfc5cbe395f6798c63c79f7b2b3208197ad5 | refs/heads/master | 2023-02-07T22:53:27.244998 | 2020-04-12T16:34:03 | 2020-04-12T16:34:03 | 244,387,194 | 0 | 0 | null | 2023-02-02T05:14:26 | 2020-03-02T14:10:29 | Jupyter Notebook | UTF-8 | Python | false | false | 1,790 | py | from flask import Flask, jsonify, request
import pandas as pd
import datetime
import os
app = Flask(__name__)
# Get query
with open('base-query.sql', 'r') as query_file:
BASE_QUERY = query_file.read()
# Get URI
URI = os.environ.get('DB_URI')
def find_current_season():
current_time = datetime.datetime.now()
... | [
"andreas.mathew.lloyd@gmail.com"
] | andreas.mathew.lloyd@gmail.com |
957891d63cd682b98048130d0e428be4469b110e | 9170b4956ec7504c255dc561dc85bc9c8d7ef5eb | /AppTools/StimulusQueue.py | c6ba0b2d39dbe7b05053787ad38545e800ea111e | [] | no_license | neurotechcenter/BCpy2000 | c2b9eaa28d99075025dc94677150691e1ef9b11d | 9db5556f204516467515defd6a6b93991df4ffe7 | refs/heads/master | 2023-02-25T01:36:57.480387 | 2023-02-07T22:52:39 | 2023-02-07T22:52:39 | 279,960,469 | 9 | 7 | null | null | null | null | UTF-8 | Python | false | false | 2,478 | py | # -*- coding: utf-8 -*-
#
# $Id: StimulusQueue.py 3445 2011-08-08 15:46:38Z jhill $
#
# This file is part of the BCPy2000 framework, a Python framework for
# implementing modules that run on top of the BCI2000 <http://bci2000.org/>
# platform, for the purpose of realtime biosignal processing.
#
# Copyright (C... | [
"luczak@neurotechcenter.org"
] | luczak@neurotechcenter.org |
b73b9a5fa18f5955b3b7c1c96e2cc8c872c9b97c | 1eab574606dffb14a63195de994ee7c2355989b1 | /ixnetwork_restpy/testplatform/sessions/ixnetwork/globals/protocolstack/iptvglobals/igmpgrouprange/igmpgrouprange.py | ae57a679eaf427beb79281ee834097062c2960a6 | [
"MIT"
] | permissive | steiler/ixnetwork_restpy | 56b3f08726301e9938aaea26f6dcd20ebf53c806 | dd7ec0d311b74cefb1fe310d57b5c8a65d6d4ff9 | refs/heads/master | 2020-09-04T12:10:18.387184 | 2019-11-05T11:29:43 | 2019-11-05T11:29:43 | 219,728,796 | 0 | 0 | null | 2019-11-05T11:28:29 | 2019-11-05T11:28:26 | null | UTF-8 | Python | false | false | 8,422 | py | # MIT LICENSE
#
# Copyright 1997 - 2019 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, modify,... | [
"srvc_cm_packages@keysight.com"
] | srvc_cm_packages@keysight.com |
11acab88bcb3d13c9b313449d978fb25ead98a6e | fa58db1e16d38044631f8f9005621b9a0fcd3d4b | /flomosa/test/__init__.py | 50d1327393ca95a45d21f591032a5b1f15d8078c | [] | no_license | jplock/flomosa | 69f1333e571be87cb86fca4bd9b96e09eb0f23f4 | cc124136379fda80d17a36cbc9bcb21aa94736ad | refs/heads/master | 2021-01-02T22:44:19.318272 | 2013-08-11T21:38:24 | 2013-08-11T21:38:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,983 | py | #!/usr/bin/env python2.5
# -*- coding: utf8 -*-
#
# vim: tabstop=4 shiftwidth=4 softtabstop=4
#
# Copyright 2010 Flomosa, LLC
# All Rights Reserved.
#
__all__ = ['setUp', 'create_client', 'fix_path', 'setup_for_testing',
'create_test_request', 'HandlerTestBase', 'get_tasks', 'get_queues']
import base64
imp... | [
"jplock@gmail.com"
] | jplock@gmail.com |
b1af622669f6b46ec9366429e8de495c942067c1 | de30573a3134eb892261842f20e1855f84514200 | /Introduction-Python/pe3_3.py | 71fe1036d9d723db7808b12ccd7f5b57d6e45ff5 | [] | no_license | Zawadidone/learning-python | ac260f0c6a34e6dff3caf2223af059c864b9b736 | 291a58db0e93db0d0f70fd81ffc8c68f9e18e3a9 | refs/heads/master | 2021-06-24T02:25:44.079464 | 2020-10-22T18:43:51 | 2020-10-22T18:43:51 | 112,171,235 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 179 | py | uurloon = int(input("Wat verdien je per uur: "))
uur_aantal = int(input("Hoeveel uur heb je gewerkt: "))
print(f"{uur_aantal} uur werken levert {uur_aantal * uurloon} Euro op")
| [
"hi@zawadidone.nl"
] | hi@zawadidone.nl |
7b6bba51f851878eeef7ed13112b962050c468d9 | b2097119665e90e3eada1cfba6a52454779e2360 | /luminar/collections/listdemo.py | b2afe7f4b0f21e4f946b4e68c584f03a1e4f0211 | [] | no_license | kavyaachu47/luminarpython | 5f1551e33ed6a1f3a0a2c06e739ff50e0d297efa | 650479992c6321d60a9b35eab35d73acc127ac13 | refs/heads/master | 2022-12-27T23:09:52.045269 | 2020-10-13T13:36:44 | 2020-10-13T13:36:44 | 290,264,906 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 63 | py | lst=[10,20,30,40]
sum=0
for i in lst:
sum+=i
print(sum) | [
"kavyarkairali@gmail.com"
] | kavyarkairali@gmail.com |
40b186c137660a2de371c629ae7c14ddf51a9824 | 2aa1e6685df1c33fad8cbc0a9b8fd02cc3480b86 | /app_train/urls.py | c1b76d127a73b05b530b4a768e34eaf0f2bb236e | [] | no_license | vaughn808/how-bout-game | b47af096c0dbbfad3b1836287c9d81f90cb41638 | 1866aa7faf6f0753d6a43e1c0a9767286e6a0b05 | refs/heads/master | 2022-12-04T14:02:09.406880 | 2020-08-14T02:43:36 | 2020-08-14T02:43:36 | 285,889,909 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 109 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.train, name='train'),
] | [
"robertshell808@gmail.com"
] | robertshell808@gmail.com |
f9fae7fe53e6f0908b07eef93ea84412bc3e6eb0 | 60f4c0483c1c39378a1712ac428b0bd77e7ee2b5 | /python/binary_tree_preorder_traversal.py | 6d9aefac360d532c935df086490c634749f40057 | [
"MIT"
] | permissive | soumasish/leetcodely | 71037e8875b764168f5813684dfae48d2e2abf05 | f38b598a925ea1c701d44b276749b8254a44974f | refs/heads/master | 2022-06-28T20:06:16.393377 | 2022-05-25T15:38:36 | 2022-05-25T15:38:36 | 77,167,373 | 10 | 8 | MIT | 2019-07-18T04:14:18 | 2016-12-22T18:33:15 | Python | UTF-8 | Python | false | false | 480 | py | # Definition for a binary tree node.
class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution:
def preorderTraversal(self, root: TreeNode) -> List[int]:
def _helper(root, res):
if not root:
return
... | [
"sogoswami@linkedin.com"
] | sogoswami@linkedin.com |
e54ff071f98fe853abfa4d2a1d3dfda418acb12f | 55647a80c8b412af9df0ba3f50595cc2f29c25e6 | /res/scripts/common/Lib/plat-mac/Carbon/File.py | c0c25c19dcfc7e1e788e857d3bcbd6b39a4c0c21 | [] | no_license | cnsuhao/WOT-0.9.17-CT | 0035eb6070fb4fab8d8ee9f8bbc676c10d511cfb | d1f932d8cabaf8aa21708622e87f83c8d24d6451 | refs/heads/master | 2021-06-08T18:11:07.039293 | 2016-11-19T19:12:37 | 2016-11-19T19:12:37 | null | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 358 | py | # 2016.11.19 20:00:52 Střední Evropa (běžný čas)
# Embedded file name: scripts/common/Lib/plat-mac/Carbon/File.py
from _File import *
# okay decompyling c:\Users\PC\wotsources\files\originals\res\scripts\common\Lib\plat-mac\Carbon\File.pyc
# decompiled 1 files: 1 okay, 0 failed, 0 verify failed
# 2016.11.19 20:00:52 S... | [
"info@webium.sk"
] | info@webium.sk |
1d65039305809c9e9bbd657b44c8042c7622df40 | d20759c67b7d4383909649b2cb23700ad1113e9a | /Convolutional Neural Networks/Code/1d.py | 6e7f52a1492e54aa91fa593d924bd99056e201df | [] | no_license | KilbyBaron/Machine_Learning | c67789aa494e0f82d6a17c6754ed19ea585d2208 | c461c33dbb4a4ae0b8943382eef1cd24de24ab7b | refs/heads/master | 2020-08-27T13:31:43.520071 | 2019-10-24T20:34:27 | 2019-10-24T20:34:27 | 217,388,371 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,344 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import keras
from keras.datasets import cifar10
from keras.preprocessing.image import ImageDataGenerator
from keras.models import Sequential
from keras.layers import Dense, Dropout, Activation, Flatten
from keras.layers import Conv2D, MaxPooling2D
... | [
"noreply@github.com"
] | KilbyBaron.noreply@github.com |
eb078fb63f69379f7d4015e8f329e04a5d4ebfa9 | f37e8769a3f914c143cf3708f9d3cddde25ebfac | /Spider/TC/tongcheng/tongcheng/spiders/a58job.py | 5bfd493fbeb590f5cbe7c8c06ad21a6d66d84ea6 | [] | no_license | wzz134716/Python | c25a92e81742afb3bddb7592a72a499133cffbfa | be2b713386ced82aaabef7f632a934bdbbcbe83e | refs/heads/master | 2021-08-22T13:23:54.780747 | 2017-11-30T08:54:28 | 2017-11-30T08:54:28 | 112,559,378 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,122 | py | # -*- coding: utf-8 -*-
import scrapy
from scrapy.linkextractors import LinkExtractor
from scrapy.spiders import CrawlSpider, Rule
import datetime
from tongcheng.items import TongchengItem
from datetime import timedelta
from scrapy_redis.spiders import RedisCrawlSpider
import re
class A58jobSpider(RedisCrawlSpider):... | [
"wzz134716@163.com"
] | wzz134716@163.com |
b22b7d592a190397a2c0f7e21f9e440f92390b29 | 385c557289fb7f190b65411bcbc5d1e77db3e69b | /monitoring/urls.py | eb55eea59ea73c96c0cddeef1d71b751dce89c2e | [] | no_license | Desarollo-Bobadilla/Django_3 | 300b7256725785471601cf2bde8b0121a252a212 | 4861efae8acc26087721e924ebaaaf268a928a94 | refs/heads/main | 2023-07-14T12:22:37.613682 | 2021-08-27T15:35:23 | 2021-08-27T15:35:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 936 | py | """monitoring 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')
Class-ba... | [
"s.bobadilla@uniandes.edu.co"
] | s.bobadilla@uniandes.edu.co |
546b421e88c7f4c1f0a99be20c325c76eb8ec490 | 06fb6c02a9c8ca8716ca4d92da4c94ac0433be74 | /NumberDivisor.py | f3c34687aca344f281883e1d60339e2263ef5cd8 | [] | no_license | hkussie/Python-Labs-Homework-Assingments2 | 82523bfe8d4f178953c8d8635bd5901eb89a9a7f | ce14661916e9fb97c6a9f1c51e083d0134e7d81f | refs/heads/master | 2020-12-25T09:48:00.128082 | 2016-06-05T23:42:44 | 2016-06-05T23:42:44 | 60,486,347 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 307 | py | #this program asks the user to enter a number
#the program then returns all of the divisors of that number
number = int(input("Enter a number here: "))
number_range = range(1, number)
divisor_list = []
for n in number_range:
if number % n == 0:
divisor_list.append(n)
print(divisor_list)
| [
"hkussie@gmail.com"
] | hkussie@gmail.com |
0fbcf0276fec2b7ab941106b62ac58d34699132b | 6a713911f27fc0f0f661135820bee8481f0691d1 | /utils/plot_paths_3D | f7d059d567e90485b1825b019bd815986b5f9abd | [] | no_license | DanielMDouglas/field_solver | 0e78f39180a4e9dd437e285cb755ae0a226cc310 | 1125e8d4319c6a44c17c216af25c81dcb215c8fc | refs/heads/master | 2021-06-25T07:35:44.811491 | 2019-09-23T16:55:55 | 2019-09-23T16:55:55 | 169,810,667 | 0 | 0 | null | 2019-09-23T16:55:56 | 2019-02-08T23:06:06 | C++ | UTF-8 | Python | false | false | 3,238 | #!/usr/bin/python
import numpy as np
from scipy.interpolate import RegularGridInterpolator
import matplotlib.pyplot as plt
import matplotlib.patches as patches
from mpl_toolkits.mplot3d import Axes3D
import sys
def read_csv(infileName):
data = np.loadtxt(infileName, skiprows = 1, delimiter = ',')
t = data[:,0... | [
"dougl215@msu.edu"
] | dougl215@msu.edu | |
ff972a76d10d1b0ea8313ead897d50e2a7de9c4c | 052d063853edea0e6ebe62a799eb584ee789b3f1 | /Solution/asgi.py | 83a346cc7ce3aa80f104bb88bd12281321b1cebd | [] | no_license | marvelous-benji/UUID-request-api | 1e8841f7f93e618386d29d98f699c4c6f38f2c3b | 593e92b63e394f5a96f30b345d79006d11dd4e55 | refs/heads/main | 2023-05-08T13:25:19.305442 | 2021-05-29T05:56:29 | 2021-05-29T05:56:29 | 371,869,456 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | """
ASGI config for Solution project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETT... | [
"Benjiwilson7991@gmail.com"
] | Benjiwilson7991@gmail.com |
aceb8cbb82991c8816a7b90f274cf0cdfce5561b | 80112e9cd0246aa376f22f6453545c9765857bb2 | /INTRODUCTION TO PYTHON/esFecha.py | d337d32abae5c2ce9374af77bae33b591052ce3b | [] | no_license | BiancaPal/PYTHON | f7ca2998e841049d6ccfd5b53cc10b7fbbe416e9 | 25b736605226573ad501051b19275a5a0c049bfe | refs/heads/master | 2023-01-23T10:21:49.856112 | 2020-11-26T17:32:02 | 2020-11-26T17:32:02 | 288,535,159 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,002 | py | # Una fecha (d, m, a) es correcta cuando el día, si es febrero, es menor que 30 en los años
# bisiestos y menor que 29 en los no bisiestos. Los demás meses, dependen del mes, los meses
# enero, marzo, mayo, julio, agosto, octubre y diciembre, tienen 31 días; el resto, 30 Pedir
# al usuario los tres días de una fecha (d... | [
"biancapalmaria@gmail.com"
] | biancapalmaria@gmail.com |
3557b31109adb899985b0f4448e311352fa9bbff | 32be4e5ab25cdf8b31c62a542004d6ce56c3d0ea | /tools/animate.py | 6fdcf4edbedfce8bf416d5b661033f48d3242de4 | [] | no_license | divby00/solstice | c60caa857f3d65838a7cfdf3bbd3975ce12baddd | aa7144889635a039a2daf221ceab018fcdceee05 | refs/heads/master | 2021-06-21T04:38:24.350022 | 2021-01-09T18:12:26 | 2021-01-09T18:12:26 | 18,721,362 | 10 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,127 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# title :animate.py
# description :Animates some bitmaps. Useful when making some animations for a videogame and want to test them.
# author :divby0
# date :20140802
# version :0.1
# usage :
# M ... | [
"divisionby0x00@gmail.com"
] | divisionby0x00@gmail.com |
d8c36b3a502f3f7a30a5848fa0137a43830dbd0b | 3cae0ec86e7834a05f7f41f416f795591258d3aa | /hr_payroll_extend/__init__.py | 86532a61ee5f1cff85ae545615fe97c0a802691a | [] | no_license | tanveer0517/nf_staging | 0b849741687ee70f35bcfb08e96972be4cdc6bc0 | 727f896935d3c80fd57c32fabf51c54469f91489 | refs/heads/master | 2020-03-27T11:11:13.803370 | 2018-08-28T15:51:04 | 2018-08-28T15:51:04 | 146,470,783 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 32 | py | import hr_payroll
import report
| [
"tanveer.asghar@nowfloats.com"
] | tanveer.asghar@nowfloats.com |
6beabd4dfc061ba466735457e8a49fba91bce9ad | 10a01e921d5fa7f85924011841383bde0cd015e8 | /task4.py | acc9de7348d350745effd4e661926d4244a45228 | [] | no_license | BalzPit/Information-Security-Lab-Team-Chicago | 26b08fd1949544532966c9efb918507b959cde7e | 6b04c76f6e4d04b87aa1d25781a0cc76f3322b54 | refs/heads/main | 2023-01-08T06:33:44.488956 | 2020-11-05T17:52:21 | 2020-11-05T17:52:21 | 308,902,295 | 0 | 1 | null | 2020-11-06T19:00:39 | 2020-10-31T14:40:55 | Python | UTF-8 | Python | false | false | 539 | py | import numpy
def inverse_matrix(mtx):
numpy.linalg.inv(mtx)
return mtx
def find_key(x, u, A, B):
invA = inverse_matrix(A)
k = invA * (x + (B * u))
return k
def main():
plain1 = "{0:032b}".format(0x08D17555)
cipher1 = "{0:032b}".format(0x22C74406)
A = numpy.loadtxt('linear_key_output.... | [
"73738800+FrancescoMarchiori@users.noreply.github.com"
] | 73738800+FrancescoMarchiori@users.noreply.github.com |
eeaa2f3c9c10fefe4d5340eeb3a4d4d8ce37a043 | 8aac09ce06a0515f8438d3dccff27443c6ff7143 | /save_restore_layout/action_save_restore_layout.py | dad9d0a8ff8ce2122b9b910465146ecf5b3b0630 | [] | no_license | lumostor/Kicad_action_plugins | da9ee8b914d419fbe41931a60107ef55c8d5a72b | 5c559b2dc219a3384b770b6c62f375a68dbda5e5 | refs/heads/master | 2020-08-06T09:39:54.955185 | 2019-09-19T19:53:34 | 2019-09-19T19:53:34 | 212,927,827 | 0 | 0 | null | 2019-10-05T01:29:49 | 2019-10-05T01:29:49 | null | UTF-8 | Python | false | false | 13,049 | py | # -*- coding: utf-8 -*-
# action_save_restore_layout.py
#
# Copyright (C) 2019 Mitja Nemec
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your o... | [
"mitja.nemec@fe.uni-lj.si"
] | mitja.nemec@fe.uni-lj.si |
796ab06892c97d5436ecff7b9232792d22646d92 | e6dab5aa1754ff13755a1f74a28a201681ab7e1c | /.parts/lib/django-1.4/tests/modeltests/empty/models.py | a2bbbad12f05aa2f32123e6f738a7f5a884c9e63 | [] | no_license | ronkagan/Euler_1 | 67679203a9510147320f7c6513eefd391630703e | 022633cc298475c4f3fd0c6e2bde4f4728713995 | refs/heads/master | 2021-01-06T20:45:52.901025 | 2014-09-06T22:34:16 | 2014-09-06T22:34:16 | 23,744,842 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 98 | py | /home/action/.parts/packages/googleappengine/1.9.4/lib/django-1.4/tests/modeltests/empty/models.py | [
"ron.y.kagan@gmail.com"
] | ron.y.kagan@gmail.com |
545c1f503de58b66560fc6c8bfd3175b6e07d63a | 4497cedd4c4780cccf25aaabbea8768d2e75b222 | /shoppingcart/models/migrations/0002_auto_20190828_1013.py | 0c266d69c773d4834ce2906734ef60abfe4a7574 | [] | no_license | amulyasharma27797/ShoppingCart | 2f5d6fc2c0e3ea15ee78f3fc9dacc27d201fcc03 | 96bd7f4937c0844cd5a8c1ab53f6ecbf4178fdb3 | refs/heads/master | 2022-12-05T15:23:18.219874 | 2019-09-17T07:08:37 | 2019-09-17T07:08:37 | 208,722,626 | 0 | 0 | null | 2022-11-22T04:14:58 | 2019-09-16T06:08:00 | CSS | UTF-8 | Python | false | false | 10,252 | py | # Generated by Django 2.2.4 on 2019-08-27 14:01
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('models', '0001_initial'),
]
def add_buyer_seller(self, schema_editor):
customer_model = self.get_model('models', 'Customers')
customer_model.... | [
"amulya.sharma@tothenew.com"
] | amulya.sharma@tothenew.com |
b2399aff3192ee79350f994920934d0010c5d928 | 138e5e4d9f694de1db842c768a64c8a4ed7bc3d9 | /trunk/src/tags/manager.py | 2ecb1ab0ea4549bb621787cbe952929fb0a14236 | [] | no_license | tobyS/pagger | a0b143e9d871036ad51f662e75f74e74edee36ff | c8b84a0b6dd952c54e54c002c39ed2c2aa3aab00 | refs/heads/master | 2020-05-18T20:59:29.462458 | 2010-02-21T17:46:02 | 2010-03-03T10:48:34 | 484,465 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,388 | py | import lastfm.service
import lastfm.artist
import lastfm.track
import re
class Manager:
_providers = []
_config = None
_raw_tags = set()
_tag_mapping = {}
def __init__(self, config, providers):
self._providers = providers
self._config = config
self._raw_tags = set()
... | [
"tobias@schlitt.info"
] | tobias@schlitt.info |
9705f2136ba1c34427300c55a6a2c095b5b63493 | efb9ccbd2b9c48d9308addbbee6b945e5064b2c5 | /expense_api/authentication.py | 2ba5f2363c2bdf0224d7bbe7e797162542f3d249 | [] | no_license | buthlezi/expense_app | e2467edaea1ca92cf5d2c1ab977619dba45fd118 | 09a165021b50f07eced5795b0054549b9d7a3788 | refs/heads/main | 2023-08-29T03:42:50.197803 | 2021-10-12T09:10:51 | 2021-10-12T09:10:51 | 406,871,965 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,056 | py | import datetime
import jwt
from django.conf import settings
from django.contrib.auth.models import User
from rest_framework import exceptions
from rest_framework.authentication import BaseAuthentication
from rest_framework.generics import get_object_or_404
def generate_access_token(user):
payload = {
"us... | [
"buthlezi03@yahoo.com"
] | buthlezi03@yahoo.com |
ddcfb84625fbf00abc35ea2d697ae18e14dca3fa | b9d648a7cb56412f367492f93bb9acd27ab53e84 | /baralho_renzo.py | 0cd602729055a5e63d8d39cf19c97486e0b24d49 | [
"MIT"
] | permissive | maribedran/oopy | 0d9a34ab820f427f0b6738fa49e434d780e7bf27 | 3f0629afee10f60f214cff04d07a27daa2fc8208 | refs/heads/master | 2020-12-26T13:02:16.938449 | 2016-04-17T15:40:54 | 2016-04-17T15:40:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 783 | py | from collections import namedtuple
from itertools import chain, product
from random import shuffle
Carta = namedtuple('Carta', 'valor naipe')
class Baralho():
def __init__(self):
valores = chain((str(i) for i in range(2, 11)), 'JQKA')
naipes = '♣♡♠♢'
self.cartas = [Carta(valor, naipe) for... | [
"renzon@gmail.com"
] | renzon@gmail.com |
06c294ca7461cca695856d6cf40a75414415ae98 | 1420167e3e6befc92dfee07b18182584dbbe4717 | /euler-164.py | 001545b917e20e771ba67494dfb6f10b285a6089 | [
"MIT"
] | permissive | simonolander/euler | 4a9cbd5fed870b5959538c520d6cc777f27a5061 | 4d7c4cd9333201cd0065419a511f111b6d75d90c | refs/heads/master | 2021-01-23T04:19:56.935035 | 2017-12-01T20:18:33 | 2017-12-01T20:18:33 | 86,185,924 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,829 | py | from numpy import ndindex
def count_numbers(remaining_digits, digits=[], memo={}):
current_sum = sum(digits)
assert current_sum < 10
if (remaining_digits, current_sum) in memo:
return memo[remaining_digits, current_sum]
ans = 0
if remaining_digits is 0:
ans = 1
else:
... | [
"simon.olander@r2m.se"
] | simon.olander@r2m.se |
35c6ee182eaaf4087a920f6e98b3a0eb59b8e9b3 | 2f26706b35f884a40826576e2320242504998d1e | /products/migrations/0002_auto_20200420_2235.py | 048e947c0e71038911cce85a4f26f972dda92a9d | [] | no_license | popeil97/TakeTwo | 088187f113ef1ead884a6b85a78160219bd12289 | b446d84fae48af7aef0e8e56ce0f60e39d23c80c | refs/heads/master | 2021-03-15T16:18:27.792613 | 2020-04-24T17:03:20 | 2020-04-24T17:03:20 | 246,864,157 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | # Generated by Django 2.0.7 on 2020-04-21 02:35
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('products', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='product',
name='description',
... | [
"alexpopeil23@gmail.com"
] | alexpopeil23@gmail.com |
8b75a4020b2433cea53264c25b0202df2a196724 | a7b07738f0743d381f77bfc0f98e7fedd9e0bb3a | /New folder/hs.py | c78ca08642878096b5cd44d7efdfc50852558235 | [] | no_license | VinayakBagaria/Python-Programming | 50d5e16d9bff93b0f6ef53801452be50da4b4f15 | 110158ef4b9a7494f8b4424bd58da3cb830db295 | refs/heads/master | 2021-01-18T17:51:01.118331 | 2017-06-18T09:03:37 | 2017-06-18T09:03:37 | 84,357,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,414 | py | import time
import random
import pygame
pygame.init()
display_width = 800
display_height = 600
gameDisplay = pygame.display.set_mode((display_width, display_height))
pygame.display.set_caption('3d')
white = (255, 255, 255)
black = (0, 0, 0)
red = (200, 0, 0)
light_red = (255, 0, 0)
yellow = (2... | [
"workvinayak95@gmail.com"
] | workvinayak95@gmail.com |
ad5c1f1d0da5c2ab9c6aa17af2cabe6d384603de | acbfd7bafc1cdb851e8bf86d55b519d27c74eccd | /movie_app2.py | e192ae56b41b6dafea90a7888c247312b5f4a96e | [] | no_license | matthcol/python-20200504 | 1bc3dfcc8d4f9e171e4a390818da8607306184f9 | f6a0b18c8f0c459dcae34a4001f44d44c9f64843 | refs/heads/master | 2022-06-27T16:22:30.692022 | 2020-05-06T15:21:52 | 2020-05-06T15:21:52 | 261,099,228 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 162 | py | # -*- coding: utf-8 -*-
"""
Created on Wed May 6 16:01:03 2020
@author: Matthias
"""
import cinema as mv
m = mv.Movie('Dr No',1962, 'Terence Young')
print(m)
| [
"matthias.colin@gmail.com"
] | matthias.colin@gmail.com |
c08fc9bc8e972cbe372e8aee28126cc0f1d6b62f | de645aaf06af4cc87e10e599434a306555e055d6 | /src/fbk/policy/browser/formation.py | 12019cd722dc18c5f6e0b664b6f2c967b24525ac | [] | no_license | affinitic/fbk.policy | 205c6bc34e5ff1a7940eaacf0fa8a96015cfaa69 | 8d3d9a9b4b367d2afc063b5cac1fe318148161ae | refs/heads/master | 2016-09-15T21:18:15.113156 | 2016-03-15T20:23:56 | 2016-03-15T20:23:56 | 39,332,229 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 747 | py | # -*- coding: utf-8 -*-
"""
fbk.policy
----------
Created by mpeeters
:copyright: (c) 2015 by Affinitic SPRL
:license: GPL, see LICENCE.txt for more details.
"""
from fbk.policy.browser.base import DefaultFieldsView
from fbk.policy.content.formationcenterfolder import IFormationCenterFolder
class FormationView(Defa... | [
"martin.peeters@affinitic.be"
] | martin.peeters@affinitic.be |
e7aae788a219914f640a59304737a985d2fbad7d | 81a51dfed43ff02abce9819582f7949e05671511 | /examples/tabs.py | e9eeee0d877e49e0c2a6129936639e58601a2a98 | [] | no_license | DaniilAnichin/easy_week | 8ba45276eb782450376f029e500c65d807e89003 | 650b8450e1c1da7311dab570762c408870400f29 | refs/heads/master | 2021-01-17T17:52:15.223882 | 2016-06-21T09:45:38 | 2016-06-21T09:45:38 | 57,955,286 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 945 | py | '''
TabbedPanel
============
Test of the widget TabbedPanel.
'''
from kivy.app import App
from kivy.uix.tabbedpanel import TabbedPanel
from kivy.lang import Builder
Builder.load_string("""
<Test>:
size_hint: 1, 1
pos_hint: {'center_x': .5, 'center_y': .5}
do_default_tab: False
TabbedPanelItem:
... | [
"anichindaniil@gmail.com"
] | anichindaniil@gmail.com |
6a24ee0acfd7a5e70f4e6b359e81a3a6662bbc34 | d6be053915c065fe6da71afddd28429d144fee68 | /streamlit_tutorial/main_concepts/app_02_st-write.py | b0292b32740b780363ad49a71892cadeb280fa04 | [] | no_license | DrShushen/practice_py | 61bc28f52783f8304cce1d834def4934ba6ee8e1 | cf40ec43ccd73aa835c4e65e6a4b41408b90a3ea | refs/heads/master | 2023-01-08T06:57:10.852157 | 2023-01-03T22:58:11 | 2023-01-03T22:58:11 | 211,668,464 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | import streamlit as st
import pandas as pd
st.write("Here's our first attempt at using data to create a table:")
st.write(pd.DataFrame({"first column": [1, 2, 3, 4], "second column": [10, 20, 30, 40]}))
| [
"e.s.saveliev@gmail.com"
] | e.s.saveliev@gmail.com |
1905be51f9c00ebc3b098c76678348ffeb71035e | b7888fb921abeb2ad44ce6409bf62ecef77a458e | /src/djanban/apps/members/migrations/0019_remove_member_spent_time_factor.py | 2ab10ee0796f693207d2b06d3d54d558aeeb0a74 | [
"MIT"
] | permissive | my-favorite-repositories/djanban | 303ce59f821d01f727536068b83f8e8485b7d649 | 6451688d49cf235d03c604b19a6a8480b33eed87 | refs/heads/master | 2021-03-01T14:23:19.745085 | 2018-05-15T17:12:01 | 2018-05-15T17:12:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 402 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2017-02-24 23:58
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('members', '0018_auto_20170225_0040'),
]
operations = [
migrations.RemoveField(
... | [
"diegojromerolopez@gmail.com"
] | diegojromerolopez@gmail.com |
5d7181651f33d6d9ec1fee1c68442ff2a94ecbe3 | 2c7b73eec72ebad23302cc0b18f6be8b2a493184 | /code/mad_lib.py | 1966fd63ed722636cf4fceae83e3d7135aabc458 | [] | no_license | wangxiaoyangwz/python_game | f6472c3a93567c38167c9a157bd5313054de7e2a | 44f36d9e5d74bd687d8b8bbe9fc612aee600d91f | refs/heads/master | 2021-01-21T18:24:44.620641 | 2017-05-24T07:20:51 | 2017-05-24T07:20:51 | 92,043,473 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,033 | py | print("MAD LIB GAME")
print("Enter answers to the following prompts\n")
guy=input("name of a famous man:")
girl=input("Name of a famous woman:")
food=input("Your favorite food (plural):")
ship=input("Name of a space ship:")
job=input("Name of a profession (plural):")
planet=input("Name of a planet:")
drink=input("Your... | [
"1161652587@qq.com"
] | 1161652587@qq.com |
cd5c850731be449ad2ef5c6e65eca0f57007320f | d4f1bd5e52fe8d85d3d0263ede936928d5811bff | /Python/Problem Solving/BOJ/boj2743.py | 88dc5176dd1699438bbf486e4a340f3bfb6c415e | [] | no_license | ambosing/PlayGround | 37f7d071c4402599995a50cac1e7f1a85c6d10dd | 0d5262dbb2fa2128ecb3fd969244fa647b104928 | refs/heads/master | 2023-04-08T04:53:31.747838 | 2023-03-23T06:32:47 | 2023-03-23T06:32:47 | 143,112,370 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 62 | py | s = input()
len_s = 0
for i in s:
len_s += 1
print(len_s)
| [
"ambosing_@naver.com"
] | ambosing_@naver.com |
aead4945227d2a07ef24b982cf339e47b20a0957 | 39531de015dce1400ced99902eb9e071a6d692a2 | /lab4/text_recognizer/models/character_model.py | cd659d2a3f908d3592c084861931afd91e86e1fc | [
"MIT"
] | permissive | sanzgiri/fsdl-text-recognizer-project | 0578d73dee4a756d4524b9e2c7519ce7b3c67803 | 1bf7b8655f36149e3c1fcd7726be120d6b0e7b63 | refs/heads/master | 2020-04-01T07:43:18.286863 | 2018-10-14T17:46:39 | 2018-10-14T17:46:39 | 153,001,075 | 1 | 0 | MIT | 2018-10-14T17:38:17 | 2018-10-14T17:38:17 | null | UTF-8 | Python | false | false | 1,386 | py | import pathlib
from typing import Callable, Dict, Tuple
from boltons.cacheutils import cachedproperty
import numpy as np
import tensorflow
from tensorflow.keras.models import load_model
from text_recognizer.models.base import Model
from text_recognizer.datasets.emnist import EmnistDataset
from text_recognizer.network... | [
"arjun810@gmail.com"
] | arjun810@gmail.com |
7dbd1f4771869bfe76722db35e93669aab8e2148 | d9bd0e16d33f0b09fcee7ab4576db911cca162fa | /pyglet_stuff/hello_triangle.py | 06a022e00f0d1d0aaf3fe4aaecb38cc92db26736 | [] | no_license | kayak0806/pretty-pictures | ce87e3368820731dc99ee2f1085ba22de335eac4 | b8a569805854e3d355a0c16305606f157d831368 | refs/heads/master | 2021-01-10T19:25:18.094159 | 2012-12-13T08:35:43 | 2012-12-13T08:35:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 524 | py | import pyglet
window = pyglet.window.Window()
@window.event
def on_draw():
window.clear()
#pyglet.graphics.draw_indexed(4, pyglet.gl.GL_TRIANGLES,
#[0, 1, 2, 0, 2, 3],
#('v2i', (100, 100,
# 150, 100,
# 150, 150,
# 100, 150))
pyglet.graphics.draw_indexed(3, pygle... | [
"erichtappan@gmail.com"
] | erichtappan@gmail.com |
dd00f1a968cd443dd09335ee34adfb665276f6b5 | cd2c10c9ea676525c69ff38ffe2ab6e59c089320 | /strange_adv/strange_adv.py | 9c6ad8029bdcd6bd85ffd2f0901feb43edf70268 | [] | no_license | yhoazk/hckrnk | f4742bd847b676b87838499c6119b7b6a17dad9c | 144c2df692b49c48701d47ef1bc2c79f1f3b95e1 | refs/heads/master | 2023-04-15T00:43:22.100154 | 2023-03-29T16:48:54 | 2023-03-29T16:48:54 | 73,496,584 | 0 | 0 | null | 2018-05-28T08:48:34 | 2016-11-11T17:14:06 | C | UTF-8 | Python | false | false | 315 | py | #!/usr/bin/python
import math
users_like = 0
n = 0 # days
i = 0 # curr_day
def calc_users_like_adv(users):
global n
global i
global users_like
if i <= n:
i += 1
k = math.floor(users/2)
users_like += k
calc_users_like_adv(k)
else:
return
| [
"noreply@github.com"
] | yhoazk.noreply@github.com |
a3d75e6b7e51275e7daada3683be3f15c159c33c | 77d33c699df9d2ace033c0462a7c37970600b301 | /app/api/database/close_task.py | 48bca43de952f8db2faba02b87894d61bb6b809f | [] | no_license | LifeLaboratory/CFT_2017 | 5e160b5ccc01535e77908cb67b734f84a9965f5d | 6b511c84e56bc8e3b6c6423d540b88c080180b3e | refs/heads/master | 2020-04-18T01:08:20.568942 | 2019-01-23T03:04:21 | 2019-01-23T03:04:21 | 167,107,222 | 0 | 0 | null | 2019-01-23T03:04:24 | 2019-01-23T03:02:25 | Python | UTF-8 | Python | false | false | 670 | py | import uuid
#for other os
from app.api.database.connect_db import connect_db
#for linux
"""
import sys
import os
#directory_user_cabinet = os.getcwd()
directory_user_cabinet="/home/raldenprog/CFT/the_best_service/hackaton_cft/app/api/database"
sys.path.insert(0, directory_user_cabinet)
from connect_db import connect_... | [
"antonion2011@yandex.ru"
] | antonion2011@yandex.ru |
0636b2f05a3d5f1a7af763f264033a5d87c58a42 | 596ae66458321f86d7000ac24803e9d90deb764b | /python/sparktk/frame/ops/covariance.py | 55895bd60714873c5839fc032fba72b9766d025d | [
"Apache-2.0"
] | permissive | tlisonbee/spark-tk | 162be1aed9adf7eff45af9f239c2df1d50cb53f2 | cbebbe0efc96f8631c428fad5ad83ca76e3629bf | refs/heads/master | 2021-01-24T23:50:23.730034 | 2016-05-19T23:48:26 | 2016-05-19T23:48:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,444 | py |
def covariance(self, column_a, column_b):
"""
Calculate covariance for exactly two columns.
:param column_a: The name of the column from which to compute the covariance.
:param column_b: The name of the column from which to compute the covariance.
:return: Covariance of the two columns.
Notes... | [
"briton.barker@intel.com"
] | briton.barker@intel.com |
c7679a1b5b427cea9a619ea9bc4586d2deb1286e | 807eaaca14219368a58e6d064207e316507fb5f1 | /producthunt/urls.py | ed7e37056a19aff887148ef3b9f39f99cfbbd661 | [] | no_license | alexnicolescu/Product-Hunt | 7e08169b4acf9d6542b94e4927d7dfb9ba74c28e | cedcb7fd04ebe7060114cc3d3dc81a13c6714675 | refs/heads/master | 2022-11-19T15:58:20.325057 | 2020-07-20T13:17:56 | 2020-07-20T13:17:56 | 264,864,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 430 | py | from django.contrib import admin
from django.urls import path, include
from products import views
from django.conf import settings
from django.conf.urls.static import static
urlpatterns = [
path('admin/', admin.site.urls),
path('',views.home, name="home"),
path('accounts/', include('accounts.urls')),
p... | [
"nicolescualexandru12@gmail.com"
] | nicolescualexandru12@gmail.com |
e719eb80d4457db6ea99dc3821c5929866765f80 | e311664619d469addd2c77566ec97d24affcbfd9 | /src/apps/sistema/admin.py | e984d54edcb131f638648697eb5a1205922b2c8b | [] | no_license | danielhuamani/Proyecto-taller-base-datos | 361dc8c915dff36a9ce96a7147c11f0af9d51227 | 5d791383f77f8042a2890db4cfd31079c6d1dc7b | refs/heads/master | 2016-08-11T13:47:03.169317 | 2015-12-22T04:28:52 | 2015-12-22T04:28:52 | 46,673,349 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 193 | py | # -*- coding: utf-8 -*-
from django.contrib import admin
from .models import Usuario
@admin.register(Usuario)
class UsuarioAdmin(admin.ModelAdmin):
list_display = ('email', 'password')
| [
"danielhuamani15@gmail.com"
] | danielhuamani15@gmail.com |
4abb0b3416a912f00495bdac12ea344e0e5c4234 | 6490638f15a2dfbe0cec9725186f9784d57c92f0 | /UnitTest/testSEGMENT.py | b39851c1efe3ad9480414b8fea7c6e6a7eb3a621 | [
"MIT"
] | permissive | khawatkom/SpacePyLibrary | af9c490ef796b9d37a13298c41df1fb5bf6b3cee | c94415e9d85519f345fc56938198ac2537c0c6d0 | refs/heads/master | 2020-05-14T21:52:39.388979 | 2019-04-17T17:06:04 | 2019-04-17T17:06:04 | 181,970,668 | 1 | 0 | null | 2019-04-17T21:26:44 | 2019-04-17T21:26:44 | null | UTF-8 | Python | false | false | 2,419 | py | #!/usr/bin/env python3
#******************************************************************************
# (C) 2018, Stefan Korner, Austria *
# *
# The Space Python Library is free software; you can redi... | [
"korner-hajek@gmx.at"
] | korner-hajek@gmx.at |
8d5cad17a50047aef05455d796cad519125323af | f2b27d112bb2ae29062fb3105895160e36b01ca0 | /comment15.py | 5170df469632345639becd6814a365e5bbcd1f04 | [
"MIT"
] | permissive | renxinqiang/NLTK_EMOTION | 84d95b82b49e24cdf258656694b679d636f1ed49 | f7935c11c97bba0e447f3c9430e5889d993b8907 | refs/heads/master | 2020-03-19T01:04:19.135843 | 2018-09-20T06:14:05 | 2018-09-20T06:14:05 | 135,520,246 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,157,155 | py | ci = '音箱','二手','耳机',\
'音箱','二手','耳机',\
'音箱','二手','耳机',\
'音箱','二手','耳机',\
'音箱','二手','耳机',\
'音箱','二手','耳机',\
'音箱','二手','耳机',\
'音箱','二手','耳机',\
'痛点','干什么','解决','实际',\
'到处','科技','各种',\
'浴室','直播',\
'网购','大部分','需求',\
'逛街','根本','时间',\
'渐多','玩家','间距','越发','激烈','竞争',\
'显示器','商用','民用',\
'投影','光源','催化剂','激光','核心','方案',\
'渐多','玩家'... | [
"rxqphper@163.com"
] | rxqphper@163.com |
d68228b4a1920fc03d6e4df4d3ea7ecfb3784cf1 | b7f3d206f25221770fd707209f4343886e9639a9 | /egs/aishell/local/split_and_norm.py | a062290e5f1638c65c072c64cf9f285598ca0adc | [
"MIT"
] | permissive | ZhengkunTian/OpenTransformer | cfd4a9b41ae99d7246f202c8a565568a75261d00 | 802750a2bba2b5db5a61869a0819bce977bcd7d8 | refs/heads/master | 2022-07-26T19:40:11.824668 | 2022-07-21T01:25:09 | 2022-07-21T01:25:09 | 226,343,764 | 385 | 81 | MIT | 2021-11-08T04:27:05 | 2019-12-06T14:12:00 | Python | UTF-8 | Python | false | false | 877 | py | import sys
text_in = sys.argv[1]
text_out = sys.argv[2]
def text_norm(seq):
new_seq = ''
for s in seq:
inside_code = ord(s)
if inside_code == 12288: # 全角空格直接转换
inside_code = 32
elif (inside_code >= 65281 and inside_code <= 65374): # 全角字符(除空格)根据关系转化
inside_code... | [
"zhengkuncasia@outlook.com"
] | zhengkuncasia@outlook.com |
a0e662b5a197effe20dfc290873dc815ae386c01 | 828ff5de3934fca2db547126dafc9caa3c50c24a | /AlexNet/draw_plot.py | 14c938d5f54f001aa414eb35bfc38b915ded2309 | [] | no_license | YeYaJi/Classification_Net | c6389f2334355717c782c8131319b18372b480b8 | b412e9a765e3e156b06ee4809d3b08968228fe5c | refs/heads/master | 2023-03-30T17:27:46.311572 | 2021-03-26T08:57:53 | 2021-03-26T08:57:53 | 290,160,722 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 640 | py | import matplotlib.pylab as plt
import numpy as np
epoch_correct_rate = []
epoch_loss_rate = []
epoch = 200
with open('./train_epoch_correct_rate', "r") as f:
while len(epoch_correct_rate) < epoch:
data = float(f.readline())
epoch_correct_rate.append(data)
plt.title("train_epoch_correct_rate")
plt.... | [
"704494891@qq.com"
] | 704494891@qq.com |
a00f599a92a90e6e612cf81e3883e687f241730e | 26eae19f61b3e9f9e3a9762b91eebe5b2b7d2466 | /rosidl_typesupport_protobuf_cpp/bin/rosidl_typesupport_protobuf_cpp | c8f50a5ea3def8f9056d55cf55eecf5b9f133a90 | [
"Apache-2.0"
] | permissive | t0ny-peng/rosidl_typesupport_protobuf | 12080bea67a2b1113fbd29dd2402123b42f348ac | 41c0b20c7087e642a35b2f0d6ec6902e9c89c75f | refs/heads/master | 2023-08-24T21:45:15.292507 | 2021-10-13T06:27:07 | 2021-10-13T06:27:07 | 409,812,852 | 0 | 0 | Apache-2.0 | 2021-09-24T02:58:02 | 2021-09-24T02:58:02 | null | UTF-8 | Python | false | false | 1,695 | #!/usr/bin/env python3
# ================================= Apache 2.0 =================================
#
# Copyright (C) 2021 Continental
#
# 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
#
#... | [
"13668697+brakmic-aleksandar@users.noreply.github.com"
] | 13668697+brakmic-aleksandar@users.noreply.github.com | |
706418248d2b6c25981b3d2197b0838bed81d752 | 15ed3ab4510677e6df9b11af8fd7a36fc6d826fc | /rado/2014-10/mc2/nice-res-2014-10-29/mc2.py | 3188ce25fe60f46da2959be84ae326f91d4945c8 | [] | no_license | pe-ge/Computational-analysis-of-memory-capacity-in-echo-state-networks | 929347575538de7015190d35a7c2f5f0606235f2 | 85873d8847fb2876cc8a6a2073c2d1779ea1b20b | refs/heads/master | 2020-04-02T08:08:38.595974 | 2018-01-17T08:12:26 | 2018-01-17T08:12:26 | 61,425,490 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,473 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
mc2.py
Created 17.10.2014
Based on mc.py
Goal: Measuring Memory Capacity for random matrices
"""
from numpy import *
import matplotlib.pyplot as plt
p = 1 # one input node
q = 100 # 100 reservoir nodes
r = 200 # 200 output nodes
params = {
'MEMORY_MAX': 200,
'I... | [
"gergelp@gmail.com"
] | gergelp@gmail.com |
91761208be7762e59f51229db542c1e82bc17c58 | a74f6ebc35a41a1f713a223b0b01e984f23530a9 | /untitled/venv/py2/socket/server.py | 39fbc97475a197e28b61b1935e896f34ebb299e5 | [] | no_license | Zyj870534948/PycharmProjects | edf65bbcce074c2ffa9e6cf850dfb8ab0308cf82 | 9a1674e55ee32552cbd862fd0abc6e95bd0a5052 | refs/heads/master | 2020-04-24T13:58:10.267200 | 2019-06-13T07:02:53 | 2019-06-13T07:02:53 | 172,005,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 573 | py | # coding=utf-8
__author__ = '药师Aric'
'''
server端
长连接,短连接,心跳
'''
import socket
BUF_SIZE = 1024
host = '192.168.3.5'
port = 8083
server = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
server.bind((host, port))
server.listen(1) # 接收的连接数
client, address = server.accept() # 因为设置了接收连接数为1,所以不需要放在循环中接收
while True: # 循... | [
"zyj870534948@gmail.com"
] | zyj870534948@gmail.com |
363f6f0386aa324f05c3bdfd4bdae85bfb923fc4 | 48cd4207015d19e6c45c795949fd777cb4a2c1b4 | /seller.py | 6bf54d0625b44ee42bc3e483996d05c1dc96b3d3 | [] | no_license | ThatsRichApps/malgus | faf1d02a9997ce85aba981a99cd0dd84dbb4f949 | 96db5175ce8def5210bb0696a3d442ac14dee58f | refs/heads/master | 2020-09-04T19:00:16.237371 | 2019-11-26T18:03:40 | 2019-11-26T18:03:40 | 219,859,176 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,003 | py | '''
Created on Sep 11, 2019
@author: rjhumphrey
'''
import config_reader
import cbpro
import time
from datetime import datetime
from action import Action
#from position import Position
class Seller(Action):
'''
classdocs
'''
def __init__(self, data, position, log, tolerance = 0.5):... | [
"noreply@github.com"
] | ThatsRichApps.noreply@github.com |
6b50d9b67501295af3fe765df9e28a07ae4baea1 | 0a95fb75fae7cd7ae0e6ab70f921f40e044b935e | /De_NURD/read_circu.py | 9a6602aad38aa0f24df0231a2fd528eaf3d6eb4c | [] | no_license | liaoguiqiu/De-NURD | 0d9b37028b2911d09434241f03429c5df3e5039b | 926d6e23aedbe84e312e65c1f91a2670707af034 | refs/heads/master | 2022-05-24T03:05:35.368071 | 2022-05-23T14:16:12 | 2022-05-23T14:16:12 | 221,728,359 | 1 | 0 | null | 2021-02-18T15:48:48 | 2019-11-14T15:24:58 | Python | UTF-8 | Python | false | false | 8,027 | py | #operatedir_pic = "../initialbackground/"
#operatedir_video = "D:/PhD/trying/OCT/P-ID_Name_25092019160318VIDEO.avi"
#operatedir_video = "../../OCT/P-ID_Name_25092019160318VIDEO.avi"
#operatedir_video = "../../OCT/P-ID_Name_25092019161813-7500rpm-G1_0.05_4_25_extracted.avi"
#E:\PhD\trying\OCT\OCT aligment
#oper... | [
"156798895@qq.com"
] | 156798895@qq.com |
7e3a908b15a1ae21c5a415ad9a3bd556966e7eed | b21abd3873c76739ceefd1b4613a343ba2b454d1 | /jwst/associations/__init__.py | d301f9c7e12a2e7fee6c0d7ec0e7ed537bfa1211 | [
"BSD-2-Clause"
] | permissive | rij/jwst | 96a7baf95de953c51bbe67f3cdd459c114c47eef | 1d3acecb28d9a3dcb44b993e451b69da9856187d | refs/heads/master | 2020-12-24T09:56:21.784342 | 2016-06-09T19:17:01 | 2016-06-09T19:17:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 166 | py | from __future__ import absolute_import
from .association import (Association, AssociationRegistry)
from .pool import AssociationPool
from .generate import generate
| [
"jhunkeler@gmail.com"
] | jhunkeler@gmail.com |
a465f27286e4e4ea1a5e37e235956af9eebf643d | 97a01ed80d890472e24eb0ecce32d500dcad3231 | /LinuxSA/LDAP/scripts/ldap_sanity_check.py | 371a9d997042b124876bb2b58b0ab360f21bdf68 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | todie42/linux_env_setup | e92112ae628f0031d4ed04e71204f6c9182ab113 | 536c01aa6e191438c41f2fa8c15c4adf6f9eaec0 | refs/heads/master | 2021-12-11T03:03:11.524629 | 2021-12-08T21:07:23 | 2021-12-08T21:07:23 | 151,981,005 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,095 | py | #!/usr/bin/env python
# Copyright 2018 Battelle Energy Alliance, LLC
import argparse
import sys
import re
import textwrap
from argparse import RawTextHelpFormatter
import ldap
import os
import subprocess
sys.path.append(os.path.join(os.path.dirname(os.path.realpath(__file__)), '../../lib'))
import myld... | [
"spencerdmyers@hotmail.com"
] | spencerdmyers@hotmail.com |
2b5a21eac43df15e58f6da0f1410200a24a15491 | eaf6cb2336105cab6db6cf8b8cf9e27e3481606c | /t_devta/devta/migrations/0002_media_news.py | c9a55b7bb970cbed97f19bac1bf2cf510f9cb097 | [] | no_license | abhayrkt/traffic-management-system | 1f616a197d271c148ec43358437127c1612da735 | 808136436604e9a364ca49f1c3260ce7e85a33d1 | refs/heads/master | 2022-11-30T12:54:26.863499 | 2020-08-11T14:55:11 | 2020-08-11T14:55:11 | 286,770,404 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,126 | py | # Generated by Django 3.0.4 on 2020-04-19 12:20
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('devta', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='media',
fields=... | [
"abhayagarwal383@gmail.com"
] | abhayagarwal383@gmail.com |
1995eac014bb989715ec0760b47125ab8556f01e | aaa5473c8298386460949e1c16db76350135c58b | /urllinks.py | 2fdef73f07301b509ea558dd2f536204b2aaa303 | [] | no_license | Pratipkhandelwal/Python | 434e8730e38f139ae595636ce2440b8ef7d1b49d | b2e2cf28dd39655d6701d22e63839940b6873dc7 | refs/heads/master | 2021-11-23T01:19:05.431958 | 2021-10-30T08:30:42 | 2021-10-30T08:30:42 | 101,489,814 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 477 | py | import urllib.request, urllib.parse, urllib.error
from bs4 import BeautifulSoup
import ssl
# Ignore SSL certificate errors
ctx = ssl.create_default_context()
ctx.check_hostname = False
ctx.verify_mode = ssl.CERT_NONE
url = input('Enter - ')
html = urllib.request.urlopen(url, context=ctx).read()
soup = Beau... | [
"noreply@github.com"
] | Pratipkhandelwal.noreply@github.com |
5343a6fac3a21ddc45a02711f5876529a56cd862 | e6be214583874a789697622aacea213fe38f4961 | /application/Developer/CODE/generate_picture/drawSteinerTree.py | 27dc5d9faca5f15a78583fe4fbf6ab0c9062a241 | [] | no_license | migamul/Metaheuristic | 2b3ddf1cf9695c7165f2865554ddb8da3c920281 | 5d52ce4bd21f02e5a27d842c4d6b279166a93a45 | refs/heads/master | 2020-04-17T17:08:52.737693 | 2019-01-21T08:10:05 | 2019-01-21T08:10:05 | 166,771,018 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,422 | py | import networkx as nx
import matplotlib.pyplot as plt
import numpy as np
import os.path
plt.ylim(-0.02,1.02)
plt.xlim(-0.02,1.02)
plt.gca().set_aspect('equal', adjustable='box')
f = open(os.path.join('txt','nodes.txt'), 'r')
n = int(f.readline())
f.close()
x, y = np.loadtxt(os.path.join('txt','nodes.txt'), skiprows=... | [
"mihaela.gamulin@gmail.com"
] | mihaela.gamulin@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.