blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c26c655c0b2acadf4ab6b73048fb199086ea3982 | 9a9d92e37ebffef3dcd506866b42078c2f77e352 | /aula14/loop_while14.py | 9b22f602cc64ec251c044e05a44a344803ac5fdd | [
"Apache-2.0"
] | permissive | Eduardo-Quirino/python | 56aef1a1a8db757dacddbd9db458f3b35ab0180f | acece64c8ed9f35bc94d111861acf65b50ae263c | refs/heads/main | 2023-07-30T11:15:59.196167 | 2021-09-28T20:12:32 | 2021-09-28T20:12:32 | 407,590,194 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 124 | py | #Loop While
i =0
while i <= 10:#condição
print(i)
i += 1
print("Fim do Loop")
input()#mantem janela aberta
| [
"edu.3532@gmail.com"
] | edu.3532@gmail.com |
95919c9c184914a3207a5e31d14b2c8fc5db7b60 | a621633460ba31b87f923fcaea3643a0d1637750 | /bitdefender/test1/trav.py | a26aca1ba138f6ebd57da321d1f0d139229e689c | [] | no_license | BogdanFi/cmiN | edeb8316fcfd23c8525066265bac510f7361ebed | b3938f025f837df5213c8602e5854a46f2d624d3 | refs/heads/master | 2020-04-28T09:01:26.127160 | 2018-07-03T16:12:08 | 2018-07-03T16:12:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,022 | py | #! /usr/bin/env python
import sys
import os
import hashlib
LET = "Z"
CHUNK = 1024
STR = "This file is ok"
LOG = "fisiere.log"
PATH = None
def log(string=""):
with open(LOG, "a") as fout:
fout.write(string + "\n")
def get_md5(path):
md5Obj = hashlib.md5()
try:
f... | [
"cmin764@yahoo.com"
] | cmin764@yahoo.com |
e5ed60b0ee074f5aef6c1a6a87a551154b7fa049 | 3bda43b935e8009e1c57afbb3538a6fc595f6a6c | /pattern9.py | 5ca6f2d5b70097f25abdccdf6cdfa5c71bb47488 | [] | no_license | Somi-Singh/pattern_loop | 51639ee4c01c9cc1aa50e6aa1a7471dea977e499 | aa5881f0098cfcdc54428237159ba0d33832cc33 | refs/heads/main | 2023-06-06T04:28:36.608971 | 2021-07-01T10:55:40 | 2021-07-01T10:55:40 | 382,000,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 105 | py | i=1
while i<=4:
j=4
while j>=i:
j-=1
print(chr(1+64),end="")
print()
i+=1 | [
"noreply@github.com"
] | noreply@github.com |
31932de0f7c8b903567b54db32e63c2a47e3474c | 96b66f843316a25e0ba200504f4207100466c0c8 | /ex34.py | 1617ebd5db616c296029f44547e4e3e7fec8306f | [] | no_license | LiHaiBaoBao/learn_python_the_hard_way | 7ad382ab5013e17d85b8ea8c94c03c586714ee9d | ebbb1c65b51a3b3a9fc2241b867fd3e8b3eba589 | refs/heads/master | 2020-03-09T00:58:35.003127 | 2018-04-07T06:07:51 | 2018-04-07T06:07:51 | 128,501,691 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,920 | py | from sys import exit
def gold_room():
print "This room is full of gold. How much do you take?"
next = raw_input("> ")
if "0" in next or "1" in next:
how_much = int(next)
else:
dead("Man, learn to type a number.")
if how_much < 50:
print "Nice, you're not greedy, you win!"
... | [
"382174276@qq.com"
] | 382174276@qq.com |
875afbf834908f7087f2238ae6777345a6240b06 | ca7e89098705ee47be11b05fe1a113bc20799808 | /postjob.py | c5aa26d83dd50946c76a6e3549291afea43d812d | [] | no_license | SinjinJang/python-opencv-imagecropper | 30d64c9fbb1145315b50fcc184107ef8ae460a47 | c720da676bb06276842114462120cf78c789e7e3 | refs/heads/master | 2020-06-02T10:37:24.080929 | 2019-11-06T05:03:35 | 2019-11-06T05:03:35 | 191,129,169 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,722 | py | import argparse
import os
import sys
import cv2
import numpy as np
def do_main(dir_in, dir_out, size):
files = [{'src': os.path.join(dir_in, file), 'dst': os.path.join(dir_out, file)}
for file in os.listdir(dir_in) if os.path.isfile(os.path.join(dir_in, file))]
for file in files:
img = ... | [
"sinjin@stronghold.kr"
] | sinjin@stronghold.kr |
bfce8be8e2f33e2bafc648ad67f88ca229a914d5 | 0f7f8604cc56dfa40b09693c16c20ba5ff80ac9e | /NewPlayer/Day11.py | 2561766151b66d14fb833b3088e52ae16d57b80a | [] | no_license | AndrewXuYes/LeeCodePython | db5f0c8d19b395c94fa571f1615e9bd2e8f5ca97 | b69026bae1b56ea0e2f41688aa510afc29fb8d0f | refs/heads/master | 2022-04-15T09:35:58.920696 | 2020-04-11T02:14:07 | 2020-04-11T02:14:07 | 200,052,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,500 | py | import json
import requests
def main1():
f = None
try:
f = open('1', 'r', encoding='utf-8')
print(f.read())
except FileNotFoundError:
print('无法打开指定的文件!')
except LookupError:
print('指定了未知的编码!')
except UnicodeDecodeError:
print('读取文件时解码错误!')
finally:
... | [
"522988922@qq.com"
] | 522988922@qq.com |
ccbad47dcdb8cd7490b0ffa376dcd0241742689b | 1968f0c1eb15671cf194396c36fef48b15d5b41c | /invisible_cloak.py | c2d71eda20355601b4894b8a80debb9bf2086f5d | [] | no_license | pipaliyajaydip/invisible-cloak | 2e1b906b6468120f997dece00bc4c18aaf98ec05 | c9fee3101d7955a75fe24bfa4375be17d14b99dd | refs/heads/master | 2022-12-26T23:42:01.655518 | 2020-10-01T10:39:10 | 2020-10-01T10:39:10 | 300,242,979 | 0 | 0 | null | 2020-10-01T10:44:16 | 2020-10-01T10:44:16 | null | UTF-8 | Python | false | false | 2,993 | py | import cv2
import numpy as np
import time
# replace the red pixels ( or undesired area ) with
# background pixels to generate the invisibility feature.
## 1. Hue: This channel encodes color information. Hue can be
# thought of an angle where 0 degree corresponds to the red color,
# 120 degrees corresp... | [
"noreply@github.com"
] | noreply@github.com |
58f793fa360ca73d3b4cbe3845e7334c9d7d297b | e2b8bb620aa714db3b92787b4adc24257153303b | /escapeRoom/collide.py | 8c2ffd3562004f3fa2c8b0ed7d7ee0ca3b17f88f | [] | no_license | xaveng/escapeRoom | b4f31b275bab72d7d3035d55f0f59c3995a0df10 | 965cef4fb8b97a988201af79ffaf9409dc64904c | refs/heads/master | 2021-01-23T06:34:57.753306 | 2017-05-31T05:48:10 | 2017-05-31T05:48:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,338 | py | from typing import Tuple, Optional, Union, List
import mmath as mm
from actor import Actor, ActorGeneral
import myclib as c
######## Interface ########
def checkCollision(fromCol:Union["Aabb"], fromColParent:Optional[Actor], toCol:Union["Aabb"], toColParant:Optional[Actor]) -> bool:
if isinstance(fromCol, Aabb)... | [
"woos8899@gmail.com"
] | woos8899@gmail.com |
c7fe3a7779dc3465e25fd8218e2eea0dcfb15a67 | a3b9775a4a08ab47e3f07d27727612b082763919 | /env3/src/profiles/migrations/0004_profile_location.py | af41a3c231914b01b4a79f29a902304e209609d0 | [] | no_license | farzadrab/tryDjango | d7c09b076ab0aa532c735d0477e21fcd5ee1d0f6 | 9e47debfb51845694e975e9467337fa11b5241dd | refs/heads/master | 2020-04-22T11:48:56.522672 | 2016-09-09T15:22:30 | 2016-09-09T15:22:30 | 67,788,957 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 474 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2016-09-09 14:11
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('profiles', '0003_auto_20160909_1314'),
]
operations = [
migrations.AddField(
... | [
"rm.farzad@hotmail.com"
] | rm.farzad@hotmail.com |
de2b3ca082ab4f20ce2b31fbaee41e83bbb2fcf7 | 389df8fab81d8021286ddafa9cc7dee3c23004df | /spacq/gui/config/pulse.py | 7fd1ae5388928540aab8fd899aa88f08aa96b6b0 | [] | no_license | jvosk/SpanishAcquisitionPy3Compliant | 99d5633311b4a69b3318657dcc2f9d96c041c208 | 02d38c4cbfed11f1fe5a6e4242643aea13f66647 | refs/heads/master | 2021-01-20T20:14:56.358337 | 2016-08-16T21:50:12 | 2016-08-16T21:50:12 | 63,440,025 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,923 | py | from functools import partial
from threading import Thread
import wx
from wx.lib import filebrowsebutton
from wx.lib.scrolledpanel import ScrolledPanel
from spacq.interface.pulse.parser import PulseError, PulseSyntaxError
from spacq.interface.pulse.program import Program
from spacq.interface.resources import Resource
... | [
"joshuavoskamp@gmail.com"
] | joshuavoskamp@gmail.com |
13d04fcb0c47f0b5eaa3044125faa9f70fe6f6cf | f441d86d1de8e1d75057f5c8c92ae012c2e35b92 | /GEOS_Util/coupled_diagnostics/verification/levitus/__init__.py | 23c96548ce4b269997fde00dd498a1783bf51537 | [] | no_license | ddlddl58/GMAO_Shared | 95f992e12b926cf9ec98163d6c62bac78e754efa | e16ddde5c8fab83429d312f5cff43643d9f84c94 | refs/heads/master | 2021-05-20T20:46:26.035810 | 2020-04-01T20:32:10 | 2020-04-01T20:32:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,574 | py | import os
import scipy as sp
from my_lib import dset, grid
import datetime
from dateutil import rrule
__all__=['ctl']
class Ctl(dset.NCDset):
def __init__(self):
name='Levitus'
oceanval=os.environ.get('OCEANVAL',
'/discover/nobackup/projects/gmao/oceanval/v... | [
"yury.v.vikhliaev@nasa.gov"
] | yury.v.vikhliaev@nasa.gov |
2aeace56ea0b94aa977eb477a1d735c93c4925aa | f2be5c384cfaf10b8c0d1299c2a2173b5c470362 | /py_socket.py | 764a988653ea76f6fbe136f19f621af9c8ac3103 | [] | no_license | RunningPixEl/Hello-World | 2397f4fb83385e897ff7915b1cb309ad0ea06406 | 006068202e12e92f48234583192e8309e076b526 | refs/heads/master | 2021-06-26T05:13:59.864153 | 2020-01-21T15:04:57 | 2020-01-21T15:04:57 | 98,280,468 | 0 | 0 | null | 2017-07-26T01:08:07 | 2017-07-25T07:59:18 | null | UTF-8 | Python | false | false | 2,993 | py | # !/usr/bin/python
# -*- coding: UTF-8 -*-
#
# import socket # 导入 socket 模块
#
# s = .socket() # 创建 socket 对象
# host = socket.gethostname() # 获取本地主机名
# print host # DESKTOP-ME6P9CV
# port = 12345 # 设置端口
# s.bind((host, port)) # 绑定端口,将套接字绑定到地址,在AF_INET下,以元组(hos... | [
"noreply@github.com"
] | noreply@github.com |
7d77677288fdc9658a84e737d5dddef4b5fa3c15 | 867c88c0db4dac62ecb38dc8315d4cdfa85744a5 | /program/test_submission3.py | 174477c2da9c3a648c53d863d3b47230717b95ed | [] | no_license | platypus1989/numerai | e377f33e05695e853a513c6ce16a1e877c7d3bd5 | 283d245893076d9736335f8f2090b4e5b00d31cc | refs/heads/master | 2020-03-18T20:23:23.882818 | 2018-11-15T20:52:14 | 2018-11-15T20:52:14 | 135,212,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,646 | py | import pandas as pd
import numpy as np
from sklearn.metrics import accuracy_score, log_loss
import lightgbm as lgb
from time import time
from sklearn.svm import SVC
from sklearn.tree import DecisionTreeClassifier
from sklearn.ensemble import RandomForestClassifier
from sklearn.linear_model import LogisticRegression
fro... | [
"n0269042@lm.lmig.com"
] | n0269042@lm.lmig.com |
8d2be2f7615f7caa3925f9200b966752a6b53993 | f878260bbca242a15cd3b069ed40f5c0704a771b | /datacat/db/__init__.py | 7eb57874459ae91af67887207204bc5d2d170520 | [] | no_license | rshk-archive/datacat-poc-140825 | 2485c561746ea70852fdbfd9b46eee97edc6cda7 | 626ad8b36655c69e93093be1d74cfb503ec9ba19 | refs/heads/master | 2020-06-01T04:16:32.752067 | 2014-09-26T14:02:03 | 2014-09-26T14:02:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,146 | py | from collections import MutableMapping
import json
import functools
from flask import g
import psycopg2
import psycopg2.extras
from werkzeug.local import LocalProxy
def connect(database, user=None, password=None, host='localhost', port=5432):
conn = psycopg2.connect(database=database, user=user, password=passwor... | [
"redshadow@hackzine.org"
] | redshadow@hackzine.org |
a05e4fa1f1c5fa3696fae51ce274f1ad101d3175 | 15131f068ff3f457c4f405310cd375274d913c63 | /backend/long_limit_29117/settings.py | 75a0a84a46ff0f64d98eeb0b6ddb2709b73bb5a8 | [] | no_license | crowdbotics-apps/long-limit-29117 | 749cf2c7a7d2e2fcdb9464eb327a4f6799e0f18c | de1f20fe4298f9833f4c3c10bedd689d0b078024 | refs/heads/master | 2023-06-22T16:29:54.695478 | 2021-07-24T17:16:00 | 2021-07-24T17:16:00 | 389,157,594 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,927 | py | """
Django settings for long_limit_29117 project.
Generated by 'django-admin startproject' using Django 2.2.2.
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/
"""
imp... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
64faf82afc1c94f54f8752695c64bee119a63459 | cd7ba8bf9b9be1a241824b18876884b401487929 | /backend/app/db/schemas/node_threat_node_threat_type_mapping.py | 85ecda38138a45059a6418d8f6a44954369c31b5 | [
"Apache-2.0"
] | permissive | secveer/ace2-gui | 431d0a71480a312b47e220a8ca48fcdc27b0e844 | e3b1ad6c29cc7028e1765414b00e679357f68168 | refs/heads/main | 2023-06-23T04:26:56.456195 | 2021-07-14T14:48:55 | 2021-07-14T14:48:55 | 386,599,325 | 1 | 0 | Apache-2.0 | 2021-07-16T10:33:25 | 2021-07-16T10:33:25 | null | UTF-8 | Python | false | false | 572 | py | from sqlalchemy import Column, ForeignKey, Table
from sqlalchemy.dialects.postgresql import UUID
from db.database import Base
node_threat_node_threat_type_mapping = Table(
"node_threat_node_threat_type_mapping",
Base.metadata,
Column(
"node_threat_uuid",
UUID(as_uuid=True),
Foreig... | [
"22526682+automationator@users.noreply.github.com"
] | 22526682+automationator@users.noreply.github.com |
a135db2c9afff8bc59d6785b2b646725fb751016 | d1376938086c65e8b7d5d0d9618278fd8dfb1cfd | /Python/Scripts/j1.py | 4611b83b23d87d43cd126568360077f5a97b5f03 | [] | no_license | DataEdgeSystems/Project | a6d235b1c0800a9ffb19e6163e69f07918ebce29 | 09ec31b385c7be62275079a7fb1826377d861365 | refs/heads/master | 2022-11-20T18:39:22.850454 | 2020-07-17T06:46:16 | 2020-07-17T06:46:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | py | import turtle
turtle.write("welcome")
turtle.showturtle()
turtle.forward(300)
turtle.down()
turtle.right(90)
turtle.showturtle()
turtle.color("green")
turtle.circle(50)
turtle.home
turtle.goto(100,100)
turtle.showturtle()
| [
"ripattna@gmail.com"
] | ripattna@gmail.com |
e845609c5e19bc9814ba6a8e189484b2eb4d5df5 | 0a07d0f59cd7eb8ce817c74cc114d177f56306e3 | /06_nested_loops/exercise/01_number_pyramid.py | 3a08d4af43ad1af6f05e9b5e8569beb0b3d261cf | [] | no_license | M0673N/Programming-Basics-with-Python | 10c777cec5ed4fcbf9f18dc7c81daa3c7bd406ad | cd23423d49f7fb0423d9f87c5b23dce3275bac21 | refs/heads/main | 2023-05-27T16:13:11.329033 | 2021-06-06T19:00:24 | 2021-06-06T19:00:24 | 360,933,804 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 237 | py | n = int(input())
number = 1
for row in range(1, n + 1):
for col in range(1, row + 1):
if number == n + 1:
break
print(number, end=" ")
number += 1
if number == n + 1:
break
print()
| [
"m0673n@abv.bg"
] | m0673n@abv.bg |
78c1605b5a8ae190998239bac4d4003d7802c2bf | 6abcc03e9b13059984aa01fe47f26f393b1a1480 | /portfolio_app/views.py | 82c9d3f6d0df27b3270397af6c1e16e487e8b9ef | [] | no_license | pwidders/portfolio | b463ec1ec6ced6f191a6474718df665897da6fc9 | fdf648f6ac05f0523d685e6330d5db63256a4a2f | refs/heads/master | 2022-11-17T17:41:59.983017 | 2020-07-15T04:49:55 | 2020-07-15T04:49:55 | 278,418,271 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 436 | py | from django.shortcuts import render
from django.core.paginator import EmptyPage, PageNotAnInteger, Paginator
from .models import Project
def home(request):
projects = Project.objects.all()
paginator = Paginator(projects, 6)
page = request.GET.get('page')
paged_projects = paginator.get_page(page)
... | [
"pwidders@hotmail.com"
] | pwidders@hotmail.com |
b0489bd24caeaaf0ce9996ca35046cfccf718050 | ac8b725681e25177c5de3daf58afe00135241d0f | /leetcode/0136_single_number.py | ce6423738f0aa2d3b5644e971dda3130faedfdde | [
"MIT"
] | permissive | jacquerie/leetcode | 7af100ea1d7292c8c3da34210cf04d891be5561b | 0cb213b9c7bcb6efa11210e9ebc291befb560bb9 | refs/heads/master | 2022-05-19T22:19:46.284065 | 2022-03-27T02:41:58 | 2022-03-27T02:41:58 | 129,323,741 | 3 | 0 | MIT | 2021-01-04T01:41:50 | 2018-04-12T23:51:56 | Python | UTF-8 | Python | false | false | 330 | py | # -*- coding: utf-8 -*-
class Solution:
def singleNumber(self, nums):
result = 0
for num in nums:
result ^= num
return result
if __name__ == "__main__":
solution = Solution()
assert 1 == solution.singleNumber([2, 2, 1])
assert 4 == solution.singleNumber([4, 1, ... | [
"jacopo.notarstefano@gmail.com"
] | jacopo.notarstefano@gmail.com |
93827415ae37821e71067313653a75da55d3a9fc | 20b284d720d79f6c4c71dee28c10827ce0124ab9 | /models/sweep_dien.py | a398d6f6a987a9fb0325be0b3b4b62dae10cf370 | [] | no_license | wongyung0/RecSSD-RecInfra | 27d70114d8be11309a8faf2785f13c959ed02b7e | 6f2566cd90c9657dd99b0adf5f36ec727f0447e6 | refs/heads/master | 2023-03-16T11:45:45.120543 | 2020-12-14T23:35:37 | 2020-12-14T23:35:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,478 | py | import os, sys
# Deep Interest Evolution Network
num_epochs = 1
num_batches = 400
rt_config_cpu = "--inference_only --inter_op_workers 1 --caffe2_net_type async_dag "
rt_config_gpu = "--inference_only --inter_op_workers 1 --caffe2_net_type async_dag --use_gpu "
model_config = "--model_type dien --arch_mlp_top \"20... | [
"wilkening@g.harvard.edu"
] | wilkening@g.harvard.edu |
322be270a39cddcf47218ccadcbd9963f2929efc | 6c512b7d2ae4b1ad713a57f74a4816e1291ba7a1 | /python_3/experiments/expr_generate_random_email_addr.py | ffdb0114212f3743389a9430fcc54266bf9dc738 | [
"MIT"
] | permissive | duttashi/applied-machine-learning | 451389e8f27931f32132a148e93effa7c6352536 | ff3267b97d9dd7122400754798e06fb493daa40a | refs/heads/master | 2021-12-17T19:12:39.531717 | 2021-12-04T09:36:46 | 2021-12-04T09:36:46 | 169,368,684 | 0 | 2 | MIT | 2021-12-04T09:36:47 | 2019-02-06T07:19:08 | R | UTF-8 | Python | false | false | 1,002 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Feb 21 09:02:51 2021
Objective: To generate a random list of email addresses and write to file
Reference: https://codereview.stackexchange.com/questions/58269/generating-random-email-addresses
@author: Ashish
"""
import random, string
domains = ["hotmail.com", "gmail... | [
"ashish.dutt8@gmail.com"
] | ashish.dutt8@gmail.com |
1a2211990cda985b834f08be99c2965b94df71b6 | c1568b160dda9107509ed4b3c482405ca5d90cc5 | /main_cui.py | 1ec252fc10cf872d0f3fde646368ee0bead88d2f | [
"MIT"
] | permissive | Art-1985/SerialComPython | 5c4c69dfedbbd8c067a6efe7ee8869eae5124db2 | 7da7ec32e9fd5c9bd0f3cb9fa01cca2a23b75c1f | refs/heads/master | 2021-01-04T07:19:08.248475 | 2019-08-18T04:35:44 | 2019-08-18T04:35:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 298 | py | #! /usr/bin/env python3.7
# -*- coding: utf-8 -*-
# Created by kayrlas on August 10, 2019 (https://github.com/kayrlas)
# main_cui.py
from serialcompy import SerialCom
if __name__ == "__main__":
com = SerialCom(baudrate=9600, timeout=0.1, writemode=True)
com.start_serialcom()
| [
"31058064+kayrlas@users.noreply.github.com"
] | 31058064+kayrlas@users.noreply.github.com |
b192b0139643aeaa2d99a2f6c1f54e1c3f8dfba1 | 29a3f50f174a0cc580dce7993b9f7657b68a1f2b | /game.py | c1d45c80e1127a69cca87b360926ad4f16eca78f | [] | no_license | rachel-lynch-lin/guessing-game | 91029aa7804acc5100484d2913452f48e132f452 | 5c0bb9b0cc87d170c1ecd850909da169b9284952 | refs/heads/master | 2020-03-31T23:40:39.043128 | 2018-10-11T23:28:17 | 2018-10-11T23:28:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 491 | py | """A number-guessing game."""
import random
print("Welcome to the number guessing game!")
x = 1
y = 100
number = random.randint(1, 100)
def get_player_name():
"""Get player name"""
player_name = input("What is your name?\n> ")
return player_name
def choose_number():
"""Give instructions to pick ... | [
"lynch.m.rachel@gmail.com"
] | lynch.m.rachel@gmail.com |
6a74af82b1c801d9a90b19bfe26f5316c9d86b55 | f6b4aede2bf331eb6a6d7e09a237b5cbbd9c878e | /marketplacedigital/shop/migrations/0011_auto_20161019_1918.py | 5b9a1b5a6d8a1f8b32c51639109877103e64c556 | [] | no_license | victoraguilarc/marketplacedigital | 946911a167c98723d2f18d5841509f692bdeda18 | 78be2a2f2cc945da34e1872d805c89e288795efd | refs/heads/master | 2021-06-09T12:06:55.547190 | 2016-11-17T18:15:18 | 2016-11-17T18:15:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 805 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.2 on 2016-10-19 21:18
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import shop.models
class Migration(migrations.Migration):
dependencies = [
('shop', ... | [
"contato@felipegalvao.com.br"
] | contato@felipegalvao.com.br |
311156f8239a389a290dc4236e887b30ac0c61d8 | 65b990538c684d0fe6acf239f7611b40e5ba3927 | /02_some_web_anti-crawl_cases/picture_disguise/case.py | 1438ba440c6e796e80e2a2312d56d0e32e914a0d | [
"MIT"
] | permissive | zlj-zz/python-crawler | a7d385a4f94a47a81957d4b6a8b80be1b62dfabf | a6ed670ad332bd456572eeff707bd5fc14186b3d | refs/heads/master | 2023-08-15T13:56:47.056936 | 2021-09-26T02:51:45 | 2021-09-26T03:09:48 | 253,190,849 | 0 | 0 | MIT | 2021-02-27T14:18:20 | 2020-04-05T08:42:38 | Python | UTF-8 | Python | false | false | 1,005 | py | #!/usr/bin/env python3
# -*- coding:UTF-8 -*-
__author__ = 'zachary'
"""
File Name: case.py
Created Time: 2020-04-03 17:08:31
Last Modified:
"""
import io
import os
import requests
from parsel import Selector
from urllib.parse import urljoin
try:
from PIL import Image
except ImportError:
import Image
import p... | [
"zlj19971222@outlook.com"
] | zlj19971222@outlook.com |
086c125db213cb6cce6b2c7e213a1128666084d4 | 04ba4d4b5d358a815a38c813b51a374e5d9acd86 | /app/migrations/0002_auto_20150826_2234.py | f5e6145e83708a8be480bf5657eaf7384825980d | [] | no_license | Yoo2/SabangPalbang-server | 393afe2cfef9fbc1d866dd0ecb960b4c6995622b | ce1977bcaf37e0cb7f2c0f2d773f9d93c239f811 | refs/heads/master | 2021-01-01T04:31:04.950665 | 2016-04-21T16:11:44 | 2016-04-21T16:11:44 | 56,788,602 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 691 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('app', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='room',
name='kitchen',
... | [
"yoo2yoo2yoo2@gmail.com"
] | yoo2yoo2yoo2@gmail.com |
1dcd10d102292df3d3efe9a9459e88d24a030c11 | 5e995fa1e8a3fbc32ad82e63ebcb7fc9a6c27627 | /set1/dbu_program094.py | 07f0f45a1c6a0462a43ebb99dddc9def6510f888 | [] | no_license | Snehal-610/Python_Set | 5915d8fbf2c02a01576ae22ae1f57e60e71e9ecc | 9bfe235853ece9f559dd8276a900e47ce0ff55db | refs/heads/main | 2023-08-15T03:30:31.738909 | 2021-09-22T05:38:30 | 2021-09-22T05:38:30 | 408,701,180 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# program 94:
# With a given list [12,24,35,24,88,120,155,88,120,155], write a program
# to print this list after removing all duplicate values with original
# order reserved.
# Hints:
# Use set() to store a number of values without duplicate.
l = [12, 24, 35, 24, 88, 12... | [
"snehalparekh84@gmail.com"
] | snehalparekh84@gmail.com |
47caea1c49197c9d2faacd6924bd6eee72b8dc49 | 021e550da175c7fe4d7b108553f9d71bb0be1044 | /stubs/Rhino/Rhino-stubs/ApplicationSettings/__init__.pyi | 41b08231861a084621b0b6a9dede1d8d5f50c75b | [
"MIT"
] | permissive | rlldx/pythonstubs | b1d00438ae44618bbce30e61a0072316d6a284e8 | 6338085cae231f3f76ba272e72e670be7bc6e8a2 | refs/heads/master | 2020-05-02T16:54:25.088269 | 2019-03-10T06:05:33 | 2019-03-10T06:05:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 44,839 | pyi | from typing import Tuple, Set, Iterable, List
class PaintColor:
NormalStart = 0
NormalEnd = 1
NormalBorder = 2
HotStart = 3
HotEnd = 4
HotBorder = 5
PressedStart = 6
PressedEnd = 7
PressedBorder = 8
TextEnabled = 9
TextDisabled = 10
MouseOverControlStart = 11
MouseOv... | [
"steve@mcneel.com"
] | steve@mcneel.com |
3f54e042b195335242ba0e1963abcc48a78e159c | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2179/60671/241345.py | f325de92ff5e7cd5ef53723502109c4b2092086d | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 44 | py | print(1)
print(1)
print(2)
print(2)
print(2) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
c71f3a45ea196b301895cee912a5de68ef84181b | fa0cc66c834563c4dbd82670057210a7f0dea1ae | /src/params.py | d3adc4d51ede2e4ee3a4c15065b8b16cb037df21 | [] | no_license | c3sr/TextStyleTransfer | c814e99c2f384512dd184074f4a9d01483387d80 | de31a2fd2419567ccf0a00bcf6943c0a9a37341a | refs/heads/master | 2022-11-12T08:02:42.587454 | 2019-05-27T01:14:33 | 2019-05-27T01:14:33 | 277,907,708 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 283 | py | #extra_words = ["<TOS>", "<EOS>", "<UNK>"]
extra_words = ["<TOS>", "<EOS>", "<UNK>"]
start_token = extra_words.index("<TOS>")
end_token = extra_words.index("<EOS>")
unk_token = extra_words.index("<UNK>")
# weights
style_weight = 1.0
semantic_weight = 0.4 #0.4
lm_weight = 0.1 #0.8
| [
"annfirst1111@gmail.com"
] | annfirst1111@gmail.com |
99861fb569c32082035d8650479168f37f338fc9 | 0551ca112d5d08392b9af590265c5ca180545126 | /robot/library/Elevator/ElevatorSS.py | c30d5fbd064c30f650d58d27582002280d3fdb68 | [
"MIT"
] | permissive | SimonAbrelat/PyFRC2019 | b656ed15bd2b753c30c041e1de1e07f2c6b161e2 | 8019a1ef66a6556241470f8d387c17087a44ab77 | refs/heads/master | 2020-05-21T14:34:33.721108 | 2019-05-11T03:36:31 | 2019-05-11T03:36:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,009 | py | import frccontrol as frccnt
import numpy as np
from .. import StateSpaceController
class ElevatorSS:
s_profile = False
motion_profile = False
def __init__(self, motor, num_motors, m, r, G, dt):
self.dt = dt
self.sys = frccnt.models.elevator(motor, num_motors, m, r, G)
self.contro... | [
"simon.abrelat@gmail.com"
] | simon.abrelat@gmail.com |
a5560ddaa8aa296f8ee9d0c75c97b506a5e0039e | 3dad04206f103f28c455fe5639ea02704543b19a | /staticfiles/admin.7180a8cb7259.py | 55a6e8bd6ebc19c09d4bc1ba6ace8d5c91c1b8df | [] | no_license | Jrsnow8921/Snow_Help_Desk | 0541c27f7cc16348e4481365f6fad890b2c7f405 | 38e172ac8d71fabb968c0d719c9e40ac19209277 | refs/heads/master | 2021-01-19T17:44:21.505142 | 2015-08-14T14:36:22 | 2015-08-14T14:36:22 | 40,719,483 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 576 | py | from django.contrib import admin
from .models import Choice, Question
class ChoiceInline(admin.TabularInline):
model = Choice
extra = 3
class QuestionAdmin(admin.ModelAdmin):
list_display = ('question_text', 'pub_date')
list_filter = ['pub_date']
search_fields = ['question_text']
fieldsets ... | [
"jrsnow8921@gmail.com"
] | jrsnow8921@gmail.com |
74c0067a89536b7cd0058000131b1ddf37375664 | 678240c5ec314e7ce925e627c1751c3e2eee9003 | /directorHome.py | 8856f62a63e391e63826f4e539f3f7b894dd9864 | [] | no_license | Akhilez/GatePassSystem | adfc3d553df4d1998cc1241893e5e62a0ba575ec | f267e309a1b34a617fa8186781a9baf56af5d28d | refs/heads/master | 2021-01-01T06:39:54.254871 | 2017-07-20T15:39:30 | 2017-07-20T15:39:30 | 97,476,932 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,631 | py | #!/usr/bin/env python3
try:
import cgi
import sqlite3
import cgitb; cgitb.enable()
path="/var/www/html/html/gatepass.db"
con=sqlite3.connect(path)
cur=con.cursor()
form=cgi.FieldStorage()
print("Content-type:text/html\r\n\r\n")
f=open("directorHome.html","r")
html1=f.read()
f... | [
"noreply@github.com"
] | noreply@github.com |
d186abb8c12ce87ed25813d81588543d80a00262 | 2cc8ace39ec930135b9f5fc212dea313ebf46520 | /EM Algorithm and K-Means/511_7.4.py | 03139db0ec195f4d5e7df113e612b3de2239d534 | [] | no_license | yaashia2020/Stochastic-Processes | 9dd8c404b9296453fe334723381b95cf29afe8d0 | 09665a4864c821e1dd79a75f8b7475ebcf975d0d | refs/heads/main | 2023-01-05T11:26:43.703796 | 2020-10-24T02:52:18 | 2020-10-24T02:52:18 | 306,779,529 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,745 | py | import numpy as np
import random
import matplotlib.pyplot as plt
from scipy.stats import sem
from sklearn.cluster import KMeans
from scipy.stats import multivariate_normal
wait=[]
eruption=[]
with open("F:\\2nd sem\\EE 511/faithful.dat") as i:
wait = [float(line.split()[1]) for line in i]
with open("F:\\2nd se... | [
"ygautam@usc.edu"
] | ygautam@usc.edu |
1a5fbac32b6195eabe7f4fb3f4d36dfe1bf93343 | 0a6229c2e554c538cc8e24a093452278054ae4ee | /CivilViolenceAgents.py | 23342669fdc5b12d83db5c50fcf54620787aeeaf | [] | no_license | fabero/Civil-Violence-Modelling-A05 | fb74bda3cd7c2dfc0b7a9862fa3df39ba2a118c7 | 9fe348232e5522e4d2a1032477a3d7a6e8235250 | refs/heads/master | 2022-12-14T23:34:03.403090 | 2019-10-19T08:03:34 | 2019-10-19T08:03:34 | 209,054,356 | 0 | 0 | null | 2022-06-21T22:51:23 | 2019-09-17T12:57:22 | Python | UTF-8 | Python | false | false | 12,707 | py | import math
import random
from mesa import Agent
from settings import PROPAGANDA_AGENT_CLASS,POPULATION_AGENT_CLASS,COP_AGENT_CLASS
FACTOR = 1
class PopulationAgent(Agent):
'''
An agent from the population distribution, can become active and be jailed
Movement Rule: Move to a random empty cell within loc... | [
"noreply@github.com"
] | noreply@github.com |
1f4a96aadea9ab8facaad238c1994ab40c709058 | f771e83756436594a145bd7b80e5e5d8bca53268 | /djangocms_baseplugins/spacer/migrations/0001_initial.py | 966d6afda4ff196593e37d0468afda831e2ebd4b | [
"MIT"
] | permissive | bnzk/djangocms-baseplugins | b76ed75460fbeacb62366935824d2bcfac52b25e | 98e390482aa4facc35efe2412ff1603d85e2c8ba | refs/heads/develop | 2023-06-17T23:55:41.574828 | 2023-06-09T09:22:01 | 2023-06-09T09:22:01 | 68,296,521 | 2 | 0 | MIT | 2023-04-17T09:18:11 | 2016-09-15T13:32:05 | Python | UTF-8 | Python | false | false | 2,206 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.13 on 2018-05-09 11:32
from __future__ import unicode_literals
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
('cms', '0016_auto_20160608_1535'),
]... | [
"bnzk@bnzk.ch"
] | bnzk@bnzk.ch |
60c7c5dc505c5e918ac32fcdb901db1215bc9337 | 4059f1a6e3ce999b8d3426797fcaa58f922725ac | /main.py | 1e7109c0d36af1d3afdea05ea39a7313010fd73e | [] | no_license | rafass90/race-test | c4a125bc4f3e2a3c4f893dc13a2dcade4294ead0 | 980194b2b61ce0efb7ab03bb9cb4e266699b1a10 | refs/heads/master | 2020-06-17T21:45:46.913286 | 2019-07-10T18:53:36 | 2019-07-10T18:53:36 | 196,065,711 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 742 | py | import pathlib
import sys
from core.builder import Builder
from utils.file import Reader, Writer
def gympass_race(params):
if len(params) >= 3:
log_path = str(params[1])
result_race_path = str(params[2])
else:
log_path = pathlib.Path(__file__).parent / 'data/race.log'
result_r... | [
"rafael9s9@hotmail.com"
] | rafael9s9@hotmail.com |
ddbbe471609a29e586f7a797f3dcbe547160afbb | e29079f7144fee878a221673ae900cf3be2fb55d | /tasks.py | 058a26e769a83fb38a27f4d29d195c187b0f29d2 | [] | no_license | Vilkoc/RabotyNET_pytest | 8f04b37a41aad8ec7d4a5fb9b49e08d5073bab54 | 3598a549b2cbc8e57151d48569a4aed72b54de9e | refs/heads/dev | 2021-06-14T10:03:01.492037 | 2019-08-13T16:46:46 | 2019-08-13T16:46:46 | 202,167,803 | 0 | 0 | null | 2021-06-02T00:17:33 | 2019-08-13T14:59:09 | Python | UTF-8 | Python | false | false | 88 | py | from invoke import task, run
@task
def build(c):
run("nosetests --detailed-errors") | [
"nvoloshchuk19@gmail.com"
] | nvoloshchuk19@gmail.com |
71c556e97b77513bc66a246281dd90d8289f3e03 | f41aaf434552e68099e9be432be576089d7ffdb6 | /venv/bin/easy_install-3.8 | 728e228d8677314f7e5c389ec566a2af6c1608a0 | [] | no_license | MuhammadRafeh/flask-save-food | ca6dfb61eb83521fe4d268692d3eec55a2617839 | ae0c98986ec0fb8da99e983a7b9a86d6751af255 | refs/heads/main | 2023-04-02T09:20:19.420198 | 2021-04-10T17:13:13 | 2021-04-10T17:13:13 | 355,073,883 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 267 | 8 | #!/home/muhammad/Desktop/Flask_project/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"muhammadrafehatique@gmail.com"
] | muhammadrafehatique@gmail.com |
84af3e9eb629f91b97479e4f4cbec0d2df0a7365 | 4870872bdf26c04f71778818833d545effb6b839 | /client-library/subscriber/python/conixsubscriber/__init__.py | 97d4a920c8bbd5916d9be7257113f2dedbf20d61 | [
"MIT"
] | permissive | conix-center/smart-cities-demo | 295a62a7648e9b16e4f04602b38e80ea0d4d8dca | e4218b6ee2b070b02334771e4b497b9bf8655929 | refs/heads/master | 2020-03-27T19:08:53.626010 | 2018-09-25T20:00:44 | 2018-09-26T14:01:55 | 146,968,462 | 0 | 1 | null | 2018-09-13T14:33:06 | 2018-09-01T04:48:22 | null | UTF-8 | Python | false | false | 31 | py | from .conixsubscriber import *
| [
"adkins@berkeley.edu"
] | adkins@berkeley.edu |
c7cb5023e4e2f884d0cf2a064eb72713c56ef63d | d229b12834c4edce04af9262f622397c67272a1f | /python_basics/whileLoop.py | 53a32e4088d101646e40664b816b4227b74dc422 | [] | no_license | ravinduu/python | 9bdfe859c444601dce9eab12277dbdedd4794b9a | 157bfdf67b6879d2d31dfaeab28819c0cfbf6b41 | refs/heads/master | 2022-10-22T18:40:44.965744 | 2020-05-29T10:28:18 | 2020-05-29T10:28:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | '''
#
##
###
####
#####
print above pattern using while loop
'''
i = 0
#while loop
while i < 5:
j = 0
print("#",end="")
while j < i:
print("#",end="")
j+=1
i+=1
print()
| [
"ravindu.dilshan.rd@gmail.com"
] | ravindu.dilshan.rd@gmail.com |
28f28bc651a4d28e6ecd143268a61d21273fd3c0 | 127f6c29c82d95f19a6e38a63da2e37dad574a39 | /BMW/bmw.py | e2b920d43190e7c744507083e7de5f06440c5e8c | [] | no_license | ovifrisch/Karfarm | f4796416804d4a0bf48a9b4159b797d84878deeb | 83614dca4f351c89fbe9436bdbe91e8b5e16b440 | refs/heads/master | 2021-04-30T02:15:48.497898 | 2018-02-14T10:45:12 | 2018-02-14T10:45:12 | 121,499,391 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,641 | py | from bs4 import BeautifulSoup
import requests
def write_options_to_file(soup_object):
progress = 0
for link in soup_object.find_all(attrs={"class": "cblt-button conversion"}):
progress += 1
print(progress)
new_link = "http://www.bramanmotorsbmw.com/" + link.get('href')
new_r =... | [
"ovidiu.fritsch@gmail.com"
] | ovidiu.fritsch@gmail.com |
9e54269c162580b6585706bcfc401a469f121965 | 807305b8aefbd7aac4f44c67deed06c059ca02d9 | /tests/databases/value/test_database.py | 3f26650ec4063233ba8ff239621aca52b79828e1 | [
"MIT"
] | permissive | supramolecular-toolkit/stk | c40103b4820c67d110cbddc7be30d9b58d85f7af | 46f70cd000890ca7c2312cc0fdbab306565f1400 | refs/heads/master | 2022-11-27T18:22:25.187588 | 2022-11-16T13:23:11 | 2022-11-16T13:23:11 | 129,884,045 | 22 | 5 | MIT | 2019-08-19T18:16:41 | 2018-04-17T09:58:28 | Python | UTF-8 | Python | false | false | 862 | py | def test_database(case_data):
"""
Test a database.
Parameters
----------
case_data : :class:`.CaseData`
A test case. Holds the database to test and the value to put
into it.
Returns
-------
None : :class:`NoneType`
"""
_test_database(
database=case_dat... | [
"noreply@github.com"
] | noreply@github.com |
8aa9d9fcf49ba45926f4236ba7bc0f1519fda291 | 8373891fe555d52cb0b1515e4c1e9a62957785d6 | /Scripts/Arquivos-Python-com-SQLAlchemy/7 - Python com SQLAlchemy/ALL_ALC.py~ | 815b6c7e4817db1979a91506e49ef6daf5061ffe | [] | no_license | altairlage/curso_python_devops | 78fb30308ca313cf75a7f4d68a65c8896bacaa96 | e609c3d277160ebd52aa80ceea118d194d89b727 | refs/heads/master | 2021-04-28T13:33:44.093054 | 2018-03-23T01:21:51 | 2018-03-23T01:21:51 | 122,108,056 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,183 | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
# ALL_ALC.py
"""
Nesse script vamos fazer
todas as alterações em um
só arquivo!
Modificado em 30 de março de 2017
por Vitor Mazuco (vitor.mazuco@gmail.com)
"""
import sys
try:
from sqlalchemy import create_engine
from sqlalchemy import Column,Integer,String... | [
"altair.campos@watchguard.com"
] | altair.campos@watchguard.com | |
4452565890779e0f2699c9486ab9d2583db399cd | 9afb0ed34a45602d020a90488873e203192054da | /1.python元组列表字典集合基础/1.variables_syntax/练习.py | 152acab8212284c2aedfb3dc94b010947e6df1df | [] | no_license | Distantskyline/python3 | 96b804b59709a695abb8f428dd4c7ed72e0fef7c | 492f2efd3635195678a7f4f494d155a912e1ce30 | refs/heads/master | 2020-06-29T16:49:23.858279 | 2019-09-26T01:33:31 | 2019-09-26T01:33:31 | 200,571,090 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 811 | py | #!/usr/bin/env python3
#date:190805
#usage:练习
# author:Distantskyline
# list01 = [1,2,7,8,9]
# # a=list01.__sizeof__()
# list01_size = list01.__sizeof__()
# print("list01's size: {}".format(list01_size))
#
# list01 = [1,2,"asdw"]
# x = list01.__sizeof__()
# print(x)
# list01 = [1, 3.14, True, False, "String Type"]
#... | [
"zhanggengheng@qq.com"
] | zhanggengheng@qq.com |
bfd6ff554b6967372b1cd364637b21aa2a7cdda1 | b38f409dfcb6c089c7a333d5a362deb4bdeeff51 | /practical2/covarianceMatrix.py | b84d1f89b337eb53b84e344558e38ba0f9172a62 | [] | no_license | sacha-cs/roberto | a1aca4503c626887cd9a8b975a342fc267af2bba | e8e3ae6131490fcd87e332d4e2d4b488075d5faa | refs/heads/master | 2021-03-16T05:35:38.746082 | 2016-03-07T23:15:25 | 2016-03-07T23:15:25 | 50,520,196 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 244 | py | import matplotlib.pyplot as plt
import numpy as np
data = []
with open('resultsSquare.txt') as f:
data = [[float(num) for num in line.split(' ')] for line in f.readlines()]
data = np.array(data).T
covMat = np.cov(data)
print covMat
| [
"sacha.cohen-scali13@imperial.ac.uk"
] | sacha.cohen-scali13@imperial.ac.uk |
1814d9dbec4268d36d8688981d7a7dc6b19d2358 | edabc0e91b241a41e22c91bae87c06dd9f891b67 | /budget/asgi.py | fe6b068a933bc04cd0971b5be9fa6f8890c6e99e | [] | no_license | HRS0986/Django-TestCases | 4cb7b1f686cf32c7c6e5cc3bc9a10ce314ed91c0 | 9718a5c63c58af17914286782bf3f5cb28e4db6c | refs/heads/main | 2023-04-06T13:32:54.104400 | 2021-04-22T02:17:26 | 2021-04-22T02:17:26 | 360,183,991 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | """
ASGI config for budget 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.setdefault('DJANGO_SETTIN... | [
"heshanhfernando@gmail.com"
] | heshanhfernando@gmail.com |
157c242d00f6b67b757949ab19e8c041f7f5e080 | d040c0060ac58ca3565448fbab5c470526dae162 | /a2/sgd.py | f65693833b4fc074d596f3af9bdc86b56f3edff0 | [] | no_license | ahmedbahaaeldin/CS224n-Solutions | 60c29d6e426ca52194613ac72f4d29df0994aacb | 5a68bae84352919c50dcdc190c087de6f151ae75 | refs/heads/master | 2020-06-20T16:32:04.086723 | 2019-09-17T07:40:52 | 2019-09-17T07:40:52 | 197,178,960 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,522 | py | #!/usr/bin/env python
# Save parameters every a few SGD iterations as fail-safe
SAVE_PARAMS_EVERY = 5000
import pickle
import glob
import random
import numpy as np
import os.path as op
def load_saved_params():
"""
A helper function that loads previously saved parameters and resets
iteration start.
""... | [
"noreply@github.com"
] | noreply@github.com |
145d622e6b75ee1ab37ddf0a2a97caf7a34a1bba | 12ed2bb3b5fc8580bfa37381d8627f9269472540 | /venv/Scripts/pip3.7-script.py | 98e1ebac634195c094c8aaa3f963ca4ee47be8c9 | [] | no_license | smv1796/The-Numpy-stack-in-Python. | 6e25320c866f2848c92551158f31dc4f0974e2bf | 503e91573bcae9ef627490cd12c980e7317ceb75 | refs/heads/master | 2020-08-06T19:19:13.279560 | 2019-10-16T11:14:49 | 2019-10-16T11:14:49 | 213,120,927 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 422 | py | #!C:\Users\Lenovo\PycharmProjects\HelloPython\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.7'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sy... | [
"sverma171096@gmail.com"
] | sverma171096@gmail.com |
3fd9cb3ce9c4a405a2d2b5f607dd593c9f79656b | 8d2c2f2f80204c4d90ed691dc0c8ed148cbe20af | /code/resnet_nobn.py | 6321e24d469e58f71aa80464976117f4a05a6274 | [] | no_license | matttrd/information_sampler | 1dbf434622fd383a60b8f36a03a55c0681ef0cd2 | f2cdbd00a7828bdf526cf7b4869e0a899f559d2b | refs/heads/master | 2022-04-09T06:39:20.278305 | 2020-03-31T21:29:21 | 2020-03-31T21:29:21 | 176,366,532 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,631 | py | '''ResNet in PyTorch.
For Pre-activation ResNet, see 'preact_resnet.py'.
Reference:
[1] Kaiming He, Xiangyu Zhang, Shaoqing Ren, Jian Sun
Deep Residual Learning for Image Recognition. arXiv:1512.03385
'''
import torch
import torch.nn as nn
import torch.nn.functional as F
class BasicBlock(nn.Module):
expansi... | [
"matteoterzi.mt@gmail.com"
] | matteoterzi.mt@gmail.com |
51b36e9e923120f85678fa88d62f02b2e0c61d2c | 1e11d6f9245c55e21edfb24f4340d52e3f7f327f | /dillo/migrations/0059_image_entity.py | 15048319182249db28d4ac935bc231ce24a67f27 | [] | no_license | armadillica/dillo | 996e8462f4f76349ecc49ecb08cdd6c8c66e072b | 960aed85f8438109bed9883321891305e1db8b10 | refs/heads/main | 2023-08-04T06:45:34.570071 | 2023-06-04T00:07:57 | 2023-06-04T00:07:57 | 30,461,275 | 79 | 18 | null | 2023-08-02T00:22:40 | 2015-02-07T16:17:43 | Python | UTF-8 | Python | false | false | 508 | py | # Generated by Django 2.2.14 on 2021-04-11 20:57
import dillo.models.mixins
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('dillo', '0058_rename_icon_to_image'),
]
operations = [
migrations.AddField(
model_name='post',
... | [
"francesco.siddi@gmail.com"
] | francesco.siddi@gmail.com |
f223475d9486a080b7b1aca585647310abe8c018 | 2e6248663931cac90404e7ed63cb905ff1854b90 | /sycomore/rf_spoiling.py | eb11c03f22a8b95749edcaed5c904f5849b3e1c5 | [] | no_license | ruojianhua1/sycomore-web | 30b2a69843667b07a55af620ba78864bc227fd4d | a3fb38d7548939c3fa33ab838aa658cc0b89a9a9 | refs/heads/master | 2023-03-22T03:59:07.543015 | 2020-01-22T09:10:06 | 2020-01-22T09:10:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 844 | py | import numpy
import sycomore
from sycomore.units import *
def rf_spoiling(
model, flip_angle, TE, TR, slice_thickness, phase_step, repetitions):
t_readout = TR-TE
G_readout = (2*numpy.pi*rad / (sycomore.gamma*slice_thickness))/(TR-TE)
echoes = numpy.zeros(repetitions, dtype=complex)
... | [
"lamy@unistra.fr"
] | lamy@unistra.fr |
2fa1e6bbbda26c6f54d7e47681f4800908bc0c6a | c21830d34bbb4b918d75c7818111ba7a9c428b1d | /results/exp2/model_tests.py | bec841c17f01979710fa7937e4bb787bc5a7788f | [] | no_license | JWijkhuizen/model_training | 9ec719f48a97296bb19432006b29fef6096d8627 | f52712452113fcdff709db951d48bd31c3f929c4 | refs/heads/master | 2023-01-14T10:04:41.681444 | 2020-11-17T11:14:19 | 2020-11-17T11:14:19 | 279,030,329 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,011 | py | #!/usr/bin/env python
# import rosbag
import rospy
import os
import glob
import rosbag_pandas
import matplotlib.pyplot as plt
import statistics as stat
from openpyxl import Workbook
import pandas as pd
import numpy as np
from mpl_toolkits import mplot3d
from sklearn.linear_model import LinearRegression
from sklearn.li... | [
""
] | |
ac601efb510dc79750d5e3d6d135f1ab2e81d7ae | adfed0a94c0a915eadbace4fb553e3013bf44e66 | /WC/bin/jour.py | 4500fd959615ff00bff432c9d7eab202509c1ca8 | [] | no_license | pierrott534/WC | a5c3c7754897669c124453b0b6b45b8b13764b06 | baaedd492c22bd3bcc42bc874e02802cf2b5f99a | refs/heads/master | 2021-01-11T04:04:03.950227 | 2016-10-19T14:20:37 | 2016-10-19T14:20:37 | 71,251,980 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,203 | py | #!/usr/bin/python
from math import cos, acos, sin, asin, degrees, radians
import datetime, time
# Source:
# http://pagesperso-orange.fr/jean-paul.cornec/heures_lc.htm
class sunriseClass:
def __init__(self):
self.theDay=0
self.theDate=[]
self.solarDeclination=0
self.equationOfTime=0
self.latitude=0
self.lo... | [
"pierre.tirole@libertysurf.fr"
] | pierre.tirole@libertysurf.fr |
9490ece84a35e5a44e2be1fc2ae28428e69f2847 | a6e67c4f7a7dc5a26d0eca5c62527b8a1b728362 | /backend/textSearch.py | 0e50fec7fe4df25309603f8f83f1db7e300cfff3 | [] | no_license | stan-the-man/Serendipity | 57be4b1b5485acf512cbf4525d66894892da4db7 | a6b7740f8eac7fb68b81703e7876d3bea3213a84 | refs/heads/master | 2021-01-01T20:48:48.223303 | 2015-05-05T18:32:38 | 2015-05-05T18:32:38 | 30,884,045 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,195 | py | import falcon, os, logging, py2neo
from base64 import urlsafe_b64encode
try:
import ujson as json
except:
import json
class TextSearchResource(object):
"""docstring for TextSearchResource"""
def __init__(self, gdb):
self.gdb = gdb
self.logger = logging.getLogger('Seren.' + self.__class_... | [
"ewchang@scu.edu"
] | ewchang@scu.edu |
1338988217b292d56aa7a0609e4090aaa45d56aa | 4b940ed35202f1386b7a91aee5779f74173424c1 | /views-stu.py | f85361f500914245402b668920e1e8bd2cbd70a4 | [] | no_license | xzGithu/devs | bc5a1895a520f2d5285b50a918e4f0c6eb14979b | f02a6ca7dc88c424adad9c41c59b6ff9f6fbc1bd | refs/heads/master | 2022-12-16T18:29:03.203798 | 2021-04-23T12:38:55 | 2021-04-23T12:38:55 | 102,831,605 | 0 | 0 | null | 2022-12-08T01:09:16 | 2017-09-08T07:22:59 | JavaScript | UTF-8 | Python | false | false | 1,059 | py | # coding:utf-8
# @Time :2020/3/25 13:43
# @Author :Xu Zhe
# @Email :mistest163@163.com
# @File :views-stu.py
# -*- coding: utf-8 -*-
from transitions import Machine
#先定义一个类
class Work(object):
pass
model=Work()
#定义状态
states=['1','2','0']
#定义状态转移
transitions=[
{'trigger':'start','source':['1','2']... | [
"18601135464@163.com"
] | 18601135464@163.com |
163f42dea8e8032a2c607490214273e7151c07fe | 32eeb97dff5b1bf18cf5be2926b70bb322e5c1bd | /benchmark/notepad2/testcase/firstcases/testcase3_010.py | 5e1e4a976a0825757fc871a9d6bde4ddddf53119 | [] | no_license | Prefest2018/Prefest | c374d0441d714fb90fca40226fe2875b41cf37fc | ac236987512889e822ea6686c5d2e5b66b295648 | refs/heads/master | 2021-12-09T19:36:24.554864 | 2021-12-06T12:46:14 | 2021-12-06T12:46:14 | 173,225,161 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,308 | py | #coding=utf-8
import os
import subprocess
import time
import traceback
from appium import webdriver
from appium.webdriver.common.touch_action import TouchAction
from selenium.common.exceptions import NoSuchElementException, WebDriverException
desired_caps = {
'platformName' : 'Android',
'deviceName' : 'Android Emulat... | [
"prefest2018@gmail.com"
] | prefest2018@gmail.com |
fb73273f503593c8b512e8c5a41aa244e50e72df | 5167c093ca89cad60fe9b6440ca9038fa6a6ab85 | /env/lib/python3.8/site-packages/pymunk/_chipmunk_cffi.py | 20e05b8bb4820289bffd2846e9b12d59dd7318cf | [
"MIT"
] | permissive | iodaniel/cse210-project | 7ac719137bd5043cdc7d294a6b9a80e5a9d85540 | abc7a4e64d35707d04900f8535961fc57ed8f4e1 | refs/heads/main | 2023-06-19T04:05:29.606045 | 2021-07-18T02:53:10 | 2021-07-18T02:53:10 | 378,509,478 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 177 | py | from __future__ import absolute_import
import _cffi_backend # for PyInstaller, py2exe and other bundlers
from ._chipmunk import ffi, lib # type: ignore
ffi = ffi
lib = lib
| [
"iodaniel@icloud.com"
] | iodaniel@icloud.com |
e330bc423850823857aba546071f39f537e3b9f1 | 0caac16df4101a302333bf33fec32459832e4165 | /app/base/controllers.py | 24769e59e5e23facb3c5a9dfa79ed4f212ca9a98 | [] | no_license | olawolemoses/BriteCoreInsurance | 04d8d47ae34a8ed58f6ba29d8b3139d1a42df40a | d222fbcd8d93573c1cdef179fa7e09634623a3a4 | refs/heads/master | 2021-08-23T21:05:25.439831 | 2017-12-06T14:54:03 | 2017-12-06T14:54:03 | 113,271,683 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,377 | py | # Import flask dependencies
from flask import Blueprint, request, render_template, \
flash, g, session, redirect, url_for, jsonify
import pprint
# Import password / encryption helper tools
from werkzeug import check_password_hash, generate_password_hash
# Import the database object from the main ap... | [
"olawolemoses@gmail.com"
] | olawolemoses@gmail.com |
f2021722c2a524886edf1b637a86908671d5fc05 | 4918b1df8d8bd2343c24ead672dfc56882d91af4 | /gym_traffic/agents/epsilon_explorer.py | ba4d734d99ca9d9390778d99624aee7edeeebfbd | [] | no_license | Crowdhackathon-SmartCity2/young-THMERA | 7aa00001a85b03f8507cfed40033c75ed3b04918 | cbbe3cb40b3269f11dad6f6249bf5254324d6592 | refs/heads/master | 2020-03-21T21:40:22.598589 | 2018-07-01T08:58:25 | 2018-07-01T08:58:25 | 139,076,960 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 905 | py | # from agent import
class EpsilonExplorer():
def __init__(self, agent, epsilon=0.1, decay=1e-6, seed=None):
self.agent = agent
self.step = 0
self.epsilon = epsilon
self.decay = decay
super(EpsilonExplorer, self).__init__(agent.input_space, agent.action_space, seed=seed)
... | [
"geomac.mac@gmail.com"
] | geomac.mac@gmail.com |
ebd75111d292c8ff49d8ca2f1ea59dc118086a64 | 40e58ad8c90b22fbf2231b93ee72f3c42e4dc3df | /ch9ex1.py | 6a67bb7a597a784bb4e483b220ad3cdcca7ffe76 | [] | no_license | ungerw/class-work | 0bd7139e34b4ac388196299feabdfeb116f75655 | 62524638734e71e01bc5f71c4d8480118ced4892 | refs/heads/master | 2021-04-28T03:04:30.068926 | 2018-02-19T23:22:56 | 2018-02-19T23:22:56 | 122,131,110 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 244 | py | fname = input('File name: ')
fhand = open(fname)
count = dict()
for line in fhand:
words = line.split()
for word in words:
if word not in count:
count[word] = 1
else:
count[word] += 1
print(count) | [
"ungerw@uw.edu"
] | ungerw@uw.edu |
98d8a33b4b7d5651ebf112c516a3f5378d56dbb0 | a6cb2e7d0c24d17e61696b8bbc691e3f1f13a54c | /bokeh_app/scripts/map.py | 15968eb88016a988347bd935e7eb63efa63958dc | [] | no_license | kz9/cse163-project | c7db3858fd748c810a2c7cdb03ac2f8e3ba3903e | f40da9d45b3852d986f32ad4d9919f03fd3fef2a | refs/heads/master | 2020-05-24T04:40:30.632491 | 2019-06-10T19:31:35 | 2019-06-10T19:31:35 | 187,097,349 | 1 | 0 | null | 2019-06-08T03:28:55 | 2019-05-16T20:32:03 | null | UTF-8 | Python | false | false | 2,477 | py | import pandas as pd
import pandas_bokeh
from bokeh.layouts import row
from bokeh.models import Panel
def map_tab(df, shp):
"""
Make a tab wich contains a map colored by the number of
terrorism attacks
Parameters:
df (DataFrame): a pandas dataframe
shp (GeoDataFrame): a geopandas datafr... | [
"jkz8889@gmail.com"
] | jkz8889@gmail.com |
6c8c160c9634381508ee010a7ceeae9177ffd6ec | 8e24e8bba2dd476f9fe612226d24891ef81429b7 | /geeksforgeeks/python/python_all/112_5.py | dc004ce6416dbe458336c86465138549e9215466 | [] | no_license | qmnguyenw/python_py4e | fb56c6dc91c49149031a11ca52c9037dc80d5dcf | 84f37412bd43a3b357a17df9ff8811eba16bba6e | refs/heads/master | 2023-06-01T07:58:13.996965 | 2021-06-15T08:39:26 | 2021-06-15T08:39:26 | 349,059,725 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,837 | py | Python – Filter unequal elements of two lists corresponding same index
Sometimes, while working with Python data, we can have a problem in which we
require to extract the values across multiple lists which are unequal and have
similar index. This kind of problem can come in many domains. Let’s discuss
certain... | [
"qmnguyenw@gmail.com"
] | qmnguyenw@gmail.com |
ec84f518c191ee54bd3c6e5d801b5a6fa88b741c | d3eff5d37e03133ec5f74b4b10c5dbf39c2037b8 | /test.py | b20b661c093c5805f93306d4853072f928f13685 | [] | no_license | UserChen666/linear-program-solver | 2a5eea74046424e11abed1517a4aacbc9dc134af | 3320afa34234eb956ea7179df34fde84a4ed52cd | refs/heads/main | 2023-06-18T13:37:27.174113 | 2021-07-16T04:01:11 | 2021-07-16T04:01:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,100 | py | from sys import argv
import subprocess
OUTPUT_PATH = '../tests/output'
INPUT_PATH = '../tests/input'
LP_SOLVER_PATH = '../lp/lp_solver.py'
start_index = 1
end_index = 78
if argv[1] == '445':
end_index = 2
if argv[1] == 'netlib':
start_index = 3
end_index = 16
elif argv[1] == 'vander':
start_index = 1... | [
"nilay@fispan.com"
] | nilay@fispan.com |
bda82aa264a6cd37fbdca86199f7e8a06f6ebd7a | 4cf88fa2aae372333ff658930a5121a7679aa866 | /yatube/settings.py | b0e6143461177498b704a1b512944bdaf446c6c7 | [] | no_license | DonAlehandro89/hw05_final | 80362d07860a3fca2d12109ab3ef569c0b721564 | a7d3e20ab198ddc779515a9af86a9abdabe2c532 | refs/heads/master | 2022-12-30T11:26:07.961822 | 2020-10-19T18:10:20 | 2020-10-19T18:10:20 | 303,947,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,025 | py | """
Django settings for yatube project.
Generated by 'django-admin startproject' using Django 2.2.
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
# Bu... | [
"nozdraman@mail.ru"
] | nozdraman@mail.ru |
6772748d4dedfdca44ac64a58d6f7853c688d83f | a50616cbd695f1e6620483c188e8165ae46b4fae | /problem25.py | 7fc9001c8631faf589e95ee1a7d259227bb771e6 | [] | no_license | mihwa-han/ProjectEuler | 50006ecab806d3f58f4c32ac4217be22227c3c9e | cf2d2256fd8fff7cd90da335f92f75c8205025b2 | refs/heads/master | 2021-01-01T20:43:30.133363 | 2017-07-31T21:04:26 | 2017-07-31T21:04:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 684 | py | ## Problem 25 - 1000-digit Fibonacci number
## The Fibonacci sequence is defined by the recurrence relation:
## F(n) = F(n−1) + F(n−2), where F(1) = 1 and F(2) = 1.
## Hence the first 12 terms will be:
## F(1) = 1
## F(2) = 1
## F(3) = 2
## F(4) = 3
## F(5) = 5
## F(6) = 8
## F(7) = 13
## F(8) = 21
## F(9) = 34
## F(1... | [
"hanriver0618@gmail.com"
] | hanriver0618@gmail.com |
d9dbc1b9a269a707e8970e4241846421ce961bc2 | 6164a30e88c403135714edf602d570ee3601213a | /Final_Project2_onlinecase.py | e4ef472a7c70a5c09b4df972f33cff2c43d3dc41 | [] | no_license | PrisyanWang/UCDPA_YanWang | 221a6aae398189790c2ab8de6d0f19aeab65b73e | 2b1716c591ea7525a2eb6f9cdd8954eedf8db3f5 | refs/heads/master | 2023-04-13T02:42:51.448781 | 2021-04-28T18:01:12 | 2021-04-28T18:01:12 | 361,382,251 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,015 | py | import pandas as pd
import numpy as np
import warnings
import os
warnings.filterwarnings('ignore')
import seaborn as sns
import matplotlib.pyplot as plt
# Dataframe import
df_trainset = pd.read_csv('train.csv')
print(df_trainset.columns)
# Check for distribution and missing values of the dependent variable, isDefault... | [
"ywbuaa@gmail.com"
] | ywbuaa@gmail.com |
78e390a3c58adb8b39e8063d78069270c87a2317 | e0c5ca693621eff632f8b10cdec6942f14835e9a | /binaryToOctal.py | 2d680100f22ac11632130486d6adf31711670bfb | [] | no_license | ShakteeSamant/my_program | ffb8adeef26a9ceb4ebaa178249f0a815aeeeb21 | 3c601f82dc8dc455a8d09ed06ac3fc7e7ec8c8a0 | refs/heads/master | 2020-08-09T02:54:55.516844 | 2019-10-22T18:24:53 | 2019-10-22T18:24:53 | 213,981,857 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 338 | py | # Write a Program to convert binary number to octal number.
import decimalToBinary
import decimalToOctal
binary = int(input('Enter the Binary Value: '))
decimal = decimalToBinary.binaryToDecimal(binary)
# decimal= decimal.strip()
decimal= int(decimal)
octal = decimalToOctal.decimalToOctal(decimal)
print(f'Binary {b... | [
"lucky.ssp123@gmail.com"
] | lucky.ssp123@gmail.com |
e870f197cc60fcf026f4ec1af3b4d289d046dc6d | be34db664a26b97df4e737f0bc33267e4f2ff42a | /myvenv/Scripts/django-admin.py | 4e0778058ba57dd1b79f2d2bd51863f459cc209c | [] | no_license | karmelovioli/my-first-blog | 66818fb063d617e91a83389ec0c807d0d16fc363 | 957019304a63c6a191ee25b82a2aae41c95bd8e0 | refs/heads/master | 2020-04-21T01:16:26.578163 | 2016-09-11T21:28:02 | 2016-09-11T21:28:02 | 67,936,015 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 164 | py | #!c:\users\karmelo\desktop\sito\myvenv\scripts\python.exe
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"melovioli@gmail.com"
] | melovioli@gmail.com |
9089e73fd53ad23bfa521ae763206399810515cc | ee899f2559e657d78f621123fee6f103f4cc7dfc | /tests/test_get_angles.py | 826cee0d16d63761ab8c5ce537dc559abfce7552 | [
"BSD-3-Clause"
] | permissive | skymoon777/angstrom | 3052367f124ca16707d4109b9ff719848087375f | 793fd05b9bf27cab50d5c292fe63f685ea767d6d | refs/heads/master | 2022-07-29T21:02:33.155323 | 2020-05-15T05:21:30 | 2020-05-15T05:21:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,266 | py | """
--- Ångström ---
Tests estimating molecular angles.
"""
from angstrom.molecule.angles import get_angles
def test_separate_diatomic_molecules_should_have_no_angles():
bonds = [(0, 1), (2, 3)]
assert get_angles(bonds) == []
def test_molecule_with_two_bonds_should_have_one_angle():
bonds = [(0, 1), (1,... | [
"kbs37@pitt.edu"
] | kbs37@pitt.edu |
5f40baebcc13361ee71f2b2204168f1eba49ae0f | 42cdaa0cc10f30f6f74f61c39cb0227ecb81b2df | /VideoBox.py | 0dc2fd860e866c82ba6084acedacb9bc1040f267 | [] | no_license | dumel7/GestureRecognitionAplication | ca8d3f5ab41de6cd6e5f3782331ece7b1ba402d0 | dd6a2ad7aa9e3d753df0d02f277d11f144636292 | refs/heads/master | 2020-04-07T14:46:53.621588 | 2018-12-10T15:21:20 | 2018-12-10T15:21:20 | 158,460,926 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,122 | py | import datetime
import cv2
from PyQt5.QtCore import QThread, pyqtSignal, Qt, pyqtSlot
from PyQt5.QtGui import QImage, QPixmap
from PyQt5.QtWidgets import QWidget, QLabel
class VideoBox(QWidget):
def __init__(self, image_signal, parent=None):
super().__init__(parent)
self.imageSignal = image_signa... | [
"dominik.florencki@gmail.com"
] | dominik.florencki@gmail.com |
316b6c09614be0148d1c2b5160f106c633db3bdc | 9baa9f1bedf7bc973f26ab37c9b3046824b80ca7 | /venv-bck/lib/python2.7/site-packages/bson/__init__.py | 765e29a98d825e4e4fed5c0c32749a243ca0a4f2 | [] | no_license | shakthydoss/suriyan | 58774fc5de1de0a9f9975c2ee3a98900e0a5dff4 | 8e39eb2e65cc6c6551fc165b422b46d598cc54b8 | refs/heads/master | 2020-04-12T05:36:59.957153 | 2017-01-08T06:12:13 | 2017-01-08T06:12:13 | 59,631,349 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33,803 | py | # Copyright 2009-2015 MongoDB, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | [
"shakthydoss@gmail.com"
] | shakthydoss@gmail.com |
e6f691de4f39801f3f84bb31d5b475d952b1a26c | c81b633c452616636120daba9ef3fa9a2b2640b3 | /Class15/jinja-basic-gae-project-master/main.py | f37c3adf59febf7fc81d7b2f7ea4abb69fe2a155 | [] | no_license | formigaVie/SNWD_Works_201711 | ba3dca2ef4cf74166b8a5c7c804ea01ccc866876 | 16ec6c169a5828cadc515b7612dbfd8638ba7224 | refs/heads/master | 2021-09-07T03:41:36.674833 | 2018-02-16T18:58:47 | 2018-02-16T18:58:47 | 110,582,326 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,281 | py | #!/usr/bin/env python
import os
import jinja2
import webapp2
template_dir = os.path.join(os.path.dirname(__file__), "templates")
jinja_env = jinja2.Environment(loader=jinja2.FileSystemLoader(template_dir), autoescape=False)
class BaseHandler(webapp2.RequestHandler):
def write(self, *a, **kw):
return self... | [
"manfredg30@gmail.com"
] | manfredg30@gmail.com |
fcc16f84fb35a17e330243cc88335d8830ad791d | 83f6b4f5fe96dd6cf312d28eba73b3740bb4461e | /Learn_Python_by_Udemy_Navin/3_Math/3_user_input.py | dbc34ca9b7c9e53191c852849e95ecb6bd7d41f0 | [] | no_license | harishtallam/Learning-Python | e2aa420e20c84b93df6d1bb44ef5e946528bdd1d | eef7591a28b6833ff17a00c39acdc6511caa69f4 | refs/heads/master | 2023-01-20T17:10:03.255666 | 2020-11-25T13:47:07 | 2020-11-25T13:47:07 | 172,003,580 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 722 | py | x = input("Enter 1st Number: ")
a = int(x)
y = input("Enter 2nd Number: ")
b = int(y)
z = a + b
print(z)
##########################################
m = int(input("Enter 1st Number: "))
n = int(input("Enter 2nd Number: "))
p = m + n
print(p)
##########################################
ch = input("Enter a character: "... | [
"tvharish513@gmail.com"
] | tvharish513@gmail.com |
e72cee074d3b65fc398521c1dbf842a9633a2a3b | 476162e81c81d72352bd8b3822c7cf6703dbf893 | /application/pythonMacro/Base.py | 685008719abe4f8037b296a9ad3fdff6b0572352 | [] | no_license | TakuyaShirosaka/JoobyBlender | 2b80282f8c574267735147f53794db40bd26f2fa | 15051050311f17a5366ab10b095a7fc8c355dd3a | refs/heads/master | 2023-02-13T23:49:14.784957 | 2020-12-13T07:06:14 | 2020-12-13T07:06:14 | 320,982,865 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 594 | py | # coding: UTF-8
import datetime
import logging
import os
class BaseClass:
def __init__(self):
self.logger = logging.getLogger()
today = datetime.date.today()
os.chdir('/')
logging.basicConfig(
level=logging.DEBUG,
filename="/work/logs/py/" + str(today) + "... | [
"pppg1023023@gmail.com"
] | pppg1023023@gmail.com |
38e53983d55b9890e6298bca5e315690dd08829a | 9e3f1fc1935ac1dcdce7c8d39776de14ec49b5e6 | /aptechapp/apps.py | bc8776a83e61e36a73718deed4ee603c13447ab8 | [] | no_license | irchriscott/Aptech-Connect-Web | f03072bcc790ef1d72b6e609fa99656f0e45fcba | 7ebe1919ffacd9e826e2d86c778f4546072738e9 | refs/heads/master | 2020-05-02T07:19:05.867858 | 2019-03-29T12:46:22 | 2019-03-29T12:46:22 | 177,814,557 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 158 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.apps import AppConfig
class AptechappConfig(AppConfig):
name = 'aptechapp'
| [
"irchristianscott@gmail.com"
] | irchristianscott@gmail.com |
139dfac249b6f7b80b7a95457f89dea57fcbe4b2 | ffb05b145989e01da075e2a607fb291955251f46 | /pypers/oxford/metatracer.py | 253fb7ce096b902041cfe72b29f2096d1d49f442 | [] | no_license | micheles/papers | a5e7f2fa0cf305cd3f8face7c7ecc0db70ce7cc7 | be9070f8b7e8192b84a102444b1238266bdc55a0 | refs/heads/master | 2023-06-07T16:46:46.306040 | 2018-07-14T04:17:51 | 2018-07-14T04:17:51 | 32,264,461 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 629 | py | # metatracer.py
import inspect
from decorators import decorator
@decorator
def traced(meth, *args, **kw):
cls = meth.__cls__
modname = meth.__module__ or cls.__module__
print "calling %s.%s.%s" % (modname, cls.__name__, meth.__name__)
return meth(*args, **kw)
class MetaTracer(type): ... | [
"michele.simionato@gmail.com"
] | michele.simionato@gmail.com |
5d3eb74722808ffd0192f32a87c42dc32849375a | 409829dfa1c9758ac67190fe76fea3746106bbad | /setup.py | 3b7e08ef66822de90ff5fd52631aa58f7305cdb6 | [
"MIT"
] | permissive | eagleflo/python-sc2 | 916d1df613190dbc5da0883d2c3c6275350c8f88 | 1bd24e0b7d3200df7fb7ef02256753c45fea0b32 | refs/heads/master | 2020-04-01T05:16:42.683300 | 2018-10-13T10:33:31 | 2018-10-13T10:33:31 | 152,896,763 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,356 | py | from setuptools import setup, find_packages
from pipenv.project import Project
from pipenv.utils import convert_deps_to_pip
pfile = Project(chdir=False).parsed_pipfile
requirements = convert_deps_to_pip(pfile['packages'], r=False)
test_requirements = convert_deps_to_pip(pfile['dev-packages'], r=False)
setup(
nam... | [
"hannes.karppila@gmail.com"
] | hannes.karppila@gmail.com |
8e430a316bec3a379b66444cbdbcb9404c0b774b | 6c467a474d75d2d4ecf04f3077cd71ce839114d1 | /tests/test_funksvd.py | 96f5c01d29c9eb8d3a40411908a4f6915f48ea91 | [
"MIT"
] | permissive | aroraakshit/lkpy | 45c262dbdb382e7fdae3e5bfb999f14240334021 | 45dec2bb1352a288a321f94c6b617e410d48cdd4 | refs/heads/master | 2020-05-17T20:59:04.905359 | 2019-04-26T17:13:27 | 2019-04-26T17:13:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,323 | py | import logging
import pickle
from pathlib import Path
import lenskit.algorithms.funksvd as svd
import pandas as pd
import numpy as np
from pytest import approx, mark
import lenskit.util.test as lktu
_log = logging.getLogger(__name__)
simple_df = pd.DataFrame({'item': [1, 1, 2, 3],
'user'... | [
"md@ekstrandom.net"
] | md@ekstrandom.net |
ff57ddea8f5ac61d370b0acf4d3a5aaea492d392 | d8e57708589732c65932299e3dd840d51b7eeaa0 | /project1/udp_broadcast_sender.py | 48493b48c9f427930f7e3e74f0f717b1c642bdc4 | [] | no_license | estensen/distributed-systems | 9077d3d875a8c30f45a9d8040b0044ae46627526 | 1e103ae972cdbaf89304c42c4e9728b9273eb2e5 | refs/heads/master | 2021-08-24T08:02:00.153845 | 2017-12-08T19:19:21 | 2017-12-08T19:19:21 | 105,823,558 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,909 | py | import socket
from threading import Thread
from time import sleep
from random import randint
ip = "localhost"
port = 555
ports = [5000, 5001]
message = "lock{}".format(port)
binary_message = bytes(message, encoding="ascii")
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
received_ack_from = []
unprocessed_req... | [
"haavard.ae@gmail.com"
] | haavard.ae@gmail.com |
cb2295d637f69b87b1c0479f1f7ff975f1da3f88 | 93f30ade29ca5bc9ca6daf419acb4213aa7b19e7 | /thread_scaling/scripts/stampede_knl/tabulate_fstest.py | d76ebb16e7dd2f866b998e2fc9eed73c4478677d | [] | no_license | BenLangmead/bowtie-scaling | 43004d510a86e45585f63b974123d592f6c1982a | 12d861a67b5b40452acb045c9cae71686f23d14d | refs/heads/master | 2021-03-24T11:51:51.814592 | 2018-06-08T19:12:26 | 2018-06-08T19:12:26 | 35,295,359 | 11 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,013 | py | #!/usr/bin/env python
from __future__ import print_function
# === /tmp /dev/null 1
def parse_time(tmst):
toks = tmst.split(':')
assert len(toks) == 3
secs = float(toks[2])
secs += float(toks[1]) * 60
return secs + float(toks[0]) * 60 * 60
print(','.join(['input,output,num_outputs,secs']))
def... | [
"ben.langmead@gmail.com"
] | ben.langmead@gmail.com |
1c019f624cead8654a0b7f7805c9d9abbbad04ca | 9aa05481e12107ed9d31bc7ee0b239720b3557a9 | /bullet/src/spotmicro/walk_env.py | 68bdb698eab3a39ccfe2dbb85c92d1bac0bb9a0f | [] | no_license | Luke-A-F/spot_mini_mini | 28c05910e1bd7b1eb80183f1a0408186295dc9b9 | ae4b570bcfc87b39fe7e726a54fb7e905a857d2c | refs/heads/master | 2022-11-05T17:02:20.992143 | 2020-05-24T00:53:01 | 2020-05-24T00:53:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,942 | py | """This file implements the gym environment of spot alternating legs.
"""
import math
from gym import spaces
import numpy as np
from .. import spot_gym_env
DESIRED_PITCH = 0
NUM_LEGS = 4
NUM_MOTORS = 3 * NUM_LEGS
STEP_PERIOD = 1.0 / 4.5
class spotWalkEnv(spot_gym_env.spotGymEnv):
"""The gym environment for the... | [
"mrahme97@gmail.com"
] | mrahme97@gmail.com |
0b5f1d72d0ce03d8535066049aea2e6e91ad8bbf | 965e163df916b01d647953f2b1431d265683f6ca | /test/test_helpers.py | e839094edc9afd8bc16d27b5c41e69a3377b702d | [
"MIT"
] | permissive | expressvpn/expressvpn_leak_testing | 6505c39228d396caff0c2df3777009c6fbdf3127 | 9e4cee899ac04f7820ac351fa55efdc0c01370ba | refs/heads/master | 2023-08-18T06:33:33.931040 | 2021-10-11T03:02:50 | 2021-10-11T03:02:50 | 112,572,905 | 244 | 48 | MIT | 2021-01-19T16:02:18 | 2017-11-30T06:18:40 | Python | UTF-8 | Python | false | false | 1,912 | py | import sys
import unittest
import mock
from parameterized import parameterized
from xv_leak_tools.helpers import current_os
from xv_leak_tools.helpers import merge_two_dicts
from xv_leak_tools.helpers import other_oses
class TestOSHelpers(unittest.TestCase):
def test_current_os(self):
for plat in ['linu... | [
"leakproofing@expressvpn.com"
] | leakproofing@expressvpn.com |
b6a4cd5d7cda7f6b2190d639af7f012070605f14 | b270368b113767bada45aa593c767fb40fe42b41 | /bin/easy_install | 277a8332a4e07d350e40a871862ba5e5303af634 | [] | no_license | MrsDaehin/Formacion-JMeter-Swagger | 5c8816b25aed54f61ccb78ec274798515db9e571 | cb030d0703f209e9f852c7949d80ab10a36525dd | refs/heads/master | 2020-06-05T09:27:44.316896 | 2019-12-16T16:12:30 | 2019-12-16T16:12:30 | 192,392,336 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 279 | #!/home/osboxes/Documentos/Formacion-JMeter-Swagger/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"daehin@gmail.com"
] | daehin@gmail.com | |
567e67d3060c4b3a2b386151fc3abf939158b6bc | 4ae31a35a2311c8a294602f33092307d6ac2dd59 | /manage.py | b1c926103a25184ff70b3368ac60f52cf358e618 | [] | no_license | Moamenx/ebuy | 68c7e5bc828e69bcd283debdf0ff7f72e38e2d74 | 9b5a42b5751a34e3d469f3c5f58e441dafe528de | refs/heads/master | 2020-03-10T06:00:09.229869 | 2018-06-04T16:03:28 | 2018-06-04T16:03:28 | 127,793,607 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 802 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ebuy.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure that the
... | [
"moamen_mohammed@hotmail.com"
] | moamen_mohammed@hotmail.com |
99108fb40238bad7ec4645d7af76f6fdd8716715 | 1bf34f6059dcf42660eb10071891644722bd7bef | /src/jogovelha.py | be5b7964f2029236fa494970b4bc14bb7f62881c | [] | no_license | RodrigoHeiji/devops-ac03 | f71b3b48041e76f8017a01360ff7004a836c6b62 | c11cade2e60a256572d98d4f0212af0f4d73785e | refs/heads/master | 2020-03-28T04:55:06.389345 | 2018-09-07T01:46:17 | 2018-09-07T01:46:17 | 147,744,556 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | def inicializar():
tab = []
for i in range(3):
linha = []
for j in range(3):
linha.append(".")
tab.append(linha)
return tab
def main():
jogo = inicializar()
print(jogo)
if __name__ == "__main__":
main()
| [
"noreply@github.com"
] | noreply@github.com |
ce1e1ecbdd88a5e793be6e6772ade99f62a9aaad | a2339bedd948752afaaa82290986ce33ccd05cc6 | /Python/1016.py | f56318e854dd69443bb616eec4b97807eaef47e8 | [] | no_license | tabatagloria/exercicios-uri | a538a8802899664ed872f26593772584a7430ae1 | 7a567cb0ff196231364f2327fbb7d9d1bc731126 | refs/heads/master | 2020-06-17T08:19:03.094461 | 2019-09-15T18:34:14 | 2019-09-15T18:34:14 | 195,858,705 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 82 | py | minutos = int(input())
calculo = minutos * 2
print('{} minutos'.format(calculo))
| [
"tabatabruna@yahoo.com.br"
] | tabatabruna@yahoo.com.br |
3c360f5a1e7046ac028f2deed78d18233d9a7ac3 | 33922cd0ea716b40958b52415c010a7e87935cf4 | /Experiments/result_processing.py | c15f70c919b4656e8600b40610db4ee3ddd4f808 | [] | no_license | saymongb/tcc_exp | 4df970209d81f744467517a6f6175618c77f96f7 | c92d777a34595b311bfa56f8e5559533b7aa3197 | refs/heads/master | 2023-03-02T17:54:48.259694 | 2021-02-06T16:33:32 | 2021-02-06T16:33:32 | 222,321,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 864 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Nov 21 22:57:00 2019
@author: saymongb
"""
# Imports
import os,sys
sys.path.append(os.getcwd()[0:-11]) # run into tests
import pandas as pd
def improvedScore(dataFrame):
newFrame = pd.Series()
for i in range(len(dataFrame)):
be... | [
"saymongb@gmail.com"
] | saymongb@gmail.com |
ae0e11b81b4aeef1238e47faf14901e4e66d0e83 | 73bcb87cc26c5c22de8637310a8bc7873d3c9056 | /src/core/config.py | 10523c9f04194696119635f4a08d3f34b751fdc8 | [
"MIT"
] | permissive | O70/image-recognition | 486a35cbfb44b6345ebb573d9c5e3574dbed879a | 81492120648581bc4a50e560d14591baad2c171c | refs/heads/master | 2020-08-29T05:21:48.725403 | 2019-11-03T08:54:02 | 2019-11-03T08:54:02 | 217,941,336 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 782 | py | class DefaultConfigs(object):
# 00001.string parameters
train_data = "/home/xkjs/PycharmProjects/yanxin-image-classification/data_yanxin/train/"
test_data = "/home/xkjs/PycharmProjects/yanxin-image-classification/data_yanxin/test/"
val_data = "/home/xkjs/PycharmProjects/yanxin-image-classification/data_... | [
"THRAEX@aliyun.com"
] | THRAEX@aliyun.com |
8b7378cf0180a3f6163db66dd835d9c15e841b31 | cdc614858eb15fd26438df65532d20a072687c8d | /userbot/plugins/sticklet.py | 25716f963bc19237d6571c8e4e00b6ea9eafb2b1 | [
"MIT"
] | permissive | Akshay-227/userBot-1 | cfbfa18f67632e02b7e189bf033f13f57a6560dd | 4cc07f9a3d3f1dfc5e356bbd57c4dff0e86e520f | refs/heads/master | 2021-05-20T04:23:01.474533 | 2020-09-08T08:04:18 | 2020-09-08T08:04:18 | 252,183,567 | 2 | 1 | MIT | 2020-04-01T13:30:44 | 2020-04-01T13:30:43 | null | UTF-8 | Python | false | false | 2,445 | py | # Random RGB Sticklet by @PhycoNinja13b
# modified by @UniBorg
import io
import os
import random
import textwrap
from PIL import Image, ImageDraw, ImageFont
from telethon.tl.types import InputMessagesFilterDocument
from uniborg.util import admin_cmd
@borg.on(admin_cmd(pattern="srgb (.*)"))
async def sticklet(event)... | [
"noreply@github.com"
] | noreply@github.com |
c990f08867bbad5ddd43178c54bb08a6c8e7827a | 5ea18341a8b9411f6cb79ac363ef0c8c23faebd8 | /code/svmClassifier.py | 9fa4c17c352b3c0e2073cf28602d2a012d5c863a | [] | no_license | prameelakavya/naive-bayes-and-dimensinality-reduction-techniques | 0a739b58d40e81ef1499e564021499c154a11fca | 1c005d298d0c389eb5d5f7ae88d6df850e076f10 | refs/heads/master | 2021-01-10T04:37:50.066379 | 2016-03-01T01:42:10 | 2016-03-01T01:42:10 | 52,838,760 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,110 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from sklearn import svm
import numpy as np
def classify(trainDataFile, validDataFile, trainLabelsFile, validLabelsFile, k):
trainData = np.loadtxt(open(trainDataFile))
validationData = np.loadtxt(open(validDataFile))
trainLabels = np.loadtxt(open(trainLabelsFile))
va... | [
"thummuruprameela@gmail.com"
] | thummuruprameela@gmail.com |
a31878733c748d9fc436e92e0c85e1f95a4a753b | 3cef51c71fdb19d326bea2a76bce03b6e04a69cb | /2016/22 Grid Computing/solutionb.py | 476a47fa34b3476665f34fb9ac2b6ae703eda0a0 | [] | no_license | janezd/advent-of-code | fe2819c667a2f9309fe3c50e5c234a98855f26b8 | 700b09894eb6b8de4324304e99be17ca664a7c5b | refs/heads/master | 2021-01-10T08:53:31.721953 | 2017-12-26T10:33:11 | 2017-12-26T10:33:11 | 48,594,325 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,091 | py | import numpy as np
import re
from hashlib import sha1
class Hashable:
def __init__(self, a):
self.a = a
self._hash = int(sha1(np.ascontiguousarray(self.a)).hexdigest(), 16)
print(self._hash)
def __hash__(self):
return self._hash
def __eq__(self, other):
return np.a... | [
"janez.demsar@fri.uni-lj.si"
] | janez.demsar@fri.uni-lj.si |
ec5c41e4d89d5f082d20752a3fe23582297bc9e4 | 9ee107351ae4f3528c59668fe2b884a621b7f767 | /mrinet/utils/collect_activations.py | edc24390fa049b5314874e3871d411035a3806e9 | [] | no_license | adrijanik/notebooks-cardiac | 1f518898a3268a397dd541d7ec70e171c76725e7 | e177e5b5651cf79b9bc854581009ab943f89de5c | refs/heads/master | 2023-06-15T02:44:24.915310 | 2021-07-05T22:38:33 | 2021-07-05T22:38:33 | 241,355,577 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,688 | py | import torch
import os
import numpy as np
from mrinet.dataset.preprocessing import load_dataset, load_concepts_dataset
from mrinet.train_unet import create_data_gen, create_data_gen, get_split
from torch.autograd import Variable
import pickle as pkl
import json
#import matplotlib.pyplot as plt
import cv2
import pandas ... | [
"adrijanik@Adrijaniks-MacBook-Air.local"
] | adrijanik@Adrijaniks-MacBook-Air.local |
8a745f4689ea9fda6a7da7c444c8f3eef0616059 | 52f4426d2776871cc7f119de258249f674064f78 | /misc/algorithm/shortest_path/floyd_warshall.py | 69f03a396a9041e4d03aae9d449722638becbffb | [] | no_license | namhyun-gu/algorithm | 8ad98d336366351e715465643dcdd9f04eeb0ad2 | d99c44f9825576c16aaca731888e0c32f2ae6e96 | refs/heads/master | 2023-06-06T02:28:16.514422 | 2021-07-02T10:34:03 | 2021-07-02T10:34:03 | 288,646,740 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 954 | py | from math import inf
from typing import List
graph: List[List[int]] = [
[0, 7, inf, inf, 3, 10, inf],
[7, 0, 4, 10, 2, 6, inf],
[inf, 4, 0, 2, inf, inf, inf],
[inf, 10, 2, 0, 11, 9, 4],
[3, 2, inf, 11, 0, inf, 5],
[10, 6, inf, 9, inf, 0, inf],
[inf, inf, inf, 4, 5, inf, 0],
]
def floyd_wa... | [
"mnhan0403@gmail.com"
] | mnhan0403@gmail.com |
7f600e781db2de55467db5fea014361b8b164504 | 17d604ac7fa671e5218a5e5218fa4f32db57bcc6 | /students/K33402/Shutov_Daniil/LR1/task_2/server.py | bc596c06d83edfbad2f51d7fedb0f030fe746611 | [
"MIT"
] | permissive | EgorovM/ITMO_ICT_WebDevelopment_2021-2022 | d3db9ea607afbbb68450dc8cd2fa70d8b5fd0cca | 35c41ba024d7a3cd89654bd4db23f7d447e0f0a2 | refs/heads/main | 2023-08-30T03:10:45.139237 | 2021-11-12T21:50:45 | 2021-11-12T21:50:45 | 403,108,689 | 0 | 0 | MIT | 2021-09-04T16:47:39 | 2021-09-04T16:47:38 | null | UTF-8 | Python | false | false | 463 | py | # Option "a". Pythagorean theorem
import socket
import math
server = socket.socket()
host = '127.0.0.1'
port = 5000
server.bind((host, port))
server.listen(3)
conn, address = server.accept()
first_side_bin = conn.recv(200)
second_side_bin = conn.recv(200)
first_side = first_side_bin.decode('utf-8')
second_side = sec... | [
"56311745+Daniil19112001@users.noreply.github.com"
] | 56311745+Daniil19112001@users.noreply.github.com |
3b00abba6bb7b22dc62e181af6daba8b17c9df2b | 5927ed4c63e3cd27edc94ef133d1b61e4e772e5e | /Lab-4/lab4.py | 6f4e18febac8df5fd9690c6268512e6dc6bfef33 | [] | no_license | asadwaheed10/SYSC3010_Asad_Waheed | cfef9c6e799ede47b3282a5ccce3b7021c6253fc | 4f12ebdc917538175a1c683246600c7cd04653cc | refs/heads/master | 2022-12-27T10:37:59.749735 | 2020-10-06T18:07:12 | 2020-10-06T18:07:12 | 295,519,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 728 | py | import http.client
import urllib.parse
import time
key = "54CDA6FJF4RCJ92C"
def thingspeak():
while True:
email = "asadwaheed@cmail.carleton.ca"
group = "L2-M-5"
identifier = "d"
params = urllib.parse.urlencode({'field1': email, 'field2': group, 'field3': identifier, 'key': key})
headers = {"Content-typeZZe... | [
"asadwaheed@cmail.carleton.ca"
] | asadwaheed@cmail.carleton.ca |
4a122264f765e2f39c288093857c13d6ee269b9f | 3725e1c9a89afee1796ebeaa00ede48d5493f509 | /data/cAIDataset.py | f4764d37bb26e90d514e92059fcc0c8ebc6285d6 | [] | no_license | jinningli/ad-placement-pytorch | cb716b5bc98558c939046f68beab9b05a67a0573 | 3436765e31b373bba0107d286cb72af58e42fc95 | refs/heads/master | 2020-03-23T23:17:48.961454 | 2018-08-30T21:54:01 | 2018-08-30T21:54:01 | 142,227,101 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,145 | py | from data.baseDataset import BaseDataset
from utils.utils import mkdirs
from os.path import join
import os
import scipy.sparse as sp
import numpy as np
import torch
import pickle
from utils.utils import to_csr
from utils.utils import get_sparse_tensor
# def fillto(nparr, dim=200):
# length = len(nparr)
# if le... | [
"lijinning@sjtu.edu.cn"
] | lijinning@sjtu.edu.cn |
3ad810a7f2e28d5b7cdfadf01a372ad1dcc32562 | f4ae8e55b9b98fa505699aaecf80f6250c2b36bb | /Python/sin x.py | 7b357836774fe686348e2a289d5434430459d71b | [] | no_license | CarolineFs/BMSTU | 36de285298f0e28abc129156d6fc437a6ee4ff16 | d8988b9b11f2f8a7f605dffa90296cfd719c09a1 | refs/heads/master | 2021-06-06T23:32:47.656486 | 2020-01-08T17:50:46 | 2020-01-08T17:50:46 | 103,178,011 | 1 | 1 | null | 2018-03-30T18:24:28 | 2017-09-11T19:21:07 | Python | UTF-8 | Python | false | false | 1,898 | py | #Построение синусоиды в заданном диапазоне
from math import sin
first = float(input('Введите начальное значение: '))
last = float(input('Введите конечное значение: '))
step = float(input('Введите шаг: '))
x = first
arg = 0
while x < last:
x += step
arg += 1
if round(x, 10) > last:
arg -= 1
maxm = k = 0
x... | [
"noreply@github.com"
] | noreply@github.com |
22b2b04e0c1f0687df24328a58b0481656bd3f40 | 4cdcba6038c8cde6fa4096022cc7653df2fda936 | /scripts/unquote | 349b3da6e417f92d0cf3110adde456d1cdf38d89 | [
"MIT"
] | permissive | dhh1128/tsauthor | 8311b7a4299e5c7cd346efd7b4ec6be357b2544c | 527866569d8888048e5f9073b4081565938fc768 | refs/heads/master | 2018-12-28T17:26:30.298197 | 2015-05-01T05:20:52 | 2015-05-01T05:20:52 | 30,440,925 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 760 | #! /usr/bin/python
import os, sys, re
open_curly_quote = '\xe2\x80\x9c'
ellipsis = '\xe2\x80\xa6'
close_curly_quote = '\xe2\x80\x9d'
def unquote(fname):
with open(fname, 'r') as f:
txt = f.read()
txt = txt.replace(ellipsis, '...')
txt = txt.replace(open_curly_quote, '"')
txt = txt.replace(clo... | [
"daniel.hardman@gmail.com"
] | daniel.hardman@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.