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 220
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 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d5a6333eedb40b22f342c751d3803cda984846d0 | 33cbc171f4f2f6e1493eed6da6f2b8e80d284747 | /respuestas_encuestas/admin.py | a696dbb5c6d3c67e9f906dd285e71199994bddb0 | [] | no_license | mauronet/crm | 963aeddd4cdfa1d44eb2add3e6d0cfaa9f72cd8f | 972306a89b3c8978975408d0b27269c8f87639d3 | refs/heads/master | 2020-05-21T00:26:49.812126 | 2014-09-07T13:12:09 | 2014-09-07T13:12:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | py | from django.contrib import admin
from .models import RespuestaEncuesta
class RespuestaEncuestaAdmin(admin.ModelAdmin):
list_display = ('respuesta', 'votos')
admin.site.register(RespuestaEncuesta, RespuestaEncuestaAdmin) | [
"mrodrigg@gmail.com"
] | mrodrigg@gmail.com |
febfe65ae8c61e9e2ee00a30f5a65ef5d45eb9df | 6b8c3974d3ce5f7841e51dcb406666c0c5d92155 | /heat/heat/tests/test_sahara_templates.py | 4a887b85c2db0dce48627fc26ea234c8235c9a1b | [
"Apache-2.0"
] | permissive | swjang/cloudexchange | bbbf78a2e7444c1070a55378092c17e8ecb27059 | c06ed54f38daeff23166fb0940b27df74c70fc3e | refs/heads/master | 2020-12-29T03:18:43.076887 | 2015-09-21T07:13:22 | 2015-09-21T07:13:22 | 42,845,532 | 1 | 1 | null | 2015-09-21T07:13:22 | 2015-09-21T05:19:35 | C++ | UTF-8 | Python | false | false | 13,120 | py | # Copyright (c) 2014 Mirantis Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | [
"kiku4@kinx.net"
] | kiku4@kinx.net |
313272182e4a107138a4a0aeb3fd35388773dbb4 | 3fb93b805cd9c6d19f21a443001fec4597f9105f | /scripts/uncertainty_scripts/train_pfrot.py | e11123f11ef5312baed60581c97980407a5f8a7e | [
"Apache-2.0"
] | permissive | neuroailab/curiosity_deprecated | c3a5a28d93b5bb0d923719c8fe289cfc9a9feec3 | 65f7cde13b07cdac52eed39535a94e7544c396b8 | refs/heads/master | 2021-08-15T08:07:34.845737 | 2017-11-15T19:35:45 | 2017-11-15T19:35:45 | 69,374,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,621 | py | '''
Random actions, after index mismatch bug.
'''
import sys
sys.path.append('curiosity')
sys.path.append('tfutils')
import tensorflow as tf
from curiosity.interaction import train, environment, data, cfg_generation, update_step
import curiosity.interaction.models as models
from tfutils import base, optimizer
impo... | [
"nhaber@stanford.edu"
] | nhaber@stanford.edu |
e82ef1fcf015a4fc0e894feb02466424a8fb1b62 | d21bcfd92d8bbc4f214af29e801b9929d3ab11ef | /winningstrat_2016.py | fbc47a816d33c84e16cee2293c3226539e648143 | [] | no_license | rvictordelta/practiceproblems | 47dfd46ac1eda11769aab10067be3ce6ab012435 | 362b374b3c275870e909c6c2e6624585250ca825 | refs/heads/master | 2020-08-28T15:41:28.691037 | 2019-11-04T15:02:00 | 2019-11-04T15:02:00 | 217,743,461 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 615 | py | t1= """100
5
4
0 1 0 0"""
t2= """140
20
8
0 0 0 1 0 1 1 1"""
t3 = """100
5
4
1 1 1 1"""
ts = [t1,t2,t3]
def martingaleyeah(s):
l = s.split('\n')
m = int(l[0]) # starting amount
b = int(l[1]) # first bet
flips = [int(x) for x in l[3].split(" ")]
for flip in flips:
if m < b: # assuming ... | [
"rvandusen@4170trading.com"
] | rvandusen@4170trading.com |
e9f8df1e669df7bb971e196bef4e8f0b517d633e | ca17bd80ac1d02c711423ac4093330172002a513 | /goodyhandy/FirstMissingPositive.py | 9988bcba209286d3584cc6e41ed5e95b6469f9f4 | [] | no_license | Omega094/lc_practice | 64046dea8bbdaee99d767b70002a2b5b56313112 | e61776bcfd5d93c663b247d71e00f1b298683714 | refs/heads/master | 2020-03-12T13:45:13.988645 | 2018-04-23T06:28:32 | 2018-04-23T06:28:32 | 130,649,699 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 531 | py | class Solution(object):
def firstMissingPositive(self, A):
"""
:type nums: List[int]
:rtype: int
"""
length = len(A)
for i, num in enumerate(A):
if A[i] != i + 1:
while A[i] != i + 1:
if A[i] <= 0 or A[i] > length or A[A... | [
"zhao_j1@denison.edu"
] | zhao_j1@denison.edu |
8ef80e1dd722b7f1fd3ae65c0ac896ff6de6dc4c | f83729a558721ff17dfc91767e80a689808597cc | /viraloverlay/viraloverlay.py | f0f033d6b9240cfcba7ff7eb7cac860e832cbf6c | [] | no_license | zevaverbach/viraloverlay | 703364c6675a8a54cc696030ebd92fbeb63b3391 | a4a61437fa92ccd2aa7ecaa9c52e1f1a17cb92f1 | refs/heads/master | 2020-04-20T21:50:45.333683 | 2019-03-09T03:09:52 | 2019-03-09T03:09:52 | 169,120,955 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,027 | py | import json
import math
import os
from pprint import pprint
import sys
from subprocess import check_output
from .config import (
APPEND_TO_OVERLAID_VIDS,
FONT_COLOR,
FONT_SIZE,
TEXT_POSITION_X,
TEXT_POSITION_Y,
MAX_ARG_CHARS,
)
from .custom_types import Numeric
f... | [
"zev@averba.ch"
] | zev@averba.ch |
0650b52e5ba0f028a8b022e6f1bd71a79ff90fd2 | 7b14ef3fa1890c89a9f63825f2fdaaf022161c8d | /rialtows/dto.py | 021508dd4282b79e41bb5d6aa17c77e3dfbc260f | [] | no_license | heid9001/okexbinance_ws_api | ad24ac32996b1fc42fb764886d95fabfbc5627fc | 26f315d9580b24aa8c4a81ce5c6ee54a43062512 | refs/heads/master | 2020-08-12T17:06:34.435805 | 2019-10-13T11:14:24 | 2019-10-13T11:14:24 | 214,806,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 856 | py | from .core import BaseDto, Mapping
import arrow
class ResourceDto(BaseDto):
def __init__(self, data, name):
super().__init__(data)
self.name = name
def __str__(self):
return "%s [ask=%.2f, bid=%.2f]" % (self.name, self.ask, self.bid)
def __repr__(self):
return str(self)
... | [
"heid9001@gmail.com"
] | heid9001@gmail.com |
2d858cf00a434b0b52a700a9a1d5e9e02287d8f5 | 51de952d3bfdadaef0ea9ea72d995fb44322f094 | /py_codes/1_Two_Layer_MLP/MLP.py | e44d47ea2766a329ba25a7fec7c5e422fcf6e3a1 | [] | no_license | 1437363934/MNITS-Classification-with-Neural-Networks | a72075396123ca52e71d1e4ea6a6cb91a04887c1 | 700d7a952a92f4e1e15039fdca8b809d1584d98c | refs/heads/master | 2022-12-23T19:29:52.543426 | 2020-09-28T15:39:17 | 2020-09-28T15:39:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,750 | py | import torch
import numpy as np
from torchvision import datasets
import torchvision.transforms as transforms
from torch.utils.data.sampler import SubsetRandomSampler
# how many samples per batch to load
batch_size = 20
# convert data to torch.FloatTensor
normalize = transforms.Normalize((0.1307,), (0.3081,)) # MNIS... | [
"noreply@github.com"
] | 1437363934.noreply@github.com |
1607cc2e583da0dc2499c9cb382f3d5e35ea2501 | 80bb17c3d9ccece1319b991f4f26740c460ad5f5 | /hw06/emacs/emacs.py | 0adaf3267b8c80d29b2eb3369766c677c4198753 | [] | no_license | jozdashh/agra | 4754a7c2eaff0374622a36fbf721a0950cac1644 | aa862971f133d03b30a7d37df421d778e56de813 | refs/heads/main | 2023-05-29T12:30:55.235743 | 2023-04-27T19:54:21 | 2023-04-27T19:54:21 | 350,473,961 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,016 | py | # Estudiante: Josue Peña Atencio
# Código: 8935601
# Fecha: 04/11/2018
from sys import stdin
def kmp_prefix(s):
n = len(s) ; P = [None]*n
i = 0 ; j = P[0] = -1
while i < n-1:
while j> -1 and s[i] != s[j]: j = P[j]
i += 1 ; j += 1
if s[i] == s[j]: P[i] = P[j]
else: P[i] = j
return P
def kmp_search(x, y, j... | [
"noreply@github.com"
] | jozdashh.noreply@github.com |
7772681d2d62d42390bb457998a5fe0649424b02 | d1247c530074efccc62f7538eb8cc354f61a8d38 | /genotype.py | 542e097f76579c61f8a425068c989c854ba3de59 | [] | no_license | Gudzy/ga_segmentation | 9b1c4ef8a0bac57806c7934dc35e1e36db16fa67 | 993dfdfc0543b28a13994c6da022c0ad337b150c | refs/heads/master | 2021-03-14T17:38:11.439099 | 2020-03-12T08:43:31 | 2020-03-12T08:43:31 | 246,780,102 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,675 | py | import numpy as np
from numba import jit
from skimage import io, color
import queue
from tqdm import tqdm
NEIGHBORS = np.array([(0, 0), (0, -1), (0, 1), (-1, 0), (1, 0)], dtype=np.int)
def _graph_to_genotype(image, graph):
que = queue.PriorityQueue()
genotype = np.zeros(len(graph.keys()), dtype=np.int)
... | [
"gustdyn@gmail.com"
] | gustdyn@gmail.com |
b84c3ca4482e26c4f3ab2a79107e873f9b1656c5 | b3879bc761ac38dab903da57c4061ad79fd70c6d | /курсы пайтон модуль 3/задание 23.py | 14e81b84571b42392d7be1c1572eee18530c2954 | [] | no_license | Ruslan5252/all-of-my-projects-byPyCharm | 4df70cc3a31c4a5d97560fa858a706edcc856299 | 817d5f711408590ea141590ae52c6d888dfa2015 | refs/heads/master | 2023-05-03T01:06:30.156731 | 2021-05-29T13:51:16 | 2021-05-29T13:51:16 | 371,970,160 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 156 | py | a=1
max=0
while a != 0:
a = int(input("введите число"))
if a>max:
max=a
print("максимальное значение",max)
| [
"r.u.s_2000@mail.ru"
] | r.u.s_2000@mail.ru |
8ead2cc76bbb2d6fc24ed27579b4c369e17df37c | af6e4fbc7ccf3a19322d0ba8bda05ece43ea7205 | /sample.py | 8cda191161fa4974ce01ad25b6ea18d6f513d0c7 | [] | no_license | senaprojects/YOUTUBE_VIDEO | bc3d0782693c9589054955629fb075f6c10855c8 | 3d2b4d8ae44a5e35a927b165ed25ee6c4aaa8fc1 | refs/heads/main | 2023-08-19T04:39:11.820006 | 2021-08-23T04:23:42 | 2021-08-23T04:23:42 | 398,971,680 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 75 | py | import pywhatkit as kit
y=input("Enter the playlist :")
kit.playonyt(y)
| [
"noreply@github.com"
] | senaprojects.noreply@github.com |
b313f11a5449630aeac14c8c12fc7b7444fdc85a | 2cef313487b916ad27ee668e5d34da6670c0c27a | /parsers.py | 2e530a1b4ac6524047ce1ec3241c98fdb2ed418c | [
"MIT"
] | permissive | hgkahng/pysc2-defogging | 52b43d38dd197315da4858fe8029c79d6c11d20b | dcb622c874fcc8f004ad0cab7ca94f33d44d5893 | refs/heads/master | 2023-01-08T13:46:11.588111 | 2020-11-01T13:50:25 | 2020-11-01T13:50:25 | 309,101,715 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,404 | py | # -*- coding: utf-8 -*-
"""
1. ParserBase
2. ScreenFeatParser
3. MinimapFeatParser
4. CustomSpatialParser
"""
import os
import shutil
import collections
import numpy as np
import scipy.sparse as sp
from absl import flags
FLAGS = flags.FLAGS
class ParserBase(object):
"""A... | [
"hgkahng@korea.ac.kr"
] | hgkahng@korea.ac.kr |
3efa87d0b1435b7ff792fe5481378d70cc3f6640 | 8649511435eb30d692471088a1b7c820f42343fc | /textbox/data/dataset/multi_sent_dataset.py | 683841c9fdb90cebe60c3397819ed9d08e527c31 | [
"MIT"
] | permissive | Richar-Du/TextBox | 3858cf0e43fcce0d879c8485df9fed6eda3879c6 | bb828118665e5a1183318ea5ba9368db052fb540 | refs/heads/main | 2023-03-24T15:35:05.791439 | 2021-02-24T01:55:00 | 2021-02-24T01:55:00 | 343,679,215 | 0 | 0 | MIT | 2021-03-02T07:11:17 | 2021-03-02T07:11:16 | null | UTF-8 | Python | false | false | 7,476 | py | # @Time : 2021/2/3
# @Author : Tianyi Tang
# @Email : steven_tang@ruc.edu.cn
"""
textbox.data.dataset.multi_sent_dataset
########################################
"""
import os
from textbox.data.dataset import AbstractDataset
from textbox.data.utils import tokenize, split_data, build_vocab, detect_restored, dump_da... | [
"1020139164@qq.com"
] | 1020139164@qq.com |
a964f2d2d1b7c201506d4e805323c0516c2c46f3 | 47be39fab9443d66a26228fd6966ee67f802da8d | /models/user.py | d91a269e00716b49096cdf3324a048a971b28b1f | [] | no_license | JosueLC/trinos-api | 4689cd739d802e0026b36a99cfd4ea5b3ae5af3b | 5fe043e52428d2288128ff2557f5a74cb5788fcb | refs/heads/main | 2023-08-28T04:44:12.917318 | 2021-10-24T22:50:39 | 2021-10-24T22:50:39 | 420,283,726 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 999 | py | #Python packages
from typing import Optional
from uuid import UUID
from datetime import date
#Pydantic packages
from pydantic import BaseModel
from pydantic import Field,EmailStr
#Classes for User
class UserBase(BaseModel):
id: UUID = Field(
...,
title="User ID"
)
username: str = Field(... | [
"josueflopez@msn.com"
] | josueflopez@msn.com |
45f0d40c005fd82f923f1c618aed8a16151bee5d | 4efa04e98563e08dd1618525003e5022220780ec | /pypolybuilder/Exclusions.py | d1e4177a838d5d2b1bc3ac4101d208dbcb41e686 | [
"MIT"
] | permissive | lgjun/pypolybuilder | 0bf9c6cde1cbc709f41e943c29e23d04390caec7 | af0e1801305080501b18e45d2383e3466865f19d | refs/heads/main | 2023-03-15T06:38:50.499010 | 2021-03-03T21:57:39 | 2021-03-03T21:57:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 980 | py | '''
Created on Apr 20, 2015
@author: vitor
'''
class Exclusions(object):
'''
classdocs
'''
__exclusion_list = None
__exclusion_extra = None
def __init__(self, exclusion_list, exclusion_extra):
exclusion_list.sort()
self.__exclusion_list = exclusion_list
self.__exc... | [
"bruno.horta@gmail.com"
] | bruno.horta@gmail.com |
5b9bfc13c5a323f114e11e4cc09c5ee13fb5f784 | 2128204364199ce5a0b8f090615c75af541666ef | /Attendance.py | 3fd550bc925001aa74423444243d32945ebdc48a | [] | no_license | k4kunalll/Attendance-System | 5094abb1b5b62cc8263c90a10b2672ae98620ea0 | 85c5d64ef3a3b8c8849516e291ff6981fdb7c3e7 | refs/heads/main | 2023-01-24T18:55:43.501871 | 2020-12-05T10:31:57 | 2020-12-05T10:31:57 | 318,759,599 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,376 | py | import os
from PIL import ImageTk, Image
import csv
from functools import partial
from tkinter import *
import numpy as np
import pandas as pd
import paramiko
from scp import SCPClient
import time
from sklearn.preprocessing import Normalizer
import mtcnn
from PIL import Image
from os import listdir
from os.path import ... | [
"kunalsahuvic@gmail.com"
] | kunalsahuvic@gmail.com |
7bf8d2a366551d6774730e60de1d62b78af16d52 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_108/125.py | c96c54037ce532c493eb7d9d77e0a2a5ad1f93b3 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,787 | py | #!/usr/bin/env python
import bisect
import sys
from collections import defaultdict
def main(args):
finname = '%s.in' % args[1]
foutname = '%s.out' % args[1]
with open(finname, 'r') as fin, open(foutname, 'w') as fout:
T = int(fin.readline().strip())
for i in xrange(1, T+1):
num_... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
5821bf541b8ad5152c0a740e1115539500cdd973 | fd4a26ef38bf4fa91af57884fbcea7a0230c097a | /CrowdSupplyDotComScraper/CrowdSupplyDotComScraper/settings.py | dc4ae09126cbdcc3fe52e76d304a732e12c04d2f | [] | no_license | kelvingakuo/Crowd-Funding-Bots | 260cbf89cdb5d1a9c129a0089ba4c6738c32b992 | 00ba5a6fa5f8b2378cd5e27336a2df82902bed43 | refs/heads/master | 2020-03-14T08:38:55.588095 | 2018-04-30T22:41:25 | 2018-04-30T22:41:25 | 131,529,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,306 | py | # -*- coding: utf-8 -*-
# Scrapy settings for CrowdSupplyDotComScraper project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# http://doc.scrapy.org/en/latest/topics/settings.html
# http://scrapy.readthed... | [
"kelvingakuo@gmail.com"
] | kelvingakuo@gmail.com |
62ceb76be57c25a2e488327b27172132967004f9 | 3a13430d694f7c159f73ff91f2cc1d6e46cec5ca | /season/welcome/migrations/0003_remove_order_date.py | 73e1f1c834023be39d7eaa932c004508fcf4f0ea | [] | no_license | drand23andrey/season-shop | 4c236bbd0ea7588db5fcf7de48623fb46d050131 | cb99280e6361a97a8c31485efe44007310131688 | refs/heads/master | 2022-12-01T00:05:57.943736 | 2020-07-09T15:31:35 | 2020-07-09T15:31:35 | 175,046,691 | 1 | 0 | null | 2022-11-22T05:55:51 | 2019-03-11T17:04:25 | JavaScript | UTF-8 | Python | false | false | 329 | py | # Generated by Django 3.0.5 on 2020-04-22 14:33
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('welcome', '0002_remove_order_last_name'),
]
operations = [
migrations.RemoveField(
model_name='order',
name='date',
... | [
"dushkakruf@mail.ru"
] | dushkakruf@mail.ru |
8bc523a3d7f94a6554ba21f8ade1ce2b4de1c047 | 33643fa32b68acb68154d6e76f79fca436381482 | /resources/examples/test.py | 68453ef707231ed6571de35fd3c211b4c1b5ceb4 | [
"Apache-2.0"
] | permissive | R0X4R/turbo-intruder | 3f562ad2e271d27a471f1113c019a37d58c4acb6 | 8535b2e2edee5f99a64526df3fc1e8466bcb04b6 | refs/heads/master | 2020-07-23T23:58:05.326742 | 2019-09-03T08:48:37 | 2019-09-03T08:48:37 | 207,743,824 | 1 | 2 | Apache-2.0 | 2019-09-11T06:54:31 | 2019-09-11T06:54:27 | null | UTF-8 | Python | false | false | 933 | py | # This is just for making sure the engine works during development
# Launch with java -jar build/libs/turbo-intruder-all.jar resources/examples/test.py /dev/null z z
def queueRequests(target, wordlists):
engine = RequestEngine(endpoint='https://hackxor.net:443',
concurrentConnections=1,
... | [
"albinowax@gmail.com"
] | albinowax@gmail.com |
701ad972f588196ecf39150a4070c732b52007fe | 0badae2ddd1fe30db5ccf1b9cbbc0fdbd7df42e4 | /leetcode/containsDuplicates.py | a0db15741676bb3ee080fcf6b034556a2ce93def | [] | no_license | danny128373/LeetCode-Challenges | 17fe336a1076914e72d2ce9b77aa2f2b24305ad4 | 8d332d473e7231cf1dff9faebe766f7779b61fdd | refs/heads/master | 2023-01-08T23:45:06.149917 | 2020-11-20T17:00:44 | 2020-11-20T17:00:44 | 306,706,338 | 0 | 0 | null | 2020-11-20T17:00:46 | 2020-10-23T17:40:48 | Python | UTF-8 | Python | false | false | 241 | py | class Solution(object):
def containsDuplicate(self, nums):
"""
:type nums: List[int]
:rtype: bool
"""
if len(nums) == len(set(nums)):
return False
else:
return True
| [
"daniel.meza29@yahoo.com"
] | daniel.meza29@yahoo.com |
b532f132682d481fbb804c4ecb261e5bc17deb2f | b6917327bb1b2bdc06904cd0e0b60f693d0aabf1 | /src/Testing/Python/pyBlocks.py | 8b6f970f06998c2bda194f5ef4196ba12cd8a59f | [] | no_license | embprg2000/SoftDefinedBlocks | 9789ffc54473ff08369f95ea51c7d26c1f51b16b | 3881b62a15f1ba7d3ab9116f6da6038132731172 | refs/heads/master | 2020-03-27T07:27:16.590182 | 2018-08-26T16:50:29 | 2018-08-26T16:50:29 | 146,192,058 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 24,465 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Sep 17 16:15:51 2016
@author: evert
"""
"""
Test lab for FM decoding algorithms.
Use as follows:
>>> graw = pyfm.lazyRawSamples('rtlsdr.dat', 1000000)
>>> gtune = pyfm.freqShiftIQ(graw, 0.25)
>>> bfir = scipy.signal.firwin(20, 0.2, window='nuttall')
>>> g... | [
"noreply@github.com"
] | embprg2000.noreply@github.com |
016d2f4b0007f8a40384dcd7a57e8d67f5a5f01f | 7708c2526947a86d064fc8b07a579baa332c5575 | /Database/build_db_datasets.py | b0b7c3d3ff443564267cc2ad0962d02df56a6c71 | [] | no_license | shunsunsun/Cell_BLAST-notebooks | d622aea190015e8b76207866889dddbd4dd333a8 | 9baebb4311eaf71670f4852238db7b91157e71b1 | refs/heads/master | 2022-01-19T05:05:30.269257 | 2019-04-21T13:30:42 | 2019-04-21T13:30:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,024 | py | #!/usr/bin/env python
import os
import numpy as np
import pandas as pd
import mysql.connector
from utils import nan_safe
def generate_datasets_meta():
dataset_dict = {
item: [
file for file in os.listdir(item)
if file.endswith(".pdf") and file != "peek.pdf"
] for item in o... | [
"caozj@mail.cbi.pku.edu.cn"
] | caozj@mail.cbi.pku.edu.cn |
1fceeeb430f33f411c419f486b38d0774cab3965 | 838965f73c5ae0d47a68512e431e18200a21097d | /curriculum_vitae/models/project_experiences.py | ae796f8be1d10b7ebb30b58e1759424416b2ee48 | [] | no_license | whitestar592020/Odoo13Development | 61851bc0afd41aef4f06975f477d69a6e6e5d706 | f96745dad88484567511ed07e9f4bd07b6b3afd6 | refs/heads/master | 2023-01-16T02:27:21.814952 | 2020-11-30T06:47:32 | 2020-11-30T06:47:32 | 298,996,876 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 688 | py | from odoo import models, fields
class ProjectExperiences(models.Model):
_name = 'project.experiences'
image = fields.Binary(string="Image")
name = fields.Char(string="Project Name", translate=True)
position = fields.Char(string="Position", translate=True)
responsibilities = fields.Char(s... | [
"noreply@github.com"
] | whitestar592020.noreply@github.com |
6ad1d197d98aacc51bf406e2a0f6e4a567c7be4c | 0c96fa82fed9f5c11deb18c9c13225f9debb2134 | /env/Scripts/django-admin.py | 9e3ccf83f5865ffddd389d1100daec6c34a80d80 | [] | no_license | Amoney22/my-first-website | 71405be5b07e6ef2d905a1b3c472728b9f753a52 | 74e57142cc89f10b922af89dc6cfea6f1b95d491 | refs/heads/master | 2021-01-15T10:57:50.344939 | 2017-08-10T21:15:57 | 2017-08-10T21:15:57 | 99,602,794 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 157 | py | #!c:\django girls tutorials\env\scripts\python.exe
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"seriesofillusions@outlook.com"
] | seriesofillusions@outlook.com |
a7db53021d314e8a8940afd0b9d509d6c3431464 | eb64b799ff1d7ef3a244bf8e6f9f4e9118d5cfcd | /homeassistant/components/wilight/light.py | 3236b3b3851a234fc1d369afef91f7753338940f | [
"Apache-2.0"
] | permissive | JeffLIrion/home-assistant | 53966b81b5d5816679f12fc761f79e8777c738d6 | 8f4ec89be6c2505d8a59eee44de335abe308ac9f | refs/heads/dev | 2023-08-22T09:42:02.399277 | 2022-02-16T01:26:13 | 2022-02-16T01:26:13 | 136,679,169 | 5 | 2 | Apache-2.0 | 2023-09-13T06:59:25 | 2018-06-09T00:58:35 | Python | UTF-8 | Python | false | false | 5,995 | py | """Support for WiLight lights."""
from pywilight.const import (
ITEM_LIGHT,
LIGHT_COLOR,
LIGHT_DIMMER,
LIGHT_ON_OFF,
SUPPORT_NONE,
)
from homeassistant.components.light import (
ATTR_BRIGHTNESS,
ATTR_HS_COLOR,
SUPPORT_BRIGHTNESS,
SUPPORT_COLOR,
LightEntity,
)
from homeassistant.... | [
"noreply@github.com"
] | JeffLIrion.noreply@github.com |
d6ad3b3fcb33608098e33669ace7929712eed35e | ab817e17b79835bdee1e6985520daaf43ded4f85 | /pluginlib.py | f500e09d5e3e6c5d1ba0c39f0a7ba6369a03eb3b | [
"MIT"
] | permissive | thodnev/pluginlib | c36e1b14b6b74c0ca6cf5b283d92f326b00e20c0 | cfeefc5e9bebccef3c22e6f9dfc5583afe0ed559 | refs/heads/master | 2020-06-13T04:02:13.308062 | 2016-12-03T04:46:19 | 2016-12-03T04:46:19 | 75,450,437 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,250 | py | '''
pluginlib: use dynamic python plugins with natural inheritance model
Usage:
1. Define plugin root class by subclassing PluginBase:
class SomeCls(PluginBase):
... some code here ...
2. Write some plugins, that inherit from plugin root:
class MyPlugin(SomeCls):
... extend/add/overwrite met... | [
"noreply@github.com"
] | thodnev.noreply@github.com |
e54737a669c120405ba1ae40ca1f029499c044b7 | 5660cc796ba00f5090c7de6208c2e0a77c2328ba | /utils/models/__init__.py | dfb823114abe17847e769d9c4a1db4047f2d0b29 | [] | no_license | OMalenfantThuot/scripts_raman | ac65fec1c5ac97a13b8c222e02241f02393f7709 | 2fd42a4b09d33fcf96da4b4d3340f67d21428b18 | refs/heads/master | 2023-07-19T20:11:10.457974 | 2023-07-18T18:15:26 | 2023-07-18T18:15:26 | 193,724,148 | 1 | 1 | null | 2023-08-28T20:00:38 | 2019-06-25T14:29:42 | Python | UTF-8 | Python | false | false | 297 | py | from .model import *
from .dropout_schnet import DropoutSchNet, DropoutAtomwise
from .patches_schnet import PatchesAtomisticModel, PatchesAtomwise
from .smoothtrainer import SmoothTrainer
from .memory_estimation import (
schnet_memory_estimation_for_graphene,
get_graphene_patches_grid,
)
| [
"malenfantthuotolivier@gmail.com"
] | malenfantthuotolivier@gmail.com |
1bb80b25bf87d695dd5433efee4ab2a9b1aa572c | 483508a4e002bcd734b8729459d3e5d5e02aae70 | /number_frequency.py | 27b6776f20516181ec134ca21ebb9c493c09bc5c | [] | no_license | jdavid54/benford_law | 9d54cd539130bc3665080ca801d1bb4db96a18a9 | 3ff9d8358f59fef60f401c290ceb94701613e1b2 | refs/heads/main | 2023-07-18T03:56:18.685081 | 2021-08-25T10:44:37 | 2021-08-25T10:44:37 | 399,751,073 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,069 | py | import numpy as np
import random
import matplotlib.pyplot as plt
# benford's law
# value
l1 = 10000
# size
l2 = 100
freq=[0]*10
x = np.arange(1,10)
'''
a = np.random.randint(1,l1,(1,l2))
print(a)
for i in np.array(*a):
n = int(str(i)[0])
#print(n)
freq[n] = freq[n]+1
print(freq)
plt.bar(x,freq[1:])
#plt.... | [
"noreply@github.com"
] | jdavid54.noreply@github.com |
c8bb8be2b7b980a1af94cd61d72a7b573d2fad49 | 608052e735474dc4dffc129f80dc70407a1cf7db | /make_xml_from_feature.py | e748988a1e63a1f0da4168780757cee470db706e | [] | no_license | 646677064/tools | 389595517271c6d4a407848dc6572082b6d59826 | 8e857e7634b5690430111446bdd4fcd76850fa43 | refs/heads/master | 2020-03-11T18:24:29.754483 | 2018-04-19T07:33:54 | 2018-04-19T07:33:54 | 130,176,405 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28,278 | py | import numpy as np
import os
import sys
import argparse
import glob
import time
#import _init_paths
from units import SClassifier, AverageMeter, convert_secs2time
import caffe
import scipy.io as sio
import sys,os,subprocess,commands
from subprocess import Popen,PIPE
import random
import math
# from fast_r... | [
"liushuai@tunicorn.cn"
] | liushuai@tunicorn.cn |
4f6c2ddefe3cb20c6fbca82335e3c70b1d4c0626 | bf2ea61883b8dd0074710ac532df35413720e5ec | /UserTask/migrations/0001_initial.py | 8d997be8d514af2cb779c7d6edb3424a0ebe6abc | [] | no_license | Jigar2998/Exam | f068a14d9f54ea4a84da4c2916d83dc28ac98389 | fa6795249961019facf3bd7bf0eab116d161bb2d | refs/heads/master | 2023-03-28T05:13:40.554728 | 2021-03-24T14:57:41 | 2021-03-24T14:57:41 | 350,630,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,415 | py | # Generated by Django 3.1.5 on 2021-03-23 14:48
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='contact',
fields=[
... | [
"jigarkumarramani1998@gmail.com"
] | jigarkumarramani1998@gmail.com |
b754ef64cb90d4767c378a2cfddb81f139ca8828 | ebcfc261ba65b2296e3e3ee409cc6061afaada13 | /psi/jlab/jlab/bin/ipython3 | 15703db575e30ec225c8512cfe0564a7c31c620a | [] | no_license | sosnus/psi | d281f74b9b6f85446ea77ceafd28b73a85567ba9 | cfeb574cbd36c2d233772eaa3221a08b0d40bd56 | refs/heads/master | 2020-04-29T00:45:59.712159 | 2019-03-18T01:46:20 | 2019-03-18T01:46:20 | 175,706,747 | 0 | 0 | null | 2019-03-18T01:46:21 | 2019-03-14T22:02:44 | Python | UTF-8 | Python | false | false | 256 | #!/home/sosnus/python/psi/jlab/jlab/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from IPython import start_ipython
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(start_ipython())
| [
"sosnus15@gmail.com"
] | sosnus15@gmail.com | |
9b84a3e64e7ca9d613cb149edf544b6042f3e0ce | 6d061520f6d2507d772ddd4cb2f9d39a8963a092 | /Mao/88.py | 3e8943a4af5635f1f5c92403eb8b709ab65a4837 | [] | no_license | SeanXiaohengMao/Leetcode | 54db3d9de024c111e28175ec896dba15aa63b5da | aab53ac5f93c7c8109468c919ec2f5a0de7a1b0f | refs/heads/master | 2020-03-11T04:50:07.518665 | 2018-05-13T21:08:37 | 2018-05-13T21:08:37 | 129,786,316 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 612 | py | class Solution(object):
def merge(self, nums1, m, nums2, n):
"""
:type nums1: List[int]
:type m: int
:type nums2: List[int]
:type n: int
:rtype: void Do not return anything, modify nums1 in-place instead.
"""
a = m+n-1
while m>0 and n>0:
... | [
"Mstarfish@163.com"
] | Mstarfish@163.com |
623a1d02618a98b846a644d65873a91f693fb8d4 | 21901fb376d67172a9f5dfcddb58ba5dcb83864e | /estadísticas/tamaño_muestras.py | 17a747ab2f39c3ed19e8029681fd2066dc3bf1bf | [] | no_license | LaManoServida/TFM-Biocruces | 977a9f15bbf96d61022df7ba0f491c4169a4cf9c | b126070c415aa4184765f7474a82953dbf1c54ce | refs/heads/master | 2023-01-03T11:13:08.717203 | 2020-10-13T05:09:17 | 2020-10-13T05:09:17 | 262,435,092 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,164 | py | import os
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from preprocesamiento.funciones import buscar_csv
''' Calcula los tamaños de muestra de los archivos de una carpeta '''
# PARÁMETROS
ruta_carpeta = 'D:/Dropbox/UNI/TFM/datos/3 - Fecha a timestamp'
ruta_grafico = 'Tamaño de muestras - dia... | [
"andoni7@outlook.com"
] | andoni7@outlook.com |
a44f361047b27f3505d603357681d2fca47f37b6 | bad686ba27539a3d3286418cc3ebf2aa80ae4958 | /src/pong/full-game.py | 383a097d39786a83f75f9eefa942508b67aa3626 | [] | no_license | AaryaBatchu/micropython | f0a31b579b3a998586f26b92036875c93588eca7 | aef7d33937352e9ab6f9615bfc5bf9aa1a9bee57 | refs/heads/main | 2023-08-19T13:33:15.006432 | 2021-10-23T19:06:26 | 2021-10-23T19:06:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,452 | py | # Pong game on Raspberry Pi Pico with a OLED and two Potentimeters
from machine import Pin, PWM, SPI
import ssd1306
from utime import sleep
import random # random direction for new ball
sda=machine.Pin(0)
scl=machine.Pin(1)
pot_pin = machine.ADC(26)
WIDTH = 128
HEIGHT = 64
i2c=machine.I2C(0,sda=sda, scl=scl)
oled = ss... | [
"dan.mccreary@gmail.com"
] | dan.mccreary@gmail.com |
79a4bb8bec0d2d35bfcfb2c239be6aee46b0fd66 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_373/ch4_2020_04_12_18_58_48_907546.py | cde9dac5e0e2b7c03893f3ea611cee967836abd9 | [] | 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 | 212 | py | def classifica_idade (idade):
input(int( 'idade: '))
if idade <=11:
print ( 'crinca')
elif idade >= 12 and idade <= 17:
print ('adolecente')
else:
print ('adulto')
| [
"you@example.com"
] | you@example.com |
d0e69f8ba2907a96de17eac4ef173bcbad3780a0 | 16a536eacd586f5a87934fcc999adf551edfe259 | /experiments/common/helper_fxns.py | bbcebf952d32e4350a3e0d3a5a8ff867246d9170 | [] | no_license | teganmaharaj/climate-dl | 5dad87aec737294c100800748fde61ace295d9aa | dd08fb6a85e8635ba86c06e19b4d487f76b45941 | refs/heads/master | 2021-01-11T02:07:09.911603 | 2016-10-10T16:57:04 | 2016-10-10T16:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,340 | py | from lasagne.layers import *
import theano
from theano import tensor as T
import lasagne
from lasagne.objectives import *
from lasagne.nonlinearities import *
from lasagne.updates import *
from lasagne.utils import *
import sys
import logging
def get_logger(out_folder):
logger=logging.getLogger('trainlog')
... | [
"ejracah@gmail.com"
] | ejracah@gmail.com |
6405b2626aba482937b14dfeafe8be7ddfd5657d | 6392354e74cce4a303a544c53e13d0a7b87978ee | /m4/socket_correlation/company_review/lock_test.py | 154a5366cb5434bb78837c326d9e8b9c99355720 | [] | no_license | music51555/wxPythonCode | dc35e42e55d11850d7714a413da3dde51ccdd37e | f77b71ed67d926fbafd1cfec89de8987d9832016 | refs/heads/master | 2020-04-11T20:20:38.136446 | 2019-04-01T09:17:34 | 2019-04-01T09:17:34 | 162,067,449 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 937 | py | import time
from threading import Thread,RLock
mutexA = mutexB = RLock()
class MyThread(Thread):
def __init__(self,name):
super(MyThread,self).__init__()
self.name = name
def run(self):
self.f1()
self.f2()
def f1(self):
mutexA.acquire()
print('%s得到A锁'%self... | [
"music51555@163.com"
] | music51555@163.com |
4bbf48067b37dfa9b7a43b74bd31d72cf471611d | 8f8e378c0ce4224244582c506c268edda3cc3b30 | /Common/OpenCV/Day1/open2.py | 6683662896f77c68b9e3b75157a97e725953ee7e | [] | no_license | srsapireddy/Diploma-in-AI_NIELIT_Files | 223318319b2d4b8647d77b99d1ba03f0d6e15cf6 | 9e2ed78fbe03369ebef1aa81f3417fc21bdd4107 | refs/heads/master | 2021-05-17T14:28:00.059617 | 2020-03-29T09:28:04 | 2020-03-29T09:28:04 | 250,820,401 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 114 | py | import cv2 as cv
img=cv.imread('walking.jpg',0)
cv.imshow('img1',img)
print(img)
print(img.shape)
cv.waitKey(0)
| [
"sapireddyrahul@gmail.com"
] | sapireddyrahul@gmail.com |
c517166cc1f3487953498d678a31ad7fb19e3f58 | 11aaa9f4fccab3f05deddb092fc87fd24f08d643 | /music/views.py | fd6f24bc78f369241153d5583e244dbaaacd3efe | [] | no_license | prorammerarc/Django-MediaPalyer | 3282499c739670e74b742932ba133db086e97dcb | b97bedcd662ceff83eb645507cc04deb4956748f | refs/heads/master | 2021-05-11T21:05:12.025427 | 2018-01-14T19:36:04 | 2018-01-14T19:36:04 | 117,460,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,248 | py | from django.shortcuts import render,get_object_or_404
from django.http import HttpResponse,Http404
from .models import Album,Song
from django.template import loader
def index(request):
all_albums = Album.objects.all()
template = loader.get_template("music/index.html")
context = {
'all_album':all_a... | [
"32127426+prorammerarc@users.noreply.github.com"
] | 32127426+prorammerarc@users.noreply.github.com |
b71b434ca0c4d33ae478c5de3fe560b4df6a19b4 | f84dbb215fa3c8917444d69d8a626523ded8ea01 | /utils.py | 7bec8f638356dce37131e8c58611384dc39a198d | [] | no_license | amirunpri2018/style_transfer | 3086963a6315d838db7272b18456d4518f16e103 | f613655a5964f78ed4a81e6051f4a598baf5f7cd | refs/heads/master | 2020-04-11T14:36:55.749802 | 2017-11-20T11:29:44 | 2017-11-20T19:00:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 476 | py | import imageio
# if Keras model has one output, it returns a tensor, otherwise a list of tensors
def make_list(x):
if isinstance(x, list):
return x
return [x]
# auxiliary function to inverse ImageNet preprocessing
def postprocess(x):
x[..., 0] += 103.939
x[..., 1] += 116.779
x[..., 2] +=... | [
"emzajac@gmail.com"
] | emzajac@gmail.com |
3bbf306660eebd6bf7546e4f3ed1d19ed77db877 | ce981ff3ffc0fe301f0a1a6092dafb491fb67e7d | /comments/api/urls.py | 43b29fc1302df28d37deba22fbf83d54c396db5f | [
"MIT"
] | permissive | videetssinghai/Blog-Rest-Api | 06a630b13a579c49f41cad6e1604dc36704ab32f | e81e0c1969b170cb482d2fdf7f2883efc42c69db | refs/heads/master | 2021-01-12T00:48:55.630129 | 2017-01-11T15:02:25 | 2017-01-11T15:02:25 | 78,300,097 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 296 | py | from django.conf.urls import url
from django.contrib import admin
from .views import (
CommentListAPIView,
CommentDetailAPIView,
)
urlpatterns = [
url(r'^$', CommentListAPIView.as_view(), name='list'),
url(r'^(?P<pk>\d+)/$', CommentDetailAPIView.as_view(), name='detail'),
]
| [
"videetssinghai@gmail.com"
] | videetssinghai@gmail.com |
91b04f73233aff30c6eca08c2f7dc761d779237c | f497cacd115a08f3901d50362a7412755783c3d9 | /events/forms.py | f8ee7abf416df218903763f37935e0a2e52efe13 | [] | no_license | snregales/UWS | aafa9a9ce3ad06f1b04d0da224d114142d55c16a | 712042d446c06ba42699e26a9aceb7dd77006881 | refs/heads/master | 2020-03-26T15:28:20.178895 | 2018-08-18T22:09:53 | 2018-08-18T22:09:53 | 129,656,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,936 | py | from django import forms
from .models import Event, EventMeta
from utils.utils import get_timestamp
from utils.validations import (
validate_date,
validate_event_name,
validate_participants,
)
class EventForm(forms.ModelForm):
current_year = get_timestamp().year
name = forms.CharFiel... | [
"sharlonregales@gmail.com"
] | sharlonregales@gmail.com |
d104bf3d62088709c04abe85b3ea2c295ccf4b59 | b38666d5710b241930e6ee6ec71c66a14a219d46 | /problem028.py | 355ebc184a773fd9d8ed389ec4fa1096e2e3bc61 | [] | no_license | yosuketanaka/project-euler | 3508bfbf3cdbc60f14d111c95b5c44f69cf85930 | 2cb747fb755684cd574590f168412e9e30e34a97 | refs/heads/master | 2016-09-05T11:12:13.555956 | 2011-12-20T00:50:37 | 2011-12-20T00:50:37 | 2,613,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 104 | py | a=[2*n for n in range(1,501)]
y=1
sum=1
for x in a:
sum+=y+x+y+2*x+y+3*x+y+4*x
y+=4*x
print sum
| [
"lazysuits@gmail.com"
] | lazysuits@gmail.com |
cfd2f3a4ff73b738da8ead70acf5ea441bdb0daa | ade929eeed0a13bee8e05619536639a32c60c22e | /Task0.py | a6a1e4b1a5b8d19cec83d7a73659f58ce07a3784 | [] | no_license | liuyuan512/Udacity-Python-Project | b2022b1632d73d43de03f1fc8f15029eabc2f0e5 | aca7e65b4bae7f0a6e41ede6180045ca34bf56fd | refs/heads/master | 2021-05-14T05:41:04.135673 | 2018-01-05T05:01:42 | 2018-01-05T05:01:42 | 116,226,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 877 | py | """
下面的文件将会从csv文件中读取读取短信与电话记录,
你将在以后的课程中了解更多有关读取文件的知识。
"""
import csv
with open('texts.csv', 'r') as f:
reader = csv.reader(f)
texts = list(reader)
with open('calls.csv', 'r') as f:
reader = csv.reader(f)
calls = list(reader)
"""
任务0:
短信记录的第一条记录是什么?通话记录最后一条记录是什么?
输出信息:
"First record of texts, <incomi... | [
"liuyuan@liuyuandeMacBook-Pro.local"
] | liuyuan@liuyuandeMacBook-Pro.local |
ddc61bcfaaa6888c845392caf8c5235ba528dfa8 | 0f5ce0c0c49b71ce5866cffee93b2a8537da005c | /app/app/settings.py | 2ff7e7ec1622687a5c70f08bdd81294163ef8965 | [
"MIT"
] | permissive | fr0gz/recipe-app-api | 1fb909dbf2c845238249aa195fba3ff79b830a1e | 68fe19aa2e1caafc9d658a0cdd06323f00b08f09 | refs/heads/main | 2023-01-13T13:25:37.450959 | 2020-11-24T20:41:37 | 2020-11-24T20:41:37 | 315,443,219 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,146 | py | """
Django settings for app project.
Generated by 'django-admin startproject' using Django 2.1.15.
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
# Bu... | [
"cguevarak@fen.uchile.cl"
] | cguevarak@fen.uchile.cl |
10670058ee66bbaa0c344330a9c20c5c2b7523ec | 4e14c0561e539faaf5e081b0d5eb7dda627c97f5 | /time.py | f7b4b67726552a96079cd32d63facdf909470a1e | [] | no_license | amruthaarun/Think-python | 44e7cd7978e3212c676cdf5eb3001aa78d11c76f | 08d7d6b803c2b1f58b11a0024a59fa2b5d77045f | refs/heads/master | 2021-01-21T13:03:59.660906 | 2017-06-04T14:07:08 | 2017-06-04T14:07:08 | 91,806,101 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 340 | py | class Time(object):
def time_to_int(time):
minutes = time.hour * 60 + time.minute
seconds = minutes * 60 + time.second
return seconds
def print_time(t):
print '%.2d : %.2d : %.2d'%(t.hour,t.minute,t.second)
time1 = Time()
time1.hour = 11
time1.minute = 59
time1.second = 30
time1.print_time()
print t... | [
"noreply@github.com"
] | amruthaarun.noreply@github.com |
bfb1b0feeb739779d22fd03dc6c1baf01c5a00e2 | 425badd89420156a586421bf26119193eea06f0a | /linkedlists/insert-in-sorted-dll/insert_in_sorted_dll.py | d69fbba02bbf51bef58fc49eb49827425ea40ed6 | [] | no_license | mich-chen/code-challenges | 66c82be05fdc8e9655525649283e2cea9e854916 | 286677fc7be84f8f8a8754c785a39d07a2c5604a | refs/heads/master | 2023-04-19T16:52:51.352926 | 2021-05-04T07:05:32 | 2021-05-04T07:05:32 | 301,622,163 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,803 | py | class DoublyLinkedListNode:
def __init__(self, node_data):
self.data = node_data
self.next = None
self.prev = None
class DoublyLinkedList:
def __init__(self):
self.head = None
self.tail = None
def insert_node(self, node_data):
node = DoublyLinkedListNode(nod... | [
"mich.chen.94@gmail.com"
] | mich.chen.94@gmail.com |
e94621edc11fd90840ea6da3902f469a1c7f89ca | ef83f030d562bbb0e88bc07f49474c4768a9ad9f | /test.py | 4706e5d9d10a221b6c40765e05b18a2ae417d9ee | [] | no_license | FinnAllen/Machine-Learning | 7eea1e8565645b3377f56a1e02ad9752939d2d19 | e6ad9761928570ce01dbad7b0e78173add975cfc | refs/heads/master | 2021-08-22T14:21:42.555197 | 2020-08-08T00:02:24 | 2020-08-08T00:02:24 | 213,487,329 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 111 | py | import tensorflow as tf
node1 = tf.constant(3.0, tf.float32)
node2 = tf.constant(4.0)
print(node1,node2) | [
"noreply@github.com"
] | FinnAllen.noreply@github.com |
c42d06f160e74bd4ea815479182bf3aa58950f95 | 78652c075802f77888712447f609ef33012acb12 | /GraphMatchingByConvexPolygon/src/Match_byCrossPoints.py | 6c1c5065fc461e49db0874d2150ef69d89a2b5dd | [
"MIT"
] | permissive | Anonymous772066235/GraduationDesignProgram | 5cfb18e730f284ffce16bbd9291a558541d2a678 | 3337c48005def8515a4660fcaa004dcfbe4766be | refs/heads/main | 2023-03-22T12:11:50.641790 | 2021-03-19T06:44:28 | 2021-03-19T06:44:28 | 336,760,920 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,449 | py | # File :Match_byCrossPoints.py
# Author :WJ
# Function :
# Time :2021/02/06
# Version :
# Amend :
import LineProcess as lp
import numpy as np
import LaplacianMatrice as laplcian
from scipy.optimize import linear_sum_assignment
import matplotlib.pyplot as plt
import Visualization as Vs
im... | [
"noreply@github.com"
] | Anonymous772066235.noreply@github.com |
60d41043584f6d063c4c43e77e9af68f68c35b35 | 54fead852941ba66783fca735dcc9d6f84c1d40b | /eshop_account/migrations/0005_auto_20201229_0922.py | 7c0b14f18d483eaa0d43da3f8bf0d40ea75d1cb3 | [] | no_license | saeide-tohidi/django-ecommerce | 36369686f4c8904fd7be7241a2e356582938cd6f | 9ab524d396b3bada4d326ca4ea416d164b3c8c64 | refs/heads/master | 2023-03-08T13:51:11.424289 | 2021-02-27T13:59:35 | 2021-02-27T13:59:35 | 342,868,421 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 562 | py | # Generated by Django 3.1 on 2020-12-29 05:52
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('contenttypes', '0002_remove_content_type_name'),
('eshop_account', '0004_auto_20201215_1643'),
]
operations =... | [
"s.tohidi22@gmail.com"
] | s.tohidi22@gmail.com |
e63b88ed084aef3af607dfd3983492929682e249 | bebacae90aa17ad2ab4c9111a2e5cfa0f8cf13a6 | /Python-3/basic_examples/raw_input_example.py | 98bdf626e06b78a68c079f81f91a901b1a33be39 | [
"MIT"
] | permissive | ayanakshi/journaldev | 5b0d73c53bc9a5292a8629c6c0320196abeab76e | a61cba22232e8cc9c40264c31aaba0bd17ff2522 | refs/heads/master | 2020-03-27T21:52:15.081736 | 2018-08-31T11:51:28 | 2018-08-31T11:51:28 | 147,182,378 | 1 | 0 | MIT | 2018-09-03T09:28:38 | 2018-09-03T09:28:38 | null | UTF-8 | Python | false | false | 61 | py | a = raw_input('What\'s your name : ')
print 'Username : ', a
| [
"pankaj.0323@gmail.com"
] | pankaj.0323@gmail.com |
4970c6284aaecea5775d6a3a9f128000451133f6 | cc54a6aba8ffaf7cc2c8a7e71a9332c6f4e26507 | /flask_app.py | 00cda83bc7ac474971c9e33c64b3d364a751f64d | [] | no_license | ayc3ue/flask_app | 4c77ed60f53bec0ad70052954dc3a2162d038793 | e567cdbdd915af11b82a16ea4e8801fd8327816f | refs/heads/master | 2020-05-05T05:08:28.980926 | 2019-04-17T02:12:39 | 2019-04-17T02:12:39 | 179,740,310 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,620 | py | import os
from flask import Flask, flash, request, redirect, url_for, send_from_directory, render_template
from werkzeug.utils import secure_filename
import exiftool
import json
app = Flask(__name__)
UPLOAD_FOLDER = './uploads'
ALLOWED_EXTENSIONS = set(['txt', 'pdf', 'png', 'jpg', 'jpeg', 'gif', 'dll', 'exe'])
app ... | [
"bwz3kt@virginia.edu"
] | bwz3kt@virginia.edu |
ebf5338c9d16d52fb1f01ccc605998b512d9edf6 | c6ff2a4484c371efd97ce610832cd9772dd406e0 | /app10_udemy/app10_udemy/wsgi.py | bb40d92d717d10e2eaaa247e3e39c58b6fc183fe | [] | no_license | inderdevkumar/Upload-and-display | 66bbb808be27d47f3ff8d57e663b58b71f62ef71 | 668beb97392f12d4b545937c18f2723919264987 | refs/heads/master | 2022-10-10T01:19:02.044549 | 2020-06-09T12:56:22 | 2020-06-09T12:56:22 | 271,003,802 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | """
WSGI config for app10_udemy 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.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_S... | [
"id0102yadav@gmail.com"
] | id0102yadav@gmail.com |
23d2bade3de1ab0aea32326d54633952e7129674 | 2f6a9629aa7497a033ae2836621f65e92529c28d | /homework 5/P6.py | 549f546e17e6f72daaec2c3efbbd0c8b5765292c | [] | no_license | H602602/AI-Python- | 9a4136d989c8f62def423b957c476cb1531dae38 | bcdd4727bf78ca7673d195a603e2a2da9ad06270 | refs/heads/main | 2023-07-27T12:24:31.895467 | 2021-09-15T12:38:37 | 2021-09-15T12:38:37 | 398,769,208 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 106 | py | a=int(input("Enter a number you want to know the table of "))
i=1
while i<11:
print(a*i)
i=i+1 | [
"noreply@github.com"
] | H602602.noreply@github.com |
3ef70815071e67e660069013519d9ec8cf185aae | 2e011c9f2f4c43a4fca21a2072977fa820e78fe4 | /mysite/settings.py | d86a691a465a40f0a8c0280590a3a71b99097230 | [] | no_license | Lurey-Roshan/Basic_course_django | 7f3210a767889d0cdd0f3a180bb842aa8d26a4ac | 7410d5c6f23fec481fa7a15a1a1f0cacf26c349b | refs/heads/master | 2023-05-06T18:33:05.445232 | 2021-05-27T10:30:58 | 2021-05-27T10:30:58 | 326,722,948 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,847 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
# Bu... | [
"everforgoodrs@gmail.com"
] | everforgoodrs@gmail.com |
be38d3ebadb2460af99adbcd9d5e38e954fef300 | 89220198e6869bf13ff99f1d07b5aa0f49f23b2a | /modules/tools/perception/empty_prediction.py | 33dd04981b1164fe3cb0fdef209d432d879386cd | [
"Apache-2.0"
] | permissive | maohaihua/apollo | 2cd073a0844a9028756582e6db4c6b66fd4f8a0a | a30d7a6c65a58ca82681df81211176f98eeffde2 | refs/heads/master | 2020-04-30T20:55:14.018814 | 2019-03-22T00:29:56 | 2019-03-22T04:58:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,225 | py | #!/usr/bin/env python
###############################################################################
# Copyright 2019 The Apollo Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy ... | [
"xiaoxiangquan@gmail.com"
] | xiaoxiangquan@gmail.com |
add3c5e3953f6df905c0de935b4270629b78a549 | a682abf407ed6563c8ae5ddd2983e388307dabcd | /termanim/__init__.py | 5a8274b6480fb27471874acc47d29aeaddfbf6bc | [] | no_license | sahasatvik/termanim | 838baf7e3388610cd6a33aac66c67d32d5e29ed5 | aa2239e206b7dceb5647a646fa5d4f4c76087b79 | refs/heads/master | 2023-04-30T03:44:06.549829 | 2021-05-13T17:49:56 | 2021-05-13T17:49:56 | 365,275,810 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 74 | py | """
An interface for creating graphics and animation in the terminal.
"""
| [
"sahasatvik@gmail.com"
] | sahasatvik@gmail.com |
291d92c0795dd0b5a8b22701412af4dad5921440 | 680c2cc9a733716938f5dc2b8b5469a25f8a16c8 | /123.py | 565ba3fef6d1e12807bcd4fed6c20bbd31a24986 | [] | no_license | e5a27123/hi | c897c6068a6ac5efe66c08d90cdc507092fb8a8a | a7ec9a34d7148c36173187fb794e476725514bf6 | refs/heads/master | 2021-05-23T18:56:45.866291 | 2020-04-06T08:04:52 | 2020-04-06T08:04:52 | 253,426,970 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 112 | py | high = input('請輸入身高:')
weight = input('請輸入體重:')
print('您的身高體重:',high,'/',weight) | [
"e5a27123@gmail.com"
] | e5a27123@gmail.com |
c788318f60d2098a2e34990bd3b98721e503be1f | be78f65e98c4a375666f0c22d18038c8ecef4519 | /QA_db.py | c883e669a4d52140c65d164b80da5cca1984ab8b | [
"BSD-3-Clause-Clear"
] | permissive | Rexmiao/QuickAnnotator | 5d9358d9fab04abfd10ac1950c62989c4d6715d2 | 8095bcf341ff0ec03590c23711fc1b228297ef82 | refs/heads/main | 2023-03-09T14:15:50.048688 | 2021-02-20T00:41:47 | 2021-02-20T00:41:47 | 337,521,794 | 0 | 1 | BSD-3-Clause-Clear | 2021-02-09T20:03:46 | 2021-02-09T20:03:45 | null | UTF-8 | Python | false | false | 4,391 | py | from flask_sqlalchemy import SQLAlchemy
from sqlalchemy import Text
import sqlalchemy
import logging
from QA_config import get_database_uri
jobs_logger = logging.getLogger('jobs')
_pool = []
db = SQLAlchemy()
# Create Flask-SQLALchemy models
class Project(db.Model):
id = db.Column(db.Integer, primary_key=True)
... | [
"choose.happy@gmail.com"
] | choose.happy@gmail.com |
97ed4b7b177f9bfd4dd65cf0fe4e612cec5f5ca7 | c68580258e9fbe64bbf232e781d75584691de4c4 | /tests/django_settings.py | 2af62bb352df44c8386b6fd77435541a4214c8d9 | [
"MIT"
] | permissive | KyleAMathews/graphene | 7e092e6e7d9575c1f736d834a2913a63bc753006 | 5738b69271fd245339f35640d375d6bc13092358 | refs/heads/master | 2023-08-31T21:12:22.927712 | 2015-11-30T18:08:12 | 2015-11-30T18:08:12 | 47,149,828 | 2 | 0 | null | 2015-11-30T22:24:27 | 2015-11-30T22:24:27 | null | UTF-8 | Python | false | false | 196 | py | SECRET_KEY = 1
INSTALLED_APPS = [
'examples.starwars_django',
]
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': 'tests/django.sqlite',
}
}
| [
"me@syrusakbary.com"
] | me@syrusakbary.com |
8c11b619d8bcfc1b32ce88c5f2693cdc3fe40a4c | 33d870b95a1b4761b9912eeef973be8af619c8f0 | /feature_eng/id_ip_join.py | aa4d4191f873480c518aac3e4274f49f47180aaa | [] | no_license | sclau/Avazu-1 | 641857f1949f0c0a4ec556c570da57c2ff213492 | cf1ebdb2be8c37b7789781e16b2f2e7aaa4f4584 | refs/heads/master | 2021-01-17T06:11:25.365314 | 2014-12-06T05:19:43 | 2014-12-06T05:19:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,031 | py | #!/usr/bin/python
import sys
import os.path
sys.path.append(os.path.dirname(__file__))
def read_device():
device_counts = {}
with open("id_ip_count_sort.txt", "r") as f:
lines = f.readlines()
for line in lines:
line = line.strip()
words = line.split('\t')
day, device_id = words[0], words[1]
... | [
"ianchin93@berkeley.edu"
] | ianchin93@berkeley.edu |
cd3e3d7ff3cc8d3bc80032f50d00ed482ccfbd91 | c9eb43714afc10d59d3a5c8dc9ac948bcce8da3a | /wordcount_project/urls.py | 1c828ec47b9a478e57a9b9d8a21e3bfce02893f5 | [] | no_license | hyo-ji/wordcount | e6c88ec0fd168c28f9bfa9293227bd17ffc4b039 | 1e32ecb87c5c651cf1b1ae8cddd6351076d6b9ff | refs/heads/master | 2022-11-11T12:12:18.089366 | 2020-07-06T12:27:16 | 2020-07-06T12:27:16 | 277,532,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 880 | py | """wordcount_project 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')
C... | [
"gywl21@naver.com"
] | gywl21@naver.com |
07dd881dfa838563a5ef9d22778cd9993402dd4c | 22ebcc842dbc933bfa8fdad89b8b8ef48ecc91c7 | /load/load_aes_hd.py | f70ad4aa349abe0942c49ece8386f2b88e6237e6 | [] | no_license | klikooo/thesis-src | 192651c18f243c59cfa588e7052dc1a96ab0a146 | 64f2ee824afdc2d3fd0f98c6d9fcfda597b9ad9f | refs/heads/master | 2020-04-16T18:16:20.638147 | 2019-08-20T14:59:52 | 2019-08-20T14:59:52 | 161,623,404 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,364 | py | from decimal import Decimal
import torch
import numpy as np
import matplotlib.pyplot as plt
from models.load_model import load_model
from test import test_with_key_guess
import util
import pdb
path = '/media/rico/Data/TU/thesis'
#####################################################################################... | [
"rico12978@hotmail.com"
] | rico12978@hotmail.com |
0fc3634719a0d6a84e782bf164e1e5bb7b18e2b5 | 895cf7d265a7976c9243894bccebf3daa645bc57 | /venv/bin/django-admin | ea08885278bada07ab1206a8cc6a4fc880b79d0b | [] | no_license | HenryM975/D_news | ebab9b443699e7b8925320d7235cf398d3a310c5 | 140be1f6385352265a6c7172261524ce5a302858 | refs/heads/master | 2023-08-05T02:33:20.483347 | 2020-08-01T09:31:18 | 2020-08-01T09:31:18 | 282,980,070 | 0 | 0 | null | 2021-09-22T19:42:46 | 2020-07-27T18:18:05 | Python | UTF-8 | Python | false | false | 289 | #!/root/PycharmProjects/news/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from django.core.management import execute_from_command_line
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(execute_from_command_line())
| [
"hemry975@yandex.ru"
] | hemry975@yandex.ru | |
6e5f727a122ec1a1829134b85592fba4c0f04981 | 795c2505b1dd77e5e7ce230348dbc4558c11c74e | /week7/9-4.py | 3c295e5fd93cebbb1c6024d6d3e0e62b17fb397d | [] | no_license | mikephys8/The_Fundamentals_pythonBasic | 4326400e6308109606735f092f588bacbf61381b | a0f7386579deb8481f0632bb8c98e0d09392f7c7 | refs/heads/master | 2020-06-04T20:19:01.165552 | 2014-06-30T16:22:41 | 2014-06-30T16:22:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,927 | py | __author__ = 'Administrator'
gradefile = open('student_grades.txt')
def read_grades(gradefile):
"""(file open for reading) -> list of float
Read the grades from gradefile and return a dictionary where
each key is a grade and each value is the list of ids of
students who earned that grade.
Precond... | [
"mikephys8@gmail.com"
] | mikephys8@gmail.com |
83287219fc0ef5c36a89bcb50a247ae0f358e3f7 | 0b90c9bc3efd14cd2a869ab519f1dfe9645cefd6 | /hw03/main.py | a35d9b237aa7b247b282f0923017b48068ff95af | [] | no_license | 1510650114/exp | 2e0b6da6c5e17de48a060692d322cd77824b291b | c6a0da63b3922d4b513b56cec067749925af4815 | refs/heads/master | 2021-07-11T22:53:19.856300 | 2017-10-16T13:40:39 | 2017-10-16T13:40:39 | 107,132,091 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,958 | py | import turtle
import math
def draw_polygon(aTurtle, size=50, n=3):
## 绘制正多边形
##
## args:
## aTurtle: turtle对象实例
## size: int类型,正多边形的边长
## n: int类型,是几边形
for i in range(n):
aTurtle.forward(size)
aTurtle.left(360.0/n)
def draw_n_angle(aTurtle, size=50, num=5, c... | [
"noreply@github.com"
] | 1510650114.noreply@github.com |
7b95333f1a3c4029e1d7f969049b5f60ff949f8c | 00cbe2c2bc49dd139bc9fff2b2d70f440824a102 | /ResourceManager.py | ba2fb6fc68b9769d1572aeac05e338683765c376 | [] | no_license | TCooper1996/Tank-Shooter-PyOpenGL | e10b7041cb6f80d9f3b14b5075fb4c2e9b32a895 | ce3ad3122d10af5b0240e89c3e731df7fa22c96f | refs/heads/master | 2020-06-17T06:06:01.047018 | 2019-08-01T03:10:07 | 2019-08-01T03:10:07 | 195,823,712 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,013 | py | from OpenGL.GL import *
import Shader
class ResourceManager:
Shaders = {}
@staticmethod
def load_shader(v_shader_file, f_shader_file, s_name):
ResourceManager.Shaders[s_name] = ResourceManager.load_shader_from_file(v_shader_file, f_shader_file)
return ResourceManager.Shaders[s_name]
@... | [
"trcooper1996@gmail.com"
] | trcooper1996@gmail.com |
d3d76cb1c9935b3b8fa21acac1bc730454de8817 | e168546cd2cbd76d7d1c77d62c9889d67769309f | /PokerModel.py | e69d84cfa60f9521099521f881b36d2249b5051f | [] | no_license | guptaronav/poker | 5dc4e12c5cba0c8044f0526769b07a3adfd4b727 | 59a0838ca3bbe2f4834e3096223aeb321df6d74a | refs/heads/master | 2023-01-21T14:53:14.315532 | 2020-11-28T18:43:31 | 2020-11-28T18:43:31 | 316,791,813 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,866 | py | import operator
import random
import pygame
class Card:
def __init__(self, rank, suit):
self.rank = 0
self.suit = ''
self.image_path = ('img/'+str(rank) + str(suit) + '.png')
self.selected = False
#convert the rank to an integer so it's easier to compute the winner of a hand
if rank == 'A':
self.ran... | [
"guptaronav@icloud.com"
] | guptaronav@icloud.com |
b975da264a632583abc06b064c0bdd3fa00f4ec9 | ec2ebf6b2c9e43857815ca857f4f8fb7580c9832 | /.vscode/1925.py | 510d6909161097110f651828f4ab032b59b8c360 | [] | no_license | eunchae2000/codeup | 7b9793b4570fee6cb0cb529ebf1ab33b871b165e | d6f1a2c32262a69bada3c093c87b16832b319471 | refs/heads/master | 2023-03-28T06:17:35.546759 | 2021-03-27T09:18:44 | 2021-03-27T09:18:44 | 328,110,102 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 177 | py | n, r = map(int, input().split())
def num(n, r):
if(n==r or r==0):
return 1
elif(r==1):
return n
return num(n-1, r-1) + num(n-1, r)
print(num(n, r)) | [
"tldjs3651@naver.com"
] | tldjs3651@naver.com |
2441d653960673ac4a1f42bc7f1c0bcecb8153ca | 94d1b45b6a7c25d6585a12b5c028244389c51d4f | /Recursion/venv/bin/python-config | 740ca13a09fcb2c2776e73499432ec41dccab360 | [] | no_license | Erockk/Recursion | 6f543b72474c219ef33807bff79a5f4e87d3495b | 4fe6760e76caee3161b95c20aa4ff19841f56d73 | refs/heads/master | 2021-05-01T12:25:21.040658 | 2018-02-11T20:06:51 | 2018-02-11T20:06:51 | 121,065,796 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,360 | #!/home/erock/PycharmProjects/Recursion/venv/bin/python
import sys
import getopt
import sysconfig
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
'ldflags', 'help']
if sys.version_info >= (3, 2):
valid_opts.insert(-1, 'extension-suffix')
valid_opts.append('abiflags')
if sys... | [
"dejaerik@gmail.com"
] | dejaerik@gmail.com | |
a612fd5ab164d6e0f144cbdf6d58cb2e12dbcb58 | c56221bfadb1536b707da284ffd56a00539c3384 | /python_notes/day11/test2.py | 0797a45403cc76a914803dd18fa1da6e9b6f276a | [] | no_license | sunsharing-note/python | 4f33fb657075780cd8f780eebeb0e197c386beee | f18ddad3e7555386045284ac98183efe4a2a82d3 | refs/heads/master | 2020-06-09T09:26:35.185019 | 2019-06-24T01:57:02 | 2019-06-24T01:57:02 | 144,146,370 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 277 | py | #! /usr/bin/env python
# -*- encoding: utf-8 -*-
# here put the import lib
def f(): # f()这里是生成器对象
print("test1")
yield 1
print("test2")
yield 2
g = f()
#next(g)
#next(g)
for i in g: # for循环会去调用next
print(i) # 1,2为返回值
| [
"hua.zhou@bqrzzl.com"
] | hua.zhou@bqrzzl.com |
d479a02c95eafbfa0243368ff72acbbb96176ad8 | 1e737d53085f4628af8330a8705862e8458354f4 | /Toets_2_ECTTP_Ronald_van_Egdom_3018119/Controls.py | fcb84f5c9e1e61e774cfeeb372f2919a877f553f | [
"MIT"
] | permissive | RunicPixels/HKU-ECTTP | 0551df865763024bebeb34c326e690442e06657a | 1bfeefbb6ed372128edd2e62602fe5c8d35bd0bd | refs/heads/master | 2022-05-18T09:46:45.448697 | 2016-12-14T18:07:18 | 2016-12-14T18:07:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 161 | py | class Controls() :
#Right, Left, Down, Up, Special.
#Keyboard.
String_controls = ["D","A","S","W"," "]
String_altControls = ["d","a","s","w","c"] | [
"superronald@live.nl"
] | superronald@live.nl |
11e1b75a57e9bc7732942119e5dbf9bfc029fa0b | f62fd455e593a7ad203a5c268e23129473d968b6 | /senlin-3.0.1/senlin/tests/unit/engine/actions/test_action_base.py | 058e15a75749ccf0a3430225113222d3bedc14a0 | [
"Apache-2.0"
] | permissive | MinbinGong/OpenStack-Ocata | 5d17bcd47a46d48ff9e71e2055f667836174242f | 8b7650128cfd2fdf5d6c8bc4613ac2e396fb2fb3 | refs/heads/master | 2021-06-23T05:24:37.799927 | 2017-08-14T04:33:05 | 2017-08-14T04:33:05 | 99,709,985 | 0 | 2 | null | 2020-07-22T22:06:22 | 2017-08-08T15:48:44 | Python | UTF-8 | Python | false | false | 35,544 | py | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed unde... | [
"gongwayne@hotmail.com"
] | gongwayne@hotmail.com |
e664beb018a1c9ae9d3a87597696086278f40c0e | dbe012dbedc967332ae58414473185055136d189 | /maskrcnn_benchmark/data/transforms/transforms.py | 283a9d3055d8b0ed951c6e0ec938684bcaf74ce3 | [
"MIT"
] | permissive | kevincao91/maskrcnn | 87561a023939a71d624252dd44f4c882b2dfa2a6 | a55f6ab82219329e353a20dd53c3f25f4375f537 | refs/heads/master | 2020-09-24T18:41:36.565752 | 2020-05-07T05:45:39 | 2020-05-07T05:45:39 | 225,819,004 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,511 | py | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
import random
import torch
import torchvision
from torchvision.transforms import functional as F
class Compose(object):
def __init__(self, transforms):
self.transforms = transforms
def __call__(self, image, target):
for ... | [
"kevin_cao_91@163.com"
] | kevin_cao_91@163.com |
59bebd47be55198c6ec48813b99966195120cdd5 | 3b3b9bbc39c50a270e96b4394024f1753e35aaec | /ncbly/spiders/spider.py | 30b8ffc51883646ef9f6e34a1fd77a8c78d021b7 | [] | no_license | hristo-grudev/ncbly | f94e2fdc8d556fba416d556cac5649b7f492c7c5 | 6b33ceb9b287ed0047f4676b3c036dc0b7c8e08a | refs/heads/main | 2023-04-11T02:09:07.152764 | 2021-04-15T06:30:42 | 2021-04-15T06:30:42 | 358,152,008 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,286 | py | import scrapy
from scrapy import FormRequest
from scrapy.loader import ItemLoader
from ..items import NcblyItem
from itemloaders.processors import TakeFirst
class NcblySpider(scrapy.Spider):
name = 'ncbly'
start_urls = ['https://www.ncb.ly/en/media-center/news/']
def parse(self, response):
post_links = respon... | [
"hr.grudev@gmail.com"
] | hr.grudev@gmail.com |
d999c73ccdbfd6c1659a34e31175408be91b1250 | b2a2a2f7e19fc8e9c6f5d2dedb0b4b10d7c813ae | /backend/api/migrations/0022_barmeta_first_calll.py | 557b7fe99b2acf7c5983a53c569529ffb89f9489 | [] | no_license | glenstarchman/bar-rate | d7a6e6660bd3fafe7777d435d33334e2be4d0480 | 575e5f695650487a679ede04af6f62d464c53c18 | refs/heads/master | 2022-02-27T01:31:17.879000 | 2019-09-26T14:43:05 | 2019-09-26T14:43:05 | 191,376,901 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 449 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.17 on 2019-06-02 14:33
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0021_barmeta_wifi'),
]
operations = [
migrations.AddField(
... | [
"glen@starchman.com"
] | glen@starchman.com |
d18ef3231977f0c3dcc4fa4dd7781da7c8cafa55 | 5ec411a831b02791e983e2cf002aa99945a4de08 | /write_urease_html.py | c72358d34b367dc07480a5b72f19903cff1c5dc3 | [
"MIT"
] | permissive | gaughanc/whatbacteria-sigma | 26de9c870b560166218c711f3eae297ea6f858b9 | b273003419867bd3b7f0ed44079444e7f4c6feaf | refs/heads/master | 2021-01-21T13:29:36.973297 | 2017-09-01T20:44:00 | 2017-09-01T20:44:00 | 102,128,073 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,512 | py | import random
from create_lin_list import create_lin_list
from get_lists import get_genera, get_species, get_urease, get_catcount
#create or define all needed lists
lins = create_lin_list()
genera = get_genera()
species = get_species()
urease = get_urease()
count = get_catcount()
nodes = []
edges = []
#define colors
... | [
"gaughanc@carleton.edu"
] | gaughanc@carleton.edu |
d92ae14ec4a5f7f378a2afd59049a7861ff896ad | cf58c2c216f6c76c71b5a04f72d79fb1d58e4b64 | /tests/components/modbus/test_init.py | 90fc0c086e8b3925d523bda0e1e2adfab5a83adb | [
"Apache-2.0"
] | permissive | whtsky/home-assistant | c301a7a0c2f8e94806d411b705c8f7b5939355d2 | 2ea5811e3a34e228908802e18c29af1c2fc249c5 | refs/heads/dev | 2023-08-19T07:37:29.365289 | 2023-02-17T22:21:28 | 2023-02-17T22:21:28 | 204,410,639 | 1 | 0 | Apache-2.0 | 2023-02-22T06:14:25 | 2019-08-26T06:30:12 | Python | UTF-8 | Python | false | false | 27,086 | py | """The tests for the Modbus init.
This file is responsible for testing:
- pymodbus API
- Functionality of class ModbusHub
- Coverage 100%:
__init__.py
const.py
modbus.py
validators.py
baseplatform.py (only BasePlatform)
It uses binary_sensors/sensors to do black box testing of the read calls.
"""
... | [
"noreply@github.com"
] | whtsky.noreply@github.com |
2af528c484536afbc1490119fcb2b8ed301d4ea5 | 1189fc1021cec3f5520c67b884ada83112434ec8 | /stars.py | e39ca40a7abea43f33319e217cc7c825f005e525 | [] | no_license | MrMil/code-or-die | ac7991040900d8837b38d950643863f1e8956a52 | cc3ecc2f1e782176268669e2b65000a1e03a6e31 | refs/heads/master | 2020-03-22T01:20:20.117611 | 2018-06-30T22:05:12 | 2018-06-30T22:05:12 | 139,298,978 | 0 | 0 | null | 2018-07-01T04:00:56 | 2018-07-01T04:00:56 | null | UTF-8 | Python | false | false | 7,396 | py | import random
NAMED_STARS = [
"Acamar",
"Achernar",
"Achird",
"Acrab",
"Acrux",
"Acubens",
"Adhafera",
"Adhara",
"Adhil",
"Ain",
"Ainalrami",
"Aladfar",
"Alamak",
"Alathfar",
"Albaldah",
"Albali",
"Albireo",
"Alchiba",
"Alcor",
"Alcyone",
... | [
"tsvikas@gmail.com"
] | tsvikas@gmail.com |
fbb0f7310f7f72ed4f42979e7bdb21f2a6601ca5 | 1c99c687c696d780b3817f480129ebaa1fba109a | /codegate2017/pngparser/urllib2.py | 719e419cc28cff25cd16e85ce74590f06be5dcbb | [] | no_license | cExplr/ctf | 6be804d36922b08949154cfeba405c2aee0cb4e5 | 79f6485e6f1383fb382cd1a1453c2d25b0b5c518 | refs/heads/master | 2020-05-07T19:33:09.667499 | 2017-08-24T12:47:07 | 2017-08-24T12:47:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 105,026 | py | """An extensible library for opening URLs using a variety of protocols
The simplest way to use this module is to call the urlopen function,
which accepts a string containing a URL or a Request object (described
below). It opens the URL and returns the results as file-like
object; the returned object has some extra me... | [
"kanghee4924@gmail.com"
] | kanghee4924@gmail.com |
09638a0316277ba90691152d2ee5fcaa722b2305 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/coverage-big-955.py | a413f3a44075f48e40c63ede11ed563101fe0e36 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,351 | py | count:int = 0
count2:int = 0
count3:int = 0
count4:int = 0
count5:int = 0
def foo(s: str) -> int:
return len(s)
def foo2(s: str, s2: str) -> int:
return len(s)
def foo3(s: str, s2: str, s3: str) -> int:
return len(s)
def foo4(s: str, s2: str, s3: str, s4: str) -> int:
return len(s)
def foo5(s: str,... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
f2a5f0eef81cd1b136457da1ba1ca887736186c2 | 5cc5cc2acade85f9fefb61f0b007cc29f395e54e | /orders/admin.py | 7b8732b614131d84d592099ae307c1f995418f5c | [] | no_license | laimaurnezaite/Pinocchios | 20066e160ce684dd77de72de73a04333dda6a264 | ddbe5e586dc3c66158ab2c9b5e4a2dee83f0332e | refs/heads/master | 2022-07-19T05:25:44.324527 | 2020-05-12T12:28:01 | 2020-05-12T12:28:01 | 262,084,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 215 | py | from django.contrib import admin
from .models import Order#, #ShoppingCart#, OrderItems
# Register your models here.
admin.site.register(Order)
# admin.site.register(ShoppingCart)
# admin.site.register(OrderItems) | [
"laima.urnezaite@gmail.com"
] | laima.urnezaite@gmail.com |
01851c215882db7ea5489cb7d037bf4a475fc45d | 6e9ca564a0a806768636c787287607a090e90aed | /src/toolbox/data_converters.py | b0425a82890bc93e370daf8e101376049b2ae722 | [
"MIT"
] | permissive | ENJOY-Yin-jiong/hidden-challenges-MR | 798a513ad5c02df2d004076cd27f2f5c3c1b8e3e | e0c4546b5a614a20b680765fd4ad250564327b6a | refs/heads/master | 2023-03-20T02:14:22.583479 | 2020-09-07T05:29:07 | 2020-09-07T05:29:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,084 | py | from typing import Tuple, List, Dict, Callable
from pandas import DataFrame
Query = Tuple[str, str]
Location = Tuple[float, float, float] # start, end, length
Instance = Tuple[Query, Location]
Rating = List[float]
Prediction = Tuple[Query, List[Location], Rating]
Result = Tuple[Query, List[Location], Rating, dict]
... | [
"otani_mayu@cyberagent.co.jp"
] | otani_mayu@cyberagent.co.jp |
411b685eee4c1a0073044de1835cf6c13078974d | efd3c596a878f3ec499e3fb35949c6d8926a4ca3 | /DataProcess/tf2_thread.py | 9488248a0864e5f47550cfe678d7e0da1386655c | [] | no_license | taoshiqian/ImageProcessTensorflow | b85b047f8b3556a86bea9ba258e7acad881b9bfc | 319b48bf50a55429d06b26f9056f6c53a6ef79ae | refs/heads/master | 2020-03-19T02:59:00.289334 | 2018-06-26T13:54:23 | 2018-06-26T13:54:23 | 135,682,424 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 970 | py | import tensorflow as tf
import numpy as np
import threading
import time
# 每隔一秒打印自己的ID
def MyLoop(coord, worker_id):
# 不需要停止
while not coord.should_stop():
# 随机停止所有线程
if np.random.rand() < 0.1:
print("Stoping from id: %d"%worker_id)
# 通知其他线程停止。其他人的should_stop会变成True
... | [
"17210240200@fudan.edu.cn"
] | 17210240200@fudan.edu.cn |
24e05aac27a7eee6799ab5ec26fcb11af42151c3 | 147389cf28e0c92f0b2ef8000b0562a71d766880 | /pp.py | 764a1b7b187b101da8e094613efc9e68f4b889cc | [] | no_license | dohyekim/hello | 3821ca97079818c9938df33fc6d8d6ea9ca763a5 | 84f5704fe6cb6e5b63fb7903e311b650d65a394a | refs/heads/master | 2022-02-25T11:12:31.077335 | 2019-09-22T06:23:00 | 2019-09-22T06:23:00 | 156,352,382 | 1 | 0 | null | 2022-02-12T11:48:53 | 2018-11-06T08:39:18 | JavaScript | UTF-8 | Python | false | false | 707 | py | import requests
from bs4 import BeautifulSoup
import json
url = "https://www.melon.com/chart/index.htm"
headers = {
'Referer': 'https://www.melon.com/',
'User-Agent' : 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36'
}
html = requests.get(url,... | [
"dhleen5@hanmail.net"
] | dhleen5@hanmail.net |
2f2598ed6a79bbe55c47c66fb2f205c2993b2f35 | 7d114d06693e1501e4074d9eda9c054048f1d6e7 | /keras_sequential_model.py | 5072f8439afdc897d9e4099b040de5c1d058fae2 | [] | no_license | bipulshahi/codes | e39d6d219b5e006ed6e58f5d84ee3f8b25224ffd | 8ff2549655493f9ac52701d9d8097a43571d0a93 | refs/heads/master | 2023-06-23T09:07:06.649945 | 2023-06-10T07:08:18 | 2023-06-10T07:08:18 | 161,839,734 | 11 | 16 | null | null | null | null | UTF-8 | Python | false | false | 2,424 | py | # -*- coding: utf-8 -*-
"""Keras Sequential Model.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1rOd-AeQVq0AIAyTdLO7ir58sXKClJzgA
"""
from keras import models
from keras.layers import Dense, Dropout
from keras.utils import to_categorical
from k... | [
"noreply@github.com"
] | bipulshahi.noreply@github.com |
4d8d3e5cf6f2e677b3dacfdf239f1811304ba498 | 58cc35c25e45366aaa0e3887cea1bd85fc0f14c4 | /api/serializers/testing/test_runner.py | 484b809bffd69e296bb2d45065acee4e33651aba | [] | no_license | renanrv/test-executor | 7ea7f0ca0a9179f9380a02fb684f19fc4308b479 | 1ce7aa1b4131be6c3a8bc3cf5a9598cd8b533059 | refs/heads/master | 2021-05-07T15:06:54.188254 | 2017-11-14T00:00:41 | 2017-11-14T00:00:41 | 109,977,526 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 190 | py | # -*- coding: utf-8 -*-
from rest_framework import serializers
class TestRunnerSerializer(serializers.Serializer):
code = serializers.IntegerField()
name = serializers.CharField()
| [
"renan.vasconcelos@orama.com.br"
] | renan.vasconcelos@orama.com.br |
dc5410da4cfff303d0f5fbc6d93fce02dc7cad1f | 79ed3f72555aad8548634f523f775f34cfe166e7 | /catch/datasets/guaroa.py | 5acd22fecfb7fdabe5e8b72c0eb5fa30d32a8df1 | [
"MIT"
] | permissive | John-Bioinfo/catch | a2ab188ed598767e7759f74227f24af2b284b379 | fe63b86bc41396c1da0b449ac440c6ae9e52b2c5 | refs/heads/master | 2020-03-18T09:29:10.315733 | 2018-04-17T18:36:47 | 2018-04-17T18:36:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,225 | py | """Dataset with 'Guaroa orthobunyavirus' sequences.
A dataset with 25 'Guaroa orthobunyavirus' sequences. The virus is
segmented and has 3 segments. Based on their strain and/or isolate,
these sequences were able to be grouped into 16 genomes. Many genomes
may have fewer than 3 segments.
THIS PYTHON FILE WAS GENERATE... | [
"hmetsky@gmail.com"
] | hmetsky@gmail.com |
91eb9c99063fcaf5b821ef933527ce9a156928d1 | a37e93d23ea659bafaac8034dc7aeed65bc5eb38 | /shopee_api_client/controllers/controllers.py | 86c536dcab4725f74333bed6a851742075677bc7 | [] | no_license | kit9/sct-ecommerce | 71831541264809715b31d802d260474975d04536 | 6c440a514eac8101474b6720e409a81c58bd3b7c | refs/heads/master | 2022-10-03T23:35:31.563670 | 2020-06-09T12:35:06 | 2020-06-09T12:35:06 | 271,020,689 | 0 | 4 | null | 2020-06-09T14:10:49 | 2020-06-09T14:10:48 | null | UTF-8 | Python | false | false | 1,672 | py | # -*- coding: utf-8 -*-
from odoo import http
class ShopeeApiClient(http.Controller):
@http.route('/shopee_client/shop/<model("shopee_client.shop"):shop>/auth', methods=['POST'], auth='public',csrf=False)
def auth_push(self,shop, **kw):
if shop.sudo().write(kw):
return http.Response(status=... | [
"thanhquenguyenbkhn@gmail.com"
] | thanhquenguyenbkhn@gmail.com |
bf5657467f3bc562c237bba7906c9b1146e9b92a | 18d7876af265ec974aa5ecf9142093d845b59020 | /module/Favourite.py | d373b337f2caccf5bd99c89382bc95c872888048 | [] | no_license | xiaojieluo/savemylink | b6b2b806b8a760369860e2ec83fd85dece9bfd9d | 7eb64a4742516486bebe8498374b94552c682cfe | refs/heads/master | 2021-06-13T16:49:13.795891 | 2017-03-23T03:48:39 | 2017-03-23T03:48:39 | 77,986,335 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,113 | py | #!/usr/bin/env python
# coding=utf-8
from module.DB import db
from module.define import *
class Favourite(object):
db = db
link_list = []
value_dict = dict()
favourite_public = FAVOURITE_PUBLIC
favourite_count = FAVOURITE_COUNT
def __init__(self, fid = 0):
if not isinstance(fid, in... | [
"xiaojieluoff@gmail.com"
] | xiaojieluoff@gmail.com |
9803489d673fad8d596b11ce793086bb11ba7af1 | 4ae5d091e35fad9acea8d5b4044639a72da4b6ab | /src/irobotframework/magic/robot.py | 440ac6611410b6bff29cfe1437ae7f356d2559af | [
"BSD-3-Clause"
] | permissive | nrbgt/irobotframework | 941d76326e2cd71ee77aef23f3a8e48f0483e649 | 865311e0f89e2418e253f60cd7ae50990d4d6e6a | refs/heads/master | 2020-04-30T17:10:32.593605 | 2019-01-15T14:50:53 | 2019-01-15T14:50:53 | 176,971,493 | 0 | 0 | null | 2019-03-21T15:17:52 | 2019-03-21T15:17:51 | null | UTF-8 | Python | false | false | 2,821 | py | # Copyright (c) 2018 Georgia Tech Research Corporation
# Distributed under the terms of the BSD-3-Clause License
import re
from typing import Text, Callable
from tornado.concurrent import Future
from IPython import get_ipython
from ipykernel.ipkernel import IPythonKernel
from ..irobot import StringTidy
from .. impo... | [
"todd.shayler@gtri.gatech.edu"
] | todd.shayler@gtri.gatech.edu |
7a906032b07ddd8c57c95c5688999c4c40c6cdfd | 8973bc75cd166031df2906df5cb51c9d40d266d3 | /urls.py | 8d4f4452df67860548d021f319225d973277efee | [] | no_license | anujborah1/q | 53dcbbba6c54afb95451e64db4e22a560ad04d1e | ba21db8801efbd4aa27161bca5e48a3e4de68f31 | refs/heads/master | 2021-01-22T21:45:35.844543 | 2017-03-19T12:22:29 | 2017-03-19T12:22:29 | 85,472,135 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 111 | py | from django.conf.urls import include, url
from views import *
urlpatterns = [
url(r'^$',q, name='home'),
}
| [
"noreply@github.com"
] | anujborah1.noreply@github.com |
85b9431aa68b75cba86e309e1c3a60671ac62aca | 5f1652c95ce91a0e05f64c8d0703b9d18fc45097 | /homework_tests/asgi.py | c5872c3561965cbe4eb49833ac86c56d478364f9 | [] | no_license | YuriiShp/api_homework | 84f12843d4e96f7a9b12c4e79227139aae29fac4 | 6ea75e0a4974b2d5ca4bee03c1fd71634113433f | refs/heads/main | 2023-01-07T13:15:12.456417 | 2020-11-11T21:34:10 | 2020-11-11T21:34:10 | 312,095,404 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | """
ASGI config for homework_tests 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('DJANG... | [
"yuralrock@gmail.com"
] | yuralrock@gmail.com |
816966b273d6b069ce21943c3cc82b528a7647a7 | a3edc11b218d138854543a91b1fcc656adb86889 | /app/CrawlerMonitor/Monitor/Log_Info/error_output.py | 1a1fa78e94ed458e6e8e2e571be240a883c27dfd | [] | no_license | weileanjs/option_web | c506f7ff7ab2bdc660b830513597598caf33094d | 68dc1d280d39757e02eba9c80bb64e5158212c81 | refs/heads/master | 2020-04-08T22:09:16.909227 | 2018-11-30T05:46:42 | 2018-11-30T05:46:42 | 159,774,309 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 815 | py | # coding=utf-8
import logging
from ..config import LOG_NAME
logger = logging.getLogger(__name__)
logger.setLevel(level = logging.INFO)
# rq = time.strftime('%Y%m%d', time.localtime(time.time()))
handler = logging.FileHandler("{}.log".format(LOG_NAME))
handler.setLevel(logging.INFO)
formatter = logging.Formatt... | [
"24689003@qq.com"
] | 24689003@qq.com |
a7c7a2d522606326d339fa6b7f6be1af992eb35d | 9ec7c121d3a95505d895ca3201ccb28232a2f436 | /structural_design_patterns/adapter.py | 586bda53e48b168e3e82b4adfda8b3b84fcc7730 | [] | no_license | RyukerLiu/design-pattern | 531f7860de39250eda5a29868b1b73db911b1c8b | 3107693e252957a72487ee01e38e4e69c1e144e8 | refs/heads/main | 2023-08-26T06:00:28.514167 | 2021-11-01T13:56:56 | 2021-11-01T13:56:56 | 383,742,954 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 748 | py | import math
class RoundPeg:
def __init__(self, radius):
self.radius = radius
def get_radius(self):
return self.radius
class RoundHole:
def __init__(self, radius):
self.radius = radius
def fits(self, peg: RoundPeg):
return self.radius >= peg.get_radius()
class Squa... | [
"alex03108861@gmail.com"
] | alex03108861@gmail.com |
df455aaf0a36ceec480f5763e6838ea3caf2d09f | 1ab93f52d64e3f8c925f1f3d7495c90860ff04d6 | /users/migrations/0010_auto_20200810_2116.py | 89ba5f8fe8997e1008673d04ba18973bd1764f3d | [] | no_license | briankangmh/new | 4a823d44d0c54ff24bec86720b4b724ed27b30df | 8c1a868d17290cb6cca1161a0833b2207f7c696c | refs/heads/master | 2023-07-01T04:23:16.183674 | 2021-02-14T16:01:30 | 2021-02-14T16:01:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 474 | py | # Generated by Django 2.2.10 on 2020-08-10 15:46
from decimal import Decimal
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0009_auto_20200610_1922'),
]
operations = [
migrations.AlterField(
model_name='userprofile... | [
"navneetnivu07@gmail.com"
] | navneetnivu07@gmail.com |
acc977511fd11f710814e06c27a13c3a5393a7ad | 7c7df2ba89a4bd42ca4b1bbc3de8f05818521ac3 | /Python Solutions/Day 1/day1_part1.py | 7e22bbfa449346c0fcbb670e889d43adbef9d0be | [] | no_license | Jorgee97/AdventOfCode2019 | aa550c5097ef4d5d9ad1c83a91c1e3067285c19a | 2a9e61da7c9fcabe110f44cbd00682770383e32f | refs/heads/master | 2020-09-24T03:38:09.995967 | 2019-12-14T05:03:16 | 2019-12-14T05:03:16 | 225,652,398 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 805 | py | ##############################################################
########## The Tyranny of the Rocket Equation ###############
########## https://adventofcode.com/2019/day/1 ###############
########## by Jorge Gomez ###############
##############################################################
from h... | [
"ingjorgegomez@outlook.com"
] | ingjorgegomez@outlook.com |
f2af5535627397e48d5f726ea1decea49c6eb2ec | c82bbdd616d043a74812c136a4c6c927b5d1beaf | /Système_random.py | 5d37a4df0522dab59653d3355640285c5b1348c5 | [] | no_license | CyrilRPG/Test-discord.py | 5e0dee9b14213b2c6cd89c890cd6b5ffc74fee22 | 7f9dbe87a4a4304265a973014cde8ced9bf36489 | refs/heads/master | 2020-04-10T19:30:34.340168 | 2018-12-11T19:32:21 | 2018-12-11T19:32:21 | 161,237,555 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,552 | py | #-------Création d'un bot discord en python avec Cyril : Jeu aléatoire !
#--------------------------Importation des modules----------------
#------------------------------------------------------------
import discord
import random
#------------------------------------------------------------
nexus = discord.Cli... | [
"noreply@github.com"
] | CyrilRPG.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.