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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
084af231761d48ccdf9950ed5fbab1a7a44f86ab | d3efc82dfa61fb82e47c82d52c838b38b076084c | /Autocase_Result/SjSzRZMR/YW_RZMR_SZSJ_150.py | 60204aa1a24e2cc122eacbff5931e061d9482cba | [] | no_license | nantongzyg/xtp_test | 58ce9f328f62a3ea5904e6ed907a169ef2df9258 | ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f | refs/heads/master | 2022-11-30T08:57:45.345460 | 2020-07-30T01:43:30 | 2020-07-30T01:43:30 | 280,388,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,334 | py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
import sys
import json
sys.path.append("/home/yhl2/workspace/xtp_test")
from xtp.api.xtp_test_case import xtp_test_case, Api, unittest
from service.ServiceConfig import *
from financing.service.mainService import ParmIni, serviceTest
from financing.service.QueryStkPriceQty i... | [
"418033945@qq.com"
] | 418033945@qq.com |
b7cc2f316f58f8c410aa9035f28402e0155c148e | 774b249ab38b925741a28daf552dd71e706ccdfe | /mysite/settings.py | 32f0595591775a11fa64de72e7e14e3c787a6b1e | [] | no_license | LucieGal/mon-nouveau-blog | ab1de4b5abfac4c06baf9e123ec604ece7e3c95b | bacf1bb2325b02e4b43a0cc94d676e3f68ab3604 | refs/heads/master | 2023-01-04T21:10:17.665230 | 2020-10-18T17:36:16 | 2020-10-18T17:36:16 | 304,846,542 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,300 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 2.2.16.
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
#... | [
"galea.lucie@gmail.com"
] | galea.lucie@gmail.com |
f4a7e68daf70584049de24fcf0e3d0d1aa07c352 | 0ff99fc75b1f42811f72aa86f4b32d1e3f8b6b48 | /PR_inference/maskrcnn_benchmark/data/datasets/__init__.py | a9fdd2e7e4b7c500fbf9a66017cd0a5759e6581a | [
"MIT"
] | permissive | alwc/buildings2vec | f95a4468a0d5c21f2732c177474350e767d459f7 | bd5121e715bc28f6e88163f18407a762736d38d5 | refs/heads/master | 2022-04-25T05:26:50.053219 | 2020-04-28T20:49:49 | 2020-04-28T20:49:49 | 263,258,064 | 0 | 1 | null | 2020-05-12T06:57:24 | 2020-05-12T06:57:23 | null | UTF-8 | Python | false | false | 302 | py | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
from .coco import COCODataset
from .voc import PascalVOCDataset
from .buildings import BuildingsDataset
from .concat_dataset import ConcatDataset
__all__ = ["COCODataset", "ConcatDataset", "PascalVOCDataset", "BuildingsDataset"]
| [
"ennauata@gmail.com"
] | ennauata@gmail.com |
4bac95965a18f0f6ed8d54cd5350c5180c7b129b | e972ebd59711a786780f4178f5b717fe245fd0a3 | /Python/11thoct-6.py | 08d9abdf498235c0a0ef9b876d6710b56b781b4e | [] | no_license | sai-varshith/make-pull-request | a46ed30803070fc28fd0b70a152779e53f98bcad | 8e1faa342fae423731090d271314cd5b9e23a9db | refs/heads/master | 2023-08-14T11:25:41.460714 | 2021-10-02T05:00:27 | 2021-10-02T05:00:27 | 412,333,564 | 3 | 0 | null | 2021-10-01T05:02:53 | 2021-10-01T05:02:52 | null | UTF-8 | Python | false | false | 314 | py |
def Fibonacci(n):
if n<=0:
print("Incorrect input")
# First Fibonacci number is 0
elif n==1:
return 0
# Second Fibonacci number is 1
elif n==2:
return 1
else:
return Fibonacci(n-1)+Fibonacci(n-2)
n=int(input("enter number of term"))
print(Fibonacci(n))
| [
"tushar2525252@gmail.com"
] | tushar2525252@gmail.com |
079db36b4b59f01d928e4d88533b54c93ff7df80 | e0ce33a90969747f57db754bc66072ae76ea3db2 | /user/admin.py | f03e58454c6f245b50de4fec01ac02d400f2e1be | [] | no_license | czemiello/biblioteka | f342bc998c215c3b34669dc3a2424dd4a79b4723 | 16a1860d31689f8c1cbdd5f719b047975f72ffc2 | refs/heads/master | 2021-01-11T12:01:20.177278 | 2017-01-21T10:32:26 | 2017-01-21T10:32:26 | 79,638,386 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 621 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from django.contrib import admin
from django.contrib.auth.admin import UserAdmin as BaseUserAdmin
from django.contrib.auth.models import User
from user.models import SiteUser
# Define an inline admin descriptor for Employee model
# which acts a bit like a singleton
class ... | [
"aexol@aexol.com"
] | aexol@aexol.com |
75925e15b82a2124fd11f9ee64e75dec38efa6b2 | 3b7866902cba9c97998751a1bf3cac08d302031e | /Ch03/3-2.py | 35ba30f991a286d6ed4dc74a69123f1f651bfd7c | [] | no_license | tsbslteisrhy/Python | 7da07b8f5e3e10c86fd35522a3570788a9122adc | 95a6083c3d584c9df6b3bbf6c41ad33ca3419ad6 | refs/heads/master | 2022-12-22T03:05:57.696017 | 2020-09-21T08:31:03 | 2020-09-21T08:31:03 | 274,085,427 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 770 | py | """
날짜 : 2020/06/23
이름 : 유효진
내용 : while문 실습하기 교재 p130
"""
# while
num = 1
while num < 5:
print('num이 5보다 작다.')
num = num + 1
# 1부터 10까지 합
total = 0
start = 1
while start <= 10:
total += start
start += 1
print('1부터 10까지 합 :', total)
# 리스트 합
scores = [80, 90, 92, 78, 62]
tot = i = 0
whi... | [
"tsbslteisrhy@naver.com"
] | tsbslteisrhy@naver.com |
bb219f4b5d7945d52abc467136cd1614c4bdbee4 | a2908938c39e1c233760eb3666089ad32f32e9dd | /ballGame.py | 9efc44ff435e8739160985091f05fcbc21c1acaf | [] | no_license | ParthSSharma/bouncyBall | 14223e80b4071d2f43581500cb025c0ccf399b28 | 7d7053ddb135dc5de51947881094c0c6c769fb79 | refs/heads/master | 2020-06-28T21:07:27.094894 | 2019-08-03T06:35:03 | 2019-08-03T06:35:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,112 | py | import numpy as np
import cv2
from directKeys import click, queryMousePosition
import time
from PIL import ImageGrab
gameCoords = [0, 25, 500, 525]
exitGame = 0
def shootSomeBalls(screen):
global gameCoords, exitGame
state = 1
for y in range(gameCoords[1], gameCoords[3] - 25, 5):
for x in ra... | [
"53370354+ParthTatsuki@users.noreply.github.com"
] | 53370354+ParthTatsuki@users.noreply.github.com |
4fdd0d64d5e0afc3a45079ae2b9ccd03a8bc552d | a6dafde76d4cf3408e61828acb9ba9d6200363ef | /testdir/Students.py | 6dd66075fc942ddb20e1c1bc2351f0749d65998a | [] | no_license | gubanovpm/C01-019_Gubanov_python | b55a3cb2724141450cd5d9e9834b65e711b57426 | 71795854b22e3e713ee16de695e7b7b9aa20d877 | refs/heads/main | 2023-01-31T19:09:50.436433 | 2020-12-13T22:14:45 | 2020-12-13T22:14:45 | 313,232,096 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 487 | py | learners_french = input().split()
pianists = input().split()
swimmers = input().split()
A = set()
B = set()
C = set()
for x in learners_french:
A.add(x)
for x in pianists:
B.add(x)
for x in swimmers:
C.add(x)
D = set()
D = (B.intersection(C)).difference(A)
result = []
for x in D:
result.append(x)
print(*result)
... | [
"noreply@github.com"
] | gubanovpm.noreply@github.com |
4ce317d08e1c724135be938452d22fe612cfa189 | 763a9816046bcfec4958ae593cb7cb58696b9dc8 | /rules/rnammer.smk | 981f4e9347324dd8eb8b495a112fdfd35eeffca0 | [] | no_license | davidecarlson/snakemake-trinotate | ad877563668d173e288cdb1b3b4d55a6e95bd432 | 45f7e2f92de144c10be29b47c90e1335f2f6abd7 | refs/heads/master | 2023-02-17T03:38:44.069123 | 2021-01-15T20:29:26 | 2021-01-15T20:29:26 | 280,492,880 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 666 | smk | RNAMMERTRANS=config['RNAMMERTRANS']
RNAMMER=config['RNAMMER']
rule rnammer:
input:
assembly=INPUT + "/{sample}_trinity.Trinity.fasta"
output:
results=RESULTS + "/rnammer/{sample}/{sample}_trinity.Trinity.fasta.rnammer.gff"
threads:
1
params:
wrapper=RNAMMERTRANS + "/Rnam... | [
"david.carlson@stonybrook.edu"
] | david.carlson@stonybrook.edu |
33bb2b026299cda1ef4cc5c15c5b013e87879902 | 45e65a396dc324b84a8cf602baed86353bcec5ae | /fibonacci.py | afda3b104e154766c6f2ac70db100824b4d596c5 | [] | no_license | knappeddy55/cmpt120JarosiewitzKnapp | f603d2ac6cb18be7bff4185c9cc9174bff2890d2 | 7172bce717fcba352f1d5b55769ae690770b5f82 | refs/heads/master | 2021-05-09T15:12:22.273991 | 2018-02-27T03:55:47 | 2018-02-27T03:55:47 | 119,086,716 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 404 | py | # This program will find out the nth number in the fibonacci sequence obtained by the user
def fib(n):
if (n == 1):
return 1
if (n == 2):
return 1
return fib(n-1)+ fib(n-2)
def main():
print("This program computes the nth Fibonacci number where n is a value input by the user")
... | [
"edward.jarosiewitzknap1@marist.edu"
] | edward.jarosiewitzknap1@marist.edu |
956d9fa0e6e3eacbff9d77dab2253bd585bbbf87 | e8d2c1f5d3d508dd9a60238ae0a5db0b584a9454 | /modules/ReplayMemory.py | 7038ddf8d5e9809aeb4e86778b8ba5b2dfd20bad | [] | no_license | WeichangWang195/Improved_3MRL | bc667eb98e186e99b21fbf2d6dfbc163480d5442 | 32a13e9333d3f891f236c76c1447fed523060150 | refs/heads/master | 2023-06-24T04:06:25.578776 | 2021-07-25T21:23:06 | 2021-07-25T21:23:06 | 362,308,498 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 871 | py | import random
from collections import namedtuple
class ReplayMemory(object):
def __init__(self, capacity):
self.capacity = capacity
self.memory = []
self.position = 0
def push(self, item):
"""Saves a transition."""
if len(self.memory) < self.capacity:
self... | [
"wwang195@hotmail.com"
] | wwang195@hotmail.com |
14f37638e65febf11f9114def8c5f318cb8713d6 | 328630193505577e71fdd52aa2b04b5f98ac338b | /src/app.py | e2e866e986b36060d928689c692f69c55f252de4 | [] | no_license | Pawel-Matuszny/flask-crud-app | 310eaf426624168af7c0d40ce87139f9d22d8ef7 | dc2bd44c76a2b56f879d0a6a7d72dae3a86d65c0 | refs/heads/master | 2023-06-30T04:02:19.410600 | 2021-07-30T11:46:43 | 2021-07-30T11:46:43 | 391,044,570 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,237 | py | from flask import Flask, jsonify, request, make_response
from flask_sqlalchemy import SQLAlchemy
from flask_migrate import Migrate
import uuid
from werkzeug.security import generate_password_hash, check_password_hash
import jwt
import datetime
from functools import wraps
import sentry_sdk
from sentry_sdk.integrations.f... | [
"pm@katarti.io"
] | pm@katarti.io |
65001c22614b411a3aa525a2a14d83e9c74fd77f | 257192c02c6967ff08b03c124764532273f5198e | /服务器脚本(自己放服务器去)/scripts/cell/NPC.py | e51cde5e5781b50f2ae31eb19784cd1266b8c79a | [] | no_license | flodoo/kbengine_warring_upgrade | a17c8affea70a4b1718358adc7ca0574f472f01c | df6e6ede3048d509c9af0ea9f3c3974cc1908daa | refs/heads/master | 2020-05-19T20:55:46.895144 | 2015-04-10T07:39:31 | 2015-04-10T07:39:31 | 33,582,982 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 577 | py | # -*- coding: utf-8 -*-
import random
import math
import time
import KBEngine
from KBEDebug import *
from interfaces.NPCObject import NPCObject
from interfaces.Motion import Motion
class NPC(KBEngine.Entity, NPCObject, Motion):
def __init__(self):
KBEngine.Entity.__init__(self)
NPCObject.__init__(self)
Motion._... | [
"liquidx@163.com"
] | liquidx@163.com |
b79bfa210ba5980a546701abc154cefdccc86ce5 | b607fd95712f9d6be753052db2449174b60de5e9 | /docker/features/installer/dependency_check.py | 6ea4ce53aef232d98e6d7b54377f97cb246d866b | [
"Apache-2.0"
] | permissive | krdpk17/twitter-neo4j | bb84d7bc3210587dd5df125958f8b96bc28db1ac | bb7e62743651082726db373d118dcc90cce48532 | refs/heads/master | 2021-05-19T08:24:03.772900 | 2021-04-26T07:40:06 | 2021-04-26T07:40:06 | 251,603,624 | 1 | 1 | Apache-2.0 | 2020-03-31T12:59:17 | 2020-03-31T12:59:16 | null | UTF-8 | Python | false | false | 311 | py | import pdb
import pip3
print("checking dependency and performing installation")
def install(package):
if hasattr(pip, 'main'):
pip.main(['install', package])
else:
pip._internal.main(['install', package])
install('python-dotenv')
install('oauth2')
install('py2neo')
install('retrying')
| [
"62544105+krdpk1717@users.noreply.github.com"
] | 62544105+krdpk1717@users.noreply.github.com |
64969951f65d3112409366d438d7f5d161123c2f | 1bd2d7189d6ec4b6a1289e136098e947f7fd5ca3 | /luisapi/asgi.py | fc869631afe74d2993b99aee7aa39a6ba8db07a3 | [] | no_license | Piotr1103/LUIS-API | 5590357607f903575a89a3eef4139f6b658109f2 | a16c9b6188b7ea86b1ad10bf8c69cdae5777e56b | refs/heads/main | 2023-08-01T17:47:19.157634 | 2021-09-27T11:09:15 | 2021-09-27T11:09:15 | 410,850,313 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | """
ASGI config for luisapi 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_SETTI... | [
"manjudamin@gmail.com"
] | manjudamin@gmail.com |
7ebaf958ee53b6084d2a254324bd9f469cfd76b0 | 3e79bfd23dd2dbfe3b057ba3a879b4a99ba7f66e | /Pizza Crust.py | 26c764309d50948a0508a59bf32e8db9c741984a | [] | no_license | parhamgh2020/kattis | 1b701d1f768e2337d2477ea12be56399b3ed1003 | 40a0969e347be3df9ab23cbb3fd8272b40ffa16f | refs/heads/main | 2023-03-19T22:51:54.643201 | 2021-03-14T09:30:59 | 2021-03-14T09:30:59 | 347,017,990 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | from math import pi
r, c = map(int, input().split())
percentage = ((pi * (r - c) ** 2) / (pi * r ** 2)) * 100
print(percentage)
| [
"parham.ghashghaee@gmail.com"
] | parham.ghashghaee@gmail.com |
b9e6b4a89933c10efc3d61dd4e0bd03bc076a9b1 | d1cb5b13bf134f51cb03a292870f1486a4aab840 | /abc/160/e_.py | f64501f27f3b75a5f6d6c8965a5aa3a2119729a2 | [] | no_license | tanimutomo/atcoder | 73717646cff68b6bc3b42a0e1e3e48a1d61c2cb6 | cc270a2794aa351eedc78707db379f4f803439d6 | refs/heads/master | 2021-06-28T20:27:37.648870 | 2020-11-29T12:13:08 | 2020-11-29T12:13:08 | 193,248,844 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 267 | py | x, y, a, b, c = map(int, input().split())
p = list(map(int, input().split()))
q = list(map(int, input().split()))
r = list(map(int, input().split()))
p = sorted(p, reverse=True)[:x]
q = sorted(q, reverse=True)[:y]
r = sorted(r+p+q, reverse=True)[:x+y]
print(sum(r)) | [
"tanimutomo@gmail.com"
] | tanimutomo@gmail.com |
92e7c14d496c1f0fc8a4ad15849cd49159029b26 | de6207e901110ff060dec96748f2e88855388f6a | /crawler/venv/bin/pip | 93f0d5d3d77dc01a7fbfe016aa9bfb4df21af2ca | [] | no_license | arnobmonir/Local_Net_Tools | d618b77226c30d09176975f8d11b45c6e75573a0 | 12e34f6834e756081d63b476facead2d32274904 | refs/heads/master | 2020-09-11T00:11:41.039230 | 2019-11-14T12:15:12 | 2019-11-14T12:15:12 | 221,875,543 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 394 | #!/root/PycharmProjects/crawler/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(
... | [
"aarnob.monir@gmail.com"
] | aarnob.monir@gmail.com | |
33d8a3f172e02a3326ddf12f3ac7502ff17d2f00 | 557c70397b350aa85933180dc3648c9be5c9db39 | /interpretNN/sequence_attribution.py | 05474583f2639e4d9a558940661f733a78f4a328 | [] | no_license | DivyanshiSrivastava/chromNN | 68e41f1489c4fcefe576c7c7e80eb6ebd600a91e | 32541b3d6cfe00972116b63dfe1f82cb099c3478 | refs/heads/master | 2020-04-19T01:33:16.879436 | 2019-01-28T01:13:27 | 2019-01-28T01:13:27 | 167,875,006 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,047 | py | import numpy as np
from keras import backend as K
# The GradientSaliency class is modified from:
# https://github.com/experiencor/deep-viz-keras/blob/master/saliency.py
class GradientSaliency(object):
""" Compute saliency masks with gradient."""
def __init__(self, model, output_index=0):
# Define th... | [
"s.divyanshi91@gmail.com"
] | s.divyanshi91@gmail.com |
346f9be15be33ed6d7a104aea444b4a2dc9ba754 | dccd1058e723b6617148824dc0243dbec4c9bd48 | /atcoder/abc083/c.py | 3bda8a9bf4626f9a95318a39ab49b5aaae251926 | [] | no_license | imulan/procon | 488e49de3bcbab36c624290cf9e370abfc8735bf | 2a86f47614fe0c34e403ffb35108705522785092 | refs/heads/master | 2021-05-22T09:24:19.691191 | 2021-01-02T14:27:13 | 2021-01-02T14:27:13 | 46,834,567 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 87 | py | x,y = map(int,input().split())
ans = 0
while x<=y:
ans += 1
x *= 2
print(ans)
| [
"k0223.teru@gmail.com"
] | k0223.teru@gmail.com |
fdbfd91b1ecd4517cbd0450d6ef0269a24e7a240 | 579526149437ef74cd870bfbd96a06d07b1cf25e | /formula/migrations/0001_initial.py | 5bf61c8ea28d2aedf671971d4fdddcbd5b59b074 | [] | no_license | khalilashkar/scm | 22461b896c585df34c319df74688d673570ff6d6 | 31a37450c9e55c22416b1123945c38f85706b243 | refs/heads/master | 2022-12-03T15:22:22.693671 | 2020-08-17T02:13:54 | 2020-08-17T02:13:54 | 288,055,842 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,611 | py | # Generated by Django 3.0.4 on 2020-06-11 14:45
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django_countries.fields
import formula.validators
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swapp... | [
"jh.programmer@scm.bz"
] | jh.programmer@scm.bz |
f8346c4580ceeac53566875cd0d61c1958b8a7b8 | 720621eb58129414eb7b4717d4b2d40b04ec1f01 | /reto3.py | e26dba7a936060dd69954adf7cc17a8cda20eafe | [] | no_license | Jorgemacias91/ejercicios-python | 4a5faa826864356513b85bcfa5156a2d43c7f38e | cb7299abb7486309bd3581aae486b930b2253e3b | refs/heads/master | 2023-06-29T02:06:11.732480 | 2021-07-12T16:26:09 | 2021-07-12T16:26:09 | 385,308,244 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 413 | py |
n = int(input())
listas = []
for i in range(n):
valor = input().split()
listas.append(valor)
bandera = False
for i in range(len(listas)):
if(
int(listas[i][0]) >= 3
and int(listas[i][1]) >= 4
and int(listas[i][2]) <= 24
and int(listas[i][3]) <= 10
):
bandera = Tru... | [
"jmaciasvesga@gmail.com"
] | jmaciasvesga@gmail.com |
c92eb73452c18a2297bb716fa73b4aeb74d7822b | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/223/users/4182/codes/1644_2703.py | 494d16f9af8086445803a09cef9f1f6afbb7ded8 | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 108 | py | idade = int(input())
if (idade >= 18):
mensagem = "eleitor"
else:
mensagem = "nao_eleitor"
print(mensagem) | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
4b18745174f3d59dffd1c39b71f47792fc415a53 | 897f53f73dde4f94a4292fa826a1e65494fe082b | /Zprime_UFO/parameters.py | f7f9720f638576a45a17216edc5a41650d2f8ca1 | [] | no_license | TemplateJetSubstructure/EventGeneration | b35dc875c944d3ef067d418748830d1a524ec3ef | 5f79e735942c606a8cedcff6b2dbd4e637259ab3 | refs/heads/master | 2021-07-05T08:48:57.981621 | 2017-09-17T05:46:56 | 2017-09-17T05:46:56 | 103,061,979 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,019 | py | # This file was automatically created by FeynRules $Revision: 595 $
# Mathematica version: 7.0 for Mac OS X x86 (64-bit) (February 19, 2009)
# Date: Fri 27 Jul 2012 19:56:48
from object_library import all_parameters, Parameter
from function_library import complexconjugate, re, im, csc, sec, acsc, asec
# This is a... | [
"bnachman@cern.ch"
] | bnachman@cern.ch |
de789c3f754d85ff308906be6e264806b95ff074 | 6a25f68bd4104fb564f21bde048015aafa489bf2 | /env/bin/easy_install-3.6 | d47aeac991e2678415e06787df91510f7510876e | [] | no_license | HustleCorp/Django-Microservice | c5aa4053f1001286d395a49be03e2569103712d3 | 7e54843190c72c9f66c157b8e62b85d19f83735c | refs/heads/master | 2023-01-07T18:56:43.608124 | 2019-12-09T17:29:09 | 2019-12-09T17:29:09 | 226,013,742 | 1 | 0 | null | 2023-01-04T13:31:19 | 2019-12-05T04:09:49 | JavaScript | UTF-8 | Python | false | false | 271 | 6 | #!/home/shegerking/Desktop/django-docker/env/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"bktotient@gmail.com"
] | bktotient@gmail.com |
409166fb8dd65259d5804eba3ea3d79e673f93bc | fe0e7985fb0c7d2b57dbf8e3fbe83b27b0a0cdeb | /ServiceApplication_SourceFiles/Mod_FlexmapImage.py | 08a14158f7b5d73796552db83814b39ac5ecbb9d | [
"MIT"
] | permissive | lynch829/FluoMV | 04e7516c3aa3d6ac2d485ce2d7c26abd0f1108ff | 6fc226ee0ca1427495f0ab483c63a2ca5195954e | refs/heads/master | 2022-11-23T06:04:09.812686 | 2020-08-03T15:05:22 | 2020-08-03T15:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,698 | py | # -*- coding: utf-8 -*-
import numpy as np
import sys
import os
#===============================================================================================================
class FlexmapImage:
def __init__(self, thisSettingsObj):
self.Status = True
self.SettingsObj = thisSettingsObj
#--------------------... | [
"mathieu.guillot@usherbrooke.ca"
] | mathieu.guillot@usherbrooke.ca |
ee4637d7c5f80fb4a059cda9c706b0e18d4033a1 | e9b04482febf819214a81f9da051d87ece89d19f | /PythonExercicios/ex010.py | a0c9ba185f95f4e933a817d9bc4c3d1479c7dfe1 | [
"MIT"
] | permissive | ViniciusQueiros16/Python | 6a20ba9874aadec7dc90eea7cad3fcdb4a685995 | c03fd08d4c204104bf0196b0bd129427fd2067ae | refs/heads/main | 2022-12-31T07:56:59.287860 | 2020-10-11T21:40:24 | 2020-10-11T21:40:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 331 | py | import emoji
print('\033[33m=\033[m'*12,'\033[34mConversor de Moedas\033[m','\033[33m=\033[m'*12)
n = float(input('\033[1;31;43mQuanto dinheiro vc tem na carteira? R$\033[m'))
print('\033[32mCom R$\033[35m{}\033[m \033[32mvocê pode comprar US$\033[35m{:.2f}\033[m \033[32mou £\033[35m{:.2f}\033[35m'.format(n,(n/5.31), (... | [
"70244206+lordvinick@users.noreply.github.com"
] | 70244206+lordvinick@users.noreply.github.com |
71805448f7085ea893f12fd7723c5398abb76fa6 | e2ae5b6b7143987a3b8b64a4d502e89d50f807c9 | /SeparandoDigitosNum.py | 719399519490756b0af80769b724436ae570a11c | [] | no_license | welleson-lukas/python-projects | 7cc95f28a2268e7f090c073d8dd68600231bf943 | d8de21a52eb1a89e8312afc650fa3ec341bd31a2 | refs/heads/master | 2020-12-20T11:00:00.075766 | 2020-03-16T20:29:06 | 2020-03-16T20:29:06 | 236,051,200 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | #separando digitos de numeros ate 9999
#unidades, dezenas, centenas, milhares
num = int(input('Digite o numero: '))
u = num // 1 % 10
d = num // 10 % 10
c = num // 100 % 10
m = num // 1000 % 10
print('Analisando o número {}'.format(num))
print('Milhares {}'.format(m))
print('Centenas {}'.format(c))
print(... | [
"noreply@github.com"
] | welleson-lukas.noreply@github.com |
59aeeb5cfbbd52e95cf09691c8180bb4633af9c4 | 321b4ed83b6874eeb512027eaa0b17b0daf3c289 | /606/606.construct-string-from-binary-tree.234546044.Wrong-Answer.leetcode.py | 30bee179f09e3deb04c3c0ab49b7e971a008aac3 | [] | no_license | huangyingw/submissions | 7a610613bdb03f1223cdec5f6ccc4391149ca618 | bfac1238ecef8b03e54842b852f6fec111abedfa | refs/heads/master | 2023-07-25T09:56:46.814504 | 2023-07-16T07:38:36 | 2023-07-16T07:38:36 | 143,352,065 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 588 | py | class Solution:
def tree2str(self, t):
if not t:
return ''
left = '({})'.format(self.tree2str(t.left)) if (t.left or t.right) else ''
right = '({})'.format(self.tree2str(t.right)) if t.right else ''
return '{}{}{}'.format(t.val, left, right)
def tree2str(self, t):
... | [
"huangyingw@gmail.com"
] | huangyingw@gmail.com |
f4602cd7303062ababc188c3b723277d0c1806dc | 5cd8654fd6db6789d3be0db676ab2aa73b17417d | /lab5_Conditional_GANs/parser.py | 58fe7ceec8bd1601b1430c875813137188fd3059 | [] | no_license | bhbruce/DLP_Lab | be23936d2025cf155b3a71f86303dc11853d1c29 | dd28f9cd063044757ae97819099f68f44919de44 | refs/heads/master | 2022-12-30T16:41:30.991055 | 2020-09-17T11:30:15 | 2020-09-17T11:30:15 | 296,305,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,717 | py | from argparse import ArgumentParser
def argparser():
parser = ArgumentParser(description='PyTorch Conditional GAN')
parser.add_argument("--n_epochs", type=int, default=800, help="number of epochs of training")
parser.add_argument("--batch_size", type=int, default=64, help="size of the batches")
parser... | [
"bhbruce.cs07g@nctu.edu.tw"
] | bhbruce.cs07g@nctu.edu.tw |
1870dfbf850c058f2747b95d3dfcfb2717daf4ef | 2cd90c3056b5fb2031136e3d13d8aee3b52fda54 | /exevada/apps/exevada/migrations/0001_initial.py | b807af914f3e22bb74cd39d692b6d3dd754b7d67 | [
"Apache-2.0"
] | permissive | C3S-attribution-service/exevada | b706e9ac7aacfedbf78648ae437edc60be8ffb37 | db121cb61fdd82e0d767955d7df8b25cb041f05d | refs/heads/master | 2023-04-23T12:23:21.194046 | 2021-05-19T14:43:02 | 2021-05-19T14:43:02 | 269,430,055 | 2 | 0 | Apache-2.0 | 2021-05-19T14:43:02 | 2020-06-04T18:04:03 | HTML | UTF-8 | Python | false | false | 18,827 | py | # Generated by Django 3.1.1 on 2020-12-17 22:30
import django.contrib.gis.db.models.fields
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrati... | [
"g.vandenOord@gmail.com"
] | g.vandenOord@gmail.com |
a9e42f89d227ed48a392eb63989a8e4bac736bea | fc5eb35cb7ad53730cd385be2668a375b12fc95f | /feincms_template_content/admin.py | 6bdd6c0b7d5b59cd4f9b9aaad33250f519ede99e | [
"MIT"
] | permissive | RichardOfWard/feincms-template-content | c58aca52ece1e86e54c6b58244f29198e4f8e7a0 | b8dacb29b9e16e3a9c80093c2c2db3011f6bacb5 | refs/heads/master | 2021-01-23T16:35:25.600828 | 2014-05-06T14:48:32 | 2014-05-06T14:52:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 371 | py | from feincms.admin.item_editor import FeinCMSInline
class BaseTemplateContentAdmin(FeinCMSInline):
def __init__(self, *args, **kwargs):
self.exclude = list(self.exclude or [])
if len(self.model.template_choices) <= 1:
self.exclude.append('template')
super(BaseTemplateContentAd... | [
"richard@richard.ward.name"
] | richard@richard.ward.name |
05048d5f830df5ed0b5e43b5e6473d8c7b7d7246 | 0ff87e0a84dd8b9a198cebb59a5130fa7765b9dd | /tests/test_backtest.py | 606de235aebb5127e7941c9e643a0564ca164f4f | [
"Apache-2.0"
] | permissive | dxcv/moonshot | 470caf28cdb3bc5cd5864596e69875bf1810d05d | ca05aa347b061db05c0da221e80b125a5e9ddea1 | refs/heads/master | 2020-05-31T04:40:43.638058 | 2019-03-28T17:07:04 | 2019-03-28T17:07:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 76,137 | py | # Copyright 2018 QuantRocket LLC - 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 applicable law... | [
"brian@quantrocket.com"
] | brian@quantrocket.com |
b21aab70f83a44383ba2584afdf1c8db013d0187 | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/databoxedge/v20210201preview/get_role.py | 2b3f43979b4fd165e04ffde6de3dfaed95f863d9 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | bpkgoud/pulumi-azure-native | 0817502630062efbc35134410c4a784b61a4736d | a3215fe1b87fba69294f248017b1591767c2b96c | refs/heads/master | 2023-08-29T22:39:49.984212 | 2021-11-15T12:43:41 | 2021-11-15T12:43:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,584 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | bpkgoud.noreply@github.com |
b2890fee28b3469e99f5ae1c676d8500ba428280 | 48d1bdfe8ef88e9e24e26f05a07b61a220fd5663 | /tests/settings.py | d264de5677cb4acca69cc9729cd414a7b2c6905b | [
"MIT"
] | permissive | dejmail/django-data-wizard | b2680cf14564e4be3d74c5e63d17060665adfb8d | cfb4d00032c73d4b55abceb542b68563f3a79a05 | refs/heads/master | 2023-05-10T20:59:46.222978 | 2022-08-18T01:37:40 | 2022-08-18T01:37:40 | 278,087,179 | 0 | 0 | MIT | 2020-07-08T12:46:19 | 2020-07-08T12:46:19 | null | UTF-8 | Python | false | false | 2,248 | py | import os
TEST_BACKEND = os.environ.get("TEST_BACKEND", "threading")
TEST_VARIANT = os.environ.get("TEST_VARIANT", "default")
WITH_WQDB = TEST_VARIANT == "wq.db"
SECRET_KEY = "1234"
MIDDLEWARE = [
"django.middleware.security.SecurityMiddleware",
"django.contrib.sessions.middleware.SessionMiddleware",
"dj... | [
"andrew@wq.io"
] | andrew@wq.io |
02a3b3e63c958d1e43cecdd81f5fcc744ec2a602 | 8219120b00d2efcfe4a8ac698001c88032c66344 | /mysite/settings.py | 2c7cb1cc4f2906772f918a218264aa285a72aafc | [] | no_license | Potusujko/my-first-blog | 0ffc81dcf1970934e2be8c94fa2a9291709cab52 | 24b376675d2a56677b890f97119d2b415596aea9 | refs/heads/master | 2020-04-27T18:13:56.595832 | 2019-03-08T15:18:45 | 2019-03-08T15:18:45 | 174,560,442 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,211 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 2.0.13.
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 os
#... | [
"potusujko@gmail.com"
] | potusujko@gmail.com |
32c070a67536348307110e67ace6f37c433a186e | 811f563a43b887da1e3710df9c38f8aa64633a0b | /manage.py | 37bdb1b6a10514844ead5f83de444b5ed8d26c13 | [] | no_license | harryphelps/larder-site | 6c81702f6850bb5e30ea6f0193c0e6c08f7f40f7 | 27a201eb796d403b646d9ef730062f203b11f7de | refs/heads/main | 2023-07-18T19:21:31.820643 | 2021-09-15T07:53:24 | 2021-09-15T07:53:24 | 374,751,383 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 670 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "larder-project.settings")
try:
from django.core.management import execute_from_command_line
exce... | [
"harry.phelps@octoenergy.com"
] | harry.phelps@octoenergy.com |
b4fea59b3b49975b22270fb41dea70e4b71350f3 | 3c4cba4eda8db2f88d3354e64abc8387bdd9e7ec | /xplan/__main__.py | 8e5f842355e84c6d7188b7af6c2eca7f048defaf | [] | no_license | shinhwagk/xplan | eb02ec715b9085c92e7fcd1276089d8b1706397c | adb5aa6079ba2f888cf8c9e6ed9081789acd3831 | refs/heads/master | 2021-07-15T11:05:07.542511 | 2020-05-18T03:12:55 | 2020-05-18T03:12:55 | 143,730,598 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | import argparse
from xplan.display_cursor import display_cursor
parser = argparse.ArgumentParser()
parser.add_argument('-dsn', help="db name", required=True)
parser.add_argument('-sql_id', help="inst", required=True)
parser.add_argument('-child_number', help="data source", default=0)
parser.add_argument('-p... | [
"noreply@github.com"
] | shinhwagk.noreply@github.com |
b812cb1fd735b6b63f0512a927f216cb8cb0055e | 4abfecc0722111c00cb2b2046014811d9aa37bed | /app.51.intviewQuestion.py | c3b1bee2164dc88fb8ec50946aaefd4ecf996f3f | [] | no_license | yzcali/PycharmProjects_HelloWorld | f5439a5f936f21ee01f3dcf7f3aff33432dfec91 | 8177d86b7cdc34819327c71a84654c107e032e0f | refs/heads/main | 2023-01-24T21:57:40.075679 | 2020-12-06T22:20:23 | 2020-12-06T22:20:23 | 315,055,525 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 629 | py | # question 1
# Write a function called fizz_buzz that takes a number.
# If the number is divisible by 3, it should return “Fizz”.
# If it is divisible by 5, it should return “Buzz”.
# If it is divisible by both 3 and 5, it should return “FizzBuzz”.
# Otherwise, it should return the same number.
def fizz_buzz(input):
... | [
"yaziciali694@gmail.com"
] | yaziciali694@gmail.com |
d09afbd5633143ee0043841892906c2295c30e97 | 5edfdcc3f9fe97971a2472a3ebfe8023d5d0fefc | /api_recognition_code/base.py | 928237b2c58987601e6c4dc5ca5b3bcb4826ddcf | [] | no_license | developneed/developneed.github.io | 77613c29ba600cd25596e7362fdcb06f87c29d67 | 28301656af488bb8abb2e66feda7d22680f93f38 | refs/heads/master | 2022-12-07T07:23:07.264008 | 2020-08-31T13:20:45 | 2020-08-31T13:20:45 | 291,243,813 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 338 | py | from abc import abstractmethod
from discussion.model.base import SOPost
class SOPostAPIRecognition:
@abstractmethod
def recognize(self, post: SOPost):
return set()
class SOPostAPILinker:
def link_one(self, post: SOPost, api):
return api
def link_batch(self, post: SOPost, api):
... | [
"noreply@github.com"
] | developneed.noreply@github.com |
3e457a379c73822f78cb65466214746ed00dbe11 | 7dd5e97066c15aafc3da0cf826c00df591e59342 | /adam_morrison/testFiles/genFakeData/portTest.py | 05d21eeea5f21a35ee2278d0174e464a60f578bc | [] | no_license | waggle-sensor/summer2017 | 47ac5ec21a44445bac848eb1405df2390f161482 | 4ee06ce6cc9fd9bcc3a3aba9540d37045132040b | refs/heads/master | 2021-01-01T20:37:40.583816 | 2018-03-08T19:45:27 | 2018-03-08T19:45:27 | 98,899,975 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 194 | py | import socket;
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
result = sock.connect_ex(('10.10.10.137',8000))
if result == 0:
print "Port is open"
else:
print "Port is not open"
| [
"adammorr@adammorr-desktop.lan"
] | adammorr@adammorr-desktop.lan |
c2006c7cd89aca0775e2f8862c0c7c80d2818081 | 6ac683881a26231638ae77261bc1c2e962ed81e6 | /message/models.py | 7155156b1bd11413e82722ed09d6d44072e0ac20 | [] | no_license | tenshiPure/chat | a3deea994d106b27bdcf7c8ac6bc21987b853601 | c10489b87814033ffbd4f50d0eebc3b9e1c364d4 | refs/heads/master | 2016-09-06T02:24:40.094709 | 2014-02-06T03:37:06 | 2014-02-06T03:37:06 | 16,363,786 | 0 | 0 | null | 2016-02-20T02:14:08 | 2014-01-30T00:12:25 | Python | UTF-8 | Python | false | false | 2,828 | py | #-*- coding: utf-8 -*-
from django import forms
from django.contrib.auth.forms import UserCreationForm
from django.forms import ModelForm
from django.db import models
from django.contrib.auth.models import User, Group
class UserForm(UserCreationForm):
first_name = forms.CharField(max_length = 32)
last_name =... | [
"user.ryo@gmail.com"
] | user.ryo@gmail.com |
a52e9d7aed8270a9bfd6951842c62b2ae4453cac | 3892fdc152650c1abe32e4610e2936a364afa56f | /project2/auctions/models.py | 76eb1e8846608190c7bc4a2bf856e564ba1d5f36 | [] | no_license | JosephLimWeiJie/cs50w | 0af1fc4dd05a04790bcde94072f41c668319a161 | d004fa9cf72886f25959182c717f950e10583d9b | refs/heads/master | 2022-12-29T22:06:30.457421 | 2020-10-08T17:09:37 | 2020-10-08T17:09:37 | 281,036,702 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,069 | py | from django.contrib.auth.models import AbstractUser
from django.db import models
class User(AbstractUser):
watchlist_counter = models.IntegerField(default=0)
has_won = models.BooleanField(default=False)
pass
class Listing(models.Model):
CATEGORY = (
("Men's Wear", "Men's Wear"),
("Wo... | [
"59989652+JosephLimWeiJie@users.noreply.github.com"
] | 59989652+JosephLimWeiJie@users.noreply.github.com |
79bef7120a9adbb9caf3a1a388176f20f58daf90 | e6572ae97327a7814a9ddd772aa2b8fc9ec0483f | /cogs/Makeemoji.py | 4a0ca81ab2254ef9adec22ddf86b6a5e79bf5a1b | [
"MIT"
] | permissive | izxxr/discord-emoji-stealer | be188010e2075a1ca82502bda97f75da786d196a | 5e34b7edac0f14cae21de2bd43c573cee0f7631f | refs/heads/main | 2023-05-06T16:18:44.278180 | 2021-05-10T09:10:41 | 2021-05-10T09:10:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,633 | py | from discord.ext import commands
import requests
import discord
class Makeemoji(commands.Cog):
def __init__(self, bot):
self.bot = bot
@commands.command()
async def makeemoji(self, ctx, name, url=None):
if url:
file_request = requests.get(url)
try:
... | [
"noreply@github.com"
] | izxxr.noreply@github.com |
b00c8aa0a7d46dd26c6d293c5f9030b06975e0e7 | d532a3bf7a7c55fa6eeeaf9d959971f5cb601888 | /WebSocket_Client_Server/aes.py | 0462f78d90b199938598b2c27332dcedae703673 | [] | no_license | Kalgrand/BSI_LAB10 | 8f26b4188c973e214ec08dca5452a23fc11f396f | 74474b32db384a8b18fe7b6b407f3901ffe8592f | refs/heads/master | 2023-02-18T22:19:14.856030 | 2021-01-19T10:04:05 | 2021-01-19T10:04:05 | 330,397,415 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,071 | py | """
Szyfrowanie tekstu przy pomocy algorytmu AES.
Autor: Maciej Milewski
Źródło algorytmu szyfrującego: https://pypi.org/project/pycrypto/
"""
from Crypto.Cipher import AES
import base64
from utils import pad, unpad, fill_to_block
def aes_encode(message, key):
""" Encrypting message using AES in CBC Mode """
... | [
"micdeg96@gmail.com"
] | micdeg96@gmail.com |
3bb2a6a4dfa49763c5e062343c951512a3089e45 | 02d82acce198e1a4eb69a4d0cb1586a4c8b264a5 | /motor_controller/motor.py | 0e0db988a5d984faf312b67ecac31b3d29f1efe2 | [] | no_license | asuar078/rpi_rover | 3b70b1e90e049bb82a0d6253e23014c9b893f93f | 89db9812dc38059bb83be1a8d248c70a374873a1 | refs/heads/master | 2021-04-15T10:05:18.252797 | 2018-06-19T16:27:42 | 2018-06-19T16:27:42 | 126,905,785 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 384 | py |
class Motor:
pwm_pin = 0
direction_pin = 0
current_pin = 0
enc_a_pin = 0
enc_b_pin = 0
def __init__(self, pwm_pin, direction_pin, current_pin=0, enc_a_pin=0, enc_b_pin=0):
self.pwm_pin = pwm_pin
self.direction_pin = direction_pin
self.current_pin = current_pin
... | [
"arian.suarez001@gmail.com"
] | arian.suarez001@gmail.com |
6ce1c62e5908770f961a6f42807d4ed6711f56ab | 3cdc345a9cf34f028ce34e2a5d01a86e77b88a90 | /gevent/greentest/test_threading_2.py | 11413b663a6a6f6076906c3017ec3ffecbebb117 | [
"MIT"
] | permissive | WeilerWebServices/Reddit | 459ace5af417d7bd8b4552a3068ff64b3986a579 | b300835f5c78f83a89931cf2a1c4e9150ddb9a9c | refs/heads/master | 2023-01-01T18:25:00.196266 | 2020-10-21T12:27:25 | 2020-10-21T12:27:25 | 305,972,801 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,520 | py | # testing gevent's Event, Lock, RLock, Semaphore, BoundedSemaphore with standard test_threading
from __future__ import print_function
from six import xrange
setup_ = '''from gevent import monkey; monkey.patch_all()
from gevent.event import Event
from gevent.lock import RLock, Semaphore, BoundedSemaphore
from gevent.th... | [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
476c871aec7380602d4d54db0bccf951f511c1ea | f7098120eaff59448debbfe2191512c9a6a9c49d | /greenhouse/settings.py | 435c59dff90ac3051102bf804048ae08b4eeea5e | [] | no_license | case112/smart-greenhouse-web | 9cacb3e05d2ebc09a0ab99d04517002c0b2381be | cde35f4a59ffebc6bee4deaaf7ac4e11e1f88463 | refs/heads/master | 2023-05-28T15:56:44.618118 | 2022-04-24T10:12:26 | 2022-04-24T10:12:26 | 253,299,210 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,007 | py | import os
from decouple import config
import dj_database_url
import dotenv
import django_heroku
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
dotenv_file = os.path.join(BASE_DIR, ".env")
if os.path.isfile(dotenv_file):
dotenv.load_dotenv(dotenv_file)
SECRET_KEY = config('SECRET_KEY')
DE... | [
"case112@users.noreply.github.com"
] | case112@users.noreply.github.com |
a0a87ff1bb1928a162d29d5c0b92860320bbc4cb | 5da5473ff3026165a47f98744bac82903cf008e0 | /packages/google-cloud-dialogflow-cx/google/cloud/dialogflowcx_v3/services/environments/transports/base.py | 2954e4b53ef852369ec2fb2c2b6ac7f8f8469fda | [
"Apache-2.0"
] | permissive | googleapis/google-cloud-python | ed61a5f03a476ab6053870f4da7bc5534e25558b | 93c4e63408c65129422f65217325f4e7d41f7edf | refs/heads/main | 2023-09-04T09:09:07.852632 | 2023-08-31T22:49:26 | 2023-08-31T22:49:26 | 16,316,451 | 2,792 | 917 | Apache-2.0 | 2023-09-14T21:45:18 | 2014-01-28T15:51:47 | Python | UTF-8 | Python | false | false | 11,551 | py | # -*- coding: utf-8 -*-
# Copyright 2023 Google LLC
#
# 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... | [
"noreply@github.com"
] | googleapis.noreply@github.com |
932070d45029b0cd3513177f15e0c146af1f52d9 | 8f3d104a86a41579a2b2622081ef96c78daccd13 | /app/app.py | 48a617fadf84f73765956996cd727bb0aacfdfee | [
"MIT"
] | permissive | pgs8/IS601_Individual-Project-Web-Application-Final | 8eddd66bc4f252415ae5e840d2d6a0e4723572c5 | fa3d110bb23d1c7d6c643ea9a805ef9b2faa75c0 | refs/heads/main | 2023-03-29T19:54:19.304266 | 2021-04-02T21:31:26 | 2021-04-02T21:31:26 | 354,129,414 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,745 | py | import simplejson as json
from flask import Flask, request, Response, redirect, render_template
from flaskext.mysql import MySQL
from pymysql.cursors import DictCursor
app = Flask(__name__)
mysql = MySQL(cursorclass=DictCursor)
app.config['MYSQL_DATABASE_HOST'] = 'db'
app.config['MYSQL_DATABASE_USER'] = 'root'
app.co... | [
"pgs8@njit.edu"
] | pgs8@njit.edu |
3620f9f21faf465bdcb55e4a4c4b67376ecf12d7 | bf6b8e95bad7cc9c527b87d405429d03cc336fa2 | /6/intro-proj1/DeHovitz-Bolton/intro-to-flask/app.py | 7d12b244908e8e27b2a4efc40e056c8753e95435 | [] | no_license | Enigmamemory/submissions | 90c75665f8d311a29c094c4e6a22a10a0893cf9f | 39d6b944ad61a78e693d564bb0ede661f9806964 | refs/heads/master | 2020-12-11T03:31:58.281197 | 2014-12-30T05:08:22 | 2014-12-30T05:08:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,857 | py | from flask import Flask,render_template, request
#<center>And how many words? <input type="text" name="topwords" size="5" value="50"><br>
app = Flask(__name__)
@app.route("/")
def start():
return render_template("constitutionoptions.html")
@app.route("/results", methods = ["POST", "GET"])
... | [
"adam.dehovitz@gmail.com"
] | adam.dehovitz@gmail.com |
14ae89f0d76dde18e5498cbc8cfee175078b9fb1 | c2aa972a4155a9d14e5208682fa4d0f1102b99d0 | /PyMailer.py | a87975d7371c52c72ce5054ae1506bb2b63b6832 | [
"MIT"
] | permissive | FrozenGirl-spd/automailer | d3500c0c788b81a80d32d715a92b365fbc6561b3 | b46e62d5ef3c48b15c681423adaf3a36158a6cd8 | refs/heads/master | 2022-05-27T06:22:16.762658 | 2020-04-28T17:53:36 | 2020-04-28T17:53:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,496 | py | import os
import smtplib # This module is defines an SMTP client session object that can be used to send mail
import imghdr #This module determines the type of image contained in a file
from email.message import EmailMessage
#Grab the credentials from Environment Variables locally stored on your system
Email_i... | [
"noreply@github.com"
] | FrozenGirl-spd.noreply@github.com |
c5db0d0de514c401128e8959756cdc4966c3e792 | ff0b267e3bbecf9bc1c46bdb75a42d71545d45f8 | /mluicode/FlowerClassification/iris.py | 75560ed6a5408530273cd646b7c7344ed0e05421 | [] | no_license | rupeshsm/ML_Code | 650c0590585fd52901db421b407dab1f6c5790ec | 7380a99efc7c105ea7771a40226c34571628cc70 | refs/heads/main | 2023-06-19T01:47:01.063957 | 2021-07-01T18:29:55 | 2021-07-01T18:29:55 | 380,484,132 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 496 | py |
import numpy as np
import pickle
import pandas as pd
df = pd.read_csv('iris.data')
X = np.array(df.iloc[:, 0:4])
y = np.array(df.iloc[:, 4:])
from sklearn.preprocessing import LabelEncoder
le = LabelEncoder()
y = le.fit_transform(y.reshape(-1))
from sklearn.model_selection import train_test_split
X_train, X_test, ... | [
"rrupesh.mishra@gmail.com"
] | rrupesh.mishra@gmail.com |
96eb29f1e9ed92f18a7a489d10a30a6ab97eb62a | 78579b189f1afd790bce20017c273c71cfa96240 | /lev_pos_size.py | ddb12bdaf17f3f3f8842ebedc23d2cb08165d061 | [] | no_license | harrychurchley/pos_lev_calculator | 4dbc94c3b2d66cdf039cedfdbfd4d8fe41105456 | badeb54edee105e4482995ce89728e07535d627b | refs/heads/main | 2023-06-30T13:17:37.541714 | 2021-08-01T12:12:51 | 2021-08-01T12:12:51 | 390,522,832 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 476 | py | # this is a leverage and position size calculator
# import dependencies
import pandas as pd
from binance import client,
account_size = 1000
risk_pc = 2
risk_raw = account_size*(risk_pc/100)
def place_trade(coin, buy_price, take_profit, stop_loss):
invalidation = ((buy_price - stop_loss)/buy_price) * 100
... | [
"harry_churchley@live.co.uk"
] | harry_churchley@live.co.uk |
ec3367618a33e5ef24929f6b41aaae828cb02e81 | d3e51b340a22b5924025e30f846302f62839335b | /api/models.py | 053dcf0c2f39bf5d7edf938940969b540a09faef | [] | no_license | benbryson789/drf-auth-ex | 98fff4f1a80ec54e9e8a225328139ab5b6e9dcb7 | 6a5a2b82959b2ccd14fd6e8dbf5b420f5bce81a3 | refs/heads/master | 2023-07-15T07:27:22.250314 | 2021-08-21T13:52:42 | 2021-08-21T13:52:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 206 | py | from django.db import models
class Advice(models.Model):
genre = models.CharField(max_length=100)
body = models.TextField()
def __str__(self):
return f"{self.genre}, {self.body[:20]}"
| [
"mowbray.chad@gmail.com"
] | mowbray.chad@gmail.com |
e25e3fb611bdf6fa99186813f21592c175ee2b99 | 53ee800e1cd6b4cd3e834e049a74c67c5e32eaca | /conftest.py | d7d40aca37ed6a8b6431be82ec5d473360206d71 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | sasobadovinac/ht | 482cd7e7c8ef351dd4bcb5bc9993ef3f74d8cab0 | de707506c00a3aefc2985008e98e9df0e7af9cb6 | refs/heads/master | 2023-02-09T04:42:11.961473 | 2023-01-23T02:21:06 | 2023-01-23T02:21:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,984 | py | import sys
import platform
is_pypy = 'PyPy' in sys.version
def pytest_ignore_collect(path):
path = str(path)
if 'manual_runner' in path or 'make_test_stubs' in path or 'plot' in path or 'prerelease' in path:
return True
if 'conf.py' in path:
return True
ver_tup = platform.python_version... | [
"Caleb.Andrew.Bell@gmail.com"
] | Caleb.Andrew.Bell@gmail.com |
daebbdca8eef6e5e32041ddcc0c62e19d77d24da | 27b9c6fd86bd1f27bb5abac66c85eaa005e928e1 | /directinfo.py | 09be6c1409c5cdda9fff2a9a5c9bcf463158e680 | [] | no_license | essefi-ahlem/web-scraping-with-BeautifulSoup | 02415e04165b4d3d7f3c241f098f966cffb243ca | c1f94b4c369312ca743dde8c7fa4165a79cfa57f | refs/heads/master | 2022-06-07T19:26:18.746611 | 2020-05-06T20:19:02 | 2020-05-06T20:19:02 | 258,362,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,984 | py | # -*- coding: utf-8 -*-
"""directinfo.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1-cJh0axprUdwijWJ0HCRz7uN56ECBfQM
"""
#importing libraries
import bs4
from urllib.request import urlopen as req
from bs4 import BeautifulSoup as soup
import req... | [
"noreply@github.com"
] | essefi-ahlem.noreply@github.com |
bfbdcb02acc6bbaaf28aed62a3a02c0364e3390f | 1e5f6ac1590fe64e2d5a2d8b036c0948847f668d | /codes/Module_3/lecture_14/lecture_14_1.py | 8e31229472bbd0149536f6ac5d764794c79ff078 | [] | no_license | Gedanke/Reptile_study_notes | 54a4f48820586b1784c139716c719cc9d614c91b | a9705ebc3a6f95160ad9571d48675bc59876bd32 | refs/heads/master | 2022-07-12T23:43:24.452049 | 2021-08-09T12:54:18 | 2021-08-09T12:54:18 | 247,996,275 | 5 | 1 | null | 2022-06-26T00:21:48 | 2020-03-17T14:50:42 | HTML | UTF-8 | Python | false | false | 728 | py | # -*- coding: utf-8 -*-
import time
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.wait import WebDriverWait
url = "https://www.baidu.com"
browse... | [
"13767927306@163.com"
] | 13767927306@163.com |
673319d7217bb7d2670c787afae6d99c369506e2 | 4ff8c0b324c4447e6a777b6311c74ca21ad75cc0 | /tukutter.py | bc14a857b11e33cebd8262fac6dc471faa8a3494 | [] | no_license | Asatai95/tukutter | 58ba07e7dcde978f53b53c7e8ab71438fb335534 | e315ac17d2dc393ef1d9a3f045ec852224549b60 | refs/heads/master | 2021-04-25T12:18:47.205449 | 2018-08-17T10:20:06 | 2018-08-17T10:20:06 | 111,815,206 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30,728 | py | import MySQLdb
import time
import os
from flask import Flask, request, render_template, redirect, make_response, send_from_directory, url_for, flash
from werkzeug import secure_filename
application = Flask(__name__)
UPLOAD_FOLDER = './static/img/'
ALLOWED_EXTENSIONS = set(['png', 'jpeg', 'gif'])
path = './static/img/... | [
"defense433@gmail.com"
] | defense433@gmail.com |
150dd85450289d365d3b3802b6dc6442dc1c5738 | de9629b3afd37e9b9cf069a096129271f241d7e6 | /Code/HMM.py | 859d736321cccd60b64412b00edbd682f4c7516e | [] | no_license | GazeProject05/PythonCode | 6bc343b958acb7aa58c841b654e23fd9854f1e7e | c96f5d917308862a4a1cb695879ad0c1bac2eb8c | refs/heads/master | 2020-05-15T08:12:28.730234 | 2019-11-16T14:17:10 | 2019-11-16T14:17:10 | 182,155,622 | 0 | 0 | null | 2019-04-28T12:18:23 | 2019-04-18T20:49:23 | null | UTF-8 | Python | false | false | 12,528 | py | import pandas as pd
import numpy as np
import math as m
from scipy.stats import multivariate_normal as mn
import csv
#Reading data file
df = pd.read_excel('19Proband19.xlsx')
#Readig relevant columns of data
gazeEventData = df['GazeEventType']
b = df['PupilLeft']
leftPupilData = b.str.replace(',','.').astype(float)
... | [
"44416059+devesh1611singh@users.noreply.github.com"
] | 44416059+devesh1611singh@users.noreply.github.com |
4cac7bbd91f2ee70771624bc6cc8a2c4bfff9f5f | 3ea45d6acd362a646e906eac31ab6d3ea019d727 | /qaeval/tests/scoring/scorers/lerc_test.py | cadff9977a9b00b52775e5e6b44447cb724e1300 | [
"Apache-2.0"
] | permissive | rajhans/qaeval | 9747dea5dd0a234cc3df7837d6cbc0406b5d1b03 | dd7273183dd1b2c9995115310ef041daa953ca81 | refs/heads/master | 2023-07-10T04:15:05.399369 | 2021-08-03T02:22:15 | 2021-08-03T02:22:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,155 | py | import os
import pytest
from qaeval.scoring.scorers import LERCScorer
from qaeval.tests.scoring.scorers.scorer_test import TestScorer
@pytest.mark.skipif('LERC_MODEL' not in os.environ or 'LERC_PRETRAINED' not in os.environ, reason='LERC environment variables not set')
class TestLERCScorer(TestScorer):
@classmet... | [
"danfdeutsch@gmail.com"
] | danfdeutsch@gmail.com |
02bfe54d10807aad87934191d827ad29badd0bb4 | debacbb9a5c833334b36f1d89ddd3e3bce2cf054 | /ciphers/fractions/trifid.py | 81d7e3afa2ed392f533990872c57a776ff14c54d | [] | no_license | branislavblazek/projects | 35198a58afecb30988a65a84c72ebfc7d1cf871c | f028b37df5351e69abda974ea1f5ab1d0c4691f2 | refs/heads/master | 2021-12-22T01:07:13.664219 | 2021-12-14T07:15:05 | 2021-12-14T07:15:05 | 234,887,424 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,414 | py | from pprint import pprint
class Trifid:
def __init__(self):
self.alphabet = [chr(i+65) for i in range(26)]
self.alphabet.append('.')
self.len = len(self.alphabet)
def intersection(self, lst1, lst2):
lst3 = [value for value in lst2 if value not in lst1]
retur... | [
"branislav.blazek.bb@gmail.com"
] | branislav.blazek.bb@gmail.com |
2eda323e1df29dba8b357199e32a196401cea08e | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_2_1_neat/16_2_1_latsyrc11235_1.py | da55e94217b12acb619e4ed1d23e38ecc1f4df14 | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 2,143 | py | f = [line.rstrip() for line in open('/Users/roshil/Desktop/A-small-attempt0 (2).in')]
out = open('/Users/roshil/Desktop/out.txt','w')
out.truncate()
line = 0
testcases = int(f[line])
line += 1
for i in range(1, testcases+1):
r1 = f[line]
line += 1
r1 = r1.lower()
word = [k for k in r1]
s = []
wh... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
25facb350837f954b32639f52229de7957d57c7f | 19b857585fa6509b61b28852546db96237a9aa20 | /spider_project/baike_spider/html_parser.py | 04fd841dc1a138da6ff8ec9d78d6d8ab775e05d8 | [] | no_license | hanxueda/python | 296fbd9aba290f538d304877ade36a365e041f75 | c741f413b4e6909924bf0243e1dafc6ccc5fe2f7 | refs/heads/master | 2021-07-17T04:42:10.722626 | 2017-10-23T08:17:57 | 2017-10-23T08:17:57 | 107,843,913 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,254 | py | import re, urllib.parse
from bs4 import BeautifulSoup
class HtmlParser():
def parse(self, page_url, html_cont):
if page_url is None or html_cont is None:
return
soup = BeautifulSoup(html_cont, 'html.parser', from_encoding='utf-8')
new_urls = self._get_new_urls(page_url, soup)
... | [
"hanxueda@qq.com"
] | hanxueda@qq.com |
229358e72b33f7974234b83b16ad03b969cd8c66 | e31c3a6c866fc8537cd2ad25638bfe1b1102f53b | /danbo-backend/codes/danbo_backend/wsgi.py | b15a0aad0e7ebebc66efe13cb0ecd2ef2ac024f5 | [
"MIT"
] | permissive | StarDxxx/Software-Engineering-Project---Danbo | 8f781ce18fc63fa665bd588d30426dbe42d93115 | 2225cfe627548ba5af32b842a0bfa64d714fe777 | refs/heads/master | 2023-02-05T21:11:35.811793 | 2020-12-30T09:13:54 | 2020-12-30T09:13:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | """
WSGI config for danbo_backend project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO... | [
"17307130121@fudan.edu.cn"
] | 17307130121@fudan.edu.cn |
2d29c7de460a6f7702e0e41e00c5019dfd8918a8 | 0ceb04ce763cf8b73f9b71a211990070abc1f5bb | /src/models/dataset.py | df71f2d8f3edb21d4ece1c2736dba94359979ca5 | [
"MIT"
] | permissive | fangzhimeng/MachineLearningRegressionBenchmark | e04412581ca21d82f4bbff64ba29ec9795337cac | 42a83a1261dbf6b30624e9950db5b2d297622d76 | refs/heads/main | 2023-03-21T04:57:51.633945 | 2021-01-10T20:20:24 | 2021-01-10T20:20:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,391 | py | import copy
from pandas import DataFrame, concat
from numpy import array, ndarray
class Dataset:
_dataFrame: DataFrame
_label: str
def __init__(self, label: str, dataFrame: DataFrame):
self._dataFrame = dataFrame
self._label = label
self.prepareDataset()
def getDataset(self):... | [
"iulian.octavian.preda@gmail.com"
] | iulian.octavian.preda@gmail.com |
023d9f5a2081647f38c2abb19c67c5d07e7f1bac | fb3f2c3f83fbfe894f01ea514c760371ef05d54f | /Algorithm/chapter5/flatten.py | 0b99312d0778169c809ff206410031189ac979eb | [] | no_license | jonXue92/PythonGit | 8160220a3d51fb6a317702a2b50e8ca3306a8f0e | a9358ac79a47b3d1fd072a4af603bf07a89b1a2c | refs/heads/master | 2020-04-02T05:25:51.032912 | 2019-04-12T04:18:15 | 2019-04-12T04:18:15 | 154,076,228 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,088 | py | # -*- coding: utf-8 -*-
class TreeNode:
def __init__(self, val):
self.val = val
self.left, self.right = None, None
class Flatten:
last_node = None
def flatten(self, root):
if root is None:
return
if self.last_node is not None:
self.last_node.... | [
"xzywrz@gmail.com"
] | xzywrz@gmail.com |
edfb24502e388ee7e252a957ea60815238e99f0f | 29f8b7f92eb22cc3134a16c439d3180e254df4bb | /chp04_database_programming/04_65_sql.py | d81a91878a6b51f9b1bfd0ac8be6453d5ed66e59 | [] | no_license | Hemie143/realpython2 | 7df80dd5f61ce7cd8c31b8bf78111b8507cbdb36 | b8535ffe97594e1b18233bcd9aa0de664257cb09 | refs/heads/master | 2022-12-12T04:51:53.120131 | 2021-01-03T19:52:32 | 2021-01-03T19:52:32 | 208,735,855 | 0 | 0 | null | 2023-08-17T05:45:32 | 2019-09-16T07:22:16 | Python | UTF-8 | Python | false | false | 925 | py | import sqlite3
with sqlite3.connect("new.db") as connection:
c = connection.cursor()
c.execute("CREATE TABLE regions (city TEXT, region TEXT)")
cities = [
('New York City', 'Northeast'),
('San Francisco', 'West'),
('Chicago', 'Midwest'),
('Houston', 'South'),
('Phoen... | [
"hemie143@gmail.com"
] | hemie143@gmail.com |
1b11eb854f9ea3d9f3db117ffd7404cfc3d9f2d2 | 34d82d94f49e9bb228d827a4bb2aa29de1a7ffb3 | /cafe_project/content/migrations/0002_alter_meal_photo.py | 2042c69b1fbaf839856d27a84b8ff851aaaf8269 | [] | no_license | Zinko17/CafeProject | eb8504a72f8a11ba4d9d0eea2a102ddca7ac8004 | 5243aa84f138cf6f740e1e8ae4b359c058409026 | refs/heads/master | 2023-05-27T06:31:22.478258 | 2021-06-13T08:52:05 | 2021-06-13T08:52:05 | 374,962,616 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | # Generated by Django 3.2.4 on 2021-06-09 10:21
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('content', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='meal',
name='photo',
fiel... | [
"vovazin2@gmail.com"
] | vovazin2@gmail.com |
537d39ea66e7cc44ae00acb9282f590cf9ffb326 | ae8074a50ee666e46484e33bed7eb1cc16dfd0b8 | /notebooks/CaseStudies/executor_1.py | 04316c053eba23dd3c842d1844e318ff17f821f8 | [] | no_license | ayyogg0628/AnomalyDetection_MEAD | 72edb3c5f222c1d8c1f4fc7fc6d2ae17a757e254 | 0df68f91568726c40f5ff7309cf8f74bcc2af74e | refs/heads/master | 2023-03-18T22:22:17.045809 | 2020-07-07T23:44:59 | 2020-07-07T23:44:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,089 | py | import operator
import pickle
import numpy as np
import os
import sys
import time
import pprint
import inspect
from collections import OrderedDict
import matplotlib.pyplot as plt
import yaml
from sklearn.metrics import auc
import logging
import logging.handlers
import tensorflow as tf
import pandas as pd
tf.logging.set... | [
"ddatta@vt.edu"
] | ddatta@vt.edu |
70772f2adcd137ef04c0dd0f83df8264fa9192f8 | 72db8db1a513dfa01ce81bf88b39c10c662bfae2 | /annoying/tests/models.py | 099d3338d0b17db45ce4bfc6d5fbc2b27c37d152 | [
"MIT"
] | permissive | colorstheforce/insta-clonewars | ec6053853505db26e9e931c531e531b5e6754740 | 2e8e6fc2e5ef7d2401d7902679e64d8859918d3a | refs/heads/master | 2022-03-30T13:28:39.755391 | 2019-01-17T12:55:11 | 2019-01-17T12:55:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 456 | py | from django.db import models
from annoying.fields import AutoOneToOneField
from annoying.fields import JSONField
class SuperVillain(models.Model):
name = models.CharField(max_length=20, default="Dr Horrible")
stats = JSONField(default=None, blank=True, null=True)
class SuperHero(models.Model):
name = mo... | [
"jackogina60@gmail.com"
] | jackogina60@gmail.com |
e9b5cf2445399642b2b7c925cbf7645c8e7e2f58 | 5864e86954a221d52d4fa83a607c71bacf201c5a | /trinity/renderjobs.py | 394ddcb28608b85b76dfb5fc0412e2471051f7de | [] | no_license | connoryang/1v1dec | e9a2303a01e5a26bf14159112b112be81a6560fd | 404f2cebf13b311e754d45206008918881496370 | refs/heads/master | 2021-05-04T02:34:59.627529 | 2016-10-19T08:56:26 | 2016-10-19T08:56:26 | 71,334,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,474 | py | #Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\packages\trinity\renderjobs.py
import decometaclass
from . import _trinity as trinity
class RenderJobs(object):
__cid__ = 'trinity.Tr2RenderJobs'
__metaclass__ = decometaclass.BlueWrappedMetaclass
def __init__(self):
... | [
"le02005@163.com"
] | le02005@163.com |
9db0edab58fd19dee622b29b06fd8afe7a16804b | 81243f1ec5eeb089b8f93dffe843d811f6918a68 | /matlab_starter.py | 5d1baa2768dd9c46da7987d36f16fbef65ec42ff | [] | no_license | crossz/simu-betting-strategy | ac67932a942f98e6ebdb9b9f2592e5a68968ca91 | 2fc116fe3eec5e82cfdb3115e341741917e29595 | refs/heads/master | 2021-05-04T01:52:37.635680 | 2016-10-23T17:24:42 | 2016-10-23T17:24:42 | 71,226,440 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,087 | py | import pickle
import LoadData
import WhoScoreInvestor
GameData = LoadData.GameData
mode = 'w'
mode = 'r'
def getGameData():
if mode == 'w':
game_data = GameData.get_data_from_mysql(sql='SELECT CAST(WIN310_EUROPE_ID as UNSIGNED) FROM t_crawler_win310 where START_DATE_TIME > "2016-09-17 00:00:00" order ... | [
"drcross@outlook.com"
] | drcross@outlook.com |
934ee088516ad8e93e8cde4bb96817b3c2bccdaa | fa8f9df0c87647a7ed01ff441c75f9a887bb7283 | /attentive_np/cartpole_attentive_np.py | bdfb8eed95066104a0ec789f68630c66b5d5b9f4 | [] | no_license | aGiant/attentive-neural-algo | cd11c050641534f1086669fc65d77f80149dcab8 | 71979832a09e3ee4a95261bfceaf53f4923ac27e | refs/heads/master | 2020-09-14T16:51:33.158898 | 2019-06-09T20:51:32 | 2019-06-09T20:51:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,736 | py | import tensorflow as tf
def batch_mlp(input, output_sizes, variable_scope):
"""Apply MLP to the final axis of a 3D tensor (reusing already defined MLPs).
Args:
input: input tensor of shape [B,n,d_in].
output_sizes: An iterable containing the output sizes of the MLP as defined
in `basic.Linear`.... | [
"ubuntu@ip-172-31-36-212.us-east-2.compute.internal"
] | ubuntu@ip-172-31-36-212.us-east-2.compute.internal |
e2fbbf0ef19bf424f658040ab456eacfcf5a351f | d8ff5977d69876cb21295892e80d4881e1172446 | /secure_info_lab12/venv/bin/easy_install-3.6 | 1f14356d80b53756fe026bf4ab2db7d3472b8838 | [] | no_license | OlehFliurkevych/secure_labs | f1ba571707aa7b263304ffad4b76507c3eabb280 | a2fc1d8172aff77ae7b41d3e6ab0aafba5868f56 | refs/heads/master | 2020-04-02T18:25:07.950881 | 2018-10-25T15:53:17 | 2018-10-25T15:53:17 | 154,697,346 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 458 | 6 | #!/Users/admin/PycharmProjects/secure_infe_lab12/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.0.1','console_scripts','easy_install-3.6'
__requires__ = 'setuptools==39.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw... | [
"39386806+Korb1t@users.noreply.github.com"
] | 39386806+Korb1t@users.noreply.github.com |
d4a4f7cad1ae98a307e8097d46ba07924f6a4adb | 1f85142263a08d2e20080f18756059f581d524df | /chromium_extension/branches/timeline/src/build/common.gypi | 764680d3d99285d67d4b0c6a767afa03d918f377 | [] | no_license | songlibo/page-speed | 60edce572136a4b35f4d939fd11cc4d3cfd04567 | 8776e0441abd3f061da969644a9db6655fe01855 | refs/heads/master | 2021-01-22T08:27:40.145133 | 2016-02-03T15:34:40 | 2016-02-03T15:34:40 | 43,261,473 | 0 | 0 | null | 2015-09-27T19:32:17 | 2015-09-27T19:32:17 | null | UTF-8 | Python | false | false | 1,260 | gypi | # Copyright 2010 Google 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 writing,... | [
"bmcquade@google.com"
] | bmcquade@google.com |
9cf2b167df432cc84eb98e9b71712b4ded02036b | 9c38f88e52afd3651b52ecb8bc9d36e4563a4454 | /pandaserver/taskbuffer/Initializer.py | bd985ae8b921a05bbcc8266112edca6ce20f6993 | [
"MIT"
] | permissive | eschanet/QMonit | 9f84feb1fcdf28ea1f21804f332d8ce80aafcd5a | 83f3323fa465b3ae41f9a49f28332bdb5e748685 | refs/heads/master | 2023-07-15T09:38:19.570964 | 2021-08-23T15:53:51 | 2021-08-23T15:53:51 | 318,832,692 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,904 | py | import sys
from threading import Lock
from pandaserver.config import panda_config
# logger
from pandacommon.pandalogger.PandaLogger import PandaLogger
_logger = PandaLogger().getLogger('Initializer')
# initialize cx_Oracle using dummy connection to avoid "Unable to acquire Oracle environment handle"
class Initializ... | [
"eric.schanet@cern.ch"
] | eric.schanet@cern.ch |
832ae6f79a74d95dff09d7d3c29ba88a946d521f | 28d8c101e01c0f0cc1eb9b227efdbe61650d7c35 | /ejemplos_en_clase/2._Administracion_de_procesos/intro_hilos.py | 208e4574e08e32dea4e2981f27f0dcdc947739ee | [
"LicenseRef-scancode-unknown-license-reference",
"CC-BY-4.0"
] | permissive | Emiliano312/sistop-2020-1 | b65831c0aee1982084a38ab5bfc6b874c4b602df | 603b2539afa720387508b855a3740e2f260bef4b | refs/heads/master | 2020-07-10T20:06:52.122098 | 2019-09-03T17:53:12 | 2019-09-03T17:53:12 | 204,358,183 | 0 | 0 | NOASSERTION | 2019-08-25T22:45:45 | 2019-08-25T22:45:44 | null | UTF-8 | Python | false | false | 442 | py | #!/usr/bin/python3
from threading import Thread, enumerate
from time import sleep
from random import randint
ultimo = 0
def un_hilo(yo):
global ultimo
while True:
print(' ' * yo, ultimo, yo)
ultimo = yo
sleep(randint(0,5))
hilos = []
for i in range(10):
hilo = Thread(target=un_h... | [
"gwolf@gwolf.org"
] | gwolf@gwolf.org |
49cd88876798c50a994c5caa747a95ebd98b165b | 41251f95aaa04bec71a2c087c3a3d86af98dc86f | /toolbox/reaction.py | c2f963f5acfd32da42a04219cfdb624747d65a90 | [
"MIT"
] | permissive | xiaoruiDong/RMG-tools | f73072ad3cbbb15e58ddb1be49c45d782e26cd1e | 95305caef3baeda8d86164e602e5775e3c64d5d7 | refs/heads/master | 2020-09-13T09:35:01.236416 | 2019-11-27T20:14:29 | 2019-11-27T20:14:29 | 222,728,386 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,960 | py | #!/usr/bin/env python3
"""
The toolbox for reaction related tasks
"""
import logging
import re
from copy import deepcopy
from rmgpy.molecule.molecule import Molecule
from rmgpy.species import Species
from rmgpy.kinetics.arrhenius import Arrhenius, MultiArrhenius, PDepArrhenius
from toolbox.species import add_spc_to_... | [
"xiaorui@mit.edu"
] | xiaorui@mit.edu |
499899b07cb558bc9dd599794ace8b8746cee9ba | 06c9edb02884ced68c62b5527d2be0e1a2e65bf1 | /9012.py | 3ce6c980e1d0a4c7ae29f246559b2957d47c7fc6 | [] | no_license | 0x232/BOJ | 3c5d3973b62036bfe9b761c88c822cf7fe909bce | 5f135ac51b1c304eff4630798fb5c516b666a5c6 | refs/heads/master | 2021-07-03T02:56:00.132987 | 2020-10-31T02:18:19 | 2020-10-31T02:18:19 | 191,161,517 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | py | n = int(input())
for _ in range(n):
paren = input()
counter = 0
answer = True
for p in paren:
if counter < 0:
answer = False
break
if p == '(':
counter += 1
if p == ')':
counter -= 1
if counter != 0:
answer = False
i... | [
"51640066+0x232@users.noreply.github.com"
] | 51640066+0x232@users.noreply.github.com |
6f0ed4a9c23a128f716f922b6b99cba603ce1e7f | 42d0a78861a904cbb4397a495855de40d7f069ad | /client/src/characterControl/Camera.py | a6f1b9fff05b0567f92c489eee03e39e4f11af27 | [] | no_license | sythaeryn/lostfrontier | 35e1555dc61dc444fadb4dc24448dc9b566d21a7 | a10b52a015fcfe68018dadb2e3cab31d684da89d | refs/heads/master | 2016-09-10T11:07:34.366957 | 2009-08-27T15:38:11 | 2009-08-27T15:38:11 | 37,406,898 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 939 | py | from direct.showbase.DirectObject import DirectObject
from pandac.PandaModules import *
from direct.interval.IntervalGlobal import *
class Camera(DirectObject):
objSeguir = None
def __init__(self,obj):
base.disableMouse()
lente = base.cam.node().getLens()
lente.setFov(40)
... | [
"joao@setequatro.com.br"
] | joao@setequatro.com.br |
3c80081c260d7cc613091294c57a8e8f35a4dd0c | bbbd25309c327ae774ddd10a92c043a88be27665 | /game/main.py | 9e75d05ee2dd4521b8c08cf2076dc96f93f9f76c | [] | no_license | Max-Joshua/Herramientas_Computacionales | b2298039f585b6d0f55ff9dbecd18e0846ab5803 | c275b056cf7cc25a3fbb9743ada7b3bc3ef39d5e | refs/heads/main | 2023-01-07T06:18:32.760318 | 2020-10-30T17:14:28 | 2020-10-30T17:14:28 | 308,102,773 | 0 | 1 | null | 2020-10-30T15:42:39 | 2020-10-28T18:12:00 | Python | UTF-8 | Python | false | false | 21,016 | py | """
thieves' hole redeem is a plataformer game, where magic and bad guys collide!
Have fun going through different dungeos to save your loved one.
thieves' hole redeem by Alejandro Fernandez del Valle Herrera, Joshua Rubén Amaya Camilo and José Emilio Derbez Safie
is licensed under CC BY 4.0. To view a copy of this l... | [
"alexplays003@gmail.com"
] | alexplays003@gmail.com |
a2d6e90b036d44adf506a3ed0f934486170ee325 | d47da5253b853fbe15f06f5f23e43e4786d7deb2 | /code/ACER/main.py | 4a6cf2e170b19f2d98a7f0bc5b5291cae50b77b2 | [] | no_license | htpauleta/RL-Algorithms | 1189167e5dd2cadc649c53df6470f626e7c2f7d3 | 483c99cea2c4d9c0d053ce5cf9c2279a0d7c4a4e | refs/heads/master | 2020-09-13T16:32:21.564621 | 2019-11-14T11:58:37 | 2019-11-14T11:58:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,140 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# @Time : 2018/5/23 下午1:19
# @Author : Yang Yuchi
import argparse
import threading
import multiprocessing as mp
import tensorflow as tf
import gym
from network import ActorCriticNet, Agent
from utils import Counter
from test import test
# Hyper parameters
parser = ar... | [
"noreply@github.com"
] | htpauleta.noreply@github.com |
63c822733375cb75b5e2b4c7c27706ad5ff89be8 | 2d244496960c8bb2bfff001ea70df4a47e532241 | /products/migrations/0011_auto_20151123_1231.py | 274a1b134441eccde0bb5b21fc448db27d861942 | [] | no_license | brajeshvit/iCharity | 73f1fb0dd6743d34aa481411e20c62019dd87cef | f7de759da19d8902020efff46fb4f5a115f09130 | refs/heads/master | 2016-08-11T20:04:27.969963 | 2015-11-24T08:14:26 | 2015-11-24T08:14:26 | 46,608,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 925 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('products', '0010_auto_20151123_1226'),
]
operations = [
migrations.CreateModel(
name='Variation1',
f... | [
"richavit1995@gmail.com"
] | richavit1995@gmail.com |
4ff7442917eee0fc06eb777314963d47e465335b | 8e1e8e65720b525c843fe11a45bbacff1df1ec4f | /translation_client/management/__init__.py | 659f7ba41b6a1db78e7dc214e769006ac1ed1eb6 | [
"MIT"
] | permissive | gdelnegro/django-translation-client | 43a3b9d87d6e61d1dbd5e1285651d788cad03e0a | be8ad3f68cf43f77cae3d99254876b394e5ecd55 | refs/heads/master | 2021-01-12T15:16:46.600464 | 2017-10-13T07:53:15 | 2017-10-13T07:53:15 | 71,740,257 | 0 | 1 | null | 2017-10-13T07:53:16 | 2016-10-24T01:12:52 | Python | UTF-8 | Python | false | false | 96 | py | # -*- coding: utf-8 -*-
# Created by Gustavo Del Negro <gustavodelnegro@gmail.com> on 10/23/16.
| [
"gustavodelnegro@gmail.com"
] | gustavodelnegro@gmail.com |
84e9d0b869c9b47ae05f7b7b29b416b67681bec8 | 2c2c8d82d3a5ee78a4e4bd4ed501fc31203204ab | /check_equal.py | 4c45d0c4357c536989e2abb5f53e0da703d920a1 | [] | no_license | KumarSanskar/Python-Programs | 3341e47f43f7c96ac7ef9cab5e9baedb4d40a684 | a33cde03b19b36b1c447f78aa2f30f2593d38708 | refs/heads/master | 2021-01-04T13:31:39.509503 | 2020-11-18T04:25:39 | 2020-11-18T04:25:39 | 240,574,672 | 3 | 2 | null | 2020-10-18T10:10:07 | 2020-02-14T18:33:32 | Python | UTF-8 | Python | false | false | 378 | py | # Programs to check two no. are equal or not
n = int(input("Enter first no "))
p = int(input("Enter second no "))
if n == p: # using equality operator and if else
print("They are equal")
else:
print("They are unequal")
print()
# Using ternary if else structure
# This will be printed at second time
pr... | [
"noreply@github.com"
] | KumarSanskar.noreply@github.com |
7f11c1f7db6501aaf310c7744ab87a66e8414e63 | a08daa76d8fb7368ba4abc10dab7d6afcf7b61dd | /App/migrations/0001_initial.py | 965626ff3cb0594bae62d4cfc58d96ba3be38106 | [] | no_license | farshadkalathingal/beardeo-django | 74d7601f5067f302a4e34079c7b0a4fb19c112df | 2f3e4742072c4b6b3773b4e984859f3604e1f009 | refs/heads/main | 2023-01-03T09:23:08.935404 | 2020-10-30T05:19:36 | 2020-10-30T05:19:36 | 308,530,934 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 897 | py | # Generated by Django 3.1.2 on 2020-10-29 07:52
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='ContactDetail',
... | [
"farshadkalathingal@gmail.com"
] | farshadkalathingal@gmail.com |
184e3bd29a8ed96678a85c84d7c640909df9152d | 1a3413c32d8384fb781bd0945a7d4e68be796407 | /Netconf-Agents/EnodebSimSetup.py | cfa5bf97f7c93250c0cc9138d9327a333f530df2 | [
"Apache-2.0"
] | permissive | Laymer/ran-sim | 795e62cf1bc40b60321a54bb38c0800e44512be7 | 68b77cf98c81986221fa11e18529e1d448a00c1e | refs/heads/master | 2020-06-19T08:47:14.693615 | 2019-07-08T11:18:31 | 2019-07-08T11:18:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,616 | py | #!/bin/python
import sys
import shutil
import os
import signal
import stat
import time
import subprocess
import fileinput
import re
number_of_arguments = len(sys.argv)
if number_of_arguments == 3:
print "Staring..."
else:
print 'Missing arguement NoOfInstances'
print 'Usage:', sys.argv[0] ,' NoOfInstances ... | [
"ramesh.kumar50@wipro.com"
] | ramesh.kumar50@wipro.com |
64c8d5a9d3265d54252822fc85c11d1822807503 | f5dee44afaa7ec04061899feeb2d4b0717abc089 | /app/adapters/queues.py | abe870801cec42105ea71c269089a9ae6bfb3439 | [] | no_license | jazmanzana/event-driven | 2cfe53254f05cc8f36e8ee3bbd7b432f8b8e5a2e | 22f8c56645fec267b2cea82971e7d0e3c12042bd | refs/heads/main | 2023-06-21T12:16:50.318073 | 2021-07-27T06:14:57 | 2021-07-27T06:14:57 | 388,902,475 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,377 | py | from collections.abc import Callable
import pika
import os
class Publisher:
EXCHANGE = ""
QUEUE = "processing"
def __init__(self, url="queues"):
# this type of connection is affecting my performance
self.connection = pika.BlockingConnection(pika.ConnectionParameters(host=url))
sel... | [
"noreply@github.com"
] | jazmanzana.noreply@github.com |
efa692d6ea6388de8348b3713667942e6b5c86e3 | 2193dafd0739cf6eedd19936eb25758a10d041b8 | /Dijkistras.py | becc0b37dd97b45da9d896b6559537d1a61b9315 | [] | no_license | JavierPalomares90/Algorithms | 953d51ffc3a1d1df3f9a933ed40e8abe64947b6a | 1fb2082dda6de95b1e21a3b8cca27a0f8952fbc8 | refs/heads/master | 2020-07-01T00:46:38.334973 | 2014-06-10T03:40:41 | 2014-06-10T03:40:41 | 20,671,543 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,608 | py | # -*- coding: utf-8 -*-
# <nbformat>2</nbformat>
# <codecell>
class edge:
def __init__(self):
self.v1 = 0
self.v2 = 0
self.length = 0
class vertex:
def __init__(self):
# will keep track of edges going out of vertices
self.edges = []
self.explored = False
... | [
"Javier@Javiers-MacBook-Pro.local"
] | Javier@Javiers-MacBook-Pro.local |
f5c46fec69927e9f21e7cc8f04c7a75aa8aeab41 | dfa1bb1bd7ef84f9e225d51761c4fc2470b51112 | /Tries/DesignAdd&SearchWordswithdot.py | 0243d05ded237c8fe86bde0e7f248feacfa2b58b | [] | no_license | gowriaddepalli/Leetcode_solutions | f31d9716a3690dcdbc0e7e4eaf9773b8bd8f7453 | 1f33cbeb52f9ec6332d05bbd3da69935ba553cf8 | refs/heads/master | 2023-04-05T11:34:42.736638 | 2021-04-16T07:33:02 | 2021-04-16T07:33:02 | 158,172,755 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,755 | py | class WordDictionary(object):
def __init__(self):
"""
Initialize your data structure here.
"""
self.trie = {}
def addWord(self, word):
"""
Adds a word into the data structure.
:type word: str
:rtype: None
"""
t = self.tri... | [
"noreply@github.com"
] | gowriaddepalli.noreply@github.com |
158391a0ca82c0639608e6f98dede3195bd12b40 | 9d862dd68f8b4ea4e7de9397fef8592824c77449 | /app/top/api/rest/FenxiaoDiscountsGetRequest.py | 2989652b695920224f032670cc2c84c122f36215 | [] | no_license | hi-noikiy/tmall-sku-outer_id | ffaca630dfb288ca33d962b8a050932d1047b9c8 | 1bcf29386a513bcb210bf5d91016e0dcb1ebc1ad | refs/heads/master | 2021-05-09T18:20:27.150316 | 2017-03-08T06:43:57 | 2017-03-08T06:43:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 333 | py | '''
Created by auto_sdk on 2016.03.05
'''
from app.top.api.base import RestApi
class FenxiaoDiscountsGetRequest(RestApi):
def __init__(self,domain='gw.api.taobao.com',port=80):
RestApi.__init__(self,domain, port)
self.discount_id = None
self.ext_fields = None
def getapiname(self):
return 'taobao.fenxiao.di... | [
"1037096435@qq.com"
] | 1037096435@qq.com |
e925cae9746d4510a5277d88ffa5e8a07c3c90e6 | 4eaab9327d25f851f9e9b2cf4e9687d5e16833f7 | /problems/critical_connections_in_a_network/solution.py | 7ddf628a29bc4208c9823e84011f61a218c0010c | [] | no_license | kadhirash/leetcode | 42e372d5e77d7b3281e287189dcc1cd7ba820bc0 | 72aea7d43471e529ee757ff912b0267ca0ce015d | refs/heads/master | 2023-01-21T19:05:15.123012 | 2020-11-28T13:53:11 | 2020-11-28T13:53:11 | 250,115,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 949 | py | class Solution:
def criticalConnections(self, n: int, connections: List[List[int]]) -> List[List[int]]:
def dfs(previous = -1, current = 0, depth = 1):
nonlocal depths, output
temp_depth = depth
depths[current] = depth
for neighbor in graph[current]:
... | [
"kadhirash@gmail.com"
] | kadhirash@gmail.com |
1abbca8e926a23e8caa6e5e4d9ac72d760b5ffd7 | 5825e9bc074f7bffd72a71707fd55e3015795c19 | /app/rtanalysis/RTDataDAO.py | e3b1b656df06e8973ef4959c66d8a3f87238885e | [] | no_license | stash4/VisualizeRTNetwork | 709cefb95b964e7209c86be600501511696656fd | 680f17efbe7bd1c121963a14c73e0f7f2a898b93 | refs/heads/master | 2022-12-10T14:49:40.993918 | 2018-08-04T14:25:38 | 2018-08-04T14:25:38 | 118,082,599 | 1 | 0 | null | 2022-12-08T00:50:24 | 2018-01-19T05:44:15 | Python | UTF-8 | Python | false | false | 1,503 | py | from ..models import db, Tweet, User, Link
def register_tweet(tweet_id, text):
tweet = db.session.query(Tweet).filter_by(id=tweet_id).first()
if tweet is None:
tweet = Tweet(tweet_id, text)
db.session.add(tweet)
db.session.commit()
return tweet
def init_user(user_id, tweet_id, na... | [
"high.mackey@gmail.com"
] | high.mackey@gmail.com |
1c70223238adb6b00f186ce6e565db01b8f927a6 | 5f8b1beafc1a293f21d45a30247348cfc6f99299 | /run-length-encoding/run_length_encoding.py | 7f1c6c3e044494048fc98721f36fa0d7fe6a5c6e | [] | no_license | vineel96/PythonTrack-Exercism | aca3d16b0ca352060a7ab16c2627f44695f6b855 | c756cf38e39aa6347199cf3143f8b401345ad832 | refs/heads/master | 2020-06-20T17:43:48.972591 | 2019-07-30T06:54:51 | 2019-07-30T06:54:51 | 197,196,771 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 467 | py | from collections import defaultdict
from itertools import groupby
import re
def decode(string):
num=[int(n) if n else 1 for n in re.split('\D',string)]
char="".join(n for n in re.split('\d',string) if n)
return "".join([num*char for num, char in zip(num,char)])
def encode(string):
out=""
for char,g... | [
"vineel_abhi96@yahoo.com"
] | vineel_abhi96@yahoo.com |
25c89d257159450711d3d594fcb6228fc6b74f46 | 480ec8b93da517e13b302d41d0bca63837d9427e | /Programming Distributed Applications/app.py | bd524c75fd215fa14ffadcda04f2459e9047005f | [] | no_license | TUM-FAF/FAF-121-Paul-Sanduleac | 0adba7aed2c298cdbfc8a545cb16bf8b92133bf8 | c68775ca7a4e7b699104c720b7bbc588a0b0ddbf | refs/heads/master | 2021-01-10T15:10:30.870633 | 2016-02-25T11:45:09 | 2016-02-25T11:45:09 | 52,519,298 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,987 | py | from cassandra.cluster import Cluster
from flask import Flask, request, jsonify, make_response
from flask_restful import Resource, Api
import socket, requests, os, atexit
import settings
app = Flask(__name__)
api = Api(app)
cluster = Cluster()
dbsession = cluster.connect('dev')
@app.errorhandler(404)
def not_found(er... | [
"paulsanduleac@gmail.com"
] | paulsanduleac@gmail.com |
69961552cf5a9df9d897614b9be2d73de2c9afc7 | 3c81cfc8681ab11e54bf78f6286d48fce09d6d65 | /routes/comment.py | b5c129c1a4c25507dfc1bbe3dcfae83fcebdb5e0 | [] | no_license | xb21/bbs | 4d014231a7bb50d123a6c387555910a8d1dfc8ac | 07ca9882e0448c5ee541c5f03f2a7f37470d6da0 | refs/heads/master | 2021-08-07T22:06:59.469685 | 2017-11-09T03:07:17 | 2017-11-09T03:07:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,273 | py | from models.comment import Comment
from routes import *
main = Blueprint('comment', __name__)
Model = Comment
@main.route('/add', methods=['POST'])
@login_required
def add():
form = request.form
m = Model(form)
m.topic_id = int(form.get('topic_id'))
# 惨,username 和 user_id 都要手动添加
u = current_user... | [
"autu1995@outlook.com"
] | autu1995@outlook.com |
3f049a829e4f528690569a3ddb76c01f8186474e | aae95f673759e71d8859b05973eb563d15200114 | /M3HW1_AgeClassifier_NOVAK.py | b22943545cce9fc94576bf8756876bc736c2a747 | [] | no_license | tjnovak58/cti110 | 74ae3cb355c1bbde8a51ba9bdc943c172f109885 | 1edec8b428f5aa5858662219ddd2a4dd93a91a9c | refs/heads/master | 2021-05-15T00:47:08.440056 | 2017-11-13T20:18:03 | 2017-11-13T20:18:03 | 103,067,688 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 476 | py | # CTI-110
# M3HW1 - Age Classifier
# Timothy Novak
# 09/24/17
#
# This program takes an age input and outputs a classification.
#
age = float(input('Enter age: '))
def main():
if age >= 20:
print('The person is an Adult')
if age >= 13 and age < 20:
print('The person is a Te... | [
"noreply@github.com"
] | tjnovak58.noreply@github.com |
ce6c323a26426f3a80db831e190eaa0a90371b93 | e865dfd9f629a63a731694aa4f066e1ecc625898 | /bot_instagram.py | 8bc8fea411b17cbd1736fa028d14b24c26834419 | [] | no_license | ayslanleal/mining_instagram | a08c0f79c090ce2bfb6050b63e763fb8ca2f4c32 | f753708be0b7368d6d7d95064bb12e5ba84fc04e | refs/heads/master | 2020-07-13T08:03:26.017882 | 2019-10-08T23:46:45 | 2019-10-08T23:46:45 | 205,040,553 | 2 | 2 | null | 2019-10-07T00:30:04 | 2019-08-28T23:25:52 | Python | UTF-8 | Python | false | false | 1,440 | py | from bs4 import BeautifulSoup as bs
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from time import sleep
import requests
def remove_repetidos(lista):
l = []
for i in lista:
if i not in l:
l.append(i)
return l
tag = 'nome da tag'
ff = webdr... | [
"ayslanleal15@gmail.com"
] | ayslanleal15@gmail.com |
f64962701f0c5d867ac114de49fc3c7153391009 | cf9fca3e968353b74eaffe2b52919a56e7bfe385 | /y.py | 1be9caa6e1e4f27e1509a9b86c1ecf696f5460f1 | [] | no_license | cmailhot4/morse | 7f80b4feb568a7c9eeb856fed14e0c248b918231 | 5398b15f937bb32e43aedfbaeae25e82c43dd20e | refs/heads/master | 2020-05-02T15:30:00.054584 | 2019-03-28T21:12:09 | 2019-03-28T21:12:09 | 178,042,735 | 0 | 0 | null | 2019-03-28T20:26:47 | 2019-03-27T17:23:58 | Python | UTF-8 | Python | false | false | 240 | py | def run():
from gpiozero import LED
from time import sleep
led = LED(17)
led.on()
sleep(3)
led.off()
sleep(1)
led.on()
sleep(1)
led.off()
sleep(1)
led.on()
sleep(3)
led.off()
sleep(1)
led.on()
sleep(3)
led.off()
sleep(3)
| [
"mailhot.christophe@carrefour.cegepvicto.ca"
] | mailhot.christophe@carrefour.cegepvicto.ca |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.