blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3e1b8c58e13404a3f8bcab537d108dc8fbba6cf2 | 824f831ce0921b3e364060710c9e531f53e52227 | /Leetcode/Bit_Manipulation/LC-137. Single Number II.py | 1d1cbe18b737d7bc46e48e4b93d6593d40a9734d | [] | no_license | adityakverma/Interview_Prepration | e854ff92c10d05bc2c82566ea797d2ce088de00a | d08a7f728c53943e9a27c33f8e4249633a69d1a6 | refs/heads/master | 2020-04-19T19:36:06.527353 | 2019-06-15T23:02:30 | 2019-06-15T23:02:30 | 168,392,921 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 764 | py |
# Given a non-empty array of integers, every element appears three times except for one, which appears exactly once. Find that single one.
#
# Note:
#
# Your algorithm should have a linear runtime complexity. Could you implement it without using extra memory?
#
# Example 1:
#
# Input: [2,2,3,2]
# Output: 3
... | [
"noreply@github.com"
] | adityakverma.noreply@github.com |
cef4204c3131566960b2cffb00031012c9cfab5a | 0da6b4de78c6142b3629a3fd80ce2b03bea734e6 | /Code_Eval/Moderate/RemoveCharacters/RemoveCharacters.py3 | adbfe74177c6a0f88895d21855ceea6c4b80980c | [
"MIT"
] | permissive | marshallhumble/Coding_Challenges | 4979e19315b6b05ae04805534e6576dbf6d9bfd9 | 90101d308a3342a0eab33c1f4580df549bfc8896 | refs/heads/master | 2021-01-18T02:30:37.740072 | 2016-10-09T16:25:41 | 2016-10-09T16:25:41 | 48,114,974 | 0 | 0 | null | 2016-06-03T14:30:38 | 2015-12-16T14:26:03 | Python | UTF-8 | Python | false | false | 320 | py3 | #!/usr/bin/env python
from sys import argv
with open(argv[1], 'r') as f:
cases = f.read().strip().splitlines()
for item in cases:
text, letters = item.split(',')
text = text.split()
for c in letters:
for t in text:
text[text.index(t)] = t.replace(c, '')
print(' '.join(text))
| [
"humblejm@gmail.com"
] | humblejm@gmail.com |
f815c4084a42ba53c8fd0d521b59be910aa8d39a | fc30a728749d80f80b3ad0ceb36f781fa1c0539c | /venv/bin/chardetect | cf2c8de26a8327efdd326fd9f77595ddbb767524 | [] | no_license | naveenthammu/spark2.0 | d3d2373321d48efcfccfe64d1f77281fed543aa5 | 648bda252f6dead334d2c56f70fc4de7448b4ca7 | refs/heads/main | 2023-01-21T10:44:40.972645 | 2020-12-09T10:28:51 | 2020-12-09T10:28:51 | 319,920,802 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | #!/Users/naveen/PycharmProjects/jarvisAI/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from chardet.cli.chardetect import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"46121222+naveenthammu@users.noreply.github.com"
] | 46121222+naveenthammu@users.noreply.github.com | |
09b8fbbe63d9cdc1b305b139040ceae512662f1c | 6beb400670e95229e6a286ec9caf5b951ac25acc | /users/migrations/0040_auto_20210324_1942.py | f971d8bf84a283a9545adadd88f0d3db92f928f2 | [] | no_license | AlphBeta/MiniProject | dc9d4bc3983787fb49a034b87262fa88577c2b1d | 0bf4383cebd453c4404c6c7a6007ad9ba9831f1f | refs/heads/master | 2023-04-09T17:42:44.005625 | 2021-04-16T16:35:20 | 2021-04-16T16:35:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,161 | py | # Generated by Django 2.2 on 2021-03-24 14:12
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0039_auto_20210323_1226'),
]
operations = [
migrations.AddField(
model_name='medinfo',
name='whr_grade',
... | [
"antonybush95@gmail.com"
] | antonybush95@gmail.com |
66bd838d845ba508452f6e07db34617b1be75c50 | 4c424f63df041c523d0c799d3532f5ca422e8ddb | /setup.py | f5c381bb171834375a5184339edb128f17d852eb | [
"MIT"
] | permissive | tomoeyukishiro/jiphy | cc1971e4530e93e68622b70daa54e9023d8d6591 | 0eee4d578373ca5c7fcdc5c1a13ff1b4d479b216 | refs/heads/master | 2021-01-17T14:36:33.980648 | 2015-05-01T04:24:46 | 2015-05-01T04:24:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,642 | py | #!/usr/bin/env python
import subprocess
import sys
try:
from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
extra_kwargs = {'tests_require': ['pytest', 'mock']}
def finalize_options(self):
TestCommand.finalize_option... | [
"timothy.crosley@gmail.com"
] | timothy.crosley@gmail.com |
353ae098259974c435e2b3d91c5469d6c2c01efd | f08639e673a8b30ba957bf9a034e397aa7e9b68c | /2021.04.12 - Prova 2º Bimestre/Felipe Souza Vieira/a/mainAtendente.py | cf8df2434cd6bcec1c8c77675c8111d3bc3a8e5d | [
"MIT"
] | permissive | Feolips/ADS18A.08-Estrutura-de-Dados | 558b1996b5671cf4d83237695f7a413a95cc5897 | cc4471a9b562706b4782d6adb446a13e4c908c1f | refs/heads/main | 2023-04-19T12:31:12.956562 | 2021-05-13T13:52:13 | 2021-05-13T13:52:13 | 340,669,166 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 147 | py | # 2ª Prova de Estrutura de Dados
# Felipe Souza Vieira
# Gestão de senhas por ordem de chegada
from classes import telaAtendente, todaFila
| [
"feolips@outlook.com"
] | feolips@outlook.com |
de035fce7e28e300c7dca1fc24cc91f1940d09b5 | 78aa1e05e9d20d9d68bd3411f31068ac5cbe2d13 | /car_key_fob_hardware_backdoor/reset_target.py | 65b9aab5e9d173a28e7547580bbf14b9f9132820 | [] | no_license | cloakware-ctf/rhme3-writeups | 7b5a53e6996aa3d02e73a082f5cf4a7ad5c9e3d8 | 6f4e01976621647a8cb2d4417476737e0ed7f9b1 | refs/heads/master | 2020-03-16T21:18:13.894855 | 2019-01-07T03:24:59 | 2019-01-07T03:27:16 | 132,993,579 | 47 | 6 | null | 2019-01-05T20:16:38 | 2018-05-11T05:29:59 | Assembly | UTF-8 | Python | false | false | 2,810 | py | #!/usr/bin/env python3
# deps can be satisfied on Linux with `sudo pip3 install pyftdi`
from pyftdi.gpio import GpioController, GpioException
from time import sleep
import sys
import serial
import bitstring
import hmac
import hashlib
bitstring.bytealigned = True # change the default behaviour
bitbang = GpioCont... | [
"ben.l.gardiner@gmail.com"
] | ben.l.gardiner@gmail.com |
1f6464086f60ef7a26dd93d29b844cd1a8a11f48 | ddac36e3bfdb8e5beb95ce483271d4b1a3e5a80b | /isolate_characteristics.py | df4f6891785be59bf0c29ad17e6ddbdc35af3526 | [] | no_license | arbitton/SLAC | 2cd75b51773b4dcf1391c642924873d5a33a8708 | f1f8dabd50efe5e2e01ea3b43057ff4629d34431 | refs/heads/master | 2021-01-19T20:18:49.823645 | 2010-08-09T19:27:26 | 2010-08-09T19:27:26 | 771,523 | 0 | 2 | null | 2017-10-29T03:20:06 | 2010-07-13T00:36:50 | Python | UTF-8 | Python | false | false | 968 | py | #!/usr/bin/env python
import sys
import re
from invenio.search_engine import get_fieldvalues
line_re = re.compile("(?P<click>[0-9]+)\s(?P<cite>[0-9]+)\s(?P<count>[0-9]+)\s\[(?P<paper_list>[,0-9\s]*)\]")
list_re = re.compile("[\b\]\[,\s]+")
def do_stuff(file):
file_contents = open(file, 'r')
for line in file_... | [
"abitton@pcudssw1508.cern.ch"
] | abitton@pcudssw1508.cern.ch |
c6ac579453969c92f1d9c44fabba1f781b0a2fec | 370d66d174eedb5c2f9640b87f882a04b22e1f6d | /binary_search.py | 29511959e2fc0cf0f27d1a6684245ae5a47cf55c | [] | no_license | atuhe/Day4-andela_labs | 510f5e118cd47891d05b1119da08a5550c99f85e | d49581ab92ae49deba05f396da7c41f7d61cc255 | refs/heads/master | 2021-01-19T22:43:53.915641 | 2017-04-20T12:28:35 | 2017-04-20T12:28:35 | 88,855,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 920 | py | class BinarySearch(list):
def __init__(self, a, b):
self.array = [x for x in range(b, a * b, b)]
self.length = len(self.array)
def search(self, param):
count = 0
print(self.array)
array = self.array
first = 0
last = len(array)
while first < last... | [
"ratuhe60@gmail.com"
] | ratuhe60@gmail.com |
4905ecff70a426deb48f3e7b73ce340172ee9369 | dc2d0aff11ac347b6079d339f04cbe0276968973 | /Ejemplos A concise introduction to programming to python/tetris.py | 9559a2670c03c7f46a10c61dc35179c743d021b0 | [] | no_license | CertifiedErickBaps/Python36 | 418f6b4815cb9fb329957d2fdb3a297ff2d1c3c1 | 447fdf6d1779ef73e4910ac94b5732553c0bb7dd | refs/heads/master | 2021-09-24T00:00:09.207766 | 2017-05-20T23:25:19 | 2017-05-20T23:25:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,066 | py | from turtle import sys, random, time, select, os, termios
width = 10
height = 22
blocks = [ [ (0,0), (0,1), (0,-1), (1,0) ], # T
[ (0,0), (0,1), (0,2), (0,-1) ], # I
[ (0,0), (0,1), (1,1), (-1,0) ], # S
[ (0,0), (0,-1), (1,-1), (-1,0) ], # Z
[ (0,0), (0,1), (... | [
"erickburn01@hotmail.com"
] | erickburn01@hotmail.com |
b3a60ac714fce6264dda9c805bc408569525ff9d | 54f94b581268d301eb4b0bbf0f5c4c7373503252 | /main/admin.py | 0740f7f3cef5bece0662635a644852c32a3dc592 | [] | no_license | Mohammed-Aadil/Locate-restro | cfbe3f3b46e55f114f74f9109097ea8786b6b262 | 32af2e962e7046d9218cf5b87c35ceb387f0db5b | refs/heads/master | 2021-01-01T19:39:17.255997 | 2015-08-02T03:46:52 | 2015-08-02T03:46:52 | 39,996,595 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 91 | py | from django.contrib import admin
from main.models import restro
admin.site.register(restro) | [
"mailtoaadilhanif@gmail.com"
] | mailtoaadilhanif@gmail.com |
68579f64743e8acb46651befbce45f48bb5a6047 | d1ad23e66d6a244066b74dcb371901f6dfcd4b4b | /game1.py | 4e5dff1b169eaaa404c0e9e712b9de800ace6677 | [] | no_license | TobalJackson/qLearning | 51939ca9fa526fb9eca4c297e7a44770d66afc80 | c2aad641469acede3abebb02be16026d9a01e44d | refs/heads/master | 2016-09-06T04:45:11.200944 | 2015-02-20T20:44:26 | 2015-02-20T20:44:26 | 31,048,407 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,093 | py | #!/usr/bin/env python3
import os
choices = ['A', 'B', 'C']
state = True
global score
score = 0
global turns
turns = 2
os.system('clear')
print("Score: 0 \nTotal Score: 0")
def runGame():
global state
global turns
print("\nLives Left: {} ...\nChoose!:".format(turns))
print(choices)
var = input()
... | [
"tobaljackson@gmail.com"
] | tobaljackson@gmail.com |
4fd1eb98bcce9517b2c25ff5338f67ff3f22db0f | f706300ec7f39dfd12155899c92622d72c9ecdd9 | /www/orm.py | 94ddefb7ac0c19ef573de44ce01b6085358ffc74 | [] | no_license | yiluxiangbei000/awesome-website | b83cf064a6ba32f4e423d83ac196133150e23cfa | be1c1b1767a0eccb5273a19f5f2fd2b8a275c53c | refs/heads/master | 2022-11-25T14:27:38.670238 | 2020-08-01T15:29:52 | 2020-08-01T15:29:52 | 282,934,328 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,009 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import asyncio, logging, aiomysql
def log(sql, args=()):
logging.info('SQL: %s' % sql)
async def create_pool(loop, **kw):
logging.info('create database connection pool...')
global __pool
__pool = await aiomysql.create_pool(
host=kw.get('host', 'l... | [
"913311670@qq.com"
] | 913311670@qq.com |
e4eb420afc6fcbe357610f2a37e1565a7e0eefaa | 29b1fc7add9f6a4d8a99def6691285df83d74385 | /switchTest.python/python/surf/xilinx/_AxiSysMonUltraScale.py | 902ede898babfea476dbfd1a9fa9f49f4b54a4f4 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause"
] | permissive | hmbui/switchtest | 3cfbe1288816b82c7fad09ccd36b8f1daebf5526 | 3478afa822547b4ef7fe61c10ad9a83f61062872 | refs/heads/master | 2021-07-08T21:01:57.009949 | 2018-08-16T21:37:03 | 2018-08-16T21:37:03 | 143,228,716 | 0 | 2 | null | 2020-07-22T03:09:34 | 2018-08-02T01:56:55 | Python | UTF-8 | Python | false | false | 16,869 | py | #!/usr/bin/env python
#-----------------------------------------------------------------------------
# Title : PyRogue AXI-Lite System Managment for Xilinx Ultra Scale (Refer to PG185 and UG580)
#-----------------------------------------------------------------------------
# File : AxiSysMonUltraScale.py
# C... | [
"hbui@slac.stanford.edu"
] | hbui@slac.stanford.edu |
459aea7ba8c6dfd791970997b1899a1c826d042c | 36299cb484c42352ab10534f86e94d93fdc4982b | /GetDiskFreeSpace/sendmail_aliyun_demo.py | 6af37a9d59aa89971945384b969554e221228ec6 | [] | no_license | alienwaredream/Python_SendMail | 88102baf558a02011bbcf20f15bb2e1afbbd831c | e4c7b666e33e76bb057ab58618d2efcab6818963 | refs/heads/master | 2020-03-19T13:01:38.897071 | 2018-06-08T02:54:03 | 2018-06-08T02:54:03 | 136,556,410 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,953 | py | #!/usr/bin/env python3
# -*- coding:utf-8 -*-
import smtplib
import email
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
from email.mime.image import MIMEImage
from email.mime.base import MIMEBase
from email.mime.application import MIMEApplication
from email.header import Header
# ... | [
"zhuzhu262526@hotmail.com"
] | zhuzhu262526@hotmail.com |
f01500f48190bf27570e9b3e872617ca36403ad9 | c1bd12405d244c5924a4b069286cd9baf2c63895 | /azure-mgmt-network/azure/mgmt/network/v2018_01_01/models/connection_monitor_result_py3.py | a63c14cdb35d058b59d00b0b3ecc676da158ceb9 | [
"MIT"
] | permissive | lmazuel/azure-sdk-for-python | 972708ad5902778004680b142874582a284a8a7c | b40e0e36cc00a82b7f8ca2fa599b1928240c98b5 | refs/heads/master | 2022-08-16T02:32:14.070707 | 2018-03-29T17:16:15 | 2018-03-29T17:16:15 | 21,287,134 | 1 | 3 | MIT | 2019-10-25T15:56:00 | 2014-06-27T19:40:56 | Python | UTF-8 | Python | false | false | 4,303 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"noreply@github.com"
] | lmazuel.noreply@github.com |
8bed2576e84efdad959c537448c0618eafad6dca | d67a7f1fc0721e1ff9880b824635082238bf7fb5 | /quickstart-external.py | 85815f235c2d2ffc8f94e977075015cdc2287974 | [
"MIT"
] | permissive | isabella232/QuickStart-SendSMS-Python | 544deac45d873f31951d23a4cf9cb318c4b157fd | 4afb9d627aa579bef1f1e7aa77d8aa55f0f6da85 | refs/heads/master | 2022-03-07T11:14:15.849043 | 2017-08-07T13:23:12 | 2017-08-07T13:23:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,711 | py | # quickstart.py
# tested in python 2.7.12
# implements send SMS example in
# https://sdcdocumentation.syniverse.com/index.php/sms/quick-start
#
# this example can be run using the free credits provided with your account.
# uses one non-standard python library, requests described in detail at
# http://docs.python... | [
"noreply@github.com"
] | isabella232.noreply@github.com |
744e25ea2ce4f23d24ec3ab78860ee223dc8ff82 | 5ea379292343f9c597e3b716880fcef5be9f6ce9 | /old/Sensors2TypingTutorGateway_eye_face_wear_11.py | ed5569d5ac138422eacc54785155c1e8ffe216c6 | [] | no_license | markome/Sensor2TypingTutorGateway | 7fd06480bb8c929d367f1575ebbf6b935f68306c | 0f75e28639a82873da53dcbca7984d60dfb361c3 | refs/heads/master | 2021-01-11T21:00:15.246643 | 2017-01-17T13:43:58 | 2017-01-17T13:43:58 | 79,228,305 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,989 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Feb 15 17:19:46 2016
@author: markome
"""
# -*- coding: utf-8 -*-
"""
Created on Tue Feb 16 10:02:19 2016
Facereader and Tobii eye tracker and AndroidWear 2 JS - python app. Creates 2 sockets for incomming dotNET app (from tobii and noldus) messages and forwards them on http... | [
"marko.meza@fe.uni-lj.si"
] | marko.meza@fe.uni-lj.si |
fe8a5ce65f8abb9d4813a5c15a05656484bc8427 | 8871b6aea062ccab28aa66ff16802c44bf9a951b | /spellcheckMain-Unigram(Multi Run).py | 82d78ae28c77a04bc6a932f4f67cc8b3792df775 | [] | no_license | mhtarek/Auto-correction-of-English-to-Bengali-Transliteration-System | ba5442f9a7b839367c88dd3afde4f6c3c933b272 | f89366813bac31ca3845aa653de628abfe37b453 | refs/heads/master | 2020-05-24T02:37:33.331877 | 2019-05-16T15:47:24 | 2019-05-16T15:47:24 | 187,057,183 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,219 | py | from fuzzywuzzy import fuzz
import csv
from pyavrophonetic import avro
import WordDictionary.wordDictionaryCreatorAndFilteredWords as dictionary
import Unigram.uniGramBangla as unigram
from BanglaWordSort.bangla_sort import bangla
import re
from sklearn.metrics import accuracy_score
from paragraphLevel import m... | [
"noreply@github.com"
] | mhtarek.noreply@github.com |
596de5813ab5b9e95e648acb240a8c48db3664af | 91b388a256059c0b0a0b785e90d9ec01fa6e0546 | /back/schemes/req.py | 63d0bd8e02394a734e2380891bcc83542659051a | [] | no_license | Leva-kleva/collateral-assessment | f058b18451098d5752fcbbacaef019fe72355f10 | 8ef1a2b12e2546ee60d5ed1dd556e183425aec0e | refs/heads/master | 2023-08-14T14:03:13.769472 | 2021-09-22T23:29:37 | 2021-09-22T23:29:37 | 409,383,774 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,480 | py | object = {
"type": "object",
"properties": {
"object": {"type": "array"}
},
"required": ["object"]
}
post = {'car': {
"type": "object",
"properties": {
"Engine": {"type": "array"},
"Mileage": {"type": "array"},
... | [
"lev_vladimirovich1999@mail.ru"
] | lev_vladimirovich1999@mail.ru |
2daff4ac8abe0107b92f180d34129ad8b3c1a994 | 6d4ffdc17372c2006f29fcc216e407c28ec69a1c | /binarytree.py | 46bf60986bd9e63a1f25c05c4c9a4564ccb9b25a | [] | no_license | fallaciousreasoning/study | 869abbcb37f9a9046b95190bf22cd9fa40cdbfe0 | 0ff28f47bbf7a86cedb4c40da7e529af31c09dea | refs/heads/master | 2020-03-18T03:55:12.696110 | 2018-05-28T10:55:12 | 2018-05-28T10:55:12 | 134,262,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,459 | py | class Node:
def __init__(self, value):
self.value = value
self.left = None
self.right = None
class BinaryTree:
def __init__(self):
self.root = None
def insert(self, value):
if not self.root:
self.root = Node(value)
at = self.find_parent(self.roo... | [
"jay.harris@outlook.co.nz"
] | jay.harris@outlook.co.nz |
adce0ea723e9e20cd3f7fe094726d6685a5004fe | a1fe5eda46ac5842c0da900300206463103f7d3f | /tests/game/test_level.py | 978935aa24c0c0fe1b12fb9df7f912c19632d300 | [] | no_license | LiveInInformatic/noobhack | c25801c134c398635f0589a16bbc49c58057a241 | ffb4901202ba1c6493edb411856b70c3ec78a53a | refs/heads/master | 2022-01-27T02:58:55.508133 | 2014-09-29T02:34:27 | 2014-09-29T02:34:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,331 | py | import sys
from noobhack.game.mapping import Level
from tests.utils import level_chain
def test_changing_branches_changes_my_branch():
l = Level(1, "main")
l.change_branch_to("mines")
assert l.branch == "mines"
def test_changing_branches_changes_my_childrens_branch():
levels = level_chain(3, "main")
... | [
"sam@ifdown.net"
] | sam@ifdown.net |
d96348b51fa49b45f200a931198785d61b3d84ea | 3de1eea85c194ad21ea36d407aa904674bd6377c | /code/libs/dvbobjects/SQL/db_connect.py | 07066177f4d514d53db8e0709badb2f29ea96183 | [] | no_license | okassov/dvbcastlib | bcd05056824521e528bf84da6d6447502cd97a5b | dc1c0508f2579fedfa8e4a4ebc6eabcc490b2be6 | refs/heads/master | 2022-03-25T18:35:11.688191 | 2019-12-10T11:15:59 | 2019-12-10T11:15:59 | 221,779,727 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | import psycopg2
def connect():
'''This function connect to PSQL DB
and return connection'''
conn = None
try:
print('Connecting to the PostgreSQL database...')
conn = psycopg2.connect(
host="192.168.93.128",
database="DVBCAST",
user="root",
... | [
"34717508+Marik92@users.noreply.github.com"
] | 34717508+Marik92@users.noreply.github.com |
5d25b4e3543485e5e6afdc4794062a2c728c6f08 | d4b03bfa0ea60e68d79621057a456981f8d42020 | /PBD24.py | 6cc9655f7a2323ae79e1c084f3df4ce680636600 | [] | no_license | gitmocho/PBD-24 | a983635180ab088f2dcbfbc33a0570c73b7505ab | e1e24815bdf906f8218ce4006c38ad56e5217c86 | refs/heads/master | 2021-01-10T10:47:24.359377 | 2016-04-02T05:21:32 | 2016-04-02T05:21:32 | 55,277,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 602 | py |
#description :PBD-24 Create a dictionary containing min 15 items/results.
#author :MC
#date :02/04/2014
#version :0.1
#usage :python pyscript.py
#notes :
#python_version :3.4.2
countriesOfTheWorld = {
'Afghanistan':'AFG',
'Aland Islands':'ALA',
'Albania':'ALB',... | [
"mocho@live.co.uk"
] | mocho@live.co.uk |
818bc283f0e50ed4abec2563b11b85feb754fa5d | f7eb63a39e3c32963dc69964fbf3d98381bef9df | /kiosk/kiosk-master/kiosk/kiosk/settings.py | 955fc186210dcf854ab75f8ca52169e0d57ec1c2 | [] | no_license | aadwaysinha/Projects | 0219687d1bef6bb9b24b0f756380f1c5df44fefa | cdf1de1943b325c50bf6ca5c1234d1f8896f9bc4 | refs/heads/master | 2021-05-13T17:07:16.917736 | 2019-04-20T06:02:43 | 2019-04-20T06:02:43 | 116,812,823 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,380 | py | """
Django settings for kiosk project.
Generated by 'django-admin startproject' using Django 2.1.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
# B... | [
"aadwaysinha@gmail.com"
] | aadwaysinha@gmail.com |
48d57c5d4b3f4e5a953cf1e4a48871fbce14de64 | e466e3bb0e20754cf8a56dabdc3760f5b97e1e39 | /api_interface_demo/swagger_server/models/asset_property_double.py | 521f969b85b7538cba67d098a581aad321a408dd | [] | no_license | JoaquinRives/AWS-Coolgreen-Demo1 | fe84d4df7cc1ab7d9e21e001e8706fff2e879270 | 1c92b3a475d9470fe4fda2d72af802429433f578 | refs/heads/main | 2023-08-14T14:29:19.730542 | 2021-10-01T07:47:00 | 2021-10-01T07:47:00 | 385,243,009 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,318 | py | # coding: utf-8
from __future__ import absolute_import
from datetime import date, datetime # noqa: F401
from typing import List, Dict # noqa: F401
from swagger_server.models.base_model_ import Model
from swagger_server import util
class AssetPropertyDouble(Model):
"""NOTE: This class is auto generated by the... | [
"joaquin.rives01@gmail.com"
] | joaquin.rives01@gmail.com |
c110f5e17b898aa4be7be7dc53bd72bcac371767 | 5fefe6ae720287bd56c55c51077a746e4467d48a | /PyLab1/task16Lab1.py | 23f7aefacaf0fe72221f1c786c457bf365303cd7 | [] | no_license | nana0calm/PythonLabs | d55fcf4b235cfc68979d86765b17a32e4f83ee22 | c4b4905e417b912ca27cd8ad2748ba3c0e34558c | refs/heads/master | 2022-09-08T04:43:07.185543 | 2020-05-27T21:19:56 | 2020-05-27T21:19:56 | 267,428,744 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,673 | py | #Напишите скрипт, который на основе списка
#из 16 названий футбольных команд случайным
#образом формирует 4 группы по 4 команды,
#а также выводит на консоль календарь
#всех игр (игры должны проходить по средам,
#раз в 2 недели, начиная с 14 сентября текущего года).
#Даты игр необходимо выводить в формате «14/09/2016, ... | [
"nastyazaybert.00@gmail.com"
] | nastyazaybert.00@gmail.com |
05304047d2f96132cbc17f0cf618c38a71c9507d | 990e80b7209b90740730708561345c119fb53334 | /multiclassLearning.py | a64122291bf07fbc0dbe3c2361f6a2cdddb8515f | [] | no_license | Archith09/Sentiment-Analysis-of-Movie-Reviews | 3ad2d51dd3ecd1393277d1503814d25794f34371 | 6a148802fee156e628c48ced27264e08f72ad183 | refs/heads/master | 2021-01-18T04:00:00.064499 | 2017-03-22T01:43:43 | 2017-03-22T01:43:43 | 85,772,499 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,975 | py | from sklearn.grid_search import GridSearchCV
from pre_processing import PreProcess
from sklearn.multiclass import OneVsRestClassifier
# from sklearn.multiclass import OutputCodeClassifier
from sklearn.svm import LinearSVC
from sklearn import metrics
from sklearn.cross_validation import cross_val_score
preprocess = Pre... | [
"archith06@gmail.com"
] | archith06@gmail.com |
989517ef77bdde1d961aae1210789b7ea48f0091 | 950e7bb0213c3ad2bce96d1b66665534033ca256 | /lab 3/Pattern lab 3/Pattern/online.py | db9a75a982937827cfa50a83d3335952f1588ef7 | [
"Apache-2.0"
] | permissive | nasim-aust/Pattern-Lab-Work | a7aa012605c5fb50e354b0d7ec1eec093369b098 | 5300f837c5e66b260f070d772d56c9646366adb6 | refs/heads/master | 2020-09-09T01:14:41.843530 | 2019-11-12T19:53:46 | 2019-11-12T19:53:46 | 221,299,343 | 9 | 0 | null | null | null | null | UTF-8 | Python | false | false | 73 | py | list1=[1,2,3,4]
list2=[5,6,7,8]
for i in range[0,0] :len(list1)
| [
"nasim5153@gmail.com"
] | nasim5153@gmail.com |
62a5eb1aff48efc4a89b228708687605863779f8 | 567693120ae18bcc7bc3287c99fc9043f93854a4 | /main.py | e029a3abed99dc1c02efcc82dd08697086080b91 | [] | no_license | GitinitSaurabh/BirthdayWishMailer | e6d3e69aff37b1b76beebd92c4a19fc35fdb521a | cc2860a3ff544ed7b15b575cd0151736b262356f | refs/heads/main | 2023-03-01T13:12:18.568869 | 2021-02-10T00:44:55 | 2021-02-10T00:44:55 | 337,576,939 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,000 | py | from datetime import datetime
import pandas as pd
import random
import smtplib
my_email = "your email here"
my_password = "your password here"
today = (datetime.now().month, datetime.now().day)
data = pd.read_csv("birthdays.csv")
birthday_dict = {(data_row["month"], data_row["day"]): data_row for (index, data_row) i... | [
"saurabh160196@gmail.com"
] | saurabh160196@gmail.com |
7a7b81b0c29bf297af774fa02c2b6c3bba8c4309 | c58e8c29181c88257d28db4783463d55292220ef | /DBZbeall.py | 1c204aa0e910d478548f0a799393bd4d0304ba42 | [] | no_license | HectorMontillo/DBZ---Beat-m-all | 02b132a5084d0544f17f759cd205ea7b611e18c4 | 4f1ac878dabfdfd4b49cb516e7d888d461bf86e1 | refs/heads/master | 2020-03-16T17:26:09.707902 | 2018-05-10T03:01:56 | 2018-05-10T03:01:56 | 132,832,154 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 119 | py | import pygame as pg
from main import main
import sys
if __name__=="__main__":
main()
pg.quit()
sys.exit()
| [
"hector.montillo@utp.edu.co"
] | hector.montillo@utp.edu.co |
afe07b82e62a24bacb50ca14087ea9a8defc583b | d9d979e9d58403a99411f0f58631558fd37bafc9 | /booking_details.py | 5b90f10a357db94be3fe2b759d3ee52001ec8544 | [] | no_license | sole1907/echo_bot | d46604287eaa99bc10c6b7dc1020fe5386f5f05f | e8f2b1e5c4d40be0b9232a9d67b79fbc2d26db56 | refs/heads/master | 2021-03-01T23:47:43.608686 | 2020-03-13T07:24:10 | 2020-03-13T07:24:10 | 245,822,009 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 532 | py | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
class BookingDetails:
def __init__(
self,
destination: str = None,
origin: str = None,
travel_date: str = None,
unsupported_airports=None,
):
if unsupported_airport... | [
"ayansola_akanmu@mastercard.com"
] | ayansola_akanmu@mastercard.com |
142a23c9264567b5956634eb2867302514fcb259 | dafaa64cf49c76ff00ef86d77f162f98279c0bc6 | /chef/__init__.py | 7cf348a3340f5d4020ef73ff36277b731ee84f00 | [] | no_license | SeanOC/pychef | 93c08992d4a85b3002348aa588cf5e460e69402a | bc1b39586f567a5539b92570c4d38ceb02b23b6e | refs/heads/master | 2021-01-21T01:16:02.079784 | 2011-01-30T16:57:37 | 2011-01-30T16:57:37 | 1,309,387 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 273 | py | # Copyright (c) 2010 Noah Kantrowitz <noah@coderanger.net>
from chef.api import ChefAPI, autoconfigure
from chef.data_bag import DataBag, DataBagItem
from chef.exceptions import ChefError
from chef.node import Node
from chef.role import Role
from chef.search import Search
| [
"noah@coderanger.net"
] | noah@coderanger.net |
58b279232104ddc47e84ec90853929111169acc6 | d59fda40f42165f6a872b533e6204a644ed1d002 | /取猫图.py | cb5b2652875d01d7661384310ac9dbf22bfde9fb | [] | no_license | starman1992/web_crawler | ffe4bbf73ec2e3120967dcafe9577cc966ee5c51 | 85157297e0040e55410032858dbfe44134e0a4c6 | refs/heads/master | 2020-07-05T04:14:56.319194 | 2019-09-03T16:52:24 | 2019-09-03T16:52:24 | 202,518,648 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 352 | py | #取猫图
import urllib.request
def savepic(wideth,height):
url = f'http://placekitten.com/g/{wideth*100}/{height*100}'
response = r.urlopen(url)
cat_img = response.read()
with open(f'cat_{wideth*100}_{height*100}.jpg','wb') as f:
f.write(cat_img)
for n in range(1,10):
savepic(n,... | [
"noreply@github.com"
] | starman1992.noreply@github.com |
81ecbc364110aa1f1b8170f906e8232f3493cfb3 | ddafd6b71a745a7b3886afac0035985c6a7b9fa3 | /Course_1_simplest_instruction_vedio/Learn_5-8/hello.py | af76a1ebca6798c19605e19f5d2c23fda7a1e5ad | [] | no_license | MissDiPan/Learn_Python | d3acd84462a7ea49cdffae6255d3d1be75345a53 | d326706afcf9c6752ad2426a9d11603fb549a99a | refs/heads/master | 2022-01-08T15:51:05.275298 | 2021-12-28T16:09:50 | 2021-12-28T16:09:50 | 145,735,942 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 37 | py | def print_hello():
print("hello") | [
"miss.dear.pan@gmail"
] | miss.dear.pan@gmail |
e213472c48d8787a28647887cd8710a30177cada | d956fdc8a7655884c27e28b060c548d4d654884e | /conftest.py | c58b25e85bd74b07de52f0c1a676041213084b20 | [
"Apache-2.0"
] | permissive | HeikKerimov/python_training | 6bd9162d5f2a0783c31c2f54e2988dbac906c8e7 | 4ed62f16a9bd77ee13d1682be4f6f5ee7ab3fb53 | refs/heads/master | 2021-01-25T12:21:18.690338 | 2018-05-05T07:56:33 | 2018-05-05T07:56:33 | 123,468,495 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,737 | py | import pytest
import json
import os
import importlib
import jsonpickle
from fixture.application import Application
from fixture.db import DbFixture
from fixture.orm import ORMFixture
fixture = None
target = None
def load_config(file):
global target
if target is None:
config_file = os.path.join(os.pat... | [
"kerimov225@mail.ru"
] | kerimov225@mail.ru |
bda3d25cdd66b3a5b3375aec754ecb7556a97716 | dcfb3053e8fe225a694882d0d2f7906dd39e13ab | /aspectRatioDetector.py | 52eae8cca966ec3ac1258eb9f8230eb19f2363ff | [] | no_license | RosieCampbell/aspectratio | 2e7bef5df4eaca01d7967156ab8f246ce5afdd9b | 24d8c37d2315b8aa77270cbde6532ce5a43276c2 | refs/heads/master | 2016-09-13T23:41:17.743236 | 2016-05-19T12:41:18 | 2016-05-19T12:41:18 | 59,205,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 463 | py | from scipy import fftpack
import numpy as np
import pylab as py
from PIL import Image
from numpy import array
img = Image.open("rose-wide.png").convert('L')
arr = array(img)
# Take the fourier transform of the image.
F1 = fftpack.fft2(arr)
# Now shift so that low spatial frequencies are in the center.
F2 = fftpack.ff... | [
"rosiekcampbell@gmail.com"
] | rosiekcampbell@gmail.com |
5ee5203e5981eeb531ccf67b22a3da8ef49642b5 | 2417d9f6afe95ba19354c65bfb400556f2eb2e19 | /pixiedust/utils/scalaBridge.py | 40f0eb7f8cd87315ab8edee476df5275a48e2e2a | [
"Apache-2.0"
] | permissive | rakeshnb/pixiedust | 39f1249a867719919441488f085e1f60519dae58 | fb5198c7564589c267147d7bdee1f798e7b361ef | refs/heads/master | 2020-05-23T08:09:42.603871 | 2016-10-07T22:08:10 | 2016-10-07T22:08:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,296 | py | # -------------------------------------------------------------------------------
# Copyright IBM Corp. 2016
#
# 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/licens... | [
"david_taieb@us.ibm.com"
] | david_taieb@us.ibm.com |
e0008f6ef235559eeac6bb474c4f50dc7adbadf7 | 26e475d787fd8ac87ca0a5b2ebd6f0afccf88f7e | /scripts/readPcd.py | 3993a900bc3c16b28e86f4b24bb71843278f7474 | [] | no_license | gusugusu1018/automotive | 76f49dea3fa4220ddc245473757371d2d60f59b0 | 398b53f794b08f23d00bf2e677d6ec74a33cc248 | refs/heads/master | 2020-04-12T01:18:40.042800 | 2018-12-20T13:17:09 | 2018-12-20T13:17:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 119 | py | from open3d import *
if __name__ == "__main__":
pcd = read_point_cloud("../pcd/1.pcd")
draw_geometries([pcd])
| [
"sunahukinn1353@me.com"
] | sunahukinn1353@me.com |
7334c5326540dcca12d32d20eb5561972b13660e | 644940a9c1e0693b257769df066c36fe9a4d47f4 | /code/intervalDetect.py | f300edccff006c82f1638eccf14e48f579b656e4 | [] | no_license | pig6485/MIR-Final | d0d2a6980dfac4b397dbbedcecab84edb4366857 | 2a9b2e52c2eff34e81763a13bf7d1f21e553f2fa | refs/heads/master | 2020-03-21T02:29:25.737732 | 2018-06-21T13:15:39 | 2018-06-21T13:15:39 | 138,001,163 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 674 | py | import numpy as np
import librosa
# from easy to hard
# 3 5 (0.1)
# 2 4 6 8 (0.3)
# 3b 6b 7b (0.5)
# 2b 7 (0.8)
# 5b >8 (1)
interval_template = [0, 0.8, 0.3, 0.5, 0.1, 0.3, 1, 0.1, 0.5, 0.3, 0.5, 0.8, 0.3, 1]
def intervalDetect(notes):
interval = np.diff(notes)
for i in range(len(interval)):
if np.ab... | [
"pig6485@gmail.com"
] | pig6485@gmail.com |
343b3b6be1b464c55ff2f2c1190c190e798abda5 | 062d281432770b9d86f4bad03178cb94178caae3 | /mpPrimes1.4.py | 4f878093c052158034246ff52715978576361d57 | [] | no_license | joshuaellis555/MultiprocessingPrimes | 040fdc84e6ef5fb65b95bc86a0eae5c230812293 | be77d11079177ba8f94837265e6f881a2e052d59 | refs/heads/master | 2020-03-30T14:43:02.623581 | 2018-10-02T23:02:47 | 2018-10-02T23:02:47 | 151,332,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,694 | py | #import math as M
import multiprocessing as mp
import threading
import time
import math
'''
Primes=[2,3,5,7,11,13]
EndPoint=Primes[-1]
iMainPrime=len(Primes)-2
NextMPrimeSqrd=Primes[iMainPrime+1]**2
print('1.5')
while True:
for dummy in range(700):
StartPoint=EndPoint+2
EndPoint+=Primes[iMainPrim... | [
"joshuaellis101@gmail.com"
] | joshuaellis101@gmail.com |
4ed0b8a8f8af97103450f34a9b829a12508d8b59 | cc5e2e568304ced47ff2219770c4ba6255584fa7 | /renameIMG.py | a1c4c906b1ef9587fa101139b5b0af8484b0d262 | [] | no_license | kenigma/python-renIMG | e234481f3310224edd8cb37bdb7e68cae4877882 | 06f9e5f9f6e00f837dc70c658e23a7d0d8d3ef5b | refs/heads/master | 2021-01-19T17:20:30.122166 | 2017-02-19T09:27:26 | 2017-02-19T09:27:26 | 82,448,115 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,532 | py | #!/usr/bin/python
import exifread
from datetime import datetime
import os
import sys
IMG_DATETIME_KEY = 'Image DateTime'
def validate(src_file):
if not os.path.isfile(src_file):
raise Exception("%s not exists." % src_file)
if os.path.islink(src_file):
raise Exception("%s is a symlink." % src_file)
retu... | [
"noreply@github.com"
] | kenigma.noreply@github.com |
97dbca4b2f4001c079940dd5d9b1a219b2d0b32c | 0ec776725aaa61f9a51b8c322057b304dad4b0d0 | /devel/lib/python2.7/dist-packages/robmovil_msgs/msg/_Trajectory.py | 0415a86dc294abd6a6ee6d30f8700221cd77aa47 | [] | no_license | jrr1984/robot_diferencial_EKF | 6824e79b6d8d64942f5cc7cc281bb293997fb04c | 105fd9ca0db8390aa5b40ea0ae035eaf3955a804 | refs/heads/master | 2020-03-28T17:54:48.577061 | 2018-09-14T19:45:47 | 2018-09-14T19:45:47 | 148,834,847 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 112 | py | /home/juan/catkin_ws_2/devel/.private/robmovil_msgs/lib/python2.7/dist-packages/robmovil_msgs/msg/_Trajectory.py | [
"juanreto@gmail.com"
] | juanreto@gmail.com |
2b6ac48ad0bd7660ab1a795018c68dce0e129311 | bda459a42028eb9d53225bc4d636dd620f026b4b | /linkedlist/linkedlist.py | ca20b8df94eef1f353695b79d86449b71517c3cd | [] | no_license | iamanx17/dslearn | 3561ce78c160929fac084fecfaaa813cfc1dbb5d | ea64451c33b455838303c61d0ede0f53e8bf8e74 | refs/heads/main | 2023-06-16T03:33:41.871844 | 2021-07-16T08:34:14 | 2021-07-16T08:34:14 | 354,756,241 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 586 | py | class Node:
def __init__(self, data):
self.data=data
self.next=None
def takeinput():
inputlist=[int(ele) for ele in input().split()]
head=None
tail=None
for currdata in inputlist:
if currdata==-1:
break
newnode=Node(currdata)
if head is None:... | [
"pranj.17am@gmail.com"
] | pranj.17am@gmail.com |
02bb8f97744eeb371f7ece14abb8f13ff3c0ae7d | df97ef06f3e72df0d8d068435abc31e0e5b26b2a | /main/migrations/0006_auto_20200406_1512.py | 092380ad7a4bbcb05f08b335d3f754eaf25c948b | [] | no_license | fer0m/youtube_dowloader | ff41821e24d3bdca1f1435a717818cf25b617a59 | 4886772d6a9175459ec14880092d9ea61adfe194 | refs/heads/master | 2022-06-05T08:03:06.900183 | 2020-05-02T08:50:49 | 2020-05-02T08:50:49 | 260,642,544 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 432 | py | # Generated by Django 3.0.5 on 2020-04-06 15:12
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0005_auto_20200406_1458'),
]
operations = [
migrations.AlterField(
model_name='post',
name='file_video',
... | [
"antsin93@gmail.com"
] | antsin93@gmail.com |
60a9ff763ffdaa302a268fe02b4a72f9207aceac | 601ac0c9f7138b3e506c0511d4a3e7f60a499305 | /src/pykeen/datasets/wikidata5m.py | dd111388f66e68ebd96f0e31b583d57f9baa1897 | [
"MIT"
] | permissive | cdpierse/pykeen | 9aa551adc05c9e609353d473db1d3da1b92f4ab0 | e8225c066b56bcdd3180ba895ce3e153808e7e38 | refs/heads/master | 2023-09-02T06:30:25.849873 | 2021-11-09T17:32:15 | 2021-11-09T17:32:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,080 | py | # -*- coding: utf-8 -*-
"""The Wikidata5m dataset from [wang2019]_.
Wikidata5m is a million-scale knowledge graph dataset with aligned corpus.
This dataset integrates the Wikidata knowledge graph and Wikipedia pages.
Each entity in Wikidata5m is described by a corresponding Wikipedia page,
which enables the evaluatio... | [
"noreply@github.com"
] | cdpierse.noreply@github.com |
89a118a5de9eb5ca4bbf945e6591cac91039424b | 9936c928667f8e5503997585bfcd4d88e7894480 | /RaspberryPi_Pico/test/test.py | e79baaecff9e15117fe0f7eec892e050404c181b | [
"MIT"
] | permissive | DelinLi/Phenotyping | 3758eb6bdfa45ef35196c8b148874f666d6b1921 | ad9af5007e03e10fba4f8db69219a7fe07fe1895 | refs/heads/master | 2023-04-08T09:03:15.052636 | 2023-04-03T07:42:54 | 2023-04-03T07:42:54 | 141,260,708 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 680 | py | import alarm
import time
import board
from adafruit_onewire.bus import OneWireBus
from adafruit_ds18x20 import DS18X20
import busio
import adafruit_tsl2561
import adafruit_dht
import digitalio
import adafruit_ds3231
import bitbangio
from analogio import AnalogIn
led = digitalio.DigitalInOut(board.LED)
led.direction ... | [
"delin.bio@gmail.com"
] | delin.bio@gmail.com |
0ed74f868dc846148625d61c313c8c1e7d63ef03 | 1b8444aa0413ad9202368af148be3e28490cef13 | /setup.py | 3523bd064169aca8bbe01fe9a9373d1197a89d5b | [
"MIT"
] | permissive | entvia/whenareyou | 371f6bbf408074d07eaaa39366f6223fa2ca5df5 | 46c0b9358b91ef6744fd75b50a21568a7c4cadb7 | refs/heads/master | 2020-03-17T06:34:51.946173 | 2018-05-14T13:56:50 | 2018-05-14T13:56:50 | 133,361,223 | 0 | 0 | MIT | 2018-05-14T13:56:51 | 2018-05-14T13:00:41 | Python | UTF-8 | Python | false | false | 635 | py | #!/usr/bin/env python3
from setuptools import find_packages, setup
with open('requirements.txt') as requirements:
required = requirements.read().splitlines()
with open('README.rst') as readme:
long_description = readme.read()
setup(
name='whenareyou',
version='0.3.2',
description='Gets the tim... | [
"lasse.schuirmann@gmail.com"
] | lasse.schuirmann@gmail.com |
409dcd964d8baa18a299660ccebd1167402d65d9 | af9e369879aaceea92a400605679dc97a949f519 | /api_tests/nodes/views/test_view_only_query_parameter.py | 0d7055f3e4f8553b7acfe384875776443f02d27d | [
"MIT",
"BSD-3-Clause",
"Apache-2.0"
] | permissive | ubiquitypress/osf.io | 7c3735ab70c7a2b56ce4ae7a266601440cebed74 | c032511c27a8d6c145e8cc4603a59f301568499b | refs/heads/develop | 2020-12-13T18:26:41.678556 | 2016-02-22T22:46:06 | 2016-02-22T23:13:47 | 48,805,847 | 0 | 1 | null | 2015-12-30T15:05:08 | 2015-12-30T15:05:07 | null | UTF-8 | Python | false | false | 10,392 | py | from nose.tools import * # flake8: noqa
from website.util import permissions
from api.base.settings.defaults import API_BASE
from tests.base import ApiTestCase
from tests.factories import ProjectFactory
from tests.factories import AuthUserFactory
from tests.factories import PrivateLinkFactory
from website.models imp... | [
"bgeiger@pobox.com"
] | bgeiger@pobox.com |
6c70d30ae19fe565783bf2d6103378583e077d46 | f87bcf6af65e0642d71507b8bf52f1983daa013c | /mindstorms.py | e077746dbbbdf912c9383884dcf7787309420e5c | [] | no_license | Akshit94/PythonProjects | 80d7b22bac9b39b5c798ece82827a23d04961c44 | dc29881fe00fde6da185fc7487c0fcedd3381a6f | refs/heads/master | 2021-05-01T17:15:39.889015 | 2017-01-21T06:27:06 | 2017-01-21T06:27:06 | 79,422,990 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,075 | py | import turtle
def draw_art():
# this line creates a new windows for our turtle to work on.
window = turtle.Screen()
# sets the window's background color to red.
window.bgcolor("red")
# here "turtle" is the atual thing that moves around and draws stuff
# on the computer for us.
# turtle.Turt... | [
"akshit.jain94@gmail.com"
] | akshit.jain94@gmail.com |
b500eab6bba9162aabe1fe171d1a7803115f717c | b4f0d86b9ad95038f058cbadda2bca797f0a016c | /kakebo/kakebo/dataccess.py | a9c14f12aa58233651885b09ae0279cfa37a6700 | [] | no_license | MARALOGON/repaso_web_flask_js | 762cb37606478caf5fa0d6664bbb6d13b0b461dd | a88c27d6e2717555c64a6491e0ef6760b78c3d59 | refs/heads/main | 2023-06-12T10:34:03.572807 | 2021-07-05T07:18:43 | 2021-07-05T07:18:43 | 375,792,744 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,481 | py | import sqlite3
class DBmanager():
def __toDict__(self, cur): # __toDict__ lo que hace es generar un resultado que es una lista y añadir los registos, va a devolver una lista con un unico registro
#Obtengo los datos de la consulta
claves = cur.description #Creo la variable claves para que contenga ... | [
"marcosalonso@MacBook-Pro-de-Marcos.local"
] | marcosalonso@MacBook-Pro-de-Marcos.local |
23626047fb1346a7b1f5d121d74e0209be82ae8d | a197bcd558447be9356e419eadf21df493762903 | /Tutorial_2.py | 15de5bef37393eb7d0e482173b9dfea653ba0b1e | [] | no_license | marcy3ait/aero-bemt | adbea465f09db57ac0515492de4b00770f34e1bd | 31095ff0307a5b82f13cfe8b11d8cf9377dd2ed0 | refs/heads/master | 2023-08-23T15:49:11.884584 | 2021-10-16T22:16:58 | 2021-10-16T22:16:58 | 342,839,490 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 860 | py | #%% [markdown]
# ## Atividade 06
#
# Plotar o gráfico de coeficiente tração por FM considerando os paramentros
#Dados:
#
#$C_{l\alpha}$ = 5.9
#
#$\sigma = 0.1$
#
# Cd0 = 0.01
#
# d1 = 0.025
#
# d2 = 0.65
#
#$ C_{treq} $ variando de 0.001 a 0.01
#
# $\theta_{tw}$ = \[0°, -5°, -10°, -15°, -20°, -25°]
#
#%%
import aerobem... | [
"39223917+marcy3ait@users.noreply.github.com"
] | 39223917+marcy3ait@users.noreply.github.com |
9ad35780007bb37dbfa5951a1df8e08fa152e1c3 | f0da7ad429b9a8820359bd51eee5d31e51cc1d77 | /env/lib/python3.6/encodings/hex_codec.py | 42dc75ae25ec9a12570c48fbec25cb21d7127059 | [] | no_license | DavidNganga/bag | e190ae1a2d33439394859c03456a19676c85be36 | eb67ba9b62a99dc41bcff8aae267541f46023800 | refs/heads/master | 2020-05-03T15:12:17.909935 | 2019-05-04T05:36:25 | 2019-05-04T05:36:25 | 178,699,714 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 70 | py | /home/david/.pyenv/versions/3.6.5/lib/python3.6/encodings/hex_codec.py | [
"ngashiedavid@gmail.com"
] | ngashiedavid@gmail.com |
f6c11cf14d64b201675cb7a703529b8803adf02f | 772593e07d763754b06999b94d183f9eb31ced8f | /pdfmerger.py | c55cc4c70a0d91586f2a92783af4ffc922f56da2 | [] | no_license | amannairDL/junk-cookbook | 7e11796181d4385a8411f6e6b50f238148c85e22 | 35f73b17ae3d70655474f890db4f1ccd84a608ec | refs/heads/main | 2023-02-22T04:19:17.706472 | 2021-01-14T13:50:32 | 2021-01-14T13:50:32 | 329,622,631 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Sep 3 10:47:16 2020
@author: Aman.Sivaprasad
"""
from PyPDF2 import PdfFileMerger
pdfs = ['aman 10th and 12th.pdf', 'aman_srm marksheets (1).pdf']
merger = PdfFileMerger()
for pdf in pdfs:
merger.append(pdf)
merger.write(r"C:\Users\Aman.Sivaprasad\On... | [
"noreply@github.com"
] | amannairDL.noreply@github.com |
c67a3e11e19eeaa5fd04cb863ccc3d6632d20b4b | e452aba0313c63d01f7aae34cb8783f254f6870b | /Scrapy/scrapy/monprojettest/monprojettest/spiders/leboncoin.py | 08e45b88f9436f397e19f5458ac2e2c007b36252 | [] | no_license | Taysonho/OUAP-4314 | 207667097e23f0ed742cb8d8c08071916bdda4c4 | 6d9f211e10cc60c0e1d747325d90e6fa62c7e139 | refs/heads/master | 2021-04-06T15:38:49.132356 | 2018-05-05T06:40:23 | 2018-05-05T06:40:23 | 124,361,583 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 227 | py | # -*- coding: utf-8 -*-
import scrapy
class LeboncoinSpider(scrapy.Spider):
name = 'leboncoin'
allowed_domains = ['leboncoin.fr']
start_urls = ['http://leboncoin.fr/']
def parse(self, response):
pass
| [
"tay-son.ho@edu.esiee.fr"
] | tay-son.ho@edu.esiee.fr |
3e54d02cd57b6507ea7cff0fee53106806668e30 | 778d4d6e10583d51a6e0a3957ba5d88053556150 | /sendEmailTo/send_email.py | 6d1d8ba334589ace836a4559e2bf2b24703c43e8 | [] | no_license | cmoralesmani/sendEmailPython | e4c71ffe7cb1cf72fc4691df6e8ebab91709f90a | 48d1695b97d6d66c7169d2c77dba8a071243fa30 | refs/heads/master | 2021-05-14T19:02:33.468126 | 2018-01-16T22:34:46 | 2018-01-16T22:34:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,634 | py |
# import necessary packages
import os
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
from read_contacts import get_contacts
from read_template import read_template
from setup_smtp import get_smtp
def main():
# Path directory
path_dir = os.path.dirname(__file__)
prin... | [
"cmorales@thedataage.com"
] | cmorales@thedataage.com |
f0ab01ade1d77c24f20903412b740cf20293c999 | c009a29b0f7d1c11e2cedff0ac97b8fa9e4900bb | /features/migrations/0005_auto_20190527_2326.py | 5cb80bab269f4c5d77eb01531d37c2a7c6ccf128 | [] | no_license | Code-Institute-Submissions/Django-Issue-Tracker-3 | 3849effde7e82e8b191ccfd055edd366c487333f | 7aed62aece71802106f1beecefe87ce4d9a9956b | refs/heads/master | 2020-06-15T12:55:30.325943 | 2019-07-04T21:39:51 | 2019-07-04T21:39:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.20 on 2019-05-27 22:26
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('features', '0004_auto_20190524_1150'),
]
operations = [
migrations.RenameField(
... | [
"player.c64@gmail.com"
] | player.c64@gmail.com |
b0f97c33a7f36f5bef81575d0d4538488ee2213c | a5092d68261c6d8eba399f67af4fea1a27f69512 | /django-react/bin/pyrsa-priv2pub | 6abd23fb6f44e5bc616c0ea9addf72fb4659ac5f | [
"MIT"
] | permissive | Sagar-svg/Research_Buddy | 643d82db2de70d89e9a535112be5df722e6d6706 | 27520cc8859dd5a071327e0ae6bb402778e79ad0 | refs/heads/main | 2023-08-02T01:38:04.810853 | 2021-09-01T02:36:31 | 2021-09-01T02:36:31 | 388,659,806 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | #!/home/sagar30/djangoApi/DJ_REACT/django-react/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from rsa.util import private_to_public
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(private_to_public())
| [
"thasalsagar30@gmail.com"
] | thasalsagar30@gmail.com | |
3108cf979785c30082ded6081d96410ca92a4acc | 9bb3cb5982a170af001d6e8b235f6d37f84a52a1 | /day1/2.1.ImageClassificationWithPyTorch/scripts/separate_to_folders.py | b56b9321a0d62d9e9ff18c17d48c475ecb573ee1 | [
"MIT"
] | permissive | Azure/Azure-AI-Camp | dfe2922c778750bb6a578416801f2c8ed39b5bed | a0d9399448dab3307c74e6e69c3cee326f43847b | refs/heads/master | 2023-08-15T05:26:18.313410 | 2023-02-03T17:14:29 | 2023-02-03T17:14:29 | 238,554,513 | 14 | 5 | MIT | 2023-07-23T04:44:58 | 2020-02-05T21:43:15 | Jupyter Notebook | UTF-8 | Python | false | false | 1,533 | py | """
Splits the single directory of images randomly into
training and validation folders based on labels for
training ML model for image classification.
"""
import os
import glob
import shutil
import random
import argparse
os.makedirs('data/train/normal', exist_ok=True)
os.makedirs('data/val/normal', exist_ok=True)
os... | [
"michhar@microsoft.com"
] | michhar@microsoft.com |
3dd85555daf1359530cdcbcdf8e7a4a1a078db01 | abc82ef21a2997ef7e713c8b9322a7c359715d7e | /spotify_bot.py | dbaa0b5de35806dfb149801b181b790020507186 | [] | no_license | Raj6695/python_spotify_playlist_automation | 330a5a84b70fd2d18c22bacaddcca6f7afb92441 | a64a5161bff980ee28deefb6a31dc7da7c24de7e | refs/heads/main | 2023-06-16T15:40:39.591442 | 2021-07-19T07:56:04 | 2021-07-19T07:56:04 | 387,383,800 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,598 | py | from spotipy.oauth2 import SpotifyOAuth, SpotifyClientCredentials
from bs4 import BeautifulSoup
import requests
import spotipy
SPOTIPY_CLIENT_ID = "ID"
SPOTIPY_CLIENT_SECRET = "SECRET"
date = input("Which year do you want to travel to? Type the date in this format YYYY-MM-DD: ")
response = requests.get("http... | [
"noreply@github.com"
] | Raj6695.noreply@github.com |
9653439cba0bee5f524f34380d9cb8822f054396 | b22b8680432bed6a962bafda690359ba7436644d | /manipulate.py | e619c3c726133be469e23519fc3ae008688be453 | [] | no_license | bradleyvlr/pythonscripts | b370d0f5ebcb0d68aa6ea27b5d61730c3a0ff8af | 1da882cdc9de2df6e4e3b01a3e39d6a9851368f6 | refs/heads/master | 2021-01-23T22:23:56.566658 | 2018-07-31T23:02:53 | 2018-07-31T23:02:53 | 102,931,490 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,548 | py | #! /usr/bin/python3
#This is a program to search through a file tree and copy or delete files with a certain file extension to a directory
#This will also allow the same thing to be done with command line argument in MB
####### !!!!!!!!!I want to try flags so the syn will be program.py -dc -R DIR <DIR> [arg]
#I think t... | [
"bradleyr@cybercon.net"
] | bradleyr@cybercon.net |
da3c1bb19cf8b55a882ea6b6988160a62adc5695 | 250805e6c5dcafe7ac1b230cc7cf091585e03378 | /Previous_Code/Heroku Test/app.py | 0e49878b0787308e4f1024b56b19cc76562513f6 | [] | no_license | zachalexander/capstone_cunysps | 884ee81706ff2f66859b7c69e216e7561ee81159 | 947a8b927b98bc5e2e203e95e041b77c1ec78d9e | refs/heads/main | 2023-04-22T05:08:01.213488 | 2021-05-19T02:49:39 | 2021-05-19T02:49:39 | 339,902,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,197 | py | import dash
import dash_core_components as dcc
import dash_html_components as html
from dash.dependencies import Input, Output, State
import plotly.express as px
import plotly.graph_objects as go
from plotly.subplots import make_subplots
import pandas as pd
import numpy as np
import math
from modsim import *
#From ht... | [
"alexander.d.zachary@gmail.com"
] | alexander.d.zachary@gmail.com |
54efaa4ffc4bd53f98954c764105f48d60696530 | 40d1b3584beace72127cc56623d220b9b5e058a6 | /discourse/formsAccount.py | 50e69e5815eb7661acf2ecf2c005661de149d0ea | [] | no_license | riyan-eng/Praxis_Academy-Aplikasi_pengumpu_link_kultum_bulan_puasa | 155600ddca4370e562406acba8d4ae31a19dd0d5 | 41bfd625f760c715ea60825f067a9dc1f48a7eee | refs/heads/master | 2023-03-29T15:36:55.929633 | 2021-03-29T17:13:49 | 2021-03-29T17:13:49 | 352,723,995 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 311 | py | from django.forms import ModelForm
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.models import User
from django import forms
class createUser(UserCreationForm):
class Meta:
model = User
fields = ['username', 'email', 'first_name', 'password1', 'password2'] | [
"fbriyant11@gmail.comgit config --global user.email fbriyant11@gmail.com"
] | fbriyant11@gmail.comgit config --global user.email fbriyant11@gmail.com |
a4d707c0297a7f959fd8c80ea3132c82ca170186 | 61a856d931688a49435b3caab4e9d674ca2a32aa | /tests/test_policies.py | bb111cdb3197196db38727d1aa8b5271f2960c84 | [
"Apache-2.0"
] | permissive | kvt0012/NeMo | 3c9803be76c7a2ef8d5cab6995ff1ef058144ffe | 6ad05b45c46edb5d44366bd0703915075f72b4fc | refs/heads/master | 2020-08-14T16:59:18.702254 | 2019-10-14T22:46:48 | 2019-10-14T22:46:48 | 215,203,912 | 1 | 0 | Apache-2.0 | 2019-10-15T04:05:37 | 2019-10-15T04:05:34 | null | UTF-8 | Python | false | false | 974 | py | import unittest
from nemo.utils.lr_policies import SquareAnnealing, CosineAnnealing, \
WarmupAnnealing
from .common_setup import NeMoUnitTest
class TestPolicies(NeMoUnitTest):
def test_square(self):
policy = SquareAnnealing(100)
lr1, lr2, lr3 = (policy(1e-3, x, 0) for x in (0, 10, 20))
... | [
"okuchaiev@nvidia.com"
] | okuchaiev@nvidia.com |
fcc7bea13fa1ad3b89aeeaf83d8070d2dc34cda1 | 269e2ed3b6ba346ead6542e39f6243b1f44897de | /createRandomForest.py | 631c62baaeec1d5b20f826bd8e4920b16a871e2b | [] | no_license | tobincolby/CS6220-Programming3 | cb40a3d5995cddef0950a146a0776ebcec7630be | 60d3a49dee6eb36692383fd3d08149a3a667210e | refs/heads/master | 2020-08-09T05:04:16.411873 | 2019-10-12T03:23:56 | 2019-10-12T03:23:56 | 214,003,795 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 765 | py | import numpy as np
from sklearn.ensemble import RandomForestClassifier
from sklearn.model_selection import GridSearchCV
import pickle
car_file = open("data/car_quality_train.csv")
car_data = np.loadtxt(car_file, delimiter=",")
data_X = car_data[:, :-1]
data_Y = car_data[:, -1]
parameters = {'max_depth': np.arange(2,... | [
""
] | |
db1b84b96f69914398f0ba1ca7b2172817741628 | 75dec6116f56ca2c915c91ae86f54b81f6ea15d8 | /tests/user_config_test.py | 2a469645599c5f4ab99dd9a0398e85c53d31b70f | [
"MIT"
] | permissive | mthomp89/icecube | 20f75793e16e2aaed5d57c7305d2295611749c01 | 4787588c06fd96df88740bd4f2e9f30e59645e60 | refs/heads/main | 2023-08-01T09:13:17.073198 | 2021-09-13T08:52:43 | 2021-09-13T08:52:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,836 | py | import datetime
import os
from pathlib import Path
import pytest
# Local import
from icecube.bin.config import CubeConfig
JSON_CONFIG_DIR = os.path.join(Path(__file__).parent, "resources", "json_config")
def test_load_config():
cube_config = CubeConfig()
cube_config_dict = cube_config.load_config(
o... | [
"arnaud.dupeyrat@iceye.fi"
] | arnaud.dupeyrat@iceye.fi |
d1d3246d975978a4660d760066f2eb9981edc608 | 17ba75d82f7b46a3723d168b060e1d541128c6c0 | /log.py | a5ccbf5f4a592391d5801119d95d9d9f9b760008 | [] | no_license | NImy0718/novel-downloader | b3d101bd52e70a2d2530a5cb3455c9f572af1e5c | c33b4bc493e4fa05828e94e0dbc99725085c8d72 | refs/heads/main | 2023-07-10T06:07:04.530858 | 2021-08-17T00:14:22 | 2021-08-17T00:14:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | import logging
import sys
LEVEL = logging.INFO
def init() -> logging.Logger:
root = logging.getLogger()
root.setLevel(LEVEL)
handler = logging.StreamHandler(sys.stdout)
handler.setLevel(LEVEL)
formatter = logging.Formatter('[%(asctime)s](%(levelname)s): %(message)s')
handler.setFormatter(for... | [
"8900942+yjqiang@users.noreply.github.com"
] | 8900942+yjqiang@users.noreply.github.com |
2aad07bdc47fff733d3242ebb0671c4f5cc1d9df | 4bb7c48f27cbaf11684c1fa66531dac3841d1b7e | /aarhus/roots_tfidf.py | 01ddfdadd8cd91ca82a52a657980784c78571b20 | [
"Apache-2.0"
] | permissive | mikedelong/aarhus | 5a749506ddff8372da8ed5fe9ffd0786ce3e9b43 | 0c0e94fadd65be8428fe3bd2c92928e1b23fc2a1 | refs/heads/master | 2021-01-12T10:13:29.187829 | 2017-08-07T19:52:21 | 2017-08-07T19:52:21 | 76,390,084 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,014 | py | import collections
import json
import logging
import pickle
import sys
import time
import mpld3
import numpy
from matplotlib import pyplot as pyplot
from sklearn import metrics
from sklearn.cluster import KMeans, MiniBatchKMeans
from sklearn.decomposition import TruncatedSVD
from sklearn.feature_extraction.text import... | [
"mikedelong@outlook.com"
] | mikedelong@outlook.com |
3cb8691ea805ecd6dcac881ce7e5fdcfed3dd7eb | 3e28ae35815f0cba65259c550f11ad5baa983904 | /blog/migrations/0001_initial.py | 10de255b159f85e35967f0d32b5633788899cf25 | [] | no_license | areksnk/my-first-blog | 752974aaedea9b87440f3884f14856ff86ca84ba | 64d60e11c98fb9e8788144f530715b919dd2a43b | refs/heads/master | 2020-05-30T06:17:19.747917 | 2019-05-31T10:43:08 | 2019-05-31T10:43:08 | 189,576,577 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,051 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.8 on 2019-05-10 13:26
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
depe... | [
"arkadiusz.szyszka@pinaclsolutions.com"
] | arkadiusz.szyszka@pinaclsolutions.com |
a2c8b9dbb10e984be4bcd8d26a4b42f8e075e491 | fc4551d0811fdfd21887193b0452781a141382f1 | /lecture3/decorator_examples.py | 5508506c778229abe2aff3140f9706d457f0d656 | [] | no_license | bojika/CSCentre_Python | 72921651537f34bdff9818680da3a9c6e3297bd3 | 0f308a0c22d74329b6d8c342554b845e84104500 | refs/heads/master | 2022-01-21T19:20:50.514113 | 2019-03-26T17:12:22 | 2019-03-26T17:12:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,909 | py | import functools
import time
import warnings
def timethis(func=None, *, n_iter=100):
if func is None:
return lambda f: timethis(f, n_iter=n_iter)
@functools.wraps(func)
def inner(*args, **kwargs):
print(func.__name__, end=" ... ")
acc = float("inf")
for i in range(n_iter):... | [
"corwinat@gmail.com"
] | corwinat@gmail.com |
dde9ba5321586c1b720d7ab1dd8858169dc38675 | 8d45d514512f699145873a9c64a849b82e8a2656 | /Stacks&Queues/queues_withDeque.py | 7b8a01cbf78db1932c2f927ef3fa7fc2f6fe9cba | [] | no_license | SatyaChipp/PythonImpls | f2621c52a72249e5c007666dec026c003890d524 | 159ff3c92890c0d1bdec21e72ac6a50461ae5f5e | refs/heads/master | 2020-09-07T18:38:48.247479 | 2019-11-13T02:45:42 | 2019-11-13T02:45:42 | 136,539,652 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Jun 12 17:56:38 2018
@author: Jen
"""
from collections import deque
if __name__ == '__main__':
queue = deque([1, 2, 4, 6])
queue.append(9) ##for enqueuing
queue.append(12)
print(queue)
queue.popleft()#for dequeuing
queue.popleft()
p... | [
"noreply@github.com"
] | SatyaChipp.noreply@github.com |
49a1c6e81d68d3fe379dd000dd670b98edecb3fe | 276ce333da24dbbbfc9885b4397bb1a65e96dc11 | /addons/source-python/plugins/wcs/core/database/thread.py | 96e5e703070bbcb32e4746d64790d0f29cd46a14 | [] | no_license | herlak/WCS | 8b2a558dae2bf68163442aea14df9dab5952f14f | 6081299c40574992cb4cd97a59e3132995084077 | refs/heads/master | 2020-07-02T03:57:16.072881 | 2019-08-13T12:23:38 | 2019-08-13T12:23:38 | 201,409,111 | 1 | 0 | null | 2019-08-09T06:51:32 | 2019-08-09T06:51:31 | null | UTF-8 | Python | false | false | 8,220 | py | # ../wcs/core/database/thread.py
# ============================================================================
# >> IMPORTS
# ============================================================================
# Python Imports
# PyMySQL
from pymysql.err import InterfaceError
from pymysql.err import OperationalError
# Qu... | [
"thapwned@hotmail.com"
] | thapwned@hotmail.com |
75ecce35b2cf17fb97a518738a4b99c3a3a3a551 | 0dc5321f53ba8d385fbe4cc68b2c3ff28db2d748 | /src/DataScience_Project6.py | 361ebde2efffa9231a0f383c74fa0592318ea2c6 | [] | no_license | sandyr97/DataScience_Project6 | a05cf7f9bd23d0c71a620ff6c01c380eef7c5821 | d207a72eb6ad95990158267577403dbeb13bd47c | refs/heads/master | 2020-09-25T15:18:18.670018 | 2019-12-06T22:29:47 | 2019-12-06T22:29:47 | 226,032,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,880 | py | pandas as pd
import numpy as np
import matplotlib.pyplot as plt
df=pd.read_csv("../data/Twitter_volume_FB.csv")
df.head(10)
df.isnull().sum()
df['timestamp'] = pd.to_datetime(df['timestamp'])
print(df.dtypes)
df['day'] = df['timestamp'].dt.day
df['month'] = df['timestamp'].dt.month
df['year'] = df['timestamp'].dt.ye... | [
"rechs97@gmail.com"
] | rechs97@gmail.com |
9543414e9d257ebe3377c2f2038e405d28417bc2 | 95122b52ae1f00a7d2930a275217bd45bd07c24c | /unittest_msp430x2xx.py | 14b3a6a582c91d8176b63ce1510a56c838c44917 | [] | no_license | SaitoYutaka/msp430-Assembler | fbbb062bfb8dfd338d21e54761b59a802ec2c901 | d49c870aa1c1f20ae05c8a132a37d6426b196526 | refs/heads/master | 2020-05-19T15:06:33.156625 | 2011-04-04T13:25:36 | 2011-04-04T13:25:36 | 1,297,091 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,112 | py | import unittest
import msp430x2xx
class TestFunctions(unittest.TestCase):
def setUp(self):
pass
def test_getcode(self):
self.mnemonic = (
("rrc", (1, 0x1000 )) ,
("rrc.b", (1, 0x1040 )) ,
("swpb", (1, 0x1080 )) ,
("rra", (1, 0x1100 )) ,
... | [
"melody.pea@gmail.com"
] | melody.pea@gmail.com |
1081525b20718c558ae7b855202fe7f403650bfd | 4ae2cb9df3a5c82ffe4d311be999e3667245a24d | /askdjango/accounts/models.py | 4c9fd309070889ca485a873b0280385942848718 | [] | no_license | lowelllll/AskDjango | e93ff0a6cfb8a8105589736c86f3987334e4be3a | c8aa0910e1e505e8da217c393279e275e2a0bfcc | refs/heads/master | 2020-03-27T08:29:29.156731 | 2018-09-21T15:35:10 | 2018-09-21T15:35:10 | 146,260,040 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 329 | py | # account/models.py
from django.db import models
from django.conf import settings
from django.contrib.auth.models import User
class Profile(models.Model):
user = models.OneToOneField(settings.AUTH_USER_MODEL) # 좋은 방법
phone_number = models.CharField(max_length=20)
address = models.CharField(max_length=50)... | [
"32219612+lowelllll@users.noreply.github.com"
] | 32219612+lowelllll@users.noreply.github.com |
e66548766cb65f8016bcbe09fd86be83198c7a03 | 1845a3022ae11eccea0e2a177eca540c8b0b1874 | /backend/backend/settings.py | 0a6d26025ad38a75cdb1f2faf668606abff0004b | [] | no_license | looogin/nuxt-django-graphql-example | f89310a20774f54f27c55bdfaa764e6a95b192c2 | cd4f22ab2e3779a886c1a5b3220a854f5ce57225 | refs/heads/master | 2023-05-14T15:45:14.991632 | 2020-03-16T16:48:47 | 2020-03-16T16:48:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,553 | py | """
Django settings for backend project.
Generated by 'django-admin startproject' using Django 2.2.3.
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
fr... | [
"vlzvoice@ya.ru"
] | vlzvoice@ya.ru |
27acb2bfa3bcd96b23f7189d87bd2506602cbb26 | 3e06b430d27f349f6b8013a5389d2a8b908aa0ad | /test/test_resources.py | 6ba68bc0d750aaa4a7062b2b9479011ede40ecf1 | [] | no_license | vivanmig/QGIS | 8d5c38dcaa5886a442508d2e262e43c19eef91e6 | ce515850b4781eced91c378074258d2b23506a3f | refs/heads/master | 2021-08-08T02:27:55.459661 | 2017-11-09T10:23:29 | 2017-11-09T10:23:29 | 102,602,676 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,029 | py | # coding=utf-8
"""Resources test.
.. note:: This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
"""
__author__ = '... | [
"noreply@github.com"
] | vivanmig.noreply@github.com |
42ee0a4f5c27323df56050638cc350e97c1a135f | 0db67bff1f2dcdadecf635ae535add91cb54c4f3 | /PythonBasis/week05/task25.py | c10b2ed687ac7f1e55694b59631c2e09409e381d | [] | no_license | pavelbrnv/Coursera | 713fdb79dbf6fbde405fc991bd67db0cab30da00 | cc568f79229147866ff1df8539cf8ea66dc9ccca | refs/heads/master | 2023-03-07T23:21:09.685318 | 2021-02-22T15:08:27 | 2021-02-22T15:08:27 | 336,600,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 201 | py | inputs = input().split()
inputsLen = len(inputs)
for i in range(0, inputsLen // 2):
temp = inputs[i]
inputs[i] = inputs[inputsLen - i - 1]
inputs[inputsLen - i - 1] = temp
print(*inputs)
| [
"pbaranov@stc-spb.ru"
] | pbaranov@stc-spb.ru |
1f23d7df94af40edea584189a763e1366e0aafc4 | 9d5ae2850f5d74fe9f47055a6e278b70d3a90ebf | /ScraperStrategies/HtmlRetrievers/HtmlRetriever.py | b0d77d4b7255f8016536d8b01f21e4c4be81efd4 | [] | no_license | bje43/PodiumInterview | 4eba47fb3b27d00ec7dfa100b9ce8f6105232506 | b4248cdf8bd7be07fb270152b1450ba6035e7297 | refs/heads/master | 2021-01-19T16:33:32.697870 | 2017-08-23T00:48:24 | 2017-08-23T00:48:24 | 100,838,936 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 454 | py | import requests
from bs4 import BeautifulSoup
from ScraperStrategies.HtmlRetrievers.HtmlRetrieverBase import HtmlRetrieverBase
class HtmlRetriever(HtmlRetrieverBase):
def retrieve_page_content(self, web_url):
try:
page = requests.get(web_url)
page_content = BeautifulSoup(page.cont... | [
"bentzjedwards@yahoo.com"
] | bentzjedwards@yahoo.com |
f19ea99f2120f246069b26e0cc42f0c7eda2b2b8 | 63da0c2b37595f1cda5900405fa9fb8b14169909 | /0x04-python-more_data_structures/dev/5-main.py | a63b9c221c48c0b9de472df2a00c5ebd53b75f2b | [
"MIT"
] | permissive | johncoleman83/bootcampschool-higher_level_programming | 113800b199ff493beb1c734f9fbf4660624f94b8 | a83c3b7092cfe893c87e495f8d8eec9228c9b808 | refs/heads/master | 2022-11-19T13:37:50.305680 | 2020-07-24T04:19:39 | 2020-07-24T04:19:39 | 89,968,863 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 218 | py | #!/usr/bin/python3
number_keys = __import__('5-number_keys').number_keys
my_dict = { 'language': "C", 'number': 13, 'track': "Low level" }
nb_keys = number_keys(my_dict)
print("Number of keys: {:d}".format(nb_keys))
| [
"lcsw@davidjohncoleman.com"
] | lcsw@davidjohncoleman.com |
1365c5f14b6cbcb3daef01803cf7b5b140b87c64 | fbbe424559f64e9a94116a07eaaa555a01b0a7bb | /Opencv_pil/source36/numpy/lib/arraysetops.py | fd64ecbd64b130b6253b4ad370bccf39e5849256 | [
"MIT",
"GPL-3.0-or-later",
"BSD-3-Clause",
"GCC-exception-3.1",
"Apache-2.0",
"BSD-3-Clause-Open-MPI",
"BSD-2-Clause",
"Python-2.0",
"GPL-3.0-only",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ryfeus/lambda-packs | 6544adb4dec19b8e71d75c24d8ed789b785b0369 | cabf6e4f1970dc14302f87414f170de19944bac2 | refs/heads/master | 2022-12-07T16:18:52.475504 | 2022-11-29T13:35:35 | 2022-11-29T13:35:35 | 71,386,735 | 1,283 | 263 | MIT | 2022-11-26T05:02:14 | 2016-10-19T18:22:39 | Python | UTF-8 | Python | false | false | 24,049 | py | """
Set operations for arrays based on sorting.
:Contains:
unique,
isin,
ediff1d,
intersect1d,
setxor1d,
in1d,
union1d,
setdiff1d
:Notes:
For floating point arrays, inaccurate results may appear due to usual round-off
and floating point comparison issues.
Speed could be gained in some operations by ... | [
"ryfeus@gmail.com"
] | ryfeus@gmail.com |
8288c6b92f4dc334943901a405c4730207676272 | 0879b7f63a6299087e9f2498de8aa3151439520b | /tournament.py | 5c9af9591d5a7812a06b42c73329f8189ae72190 | [] | no_license | tomrhoads/Swiss-Style-Tournament | 00f344bc833271bce278f77131647c334b4718f5 | 1655ef28e1264c2bf6d47dd57cf984e70a7cad3a | refs/heads/master | 2016-09-13T18:40:39.416191 | 2016-05-13T04:05:05 | 2016-05-13T04:05:05 | 58,670,470 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,013 | py | #!/usr/bin/env python
#
# tournament.py -- implementation of a Swiss-system tournament
#
import psycopg2
def connect():
"""Connect to the PostgreSQL database. Returns a database connection."""
return psycopg2.connect("dbname=tournament")
def deleteMatches():
"""Remove all the match reco... | [
"terhoads1@gmail.com"
] | terhoads1@gmail.com |
9adf946312bd44d558482bdd7ab94fa152e7bbdd | f4b263dc58c70c66c92613c0db3247d3f8d66605 | /tfdqn.py | e3c3cc2c8d7eeb714831d31b4958ecdd90d2bb9c | [] | no_license | AngelLittleChaochao/cartpole | 93a4e4eb6c13d3fe6d88694dd4b357d6e1d91991 | 03b0abdde2b3ae58cd77ec393e072c3df3222feb | refs/heads/master | 2020-03-25T17:30:42.076678 | 2018-08-28T06:58:06 | 2018-08-28T06:58:06 | 143,981,176 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,548 | py | # Cartpole DQN
# Deep Q-Learning Network with Keras and OpenAI Gym, based on Keon Kim's code](https://github.com/keon/deep-q-learning/blob/master/dqn.py).
import random
import gym
import numpy as np
from collections import deque
from keras.models import Sequential
from keras.layers import Dense
from keras.optimizers ... | [
"chtang@microsoft.com"
] | chtang@microsoft.com |
04bec9d1f2c2b1b044facd42d45daf9ce836dce2 | 646ee98e184fd8aa38ba6c3f92455484ba159a24 | /commitizen/out.py | 268f02e29f84c4418923c7ca152d9a5d9f6887bd | [
"MIT"
] | permissive | SHAQ522/commitizen | 499e8fa5d6bd9e33c5d53fedd1ae992564c20d74 | c51a521d8117eb7778b9bb64190ef144c600305e | refs/heads/master | 2023-01-31T06:25:41.392565 | 2020-12-10T07:35:02 | 2020-12-10T07:35:02 | 321,911,238 | 0 | 0 | MIT | 2020-12-16T08:35:13 | 2020-12-16T08:03:11 | null | UTF-8 | Python | false | false | 552 | py | import sys
from termcolor import colored
def write(value: str, *args):
"""Intended to be used when value is multiline."""
print(value, *args)
def line(value: str, *args, **kwargs):
"""Wrapper in case I want to do something different later."""
print(value, *args, **kwargs)
def error(value: str):
... | [
"santiwilly@gmail.com"
] | santiwilly@gmail.com |
e295eca96113a81568a2bb8075589226975c7511 | 206a5cf8f243016b6ad9cf5183622d1f97128003 | /construction/project-master/project/urls.py | d9af7a88a31d5f0577beb9afcefc8fd3c10c9eba | [] | no_license | krishabista/project | cd70da033c42f8fc925b0cbe13c70f0faf904245 | 845452ec146f9fac32ff729534dacf2c1570856a | refs/heads/main | 2022-12-24T22:35:30.735418 | 2020-10-12T12:02:29 | 2020-10-12T12:02:29 | 303,381,931 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,219 | py | from django.urls import include, path
from django.contrib import admin
from mains.views import HomeView, about_view, privacy_policy_view, ContactView, PurchaseHistoryView
from django.conf import settings
from django.conf.urls.static import static
admin.site.site_header = "FOUR SQUARE RENTAL"
admin.site.site_title = "... | [
"krishabista47@gmail.com"
] | krishabista47@gmail.com |
0a877cff2fd1d8bb9fc7016528c63e51d6f188fb | c46e923f4bde5d94c5f057193dfd63769d8dc83e | /utils.py | e9b0882eef04650e167bd09534c3781254ddccbf | [] | no_license | tkolanka/ece285_mlip_projectA | 8ec7cb354e3ac5c5b9f3527e5cee98d3cee0fe1c | 3e6f89f4be8a0e4ddeaca7c6593c4d9eca6f66c5 | refs/heads/master | 2020-09-28T13:34:13.826420 | 2019-12-10T07:12:16 | 2019-12-10T07:12:16 | 226,788,649 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,205 | py | '''
This file contains some generic functions/classes that are needed in the overall implementation. It contains definitions of the accuracy function needed during training and validation. It also has a function to compute the actual length of a caption.
'''
import torch
import torchvision as tv
from PIL import Image
... | [
"noreply@github.com"
] | tkolanka.noreply@github.com |
55983a2582275b16b108623cdfb9dc73b1b62fc1 | 836cda1852a331c3b98e768a06f5cdfcb1f4c385 | /python-service/wsgi.py | 4e67044b0381ebb52a4800ea9bc6dc2a42d9ce06 | [] | no_license | guifonte/test-microservices-sockets | f4081c61e147b0238c8da9148b66ce1a7dd2429b | b8083647789103bcf2451a4b8d739a554eb2e9e3 | refs/heads/master | 2022-12-15T05:00:30.181165 | 2019-10-11T04:23:03 | 2019-10-11T04:23:03 | 212,253,828 | 1 | 0 | null | 2022-12-11T07:54:29 | 2019-10-02T04:16:44 | JavaScript | UTF-8 | Python | false | false | 67 | py | from pyservice import app
if __name__ == "__main__":
app.run() | [
"guilhermenishifonte@gmail.com"
] | guilhermenishifonte@gmail.com |
b6a066f24958cc021788f917a16af6e9e2d2da34 | 483ba045a505b5ffd76f5b999da76ccfd99bb413 | /queue_moddeling_kolmogorov.py | 10a52ea8da214f50336afad32ebe7dcc8a79903c | [] | no_license | MaximKrokhin/QueueSystemKolmogorov | 75789f5b3dc7be2029183712399208bf4d463825 | 46c21ddd1a85c90c187d35782e177e63047d78ce | refs/heads/master | 2022-07-04T10:39:19.210766 | 2020-05-17T12:43:09 | 2020-05-17T12:43:09 | 264,662,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,183 | py | import numpy as np
import matplotlib.pyplot as plt
from matplotlib.ticker import (AutoMinorLocator, MultipleLocator)
import math
import time
start = time.time()
def rungeKutta(f, t0, p0, tEnd, tau):
def increment(f, t, p, tau):# поиск приближённого решения методом Рунге—Кутта—Фельберга.
k1 = ... | [
"noreply@github.com"
] | MaximKrokhin.noreply@github.com |
6b529ccfff62d136ae9de177963cf1a90ba015e5 | c42ba06697527e2e5606c40bc3093c9af87a0145 | /good_logic/LoopForeachList.py | 8d0537ade2123ff209eebada46773522098aba90 | [
"Apache-2.0"
] | permissive | YellowTulipShow/PythonScripts | 2da657e6a0dcee511a4354d9b6072f22deb8eb8a | 09bf756f08e6b66fe3b13206c3b972c3434e53ee | refs/heads/master | 2020-04-17T17:12:12.297092 | 2020-03-04T08:03:21 | 2020-03-04T08:03:21 | 166,773,201 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 933 | py | # coding: UTF-8
# 不使用递归的情况下, 遍历数组/嵌套数组的每一个值
mylist = [[1, 2], 3, 4, 5, 6, [7, 8, 9, [10, 11, 12, 13, 14, [15, 16, 17], 18], 19, 20], [[21, 22, 23], 24, 25], 26]
print(mylist)
resultList = []
while len(mylist) > 0:
if 'list' in str(type(mylist[0])):
while mylist[0]:
mylist.append(mylist[0].pop... | [
"1426689530@qq.com"
] | 1426689530@qq.com |
9bb4dae388eae2750af19fb98bb7d4aecd259a20 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /gaussiana/ch3_2020_07_30_00_25_05_729510.py | ec39c5a645e6d8d5a2b84e50902a5bbc8cdb127d | [] | 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 | 114 | py | import math
def calcula_gaussiana(x,u,si):
y = [1/si*((2*math.pi)**1/2)]**[(-0.5)*((x-u)/si)**2]
return y | [
"you@example.com"
] | you@example.com |
1c05cfe6f5778998e9c4460b7d8b6602fdd8c6ca | 19f10d205c7ffa59fa0b6cef089ecf8b0b22431f | /app.py | 05736221b9a60f9c2a075d34c0f335f3961325cc | [
"BSD-2-Clause"
] | permissive | jzellman/keras | 247c75a3fce29ddb8c2393de668919bf5cb11277 | 9a2b4e1bfcebb1c72d0fd0b509fafd263d09aa29 | refs/heads/master | 2021-03-13T00:01:39.391344 | 2014-01-01T21:21:12 | 2014-01-01T21:21:12 | 13,747,165 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 17,362 | py | import csv
from collections import defaultdict
from itertools import groupby
from StringIO import StringIO
from datetime import datetime
import web
from http_basic import basic_auth
import utils
import gcal
import config
from config import db
def fmt_date(date, date2):
return "{} - {}".format(date.strftime('%... | [
"jzellman@gmail.com"
] | jzellman@gmail.com |
b5b9744aad6e7b4981d56fd09b119bfe1cfcca3f | 2198905527766aba5cd71f7854720c22eb2cf647 | /1.py | 29ea96d27f6b3027c9bad312863690b1a3fed13e | [] | no_license | jiuwangshiyan/1807 | 5273e38bf688e4015fc9327695f76e9461914304 | 343b3fc4642a4a610607b8f7107fe39b5a5f011b | refs/heads/master | 2020-03-22T11:14:28.055624 | 2018-07-09T06:50:49 | 2018-07-09T06:50:49 | 139,957,749 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17 | py | zhkvkvcjhchgfgf
| [
"1848919677@qq.com"
] | 1848919677@qq.com |
8e6108e098811c7200bb1709be882039085a7e74 | 24fb3fa105318e739c00944faaf7e0ca8bcdcfc0 | /backend/Endpoints/Users/teams/register.py | 3e686044c3d6fb8737e511658cb8724fdb86dbfc | [] | no_license | malbaugh/crowd-u | 457dfb390e94beed00df9b8e62e34042d34202e7 | 9ead6b26ae1197511dfc131e8bc20ea933b74f61 | refs/heads/main | 2023-08-30T03:46:17.193086 | 2021-09-29T16:40:51 | 2021-09-29T16:40:51 | 411,744,758 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,073 | py | # coding=utf-8
from os import path
from flask_restful import Resource
from flask import request
from Models.entity import DB_SESSION
from Models.Users.teams.team import TeamTable, TeamTableSchema
from Models.entity import SERIALIZER
from Models.Users.users.user import UserTable
from werkzeug.security import c... | [
"dane@predictivewear.com"
] | dane@predictivewear.com |
3d9308229bee020f17e4e90c2f21b27699be55ff | 7cc5e5fee3dbf0cebe3930f12f43a7f7f42f38c8 | /3D Detection/loadData.py | 2c64c72d37e661f5859df3ac1d1474cde166a67d | [] | no_license | MiRA-lab-dev/IHC_organelles_detection | 580b28cc0377fcabc5af87715c2935a2e87a93f7 | 538ea22ec910f7d7d264959b27ebd2eac67346cc | refs/heads/main | 2023-03-29T21:36:02.177104 | 2021-04-06T08:23:40 | 2021-04-06T08:23:40 | 355,045,330 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,666 | py | from PIL import Image
import os, sys
import numpy
import cv2
from skimage.io import imsave
def load_tiff_data(dataFile, dtype='float32'):
"""
Loads data from a multilayer .tif file.
Returns result as a 3d numpy tensor.
"""
if not os.path.isfile(dataFile):
raise RuntimeError(... | [
"noreply@github.com"
] | MiRA-lab-dev.noreply@github.com |
a7e31f9f3caa20c74b7125b9c1990aa19243a6b6 | 204c2504e6e5459be8cf38208dafb8b6b4d518dc | /simple_page_application_project/asgi.py | 08e3af27e57131531288a7520c5a9531b3139eb9 | [] | no_license | anoleose/simple-page-application | 87ae3866a5f0746938f263cf355dc17ceb18b0c5 | 263c6b7073cc07b2648e1c9066cd76a5a7947988 | refs/heads/master | 2023-08-15T07:40:12.686440 | 2021-09-26T06:43:20 | 2021-09-26T06:43:20 | 410,188,613 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 439 | py | """
ASGI config for simple_page_application_project 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.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.... | [
"anoleose@bingo.bingo"
] | anoleose@bingo.bingo |
157df771aebc7068eb7fad7b54b0e0faf995c1b1 | ef9c83ad39196f4a682a7ca61a96b730edd3d9f9 | /Import Module/Tabel cosinus.py | 64c0a80f312c7ccb710b0edd69d80691c6afc2a7 | [] | no_license | tennayarista/Python-XI-MIPA-1-Keisya-Tennaya-R | 92eb4c3c18ef10c7705e9c0e889292fce07a4b8b | fc57268e1fbcc0dfd2bd17a4e80eb84608c02ea8 | refs/heads/master | 2023-06-08T15:58:31.351120 | 2021-06-20T04:23:08 | 2021-06-20T04:23:08 | 337,772,689 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 340 | py | from math import*
print("menentukan nilai sin dan cos dari 0, 30, 60 - 360 derajat")
print("sudut","\t","sin","\t","cos","\t","tan")
for i in range (0,361,30):
a=radians (i)
b=sin (a)
b=format(b,".2f")
c=cos (a)
c=format(c,".2f")
d=tan (a)
d=format(d,".2f")
print (i,"\t",b,"\t",c,"\t",d)... | [
"tennayarista@gmail.com"
] | tennayarista@gmail.com |
c0adc1f01340bc0c5c2ca58dffdb2f91c4ae8c0b | f0a814c03a954c809bc56210207a69317c3b8ae7 | /helper/RegressionExperiment.py | 187fe23b00afbef988f7037ff2c9c93decc38a0d | [] | no_license | ollixy/benchmark | 5ec275a7b66594f29f3067a83fe25e069e9ccfb7 | 4f02219710a405a956e67f6d14b046ab028969c7 | refs/heads/master | 2021-01-21T01:26:08.648587 | 2013-09-19T16:07:06 | 2013-09-19T16:07:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,582 | py | import os
import subprocess
import shutil
from os.path import isfile, join
import re
import csv
from collections import defaultdict
from Build import *
def columns_from_csv(filename):
columns = defaultdict(list)
with open(filename) as f:
reader = csv.DictReader(f, delimiter=';', quotechar='|', quoting=csv.QUOTE_... | [
"schwalb.david@gmail.com"
] | schwalb.david@gmail.com |
ca1eda60265bccb2a5ec87e77c4b843c57907cd8 | d0d150e83bbb2da9be7c8effd2d2af22a393fa62 | /testscrape.py | 8243fe8c8d472213f7f38268f1f4401ec9cd3c5f | [] | no_license | wonathanjong/BTHO-TAMU-Registration | 0e416ea484a55fff0922b5c8f621a61f44440bbc | cf7ec300e544801e577328ccd6ec6066cc1082eb | refs/heads/master | 2020-04-18T19:51:27.139337 | 2019-01-29T19:39:01 | 2019-01-29T19:39:01 | 167,723,046 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,502 | py | import scraperwiki
import sqlite3
from bs4 import BeautifulSoup
import string
import unicodedata
import time
import requests
import json
headers = ["Name","Department","Total Ratings","Overall Quality","Easiness","Hot"]
#Dictionary of school ids (keys) that map to tuple of school name and number of pages
colleges = {"... | [
"bobbykim1013@yahoo.com"
] | bobbykim1013@yahoo.com |
d207fc4c0568cf2a78db1395fb9177a2aa9e438e | b3677e950abc06e93afb918b682bed1c4cf69e88 | /blog/migrations/0001_initial.py | c6aa3b75e7747ee78a9dde9f67b5fffac5c210e2 | [] | no_license | MuhooziJr/my-first-blog | 3465c900dfb4c6b47a4127a1357d9b15531d7e04 | 17d0daf2802836855bf1c8d65cfff02f55d3ea30 | refs/heads/master | 2022-12-11T15:02:59.707212 | 2020-08-26T13:47:28 | 2020-08-26T13:47:28 | 290,390,430 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 987 | py | # Generated by Django 2.2.15 on 2020-08-25 08:16
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AU... | [
"muhabuzi34muhoozi@gmail.com"
] | muhabuzi34muhoozi@gmail.com |
7e735b6c1df4f2decc9c1973bd0cda6434597efa | 1b51bc84231eefb73a05fbde037373ef1a649269 | /transport_controller/nodes/transport_state_machine_node.py | dacb6ef1df5ff196a19baa6af61a1e0d88300c34 | [] | no_license | matchRos/Collaborative_Transport | 4faed31182a9220ffa2312c701a64f52269861ca | 788e0a28d2c76c20613cad15e6365572746d4a11 | refs/heads/master | 2023-04-30T18:52:59.899111 | 2021-05-12T13:12:49 | 2021-05-12T13:12:49 | 346,361,156 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,916 | py | #!/usr/bin/env python
import smach
import smach_ros
import rospy
from transport_controller.StateMachine import PrepareSystemStateMachine
from transport_controller.StateMachine import MoveStateMachine
from transport_controller.StateMachine import FormationControlStateMachine
if __name__=="__main__":
rosp... | [
"Heinrich"
] | Heinrich |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.