blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 5 283 | content_id stringlengths 40 40 | detected_licenses listlengths 0 41 | license_type stringclasses 2
values | repo_name stringlengths 7 96 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 58
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 12.7k 662M ⌀ | star_events_count int64 0 35.5k | fork_events_count int64 0 20.6k | gha_license_id stringclasses 11
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 43
values | src_encoding stringclasses 9
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 7 5.88M | extension stringclasses 30
values | content stringlengths 7 5.88M | authors listlengths 1 1 | author stringlengths 0 73 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
13b70f9f71a2f2f8d0002dafe8463212833e9087 | e600c278e9ec62f5475602d37e3607ce4a8bf112 | /VIB/CheckBraAnnot/Trapit2BingoConverter.py | 5359882bcf119dfbae1735b463c0bd35f6780896 | [] | no_license | blad00/PythonLearning | 4f949f6768908cd81619fe7f4b7262118185c4fc | 1dab7fb710da42fb123af2e9fc36a05c6e2c7d4f | refs/heads/master | 2023-01-29T17:25:41.565452 | 2023-01-03T13:22:32 | 2023-01-03T13:22:32 | 184,554,987 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 896 | py |
#file = open("/home/dacru/Midas/research/deepseq/ngsproject_brassica/Annotation2020TRAPID/Results/transcripts_go_exp1086.txt", "r")
#with open("/home/dacru/Midas/research/deepseq/ngsproject_brassica/Annotation2020TRAPID/Results/transcripts_go_exp1105Exome.txt", "r") as file,\
# open("/home/dacru/Midas/research/deeps... | [
"bladoxp@gmail.com"
] | bladoxp@gmail.com |
cb89f97e3354bae2099d93c24041c615d0d35c80 | 358a80fad5c9a5eb595b6f1ef873ed5d9d350674 | /starfish/image/__init__.py | ed674c4c205440cb16d99ce07f8f85acd3899de0 | [
"MIT"
] | permissive | ttung/starfish | ed1bad0a9c93f2136839f0ebd7f754f899264839 | 1bd8abf55a335620e4b20abb041f478334714081 | refs/heads/master | 2020-05-07T16:25:15.340459 | 2019-04-10T20:52:30 | 2019-04-10T20:52:30 | 175,312,617 | 0 | 0 | MIT | 2019-03-15T19:24:51 | 2019-03-12T23:39:55 | Jupyter Notebook | UTF-8 | Python | false | false | 186 | py | from ._filter import Filter
from ._registration._apply_transform import ApplyTransform
from ._registration._learn_transform import LearnTransform
from ._segmentation import Segmentation
| [
"noreply@github.com"
] | noreply@github.com |
49793642528b5968b3dd7895ec38391e46c8a57b | 6a99547f767b942e2b51b79da0f23a990f3105d3 | /catkin_ws/build/catkin_generated/generate_cached_setup.py | f6dd267e02054db58d28948a3505e28d1e937a94 | [] | no_license | andokeisuke/NHK2020 | 588a1c0070bacaa98f10229252b40eb34c647345 | d6cb3f0c192141e9d87f4faaf7d1d4537ede4a3e | refs/heads/master | 2020-07-11T20:19:29.539799 | 2019-11-22T18:48:04 | 2019-11-22T18:48:04 | 204,635,311 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,297 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import argparse
import os
import stat
import sys
# find the import for catkin's python package - either from source space or from an installed underlay
if os.path.exists(os.path.join('/opt/ros/kinetic/share/catkin/cmake', 'catkinConfig.cmake.in')):
sys.... | [
"kakipi.moai@gmail.com"
] | kakipi.moai@gmail.com |
8ed788df0e150819da4a7ae761efb59be4dc25ee | 4ddd19afb6de8fc6db41049d65a690763f81e301 | /interger.py | 37150b4a70debfb3714cf27af4d0a1d52527eb44 | [] | no_license | xjl319/demo | c3a41bd74faaac973a79069faaed158547605c49 | cc7bb8774e56973df52fee8eafb965c758c34208 | refs/heads/master | 2021-05-19T05:20:26.884065 | 2020-04-01T09:18:53 | 2020-04-01T09:18:53 | 251,544,800 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 154 | py | #!/usr/bin/env python3.4
days = int(input("Enter days:"))
#months = days // 30
#days = days % 30
print("Months = {} Days = {}".format(*divmod(days, 30)))
| [
"119387159@qq.com"
] | 119387159@qq.com |
d0a19ab81b79d8d1ce7e5f352ffa3d11c792ded9 | 6a2d5e74822cb08c61d5953f5e77d479c756a6c2 | /source/gui/login.py | cf4b20869a40534639b51e27cc2046bc5124a017 | [] | no_license | wang-rq/BlockChainFinal | d24bb5b967ee55c8712a01b5b01dba196b962fb1 | e035c062978cc1cf337b7d9a0746274f53e2c0de | refs/heads/master | 2023-02-21T22:01:19.407739 | 2021-01-24T10:53:40 | 2021-01-24T10:53:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,661 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'login.ui'
#
# Created by: PyQt5 UI code generator 5.10.1
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Login(object):
def setupUi(self, Login):
Login.setObjectName(... | [
"wangrq29@mail2.sysu.edu.cn"
] | wangrq29@mail2.sysu.edu.cn |
8adbcadcb90863f8f8a2a7e3d65a231bb7f75ba6 | 2ebbcaf1709ce4ae86cffae68665ec64f30db85e | /main.py | bab99effe881734c343ea2f1fbec2e1d2cef5f83 | [] | no_license | br34th3r/PythonMontyHall | fd42a317ee308f5331c9ac9fd45367574d484346 | aba88938e6461bbec3b46940e0f968e1325a8c7a | refs/heads/master | 2020-03-29T17:02:20.934713 | 2018-09-24T17:19:50 | 2018-09-24T17:19:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,254 | py | import random
class MontyHallBot:
doors = [False, False, False]
wins = 0
losses = 0
repeats = 10000
def __init__(self):
self.runTest()
def runTest(self):
for i in range(self.repeats):
self.assignDoors()
self.userSelection()
self.openAnotherD... | [
"joshuaboddy1@gmail.com"
] | joshuaboddy1@gmail.com |
4fa5d282ceb195b2283b81d53b0e422b13a2f9cc | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02754/s361197897.py | 2a689fe5085ad480df42a85c9af52f7a8b396057 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 674 | py | #!/usr/bin/env python3
# Generated by https://github.com/kyuridenamida/atcoder-tools
from typing import *
import collections
import functools
import itertools
import math
import sys
INF = float('inf')
def solve(N: int, A: int, B: int):
return N//(A+B) * A + min(N % (A+B), A)
def main():
sys.setrecursionli... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
0f076b7a411bd5a645dbaee38e82b1a811b60a0f | 7abbb318d16f6c909ee894709f4fbd2cb24cd44e | /Python/Trie/208_Implement_Trie_Prefix_Tree.py | 0407e21f673886a6c776987624de9fe70a578cb7 | [] | no_license | GuilinXie/LeetcodePython | c7c9267d8e64017d40cc4f9ae0fba8e1217875e9 | 4416e6e2b6eb84fb87b081a3b857cfe5a57cf46c | refs/heads/master | 2021-08-07T09:36:13.805208 | 2021-07-29T17:38:58 | 2021-07-29T17:38:58 | 215,821,338 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,141 | py | class Trie:
def __init__(self):
"""
Initialize your data structure here.
"""
self.root = dict()
def insert(self, word: str) -> None:
"""
Inserts a word into the trie.
"""
p = self.root
for c in word:
if c not in p:
... | [
"noreply@github.com"
] | noreply@github.com |
0b63d785f0735626b434865eefa30bf505b473c8 | 9b2f4810b093639209b65bbcb5fa07125e17266f | /old_tests/radical.components.py | ad797f0e831b856ff2c486a5970d3dffa9d70687 | [
"MIT"
] | permissive | karahbit/radical.pilot | 887d25d370d08e3455f19cd240677b62278ef67f | c611e1df781749deef899dcf5815728e1d8a962e | refs/heads/devel | 2020-12-21T09:54:10.622036 | 2020-08-20T18:18:12 | 2020-08-20T18:18:12 | 254,967,331 | 0 | 0 | NOASSERTION | 2020-05-01T00:47:51 | 2020-04-11T22:37:20 | null | UTF-8 | Python | false | false | 2,239 | py |
import os
import sys
import time
import radical.utils as ru
import radical.pilot as rp
import radical.pilot.utils as rpu
import radical.pilot.constants as rpc
# ------------------------------------------------------------------------------
#
class CompB(rpu.Component):
def __init__(self... | [
"andre@merzky.net"
] | andre@merzky.net |
3927283b112cc9cc89e9df31803498a885d27269 | 3cb2408400525c63cf677be0b79910218142a0d1 | /Advanced level/Advanced OOP/01.Defining Classes - Lab +Ex/05. Cup.py | 0d2ebdb5da8937bf6b8cf2ac80e9685d6fc8cc03 | [] | no_license | StefanDimitrovDimitrov/Python_Advanced | 5eed83ba41a4726e8568054a637837db9f859323 | 87c6c13414cb92703bee33650a341d1a369b409b | refs/heads/main | 2023-08-06T06:27:41.594009 | 2021-10-05T18:08:40 | 2021-10-05T18:08:40 | 312,846,355 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | class Cup():
def __init__(self, size, quantity):
self.size = size
self.quantity = quantity
def fill(self, milliliters):
current_size = self.size - self.quantity
if milliliters <= current_size:
self.quantity += milliliters
def status(self, ):
return self... | [
"54206891+StefanDimitrovDimitrov@users.noreply.github.com"
] | 54206891+StefanDimitrovDimitrov@users.noreply.github.com |
593277ecce8975c15e15ebb55a3b2136ec1dd1fe | edfe02ab1e45708ad09a86ef85d1b53b065de1fe | /sixthStudy/Chapter 14/WindowSize.py | c9eaf7dd55a06ca2eff73142471a964e9973ae07 | [] | no_license | kor-Chipmunk/PythonEducation | d88e490a2d042919dafaff0463dad63611947800 | d98e230646d263e8d9ca3480467f785ff2beda99 | refs/heads/master | 2021-01-11T17:07:21.857179 | 2017-01-30T04:24:10 | 2017-01-30T04:24:10 | 79,725,221 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 530 | py | import wx
class MyFrame(wx.Frame):
def __init__(self):
wx.Frame.__init__(self, parent=None, title="Window Size")
self.Bind(wx.EVT_LEFT_DOWN, self.OnMouseLButtonDown)
self.Bind(wx.EVT_RIGHT_DOWN, self.OnMouseRButtonDown)
def OnMouseLButtonDown(self, event):
frame.SetSize(wx... | [
"rhj4862@gmail.com"
] | rhj4862@gmail.com |
55dcf2dc3c7d80abf361e7272dc72e4b521a1db6 | cf69178db43fb62dfaa0781055048339b14f5bc1 | /mix.py | 75421d4283a330fe1aaaa53a40493ca8e9c4a7bf | [] | no_license | dachmiri/secure_communication | 1975983bb10534b692cf2d25a1bc9d350cec52b8 | 85112b5b5406d119c1eeb51d99ec30c22afda2e0 | refs/heads/master | 2023-06-04T23:43:23.023006 | 2021-06-28T11:03:36 | 2021-06-28T11:03:36 | 379,969,302 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,426 | py | # Maria Dach, 208539080, Shira Negbi, 313236911
import socket
import sys
import random
import threading
from cryptography.hazmat.primitives import hashes
from cryptography.hazmat.primitives.asymmetric import padding
from cryptography.hazmat.primitives.serialization import load_pem_private_key
# a server that listens... | [
"shiran96@gmail.com"
] | shiran96@gmail.com |
8f940996dd860a113acc4f1d3bfacce29c18292e | 99b32c74b5cc390374063526061a734fff63d985 | /code/kr2krx.py | 012b56fbbbf5b7e262ab21bbf6797335a417960e | [] | no_license | krptest/newkrp | 75d8d8ea92d7d9106db142792a5d6bcfa2e60925 | 00e669205b7f2e5b38de54f503d321ff32efcc6b | refs/heads/master | 2023-06-08T07:20:11.431147 | 2023-06-02T00:35:00 | 2023-06-02T00:35:00 | 220,918,275 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,017 | py | # -*- coding: utf-8 -*-
# KR to TEI format.
#
import re, os, sys, requests, datetime
from github import Github
from dotenv import load_dotenv
from collections import defaultdict
load_dotenv()
puamagic = 1069056
krx = "KR"
if os.path.exists('../../.env'):
print('Importing environment from .env...')
for line in ... | [
"cwittern@yahoo.com"
] | cwittern@yahoo.com |
600cbfe11fbd060baa5d89e3fd5b8ac39a2676fd | c8812fd40cd541a0a040dbdf56a307f9de69e971 | /3/3.py | 5266c7f0217412aafc28a32369353135fbc2f899 | [] | no_license | tomelliot/pythonchallenge | c0dac7c99382f41377d5aec529ce76e53c16cd91 | 2d322af70d97cfb2ec099dc4b329b429dbb2a60f | refs/heads/master | 2021-01-01T15:49:40.754310 | 2013-10-08T04:48:17 | 2013-10-08T04:48:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 338 | py | import re
sitetext = open("site.txt").read()
#p = re.compile("[A-Z]{3}[a-z][A-Z]{3}")
p = re.compile("[^A-Z][A-Z]{3}[a-z][A-Z]{3}[^A-Z]")
#m = p.match("SOME TEXT")
#print m.groups()
#m = p.finditer("SOME TEXTOTHErTEXT mOREaTEXt")
m = p.finditer(sitetext)
l = list()
for each in m:
l.append(each.group())
for text in l:... | [
"elliot.tom@gmail.com"
] | elliot.tom@gmail.com |
b47d614e7fea25510861d6152f5cf82933020ab0 | 76836c6b69217f111bd4d0a2f60e4c0f12315965 | /statsgaim/smspline_csaps.py | 10f2fda1cd0735ebeff1382345a217f98679c1a1 | [
"BSD-3-Clause"
] | permissive | pahal2007/GAIM | 4fcaf1aea5d60f8b0b69a17ed9160fbe3792bc2a | 320184ff3e0ddd9bc031dfddfd3d30c342421d8f | refs/heads/main | 2023-01-24T02:40:13.025112 | 2020-12-07T05:43:41 | 2020-12-07T05:43:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,023 | py | import numpy as np
from matplotlib import gridspec
from matplotlib import pyplot as plt
from abc import ABCMeta, abstractmethod
from sklearn.utils.extmath import softmax
from sklearn.preprocessing import LabelBinarizer
from sklearn.utils.validation import check_is_fitted
from sklearn.utils import check_array, check_X_... | [
"bobzht341@gmail.com"
] | bobzht341@gmail.com |
325e05fa01cc833e8682b656048510c1e61bb314 | 12bdeeb22318aa74763b7252c818f690225686ca | /SocialMedia/posts/urls.py | d1327fbf8623e4c5cdfcc687664ecc67d9d603b2 | [] | no_license | khal33d-hub/SocialMedia-webapp | a2e9f2cdc827db348b768f05571a2d1af2a27c31 | 2c2fff68000d54f158ebe076498830495367305d | refs/heads/master | 2023-04-03T21:53:47.671238 | 2021-04-11T12:20:31 | 2021-04-11T12:20:31 | 289,774,377 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 593 | py | from django.urls import path
from . import views
app_name='posts'
urlpatterns = [
path('', views.PostList.as_view(), name="all"),
path("new/", views.CreatePost.as_view(), name="create"),
path("by/<username>/",views.UserPosts.as_view(),name="for_user"),
path("by/<username>/<int:pk>/",views.PostDetail.a... | [
"oyelekekhaleed@gmail.com"
] | oyelekekhaleed@gmail.com |
ac285c90cec5882e04d3fc62492be169bafee8b5 | 49f2de1ab03ec77cb003c77a06ce4fa26501e4b6 | /twitterclone/microblog/migrations/0003_auto_20151021_1944.py | ec15f828169978e4de39c8721778053b0db6e41a | [] | no_license | jesslarsen21/cs4990 | 873cbe7350948bf67d25e8de5aea8354c33031b3 | 3fa2458f41ce0b5c7fb77ca6f1bc45f0a5b971d2 | refs/heads/master | 2021-07-06T15:37:54.826472 | 2016-10-03T19:22:27 | 2016-10-03T19:22:27 | 41,459,490 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 663 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('microblog', '0002_auto_20151021_1934'),
... | [
"jess_larsen@hotmail.com"
] | jess_larsen@hotmail.com |
0d10bd7293f8aaadf494897c76d05cc4b005c177 | e3ac4abe1e8d7518e6edd98ac6b15a96536f6a75 | /DetectionImage.py | 1bebe0523b62f5273f99dcf27b98a3a8981985fd | [] | no_license | sirius-mhlee/object-detection-using-tensorflow-faster-rcnn | cfad23a4f4b7e06a4c707f6002109b7b5081d41b | 8193753a3c0ebb60e179c53aa7e3f66cb07a9c5e | refs/heads/master | 2020-04-14T23:59:08.568942 | 2019-01-30T12:57:39 | 2019-01-30T12:57:39 | 164,224,118 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,997 | py | import sys
import cv2
import os
import random as rand
import numpy as np
import tensorflow as tf
import Configuration as cfg
import AlexNetConv as anc
import RegionProposalNetwork as rpn
import DetectionNetwork as dn
import DataOperator as do
import BBoxOperator as bo
def generate_image(label_file... | [
"noreply@github.com"
] | noreply@github.com |
cafd8c7199ecbe2c8188fffb4db94467fc666216 | 7ba22c9826a1574777a08fb634ff15c56de6cb98 | /domain_adaptation/pixel_domain_adaptation/hparams.py | 924ce0d5878ec2b18e80ae7e47e3aad04b3bd21f | [] | no_license | dhanya1/full_cyclist | 02b85b8331f8ca9364169484ab97b32920cbbd14 | dd12c8d8a3deaaea15041e54f2e459a5041f11c2 | refs/heads/master | 2022-10-17T13:36:51.886476 | 2018-07-30T15:46:02 | 2018-07-30T15:46:02 | 142,896,293 | 0 | 1 | null | 2022-10-05T10:11:01 | 2018-07-30T15:46:15 | Python | UTF-8 | Python | false | false | 8,236 | py | # Copyright 2017 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, ... | [
"dhanyasj01@gmail.com"
] | dhanyasj01@gmail.com |
d0e7985c21111234c18de6c012fedbe4ae9050a6 | ed96da6f20a166a3e98b3b9618d030271642572d | /lambda/qldb/export_transport_product.py | f9da8fd1057958c773489d820cc48a740818028c | [
"MIT"
] | permissive | UBC-CIC/VaccineDistribution | fb3c804c612dabde7553f564eaeee944c0cdfc6f | 3bd8d507eaabcf3a3213ec7c1d25127dd221c537 | refs/heads/master | 2023-05-05T04:25:19.615991 | 2021-06-02T16:53:00 | 2021-06-02T16:53:00 | 335,438,741 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,658 | py | from logging import basicConfig, getLogger, INFO
from connect_to_ledger import create_qldb_driver
from amazon.ion.simpleion import dumps, loads
logger = getLogger(__name__)
basicConfig(level=INFO)
import datetime
from constants import Constants
from register_person import get_index_number,get_scentityid_from_personid,... | [
"artrodri@a483e77799ff.ant.amazon.com"
] | artrodri@a483e77799ff.ant.amazon.com |
c3f160bc8cbd7f286f7e1f23c49c4353d3e23d8e | 83179c14ae81a2ed0733812195747340c9ef0555 | /Knapsack 1.py | 2aa91145dd47739001ac46a201868a4092bfa645 | [] | no_license | susami-jpg/atcoder_solved_probrem | 20f90ba2e3238c6857e370ed04a8407271ccc36f | 741a4acd79f637d6794c4dbcc2cad1c601b749fc | refs/heads/master | 2023-07-21T12:38:27.460309 | 2021-08-29T10:26:31 | 2021-08-29T10:26:31 | 375,561,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 620 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Apr 28 00:06:57 2021
@author: kazuk
"""
n, w = map(int, input().split())
goods = []
for _ in range(n):
wi, vi = map(int, input().split())
goods.append((wi, vi))
dp = [[0] * (w + 1) for _ in range(n)]
wi, vi = goods[0]
for j in range(w + 1):
if j ... | [
"kazuki_susami@icloud.com"
] | kazuki_susami@icloud.com |
5e849847f304d1016e03bc0a951697713ec9fdd0 | a8f3309a9025617a7d01d221cc9be7975c36eaa4 | /backend/manage.py | 57be28126ba9988b944cabeacc945a674a53025d | [] | no_license | crowdbotics-apps/snowy-wood-26833 | 7b4fa99b8b1a635016bd6441cd09aaf4f52e8cf1 | 40a2042d34ec52eca857a31317ba68c862c96019 | refs/heads/master | 2023-05-01T20:10:00.175134 | 2021-05-18T00:31:03 | 2021-05-18T00:31:03 | 368,356,650 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 636 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'snowy_wood_26833.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
rai... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
a538b88f80e1ac1e15faee0b97525d7f40355451 | 0bc5cc0413b6591d651a5f0c401c27b5c7fea05c | /day6.py | d86b0089189e35be1cb4628eb82e42722c2686a4 | [] | no_license | MayankHirani/AdventOfCode2018 | 0b8ed15a0b8f0ffe907b20d012e95c23a327245f | e8143ee9d84b95e3652779301763bdec3dd98952 | refs/heads/master | 2020-09-24T06:13:30.380360 | 2019-12-04T04:37:54 | 2019-12-04T04:37:54 | 225,684,879 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 654 | py | import string
import numpy as np
import matplotlib.pyplot as plt
np.set_printoptions(threshold=np.nan)
with open('coordinates.txt') as f:
coordinates = [line.strip() for line in f.readlines()]
values = {}
# Letter creation
letters = []
for letter in string.ascii_uppercase:
letters.append(letter)
let... | [
"noreply@github.com"
] | noreply@github.com |
3d7b4350619788a1c0d6a5e6e273df671ddc643c | 0bb5a201d0194d62a71b4c7776aa9604a9fd1f7b | /filtreleme/thresholding2.py | b72076a722e71400b6a66c4fc016e4d1ebff8c06 | [] | no_license | bilge97/digital_image_processing | 144f1b03bc1a2c2cd4f50af6dd9548cf03ed1c97 | e29ebf3f0c55741cbc5b5d5ab4a901d594fa72c7 | refs/heads/master | 2021-05-17T15:49:54.910901 | 2020-04-04T18:57:11 | 2020-04-04T18:58:04 | 250,853,449 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,021 | py | import cv2
import numpy as np
from matplotlib import pyplot as plt
img = cv2.imread('sayfa.JPG')
img_medianblur = cv2.medianBlur(img, 5)
ret, th1 = cv2.threshold(img , 30,255 , cv2.THRESH_BINARY) #125 altı beyaz 0lar
griton = cv2.cvtColor(img , cv2.COLOR_BGR2GRAY)
ret, thgray = cv2.threshold(griton , 50,255 , cv2.T... | [
"bilgekurtoglu06@gmail.com"
] | bilgekurtoglu06@gmail.com |
71e6f22f379a61247f6bb9a792d9ca6b67c9a157 | 96f26955cdc30088656e1c99465543285128a8dc | /sub/app/kettle.py | 74f03e85d502cdf88b5f37ab6c4b2378be1fbe06 | [] | no_license | gridsim/behavsim | 5668c25c6ae814647118a58db72293674b79e5d2 | e5c43f5e1507e42d44fa807b8c5faf1e583d7925 | refs/heads/master | 2021-01-18T14:40:55.297348 | 2015-07-17T10:50:02 | 2015-07-17T10:50:02 | 38,006,324 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,186 | py | import random as rd
import numpy as np
import sub.gui
import sub.rd_var
import time
# Defines the kettle function.
def kettle(param, res_dir, text_view):
# Defines the number of minutes in a day
mins = 1440
# Defines the name of the appliance.
name = "Kettle"
# Starts a timer.
start... | [
"gillian.basso@hevs.ch"
] | gillian.basso@hevs.ch |
e48d8b786b9e71fcd1c3ff1f2d67b49f0d75cad0 | 97062249c6eb04069c6fb01e71d06bc334c828e1 | /apps/useradmin/src/useradmin/migrations/0008_convert_documents.py | 36f55715da32d406e6f06b49cf3b5cb04f2ce3df | [
"Apache-2.0"
] | permissive | Albertsss/hue | 1c8b31c64cc420a029f5b5b80712fb3d0c6cbd6e | 454d320dd09b6f7946f3cc05bc97c3e2ca6cd485 | refs/heads/master | 2021-07-08T17:21:13.237871 | 2018-05-30T06:03:21 | 2018-05-30T06:03:21 | 135,386,450 | 0 | 1 | Apache-2.0 | 2020-07-25T13:36:58 | 2018-05-30T04:06:18 | Python | UTF-8 | Python | false | false | 6,343 | py | # -*- coding: utf-8 -*-
from south.v2 import DataMigration
import desktop.management.commands.convert_documents
class Migration(DataMigration):
def forwards(self, orm):
# Earlier we did the document conversions from Doc1 to Doc2 upon loading
# the home page of a user. That approach had certain f... | [
"540227148@qq.com"
] | 540227148@qq.com |
314e08627b8fec686f4e1d3cc61211d1d1180274 | 57a8f3e4cf49f0329c4456c67cf5222d3a137ef7 | /bitcoin_tools/analysis/status/__init__.py | e4688f7d07c4f301928ad47953ff4b01e6c98858 | [
"BSD-3-Clause"
] | permissive | beiex/bitcoin_tools | 25d9030e5968466438737fc78cfee404f832541f | 624663f2a9619ecf53715e8bf39404b5c035a9f2 | refs/heads/master | 2020-09-24T03:06:47.727228 | 2019-03-18T12:07:02 | 2019-03-18T12:07:02 | 225,647,121 | 0 | 1 | BSD-3-Clause | 2019-12-03T15:00:30 | 2019-12-03T15:00:29 | null | UTF-8 | Python | false | false | 690 | py | # Fee per byte range
MIN_FEE_PER_BYTE = 0
MAX_FEE_PER_BYTE = 350
FEE_STEP = 1
NSPECIALSCRIPTS = 6
try:
import bitcoin_tools.conf as CFG
except ImportError:
raise Exception("You don't have a configuration file. Make a copy of sample_conf.py")
try:
entries = [CFG.chainstate_path, CFG.data_path, CFG.figs_pa... | [
"sergi.delgado.s@gmail.com"
] | sergi.delgado.s@gmail.com |
7998e66d3d6cac28284e2dbbd1ac75bda73c5800 | 438f356ee4438fdbd6135877077e72dca82a637b | /Step1-PythonBasic/Practices/yuxq/1-5/ex4.py | b45deea46bb7966392b4ccb5eebb68ab81efadc9 | [
"Apache-2.0"
] | permissive | Jumpers/MysoftAutoTest | f9dd69ffc0f5117b29d9242456f98cdfc7992db8 | 50efc385a96532fc0777061d6c5e7201a4991f04 | refs/heads/master | 2021-01-22T08:59:33.916688 | 2015-02-09T06:49:12 | 2015-02-09T06:49:12 | 23,385,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 522 | py | cars=100
space_in_a_car=4.0
drivers=30
passengers=90
cars_not_driven=cars-drivers
cars_driven=drivers
carpool_capacity=cars_driven*space_in_a_car
average_passengers_per_car=passengers/cars_driven
print "There are",cars,"cars available."
print "There are only",drivers,"drivers available."
print "There will be",cars_not_... | [
"elment@msn.cn"
] | elment@msn.cn |
a123175849f6eb1ad28fc5557333dcee72f6926a | dbe0511ef1426207c2c0e867d9ddae1030f06d85 | /Plant_Disease_Detection_Benchmark_models/Inception_V3/baseline_scratch.py | 2a5a550643378418dd6793cdd104ce2752dc2fd2 | [
"MIT"
] | permissive | singnet/plant-disease-experiments | 91bc8fdec9b121fa8a3008b6cc062224dbcf9d06 | c7888fc1f7f94ba4263ee0c2b6fdb9628ee08ad6 | refs/heads/master | 2020-03-13T06:39:50.982041 | 2019-12-28T14:16:21 | 2019-12-28T14:16:21 | 131,009,311 | 27 | 24 | MIT | 2019-12-08T02:03:16 | 2018-04-25T13:18:52 | Python | UTF-8 | Python | false | false | 771 | py | from tensorflow.python.keras.applications.inception_v3 import InceptionV3
from tensorflow.python.keras.layers import Input
def build_baseline_model(args, input_shape):
"""
Builds a baseline InceptionV3 model from tensorflow implementation
with no trained weights loaded and including top layers for predict... | [
""
] | |
7b8e4fc51d0c8a51e02356cc89ff20b4ac60ae8e | a32d5c62b8e50a6c774454629db8e21488d1cec8 | /antenna_pattern/combine_samples_and_angles.py | e59033a12297d7988ecac3ce5538d80833ba0ef7 | [
"MIT"
] | permissive | islamshohidul/power_estimation | c931a178d5f88c23152a802bf8a2d7d7fcf26166 | 677177a559e7aab34687746c292c9e5d52318b59 | refs/heads/master | 2022-04-02T08:07:49.745872 | 2020-02-25T20:32:12 | 2020-02-25T20:32:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,532 | py | """
Functions for loading angles produced using rotctld_angle_printer.py, and
reading GNU Radio samples produced using a file metasink with detached header,
and for interpolating angles based on the GNU Radio timestamps.
Usage example:
```
import combine_samples_and_angles as comb
angles = comb.read_angles('angle_fil... | [
"asgeirbj@samfundet.no"
] | asgeirbj@samfundet.no |
1645dec31e1080f771e155b93326f4fafd184343 | de1ebef36bc2c913af1891538931977035b8f101 | /blog/migrations/0007_article_slug.py | 7bce80d85a500fab1f77fe78f4723dd0562a840f | [] | no_license | shyamTGR/FHC-BackEnd-Django-AWS | 3b423a9a9f3109c2fbfaaa73bc442be2b5174a84 | 8fc7603131999ca2930d4c11ad268384945a7ee0 | refs/heads/master | 2022-11-17T02:46:14.792447 | 2020-07-13T15:03:46 | 2020-07-13T15:03:46 | 279,322,430 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 447 | py | # Generated by Django 2.0 on 2020-04-17 08:19
import autoslug.fields
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('blog', '0006_remove_article_slug'),
]
operations = [
migrations.AddField(
model_name='article',
name='s... | [
"syamsunderthambabathula@gmail.com"
] | syamsunderthambabathula@gmail.com |
557aa36e52bc3830b706dfaaa989c019d1a328a5 | 111ed603331a0049dbff842fb74caba0702e7509 | /game.py | 4770ba4a9eab546f0a76e09e13ceed825f0e0df3 | [] | no_license | DK7823808138/Just-a-Hero-Villain-game | 6b2f08ec5b3ee551821bda48b4fd8bd67620ecda | 0ade9a1a64ff1616bd7f67aa869d71de966a16fa | refs/heads/master | 2022-02-27T20:53:59.724954 | 2019-09-10T18:35:37 | 2019-09-10T18:35:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,734 | py | ##Ameet Kumar Rana, Army Institute Of Technology, Pune
##handle : godfather_rana
import pygame
pygame.init()
win = pygame.display.set_mode((852,480))
pygame.display.set_caption("My game")
black = (0,0,0)
walkLeft=[pygame.image.load('assets/animation/hero/L1.png'),pygame.image.load('assets/animation/hero/L2.png'),p... | [
"noreply@github.com"
] | noreply@github.com |
0d6addfc897dc90923015e6a0ca9ba9784660471 | 243877a6d048e47640d610cda28cb70ad3cafb80 | /venv/lib/python3.6/site-packages/mercurial/debugcommands.py | cf493fae89fc9449eed5b8b796eb2d104724d9b8 | [] | no_license | CJX32/my_blog | 855ca961e4017dde605c108a6d2c84c57447af2c | c8556c0ed11b3a1c75d8a9e897db43bef94641e7 | refs/heads/master | 2020-12-23T15:22:35.755197 | 2020-01-31T12:53:05 | 2020-01-31T12:53:05 | 236,883,944 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 138,264 | py | # debugcommands.py - command processing for debug* commands
#
# Copyright 2005-2016 Matt Mackall <mpm@selenic.com>
#
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2 or any later version.
from __future__ import absolute_import
import codecs
import collec... | [
"meteorskysun@outlook.com"
] | meteorskysun@outlook.com |
fa18fc848793dbb222ee7e14bd3c6903ea911e47 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_372/ch86_2020_06_22_18_23_28_347535.py | 837644fabd4e62704e1139de954c6abf35446f8e | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 193 | py |
with open('dados.csv', 'r') as arquivo_csv:
conteudo = arquivo_csv.read()
arquivo_tsv = conteudo.replace(',',' ')
with open('dados.tsv', 'w') as arquivo:
arquivo.write(arquivo_tsv) | [
"you@example.com"
] | you@example.com |
eb7bb63998735e104a61f2fe50aa634618a4affd | 5051b6731817e10b841fc0de78b4e68b47e2b6e2 | /retina_reinforcement_sim/scripts/baxter_visualise_cnn.py | b9148920c4eef19140b8db19e4abfa3fca0055c3 | [] | no_license | lewisboyd/MsciProject | f5123a45b969effde56bf1fe34c473f9b522c59d | 6dcb04e79f776fc780b843208e2c689578c94bb3 | refs/heads/master | 2020-04-05T21:46:25.783510 | 2019-04-16T15:25:24 | 2019-04-16T15:25:24 | 157,232,466 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,048 | py | #!/usr/bin/env python
import os
import cv2
import numpy as np
import torch
from model import ResNet10
def get_img(base_dir, id):
"""Index dataset to get image."""
img_name = base_dir + "img" + str(id) + ".png"
img = cv2.imread(img_name)
# Convert to float and rescale to [0,1]
img = img.astype(n... | [
"lewis-boyd@live.co.uk"
] | lewis-boyd@live.co.uk |
6ac5efc7cfea20688469963535be7345951657ae | cf051b16272f67d20a4ae733d6078360964674f6 | /src/community/admin.py | b52913bf5a41553861a889727bf4720af59b0ff3 | [] | no_license | aekysong/gradproj-server | 2ca2e71d882dbe446123c4354f071e8e9a8a3025 | 5b9914ec751f1add1bd50abdf9ce572e05655a8d | refs/heads/master | 2022-06-24T04:23:31.919631 | 2020-05-07T15:32:10 | 2020-05-07T15:32:10 | 257,213,083 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 158 | py | from django.contrib import admin
from .models import Post, Comment, Notice
admin.site.register(Post)
admin.site.register(Comment)
admin.site.register(Notice) | [
"woopyeon02@gmail.com"
] | woopyeon02@gmail.com |
53bc52abece6c7a1cac6a1f43df4b6aa33020d12 | 3b7805468c760ab02239d57e06ba8f1308763170 | /lab0809-starter_zx996-master/src/CarRentalSystem.py | 05a0c0d4f33dbf8f851d6d9047c69102c18b5555 | [] | no_license | zx996/-cs1531 | 24f04e34290fa777c409a9998b754e2608f81884 | 9875527233b58ac33ce484c79ac77d63daded8a2 | refs/heads/master | 2020-03-24T06:16:35.300442 | 2018-09-28T06:25:01 | 2018-09-28T06:25:01 | 142,522,633 | 0 | 0 | null | 2018-07-30T09:58:26 | 2018-07-27T03:23:39 | Python | UTF-8 | Python | false | false | 2,107 | py | from src.Booking import Booking
import copy
class CarRentalSystem:
def __init__(self, admin_system, auth_manager):
self._cars = []
self._customers = []
self._bookings = []
self._admin_system = admin_system
self._auth_manager = auth_manager
'''
Query Processing Ser... | [
"z5125550@ad.unsw.edu.au"
] | z5125550@ad.unsw.edu.au |
4f8be92e793a6fae937e3a112d7e14efd308ca24 | 6c2608bc87b522da77c792e20330989de17b3005 | /chap-5/ex124.py | c6628121f54b5fb10fe1c70ca49bc0d805737d78 | [] | no_license | AleByron/AleByron-The-Python-Workbook-second-edition | 8a0b408c1bbd90c82e6b837fc898ee10341ca8fa | 491b2fd394aa04e29a4b2dbe9a615c547e239028 | refs/heads/main | 2023-01-13T21:01:17.757669 | 2020-11-11T01:29:28 | 2020-11-11T01:29:28 | 306,487,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,393 | py | x = str(input("Enter the x coordinate of your first point: \n"))
y = str(input("Enter the y coordinate of your first point:\n"))
points = []
points.append(x)
points.append(y)
z = 0
m1 = 0 #sommatory of x*y
mx2 = 0 #sommatory of x
my2 = 0 #sommatory of y
m2 = 0 # product of sommatory x and sommatory y divided ... | [
"noreply@github.com"
] | noreply@github.com |
29a72ae6b56db6acd56877044674cc86d1224cd2 | 1990900a92276126e1c67cce69de33e0f8d4f270 | /Server/keydict.py | 77475531c1fdc80d0c6362d746d6d99754bb9c12 | [] | no_license | Jacksonblair/SIT210Project | 6db59e671a7f062fdd9d98ae93ad5087fe0fc7a8 | 17724340fd8f84d17904065f9292055eeeb36b3a | refs/heads/main | 2023-05-29T16:51:42.035915 | 2021-06-06T09:39:41 | 2021-06-06T09:39:41 | 374,320,818 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,188 | py | # https://github.com/boppreh/keyboard/blob/master/keyboard/_canonical_names.py
# Maps browser key codes to key codes that the keyboard lib can parse
keydict = {
'KeyA': 'a',
'KeyB': 'b',
'KeyC': 'c',
'KeyD': 'd',
'KeyE': 'e',
'KeyF': 'f',
'KeyG': 'g',
'KeyH': 'h',
'KeyI': 'i',
'KeyJ': 'j',
'KeyK': 'k',
'Key... | [
"jackson.blair@live.com"
] | jackson.blair@live.com |
ccdc4e8142d0e2b9044e3b8bf578a2695a5c38d0 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_leads.py | e86c49d643ca97b9c70c7f7692bf0545cdae9abb | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 214 | py |
#calss header
class _LEADS():
def __init__(self,):
self.name = "LEADS"
self.definitions = lead
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['lead']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
97ca7fce27026a6ad099f82c46b49c36c0dfe8a2 | 600eae9323c5703e5ae3f25ece1bc54fbf4e4883 | /dft_structures/01_bulk_structures/02_IrO3/100/01_my_attempt/01_generate_init_slabs/sc_cut_slab.py | df3bbbb63ddbbbb4e43b6d36e2820c2221959077 | [] | no_license | flash-jaehyun/PROJ_IrOx_Active_Learning_OER | 0d2b16a34b43a8d7572ac3e2141551c59a974c0a | b2780de4dd4b72d89c60ed767d6fe9de290c19a7 | refs/heads/master | 2023-07-14T07:18:59.103433 | 2020-10-13T01:07:54 | 2020-10-13T01:07:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,007 | py | #!/usr/bin/env python
"""Cut slabs from bulk structures using ASE, pymatgen, and CatKit.
Author: Raul A. Flores
"""
# | - Import Modules
from ase import io
# from ase.visualize import view
from atoms_objects.slab_generation import (
cut_slab_ase,
cut_slab_pymatgen,
cut_slab_catkit,
)
from catkit.ge... | [
"raulf2012@gmail.com"
] | raulf2012@gmail.com |
2fac8d4acc2d38ad64a9574af647432bf52f1dd8 | bf6b2139d2ea3103d671b14e475cb6819941e1dd | /PyBites/45/test_fizzbuzz.py | e3090aee65c4a73643403ff16bfc92c94b843ea9 | [] | no_license | cyberfork2000/pycharmprojects | 424b1a3c10cd346032f5093bab57e21ec7abd2c5 | a135f0819f81665f963108ed5405fb549d8f85ba | refs/heads/master | 2022-01-20T18:02:58.406660 | 2019-12-23T15:19:24 | 2019-12-23T15:19:24 | 168,381,488 | 1 | 0 | null | 2022-01-06T22:29:41 | 2019-01-30T17:06:07 | Python | UTF-8 | Python | false | false | 2,725 | py | import pytest
from fizzbuzz import fizzbuzz, display_fizzbuzz
def test_invalid_input_fizzbuzz():
"""Tests fizzbuzz handling of invalid input"""
with pytest.raises(ValueError):
fizzbuzz('FAIL')
with pytest.raises(ValueError):
fizzbuzz(3.5)
def test_invalid_input_display_fizzbuzz():
""... | [
"neil.banks@displaylink.com"
] | neil.banks@displaylink.com |
d2ce67ea67e64569a8602b04169bc229b349ad56 | 47c2ee5ddc4fff17bf26c1e74517f9a6b120bcd0 | /domainadapt/custom_callbacks/Loss_plotter.py | 024d0acb209e6973709857381be551e654383205 | [] | no_license | 2020miccai/submission-813 | ad5807f85a9ca4a9470515347d2fa76a7b93483a | 0145705f1ce5b4b552731153b1657d09c296ab16 | refs/heads/master | 2022-09-19T20:20:19.488191 | 2020-05-25T18:23:59 | 2020-05-25T18:25:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,047 | py | import matplotlib
matplotlib.use('Agg')
import pandas as pd
import os
from os.path import join
import matplotlib.pyplot as plt
class LossPlotter(object):
def __init__(self, mylog_path="./log", mylog_name="training.log", myloss_names=["loss"],
mymetric_names=["Dice_Accuracy", "Accuracy"], cmb_pl... | [
"2020miccai813@gmail.com"
] | 2020miccai813@gmail.com |
4b72779889492dc65a999e027e798b298e1a0640 | 8ab50987572b8dbef361e24cf35ac33ee58a1d6c | /xilva_core/src/state_machine.py | c82de3e2db47267f29947d2355deb886912b57d6 | [] | no_license | ustyui/xilva | d6deef698a1a5438b6808c5a68897aa46b5f2290 | 445899270803bd1026e43d773f828443c3f8d609 | refs/heads/master | 2020-09-16T20:01:21.728336 | 2020-04-07T06:07:22 | 2020-04-07T06:07:22 | 223,875,574 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,958 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Tue Dec 3 17:31:38 2019
State Machine of xilva
@author: ibukidev
"""
# read csv
import rospy,rospkg
from xilva_core.msg import Evans
import threading, sys, time
import numpy as np
from sensor_msgs.msg import Joy
import modules.utils as utils
import modu... | [
"noreply@github.com"
] | noreply@github.com |
4e15f6da34b8ba4cb280f775a5b62ae86d165a97 | a8d25ee748c22b10697ab209feea537a8ad74e5e | /icj/wsgi.py | 51e08989fe1f9bc7f78ba7b2c50dd8a32a4abc0e | [
"MIT"
] | permissive | akkozha/interac | ae878635f7d30262feac1e9e081d34d9ae7f119e | 0d71d4ce302fd02554811a7a587209bc63619e30 | refs/heads/master | 2022-09-12T22:41:36.592878 | 2020-05-31T19:09:07 | 2020-05-31T19:09:07 | 255,415,102 | 0 | 0 | null | 2020-04-19T19:43:40 | 2020-04-13T18:51:27 | HTML | UTF-8 | Python | false | false | 383 | py | """
WSGI config for icj project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTINGS_... | [
"es@MacBook-Air-Esbol.local"
] | es@MacBook-Air-Esbol.local |
6e21c9da97e93c15e681d95f120e8061f007e2ed | 99dffdf8bce0b2394add23cbbbc744e800da795f | /day5/SHOPPING/core/shopping.py | 1897068bcf0c4317b7c98c921dfca6bd16522a43 | [] | no_license | woruochengfeng/learning_python | 12519462e14d71a832229c6e89d049e3d3450d8b | 974a6e60fb8fcec716a77d61dce821ad1a7ce652 | refs/heads/master | 2021-01-21T12:53:34.867149 | 2016-07-12T04:09:24 | 2016-07-12T04:09:24 | 58,536,806 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,451 | py | #!/usr/bin/env python3
# Author: Zhangxunan
import sys
import os
import time
from prettytable import PrettyTable
from SHOPPING.core import shop_db
from SHOPPING.core import public
from ATM.api import common_api
USER_INFO = {'is_login': False}
SHOPPING_CART = []
def goods_list():
"""
商品列表
... | [
"zhangxunan5233@163.com"
] | zhangxunan5233@163.com |
d0df0d7c9c87f063d625ecfe9a1cb3e0c7b3c77e | 461f3883272ce81d9f8c7616202f67c8423e9f4a | /shifumi.py | 7015a14eb93181f3cf18ad10b0cbbbfb75662308 | [] | no_license | RubenPain/Shifumi-Python | cbe88b69f92556072b59fd862e05d12918d48888 | 4bd25d0a4af70b81ff708d412604175ee4ed1ef5 | refs/heads/main | 2023-02-28T21:08:52.939748 | 2021-01-29T10:26:31 | 2021-01-29T10:26:31 | 334,109,414 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,927 | py | import random
# Liste des possibilités pour que l'ordi puisse faire un choix aléatoire
shifumi = ['p','c','f']
# On demande au joueur le nombre de fois qu'il veut jouer avec un input qui sera un nombre donc que l'on convertit en int
nb_manche_voulu = int(input("Entrez le nombre de manche que vous souhaitez ?"))
... | [
"noreply@github.com"
] | noreply@github.com |
6016cf6e6ee8058cced8b5f78c72ddd592b26710 | cf0ab8503d4d704045070deea1e2125375711e86 | /apps/users/backup.py | 5c37a669ed406380966df39f592acca9dfab8e3b | [] | no_license | faierbol/syncano-platform | c3c6468600115752fd9fa5e46a0ad59f75f6bc9c | 879111874d1ef70418b4890cf970720b0a2be4d8 | refs/heads/master | 2023-07-20T10:13:40.066127 | 2021-02-08T15:01:13 | 2021-02-08T15:01:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 155 | py | from apps.backups import site
from .models import Group, Membership, User, UserSocialProfile
site.register([Group, User, Membership, UserSocialProfile])
| [
"rk@23doors.com"
] | rk@23doors.com |
597899983290a2e260588684b07817ad1d83a958 | 05b06c2586c46d24d8bec1fe9d322040c10589a8 | /Practice/0527(1_김형림)_2.py | 9a52e7c0191ef485b3b403b3d8439867d6f1849a | [] | no_license | gentle-potato/Python | 392955bdafd27a426950a4af1c3746a9b899d106 | e96b754037d39f75d6b6d50f2b82202433d975d5 | refs/heads/master | 2023-06-02T06:30:48.605472 | 2021-06-12T02:29:29 | 2021-06-12T02:29:29 | 376,185,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 950 | py | print('====== 2. 두 개의 숫자 더하기 ======')
def sum(x, y) :
# 숫자가 저장된 파일을 불러와서 공백을 기준으로 분할
# 저장할 파일 또한 불러옴
f = open(x, 'r', encoding='utf-8')
g = open(y, 'a', encoding='utf-8')
data = f.read()
data = data.split()
data = list(map(int, data))
# print(data)
# 두 수의 합을 리스트로 만들어서, 최종적으로 세로로 출력... | [
"khl0627v@gmail.com"
] | khl0627v@gmail.com |
01206fb8a2748f3bb5b6dec804c5b46f81cf2c3a | dfc78e8c5502d08b1d24bfe439f02580ceeec272 | /dataProcess/case_study.py | fba80b51632b4ee30ec33865f2617acc076c2ded | [] | no_license | Observer007/trajectory-prediction | 135a118c06b7aed45c3df5ad65de3a855cf94a6d | b6a7197c9d37ea98a267e27a8034055731c47444 | refs/heads/master | 2020-04-28T08:41:06.135778 | 2019-03-12T04:56:30 | 2019-03-12T04:56:30 | 175,137,781 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,854 | py | import numpy as np
import math
id = 'LnxMB9evozs6BouF_irH0cowsiNv1gir0_0'
size, grids = 'chengdu', '50'
grid_output_file = "../data/test/test-"+size+"-grid"+grids+"-10.txt"
road_file = '../data/roadnet/road-'+size+'-'+grids+'.txt'
def DistanceBetweenMeter(geo1, geo2):
R = 6378137
lonA, latA = geo1[0... | [
"noreply@github.com"
] | noreply@github.com |
83d1da1c1daae2797dc13c1eab88ea238f074e7c | bdb3f2c3b1181dc62792f34679b26197e01c90cf | /loanchain/lib/python2.7/site-packages/eth_keys/backends/base.py | 2f513e1dd910d999460ebb37f243af0198060b04 | [
"MIT",
"LicenseRef-scancode-public-domain"
] | permissive | adithyabsk/loanchain | 8a590a5a2a7fc7707b6c4576baf029fadb99cf04 | 03cc809c5a804af6735acf8e7cd2023930bfc303 | refs/heads/master | 2023-05-08T08:05:27.956496 | 2019-06-23T17:19:26 | 2019-06-23T17:19:26 | 109,518,819 | 5 | 5 | null | 2021-05-24T04:36:13 | 2017-11-04T18:15:25 | Python | UTF-8 | Python | false | false | 1,000 | py | from eth_keys.datatypes import (
PrivateKey,
PublicKey,
Signature,
)
class BaseECCBackend(object):
def __init__(self):
self.PublicKey = type(
'{0}PublicKey'.format(type(self).__name__),
(PublicKey,),
{'_backend': self},
)
self.PrivateKey = ty... | [
"ec2-user@ip-172-31-58-26.ec2.internal"
] | ec2-user@ip-172-31-58-26.ec2.internal |
b0be5808ed645488d7987fcbe54f168491eb9e09 | 2b52e32f8ba65202078bde0173eb8e972434d3f8 | /Python_Algorithm/Baek/2748.py | 6e74594da15b2bdff8ba38f683a8aaa31d276af4 | [] | no_license | HoeYeon/Algorithm | 7167c463922227c0bc82e43940f7290fc1fa16af | 0e5ce2a3347d733bbaa894391cbf344fcb5161d6 | refs/heads/master | 2020-09-08T17:27:56.654485 | 2020-08-02T08:23:46 | 2020-08-02T08:23:46 | 221,195,393 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 133 | py | arr = [-1 for i in range(91)]
arr[0] = 0
arr[1] = 1
for i in range(2,91):
arr[i] = arr[i-1] + arr[i-2]
print(arr[int(input())])
| [
"shy9546@naver.com"
] | shy9546@naver.com |
5735640f846f4edf3f2937684a92c2ccec6aa52f | 6c1ae1e57f58e79bd4c139f47d0b535bc5b3edb2 | /imdb/imdb/items.py | 684b935c283747987031f5e9130484666fe1a2f2 | [] | no_license | stephensh24/scrapy_proj | 5108a71718e9c7c6ae71b9d4c7fecb084cf60669 | 646d05a4d6dd889e3813f9f48d7bc26442072cf6 | refs/heads/master | 2021-06-20T22:19:16.424469 | 2021-01-08T22:23:48 | 2021-01-08T22:23:48 | 133,443,288 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,309 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class ImdbItem(scrapy.Item):
title = scrapy.Field()
# imdb_rating = scrapy.Field()
# meta_rating = scrapy.Field()
# genre = scrapy.Field()
release... | [
"shafer2430@gmail.com"
] | shafer2430@gmail.com |
57d551573f3a4aea5e19af6a23bce27eb609c8df | a3e8c6d1cf599587092ecc474dbdac9024dbca75 | /zabbbix4i.py | 0a1dcdb5c52bf2b65d66cfca3b7d8aad01df74eb | [] | no_license | DarkkFox/work | 7532a6f46995f54176abeedc6ad3f3a0a94c7105 | e5d29cf0bb87a5bfd3765a35ea82ef78223ee60c | refs/heads/main | 2023-03-08T11:18:14.446097 | 2021-02-24T12:17:59 | 2021-02-24T12:17:59 | 341,881,890 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,117 | py | from airflow import DAG
from airflow.hooks.postgres_hook import PostgresHook
from airflow.operators.python_operator import PythonOperator
from airflow.contrib.operators.ssh_operator import SSHOperator
from airflow.contrib.hooks.ssh_hook import SSHHook
from datetime import datetime, timedelta
import pprint
default_args... | [
"noreply@github.com"
] | noreply@github.com |
e2a006c5fd5dda139a4ffa565d5595d9b86724ef | d469cced20011312c23b97339c6cb67ae136508a | /te/TE_WORK.py | 953d6edca3806d8e8153e867a969d4d58196c26c | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause"
] | permissive | priyadarshitathagat/te-ns | 0d52ee3c704af1d188269c8f2813e4f358849460 | 8ef414a0eafe59b6ec4521ec3c31df8d964acc98 | refs/heads/main | 2023-04-20T14:20:41.349610 | 2021-05-09T04:36:17 | 2021-05-09T04:36:17 | 366,020,627 | 0 | 0 | NOASSERTION | 2021-05-10T11:34:01 | 2021-05-10T11:34:00 | null | UTF-8 | Python | false | false | 29,827 | py | #**********************************************************************************************
# Traffic Emulator for Network Services
# Copyright 2020 VMware, Inc
# The BSD-2 license (the "License") set forth below applies to all parts of
# the Traffic Emulator for Network Services project. You may not use this file
... | [
"aravindhank11@gmail.com"
] | aravindhank11@gmail.com |
1735e4d9e099a3ed0ac6f2fe061c8bc8bc749db7 | 8f50c262f89d3dc4f15f2f67eb76e686b8f808f5 | /Calorimeter/CaloLocalHadCalib/share/cl_w_ooc.py | 7823a3efcffe358efc4b792501be52620786ff39 | [
"Apache-2.0"
] | permissive | strigazi/athena | 2d099e6aab4a94ab8b636ae681736da4e13ac5c9 | 354f92551294f7be678aebcd7b9d67d2c4448176 | refs/heads/master | 2022-12-09T02:05:30.632208 | 2020-09-03T14:03:18 | 2020-09-03T14:03:18 | 292,587,480 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,746 | py | # This is the job options file to create classifcation, weighting and
# out-of-cluster histos from ESD
###############################################################
#
# Job options file
#
# Authors: Sven Menke
#==============================================================
doClassification=True
doWeighting=True
doOu... | [
"graemes.cern@gmail.com"
] | graemes.cern@gmail.com |
347234d5055003262155ee4a4c48189cba112bad | 5060506edf8498a2c22e8f17ae6372bed72e9e0a | /021.py | e2bf4c616b6f843c2a804d03a1b2963a021d7ef4 | [] | no_license | danalenvargas/project-euler-solutions | d53d0ffdb6e882284e29130ebb4feaa60032806a | 9d98689575f36ce5e304dc747bbfa70f6ec54582 | refs/heads/master | 2020-03-22T17:21:52.854462 | 2018-07-10T07:08:43 | 2018-07-10T07:08:43 | 140,391,092 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 495 | py | import math
divSums = [0] * 10000
def getDivSum(num):
if num != 1 and divSums[num] == 0:
sum = 1
for i in range(2, math.floor(math.sqrt(num)) + 1):
if num%i == 0:
if num/i == i:
sum += i
else:
sum += i + num//i
divSums[num] = sum
return divSums[num]
def c... | [
"danalejandro.vargas@gmail.com"
] | danalejandro.vargas@gmail.com |
f7928221cd822cfdd64a619751fc7103bef0c32a | be0c1b89e5f97f393dbaeffe587069f4a8e7ac09 | /sandbox/tests.py | 9587e8fa22155e2d117abcd144e0f810df8cf63e | [] | no_license | taozerui/DiVAE | 0430b2330bce05e0c0233bad0efb50126f68653c | 971087d9c9554ce11e22b11036d1194747fb5839 | refs/heads/master | 2023-07-09T21:38:17.832196 | 2021-06-22T15:08:27 | 2021-06-22T15:08:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 73 | py |
l=[5,6,7,8]
#01
#12
#23
#34
for i in range(0,len(l)):
print(i,i+1)
| [
"eric.drechsler@cern.ch"
] | eric.drechsler@cern.ch |
4cc9e8278598a8c311ed01977bd5a0f2694fc8c5 | f8f8c8b172c8887e984b8789fd6dfc6489d51de7 | /vertices.py | db5265d3808ab4443b8ace17485a335ff26c3618 | [] | no_license | konlil/mypy | bda9c1f24fc42d145dec5e7b94966c7194d77706 | c6583450279bfd7a21b30ee523b4f55c56cb0599 | refs/heads/master | 2016-09-05T16:04:33.906696 | 2014-07-12T09:06:51 | 2014-07-12T09:06:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,583 | py | #coding: gbk
import struct
'''
Format C Type Python type Standard size Notes
x pad byte no value
c char string of length 1 1
b signed char integer 1 (3)
B unsigned char integer 1 (3)
? _Bool bool 1 (1)
h short integer 2 (3)
H unsigned short in... | [
"jg.yuan@gmail.com"
] | jg.yuan@gmail.com |
07d26a4f614d347f645b65a8d343f8cf14e41985 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /CHwX2o6rqrBsL4gzr_8.py | 4e06235d8f0753cd62c7b0b2ac07732e5ae46576 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 400 | py | """
Check if a string `txt` is a title text or not. A title text is one which has
all the words in the text start with an upper case letter.
### Examples
check_title("A Mind Boggling Achievement") ➞ True
check_title("A Simple Python Program!") ➞ True
check_title("Water is transparent") ➞ Fals... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
0d0e5d82f76a75f1d2ae152b1275ee6388d0044f | a14dd601cde67f67d0ba38dfd1362f7c0109cef1 | /stacks/concept/increasing.py | 3dafd3ba680c63bc1712d971b17d5f054734cfd8 | [] | no_license | Meaha7/dsa | d5ea1615f05dae32671af1f1c112f0c759056473 | fa80219ff8a6f4429fcf104310f4169d007af712 | refs/heads/main | 2023-09-03T18:52:41.950294 | 2021-11-05T09:14:42 | 2021-11-05T09:14:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 560 | py | # T=n,S=n
def x(nums):
n, stack = len(nums), []
for i in range(n):
while stack and stack[-1] > nums[i]:
stack.pop()
stack.append(nums[i])
return stack
# T=n,S=n
def y(nums):
n, stack = len(nums), []
for i in range(n):
while stack and nums[stack[-1]] > nums[i]:
... | [
"nikhilgoyal104ah4@gmail.com"
] | nikhilgoyal104ah4@gmail.com |
2346a86e6c9480baef5bf11e5f21294dcbac2737 | 905b3a6a7323ab7dba65b4dc8ddeffc91981c04c | /Práticas/RE12/wc.py | 044747e863abbbd7ad4c2c30add77a83da446beb | [] | no_license | TitanicThompson1/FPRO | ada8d1e23a9e17bfafcd01431665bda54476de50 | af2399c1f0833bd34e149c64ab62b8ba8a4605ea | refs/heads/master | 2020-05-07T18:45:13.991996 | 2019-10-18T14:26:13 | 2019-10-18T14:26:13 | 162,582,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 450 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Dec 20 09:13:48 2018
@author: up201706860
"""
def wc(filename):
result=()
nlines=0
ncharac=0
nwords=0
with open(filename,"r") as shakeit:
for line in shakeit:
nlines+=1
ncharac+=len(line)... | [
"noreply@github.com"
] | noreply@github.com |
9ea44e90d899ad74bce850db433f5ba17e10e09d | 646ea2c2096ed3e0b763eb69f0c0f1a367a7092d | /lecture_07/Ex_07/solid/autocorrelation_u.py | 315d673c1b0f83239f5045625a69ea3b8d40dd31 | [] | no_license | GiovanniPaleari/LSN_Exercises | 2d13fd8692b5b7dfaf7647bb20e4f44a4413da00 | e8446e3058d689768c00c2d96fb1b5239e944199 | refs/heads/master | 2020-06-22T07:21:50.344559 | 2019-07-18T23:55:54 | 2019-07-18T23:55:54 | 197,669,764 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,288 | py | import matplotlib
import matplotlib.pyplot as plt
import numpy as np
from tqdm import tqdm
from scipy.optimize import curve_fit
def f(x,a,b):
return a * np.exp(-b*x)
step, ene = np.loadtxt("inst_energy_solid.txt",usecols=(0,1), delimiter='\t', unpack='true')
tmax=300
c1=0
c2=0
autocorrelation = np.zeros(tmax)
... | [
"gio.paleari@gmail.com"
] | gio.paleari@gmail.com |
8b79f003dfce4ea13409253d4b77df4f94132382 | f8a9ddee8dfecad878a4b99e968c89386dd44408 | /api/app/models/filmes_assistidos.py | f1e479e364211321b6d858414dfb8874fe01eaf6 | [] | no_license | cayque16/Gerencia-Filmes-API | e62131f3c8985646864290ff5c9f538c70237cd9 | ac40d63ea00e63935cd32b884c2c1fb02e26baa3 | refs/heads/master | 2022-07-20T22:01:57.403595 | 2020-06-12T13:46:09 | 2020-06-12T13:46:09 | 147,935,437 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 928 | py | from app import db,ma
class FilmesAssistidos(db.Model):
__tablename__ = 'FilmesAssistidos'
id = db.Column(db.Integer, primary_key=True, autoincrement=True)
idFilme = db.Column(db.Integer,db.ForeignKey('Filmes.id'), nullable=False)
idUsuario = db.Column(db.Integer,db.ForeignKey('Usuarios.id'))
idAnoMeta = db.Colu... | [
"cayque_santos16@hotmail.com"
] | cayque_santos16@hotmail.com |
f5ae17a47db14304ae7b9412ecb72093ce8142ba | 7d13216ee8fb57fb12aa36be6b32c9b5523f62f9 | /blog/models.py | 9f9a1223131e680bb74fbe21d2b7c289c86b2486 | [] | no_license | bayobit/portfolio-project | 18104625f00ae564de6070a3828123a60920949f | bb9b26fe5658d54901ef239ff51b8095b3051764 | refs/heads/master | 2022-12-17T02:24:46.364712 | 2020-04-03T11:07:15 | 2020-04-03T11:07:15 | 248,832,657 | 0 | 0 | null | 2022-12-08T03:05:14 | 2020-03-20T19:07:49 | Python | UTF-8 | Python | false | false | 566 | py | from django.db import models
# Create your models here.
class Blog(models.Model):
title = models.CharField(max_length = 200)
pubdate = models.DateTimeField(null = True, blank = True)
body = models.TextField(default = 'DEFAULT VALUE', blank = True, null=True)
image = models.ImageField(upload_to = 'imag... | [
"ismaeelbit@gmail.com"
] | ismaeelbit@gmail.com |
f1584693b2003255098fa425e3b45a459f8e13fd | 4f2bbd19c228ac7b10e3e8d2ebddbabef677dd0f | /provided_code2.py | 57ac8c6e967bc0ac51a6c520df9878e48f245141 | [] | no_license | validum/Project-2 | a80cb8c287934fa506519ed39e8b6f7148cee6f2 | 263c20ae0190c2fc4be8ba7a6328f687901178bc | refs/heads/master | 2016-09-06T14:59:35.408955 | 2014-09-29T00:13:48 | 2014-09-29T04:25:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,345 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Sep 20 01:26:22 2014
@author: Eric
"""
"""
Provided code for Application portion of Module 2
"""
# general imports
import urllib2
# CodeSkulptor import
#import simpleplot
#import codeskulptor
#codeskulptor.set_timeout(60)
# Desktop imports
#import matplotlib.pyplot as plt... | [
"eric_wu2001@yahoo.com"
] | eric_wu2001@yahoo.com |
ee029148e28c59ea905123f4f6cda00447ed9b81 | 25c24c307853f1fa19238801ca92b64864d0d7aa | /analysis/compute_run_time.py | 37afbee37cb698be6c88402ab5cc0ef12e4369f7 | [] | no_license | maschimax/HPO-benchmarking-framework | 0aa179a4d7d62065c756a5c8a3b8de073c47c1dd | 4d130dee4f9fac37364e5cc8c474a89904860ac8 | refs/heads/master | 2023-06-12T09:33:43.266104 | 2021-07-05T15:10:23 | 2021-07-05T15:10:23 | 294,675,140 | 1 | 2 | null | 2021-07-05T15:10:23 | 2020-09-11T11:17:48 | Python | UTF-8 | Python | false | false | 1,580 | py | import pandas as pd
import os
import numpy as np
total_computing_time = 0
os.chdir('..')
start_path = './hpo_framework/results'
datasets = ['turbofan', 'scania', 'sensor', 'blisk', 'surface']
for _, data_dirs, _ in os.walk(start_path):
for this_dir in data_dirs:
if this_dir not in datasets:
... | [
"53035227+maschimax@users.noreply.github.com"
] | 53035227+maschimax@users.noreply.github.com |
74433f5854149b11a48817cd9fe2f5498c072f15 | 85d48fe19f90493a88345c81352ce9899fd9e893 | /201801month/测试/redis查询.py | 6d469c409be7b5f28a55620848abd707af288b25 | [] | no_license | Hanlen520/learnPython | bebd558ec05521bf01d97782b126fb9f816c6f0e | 904fc65ee7865cdd025bd34c37f1cc19527fdf86 | refs/heads/master | 2020-04-03T10:29:38.948615 | 2018-02-22T03:40:49 | 2018-02-22T03:40:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | py | #!/user/bin/env python
# -*- coding:utf-8 -*-
import redis
import configparser
if __name__ == '__main__':
pool = redis.ConnectionPool(host='47.96.171.4',password='0987654321rfvujmtgbyhn', port=6379, db=0)
r = redis.Redis(connection_pool=pool)
config = configparser.ConfigParser() | [
"18192496382@163.com"
] | 18192496382@163.com |
4656e82b4a0e1e219df2cac50b5b179e3218a254 | d7e39888dd15f6470e5b1e9e7453570c7c22f8ca | /pyfilter/inference/batch/varapprox/__init__.py | 1576b25d7693ff9001c6329aab10912016e2d6b1 | [
"MIT"
] | permissive | quinfer/pyfilter | 4673eb21d9fabb34a8a35029561c713cbe3aac5c | 90e42702c79c12b0bdfcb709fed05cb8efd90686 | refs/heads/master | 2022-12-28T22:35:53.266333 | 2020-10-17T16:09:03 | 2020-10-17T16:09:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 127 | py | from .meanfield import StateMeanField, ParameterMeanField
from .base import BaseApproximation
from .lowrank import StateLowRank | [
"noreply@github.com"
] | noreply@github.com |
2a156761f19d32fd35f8fb3976db4e56d8a25eac | 64fea0c51de5f8ec9a4450edc779be173daaed20 | /posts/migrations/0001_initial.py | 40b4e7380fa9e6432c06ffa34226d401c4e805a8 | [] | no_license | piyushkummaar/Unravelling-Destination | 314449e6e335e4e1c4c0606e039da262d30a4514 | 814285c50b67feb3623d3cb88b98ad3a29c2efb1 | refs/heads/master | 2022-12-09T15:22:00.346930 | 2020-06-22T06:17:27 | 2020-06-22T06:17:27 | 236,319,729 | 0 | 1 | null | 2022-12-08T05:25:56 | 2020-01-26T14:00:16 | JavaScript | UTF-8 | Python | false | false | 5,628 | py | # Generated by Django 3.0.2 on 2020-01-27 04:06
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import tinymce.models
import uuid
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(setting... | [
"pshkmr007@gmail.com"
] | pshkmr007@gmail.com |
13f368d3105cf82c22ae22f3756a5f196aabc4dd | a252f9733ee0ccaf17ff90e4d9fba04f669c5ec1 | /functions.py | 731ecf3697f087e69b513019e24fa87b29fa712f | [] | no_license | firecy/20170619sd | 429ca509754516816f5a9879469bcc2440a51771 | 40c13a8a7bab19372d4ed38e082548abc6ac63d7 | refs/heads/master | 2020-03-12T10:40:14.663400 | 2018-05-17T03:09:51 | 2018-05-17T03:09:51 | 130,578,398 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,376 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import os
import sys
import timeit
from datetime import datetime
import time
import numpy as np
def minmax_standardization(x, x_min, x_max):
'''
this function realizes data minmax standardization.
x_nor = (x-x_min)/(x_max - x_min)
'''
for i ... | [
"jiangdama@yeah.net"
] | jiangdama@yeah.net |
80e87f0e8fa81384b648ddc15570d1b712756a1b | 68be8655542d5a02ef5836c32a309026d4389519 | /data-structures/breadth_first/test_breadth_first_graph.py | 2baee794ceebe06052d78043853ead9201bdbdae | [
"MIT"
] | permissive | jamesbond007dj/py-data-structures-and-algorithms | e51e7c6d1a3da667cfb666a26cddcdb1015a92a0 | ce66faa99f7c7e9c0f9d248a56d78c9ebf069e25 | refs/heads/master | 2020-09-23T17:06:25.384038 | 2020-02-04T06:38:57 | 2020-02-04T06:38:57 | 225,545,867 | 0 | 0 | MIT | 2020-02-04T06:37:18 | 2019-12-03T06:19:36 | Python | UTF-8 | Python | false | false | 1,429 | py | import pytest
from breadth_first_graph import Graph , Node_
def test_no_edges():
graph = Graph()
naboo = graph.add_node('naboo')
assert graph.breadth_first(naboo) == {naboo}
@pytest.mark.skip('pending')
def test_flight_none(test_graph):
graph = test_graph
set_list = ['naboo', 'pandora', 'e... | [
"ilkerzaimoglu@gmail.com"
] | ilkerzaimoglu@gmail.com |
3e6fde40d177c25c7745a280092164dfd9e66956 | 9e31f25fb3245277e13857fb68044df2d8876ec5 | /myPythonRobot10.py | 222a1a58a2b2c68befcc0df6afe760f5f9bb8c3d | [] | no_license | Wirevel/Python-Harjoitukset | 8d269f29127b71703cc50c50aeaaeb1a6283395f | 25c5bc1c9bf4f38bc47d6bec1d642beadf9f698b | refs/heads/main | 2023-05-30T23:18:43.714735 | 2021-07-02T07:03:11 | 2021-07-02T07:03:11 | 382,258,834 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 434 | py |
def iloinen():
print("MyPythonRobot on iloinen")
print("o o")
print(" #")
print("( )")
print(" -/")
totinen()
def totinen():
print("MyPythonRobot on totinen")
print("o o")
print(" #")
print("---")
viksu()
def viksu():
print("MyPythonRobot on viksu"... | [
"noreply@github.com"
] | noreply@github.com |
ed3aa68698a39b7c08f2ef8cab0ba7db94739f9b | 22094dd1ce0117a5f2ddf2407e4f935ff3af3f49 | /ucert-env/Scripts/explode.py | 88bcfb124a5e8b97cbd6625ae221413e1c3d4e09 | [] | no_license | dylreeves/UserRecert | f9c336b736b3a0bd684fbecc08ee7c89c35ff57b | 5f3fed72b3f867412fae89ece7ca507b5549a59b | refs/heads/master | 2022-11-29T21:10:56.021314 | 2016-06-12T13:37:37 | 2016-06-12T13:37:37 | 60,696,146 | 0 | 1 | null | 2022-11-18T23:02:26 | 2016-06-08T12:28:47 | Python | UTF-8 | Python | false | false | 2,469 | py | #!d:\proj\userrecert\ucert-env\scripts\python.exe
#
# The Python Imaging Library
# $Id$
#
# split an animation into a number of frame files
#
from __future__ import print_function
from PIL import Image
import os
import sys
class Interval(object):
def __init__(self, interval="0"):
self.setinterval(inte... | [
"dylreeves@gmail.com"
] | dylreeves@gmail.com |
85b7b76fb1a314e685b23246704e250fa7f17211 | c6c14b995f42dc1f6ef3670610c4b687ff62d67c | /blogmanager/wsgi.py | ce4e0d0baed40c418b28a16ff6e0290d5386be31 | [] | no_license | attacheaka/learn-django-api-rest | 1858eb694123650416e1fc597d9cbdee001cf404 | 9d6c8d570e84ad4598001b2f21b9a3fb1d84b5d3 | refs/heads/master | 2023-03-06T05:46:08.585859 | 2021-02-18T14:31:37 | 2021-02-18T14:31:37 | 340,072,685 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | """
WSGI config for blogmanager 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.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_S... | [
"attacheaka66@gmail.com"
] | attacheaka66@gmail.com |
c4abd56378477047360154552ce5d4a59c297a33 | 4181653a63b6fc3d1a8b8b3739b5a5fc62cd3491 | /fava/core/watcher.py | b84d0b9ad3738650e2d543358af5377316bc02ed | [
"MIT"
] | permissive | rychipman/fava | aa31a87353a431f123ffbe4098b6426e8ca28ad9 | 91398610d1903a301c7c1e0c682df3176f4f4688 | refs/heads/master | 2020-09-06T21:50:08.311461 | 2019-11-08T14:39:44 | 2019-11-08T14:40:05 | 220,565,147 | 0 | 0 | MIT | 2019-11-08T23:44:50 | 2019-11-08T23:44:49 | null | UTF-8 | Python | false | false | 1,432 | py | """A simple file and folder watcher."""
import os
class Watcher:
"""A simple file and folder watcher.
For folders, only checks mtime of the folder and all subdirectories.
So a file change won't be noticed, but only new/deleted files.
"""
__slots__ = ["_files", "_folders", "_last_checked"]
... | [
"mail@jakobschnitzer.de"
] | mail@jakobschnitzer.de |
a5c1629ad13c1ecceaa8c56c94b6979ffcbaefa6 | 62b983f70dbaf744dcf93679960cee319beabbf3 | /backend/estoque/migrations/0003_alter_produto_options.py | 23e75ae545fc0f9c5af424dcb47ad1a6616f47da | [] | no_license | gelira/ecommerce | 6ac7aaec59a5034a87bb4a1b57f3c6d592e2ac93 | 784c02151296a986bcf5eea0639b3e0b7669ff28 | refs/heads/master | 2023-07-16T09:15:24.714381 | 2021-08-29T17:51:06 | 2021-08-29T17:51:06 | 391,683,485 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 347 | py | # Generated by Django 3.2.5 on 2021-08-02 03:17
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('estoque', '0002_alter_loja_nome_url'),
]
operations = [
migrations.AlterModelOptions(
name='produto',
options={'ordering': [... | [
"geraldo.eloi11@gmail.com"
] | geraldo.eloi11@gmail.com |
7ba769afcde2364ea3c84f384398055ee839e430 | cb4a9b53eff6d8a0db984c0e5233416bcb54b969 | /src/python/codebay/l2tpadmin/vpneaseadmin.py | a03e3645dc3fbbf319439c35b560844e4cf0c12f | [
"WTFPL"
] | permissive | Cloudxtreme/vpnease-l2tp | d6f2f8d6480398494ad2eb9e0d414efe6696dc9d | 0fcda6a757f2bc5c37f4753b3cd8b1c6d282db5c | refs/heads/master | 2021-05-29T16:17:02.563556 | 2013-09-05T09:44:37 | 2013-09-05T09:44:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,710 | py | """Swiss army knife VPNease administration helper.
Contains functionality required by all server-side elements: product web
server, database server, management server, DNS server, and monitoring
server. The intention is to collect "script crud" here, and use it by
invoking the tool from crontab, init-scripts, etc.
""... | [
"naked@iki.fi"
] | naked@iki.fi |
4010dcd01567b77fc39425e40408ee523937c632 | adbf786e80748a912e53d8bf21ecd538256a58c0 | /venv1/bin/wheel | 314edb72f8cea54b23fc8338c1e7e1e1e859ddb6 | [] | no_license | mengluGuo/FoodOrderSystem | 7cb965540bec06dbc2f8e858a0df2914465d3ec7 | 5014b935a181a88d4b521426a69b5dcdb917bfeb | refs/heads/master | 2021-04-27T10:16:18.258660 | 2018-03-20T11:46:45 | 2018-03-20T11:46:45 | 122,533,171 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 246 | #!/Users/lulu/git/FoodOrderSystem/venv1/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from wheel.tool import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"gml1988109@gmail.com"
] | gml1988109@gmail.com | |
37f4ea466ad73a0e87c966932f73d3075b721125 | 20f951bd927e4e5cde8ef7781813fcf0d51cc3ea | /fossir/modules/oauth/provider.py | 8fd3d5a2a89a42ba246d3b5cab32aa35ac56cb82 | [] | no_license | HodardCodeclub/SoftwareDevelopment | 60a0fbab045cb1802925d4dd5012d5b030c272e0 | 6300f2fae830c0c2c73fe0afd9c684383bce63e5 | refs/heads/master | 2021-01-20T00:30:02.800383 | 2018-04-27T09:28:25 | 2018-04-27T09:28:25 | 101,277,325 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,862 | py |
from __future__ import unicode_literals
from datetime import datetime, timedelta
from uuid import UUID
from flask import after_this_request, g, session
from oauthlib.oauth2 import FatalClientError, InvalidClientIdError
from fossir.core.db import db
from fossir.modules.oauth import logger, oauth
from fossir.modules... | [
"hodardhazwinayo@gmail.com"
] | hodardhazwinayo@gmail.com |
6c8b2915cd322fd87501fbabdb757f794131f79c | d05f8b20a6c4c3cb6779d472c02da672573dfbf8 | /app/getter/parsers/Novaya.py | 66931e2f0a9a1ddedf076d3680eae3a7cf981f5a | [
"MIT"
] | permissive | sweetSTEAM/NewsSummarizer | af992ecc9d92c17bfc0536bcd5c277109f99bc04 | b179e2414f5bf7f9c0c79f10bc4611e5385b3a96 | refs/heads/master | 2022-12-13T09:04:49.666297 | 2018-05-24T13:20:30 | 2018-05-24T13:20:30 | 133,338,299 | 1 | 0 | MIT | 2022-12-08T02:05:27 | 2018-05-14T09:37:54 | Python | UTF-8 | Python | false | false | 2,439 | py | import requests
import datetime
import re
from bs4 import BeautifulSoup
from .BaseParser import BaseParser
import time
from multiprocessing import cpu_count
class Novaya(BaseParser):
"""docstring for Novaya"""
def __init__(self, **kwargs):
super(Novaya, self).__init__(
id='NOVAYA',
... | [
"svvatsteam@gmail.com"
] | svvatsteam@gmail.com |
9e0a698d18f48d080382cd0e0b7cbf02d57bd1b4 | d9cbf5beb4d81d4398fd4eea3e18f39bd9fb00a9 | /api/views.py | 154e947ae12efb8e0cd77bbd3a3f56872eedebdc | [] | no_license | SETTER2000/yamdb_final | cf6245089485449cb9abaf44d858bc01577dfde8 | 253001f693b4ec86006c41cc610a56c1e824edb5 | refs/heads/master | 2023-08-03T03:48:52.095137 | 2021-09-17T08:41:03 | 2021-09-17T08:41:03 | 406,097,564 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,171 | py | from functools import partial
from django.core.mail import send_mail
from django.shortcuts import get_object_or_404
from django.utils.crypto import get_random_string
from rest_framework import filters, permissions, status, viewsets
from rest_framework.decorators import action, api_view
from rest_framework.exceptions i... | [
"info@lphp.ru"
] | info@lphp.ru |
57202db9f42478a5e54092ec297297a3c0178909 | baf2329e02c590467ff76ffbe50c7339cf5e049e | /files/api/views.py | c2f599c1774035507cd05fc6bb9e767416c5d5b1 | [] | no_license | jermained876/newphotobackend | d40a1c163408b192229abf293aea966dda59c31d | 336b20558536da0b88a97b1a8db7070d41244503 | refs/heads/main | 2023-06-12T23:40:02.390697 | 2021-07-03T15:50:30 | 2021-07-03T15:50:30 | 382,640,861 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,850 | py | from rest_framework.generics import ListAPIView, CreateAPIView, DestroyAPIView, RetrieveAPIView, UpdateAPIView
from rest_framework.permissions import AllowAny, IsAuthenticated
from rest_framework.views import APIView
from rest_framework.exceptions import ValidationError
from rest_framework.response import Response
from... | [
"jermainedawkins2013@gmail.com"
] | jermainedawkins2013@gmail.com |
df49a368f3b72c4c1b65114df321fdaa74c9e3f0 | f0fe0154e6cf6dba4606d0c0dba9cda9e2de2a50 | /user_auth/urls.py | e5d2646d37795ef6a034591ab31df383b9b6c2e1 | [] | no_license | Irina-Roslaya/notifier | ca84015192a5de6cf1c5e668550a68a2657a793c | 259dfe05c361d383e79840a51479c961f09f6c4a | refs/heads/master | 2023-02-08T01:00:16.248666 | 2020-11-10T16:57:15 | 2020-11-10T16:57:15 | 318,980,217 | 0 | 0 | null | 2020-12-06T07:52:52 | 2020-12-06T07:52:52 | null | UTF-8 | Python | false | false | 1,362 | py | from django.contrib.auth.views import PasswordResetConfirmView, PasswordResetView, PasswordResetCompleteView, \
PasswordResetDoneView, LoginView, LogoutView
from django.urls import path
from user_auth.views import RegistrationView
urlpatterns = [
path('login/', LoginView.as_view(template_name='user_auth/logi... | [
"dikorolyov@mail.ru"
] | dikorolyov@mail.ru |
e29cd27f548d29038584f8ba7ed25b6ffd8ea298 | 314fb2eea31aea4520465702b12fd2a7c5b4c728 | /ledm/trees/network.py | 95193f11614dcd88dacaf034c527d15c3939fc59 | [] | no_license | gundan0079/FalconCloud | dbdc1fdfddfac458c110e65969d4462672440e21 | c02bfb760c2f640754038cccd3b464c3026d11e5 | refs/heads/master | 2021-07-21T04:30:48.453106 | 2017-10-31T06:14:02 | 2017-10-31T06:14:02 | 108,953,380 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,656 | py | """
LEDM wrapper around Network related trees
"""
import logging
from . import ledm_templates
from .ledm_tree import LEDMTree
log = logging.getLogger(__name__)
class Adapters(LEDMTree):
"""
Adapters tree /IoMgmt/Adapters
"""
def __init__(self, data=ledm_templates.ADAPTERS):
super().__init__(d... | [
"hunter_hunter_max@hotmail.com"
] | hunter_hunter_max@hotmail.com |
06b3013203fc5ed569676d2b786692ba60f54286 | 7710efc124843352ea6002578ffd3358087b8236 | /gowestapp/go/datasets/red_light_camera_notices/process.py | fc2b0400a4035bff6c8143ea7e6f7b9286235e87 | [
"MIT"
] | permissive | deccico/gowest | d1a143a665544579b3006ad4cdc606db2c568402 | bbf5f6ffd9d7bd17e23586efdb339bd08ab60285 | refs/heads/master | 2021-09-08T14:51:14.437888 | 2021-09-04T02:59:09 | 2021-09-04T02:59:09 | 21,733,165 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,072 | py | '''
Get dictionary of {suburb => [avg number of monthly fines, avg fine value]}
'''
import csv
import os
def getRedLightFinesBySuburb():
file = open(os.path.dirname(os.path.realpath(__file__)) + '/data.csv', 'r')
isfirst = True
reader = csv.reader(file)
# Start by storing totals so we can calculate we... | [
"congusbongus@gmail.com"
] | congusbongus@gmail.com |
0889b4206fddc5e448076e4b2c246c02df4a6227 | 04d5510b7865cc791a52c3f4feb232d7dea12928 | /flight-deals-start/data_manager.py | e08e5e9d48b795a816e0e7896a10e1055c902d9a | [] | no_license | kodchapong1295/Learning_python | 7b8341c0f38a0dad2d248adfdab464278ddc6045 | c1f816189cadd7a87758797c3e94184ef9efcb2f | refs/heads/main | 2023-06-26T08:21:09.717658 | 2021-07-24T19:09:05 | 2021-07-24T19:09:05 | 374,912,756 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 841 | py | import requests
SHEET_ENDPOINT = "https://api.sheety.co/302424d51f43453377ceccb76743d6d4/flightDeals/prices"
class DataManager:
# This class is responsible for talking to the Google Sheet.
def __init__(self):
self.destination_data = {}
def get_destination_data(self):
response = requests.g... | [
"sunsasabest@hotmail.com"
] | sunsasabest@hotmail.com |
2985a529593da7029e6868a014adb5ffd5482868 | 88e06bab1989c81a2dd649bb09b144fa7c958f89 | /ib_best_time_to_buy_and_sell_stock_3.py | 9fcb9cac7a3c97e80e917ccc8ad6581a8d4fbbbc | [] | no_license | VaibhavD143/Coding | 4499526b22ee4ef13f66c3abcea671c80a8f748a | 5de3bae8891c7d174cbc847a37c3afb00dd28f0e | refs/heads/master | 2023-08-06T21:56:44.934954 | 2021-10-09T18:31:29 | 2021-10-09T18:31:29 | 263,890,286 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 663 | py | class Solution:
# @param A : tuple of integers
# @return an integer
def maxProfit(self, A):
if len(A)<2:
return 0
left = [0]*(1+len(A))
right = [0]*(1+len(A))
currMin = A[0]
for i in range(1,len(A)):
left[i+1] = max(A[i]-currMin,left[i])
... | [
"vaibhav.dodiya143vd@gmail.com"
] | vaibhav.dodiya143vd@gmail.com |
5a386e5db8c1dd224b1fd56600b56125a1bffec9 | 4a20ed85127f353746d284c97975a4ba613e2868 | /code/tflite/run_model_loopstl10.py | cbdc76cc8c38e24c2a6889d1ac3de0088a9c01e0 | [] | no_license | toelt-llc/TOELT-tfrabbit | 371a785a58185f677ba6c86581d41bdf9b8c700c | 8a0e4ea852d9e3bc1bb47729f82a1efd2d20a7ef | refs/heads/main | 2023-08-21T14:00:53.784038 | 2021-10-19T07:55:06 | 2021-10-19T07:55:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,245 | py | #!/usr/bin/env python3
import tensorflow as tf
import pandas as pd
import numpy as np
import pathlib
import pickle
import time
import sys
import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'
#TODO : main function
import matplotlib
matplotlib.use('Agg')
tflite_models_dir = pathlib.Path("./stl10_tflite_models/")
stl10... | [
"arnaud.gucciardi@toelt.ai"
] | arnaud.gucciardi@toelt.ai |
81e77915ca7bad22a571838755dd54d07f637b78 | 97832e4e6faeda1394b2ec6e9be8fc804d8e8f0a | /verilog-grapher/main.py | 56bd98cdeafd97a59b8624f86c75cca43a637864 | [] | no_license | santhosh-raghul/VLSI | 6fa88a884eef10773ce38761282cd94284a62875 | 443d72021bca7e969c5d17fefab080627644ac91 | refs/heads/master | 2023-01-24T00:34:16.795445 | 2020-11-18T13:54:52 | 2020-11-18T13:54:52 | 296,787,424 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 586 | py | import argparse
from verilog_to_graph import verilog_to_graph
from process_graph import process_graph
def main():
parser=argparse.ArgumentParser(description="convert gate level verilog to a visualizable graph")
parser.add_argument('verilog_file',type=str,help="path to the verilog module file containing gate level de... | [
"gssanthoshraghul1010@gmail.com"
] | gssanthoshraghul1010@gmail.com |
539059c3ac72ce24e927d6fd00c4be155cd5e292 | 45cb7f3ac4d4d8befdeb7a0ff1579d6556234555 | /pycon-2021/turtle.py | 57c716acbf7227ba965a7d2c0c9c3e3edef98ac1 | [
"MIT"
] | permissive | aroberge/talks | fbedacdd2c8505042c322b141378a52a1e36ea09 | 4b80ee4f33e733ecfa3c950e269f3bc1377c506a | refs/heads/master | 2021-09-26T04:40:45.876560 | 2021-09-09T23:53:53 | 2021-09-09T23:53:53 | 218,380,055 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 90 | py | # Draw a square
import turtle as t
for i in range(4):
t.forward(100)
t.left(90)
| [
"andre.roberge@gmail.com"
] | andre.roberge@gmail.com |
913b2953e26843a35980d3ead63eb3616a9191da | 5c61990fc1a79f389111a3e449c1fadf65fc1b8c | /wt_purchase_request_extend/models/purchase_request.py | f5a38954182061e03dd2b8c3139dc650163397cb | [] | no_license | brahim94/portnet | 3befb64009fd014b74e01151cc429a613d3d2f11 | f1120ce4806ba2fd7e26132ca918d1ce8b9ad32c | refs/heads/master | 2023-04-14T07:17:40.956207 | 2021-04-27T16:37:48 | 2021-04-27T16:37:48 | 356,211,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,049 | py | # -*- coding: utf-8 -*-
from odoo import models, fields, api, _
from odoo.exceptions import Warning, UserError
_STATES = [
("draft", "Draft"),
("to_be_approve", "Approve"),
("to_approve", "Validated"),
("approved", "Qualified"),
("done", "Closed"),
("rejected", "Refusé"),
("cancelled", "An... | [
"brahim-ayad@hotmail.com"
] | brahim-ayad@hotmail.com |
417daf1c747f5fc931258ed46130720d72852cf6 | 5e47584222df03115a672aa50b104e5637cae0a6 | /asr_vae/models/networks/variational/variational_lstm.py | c317ebe2e7f969944cd16ead068ec91cbf21223c | [] | no_license | bstriner/ctc-process | 8444689ab462696d26ec746693d7f3721f5a6138 | 15b2eeddda0ece40ca31242e37e24a0fc4a0ce53 | refs/heads/master | 2023-02-23T20:02:42.012255 | 2021-01-21T00:16:24 | 2021-01-21T00:16:24 | 331,465,635 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,825 | py | import numpy as np
import tensorflow as tf
from tensorflow.contrib.cudnn_rnn.python.layers.cudnn_rnn import CUDNN_GRU, CUDNN_GRU_PARAMS_PER_LAYER, \
CUDNN_INPUT_LINEAR_MODE, CUDNN_LSTM, CUDNN_LSTM_PARAMS_PER_LAYER, CUDNN_RNN_BIDIRECTION, CUDNN_RNN_RELU, \
CUDNN_RNN_RELU_PARAMS_PER_LAYER, CUDNN_RNN_TANH, CUDNN_R... | [
"bstriner@gmail.com"
] | bstriner@gmail.com |
51b07ea4cce1f767c1f1036d35ce7a4029d6df0c | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /jowQ2aeZut4vGyHyP_16.py | aed6f0c2cd64adca3d3aec4b15d1453381e8ff2e | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 587 | py | """
Given a slope of a line, calculate and return the value of the angle of line
(relative to the y -axis). For example, a horizontal line would be 90 degrees.
### Examples
convert(1) ➞ 45
convert(0) ➞ 90
convert(-1) ➞ 135
### Notes
* All values returned should be in degrees.
* All valu... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
ef634e626382062978a0617650e14dfcc4008268 | 3c83887e165bfde579202b3867e900fdc7ba52f9 | /Ejercicio23.py | 7e1342fae3e87f0979cb3f9f81364a846238dcd2 | [] | no_license | JuanMacias07x/30abril | e545c3c1684d8a72af316ca8f6eb52d9cc628df5 | efbe23ff233de075d201d08057ae064a6f8d678e | refs/heads/main | 2023-04-28T10:52:22.423791 | 2021-04-30T23:42:05 | 2021-04-30T23:42:05 | 362,258,635 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 826 | py | #Programa que lea un número e indique si este es par-positivo, par-negativo, impar-positivo o impar-negativo
#Definir variables
number = int(input("Ingrese un número = "))
if ( number >= 0) and (number % 2 == 0):
print("El número" + " " + str(number) + " " + "es positivo y par." + "\n")
else:
if (number <... | [
"noreply@github.com"
] | noreply@github.com |
37b05a9678e11847749bff59acef0e2d5c802387 | c0ef68e572c27d8cd2cc24a08f2f24e63b45e3be | /security app.py | e2052130b23f775c3a7c3ccde4262cfc3783b669 | [] | no_license | sprinzs123/motion-camera-with-database-and-notification | 9952f9f82b7318e8f9379d1e7264a3446c28de44 | 8af0fb41d8f60d79099db73aba4e7ccf39c5ec0a | refs/heads/master | 2020-07-17T06:28:24.622789 | 2019-09-05T17:38:00 | 2019-09-05T17:38:00 | 205,966,521 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,728 | py | import cv2
import datetime as datetime
import pandas
import smtplib
# create table where we record when movement was present from start to finish
status_list = [None, None]
times = []
df = pandas.DataFrame(columns=["Start", "End"])
# declare what is out first frame is
first_frame = None
video = cv2.VideoCapture(0)
#... | [
"sprinzs351@gmail.com"
] | sprinzs351@gmail.com |
b54f7a1f838bdb2f2668477b3565be3399a8fcdf | d07834620562760dda49a03bbd2da88d7b2b8b6a | /Tutorial/jjj7.py | ebc859601d19c2b6dd11e89b8faf5fb299847415 | [] | no_license | ebylaska/ML_Potentials | d2eb888ed94fa9a36aeabd00fb721a5653e89bda | fd1b8fd5bd18763b000a121d60da5fd920926875 | refs/heads/master | 2022-04-30T09:44:41.269965 | 2022-04-11T16:22:20 | 2022-04-11T16:22:20 | 159,248,856 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,160 | py | import myfeedforward5 as myfeedforward
import math,random
import xyplotter
def plote(plot,xdat,edat,machine,weights):
x1 = []
y = []
y1 = []
dy = 0.1
xmin = 99999.9
xmax = -99999.9
ymin = 99999.9
ymax = -99999.9
for i in range(len(xdat)):
x = xdat[i]
e = edat[i]
e1 = mach... | [
"bylaska@gmail.com"
] | bylaska@gmail.com |
acf597c3d2cbf06dc66442be2a4640a76659f173 | 10388f885dd0a671a39007a53f16d6f3b7e25bcf | /modules/users/models.py | 280c6d1478318dd785d6e08cb98b1c7434d435d4 | [] | no_license | jonatan-castaneda/minihack | 85aae66078710adfbfcbbb25574ae9dc4123c193 | f3b4a29e36ec19f6509a8fdff52420d82a464a72 | refs/heads/master | 2020-12-30T16:46:59.912002 | 2017-05-12T15:58:05 | 2017-05-12T15:58:05 | 91,030,248 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,779 | py | from django.db import models
from django.contrib.auth.models import AbstractBaseUser, BaseUserManager
from django.contrib.auth.models import PermissionsMixin
class UserManager(BaseUserManager, models.Manager):
def _create_user(self, email, password,
is_staff, is_superuser, **extra_fields):
... | [
"jonatan_ian@outlook.com"
] | jonatan_ian@outlook.com |
144bee093a0e15f85d29ad68dcccaa148384f3b6 | ca660d6e66838b002114b52ae9c221fed6b1dac1 | /backend/artworks/migrations/0009_auto_20210417_2331.py | c304c10c54ad98d31cdf05d6fbdcadeb30527ce4 | [
"MIT"
] | permissive | ehsan-g/seestan | b9bf5df6bd964555c5bacdf35adb2ac076d36521 | 97cdaac3799f69bbfe444e8b2deb8cc5585f7b77 | refs/heads/main | 2023-05-22T14:02:57.434829 | 2021-06-12T06:36:08 | 2021-06-12T06:36:08 | 343,962,023 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | # Generated by Django 3.1.7 on 2021-04-17 19:01
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('artworks', '0008_auto_20210417_2326'),
]
operations = [
migrations.AlterField(
model_name='artwork',
name='title',
... | [
"ehsan@say.company"
] | ehsan@say.company |
fdbeadd0109eeff3e1117d28879198a2bd435f01 | 420ce17a31e2685bf3bdff3a827c8a5c0112ab34 | /week1/day5/classExercisesWithFunctions.py | 733e00916b2a375d56022e58e73f98568505a893 | [] | no_license | wsvoboda/digitalcrafts-03-2021 | b384358e328e0a7ed2a9ea2de42dcc3c1c6cbe59 | 815fa44f9507ab7de0850948dd47b71127db9274 | refs/heads/master | 2023-06-02T11:06:13.447798 | 2021-06-16T02:18:00 | 2021-06-16T02:18:00 | 346,116,728 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,175 | py | ### First Exercise - divide a number by 2 and give response ###
def printANumber():
number = input("Give me a number and I will divide it by 2! ")
product = int(number) // 2
return print("The response is %s." % product)
printANumber()
### Second Exercise - ask for 2 strings and print them together ###
d... | [
"whitney.svoboda@gmail.com"
] | whitney.svoboda@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.