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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
434c8b45d5318daf9ace3de02a4ee707a34afcc0 | 28bb7ac2d3a031d91be6f7312f69d0f11868d701 | /mysite/register/views.py | 5256c1a93ef6d3290b40d1150f9bc4b594845e89 | [] | no_license | loganwoudstra/News-Aggregator-Web-App | 96543d21533378cb018fa0ca3ccb704af206fc2a | 1aaf803a00f7e42e81d849e95b91e73931daa1d0 | refs/heads/main | 2023-04-05T00:15:06.168544 | 2021-03-29T23:25:40 | 2021-03-29T23:25:40 | 352,767,987 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 601 | py | from django.shortcuts import render, redirect
from .forms import RegisterForm
from django.contrib.auth import authenticate, login
# Create your views here.
def register(request):
if request.method == "POST":
form = RegisterForm(request.POST)
if form.is_valid():
form.save()
... | [
"noreply@github.com"
] | loganwoudstra.noreply@github.com |
e18d77ab5399d325f4e8c6753998472c91989af3 | 096652495e7996ba2f0e7e054e0e93dd6a4591c9 | /venv/lib/python3.6/__future__.py | 39403e6712ad2f55a8a94fed48f1ac543f7147ce | [] | no_license | iamsahilsoni/smart_breathalyzer_diabetes | 171c5fb29ee93d094c15c4f56852507c6fc37dd3 | b6b37685271f8ae6cb4d86c108f0a42106076b72 | refs/heads/master | 2022-11-23T18:46:59.723661 | 2020-07-30T13:59:14 | 2020-07-30T13:59:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 50 | py | /home/simran/anaconda3/lib/python3.6/__future__.py | [
"simran1999batra@gmail.com"
] | simran1999batra@gmail.com |
5c123d11db157d237d4f78e662215ca3feb7122a | d0ff93f697dbdd85180a8d0efb12d14fc207b606 | /032MaxSubsetSumNoAdjacent/maxSubsetSumNoAdjacent.py | a0b98923f20f9a8131a0991d0c7a40bd24f652b8 | [
"MIT"
] | permissive | casp3rus/100DaysOfAlgo | 11f5fb81a083b77071005e9cc8eebbd5bdea2c58 | c8bccdd16f063e68818519283e4008c332e6c777 | refs/heads/main | 2023-06-03T20:49:06.044084 | 2021-06-25T21:36:06 | 2021-06-25T21:36:06 | 320,690,428 | 0 | 1 | MIT | 2021-05-15T20:14:47 | 2020-12-11T21:43:46 | JavaScript | UTF-8 | Python | false | false | 720 | py | # Solution
# O(n) time / O(n) space
def maxSubsetSumNoAdjacent(array):
if not len(array):
return 0
elif len(array) == 1:
return array[0]
maxSums = array[:]
maxSums[1] = max(array[0], array[1])
for i in range(2, len(array)):
maxSums[i] = max(maxSums[i - 1], maxSums[i - 2] + a... | [
"adrian.popan@gmail.com"
] | adrian.popan@gmail.com |
37136cec8894aec53366e1b0b3d8ca2b391a93de | 4196a441dccdb3eba80cd65391d21295f6586147 | /higher_lower.py | 1fb9744016dd7765ce33923a6ad1174919b43be0 | [] | no_license | bqtruong/CS-1110 | 0baf70c45ae01d8e1cb76b80fb2c45689cc3a820 | 6f116b6cd67e7e4db06f6be921a0808280883d6d | refs/heads/master | 2021-01-10T14:20:47.959325 | 2016-09-09T22:41:21 | 2016-09-09T22:41:21 | 52,057,980 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 543 | py | import random
num = int(input("What should the answer be? "))
if num == -1:
num = random.randint(1,100)
counter = 0
win = False
while counter < 5 and win == False:
guess = int(input("Guess a number: "))
if guess == num:
win = True
elif guess > num and counter != 4:
print("The number is l... | [
"bqtruong@cox.net"
] | bqtruong@cox.net |
8f87d7ea5933e1476502c87349345378fce72728 | 767f645355f490044c094473a4365c4aa194ce49 | /day3_1.py | 7f09cbe659445920302315cf743f4abb0c88c0c9 | [] | no_license | chq11/Advent-of-Code-2018 | 28f08b066d4030a2afb5edfbb0f931325bac7d58 | 1cc0c78f2b5d5510db9c9e1a200693677100c154 | refs/heads/master | 2022-09-20T03:26:15.313129 | 2020-05-31T02:36:26 | 2020-05-31T02:36:26 | 267,086,878 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 896 | py | import numpy as np
from collections import Counter
f = open('d_3.txt', 'r')
lines = f.readlines()
claim = np.zeros([len(lines), 5], np.int16)
for i in range(len(lines)):
line = lines[i].strip().split()
claim[i][0] = int(line[0].strip('#'))
claim[i][1] = int(line[2].strip(':').split(',')[0])
claim[i][2]... | [
"noreply@github.com"
] | chq11.noreply@github.com |
8b72c6fd693b0ea0f8309565f13007a37421bfd4 | d581407b089e38f1c83da4932e2bc794ef98f146 | /web/mot.py | 3f5f1304b2316481e19bbdffe88465f66cfeb7e6 | [] | no_license | Shobhit95Sharma/Home-Automation-Using-IoT | a3c383165844bda06f5e0bd1f139684608dba9f3 | 7e53cb94325e9aafbdc82d899adf2ba301c81a80 | refs/heads/master | 2020-06-11T07:10:26.955753 | 2016-12-07T09:23:45 | 2016-12-07T09:23:45 | 75,737,920 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 145 | py | import time
import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BCM)
GPIO.setwarnings(False)
led=7
GPIO.setup(led,GPIO.OUT)
GPIO.output(led,GPIO.HIGH)
| [
"noreply@github.com"
] | Shobhit95Sharma.noreply@github.com |
eccc0e84574579f290c7fe3d6f2eb7c4ea4ba8a8 | bcdd9a0a81c60eb13c9a89081b5e03e7eb01451a | /spamdetection/asgi.py | 764477b2de2e4b86a6b205f9cf894bcd3a6abb61 | [] | no_license | sahil-1602/sms-spam-detection | ef07c4888ee538a3d4683a666dc2cba2af53e0d6 | 5776b610d51e4d787b8aeb29cc0b2484d161b574 | refs/heads/master | 2023-06-04T06:40:58.869584 | 2021-06-22T04:18:06 | 2021-06-22T04:18:06 | 317,813,639 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | """
ASGI config for spamdetection 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.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO... | [
"sahildarji16@gmail.com"
] | sahildarji16@gmail.com |
72adaaab1c55270f82b15554761f117b36a0a663 | 44824af42cc879e7cf71c08776f22503de3abcaf | /pyDANDIA/inspect_astrometry.py | 8aa09f1b4c810dbd29796ede3f1306c115c01947 | [] | no_license | pyDANDIA/pyDANDIA | 2bb201851f94416cf690abb969ccc25b118d3ceb | a84d2154a92b03687169a1e73d5828a39e8e949b | refs/heads/main | 2023-08-31T00:13:18.577356 | 2023-07-30T00:27:40 | 2023-07-30T00:27:40 | 107,273,881 | 12 | 2 | null | 2023-08-25T18:22:02 | 2017-10-17T13:40:23 | Python | UTF-8 | Python | false | false | 7,071 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Mar 12 08:10:51 2019
@author: rstreet
"""
from os import path
from sys import argv
from pyDANDIA import metadata
import matplotlib as mpl
mpl.use('Agg')
import matplotlib.pyplot as plt
from astropy import table
from astropy.coordinates import SkyCoord
from astropy import unit... | [
"rstreet@lco.global"
] | rstreet@lco.global |
487890e4c4dde5461d6bc58f12d28871e2281752 | 3d4f17c4020f7a693a6c7b57837bc08ace46c7d9 | /multiworld/multiworld/envs/mujoco/sawyer_xyz/sawyer_pick_and_place.py | 1e1adebc71669d990e99144067e7de0e5055a0f0 | [
"MIT"
] | permissive | szk9876/SMERL | 7329d10f7b763e3a6a8a6e100f06657ffd34dfd6 | af5d7b66345446beec4302fb584c03a931fe86eb | refs/heads/main | 2023-06-18T05:44:54.073535 | 2021-07-15T22:33:41 | 2021-07-15T22:33:41 | 306,246,688 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 19,177 | py | from collections import OrderedDict
import numpy as np
from gym.spaces import Box, Dict
from multiworld.envs.env_util import get_stat_in_paths, \
create_stats_ordered_dict, get_asset_full_path
from multiworld.core.multitask_env import MultitaskEnv
from multiworld.envs.mujoco.sawyer_xyz.base import SawyerXYZEnv
fro... | [
"szk@iris-ws-3.stanford.edu"
] | szk@iris-ws-3.stanford.edu |
09c005d257d7d132908bbb649c6e0e098afbcc31 | 200b7e75ecf26aee8e49a7bae9498156deff94e3 | /woodpecker.org.cn/abyteofpython_cn/chinese/code/using_file.py | a65277ba4d5932342a86eef511eca2b2414eaf84 | [] | no_license | tybitsfox/www | 0bf1e820d106a664a9786f931b8511cd4de21030 | b83bd1347cd61798a0f4ab838110fb2bab4a00f8 | refs/heads/master | 2023-08-02T16:06:52.528516 | 2023-07-20T14:19:29 | 2023-07-20T14:19:29 | 135,229,717 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 552 | py | #!/usr/bin/env python
# Filename: using_file.py
poem='''\
Programming is fun
When the work is done
if you wanna make your work also fun:
use Python!
'''
f=file('poem.txt','w') # open for 'w'riting
f.write(poem) # write text to file
f.close() # close the file
f=file('poem.txt')
# if no mode is specifi... | [
"tyyyyt@163.com"
] | tyyyyt@163.com |
574db95533b5d034f658f9a51a1f0232059e0a1b | 7c1b599c5b5be0ec5ad142e52e5c15a7c9c8ea12 | /venv/Lib/site-packages/tensorflow/contrib/quantize/python/fold_batch_norms.py | 61c90dba7d4a688497fdac4d4ba0332fa1d94cd3 | [] | no_license | namtran98/NSTAR---MuddHacks | 88d602a0847bb923088c7f0be6d5c2980b11a36d | cbc04873e1f02cb6b62a7b77c5c44eb4e9422ab8 | refs/heads/master | 2020-04-21T19:41:49.889253 | 2019-02-09T01:02:37 | 2019-02-09T01:02:37 | 169,816,481 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40,924 | py | # Copyright 2017 The TensorFlow 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 of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | [
"ntranmn@gmail.com"
] | ntranmn@gmail.com |
c405ab6a76fd10bc699bb01944f3fb0e28d11458 | 802997443ff625296e09eed55e349f319953e47a | /Versoes Anteriores/Gestao_v2/gestaoapp/models/pessoa.py | 8b9f02e531ef7fc105c056b98a7e8290a38e7172 | [] | no_license | elizabethsilvano/GestaoProjetos | 7531277f4c51fb7802a70f24a406ad81bc467d96 | 3d21fff452cf42cd2d78a6591d0fab9ac9b46eb5 | refs/heads/master | 2023-04-01T18:54:41.932959 | 2015-11-17T17:43:00 | 2015-11-17T17:43:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 644 | py | from django.db import models
from django.contrib.auth.models import User
class Pessoa (User):
rg = models.CharField(max_length=255)
cpf = models.CharField(max_length=11)
rua = models.CharField(max_length=255)
numero = models.CharField(max_length=255)
complemento = models.CharField(max_length=255)
bairro = models... | [
"paatrick_reis@hotmail.com"
] | paatrick_reis@hotmail.com |
4e55efc281a0895900555be7d28d0cb370371a1e | 21c098079d2724ffbd3f6cb01c7919c1f59f7875 | /src/aioquic/about.py | 82cd8f33d65dcbf2397d12c83c651cc899e91556 | [
"BSD-3-Clause"
] | permissive | MattyHsueh/aioquic | f9c54717b3acdb84bc8f963a5e8bd5f969ebeb4b | 2163f2d0940edd2a91a3773fb7cb061031fe87fa | refs/heads/master | 2022-09-01T12:33:23.987233 | 2020-05-29T05:57:37 | 2020-05-29T05:57:37 | 263,517,328 | 1 | 0 | BSD-3-Clause | 2020-05-13T03:39:45 | 2020-05-13T03:39:44 | null | UTF-8 | Python | false | false | 227 | py | __author__ = "Jeremy Lainé"
__email__ = "jeremy.laine@m4x.org"
__license__ = "BSD"
__summary__ = "An implementation of QUIC and HTTP/3"
__title__ = "aioquic"
__uri__ = "https://github.com/aiortc/aioquic"
__version__ = "0.8.7"
| [
"jeremy.laine@m4x.org"
] | jeremy.laine@m4x.org |
691f6d3f1e30a550fbb8b616ac37f72e25f569f1 | e62e6ff4c387ffd8b4fe1a39b199d09a5ba865f6 | /Algorithm/MIT/Lec1/docdist1.py | d8c2c905c808b7364f2dd33aea19c51413559801 | [] | no_license | QuanNgHa/Data_Algo | 2c588c46002a52aade29ec4f0fcf65de080b2dff | 4d7bb3280969e0f7f0c502102995fe8464fffd22 | refs/heads/master | 2020-09-01T15:43:51.907302 | 2019-11-03T13:50:30 | 2019-11-03T13:50:30 | 218,994,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,417 | py | import sys
import string
##################################
# Operation 1: read a text file ##
##################################
def read_file(filename):
"""
Read the text file with the given filename;
return: L #a list of the lines of text in the file.
"""
try:
fp = open(filename)
... | [
"quanngha.dev@gmail.com"
] | quanngha.dev@gmail.com |
562d56f07fdcd6cbc8ae2633ebd04475457fee2a | 742cad114fc03087b19dd2c322e897f0ab25a972 | /neurips2020/train_depth.py | df68a3f43d23ce2bc3dacd771ddfbb3b39647196 | [
"Apache-2.0"
] | permissive | OObasuyi/evidential-deep-learning | 2955778d165384641b31c9b59ab03553095ba8f5 | 995764dd3a1923ec3b0f35392d2e25e8a6831bd9 | refs/heads/main | 2023-07-12T02:28:11.379858 | 2021-08-18T02:48:35 | 2021-08-18T02:48:35 | 397,451,602 | 0 | 0 | Apache-2.0 | 2021-08-18T02:42:10 | 2021-08-18T02:42:10 | null | UTF-8 | Python | false | false | 2,142 | py | import argparse
import cv2
import h5py
import numpy as np
import os
import time
import tensorflow as tf
import edl
import data_loader
import models
import trainers
parser = argparse.ArgumentParser()
parser.add_argument("--model", default="evidential", type=str,
choices=["evidential", "dropout", "... | [
"xan.amini@gmail.com"
] | xan.amini@gmail.com |
ad83730199dd2c78f435dea6eee07e6fd00b8033 | c8adae98cd1c2614c1bacc59ecf52fb7e45ce481 | /0x1F-pascal_triangle/0-pascal_triangle.py | 92a551bac2bdfd2d51644f8f5a6ef858cc8ca0fc | [] | no_license | OctopusHugz/holbertonschool-interview | a75f1a9fe72227e46db1005796cc98fa10f1fd2f | 546f659ca128118438200ae1515096407bb438de | refs/heads/master | 2023-07-15T07:34:45.713801 | 2021-08-25T20:29:50 | 2021-08-25T20:29:50 | 319,363,351 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 510 | py | #!/usr/bin/python3
""" This module implements a pascal triangle algorithm """
def pascal_triangle(n):
""" Returns a list of lists of integers representing the Pascal's triangle
of n """
triangle = []
for num in range(n):
row = []
for val in range(num + 1):
if val == 0 or va... | [
"colsonscott53@gmail.com"
] | colsonscott53@gmail.com |
b8eb07a6d47829a2e243a17cc1dfe8890ea47949 | 668bf8333e6806b732c39c152119fadfc5946a03 | /dashboard/consumption/migrations/0001_initial.py | cf8329a1ff2fa6dc7bd63891daa806de50b7a82e | [] | no_license | kul-amr/sample_project_Django | bb3fd0879196409e64a2a4385b30b85010effb31 | ffce488a10429b3ca177ae0f6d8e5003af163697 | refs/heads/master | 2021-10-11T05:44:47.756600 | 2019-01-22T21:46:47 | 2019-01-22T21:46:47 | 103,298,899 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,257 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2017-09-03 17:36
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Create... | [
"amruta9.kulkarni@gmail.com"
] | amruta9.kulkarni@gmail.com |
f07995b0257bcd7f8e8f666c6eb217b74288a4de | 0e6b0c8d8f413efb62f8b067244740e99afeb3bb | /scratch_3.py | b64cd8eaa771fbeba261f734d4c0f77d982d380f | [] | no_license | shivam221098/scratches | 11cdb0d3a7287240e6593abe3a0594c6b3e47c5b | e400c74c99b58c369ba0f7860b20e993dcdfe393 | refs/heads/main | 2023-07-04T22:00:35.581270 | 2021-08-10T18:49:15 | 2021-08-10T18:49:15 | 394,751,236 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 624 | py | import json
import time
from pprint import pprint
from xmltodict import parse
# pprint(x.get("record:record").get("common:orcid-identifier"))
# pprint(x.get("record:record").get("history:history"))
start = time.time()
with open("xmls/000.xml", "r", encoding="utf-8") as file:
data = parse(file.read())
p... | [
"noreply@github.com"
] | shivam221098.noreply@github.com |
c2e868d33ecf69c24085c9befdde3e88be97c40e | 6a56fd371cc211dad3459b97f4f6359b8e5e1395 | /algos_in_python/small/fibonacci.py | 26debc826dc4de7de29c742ee566f2ac4275f8b3 | [] | no_license | PyFinn/algorithms_in_python | 9f9304d0850042663a660f0fe78cafec2db7c702 | 309131a310f4da4fc96290745023b271012a26a2 | refs/heads/master | 2023-03-08T04:54:18.448970 | 2021-02-23T10:27:10 | 2021-02-23T10:27:10 | 328,242,289 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,870 | py | from typing import Dict
from functools import lru_cache
from typing import Generator
# Multiple solutions to calculate the fibonacci sequence
# Recursion -- Calculates just the next num at given index -- Too big inputs cause trouble as the num of operations rises exponentially
# Index 5 needs 15 calls of fib1 -- Inde... | [
"realstraved@gmail.com"
] | realstraved@gmail.com |
0c9bfe97cd122617887a59f58589b36187d8c3ab | 6e7a2957a3521767387e546ea8275db154aa56ad | /matrix/ms/migrations/0004_auto__add_field_player_sms_sent__add_field_player_feedback.py | 6152769ad603919bf9d80c44e0a6cb09da003317 | [] | no_license | antrod/Stomp-the-Muffin | 77e3744cdc8c2ad27fbd80bc573e60441366c748 | d703c37b234bd3bd56024a875c7b92b0a1b5304f | refs/heads/master | 2021-03-12T19:47:51.725504 | 2011-12-24T19:23:20 | 2011-12-24T19:23:20 | 3,045,102 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,800 | py | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Player.sms_sent'
db.add_column('ms_player', 'sms_sent', self.gf('django.db.models.fields.B... | [
"an@ton.io"
] | an@ton.io |
544d93e6123e2aaf81bb582512c8e89872961bc9 | 5a671c25778638c9807fcddfb49d149e55db4c8f | /mooc_project/settings.py | 6ce9ebc96ca8dc142ef12e57c0464e9ba344c6f4 | [] | no_license | FathallaSelim/OnlineCourses | 629386cff5acba0722e8d896d817a379952a1837 | 560da03ef66ab83f75958063eb69f1a22b5393b4 | refs/heads/master | 2023-01-13T20:00:45.146188 | 2019-12-24T09:39:48 | 2019-12-24T09:39:48 | 228,176,413 | 1 | 1 | null | 2022-12-27T14:58:31 | 2019-12-15T11:55:44 | CSS | UTF-8 | Python | false | false | 4,334 | py | """
Django settings for mooc_project project.
Generated by 'django-admin startproject' using Django 2.0.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import ... | [
"noreply@github.com"
] | FathallaSelim.noreply@github.com |
444d673c1810cb43f2cfa283f84dcbccf8fda795 | 20e9e11958bc916839fac70367bf741378adce29 | /insights_twitter.py | 57208da78a9a4e293a402bca24da16171b29d368 | [] | no_license | auhgniy/Advertising-Brain | 9e72a97400d5d090823bb78fe7ba16f1451682dc | 9b66f72900ac1bf84febb69fd7e8fa6aafb76a31 | refs/heads/master | 2020-12-05T00:29:20.855618 | 2016-12-05T13:03:13 | 2016-12-05T13:03:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30,076 | py | #! /usr/bin/env python
from __future__ import division
import clean_tags
import pandas as pd
import collections
import re
from nltk.parse.stanford import StanfordParser
from nltk import tokenize
from nltk.corpus import stopwords
from nltk.tokenize import TweetTokenizer
import string
import logging
import multiprocessi... | [
"srinath_achanta@Srinaths-MacBook-Pro.local"
] | srinath_achanta@Srinaths-MacBook-Pro.local |
ac5c1a1bf8e0c61d8642c34763349393db9297ab | 4e8674d7c83254aba7f2d327f16d5ad202a189b6 | /src/select_timeout.py | e4c1fdb5f764751985134229c1ae1f4e1ed59f15 | [] | no_license | raysmith619/dots | 0f5e34b17675cfb0903a20eda86493d37676b500 | c44ff3ebf57ec73c6fd8b7898cbc186668f83915 | refs/heads/master | 2021-06-17T02:34:48.850425 | 2021-04-27T13:54:24 | 2021-04-27T13:54:24 | 205,397,035 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 119 | py | # select_timeout.py
class SelectTimeout(Exception):
"""Base class for exceptions in this module."""
pass
| [
"noreply@github.com"
] | raysmith619.noreply@github.com |
4d6ad7d88ca97afe17636401a59ab4692dc2953c | 282734f1cd414e4d8382b56043a594549c11e608 | /examples/Lambdas.py | 1f7a894c899de10c5b96cf30c8f6c9d69a491cd6 | [] | no_license | vinhnguyentx/SWE-Lecture-Downing | 7557a894c33ecd34400ebd6789cec0f5abd09560 | f62b339c4c2b4c2c1e17aeb7985188c3b1018d59 | refs/heads/master | 2021-01-13T02:56:20.071290 | 2016-12-21T19:07:51 | 2016-12-21T19:07:51 | 77,078,925 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,494 | py | #!/usr/bin/env python3
# pylint: disable = bad-whitespace
# pylint: disable = function-redefined
# pylint: disable = invalid-name
# pylint: disable = missing-docstring
# pylint: disable = redefined-outer-name
# ----------
# Lambdas.py
# ----------
from functools import reduce
from types import FunctionType
prin... | [
"vinhnguyentx@gmail.com"
] | vinhnguyentx@gmail.com |
84474ce25794887c0706b5025e744cf3348e61e1 | 84e99abf98b8bb49b17562bce2cc9ef2a8c2147c | /build_data.py | 6fddb4619ef5721c44db3fb890bff2e85fe9f5b9 | [
"Apache-2.0"
] | permissive | SherifNeamatalla/german_ner | 0be1493dfeee952cdb7d9b557723bc8fb4013e56 | 962ffd41c245df25edd36661b7c593a45fc7700b | refs/heads/master | 2020-12-21T17:05:52.393700 | 2020-01-27T13:36:08 | 2020-01-27T13:36:08 | 223,882,716 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,742 | py | import os
import sys
from model.config import Config
from model.data_utils import CoNLLDataset, get_vocabs, UNK, NUM, \
get_vocab, write_vocab, load_vocab, get_char_vocab, \
export_trimmed_embedding_vectors, get_processing_word
def main():
"""Procedure to build data
You MUST RUN this procedure. It it... | [
"sherif.neamatalla@heuremo.de"
] | sherif.neamatalla@heuremo.de |
10a1d2a811ce4ba07891e72eb2c8798969f00886 | a794059576fc426d7ca1522a439829fcded8fcc2 | /plantcollector/urls.py | a8d441280c5b13af3b6b3b13579b1136ac8aa69a | [] | no_license | ari-flowers/Plant-Collector | 01aaca209a2e38f0cb08eb38953494197019f67c | 167f9324d38f8d03b86b3147146a89d83b4b345c | refs/heads/main | 2023-08-06T13:33:25.216701 | 2021-09-20T04:59:17 | 2021-09-20T04:59:17 | 406,843,165 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 955 | py | """plantcollector URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.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')
Clas... | [
"ARI.WEEDON@GMAIL.COM"
] | ARI.WEEDON@GMAIL.COM |
4fe76334525cba78341ce44ff61c6ffbca313abe | a8894df39aaa2853b78ecd7417d0c8be20ceb0a6 | /tesp/tesp/tesp_policy_graph.py | 185299624def970192f7a932d53db13d327c3f96 | [
"Apache-2.0",
"MIT"
] | permissive | hyyh28/tesp | 24d656f51ff9382a35d57728d39c8601b6ef9719 | 8109b39011e05545453950c918b14da07e70fad3 | refs/heads/master | 2020-09-17T03:44:02.888989 | 2019-12-17T12:13:07 | 2019-12-17T12:13:07 | 223,976,859 | 0 | 0 | NOASSERTION | 2019-11-25T15:09:39 | 2019-11-25T15:09:39 | null | UTF-8 | Python | false | false | 8,097 | py | # -*- coding: utf-8 -*-
# @Author : Lin Lan (ryan.linlan@gmail.com)
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import logging
import tensorflow as tf
from ray.rllib.models.catalog import ModelCatalog
from ray.rllib.utils.tf_run_builder import TFRunBu... | [
"ryan.linlan@gmail.com"
] | ryan.linlan@gmail.com |
251cb3140ca95659c961bddf548be90bc0a5f6b1 | 74299832ced94e618c7d55e7c5a6507ad99096ac | /myenv/bin/pip | bbe2dff4727c8787e52fd671b91b8350779b100a | [] | no_license | promaroy/blog-django | 03e12ae6cbd21b2e92548e58648b12e018c85a54 | 4f8a7ae7a363756d4f8423d67d04be7678959633 | refs/heads/master | 2020-06-04T21:58:34.082885 | 2020-03-18T02:27:15 | 2020-03-18T02:27:15 | 192,206,429 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 224 | #!/home/proma/third/myenv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pip import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"promaroy20@gmail.com"
] | promaroy20@gmail.com | |
7da12be20b0cf7f6dfdaf4b6ed1e6a7b1fb4459c | 62e58c051128baef9452e7e0eb0b5a83367add26 | /x12/6030/195006030.py | daab00096a42ba5ffccaf8a09c37c82a9d3352cd | [] | no_license | dougvanhorn/bots-grammars | 2eb6c0a6b5231c14a6faf194b932aa614809076c | 09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d | refs/heads/master | 2021-05-16T12:55:58.022904 | 2019-05-17T15:22:23 | 2019-05-17T15:22:23 | 105,274,633 | 0 | 0 | null | 2017-09-29T13:21:21 | 2017-09-29T13:21:21 | null | UTF-8 | Python | false | false | 2,476 | py | from bots.botsconfig import *
from records006030 import recorddefs
syntax = {
'version': '00603',
'functionalgroup': 'LA',
}
structure = [
{ID: 'ST', MIN: 1, MAX: 1, LEVEL: [
{ID: 'BGN', MIN: 1, MAX: 1},
{ID: 'DTM', MIN: 0, MAX: 99999},
{ID: 'QTY', MIN: 0, MAX: 99999},
{ID: 'PWK', MIN: 0, ... | [
"doug.vanhorn@tagglogistics.com"
] | doug.vanhorn@tagglogistics.com |
5c9e8489b7280a1d83133e64f463424a2041b4a0 | 829af6d35c5ed229c313493a1b0a74a49a6c4700 | /ecommstore/apps/core/urls.py | c63790fa36cfffba6cf660578310e49653dd2cd6 | [] | no_license | pavan19a97/ecomm_store | d723e487b58247ecdcfc3722defc9f5f03964d5f | d68c30d6aabdeb1da1b978afaee4fb321f5a455d | refs/heads/master | 2023-03-10T21:12:05.595651 | 2021-03-02T08:30:50 | 2021-03-02T08:30:50 | 341,919,631 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 298 | py | from django.urls import path
from apps.core import views
urlpatterns = [
path('search/', views.search, name= 'search'),
path("", views.home, name="ecommstore_home"),
path("signup/", views.register, name="sign_up"),
path('<slug:category_slug>/', views.category, name='category'),
] | [
"pavan19a97@gmail.com"
] | pavan19a97@gmail.com |
afafba576db5941f5344f4ddfa05198efb52e916 | 3cbe1374a686d205dcc2e4b8ed4adc08f31dcaef | /IOT/settings.py | b140e64f3eb20d33ad23a2e815bdc33acbc8f795 | [] | no_license | as1212742/Airveda-assignment | 0dbc87298ad38b53241e9278dc44c1227e6cab20 | 3118bced3310284e3a9c96945d811749567a6d1b | refs/heads/master | 2023-06-19T15:41:31.240955 | 2021-07-16T20:22:30 | 2021-07-16T20:22:30 | 386,755,028 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,426 | py | """
Django settings for IOT project.
Generated by 'django-admin startproject' using Django 3.2.5.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pathlib imp... | [
"as1212742@gmail.com"
] | as1212742@gmail.com |
fdb8b67651259f0f3579aa58882d7ec2834f4750 | 19bf086e4941fa602c53936ef3dd8fbe7f7112b6 | /hello.py | 8bea2c69c4b1b16b40341489bd067928e8b313e4 | [] | no_license | bhagvank/computer_vision | 0b061926392d68896816ab46c9a870dfef4ae1e7 | 06f0c58dc1573f8d373798d3e8157c9081cc0365 | refs/heads/master | 2021-12-10T20:38:07.654061 | 2021-08-24T18:09:49 | 2021-08-24T18:09:49 | 167,840,004 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 282 | py | import numpy as np
import cv2
image = cv2.imread('Contours.jpg')
imagegray = cv2.cvtColor(image,cv2.COLOR_BGR2GRAY)
ret,threshold = cv2.threshold(imagegray,127,255,0)
contours, hierarchy = cv2.findContours(threshold,cv2.RETR_TREE,cv2.CHAIN_APPROX_SIMPLE)
print("contours",contours) | [
"bhagvan.kommadi@apples-MacBook-Air.local"
] | bhagvan.kommadi@apples-MacBook-Air.local |
a469cdbb366798c7dc64e7f91a1e93de66f4b784 | 5391638d38a17280fa4abe5187bf8d417740a795 | /codechef/daily.py | 6f81c2b882341ac146df0982757cff2a7ecfb558 | [] | no_license | SiluPanda/competitive-programming | 39ce18ef48b13e381536c53a6769faa0edac3502 | 6e92ccb165381f1ee0b2cf42ea997ab44e6fc8eb | refs/heads/master | 2020-06-12T22:35:13.688327 | 2020-04-22T09:40:01 | 2020-04-22T09:40:01 | 178,658,860 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 572 | py | def ncr(n, r):
p, q = 1, 1
for i in range(n-r+1, n+1):
p *= i
for i in range(1, r+1):
q *= i
return p//q
n, m = input().split()
n = int(n)
m = int(m)
ans = 0
for _ in range(m):
s = input()
arr = [0]*9
for i in range(len(s)):
ind = 0
if i+1 <= 36:
... | [
"pandasilu428@gmail.com"
] | pandasilu428@gmail.com |
1911c5970e8214e411ed5540926ff84a7379768b | 6e6d1dfc5856e7d2bfc4a9ed0d9a71a660fd9504 | /index_cli/main.py | 3e8649d6ffb3892810d5e3b3d26d82ac9734c0ff | [
"MIT"
] | permissive | lishnih/index_cli | 0562dfa6bea2e9383704640c99e75fa82e4c29f8 | 57f23d5df5168bcc73e23e0eeabbb8317014585b | refs/heads/master | 2021-06-26T00:52:44.541830 | 2019-12-26T12:04:43 | 2019-12-26T12:04:43 | 98,915,298 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,515 | py | #!/usr/bin/env python
# coding=utf-8
# Stan 2012-03-12
from __future__ import (division, absolute_import,
print_function, unicode_literals)
import sys
import os
import logging
from importlib import import_module
from .core.types23 import *
from .core.db import getDbUri, openDbUri
from .core.r... | [
"lishnih@gmail.com"
] | lishnih@gmail.com |
9e1db930ff86073d4434d0841baa02a7d85d6f04 | fdd42edadf33f4a39b9da3024bc2b2d7c2005858 | /peerReviewErrors.py | 5af67a4b0249601f7c0adfcd0098bed40e2b4f94 | [] | no_license | eerickson07/Git-Practice | 775a1630d12275203623785f054aea585119f33c | 8927e2acac7d256c4aaa74b1752fb021b7acdb23 | refs/heads/main | 2023-08-30T01:16:22.290725 | 2021-10-03T21:39:23 | 2021-10-03T21:39:23 | 409,405,764 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,844 | py | # This is a header for the application
# You should read this header and insert your name and your date below as part of the peer review
# This is a typical part of any program
# Author: <Evan Erickson>
# Creation Date: <9/24/2021>
# Below is a simple program with 10 issues (some are syntax errors and some are log... | [
"noreply@github.com"
] | eerickson07.noreply@github.com |
ab6f7d06860e54fa3247d45833102ea2d6c05781 | 9d61174aeadae3ae17eabf1f6b128c583cb89c95 | /Week 2 assignments.py | dde1cfef257ee3b691ecf9da6705e58bff854401 | [] | no_license | HesterHuisman/BasicTrack | f4b565d28990ac1ca43ad6734186c36c318db702 | 97ce544d4c46857ba3aa5131381c568c8757da61 | refs/heads/master | 2023-01-01T22:21:07.528541 | 2020-10-22T10:13:46 | 2020-10-22T10:13:46 | 296,381,575 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,365 | py | # Week 2
# Hester Huisman
# 2.1
a = "All"
b = " work"
c = " and"
d = " no"
print(a+b+c+d)
# 2.2
print(6*(1-2))
# 2.4
bruce = 6
print(bruce + 4)
# 2.5
P = float(input("Please enter the principle amount: "))
r = float(input("Please enter the annual nominal interest rate: "))
n = float(input("Please enter the number o... | [
"noreply@github.com"
] | HesterHuisman.noreply@github.com |
788d714d928080162d37b7236fd6f219b53d2324 | ad59072be6c46c98782d8c04df97023a1cc6161c | /DL12-10-transfer-add-category.py | 356bc4124d6c2eb230a7631f4c8b09aa920c17f7 | [] | no_license | cyrilvincent/ML | 67c6bda2016bc70168bd197fe58eabc8dc3bfb00 | 42d11fad9b8b6ea3aba3d4173cb3bbdf7bbd638f | refs/heads/master | 2023-05-25T00:36:49.561860 | 2023-05-24T14:14:04 | 2023-05-24T14:14:04 | 191,420,219 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,240 | py | import tensorflow.keras as keras
model = keras.models.load_model('data/dogsvscats/vgg16model-small.h5')
newModel = keras.models.Sequential()
for layer in model.layers[:-1]:
newModel.add(layer)
layer.trainable = False
newModel.add(keras.layers.Dense(3, name="dense3"))
newModel.add(keras.layers.Activation('sof... | [
"contact@cyrilvincent.com"
] | contact@cyrilvincent.com |
8b020e93b8574d365fda710d40b503808f50fe49 | 33bf404dee069969b1a08c30860abd2f6edf7dd8 | /django/tests/admin_views/tests.py | e8e8d1c2d4b94d482deb5d145d4c01f83665a176 | [
"Python-2.0",
"BSD-3-Clause"
] | permissive | geek-kb/tikal_devops_task | fd378b7d241ae46b5287e6f6e76447a3657614cf | 3b67b3d50fd4c0147b45acc657f58bff077e3449 | refs/heads/master | 2021-01-13T13:47:23.845941 | 2019-10-29T17:02:42 | 2019-10-29T17:02:42 | 76,132,460 | 0 | 0 | null | 2019-10-29T16:02:49 | 2016-12-10T19:17:19 | Python | UTF-8 | Python | false | false | 282,746 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import datetime
import json
import os
import re
import unittest
from django.contrib.admin import AdminSite, ModelAdmin
from django.contrib.admin.helpers import ACTION_CHECKBOX_NAME
from django.contrib.admin.models import ADDITION, DELETION, LogEntry
from... | [
"itai.ganot@autodesk.com"
] | itai.ganot@autodesk.com |
641f4f42f0a966b01583d2f8fcff9852a475f06e | dec10fe0559ffbd41461c526390da87347e62384 | /stable/benchmarks/bug_tracking/x0_PENDING_q3_buggy.spec | b962d1dae6b76e1d54a0d5fa9d646d3341280f53 | [
"Apache-2.0"
] | permissive | blondimi/qcover | 9831ce685602f5c179a2b2669c31bc00ab0ae76c | 39d3163b99ece5771f200515b22a2d588f400aa5 | refs/heads/master | 2021-07-16T09:31:02.135689 | 2021-03-03T13:15:53 | 2021-03-03T13:15:53 | 70,058,165 | 8 | 6 | Apache-2.0 | 2021-03-03T13:15:54 | 2016-10-05T12:29:21 | Python | UTF-8 | Python | false | false | 5,486,330 | spec | vars
l0 l1 l2 l3 l33 l4 l5 l6 l7 l8 l9 l10 l11 l12 l13 l14 l15 l16 l17 l18 l19 l20 l21 l22 l23 l24 l25 l26 l27 l28 l29 l30 l31 l32 x0_BUG_REPORT_q0 x0_BUG_REPORT_q1 x0_BUG_REPORT_q2 x0_BUG_REPORT_q3 x0_BUG_REPORT_q4 x0_BUG_REPORT_q5 x0_BUG_REPORT_q6 x0_BUG_REPORT_q7 x0_BUG_REPORT_q8 x0_CLOSED_q0 x0_CLOSED_q1 x0_CLOSED_... | [
"blondin@in.tum.de"
] | blondin@in.tum.de |
2c48c72d71168e71c867bbfa64e1dc57e6d57765 | 5d8865a806d6c9780edaed8758b0e3b245e42f32 | /router_requests.py | fc05853d80fe82d495a902c33dd98dd8f4067b62 | [] | no_license | elongl/linksys-wrt54g | afec4c7cc715e4aff1e34a1426febba61a3434e5 | 52e3be6c350d208d1d81069304536b323aa332cd | refs/heads/master | 2023-06-18T01:59:49.004023 | 2021-07-10T12:48:02 | 2021-07-10T12:48:02 | 371,064,841 | 35 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,567 | py | import ipaddress
def get_ui_language_query(ui_language):
return {
"ui_language": ui_language,
"lan_ipaddr_0": "192",
"lan_ipaddr_1": "169",
"lan_ipaddr_2": "1",
"lan_ipaddr_3": "100",
"lan_netmask": "255.255.255.0",
"submit_button": "index",
"change_... | [
"elon@egk.local"
] | elon@egk.local |
72bbbcb0b7231deff3c7aea39bd3d33ec372d704 | 91d1a6968b90d9d461e9a2ece12b465486e3ccc2 | /robomaker_write_f/world-export-job_create.py | 9d9bc5bc86ab9a791055102b84c3526c3069944b | [] | no_license | lxtxl/aws_cli | c31fc994c9a4296d6bac851e680d5adbf7e93481 | aaf35df1b7509abf5601d3f09ff1fece482facda | refs/heads/master | 2023-02-06T09:00:33.088379 | 2020-12-27T13:38:45 | 2020-12-27T13:38:45 | 318,686,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 800 | py | #!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import write_parameter
# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/describe-instances.html
if __name__ == '__main__... | [
"hcseo77@gmail.com"
] | hcseo77@gmail.com |
cb50763a06562ed90a40194ed8ec0b365a2b6258 | 7278b31ebd6362bebf6986c2f3eca89d87201eb2 | /apgl/graph/test/MatrixGraphTest.py | 9ebf6bb8a71f60542fbfdb6dbe402a64a68a40d8 | [] | no_license | malcolmreynolds/APGL | c19827b1b834d3491d98a751c91838177aedc29e | 1703510cbb51ec6df0efe1de850cd48ef7004b00 | refs/heads/master | 2020-12-25T05:52:45.826947 | 2013-03-26T12:30:00 | 2013-03-26T12:30:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 78,752 | py | from apgl.graph.VertexList import VertexList
from apgl.graph.GeneralVertexList import GeneralVertexList
from apgl.generator.BarabasiAlbertGenerator import BarabasiAlbertGenerator
from apgl.util.PathDefaults import PathDefaults
import numpy
import os
import logging
import pickle
import numpy.testing as nptst
"""
A clas... | [
"charanpal@gmail.com"
] | charanpal@gmail.com |
b586baa8d46a591e777d5a5235059c44e5991d32 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2773/60662/287216.py | fd60f99029185c3b352f686730065a2f640c4b78 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,176 | py | matrix = []
for i in range(0, 4):
s = input()
if 0 < i < 4:
temp = list(map(int, s.strip(' [],').split(',')))
matrix.append(temp)
a = len(matrix)
dic = {}
nums_max = 1
if a == 0:
nums_max = 0
else:
b = len(matrix[0])
for i in range(a):
for j in range(b):
dic[(i, ... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
d149f7fc4838a57eb5d387bf9dd33399983d202b | e40a882c3717b3982db0fbc7ae42430746636ff0 | /dvalib/yolo/test_yolo.py | e2274640d2ca3e97769741d4a88bb08caeb74ff6 | [] | no_license | longchuan1985/DeepVideoAnalytics | 7dbe4bb9aab3ce15bc5bbcffcd3dbcea7157bea4 | 4264239ad6f9b23e450f90671c0120511c971678 | refs/heads/master | 2021-01-23T04:14:12.516312 | 2017-05-31T07:48:01 | 2017-05-31T07:48:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,046 | py | #! /usr/bin/env python
"""Run a YOLO_v2 style detection model on test images."""
import argparse
import colorsys
import imghdr
import os
import random
import numpy as np
from keras import backend as K
from keras.models import load_model
from PIL import Image
from yad2k.models.keras_yolo import yolo_eval, yolo_head
... | [
"akshayubhat@gmail.com"
] | akshayubhat@gmail.com |
3c2787490485dbc5fa2ab2d22d6718ad0bd2b37a | fbf0c1e61cf53a7d2d4e2d0d36c0401265b5b7a8 | /tournament.py | f3f1bddcd9b4b9e8ed4680f42e333a025a2eb116 | [] | no_license | brundagejoe/MovieMatchUps | 59d79d7ec6bfbe1a757a1c076f87624c30cde1d6 | 2a326e5dd7b08e11c3e2bddef042ca58a8eb5e7f | refs/heads/main | 2023-04-16T21:28:41.339867 | 2021-04-28T18:02:56 | 2021-04-28T18:02:56 | 362,561,874 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,234 | py | from elopy import *
import random
i = Implementation()
def start_match(optionA, optionB):
answer = '!'
while answer == '!':
answer = input(optionA +' or ' + optionB + "? ")
if answer == '<':
winner = optionA
i.recordMatch(optionA, optionB, winner=optionA)
elif answer == '>':
winner = ... | [
"noreply@github.com"
] | brundagejoe.noreply@github.com |
4252f46d4f2adfbb615adfa92725642a7fdef693 | 08615c227d90ec203ae81cdfa24cf4087d96d483 | /lab_6/primes.py | 99745c2ec4928b0049fefe73e0ebfe0f8fb8a645 | [] | no_license | dacong666/Cybersecurity-Lab | 50c979fca73857fc44ca64b66571c22964f9bd38 | f0cb3babccfad53e6937c5d4a47c2e6fa24aee71 | refs/heads/master | 2021-01-05T12:09:33.779431 | 2020-02-17T04:47:00 | 2020-02-17T04:47:00 | 241,019,426 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,309 | py | #50.042 FCS Lab 6 template
# Year 2019
##################
# Wang Zijia 1002885
##################
import random
def square_multiply(a, x, n):
y = 1
x_bin = "{0:01b}".format(x)
n_b = len(x_bin)
# for i in range(n_b-1, -1, -1):
for i in range(0, n_b):
y = (y**2) % n
if x_bin[i] == '1... | [
"noreply@github.com"
] | dacong666.noreply@github.com |
97cfd451ac38615c9662511981b31f535642725f | 4bc3b53a8700634b8d84f7f938b6080e577fbeab | /cchess2/__init__.py | beecd528bc8dc4e1bc6669e4b73ebf4cbfd1d224 | [] | no_license | sysucsai/Chess | 672e11a39dcaeeb53623fa3a0d552206a2939133 | 759371f3734861510b841faba279352c6cf3df30 | refs/heads/master | 2021-08-17T02:58:00.739367 | 2017-11-20T18:39:41 | 2017-11-20T18:39:41 | 108,986,865 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,005 | py | # -*- coding: utf-8 -*-
'''
Copyright (C) 2014 walker li <walker8088@gmail.com>
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 3 of the License, or
(at your option) any later versio... | [
"914989053@qq.com"
] | 914989053@qq.com |
e36a62dfda045e487fece7db7bb30e8bdd8d7b09 | 5f248eda47e9e5b85ce4278110035146ac2b9b13 | /main.py | fe8702b2cda51422e7825e8dddba02fc96d07d32 | [] | no_license | khoben/donatepay | 5ff4bb6d06e0d66125b66d08a09409a6ddfeef81 | 8b407dd155d435d68c141eaf92eb3dcb42550f75 | refs/heads/master | 2021-09-29T05:28:45.706980 | 2021-09-27T12:29:59 | 2021-09-27T12:29:59 | 171,117,409 | 1 | 2 | null | 2021-09-27T12:30:00 | 2019-02-17T12:06:15 | Python | UTF-8 | Python | false | false | 2,127 | py | import asyncio
import json
import re
import requests
from centrifuge import Client, Credentials
from settings import SOCKET_CONNECT_URL, SOCKET_LINK, TOKEN, WIDGET_LINK
class DonatePaySocketConnector(object):
def __init__(self, recover_messages=True):
self.__client = self.__create_client(recover_messag... | [
"extless@gmail.com"
] | extless@gmail.com |
6ac8920bc2ca9a0b1beff1c722655cb7609cf4a0 | 704261f57401f29c94d1d46a15f2ea9f8946887c | /binary_trees/path_sum_exists.py | 62208bded3837550b8d2d30e3ccc24f63d448c2b | [] | no_license | sunny0910/Data-Structures-Algorithms | b3da7fee880b4b24743d3792f03c9319b150e404 | 7e484faa5c75e690f2cb33ee95eedf4472c0089b | refs/heads/master | 2022-07-02T21:04:36.547250 | 2022-06-09T06:12:26 | 2022-06-09T06:12:26 | 238,624,310 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,153 | py | from binary_trees.binary_search_tree import BinarySearchTree
def has_path_sum(root, s):
"""
Function to check if root to leaf path with path sum equal to provided sum exists
:param root: Node
:param s: Int #provided sum
:return: Bool
"""
if not root:
return s == 0
ans = 0
s... | [
"sunnyramrakhiani10@gmail.com"
] | sunnyramrakhiani10@gmail.com |
fb431280f962b6a3106a828335fab028b18e0d33 | 6cf3229e0f8ae42069ae58914e218319a9bb9504 | /LeetCode/p339-NestedListSum.py | 973aa2bb252903af397227200c89888354b54b19 | [] | no_license | PhiphyZhou/Coding-Interview-Practice-Python | 0c0732a375e0f5ad70a52d3cf3fed01cb9f2e628 | 527dc19f7696f3883937e93cd36bd27b6d8ec24b | refs/heads/master | 2021-06-12T02:07:01.666282 | 2017-01-06T23:21:34 | 2017-01-06T23:21:34 | 74,787,703 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,602 | py | # 339. Nested List Weight Sum (LinkedIn)
# Given a nested list of integers, return the sum of all integers in the list weighted by their depth.
# Each element is either an integer, or a list -- whose elements may also be integers or other lists.
# """
# This is the interface that allows for creating nested lists.
# Y... | [
"phiphy.zhou@yahoo.com"
] | phiphy.zhou@yahoo.com |
880f93512f34e2e80dc747776e6ed3b406dd4715 | 0d14a4be28107b9487c16fde5865f661c34f3595 | /examples/common_features/species_2.py | f1c19320ad83c6dcd28d3f54c607a253cde10f4a | [
"MIT"
] | permissive | lamyj/sycomore | 729780544e5ac3940e47493c205797556c7f81b8 | d0335f1b8b26facb2a0581de6c19e6e999517599 | refs/heads/master | 2023-09-01T18:02:56.062085 | 2023-08-06T16:06:53 | 2023-08-06T16:06:53 | 199,385,133 | 22 | 4 | null | null | null | null | UTF-8 | Python | false | false | 445 | py | import sycomore
from sycomore.units import *
species = sycomore.Species(1000*ms, 100*ms)
# Assign the diffusion coefficient as a scalar
species.D = 3*um**2/s
# The diffusion coefficient is stored on the diagonal of the tensor
print(species.D[0,0])
# Assign the diffusion coefficient as a tensor
species.D = [
[3*um... | [
"lamy@unistra.fr"
] | lamy@unistra.fr |
09e55070393bc4652a414a5c0f5d21658a9ca83d | 8972e156004b307d65714da04f5977cdb7a4f0a7 | /home/migrations/0004_auto_20210827_0405.py | b0963c8c70890e9a815475e55c0d6effa47948c6 | [] | no_license | SanchitaMishra170676/zh2hackathon_Tech_Army | 9375003732b3d7dc33e088ef4f85b02d9e087363 | b5183e2ab0a1e35053281abd3cc67589e4d55517 | refs/heads/master | 2023-07-16T21:03:12.766776 | 2021-08-27T07:27:23 | 2021-08-27T07:27:23 | 400,108,675 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 575 | py | # Generated by Django 3.2.6 on 2021-08-26 22:35
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('home', '0003_auto_20210827_0131'),
]
operations = [
migrations.AddField(
model_name='userdetail',
name='trusteeamt',... | [
"59258203+SanchitaMishra170676@users.noreply.github.com"
] | 59258203+SanchitaMishra170676@users.noreply.github.com |
b8bec527851efc9ea689259aa4a450090032f5b8 | c8de11ba58a984ed98a4d9839d07d4e44e60293c | /app/backend/apps/tps/migrations/0005_tienda_visitas.py | 818cb5281fc09fb6f743498f6042c337486a5607 | [] | no_license | avzuniga/ventana-paz-backend | 65c9a73351ec08b53a2dd9da49601ec56211bc1b | 1081f35787fe0640091a917919c62821cd2422a4 | refs/heads/master | 2022-11-24T06:50:56.163657 | 2021-05-21T15:44:09 | 2021-05-21T15:44:09 | 234,998,351 | 0 | 0 | null | 2022-11-22T02:41:49 | 2020-01-20T01:49:54 | Python | UTF-8 | Python | false | false | 386 | py | # Generated by Django 2.2 on 2020-08-17 21:33
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('tps', '0004_auto_20200805_0441'),
]
operations = [
migrations.AddField(
model_name='tienda',
name='visitas',
... | [
"jbayuelo@santaclaratech.es"
] | jbayuelo@santaclaratech.es |
0dbdd86edbca408278bffd06782c25f88253305a | f5b759460badefbf34e7f1c2afa5360d395a71fa | /FOMO/catalog/migrations/0004_order_orderitem_payment.py | f69e0454650cd9f1996a52f68d7f5009b055ed0a | [] | no_license | kevinpsites/Fomoco | 7d34e137588ebefe8c4c2f54f0a3f34e1fe29888 | 5ba3d2e4fdbe5b388ba659b2d4e307db89f90b3b | refs/heads/master | 2020-03-30T04:56:21.481049 | 2018-09-28T18:54:11 | 2018-09-28T18:54:11 | 150,770,215 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,615 | py | # Generated by Django 2.0.2 on 2018-03-27 22:40
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('contenttypes', '0002_remove_content_type_name'),
migrations.swappable_dependency(se... | [
"kevinpsites@gmail.com"
] | kevinpsites@gmail.com |
f0a02272ab36aa571b48b286b6d797bf93b3a447 | 705f48f60cd3b8ce201a26e1da04f1b6243dfed7 | /test/test_performance_collection_model.py | 0e8a59f079f2209ea557ef779060094ca732f46b | [] | no_license | Worldcycler/PyBinckBank | ad857983ba066d6fa051e7227ea46480bdf41ae1 | 7595f61c127816188caa9649b99dec73ecf87a67 | refs/heads/main | 2023-04-18T05:54:13.076749 | 2021-04-30T16:32:21 | 2021-04-30T16:32:21 | 363,193,261 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,165 | py | # coding: utf-8
"""
BinckBank.OpenApi
BinckBank OpenAPI is an API Platform to access BinckBank's trading services. Curious? Request your access key after reading the documentation on Github: https://github.com/binckbank-api/client-js#binck-openapi-documentation # noqa: E501
OpenAPI spec version... | [
"gertjan.centen@perfectview.nl"
] | gertjan.centen@perfectview.nl |
be591fb5e2d1805a2ef27f18908ad61e4fb28266 | 6dfba71133c5b93cef5b944dcfb50d6eebceca26 | /src/acsf_feat.py | 604fa9e5091700a7964e38ab3b336f034d10358e | [] | no_license | matsuken92/molecular | 67b223be7be604cdf907dcd66b9948faf9119433 | 759a697070efaac681aff89f645ff2a6a79f0b78 | refs/heads/master | 2022-02-18T01:41:01.674199 | 2019-08-29T04:01:25 | 2019-08-29T04:01:25 | 190,421,154 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,377 | py | # 基本ライブラリ
import pandas as pd
import pandas.io.sql as psql
import numpy as np
import numpy.random as rd
import gc
import multiprocessing as mp
import os
import sys
import pickle
from collections import defaultdict
from glob import glob
import math
from datetime import datetime as dt
from pathlib import Path
import scip... | [
"matsuken92@gmail.com"
] | matsuken92@gmail.com |
6a8a0ffd4334e1c6b213dea8a634c919a5926733 | f7de3c56c057ed50b64c5b9c264fff4f84a8f690 | /DP/stringedit.py | 2004c555a673ed6fd37a76f8201ff61676616488 | [] | no_license | kristianeboe/Algorithms-and-datastructures | a26b9c049e88c0126859a9b320db32e24e27448c | 0b9723bf78fa2291a611c3d8c58440078ff6e7b4 | refs/heads/master | 2016-09-10T01:57:08.509537 | 2015-05-05T18:41:03 | 2015-05-05T18:41:03 | 35,117,316 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 570 | py | def stringedit(r_word, w_word):
c = [[1]*len(r_word)]*len(w_word)
if r_word[0] == w_word[0]:
c[0][0] = 0
else:
c[0][0] = 1
for col in range(1,len(c[0])):
c[0][col] = c[0][col-1]+1
#for row in range(1,len(c)):
# c[row][0] = c[row-1][0]+1
print c
print... | [
"kristian.e.boe@gmail.com"
] | kristian.e.boe@gmail.com |
afe7cf3b05e5e13d181c76d0400c018587ea84c6 | a2c7f8edea8ee63707523597154a3ab106e17c1d | /MySQL/last version/getStockInfo.py | 7301d8e06c5ac69421f565dbd2deaca09f59e092 | [] | no_license | ypy02784/stockTushare | 16648daf881cab70c3fdeb4e0041d14bb5923696 | 3e7e8c93178461a783c06c7e8ffe833fec3c32cd | refs/heads/master | 2020-04-26T02:12:01.185747 | 2019-04-07T13:22:56 | 2019-04-07T13:22:56 | 172,702,106 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,096 | py | #最原始版本,每个股票都创建一个数据表,太消耗资源
#coding=utf-8
import pymysql
import tushare as ts
import time
DBname = 'stocktushare'
dailyDB = 'daily'
dailybasicDB = 'dailybasic'
starttime = '20180101'
endtime = time.strftime('%Y%m%d', time.localtime(time.time())) #默认系统当前日期
stockDB = pymysql.connect(
"localhost", "root", "", DBname,... | [
"ypy02784@163.com"
] | ypy02784@163.com |
644e794cd3416642a04ad3eb5f737267c95cd399 | 95f32d4b2f869a650deb7cf60de870e58bc06c07 | /python_ejercicios basicos_III/bucles/resueltos_v2/ejercicio1_v1.py | ef34f880657e38c9f00928e91eba1442e151ce75 | [] | no_license | gguillamon/PYTHON-BASICOS | 79916e054ac0beb15264b9eb959a9ae6087e268c | c1a8c7e5d7403ef4c7d702a7fac58c2e7b48f7e5 | refs/heads/main | 2023-02-03T09:31:35.748066 | 2020-12-17T22:02:24 | 2020-12-17T22:02:24 | 321,033,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 453 | py | # Crea una aplicación que pida un número y calcule su factorial (El factorial de
# un número es el producto de todos los enteros entre 1 y el propio número y se
# representa por el número seguido de un signo de exclamación.
# Por ejemplo 5! = 1x2x3x4x5=120)
resultado = 1;
num=int(input("Dime un número:"))
contador ... | [
"gabrielguillamoncarrilero@gmail.com"
] | gabrielguillamoncarrilero@gmail.com |
dadaaf9801f209dcc21119a8fb3b26639b8915d1 | 7890ce8f58807853e66e4c4ac274ce7cafe3ef69 | /converter/tfjs2python.py | d4681906cfb410ec07eae1515670670df1388816 | [
"MIT"
] | permissive | DimmDell/PoseNet-CoreML | 5529de083e275c193f215dbcf69672082af0ab5c | a6297a8499cfd63754a038843f70f79851cb3978 | refs/heads/master | 2020-04-03T15:36:55.719496 | 2019-05-07T15:38:36 | 2019-05-07T15:38:36 | 155,368,773 | 1 | 0 | MIT | 2018-10-30T10:48:17 | 2018-10-30T10:48:16 | null | UTF-8 | Python | false | false | 6,195 | py | import json
import struct
import tensorflow as tf
import cv2
import numpy as np
import os
import yaml
import sys
f = open("config.yaml", "r+")
cfg = yaml.load(f)
checkpoints = cfg['checkpoints']
imageSize = cfg['imageSize']
chk = cfg['chk']
outputStride = cfg['outputStride']
chkpoint = checkpoints[chk]
if chkpoint ==... | [
"m.otsu@infocom.co.jp"
] | m.otsu@infocom.co.jp |
4d65d3fa42d2e83f4de2501077501142d36f7b6a | 63963c158366cc3e2ad46777d51a41cc5c62b2d7 | /attack/textattack/transformations/word_merges/word_merge_masked_lm.py | 62b0f7031235897920458ac2ba1b280a9040c86c | [] | no_license | Opdoop/MRAT | 3ad009d1fd122b1e3f7dac9a5274b0fc4a057d8c | 6523a6fd6bc8eb6a70ff3f77c466f86de151b592 | refs/heads/main | 2023-06-16T20:13:44.862756 | 2021-07-13T02:30:22 | 2021-07-13T02:30:22 | 365,230,190 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,043 | py | import torch
from transformers import AutoModelForMaskedLM, AutoTokenizer
from textattack.shared import utils
from textattack.transformations.transformation import Transformation
class WordMergeMaskedLM(Transformation):
"""Generate potential merge of adjacent using a masked language model.
Based off of:
... | [
"247536381@qq.com"
] | 247536381@qq.com |
198c683ce8f8d6109e25e666ec663c387887bcf4 | 7c66bba92b484e5fa6ee282ef39f2c26875ca775 | /auto_login/weibo_auto_login.py | adbac7ea6274fa21e0b7a49a1bb7cc6022b031ae | [] | no_license | KqSMea8/PythonTools | a5ac17182b2689a706180dc349d59c2484d3984c | 7279570b82fecbf59b71aa6b58ef975e90c660df | refs/heads/master | 2020-04-13T04:19:19.209243 | 2018-12-24T05:13:12 | 2018-12-24T05:13:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,876 | py | #!/usr/bin/env python
# encoding: utf-8
"""
@version: 1.0
@author: ‘yuxuecheng‘
@contact: yuxuecheng@baicdata.com
@software: PyCharm Community Edition
@file: weibo_auto_login.py
@time: 26/10/2017 09:49
"""
import sys
import urllib
import urllib2
import cookielib
import base64
import re
import json
import rsa
import b... | [
"xinluomed_yuxuecheng@git.cloud.tencent.com"
] | xinluomed_yuxuecheng@git.cloud.tencent.com |
c37ca5f5af71ee913740bf8782a9b1723a97e4af | a80d37eefe457e3cbccd44bfafc8b2f4b96a76c1 | /data/parse_dataset_from_obtained.py | 236dca04d3ac9253b9156f54f58a0b4e70756cbc | [
"Apache-2.0"
] | permissive | AWS-Spot-Analysis/spot-analysis | 59db1f550966fe81b7120280d23aae609859ee5d | 9c8c08df50488af39459a0d515ab32b15ced3472 | refs/heads/master | 2020-12-24T09:29:56.279558 | 2017-10-19T14:28:42 | 2017-10-19T14:28:42 | 73,291,396 | 4 | 3 | null | 2016-12-11T14:38:03 | 2016-11-09T14:32:00 | Jupyter Notebook | UTF-8 | Python | false | false | 813 | py | import pandas as pd
import numpy
import os
rootdir = 'aws-spot-price-history'
def parse(filename):
df = pd.read_csv(filename, sep="\t", header = None)
df.columns = ["info", "SpotPrice", "TimeStamp", "InstanceType", "OS type", "AvailabilityZone"]
df['TimeStamp'] =pd.to_datetime(df.TimeStamp)
df.inde... | [
"shwsun@bu.edu"
] | shwsun@bu.edu |
a0baff150e5ac14ccc018677c02c5ee5b019b16c | becce1512e56ab149391db4e9bc617659c8c017a | /Basic/元编程.py | 0a44f857c92e0ef7d7c5d5f017cf7e2972c4b770 | [] | no_license | liuwenboking/pythonwork | b66386b55829e96dd0405167bbcfc5076f2fdb95 | 954c15026485930a68bc7a1467b3c68b17f4fb2e | refs/heads/master | 2021-01-20T15:44:47.762013 | 2016-08-15T06:05:39 | 2016-08-15T06:05:39 | 63,871,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 143 | py | #coding:utf-8
import inspect
import urllib
A = type("T",(object,),{"age":20,"height":172})
print inspect.getmro(A)
a = A()
print a.age,a.height | [
"liuwenbo_wenbo@163.com"
] | liuwenbo_wenbo@163.com |
9354f6e7cad1c77d08dc20c7b869265990f1ed48 | 48b590bbcf3c6309365cb1287ea1d7f8f4c2ec83 | /PredictionFunctionFinal_old.py | 9a83c22adb904646523def44990e42b55bdac7f9 | [] | no_license | AshleshaBansode/Bitcoin-Price-Prediction | 9caf42957cea7a4c20ba0fb9dfca35e508d4688d | c822218e5c590de20ded9a28736c96027df65997 | refs/heads/master | 2020-08-02T12:31:10.950047 | 2019-09-27T15:55:04 | 2019-09-27T15:55:04 | 211,347,031 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,434 | py | """
Created on Sun Nov 25 11:18:15 2018
@author: prachi
"""
import warnings
warnings.filterwarnings("ignore")
import datetime
import numpy as np
import pandas as pd
import statsmodels.api as sm
from dateutil import parser
from keras.models import Sequential
from keras.layers import Dense
from keras.layer... | [
"noreply@github.com"
] | AshleshaBansode.noreply@github.com |
d3decf89e65ed4a009433edaae1fe823858ccff1 | 18699f22eea5137e6d14b0dad3b90b931b0ce9bf | /validation/validation_utils.py | 585716ccd92f5270b00ffc8b469c93960e953a76 | [
"MIT"
] | permissive | davendw49/ebm | 9407ba09425c4fb192a2c5b0298c9604380e155b | 56890ab0f7291c3ae5e4b503dd27d0534c1a13b8 | refs/heads/master | 2020-12-10T21:39:35.848170 | 2020-04-25T05:10:29 | 2020-04-25T05:10:29 | 233,717,703 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,708 | py | import numpy as np
import matplotlib.pyplot as plt
from pprint import pprint
import math
import sys
import time
import os
import powerlaw
def progressbar(cur,total):
percent = '{:.2%}'.format(cur / total)
sys.stdout.write('\r')
sys.stdout.write('[%-50s] %s' % ( '=' * int(math.floor(cur * 50 /total)),... | [
"davendw49@gmail.com"
] | davendw49@gmail.com |
847889e16e3bd3550569db29c5361a86553d6bf7 | f4b60f5e49baf60976987946c20a8ebca4880602 | /lib64/python2.7/site-packages/acimodel-1.3_2j-py2.7.egg/cobra/modelimpl/ident/contextelement.py | b380cc640393755a40695dbc4560e4f854377a06 | [] | no_license | cqbomb/qytang_aci | 12e508d54d9f774b537c33563762e694783d6ba8 | a7fab9d6cda7fadcc995672e55c0ef7e7187696e | refs/heads/master | 2022-12-21T13:30:05.240231 | 2018-12-04T01:46:53 | 2018-12-04T01:46:53 | 159,911,666 | 0 | 0 | null | 2022-12-07T23:53:02 | 2018-12-01T05:17:50 | Python | UTF-8 | Python | false | false | 4,121 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2016 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"collinsctk@qytang.com"
] | collinsctk@qytang.com |
49b58e1ed040af08122af8369babb88ce1f4da9c | b735b7687efdefc62a196d786ebc310b4ab67a9b | /Game_Objects/hunter_class.py | 92aaf119be7f28f117fc681e8c916b32ea3809fe | [] | no_license | EgorKolobov/Terminal_Snake | bdfeec384d4981d7ff0abef0c4e7ddd328dc7ae1 | 3d20049afe57160b5b97b2271f55cfb21c595a80 | refs/heads/master | 2021-06-11T13:32:55.958094 | 2021-05-29T01:33:12 | 2021-05-29T01:33:12 | 196,061,087 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,233 | py | import curses
from Game_Objects.global_vars import MAX_X, MAX_Y
'''
Hunter. Follows an appropriate route and shoots rockets(up or down)
Appears every 15 points in upper left corner.
Very dangerous enemy. The only way to get rid of him is to eat him or make him crash
'''
class Hunter(): # make him bump into Snake's ... | [
"ekoloboff@gmail.com"
] | ekoloboff@gmail.com |
dfd52d177c06068aee276e5a9c3b74489fa47054 | db2bf2a0f7e29b23689b00b352a814673ff107dd | /accounting-notebook-api/app/account/resource.py | 7744f6ef5b1c20b5ef13a5b5abacf8aa26d4305d | [] | no_license | gonzalogtesta/accounting-notebook | 829375b9a5537e9eab1281d6766671207565d307 | b10bb658a37bdb2a3bfb1377ab9003fbbb2044a7 | refs/heads/master | 2021-06-18T12:53:26.938171 | 2019-08-13T19:26:33 | 2019-08-13T19:26:33 | 202,177,877 | 0 | 0 | null | 2021-05-06T19:39:45 | 2019-08-13T15:54:34 | Python | UTF-8 | Python | false | false | 278 | py | from flask import jsonify, request
from .schema import account_schema
from marshmallow import ValidationError
def register(app):
@app.route('/', methods=['GET'])
def get_balance():
result = account_schema.dump(app.account)
return jsonify(result.data)
| [
"gonzalogtesta@gmail.com"
] | gonzalogtesta@gmail.com |
af8885bbfa9768d8dcd4519de5903f8531370bf0 | 092e978f7eb32bbd40567af26dd97cdcb491a423 | /scavislam_rviz/scripts/send_test_messages.py | 35179f1e31fb30d026c02c55ab7d26f8957db353 | [] | no_license | asimay/mapping_scavislam | 641a81c5d46fddb567c8d04be1a44c59a94319dc | 555108f7235fbe4c51fce4e44285df66796a7670 | refs/heads/master | 2021-01-18T01:14:44.641806 | 2014-05-11T07:50:53 | 2014-05-11T07:50:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,145 | py | #!/usr/bin/env python
from scavislam_messages.msg import SLAMGraph, Vertex
from geometry_msgs.msg import Point, Pose, Quaternion
from std_msgs.msg import UInt32
import rospy
import numpy as np
import tf
def generate():
sg = SLAMGraph()
sg.header.frame_id = "/base_link"
xs=np.linspace(0,10,11)
position... | [
"contradict@gmail.com"
] | contradict@gmail.com |
5b02e1ba45452c9004fb812ebda0b833c8aa0b4c | dac3ba939e851180206e150007518a765eefdd10 | /alien_game/setting.py | 7a60cacd2f915512c9f27a30777a3b714b699078 | [] | no_license | wzyzyw/python_learning | c0079bedff1ace33b780b576f1fbd1b7cc92e724 | e8bb68ee943fd3fbbf6749de94fc22077f217f9f | refs/heads/master | 2020-12-27T04:25:45.525735 | 2020-02-23T05:49:45 | 2020-02-23T05:49:45 | 237,764,807 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | py | class Setting():
def __init__(self):
self.screen_width=1000
self.screen_height=700
self.bg_color=(255,255,255)
self.bullet_allow=4
self.ship_num=3
self.alien_point=50
| [
"wangng_zhi_yongwhu@126.com"
] | wangng_zhi_yongwhu@126.com |
05491b65b8327290292c4c02a6a4609b06d567ab | 3a5f2d538a89885034700cbfb820c99e9bc1dead | /ex2.py | ef9d66dced120a11024f700e82ee0a8b878f380b | [] | no_license | ganpani/Test | 4d34a810b890f3409a6dfb5f237008a228524e38 | 94f8b3fff75a3175210c25cc0a880f456e831b7a | refs/heads/master | 2020-11-30T14:57:16.622465 | 2019-12-27T10:45:52 | 2019-12-27T10:45:52 | 230,424,472 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21 | py | print("some changes") | [
"nehaganeshkumar@gmail.com"
] | nehaganeshkumar@gmail.com |
413c447ae87a99c46e939d5272f0758ddaaaf404 | 60adea1e8ed2a93be924b5b7a284deaf63decc98 | /Pos_data_building/data_uniform/top14-p2-extract.py | 04dc6623786e5a1e53c7cc6b4eb12c83e3f69658 | [
"MIT"
] | permissive | luoyizhi516/Tencent_WWF | 3fa3b84f5d8e597da9308e363f84152c52301800 | 2b248a810295f95cb0483837cb8cb8797c144821 | refs/heads/main | 2023-08-14T21:21:29.959049 | 2021-08-23T14:01:12 | 2021-08-23T14:01:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,521 | py | # -*- coding: UTF-8 -*-
import os
import pandas as pd
import shutil
import numpy as np
import cv2
from tqdm import tqdm
import pyfastcopy
import json
def main():
csv_file='D:/WWF_Det/WWF_Det/Raw_annoations/top14-part2.csv'
df=pd.read_csv(csv_file)
data_set='D:/top14-dataset-part1/'
box_num=0
cat... | [
"jingyuanchen1423@gmail.com"
] | jingyuanchen1423@gmail.com |
98c9ea7ae3583726ab04631da7845b8a0c42a324 | 561c03311fecf8c557677b417ecd03d7b41859e7 | /Lesson-6/Lesson 6-3.py | 20d718bd504c8d9821fe216030590585cd70e33a | [] | no_license | citizenkey/Py_lesson | df39c17ff7a2819d7885dbb17157409e830acfe1 | e45d222e07aa730795982253c40144a5d230ca26 | refs/heads/master | 2022-11-07T03:40:52.201898 | 2020-06-28T18:03:03 | 2020-06-28T18:03:03 | 261,491,203 | 0 | 0 | null | 2020-06-28T18:05:07 | 2020-05-05T14:14:00 | Python | UTF-8 | Python | false | false | 1,606 | py | '''Реализовать базовый класс Worker (работник), в котором определить атрибуты:
name, surname, position (должность), income (доход).
Последний атрибут должен быть защищенным и ссылаться на словарь, содержащий элементы: оклад и премия, например,
{"wage": wage, "bonus": bonus}.
Создать класс Position (должность) на базе к... | [
"citizen.key@mail.ru"
] | citizen.key@mail.ru |
03317c67cafc3e53e7c55ae1f139a606e197d89e | e2a6f7a703f194e6691b950db971bfe17e875404 | /catalogo_rh/migrations/0002_auto_20200301_0654.py | 4f6a5b02971430cf9546a96973099c3a81a4eac6 | [] | no_license | lisagomez/my-site | d72079321b3f6252b5c1cd1b9bb867f65381b6eb | 4fec4c35e759677f4b85ddb621b315030fefd3d4 | refs/heads/master | 2021-01-05T06:17:00.379281 | 2020-03-01T16:16:25 | 2020-03-01T16:16:25 | 240,911,959 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,489 | py | # Generated by Django 2.2.10 on 2020-03-01 12:54
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('catalogo_rh', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='nivelDeConfidencial... | [
"lisagomez967@gmail.com"
] | lisagomez967@gmail.com |
4368c892b4db23bd6da3932ffd5b9c3e520e2067 | a66937154323988a6e05958ca1acc9c3f70af51c | /dia 7 Funciones/repasoclase7.py | bcabc584b5593b9413ac77782105c0b8d226c9db | [] | no_license | mariadelmarr/Python | f783ec4232e3ca09e1598a2f419169df3890e8ef | 07b76ea80d24dbedc7b3bcb734b234ce88bce6f6 | refs/heads/master | 2022-12-05T14:49:49.598249 | 2020-08-01T03:13:33 | 2020-08-01T03:13:33 | 262,640,202 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,210 | py | print('Binevenido al super software de menus.')
def main():
print('Ingrese dos números.')
num1 = int(input('Agregue el primer número: '))
num2 = int(input('Agregue el segundo número: '))
menu(num1, num2)
def menu(num1, num2):
print('''Opciones:
a. Sumar.
b. Restar.
c. Multiplicar.
... | [
"maria1.22dm@gmail.com"
] | maria1.22dm@gmail.com |
cc15455e68db61f0bff27eb0c9427a36c5e95576 | 300fca40b5c0b5069d13776c2d6430cbb0939cca | /ödev1.py | c0585b1f5093c95f3609386d10d4900dd29d9a67 | [] | no_license | mervegulhalkaci/gaih-students-repo-example | 8e30f79dafc4e21a3de6cd9338daacd4153bf36e | fd1186c53cd4adfb40cff83debce798730f1cdc0 | refs/heads/main | 2023-03-23T19:45:22.807640 | 2021-03-14T20:36:28 | 2021-03-14T20:36:28 | 345,755,233 | 0 | 0 | null | 2021-03-08T18:28:28 | 2021-03-08T18:28:27 | null | UTF-8 | Python | false | false | 688 | py | list1 = [1,3,5,33,9,11,13,15,17,51,103] #tek sayılardan oluşan liste.
list2 = [2,4,6,58,10,12,24,62,18,20,100] #çift sayılardan oluşan liste.
list = list1+list2 #tek sayılardan ve çift sayılardan oluşan listemizden yeni bir liste oluşturduk.
print(list)... | [
"noreply@github.com"
] | mervegulhalkaci.noreply@github.com |
3f6eb63fbe71038f2b2472b5453acfd949056eca | 200ff7e6d0a03c168f52cef73fdbb76fbfd9be18 | /modules/u4_programming/forLoops/squareNumbers.py | c5c7aecc444dfd94d873bdfeec8b16c390f3d002 | [] | no_license | NorthcoteHS/10MCOD-Thomas-MCSHANE | a55c60cf652e99ea01a9b27170d86744472b37da | a6d4be9163a9f524c26bf50d325c073d80f69d31 | refs/heads/master | 2021-04-15T17:27:20.167511 | 2018-06-14T01:47:51 | 2018-06-14T01:47:51 | 126,899,015 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 87 | py | squares = []
for x in range (1,11):
x = x**2
squares.append(x)
print (squares)
| [
"mcs0001@nhs.vic.edu.au"
] | mcs0001@nhs.vic.edu.au |
9a0e63c5b5b8525ef929e64c55a91bb636cdfab2 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/Cases/2938/.mooctest/answer.py | 8566383381c158a21b1b6cefb037db2930fa8950 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 449 | py | #include<bits/stdc++.h>//头文件
using namespace std;
string a[100];//定义要排序的字符串数组
stringstream ss;//百度一下,你就知道
int main(){
for(int i=1;i<=100;i++){//开始存入1-1000的数
ss<<i;
ss>>a[i-1];
ss.str("");//清空缓存
ss.clear();//充值(重置)状态
}
sort(a,a+100);//排序
for(int i=0;i<100;i++)
cout<<a[... | [
"382335657@qq.com"
] | 382335657@qq.com |
323889d87ee5521ee2b5fbc0c8528cc191e37162 | ffd045f8d3360221c717d931e1199f3e3a1bc891 | /aliyunsdkcore/auth/roa_signature_composer.py | 0ed1ea238032f281e1fba09f128b3a886a10d1e2 | [] | no_license | erhuabushuo/aliyun-python-sdk-core-2.0.31 | 1c7a7d334c78df0019eea499575fdacca081c0fb | 7b0b31e4094e9eb46dfc44e0d137a0d0a7e804f9 | refs/heads/master | 2021-01-01T04:19:04.458721 | 2016-05-18T05:39:42 | 2016-05-18T05:39:42 | 59,083,332 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,593 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may ... | [
"erhuabushuo@gmail.com"
] | erhuabushuo@gmail.com |
12a00bcd62dfb245309aaccdae449bc1ab0de60a | cb3e75d75b84d5f73457da48ace564f431575ac8 | /Publish_manager/models.py | 3d446247ad97efb8b9c1c2203570ebe9b3a99ed0 | [] | no_license | leehongfa123/Book_Manage_System | 515579e8628c65c2fc080962f623c3de44857ac8 | 34f1f4e34174d2bf8e62aed61bdbdc707b31a1cf | refs/heads/master | 2020-09-21T11:56:38.379857 | 2019-11-29T05:57:01 | 2019-11-29T05:57:01 | 224,781,574 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 986 | py | from django.db import models
# Create your models here.
class Book(models.Model):
nid = models.AutoField(primary_key=True)
title = models.CharField(max_length=32)
price = models.DecimalField(max_digits=8, decimal_places=2)
pub_date = models.DateField()
publish = models.ForeignKey(to="Publish", on_d... | [
"leehongfa@126.com"
] | leehongfa@126.com |
1c11a798983d2393adfcd782e67bcff27aa1a55c | ec021641486bcedb67525c880d818f5618c49c77 | /backend/users/tests.py | a4ba978a7fab6a242db9f5d2318ebd50bd52608f | [] | no_license | Jonathan-Carrasco/Restaurants | 320d303340f033c2eb065abedfdf935688d85c21 | 5e476f3e7fdf4df8bee9b008b4172686c9fc83f2 | refs/heads/master | 2022-12-26T03:45:06.550031 | 2020-01-20T00:56:13 | 2020-01-20T00:56:13 | 234,991,735 | 0 | 0 | null | 2022-12-10T15:27:36 | 2020-01-20T00:54:57 | JavaScript | UTF-8 | Python | false | false | 163 | py | from users.models import Users
from user_input.models import UserClick
query = Users.objects.all()
query.delete()
query = UserClick.objects.all()
query.delete()
| [
"jonathancarrasco411@gmail.com"
] | jonathancarrasco411@gmail.com |
8885b77cdd0914bc461b0303e7c24a2db6ac1e80 | 2be8a9f06d4003d12c0a727fb83d284c31a53050 | /HoudiniHotBox17.0/lib/Cd_Material.py | 78316d6bcb22180bb4bd80f79268dcbe13118016 | [] | no_license | LiuLiangFx/SmileHotBOX | 7551d9578b2defe612950cb8e3bffdb85024cede | 8bd8eac69b3c2a9824b9aa4488ca77789bea8d85 | refs/heads/master | 2021-01-01T10:22:26.959731 | 2020-02-09T03:16:32 | 2020-02-09T03:16:32 | 239,236,801 | 0 | 0 | null | 2020-02-09T02:47:18 | 2020-02-09T02:47:18 | null | UTF-8 | Python | false | false | 1,494 | py | import hou
class Cd_Material:
def __init__(self):
self.pane=hou.ui.paneTabOfType(hou.paneTabType.NetworkEditor)
self.node= hou.selectedNodes()[0]
fl=open('material.txt', 'w')
fl.write(self.node.path())
fl.close()
def run(self):
if self.node.typ... | [
"change52092@yahoo.com"
] | change52092@yahoo.com |
82d781cf2b96438286ea7fd29e2c1490e21df986 | 6191bad7750404bc0bcaec43a8dea51b52980f04 | /Seção_07/Collections/deque.py | b4b481fd5e7d3175e21b72433dcb6f37509d11ff | [] | no_license | Lehcs-py/guppe | abfbab21c1b158b39251fa6234a4a98ce5f31c2a | 2ff007bce88e065e6d3020971efd397ec7f7084b | refs/heads/main | 2023-02-26T18:43:06.052699 | 2021-02-07T18:22:53 | 2021-02-07T18:22:53 | 330,180,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 182 | py | from collections import deque
deq = deque('LEHCS')
print(deq)
deq.append('A')
print(deq)
deq.appendleft('D')
print(deq)
print(deq.pop())
print(deq)
print(deq.popleft())
print(deq)
| [
"noreply@github.com"
] | Lehcs-py.noreply@github.com |
c8e1a922c76d30e2d30d33daa1900fc8bad746df | 96c9732c3b93ce58337a0664c14d91fa1c762039 | /lesson8/venv/Scripts/pip3.8-script.py | d6b3a29ced1005b4a593a5e135507ac3d72eb240 | [] | no_license | JuliaEvd/Artezio | 028b0df56b50cb7682bb494b76798c7296c24967 | cf8a04c146caf9b807b6d27e1fd29e903c0fdb8d | refs/heads/master | 2022-12-10T08:23:05.245184 | 2020-02-20T19:41:08 | 2020-02-20T19:41:08 | 236,751,187 | 0 | 0 | null | 2021-06-02T01:00:45 | 2020-01-28T14:15:07 | Python | UTF-8 | Python | false | false | 418 | py | #!C:\Users\Lenovo\PycharmProjects\lesson8\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.8'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.ar... | [
"julia15evdokimova15@gmail.com"
] | julia15evdokimova15@gmail.com |
cf6076e24bf63af049b3b55db113896cb20491fa | 7c6ab8fda71c797ec4c5f35bdc08b9a3afda99ab | /debug.py | c3d642a0d1ac5422f45b5af87c2c68ba16ab96c5 | [] | no_license | yunshenlingyin/Python-Course | 63efd24caf534aee03e4c193a5f0b45a69d4640e | fd8ab6dcc4546823679833dfe6d7f2d4586e84c7 | refs/heads/master | 2020-09-26T00:01:59.424760 | 2019-12-11T23:27:53 | 2019-12-11T23:27:53 | 226,119,165 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,099 | py | # # # # -*- coding: utf-8 -*-
# # import numpy as np
# # import matplotlib.pyplot as plt
# # # from tqdm import tqdm
# # # n = 10000
# # # a1 = np.zeros((2, n))
# # # v2 = np.zeros((2,))
# # # # a1[0] = np.random.uniform(-50, 50)
# # # a1[:, 0] = np.array([np.random.uniform(-50, 50), np.random.uniform(-50, 50)])
# # # ... | [
"44291575+yunshenlingyin@users.noreply.github.com"
] | 44291575+yunshenlingyin@users.noreply.github.com |
5e7413dbd97b09e14c9a80afe14468a445140c30 | 4690e5e969e7e1d727e3d1c36db1139a6eb54de0 | /NN/rnn.py | 15bf8213a824f28cb9a04021e4037c14a068c9f3 | [] | no_license | aakash-gp/EEL-4660-Project | cc068343a3e9abde57447eaec0790dd0c395f2bd | ad1bf146e8c973bb89bc2b5e9ca5ec2020b42de2 | refs/heads/master | 2020-04-10T07:43:10.384098 | 2018-12-08T00:08:42 | 2018-12-08T00:08:42 | 160,886,963 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,066 | py | import keras
from keras.datasets import mnist
from keras.models import Sequential
from keras.layers import Dense, Activation
from keras.layers import SimpleRNN
from keras import initializers
from keras.optimizers import RMSprop
from keras.utils import np_utils
import matplotlib.pyplot as plt
# Remove Warning
import os... | [
"noreply@github.com"
] | aakash-gp.noreply@github.com |
b8e5157b0a53663ef1a2940e32acf8d04421693b | 1d80aa226ec26edc9cee8c23fab484247dc44fa2 | /features/steps/roman_converter.py | 828fa924772fe1a25e09c601eb4e6ad6fdd0eaf4 | [
"MIT"
] | permissive | TestowanieAutomatyczneUG/laboratorium_13-wgulan | 4d5f086e45c578c3e844b42ba3900446ec9733e4 | 5beb5cd58de4b4dedea92195b240b87439f7175c | refs/heads/main | 2023-02-15T20:16:45.735505 | 2021-01-13T19:10:07 | 2021-01-13T19:10:07 | 328,733,467 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,915 | py | from behave import *
from src.roman.RomanConverter import RomanConverter
@given('there is a roman converter')
def step_impl(context):
context.roman_converter = RomanConverter()
@when('arabic number is 4')
def step_impl(context):
context.arabic_num = 4
@then('converted roman number is IV')
def step_impl(contex... | [
"wojciech.gulan@gmail.com"
] | wojciech.gulan@gmail.com |
2f2e8cd7137b0c1ebf842d5a12d79e3231d3b89b | a7fb10814dcc5a717c4162874ff7e22cdb47dc4e | /tensorboardX/src/versions_pb2.py | 1daceb7d7e07f790f164bc753fc16687f07a1fd0 | [
"MIT"
] | permissive | wangzheallen/tensorboardX | fc91b6eb1389b45b228a77b666decb7df26ae079 | be6e9fb1e88e5d2fb89238251c3434e2cead1dac | refs/heads/master | 2020-03-25T00:22:32.047886 | 2018-07-30T13:09:02 | 2018-07-30T13:09:02 | 143,182,979 | 1 | 0 | MIT | 2018-08-01T16:42:57 | 2018-08-01T16:42:57 | null | UTF-8 | Python | false | true | 2,977 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: tensorboardX/src/versions.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import re... | [
"huang.dexter@gmail.com"
] | huang.dexter@gmail.com |
4c0bb1e36622d78ac10ba6f432fa8286f06340fa | 11ee65f146e08c4576dee11ee8cf62bd6c0e1d6c | /factorial.py | 1900236464fa599f93a7b2be941b361505fd549a | [
"Apache-2.0"
] | permissive | Chetan2808/python | cc7fac6b13260e579ee23eded75ae06520e7a8bd | d4460f7288e48d13a6225bf20d7b2a78cd2b2d90 | refs/heads/main | 2023-01-30T04:38:56.181834 | 2020-11-28T12:22:13 | 2020-12-05T14:02:04 | 316,727,137 | 0 | 0 | Apache-2.0 | 2020-11-28T12:18:04 | 2020-11-28T12:18:03 | null | UTF-8 | Python | false | false | 92 | py | num= int(input())
a=1
factorial=1
for i in range(1,num+1):
factorial*=i
print(factorial) | [
"chetangandhi28w@gmail.com"
] | chetangandhi28w@gmail.com |
3e6e0ea2c29d62ca6eed20b1be2c6bece48f52fe | f27f9539c07a66fc80c9321766a5442b2bbcc9a5 | /readfile.py | 48628a58cce3db550cea716cbf31a1c39a827984 | [] | no_license | hrishikeshio/insult | 8a8f858d6877aace063c37d7f62b352c84d3f5d8 | a105c8b26b7a7944ae1c990b32e8dd7542e2c327 | refs/heads/master | 2016-09-05T17:32:40.456949 | 2012-09-14T08:40:11 | 2012-09-14T08:40:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 159 | py | import csv
with open("train.csv","rb") as f:
reader = csv.reader(f)
for row in reader:
print row[2].decode('unicode-escape')
| [
"hrishikesh911@gmail.com"
] | hrishikesh911@gmail.com |
438033b0dd31378c6fc09ace40f3c3bee1d9bafe | e5b4ed93d6666e195e96a265d3e7cfe4243a7300 | /hunter/hunter.py | 0914e6258d70bb3bcec304a85ffabec2451f20d3 | [] | no_license | Spider251/python | 934f5b8b923c2b61186a6df8445957290e5c4c74 | 8b1931f862e1d5c29fed9af624bcac94c1d25755 | refs/heads/master | 2020-04-05T11:58:04.558098 | 2018-11-09T12:06:06 | 2018-11-09T12:06:06 | 156,852,553 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,098 | py | '''
实现猎人的功能
需要传入的参数:1.所有人员的字典
'''
# person 所有角色共有的属性
# survival 所有人员存活情况{1:0,2:1...} 键1代表角色号码,值0为死亡,1为存活
class hunter:
def __init__(self,survival):
self.survival = survival
def fun(self):
for i in self.survival:
if i == 2:
if self.survival[i] == 1:
... | [
"1419418693@qq.com"
] | 1419418693@qq.com |
720ad4f45e9925f3dc01a008d62594d227e6b96d | 6365e578dc1565144290d8fd8f7e9895f2e787f2 | /cache/monitor_add_data.py | f511ed397d129e547920d52aff509d7b6a022b21 | [] | no_license | lemonxug/aha_greenhouse | 5d8fc8de5fde1b53e9505d2c537671ce15a70df2 | 8eef59926cd0b1cfa22152d214be31c368d7e884 | refs/heads/main | 2023-05-01T07:23:07.964218 | 2021-05-17T11:30:47 | 2021-05-17T11:30:47 | 362,698,249 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 802 | py | import requests
import json
import random
from datetime import datetime
import time
API_URL = 'http://127.0.0.1:8000/monitor/add_data/'
def add_data(device_id, indicator_id, value):
data = {
'device_id':device_id,
'indicator_id': indicator_id,
'value': value,
}
create_time = dateti... | [
"lemonxug@users.noreply.github.com"
] | lemonxug@users.noreply.github.com |
5960f28424d3ef083d51231c8003e9be7759022d | ef353f608abd3f6f3a15ebfc9a1dcd8c8ade6d9b | /guess_encoding.py | 9cbb27adfb69b2ed5ed1611aae901f6ff4979f90 | [] | no_license | jimbopants/WWTP_16s | e485f1e50f3bf28ca0011963cddccfb74e0ba5d9 | 284f781d55a8ce05411d1d4024d721b6611a7d69 | refs/heads/master | 2021-01-18T14:11:44.842120 | 2015-07-23T22:51:03 | 2015-07-23T22:51:03 | 39,597,778 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,045 | py | """
awk 'NR % 4 == 0' your.fastq | python %prog [options]
guess the encoding of a stream of qual lines.
"""
import sys
import optparse
RANGES = {
'Sanger': (33, 93),
'Solexa': (59, 104),
'Illumina-1.3': (64, 104),
'Illumina-1.5': (67, 104)
}
def get_qual_range(qual_str):
"""
>>> get_qual_r... | [
"jimbogrif@gmail.com"
] | jimbogrif@gmail.com |
4f6a55c21dd48d5730f61e46124d8dcfc90527ed | 03f795baff6b58d3aa1660d10456270ad7bfb5d0 | /checkdates.py | 06a84cd6865e7670a37a5fa6823b17aaa92bc71c | [] | no_license | shrikantnarvekar/Python-GUI | 20bcd8fedd6cd71734ac0adee88941f4afa73949 | 0114ee91cbce1a982c04528c6051b2dc2e92cb68 | refs/heads/master | 2021-01-13T10:57:42.144829 | 2017-02-11T19:27:25 | 2017-02-11T19:27:25 | 81,676,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 513 | py | from date import Date
def main():
bornBefore = Date(6, 1, 1988)
date = promptAndExtractDate()
while date is not None :
if date <= bornBefore :
print( "Is at least 21 years of age: ", date )
date = promptAndExtractDate()
print( "Enter a birth date." )
... | [
"noreply@github.com"
] | shrikantnarvekar.noreply@github.com |
ddbe8007aa7dfb8439d6e3785f358883238f522d | 2065f7d446b1c2930714bb2a6fe285c8b46346f3 | /site/ENV/lib/python3.7/site-packages/txaio/__init__.py | e4ae68f2051151c50c4e1eb7106b2fd5ce4c6102 | [
"MIT"
] | permissive | paulohenriquerosa/gnss-iot-server | 3c28a7871ab1da35a2c35dd1a1953c036aa12a8a | 6e7ff39bc83276d6ad86121083eb48d134d00f9d | refs/heads/master | 2020-04-25T06:53:48.086586 | 2020-03-07T03:50:59 | 2020-03-07T03:50:59 | 172,596,343 | 1 | 0 | MIT | 2019-11-13T12:06:12 | 2019-02-25T22:35:47 | Python | UTF-8 | Python | false | false | 5,811 | py | ###############################################################################
#
# The MIT License (MIT)
#
# Copyright (c) Crossbar.io Technologies GmbH
#
# 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 ... | [
"paulohenriquerosa04@gmail.com"
] | paulohenriquerosa04@gmail.com |
eb4915e75069f7ab42cd28d92c9f9d6d0c89e4a2 | 33342c70ab1505a378d63736d204630c3332d9c2 | /Vtoraya/6.py | 12fa15eb4aae64761d3bad0927cedcc502fd5f2d | [] | no_license | EvilGad/TutPy | 580c4b61e14794e7f184b8d9fe61856a6af9842f | 7c1ee9b59a3c8976aaae18bf53f1f8fb97ca3645 | refs/heads/master | 2021-01-19T00:30:36.629230 | 2017-05-07T17:41:38 | 2017-05-07T17:41:38 | 87,177,433 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 752 | py | x1 = int(input("Введите координаты X первой точки: "))
y1 = int(input("Введите координаты Y первой точки: "))
x2 = int(input("Введите координаты X второй точки: "))
y2 = int(input("Введите координаты Y второй точки: "))
x3 = int(input("Введите координаты X третьей точки: "))
y3 = int(input("Введите координаты Y третьей... | [
"taras-sed@mail.ru"
] | taras-sed@mail.ru |
1fc8cb941330ce78d411f3edb862796a171a89fc | e77b92df446f0afed18a923846944b5fd3596bf9 | /Inflearn_algo/section7_dfs_bfs/pro1_maxScore_re.py | 7feac790f2615b319b2bc54fde9f4010284f4fdd | [] | no_license | sds1vrk/Algo_Study | e40ca8eb348d1fc6f88d883b26195b9ee6f35b2e | fbbc21bb06bb5dc08927b899ddc20e6cde9f0319 | refs/heads/main | 2023-06-27T05:49:15.351644 | 2021-08-01T12:43:06 | 2021-08-01T12:43:06 | 356,512,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 635 | py | # 최대 점수 구하기 (DFS)
# 문제를 푼다, 안푼다라는 개념으로 가야됨
import sys
sys.stdin=open("input.txt","r")
n,m=map(int,input().split())
ss=[]
tt=[]
for i in range(n):
a,b=map(int,input().split())
ss.append(a)
tt.append(b)
max_score=-1
def dfs(l,s,t):
global max_score
# 가지치기 t가 m을 넘으면 더이상 할 필요 없음
if t>m:
r... | [
"51287886+sds1vrk@users.noreply.github.com"
] | 51287886+sds1vrk@users.noreply.github.com |
17ef6391519897bebd3f8ab0d3582a675559b824 | a30fd3fbb3cc20eec07cd4878214b29ebe89af33 | /Chapter6/task6-4.py | abe46ee4e0269736bba274060ca8af95af1b7ee9 | [] | no_license | cmdtvt/R421-python-course | 310cbffe727ea39dc184b4e34d1c73c2a1fde01a | bdf23396bbce31ce97e6d1e74c4e2e48b1ba42b4 | refs/heads/master | 2023-08-16T13:22:02.170134 | 2021-10-10T09:21:06 | 2021-10-10T09:21:06 | 404,047,329 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,851 | py | '''
The last exercise in this chapter extends the previous exercise, but it is also possible to make it completely independently. Modify the function tester so that, besides testing if the length of the given string is more than ten characters, it also tests if there is the character "X" (capital X) in the given string... | [
"tvtuusa@gmail.com"
] | tvtuusa@gmail.com |
0025c4896179b9cbcb0676cc7ff1012772417aae | 77f0ddf7ebcdd4a2ef99e37933302efd56a7d3a1 | /spoken/views.py | ec0b8b1334e5074499bd115ce52f423b008b6a34 | [] | no_license | ankitamk14/spoken_main_website | de857f8588d3751d24e460efc3f2b6c5ab74b26e | d1fb4ee359123645765e2fda5c3e271e8c3b4e4b | refs/heads/master | 2020-12-23T12:05:21.422979 | 2020-01-31T12:51:15 | 2020-01-31T12:51:15 | 236,958,367 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 352 | py | from django.shortcuts import render
from django.http import HttpResponse
from .models import Products,Blended_workshops
# Create your views here.
def index(request):
products = Products.objects.all()
workshops = Blended_workshops.objects.all()
context = {'products':products,'workshops':workshops}
return render(requ... | [
"ankitamk@gmail.com"
] | ankitamk@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.