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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dca35377643639e9b92acceb9f5f5e1edf8a6e29 | bb08d3f19acf138da831694482e30286fa6d7735 | /0x01-python-if_else_loops_functions/5-print_comb2.py | 95db922209b068bbad35734f13627ad3c8ebc4b6 | [] | no_license | marianellamonroyortizhb/holbertonschool-higher_level_programming | 954f1473953bbda61e8a246fccd84087f381fbb0 | a9829e231bdfed426e70289d78b271b6c3ca5405 | refs/heads/main | 2023-07-17T18:52:38.329313 | 2021-08-23T03:08:01 | 2021-08-23T03:08:01 | 291,706,052 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 98 | py | #!/usr/bin/python3
for num in range(0, 99):
print("{:02d}".format(num), end=", ")
print("99")
| [
"1880@holbertonschool.com"
] | 1880@holbertonschool.com |
2d146d6143cc226689e3331b859cee83e50b585e | fcbd988fe9e902a6d41bee33c55a1861d7f9c4ac | /newswala/urls.py | aa97d07935aa748209a495db3c478191a6d46a97 | [] | no_license | viratvasu/news-paper-automation-system | 50711787033a6ebe7f3d8a6c005f0d5c254f56a3 | e26be7739614650e59301af420ed2afa1af6075c | refs/heads/master | 2023-06-07T18:12:04.763377 | 2021-06-25T06:21:32 | 2021-06-25T06:21:32 | 352,373,737 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,641 | py | """newswala URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-base... | [
"vasuvirat492@gmail.com"
] | vasuvirat492@gmail.com |
439ef1f5c8760b07e9d17c9232ee3b364806fc6a | e28bf3e233da1ff4a9b8556699bcfaa026a11211 | /samples/socialAggregator/node_modules/mongoose/node_modules/bson/node_modules/bson-ext/build/config.gypi | 3201cd72a22fdef91e8338031caaf5941accd2ca | [
"MIT",
"Apache-2.0"
] | permissive | GauravDelphinus/delphinus | af9c5002e0a274b1425045fa64a0461d8f0e8cf4 | e311ca7643d3fcf127289406dc89007d11b4e429 | refs/heads/master | 2023-03-08T09:28:05.892467 | 2021-01-01T14:03:23 | 2021-01-01T14:03:23 | 83,102,553 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,424 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"clang": 1,
"host_arch": "x64",
"node_install_npm": "true",
"node_prefi... | [
"gauravjain.nsit@gmail.com"
] | gauravjain.nsit@gmail.com |
cf37aac9d227dfbd4c7430df7abe6facb7d78387 | 9bb01fa882e713aa59345051fec07f4e3d3478b0 | /tests/cysparse_/sparse/memory/test_copy_CSCSparseMatrix_INT32_t_COMPLEX64_t.py | 647b1079524c4d905c0e53d370b23d6cd9d3eca0 | [] | no_license | syarra/cysparse | f1169c496b54d61761fdecbde716328fd0fb131b | 7654f7267ab139d0564d3aa3b21c75b364bcfe72 | refs/heads/master | 2020-05-25T16:15:38.160443 | 2017-03-14T21:17:39 | 2017-03-14T21:17:39 | 84,944,993 | 0 | 0 | null | 2017-03-14T12:11:48 | 2017-03-14T12:11:48 | null | UTF-8 | Python | false | false | 4,646 | py | #!/usr/bin/env python
"""
This file tests ``copy()`` for all sparse-likes objects.
"""
import unittest
from cysparse.sparse.ll_mat import *
from cysparse.common_types.cysparse_types import *
########################################################################################################################
# Te... | [
"sylvain.arreckx@gmail.com"
] | sylvain.arreckx@gmail.com |
86dce18c7b5d76d01f32df22306412f7ca2feb73 | d7d19d6918029de88bcf060cea23d5b4a1f7efb1 | /xiab/apps/subjects/models.py | 85c54cc05e21150cfe80e2ddb9d412d7c622452e | [] | no_license | petercollingridge/xiab | 8abe2b2b7124eeb0cfa06d2f21ce858a4ffbd975 | ae84d3d228f3fe9392d0fd894652e290b219b1d2 | refs/heads/master | 2020-03-26T04:25:28.163381 | 2019-09-29T16:20:25 | 2019-09-29T16:20:25 | 144,503,055 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 535 | py | from django.db import models
from wagtail.core.models import Page
from wagtail.core.fields import RichTextField
from wagtail.admin.edit_handlers import FieldPanel
class SubjectPage(Page):
summary = RichTextField(blank=True)
content_panels = Page.content_panels + [
FieldPanel('summary'),
]
d... | [
"peter.collingridge@gmail.com"
] | peter.collingridge@gmail.com |
79853311cf8854f9270c9533d95f1037ad709899 | b5d57d0793056ca112547358466ca8934542e686 | /code/trash/roadm.py | 53830df821cbfe9ef886408a81cfcfb847d2d375 | [] | no_license | sourav295/research_2016 | 021ba6b6e057326fe02074741def9f8bbc8d7245 | ecee1fc6ca41e3630a4228a36376df7b536f68fa | refs/heads/master | 2020-05-21T19:14:22.118585 | 2016-10-28T04:07:11 | 2016-10-28T04:07:11 | 62,491,227 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,726 | py | import graph
from configure import GlobalConfiguration
import simpy
class Optical_Link(object):
"""
Links 2 roadms - used by spring xml for initializing the architecture
this has no significanace on the network simulation, but important for the set up
"""
def __init__(self, frm, to):
self.f... | [
"sourav295@gmail.com"
] | sourav295@gmail.com |
b463de8542116cdad5bb3450d74020633c97ac4e | 2f7c215e59345d222bdf62fc4b46a3634b010331 | /server.py | 2a9bb778290f23c27fd63eba2cd865a944231c16 | [] | no_license | cccpast/TerminalChat | dc173cec1653c69a4c2147db2c1d213c416b9b58 | 5019f930a310a9edbb9dbc4271b821fe3cea1fe5 | refs/heads/master | 2021-05-16T11:24:50.745304 | 2017-09-27T10:13:53 | 2017-09-27T10:13:53 | 105,003,300 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 631 | py | # -*- coding:utf-8 -*-
import socket
def main():
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM);
s.bind(("localhost", 3001))
s.listen(1)
sock, addr = s.accept()
print("connected by" + str(addr))
while (1):
send_data = input("server > ")
sock.send(bytes(send_data, 'utf-8'... | [
"coltpex13fix@gmail.com"
] | coltpex13fix@gmail.com |
fbbc336f4814604c71fdc425ac88f6046747b23c | 348a2e0d3170a8a7ce27a4a15275dfc26eaefc6c | /AddTwoNumbers.py | bb6eefeb56f56d6e1ba14b8477a6fbd82eafddcd | [
"MIT"
] | permissive | zcipod/leetcode | ae5e043374661a2e45ff4612e6b1f6cd8d92fffe | cea4f51c7e7616b4e0c56e2af0e7169c1b768787 | refs/heads/master | 2022-11-25T12:08:56.451249 | 2020-08-09T09:53:32 | 2020-08-09T09:53:32 | 266,452,297 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,770 | py | # You are given two non-empty linked lists representing two non-negative integer
# s. The digits are stored in reverse order and each of their nodes contain a sing
# le digit. Add the two numbers and return it as a linked list.
#
# You may assume the two numbers do not contain any leading zero, except the nu
# mber ... | [
"zcipod@163.com"
] | zcipod@163.com |
6c135183da24b761c602e57c6225f91f588637ad | 883c90d0f0a96093a89a74aa868c4c569e6f9eb5 | /newfile.py | 3407c4d6c464c3f9cf113294d10cad37e219bdf6 | [] | no_license | xrarayin27/python_wrkpls | 121bee7c55ffd5bdc52f6887ad5e872dba71bd83 | 8aae38e9d5273043813fcf3ad37d6b3a5f7385ff | refs/heads/master | 2022-12-10T18:13:11.661810 | 2020-09-04T17:37:20 | 2020-09-04T17:37:20 | 292,908,995 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | print("Robitaet?")
danet=input()
if (danet=="da"):
print("Otlichno!")
input()
if (danet=="net"):
print("AAAA BL!")
input() | [
"noreply@github.com"
] | xrarayin27.noreply@github.com |
4e554d1fb9a88ed2d04b9397feb311493507f223 | 289da5146b8991942ba22eefe948289ee024d3ff | /sheng/tutorial/L3函数/8 global.py | 380ea400f5deb82c17c96c689facbc7d471efff3 | [] | no_license | a1424186319/tutorial | 263585961ab40e7a9a55405263d80057a88298d4 | 909bfc9f850118af7892a7ba4b0f7e3d0798db8a | refs/heads/master | 2022-12-09T01:05:36.063099 | 2019-02-18T12:12:52 | 2019-02-18T12:12:52 | 166,967,437 | 0 | 0 | null | 2021-06-01T23:20:20 | 2019-01-22T09:38:51 | Python | UTF-8 | Python | false | false | 500 | py | #
#(老写法 a是全局变量) 从1 加到 100的和
# a = 0
# for i in range(1,101):
# a = a + i
# print(a)
## global(全局) 显示声明变量为全局变量
# total = 0
# def add1(n):
# global total
# total = total + 1
# add1()
# add1()
# add1()
# print(total)
## nonlocal(局部的)https://www.cnblogs.com/saintdingspage/p/7788958.html
def outer():
num ... | [
"1424186319@qq.com"
] | 1424186319@qq.com |
162bfe0339e4d87b47dccec2ef3d7d4ba3519a52 | 640a5ce57b169a2f56fbbc307208ac9749871329 | /node_modules/mongoose/node_modules/mongodb/node_modules/bson/build/config.gypi | 74315c88faa1b40f9834631fd1e9c5f82f617a8c | [
"MIT",
"Apache-2.0"
] | permissive | kennychong89/codereview_prototype_one | 9ba9957b0362d43e3d3f2e521ce90d26c8c097ec | a175c3c123dabbf65142c1169298b1612fa4feae | refs/heads/master | 2016-08-04T14:51:44.920514 | 2014-12-01T21:06:35 | 2014-12-01T21:06:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,163 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"clang": 0,
"gcc_version": 48,
"host_arch": "x64",
"node_install_npm": ... | [
"kennychong89@gmail.com"
] | kennychong89@gmail.com |
ad272e6634a3e14b8363b384efb4abde77a7c68c | 13ebcbfcc2e57240298bc5f35773b1ec7996007c | /bin/cortex | 84f30ff454b0c27fc87e58418edc26c3ec005915 | [
"MIT"
] | permissive | miguelmota/dotfiles | ebec8dedcfc1d26397fdb110d3f1b9c4641f8258 | 000ce1ecfb1ede44b44c36a1c8923fa3f5497ac7 | refs/heads/master | 2023-01-13T02:19:36.444703 | 2022-12-27T05:20:09 | 2022-12-27T05:20:09 | 18,570,788 | 22 | 6 | null | null | null | null | UTF-8 | Python | false | false | 27,681 | #!/usr/bin/env python3
import os
import sys
import curses
import threading
import time
import webbrowser
from configparser import ConfigParser
from urllib.request import Request, urlopen
from urllib.parse import quote
from threading import Timer
try:
from subprocess import call, DEVNULL
except ImportError:
DEVNULL... | [
"miguelmota2@gmail.com"
] | miguelmota2@gmail.com | |
37743ac45717ca0451bcb513c7fe7005ee067bb0 | dd19ab77e237a80e32b25247b514b34bd99e22be | /scripts/export_collection.py | e787c2d4347fb40871293636b2b5fa6bd65eb39d | [] | no_license | aekazakov/seed2kegg | 54d65ab13c660a71c21dfd4dc1426fad9ecbb76c | b41aeda511d017eefe75231121c86d77fa796c55 | refs/heads/master | 2021-09-11T00:03:37.866608 | 2018-04-04T16:21:11 | 2018-04-04T16:21:11 | 125,553,927 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,539 | py | #!/usr/bin/python
import sys
import argparse
from context import seed2kegg
from seed2kegg import db_utils
from seed2kegg import data_analysis
def get_args():
desc = 'This script creates FASTA file with proteins from functional collection.'
parser = argparse.ArgumentParser(description=desc)
parser.add_argum... | [
"aekazakov@iseq.lbl.gov"
] | aekazakov@iseq.lbl.gov |
0700257c7977571409c3931f54630b1087bc2915 | ac4bbbe815e171029181d1ecf2ab37a57c43f9f5 | /base_api/edit_mobile_api.py | 5b4af84f57f751a496b9f7d4fcf06b49c97ae132 | [] | no_license | Xishanqingxue/sanyecai-video-api-test | cb39f5c7975732627ad0de671a67225acf456b4f | 960598ed52c9f000b45b688a4093e3f76b3ba242 | refs/heads/master | 2020-03-23T04:19:20.772741 | 2018-07-19T10:20:59 | 2018-07-19T10:20:59 | 141,076,272 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 299 | py | # -*- coding:utf-8 -*-
from base.login_base import LoginBaseApi
class EditMobileApi(LoginBaseApi):
"""
修改用户手机号
"""
url = "/finan/editModel"
def build_custom_param(self, data):
return {'mobile':data['mobile'],'verCode':data['verCode'],'type':data['type']}
| [
"gaoyinglong@kong.net"
] | gaoyinglong@kong.net |
8aa017b49485a93529f5842ebd6c1605b6019aba | e63c45db069ea20b41fb850c5940e6f99db94914 | /TranskribusDU/tasks/TablePrototypes/DU_Table_Row.py | c69734cdcc09f2b14bb86df4a56c86e3b895773d | [
"BSD-3-Clause"
] | permissive | Transkribus/TranskribusDU | 669607cc32af98efe7380831d15b087b3fc326c9 | 9f2fed81672dc222ca52ee4329eac3126b500d21 | refs/heads/master | 2021-12-29T10:14:49.153914 | 2021-12-22T10:53:10 | 2021-12-22T10:53:10 | 72,862,342 | 24 | 6 | BSD-3-Clause | 2019-07-22T08:49:02 | 2016-11-04T15:52:04 | Python | UTF-8 | Python | false | false | 5,449 | py | # -*- coding: utf-8 -*-
"""
*** Same as its parent apart that text baselines are reflected as a LineString (instead of its centroid)
DU task for ABP Table:
doing jointly row BIO and near horizontal cuts SIO
block2line edges do not cross another block.
The cut are based on baseli... | [
"jean-luc.meunier@naverlabs.com"
] | jean-luc.meunier@naverlabs.com |
94381092a516f8a08784fe6c13b24cdface82703 | 4fb6ff52a99bf2b784fd5458bd9b8c8eda03cd79 | /main.py | c4229dc8aad8c427c27388bd793bb9a90021ca7b | [] | no_license | nahum-smith/Text2Learn-CLI | b34aa0166093081f0ec86911eb8b3f5badd9c2d7 | 94b8a5af7cc86dc741d4c537fe74836b522d359b | refs/heads/master | 2021-05-15T21:47:27.333389 | 2017-10-11T17:13:15 | 2017-10-11T17:13:15 | 106,585,153 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 102 | py | from question_entry import run_program # import the app
if __name__ == '__main__':
run_program()
| [
"nahumsmith@gmail.com"
] | nahumsmith@gmail.com |
d05741d3e944002c02f7a9053ec5c74173e1d430 | b99f403ef2336491946770b482daf072f46a70f0 | /bin/generate-readme.py | c187aee46f9987be589587d7c4ec72ca2f47985a | [
"CC0-1.0"
] | permissive | Ambrosiani/awesome-openaccess | b1727778c70eb2fe4b3beb951c2fe7d827541ba7 | 84d191721e03d5f104e18c6d33a581bdd66e0a3f | refs/heads/master | 2020-04-17T23:49:16.125271 | 2018-07-05T19:48:46 | 2018-07-05T19:48:46 | 167,052,172 | 0 | 0 | CC0-1.0 | 2019-01-22T19:15:12 | 2019-01-22T19:15:12 | null | UTF-8 | Python | false | false | 3,216 | py | #!/usr/bin/env python
import sys
import os
import os.path
import yaml
import json
import glob
import pprint
def text2emoji(text):
emoji = ''
for thing in sorted(text):
if thing == 'images':
emoji = emoji + ':camera: '
if thing == 'iiif':
emoji = emoji + ':minidisc... | [
"micah@micahwalter.com"
] | micah@micahwalter.com |
200e9917ea1a71489173315c12ac6c736aac3a7c | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/PyBox/pybox2d/library/Box2D/examples/chain.py | c1f19e55dbac3e2fa63532f8b24c48d5d1e22b19 | [] | no_license | NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:e79af0d06dbe1710b8ba767355096adc26f63f6435e754284e2a3caa01b35291
size 2366
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
09ea0a5ceb9d26ce0cf39216249a5e7adcb992b0 | ca5e4643520750ac718dc5bfd89fe59109c02ed8 | /src/app/oanda.py | e70889a490a352ac360bb66c5ee8962c869be893 | [] | no_license | albertomassa/oanda-broker-python | 3d1da569ccdfa9204ecd5ff8de02b03a75496add | a20837db985964505f2c6806616bda107679982e | refs/heads/master | 2023-07-27T15:13:55.451626 | 2021-09-13T09:26:08 | 2021-09-13T09:26:08 | 383,616,181 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,990 | py |
import requests
from requests.structures import CaseInsensitiveDict
import configparser
import json
from model import Instrument, CandleStick
config = configparser.ConfigParser()
config.read('src/ConfigFile.properties')
broker_url = config['OANDABroker']['broker.url']
api_token = config['OANDABroker']['broker.api-to... | [
"albertomassa.info@gmail.com"
] | albertomassa.info@gmail.com |
d3d7b7867e5897701e57c5e1df34476ee66921cd | 02e45339965b0b5e47744c37f85edc1f337ac615 | /aoc/day_16/scanner.py | 9cbf6a7aa31e0cc285a42170b44ee507497dfa5c | [] | no_license | kwinso/thm-writeups | 4ef5a7f0dea91d85067c6ac09a1cae993d49b91d | b6a0c290d3dfa6b08efe09b5ca2f12c03e7e4848 | refs/heads/main | 2023-04-06T17:20:26.011170 | 2021-04-13T19:02:36 | 2021-04-13T19:02:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 231 | py | import os
import exiftool
import zipfile
files = os.listdir('.') # listing this dir
def scan(filesList):
for file in files:
if file.endswith(".zip");
with zipfilep.ZipFile(file) as zip_file:
zip_file.extract(file)
| [
"pythonisajoke@gmail.com"
] | pythonisajoke@gmail.com |
dbf3663efd36d123f447869cc49f5d273ae52d95 | 2fe9ae409767cf5b10e32ae8243679be86e3cf93 | /test2.py | 2402089344d4af2d20f543586e2b39b3f802ae6b | [] | no_license | Collapseyu/hkStock_monthDataAndReport | 5c26d2e1114eb0d3c502e62f391d75b5726ea096 | 106ffe82ca5870d6e583cba33ba3c75547669256 | refs/heads/master | 2020-05-07T17:01:13.524339 | 2019-04-15T03:38:55 | 2019-04-15T03:38:55 | 180,710,045 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,977 | py | from socket import *
import sys
from lxml import etree
import datetime,time
import csv
import re
import requests
from bs4 import BeautifulSoup
csv_file=csv.reader(open('goodOrder.csv','r'))
a=[]
for i in csv_file:
tmp=''
for j in i:
tmp=tmp+j
if(tmp>'01100' and tmp<'01201'):
a.append(tmp)
... | [
"yuyicong@yuyicongdeMacBook-Pro.local"
] | yuyicong@yuyicongdeMacBook-Pro.local |
a26ec63f56bad3f7991ace4eb345ea52f222d5e9 | 44032f82bcb767175cf86aeccee623eb6cfbd40e | /deploy/compose/gpu/__init__.py | 2303c0b0cf1621e03ddbbda08853f070befb4247 | [
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | veyselkoparal/DeepVideoAnalytics | 3628d41f8e06547e177a7badd20b399bd7f9028a | 013f7e1efcc11f9ed5762192a91589aa6b4df359 | refs/heads/master | 2020-03-16T04:22:46.603989 | 2018-05-07T06:55:47 | 2018-05-07T06:55:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,462 | py | """
Code in this file assumes that it is being run via dvactl and git repo root as current directory
"""
CONFIG = {
"deploy/gpu/docker-compose-2-gpus.yml": {"global_model_gpu_id": 0,
"global_model_memory_fraction": 0.1,
"worke... | [
"akshayubhat@gmail.com"
] | akshayubhat@gmail.com |
5fb152a03b97239720932a800dcb93ed2841278e | fd6fab64e64031b319b7dc88b66ad960d30fdfc7 | /assignment02_ModelQueryProcess/run_assignment.py | 12b99e32a4e8faed2c013945d46efacf258c313c | [] | no_license | mkadhirvel/DSC650 | 297fa63da3668f91d9ce17c6195522dc21d8b5f2 | 75556e3a11a3b5801cad7df124dcc19df219934d | refs/heads/master | 2023-03-17T12:19:34.332707 | 2021-02-11T00:29:11 | 2021-02-11T00:29:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 268 | py | """
Author: Alan Danque
Date: 20201205
Class: DSC 650
Exercise: Week 2 Assignment - Run all assignments
"""
import os
os.system('python ./kvdb.py')
os.system('python ./documentdb.py')
os.system('python ./objectdb.py')
os.system('python ./rdbms.py')
| [
"adanque@gmail.com"
] | adanque@gmail.com |
7266db340ad3c001b2476e0d9677e9d1a795cf48 | 46a5df524f1d96baf94f6eb0f6222f2b856235f3 | /src/data/image/sliced_grid.py | 7612a11c9ffd5b6b038a1658df956563308349f9 | [
"MIT"
] | permissive | PhilHarnish/forge | 5dfbb0aa2afdb91e55d85187bd86fbeb9b6b2888 | c544fb8b499e1e13793c94159f4c35bce187311e | refs/heads/master | 2023-03-11T17:23:46.569359 | 2023-02-25T15:09:01 | 2023-02-25T15:09:01 | 1,818,598 | 2 | 0 | MIT | 2023-02-25T15:09:02 | 2011-05-29T19:36:53 | Jupyter Notebook | UTF-8 | Python | false | false | 2,215 | py | import math
from typing import Iterable
import cv2
import numpy as np
from data.image import coloring, image, model
from puzzle.constraints.image import sliced_grid_constraints
from util.geometry import np2d
class SlicedGrid(model.LineSpecification):
_source: image.Image
_constraints: sliced_grid_constraints.Sl... | [
"philharnish@gmail.com"
] | philharnish@gmail.com |
09093b345eb9e6d22ad30b1184a90e5f08c97ffb | 94ac54dca0e5ec8051c9c2611fb5bf51ac40185e | /test/integrationtest/conftest.py | 0910a5352094fb92cef99b556fd798385735e763 | [
"BSD-3-Clause"
] | permissive | bphillab/conda-env-tracker | 1ec893af594249971e1ee51e4e432769a7e4f3e8 | 0e13fe08ec6747dc70b8b5863235f84092331f04 | refs/heads/master | 2020-07-31T19:24:48.779199 | 2019-08-20T20:16:22 | 2019-08-20T20:16:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,664 | py | """Taken from pytest-ordering, https://github.com/ftobia/pytest-ordering/blob/develop/pytest_ordering/__init__.py"""
import shutil
from pathlib import Path
import pytest
from conda_env_tracker.errors import CondaEnvTrackerCondaError
from conda_env_tracker.gateways.conda import delete_conda_environment
from conda_env_... | [
"jesse.lord@allstate.com"
] | jesse.lord@allstate.com |
b9fc285d949d0b051b5a31996a5dd0c8a128fe54 | 5b47158a85428490511eecc9e2d18454d914d47e | /yasql/apps/sqlorders/api/generateRollbacksql.py | 99a6a7d1a70ae8e1a1bd3b2cb3784cbaebb6dc8b | [
"Apache-2.0"
] | permissive | dbtool/YaSQL | 946dacede73811351ecfeb26d1907acf4b46e83c | deaa144d7b66756b38fc476ccbfb8ab6e5f66ad9 | refs/heads/master | 2023-03-25T01:26:53.224918 | 2021-03-17T06:56:03 | 2021-03-17T06:56:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,172 | py | # -*- coding:utf-8 -*-
# edit by fuzongfei
import datetime
import json
import logging
import simplejson
from pymysql import escape_string
from pymysql.constants import FIELD_TYPE
from pymysqlreplication import BinLogStreamReader
from pymysqlreplication.event import QueryEvent
from pymysqlreplication.row_event import D... | [
"zongfei.fu@yunzhanghu.com"
] | zongfei.fu@yunzhanghu.com |
be81ee524aa81dde5ccebbd21e988d98106b13a7 | e9caa3bdbc563f2a09363ab0cd59c2e7d749a502 | /tuyochat_flask/api_commands_test.py | 1d80d88ad61631f3f5b84f21575b922e403140a8 | [
"Apache-2.0"
] | permissive | von-dee/tuyochatapi | d903d941ec233b8f90e3257e67394bb58655cdec | 55dadc24fb2077c25f4bb5d489c86778639a10a6 | refs/heads/master | 2022-12-14T10:49:20.615173 | 2019-05-31T15:17:24 | 2019-05-31T15:17:24 | 189,615,356 | 0 | 0 | Apache-2.0 | 2022-08-06T05:30:55 | 2019-05-31T15:15:23 | Python | UTF-8 | Python | false | false | 1,376 | py | """
Demo the Bebop indoors (sets small speeds and then flies just a small amount)
Note, the bebop will hurt your furniture if it hits it. Even though this is a very small
amount of flying, be sure you are doing this in an open area and are prepared to catch!
Author: Amy McGovern
"""
from pyparrot.pyparrot.Bebop impo... | [
"vondeesela@gmail.com"
] | vondeesela@gmail.com |
1bb7b97ff0d7ed871f4280d115fe7d2651c8300f | e2334e514d9a0321fc834d6398519fa86dc1ba93 | /cira_ml_short_course/utils/upconvnet.py | 2c80a660190e61d2e1945a456101ea1ecc85d46e | [
"MIT"
] | permissive | ChanJeunlam/cira_ml_short_course | 4fc99da5a6e051a51fe7fdc307df17eeb06516eb | 23741f7ebba9dde8e4f5985ed43bed50b4f99cc3 | refs/heads/master | 2023-04-30T20:33:37.974674 | 2021-05-10T17:14:36 | 2021-05-10T17:14:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,151 | py | """Helper methods for upconvnets (upconvolutional networks)."""
import copy
import numpy
import keras.models
from cira_ml_short_course.utils import cnn, utils, image_utils, \
image_normalization
KERNEL_INITIALIZER_NAME = cnn.KERNEL_INITIALIZER_NAME
BIAS_INITIALIZER_NAME = cnn.BIAS_INITIALIZER_NAME
PLATEAU_PATIEN... | [
"lagerqui@ualberta.ca"
] | lagerqui@ualberta.ca |
a52d6c5f00d2ac38e53b3c57ba2e432d9ccc0772 | 1505d132eae07c4e148b1a6ec897742e73bf03a2 | /contacts/migrations/0001_initial.py | 1dde64cf08cab546c7fab3838da56a069035b37f | [] | no_license | ankurmogera/Django-Webapp | e9809525e7157882e909994c82ecad5ceea2d902 | 24a5b992ab48a05f25184e83b1eda1e95388abb7 | refs/heads/main | 2022-12-31T16:34:20.366689 | 2020-10-23T20:31:28 | 2020-10-23T20:31:28 | 303,438,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 822 | py | # Generated by Django 3.1 on 2020-08-28 17:06
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='contactRecords',
fields=[
('i... | [
"noreply@github.com"
] | ankurmogera.noreply@github.com |
31c0c7fd583c2dddb1ea5eee74eed5aa2c69d932 | 6ec8bc3773de45c8905dac428f99f69daab1e187 | /Source_Code/mutate.py | c9040f41a8cca82a0aa84095a026c561283b0f85 | [] | no_license | Lampedrazago29/ARM_Input_Generator-LMPG | 20c3c46ac00bd5f79a30f0b98f273ea26a5efb57 | e82ca81195a2e12894ada759a780426ba6e1a761 | refs/heads/master | 2020-03-18T21:15:13.322212 | 2018-06-04T11:33:09 | 2018-06-04T11:33:09 | 135,269,666 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,595 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Laura Pedraza-Gonzalez | March 2018
import os
import sys
import glob # The glob module provides a function for making file lists from directory wildcard searches
import tempfile
import re
import numpy as np
import commands
import time
import textwrap
modellerScript = ... | [
"la.pedrazagonzalez@student.unisi.it"
] | la.pedrazagonzalez@student.unisi.it |
a6b8557de93800110cd9a1e4bf3c2635091d5b3d | 70f4171d3024d22de8686ffff5b4bfee9bffa4b0 | /uri-online-judge/1079.py | 029bdb1edd0d86bcead7a3126383a1cae72715e6 | [] | no_license | raquelsouto/python | 1ea105a5a3844cf1827da10b4b74b8366cfed39c | dbafa504e83a20c8eb3ed453069b49d631a13d2c | refs/heads/master | 2022-11-21T23:36:28.973184 | 2020-07-23T02:08:12 | 2020-07-23T02:10:01 | 281,823,427 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 325 | py | n = int(input())
cont_media = 0
cont_print = 0
lista_medias = []
while cont_media < n:
nota1, nota2, nota3 = map(float, input().split())
media = (nota1*2 + nota2*3 + nota3*5)/10
lista_medias.append(media)
cont_media += 1
while cont_print < n:
print('%.1f' %lista_medias[cont_print])
cont_print... | [
"kelsouto@gmail.com"
] | kelsouto@gmail.com |
a424866970aa0002e806903b5cbd09b518cbb260 | ddbe13cc82934230dc2dc2f46d2cb491ca98b2f6 | /ex03.py | 65c64549da03931b9f11fddb0da483a7adad6f9b | [] | no_license | key70/day0411 | ff7c2f3a14f04550c1aa4c291689504e6b415ec8 | 3646822537cba18a763cfabedf4c61a122d0faa4 | refs/heads/master | 2020-05-07T18:17:24.683487 | 2019-04-11T09:36:27 | 2019-04-11T09:36:27 | 180,760,540 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,372 | py |
# 어떤 feature가 그것을 결정하는 가장 중요한 요인인가를 파악중요하다.
# 그것을 결정하는데 필요한 데이터를 수집하는것이 중요
import numpy as np
import pandas as pd
from sklearn import linear_model, model_selection
names = ['age','workclass','fnlwgt','education','education-num','marital-status',
'occupation','relationship','race','sex','capital-gain'... | [
"rolakim70@naver.com"
] | rolakim70@naver.com |
4299a22e5f834c8e5eed9f8ddf958ec3d0cda2fa | 9ae04b301adaa77558c3cbd1fe6b9adc2f9d7e9f | /flaskblog/users/forms.py | 2720ae2fe8d6f4d1779e37ae43f3ce66aaabbf67 | [] | no_license | soumyaevan/Blog_App | 3401daa6e79e5a457e9e81540f00e5af046fdffd | 488b27d5d1ddf57b7be9a4f2e2c493fa6bd06f41 | refs/heads/master | 2022-12-24T01:50:01.164796 | 2020-09-17T20:00:56 | 2020-09-17T20:00:56 | 293,937,873 | 0 | 0 | null | 2020-09-17T20:00:57 | 2020-09-08T22:06:37 | HTML | UTF-8 | Python | false | false | 3,126 | py | from flask_wtf import FlaskForm
from flask_wtf.file import FileField, FileAllowed
from wtforms import StringField, PasswordField, SubmitField, BooleanField
from wtforms.validators import DataRequired, Length, Email, EqualTo, ValidationError, Regexp
from flask_login import current_user
from flaskblog.models import User
... | [
"sensoumya94@gmail.com"
] | sensoumya94@gmail.com |
6e14b2e0b728e21378e28a1927f97c4935ef9061 | 6af7dedd9f8335f1bd1f2b40b5050d0cafa6411a | /Basic/format.py | 8559a7875e16b96db5a4c2799e79858aef530804 | [] | no_license | Gruci/python | 0944e8de684af2ed158356bb9d4c230aca50b4d5 | 8bfb98a8cd865a17dc9621344fc791908aa8f56a | refs/heads/master | 2020-04-17T06:20:16.069026 | 2016-11-14T09:17:43 | 2016-11-14T09:17:43 | 67,502,010 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 369 | py | number = 20
greeting = '안녕 안녕'
place = '문자열 포맷'
welcome = '하이 하이'
print (number,'번 손님', greeting, '.', place, '이다', welcome)
base = '{}번 손님, {}. {}이다 {}'
new_way = base.format(number, greeting, place, welcome)
print(base)
print(new_way)
print ('나는 {} ,너는 {}, 그래서 {}'.format
(greeting, welcome, place)) | [
"skeksksk@gmail.com"
] | skeksksk@gmail.com |
a17465ee9bd77c044fdbc517bdc07720e69bb280 | aaa79e1992c9ea57a80f8bba98e2251cc2814cc3 | /project/final/random_forest.py | 4b9a88c9372d2e8e6108bd4df57dd7e7df02e74f | [] | no_license | Xin-Cheng/CS412 | abcba546383af359290035d8e231e2d601f949a9 | 252662ac1b9c527eaad31de3cff1a75a1790b62f | refs/heads/master | 2021-03-30T16:31:09.316692 | 2017-04-29T06:27:27 | 2017-04-29T06:27:27 | 83,969,661 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,764 | py | import numpy as np
import pandas as pd
import pickle
import itertools
from math import *
from numpy import *
from collections import deque
class Decision_Tree:
def __init__(self, name, condition, is_label):
self.name = name # name of each tree node
self.condition = condition
self.constra... | [
"x_cheng@outlook.com"
] | x_cheng@outlook.com |
bcf478a008f68005da747ea683705b87c418a752 | e1e977ffa4324d4f61da66a4d4b0869a87a6f049 | /tests/test_postcode_parser.py | c37075c84bf47e1453feffa10c027ffbd36d21d4 | [
"MIT"
] | permissive | WintersDeep/wintersdeep_postcode | 5bfa24eaa4df94e5a765e4dedd0a58168b840a3d | b5f53484d2209d48919a4db663f05c9d39a396fa | refs/heads/master | 2022-11-03T20:19:35.737929 | 2020-06-19T01:11:51 | 2020-06-19T01:11:51 | 272,838,311 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,963 | py | # python3 imports
from os.path import abspath, dirname, join
from sys import path as python_path
from unittest import TestCase
from re import compile
# determine where we are running (needed to patch PYTHON_PATH)
TEST_CASE_PATH = abspath( __file__ )
TEST_CASE_DIRECTORY = dirname( TEST_CASE_PATH )
PROJECT_ROOT_DIRECTOR... | [
"admin@wintersdeep.com"
] | admin@wintersdeep.com |
1beeb283036f8942d827ce37f399f0e69c19519f | ad5f3ed89e0fed30fa3e2eff6a4baa12e8391504 | /tensorflow/python/keras/applications/mobilenet.py | 224e8c84496ef63c1a35e1597b4b253dc1747dab | [
"Apache-2.0"
] | permissive | DunyaELBASAN/Tensorflow-C- | aa5c66b32f7e5dcfc93092021afee1bf3c97e04b | 7a435c0946bdd900e5c0df95cad64005c8ad22f9 | refs/heads/master | 2022-11-29T23:37:53.695820 | 2020-02-21T18:16:44 | 2020-02-21T18:21:51 | 242,206,767 | 1 | 0 | Apache-2.0 | 2022-11-21T22:39:51 | 2020-02-21T18:38:41 | C++ | UTF-8 | Python | false | false | 19,201 | py | # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
086d2e43f6dc73531c6c4ac008738208df450b36 | 97a3ef213466f439dd4ab46e5389aad03354813f | /romanos.py | 2e005c6b22d0ce79c95a0db734b84ecb7767bce7 | [] | no_license | MaikolEdu/CODING-DOJO | 425487727b904379418db16937b00b98a30739c1 | 28a0c1ca7dcf8a72fb0aeeb8fdc287339b0688cb | refs/heads/master | 2020-04-29T09:32:09.781147 | 2013-01-27T00:07:31 | 2013-01-27T00:07:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 696 | py | class Romanos:
resultado=""
def ingresar(yo):
numero= raw_input('\tIngresar numero :')
yo.numero= int (numero)
def caso1(yo,letra,num):
return letra*num
def caso2(yo,letra,num,letra2):
if num==4:
return letra+letra2
return letra+"X"
def caso3(yo,letra,numero):
if numero==5:
return letra
n... | [
"edwin@ubuntu.(none)"
] | edwin@ubuntu.(none) |
c724bfac75d44df03b34bc2e2ab182a750aeed1c | b324da25b3feef8a90b2b080535cffaa72968b24 | /django intek/main/views.py | 5a609e031f6a71299a3102d1a1acbb78cb65c2a0 | [] | no_license | vfelinis/Code-examples | b1c0821b9a4db84df3dc403b3aec67a8d8d8d9ff | 1f7e610b07b1969f0f5f12f1ab6bade89f9d93c5 | refs/heads/master | 2021-01-13T14:47:42.930088 | 2016-09-24T15:32:49 | 2016-09-24T15:32:49 | 69,037,851 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,195 | py | # -*- coding: utf-8 -*-
# Create your views here.
from django.shortcuts import render, render_to_response, redirect, get_object_or_404, get_list_or_404
from django.http.response import HttpResponse
from main.models import Home, About, Contact, Service, Article, Social
from main.forms import ContactForm
from django.core... | [
"vfelinis@yandex.ru"
] | vfelinis@yandex.ru |
d1d7b71b580026eddf95b6c544a982e2a444d43e | 3740c26f3f96115c9d56e2faa415fa9b77cb9120 | /app_linkup/urls.py | aaed9a1899d9ced05d475eb6245007a00e68aa0c | [] | no_license | JMVasquezR/proeyctLinkUp | 39e955df5529690085c7847722509a99e2908fd2 | d2646cca82ae370ff4688b824318d5649f5550ed | refs/heads/master | 2020-05-01T07:35:56.788262 | 2019-03-24T00:57:48 | 2019-03-24T00:57:48 | 177,355,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 687 | py | from django.conf import settings
from django.conf.urls import url, include
from django.conf.urls.static import static
from django.contrib.auth.views import LogoutView
from app_linkup.views import LoginView, EncuestaViewSet
urlpatterns = [
url(r'^api/', include(('app_linkup.api.urls', 'api'), namespace='api')),
... | [
"josemartivr@gmail.com"
] | josemartivr@gmail.com |
b002d21553131485b9e090708656d8985086fad2 | 24021fe2eb98aca9bc35f5b017fa8c631581bb54 | /vulnerabilities/migrations/0027_alter_vulnerabilityreference_url.py | 90fb447c112ed0ec23e2b7f3c1430bf60bc48afa | [
"Apache-2.0",
"CC-BY-SA-4.0",
"Python-2.0"
] | permissive | nexB/vulnerablecode | 0253160c1b04cd992899bf5b74ad76ac125a68ae | eec05bb0f796d743e408a1b402df8abfc8344669 | refs/heads/main | 2023-09-03T21:48:21.368810 | 2023-08-31T16:52:41 | 2023-08-31T16:52:41 | 91,780,998 | 371 | 181 | Apache-2.0 | 2023-09-11T19:24:24 | 2017-05-19T07:56:17 | Python | UTF-8 | Python | false | false | 495 | py | # Generated by Django 4.0.7 on 2022-09-09 16:19
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('vulnerabilities', '0026_alter_vulnerabilityreference_unique_together'),
]
operations = [
migrations.AlterField(
model_name='vuln... | [
"pombredanne@nexb.com"
] | pombredanne@nexb.com |
dcc47b23a0a71640a7d9beee45059f336eaf00b9 | 2926780ac13b74882b906d920968c00c48d7b181 | /simple_social_clone/simplesocial/accounts/models.py | e2ed8c06f4c4463e24d4a1591ecc00c341b30a42 | [] | no_license | SodimuDemilade/my_space | 58aaf42701d277cd75de8fef64a55ce5b8f032b3 | 11918964bb382667746a63158869b2dd75bacaac | refs/heads/master | 2023-06-23T04:35:03.784930 | 2021-07-13T21:46:44 | 2021-07-13T21:46:44 | 385,739,523 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 289 | py | from django.db import models
from django.contrib import auth
# Create your models here.
class User(auth.models.User,auth.models.PermissionsMixin):
def __str__(self):
return "@{}".format(self.username)
# username is an attribute that comes built in with user
| [
"demisodimu@gmail.com"
] | demisodimu@gmail.com |
af115a58f063c98093648abb62f32c0fd485085a | 038ac28874902d5cab51837b750e27a092f68b7e | /quant_sim/sources/yeod_source.py | 1c9773e4dfe26441f5f3af921f95b7aeb9ff8f6c | [] | no_license | TotallyBullshit/quant_sim | ef13e229254e8cc2882d8f2363db0852cbe7ab10 | 2d246819d2a5a3ca0f514951ecde8194b3196a33 | refs/heads/master | 2021-01-13T02:03:53.398806 | 2013-10-01T23:59:01 | 2013-10-01T23:59:01 | 21,032,661 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,973 | py |
import re
import urllib
import datetime as dt
from copy import copy
from collections import OrderedDict
from stock_eod import EOD_Data
class YEOD_Source(object):
def __init__(self, source_dir):
self.source_dir = source_dir
def get(self,sids):
def get_eod(sid):
now = dt.datetime.n... | [
"quantistician@quantistician.com"
] | quantistician@quantistician.com |
f56a71654436830f620bcdd6213f4cf4422e7649 | cb1b108d97e8c039bdcfe039da00ab8ff5290448 | /main/forms.py | 4bf73137a247cbc4a9cddb176a1c3d77ddeda3ca | [] | no_license | Maia-Nguyen/CPSC-362-Group-Project | 6de1cb8300534d0512a8af593cbadd233a99d26b | 538760b39aa23b62942bf0f5dd0fc56c6a20bda4 | refs/heads/master | 2023-04-08T13:41:56.004472 | 2021-04-13T04:57:47 | 2021-04-13T04:57:47 | 344,632,763 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,363 | py | from django import forms
from .models import MyModel
from django.contrib.auth import login, authenticate
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.models import User
from django.contrib import messages
# Profile Form
class MyForm(forms.ModelForm):
# Defines form att... | [
"noreply@github.com"
] | Maia-Nguyen.noreply@github.com |
e3bc863f35e9d360be7dcaeed446c1f6fb3fe5bb | 777150135a2970ca3d7459515436da9e5920ba88 | /app/database/queries.py | c7de448fd7ac0c20f3865ae6647ae17749b75a72 | [] | no_license | Naatoo/emissions-visualization | 5c30810fb5131639f297f7cb95b7f8b309c76ca0 | f045576ee30a2274356e7a0bb75c6ad038e034f9 | refs/heads/master | 2023-07-23T23:18:56.723798 | 2019-09-04T16:42:37 | 2019-09-04T16:42:37 | 185,286,377 | 1 | 0 | null | 2023-07-06T21:41:13 | 2019-05-06T23:33:00 | Python | UTF-8 | Python | false | false | 4,556 | py | import secrets
from flask import current_app as app
from sqlalchemy import and_
from app.database.database import db
from app.models.dataset import DatasetInfo, DatasetValues
from app.models.countries import Countries
from app.models.auth import User
from app.tools.exceptions import LonLatResolutionException, Zooming... | [
"thenatooorat@gmail.com"
] | thenatooorat@gmail.com |
0e892b46364b177bd07fcbe10de8bc758f9ecbf6 | 9d4bd8f2b64f0ff5e8c0fbb0cea434f2ce4a2e46 | /conference/models.py | 265970179b9fb0d91f35f9de73f5b7f7c5524804 | [] | no_license | jskonst/ivbit | 7f05acaa4d93b614a001d37fd973b36a9f74e379 | 9bb8c1ebaddba838ac855a039ff480aa41ca3405 | refs/heads/master | 2020-06-05T15:16:09.842720 | 2014-11-15T07:23:07 | 2014-11-15T07:23:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 927 | py | #-*- coding=utf8 -*-
from django.db import models
from accounts.models import UserProfile
# Create your models here.
class Section(models.Model):
section = models.CharField(max_length=100, verbose_name=u'Название секции')
def __unicode__(self):
return self.section
class Doklad(models.Model):
se... | [
"jskonst@yandex.ru"
] | jskonst@yandex.ru |
42e9fe3ab57bd3c1e296f665413fc82fba5070e3 | 21e6a09131ac76d734102c829260c3b8e3a0094b | /solutions/21_textfsm/task_21_4.py | 9986cf1ad1531aef03cb29f28f968dc09e18cec7 | [] | no_license | Egor-Ozhmegoff/Python-for-network-engineers | 5fbe8f3a754263ab65c28093fed667684ae76ded | 6b70f4f9df658698ea0d770a064ee0e12b4e4de2 | refs/heads/master | 2023-08-11T20:52:12.999495 | 2021-09-09T14:42:14 | 2021-09-09T14:42:14 | 306,354,285 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,879 | py | # -*- coding: utf-8 -*-
"""
Задание 21.4
Создать функцию send_and_parse_show_command.
Параметры функции:
* device_dict - словарь с параметрами подключения к одному устройству
* command - команда, которую надо выполнить
* templates_path - путь к каталогу с шаблонами TextFSM
* index - имя индекс файла, значение по умол... | [
"nataliya.samoylenko@gmail.com"
] | nataliya.samoylenko@gmail.com |
40cdb096e1d4bdd8c6d0a26a83bfe1ce360d32d6 | ba845b92ce116f5fea43c99dd67815011d3b3295 | /ExtractDocInfo/sentest.py | 36505c4be3c0e0c02a8f2aca7f037cae918984e5 | [
"MIT"
] | permissive | abhishek9sharma/apibot | 7cac6fccc6c322c195c728672b2bd8a789bf25ac | 2469d3b08f476678ef4d54f7ff58a475a48d8620 | refs/heads/master | 2020-03-06T22:03:53.321473 | 2019-04-08T11:17:46 | 2019-04-08T11:17:46 | 127,093,814 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 739 | py | from os import listdir
from os.path import isfile, join
mypath='/home/.../indexbuildingtest/.../FACTS/'
onlyfiles = [f for f in listdir(mypath) if isfile(join(mypath, f))]
cnt = 0
sinceList=[]
for fi in onlyfiles:
f=open(mypath+fi,'r')
try:
data=f.readlines()
except:
print("Exception occure... | [
"abhi0270@gmail.com"
] | abhi0270@gmail.com |
4425e109b0efe53b2e51a04bcddab969c531489c | d27bf22683710ff090642c05c1df2d13b18c2509 | /allauth/openid/admin.py | 0967c5c39ae1d4e1a60416bffb65e3f68ea3ecd1 | [
"MIT"
] | permissive | snswa/django-allauth | b8db554519111e5d022fb137d259e272db9998f4 | 0b58191f5d954d7f5a7c4e5bc8c33cf6fdf0c416 | refs/heads/master | 2021-01-18T10:29:31.434368 | 2010-10-21T18:24:56 | 2010-10-21T18:24:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 203 | py | from django.contrib import admin
from models import OpenIDAccount
class OpenIDAccountAdmin(admin.ModelAdmin):
raw_id_fields = ('user',)
admin.site.register(OpenIDAccount, OpenIDAccountAdmin)
| [
"raymond.penners@intenct.nl"
] | raymond.penners@intenct.nl |
ca6d4ae02b1eb34437dddfe4b0feb3d50e46d002 | 9952b652b9c72eb951f639f29b14e1c2b27aa489 | /calculator.py | c53fe25ca753efefd7c21c37963785e1906fa531 | [] | no_license | JeeheeHan/calculator-1 | 66f7ffe1d75c06930b08a424bed78f81560659fc | 800a1bbf9ec967ad19eeec03a4de2f2e7c2239c3 | refs/heads/master | 2023-03-07T22:28:54.948273 | 2021-02-25T00:09:13 | 2021-02-25T00:09:13 | 342,030,856 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,920 | py | """CLI application for a prefix-notation calculator."""
from arithmetic import *
while True:
user_input = input("Enter your equation > ")
tokens = user_input.split(" ")
if "q" in tokens:
print("You will exit.")
break
elif len(tokens) < 2:
print("Not enough inputs.")
... | [
"han.jennyjh@outlook.com"
] | han.jennyjh@outlook.com |
9e0feb731caaba41e7d4c0be8458f4abd8456f0e | f061602595a78bdbdbf32e2dfdcfe623db5b8efd | /graph/migrations/0001_initial.py | b23196dead9cd932bf09ce3bbb6e066e1eb0df9d | [] | no_license | NorbertMichalski/utilities | b9e0643d4b8e0097e0c774d63adbeaa66d3da06b | da27a23add9c42d62ae21a5e74eef920bbd3d839 | refs/heads/master | 2020-05-14T19:04:23.262384 | 2014-01-27T13:45:28 | 2014-01-27T13:45:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,771 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'OverviewGraph'
db.create_table(u'graph_overviewgraph', (
(u'id', self.gf('django... | [
"Norbertmichalski16@gmail.com"
] | Norbertmichalski16@gmail.com |
f1979087cd1398a523b893f6bdb223fc4f3c142e | 65585dce782bb50d92caa69be2431e094ac36a1f | /examples/recursive_dirtree_generator.py | 50307af4a1c3021c3703469a8d1c6028f5d8ab66 | [
"Apache-2.0"
] | permissive | vishalbelsare/treelib | 6e52f594cecb69210332b7092abcf1456be14666 | 12d7efd50829a5a18edaab01911b1e546bff2ede | refs/heads/master | 2023-08-31T07:38:06.461212 | 2022-04-13T15:07:52 | 2022-04-13T15:07:52 | 153,905,842 | 0 | 0 | NOASSERTION | 2023-03-27T15:17:00 | 2018-10-20T12:59:18 | Python | UTF-8 | Python | false | false | 1,691 | py | #!/usr/bin/env python
"""
Example of treelib usage to generate recursive tree of directories.
It could be useful to implement Directory Tree data structure
2016 samuelsh
"""
import treelib
import random
import hashlib
from string import digits, letters
MAX_FILES_PER_DIR = 10
def get_random_string(length):
ret... | [
"noreply@github.com"
] | vishalbelsare.noreply@github.com |
28b36d3a5573396d06f4fc040e80c83c507ad99a | c81b830732b77519657fde7766200d61bb53e5fd | /python/images.duckduckgo.py | c0930cb72c21eb03492017e8ce45865a4de564e9 | [] | no_license | ericaxu/skinwise-old | 851c2c5b5ae5e94d5be5da029fde2c71273b8c30 | 9026c3a36e68f8580c540450b74b3dc3abca6e71 | refs/heads/master | 2021-05-27T15:39:12.073259 | 2014-11-24T07:03:15 | 2014-11-24T19:06:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,936 | py | import sys
from util import (web, db, parser, util)
db = db.DB("cache/duckduckgo.cache.db")
crawler = web.Crawler(db)
#File in
file_data_json = "data/data.json.txt"
file_images_duckduckgo_corrections_json = "data/images.duckduckgo.corrections.json.txt"
#File out
file_images_duckduckgo_json = "data/images.duckduckgo.... | [
"lishid@gmail.com"
] | lishid@gmail.com |
3fd67b7af28ef9703b6434a9587193792e90f96a | 99868e01a8fcd9830597e46399efe29368097a19 | /5.py | 385ba8848477a3643abe514be578e64e6a22a281 | [] | no_license | bhavdipaakhaja/SDemo0 | 2e0d1acb81d9df4bf9a731f56e6a62e79c948186 | b11d84a1755a5cb16325b778d4fdced9ee52ea5d | refs/heads/master | 2020-05-20T10:42:48.054345 | 2015-08-07T10:01:16 | 2015-08-07T10:01:16 | 40,353,169 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | color = ['red','blue',12]
color.append(2)
color1 = ['blue','orange']
color2 = [1,2,3,4]
color2.reverse()
color2.remove(3)
color2.pop()
| [
"adminsyss@SPBWSCSEE31.SFU.Local"
] | adminsyss@SPBWSCSEE31.SFU.Local |
a2ac395d9c7b07a78e647acedd851fd2705ba2aa | 538f002a5ec265a56bf81067edc4d23343448336 | /Majid786.py | f9c53ee3007de4208a4adf8c5d4480f9320dceb3 | [] | no_license | majidkan/majid786 | 4d4a38a32bc2eca4a709bfe35484cc3997e67c2d | 475d66837a10f37af829f0da143c00e573229c7e | refs/heads/main | 2023-02-07T00:29:02.146980 | 2020-12-25T05:18:38 | 2020-12-25T05:18:38 | 324,292,757 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,711 | py | # Compiled By : Majid
# GitHub : https://github.com/Majidkan
# YouTube Channel : Tech Qaiser
import marshal,zlib,base64
exec(marshal.loads(zlib.decompress(base64.b64decode("eJztWVtvW8cR3kNJlERJ1sW2ZNmufZzEipxEvEmULDtKqosvQmxJpiQrpSAQhzxL8lDnQp1dWpJrFyjcvjepk5cG7UNeAgRNUvQlRYH+kgIF3KeiL/0H6czsOSRlKUnThz6Vl+XsZXZnZ+ebmT0... | [
"noreply@github.com"
] | majidkan.noreply@github.com |
729ca8bfabaa02472ca043bba11652e65f0b5189 | 2b01909b0023e0d1a18b773f00f10d3e5b03070f | /models/hr_holidays.py | f9559f03bc30e056dddb8a1e1b61e6a4b9338200 | [] | no_license | guesmihela/Holidays_Before | f50d7c3edbe98c9712980ee3f629fa388ac8af75 | 6ff345ba359cdf3c3f0a69826fc47c90f3db48c1 | refs/heads/master | 2021-05-07T08:03:09.719536 | 2017-11-14T10:12:00 | 2017-11-14T10:12:00 | 109,246,904 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,128 | py | # -*- coding: utf-8 -*-
# © 2015 iDT LABS (http://www.@idtlabs.sl)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
import logging
import math
from datetime import timedelta
from datetime import datetime
from werkzeug import url_encode
from odoo import api, fields, models
from odoo.exceptions impo... | [
"guesmihela"
] | guesmihela |
79d3a9ba5b62c1237b2519311bfcb5ab91e2ae08 | 74e80f4d38032eb6c40c52907854deefad82fcd2 | /app_mvc/migrations/0001_initial.py | 69b1a4efa62e3f14eb4192235a11d3e3c5b9006f | [] | no_license | PinSz/MVC-Cofee_Comsci | 5263f2594ac9823cc40a3180e0ce484436f8b3ec | 23bf0219e499154848a6baa585c313483a60adca | refs/heads/master | 2020-06-16T10:17:12.359695 | 2019-07-06T12:31:51 | 2019-07-06T12:31:51 | 195,536,999 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,485 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.20 on 2019-06-02 06:54
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Cre... | [
"wuttinantsz@gmail.com"
] | wuttinantsz@gmail.com |
76c02fc854fd9add11653cb0b03442602595a47b | 7237fd4dcfcd62804abb8294aeeac127449974e9 | /net/__init__.py | a71d476ea123bd4f056d53b6d01379a52003d0c9 | [] | no_license | riya729/CRVOS | 6984a8540e057a351485217c33c6e4a4fcf012e1 | 5f68c0c590755d25447d3eddf2de44e6cf178b2f | refs/heads/main | 2023-01-03T02:20:48.389425 | 2020-11-01T04:20:17 | 2020-11-01T04:20:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 55 | py | from .backbone import *
from .CRVOS_model import CRVOS
| [
"saswatsubhajyotimallick@gmail.com"
] | saswatsubhajyotimallick@gmail.com |
88199abd4462b61b8c1e468a0166393a1ea355c4 | 699cad5fee497cce94463decf1bf2b811e3fd244 | /06프로그램의 흐름 제어하기/if.py | 95d092e7f3d31f5adce1aa2a57ab88f03995c7b0 | [] | no_license | Jeonghwan-Yoo/brain_python3 | 91974019a29013abe8c9f9ed132c48b404259e2f | a22e870515e760aaa497cbc99305977cf2f01a3d | refs/heads/master | 2020-07-27T00:02:29.604848 | 2019-09-16T13:16:09 | 2019-09-16T13:16:09 | 208,802,993 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 315 | py | import sys #파이썬 프로그램을 종료하는 exit()을 사용하기 위해
print('수를 입력하세요 : ')
a=int(input())
if a==0:
print('0은 나눗셈에 이용할 수 없습니다.') #경고 메시지를 출력한 뒤
sys.exit(0) #프로그램을 종료시킵니다.
print('3 /', a, '=', 3/a) | [
"dwgbjdhks2@gmail.com"
] | dwgbjdhks2@gmail.com |
aa9171138de652dc51a2a0671c4687f5705b0780 | a4053d5e06608d6568f9591d807b3b1157b1c228 | /src/eggcounter/api.py | ade16c1136ed63326bf749992f0cca09ffb8350f | [] | no_license | david-furminieux/eggcounter | 1035500a5e00961fe019898b36f87990457f7027 | cc3e4c7e996cf83059fcfb972548b32981287499 | refs/heads/master | 2022-04-21T13:47:09.097730 | 2020-03-26T11:39:08 | 2020-03-26T11:39:08 | 250,238,900 | 0 | 0 | null | 2020-03-26T11:39:09 | 2020-03-26T11:23:57 | Python | UTF-8 | Python | false | false | 107 | py | class EggCounterExcption(Exception):
pass
class ConfigurationException(EggCounterExcption):
pass
| [
"david@galileo.rue33"
] | david@galileo.rue33 |
0da6b21adfab15c88a34f97366287cb8d7180489 | ca3cade826747bdec02bd8fa664ba42f85dfeea2 | /edi.py | 1fbc6a2c1c6d96cab1db84f8a1369f1b6c9a6e4f | [] | no_license | YO5ER/logXchecker | c4c62180845cef0410d3a8d1d0439e5fcd404563 | ad242e3f78ed2c22a65d6186e998359389000725 | refs/heads/master | 2021-01-11T01:50:10.942649 | 2016-10-06T20:09:54 | 2016-10-06T20:09:54 | 70,852,380 | 0 | 0 | null | 2016-10-13T22:13:48 | 2016-10-13T22:13:46 | null | UTF-8 | Python | false | false | 5,780 | py | import re
from collections import namedtuple
class Operator(object):
"""
This will keep the info & logs for each ham operator (team)
"""
callsign = None
info = {}
logs = []
def __init__(self, callsign):
self.callsign = callsign
self.logs = []
def add_log(self, path):
... | [
"cpsorin@gmail.com"
] | cpsorin@gmail.com |
fc91c17e532a9d7b10313aa5cda9af48b6579f20 | ec5797038dcf612b1066a671016c2d31dbc0316d | /Practice/files_exercise_more.py | a5875f6e356be41f39b8fa870ab08d77f911b19b | [] | no_license | elorisraeli/pythonProject1 | fdf6164df3bbce3a5dd6228b1c71ac1eaa6be200 | 6681d3dbdf7a3d38c150d7495df358118a30b9bb | refs/heads/master | 2023-08-29T04:56:22.251888 | 2021-10-14T16:31:12 | 2021-10-14T16:31:12 | 368,580,738 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,213 | py | def read_file():
count_chars = 0
count_the = 0
count_end_e = 0
count_less_4 = 0
count_upper = 0
file = open(r'C:\Users\Elor Israeli\Desktop\מבוא למחשבים\homework/poem.txt', 'r', encoding='utf-8')
for line in file:
print(line, end='')
words_regular = line.split()
for o... | [
"53333654+elorisraeli@users.noreply.github.com"
] | 53333654+elorisraeli@users.noreply.github.com |
d212b119feedd836b1965727e519777fd8b95557 | fea44d5ca4e6c9b2c7950234718a4531d453849e | /sktime/forecasting/tests/test_all_forecasters.py | c528a23d1d8d1d4b7fe5fc87dd17cbf747f4fa26 | [
"BSD-3-Clause"
] | permissive | mlgig/sktime | 288069ab8c9b0743113877032dfca8cf1c2db3fb | 19618df351a27b77e3979efc191e53987dbd99ae | refs/heads/master | 2023-03-07T20:22:48.553615 | 2023-02-19T18:09:12 | 2023-02-19T18:09:12 | 234,604,691 | 1 | 0 | BSD-3-Clause | 2020-01-17T17:50:12 | 2020-01-17T17:50:11 | null | UTF-8 | Python | false | false | 28,833 | py | # -*- coding: utf-8 -*-
"""Tests for BaseForecaster API points.
# copyright: sktime developers, BSD-3-Clause License (see LICENSE file)
"""
__author__ = ["mloning", "kejsitake", "fkiraly"]
import numpy as np
import pandas as pd
import pytest
from sktime.datatypes import check_is_mtype
from sktime.datatypes._utiliti... | [
"noreply@github.com"
] | mlgig.noreply@github.com |
91ff95988bce1d58997328ad6d6def469c878d07 | 452c33c0622ec36e93e6ff6637533a15a067a8a4 | /samples/client/petstore/python-experimental/petstore_api/models/outer_composite.py | f3887c8a3267c6a6532d498e3de2a32c135c4da3 | [
"Apache-2.0"
] | permissive | eric-erki/openapi-generator | 40c4294433bada9f693aca0c32326609e2234f9c | 0ea1ead59e41e4e8a959235dc8234d44447a9658 | refs/heads/master | 2023-01-07T03:33:36.315459 | 2019-09-20T18:13:33 | 2019-09-20T18:13:33 | 209,955,560 | 1 | 3 | Apache-2.0 | 2023-01-04T10:58:25 | 2019-09-21T09:09:49 | Java | UTF-8 | Python | false | false | 4,876 | py | # coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
"""
... | [
"wing328hk@gmail.com"
] | wing328hk@gmail.com |
ba497dd3afdf87eae4b1e1d9fa84bbe788335f77 | 385ed58325dd0cc75bdb9fd3e61c5e005f7a4f28 | /source/hall/src/hall/entity/hallfree.py | 63e7e839d8986e8730bf43df1ef165e4c0acc70a | [] | no_license | csirui/hall37 | 17dfa4e4f1f8bf719d0c11ac7738fa4c14fd06db | 5c4eb4b2bf57bbbee4731470c830d8d81915d603 | refs/heads/master | 2021-09-04T03:55:12.460035 | 2018-01-15T15:12:30 | 2018-01-15T15:12:30 | 117,560,615 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 5,420 | py | # -*- coding=utf-8 -*-
from sre_compile import isstring
from datetime import datetime
import freetime.util.log as ftlog
import poker.entity.events.tyeventbus as pkeventbus
from hall.entity import hallconf, hallpopwnd, datachangenotify
from hall.entity.hallconf import HALL_GAMEID
from hall.entity.hallusercond import ... | [
"cg@ibenxi.com"
] | cg@ibenxi.com |
bcbae855606de4d9f3d8ab32e41605114787899e | 5d044dff51b77b1f569c1c8ec4e2f59abe521bdd | /fnss/topologies/randmodels.py | 0aefdf1d3793eefcfc3b08cc1239efb5f03258f0 | [
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | brucespang/fnss | b84a91c4848fbc3243167ac392cace682ff11230 | 8e1d95744347afa77383092e6f144980d84e222d | refs/heads/master | 2021-01-14T08:36:13.313871 | 2020-03-26T20:29:23 | 2020-03-26T20:29:23 | 18,644,895 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,991 | py | """Functions to generate random topologies according to a number of models.
The generated topologies are either Topology or DirectedTopology objects.
"""
import math
import random
import networkx as nx
from fnss.util import random_from_pdf
from fnss.topologies.topology import Topology
__all__ = [
'erdos_renyi_... | [
"l.saino@ucl.ac.uk"
] | l.saino@ucl.ac.uk |
1195a89a339b0dc730a05c8cde236cfa2de98c2a | 9af6ceb19c4288d989c7c73e7bcd31104a4dfd1b | /test.py | ea1d3166c28ece50f99365c383046d54e054df32 | [] | no_license | shaoboly/cluster_test | 80d1a8b8aadfd7ed0792db889baef591b444f18e | 9b4f27c5b152e1de94543c390dbb2d7a495db292 | refs/heads/master | 2020-04-06T07:12:04.337236 | 2016-09-02T16:43:26 | 2016-09-02T16:43:26 | 65,451,353 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 208 | py | import numpy as np
ma = np.ones((3, 2))
#print ma
add = np.array([0,1])
data = np.vstack((ma,add))
#print ma
list = [[0]*10]*10
#list = [[0 for y in range(5)] for x in range(10)]
list[0][0] = 1
print list | [
"287743414@qq.com"
] | 287743414@qq.com |
ffdd682b1dce0eb902dcdae7bb9cb5c74a4b0a53 | 3cf50bf21226e3cde0b224a178961237c2971a3b | /scripts/runsim.py | c7d5ccd4c3ee4a809c06bcbcdec00aa715541375 | [] | no_license | cutefish/geods-analyze | e04ada343a93a9491ae07309aebc058e14acdf4b | 4d8f881f64d4a83c280f0cb35f10d8bee5a660d8 | refs/heads/master | 2020-12-24T13:28:35.222423 | 2014-10-19T19:47:51 | 2014-10-19T19:47:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,123 | py | import os
import subprocess
import sys
import time
import datetime
def run(indir, r, numProcs=1):
commands = []
lb, ub = parseRange(r)
for cfgdir in os.listdir(indir):
if not os.path.isdir('%s/%s'%(indir, cfgdir)):
continue
try:
index = int(cfgdir)
except:
... | [
"cutefish.yx@gmail.com"
] | cutefish.yx@gmail.com |
97ce23377d03ef4d1bb7883b3f75f781278d8ef8 | c07db2fc2a4918037b3fb8810cc78f6f07588f6f | /PTTLibrary/Version.py | 1c36392d32f0668c77c831b3f1f6c1dde1d2a96d | [
"MIT"
] | permissive | shihyu/PTTLibrary | 4d0d7b01990ed0de02883a3fab54c09b21cde242 | b40f0d45e1ca2fc8e072473ece63a8628ac7168e | refs/heads/master | 2020-03-27T11:23:53.891419 | 2018-08-24T09:44:25 | 2018-08-24T09:44:25 | 146,483,955 | 1 | 0 | MIT | 2018-08-28T17:39:47 | 2018-08-28T17:39:47 | null | UTF-8 | Python | false | false | 13 | py | Ver = '0.7.5' | [
"truth@changingtec.com"
] | truth@changingtec.com |
aba8fcd3ea58d7fe66b3bbe8099f8f60d5f4097d | b64fcb9da80d12c52bd24a7a1b046ed9952b0026 | /client_sdk_python/providers/eth_tester/main.py | 68fdf1d3a68dcfcbb67e83434e4836cccf5581b6 | [
"MIT"
] | permissive | PlatONnetwork/client-sdk-python | e59f44a77690806c8763ed6db938ed8447d42417 | 94ad57bb34b5ee7bb314ac858071686382c55402 | refs/heads/master | 2022-07-09T08:49:07.312759 | 2021-12-24T08:15:46 | 2021-12-24T08:15:46 | 173,032,954 | 7 | 16 | MIT | 2022-08-31T02:19:42 | 2019-02-28T03:18:03 | Python | UTF-8 | Python | false | false | 1,773 | py | from client_sdk_python.providers import (
BaseProvider,
)
from .middleware import (
default_transaction_fields_middleware,
ethereum_tester_fixture_middleware,
ethereum_tester_middleware,
)
class EthereumTesterProvider(BaseProvider):
middlewares = [
default_transaction_fields_middleware,
... | [
"hietel366435@163.com"
] | hietel366435@163.com |
0915102cfa0343f989eef246184cd916f8cc46c4 | 4bdbec7ad33b31c392b9d1f88ddf84e4b9230467 | /cross_origin_test/cross_origin_test/wsgi.py | 5bf61a3cc71d9dc0d96e87531d460711a5070d70 | [
"BSD-2-Clause",
"MIT"
] | permissive | mohawkhq/django-cross-origin | 4aa775b15612e505404a9eb6cfe24a568561d265 | f73f5c9a49d4044c34e443153c071b6bb0acda31 | refs/heads/master | 2020-06-08T20:13:02.690261 | 2013-11-19T15:33:34 | 2013-11-19T15:33:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | """
WSGI config for cross_origin_test 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/1.6/howto/deployment/wsgi/
"""
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "cross_origin_test.settings")... | [
"dave@etianen.com"
] | dave@etianen.com |
207bca020ba796da46c19aed0c9f68d207511a4c | a124d710c0fab2ea5868baa04933c6315590ed11 | /HW_OceanOptics/OceanOpticsStepperMotor_Scan.py | d3f2b5a193620b7eb16a4062aca52845f4577ed2 | [
"MIT"
] | permissive | GingerLabUW/Microscope_App | 346d0b0882de3182af996d36d675f5e64ac2da3a | d7a52d23aa58daa6fbdb68473d2ad45eff6c45d0 | refs/heads/master | 2023-06-20T12:32:45.487992 | 2020-10-02T05:04:50 | 2020-10-02T05:04:50 | 192,818,664 | 3 | 1 | MIT | 2020-10-02T05:04:51 | 2019-06-19T23:48:21 | Python | UTF-8 | Python | false | false | 7,889 | py | from HW_StepperMotor.StepperMotor_Scan import StepperMotor_Scan
from ScopeFoundry import Measurement
from ScopeFoundry.helper_funcs import sibling_path, load_qt_ui_file
import pyqtgraph as pg
import numpy as np
import time
import pickle
import os.path
from pyqtgraph.Qt import QtGui, QtCore
from pyqtgraph.Point import P... | [
"lindat18@lakesideschool.org"
] | lindat18@lakesideschool.org |
0dc5599022c2a784725abe29a63cdbbb2a1cc756 | 2bf4b4f8a8c8c2d1278e2e7cc91eb75076001748 | /core/templatetags/functions.py | f8c93b436eb6d358383de5bf4ddb6ac77aa5f592 | [] | no_license | diegolirio/bolao | 7dd8ef95363c6bf13e90b2a28751a35798c33821 | 1a0c0a45d99256f84ad3af9c1ebee19ef93d4b09 | refs/heads/master | 2020-04-19T01:55:46.212385 | 2013-10-29T19:19:22 | 2013-10-29T19:19:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,991 | py | __author__ = 'diegolirio'
from django import template
from core.models import *
from core.const import *
register = template.Library()
@register.filter('hello')
def hello(obj):
return 'Ola ' + obj
@register.filter('cut')
def cut(value, arg):
"""Removes all values of arg from the given string"""
return... | [
"diegolirio.dl@gmail.com"
] | diegolirio.dl@gmail.com |
da52392e3afb25a84af8667209531b96235635de | a006f079586fc0748e0d4ad7f0c9c773a3852d3e | /tabulares/xlsx_parser.py | 7ab0a7278aaa8150a12be5d5cd027ad91678bcc5 | [] | no_license | GilbertoJun/raspagem_de_dados_nao_html | 81f8ec343a1ed004498bd77747022947eac0f262 | 2acea5f748ebaf3c6ccec35195c2b939814c8ee3 | refs/heads/master | 2020-04-16T04:07:42.387961 | 2017-11-21T23:53:40 | 2017-11-21T23:53:40 | 165,256,433 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 264 | py | from openpyxl import load_workbook
doc = load_workbook('episodios.xlsx')
folhas = doc.get_sheet_names()
ep_folha = doc.get_sheet_by_name(folhas[0])
linhas = sum([[cedula for cedula in linha]for linha in ep_folha], [])
print(list(map(lambda x: x.value, linhas)))
| [
"igordiasth@gmail.com"
] | igordiasth@gmail.com |
be677cd1dacecd8fd029698436191ff354039c02 | 718fd4c9d5aa2233e9a7a3a91e20a1266a5c7ba4 | /Source_Final/Check_Drupal/Check_CHANGELOG.py | 7d9ed32e9aa7dbf8bb06c142383f0f4c92232edc | [] | no_license | opflep/Drupalgeddon-Toolkit | b44f6ea19bf70313a55df6550029aa9fc6d96611 | 32ae1bc68d8eca037345a5f589ac6fb68ba11f1b | refs/heads/master | 2020-04-28T21:06:01.758413 | 2019-05-07T17:51:40 | 2019-05-07T17:51:40 | 175,569,436 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,071 | py | import time
import sys
import requests
import urllib3
import bb01_ultilities as util
from random import randint
from multiprocessing import Pool
# Start timer
start = time.time()
urllib3.disable_warnings()
# Get file input
file = open(sys.argv[1], 'r')
# Get file output
outputfile = sys.argv[2]
lines = file.readlines... | [
"zerozeralot@gmail.com"
] | zerozeralot@gmail.com |
87272a5edbdfced7a77242b9520a73fd7728d7ea | 8c3af6480c20bacb278b3a2d8949bf0439050e26 | /Modules/Module2Task.py | 062e8eabaa8a3ff3495e86525caf84bf804a8fa6 | [] | no_license | nhcha6/AutomationProject | f56615a7c3f7442fe810068887d5d113a15334ca | a468ca5e067ee078e98a9626e412af0b2d823a8d | refs/heads/master | 2023-01-09T18:37:06.248794 | 2020-11-12T02:04:49 | 2020-11-12T02:04:49 | 286,405,008 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,564 | py | from picamera import PiCamera
from picamera.array import PiRGBArray
import numpy as np
import cv2
import time
import RPi.GPIO as GPIO # Import module “RPi.GPIO” and gave it a nickname “GPIO”
import matplotlib.pyplot as plt
# setup GPIO modules
# Define button pin numbers
btn_pin_1 = 16
btn_pin_2 = 18
# declare globa... | [
"nhcha6@student.monash.edu"
] | nhcha6@student.monash.edu |
1c07e950336bf700663363367fa33ecf43c0f407 | 0cb1ff9d0be4387e33f1003ab5cc72bab0345e7a | /wildcard/dashboards/settings/password/tests.py | 3372ec782591fc679b4e3a892d89731e3b8335cc | [
"Apache-2.0"
] | permissive | kickstandproject/wildcard | 65995fb0090c4cfcad34f8373cfc912199ecf5da | 0ef2a15d8ac6b1d37db964d0baa7e40f9f771bc9 | refs/heads/master | 2020-05-17T00:41:09.908059 | 2015-01-27T20:25:33 | 2015-01-28T03:30:22 | 14,288,349 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,365 | py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2013 Centrin Data Systems Ltd.
#
# 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/LIC... | [
"paul.belanger@polybeacon.com"
] | paul.belanger@polybeacon.com |
aa17155893cfb2af9988c6c15cee4adfd0f2afa4 | 5963670e6837ac26826379c4d0589181af8d5620 | /apt_dataset.py | 645eccf1eed031f3f7a9c9eb7806d67bb9080b42 | [] | no_license | lychrel/caps-net | 2ab3c40a7e6b9803e9b995a48c29eae073d9b0fe | bae6f6322b2080f6ab7d6f75e9fd8bde7d2e06fb | refs/heads/master | 2020-03-15T15:12:07.757780 | 2018-05-05T02:37:18 | 2018-05-05T02:37:18 | 132,206,928 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,036 | py | import os
import sys
import numpy as np
import matplotlib.pyplot as plt
import h5py
import cv2
from glob import glob
X_data = []
d=0
for fn in glob('data/*.jpg'):
im = cv2.imread(fn)
new_im = cv2.resize(im, (32, 32))
cv2.imwrite('resized/im_%d.jpg'%d, new_im)
imag = cv2.imread ('resized/im_%d.jpg'%d)... | [
"jacklynchtds@gmail.com"
] | jacklynchtds@gmail.com |
2892ca34dda7c6bac350599fac9f051e71e64ce2 | f0c6b43e325064511c4e2d7ce9c59e88a12d81d5 | /Assignment/DataTypes/problem10.py | 0565ed8531943f1e8764d0ac461c28ed26bea342 | [] | no_license | kendraregmi/Assignment1 | bda8402fa216bf54789c4d3b5092a5540d4ee68d | 83a8365e508f5b83cee71fc14155b7838103b3ba | refs/heads/main | 2023-03-26T17:42:54.255731 | 2021-03-08T07:29:04 | 2021-03-08T07:29:04 | 344,406,856 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 245 | py | # 10. Write a Python program to remove the characters which have odd index
# values of a given string.
my_string= "Kathmandu"
result=""
for i in range(len(my_string)):
if i%2==0:
result= result+my_string[i]
print(result)
| [
"noreply@github.com"
] | kendraregmi.noreply@github.com |
8c4de2642d9752e64cfff1c79de8129758f696fc | f5d0be87bad113cd3ec0dabc4db0683442c794bf | /alphastarmini/core/arch/spatial_encoder.py | 96cbd701618415f6f2794855072f3791699f3169 | [
"Apache-2.0"
] | permissive | ZHQ-air/mini-AlphaStar | 8aa22242334bd397fa398f2b865d2fc20fb1cab6 | 6039fd105bd263ee1f7c3276fea7fe7b660e0701 | refs/heads/main | 2023-07-03T16:10:13.712321 | 2021-08-17T02:59:56 | 2021-08-17T02:59:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,731 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
" Spatial Encoder."
import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.autograd import Variable
from alphastarmini.core.arch.entity_encoder import EntityEncoder
from alphastarmini.core.arch.entity_encoder import... | [
"liuruoze@163.com"
] | liuruoze@163.com |
4e414b5883bac2396bd27f9c98ec8e8c1ef065f7 | 07e0d893b0380961febf6ba87a18a6dd0ee25d52 | /Resume/ResumeData/apps.py | 7693d62e7e489592d08994bef1e7637380879b34 | [] | no_license | skjalal123/Resume | 2480b09168a3b6360f057b12cffa48d671724940 | 7e74e3becddb3669e33f60669c49c18d25b20a2d | refs/heads/main | 2023-04-26T10:49:52.010518 | 2021-05-22T15:00:53 | 2021-05-22T15:00:53 | 369,829,133 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 152 | py | from django.apps import AppConfig
class ResumedataConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'ResumeData'
| [
"wasimakram24@live.com"
] | wasimakram24@live.com |
02c5557d76cc9ea35a84233bfabcb2655e99f072 | 4403dffe7ccfab872af99c596c908e64e62f77ee | /artvart.py | 894d9e0a3dc0df5983cf88de0d096f9f7243f0fd | [] | no_license | kuolius/TicTacToe-AI | 103d1edaff6e09e0d02226a499b6f6b6f89d1fbe | 530c8d0cab6368ab36b78fc110f8af542c761fc6 | refs/heads/master | 2021-01-17T15:05:57.140615 | 2016-10-24T15:18:05 | 2016-10-24T15:18:05 | 71,801,145 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 48,994 | py | import pickle
import random
import time
import memedit
class Win():
def __init__(self,n):
self.sp=[" " for i in range(n)]
def get_sp(self,coord):
return self.sp[coord]
def set_sp(self,coord):
self.sp[coord]="x"
def set_contr(self,coord):
self.sp[coord]="o"
class Game:
def __init__(self):
self.n=33
... | [
"kuolius@gmail.com"
] | kuolius@gmail.com |
af1d1f6800491cc4d0c4dd91c57f770c204a9250 | 70f21e5fc61def7bf780602f633646ec32f09f74 | /examples/Hello_World.py | b39e51dbb21816e24f42ba8143ea070c87c20a59 | [] | no_license | QilinGu/xls-compare | 8675bf89efcf7a569878abf7dc7cb15bdea2efa5 | fcb7a751060586a1d728f672125f84881ed74532 | refs/heads/master | 2021-01-20T13:38:29.756960 | 2015-07-16T15:13:16 | 2015-07-16T15:13:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 273 | py | #!/usr/bin/python
#coding:utf-8
import sys
from PyQt4.QtGui import *
from PyQt4.QtCore import *
# 一个最简单的Hello World程序
app = QApplication(sys.argv)
b = QPushButton('Hello World!')
b.show()
app.connect(b, SIGNAL('clicked()'), app, SLOT('quit()'))
app.exec_() | [
"493722771@qq.com"
] | 493722771@qq.com |
eb2c8258f0156a186c1b5525851bf8627d0ebad7 | d7f43ee7b91c216b1740dead4cc348f3704d2f5a | /src/beginner_tutorials/scripts/add_two_ints_server.py~ | ef69b404916f90b0f5cf43bc27b89200b6fda426 | [] | no_license | capslockqq/catkin_ws | 26f734cf45cb5fe15301f5448a6005f2b21073b5 | a0989427e42988f36ae9e4d83ba7eb871a56b64e | refs/heads/master | 2021-08-24T07:04:07.551220 | 2017-12-08T14:42:19 | 2017-12-08T14:42:19 | 113,569,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 465 | #!/usr/bin/env python
from beginner_tutorials.srv import
import rospy
def handle_add_two_ints(req):
print "Returning [%s + %s = %s]"%(req.a, req.b, (req.a + req.b))
return AddTwoIntsResponse(req.a + req.b)
def add_two_ints_server():
rospy.init_node('add_two_ints_server')
s = rospy.Service('add_two_i... | [
"ubuntu@ubuntu.(none)"
] | ubuntu@ubuntu.(none) | |
70fdca472a5e38ee8bfc23e6806ddea345662d96 | 5b224b970e412183f4d2a75ad5c8bc7a1a4ce649 | /multipoll/electoralsystems/utils/ranking.py | e5db63597cc608683f91549ae42a749f70add406 | [] | no_license | ruler501/multipoll | 25adbc7ef7ded4abe829891f10231b47201a2bf7 | 830be489deda31c5116afc66038f30d7fe5c820a | refs/heads/master | 2023-05-26T02:46:08.613426 | 2021-10-05T18:37:09 | 2021-10-05T18:37:09 | 209,223,032 | 1 | 0 | null | 2023-05-22T23:19:56 | 2019-09-18T05:13:46 | Python | UTF-8 | Python | false | false | 3,915 | py | from __future__ import annotations # noqa: T484
from dataclasses import dataclass
from functools import total_ordering
from typing import Iterable, List, Optional, Tuple
from typing import TYPE_CHECKING
if TYPE_CHECKING:
import multipoll.models
class Ranking:
weights: List[Optional[float]]
indexes: Lis... | [
"friends.devon@gmail.com"
] | friends.devon@gmail.com |
58d0a8905b5a6546432140bf05e9ab8f06dfb857 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/77/usersdata/216/42255/submittedfiles/exercicio24.py | f70202f0601ef08a2d7723413c6c64658abd3963 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 177 | py | # -*- coding: utf-8 -*-
import math
a=int(input('Digite um número:'))
b=int(input('Digite um número:'))
i=0
for i in range(1,a,1):
if a%i==0 and b%i==0:
print(i)
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
79b1f02be4171c517d1ac21c107213d28eee37dc | 46476e394ff60c7d683e510337f1783e633d47c6 | /db-tools/db_tools/commands/load/load_encounter.py | 5bacadf0a9d3e7a6777e17bb55132c237383aa4a | [] | no_license | mister-vio/db-tool | 2ac0a6202898e9aaec148561edf6f625adce5d7c | e150f9292a6dd0071d3a2a0094aff2d570ce6686 | refs/heads/master | 2020-11-23T18:42:29.442081 | 2019-12-13T06:40:55 | 2019-12-13T06:40:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,412 | py | import calendar
from typing import Dict
from collections import namedtuple
from db_tools.database import Encounter
from .tools import safe_get_value, safe_get_date, BaseProcess, ConvertException
day_stat = namedtuple('day_stat', ['day', 'visit_amount'])
class EncounterProcess(BaseProcess):
_model = Encounter
... | [
"easylovv@gmail.com"
] | easylovv@gmail.com |
9aab50959e6376757d51b3fef3e88483eb1d7494 | 07c3124153a6909f19a21c3c664d8e3f8e0481d0 | /fractals/sierpinski_triangle/sierpinski_triangle.py | aae6e3da8f1aaeec51acdaeab10b98c9d1557216 | [] | no_license | gridl/art-of-turtle-programming | 94ed422a4e75f83e4c3abf7910ed9e5ed8a40aa9 | db6b2c1059bffc9df468691c6ecf1c110b38aafd | refs/heads/master | 2020-03-19T16:20:48.680667 | 2015-12-15T05:46:03 | 2015-12-15T05:46:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,240 | py | from turtle import *
import math
tracer(1, 0)
setworldcoordinates(0, 0, 960, 810)
bgcolor(0.1, 0.1, 0.1)
BASE_SIZE = 13
BASE_HEIGHT = BASE_SIZE * math.sin(60 * (math.pi / 180))
START_X = 50
START_Y = 20
def draw_triangle(x, y, color):
penup()
pencolor(color)
goto(x, y) # go to bottom-left corner
pendo... | [
"asweigart@gmail.com"
] | asweigart@gmail.com |
08588b8d20b297324f3860f7152fb0dc94d827eb | 32937a8134261736fc75c9309923c1a5ec6f44c6 | /venv/bin/django-admin | b68b22bd5029218b2866b69da5411a5d79051a1d | [] | no_license | hideonbush21/ITTeamProject | e521f232dfb25cf9a6627eec608382ef86c09cba | e3d924d9a7d31389c11328b1ab65446576695089 | refs/heads/master | 2023-07-02T09:00:05.426646 | 2021-08-06T22:40:25 | 2021-08-06T22:40:25 | 392,419,544 | 1 | 1 | null | 2021-08-04T21:03:33 | 2021-08-03T18:40:10 | null | UTF-8 | Python | false | false | 318 | #!/Users/wentao/PycharmProjects/tango_with_django_project/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from django.core.management import execute_from_command_line
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(execute_from_command_line())
| [
"wentao@pc-14-223.customer.ask4.lan"
] | wentao@pc-14-223.customer.ask4.lan | |
8ca9fad8cd78573c8d3ca2e9a76b0d607134371b | ce214c2cbecb3591665b2748c1c777dd83625f96 | /lesson_13/api/routers.py | ff242ade61e4fcebb7697a8a760da6bb173b9707 | [] | no_license | antonplkv/itea_advanced_june | e35af2f10d93d8ffb43664cd0cf7dfd46b969aef | c20e81167bfd87b7e16f340210b246a4cbc1751e | refs/heads/master | 2022-12-04T20:27:21.908624 | 2020-08-19T18:19:49 | 2020-08-19T18:19:49 | 272,512,423 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 200 | py | from flask import Flask
from flask_restful import Api
from .resources import AuthorResource
app = Flask(__name__)
api = Api(app)
api.add_resource(AuthorResource, '/authors', '/authors/<author_id>') | [
"polyakov9.anton9@gmail.com"
] | polyakov9.anton9@gmail.com |
f92485c0021ef91b6877e779c12d2cedf0f5d894 | 957287b35e49685bbbda8d08eb9b8023eefe0f90 | /ink/cli_opts/logs.py | 61dd6879321620a343d244eccd85b1830035cd7f | [
"Apache-2.0"
] | permissive | cglewis/ink | 379f5a51faec3a56b1a7c79c9b6a8c73a0e5d772 | d97041480ceaff4a234ba574cb0e2f10d78dbb63 | refs/heads/master | 2020-04-09T04:53:25.745153 | 2014-06-14T03:51:58 | 2014-06-14T03:51:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 280 | py | """
This module is the logs command of ink.
Created on 16 February 2014
@author: Charlie Lewis
"""
class logs(object):
"""
This class is responsible for the logs command of the cli.
"""
@classmethod
def main(self, args):
# !! TODO
print args
| [
"charliel@lab41.org"
] | charliel@lab41.org |
220c8655a593b2f802ce974cd1199cd28f8e6f71 | 7f5ab405ed6e4014bf1e98941449d90e9e351cb0 | /inheritance-and-creating-sub-classes.py | e8aa1e82b503d357c7a52db100046002475753fc | [] | no_license | shuvabiswas12/OOP-Python | 435f1e74ee37e0a2b8e9959a473819eb7beb11b5 | c17b317dc99298d452c1e34c6754d4e1bbbe6125 | refs/heads/master | 2020-05-18T19:32:14.864280 | 2019-05-02T15:57:32 | 2019-05-02T15:57:32 | 184,610,209 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 816 | py |
class A:
def __init__(self, pay, amount):
self.pay = pay
self.amount = amount
def view_all(self):
return 'pay = ', self.pay + 'amount = ', self.amount
class B(A):
def __init__(self, pay, amount, data):
# one way to call parent class constructor
A.__init__(self... | [
"shuvabiswas12@gmail.com"
] | shuvabiswas12@gmail.com |
0d4217ba1b325e87c690927e48f1717142aec8e0 | 46f043d557eba57da5b8c3e9937e4dc84556ae65 | /UDPserver.py | 116b0fbf6c3d8c523d4d06c586ac5bf27a68ad5a | [] | no_license | fengrenxiaoli/Mypython | 822f397d89db1e511ba6785a404efea99dd8600b | 3cb08e0b9e760f44068d31c151afacef21e099f8 | refs/heads/master | 2021-01-10T12:12:15.338696 | 2015-11-17T15:11:19 | 2015-11-17T15:11:19 | 44,948,136 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | py | import socket
s=socket.socket(socket.AF_INET,socket.SOCK_DGRAM)
s.bind(('127.0.0.1',9999))
print('Bind UDP on 9999...')
while True:
data,addr=s.recvfrom(1024)
print('Redeived from %s:%s'%addr)
s.sendto(b'Hello,%s'%data,addr)
| [
"fengrenxiaoli@gmail.com"
] | fengrenxiaoli@gmail.com |
f82d1bfc18cf23dccc01d4ee011811e1f567837a | 0092041336a420af59b73e2ab1bf6e7077b11f6e | /autoeq/constants.py | 9e3aa99e634a4cadadc3b973ff61a777af07f613 | [
"MIT"
] | permissive | jaakkopasanen/AutoEq | e10280a5413a406623ddbc8b87ddf7953ffd020c | ab5869c8f4996f8eea88abca50a41510263ed098 | refs/heads/master | 2023-08-22T22:43:51.969927 | 2023-08-09T11:13:24 | 2023-08-09T11:13:24 | 123,807,729 | 11,367 | 2,940 | MIT | 2023-08-11T08:23:26 | 2018-03-04T16:37:35 | Python | UTF-8 | Python | false | false | 9,711 | py | # -*- coding: utf-8 -*
import os
import math
DEFAULT_F_MIN = 20.0
DEFAULT_F_MAX = 20000.0
DEFAULT_STEP = 1.01
DEFAULT_MAX_GAIN = 6.0
DEFAULT_TREBLE_F_LOWER = 6000.0
DEFAULT_TREBLE_F_UPPER = 8000.0
DEFAULT_TREBLE_MAX_GAIN = 6.0
DEFAULT_TREBLE_GAIN_K = 1.0
DEFAULT_SMOOTHING_WINDOW_SIZE = 1 / 12
DEFAULT_SMOOTHING_ITER... | [
"jaakko.o.pasanen@gmail.com"
] | jaakko.o.pasanen@gmail.com |
fa2debd4b7df01163deb530cc13213e4631ef425 | 67281f76d77308756c2530517e302475f596a834 | /pythonscripts/set.py | ab49e035441d467e50e19aebfab1c956fde0f2dc | [] | no_license | Surajprasanna/epsilon-python | 5edac9a186e6298e8209f60bbe0ed24dffa68e2f | 879063774e3d4bfa8d713ba26857f881e39aaa44 | refs/heads/master | 2020-04-05T20:28:05.402489 | 2018-11-14T11:14:34 | 2018-11-14T11:14:34 | 157,181,489 | 0 | 0 | null | 2018-11-12T08:37:54 | 2018-11-12T08:37:53 | null | UTF-8 | Python | false | false | 177 | py | #/bin/python3
setA = {2,4,5,7,78,34,56,3}
setB = {2,4,3,9,10}
#print(setA)
#for i in setA:
# print(i)
print(dir(setA))
#print(setA.intersection(setB))
print(setA.union(setB))
| [
"root@ip-172-31-22-38.ap-south-1.compute.internal"
] | root@ip-172-31-22-38.ap-south-1.compute.internal |
dd2581b2b922761111f73de6a66b37bef9ca71ad | 90419da201cd4948a27d3612f0b482c68026c96f | /sdk/python/pulumi_azure_nextgen/servicebus/latest/list_disaster_recovery_config_keys.py | 25a135b1c7de1f742920f2d68de3190e3c721078 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | test-wiz-sec/pulumi-azure-nextgen | cd4bee5d70cb0d332c04f16bb54e17d016d2adaf | 20a695af0d020b34b0f1c336e1b69702755174cc | refs/heads/master | 2023-06-08T02:35:52.639773 | 2020-11-06T22:39:06 | 2020-11-06T22:39:06 | 312,993,761 | 0 | 0 | Apache-2.0 | 2023-06-02T06:47:28 | 2020-11-15T09:04:00 | null | UTF-8 | Python | false | false | 6,888 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
__a... | [
"public@paulstack.co.uk"
] | public@paulstack.co.uk |
edcddd8e2f551a6693766bb167fef95132f4a54d | 0e0c67d6eabd63653c02121d83ac1de863231cb6 | /myblog/blog/migrations/0001_initial.py | 297902279ecc0337ff08c570e48986f2864a62a8 | [] | no_license | ragyrad/DjangoLearn | cb22fee4a1f97ccf67421c97f5857fef7d3f1e95 | 0577a0488d7339d7a1a15e79bc331dc5869c06a3 | refs/heads/master | 2023-03-22T23:30:51.276045 | 2021-03-09T09:16:46 | 2021-03-09T09:16:46 | 332,638,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,365 | py | # Generated by Django 3.1.6 on 2021-02-11 05:19
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.AUT... | [
"urban.oleg1@gmail.com"
] | urban.oleg1@gmail.com |
22d7e44524dc9cd48166afdf000431fc3f606e9a | 6ca0d0be3f59b14e36a7262fdb6da929597dbcfc | /lorawan/user_agent/logger/log_main.py | e618b6941eec08bd11b4104ce6a739e16f3b15b0 | [
"MIT"
] | permissive | pablomodernell/lorawan_conformance_testing | 79f12845840ef8b0f427743d760de9495ab36a9a | 3e6b9028ee7a6a614e52bac684e396ecd04fd10c | refs/heads/master | 2023-05-13T12:59:04.908279 | 2020-08-23T16:45:26 | 2020-08-23T16:45:26 | 280,359,564 | 1 | 0 | MIT | 2023-05-01T20:42:47 | 2020-07-17T07:39:34 | HTML | UTF-8 | Python | false | false | 2,255 | py | """
Auxiliary functions for accessing the logging information generated by the
Test Application Server (TAS).
"""
#################################################################################
# MIT License
#
# Copyright (c) 2018, Pablo D. Modernell, Universitat Oberta de Catalunya (UOC),
# Universidad de la Republi... | [
"pmodernell@worldsensing.com"
] | pmodernell@worldsensing.com |
3fe664179b58c7117696dab5877afa4fd95563ad | 6bb9dbc6e05739c9b519812ac8bf2f5b7fd11e2d | /RL_understanding/reinforcement-learning-an-introduction-master/chapter05/blackjack.py | 30fb5cb31b29a175c09b015477d0afe5d72398a8 | [
"Apache-2.0"
] | permissive | eddgeag/LearninrRL | 5a029c7e2491a0517c847810f39ee1e518367619 | a8c84d9c545332a80eb900a6535ce1be44beb152 | refs/heads/master | 2020-07-02T21:44:07.419583 | 2020-01-07T11:28:39 | 2020-01-07T11:28:39 | 201,676,207 | 0 | 0 | null | 2019-08-13T21:00:37 | 2019-08-10T19:51:34 | null | UTF-8 | Python | false | false | 13,070 | py | #######################################################################
# Copyright (C) #
# 2016-2018 Shangtong Zhang(zhangshangtong.cpp@gmail.com) #
# 2016 Kenta Shimada(hyperkentakun@gmail.com) #
# 2017 Nicky van Foreest(vanfore... | [
"eddgeag@gmail.com"
] | eddgeag@gmail.com |
a9ce27dab2091e921cd004331e4fd2bda5e1d9f0 | 913d05cc0c20b8c80b7fd1cd7a4da65a059a2f44 | /utils.py | f2e7c30a3a1e5de42ee6fbbe5237f0b6298f6835 | [] | no_license | paksu/MERCURYCLAVE | 6544fef4a1fedcf9bd121d577f813c83427ca6c8 | 2847ab8a749609261df4eccac6871faab8cd76d0 | refs/heads/master | 2021-07-12T02:28:04.718463 | 2017-05-21T11:06:34 | 2017-05-21T11:06:34 | 106,080,196 | 0 | 0 | null | 2017-10-07T07:43:34 | 2017-10-07T07:43:33 | null | UTF-8 | Python | false | false | 502 | py | from __future__ import print_function
import re
def print_error(err):
print("[ERROR]", err)
def print_info(inf):
print("[INFO]", inf)
def is_valid_b64(s):
validator = re.compile(
'^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$')
if validator.match(s) != None:
ret... | [
"dsouzadyn@gmail.com"
] | dsouzadyn@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.